"use strict";(()=>{vare={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},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")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,t){returntinr?r[t]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,t)):"function"==typeofr&&"default"===t?r:void0}}})},43634:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>u,routeModule:()=>d});vars={};t.r(s),t.d(s,{default:()=>l});vara=t(89947),n=t(2706),o=t(96762),c=t(57638),i=t.n(c);asyncfunctionl(e,r){if("GET"!==e.method)returnr.json({success:!1,msg:"Failed!"});let{type:t,value:s,tableName:a,dbFullName:n,userId:o,dbId:c,userType:l,database:u}=e.query,p=`SELECT \`${t}\` FROM \`${a}\` WHERE \`${t}\`=?`,d=[s];o&&(p+=" AND user_id=?",d.push(o)),c&&(p+=" AND db_id=?",d.push(c)),l&&(p+=" AND user_type=?",d.push(l)),u&&(p+=" AND `database`=?",d.push(u));let_=awaiti()({queryString:p,queryValuesArray:d,database:n&&"string"==typeofn?n.replace(/[^a-z0-9_]/g,""):"datasquirel"});r.json({result:!!_&&!!_[0]})}letu=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),d=newa.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:s})},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{lets=t(72835),a=t(30003);e.exports=asyncfunction({unparsedResults:e,tableSchema:r}){lett=[];try{for(letn=0;n<e.length;n++){leto=e[n],c=Object.keys(o);for(lete=0;e<c.length;e++){lett=c[e],n=r?.fields[e];if(t?.match(a))continue;leti=o[t];("number"==typeofi||i)&&n?.encrypted&&i?.match(/./)&&(o[t]=s({encryptedString:i}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{lets=t(29021),{IncomingMessage:a}=t(81630);e.exports=asyncfunction({user:e,message:r,component:t,noMail:a,req:n}){leto=newDate,c=(()=>{if(!n)returnnull;try{lete=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)returnnull;returnString(a)}catch(e){returnnull}})();try{leta=`🚀 SERVER ERROR ===========================