2025-01-14 06:10:36 +00:00
|
|
|
"use strict";(()=>{var e={};e.id=8810,e.ids=[3220,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},94212:(e,t,r)=>{r.r(t),r.d(t,{config:()=>C,default:()=>N,getServerSideProps:()=>L,getStaticPaths:()=>O,getStaticProps:()=>w,reportWebVitals:()=>q,routeModule:()=>k,unstable_getServerProps:()=>R,unstable_getServerSideProps:()=>T,unstable_getStaticParams:()=>Q,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>P,default:()=>A,getServerSideProps:()=>D});var n=r(63865),a=r(9455),o=r(30671),i=r(5583),c=r(19796),l=r(8732),u=r(82015),p=r.n(u),d=r(1013),m=r(91258),g=r(57660);function f(){let{query:e,invitingUser:t}=p().useContext(P);return(0,l.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,l.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,l.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:[t?.first_name&&(0,l.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,l.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,l.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,l.jsx)(g.A,{query:e})]})]})}r(92702),r(77047);var h=r(71934);let x=require("sanitize-html");var _=r.n(x);let S={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}};var y=r(43651),j=r(55511),v=r(79428),b=r(16175);r(46169);var E=r(32572);r(41939);let P=p().createContext({});function A(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:r}),(0,l.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[n,a]=p().useState(null);return e.query?.invite?(0,l.jsx)(E.A,{}):(0,l.jsx)(d.A,{head:s,children:(0,l.jsx)(P.Provider,{value:{user:n,query:e.query,invitingUser:e.invitingUser},children:(0,l.jsx)("main",{children:(0,l.jsx)(f,{})})})})}async function D({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let N=(0,o.M)(s,"default"),w=(0,o.M)(s,"getStaticProps"),O=(0,o.M)(s,"getStaticPaths"),L=(0,o.M)(s,"getServerSideProps"),C=(0,o.M)(s,"config"),q=(0,o.M)(s,"reportWebVitals"),I=(0,o.M)(s,"unstable_getStaticProps"),M=(0,o.M)(s,"unstable_getStaticPaths"),Q=(0,o.M)(s,"unstable_getStaticParams"),R=(0,o.M)(s,"unstable_getServerProps"),T=(0,o.M)(s,"unstable_getServerSideProps"),k=new n.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:s})},10621:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732);function n({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},32572:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var n=r(16757);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.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,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:
|