<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(9584)}])},9584:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(5893),s=n(9027),i=n(2314),a=n(498),u=n(5945),c=n(7837),o=n(2931),l=n(2729),p=n(6794),d=n(8105),h=n(9521);function f(){let e=(0,l._)(["\n  ","\n"]);return f=function(){return e},e}let g=h.ZP.img(f(),e=&gt;(0,p.Z)((0,d.Z)(e)));function x(e){let{innerRef:t,src:n,...s}=e;return(0,r.jsx)(g,{ref:t,src:n,...s})}var m=n(5317);function Z(e){var t;let{user:n,size:s,isSelf:i=!1}=e,a=(n.admin||null===(t=n.customClaims)||void 0===t||t.admin,"secondary"),u="".concat(a,"-fg");return n.photoURL?(0,r.jsx)(x,{src:n.photoURL,presets:[s],radius:"50%",border:i?"2px":0,palette:u}):(0,r.jsx)(o.Z,{presets:[s],path:m.wJe,palette:u})}var j=n(1082),w=n(6100),y=n(681),b=n(891);function S(){let e=(0,l._)(["\n  ","\n"]);return S=function(){return e},e}let _=h.ZP.div(S(),e=&gt;(0,p.Z)((0,d.Z)(e)));function C(e){let{innerRef:t,children:n,presets:s=[],...i}=e;return(0,r.jsx)(_,{ref:t,presets:["row",...s],...i,children:n})}var N=n(7132),q=n(1664),v=n.n(q),O=n(1163),P=n(7294);function k(){let e=(0,O.useRouter)(),{auth:t,signOut:n}=(0,s.Z)(),i=async()=&gt;{await e.push("/login"),await n()};return(0,r.jsxs)(b.Z,{presets:["screen"],children:[(0,r.jsxs)(b.Z,{presets:["section"],children:[(0,r.jsx)(N.Z,{palette:"accent-fg",fontWeight:500,fontSize:"1rem",children:"When"}),(0,r.jsx)(N.Z,{children:"Sep 30th 2023 | 12pm - 3:30pm"})]}),(0,r.jsxs)(b.Z,{presets:["section"],children:[(0,r.jsx)(N.Z,{palette:"accent-fg",fontWeight:500,fontSize:"1rem",children:"Where"}),(0,r.jsx)(v(),{href:"https://swingers.club/us/locations/nyc/venues/nyc",target:"_blank",children:(0,r.jsx)(N.Z,{children:"Swingers Nomad"})})]}),(0,r.jsxs)(b.Z,{presets:["section"],children:[(0,r.jsx)(N.Z,{palette:"accent-fg",fontWeight:500,fontSize:"1rem",children:"Details"}),(0,r.jsx)(N.Z,{children:"On us"}),(0,r.jsx)(N.Z,{children:"Attire: fly"}),(0,r.jsx)(N.Z,{children:"No guests"})]}),(0,r.jsx)(C,{height:"1px",palette:"lightgrey-bg",margin:"24px 0px",width:"100%"}),(0,r.jsx)(z,{title:"People who love us",subtitle:"(and are coming to brunch)",response:"yes"}),(0,r.jsx)(C,{height:"1px",palette:"lightgrey-bg",margin:"24px 0px",width:"100%"}),(0,r.jsx)(z,{title:"People who hate us",subtitle:"(and are not coming to brunch)",palette:"accent-fg",response:"no"}),(0,r.jsx)(C,{height:"1px",palette:"lightgrey-bg",margin:"24px 0px",width:"100%"}),(0,r.jsx)(N.Z,{palette:"accent-fg",fontWeight:500,fontSize:"1rem",children:"Please join a group by Sep 23rd, 2023"}),(0,r.jsx)(C,{height:"1px",palette:"lightgrey-bg",margin:"24px 0px",width:"100%"}),(0,r.jsxs)(b.Z,{placeSelf:"center",placeContent:"center",placeItems:"center",children:[(0,r.jsxs)(C,{children:[(0,r.jsx)(Z,{user:t,size:"medium"}),(0,r.jsx)(N.Z,{children:t.displayName})]}),(0,r.jsx)(y.Z,{label:"Sign out",palette:"secondary-fg",padding:"4px 16px",radius:"16px",minHeight:0,onClick:i})]})]})}function z(e){let{title:t,subtitle:n,response:l,palette:p="primary-bg"}=e,d=(0,O.useRouter)(),{auth:h}=(0,s.Z)(),{usersQuery:f}=function(){let e=(0,u.NL)(),t=(0,c.a)({queryKey:["users"],queryFn:async()=&gt;(0,a.Z)("".concat(i.Oq,"/get-users"),{})}),n=async t=&gt;{await (0,a.Z)("".concat(i.Oq,"/create-user"),{...t}),await e.refetchQueries(["users"])},r=async(t,n)=&gt;{await (0,a.Z)("".concat(i.Oq,"/update-user"),{uid:t,updates:n}),await e.refetchQueries(["users"])},s=async(t,n)=&gt;{await (0,a.Z)("".concat(i.Oq,"/update-user-claims"),{uid:t,claims:n}),await e.refetchQueries(["users"])},o=async t=&gt;{await (0,a.Z)("".concat(i.Oq,"/delete-user"),{uid:t}),await e.refetchQueries(["users"])};return{usersQuery:t,createUser:n,updateUser:r,updateUserClaims:s,deleteUser:o}}(),{responsesQuery:g,setResponse:x}=function(){let e=(0,u.NL)(),t=(0,c.a)({queryKey:["responses"],queryFn:async()=&gt;{let e=(0,w.IO)((0,w.hJ)(j.RZ,"responses")),t=await (0,w.PL)(e),n=t.docs.map(e=&gt;e.data());return n}}),n=async(t,n)=&gt;{let r=(0,w.JU)(j.RZ,"responses/".concat(t));await (0,w.pl)(r,{...n,uid:t,updated_at:new Date().getTime()},{merge:!0}),await e.refetchQueries({queryKey:["responses"]})};return{responsesQuery:t,setResponse:n}}(),S=(0,P.useMemo)(()=&gt;{if(!g.data)return null;let e=g.data.find(e=&gt;e.uid===h.uid)||{};return e.response},[h,g]),_=async()=&gt;{if(!h.photoURL||!h.displayName){await d.push("/welcome");return}await x(h.uid,{response:l})},q=(0,P.useMemo)(()=&gt;{if(!g.data||!f.data)return[];let e=g.data.filter(e=&gt;e.response===l).map(e=&gt;e.uid);return e.map(e=&gt;f.data.find(t=&gt;t.uid===e))},[g,f]),v=g.isLoading||f.isLoading;return v?(0,r.jsx)(o.Z,{path:m.CEZ,presets:["large"],palette:"accent-fg",spin:1}):(0,r.jsxs)(b.Z,{presets:["section"],children:[(0,r.jsx)(N.Z,{fontSize:"1.5rem",fontWeight:500,colors:{foreground:p.split("-")[0]},children:t}),(0,r.jsx)(N.Z,{fontSize:"1rem",colors:{foreground:p.split("-")[0]},children:n}),S&amp;&amp;S===l?null:(0,r.jsx)(y.Z,{label:S?"Switch to this group":"Join this group",palette:p,padding:"4px 16px",radius:"16px",minHeight:0,onClick:_,width:"auto"}),(0,r.jsx)(C,{placeSelf:"stretch",gridColumns:"repeat(4, 1fr)",placeContent:"center",placeItems:"center",gridAutoRows:"auto",flow:"dense",children:q.map(e=&gt;(0,r.jsx)(Z,{user:e,size:"large",isSelf:h.uid==e.uid},e.uid))})]})}},681:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2729),s=n(5893),i=n(6794),a=n(8105),u=n(2931),c=n(5317),o=n(7294),l=n(9521);function p(){let e=(0,r._)(["\n  ","\n"]);return p=function(){return e},e}let d=l.ZP.button(p(),e=&gt;(0,i.Z)((0,a.Z)(e)));function h(e){let{innerRef:t,label:n,iconPath:r,iconProps:i,onClick:a,disabled:l,presets:p=[],...h}=e,[f,g]=(0,o.useState)(!1),x=[...!n&amp;&amp;r?["button","iconOnlyButton"]:["button"],...p];return(0,s.jsxs)(d,{ref:t,disabled:f||l,presets:x,gridColumns:n&amp;&amp;(r||f)?"auto minmax(0,1fr)":"minmax(0,1fr)",onClick:e=&gt;{a&amp;&amp;("AsyncFunction"===a[Symbol.toStringTag]?(g(!0),a(e).finally(()=&gt;g(!1))):a(e))},...h,children:[f?(0,s.jsx)(u.Z,{path:c.CEZ,spin:1,...i}):null,r&amp;&amp;!f?(0,s.jsx)(u.Z,{path:r,...i}):null,n]})}}},function(e){e.O(0,[662,774,888,179],function(){return e(e.s=8312)}),_N_E=e.O()}]);</pre></body></html>