"use strict";(()=>{var e={};e.id=3225,e.ids=[3225],e.modules={2934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},7147:e=>{e.exports=require("fs")},1017:e=>{e.exports=require("path")},4155:(e,t,o)=>{o.r(t),o.d(t,{headerHooks:()=>h,originalPathname:()=>f,patchFetch:()=>y,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>v,staticGenerationAsyncStorage:()=>p,staticGenerationBailout:()=>m});var n={};o.r(n),o.d(n,{GET:()=>u});var r=o(5419),a=o(9108),s=o(9678),i=o(8070),c=o(2509);async function u(e){let t=new URL(e.url).searchParams.get("code");if(t){let e=await (0,c.e)();await e.auth.exchangeCodeForSession(t)}return i.Z.redirect(new URL("/dashboard",e.url))}let l=new r.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/(auth)/callback/route",pathname:"/callback",filename:"route",bundlePath:"app/(auth)/callback/route"},resolvedPagePath:"C:\\xampp\\htdocs\\AI Woo Chat\\src\\app\\(auth)\\callback\\route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:p,serverHooks:v,headerHooks:h,staticGenerationBailout:m}=l,f="/(auth)/callback/route";function y(){return(0,s.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:p})}},2509:(e,t,o)=>{o.d(t,{createAdminClient:()=>i,e:()=>s});var n=o(6874),r=o(7439),a=o(3950);async function s(){let e=await (0,r.cookies)();return(0,n.lx)("https://drmuwsxyvvfivdfsyydy.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRybXV3c3h5dnZmaXZkZnN5eWR5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njg0NjAwMDgsImV4cCI6MjA4NDAzNjAwOH0.kMsFG-VLNqwzIgl3cFW-owiRCWHcB47M6V6Ti4O4alY",{cookies:{get:t=>e.get(t)?.value,set(t,o,n){try{e.set({name:t,value:o,...n})}catch(e){}},remove(t,o){try{e.set({name:t,value:"",...o})}catch(e){}}}})}function i(){return(0,a.eI)("https://drmuwsxyvvfivdfsyydy.supabase.co",process.env.SUPABASE_SERVICE_ROLE_KEY,{auth:{autoRefreshToken:!1,persistSession:!1}})}(0,o(4113).C)()},4113:(e,t,o)=>{o.d(t,{C:()=>s});var n=o(7147),r=o(1017);let a=!1;function s(){if(!a)try{let e=process.cwd(),t=[(0,r.join)(e,".env.production"),(0,r.join)(e,"..",".env.production"),(0,r.join)(e,"..","..",".env.production"),(0,r.join)(e,"app",".env.production")],o=null,s=null;for(let e of t)try{s=(0,n.readFileSync)(e,"utf-8"),o=e,console.log("[EnvLoader] Found .env.production at:",e);break}catch{continue}if(!s||!o)throw Error(`Could not find .env.production. Tried: ${t.join(", ")}`);for(let e of s.split("\n")){let t=e.trim();if(!t||t.startsWith("#"))continue;let o=t.match(/^([^=]+)=(.*)$/);if(o){let e=o[1].trim(),t=o[2].trim();(t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))&&(t=t.slice(1,-1)),process.env[e]||(process.env[e]=t)}}a=!0,console.log("[EnvLoader] Loaded environment variables from .env.production"),console.log("[EnvLoader] SUPABASE_DB_URL:",process.env.SUPABASE_DB_URL?"SET":"NOT SET")}catch(e){"ENOENT"===e.code?console.warn("[EnvLoader] .env.production file not found at:",envPath):console.warn("[EnvLoader] Could not load .env.production:",e.message)}}}};var t=require("../../../webpack-runtime.js");t.C(e);var o=e=>t(t.s=e),n=t.X(0,[1638,9989,6206],()=>o(4155));module.exports=n})();