PageSourceSearch

https://app.gluroo.com/_next/static/chunks/pages/oldInvite-0123eac712c4f252.js

js gluroo.com collected 2026-10-01 14:20:54 UTC 8,254 bytes, 1 lines download raw bytes

1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f395f2e9-4b88-4e47-ae69-450c4f60151d",e._sentryDebugIdIdentifier="sentry-dbid-f395f2e9-4b88-4e47-ae69-450c4f60151d")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[672],{5377:(e,r,t)=>{"use strict";t.d(r,{d:()=>c});var o=t(14232),a=t(83446),i=t(8259),s=t(31294),n=t(93519),l=t(16674);function c(e){let{theme:r}=(0,l.UQ)(),t=(0,n.NU)();return(0,o.useMemo)(()=>{var o,n;let l,c;return o=r.direction,n={...t,...e},l=e=>{var r;let t;return{...n,...e,position:(r=e?.position??n?.position,t=r??"bottom",({"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}})[t]?.[o]??t)}},(c=e=>{let r=l(e),t=(0,i.q)(r);return s.Z.notify(t,r)}).update=(e,r)=>{s.Z.update(e,l(r))},c.promise=(e,r)=>{let t=c({...r.loading,status:"loading",duration:null});e.then(e=>c.update(t,{status:"success",duration:5e3,...(0,a.J)(r.success,e)})).catch(e=>c.update(t,{status:"error",duration:5e3,...(0,a.J)(r.error,e)}))},c.closeAll=s.Z.closeAll,c.close=s.Z.close,c.isActive=s.Z.isActive,c},[e,r.direction,t])}},24747:(e,r,t)=>{"use strict";t.d(r,{c:()=>c});var o=t(37876),a=t(82386),i=t(75255),s=t(89461),n=t(86344),l=t(56044);let c=(0,s.R)(function(e,r){let{borderLeftWidth:t,borderBottomWidth:s,borderTopWidth:c,borderRightWidth:d,borderWidth:u,borderStyle:h,borderColor:g,...p}=(0,n.V)("Divider",e),{className:m,orientation:f="horizontal",__css:b,...v}=(0,a.M)(e);return(0,o.jsx)(l.B.hr,{ref:r,"aria-orientation":f,...v,__css:{...p,border:"0",borderColor:g,borderStyle:h,...{vertical:{borderLeftWidth:t||d||u||"1px",height:"100%"},horizontal:{borderBottomWidth:s||c||u||"1px",width:"100%"}}[f],...b},className:(0,i.cx)("chakra-divider",m)})});c.displayName="Divider"},30046:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>_,default:()=>w});var o=t(37876),a=t(11913),i=t(91921),s=t(59803),n=t(38890),l=t(79736),c=t(84506),d=t(5377),u=t(25162),h=t(69345),g=t(14232),p=t(22029);let m=e=>{let{t:r}=(0,a.Bd)(),[t,s]=e.state,{colorMode:n,themeColors:l}=(0,p.FG)(),c=(0,d.d)();return(0,o.jsx)(u.S,{borderColor:l.primary7,my:2,isChecked:"agreed"==t,onChange:o=>{!1==t&&null!=e.url&&e.requireRead?c({title:r("Read the propsShortNamePropsName first",{propsShortNamePropsName:e.shortName??e.name})}):s(!!o.target.checked&&"agreed")},children:(0,o.jsxs)(i.E,{fontSize:16,fontFamily:"'DM Sans', sans-serif",opacity:e.opacity,children:[e.description??"I have read, understand, and agree to the ",e.url?(0,o.jsx)(h.N,{target:"_blank",onClick:()=>s("read"),href:e.url,color:l.primary7,textDecoration:"underline",children:e.name}):null]})})};var f=t(46748),b=t(59040),v=t(78007),y=t(29781);let j=(e,r={})=>{console.log("logMessage: "+e),fetch("/api/logger",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({m:e})}).catch(b.kg)};var x=t(10553),I=t(89099),k=t(76328),_=!0;let w=e=>{let{t:r}=(0,a.Bd)(),t=(0,I.useRouter)();f.Rj.debug("Invite page: router.asPath = "+t.asPath);let{session:d,user:u,status:h}=(0,y.Ay)({noRedirect:!0}),{dashOnly:_,jwt:w,inviterName:A}=t.query,{colorMode:S,themeColors:E}=(0,p.FG)(),{jwtInvite:C,groupId:N,inviterName:D,inviteeName:G,exp:R}=e,[U]=(0,c.QW)({context:{headers:{authorization:`Bearer ${C}`}}}),[P,{data:T,error:O}]=(0,c.Q_)({context:{headers:{authorization:`Bearer ${C}`}}}),{uuid:L,platform:M}=d?.account&&d?.profile?(0,k.v)(d?.account,d.profile):{};L&&M||f.Rj.error("could not get uuid or platform from gsession's account/profile, gsession = ",d);let B=(0,g.useCallback)(async(e,r)=>{j("Invite");let o=u?.realUserId;f.Rj.debug((0,f.gs)(r)+"acceptInvitation: userId="+o);try{if(!o)throw Error("cannot get user?.userId for accepting invitation and adding dashuser to group");let{data:e,errors:a}=await U({variables:{userId:o,groupId:r}});j("data = "+JSON.stringify(e)),e?.addDashUserToGroupGetJwt?.jwt,t.push(`/GluCrew/${r??0}`).catch(b.kg)}catch(t){f.Rj.debug("error adding dash user to group:",{err:t,userId:o,groupId:r,jwtInvite:e})}},[U,t,u?.realUserId]),W=(0,g.useCallback)(async e=>{(0,x.signIn)("GOOGLE"==e?"google":"apple",{callbackUrl:"/GluCrew/"+N}).catch(b.kg)},[N]),[$,z]=(0,g.useState)(!1),F=(0,g.useState)(!1),J=(0,g.useState)(!1),Z=(0,g.useState)(!1),q=(0,g.useState)(!1),Q=(0,g.useCallback)(async()=>
1{if(f.Rj.info("createDashAccount, gession = ",d),z(!1),!d)return void f.Rj.error("gsession is null, cannot create dash account");let e=d.profile?.name,r=d?.profile?.email,t=d.user?.image,o="LIMITED";if(d.account&&d.profile){let a=d.user?.email;if(e&&r&&L&&M){f.Rj.info("registerDashUserGroupMutate - jwtInvite = "+C);let{data:i,errors:s}=await P({variables:{name:e,emailAddress:r,photoUrl:t,type:"EDS",permissions:o,uuid:L,platform:M,realEmail:a,groupId:N,jwtInvite:C}}),n=i?.registerDashUserGroup?.jwt;j("registerDashUserGroupMutate - new jwt = ",n),d.pgJwt=n,s&&f.Rj.info("error registering dash user:",{errors:s})}else f.Rj.info("Cannot register Dash group - missing info",{name:e,emailAddress:r,photoUrl:t,type:"EDS",permissions:o,uuid:L,platform:M,realEmail:a,groupId:N,jwtInvite:C})}},[N,d,C,M,P,L]);return("unauthenticated"==h&&(f.Rj.debug("Invite, unauthenticated -- forcing signIn"),(0,x.signIn)(void 0,{callbackUrl:-1==t.asPath.indexOf("/auth/sign")?t.asPath:"/"},{invitation:t.asPath}).catch(b.kg)),_&&C)?$&&!T?.registerDashUserGroup?.userId?(0,o.jsxs)(s.s,{direction:"column",ml:5,mt:10,children:[(0,o.jsxs)(i.E,{fontWeight:"bold",children:[r("You must read understand and accept each of these"),": "]}),(0,o.jsx)(m,{description:r("I am at least 18 years old"),state:F,name:"Age Requirement"}),(0,o.jsx)(m,{url:"https://gluroo.com/eula.html",shortName:"EULA",name:"EULA (End User License Agreement)",state:J}),(0,o.jsx)(m,{url:"https://gluroo.com/privacy.html",name:"Privacy Policy",state:Z}),(0,o.jsx)(m,{url:"https://gluroo.com/medicalWarnings.html",name:"Medical Warnings",state:q}),(0,o.jsx)(n.$,{mt:2,disabled:!1,onClick:Q,backgroundColor:E.primary7,color:E.background,_hover:{bg:E.primary5},alignSelf:"flex-start",children:r("I Agree Create my Gluroo Dash Account")})]}):C&&(u?.dashUserType==null||u?.dashUserType=="BASIC_USER")?(f.Rj.debug("invite",{user:u,session:d,status:h}),(0,o.jsx)(s.s,{direction:"column",ml:5,mt:10,children:T?.registerDashUserGroup?.userId?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.E,{children:[r("Dash Account created for"),d?.user?.email]}),(0,o.jsx)(n.$,{mt:2,onClick:()=>M&&W(M),backgroundColor:E.primary7,alignSelf:"flex-start",children:r("Now Click to Go back and Sign in to the Same Account Again")})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.E,{my:2,children:[r("You"),d?.user?.email?" "+d?.user?.email:""," ",r("are not yet a Gluroo web application user")]}),(0,o.jsx)(n.$,{mt:2,onClick:()=>z(!0),backgroundColor:E.primary7,alignSelf:"flex-start",color:E.background,_hover:{bg:E.primary5},children:r("Sign in Next to Create a Free Gluroo Web App Account")})]})})):(0,o.jsx)(v.A,{whichScreen:"INVITE",children:(0,o.jsxs)(s.s,{direction:"column",ml:5,mt:10,children:[(0,o.jsxs)(i.E,{children:[r("Invitation from"),D,r("to"),G," (",N,")"]}),(0,o.jsx)(l.z,{children:(0,o.jsx)(n.$,{mt:2,onClick:()=>B(C,N),backgroundColor:E.primary7,color:E.background,_hover:{bg:E.primary5},children:r("Accept")})})]})}):(0,o.jsx)(v.A,{whichScreen:"INVITE",children:(0,o.jsx)(i.E,{ml:10,mt:10,fontWeight:"bold",children:r("Bad or corrupt invitation check the link or ask them to resend")})})}},42764:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/oldInvite",function(){return t(30046)}])},76328:(e,r,t)=>{"use strict";t.d(r,{v:()=>o});let o=(e,r)=>{let t,o;return e?.provider=="google"&&r?.email_verified&&r?.email?(t=r?.email,o="GOOGLE"):e?.provider=="apple"&&e?.providerAccountId!=null?(t=e.providerAccountId,o="APPLE"):e?.provider==="email"&&e?.providerAccountId&&(t=e.providerAccountId,o="EMAIL_ONLY"),{uuid:t,platform:o}}}},e=>{e.O(0,[3371,1167,8690,4355,4386,6472,6514,8236,3826,2746,5162,9219,8007,4506,636,6593,8792],()=>e(e.s=42764)),_N_E=e.O()}]);

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.