(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8810],{7900:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return n(6660)}])},4329:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4848);n(6540);var s=n(1710);function a(){return(0,r.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,r.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,r.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,r.jsx)(s.A,{width:"25px",position:"relative"})})]})})}},9625:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4848),s=n(3430),a=n(6540);function i(e){var t;let{pageTitle:n,pageDescription:i,pagePathname:c,aceEditor:l}=e,{DSQL_HOST:o}=(null===(t=a.useContext(s.AppContext).pageProps)||void 0===t?void 0:t.appData)||{DSQL_HOST:"https://datasquirel.com"};return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:o+c}),(0,r.jsx)("meta",{property:"og:url",content:o+c}),(0,r.jsx)("meta",{itemProp:"url",content:o+c}),(0,r.jsx)("meta",{name:"twitter:url",content:o+c}),(0,r.jsx)("meta",{property:"og:title",content:n}),(0,r.jsx)("meta",{property:"og:description",content:i}),(0,r.jsx)("meta",{itemProp:"name",content:n}),(0,r.jsx)("meta",{itemProp:"description",content:i}),(0,r.jsx)("meta",{name:"twitter:title",content:n}),(0,r.jsx)("meta",{name:"twitter:description",content:i}),l&&(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,r.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},1212:(e,t,n)=>{"use strict";n.d(t,{B:()=>r});let r={OneTimeEmail:"one-time-login-email",User:"user",CSRF:"csrf",CurrentQueue:"current_queue"}},6660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CreateAccountContext:()=>m,__N_SSP:()=>d,default:()=>x});var r=n(4848),s=n(6540),a=n(8883),i=n(9625),c=n(4060);function l(){let{query:e,invitingUser:t}=s.useContext(m);return(0,r.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,r.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[(null==t?void 0:t.first_name)&&(0,r.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,r.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,r.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,r.jsx)(c.A,{query:e})]})]})}var o=n(9020),u=n(4329),d=!0;let m=s.createContext({});function x(e){var t;let n="Create Account | Datasquirel",c="Create a FREE account and start storing data.",d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{name:"description",content:c}),(0,r.jsx)(i.A,{pageTitle:n,pageDescription:c,pagePathname:"/"})]}),[x,p]=s.useState(null);return(s.useEffect(()=>{var t;(null===(t=e.query)||void 0===t?void 0:t.invite)&&!e.isAuthCookie&&setTimeout(()=>{(0,o.A)("/api/addAdminUserUser",{method:"POST",body:{query:e.query}},!0).then(t=>{var n;window.location.pathname="/admin/".concat(null===(n=e.user)||void 0===n?void 0:n.id,"/users")})},1e3)},[]),null===(t=e.query)||void 0===t?void 0:t.invite)?(0,r.jsx)(u.A,{}):(0,r.jsx)(a.A,{head:d,children:(0,r.jsx)(m.Provider,{value:{user:x,query:e.query,invitingUser:e.invitingUser},children:(0,r.jsx)("main",{children:(0,r.jsx)(l,{})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1335,4060,636,6593,8792],()=>t(7900)),_N_E=e.O()}]);