"use strict";(()=>{var e={};e.id=1579,e.ids=[1579],e.modules={53524:e=>{e.exports=require("@prisma/client")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1213:(e,a,t)=>{t.r(a),t.d(a,{headerHooks:()=>g,originalPathname:()=>v,patchFetch:()=>y,requestAsyncStorage:()=>p,routeModule:()=>u,serverHooks:()=>l,staticGenerationAsyncStorage:()=>d,staticGenerationBailout:()=>h});var n={};t.r(n),t.d(n,{GET:()=>m});var r=t(95419),s=t(69108),i=t(99678),o=t(78070),c=t(34490);async function m(){try{let e=await c.prisma.systemSettings.findUnique({where:{key:"security_config"}}),a=e?.value;return o.Z.json({active:a?.maintenanceMode||!1,message:a?.maintenanceMessage||"We're performing maintenance. Please check back soon.",messageAr:a?.maintenanceMessageAr||"نقوم بصيانة الموقع. يرجى المحاولة لاحقاً."})}catch{return o.Z.json({active:!1,message:"",messageAr:""})}}let u=new r.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/system/maintenance/route",pathname:"/api/system/maintenance",filename:"route",bundlePath:"app/api/system/maintenance/route"},resolvedPagePath:"C:\\test2\\pagecraft-ai\\src\\app\\api\\system\\maintenance\\route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:p,staticGenerationAsyncStorage:d,serverHooks:l,headerHooks:g,staticGenerationBailout:h}=u,v="/api/system/maintenance/route";function y(){return(0,i.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:d})}},34490:(e,a,t)=>{t.d(a,{prisma:()=>r});var n=t(53524);let r=globalThis.prisma??new n.PrismaClient}};var a=require("../../../../webpack-runtime.js");a.C(e);var t=e=>a(a.s=e),n=a.X(0,[1638,6206],()=>t(1213));module.exports=n})();