!function(e){"use strict";var i=function(i){var t=this;this.init=function(){e.each({"reycore-marquee.default":this.skin_default},(function(e,t){i.registerElement({name:e,cb:t})}))},this.skin_default=function(i){t.$scope=i,t.$marquee=e(".rey-marquee",t.$scope),t.$marqueeSlider=e(".rey-marqueeSlider",t.$scope),t.$initialContent=e(".rey-marqueeChunk",t.$marqueeSlider),t.multiplyChunks(),e(window).on("resize",rey.util.debounce((function(){t.$marqueeSlider.css("width",t.cloneTimes*t.initialContentWidth)}),500))},this.multiplyChunks=function(){t.mqWidth=t.$marquee.width(),t.initialContentWidth=t.$initialContent.outerWidth(),t.cloneTimes=2*Math.ceil(t.mqWidth/t.initialContentWidth),t.$marqueeSlider.css("width",t.cloneTimes*t.initialContentWidth);for(var e=0;e<t.cloneTimes-1;e++)t.$initialContent.clone().prependTo(t.$marqueeSlider);t.makeAnimation()},this.makeAnimation=function(){var e=t.$marquee.attr("data-duration")||20,i=t.$marquee.hasClass("--dir-left")?"-50%":"50%";anime({targets:t.$marqueeSlider[0],translateX:["0%",i],loop:!0,easing:"linear",duration:1e3*parseFloat(e)})},this.init()};rey.hooks.addAction("elementor/init",(function(e){new i(e)}))}(jQuery);