"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")},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}}})},88525:(e,r,t)=>{t.r(r),t.d(r,{config:()=>u,default:()=>i,routeModule:()=>d});varn={};t.r(n),t.d(n,{default:()=>c});vara=t(89947),s=t(2706),o=t(96762),l=t(30944);asyncfunctionc(e,r){if("GET"!==e.method)returnr.json({success:!1,msg:"Failed!"});let{type:t,value:n,tableName:a,dbFullName:s,userId:o,dbId:c,userType:i,database:u}=e.query,d=s&&"string"==typeofs?s.replace(/[^a-z0-9_]/g,""):"datasquirel",p=`SELECT \`${t}\` FROM ${d}.\`${a}\` WHERE \`${t}\`=?`,f=[n];o&&(p+=" AND user_id=?",f.push(o)),c&&(p+=" AND db_id=?",f.push(c)),i&&(p+=" AND user_type=?",f.push(i)),u&&(p+=" AND `database`=?",f.push(u));letg=await(0,l.A)({queryString:p,queryValuesArray:f,database:d});r.json({result:!!g&&!!g[0]})}leti=(0,o.M)(n,"default"),u=(0,o.M)(n,"config"),d=newa.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:n})},43775:(e,r,t)=>{t.d(r,{A:()=>s});varn=t(95969);leta=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;asyncfunctions({unparsedResults:e,tableSchema:r}){lett=[];try{for(lets=0;s<e.length;s++){leto=e[s],l=Object.keys(o);for(lete=0;e<l.length;e++){lett=l[e],s=r?.fields[e];if(t?.match(a))continue;letc=o[t];("number"==typeofc||c)&&s?.encrypted&&c?.match(/./)&&(o[t]=(0,n.A)({encryptedString:c}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},67619:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});varn=t(29021),a=t.n(n);asyncfunctions({user:e,message:r,component:t,noMail:n,req:s}){leto=newDate,l=(()=>{if(!s)returnnull;try{lete=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||n||r||s.socket.remoteAddress;if(!a)returnnull;returnString(a)}catch(e){returnnull}})();try{letn=`🚀 SERVER ERROR ===========================