This commit is contained in:
Benjamin Toby
2025-02-17 06:55:49 +01:00
parent e95f4d1087
commit 1900e30ecf
224 changed files with 497 additions and 499 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={43036:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>P,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>b});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(53881),l=a(37418),o=e([l]);l=(o.then?(await o)():o)[0];let c=(0,n.M)(l,"default"),p=(0,n.M)(l,"getStaticProps"),x=(0,n.M)(l,"getStaticPaths"),m=(0,n.M)(l,"getServerSideProps"),g=(0,n.M)(l,"config"),h=(0,n.M)(l,"reportWebVitals"),b=(0,n.M)(l,"unstable_getStaticProps"),S=(0,n.M)(l,"unstable_getStaticPaths"),j=(0,n.M)(l,"unstable_getStaticParams"),f=(0,n.M)(l,"unstable_getServerProps"),q=(0,n.M)(l,"unstable_getServerSideProps"),P=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:l});s()}catch(e){s(e)}})},51481:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>x});var r=a(8732),i=a(82015),n=a.n(i),d=a(37418),u=a(53926),l=a(66485),o=a(56331),c=a(67274),p=e([d]);function x(){let{databases:e,setTargetDatabase:t,user:a}=n().useContext(d.DatabasesContext);return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,r.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Database"})]})]}),(0,r.jsx)(u.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)(o.A,{databases:e,setTargetDatabase:t,user:a}),(0,r.jsx)(c.A,{user:a})]}):(0,r.jsx)(l.A,{})]})}d=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},37418:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabasesContext:()=>g,default:()=>x,getServerSideProps:()=>m});var r=a(8732),i=a(82015),n=a.n(i),d=a(72837),u=a(92702),l=a(51481),o=a(70355),c=a(71934),p=e([d,l]);[d,l]=p.then?(await p)():p;let g=n().createContext({});function x({user:e,databases:t}){let a=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Databases | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,i]=n().useState();return(0,r.jsx)(g.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:i},children:(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)(d.A,{head:a,children:(0,r.jsx)(l.A,{})}),(0,r.jsx)(o.A,{targetDatabase:s})]})})}async function m({req:e,res:t,query:a}){let s=await (0,u.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:r}}}s()}catch(e){s(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")},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 a=e=>t(t.s=e),s=t.X(0,[883,9821,3881,8892,4715],()=>a(43036));module.exports=s})();
"use strict";(()=>{var e={};e.id=2564,e.ids=[2564],e.modules={43036:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>P,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>b});var r=a(63865),i=a(9455),n=a(30671),d=a(5583),u=a(53881),l=a(37418),o=e([l]);l=(o.then?(await o)():o)[0];let c=(0,n.M)(l,"default"),p=(0,n.M)(l,"getStaticProps"),x=(0,n.M)(l,"getStaticPaths"),m=(0,n.M)(l,"getServerSideProps"),g=(0,n.M)(l,"config"),h=(0,n.M)(l,"reportWebVitals"),b=(0,n.M)(l,"unstable_getStaticProps"),S=(0,n.M)(l,"unstable_getStaticPaths"),j=(0,n.M)(l,"unstable_getStaticParams"),f=(0,n.M)(l,"unstable_getServerProps"),q=(0,n.M)(l,"unstable_getServerSideProps"),P=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:l});s()}catch(e){s(e)}})},51481:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>x});var r=a(8732),i=a(82015),n=a.n(i),d=a(37418),u=a(53926),l=a(66485),o=a(56331),c=a(67274),p=e([d]);function x(){let{databases:e,setTargetDatabase:t,user:a}=n().useContext(d.DatabasesContext);return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,r.jsxs)("a",{href:`/admin/${a?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Database"})]})]}),(0,r.jsx)(u.A,{user:a})]}),a?.verification_status?.toString().match(/1/)?(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)(o.A,{databases:e,setTargetDatabase:t,user:a}),(0,r.jsx)(c.A,{user:a})]}):(0,r.jsx)(l.A,{})]})}d=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},37418:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{DatabasesContext:()=>g,default:()=>x,getServerSideProps:()=>m});var r=a(8732),i=a(82015),n=a.n(i),d=a(72837),u=a(92702),l=a(51481),o=a(70355),c=a(71934),p=e([d,l]);[d,l]=p.then?(await p)():p;let g=n().createContext({});function x({user:e,databases:t}){let a=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Databases | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,i]=n().useState();return(0,r.jsx)(g.Provider,{value:{user:e,databases:t,targetDatabase:s,setTargetDatabase:i},children:(0,r.jsxs)(n().Fragment,{children:[(0,r.jsx)(d.A,{head:a,children:(0,r.jsx)(l.A,{})}),(0,r.jsx)(o.A,{targetDatabase:s})]})})}async function m({req:e,res:t,query:a}){let{user:s,appData:r}=await (0,u.A)(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=await (0,c.A)("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,appData:r,databases:i}}}s()}catch(e){s(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")},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 a=e=>t(t.s=e),s=t.X(0,[883,9821,3881,8892,4715],()=>a(43036));module.exports=s})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -13,4 +13,4 @@ Date: ${l.toDateString()}
${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(51779);async function s(...e){let t=(0,a.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(9973),s=r.n(a);function n(e){return global.DSQL_USE_LOCAL||e?.local?global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.ro?global.DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},31753:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{AddDatabaseContext:()=>f,default:()=>m,getServerSideProps:()=>g});var s=r(8732),n=r(82015),l=r.n(n),i=r(72837),o=r(92702),c=r(19134),d=r(37195),u=r(71934),p=r(24724),h=e([i,p]);[i,p]=h.then?(await h)():h;let f=l().createContext({});function m({user:e,databases:t,query:r,duplicateDb:a}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[o,c]=l().useState("/images/database-placeholder.png");return(0,s.jsx)(f.Provider,{value:{user:e,databases:t,dbImage:o,setDbImage:c,query:r,duplicateDb:a},children:(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)(i.A,{head:n,children:(0,s.jsx)(p.A,{})}),(0,s.jsx)(d.A,{setDbImage:c})]})})}async function g({req:e,res:t,query:r}){let a=await (0,o.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!a?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let s=await (0,c.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),n={};if(r.duplicate){let e=await (0,u.A)(`SELECT * FROM user_databases WHERE db_full_name='${r.duplicate}'`);e&&e[0]&&(n=e[0])}return{props:{user:a,databases:s,query:r,duplicateDb:n}}}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")},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")},29021:e=>{e.exports=require("fs")},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,6984,6851],()=>r(49387));module.exports=a})();
${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},71934:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(51779);async function s(...e){let t=(0,a.A)();try{if(!t)throw Error("No Connection provided to DB_HANDLER function!");let r=await t.query(...e);return JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await t?.end()}}},51779:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(9973),s=r.n(a);function n(e){return global.DSQL_USE_LOCAL||e?.local?global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.ro?global.DSQL_READ_ONLY_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):e?.fa?global.DSQL_FULL_ACCESS_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}}):global.DSQL_DB_CONN||s()({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:e?.noDb?void 0:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4"}})}},31753:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{AddDatabaseContext:()=>f,default:()=>m,getServerSideProps:()=>g});var s=r(8732),n=r(82015),l=r.n(n),i=r(72837),o=r(92702),c=r(19134),d=r(37195),u=r(71934),p=r(24724),h=e([i,p]);[i,p]=h.then?(await h)():h;let f=l().createContext({});function m({user:e,databases:t,query:r,duplicateDb:a}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[o,c]=l().useState("/images/database-placeholder.png");return(0,s.jsx)(f.Provider,{value:{user:e,databases:t,dbImage:o,setDbImage:c,query:r,duplicateDb:a},children:(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)(i.A,{head:n,children:(0,s.jsx)(p.A,{})}),(0,s.jsx)(d.A,{setDbImage:c})]})})}async function g({req:e,res:t,query:r}){let{user:a,appData:s}=await (0,o.A)(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!a?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let n=await (0,c.A)(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${a.id}%'`),l={};if(r.duplicate){let e=await (0,u.A)(`SELECT * FROM user_databases WHERE db_full_name='${r.duplicate}'`);e&&e[0]&&(l=e[0])}return{props:{user:a,appData:s,databases:n,query:r,duplicateDb:l}}}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")},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")},29021:e=>{e.exports=require("fs")},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,6984,6851],()=>r(49387));module.exports=a})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=6977,e.ids=[6977],e.modules={32047:(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:()=>v,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>q});var s=r(63865),i=r(9455),u=r(30671),d=r(5583),o=r(53881),n=r(59390),l=e([n]);n=(l.then?(await l)():l)[0];let c=(0,u.M)(n,"default"),p=(0,u.M)(n,"getStaticProps"),g=(0,u.M)(n,"getStaticPaths"),m=(0,u.M)(n,"getServerSideProps"),x=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),S=(0,u.M)(n,"unstable_getStaticPaths"),P=(0,u.M)(n,"unstable_getStaticParams"),v=(0,u.M)(n,"unstable_getServerProps"),b=(0,u.M)(n,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/docs/create-page",pathname:"/admin/[user_id]/su/docs/create-page",bundlePath:"",filename:""},components:{App:o.default,Document:d.default},userland:n});a()}catch(e){a(e)}})},59390:(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),u=r(71934),d=r(72837),o=r(92702),n=e([d]);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)(d.A,{head:r,children:(0,s.jsx)(i.A,{data:t,user:e})})}async function c({req:e,res:t,query:r}){let a=await (0,o.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};let s=await (0,u.A)("SELECT * FROM docs_pages WHERE level=0");return{props:{user:a,data:{docPages:s}}}}d=(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(32047));module.exports=a})();
"use strict";(()=>{var e={};e.id=6977,e.ids=[6977],e.modules={32047:(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:()=>v,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>q});var s=r(63865),i=r(9455),u=r(30671),d=r(5583),o=r(53881),n=r(59390),l=e([n]);n=(l.then?(await l)():l)[0];let c=(0,u.M)(n,"default"),p=(0,u.M)(n,"getStaticProps"),g=(0,u.M)(n,"getStaticPaths"),m=(0,u.M)(n,"getServerSideProps"),x=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),S=(0,u.M)(n,"unstable_getStaticPaths"),P=(0,u.M)(n,"unstable_getStaticParams"),v=(0,u.M)(n,"unstable_getServerProps"),b=(0,u.M)(n,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/docs/create-page",pathname:"/admin/[user_id]/su/docs/create-page",bundlePath:"",filename:""},components:{App:o.default,Document:d.default},userland:n});a()}catch(e){a(e)}})},59390:(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),u=r(71934),d=r(72837),o=r(92702),n=e([d]);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)(d.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,o.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};let i=await (0,u.A)("SELECT * FROM docs_pages WHERE level=0");return{props:{user:a,appData:s,data:{docPages:i}}}}d=(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(32047));module.exports=a})();
@@ -1 +1 @@
"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 a=await (0,u.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};let s=await (0,d.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return s&&Array.isArray(s)&&s[0]?{props:{user:a,data:s[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})();
"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})();
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"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 a=await (0,n.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};let s=await (0,d.A)("SELECT * FROM docs_pages WHERE id=?",[r.id]);return s&&Array.isArray(s)&&s[0]?{props:{user:a,data:{targetDocPage:s[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})();
"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})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(()=>{var e={};e.id=7471,e.ids=[7471],e.modules={95687:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>P,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>v});var s=r(63865),i=r(9455),n=r(30671),d=r(5583),l=r(53881),u=r(88348),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,n.M)(u,"default"),p=(0,n.M)(u,"getStaticProps"),x=(0,n.M)(u,"getStaticPaths"),m=(0,n.M)(u,"getServerSideProps"),g=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),v=(0,n.M)(u,"unstable_getStaticProps"),f=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),b=(0,n.M)(u,"unstable_getServerProps"),q=(0,n.M)(u,"unstable_getServerSideProps"),P=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/load-balancing",pathname:"/admin/[user_id]/su/load-balancing",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:u});a()}catch(e){a(e)}})},53265:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732),i=r(53881),n=r(82015),d=r.n(n),l=r(57168),u=e([l]);function o(){let e=d().useContext(i.AppContext).pageProps.servers;return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Load Balancing"}),(0,s.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,s.jsx)("div",{})]}),(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,s.jsx)("div",{className:"flex flex-col gap-2 w-full",children:e.map((e,t)=>(0,s.jsx)(l.A,{server:e},t))})]})]})}l=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},88348:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>o,getServerSideProps:()=>c});var s=r(8732);r(82015);var i=r(53265),n=r(24934),d=r(92702),l=r(72837),u=e([i,l]);function o({user:e,data:t}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Load Balancing"}),(0,s.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,s.jsx)(l.A,{head:r,children:(0,s.jsx)(i.A,{})})}async function c({req:e,res:t,query:r}){let a=await (0,d.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};try{let e=(0,n.A)();if(!e)throw Error("No servers found");return{props:{user:a,servers:e}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}[i,l]=u.then?(await u)():u,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")},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")},29021:e=>{e.exports=require("fs")},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,8485],()=>r(95687));module.exports=a})();
"use strict";(()=>{var e={};e.id=7471,e.ids=[7471],e.modules={95687:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>P,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>v});var s=r(63865),i=r(9455),n=r(30671),d=r(5583),l=r(53881),u=r(88348),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,n.M)(u,"default"),p=(0,n.M)(u,"getStaticProps"),x=(0,n.M)(u,"getStaticPaths"),m=(0,n.M)(u,"getServerSideProps"),g=(0,n.M)(u,"config"),h=(0,n.M)(u,"reportWebVitals"),v=(0,n.M)(u,"unstable_getStaticProps"),f=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),b=(0,n.M)(u,"unstable_getServerProps"),q=(0,n.M)(u,"unstable_getServerSideProps"),P=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/su/load-balancing",pathname:"/admin/[user_id]/su/load-balancing",bundlePath:"",filename:""},components:{App:l.default,Document:d.default},userland:u});a()}catch(e){a(e)}})},53265:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732),i=r(53881),n=r(82015),d=r.n(n),l=r(57168),u=e([l]);function o(){let e=d().useContext(i.AppContext).pageProps.servers;return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Load Balancing"}),(0,s.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,s.jsx)("div",{})]}),(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,s.jsx)("div",{className:"flex flex-col gap-2 w-full",children:e.map((e,t)=>(0,s.jsx)(l.A,{server:e},t))})]})]})}l=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},88348:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>o,getServerSideProps:()=>c});var s=r(8732);r(82015);var i=r(53265),n=r(24934),d=r(92702),l=r(72837),u=e([i,l]);function o({user:e,data:t}){let r=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Load Balancing"}),(0,s.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,s.jsx)(l.A,{head:r,children:(0,s.jsx)(i.A,{})})}async function c({req:e,res:t,query:r}){let{user:a,appData:s}=await (0,d.A)(e,void 0,!1,!0);if(!a?.logged_in_status)return{redirect:{destination:`/admin/${a?.id}/login`,permanent:!1}};try{let e=(0,n.A)();if(!e)throw Error("No servers found");return{props:{user:a,appData:s,servers:e}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}[i,l]=u.then?(await u)():u,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")},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")},29021:e=>{e.exports=require("fs")},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,8485],()=>r(95687));module.exports=a})();
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long