!function(){"use strict";jQuery(document).ready((function(t){let e=t(".notice");if(e.length){let i=0,o=t("#wpmastertoolkit-notices-modal .wpmastertoolkit-modal-body");e.each((function(){if(""===t(this).text().trim())return;i++;let e="wpmastertoolkit-notice-"+t(this).index(),n=t(this).clone();n.attr("id","clone-"+e),o.append(n),t(this).attr("id",e),t(this).hide(),t("#clone-"+e).click((function(i){i.preventDefault(),document.getElementById("wpmastertoolkit-notices-modal").classList.remove("is-active"),t("#"+e).show()}))})),t("#wpmastertoolkit-notices-modal .notice .notice-dismiss").click((function(){t(this).parent().remove(),e=t(".notice"),e.length||t("#wpmastertoolkit-notices-modal").modal("hide")})),t(".wpmastertoolkit-admin-bar-notice-count").text(i),i>0&&t("#wp-admin-bar-wpmastertoolkit-hide-admin-notices-admin-bar").addClass("notices-active")}}))}();