!function(t,e){"use strict";ElementsKit_Helper.registerWidget("elementskit-advanced-toggle.default",(function(e){var i=e.find('[data-ekit-toggle="tab"]'),n=e.find(".ekit-custom-control-input");if(i.on("click",(function(e){e.preventDefault(),t(this).tab("show")})),e.find(".elemenetskit-toggle-indicator").length>0){let l=e.find(".elemenetskit-toggle-indicator"),o=e.find(".elementskit-toggle-nav-link.active");function c(t,e){let i="click"===t?e.outerWidth():o.outerWidth(),n="click"===t?e.outerHeight():o.outerHeight(),c="click"===t?e.position().left:o.position().left,a="click"===t?e.position().top:o.position().top;l.attr("class","elemenetskit-toggle-indicator "+e.parents("li").data("elementor_current_item")),l.css({width:i,height:n,left:c,top:a})}c(null,o),e.find(".elementkit-tab-nav > li > a").on("click",(function(e){c(e.type,t(this))}))}n.on("click",(function(){var e=this.checked?".elementskit-switch-nav-link-2":".elementskit-switch-nav-link-1";t(this).siblings(e).tab("show")})),i.on("shown.bs.tab",(function(){var i=e.find(t(this).attr("href"));n.length&&(n[0].checked=this.getAttribute("data-toggled")),ElementsKit_Pro.WidgetAreaJSUpdate.call(i),ElementsKit_Helper.ajaxLoading(e,i)})).filter(".active").trigger("shown.bs.tab")}))}(jQuery,window.elementorFrontend);