(()=>{"use strict";var e,t,r,o={7150:(e,t,r)=>{r.r(t);const o=window.wp.blocks;var c=r(498);const l=window.wc.wcSettings,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"woocommerce/product-filter-clear-button","version":"0.1.0","title":"Clear (Experimental)","description":"Allows shoppers to reset this filter.","category":"woocommerce","keywords":["WooCommerce","reset filter"],"textdomain":"woocommerce","apiVersion":3,"ancestor":["woocommerce/product-filter","woocommerce/product-filter-attribute","woocommerce/product-filter-price","woocommerce/product-filter-rating","woocommerce/product-filter-status","woocommerce/product-filter-active"],"usesContext":["filterData"],"attributes":{"clearType":{"type":"string","default":""}},"supports":{"interactivity":true,"inserter":false}}');var i=r(1609);const a=window.wp.blockEditor;var s=r(7723);const p=[{name:"product-filter-clear-all-button",title:(0,s.__)("Clear All (Experimental)","woocommerce"),description:(0,s.__)("Allows shoppers to reset all filters.","woocommerce"),attributes:{clearType:"all"},isDefault:!1,isActive:["clearType"]}];(()=>{const{experimentalBlocksEnabled:e}=(0,l.getSetting)("wcBlocksConfig",{experimentalBlocksEnabled:!1});return e})()&&(0,o.registerBlockType)(n,{icon:c.A,edit:e=>{var t;let r=(0,s.__)("Clear","woocommerce");return"all"===(null===(t=e.attributes)||void 0===t?void 0:t.clearType)&&(r=(0,s.__)("Clear all","woocommerce")),(0,i.createElement)(a.InnerBlocks,{template:[["core/buttons",{layout:{type:"flex"}},[["core/button",{text:r,className:"wc-block-product-filter-clear-button is-style-outline",style:{border:{width:"0px",style:"none"},typography:{textDecoration:"underline"},outline:"none",fontSize:"medium"}}]]]]})},save:function(){return(0,i.createElement)(a.InnerBlocks.Content,null)},variations:p})},1609:e=>{e.exports=window.React},7723:e=>{e.exports=window.wp.i18n},5573:e=>{e.exports=window.wp.primitives}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return o[e].call(r.exports,r,r.exports,l),r.exports}l.m=o,e=[],l.O=(t,r,o,c)=>{if(!r){var n=1/0;for(p=0;p<e.length;p++){for(var[r,o,c]=e[p],i=!0,a=0;a<r.length;a++)(!1&c||n>=c)&&Object.keys(l.O).every((e=>l.O[e](r[a])))?r.splice(a--,1):(i=!1,c<n&&(n=c));if(i){e.splice(p--,1);var s=o();void 0!==s&&(t=s)}}return t}c=c||0;for(var p=e.length;p>0&&e[p-1][2]>c;p--)e[p]=e[p-1];e[p]=[r,o,c]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var c=Object.create(null);l.r(c);var n={};t=t||[null,r({}),r([]),r(r)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((t=>n[t]=()=>e[t]));return n.default=()=>e,l.d(c,n),c},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.j=1276,(()=>{var e={1276:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var o,c,[n,i,a]=r,s=0;if(n.some((t=>0!==e[t]))){for(o in i)l.o(i,o)&&(l.m[o]=i[o]);if(a)var p=a(l)}for(t&&t(r);s<n.length;s++)c=n[s],l.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return l.O(p)},r=self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=l.O(void 0,[94],(()=>l(7150)));n=l.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-filter-clear-button"]=n})();