"use strict";(()=>{var e={};e.id=1985,e.ids=[1985],e.modules={75771:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>l,getServerSideProps:()=>m,getStaticPaths:()=>g,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>f,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>q});var s=r(63865),i=r(9455),d=r(30671),u=r(5583),n=r(53881),o=r(92382),c=e([o]);o=(c.then?(await c)():c)[0];let l=(0,d.M)(o,"default"),p=(0,d.M)(o,"getStaticProps"),g=(0,d.M)(o,"getStaticPaths"),m=(0,d.M)(o,"getServerSideProps"),x=(0,d.M)(o,"config"),h=(0,d.M)(o,"reportWebVitals"),q=(0,d.M)(o,"unstable_getStaticProps"),S=(0,d.M)(o,"unstable_getStaticPaths"),P=(0,d.M)(o,"unstable_getStaticParams"),v=(0,d.M)(o,"unstable_getServerProps"),b=(0,d.M)(o,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/docs/pages/[id]",pathname:"/admin/[user_id]/su/docs/pages/[id]",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:o});a()}catch(e){a(e)}})},4214:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(8732),s=r(82015),i=r.n(s),d=r(55016);function u({data:e,user:t}){let{targetDocPage:r}=e;return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(d.A,{data:r,user:t})})}},92382:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>c,getServerSideProps:()=>l});var s=r(8732);r(82015);var i=r(4214),d=r(71934),u=r(72837),n=r(92702),o=e([u]);function c({user:e,data:t}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(u.A,{head:r,children:(0,s.jsx)(i.A,{data:t,user:e})})}async function l({req:e,res:t,query:r}){let{user:a,appData:s}=await (0,n.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};let i=await (0,d.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return i&&Array.isArray(i)&&i[0]?{props:{user:a,appData:s,data:{targetDocPage:i[0]}}}:{redirect:{destination:`/admin/${a?.id}/docs`,permanent:!1}}}u=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39383:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/actions/users/user-auth")},65967:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},93726:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},30889:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},27825:e=>{e.exports=require("lodash")},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")},9973:e=>{e.exports=require("serverless-mysql")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[883,9821,3881,8892,3155,3911,5016],()=>r(75771));module.exports=a})();