1import{_ as N}from"./B4mKCTF0.js";import{m as b,a4 as C,a6 as F,H as a,g as r,k as v,am as $,d as u,$ as s,y as c,X as h,f as x,b as o,F as w,O as y}from"./DyBThVhF.js";const B={class:"group"},L={class:"bg-yus-gray-4 overflow-hidden"},I=["src","alt"],j={key:0,class:"text-yus-gray-2 mt-5 mb-3 text-sm"},D={class:"text-yus-gray-1 group-hover:text-yus-gold text-2xl duration-300"},O=b({__name:"NewsCard",props:{item:{},large:{type:Boolean,default:!1}},setup(l){const e=l,{locale:d}=C(),g=F(),p=o(()=>new Intl.DateTimeFormat(d.value==="en"?"en-GB":"ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",timeZone:"Europe/Moscow"})),i=o(()=>g(e.item.slug?`/news/${e.item.slug}`:"/news")),n=o(()=>e.item.poster?.preview||e.item.poster?.path||""),_=o(()=>e.item.poster?.alt||e.item.title),t=o(()=>e.large?"h-72 md:h-[32rem] lg:h-[40rem]":"h-72 md:h-[32rem] lg:h-[38rem]"),m=o(()=>{if(!e.item.published_at)return"";const f=new Date(e.item.published_at);return Number.isNaN(f.getTime())?"":p.value.format(f)});return(f,A)=>{const k=N;return a(),r("article",B,[v(k,{to:s(i),class:"block"},{default:$(()=>[u("div",L,[s(n)?(a(),r("img",{key:0,src:s(n),alt:s(_),class:c([s(t),"block h-[18rem] w-full object-cover duration-300 group-hover:scale-105 md:h-[28rem] lg:h-[40rem]"]),loading:"lazy"},null,10,I)):(a(),r("div",{key:1,class:c([s(t),"w-full"]),"aria-hidden":"true"},null,2))]),s(m)?(a(),r("div",j,h(s(m)),1)):x("",!0),u("h3",D,h(l.item.title),1)]),_:1},8,["to"])])}}}),P=Object.assign(O,{__name:"NewsCard"}),V={class:"font-body flex flex-col gap-14 md:flex-row md:flex-wrap md:gap-0"},z=b({__name:"NewsList",props:{items:{},pending:{type:Boolean,default:!1},featureFirst:{type:Boolean,default:!1}},setup(l){const e=l,d=o(()=>e.items);function g(i){return e.featureFirst&&i===0?"md:w-full lg:w-1/2":"md:w-1/2 lg:w-1/4"}function p(i){return e.featureFirst&&i===0}return(i,n)=>{const _=P;return a(),r("div",V,[(a(!0),r(w,null,y(s(d),(t,m)=>(a(),r("div",{key:t.id??t.slug??`${t.title}-${m}`,class:c(["md:p-4",g(m)])},[v(_,{item:t,large:p(m)},null,8,["item","large"])],2))),128)),l.pending&&!s(d).length?(a(),r(w,{key:0},y(4,t=>u("div",{key:`news-skeleton-${t}`,class:c(["animate-pulse md:p-4",l.featureFirst&&t===1?"md:w-full lg:w-1/2":"md:w-1/2 lg:w-1/4"])},[u("div",{class:c(["bg-yus-gray-4 h-72 w-full md:h-[32rem]",l.featureFirst&&t===1?"lg:h-[40rem]":"lg:h-[38rem]"])},null,2),n[0]||(n[0]=u("div",{class:"bg-yus-gray-3 mt-5 mb-3 h-4 w-24"},null,-1)),n[1]||(n[1]=u("div",{class:"bg-yus-gray-3 h-8 w-3/4"},null,-1))],2)),64)):x("",!0)])}}}),T=Object.assign(z,{__name:"NewsList"});export{T as _};
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.