This commit is contained in:
Benjamin Toby
2025-01-14 16:27:08 +01:00
parent 1564c2811a
commit 81cf010cb5
485 changed files with 1432 additions and 1297 deletions
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{9540:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(1024)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},1024:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9540)),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336],{9540:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return r(1024)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},1024:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(8883),r(9625),r(3434)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9540)),_N_E=t.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{9852:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(5529)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5529:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(4252),r(9625),r(3434),r(9020)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9852)),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[421],{9852:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/500",function(){return r(5529)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},5529:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(8883),r(9625),r(3434),r(9020)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9852)),_N_E=t.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{4088:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(492)}])},492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(4252),n(9625),n(3434),n(6369),n(817);let o=u.createContext({});function a(){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[3298,636,6593,8792],()=>e(4088)),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{4088:(t,e,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/about",function(){return n(492)}])},492:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HomepageContext:()=>o,default:()=>a}),n(4848);var u=n(6540);n(8883),n(9625),n(3434),n(6369),n(817);let o=u.createContext({});function a(){return u.useEffect(()=>{window.location.href="https://datasquirel.com/about"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[3298,636,6593,8792],()=>e(4088)),_N_E=t.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076],{6892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/edit-database",function(){return t(8708)}])},8064:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);function r(e){var a;let{database:t,user:r}=e,d=null===(a=t.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),l="/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:l,target:"_blank",className:"query-url",children:d})})]})})}t(6540)},7220:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},8708:(e,a,t)=>{"use strict";t.r(a),t.d(a,{EditDatabaseContext:()=>b,__N_SSP:()=>j,default:()=>v});var s=t(4848),r=t(6540),d=t(8181),l=t(2592),n=t(5844),i=t(3647),c=t(1710),h=t(7168),u=t(3605);function x(){let{user:e,dbImage:a,setDbImage:t,database:d}=r.useContext(b),[l,n]=r.useState(!1);return r.useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[l&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),e&&a?(0,s.jsx)(h.A,{user:e,dbImage:a,setDbImage:t,database:d,setLoading:n}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),e&&a&&t?(0,s.jsx)(u.A,{user:e,dbImage:a,setDbImage:t,database:d}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}var o=t(8064);function m(){let{database:e,user:a}=r.useContext(b);return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:null==e?void 0:e.db_name})]})]}),(0,s.jsx)(i.A,{user:a})]}),(null==e?void 0:e.active_clone)&&a?(0,s.jsx)(o.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(x,{})]})}var p=t(5211),j=!0;let b=r.createContext({});function v(e){let{user:a,database:t,query:n}=e,i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,h]=r.useState(t.db_image);return(0,s.jsx)(b.Provider,{value:{user:a,database:t,dbImage:c,setDbImage:h},children:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{head:i,user:a,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:a}),children:(0,s.jsx)(m,{})}),(0,s.jsx)(l.A,{setDbImage:h})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,8261,7391,8076,3867,636,6593,8792],()=>a(6892)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4076],{6892:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/[single]/edit-database",function(){return t(8708)}])},8064:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var s=t(4848);function r(e){var a;let{database:t,user:r}=e,d=null===(a=t.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),l="/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:l,target:"_blank",className:"query-url",children:d})})]})})}t(6540)},4839:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7290:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4266:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},3419:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},6051:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});let s=(0,t(5737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},8708:(e,a,t)=>{"use strict";t.r(a),t.d(a,{EditDatabaseContext:()=>b,__N_SSP:()=>j,default:()=>v});var s=t(4848),r=t(6540),d=t(8181),l=t(2592),n=t(5844),i=t(3647),c=t(1710),h=t(7168),u=t(3605);function x(){let{user:e,dbImage:a,setDbImage:t,database:d}=r.useContext(b),[l,n]=r.useState(!1);return r.useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[l&&(0,s.jsx)(c.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),e&&a?(0,s.jsx)(h.A,{user:e,dbImage:a,setDbImage:t,database:d,setLoading:n}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),e&&a&&t?(0,s.jsx)(u.A,{user:e,dbImage:a,setDbImage:t,database:d}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}var o=t(8064);function m(){let{database:e,user:a}=r.useContext(b);return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:null==e?void 0:e.db_name})]})]}),(0,s.jsx)(i.A,{user:a})]}),(null==e?void 0:e.active_clone)&&a?(0,s.jsx)(o.A,{database:e,user:a}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(x,{})]})}var p=t(5211),j=!0;let b=r.createContext({});function v(e){let{user:a,database:t,query:n}=e,i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,h]=r.useState(t.db_image);return(0,s.jsx)(b.Provider,{value:{user:a,database:t,dbImage:c,setDbImage:h},children:(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)(d.A,{head:i,user:a,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:a}),children:(0,s.jsx)(m,{})}),(0,s.jsx)(l.A,{setDbImage:h})]})})}}},e=>{var a=a=>e(e.s=a);e.O(0,[6428,1335,7391,8076,8319,6272,636,6593,8792],()=>a(6892)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{6108:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return a(9930)}])},5844:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(4848),l=a(7216);function n(){return(0,t.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,t.jsx)(l.A,{})})}a(6540)},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(5737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9930:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AddDatabaseContext:()=>j,__N_SSP:()=>m,default:()=>b});var t=a(4848),l=a(6540),n=a(8181),d=a(5844),r=a(3647),i=a(1710),c=a(7168),u=a(3605);function x(){let{user:e,dbImage:s,setDbImage:a,query:n}=l.useContext(j);if(!e)return(0,t.jsx)(l.Fragment,{});let[d,r]=l.useState(null),[x,o]=l.useState(!1);return(0,t.jsx)("section",{className:"card",children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[x&&(0,t.jsx)(i.A,{}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&s&&a&&(0,t.jsx)(c.A,{user:e,dbImage:s,setDbImage:a,setLoading:o,query:n})]}),e&&s&&a&&(0,t.jsx)(u.A,{user:e,dbImage:s,setDbImage:a})]})})}function o(){let{query:e,duplicateDb:s,user:a}=l.useContext(j),n=(null==e?void 0:e.duplicate)?(0,t.jsxs)("span",{children:["Duplicate"," ",(0,t.jsx)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/databases/").concat(null==s?void 0:s.db_slug),target:"_blank",children:null==s?void 0:s.db_name})," ","Database"]}):"Add A New Database";return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("h1",{className:"text-3xl m-0",children:n})]}),(0,t.jsx)(r.A,{user:a})]}),(0,t.jsx)(x,{})]})}var h=a(2592),m=!0;let j=l.createContext({});function b(e){let{user:s,databases:a,query:d,duplicateDb:r}=e,i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Add Database | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,u]=l.useState("/images/database-placeholder.png");return(0,t.jsx)(j.Provider,{value:{user:s,databases:a,dbImage:c,setDbImage:u,query:d,duplicateDb:r},children:(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)(n.A,{head:i,user:s,children:(0,t.jsx)(o,{})}),(0,t.jsx)(h.A,{setDbImage:u})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,3867,636,6593,8792],()=>s(6108)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9718],{6108:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/databases/add-database",function(){return a(9930)}])},5844:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(4848),l=a(7216);function n(){return(0,t.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,t.jsx)(l.A,{})})}a(6540)},4909:(e,s,a)=>{"use strict";a.d(s,{A:()=>t});let t=(0,a(5737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9930:(e,s,a)=>{"use strict";a.r(s),a.d(s,{AddDatabaseContext:()=>j,__N_SSP:()=>m,default:()=>b});var t=a(4848),l=a(6540),n=a(8181),d=a(5844),r=a(3647),i=a(1710),c=a(7168),u=a(3605);function x(){let{user:e,dbImage:s,setDbImage:a,query:n}=l.useContext(j);if(!e)return(0,t.jsx)(l.Fragment,{});let[d,r]=l.useState(null),[x,o]=l.useState(!1);return(0,t.jsx)("section",{className:"card",children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[x&&(0,t.jsx)(i.A,{}),(0,t.jsxs)("div",{className:"flex-col items-start",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),e&&s&&a&&(0,t.jsx)(c.A,{user:e,dbImage:s,setDbImage:a,setLoading:o,query:n})]}),e&&s&&a&&(0,t.jsx)(u.A,{user:e,dbImage:s,setDbImage:a})]})})}function o(){let{query:e,duplicateDb:s,user:a}=l.useContext(j),n=(null==e?void 0:e.duplicate)?(0,t.jsxs)("span",{children:["Duplicate"," ",(0,t.jsx)("a",{href:"/admin/".concat(null==a?void 0:a.id,"/databases/").concat(null==s?void 0:s.db_slug),target:"_blank",children:null==s?void 0:s.db_name})," ","Database"]}):"Add A New Database";return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)(d.A,{}),(0,t.jsx)("h1",{className:"text-3xl m-0",children:n})]}),(0,t.jsx)(r.A,{user:a})]}),(0,t.jsx)(x,{})]})}var h=a(2592),m=!0;let j=l.createContext({});function b(e){let{user:s,databases:a,query:d,duplicateDb:r}=e,i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Add Database | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,u]=l.useState("/images/database-placeholder.png");return(0,t.jsx)(j.Provider,{value:{user:s,databases:a,dbImage:c,setDbImage:u,query:d,duplicateDb:r},children:(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)(n.A,{head:i,user:s,children:(0,t.jsx)(o,{})}),(0,t.jsx)(h.A,{setDbImage:u})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,8319,6272,636,6593,8792],()=>s(6108)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{3545:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(3517)}])},3517:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>_,__N_SSP:()=>g,default:()=>A});var a=t(4848),i=t(6540),l=t(8181),r=t(3647),n=t(5655),d=t(18),o=t(5094),c=t(900);function u(){var e;let{media:s,setTargetMedia:t,user:l,folders:u,staticHost:x}=i.useContext(_);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:l})]}),(null==l?void 0:null===(e=l.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:s,setTargetMedia:t,folders:u,staticHost:x,user:l}),s&&s[0]&&(0,a.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(3142),j=t(1828),m=t(1923),p=t(6217),h=t(431),N=t(1720),w=t(1710),f=t(9200),g=!0;let _=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=i.useState(null),[g,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[F,C]=i.useState(null);return(0,a.jsx)(_.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:C,folders:r,staticHost:n},children:(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(l.A,{head:d,user:s,children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M})]}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:g,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(m.A,{targetMedia:F,setTargetMedia:C,staticHost:n,media:t}),(0,a.jsx)(p.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(3545)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9326],{3545:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media",function(){return t(3517)}])},3517:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>_,__N_SSP:()=>g,default:()=>A});var a=t(4848),i=t(6540),l=t(8181),r=t(3647),n=t(5655),d=t(18),o=t(5094),c=t(900);function u(){var e;let{media:s,setTargetMedia:t,user:l,folders:u,staticHost:x}=i.useContext(_);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,a.jsxs)(c.A,{children:[(0,a.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Media"})]}),(0,a.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,n.PB)("add-folder-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Folder"})]})]})]}),(0,a.jsx)(r.A,{user:l})]}),(null==l?void 0:null===(e=l.verification_status)||void 0===e?void 0:e.toString().match(/1/))?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(o.A,{media:s,setTargetMedia:t,folders:u,staticHost:x,user:l}),s&&s[0]&&(0,a.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,n.PB)("choose-media-type-popoup")},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,a.jsx)(d.A,{})]})}var x=t(3142),j=t(1828),m=t(1923),p=t(6217),h=t(431),N=t(1720),w=t(1710),f=t(9200),g=!0;let _=i.createContext({});function A(e){let{user:s,media:t,folders:r,staticHost:n}=e,d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,c]=i.useState(null),[g,A]=i.useState(null),[b,v]=i.useState(null),[y,M]=i.useState(!1),[F,C]=i.useState(null);return(0,a.jsx)(_.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:C,folders:r,staticHost:n},children:(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(l.A,{head:d,user:s,children:[y&&(0,a.jsx)(w.A,{screen:!0,title:"Processing Files ..."}),(0,a.jsx)(u,{}),(0,a.jsx)(x.A,{setNewMedia:c,setLoading:M}),(0,a.jsx)(h.A,{setNewFile:A,setLoading:M}),(0,a.jsx)(f.A,{setNewVideo:v,setLoading:M})]}),(0,a.jsx)(j.A,{newMedia:o,setNewMedia:c,newFile:g,setNewFile:A,newVideo:b,setNewVideo:v}),(0,a.jsx)(m.A,{targetMedia:F,setTargetMedia:C,staticHost:n,media:t}),(0,a.jsx)(p.A,{}),(0,a.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,9551,636,6593,8792],()=>s(3545)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(7097)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},7220:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7097:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(7220);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[8261,7391,2480,636,6593,8792],()=>s(2444)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[431],{2444:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/[user_id]/media/[...folder]",function(){return t(9478)}])},5844:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var r=t(4848),l=t(7216);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(l.A,{})})}t(6540)},4839:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},9478:(e,s,t)=>{"use strict";t.r(s),t.d(s,{MediaContext:()=>v,__N_SSP:()=>g,default:()=>_});var r=t(4848),l=t(6540),i=t(8181),a=t(3142),n=t(1828),d=t(1923),o=t(6217),c=t(5844),u=t(3647),x=t(5655),j=t(18),h=t(5094),p=t(900),m=t(4839);function f(e){var s;let{media:t,setTargetMedia:i,user:a,folders:n,query:d,staticHost:o,folder:f}=l.useContext(v);return(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsx)(m.A,{size:20}),(0,r.jsx)("h1",{className:"text-3xl m-0",children:d.folder[d.folder.length-1]})]}),(0,r.jsxs)(p.A,{children:[(0,r.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Media"})]}),(0,r.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,x.PB)("add-folder-popoup",e=>{var s;null==e||null===(s=e.querySelector("input"))||void 0===s||s.focus()})},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Folder"})]})]})]}),(0,r.jsx)(u.A,{user:a})]}),(null==a?void 0:null===(s=a.verification_status)||void 0===s?void 0:s.toString().match(/1/))?(0,r.jsxs)(l.Fragment,{children:[(0,r.jsx)(h.A,{media:t,setTargetMedia:i,folders:n,folder:f,staticHost:o,user:a}),t&&t[0]&&(0,r.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,x.PB)("choose-media-type-popoup")},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,r.jsx)(j.A,{})]})}var w=t(431),N=t(1720),A=t(1710),y=t(9200),g=!0;let v=l.createContext({});function _(e){let{user:s,media:t,folders:c,query:u,staticHost:x,folderNameFull:j}=e,h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[p,m]=l.useState(null),[g,_]=l.useState(null),[b,k]=l.useState(null),[C,M]=l.useState(!1),[F,S]=l.useState(null);return(0,r.jsx)(v.Provider,{value:{user:s,media:t,targetMedia:F,setTargetMedia:S,folders:c,query:u,staticHost:x,folder:j},children:(0,r.jsxs)(l.Fragment,{children:[(0,r.jsxs)(i.A,{head:h,user:s,children:[C&&(0,r.jsx)(A.A,{screen:!0,title:"Processing Files ..."}),(0,r.jsx)(f,{}),(0,r.jsx)(a.A,{setNewMedia:m,setLoading:M}),(0,r.jsx)(w.A,{setNewFile:_,setLoading:M}),(0,r.jsx)(y.A,{setNewVideo:k,setLoading:M})]}),(0,r.jsx)(n.A,{newMedia:p,setNewMedia:m,newFile:g,setNewFile:_,folder:j,newVideo:b,setNewVideo:k}),(0,r.jsx)(d.A,{targetMedia:F,staticHost:x,setTargetMedia:S,media:t}),(0,r.jsx)(o.A,{folder:j}),(0,r.jsx)(N.A,{user:s})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7391,9551,636,6593,8792],()=>s(2444)),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9892],{1775:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(8820)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},8820:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(9625),r(4252)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(1775)),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9892],{1775:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return r(8820)}])},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(4848),s=r(6540);function o(t){let{pageTitle:e,pageDescription:r,pagePathname:o,aceEditor:c}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+o}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),c&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},8820:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>s}),r(4848);var n=r(6540);function s(){return n.useEffect(()=>{window.location.href="https://datasquirel.com"},[]),null}r(9625),r(8883)}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(1775)),_N_E=t.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{9260:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(9658)}])},6234:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e}=t;return(0,n.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,n.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},4179:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e,className:r}=t;return(0,n.jsxs)("div",{className:"info green"+(r?" "+r:""),children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4848),s=r(6540);function c(t){let{pageTitle:e,pageDescription:r,pagePathname:c,aceEditor:o}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),o&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},9658:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HomepageContext:()=>s,default:()=>c}),r(4848);var n=r(6540);r(4252),r(9625),r(3434),r(9020),r(6234),r(4179),r(1710);let s=n.createContext({});function c(){return n.useEffect(()=>{window.location.href="https://datasquirel.com/contact"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9260)),_N_E=t.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{9260:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return r(9658)}])},6234:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e}=t;return(0,n.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,n.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},4179:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(4848);function s(t){let{message:e,className:r}=t;return(0,n.jsxs)("div",{className:"info green"+(r?" "+r:""),children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:e})]})}r(6540)},9625:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(4848),s=r(6540);function c(t){let{pageTitle:e,pageDescription:r,pagePathname:c,aceEditor:o}=t;return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,n.jsx)("meta",{property:"og:title",content:e}),(0,n.jsx)("meta",{property:"og:description",content:r}),(0,n.jsx)("meta",{itemProp:"name",content:e}),(0,n.jsx)("meta",{itemProp:"description",content:r}),(0,n.jsx)("meta",{name:"twitter:title",content:e}),(0,n.jsx)("meta",{name:"twitter:description",content:r}),o&&(0,n.jsxs)(s.Fragment,{children:[(0,n.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,n.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"})]})]})}},3434:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(9020);function s(t){let{setUser:e}=t,r=localStorage.getItem("user");if(r)try{e(JSON.parse(r));return}catch(t){e({});return}(0,n.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let r=t.user?t.user:{};e(r),localStorage.setItem("user",JSON.stringify(r))}).catch(t=>{console.log(t)})}},9658:(t,e,r)=>{"use strict";r.r(e),r.d(e,{HomepageContext:()=>s,default:()=>c}),r(4848);var n=r(6540);r(8883),r(9625),r(3434),r(9020),r(6234),r(4179),r(1710);let s=n.createContext({});function c(){return n.useEffect(()=>{window.location.href="https://datasquirel.com/contact"},[]),null}}},t=>{var e=e=>t(t.s=e);t.O(0,[636,6593,8792],()=>e(9260)),_N_E=t.O()}]);
@@ -1 +0,0 @@
(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 s=n(4848);n(6540);var r=n(1710);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:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(r.A,{width:"25px",position:"relative"})})]})})}},9625:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(4848),r=n(6540);function a(e){let{pageTitle:t,pageDescription:n,pagePathname:a,aceEditor:i}=e;return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:title",content:t}),(0,s.jsx)("meta",{property:"og:description",content:n}),(0,s.jsx)("meta",{itemProp:"name",content:t}),(0,s.jsx)("meta",{itemProp:"description",content:n}),(0,s.jsx)("meta",{name:"twitter:title",content:t}),(0,s.jsx)("meta",{name:"twitter:description",content:n}),i&&(0,s.jsxs)(r.Fragment,{children:[(0,s.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,s.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"})]})]})}},6660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CreateAccountContext:()=>x,__N_SSP:()=>d,default:()=>m});var s=n(4848),r=n(6540),a=n(4252),i=n(9625),c=n(4060);function l(){let{query:e,invitingUser:t}=r.useContext(x);return(0,s.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,s.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,s.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,s.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,s.jsxs)("b",{children:[t.first_name," ",t.last_name," (",t.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,s.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,s.jsx)(c.A,{query:e})]})]})}var o=n(9020),u=n(4329),d=!0;let x=r.createContext({});function m(e){var t;let n="Create Account | Datasquirel",c="Create a FREE account and start storing data.",d=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("meta",{name:"description",content:c}),(0,s.jsx)(i.A,{pageTitle:n,pageDescription:c,pagePathname:"/"})]}),[m,p]=r.useState(null);return(r.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,s.jsx)(u.A,{}):(0,s.jsx)(a.A,{head:d,children:(0,s.jsx)(x.Provider,{value:{user:m,query:e.query,invitingUser:e.invitingUser},children:(0,s.jsx)("main",{children:(0,s.jsx)(l,{})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[6999,4060,636,6593,8792],()=>t(7900)),_N_E=e.O()}]);
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{9365:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]",function(){return s(8070)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(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-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},8070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>n,default:()=>c});var l=s(4848),r=s(6540),a=s(4252);s(9625),s(3434),s(1806),s(9072);var n=!0;function c(e){let{pages:t,targetPage:s}=e;try{return r.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),(0,l.jsx)(r.Fragment,{})}catch(e){return r.useEffect(()=>{window.location.pathname="/docs"},[]),(0,l.jsx)(a.A,{head:null,user:null,children:(0,l.jsx)("span",{children:"Redirection ..."})})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(9365)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5151],{9365:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]",function(){return s(8070)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(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-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},8070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>n,default:()=>c});var l=s(4848),r=s(6540),a=s(8883);s(9625),s(3434),s(1806),s(9072);var n=!0;function c(e){let{pages:t,targetPage:s}=e;try{return r.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),(0,l.jsx)(r.Fragment,{})}catch(e){return r.useEffect(()=>{window.location.pathname="/docs"},[]),(0,l.jsx)(a.A,{head:null,user:null,children:(0,l.jsx)("span",{children:"Redirection ..."})})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(9365)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1980],{1027:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]/[sub-page]",function(){return s(9323)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(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-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},9323:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>r,default:()=>a}),s(4848);var l=s(6540);s(4252),s(9625),s(3434),s(1806),s(9072);var r=!0;function a(e){let{pages:t,targetPage:s}=e;return l.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),null}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1027)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1980],{1027:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/[page]/[sub-page]",function(){return s(9323)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pageTitle:t,pageDescription:s,pagePathname:a,aceEditor:n}=e;return(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,l.jsx)("meta",{property:"og:title",content:t}),(0,l.jsx)("meta",{property:"og:description",content:s}),(0,l.jsx)("meta",{itemProp:"name",content:t}),(0,l.jsx)("meta",{itemProp:"description",content:s}),(0,l.jsx)("meta",{name:"twitter:title",content:t}),(0,l.jsx)("meta",{name:"twitter:description",content:s}),n&&(0,l.jsxs)(r.Fragment,{children:[(0,l.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,l.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"})]})]})}},1806:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(4848),r=s(6540);function a(e){let{pages:t}=e;if(!(null==t?void 0:t[0]))return null;let s=null==t?void 0:t.filter(e=>1==e.level);return r.useEffect(()=>{let e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach(e=>{e.pathname===window.location.pathname&&e.classList.add("active")})},[]),(0,l.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,l.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,l.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,r){return s.map((s,a)=>{let n="".concat(r,"/").concat(s.slug),c=null==t?void 0:t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:n,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),c&&c[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(c,n)})]},a)})}(s,"/docs")})]})}},9072:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848);function r(e){let{title:t,description:s}=e;return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"m-0 leading-tight",children:t}),(0,l.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:s}})]})}),(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-5 z-0"})]})}s(6540)},3434:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(9020);function r(e){let{setUser:t}=e,s=localStorage.getItem("user");if(s)try{t(JSON.parse(s));return}catch(e){t({});return}(0,l.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},9323:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>r,default:()=>a}),s(4848);var l=s(6540);s(8883),s(9625),s(3434),s(1806),s(9072);var r=!0;function a(e){let{pages:t,targetPage:s}=e;return l.useEffect(()=>{window.location.href="https://datasquirel.com/docs/getting-started"},[]),null}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(1027)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6712],{6227:(e,s,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-verification",function(){return i(2751)}])},2751:(e,s,i)=>{"use strict";i.r(s),i.d(s,{__N_SSP:()=>r,default:()=>d});var n=i(4848),l=i(6540),a=i(1710),c=i(9020),t=i(4252),r=!0;function d(e){let{user:s,verified:i}=e,[r,d]=l.useState(!1),[o,m]=l.useState(null);return i?(l.useEffect(()=>{try{setTimeout(()=>{window.location.pathname="/admin"},2e3)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"email-verification/index-page-component/lines-72-74",message:e.message,user:s}}),window.location.pathname="/logout"}},[]),(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,n.jsx)("div",{className:"login-block gap-2",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,n.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})})):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,n.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[o&&(0,n.jsx)("div",{className:o.class+" w-full rounded py-2 px-4 flex justify-center",children:o.msg}),r&&(0,n.jsx)(a.A,{position:"absolute"}),(0,n.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,n.jsx)("span",{children:"Please click the button below to send verification link"}),(0,n.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),d(!0),(0,c.A)("/api/sendEmailVerificationLink").then(e=>{d(!1),e.success&&m({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,n.jsx)("span",{children:"Send Verification Link"})}),(0,n.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,n.jsx)("span",{children:"Go Back"})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(6227)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6712],{6227:(e,s,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-verification",function(){return i(2751)}])},2751:(e,s,i)=>{"use strict";i.r(s),i.d(s,{__N_SSP:()=>r,default:()=>d});var n=i(4848),l=i(6540),a=i(1710),c=i(9020),t=i(8883),r=!0;function d(e){let{user:s,verified:i}=e,[r,d]=l.useState(!1),[o,m]=l.useState(null);return i?(l.useEffect(()=>{try{setTimeout(()=>{window.location.pathname="/admin"},2e3)}catch(e){(0,c.A)("/api/admin/clientError",{method:"post",body:{component:"email-verification/index-page-component/lines-72-74",message:e.message,user:s}}),window.location.pathname="/logout"}},[]),(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,n.jsx)("div",{className:"login-block gap-2",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,n.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})})):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)(t.A,{head:(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("title",{children:"Verify Email Address"}),(0,n.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:s,children:(0,n.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,n.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[o&&(0,n.jsx)("div",{className:o.class+" w-full rounded py-2 px-4 flex justify-center",children:o.msg}),r&&(0,n.jsx)(a.A,{position:"absolute"}),(0,n.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,n.jsx)("span",{children:"Please click the button below to send verification link"}),(0,n.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),d(!0),(0,c.A)("/api/sendEmailVerificationLink").then(e=>{d(!1),e.success&&m({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,n.jsx)("span",{children:"Send Verification Link"})}),(0,n.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,n.jsx)("span",{children:"Go Back"})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(6227)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{2022:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(464)}])},4819:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(4848),h=a(6540),i=a(7220);function c(e){let{content:t,language:a,style:c,showCopy:s}=e,[o,l]=h.useState(!1),y=()=>{l(!0)},d={};return(0,r.jsxs)("pre",{className:"language-".concat(a||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:c?{...c,...d}:d,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,r.jsx)("button",{className:"outlined copy-code "+(s?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{y()})},children:(0,r.jsx)(i.A,{className:"text-white",size:20})})]})}},5356:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r=a(4848);function h(e){let{src:t,alt:a,className:h,fadeHeight:i,width:c,height:s,opacity:o}=e;return(0,r.jsxs)("div",{className:"overflow-hidden z-0"+(h?" "+h:""),children:[(0,r.jsx)("img",{src:t,alt:a,className:"w-full h-full object-cover",width:c,height:s}),(0,r.jsx)("div",{className:"fade-side",style:{height:i}})]})}a(6540)},7220:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},464:(e,t,a)=>{"use strict";a.r(t),a.d(t,{HomepageContext:()=>i,default:()=>c}),a(4848);var r=a(6540);a(4252),a(9625),a(3434),a(6369),a(817),a(7512),a(5356),a(4819),a(5014);var h=a(5737);(0,h.A)("SquareGanttChart",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]),(0,h.A)("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),a(8190),(0,h.A)("EarthLock",[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]),a(2894),a(3419);let i=r.createContext({});function c(){r.useEffect(()=>{window.location.replace("/login")},[])}},7512:e=>{e.exports={hero_section_wrapper:"Home_hero_section_wrapper__rAO8W",hero_image:"Home_hero_image__qie3Q",hero_image_alt:"Home_hero_image_alt__Bl1L4",hero_text_section:"Home_hero_text_section__tNqS5"}}},e=>{var t=t=>e(e.s=t);e.O(0,[3298,636,6593,8792],()=>t(2022)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{2022:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(464)}])},4819:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(4848),h=a(6540),i=a(4839);function c(e){let{content:t,language:a,style:c,showCopy:s}=e,[o,l]=h.useState(!1),y=()=>{l(!0)},d={};return(0,r.jsxs)("pre",{className:"language-".concat(a||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:c?{...c,...d}:d,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,r.jsx)("button",{className:"outlined copy-code "+(s?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{y()})},children:(0,r.jsx)(i.A,{className:"text-white",size:20})})]})}},5356:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r=a(4848);function h(e){let{src:t,alt:a,className:h,fadeHeight:i,width:c,height:s,opacity:o}=e;return(0,r.jsxs)("div",{className:"overflow-hidden z-0"+(h?" "+h:""),children:[(0,r.jsx)("img",{src:t,alt:a,className:"w-full h-full object-cover",width:c,height:s}),(0,r.jsx)("div",{className:"fade-side",style:{height:i}})]})}a(6540)},4839:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},2894:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},3419:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("FolderOutput",[["path",{d:"M2 7.5V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-1.5",key:"1yk7aj"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m5 10-3 3 3 3",key:"1r8ie0"}]])},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(5737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},464:(e,t,a)=>{"use strict";a.r(t),a.d(t,{HomepageContext:()=>i,default:()=>c}),a(4848);var r=a(6540);a(8883),a(9625),a(3434),a(6369),a(817),a(7512),a(5356),a(4819),a(5014);var h=a(5737);(0,h.A)("SquareGanttChart",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]]),(0,h.A)("CopyCheck",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),a(8190),(0,h.A)("EarthLock",[["path",{d:"M7 3.34V5a3 3 0 0 0 3 3",key:"w732o8"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2 2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"f02343"}],["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M12 2a10 10 0 1 0 9.54 13",key:"zjsr6q"}],["path",{d:"M20 6V4a2 2 0 1 0-4 0v2",key:"1of5e8"}],["rect",{width:"8",height:"5",x:"14",y:"6",rx:"1",key:"1fmf51"}]]),a(2894),a(3419);let i=r.createContext({});function c(){r.useEffect(()=>{window.location.replace("/login")},[])}},7512:e=>{e.exports={hero_section_wrapper:"Home_hero_section_wrapper__rAO8W",hero_image:"Home_hero_image__qie3Q",hero_image_alt:"Home_hero_image_alt__Bl1L4",hero_text_section:"Home_hero_text_section__tNqS5"}}},e=>{var t=t=>e(e.s=t);e.O(0,[3298,636,6593,8792],()=>t(2022)),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[676],{7864:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return a(5386)}])},4329:(e,s,a)=>{"use strict";a.d(s,{A:()=>l});var t=a(4848);a(6540);var r=a(1710);function l(){return(0,t.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,t.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,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,t.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,t.jsx)(r.A,{width:"25px",position:"relative"})})]})})}},5386:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>v,default:()=>w});var t=a(4848),r=a(6540),l=a(3368),n=a.n(l),i=a(9020),o=a(1335),c=a.n(o);async function d(e){let{e:s,setAlert:a,setLoading:t,query:r}=e;s.preventDefault(),t(!0);let l=s.target["email-or-username-input"],n=s.target.password;if((null==l?void 0:l.value)===""&&(null==n?void 0:n.value)===""){l.classList.add("warning"),n.classList.add("warning"),a("No Email or Password Provided"),t(!1);return}if((null==n?void 0:n.value)===""){a(!1),n.classList.add("warning"),a(!0),t(!1);return}l.classList.remove("warning"),n.classList.remove("warning"),a(!1);let o={email:l.value,password:n.value,query:r};(0,i.A)("/api/loginUser",{method:"post",body:o}).then(e=>{var s;e.success&&(null===(s=e.payload)||void 0===s?void 0:s.logged_in_status)?(c().auth.postLogin(e),window.location.reload()):e.msg&&(a(e.msg),t(!1))})}var u=a(1710),m=a(7384);let x=r.createContext({});function h(e){let{user:s,query:a}=e,[l,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(!1);return(0,t.jsxs)(x.Provider,{value:{loading:i,setLoading:o,alert:l,setAlert:n,user:s},children:[(0,t.jsx)(m.A,{user:s,userType:"admin",setLoading:o}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]}),(0,t.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[i&&(0,t.jsx)(u.A,{}),l&&(0,t.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:l}),(0,t.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{d({e,setAlert:n,setLoading:o,query:a})},children:[(0,t.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:(null==a?void 0:a.email)?a.email:"",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("button",{type:"submit",children:"Login"})]}),(0,t.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,t.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,t.jsx)("span",{children:"Dont have an account yet?"}),(0,t.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,t.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,t.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var f=a(6232),p=a(4329),v=!0;function w(e){return(r.useEffect(()=>{setTimeout(()=>{e.query.invite&&e.user&&(window.location.pathname="/create-account")},1e3),e.query.invite||localStorage.setItem("user","{}")},[]),e.query.invite&&e.user)?(0,t.jsx)(p.A,{}):(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)(n(),{children:[(0,t.jsx)("title",{children:"Login to your account"}),(0,t.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,t.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,t.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,t.jsx)(f.A,{}),(0,t.jsx)("hr",{}),(0,t.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,t.jsx)(h,{user:e.user,query:e.query})]})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,7384,636,6593,8792],()=>s(7864)),_N_E=e.O()}]);
@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[676],{7864:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(5386)}])},4329:(e,s,r)=>{"use strict";r.d(s,{A:()=>l});var t=r(4848);r(6540);var a=r(1710);function l(){return(0,t.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,t.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,t.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,t.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,t.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},5386:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>p,default:()=>w});var t=r(4848),a=r(6540),l=r(3368),n=r.n(l),i=r(8639),o=r(9020);async function c(e){let{e:s,setAlert:r,setLoading:t,query:a}=e;s.preventDefault(),t(!0);let l=s.target["email-or-username-input"],n=s.target.password;if((null==l?void 0:l.value)===""&&(null==n?void 0:n.value)===""){l.classList.add("warning"),n.classList.add("warning"),r("No Email or Password Provided"),t(!1);return}if((null==n?void 0:n.value)===""){r(!1),n.classList.add("warning"),r(!0),t(!1);return}l.classList.remove("warning"),n.classList.remove("warning"),r(!1);let c={email:l.value,password:n.value,query:a};(0,o.A)("/api/loginUser",{method:"post",body:c}).then(async e=>{console.log(e),e.user&&e.user.auth?(localStorage.setItem("userid",e.user.userid),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.userPayload)),(0,i.A)().then(()=>{window.location.reload()})):(r(e.msg),t(!1))})}var d=r(1710),u=r(6999);let m=a.createContext({});function x(e){let{user:s,query:r}=e,[l,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1);return(0,t.jsxs)(m.Provider,{value:{loading:i,setLoading:o,alert:l,setAlert:n,user:s},children:[(0,t.jsx)(u.A,{user:s,userType:"admin",setLoading:o}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]}),(0,t.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[i&&(0,t.jsx)(d.A,{}),l&&(0,t.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:l}),(0,t.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{c({e,setAlert:n,setLoading:o,query:r})},children:[(0,t.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:(null==r?void 0:r.email)?r.email:"",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{l&&n(!1)}}),(0,t.jsx)("button",{type:"submit",children:"Login"})]}),(0,t.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,t.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,t.jsx)("span",{children:"Dont have an account yet?"}),(0,t.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,t.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,t.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,t.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var f=r(6232),h=r(4329),p=!0;function w(e){return(a.useEffect(()=>{setTimeout(()=>{e.query.invite&&e.user&&(window.location.pathname="/create-account")},1e3),e.query.invite||localStorage.setItem("user","{}")},[]),e.query.invite&&e.user)?(0,t.jsx)(h.A,{}):(0,t.jsxs)(a.Fragment,{children:[(0,t.jsxs)(n(),{children:[(0,t.jsx)("title",{children:"Login to your account"}),(0,t.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,t.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,t.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,t.jsx)(f.A,{}),(0,t.jsx)("hr",{}),(0,t.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,t.jsx)(x,{user:e.user,query:e.query})]})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[6999,636,6593,8792],()=>s(7864)),_N_E=e.O()}]);
@@ -1 +0,0 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,o,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(732)}])},8639:(e,o,t)=>{"use strict";async function i(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}t.d(o,{A:()=>i})},732:(e,o,t)=>{"use strict";t.r(o),t.d(o,{__N_SSP:()=>d,default:()=>g});var i=t(4848),n=t(6540),s=t(3368),l=t.n(s),a=t(9020),c=t(8639),r=t(1710),d=!0;function g(e){let{user:o,query:t}=e,s=(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Login you out"}),(0,i.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,i.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return n.useEffect(()=>{localStorage.removeItem("user"),localStorage.removeItem("csrf")},[]),n.useEffect(()=>{function e(){var e,i;return(null==t?void 0:t.invite)&&(null==t?void 0:t.login)?window.location.href="/login"+window.location.search:(null==t?void 0:t.login)||(null===(e=localStorage.getItem("logoutParadigm"))||void 0===e?void 0:e.match(/reset/))?window.location.href="/login":void((null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&localStorage.setItem("google_prompt_skipped","logout"),window.location.pathname="/")}(0,a.A)("/api/logoutUser").then(async t=>{await (0,c.A)();let i=await navigator.serviceWorker.getRegistrations();for(let e=0;e<i.length;e++){let o=i[e];await o.unregister()}let n=window.FB,s=window.google;try{n.init({appId:"",cookie:!0,xfbml:!0,version:"v13.0"}),n.getLoginStatus(t=>{if(t.authResponse)n.logout(()=>{e()});else{var i;s.accounts.id.initialize({client_id:""}),(null==o?void 0:null===(i=o.social_platform)||void 0===i?void 0:i.match(/google/))&&o.social_id?(s.accounts.id.revoke(),s.accounts.id.revoke(o.social_id,o=>{console.log(o.error),e()})):e()}})}catch(e){(0,a.A)("/api/admin/clientError",{method:"post",body:{component:"logout-page-component/lines-111-142",message:e.message,user:o}})}})},[]),(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(l(),{children:s}),(0,i.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,i.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,i.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,i.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,i.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,i.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,i.jsx)(r.A,{position:"relative",width:"20px"})]})})]})}}},e=>{var o=o=>e(e.s=o);e.O(0,[636,6593,8792],()=>o(5692)),_N_E=e.O()}]);
@@ -0,0 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7122],{5692:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/logout",function(){return t(5152)}])},5152:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>u,default:()=>h});var n=t(4848),r=t(6540),c=t(1335),i=t.n(c),o=t(3368),a=t.n(o),l=t(1710);function d(){let e=(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Login you out"}),(0,n.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,n.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return r.useEffect(()=>{i().auth.logout({}).then(()=>{window.location.pathname="/"})},[]),(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(a(),{children:e}),(0,n.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,n.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,n.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,n.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,n.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,n.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,n.jsx)(l.A,{position:"relative",width:"20px"})]})})]})}var u=!0;function h(){return(0,n.jsx)(d,{})}}},e=>{var s=s=>e(e.s=s);e.O(0,[1335,636,6593,8792],()=>s(5692)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{2710:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(2939)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(4848);function a(e){let{message:s,className:t}=e;return(0,r.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,r.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var r=t(4848),a=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:o}=e;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:title",content:s}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:s}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:s}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),o&&(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"})]})]})}},2939:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ResetPasswordContext:()=>u,__N_SSP:()=>p,default:()=>w});var r=t(4848),a=t(6540),n=t(4252),o=t(9625),c=t(1710),i=t(9020),l=t(4179),d=t(2543),m=t.n(d),p=!0;let u=a.createContext({});function w(e){let{email:s}=e,t="Reset Password | Datasquirel",d="Set a new password",p=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:d}),(0,r.jsx)(o.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[w,x]=a.useState(!1),[h,g]=a.useState(!1);return(0,r.jsx)(n.A,{head:p,user:e.user,children:(0,r.jsx)(u.Provider,{value:{user:e.user},children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[w&&(0,r.jsx)(c.A,{}),(0,r.jsx)("div",{className:"main-container flex-col items-start",children:h?(0,r.jsx)(l.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,r.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,r.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{x(!0),e.preventDefault();let t=e.target,r=t.password.value,a=t["confirm-password"].classList.contains("warning");if((null==r?void 0:r.length)<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{x(!1)},500);return}if(a){window.alert("Passwords don't match"),setTimeout(()=>{x(!1)},500);return}(0,i.A)("/api/resetPassword?email=".concat(s,"&password=").concat(r)).then(e=>{setTimeout(()=>{x(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&g(!0)})},children:[(0,r.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let s=e.target,t=s.closest("form");try{t.password.value.match(new RegExp("^".concat(m().escapeRegExp(s.value),"$")))?s.classList.remove("warning"):s.classList.add("warning")}catch(s){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:s.message,user:{}}}),e.target.classList.add("warning")}}}),(0,r.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(2710)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{2710:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return t(2939)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});var r=t(4848);function a(e){let{message:s,className:t}=e;return(0,r.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,r.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var r=t(4848),a=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:o}=e;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,r.jsx)("meta",{property:"og:title",content:s}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:s}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:s}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),o&&(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"})]})]})}},2939:(e,s,t)=>{"use strict";t.r(s),t.d(s,{ResetPasswordContext:()=>u,__N_SSP:()=>p,default:()=>w});var r=t(4848),a=t(6540),n=t(8883),o=t(9625),c=t(1710),i=t(9020),l=t(4179),d=t(2543),m=t.n(d),p=!0;let u=a.createContext({});function w(e){let{email:s}=e,t="Reset Password | Datasquirel",d="Set a new password",p=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:d}),(0,r.jsx)(o.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[w,x]=a.useState(!1),[h,g]=a.useState(!1);return(0,r.jsx)(n.A,{head:p,user:e.user,children:(0,r.jsx)(u.Provider,{value:{user:e.user},children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[w&&(0,r.jsx)(c.A,{}),(0,r.jsx)("div",{className:"main-container flex-col items-start",children:h?(0,r.jsx)(l.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,r.jsxs)(a.Fragment,{children:[(0,r.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,r.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,r.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{x(!0),e.preventDefault();let t=e.target,r=t.password.value,a=t["confirm-password"].classList.contains("warning");if((null==r?void 0:r.length)<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{x(!1)},500);return}if(a){window.alert("Passwords don't match"),setTimeout(()=>{x(!1)},500);return}(0,i.A)("/api/resetPassword?email=".concat(s,"&password=").concat(r)).then(e=>{setTimeout(()=>{x(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&g(!0)})},children:[(0,r.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,r.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let s=e.target,t=s.closest("form");try{t.password.value.match(new RegExp("^".concat(m().escapeRegExp(s.value),"$")))?s.classList.remove("warning"):s.classList.add("warning")}catch(s){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:s.message,user:{}}}),e.target.classList.add("warning")}}}),(0,r.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(2710)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6827],{7934:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/send-password-reset-link",function(){return t(7569)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(4848);function r(e){let{message:s,className:t}=e;return(0,a.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,a.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,a.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(4848),r=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:l}=e;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:t}),(0,a.jsx)("meta",{itemProp:"name",content:s}),(0,a.jsx)("meta",{itemProp:"description",content:t}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:t}),l&&(0,a.jsxs)(r.Fragment,{children:[(0,a.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,a.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"})]})]})}},7569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{SendPassResetContext:()=>h,__N_SSP:()=>u,default:()=>x});var a=t(4848),r=t(6540),n=t(4252),l=t(9625),i=t(1710),c=t(9020),o=t(4179);let d=(0,t(5737).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function m(e){let{message:s}=e;return(0,a.jsxs)("div",{className:"info gray",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"font-normal",children:s})]})}var u=!0;let h=r.createContext({});function x(e){var s;let t="Cloudbased SQL data management system | Datasquirel",d="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"description",content:d}),(0,a.jsx)(l.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[x,p]=r.useState(!1),[j,f]=r.useState(!1);return(0,a.jsx)(n.A,{head:u,user:e.user,children:(0,a.jsx)(h.Provider,{value:{user:e.user},children:(0,a.jsx)("main",{children:(0,a.jsxs)("section",{children:[x&&(0,a.jsx)(i.A,{}),j?(0,a.jsx)(o.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,a.jsx)("div",{className:"paper",children:(0,a.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,a.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,a.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{p(!0),e.preventDefault();let s=e.target["email-address"].value;(0,c.A)("/api/sendPasswordResetLink?email=".concat(s)).then(e=>{console.log(e),setTimeout(()=>{p(!1)},500),e.success&&f(!0)})},children:[(0,a.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:(null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.logged_in_status)?e.user.email:"",required:!0}),(0,a.jsx)("button",{children:"Send password reset Email"}),(0,a.jsx)(m,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(7934)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6827],{7934:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/send-password-reset-link",function(){return t(7569)}])},4179:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var a=t(4848);function r(e){let{message:s,className:t}=e;return(0,a.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,a.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,a.jsx)("span",{children:s})]})}t(6540)},9625:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(4848),r=t(6540);function n(e){let{pageTitle:s,pageDescription:t,pagePathname:n,aceEditor:l}=e;return(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+n}),(0,a.jsx)("meta",{property:"og:title",content:s}),(0,a.jsx)("meta",{property:"og:description",content:t}),(0,a.jsx)("meta",{itemProp:"name",content:s}),(0,a.jsx)("meta",{itemProp:"description",content:t}),(0,a.jsx)("meta",{name:"twitter:title",content:s}),(0,a.jsx)("meta",{name:"twitter:description",content:t}),l&&(0,a.jsxs)(r.Fragment,{children:[(0,a.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,a.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"})]})]})}},7569:(e,s,t)=>{"use strict";t.r(s),t.d(s,{SendPassResetContext:()=>h,__N_SSP:()=>u,default:()=>x});var a=t(4848),r=t(6540),n=t(8883),l=t(9625),i=t(1710),c=t(9020),o=t(4179);let d=(0,t(5737).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);function m(e){let{message:s}=e;return(0,a.jsxs)("div",{className:"info gray",children:[(0,a.jsx)(d,{}),(0,a.jsx)("span",{className:"font-normal",children:s})]})}var u=!0;let h=r.createContext({});function x(e){var s;let t="Cloudbased SQL data management system | Datasquirel",d="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"description",content:d}),(0,a.jsx)(l.A,{pageTitle:t,pageDescription:d,pagePathname:"/"})]}),[x,p]=r.useState(!1),[j,f]=r.useState(!1);return(0,a.jsx)(n.A,{head:u,user:e.user,children:(0,a.jsx)(h.Provider,{value:{user:e.user},children:(0,a.jsx)("main",{children:(0,a.jsxs)("section",{children:[x&&(0,a.jsx)(i.A,{}),j?(0,a.jsx)(o.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,a.jsx)("div",{className:"paper",children:(0,a.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,a.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,a.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{p(!0),e.preventDefault();let s=e.target["email-address"].value;(0,c.A)("/api/sendPasswordResetLink?email=".concat(s)).then(e=>{console.log(e),setTimeout(()=>{p(!1)},500),e.success&&f(!0)})},children:[(0,a.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:(null==e?void 0:null===(s=e.user)||void 0===s?void 0:s.logged_in_status)?e.user.email:"",required:!0}),(0,a.jsx)("button",{children:"Send password reset Email"}),(0,a.jsx)(m,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(7934)),_N_E=e.O()}]);
@@ -1 +1 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3751],{5263:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return s(9911)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(4848),n=s(6540);function c(e){let{pageTitle:t,pageDescription:s,pagePathname:c,aceEditor:a}=e;return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{itemProp:"name",content:t}),(0,r.jsx)("meta",{itemProp:"description",content:s}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),a&&(0,r.jsxs)(n.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"})]})]})}},9911:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>o,default:()=>m});var r=s(4848),n=s(6540),c=s(1710),a=s(9625),l=s(9020),i=s(4252),o=!0;function m(e){let{user:t,email:s,productionEnvironment:o,existingAlerts:m}=e,x="Unsubscribe | Datasquirel",h="Unsubscribe from email alerts",d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:x}),(0,r.jsx)("meta",{name:"description",content:h}),(0,r.jsx)(a.A,{pageTitle:x,pageDescription:h,pagePathname:"/unsubscribe"})]}),[u,p]=n.useState(!1);return(0,r.jsx)(n.Fragment,{children:(0,r.jsx)(i.A,{head:d,user:t,productionEnvironment:o,children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[u&&(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"flex-col",children:[(0,r.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!s&&(0,r.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,r.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,r.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),s&&(0,r.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:e=>{e.preventDefault(),p(!0);let r=e.target;(0,l.A)("/api/unsubscribe",{method:"post",body:{email:s,alerts:r.alerts_checkbox.checked,userId:(null==t?void 0:t.id)?t.id:null}}).then(e=>{console.log(e),p(!1)})},children:[(0,r.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:s}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!m,className:"w-6 h-6"}),(0,r.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,r.jsx)("button",{children:"Save Settings"})]})]})]})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(5263)),_N_E=e.O()}]);
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3751],{5263:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/unsubscribe",function(){return s(9911)}])},9625:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var r=s(4848),n=s(6540);function c(e){let{pageTitle:t,pageDescription:s,pagePathname:c,aceEditor:a}=e;return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+c}),(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{property:"og:description",content:s}),(0,r.jsx)("meta",{itemProp:"name",content:t}),(0,r.jsx)("meta",{itemProp:"description",content:s}),(0,r.jsx)("meta",{name:"twitter:title",content:t}),(0,r.jsx)("meta",{name:"twitter:description",content:s}),a&&(0,r.jsxs)(n.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"})]})]})}},9911:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>o,default:()=>m});var r=s(4848),n=s(6540),c=s(1710),a=s(9625),l=s(9020),i=s(8883),o=!0;function m(e){let{user:t,email:s,productionEnvironment:o,existingAlerts:m}=e,x="Unsubscribe | Datasquirel",h="Unsubscribe from email alerts",d=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:x}),(0,r.jsx)("meta",{name:"description",content:h}),(0,r.jsx)(a.A,{pageTitle:x,pageDescription:h,pagePathname:"/unsubscribe"})]}),[u,p]=n.useState(!1);return(0,r.jsx)(n.Fragment,{children:(0,r.jsx)(i.A,{head:d,user:t,productionEnvironment:o,children:(0,r.jsx)("main",{children:(0,r.jsxs)("section",{children:[u&&(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"flex-col",children:[(0,r.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!s&&(0,r.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,r.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,r.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),s&&(0,r.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:e=>{e.preventDefault(),p(!0);let r=e.target;(0,l.A)("/api/unsubscribe",{method:"post",body:{email:s,alerts:r.alerts_checkbox.checked,userId:(null==t?void 0:t.id)?t.id:null}}).then(e=>{console.log(e),p(!1)})},children:[(0,r.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:s}),(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!m,className:"w-6 h-6"}),(0,r.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,r.jsx)("button",{children:"Save Settings"})]})]})]})})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(5263)),_N_E=e.O()}]);