(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var o in s)e.o(s,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:s[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var s=e.n(t);const o=window.wp.i18n;s()((()=>{(()=>{const e=document.querySelector(".tickets_page_tec-tickets-plus-admin-purchase-rules .wp-list-table");if(!e)return;e.querySelectorAll(".row-actions .delete a.submitdelete").forEach((e=>{e.addEventListener("click",(e=>{const t=(0,o.__)("Are you sure you want to delete this Purchase Rule?","event-tickets-plus");window.confirm(t)||e.preventDefault()}))}));const t=e.closest("form#posts-filter");t&&t.addEventListener("submit",(s=>{const u=t.querySelector('select[name="action"]'),c=t.querySelector('select[name="action2"]');if("delete"===(u&&u.value||c&&c.value)){const t=e.querySelectorAll('tbody tr input[type="checkbox"]:checked').length;if(t>0){const e=(0,o._n)("Are you sure you want to delete this Purchase Rule?","Are you sure you want to delete these Purchase Rules?",t,"event-tickets-plus");window.confirm(e)||s.preventDefault()}}}))})()})),window.ticketsPlus=window.ticketsPlus||{},window.ticketsPlus.purchaseRules=window.ticketsPlus.purchaseRules||{},window.ticketsPlus.purchaseRules.admin=window.ticketsPlus.purchaseRules.admin||{},window.ticketsPlus.purchaseRules.admin.listTable={}})();