Edit file File name : stock-filter-frontend.js Content :var wc;(()=>{var e,t,r,o={5704:(e,t,r)=>{"use strict";r.r(t);var o=r(1609),s=r(6087),n=r(2294),l=r(7723);const c=window.wc.wcSettings;var a,i,u,d,p,m,g,w,f,b;const _=(0,c.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),E=_.pluginUrl+"assets/images/",k=(_.pluginUrl,_.buildPhase,null===(a=c.STORE_PAGES.shop)||void 0===a||a.permalink,null===(i=c.STORE_PAGES.checkout)||void 0===i||i.id,null===(u=c.STORE_PAGES.checkout)||void 0===u||u.permalink,null===(d=c.STORE_PAGES.privacy)||void 0===d||d.permalink,null===(p=c.STORE_PAGES.privacy)||void 0===p||p.title,null===(m=c.STORE_PAGES.terms)||void 0===m||m.permalink,null===(g=c.STORE_PAGES.terms)||void 0===g||g.title,null===(w=c.STORE_PAGES.cart)||void 0===w||w.id,null===(f=c.STORE_PAGES.cart)||void 0===f||f.permalink,null!==(b=c.STORE_PAGES.myaccount)&&void 0!==b&&b.permalink?c.STORE_PAGES.myaccount.permalink:(0,c.getSetting)("wpLoginUrl","/wp-login.php"),(0,c.getSetting)("localPickupEnabled",!1),(0,c.getSetting)("countries",{})),h=(0,c.getSetting)("countryData",{}),v=(Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,k[e]||""]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,h[e].states||[]]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,k[e]||""]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,h[e].states||[]]))),Object.fromEntries(Object.keys(h).map((e=>[e,h[e].locale||[]]))),{address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]}),y=((0,c.getSetting)("addressFieldsLocations",v).address,(0,c.getSetting)("addressFieldsLocations",v).contact,(0,c.getSetting)("addressFieldsLocations",v).order,(0,c.getSetting)("additionalOrderFields",{}),(0,c.getSetting)("additionalContactFields",{}),(0,c.getSetting)("additionalAddressFields",{}),({imageUrl:e=`${E}/block-error.svg`,header:t=(0,l.__)("Oops!","woocommerce"),text:r=(0,l.__)("There was an error loading the content.","woocommerce"),errorMessage:s,errorMessagePrefix:n=(0,l.__)("Error:","woocommerce"),button:c,showErrorBlock:a=!0})=>a?(0,o.createElement)("div",{className:"wc-block-error wc-block-components-error"},e&&(0,o.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:e,alt:""}),(0,o.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},t&&(0,o.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},t),r&&(0,o.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},r),s&&(0,o.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},n?n+" ":"",s),c&&(0,o.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},c))):null);r(9407);class S extends s.Component{constructor(...e){super(...e),(0,n.A)(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:(0,o.createElement)(o.Fragment,null,(0,o.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:r=!0,showErrorBlock:s=!0,text:n,errorMessagePrefix:l,renderError:c,button:a}=this.props,{errorMessage:i,hasError:u}=this.state;return u?"function"==typeof c?c({errorMessage:i}):(0,o.createElement)(y,{showErrorBlock:s,errorMessage:r?i:null,header:e,imageUrl:t,text:n,errorMessagePrefix:l,button:a}):this.props.children}}const O=S,P=[".wp-block-woocommerce-cart"],x=({Block:e,containers:t,getProps:r=(()=>({})),getErrorBoundaryProps:n=(()=>({}))})=>{0!==t.length&&Array.prototype.forEach.call(t,((t,l)=>{const c=r(t,l),a=n(t,l),i={...t.dataset,...c.attributes||{}};(({Block:e,container:t,attributes:r={},props:n={},errorBoundaryProps:l={}})=>{(0,s.render)((0,o.createElement)(O,{...l},(0,o.createElement)(s.Suspense,{fallback:(0,o.createElement)("div",{className:"wc-block-placeholder"})},e&&(0,o.createElement)(e,{...n,attributes:r}))),t,(()=>{t.classList&&t.classList.remove("is-loading")}))})({Block:e,container:t,props:c,attributes:i,errorBoundaryProps:a})}))};var A=r(195),T=r(7104),R=r(224),C=r(923),B=r.n(C);function L(e){const t=(0,s.useRef)(e);return B()(e,t.current)||(t.current=e),t.current}const j=window.wc.wcBlocksData,N=window.wp.data,F=(0,s.createContext)("page"),M=()=>(0,s.useContext)(F),q=(F.Provider,e=>{const t=M();e=e||t;const r=(0,N.useSelect)((t=>t(j.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)),[e]),{setValueForQueryContext:o}=(0,N.useDispatch)(j.QUERY_STATE_STORE_KEY);return[r,(0,s.useCallback)((t=>{o(e,t)}),[e,o])]}),Q=(e,t,r)=>{const o=M();r=r||o;const n=(0,N.useSelect)((o=>o(j.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)),[r,e]),{setQueryValue:l}=(0,N.useDispatch)(j.QUERY_STATE_STORE_KEY);return[n,(0,s.useCallback)((t=>{l(r,e,t)}),[r,e,l])]};var U=r(4717);const G=window.wc.wcTypes;var I=r(5574);const K=({queryAttribute:e,queryPrices:t,queryStock:r,queryRating:o,queryState:n,isEditor:l=!1})=>{let c=M();c=`${c}-collection-data`;const[a]=q(c),[i,u]=Q("calculate_attribute_counts",[],c),[d,p]=Q("calculate_price_range",null,c),[m,g]=Q("calculate_stock_status_counts",null,c),[w,f]=Q("calculate_rating_counts",null,c),b=L(e||{}),_=L(t),E=L(r),k=L(o);(0,s.useEffect)((()=>{"object"==typeof b&&Object.keys(b).length&&(i.find((e=>(0,G.objectHasProp)(b,"taxonomy")&&e.taxonomy===b.taxonomy))||u([...i,b]))}),[b,i,u]),(0,s.useEffect)((()=>{d!==_&&void 0!==_&&p(_)}),[_,p,d]),(0,s.useEffect)((()=>{m!==E&&void 0!==E&&g(E)}),[E,g,m]),(0,s.useEffect)((()=>{w!==k&&void 0!==k&&f(k)}),[k,f,w]);const[h,v]=(0,s.useState)(l),[y]=(0,U.d7)(h,200);h||v(!0);const S=(0,s.useMemo)((()=>(e=>{const t=e;return Array.isArray(e.calculate_attribute_counts)&&(t.calculate_attribute_counts=(0,I.di)(e.calculate_attribute_counts.map((({taxonomy:e,queryType:t})=>({taxonomy:e,query_type:t})))).asc(["taxonomy","query_type"])),t})(a)),[a]);return(e=>{const{namespace:t,resourceName:r,resourceValues:o=[],query:n={},shouldSelect:l=!0}=e;if(!t||!r)throw new Error("The options object must have valid values for the namespace and the resource properties.");const c=(0,s.useRef)({results:[],isLoading:!0}),a=L(n),i=L(o),u=(()=>{const[,e]=(0,s.useState)();return(0,s.useCallback)((t=>{e((()=>{throw t}))}),[])})(),d=(0,N.useSelect)((e=>{if(!l)return null;const o=e(j.COLLECTIONS_STORE_KEY),s=[t,r,a,i],n=o.getCollectionError(...s);if(n){if(!(0,G.isError)(n))throw new Error("TypeError: `error` object is not an instance of Error constructor");u(n)}return{results:o.getCollection(...s),isLoading:!o.hasFinishedResolution("getCollection",s)}}),[t,r,i,a,l]);return null!==d&&(c.current=d),c.current})({namespace:"/wc/store/v1",resourceName:"products/collection-data",query:{...n,page:void 0,per_page:void 0,orderby:void 0,order:void 0,...S},shouldSelect:y})},Y=window.wc.blocksComponents;var D=r(9019),$=r.n(D);r(1504);const V=({className:e,isLoading:t,disabled:r, /* translators: Submit button text for filters. */ label:s=(0,l.__)("Apply","woocommerce"),onClick:n,screenReaderLabel:c=(0,l.__)("Apply filter","woocommerce")})=>(0,o.createElement)("button",{type:"submit",className:$()("wp-block-button__link","wc-block-filter-submit-button","wc-block-components-filter-submit-button",{"is-loading":t},e),disabled:r,onClick:n},(0,o.createElement)(Y.Label,{label:s,screenReaderLabel:c}));r(8335);const W=({className:e, /* translators: Reset button text for filters. */ label:t=(0,l.__)("Reset","woocommerce"),onClick:r,screenReaderLabel:s=(0,l.__)("Reset filter","woocommerce")})=>(0,o.createElement)("button",{className:$()("wc-block-components-filter-reset-button",e),onClick:r},(0,o.createElement)(Y.Label,{label:t,screenReaderLabel:s}));r(1626);const H=({children:e})=>(0,o.createElement)("div",{className:"wc-block-filter-title-placeholder"},e);r(5400);const J=({name:e,count:t})=>(0,o.createElement)(o.Fragment,null,e,null!==t&&Number.isFinite(t)&&(0,o.createElement)(Y.Label,{label:t.toString(),screenReaderLabel:(0,l.sprintf)(/* translators: %s number of products. */ /* translators: %s number of products. */ (0,l._n)("%s product","%s products",t,"woocommerce"),t),wrapperElement:"span",wrapperProps:{className:"wc-filter-element-label-list-count"}}));var z=r(1331);r(243);const Z=({className:e,style:t,suggestions:r,multiple:s=!0,saveTransform:n=(e=>e.trim().replace(/\s/g,"-")),messages:l={},validateInput:c=(e=>r.includes(e)),label:a="",...i})=>(0,o.createElement)("div",{className:$()("wc-blocks-components-form-token-field-wrapper",e,{"single-selection":!s}),style:t},(0,o.createElement)(z.A,{label:a,__experimentalExpandOnFocus:!0,__experimentalShowHowTo:!1,__experimentalValidateInput:c,saveTransform:n,maxLength:s?void 0:1,suggestions:r,messages:l,...i})),X=window.wp.htmlEntities,ee=window.wp.url,te=(0,c.getSettingWithCoercion)("isRenderingPhpTemplate",!1,G.isBoolean);function re(e){if(te){const t=new URL(e);t.pathname=t.pathname.replace(/\/page\/[0-9]+/i,""),t.searchParams.delete("paged"),t.searchParams.forEach(((e,r)=>{r.match(/^query(?:-[0-9]+)?-page$/)&&t.searchParams.delete(r)})),window.location.href=t.href}else window.history.replaceState({},"",e)}const oe=e=>{const t=(0,ee.getQueryArgs)(e);return(0,ee.addQueryArgs)(e,t)},se=[{value:"preview-1",name:"In Stock",label:(0,o.createElement)(J,{name:"In Stock",count:3}),textLabel:"In Stock (3)"},{value:"preview-2",name:"Out of stock",label:(0,o.createElement)(J,{name:"Out of stock",count:3}),textLabel:"Out of stock (3)"},{value:"preview-3",name:"On backorder",label:(0,o.createElement)(J,{name:"On backorder",count:2}),textLabel:"On backorder (2)"}];r(5837);const ne=JSON.parse('{"uK":{"F8":{"A":3},"Ox":{"A":"list"},"dc":{"A":"multiple"}}}');function le(){return Math.floor(Math.random()*Date.now())}const ce=e=>e.trim().replace(/\s/g,"").replace(/_/g,"-").replace(/-+/g,"-").replace(/[^a-zA-Z0-9-]/g,""),ae=(0,s.createContext)({}),ie="filter_stock_status";(e=>{const t=document.body.querySelectorAll(P.join(",")),{Block:r,getProps:o,getErrorBoundaryProps:s,selector:n}=e;(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:o,wrappers:s})=>{const n=document.body.querySelectorAll(o);s&&s.length>0&&Array.prototype.filter.call(n,(e=>!((e,t)=>Array.prototype.some.call(t,(t=>t.contains(e)&&!t.isSameNode(e))))(e,s))),x({Block:e,containers:n,getProps:t,getErrorBoundaryProps:r})})({Block:r,getProps:o,getErrorBoundaryProps:s,selector:n,wrappers:t}),Array.prototype.forEach.call(t,(t=>{t.addEventListener("wc-blocks_render_blocks_frontend",(()=>{(({Block:e,getProps:t,getErrorBoundaryProps:r,selector:o,wrapper:s})=>{const n=s.querySelectorAll(o);x({Block:e,containers:n,getProps:t,getErrorBoundaryProps:r})})({...e,wrapper:t})}))}))})({selector:".wp-block-woocommerce-stock-filter",Block:({attributes:e,isEditor:t=!1})=>{const r=(()=>{const{wrapper:e}=(0,s.useContext)(ae);return t=>{e&&e.current&&(e.current.hidden=!t)}})(),n=(0,c.getSettingWithCoercion)("isRenderingPhpTemplate",!1,G.isBoolean),[a,i]=(0,s.useState)(!1),{outofstock:u,...d}=(0,c.getSetting)("stockStatusOptions",{}),p=(0,s.useRef)((0,c.getSetting)("hideOutOfStockItems",!1)?d:{outofstock:u,...d}),m=(0,s.useMemo)((()=>((e,t="filter_stock_status")=>{const r=(o=t,window?(0,ee.getQueryArg)(window.location.href,o):null);var o;if(!r)return[];const s=(0,G.isString)(r)?r.split(","):r,n=Object.keys(e);return s.filter((e=>n.includes(e)))})(p.current,ie)),[]),[g,w]=(0,s.useState)(m),[f,b]=(0,s.useState)(e.isPreview?se:[]),[_]=(0,s.useState)(Object.entries(p.current).map((([e,t])=>({slug:e,name:t}))).filter((e=>!!e.name)).sort(((e,t)=>e.slug.localeCompare(t.slug)))),[E]=q(),[k,h]=Q("stock_status",m),{results:v,isLoading:y}=K({queryStock:!0,queryState:E,isEditor:t}),S=(0,s.useCallback)((e=>(0,G.objectHasProp)(v,"stock_status_counts")&&Array.isArray(v.stock_status_counts)?v.stock_status_counts.find((({status:t,count:r})=>t===e&&0!==Number(r))):null),[v]),[O,P]=(0,s.useState)(le());(0,s.useEffect)((()=>{if(y||e.isPreview)return;const t=_.map((t=>{const r=S(t.slug);if(!(r||g.includes(t.slug)||(s=t.slug,null!=E&&E.stock_status&&E.stock_status.some((({status:e=[]})=>e.includes(s))))))return null;var s;const n=r?Number(r.count):0;return{value:t.slug,name:(0,X.decodeEntities)(t.name),label:(0,o.createElement)(J,{name:(0,X.decodeEntities)(t.name),count:e.showCounts?n:null}),textLabel:e.showCounts?`${(0,X.decodeEntities)(t.name)} (${n})`:(0,X.decodeEntities)(t.name)}})).filter((e=>!!e));b(t),P(le())}),[e.showCounts,e.isPreview,y,S,g,E.stock_status,_]);const x="single"!==e.selectType,C=(0,s.useCallback)((e=>{t||(e&&!n&&h(e),(e=>{if(!window)return;if(0===e.length){const e=(0,ee.removeQueryArgs)(window.location.href,ie);return void(e!==oe(window.location.href)&&re(e))}const t=(0,ee.addQueryArgs)(window.location.href,{[ie]:e.join(",")});t!==oe(window.location.href)&&re(t)})(e))}),[t,h,n]);(0,s.useEffect)((()=>{e.showFilterButton||C(g)}),[e.showFilterButton,g,C]);const j=L((0,s.useMemo)((()=>k),[k])),N=function(e,t){const r=(0,s.useRef)();return(0,s.useEffect)((()=>{r.current===e||(r.current=e)}),[e,t]),r.current}(j);(0,s.useEffect)((()=>{B()(N,j)||B()(g,j)||w(j)}),[g,j,N]),(0,s.useEffect)((()=>{a||(h(m),i(!0))}),[h,a,i,m]);const F=(0,s.useCallback)((e=>{const t=e=>{const t=f.find((t=>t.value===e));return t?t.name:null},r=({filterAdded:e,filterRemoved:r})=>{const o=e?t(e):null,s=r?t(r):null;o?(0,A.speak)((0,l.sprintf)(/* translators: %s stock statuses (for example: 'instock'...) */ /* translators: %s stock statuses (for example: 'instock'...) */ (0,l.__)("%s filter added.","woocommerce"),o)):s&&(0,A.speak)((0,l.sprintf)(/* translators: %s stock statuses (for example:'instock'...) */ /* translators: %s stock statuses (for example:'instock'...) */ (0,l.__)("%s filter removed.","woocommerce"),s))},o=g.includes(e);if(!x){const t=o?[]:[e];return r(o?{filterRemoved:e}:{filterAdded:e}),void w(t)}if(o){const t=g.filter((t=>t!==e));return r({filterRemoved:e}),void w(t)}const s=[...g,e].sort();r({filterAdded:e}),w(s)}),[g,x,f]);if(!y&&0===f.length)return r(!1),null;const M=`h${e.headingLevel}`,U=!e.isPreview&&!p.current||0===f.length,I=!e.isPreview&&y;if(!(0,c.getSettingWithCoercion)("hasFilterableProducts",!1,G.isBoolean))return r(!1),null;const D=x?!U&&g.length<f.length:!U&&0===g.length,z=(0,o.createElement)(M,{className:"wc-block-stock-filter__title"},e.heading),te=U?(0,o.createElement)(H,null,z):z;return r(!0),(0,o.createElement)(o.Fragment,null,!t&&e.heading&&te,(0,o.createElement)("div",{className:$()("wc-block-stock-filter",`style-${e.displayStyle}`,{"is-loading":U})},"dropdown"===e.displayStyle?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Z,{key:O,className:$()({"single-selection":!x,"is-loading":U}),suggestions:f.filter((e=>!g.includes(e.value))).map((e=>e.value)),disabled:U,placeholder:(0,l.__)("Select stock status","woocommerce"),onChange:e=>{!x&&e.length>1&&(e=e.slice(-1));const t=[e=e.map((e=>{const t=f.find((t=>t.value===e));return t?t.value:e})),g].reduce(((e,t)=>e.filter((e=>!t.includes(e)))));if(1===t.length)return F(t[0]);const r=[g,e].reduce(((e,t)=>e.filter((e=>!t.includes(e)))));1===r.length&&F(r[0])},value:g,displayTransform:e=>{const t=f.find((t=>t.value===e));return t?t.textLabel:e},saveTransform:ce,messages:{added:(0,l.__)("Stock filter added.","woocommerce"),removed:(0,l.__)("Stock filter removed.","woocommerce"),remove:(0,l.__)("Remove stock filter.","woocommerce"),__experimentalInvalid:(0,l.__)("Invalid stock filter.","woocommerce")}}),D&&(0,o.createElement)(T.A,{icon:R.A,size:30})):(0,o.createElement)(Y.CheckboxList,{className:"wc-block-stock-filter-list",options:f,checked:g,onChange:F,isLoading:U,isDisabled:I})),(0,o.createElement)("div",{className:"wc-block-stock-filter__actions"},(g.length>0||t)&&!U&&(0,o.createElement)(W,{onClick:()=>{w([]),C([])},screenReaderLabel:(0,l.__)("Reset stock filter","woocommerce")}),e.showFilterButton&&(0,o.createElement)(V,{className:"wc-block-stock-filter__button",isLoading:U,disabled:U||I,onClick:()=>C(g)})))},getProps:e=>{return{attributes:(t=e.dataset,{heading:(0,G.isString)(null==t?void 0:t.heading)?t.heading:"",headingLevel:(0,G.isString)(null==t?void 0:t.headingLevel)&&parseInt(t.headingLevel,10)||ne.uK.F8.A,showFilterButton:"true"===(null==t?void 0:t.showFilterButton),showCounts:"true"===(null==t?void 0:t.showCounts),isPreview:!1,displayStyle:(0,G.isString)(null==t?void 0:t.displayStyle)&&t.displayStyle||ne.uK.Ox.A,selectType:(0,G.isString)(null==t?void 0:t.selectType)&&t.selectType||ne.uK.dc.A}),isEditor:!1};var t}})},9407:()=>{},5400:()=>{},1626:()=>{},8335:()=>{},1504:()=>{},243:()=>{},5837:()=>{},1609:e=>{"use strict";e.exports=window.React},8468:e=>{"use strict";e.exports=window.lodash},195:e=>{"use strict";e.exports=window.wp.a11y},9491:e=>{"use strict";e.exports=window.wp.compose},4040:e=>{"use strict";e.exports=window.wp.deprecated},8107:e=>{"use strict";e.exports=window.wp.dom},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},923:e=>{"use strict";e.exports=window.wp.isShallowEqual},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},979:e=>{"use strict";e.exports=window.wp.warning}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var r=s[e]={exports:{}};return o[e].call(r.exports,r,r.exports,n),r.exports}n.m=o,e=[],n.O=(t,r,o,s)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,o,s]=e[u],c=!0,a=0;a<r.length;a++)(!1&s||l>=s)&&Object.keys(n.O).every((e=>n.O[e](r[a])))?r.splice(a--,1):(c=!1,s<l&&(l=s));if(c){e.splice(u--,1);var i=o();void 0!==i&&(t=i)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[r,o,s]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.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 s=Object.create(null);n.r(s);var l={};t=t||[null,r({}),r([]),r(r)];for(var c=2&o&&e;"object"==typeof c&&!~t.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach((t=>l[t]=()=>e[t]));return l.default=()=>e,n.d(s,l),s},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=5454,(()=>{var e={5454:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[l,c,a]=r,i=0;if(l.some((t=>0!==e[t]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(a)var u=a(n)}for(t&&t(r);i<l.length;i++)s=l[i],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(u)},r=self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var l=n.O(void 0,[94],(()=>n(5704)));l=n.O(l),(wc=void 0===wc?{}:wc)["stock-filter"]=l})(); Save