(l=>{function m(n,o){var i=n;i.addClass("mh_popup_closing"),setTimeout(function(){"no_remove"!==o&&i.remove()},200)}l(document).ready(function(){l("#menu-to-edit li").each(function(n){l(this).hasClass("pending")||(l(".field-menu-icon").show(),l(".field-menu-icon-pending").hide())}),l(".mh-menu-icon-button-show-field").each(function(n){var o=l(this),i=o.closest("label").find(".mh-menu-icon-field"),e=o.closest("label").find(".mh-menu-icon-field-desc");o.on("click",function(){i.toggle(),e.toggle()})}),l(".mh-menu-icon-show").each(function(n){var i=l(this),e=i.closest("label").find(".mh-menu-icon-field"),c=i.closest("label").find(".mh-menu-icon-show"),o=i.closest("label").find(".mh-menu-icon-button-reset"),t=l(".mh_menu_icons_list").html(),s=l(this).parent("label");i.on("click",function(){var n,o;l("body").append("<div id='mh_menu_icons_box'><div class='mh_menu_icons_box_inner'><div class='mh_menu_icons_box_content'>"+t+"<div class='mh_menu_icons_box_close'></div></div></div></div>"),o=0-(n=l(".mh_menu_icons_box_inner")).outerHeight()/2,n.css({top:"50%",bottom:"auto",marginTop:o}),l(".mh_menu_icons_box_close").click(function(){m(l("#mh_menu_icons_box"))}),l(".glyph").on("click",function(){var n=l(this).find("input.unit");e.val(n.val()),c.html("<em>&#x"+n.val()+";</em>"),m(l("#mh_menu_icons_box")),i.removeClass("mh-menu-icon-button")})}),o.on("click",function(){e.val(""),c.html(""),e.change(),i.addClass("mh-menu-icon-button")}),s.click(function(n){n.preventDefault(),n.stopPropagation()})})})})(jQuery);