1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,741850,(e,a,s)=>{"use strict";var l=e.r(978509);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var t=l(e.r(421506)),o=e.r(391398);s.default=(0,t.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")},429285,e=>{e.v({component:"style-module-scss-module__KsZitq__component",content:"style-module-scss-module__KsZitq__content",dropdown:"style-module-scss-module__KsZitq__dropdown",icon:"style-module-scss-module__KsZitq__icon",iconOnly:"style-module-scss-module__KsZitq__iconOnly",localeCode:"style-module-scss-module__KsZitq__localeCode"})},45965,(e,a,s)=>{"use strict";var l=e.r(978509);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var t=l(e.r(421506)),o=e.r(391398);s.default=(0,t.default)((0,o.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate")},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"})},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),l=e.i(316806),t=e.i(168489);let o=(0,t.default)(()=>e.A(753183),{loadableGenerated:{modules:[384109]},loading:()=>(0,a.jsx)(a.Fragment,{}),ssr:!0}),n=(0,t.default)(()=>e.A(332575),{loadableGenerated:{modules:[920350]},loading:()=>(0,a.jsx)(a.Fragment,{}),ssr:!0});e.s(["default",0,({routeName:e,navConfig:t,useLightTheme:i})=>(0,s.useGrowthBook)().getFeatureValue(l.NEW_HEADER_FLAG,!1)?(0,a.jsx)(n,{routeName:e,navConfig:t,useLightTheme:i}):(0,a.jsx)(o,{routeName:e,useLightTheme:i})],201532);var i=e.i(191788),d=e.i(599184),r=e.i(435225),u=e.i(429285),c=e.i(99969),m=e.i(45965),h=e.i(919643);function _({shouldRender:e,currentLocale:s,localeOptions:l,changeLocale:t}){let[o,n]=(0,i.useState)(!1),f=(0,h.useIsMobile)(),x=/^[a-zA-Z]{2}-[a-zA-Z]{2}$/.test(s),p=()=>{n(!1)};return e?(0,a.jsx)(d.default,{className:(0,c.buildClassName)(u.default.component,x&&!f&&u.default.localeCode,f&&u.default.iconOnly),onClick:()=>{n(e=>!e)},closeMenu:p,testId:"locale-switcher",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{id:"locale-menu",className:u.default.content,children:f?(0,a.jsx)(m.default,{className:u.default.icon}):s?.toUpperCase()}),o&&(0,a.jsx)(r.default,{items:l.map(e=>({...e,onClick:async()=>{e.onClick&&e.onClick();try{await t(e.id),p()}catch(e){console.error("Failed to change locale:",e)}}})),className:u.default.dropdown})]})}):null}var f=e.i(466589);function x({tenantId:e}){let{isEnabled:s,isReady:l,currentLocale:t,localeOptions:o,changeLocale:n}=(0,f.useLocale)(e);return(0,a.jsx)(_,{shouldRender:s&&l,currentLocale:t,localeOptions:o,changeLocale:n})}e.i(301943);var p=e.i(953498),b=e.i(464161),g=e.i(203828),C=e.i(918345),j=e.i(565585),N=e.i(313990),v=e.i(154029),y=e.i(288430),I=e.i(206223),S=e.i(937052),E=e.i(708151),w=e.i(56958);e.i(96526);var O=e.i(232780),T=e.i(990321);let A=({isInPanel:e=!1,isHomeAppraisal:s=!1})=>{let{lastSearchLocation:l}=(0,O.usePreferencesContext)(),[t,o]=(0,i.useState)(e),[n,d]=(0,i.useState)(l?l.description:""),{getPlaceholder:r}=(0,I.useSearchPlaceholder)(),u=r(T.SEARCH_OPTION_BUY);return(0,a.jsx)("div",{className:(0,c.buildClassName)(w.default.component,w.default["exp-theme"],s&&w.default["home-appraisal"],w.default["fake-search"]),children:(0,a.jsxs)("div",{className:(0,c.buildClassName)(w.default["search-wrapper"],w.default["exp-wrapper"]),ref:(0,y.default)(()=>o(!1)),children:[(0,a.jsx)(E.default,{name:"search",placeholder:u,value:n,onValueChange:d,autoComplete:"off",autoFocus:e,"data-isopen":t.toString()}),(0,a.jsx)("div",{className:w.default["search-button-container"],children:(0,a.jsx)(S.default,{label:"Search",theme:"primary"})})]})})};var k=e.i(949618),M=e.i(515848),L=e.i(635891),P=e.i(267544),K=e.i(902213);let R=["/","/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"],H=["/relocation","/reo"];var U=e.i(987331),B=e.i(741786),W=e.i(511286),F=e.i(741771),G=e.i(173250),D=e.i(546933),Q=e.i(86091),z=e.i(741850);e.i(664157);var V=e.i(271179);e.i(452617);var Y=e.i(559278),Z=e.i(400894),$=e.i(765667),q=e.i(741230),X=e.i(585594);let J=(0,t.default)(()=>e.A(664055),{loadableGenerated:{modules:[754294]},loading:()=>(0,a.jsx)(D.default,{}),ssr:!1});e.s(["default",0,({tenantId:e,showAdvancedSearch:s=!0,isSearchOrAreaPage:l=!1,isShowing404Page:t=!1})=>{let o,n=(0,p.getTenantById)(e),{authMenuItems:u,menuItems:m,mainButtonCopy:_,authButtonCopy:f,buttonLabels:I}=(0,G.useTranslatedHeaderConfig)(e),{isAuthenticated:E,user:w,isCrawler:T}=(0,j.useUserContext)(),{openModal:D}=(0,i.useContext)(N.ModalContext),{isSearchPanelOpen:ee,setIsSearchPanelOpen:ea,features:es}=(0,P.useFeaturesContext)(),{setIsMapSearchOpen:el,isMapSearchOpen:et,listingParams:eo,isAiSearch:en}=(0,O.usePreferencesContext)(),[ei,ed]=(0,i.useState)(T),[er,eu]=(0,i.useState)(!1),[ec,em]=(0,i.useState)(!1),eh=(0,h.useIsMobile)(),e_=(0,g.useRouter)(),{trackExpEvent:ef}=(0,B.useTrackExpOnlyEvents)(),ex=R.includes(e_.pathname)&&!t,ep=H.includes(e_.pathname),eb="/agents-search"===e_.pathname,eg="/"===e_.pathname,eC="/search"===e_.pathname,ej=(0,b.isTenantExpUS)(n.id),eN=(n.features.UseLocalFocusHomepage??!1)||es?.useLocalFocusHomepage===!0,ev=(0,b.isTenantExpUS)(n.id)&&e_.pathname.startsWith("/join-exp-us"),ey=(0,b.isTenantExpCA)(e)&&e_.pathname.startsWith("/join-exp-ca"),eI=ev||ey,eS=(0,b.isTenantExpCA)(e)&&"/join-exp-ca"===e_.pathname,eE=(0,h.useIsDesktop)(),ew=(0,F.getJoinExpConfig)(n),eO=ew?.joinPageContactPath,eT=ew?.joinPageContactPage,eA=ew?.fabDestination,ek=(n.features.AiSearch??!1)&&(0,Y.getSmartChatBetaStatus)()===Y.SmartChatBetaStatus.OPTED_IN,eM=eC&&ek&&en,eL=eC&&eh&&ek&&en,eP=eC&&ek&&en,eK=(0,y.default)(()=>{ea(!1),el(!1)}),{menuItems:eR,shouldShowContactUsButton:eH,getJoinExpContactUrl:eU}=function({isJoinExp:e,baseMenuItems:a,buttonLabels:s,joinPageContactPath:l,joinPageContactPage:t,trackExpEvent:o}){let n=(0,h.useIsMobile)(),d=()=>e?l:t,r=e&&!n;return{menuItems:(0,i.useMemo)(()=>
1{if(!e)return a;let l={id:"contact-us",label:s?.contactUs||"Contact Us",link:d(),newTab:!0,onClick:()=>o(L.GTM_CLICK_CONTACT_US_BUTTON_JOIN_EXP)},t=a.findIndex(e=>"accessibility"===e.id);return t>=0?[...a.slice(0,t),l,...a.slice(t)]:[l,...a]},[e,n,a,s,l,t]),shouldShowContactUsButton:r,getJoinExpContactUrl:d}}({isJoinExp:eI,baseMenuItems:m,buttonLabels:I,joinPageContactPath:eO,joinPageContactPage:eT,trackExpEvent:ef}),{menuItems:eB}=function({baseMenuItems:e,isFeatureEnabled:s}){let l=(0,g.useRouter)(),{t}=(0,V.useTranslation)(X.Namespaces.COMMON),{setIsAiSearch:o}=(0,O.usePreferencesContext)(),[n,d]=(0,i.useState)((0,Y.getSmartChatBetaStatus)()),r=(0,h.useIsDesktop)(),u=(0,i.useCallback)(()=>{(0,Y.getSmartChatBetaStatus)()===Y.SmartChatBetaStatus.OPTED_IN?((0,Y.setSmartChatOptOut)(),o(!1),d(Y.SmartChatBetaStatus.OPTED_OUT),(0,q.trackSmartchatOptOut)()):((0,Y.setSmartChatOptIn)(),o(!0),d(Y.SmartChatBetaStatus.OPTED_IN),(0,q.trackSmartchatOptIn)(),l.push("/search"))},[o,l]),c=(0,i.useMemo)(()=>{switch(n){case Y.SmartChatBetaStatus.OPTED_IN:return t(X.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_DISABLE,{defaultValue:"Disable SmartChat"});case Y.SmartChatBetaStatus.OPTED_OUT:return t(X.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_ENABLE,{defaultValue:"Enable SmartChat"});case Y.SmartChatBetaStatus.UNDECIDED:default:return t(X.LOCALE_COMMON_PATHS.SMART_CHAT_MENU_TRY,{defaultValue:"Try SmartChat"})}},[n,t]),m=(0,i.useMemo)(()=>(0,a.jsx)(Z.default,{backgroundColor:"var(--eXp-Secondary-Brand-Royal, #1B489B)",textColor:"#FFFFFF",size:"small",className:$.default["menu-beta-badge"],children:"BETA"}),[]);return{menuItems:(0,i.useMemo)(()=>s&&r?[...e,{id:"smartchat-beta",label:c,content:m,isLink:!1,onClick:u}]:e,[s,r,c,m,e,u])}}({baseMenuItems:eR,isFeatureEnabled:n.features.AiSearch??!1}),{shouldShowIconOnly:eW}=(o=(0,h.useIsMobile)(),{shouldShowFullButtonText:!o,shouldShowIconOnly:o,isMobile:o,isLargeMobile:(0,h.useIsLargeMobile)()}),eF=w?w.firstName||w.lastName?`${(w?.firstName||"").slice(0,1)}${(w?.lastName||"").slice(0,1)}`:w?.email?.slice(0,1):f,eG=()=>em(window.scrollY>40);(0,i.useEffect)(()=>(window.addEventListener("scroll",eG,{passive:!0}),()=>{window.removeEventListener("scroll",eG)}),[]);let eD=()=>{et?el(!1):ea(!ee)},eQ=()=>(0,a.jsxs)("div",{className:k.default.search,ref:eK,children:[(0,a.jsx)(S.default,{Icon:eh&&U.default,onClick:eD,className:(0,c.buildClassName)(k.default.auth,eh&&k.default.user,(ee||et)&&k.default.active)}),et&&!ee&&ej&&(0,a.jsx)("div",{className:(0,c.buildClassName)(k.default.panel,k.default["no-background-color"]),onClick:()=>{ea(!0),el(!1)},children:(0,a.jsx)(A,{})}),ee&&(0,a.jsxs)("div",{className:k.default.panel,children:[(0,a.jsx)(J,{isInPanel:!0,isFilterButtonHidden:!0,hideSearchPanel:()=>ea(!1)}),(0,a.jsx)("div",{className:k.default["full-screen-search"]})]})]}),ez=({url:e})=>(0,a.jsx)(C.default,{onClick:()=>ef(L.GTM_CLICK_CONTACT_US_BUTTON_JOIN_EXP),href:e,target:"_blank",className:k.default["find-your-home"],children:(0,a.jsx)(S.default,{tabIndex:-1,label:I?.contactUs,className:k.default.search})}),eV=()=>(0,a.jsx)(C.default,{href:eA||"",target:"_blank",rel:"noreferrer",className:k.default["find-your-home"],children:(0,a.jsx)(S.default,{tabIndex:-1,label:"Join Now",className:k.default.search})}),eY=()=>(0,a.jsx)(C.default,{onClick:()=>{eg&&ef(L.GTM_EXP_FIND_YOUR_HOME_CLICK_HOME_PAGE),ef(L.GTM_EXP_FIND_YOUR_HOME_CLICK_UNIVERSAL)},href:ej?"/search?openSearch=true":"/search",className:k.default["find-your-home"],children:(0,a.jsx)(S.default,{tabIndex:-1,label:eW?"":_,Icon:eW?U.default:void 0,className:(0,c.buildClassName)(k.default.search,k.default["exp-us-button"],eW&&k.default.user)})}),eZ=()=>l&&eh?(0,a.jsx)(eQ,{}):eI?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eV,{}),eH&&(0,a.jsx)(ez,{url:eU()})]}):eI?null:(0,a.jsx)(eY,{}),e$=n.localization?.allowGlobalLocaleSwitching===!0,eq=eI||e$;return(0,a.jsx)("div",{className:(0,c.buildClassName)(k.default.component,ex&&k.default.home,eb&&k.default["agent-search"],(ec||ep)&&k.default.scrolled,ej&&eg&&!eN&&k.default["exp-us"],eP&&k.default["ai-search-enabled"]),"data-testid":M.headerIds.header,children:(0,a.jsxs)("div",{className:(0,
1c.buildClassName)(k.default["layout-container"],eL&&k.default["ai-search-enabled-mobile"]),children:[(0,a.jsx)("div",{className:(0,c.buildClassName)(k.default["logo-wrapper"]),"data-testid":M.headerIds.zoocasaHeaderLogo,children:(0,a.jsx)(C.default,{href:"/",as:"/",className:k.default.logo,rel:"noreferrer",children:(0,a.jsx)(v.default,{})})}),(0,a.jsxs)("div",{className:k.default.navigation,children:[eM&&(0,a.jsx)(S.default,{label:"Save Search",onClick:()=>{Q.AnalyticsController.trackEvent(L.GTM_SIMPLE_CHAT_SAVE_SEARCH),E?D("create-saved-search",{query:{sort:eo.sort,filter:eo.filter}}):D("login-registration")}}),eS&&!eh&&(0,a.jsx)(C.default,{href:"/commercial-waitlist-ca",className:k.default["find-your-home"],children:(0,a.jsx)(S.default,{tabIndex:-1,label:I?.commercialWaitlist,className:k.default.search})}),(()=>{if(eE){if(l)return null;if(eI||ey||ev)return(0,a.jsx)(eZ,{});if(!eg)return(0,a.jsx)(W.default,{})}return(0,a.jsx)(eZ,{})})(),(0,a.jsx)(S.default,{label:"",Icon:z.default,onClick:()=>D(N.INTERNATIONAL_LINKS_MODAL,(0,F.getTenantOrganizationConfig)(n).internationalLinks),className:(0,c.buildClassName)(k.default.international,eh&&k.default.mobile)}),eq&&(0,a.jsx)(x,{tenantId:e}),!eI&&(E?(0,a.jsx)(d.default,{onClick:()=>{eu(e=>!e)},closeMenu:()=>eu(!1),children:(0,a.jsxs)("span",{"data-testid":M.headerIds.loggedInUser,children:[eF," ",er&&r.default&&(0,a.jsx)(r.default,{items:u})]})}):(0,a.jsx)(S.default,{label:eh?"":eF,Icon:eh&&K.default,onClick:()=>D("login-registration",{roleSelection:n.features.LoginRoleSelection??!1}),className:(0,c.buildClassName)(k.default.auth,eh&&k.default.user)})),(0,a.jsx)(d.default,{className:k.default.menu,testId:M.testIds.menuButton,onClick:()=>{ed(e=>!e)},closeMenu:()=>ed(!1),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:k.default["bar-container"],id:"menu",children:[(0,a.jsx)("span",{className:(0,c.buildClassName)(k.default.bar,ei&&k.default.x)}),(0,a.jsx)("span",{className:(0,c.buildClassName)(k.default.bar,ei&&k.default.x)})]}),ei&&r.default&&(0,a.jsx)(r.default,{items:eB})]})})]}),(0,a.jsx)(a.Fragment,{children:ee&&s&&(0,a.jsxs)("div",{className:k.default.panel,children:[(0,a.jsx)(J,{isFilterButtonHidden:!0,isInPanel:!0,hideSearchPanel:()=>ea(!1),testId:M.testIds.advancedSearchMobile}),(0,a.jsx)("div",{className:k.default["full-screen-search"]})]})})]})})}],996108);var ee=e.i(835499),ea=e.i(832072);function es({items:e,className:s}){return(0,a.jsx)("div",{className:(0,c.buildClassName)(ea.default.component,s,ea.default.exp),children:(0,a.jsx)("ul",{className:ea.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+M.testIds.menuDropdownOption,children:e.label})},s):(0,a.jsx)("li",{children:(0,a.jsx)(C.default,{href:e.href,target:e.newTab&&"_blank",testId:`${e.id}-${M.testIds.menuDropdownOption}`,children:e.label})},s))})})}let el=(0,t.default)(()=>e.A(664055),{loadableGenerated:{modules:[754294]},loading:()=>(0,a.jsx)(D.default,{}),ssr:!1});e.s(["default",0,({config:e})=>{let{t:s,ready:l}=(0,V.useTranslation)(X.Namespaces.EXP_IN_SERVICE),{mainButtonCopy:t,authButtonCopy:o,hasJoinExpPage:n,authMenuItems:r=[],menuItems:u=[]}=e||{},{isAuthenticated:m,user:_,isCrawler:f,signOut:x}=(0,j.useUserContext)(),{openModal:p}=(0,i.useContext)(N.ModalContext),{isSearchPanelOpen:b,setIsSearchPanelOpen:I}=(0,P.useFeaturesContext)(),{setIsMapSearchOpen:E,isMapSearchOpen:w}=(0,O.usePreferencesContext)(),[T,A]=(0,i.useState)(f),[k,W]=(0,i.useState)(!1),[F,G]=(0,i.useState)(!1),D=(0,h.useIsMobile)(),Q=(0,h.useIsIpadMini)(),z=D&&!Q,Y=(0,g.useRouter)(),{trackExpEvent:Z}=(0,B.useTrackExpOnlyEvents)(),$=R.includes(Y.pathname),q=H.includes(Y.pathname),J=Y.asPath.includes("/inservice-life?page="),ea="/agents-search"===Y.pathname,et="/"===Y.pathname,eo=Y.pathname&&Y.pathname.startsWith("/search"),en="/[...dynamic]"==Y.pathname,ei=n&&"/join-exp"===Y.pathname,ed=(0,y.default)(()=>{I(!1),E(!1)}),er=_?_.firstName||_.lastName?`${(_?.firstName||"").slice(0,1)}${(_?.lastName||"").slice(0,1)}`:_?.email?.slice(0,1):o?s(o.key,{defaultValue:o.defaultValue}):"Log in",eu=()=>G(window.scrollY>40);(0,i.useEffect)(()=>(window.addEventListener("scroll",eu,{passive:!0}),()=>{window.removeEventListener("scroll",eu)}),[]);let ec=()=>{w?E(!1):I(!b)},em=()=>(0,a.jsxs)("div",{className:ee.default.search,ref:ed,children:[(0,a.jsx)(S.default,{Icon:D&&U.default,onClick:ec,className:(0,
1c.buildClassName)(ee.default.auth,D&&ee.default.user,(b||w)&&ee.default.active)}),b&&(0,a.jsxs)("div",{className:ee.default.panel,children:[(0,a.jsx)(el,{isInPanel:!0,isFilterButtonHidden:!0,hideSearchPanel:()=>I(!1)}),(0,a.jsx)("div",{className:ee.default["full-screen-search"]})]})]}),eh=()=>(0,a.jsx)(C.default,{href:"https://join.exprealty.com/contact/",className:ee.default["find-your-home"],children:(0,a.jsx)(S.default,{tabIndex:-1,label:"Contact Us",className:ee.default.search})}),e_=()=>(0,a.jsx)(C.default,{onClick:()=>{et&&Z(L.GTM_EXP_FIND_YOUR_HOME_CLICK_HOME_PAGE),Z(L.GTM_EXP_FIND_YOUR_HOME_CLICK_UNIVERSAL)},href:"/search",className:ee.default["find-your-home"],children:D?(0,a.jsx)(S.default,{tabIndex:-1,Icon:U.default,className:(0,c.buildClassName)(ee.default.auth,ee.default.user)}):(0,a.jsx)(S.default,{tabIndex:-1,label:t?s(t.key,{defaultValue:t.defaultValue}):"Search",className:ee.default.search})}),ef=u.map(e=>({label:s(e.label.key,{defaultValue:e.label.defaultValue}),href:e.link,id:e.id,newTab:e.newTab})),ex=r.map(e=>({label:s(e.label.key,{defaultValue:e.label.defaultValue}),href:e.link,id:e.id,onClick:e?.signOut?x:void 0}));return l?(0,a.jsx)("div",{className:(0,c.buildClassName)(ee.default.component,$&&!J&&ee.default.home,ea&&ee.default["agent-search"],(F||q||J)&&ee.default.scrolled),"data-testid":M.headerIds.header,children:(0,a.jsxs)("div",{className:(0,c.buildClassName)(ee.default["layout-container"]),children:[(0,a.jsx)("div",{className:(0,c.buildClassName)(ee.default["logo-wrapper"]),"data-testid":M.headerIds.zoocasaHeaderLogo,children:(0,a.jsx)(C.default,{href:"/",as:"/",className:ee.default.logo,rel:"noreferrer",children:(0,a.jsx)(v.default,{})})}),(0,a.jsxs)("div",{className:ee.default.navigation,children:[(0,a.jsx)(()=>(eo||en)&&D?(0,a.jsx)(em,{}):ei?(0,a.jsx)(eh,{}):(0,a.jsx)(e_,{}),{}),m?(0,a.jsx)(d.default,{onClick:()=>{W(e=>!e)},closeMenu:()=>W(!1),children:(0,a.jsxs)("span",{"data-testid":M.headerIds.loggedInUser,children:[er," ",k&&es&&(0,a.jsx)(es,{items:ex})]})}):(0,a.jsx)(S.default,{label:D?"":er,Icon:D&&K.default,onClick:()=>p("login-registration"),className:(0,c.buildClassName)(ee.default.auth,D&&ee.default.user)}),(0,a.jsx)(d.default,{className:ee.default.menu,testId:M.testIds.menuButton,onClick:()=>{A(e=>!e)},closeMenu:()=>A(!1),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:ee.default["bar-container"],id:"menu",children:[(0,a.jsx)("span",{className:(0,c.buildClassName)(ee.default.bar,T&&ee.default.x)}),(0,a.jsx)("span",{className:(0,c.buildClassName)(ee.default.bar,T&&ee.default.x)})]}),T&&es&&(0,a.jsx)(es,{items:ef})]})})]}),(0,a.jsx)(a.Fragment,{children:b&&z&&(0,a.jsxs)("div",{className:ee.default.panel,children:[(0,a.jsx)(el,{isFilterButtonHidden:!0,isInPanel:!0,hideSearchPanel:()=>I(!1),testId:M.testIds.advancedSearchMobile}),(0,a.jsx)("div",{className:ee.default["full-screen-search"]})]})})]})}):null}],920863);var et=e.i(65030),eo=e.i(337153),en=e.i(898607),ei=e.i(396559);let ed={...et.zoocasaNavigationConfig,menuTrigger:(0,a.jsx)(eo.default,{}),mobileUserTrigger:(0,a.jsx)(en.default,{}),mobileMenuTrigger:(0,a.jsx)(eo.default,{}),panelClassName:ei.default["light-panel"]};e.s(["zoocasaLightNavigationConfig",0,ed],974448);var er=e.i(581687),eu=e.i(164056),ec=e.i(303780),em=e.i(121432),eh=e.i(16135),e_=e.i(917563);let ef=(0,i.forwardRef)(({value:e,onValueChange:s,onSubmit:l,leftIcon:t,middleIcon:o,rightIcon:n,onLeftIconClick:i,onMiddleIconClick:d,onRightIconClick:r,variant:u="default",showMiddleIcon:m=!1,tag:h,onTagRemove:_,testId:f,testIdMiddleIcon:x,className:p,disabled:b,...g},C)=>{let j=(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(ec.InputAdornment,{position:"start",children:(0,a.jsx)(eh.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}})}):t?(0,a.jsx)(ec.InputAdornment,{position:"start",children:(0,a.jsx)(em.IconButton,{onClick:i,edge:"start",size:"small",sx:{color:"var(--themes-colors-text-muted, text.secondary)"},children:t})}):null}),N=(0,a.jsxs)(a.Fragment,{children:[o&&m&&!h&&(0,a.jsx)(ec.InputAdornment,{position:"end",children:(0,a.jsx)(em.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)(ec.InputAdornment,{position:"end",children:(0,a.jsx)(em.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)(e_.Box,{className:(0,c.buildClassName)(p),sx:{width:"100%",height:"100%"},children:(0,a.jsx)(eu.TextField,{inputRef:C,value:e,onChange:e=>{s(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&l&&(e.preventDefault(),l()),g.onKeyDown?.(e)},disabled:b||!!h,variant:"filled"===u?"filled":"outlined",fullWidth:!0,autoComplete:"off",InputProps:{startAdornment:j,endAdornment:N,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 ex({inputProps:e,inputRef:s,dropdown:l,isDropdownOpen:t=!1,onClickOutside:o,className:n,dropdownClassName:i,testId:d,renderInput:r}){let u=(0,y.default)(()=>{o?.()});return(0,a.jsxs)("div",{ref:u,className:(0,c.buildClassName)(er.default.component,n),"data-testid":d,children:[t&&l&&(0,a.jsx)("div",{className:(0,c.buildClassName)(er.default.dropdown,i),children:l}),r?r():(0,a.jsx)(ef,{ref:s,...e})]})}ef.displayName="IconInput",e.s(["default",0,ex],200172);var ep=e.i(786464),eb=e.i(870367),eg=e.i(834939),eC=e.i(805780),ej=e.i(61836),eN=e.i(385649);let ev=function({locationQuery:e,isLocationDropdownActive:s,isAreaSearch:l=!1,setLocationQuery:t,setIsLocationDropdownActive:o,setActivePrediction:n=e=>void 0,onClick:d,className:r,chosenArea:u,setChosenArea:m,placeholder:h,searchOption:_=T.SEARCH_OPTION_BUY,onSearchIconClick:f,onSearchBarClickAnalytics:x}){let{t:p}=(0,V.useTranslation)(X.Namespaces.SEARCH),{isLoadingSearchPredictions:b,searchPredictions:g,searchAgentPredictions:C,isTyping:j,isAgentSearch:N,showMiddleIcon:v,handleInputChange:y,handleInputClick:I,handleInputFocus:S,handleInputBlur:E,handleSearchIconClick:w,handleClearClick:O,handleSuggestedLocationClick:A,handleKeyDown:k,handleClickOutside:L}=function({locationQuery:e,setLocationQuery:a,setIsLocationDropdownActive:s,onClick:l,setActivePrediction:t=()=>void 0,searchOption:o=T.SEARCH_OPTION_BUY,chosenArea:n,setChosenArea:d,onSearchIconClick:r,onSearchBarClickAnalytics:u}){let{features:c}=(0,P.useFeaturesContext)(),{isLoadingSearchPredictions:m,searchPredictions:h,searchAgentPredictions:_,isTyping:f,waitForPredictionsToLoad:x}=(0,eC.default)({queryString:e,useUsListings:c.useUsListings,searchOptions:o}),p=o===T.SEARCH_OPTION_AGENTS,{handleFocus:b,handleInput:g,handleBlur:C,markSearchAsSubmitted:j}=(0,ej.useSearchBarTracking)({textInputRef:null,locationQuery:e,isHomePage:!1,onSearchPage:!1,isInPanel:!1}),N=(0,i.useRef)([]);(0,i.useEffect)(()=>{N.current=h},[h]);let v=(0,i.useCallback)(e=>{a(e),g(e)},[a,g]),y=(0,i.useCallback)(()=>{u?.(),s(!0)},[u,s]),I=(0,i.useCallback)(()=>{b()},[b]),S=(0,i.useCallback)(()=>{C()},[C]),E=(0,i.useCallback)(()=>{a(""),d&&d(""),g("")},[a,d,g]),w=(0,i.useCallback)(async()=>{await x();let a=async(e=2e3)=>{N.current.length>0||await new Promise(a=>{let s=Date.now(),l=setInterval(()=>{let t=N.current.length>0,o=Date.now()-s>=e;(t||o)&&(clearInterval(l),a())},50)})};await a(),j(),r&&r(N.current,e)},[x,j,r,e]),O=(0,i.useCallback)(e=>{j(),t(e),l(e)},[j,t,l]),A=(0,i.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),w())},[w]);return{isLoadingSearchPredictions:m,searchPredictions:h,searchAgentPredictions:_,isTyping:f,isAgentSearch:p,showMiddleIcon:!!(e&&!n),handleInputChange:v,handleInputClick:y,handleInputFocus:I,handleInputBlur:S,handleSearchIconClick:w,handleClearClick:E,handleSuggestedLocationClick:O,handleKeyDown:A,handleClickOutside:(0,i.useCallback)(()=>{s(!1)},[s])}}({locationQuery:e,setLocationQuery:t,isLocationDropdownActive:s,setIsLocationDropdownActive:o,onClick:d,setActivePrediction:n,searchOption:_,isAreaSearch:l,chosenArea:u,setChosenArea:m,onSearchIconClick:f,onSearchBarClickAnalytics:x}),K=p(X.LOCALE_SEARCH_PATHS.LOCATION,{defaultValue:"Location"});return(0,a.jsx)(ex,{inputProps:{value:e,onValueChange:y,placeholder:h||K,onClick:I,onFocus:S,onBlur:E,onKeyDown:k,onSubmit:w,leftIcon:(0,a.jsx)(eb.default,{className:eN.default["search-icon"]}),middleIcon:(0,a.jsx)(eg.default,{}),showMiddleIcon:v,onMiddleIconClick:O,tag:u,onTagRemove:O,testId:M.mapPageIds.mapPageSearchbar,testIdMiddleIcon:"mapPageSearchbarClear",className:(0,
1c.buildClassName)(eN.default.locationInput)},dropdown:(0,a.jsx)(ep.default,{isLoading:b,searchPredictions:g,setActivePrediction:n,onClick:A,isActive:s,isAreaSearch:l,isAdvancedSearch:!0,locationQuery:e,isTyping:j,hideSearchPanel:()=>o(!1),disablePopularSearches:N||l,searchAgentPredictions:C,className:eN.default["suggested-location-dropdown"]}),isDropdownOpen:s,onClickOutside:L,className:(0,c.buildClassName)(eN.default.component,r)})};var ey=e.i(109516),eI=e.i(571187);e.i(531273);var eS=e.i(300386),eS=eS,eE=e.i(792902),eE=eE,ew=e.i(655492);e.s(["SearchHeaderMobile",0,function({tenantId:e,locationQuery:s,isLocationDropdownActive:l,setLocationQuery:t,setIsLocationDropdownActive:o,onLocationClick:n,placeholder:u,className:m,onAuthButtonClick:h,onMenuButtonClick:_,onSearchBarClickAnalytics:f}){let[x,p]=(0,i.useState)(!1),[b,g]=(0,i.useState)(!1),[C,v]=(0,i.useState)(!0),[y,I]=(0,i.useState)(0),{isAuthenticated:S,user:E}=(0,j.useUserContext)(),{openModal:w}=(0,i.useContext)(N.ModalContext),{authMenuItems:O,menuItems:T,authButtonCopy:A}=(0,G.useTranslatedHeaderConfig)(e),k=()=>{_?.(),p(e=>!e)},L=E?E.firstName||E.lastName?`${(E?.firstName||"").slice(0,1)}${(E?.lastName||"").slice(0,1)}`:E?.email?.slice(0,1):A,P=(0,ey.default)(()=>{let e=window.scrollY;e>100&&e>y?v(!1):v(!0),I(e)},50);return(0,i.useEffect)(()=>(window.addEventListener("scroll",P,{passive:!0}),()=>window.removeEventListener("scroll",P)),[P]),(0,a.jsx)("div",{className:(0,c.buildClassName)(eI.default.component,C?eI.default["is-visible"]:eI.default["is-hidden"],m),"data-testid":M.headerIds.header,children:(0,a.jsxs)("div",{className:eI.default["layout-container"],children:[(0,a.jsxs)("div",{className:eI.default["search-wrapper"],children:[l&&(0,a.jsx)(ew.default,{icon:(0,a.jsx)(eE.default,{}),onClick:k,ariaLabel:"Toggle menu",className:eI.default["back-icon"]}),(0,a.jsx)(ev,{locationQuery:s,isLocationDropdownActive:l,setLocationQuery:t,setIsLocationDropdownActive:o,onClick:n,placeholder:u,className:eI.default["location-search"],onSearchBarClickAnalytics:f})]}),!l&&(0,a.jsxs)("div",{className:eI.default.navigation,children:[(0,a.jsx)(d.default,{onClick:S?()=>{h?.(),g(e=>!e)}:()=>{h?.(),w("login-registration")},closeMenu:()=>g(!1),className:eI.default.auth,testId:M.headerIds.loginHeader,children:(0,a.jsxs)(a.Fragment,{children:[S&&(0,a.jsxs)("span",{"data-testid":M.headerIds.loggedInUser,children:[L,b&&(0,a.jsx)(r.default,{items:O,className:eI.default["user-dropdown"]})]}),!S&&(0,a.jsx)(en.default,{})]})}),(0,a.jsx)(d.default,{className:(0,c.buildClassName)(eI.default.menu,x&&eI.default.active),testId:M.testIds.menuButton,onClick:k,closeMenu:()=>p(!1),children:(0,a.jsxs)(a.Fragment,{children:[x?(0,a.jsx)(eS.default,{}):(0,a.jsx)(eo.default,{}),x&&(0,a.jsx)(r.default,{items:T})]})})]})]})})}],983260),e.s([],325482)},328216,e=>{"use strict";var a=e.i(191788),s=e.i(203828);e.i(96526);var l=e.i(232780),t=e.i(565585),o=e.i(570625),n=e.i(62262),i=e.i(455143);e.s(["useSearchResultClick",0,(e=!1)=>{let d=(0,s.useRouter)(),{listingParams:r,addToRecentSearches:u}=(0,l.usePreferencesContext)(),{user:c}=(0,t.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),l=e.i(203828),t=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),j=e.i(464161),N=e.i(65030),v=e.i(974448),y=e.i(368497),I=e.i(919643),S=e.i(121241),E=e.i(478617);e.i(611450);var w=e.i(486146),O=e.i(66100),T=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:l,isShowing404Page:t})=>{let n=(0,I.useIsMobile)(),i=(0,I.useIsIpadMini)(),d=l===y.SEARCH_PAGE_ROUTE_NAME||l===x.AREA_LISTINGS_ROUTE,[r,u]=(0,s.use
1State)(!1),[m,h]=(0,s.useState)(""),[_,f]=(0,s.useState)(),p=(0,P.useSearchResultClick)(),g=(l===y.SEARCH_PAGE_ROUTE_NAME||l===x.AREA_LISTINGS_ROUTE)&&!r,{isAuthenticated:C}=(0,b.useUserContext)(),j=(0,s.useCallback)(e=>{f(e.description.split(",")[0]),p(e),u(!1),h(e.description)},[p]),N=(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:j,placeholder:_,onAuthButtonClick:N,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:t})})]})};function H({children:e,className:t="",showFooter:o=!0,routeName:n,renderHeader:i,isShowing404Page:d,noLoadingOnSamePath:u=!1}){let{isLoading:f}=(0,O.useRouterLoading)({noLoadingOnSamePath:u}),g=(0,l.useRouter)(),{tenantId:C}=(0,p.useThemeContext)(),{areDelayedScriptsLoaded:j,features:N}=(0,_.useFeaturesContext)(),{siteLocation:v}=(0,b.useUser)(),[y,I]=(0,s.useState)((0,S.shouldShowAccessibilityWidget)(C));(0,T.useIsomorphicLayoutEffect)(()=>{E.default.get("accessibilityWidgetClosed")&&I(!1)},[]),(0,s.useEffect)(()=>{j&&c.AnalyticsController?.trackDelayedPageView()},[j]);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,t),children:e}),A&&(0,a.jsx)(r.default,{canShowAccessibilityWidget:y,tenantId:C,countryCode:v,route:M,features:N})]})}let U=["/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"],B=({tenantId:e,routeName:s,isShowing404Page:l})=>{let{features:r}=(0,_.useFeaturesContext)(),u=(0,j.isZoocasaTenant)(e),c=(0,A.getTenantById)(e),m=(c?.features?.UseZoocasaLightHomepage??!1)||r?.useZoocasaLightHomepage===!0,h=m?v.zoocasaLightNavigationConfig:N.zoocasaNavigationConfig,f=(0,j.isTenantExpCommercial)(e)||(0,j.isTenantExpCommercialCa)(e),p=(0,j.isTenantExpCA)(e)||(0,j.isTenantExpUS)(e),b=(0,j.isTenantExpInService)(e),g=(0,j.isTenantAgntInc)(e),S=(0,I.useIsMobile)(),E=(0,I.useIsIpadMini)(),w=s===y.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)(t.default,{routeName:s,navConfig:h,useLightTheme:m}),p&&(0,a.jsx)(o.default,{tenantId:e,showAdvancedSearch:S&&!E&&!w,isSearchOrAreaPage:w,isShowing404Page:l}),f&&(0,a.jsx)(i.default,{}),g&&(0,a.jsx)(d.default,{})]})};e.s(["default",0,function({children:e,className:t="",showMobileBottomNav:o,showFooter:n=!0,routeName:i,renderHeader:d,isShowing404Page:C,noLoadingOnSamePath:N=!1,contentKey:v}){let I,{isLoading:k}=(0,O.useRouterLoading)({noLoadingOnSamePath:N}),M=(0,l.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===y.SEARCH_PAGE_ROUTE_NAME||i===x.AREA_LISTINGS_ROUTE,[Q,z]=(0,s.use
1State)((0,S.shouldShowAccessibilityWidget)(L));(0,T.useIsomorphicLayoutEffect)(()=>{E.default.get("accessibilityWidgetClosed")&&z(!1)},[]),I=void 0===o?!U.includes(M.route):o,(0,s.useEffect)(()=>{P&&c.AnalyticsController?.trackDelayedPageView()},[P]);let V=M.route.match(/^((?!\/team\/|\/search).)*$/)&&n,Y=M.pathname.includes("/newhomes")?x.NEWHOMES_ROUTE:M.route;return(F||G)&&D?(0,a.jsx)(H,{className:t,showFooter:n,routeName:i,renderHeader:d,isShowing404Page:C,noLoadingOnSamePath:N,children:e}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.WebVitals,{}),d?d():(0,a.jsx)(B,{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,t),children:e}),V&&(0,j.isTenantAgntInc)(L)&&(0,a.jsx)(u.default,{}),V&&!(0,j.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:I&&(0,a.jsx)(f.default,{})})]})}],360696)}]); 2 3//# sourceMappingURL=062ll5wzp90fn.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.