(()=>{var o;o=jQuery,window.isModalBlocked=function(){let n=o(".wc-backbone-modal-content");return n.is(".processing")||n.parents(".processing").length},window.blockModal=function(){if(!isModalBlocked())return o(".wc-backbone-modal-content").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},window.unBlockModal=function(){o(".wc-backbone-modal-content").removeClass("processing").unblock()},window.closeExistingModal=function(){o("#wc-backbone-modal-dialog .modal-close").trigger("click")}})();