1import{t as o,p as w,C as s,E as k,_ as S,G as a,y as T,z as C,H as x,x as y,F as A,A as E,n as V,q as I,r as l}from"./CG0zx5Uh.js";import $ from"./Bz4VAaEN.js";import{_ as M,S as P}from"./DihZVV5e.js";import"./Dx8lCdQv.js";import"./ByyvypQQ.js";import"./BkDjI9iv.js";const q={class:"BlockNewsTeaser__title"},G={__name:"BlockNewsTeaser",props:{blok:{type:Object,required:!0}},setup(t){const i=l(null),c=l(!0),r=l(!1),n=l(!1);function v(e){i.value=e,c.value=e.isBeginning,r.value=e.isEnd}function p(e){c.value=e.isBeginning,r.value=e.isEnd,n.value||b(e.swipeDirection),n.value=!1}const g=()=>{n.value=!0,i.value?.slidePrev(),u("Arrow left")},B=()=>{n.value=!0,i.value?.slideNext(),u("Arrow right")};function b(e){u(e==="prev"?"Swipe left":"Swipe right")}function u(e){if(window.utag){const d={event_attributes_eventName:"slider_click",event_category:"Content Interaction",event_action:e,event_label:"The latest developments",platform:"weneed-web"};window.utag.link(d)}}return(e,d)=>{const _=S,m=x,N=$,h=M;return o(),w(_,{id:t.blok.anchor,tag:"section",class:k(["BlockNewsTeaser paddingBlock",t.blok.backgroundColor])},{default:s(()=>[a(_,{tag:"div",class:"BlockNewsTeaser__content siteWidthMedium"},{default:s(()=>[T("h2",q,C(t.blok.title),1)]),_:1}),a(_,{tag:"div",class:"BlockNewsTeaser__news siteWidthMedium"},{default:s(()=>[a(m,{name:"arrow-left",class:k(["BlockNewsTeaser__action prev",{disabled:c.value}]),onClick:g},null,8,["class"]),t.blok?.news?(o(),w(h,{key:0,"slides-per-view":1.1,loop:!1,freeMode:!0,"space-between":28,breakpoints:{750:{slidesPerView:2.1,spaceBetween:28},1e3:{slidesPerView:2,spaceBetween:40}},class:"BlockNewsTeaser__slider",onSwiper:v,onSlideChange:p},{default:s(()=>[(o(!0),y(A,null,E(t.blok.news,f=>(o(),w(V(P),{key:f._uid,class:"BlockNewsTeaser__slide"},{default:s(()=>[a(N,{blok:f},null,8,["blok"])]),_:2},1024))),128))]),_:1})):I("",!0),a(m,{name:"arrow-right",class:k(["BlockNewsTeaser__action next",{disabled:r.value}]),onClick:B},null,8,["class"])]),_:1})]),_:1},8,["id","class"])}}};export{G 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.