module.exports=[603790,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944);a.i(541124);var e=a.i(19168),f=a.i(653542),g=a.i(75708),h=a.i(993209),i=a.i(900085),j=a.i(571987);let k=({data:a})=>(0,b.jsxs)("div",{className:"py-10 px-8",children:[(0,b.jsx)("span",{className:"text-sm text-gray-disabledTab",children:(0,i.default)(a?.published_at).format("D MMMM YY HH:mm")}),(0,b.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,b.jsx)("div",{className:"text-[22px] font-semibold mt-4 mb-1",children:a?.translation?.title}),!!a?.img&&(0,b.jsx)("div",{className:"relative w-full aspect-[3/1] rounded-2xl overflow-hidden",children:(0,b.jsx)(j.default,{src:a?.img,alt:a?.translation?.title||"(.)news",fill:!0,className:"object-cover"})}),(0,b.jsx)("div",{className:"text-base leading-7",dangerouslySetInnerHTML:{__html:a?.translation?.description||""}})]})]}),l=()=>(0,b.jsxs)("div",{className:"py-10 px-8 animate-pulse",children:[(0,b.jsx)("div",{className:"bg-gray-300 h-3 rounded-full w-2/5 mb-4"}),(0,b.jsx)("div",{className:"bg-gray-300 h-5 rounded-full w-4/5"}),(0,b.jsx)("div",{className:"w-full aspect-[4/1] rounded-2xl my-7 bg-gray-300"}),(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)("div",{className:"w-full bg-gray-300 rounded-full h-4"}),(0,b.jsx)("div",{className:"w-4/5 bg-gray-300 rounded-full h-4"}),(0,b.jsx)("div",{className:"w-3/5 bg-gray-300 rounded-full h-4"})]})]});var m=a.i(846997);a.s(["default",0,a=>{let i=(0,c.use)(a.params),j=(0,d.useRouter)(),{language:n}=(0,m.useSettings)(),{data:o,isLoading:p}=(0,f.useQuery)(["news",i.id],()=>{let a,b;return a=i.id,b={lang:n?.locale},(0,g.default)((0,h.buildUrlQueryParams)(`v1/rest/blog-by-id/${a}`,b),{redirectOnError:!0})});return(0,b.jsx)(e.Modal,{withCloseButton:!0,isOpen:!0,onClose:()=>j.back(),children:p?(0,b.jsx)(l,{}):(0,b.jsx)(k,{data:o?.data})})}],603790)}];

//# sourceMappingURL=app_%28store%29_%40detail_%28_%29news_%5Bid%5D_page_tsx_5274e702._.js.map