dsql-admin/dsql-app/.local_dist/server/pages/su/users/[single].js
Benjamin Toby a7dfd48284 Updates
2024-12-09 10:39:09 +01:00

1 line
18 KiB
JavaScript

"use strict";(()=>{var e={};e.id=3632,e.ids=[3632],e.modules={3443:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{config:()=>p,default:()=>u,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>h,reportWebVitals:()=>f,routeModule:()=>b,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>j});var r=s(63865),l=s(9455),n=s(30671),i=s(49407),c=s(89600),o=s(29657),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,n.M)(o,"default"),h=(0,n.M)(o,"getStaticProps"),m=(0,n.M)(o,"getStaticPaths"),x=(0,n.M)(o,"getServerSideProps"),p=(0,n.M)(o,"config"),f=(0,n.M)(o,"reportWebVitals"),j=(0,n.M)(o,"unstable_getStaticProps"),g=(0,n.M)(o,"unstable_getStaticPaths"),v=(0,n.M)(o,"unstable_getStaticParams"),y=(0,n.M)(o,"unstable_getServerProps"),w=(0,n.M)(o,"unstable_getServerSideProps"),b=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/su/users/[single]",pathname:"/su/users/[single]",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:o});a()}catch(e){a(e)}})},84759:(e,t,s)=>{s.d(t,{A:()=>a});function a({editorHTMLElementRef:e,fieldObject:t,setRefresh:s,language:a="javascript",entry:r,jsonTextEditors:l,editorRef:n,readOnly:i,initialContent:c,options:o}){try{if(!ace?.edit||!e.current){console.log("Ace Editor not found!"),setTimeout(()=>{s?.(e=>e+1)},1e3);return}let d=ace.edit(e.current);d.setOptions({mode:"ace/mode/"+a,value:c||(t?.defaultValue?t.defaultValue:t?.fieldName&&r?.[t.fieldName]?(()=>{if("json"!==a)return r[t.fieldName];try{return JSON.stringify(JSON.parse(r[t.fieldName]),null,4)}catch(e){return r[t.fieldName]}})():""),placeholder:"json"==a?"{}":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,readOnly:i,...o}),n&&t?.fieldName&&(l?.current.push({fieldName:t.fieldName,ref:n}),n.current=d);try{ace.require("ace/ext/beautify").beautify(d.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}},51548:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(58526);function l({selectOptions:e,name:t,onChangeHandler:s,required:l,setAlert:n,title:i,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[i&&(0,a.jsxs)("label",{htmlFor:t,children:[i,l?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:l,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:s,title:r}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:r},t+1)})}),(0,a.jsx)(r.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:o})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}s(82015)},89788:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732);s(63715);var l=s(82015),n=s.n(l);s(84759);var i=s(75979),c=e([i]);function o({editorRef:e,content:t,readOnly:s,language:a="javascript",options:l,wrapperProps:c}){try{let e=n().useRef(),[t,s]=n().useState(0);return(0,r.jsx)("div",{...c,ref:e,className:(0,i.twMerge)("ace-editor-wrapper w-full h-full minimal-scrollbars all-children",c?.className)})}catch(e){return(0,r.jsx)(n().Fragment,{children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Editor Error"})})}}i=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},46437:(e,t,s)=>{s.d(t,{A:()=>l});var a=s(8732),r=s(23293);function l(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(r.A,{})})}s(82015)},58548:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),r=s(82015),l=s.n(r);function n({confirmedDelegetedUser:e,linksArray:t,user:s}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);let[r,n]=l().useState(t||null);return r&&r[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:r.map((e,t,s)=>t===r.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,a.jsxs)(l().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,a.jsx)(l().Fragment,{})}},34844:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),r=s(82015),l=s.n(r),n=s(96089);function i({content:e,language:t,style:s,showCopy:r}){let[i,c]=l().useState(!1),o=()=>{c(!0)},d={};return(0,a.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:s?{...s,...d}:d,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,a.jsx)("button",{className:"outlined copy-code "+(r?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{o()})},children:(0,a.jsx)(n.A,{className:"text-white",size:20})})]})}},84270:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>x});var r=s(8732),l=s(82015),n=s.n(l),i=s(21498),c=s(46437),o=s(92867),d=s(63715),u=s(32415),h=s(7264),m=e([h]);function x({data:e}){let t=e.user,[s,a]=n().useState(0),[l,m]=n().useState(!1);return(0,r.jsxs)(n().Fragment,{children:[(0,r.jsxs)("div",{className:"w-full justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]}),(0,r.jsx)("span",{className:"info w-auto gray font-normal",children:t.email})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("button",{onClick:e=>{window.confirm(`Create a new backup for ${t.first_name}?`)&&(m(!0),(0,d.A)("/api/admin/addUserBackup",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&a(e=>e+1),setTimeout(()=>{m(!1)},1e3)}))},className:"relative",children:[l&&(0,r.jsx)(u.A,{width:"20px"}),"Backup User"]})})]}),(0,r.jsx)(i.A,{userObject:t,userPage:!0}),(0,r.jsx)(o.A,{user:t,refresh:s,setRefresh:a}),(0,r.jsx)(h.A,{user:t,refresh:s,setRefresh:a})]})}h=(m.then?(await m)():m)[0],a()}catch(e){a(e)}})},92867:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(8732),r=s(82015),l=s.n(r),n=s(32415);s(63715);var i=s(47338);function c({user:e,refresh:t,setRefresh:s}){let[r,c]=l().useState(!1),[o,d]=l().useState([]);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!o&&(0,a.jsx)(n.A,{width:"20px",position:"relative"}),o&&!o[0]&&(0,a.jsx)("div",{children:"This user has no backups"}),o&&o[0]&&o.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((t,s)=>{let r=new Date(parseInt(t));return(0,a.jsxs)("a",{href:`/su/users/${e.id}/${t}`,className:"card w-full items-center",children:[(0,a.jsx)(i.A,{}),(0,a.jsx)("b",{children:"Backup:"}),(0,a.jsx)("span",{children:r.toString()})]},t)})]})}},21498:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732),r=s(82015),l=s.n(r);function n({userObject:e,userPage:t}){let s=Object.keys(e),[r,n]=l().useState(!1),[i,c]=l().useState(0),[o,d]=l().useState(!t);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?d(!1):d(!0)},children:o?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,r)=>(0,a.jsxs)(l().Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,a.jsx)("b",{children:e[t]})]})}),r<s.length-1&&(0,a.jsx)("hr",{})]},r+1))}),(0,a.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{d(!0)},children:"Collapse"})]})}},7264:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>d});var r=s(8732),l=s(82015),n=s.n(l);s(63715);var i=s(16845),c=s(64102),o=e([c]);function d({user:e,refresh:t,setRefresh:s}){let[a,l]=n().useState(!1),[o,d]=n().useState(null),[u,h]=n().useState(null);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),o&&(0,r.jsx)(i.A,{user:e,rootFilesArray:o}),u&&(0,r.jsx)(c.A,{user:e,databases:u})]})}c=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},64102:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>h});var r=s(8732),l=s(82015),n=s.n(l);s(46437),s(58548);var i=s(32415),c=s(63715),o=s(21243),d=s(51548),u=e([o]);function h({user:e,databases:t}){try{let s=n().useRef(),a=n().useRef(),l=n().useRef(t[0]),[u,h]=n().useState(!1),[m,x]=n().useState(!1),[p,f]=n().useState(0),[j,g]=n().useState(t[0]),[v,y]=n().useState([]);return(0,r.jsxs)("div",{className:"paper w-full",children:[(0,r.jsx)("h3",{className:"text-lg m-0",children:(0,r.jsx)("span",{children:"Database Shell"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(d.A,{selectOptions:t.map(t=>({payload:t,title:t?.replace(RegExp(`datasquirel_user_${e.id}_`),"")})),name:"select-database",onChangeHandler:e=>{g(e.target.value),l.current=e.target.value},title:"Databases"}),j&&v&&(0,r.jsx)(d.A,{selectOptions:v.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,r.jsxs)("div",{className:"w-full flex-col relative",children:[(0,r.jsx)("div",{ref:s,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,r.jsxs)("button",{className:"absolute right-4 bottom-4"+(u?" pointer-events-none opacity-70":""),onClick:e=>{!function(){h(!0);let e=a.current?a.current.getValue():null;if(!e?.match(/./))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,c.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:l.current,query:t}},!0).then(e=>{e.success?x(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{h(!1)},500)})}()},children:[u&&(0,r.jsx)(i.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),u?"Running Query ...":"Run Query"]})]}),m&&!u&&(0,r.jsx)(o.A,{data:m,user:e})]})}catch(e){return console.log(e),(0,r.jsx)(n().Fragment,{children:(0,r.jsx)("section",{className:"card",children:(0,r.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}o=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},21243:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.d(t,{A:()=>o});var r=s(8732),l=s(89788),n=s(82015),i=s.n(n),c=e([l]);function o({data:e,user:t}){try{return Object.keys(e[0]),(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",children:(0,r.jsx)(l.A,{content:JSON.stringify(e,null,4)})})})}catch(e){return(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("span",{children:"No results"})})}}l=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},16845:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(8732),r=s(82015),l=s.n(r),n=s(34844),i=s(63715),c=s(66916);function o({user:e,file:t,activeFile:s,setActiveFile:r}){return(0,a.jsxs)("button",{className:"justify-start gap-4"+(s?.path===`${t.root}/${t.name}`?" dark":" light-gray"),onClick:s=>{(0,i.A)("/api/admin/grabFile",{method:"post",body:{user:e,type:"file",path:`${t.root}/${t.name}`}}).then(e=>{if(e.success)try{r({title:t.name,path:`${t.root}/${t.name}`,data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(s){r({title:t.name,path:`${t.root}/${t.name}`,data:e.data})}})},children:[(0,a.jsx)(c.A,{}),t.name]})}var d=s(96089),u=s(54677);function h({user:e,file:t,activeFile:s,setActiveFile:r}){let[n,i]=l().useState(null),[c,m]=l().useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d.A,{fontSize:"small",className:"text-slate-400"}),t.name,(0,a.jsx)(u.A,{className:"ml-auto absolute right-2"})]}),t.content&&(0,a.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:t.content.map((t,l)=>t?.type?.match(/file/i)?(0,a.jsx)(o,{user:e,file:t,activeFile:s,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s,setActiveFile:r},l))})]})}function m({user:e,rootFilesArray:t}){let[s,r]=l().useState(null);return(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,a.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,a.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:t.map((t,l)=>t?.type?.match(/file/)?(0,a.jsx)(o,{user:e,file:t,activeFile:s,setActiveFile:r},l):(0,a.jsx)(h,{user:e,file:t,activeFile:s,setActiveFile:r},l))}),(0,a.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:s&&(0,a.jsx)(n.A,{content:s.data||"",language:"javascript"})})]})]})}},23293:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},96089:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},47338:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FolderSync",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},54677:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},67216:(e,t,s)=>{let a=s(9973),r=s(31976),l=a({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):void 0,charset:"utf8mb4",ssl:r()}});async function n(...e){try{let t=await l.query(...e);return await l.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,s)=>{let a=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!a.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},29657:(e,t,s)=>{s.a(e,async(e,a)=>{try{s.r(t),s.d(t,{default:()=>x,getServerSideProps:()=>p});var r=s(8732),l=s(82015),n=s.n(l),i=s(93615),c=s.n(i),o=s(49888),d=s(84270),u=s(67216),h=s.n(u),m=e([d]);function x({user:e,data:t}){let s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(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"})]})]});return(0,r.jsx)(o.A,{head:s,user:e,children:(0,r.jsx)(d.A,{data:t})})}async function p({req:e,res:t,query:s}){let a=await c()(e);if(!a?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let r=await h()(`SELECT * FROM users WHERE id='${s.single}'`);return r?.[0]?{props:{user:a,data:{user:r?.[0]||{}}}}:{redirect:{destination:"/su/users",permanent:!1}}}d=(m.then?(await m)():m)[0],a()}catch(e){a(e)}})},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")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[883,9821,9600,3932],()=>s(3443));module.exports=a})();