1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
"use strict";(()=>{var e={};e.id=2504,e.ids=[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:()=>U,getServerSideProps:()=>D,getStaticPaths:()=>V,getStaticProps:()=>O,reportWebVitals:()=>F,routeModule:()=>Y,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>X,unstable_getStaticParams:()=>W,unstable_getStaticPaths:()=>B,unstable_getStaticProps:()=>H});var a={};t.r(a),t.d(a,{ConnectContext:()=>T,default:()=>q,getServerSideProps:()=>G});var l=t(63865),r=t(9455),n=t(30671),i=t(49407),d=t(89600),c=t(8732),o=t(82015),u=t.n(o),h=t(95222),p=t(20048),x=t.n(p),m=t(67216),j=t.n(m),y=t(58548),f=t(96089),b=t(25088);function g(e){let{user:s,query:t,mariadbUserCred:a}=u().useContext(T);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:a.mariadb_user})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:a.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(a.mariadb_pass||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(f.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,{}),"Download"]})})})]})})]})]})})}var v=t(55158),A=t(32415),E=t(63715),S=t(11717),N=t(96725);function w({mariadbUser:e}){let{setTargetMariadbUser:s}=u().useContext(T),t=!!String(e.primary)?.match(/1/),[a,l]=u().useState(!1);return(0,c.jsxs)("div",{className:"card w-full col"+(t?" green":""),children:[a&&(0,c.jsx)(A.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,v.PB)("edit-mariadb-user-popup")},children:(0,c.jsx)(S.A,{size:20})}),!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?")&&(l(!0),(0,E.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(()=>{l(!1)},1e3)}))},children:(0,c.jsx)(N.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)(f.A,{size:20})})]})]})]})}function k(e){let{mariadbUsers:s}=u().useContext(T);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,v.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 P(e){let{user:s,query:t,mariadbUserCred:a}=u().useContext(T);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)(y.A,{user:s})]}),(0,c.jsx)(g,{}),(0,c.jsx)(k,{})]})}function L({grants:e,setGrants:s,edit:t}){let{user:a,targetMariadbUser:l}=u().useContext(T),r=!!String(l?.primary).match(/1/)&&t,n=!!e.find(e=>"*"==e.database),i=!!e.find(e=>"*"==e.table),d=!!e.find(e=>e.privileges.includes("ALL PRIVILEGES")),[o,h]=u().useState([]),[p,x]=u().useState({}),[m,j]=u().useState([]),[y,f]=u().useState({}),[b,g]=u().useState(["ALL PRIVILEGES"]),[v,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,a)=>(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}),!r&&(0,c.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:t=>{let l=[...e];l.splice(a,1),s(l)},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",{}),n&&i&&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:r?(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&&x(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=m.find(e=>e.table_slug==s);t&&f(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),m?.[0]&&m.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),g(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(v)){if(b.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}g([...b,v])}},children:"+"})]})]}),!r&&(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:p.db_full_name||"*",privileges:b,table:y.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"})]})}):r?(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 C({mariaDBUser:e,edit:s,username:t}){let{user:a}=u().useContext(T),l=e?Object.keys(e):["username","host","password"],r=/username|host|password/,n=/username/,i=/host/,d=(()=>{try{if(s&&e?.grants)return JSON.parse(e.grants);return null}catch(e){return null}})(),[o,h]=u().useState(d||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[p,x]=u().useState(!1);return(0,c.jsxs)("form",{onSubmit:t=>{t.preventDefault(),console.log("form clicked");let a=Array.from(t.target),l={};if(a.forEach(e=>{"INPUT"==e.nodeName&&(l[e.name]=e.value)}),s&&delete l.username,!o?.[0]){alert("Please add at least one grant");return}x(!0),(0,E.A)(s?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:l,edit:!!s,prev:e,grants:o}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),x(!1))})},className:"w-full gap-4 flex flex-col",children:[p&&(0,c.jsx)(A.A,{width:"25px"}),l.map((s,t)=>{let l=e?e[s]:"username"==s?`dsql_user_${a.id}`:null,d=n.test(s),o=i.test(s);return s.match(r)?(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:l||void 0,readOnly:d,className:d?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:s,required:o})]},t+1):null}),(0,c.jsx)(L,{grants:o,setGrants:h,edit:s}),(0,c.jsx)("button",{type:"submit",children:s?"Update User":"Create SQL User"})]})}function M(e){let{targetMariadbUser:s}=u().useContext(T),[t,a]=u().useState(!1);return(0,c.jsx)(v.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)(C,{mariaDBUser:s,edit:!0})]}):(0,c.jsx)("div",{className:"p-20",children:(0,c.jsx)(A.A,{width:"25px"})})})}function _(e){return(0,c.jsxs)(v.Ay,{title:"new-mariadb-user-popup",children:[(0,c.jsx)("h3",{children:"New MariaDB User"}),(0,c.jsx)("hr",{}),(0,c.jsx)(C,{})]})}var R=t(77463),I=t.n(R);let T=u().createContext({});function q({user:e,query:s,mariadbUserCred:t,mariadbUsers:a}){let l=(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"})]}),[r,n]=u().useState(null),[i,d]=u().useState(null);return(0,c.jsx)(h.A,{head:l,user:e,aceEditor:!0,children:(0,c.jsxs)(T.Provider,{value:{user:e,query:s,mariadbUserCred:t,mariadbUsers:a,targetMariadbUser:r,setTargetMariadbUser:n,refresh:i,setRefresh:d},children:[(0,c.jsx)(P,{}),(0,c.jsx)(M,{}),(0,c.jsx)(_,{})]})})}async function G({req:e,res:s,query:t}){let a=await x()(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let l=await j()("SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?",[a.id]),r=l?.[0]||{};r?.mariadb_pass&&(r.mariadb_pass=I()({encryptedString:r.mariadb_pass}));let n=await j()("SELECT * FROM mariadb_users WHERE user_id = ?",[a.id]);if(n?.[0])for(let e=0;e<n.length;e++){let s=n[e];s.password=I()({encryptedString:s.password})}return{props:{user:a,query:t,mariadbUserCred:r,mariadbUsers:n}}}let U=(0,n.M)(a,"default"),O=(0,n.M)(a,"getStaticProps"),V=(0,n.M)(a,"getStaticPaths"),D=(0,n.M)(a,"getServerSideProps"),z=(0,n.M)(a,"config"),F=(0,n.M)(a,"reportWebVitals"),H=(0,n.M)(a,"unstable_getStaticProps"),B=(0,n.M)(a,"unstable_getStaticPaths"),W=(0,n.M)(a,"unstable_getStaticParams"),Q=(0,n.M)(a,"unstable_getServerProps"),X=(0,n.M)(a,"unstable_getServerSideProps"),Y=new l.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/connect",pathname:"/admin/[user_id]/connect",bundlePath:"",filename:""},components:{App:d.default,Document:i.default},userland:a})},55158:(e,s,t)=>{t.d(s,{Ay:()=>i,PB:()=>d,fs:()=>c});var a=t(8732),l=t(58150),r=t(82015),n=t.n(r);function i({children:e,title:s,data:t,fullPage:r,wrapperClasses:i,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return r?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(i||""),"data-popupid":s||null,style:o,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,a.jsx)(l.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,a.jsx)(n().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.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()}},23293:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},92441:(e,s,t)=>{t.d(s,{A:()=>a});let a=(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"}]])},96725:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},96089:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(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"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>a});let a=(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"}]])},25088:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>a});let a=(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:()=>a});let a=(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:()=>a});let a=(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:()=>a});let a=(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:()=>a});let a=(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:()=>a});let a=(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"}]])},11717:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(82544).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>a});let a=(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:()=>a});let a=(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={}))},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")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[883,9821,9600,7070],()=>t(88297));module.exports=a})(); |