!function(i,t){"use strict";var e=i(".dnxte-nav").find(".dnxte-tabs-nav"),o=i(".dnxte-admin-tabs").find(".dnxte-admin-tabs-content"),n=(e.on("click",".dnxte-admin-nav-item-link",function(e){var t=i(e.currentTarget),n=e.currentTarget.hash,a="#tab-content-"+n.substring(1),a=o.find(a);e.preventDefault(),t.addClass("active-tab").siblings().removeClass("active-tab"),a.addClass("active-tab").siblings().removeClass("active-tab"),window.location.hash=n}),window.location.hash&&e.find('a[href="'+window.location.hash+'"]').click(),i("#dnxte-admin-modules-form")),a=n.find(".dnxte-btn-save");n.on("submit",function(e){e.preventDefault(),i.post({url:t.ajaxurl,data:{nonce:t.nonce,action:t.action,data:n.serialize()},beforeSend:function(){a.text(".....").css("animation","animateTextIndent infinite 2.5s")},success:function(e){var t;e.success&&(t=setTimeout(function(){a.attr("disabled",!0).text("Changes Saved"),clearTimeout(t)},500))}})}),n.on("change",":checkbox, :radio",function(){a.attr("disabled",!1).text("Save Changes")}),n.on("change",":text",function(){a.attr("disabled",!1).text("Save Changes")}),i(".dnxte-toggle-all").click(function(e){i(".dnxte-toggle-all-wrap input").is(":checked")?(i(".dnxte-toggle-check:visible").prop("checked",!1).change(),i(".dnxte-toggle-all").text("Disable All")):(i(".dnxte-toggle-check:visible").prop("checked",!0).change(),i(".dnxte-toggle-all").text("Enable All"))});const s=i("#dnxte-modules-filter-search-input"),c=i("#dnxte-admin-modules-form .dnxte-admin-modules-item");s.on("keyup",function(){var e=i(this).val().toLowerCase();i(c).filter(function(){i(this).toggle(-1<i(this).text().toLowerCase().indexOf(e))})})}(jQuery,window.Dnxte_Essential);