1import{b5 as s,h as n}from"./vendor-77a14847.js";import{s as l}from"./slickSliderMix-31642e78.js";import{cQ as o,n as a}from"./app-3eadc2dd.js";var c=function(){var t=this,i=t._self._c;return i("slick",{ref:"slick",staticClass:"verticalPromotion",class:{"no-slider":t.noSlides},attrs:{options:t.slickOptions},on:{afterChange:t.handleAfterChange,beforeChange:t.handleBeforeChange,init:t.handleInit,breakpoint:t.handleBreakpoint},nativeOn:{mousedown:function(r){return t.mouseDown.apply(null,arguments)},mouseup:function(r){return t.mouseUp.apply(null,arguments)},"!click":function(r){return t.onClick.apply(null,arguments)}}},[t._t("default")],2)},u=[];const d={components:{Slick:s},mixins:[l],props:{slidesToShow:{type:Object,default:()=>o},slidesToScroll:{type:Number,default:0},loaded:{type:Boolean,default:!1},infinite:{type:Boolean,default:!1},elements:{type:Number,default:0},moduleId:{type:Number,default:0},module:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})},showArrows:{type:Boolean,default:null}},data(){return{currentBreakpoint:window.innerWidth,growFactor:1.05,isSliding:!1}},computed:{...n({baseConfig:"baseConfig"}),slickOptions(){var e;return{infinite:!0,speed:300,slidesToShow:((e=this.slidesToShow)==null?void 0:e.desktop)??4,slidesToScroll:this.slidesToScroll||1,dots:!1,arrows:this.getShowArrows(),prevArrow:this.formatPrevArrow(),nextArrow:this.formatBackArrow(),responsive:this.getResponsiveSettings(this.slidesToShow)}},noSlides(){return this.currentBreakpoint>=1365?this.elements<=5:this.currentBreakpoint<=1365&&this.currentBreakpoint>1024?this.elements<=4:this.currentBreakpoint<=1024&&this.currentBreakpoint>900?this.elements<=3:this.currentBreakpoint<=900&&this.currentBreakpoint>640?this.elements<=2:this.elements<=this.slidesToShow}},watch:{loaded(){this.reInit()}},methods:{getShowArrows(){var e;return this.showArrows!==null?this.showArrows:!!this.getOptionValues((e=this.module)==null?void 0:e.optionvalues,"Show Arrows")},formatPrevArrow(){return'<div class="slick-prev"><i class="icon-arrow-left"></i></div>'},formatBackArrow(){return'<div class="slick-next"><i class="icon-arrow-right"></i></div>'},mouseDown(e){e.target.getAttribute("class")!=="icon-arrow-left"&&e.target.getAttribute("class")!=="icon-arrow-right"&&(this.$el.querySelector(".slick-prev")&&(this.$el.querySelector(".slick-prev").style.display="none"),this.$el.querySelector(".slick-next")&&(this.$el.querySelector(".slick-next").style.display="none"))},mouseUp(e){this.$el.querySelector(".slick-prev")&&(this.$el.querySelector(".slick-prev").style.display="block"),this.$el.querySelector(".slick-next")&&(this.$el.querySelector(".slick-next").style.display="block")},onClick(e){this.isSliding&&e.preventDefault()},handleInit(e){typeof this.$adition<"u"&&this.$adition.srq.push(t=>{t.renderSlot("placement_id_contentad_"+this.moduleId)})},next(){this.$refs.slick.next()},prev(){this.$refs.slick.prev()},reInit(){this.$refs.slick.destroy(),this.$nextTick(()=>{this.$refs.slick.create()})},handleBeforeChange(){this.isSliding=!0},handleAfterChange(){this.isSliding=!1},handleBreakpoint(e,t,i){this.currentBreakpoint=i}}};var h=a(d,c,u,!1,null,null,null,null);const k=h.exports;export{k 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.