1import{_ as g}from"./Csd2jvSC.js";import{_ as k}from"./TMMvcIpE.js";import{a as y,d as I,k as M}from"./D7enOkY_.js";import{_ as B}from"./DlAUqK2U.js";import{d as _,E as L,ao as D,a9 as j,aa as m,ab as x,aj as e,ap as N,am as P,af as C,H as E,ak as l,u as s,an as F}from"./_MbA3FA0.js";const H={class:"overflow-hidden rounded-tl-5xl rounded-tr-5xl"},T=["src","alt"],V={class:"details bg-gray-100 p-6 rounded-bl-5xl rounded-br-5xl"},z={class:"date"},A={class:"text-xs-mob md:text-xs mt-5 mb-2 uppercase",style:{"word-break":"break-word"}},S=["innerHTML"],U={"aria-hidden":"true",class:"flex items-center justify-center gap-x-2.5"},$={class:"text-btn opacity-0 uppercase"},q={__name:"Article",props:{article:{type:Object,required:!0}},setup(t){const{t:n,locale:O}=y(),p=I();M();var a=_(null);L(()=>{const r=()=>{window.innerWidth>768?a.value=!1:a.value=!0};r(),window.addEventListener("resize",()=>{r()})});let o=_(!1);const v=()=>{o.value=!0},w=()=>{o.value=!1};return(r,i)=>{const f=g,h=k,b=D("image-reveal");return m(),j(h,{"card-post":"",to:s(p)({name:"news-slug",params:{slug:t.article.slug}}),class:"rounded-5xl cursor-pointer",onMouseover:v,onMouseout:w},{default:x(()=>{var c,d,u;return[e("div",H,[(u=(d=(c=t.article.articlesFields)==null?void 0:c.previewImage)==null?void 0:d.node)!=null&&u.sourceUrl?N((m(),C("img",{key:0,alt:"",src:t.article.articlesFields.previewImage.node.sourceUrl,class:"rounded-tl-5xl rounded-tr-5xl w-full object-cover h-[280px]"},null,8,T)),[[b]]):P("",!0)]),e("div",V,[e("span",z,l(new Date(t.article.date).toLocaleString("it-IT").slice(0,10)),1),e("h3",A,l(t.article.title),1),e("div",{class:"preview-text text-wrap mb-9 max-md:max-w-[calc(100vw_-_5rem)] _truncate w-full",innerHTML:`${t.article.articlesFields.text.substring(0,200)}...`},null,8,S),E(f,{green:"",class:F(["!p-3 rounded-full w-9 btn-read-more",{"open btn-big":s(o)===!0||s(a)}]),"aria-label":s(n)("news.readPost")},{default:x(()=>[e("div",U,[i[0]||(i[0]=e("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("line",{x1:"6.5",y1:"13",x2:"6.5",y2:"2.18556e-08",stroke:"white"}),e("line",{y1:"6.5",x2:"13",y2:"6.5",stroke:"white"})],-1)),e("span",$,l(s(n)("news.readPost")),1)])]),_:1},8,["class","aria-label"])])]}),_:1},8,["to"])}}},Q=B(q,[["__scopeId","data-v-60301c5f"]]);export{Q 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.