PageSourceSearch

https://www.exprealty.ca/_next/static/chunks/0dj5s78frbzc8.js

js exprealty.ca collected 2026-09-29 06:09:21 UTC 38,359 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,949618,e=>{e.v({active:"style-module-scss-module__3Q6OKW__active","agent-search":"style-module-scss-module__3Q6OKW__agent-search","ai-search-enabled":"style-module-scss-module__3Q6OKW__ai-search-enabled",auth:"style-module-scss-module__3Q6OKW__auth",bar:"style-module-scss-module__3Q6OKW__bar","bar-container":"style-module-scss-module__3Q6OKW__bar-container",component:"style-module-scss-module__3Q6OKW__component","country-flag":"style-module-scss-module__3Q6OKW__country-flag","dropdown-arrow-icon":"style-module-scss-module__3Q6OKW__dropdown-arrow-icon","exp-us":"style-module-scss-module__3Q6OKW__exp-us","exp-us-button":"style-module-scss-module__3Q6OKW__exp-us-button","find-your-home":"style-module-scss-module__3Q6OKW__find-your-home","full-screen-search":"style-module-scss-module__3Q6OKW__full-screen-search",home:"style-module-scss-module__3Q6OKW__home","im-ready-button":"style-module-scss-module__3Q6OKW__im-ready-button",international:"style-module-scss-module__3Q6OKW__international","layout-container":"style-module-scss-module__3Q6OKW__layout-container",logo:"style-module-scss-module__3Q6OKW__logo","logo-wrapper":"style-module-scss-module__3Q6OKW__logo-wrapper",menu:"style-module-scss-module__3Q6OKW__menu",mobile:"style-module-scss-module__3Q6OKW__mobile",navigation:"style-module-scss-module__3Q6OKW__navigation","no-background-color":"style-module-scss-module__3Q6OKW__no-background-color",panel:"style-module-scss-module__3Q6OKW__panel",scrolled:"style-module-scss-module__3Q6OKW__scrolled",search:"style-module-scss-module__3Q6OKW__search",switcher:"style-module-scss-module__3Q6OKW__switcher",user:"style-module-scss-module__3Q6OKW__user",x:"style-module-scss-module__3Q6OKW__x"})},741850,(e,a,s)=>{"use strict";var t=e.r(978509);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var l=t(e.r(421506)),o=e.r(391398);s.default=(0,l.default)((0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language")},835499,e=>{e.v({active:"style-module-scss-module__Kshwfa__active","agent-search":"style-module-scss-module__Kshwfa__agent-search",auth:"style-module-scss-module__Kshwfa__auth",bar:"style-module-scss-module__Kshwfa__bar","bar-container":"style-module-scss-module__Kshwfa__bar-container",component:"style-module-scss-module__Kshwfa__component","country-flag":"style-module-scss-module__Kshwfa__country-flag","dropdown-arrow-icon":"style-module-scss-module__Kshwfa__dropdown-arrow-icon","find-your-home":"style-module-scss-module__Kshwfa__find-your-home","full-screen-search":"style-module-scss-module__Kshwfa__full-screen-search",home:"style-module-scss-module__Kshwfa__home","layout-container":"style-module-scss-module__Kshwfa__layout-container",logo:"style-module-scss-module__Kshwfa__logo","logo-wrapper":"style-module-scss-module__Kshwfa__logo-wrapper",menu:"style-module-scss-module__Kshwfa__menu",navigation:"style-module-scss-module__Kshwfa__navigation","no-background-color":"style-module-scss-module__Kshwfa__no-background-color",panel:"style-module-scss-module__Kshwfa__panel",scrolled:"style-module-scss-module__Kshwfa__scrolled",search:"style-module-scss-module__Kshwfa__search",switcher:"style-module-scss-module__Kshwfa__switcher",user:"style-module-scss-module__Kshwfa__user",x:"style-module-scss-module__Kshwfa__x"})},832072,e=>{e.v({component:"style-module-scss-module__z-jSka__component",exp:"style-module-scss-module__z-jSka__exp","menu-items":"style-module-scss-module__z-jSka__menu-items",mobile:"style-module-scss-module__z-jSka__mobile"})},396559,e=>{e.v({"light-panel":"navigation-panel-module-scss-module__hvlgAG__light-panel"})},982885,e=>{e.v({loading:"search-layout-module-scss-module__LwBl9W__loading","mobile-nav":"search-layout-module-scss-module__LwBl9W__mobile-nav",page:"search-layout-module-scss-module__LwBl9W__page","transparent-header":"search-layout-module-scss-module__LwBl9W__transparent-header"})},581687,e=>{e.v({component:"search-bar-module-scss-module__VT8KBG__component",dropdown:"search-bar-module-scss-module__VT8KBG__dropdown"})},385649,e=>{e.v({component:"header-search-module-scss-module__s_iLla__component",locationInput:"header-search-module-scss-module__s_iLla__locationInput","search-icon":"header-search-module-scss-module__s_iLla__search-icon","suggested-location-dropdown":"header-search-module-scss-module__s_iLla__suggested-location-dropdown",zoocasaTheme:"header-search-module-scss-module__s_iLla__zoocasaTheme"})},571187,e=>{e.v({active:"search-header-mobile-module-scss-module__tMbEsG__active",auth:"search-header-mobile-module-scss-module__tMbEsG__auth","back-icon":"search-header-mobile-module-scss-module__tMbEsG__back-icon",bar:"search-header-mobile-module-scss-module__tMbEsG__bar","bar-container":"search-header-mobile-module-scss-module__tMbEsG__bar-container",component:"search-header-mobile-module-scss-module__tMbEsG__component","is-
1hidden":"search-header-mobile-module-scss-module__tMbEsG__is-hidden","is-visible":"search-header-mobile-module-scss-module__tMbEsG__is-visible","layout-container":"search-header-mobile-module-scss-module__tMbEsG__layout-container","location-search":"search-header-mobile-module-scss-module__tMbEsG__location-search",menu:"search-header-mobile-module-scss-module__tMbEsG__menu",navigation:"search-header-mobile-module-scss-module__tMbEsG__navigation","search-wrapper":"search-header-mobile-module-scss-module__tMbEsG__search-wrapper",user:"search-header-mobile-module-scss-module__tMbEsG__user","user-dropdown":"search-header-mobile-module-scss-module__tMbEsG__user-dropdown",x:"search-header-mobile-module-scss-module__tMbEsG__x"})},201532,996108,920863,974448,200172,983260,325482,e=>{"use strict";var a=e.i(391398),s=e.i(392919),t=e.i(316806),l=e.i(168489);let o=(0,l.default)(()=>e.A(753183),{loadableGenerated:{modules:[384109]},loading:()=>(0,a.jsx)(a.Fragment,{}),ssr:!0}),n=(0,l.default)(()=>e.A(332575),{loadableGenerated:{modules:[920350]},loading:()=>(0,a.jsx)(a.Fragment,{}),ssr:!0});e.s(["default",0,({routeName:e,navConfig:l,useLightTheme:i})=>(0,s.useGrowthBook)().getFeatureValue(t.NEW_HEADER_FLAG,!1)?(0,a.jsx)(n,{routeName:e,navConfig:l,useLightTheme:i}):(0,a.jsx)(o,{routeName:e,useLightTheme:i})],201532);var i=e.i(191788),d=e.i(422011);e.i(301943);var r=e.i(953498),u=e.i(464161),c=e.i(203828),m=e.i(99969),h=e.i(918345),_=e.i(565585),f=e.i(313990),x=e.i(599184),p=e.i(154029),b=e.i(288430),g=e.i(206223),C=e.i(937052),N=e.i(708151),j=e.i(56958);e.i(96526);var v=e.i(232780),I=e.i(990321);let y=({isInPanel:e=!1,isHomeAppraisal:s=!1})=>{let{lastSearchLocation:t}=(0,v.usePreferencesContext)(),[l,o]=(0,i.useState)(e),[n,d]=(0,i.useState)(t?t.description:""),{getPlaceholder:r}=(0,g.useSearchPlaceholder)(),u=r(I.SEARCH_OPTION_BUY);return(0,a.jsx)("div",{className:(0,m.buildClassName)(j.default.component,j.default["exp-theme"],s&&j.default["home-appraisal"],j.default["fake-search"]),children:(0,a.jsxs)("div",{className:(0,m.buildClassName)(j.default["search-wrapper"],j.default["exp-wrapper"]),ref:(0,b.default)(()=>o(!1)),children:[(0,a.jsx)(N.default,{name:"search",placeholder:u,value:n,onValueChange:d,autoComplete:"off",autoFocus:e,"data-isopen":l.toString()}),(0,a.jsx)("div",{className:j.default["search-button-container"],children:(0,a.jsx)(C.default,{label:"Search",theme:"primary"})})]})})};var S=e.i(949618),E=e.i(515848),w=e.i(919643),T=e.i(635891),O=e.i(267544),A=e.i(902213);let k=["/","/referrals","/home-appraisal","/exp-specialized-divisions","/sell","/buy","/explore-exp","/join-exp","/join-exp-us","/join-exp-ca","/my-link-my-lead","/income","/relocation","/reo","/inservice-life","/commercial-life","/military-rewards-program","/commercial"],M=["/relocation","/reo"];var L=e.i(987331),P=e.i(741786),K=e.i(511286),R=e.i(435225),U=e.i(741771),B=e.i(173250),H=e.i(546933),W=e.i(86091),F=e.i(741850);e.i(664157);var G=e.i(271179);e.i(452617);var D=e.i(559278),Q=e.i(400894),V=e.i(765667),z=e.i(741230),Y=e.i(585594);let $=(0,l.default)(()=>e.A(664055),{loadableGenerated:{modules:[754294]},loading:()=>(0,a.jsx)(H.default,{}),ssr:!1});e.s(["default",0,({tenantId:e,showAdvancedSearch:s=!0,isSearchOrAreaPage:t=!1,isShowing404Page:l=!1})=>{let o,n=(0,r.getTenantById)(e),{authMenuItems:g,menuItems:N,mainButtonCopy:j,authButtonCopy:I,buttonLabels:H}=(0,B.useTranslatedHeaderConfig)(e),{isAuthenticated:X,user:J,isCrawler:Z}=(0,_.useUserContext)(),{openModal:q}=(0,i.useContext)(f.ModalContext),{isSearchPanelOpen:ee,setIsSearchPanelOpen:ea,features:es}=(0,O.useFeaturesContext)(),{setIsMapSearchOpen:et,isMapSearchOpen:el,listingParams:eo,isAiSearch:en}=(0,v.usePreferencesContext)(),[ei,ed]=(0,i.useState)(Z),[er,eu]=(0,i.useState)(!1),[ec,em]=(0,i.useState)(!1),eh=(0,w.useIsMobile)(),e_=(0,c.useRouter)(),{trackExpEvent:ef}=(0,P.useTrackExpOnlyEvents)(),ex=k.includes(e_.pathname)&&!l,ep=M.includes(e_.pathname),eb="/agents-search"===e_.pathname,eg="/"===e_.pathname,eC="/search"===e_.pathname,eN=(0,u.isTenantExpUS)(n.id),ej=(n.features.UseLocalFocusHomepage??!1)||es?.useLocalFocusHomepage===!0,ev=(0,u.isTenantExpUS)(n.id)&&e_.pathname.startsWith("/join-exp-us"),eI=(0,u.isTenantExpCA)(e)&&e_.pathname.startsWith("/join-exp-ca"),ey=ev||eI,eS=(0,u.isTenantExpCA)(e)&&"/join-exp-ca"===e_.pathname,eE=(0,w.useIsDesktop)(),ew=(0,U.getJoinExpConfig)(n),eT=ew?.joinPageContactPath,eO=ew?.joinPageContactPage,eA=ew?.fabDestination,ek=(n.features.AiSearch??!1)&&(0,D.getSmartChatBetaStatus)()===D.SmartChatBetaStatus.OPTED_IN,eM=eC&&ek&&en,eL=eC&&eh&&ek&&en,eP=eC&&ek&&en,eK=(0,b.default)(()=>{ea(!1),et(!1)}),{menuItems:eR,shouldShowContactUsButton:eU,getJoinExpContactUrl:eB}=function({isJoinExp:e,baseMenuItems:a,buttonLabels:s,joinPageContactPath:t,joinPageContactPage:l,trackExpEvent:o}){let n=(0,w.useIsMobile)(),d=()=>e?t:l,r=e&&!n;return{menuItems:(0,i.useMemo)(()=>
1{if(!e)return a;let t={id:"contact-us",label:s?.contactUs||"Contact Us",link:d(),newTab:!0,onClick:()=>o(T.GTM_CLICK_CONTACT_US_BUTTON_JOIN_EXP)},l=a.findIndex(e=>"accessibility"===e.id);return l>=0?[...a.slice(0,l),t,...a.slice(l)]:[t,...a]},[e,n,a,s,t,l]),shouldShowContactUsButton:r,getJoinExpContactUrl:d}}({isJoinExp:ey,baseMenuItems:N,buttonLabels:H,joinPageContactPath:eT,joinPageContactPage:eO,trackExpEvent:ef}),{menuItems:eH}=function({baseMenuItems:e,isFeatureEnabled:s}){let t=(0,c.useRouter)(),{t:l}=(0,G.useTranslation)(Y.Namespaces.COMMON),{setIsAiSearch:o}=(0,v.usePreferencesContext)(),[n,d]=(0,i.useState)((0,D.getSmartChatBetaStatus)()),r=(0,w.useIsDesktop)(),u=(0,i.useCallback)(()=>{(0,D.getSmartChatBetaStatus)()===D.SmartChatBetaStatus.OPTED_IN?((0,D.setSmartChatOptOut)(),o(!1),d(D.SmartChatBetaStatus.OPTED_OUT),(0,z.trackSmartchatOptOut)()):((0,D.setSmartChatOptIn)(),o(!0),d(D.SmartChatBetaStatus.OPTED_IN),(0,z.trackSmartchatOptIn)(),t.push("/search"))},[o,t]),m=(0,i.useMemo)(()=>{switch(n){case D.SmartChatBetaStatus.OPTED_IN:return l(Y.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_DISABLE,{defaultValue:"Disable SmartChat"});case D.SmartChatBetaStatus.OPTED_OUT:return l(Y.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_ENABLE,{defaultValue:"Enable SmartChat"});case D.SmartChatBetaStatus.UNDECIDED:default:return l(Y.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_TRY,{defaultValue:"Try SmartChat"})}},[n,l]),h=(0,i.useMemo)(()=>(0,a.jsx)(Q.default,{backgroundColor:"var(--eXp-Secondary-Brand-Royal, #1B489B)",textColor:"#FFFFFF",size:"small",className:V.default["menu-beta-badge"],children:"BETA"}),[]);return{menuItems:(0,i.useMemo)(()=>s&&r?[...e,{id:"smartchat-beta",label:m,content:h,isLink:!1,onClick:u}]:e,[s,r,m,h,e,u])}}({baseMenuItems:eR,isFeatureEnabled:n.features.AiSearch??!1}),{shouldShowIconOnly:eW}=(o=(0,w.useIsMobile)(),{shouldShowFullButtonText:!o,shouldShowIconOnly:o,isMobile:o,isLargeMobile:(0,w.useIsLargeMobile)()}),eF=J?J.firstName||J.lastName?`${(J?.firstName||"").slice(0,1)}${(J?.lastName||"").slice(0,1)}`:J?.email?.slice(0,1):I,eG=()=>em(window.scrollY>40);(0,i.useEffect)(()=>(window.addEventListener("scroll",eG,{passive:!0}),()=>{window.removeEventListener("scroll",eG)}),[]);let eD=()=>{el?et(!1):ea(!ee)},eQ=()=>(0,a.jsxs)("div",{className:S.default.search,ref:eK,children:[(0,a.jsx)(C.default,{Icon:eh&&L.default,onClick:eD,className:(0,m.buildClassName)(S.default.auth,eh&&S.default.user,(ee||el)&&S.default.active)}),el&&!ee&&eN&&(0,a.jsx)("div",{className:(0,m.buildClassName)(S.default.panel,S.default["no-background-color"]),onClick:()=>{ea(!0),et(!1)},children:(0,a.jsx)(y,{})}),ee&&(0,a.jsxs)("div",{className:S.default.panel,children:[(0,a.jsx)($,{isInPanel:!0,isFilterButtonHidden:!0,hideSearchPanel:()=>ea(!1)}),(0,a.jsx)("div",{className:S.default["full-screen-search"]})]})]}),eV=({url:e})=>(0,a.jsx)(h.default,{onClick:()=>ef(T.GTM_CLICK_CONTACT_US_BUTTON_JOIN_EXP),href:e,target:"_blank",className:S.default["find-your-home"],children:(0,a.jsx)(C.default,{tabIndex:-1,label:H?.contactUs,className:S.default.search})}),ez=()=>(0,a.jsx)(h.default,{href:eA||"",target:"_blank",rel:"noreferrer",className:S.default["find-your-home"],children:(0,a.jsx)(C.default,{tabIndex:-1,label:"Join Now",className:S.default.search})}),eY=()=>(0,a.jsx)(h.default,{onClick:()=>{eg&&ef(T.GTM_EXP_FIND_YOUR_HOME_CLICK_HOME_PAGE),ef(T.GTM_EXP_FIND_YOUR_HOME_CLICK_UNIVERSAL)},href:eN?"/search?openSearch=true":"/search",className:S.default["find-your-home"],children:(0,a.jsx)(C.default,{tabIndex:-1,label:eW?"":j,Icon:eW?L.default:void 0,className:(0,m.buildClassName)(S.default.search,S.default["exp-us-button"],eW&&S.default.user)})}),e$=()=>t&&eh?(0,a.jsx)(eQ,{}):ey?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ez,{}),eU&&(0,a.jsx)(eV,{url:eB()})]}):ey?null:(0,a.jsx)(eY,{}),eX=n.localization?.allowGlobalLocaleSwitching===!0,eJ=ey||eX;return(0,a.jsx)("div",{className:(0,m.buildClassName)(S.default.component,ex&&S.default.home,eb&&S.default["agent-search"],(ec||ep)&&S.default.scrolled,eN&&eg&&!ej&&S.default["exp-us"],eP&&S.default["ai-search-enabled"]),"data-testid":E.headerIds.header,children:(0,a.jsxs)("div",{className:(0,m.buildClassName)(S.default["layout-container"],eL&&S.default["ai-search-enabled-mobile"]),children:[(0,a.jsx)("div",{className:(0,m.buildClassName)(S.default["logo-wrapper"]),"data-testid":E.headerIds.zoocasaHeaderLogo,children:(0,a.jsx)(h.default,{href:"/",as:"/",className:S.default.logo,rel:"noreferrer",children:(0,a.jsx)(p.default,{})})}),(0,a.jsxs)("div",{className:S.default.navigation,children:[eM&&(0,a.jsx)(C.default,{label:"Save Search",onClick:()=>{W.AnalyticsController.trackEvent(T.GTM_SIMPLE_CHAT_SAVE_SEARCH),X?q("create-saved-search",{query:{sort:eo.sort,filter:eo.filter}}):q("login-registration")}}),eS&&!eh&&(0,a.jsx)(h.default,{href:"/commercial-waitlist-ca",className:S.default["find-your-home"],children:(0,a.jsx)(C.default,{tabIndex:-1,label:H?.commercialWaitlist,className:S.default.search})}),(()=>{if(eE){if(t)return null;if(ey||eI||ev)return(0,a.jsx)(e$,{});if(!eg)return(0,a.jsx)(K.default,{})}return(0,a.jsx)(e$,{})})(),(0,a.jsx)(C.default,{label:"",Icon:F.default,onClick:()=>q(f.INTERNATIONAL_LINKS_MODAL,(0,U.getTenantOrganizationConfig)(n).internationalLinks),className:(0,m.buildClassName)(S.default.international,eh&&S.default.mobile)}),eJ&&(0,a.jsx)(d.LocaleSwitcherContainer,{tenantId:e}),!ey&&(X?(0,a.jsx)(x.default,{onClick:()=>{eu(e=>!e)},closeMenu:()=>eu(!1),children:(0,a.jsxs)("span",{"data-testid":E.headerIds.loggedInUser,children:[eF," ",er&&R.default&&(0,a.jsx)(R.default,{items:g})]})}):(0,a.jsx)(C.default,{label:eh?"":eF,Icon:eh&&A.default,onClick:()=>q("login-registration",{roleSelection:n.features.LoginRoleSelection??!1}),className:(0,m.buildClassName)(S.default.auth,eh&&S.default.user)})),(0,a.jsx)(x.default,{className:S.default.menu,testId:E.testIds.menuButton,onClick:()=>{ed(e=>!e)},closeMenu:()=>ed(!1),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:S.default["bar-container"],id:"menu",children:[(0,a.jsx)("span",{className:(0,m.buildClassName)(S.default.bar,ei&&S.default.x)}),(0,a.jsx)("span",{className:(0,m.buildClassName)(S.default.bar,ei&&S.default.x)})]}),ei&&R.default&&(0,a.jsx)(R.default,{items:eH})]})})]}),(0,a.jsx)(a.Fragment,{children:ee&&s&&(0,a.jsxs)("div",{className:S.default.panel,children:[(0,a.jsx)($,{isFilterButtonHidden:!0,isInPanel:!0,hideSearchPanel:()=>ea(!1),testId:E.testIds.advancedSearchMobile}),(0,a.jsx)("div",{className:S.default["full-screen-search"]})]})})]})})}],996108);var X=e.i(835499),J=e.i(832072);function Z({items:e,className:s}){return(0,a.jsx)("div",{className:(0,m.buildClassName)(J.default.component,s,J.default.exp),children:(0,a.jsx)("ul",{className:J.default["menu-items"],children:e.map((e,s)=>e?.onClick?(0,a.jsx)("li",{children:(0,a.jsx)("a",{onClick:e.onClick,"data-testid":e.id+E.testIds.menuDropdownOption,children:e.label})},s):(0,a.jsx)("li",{children:(0,a.jsx)(h.default,{href:e.href,target:e.newTab&&"_blank",testId:`${e.id}-${E.testIds.menuDropdownOption}`,children:e.label})},s))})})}let q=(0,l.default)(()=>e.A(664055),{loadableGenerated:{modules:[754294]},loading:()=>(0,a.jsx)(H.default,{}),ssr:!1});e.s(["default",0,({config:e})=>{let{t:s,ready:t}=(0,G.useTranslation)(Y.Namespaces.EXP_IN_SERVICE),{mainButtonCopy:l,authButtonCopy:o,hasJoinExpPage:n,authMenuItems:d=[],menuItems:r=[]}=e||{},{isAuthenticated:u,user:g,isCrawler:N,signOut:j}=(0,_.useUserContext)(),{openModal:I}=(0,i.useContext)(f.ModalContext),{isSearchPanelOpen:y,setIsSearchPanelOpen:S}=(0,O.useFeaturesContext)(),{setIsMapSearchOpen:K,isMapSearchOpen:R}=(0,v.usePreferencesContext)(),[U,B]=(0,i.useState)(N),[H,W]=(0,i.useState)(!1),[F,D]=(0,i.useState)(!1),Q=(0,w.useIsMobile)(),V=(0,w.useIsIpadMini)(),z=Q&&!V,$=(0,c.useRouter)(),{trackExpEvent:J}=(0,P.useTrackExpOnlyEvents)(),ee=k.includes($.pathname),ea=M.includes($.pathname),es=$.asPath.includes("/inservice-life?page="),et="/agents-search"===$.pathname,el="/"===$.pathname,eo=$.pathname&&$.pathname.startsWith("/search"),en="/[...dynamic]"==$.pathname,ei=n&&"/join-exp"===$.pathname,ed=(0,b.default)(()=>{S(!1),K(!1)}),er=g?g.firstName||g.lastName?`${(g?.firstName||"").slice(0,1)}${(g?.lastName||"").slice(0,1)}`:g?.email?.slice(0,1):o?s(o.key,{defaultValue:o.defaultValue}):"Log in",eu=()=>D(window.scrollY>40);(0,i.useEffect)(()=>(window.addEventListener("scroll",eu,{passive:!0}),()=>{window.removeEventListener("scroll",eu)}),[]);let ec=()=>{R?K(!1):S(!y)},em=()=>(0,a.jsxs)("div",{className:X.default.search,ref:ed,children:[(0,a.jsx)(C.default,{Icon:Q&&L.default,onClick:ec,className:(0,m.buildClassName)(X.default.auth,Q&&X.default.user,(y||R)&&X.default.active)}),y&&(0,a.jsxs)("div",{className:X.default.panel,children:[(0,a.jsx)(q,{isInPanel:!0,isFilterButtonHidden:!0,hideSearchPanel:()=>S(!1)}),(0,a.jsx)("div",{className:X.default["full-screen-search"]})]})]}),eh=()=>(0,a.jsx)(h.default,{href:"https://join.exprealty.com/contact/",className:X.default["find-your-home"],children:(0,a.jsx)(C.default,{tabIndex:-1,label:"Contact Us",className:X.default.search})}),e_=()=>(0,a.jsx)(h.default,{onClick:()=>{el&&J(T.GTM_EXP_FIND_YOUR_HOME_CLICK_HOME_PAGE),J(T.GTM_EXP_FIND_YOUR_HOME_CLICK_UNIVERSAL)},href:"/search",className:X.default["find-your-home"],children:Q?(0,a.jsx)(C.default,{tabIndex:-1,Icon:L.default,className:(0,m.buildClassName)(X.default.auth,X.default.user)}):(0,a.jsx)(C.default,{tabIndex:-1,label:l?s(l.key,{defaultValue:l.defaultValue}):"Search",className:X.default.search})}),ef=r.map(e=>({label:s(e.label.key,{defaultValue:e.label.defaultValue}),href:e.link,id:e.id,newTab:e.newTab})),ex=d.map(e=>({label:s(e.label.key,{defaultValue:e.label.defaultValue}),href:e.link,id:e.id,onClick:e?.signOut?j:void 0}));return t?(0,a.jsx)("div",{className:(0,m.buildClassName)(X.default.component,ee&&!es&&X.default.home,et&&X.default["agent-search"],(F||ea||es)&&X.default.scrolled),"data-testid":E.headerIds.header,children:(0,a.jsxs)("div",{className:(0,m.buildClassName)(X.default["layout-container"]),children:[(0,a.jsx)("div",{className:(0,m.buildClassName)(X.default["logo-wrapper"]),"data-testid":E.headerIds.zoocasaHeaderLogo,children:(0,a.jsx)(h.default,{href:"/",as:"/",className:X.default.logo,rel:"noreferrer",children:(0,a.jsx)(p.default,{})})}),(0,a.jsxs)("div",{className:X.default.navigation,children:[(0,a.jsx)(()=>(eo||en)&&Q?(0,a.jsx)(em,{}):ei?(0,a.jsx)(eh,{}):(0,a.jsx)(e_,{}),{}),u?(0,a.jsx)(x.default,{onClick:()=>{W(e=>!e)},closeMenu:()=>W(!1),children:(0,a.jsxs)("span",{"data-testid":E.headerIds.loggedInUser,children:[er," ",H&&Z&&(0,a.jsx)(Z,{items:ex})]})}):(0,a.jsx)(C.default,{label:Q?"":er,Icon:Q&&A.default,onClick:()=>I("login-registration"),className:(0,m.buildClassName)(X.default.auth,Q&&X.default.user)}),(0,a.jsx)(x.default,{className:X.default.menu,testId:E.testIds.menuButton,onClick:()=>{B(e=>!e)},closeMenu:()=>B(!1),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:X.default["bar-container"],id:"menu",children:[(0,a.jsx)("span",{className:(0,m.buildClassName)(X.default.bar,U&&X.default.x)}),(0,a.jsx)("span",{className:(0,m.buildClassName)(X.default.bar,U&&X.default.x)})]}),U&&Z&&(0,a.jsx)(Z,{items:ef})]})})]}),(0,a.jsx)(a.Fragment,{children:y&&z&&(0,a.jsxs)("div",{className:X.default.panel,children:[(0,a.jsx)(q,{isFilterButtonHidden:!0,isInPanel:!0,hideSearchPanel:()=>S(!1),testId:E.testIds.advancedSearchMobile}),(0,a.jsx)("div",{className:X.default["full-screen-search"]})]})})]})}):null}],920863);var ee=e.i(65030),ea=e.i(337153),es=e.i(898607),et=e.i(396559);let el={...ee.zoocasaNavigationConfig,menuTrigger:(0,a.jsx)(ea.default,{}),mobileUserTrigger:(0,a.jsx)(es.default,{}),mobileMenuTrigger:(0,a.jsx)(ea.default,{}),panelClassName:et.default["light-panel"]};e.s(["zoocasaLightNavigationConfig",0,el],974448);var eo=e.i(581687),en=e.i(164056),ei=e.i(303780),ed=e.i(121432),er=e.i(16135),eu=e.i(917563);let ec=(0,i.forwardRef)(({value:e,onValueChange:s,onSubmit:t,leftIcon:l,middleIcon:o,rightIcon:n,onLeftIconClick:i,onMiddleIconClick:d,onRightIconClick:r,variant:u="default",showMiddleIcon:c=!1,tag:h,onTagRemove:_,testId:f,testIdMiddleIcon:x,className:p,disabled:b,...g},C)=>{let N=(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(ei.InputAdornment,{position:"start",children:(0,a.jsx)(er.Chip,{label:h,onDelete:_,deleteIcon:o?(0,a.jsx)("span",{children:o}):void 0,size:"small",sx:{height:"70%",backgroundColor:"var(--themes-colors-tag-background, action.selected)",fontWeight:600}})}):l?(0,a.jsx)(ei.InputAdornment,{position:"start",children:(0,a.jsx)(ed.IconButton,{onClick:i,edge:"start",size:"small",sx:{color:"var(--themes-colors-text-muted, text.secondary)"},children:l})}):null}),j=(0,a.jsxs)(a.Fragment,{children:[o&&c&&!h&&(0,a.jsx)(ei.InputAdornment,{position:"end",children:(0,a.jsx)(ed.IconButton,{onClick:d,size:"small","data-testid":x,sx:{color:"var(--themes-colors-text-muted, text.secondary)","& svg":{width:"0.8em",he
1ight:"0.8em"}},children:o})}),n&&(0,a.jsx)(ei.InputAdornment,{position:"end",children:(0,a.jsx)(ed.IconButton,{onClick:r,edge:"end",sx:{height:"2em",borderRadius:"var(--themes-icons-border-radius, 50%)",color:"var(--themes-colors-text-muted, text.secondary)"},children:n})})]});return(0,a.jsx)(eu.Box,{className:(0,m.buildClassName)(p),sx:{width:"100%",height:"100%"},children:(0,a.jsx)(en.TextField,{inputRef:C,value:e,onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&t&&(e.preventDefault(),t()),g.onKeyDown?.(e)},disabled:b||!!h,variant:"filled"===u?"filled":"outlined",fullWidth:!0,autoComplete:"off",InputProps:{startAdornment:N,endAdornment:j,inputProps:{"data-testid":f,...g}},sx:{height:"45px","& .MuiOutlinedInput-root":{height:"45px",borderRadius:"var(--themes-icons-border-radius, 100px)",backgroundColor:"var(--themes-colors-background, white)",fontSize:"0.975em",transition:"border-color 0.2s ease",boxShadow:"var(--themes-shadows-light, box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08))","&.Mui-disabled":{backgroundColor:"var(--themes-colors-disabled-background, action.disabledBackground)"},"&.Mui-focused":{"& fieldset":{outline:"none",border:"1px solid var(--themes-colors-primary, black)"}}},"& .MuiFilledInput-root":{height:"100%",borderRadius:"var(--themes-icons-border-radius, 100px)",backgroundColor:"var(--themes-colors-tertiary-background, action.hover)",border:"none","&:before, &:after":{display:"none"}},"& .MuiInputBase-input":{padding:"0 0 0 1px !important",height:"45px",lineHeight:"45px",fontFamily:"var(--font-family-sans-serif, inherit)","&::placeholder":{color:"var(--themes-colors-text-muted, text.secondary)! important",opacity:.5,lineHeight:"45px"},border:"none !important"}},...g})})});function em({inputProps:e,inputRef:s,dropdown:t,isDropdownOpen:l=!1,onClickOutside:o,className:n,dropdownClassName:i,testId:d,renderInput:r}){let u=(0,b.default)(()=>{o?.()});return(0,a.jsxs)("div",{ref:u,className:(0,m.buildClassName)(eo.default.component,n),"data-testid":d,children:[l&&t&&(0,a.jsx)("div",{className:(0,m.buildClassName)(eo.default.dropdown,i),children:t}),r?r():(0,a.jsx)(ec,{ref:s,...e})]})}ec.displayName="IconInput",e.s(["default",0,em],200172);var eh=e.i(786464),e_=e.i(870367),ef=e.i(834939),ex=e.i(805780),ep=e.i(61836),eb=e.i(385649);let eg=function({locationQuery:e,isLocationDropdownActive:s,isAreaSearch:t=!1,setLocationQuery:l,setIsLocationDropdownActive:o,setActivePrediction:n=e=>void 0,onClick:d,className:r,chosenArea:u,setChosenArea:c,placeholder:h,searchOption:_=I.SEARCH_OPTION_BUY,onSearchIconClick:f,onSearchBarClickAnalytics:x}){let{t:p}=(0,G.useTranslation)(Y.Namespaces.SEARCH),{isLoadingSearchPredictions:b,searchPredictions:g,searchAgentPredictions:C,isTyping:N,isAgentSearch:j,showMiddleIcon:v,handleInputChange:y,handleInputClick:S,handleInputFocus:w,handleInputBlur:T,handleSearchIconClick:A,handleClearClick:k,handleSuggestedLocationClick:M,handleKeyDown:L,handleClickOutside:P}=function({locationQuery:e,setLocationQuery:a,setIsLocationDropdownActive:s,onClick:t,setActivePrediction:l=()=>void 0,searchOption:o=I.SEARCH_OPTION_BUY,chosenArea:n,setChosenArea:d,onSearchIconClick:r,onSearchBarClickAnalytics:u}){let{features:c}=(0,O.useFeaturesContext)(),{isLoadingSearchPredictions:m,searchPredictions:h,searchAgentPredictions:_,isTyping:f,waitForPredictionsToLoad:x}=(0,ex.default)({queryString:e,useUsListings:c.useUsListings,searchOptions:o}),p=o===I.SEARCH_OPTION_AGENTS,{handleFocus:b,handleInput:g,handleBlur:C,markSearchAsSubmitted:N}=(0,ep.useSearchBarTracking)({textInputRef:null,locationQuery:e,isHomePage:!1,onSearchPage:!1,isInPanel:!1}),j=(0,i.useRef)([]);(0,i.useEffect)(()=>{j.current=h},[h]);let v=(0,i.useCallback)(e=>{a(e),g(e)},[a,g]),y=(0,i.useCallback)(()=>{u?.(),s(!0)},[u,s]),S=(0,i.useCallback)(()=>{b()},[b]),E=(0,i.useCallback)(()=>{C()},[C]),w=(0,i.useCallback)(()=>{a(""),d&&d(""),g("")},[a,d,g]),T=(0,i.useCallback)(async()=>{await x();let a=async(e=2e3)=>{j.current.length>0||await new Promise(a=>{let s=Date.now(),t=setInterval(()=>{let l=j.current.length>0,o=Date.now()-s>=e;(l||o)&&(clearInterval(t),a())},50)})};await a(),N(),r&&r(j.current,e)},[x,N,r,e]),A=(0,i.useCallback)(e=>{N(),l(e),t(e)},[N,l,t]),k=(0,i.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),T())},[T]);return{isLoadingSearchPredictions:m,searchPredictions:h,searchAgentPredictions:_,isTyping:f,isAgentSearch:p,showMiddleIcon:!!(e&&!n),handleInputChange:v,handleInputClick:y,handleInputFocus:S,handleInputBlur:E,handleSearchIconClick:T,handleClearClick:w,handleSuggestedLocationClick:A,handleKeyDown:k,handleClickOutside:(0,i.useCallback)(()=>{s(!1)},[s])}}({locationQuery:e,setLocationQuery:l,isLocationDropdownActive:s,setIsLocationDropdownActive:o,onClick:d,setActivePrediction:n,searchOption:_,isAreaSearch:t,chosenArea:u,setChosenArea:c,onSearchIconClick:f,onSearchBarClickAnalytics:x}),K=p(Y.LOCALE_SEARCH_PATHS.LOCATION,{defaultValue:"Location"});return(0,a.jsx)(em,{inputProps:{value:e,onValueChange:y,placeholder:h||K,onClick:S,onFocus:w,onBlur:T,onKeyDown:L,onSubmit:A,leftIcon:(0,a.jsx)(e_.default,{className:eb.default["search-icon"]}),middleIcon:(0,a.jsx)(ef.default,{}),showMiddleIcon:v,onMiddleIconClick:k,tag:u,onTagRemove:k,testId:E.mapPageIds.mapPageSearchbar,testIdMiddleIcon:"mapPageSearchbarClear",className:(0,m.buildClassName)(eb.default.locationInput)},dropdown:(0,a.jsx)(eh.default,{isLoading:b,searchPredictions:g,setActivePrediction:n,onClick:M,isActive:s,isAreaSearch:t,isAdvancedSearch:!0,locationQuery:e,isTyping:N,hideSearchPanel:()=>o(!1),disablePopularSearches:j||t,searchAgentPredictions:C,className:eb.default["suggested-location-dropdown"]}),isDropdownOpen:s,onClickOutside:P,className:(0,m.buildClassName)(eb.default.component,r)})};var eC=e.i(109516),eN=e.i(571187);e.i(531273);var ej=e.i(300386),ej=ej,ev=e.i(792902),ev=ev,eI=e.i(655492);e.s(["SearchHeaderMobile",0,function({tenantId:e,locationQuery:s,isLocationDropdownActive:t,setLocationQuery:l,setIsLocationDropdownActive:o,onLocationClick:n,placeholder:d,className:r,onAuthButtonClick:u,onMenuButtonClick:c,onSearchBarClickAnalytics:h}){let[p,b]=(0,i.useState)(!1),[g,C]=(0,i.useState)(!1),[N,j]=(0,i.useState)(!0),[v,I]=(0,i.useState)(0),{isAuthenticated:y,user:S}=(0,_.useUserContext)(),{openModal:w}=(0,i.useContext)(f.ModalContext),{authMenuItems:T,menuItems:O,authButtonCopy:A}=(0,B.useTranslatedHeaderConfig)(e),k=()=>{c?.(),b(e=>!e)},M=S?S.firstName||S.lastName?`${(S?.firstName||"").slice(0,1)}${(S?.lastName||"").slice(0,1)}`:S?.email?.slice(0,1):A,L=(0,eC.default)(()=>{let e=window.scrollY;e>100&&e>v?j(!1):j(!0),I(e)},50);return(0,i.useEffect)(()=>(window.addEventListener("scroll",L,{passive:!0}),()=>window.removeEventListener("scroll",L)),[L]),(0,a.jsx)("div",{className:(0,m.buildClassName)(eN.default.component,N?eN.default["is-visible"]:eN.default["is-hidden"],r),"data-testid":E.headerIds.header,children:(0,a.jsxs)("div",{className:eN.default["layout-container"],children:[(0,a.jsxs)("div",{className:eN.default["search-wrapper"],children:[t&&(0,a.jsx)(eI.default,{icon:(0,a.jsx)(ev.default,{}),onClick:k,ariaLabel:"Toggle menu",className:eN.default["back-icon"]}),(0,a.jsx)(eg,{locationQuery:s,isLocationDropdownActive:t,setLocationQuery:l,setIsLocationDropdownActive:o,onClick:n,placeholder:d,className:eN.default["location-search"],onSearchBarClickAnalytics:h})]}),!t&&(0,a.jsxs)("div",{className:eN.default.navigation,children:[(0,a.jsx)(x.default,{onClick:y?()=>{u?.(),C(e=>!e)}:()=>{u?.(),w("login-registration")},closeMenu:()=>C(!1),className:eN.default.auth,testId:E.headerIds.loginHeader,children:(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsxs)("span",{"data-testid":E.headerIds.loggedInUser,children:[M,g&&(0,a.jsx)(R.default,{items:T,className:eN.default["user-dropdown"]})]}),!y&&(0,a.jsx)(es.default,{})]})}),(0,a.jsx)(x.default,{className:(0,m.buildClassName)(eN.default.menu,p&&eN.default.active),testId:E.testIds.menuButton,onClick:k,closeMenu:()=>b(!1),children:(0,a.jsxs)(a.Fragment,{children:[p?(0,a.jsx)(ej.default,{}):(0,a.jsx)(ea.default,{}),p&&(0,a.jsx)(R.default,{items:O})]})})]})]})})}],983260),e.s([],325482)},328216,e=>{"use strict";var a=e.i(191788),s=e.i(203828);e.i(96526);var t=e.i(232780),l=e.i(565585),o=e.i(570625),n=e.i(62262),i=e.i(455143);
1e.s(["useSearchResultClick",0,(e=!1)=>{let d=(0,s.useRouter)(),{listingParams:r,addToRecentSearches:u}=(0,t.usePreferencesContext)(),{user:c}=(0,l.useUserContext)(),{themeName:m}=(0,o.useThemeContext)(),[h,_]=(0,a.useState)(!1),f=(0,i.default)();return(0,a.useEffect)(()=>{_(window.location.pathname.startsWith("/search"))},[d.pathname]),a=>{(0,n.handleSearchResult)({searchPrediction:a,listingParams:r,user:c,map:h?f:void 0,addToRecentSearches:u,themeName:m,forceAreapage:e})}}])},360696,e=>{"use strict";var a=e.i(391398),s=e.i(191788),t=e.i(203828),l=e.i(201532),o=e.i(996108),n=e.i(920863),i=e.i(16034),d=e.i(33618),r=e.i(511058),u=e.i(797595),c=e.i(86091),m=e.i(99969),h=e.i(957537),_=e.i(267544),f=e.i(122500);e.i(27046);var x=e.i(578666);e.i(96526);var p=e.i(570625),b=e.i(565585),g=e.i(71407),C=e.i(736679),N=e.i(464161),j=e.i(65030),v=e.i(974448),I=e.i(368497),y=e.i(919643),S=e.i(121241),E=e.i(478617);e.i(611450);var w=e.i(486146),T=e.i(66100),O=e.i(658328),A=e.i(953498),k=e.i(982885),M=e.i(365278);e.i(325482);var L=e.i(983260),P=e.i(328216),K=e.i(635891);let R=({tenantId:e,routeName:t,isShowing404Page:l})=>{let n=(0,y.useIsMobile)(),i=(0,y.useIsIpadMini)(),d=t===I.SEARCH_PAGE_ROUTE_NAME||t===x.AREA_LISTINGS_ROUTE,[r,u]=(0,s.useState)(!1),[m,h]=(0,s.useState)(""),[_,f]=(0,s.useState)(),p=(0,P.useSearchResultClick)(),g=(t===I.SEARCH_PAGE_ROUTE_NAME||t===x.AREA_LISTINGS_ROUTE)&&!r,{isAuthenticated:C}=(0,b.useUserContext)(),N=(0,s.useCallback)(e=>{f(e.description.split(",")[0]),p(e),u(!1),h(e.description)},[p]),j=(0,s.useCallback)(()=>{c.AnalyticsController.trackEvent(K.GTM_SEARCH_HEADER_MOBILE_AUTH_BUTTON_CLICK,"User Interaction",C?"authenticated":"unauthenticated")},[C]),v=(0,s.useCallback)(()=>{c.AnalyticsController.trackEvent(K.GTM_SEARCH_HEADER_MOBILE_MENU_BUTTON_CLICK,"Navigation")},[]),S=(0,s.useCallback)(()=>{c.AnalyticsController.trackEvent(K.GTM_SEARCH_HEADER_MOBILE_SEARCH_BAR_CLICK,"Search Interaction")},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(M.default,{show:"mobile-small",renderMode:"conditional",children:(0,a.jsx)(L.SearchHeaderMobile,{className:g&&k.default["transparent-header"],tenantId:e,locationQuery:m,isLocationDropdownActive:r,setLocationQuery:h,setIsLocationDropdownActive:u,onLocationClick:N,placeholder:_,onAuthButtonClick:j,onMenuButtonClick:v,onSearchBarClickAnalytics:S})}),(0,a.jsx)(M.default,{show:"tablet-small-up",renderMode:"conditional",children:(0,a.jsx)(o.default,{tenantId:e,showAdvancedSearch:n&&!i&&!d,isSearchOrAreaPage:d,isShowing404Page:l})})]})};function U({children:e,className:l="",showFooter:o=!0,routeName:n,renderHeader:i,isShowing404Page:d,noLoadingOnSamePath:u=!1}){let{isLoading:f}=(0,T.useRouterLoading)({noLoadingOnSamePath:u}),g=(0,t.useRouter)(),{tenantId:C}=(0,p.useThemeContext)(),{areDelayedScriptsLoaded:N,features:j}=(0,_.useFeaturesContext)(),{siteLocation:v}=(0,b.useUser)(),[I,y]=(0,s.useState)((0,S.shouldShowAccessibilityWidget)(C));(0,O.useIsomorphicLayoutEffect)(()=>{E.default.get("accessibilityWidgetClosed")&&y(!1)},[]),(0,s.useEffect)(()=>{N&&c.AnalyticsController?.trackDelayedPageView()},[N]);let A=g.route.match(/^((?!\/team\/|\/search).)*$/)&&o,M=g.pathname.includes("/newhomes")?x.NEWHOMES_ROUTE:g.route;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.WebVitals,{}),i?i():(0,a.jsx)(R,{tenantId:C,routeName:n,isShowing404Page:d}),f&&(0,a.jsx)("div",{className:k.default.loading,children:(0,a.jsx)(h.default,{})}),!f&&(0,a.jsx)("div",{className:(0,m.buildClassName)(k.default.page,l),children:e}),A&&(0,a.jsx)(r.default,{canShowAccessibilityWidget:I,tenantId:C,countryCode:v,route:M,features:j})]})}let B=["/home-appraisal/property-details/results","/search","/explore-exp","/referrals","/my-link-my-lead","/sell","/buy","/agents-search","/exp-specialized-divisions","/experts","/income","/relocation","/reo","/join-exp","/join-exp-ca","/join-exp-us"],H=({tenantId:e,routeName:s,isShowing404Page:t})=>{let{features:r}=(0,_.useFeaturesContext)(),u=(0,N.isZoocasaTenant)(e),c=(0,A.getTenantById)(e),m=(c?.features?.UseZoocasaLightHomepage??!1)||r?.useZoocasaLightHomepage===!0,h=m?v.zoocasaLightNavigationConfig:j.zoocasaNavigationConfig,f=(0,N.isTenantExpCommercial)(e)||(0,N.isTenantExpCommercialCa)(e),p=(0,N.isTenantExpCA)(e)||(0,N.isTenantExpUS)(e),b=(0,N.isTenantExpInService)(e),g=(0,N.isTenantAgntInc)(e),S=(0,y.useIsMobile)(),E=(0,y.useIsIpadMini)(),w=s===I.SEARCH_PAGE_ROUTE_NAME||s===x.AREA_LISTINGS_ROUTE;return(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(n.default,{config:C.expInServiceTenant.config.header}),u&&(0,a.jsx)(l.default,{routeName:s,navConfig:h,useLightTheme:m}),p&&(0,a.jsx)(o.default,{tenantId:e,showAdvancedSearch:S&&!E&&!w,isSearchOrAreaPage:w,isShowing404Page:t}),f&&(0,a.jsx)(i.default,{}),g&&(0,a.jsx)(d.default,{})]})};e.s(["default",0,function({children:e,className:l="",showMobileBottomNav:o,showFooter:n=!0,routeName:i,renderHeader:d,isShowing404Page:C,noLoadingOnSamePath:j=!1,contentKey:v}){let y,{isLoading:k}=(0,T.useRouterLoading)({noLoadingOnSamePath:j}),M=(0,t.useRouter)(),{tenantId:L}=(0,p.useThemeContext)(),{areDelayedScriptsLoaded:P,features:K}=(0,_.useFeaturesContext)(),{siteLocation:R}=(0,b.useUser)(),W=(0,A.getTenantById)(L),F=W?.features?.UseNewAreaSearchDesign??!1,G=W?.features?.UseNewHybridPageDesign??!1,D=i===I.SEARCH_PAGE_ROUTE_NAME||i===x.AREA_LISTINGS_ROUTE,[Q,V]=(0,s.use
1State)((0,S.shouldShowAccessibilityWidget)(L));(0,O.useIsomorphicLayoutEffect)(()=>{E.default.get("accessibilityWidgetClosed")&&V(!1)},[]),y=void 0===o?!B.includes(M.route):o,(0,s.useEffect)(()=>{P&&c.AnalyticsController?.trackDelayedPageView()},[P]);let z=M.route.match(/^((?!\/team\/|\/search).)*$/)&&n,Y=M.pathname.includes("/newhomes")?x.NEWHOMES_ROUTE:M.route;return(F||G)&&D?(0,a.jsx)(U,{className:l,showFooter:n,routeName:i,renderHeader:d,isShowing404Page:C,noLoadingOnSamePath:j,children:e}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.WebVitals,{}),d?d():(0,a.jsx)(H,{tenantId:L,routeName:i,isShowing404Page:C}),k&&(0,a.jsx)("div",{className:g.default.loading,children:(0,a.jsx)(h.default,{})}),!k&&(0,a.jsx)("div",{className:(0,m.buildClassName)(g.default.page,l),children:e}),z&&(0,N.isTenantAgntInc)(L)&&(0,a.jsx)(u.default,{}),z&&!(0,N.isTenantAgntInc)(L)&&(0,a.jsx)(r.default,{canShowAccessibilityWidget:Q,tenantId:L,countryCode:R,route:Y,features:K}),(0,a.jsx)("div",{className:g.default["mobile-nav"],children:y&&(0,a.jsx)(f.default,{})})]})}],360696)}]);
2
3//# sourceMappingURL=07rvc-cl1z6a0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.