1import{_ as e,o as i,b as l,a as n,t,s as a,h as r,M as s,ao as o,S as d,K as y}from"./app.Dzbe7pQM.js";import{N as p}from"./navigation.DeR_z9_u.js";import{P as h}from"./pagination.DA9MTcmX.js";import"./create-element-if-not-defined.BDcfVTRT.js";const g={class:"gallery-inline__inner"},v={class:"gallery-inline__header"},u={key:0},c=["href"],b={class:"gallery-inline__header--buttons"},w=["innerHTML"],_=["innerHTML"],f=["innerHTML"],m={ref:"gallerySwiper",class:"gallery-inline__swiper swiper"},S={class:"swiper-wrapper"};const C=e({props:{itemData:{type:String,required:!0},overlayKey:{type:String,required:!0},galleryTitle:{type:String,required:!1,default:null},galleryUrl:{type:String,required:!1,default:null}},data:function(){return{activeSlide:0,btnNextClass:`gallery-inline__btn--next-${this.overlayKey}`,btnPrevClass:`gallery-inline__btn--prev-${this.overlayKey}`,paginationClass:`gallery-inline__pagination-${this.overlayKey}`,enableHashNavigation:!0}},computed:{swiperOptions(){return{modules:[p,h,y],autoHeight:!0,loop:!0,spaceBetween:52,observer:!0,observeParents:!0,keyboard:{enabled:!0,pageUpDown:!1},pagination:{el:`.${this.paginationClass}`,type:"fraction",clickable:!0},navigation:{nextEl:`.${this.btnNextClass}`,prevEl:`.${this.btnPrevClass}`},lazyPreloaderClass:"figure__spinner",breakpoints:{760:{slidesPerView:1.5}}}}},mounted(){this.swiper=new d(this.$refs.gallerySwiper,this.swiperOptions),this.swiper.on("slideChange",this.setCurrentSlide),window.history.replaceState(null,null,window.location.pathname+window.location.search),this.$emitter.on("gallery-inline/setSlide",e=>{this.overlayKey===e.overlayKey&&this.swiper.slideToLoop(e.slideIndex,0,!0)}),this.$emitter.on("gallery-inline/openOverlay",e=>this.openOverlay(e))},methods:{setCurrentSlide(){if(this.activeSlide=this.swiper.realIndex,this.enableHashNavigation){const e=o(this.overlayKey);window.history.replaceState(null,null,`#slide-${e}-${this.activeSlide+1}`)}},openOverlay(e){e===this.overlayKey&&this.$emitter.emit("gallery-overlay__"+e+"/open",this.activeSlide)}}},[["render",function(e,o,d,y,p,h){return i(),l("div",g,[n("header",v,[d.galleryTitle?(i(),l("h2",u,[d.galleryUrl?(i(),l("a",{key:0,href:d.galleryUrl},t(d.galleryTitle),9,c)):a("",!0)])):a("",!0),n("div",b,[n("button",{class:r(["gallery-inline__btn btn btn--tertiary",e.btnPrevClass])},[n("span",{"aria-hidden":"true",innerHTML:e.svg("chevron-back")},null,8,w),o[1]||(o[1]=n("span",{class:"text--hidden"},"Vorheriges Bild",-1))],2),n("button",{class:r(["gallery-inline__btn btn btn--tertiary",e.btnNextClass])},[n("span",{"aria-hidden":"true",innerHTML:e.svg("chevron-forward")},null,8,_),o[2]||(o[2]=n("span",{class:"text--hidden"},"Nächstes Bild",-1))],2),d.overlayKey?(i(),l("button",{key:0,class:"gallery-inline__btn btn btn--tertiary",onClick:o[0]||(o[0]=e=>h.openOverlay(d.overlayKey))},[n("span",{"aria-hidden":"true",innerHTML:e.svg("fullscreen-enter")},null,8,f),o[3]||(o[3]=n("span",{class:"text--hidden"},"Vollbildmodus",-1))])):a("",!0)])]),n("div",m,[n("div",S,[s(e.$slots,"default")])],512)])}]]);export{C 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.