1import{j as W,N as U,P as y,O as R,ak as Q,cM as J,cN as X,aE as Y,_ as q,r as p,o,c as i,$ as G,a as g,l as k,w as f,h as r,t as n,aV as x,aP as B,aW as ee,ai as ae,Q as oe,E as le,al as ie,cB as re,cO as ne,aj as te,g as Z,F as M,e as se}from"./index-D-iuxWOd.js";import{s as de,a as me,b as pe,v as ce}from"./sliderInteractionTracking-DrZBjYMs.js";var ye=Object.defineProperty,he=Object.getOwnPropertyDescriptor,_=(e,a,m,t)=>{for(var l=t>1?void 0:t?he(a,m):a,h=e.length-1,s;h>=0;h--)(s=e[h])&&(l=(t?s(a,m,l):s(l))||l);return t&&l&&ye(a,m,l),l};let c=class extends W(U){constructor(){super(...arguments),this.emits=["update:modelValue","onMobileZoom"]}get hasCompanyInformation(){return this.company?Object.values(this.company).some(a=>!!a):!1}get src(){return this.image.src}handleLinkClick(a){a&&this.navigate(a,!0)}handleTapIconClick(){this.$emit("update:modelValue",!this.modelValue)}handleMobileZoom(a){this.$emit("onMobileZoom",a)}};_([y({})],c.prototype,"image",2);_([y({required:!1})],c.prototype,"company",2);_([y({})],c.prototype,"modelValue",2);_([y({type:Boolean,default:!0})],c.prototype,"lazyLoad",2);c=_([R({name:"AdvertorialGallerySlide",components:{DnmDivider:Q,DnmZoomablePicture:J,DnmTapIcon:X,DnmIcon:Y}})],c);const ue={class:"advertorialGallerySlide"},ge={class:"advertorialGallerySlide__picture"},ve={class:"advertorialGallerySlide__infoWrapper"},fe={class:"advertorialGallerySlide__description"},be={class:"advertorialGallerySlide__companyInformation"},ke={key:0,class:"advertorialGallerySlide__information"},_e={key:0,class:"advertorialGallerySlide__informationCompanyName"},Ce={key:1,class:"advertorialGallerySlide__informationCompanyName"},Se={key:2},De={key:3},Ie={key:4},Ge=["href"],Oe={key:6},we=["href"],$e={key:8},Le=["href"],Ae={key:1,class:"advertorialGallerySlide__informationFurtherInformations"};function Te(e,a,m,t,l,h){const s=p("DnmZoomablePicture"),O=p("DnmIcon"),w=p("DnmTapIcon"),$=p("DnmDivider");return o(),i("div",ue,[G("div",ge,[g(s,{image:e.src,"aspect-ratio":"4/3",class:"advertorialGallerySlide__pictureMobile",alt:e.image.alt,"lazy-load":e.lazyLoad,onOnZoom:e.handleMobileZoom},null,8,["image","alt","lazy-load","onOnZoom"]),g(s,{image:e.src,class:"advertorialGallerySlide__pictureDesktop",alt:e.image.alt,"lazy-load":e.lazyLoad},null,8,["image","alt","lazy-load"]),e.hasCompanyInformation?(o(),k(w,{key:0,active:e.modelValue,onOnClick:e.handleTapIconClick,class:"advertorialGallerySlide__tapIcon","is-activatable":"",size:"medium"},{default:f(()=>[g(O,{"icon-name":"information"})]),_:1},8,["active","onOnClick"])):r("",!0)]),G("div",ve,[G("div",fe,n(e.image.description),1),g($,{class:"advertorialGallerySlide__divider","divider-type":"dashed-thin"}),g(ae,{name:"companyData"},{default:f(()=>{var C,S,u,D,I,L,A,T,P,N,V,F,z,j;return[x(G("div",be,[e.hasCompanyInformation?(o(),i("div",ke,[(C=e.company)!=null&&C.companyName?(o(),i("div",_e,n(e.$t("storylineGallery.company.name"))+": ",1)):r("",!0),(S=e.company)!=null&&S.companyName?(o(),i("div",Ce,n(e.company.companyName),1)):r("",!0),(u=e.company)!=null&&u.address?(o(),i("div",Se,n(e.$t("storylineGallery.company.address"))+": ",1)):r("",!0),(D=e.company)!=null&&D.address?(o(),i("div",De,n(e.company.address),1)):r("",!0),(I=e.company)!=null&&I.email?(o(),i("div",Ie,n(e.$t("storylineGallery.company.email"))+": ",1)):r("",!0),(L=e.company)!=null&&L.email?(o(),i("a",{key:5,onClick:a[0]||(a[0]=B(K=>{var b;return e.handleLinkClick(`mailto:${(b=e.company)==null?void 0:b.email}`)},["prevent"])),href:`mailto:${(A=e.company)==null?void 0:A.email}`},n(e.company.email),9,Ge)):r("",!0),(T=e.company)!=null&&T.website?(o(),i("div",Oe,n(e.$t("storylineGallery.company.website"))+": ",1)):r("",!0),(P=e.company)!=null&&P.website?(o(),i("a",{key:7,onClick:a[1]||(a[1]=B(K=>{var b;return e.handleLinkClick((b=e.company)==null?void 0:b.website)},["prevent"])),href:(N=e.company)==null?void 0:N.website},n(e.company.website),9,we)):r("",!0),(V=e.company)!=null&&V.telephone?(o(),i("div",$e,n(e.$t("storylineGallery.company.phone"))+": ",1)):r("",!0),(F=e.company)!=null&&F.telephone?(o(),i("a",{key:9,href:`tel:${(z=e.company)==null?void 0:z.telephone}`},n(e.company.telephone),9,Le)):r("",!0)])):r("",!0),e.hasCompanyInformation&&((j=e.company)!=null&&j.furtherInformations)?(o(),i("div",Ae,n(e.company.furtherInformations),1)):r("",!0)],512),[[ee,e.modelValue]])]}),_:1})])])}const Pe=q(c,[["render",Te],["__scopeId","data-v-76abbb9c"]]);var H;try{"__c"in c&&((H=c.__c).componentFileName??(H.componentFileName=Object.create(null)),Object.defineProperty(c.__c,"componentFileName",{value:"app/components/storyline/storylineGallery/AdvertorialGallerySlide.vue"}))}catch(e){console.error("injectFileNamePlugin",e)}var Ne=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,v=(e,a,m,t)=>{for(var l=t>1?void 0:t?Ve(a,m):a,h=e.length-1,s;h>=0;h--)(s=e[h])&&(l=(t?s(a,m,l):s(l))||l);return t&&l&&Ne(a,m,l),l};let d=class extends W(oe,U){constructor(){super(...arguments),this.indexToOpenInLightbox=0,this.showLightbox=!1,this.showDescription=!1,this.disableSlider=!1}get galleryTitle(){return[this.$t("storylineAdvertorialGallery.headline"),this.title].filter(
1Boolean).join(": ")}get imagesForLightboxSlider(){return this.images.map(a=>({image:{...this.mapImagePropsToImage(a),src:a.srcOriginalSize||a.src||""},companyData:a.company}))}get imagesForImageSlider(){return this.images.map(this.mapImagePropsToImage)}mapImagePropsToImage(a){const m=this.$t("enrichedImage.photoCredit",{credit:a.credit}),t=`${a.description} (${m})`;return{src:a.src||"",alt:a.alt||"",description:t||""}}observationCallBack(){var a;this.imagesForImageSlider&&this.imagesForImageSlider.length&&(de(this.galleryTitle),(a=this.observer)==null||a.unobserve(this.$el))}rightArrowClickHandle(){me(this.galleryTitle)}leftArrowClickHandle(){pe(this.galleryTitle)}sliderChangeHandle(a){ce(a+1,this.images.length,this.galleryTitle),this.EventBus.publish("gallery.clicked")}handleImageClick(a){this.indexToOpenInLightbox=a,this.showLightbox=!0,this.EventBus.publish("gallery.clicked")}handleDescriptionClick(a){this.navigate(a,!0)}handleMobileZoom(a){this.disableSlider=a}};v([y({default:()=>[]})],d.prototype,"images",2);v([y({type:String,default:""})],d.prototype,"title",2);v([y({type:String,default:""})],d.prototype,"imageGalleryUrl",2);v([y({type:Boolean,default:!1})],d.prototype,"hideGalleryTitle",2);v([y({type:Boolean,default:!0})],d.prototype,"lazyLoad",2);v([y({type:Boolean,default:!1})],d.prototype,"isLcp",2);d=v([R({name:"AdvertorialGallery",components:{DnmContentWrapper:le,DnmHeadline:ie,DnmImageSlider:re,DnmAdvertorialLightboxSlider:ne,DnmPicture:te,AdvertorialGallerySlide:Pe}})],d);function Fe(e,a,m,t,l,h){const s=p("DnmLink"),O=p("DnmHeadline"),w=p("DnmContentWrapper"),$=p("DnmImageSlider"),C=p("AdvertorialGallerySlide"),S=p("DnmAdvertorialLightboxSlider");return o(),i("div",null,[e.hideGalleryTitle?r("",!0):(o(),k(w,{key:0,size:"medium",class:"advertorialGallery__headline"},{default:f(()=>[g(O,{"headline-style":"headline3",tag:"h2"},{default:f(()=>[e.imageGalleryUrl?(o(),k(s,{key:0,href:e.imageGalleryUrl,class:"advertorialGallery__link","data-testid":"advertorialGallery-link"},{default:f(()=>[Z(n(e.galleryTitle),1)]),_:1},8,["href"])):(o(),i(M,{key:1},[Z(n(e.galleryTitle),1)],64))]),_:1})]),_:1})),e.imagesForImageSlider&&e.imagesForImageSlider.length?(o(),k($,{key:1,images:e.imagesForImageSlider,onOnRightArrowClick:e.rightArrowClickHandle,onOnLeftArrowClick:e.leftArrowClickHandle,onOnSliderChange:e.sliderChangeHandle,onOnImageClick:e.handleImageClick,onOnInfoLinkClick:e.handleDescriptionClick,"content-wrapper-size":"medium",clickable:"","lazy-load":e.lazyLoad,fetchpriority:e.isLcp?"high":void 0,"fetchpriority-count":4},null,8,["images","onOnRightArrowClick","onOnLeftArrowClick","onOnSliderChange","onOnImageClick","onOnInfoLinkClick","lazy-load","fetchpriority"])):r("",!0),g(S,{modelValue:e.showLightbox,"onUpdate:modelValue":a[1]||(a[1]=u=>e.showLightbox=u),"open-at-index":e.indexToOpenInLightbox,"slider-disabled":e.disableSlider},{default:f(()=>[(o(!0),i(M,null,se(e.imagesForLightboxSlider,(u,D)=>(o(),k(C,{modelValue:e.showDescription,"onUpdate:modelValue":a[0]||(a[0]=I=>e.showDescription=I),company:u.companyData,image:u.image,key:D,onOnMobileZoom:e.handleMobileZoom},null,8,["modelValue","company","image","onOnMobileZoom"]))),128))]),_:1},8,["modelValue","open-at-index","slider-disabled"])])}const Me=q(d,[["render",Fe],["__scopeId","data-v-93a1420f"]]);var E;try{"__c"in d&&((E=d.__c).componentFileName??(E.componentFileName=Object.create(null)),Object.defineProperty(d.__c,"componentFileName",{value:"app/components/storyline/storylineGallery/AdvertorialGallery.vue"}))}catch(e){console.error("injectFileNamePlugin",e)}export{Me 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.