import*as e from"@wordpress/interactivity";var t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const r=(i={getConfig:()=>e.getConfig,getContext:()=>e.getContext,store:()=>e.store},n={},t.d(n,i),n),o={state:{get removableItems(){return a.activeFilters.map(e=>({id:e.type+"_"+e.value,type:e.type,value:e.value,label:e.activeLabel}))},get removeItemLabel(){const{item:e}=(0,r.getContext)(),{removeLabelTemplate:t}=(0,r.getConfig)(),o="string"==typeof t?t:"{{label}}",a="string"==typeof e?.label?e.label:"";return o.replace("{{label}}",a)},get hasActiveFilters(){return a.activeFilters.length>0}},actions:{removeAll:()=>{(0,r.getContext)().activeFilters=[],l.navigate()},remove:()=>{const{item:e}=(0,r.getContext)();l.removeActiveFiltersBy(t=>t.value===e.value&&t.type===e.type),l.navigate()}}},{state:a,actions:l}=(0,r.store)("woocommerce/product-filters",o);var i,n;