(()=>{var e,t={8703:(e,t,o)=>{"use strict";o.r(t);var l=o(9196);const r=window.wp.blocks;var i=o(2911),n=o(444);const a=(0,l.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,l.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,l.createElement)("path",{d:"M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zm0-7c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})),s=window.wc.wcSettings;var c,m,p,d,u,w,g,v,y,b;const S=(0,s.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),E=(S.pluginUrl,S.pluginUrl,S.buildPhase),f=(null===(c=s.STORE_PAGES.shop)||void 0===c||c.permalink,null===(m=s.STORE_PAGES.checkout)||void 0===m||m.id,null===(p=s.STORE_PAGES.checkout)||void 0===p||p.permalink,null===(d=s.STORE_PAGES.privacy)||void 0===d||d.permalink,null===(u=s.STORE_PAGES.privacy)||void 0===u||u.title,null===(w=s.STORE_PAGES.terms)||void 0===w||w.permalink,null===(g=s.STORE_PAGES.terms)||void 0===g||g.title,null===(v=s.STORE_PAGES.cart)||void 0===v||v.id,null===(y=s.STORE_PAGES.cart)||void 0===y||y.permalink,null!==(b=s.STORE_PAGES.myaccount)&&void 0!==b&&b.permalink?s.STORE_PAGES.myaccount.permalink:(0,s.getSetting)("wpLoginUrl","/wp-login.php"),(0,s.getSetting)("localPickupEnabled",!1),(0,s.getSetting)("countries",{})),_=(0,s.getSetting)("countryData",{}),k=(Object.fromEntries(Object.keys(_).filter((e=>!0===_[e].allowBilling)).map((e=>[e,f[e]||""]))),Object.fromEntries(Object.keys(_).filter((e=>!0===_[e].allowBilling)).map((e=>[e,_[e].states||[]]))),Object.fromEntries(Object.keys(_).filter((e=>!0===_[e].allowShipping)).map((e=>[e,f[e]||""]))),Object.fromEntries(Object.keys(_).filter((e=>!0===_[e].allowShipping)).map((e=>[e,_[e].states||[]]))),Object.fromEntries(Object.keys(_).map((e=>[e,_[e].locale||[]]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]}),h=((0,s.getSetting)("addressFieldsLocations",k).address,(0,s.getSetting)("addressFieldsLocations",k).contact,(0,s.getSetting)("addressFieldsLocations",k).order,(0,s.getSetting)("additionalOrderFields",{}),(0,s.getSetting)("additionalContactFields",{}),(0,s.getSetting)("additionalAddressFields",{}),JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"woocommerce/product-filter-active","version":"1.0.0","title":"Product Filter: Active Filters (Beta)","description":"Display the currently active filters.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":2,"ancestor":["woocommerce/product-filter"],"supports":{"interactivity":true,"inserter":false,"color":{"text":true,"background":false}},"usesContext":["queryId"],"attributes":{"displayStyle":{"type":"string","default":"list"}}}')),O=window.wp.blockEditor;var P=o(5736),x=o(7608),C=o.n(x);const j=window.wp.components,T=({attributes:e,setAttributes:t})=>{const{displayStyle:o}=e;return(0,l.createElement)(O.InspectorControls,null,(0,l.createElement)(j.PanelBody,{title:(0,P.__)("Display Settings","woocommerce")},(0,l.createElement)(j.__experimentalToggleGroupControl,{label:(0,P.__)("Display Style","woocommerce"),value:o,onChange:e=>t({displayStyle:e})},(0,l.createElement)(j.__experimentalToggleGroupControlOption,{value:"list",label:(0,P.__)("List","woocommerce")}),(0,l.createElement)(j.__experimentalToggleGroupControlOption,{value:"chips",label:(0,P.__)("Chips","woocommerce")}))))},R=window.wc.blocksComponents;var A=o(6860);const G=({type:e,name:t,prefix:o="",removeCallback:r=(()=>null),showLabel:n=!0,displayStyle:a})=>{const s=o?(0,l.createElement)(l.Fragment,null,o," ",t):t,c=(0,P.sprintf)(/* translators: %s attribute value used in the filter. For example: yellow, green, small, large. */ /* translators: %s attribute value used in the filter. For example: yellow, green, small, large. */
(0,P.__)("Remove %s filter","woocommerce"),t);return(0,l.createElement)("li",{className:"list-item",key:`${e}: ${t}`},n&&(0,l.createElement)("span",{className:"list-item-type"},`${e}: `),"chips"===a?(0,l.createElement)(R.RemovableChip,{element:"span",text:s,onRemove:r,radius:"large",ariaLabel:c}):(0,l.createElement)("span",{className:"list-item-name"},(0,l.createElement)("button",{className:"list-item-remove",onClick:r},(0,l.createElement)(i.Z,{className:"wc-block-components-chip__remove-icon",icon:A.Z,size:16}),(0,l.createElement)(R.Label,{screenReaderLabel:c})),s))};o(7916),E>2&&(0,r.registerBlockType)(h,{icon:{src:(0,l.createElement)(i.Z,{icon:a,className:"wc-block-editor-components-block-icon"})},edit:e=>{const{displayStyle:t}=e.attributes,o=(0,O.useBlockProps)({className:"wc-block-active-filters"});return(0,l.createElement)("div",{...o},(0,l.createElement)(T,{...e}),(0,l.createElement)(j.Disabled,null,(0,l.createElement)("ul",{className:C()("filter-list",{"list-chips":"chips"===t})},(0,l.createElement)(G,{type:(0,P.__)("Size","woocommerce"),name:(0,P.__)("Small","woocommerce"),displayStyle:t}),(0,l.createElement)(G,{type:(0,P.__)("Color","woocommerce"),name:(0,P.__)("Blue","woocommerce"),displayStyle:t}))))}})},7916:()=>{},9196:e=>{"use strict";e.exports=window.React},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},o={};function l(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return t[e].call(i.exports,i,i.exports,l),i.exports}l.m=t,e=[],l.O=(t,o,r,i)=>{if(!o){var n=1/0;for(m=0;m<e.length;m++){for(var[o,r,i]=e[m],a=!0,s=0;s<o.length;s++)(!1&i||n>=i)&&Object.keys(l.O).every((e=>l.O[e](o[s])))?o.splice(s--,1):(a=!1,i<n&&(n=i));if(a){e.splice(m--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var m=e.length;m>0&&e[m-1][2]>i;m--)e[m]=e[m-1];e[m]=[o,r,i]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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=8289,(()=>{var e={8289:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var r,i,[n,a,s]=o,c=0;if(n.some((t=>0!==e[t]))){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);if(s)var m=s(l)}for(t&&t(o);c<n.length;c++)i=n[c],l.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return l.O(m)},o=self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=l.O(void 0,[2869],(()=>l(8703)));r=l.O(r),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-filter-active"]=r})();