(()=>{var e={9498:()=>{}},o={};function t(r){var c=o[r];if(void 0!==c)return c.exports;var l=o[r]={exports:{}};return e[r](l,l.exports,t),l.exports}t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";t.r(r);const e=window.wp.blocks,o=window.wc.wcSettings,c=window.React,l=window.wp.primitives,i=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"woocommerce/product-filter-active","version":"1.0.0","title":"Active (Experimental)","description":"Display the currently active filters.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"ancestor":["woocommerce/product-filters"],"supports":{"interactivity":true,"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":false,"radius":false,"style":false,"width":false}},"spacing":{"margin":true,"padding":true,"blockGap":false,"__experimentalDefaultControls":{"margin":false,"padding":false,"blockGap":false}}},"usesContext":["activeFilters"]}'),a=window.wp.blockEditor;t(9498);const s=({children:e})=>(0,c.createElement)("div",{className:"wc-block-product-filter-components-initial-disabled"},(0,c.createElement)("div",{className:"wc-block-product-filter-components-initial-disabled-overlay"}),e),n=["woocommerce/product-filters","woocommerce/product-filter-attribute","woocommerce/product-filter-active","woocommerce/product-filter-price","woocommerce/product-filter-status","woocommerce/product-collection","core/query"],m=(o=[])=>(0,e.getBlockTypes)().map((e=>e.name)).filter((e=>!o.includes(e))),p=window.wp.i18n,d=[{type:(0,p.__)("Color","woocommerce"),label:(0,p.__)("Blue","woocommerce")},{type:(0,p.__)("Color","woocommerce"),label:(0,p.__)("Red","woocommerce")},{type:(0,p.__)("Size","woocommerce"),label:(0,p.__)("Large","woocommerce")},{type:(0,p.__)("Status","woocommerce"),label:(0,p.__)("In stock","woocommerce")},{type:(0,p.__)("Status","woocommerce"),label:(0,p.__)("On sale","woocommerce")}];(()=>{const{experimentalBlocksEnabled:e}=(0,o.getSetting)("wcBlocksConfig",{experimentalBlocksEnabled:!1});return e})()&&(0,e.registerBlockType)(i,{icon:()=>(0,c.createElement)(l.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(l.Path,{d:"M9 17.5H11.5V16H9V17.5ZM5 6V7.5L17 7.5V6L5 6ZM7 12.5H15V11H7V12.5Z",fill:"currentColor"}),(0,c.createElement)(l.Path,{d:"M19.9982 13.1948L18.7945 12.2998L15.7111 16.1017L14.0969 14.8993L13.2002 16.1017L16.0185 18.2022L19.9982 13.1948Z",fill:"currentColor"})),edit:()=>{const{children:e,...o}=(0,a.useInnerBlocksProps)((0,a.useBlockProps)(),{allowedBlocks:m(n),template:[["woocommerce/product-filter-removable-chips"],["woocommerce/product-filter-clear-button"]]});return(0,c.createElement)("div",{...o},(0,c.createElement)(s,null,(0,c.createElement)(a.BlockContextProvider,{value:{filterData:{items:d}}},e)))},save:()=>{const e=a.useBlockProps.save(),o=a.useInnerBlocksProps.save(e);return(0,c.createElement)("div",{...o})}})})(),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-filter-active"]=r})();