PageSourceSearch

https://www.couchsurfing.com/surf-assets/_next/static/chunks/89256-a8a6200d68250a0e.js

js couchsurfing.com collected 2026-09-24 08:04:11 UTC 161,501 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89256],{163:(e,t,r)=>{r.d(t,{wt:()=>s});let s="feed-timeline-page"},1594:(e,t,r)=>{r.d(t,{J:()=>d});var s=r(33463),o=r(1793),n=r(28473),i=r(89052),l=r(74724),a=r(58128);let c=(0,n.tv)({extend:a.pV,base:["text-default-50","bg-light-serendipitous-300","state-hover:bg-light-serendipitous-500","state-pressed:bg-light-serendipitous-700"],variants:{loading:{true:["bg-light-serendipitous-700"]}}});function d(e){let t,r=(0,o.c)(2),n=(0,l.s)(c,e);return r[0]!==n?(t=(0,s.jsx)(i.T,{...n}),r[0]=n,r[1]=t):t=r[1],t}},1780:(e,t,r)=>{r.d(t,{B:()=>i});var s=r(1793),o=r(964),n=r(41928);function i(){let e,t=(0,s.c)(3),r=(0,o.useSearchParams)(),i=(0,n.$)();return t[0]!==i||t[1]!==r?(e=e=>{let[t,s]=i(e).split("?"),o=new URLSearchParams(r.toString());if(s)for(let[e,t]of new URLSearchParams(s).entries())o.set(e,t);let n=o.toString();return n?`${t}?${n}`:t},t[0]=i,t[1]=r,t[2]=e):e=t[2],e}},2186:(e,t,r)=>{r.d(t,{ExplorePressLogosSection:()=>h});var s=r(33463),o=r(1793),n=r(56083),i=r(65272),l=r(95441),a=r(69673),c=r(79951),d=r(69310),u=r(85943),p=r(27211),m=r(6918);function h(){let e,t,r,h,f,g,x,v=(0,o.c)(12),{t:b}=(0,n.useTranslation)();v[0]===Symbol.for("react.memo_cache_sentinel")?(e={sectionName:"news_outlets",contentSource:"pre_curated_static"},v[0]=e):e=v[0];let y=(0,m.W)(e);return v[1]!==b?(t=b("web.paywall.planPicker.carousel.header","You Can Find Us In"),v[1]=b,v[2]=t):t=v[2],v[3]!==t?(r=(0,s.jsx)(a.F,{children:t}),v[3]=t,v[4]=r):r=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(h={element_id:"news_logo",destination:"none",is_interactive:!1,section:"news_outlets",content_source:"pre_curated_static"},v[5]=h):h=v[5],v[6]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(i.M,{event:l.X.exploreDeadClick,properties:h,testId:"explore-press-logo-click",children:(0,s.jsx)(u.T,{gap:c.Kz.xl4,images:p.q,surfaceCardProps:{cardStyle:d.E.Style4,borderRadius:"xs"}})}),v[6]=f):f=v[6],v[7]!==r?(g=(0,s.jsxs)(c.Tk,{className:"w-full items-center",spacing:c.Kz.xl2,testId:"explore-press-logos-section",children:[r,f]}),v[7]=r,v[8]=g):g=v[8],v[9]!==y||v[10]!==g?(x=(0,s.jsx)("div",{className:"w-full",ref:y,children:g}),v[9]=y,v[10]=g,v[11]=x):x=v[11],x}},2906:(e,t,r)=>{r.d(t,{PageEventTracker:()=>n});var s=r(73974);let o={};function n(e){let{event:t,properties:r}=e;return(0,s.C)(t,void 0===r?o:r),null}},6918:(e,t,r)=>{r.d(t,{W:()=>c});var s=r(1793),o=r(37343),n=r(12172),i=r(3048),l=r(95441),a=r(69125);function c(e){let t,r,c,d=(0,s.c)(7),{sectionName:u,contentSource:p}=e,m=(0,i.st)();d[0]===Symbol.for("react.memo_cache_sentinel")?(t={triggerOnce:!0,threshold:.5},d[0]=t):t=d[0];let{ref:h,inView:f}=(0,n.Wx)(t);return d[1]!==m||d[2]!==p||d[3]!==f||d[4]!==u?(r=()=>{f&&((0,a.s)(m,l.X.exploreModuleImpression,{section_name:u,content_source:p}),(0,a.s)(m,l.X.exploreScrollDepth,{section_name:u,max_section_reached:u}))},c=[m,p,f,u],d[1]=m,d[2]=p,d[3]=f,d[4]=u,d[5]=r,d[6]=c):(r=d[5],c=d[6]),(0,o.useEffect)(r,c),h}},7454:(e,t,r)=>{r.d(t,{_:()=>j});var s=r(33463),o=r(1793),n=r(964),i=r(76842),l=r(69672),a=r(37367),c=r(75146),d=r(56083),u=r(18171),p=r(41928),m=r(71700),h=r(69673),f=r(11922),g=r(79951),x=r(5413),v=r(31449),b=r(8009),y=r(67834),w=r(81110);function j(e){let t,r,j,S,_,C,I,T,N,L,A,E,P=(0,o.c)(42),{isOpen:z,onOpenChange:$,onCancel:D,remainingCount:R,beforeNavigate:F,footerChildren:H,headerChildren:M,testId:B}=e,O=void 0===B?"add-to-your-profile-modal":B,{t:K}=(0,d.useTranslation)(),X=(0,n.useRouter)(),[q]=(0,u.Sf)(),U=(0,p.$)();q?.handle;let W=q?.handle??"";P[0]!==U||P[1]!==W?(t=U({path:"users/:userHandle/completeness",userHandle:W}),P[0]=U,P[1]=W,P[2]=t):t=P[2];let Y=t;P[3]!==D||P[4]!==$?(r=()=>{D?.(),$()},P[3]=D,P[4]=$,P[5]=r):r=P[5];let V=r;P[6]!==F||P[7]!==Y||P[8]!==$||P[9]!==X?(j=()=>{(async()=>{await F?.(),$(),X.push(Y)})()},P[6]=F,P[7]=Y,P[8]=$,P[9]=X,P[10]=j):j=P[10];let Z=j;P[11]!==R||P[12]!==K||P[13]!==O?(S=()=>(0,s.jsxs)(g.Tk,{className:"items-center text-center px-xl pt-xl2 pb-xl",spacing:g.Kz.m,children:[(0,s.jsx)(m.S,{children:(0,s.jsx)(i.K,{size:48})}
1),(0,s.jsxs)(g.Tk,{className:"items-center text-center",spacing:g.Kz.xs,children:[(0,s.jsx)(h.F,{testId:(0,w.v)(O,"title"),children:K("users.profileCompleteness.modal.title","Add to Your Profile")}),(0,s.jsx)(f.u,{color:"muted",children:K("users.profileCompleteness.modal.subtitle",{defaultValue:"To continue, add {count, plural, one {# more detail} other {# more details}} to your profile",count:R})})]})]}),P[11]=R,P[12]=K,P[13]=O,P[14]=S):S=P[14];let J=S;P[15]!==K?(_=()=>{let e=[{icon:l.R,label:K("users.profileCompleteness.modal.trust","Build trust with hosts and other members")},{icon:a.p,label:K("users.profileCompleteness.modal.replies","Get more replies and better connections")},{icon:c.W,label:K("users.profileCompleteness.modal.engage","Engage more across the community")}];return(0,s.jsx)(g.Tk,{className:"items-center px-xl pb-xl",spacing:g.Kz.lg,children:e.map(k)})},P[15]=K,P[16]=_):_=P[16];let G=_;P[17]!==V||P[18]!==Z||P[19]!==K||P[20]!==O?(C=()=>(0,s.jsxs)(x.zt,{className:"px-lg pt-m pb-lg w-full",spaceBetween:!0,spacing:g.Kz.m,children:[(0,s.jsx)(b.j,{label:K("common.cancel","Cancel"),onPress:V,testId:(0,w.v)(O,"cancel")}),(0,s.jsx)(v.j,{label:K("users.profileCompleteness.modal.complete","Complete Profile"),onPress:Z,testId:(0,w.v)(O,"complete")})]}),P[17]=V,P[18]=Z,P[19]=K,P[20]=O,P[21]=C):C=P[21];let Q=C;return P[22]!==H||P[23]!==Q?(I=H??Q(),P[22]=H,P[23]=Q,P[24]=I):I=P[24],P[25]!==M||P[26]!==J?(T=M??J(),P[25]=M,P[26]=J,P[27]=T):T=P[27],P[28]!==K?(N=K("users.profileCompleteness.modal.title","Add to Your Profile"),P[28]=K,P[29]=N):N=P[29],P[30]!==N?(L={title:N},P[30]=N,P[31]=L):L=P[31],P[32]!==G?(A=G(),P[32]=G,P[33]=A):A=P[33],P[34]!==z||P[35]!==$||P[36]!==T||P[37]!==L||P[38]!==A||P[39]!==I||P[40]!==O?(E=(0,s.jsx)(y._,{compact:!0,footerChildren:I,headerChildren:T,headerProps:L,isOpen:z,onOpenChange:$,testId:O,variant:"glowing-corners",children:A}),P[34]=z,P[35]=$,P[36]=T,P[37]=L,P[38]=A,P[39]=I,P[40]=O,P[41]=E):E=P[41],E}function k(e){let{icon:t,label:r}=e;return(0,s.jsxs)(x.zt,{spacing:g.Kz.m,children:[(0,s.jsx)(t,{size:20}),(0,s.jsx)(f.u,{children:r})]},r)}},12842:(e,t,r)=>{r.d(t,{ExploreReferencesSection:()=>E});var s=r(33463),o=r(1793),n=r(37818),i=r(12172),l=r(36208),a=r(1680),c=r(56083),d=r(65272),u=r(11922),p=r(8009),m=r(98214),h=r(79951),f=r(5413),g=r(51104),x=r(50440),v=r(46578),b=r(65548),y=r(34871),w=r(6918),j=r(57584),k=r(79979),S=r(18986),_=r(86128),C=r(59318),I=r(26942),T=r(19387),N=r(69310),L=r(29880);function A(e){let t,r,i,l,a,d,p,m,g,x,b,y,w,j,A,E,P,z=(0,o.c)(50),{id:$,text:D,authorName:R,authorLocation:F,authorAvatarUrl:H,cardDelaySeconds:M,isVisible:B,onClick:O,searchHostsLabel:K,veryLikelyLabel:X}=e,{t:q,u:U}=(0,c.useTranslation)(),W=(0,n.I)(),Y=M+v.qo,V=`explore-references-section-card-${$}`;z[0]!==F||z[1]!==R||z[2]!==q||z[3]!==U?(t=q("explore.references.authorAvatarAlt",{defaultValue:"{authorName} from {location}",authorName:U(R),location:F}),z[0]=F,z[1]=R,z[2]=q,z[3]=U,z[4]=t):t=z[4],z[5]!==H||z[6]!==t?(r=(0,s.jsx)(I.x,{alt:t,size:"medium",src:H}),z[5]=H,z[6]=t,z[7]=r):r=z[7],z[8]!==R||z[9]!==U?(i=U(R),z[8]=R,z[9]=U,z[10]=i):i=z[10],z[11]!==i?(l=(0,s.jsx)(C.Y,{isVerified:!0,size:"h4-spotlight",truncateText:1,children:i}),z[11]=i,z[12]=l):l=z[12],z[13]!==F?(a=(0,s.jsx)(_.U,{color:"muted",children:F}),z[13]=F,z[14]=a):a=z[14],z[15]!==l||z[16]!==a?(d=(0,s.jsxs)(h.Tk,{className:"min-w-0 flex-1 text-left",spacing:h.Kz.xs2,children:[l,a]}),z[15]=l,z[16]=a,z[17]=d):d=z[17],z[18]!==r||z[19]!==d?(p=(0,s.jsxs)(f.zt,{spacing:h.Kz.s,children:[r,d]}),z[18]=r,z[19]=d,z[20]=p):p=z[20];let Z=B?v.vL:v.JE;z[21]!==Z?(m={width:Z},z[21]=Z,z[22]=m):m=z[22];let J=`explore-references-recommend-tag-${$}`;return z[23]!==W?(g=!W&&{width:v.JE},z[23]=W,z[24]=g):g=z[24],z[25]!==W||z[26]!==Y?(x=W?{duration:0}:{...v.aT,delay:Y},z[25]=W,z[26]=Y,z[27]=x):x=z[27],z[28]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(S.j,{color:"#62B24C",size:12,weight:"fill"}),z[28]=b):b=z[28],z[29]!==X?(y=(0,s.jsx)(T.v,{prefixIcon:b,variant:"border",children:X}),z[29]=X,z[30]=y):y=z[30],z[31]!==m||z[32]!==J||z[33]!==g||z[34]!==x||z[35]!==y?(w=(0,s.jsx)(k.P.div,{animate:m,className:"overflow-hidden","data-testid":J,initial:g,transition:x,children:y}),z[31]=m,z[32]=J,z[33]=g,z[34]=x,z[35]=y,z[36]=w):w=z[36],z[37]!==w||z[38]!==p?(j=(0,s.jsxs)(h.Tk,{spacing:h.Kz.m,children:[p,w]}),z[37]=w,z[38]=p,z[39]=j):j=z[39],z[40]!==D?(A=(0,s.jsx)(u.u,{children:D}),z[40]=D,z[41]=A):A=z[41],z[42]!==j||z[43]!==A?(E=(0,s.jsxs)(h.Tk,{className:"w-full p-m",spacing:h.Kz.s,children:[j,A]}),z[42]=j,z[43]=A,z[44]=E):E=z[44],z[45]!==O||z[46]!==K||z[47]!==V||z[48]!==E?(P=(0,s.jsx)(L.c,{"aria-label":K,as:"overlay_button",cardStyle:N.E.Style4,onClick:O,testId:V,children:E}),z[45]=O,z[46]=K,z[47]=V,z[48]=E,z[49]=P):P=z[49],P}function E(){let e,t,r,k,S,_,C,I,T,N,L,E,P,z,$,D,R,F,H,M,B,O,K,X,q,U,W,Y,V,Z,J,G,Q,ee=(0,o.c)(78),{t:et}=(0,c.useTranslation)(),{onGlobalSearchOpenChange:er}=(0,g.$)(),{setPendingCategory:es}=(0,b.E)();ee[0]===Symbol.for("react.memo_cache_sentinel")?(e={sectionName:"references",contentSource:"pre_curated_static"},ee[0]=e):e=ee[0];let eo=(0,w.W)(e),en=(0,n.I)();ee[1]===Symbol.for("react.memo_cache_sentinel")?(t={threshold:v.cB,triggerOnce:!0},ee[1]=t):t=ee[1];let{inView:ei,ref:el}=(0,i.Wx)(t),ea=!0===en||ei;ee[2]!==er||ee[3]!==es?(r=()=>{es(y.b.Host),er(!0)},ee[2]=er,ee[3]=es,ee[4]=r):r=ee[4];let ec=r;ee[5]!==et?(k=et("web.explore.references.item1.text","Bobby is warm, welcoming, and lives in a beautiful neighbourhood. Staying there felt like an experience in itself. He showed me all of New York."),ee[5]=et,ee[6]=k):k=ee[6],ee[7]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.createLocalizedString)("Noah"),ee[7]=S):S=ee[7],ee[8]!==et?(_=et("web.explore.references.item1.location","Toronto, Canada"),ee[8]=et,ee[9]=_):_=ee[9],ee[10]!==k||ee[11]!==_?(C={id:"ref-1",text:k,authorName:S,authorLocation:_,authorAvatarUrl:"/images/avatar1.webp"},ee[10]=k,ee[11]=_,ee[12]=C):C=ee[12],ee[13]!==et?(I=et("web.explore.references.item2.text","Jullie made my f
1irst CS experience incredible. So warm, welcoming, and helpful in a crisis. Forever grateful for this kind soul. \uD83D\uDC97"),ee[13]=et,ee[14]=I):I=ee[14],ee[15]===Symbol.for("react.memo_cache_sentinel")?(T=(0,a.createLocalizedString)("Hina"),ee[15]=T):T=ee[15],ee[16]!==et?(N=et("web.explore.references.item2.location","Osaka, Japan"),ee[16]=et,ee[17]=N):N=ee[17],ee[18]!==I||ee[19]!==N?(L={id:"ref-2",text:I,authorName:T,authorLocation:N,authorAvatarUrl:"/images/avatar2.webp"},ee[18]=I,ee[19]=N,ee[20]=L):L=ee[20],ee[21]!==et?(E=et("web.explore.references.item3.text","Amy is such a warm smiley person with great recommendations! Funny and interesting conversations. I got a truly authentic NYC experience!"),ee[21]=et,ee[22]=E):E=ee[22],ee[23]===Symbol.for("react.memo_cache_sentinel")?(P=(0,a.createLocalizedString)("Louise"),ee[23]=P):P=ee[23],ee[24]!==et?(z=et("web.explore.references.item3.location","Paris, France"),ee[24]=et,ee[25]=z):z=ee[25],ee[26]!==E||ee[27]!==z?($={id:"ref-3",text:E,authorName:P,authorLocation:z,authorAvatarUrl:"/images/avatar3.webp"},ee[26]=E,ee[27]=z,ee[28]=$):$=ee[28],ee[29]!==L||ee[30]!==$||ee[31]!==C?(D=[C,L,$],ee[29]=L,ee[30]=$,ee[31]=C,ee[32]=D):D=ee[32];let ed=D;ee[33]!==et?(R=et("explore.references.highlight.titleHighlight","Open Doors"),ee[33]=et,ee[34]=R):R=ee[34];let eu=R;ee[35]!==eu?(F=(0,s.jsx)(m.M,{as:"span",color:"gradient",children:eu},"openDoors"),ee[35]=eu,ee[36]=F):F=ee[36],ee[37]!==et||ee[38]!==F?(H=et("explore.references.highlight.titlePrefix",{defaultValue:"Hosts with {openDoors}",openDoors:F}),ee[37]=et,ee[38]=F,ee[39]=H):H=ee[39];let ep=H;ee[40]!==et?(M=et("explore.references.veryLikely","Very Likely to Recommend"),ee[40]=et,ee[41]=M):M=ee[41];let em=M;ee[42]!==et?(B=et("explore.references.highlight.cta","Search Hosts"),ee[42]=et,ee[43]=B):B=ee[43];let eh=B;return ee[44]!==ep?(O=(0,s.jsx)(m.M,{children:ep}),ee[44]=ep,ee[45]=O):O=ee[45],ee[46]!==et?(K=et("explore.references.highlight.description","Verified members, real references. See who’s welcoming travelers like you"),ee[46]=et,ee[47]=K):K=ee[47],ee[48]!==K?(X=(0,s.jsx)(u.u,{color:"muted",children:K}),ee[48]=K,ee[49]=X):X=ee[49],ee[50]!==O||ee[51]!==X?(q=(0,s.jsxs)(h.Tk,{spacing:h.Kz.xs,children:[O,X]}),ee[50]=O,ee[51]=X,ee[52]=q):q=ee[52],ee[53]===Symbol.for("react.memo_cache_sentinel")?(U=(0,s.jsx)(l.e,{size:16}),ee[53]=U):U=ee[53],ee[54]!==ec||ee[55]!==eh?(W=(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(p.j,{clickEvent:j.c.referencesSearchHostsCta.clickEvent,customAttributes:j.c.referencesSearchHostsCta.customAttributes,label:eh,onPress:ec,prefixIcon:U,size:"small",testId:"explore-references-search-button-desktop"})}),ee[54]=ec,ee[55]=eh,ee[56]=W):W=ee[56],ee[57]!==q||ee[58]!==W?(Y=(0,s.jsx)(x.X,{testId:"explore-references-section-heading",children:(0,s.jsxs)(f.zt,{alignItems:f.k2.end,spaceBetween:!0,children:[q,W]})}),ee[57]=q,ee[58]=W,ee[59]=Y):Y=ee[59],ee[60]!==ea||ee[61]!==ec||ee[62]!==ed||ee[63]!==eh||ee[64]!==em?(V=ed.map((e,t)=>{let r=t*v.zB;return(0,s.jsx)(x.X,{delaySeconds:r,from:"right",isVisible:ea,testId:`explore-references-card-reveal-${e.id}`,children:(0,s.jsx)(d.M,{event:j.c.referencesCard.clickEvent,properties:{...j.c.referencesCard.customAttributes,reference_id:e.id},testId:`explore-references-section-card-click-${e.id}`,children:(0,s.jsx)(A,{authorAvatarUrl:e.authorAvatarUrl,authorLocation:e.authorLocation,authorName:e.authorName,cardDelaySeconds:r,id:e.id,isVisible:ea,onClick:ec,searchHostsLabel:eh,text:e.text,veryLikelyLabel:em})})},e.id)}),ee[60]=ea,ee[61]=ec,ee[62]=ed,ee[63]=eh,ee[64]=em,ee[65]=V):V=ee[65],ee[66]!==el||ee[67]!==V?(Z=(0,s.jsx)("div",{className:"grid w-full grid-cols-1 gap-m md:grid-cols-3 md:gap-lg","data-reveal-from":"right","data-testid":"explore-references-grid",ref:el,children:V}),ee[66]=el,ee[67]=V,ee[68]=Z):Z=ee[68],ee[69]===Symbol.for("react.memo_cache_sentinel")?(J=(0,s.jsx)(l.e,{size:20}),ee[69]=J):J=ee[69],ee[70]!==ec||ee[71]!==eh?(G=(0,s.jsx)("div",{className:"flex w-full justify-center lg:hidden",children:(0,s.jsx)(p.j,{clickEvent:j.c.referencesSearchHostsCta.clickEvent,customAttributes:j.c.referencesSearchHostsCta.customAttributes,label:eh,onPress:ec,prefixIcon:J,size:"large",testId:"explore-references-search-button-mobile"})}),ee[70]=ec,ee[71]=eh,ee[72]=G):G=ee[72],ee[73]!==eo||ee[74]!==Y||ee[75]!==Z||ee[76]!==G?(Q=(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-lg","data-testid":"explore-references-section",ref:eo,children:[Y,Z,G]}),ee[73]=eo,ee[74]=Y,ee[75]=Z,ee[76]=G,ee[77]=Q):Q=ee[77],Q}},14169:(e,t,r)=>{r.d(t,{C:()=>n,m:()=>o});var s=r(76293);function o(e){return e?4:3}let n=new Set([s.Kg.verification,s.Kg.onboarding,s.Kg.whatKeepsYouBusy])},14337:(e,t,r)=>{r.d(t,{I:()=>s,K:()=>i});let s="explore-page-scroll-container",o=/^\/c\/[a-z]{2}\/?$/u,n=/^\/c\/[a-z]{2}\/explore$/u;function i(e){if("/"===e||o.test(e))return!0;let t=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;return"/c/explore"===t||n.test(t)}},18590:(e,t,r)=>{r.d(t,{I:()=>i});var s=r(1793),o=r(79167),n=r(2131);function i(e,t){let r,i,l,a,c,d=(0,s.c)(13);d[0]!==e||d[1]!==t?(r=["placeTimezone",e,t],i=async()=>void 0===e||void 0===t||Number.isNaN(e)||Number.isNaN(t)?null:(await (0,n.id)().locations.findNearestLocation.query({latitude:e,longitude:t})).data.timezone,l=void 0!==e&&void 0!==t&&!Number.isNaN(e)&&!Number.isNaN(t),d[0]=e,d[1]=t,d[2]=r,d[3]=i,d[4]=l):(r=d[2],i=d[3],l=d[4]),d[5]!==r||d[6]!==i||d[7]!==l?(a={queryKey:r,queryFn:i,enabled:l,staleTime:1/0,gcTime:1/0},d[5]=r,d[6]=i,d[7]=l,d[8]=a):a=d[8];let{data:u,isLoading:p,error:m}=(0,o.useQuery)(a),h=u??void 0;return d[9]!==m||d[10]!==p||d[11]!==h?(c={timezone:h,isLoading:p,error:m},d[9]=m,d[10]=p,d[11]=h,d[12]=c):c=d[12],c}},20056:(e,t,r)=>{r.d(t,{N:()=>a});var s=r(33463),o=r(1793),n=r(56272),i=r(56083),l=r(64237);function a(e){let t,r,a,c,d,u,p,m,h,f,g,x,v,b,y,w,j,k,S,_=(0,o.c)(50),{hostsNearbyHref:C,exploreEntryHref:I}=e,{t:T}=(0,i.useTranslation)();_[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(n.B,{size:16}),_[0]=t):t=_[0],_[1]!==T?(r=T("web.explore.tour.shared.actionHint","Click the highlighted button"),_[1]=T,_[2]=r):r=_[2],_[3]!==r?(a={icon:t,label:r},_[3]=r,_[4]=a):a=_[4];let N=a;return _[5]!==T?(c=T("web.explore.tour.hosts.steps.hostsNearYou.title","Hosts Near You"),_[5]=T,_[6]=c):c=_[6],_[7]!==T?(d=T("web.explore.tour.hosts.steps.hostsNearYou.description","A shortcut to people hosting close by. You can search any city instead, but nearby is the quickest way in."),_[7]=T,_[8]=d):d=_[8],_[9]!==N||_[10]!==I||_[11]!==C||_[12]!==c||_[13]!==d?(u={title:c,description:d,action:N,advanceMode:"target",navigationHref:C,entryHref:I,targetSelector:l.cc.nearbyButton,placement:"bottom"},_[9]=N,_[10]=I,_[11]=C,_[12]=c,_[13]=d,_[14]=u):u=_[14],_[15]!==T?(p=T("web.explore.tour.hosts.steps.anywhere.title","Anywhere, Not Just Here"),_[15]=T,_[16]=p):p=_[16],_[17]!==T?(m=T("web.explore.tour.hosts.steps.anywhere.description","It opened on hosts near you, but type any city here and it searches there instead, which is what you want before a trip."),_[17]=T,_[18]=m):m=_[18],_[19]!==p||_[20]!==m?(h={title:p,description:m,advanceMode:"button",targetSelector:l.cc.searchBar,placement:"bottom"},_[19]=p,_[20]=m,_[21]=h):h=_[21],_[22]!==T?(f=T("web.explore.tour.hosts.steps.narrowItDown.title","Now Narrow It Down"),_[22]=T,_[23]=f):f=_[23],_[24]!==T?(g=T("web.explore.tour.hosts.steps.narrowItDown.description","Filters are how a wall of results becomes people who can actually take you: when you are going, how many of you, what kind of space, and who they are. Open it."),_[24]=T,_[25]=g):g=_[25],_[26]!==N||_[27]!==f||_[28]!==g?(x={title:f,description:g,action:N,advanceMode:"target",targetSelector:l.cc.filtersButton,placement:"bottom"},_[26]=N,_[27]=f,_[28]=g,_[29]=x):x=_[29],_[30]!==T?(v=T("web.explore.tour.hosts.steps.whoYouCanTrust.title","Who You Can Trust"),_[30]=T,_[31]=v):v=_[31],_[32]!==T?(b=T("web.explore.tour.hosts.steps.whoYouCanTrust.description","Recently active means 
1someone who will actually reply. References are written by members who really met them. Verified means they have proven who they are. Between them, this is how you judge a stranger before asking to stay in their home."),_[32]=T,_[33]=b):b=_[33],_[34]!==v||_[35]!==b?(y={title:v,description:b,advanceMode:"button",targetSelector:l.cc.trustFilters,placement:"bottom",skipScrollIntoView:!0},_[34]=v,_[35]=b,_[36]=y):y=_[36],_[37]!==T?(w=T("web.explore.tour.hosts.steps.thenApply.title","Then Apply"),_[37]=T,_[38]=w):w=_[38],_[39]!==T?(j=T("web.explore.tour.hosts.steps.thenApply.description","Set what matters to you and the list rebuilds around it. Change your mind any time. Filters are not a commitment."),_[39]=T,_[40]=j):j=_[40],_[41]!==w||_[42]!==j?(k={title:w,description:j,advanceMode:"button",targetSelector:l.cc.applyFilters,placement:"topEnd",skipScrollIntoView:!0},_[41]=w,_[42]=j,_[43]=k):k=_[43],_[44]!==x||_[45]!==y||_[46]!==k||_[47]!==u||_[48]!==h?(S={id:l.AU,steps:[u,h,x,y,k]},_[44]=x,_[45]=y,_[46]=k,_[47]=u,_[48]=h,_[49]=S):S=_[49],S}},22259:(e,t,r)=>{r.d(t,{p:()=>a});var s=r(33463),o=r(1793),n=r(56272),i=r(56083),l=r(76134);function a(e){let t,r,a,c,d,u,p,m,h,f,g,x,v,b=(0,o.c)(33),{tripsHref:y,exploreEntryHref:w}=e,{t:j}=(0,i.useTranslation)();b[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(n.B,{size:16}),b[0]=t):t=b[0],b[1]!==j?(r=j("web.explore.tour.shared.actionHint","Click the highlighted button"),b[1]=j,b[2]=r):r=b[2],b[3]!==r?(a={icon:t,label:r},b[3]=r,b[4]=a):a=b[4];let k=a;return b[5]!==j?(c=j("web.explore.tour.trips.steps.yourTrips.title","Your Trips"),b[5]=j,b[6]=c):c=b[6],b[7]!==j?(d=j("web.explore.tour.trips.steps.yourTrips.description","Every trip you are planning lives behind this icon."),b[7]=j,b[8]=d):d=b[8],b[9]!==k||b[10]!==w||b[11]!==c||b[12]!==d||b[13]!==y?(u={title:c,description:d,action:k,advanceMode:"target",navigationHref:y,entryHref:w,targetSelector:l.EY.sidenavTrips,placement:"rightEnd"},b[9]=k,b[10]=w,b[11]=c,b[12]=d,b[13]=y,b[14]=u):u=b[14],b[15]!==j?(p=j("web.explore.tour.trips.steps.placeToStart.title","Need a Place to Start?"),b[15]=j,b[16]=p):p=b[16],b[17]!==j?(m=j("web.explore.tour.trips.steps.placeToStart.description","A shortlist for when you know you want to go somewhere, but not yet where. Add one as a trip whenever you are ready."),b[17]=j,b[18]=m):m=b[18],b[19]!==p||b[20]!==m?(h={title:p,description:m,advanceMode:"button",targetSelector:l.EY.destinationSuggestions,placement:"bottom"},b[19]=p,b[20]=m,b[21]=h):h=b[21],b[22]!==j?(f=j("web.explore.tour.trips.steps.alreadyKnow.title","Already Know Where?"),b[22]=j,b[23]=f):f=b[23],b[24]!==j?(g=j("web.explore.tour.trips.steps.alreadyKnow.description","Add your destination and dates, and hosts there can find and invite you."),b[24]=j,b[25]=g):g=b[25],b[26]!==f||b[27]!==g?(x={title:f,description:g,advanceMode:"button",targetSelector:l.EY.createTrip,placement:"bottom"},b[26]=f,b[27]=g,b[28]=x):x=b[28],b[29]!==x||b[30]!==u||b[31]!==h?(v={id:l.o2,steps:[u,h,x]},b[29]=x,b[30]=u,b[31]=h,b[32]=v):v=b[32],v}},24091:(e,t,r)=>{r.d(t,{ExploreFeedSection:()=>J});var s=r(33463),o=r(1793),n=r(37343),i=r(37818),l=r(79979),a=r(12172),c=r(36208),d=r(56083),u=r(65272),p=r(95441),m=r(41928),h=r(1882),f=r(56657),g=r(25551),x=r(8445),v=r(97479),b=r(1680),y=r(78843),w=r(11922),j=r(86128),k=r(5413),S=r(50280),_=r(23926),C=r(33838),I=r(29880),T=r(26942),N=r(8009),L=r(98214),A=r(58279),E=r(69310),P=r(81110),z=r(79951);function $(e){let t,r,n,i,l,a,c,u,p,m,$,D,R,F,H,M,B,O,K,X,q,U,W,Y,V,Z,J,G,Q,ee,et,er,es=(0,o.c)(79),{title:eo,description:en,communityName:ei,avatarUrl:el,communityHref:ea,upvoteCount:ec,commentCount:ed,testId:eu}=e,{t:ep}=(0,d.useTranslation)();es[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(_.C,{IconComponent:v.n}),es[0]=t):t=es[0],es[1]!==el||es[2]!==ei?(r=(0,s.jsx)(C.r,{indicator:t,children:(0,s.jsx)(T.x,{alt:ei,size:"medium",src:el})}),es[1]=el,es[2]=ei,es[3]=r):r=es[3],es[4]!==ei?(n=(0,s.jsx)(A.T,{truncateText:1,children:ei}),es[4]=ei,es[5]=n):n=es[5],es[6]!==ep?(i=ep("explore.feed.post.subtitle","Popular posts"),es[6]=ep,es[7]=i):i=es[7],es[8]!==i?(l=(0,s.jsx)(j.U,{color:"muted",children:i}),es[8]=i,es[9]=l):l=es[9],es[10]!==n||es[11]!==l?(a=(0,s.jsxs)(z.Tk,{
1className:"min-w-0 flex-1",spacing:k.Kz.xs2,children:[n,l]}),es[10]=n,es[11]=l,es[12]=a):a=es[12],es[13]!==r||es[14]!==a?(c=(0,s.jsxs)(k.zt,{spacing:k.Kz.s,children:[r,a]}),es[13]=r,es[14]=a,es[15]=c):c=es[15],es[16]!==eo?(u=(0,s.jsx)(L.M,{truncateText:1,children:eo}),es[16]=eo,es[17]=u):u=es[17],es[18]!==en?(p=(0,s.jsx)(w.u,{color:"muted",truncateText:3,children:en}),es[18]=en,es[19]=p):p=es[19],es[20]!==u||es[21]!==p?(m=(0,s.jsxs)(z.Tk,{spacing:k.Kz.xs2,children:[u,p]}),es[20]=u,es[21]=p,es[22]=m):m=es[22],es[23]!==m||es[24]!==c?($=(0,s.jsxs)(z.Tk,{className:"w-full",spacing:k.Kz.s,children:[c,m]}),es[23]=m,es[24]=c,es[25]=$):$=es[25];let em=String(ec);es[26]!==em?(D=(0,b.createLocalizedString)(em),es[26]=em,es[27]=D):D=es[27],es[28]===Symbol.for("react.memo_cache_sentinel")?(R=(0,s.jsx)(f.o,{}),es[28]=R):R=es[28],es[29]!==eu?(F=(0,P.v)(eu,"upvote"),es[29]=eu,es[30]=F):F=es[30],es[31]!==ea||es[32]!==D||es[33]!==F?(H=(0,s.jsx)(N.j,{as:y.NextLink,href:ea,label:D,prefixIcon:R,size:"small",testId:F}),es[31]=ea,es[32]=D,es[33]=F,es[34]=H):H=es[34],es[35]!==ep?(M=ep("explore.feed.post.downvote","Downvote"),es[35]=ep,es[36]=M):M=es[36],es[37]===Symbol.for("react.memo_cache_sentinel")?(B=(0,s.jsx)(h.v,{}),es[37]=B):B=es[37],es[38]!==eu?(O=(0,P.v)(eu,"downvote"),es[38]=eu,es[39]=O):O=es[39],es[40]!==ea||es[41]!==M||es[42]!==O?(K=(0,s.jsx)(N.j,{"aria-label":M,as:y.NextLink,href:ea,label:null,prefixIcon:B,size:"small",testId:O}),es[40]=ea,es[41]=M,es[42]=O,es[43]=K):K=es[43],es[44]!==H||es[45]!==K?(X=(0,s.jsxs)(k.zt,{className:"flex-none",spacing:k.Kz.xs,children:[H,K]}),es[44]=H,es[45]=K,es[46]=X):X=es[46];let eh=String(ed);return es[47]!==eh?(q=(0,b.createLocalizedString)(eh),es[47]=eh,es[48]=q):q=es[48],es[49]===Symbol.for("react.memo_cache_sentinel")?(U=(0,s.jsx)(g.x,{}),es[49]=U):U=es[49],es[50]!==eu?(W=(0,P.v)(eu,"comment-count"),es[50]=eu,es[51]=W):W=es[51],es[52]!==ea||es[53]!==q||es[54]!==W?(Y=(0,s.jsx)(N.j,{as:y.NextLink,href:ea,label:q,prefixIcon:U,size:"small",testId:W}),es[52]=ea,es[53]=q,es[54]=W,es[55]=Y):Y=es[55],es[56]!==X||es[57]!==Y?(V=(0,s.jsxs)(k.zt,{className:"flex-none",spacing:k.Kz.lg,children:[X,Y]}),es[56]=X,es[57]=Y,es[58]=V):V=es[58],es[59]!==ep?(Z=ep("explore.feed.post.share","Share"),es[59]=ep,es[60]=Z):Z=es[60],es[61]===Symbol.for("react.memo_cache_sentinel")?(J=(0,s.jsx)(x.B,{}),es[61]=J):J=es[61],es[62]!==eu?(G=(0,P.v)(eu,"share"),es[62]=eu,es[63]=G):G=es[63],es[64]!==ea||es[65]!==Z||es[66]!==G?(Q=(0,s.jsx)(S.K,{ariaLabel:Z,as:y.NextLink,href:ea,icon:J,size:"normal",testId:G,variant:"outline"}),es[64]=ea,es[65]=Z,es[66]=G,es[67]=Q):Q=es[67],es[68]!==V||es[69]!==Q?(ee=(0,s.jsxs)(k.zt,{spaceBetween:!0,children:[V,Q]}),es[68]=V,es[69]=Q,es[70]=ee):ee=es[70],es[71]!==$||es[72]!==ee?(et=(0,s.jsxs)(z.Tk,{className:"w-full p-m",spacing:k.Kz.m,children:[$,ee]}),es[71]=$,es[72]=ee,es[73]=et):et=es[73],es[74]!==ea||es[75]!==ei||es[76]!==et||es[77]!==eu?(er=(0,s.jsx)(I.c,{LinkComponent:y.NextLink,"aria-label":ei,as:"overlay_link",borderRadius:"xs",cardStyle:E.E.Style4,href:ea,testId:eu,children:et}),es[74]=ea,es[75]=ei,es[76]=et,es[77]=eu,es[78]=er):er=es[78],er}var D=r(40665),R=r(18171),F=r(51104),H=r(65548),M=r(34871),B=r(50440),O=r(46578),K=r(6918),X=r(57584),q=r(48248),U=r(14971);let W=["personal","connected","alive"];function Y(e){let t,r,a,c,u,p,m,h,f,g,x,v=(0,o.c)(32),{play:b}=e,{t:y}=(0,d.useTranslation)(),w=(0,i.I)(),[j,k]=(0,n.useState)(0),S=W[w?W.length-1:j];switch(v[0]!==b||v[1]!==w||v[2]!==j?(t=()=>{if(!b||w||j===W.length-1)return;let e=setTimeout(()=>{k(V)},1e3);return()=>{clearTimeout(e)}},r=[b,w,j],v[0]=b,v[1]=w,v[2]=j,v[3]=t,v[4]=r):(t=v[3],r=v[4]),(0,n.useEffect)(t,r),S){case"personal":{let e;v[5]!==y?(e=y("explore.feed.highlight.words.personal","Personal"),v[5]=y,v[6]=e):e=v[6],a=e;break}case"connected":{let e;v[7]!==y?(e=y("explore.feed.highlight.words.connected","Connected"),v[7]=y,v[8]=e):e=v[8],a=e;break}case"alive":{let e;v[9]!==y?(e=y("explore.feed.highlight.words.alive","Alive"),v[9]=y,v[10]=e):e=v[10],a=e}}v[11]===Symbol.for("react.memo_cache_sentinel")?(c={opacity:1,y:0},v[11]=c):c=v[11];let _=`explore-feed-title-word-${S}`;return v[12]!==w?(u=w?void 0:{opacity:0,y:32},v[12]=w,v[13]=u):u=v[13],v[14]!==w?(p=!w&&{opacity:0,y:-32},v[14]=w,v[15]=p):p=v[15],v[16]!==w?(m=w?{duration:0}:O.aT,v[16]=w,v[17]=m):m=v[17],v[18]!==a?(h=(0,s.jsx)(L.M,{as:"span",color:"gradient",children:a}),v[18]=a,v[19]=h):h=v[19],v[20]!==_||v[21]!==u||v[22]!==p||v[23]!==m||v[24]!==h||v[25]!==S?(f=(0,s.jsx)("span",{className:"relative inline-grid align-baseline","data-testid":"explore-feed-title-word",children:(0,s.jsx)(U.N,{initial:!1,mode:"wait",children:(0,s.jsx)(l.P.span,{animate:c,className:"col-start-1 row-start-1 inline-block","data-testid":_,exit:u,initial:p,transition:m,children:h},S)})},"feed-title-word"),v[20]=_,v[21]=u,v[22]=p,v[23]=m,v[24]=h,v[25]=S,v[26]=f):f=v[26],v[27]!==y||v[28]!==f?(g=y("explore.feed.highlight.title",{defaultValue:"Your Feed is {word}",word:f}),v[27]=y,v[28]=f,v[29]=g):g=v[29],v[30]!==g?(x=(0,s.jsx)(L.M,{children:g}),v[30]=g,v[31]=x):x=v[31],x}function V(e){return e+1}let Z={duration:.2,ease:"easeInOut"};function J(){let e,t,r,h,f,g,x,v,b,y,j,k,S,_,C,I,T,L,A,P,U,W,V,J,G,Q,ee,et,er,es,eo,en,ei,el,ea,ec=(0,o.c)(93),{t:ed}=(0,d.useTranslation)(),eu=(0,m.$)(),{onGlobalSearchOpenChange:ep}=(0,F.$)(),{setPendingCategory:em}=(0,H.E)(),eh=(0,R.useIsLoggedIn)();ec[0]===Symbol.for("react.memo_cache_sentinel")?(e={sectionName:"feed_preview",contentSource:"pre_curated_static"},ec[0]=e):e=ec[0];let ef=(0,K.W)(e),eg=(0,i.I)(),{screenSize:ex}=(0,D.e)(),ev=ex>=D.G.md;ec[1]===Symbol.for("react.memo_cache_sentinel")?(t={threshold:O.cB,triggerOnce:!1},ec[1]=t):t=ec[1];let{inView:eb,ref:ey}
1=(0,a.Wx)(t),[ew,ej]=(0,n.useState)(!1);eb&&!ew&&ej(!0);let ek=!0===eg||ew,eS=!0===eg||!ev||eb;ec[2]!==ep||ec[3]!==em?(r=()=>{em(M.b.Community),ep(!0)},ec[2]=ep,ec[3]=em,ec[4]=r):r=ec[4];let e_=r;ec[5]!==ed?(h=ed("global.brand.name","Couchsurfing"),ec[5]=ed,ec[6]=h):h=ec[6],ec[7]!==ed?(f=ed("web.explore.feed.posts.soloTravelLonely.title","The Truth About Solo Travel: It Gets Lonely"),ec[7]=ed,ec[8]=f):f=ec[8],ec[9]!==ed?(g=ed("web.explore.feed.posts.soloTravelLonely.description","Solo travel isn't about avoiding loneliness. It's about learning how to sit with it. In the quiet moments between hikes, conversations, and long drives, you start to understand what truly fulfills you..."),ec[9]=ed,ec[10]=g):g=ec[10],ec[11]!==h||ec[12]!==f||ec[13]!==g?(x={id:"solo-travel-lonely",communitySlugId:"official-couchsurfing",avatarUrl:"/images/couchsurfing-avatar.webp",upvoteCount:566,commentCount:152,communityName:h,title:f,description:g},ec[11]=h,ec[12]=f,ec[13]=g,ec[14]=x):x=ec[14],ec[15]!==ed?(v=ed("web.explore.feed.posts.eurekaNicknameFeature.communityName","50s Travellers"),ec[15]=ed,ec[16]=v):v=ec[16],ec[17]!==ed?(b=ed("web.explore.feed.posts.eurekaNicknameFeature.title","EUREKA! I discovered a new feature in the current version..."),ec[17]=ed,ec[18]=b):b=ec[18],ec[19]!==ed?(y=ed("web.explore.feed.posts.eurekaNicknameFeature.description","Thanks to Carita, if you use your nickname in the post instead of your first name, you’ll receive an email saying “You were mentioned!” Perhaps you already knew this, but I didn’t, so I’m sharing it with you..."),ec[19]=ed,ec[20]=y):y=ec[20],ec[21]!==v||ec[22]!==b||ec[23]!==y?(j={id:"eureka-nickname-feature",communitySlugId:"50s-travellers",avatarUrl:"/images/50s-travellers-avatar.webp",upvoteCount:120,commentCount:163,communityName:v,title:b,description:y},ec[21]=v,ec[22]=b,ec[23]=y,ec[24]=j):j=ec[24],ec[25]!==ed?(k=ed("global.brand.name","Couchsurfing"),ec[25]=ed,ec[26]=k):k=ec[26],ec[27]!==ed?(S=ed("web.explore.feed.posts.studyingTurkish.title","Studying Turkish A1 at Luis \xc1ngel Arango"),ec[27]=ed,ec[28]=S):S=ec[28],ec[29]!==ed?(_=ed("web.explore.feed.posts.studyingTurkish.description","I've been going to the Luis \xc1ngel Arango Library regularly to practice and learn Turkish. My goal is to reach A1 level in a couple of months, and I think doing it with someone else could be a good idea. If anyone wants to join, you're welcome to message me!"),ec[29]=ed,ec[30]=_):_=ec[30],ec[31]!==k||ec[32]!==S||ec[33]!==_?(C={id:"studying-turkish",communitySlugId:"official-couchsurfing",avatarUrl:"/images/couchsurfing-avatar.webp",upvoteCount:334,commentCount:81,communityName:k,title:S,description:_},ec[31]=k,ec[32]=S,ec[33]=_,ec[34]=C):C=ec[34],ec[35]!==ed?(I=ed("global.brand.name","Couchsurfing"),ec[35]=ed,ec[36]=I):I=ec[36],ec[37]!==ed?(T=ed("web.explore.feed.posts.adviceForHosts.title","Community Shout-out: Advice for Hosts"),ec[37]=ed,ec[38]=T):T=ec[38],ec[39]!==ed?(L=ed("web.explore.feed.posts.adviceForHosts.description","Hosting is one of our favorite ways to experience Couchsurfing because there's something really special about welcoming a traveler into your space. Sharing your city, stories, meals, and moments you wouldn't have otherwise. You go from strangers to friends quicker than you can even imagine. There's a community of 14k members ready to answer questions, offer advice, and help you get started..."),ec[39]=ed,ec[40]=L):L=ec[40],ec[41]!==I||ec[42]!==T||ec[43]!==L?(A={id:"advice-for-hosts",communitySlugId:"official-couchsurfing",avatarUrl:"/images/couchsurfing-avatar.webp",upvoteCount:166,commentCount:35,communityName:I,title:T,description:L},ec[41]=I,ec[42]=T,ec[43]=L,ec[44]=A):A=ec[44],ec[45]!==j||ec[46]!==C||ec[47]!==A||ec[48]!==x?(P=[x,j,C,A],ec[45]=j,ec[46]=C,ec[47]=A,ec[48]=x,ec[49]=P):P=ec[49];let eC=P;if(eh)return null;ec[50]!==ey||ec[51]!==ef?(U=e=>{ef(e),ey(e)},ec[50]=ey,ec[51]=ef,ec[52]=U):U=ec[52],ec[53]!==eS?(W=eS?{opacity:1}:{opacity:0},ec[53]=eS,ec[54]=W):W=ec[54];let eI=ev?"fade-in-out":"none";return ec[55]!==ev||ec[56]!==eg?(V=!eg&&!!ev&&{opacity:0},ec[55]=ev,ec[56]=eg,ec[57]=V):V=ec[57],ec[58]!==ev||ec[59]!==eg?(J=eg||!ev?{duration:0}:Z,ec[58]=ev,ec[59]=eg,ec[60]=J):J=ec[60],ec[61]!==ek?(G=(0,s.jsx)(Y,{play:ek}),ec[61]=ek,ec[62]=G):G=ec[62],ec[63]!==ed?(Q=ed("explore.feed.highlight.description","Trip plans, city tips, and questions answered by people who are actually there. Join the conversation before you even pack."),ec[63]=ed,ec[64]=Q):Q=ec[64],ec[65]!==Q?(ee=(0,s.jsx)(w.u,{color:"muted",children:Q}),ec[65]=Q,ec[66]=ee):ee=ec[66],ec[67]!==G||ec[68]!==ee?(et=(0,s.jsxs)(z.Tk,{spacing:z.Kz.s,children:[G,ee]}),ec[67]=G,ec[68]=ee,ec[69]=et):et=ec[69],ec[70]!==ed?(er=ed("explore.feed.highlight.cta","Peek at the Community"),ec[70]=ed,ec[71]=er):er=ec[71],ec[72]===Symbol.for("react.memo_cache_sentinel")?(es=(0,s.jsx)(c.e,{}),ec[72]=es):es=ec[72],ec[73]!==e_||ec[74]!==er?(eo=(0,s.jsx)("div",{children:(0,s.jsx)(N.j,{clickEvent:X.c.feedPeekCommunity.clickEvent,customAttributes:X.c.feedPeekCommunity.customAttributes,label:er,onPress:e_,prefixIcon:es,size:"small",testId:"explore-feed-section-peek-button"})}),ec[73]=e_,ec[74]=er,ec[75]=eo):eo=ec[75],ec[76]!==et||ec[77]!==eo?(en=(0,s.jsx)(E.m,{cardStyle:E.E.Style5,children:(0,s.jsxs)(z.Tk,{
1className:"p-lg",spacing:z.Kz.lg,children:[et,eo]})}),ec[76]=et,ec[77]=eo,ec[78]=en):en=ec[78],ec[79]!==W||ec[80]!==eI||ec[81]!==V||ec[82]!==J||ec[83]!==en?(ei=(0,s.jsx)(l.P.div,{animate:W,className:"w-full md:sticky md:top-[80px] md:flex-1 md:self-start","data-reveal-highlight":eI,"data-testid":"explore-feed-section-highlight",initial:V,transition:J,children:en}),ec[79]=W,ec[80]=eI,ec[81]=V,ec[82]=J,ec[83]=en,ec[84]=ei):ei=ec[84],ec[85]!==eC||ec[86]!==eu||ec[87]!==ek?(el=(0,s.jsx)("div",{className:"flex w-full flex-col gap-m md:flex-1 md:gap-lg",children:eC.map((e,t)=>(0,s.jsx)(B.X,{delaySeconds:t*O.zB,from:"right",isVisible:ek,children:(0,s.jsx)(u.M,{event:p.X.explorePageClick,properties:{section:"feed_preview",action:"fake_post_click",content_source:"pre_curated_static",post_id:e.id},testId:`explore-feed-post-click-${e.id}`,children:(0,s.jsx)(q.j,{children:(0,s.jsx)($,{avatarUrl:e.avatarUrl,commentCount:e.commentCount,communityHref:eu({path:"communities/:slugId",slugId:e.communitySlugId}),communityName:e.communityName,description:e.description,testId:`explore-feed-section-post-${e.id}`,title:e.title,upvoteCount:e.upvoteCount})})})},e.id))}),ec[85]=eC,ec[86]=eu,ec[87]=ek,ec[88]=el):el=ec[88],ec[89]!==U||ec[90]!==ei||ec[91]!==el?(ea=(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-[900px] flex-col gap-m md:flex-row md:gap-lg","data-testid":"explore-feed-section",ref:U,children:[ei,el]}),ec[89]=U,ec[90]=ei,ec[91]=el,ec[92]=ea):ea=ec[92],ea}},25224:(e,t,r)=>{r.d(t,{u:()=>i});var s=r(1793),o=r(1680),n=r(56083);function i(e){let t,r=(0,s.c)(5),{startDate:i,endDate:u,timezone:p}=e,{locale:m}=(0,n.useTranslation)(),{timezone:h}=(0,n.useTimezone)(),f=p??h;if(r[0]!==u||r[1]!==m||r[2]!==i||r[3]!==f){let e=function({locale:e,timezone:t,startDate:r,endDate:s,now:o}){var n,i,u;let p,m=d(r,t),h=d(s,t),f=m!==d(o,t);if(r.getTime()===s.getTime())return f?c({date:r,locale:e,showYear:!0,timezone:t}):function({locale:e,timezone:t,date:r}){return`${l({date:r,locale:e,timezone:t})} ${a({date:r,locale:e,timezone:t})}`}({date:r,locale:e,timezone:t});if(n=r,i=s,u=t,(p=new Intl.DateTimeFormat("en-CA",{day:"2-digit",month:"2-digit",timeZone:u,year:"numeric"})).format(n)===p.format(i)){let o=l({date:r,locale:e,showYear:f,timezone:t}),n=a({date:r,locale:e,timezone:t}),i=a({date:s,locale:e,timezone:t}),c=f?", ":" ";return`${o}${c}${n} - ${i}`}if(m!==h){if(f){let o=c({compactTime:!0,date:r,locale:e,shortMonth:!0,showYear:!0,timezone:t}),n=c({compactTime:!0,date:s,locale:e,shortMonth:!0,showYear:!0,timezone:t});return`${o} - ${n}`}let o=c({compactTime:!0,date:r,locale:e,shortMonth:!0,timezone:t}),n=c({compactTime:!0,date:s,locale:e,shortMonth:!0,showYear:!0,timezone:t});return`${o} - ${n}`}if(f){let o=c({compactTime:!0,date:r,locale:e,showYear:!0,timezone:t}),n=function({locale:e,timezone:t,date:r}){let s=new Intl.DateTimeFormat(e,{day:"2-digit",month:"short",timeZone:t}).format(r);return`${s} ${a({compactTime:!0,date:r,locale:e,timezone:t})}`}({date:s,locale:e,timezone:t});return`${o} - ${n}`}let g=c({date:r,locale:e,timezone:t}),x=c({date:s,locale:e,timezone:t});return`${g} \u2013 ${x}`}({endDate:u,locale:m,now:new Date,startDate:i,timezone:f});t=(0,o.createLocalizedString)(e),r[0]=u,r[1]=m,r[2]=i,r[3]=f,r[4]=t}else t=r[4];return t}function l({locale:e,timezone:t,date:r,showYear:s=!1,shortMonth:o=!1}){return new Intl.DateTimeFormat(e,{day:"numeric",month:o?"short":"long",timeZone:t,weekday:"short",...s?{year:"numeric"}:{}}).format(r)}function a({locale:e,timezone:t,date:r,compactTime:s=!1}){let o=new Intl.DateTimeFormat(e,{hour:"numeric",hour12:!0,minute:"2-digit",timeZone:t}).format(r);return s?o.replace(" ",""):o}function c({locale:e,timezone:t,date:r,showYear:s=!1,compactTime:o=!1,shortMonth:n=!1}){return`${l({date:r,locale:e,shortMonth:n,showYear:s,timezone:t})}, ${a({compactTime:o,date:r,locale:e,timezone:t})}`}function d(e,t){return Number(new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric"}).format(e))}},27231:(e,t,r)=>{r.d(t,{Cg:()=>u,DP:()=>p,IY:()=>d,NB:()=>c});var s=r(82130),o=r.n(s),n=r(83981),i=r(30654),l=r(2131),a=r(37657);let c=(e,t)=>{let r=e.customDateRange?{startDate:(0,a.z)(e.customDateRange.start),endDate:(0,a.z)(e.customDateRange.end)}:void 0;return["hangouts","pins",o()(e.coordinates),e.date,o()(e.activities),o()(e.hangoutSources),o()(e.hangoutTypes),e.cost??null,e.query??null,r?o()(r):null,t]}
1,d=e=>{let t=e.customDateRange?{startDate:(0,a.z)(e.customDateRange.start),endDate:(0,a.z)(e.customDateRange.end)}:void 0;return["hangouts","list",o()(e.coordinates),e.date,o()(e.activities),o()(e.hangoutSources),o()(e.hangoutTypes),e.cost??null,e.query??null,t?o()(t):null]},u=e=>["hangouts","list","isFeatured",e],p=(0,n.DY)("hangouts",{hangoutsForLocation:({coordinates:e,trpcClient:t,customDateRange:r,limit:s=10})=>({queryKey:[e,r,s],queryFn:async()=>{if(void 0===e)throw Error("Coordinates are required");return(t??(0,l.id)()).hangouts.getHangoutsForLocation.query({coordinates:e,limit:s,dateFilter:r?i.Zv.CUSTOM:i.Zv.THIS_MONTH,customDateRange:r})}})})},27695:(e,t,r)=>{r.d(t,{ProfileCompletenessCheckProvider:()=>y,b:()=>j});var s=r(33463),o=r(1793),n=r(37343),i=r(79167),l=r(67194),a=r(84904),c=r(81828),d=r(18171),u=r(76293),p=r(99753),m=r(71758),h=r(1007),f=r(14169),g=r(7454);function x(e){let t,r=(0,o.c)(4),{isOpen:n,onOpenChange:i,remainingCount:l}=e;return r[0]!==n||r[1]!==i||r[2]!==l?(t=(0,s.jsx)(g._,{isOpen:n,onOpenChange:i,remainingCount:l}),r[0]=n,r[1]=i,r[2]=l,r[3]=t):t=r[3],t}let v=(0,n.createContext)({hasMinimumProfileCompleteness:void 0,remainingStepsCount:0,showCompletenessModal:()=>{(0,c.o)("Did you forget to wrap your component in a ProfileCompletenessCheckProvider?")()}}),b=a.z.union([a.z.boolean(),a.z.enum(["true","false"]).transform(e=>"true"===e)]);function y(e){let t,r,n,a,c,u,g,b,y=(0,o.c)(22),{children:j}=e,{isOpen:k,onOpenChange:S}=(0,l.j1)(),_=(0,d.useIsLoggedIn)(),{promptLogin:C}=(0,p.M)();y[0]===Symbol.for("react.memo_cache_sentinel")?(t=m.b.getProfileChecklist({}),y[0]=t):t=y[0],y[1]!==_?(r={...t,enabled:_},y[1]=_,y[2]=r):r=y[2];let{data:I}=(0,i.useQuery)(r),[T]=(0,h.h)(),{isPhoneNumberChecklistStepEnabled:N}=T,L=(0,f.m)(N);e:{let e;if(!I?.items){n=void 0;break e}y[3]!==I.items?(e=I.items.filter(w),y[3]=I.items,y[4]=e):e=y[4],n=e.length}let A=n;t:{if(void 0===A){a=void 0;break t}a=A>=L}let E=a,P=Math.max(L-(A??0),0);y[5]!==E||y[6]!==_||y[7]!==S||y[8]!==C?(c=()=>{_?void 0!==E&&S():C()},y[5]=E,y[6]=_,y[7]=S,y[8]=C,y[9]=c):c=y[9];let z=c;y[10]!==E||y[11]!==P||y[12]!==z?(u={hasMinimumProfileCompleteness:E,remainingStepsCount:P,showCompletenessModal:z},y[10]=E,y[11]=P,y[12]=z,y[13]=u):u=y[13];let $=u;return y[14]!==k||y[15]!==S||y[16]!==P?(g=(0,s.jsx)(x,{isOpen:k,onOpenChange:S,remainingCount:P}),y[14]=k,y[15]=S,y[16]=P,y[17]=g):g=y[17],y[18]!==j||y[19]!==$||y[20]!==g?(b=(0,s.jsxs)(v.Provider,{value:$,children:[j,g]}),y[18]=j,y[19]=$,y[20]=g,y[21]=b):b=y[21],b}function w(e){return!f.C.has(e.itemId)&&e.status===u.q9.Completed}function j(){return(0,n.useContext)(v)}a.z.object({showProfileCompletenessModal:b.optional()}).optional()},32677:(e,t,r)=>{r.d(t,{C4:()=>p,HA:()=>u,N2:()=>m});var s=r(33463),o=r(1793),n=r(37343),i=r(89903),l=r(14337),a=r(26829),c=r(163);let d=(0,n.createContext)(void 0),u={TIMELINE_PAGE:"timeline-page",EVENTS_PANEL:"events-panel",COMMUNITY_PAGE:"community-page",EXPLORE_PAGE:"explore-page"};function p(){let e=(0,n.useContext)(d);if(!e)throw Error("useScroll must be used within a ScrollProvider");return e}function m(e){let t,r,p,m,h,f=(0,o.c)(9),{children:g}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(t={},f[0]=t):t=f[0];
1let[x,v]=(0,n.useState)(t);f[1]!==x?(r={scrollPositions:x,setScrollPositions:v},f[1]=x,f[2]=r):r=f[2];let b=r;return f[3]!==x?(p=()=>{let e=()=>{let e,t,{pathname:r}=window.location;if(r.includes("/feed")?(e=x[u.TIMELINE_PAGE],t=c.wt):r.includes("/events/all")?(e=x[u.EVENTS_PANEL],t=a.bj):r.includes("/communities/")&&!r.includes("/posts/")?(e=x[u.COMMUNITY_PAGE],t=i.kz):(0,l.K)(r)&&(e=x[u.EXPLORE_PAGE],t=l.I),void 0!==e){let r=document.querySelector(`#${t}`);if(!r)return;r.scrollTop=e}};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},m=[x],f[3]=x,f[4]=p,f[5]=m):(p=f[4],m=f[5]),(0,n.useEffect)(p,m),f[6]!==g||f[7]!==b?(h=(0,s.jsx)(d.Provider,{value:b,children:g}),f[6]=g,f[7]=b,f[8]=h):h=f[8],h}},37657:(e,t,r)=>{r.d(t,{z:()=>s});function s(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())).toISOString()}},41061:(e,t,r)=>{r.d(t,{u:()=>p});var s=r(1793),o=r(3048),n=r(95441),i=r(69125),l=r(64237);let a="cs-hosts-tour-steps-taken";function c(){let e=window.sessionStorage.getItem(a);if(null===e)return 0;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:0}function d(e){window.sessionStorage.setItem(a,String(e))}function u(){window.sessionStorage.removeItem(a)}function p(){let e,t,r,a,p,m,h,f,g=(0,s.c)(22),x=(0,o.st)();g[0]!==x?(e=e=>{(0,i.s)(x,n.X.elementClicked,{elementType:"button",elementId:"find_a_host_cta",position:e})},g[0]=x,g[1]=e):e=g[1];let v=e;g[2]!==x?(t=()=>{(0,i.s)(x,n.X.elementClicked,{elementType:"button",elementId:"take_hosts_tour_cta"})},g[2]=x,g[3]=t):t=g[3];let b=t;g[4]!==x?(r=e=>{u(),d(0),(0,i.s)(x,n.X.tourStarted,{groupType:"tour",tour:l.AU,position:e})},g[4]=x,g[5]=r):r=g[5];let y=r;g[6]!==x?(a=()=>{(0,i.s)(x,n.X.elementClicked,{elementType:"button",elementId:"tour_skipped"})},g[6]=x,g[7]=a):a=g[7];let w=a;g[8]!==x?(p=e=>{let t=c();(0,i.s)(x,n.X.tourEnded,{groupType:"tour",tour:l.AU,steps:t,completed:e}),u()},g[8]=x,g[9]=p):p=g[9];let j=p;g[10]!==x?(m=e=>{d(Math.max(c(),e+1)),(0,i.s)(x,n.X.elementClicked,{elementType:"button",elementId:"tour_advanced",step:e+1})},g[10]=x,g[11]=m):m=g[11];let k=m;g[12]!==x?(h=e=>{(0,i.s)(x,n.X.onboardingTourTargetLost,{eventCategory:"failure",reason:"item_not_found",step:e+1})},g[12]=x,g[13]=h):h=g[13];let S=h;return g[14]!==k||g[15]!==v||g[16]!==b||g[17]!==S||g[18]!==j||g[19]!==w||g[20]!==y?(f={trackFindAHostClick:v,trackTakeTourClick:b,trackTourStarted:y,trackTourSkipped:w,trackTourEnded:j,noteStepAdvance:k,trackTargetLost:S},g[14]=k,g[15]=v,g[16]=b,g[17]=S,g[18]=j,g[19]=w,g[20]=y,g[21]=f):f=g[21],f}},41220:(e,t,r)=>{r.d(t,{DownloadAppPromo:()=>v});var s=r(33463),o=r(1793),n=r(11922),i=r(58279),l=r(5899),a=r(79951),c=r(56083),d=r(40665),u=r(10162),p=r(58268),m=r(49866),h=r(96497),f=r.n(h),g=r(69310);function x(e){let t,r,n,i,l=(0,o.c)(9),{variant:a,testId:c,children:d}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=f()("relative","flex","w-full","p-lg","justify-between","items-center","flex-shrink-0"),l[0]=t):t=l[0];let u="flexible"===(void 0===a?"default":a);return l[1]!==u?(r=f()("flex flex-col items-start gap-s",{"w-full":u}),l[1]=u,l[2]=r):r=l[2],l[3]!==d||l[4]!==r?(n=(0,s.jsx)("div",{className:t,"data-slot":"promo",children:(0,s.jsx)("div",{className:r,"data-slot":"left",children:d})}),l[3]=d,l[4]=r,l[5]=n):n=l[5],l[6]!==n||l[7]!==c?(i=(0,s.jsx)(g.m,{cardStyle:g.E.Style4,testId:c,children:n}),l[6]=n,l[7]=c,l[8]=i):i=l[8],i}function v(){let e,t,r,h,f,g,v,b,y,w=(0,o.c)(20),{t:j,locale:k}=(0,c.useTranslation)(),{isMobile:S}=(0,d.e)();return w[0]!==j?(e=j("explore.callToActions.mobile.title","Download the Mobile App"),w[0]=j,w[1]=e):e=w[1],w[2]!==e?(t=(0,s.jsx)(i.T,{as:"h2",children:e}),w[2]=e,w[3]=t):t=w[3],w[4]!==S||w[5]!==j?(r=S?j("explore.callToActions.mobileWeb.description","Couchsurfing is better on the Mobile App"):j("explore.callToActions.mobile.description","Scan the QR code to download the app and get started"),w[4]=S,w[5]=j,w[6]=r):r=w[6],w[7]!==r?(h=(0,s.jsx)(n.u,{color:"muted",children:r}),w[7]=r,w[8]=h):h=w[8],w[9]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("div",{className:"block md:hidden mt-lg",children:(0,s.jsx)(m.M,{layout:"horizontal",testId:"explore-call-to-actions-app-store"})}),w[9]=f):f=w[9],w[10]!==t||w[11]!==h?(g=(0,s.jsxs)(a.Tk,{className:"flex-1",spacing:a.Kz.xs2,children:[t,h,f]}),w[10]=t,w[11]=h,w[12]=g):g=w[12],w[13]!==k?(v=(0,u.ZX)(p.Hu.openMobileApp,{locale:k}),w[13]=k,w[14]=v):v=w[14],w[15]!==v?(b=(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(l.Z,{href:v,size:64,testId:"explore-call-to-actions-qr-code"})}),w[15]=v,w[16]=b):b=w[16],w[17]!==g||w[18]!==b?(y=(0,s.jsx)(x,{testId:"mobile-promo",variant:"flexible",children:(0,s.jsxs)("div",{className:"flex w-full justify-between items-start md:items-center",children:[g,b]})}),w[17]=g,w[18]=b,w[19]=y):y=w[19],y}},42957:(e,t,r)=>{r.r(t),r.d(t,{CalendarPermissionContext:()=>I,CalendarPermissionProvider:()=>T,useCalendarPermission:()=>N});var s=r(33463),o=r(1793),n=r(37343),i=r(81828),l=r(79167),a=r(47122),c=r(69672),d=r(72768),u=r(15682),p=r(56587),m=r(79951),h=r(81110),f=r(69673),g=r(57736),x=r(56083),v=r(5413),b=r(11922),y=r(31449),w=r(8009),j=r(40665),k=r(72554);function S(e){let t,r,n,i,l,a,S,_,C,I,T,N,L,A,E,P,z,$,D,R,F,H,M,B,O,K=(0,o.c)(63),{isOpen:X,onOpenChange:q,onPrompt:U,permissionState:W,testId:Y}=e,V=void 0===Y?"connect-calendar-modal":Y,{t:Z}=(0,x.useTranslation)(),{isMobile:J}=(0,j.e)();K[0]!==Z?(t=Z("common.cancel","Cancel"),K[0]=Z,K[1]=t):t=K[1],K[2]!==V?(r=(0,h.v)(V,"cancel"),K[2]=V,K[3]=r):r=K[3],K[4]!==J||K[5]!==q||K[6]!==t||K[7]!==r?(n=(0,s.jsx)(w.j,{block:J,label:t,onPress:q,testId:r}),K[4]=J,K[5]=q,K[6]=t,K[7]=r,K[8]=n):n=K[8];let G="pending"===W;K[9]!==Z?(i=Z("permissions.connectCalendar.primaryAction","Sync Calendar"),K[9]=Z,K[10]=i):i=K[10],K[11]!==V?(l=(0,h.v)(V,"accept"),K[11]=V,K[12]=l):l=K[12],K[13]!==J||K[14]!==U||K[15]!==G||K[16]!==i||K[17]!==l?(a=(0,s.jsx)(y.j,{block:J,isLoading:G,label:i,onPress:U,testId:l}),K[13]=J,K[14]=U,K[15]=G,K[16]=i,K[17]=l,K[18]=a):a=K[18],K[19]!==n||K[20]!==a?(S=(0,s.jsxs)(v.zt,{className:"px-m pt-s pb-xl3 sm:p-m w-full sm:justify-between flex-none",spacing:m.Kz.m,children:[n,a]}),K[19]=n,K[20]=a,K[21]=S):S=K[21];let Q=S;K[22]!==Z?(_=Z("permissions.connectCalendar.title","Sync Your Calendar"),K[22]=Z,K[23]=_):_=K[23];let ee=_;return K[24]===Symbol.for("react.memo_cache_sentinel")?(C=(0,s.jsx)(p.z,{size:64}),K[24]=C):C=K[24],K[25]!==ee?(I=(0,s.jsx)(f.F,{children:ee}),K[25]=ee,K[26]=I):I=K[26],K[27]!==Z?(T=Z("permissions.connectCalendar.description","This allows us to make suggestions based on your calendar events to improve your experience"),K[27]=Z,K[28]=T):T=K[28],K[29]!==T?(N=(0,s.jsx)(g.g,{color:"muted",children:T}),K[29]=T,K[30]=N):N=K[30],K[31]!==I||K[32]!==N?(L=(0,s.jsxs)(m.Tk,{className:"text-center",spacing:m.Kz.xs,children:[I,N]}),K[31]=I,K[32]=N,K[33]=L):L=K[33],K[34]===Symbol.for("react.memo_cache_sentinel")?(A=(0,s.jsx)(c.R,{size:20}),K[34]=A):A=K[34],K[35]!==Z?(E=Z("permissions.connectCalendar.usageOne","We only use this for trip suggestions"),K[35]=Z,K[36]=E):E=K[36],K[37]!==E?(P=(0,s.jsxs)(v.zt,{className:"justify-center",spacing:m.Kz.m,children:[A,(0,s.jsx)(b.u,{children:E})]}),K[37]=E,K[38]=P):P=K[38],K[39]===Symbol.for("react.memo_cache_sentinel")?(z=(0,s.jsx)(d.V,{size:20}),K[39]=z):z=K[39],K[40]!==Z?($=Z("permissions.connectCalendar.usageTwo","We don't create any events for you"),K[40]=Z,K[41]=$):$=K[41],K[42]!==$?(D=(0,s.jsxs)(v.zt,{className:"justify-center",spacing:m.Kz.m,children:[z,(0,s.jsx)(b.u,{children:$})]}),K[42]=$,K[43]=D):D=K[43],K[44]===Symbol.for("react.memo_cache_sentinel")?(R=(0,s.jsx)(u.c,{size:20}),K[44]=R):R=K[44],K[45]!==Z?(F=Z("permissions.connectCalendar.usageThree","We don't share your calendar data"),K[45]=Z,K[46]=F):
1F=K[46],K[47]!==F?(H=(0,s.jsxs)(v.zt,{className:"justify-center",spacing:m.Kz.m,children:[R,(0,s.jsx)(b.u,{children:F})]}),K[47]=F,K[48]=H):H=K[48],K[49]!==P||K[50]!==D||K[51]!==H?(M=(0,s.jsxs)(m.Tk,{className:"pt-s px-m pb-lg",spacing:m.Kz.lg,children:[P,D,H]}),K[49]=P,K[50]=D,K[51]=H,K[52]=M):M=K[52],K[53]!==L||K[54]!==M?(B=(0,s.jsxs)(s.Fragment,{children:[L,M]}),K[53]=L,K[54]=M,K[55]=B):B=K[55],K[56]!==Q||K[57]!==X||K[58]!==q||K[59]!==B||K[60]!==V||K[61]!==ee?(O=(0,s.jsx)(k.f,{footer:Q,icon:C,isOpen:X,onOpenChange:q,testId:V,title:ee,children:B}),K[56]=Q,K[57]=X,K[58]=q,K[59]=B,K[60]=V,K[61]=ee,K[62]=O):O=K[62],O}var _=r(4533);let C=(0,i.o)("Did you forget to wrap your app in a CalendarPermissionProvider?"),I=(0,n.createContext)({syncCalendar:C,hasSyncedCalendar:!1,isLoadingCalendarSync:!0});function T(e){let t,r,n,i,c=(0,o.c)(15),{children:d,shouldNavigate:u}=e,p=void 0===u||u;c[0]!==p?(t={authType:"calendar",shouldNavigate:p},c[0]=p,c[1]=t):t=c[1];let{isPrompting:m,permissionState:h,onPromptChange:f,onPrompt:g,onRequest:x}=(0,_.z)(t),{hasSyncedCalendar:v,isLoading:b}=function(){let e,t,r=(0,o.c)(4);r[0]===Symbol.for("react.memo_cache_sentinel")?(e={...a.u.hasCalendarSources({})},r[0]=e):e=r[0];let{data:s,isPending:n}=(0,l.useQuery)(e),i=s??!1;return r[1]!==n||r[2]!==i?(t={hasSyncedCalendar:i,isLoading:n},r[1]=n,r[2]=i,r[3]=t):t=r[3],t}();c[2]!==v||c[3]!==b||c[4]!==x?(r={syncCalendar:x,hasSyncedCalendar:v,isLoadingCalendarSync:b},c[2]=v,c[3]=b,c[4]=x,c[5]=r):r=c[5];let y=r;return c[6]!==m||c[7]!==g||c[8]!==f||c[9]!==h?(n=(0,s.jsx)(S,{isOpen:m,onOpenChange:f,onPrompt:g,permissionState:h,testId:"connect-calendar-modal"}),c[6]=m,c[7]=g,c[8]=f,c[9]=h,c[10]=n):n=c[10],c[11]!==d||c[12]!==n||c[13]!==y?(i=(0,s.jsxs)(I.Provider,{value:y,children:[d,n]}),c[11]=d,c[12]=n,c[13]=y,c[14]=i):i=c[14],i}function N(){return(0,n.useContext)(I)}},43905:(e,t,r)=>{r.d(t,{bL:()=>s.b});var s=r(57290)},44241:(e,t,r)=>{r.d(t,{x:()=>g,O:()=>m});var s=r(33463),o=r(1793),n=r(28473),i=r(76319),l=r(39200),a=r(28207),c=r(81110),d=r(92256),u=r(48250),p=r(37343);function m(e){let t,r,s,n,i,l,a,c,d=(0,o.c)(15);d[0]!==e?(t=void 0===e?{}:e,d[0]=e,d[1]=t):t=d[1];let{scrollAmount:u}=t,m=void 0===u?100:u,h=(0,p.useRef)(null),[f,g]=(0,p.useState)(!1),[x,v]=(0,p.useState)(!1),b=(0,p.useRef)(null);d[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=h.current;if(!e)return;let{scrollWidth:t,clientWidth:r}=e,s=Math.max(0,t-r),o=t>r+1;!o&&e.scrollLeft>0&&(e.scrollLeft=0);let{scrollLeft:n}=e;g(o&&n>0),v(o&&n<s-1)},d[2]=r):r=d[2];let y=r;d[3]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{null===b.current&&(b.current=requestAnimationFrame(()=>{b.current=null,y()}))},d[3]=s):s=d[3];let w=s;d[4]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{let e=h.current;if(!e)return;let t=new ResizeObserver(w),r=()=>{let r;t.disconnect(),t.observe(e),(r=e.firstElementChild)&&t.observe(r),w()};r(),e.addEventListener("scroll",y);let s=new MutationObserver(r);return s.observe(e,{childList:!0}),()=>{null!==b.current&&(cancelAnimationFrame(b.current),b.current=null),e.removeEventListener("scroll",y),s.disconnect(),t.disconnect()}},i=[w,y],d[4]=n,d[5]=i):(n=d[4],i=d[5]),(0,p.useEffect)(n,i),d[6]!==m?(l=()=>{let e=h.current;if(!e)return;let t=Math.min(m,e.scrollLeft);e.scrollBy({left:-t,behavior:"smooth"})},d[6]=m,d[7]=l):l=d[7];let j=l;d[8]!==m?(a=()=>{let e=h.current;if(!e)return;let t=Math.min(m,e.scrollWidth-e.clientWidth-e.scrollLeft);e.scrollBy({left:t,behavior:"smooth"})},d[8]=m,d[9]=a):a=d[9];let k=a;return d[10]!==f||d[11]!==x||d[12]!==j||d[13]!==k?(c={scrollContainerRef:h,canScrollLeft:f,canScrollRight:x,handleScrollLeft:j,handleScrollRight:k},d[10]=f,d[11]=x,d[12]=j,d[13]=k,d[14]=c):c=d[14],c}var h=r(1730);let f=(0,n.tv)({slots:{root:[],scrollControl:["transition-all duration-200 overflow-hidden"],scrollContainer:["overflow-x-auto scrollbar-hide flex-1"]},variants:{scrollControlsStyle:{inline:{},overlay:{root:["relative"],scrollControl:["absolute","h-[stretch]","flex","items-center","z-50"]}},fillHeight:{true:{root:["h-full min-h-0 w-full"],scrollControl:["self-center shrink-0"],scrollContainer:["h-full min-h-0 min-w-0 overflow-y-hidden"]},false:{}},direction:{left:{},right:{}}
1,visible:{true:{scrollControl:["opacity-100 max-w-[3rem]"]},false:{scrollControl:["opacity-0 max-w-0 pointer-events-none"]}}},compoundVariants:[{visible:!0,direction:"left",class:{scrollControl:["mr-s"]}},{visible:!0,direction:"right",class:{scrollControl:["ml-s"]}},{scrollControlsStyle:"overlay",direction:"left",class:{scrollControl:["left-0","bg-dark-gradient-left-to-right"]}},{scrollControlsStyle:"overlay",direction:"right",class:{scrollControl:["right-0","bg-dark-gradient-right-to-left"]}}],defaultVariants:{scrollControlsStyle:"inline",fillHeight:!1,direction:"left",visible:!1}});function g(e){let t,r,n,p,g,x,v,b,y,w,j,k,S,_,C=(0,o.c)(63),{buttonsVariant:I,children:T,fillHeight:N,scrollAmount:L,scrollControlsStyle:A,testId:E,onScroll:P}=e,z=void 0===I?"light":I,$=void 0!==N&&N,D=void 0===L?100:L,R=void 0===A?"inline":A,F=(0,h.E)("common.scrollLeft"),H=(0,h.E)("common.scrollRight");C[0]!==D?(t={scrollAmount:D},C[0]=D,C[1]=t):t=C[1];let{scrollContainerRef:M,canScrollLeft:B,canScrollRight:O,handleScrollLeft:K,handleScrollRight:X}=m(t);if(C[2]!==z||C[3]!==B||C[4]!==O||C[5]!==T||C[6]!==$||C[7]!==K||C[8]!==P||C[9]!==M||C[10]!==R||C[11]!==F||C[12]!==E){let e,t,o,l,m,{root:h,scrollContainer:w}
1=f({fillHeight:$,scrollControlsStyle:R}),j=f({fillHeight:$,scrollControlsStyle:R,direction:"left",visible:B}).scrollControl,k=f({fillHeight:$,scrollControlsStyle:R,direction:"right",visible:O}).scrollControl;r=d.z,b=h(),y=u.K.none,n=E;let S=!B,_=j(),I=!B||void 0;C[21]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(i.Z,{size:20}),C[21]=e):e=C[21],C[22]!==E?(t=(0,c.v)(E,"scroll-left"),C[22]=E,C[23]=t):t=C[23],C[24]!==z||C[25]!==K||C[26]!==F||C[27]!==t?(o=(0,s.jsx)(a.K,{ariaLabel:F,icon:e,onPress:K,size:"compact",testId:t,variant:z}),C[24]=z,C[25]=K,C[26]=F,C[27]=t,C[28]=o):o=C[28],C[29]!==S||C[30]!==_||C[31]!==I||C[32]!==o?(p=(0,s.jsx)("div",{"aria-hidden":S,className:_,inert:I,children:o}),C[29]=S,C[30]=_,C[31]=I,C[32]=o,C[33]=p):p=C[33];let N=w();C[34]!==P?(l=e=>{P?.(e.currentTarget.scrollLeft)},C[34]=P,C[35]=l):l=C[35],C[36]===Symbol.for("react.memo_cache_sentinel")?(m={scrollbarWidth:"none",msOverflowStyle:"none"},C[36]=m):m=C[36],C[37]!==T||C[38]!==M||C[39]!==N||C[40]!==l?(g=(0,s.jsx)("div",{className:N,onScroll:l,ref:M,style:m,children:T}),C[37]=T,C[38]=M,C[39]=N,C[40]=l,C[41]=g):g=C[41],x=!O,v=k(),C[2]=z,C[3]=B,C[4]=O,C[5]=T,C[6]=$,C[7]=K,C[8]=P,C[9]=M,C[10]=R,C[11]=F,C[12]=E,C[13]=r,C[14]=n,C[15]=p,C[16]=g,C[17]=x,C[18]=v,C[19]=b,C[20]=y}else r=C[13],n=C[14],p=C[15],g=C[16],x=C[17],v=C[18],b=C[19],y=C[20];let q=!O||void 0;return C[42]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(l.K,{size:20}),C[42]=w):w=C[42],C[43]!==E?(j=(0,c.v)(E,"scroll-right"),C[43]=E,C[44]=j):j=C[44],C[45]!==z||C[46]!==X||C[47]!==H||C[48]!==j?(k=(0,s.jsx)(a.K,{ariaLabel:H,icon:w,onPress:X,size:"compact",testId:j,variant:z}),C[45]=z,C[46]=X,C[47]=H,C[48]=j,C[49]=k):k=C[49],C[50]!==q||C[51]!==k||C[52]!==x||C[53]!==v?(S=(0,s.jsx)("div",{"aria-hidden":x,className:v,inert:q,children:k}),C[50]=q,C[51]=k,C[52]=x,C[53]=v,C[54]=S):S=C[54],C[55]!==r||C[56]!==n||C[57]!==p||C[58]!==g||C[59]!==S||C[60]!==b||C[61]!==y?(_=(0,s.jsxs)(r,{className:b,spacing:y,testId:n,children:[p,g,S]}),C[55]=r,C[56]=n,C[57]=p,C[58]=g,C[59]=S,C[60]=b,C[61]=y,C[62]=_):_=C[62],_}},44658:(e,t,r)=>{r.d(t,{G:()=>i});var s=r(33463),o=r(1793),n=r(32677);function i(e){let t,r,i=(0,o.c)(9),{children:l,containerId:a,pageKey:c,onCaptureClick:d,testId:u}=e,{setScrollPositions:p}=(0,n.C4)();i[0]!==a||i[1]!==d||i[2]!==c||i[3]!==p?(t=()=>{d?.();let e=document.querySelector(`#${a}`);e&&p(t=>({...t,[c]:e.scrollTop}))},i[0]=a,i[1]=d,i[2]=c,i[3]=p,i[4]=t):t=i[4];let m=t;return i[5]!==l||i[6]!==m||i[7]!==u?(r=(0,s.jsx)("div",{className:"relative","data-testid":u,onClickCapture:m,children:l}),i[5]=l,i[6]=m,i[7]=u,i[8]=r):r=i[8],r}},46578:(e,t,r)=>{r.d(t,{FP:()=>i,Gb:()=>a,JE:()=>f,Ml:()=>d,Wm:()=>u,Yi:()=>l,Zn:()=>c,aT:()=>p,cB:()=>s,qo:()=>h,u2:()=>o,vL:()=>g,xy:()=>m,zB:()=>n});let s=.3,o=0,n=.2,i=.25,l={duration:.48,ease:"easeOut"},a={hidden:{opacity:0,x:0,y:100},visible:{opacity:1,x:0,y:0,transition:l}},c={hidden:{opacity:0,x:100,y:0},visible:{opacity:1,x:0,y:0,transition:l}},d={duration:.32,ease:"linear"},u={duration:.32,ease:"easeIn"},p={duration:.32,ease:"easeInOut"},m={duration:.6,ease:"linear"},h=.2,f=28,g=191},48248:(e,t,r)=>{r.d(t,{j:()=>a});var s=r(33463),o=r(1793),n=r(44658),i=r(32677),l=r(14337);function a(e){let t,r=(0,o.c)(3),{children:a,testId:c}=e;return r[0]!==a||r[1]!==c?(t=(0,s.jsx)(n.G,{containerId:l.I,pageKey:i.HA.EXPLORE_PAGE,testId:c,children:a}),r[0]=a,r[1]=c,r[2]=t):t=r[2],t}},49765:(e,t,r)=>{r.d(t,{SpotlightXL:()=>a});var s=r(33463),o=r(1793),n=r(28473),i=r(21306);let l=(0,n.tv)({extend:i.wL,base:["surf-font-spotlight-xl-letterSpacing-mobile","surf-font-spotlight-xl-weight-mobile","surf-font-spotlight-xl-lineHeight-mobile","surf-font-spotlight-xl-size-mobile","md:surf-font-spotlight-xl-letterSpacing-desktop","md:surf-font-spotlight-xl-weight-desktop","md:surf-font-spotlight-xl-lineHeight-desktop","md:surf-font-spotlight-xl-size-desktop"]});function a(e){let t,r,n=(0,o.c)(8),{as:i,children:a,color:c,truncateText:d,testId:u}=e,p=void 0===i?"h1":i,m=void 0===c?"normal":c,h=void 0!==d&&d;return n[0]!==m||n[1]!==h?(t=l({color:m,truncateText:h}),n[0]=m,n[1]=h,n[2]=t):t=n[2],n[3]!==p||n[4]!==a||n[5]!==t||n[6]!==u?(r=(0,s.jsx)(p,{className:t,"data-testid":u,children:a}),n[3]=p,n[4]=a,n[5]=t,n[6]=u,n[7]=r):r=n[7],r}},50316:(e,t,r)=>{r.d(t,{T9:()=>a,qH:()=>l});var s=r(33463),o=r(1793),n=r(37343);let i=(0,n.createContext)(null);function l(e){let t,r=(0,o.c)(3),{children:n,value:l}=e;return r[0]!==n||r[1]!==l?(t=(0,s.jsx)(i.Provider,{value:l,children:n}),r[0]=n,r[1]=l,r[2]=t):t=r[2],t}function a(){let e=(0,n.useContext)(i);if(null===e)throw Error("useExploreAuthModalContext must be used within ExplorePageShell");return e}},50440:(e,t,r)=>{r.d(t,{X:()=>c});var s=r(33463),o=r(1793),n=r(37818),i=r(79979),l=r(12172),a=r(46578);function c(e){let t,r,c,d,u=(0,o.c)(19),{children:p,className:m,from:h,testId:f,isVisible:g,delaySeconds:x,threshold:v}=e,b=void 0===h?"up":h,y=void 0===x?0:x,w=void 0===v?a.cB:v,j=(0,n.I)(),k=void 0!==g;u[0]!==k||u[1]!==w?(t={threshold:w,triggerOnce:!0,skip:k},u[0]=k,u[1]=w,u[2]=t):t=u[2];let{inView:S,ref:_}=(0,l.Wx)(t),C=!0===j||(k?g:S),I="right"===b?a.Zn:a.Gb,T=I.visible;u[3]!==y||u[4]!==j||u[5]!==T?(r="function"==typeof T?T:{...T,transition:j?{duration:0}:{...a.Yi,delay:y}},u[3]=y,u[4]=j,u[5]=T,u[6]=r):r=u[6],u[7]!==I.hidden||u[8]!==r?(c={hidden:I.hidden,visible:r},u[7]=I.hidden,u[8]=r,u[9]=c):c=u[9];let N=c,L=C?"visible":"hidden",A=!j&&"hidden",E=k?void 0:_;return u[10]!==p||u[11]!==m||u[12]!==b||u[13]!==L||u[14]!==A||u[15]!==E||u[16]!==f||u[17]!==N?(d=(0,s.jsx)(i.P.div,{animate:L,className:m,"data-reveal-from":b,"data-testid":f,initial:A,ref:E,variants:N,children:p}),u[10]=p,u[11]=m,u[12]=b,u[13]=L,u[14]=A,u[15]=E,u[16]=f,u[17]=N,u[18]=d):d=u[18],d}},50644:(e,t,r)=>{r.d(t,{m:()=>s.m});var s=r(18839)},52412:(e,t,r)=>{r.d(t,{ExploreContactSyncBanner:()=>d});var s=r(33463),o=r(1793),n=r(18171),i=r(60494),l=r(50316),a=r(6918),c=r(57584);function d(){let e,t,r,d,u=(0,o.c)(11),p=(0,n.useIsLoggedIn)(),{promptLoginFromExplore:m}=(0,l.T9)();u[0]===Symbol.for("react.memo_cache_sentinel")?(e={sectionName:"join_banner",contentSource:"app_content_static"},u[0]=e):e=u[0];let h=(0,a.W)(e);u[1]!==m?(t=()=>{m("join_banner_join")},u[1]=m,u[2]=t):t=u[2];let f=t;u[3]!==m?(r=()=>{m("join_banner_login")},u[3]=m,u[4]=r):r=u[4];let g=r,x=p?void 0:h,v=p?void 0:c.c.joinBannerJoin.clickEvent,b=p?void 0:c.c.joinBannerJoin.customAttributes;return u[5]!==f||u[6]!==g||u[7]!==x||u[8]!==v||u[9]!==b?(d=(0,s.jsx)(i.ContactSyncPromoBanner,{containerRef:x,onLoggedOutPrimaryPress:f,onLoggedOutSecondaryPress:g,primaryClickEvent:v,primaryCustomAttributes:b,secondaryClickEvent:c.c.joinBannerLogin.clickEvent,secondaryCustomAttributes:c.c.joinBannerLogin.customAttributes}),u[5]=f,u[6]=g,u[7]=x,u[8]=v,u[9]=b,u[10]=d):d=u[10],d}},56515:(e,t,r)=>{function s(e){return e}function o(e){return e}r.d(t,{X:()=>s,i:()=>o})},57584:(e,t,r)=>{r.d(t,{c:()=>o});var s=r(95441);let o={heroHostsNearby:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"hosts_nearby",destination:"auth_modal"}},heroCurrentLocation:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"current_location",destination:"auth_modal"}},heroTravelersNearby:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"travelers_nearby",destination:"auth_modal"}},heroEventsWeekend:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"events_weekend",destination:"events_all"}},heroSearchOpen:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"search_open",destination:"global_search"}},heroAnywhereButHere:{clickEvent:s.X.explorePageClick,customAttributes:{section:"hero",action:"anywhere_but_here",destination:"random_location"}},headerLogin:{clickEvent:s.X.explorePageClick,customAttributes:{section:"header",action:"login",destination:"auth_modal"}},joinBannerJoin:{clickEvent:s.X.explorePageClick,customAttributes:{section:"join_banner",action:"join",destination:"auth_modal"}},joinBannerLogin:{clickEvent:s.X.explorePageClick,customAttributes:{section:"join_banner",action:"login",destination:"auth_modal"}},feedPeekCommunity:{clickEvent:s.X.explorePageClick,customAttributes:{section:"feed_preview",action:"peek_community_cta",destination:"search_results",content_source:"pre_curated_static"}},popularLocationsSearch:{clickEvent:s.X.explorePageClick,customAttributes:{section:"popular_locations",action:"search_locations_cta",destination:"search_results",preselected_tab:"Location",content_source:"pre_curated_static"}},popularLocationsCard:{clickEvent:s.X.explorePageClick,customAttributes:{section:"popular_locations",action:"location_card",content_source:"pre_curated_static"}},wholeJourneyHosts:{clickEvent:s.X.explorePageClick,customAttributes:{section:"whole_journey",card:"hosts",destination:"search_results",preselected_tab:"Host",content_source:"pre_curated_static"}},wholeJourneyLocations:{clickEvent:s.X.explorePageClick,customAttributes:{section:"whole_journey",card:"locations",destination:"search_results",preselected_tab:"Location",content_source:"pre_curated_static"}},wholeJourneyEvents:{clickEvent:s.X.explorePageClick,customAttributes:{section:"whole_journey",card:"events",destination:"search_results",preselected_tab:"Event",content_source:"pre_curated_static"}},wholeJourneyCommunity:{clickEvent:s.X.explorePageClick,customAttributes:{section:"whole_journey",card:"community",destination:"search_results",preselected_tab:"Community",content_source:"pre_curated_static"}},eventsSearchCta:{clickEvent:s.X.explorePageClick,customAttributes:{section:"events",action:"search_events_cta",destination:"search_results",preselected_tab:"Event",content_source:"app_content_static"}},eventsCard:{clickEvent:s.X.explorePageClick,customAttributes:{section:"events",action:"event_card",destination:"event_detail",content_source:"app_content_static"}},referencesSearchHostsCta:{clickEvent:s.X.explorePageClick,customAttributes:{section:"references",action:"search_hosts_cta",destination:"search_results",preselected_tab:"Host",content_source:"pre_curated_static"}},referencesCard:{clickEvent:s.X.explorePageClick,customAttributes:{section:"references",action:"reference_card",destination:"search_results",preselected_tab:"Host",content_source:"pre_curated_static"}}}},60287:(e,t,r)=>{r.d(t,{x:()=>s.SpotlightXL});var s=r(49765)},60494:(e,t,r)=>{r.d(t,{ContactSyncPromoBanner:()=>k});var s=r(33463),o=r(1793),n=r(37818),i=r(12172),l=r(56083),a=r(98214),
1c=r(11922),d=r(95057),u=r(31449),p=r(8009),m=r(69310),h=r(3048),f=r(95441),g=r(69125),x=r(60244),v=r(18171),b=r(1007),y=r(46578),w=r(99753);let j=(0,r(64593).Z)("sync-contacts.json");function k(e){let t,r,k,S,_,C,I,T,N,L,A,E,P,z,$,D,R,F,H,M=(0,o.c)(72),{surface:B,title:O,description:K,buttonLabel:X,media:q,testId:U,onLoggedOutPrimaryPress:W,onLoggedOutSecondaryPress:Y,secondaryButtonLabel:V,primaryClickEvent:Z,primaryCustomAttributes:J,secondaryClickEvent:G,secondaryCustomAttributes:Q,containerRef:ee}=e,et=void 0===B?"explore_page":B,er=void 0===U?"contacts-promo":U,{t:es}=(0,l.useTranslation)(),eo=(0,v.useIsLoggedIn)(),{promptLogin:en}=(0,w.M)(),[ei]=(0,b.h)(),{googleAuth:el}=ei,ea=(0,h.st)(),{syncContacts:ec,hasSyncedContacts:ed,isLoadingContactsSync:eu}=(0,x.useContactsPermission)(),ep=(0,n.I)();M[0]===Symbol.for("react.memo_cache_sentinel")?(t={triggerOnce:!0,threshold:y.cB},M[0]=t):t=M[0];let{ref:em,inView:eh}=(0,i.Wx)(t);M[1]!==ee||M[2]!==em?(r=e=>{em(e),ee?.(e)},M[1]=ee,M[2]=em,M[3]=r):r=M[3];let ef=r;M[4]!==eo||M[5]!==W||M[6]!==en||M[7]!==ea||M[8]!==et||M[9]!==ec?(k=()=>{if(eo){(0,g.s)(ea,f.X.contactSyncCardTapped,{surface:et}),ec();return}W?W():en()},M[4]=eo,M[5]=W,M[6]=en,M[7]=ea,M[8]=et,M[9]=ec,M[10]=k):k=M[10];let eg=k;if(ed||!el||eu)return null;M[11]!==K||M[12]!==eo||M[13]!==es?(S=K??(eo?es("explore.callToActions.contacts.description","Some of your contacts might already be here"):es("explore.callToActions.syncContacts.loggedOutDescription","Your people are already here hosting, posting and heading to events near you.")),M[11]=K,M[12]=eo,M[13]=es,M[14]=S):S=M[14];let ex=S;M[15]!==X||M[16]!==eo||M[17]!==es?(_=X??(eo?es("explore.callToActions.contacts.buttonLabel","Sync Contacts"):es("explore.callToActions.syncContacts.joinCouchsurfing","Join Couchsurfing")),M[15]=X,M[16]=eo,M[17]=es,M[18]=_):_=M[18];let ev=_;M[19]!==es||M[20]!==O?(C=O??(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.M,{as:"span",color:"gradient",children:es("explore.callToActions.syncContacts.titleHighlight","Your Circle")}),es("explore.callToActions.syncContacts.titleSuffix"," Just Got Bigger!")]}),M[19]=es,M[20]=O,M[21]=C):C=M[21];let eb=C,ey=q?.path??j,ew=q?.className??"h-full w-full",ej=q?.loop??!1;M[22]!==V||M[23]!==es?(I=V??es("web.explore.button.login","Login"),M[22]=V,M[23]=es,M[24]=I):I=M[24];let ek=I,eS=`${er}-card`,e_=`${er}-title`;M[25]!==eb||M[26]!==e_?(T=(0,s.jsx)("div",{className:"text-balance",children:(0,s.jsx)(a.M,{as:"h2",testId:e_,children:eb})}),M[25]=eb,M[26]=e_,M[27]=T):T=M[27];let eC=`${er}-description`;M[28]!==ex||M[29]!==eC?(N=(0,s.jsx)("div",{className:"text-pretty pr-[140px] md:pr-[190px]",children:(0,s.jsx)(c.u,{testId:eC,children:ex})}),M[28]=ex,M[29]=eC,M[30]=N):N=M[30],M[31]!==T||M[32]!==N?(L=(0,s.jsxs)("div",{className:"flex flex-col gap-xs2 pr-m",children:[T,N]}),M[31]=T,M[32]=N,M[33]=L):L=M[33];let eI=`${er}-button`;M[34]!==eg||M[35]!==Z||M[36]!==J||M[37]!==ev||M[38]!==eI?(A=(0,s.jsx)(u.j,{clickEvent:Z,customAttributes:J,label:ev,onPress:eg,testId:eI}),M[34]=eg,M[35]=Z,M[36]=J,M[37]=ev,M[38]=eI,M[39]=A):A=M[39],M[40]!==eo||M[41]!==Y||M[42]!==ek||M[43]!==G||M[44]!==Q||M[45]!==er?(E=eo||!Y?null:(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(p.j,{clickEvent:G,customAttributes:Q,label:ek,onPress:Y,testId:`${er}-secondary-button`})}),M[40]=eo,M[41]=Y,M[42]=ek,M[43]=G,M[44]=Q,M[45]=er,M[46]=E):E=M[46],M[47]!==A||M[48]!==E?(P=(0,s.jsxs)("div",{className:"flex items-center gap-s self-start pr-[191px] md:pr-[243px]",children:[A,E]}),M[47]=A,M[48]=E,M[49]=P):P=M[49],M[50]!==L||M[51]!==P?(z=(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center gap-lg py-m pl-m",children:[L,P]}),M[50]=L,M[51]=P,M[52]=z):z=M[52];let eT=`${er}-media`,eN=!!eh&&!0!==ep,eL=`${er}-lottie`;return M[53]!==ew||M[54]!==ej||M[55]!==ey||M[56]!==eN||M[57]!==eL?($=(0,s.jsx)(d.j,{className:ew,loop:ej,path:ey,play:eN,testId:eL}),M[53]=ew,M[54]=ej,M[55]=ey,M[56]=eN,M[57]=eL,M[58]=$):$=M[58],M[59]!==eT||M[60]!==$?(D=(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -bottom-[70px] -right-[75px] flex h-[199px] w-[263px] items-center justify-center md:-right-[20px]","data-testid":eT,children:$}),M[59]=eT,M[60]=$,M[61]=D):D=M[61],M[62]!==z||M[63]!==D?(R=(0,s.jsxs)("div",{className:"relative flex w-full min-h-[120px] flex-row",children:[z,D]}),M[62]=z,M[63]=D,M[64]=R):R=M[64],M[65]!==eS||M[66]!==R?(F=(0,s.jsx)(m.m,{borderRadius:"xs",cardStyle:m.E.Style5,testId:eS,children:R}),M[65]=eS,M[66]=R,M[67]=F):F=M[67],M[68]!==ef||M[69]!==F||M[70]!==er?(H=(0,s.jsx)("div",{className:"relative w-full","data-testid":er,ref:ef,children:F}),M[68]=ef,M[69]=F,M[70]=er,M[71]=H):H=M[71],H}},62148:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(1793),o=r(3048),n=r(95441),i=r(69125),l=r(81886);let a="cs-profile-tour-steps-taken";function c(){let e=window.sessionStorage.getItem(a);if(null===e)return 0;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:0}function d(e){window.sessionStorage.setItem(a,String(e))}function u(){window.sessionStorage.removeItem(a)}function p(){let e,t,r,a,p,m,h,f=(0,s.c)(19),g=(0,o.st)();f[0]!==g?(e=()=>{(0,i.s)(g,n.X.elementClicked,{elementType:"button",elementId:"go_to_profile_cta"})},f[0]=g,f[1]=e):e=f[1];let x=e;f[2]!==g?(t=()=>{(0,i.s)(g,n.X.elementClicked,{elementType:"button",elementId:"take_profile_tour_cta"})},f[2]=g,f[3]=t):t=f[3];let v=t;f[4]!==g?(r=()=>{u(),d(0),(0,i.s)(g,n.X.tourStarted,{groupType:"tour",tour:l.nq})},f[4]=g,f[5]=r):r=f[5];let b=r;f[6]!==g?(a=()=>{(0,i.s)(g,n.X.elementClicked,{elementType:"button",elementId:"tour_skipped"})},f[6]=g,f[7]=a):a=f[7];let y=a;f[8]!==g?(p=e=>{let t=c();(0,i.s)(g,n.X.tourEnded,{groupType:"tour",tour:l.nq,steps:t,completed:e}),u()},f[8]=g,f[9]=p):p=f[9];let w=p;f[10]!==g?(m=e=>{d(Math.max(c(),e+1)),(0,i.s)(g,n.X.elementClicked,{elementType:"button",elementId:"tour_advanced"})}
1,f[10]=g,f[11]=m):m=f[11];let j=m;return f[12]!==j||f[13]!==x||f[14]!==v||f[15]!==w||f[16]!==y||f[17]!==b?(h={trackGoToProfileClick:x,trackTakeTourClick:v,trackTourStarted:b,trackTourSkipped:y,trackTourEnded:w,noteStepAdvance:j},f[12]=j,f[13]=x,f[14]=v,f[15]=w,f[16]=y,f[17]=b,f[18]=h):h=f[18],h}},64237:(e,t,r)=>{r.d(t,{$T:()=>h,AB:()=>n,AU:()=>s,Ig:()=>c,RU:()=>i,V4:()=>f,Xm:()=>a,cc:()=>l,lh:()=>o,mQ:()=>g,q9:()=>u,tH:()=>d,uD:()=>p});let s="hosts",o="tour",n="step",i={searchBar:1,filtersButton:2,trustFilters:3,applyFilters:4},l={nearbyButton:'[data-testid="host-nearby-button"]',searchBar:'[data-testid="host-travelers-search-bar"]',filtersButton:'[data-testid="host-search-filters-button"]',trustFilters:'[data-testid="host-search-trust-filters"]',applyFilters:'[data-testid="host-search-apply-filters"]',locationAccept:'[data-testid="share-location-modal-accept"]'};function a(e,t){let r=e.indexOf("#"),i=-1===r?e:e.slice(0,r),l=-1===r?"":e.slice(r),a=i.indexOf("?"),c=-1===a?i:i.slice(0,a),d=new URLSearchParams(-1===a?"":i.slice(a+1));return d.set(o,s),d.set(n,String(t+1)),`${c}?${d.toString()}${l}`}function c(e,t){if(e!==s||null===t)return null;let r=Number.parseInt(t,10);return!Number.isFinite(r)||r<1?null:r-1}function d(e){let t=new URL(window.location.href);t.searchParams.set(o,s),t.searchParams.set(n,String(e+1));let r=t.searchParams.toString();window.history.replaceState({},"",`${t.pathname}?${r}${t.hash}`)}function u(e){return{[o]:s,[n]:String(e+1)}}function p(){let e=new URL(window.location.href);if(e.searchParams.get(o)!==s&&!e.searchParams.has(n))return;e.searchParams.delete(o),e.searchParams.delete(n);let t=e.searchParams.toString(),r=""===t?"":`?${t}`;window.history.replaceState(window.history.state,"",`${e.pathname}${r}${e.hash}`)}let m="cs.featureTour.hosts.completed";function h(){try{window.sessionStorage.setItem(m,"1")}catch{}}function f(){try{window.sessionStorage.removeItem(m)}catch{}}function g(){try{return"1"===window.sessionStorage.getItem(m)}catch{return!1}}},65012:(e,t,r)=>{r.d(t,{ExploreEventsSection:()=>U});var s=r(33463),o=r(1793),n=r(37818),i=r(12172),l=r(36208),a=r(56083),c=r(65272),d=r(69673),u=r(57736),p=r(5413),m=r(79951),h=r(8009),f=r(74600),g=r(40665),x=r(34871),v=r(51104),b=r(50440),y=r(46578),w=r(65548),j=r(6918),k=r(57584),S=r(48248),_=r(67563),C=r(79369),I=r(30654),T=r(2131),N=r(27231);function L(e){return{items:e.pages.flatMap(A),totalCount:e.pages[0]?.total??0}}function A(e){return e.data}var E=r(1680),P=r(1780),z=r(85215),$=r(79979),D=r(78843),R=r(81110),F=r(23172),H=r(98214),M=r(69310);function B(e){let t,r,i,l,a,c,d,u,p,h,f,g,x,v,b,w,j=(0,o.c)(47),{href:k,imageSrc:S,imageAlt:_,date:C,timeRange:I,title:T,location:N,rel:L,target:A,testId:E}=e,P=(0,n.I)();return j[0]!==P?(t=P?void 0:{scale:1.1},j[0]=P,j[1]=t):t=j[1],j[2]!==E?(r=(0,R.v)(E,"image"),j[2]=E,j[3]=r):r=j[3],j[4]!==_||j[5]!==S||j[6]!==r?(i=(0,s.jsx)(z.default,{alt:_,className:"object-cover","data-testid":r,fill:!0,sizes:"(min-width: 768px) 33vw, 85vw",src:S}),j[4]=_,j[5]=S,j[6]=r,j[7]=i):i=j[7],j[8]!==t||j[9]!==i?(l=(0,s.jsx)($.P.div,{className:"absolute inset-0",transition:y.Ml,whileHover:t,children:i}),j[8]=t,j[9]=i,j[10]=l):l=j[10],j[11]!==E?(a=(0,R.v)(E,"details"),j[11]=E,j[12]=a):a=j[12],j[13]!==C||j[14]!==I?(c=[C,I],j[13]=C,j[14]=I,j[15]=c):c=j[15],j[16]!==E?(d=(0,R.v)(E,"datetime"),j[16]=E,j[17]=d):d=j[17],j[18]!==c||j[19]!==d?(u=(0,s.jsx)(F.O,{items:c,testId:d,truncate:!0}),j[18]=c,j[19]=d,j[20]=u):u=j[20],j[21]!==E?(p=(0,R.v)(E,"title"),j[21]=E,j[22]=p):p=j[22],j[23]!==p||j[24]!==T?(h=(0,s.jsx)(H.M,{testId:p,truncateText:1,children:T}),j[23]=p,j[24]=T,j[25]=h):h=j[25],j[26]!==N?(f=[N],j[26]=N,j[27]=f):f=j[27],j[28]!==E?(g=(0,R.v)(E,"location"),j[28]=E,j[29]=g):g=j[29],j[30]!==f||j[31]!==g?(x=(0,s.jsx)(F.O,{items:f,testId:g}),j[30]=f,j[31]=g,j[32]=x):x=j[32],j[33]!==h||j[34]!==x||j[35]!==u?(v=(0,s.jsxs)(m.Tk,{className:"p-s",spacing:m.Kz.xs,children:[u,h,x]}),j[33]=h,j[34]=x,j[35]=u,j[36]=v):v=j[36],j[37]!==v||j[38]!==a?(b=(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-s z-10 surf-backgroundCaptionGradient",children:(0,s.jsx)(M.m,{borderRadius:"xs",cardStyle:M.E.Style5,testId:a,children:v})}),j[37]=v,j[38]=a,j[39]=b):b=j[39],j[40]!==k||j[41]!==L||j[42]!==b||j[43]!==l||j[44]!==A||j[45]!==E?(w=(0,s.jsxs)(D.NextLink,{className:"relative block h-full min-h-[400px] w-full overflow-hidden rounded-m border border-shadesLight-100 lg:min-h-[274px]","data-testid":E,href:k,rel:L,target:A,children:[l,b]}),j[40]=k,j[41]=L,j[42]=b,j[43]=l,j[44]=A,j[45]=E,j[46]=w):w=j[46],w}var O=r(18590),K=r(25224),X=r(65161);function q(e){let t,r,n,i,l,c,d,u,p,m=(0,o.c)(32),{hangout:h,testId:f}=e,{t:g,u:x}=(0,a.useTranslation)(),v=(0,P.B)(),{slug:b,id:y,title:w,place:j,primaryImage:k,startDateTime:S,endDateTime:_}
1=h,{locationSummary:C,point:I,name:T}=j,{url:N}=k.medium,{timezone:L,isLoading:A}=(0,O.I)(I.latitude,I.longitude);m[0]!==S||m[1]!==L?(t={date:S,timezone:L},m[0]=S,m[1]=L,m[2]=t):t=m[2];let z=function(e){let t,r=(0,o.c)(5),{date:s,timezone:n}=e,i=(0,X.D)(),{locale:l}=(0,a.useTranslation)(),{timezone:c}=(0,a.useTimezone)(),d=n??c;e:{let e;if(!i){let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,E.createLocalizedString)(""),r[0]=e):e=r[0],t=e;break e}if(r[1]!==s||r[2]!==l||r[3]!==d){let t=new Intl.DateTimeFormat(l,{day:"numeric",month:"short",timeZone:d,weekday:"short"}).format(s);e=(0,E.createLocalizedString)(t),r[1]=s,r[2]=l,r[3]=d,r[4]=e}else e=r[4];t=e}return t}(t);m[3]!==_||m[4]!==S||m[5]!==L?(r={endDate:_,startDate:S,timezone:L},m[3]=_,m[4]=S,m[5]=L,m[6]=r):r=m[6];let $=(0,K.u)(r);m[7]!==z||m[8]!==A?(n=A?(0,E.createLocalizedString)(""):z,m[7]=z,m[8]=A,m[9]=n):n=m[9];let D=n;m[10]!==A||m[11]!==$?(i=A?(0,E.createLocalizedString)(""):$,m[10]=A,m[11]=$,m[12]=i):i=m[12];let R=i,F=`${b}-${y}`;m[13]!==v||m[14]!==F?(l=v({path:"events/:slugId",slugId:F}),m[13]=v,m[14]=F,m[15]=l):l=m[15],m[16]!==g?(c=g("web.explore.events.card.imageAlt","
1Event image"),m[16]=g,m[17]=c):c=m[17];let H=C?.locationDescription.description??T;return m[18]!==H?(d=(0,E.createLocalizedString)(H),m[18]=H,m[19]=d):d=m[19],m[20]!==w||m[21]!==x?(u=x(w),m[20]=w,m[21]=x,m[22]=u):u=m[22],m[23]!==N||m[24]!==D||m[25]!==R||m[26]!==u||m[27]!==l||m[28]!==c||m[29]!==d||m[30]!==f?(p=(0,s.jsx)(B,{date:D,href:l,imageAlt:c,imageSrc:N,location:d,testId:f,timeRange:R,title:u}),m[23]=N,m[24]=D,m[25]=R,m[26]=u,m[27]=l,m[28]=c,m[29]=d,m[30]=f,m[31]=p):p=m[31],p}function U(){let e,t,r,A,E,P,z,$,D,R,F,H,M,B,O,K,X,U,W,Y=(0,o.c)(48),{t:V}=(0,a.useTranslation)(),{onGlobalSearchOpenChange:Z}=(0,v.$)(),{setPendingCategory:J}=(0,w.E)();Y[0]===Symbol.for("react.memo_cache_sentinel")?(e={sectionName:"events",contentSource:"app_content_static"},Y[0]=e):e=Y[0];let G=(0,j.W)(e),Q=(0,n.I)(),{screenSize:ee}=(0,g.e)(),et=ee>=g.G.lg;Y[1]===Symbol.for("react.memo_cache_sentinel")?(t={threshold:y.cB,triggerOnce:!0},Y[1]=t):t=Y[1];let{inView:er,ref:es}=(0,i.Wx)(t),eo=!0===Q||er;Y[2]===Symbol.for("react.memo_cache_sentinel")?(r={enabled:!0,limit:3},Y[2]=r):r=Y[2];let{data:en,isLoading:ei}=function(e){let t,r,s,n=(0,o.c)(8),{limit:i,enabled:l}=e,a=void 0===l||l;return n[0]!==i?(t=(0,N.Cg)(i),n[0]=i,n[1]=t):t=n[1],n[2]!==i?(r=async e=>(0,T.id)().hangouts.searchHangouts.mutate({isFeatured:!0,dateFilter:I.Zv.CUSTOM,offset:e.pageParam,limit:i}),n[2]=i,n[3]=r):r=n[3],n[4]!==a||n[5]!==t||n[6]!==r?(s={queryKey:t,queryFn:r,enabled:a,initialPageParam:0,getNextPageParam:C.w,retry:!1,refetchOnMount:!1,select:L,staleTime:3e5},n[4]=a,n[5]=t,n[6]=r,n[7]=s):s=n[7],(0,_.useInfiniteQuery)(s)}(r);Y[3]!==en?.items?(A=en?.items??[],Y[3]=en?.items,Y[4]=A):A=Y[4];let el=A;Y[5]!==Z||Y[6]!==J?(E=()=>{J(x.b.Event),Z(!0)},Y[5]=Z,Y[6]=J,Y[7]=E):E=Y[7];let ea=E;Y[8]!==V?(P=V("web.explore.events.title.highlight","Soon"),Y[8]=V,Y[9]=P):P=Y[9];let ec=P;Y[10]!==ec?(z=(0,s.jsx)(d.F,{as:"span",color:"gradient",children:ec},"highlight"),Y[10]=ec,Y[11]=z):z=Y[11],Y[12]!==V||Y[13]!==z?($=V("web.explore.events.title.default",{defaultValue:"Happening {highlight}",highlight:z}),Y[12]=V,Y[13]=z,Y[14]=$):$=Y[14];let ed=$;Y[15]!==V?(D=V("web.explore.events.description","See what’s happening in the city before you arrive"),Y[15]=V,Y[16]=D):D=Y[16];let eu=D;Y[17]!==V?(R=V("web.explore.events.searchEvents","Search Events"),Y[17]=V,Y[18]=R):R=Y[18];let ep=R;return ei||0!==el.length?(Y[19]!==ed?(F=(0,s.jsx)(d.F,{children:ed}),Y[19]=ed,Y[20]=F):F=Y[20],Y[21]!==eu?(H=(0,s.jsx)(u.g,{color:"muted",children:eu}),Y[21]=eu,Y[22]=H):H=Y[22],Y[23]!==F||Y[24]!==H?(M=(0,s.jsxs)(m.Tk,{spacing:m.Kz.xs2,children:[F,H]}),Y[23]=F,Y[24]=H,Y[25]=M):M=Y[25],Y[26]===Symbol.for("react.memo_cache_sentinel")?(B=(0,s.jsx)(l.e,{size:16}),Y[26]=B):B=Y[26],Y[27]!==ea||Y[28]!==ep?(O=(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(h.j,{clickEvent:k.c.eventsSearchCta.clickEvent,customAttributes:k.c.eventsSearchCta.customAttributes,label:ep,onPress:ea,prefixIcon:B,size:"small",testId:"explore-events-search-button-desktop"})}),Y[27]=ea,Y[28]=ep,Y[29]=O):O=Y[29],Y[30]!==M||Y[31]!==O?(K=(0,s.jsx)(b.X,{testId:"explore-events-section-heading",children:(0,s.jsxs)(p.zt,{alignItems:p.k2.end,spaceBetween:!0,children:[M,O]})}),Y[30]=M,Y[31]=O,Y[32]=K):K=Y[32],Y[33]!==eo||Y[34]!==el||Y[35]!==es||Y[36]!==ea||Y[37]!==ei||Y[38]!==et||Y[39]!==ep||Y[40]!==V?(X=ei?(0,s.jsx)(f.C,{ariaLabel:V("common.loading","Loading..."),testId:"explore-events-loading"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"grid w-full grid-cols-1 gap-m lg:grid-cols-3","data-reveal-from":et?"right":"bottom","data-testid":"explore-events-grid",ref:es,children:el.map((e,t)=>(0,s.jsx)(c.M,{event:k.c.eventsCard.clickEvent,properties:{...k.c.eventsCard.customAttributes,hangout_id:e.id},testId:`explore-event-card-click-${e.id}`,children:(0,s.jsx)(S.j,{children:(0,s.jsx)(b.X,{className:"h-[400px] lg:h-[274px]",delaySeconds:t*y.zB,from:et?"right":"up",isVisible:eo,children:(0,s.jsx)(q,{hangout:e,testId:"explore-event-card"})})})},e.id))}),(0,s.jsx)("div",{className:"flex w-full justify-center lg:hidden",children:(0,s.jsx)(h.j,{clickEvent:k.c.eventsSearchCta.clickEvent,customAttributes:k.c.eventsSearchCta.customAttributes,label:ep,onPress:ea,prefixIcon:(0,s.jsx)(l.e,{size:20}),size:"large",testId:"explore-events-search-button-mobile"})})]}),Y[33]=eo,Y[34]=el,Y[35]=es,Y[36]=ea,Y[37]=ei,Y[38]=et,Y[39]=ep,Y[40]=V,Y[41]=X):X=Y[41],Y[42]!==K||Y[43]!==X?(U=(0,s.jsxs)(m.Tk,{className:"mx-auto w-full max-w-[900px]",spacing:m.Kz.lg,testId:"explore-events-section",children:[K,X]}),Y[42]=K,Y[43]=X,Y[44]=U):U=Y[44],Y[45]!==G||Y[46]!==U?(W=(0,s.jsx)("div",{className:"w-full",ref:G,children:U}),Y[45]=G,Y[46]=U,Y[47]=W):W=Y[47],W):null}},65272:(e,t,r)=>{r.d(t,{M:()=>a});var s=r(33463),o=r(1793),n=r(81110),i=r(3048),l=r(69125);function a(e){let t,r,a,c=(0,o.c)(11),{event:d,properties:u,children:p,testId:m,onAfterTrack:h}=e,f=(0,i.st)();c[0]!==f||c[1]!==d||c[2]!==h||c[3]!==u?(t=()=>{(0,l.s)(f,d,u),h?.()},c[0]=f,c[1]=d,c[2]=h,c[3]=u,c[4]=t):t=c[4];let g=t;return c[5]!==m?(r=(0,n.v)(m,"area-click-tracker"),c[5]=m,c[6]=r):r=c[6],c[7]!==p||c[8]!==g||c[9]!==r?(a=(0,s.jsx)("div",{"data-testid":r,onClick:g,children:p}),c[7]=p,c[8]=g,c[9]=r,c[10]=a):a=c[10],a}},67909:(e,t,r)=>{r.d(t,{ExplorePopularLocationsSection:()=>M});var s=r(33463),o=r(1793),n=r(37818),i=r(12172),l=r(36208),a=r(56083),c=r(41928),d=r(69673),u=r(57736),p=r(5413),m=r(79951),h=r(8009),f=r(34871),g=r(51104),x=r(85215),v=r(28473),b=r(79979),y=r(78843),w=r(19387),j=r(86128),k=r(69310),S=r(81110),_=r(43905),C=r(37343),I=r(58879),T=r(46578);function N(e,t){return`${Math.round(e)}${t}`}function L(e,t){let r,s,i,l,a,c,d=(0,o.c)(12),u=(0,n.I)();d[0]!==e?({value:i,suffix:r}
1=function(e){let t=e.trim(),r=0;for(;r<t.length;){let e=t[r],s=e>="0"&&e<="9",o="."===e&&r>0&&!t.slice(0,r).includes(".");if(!s&&!o)break;r+=1}return 0===r?{value:0,suffix:t}:{value:Number(t.slice(0,r)),suffix:t.slice(r)}}(e),s=N(i,r),d[0]=e,d[1]=r,d[2]=s,d[3]=i):(r=d[1],s=d[2],i=d[3]);let p=s,m=t&&!0!==u,[h,f]=(0,C.useState)(null);return(m||null===h||f(null),d[4]!==m||d[5]!==r||d[6]!==i?(l=()=>{if(!m)return;let e=(0,I.i)(0,i,{...T.xy,onUpdate:e=>{f(N(e,r))}});return()=>{e.stop()}},a=[m,r,i],d[4]=m,d[5]=r,d[6]=i,d[7]=l,d[8]=a):(l=d[7],a=d[8]),(0,C.useEffect)(l,a),m)?(d[9]!==h||d[10]!==r?(c=h??N(0,r),d[9]=h,d[10]=r,d[11]=c):c=d[11],c):p}let A=(0,v.tv)({base:["relative","isolate","flex","h-full","min-h-[320px]","w-full","flex-1","cursor-pointer","self-stretch","overflow-hidden","rounded-m","border","border-shadesLight-100","text-left","md:min-h-[400px]","lg:min-h-0"]});function E(e){let t,r,i,l,c,u,h,f,g,v,C,I,N,E,P=(0,o.c)(51),{name:z,country:$,imageSrc:D,imageAlt:R,memberCount:F,eventCount:H,animateCounts:M,href:B,onClick:O,testId:K,clickEvent:X,customAttributes:q}=e,U=void 0!==M&&M,W=void 0===K?"popular-location-card":K,{t:Y}=(0,a.useTranslation)(),V=(0,n.I)(),Z=(0,_.bL)(W,q,"click",X),J=void 0!==F&&""!==F,G=void 0!==H&&""!==H,Q=L(F??"",U&&J),ee=L(H??"",U&&G);P[0]!==V?(t=V?void 0:{scale:1.1},P[0]=V,P[1]=t):t=P[1],P[2]!==W?(r=(0,S.v)(W,"image"),P[2]=W,P[3]=r):r=P[3],P[4]!==R||P[5]!==D||P[6]!==r?(i=(0,s.jsx)(x.default,{alt:R,className:"object-cover","data-testid":r,fill:!0,sizes:"(min-width: 768px) 33vw, 100vw",src:D}),P[4]=R,P[5]=D,P[6]=r,P[7]=i):i=P[7],P[8]!==t||P[9]!==i?(l=(0,s.jsx)(b.P.div,{className:"absolute inset-0",transition:T.Ml,whileHover:t,children:i}),P[8]=t,P[9]=i,P[10]=l):l=P[10],P[11]!==W?(c=(0,S.v)(W,"details"),P[11]=W,P[12]=c):c=P[12],P[13]!==$||P[14]!==W?(u=void 0===$?null:(0,s.jsx)("span",{className:"uppercase","data-testid":(0,S.v)(W,"country"),children:(0,s.jsx)(j.U,{as:"span",color:"normal",children:$})}),P[13]=$,P[14]=W,P[15]=u):u=P[15],P[16]!==W?(h=(0,S.v)(W,"city"),P[16]=W,P[17]=h):h=P[17],P[18]!==z||P[19]!==h?(f=(0,s.jsx)(d.F,{testId:h,children:z}),P[18]=z,P[19]=h,P[20]=f):f=P[20],P[21]!==ee||P[22]!==Q||P[23]!==G||P[24]!==J||P[25]!==Y||P[26]!==W?(g=J||G?(0,s.jsxs)(p.zt,{spacing:m.Kz.xs,children:[J?(0,s.jsx)(w.v,{testId:(0,S.v)(W,"hosts-stat"),variant:"blur",children:Y("explore.popularLocations.hostsStat","{formattedCount} Hosts",{formattedCount:Q})}):null,G?(0,s.jsx)(w.v,{testId:(0,S.v)(W,"events-stat"),variant:"blur",children:Y("explore.popularLocations.eventsStat","{formattedCount} Events",{formattedCount:ee})}):null]}):null,P[21]=ee,P[22]=Q,P[23]=G,P[24]=J,P[25]=Y,P[26]=W,P[27]=g):g=P[27],P[28]!==f||P[29]!==g||P[30]!==u?(v=(0,s.jsxs)(m.Tk,{className:"p-s",spacing:m.Kz.xs,children:[u,f,g]}),P[28]=f,P[29]=g,P[30]=u,P[31]=v):v=P[31],P[32]!==v||P[33]!==c?(C=(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-[1] p-s surf-backgroundCaptionGradient",children:(0,s.jsx)(k.m,{borderRadius:"xs",cardStyle:k.E.Style5,testId:c,children:v})}),P[32]=v,P[33]=c,P[34]=C):C=P[34],P[35]!==C||P[36]!==l?(I=(0,s.jsxs)(s.Fragment,{children:[l,C]}),P[35]=C,P[36]=l,P[37]=I):I=P[37];let et=I;if(void 0!==B){let e,t;return P[38]===Symbol.for("react.memo_cache_sentinel")?(e=A(),P[38]=e):e=P[38],P[39]!==et||P[40]!==B||P[41]!==O||P[42]!==W||P[43]!==Z?(t=(0,s.jsx)(y.NextLink,{className:e,"data-testid":W,href:B,onClick:O,...Z,children:et}),P[39]=et,P[40]=B,P[41]=O,P[42]=W,P[43]=Z,P[44]=t):t=P[44],t}return P[45]===Symbol.for("react.memo_cache_sentinel")?(N=A(),P[45]=N):N=P[45],P[46]!==et||P[47]!==O||P[48]!==W||P[49]!==Z?(E=(0,s.jsx)("button",{className:N,"data-testid":W,onClick:O,type:"button",...Z,children:et}),P[46]=et,P[47]=O,P[48]=W,P[49]=Z,P[50]=E):E=P[50],E}var P=r(50440),z=r(40665),$=r(65548),D=r(6918),R=r(57584),F=r(48248);let H={bogota:{memberCount:"153k",eventCount:"120"},dubai:{memberCount:"126k",eventCount:"35"},paris:{memberCount:"493k",eventCount:"430"}};function M(e){let t,r,x,v,b,y,w,j,k,S,_,C,I,N,L,A,M,B,O,K,X=(0,o.c)(55),{locations:q}=e,{t:U}=(0,a.useTranslation)(),W=(0,c.$)(),{onGlobalSearchOpenChange:Y}=(0,g.$)(),{setPendingCategory:V}=(0,$.E)();X[0]===Symbol.for("react.memo_cache_sentinel")?(t={sectionName:"popular_locations",contentSource:"pre_curated_static"},X[0]=t):t=X[0];let Z=(0,D.W)(t),J=(0,n.I)(),{screenSize:G}=(0,z.e)(),Q=G>=z.G.lg,ee=Q?T.cB:T.u2;X[1]!==ee?(r={threshold:ee,triggerOnce:!0},X[1]=ee,X[2]=r):r=X[2];let{inView:et,ref:er}=(0,i.Wx)(r),es=!0===J||et;X[3]!==Y||X[4]!==V?(x=()=>{V(f.b.Location),Y(!0)},X[3]=Y,X[4]=V,X[5]=x):x=X[5];let eo=x;if(0===q.length)return null;X[6]!==U?(v=U("web.explore.popularLocations.title.highlight","Locations"),X[6]=U,X[7
1]=v):v=X[7];let en=v;X[8]!==en?(b=(0,s.jsx)(d.F,{as:"span",color:"gradient",children:en},"highlight"),X[8]=en,X[9]=b):b=X[9],X[10]!==U||X[11]!==b?(y=U("web.explore.popularLocations.title.default",{defaultValue:"Popular {highlight}",highlight:b}),X[10]=U,X[11]=b,X[12]=y):y=X[12];let ei=y;X[13]!==U?(w=U("web.explore.popularLocations.description","City pages packed with hosts, events and travelers on the ground"),X[13]=U,X[14]=w):w=X[14];let el=w;X[15]!==U?(j=U("web.explore.popularLocations.searchLocations","Search Locations"),X[15]=U,X[16]=j):j=X[16];let ea=j;X[17]!==ei?(k=(0,s.jsx)(d.F,{children:ei}),X[17]=ei,X[18]=k):k=X[18],X[19]!==el?(S=(0,s.jsx)(u.g,{color:"muted",children:el}),X[19]=el,X[20]=S):S=X[20],X[21]!==S||X[22]!==k?(_=(0,s.jsxs)(m.Tk,{spacing:m.Kz.xs2,children:[k,S]}),X[21]=S,X[22]=k,X[23]=_):_=X[23],X[24]===Symbol.for("react.memo_cache_sentinel")?(C=(0,s.jsx)(l.e,{size:16}),X[24]=C):C=X[24],X[25]!==eo||X[26]!==ea?(I=(0,s.jsx)("div",{className:"hidden lg:block",children:(0,s.jsx)(h.j,{clickEvent:R.c.popularLocationsSearch.clickEvent,customAttributes:R.c.popularLocationsSearch.customAttributes,label:ea,onPress:eo,prefixIcon:C,size:"small",testId:"explore-popular-locations-search-button-desktop"})}),X[25]=eo,X[26]=ea,X[27]=I):I=X[27],X[28]!==_||X[29]!==I?(N=(0,s.jsx)(P.X,{testId:"popular-locations-section-heading",children:(0,s.jsxs)(p.zt,{alignItems:p.k2.end,spaceBetween:!0,children:[_,I]})}),X[28]=_,X[29]=I,X[30]=N):N=X[30];let ec=Q?"right":"bottom";if(X[31]!==es||X[32]!==W||X[33]!==q||X[34]!==Q){let e;X[36]!==es||X[37]!==W||X[38]!==Q?(e=(e,t)=>{let r=H[e.id];return(0,s.jsx)(F.j,{children:(0,s.jsx)(P.X,{className:"h-[400px] lg:h-[274px]",delaySeconds:t*T.zB,from:Q?"right":"up",isVisible:es,testId:`popular-location-reveal-${e.id}`,children:(0,s.jsx)(E,{animateCounts:es,clickEvent:R.c.popularLocationsCard.clickEvent,country:e.country,customAttributes:{...R.c.popularLocationsCard.customAttributes,location_id:e.id,location_slug:e.slug,destination:"location_page"},eventCount:r.eventCount,href:W({path:"locations/:slugId",slugId:e.slug}),imageAlt:e.name,imageSrc:e.imageSrc,memberCount:r.memberCount,name:e.name,testId:`popular-location-card-${e.id}`})})},e.id)},X[36]=es,X[37]=W,X[38]=Q,X[39]=e):e=X[39],L=q.map(e),X[31]=es,X[32]=W,X[33]=q,X[34]=Q,X[35]=L}else L=X[35];return X[40]!==er||X[41]!==ec||X[42]!==L?(A=(0,s.jsx)("div",{className:"grid w-full grid-cols-1 gap-m lg:grid-cols-3","data-reveal-from":ec,"data-testid":"popular-locations-grid",ref:er,children:L}),X[40]=er,X[41]=ec,X[42]=L,X[43]=A):A=X[43],X[44]===Symbol.for("react.memo_cache_sentinel")?(M=(0,s.jsx)(l.e,{size:20}),X[44]=M):M=X[44],X[45]!==eo||X[46]!==ea?(B=(0,s.jsx)("div",{className:"flex w-full justify-center lg:hidden",children:(0,s.jsx)(h.j,{clickEvent:R.c.popularLocationsSearch.clickEvent,customAttributes:R.c.popularLocationsSearch.customAttributes,label:ea,onPress:eo,prefixIcon:M,size:"large",testId:"explore-popular-locations-search-button-mobile"})}),X[45]=eo,X[46]=ea,X[47]=B):B=X[47],X[48]!==N||X[49]!==A||X[50]!==B?(O=(0,s.jsxs)(m.Tk,{className:"mx-auto w-full max-w-[900px]",spacing:m.Kz.lg,testId:"popular-locations-section",children:[N,A,B]}),X[48]=N,X[49]=A,X[50]=B,X[51]=O):O=X[51],X[52]!==Z||X[53]!==O?(K=(0,s.jsx)("div",{className:"w-full",ref:Z,children:O}),X[52]=Z,X[53]=O,X[54]=K):K=X[54],K}},71758:(e,t,r)=>{r.d(t,{b:()=>n});var s=r(83981),o=r(2131);let n=(0,s.DY)("profileCompletenessChecklist",{getProfileChecklist:({trpcClient:e})=>({queryKey:["profile-checklist"],queryFn:async()=>{let t=e??(0,o.id)();return(await t.checklists.getProfileChecklist.query()).data}})})},72650:(e,t,r)=>{r.d(t,{ExploreOnboardingTourSection:()=>ev});var s=r(33463),o=r(1793),n=r(37343),i=r(964),l=r(37818),a=r(12172),c=r(14355),d=r(24304),u=r(56083),p=r(46578),m=r(50440),h=r(85215),f=r(49873),g=r(57736),x=r(58907),v=r(11606),b=r(5413),y=r(69673),w=r(69310),j=r(19387),k=r(81110),S=r(79951),_=r(1680),C=r(43905);let I=(0,_.createLocalizedString)("Done");var T=r(75146),N=r(16193);function L(e){let t,r,n,i,l,a,c,d,u,p,m=(0,o.c)(26),{overlay:h,testId:f}=e,{lockedTitle:x,lockedDescription:v,unlockActionLabel:b,onUnlockPress:w}=h;return m[0]!==f?(t=(0,k.v)(f,"lock-overlay"),m[0]=f,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(T.W,{size:28}),m[2]=r):r=m[2],m[3]!==f?(n=(0,k.v)(f,"locked-title"),m[3]=f,m[4]=n):n=m[4],m[5]!==x||m[6]!==n?(i=(0,s.jsx)(y.F,{testId:n,children:x}),m[5]=x,m[6]=n,m[7]=i):i=m[7],m[8]!==f?(l=(0,k.v)(f,"locked-description"),m[8]=f,m[9]=l):l=m[9],m[10]!==v||m[11]!==l?(a=(0,s.jsx)(g.g,{color:"muted",testId:l,children:v}
1),m[10]=v,m[11]=l,m[12]=a):a=m[12],m[13]!==i||m[14]!==a?(c=(0,s.jsxs)(S.Tk,{className:"w-full flex-1 justify-center",spacing:S.Kz.lg,children:[r,i,a]}),m[13]=i,m[14]=a,m[15]=c):c=m[15],m[16]!==f?(d=(0,k.v)(f,"unlock-action"),m[16]=f,m[17]=d):d=m[17],m[18]!==w||m[19]!==d||m[20]!==b?(u=(0,s.jsx)(N.t,{block:!0,label:b,onPress:w,size:"medium",testId:d}),m[18]=w,m[19]=d,m[20]=b,m[21]=u):u=m[21],m[22]!==t||m[23]!==c||m[24]!==u?(p=(0,s.jsxs)("div",{className:"absolute inset-0 z-[2] flex flex-col rounded-m bg-shadesEureka-700 surf-blur-s p-xl","data-testid":t,children:[c,u]}),m[22]=t,m[23]=c,m[24]=u,m[25]=p):p=m[25],p}function A(e){let t,r,n=(0,o.c)(6),{actions:i,testId:l}=e,{tourActionLabel:a,onTourPress:c}=i;return n[0]!==l?(t=(0,k.v)(l,"tour-action"),n[0]=l,n[1]=t):t=n[1],n[2]!==c||n[3]!==t||n[4]!==a?(r=(0,s.jsx)(S.Tk,{className:"w-full",spacing:S.Kz.s,children:(0,s.jsx)(N.t,{block:!0,label:a,onPress:c,size:"medium",testId:t})}),n[2]=c,n[3]=t,n[4]=a,n[5]=r):r=n[5],r}function E(e){let t,r,n,i,l,a,c,d,u,p,m,_,T,N,E,P,z,$,D,R,F=(0,o.c)(61),{imageSrc:H,imageAlt:M,categoryLabel:B,categoryIcon:O,title:K,description:X}=e,{testId:q,showDoneTag:U,doneLabel:W,trackingAttributes:Y,unlockedActions:V,lockedOverlay:Z}=function(e){let t,r=(0,o.c)(16),{isCompleted:s,doneLabel:n,testId:i,clickEvent:l,customAttributes:a}=e,c=void 0===n?I:n,d=void 0===i?"tour-card":i,u=!0===e.isLocked,p=void 0!==s&&s&&!u,m=(0,C.bL)(d,a,"click",l),h=null,f=null;if(u){let t,{lockedTitle:s,lockedDescription:o,unlockActionLabel:n,onUnlockPress:i}=e;r[0]!==o||r[1]!==s||r[2]!==i||r[3]!==n?(t={lockedTitle:s,lockedDescription:o,unlockActionLabel:n,onUnlockPress:i},r[0]=o,r[1]=s,r[2]=i,r[3]=n,r[4]=t):t=r[4],f=t}else{let t,{tourActionLabel:s,onTourPress:o}=e;r[5]!==o||r[6]!==s?(t={tourActionLabel:s,onTourPress:o},r[5]=o,r[6]=s,r[7]=t):t=r[7],h=t}return r[8]!==c||r[9]!==u||r[10]!==f||r[11]!==p||r[12]!==d||r[13]!==m||r[14]!==h?(t={testId:d,showDoneTag:p,doneLabel:c,isLocked:u,trackingAttributes:m,unlockedActions:h,lockedOverlay:f},r[8]=c,r[9]=u,r[10]=f,r[11]=p,r[12]=d,r[13]=m,r[14]=h,r[15]=t):t=r[15],t}(e);return F[0]!==q?(t=(0,k.v)(q,"image"),F[0]=q,F[1]=t):t=F[1],F[2]!==M||F[3]!==H||F[4]!==t?(r=(0,s.jsx)("div",{className:"absolute inset-0",children:(0,s.jsx)(h.default,{alt:M,className:"object-cover","data-testid":t,fill:!0,sizes:"(min-width: 768px) 350px, 85vw",src:H})}),F[2]=M,F[3]=H,F[4]=t,F[5]=r):r=F[5],F[6]!==W||F[7]!==U||F[8]!==q?(n=U?(0,s.jsx)("div",{className:"absolute top-0 left-0 z-[1] p-m",children:(0,s.jsx)(j.v,{prefixIcon:(0,s.jsx)(f.r,{size:14,weight:"fill"}),testId:(0,k.v)(q,"done-tag"),variant:"darkGradient",children:W})}):null,F[6]=W,F[7]=U,F[8]=q,F[9]=n):n=F[9],F[10]!==q?(i=(0,k.v)(q,"details"),F[10]=q,F[11]=i):i=F[11],F[12]!==q?(l=(0,k.v)(q,"category"),F[12]=q,F[13]=l):l=F[13],F[14]!==q?(a=(0,k.v)(q,"category-icon"),F[14]=q,F[15]=a):a=F[15],F[16]!==O||F[17]!==a?(c=(0,s.jsx)(v.W,{size:"small",testId:a,variant:"blur",children:O}),F[16]=O,F[17]=a,F[18]=c):c=F[18],F[19]!==q?(d=(0,k.v)(q,"category-label"),F[19]=q,F[20]=d):d=F[20],F[21]!==B||F[22]!==d?(u=(0,s.jsx)(x.p,{testId:d,children:B}),F[21]=B,F[22]=d,F[23]=u):u=F[23],F[24]!==l||F[25]!==c||F[26]!==u?(p=(0,s.jsxs)(b.zt,{spacing:b.Kz.s,testId:l,children:[c,u]}),F[24]=l,F[25]=c,F[26]=u,F[27]=p):p=F[27],F[28]!==q?(m=(0,k.v)(q,"title"),F[28]=q,F[29]=m):m=F[29],F[30]!==m||F[31]!==K?(_=(0,s.jsx)(y.F,{testId:m,children:K}),F[30]=m,F[31]=K,F[32]=_):_=F[32],F[33]!==q?(T=(0,k.v)(q,"description"),F[33]=q,F[34]=T):T=F[34],F[35]!==X||F[36]!==T?(N=(0,s.jsx)(g.g,{color:"muted",testId:T,children:X}),F[35]=X,F[36]=T,F[37]=N):N=F[37],F[38]!==_||F[39]!==N?(E=(0,s.jsxs)(S.Tk,{className:"w-full",spacing:b.Kz.xs,children:[_,N]}),F[38]=_,F[39]=N,F[40]=E):E=F[40],F[41]!==q||F[42]!==V?(P=V?(0,s.jsx)(A,{actions:V,testId:q}):null,F[41]=q,F[42]=V,F[43]=P):P=F[43],F[44]!==E||F[45]!==P||F[46]!==p?(z=(0,s.jsxs)(S.Tk,{className:"w-full p-lg",spacing:b.Kz.m,children:[p,E,P]}),F[44]=E,F[45]=P,F[46]=p,F[47]=z):z=F[47],F[48]!==z||F[49]!==i?($=(0,s.jsx)("div",{className:"relative z-[1] bg-gradient-to-b from-shadesDark-0 via-shadesDark-800 to-shadesDark-800 p-s",children:(0,s.jsx)(w.m,{borderRadius:"m",cardStyle:w.E.Style5,testId:i,children:z})}),F[48]=z,F[49]=i,F[50]=$):$=F[50],F[51]!==Z||F[52]!==q?(D=Z?(0,s.jsx)(L,{overlay:Z,testId:q}):null,F[51]=Z,F[52]=q,F[53]=D):D=F[53],F[54]!==r||F[55]!==$||F[56]!==D||F[57]!==n||F[58]!==q||F[59]!==Y?(R=(0,s.jsxs)("div",{className:"relative isolate flex h-full min-h-[443px] w-full flex-col justify-end overflow-hidden rounded-m border border-shadesLight-100","data-testid":q,...Y,children:[r,n,$,D]}),F[54]=r,F[55]=$,F[56]=D,F[57]=n,F[58]=q,F[59]=Y,F[60]=R):R=F[60],R}var P=r(50280),z=r(44241),$=r(6918),D=r(41928),R=r(18171),F=r(5312),H=r(92480),M=r(81886),B=r(62148),O=r(77869);function K(e){let t,r,n,l,a,c,d,u,p,m,h=(0,o.c)(25),{isActive:f,onInactive:g}=e,x=(0,i.useRouter)(),v=(0,D.$)(),[b]=(0,R.Sf)(),y=(0,B.Z)();(0,H.Z)(f);let w=b?.handle;h[0]!==v||h[1]!==w?(r=null==w||""===w?"":v({path:"users/:userHandle",userHandle:w}),t=null==w||""===w?"":v({path:"users/:userHandle/edit-profile",userHandle:w}),l=O.g,n=(0,M.CX)(r,1),h[0]=v,h[1]=w,h[2]=t,h[3]=r,h[4]=n,h[5]=l):(t=h[2],r=h[3],n=h[4],l=h[5]),h[6]!==t||h[7]!==n?(a={profileHref:n,editProfileHref:t},h[6]=t,h[7]=n,h[8]=a):a=h[8];let j=l(a);h[9]!==y||h[10]!==g?(c=()=>{y.trackTourEnded(!1),g("dismissed")},h[9]=y,h[10]=g,h[11]=c):c=h[11];let k=c;h[12]!==y?(d=()=>{y.trackTourSkipped()},h[12]=y,h[13]=d):d=h[13];let S=d;h[14]!==g||h[15]!==x?(u=e=>{x.push(e),g("navigated")},h[14]=g,h[15]=x,h[16]=u):u=h[16];let _=u;h[17]!==y?(p=e=>{y.noteStepAdvance(e)},h[17]=y,h[18]=p):p=h[18];let C=p;return f&&""!==r?(h[19]!==k||h[20]!==_||h[21]!==S||h[22]!==C||h[23]!==j?(m=(0,s.jsx)(F.O,{onDismiss:k,onNavigate:_,onSkip:S,onStepAdvance:C,tour:j}),h[19]=k,h[20]=_,h[21]=S,h[22]=C,h[23]=j,h[24]=m):m=h[24],m):null}var X=r(43568),q=r(35326),U=r(80286),W=r(64237),Y=r(56272),V=r(41061),Z=r(20056);function J(e){let t,r,i,l,a,c,d,p,m,h,f,g,x,v,b,y,w,j,k,S,_,C,I=(0,o.c)(59),{isActive:T,onInactive:N}=e,L=(0,D.$)(),A=(0,X.useQueryClient)(),E=(0,V.u)(),{isPrompting:P,locationPermissionState:z}=(0,q.I)();(0,H.Z)(T);
1let[$,R]=(0,n.useState)(!1),M=(0,n.useRef)(!1),B=(0,n.useRef)(!1),O=(0,n.useRef)(!1),K=T&&$;if(I[0]!==L){let e=L("search/hosts");t=(0,W.Xm)(e,1),I[0]=L,I[1]=t}else t=I[1];let J=t;I[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,W.q9)(1),I[2]=r):r=I[2];let G=r;I[3]!==N?(i=()=>{B.current=!0,M.current=!1,N("navigated")},I[3]=N,I[4]=i):i=I[4];let Q=i;I[5]!==Q?(l={extraSearchParams:G,onNavigated:Q},I[5]=Q,I[6]=l):l=I[6];let{onRequest:ee}=(0,U.k)(l);I[7]!==J?(a={hostsNearbyHref:J},I[7]=J,I[8]=a):a=I[8];let et=(0,Z.N)(a),er=function(e){let t,r,n,i,l,a,c=(0,o.c)(15),{t:d}=(0,u.useTranslation)();c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(Y.B,{size:16}),c[0]=t):t=c[0],c[1]!==d?(r=d("web.explore.tour.hosts.actionHint","Click the highlighted button"),c[1]=d,c[2]=r):r=c[2],c[3]!==r?(n={icon:t,label:r},c[3]=r,c[4]=n):n=c[4];let p=n,m="denied"===e;return c[5]!==m||c[6]!==d?(i=m?d("web.explore.tour.hosts.location.stillOff.title","Location Is Still Off"):d("web.explore.tour.hosts.location.needsLocation.title","Hosts Nearby Needs Location"),c[5]=m,c[6]=d,c[7]=i):i=c[7],c[8]!==m||c[9]!==d?(l=m?d("web.explore.tour.hosts.location.stillOff.description","How to Enable opens a guide in a new tab. Turn location on, then come back. The tour will hold your spot."):d("web.explore.tour.hosts.location.needsLocation.description","There's no nearby without your location. Allow access and the tour continues."),c[8]=m,c[9]=d,c[10]=l):l=c[10],c[11]!==p||c[12]!==i||c[13]!==l?(a={id:`${W.AU}-location`,steps:[{title:i,description:l,action:p,advanceMode:"target",targetSelector:W.cc.locationAccept,placement:"top",interstitial:!0,skipScrollIntoView:!0}]},c[11]=p,c[12]=i,c[13]=l,c[14]=a):a=c[14],a}(z);I[9]!==E||I[10]!==N?(c=()=>{M.current=!1,E.trackTourEnded(!1),N("dismissed")},I[9]=E,I[10]=N,I[11]=c):c=I[11];let es=c;I[12]!==E||I[13]!==N?(d=()=>{E.trackTourEnded(!1),M.current=!1,N("dismissed")},I[12]=E,I[13]=N,I[14]=d):d=I[14];let eo=d;I[15]!==E?(p=()=>{E.trackTourSkipped()},I[15]=E,I[16]=p):p=I[16];let en=p;I[17]!==ee?(m=()=>{B.current=!1,M.current=!0,R(!1),ee()},I[17]=ee,I[18]=m):m=I[18];let ei=m;I[19]!==E?(h=e=>{E.noteStepAdvance(e)},I[19]=E,I[20]=h):h=I[20];let el=h;I[21]!==E?(f=e=>{E.trackTargetLost(e)},I[21]=E,I[22]=f):f=I[22];let ea=f;if(I[23]!==T||I[24]!==P?(g=()=>{if(!T||!M.current||!P)return;let e=!1,t=0,r=()=>{if(!e){if(document.querySelector(W.cc.locationAccept))return void R(!0);(t+=1)<40&&window.setTimeout(r,50)}};return r(),()=>{e=!0}},x=[T,P],I[23]=T,I[24]=P,I[25]=g,I[26]=x):(g=I[25],x=I[26]),(0,n.useEffect)(g,x),I[27]!==es||I[28]!==P||I[29]!==z||I[30]!==K?(v=()=>{!K||P||B.current||"pending"!==z&&"granted"!==z&&es()},b=[es,P,z,K],I[27]=es,I[28]=P,I[29]=z,I[30]=K,I[31]=v,I[32]=b):(v=I[31],b=I[32]),(0,n.useEffect)(v,b),I[33]!==z||I[34]!==A||I[35]!==K?(y=()=>{if(!K||"denied"!==z)return;O.current=!0;let e=()=>
1{"visible"===document.visibilityState&&A.invalidateQueries({queryKey:["activeLocation"]})};return document.addEventListener("visibilitychange",e),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}},w=[z,A,K],I[33]=z,I[34]=A,I[35]=K,I[36]=y,I[37]=w):(y=I[36],w=I[37]),(0,n.useEffect)(y,w),I[38]!==z||I[39]!==K||I[40]!==ee?(j=()=>{K&&"granted"===z&&O.current&&(O.current=!1,B.current=!1,M.current=!0,ee())},k=[z,K,ee],I[38]=z,I[39]=K,I[40]=ee,I[41]=j,I[42]=k):(j=I[41],k=I[42]),(0,n.useEffect)(j,k),I[43]!==T?(S=()=>{T||(M.current=!1,B.current=!1,O.current=!1)},_=[T],I[43]=T,I[44]=S,I[45]=_):(S=I[44],_=I[45]),(0,n.useEffect)(S,_),!T)return null;if(K){let e,t=`hosts-location-${z}`;return I[46]!==eo||I[47]!==en||I[48]!==ea||I[49]!==er||I[50]!==t?(e=(0,s.jsx)(F.O,{onDismiss:eo,onSkip:en,onTargetLost:ea,overlayMode:"modal",tour:er},t),I[46]=eo,I[47]=en,I[48]=ea,I[49]=er,I[50]=t,I[51]=e):e=I[51],e}return I[52]!==eo||I[53]!==ei||I[54]!==en||I[55]!==el||I[56]!==ea||I[57]!==et?(C=(0,s.jsx)(F.O,{onDismiss:eo,onNavigate:ei,onSkip:en,onStepAdvance:el,onTargetLost:ea,tour:et,trackTargetLive:!0}),I[52]=eo,I[53]=ei,I[54]=en,I[55]=el,I[56]=ea,I[57]=et,I[58]=C):C=I[58],C}var G=r(42562),Q=r(48526),ee=r(22099);function et(e){let t,r,n,l,a,c,d,u,p=(0,o.c)(23),{isActive:m,onInactive:h}=e,f=(0,i.useRouter)(),g=(0,D.$)(),x=(0,Q.v)();if((0,H.Z)(m),p[0]!==g){let e=g("events/all");t=(0,G.gF)(e,1),p[0]=g,p[1]=t}else t=p[1];let v=t;p[2]!==v?(r={eventsAllHref:v},p[2]=v,p[3]=r):r=p[3];let b=(0,ee.a)(r);p[4]!==x||p[5]!==h?(n=()=>{x.trackTourEnded(!1),h("dismissed")},p[4]=x,p[5]=h,p[6]=n):n=p[6];let y=n;p[7]!==x?(l=()=>{x.trackTourSkipped()},p[7]=x,p[8]=l):l=p[8];let w=l;p[9]!==h||p[10]!==f?(a=e=>{f.push(e),h("navigated")},p[9]=h,p[10]=f,p[11]=a):a=p[11];let j=a;p[12]!==x?(c=e=>{x.noteStepAdvance(e)},p[12]=x,p[13]=c):c=p[13];let k=c;p[14]!==x?(d=e=>{x.trackTargetLost(e)},p[14]=x,p[15]=d):d=p[15];let S=d;return m?(p[16]!==y||p[17]!==j||p[18]!==w||p[19]!==k||p[20]!==S||p[21]!==b?(u=(0,s.jsx)(F.O,{onDismiss:y,onNavigate:j,onSkip:w,onStepAdvance:k,onTargetLost:S,tour:b}),p[16]=y,p[17]=j,p[18]=w,p[19]=k,p[20]=S,p[21]=b,p[22]=u):u=p[22],u):null}var er=r(76134),es=r(88942),eo=r(22259);function en(e){let t,r,n,l,a,c,d,u,p=(0,o.c)(23),{isActive:m,onInactive:h}=e,f=(0,i.useRouter)(),g=(0,D.$)(),x=(0,es.w)();if((0,H.Z)(m),p[0]!==g){let e=g("trips");t=(0,er.DS)(e,1),p[0]=g,p[1]=t}else t=p[1];let v=t;p[2]!==v?(r={tripsHref:v},p[2]=v,p[3]=r):r=p[3];let b=(0,eo.p)(r);p[4]!==x||p[5]!==h?(n=()=>{x.trackTourEnded(!1),h("dismissed")},p[4]=x,p[5]=h,p[6]=n):n=p[6];let y=n;p[7]!==x?(l=()=>{x.trackTourSkipped()},p[7]=x,p[8]=l):l=p[8];let w=l;p[9]!==h||p[10]!==f?(a=e=>{f.push(e),h("navigated")},p[9]=h,p[10]=f,p[11]=a):a=p[11];let j=a;p[12]!==x?(c=e=>{x.noteStepAdvance(e)},p[12]=x,p[13]=c):c=p[13];let k=c;p[14]!==x?(d=e=>{x.trackTargetLost(e)},p[14]=x,p[15]=d):d=p[15];let S=d;return m?(p[16]!==y||p[17]!==j||p[18]!==w||p[19]!==k||p[20]!==S||p[21]!==b?(u=(0,s.jsx)(F.O,{onDismiss:y,onNavigate:j,onSkip:w,onStepAdvance:k,onTargetLost:S,tour:b}),p[16]=y,p[17]=j,p[18]=w,p[19]=k,p[20]=S,p[21]=b,p[22]=u):u=p[22],u):null}var ei=r(79167),el=r(76842),ea=r(21307),ec=r(56587),ed=r(31240),eu=r(13990),ep=r(27695),em=r(98229);let eh={profile:!1,hosts:!1,events:!1,trips:!1},ef={[em.FK.PROFILE]:"profile",[em.FK.HOSTS]:"hosts",[em.FK.EVENTS]:"events",[em.FK.TRIPS]:"trips"},eg={TODO:0,locked:1,DONE:2};function ex({isCompleted:e,isLocked:t}){return e?"DONE":t?"locked":"TODO"}function ev(e){let t,r,h,f,x,v,w,j,k,_,C,I,T,N,L,A,E,F,H,O,X,q,U,Y,Z,ee,eo,ev,ek,eS,e_,eC,eI,eT,eN,eL,eA,eE,eP,ez,e$,eD,eR,eF=(0,o.c)(96),{images:eH}=e,{t:eM}=(0,u.useTranslation)(),eB=(0,B.Z)(),eO=(0,V.u)(),eK=(0,Q.v)(),eX=(0,es.w)(),[eq,eU]=(0,n.useState)(!1),[eW,eY]=(0,n.useState)(!1),[eV,eZ]=(0,n.useState)(!1),[eJ,eG]=(0,n.useState)(!1),[eQ,e0]=(0,n.useState)(!1),[e1,e2]=(0,n.useState)(!1),[e3,e4]=(0,n.useState)(!1),e5=(0,n.useRef)(0),e6=(0,n.useRef)(0),e7=(0,n.useRef)(0),e8=(0,i.useSearchParams)();eF[0]!==e8?(t=(0,W.Ig)(e8.get(W.lh),e8.get(W.AB)),eF[0]=e8,eF[1]=t):t=eF[1];let e9=t;eF[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,W.mQ)(),eF[2]=r):r=eF[2];let te=r,tt=eW||0===e9&&!eV&&!te;eF[3]!==e8?(h=(0,G.BK)(e8.get(G.oo),e8.get(G.hr)),eF[3]=e8,eF[4]=h):h=eF[4];let tr=h,ts=eJ||0===tr&&!eQ;eF[5]!==e8?(f=(0,er.qM)(e8.get(er.xt),e8.get(er.Ou)),eF[5]=e8,eF[6]=f):f=eF[6];let to=f,tn=e1||0===to&&!e3;eF[7]!==e9?(x=()=>{te&&null!==e9&&(0,W.uD)()},v=[te,e9],eF[7]=e9,eF[8]=x,eF[9]=v):(x=eF[8],v=eF[9]),(0,n.useEffect)(x,v),eF[10]!==eB?(w=()=>{(0,M.yV)(),eB.trackTakeTourClick(),eB.trackTourStarted(),eU(!0)},eF[10]=eB,eF[11]=w):w=eF[11];let ti=w;eF[12]!==eO?(j=()=>{(0,W.V4)(),eZ(!1),eO.trackTakeTourClick(),eO.trackTourStarted(e5.current),eY(!0)},eF[12]=eO,eF[13]=j):j=eF[13];let tl=j;eF[14]!==eK?(k=()=>{e0(!1),eK.trackTakeTourClick(),eK.trackTourStarted(e6.current),eG(!0)},eF[14]=eK,eF[15]=k):k=eF[15];let ta=k;eF[16]!==eX?(_=()=>{e4(!1),eX.trackTakeTourClick(),eX.trackTourStarted(e7.current),e2(!0)},eF[16]=eX,eF[17]=_):_=eF[17];let tc=_;eF[18]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{eU(!1),"dismissed"===e&&(0,M.Dl)()},eF[18]=C):C=eF[18];let td=C;eF[19]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{eY(!1),"dismissed"===e&&(eZ(!0),(0,W.uD)())},eF[19]=I):I=eF[19];let tu=I;eF[20]===Symbol.for("react.memo_cache_sentinel")?(T=e=>{eG(!1),"dismissed"===e&&(e0(!0),(0,G.dg)())},eF[20]=T):T=eF[20];let tp=T;eF[21]===Symbol.for("react.memo_cache_sentinel")?(N=e=>{e2(!1),"dismissed"===e&&(e4(!0),(0,er.gl)())},eF[21]=N):N=eF[21];let tm=N;eF[22]!==ta||eF[23]!==tl||eF[24]!==ti||eF[25]!==tc?(L={onStartProfileTour:ti,onStartHostsTour:tl,onStartEventsTour:ta,onStartTripsTour:tc},eF[22]=ta,eF[23]=tl,eF[24]=ti,eF[25]=tc,eF[26]=L):L=eF[26];let{cards:th}=function(e,t={}){let{onStartProfileTour:r,onStartHostsTour:o,onStartEventsTour:l,onStartTripsTour:a}=t,{t:c}=(0,u.useTranslation)(),d=(0,i.useRouter)(),p=(0,D.$)(),[m]=(0,R.Sf)(),h=m?.avatarUrl,f=null==h||""===h?e.profileFallback:h,{hasMinimumProfileCompleteness:g,remainingStepsCount:x}=(0,ep.b)(),{data:v,isFetched:b}=(0,ei.useQuery)({...eu.V.getCards({}),select:e=>e.data}),y=(0,n.useMemo)(()=>(function(e){if(void 0===e||0===e.length)return eh;let t={...eh};for(let r of e){let e=ef[r.card];void 0!==e&&(t[e]=r.status===em.JR.DONE)}return t})(v),[v]),w=(0,n.useCallback)(()=>{l?.()},[l]),j=(0,n.useCallback)(()=>{a?.()},[a]),k=(0,n.useCallback)(()=>{r?.()},[r]),S=(0,n.useCallback)(()=>{o?.()},[o]),_=(0,n.useCallback)(()=>{let e=m?.handle;null!=e&&""!==e&&d.push(p({path:"users/:userHandle/completeness",userHandle:e}))}
1,[p,m?.handle,d]),C=c("web.explore.tour.cards.profile.tourAction","Take Profile Tour"),I=c("web.explore.tour.cards.hosts.tourAction","Take Hosts Tour"),T=c("web.explore.tour.cards.events.tourAction","Take Events Tour"),N=c("web.explore.tour.cards.trips.tourAction","Take Trips Tour"),L=!0!==g,A=(0,n.useMemo)(()=>{let t=y.profile,r=y.hosts,o=y.events,n=y.trips,i={id:"profile",status:ex({isCompleted:t,isLocked:!1}),imageSrc:f,imageAlt:c("web.explore.tour.cards.profile.imageAlt","Member profile photo"),categoryLabel:c("web.explore.tour.cards.profile.category","Your Profile"),categoryIcon:(0,s.jsx)(el.K,{size:20}),title:c("web.explore.tour.cards.profile.title","Show Who You Are"),description:c("web.explore.tour.cards.profile.description","Hosts and travelers read your profile before they reply. Make it count."),isCompleted:t,isLocked:!1,tourActionLabel:C,handleTourPress:k,testId:"explore-onboarding-tour-card-profile"},l={id:"hosts",status:ex({isCompleted:r,isLocked:!1}),imageSrc:e.hosts,imageAlt:c("web.explore.tour.cards.hosts.imageAlt","Hosts staying together"),categoryLabel:c("web.explore.tour.cards.hosts.category","Hosts"),categoryIcon:(0,s.jsx)(ea.d,{size:20}),title:c("web.explore.tour.cards.hosts.title","Stay With Locals"),description:c("web.explore.tour.cards.hosts.description","Real homes and real hosts, all over the world. See how hosting works."),isCompleted:r,isLocked:!1,tourActionLabel:I,handleTourPress:S,testId:"explore-onboarding-tour-card-hosts"},a={id:"hosts",status:ex({isCompleted:r,isLocked:!0}),imageSrc:e.hosts,imageAlt:c("web.explore.tour.cards.hosts.imageAlt","Hosts staying together"),categoryLabel:c("web.explore.tour.cards.hosts.category","Hosts"),categoryIcon:(0,s.jsx)(ea.d,{size:20}),title:c("web.explore.tour.cards.hosts.title","Stay With Locals"),description:c("web.explore.tour.cards.hosts.description","Real homes and real hosts, all over the world. See how hosting works."),isCompleted:r,isLocked:!0,lockedTitle:c("web.explore.tour.cards.hosts.lockedTitle","Finish Your Profile to Unlock This Tour"),lockedDescription:c("web.explore.tour.cards.hosts.lockedDescription",{defaultValue:"Add {count, plural, one {# more detail} other {# more details}} to unlock this tour. It covers finding a host and choosing who to trust.",count:x}),unlockActionLabel:c("web.explore.tour.cards.hosts.unlockAction","Complete Profile"),handleUnlockPress:_,testId:"explore-onboarding-tour-card-hosts"};return{profile:i,hosts:L?a:l,events:{id:"events",status:ex({isCompleted:o,isLocked:!1}),imageSrc:e.events,imageAlt:c("web.explore.tour.cards.events.imageAlt","People gathering at a local event"),categoryLabel:c("web.explore.tour.cards.events.category","Events"),categoryIcon:(0,s.jsx)(ec.z,{size:20}),title:c("web.explore.tour.cards.events.title","There's Always Something"),description:c("web.explore.tour.cards.events.description","See meetups and dinners happening nearby, or host one yourself."),isCompleted:o,isLocked:!1,tourActionLabel:T,handleTourPress:w,testId:"explore-onboarding-tour-card-events"},trips:{id:"trips",status:ex({isCompleted:n,isLocked:!1}),imageSrc:e.trips,imageAlt:c("web.explore.tour.cards.trips.imageAlt","Traveler planning a trip"),categoryLabel:c("web.explore.tour.cards.trips.category","Trips"),categoryIcon:(0,s.jsx)(ed.F,{size:20}),title:c("web.explore.tour.cards.trips.title","Tell Hosts You’re Coming"),description:c("web.explore.tour.cards.trips.description","Add your destination and dates to get invites and request stays."),isCompleted:n,isLocked:!1,tourActionLabel:N,handleTourPress:j,testId:"explore-onboarding-tour-card-trips"}}},[y.events,y.hosts,y.profile,y.trips,T,w,S,_,k,j,I,e.events,e.hosts,e.trips,L,f,C,x,c,N]),E=void 0!==g&&b?"ready":"pending",P=(0,n.useMemo)(()=>"pending"===E?null:[{id:A.profile.id,status:A.profile.status},{id:A.hosts.id,status:A.hosts.status},{id:A.events.id,status:A.events.status},{id:A.trips.id,status:A.trips.status}].sort((e,t)=>eg[e.status]-eg[t.status]).map(e=>e.id),[E]);return{cards:(0,n.useMemo)(()=>(P??["profile","hosts","events","trips"]).map(e=>A[e]),[A,P])}}(eH,L);eF[27]!==th?(A=()=>{e5.current=Math.max(0,th.findIndex(ej)),e6.current=Math.max(0,th.findIndex(ew)),e7.current=Math.max(0,th.findIndex(ey))},E=[th],eF[27]=th,eF[28]=A,eF[29]=E):(A=eF[28],E=eF[29]),(0,n.useEffect)(A,E),eF[30]===Symbol.for("react.memo_cache_sentinel")?(F={scrollAmount:365},eF[30]=F):F=eF[30];let{scrollContainerRef:tf,canScrollLeft:tg,canScrollRight:tx,handleScrollLeft:tv,handleScrollRight:tb}=(0,z.O)(F);eF[31]===Symbol.for("react.memo_cache_sentinel")?(H={sectionName:"whole_journey",contentSource:"pre_curated_static"},eF[31]=H):H=eF[31];let ty=(0,$.W)(H),tw=(0,l.I)();eF[32]===Symbol.for("react.memo_cache_sentinel")?(O={threshold:p.u2,triggerOnce:!0},eF[32]=O):O=eF[32];let{inView:tj,ref:tk}=(0,a.Wx)(O),tS=!0===tw||tj;eF[33]!==eM?(X=eM("web.explore.tours.title","Explore Couchsurfing Tours"),eF[33]=eM,eF[34]=X):X=eF[34];let t_=X;eF[35]!==eM?(q=eM("web.explore.tours.description","Explore these short tours to show you around the platform"),eF[35]=eM,eF[36]=q):q=eF[36];let tC=q;eF[37]!==eM?(U=eM("common.scrollLeft","Scroll left"),eF[37]=eM,eF[38]=U):U=eF[38];let tI=U;eF[39]!==eM?(Y=eM("common.scrollRight","Scroll right"),eF[39]=eM,eF[40]=Y):Y=eF[40];let tT=Y;eF[41]!==ty||eF[42]!==tk?(Z=e=>{ty(e),tk(e)},eF[41]=ty,eF[42]=tk,eF[43]=Z):Z=eF[43],eF[44]!==t_?(ee=(0,s.jsx)(y.F,{children:t_}),eF[44]=t_,eF[45]=ee):ee=eF[45],eF[46]!==tC?(eo=(0,s.jsx)(g.g,{color:"muted",children:tC}),eF[46]=tC,eF[47]=eo):eo=eF[47],eF[48]!==ee||eF[49]!==eo?(ev=(0,s.jsxs)(S.Tk,{className:"min-w-0",spacing:S.Kz.xs,children:[ee,eo]}),eF[48]=ee,eF[49]=eo,eF[50]=ev):ev=eF[50];let tN=!tg;eF[51]===Symbol.for("react.memo_cache_sentinel")?(ek=(0,s.jsx)(c.n,{size:24}),eF[51]=ek):ek=eF[51],eF[52]!==tv||eF[53]!==tI||eF[54]!==tN?(eS=(0,s.jsx)(P.K,{ariaLabel:tI,disabled:tN,icon:ek,onPress:tv,size:"compact",testId:"explore-onboarding-tour-scroll-left",variant:"light"}),eF[52]=tv,eF[53]=tI,eF[54]=tN,eF[55]=eS):eS=eF[55];let tL=!tx;eF[56]===Symbol.for("react.memo_cache_sentinel")?(e_=(0,s.jsx)(d.Q,{size:24}),eF[56]=e_):e_=eF[56],eF[57]!==tb||eF[58]!==tT||eF[59]!==tL?(eC=(0,s.jsx)(P.K,{ariaLabel:tT,disabled:tL,icon:e_,onPress:tb,size:"compact",testId:"explore-onboarding-tour-scroll-right",variant:"light"}),eF[57]=tb,eF[58]=tT,eF[59]=tL,eF[60]=eC):eC=eF[60],eF[61]!==eS||eF[62]!==eC?(eI=(0,s.jsxs)("div",{className:"hidden shrink-0 gap-m sm:flex","data-testid":"explore-onboarding-tour-nav",children:[eS,eC]}),eF[61]=eS,eF[62]=eC,eF[63]=eI):eI=eF[63],eF[64]!==ev||eF[65]!==eI?(eT=(0,s.jsxs)(b.zt,{alignItems:b.k2.end,className:"w-full",spaceBetween:!0,children:[ev,eI]}),eF[64]=ev,eF[65]=eI,eF[66]=eT):eT=eF[66],eF[67]!==tS||eF[68]!==eT?(eN=(0,s.jsx)(m.X,{isVisible:tS,testId:"explore-platform-section-heading",children:eT}),eF[67]=tS,eF[68]=eT,eF[69]=eN):eN=eF[69],eF[70]!==th?(eL=th.map(eb),eF[70]=th,eF[71]=eL):eL=eF[71],eF[72]!==tf||eF[73]!==eL?(eA=(0,s.jsx)("div",{className:"flex w-full gap-[15px] overflow-x-auto scrollbar-hide pb-s","data-testid":"explore-onboarding-tour-cards",ref:tf,children:eL}),eF[72]=tf,eF[73]=eL,eF[74]=eA):eA=eF[74],eF[75]!==eN||eF[76]!==eA?(eE=(0,s.jsxs)(S.Tk,{className:"mx-auto w-full max-w-[900px]",spacing:S.Kz.lg,testId:"explore-onboarding-tour-section",children:[eN,eA]}),eF[75]=eN,eF[76]=eA,eF[77]=eE):eE=eF[77],eF[78]!==eq?(eP=(0,s.jsx)(K,{isActive:eq,onInactive:td}),eF[78]=eq,eF[79]=eP):eP=eF[79];let tA=tt?"hosts-tour-on":"hosts-tour-off";eF[80]!==tt||eF[81]!==tA?(ez=(0,s.jsx)(J,{isActive:tt,onInactive:tu},tA),eF[80]=tt,eF[81]=tA,eF[82]=ez):ez=eF[82];let tE=ts?"events-tour-on":"events-tour-off";eF[83]!==ts||eF[84]!==tE?(e$=(0,s.jsx)(et,{isActive:ts,onInactive:tp},tE),eF[83]=ts,eF[84]=tE,eF[85]=e$):e$=eF[85];let tP=tn?"trips-tour-on":"trips-tour-off";return eF[86]!==tn||eF[87]!==tP?(eD=(0,s.jsx)(en,{isActive:tn,onInactive:tm},tP),eF[86]=tn,eF[87]=tP,eF[88]=eD):eD=eF[88],eF[89]!==Z||eF[90]!==eE||eF[91]!==eP||eF[92]!==ez||eF[93]!==e$||eF[94]!==eD?(eR=(0,s.jsxs)("div",{ref:Z,children:[eE,eP,ez,e$,eD]}),eF[89]=Z,eF[90]=eE,eF[91]=eP,eF[92]=ez,eF[93]=e$,eF[94]=eD,eF[95]=eR):eR=eF[95],eR}function eb(e){let t;return(0,s.jsx)("div",{className:"profile"===e.id||"trips"===e.id?"hidden h-[443px] w-[350px] max-w-[85vw] shrink-0 sm:block":"h-[443px] w-[350px] max-w-[85vw] shrink-0",children:(0,s.jsx)(E,{...(t={categoryIcon:e.categoryIcon,categoryLabel:e.categoryLabel,description:e.description,imageAlt:e.imageAlt,imageSrc:e.imageSrc,testId:e.testId,title:e.title},e.isLocked?{...t,isLocked:!0,lockedDescription:e.lockedDescription,lockedTitle:e.lockedTitle,onUnlockPress:e.handleUnlockPress,unlockActionLabel:e.unlockActionLabel}:{...t,isCompleted:e.isCompleted,onTourPress:e.handleTourPress,tourActionLabel:e.tourActionLabel})})},e.id)}function ey(e){return"trips"===e.id}function ew(e){return"events"===e.id}function ej(e){return"hosts"===e.id}},73974:(e,t,r)=>{r.d(t,{C:()=>l});var s=r(1793),o=r(37343),n=r(3048),i=r(69125);function l(e,t){let r,l,a=(0,s.c)(5),c=(0,n.st)();a[0]!==e||a[1]!==t||a[2]!==c?(r=()=>{(0,i.s)(c,e,t)},l=[e,t,c],a[0]=e,a[1]=t,a[2]=c,a[3]=r,a[4]=l):(r=a[3],l=a[4]),(0,o.useEffect)(r,l)}},75738:(e,t,r)=>{r.d(t,{ExplorePlatformSection:()=>B});var s=r(33463),o=r(1793),n=r(37818),i=r(12172),l=r(60757),a=r(97479),c=r(21307),d=r(42213),u=r(56083),p=r(69673),m=r(57736),h=r(79951),f=r(34871),g=r(51104),x=r(37343),v=r(79979),b=r(95057),y=r(81110),w=r(71990),j=r(43905),k=r(19387),S=r(98214),_=r(69310),C=r(46578);function I(e){let t,r,l,a,c,d,u,f,g,I,T,N,L,A,E,P,z,$,D,R,F,H,M=(0,o.c)(73),{imageSrc:B,imageAlt:O,imageFetchPriority:K,srcSet:X,sizes:q,tagLabel:U,tagIcon:W,title:Y,description:V,titleSize:Z,badgeAnimationPath:J,isRevealed:G,revealDelaySeconds:Q,onClick:ee,testId:et,clickEvent:er,customAttributes:es}=e,eo=void 0===Z?"h2":Z,en=void 0===et?"explore-platform-card":et,ei=(0,n.I)(),el=void 0!==G;M[0]!==el?(t={threshold:C.cB,triggerOnce:!0,skip:el},M[0]=el,M[1]=t):t=M[1];let{inView:ea,ref:ec}=(0,i.Wx)(t),ed=!0===ei||(el?G:ea),eu=!0===ei||void 0===Q?0:Q,ep=ed&&!0!==ei&&void 0!==J,[em,eh]=(0,x.useState)(!1);!ep&&em&&eh(!1),M[2]!==eu||M[3]!==ep?(r=()=>{if(!ep)return;let e=setTimeout(()=>{eh(!0)},1e3*eu);return()=>{clearTimeout(e)}},l=[eu,ep],M[2]=eu,M[3]=ep,M[4]=r,M[5]=l):(r=M[4],l=M[5]),(0,x.useEffect)(r,l),M[6]!==J||M[7]!==em||M[8]!==W||M[9]!==en?(a=J?(0,s.jsx)(b.j,{className:"h-4 w-4",loop:!1,path:J,play:em,testId:(0,y.v)(en,"tag-lottie")}
1):W,M[6]=J,M[7]=em,M[8]=W,M[9]=en,M[10]=a):a=M[10];let ef=a,eg=(0,j.bL)(en,es,"click",er);M[11]!==ed||M[12]!==eu?(c=ed?{opacity:1,y:0,transition:{...C.Yi,delay:eu}}:{opacity:0,y:100},M[11]=ed,M[12]=eu,M[13]=c):c=M[13],M[14]!==ei?(d=!ei&&{opacity:0,y:100},M[14]=ei,M[15]=d):d=M[15];let ex=el?void 0:ec;M[16]!==ei?(u=ei?void 0:{scale:1.1},M[16]=ei,M[17]=u):u=M[17];let ev=q??"(min-width: 768px) 50vw, 100vw",eb=X??void 0;M[18]!==en?(f=(0,y.v)(en,"image"),M[18]=en,M[19]=f):f=M[19],M[20]!==O||M[21]!==K||M[22]!==B||M[23]!==ev||M[24]!==eb||M[25]!==f?(g=(0,s.jsx)(w._,{alt:O,fetchPriority:K,sizes:ev,src:B,srcSet:eb,testId:f}),M[20]=O,M[21]=K,M[22]=B,M[23]=ev,M[24]=eb,M[25]=f,M[26]=g):g=M[26],M[27]!==u||M[28]!==g?(I=(0,s.jsx)(v.P.div,{className:"absolute inset-0 z-0",transition:C.Ml,whileHover:u,children:g}),M[27]=u,M[28]=g,M[29]=I):I=M[29];let ey=ed?96:28;return M[30]!==ey?(T={width:ey},M[30]=ey,M[31]=T):T=M[31],M[32]!==ei?(N=!ei&&{width:28},M[32]=ei,M[33]=N):N=M[33],M[34]!==eu||M[35]!==ei?(L=ei?{duration:0}:{...C.Wm,delay:eu},M[34]=eu,M[35]=ei,M[36]=L):L=M[36],M[37]!==en?(A=(0,y.v)(en,"tag"),M[37]=en,M[38]=A):A=M[38],M[39]!==ef||M[40]!==A||M[41]!==U?(E=(0,s.jsx)(k.v,{prefixIcon:ef,testId:A,variant:"blur",children:U}),M[39]=ef,M[40]=A,M[41]=U,M[42]=E):E=M[42],M[43]!==T||M[44]!==N||M[45]!==L||M[46]!==E?(P=(0,s.jsx)("div",{className:"absolute top-0 left-0 right-0 p-s z-[1] bg-gradient-to-b from-shadesDark-800 to-shadesDark-0",children:(0,s.jsx)(v.P.div,{animate:T,className:"overflow-hidden",initial:N,transition:L,children:E})}),M[43]=T,M[44]=N,M[45]=L,M[46]=E,M[47]=P):P=M[47],M[48]!==en?(z=(0,y.v)(en,"details"),M[48]=en,M[49]=z):z=M[49],M[50]!==en||M[51]!==Y||M[52]!==eo?($="h3"===eo?(0,s.jsx)(S.M,{testId:(0,y.v)(en,"title"),children:Y}):(0,s.jsx)(p.F,{testId:(0,y.v)(en,"title"),children:Y}),M[50]=en,M[51]=Y,M[52]=eo,M[53]=$):$=M[53],M[54]!==V||M[55]!==en?(D=V?(0,s.jsx)(m.g,{color:"muted",testId:(0,y.v)(en,"description"),children:V}):null,M[54]=V,M[55]=en,M[56]=D):D=M[56],M[57]!==$||M[58]!==D?(R=(0,s.jsxs)(h.Tk,{className:"p-s",spacing:h.Kz.xs,children:[$,D]}),M[57]=$,M[58]=D,M[59]=R):R=M[59],M[60]!==z||M[61]!==R?(F=(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-s z-[1] surf-backgroundCaptionGradient",children:(0,s.jsx)(_.m,{borderRadius:"xs",cardStyle:_.E.Style5,testId:z,children:R})}),M[60]=z,M[61]=R,M[62]=F):F=M[62],M[63]!==ee||M[64]!==ex||M[65]!==I||M[66]!==P||M[67]!==F||M[68]!==c||M[69]!==d||M[70]!==en||M[71]!==eg?(H=(0,s.jsxs)(v.P.button,{animate:c,className:"relative isolate block h-full w-full cursor-pointer overflow-hidden rounded-m border border-shadesLight-100 text-left","data-testid":en,initial:d,onClick:ee,ref:ex,type:"button",...eg,children:[I,P,F]}),M[63]=ee,M[64]=ex,M[65]=I,M[66]=P,M[67]=F,M[68]=c,M[69]=d,M[70]=en,M[71]=eg,M[72]=H):H=M[72],H}var T=r(50440),N=r(65548),L=r(56515),A=r(6918),E=r(57584),P=r(22963),z=r(64593);let $=(0,z.Z)("ico-hosts.json"),D=(0,z.Z)("ico-locations.json"),R=[],F={hosts:{src:(0,P.t)("/images/6c713df211ab/hosts-fallback.webp"),srcSet:(0,L.X)(`${(0,P.t)("/images/6c713df211ab/hosts-fallback-480.webp")} 480w, ${(0,P.t)("/images/6c713df211ab/hosts-fallback-768.webp")} 768w, ${(0,P.t)("/images/6c713df211ab/hosts-fallback-880.webp")} 880w, ${(0,P.t)("/images/6c713df211ab/hosts-fallback-960.webp")} 960w, ${(0,P.t)("/images/6c713df211ab/hosts-fallback-1024.webp")} 1024w`),sizes:(0,L.i)("(max-width: 1024px) 100vw, 440px")},locations:{src:(0,P.t)("/images/cd751e0ce5f2/locations-fallback.webp"),srcSet:(0,L.X)(`${(0,P.t)("/images/cd751e0ce5f2/locations-fallback-480.webp")} 480w, ${(0,P.t)("/images/cd751e0ce5f2/locations-fallback-768.webp")} 768w, ${(0,P.t)("/images/cd751e0ce5f2/locations-fallback-880.webp")} 880w, ${(0,P.t)("/images/cd751e0ce5f2/locations-fallback-960.webp")} 960w, ${(0,P.t)("/images/cd751e0ce5f2/locations-fallback-1024.webp")} 1024w`),sizes:(0,L.i)("(max-width: 1024px) 100vw, 440px")},events:{src:(0,P.t)("/images/7ecc6cee206a/events-fallback.webp"),srcSet:(0,L.X)(`${(0,P.t)("/images/7ecc6cee206a/events-fallback-480.webp")} 480w, ${(0,P.t)("/images/7ecc6cee206a/events-fallback-768.webp")} 768w, ${(0,P.t)("/images/7ecc6cee206a/events-fallback-880.webp")} 880w, ${(0,P.t)("/images/7ecc6cee206a/events-fallback-960.webp")} 960w, ${(0,P.t)("/images/7ecc6cee206a/events-fallback-1024.webp")} 1024w`),sizes:(0,L.i)("(max-width: 1024px) 100vw, 440px")},community:{src:(0,P.t)("/images/763dae53e80e/community-fallback.webp"),srcSet:(0,L.X)(`${(0,P.t)("/images/763dae53e80e/community-fallback-480.webp")} 480w, ${(0,P.t)("/images/763dae53e80e/community-fallback-768.webp")} 768w`),sizes:(0,L.i)("(max-width: 768px) 100vw, 440px")}},H={hosts:E.c.wholeJourneyHosts,locations:E.c.wholeJourneyLocations,events:E.
1c.wholeJourneyEvents,community:E.c.wholeJourneyCommunity},M=[{section:"hosts",queryType:f.b.Host,revealDelayMultiplier:1,badgeAnimationPath:$,wrapperClassName:"h-[400px] lg:h-[512px] lg:row-span-2",TagIcon:c.d,testId:"explore-platform-card-hosts"},{section:"locations",queryType:f.b.Location,revealDelayMultiplier:2,badgeAnimationPath:D,wrapperClassName:"h-[400px] lg:h-[250px]",TagIcon:d.m,testId:"explore-platform-card-locations"},{section:"events",queryType:f.b.Event,revealDelayMultiplier:3,titleSize:"h3",wrapperClassName:"",TagIcon:l.V,testId:"explore-platform-card-events"},{section:"community",queryType:f.b.Community,revealDelayMultiplier:4,titleSize:"h3",wrapperClassName:"",TagIcon:a.n,testId:"explore-platform-card-community"}];function B(e){let t,r,l,a,c,d,f,x,v,b,y,w,j,k,S,_,L,E,P,z=(0,o.c)(119),{cards:$}=e,D=void 0===$?R:$,{t:B,u:K}=(0,u.useTranslation)(),{onGlobalSearchOpenChange:X}=(0,g.$)(),{setPendingCategory:q}=(0,N.E)();z[0]===Symbol.for("react.memo_cache_sentinel")?(t={sectionName:"whole_journey",contentSource:"pre_curated_static"},z[0]=t):t=z[0];let U=(0,A.W)(t),W=(0,n.I)();z[1]===Symbol.for("react.memo_cache_sentinel")?(r={threshold:C.u2,triggerOnce:!0},z[1]=r):r=z[1];let{inView:Y,ref:V}=(0,i.Wx)(r),Z=!0===W||Y;if(z[2]!==D||z[3]!==U||z[4]!==Z||z[5]!==X||z[6]!==V||z[7]!==q||z[8]!==B||z[9]!==K){let e,t,r,o,n,i,u,g,_,N,L,A,E,P,$,R,W,Y,J,G,Q,ee,et,er,es,eo,en,ei=new Map(D.map(O));z[23]!==X||z[24]!==q?(e=e=>{q(e),X(!0)},z[23]=X,z[24]=q,z[25]=e):e=z[25];let el=e;z[26]!==B?(t=B("web.explore.platform.title.highlight","The Whole Journey"),z[26]=B,z[27]=t):t=z[27];let ea=t;z[28]!==ea?(r=(0,s.jsx)(p.F,{as:"span",color:"gradient",children:ea},"highlight"),z[28]=ea,z[29]=r):r=z[29],z[30]!==B||z[31]!==r?(o=B("web.explore.platform.title.default",{defaultValue:"One Platform, {highlight}",highlight:r}),z[30]=B,z[31]=r,z[32]=o):o=z[32];let ec=o;z[33]!==B?(n=B("web.explore.platform.description","Everything on Couchsurfing is made by locals and travelers like you"),z[33]=B,z[34]=n):n=z[34];let ed=n;z[35]!==B?(i=B("web.explore.platform.cards.hosts.title","Stay with Locals, For Free"),z[35]=B,z[36]=i):i=z[36],z[37]!==B?(u=B("web.explore.platform.cards.hosts.description","Somewhere in 200,000+ cities, someone's ready to show you around. Real homes. Real hosts. Real travel."),z[37]=B,z[38]=u):u=z[38],z[39]!==B?(g=B("web.explore.platform.cards.hosts.imageAlt","Two travelers being welcomed into a host’s home"),z[39]=B,z[40]=g):g=z[40],z[41]!==B?(_=B("web.explore.platform.cards.hosts.tag","Hosts"),z[41]=B,z[42]=_):_=z[42],z[43]!==i||z[44]!==u||z[45]!==g||z[46]!==_?(N={title:i,description:u,imageAlt:g,tagLabel:_},z[43]=i,z[44]=u,z[45]=g,z[46]=_,z[47]=N):N=z[47],z[48]!==B?(L=B("web.explore.platform.cards.locations.title","Every City, Through Local Eyes"),z[48]=B,z[49]=L):L=z[49],z[50]!==B?(A=B("web.explore.platform.cards.locations.description","Location pages with live weather, nearby hosts, travelers, and what's happening this week."),z[50]=B,z[51]=A):A=z[51],z[52]!==B?(E=B("web.explore.platform.cards.locations.imageAlt","A traveler walking through a historic city street at night"),z[52]=B,z[53]=E):E=z[53],z[54]!==B?(P=B("web.explore.platform.cards.locations.tag","Locations"),z[54]=B,z[55]=P):P=z[55],z[56]!==L||z[57]!==A||z[58]!==E||z[59]!==P?($={title:L,description:A,imageAlt:E,tagLabel:P},z[56]=L,z[57]=A,z[58]=E,z[59]=P,z[60]=$):$=z[60],z[61]!==B?(R=B("web.explore.platform.cards.events.title","Never Miss an Event in Town"),z[61]=B,z[62]=R):R=z[62],z[63]!==B?(W=B("web.explore.platform.cards.events.imageAlt","A crowd celebrating together at a street event"),z[63]=B,z[64]=W):W=z[64],z[65]!==B?(Y=B("web.explore.platform.cards.events.tag","Events"),z[65]=B,z[66]=Y):Y=z[66],z[67]!==R||z[68]!==W||z[69]!==Y?(J={title:R,imageAlt:W,tagLabel:Y},z[67]=R,z[68]=W,z[69]=Y,z[70]=J):J=z[70],z[71]!==B?(G=B("web.explore.platform.cards.community.title","Find Friends Before You Land"),z[71]=B,z[72]=G):G=z[72],z[73]!==B?(Q=B("web.explore.platform.cards.community.imageAlt","Friends chatting near a subway station"),z[73]=B,z[74]=Q):Q=z[74],z[75]!==B?(ee=B("web.explore.platform.cards.community.tag","Community"),z[75]=B,z[76]=ee):ee=z[76],z[77]!==G||z[78]!==Q||z[79]!==ee?(et={title:G,imageAlt:Q,tagLabel:ee},z[77]=G,z[78]=Q,z[79]=ee,z[80]=et):et=z[80],z[81]!==N||z[82]!==$||z[83]!==J||z[84]!==et?(er={hosts:N,locations:$,events:J,community:et},z[81]=N,z[82]=$,z[83]=J,z[84]=et,z[85]=er):er=z[85];let eu=er,ep=(e,t)=>{let{TagIcon:r,badgeAnimationPath:o,queryType:n,revealDelayMultiplier:i,section:l,testId:a,titleSize:c}=e,d=ei.get(l),{description:u,imageAlt:p,tagLabel:m,title:h}=eu[l],f=d?.description,g=void 0===f?u:K(f),x=H[l],v=F[l],b=d?.imageSrc?{}:{imageSrc:v.src,srcSet:v.srcSet,sizes:v.sizes};return(0,s.jsx)(I,{badgeAnimationPath:o,clickEvent:x.clickEvent,customAttributes:x.customAttributes,description:g,imageAlt:d?K(d.imageAlt):p,imageFetchPriority:void 0===t?"auto":t,imageSrc:d?.imageSrc??v.src,isRevealed:Z,onClick:()=>{el(n)},revealDelaySeconds:i*C.FP,tagIcon:(0,s.jsx)(r,{size:14}),tagLabel:m,testId:a,title:d?K(d.title):h,titleSize:c,...b})},[em,eh,ef,eg]=M;z[86]!==U||z[87]!==V?(v=e=>{U(e),V(e)},z[86]=U,z[87]=V,z[88]=v):v=z[88],l=h.Tk,c="w-full mx-auto max-w-[900px]",d=h.Kz.lg,f="explore-platform-section",z[89]!==ec?(es=(0,s.jsx)(p.F,{children:ec}),z[89]=ec,z[90]=es):es=z[90],z[91]!==ed?(eo=(0,s.jsx)(m.g,{color:"muted",children:ed}),z[91]=ed,z[92]=eo):eo=z[92],z[93]!==es||z[94]!==eo?(en=(0,s.jsxs)(h.Tk,{spacing:h.Kz.xs,children:[es,eo]}),z[93]=es,z[94]=eo,z[95]=en):en=z[95],z[96]!==Z||z[97]!==en?(x=(0,s.jsx)(T.X,{isVisible:Z,testId:"explore-platform-section-heading",children:en}),z[96]=Z,z[97]=en,z[98]=x):x=z[98],j="grid w-full grid-cols-1 gap-m lg:grid-cols-2 lg:grid-rows-[250px_250px]",k="platform-grid",S=(0,s.jsx)("div",{className:em.wrapperClassName,children:ep(em,"high")}),a=(0,s.jsx)("div",{className:eh.wrapperClassName,children:ep(eh)}),b="hidden gap-s lg:grid lg:h-[250px] lg:grid-cols-2",y=ep(ef),w=ep(eg),z[2]=D,z[3]=U,z[4]=Z,z[5]=X,z[6]=V,z[7]=q,z[8]=B,z[9]=K,z[10]=l,z[11]=a,z[12]=c,z[13]=d,z[14]=f,z[15]=x,z[16]=v,z[17]=b,z[18]=y,z[19]=w,z[20]=j,z[21]=k,z[22]=S}else l=z[10],a=z[11],c=z[12],d=z[13],f=z[14],x=z[15],v=z[16],b=z[17],y=z[18],w=z[19],j=z[20],
1k=z[21],S=z[22];return z[99]!==b||z[100]!==y||z[101]!==w?(_=(0,s.jsxs)("div",{className:b,children:[y,w]}),z[99]=b,z[100]=y,z[101]=w,z[102]=_):_=z[102],z[103]!==a||z[104]!==_||z[105]!==j||z[106]!==k||z[107]!==S?(L=(0,s.jsxs)("div",{className:j,"data-slot":k,children:[S,a,_]}),z[103]=a,z[104]=_,z[105]=j,z[106]=k,z[107]=S,z[108]=L):L=z[108],z[109]!==l||z[110]!==c||z[111]!==d||z[112]!==f||z[113]!==x||z[114]!==L?(E=(0,s.jsxs)(l,{className:c,spacing:d,testId:f,children:[x,L]}),z[109]=l,z[110]=c,z[111]=d,z[112]=f,z[113]=x,z[114]=L,z[115]=E):E=z[115],z[116]!==v||z[117]!==E?(P=(0,s.jsx)("div",{ref:v,children:E}),z[116]=v,z[117]=E,z[118]=P):P=z[118],P}function O(e){return[e.section,e]}},76134:(e,t,r)=>{r.d(t,{DS:()=>l,EY:()=>i,Ou:()=>n,Py:()=>c,gl:()=>d,o2:()=>s,qM:()=>a,xt:()=>o});let s="trips",o="tour",n="step",i={sidenavTrips:'[data-testid="app-sidenav-trips-desktop-button"]',destinationSuggestions:'[data-testid="destination-suggestions-trending"]',createTrip:'[data-testid="trips-header-create-trip-button"]'};function l(e,t){let r=e.indexOf("#"),i=-1===r?e:e.slice(0,r),l=-1===r?"":e.slice(r),a=i.indexOf("?"),c=-1===a?i:i.slice(0,a),d=new URLSearchParams(-1===a?"":i.slice(a+1));return d.set(o,s),d.set(n,String(t+1)),`${c}?${d.toString()}${l}`}function a(e,t){if(e!==s||null===t)return null;let r=Number.parseInt(t,10);return!Number.isFinite(r)||r<1?null:r-1}function c(e){let t=new URL(window.location.href);t.searchParams.set(o,s),t.searchParams.set(n,String(e+1));let r=t.searchParams.toString();window.history.replaceState({},"",`${t.pathname}?${r}${t.hash}`)}function d(){let e=new URL(window.location.href);if(e.searchParams.get(o)!==s&&!e.searchParams.has(n))return;e.searchParams.delete(o),e.searchParams.delete(n);let t=e.searchParams.toString(),r=""===t?"":`?${t}`;window.history.replaceState(window.history.state,"",`${e.pathname}${r}${e.hash}`)}},76293:(e,t,r)=>{r.d(t,{Kg:()=>i,q9:()=>n});var s,o,n=((s={})[s.Unrecognized=-1]="Unrecognized",s[s.InProgress=0]="InProgress",s[s.Completed=1]="Completed",s[s.Skipped=2]="Skipped",s),i=((o={}).unrecognized="unrecognized",o.aboutMe="about_me",o.basicInfo="basic_info",o.onboarding="onboarding",o.profilePhotos="profile_photos",o.prompts="prompts",o.verification="verification",o.whatKeepsYouBusy="what_keeps_you_busy",o.whereIveLived="where_ive_lived",o.whereIveVisited="where_ive_visited",o.phoneNumber="phone_number",o.email="email",o)},77869:(e,t,r)=>{r.d(t,{g:()=>a});var s=r(33463),o=r(1793),n=r(56272),i=r(56083),l=r(81886);function a(e){let t,r,a,c,d,u,p,m,h,f,g,x,v,b=(0,o.c)(34),{profileHref:y,editProfileHref:w}=e,{t:j}=(0,i.useTranslation)();b[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsx)(n.B,{size:16}),b[0]=t):t=b[0],b[1]!==j?(r=j("web.explore.tour.shared.actionHint","Click the highlighted button"),b[1]=j,b[2]=r):r=b[2],b[3]!==r?(a={icon:t,label:r},b[3]=r,b[4]=a):a=b[4];let k=a;return b[5]!==j?(c=j("web.explore.tour.profile.steps.yourProfile.title","Your Profile"),b[5]=j,b[6]=c):c=b[6],b[7]!==j?(d=j("web.explore.tour.profile.steps.yourProfile.description","Everything about you lives behind this icon: your photos, your bio, and the details a host reads before replying."),b[7]=j,b[8]=d):d=b[8],b[9]!==k||b[10]!==y||b[11]!==c||b[12]!==d?(u={title:c,description:d,action:k,advanceMode:"target",navigationHref:y,targetSelector:l.f2.sidenavUser,placement:"rightEnd"},b[9]=k,b[10]=y,b[11]=c,b[12]=d,b[13]=u):u=b[13],b[14]!==j?(p=j("web.explore.tour.profile.steps.homeDetails.title","Your Home Details"),b[14]=j,b[15]=p):p=b[15],b[16]!==j?(m=j("web.explore.tour.profile.steps.homeDetails.description","Your place, as guests see it. Update it any time with Edit Home."),b[16]=j,b[17]=m):m=b[17],b[18]!==p||b[19]!==m?(h={title:p,description:m,advanceMode:"button",targetSelector:l.f2.homePreview,placement:"top"},b[18]=p,b[19]=m,b[20]=h):h=b[20],b[21]!==j?(f=j("web.explore.tour.profile.steps.keepUpdated.title","Keep It Up to Date"),b[21]=j,b[22]=f):f=b[22],b[23]!==j?(g=j("web.explore.tour.profile.steps.keepUpdated.description","Photos, story, home — the page behind this button is yours to shape. Click it and make it feel like you."),b[23]=j,b[24]=g):g=b[24],b[25]!==k||b[26]!==w||b[27]!==f||b[28]!==g?(x={title:f,description:g,action:k,advanceMode:"target",navigationHref:w,targetSelector:l.f2.editProfile,placement:"top"},b[25]=k,b[26]=w,b[27]=f,b[28]=g,b[29]=x):x=b[29],b[30]!==x||b[31]!==u||b[32]!==h?(v={id:l.nq,steps:[u,h,x]},b[30]=x,b[31]=u,b[32]=h,b[33]=v):v=b[33],v}},80286:(e,t,r)=>{r.d(t,{k:()=>l});var s=r(1793),o=r(964),n=r(41928),i=r(35326);function l(e){let t,r,l,a,c=(0,s.c)(13);c[0]!==e?(t=void 0===e?{}:e,c[0]=e,c[1]=t):t=c[1];let{extraSearchParams:d,onNavigated:u}=t,p=(0,o.useRouter)(),m=(0,n.$)();c[2]!==d||c[3]!==m||c[4]!==u||c[5]!==p?(r=async e=>{let{locationData:t}=e,r=m({path:"search/hosts/:locationId",locationId:t.id}),s=d?new URLSearchParams(d).toString():"";p.push(s?`${r}?${s}`:r),u?.()},c[2]=d,c[3]=m,c[4]=u,c[5]=p,c[6]=r):r=c[6];let h=r,{isLoading:f,onRequest:g}=(0,i.I)();c[7]!==g||c[8]!==h?(l=()=>{g({onSuccess:h})},c[7]=g,c[8]=h,c[9]=l):l=c[9];let x=l;return c[10]!==x||c[11]!==f?(a={isLoading:f,onRequest:x},c[10]=x,c[11]=f,c[12]=a):a=c[12],a}},81886:(e,t,r)=>{r.d(t,{CX:()=>l,Dl:()=>g,Lx:()=>m,Su:()=>h,cA:()=>u,f2:()=>i,m0:()=>f,nq:()=>s,rj:()=>n,wh:()=>o,x:()=>a,yV:()=>p});let s="profile",o="tour",n="step",i={sidenavUser:'[data-testid="app-sidenav-user-desktop-button"]',homePreview:'[data-testid="home-preview-empty"], [data-testid="home-preview-card"]',editProfile:'[data-testid="edit-profile-button"]'};function l(e,t){let r=e.indexOf("#"),i=-1===r?e:e.slice(0,r),l=-1===r?"":e.slice(r),a=i.indexOf("?"),c=-1===a?i:i.slice(0,a),d=new URLSearchParams(-1===a?"":i.slice(a+1));return d.set(o,s),d.set(n,String(t+1)),`${c}?${d.toString()}${l}`}function a(e,t){if(e!==s||null===t)return null;let r=Number.parseInt(t,10);return!Number.isFinite(r)||r<1?null:r-1}let c="cs.featureTour.profile.completed",d="cs.featureTour.profile.pen
1dingCleanExit";function u(){try{window.sessionStorage.setItem(c,"1"),window.sessionStorage.setItem(d,"1")}catch{}}function p(){try{window.sessionStorage.removeItem(c),window.sessionStorage.removeItem(d)}catch{}}function m(){try{return"1"===window.sessionStorage.getItem(c)}catch{return!1}}function h(){try{if("1"!==window.sessionStorage.getItem(d))return!1;return window.sessionStorage.removeItem(d),!0}catch{return!1}}function f(e){let t=new URL(window.location.href);t.searchParams.set(o,s),t.searchParams.set(n,String(e+1));let r=t.searchParams.toString();window.history.replaceState(window.history.state,"",`${t.pathname}?${r}${t.hash}`)}function g(){let e=new URL(window.location.href);if(e.searchParams.get(o)!==s)return;e.searchParams.delete(o),e.searchParams.delete(n);let t=e.searchParams.toString(),r=""===t?"":`?${t}`;window.history.replaceState(window.history.state,"",`${e.pathname}${r}${e.hash}`)}},88700:(e,t,r)=>{r.d(t,{z:()=>p});var s=r(33463),o=r(1793),n=r(28473),i=r(11882),l=r(60857),a=r(81110),c=r(18817),d=r(45377);let u=(0,n.tv)({base:["flex","flex-col","gap-s"]});function p(e){let t,r,n=(0,o.c)(5),{wrapperProps:i,items:p}=function(e,t){let r,n,i,u,p,m,h=(0,o.c)(21),{items:f,onChange:g,selectedValue:x,testId:v,ref:b,allowDeselect:y}=t,w=void 0!==y&&y;h[0]!==e?(r=e(),h[0]=e,h[1]=r):r=h[1];let j=r;h[2]!==w||h[3]!==f||h[4]!==g||h[5]!==x?(n=e=>{let t=e.target.value,r=f?.find(e=>e.value.toString()===t);if(!r)return;let s=r.value;x===s&&w?g(null):g(s)},h[2]=w,h[3]=f,h[4]=g,h[5]=x,h[6]=n):n=h[6];let k=n;h[7]!==k||h[8]!==f||h[9]!==x||h[10]!==v?(i=f?.map(e=>{let t=e.label;return"string"==typeof e.label&&(t=(0,s.jsx)(l.u,{children:e.label})),{inputContent:(0,s.jsx)(d.s,{"aria-label":e.ariaLabel,isDisabled:e.isDisabled,isSelected:x===e.value,onChange:k,testId:(0,a.v)(v,e.value.toString(),"radio"),value:String(e.value)}),children:t,isDisabled:e.isDisabled,value:e.value,testId:(0,a.v)(v,e.value.toString())}})??[],h[7]=k,h[8]=f,h[9]=x,h[10]=v,h[11]=i):i=h[11];let S=i;return h[12]!==b?(u=(0,c.L)(b),h[12]=b,h[13]=u):u=h[13],h[14]!==j||h[15]!==u||h[16]!==v?(p={className:j,"data-testid":v,role:"radiogroup",ref:u},h[14]=j,h[15]=u,h[16]=v,h[17]=p):p=h[17],h[18]!==S||h[19]!==p?(m={items:S,wrapperProps:p},h[18]=S,h[19]=p,h[20]=m):m=h[20],m}(u,e);return n[0]!==p?(t=p.map(m),n[0]=p,n[1]=t):t=n[1],n[2]!==t||n[3]!==i?(r=(0,s.jsx)("div",{...i,children:t}),n[2]=t,n[3]=i,n[4]=r):r=n[4],r}function m(e){return(0,s.jsx)(i.X,{...e},e.value.toString())}},88942:(e,t,r)=>{r.d(t,{w:()=>d});var s=r(1793),o=r(37343),n=r(3048),i=r(95441),l=r(69125),a=r(88471),c=r(76134);function d(){let e,t,r,d,u,p,m,h,f,g=(0,s.c)(26),x=(0,n.st)();g[0]===Symbol.for("react.memo_cache_sentinel")?(e={key:"cs-trips-tour-steps-taken",initialValue:0,version:1},g[0]=e):e=g[0];let[v,b]=(0,a.F)(e),y=(0,o.useRef)(v);g[1]!==x?(t=()=>{(0,l.s)(x,i.X.elementClicked,{elementType:"button",elementId:"go_to_trips_cta"})},g[1]=x,g[2]=t):t=g[2];let w=t;g[3]!==x?(r=()=>{(0,l.s)(x,i.X.elementClicked,{elementType:"button",elementId:"take_trips_tour_cta"})},g[3]=x,g[4]=r):r=g[4];let j=r;g[5]!==x||g[6]!==b?(d=e=>{y.current=0,b(0),(0,l.s)(x,i.X.tourStarted,{groupType:"tour",tour:c.o2,position:e})},g[5]=x,g[6]=b,g[7]=d):d=g[7];let k=d;g[8]!==x?(u=()=>{(0,l.s)(x,i.X.elementClicked,{elementType:"button",elementId:"tour_skipped"})},g[8]=x,g[9]=u):u=g[9];let S=u;g[10]!==x||g[11]!==b?(p=e=>{let t=y.current;(0,l.s)(x,i.X.tourEnded,{groupType:"tour",tour:c.o2,steps:t,completed:e}),y.current=0,b(0)},g[10]=x,g[11]=b,g[12]=p):p=g[12];let _=p;g[13]!==x||g[14]!==b?(m=e=>{let t=Math.max(y.current,e+1);y.current=t,b(t),(0,l.s)(x,i.X.elementClicked,{elementType:"button",elementId:"tour_advanced",step:e+1})},g[13]=x,g[14]=b,g[15]=m):m=g[15];let C=m;g[16]!==x?(h=e=>{(0,l.s)(x,i.X.onboardingTourTargetLost,{eventCategory:"failure",reason:"item_not_found",step:e+1})},g[16]=x,g[17]=h):h=g[17];let I=h;return g[18]!==C||g[19]!==w||g[20]!==j||g[21]!==I||g[22]!==_||g[23]!==S||g[24]!==k?(f={trackGoToTripsClick:w,trackTakeTourClick:j,trackTourStarted:k,trackTourSkipped:S,trackTourEnded:_,noteStepAdvance:C,trackTargetLost:I},g[18]=C,g[19]=w,g[20]=j,g[21]=I,g[22]=_,g[23]=S,g[24]=k,g[25]=f):f=g[25],f}},89903:(e,t,r)=>{r.d(t,{$E:()=>s,T2:()=>o,Wg:()=>i,dJ:()=>n,kz:()=>a,uH:()=>l});let s=20,o=100,n=2e3,i=5e3,l=20,a="community-page-container"},95113:(e,t,r)=>{r.d(t,{ExploreHeroSection:()=>Y});var s=r(33463),o=r(1793),n=r(93326),i=r(60287),l=r(57736),a=r(6918),c=r(51104),d=r(28473),u=r(50644),p=r(1594),m=r(37343),h=r(36208),f=r(81110),g=r(43905),x=r(56083),v=r(95057);let b=(0,r(42365).H)("/images/lotties/anywhere-but-here.json"),y=(0,d.tv)({slots:{base:["w-full","flex","justify-center","surf-explore-border","max-w-[700px]","mx-auto"],wrapper:["relative","w-full"],inputDisplay:["flex","items-center","w-full","h-12","relative","z-20","md:h-14","flex-shrink-0","p-s","gap-s","md:py-m","md:pr-m","md:pl-lg","md:gap-m","rounded-xs","border","border-solid","border-transparent","bg-transparent","shadow-none","transition-all","duration-2000","ease-in-out","peer-hover:bg-light-serendipitous-200","peer-hover:surf-shadow-default","peer-focus-visible:!bg-dark-serendipitous-50","peer-focus-visible:surf-shadow-default","peer-active:!bg-dark-serendipitous-50","peer-active:surf-shadow-default","pointer-events-none"],overlayButton:["peer","absolute","
1inset-0","cursor-pointer","z-10","rounded-xs"],searchIcon:["text-default-200","flex-shrink-0","min-w-4"],placeholderText:["text-default-200","font-default","text-left","flex-1","truncate","transition-opacity","duration-300","ease-in-out"],sparkleButtonWrapper:["relative","z-20","pointer-events-auto","[&_button]:px-[6px] [&_button]:h-8"],sparkleButtonContainer:["relative","z-20","pointer-events-auto","transition-all","duration-200","overflow-hidden","rounded-s","surf-focus-within"]},variants:{isSparkleAnimationPlaying:{true:{placeholderText:["opacity-50"],sparkleButtonContainer:["ease-in"]},false:{sparkleButtonContainer:["ease-out"]}}}});function w(e){let t,r,n,i,l,a,c,d,w,j,k=(0,o.c)(31),{baseClassName:S,wrapperClassName:_,inputDisplayProps:C,buttonProps:I,sparkleButtonProps:T,sparkleWrapperProps:N,content:L}=function(e,t){let r,n,i,l,a,c,d,u,p,y,w,j,k,S,_,C,I,T,N,L,A,E,P,z,$,D,R=(0,o.c)(76),{onClick:F,placeholder:H,testId:M,label:B,"aria-haspopup":O,onAnywhereButHereClick:K,isLoadingRandomLocation:X,anywhereButHereTooltip:q,showSparkleAnimation:U,clickEvent:W,customAttributes:Y,anywhereClickEvent:V,anywhereCustomAttributes:Z}=t,{t:J}=(0,x.useTranslation)(),[G,Q]=(0,m.useState)(!1),ee=(0,m.useRef)(void 0!==U&&U);R[0]!==M?(r=(0,f.v)(M,"search-icon"),R[0]=M,R[1]=r):r=R[1],R[2]!==r?(n=(0,s.jsx)(h.e,{className:"text-default-200","data-testid":r,size:16,weight:"regular"}),R[2]=r,R[3]=n):n=R[3];let et=n,er=(0,m.useRef)(null),[es,eo]=(0,m.useState)(32);R[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{if(!ee.current)return;let e=null,t=null,r=performance.now(),s=()=>
1{if(performance.now()-r>=5200){if(er.current){let e=er.current.querySelector("button");e&&eo(e.offsetWidth),Q(!0)}}else e=requestAnimationFrame(s)},o=()=>{performance.now()-r>=7200?(eo(32),Q(!1)):t=requestAnimationFrame(o)};return e=requestAnimationFrame(s),t=requestAnimationFrame(o),()=>{null!==e&&cancelAnimationFrame(e),null!==t&&cancelAnimationFrame(t)}},l=[],R[4]=i,R[5]=l):(i=R[4],l=R[5]),(0,m.useEffect)(i,l),R[6]!==M?(a=(0,f.v)(M,"sparkle-icon"),R[6]=M,R[7]=a):a=R[7],R[8]!==a?(c=(0,s.jsx)("div",{children:(0,s.jsx)(v.j,{autoplayDelay:5200,className:"w-[22px]",loop:!1,path:b,testId:a})}),R[8]=a,R[9]=c):c=R[9];let en=c;if(R[10]!==e||R[11]!==G){let t=e({isSparkleAnimationPlaying:G});j=t.base(),k=t.wrapper(),S=t.inputDisplay(),d=t.overlayButton(),u=t.searchIcon(),p=t.placeholderText(),y=t.sparkleButtonWrapper(),w=t.sparkleButtonContainer(),R[10]=e,R[11]=G,R[12]=d,R[13]=u,R[14]=p,R[15]=y,R[16]=w,R[17]=j,R[18]=k,R[19]=S}else d=R[12],u=R[13],p=R[14],y=R[15],w=R[16],j=R[17],k=R[18],S=R[19];R[20]!==d||R[21]!==u||R[22]!==p||R[23]!==y||R[24]!==w||R[25]!==j||R[26]!==k||R[27]!==S?(_={base:j,wrapper:k,inputDisplay:S,overlayButton:d,searchIcon:u,placeholderText:p,sparkleButtonWrapper:y,sparkleButtonContainer:w},R[20]=d,R[21]=u,R[22]=p,R[23]=y,R[24]=w,R[25]=j,R[26]=k,R[27]=S,R[28]=_):_=R[28];let ei=_,el=(0,g.bL)(M??"button",Y,"click",W);R[29]!==F?(C=()=>{F&&F()},R[29]=F,R[30]=C):C=R[30];let ea=C;R[31]!==K?(I=()=>{K?.()},R[31]=K,R[32]=I):I=R[32];let ec=I,ed=ei.base,eu=ei.wrapper;R[33]!==ei.inputDisplay?(T={className:ei.inputDisplay},R[33]=ei.inputDisplay,R[34]=T):T=R[34];let ep=B??H;R[35]!==O||R[36]!==ei.overlayButton||R[37]!==ea||R[38]!==el||R[39]!==ep||R[40]!==M?(N={"aria-label":ep,"aria-haspopup":O,"data-testid":M,className:ei.overlayButton,onClick:ea,...el},R[35]=O,R[36]=ei.overlayButton,R[37]=ea,R[38]=el,R[39]=ep,R[40]=M,R[41]=N):N=R[41],R[42]!==M?(L=(0,f.v)(M,"sparkle-button"),R[42]=M,R[43]=L):L=R[43],R[44]!==X||R[45]!==J?(A=X?null:J("explore.search.anyWhereButHere","Anywhere but here"),R[44]=X,R[45]=J,R[46]=A):A=R[46],R[47]!==q||R[48]!==V||R[49]!==Z||R[50]!==ei.sparkleButtonWrapper||R[51]!==ec||R[52]!==X||R[53]!==en||R[54]!==L||R[55]!==A?(E={onClick:ec,testId:L,"aria-label":q,tooltipContent:q,wrapperClassName:ei.sparkleButtonWrapper,variant:"light",disabled:X,prefixIcon:en,isLoading:X,label:A,clickEvent:V,customAttributes:Z},R[47]=q,R[48]=V,R[49]=Z,R[50]=ei.sparkleButtonWrapper,R[51]=ec,R[52]=X,R[53]=en,R[54]=L,R[55]=A,R[56]=E):E=R[56];let em=`${es}px`;return R[57]!==em?(P={width:em},R[57]=em,R[58]=P):P=R[58],R[59]!==ei.sparkleButtonContainer||R[60]!==P?(z={ref:er,className:ei.sparkleButtonContainer,style:P},R[59]=ei.sparkleButtonContainer,R[60]=P,R[61]=z):z=R[61],R[62]!==ei.placeholderText||R[63]!==ei.searchIcon||R[64]!==H||R[65]!==et||R[66]!==en?($={placeholder:H,searchIcon:et,sparkleIcon:en,searchIconClassName:ei.searchIcon,placeholderTextClassName:ei.placeholderText},R[62]=ei.placeholderText,R[63]=ei.searchIcon,R[64]=H,R[65]=et,R[66]=en,R[67]=$):$=R[67],R[68]!==ei.base||R[69]!==ei.wrapper||R[70]!==T||R[71]!==N||R[72]!==E||R[73]!==z||R[74]!==$?(D={baseClassName:ed,wrapperClassName:eu,inputDisplayProps:T,buttonProps:N,sparkleButtonProps:E,sparkleWrapperProps:z,content:$},R[68]=ei.base,R[69]=ei.wrapper,R[70]=T,R[71]=N,R[72]=E,R[73]=z,R[74]=$,R[75]=D):D=R[75],D}(y,e);return k[0]!==I?(t=(0,s.jsx)("button",{...I,className:I.className}),k[0]=I,k[1]=t):t=k[1],k[2]!==L.searchIcon||k[3]!==L.searchIconClassName?(r=(0,s.jsx)("span",{"aria-hidden":"true",className:L.searchIconClassName,children:L.searchIcon}),k[2]=L.searchIcon,k[3]=L.searchIconClassName,k[4]=r):r=k[4],k[5]!==L.placeholder||k[6]!==L.placeholderTextClassName?(n=(0,s.jsx)("span",{"aria-hidden":"true",className:L.placeholderTextClassName,children:L.placeholder}),k[5]=L.placeholder,k[6]=L.placeholderTextClassName,k[7]=n):n=k[7],k[8]!==T?(i=(0,s.jsx)(p.J,{...T}),k[8]=T,k[9]=i):i=k[9],k[10]!==N||k[11]!==i?(l=(0,s.jsx)("div",{...N,children:i}),k[10]=N,k[11]=i,k[12]=l):l=k[12],k[13]!==T.tooltipContent||k[14]!==l?(a=(0,s.jsx)(u.m,{content:T.tooltipContent,children:l}),k[13]=T.tooltipContent,k[14]=l,k[15]=a):a=k[15],k[16]!==T.wrapperClassName||k[17]!==a?(c=(0,s.jsx)("div",{className:T.wrapperClassName,children:a}),k[16]=T.wrapperClassName,k[17]=a,k[18]=c):c=k[18],k[19]!==C||k[20]!==r||k[21]!==n||k[22]!==c?(d=(0,s.jsxs)("div",{...C,children:[r,n,c]}),k[19]=C,k[20]=r,k[21]=n,k[22]=c,k[23]=d):d=k[23],k[24]!==t||k[25]!==d||k[26]!==_?
1(w=(0,s.jsxs)("div",{className:_,children:[t,d]}),k[24]=t,k[25]=d,k[26]=_,k[27]=w):w=k[27],k[28]!==S||k[29]!==w?(j=(0,s.jsx)("div",{className:S,children:w}),k[28]=S,k[29]=w,k[30]=j):j=k[30],j}var j=r(964),k=r(55488),S=r(41928),_=r(2131),C=r(34871);async function I(){let e={queryType:C.b.Location,limit:1};return(await (0,_.id)().globalSearch.getSearchSuggestions.query(e)).data.at(0)}var T=r(57584),N=r(48248);function L(){let e,t,r,n,i,l,a,d,u,p,h,f,g=(0,o.c)(35),{isGlobalSearchOpen:v,onGlobalSearchOpenChange:b}=(0,c.$)(),{navigateToRandomLocation:y,isNavigating:_}=function(){let e,t,r,s,n,i=(0,o.c)(11),[l,a]=(0,m.useState)(!1),c=(0,j.useRouter)(),d=(0,S.$)();i[0]!==d||i[1]!==c?(e=e=>{let t=e?.slug;void 0!==t&&""!==t&&null!==t?c.push(d({path:"locations/:slugId",slugId:t})):a(!1)},i[0]=d,i[1]=c,i[2]=e):e=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{a(!1)},i[3]=t):t=i[3],i[4]!==e?(r={mutationFn:I,onSuccess:e,onError:t},i[4]=e,i[5]=r):r=i[5];let{mutate:u,isPending:p}=(0,k.useMutation)(r);i[6]!==u?(s=()=>{a(!0),u()},i[6]=u,i[7]=s):s=i[7];let h=s,f=p||l;return i[8]!==f||i[9]!==h?(n={navigateToRandomLocation:h,isNavigating:f},i[8]=f,i[9]=h,i[10]=n):n=i[10],n}(),{t:C}=(0,x.useTranslation)();g[0]!==C?(e=C("explore.search.placeholder1","Barcelona, Spain"),g[0]=C,g[1]=e):e=g[1];let L=`"${e}"`;g[2]!==C?(t=C("explore.search.placeholder2","Hosts in..."),g[2]=C,g[3]=t):t=g[3];let A=`"${t}"`;g[4]!==C?(r=C("explore.search.placeholder3","Travelers in..."),g[4]=C,g[5]=r):r=g[5];let E=`"${r}"`;g[6]!==C?(n=C("explore.search.placeholder4","Events in..."),g[6]=C,g[7]=n):n=g[7];let P=`"${n}"`;g[8]!==C?(i=C("explore.search.searchFor","Search for"),g[8]=C,g[9]=i):i=g[9];let z=!v;g[10]!==L||g[11]!==P||g[12]!==A||g[13]!==E?(l=[L,A,E,P],g[10]=L,g[11]=P,g[12]=A,g[13]=E,g[14]=l):l=g[14],g[15]!==i||g[16]!==z||g[17]!==l?(a={prefix:i,enabled:z,delay:750,placeholders:l},g[15]=i,g[16]=z,g[17]=l,g[18]=a):a=g[18];let $=function({delay:e=0,prefix:t,placeholders:r,enabled:s}){let[o,n]=(0,m.useState)(0),[i,l]=(0,m.useState)(void 0),a=(0,m.useRef)(!1),c=(0,m.useRef)(void 0),d=(0,m.useRef)(null),u=(0,m.useRef)("delete"),p=(0,m.useRef)(o),h=(0,m.useRef)(i);(0,m.useEffect)(()=>{p.current=o},[o]),(0,m.useEffect)(()=>{h.current=i},[i]),(0,m.useEffect)(()=>{if(!s){void 0!==c.current&&(cancelAnimationFrame(c.current),c.current=void 0),d.current=null,a.current=!1;return}return d.current=null,c.current=requestAnimationFrame(function t(s){let o=p.current,i=h.current,m=r.at(o)??"",f=i??m.length,g=485/m.length,x=u.current,v=void 0!==r.at(o+1);d.current??=s;let b=s-d.current;if(b>=e&&!a.current&&(a.current=!0),"idle"!==x&&b>=g&&a.current){let e="delete"===x?f-1:f+1;0===e?(u.current="type",n((o+1)%r.length),l(0),d.current=s):e===m.length?(u.current="idle",l(e),d.current=s):e>0&&e<m.length&&(l(e),d.current=s)}else"idle"===x&&b>=400&&v&&a.current&&(u.current="delete",l(void 0),d.current=s);("idle"!==x||v)&&(c.current=requestAnimationFrame(t))}),()=>{void 0!==c.current&&(cancelAnimationFrame(c.current),c.current=void 0)}},[s,e,r]);let f=r.at(o)??"",g=(i??f.length)===f.length?"":"|";return[t,f.slice(0,i)+g].filter(Boolean).join(" ")}(a);g[19]!==v||g[20]!==b?(d=()=>{b(!v)},g[19]=v,g[20]=b,g[21]=d):d=g[21];let D=d;g[22]!==y?(u=()=>{y()},g[22]=y,g[23]=u):u=g[23];let R=u;return g[24]!==C?(p=C("explore.search.anywhereTooltip","Anywhere but Here"),g[24]=C,g[25]=p):p=g[25],g[26]!==C?(h=C("app.header.search.open","Open search"),g[26]=C,g[27]=h):h=g[27],g[28]!==R||g[29]!==D||g[30]!==_||g[31]!==$||g[32]!==p||g[33]!==h?(f=(0,s.jsx)("div",{className:"relative w-full",children:(0,s.jsx)(N.j,{children:(0,s.jsx)(w,{anywhereButHereTooltip:p,anywhereClickEvent:T.c.heroAnywhereButHere.clickEvent,anywhereCustomAttributes:T.c.heroAnywhereButHere.customAttributes,"aria-haspopup":"dialog",clickEvent:T.c.heroSearchOpen.clickEvent,customAttributes:T.c.heroSearchOpen.customAttributes,isLoadingRandomLocation:_,label:h,onAnywhereButHereClick:R,onClick:D,placeholder:$,showSparkleAnimation:!0,testId:"global-search-button"})})}),g[28]=R,g[29]=D,g[30]=_,g[31]=$,g[32]=p,g[33]=h,g[34]=f):f=g[34],f}var A=r(37818),E=r(79979),P=r(18171),z=r(8009),$=r(1007),D=r(50316),R=r(35326),F=r(80286),H=r(64593);let M=(0,H.Z)("b1-hosts.json"),B=(0,H.Z)("b2-location.json"),O=(0,H.Z)("b3-traveler.json"),K=(0,H.Z)("b4-events.json"),X=(0,H.Z)("b5-communities.json"),q={hidden:{},visible:{transition:{delayChildren:1,staggerChildren:.5}}},U={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{ease:"easeOut"}}};function W(){let e,t,r,n,i,l,a,c,d,u,p,m,h,f,g,b,y,w,k,_,C=(0,o.c)(78),{t:I}=(0,x.useTranslation)(),L=(0,A.I)(),H=(0,P.useIsLoggedIn)(),{promptLoginFromExplore:W}=(0,D.T9)(),Y=(0,S.$)(),V=(0,j.useRouter)(),[Z]=(0,$.h)(),{isCommunitiesDiscoveryEnabled:J}=Z,{isLoading:G,onRequest:Q}=function(){let e,t,r,s=(0,o.c)(9),n=(0,S.$)(),i=(0,j.useRouter)();s[0]!==n||s[1]!==i?(e=async e=>{let{locationData:t}=e,r=t.slug;null!=r&&i.push(n({path:"locations/:slugId",slugId:r}))},s[0]=n,s[1]=i,s[2]=e):e=s[2];let l=e,{isLoading:a,onRequest:c}=(0,R.I)();s[3]!==c||s[4]!==l?(t=()=>{c({onSuccess:l})},s[3]=c,s[4]=l,s[5]=t):t=s[5];let d=t;return s[6]!==d||s[7]!==a?(r={isLoading:a,onRequest:d},s[6]=d,s[7]=a,s[8]=r):r=s[8],r}(),{isLoading:ee,onRequest:et}=(0,F.k)(),{isLoading:er,onRequest:es}=function(){let e,t,r,s=(0,o.c)(9),n=(0,j.useRouter)(),i=(0,S.$)();s[0]!==i||s[1]!==n?(e=async e=>{let{locationData:t}=e,r=new URLSearchParams({locationId:t.id});n.push([i("search/travelers"),r.toString()].join("?"))},s[0]=i,s[1]=n,s[2]=e):e=s[2];let l=e,{isLoading:a,onRequest:c}=(0,R.I)();s[3]!==c||s[4]!==l?(t=()=>{c({onSuccess:l})},s[3]=c,s[4]=l,s[5]=t):t=s[5];let d=t;return s[6]!==d||s[7]!==a?(r={isLoading:a,onRequest:d},s[6]=d,s[7]=a,s[8]=r):r=s[8],r}(),{isLoading:eo,onRequest:en}=function(){let e,t,r,s=(0,o.c)(9),n=(0,S.$)(),i=(0,j.useRouter)();s[0]!==n||s[1]!==i?(e=async e=>{let{locationData:t}=e,{latitude:r,longitude:s}=t.point,o=new URLSearchParams;o.set("latitude",r.toString()),o.set("longitude",s.toString()),o.set("date","this_weekend");let l=[n("events/all"),o.toString()].join("?");i.push(l)},s[0]=n,s[1]=i,s[2]=e):e=s[2];let l=e,{isLoading:a,onRequest:c}=(0,R.I)();s[3]!==c||s[4]!==l?(t=()=>{c({onSuccess:l})},s[3]=c,s[4]=l,s[5]=t):t=s[5];let d=t;return s[6]!==d||s[7]!==a?(r={isLoading:a,onRequest:d},s[6]=d,s[7]=a,s[8]=r):r=s[8],r}();C[0]!==H||C[1]!==et||C[2]!==W?(e=()=>{H?et():W("hero_hosts_nearby")},C[0]=H,C[1]=et,C[2]=W,C[3]=e):e=C[3];let ei=e;C[4]!==H||C[5]!==Q||C[6]!==W?(t=()=>{H?Q():W("hero_current_location")},C[4]=H,C[5]=Q,C[6]=W,C[7]=t):t=C[7];let el=t;C[8]!==H||C[9]!==es||C[10]!==W?(r=()=>{H?es():W("hero_travelers_nearby")},C[8]=H,C[9]=es,C[10]=W,C[11]=r):r=C[11];let ea=r;C[12]!==Y||C[13]!==H||C[14]!==en||C[15]!==V?(n=()=>{H?en():V.push(Y("events/all"))},C[12]=Y,C[13]=H,C[14]=en,C[15]=V,C[16]=n):n=C[16];let ec=n;C[17]!==Y||C[18]!==V?(i=()=>{V.push(Y("communities"))},C[17]=Y,C[18]=V,C[19]=i):i=C[19];let ed=i,eu=H?void 0:T.c.heroHostsNearby,ep=H?void 0:T.c.heroCurrentLocation,em=H?void 0:T.c.heroTravelersNearby,eh=H?void 0:T.c.heroEventsWeekend,ef=!L&&"hidden",eg=eu?.clickEvent,ex=eu?.customAttributes;C[20]!==I?(l=I("explore.buttons.hostNearby","Hosts Nearby"),C[20]=I,C[21]=l):l=C[21];let ev=!L;C[22]!==ev?(a=(0,s.jsx)("span",{children:(0,s.jsx)(v.j,{autoplayDelay:1e3,className:"w-5",loop:!1,path:M,play:ev})}),C[22]=ev,C[23]=a):a=C[23],C[24]!==ei||C[25]!==ee||C[26]!==a||C[27]!==eg||C[28]!==ex||C[29]!==l?(c=(0,s.jsx)(E.P.div,{variants:U,children:(0,s.jsx)(N.j,{children:(0,s.jsx)(z.j,{clickEvent:eg,customAttributes:ex,disabled:ee,label:l,onPress:ei,prefixIcon:a,size:"small",testId:"host-nearby-button"})})}),C[24]=ei,C[25]=ee,C[26]=a,C[27]=eg,C[28]=ex,C[29]=l,C[30]=c):c=C[30];let eb=ep?.clickEvent,ey=ep?.customAttributes;C[31]!==I?(d=I("explore.buttons.currentLocation.label","Current Location"),C[31]=I,C[32]=d):d=C[32];let ew=!L;C[33]!==ew?(u=(0,s.jsx)("span",{children:(0,s.jsx)(v.j,{autoplayDelay:1500,className:"w-5",loop:!1,path:B,play:ew})}),C[33]=ew,C[34]=u):u=C[34],C[35]!==el||C[36]!==G||C[37]!==eb||C[38]!==ey||C[39]!==d||C[40]!==u?(p=(0,s.jsx)(E.P.div,{variants:U,children:(0,s.jsx)(N.j,{children:(0,s.jsx)(z.j,{clickEvent:eb,customAttributes:ey,disabled:G,label:d,onPress:el,prefixIcon:u,size:"small",testId:"current-location-button"})})}),C[35]=el,C[36]=G,C[37]=eb,C[38]=ey,C[39]=d,C[40]=u,C[41]=p):p=C[41];let ej=em?.clickEvent,ek=em?.customAttributes;C[42]!==I?(m=I("explore.buttons.travelersNearby","Travelers Nearby"),C[42]=I,C[43]=m):m=C[43];let eS=!L;C[44]!==eS?(h=(0,s.jsx)("span",{children:(0,s.jsx)(v.j,{autoplayDelay:2e3,className:"w-5",loop:!1,path:O,play:eS})}),C[44]=eS,C[45]=h):h=C[45],C[46]!==ea||C[47]!==er||C[48]!==ej||C[49]!==ek||C[50]!==m||C[51]!==h?(f=(0,s.jsx)(E.P.div,{variants:U,children:(0,s.jsx)(N.j,{children:(0,s.jsx)(z.j,{clickEvent:ej,customAttributes:ek,disabled:er,label:m,onPress:ea,prefixIcon:h,size:"small",testId:"travelers-nearby-button"})})}),C[46]=ea,C[47]=er,C[48]=ej,C[49]=ek,C[50]=m,C[51]=h,C[52]=f):f=C[52];let e_=eh?.clickEvent,eC=eh?.customAttributes;C[53]!==I?(g=I("explore.buttons.events","Events this Weekend"),C[53]=I,C[54]=g):g=C[54];let eI=!L;return C[55]!==eI?(b=(0,s.jsx)("span",{children:(0,s.jsx)(v.j,{autoplayDelay:2500,className:"w-5",loop:!1,path:K,play:eI})}),C[55]=eI,C[56]=b):b=C[56],C[57]!==ec||C[58]!==eo||C[59]!==e_||C[60]!==eC||C[61]!==g||C[62]!==b?(y=(0,s.jsx)(E.P.div,{variants:U,children:(0,s.jsx)(N.j,{children:(0,s.jsx)(z.j,{clickEvent:e_,customAttributes:eC,disabled:eo,label:g,onPress:ec,prefixIcon:b,size:"small",testId:"events-button"})})}),C[57]=ec,C[58]=eo,C[59]=e_,C[60]=eC,C[61]=g,C[62]=b,C[63]=y):y=C[63],C[64]!==ed||C[65]!==J||C[66]!==L||C[67]!==I?(w=J?(0,s.jsx)(N.j,{children:(0,s.jsx)(z.j,{disabled:!1,label:I("explore.buttons.communities","Discover Communities"),onPress:ed,prefixIcon:(0,s.jsx)("span",{children:(0,s.jsx)(v.j,{autoplayDelay:3e3,className:"w-5",loop:!1,path:X,play:!L})}),size:"small",testId:"communities-button"})}):null,C[64]=ed,C[65]=J,C[66]=L,C[67]=I,C[68]=w):w=C[68],C[69]!==w?(k=(0,s.jsx)(E.P.div,{variants:U,children:w}),C[69]=w,C[70]=k):k=C[70],C[71]!==c||C[72]!==p||C[73]!==f||C[74]!==y||C[75]!==k||C[76]!==ef?(_=(0,s.jsxs)(E.P.div,{animate:"visible",className:"contents",initial:ef,variants:q,children:[c,p,f,y,k]}),C[71]=c,C[72]=p,C[73]=f,C[74]=y,C[75]=k,C[76]=ef,C[77]=_):_=C[77],_}function Y(e){let t,r,c,d,u,p,m,h,f,g,x=(0,o.c)(21),{titleMobile:v,titleDesktop:b,descriptionMobile:y,descriptionDesktop:w}=e;x[0]===Symbol.for("react.memo_cache_sentinel")?(t={sectionName:"hero",contentSource:"app_content_static"},x[0]=t):t=x[0];let j=(0,a.W)(t);return x[1]!==v?(r=(0,s.jsx)("div",{className:"block md:hidden",children:(0,s.jsx)(n._,{children:v})}),x[1]=v,x[2]=r):r=x[2],x[3]!==b?(c=(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(i.x,{children:b})}),x[3]=b,x[4]=c):c=x[4],x[5]!==y?(d=(0,s.jsx)("div",{className:"block md:hidden",children:(0,s.jsx)(l.g,{color:"muted",children:y})}),x[5]=y,x[6]=d):d=x[6],x[7]!==w?(u=(0,s.jsx)("div",{className:"hidden md:block",children:(0,s.jsx)(l.g,{color:"muted",children:w})}),x[7]=w,x[8]=u):u=x[8],x[9]!==r||x[10]!==c||x[11]!==d||x[12]!==u?(p=(0,s.jsxs)("div",{className:"flex flex-col items-center gap-xs w-full","data-slot":"text",children:[r,c,d,u]}),x[9]=r,x[10]=c,x[11]=d,x[12]=u,x[13]=p):p=x[13],x[14]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(L,{}),x[14]=m):m=x[14],x[15]!==p?(h=(0,s.jsxs)("div",{className:"flex flex-col items-center gap-xl w-full","data-slot":"top-core",children:[p,m]}),x[15]=p,x[16]=h):h=x[16],x[17]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("div",{className:"flex justify-center items-start content-start gap-s self-stretch flex-wrap","data-slot":"buttons",children:(0,s.jsx)(W,{})}),x[17]=f):f=x[17],x[18]!==j||x[19]!==h?(g=(0,s.jsxs)("div",{className:"flex flex-col items-center gap-lg w-full","data-slot":"top","data-testid":"explore-hero-section",ref:j,children:[h,f]}),x[18]=j,x[19]=h,x[20]=g):g=x[20],g}},96670:(e,t,r)=>{r.d(t,{ExplorePageShell:()=>S});var s=r(33463),o=r(1793),n=r(37343),i=r(94034),l=r(96497),a=r.n(l),c=r(5413);function d(e){let t,r,i,l,d=(0,o.c)(9),{scrollContainerRef:u,logo:p,loginButton:m}
1=e,[h,f]=(0,n.useState)(!1);d[0]!==u?(t=()=>{let e=u.current;if(!e)return;let t=()=>{let t=e.scrollTop>0;f(e=>e===t?e:t)};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}},r=[u],d[0]=u,d[1]=t,d[2]=r):(t=d[1],r=d[2]),(0,n.useEffect)(t,r);let g=h?"surf-blur-m bg-shadesDark-500":"surf-blur-none bg-transparent";return d[3]!==g?(i=a()("px-m py-s rounded-xs transition-[background-color,backdrop-filter] duration-[160ms] ease-in-out",g),d[3]=g,d[4]=i):i=d[4],d[5]!==m||d[6]!==p||d[7]!==i?(l=(0,s.jsx)("div",{className:"sticky top-0 z-30 p-m",children:(0,s.jsxs)(c.zt,{alignItems:c.k2.center,className:i,spaceBetween:!0,testId:"explore-header",children:[p,m]})}),d[5]=m,d[6]=p,d[7]=i,d[8]=l):l=d[8],l}var u=r(14337),p=r(50316),m=r(75646),h=r(3048),f=r(18171),g=r(95441),x=r(69125),v=r(44102),b=r(99753),y=r(56083),w=r(31449),j=r(57584);function k(){let e,t,r,n=(0,o.c)(7),{t:i}=(0,y.useTranslation)(),l=(0,f.useIsLoggedIn)(),{promptLoginFromExplore:a}=(0,p.T9)();n[0]!==a?(e=()=>{a("header_login_button")},n[0]=a,n[1]=e):e=n[1];let c=e;return l?null:(n[2]!==i?(t=i("web.explore.button.login","Login"),n[2]=i,n[3]=t):t=n[3],n[4]!==c||n[5]!==t?(r=(0,s.jsx)(w.j,{clickEvent:j.c.headerLogin.clickEvent,customAttributes:j.c.headerLogin.customAttributes,label:t,onPress:c,size:"large",testId:"explore-login-button"}),n[4]=c,n[5]=t,n[6]=r):r=n[6],r)}function S(e){let t,r,l,a,c,y,w,j=(0,o.c)(14),{children:S,logo:_}=e,C=(0,n.useRef)(null),{setPageScrollContainer:I}=(0,i.c)(),{promptLoginFromExplore:T}=function(){let e,t,r,s,i,l,a,c,d=(0,o.c)(14),u=(0,h.st)(),p=(0,f.useIsLoggedIn)(),{promptLogin:y}=(0,b.M)();d[0]===Symbol.for("react.memo_cache_sentinel")?(e={require:void 0},t={scroll:!1},d[0]=e,d[1]=t):(e=d[0],t=d[1]);let{data:w}=(0,m.v)(v.w,e,t),j=(0,n.useRef)(!1),k=(0,n.useRef)(null),S=(0,n.useRef)(void 0),_=(0,n.useRef)(p);d[2]!==p?(r=()=>{_.current=p},s=[p],d[2]=p,d[3]=r,d[4]=s):(r=d[3],s=d[4]),(0,n.useEffect)(r,s),d[5]!==u||d[6]!==y?(i=e=>{(0,x.s)(u,g.X.exploreAuthModalView,{source_surface:"explore_signed_out",entry_point:e}),j.current=!0,k.current=e,y()},d[5]=u,d[6]=y,d[7]=i):i=d[7];let C=i;return d[8]!==u||d[9]!==w.require?(l=()=>{let e=S.current;if(S.current=w.require,"login"!==e||void 0!==w.require||!j.current)return;j.current=!1;let t=k.current;k.current=null;let r=window.setTimeout(()=>{_.current||(0,x.s)(u,g.X.exploreAuthModalDismissed,{source_surface:"explore_signed_out",entry_point:t,dismiss_method:"unknown"})},500);return()=>{window.clearTimeout(r)}},a=[u,w.require],d[8]=u,d[9]=w.require,d[10]=l,d[11]=a):(l=d[10],a=d[11]),(0,n.useEffect)(l,a),d[12]!==C?(c={promptLoginFromExplore:C},d[12]=C,d[13]=c):c=d[13],c}();return j[0]!==I?(t=()=>{let e=C.current;if(e)return I(e),()=>{I(null)}},r=[I],j[0]=I,j[1]=t,j[2]=r):(t=j[1],r=j[2]),(0,n.useEffect)(t,r),j[3]!==T?(l={promptLoginFromExplore:T},j[3]=T,j[4]=l):l=j[4],j[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)(k,{}),j[5]=a):a=j[5],j[6]!==_?(c=(0,s.jsx)(d,{loginButton:a,logo:_,scrollContainerRef:C}),j[6]=_,j[7]=c):c=j[7],j[8]!==S||j[9]!==c?(y=(0,s.jsxs)("div",{className:"flex flex-col h-dvh sm:h-full sm:min-h-0 max-h-[100dvh] overflow-x-hidden overflow-y-auto overscroll-y-contain","data-testid":"explore-scroll-container",id:u.I,ref:C,children:[c,S]}),j[8]=S,j[9]=c,j[10]=y):y=j[10],j[11]!==l||j[12]!==y?(w=(0,s.jsx)(p.qH,{value:l,children:y}),j[11]=l,j[12]=y,j[13]=w):w=j[13],w}}}]);

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.