(()=>{function t(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}wp.customize.bind("ready",(function(){var n=wp.customize("mod_data_homepage_section_sortable"),r=wp.customize.panel("homepage");r.contentContainer.sortable({item:".control-section",cursor:"move",placeholder:"sortable-placeholder",opacity:.7,axis:"y",stop:function(){var e,o=(e=r.sections(),function(n){if(Array.isArray(n))return t(n)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(n,r){if(n){if("string"==typeof n)return t(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?t(n,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort((function(t,n){return t.container.index()-n.container.index()}));n.set(o.map((function(t){return t.id})).join(","))}}),n.bind((function(t){t.split(/,/).map((function(t){return wp.customize.section(t)})).forEach((function(t,n){t.priority(n)}))}))}))})();