(()=>{"use strict";var e={1287:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(5133);const o=window.wc.wcSettings,i=(0,o.getSetting)("isBlockTheme"),a=(0,o.getSetting)("isProductArchive"),l=(0,o.getSetting)("needsRefreshForInteractivityAPI",!1);function u(e,t={}){return l||!i&&a?window.location.href=e:(0,n.navigate)(e,t)}},5133:e=>{e.exports=window.wc.__experimentalInteractivity}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=r(5133),t=r(1287);function n(e){return null!=e}function o(e,t,r){const n=new URL(window.location.href),{searchParams:o}=n;return e.length>0?(o.set(`filter_${t}`,e.join(",")),o.set(`query_type_${t}`,r)):(o.delete(`filter_${t}`),o.delete(`query_type_${t}`)),n.href}function i(e){return(new URL(window.location.href).searchParams.get(`filter_${e}`)||"").split(",").filter(Boolean)}(0,e.store)("woocommerce/product-filter-attribute",{actions:{navigate:()=>{const r=(0,e.getContext)("woocommerce/interactivity-dropdown"),i=(0,e.getContext)(),a=r.selectedItems.map((e=>e.value)).filter(n);(0,t.c)(o(a,i.attributeSlug,i.queryType))},updateProducts:r=>{if(!r.target.value)return;const n=(0,e.getContext)();let a=i(n.attributeSlug);r.target.checked&&!a.includes(r.target.value)?("multiple"===n.selectType&&a.push(r.target.value),"single"===n.selectType&&(a=[r.target.value])):a=a.filter((e=>e!==r.target.value)),(0,t.c)(o(a,n.attributeSlug,n.queryType))},removeFilter:()=>{const{attributeSlug:r,queryType:n,value:a}=(0,e.getContext)();let l=i(r);l=l.filter((e=>e!==a)),(0,t.c)(o(l,r,n))}}})})()})();