!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=e(a);if(!o.length||!e.contains(document,a)||!o.find(".swiper-slide").length)return;const n=o.data("type")||"container",i=o.data("animation")||"fade",s="fade"===i?"fade":"creative";let l="creative"===s?t[i]:"";const c="no"===o.data("loop"),r=Number(o.data("slideshow-speed"))||5e3,d=Number(o.data("animation-speed"))||800,p=o.data("direction")||"up",u=o.data("pause_on_hover")||!1;let y=".fusion-builder-flex-container";"column"===n&&(y=".fusion-layout-column");const f=e(a).closest(y);"slide"===i&&"up"!==p&&(l=t["slide_"+p]);let w={effect:s,loop:!c,speed:d,autoplay:{delay:r,stopOnLastSlide:c}};l&&(w.creativeEffect=l);const v=f.data("cid");if(v)window[`background_slider_${v}`]&&window[`background_slider_${v}`].destroy(!0,!0),window[`background_slider_${v}`]=new Swiper(a,w),u&&(f.on("mouseover",function(){window[`background_slider_${v}`].autoplay.stop()}),f.on("mouseleave",function(){window[`background_slider_${v}`].autoplay.start()}));else{const e=new Swiper(a,w);u&&(f.on("mouseover",function(){e.autoplay.stop()}),f.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){a(document.querySelector(`[data-cid="${t}"] .awb-background-slider`))})}(jQuery);