!function(t,e){"use strict";ElementsKit_Helper.registerWidget("elementskit-fancy-animated-text.default",(function(e){let i=e.find(".ekit-fancy-text").data("animation-settings");if("animated"===i.animationStyle){let s=i.animationDelay,n=i.loadingBar,a=n-3e3,l=i.lettersDelay,d=i.typeLettersDelay,o=i.duration,f=o+800,c=i.revealDuration,r=i.revealAnimationDelay;function u(){var i,l;e.find(".ekit-fancy-text.letters").find("b").each((function(){var e=t(this),i=e.text().split(""),s=e.hasClass("is-visible");for(let t in i)" "==i[t]&&(i[t]="&nbsp;"),e.parents(".rotate-2").length>0&&(i[t]="<em>"+i[t]+"</em>"),i[t]=s?'<i class="in">'+i[t]+"</i>":"<i>"+i[t]+"</i>";var n=i.join("");e.html(n)})),i=e.find(".ekit-fancy-text"),l=s,i.each((function(){var e=t(this);if(e.hasClass("bar-loading"))l=n,setTimeout((function(){e.find(".ekit-fancy-text-lists").addClass("is-loading")}),a);else if(e.hasClass("clip")){var i=e.find(".ekit-fancy-text-lists"),s=i.width()+10;i.css("width",s)}else if(e.hasClass("rotate-1")){var d=e.find(".ekit-fancy-text-lists b"),o=0,f=0;d.each((function(){(f=t(this).width())>o&&(o=f)})),e.find(".ekit-fancy-text-lists").css("min-width",o)}else if(!e.hasClass("type")){var d=e.find(".ekit-fancy-text-lists b"),o=0,f=0;d.each((function(){(f=t(this).innerWidth())>o&&(o=f)})),e.find(".ekit-fancy-text-lists").css("max-width",o)}setTimeout((function(){h(e.find(".is-visible").eq(0))}),l)}))}function h(t){var e=v(t);if(t.parents(".ekit-fancy-text").hasClass("type")){var i=t.parent(".ekit-fancy-text-lists");i.addClass("selected").removeClass("waiting"),setTimeout((function(){i.removeClass("selected"),t.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out")}),o),setTimeout((function(){m(e,d)}),f)}else if(t.parents(".ekit-fancy-text").hasClass("letters")){var r=t.children("i").length>=e.children("i").length;x(t,e),y(t.find("i").eq(0),t,r,l),C(e.find("i").eq(0),e,r,l)}else t.parents(".ekit-fancy-text").hasClass("clip")?t.parents(".ekit-fancy-text-lists").animate({width:"2px"},c,(function(){x(t,e),m(e)})):t.parents(".ekit-fancy-text").hasClass("bar-loading")?(t.parents(".ekit-fancy-text-lists").removeClass("is-loading"),x(t,e),setTimeout((function(){h(e)}),n),setTimeout((function(){t.parents(".ekit-fancy-text-lists").addClass("is-loading")}),a)):(x(t,e),setTimeout((function(){h(e)}),s))}function m(t,e){t.parents(".ekit-fancy-text").hasClass("type")?(C(t.find("i").eq(0),t,!1,e),t.addClass("is-visible").removeClass("is-hidden")):t.parents(".ekit-fancy-text").hasClass("clip")&&t.parents(".ekit-fancy-text-lists").animate({width:t.outerWidth()+0},c,(function(){setTimeout((function(){h(t)}),r)}))}function y(e,i,n,a){if(e.removeClass("in").addClass("out"),e.is(":last-child")?n&&setTimeout((function(){h(v(i))}),s):setTimeout((function(){y(e.next(),i,n,a)}),a),e.is(":last-child")&&t("html").hasClass("no-csstransitions")){var l=v(i);x(i,l)}}function C(t,e,i,n){t.addClass("in").removeClass("out"),t.is(":last-child")?(e.parents(".ekit-fancy-text").hasClass("type")&&setTimeout((function(){e.parents(".ekit-fancy-text-lists").addClass("waiting")}),200),i||setTimeout((function(){h(e)}),s)):setTimeout((function(){C(t.next(),e,i,n)}),n)}function v(t){return t.is(":last-child")?t.parent().children().eq(0):t.next()}function x(t,e){t.removeClass("is-visible").addClass("is-hidden"),e.removeClass("is-hidden").addClass("is-visible")}u()}}))}(jQuery,window.elementorFrontend);