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-chips",{actions:{showAllItems:()=>{(0,t.getContext)().showAll=!0},selectItem:()=>{const{ref:e}=(0,t.getElement)(),o=e.getAttribute("value");if(!o)return;const c=(0,t.getContext)();c.items=c.items.map((e=>e.value.toString()===o?{...e,checked:!e.checked}:e))}}}),(wc=void 0===wc?{}:wc)["product-filter-chips"]=e})();