(()=>{"use strict";var o={d:(t,s)=>{for(var n in s)o.o(s,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(o,t)=>Object.prototype.hasOwnProperty.call(o,t),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},t={};o.r(t),o.d(t,{default:()=>e});const s=window.wp.hooks;class n{constructor(){if(n.instance)return n.instance;this.hooks=(0,s.createHooks)(),n.instance=this}addAction(o,t,s=10){this.hooks.addAction(o,"wcPPCP",t,s)}doAction(o,...t){this.hooks.doAction(o,...t)}addFilter(o,t,s=10){this.hooks.addFilter(o,"wcPPCP",t,s)}applyFilters(o,...t){return this.hooks.applyFilters(o,...t)}async applyFiltersAsync(o,...t){if("function"==typeof this.hooks.applyFiltersAsync)return this.hooks.applyFiltersAsync(o,...t);const s=this.hooks.filters[o]?.handlers||[];let n=t[0];for(const{callback:o}of s)n=await o.apply(null,[n,...t.slice(1)]);return n}async doActionAsync(o,...t){if("function"==typeof this.hooks.doActionAsync)return this.hooks.doActionAsync(o,...t);const s=this.hooks.actions[o]?.handlers||[];for(const{callback:o}of s)await o.apply(null,t)}}const e=n;(this.wcPPCP=this.wcPPCP||{}).actions=t})();
//# sourceMappingURL=actions.js.map