← Back
Editing: product-filter-attribute.js
(()=>{var e,t,o,r={49641:(e,t,o)=>{"use strict";var r=o(5573),n=o(10790);const l=window.wc.wcSettings,a=window.wp.blocks;var s=o(27723);const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"woocommerce/product-filter-attribute","title":"Attribute Filter","description":"Let shoppers filter products by attribute.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"ancestor":["woocommerce/product-filters"],"supports":{"interactivity":true,"color":{"text":true,"background":false,"__experimentalDefaultControls":{"text":false}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":false}},"spacing":{"margin":true,"padding":true,"blockGap":true,"__experimentalDefaultControls":{"margin":false,"padding":false,"blockGap":false}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":false,"radius":false,"style":false,"width":false}}},"usesContext":["query","filterParams"],"attributes":{"attributeId":{"type":"number","default":0},"showCounts":{"type":"boolean","default":false},"queryType":{"type":"string","default":"or"},"displayStyle":{"type":"string","default":"woocommerce/product-filter-checkbox-list"},"selectType":{"type":"string","default":"multiple"},"isPreview":{"type":"boolean","default":false},"sortOrder":{"type":"string","default":"count-desc"},"hideEmpty":{"type":"boolean","default":true}},"example":{"attributes":{"isPreview":true}},"style":"woocommerce/product-filter-attribute-view-style"}'),i=window.wc.wcBlocksData,u=window.wp.data;var d=o(86087),m=o(20923),p=o.n(m);function _(e){const t=(0,d.useRef)(e);return p()(e,t.current)||(t.current=e),t.current}const y=window.wc.wcTypes,f=e=>{const{namespace:t,resourceName:o,resourceValues:r=[],query:n={},shouldSelect:l=!0}=e;if(!t||!o)throw new Error("The options object must have valid values for the namespace and the resource properties.");const a=(0,d.useRef)({results:[],isLoading:!0}),c=_(n),m=_(r),p=(()=>{const[,e]=(0,d.useState)();return(0,d.useCallback)(t=>{e(()=>{throw t})},[])})(),f=(0,u.useSelect)(e=>{if(!l)return null;const r=e(i.COLLECTIONS_STORE_KEY),n=[t,o,c,m],a=r.getCollectionError(...n);if(a)if((0,y.isError)(a))p(a);else{const e="object"==typeof a&&null!==a&&"string"==typeof a.message?a.message:(0,s.__)("Something went wrong while loading data.","woocommerce");p(new Error(e))}return{results:r.getCollection(...n),isLoading:!r.hasFinishedResolution("getCollection",n)}},[t,o,m,c,l,p]);return null!==f&&(a.current=f),a.current};var b=o(64347),w=o(61303);const h=(0,d.createContext)("page"),g=()=>(0,d.useContext)(h),x=(h.Provider,e=>{const t=g();e=e||t;const o=(0,u.useSelect)(t=>t(i.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0),[e]),{setValueForQueryContext:r}=(0,u.useDispatch)(i.QUERY_STATE_STORE_KEY);return[o,(0,d.useCallback)(t=>{r(e,t)},[e,r])]}),v=(e,t,o)=>{const r=g();o=o||r;const n=(0,u.useSelect)(r=>r(i.QUERY_STATE_STORE_KEY).getValueForQueryKey(o,e,t),[o,e]),{setQueryValue:l}=(0,u.useDispatch)(i.QUERY_STATE_STORE_KEY);return[n,(0,d.useCallback)(t=>{l(o,e,t)},[o,e,l])]},C=window.wp.blockEditor,S=window.wp.components,j=(e,t)=>{if(!e)return null;if(0===e.innerBlocks.length)return null;for(const o of e.innerBlocks){if(t(o))return o;const e=j(o,t);if(e)return e}return null},k="woocommerce/selectableItems";function T(e){return Boolean(e)}function O(e){return e?Array.isArray(e)?e:[e]:[]}function E(e,t){return(0,a.getBlockTypes)().filter(o=>function(e,t,o){return!!t&&!!function(e){return!0===e.supports?.woocommerce?.innerBlockDisplayStyle}(e)&&O(e.ancestor).includes(t)&&O(e.usesContext).includes(o)}(o,e,t))}function B(e,t){return t.map(t=>{return o=e,r=t.name,j(o,function(e){return e.name===r});var o,r}).find(T)??null}function L(e,t){return t?.(e)??{rootClientId:e.clientId,index:e.innerBlocks.length}}const I=({clientId:e,currentStyle:t,onChange:o,contextKey:r=k,getFallbackDisplayStyleInsertionPoint:l})=>{const s=(0,u.select)("core/block-editor").getBlock(e),c=s?.name,i=E(c,r),{insertBlock:m,replaceBlock:p}=(0,u.useDispatch)("core/block-editor"),[_,y]=(0,d.useState)({});return 0===i.length?null:(0,n.jsx)(S.__experimentalToggleGroupControl,{value:t,isBlock:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:"",hideLabelFromVision:!0,onChange:e=>{if(!e||"string"!=typeof e)return;if(!s)return;if(!i.some(t=>t.name===e))return;const t=B(s,i);if(t){const o={..._,[t.name]:t.attributes};y(o),p(t.clientId,(0,a.createBlock)(e,o[e]||{}))}else{const t=L(s,l);m((0,a.createBlock)(e),t.index,t.rootClientId,!1)}o(e)},style:{width:"100%"},children:i.map(e=>(0,n.jsx)(S.__experimentalToggleGroupControlOption,{label:e.title,value:e.name},e.name))})};function P(e,t,o,r=k){const n=(0,u.select)("core/block-editor").getBlock(e);if(!n)return;const l=E(n.name,r);if(!l.some(e=>e.name===t))return;const s=B(n,l),{insertBlock:c,replaceBlock:i}=(0,u.dispatch)("core/block-editor");if(s)i(s.clientId,(0,a.createBlock)(t));else{const e=L(n,o);c((0,a.createBlock)(t),e.index,e.rootClientId,!1)}}const D=[{id:"blue",label:(0,s.__)("Blue","woocommerce"),value:"blue",rawData:{id:23,name:(0,s.__)("Blue","woocommerce"),slug:"blue",attr_slug:"blue",description:"",parent:0,count:4}},{id:"gray",label:(0,s.__)("Gray","woocommerce"),value:"gray",selected:!0,rawData:{id:29,name:(0,s.__)("Gray","woocommerce"),slug:"gray",attr_slug:"gray",description:"",parent:0,count:3}},{id:"green",label:(0,s.__)("Green","woocommerce"),value:"green",rawData:{id:24,name:(0,s.__)("Green","woocommerce"),slug:"green",attr_slug:"green",description:"",parent:0,count:3}},{id:"red",label:(0,s.__)("Red","woocommerce"),value:"red",selected:!0,rawData:{id:25,name:(0,s.__)("Red","woocommerce"),slug:"red",attr_slug:"red",description:"",parent:0,count:4}},{id:"yellow",label:(0,s.__)("Yellow","woocommerce"),value:"yellow",rawData:{id:30,name:(0,s.__)("Yellow","woocommerce"),slug:"yellow",attr_slug:"yellow",description:"",parent:0,count:1}}],A={"name-asc":(0,s.__)("Name, A to Z","woocommerce"),"name-desc":(0,s.__)("Name, Z to A","woocommerce"),"count-desc":(0,s.__)("Most results first","woocommerce"),"count-asc":(0,s.__)("Least results first","woocommerce")},q=Object.entries(A).map(([e,t])=>({label:t,value:e})),V=c.attributes.sortOrder.default,R=c.attributes.queryType.default,M=({clientId:e,attributes:t,setAttributes:o})=>{const{sortOrder:r,queryType:l,displayStyle:a,showCounts:i,hideEmpty:u}=t;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(C.InspectorControls,{children:(0,n.jsxs)(S.__experimentalToolsPanel,{label:(0,s.__)("Display Settings","woocommerce"),resetAll:()=>{o({sortOrder:V,queryType:R,displayStyle:c.attributes.displayStyle.default,showCounts:c.attributes.showCounts.default,hideEmpty:c.attributes.hideEmpty.default}),P(e,c.attributes.displayStyle.default)},children:[(0,n.jsx)(S.__experimentalToolsPanelItem,{label:(0,s.__)("Sort Order","woocommerce"),hasValue:()=>r!==V,onDeselect:()=>o({sortOrder:V}),children:(0,n.jsx)(S.SelectControl,{label:(0,s.__)("Sort order","woocommerce"),value:r,options:[{value:"",label:(0,s.__)("Select an option","woocommerce"),disabled:!0},...q],onChange:e=>{e&&Object.keys(A).includes(e)&&o({sortOrder:e})},help:(0,s.__)("Determine the order of filter options.","woocommerce"),__nextHasNoMarginBottom:!0})}),(0,n.jsx)(S.__experimentalToolsPanelItem,{label:(0,s.__)("Logic","woocommerce"),hasValue:()=>l!==R,onDeselect:()=>o({queryType:R}),children:(0,n.jsxs)(S.__experimentalToggleGroupControl,{label:(0,s.__)("Logic","woocommerce"),isBlock:!0,value:l,onChange:e=>{"and"!==e&&"or"!==e||o({queryType:e})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,style:{width:"100%"},help:"and"===l?(0,d.createInterpolateElement)((0,s.__)("Display products that match <b>all</b> selected attributes (they need to include <b>all of them</b>).","woocommerce"),{b:(0,n.jsx)("strong",{})}):(0,s.__)("Display products that match any of the selected attributes (they don't need to match all).","woocommerce"),children:[(0,n.jsx)(S.__experimentalToggleGroupControlOption,{label:(0,s.__)("Any","woocommerce"),value:"or"}),(0,n.jsx)(S.__experimentalToggleGroupControlOption,{label:(0,s.__)("All","woocommerce"),value:"and"})]})}),(0,n.jsx)(S.__experimentalToolsPanelItem,{label:(0,s.__)("Display Style","woocommerce"),hasValue:()=>a!==c.attributes.displayStyle.default,isShownByDefault:!0,onDeselect:()=>{o({displayStyle:c.attributes.displayStyle.default}),P(e,c.attributes.displayStyle.default)},children:(0,n.jsx)(I,{clientId:e,currentStyle:a,onChange:e=>o({displayStyle:e})})}),(0,n.jsx)(S.__experimentalToolsPanelItem,{label:(0,s.__)("Product counts","woocommerce"),hasValue:()=>i!==c.attributes.showCounts.default,onDeselect:()=>o({showCounts:c.attributes.showCounts.default}),isShownByDefault:!0,children:(0,n.jsx)(S.ToggleControl,{label:(0,s.__)("Product counts","woocommerce"),checked:i,onChange:e=>o({showCounts:e}),__nextHasNoMarginBottom:!0})}),(0,n.jsx)(S.__experimentalToolsPanelItem,{label:(0,s.__)("Hide items with no products","woocommerce"),hasValue:()=>u!==c.attributes.hideEmpty.default,onDeselect:()=>o({hideEmpty:c.attributes.hideEmpty.default}),children:(0,n.jsx)(S.ToggleControl,{label:(0,s.__)("Hide items with no products","woocommerce"),checked:u,onChange:e=>o({hideEmpty:e}),__nextHasNoMarginBottom:!0})})]})},"inspector")})};o(42933);const N=(0,l.getSetting)("attributes",[]).reduce((e,t)=>{const o=(r=t)&&r.attribute_name?{id:parseInt(r.attribute_id,10),name:r.attribute_name,taxonomy:"pa_"+r.attribute_name,label:r.attribute_label}:null;var r;return o&&o.id&&e.push(o),e},[]),F=(e=[])=>(0,a.getBlockTypes)().map(e=>e.name).filter(t=>!e.includes(t)),H=["woocommerce/product-filters","woocommerce/product-filter-attribute","woocommerce/product-filter-active","woocommerce/product-filter-price","woocommerce/product-filter-status","woocommerce/product-collection","woocommerce/add-to-cart-form","woocommerce/add-to-cart-with-options","core/query"];o(11652);const G=({children:e})=>(0,n.jsxs)("div",{className:"wc-block-product-filter-components-initial-disabled",children:[(0,n.jsx)("div",{className:"wc-block-product-filter-components-initial-disabled-overlay"}),e]});var Y=o(74515);o(91007);const Q=({children:e})=>(0,n.jsxs)("div",{className:"wc-block-product-filter-components-notice",children:[(0,n.jsx)(S.Icon,{className:"wc-block-product-filter-components-notice__icon",icon:Y.A}),(0,n.jsx)("div",{className:"wc-block-product-filter-components-notice__content",children:e})]});function K(e){return"string"==typeof e.label?e.label:e.ariaLabel}const Z=(0,l.getSetting)("attributes",[]),z=(0,S.withSpokenMessages)(e=>{const{attributes:t}=e,{attributeId:o,queryType:r,isPreview:l,displayStyle:a,showCounts:c,sortOrder:i,hideEmpty:u}=t,m=function(e){if(e)return N.find(t=>t.id===e)}(o),[p,h]=(0,d.useState)([]),[S,j]=(0,d.useState)(!0),{results:k,isLoading:T}=f({namespace:"/wc/store/v1",resourceName:"products/attributes/terms",resourceValues:[m?.id||0],shouldSelect:!!m?.id,query:{orderby:"menu_order",hide_empty:u,__experimental_visual:!0}}),{data:O,isLoading:E}=(({queryAttribute:e,queryTaxonomy:t,queryPrices:o,queryStock:r,queryRating:n,queryState:l,isEditor:a=!1})=>{let s=g();s=`${s}-collection-data`;const[c]=x(s),[i,u]=v("calculate_attribute_counts",[],s),[m,p]=v("calculate_taxonomy_counts",[],s),[h,C]=v("calculate_price_range",null,s),[S,j]=v("calculate_stock_status_counts",null,s),[k,T]=v("calculate_rating_counts",null,s),O=_(e||{}),E=_(t),B=_(o),L=_(r),I=_(n);(0,d.useEffect)(()=>{"object"==typeof O&&Object.keys(O).length&&(i.find(e=>(0,y.objectHasProp)(O,"taxonomy")&&e.taxonomy===O.taxonomy)||u([...i,O]))},[O,i,u]),(0,d.useEffect)(()=>{E&&!m.includes(E)&&p([...m,E])},[E,m,p]),(0,d.useEffect)(()=>{h!==B&&void 0!==B&&C(B)},[B,C,h]),(0,d.useEffect)(()=>{S!==L&&void 0!==L&&j(L)},[L,j,S]),(0,d.useEffect)(()=>{k!==I&&void 0!==I&&T(I)},[I,T,k]);const[P,D]=(0,d.useState)(a),[A]=(0,b.d7)(P,200);P||D(!0);const q=(0,d.useMemo)(()=>(e=>{const t=e;return Array.isArray(e.calculate_attribute_counts)&&(t.calculate_attribute_counts=(0,w.di)(e.calculate_attribute_counts.map(({taxonomy:e,queryType:t})=>({taxonomy:e,query_type:t}))).asc(["taxonomy","query_type"])),Array.isArray(e.calculate_taxonomy_counts)&&(t.calculate_taxonomy_counts=e.calculate_taxonomy_counts),t})(c),[c]),{results:V,isLoading:R}=f({namespace:"/wc/store/v1",resourceName:"products/collection-data",query:{...l,page:void 0,per_page:void 0,orderby:void 0,order:void 0,...q},shouldSelect:A});return{data:V,isLoading:R}})({queryAttribute:{taxonomy:m?.taxonomy||"",queryType:r},queryState:{},isEditor:!0});(0,d.useEffect)(()=>{if(T||E)return;const e=(0,y.objectHasProp)(O,"attribute_counts")&&(t=O.attribute_counts,Array.isArray(t)&&t.every(e=>"term"in e&&"count"in e))?O.attribute_counts.map(e=>e.term):[];var t;if(0===e.length&&u)h([]);else{const t=k.filter(t=>!u||e.includes(t.id)).map((e,t)=>({id:e.id.toString(),label:e.name,value:e.id.toString(),selected:0===t,...c&&{count:e.count},...e.__experimentalVisual&&{visual:e.__experimentalVisual}}));h(function(e,t){return e.sort((e,o)=>{switch(t){case"menu_order-asc":{const t=e.menuOrder??0,r=o.menuOrder??0;return t!==r?t-r:K(e).localeCompare(K(o))}case"name-asc":return K(e).localeCompare(K(o));case"name-desc":return K(o).localeCompare(K(e));case"count-asc":return void 0===e.count||void 0===o.count?K(e).localeCompare(K(o)):e.count-o.count;default:return void 0===e.count||void 0===o.count?K(e).localeCompare(K(o)):o.count-e.count}})}(t,i))}j(!1)},[c,k,O,i,u,T,E,m]);const{children:B,...L}=(0,C.useInnerBlocksProps)((0,C.useBlockProps)(),{allowedBlocks:F(H),template:[["core/heading",{level:3,content:m?.label||(0,s.__)("Attribute","woocommerce"),style:{spacing:{margin:{bottom:"0.625rem",top:"0"}}}}],[a]]}),I=T||E||S;return 0===Object.keys(Z).length?(0,n.jsxs)("div",{...L,children:[(0,n.jsx)(M,{...e}),(0,n.jsx)(Q,{children:(0,n.jsx)("p",{children:(0,s.__)("Attributes are needed for filtering your products. You haven't created any attributes yet.","woocommerce")})})]}):o&&m?I||0!==k.length?(0,n.jsxs)("div",{...L,children:[(0,n.jsx)(M,{...e}),(0,n.jsx)(G,{children:(0,n.jsx)(C.BlockContextProvider,{value:{"woocommerce/selectableItems":{items:0===p.length&&l?D:p,selectionMode:"multiple",storeNamespace:"woocommerce/product-filters",isLoading:I}},children:B})})]}):(0,n.jsxs)("div",{...L,children:[(0,n.jsx)(M,{...e}),(0,n.jsx)(Q,{children:(0,n.jsx)("p",{children:(0,s.__)("There are no products with the selected attributes.","woocommerce")})})]}):(0,n.jsxs)("div",{...L,children:[(0,n.jsx)(M,{...e}),(0,n.jsx)(Q,{children:(0,n.jsx)("p",{children:(0,s.__)("Please select an attribute to use this filter!","woocommerce")})})]})}),J=(0,l.getSetting)("attributes",[]),U=(0,l.getSetting)("defaultProductFilterAttribute");(0,a.registerBlockType)(c,{edit:z,icon:()=>(0,n.jsx)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 4C4.25 3.58579 4.58579 3.25 5 3.25L9.17284 3.25C9.37179 3.25 9.56258 3.32904 9.70324 3.46974L13.2877 7.05515L13.2893 7.05673C13.5844 7.35367 13.75 7.75532 13.75 8.17393C13.75 8.59255 13.5844 8.99419 13.2893 9.29114L12.7573 8.76246L13.2877 9.29272L10.2961 12.2851C10.1489 12.4325 9.97417 12.5494 9.78179 12.6292C9.58941 12.7089 9.38319 12.75 9.17493 12.75C8.96667 12.75 8.76045 12.7089 8.56807 12.6292C8.37575 12.5494 8.20104 12.4326 8.05392 12.2853L8.05378 12.2851L4.46991 8.7045C4.32911 8.56383 4.25 8.37296 4.25 8.17393V4ZM12.2253 8.23378L12.2257 8.23341C12.2412 8.21758 12.25 8.19622 12.25 8.17393C12.25 8.15164 12.2412 8.13029 12.2257 8.11446L12.2253 8.11409L8.86212 4.75H5.75V7.86307L9.11456 11.2246L9.11517 11.2252C9.12303 11.2331 9.13236 11.2393 9.14261 11.2436C9.15286 11.2478 9.16384 11.25 9.17493 11.25C9.18602 11.25 9.197 11.2478 9.20725 11.2436C9.2175 11.2393 9.22683 11.2331 9.23469 11.2252L9.23499 11.2249L12.2253 8.23378ZM12.9999 20H3.99988V18.5H12.9999V20ZM3.99988 16L19.9999 16V14.5L3.99988 14.5V16Z",fill:"currentColor"})}),attributes:{...c.attributes,attributeId:{...c.attributes.attributeId,default:parseInt(U.attribute_id,10)}},save:()=>{const e=C.useBlockProps.save(),t=C.useInnerBlocksProps.save(e);return(0,n.jsx)("div",{...t})},variations:J.map((e,t)=>({name:`product-filter-attribute-${e.attribute_name}`,title:(0,s.sprintf)( // translators: %s is the attribute label. // translators: %s is the attribute label. (0,s.__)("%s Filter","woocommerce"),e.attribute_label),description:(0,s.sprintf)( // translators: %s is the attribute label. // translators: %s is the attribute label. (0,s.__)("Let shoppers filter products by %s.","woocommerce"),e.attribute_label.toLocaleLowerCase()),attributes:{attributeId:parseInt(e.attribute_id,10)},isActive:["attributeId"],isDefault:0===t}))})},11652:()=>{},91007:()=>{},42933:()=>{},51609:e=>{"use strict";e.exports=window.React},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},86087:e=>{"use strict";e.exports=window.wp.element},27723:e=>{"use strict";e.exports=window.wp.i18n},20923:e=>{"use strict";e.exports=window.wp.isShallowEqual},5573:e=>{"use strict";e.exports=window.wp.primitives}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,l),o.exports}l.m=r,e=[],l.O=(t,o,r,n)=>{if(!o){var a=1/0;for(u=0;u<e.length;u++){for(var[o,r,n]=e[u],s=!0,c=0;c<o.length;c++)(!1&n||a>=n)&&Object.keys(l.O).every(e=>l.O[e](o[c]))?o.splice(c--,1):(s=!1,n<a&&(a=n));if(s){e.splice(u--,1);var i=r();void 0!==i&&(t=i)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[o,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);l.r(n);var a={};t=t||[null,o({}),o([]),o(o)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=o(s))Object.getOwnPropertyNames(s).forEach(t=>a[t]=()=>e[t]);return a.default=()=>e,l.d(n,a),n},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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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=2448,(()=>{var e={2448:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,s,c]=o,i=0;if(a.some(t=>0!==e[t])){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(c)var u=c(l)}for(t&&t(o);i<a.length;i++)n=a[i],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(u)},o=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=l.O(void 0,[94],()=>l(49641));a=l.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-filter-attribute"]=a})();
Save File
Cancel