(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3172],{34475:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs",function(){return s(1732)}])},26e3:function(e,t,s){"use strict";s.d(t,{Z:function(){return r}});var n=s(85893),a=s(67294);function r(e){var t=e.pages;if(!t||!t[0])return null;var s=null===t||void 0===t?void 0:t.filter((function(e){return 1==e.level}));return a.useEffect((function(){var e=document.querySelectorAll("aside a");e&&e[0]&&e.forEach((function(e){e.pathname===window.location.pathname&&e.classList.add("active")}))}),[]),(0,n.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,n.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,n.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function e(s,a){return s.map((function(s,r){var l="".concat(a,"/").concat(s.slug),i=t.filter((function(e){return 2==e.level&&e.parent_id==s.id}));return(0,n.jsxs)("li",{children:[(0,n.jsx)("a",{href:l,className:1==(null===s||void 0===s?void 0:s.level)?"font-semibold":"text-slate-600",children:s.title}),i&&i[0]&&(0,n.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(i,l)})]},r)}))}(s,"/docs")})]})}},9922:function(e,t,s){"use strict";s.d(t,{Z:function(){return a}});var n=s(86729);function a(e){var t=e.setUser,s=localStorage.getItem("user");if(s)try{return void t(JSON.parse(s))}catch(a){return void t({})}(0,n.Z)("/api/clientSideAuth",{method:"post",body:{}},!0).then((function(e){var s=e.user?e.user:{};t(s),localStorage.setItem("user",JSON.stringify(s))})).catch((function(e){console.log(e)}))}},1732:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return x},default:function(){return h}});var n=s(828),a=s(85893),r=s(67294),l=s(56217),i=s(24097),c=s(9922),o=s(26e3);function u(e){return(0,a.jsxs)("section",{className:"py-14",children:[(0,a.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,a.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,a.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,a.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,a.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}var d=s(8971);function f(e){var t=e.title,s=e.description,n=e.url;return(0,a.jsxs)("a",{href:n,className:"card",children:[(0,a.jsxs)("div",{className:"flex-col items-start",children:[(0,a.jsx)("span",{className:"text-2xl font-semibold",children:t}),(0,a.jsx)("span",{className:"max-w-md text-slate-600",children:s})]}),(0,a.jsx)(d.Z,{size:20})]})}function m(e){return(0,a.jsx)("section",{className:"py-14",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,a.jsx)(f,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,a.jsx)(f,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,a.jsx)(f,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}var x=!0;function h(e){var t=e.pages,s=e.targetPage,d="".concat(s.title," | Datasquirel docs"),f=s.description,x=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:d}),(0,a.jsx)("meta",{name:"description",content:f}),(0,a.jsx)(i.Z,{pageTitle:d,pageDescription:f,pagePathname:"/"})]}),h=(0,n.Z)(r.useState(null),2),p=h[0],g=h[1];return r.useEffect((function(){(0,c.Z)({setUser:g})}),[]),(0,a.jsx)(l.Z,{head:x,user:p,children:(0,a.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,a.jsx)(o.Z,{pages:t}),(0,a.jsxs)("main",{children:[(0,a.jsx)(u,{}),(0,a.jsx)(m,{})]})]})})}}},function(e){e.O(0,[9774,2888,179],(function(){return t=34475,e(e.s=t);var t}));var t=e.O();_N_E=t}]);