class VamtamButton extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{btnText:".elementor-button-text"}}}getDefaultElements(){const selectors=this.getSettings("selectors");return{$btnText:this.$element.find(selectors.btnText)}}onInit(...args){super.onInit(...args),this.handleBtnUnderlineAnimation()}handleBtnUnderlineAnimation(){if(!this.$element.hasClass("vamtam-has-underline-anim"))return;const btnText=this.elements.$btnText.text();this.elements.$btnText.text(""),this.elements.$btnText.append('<span class="vamtam-btn-text">'+btnText+"</span>"),jQuery(this.$element).on("mouseenter",".elementor-button",e=>{const $el=jQuery(e.target);$el.hasClass("hovered")||($el.addClass("hovered"),setTimeout(()=>{$el.removeClass("hovered")},600))})}}jQuery(window).on("elementor/frontend/init",()=>{if(elementorFrontend.elementsHandler&&elementorFrontend.elementsHandler.attachHandler)elementorFrontend.elementsHandler.attachHandler("button",VamtamButton);else{const addHandler=$element=>{elementorFrontend.elementsHandler.addHandler(VamtamButton,{$element:$element})};elementorFrontend.hooks.addAction("frontend/element_ready/button.default",addHandler,100)}});