"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],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}}})},22070:(e,n,t)=>{t.r(n),t.d(n,{config:()=>c,default:()=>s,routeModule:()=>d});var i={};t.r(i),t.d(i,{default:()=>l});var r=t(89947),o=t(2706),a=t(96762),u=t(48786);async function l(e,n){if("GET"!==e.method)return n.json({msg:"Failed!"});let{social_id:t,social_platform:i}=e.query,r=await (0,u.A)("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[t,i]);t&&t[0]?n.json({social_id:r}):n.json({social_id:null})}let s=(0,a.M)(i,"default"),c=(0,a.M)(i,"config"),d=new r.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:i})},48786:(e,n,t)=>{t.d(n,{A:()=>i});async function i(...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=22070);module.exports=t})();