"use strict";(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["942"],{5789(e,r,i){i.r(r),i.d(r,{default:()=>o});var t=i(1669),l=i.n(t),s=i(2540),n=i(1378);function o(e){let r=e.get(0),i=e.closest("[dir='rtl']").length>0,t=e=>{let{innerWidth:r,innerHeight:i}=window;if(r<768){let r=e.find(".slick-slide");i!==r.height()&&r.css("height",i)}},o=e=>{e.preventDefault()};e.find(".brz-slick-slider__story").each(function(){let e=l()(this),{centerMode:c,centerPadding:a,variableWidth:d,focusOnSelect:u,touchThreshold:k,slidesToShow:f,slidesToScroll:_,sliderLoop:v,lazyLoad:b,dots:p,dotsClass:w,arrows:h,fade:g,vertical:z,autoPlay:y,autoPlaySpeed:m,swipe:N,speed:L,responsive:C}=e.data(),T=JSON.parse(decodeURIComponent(C)),$=(e=>{let r=l()(e).children(".brz-icon-svg");if(!r.length)return()=>"";let i=r.clone().removeClass("brz-hidden");return r.remove(),e=>"brz-slick-slider__arrow-next"===e&&i.length>1?`<div class="brz-slick-slider__arrow ${e}">${i[0].outerHTML}</div>
           <div class="brz-slick-slider__arrow brz-slick-slider__arrow-replay">${i[1].outerHTML}</div>`:`<div class="brz-slick-slider__arrow ${e}">${i[0].outerHTML}</div>`})(this);e.on("init",function(){t(e),window.Brz.emit("elements.story.init",e.get(0))}),e.on("breakpoint",function(){t(e)});let x=e.slick({centerMode:c,centerPadding:a,variableWidth:d,focusOnSelect:u,touchThreshold:k,slidesToShow:f,infinite:v,slidesToScroll:_,lazyLoad:b,swipe:N,speed:L,dots:p,dotsClass:w,arrows:h,fade:g,vertical:z,responsive:T,useTransform:!1,draggable:N,nextArrow:h&&$("brz-slick-slider__arrow-next"),prevArrow:h&&$("brz-slick-slider__arrow-prev"),autoplay:y,autoplaySpeed:m,rtl:i,rows:0});r.querySelectorAll((0,s.pk)({name:"link-story"})).forEach(e=>{var r;let i=null!=(r=n.L(e.getAttribute((0,s.uo)("link-story"))))?r:1;e.addEventListener("click",e=>{e.preventDefault(),x.slick("slickGoTo",i-1)})}),l()(".brz-slick-slider__arrow-replay").on("click",function(){x.slick("slickGoTo",0)}),l()(".brz-slick-slider__inner-arrow-next").on("click",function(e){e.stopPropagation(),e.preventDefault(),x.slick("slickNext")}),l()(".brz-slick-slider__inner-arrow-prev").on("click",function(e){e.stopPropagation(),e.preventDefault(),x.slick("slickPrev")}),x.on("beforeChange",(e,r,i,t)=>{if(i!==t){let e=r.$slides[i];e&&window.Brz.emit("elements.story.slide.changed",e)}}),v||e.on("afterChange",function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];r[2]===l()(".brz-slick-slider__dots > li").length-1&&x.slick("slickPause")}),window.addEventListener("touchmove",o,{passive:!1})})}},1378(e,r,i){i.d(r,{L:()=>t});let t=e=>{switch(typeof e){case"string":{let r=""!==e?Number(e):NaN;return isNaN(r)?void 0:r}case"number":return isNaN(e)?void 0:e;default:return}}}}]);