var wc;(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);const t=window.wc.__experimentalInteractivity;(0,t.store)("woocommerce/product-filter-active",{state:{get items(){const e=(0,t.getContext)();return(0,t.store)("woocommerce/product-filters").state.activeFilters.map((t=>({...t,removeLabel:e.removeLabelTemplate.replace("{{label}}",t.label)})))},get hasSelectedFilters(){return(0,t.store)("woocommerce/product-filters").state.activeFilters.length>0}},actions:{removeFilter:()=>{const{props:e}=(0,t.getElement)();let o=e["data-filter-item"];"string"==typeof o&&(o=JSON.parse(o));const{type:r,value:c}=o;if(!r||!c)return;const i=(0,t.store)("woocommerce/product-filters");i.actions.removeActiveFilter(r,c),i.actions.navigate()},clearFilters:()=>{(0,t.getContext)("woocommerce/product-filters").activeFilters=[],(0,t.store)("woocommerce/product-filters").actions.navigate()}}}),(wc=void 0===wc?{}:wc)["product-filter-active"]=e})();