"use strict";(()=>{vare={};e.id=2101,e.ids=[2101],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},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}}})},85607:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});varn={};t.r(n),t.d(n,{default:()=>c});vara=t(89947),s=t(2706),o=t(96762),i=t(67619),l=t(69842),u=t(30944);asyncfunctionc(e,r){if("GET"!==e.method)returnr.json({msg:"Failed!"});lett=await(0,l.A)(e,r);if(!t)returnr.json({success:!1,msg:"Unauthorized"});letn=e.query.table,a=e.query.db,s=e.query.field,o=String(e.query.term),c=e.query.operator;try{lete=a?.toString()?.replace(/[^a-z0-9_]/g,""),t=`SELECT * FROM \`${e}\`.\`${n}\` WHERE LOWER(\`${s}\`) ${c?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,i=[c?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],l=await(0,u.A)({database:e,queryString:t,queryValuesArray:i}),d=await(0,u.A)({database:e,queryString:t.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:i});r.json({success:!0,result:l,count:d?.[0]?.count})}catch(e){(0,i.A)({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}letd=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=newa.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>s});varn=t(39908),a=t.n(n);asyncfunctions(e,r,t){letn=a()({req:e,level:t?"deep":void0});returnconsole.log(n),n.payload}},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],i=Object.keys(o);for(lete=0;e<i.length;e++){lett=i[e],s=r?.fields[e];if(t?.match(a))continue;letl=o[t];("number"==typeofl||l)&&s?.encrypted&&l?.match(/./)&&(o[t]=(0,n.A)({encryptedString:l}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>s});varn=t(29021),a=t.n(n);asyncfunctions({user:e,message:r,component:t,noMail:n,req:s}){leto=newDate,i=(()=>{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 ===========================