1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,536720,e=>{"use strict";var t=e.i(843476),i=e.i(271645),r=e.i(861745),a=e.i(948148),s=e.i(88653),l=e.i(846932),n=e.i(768877),o=e.i(24071),c=e.i(867927),u=e.i(328523),d=e.i(21357),m=e.i(30785),h=e.i(160889),f=e.i(676909),x=e.i(286078),g=e.i(467844);function p({label:e,onClick:i,children:r}){return(0,t.jsx)("button",{type:"button","aria-label":e,onClick:i,className:"grid size-9 cursor-pointer place-items-center rounded-full border border-white/20 text-white/80 motion-safe:transition-colors duration-150 hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60",children:r})}e.s(["default",0,function({initialNews:e=[],title:b,eyebrow:w}){let v=(0,a.useTranslations)(),j=(0,r.useLocale)(),y=(0,i.useMemo)(()=>e.map(e=>{let t=(0,f.getThumbnail)(e.content)||e.image||null;return t?{id:e._id,title:e.title,image:t,href:`/news/${e.slug??e._id}`,date:e.created_at?(0,g.localizeDigits)((0,x.formatNewsDate)(e.created_at,j)??"",j):null}:null}).filter(e=>null!==e).slice(0,5),[e,j]),[N,k]=(0,i.useState)(0),[z,T]=(0,i.useState)(!0),A=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");A.current=e.matches,e.matches&&T(!1)},[]);let C=(0,i.useCallback)(e=>{y.length&&k((e%y.length+y.length)%y.length)},[y.length]);if((0,i.useEffect)(()=>{if(!z||y.length<2)return;let e=setTimeout(()=>C(N+1),6500);return()=>clearTimeout(e)},[z,N,y.length,C]),!y.length)return(0,t.jsx)("section",{className:"relative flex min-h-[22rem] items-center overflow-hidden",style:{background:"linear-gradient(var(--theme-gradient-angle, 130deg), var(--theme-gradient-from) 0%, var(--theme-gradient-via) 55%, var(--theme-gradient-to) 120%)"},children:(0,t.jsxs)("div",{className:"container mx-auto max-w-7xl px-4 text-center",children:[(0,t.jsx)("p",{className:"text-[11px] font-extrabold uppercase [&:lang(en)]:tracking-[0.28em] text-white/60",children:w}),(0,t.jsx)("h1",{className:"mt-3 text-2xl font-semibold text-white lg:text-4xl",children:b})]})});let S=y[N];return(0,t.jsxs)("section",{"aria-roledescription":"carousel","aria-label":v("hscHero.news"),className:"relative isolate flex min-h-[30rem] items-end overflow-hidden lg:min-h-[38rem]",onMouseEnter:()=>T(!1),onMouseLeave:()=>!A.current&&T(!0),onFocusCapture:()=>T(!1),onKeyDown:e=>{"ArrowRight"===e.key&&C(N+1),"ArrowLeft"===e.key&&C(N-1)},children:[(0,t.jsx)(s.AnimatePresence,{initial:!1,children:(0,t.jsx)(l.motion.div,{className:"absolute inset-0 -z-10",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:"easeOut"},children:(0,t.jsx)(l.motion.div,{className:"absolute inset-0 motion-reduce:!scale-100",initial:{scale:1.06},animate:{scale:1},transition:{duration:8,ease:"linear"},children:(0,t.jsx)(m.default,{src:S.image,alt:"",fill:!0,preset:"hero",priority:!0,className:"object-cover object-top"})})},S.id)}),(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10",style:{background:"linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.52) 32%, rgba(0,0,0,0.18) 62%, transparent 84%)"}}),(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 -z-10 h-1/2 bg-gradient-to-t from-black/70 to-transparent"}),(0,t.jsxs)("div",{className:"container mx-auto w-full max-w-7xl px-4 pb-8 pt-24 lg:pb-10 lg:pt-32",children:[(0,t.jsxs)("div",{className:"max-w-3xl motion-safe:animate-fade-in",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,t.jsx)("span",{className:"inline-flex h-6 items-center rounded-full bg-accent-sheen px-3 text-[10px] font-bold uppercase text-cta-foreground",children:v("hscHero.news")}),S.date?(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase text-white/60",children:S.date}):null]}),(0,t.jsx)("h1",{className:"mt-4 text-2xl font-semibold leading-[1.15] text-white sm:text-3xl lg:text-[2.75rem]",children:(0,t.jsx)(h.Link,{href:S.href,className:"rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60",children:S.title})}),(0,t.jsxs)(h.Link,{href:S.href,className:"mt-6 inline-flex h-11 items-center gap-2 rounded-full bg-accent-sheen px-6 text-sm font-semibold text-cta-foreground motion-safe:transition-[transform,filter] duration-150 hover:brightness-[1.06] hover:scale-[1.02] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60",children:[v("hscHero.readStory"),(0,t.jsx)(n.ArrowRight,{className:"size-4",strokeWidth:2})]})]},S.id),(0,t.jsxs)("div",{className:"mt-10 flex items-center justify-between gap-4 border-t border-white/15 pt-4",children:[(0,t.jsx)("div",{className:"flex items-center gap-2",role:"tablist",children:y.map((e,i)=>{let r=i===N;return(0,t.jsx)("button",{type:"button",role:"tab","aria-selected":r,"aria-label":e.title,onClick:()=>C(i),className:`h-1.5 cursor-pointer overflow-hidden rounded-full motion-safe:transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60 ${r?"w-10 bg-white/25":"w-1.5 bg-white/30 hover:bg-white/60"}`,children:r?(0,t.jsx)(l.motion.span,{className:"block h-full w-full origin-left rounded-full bg-cta",initial:{scaleX:+!z},animate:{scaleX:1},transition:{duration:6.5*!!z,ease:"linear"}},`${e.id}-${z}`):null},e.id)})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsxs)("span",{className:"hidden text-[11px] font-semibold tabular-nums text-white/50 sm:block",dir:"ltr",children:[(0,t.jsx)("span",{className:"text-white",children:(0,g.localizeDigits)(String(N+1).padStart(2,"0"),j)}),(0,t.jsx)("span",{className:"px-1.5 text-white/30",children:"/"}),(0,g.localizeDigits)(String(y.length).padStart(2,"0"),j)]}),(0,t.jsx)(p,{label:z?"Pause":"Play",onClick:()=>T(e=>!e),children:z?(0,t.jsx)(u.Pause,{className:"size-3.5",strokeWidth:2}):(0,t.jsx)(d.Play,{className:"size-3.5",strokeWidth:2})}),(0,t.jsx)(p,{label:"Previous",onClick:()=>C(N-1),children:(0,t.jsx)(o.ChevronLeft,{className:"size-4",strokeWidth:2})}),(0,t.jsx)(p,{label:"Next",onClick:()=>C(N+1),children:(0,t.jsx)(c.ChevronRight,{className:"size-4",strokeWidth:2})})]})]})]})]})}])},93031,function(e){e.n(e.i(536720))},328523,e=>{"use strict";var t=e.i(456420);let i={name:"pause",size:24,node:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]};i.node;let r=(0,t.default)(i);e.s(["Pause",0,r],328523)},286078,e=>{"use strict";e.s(["formatNewsDate",0,function(e,t,i={day:"numeric",month:"short",year:"numeric"}){if("number"!=typeof e||!Number.isFinite(e))return null;let r=new Date(e<1e11?1e3*e:e);
1if(Number.isNaN(r.getTime()))return null;try{return new Intl.DateTimeFormat("kh"===t?"km-KH":t,i).format(r)}catch{return r.toDateString()}}])},676909,e=>{"use strict";var t=e.i(817272);e.s(["getThumbnail",0,e=>{if(null==e)return;if("string"==typeof e)return(0,t.extractThumbnail)(e);let i=e.blocks;if(Array.isArray(i))for(let e of i){if(e?.type==="image"&&e?.data?.file?.url)return e.data.file.url;if(e?.type==="simpleImage"&&e?.data?.url)return e.data.url}}])},817272,e=>{"use strict";function t(e){if(!e||"string"!=typeof e)return{format:"empty"};let t=e.trim();if(!t)return{format:"empty"};if(t.startsWith("{"))try{let e=JSON.parse(t);if(e&&Array.isArray(e.blocks))return{format:"editorjs",data:e}}catch{}return{format:"html",html:t}}function i(e){return e.replace(/<[^>]+>/g," ").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," ").trim()}e.s(["extractDescription",0,function(e,r="",a=300){let s=t(e),l="";if("editorjs"===s.format){let e=s.data.blocks.find(e=>"string"==typeof e?.data?.text&&e.data.text.trim());l=e?i(e.data.text):""}else if("html"===s.format){let e=s.html.match(/<p[^>]*>([\s\S]*?)<\/p>/i);l=i(e?.[1]??s.html)}return(l=l.trim()||r).length>a?l.slice(0,a-3).trimEnd()+"...":l},"extractThumbnail",0,function(e){let i=t(e);if("editorjs"===i.format){for(let e of i.data.blocks){if(e?.type==="image"&&e?.data?.file?.url)return e.data.file.url;if(e?.type==="simpleImage"&&e?.data?.url)return e.data.url}return}if("html"===i.format){let e=i.html.match(/<img[^>]+src=["']([^"']+)["']/i);return e?.[1]}},"getReadingMinutes",0,function(e){let r=t(e),a=0;if("editorjs"===r.format)for(let e of r.data.blocks){let t=e?.data??{};a+=i(("string"==typeof t.text?t.text:"")+" "+(Array.isArray(t.items)?t.items.map(e=>"string"==typeof e?e:e?.content??"").join(" "):"")).length}else"html"===r.format&&(a=i(r.html).length);return Math.max(1,Math.round(a/1e3))},"parseNewsContent",0,t])}]);
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.