module.exports=[93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},24361,(e,t,r)=>{t.exports=e.x("util",()=>require("util"))},36353,e=>{"use strict";e.s(["CAREERS_EMAIL",0,"skypnmanimart@gmail.com","CONTACT_EMAIL",0,"skypnmanimart@gmail.com","SITE_URL",0,"http://localhost:3000"])},10044,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),c=e.i(95169),d=e.i(47587),p=e.i(66012),m=e.i(70101),h=e.i(26937),g=e.i(10372),v=e.i(93695);e.i(52474);var R=e.i(220),x=e.i(36353);async function f(t){let{name:r,email:a,subject:n,message:s}=t,o=process.env.CONTACT_TO_EMAIL??x.CONTACT_EMAIL,i=n?`[Contact] ${n}`:"[Contact] New Enquiry via Website",{SMTP_HOST:l,SMTP_PORT:u,SMTP_USER:c,SMTP_PASS:d}=process.env;if(l&&c&&d){let p;try{p=e.r(29508).createTransport}catch{console.warn("[contact] nodemailer not installed – install it with `npm i nodemailer` to enable email sending."),w(t);return}let m=p({host:l,port:Number(u??587),secure:465===Number(u),auth:{user:c,pass:d}});await m.sendMail({from:`"${r}" <${c}>`,replyTo:a,to:o,subject:i,text:`Name: ${r}
Email: ${a}
Subject: ${n??"—"}

${s}`,html:`
        <p><strong>Name:</strong> ${r}</p>
        <p><strong>Email:</strong> <a href="mailto:${a}">${a}</a></p>
        <p><strong>Subject:</strong> ${n??"—"}</p>
        <hr/>
        <p>${s.replace(/\n/g,"<br/>")}</p>
      `});return}w(t)}function w(e){console.log("[contact] New submission (configure SMTP_HOST / SMTP_USER / SMTP_PASS to receive emails):",{name:e.name,email:e.email,subject:e.subject,message:e.message,receivedAt:new Date().toISOString()})}async function y(e){var t,r;let a;try{a=await e.json()}catch{return Response.json({success:!1,message:"Invalid JSON in request body."},{status:400})}if(!((t=a)&&"object"==typeof t&&"string"==typeof t.name&&t.name.trim().length>0&&"string"==typeof t.email&&(r=t.email,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r))&&"string"==typeof t.message&&t.message.trim().length>0&&(void 0===t.subject||"string"==typeof t.subject)))return Response.json({success:!1,message:"Please provide a valid name, email address, and message."},{status:422});let n={name:a.name.trim(),email:a.email.trim().toLowerCase(),subject:"string"==typeof a.subject?a.subject.trim():"",message:a.message.trim()};try{await f(n)}catch(e){return console.error("[contact] Failed to send notification:",e),Response.json({success:!1,message:"We received your message but could not send a confirmation. Please try again."},{status:500})}return Response.json({success:!0,message:"Thanks for reaching out! We'll get back to you within 1–2 business days."},{status:200})}e.s(["POST",0,y],91242);var E=e.i(91242);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/contact/route",pathname:"/api/contact",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/contact/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:A,serverHooks:T}=b;async function S(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/contact/route";x=x.replace(/\/index$/,"")||"/";let f=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,deploymentId:y,params:E,nextConfig:C,parsedUrl:A,isDraftMode:T,prerenderManifest:S,routerServerContext:N,isOnDemandRevalidate:j,revalidateOnlyGenerated:P,resolvedPathname:_,clientReferenceManifest:O,serverActionsManifest:q}=f,k=(0,i.normalizeAppPath)(x),I=!!(S.dynamicRoutes[k]||S.routes[_]),M=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!T){let e=!!S.routes[_],t=S.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await M();throw new v.NoFallbackError}}let $=null;!I||b.isDev||T||($="/index"===($=_)?"/":$);let H=!0===b.isDev||!I,U=I&&!H;q&&O&&(0,o.setManifestsSingleton)({page:x,clientReferenceManifest:O,serverActionsManifest:q});let D=e.method||"GET",L=(0,s.getTracer)(),F=L.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),W=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,C,S,B);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let G={params:E,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:H,incrementalCache:W,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,N)},sharedContext:{buildId:w,deploymentId:y}},V=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>b.handle(z,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==c.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${x}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&j&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!I)return await (0,p.sendResponse)(V,X,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:j})},!1,N),t}},u=await b.handleResponse({req:e,nextConfig:C,cacheKey:$,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",j?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),T&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let c=(0,m.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&I||c.delete(g.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||c.get("Cache-Control")||c.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,p.sendResponse)(V,X,new Response(u.value.body,{headers:c,status:u.value.status||200})),null};K&&F?await i(F):(n=L.getActiveScopeSpan(),await L.withPropagatedContext(e.headers,()=>L.trace(c.BaseServerSpan.handleRequest,{spanName:`${D} ${x}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof v.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:j})},!1,N),I)throw t;return await (0,p.sendResponse)(V,X,new Response(null,{status:500})),null}}e.s(["handler",0,S,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:A})},"routeModule",0,b,"serverHooks",0,T,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,A],10044)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__027yrs-._.js.map