var wc;(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{navigate:()=>i});const o=window.wc.__experimentalInteractivity,n=window.wc.wcSettings,r=(0,n.getSetting)("isBlockTheme"),a=(0,n.getSetting)("isProductArchive"),c=(0,n.getSetting)("needsRefreshForInteractivityAPI",!1);function i(e,t={}){const n=new URL(e);return n.pathname=n.pathname.replace(/\/page\/[0-9]+/i,""),n.searchParams.delete("paged"),n.searchParams.forEach(((e,t)=>{t.match(/^query(?:-[0-9]+)?-page$/)&&n.searchParams.delete(t)})),e=n.href,c||!r&&a?window.location.href=e:(0,o.navigate)(e,t)}const{actions:s}=(0,o.store)("woocommerce/product-filters",{actions:{openOverlay:()=>{if((0,o.getContext)().isOverlayOpened=!0,document.getElementById("wpadminbar")){const e=(document.documentElement||document.body.parentNode||document.body).scrollTop;document.body.style.setProperty("--adminbar-mobile-padding",`max(calc(var(--wp-admin--admin-bar--height) - ${e}px), 0px)`)}},closeOverlay:()=>{(0,o.getContext)().isOverlayOpened=!1},closeOverlayOnEscape:e=>{(0,o.getContext)().isOverlayOpened&&"Escape"===e.key&&s.closeOverlay()}},callbacks:{maybeNavigate:()=>{const{params:e,originalParams:t}=(0,o.getContext)();if(function(e,t){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const n of o)if(e[n]!==t[n])return!1;return!0}(e,t))return;const n=new URL(window.location.href),{searchParams:r}=n;for(const e in t)r.delete(e,t[e]);for(const t in e)r.set(t,e[t]);i(n.href)},scrollLimit:()=>{const{isOverlayOpened:e}=(0,o.getContext)();document.body.style.overflow=e?"hidden":"auto"}}});(wc=void 0===wc?{}:wc)["product-filters"]=t})();