import{_ as d,S as Z,c,e as ee,k as te,u as ne}from"./app.js";import{N as ie,P as oe,A as se,f as re}from"./swiper.js";const ae={name:"SwiperItemAd",components:{SoylentLink:Z},props:["swiperItem"]},le=window.Vue.createElementVNode,de=window.Vue.resolveComponent,ue=window.Vue.withCtx,ce=window.Vue.openBlock,pe=window.Vue.createBlock,me=["src"];function we(e,i,t,a,o,s){const n=de("SoylentLink");return ce(),pe(n,{url:t.swiperItem.link,blank:!0,class:"item-link"},{default:ue(()=>[le("img",{width:"250",src:t.swiperItem.src},null,8,me)]),_:1},8,["url"])}const fe=d(ae,[["render",we]]),_e={name:"SwiperItemCard",components:{CmmsResponsiveImage:c},props:["swiperItem"]},E=window.Vue.resolveComponent,I=window.Vue.openBlock,he=window.Vue.createBlock,$=window.Vue.createCommentVNode,N=window.Vue.createElementVNode,ve=window.Vue.toDisplayString,z=window.Vue.createElementBlock,Ve=window.Vue.withCtx,Ie=window.Vue.createVNode,ge={class:"swiper-card -card"},ye={class:"thumbnail"},ke={key:0,class:"entry"},Ce={class:"title"};function Se(e,i,t,a,o,s){const n=E("CmmsResponsiveImage"),r=E("router-link");return I(),z("div",ge,[Ie(r,{href:t.swiperItem.url,to:e.$routerLink(t.swiperItem.url),target:t.swiperItem._blank?"_blank":"_self",class:"item-link"},{default:Ve(()=>[N("span",ye,[t.swiperItem.image?(I(),he(n,{key:0,fill:!0,image:t.swiperItem.image},null,8,["image"])):$("",!0)]),t.swiperItem.label?(I(),z("span",ke,[N("span",Ce,ve(t.swiperItem.label),1)])):$("",!0)]),_:1},8,["href","to","target"])])}const Be=d(_e,[["render",Se]]),be={name:"SwiperItemCard",components:{CmmsResponsiveImage:c},props:["swiperItem"]},T=window.Vue.resolveComponent,p=window.Vue.openBlock,g=window.Vue.createBlock,R=window.Vue.createCommentVNode,Ee=window.Vue.withCtx,$e=window.Vue.createElementBlock,Ne={class:"swiper-card -image"};function ze(e,i,t,a,o,s){const n=T("CmmsResponsiveImage"),r=T("router-link");return p(),$e("div",Ne,[t.swiperItem.url?(p(),g(r,{key:0,href:t.swiperItem.url,to:e.$routerLink(t.swiperItem.url),target:t.swiperItem._blank?"_blank":"_self",class:"item-link"},{default:Ee(()=>[t.swiperItem.image?(p(),g(n,{key:0,fill:!0,image:t.swiperItem.image},null,8,["image"])):R("",!0)]),_:1},8,["href","to","target"])):t.swiperItem.image?(p(),g(n,{key:1,fill:!0,image:t.swiperItem.image},null,8,["image"])):R("",!0)])}const Te=d(be,[["render",ze]]),Re={name:"SwiperItemPerson",components:{CmmsResponsiveImage:c},props:["swiperItem"]},P=window.Vue.resolveComponent,x=window.Vue.openBlock,Pe=window.Vue.createBlock,xe=window.Vue.createCommentVNode,m=window.Vue.createElementVNode,L=window.Vue.toDisplayString,Le=window.Vue.withCtx,Ae=window.Vue.createVNode,De=window.Vue.createElementBlock,Oe={class:"swiper-card -person"},Me={class:"thumb"},Ue={class:"meta"},Fe={class:"function",itemprop:"jobTitle"},qe={class:"name",itemprop:"name"};function He(e,i,t,a,o,s){const n=P("CmmsResponsiveImage"),r=P("router-link");return x(),De("div",Oe,[Ae(r,{class:"person",itemscope:"",itemtype:"http://schema.org/Person",href:t.swiperItem.url,to:e.$routerLink(t.swiperItem.url)},{default:Le(()=>[m("div",Me,[t.swiperItem.image?(x(),Pe(n,{key:0,fill:!0,image:t.swiperItem.image},null,8,["image"])):xe("",!0)]),m("div",Ue,[m("div",Fe,L(t.swiperItem.function),1),m("div",qe,L(t.swiperItem.name),1)])]),_:1},8,["href","to"])])}const We=d(Re,[["render",He]]),je={name:"SwiperItemShortcut",components:{CroppedText:ee,CmmsResponsiveImage:c},props:["swiperItem","imageSizeReference"],computed:{imageSizeReferenceSafe:function(){return typeof this.imageSizeReference>"u"?"width":this.imageSizeReference},description(){return"description"in this.swiperItem&&this.swiperItem.description!==""?this.swiperItem.description:null}}},y=window.Vue.resolveComponent,k=window.Vue.openBlock,A=window.Vue.createBlock,D=window.Vue.createCommentVNode,u=window.Vue.createElementVNode,O=window.Vue.toDisplayString,Ye=window.Vue.withCtx,Ge=window.Vue.createVNode,Je=window.Vue.createElementBlock,Ke={class:"swiper-card -shortcut"},Qe={class:"thumbnail"},Xe={class:"entry"},Ze={class:"amount"},et={class:"name"},tt=u("span",{class:"separator"},null,-1);function nt(e,i,t,a,o,s){const n=y("CmmsResponsiveImage"),r=y("CroppedText"),l=y("router-link");return k(),Je("div",Ke,[Ge(l,{href:t.swiperItem.url,to:e.$routerLink(t.swiperItem.url),target:t.swiperItem._blank?"_blank":"_self",class:"item-link"},{default:Ye(()=>[u("span",Qe,[t.swiperItem.image?(k(),A(n,{key:0,fill:!0,image:t.swiperItem.image,"image-size-reference":s.imageSizeReferenceSafe},null,8,["image","image-size-reference"])):D("",!0)]),u("span",Xe,[u("span",Ze,O("".concat(t.swiperItem.count," ").concat(t.swiperItem.content_type)),1),u("span",et,O(t.swiperItem.label),1),s.description?(k(),A(r,{key:0,class:"description",tag:"span",text:s.description,lines:2},null,8,["text"])):D("",!0),tt])]),_:1},8,["href","to","target"])])}const it=d(je,[["render",nt]]),ot={name:"SwiperItemCard",components:{CmmsResponsiveImage:c},props:["swiperItem"],data(){return{showThumb:!0}},methods:{playVideo:function(){this.$refs.preview.innerHTML='<source src="'.concat(this.$refs.preview.getAttribute("data-src"),'" type="video/mp4">'),this.$refs.preview.play()},stopVideo:function(){this.$refs.preview.pause()},hoverItem:function(){this.swiperItem.preview&&(this.showThumb=!1,this.playVideo())},blurItem:function(){this.swiperItem.preview&&(this.showThumb=!0,this.stopVideo())}}},M=window.Vue.resolveComponent,C=window.Vue.openBlock,st=window.Vue.createBlock,U=window.Vue.createCommentVNode,rt=window.Vue.normalizeClass,F=window.Vue.createElementBlock,q=window.Vue.createElementVNode,at=window.Vue.toDisplayString,lt=window.Vue.withCtx,dt=window.Vue.createVNode,ut={class:"swiper-card -card"},ct={class:"thumbnail"},pt=["data-src"],mt={class:"title"};function wt(e,i,t,a,o,s){const n=M("CmmsResponsiveImage"),r=M("router-link");return C(),F("div",ut,[dt(r,{href:t.swiperItem.url,to:e.$routerLink(t.swiperItem.url),target:t.swiperItem._blank?"_blank":"_self",class:"item-link",onMouseover:s.hoverItem,onMouseleave:s.blurItem},{default:lt(()=>[q("span",ct,[t.swiperItem.image?(C(),st(n,{key:0,fill:!0,image:t.swiperItem.image},null,8,["image"])):U("",!0),t.swiperItem.preview?(C(),F("video",{key:1,ref:"preview",class:rt(["video",o.showThumb?"":"-show"]),muted:"",playsinline:"",loop:"","data-src":t.swiperItem.preview},null,10,pt)):U("",!0)]),q("span",mt,at(t.swiperItem.label),1)]),_:1},8,["href","to","target","onMouseover","onMouseleave"])])}const ft=d(ot,[["render",wt]]),J=new te;J.set({SwiperItemAd:fe,SwiperItemCard:Be,SwiperItemImage:Te,SwiperItemPerson:We,SwiperItemShortcut:it,SwiperItemShow:ft});const _t="slider_type_tv",ht="slider_type_radio",vt={components:{},props:{breakpoints:{type:Object,default:{0:{slidesPerView:1.5},768:{slidesPerView:3.5},1024:{slidesPerView:5.5}}},free:{type:Boolean,default:null},fullsize:{type:Boolean,default:null},activeIndex:{type:Number,default:null},centeredSlides:{type:Boolean,default:!1},autoplay:{type:Boolean,default:null},autoplayinterval:{type:Number,default:null},autoplayInterval:{type:Number,default:null},spaceBetween:{type:Number,default:null},swiperInnerClassNames:{type:Array,default:[""]},defaultHeight:{type:Number,default:500},loop:{type:Boolean,default:!1},showBullets:{type:Boolean,default:!1}},data:function(){return{rendered:!1,modules:[ie,oe,se,re],swiperElement:null,nextEnabled:!1,prevEnabled:!1,hideNavigation:!1,defaultAutoplayInterval:3}},computed:{optionBreakpoints(){return this.free===!0?null:this.fullsize?!1:this.breakpoints},optionFree(){return this.free?{enabled:!0,sticky:!0}:!1},optionSlidesPerView(){return this.free===!0?"auto":1},optionHeight(){return this.defaultHeight},optionLoop(){return this.loop},optionAutoPlayInterval(){return this.autoplayInterval?this.autoplayInterval:this.autoplayinterval?this.autoplayinterval:this.defaultAutoplayInterval},optionAutoplay(){return this.autoplay?{delay:this.optionAutoPlayInterval*1e3,disableOnInteraction:!1}:!1},optionSpaceBetween(){return this.spaceBetween===null?16:this.spaceBetween},getPagination(){if(this.showBullets===!0){let e={el:this.$refs.pagination_container,clickable:!0,type:"bullets"};return this.sliderType===ht&&(e.bulletClass="swiper__controls__pagination__bullet",e.bulletActiveClass="--active"),e}else return!1}},methods:{initSwiper(e){this.swiperElement=e.detail[0].el.swiper,this.updateButtons(),this.activeIndex&&(this.loop===!0?this.swiperElement.slideToLoop(this.activeIndex,0):this.swiperElement.slideTo(this.activeIndex,0))},onDefaultEvent(){this.updateButtons()},onOberverUpdate(){this.updateButtons()},onSlideChange(e){if(!this.swiperElement)return;let i=1;this.breakpoints&&(i=this.breakpoints[this.swiperElement.currentBreakpoint]?this.breakpoints[this.swiperElement.currentBreakpoint].slidesPerView:1),this.$emit("slideChange",Math.ceil(this.swiperElement.realIndex),i),this.updateButtons()},onAutoplayTimeLeft(e,i,t){if(this.swiperElement){let a=Math.ceil((this.optionAutoPlayInterval*1e3-this.swiperElement.autoplay.timeLeft)/(this.optionAutoPlayInterval*1e3)*100);this.$emit("autoplayTimeUpdate",a)}},prev:function(){this.swiperElement!==null&&this.swiperElement.slidePrev()},next:function(){this.swiperElement!==null&&this.swiperElement.slideNext()},swipeTo(e){this.swiperElement.slideTo(e),this.loop===!0?this.swiperElement.slideToLoop(e):this.swiperElement.slideTo(e)},updateButtons(){if(this.swiperElement==null){this.prevEnabled=!1,this.nextEnabled=!1;return}this.nextEnabled=!this.swiperElement.isEnd,this.prevEnabled=!this.swiperElement.isBeginning,this.loop===!0&&(this.nextEnabled=!0,this.nextEnabled=!0),this.hideNavigation=this.swiperElement.isEnd&&this.swiperElement.isBeginning}},watch:{activeIndex:function(e){this.loop===!0?this.swiperElement.slideToLoop(this.activeIndex):this.swiperElement.slideTo(this.activeIndex)}},beforeMount(){this.updateButtons()},mounted(){this.rendered=!0}},Vt={name:"SliderWrapper",mixins:[vt],data(){return{sliderType:_t}}},It=window.Vue.renderSlot,S=window.Vue.normalizeClass,w=window.Vue.openBlock,f=window.Vue.createElementBlock,B=window.Vue.createCommentVNode,v=window.Vue.createElementVNode,gt=window.Vue.Fragment,yt=["slides-per-view","breakpoints","loop","free-mode","autoplay","height","centeredSlides","space-between","pagination","modules"],kt={class:"swiper__controls"},Ct=v("span",{class:"iconSet"},"chevron_left",-1),St=[Ct],Bt={class:"swiper__controls__pagination",ref:"pagination_container"},bt=v("span",{class:"iconSet"},"chevron_right",-1),Et=[bt];function $t(e,i,t,a,o,s){return w(),f(gt,null,[e.rendered?(w(),f("swiper-container",{key:0,ref:"swiperEl","slides-per-view":e.optionSlidesPerView,breakpoints:e.optionBreakpoints,loop:e.optionLoop,"free-mode":e.optionFree,autoplay:e.optionAutoplay,height:e.optionHeight,centeredSlides:e.centeredSlides,"space-between":e.optionSpaceBetween,"watch-overflow":!0,observer:!0,pagination:e.getPagination,observeParents:!0,class:S(e.swiperInnerClassNames),onAfterinit:i[0]||(i[0]=(...n)=>e.initSwiper&&e.initSwiper(...n)),onSlidechange:i[1]||(i[1]=(...n)=>e.onSlideChange&&e.onSlideChange(...n)),onAutoplaytimeleft:i[2]||(i[2]=(...n)=>e.onAutoplayTimeLeft&&e.onAutoplayTimeLeft(...n)),"on:reachEnd":i[3]||(i[3]=(...n)=>e.updateButtons&&e.updateButtons(...n)),onObserverupdate:i[4]||(i[4]=(...n)=>e.onOberverUpdate&&e.onOberverUpdate(...n)),onResize:i[5]||(i[5]=(...n)=>e.onDefaultEvent&&e.onDefaultEvent(...n)),"on:reachBeginning":i[6]||(i[6]=(...n)=>e.onDefaultEvent&&e.onDefaultEvent(...n)),modules:e.modules},[It(e.$slots,"default")],42,yt)):B("",!0),v("div",kt,[e.hideNavigation?B("",!0):(w(),f("div",{key:0,class:S(["--prev","swiper__controls__item",e.prevEnabled?"":"--disabled"]),tabindex:"0",role:"button","aria-label":"Previous slide",onClick:i[7]||(i[7]=(...n)=>e.prev&&e.prev(...n))},St,2)),v("div",Bt,null,512),e.hideNavigation?B("",!0):(w(),f("div",{key:1,class:S(["--next","swiper__controls__item",e.nextEnabled?"":"--disabled"]),tabindex:"0",role:"button","aria-label":"Previous slide",onClick:i[8]||(i[8]=(...n)=>e.next&&e.next(...n))},Et,2))])],64)}const Nt=d(Vt,[["render",$t]]);window.Vue.h;window.Vue.h;window.Vue.ref;window.Vue.onMounted;window.Vue.onUpdated;window.Vue.onBeforeUnmount;window.Vue.watch;window.Vue.nextTick;window.Vue.provide;const _=window.Vue.h,b=window.Vue.ref,zt=window.Vue.onMounted,Tt=window.Vue.onUpdated,Rt=window.Vue.onBeforeUpdate,Pt=window.Vue.computed,xt=window.Vue.onBeforeUnmount,Lt=window.Vue.provide,At={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,i){let{slots:t}=i,a=!1;const{swiperRef:o}=e,s=b(null),n=b("swiper-slide"),r=b(!1);function l(jt,Q,X){Q===s.value&&(n.value=X)}zt(()=>{!o||!o.value||(o.value.on("_slideClass",l),a=!0)}),Rt(()=>{a||!o||!o.value||(o.value.on("_slideClass",l),a=!0)}),Tt(()=>{!s.value||!o||!o.value||(typeof e.swiperSlideIndex<"u"&&(s.value.swiperSlideIndex=e.swiperSlideIndex),o.value.destroyed&&n.value!=="swiper-slide"&&(n.value="swiper-slide"))}),xt(()=>{!o||!o.value||o.value.off("_slideClass",l)});const V=Pt(()=>({isActive:n.value.indexOf("swiper-slide-active")>=0,isVisible:n.value.indexOf("swiper-slide-visible")>=0,isPrev:n.value.indexOf("swiper-slide-prev")>=0,isNext:n.value.indexOf("swiper-slide-next")>=0}));Lt("swiperSlide",V);const K=()=>{r.value=!0};return()=>_(e.tag,{class:ne("".concat(n.value)),ref:s,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&o&&o.value&&o.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:K},e.zoom?_("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(V.value),e.lazy&&!r.value&&_("div",{class:"swiper-lazy-preloader"})]):[t.default&&t.default(V.value),e.lazy&&!r.value&&_("div",{class:"swiper-lazy-preloader"})])}};window.Vue.inject;const Dt={name:"EditorSwiper",components:{SliderWrapper:Nt,SwiperSlide:At},props:["className","itemType","items","breakpoints","fullsize","spaceBetween","imageSizeReference","free","autoplay","autoplayinterval","swiperId"],computed:{classNameComputed:function(){return this.$props.className.slice()},swiperOuterClassNames:function(){return["swiper-wrapper-outer","swiper__container-outer",this.autoplay?"-autoplay":""]},swiperInnerClassNames:function(){return["swiper-wrapper-inner swiper__container-inner","swiper-wrapper"]},imageSizeReferenceSafe:function(){return typeof this.imageSizeReference>"u"?"width":this.imageSizeReference},itemComponent:function(){return J.getByName(this.itemType)}}},Ot=window.Vue.renderList,Mt=window.Vue.Fragment,h=window.Vue.openBlock,H=window.Vue.createElementBlock,Ut=window.Vue.resolveDynamicComponent,W=window.Vue.createBlock,j=window.Vue.resolveComponent,Y=window.Vue.withCtx,Ft=window.Vue.createVNode,G=window.Vue.normalizeClass,qt=window.Vue.createElementVNode,Ht=["id"];function Wt(e,i,t,a,o,s){const n=j("SwiperSlide"),r=j("SliderWrapper");return h(),H("div",{class:G(s.classNameComputed),id:t.swiperId},[qt("div",{class:G(s.swiperOuterClassNames)},[Ft(r,{free:t.free,loop:t.free,swiperInnerClassNames:s.swiperInnerClassNames,fullsize:t.fullsize,spaceBetween:t.spaceBetween,breakpoints:t.breakpoints,autoplay:t.autoplay,"autoplay-interval":parseInt(t.autoplayinterval)},{default:Y(()=>[(h(!0),H(Mt,null,Ot(t.items,l=>(h(),W(n,{key:l.term_id},{default:Y(()=>[(h(),W(Ut(s.itemComponent),{"swiper-item":l,"image-size-reference":s.imageSizeReferenceSafe},null,8,["swiper-item","image-size-reference"]))]),_:2},1024))),128))]),_:1},8,["free","loop","swiperInnerClassNames","fullsize","spaceBetween","breakpoints","autoplay","autoplay-interval"])],2)],10,Ht)}const Jt=d(Dt,[["render",Wt]]);export{Jt as E};