"use strict";(()=>{var e={};e.id=8360,e.ids=[8360],e.modules={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")},14456:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>c,staticGenerationAsyncStorage:()=>l});var a={};r.r(a),r.d(a,{POST:()=>i});var o=r(49303),s=r(88716),u=r(60670),n=r(87070);async function i(){try{let e=n.NextResponse.json({message:"Berhasil logout"});return e.cookies.set("sa_token","",{httpOnly:!0,secure:!0,sameSite:"lax",maxAge:0,path:"/"}),e}catch(e){return console.error("Super admin logout error:",e),n.NextResponse.json({error:"Terjadi kesalahan server"},{status:500})}}let p=new o.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/superadmin/auth/logout/route",pathname:"/api/superadmin/auth/logout",filename:"route",bundlePath:"app/api/superadmin/auth/logout/route"},resolvedPagePath:"D:\\PROJECT\\resto-saas\\src\\app\\api\\superadmin\\auth\\logout\\route.ts",nextConfigOutput:"",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:l,serverHooks:c}=p,m="/api/superadmin/auth/logout/route";function h(){return(0,u.patchFetch)({serverHooks:c,staticGenerationAsyncStorage:l})}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,5972],()=>r(14456));module.exports=a})();