!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=8)}({8:function(t,e,n){t.exports=n(9)},9:function(t,e){!function(t){"use strict";function e(){t(".ux-menu-item-options").each((function(e,n){var r=jQuery(n);r.hasClass("js-attached")||(!function(e){e.find("select").bind("change",(function(){var n=t(this).attr("id"),r=t(this).val(),a=e.parents("li.menu-item"),c=a.find(".ux-menu-item-options__width"),d=a.find(".ux-menu-item-options__height"),l=a.find(".ux-menu-item-options__media"),f=a.find(".ux-menu-item-options__icon-html"),s=0===i(a);"default"===r&&u([c,d]),"container-width"===r&&u([c,d]),"full-width"===r&&u([c,d]),"custom-size"===r&&o([c,d]),"media"===r&&(o([l]),u([f])),"html"===r&&(o([f]),u([l])),n.startsWith("edit-menu-item-block-")&&(s&&r?a.find(".menu-item-ux-block-indicator").length||a.find(".menu-item-title").before('<span class="menu-item-ux-block-indicator"><svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7.73009 2.41274L8.95709 3.63719L3.40181 9.18095L2.17482 7.95652L7.73009 2.41274ZM7.73009 0.242432L0 7.95652L3.40181 11.3513L11.1319 3.63719L7.73009 0.242432Z" fill="#007CBA"/> <path d="M7.8196 11.3114L8.95987 12.4493L7.8196 13.5873L6.67928 12.4493L7.8196 11.3114ZM7.8196 9.14111L4.50439 12.4492L7.8196 15.7575L11.1348 12.4492L7.8196 9.14087V9.14111Z" fill="#007CBA"/> <path d="M12.2322 6.90786L13.3725 8.0458L12.2322 9.18369L11.0921 8.04584L12.2323 6.90795L12.2322 6.90786ZM12.2323 4.73763L8.91699 8.04584L12.2322 11.3542L15.5474 8.04584L12.2322 4.73755L12.2323 4.73763Z" fill="#007CBA" fill-opacity="0.6"/> </svg></span>'):t(".menu-item-ux-block-indicator",a).remove())})),t(".ux-menu-item-options__media-control",e).on("click",".upload-button",(function(e){e.preventDefault();var n=t(this),i=n.data("item-id"),o=wp.media({multiple:!1}).on("select",(function(){var e=o.state().get("selection").first().toJSON();t(".placeholder","#menu-item-"+i).attr("src",e.url).css("display","block"),n.parent().find("input:hidden:first").val(e.id),n.parent().find(".remove-button").show()})).open()})).on("click",".remove-button",(function(e){e.preventDefault();var n=t(this),i=n.data("item-id");t(".placeholder","#menu-item-"+i).attr("src","").hide(),n.parent().find("input:hidden:first").val(""),n.hide()}))}(r),r.addClass("js-attached"))}))}function n(e){t(".ux-menu-item-options",e||document).each((function(t,e){var n=jQuery(e),r=n.parents("li.menu-item"),a=r.find(".ux-menu-item-options__section-dropdown");0===i(r)?o([a]):u([a]),n.find("select").change()}))}function i(t){var e=t.attr("class").match(/menu-item-depth-(\d+)/);return e&&e[1]?parseInt(e[1]):0}function o(t){t.forEach((function(t){t.slideDown()}))}function u(t){t.forEach((function(t){t.slideUp()}))}t(document).ready((function(){e(),n(),t("#menu-to-edit").on("sortstop",(function(t,e){setTimeout((function(){n(e.item)}),1e3)}))})),t(document).on("menu-item-added",(function(){e(),n()}))}(jQuery)}});