1import{d as r,p as l,c as h,o as t,j as a,n as s,e as o,f as c,a as i,m as f,t as b,q as x}from"./eUuGUOoT.js";import{_ as B}from"./DxgyrZ4s.js";const w=["href"],y={class:"blog-post-item__content"},v={class:"blog-post-item__date"},$=r({__name:"BlogPostItem",props:{article:{},isCompact:{type:Boolean},isBig:{type:Boolean,default:!1},isSlide:{type:Boolean,default:!1},path:{},idAsSlug:{type:Boolean,default:!1},imageSizes:{}},setup(e){const m=l(()=>e.imageSizes??(e.isSlide?"(max-width: 767px) 90vw, 344px":e.isBig?"(max-width: 767px) 100vw, 66vw":"(max-width: 767px) 100vw, (max-width: 1319px) 50vw, 33vw")),n=l(()=>e.path?`${e.path}${e.idAsSlug?e.article.id:e.article.slug}`:`/${e.article?.category?.slug?"magazines":"articles"}/${e.article.slug}`);return(g,S)=>{const d=f,u=B;return t(),h("a",{class:s(["blog-post-item",{"blog-post-item--compact":e.isCompact,"blog-post-item--big":e.isBig,"blog-post-item--slide":e.isSlide}]),href:a(n)},[e.isCompact?c("",!0):(t(),o(d,{key:0,image:e.article.image,alt:e.article.title,fit:"cover",sizes:a(m),class:"blog-post-item__image-box"},null,8,["image","alt","sizes"])),i("div",y,[i("h5",{class:s(["blog-post-item__title",`${e.isCompact?e.isBig?"h3":"h5":"h4"}`,{"blog-post-item__title--clamp":!e.isCompact}])},b(e.article.title),3),i("span",v,[e.article.publishedAt?(t(),o(u,{key:0,datetime:a(x)(e.article.publishedAt),year:"numeric",month:"long",day:"numeric",locale:"ru-RU"},null,8,["datetime"])):c("",!0)])])],10,w)}}});export{$ 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.