import*as t from"@wordpress/interactivity";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const r=(o={getContext:()=>t.getContext,store:()=>t.store},n={},e.d(n,o),n);var o,n;function c(t,e){if(!t)return null;const r=window.getComputedStyle(t)[e];if("rgba(0, 0, 0, 0)"!==r&&"transparent"!==r){const t=r.match(/\d+/g);if(!t||t.length<3)return null;const[e,o,n]=t.slice(0,3);return`rgb(${e}, ${o}, ${n})`}return c(t.parentElement,e)}(function(){const t=document.querySelector(".wc-block-product-filter-chips__items");if(!t)return;const e=document.createElement("style"),r=c(t,"backgroundColor")||"#fff",o=c(t,"color")||"#000";e.appendChild(document.createTextNode(`:where(.wc-block-product-filter-chips__item)[aria-checked="true"] {\n\t\t\t\tbackground-color: ${o};\n\t\t\t\tcolor: ${r};\n\t\t\t\tborder-color: ${o};\n\t\t\t}\n\n\t\t\t:where(.wc-block-product-filter-chips__item)[aria-checked="true"]:hover {\n\t\t\t\tbackground-color: color-mix(in srgb,${o} 85%,transparent)\n\t\t\t}`)),document.head.appendChild(e)})(),(0,r.store)("woocommerce/product-filters",{actions:{showAllChips:()=>{(0,r.getContext)().showAll=!0}}});