"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3181],{96224:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,l.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,l.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,l.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");a.Z=c},88518:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");a.Z=c},66022:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"},"1")],"CopyAllTwoTone");a.Z=c},29277:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M16 9H8v10h8V9zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"},"1")],"DeleteForeverTwoTone");a.Z=c},96673:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M14.17 3H8v14h11V7.83L14.17 3zm2.33 12h-6v-2h6v2zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2v2z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14v2zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7h-2zm2 6h-6v2h6v-2zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7l-6-6zm4 16H8V3h6.17L19 7.83V17z"},"1")],"DifferenceTwoTone");a.Z=c},63749:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83z"},"1")],"DriveFileRenameOutlineTwoTone");a.Z=c},74458:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)((0,l.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageTwoTone");a.Z=c},57150:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},64998:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},33587:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("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"}]])},4844:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("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"}]])},41352:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},92184:function(e,a,t){t.d(a,{Z:function(){return h}});var s=t(828),n=t(85893),l=t(67294),c=t(94739),i=t(25472),r=t(86729),d=t(95264),o=t(45449),u=t(64998);function h(e){var a,t=e.database,h=e.setTargetDatabase,x=e.delegated,m=(e.icons,e.user),p="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/").concat(t.db_slug)+(x?"?delegated=true&dbUserId=".concat(t.user_id):""),f=t.active_clone,v=t.active_clone_parent_db,j=(0,s.Z)(l.useState(!1),2),b=j[0],g=j[1];return(0,n.jsxs)("a",{href:p,className:"card",onClick:function(e){(e.target.closest(".db-list-item-actions-block")||e.target.closest(".cancel-link"))&&e.preventDefault(),x&&(e.preventDefault(),g(!0),(0,r.Z)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:t.user_id,priviledges:t.user_priviledge,database:t.db_slug}},!0).then((function(e){e.success&&(window.location.href=p)})),setTimeout((function(){g(!1)}),1e3))},children:[b&&(0,n.jsx)(d.Z,{width:"20px"}),(0,n.jsx)("img",{src:t.db_image?t.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:t.db_image?"avatar":"avatar opacity-50"}),(0,n.jsxs)("div",{className:"flex-col items-start grow",children:[(0,n.jsx)("span",{className:"title",children:t.db_name}),v&&(0,n.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,n.jsx)("b",{children:v.replace(/datasquirel_user_\d+_/,"")})]}),(0,n.jsx)("div",{className:"-mt-2",children:(0,n.jsx)(c.Z,{slugText:t.db_slug,smaller:!0})}),(0,n.jsx)("div",{className:"-mt-1 gap-1",children:(0,n.jsx)(c.Z,{slugText:t.db_full_name,smaller:!0,full:!0})}),!x&&(0,n.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(a=t.date_created)||void 0===a?void 0:a.substring(0,21)]}),x&&(0,n.jsxs)("div",{className:"flex items-center mt-2",children:[(0,n.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,n.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,n.jsxs)("span",{className:"text-xs text-slate-600",children:[t.first_name," ",t.last_name]}),(0,n.jsx)("span",{className:"text-xs text-slate-400",children:t.email})]})]}),(0,n.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,n.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,n.jsxs)(o.Z,{children:[!x&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){window.location.pathname="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/").concat(t.db_slug,"/edit-database")},children:(0,n.jsx)("span",{children:"Edit"})}),!x&&!f&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){window.location.href="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/add-database?duplicate=").concat(t.db_full_name)},children:(0,n.jsx)("span",{children:"Duplicate"})}),!x&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){h&&h(t),(0,i.Mw)("delete-database-confirmation")},children:(0,n.jsx)("span",{children:"Delete"})})]})}),(0,n.jsx)(u.Z,{className:"text-slate-600",size:20})]})]})]})}},68744:function(e,a,t){t.d(a,{Z:function(){return o}});var s=t(85893),n=t(67294),l=t(2109),c=t(424),i=t(97946),r=t(96891),d=t(55592);function o(e){var a,t=n.useContext(l.DatabasesContext),o=t.databases,u=t.setTargetDatabase,h=t.user;return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,s.jsxs)("a",{href:"/admin/".concat(null===h||void 0===h?void 0:h.id,"/databases/add-database"),className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Database"})]})]}),(0,s.jsx)(c.Z,{user:h})]}),(null===h||void 0===h||null===(a=h.verification_status)||void 0===a?void 0:a.toString().match(/1/))?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(r.Z,{databases:o,setTargetDatabase:u,user:h}),(0,s.jsx)(d.Z,{user:h})]}):(0,s.jsx)(i.Z,{})]})}},96891:function(e,a,t){t.d(a,{Z:function(){return u}});var s=t(85893),n=t(67294),l=t(92184),c=t(63749),i=t(96673),r=t(29277),d=t(66022),o=t(74458);function u(e){var a=e.databases,t=e.setTargetDatabase,u=e.title,h=e.more,x=e.user;return(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:u||"Database List"}),x&&a&&a[0]&&t&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map((function(e){return(0,s.jsx)(l.Z,{database:e,setTargetDatabase:t,icons:{edit:c.Z,duplicate:i.Z,delete:r.Z,copy:d.Z},user:x},e.id)}))}),h&&a&&a[0]&&(0,s.jsx)("a",{href:"/admin/".concat(null===x||void 0===x?void 0:x.id,"/databases"),className:"button w-full more-padding",children:"See All Databases"}),!a||!a[0]&&(0,s.jsxs)("a",{href:"/admin/".concat(null===x||void 0===x?void 0:x.id,"/databases/add-database"),className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(o.Z,{color:"action",sx:{fontSize:80},className:"opacity-40"}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},55592:function(e,a,t){t.d(a,{Z:function(){return x}});var s=t(828),n=t(85893),l=t(67294),c=t(63749),i=t(96673),r=t(29277),d=t(66022),o=t(95264),u=t(86729),h=t(92184);function x(e){var a=e.user,t=l.useState(null),x=(0,s.Z)(t,2),m=x[0],p=x[1],f=(0,s.Z)(l.useState(!1),2),v=f[0],j=f[1];return l.useEffect((function(){(0,u.Z)("/api/getDelegatedDatabases").then((function(e){e.success&&(p(e.databases),j(!1))}))}),[]),(0,n.jsxs)("section",{className:"paper",children:[(0,n.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),v&&(0,n.jsx)(o.Z,{}),a&&m?m[0]?(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:m.map((function(e){return(0,n.jsx)(h.Z,{database:e,delegated:!0,icons:{edit:c.Z,duplicate:i.Z,delete:r.Z,copy:d.Z},user:a},e.id)}))})}):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("div",{className:"w-full justify-center",children:(0,n.jsx)(o.Z,{position:"relative",width:"20px"})})})]})}},85012:function(e,a,t){t.d(a,{Z:function(){return d}});var s=t(828),n=t(85893),l=t(67294),c=t(86729),i=t(25472),r=t(95264);function d(e){var a=e.targetDatabase,t=(0,s.Z)(l.useState(!1),2),d=t[0],o=t[1];return(0,n.jsxs)(i.ZP,{title:"delete-database-confirmation",children:[d&&(0,n.jsx)(r.Z,{width:"20px"}),(0,n.jsxs)("h4",{className:"m-0",children:["Delete '",(null===a||void 0===a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{className:"outlined"+(d?" pointer-events-none opacity-40":""),onClick:function(e){a?(o(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,c.Z)("/api/deleteUserDatabase",{method:"post",body:a},!0).then((function(e){e.success&&window.location.reload()})):o(!1)):alert("No Target Database Selected!")},children:(0,n.jsx)("span",{children:"Yes"})}),(0,n.jsx)("button",{onClick:function(e){(0,i.j4)()},children:(0,n.jsx)("span",{children:"Cancel"})})]})]})}},94739:function(e,a,t){t.d(a,{Z:function(){return l}});var s=t(85893),n=(t(67294),t(66022));function l(e){var a=e.slugText,t=e.smaller,l=e.outlined,c=e.full;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(l?" outlined gray":"light-gray")+(t?" small-text":""),onClick:function(e){navigator.clipboard.writeText(a).then((function(){alert("".concat(c?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))}))},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(n.Z,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,s.jsx)("span",{children:a})]})}},25472:function(e,a,t){t.d(a,{Mw:function(){return i},ZP:function(){return c},j4:function(){return r}});var s=t(85893),n=t(41352),l=t(67294);function c(e){var a=e.children,t=e.title,c=e.data,i=e.fullPage,d=e.wrapperClasses,o=e.closePopupDispatch,u=e.wrapperStyle,h=e.noContainer;return i?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":t||null,style:u,children:[h?(0,s.jsx)(l.Fragment,{children:a}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":c?JSON.stringify(c):"",children:a}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:function(e){r(),o&&o()},children:(0,s.jsx)(n.Z,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:function(e){r(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[h?(0,s.jsx)(l.Fragment,{children:a}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":c?JSON.stringify(c):"",children:[a,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:function(e){r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"\u2716"})})]}),h&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:function(e){r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"\u2716"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:function(e){r(),o&&o()}})]})}function i(e,a){var t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",a&&a(t))}function r(e){document.querySelectorAll("[data-popupid]").forEach((function(e){e.style.display="none"})),e&&e()}},97946:function(e,a,t){t.d(a,{Z:function(){return n}});var s=t(85893);t(67294);function n(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}},2109:function(e,a,t){t.r(a),t.d(a,{DatabasesContext:function(){return u},__N_SSP:function(){return o},default:function(){return h}});var s=t(828),n=t(85893),l=t(67294),c=t(54858),i=t(68744),r=t(85012),d={},o=!0,u=l.createContext(d);function h(e){var a=e.user,t=e.databases,d=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"Databases | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),o=l.useState(0),h=(0,s.Z)(o,2),x=h[0],m=h[1];return(0,n.jsx)(c.Z,{head:d,user:a,children:(0,n.jsxs)(u.Provider,{value:{user:a,databases:t,targetDatabase:x,setTargetDatabase:m},children:[(0,n.jsx)(i.Z,{}),(0,n.jsx)(r.Z,{targetDatabase:x})]})})}}}]);