!function (e) { "use strict"; let t = { MOBILE_BREAKPOINT: 768, SPEED_MULTIPLIER_MOBILE: .7, init: function (e) { let t = e.find(".marquee"); !(!t.length || t.data("initialized")) && (this.setupMarquee(t), t.data("initialized", !0)) }, setupMarquee: function (t) { t.data("direction"); let i = parseInt(t.data("loop-count")) || 0; this.updateSpeed(t); let n = t.find(".sifency-addons-marquee-content-wrapper"); if (1 === n.children().length) { let a = t.find(".sifency-addons-marquee-content"); a.clone().appendTo(n) } if (i > 0) { let d = i; t.data("iterations", 0), t.on("animationiteration.sifencyMarquee", function () { let m = e(this), c = parseInt(m.data("iterations")) + 1; m.data("iterations", c), c >= d && (n.css("animation-play-state", "paused"), m.off("animationiteration.sifencyMarquee")) }) } }, updateSpeed: function (t) { let i = parseInt(t.data("speed")) || 20; e(window).width() < this.MOBILE_BREAKPOINT && (i *= this.SPEED_MULTIPLIER_MOBILE), t.css("--marquee-speed", i + "s") }, debounce: function (e, t) { let i; return function () { let n = this, a = arguments; clearTimeout(i), i = setTimeout(function () { e.apply(n, a) }, t) } } }; e(window).on("elementor/frontend/init", function () { elementorFrontend.hooks.addAction("frontend/element_ready/sifency-widget-text-slider.default", t.init.bind(t)); let i = t.debounce(function () { e('.marquee[data-initialized="true"]').each(function () { t.updateSpeed(e(this)) }) }, 250); e(window).on("resize", i) }) }(jQuery);