module.exports=[63021,(a,b,c)=>{b.exports=a.x("@prisma/client-2c3a283f134fdcb6",()=>require("@prisma/client-2c3a283f134fdcb6"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},50645,a=>{a.n(a.i(27572))},17537,a=>{a.n(a.i(3363))},13718,a=>{a.n(a.i(85523))},18198,a=>{a.n(a.i(45518))},62212,a=>{a.n(a.i(66114))},84649,a=>{a.n(a.i(65507))},3078,a=>{a.n(a.i(8909))},66518,a=>{"use strict";var b=a.i(63021);let c=globalThis.prismaGlobal??new b.PrismaClient;a.s(["default",0,c])},32776,a=>{"use strict";var b=a.i(717),c=a.i(67228),d=a.i(67550),e=(0,b.cache)(async function(a){let b,e;"string"==typeof a?b=a:a&&(e=a.locale,b=a.namespace);let f=await (0,c.default)(e);return(0,d.default)(f,b)});a.s(["getTranslations",()=>e],32776)},35115,a=>{"use strict";var b=a.i(7997),c=a.i(85221);function d({paths:a}){return(0,b.jsx)("nav",{className:"flex items-center text-sm mb-6 font-prompt overflow-hidden",children:a.map((d,e)=>{let f=e===a.length-1;return(0,b.jsxs)("div",{className:"flex items-center",children:[d.href&&!f?(0,b.jsx)(c.Link,{href:d.href,className:"text-primary hover:opacity-100 hover:text-accent transition-all whitespace-nowrap",children:d.label}):(0,b.jsx)("span",{className:"text-accent font-bold truncate max-w-[200px] md:max-w-md",children:d.label}),!f&&(0,b.jsx)("span",{className:"mx-2 text-primary select-none",children:">"})]},e)})})}a.s(["default",()=>d])},52,a=>{"use strict";var b=a.i(7997),c=a.i(3236),d=a.i(35115),e=a.i(32776);a.i(70396);var f=a.i(73727),g=a.i(66518);async function h({params:a}){let{year:h,month:i,day:j,slug:k,locale:l}=await a,m=decodeURIComponent(k),n=await (0,e.getTranslations)("Navbar"),o=await (0,e.getTranslations)("News"),p=await g.default.news.findUnique({where:{slug:m}});p&&"Published"===p.status||(0,f.notFound)();let q="th"===l,r=q?p.headlineTh||p.headlineEn:p.headlineEn||p.headlineTh,s=q?p.bodyTh||p.bodyEn:p.bodyEn||p.bodyTh,t=new Date(p.createdAt).toLocaleDateString(q?"th-TH":"en-US",{year:"numeric",month:"long",day:"numeric"}),u=p.featuredImage||"/placeholder.jpg",v=p.galleryImages||[];return(0,b.jsxs)("main",{className:"min-h-screen bg-white pb-20 font-prompt",children:[(0,b.jsx)("div",{className:"container mx-auto max-w-6xl px-4 py-6 text-sm flex gap-2 items-center",children:(0,b.jsx)(d.default,{paths:[{label:n("home"),href:"/"},{label:n("news"),href:"/news"},{label:r||"News Detail"}]})}),(0,b.jsxs)("div",{className:"container mx-auto px-4 max-w-6xl",children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-primary leading-tight",children:r}),(0,b.jsxs)("p",{className:"text-gray-400 text-sm mt-4",children:[o("posted")," ",t]})]}),u&&(0,b.jsx)("div",{className:"relative w-full aspect-video rounded-xl overflow-hidden shadow-lg mb-10 bg-gray-100",children:(0,b.jsx)(c.default,{src:u,alt:r||"News Image",fill:!0,className:"object-cover",priority:!0,sizes:"(max-width: 1280px) 100vw, 1280px"})}),(0,b.jsx)("article",{className:"text-gray-700 leading-relaxed text-lg mb-16 whitespace-pre-line",children:s}),v.length>0&&(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mt-10",children:v.map((a,d)=>(0,b.jsx)("div",{className:"relative aspect-video rounded-lg overflow-hidden shadow-md group bg-gray-100",children:(0,b.jsx)(c.default,{src:a,alt:`Gallery ${d+1}`,fill:!0,className:"object-cover group-hover:scale-110 transition-transform duration-500",sizes:"(max-width: 768px) 50vw, 25vw"})},d))})]})]})}a.s(["default",()=>h])}];

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