PATH:
home
/
lab2454c
/
carbonbullion.net
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
build
this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["product-category"]=function(e){function t(t){for(var r,l,s=t[0],i=t[1],a=t[2],b=0,d=[];b<s.length;b++)l=s[b],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&d.push(o[l][0]),o[l]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);d.length;)d.shift()();return n.push.apply(n,a||[]),c()}function c(){for(var e,t=0;t<n.length;t++){for(var c=n[t],r=!0,s=1;s<c.length;s++){var i=c[s];0!==o[i]&&(r=!1)}r&&(n.splice(t--,1),e=l(l.s=c[0]))}return e}var r={},o={23:0},n=[];function l(t){if(r[t])return r[t].exports;var c=r[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,l),c.l=!0,c.exports}l.m=e,l.c=r,l.d=function(e,t,c){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(l.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(c,r,function(t){return e[t]}.bind(null,r));return c},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var s=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var a=0;a<s.length;a++)t(s[a]);var u=i;return n.push([376,0]),c()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t){e.exports=window.wp.compose},100:function(e,t,c){"use strict";c.d(t,"a",(function(){return y}));var r=c(6),o=c.n(r),n=c(0),l=c(1),s=c(3),i=c(114),a=c(524),u=c(4),b=c.n(u),d=c(10),g=c(21),m=c(34),p=c(523),h=c(14);const E=e=>{let{id:t,label:c,popoverContents:r,remove:o,screenReaderLabel:a,className:u=""}=e;const[g,m]=Object(n.useState)(!1),O=Object(d.useInstanceId)(E);if(a=a||c,!c)return null;c=Object(h.decodeEntities)(c);const w=b()("woocommerce-tag",u,{"has-remove":!!o}),j="woocommerce-tag__label-"+O,f=Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{className:"screen-reader-text"},a),Object(n.createElement)("span",{"aria-hidden":"true"},c));return Object(n.createElement)("span",{className:w},r?Object(n.createElement)(s.Button,{className:"woocommerce-tag__text",id:j,onClick:()=>m(!0)},f):Object(n.createElement)("span",{className:"woocommerce-tag__text",id:j},f),r&&g&&Object(n.createElement)(s.Popover,{onClose:()=>m(!1)},r),o&&Object(n.createElement)(s.Button,{className:"woocommerce-tag__remove",onClick:o(t),label:Object(l.sprintf)(// Translators: %s label. Object(l.__)("Remove %s","woocommerce"),c),"aria-describedby":j},Object(n.createElement)(i.a,{icon:p.a,size:20,className:"clear-icon"})))};var O=E;const w=e=>Object(n.createElement)(m.b,e),j=e=>{const{list:t,selected:c,renderItem:r,depth:l=0,onSelect:s,instanceId:i,isSingle:a,search:u}=e;return t?Object(n.createElement)(n.Fragment,null,t.map(t=>{const b=-1!==c.findIndex(e=>{let{id:c}=e;return c===t.id});return Object(n.createElement)(n.Fragment,{key:t.id},Object(n.createElement)("li",null,r({item:t,isSelected:b,onSelect:s,isSingle:a,search:u,depth:l,controlId:i})),Object(n.createElement)(j,o()({},e,{list:t.children,depth:l+1})))})):null},f=e=>{let{isLoading:t,isSingle:c,selected:r,messages:o,onChange:i,onRemove:a}=e;if(t||c||!r)return null;const u=r.length;return Object(n.createElement)("div",{className:"woocommerce-search-list__selected"},Object(n.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(n.createElement)("strong",null,o.selected(u)),u>0?Object(n.createElement)(s.Button,{isLink:!0,isDestructive:!0,onClick:()=>i([]),"aria-label":o.clear},Object(l.__)("Clear all","woocommerce")):null),u>0?Object(n.createElement)("ul",null,r.map((e,t)=>Object(n.createElement)("li",{key:t},Object(n.createElement)(O,{label:e.name,id:e.id,remove:a})))):null)},_=e=>{let{filteredList:t,search:c,onSelect:r,instanceId:o,...s}=e;const{messages:u,renderItem:b,selected:d,isSingle:g}=s,m=b||w;return 0===t.length?Object(n.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(n.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(n.createElement)(i.a,{icon:a.a})),Object(n.createElement)("span",{className:"woocommerce-search-list__not-found-text"},c?Object(l.sprintf)(u.noResults,c):u.noItems)):Object(n.createElement)("ul",{className:"woocommerce-search-list__list"},Object(n.createElement)(j,{list:t,selected:d,renderItem:m,onSelect:r,instanceId:o,isSingle:g,search:c}))},y=e=>{const{className:t="",isCompact:c,isHierarchical:r,isLoading:l,isSingle:i,list:a,messages:u=g.a,onChange:m,onSearch:p,selected:h,debouncedSpeak:E}=e,[O,w]=Object(n.useState)(""),j=Object(d.useInstanceId)(y),k=Object(n.useMemo)(()=>({...g.a,...u}),[u]),v=Object(n.useMemo)(()=>Object(g.c)(a,O,r),[a,O,r]);Object(n.useEffect)(()=>{E&&E(k.updated)},[E,k]),Object(n.useEffect)(()=>{"function"==typeof p&&p(O)},[O,p]);const x=Object(n.useCallback)(e=>()=>{i&&m([]);const t=h.findIndex(t=>{let{id:c}=t;return c===e});m([...h.slice(0,t),...h.slice(t+1)])},[i,h,m]),S=Object(n.useCallback)(e=>()=>{-1===h.findIndex(t=>{let{id:c}=t;return c===e.id})?m(i?[e]:[...h,e]):x(e.id)()},[i,x,m,h]);return Object(n.createElement)("div",{className:b()("woocommerce-search-list",t,{"is-compact":c})},Object(n.createElement)(f,o()({},e,{onRemove:x,messages:k})),Object(n.createElement)("div",{className:"woocommerce-search-list__search"},Object(n.createElement)(s.TextControl,{label:k.search,type:"search",value:O,onChange:e=>w(e)})),l?Object(n.createElement)("div",{className:"woocommerce-search-list__list is-loading"},Object(n.createElement)(s.Spinner,null)):Object(n.createElement)(_,o()({},e,{search:O,filteredList:v,messages:k,onSelect:S,instanceId:j})))};Object(s.withSpokenMessages)(y)},101:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(3);t.a=e=>{let{value:t,setAttributes:c}=e;return Object(r.createElement)(n.SelectControl,{label:Object(o.__)("Order products by","woocommerce"),value:t,options:[{label:Object(o.__)("Newness - newest first","woocommerce"),value:"date"},{label:Object(o.__)("Price - low to high","woocommerce"),value:"price_asc"},{label:Object(o.__)("Price - high to low","woocommerce"),value:"price_desc"},{label:Object(o.__)("Rating - highest first","woocommerce"),value:"rating"},{label:Object(o.__)("Sales - most first","woocommerce"),value:"popularity"},{label:Object(o.__)("Title - alphabetical","woocommerce"),value:"title"},{label:Object(o.__)("Menu Order","woocommerce"),value:"menu_order"}],onChange:e=>c({orderby:e})})}},11:function(e,t){e.exports=window.wp.primitives},13:function(e,t){e.exports=window.wp.blocks},137:function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(0);const o=Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 230 250",style:{width:"100%"}},Object(r.createElement)("title",null,"Grid Block Preview"),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:".779",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:".779",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:".779",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"221.798",fill:"#E1E3E6",rx:"3"}))},14:function(e,t){e.exports=window.wp.htmlEntities},15:function(e,t){e.exports=window.wp.apiFetch},16:function(e,t){e.exports=window.wp.url},2:function(e,t){e.exports=window.wc.wcSettings},21:function(e,t,c){"use strict";c.d(t,"a",(function(){return l})),c.d(t,"c",(function(){return i})),c.d(t,"d",(function(){return a})),c.d(t,"b",(function(){return u}));var r=c(0),o=c(7),n=c(1);const l={clear:Object(n.__)("Clear all selected items","woocommerce"),noItems:Object(n.__)("No items found.","woocommerce"), /* Translators: %s search term */ noResults:Object(n.__)("No results for %s","woocommerce"),search:Object(n.__)("Search for items","woocommerce"),selected:e=>Object(n.sprintf)( /* translators: Number of items selected from list. */ Object(n._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:Object(n.__)("Search results updated.","woocommerce")},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const c=Object(o.groupBy)(e,"parent"),r=Object(o.keyBy)(t,"id"),n=["0"],l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.parent)return e.name?[e.name]:[];const t=l(r[e.parent]);return[...t,e.name]},s=e=>e.map(e=>{const t=c[e.id];return n.push(""+e.id),{...e,breadcrumbs:l(r[e.parent]),children:t&&t.length?s(t):[]}}),i=s(c[0]||[]);return Object.entries(c).forEach(e=>{let[t,c]=e;n.includes(t)||i.push(...s(c||[]))}),i},i=(e,t,c)=>{if(!t)return c?s(e):e;const r=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),o=e.map(e=>!!r.test(e.name)&&e).filter(Boolean);return c?s(o,e):o},a=(e,t)=>{if(!t)return e;const c=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"ig");return e.split(c).map((e,c)=>0===c?e:Object(r.createElement)(r.Fragment,{key:c},Object(r.createElement)("strong",null,t),e))},u=e=>1===e.length?e.slice(0,1).toString():2===e.length?e.slice(0,1).toString()+" › "+e.slice(-1).toString():e.slice(0,1).toString()+" … "+e.slice(-1).toString()},22:function(e,t,c){"use strict";c.d(t,"o",(function(){return n})),c.d(t,"m",(function(){return l})),c.d(t,"l",(function(){return s})),c.d(t,"n",(function(){return i})),c.d(t,"j",(function(){return a})),c.d(t,"e",(function(){return u})),c.d(t,"f",(function(){return b})),c.d(t,"g",(function(){return d})),c.d(t,"k",(function(){return g})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return p})),c.d(t,"h",(function(){return h})),c.d(t,"a",(function(){return E})),c.d(t,"i",(function(){return O})),c.d(t,"b",(function(){return w}));var r,o=c(2);const n=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),l=n.pluginUrl+"images/",s=n.pluginUrl+"build/",i=n.buildPhase,a=null===(r=o.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,u=o.STORE_PAGES.checkout.id,b=o.STORE_PAGES.checkout.permalink,d=o.STORE_PAGES.privacy.permalink,g=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),m=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),p=o.STORE_PAGES.cart.permalink,h=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("shippingCountries",{})),E=Object(o.getSetting)("allowedCountries",{}),O=Object(o.getSetting)("shippingStates",{}),w=Object(o.getSetting)("allowedStates",{})},26:function(e,t,c){"use strict";c.d(t,"h",(function(){return a})),c.d(t,"e",(function(){return u})),c.d(t,"b",(function(){return b})),c.d(t,"i",(function(){return d})),c.d(t,"f",(function(){return g})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return p})),c.d(t,"g",(function(){return h})),c.d(t,"a",(function(){return E}));var r=c(16),o=c(15),n=c.n(o),l=c(7),s=c(2),i=c(22);const a=e=>{let{selected:t=[],search:c="",queryArgs:o={}}=e;const s=(e=>{let{selected:t=[],search:c="",queryArgs:o={}}=e;const n=i.o.productCount>100,l={per_page:n?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},s=[Object(r.addQueryArgs)("/wc/store/v1/products",{...l,...o})];return n&&t.length&&s.push(Object(r.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:t,per_page:0})),s})({selected:t,search:c,queryArgs:o});return Promise.all(s.map(e=>n()({path:e}))).then(e=>Object(l.uniqBy)(Object(l.flatten)(e),"id").map(e=>({...e,parent:0}))).catch(e=>{throw e})},u=e=>n()({path:"/wc/store/v1/products/"+e}),b=()=>n()({path:"wc/store/v1/products/attributes"}),d=e=>n()({path:`wc/store/v1/products/attributes/${e}/terms`}),g=e=>{let{selected:t=[],search:c}=e;const o=(e=>{let{selected:t=[],search:c}=e;const o=Object(s.getSetting)("limitTags",!1),n=[Object(r.addQueryArgs)("wc/store/v1/products/tags",{per_page:o?100:0,orderby:o?"count":"name",order:o?"desc":"asc",search:c})];return o&&t.length&&n.push(Object(r.addQueryArgs)("wc/store/v1/products/tags",{include:t})),n})({selected:t,search:c});return Promise.all(o.map(e=>n()({path:e}))).then(e=>Object(l.uniqBy)(Object(l.flatten)(e),"id"))},m=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products/categories",{per_page:0,...e})}),p=e=>n()({path:"wc/store/v1/products/categories/"+e}),h=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:e})}),E=(e,t)=>{if(!e.title.raw)return e.slug;const c=1===t.filter(t=>t.title.raw===e.title.raw).length;return e.title.raw+(c?"":" - "+e.slug)}},28:function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"b",(function(){return l}));var r=c(1),o=c(14);const n=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}},l=e=>{if(e.data&&"rest_invalid_param"===e.code){const t=Object.values(e.data.params);if(t[0])return t[0]}return null!=e&&e.message?Object(o.decodeEntities)(e.message):Object(r.__)("Something went wrong. Please contact us to get assistance.","woocommerce")}},3:function(e,t){e.exports=window.wp.components},32:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(33);t.a=e=>{let{error:t}=e;return Object(r.createElement)("div",{className:"wc-block-error-message"},(e=>{let{message:t,type:c}=e;return t?"general"===c?Object(r.createElement)("span",null,Object(o.__)("The following error was returned","woocommerce"),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(n.escapeHTML)(t))):"api"===c?Object(r.createElement)("span",null,Object(o.__)("The following error was returned from the API","woocommerce"),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(n.escapeHTML)(t))):t:Object(o.__)("An unknown error occurred which prevented the block from being updated.","woocommerce")})(t))}},33:function(e,t){e.exports=window.wp.escapeHtml},34:function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var r=c(6),o=c.n(r),n=c(0),l=c(21);const s=e=>{let{countLabel:t,className:c,depth:r=0,controlId:s="",item:i,isSelected:a,isSingle:u,onSelect:b,search:d="",...g}=e;const m=null!=t&&void 0!==i.count&&null!==i.count,p=[c,"woocommerce-search-list__item"];p.push("depth-"+r),u&&p.push("is-radio-button"),m&&p.push("has-count");const h=i.breadcrumbs&&i.breadcrumbs.length,E=g.name||"search-list-item-"+s,O=`${E}-${i.id}`;return Object(n.createElement)("label",{htmlFor:O,className:p.join(" ")},u?Object(n.createElement)("input",o()({type:"radio",id:O,name:E,value:i.value,onChange:b(i),checked:a,className:"woocommerce-search-list__item-input"},g)):Object(n.createElement)("input",o()({type:"checkbox",id:O,name:E,value:i.value,onChange:b(i),checked:a,className:"woocommerce-search-list__item-input"},g)),Object(n.createElement)("span",{className:"woocommerce-search-list__item-label"},h?Object(n.createElement)("span",{className:"woocommerce-search-list__item-prefix"},Object(l.b)(i.breadcrumbs)):null,Object(n.createElement)("span",{className:"woocommerce-search-list__item-name"},Object(l.d)(i.name,d))),!!m&&Object(n.createElement)("span",{className:"woocommerce-search-list__item-count"},t||i.count))};t.b=s},376:function(e,t,c){e.exports=c(503)},377:function(e,t){},5:function(e,t){e.exports=window.wp.blockEditor},503:function(e,t,c){"use strict";c.r(t);var r=c(0),o=c(1),n=c(13),l=c(7),s=c(114),i=c(526),a=(c(377),c(24)),u=c.n(a),b=c(5),d=c(53),g=c.n(d),m=c(3),p=c(63),h=c(64),E=c(58),O=c(101),w=c(84),j=c(137),f=c(2);const _=()=>Object(r.createElement)(m.Placeholder,{icon:Object(r.createElement)(s.a,{icon:i.a}),label:Object(o.__)("Products by Category","woocommerce"),className:"wc-block-products-grid wc-block-products-category"},Object(o.__)("No products were found that matched your selection.","woocommerce"));class y extends r.Component{constructor(){super(...arguments),u()(this,"state",{changedAttributes:{},isEditing:!1}),u()(this,"startEditing",()=>{this.setState({isEditing:!0,changedAttributes:{}})}),u()(this,"stopEditing",()=>{this.setState({isEditing:!1,changedAttributes:{}})}),u()(this,"setChangedAttributes",e=>{this.setState(t=>({changedAttributes:{...t.changedAttributes,...e}}))}),u()(this,"save",()=>{const{changedAttributes:e}=this.state,{setAttributes:t}=this.props;t(e),this.stopEditing()})}componentDidMount(){const{attributes:e}=this.props;e.categories.length||this.setState({isEditing:!0})}getInspectorControls(){var e=this;const{attributes:t,setAttributes:c}=this.props,{isEditing:n}=this.state,{columns:l,catOperator:s,contentVisibility:i,orderby:a,rows:u,alignButtons:d,stockStatus:g}=t;return Object(r.createElement)(b.InspectorControls,{key:"inspector"},Object(r.createElement)(m.PanelBody,{title:Object(o.__)("Product Category","woocommerce"),initialOpen:!t.categories.length&&!n},Object(r.createElement)(E.a,{selected:t.categories,onChange:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const r=t.map(e=>{let{id:t}=e;return t}),o={categories:r};c(o),e.setChangedAttributes(o)},operator:s,onOperatorChange:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";const r={catOperator:t};c(r),e.setChangedAttributes(r)},isCompact:!0})),Object(r.createElement)(m.PanelBody,{title:Object(o.__)("Layout","woocommerce"),initialOpen:!0},Object(r.createElement)(h.a,{columns:l,rows:u,alignButtons:d,setAttributes:c,minColumns:Object(f.getSetting)("min_columns",1),maxColumns:Object(f.getSetting)("max_columns",6),minRows:Object(f.getSetting)("min_rows",1),maxRows:Object(f.getSetting)("max_rows",6)})),Object(r.createElement)(m.PanelBody,{title:Object(o.__)("Content","woocommerce"),initialOpen:!0},Object(r.createElement)(p.a,{settings:i,onChange:e=>c({contentVisibility:e})})),Object(r.createElement)(m.PanelBody,{title:Object(o.__)("Order By","woocommerce"),initialOpen:!1},Object(r.createElement)(O.a,{setAttributes:c,value:a})),Object(r.createElement)(m.PanelBody,{title:Object(o.__)("Filter by stock status","woocommerce"),initialOpen:!1},Object(r.createElement)(w.a,{setAttributes:c,value:g})))}renderEditMode(){var e=this;const{attributes:t,debouncedSpeak:c}=this.props,{changedAttributes:n}=this.state,l={...t,...n};return Object(r.createElement)(m.Placeholder,{icon:Object(r.createElement)(s.a,{icon:i.a}),label:Object(o.__)("Products by Category","woocommerce"),className:"wc-block-products-grid wc-block-products-category"},Object(o.__)("Display a grid of products from your selected categories.","woocommerce"),Object(r.createElement)("div",{className:"wc-block-products-category__selection"},Object(r.createElement)(E.a,{selected:l.categories,onChange:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const c=t.map(e=>{let{id:t}=e;return t});e.setChangedAttributes({categories:c})},operator:l.catOperator,onOperatorChange:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return e.setChangedAttributes({catOperator:t})}}),Object(r.createElement)(m.Button,{isPrimary:!0,onClick:()=>{this.save(),c(Object(o.__)("Showing Products by Category block preview.","woocommerce"))}},Object(o.__)("Done","woocommerce")),Object(r.createElement)(m.Button,{className:"wc-block-products-category__cancel-button",isTertiary:!0,onClick:()=>{this.stopEditing(),c(Object(o.__)("Showing Products by Category block preview.","woocommerce"))}},Object(o.__)("Cancel","woocommerce"))))}renderViewMode(){const{attributes:e,name:t}=this.props,c=e.categories.length;return Object(r.createElement)(m.Disabled,null,c?Object(r.createElement)(g.a,{block:t,attributes:e,EmptyResponsePlaceholder:_}):Object(o.__)("Select at least one category to display its products.","woocommerce"))}render(){const{isEditing:e}=this.state,{attributes:t}=this.props;return t.isPreview?j.a:Object(r.createElement)(r.Fragment,null,Object(r.createElement)(b.BlockControls,null,Object(r.createElement)(m.ToolbarGroup,{controls:[{icon:"edit",title:Object(o.__)("Edit selected categories","woocommerce"),onClick:()=>e?this.stopEditing():this.startEditing(),isActive:e}]})),this.getInspectorControls(),e?this.renderEditMode():this.renderViewMode())}}var k=Object(m.withSpokenMessages)(y),v=c(74);Object(n.registerBlockType)("woocommerce/product-category",{title:Object(o.__)("Products by Category","woocommerce"),icon:{src:Object(r.createElement)(s.a,{icon:i.a,className:"wc-block-editor-components-block-icon"})},category:"woocommerce",keywords:[Object(o.__)("WooCommerce","woocommerce")],description:Object(o.__)("Display a grid of products from your selected categories.","woocommerce"),supports:{align:["wide","full"],html:!1},example:{attributes:{isPreview:!0}},attributes:{...v.a,editMode:{type:"boolean",default:!0},orderby:{type:"string",default:"date"}},transforms:{from:[{type:"block",blocks:Object(l.without)(v.b,"woocommerce/product-category"),transform:e=>Object(n.createBlock)("woocommerce/product-category",{...e,editMode:!1})}]},edit:e=>Object(r.createElement)(k,e),save:()=>null})},53:function(e,t){e.exports=window.wp.serverSideRender},58:function(e,t,c){"use strict";var r=c(6),o=c.n(r),n=c(0),l=c(1),s=c(34),i=c(100),a=c(3),u=c(10),b=c(26),d=c(28),g=Object(u.createHigherOrderComponent)(e=>class extends n.Component{constructor(){super(...arguments),this.state={error:null,loading:!1,categories:[]},this.loadCategories=this.loadCategories.bind(this)}componentDidMount(){this.loadCategories()}loadCategories(){this.setState({loading:!0}),Object(b.c)().then(e=>{this.setState({categories:e,loading:!1,error:null})}).catch(async e=>{const t=await Object(d.a)(e);this.setState({categories:[],loading:!1,error:t})})}render(){const{error:t,loading:c,categories:r}=this.state;return Object(n.createElement)(e,o()({},this.props,{error:t,isLoading:c,categories:r}))}},"withCategories"),m=c(32),p=c(4),h=c.n(p);c(92);const E=e=>{let{categories:t,error:c,isLoading:r,onChange:u,onOperatorChange:b,operator:d,selected:g,isCompact:p,isSingle:E,showReviewCount:O}=e;const w={clear:Object(l.__)("Clear all product categories","woocommerce"),list:Object(l.__)("Product Categories","woocommerce"),noItems:Object(l.__)("Your store doesn't have any product categories.","woocommerce"),search:Object(l.__)("Search for product categories","woocommerce"),selected:e=>Object(l.sprintf)( /* translators: %d is the count of selected categories. */ Object(l._n)("%d category selected","%d categories selected",e,"woocommerce"),e),updated:Object(l.__)("Category search results updated.","woocommerce")};return c?Object(n.createElement)(m.a,{error:c}):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.a,{className:"woocommerce-product-categories",list:t,isLoading:r,selected:g.map(e=>t.find(t=>t.id===e)).filter(Boolean),onChange:u,renderItem:e=>{const{item:t,search:c,depth:r=0}=e,i=t.breadcrumbs.length?`${t.breadcrumbs.join(", ")}, ${t.name}`:t.name,a=O?Object(l.sprintf)( /* translators: %1$s is the item name, %2$d is the count of reviews for the item. */ Object(l._n)("%1$s, has %2$d review","%1$s, has %2$d reviews",t.review_count,"woocommerce"),i,t.review_count):Object(l.sprintf)( /* translators: %1$s is the item name, %2$d is the count of products for the item. */ Object(l._n)("%1$s, has %2$d product","%1$s, has %2$d products",t.count,"woocommerce"),i,t.count),u=O?Object(l.sprintf)( /* translators: %d is the count of reviews. */ Object(l._n)("%d review","%d reviews",t.review_count,"woocommerce"),t.review_count):Object(l.sprintf)( /* translators: %d is the count of products. */ Object(l._n)("%d product","%d products",t.count,"woocommerce"),t.count);return Object(n.createElement)(s.a,o()({className:h()("woocommerce-product-categories__item","has-count",{"is-searching":c.length>0,"is-skip-level":0===r&&0!==t.parent})},e,{countLabel:u,"aria-label":a}))},messages:w,isCompact:p,isHierarchical:!0,isSingle:E}),!!b&&Object(n.createElement)("div",{hidden:g.length<2},Object(n.createElement)(a.SelectControl,{className:"woocommerce-product-categories__operator",label:Object(l.__)("Display products matching","woocommerce"),help:Object(l.__)("Pick at least two categories to use this setting.","woocommerce"),value:d,onChange:b,options:[{label:Object(l.__)("Any selected categories","woocommerce"),value:"any"},{label:Object(l.__)("All selected categories","woocommerce"),value:"all"}]})))};E.defaultProps={operator:"any",isCompact:!1,isSingle:!1},t.a=g(E)},63:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(3);t.a=e=>{let{onChange:t,settings:c}=e;const{image:l,button:s,price:i,rating:a,title:u}=c,b=!1!==l;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.ToggleControl,{label:Object(o.__)("Product image","woocommerce"),help:b?Object(o.__)("Product image is visible.","woocommerce"):Object(o.__)("Product image is hidden.","woocommerce"),checked:b,onChange:()=>t({...c,image:!b})}),Object(r.createElement)(n.ToggleControl,{label:Object(o.__)("Product title","woocommerce"),help:u?Object(o.__)("Product title is visible.","woocommerce"):Object(o.__)("Product title is hidden.","woocommerce"),checked:u,onChange:()=>t({...c,title:!u})}),Object(r.createElement)(n.ToggleControl,{label:Object(o.__)("Product price","woocommerce"),help:i?Object(o.__)("Product price is visible.","woocommerce"):Object(o.__)("Product price is hidden.","woocommerce"),checked:i,onChange:()=>t({...c,price:!i})}),Object(r.createElement)(n.ToggleControl,{label:Object(o.__)("Product rating","woocommerce"),help:a?Object(o.__)("Product rating is visible.","woocommerce"):Object(o.__)("Product rating is hidden.","woocommerce"),checked:a,onChange:()=>t({...c,rating:!a})}),Object(r.createElement)(n.ToggleControl,{label:Object(o.__)("Add to Cart button","woocommerce"),help:s?Object(o.__)("Add to Cart button is visible.","woocommerce"):Object(o.__)("Add to Cart button is hidden.","woocommerce"),checked:s,onChange:()=>t({...c,button:!s})}))}},64:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(7),l=c(3);t.a=e=>{let{columns:t,rows:c,setAttributes:s,alignButtons:i,minColumns:a=1,maxColumns:u=6,minRows:b=1,maxRows:d=6}=e;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(l.RangeControl,{label:Object(o.__)("Columns","woocommerce"),value:t,onChange:e=>{const t=Object(n.clamp)(e,a,u);s({columns:Number.isNaN(t)?"":t})},min:a,max:u}),Object(r.createElement)(l.RangeControl,{label:Object(o.__)("Rows","woocommerce"),value:c,onChange:e=>{const t=Object(n.clamp)(e,b,d);s({rows:Number.isNaN(t)?"":t})},min:b,max:d}),Object(r.createElement)(l.ToggleControl,{label:Object(o.__)("Align Last Block","woocommerce"),help:i?Object(o.__)("The last inner block will be aligned vertically.","woocommerce"):Object(o.__)("The last inner block will follow other content.","woocommerce"),checked:i,onChange:()=>s({alignButtons:!i})}))}},7:function(e,t){e.exports=window.lodash},74:function(e,t,c){"use strict";c.d(t,"b",(function(){return o}));var r=c(2);const o=["woocommerce/product-best-sellers","woocommerce/product-category","woocommerce/product-new","woocommerce/product-on-sale","woocommerce/product-top-rated"];t.a={columns:{type:"number",default:Object(r.getSetting)("default_columns",3)},rows:{type:"number",default:Object(r.getSetting)("default_rows",3)},alignButtons:{type:"boolean",default:!1},categories:{type:"array",default:[]},catOperator:{type:"string",default:"any"},contentVisibility:{type:"object",default:{image:!0,title:!0,price:!0,rating:!0,button:!0}},isPreview:{type:"boolean",default:!1},stockStatus:{type:"array",default:Object.keys(Object(r.getSetting)("stockStatusOptions",[]))}}},84:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(2),l=c(3);const s=Object(n.getSetting)("hideOutOfStockItems",!1),i=Object(n.getSetting)("stockStatusOptions",{});t.a=e=>{let{value:t,setAttributes:c}=e;const{outofstock:n,...a}=i,u=s?a:i,b=Object.entries(u).map(e=>{let[t,c]=e;return{value:t,label:c}}).filter(e=>!!e.label),[d,g]=Object(r.useState)(t);Object(r.useEffect)(()=>{c({stockStatus:["",...d]})},[d,c]);const m=Object(r.useCallback)(e=>{const t=d.includes(e),c=d.filter(t=>t!==e);t||(c.push(e),c.sort()),g(c)},[d]);return Object(r.createElement)(r.Fragment,null,b.map(e=>{const t=d.includes(e.value)? /* translators: %s stock status. */ Object(o.__)('Stock status "%s" visible.',"woocommerce"): /* translators: %s stock status. */ Object(o.__)('Stock status "%s" hidden.',"woocommerce");return Object(r.createElement)(l.ToggleControl,{label:e.label,key:e.value,help:Object(o.sprintf)(t,e.label),checked:d.includes(e.value),onChange:()=>m(e.value)})}))}},92:function(e,t){}});
[+]
..
[-] checkout.js
[edit]
[-] product-on-sale.js
[edit]
[-] single-product-frontend.asset.php
[edit]
[-] all-products.asset.php
[edit]
[-] product-sku-frontend.js
[edit]
[-] wc-payment-method-cod.asset.php
[edit]
[-] product-image.js
[edit]
[-] product-categories.asset.php
[edit]
[-] mini-cart-component-frontend.asset.php
[edit]
[-] wc-blocks-google-analytics.js
[edit]
[-] active-filters.js
[edit]
[-] product-new.asset.php
[edit]
[-] wc-blocks-style.css
[edit]
[-] wc-payment-method-paypal.js
[edit]
[-] wc-blocks-vendors-style.css
[edit]
[-] reviews-by-product.asset.php
[edit]
[-] wc-payment-method-bacs.js
[edit]
[-] wc-blocks.js
[edit]
[-] wc-blocks-vendors-style-rtl.css
[edit]
[-] active-filters.asset.php
[edit]
[-] product-on-sale.asset.php
[edit]
[-] product-rating-frontend.js
[edit]
[-] wc-blocks.asset.php
[edit]
[-] mini-cart-frontend.asset.php
[edit]
[-] active-filters-frontend.asset.php
[edit]
[-] featured-category.js
[edit]
[-] products-by-attribute.asset.php
[edit]
[-] cart.asset.php
[edit]
[+]
product-tag
[-] wc-blocks-registry.js
[edit]
[-] wc-settings.js
[edit]
[-] all-products.js
[edit]
[+]
featured-product
[-] price-format.js
[edit]
[-] checkout-frontend.js
[edit]
[-] blocks-checkout.asset.php
[edit]
[-] wc-blocks-vendors.js
[edit]
[-] featured-product.js
[edit]
[-] product-price-frontend.js
[edit]
[-] price-filter.js
[edit]
[-] product-search.asset.php
[edit]
[-] wc-payment-method-cheque.js
[edit]
[-] legacy-template.asset.php
[edit]
[+]
checkout
[-] product-category.js
[edit]
[-] product-button--product-category-list--product-image--product-price--product-rating--product-sale-b--e17c7c01.js
[edit]
[+]
products-by-attribute
[-] products-by-attribute.js
[edit]
[-] attribute-filter-frontend.asset.php
[edit]
[-] product-image-frontend.js
[edit]
[+]
mini-cart-contents-block
[-] product-summary-frontend.js
[edit]
[-] stock-filter-frontend.js
[edit]
[-] product-button.js
[edit]
[-] checkout-frontend.asset.php
[edit]
[-] reviews-by-category.js
[edit]
[-] attribute-filter.asset.php
[edit]
[-] wc-blocks-registry.asset.php
[edit]
[-] price-filter-frontend.asset.php
[edit]
[-] wc-payment-method-cheque.asset.php
[edit]
[-] handpicked-products.asset.php
[edit]
[-] attribute-filter-frontend.js
[edit]
[-] all-reviews.js
[edit]
[-] checkout.asset.php
[edit]
[-] product-add-to-cart--product-button--product-image--product-title.js
[edit]
[-] product-sale-badge.js
[edit]
[-] wc-settings.asset.php
[edit]
[-] product-search.js
[edit]
[-] product-button-frontend.js
[edit]
[-] wc-payment-method-bacs.asset.php
[edit]
[-] reviews-frontend.js
[edit]
[-] active-filters-frontend.js
[edit]
[-] product-add-to-cart-frontend.js
[edit]
[-] product-rating.js
[edit]
[+]
vendors--mini-cart-contents-block
[-] product-sku.js
[edit]
[-] price-filter-frontend.js
[edit]
[+]
checkout-blocks
[-] mini-cart-frontend.js
[edit]
[-] wc-blocks-middleware.asset.php
[edit]
[-] handpicked-products.js
[edit]
[-] attribute-filter.js
[edit]
[-] wc-payment-method-cod.js
[edit]
[-] product-add-to-cart--product-button.js
[edit]
[-] featured-category.asset.php
[edit]
[-] product-price.js
[edit]
[-] product-tag-list.js
[edit]
[-] product-add-to-cart--product-button--product-category-list--product-image--product-price--product-r--a0326d00.js
[edit]
[-] wc-blocks-middleware.js
[edit]
[-] all-products-frontend.js
[edit]
[-] product-new.js
[edit]
[-] wc-blocks-google-analytics.asset.php
[edit]
[-] all-reviews.asset.php
[edit]
[-] product-top-rated.js
[edit]
[-] product-summary.js
[edit]
[-] mini-cart.js
[edit]
[-] product-category-list.js
[edit]
[-] wc-blocks-data.js
[edit]
[-] single-product-frontend.js
[edit]
[-] product-tag.js
[edit]
[-] all-products-frontend.asset.php
[edit]
[-] product-best-sellers.asset.php
[edit]
[-] product-title-frontend.js
[edit]
[-] featured-product.asset.php
[edit]
[-] cart-frontend.asset.php
[edit]
[-] wc-blocks-editor-style-rtl.css
[edit]
[-] single-product.js
[edit]
[-] vendors--product-add-to-cart-frontend.js
[edit]
[-] cart-frontend.js
[edit]
[-] reviews-by-product.js
[edit]
[+]
cart-blocks
[-] product-category-list-frontend.js
[edit]
[+]
vendors--cart-blocks
[-] wc-blocks-shared-hocs.js
[edit]
[-] wc-blocks-data.asset.php
[edit]
[-] product-title.js
[edit]
[-] reviews-frontend.asset.php
[edit]
[-] cart.js
[edit]
[-] wc-blocks-editor-style.css
[edit]
[+]
handpicked-products
[-] mini-cart-contents.js
[edit]
[-] product-top-rated.asset.php
[edit]
[-] price-format.asset.php
[edit]
[-] mini-cart-component-frontend.js
[edit]
[-] wc-blocks-style-rtl.css
[edit]
[-] mini-cart.asset.php
[edit]
[-] stock-filter.asset.php
[edit]
[-] stock-filter-frontend.asset.php
[edit]
[-] product-tag-list-frontend.js
[edit]
[-] product-category.asset.php
[edit]
[-] product-best-sellers.js
[edit]
[-] product-stock-indicator.js
[edit]
[-] product-stock-indicator-frontend.js
[edit]
[-] product-categories.js
[edit]
[-] product-tag.asset.php
[edit]
[-] mini-cart-contents.asset.php
[edit]
[-] stock-filter.js
[edit]
[+]
featured-category
[-] wc-payment-method-paypal.asset.php
[edit]
[-] legacy-template.js
[edit]
[-] wc-blocks-shared-context.js
[edit]
[-] reviews-by-category.asset.php
[edit]
[-] price-filter.asset.php
[edit]
[-] single-product.asset.php
[edit]
[-] blocks-checkout.js
[edit]
[-] product-add-to-cart.js
[edit]
[-] wc-blocks-shared-hocs.asset.php
[edit]
[-] wc-blocks-shared-context.asset.php
[edit]
[-] product-sale-badge-frontend.js
[edit]