var wc;(()=>{"use strict";var t={};(t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(t);const e=window.wc.__experimentalInteractivity,r="filter_stock_status";(0,e.store)("woocommerce/product-filter-status",{actions:{toggleFilter:()=>{var t;const o=(0,e.getContext)("woocommerce/product-filters"),a=o.params[r],l=void 0===a?[]:a.split(","),{ref:i}=(0,e.getElement)(),c=null!==(t=i.getAttribute("data-target-value"))&&void 0!==t?t:i.getAttribute("value"),s=l.includes(c)?[...l.filter((t=>t!==c))]:[...l,c];0!==s.length?o.params={...o.params,[r]:s.join(",")}:delete o.params[r]},clearFilters:()=>{const t=(0,e.getContext)("woocommerce/product-filters"),o=t.params;delete o[r],t.params={...o}}}}),(wc=void 0===wc?{}:wc)["product-filter-status"]=t})();