var wc;(()=>{"use strict";var e={5226:(e,t,r)=>{r.d(t,{navigate:()=>m});var n=r(3097);const a=window.wc.wcSettings,i=(0,a.getSetting)("isBlockTheme"),c=(0,a.getSetting)("isProductArchive"),o=(0,a.getSetting)("needsRefreshForInteractivityAPI",!1);function m(e,t={}){const r=new URL(e);return r.pathname=r.pathname.replace(/\/page\/[0-9]+/i,""),r.searchParams.delete("paged"),r.searchParams.forEach(((e,t)=>{t.match(/^query(?:-[0-9]+)?-page$/)&&r.searchParams.delete(t)})),e=r.href,o||!i&&c?window.location.href=e:(0,n.navigate)(e,t)}},3097:e=>{e.exports=window.wc.__experimentalInteractivity}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n);var e=r(3097);const t=window.wc.priceFormat;var a=r(5226);const i=e=>{const{minPrice:t,maxPrice:r,minRange:n,maxRange:a}=e,i=new URL(window.location.href),{searchParams:c}=i;return t>n?c.set("min_price",t.toString()):c.delete("min_price"),r<a&&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)})),i.href},c=((e,t,r)=>{let n,a=null;const i=(...t)=>{a=t,n&&clearTimeout(n),n=setTimeout((()=>{n=null,a&&e(...a)}),1e3)};return i.flush=()=>{n&&a&&(e(...a),clearTimeout(n),n=null)},i})(((e,r,n)=>{const{decimalSeparator:c}=(0,t.getCurrency)(),{minRange:o,minPrice:m,maxPrice:g,maxRange:s}=e,l=n.target.name,u=parseInt(n.target.value.replace(new RegExp(`[^0-9\\${c}]+`,"g"),"").replace(new RegExp(`\\${c}`,"g"),"."),10),p="min"===l?Math.min(Number.isNaN(u)?o:u,g):m,d="max"===l?Math.max(Number.isNaN(u)?s:u,m):g;"min"===l?r.ref.value=p:"max"===l&&(r.ref.value=d),e.minPrice=p,e.maxPrice=d,(0,a.navigate)(i({minRange:o,maxRange:s,minPrice:p,maxPrice:d}))}));(0,e.store)("woocommerce/product-filter-price",{state:{rangeStyle:()=>{const{minPrice:t,maxPrice:r,minRange:n,maxRange:a}=(0,e.getContext)();return[`--low: ${100*(t-n)/(a-n)}%`,`--high: ${100*(r-n)/(a-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)(),n=(0,e.getElement)();c(r,n,t)},selectInputContent:()=>{const t=(0,e.getElement)();t&&t.ref&&t.ref.select()},reset:()=>{(0,a.navigate)(i({minRange:0,maxRange:0,minPrice:0,maxPrice:0}))}}})})(),(wc=void 0===wc?{}:wc)["product-filter-price"]=n})();