!function(e,n){"use strict";!function(){e(document).ready(function(){e(".wpmudev-select").wpmuiSelect({allowClear:!1,minimumResultsForSearch:1/0,containerCssClass:"wpmudev-select2",dropdownCssClass:"wpmudev-select-dropdown"}),e(".wpmudev-option--select").wpmuiSelect({allowClear:!1,minimumResultsForSearch:1/0,containerCssClass:"wpmudev-option--select2",dropdownCssClass:"wpmudev-option--select2-dropdown"}),e("#wpf-cform-check_all").on("click",function(n){var t=this.checked;if(e(".wpmudev-checkbox input").each(function(){this.checked=t}),e('form[name="bulk-action-form"] input[name="ids"]').length){var c=e(".wpmudev-checkbox input:checked").map(function(){if(parseFloat(this.value))return this.value}).get().join(",");e('form[name="bulk-action-form"] input[name="ids"]').val(c)}}),e(".wpmudev-checkbox input").on("click",function(){if(e('form[name="bulk-action-form"] input[name="ids"]').length){var n=e(".wpmudev-checkbox input:checked").map(function(){if(parseFloat(this.value))return this.value}).get().join(",");e('form[name="bulk-action-form"] input[name="ids"]').val(n)}}),e(".wpmudev-checkbox input#forminator-entries-all").on("click",function(){var n=this.checked;e(".wpmudev-entries--result .wpmudev-checkbox input").each(function(){this.checked=n})}),e(".wpmudev-check-all").on("click",function(n){n.preventDefault(),e(".wpmudev-multicheck .wpmudev-checkbox input").each(function(){this.checked=!0})}),e(".wpmudev-uncheck-all").on("click",function(n){n.preventDefault(),e(".wpmudev-multicheck .wpmudev-checkbox input").each(function(){this.checked=!1})}),e(".wpmudev-can--hide").ready(function(){e(this).find(".wpmudev-box-header").on("click",function(){e(this).closest(".wpmudev-can--hide").toggleClass("wpmudev-is--hidden")})}),e(document).on("click",".wpmudev-open-entry",function(n){if("checkbox"!==e(n.target).attr("type")&&!e(n.target).hasClass("wpdui-icon-check")){n.preventDefault(),n.stopPropagation();var t=e(this),c=t.data("entry"),i=e("#forminator-"+c),u=!0;i.hasClass("wpmudev-is_open")&&(u=!1),e(".wpmudev-entries--result").removeClass("wpmudev-is_open"),u&&i.toggleClass("wpmudev-is_open")}}),e(".wpmudev-result--menu").ready(function(){e(this).find(".wpmudev-button-action").on("click",function(){var n=e(this).next(".wpmudev-menu");e(".wpmudev-result--menu.wpmudev-active").removeClass("wpmudev-active"),e(".wpmudev-button-action.wpmudev-active").not(e(this)).removeClass("wpmudev-active"),e(".wpmudev-menu").not(n).addClass("wpmudev-hidden"),e(this).toggleClass("wpmudev-active"),n.toggleClass("wpmudev-hidden")})}),e(document).ready(function(){var n=e(".wpmudev-list"),t=n.find(".wpmudev-list-table"),c=t.find(".wpmudev-table-body tr"),i=c.length,u=i;c.each(function(){e(this).find(".wpmudev-body-menu").css("z-index",u),u--})})})}()}(jQuery,document);