(()=>{"use strict";var e={1287:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(5133);const i=window.wc.wcSettings,a=(0,i.getSetting)("isBlockTheme"),c=(0,i.getSetting)("isProductArchive");function o(e,t={}){return!a&&c?window.location.href=e:(0,n.navigate)(e,t)}},5133:e=>{e.exports=window.wc.__experimentalInteractivity}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}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);const t=window.wc.priceFormat;var n=r(1287);const i=e=>{const{minPrice:t,maxPrice:r,minRange:n,maxRange:i}=e,a=new URL(window.location.href),{searchParams:c}=a;return t>n?c.set("min_price",t.toString()):c.delete("min_price"),r<i&&r>n?c.set("max_price",r.toString()):c.delete("max_price"),c.forEach(((e,t)=>{/query-[0-9]+-page/.test(t)&&c.delete(t)})),a.href};(0,e.store)("woocommerce/product-filter-price",{state:{rangeStyle:()=>{const{minPrice:t,maxPrice:r,minRange:n,maxRange:i}=(0,e.getContext)();return[`--low: ${100*(t-n)/(i-n)}%`,`--high: ${100*(r-n)/(i-n)}%`].join(";")},formattedMinPrice:()=>{const{minPrice:r}=(0,e.getContext)();return(0,t.formatPrice)(r,(0,t.getCurrency)({minorUnit:0}))},formattedMaxPrice:()=>{const{maxPrice:r}=(0,e.getContext)();return(0,t.formatPrice)(r,(0,t.getCurrency)({minorUnit:0}))}},actions:{updateProducts:t=>{const r=(0,e.getContext)(),{minRange:a,minPrice:c,maxPrice:o,maxRange:m}=r,s=t.target.name,g=parseFloat(t.target.value),x="min"===s?Math.min(Number.isNaN(g)?a:g,m-1):c,P="max"===s?Math.max(Number.isNaN(g)?m:g,a+1):o;r.minPrice=x,r.maxPrice=P,(0,n.c)(i({minRange:a,maxRange:m,minPrice:x,maxPrice:P}))},reset:()=>{(0,n.c)(i({minRange:0,maxRange:0,minPrice:0,maxPrice:0}))}}})})()})();