2024-12-08 08:57:48 +00:00
|
|
|
"use strict";(()=>{var e={};e.id=8591,e.ids=[636,8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},23133:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>d,reportWebVitals:()=>y,routeModule:()=>M,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>g,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>v});var a=r(63865),i=r(9455),l=r(30671),u=r(49407),n=r(68268),c=r(74094),o=e([c]);c=(o.then?(await o)():o)[0];let p=(0,l.M)(c,"default"),d=(0,l.M)(c,"getStaticProps"),m=(0,l.M)(c,"getStaticPaths"),h=(0,l.M)(c,"getServerSideProps"),x=(0,l.M)(c,"config"),y=(0,l.M)(c,"reportWebVitals"),v=(0,l.M)(c,"unstable_getStaticProps"),A=(0,l.M)(c,"unstable_getStaticPaths"),f=(0,l.M)(c,"unstable_getStaticParams"),q=(0,l.M)(c,"unstable_getServerProps"),g=(0,l.M)(c,"unstable_getServerSideProps"),M=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:n.default,Document:u.default},userland:c});s()}catch(e){s(e)}})},74223:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>x});var a=r(8732),i=r(82015),l=r.n(i),u=r(58548),n=r(51548),c=r(74094),o=r(40942);r(63715),r(34844);var p=r(89788),d=r(56248),m=r.n(d),h=e([c,o,p]);function x(e){let{dbSchemaData:t,user:r}=l().useContext(c.UserSchemaContext),[s,i]=l().useState(t),[o,d]=l().useState(null),[h,x]=l().useState(null),[y,v]=l().useState(null);return(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,a.jsx)(u.A,{user:r})]}),(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(n.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...t.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?d(null):d(e.target.value)}}),h&&h[0]&&(0,a.jsx)(n.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...h.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?v(null):v(e.target.value)}})]})]}),(0,a.jsx)(p.A,{content:m().stringify(s,null,4),readOnly:!0,options:{wrap:!0},wrapperProps:{className:"h-[60vh]"}})]})})]})}[c,o,p]=h.then?(await h)():h,s()}catch(e){s(e)}})},40942:(e,t,r)=>{r.a(e,async(e,t)=>{try{r(8732),r(82015);var s=r(74094),a=e([s]);s=(a.then?(await a)():a)[0],t()}catch(e){t(e)}})},24671:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}r(82015)},42178:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.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,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.
|