!function(e){const t={slide:{prev:{translate:[0,"-100%",0],opacity:0},next:{translate:[0,"100%",0],opacity:0}},slide_down:{prev:{translate:[0,"100%",0],opacity:0},next:{translate:[0,"-100%",0],opacity:0}},slide_left:{prev:{translate:["-100%",0,0],opacity:0},next:{translate:["100%",0,0],opacity:0}},slide_right:{prev:{translate:["100%",0,0],opacity:0},next:{translate:["-100%",0,0],opacity:0}},stack:{prev:{translate:[0,"60px","-30px"],scale:.7,opacity:0},next:{translate:[0,"100%",0]}},zoom:{prev:{scale:1.3,opacity:0},next:{scale:.7,opacity:0}},"slide-zoom-out":{prev:{translate:[0,"-100%",0],scale:1.5,opacity:0},next:{translate:[0,"100%",0],scale:1.5,opacity:0}},"slide-zoom-in":{prev:{translate:[0,"-100%",0],scale:.8,opacity:0},next:{translate:[0,"100%",0],scale:.8,opacity:0}}};function a(a){const o=a.dataset.type||"container",n=a.dataset.animation||"fade",s="fade"===n?"fade":"creative";let i="creative"===s?t[n]:"";const l="no"===a.dataset.loop,c=Number(a.dataset.slideshowSpeed)||5e3,r=Number(a.dataset.animationSpeed)||800,d=a.dataset.direction||"up",p=a.dataset.pause_on_hover||!1;let u=".fusion-flex-container";"column"===o&&(u=".fusion-layout-column");const y=e(a).closest(u);"slide"===n&&"up"!==d&&(i=t["slide_"+d]);let f={effect:s,loop:!l,speed:r,autoplay:{delay:c,stopOnLastSlide:l}};""!==i&&(f.creativeEffect=i);const w=y.data("cid");if(w)window[`background_slider_${w}`]&&window[`background_slider_${w}`].destroy(!0,!0),window[`background_slider_${w}`]=new Swiper(a,f),p&&(y.on("mouseover",function(){window[`background_slider_${w}`].autoplay.stop()}),y.on("mouseleave",function(){window[`background_slider_${w}`].autoplay.start()}));else{const e=new Swiper(a,f);p&&(y.on("mouseover",function(){e.autoplay.stop()}),y.on("mouseleave",function(){e.autoplay.start()}))}}e("body").hasClass("fusion-builder-live")||e(".awb-background-slider").each(function(e,t){a(t)}),e(window).on("load fusion-reinit-background-slider",function(e,t){const o=document.querySelector(`[data-cid="${t}"] .awb-background-slider`);o&&a(o)})}(jQuery);