1import{_ as w,d as C}from"./Dl1k-eDe.js";import{_ as N}from"./B9NXntqg.js";import{ae as B,ax as D,z as $}from"./BbKXmf2X.js";import{d as z,O as T,X as s,K as o,u as l,F as p,a4 as u,af as a,m as i,_ as m,ae as j,ah as A,f as H,e as L,l as M}from"./BVpyO-BZ.js";import"./DnImIBm3.js";import"./Df3SBET0.js";import"./C46zjNov.js";import"./BUjDCErj.js";import"./DXcmVafX.js";import"./B4IBe3EW.js";import"./CR8mkQPC.js";import"./IT8abcad.js";import"./QternNd_.js";import"./BdB8dZEA.js";const V=["id"],F={key:0,class:"grid grid-cols-1 md:grid-cols-3 md:gap-x-3 lg:gap-x-6"},O={class:"relative mb-4 flex w-full flex-col border border-gray-200 md:mb-6"},S={class:"h-50 overflow-hidden border-gray-200"},U=["src"],E={class:"flex border-b border-gray-200 px-4 py-1"},K={class:"my-0.5 mr-3 flex min-h-7.5 shrink-0 items-center text-gray-400"},X={key:0,class:"flex flex-wrap"},q={class:"px-3 py-4 pb-10 text-sm lg:p-4 lg:pb-14"},G={class:"mb-1 line-clamp-1 text-base font-bold uppercase"},J=["innerHTML"],P={key:0,class:"absolute inset-x-0 bottom-0 z-10 flex justify-end"},Q=z({inheritAttrs:!1,__name:"NewsCols3",props:{id:{default:void 0},uid:{default:void 0},data:{default:()=>({})}},setup(d){const c=d,{convertItems:_}=B(),{convertBlog:g}=D(),n=H([]),h=r=>{const t=$(r)??"";return t.length>300?`${t.slice(0,300)}...`:t};(()=>{const r=c.data?.NewsItemCategoryID,t=c.data?.NewsItems;!r&&!t?.length&&console.error("NewsItemCategoryID or newsItems is missing"),t?.length&&(n.value=_(g,t??[]))})();const f=L(()=>`${c.uid??M()?.uid}`);return(r,t)=>{const x=w,b=T("i18n-d"),y=N,v=C;return s(),o("section",{id:d.id,class:A([[`block-${l(f)}`,r.$attrs.class],"block-news-cols3"])},[l(n)&&l(n).length?(s(),o("ul",F,[(s(!0),o(p,null,u(l(n),e=>(s(),o("li",{key:e.id,class:"flex"},[a("div",O,[a("div",S,[a("img",{src:e.image,alt:"img",width:"400",height:"400",class:"h-full w-full object-cover"},null,8,U)]),a("div",E,[a("p",K,[i(x,{name:"i-heroicons-calendar",class:"mr-1.5"}),i(b,{value:new Date(e.publicationDate),format:"short"},null,8,["value"])]),e.tags&&e.tags.length?(s(),o("ul",X,[(s(!0),o(p,null,u(e.tags,(I,k)=>(s(),o("li",{key:k,class:"mx-1 my-0.5"},[i(y,{tag:I,"wrapper-classes":"bg-primary-500 hover:bg-primary-600 inline-block uppercase! h-[30px] max-w-[180px] px-2 leading-[30px] text-white hover:no-underline md:max-w-[200px]"},null,8,["tag"])]))),128))])):m("",!0)]),a("div",q,[a("h3",G,j(e.heading||e.title),1),a("div",{innerHTML:h(e.summary||e.text)},null,8,J)]),e.url?(s(),o("div",P,[i(v,{to:e.url,"trailing-icon":"i-heroicons-chevron-right",size:"lg",class:"rounded-none uppercase",label:e.linkTitle||r.$t("text.readMore")},null,8,["to","label"])])):m("",!0)])]))),128))])):m("",!0)],10,V)}}}),de=Object.assign(Q,{__name:"BlocksDynamicNewsCols3"});export{de 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.