(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7398],{93125:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return n(18214)}])},26478:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(85893),a=(n(67294),n(95264));function s(){return(0,i.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,i.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,i.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,i.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,i.jsx)(a.Z,{width:"25px",position:"relative"})})]})})}},18214:function(e,t,n){"use strict";n.r(t),n.d(t,{CreateAccountContext:function(){return m},__N_SSP:function(){return f},default:function(){return h}});var i=n(828),a=n(85893),s=n(67294),r=n(56217),c=n(24097),l=n(65114);function o(e){var t=s.useContext(m),n=t.query,i=t.invitingUser;return(0,a.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,a.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,a.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===i||void 0===i?void 0:i.first_name)&&(0,a.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,a.jsxs)("b",{children:[i.first_name," ",i.last_name," (",i.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,a.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,a.jsx)(l.Z,{query:n})]})]})}n(64017),n(95264);var u=n(86729),d=n(26478),x={},f=!0,m=s.createContext(x);function h(e){var t,n="Create Account | Datasquirel",l="Create a FREE account and start storing data.",x=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:n}),(0,a.jsx)("meta",{name:"description",content:l}),(0,a.jsx)(c.Z,{pageTitle:n,pageDescription:l,pagePathname:"/"})]}),f=(0,i.Z)(s.useState(null),2),h=f[0];f[1];return s.useEffect((function(){var t;(null===(t=e.query)||void 0===t?void 0:t.invite)&&!e.isAuthCookie&&setTimeout((function(){(0,u.Z)("/api/addAdminUserUser",{method:"POST",body:{query:e.query}},!0).then((function(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,a.jsx)(d.Z,{}):(0,a.jsx)(r.Z,{head:x,children:(0,a.jsx)(m.Provider,{value:{user:h,query:e.query,invitingUser:e.invitingUser},children:(0,a.jsx)("main",{children:(0,a.jsx)(o,{})})})})}}},function(e){e.O(0,[8374,5114,9774,2888,179],(function(){return t=93125,e(e.s=t);var t}));var t=e.O();_N_E=t}]);