(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9318],{1322:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>o});var l=a(5155),t=a(2115),r=a(5695);a(6874);var n=a(6766),c=a(7737),i=a(1007),d=a(9074),m=a(6859);function o(){let e=(0,r.useParams)(),[s,a]=(0,t.useState)(null),[o,u]=(0,t.useState)(!0),[x,h]=(0,t.useState)([]);return((0,t.useEffect)(()=>{(async()=>{u(!0);let s=await (0,m.vS)(null==e?void 0:e.id);a(s),u(!1),h(await (0,m.sP)(s.category,null==s?void 0:s.url))})()},[e.id]),o)?(0,l.jsx)("div",{className:"container mx-auto px-4 py-12 flex justify-center",children:(0,l.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-teal-600"})}):s?(0,l.jsxs)("div",{className:"container mx-auto px-4 py-6",children:[(0,l.jsx)("span",{className:"hidden md:inline",children:(0,l.jsx)(c.A,{items:[{label:"Blog",href:"/blog"},{label:s.url,href:"/blog/".concat(s.url)}]})}),(0,l.jsx)("span",{className:"md:hidden",children:(0,l.jsx)(c.A,{items:[{label:"Blog",href:"/blog"},{label:s.url,href:"/blog/".concat(s.url)}]})}),(0,l.jsxs)("div",{className:"max-w-4xl mx-auto mt-8",children:[(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)("span",{className:"bg-teal-100 text-teal-800 px-3 py-1 rounded-full text-sm font-medium",children:s.category})}),(0,l.jsx)("h1",{className:"text-2xl md:text-4xl font-bold mb-6",children:s.shortTitle}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-1 md:justify-between md:items-center text-gray-500 mb-8",children:[(0,l.jsxs)("div",{className:"flex items-center mr-6",children:[(0,l.jsx)(i.A,{size:18,className:"mr-2"}),(0,l.jsx)("span",{children:s.author})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(d.A,{size:18,className:"mr-2"}),(0,l.jsx)("span",{children:s.date})]})]}),(0,l.jsx)("div",{className:"relative h-80 w-full mb-8 rounded-lg overflow-hidden",children:(0,l.jsx)(n.default,{src:s.image||"/placeholder.svg",alt:s.title,fill:!0,className:"object-cover"})}),(0,l.jsx)("div",{className:"prose max-w-none mb-8",dangerouslySetInnerHTML:{__html:s.content}})]})]}):(0,l.jsx)("div",{className:"container mx-auto px-4 py-12",children:(0,l.jsx)("h1",{className:"text-2xl font-bold",children:"Blog post niet gevonden"})})}},5695:(e,s,a)=>{"use strict";var l=a(8999);a.o(l,"useParams")&&a.d(s,{useParams:function(){return l.useParams}}),a.o(l,"usePathname")&&a.d(s,{usePathname:function(){return l.usePathname}}),a.o(l,"useRouter")&&a.d(s,{useRouter:function(){return l.useRouter}}),a.o(l,"useSearchParams")&&a.d(s,{useSearchParams:function(){return l.useSearchParams}})},7550:(e,s,a)=>{Promise.resolve().then(a.bind(a,1322))}},e=>{var s=s=>e(e.s=s);e.O(0,[6874,3063,4939,8441,1684,7358],()=>s(7550)),_N_E=e.O()}]);