var wc;(()=>{"use strict";var e={3097:e=>{e.exports=window.wc.__experimentalInteractivity}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r),o.d(r,{navigate:()=>c});var e=o(3097);const t=window.wc.wcSettings,n=(0,t.getSetting)("isBlockTheme"),a=(0,t.getSetting)("isProductArchive"),i=(0,t.getSetting)("needsRefreshForInteractivityAPI",!1);function c(t,o={}){const r=new URL(t);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)})),t=r.href,i||!n&&a?window.location.href=t:(0,e.navigate)(t,o)}(0,e.store)("woocommerce/product-filters",{state:{isDialogOpen:()=>(0,e.getContext)().isDialogOpen},actions:{openDialog:()=>{const t=(0,e.getContext)();document.body.classList.add("wc-modal--open"),t.hasPageWithWordPressAdminBar=Boolean(document.getElementById("wpadminbar")),t.isDialogOpen=!0},closeDialog:()=>{const t=(0,e.getContext)();document.body.classList.remove("wc-modal--open"),t.isDialogOpen=!1}},callbacks:{maybeNavigate:()=>{const{params:t,originalParams:o}=(0,e.getContext)();if(function(e,t){const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(const r of o)if(e[r]!==t[r])return!1;return!0}(t,o))return;const r=new URL(window.location.href),{searchParams:n}=r;for(const e in o)n.delete(e,o[e]);for(const e in t)n.set(e,t[e]);c(r.href)}}})})(),(wc=void 0===wc?{}:wc)["product-filters"]=r})();