!function(e){var t=e(".wc-shipping-zone-method-rows");t.length>0&&t.sortable({items:"tr",cursor:"move",axis:"y",handle:"td.wc-shipping-zone-method-sort",scrollSensitivity:40}),e(document.body).on("click",".js--shipping-notice-change-status",(function(){var t=e(this).closest("td"),o=t.find(".woocommerce-input-toggle");o.toggleClass("woocommerce-input-toggle--disabled");var n="no";return o.hasClass("woocommerce-input-toggle--disabled")||(n="yes"),t.find(":hidden").val(n),!1}));var o=new URLSearchParams(document.location.href).get("notice_id");if(o){var n=function(e){i.querySelector(".notice-title").textContent=e},i=document.querySelector("#mainform h2"),r=document.querySelector('[name="woocommerce_shipping_notices_'+o+'[title]"');i.innerHTML='<a href="'+document.querySelector(".subsubsub .current").getAttribute("href")+'">'+i.textContent+'</a> &gt; <span class="notice-title"></span>',n(r.value),r.addEventListener("keyup",(function(e){n(e.target.value)}))}}(jQuery);