"use strict";(()=>{var e={};e.id=7218,e.ids=[7218],e.modules={85890:e=>{e.exports=require("better-sqlite3")},12408:e=>{e.exports=require("chokidar")},25606:e=>{e.exports=require("keytar")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},78893:e=>{e.exports=require("buffer")},92048:e=>{e.exports=require("fs")},6005:e=>{e.exports=require("node:crypto")},87561:e=>{e.exports=require("node:fs")},93977:e=>{e.exports=require("node:fs/promises")},70612:e=>{e.exports=require("node:os")},49411:e=>{e.exports=require("node:path")},48798:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>b,patchFetch:()=>f,requestAsyncStorage:()=>x,routeModule:()=>c,serverHooks:()=>g,staticGenerationAsyncStorage:()=>m});var o={};t.r(o),t.d(o,{DELETE:()=>l,POST:()=>u,dynamic:()=>d});var n=t(7849),s=t(94966),a=t(79169),i=t(1237),p=t(39708);let d="force-dynamic";async function u(){try{let e=await (0,p.Ex)();return i.NextResponse.json({ok:!0,onboardingCompletedAt:e.onboardingCompletedAt})}catch(e){return i.NextResponse.json({error:e.message??"failed to mark onboarding complete"},{status:500})}}async function l(){try{let e=await (0,p.Eo)();if(!e.onboardingCompletedAt)return i.NextResponse.json({ok:!0,alreadyCleared:!0});let{onboardingCompletedAt:r,...t}=e;return await (0,p.cp)({...t,version:1}),i.NextResponse.json({ok:!0})}catch(e){return i.NextResponse.json({error:e.message??"failed to clear onboarding flag"},{status:500})}}let c=new n.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/onboarding/route",pathname:"/api/onboarding",filename:"route",bundlePath:"app/api/onboarding/route"},resolvedPagePath:"/Users/ddsyasas/ProjectFiles/Dev Projects/Business dev/llm-wiki/apps/web/src/app/api/onboarding/route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:x,staticGenerationAsyncStorage:m,serverHooks:g}=c,b="/api/onboarding/route";function f(){return(0,a.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:m})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[6485,5444,9708],()=>t(48798));module.exports=o})();