"use strict";(()=>{var e={};e.id=1501,e.ids=[1501],e.modules={45751:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>g,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>f,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>q});var s=r(63865),i=r(9455),d=r(30671),u=r(5583),o=r(53881),n=r(35850),l=e([n]);n=(l.then?(await l)():l)[0];let c=(0,d.M)(n,"default"),p=(0,d.M)(n,"getStaticProps"),g=(0,d.M)(n,"getStaticPaths"),m=(0,d.M)(n,"getServerSideProps"),x=(0,d.M)(n,"config"),h=(0,d.M)(n,"reportWebVitals"),q=(0,d.M)(n,"unstable_getStaticProps"),S=(0,d.M)(n,"unstable_getStaticPaths"),P=(0,d.M)(n,"unstable_getStaticParams"),b=(0,d.M)(n,"unstable_getServerProps"),v=(0,d.M)(n,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/docs/edit-page",pathname:"/admin/[user_id]/su/docs/edit-page",bundlePath:"",filename:""},components:{App:o.default,Document:u.default},userland:n});a()}catch(e){a(e)}})},35850:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>l,getServerSideProps:()=>c});var s=r(8732);r(82015);var i=r(55016),d=r(71934),u=r(92702),o=r(72837),n=e([o]);function l({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)(o.A,{head:r,children:(0,s.jsx)(i.A,{data:t,user:e})})}async function c({req:e,res:t,query:r}){let{user:a,appData:s}=await (0,u.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:i[0]}}:{redirect:{destination:`/admin/${a?.id}/docs`,permanent:!1}}}o=(n.then?(await n)():n)[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(45751));module.exports=a})();