(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,549276,e=>{"use strict";var l=e.i(843476),s=e.i(271645),a=e.i(618566);e.i(720675);var i=e.i(193712),d=e.i(191437),t=e.i(626711),r=e.i(181325),n=e.i(284234),c=e.i(657688);let u=({data:e})=>(0,l.jsxs)("div",{className:"py-10 px-8",children:[(0,l.jsx)("span",{className:"text-sm text-gray-disabledTab",children:(0,n.default)(e?.published_at).format("D MMMM YY HH:mm")}),(0,l.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,l.jsx)("div",{className:"text-[22px] font-semibold mt-4 mb-1",children:e?.translation?.title}),!!e?.img&&(0,l.jsx)("div",{className:"relative w-full aspect-[3/1] rounded-2xl overflow-hidden",children:(0,l.jsx)(c.default,{src:e?.img,alt:e?.translation?.title||"(.)news",fill:!0,className:"object-cover"})}),(0,l.jsx)("div",{className:"text-base leading-7",dangerouslySetInnerHTML:{__html:e?.translation?.description||""}})]})]}),o=()=>(0,l.jsxs)("div",{className:"py-10 px-8 animate-pulse",children:[(0,l.jsx)("div",{className:"bg-gray-300 h-3 rounded-full w-2/5 mb-4"}),(0,l.jsx)("div",{className:"bg-gray-300 h-5 rounded-full w-4/5"}),(0,l.jsx)("div",{className:"w-full aspect-[4/1] rounded-2xl my-7 bg-gray-300"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("div",{className:"w-full bg-gray-300 rounded-full h-4"}),(0,l.jsx)("div",{className:"w-4/5 bg-gray-300 rounded-full h-4"}),(0,l.jsx)("div",{className:"w-3/5 bg-gray-300 rounded-full h-4"})]})]});var m=e.i(655607);e.s(["default",0,e=>{let n=(0,s.use)(e.params),c=(0,a.useRouter)(),{language:x}=(0,m.useSettings)(),{data:g,isLoading:f}=(0,d.useQuery)(["news",n.id],()=>{let e,l;return e=n.id,l={lang:x?.locale},(0,t.default)((0,r.buildUrlQueryParams)(`v1/rest/blog-by-id/${e}`,l),{redirectOnError:!0})});return(0,l.jsx)(i.Modal,{withCloseButton:!0,isOpen:!0,onClose:()=>c.back(),children:f?(0,l.jsx)(o,{}):(0,l.jsx)(u,{data:g?.data})})}],549276)}]);