PageSourceSearch

https://weneed.ch/_nuxt/Bz4VAaEN.js

js weneed.ch collected 2026-10-02 00:05:41 UTC 2,323 bytes, 1 lines download raw bytes

1import $ from"./Dx8lCdQv.js";import{u as Y,O as C,t as l,x as r,z as c,q as _,y as i,G as v,E as a,n as t,D as b,C as D,T as E,r as h,f as m,L as k}from"./CG0zx5Uh.js";import"./ByyvypQQ.js";import"./BkDjI9iv.js";const V={key:0,class:"AtomNewsTeaser__tag"},z=["datetime"],W={class:"AtomNewsTeaser__title"},q=["innerHTML"],I=["innerHTML"],S=["aria-label"],K={__name:"AtomNewsTeaser",props:{blok:{type:Object,required:!0}},setup(o){const u=o,s=h(!1),f=h(!1);function w(){f.value=!0}function N(){f.value=!1}function T(){s.value=!s.value}const n=h(null),y=m(()=>s.value&&n.value?`translateY(-${n.value.clientHeight}px)`:"translateY(0)"),A=m(()=>s.value&&n.value?`-${n.value.clientHeight}px`:"0px"),x=e=>{e.style.height="0",e.style.opacity="0"},M=e=>{const g=e.scrollHeight;e.style.height=`${g}px`,e.style.opacity="1",e.addEventListener("transitionend",()=>{e.style.height="auto"},{once:!0})},H=e=>{e.style.height=`${e.scrollHeight}px`,e.offsetHeight,e.style.height="0",e.style.opacity="0"},{locale:B}=Y(),O=C(u.blok.date,"DD. MMMM YYYY",{locales:B.value}),d=m(()=>k(u.blok?.text)),p=m(()=>k(u.blok?.additionalText));return(e,g)=>{const L=$;return l(),r("div",{class:a(["AtomNewsTeaser",{isOpen:t(s)}]),onMouseenter:w,onMouseleave:N,onClick:T},[o.blok.hasLabelNew?(l(),r("span",V,c(e.$t("components.AtomNewsTeaser.new")),1)):_("",!0),i("div",{ref_key:"imageWrapper",ref:n,class:a(["AtomNewsTeaser__imageWrapper",{isOpen:t(s)}]),style:b({transform:t(y)})},[v(L,{blok:o.blok,class:a(["AtomNewsTeaser__image",{isOpen:t(s)}])},null,8,["blok","class"])],6),i("div",{class:a(["AtomNewsTeaser__content",{isOpen:t(s)}]),style:b({transform:t(y),marginBottom:t(A)})},[i("time",{datetime:o.blok.date,class:"AtomNewsTeaser__date"},c(t(O)),9,z),i("p",W,c(o.blok.title),1),t(d)!==""&&t(d)!=="<p></p>"?(l(),r("div",{key:0,class:"AtomNewsTeaser__text",innerHTML:t(d)},null,8,q)):_("",!0),v(E,{name:"fadeHeight",onBeforeEnter:x,onEnter:M,onLeave:H},{default:D(()=>[t(s)&&t(p)!==""&&t(p)!=="<p></p>"?(l(),r("div",{key:0,class:a(["AtomNewsTeaser__additionalText",{isOpen:t(s)}]),innerHTML:t(p)},null,10,I)):_("",!0)]),_:1}),i("p",{class:a(["AtomNewsTeaser__button",{isOpen:t(s)}]),type:"button","aria-label":e.$t("components.AtomNewsTeaser.readMore"),onClick:T},c(e.$t("components.AtomNewsTeaser.readMore")),11,S)],6)],34)}}};export{K as default};

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.