"use strict";(()=>{var e={};e.id=6930,e.ids=[636,6930],e.modules={26364:(e,t,r)=>{r.a(e,async(e,i)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>T,unstable_getStaticProps:()=>q});var s=r(63865),a=r(9455),u=r(30671),o=r(49407),l=r(68268),n=r(98842),p=e([n]);n=(p.then?(await p)():p)[0];let m=(0,u.M)(n,"default"),d=(0,u.M)(n,"getStaticProps"),c=(0,u.M)(n,"getStaticPaths"),x=(0,u.M)(n,"getServerSideProps"),g=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),T=(0,u.M)(n,"unstable_getStaticPaths"),y=(0,u.M)(n,"unstable_getStaticParams"),I=(0,u.M)(n,"unstable_getServerProps"),f=(0,u.M)(n,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:n});i()}catch(e){i(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let a="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),o=t.fields;function u(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let l=[],n=[];l.push(`type ${s} = {`),n.push(`/**
 * @typedef {object} ${s}`),o.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(i.A)?"?":"";l.push(`    ${e.fieldName}${t}: ${u(e.dataType||"")};`),n.push(` * @property {${u(e.dataType||"")}${t}} ${e.fieldName}`)}),l.push("}"),n.push(" */"),e?.match(/javascript/i)&&(a=n.join("\n")),e?.match(/typescript/i)&&(a=l.join("\n"))}catch(e){console.log(e.message),a=null}return a}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({collapse:e,setCollapse:t}){return(0,i.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,i.jsx)("span",{children:e?"Expand":"Collapse"}),(0,i.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,i.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:a}){return(0,i.jsx)(i.Fragment,{})}r(82015),r(1976),r(58150)},64030:(e,t,r)=>{r.d(t,{A:()=>i});let i=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},22373:(e,t,r)=>{let i=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:a}){let u=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||i||t||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR ===========================
Error Message: ${t}
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=`
User Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),a?.url&&(s+=`
URL: ${a.url}`),a?.body&&(s+=`
Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=`
IP: ${o}`),s+=`
Date: ${u.toDateString()}
========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let l=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",s),i.appendFileSync("./.tmp/error.log",`




${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},51859:e=>{e.exports=require("@monaco-editor/react")},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")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},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")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},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")},94327:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT  means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,9732,8842],()=>r(26364));module.exports=i})();