1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{70959:function(e,n,s){s.r(n),s.d(n,{MenuOptions:function(){return MenuOptions},default:function(){return Nav}});var t=s(85893),a=s(67294),l=s(86215),i=s(56584),o=s(69065),r=s(5506),c=s(74352),d=s(35159),u=s(29601),m=s(44300),p=s(84940),x=s(24141),h=s(12914),g=s(99557),v=s(50067),f=s(24626),j=s(33299),w=s(5152),y=s.n(w),b=s(25675),N=s.n(b),k=s(41664),S=s.n(k),C=s(11163),Z=s(94829),M=s(29122),_=s(74540),P=s(11355),B=s(13342),O=s(58057),E=s(9410),A=s(97924),L=s(47214),components_LanguageSelector=e=>{let{isBlack:n=!1,forceWhiteTextMenu:s=!1,isMobile:i=!1,onLanguageChange:o=null}=e,r=(0,C.useRouter)(),{t:c}=(0,a.useContext)(E.Z),d=r.locale.split("-")[0],u=A.Mj.find(e=>e.id===d),handleClickChangeLanguage=e=>{let n=window.location.pathname.split("/"),s=n.slice(2,n.length),t=[e].concat(r.locale.split("-")[1]).join("-"),a="/".concat(t,"/").concat(s.join("/")).concat(window.location.search).concat(window.location.hash);o&&o(),window.location.href=a};return i?(0,t.jsxs)("div",{className:"flex gap-x-2 items-center mt-5",children:[(0,t.jsx)("p",{className:"text-sm text-slate-500",children:c("nav.language")}),(0,t.jsx)("div",{className:"flex gap-2",children:A.Mj.map(e=>(0,t.jsxs)("button",{onClick:()=>handleClickChangeLanguage(e.id),className:(0,L.AK)("relative rounded-lg p-2 transition-all duration-200",d===e.id?"bg-blue-50 ring-2 ring-blue-500":"hover:bg-gray-50"),title:c(e.name),children:[(0,t.jsx)("img",{src:e.icon,alt:c(e.name),className:"w-6 h-4 object-cover rounded-sm"}),d===e.id&&(0,t.jsx)("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-blue-500 rounded-full"})]},e.id))})]}):(0,t.jsx)(l.J,{className:"relative",children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(l.J.Button,{className:(0,L.AK)("inline-flex gap-1.5 items-center h-10 pr-3 pl-3 text-sm font-medium rounded-full border transition-colors duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500",n&&!s?"text-slate-700 border-slate-200 hover:bg-slate-50":"text-white border-white/30 hover:bg-white/10"),title:c(null==u?void 0:u.name),children:[(0,t.jsx)("img",{src:null==u?void 0:u.icon,alt:c(null==u?void 0:u.name),className:"object-cover w-5 rounded-sm h-3.5"}),(0,t.jsx)("span",{className:"hidden uppercase sm:inline",children:d}),(0,t.jsx)(B.Z,{className:"w-4 h-4 opacity-70","aria-hidden":"true"})]}),(0,t.jsx)(P.u,{as:a.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,t.jsx)(l.J.Panel,{className:"absolute right-0 z-50 mt-2 w-52",children:(0,t.jsx)("div",{className:"overflow-hidden p-1.5 bg-white rounded-2xl border shadow-xl border-slate-200",children:A.Mj.map(e=>{let n=d===e.id;return(0,t.jsxs)("button",{onClick:()=>handleClickChangeLanguage(e.id),className:(0,L.AK)("flex gap-3 items-center px-3 py-2 w-full text-sm rounded-xl transition-colors duration-150",n?"bg-indigo-50 text-indigo-700":"text-slate-700 hover:bg-slate-50"),children:[(0,t.jsx)("img",{src:e.icon,alt:c(e.name),className:"object-cover w-6 h-4 rounded-sm"}),(0,t.jsx)("span",{className:"font-medium",children:c(e.name)}),n&&(0,t.jsx)(O.Z,{className:"ml-auto w-4 h-4 text-indigo-600","aria-hidden":"true"})]},e.id)})})})})]})})},SkeletonComponents_SkNewNav=()=>(0,t.jsx)("div",{className:"flex justify-end items-center animate-pulse",children:(0,t.jsx)("div",{className:"hidden gap-x-4 items-center lg:flex",children:(0,t.jsxs)("div",{className:"flex gap-x-2 items-center min-w-max",children:[(0,t.jsxs)("div",{className:"flex items-center justify-start w-[147px] text-slate-600 min-w-fit",children:[(0,t.jsx)("div",{className:"w-[100px] h-4 rounded-xl bg-slate-300"}),(0,t.jsx)("div",{className:"ml-2 w-5 h-5 rounded-full bg-slate-300"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-start w-[147px] text-slate-600 min-w-fit",children:[(0,t.jsx)("div",{className:"w-[100px] h-4 rounded-xl bg-slate-300"}),(0,t.jsx)("div",{className:"ml-2 w-5 h-5 rounded-full bg-slate-300"})]})]})})}),SkeletonComponents_SkSearchBarV2=()=>(0,t.jsx)("div",{className:"items-center justify-center hidden px-4 mx-auto lg:flex lg:w-[580px] w-full",children:(0,t.jsx)("div",{className:"flex items-center justify-center w-full py-3",children:(0,t.jsx)("div",{className:"justify-center hidden w-full space-x-2 shadow-lg lg:flex rounded-3xl",children:(0,t.jsx)("div",{className:"relative flex justify-center w-full",children:(0,t.jsx)("div",{className:"relative z-0 flex justify-end items-center w-full h-[56px] p-6 py-1 bg-white rounded-3xl",children:(0,t.jsx)("div",{className:"border rounded-full w-9 h-9 max-h-9 max-w-[36px] bg-slate-300"})})})})})}),T=s(85345),K=s(17107),z=s(88310),G=s(5928),I=s(39251),F=s(17765);let J=y()(()=>Promise.all([s.e(8100),s.e(5200),s.e(6194),s.e(7524)]).then(s.bind(s,7630)),{loadableGenerated:{webpack:()=>[7630]},loading:()=>(0,t.jsx)(SkeletonComponents_SkSearchBarV2,{})}),U=y()(()=>Promise.all([s.e(6342),s.e(8100),s.e(4185),s.e(8523),s.e(1852),s.e(1859),s.e(2566),s.e(5200),s.e(4259),s.e(6194),s.e(7753),s.e(9218),s.e(6229),s.e(4863),s.e(2772),s.e(2407),s.e(5765),s.e(8374)]).then(s.bind(s,65765)),{loadableGenerated:{webpack:()=>[65765]}}),V=y()(()=>Promise.all([s.e(8764),s.e(9669),s.e(7536),s.e(1524),s.e(3978),s.e(9722),s.e(1541),s.e(9208)]).then(s.bind(s,81541)),{loadableGenerated:{webpack:()=>[81541]}}),D=y()(()=>s.e(864).then(s.bind(s,80864)),{loadableGenerated:{webpack:()=>[80864]}}),W=y()(()=>s.e(9059).then(s.bind(s,59059)),{loadableGenerated:{webpack:()=>[59059]}}),q=y()(()=>s.e(5179).then(s.bind(s,85179)),{loadableGenerated:{webpack:()=>[85179]}}),R=y()(()=>s.e(8729).then(s.bind(s,78729)),{loadableGenerated:{webpack:()=>[78729]},loading:()=>(0,t.jsx)(SkeletonComponents_SkNewNav,{})}),H=y()(()=>s.e(7801).then(s.bind(s,97801)),{loadableGenerated:{webpack:()=>[97801]}}),resources=(e,n)=>[{description:n("nav.tools.value-your-property.description"),href:"/".concat(e,"/valorizador-online/"),icon:f.F,key:"onlineValuation",name:n("nav.tools.value-your-property")},{description:n("nav.tools.mortgage-simulator.description"),href:"/".concat(e,"/simulador-hipotecario/"),icon:v.A,key:"mortgageSimulator",name:n("nav.tools.mortgage-simulator")},{description:n("nav.tools.publish-your-property.description"),href:"/".concat(e,"/vende/"),icon:p.O,key:"publishProperty",name:n("nav.tools.publish-your-property")}],MenuOptions=(e,n,s)=>{var t,a,l,i,o,r,c,d;return[...["cl","es","us","pe","ar"].includes(null==e?void 0:e.id)?[{id:"sumate",link:"/".concat(n,"/sumate/#contacto"),name:s("footer.company.join-us"),type:"cta"}]:[],{commingSoon:!(null===(t=e.navBar.tools)||void 0===t?void 0:t.publishProperty),id:"publishProperty",link:"/".concat(n,"/vende/"),name:"Publica tu propiedad",type:"button"},{id:"properties",items:[{commingSoon:!(null===(a=e.navBar)||void 0===a?void 0:a.residential),icon:p.O,iconType:"icon",id:"residential",link:"/".concat(n,"/search/venta/residencial/"),name:s("nav.propertys.residential"),type:"simple"},{commingSoon:!(null===(l=e.navBar)||void 0===l?void 0:l.commercial),icon:u.n,iconType:"icon",id:"commercial",link:"/".concat(n,"/search/venta/comercial/?sort=commercial_office"),name:s("nav.propertys.commercial"),type:"simple"},{commingSoon:!(null===(i=e.navBar)||void 0===i?void 0:i.land),icon:x.c,iconType:"icon",id:"land",link:"/".concat(n,"/campos/"),name:s("nav.propertys.fields"),type:"simple"},{commingSoon:!(null===(o=e.navBar)||void 0===o?void 0:o.projects),icon:g.E,iconType:"icon",id:"project",link:(null===(r=e.n
1avBar)||void 0===r?void 0:r.projectsCustomUrl)?"/".concat(n).concat(null===(c=e.navBar)||void 0===c?void 0:c.projectsCustomUrl):"/".concat(n,"/proyectos/"),name:s("nav.propertys.projects"),type:"simple"}],name:s("nav.propertys.title"),type:"multiple"},{id:"tools",items:null===(d=resources(n,s))||void 0===d?void 0:d.filter(e=>"us"!==(n||"").split("-")[1]||"publishProperty"!==e.key).map(n=>({commingSoon:!e.navBar.tools[n.key],description:n.description,icon:n.icon,iconType:"icon",id:n.key,link:n.href,name:n.name})),name:s("nav.tools.title"),type:"multiple"}]},AccountComponent=e=>{let{locale:n,open:s,setOpen:l,setOpenSidebarLogin:i,setDefaultMethod:o,session:r,sessionStatus:d,isLoading:u,t:p,onLoginClick:x}=e;return(0,t.jsxs)(a.Fragment,{children:["loading"===d?(0,t.jsx)("div",{className:"flex items-center gap-x-4",children:(0,t.jsx)("div",{className:"w-[112px] h-10 rounded-xl bg-slate-300"})}):r?(0,t.jsxs)("div",{className:"items-center hidden gap-x-3 lg:flex",children:[(0,t.jsx)(T.Z,{icon:m.k,tone:"light","aria-label":p("nav.favorites"),title:p("nav.favorites"),onClick:()=>{window.open("/".concat(n,"/cuenta/propiedades/favoritas/"))}}),(0,t.jsx)(K.Z,{icon:h.e,tone:"brand",onClick:()=>l(!s),children:p("nav.my-account")})]}):(0,t.jsx)("div",{className:"items-center hidden gap-x-4 lg:flex",children:(0,t.jsx)(K.Z,{icon:u?c.Z:h.e,tone:"brand",onClick:()=>{null==x||x(),o("login"),i(!0)},children:p(u?"nav.loading":"nav.login")})}),s&&(0,t.jsx)(W,{open:s,setOpen:l,session:r,locale:n,t:p})]})},X={redirect:!1},Y={isOneTap:!0,itp_support:!0,prompt_parent_id:"oneTap"},getImageSource=(e,n)=>{let s=["us"].includes(null==n?void 0:n.toLowerCase());return e?s?"https://konnect-cdn.ppartnersgroup.com/public/site/imgs/logos/logo-negro-US-PP-WEB.png":"https://konnect-cdn.ppartnersgroup.com/public/site/imgs/logos/logo-negro-tight.png":s?"https://konnect-cdn.ppartnersgroup.com/public/site/imgs/logos/logo-blanco-US-PP-WEB.png":"https://konnect-cdn.ppartnersgroup.com/public/site/imgs/logos/logo-original-negativo-tight.png"},LegacyNav=e=>{var n,s;let{isBlack:u=!1,forceWhiteTextMenu:m=!1,isLoading:p=!1,displayLogoInMobile:x=!0,displayNavMenu:g=!0,children:v=null,backgroundBlur:f=!1,isSticky:w=!1,settings:y,displaySearchBar:b=!0,isHomePage:k=!1,setMenuIsOpened:P}=e,[B,O]=(0,a.useState)(!1),{data:A,status:K}=(0,j.useSession)(),[z,U]=(0,a.useState)(!1),[W,Q]=(0,a.useState)(!1),[$,ee]=(0,a.useState)(!1),[en,es]=(0,a.useState)("login"),[et,ea]=(0,a.useState)(null),[el,ei]=(0,a.useState)(null),{isSignedIn:eo}=(0,F.Z)({googleOpt:Y,nextAuthOpt:X}),[er,ec]=(0,a.useState)(null),ed=(0,C.useRouter)(),eu=(0,Z.Z)("(max-width: 1535px)",!1),em=(0,Z.Z)("(min-width: ".concat(L.FB.lg,"px)"),!1),[ep,ex]=(0,a.useState)(!1),[eh,eg]=(0,a.useState)(!1),ev=(0,a.useMemo)(()=>{var e,n;return getImageSource(u,null===(n=ed.locale)||void 0===n?void 0:null===(e=n.split("-"))||void 0===e?void 0:e[1])},[u,ed.locale]),ef=getImageSource(!0,null===(s=ed.locale)||void 0===s?void 0:null===(n=s.split("-"))||void 0===n?void 0:n[1]),{t:ej}=(0,a.useContext)(E.Z),handleMenuClick=()=>{ep?U(!z):A?Q(!W):U(!z)};return((0,a.useEffect)(()=>{P&&P(z||W||$)},[W,$]),(0,a.useEffect)(()=>{ex(eu),eg(em)},[eu,em]),(0,a.useEffect)(()=>{var e,n,s,a;if(null===(n=window)||void 0===n?void 0:null===(e=n.location)||void 0===e?void 0:e.pathname){let e=null===(a=window.location)||void 0===a?void 0:null===(s=a.pathname)||void 0===s?void 0:s.split("/")[1];ea((0,L.Um)(e)),ei(e),ec(b?v||(0,t.jsx)(J,{settings:y,locale:e,isSticky:w,isMobile:ep,t:ej}):null)}},[]),(0,a.useEffect)(()=>{z||W||$?setTimeout(()=>{window.document.body.style="overflow: hidden!important",window.document.documentElement.style=""},0):(window.document.body.style.overflowY="auto",window.document.body.style.overflowX="auto")},[z,W,$]),(0,a.useEffect)(()=>{let e=null;if(!el&&window){var n,s;e=null===(s=window.location)||void 0===s?void 0:null===(n=s.pathname)||void 0===n?void 0:n.split("/")[1],ea((0,L.Um)(e)),ei(e)}else e=el;ec(b?v||(0,t.jsx)(J,{settings:y,locale:e,isSticky:w,isMobile:ep,t:ej}):null)},[b,v,w,ep]),p)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(l.J,{className:"relative z-30 bg-transparent animate-pulse",children:(0,t.jsx)("div",{className:"mx-auto mt-2",children:(0,t.jsxs)("div",{className:"flex items-center justify-between py-2",children:[(0,t.jsx)("div",{className:"justify-start hidden lg:flex min-w-[168px] h-10 bg-secondary-80 rounded-xl"}),(0,t.jsx)("div",{className:"-my-2 -mr-2 lg:hidden",children:(0,t.jsx)(l.J.Button,{className:(0,L.AK)(u&&!m?"text-slate-500 hover:text-slate-900 focus:ring-slate-900 border-slate-500":"text-white border-white focus:ring-white","inline-flex justify-center items-center rounded-xl border w-[42px] h-[42px] hover:text-slate-500 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:border-none"),children:(0,t.jsx)(o.Z,{className:"w-6 h-6","aria-hidden":"true"})})}),(0,t.jsxs)("div",{className:"hidden space-x-2 lg:flex",children:[(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"}),(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"}),(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"}),(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"}),(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"}),(0,t.jsx)("div",{className:"w-24 h-3 rounded-xl bg-secondary-80"})]}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"w-8 h-8 rounded-xl bg-secondary-80"})})]})})})}):(0,t.jsxs)(t.Fragment,{children:[eo?null:(0,t.jsx)("div",{id:"oneTap",className:"absolute top-0 right-0"}),(0,t.jsxs)(l.J,{as:"div",className:(0,L.AK)("relative z-50 bg-transparent",f&&"backdrop-blur-lg"),children:[(0,t.jsxs)("div",{className:"mx-auto",children:[(0,t.jsxs)("div",{className:(0,L.AK)("items-center justify-between hidden md:px-5 md:pt-5 md:pb-2 ".concat(k&&!w?"gradient-header":""),w?"bg-slate-900 2xl:flex":"lg:flex"),children:[(0,t.jsx)("div",{className:"min-w-fit",children:(0,t.jsxs)(S(),{href:"/".concat(el,"/"),children:[(0,t.jsx)("span",{className:"sr-only",children:"Property Partners"}
1),(0,t.jsx)(N(),{height:"70",width:"210",priority:!0,quality:100,className:"outline-none",src:ev,alt:"logo property partners"})]})}),(0,t.jsx)("div",{className:"relative flex flex-1 self-start justify-center items-start px-3 min-w-0",children:er}),(0,t.jsxs)("div",{className:(0,L.AK)(w?"flex":k&&!w?"flex":"hidden lg:flex","items-center justify-end min-w-max gap-x-4"),children:[eh&&g&&k&&(0,t.jsx)("div",{className:"hidden w-fit lg:block",children:(0,t.jsx)(l.J.Group,{as:"nav",className:"hidden space-x-1 lg:flex xl:flex-1 xl:justify-between max-w-[700px] items-center",children:(0,t.jsx)(R,{country:et,locale:el,isBlack:u,forceWhiteTextMenu:m,MenuOptions:MenuOptions(et,el,ej),t:ej})})}),eh&&(0,t.jsx)(components_LanguageSelector,{isBlack:u,forceWhiteTextMenu:m}),(0,t.jsx)(AccountComponent,{locale:el,open:W,setOpen:Q,setOpenSidebarLogin:ee,setDefaultMethod:es,session:A,sessionStatus:K,isLoading:p,t:ej,onLoginClick:()=>{try{(0,G.f)("login_click",{page_path:window.location.pathname})}catch(e){console.log("Error tracking events: ",e)}}}),!k&&!w&&(0,t.jsxs)(T.Z,{tone:"light","aria-label":"Abrir men\xfa",onClick:()=>handleMenuClick(),children:[(0,t.jsx)("span",{className:"sr-only",children:"Open menu"}),z?(0,t.jsx)(r.Z,{className:"w-6 h-6","aria-hidden":"true"}):(0,t.jsx)(o.Z,{className:"w-6 h-6","aria-hidden":"true"})]})]})]}),(0,t.jsxs)("div",{className:(0,L.AK)("flex flex-col w-full",w?"bg-slate-900 2xl:hidden pb-4":"lg:hidden",k&&!w?"gradient-header":""),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2",children:[(0,t.jsx)("div",{className:(0,L.AK)(!x&&"hidden","w-fit"),children:(0,t.jsxs)(S(),{href:"/".concat(el,"/"),children:[(0,t.jsx)("span",{className:"sr-only",children:"Property Partners"}),(0,t.jsx)(N(),{height:"70",width:"210",priority:!0,quality:100,src:ev,alt:"logo property partners"})]})}),(0,t.jsx)("div",{className:"hidden lg:block",children:er}),(0,t.jsx)("div",{className:(0,L.AK)(w?"2xl:hidden":"lg:hidden"),children:(0,t.jsxs)("button",{onClick:()=>{P(!z),U(!z)},className:(0,L.AK)(u?"text-slate-500 hover:text-slate-900 focus:ring-slate-900 border-slate-500":"text-white border-white focus:ring-white","inline-flex justify-center items-center rounded-xl border w-[42px] h-[42px] hover:text-slate-500 hover:bg-slate-100 focus:outline-none focus:ring-2 focus:border-none"),children:[(0,t.jsx)("span",{className:"sr-only",children:"Open menu"}),z?(0,t.jsx)(r.Z,{className:"w-6 h-6","aria-hidden":"true"}):(0,t.jsx)(o.Z,{className:"w-6 h-6","aria-hidden":"true"})]})})]}),(0,t.jsx)("div",{className:"flex items-center justify-center w-full mb-0 lg:hidden lg:mb-0",children:er}),!g&&(0,t.jsx)("div",{children:er})]})]}),z&&(0,t.jsx)(i.V,{as:"div",className:"relative h-screen",open:z,onClose:()=>{U(!1),P(!1)},children:(0,t.jsx)("div",{className:"fixed inset-0 z-[55] h-full overflow-hidden bg-slate-800/75",children:(0,t.jsxs)(i.V.Panel,{className:"fixed inset-y-0 right-0 z-10 w-full h-screen min-h-screen px-4 py-2 pb-40 overflow-y-auto bg-white md:pb-0 md:px-6 sm:max-w-sm sm:ring-1 sm:ring-slate-900/10",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(S(),{passHref:!0,href:"/".concat(el,"/"),className:"no-underline outline-none",children:[(0,t.jsx)("span",{className:"sr-only",children:"Property Partners"}),(0,t.jsx)(M.Z,{height:"70",width:"210",layout:"fixed",loading:"lazy",quality:100,src:ef,alt:"logo property partners"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(components_LanguageSelector,{isBlack:!0,onLanguageChange:()=>U(!1)}),(0,t.jsxs)("button",{type:"button",className:"p-2.5 rounded-xl text-slate-700",onClick:()=>{P(!1),U(!1)},children:[(0,t.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,t.jsx)(r.Z,{className:"w-6 h-6","aria-hidden":"true"})]})]})]}),(0,t.jsx)("div",{className:"flow-root mt-6",children:(0,t.jsxs)("div",{className:"-my-6 divide-y divide-slate-500/10",children:[!A&&(0,t.jsx)("div",{className:"flex items-center w-full my-6 gap-x-2",children:(0,t.jsx)(_.Z,{onClick:()=>{try{(0,G.f)("login_click",{page_path:window.location.pathname})}catch(e){console.log("Error tracking events: ",e)}es("login"),ee(!0)},inputClassName:"w-full",color:"indigo",variant:"filled",iconPosition:"left",iconClassName:p&&"animate-spin",Icon:p?c.Z:h.e,text:p?ej("nav.loading"):ej("nav.login")})}),(0,t.jsxs)("div",{className:"py-6 space-y-2",children:["authenticated"===K&&(0,t.jsx)(D,{setIsLoadingPage:O,t:ej}),(0,t.jsx)(H,{MenuOptions:MenuOptions(et,el,ej),t:ej})]}),(0,t.jsx)("div",{className:"space-y-6 rounded-b-xl sm:justify-start",children:(0,t.jsxs)("div",{className:"flex items-center mt-5 gap-x-2",children:[(0,t.jsx)("p",{className:"text-sm text-slate-500",children:ej("nav.help")}),(0,t.jsx)("div",{className:"flex space-y-3 sm:space-x-3 sm:space-y-0",children:(0,t.jsx)(_.Z,{onClick:()=>{var e;return(0,I.Z)(A?ej("nav.whatsapp-chat.default-message.authenticated",{userName:null==A?void 0:null===(e=A.user)||void 0===e?void 0:e.name}):ej("nav.whatsapp-chat.default-message.unauthenticated"),el,null,"Nav",A?"authenticated":"unauthenticated")},color:"success",size:"xs",iconPosition:"left",inputClassName:"rounded-full",Icon:d.t,text:"Chat"})})]})})]})})]})})})]}),B?(0,t.jsx)(q,{}):null,$&&(0,t.jsx)(V,{open:$,setOpen:ee,defaultMethod:en,setDefaultMethod:es,t:ej,onSignupClick:()=>{try{(0,G.f)("signup_click",{page_path:window.location.pathname,section:"nav"})}catch(e){console.log("Error tracking events: ",e)}}})]})};var Nav=e=>{let n=(0,z.Cl)(),{locale:s}=(0,C.useRouter)(),{t:l}=(0,a.useContext)(E.Z)||{};return n?(0,t.jsx)(U,{locale:s,t:l,transparent:!e.isBlack,settings:e.settings,setMenuIsOpened:e.setMenuIsOpened}):(0,t.jsx)(LegacyNav,{...e})}},17765:function(e,n,s){var t=s(67294),a=s(33299);
1n.Z=e=>{let{status:n}=(0,a.useSession)(),[s,l]=(0,t.useState)(!0),[i,o]=(0,t.useState)(!1),{nextAuthOpt:r,googleOpt:c}=e||{};return(0,t.useEffect)(()=>{"authenticated"===n?(o(!0),l(!1)):"unauthenticated"===n&&(o(!1),l(!1))},[n]),(0,t.useEffect)(()=>{if(!s&&!i&&c.prompt_parent_id&&window){let{google:e}=window;if(e)try{e.accounts.id.initialize({callback:async e=>{l(!0),await (0,a.signIn)("google-one-tap",{credential:e.credential,...r}),l(!1)},client_id:"873858373682-n85u7olj6kkknrrttg1r155kioh2vona.apps.googleusercontent.com",...c}),c.isOneTap&&e.accounts.id.prompt(e=>{e.isNotDisplayed()||e.isSkippedMoment()||e.isDismissedMoment()})}catch(e){console.log("Error on userGoogleIdentify > error: ".concat(e.message))}}},[c,s,i,r]),{isLoading:s,isSignedIn:i}}}}]);
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.