1import{_ as U}from"./BVZ6Oj5b.js";import{_ as K}from"./cXKNMdMG.js";import{d as D,aq as O,o as m,k as g,r as n,F as X,v as N,z as $,e as a,A as T,at as B,p as W,X as k,E as S,a6 as Z,aa as H,c as C,q as z,B as x,H as _,g as q,m as E,aS as J,j as Y,bq as Q,K as M,a9 as ee}from"#entry";import{a as j}from"./7ZBoanV9.js";import{_ as te}from"./B2PWY2BN.js";import{e as ae,w as R,f as le}from"./58vMigpj.js";import{u as se}from"./D60iFKJu.js";import{u as oe}from"./tFBqTFkU.js";import{u as V,t as A}from"./xthKyp8e.js";import{u as ne}from"./Ckn04-zL.js";import{u as ie}from"./BnDEbJEG.js";import{d as F}from"./BYTRu-Av.js";import{u as re}from"./Chc2iKhE.js";import{m as ce}from"./DGlqnLXn.js";import{u as de}from"./Kqvgw3WG.js";import"./DdSPAO-K.js";import"./CgQPdWqg.js";import"./oODopNNw.js";import"./CQb_7WEP.js";import"./D-_E0le2.js";import"./DuQQ5T7M.js";import"./Tpn3rx2L.js";import"./C1zvPkS7.js";import"./CQsRh6wf.js";import"./BtpXRz7a.js";import"./WffEOHFJ.js";import"./NIWiImTk.js";const me={class:"gap-4 pointer-events-none"},ue={class:"flex gap-4 pt-0! w-full ml-auto"},ge={class:"flex justify-center items-center gap-x-1 grow self-center pointer-events-auto md:mr-8"},fe=["data-key","onClick","onKeyup"],ve=D({__name:"ContentStepper",props:B({slideCount:{},prevEnabled:{type:Boolean,default:!0},nextEnabled:{type:Boolean,default:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:B(["prev","next"],["update:modelValue"]),setup(t,{emit:l}){const i=O(t,"modelValue"),o=l,f=d=>{i.value=d},w=()=>o("prev"),v=()=>o("next");return(d,h)=>{const e=K;return m(),g("div",me,[n("div",ue,[n("div",ge,[(m(!0),g(X,null,N(t.slideCount,u=>(m(),g("div",{key:`carousel-control-indicator-${u}`,"data-key":u,class:k([i.value===u-1?"bg-black":"bg-black/50","w-3 h-1.5 cursor-pointer focus-visible:ring focus-visible:ring-black outline-none box-content bg-clip-padding grow rounded-full transition duration-300"]),tabindex:"0",onClick:y=>f(u-1),onKeyup:W(y=>f(u-1),["enter"])},null,42,fe))),128))]),$(e,{class:"pointer-events-auto shrink-0 hidden md:flex border-2",size:"small",variant:"outline",disabled:!t.prevEnabled,icon:{name:"chevron-left"},label:("globalLabel"in d?d.globalLabel:a(T))("prev_label"),onClick:w},null,8,["disabled","label"]),$(e,{class:"pointer-events-auto shrink-0 hidden md:flex border-2",size:"small",variant:"outline",disabled:!t.nextEnabled,icon:{name:"chevron-right"},label:("globalLabel"in d?d.globalLabel:a(T))("next_label"),onClick:v},null,8,["disabled","label"])])])}}}),he={class:"w-full h-full flex flex-col items-center justify-center"},pe={key:1,class:"mt-3 text-center text-white max-w-full md:max-w-xl"},be=["id"],xe={key:0,class:"hidden md:block text-xs sm:text-sm opacity-90 leading-snug mt-1"},ye={key:0,class:"mt-2 text-xs md:text-sm text-gray-300 absolute bottom-2 md:bottom-4"},Ie=D({__name:"Lightbox",props:{items:{},initialIndex:{default:0},onClose:{type:Function,default:()=>{}}},setup(t){const l=S(t.initialIndex),i=Z(),o=q(()=>t.items.length>0&&l.value>=0&&l.value<t.items.length?t.items[l.value]:null),f=()=>{t.items.length>1&&(l.value=(l.value+1)%t.items.length)},w=()=>{t.items.length>1&&(l.value=(l.value-1+t.items.length)%t.items.length)},v=()=>{t.onClose()},{ArrowLeft:d,ArrowRight:h}=ae();return R(d,()=>w()),R(h,()=>f()),H(()=>{l.value>=t.items.length&&(l.value=Math.max(0,t.items.length-1))}),(e,u)=>{const y=te,r=K;return m(),g("div",he,[n("div",{class:"relative w-full h-full flex flex-col items-center justify-center",onClick:z(v,["self"])},[a(o)?.image?(m(),C(y,{key:`lb-biv-${a(l)}`,"media-type":a(o).videoData?"video":"image","preview-image":a(o).image,video:a(o).videoData,"alt-text":a(o).image?.altText??a(o).headline,lightbox:!1,class:"max-w-full max-h-[calc(100vh-8rem)] w-auto object-contain",onClick:u[0]||(u[0]=z(()=>{},["stop","prevent"]))},null,8,["media-type","preview-image","video","alt-text"])):x("",!0),a(o)?.headline&&!a(o)?.videoData?(m(),g("div",pe,[n("h3",{id:`lightbox-title-${a(i)}`,class:"text-base md:text-lg font-semibold truncate"},_(a(o).headline),9,be),a(o)?.description?(m(),g("p",xe,_(a(o).description),1)):x("",!0)])):x("",!0)]),t.items.length>1?(m(),g("div",ye,_(a(l)+1)+" / "+_(t.items.length),1)):x("",!0),t.items.length>1?(m(),C(r,{key:1,class:"absolute left-4 md:left-6 top-1/2 -translate-y-1/2 z-52 text-white bg-black/30",size:"large",variant:"outline",icon:{name:"chevron-left"},inverted:!0,label:("globalLabel"in e?e.globalLabel:a(T))("prev_label"),onClick:z(w,["stop"])},null,8,["label"])):x("",!0),t.items.length>1?(m(),C(r,{key:2,class:"absolute right-4 md:right-6 top-1/2 -translate-y-1/2 z-52 text-white bg-black/30",size:"large",variant:"outline",icon:{name:"chevron-right"},inverted:!0,label:("globalLabel"in e?e.globalLabel:a(T))("next_label"),onClick:z(f,["stop"])},null,8,["label"])):x("",!0)])}}}),we={class:"relative max-w-[1271px]","data-t-name":"gallery"},ke={key:0,class:"block font-bold text-xl sm:text-3xl mb-6 sm:mb-8"},_e={class:"relative overflow-hidden pb-6 sm:pb-10"},Ce={ref:"gallery-wrapper",class:"relative w-full flex"},ze={class:"left-of-gallery h-full pr-6 flex absolute gap-6 -translate-x-full"},$e=["src","alt"],Te=["src","alt"],De=["onClick"],Le=["src","alt"],Se={key:2,class:"block absolute bottom-0 sm:p-6 sm:-bottom-14 w-full z-20 pointer-events-none"},Be={class:"bg-darkgreen text-white p-6 rounded-t-none rounded-b-lg sm:rounded-t-lg"},Ee={key:0,class:"block text-base sm:text-xl lg:text-2xl"},Me={class:"hidden ml-6 absolute left-full sm:flex justify-start gap-6 h-full"},je={class:"h-full"},Re=["src","alt"],Ve={class:"h-full"},Ae=["src","alt"],Fe=D({__name:"Gallery",props:{headline:{default:""},lightbox:{type:Boolean,default:!1},slides:{}},setup(t){const l=["aspect-4/3 lg:aspect-video flex-[1_0_calc(100%-48px)] sm:flex-[1_0_408px] md:flex-[1_1_560px] lg:flex-[0_0_840px]","flex-[1_0_160px] sm:flex-[1_0_120px] md:flex-[1_0_122px]","flex-[1_0_160px] sm:flex-[1_0_120px] md:flex-[1_0_122px]"],i=S(0),o=q(()=>t.slides[i.value]),f=E("gallery-wrapper"),w=E("carousel"),v=r=>{i.value=j(r,0,t.slides.length-1)},d=r=>{const c=j(r+i.value-1,0,t.slides.length-1);return t.slides[c]},h=r=>{const{original:c,resolutions:p}=d(r).teaserImage??{resolutions:[],original:{url:""}},b=p.find((([s,I])=>s===870&&I===490));return b?b[2].url:c.url},e=r=>{if(r>1){v(i.value+r-1);return}u()},u=()=>{const{zoomImage:r,videoData:c,teaserImage:p,mediaType:b}=o.value;if(!r&&!c&&!p||!t.lightbox&&b!=="video")return;const s=se();s.openModal({component:Y(Q(Ie)),props:{items:t.slides.map(I=>({image:I.zoomImage||I.teaserImage||{src:"",alt:I.headline},videoData:I.videoData,headline:I.headline,description:I.teaserText})),initialIndex:i.value,onClose:()=>s.closeModal()}})},y=S(0);return le(f,{threshold:16,onSwipeStart:r=>{y.value=r.touches[0].clientX},onSwipeEnd:()=>{f.value&&(f.value.style.transform="translateX(0px)")},onSwipe:r=>{if(!f.value||!w.value)return;const c=r.touches[0].clientX,p=c-y.value,b=w.value.children[0].clientWidth/5;p>b?(v(i.value-1),y.value=c):p<-b&&(v(i.value+1),y.value=c);const s=c-y.value;f.value.style.transform=`translateX(${s}px)`}}),(r,c)=>{const p=U,b=ve;return m(),g("section",we,[t.headline?(m(),g("strong",ke,_(t.headline),1)):x("",!0),n("div",_e,[n("div",Ce,[n("div",ze,[n("div",{class:k(["h-full",l[1]])},[n("img",{class:"object-cover w-full h-full rounded-lg",src:h(-1),alt:d(-1).teaserImage?.altText??""},null,8,$e)],2),n("div",{class:k(["h-full",l[1]])},[n("img",{class:"object-cover w-full h-full rounded-lg",src:h(0),alt:d(0).teaserImage?.altText??""},null,8,Te)],2)]),n("ul",{ref_key:"carousel",ref:w,class:"flex gap-4 sm:gap-6 w-full"},[(m(),g(X,null,N(3,s=>n("li",{key:s-1,class:k(["relative rounded-lg",[l[s-1],s>1&&"overflow-hidden group"]]),onClick:I=>e(s)},[n("div",{class:k(["absolute w-full h-full top-0 left-0 z-10 rounded-lg bg-darkgreen/50 cursor-pointer opacity-0 duration-150 peer",{"hover:opacity-100":s===1&&(t.lightbox&&a(o).mediaType==="image"||a(o).mediaType==="video")}])},null,2),d(s).videoData?(m(),g("div",{key:0,class:k(["p-10 px-12 rounded-full absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-white z-20 duration-150 pointer-events-none bg-black/20",{"peer-hover:bg-transparent":s===1}])},[$(p,{icon:"play",type:"light",class:"relative h-14 left-2"})],2)):x("",!0),s===1&&a(o).mediaType==="image"&&t.lightbox?(m(),C(
1p,{key:1,icon:"magnifying-glass-plus",type:"light",class:"absolute h-14 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-white z-20 pointer-events-none duration-150 opacity-0 peer-hover:opacity-100"})):x("",!0),n("img",{class:k(["object-cover w-full h-full",{"rounded-lg":s===1,"cursor-pointer group-hover:scale-105 duration-300":s>1}]),src:h(s),alt:d(s).teaserImage?.altText??""},null,10,Le),s===1&&a(o).headline?(m(),g("div",Se,[n("div",Be,[a(o).headline?(m(),g("strong",Ee,_(a(o).headline),1)):x("",!0)])])):x("",!0)],10,De)),64))],512),n("ul",Me,[n("li",{class:k(l[1])},[n("div",je,[n("img",{class:"object-cover h-full rounded-lg",src:h(4),alt:d(4).teaserImage?.altText??""},null,8,Re)])],2),n("li",{class:k(l[1])},[n("div",Ve,[n("img",{class:"object-cover h-full rounded-lg",src:h(5),alt:d(5).teaserImage?.altText??""},null,8,Ae)])],2)])],512)]),$(b,{modelValue:a(i),"onUpdate:modelValue":c[0]||(c[0]=s=>J(i)?i.value=s:null),"slide-count":t.slides.length,onNext:c[1]||(c[1]=s=>v(a(i)+1)),onPrev:c[2]||(c[2]=s=>v(a(i)-1))},null,8,["modelValue","slide-count"])])}}});function Ke(t){return!t||Object.keys(t).length===0}const ft=D({__name:"Gallery",props:{previewId:{},headline:{},id:{},lightbox:{type:Boolean},teaserElements:{}},async setup(t){let l,i;const{isInsideContainer:o}=oe(),f=t.teaserElements.filter(e=>!!e.data.image).map(e=>e.data.image),w=t.teaserElements.filter(e=>!!e.data.zoomImage).map(e=>e.data.zoomImage),[v,d]=([l,i]=M(()=>Promise.all([V(f,"GALLERY"),V(w,"FULL_SIZE")])),l=await l,i(),l),{data:h}=([l,i]=M(async()=>ne(ie(t.previewId),async()=>ee(await Promise.allSettled(t.teaserElements.map(async e=>{const u={id:e.id,headline:e.data.headline,teaserText:e.data.teaserText,mediaType:"image"},y=e.data.image&&v.value[e.data.image.referenceId]?A(v.value[e.data.image.referenceId]):null;u.teaserImage=F(y,{altText:e.data.imageAltText,decorative:e.data.imageDecorative});const r=e.data.zoomImage&&d.value[e.data.zoomImage.referenceId]?A(d.value[e.data.zoomImage.referenceId]):null;u.zoomImage=F(r,{altText:e.data.zoomImageAltText,decorative:e.data.imageDecorative});const c=e.data.mp4,p=e.data.ogv,b=e.data.webm,s=await re([c,p,b]),I=s[c?.referenceId||""],G=s[p?.referenceId||""],P=s[b?.referenceId||""],L=ce({...e.data,mp4:I,ogv:G,webm:P});return(L.format||!Ke(L.elements))&&(u.mediaType="video",u.videoData=L),u}))),"$0ZTEsCJiLK")),l=await l,i(),l);return de((h.value??[]).filter(e=>e.mediaType==="video"&&!!e.videoData).map(e=>({name:e.headline||e.teaserImage?.altText||void 0,thumbnailUrl:e.teaserImage?.original?.url,video:e.videoData}))),(e,u)=>(m(),g("section",{class:k(["page-grid-wide",{"vertical-spacing-enabled":!a(o)}])},[a(h)?.length?(m(),C(Fe,{key:0,slides:a(h),headline:t.headline,lightbox:t.lightbox,class:"grid-inside"},null,8,["slides","headline","lightbox"])):x("",!0)],2))}});export{ft 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.