"use strict";(()=>{var e={};e.id=2672,e.ids=[2672],e.modules={72934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},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")},84770:e=>{e.exports=require("crypto")},62831:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>g,patchFetch:()=>y,requestAsyncStorage:()=>l,routeModule:()=>d,serverHooks:()=>x,staticGenerationAsyncStorage:()=>m});var n={};r.r(n),r.d(n,{POST:()=>c,dynamic:()=>u});var a=r(49790),s=r(60540),o=r(82273),i=r(19096),p=r(39560);let u="force-dynamic";async function c(e){try{let{username:t,password:r}=await e.json();if(!await (0,p.TO)(String(t||""),String(r||"")))return i.NextResponse.json({error:"Invalid admin credentials."},{status:401});let n=(0,p.Ld)(),a=i.NextResponse.json({ok:!0,username:n.username});return a.cookies.set((0,p.DC)(),(0,p.ee)(n.username),{httpOnly:!0,sameSite:"lax",secure:"true"!==String(process.env.LOCAL_DEV_MODE||"").toLowerCase(),path:"/",maxAge:43200}),a}catch(e){return console.error("prompt admin login err",e),i.NextResponse.json({error:"Login failed."},{status:500})}}let d=new a.AppRouteRouteModule({definition:{kind:s.x.APP_ROUTE,page:"/api/admin/login/route",pathname:"/api/admin/login",filename:"route",bundlePath:"app/api/admin/login/route"},resolvedPagePath:"/Users/andrasgyenes/Desktop/MrQuery 2026/HyreMe/Archive/hyreme-app/app/api/admin/login/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:l,staticGenerationAsyncStorage:m,serverHooks:x}=d,g="/api/admin/login/route";function y(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:m})}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[9085,400,8664,9560],()=>r(62831));module.exports=n})();