"use strict";(()=>{var e={};e.id=7797,e.ids=[3220,7797],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},77354:(e,t,s)=>{s.r(t),s.d(t,{config:()=>w,default:()=>S,getServerSideProps:()=>A,getStaticPaths:()=>v,getStaticProps:()=>b,reportWebVitals:()=>q,routeModule:()=>G,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>P,getServerSideProps:()=>y});var a=s(63865),n=s(9455),i=s(30671),l=s(5583),o=s(19796),c=s(8732),m=s(82015),u=s.n(m),d=s(1013),p=s(91258);s(82271);var x=s(24093);function g(){return(0,c.jsxs)("section",{className:"py-14",children:[(0,c.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,c.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,c.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,c.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,c.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 h=s(58526);function f({title:e,description:t,url:s}){return(0,c.jsxs)("a",{href:s,className:"card",children:[(0,c.jsxs)("div",{className:"flex-col items-start",children:[(0,c.jsx)("span",{className:"text-2xl font-semibold",children:e}),(0,c.jsx)("span",{className:"max-w-md text-slate-600",children:t})]}),(0,c.jsx)(h.A,{size:20})]})}function j(){return(0,c.jsx)("section",{className:"py-14",children:(0,c.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,c.jsx)(f,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,c.jsx)(f,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,c.jsx)(f,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}function P({pages:e,targetPage:t}){let s=`${t.title} | Datasquirel docs`,r=t.description,a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:s}),(0,c.jsx)("meta",{name:"description",content:r}),(0,c.jsx)(p.A,{pageTitle:s,pageDescription:r,pagePathname:"/"})]}),[n,i]=u().useState(null);return(0,c.jsx)(d.A,{head:a,user:n,children:(0,c.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,c.jsx)(x.A,{pages:e}),(0,c.jsxs)("main",{children:[(0,c.jsx)(g,{}),(0,c.jsx)(j,{})]})]})})}async function y(){return{redirect:{destination:"/docs/getting-started",permanent:!1}}}let S=(0,i.M)(r,"default"),b=(0,i.M)(r,"getStaticProps"),v=(0,i.M)(r,"getStaticPaths"),A=(0,i.M)(r,"getServerSideProps"),w=(0,i.M)(r,"config"),q=(0,i.M)(r,"reportWebVitals"),M=(0,i.M)(r,"unstable_getStaticProps"),N=(0,i.M)(r,"unstable_getStaticPaths"),_=(0,i.M)(r,"unstable_getStaticParams"),k=(0,i.M)(r,"unstable_getServerProps"),I=(0,i.M)(r,"unstable_getServerSideProps"),G=new a.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/docs",pathname:"/docs",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:r})},91258:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(82015),n=s.n(a);function i({pageTitle:e,pageDescription:t,pagePathname:s,aceEditor:a}){return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+s}),(0,r.jsx)("meta",{property:"og:title",content:e}),(0,r.jsx)("meta",{property:"og:description",content:t}),(0,r.jsx)("meta",{itemProp:"name",content:e}),(0,r.jsx)("meta",{itemProp:"description",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:e}),(0,r.jsx)("meta",{name:"twitter:description",content:t}),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"})]})]})}},24093:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({pages:e}){if(!e?.[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.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,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,a){return s.map((s,n)=>{let i=`${a}/${s.slug}`,l=e?.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:i,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),l&&l[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(l,i)})]},n)})}(t,"/docs")})]})}s(82015)},82271:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(46169);function a({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},5583:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var a=s(20883);function n(){return(0,r.jsxs)(a.Html,{lang:"en",children:[(0,r.jsxs)(a.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(a.Main,{}),(0,r.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}});var s=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883,9821,9796],()=>s(77354));module.exports=r})();