import{_ as y}from"./BlogExpert.vue.6e484d3e.js";import{_ as $}from"./BlogHeroSocialIcons.vue.06c7aa0d.js";import{u as w}from"./pageSettings.d13605c5.js";import{A as B}from"./blog.5cb08562.js";import{d as S,e as D,f as E,i as F}from"./index.88cd5f45.js";import{f as T,n as A,o,c as l,a as n,F as C,B as R,t as s,x as N,v as r,l as V,b as v}from"./entry.bdf9bf1d.js";const L={class:"w-full max-w-[960px] mx-auto px-[20px] flex flex-col gap-[24px]"},P={class:"flex flex-wrap gap-[8px]"},U={class:"text-[calc(18px_*_2)] md:text-[calc(18px_*_2.5)] lg:text-[calc(18px_*_2.75)] leading-[1.25] hyphens-auto"},j={class:"max-w-[82.5%] text-neutral text-[14px] font-500"},G={class:"inline hyphens-auto"},H={key:0,class:"before:content-['•'] before:mx-[0.3em] inline hyphens-auto"},I={key:1,class:"before:content-['•'] before:mx-[0.3em] inline hyphens-auto"},M={class:"lg:max-w-[92.5%] text-[17px] md:text-[18px] lg:text-[19px] leading-[1.75] hyphens-auto text-neutral-dark"},q={class:"flex flex-wrap gap-[24px] items-center justify-between"},X=T({__name:"BlogDetailHero",props:{blok:{}},setup(f){const e=f,b=w(),h={de:S,en:D,fr:E,it:F},c=t=>new Date(t).toLocaleDateString(h[b.currentLanguage].code,{year:"numeric",month:"long",day:"numeric"}),k=A(()=>{const i=(e.blok.content||[]).filter(({component:a})=>a!=="blog-image").map(({content:a})=>a).join(`

`).split(" ").length;return Math.round(i/B)});return(t,i)=>{var m,x,d,_,u;const p=y,a=$;return o(),l("div",L,[n("ul",P,[(o(!0),l(C,null,R(e.blok.categories,g=>(o(),l("li",{key:g.id,class:"text-[14px] bg-neutral-lightest px-[12px] py-[4px] rounded-[33px] font-500"},s(g.content.title),1))),128))]),n("h1",U,s(e.blok.title),1),n("ul",j,[n("li",G,s(`${N(k)||"0"} ${t.$t("blog.minutes")} ${t.$t("blog.read")}`),1),e.blok.date?(o(),l("li",H,s(`${t.$t("blog.createdBy")} ${c(e.blok.date)}`),1)):r("",!0),e.blok.lastUpdate?(o(),l("li",I,s(`${t.$t("blog.lastUpdate")} ${c(e.blok.lastUpdate)}`),1)):r("",!0)]),n("p",M,s(e.blok.summary),1),n("div",q,[(m=e.blok)!=null&&m.expert&&((d=(x=e.blok)==null?void 0:x.expert)!=null&&d.content)?(o(),V(p,{key:0,expert:(u=(_=e.blok)==null?void 0:_.expert)==null?void 0:u.content},null,8,["expert"])):r("",!0),v(a)])])}}});export{X as _};
