dsql-admin/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js
Benjamin Toby 8b7ea057d0 Updates
2024-12-06 14:24:26 +01:00

1 line
22 KiB
JavaScript

"use strict";(()=>{var e={};e.id=2504,e.ids=[636,2504],e.modules={30671:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,t){return t in s?s[t]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,t)):"function"==typeof s&&"default"===t?s:void 0}}})},88297:(e,s,t)=>{t.r(s),t.d(s,{config:()=>z,default:()=>H,getServerSideProps:()=>G,getStaticPaths:()=>O,getStaticProps:()=>U,reportWebVitals:()=>F,routeModule:()=>Y,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>X,unstable_getStaticParams:()=>W,unstable_getStaticPaths:()=>B,unstable_getStaticProps:()=>D});var r={};t.r(r),t.d(r,{ConnectContext:()=>I,default:()=>T,getServerSideProps:()=>V});var a=t(63865),l=t(9455),i=t(30671),n=t(49407),d=t(68268),c=t(8732),o=t(82015),u=t.n(o),p=t(95222),x=t(20048),m=t.n(x),h=t(67216),j=t.n(h),f=t(58548),y=t(72412),b=t(54827);function v(e){let{user:s,query:t,mariadbUserCred:r}=u().useContext(I);return(0,c.jsx)("section",{className:"paper",children:(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Server:"," ",(0,c.jsx)("b",{children:"172.72.0.24"})]}),(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:r.mariadb_user})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:r.mariadb_host})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(r.mariadb_pass||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(y.A,{})})]}),(0,c.jsx)("li",{children:(0,c.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,c.jsx)("b",{children:(0,c.jsx)("span",{className:"flex items-center gap-2",children:(0,c.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,c.jsx)(b.A,{className:"-mt-[3px]"}),"Download"]})})})]})})]})]})})}var g=t(56062),A=t(55158),E=t(32415),S=t(77627),N=t(63715);function w({mariadbUser:e}){let{setTargetMariadbUser:s}=u().useContext(I),t=!!String(e.primary)?.match(/1/),[r,a]=u().useState(!1);return(0,c.jsxs)("div",{className:"card w-full col"+(t?" green":""),children:[r&&(0,c.jsx)(E.A,{width:"25px"}),(0,c.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,c.jsxs)("span",{className:"title",children:[e.username,"@",e.host]}),(0,c.jsxs)("div",{children:[t&&(0,c.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,c.jsx)("button",{className:"ghost",title:"Edit User",onClick:t=>{s(e),(0,A.PB)("edit-mariadb-user-popup")},children:(0,c.jsx)(g.A,{})}),!t&&(0,c.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:s=>{window.confirm("Are you sure you want to delete this User?")&&(a(!0),(0,N.A)("/api/sql-users/delete",{method:"POST",body:{id:e.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{a(!1)},1e3)}))},children:(0,c.jsx)(S.A,{})})]})]}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:e.username})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:e.host}),(0,c.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:s=>{navigator.clipboard.writeText(e.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(y.A,{className:"text-[15px] -ml-2"})})]})]})]})}function P(e){let{mariadbUsers:s}=u().useContext(I);return(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsxs)("div",{className:"w-full justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,c.jsx)("div",{children:(0,c.jsx)("button",{onClick:e=>{(0,A.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:s.map((e,s)=>(0,c.jsx)(w,{mariadbUser:e},s+1))})]})]})}function C(e){let{user:s,query:t,mariadbUserCred:r}=u().useContext(I);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsx)("div",{className:"",children:(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,c.jsx)(f.A,{user:s})]}),(0,c.jsx)(v,{}),(0,c.jsx)(P,{})]})}function k({grants:e,setGrants:s,edit:t}){let{user:r,targetMariadbUser:a}=u().useContext(I),l=!!String(a?.primary).match(/1/)&&t,i=!!e.find(e=>"*"==e.database),n=!!e.find(e=>"*"==e.table),d=!!e.find(e=>e.privileges.includes("ALL PRIVILEGES")),[o,p]=u().useState([]),[x,m]=u().useState({}),[h,j]=u().useState([]),[f,y]=u().useState({}),[b,v]=u().useState(["ALL PRIVILEGES"]),[g,A]=u().useState("ALL PRIVILEGES"),[E,S]=u().useState(!1);return(0,c.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,c.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,c.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"flex-wrap",children:e?.[0]?e.map((t,r)=>(0,c.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,c.jsx)("span",{children:t.privileges}),(0,c.jsx)("span",{children:"="}),(0,c.jsxs)("span",{children:[" ",t.database.replace(/datasquirel_user_\d+_/,"")]}),(0,c.jsx)("span",{children:"."}),(0,c.jsx)("span",{children:t.table}),!l&&(0,c.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:t=>{let a=[...e];a.splice(r,1),s(a)},children:"x"})]})):(0,c.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,c.jsx)("hr",{}),i&&n&&d?(0,c.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):E?(0,c.jsx)(c.Fragment,{children:l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,c.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=o.find(e=>e.db_full_name==s);t&&m(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),o.map((e,s)=>(0,c.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,c.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=h.find(e=>e.table_slug==s);t&&y(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),h?.[0]&&h.map((e,s)=>(0,c.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,c.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:b?.[0]?b.map((e,s)=>(0,c.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,c.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...b];t.splice(s,1),v(t)},children:"x"})]})):(0,c.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,c.jsxs)("div",{className:"w-full items-stretch",children:[(0,c.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{A(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,c.jsx)("option",{value:e,children:e},s))}),(0,c.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!b.includes(g)){if(b.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}v([...b,g])}},children:"+"})]})]}),!l&&(0,c.jsxs)("div",{className:"button outlined secondary",onClick:t=>{if(!b?.[0]){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}s([...e,{database:x.db_full_name||"*",privileges:b,table:f.table_slug||"*"}]),S(!1)},children:[(0,c.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]}),(0,c.jsx)("div",{className:"button outlined gray",onClick:()=>{S(!1)},children:"Cancel"})]})}):l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)("div",{className:"button outlined gray",onClick:e=>{S(!0)},children:[(0,c.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function q({mariaDBUser:e,edit:s,username:t}){let{user:r}=u().useContext(I),a=e?Object.keys(e):["username","host","password"],l=/username|host|password/,i=/username/,n=/host/,d=(()=>{try{if(s&&e?.grants)return JSON.parse(e.grants);return null}catch(e){return null}})(),[o,p]=u().useState(d||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[x,m]=u().useState(!1);return(0,c.jsxs)("form",{onSubmit:t=>{t.preventDefault(),console.log("form clicked");let r=Array.from(t.target),a={};if(r.forEach(e=>{"INPUT"==e.nodeName&&(a[e.name]=e.value)}),s&&delete a.username,!o?.[0]){alert("Please add at least one grant");return}m(!0),(0,N.A)(s?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:a,edit:!!s,prev:e,grants:o}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),m(!1))})},className:"w-full gap-4 flex flex-col",children:[x&&(0,c.jsx)(E.A,{width:"25px"}),a.map((s,t)=>{let a=e?e[s]:"username"==s?`dsql_user_${r.id}`:null,d=i.test(s),o=n.test(s);return s.match(l)?(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:s,children:s}),(0,c.jsx)("input",{type:s.match("password")?"password":"text",name:s,id:s,defaultValue:a||void 0,readOnly:d,className:d?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:s,required:o})]},t+1):null}),(0,c.jsx)(k,{grants:o,setGrants:p,edit:s}),(0,c.jsx)("button",{type:"submit",children:s?"Update User":"Create SQL User"})]})}function L(e){let{targetMariadbUser:s}=u().useContext(I),[t,r]=u().useState(!1);return(0,c.jsx)(A.Ay,{title:"edit-mariadb-user-popup",children:t&&s?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{children:(0,c.jsxs)("div",{className:"flex",children:[(0,c.jsx)("span",{children:"Edit"}),(0,c.jsxs)("span",{className:"info inline w-auto text-xl green",children:[s.username,"@",s.host]})]})}),(0,c.jsx)("hr",{}),(0,c.jsx)(q,{mariaDBUser:s,edit:!0})]}):(0,c.jsx)("div",{className:"p-20",children:(0,c.jsx)(E.A,{width:"25px"})})})}function M(e){return(0,c.jsxs)(A.Ay,{title:"new-mariadb-user-popup",children:[(0,c.jsx)("h3",{children:"New MariaDB User"}),(0,c.jsx)("hr",{}),(0,c.jsx)(q,{})]})}var _=t(77463),R=t.n(_);let I=u().createContext({});function T({user:e,query:s,mariadbUserCred:t,mariadbUsers:r}){let a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[l,i]=u().useState(null),[n,d]=u().useState(null);return(0,c.jsx)(p.A,{head:a,user:e,aceEditor:!0,children:(0,c.jsxs)(I.Provider,{value:{user:e,query:s,mariadbUserCred:t,mariadbUsers:r,targetMariadbUser:l,setTargetMariadbUser:i,refresh:n,setRefresh:d},children:[(0,c.jsx)(C,{}),(0,c.jsx)(L,{}),(0,c.jsx)(M,{})]})})}async function V({req:e,res:s,query:t}){let r=await m()(e,s);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await j()("SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?",[r.id]),l=a?.[0]||{};l?.mariadb_pass&&(l.mariadb_pass=R()({encryptedString:l.mariadb_pass}));let i=await j()("SELECT * FROM mariadb_users WHERE user_id = ?",[r.id]);if(i?.[0])for(let e=0;e<i.length;e++){let s=i[e];s.password=R()({encryptedString:s.password})}return{props:{user:r,query:t,mariadbUserCred:l,mariadbUsers:i}}}let H=(0,i.M)(r,"default"),U=(0,i.M)(r,"getStaticProps"),O=(0,i.M)(r,"getStaticPaths"),G=(0,i.M)(r,"getServerSideProps"),z=(0,i.M)(r,"config"),F=(0,i.M)(r,"reportWebVitals"),D=(0,i.M)(r,"unstable_getStaticProps"),B=(0,i.M)(r,"unstable_getStaticPaths"),W=(0,i.M)(r,"unstable_getStaticParams"),Q=(0,i.M)(r,"unstable_getServerProps"),X=(0,i.M)(r,"unstable_getServerSideProps"),Y=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/connect",pathname:"/admin/[user_id]/connect",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:r})},55158:(e,s,t)=>{t.d(s,{Ay:()=>n,PB:()=>d,fs:()=>c});var r=t(8732),a=t(58150),l=t(82015),i=t.n(l);function n({children:e,title:s,data:t,fullPage:l,wrapperClasses:n,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return l?(0,r.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":s||null,style:o,children:[u?(0,r.jsx)(i().Fragment,{children:e}):(0,r.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,r.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,r.jsx)(a.A,{color:"white",size:20})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,r.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,r.jsx)(i().Fragment,{children:e}):(0,r.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,r.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,r.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s&&s(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},26406:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},72412:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopyOutlined")},77627:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},56062:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNoteOutlined")},54827:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"m12 16 4-4h-3V3h-2v9H8zm9-13h-6v1.99h6v14.03H3V4.99h6V3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9 13 4-4h-3V3h-2v9H8zm9-13h-6v1.99h6v14.03H3V4.99h6V3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"SystemUpdateAltOutlined")},92441:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(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"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,s)=>{var t;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},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=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},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")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[9764,883,8268,7070],()=>t(88297));module.exports=r})();