(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7797],{6347:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs",function(){return s(2022)}])},4540:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(4848),a=s(6540);function r(e){let{pages:t}=e;if(!t||!t[0])return null;let s=null==t?void 0:t.filter(e=>1==e.level);return a.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,a){return s.map((s,r)=>{let c="".concat(a,"/").concat(s.slug),i=t.filter(e=>2==e.level&&e.parent_id==s.id);return(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:c,className:(null==s?void 0:s.level)==1?"font-semibold":"text-slate-600",children:s.title}),i&&i[0]&&(0,l.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:e(i,c)})]},r)})}(s,"/docs")})]})}},2900:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var l=s(3698);function a(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)})}},2022:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>x,default:()=>f});var l=s(4848),a=s(6540),r=s(3444),c=s(6411),i=s(2900),n=s(4540);function o(e){return(0,l.jsxs)("section",{className:"py-14",children:[(0,l.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,l.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,l.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,l.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(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"})]})}var d=s(2027);function u(e){let{title:t,description:s,url:a}=e;return(0,l.jsxs)("a",{href:a,className:"card",children:[(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("span",{className:"text-2xl font-semibold",children:t}),(0,l.jsx)("span",{className:"max-w-md text-slate-600",children:s})]}),(0,l.jsx)(d.A,{size:20})]})}function m(e){return(0,l.jsx)("section",{className:"py-14",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,l.jsx)(u,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,l.jsx)(u,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,l.jsx)(u,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}var x=!0;function f(e){let{pages:t,targetPage:s}=e,d="".concat(s.title," | Datasquirel docs"),u=s.description,x=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:d}),(0,l.jsx)("meta",{name:"description",content:u}),(0,l.jsx)(c.A,{pageTitle:d,pageDescription:u,pagePathname:"/"})]}),[f,h]=a.useState(null);return a.useEffect(()=>{(0,i.A)({setUser:h})},[]),(0,l.jsx)(r.A,{head:x,user:f,children:(0,l.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,l.jsx)(n.A,{pages:t}),(0,l.jsxs)("main",{children:[(0,l.jsx)(o,{}),(0,l.jsx)(m,{})]})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(6347)),_N_E=e.O()}]);