"use strict";(()=>{var e={};e.id=6930,e.ids=[6930],e.modules={52738:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>h,default:()=>c,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>x,routeModule:()=>b,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>N,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>T});var i=r(63865),s=r(9455),n=r(30671),l=r(5583),o=r(53881),d=r(78704),u=e([d]);d=(u.then?(await u)():u)[0];let c=(0,n.M)(d,"default"),m=(0,n.M)(d,"getStaticProps"),p=(0,n.M)(d,"getStaticPaths"),g=(0,n.M)(d,"getServerSideProps"),h=(0,n.M)(d,"config"),x=(0,n.M)(d,"reportWebVitals"),T=(0,n.M)(d,"unstable_getStaticProps"),I=(0,n.M)(d,"unstable_getStaticPaths"),f=(0,n.M)(d,"unstable_getStaticParams"),S=(0,n.M)(d,"unstable_getServerProps"),N=(0,n.M)(d,"unstable_getServerSideProps"),b=new i.PagesRouteModule({definition:{kind:s.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:o.default,Document:l.default},userland:d});a()}catch(e){a(e)}})},60424:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(42960);function i({paradigm:e,table:t,query:r,typeDefName:i,allValuesOptional:s,addExport:n}){let l="";try{let d=i||`DSQL_${r.single}_${r.single_table}`.toUpperCase(),u=t.fields;function o(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let c=[],m=[];c.push(`${n?"export ":""}type ${d} = {`),m.push(`/**
 * @typedef {object} ${d}`),u.forEach(e=>{let t=s?"?":e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";c.push(`    ${e.fieldName}${t}: ${o(e.dataType||"")};`),m.push(` * @property {${o(e.dataType||"")}${t}} ${e.fieldName}`)}),c.push("}"),m.push(" */"),e?.match(/javascript/i)&&(l=m.join("\n")),e?.match(/typescript/i)&&(l=c.join("\n"))}catch(e){console.log(e.message),l=null}return l}},51339:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({collapse:e,setCollapse:t}){return(0,a.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,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},84483:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(8732);function i({children:e,open:t,setOpen:r,onClose:i,maxWidth:s}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},42960:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},77047:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(29021),i=r.n(a);async function s({user:e,message:t,component:r,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],t=s.headers["x-real-ip"],r=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=r||a||t||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR ===========================
Error Message: ${t}
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=`
User Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),s?.url&&(a+=`
URL: ${s.url}`),s?.body&&(a+=`
Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=`
IP: ${l}`),a+=`
Date: ${n.toDateString()}
========================================`,i().existsSync("./.tmp/error.log")||i().writeFileSync("./.tmp/error.log","","utf-8");let o=i().readFileSync("./.tmp/error.log","utf-8");i().writeFileSync("./.tmp/error.log",a),i().appendFileSync("./.tmp/error.log",`




${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},13893:e=>{e.exports=require("@moduletrace/datasquirel/dist/client/fetch")},39383:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/actions/users/user-auth")},65967:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},93726:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},30889:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},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")},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")},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"},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215"},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295"},{"title":"DECIMAL","name":"DECIMAL","description":"Numbers with decimals","integer":"1-100","decimals":"1-4"},{"title":"FLOAT","name":"FLOAT","description":"Numbers with decimals","integer":"1-100","decimals":"1-4"},{"title":"DOUBLE","name":"DOUBLE","description":"Numbers with decimals","integer":"1-100","decimals":"1-4"},{"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),a=t.X(0,[883,9821,5840,3881,8892,8469,3155,6247,725,4627,8704],()=>r(52738));module.exports=a})();