"use strict";(()=>{vare={};e.id=5516,e.ids=[636,5516],e.modules={42452:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>P,getServerSideProps:()=>v,getStaticPaths:()=>_,getStaticProps:()=>f,reportWebVitals:()=>h,routeModule:()=>w,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>D});vars={};t.r(s),t.d(s,{default:()=>S,getServerSideProps:()=>g});vari=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),n=t(8732);t(82015);varl=t(93615),c=t.n(l),m=t(64987),x=t(36299),d=t(67216),q=t.n(d);functionS({user:e,data:r}){lett=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,n.jsx)(m.A,{head:t,user:e,children:(0,n.jsx)(x.A,{data:r})})}asyncfunctiong({req:e,res:r,query:t}){lets=awaitc()(e);returns?.logged_in_status?{props:{user:s,data:{users:awaitq()("SELECT * FROM users ORDER BY id DESC")}}}:{redirect:{destination:"/su/login",permanent:!1}}}letP=(0,o.M)(s,"default"),f=(0,o.M)(s,"getStaticProps"),_=(0,o.M)(s,"getStaticPaths"),v=(0,o.M)(s,"getServerSideProps"),y=(0,o.M)(s,"config"),h=(0,o.M)(s,"reportWebVitals"),D=(0,o.M)(s,"unstable_getStaticProps"),b=(0,o.M)(s,"unstable_getStaticPaths"),M=(0,o.M)(s,"unstable_getStaticParams"),E=(0,o.M)(s,"unstable_getServerProps"),R=(0,o.M)(s,"unstable_getServerSideProps"),w=newi.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su",pathname:"/su",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},67216:(e,r,t)=>{lets=t(9973),i=t(31976),u=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void0,charset:"utf8mb4",ssl:i()}});asyncfunctiono(...e){try{letr=awaitu.query(...e);returnawaitu.end(),JSON.parse(JSON.stringify(r))}catch(e){returnconsole.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,r,t)=>{lets=t(29021);e.exports=function(){lete=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;letr=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports