PageSourceSearch

https://www.becloser.co/_next/static/chunks/7655-18621733bac3b980.js?dpl=dpl_GCRkKSxT5cyR4r4CdTXQHK5WUuPj

js becloser.co collected 2026-09-24 13:44:40 UTC 14,111 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7655],{10479:(e,t,s)=>{"use strict";s.d(t,{_:()=>o});var n=s(54568),a=s(7620),r=s(60550),i=s(6205);let o=(0,a.forwardRef)((e,t)=>{let s=(0,a.useRef)(null);return(0,a.useImperativeHandle)(t,()=>({executeRecaptcha:async()=>s.current?await s.current.executeAsync():null,reset:()=>{s.current&&s.current.reset()}})),(0,n.jsx)(r.A,{ref:s,sitekey:i._.NEXT_PUBLIC_GOOGLE_RECAPTCHA_SITE_KEY,size:"invisible",theme:"light"})});o.displayName="ReCaptcha"},15227:(e,t,s)=>{"use strict";s.d(t,{N:()=>o});var n=s(54568),a=s(19664),r=s.n(a),i=s(7620);function o(e){let{label:t,isActive:s,items:a,pathname:o,triggerClassName:l,triggerActiveClassName:d,menuClassName:c,itemClassName:u,itemActiveClassName:m}=e,[h,p]=(0,i.useState)(!1),f=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!h)return;let e=e=>{f.current&&!f.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]),(0,i.useEffect)(()=>{p(!1)},[o]);let v=[l,s&&d?d:null].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:"at-home-nav-dropdown",ref:f,children:[(0,n.jsxs)("button",{type:"button",className:v,"aria-expanded":h,"aria-haspopup":"menu",onClick:()=>p(e=>!e),children:[t,(0,n.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 12 12",width:"10",height:"10",style:{marginLeft:6}
1,children:(0,n.jsx)("path",{d:"M2 4l4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})]}),h&&(0,n.jsx)("div",{className:c,role:"menu",children:a.map(e=>{let t=[u,e.isActive(o)&&m?m:null].filter(Boolean).join(" ");return(0,n.jsx)(r(),{href:e.href,role:"menuitem",className:t||void 0,onClick:()=>p(!1),children:e.label},e.href)})})]})}},25703:(e,t,s)=>{"use strict";s.d(t,{cn:()=>r});var n=s(72902),a=s(13714);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,a.QP)((0,n.$)(t))}},28019:(e,t,s)=>{"use strict";s.d(t,{NewsletterFooterForm:()=>i});var n=s(54568),a=s(7620),r=s(42008);function i(){let[e,t]=(0,a.useState)(!1);return e?(0,n.jsx)("p",{className:"nl-footer__done",children:"You are in. Look out for a note when new rooms open."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"nl-footer__copy",children:"A short note when new rooms open."}),(0,n.jsx)(r.I,{source:"footer",tone:"dark",submitLabel:"Sign up",onSubscribed:()=>t(!0)})]})}},31664:(e,t,s)=>{"use strict";s.d(t,{y:()=>m});var n=s(14802),a=s(2333),r=s(22499),i=s(81761),o=s(71413);let l={...o.KW,dashboard:["view"],facilitate:["view","create","update","delete"]},d=(0,i.a)(l),c=d.newRole(o.U6.statements),u=d.newRole(o.MH.statements);d.newRole(o.U6.statements),d.newRole(o.U6.statements),d.newRole({...o.U6.statements,facilitate:["view","create","update","delete"],dashboard:["view"]}),d.newRole({...o.U6.statements,facilitate:["view","create","update","delete"],dashboard:["view"]}),d.newRole({dashboard:["view"]});let m=(0,r.M)({plugins:[(0,a.px)({ac:d,roles:{user:c,admin:u}}),(0,n.X)({subscription:!0}),(0,a.tT)(),(0,a.Rk)(),(0,a.Zn)()]})},41902:(e,t,s)=>{"use strict";s.d(t,{AC:()=>l,CY:()=>m,Cr:()=>x,Hs:()=>v,JN:()=>c,K0:()=>n.K0,K1:()=>n.K1,Re:()=>h,UV:()=>r,Wz:()=>i,Xk:()=>o,a9:()=>g,eF:()=>a,f$:()=>u,gG:()=>p,j:()=>b,od:()=>d,wb:()=>n.wb,yQ:()=>f});var n=s(95549);let a={Draft:"draft",Published:"published",Testing:"testing",Hidden:"hidden",Archived:"archived"},r={Default:"default",AtHome:"at_home"},i={Soiree:"soiree",HomeCookedDinner:"home_cooked_dinner",PrivateChef:"private_chef",Experiences:"experiences"},o="",l=["NYC","DC","Denver","London","Toronto","Montreal","Sydney","Melbourne"],d="https://apps.apple.com/app/closer-feel-at-home/id6774273182",c="https://play.google.com/store/apps/details?id=co.becloser.app",u="https://www.instagram.com/becloser.co",m="https://www.becloser.co",h={Pending:"pending",Paid:"paid",Canceled:"cancelled",Refunded:"refunded"},p={User:"user",Admin:"admin",Analyst:"analyst",Facilitator:"facilitator",Creator:"creator",Host:"host",HostFacilitator:"host-facilitator"},f=50,v={Active:"active",Used:"used",Cancelled:"cancelled",NoShow:"no-show"},g={Rooted:"ROOTED",Exploring:"EXPLORING",Transitioning:"TRANSITION",InBetween:"IN_BETWEEN",Building:"BUILDING"},x={EventGroup:"event_group",DirectMessage:"direct_message",Concierge:"concierge",AdminGroup:"admin_group",HostReminders:"host_reminders"},b="This event isn't available."},42008:(e,t,s)=>{"use strict";s.d(t,{I:()=>c});var n=s(54568),a=s(81562),r=s(7620),i=s(10479),o=s(70150),l=s(52866),d=s(98809);function c(e){let{source:t,onSubscribed:s,tone:c="light",submitLabel:u="Sign me up",placeholder:m="[email protected]"}=e,h=(0,d.n6)(),[p,f]=(0,r.useState)(""),[v,g]=(0,r.useState)(""),[x,b]=(0,r.useState)(null),[_,w]=(0,r.useState)(!1),j=(0,r.useRef)(null),y=(0,a.n)(h.newsletter.subscribe.mutationOptions({onSuccess:e=>{(0,o.i4)(),(0,l.Dd)("NewsletterSignup",{source:t}),null==s||s(e.nameToken)},onError:e=>{var t;b(e.message||"That did not go through. Please try again in a moment."),null==(t=j.current)||t.reset()}}));async function N(e){var s;e.preventDefault(),b(null);let n=await (null==(s=j.current)?void 0:s.executeRecaptcha());if(!n){w(!0),b("Captcha check did not complete. Please try again.");return}y.mutate({email:p,source:t,captchaToken:n,website:v||void 0})}return(0,n.jsxs)("form",{className:"nl-form nl-form--".concat(c),onSubmit:N,children:[(0,n.jsxs)("div",{className:"nl-form__row",children:[(0,n.jsx)("label",{className:"nl-form__label",htmlFor:"nl-email-".concat(t),children:"Email address"}),(0,n.jsx)("input",{id:"nl-email-".concat(t),className:"nl-form__input",type:"email",name:"email",autoComplete:"email",required:!0,placeholder:m,value:p,disabled:y.isPending,onFocus:()=>w(!0),onChange:e=>{w(!0),f(e.target.value)}}),(0,n.jsx)("button",{className:"nl-form__submit",type:"submit",disabled:y.isPending||!p.trim(),children:y.isPending?"Signing up...":u})]}),(0,n.jsx)("div",{className:"nl-form__hp","aria-hidden":"true",children:(0,n.jsxs)("label",{htmlFor:"nl-website-".concat(t),children:["Leave this field empty",(0,n.jsx)("input",{id:"nl-website-".concat(t),type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:v,onCh
1ange:e=>g(e.target.value)})]})}),x?(0,n.jsx)("p",{className:"nl-form__error",role:"alert",children:x}):null,(0,n.jsxs)("p",{className:"nl-form__legal",children:["This site is protected by reCAPTCHA and the Google"," ",(0,n.jsx)("a",{className:"nl-form__legal-link",href:"https://policies.google.com/privacy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","and"," ",(0,n.jsx)("a",{className:"nl-form__legal-link",href:"https://policies.google.com/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"})," ","apply."]}),_?(0,n.jsx)(i._,{ref:j}):null]})}},42122:(e,t,s)=>{"use strict";s.d(t,{Q:()=>r,a:()=>a});var n=s(41902);function a(e,t){let s="admin"===e,a=null!=e,r=[{href:"/about",label:"About",isActive:e=>"/about"===e},{href:"/events",label:"Events",isActive:e=>"/events"===e}];if(a&&r.push({href:"/my-reservations",label:"My events",isActive:e=>e.startsWith("/my-reservations")}),a&&r.push({href:"/messages",label:"Messages",isActive:e=>e.startsWith("/messages")}),"host"===e||"admin"===e||"host-facilitator"===e){let e=[];(s||!0===t)&&e.push({href:"".concat(n.Xk,"/hosts/dashboard"),label:"Dashboard",isActive:e=>e.startsWith("".concat(n.Xk,"/hosts/dashboard"))}),(s||!0!==t)&&e.push({href:"".concat(n.Xk,"/hosts/logistics-form"),label:"Event form",isActive:e=>e.startsWith("".concat(n.Xk,"/hosts/logistics-form"))}),e.length>0&&r.push({kind:"dropdown",label:"Hosts",isActive:e=>e.startsWith("".concat(n.Xk,"/hosts/")),children:e})}else r.push({href:"".concat(n.Xk,"/host-application"),label:"Host",isActive:e=>e==="".concat(n.Xk,"/host-application")});return r}let r={href:"/app",label:"Get the app",isActive:e=>"/app"===e}},47781:(e,t,s)=>{"use strict";s.d(t,{SQ:()=>d,_2:()=>c,hO:()=>u,lp:()=>m,mB:()=>h,rI:()=>o,ty:()=>l});var n=s(54568);s(7620);var a=s(36655),r=s(6438),i=s(25703);function o(e){let{...t}=e;return(0,n.jsx)(a.bL,{"data-slot":"dropdown-menu",...t})}function l(e){let{...t}=e;return(0,n.jsx)(a.l9,{"data-slot":"dropdown-menu-trigger",...t})}function d(e){let{className:t,sideOffset:s=4,...r}=e;return(0,n.jsx)(a.ZL,{children:(0,n.jsx)(a.UC,{"data-slot":"dropdown-menu-content",sideOffset:s,className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...r})})}function c(e){let{className:t,inset:s,variant:r="default",...o}=e;return(0,n.jsx)(a.q7,{"data-slot":"dropdown-menu-item","data-inset":s,"data-variant":r,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function u(e){let{className:t,children:s,checked:o,...l}=e;return(0,n.jsxs)(a.H_,{"data-slot":"dropdown-menu-checkbox-item",className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:o,...l,children:[(0,n.jsx)("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:(0,n.jsx)(a.VF,{children:(0,n.jsx)(r.A,{className:"size-4"})})}),s]})}function m(e){let{className:t,inset:s,...r}=e;return(0,n.jsx)(a.JU,{"data-slot":"dropdown-menu-label","data-inset":s,className:(0,i.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...r})}function h(e){let{className:t,...s}=e;return(0,n.jsx)(a.wv,{"data-slot":"dropdown-menu-separator",className:(0,i.cn)("bg-border -mx-1 my-1 h-px",t),...s})}},51983:(e,t,s)=>{"use strict";s.d(t,{d:()=>g});var n=s(54568),a=s(25404),r=s(62339),i=s(35708),o=s(31184),l=s(85462),d=s(71),c=s(27736),u=s(19664),m=s.n(u),h=s(27541),p=s(31664),f=s(47781),v=s(98809);function g(e){var t,s,u,g;let{variant:x="default"}=e,b=(0,h.useRouter)(),{data:_,isPending:w,refetch:j}=p.y.useSession(),y=(0,v.n6)(),{data:N}=(0,c.I)(y.user.get.queryOptions(void 0,{enabled:!!(null==_?void 0:_.user)})),A="landing"===x?"topbar__cta topbar__cta--account at-home-user-menu__trigger":"at-home-topbar__cta at-home-topbar__cta--account at-home-user-menu__trigger";if(w)return(0,n.jsx)("span",{className:A,"aria-hidden":!0});if(!(null==_?void 0:_.user))return"landing"===x?(0,n.jsx)(m(),{href:"/login",className:"topbar__cta",children:"Sign in"}):(0,n.jsx)(m(),{href:"/login",className:"at-home-topbar__cta",children:"Member sign in"});let k=_.user,C=(null==N||null==(s=N.metadata)||null==(t=s.firstName)?void 0:t.trim())||(null==(u=k.name)?void 0:u.split(" ")[0])||"Account",S=(null==N?void 0:N.image)||k.image||null,E=async()=>{let{error:e}=await p.y.signOut({fetchOptions:{query:{disableCookieCache:!0}}});if(e)return void console.error("Error signing out:",e);j(),b.push("/")};return(0,n.jsxs)(f.rI,{children:[(0,n.jsx)(f.ty,{asChild:!0,children:(0,n.jsxs)("button",{type:"button",className:A,children:[S&&(0,n.jsx)("img",{src:S,alt:"",className:"landing"===x?"topbar__avatar":"at-home-topbar__avatar"}),(0,n.jsx)("span",{children:C}),(0,n.jsx)(a.A,{size:14,"aria-hidden":!0})]})}),(0,n.jsxs)(f.SQ,{align:"end",sideOffset:8,className:"min-w-56 rounded-lg",children:[(0,n.jsx)(f.lp,{children:(0,n.jsxs)("div",{className:"flex flex-col leading-tight",children:[(0,n.jsx)("span",{className:"font-medium truncate",children:k.name}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground truncate",children:k.email})]})}),(0,n.jsx)(f.mB,{}),["admin","analyst"].includes(null!=(g=k.role)?g:"")&&(0,n.jsx)(f._2,{asChild:!0,children:(0,n.jsxs)(m(),{href:"/admin",children:[(0,n.jsx)(r.A,{}),"Admin Dashboard"]})}),(0,n.jsx)(f._2,{asChild:!0,children:(0,n.jsxs)(m(),{href:"/messages",children:[(0,n.jsx)(i.A,{}),"Messages"]})}),(0,n.jsx)(f._2,{asChild:!0,children:(0,n.jsxs)(m(),{href:"/billing",children:[(0,n.jsx)(o.A,{}),"Billing"]})}),(0,n.jsx)(f._2,{asChild:!0,children:(0,n.jsxs)(m(),{href:"/profile",children:[(0,n.jsx)(l.A,{}),"Settings"]})}),(0,n.jsx)(f.mB,{}),(0,n.jsxs)(f._2,{onClick:E,children:[(0,n.jsx)(d.A,{}),"Log out"]})]})]})}},55302:()=>{},70150:(e,t,s)=>{"use strict";s.d(t,{Kj:()=>i,VC:()=>d,i4:()=>c,u1:()=>l});let n="closer_newsletter_popup",a=[14,90],r={count:0,lastShownAt:0,subscribed:!1};function i(){try{let e=window.localStorage.getItem(n);if(!e)return r;let t=JSON.parse(e);return{count:"number"==typeof t.count?t.count:0,lastShownAt:"number"==typeof t.lastShownAt?t.lastShownAt:0,subscribed:!0===t.subscribed}}catch(e){return r}}function o(e){try{window.localStorage.setItem(n,JSON.stringify(e))}catch(e){}}function l(e,t){if(e.subscribed||e.count>=3)return!1;if(0===e.count)return!0;let s=a[e.count-1];return void 0!==s&&t-e.lastShownAt>=864e5*s}function d(){let e=i();o({...e,count:e.count+1,lastShownAt:Date.now()})}function c(){o({...i(),subscribed:!0})}},97337:()=>{},98809:(e,t,s)=>{"use strict";s.d(t,{_K:()=>r,n6:()=>a,xh:()=>n});let{TRPCProvider:n,useTRPC:a,useTRPCClient:r}=(0,s(44225).dW)()}}]);

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.