"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},39383:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/actions/users/user-auth")},65967:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},93726:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},30889:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},27215:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>o,routeModule:()=>l});var n={};t.r(n),t.d(n,{default:()=>d});var a=t(89947),s=t(2706),i=t(96762),u=t(69842);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{user:t}=await (0,u.A)(e,r,!0);r.json({user:t})}let o=(0,i.M)(n,"default"),_=(0,i.M)(n,"config"),l=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:n})},55153:(e,r,t)=>{t.d(r,{On:()=>a.a,_n:()=>i}),t(76102);var n=t(65967),a=t.n(n);t(30889);var s=t(93726);let i=t.n(s)()},69842:(e,r,t)=>{t.d(r,{A:()=>i});var n=t(39383),a=t.n(n),s=t(55153);async function i(e,r,t,n){let i=a()({req:e,level:t?"deep":void 0}),u={DSQL_REMOTE_SQL_HOST:process.env.DSQL_REMOTE_SQL_HOST,DSQL_SU_USER_ID:process.env.DSQL_SU_USER_ID,DSQL_HOST_ENV:process.env.DSQL_HOST_ENV,DSQL_HOST:process.env.DSQL_HOST,DSQL_STATIC_HOST:process.env.DSQL_STATIC_HOST,DSQL_GOOGLE_CLIENT_ID:process.env.DSQL_GOOGLE_CLIENT_ID,DSQL_TINY_MCE_API_KEY:process.env.DSQL_TINY_MCE_API_KEY};return n&&i.payload?.id&&(0,s._n)(process.env.DSQL_SU_USER_ID)!==i.payload.id?{user:null,appData:u}:{user:i.payload,appData:u}}},2706:(e,r)=>{Object.defineProperty(r,"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,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=27215);module.exports=t})();