1import{a as $}from"./CPiyXOCd.js";import{g as C,i as P,o as i,c as a,b as s,l as o,w as m,m as n,p as f,t as r,n as _,F as A,d as k,_ as j}from"./B9wzSmML.js";const D={class:"w-full lg:container flex items-center flex-col mx-auto px-4 py-6 space-y-4"},N={class:"lg:w-2/3"},I={key:0,class:"overflow-hidden flex flex-row md:flex-row items-center p-4 pb-2 border-b"},L={class:"flex sm:flex-col flex-col md:px-4 p-2 h-full w-2/3 sm:justify-items-start"},V={class:"flex items-center space-x-2 mb-2"},z={class:"text-gray-500 md:text-sm text-[12px]"},B={class:"flex sm:flex-col flex-col md:px-4 p-2 h-full w-2/3 sm:justify-items-start"},U={class:"flex items-center space-x-2 mb-2"},F={class:"text-gray-500 md:text-sm text-[12px]"},S={class:"flex sm:flex-col flex-col md:px-4 p-2 h-full w-2/3 sm:justify-items-start"},q={class:"flex items-center space-x-2 mb-2"},E={class:"text-gray-500 md:text-sm text-[12px]"},G={__name:"CompactComponent",props:{list:{type:Array,required:!0},mainPinnedArticles:{type:Object,default:null},pinnedArticles:{type:Array,default:[]}},setup(t){const l=C(),c=P();return(u,O)=>{var p,w,b,h,v,y;const x=$,d=j;return i(),a("div",D,[s("div",N,[t.mainPinnedArticles?(i(),a("div",I,[o(d,{to:n(c).name==="index"?`news/${(p=t.mainPinnedArticles)==null?void 0:p.id}`:`/news/${(w=t.mainPinnedArticles)==null?void 0:w.id}`,class:"block relative overflow-hidden cursor-pointer w-[210px] h-[120px] rounded-lg aspect-[3/2]"},{default:m(()=>[o(x,{src:n(l).baseUrl+t.mainPinnedArticles.mainImage,alt:t.mainPinnedArticles.titleCyrillic,class:"w-full h-full object-cover hover:scale-110 transition-transform duration-500 ease-in-out"},null,8,["src","alt"])]),_:1},8,["to"]),s("div",L,[o(d,{to:n(c).name==="index"?`news/${(b=t.mainPinnedArticles)==null?void 0:b.id}`:`/news/${(h=t.mainPinnedArticles)==null?void 0:h.id}`,class:"md:text-lg text-black font-inter font-semibold mb-2 line-clamp-2 hover:text-blue cursor-pointer whitespace-normal break-words text-sm"},{default:m(()=>{var e,g;return[f(r(n(l).lang==="uzc"?(e=t.mainPinnedArticles)==null?void 0:e.titleCyrillic:(g=t.mainPinnedArticles)==null?void 0:g.titleLatin),1)]}),_:1},8,["to"]),s("div",V,[s("span",z,r(u.$formatCustomDate((v=t.mainPinnedArticles)==null?void 0:v.createdDate)),1)])])])):_("",!0),((y=t.pinnedArticles)==null?void 0:y.length)>0?(i(!0),a(A,{key:1},k(t.pinnedArticles,e=>(i(),a("div",{class:"overflow-hidden flex flex-row md:flex-row items-center p-4 pb-2 border-b",key:e.id},[o(d,{to:`news/${e==null?void 0:e.id}`,class:"block relative overflow-hidden cursor-pointer w-[210px] h-[120px] rounded-lg aspect-[3/2]"},{default:m(()=>[o(x,{src:n(l).baseUrl+e.mainImage,alt:e.titleCyrillic,class:"w-full h-full object-cover hover:scale-110 transition-transform duration-500 ease-in-out"},null,8,["src","alt"])]),_:2},1032,["to"]),s("div",B,[o(d,{to:`news/${e==null?void 0:e.id}`,class:"md:text-lg text-black font-inter font-semibold mb-2 line-clamp-2 hover:text-blue cursor-pointer whitespace-normal break-words text-sm"},{default:m(()=>[f(r(n(l).lang==="uzc"?e==null?void 0:e.titleCyrillic:e==null?void 0:e.titleLatin),1)]),_:2},1032,["to"]),s("div",U,[s("span",F,r(u.$formatCustomDate(e==null?void 0:e.createdDate)),1)])])]))),128)):_("",!0),(i(!0),a(A,null,k(t.list,e=>(i(),a("div",{class:"overflow-hidden flex flex-row md:flex-row items-center p-4 pb-2 border-b last:border-b-0",key:e.id},[o(d,{to:n(c).name==="index"?`news/${e==null?void 0:e.id}`:`/news/${e==null?void 0:e.id}`,class:"block relative overflow-hidden cursor-pointer w-[210px] h-[120px] rounded-lg aspect-[3/2]"},{default:m(()=>[o(x,{src:n(l).baseUrl+e.mainImage,alt:e.titleCyrillic,class:"w-full h-full object-cover hover:scale-110 transition-transform duration-500 ease-in-out"},null,8,["src","alt"])]),_:2},1032,["to"]),s("div",S,[o(d,{to:n(c).name==="index"?`news/${e==null?void 0:e.id}`:`/news/${e==null?void 0:e.id}`,class:"md:text-lg text-black font-inter font-semibold mb-2 line-clamp-2 hover:text-blue cursor-pointer whitespace-normal break-words text-sm"},{default:m(()=>[f(r(n(l).lang==="uzc"?e==null?void 0:e.titleCyrillic:e==null?void 0:e.titleLatin),1)]),_:2},1032,["to"]),s("div",q,[s("span",E,r(u.$formatCustomDate(e==null?void 0:e.createdDate)),1)])])]))),128))])])}}};export{G 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.