{"version":3,"sources":["webpack://@verndale/toolkit/./src/js/coveo/components/ShareCommunitiesSlider/ShareCommunitiesSliderCard.jsx","webpack://@verndale/toolkit/./src/js/coveo/components/ShareCommunitiesSlider/index.jsx","webpack://@verndale/toolkit/./src/js/components/share-communities-headless-form.js","webpack://@verndale/toolkit/./src/js/coveo/modules/ShareCommunities/index.jsx","webpack://@verndale/toolkit/./node_modules/pristinejs/dist/pristine.js"],"names":["props","onShareClick","result","distanceUnit","sharedCommunities","useContext","SearchContext","React","community","unitConversion","SwiperCore","Navigation","Pagination","ShareCommunitiesSlider","controller","coveoUnit","showPagination","shareCommunitiesLabel","shareCommunityLabel","onShareModalClick","currentIndex","setCurrentIndex","useState","state","setState","swiperInstance","setSwiperInstance","displayedResults","setDisplayedResults","useEffect","originalResults","sortedResults","sortResultsByDistance","getPaginationString","Swiper","swiper","EffectCoverflow","index","SwiperSlide","ShareCommunitiesSliderCard","Module","Component","Pristine","selected","postHeaders","fetchURL","results","el","communityObj","items","item","x","id","locationCookieName","coveoOrganizationId","coveoAccessToken","coveoSearchHub","coveoPipeline","coveoAutocompleteFields","coveoSource","coveoContextLanguage","countryOptions","careTypeOptions","distanceOptions","careTypePlaceholder","distancePlaceholder","searchButtonLabel","searchBoxPlaceholder","module","waitingForGeolocation","setWaitingForGeolocation","geolocationData","setGeolocationData","setSharedCommunities","formInstance","setFormInstance","modalCloseRef","useRef","modalRef","elementRef","listenerRef","isSearching","searchSource","option","searchDistance","searchCareType","engine","useMemo","buildEngine","resultsListController","buildResultList","getCoveoFindACommunityFieldsToInclude","resultsPerPageController","buildResultsPerPage","handleCountryChange","handleShareClick","title","distance","communityObject","communityIndex","newsharedCommunities","checkCommunities","selectedInput","selectedCommunitiesIds","newSelectedCommunities","communityId","handleModalOpen","modal","useLayoutEffect","modalContent","ShareCommunitiesHeadlessForm","closeButton","handleLocationSelectorSubmit","searchInputValue","selectedCountry","selectedCareType","selectedDistance","dispatch","sendQuery","cookieData","getLocationCookie","sendCoveoGeolocationQuery","useEventBus","payload","LocationSelector","global","factory","lang","findAncestor","cls","tmpl","_arguments","a","b","groupedElemCount","input","mergeConfig","obj1","obj2","attr","defaultConfig","PRISTINE_ERROR","SELECTOR","ALLOWED_ATTRIBUTES","EMAIL_REGEX","MESSAGE_REGEX","currentLocale","validators","_","name","validator","val","length","limit","pattern","m","otherFieldSelector","other","form","config","live","self","init","fns","params","messages","messageMatch","locale","_addValidatorToField","e","value","valueParams","silent","fields","valid","i","field","_validateField","_showSuccess","_showError","erroneousFields","errors","elem","fn","msg","priority","halt","_getErrorElements","errorClassElement","errorTextParent","errorTextElement","errorElements","inputId","errorId","error","_removeError","langObj","key"],"mappings":"iPAwFA,EApFmCA,GAAS,CAC1C,KAAM,CAAE,aAAAC,EAAc,OAAAC,EAAQ,aAAAC,CAAa,EAAIH,EAEzC,CAAE,kBAAAI,CAAkB,G,EAAIC,cAAWC,GAAa,EAEtD,OACEC,2BAAA,KACEA,gBAAC,OAAI,UAAU,kCAAkC,EAC/CA,gBAAC,OAAI,UAAU,kDAAkD,EAC/DA,gBAAC,OACC,IAAKL,EAAO,IAAI,qBAChB,UAAU,oCACV,IAAKA,EAAO,KAAK,CACnB,EAEAK,gBAAC,QAAK,UAAU,4CAA4C,EAC1DA,gBAAC,OAAI,UAAU,gBAAgB,EAC7BA,gBAAC,SACC,UAAU,kBACV,KAAK,SACL,KAAK,WACL,QAASH,EAAkB,KACzBI,GAAaA,EAAU,KAAON,EAAO,IAAI,eAC3C,EACA,SAAU,GACZ,EACAK,gBAAC,UACC,UAAU,sEACV,QAAS,IAAM,CACbN,EACEC,EAAO,IAAI,gBACXA,EAAO,IAAI,kBACX,I,EAAGO,MACDP,EAAO,IAAI,SACXC,CACF,KAAKA,GACP,CACF,CAAC,EAEDI,gBAAC,QAAK,UAAU,sBAAsB,CAAC,EACvCA,gBAAC,SAAM,UAAU,cAAc,EAAC,OAAK,CACvC,CACF,CACF,CACF,EACAA,gBAAC,OAAI,UAAU,qCAAqC,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d,EAAK,KAAK,iBAAiB,IAAMpB,CAAc,CAAC,EAAE,IAAI,SAAUyC,EAAM,CAC7EA,EAAK,WAAW,YAAYA,CAAI,CACpC,CAAC,EACD,MAAM,KAAKrB,EAAK,KAAK,iBAAiB,IAAMA,EAAK,OAAO,OAAO,CAAC,EAAE,IAAI,SAAUqB,EAAM,CAClFA,EAAK,UAAU,OAAOrB,EAAK,OAAO,YAAY,EAC9CqB,EAAK,UAAU,OAAOrB,EAAK,OAAO,UAAU,CAChD,CAAC,CACL,EAKAA,EAAK,QAAU,UAAY,CACvBA,EAAK,MAAM,EACXA,EAAK,OAAO,QAAQ,SAAUe,EAAO,CACjC,OAAOA,EAAM,MAAM,QACvB,CAAC,EACDf,EAAK,OAAS,CAAC,CACnB,EAEAA,EAAK,gBAAkB,SAAUF,EAAQ,CACrCnB,EAAgBmB,CACpB,EAEOE,CACX,CAWA,OAAAvH,EAAS,aAAe,SAAU2G,EAAMkC,EAAIC,EAAKC,EAAUC,EAAM,CAC7DtC,EAAEC,EAAM,CAAE,GAAIkC,EAAI,IAAKC,EAAK,SAAUC,EAAU,KAAMC,CAAK,CAAC,CAChE,EAEAhJ,EAAS,YAAc,SAAU6H,EAAQF,EAAU,CAC/C,IAAI+B,EAAUrE,EAAK,eAAewC,CAAM,EAAIxC,EAAKwC,GAAUxC,EAAKwC,GAAU,CAAC,EAE3E,OAAO,KAAKF,CAAQ,EAAE,QAAQ,SAAUgC,EAAKhK,EAAO,CAChD+J,EAAQC,GAAOhC,EAASgC,EAC5B,CAAC,CACL,EAEA3J,EAAS,UAAY,SAAU6H,EAAQ,CACnCrB,EAAgBqB,CACpB,EAEO7H,CAEX,CAAE,C","file":"Areas/SunriseSeniorLiving/Scripts/5793.f8f71d1d8f8d7a517e1c.bundle.js","sourcesContent":["import React, { useContext } from 'react';\nimport { unitConversion } from '../../helpers';\nimport SearchContext from '../../state/context';\n\nconst ShareCommunitiesSliderCard = props => {\n const { onShareClick, result, distanceUnit } = props;\n\n const { sharedCommunities } = useContext(SearchContext);\n\n return (\n <>\n
\n {[result.raw.ssl_city, result.raw.ssl_stateabbreviation]\n .filter(Boolean)\n .join(', ')}\n | {`${result.raw.ssl_zipcode} | `}\n \n {unitConversion(result.raw.distance, distanceUnit)} {distanceUnit}\n \n
\n\n\n Assisted Living, Memory Care, Terrace Club, Short-Term Stays,\n Hospice Coordination\n
\n\n \n\n \n