import*as e from"@wordpress/interactivity";var t={438:e=>{e.exports=import("@wordpress/interactivity-router")}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](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);const n=(i={store:()=>e.store,withSyncEvent:()=>e.withSyncEvent},s={},o.d(s,i),s),a={actions:{preventSubmit:(0,n.withSyncEvent)(e=>{e.preventDefault()}),handleSortChange:(0,n.withSyncEvent)(function*(e){e.stopPropagation();const t=e.target.value,r=new URL(window.location.href);r.searchParams.set("orderby",t),r.searchParams.set("paged","1");const n=yield Promise.resolve().then(o.bind(o,438));yield n.actions.navigate(r.href)})}};var i,s;(0,n.store)("woocommerce/catalog-sorting",a,{lock:!0});