"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")},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:()=>l,routeModule:()=>d});vars={};t.r(s),t.d(s,{default:()=>i});vara=t(89947),n=t(2706),o=t(96762),c=t(57638),u=t.n(c);asyncfunctioni(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:i,database:l}=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)),i&&(p+=" AND user_type=?",d.push(i)),l&&(p+=" AND `database`=?",d.push(l));let_=awaitu()({queryString:p,queryValuesArray:d,database:n&&"string"==typeofn?n.replace(/[^a-z0-9_]/g,""):"datasquirel"});r.json({result:!!_&&!!_[0]})}letl=(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})},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{letr=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{lett=r.update(e,"hex","utf8");returnt+=r.final("utf8")}catch(e){returnnull}}},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(72907),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;letu=o[t];("number"==typeofu||u)&&n?.encrypted&&u?.match(/./)&&(o[t]=s(u))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{lets=t(29021);e.exports=asyncfunction({user:e,message:r,component:t,noMail:a}){letn=`🚀 SERVER ERROR ===========================