1import{_ as x}from"./C299k_0l.js";import{r as h,an as k,ak as g,ax as y,m as v,af as e,Y as l,l as c,i as s,ab as i,k as u,p as b,a1 as w}from"./BAiINMoj.js";import{u as C}from"./CbUhaOcN.js";import{u as B}from"./DFTwUsiy.js";import{u as F}from"./DHp53ExX.js";import"./DlAUqK2U.js";const L={key:0,class:"px-5 py-8 xl:px-[100px] xl:py-[80px]"},M={class:"article-header flex flex-col gap-5 mb-[10px]"},A={class:"font-[900] text-[#0D6636] text-40 md:text-50 w-2/3"},N={class:"font-[500] text-dark-grey text-[20px] w-2/3"},D={class:"article-content mt-12"},S=["src"],T={key:1,class:"w-full border-t border-secondary-dark-100 pt-6 mt-8"},V=["href"],$=h({__name:"[slug]",async setup(E){let r,p;const{getMediaUrl:d}=B(),{strapiLocaleFallbacks:_}=F(),m=k().params.slug,f=m.split("-").map(a=>a.toLowerCase()==="th"?"TH":a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()).join(" ");g({title:`${f}`});const t=w(null);for(const a of _.value){const n=([r,p]=y(()=>C("articles",["*"],{slug:m},[],a)),r=await r,p(),r)?.data?.[0];if(n){t.value=n;break}}if(!t.value)throw v({statusCode:404,statusMessage:"Page Not Found",fatal:!0});return(a,o)=>{const n=x;return e(t)?(l(),c("div",L,[s("div",M,[s("h1",A,i(e(t).title),1),s("h5",N,i(e(t).description),1)]),o[1]||(o[1]=s("div",{class:"meta flex flex-col gap-5"},null,-1)),s("section",D,[e(t).cover?(l(),c("img",{key:0,src:e(d)(e(t).cover.url),alt:"article-cover",class:"w-full rounded-[40px] border border-[#BFBFC0] my-20"},null,8,S)):u("",!0),b(n,{content:e(t).content},null,8,["content"]),e(t).attachment?(l(),c("div",T,[o[0]||(o[0]=s("p",null,"PDF Kenyataan Akhbar",-1)),s("a",{href:e(d)(e(t).attachment.url)},i(e(t).title),9,V)])):u("",!0)])])):u("",!0)}}});export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.