1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d87e-9128-7843-bed2-a5ad6e5d6e2e")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3647],{23647:function(e,t,n){"use strict";n.d(t,{p0:function(){return G},IE:function(){return es},uV:function(){return eu},eE:function(){return eC},OW:function(){return eF}});var s=n(31549),i=n(64331),r=n(7124),a=n(39856),l=n(62915),o=n(44194),c=n(84742),u=n(19507),d=n(23511),x=n(37486),h=n(98104),p=n.n(h),m=n(51463),j=n(87932),f=n(96736),g=n.n(f);let _=(0,j.U)(g(),"aside"),b=(0,j.U)(g(),"content");var v=n(25305),y=n(42161),w=n(14751),k=n(92702),N=n(59852),M=n(43945),O=n(44574),C=n(42284),$=n(94691),L=n(9211);let S={overview:e=>({label:e("navLinks.label.overview","Overview"),link:L._.account(),exact:!0,icon:(0,s.jsx)(y.Z,{})}),requests:e=>({label:e("navLinks.label.requests","Requests"),link:L._.requests.list(),icon:(0,s.jsx)(w.Z,{})}),listings:e=>({label:e("navLinks.label.listings","Listings"),link:L._.listings.list(),icon:(0,s.jsx)(k.Z,{})}),projects:e=>({label:e("navLinks.label.projects","Projects"),link:L._.projects.list(),icon:(0,s.jsx)(N.Z,{})}),favorites:e=>({label:e("navLinks.label.favorites","Favorites"),link:L._.favorites(),icon:(0,s.jsx)(v.Z,{size:20,strokeWidth:"1.5"})}),company:e=>({label:e("navLinks.label.company","Company"),link:L._.account.settings(),icon:(0,s.jsx)(M.Z,{})}),payouts:e=>({label:e("navLinks.label.payouts","Payouts"),link:"/account/payouts",icon:(0,s.jsx)(O.Z,{})})},I=e=>"bookings"!==e&&"profile"!==e&&"browseSpaces"!==e&&"subscriptions"!==e,W=e=>{let{t}=(0,c.$G)(),n=(0,C.pC)(e)?e.value:null;return(0,o.useMemo)(()=>(0,$.O)(n,"sidebar").flatMap(e=>I(e)?[S[e](t)]:[]),[n,t])};function q(){let{asPath:e,pathname:t}=(0,x.useRouter)(),n=(0,m.X6)(),i=W(n);return(0,s.jsx)(F,{children:(0,s.jsx)(K,{children:(0,s.jsx)(R,{children:i.map(n=>{let{link:i,icon:r,label:a,exact:l}=n,o=l?t===i:e.startsWith(i);return(0,s.jsx)(U,{$active:o,children:(0,s.jsxs)(p(),{href:i,children:[r,(0,s.jsx)("span",{children:a})]})},i)})})})})}let F=_.aside`~`,K=_.nav`nav`,R=_.ul`nav-items`,U=_.li`nav-item ${e=>{let{$active:t}=e;return{"is-active":t}}}`;var z=n(78162),A=n(61522);function V(){let{t:e}=(0,c.$G)(),t=(0,x.useRouter)(),{org:n,isLoadingOrg:i}=(0,m.at)(),r=(0,A.cn)(),a=(0,C.WG)((0,z.fC)()),l=a?.email??"",o=a?.loginMethod??"email",u={email:"email code",google:"Google",microsoft:"Microsoft"},d=e(`auth.loginMethod.label.${o}`,u[o]),h=(0,z.Zd)(o).map(t=>e(`auth.loginMethod.label.${t}`,u[t])).join(e("auth.loginMethod.listSeparator"," or ")),p=t.pathname.startsWith("/account/requests"),j=t.pathname===L._.account()||t.pathname.startsWith(L._.profile());if(i||(0,C.pC)(n)||r||j)return null;let f=p?e("auth.noOrg.titleRequest","Can't access this request"):e("auth.noOrg.titleSection","Can't access this section");return(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",style:{backgroundColor:"rgba(0, 0, 0, 0.8)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)"},children:(0,s.jsx)("div",{className:"bg-white rounded-lg min-w-[360px] max-w-[480px] mx-4",children:(0,s.jsxs)("div",{className:"text-center px-6 py-8 space-y-4",children:[(0,s.jsx)("p",{className:"text-[1.2rem] text-gray-800 font-light",children:f}),(0,s.jsx)("p",{className:"text-[1rem] text-gray-700 text-left",children:(0,s.jsx)(c.cC,{i18nKey:p?"auth.noOrg.leadRequest":"auth.noOrg.leadSection",defaults:p?"You're signed in as <email>{{email}}</email>. This request requires an organization you don't have access to with this account.":"You're signed in as <email>{{email}}</email>. This page requires an organization you don't have access to with this account.",values:{email:l},components:{email:(0,s.jsx)("span",{className:"font-medium text-gray-900"},"email")}})}),(0,s.jsx)("form",{id:"no-org-logout-form",method:"POST",action:L._.auth.logout(),className:"hidden",children:(0,s.jsx)("input",{type:"hidden",name:"locale",value:t.locale??""})}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("button",{type:"submit",form:"no-org-logout-form",className:"w-full inline-flex justify-center items-center px-4 py-2 rounded-md bg-black text-white text-sm font-medium hover:bg-gray-900",children:e("auth.noOrg.logoutCta","Sign out and try another account")}
1),(0,s.jsx)("p",{className:"text-xs text-gray-500 text-left",children:e("auth.noOrg.loginMethodHint","You signed in with {{currentMethod}}. If you registered with {{otherMethods}}, sign out and use that method instead.",{currentMethod:d,otherMethods:h})})]}),(0,s.jsxs)("div",{className:"border-t border-gray-200 pt-4 space-y-3 text-left",children:[(0,s.jsx)("p",{className:"text-sm text-gray-600 text-center",children:e("auth.noOrg.onboardLabel","New to xNomad? Set up your account:")}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>t.push(L._.onboard.brand()),className:"w-full inline-flex justify-center items-center px-4 py-2 rounded-md border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-50",children:e("auth.signup.brand","I am in need of a space for my idea")}),(0,s.jsx)("button",{type:"button",onClick:()=>t.push(L._.onboard.landlord()),className:"w-full inline-flex justify-center items-center px-4 py-2 rounded-md border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-50",children:e("auth.signup.landlord","I want to list my space")})]})]}),(0,s.jsx)("p",{className:"text-sm text-gray-500 text-center border-t border-gray-200 pt-4",children:(0,s.jsx)(c.cC,{i18nKey:"auth.noOrg.helpOtherwise",defaults:"Still stuck? <mail>Contact support</mail>.",components:{mail:(0,s.jsx)("a",{href:"mailto:[email protected]",className:"underline",style:{color:"rgb(0 0 0 / var(--tw-bg-opacity))"}},"mail")}})})]})})})}function Z(){let e=(0,o.useMemo)(()=>{let e=new Date;return e.getUTCFullYear()},[]);return(0,s.jsx)(Y,{children:(0,s.jsx)("p",{children:(0,s.jsx)(c.cC,{i18nKey:"footer.copyright",defaults:"Copyright \xa9 {{year}} xNomad",values:{year:e}})})})}let D=b.div`content`,E=b.div`content-wrapper`,P=b.div`~`,T=b.main`main`,Y=b.footer`footer`;var B=Object.assign(function(e){let{children:t,title:n,footer:i=!0}=e,{isStorefront:r}=(0,d.tc)();return(0,s.jsxs)(P,{children:[(0,s.jsx)(u.h4.Account,{onMenuClick:()=>{},title:n}),(0,s.jsx)(q,{}),(0,s.jsx)(E,{children:(0,s.jsxs)(D,{children:[(0,s.jsx)(T,{children:t}),!0===i?(0,s.jsx)(Z,{}):i||null]})}),!r&&(0,s.jsx)(u.Q_,{}),(0,s.jsx)(V,{})]})},{Footer:Z});let J=null;var G=Object.assign(B,{withLayout:(0,i._u)(e=>(t,n)=>{let i=(0,r.mf)(e)?e(n):e,c=(J||(J=(0,a.J)("pk_live_51SBbl72VoacnHySsiBDInlaSR2PDzZKeVamkEWSKMrJgIa855RBfvovJxKMvBdAE72WP7a687z0IPaYV32AcRdTT00YpcVg9x3")),J),[{loaded:u,origin:d},x]=(0,o.useState)({loaded:!1,origin:""});return(0,o.useEffect)(()=>{Promise.resolve(c).then(()=>{x({loaded:!0,origin:window.location.origin})})},[]),(0,s.jsx)(B,{...i,children:(0,s.jsx)(l.eK,{stripe:c,children:t})})})}),Q=n(38419),H=n.n(Q);let X=(0,j.U)(H(),"layout"),ee=X.div`~ ${e=>{let{$stretchContent:t,$headerFixed:n,$headerTransparent:s}=e;return{"--stretch-content":t,"--header-fixed":n,"--header-transparent":s}}}`,et=X.main`content ${e=>{let{$hideFooterMobile:t}=e;return{"no-mobile-footer":t}}}`;var en=function(e){let{containerClassName:t,hideFooterMobile:n,stretchContent:i,headerSearch:r,headerFixed:a,headerTransparent:l,hideHeader:o,children:c}=e,{isStorefront:x}=(0,d.tc)();return(0,s.jsxs)(ee,{$stretchContent:i,$headerFixed:a,$headerTransparent:l,children:[o?null:(0,s.jsx)(u.h4,{fixed:a,transparent:l,search:r}),(0,s.jsx)(et,{$hideFooterMobile:n,className:t,children:c}),(0,s.jsx)(u.$_,{hideMobile:n}),!x&&(0,s.jsx)(u.Q_,{}),!x&&(0,s.jsx)(u.D$,{}),(0,s.jsx)(u.Qb,{})]})},es=Object.assign(en,{withLayout:(0,i._u)(e=>(t,n)=>{let i=(0,r.mf)(e)?e(n):e;return(0,s.jsx)(en,{...i,children:t})})}),ei=n(93938),er=n.n(ei);let ea=(0,j.U)(er(),"layout"),el=ea.div`~`,eo=ea.div`content`;var ec=function(e){let{children:t}=e;return(0,s.jsx)(el,{children:(0,s.jsx)(eo,{children:t})})},eu=Object.assign(ec,{withLayout:(0,i._u)(e=>t=>(0,s.jsx)(ec,{...e,children:t}))}),ed=n(16560),ex=n(47817),eh=n.n(ex);let ep=(0,j.U)(eh(),"layout"),em=(0,j.U)(eh(),"intro"),ej=em.div`~`,ef=em.span`label`,eg=em.h2`title`,e_=em.p`text`,eb=em(p())`skip-btn`,ev=ep.div`~ ${e=>{let{$variant:t}=e;return[t&&`~--${t}`]}}`,ey=ep.div`step`,ew=ep.div`screen`,ek=ep.div`content`,eN=ep.div`cover`,eM=ep(u.lS.Static)`media`;var eO=function(e){let{variant:t,children:n,maxWidth:i}=e;return(0,s.jsxs)(ev,{$variant:t,style:i?{"--screen-max-width":`${i}px`}:{},children:[(0,s.jsxs)(ey,{children:[(0,s.jsx)(u.h4.Onboard,{}),(0,s.jsx)(ew,{children:(0,s.jsx)(ek,{children:n})})]}
1),(0,s.jsx)(eN,{children:(0,s.jsx)(eM,{src:"/sthlm-cover.jpg",aspect:1,xs:50,lg:60,xl:50,mode:"fluid"})})]})},eC=Object.assign(eO,{Intro:function(e){let{label:t,title:n,children:i,skipHref:r}=e,{t:a}=(0,c.$G)("onboard");return(0,s.jsxs)(ej,{children:[(0,s.jsxs)(ed.Ug,{justify:"between",children:[(0,s.jsx)(ef,{children:t}),r?(0,s.jsxs)(eb,{href:r,children:[(0,s.jsx)("span",{children:a("intro.skip","Skip this step")}),(0,s.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:em.css`icon`,children:(0,s.jsx)("path",{stroke:"none",fill:"currentColor",d:"M4 0l12 12l-12 12z"})})]}):null]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(eg,{children:n}),(0,s.jsx)(e_,{children:i})]})]})},withLayout:(0,i._u)(e=>t=>(0,s.jsx)(eO,{...e,children:t}))}),e$=n(41559),eL=n.n(e$);let eS=(0,j.U)(eL(),"layout"),eI=eS.div`~`,eW=eS.main`content ${e=>{let{$flex:t}=e;return{"--flex":t}}}`;var eq=function(e){let{containerClassName:t,flexContent:n,children:i}=e;return(0,s.jsxs)(eI,{children:[(0,s.jsx)(u.h4.Slim,{}),(0,s.jsx)(eW,{$flex:n,className:t,children:i}),(0,s.jsx)(u.$_,{}),(0,s.jsx)(u.Qb,{})]})},eF=Object.assign(eq,{withLayout:(0,i._u)(e=>(t,n)=>{let i=(0,r.mf)(e)?e(n):e;return(0,s.jsx)(eq,{...i,children:t})})})},96736:function(e){e.exports={aside:"_0rWXO_",aside__nav:"_6YdSJ","aside__nav-items":"LAMoIe","aside__logo-link":"_21IgD","aside__nav-item":"qKfDli","is-active":"RWwb2_","is-expanded":"I2wpVA",content:"IUWs_8","content__content-wrapper":"YBXVDF",content__content:"MOL01o",content__main:"n5rQur",content__footer:"_7VtWxs"}},38419:function(e){e.exports={layout:"AcOPC6",layout__content:"avddN_","no-mobile-footer":"u0zvpj","layout--stretch-content":"wxfd9D","layout--header-fixed":"_hIfCQ","layout--header-transparent":"i55inm"}},93938:function(e){e.exports={layout__content:"LcRAKK"}},47817:function(e){e.exports={intro:"z1pnl_",intro__label:"_6S70Ou","intro__skip-btn":"hbpJAJ",intro__title:"crNMpu",intro__text:"l9Fd6b",intro__icon:"cclkMN",layout:"_40Mi0b",layout__step:"F6Feun",layout__screen:"LTxVxi",layout__content:"_FliRk",layout__cover:"KfpujU",layout__media:"KJAWdE"}},41559:function(e){e.exports={layout:"LH3pb_",layout__content:"qLrzf2","layout--flex":"_IGl6g"}}}]); 2//# chunkId=01a0d87e-9128-7843-bed2-a5ad6e5d6e2e
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.