1import{d as E,o as t,c as n,e as d,h as s,b as r,t as i,n as _,g as c,x as S,O as L,i as B,j as o,Z as A,f as R,aj as N,D as V}from"./DjUjRTxR.js";const $=["data-theme"],j={key:0,class:"entrance-card__media"},I={class:"entrance-card__content p-md"},O={class:"mb-2xl line-clamp-3 pt-[0.2em] text-title-md"},M={class:"entrance-card__bottom"},T={key:0,class:"entrance-tag mb-xs inline-block p-xs text-eyebrow font-light"},z=["aria-label"],D={class:"entrance-card__readmore"},F=E({__name:"EntranceCard",props:{item:{},showTag:{type:Boolean,default:!1},layout:{default:"small"}},emits:["readmore"],setup(u,{emit:p}){const e=u,h=p,f=["default","secondary","neutral"],b=o(()=>{const a=e.item?.theme;return!a||f.includes(a)}),l={default:"entrance-card--default bg-theme-surface-primary text-theme-ink-invert",secondary:"entrance-card--secondary bg-theme-surface-secondary text-theme-ink-invert",neutral:"entrance-card--neutral bg-theme-surface-neutral-primary text-theme-ink"},x=o(()=>"entrance-card "+(l[e.item?.color??"default"]??l.default)),k=o(()=>!!e.item.smartLink?.label||m.value),y=o(()=>k.value?e.layout==="large"?"text-body-md line-clamp-4 md:line-clamp-5":"text-body-md line-clamp-4 md:line-clamp-3":"text-body-md"),m=o(()=>!!e.item.readmore?.length),g=()=>{m.value&&h("readmore",e.item)};return(a,U)=>{const v=A,C=R,w=N;return t(),n("article",{"data-component":"entrance-card","data-theme":e.item.theme||void 0,class:_([c(x),{"entrance-card--surface-variant":c(b)}])},[e.item.media?(t(),n("figure",j,[d(v,{image:e.item.media,class:"h-full w-full object-cover",w:1280,"use-srcset":"",sizes:"(min-width: 64rem) 33vw, (min-width: 40rem) 50vw, 100vw","data-card-image":""},null,8,["image"])])):s("",!0),r("div",I,[r("h3",O,i(e.item.title),1),r("div",M,[e.showTag&&e.item.tag?.name?(t(),n("span",T,i(e.item.tag.name),1)):s("",!0),e.item.text?(t(),n("div",{key:1,class:_(c(y))},i(e.item.text),3)):s("",!0),e.item.smartLink?.label?(t(),S(C,{key:2,link:e.item.smartLink,class:"entrance-card__cta module-cta-secondary mt-md block text-left"},null,8,["link"])):s("",!0)])]),c(m)?(t(),n("button",{key:1,"data-component":"entrance-card-button",class:"entrance-card__overlay-btn","aria-label":("$t"in a?a.$t:c(B)).LAES_MERE,onClick:L(g,["stop"])},[r("span",D,[d(w,{"aria-hidden":"true"})])],8,z)):s("",!0)],10,$)}}}),q=Object.assign(V(F,[["__scopeId","data-v-f98872ca"]]),{__name:"EntranceCard"});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.