!function(){var t={3907:function(){document.addEventListener("DOMContentLoaded",(()=>(()=>{const t=document.querySelector(".wrap.wp-mastertoolkit form"),e=document.querySelector(".wp-mastertoolkit__save-button");t&&e&&t.addEventListener("change",(t=>{e.classList.add("show")}))})()))}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,o),a.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";o(3907);const t=()=>{const t=jQuery,e=document.querySelector(".wrap.wp-mastertoolkit form"),o=document.querySelector("#JS-wp-mastertoolkit-sortable");t("#JS-wp-mastertoolkit-sortable").nestedSortable({protectRoot:!0,listType:"ul",handle:".wp-mastertoolkit__sortable__item__handle",opacity:.6,update:()=>{Array.from(o.children).forEach(((t,e)=>{t.querySelector("input.wp-mastertoolkit__sortable__item__order").value=e})),e.dispatchEvent(new Event("change"))}})};document.addEventListener("DOMContentLoaded",(()=>t()))}()}();