"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,n)=>{Object.defineProperty(n,"M",{enumerable:!0,get:function(){return function e(n,t){return t in n?n[t]:"then"in n&&"function"==typeof n.then?n.then(n=>e(n,t)):"function"==typeof n&&"default"===t?n:void 0}}})},13196:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var r={};t.r(r),t.d(r,{default:()=>u});var i=t(89947),a=t(2706),o=t(96762),l=t(48786);async function u(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||n.json({email:null});let t=await (0,l.A)("SELECT email FROM users WHERE email=?",[e.query.email]);t&&t[0]?n.json({email:t}):n.json({email:null})}let s=(0,o.M)(r,"default"),c=(0,o.M)(r,"config"),d=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:r})},48786:(e,n,t)=>{t.d(n,{A:()=>r});async function r(...e){let n=global.DSQL_DB_CONN;try{if(!n)throw Error("No Connection provided to DB_HANDLER function!");let t=await n.query(...e);return JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}finally{await n?.end()}}},2706:(e,n)=>{Object.defineProperty(n,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,n,t)=>{e.exports=t(75600)}};var n=require("../../../../webpack-api-runtime.js");n.C(e);var t=n(n.s=13196);module.exports=t})();