1import{i as g,k as m,p as f,P as h,j as _,f as w,o as k,g as e,e as s,n as b}from"./index-B1UYKE73.js";import{G as v,_ as x}from"./ArticleIsPinBlock-BNgCs-HE.js";import"./lodash-B5oL_Clq.js";/* empty css */import{F as N}from"./FeatureNews.-CNxASp9V.js";/* empty css */import{_ as u}from"./ImageCardBlock-Gfm-w-P-.js";import{_ as y}from"./CategoriesBlock-5Xoq4M39.js";/* empty css */import{N as B}from"./NewsAndBannerBlock-B9cHzXrI.js";/* empty css */import"./index-BekyPJYC.js";import"./index-2ESOoGLp.js";import"./index-BKl5MIbQ.js";import"./index-BfYCTK3i.js";import"./index-BScJnWoH.js";import"./index-DRKam9UM.js";import"./index-Cb9wMnAl.js";import"./calendar-clock-DvbApJVj.js";import"./BlockHeader-CmD3Qwho.js";import"./EmptyData-CsDeAH0J.js";import"./BlockHeader2-DwpaDm6O.js";/* empty css */const S={class:"grid lg:grid-cols-12 gap-3"},M={class:"first-container col-span-12 xl:col-span-6 flex flex-col gap-3 shadow-lg self-start h-fit"},C={class:"feature-news-container col-span-12 md:col-span-7 lg:col-span-8 xl:col-span-3 shadow-lg"},H={class:"side-container shadow-lg col-span-12 md:col-span-5 lg:col-span-4 xl:col-span-3 flex flex-col gap-3 overflow-hidden"},A={class:"col-span-12 md:col-span-7 lg:col-span-8 xl:col-span-9 grid grid-cols-12 gap-3"},$={class:"col-span-12 flex flex-col gap-3"},q={class:"col-span-12 md:col-span-5 lg:col-span-4 xl:col-span-3 grid grid-cols-1 gap-3"},L={class:"flex flex-col gap-3"},P={class:"flex flex-col gap-3 w-full"},ae={__name:"Department3HomeViewVi",props:{site:{type:Object,default:{}}},setup(V){const t=g(),o=m({slideNews:t.blockMap.get("slideNews"),pinNews:t.blockMap.get("pinNews"),featuredNews:t.blockMap.get("featuredNews"),otherPortals:t.blockMap.get("otherPortals"),newsAndBanner:t.blockMap.get("newsAndBanner"),categories:t.blockMap.get("categories")});let n=null,c=m(100);const l=()=>{const a=document.querySelector(".first-container"),i=document.querySelector(".feature-news-container"),p=document.querySelector(".side-container");if(a&&i&&p)if(window.innerWidth>=1280){const d=a.offsetHeight;c.value=d,i.style.height=`${d}px`,p.style.height=`${d}px`}else i.style.height="",p.style.height="",c.value=0};f(()=>{l();const a=document.querySelector(".first-container");a&&(n=new ResizeObserver(()=>{l()}),n.observe(a)),window.addEventListener("resize",l),setTimeout(l,500)}),h(()=>{n&&n.disconnect()});const r=_();return r.params.homeSlug,r.params.articleSlug,r.params.categorySlug,(a,i)=>(k(),w("div",S,[e("div",M,[s(v,{onDataLoaded:l,block:o.value.slideNews},null,8,["block"]),s(x,{onDataLoaded:l,block:o.value.pinNews,class:"max-md:hidden"},null,8,["block"])]),e("div",C,[s(N,{block:o.value.featuredNews,class:"h-full",maxHeight:b(c)},null,8,["block","maxHeight"])]),e("div",H,[s(u,{block:o.value.otherPortals,class:"h-full"},null,8,["block"])]),e("div",A,[e("div",$,[s(B,{block:o.value.newsAndBanner,limit:3},null,8,["block"])])]),e("div",q,[e("div",L,[e("div",null,[s(y,{block:o.value.categories},null,8,["block"])]),e("div",P,[s(u,{block:o.value.imageCards},null,8,["block"])])])])]))}};export{ae 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.