this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["all-products"]=function(e){function t(t){for(var o,a,s=t[0],l=t[1],i=t[2],d=0,b=[];dObject(r.sprintf)( /* translators: Number of items selected from list. */ Object(r._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:Object(r.__)("Search results updated.","woocommerce")},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const c=e.reduce((e,t)=>{const c=t.parent||0;return e[c]||(e[c]=[]),e[c].push(t),e},{}),o=Object(n.a)(t,"id"),r=["0"],a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.parent)return e.name?[e.name]:[];const t=a(o[e.parent]);return[...t,e.name]},s=e=>e.map(e=>{const t=c[e.id];return r.push(""+e.id),{...e,breadcrumbs:a(o[e.parent]),children:t&&t.length?s(t):[]}}),l=s(c[0]||[]);return Object.entries(c).forEach(e=>{let[t,c]=e;r.includes(t)||l.push(...s(c||[]))}),l},l=(e,t,c)=>{if(!t)return c?s(e):e;const o=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),r=e.map(e=>!!o.test(e.name)&&e).filter(Boolean);return c?s(r,e):r},i=(e,t)=>{if(!t)return e;const c=new RegExp(`(${t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"ig");return e.split(c).map((e,t)=>c.test(e)?Object(o.createElement)("strong",{key:t},e):Object(o.createElement)(o.Fragment,{key: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()},function(e,t,c){"use strict";c.d(t,"o",(function(){return n})),c.d(t,"m",(function(){return a})),c.d(t,"l",(function(){return s})),c.d(t,"n",(function(){return l})),c.d(t,"j",(function(){return i})),c.d(t,"e",(function(){return u})),c.d(t,"g",(function(){return d})),c.d(t,"k",(function(){return b})),c.d(t,"c",(function(){return p})),c.d(t,"d",(function(){return m})),c.d(t,"h",(function(){return g})),c.d(t,"a",(function(){return O})),c.d(t,"i",(function(){return h})),c.d(t,"b",(function(){return j})),c.d(t,"f",(function(){return _}));var o,r=c(3);const n=Object(r.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),a=n.pluginUrl+"images/",s=n.pluginUrl+"build/",l=n.buildPhase,i=null===(o=r.STORE_PAGES.shop)||void 0===o?void 0:o.permalink,u=r.STORE_PAGES.checkout.id,d=(r.STORE_PAGES.checkout.permalink,r.STORE_PAGES.privacy.permalink),b=(r.STORE_PAGES.privacy.title,r.STORE_PAGES.terms.permalink),p=(r.STORE_PAGES.terms.title,r.STORE_PAGES.cart.id),m=r.STORE_PAGES.cart.permalink,g=(r.STORE_PAGES.myaccount.permalink?r.STORE_PAGES.myaccount.permalink:Object(r.getSetting)("wpLoginUrl","/wp-login.php"),Object(r.getSetting)("shippingCountries",{})),O=Object(r.getSetting)("allowedCountries",{}),h=Object(r.getSetting)("shippingStates",{}),j=Object(r.getSetting)("allowedStates",{}),_=Object(r.getSetting)("localPickupEnabled",!1)},,,function(e,t){e.exports=window.wc.priceFormat},,function(e,t,c){"use strict";c.d(t,"h",(function(){return i})),c.d(t,"e",(function(){return u})),c.d(t,"b",(function(){return d})),c.d(t,"i",(function(){return b})),c.d(t,"f",(function(){return p})),c.d(t,"c",(function(){return m})),c.d(t,"d",(function(){return g})),c.d(t,"g",(function(){return O})),c.d(t,"a",(function(){return h}));var o=c(15),r=c(16),n=c.n(r),a=c(3),s=c(18);const l=(e,t)=>{const c=new Map;return e.filter(e=>{const o=t(e);return!c.has(o)&&(c.set(o,e),!0)})},i=e=>{let{selected:t=[],search:c="",queryArgs:r={}}=e;const a=(e=>{let{selected:t=[],search:c="",queryArgs:r={}}=e;const n=s.o.productCount>100,a={per_page:n?100:0,catalog_visibility:"any",search:c,orderby:"title",order:"asc"},l=[Object(o.addQueryArgs)("/wc/store/v1/products",{...a,...r})];return n&&t.length&&l.push(Object(o.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:t,per_page:0})),l})({selected:t,search:c,queryArgs:r});return Promise.all(a.map(e=>n()({path:e}))).then(e=>{const t=e.flat();return l(t,e=>e.id).map(e=>({...e,parent:0}))}).catch(e=>{throw e})},u=e=>n()({path:"/wc/store/v1/products/"+e}),d=()=>n()({path:"wc/store/v1/products/attributes"}),b=e=>n()({path:`wc/store/v1/products/attributes/${e}/terms`}),p=e=>{let{selected:t=[],search:c}=e;const r=(e=>{let{selected:t=[],search:c}=e;const r=Object(a.getSetting)("limitTags",!1),n=[Object(o.addQueryArgs)("wc/store/v1/products/tags",{per_page:r?100:0,orderby:r?"count":"name",order:r?"desc":"asc",search:c})];return r&&t.length&&n.push(Object(o.addQueryArgs)("wc/store/v1/products/tags",{include:t})),n})({selected:t,search:c});return Promise.all(r.map(e=>n()({path:e}))).then(e=>{const t=e.flat();return l(t,e=>e.id)})},m=e=>n()({path:Object(o.addQueryArgs)("wc/store/v1/products/categories",{per_page:0,...e})}),g=e=>n()({path:"wc/store/v1/products/categories/"+e}),O=e=>n()({path:Object(o.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:e})}),h=(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)}},function(e,t){e.exports=window.wp.isShallowEqual},function(e,t){e.exports=window.wc.wcBlocksSharedContext},function(e,t){e.exports=window.React},,function(e,t,c){"use strict";c.d(t,"b",(function(){return o})),c.d(t,"c",(function(){return r})),c.d(t,"a",(function(){return n}));const o=e=>!(e=>null===e)(e)&&e instanceof Object&&e.constructor===Object;function r(e,t){return o(e)&&t in e}const n=e=>0===Object.keys(e).length},function(e,t){e.exports=window.lodash},function(e,t,c){"use strict";var o=c(0),r=c(4),n=c.n(r);t.a=e=>{let t,{label:c,screenReaderLabel:r,wrapperElement:a,wrapperProps:s={}}=e;const l=null!=c,i=null!=r;return!l&&i?(t=a||"span",s={...s,className:n()(s.className,"screen-reader-text")},Object(o.createElement)(t,s,r)):(t=a||o.Fragment,l&&i&&c!==r?Object(o.createElement)(t,s,Object(o.createElement)("span",{"aria-hidden":"true"},c),Object(o.createElement)("span",{className:"screen-reader-text"},r)):Object(o.createElement)(t,s,c))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=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"}}},,,,function(e,t){e.exports=window.wp.escapeHtml},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(35);t.a=e=>{let{error:t}=e;return Object(o.createElement)("div",{className:"wc-block-error-message"},(e=>{let{message:t,type:c}=e;return t?"general"===c?Object(o.createElement)("span",null,Object(r.__)("The following error was returned","woocommerce"),Object(o.createElement)("br",null),Object(o.createElement)("code",null,Object(n.escapeHTML)(t))):"api"===c?Object(o.createElement)("span",null,Object(r.__)("The following error was returned from the API","woocommerce"),Object(o.createElement)("br",null),Object(o.createElement)("code",null,Object(n.escapeHTML)(t))):t:Object(r.__)("An error has prevented the block from being updated.","woocommerce")})(t))}},function(e,t){e.exports=window.wp.deprecated},function(e,t,c){"use strict";c.d(t,"a",(function(){return m}));var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(2);function i(e,t,c){const o=new Set(t.map(e=>e[c]));return e.filter(e=>!o.has(e[c]))}var u=c(14),d=c(17);const b=e=>{let{label:t}=e;return Object(n.createElement)("span",{className:"woocommerce-search-list__item-count"},t)},p=e=>{const{item:t,search:c}=e,o=t.breadcrumbs&&t.breadcrumbs.length;return Object(n.createElement)("span",{className:"woocommerce-search-list__item-label"},o?Object(n.createElement)("span",{className:"woocommerce-search-list__item-prefix"},Object(d.b)(t.breadcrumbs)):null,Object(n.createElement)("span",{className:"woocommerce-search-list__item-name"},Object(d.d)(Object(u.decodeEntities)(t.name),c)))},m=e=>{var t,c;let{countLabel:o,className:a,depth:u=0,controlId:m="",item:g,isSelected:O,isSingle:h,onSelect:j,search:_="",selected:E,useExpandedPanelId:w,...f}=e;const[k,v]=w,y=null!=o&&void 0!==g.count&&null!==g.count,S=!(null===(t=g.breadcrumbs)||void 0===t||!t.length),C=!(null===(c=g.children)||void 0===c||!c.length),x=k===g.id,N=s()(["woocommerce-search-list__item","depth-"+u,a],{"has-breadcrumbs":S,"has-children":C,"has-count":y,"is-expanded":x,"is-radio-button":h}),P=f.name||"search-list-item-"+m,T=`${P}-${g.id}`,I=Object(n.useCallback)(()=>{v(x?-1:Number(g.id))},[x,g.id,v]);return C?Object(n.createElement)("div",{className:N,onClick:I,onKeyDown:e=>"Enter"===e.key||" "===e.key?I():null,role:"treeitem",tabIndex:0},h?Object(n.createElement)(n.Fragment,null,Object(n.createElement)("input",r()({type:"radio",id:T,name:P,value:g.value,onChange:j(g),onClick:e=>e.stopPropagation(),checked:O,className:"woocommerce-search-list__item-input"},f)),Object(n.createElement)(p,{item:g,search:_}),y?Object(n.createElement)(b,{label:o||g.count}):null):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(l.CheckboxControl,r()({className:"woocommerce-search-list__item-input",checked:O},!O&&g.children.some(e=>E.find(t=>t.id===e.id))?{indeterminate:!0}:{},{label:Object(d.d)(g.name,_),onChange:()=>{O?j(i(E,g.children,"id"))():j(function(e,t,c){const o=i(t,e,"id");return[...e,...o]}(E,g.children))()},onClick:e=>e.stopPropagation()})),y?Object(n.createElement)(b,{label:o||g.count}):null)):Object(n.createElement)("label",{htmlFor:T,className:N},h?Object(n.createElement)("input",r()({type:"radio",id:T,name:P,value:g.value,onChange:j(g),checked:O,className:"woocommerce-search-list__item-input"},f)):Object(n.createElement)("input",r()({type:"checkbox",id:T,name:P,value:g.value,onChange:j(g),checked:O,className:"woocommerce-search-list__item-input"},f)),Object(n.createElement)(p,{item:g,search:_}),y?Object(n.createElement)(b,{label:o||g.count}):null)};t.b=m},function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(140),s=c(4),l=c.n(s);c(147);const i=e=>({thousandSeparator:null==e?void 0:e.thousandSeparator,decimalSeparator:null==e?void 0:e.decimalSeparator,fixedDecimalScale:!0,prefix:null==e?void 0:e.prefix,suffix:null==e?void 0:e.suffix,isNumericString:!0});t.a=e=>{var t;let{className:c,value:o,currency:s,onValueChange:u,displayType:d="text",...b}=e;const p="string"==typeof o?parseInt(o,10):o;if(!Number.isFinite(p))return null;const m=p/10**s.minorUnit;if(!Number.isFinite(m))return null;const g=l()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",c),O=null!==(t=b.decimalScale)&&void 0!==t?t:null==s?void 0:s.minorUnit,h={...b,...i(s),decimalScale:O,value:void 0,currency:void 0,onValueChange:void 0},j=u?e=>{const t=+e.value*10**s.minorUnit;u(t)}:()=>{};return Object(n.createElement)(a.a,r()({className:g,displayType:d},h,{value:m,onValueChange:j}))}},function(e,t){e.exports=window.wc.wcBlocksRegistry},,function(e,t,c){"use strict";c.d(t,"c",(function(){return l})),c.d(t,"f",(function(){return i})),c.d(t,"a",(function(){return u})),c.d(t,"b",(function(){return d})),c.d(t,"g",(function(){return b})),c.d(t,"e",(function(){return m})),c.d(t,"d",(function(){return g}));var o=c(3),r=c(245),n=c(81),a=c(109),s=c(58);const l="/wp-admin/edit.php?post_type=product&page=product_attributes",i="core/query",u=["attributes","presets","productSelector","onSale","stockStatus","wooInherit"],d=["taxQuery","search",...u],b=Object(o.getSetting)("stockStatusOptions",[]),p=Object(o.getSetting)("hideOutOfStockItems",!1),m={allowedControls:d,displayLayout:{type:"flex",columns:3},query:{perPage:9,pages:0,offset:0,postType:"product",order:"asc",orderBy:"title",author:"",search:"",exclude:[],sticky:"",inherit:!1,__woocommerceAttributes:[],__woocommerceStockStatus:p?Object.keys(Object(r.a)(b,"outofstock")):Object.keys(b)}},g=[["core/post-template",{__woocommerceNamespace:a.b,className:"products-block-post-template"},[["woocommerce/product-image",{imageSizing:s.a.THUMBNAIL}],["core/post-title",{textAlign:"center",level:3,fontSize:"medium",style:{spacing:{margin:{bottom:"0.75rem",top:"0"}}},isLink:!0,__woocommerceNamespace:n.b}],["woocommerce/product-price",{textAlign:"center",fontSize:"small"}],["woocommerce/product-button",{textAlign:"center",fontSize:"small"}]]],["core/query-pagination",{layout:{type:"flex",justifyContent:"center"}}],["core/query-no-results"]]},,function(e,t){e.exports=window.wp.a11y},function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(0),r=c(24),n=c.n(r);function a(e){const t=Object(o.useRef)(e);return n()(e,t.current)||(t.current=e),t.current}},function(e,t){e.exports=window.wp.hooks},function(e,t,c){"use strict";c.d(t,"a",(function(){return w}));var o=c(121),r=c.n(o),n=c(0),a=c(9),s=c(7),l=c(14),i=c(263),u=c(88);var d=c(262);const b=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||Object(s.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},p=e=>{(null!=e&&e.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&Object(s.dispatch)(a.CART_STORE_KEY).invalidateResolutionForStore()},m=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},g=()=>{Object(n.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),(null===(e=window.wcBlocksStoreCartListeners)||void 0===e?void 0:e.count)>0)return void window.wcBlocksStoreCartListeners.count++;var e;document.body.addEventListener("wc-blocks_added_to_cart",b),document.body.addEventListener("wc-blocks_removed_from_cart",b),window.addEventListener("pageshow",p);const t=Object(d.a)("added_to_cart","wc-blocks_added_to_cart"),c=Object(d.a)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",b),document.body.removeEventListener("wc-blocks_removed_from_cart",b),window.removeEventListener("pageshow",p),t(),c()}})(),m),[])},O={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},h={...O,email:""},j={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:a.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},_=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,c]=e;return[t,Object(l.decodeEntities)(c)]})),E={cartCoupons:a.EMPTY_CART_COUPONS,cartItems:a.EMPTY_CART_ITEMS,cartFees:a.EMPTY_CART_FEES,cartItemsCount:0,cartItemsWeight:0,crossSellsProducts:a.EMPTY_CART_CROSS_SELLS,cartNeedsPayment:!0,cartNeedsShipping:!0,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:j,cartIsLoading:!0,cartErrors:a.EMPTY_CART_ERRORS,billingAddress:h,shippingAddress:O,shippingRates:a.EMPTY_SHIPPING_RATES,isLoadingRates:!1,cartHasCalculatedShipping:!1,paymentMethods:a.EMPTY_PAYMENT_METHODS,paymentRequirements:a.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},extensions:a.EMPTY_EXTENSIONS},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSelect:!0};const{isEditor:t,previewData:c}=Object(u.b)(),o=null==c?void 0:c.previewCart,{shouldSelect:l}=e,d=Object(n.useRef)();g();const b=Object(s.useSelect)((e,c)=>{let{dispatch:r}=c;if(!l)return E;if(t)return{cartCoupons:o.coupons,cartItems:o.items,crossSellsProducts:o.cross_sells,cartFees:o.fees,cartItemsCount:o.items_count,cartItemsWeight:o.items_weight,cartNeedsPayment:o.needs_payment,cartNeedsShipping:o.needs_shipping,cartItemErrors:a.EMPTY_CART_ITEM_ERRORS,cartTotals:o.totals,cartIsLoading:!1,cartErrors:a.EMPTY_CART_ERRORS,billingData:h,billingAddress:h,shippingAddress:O,extensions:a.EMPTY_EXTENSIONS,shippingRates:o.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:o.has_calculated_shipping,paymentRequirements:o.paymentRequirements,receiveCart:"function"==typeof(null==o?void 0:o.receiveCart)?o.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==o?void 0:o.receiveCartContents)?o.receiveCartContents:()=>{}};const n=e(a.CART_STORE_KEY),s=n.getCartData(),u=n.getCartErrors(),d=n.getCartTotals(),b=!n.hasFinishedResolution("getCartData"),p=n.isCustomerDataUpdating(),{receiveCart:m,receiveCartContents:g}=r(a.CART_STORE_KEY),j=_(s.billingAddress),w=s.needsShipping?_(s.shippingAddress):j,f=s.fees.length>0?s.fees.map(e=>_(e)):a.EMPTY_CART_FEES;return{cartCoupons:s.coupons.length>0?s.coupons.map(e=>({...e,label:e.code})):a.EMPTY_CART_COUPONS,cartItems:s.items,crossSellsProducts:s.crossSells,cartFees:f,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:d,cartIsLoading:b,cartErrors:u,billingData:Object(i.a)(j),billingAddress:Object(i.a)(j),shippingAddress:Object(i.a)(w),extensions:s.extensions,shippingRates:s.shippingRates,isLoadingRates:p,cartHasCalculatedShipping:s.hasCalculatedShipping,paymentRequirements:s.paymentRequirements,receiveCart:m,receiveCartContents:g}},[l]);return d.current&&r()(d.current,b)||(d.current=b),d.current}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var o=c(0);const r=Object(o.createContext)("page"),n=()=>Object(o.useContext)(r);r.Provider},,,function(e,t){e.exports=window.wc.wcBlocksSharedHocs},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=(e,t)=>e.reduce((e,c)=>(e[String(t?c[t]:c)]=c,e),{})},function(e,t,c){"use strict";c.d(t,"a",(function(){return d})),c.d(t,"b",(function(){return b})),c.d(t,"c",(function(){return p}));var o=c(9),r=c(7),n=c(0),a=c(24),s=c.n(a),l=c(45),i=c(103),u=c(50);const d=e=>{const t=Object(u.a)();e=e||t;const c=Object(r.useSelect)(t=>t(o.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0),[e]),{setValueForQueryContext:a}=Object(r.useDispatch)(o.QUERY_STATE_STORE_KEY);return[c,Object(n.useCallback)(t=>{a(e,t)},[e,a])]},b=(e,t,c)=>{const a=Object(u.a)();c=c||a;const s=Object(r.useSelect)(r=>r(o.QUERY_STATE_STORE_KEY).getValueForQueryKey(c,e,t),[c,e]),{setQueryValue:l}=Object(r.useDispatch)(o.QUERY_STATE_STORE_KEY);return[s,Object(n.useCallback)(t=>{l(c,e,t)},[c,e,l])]},p=(e,t)=>{const c=Object(u.a)();t=t||c;const[o,r]=d(t),a=Object(l.a)(o),b=Object(l.a)(e),p=Object(i.a)(b),m=Object(n.useRef)(!1);return Object(n.useEffect)(()=>{s()(p,b)||(r(Object.assign({},a,b)),m.current=!0)},[a,b,p,r]),m.current?[o,r]:[e,r]}},function(e,t,c){"use strict";let o;c.d(t,"a",(function(){return o})),function(e){e.SINGLE="single",e.THUMBNAIL="thumbnail"}(o||(o={}))},,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return r})),c.d(t,"e",(function(){return n})),c.d(t,"d",(function(){return a})),c.d(t,"b",(function(){return l})),c.d(t,"c",(function(){return i}));var o=c(28);const r=(e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[];let n,a;!function(e){e.SUCCESS="success",e.FAIL="failure",e.ERROR="error"}(n||(n={})),function(e){e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions"}(a||(a={}));const s=(e,t)=>Object(o.b)(e)&&"type"in e&&e.type===t,l=e=>s(e,n.ERROR),i=e=>s(e,n.FAIL)},,,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(173),s=c(4),l=c.n(s),i=c(102);c(177),t.a=e=>{let{className:t,showSpinner:c=!1,children:o,variant:s="contained",...u}=e;const d=l()("wc-block-components-button","wp-element-button",t,s,{"wc-block-components-button--loading":c});return Object(n.createElement)(a.a,r()({className:d},u),c&&Object(n.createElement)(i.a,null),Object(n.createElement)("span",{className:"wc-block-components-button__text"},o))}},function(e,t){e.exports=window.wp.autop},function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(2);const a=(e,t,c)=>c?Math.min(e,t)===e?t:Math.max(e,c)===e?c:e:Math.max(e,t)===t?e:t;t.a=e=>{let{columns:t,rows:c,setAttributes:s,alignButtons:l,minColumns:i=1,maxColumns:u=6,minRows:d=1,maxRows:b=6}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(n.RangeControl,{label:Object(r.__)("Columns","woocommerce"),value:t,onChange:e=>{const t=a(e,i,u);s({columns:Number.isNaN(t)?"":t})},min:i,max:u}),Object(o.createElement)(n.RangeControl,{label:Object(r.__)("Rows","woocommerce"),value:c,onChange:e=>{const t=a(e,d,b);s({rows:Number.isNaN(t)?"":t})},min:d,max:b}),Object(o.createElement)(n.ToggleControl,{label:Object(r.__)("Align the last block to the bottom","woocommerce"),help:l?Object(r.__)("Align the last block to the bottom.","woocommerce"):Object(r.__)("The last inner block will follow other content.","woocommerce"),checked:l,onChange:()=>s({alignButtons:!l})}))}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));var o=c(8);function r(e,t){let{blockDescription:c,blockIcon:r,blockTitle:n,variationName:a}=t;Object(o.registerBlockVariation)(e,{description:c,name:a,title:n,isActive:e=>e.__woocommerceNamespace===a,icon:{src:r},attributes:{__woocommerceNamespace:a},scope:["block","inserter"]})}},,function(e,t){e.exports=window.wp.dom},function(e,t,c){"use strict";c.d(t,"c",(function(){return s})),c.d(t,"b",(function(){return l})),c.d(t,"a",(function(){return i}));var o=c(0),r=c(1),n=c(74),a=c(174);const s=Object(r.__)("Product Title","woocommerce"),l=Object(o.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"}),i=Object(r.__)("Display the title of a product.","woocommerce")},,,,,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(2),s=c(38),l=c(4),i=c.n(l);t.a=e=>{let{className:t,item:c,isSelected:o,isLoading:l,onSelect:u,disabled:d,...b}=e;return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(s.a,r()({},b,{key:c.id,className:t,isSelected:o,item:c,onSelect:u,disabled:d})),o&&l&&Object(n.createElement)("div",{key:"loading",className:i()("woocommerce-search-list__item","woocommerce-product-attributes__item","depth-1","is-loading","is-not-active")},Object(n.createElement)(a.Spinner,null)))}},function(e,t,c){"use strict";c.d(t,"c",(function(){return s})),c.d(t,"b",(function(){return l})),c.d(t,"a",(function(){return i}));var o=c(0),r=c(1),n=c(74),a=c(191);const s=Object(r.__)("Product Summary","woocommerce"),l=Object(o.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"}),i=Object(r.__)("Display a short description about a product.","woocommerce")},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return l})),c.d(t,"b",(function(){return i}));var o=c(0),r=c(2),n=c(72),a=c(174),s=c(69);const l="core/post-title",i="woocommerce/product-query/product-title";Object(s.a)(l,{blockDescription:n.a,blockIcon:Object(o.createElement)(r.Icon,{icon:a.a}),blockTitle:n.c,variationName:i})},,,function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(39),a=c(4),s=c.n(a),l=c(21);c(176);const i=e=>{let{currency:t,maxPrice:c,minPrice:a,priceClassName:i,priceStyle:u={}}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"screen-reader-text"},Object(r.sprintf)( /* translators: %1$s min price, %2$s max price */ Object(r.__)("Price between %1$s and %2$s","woocommerce"),Object(l.formatPrice)(a),Object(l.formatPrice)(c))),Object(o.createElement)("span",{"aria-hidden":!0},Object(o.createElement)(n.a,{className:s()("wc-block-components-product-price__value",i),currency:t,value:a,style:u})," — ",Object(o.createElement)(n.a,{className:s()("wc-block-components-product-price__value",i),currency:t,value:c,style:u})))},u=e=>{let{currency:t,regularPriceClassName:c,regularPriceStyle:a,regularPrice:l,priceClassName:i,priceStyle:u,price:d}=e;return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("span",{className:"screen-reader-text"},Object(r.__)("Previous price:","woocommerce")),Object(o.createElement)(n.a,{currency:t,renderText:e=>Object(o.createElement)("del",{className:s()("wc-block-components-product-price__regular",c),style:a},e),value:l}),Object(o.createElement)("span",{className:"screen-reader-text"},Object(r.__)("Discounted price:","woocommerce")),Object(o.createElement)(n.a,{currency:t,renderText:e=>Object(o.createElement)("ins",{className:s()("wc-block-components-product-price__value","is-discounted",i),style:u},e),value:d}))};t.a=e=>{let{align:t,className:c,currency:r,format:a="",maxPrice:l,minPrice:d,price:b,priceClassName:p,priceStyle:m,regularPrice:g,regularPriceClassName:O,regularPriceStyle:h,style:j}=e;const _=s()(c,"price","wc-block-components-product-price",{["wc-block-components-product-price--align-"+t]:t});a.includes("")||(a="",console.error("Price formats need to include the `` tag."));const E=g&&b!==g;let w=Object(o.createElement)("span",{className:s()("wc-block-components-product-price__value",p)});return E?w=Object(o.createElement)(u,{currency:r,price:b,priceClassName:p,priceStyle:m,regularPrice:g,regularPriceClassName:O,regularPriceStyle:h}):void 0!==d&&void 0!==l?w=Object(o.createElement)(i,{currency:r,maxPrice:l,minPrice:d,priceClassName:p,priceStyle:m}):b&&(w=Object(o.createElement)(n.a,{className:s()("wc-block-components-product-price__value",p),currency:r,value:b,style:m})),Object(o.createElement)("span",{className:_,style:j},Object(o.createInterpolateElement)(a,{price:w}))}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return b}));var o=c(4),r=c.n(o),n=c(28),a=c(106);const s=e=>Object(a.a)(e)?JSON.parse(e)||{}:Object(n.b)(e)?e:{};var l=c(593),i=c(120);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return Object(i.getCSSRules)(e,{selector:""}).forEach(e=>{t[e.key]=e.value}),t}function d(e,t){return e&&t?`has-${Object(l.a)(t)}-${e}`:""}const b=e=>{const t=Object(n.b)(e)?e:{style:{}},c=s(t.style),o=function(e){var t,c,o,a,s,l,i;const{backgroundColor:b,textColor:p,gradient:m,style:g}=e,O=d("background-color",b),h=d("color",p),j=function(e){if(e)return`has-${e}-gradient-background`}(m),_=j||(null==g||null===(t=g.color)||void 0===t?void 0:t.gradient);return{className:r()(h,j,{[O]:!_&&!!O,"has-text-color":p||(null==g||null===(c=g.color)||void 0===c?void 0:c.text),"has-background":b||(null==g||null===(o=g.color)||void 0===o?void 0:o.background)||m||(null==g||null===(a=g.color)||void 0===a?void 0:a.gradient),"has-link-color":Object(n.b)(null==g||null===(s=g.elements)||void 0===s?void 0:s.link)?null==g||null===(l=g.elements)||void 0===l||null===(i=l.link)||void 0===i?void 0:i.color:void 0})||void 0,style:u({color:(null==g?void 0:g.color)||{}})}}({...t,style:c}),l=function(e){var t;const c=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:c,style:o}=e,n=c?d("border-color",c):"";return r()({"has-border-color":c||(null==o||null===(t=o.border)||void 0===t?void 0:t.color),borderColorClass:n})}(e)||void 0,style:u({border:c})}}({...t,style:c}),i=function(e){const{style:t}=e;return{className:void 0,style:u({spacing:(null==t?void 0:t.spacing)||{}})}}({...t,style:c}),b=(e=>{const t=s(e.style),c=Object(n.b)(t.typography)?t.typography:{},o=Object(a.a)(c.fontFamily)?c.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:c.fontSize,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,lineHeight:c.lineHeight,textDecoration:c.textDecoration,textTransform:c.textTransform}}})(t);return{className:r()(b.className,o.className,l.className,i.className),style:{...b.style,...o.style,...l.style,...i.style}}}},,function(e,t,c){"use strict";c.d(t,"b",(function(){return a})),c.d(t,"a",(function(){return s}));var o=c(0),r=c(7);const n=Object(o.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),a=()=>Object(o.useContext)(n),s=e=>{let{children:t,currentPostId:c=0,previewData:a={},currentView:s="",isPreview:l=!1}=e;const i=Object(r.useSelect)(e=>c||e("core/editor").getCurrentPostId(),[c]),u=Object(o.useCallback)(e=>a&&e in a?a[e]:{},[a]),d={isEditor:!0,currentPostId:i,currentView:s,previewData:a,getPreviewData:u,isPreview:l};return Object(o.createElement)(n.Provider,{value:d},t)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(46),r=c(0),n=c(47);const a=()=>{const e=Object(n.a)(),t=Object(r.useRef)(e);return Object(r.useEffect)(()=>{t.current=e},[e]),{dispatchStoreEvent:Object(r.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(o.doAction)("experimental__woocommerce_blocks-"+e,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:Object(r.useCallback)((function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Object(o.doAction)("experimental__woocommerce_blocks-checkout-"+e,{...c,storeCart:t.current})}catch(e){console.error(e)}}),[])}}},,function(e,t,c){"use strict";c.d(t,"c",(function(){return n})),c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return s}));var o=c(8),r=c(18);const n=(e,t)=>{if(r.n>2)return Object(o.registerBlockType)(e,t)},a=()=>r.n>2,s=()=>r.n>1},,,,,function(e,t){e.exports=window.wp.wordcount},,function(e,t,c){"use strict";var o=c(3),r=c(1),n=c(136),a=c(106);const s=Object(o.getSetting)("countryLocale",{}),l=e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=Object(r.sprintf)( /* translators: %s Field label. */ Object(r.__)("%s (optional)","woocommerce"),e.label)),e.priority&&(Object(n.a)(e.priority)&&(t.index=e.priority),Object(a.a)(e.priority)&&(t.index=parseInt(e.priority,10))),e.hidden&&(t.required=!1),t},i=Object.entries(s).map(e=>{let[t,c]=e;return[t,Object.entries(c).map(e=>{let[t,c]=e;return[t,l(c)]}).reduce((e,t)=>{let[c,o]=t;return e[c]=o,e},{})]}).reduce((e,t)=>{let[c,o]=t;return e[c]=o,e},{});t.a=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=c&&void 0!==i[c]?i[c]:{};return e.map(e=>({key:e,...o.defaultAddressFields[e]||{},...r[e]||{},...t[e]||{}})).sort((e,t)=>e.index-t.index)}},,function(e,t,c){"use strict";c.d(t,"a",(function(){return k}));var o=c(6),r=c.n(o),n=c(0),a=c(1),s=c(2),l=c(74),i=c(555),u=c(4),d=c.n(u),b=c(11),p=c(17),m=c(38),g=c(554),O=c(14);const h=e=>{let{id:t,label:c,popoverContents:o,remove:r,screenReaderLabel:i,className:u=""}=e;const[p,m]=Object(n.useState)(!1),j=Object(b.useInstanceId)(h);if(i=i||c,!c)return null;c=Object(O.decodeEntities)(c);const _=d()("woocommerce-tag",u,{"has-remove":!!r}),E="woocommerce-tag__label-"+j,w=Object(n.createElement)(n.Fragment,null,Object(n.createElement)("span",{className:"screen-reader-text"},i),Object(n.createElement)("span",{"aria-hidden":"true"},c));return Object(n.createElement)("span",{className:_},o?Object(n.createElement)(s.Button,{className:"woocommerce-tag__text",id:E,onClick:()=>m(!0)},w):Object(n.createElement)("span",{className:"woocommerce-tag__text",id:E},w),o&&p&&Object(n.createElement)(s.Popover,{onClose:()=>m(!1)},o),r&&Object(n.createElement)(s.Button,{className:"woocommerce-tag__remove",onClick:r(t),label:Object(a.sprintf)(// Translators: %s label. Object(a.__)("Remove %s","woocommerce"),c),"aria-describedby":E},Object(n.createElement)(l.a,{icon:g.a,size:20,className:"clear-icon"})))};var j=h;const _=e=>Object(n.createElement)(m.b,e),E=e=>{const{list:t,selected:c,renderItem:o,depth:a=0,onSelect:s,instanceId:l,isSingle:i,search:u,useExpandedPanelId:d}=e,[b]=d;return t?Object(n.createElement)(n.Fragment,null,t.map(t=>{var p,m;const g=null!==(p=t.children)&&void 0!==p&&p.length&&!i?t.children.every(e=>{let{id:t}=e;return c.find(e=>e.id===t)}):!!c.find(e=>{let{id:c}=e;return c===t.id}),O=(null===(m=t.children)||void 0===m?void 0:m.length)&&b===t.id;return Object(n.createElement)(n.Fragment,{key:t.id},Object(n.createElement)("li",null,o({item:t,isSelected:g,onSelect:s,isSingle:i,selected:c,search:u,depth:a,useExpandedPanelId:d,controlId:l})),O?Object(n.createElement)(E,r()({},e,{list:t.children,depth:a+1})):null)})):null},w=e=>{let{isLoading:t,isSingle:c,selected:o,messages:r,onChange:l,onRemove:i}=e;if(t||c||!o)return null;const u=o.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,r.selected(u)),u>0?Object(n.createElement)(s.Button,{isLink:!0,isDestructive:!0,onClick:()=>l([]),"aria-label":r.clear},Object(a.__)("Clear all","woocommerce")):null),u>0?Object(n.createElement)("ul",null,o.map((e,t)=>Object(n.createElement)("li",{key:t},Object(n.createElement)(j,{label:e.name,id:e.id,remove:i})))):null)},f=e=>{let{filteredList:t,search:c,onSelect:o,instanceId:r,useExpandedPanelId:s,...u}=e;const{messages:d,renderItem:b,selected:p,isSingle:m}=u,g=b||_;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)(l.a,{icon:i.a})),Object(n.createElement)("span",{className:"woocommerce-search-list__not-found-text"},c?Object(a.sprintf)(d.noResults,c):d.noItems)):Object(n.createElement)("ul",{className:"woocommerce-search-list__list"},Object(n.createElement)(E,{useExpandedPanelId:s,list:t,selected:p,renderItem:g,onSelect:o,instanceId:r,isSingle:m,search:c}))},k=e=>{const{className:t="",isCompact:c,isHierarchical:o,isLoading:l,isSingle:i,list:u,messages:m=p.a,onChange:g,onSearch:O,selected:h,type:j="text",debouncedSpeak:_}=e,[E,v]=Object(n.useState)(""),y=Object(n.useState)(-1),S=Object(b.useInstanceId)(k),C=Object(n.useMemo)(()=>({...p.a,...m}),[m]),x=Object(n.useMemo)(()=>Object(p.c)(u,E,o),[u,E,o]);Object(n.useEffect)(()=>{_&&_(C.updated)},[_,C]),Object(n.useEffect)(()=>{"function"==typeof O&&O(E)},[E,O]);const N=Object(n.useCallback)(e=>()=>{i&&g([]);const t=h.findIndex(t=>{let{id:c}=t;return c===e});g([...h.slice(0,t),...h.slice(t+1)])},[i,h,g]),P=Object(n.useCallback)(e=>()=>{Array.isArray(e)?g(e):-1===h.findIndex(t=>{let{id:c}=t;return c===e.id})?g(i?[e]:[...h,e]):N(e.id)()},[i,N,g,h]),T=Object(n.useCallback)(e=>{const[t]=h.filter(t=>!e.find(e=>t.id===e.id));N(t.id)()},[N,h]);return Object(n.createElement)("div",{className:d()("woocommerce-search-list",t,{"is-compact":c,"is-loading":l,"is-token":"token"===j})},"text"===j&&Object(n.createElement)(w,r()({},e,{onRemove:N,messages:C})),Object(n.createElement)("div",{className:"woocommerce-search-list__search"},"text"===j?Object(n.createElement)(s.TextControl,{label:C.search,type:"search",value:E,onChange:e=>v(e)}):Object(n.createElement)(s.FormTokenField,{disabled:l,label:C.search,onChange:T,onInputChange:e=>v(e),suggestions:[],__experimentalValidateInput:()=>!1,value:l?[Object(a.__)("Loading…","woocommerce")]:h.map(e=>({...e,value:e.name})),__experimentalShowHowTo:!1})),l?Object(n.createElement)("div",{className:"woocommerce-search-list__list"},Object(n.createElement)(s.Spinner,null)):Object(n.createElement)(f,r()({},e,{search:E,filteredList:x,messages:C,onSelect:P,instanceId:S,useExpandedPanelId:y})))};Object(s.withSpokenMessages)(k)},function(e,t){e.exports=window.wp.warning},function(e,t,c){"use strict";var o=c(0);c(178),t.a=()=>Object(o.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));var o=c(0);function r(e,t){const c=Object(o.useRef)();return Object(o.useEffect)(()=>{c.current===e||t&&!t(e,c.current)||(c.current=e)},[e,t]),c.current}},function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(1),s=c(122),l=c(38),i=c(100),u=c(11),d=Object(u.createHigherOrderComponent)(e=>{class t extends n.Component{render(){const{selected:t}=this.props,c=null==t;return Array.isArray(t)?Object(n.createElement)(e,this.props):Object(n.createElement)(e,r()({},this.props,{selected:c?[]:[t]}))}}return t.defaultProps={selected:null},t},"withTransformSingleSelectToMultipleSelect"),b=c(209),p=c(22),m=c.n(p),g=c(24),O=c.n(g),h=c(23),j=c(31),_=Object(u.createHigherOrderComponent)(e=>{class t extends n.Component{constructor(){super(...arguments),m()(this,"state",{error:null,loading:!1,variations:{}}),m()(this,"loadVariations",()=>{const{products:e}=this.props,{loading:t,variations:c}=this.state;if(t)return;const o=this.getExpandedProduct();if(!o||c[o])return;const r=e.find(e=>e.id===o);r.variations&&0!==r.variations.length?(this.setState({loading:!0}),Object(h.g)(o).then(e=>{const t=e.map(e=>({...e,parent:o}));this.setState({variations:{...this.state.variations,[o]:t},loading:!1,error:null})}).catch(async e=>{const t=await Object(j.a)(e);this.setState({variations:{...this.state.variations,[o]:null},loading:!1,error:t})})):this.setState({variations:{...this.state.variations,[o]:null},loading:!1,error:null})})}componentDidMount(){const{selected:e,showVariations:t}=this.props;e&&t&&this.loadVariations()}componentDidUpdate(e){const{isLoading:t,selected:c,showVariations:o}=this.props;o&&(!O()(e.selected,c)||e.isLoading&&!t)&&this.loadVariations()}isProductId(e){const{products:t}=this.props;return t.some(t=>t.id===e)}findParentProduct(e){var t;const{products:c}=this.props;return null===(t=c.filter(t=>t.variations&&t.variations.find(t=>{let{id:c}=t;return c===e}))[0])||void 0===t?void 0:t.id}getExpandedProduct(){const{isLoading:e,selected:t,showVariations:c}=this.props;if(!c)return null;let o=t&&t.length?t[0]:null;return o?this.prevSelectedItem=o:this.prevSelectedItem&&(e||this.isProductId(this.prevSelectedItem)||(o=this.prevSelectedItem)),!e&&o?this.isProductId(o)?o:this.findParentProduct(o):null}render(){const{error:t,isLoading:c}=this.props,{error:o,loading:a,variations:s}=this.state;return Object(n.createElement)(e,r()({},this.props,{error:o||t,expandedProduct:this.getExpandedProduct(),isLoading:c,variations:s,variationsLoading:a}))}}return m()(t,"defaultProps",{selected:[],showVariations:!1}),t},"withProductVariations"),E=c(36),w=c(4),f=c.n(w),k=c(77);c(148);const v={list:Object(a.__)("Products","woocommerce"),noItems:Object(a.__)("Your store doesn't have any products.","woocommerce"),search:Object(a.__)("Search for a product to display","woocommerce"),updated:Object(a.__)("Product search results updated.","woocommerce")},y=e=>{let{expandedProduct:t,error:c,instanceId:o,isCompact:u,isLoading:d,onChange:b,onSearch:p,products:m,renderItem:g,selected:O,showVariations:h,variations:j,variationsLoading:_}=e;if(c)return Object(n.createElement)(E.a,{error:c});const w=[...m,...j&&j[t]?j[t]:[]];return Object(n.createElement)(i.a,{className:"woocommerce-products",list:w,isCompact:u,isLoading:d,isSingle:!0,selected:w.filter(e=>{let{id:t}=e;return O.includes(t)}),onChange:b,renderItem:g||(h?e=>{const{item:t,search:c,depth:i=0,isSelected:u,onSelect:b}=e,p=t.variations&&Array.isArray(t.variations)?t.variations.length:0,m=f()("woocommerce-search-product__item","woocommerce-search-list__item","depth-"+i,"has-count",{"is-searching":c.length>0,"is-skip-level":0===i&&0!==t.parent,"is-variable":p>0});if(!t.breadcrumbs.length)return Object(n.createElement)(k.a,r()({},e,{className:f()(m,{"is-selected":u}),isSelected:u,item:t,onSelect:()=>()=>{b(t)()},isLoading:d||_,countLabel:t.variations.length>0?Object(a.sprintf)( /* translators: %1$d is the number of variations of a product product. */ Object(a.__)("%1$d variations","woocommerce"),t.variations.length):null,name:"products-"+o,"aria-label":Object(a.sprintf)( /* translators: %1$s is the product name, %2$d is the number of variations of that product. */ Object(a._n)("%1$s, has %2$d variation","%1$s, has %2$d variations",t.variations.length,"woocommerce"),t.name,t.variations.length)}));const g=Object(s.a)(t.variation)?e:{...e,item:{...e.item,name:t.variation},"aria-label":`${t.breadcrumbs[0]}: ${t.variation}`};return Object(n.createElement)(l.a,r()({},g,{className:m,name:"variations-"+o}))}:null),onSearch:p,messages:v,isHierarchical:!0})};y.defaultProps={isCompact:!1,expandedProduct:null,selected:[],showVariations:!1},t.a=d(Object(b.a)(_(Object(u.withInstanceId)(y))))},function(e,t,c){"use strict";let o;function r(){return Math.floor(Math.random()*Date.now()).toString()}c.d(t,"a",(function(){return n})),c.d(t,"b",(function(){return s})),function(e){e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback"}(o||(o={}));const n={addEventCallback:function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return{id:r(),type:o.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:c}},removeEventCallback:(e,t)=>({id:t,type:o.REMOVE_EVENT_CALLBACK,eventType:e})},a={},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,{type:t,eventType:c,id:r,callback:n,priority:s}=arguments.length>1?arguments[1]:void 0;const l=e.hasOwnProperty(c)?new Map(e[c]):new Map;switch(t){case o.ADD_EVENT_CALLBACK:return l.set(r,{priority:s,callback:n}),{...e,[c]:l};case o.REMOVE_EVENT_CALLBACK:return l.delete(r),{...e,[c]:l}}}},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=e=>"string"==typeof e},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return l})),c.d(t,"b",(function(){return i}));var o=c(0),r=c(2),n=c(1),a=c(326),s=c(69);const l="core/post-template",i="woocommerce/product-query/product-template";Object(s.a)(l,{blockDescription:Object(n.__)("Contains the block elements used to render a product, like its name, featured image, rating, and more.","woocommerce"),blockIcon:Object(o.createElement)(r.Icon,{icon:a.a}),blockTitle:Object(n.__)("Product template","woocommerce"),variationName:i})},,,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(14),s=c(4),l=c.n(s);c(175),t.a=e=>{let{className:t="",disabled:c=!1,name:o,permalink:s="",target:i,rel:u,style:d,onClick:b,...p}=e;const m=l()("wc-block-components-product-name",t);if(c){const e=p;return Object(n.createElement)("span",r()({className:m},e,{dangerouslySetInnerHTML:{__html:Object(a.decodeEntities)(o)}}))}return Object(n.createElement)("a",r()({className:m,href:s,target:i},p,{dangerouslySetInnerHTML:{__html:Object(a.decodeEntities)(o)},style:d}))}},function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var o=c(9),r=c(7),n=c(0),a=c(45);const s=e=>{const{namespace:t,resourceName:c,resourceValues:s=[],query:l={},shouldSelect:i=!0}=e;if(!t||!c)throw new Error("The options object must have valid values for the namespace and the resource properties.");const u=Object(n.useRef)({results:[],isLoading:!0}),d=Object(a.a)(l),b=Object(a.a)(s),p=(()=>{const[,e]=Object(n.useState)();return Object(n.useCallback)(t=>{e(()=>{throw t})},[])})(),m=Object(r.useSelect)(e=>{if(!i)return null;const r=e(o.COLLECTIONS_STORE_KEY),n=[t,c,d,b],a=r.getCollectionError(...n);if(a){if(!(a instanceof Error))throw new Error("TypeError: `error` object is not an instance of Error constructor");p(a)}return{results:r.getCollection(...n),isLoading:!r.hasFinishedResolution("getCollection",n)}},[t,c,b,d,i]);return null!==m&&(u.current=m),u.current}},,,,,,,function(e,t){e.exports=window.wp.styleEngine},,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},,,,,function(e,t,c){"use strict";var o=c(0),r=c(96),n=c(66);const a=e=>{const t=e.indexOf("

");return-1===t?e:e.substr(0,t+4)},s=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),l=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t,i=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…";const o=s(e),r=o.split(" ").splice(0,t).join(" ");return Object(n.autop)(l(r,c))},u=function(e,t){let c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"…";const r=s(e),a=r.slice(0,t);if(c)return Object(n.autop)(l(a,o));const i=a.match(/([\s]+)/g),u=i?i.length:0,d=r.slice(0,t+u);return Object(n.autop)(l(d,o))};t.a=e=>{let{source:t,maxLength:c=15,countType:s="words",className:l="",style:d={}}=e;const b=Object(o.useMemo)(()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"words";const o=Object(n.autop)(e),s=Object(r.count)(o,c);if(s<=t)return o;const l=a(o),d=Object(r.count)(l,c);return d<=t?l:"words"===c?i(l,t):u(l,t,"characters_including_spaces"===c)}(t,c,s),[t,c,s]);return Object(o.createElement)(o.RawHTML,{style:d,className:l},b)}},,,,,function(e,t,c){"use strict";var o=c(0),r=c(4),n=c.n(r),a=c(30),s=c(11);c(181),t.a=Object(s.withInstanceId)(e=>{let{className:t,instanceId:c,label:r="",onChange:s,options:l,screenReaderLabel:i,value:u=""}=e;const d="wc-block-components-sort-select__select-"+c;return Object(o.createElement)("div",{className:n()("wc-block-sort-select","wc-block-components-sort-select",t)},Object(o.createElement)(a.a,{label:r,screenReaderLabel:i,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:d}}),Object(o.createElement)("select",{id:d,className:"wc-block-sort-select__select wc-block-components-sort-select__select",onChange:s,value:u},l&&l.map(e=>Object(o.createElement)("option",{key:e.key,value:e.key},e.label))))})},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=e=>"boolean"==typeof e},function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));const o=e=>"number"==typeof e},,,,,,,,,,,function(e,t){},function(e,t){},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return d}));var o=c(0),r=c(1),n=c(4),a=c.n(n),s=c(30),l=c(25),i=c(86),u=c(53);c(264);const d=e=>{const{className:t,align:c}=e,n=Object(i.a)(e),{parentClassName:u}=Object(l.useInnerBlockLayoutContext)(),{product:d}=Object(l.useProductDataContext)();if(!d.id||!d.on_sale)return null;const b="string"==typeof c?"wc-block-components-product-sale-badge--align-"+c:"";return Object(o.createElement)("div",{className:a()("wc-block-components-product-sale-badge",t,b,{[u+"__product-onsale"]:u},n.className),style:n.style},Object(o.createElement)(s.a,{label:Object(r.__)("Sale","woocommerce"),screenReaderLabel:Object(r.__)("Product on sale","woocommerce")}))};t.default=Object(u.withProductDataContext)(d)},,function(e,t,c){"use strict";var o=c(0),r=c(1),n=c(74),a=c(247),s=c(3),l=c(5),i=c(25);t.a=e=>{const t=(Object(i.useProductDataContext)().product||{}).id||e.productId||0;return t?Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)("div",{className:"wc-block-single-product__edit-card"},Object(o.createElement)("div",{className:"wc-block-single-product__edit-card-title"},Object(o.createElement)("a",{href:`${s.ADMIN_URL}post.php?post=${t}&action=edit`,target:"_blank",rel:"noopener noreferrer"},Object(r.__)("Edit this product's details","woocommerce"),Object(o.createElement)(n.a,{icon:a.a,size:16}))),Object(o.createElement)("div",{className:"wc-block-single-product__edit-card-description"},Object(r.__)("Edit details such as title, price, description and more.","woocommerce")))):null}},,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));var o=c(0);const r=Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 230 250",style:{width:"100%"}},Object(o.createElement)("title",null,"Grid Block Preview"),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:".779",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:".779",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:".779",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"101.448",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:"136.277",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),Object(o.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"236.946",fill:"#E1E3E6",rx:"5"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"86.301",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"221.798",fill:"#E1E3E6",rx:"3"}),Object(o.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"221.798",fill:"#E1E3E6",rx:"3"}))},,function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(2),s=c(4),l=c.n(s);c(210),t.a=function(e){let{className:t="",...c}=e;const o=l()("wc-block-text-toolbar-button",t);return Object(n.createElement)(a.Button,r()({className:o},c))}},,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,function(e,t){},,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";var o=c(0),r=c(10);const n=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},Object(o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 19.375L4.5 7.625C4.5 7.55596 4.55596 7.5 4.625 7.5L16.375 7.5C16.444 7.5 16.5 7.55596 16.5 7.625L16.5 19.375C16.5 19.444 16.444 19.5 16.375 19.5L4.625 19.5C4.55596 19.5 4.5 19.444 4.5 19.375ZM4.625 21C3.72754 21 3 20.2725 3 19.375L3 7.625C3 6.72754 3.72754 6 4.625 6L16.375 6C17.2725 6 18 6.72754 18 7.625L18 19.375C18 20.2725 17.2725 21 16.375 21L4.625 21ZM19 3.75L8 3.75L8 2.25L19 2.25C20.5183 2.25 21.75 3.4796 21.75 4.99891L21.75 18L20.25 18L20.25 4.99891C20.25 4.30909 19.6909 3.75 19 3.75Z"}));t.a=n},,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return p}));var o=c(0),r=c(4),n=c.n(r),a=c(25),s=c(91),l=c(53),i=c(112),u=c(89),d=c(86);c(265);const b=e=>{let{children:t,headingLevel:c,elementType:r="h"+c,...n}=e;return Object(o.createElement)(r,n,t)},p=e=>{const{className:t,headingLevel:c=2,showProductLink:r=!0,linkTarget:l,align:p}=e,m=Object(d.a)(e),{parentClassName:g}=Object(a.useInnerBlockLayoutContext)(),{product:O}=Object(a.useProductDataContext)(),{dispatchStoreEvent:h}=Object(u.a)();return O.id?Object(o.createElement)(b,{headingLevel:c,className:n()(t,m.className,"wc-block-components-product-title",{[g+"__product-title"]:g,["wc-block-components-product-title--align-"+p]:p&&Object(s.b)()}),style:Object(s.b)()?m.style:{}},Object(o.createElement)(i.a,{disabled:!r,name:O.name,permalink:O.permalink,target:l,onClick:()=>{h("product-view-link",{product:O})}})):Object(o.createElement)(b,{headingLevel:c,className:n()(t,m.className,"wc-block-components-product-title",{[g+"__product-title"]:g,["wc-block-components-product-title--align-"+p]:p&&Object(s.b)()}),style:Object(s.b)()?m.style:{}})};t.b=Object(l.withProductDataContext)(p)},function(e,t,c){"use strict";var o=c(6),r=c.n(o),n=c(0),a=c(18),s=c(23),l=c(110),i=c(31);t.a=e=>t=>{let{selected:c,...o}=t;const[u,d]=Object(n.useState)(!0),[b,p]=Object(n.useState)(null),[m,g]=Object(n.useState)([]),O=a.o.productCount>100,h=async e=>{const t=await Object(i.a)(e);p(t),d(!1)},j=Object(n.useRef)(c);Object(n.useEffect)(()=>{Object(s.h)({selected:j.current}).then(e=>{g(e),d(!1)}).catch(h)},[j]);const _=Object(l.a)(e=>{Object(s.h)({selected:c,search:e}).then(e=>{g(e),d(!1)}).catch(h)},400),E=Object(n.useCallback)(e=>{d(!0),_(e)},[d,_]);return Object(n.createElement)(e,r()({},o,{selected:c,error:b,products:m,isLoading:u,onSearch:O?E:null}))}},function(e,t){},function(e,t,c){"use strict";c.d(t,"a",(function(){return j}));var o=c(6),r=c.n(o),n=c(0),a=c(1),s=c(4),l=c.n(s),i=c(3),u=c(25),d=c(86),b=c(53),p=c(89),m=c(149),g=(c(267),c(58));const O=()=>Object(n.createElement)("img",{src:i.PLACEHOLDER_IMG_SRC,alt:"",width:void 0,height:void 0}),h=e=>{let{image:t,loaded:c,showFullSize:o,fallbackAlt:a}=e;const{thumbnail:s,src:l,srcset:i,sizes:u,alt:d}=t||{},b={alt:d||a,hidden:!c,src:s,...o&&{src:l,srcSet:i,sizes:u}};return Object(n.createElement)(n.Fragment,null,b.src&&Object(n.createElement)("img",r()({"data-testid":"product-image"},b)),!t&&Object(n.createElement)(O,null))},j=e=>{const{className:t,imageSizing:c=g.a.SINGLE,showProductLink:o=!0,showSaleBadge:s,saleBadgeAlign:i="right",...b}=e,j=Object(d.a)(e),{parentClassName:_}=Object(u.useInnerBlockLayoutContext)(),{product:E,isLoading:w}=Object(u.useProductDataContext)(),{dispatchStoreEvent:f}=Object(p.a)();if(!E.id)return Object(n.createElement)("div",{className:l()(t,"wc-block-components-product-image",{[_+"__product-image"]:_},j.className),style:j.style},Object(n.createElement)(O,null));const k=!!E.images.length,v=k?E.images[0]:null,y=o?"a":n.Fragment,S=Object(a.sprintf)( /* translators: %s is referring to the product name */ Object(a.__)("Link to %s","woocommerce"),E.name),C={href:E.permalink,...!k&&{"aria-label":S},onClick:()=>{f("product-view-link",{product:E})}};return Object(n.createElement)("div",{className:l()(t,"wc-block-components-product-image",{[_+"__product-image"]:_},j.className),style:j.style},Object(n.createElement)(y,o&&C,!!s&&Object(n.createElement)(m.default,r()({align:i},b)),Object(n.createElement)(h,{fallbackAlt:E.name,image:v,loaded:!w,showFullSize:c!==g.a.THUMBNAIL})))};t.b=Object(b.withProductDataContext)(j)},,,,,,,,,,,,,,function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return d}));var o=c(0),r=c(4),n=c.n(r),a=c(84),s=c(21),l=c(25),i=c(86),u=c(53);c(266);const d=e=>{var t,c;const{className:r,textAlign:u,isDescendentOfSingleProductTemplate:d}=e,b=Object(i.a)(e),{parentName:p,parentClassName:m}=Object(l.useInnerBlockLayoutContext)(),{product:g}=Object(l.useProductDataContext)(),O="woocommerce/all-products"===p,h=n()("wc-block-components-product-price",r,b.className,{[m+"__product-price"]:m});if(!g.id&&!d){const e=Object(o.createElement)(a.a,{align:u,className:h});return O?Object(o.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const j=g.prices,_=d?Object(s.getCurrencyFromPriceResponse)():Object(s.getCurrencyFromPriceResponse)(j),E=j.price!==j.regular_price,w=n()({[m+"__product-price__value"]:m,[m+"__product-price__value--on-sale"]:E}),f=Object(o.createElement)(a.a,{align:u,className:h,style:b.style,regularPriceStyle:b.style,priceStyle:b.style,priceClassName:w,currency:_,price:d?"5000":j.price,minPrice:null==j||null===(t=j.price_range)||void 0===t?void 0:t.min_amount,maxPrice:null==j||null===(c=j.price_range)||void 0===c?void 0:c.max_amount,regularPrice:d?"5000":j.regular_price,regularPriceClassName:n()({[m+"__product-price__regular"]:m})});return O?Object(o.createElement)("div",{className:"wp-block-woocommerce-product-price"},f):f};t.default=e=>e.isDescendentOfSingleProductTemplate?Object(o.createElement)(d,e):Object(u.withProductDataContext)(d)(e)},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return m}));var o=c(0),r=c(1),n=c(4),a=c.n(n),s=c(25),l=c(86),i=c(53),u=c(136);c(268);const d=e=>{const{rating:t,reviews:c,parentClassName:n}=e,s={width:t/5*100+"%"},l=Object(r.sprintf)( /* translators: %f is referring to the average rating value */ Object(r.__)("Rated %f out of 5","woocommerce"),t),i={__html:Object(r.sprintf)( /* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ Object(r._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",c,"woocommerce"),Object(r.sprintf)('%f',t),Object(r.sprintf)('%d',c))};return Object(o.createElement)("div",{className:a()("wc-block-components-product-rating__stars",n+"__product-rating__stars"),role:"img","aria-label":l},Object(o.createElement)("span",{style:s,dangerouslySetInnerHTML:i}))},b=e=>{const{href:t}=e,c=Object(r.__)("Add review","woocommerce");return t?Object(o.createElement)("a",{className:"wc-block-components-product-rating__link",href:t},c):null},p=e=>{const{reviews:t}=e,c=Object(r.sprintf)( /* translators: %s is referring to the total of reviews for a product */ Object(r._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t);return Object(o.createElement)("span",{className:"wc-block-components-product-rating__reviews_count"},c)},m=e=>{const{textAlign:t,isDescendentOfSingleProductBlock:c}=e,r=Object(l.a)(e),{parentClassName:n}=Object(s.useInnerBlockLayoutContext)(),{product:i}=Object(s.useProductDataContext)(),m=(e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0})(i),g=(e=>{const t=Object(u.a)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(i),O=(e=>{const{permalink:t}=e;return t+"#reviews"})(i),h=a()(r.className,"wc-block-components-product-rating",{[n+"__product-rating"]:n,["has-text-align-"+t]:t}),j=g?Object(o.createElement)(d,{rating:m,reviews:g,parentClassName:n}):Object(o.createElement)(b,{href:O});return Object(o.createElement)("div",{className:h,style:r.style},Object(o.createElement)("div",{className:"wc-block-components-product-rating__container"},j,g&&c?Object(o.createElement)(p,{reviews:g}):null))};t.default=Object(i.withProductDataContext)(m)},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return _}));var o=c(6),r=c.n(o),n=c(0),a=c(4),s=c.n(a),l=c(1),i=c(89),u=c(273),d=c(86),b=c(14),p=c(18),m=c(3),g=c(25),O=c(53);c(269);const h=e=>{let{product:t,className:c,style:o,textAlign:a}=e;const{id:d,permalink:g,add_to_cart:O,has_options:h,is_purchasable:j,is_in_stock:_}=t,{dispatchStoreEvent:E}=Object(i.a)(),{cartQuantity:w,addingToCart:f,addToCart:k}=Object(u.a)(d),v=Number.isFinite(w)&&w>0,y=!h&&j&&_,S=Object(b.decodeEntities)((null==O?void 0:O.description)||""),C=v?Object(l.sprintf)( /* translators: %s number of products in cart. */ Object(l._n)("%d in cart","%d in cart",w,"woocommerce"),w):Object(b.decodeEntities)((null==O?void 0:O.text)||Object(l.__)("Add to cart","woocommerce")),x=y?"button":"a",N={};return y?N.onClick=async()=>{await k(),E("cart-add-item",{product:t});const{cartRedirectAfterAdd:e}=Object(m.getSetting)("productsSettings");e&&(window.location.href=p.d)}:(N.href=g,N.rel="nofollow",N.onClick=()=>{E("product-view-link",{product:t})}),Object(n.createElement)(x,r()({},N,{"aria-label":S,disabled:f,className:s()(c,"wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{loading:f,added:v},{["has-text-align-"+a]:a}),style:o}),C)},j=e=>{let{className:t,style:c}=e;return Object(n.createElement)("button",{className:s()("wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button","wc-block-components-product-button__button--placeholder",t),style:c,disabled:!0})},_=e=>{const{className:t,textAlign:c}=e,o=Object(d.a)(e),{parentClassName:r}=Object(g.useInnerBlockLayoutContext)(),{product:a}=Object(g.useProductDataContext)();return Object(n.createElement)("div",{className:s()(t,"wp-block-button","wc-block-components-product-button",{[r+"__product-add-to-cart"]:r},{["has-text-align-"+c]:c})},a.id?Object(n.createElement)(h,{product:a,style:o.style,className:o.className}):Object(n.createElement)(j,{style:o.style,className:o.className}))};t.default=Object(O.withProductDataContext)(_)},,function(e){e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":1,"textdomain":"woocommerce","name":"woocommerce/all-products","title":"All Products","category":"woocommerce","keywords":["WooCommerce"],"description":"Display products from your store in a grid layout.","supports":{"align":["wide","full"],"html":false,"multiple":false},"attributes":{"columns":{"type":"number"},"rows":{"type":"number"},"alignButtons":{"type":"boolean"},"contentVisibility":{"type":"object"},"orderby":{"type":"string"},"layoutConfig":{"type":"array"},"isPreview":{"type":"boolean","default":false}}}')},,,,,,,,,,,,,,,,function(e,t,c){"use strict";function o(e,t){const{[t]:c,...o}=e;return o}c.d(t,"a",(function(){return o}))},,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"b",(function(){return n})),c.d(t,"a",(function(){return a}));const o=window.CustomEvent||null,r=(e,t)=>{let{bubbles:c=!1,cancelable:r=!1,element:n,detail:a={}}=t;if(!o)return;n||(n=document.body);const s=new o(e,{bubbles:c,cancelable:r,detail:a});n.dispatchEvent(s)},n=e=>{let{preserveCartData:t=!1}=e;r("wc-blocks_added_to_cart",{bubbles:!0,cancelable:!0,detail:{preserveCartData:t}})},a=function(e,t){let c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"!=typeof jQuery)return()=>{};const n=()=>{r(t,{bubbles:c,cancelable:o})};return jQuery(document).on(e,n),()=>jQuery(document).off(e,n)}},function(e,t,c){"use strict";c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return s})),c.d(t,"c",(function(){return l}));var o=c(98),r=(c(15),c(3)),n=c(14);const a=e=>{const t=Object.keys(r.defaultAddressFields),c=Object(o.a)(t,{},e.country),n=Object.assign({},e);return c.forEach(t=>{let{key:c="",hidden:o=!1}=t;o&&((e,t)=>e in t)(c,e)&&(n[c]="")}),n},s=e=>{if(0===Object.values(e).length)return null;const t=Object(r.getSetting)("shippingCountries",{}),c=Object(r.getSetting)("shippingStates",{}),o="string"==typeof t[e.country]?Object(n.decodeEntities)(t[e.country]):"",a="object"==typeof c[e.country]&&"string"==typeof c[e.country][e.state]?Object(n.decodeEntities)(c[e.country][e.state]):e.state,s=[];s.push(e.postcode.toUpperCase()),s.push(e.city),s.push(a),s.push(o);return s.filter(Boolean).join(", ")||null},l=e=>!!e.city&&!!e.country},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));var o=c(105);const r=(e,t)=>function(c){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const n=o.a.addEventCallback(e,c,r);return t(n),()=>{t(o.a.removeEventCallback(e,n.id))}}},,,function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));var o=c(0),r=c(7),n=c(9),a=c(14),s=c(47);const l=(e,t)=>{const c=e.find(e=>{let{id:c}=e;return c===t});return c?c.quantity:0},i=e=>{const{addItemToCart:t}=Object(r.useDispatch)(n.CART_STORE_KEY),{cartItems:c,cartIsLoading:i}=Object(s.a)(),{createErrorNotice:u,removeNotice:d}=Object(r.useDispatch)("core/notices"),[b,p]=Object(o.useState)(!1),m=Object(o.useRef)(l(c,e));return Object(o.useEffect)(()=>{const t=l(c,e);t!==m.current&&(m.current=t)},[c,e]),{cartQuantity:Number.isFinite(m.current)?m.current:0,addingToCart:b,cartIsLoading:i,addToCart:function(){let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return p(!0),t(e,c).then(()=>{d("add-to-cart")}).catch(e=>{u(Object(a.decodeEntities)(e.message),{id:"add-to-cart",context:"wc/all-products",isDismissible:!0})}).finally(()=>{p(!1)})}}}},function(e,t,c){"use strict";var o=c(0),r=c(10);const n=Object(o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"}));t.a=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e){e.exports=JSON.parse('{"name":"woocommerce/add-to-cart-form","version":"1.0.0","title":"Add to Cart with Options","description":"Display a button so the customer can add a product to their cart. Options will also be displayed depending on product type. e.g. quantity, variation.","category":"woocommerce","keywords":["WooCommerce"],"usesContext":["postId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(8),r=c(7);const n=new Set,a=e=>{let{blockName:t,blockMetadata:c,blockSettings:a,isVariationBlock:s=!1,variationName:l}=e,i="";Object(r.subscribe)(()=>{var e;const n=i,u=Object(r.select)("core/edit-site");var d;d=null==u?void 0:u.getEditedPostId(),i=null==d?void 0:d.split("//")[1];const b=n!==i,p=Boolean(i);if(!b||!p||!t)return;let m=Boolean(Object(o.getBlockType)(t));var g,O;m&&(null!==(e=i)&&void 0!==e&&e.includes("single-product")||null!=n&&n.includes("single-product"))&&(s&&l?Object(o.unregisterBlockVariation)(t,l):Object(o.unregisterBlockType)(t),m=!1),m||(s?Object(o.registerBlockVariation)(t,{...a,ancestor:null!==(g=i)&&void 0!==g&&g.includes("single-product")||null==a?void 0:a.ancestor}):Object(o.registerBlockType)(c,{...a,ancestor:null!==(O=i)&&void 0!==O&&O.includes("single-product")||null==a?void 0:a.ancestor}))},"core/edit-site"),Object(r.subscribe)(()=>{(Boolean(l)?n.has(l):n.has(t))||(s?(n.add(l),Object(o.registerBlockVariation)(t,a)):(n.add(t),Object(o.registerBlockType)(c,a)))},"core/edit-post")}},function(e){e.exports=JSON.parse('{"name":"woocommerce/product-image-gallery","version":"1.0.0","title":"Product Image Gallery","icon":"gallery","description":"Display a product\'s images.","category":"woocommerce","supports":{"align":true,"multiple":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/product-details","version":"1.0.0","icon":"info","title":"Product Details","description":"Display a product’s description, attributes, and reviews.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/product-reviews","version":"1.0.0","icon":"admin-comments","title":"Product Reviews","description":"A block that shows the reviews for a product.","category":"woocommerce","keywords":["WooCommerce"],"supports":{},"attributes":{},"usesContext":["postId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/related-products","version":"1.0.0","title":"Related Products","icon":"product","description":"Display related products.","category":"woocommerce","supports":{"align":true,"reusable":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},function(e){e.exports=JSON.parse('{"name":"woocommerce/product-meta","version":"1.0.0","title":"Product Meta","icon":"product","description":"Display a product’s SKU, categories, tags, and more.","category":"woocommerce","supports":{"align":true,"reusable":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},,,,,,,,,,,,,,,function(e,t){},function(e,t,c){"use strict";var o=c(91);let r={headingLevel:{type:"number",default:2},showProductLink:{type:"boolean",default:!0},linkTarget:{type:"string"},productId:{type:"number",default:0}};Object(o.b)()&&(r={...r,align:{type:"string"}}),t.a=r},function(e,t,c){"use strict";const o={showProductLink:{type:"boolean",default:!0},showSaleBadge:{type:"boolean",default:!0},saleBadgeAlign:{type:"string",default:"right"},imageSizing:{type:"string",default:c(58).a.SINGLE},productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductBlock:{type:"boolean",default:!1}};t.a=o},function(e,t,c){"use strict";t.a={showFormElements:{type:"boolean",default:!1},productId:{type:"number",default:0}}},function(e,t,c){"use strict";var o=c(0),r=c(4),n=c.n(r),a=c(1),s=c(45),l=c(544),i=c(7),u=c(9);const d={PRISTINE:"pristine",IDLE:"idle",DISABLED:"disabled",PROCESSING:"processing",BEFORE_PROCESSING:"before_processing",AFTER_PROCESSING:"after_processing"},b={status:d.PRISTINE,hasError:!1,quantity:0,processingResponse:null,requestParams:{}},p={SET_PRISTINE:"set_pristine",SET_IDLE:"set_idle",SET_DISABLED:"set_disabled",SET_PROCESSING:"set_processing",SET_BEFORE_PROCESSING:"set_before_processing",SET_AFTER_PROCESSING:"set_after_processing",SET_PROCESSING_RESPONSE:"set_processing_response",SET_HAS_ERROR:"set_has_error",SET_NO_ERROR:"set_no_error",SET_QUANTITY:"set_quantity",SET_REQUEST_PARAMS:"set_request_params"},{SET_PRISTINE:m,SET_IDLE:g,SET_DISABLED:O,SET_PROCESSING:h,SET_BEFORE_PROCESSING:j,SET_AFTER_PROCESSING:_,SET_PROCESSING_RESPONSE:E,SET_HAS_ERROR:w,SET_NO_ERROR:f,SET_QUANTITY:k,SET_REQUEST_PARAMS:v}=p,y=()=>({type:g}),S=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=e?w:f;return{type:t}},{SET_PRISTINE:C,SET_IDLE:x,SET_DISABLED:N,SET_PROCESSING:P,SET_BEFORE_PROCESSING:T,SET_AFTER_PROCESSING:I,SET_PROCESSING_RESPONSE:A,SET_HAS_ERROR:R,SET_NO_ERROR:B,SET_QUANTITY:L,SET_REQUEST_PARAMS:D}=p,{PRISTINE:F,IDLE:M,DISABLED:V,PROCESSING:q,BEFORE_PROCESSING:z,AFTER_PROCESSING:H}=d,G=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,{quantity:c,type:o,data:r}=arguments.length>1?arguments[1]:void 0;switch(o){case C:e=b;break;case x:e=t.status!==M?{...t,status:M}:t;break;case N:e=t.status!==V?{...t,status:V}:t;break;case L:e=c!==t.quantity?{...t,quantity:c}:t;break;case D:e={...t,requestParams:{...t.requestParams,...r}};break;case A:e={...t,processingResponse:r};break;case P:e=t.status!==q?{...t,status:q,hasError:!1}:t,e=!1===e.hasError?e:{...e,hasError:!1};break;case T:e=t.status!==z?{...t,status:z,hasError:!1}:t;break;case I:e=t.status!==H?{...t,status:H}:t;break;case R:e=t.hasError?t:{...t,hasError:!0},e=t.status===q||t.status===z?{...e,status:M}:e;break;case B:e=t.hasError?{...t,hasError:!1}:t}return e!==t&&o!==C&&e.status===F&&(e.status=M),e};var Q=c(105),Y=c(270);const W=e=>({onAddToCartAfterProcessingWithSuccess:Object(Y.a)("add_to_cart_after_processing_with_success",e),onAddToCartProcessingWithError:Object(Y.a)("add_to_cart_after_processing_with_error",e),onAddToCartBeforeProcessing:Object(Y.a)("add_to_cart_before_processing",e)});var U=c(334),$=c(62);const K=Object(o.createContext)({product:{},productType:"simple",productIsPurchasable:!0,productHasOptions:!1,supportsFormElements:!0,showFormElements:!1,quantity:0,minQuantity:1,maxQuantity:99,requestParams:{},isIdle:!1,isDisabled:!1,isProcessing:!1,isBeforeProcessing:!1,isAfterProcessing:!1,hasError:!1,eventRegistration:{onAddToCartAfterProcessingWithSuccess:e=>{},onAddToCartAfterProcessingWithError:e=>{},onAddToCartBeforeProcessing:e=>{}},dispatchActions:{resetForm:()=>{},submitForm:()=>{},setQuantity:e=>{},setHasError:e=>{},setAfterProcessing:e=>{},setRequestParams:e=>{}}}),J=()=>Object(o.useContext)(K),X=e=>{var t,c,r,n;let{children:p,product:g,showFormElements:w}=e;const[f,C]=Object(o.useReducer)(G,b),[x,N]=Object(o.useReducer)(Q.b,{}),P=Object(s.a)(x),{createErrorNotice:T}=Object(i.useDispatch)("core/notices"),{setValidationErrors:I}=Object(i.useDispatch)(u.VALIDATION_STORE_KEY),A=Object(o.useMemo)(()=>({onAddToCartAfterProcessingWithSuccess:W(N).onAddToCartAfterProcessingWithSuccess,onAddToCartAfterProcessingWithError:W(N).onAddToCartAfterProcessingWithError,onAddToCartBeforeProcessing:W(N).onAddToCartBeforeProcessing}),[N]),R=Object(o.useMemo)(()=>({resetForm:()=>{C({type:m})},submitForm:()=>{C({type:j})},setQuantity:e=>{C((e=>({type:k,quantity:e}))(e))},setHasError:e=>{C(S(e))},setRequestParams:e=>{C((e=>({type:v,data:e}))(e))},setAfterProcessing:e=>{C({type:E,data:e}),C({type:_})}}),[]);Object(o.useEffect)(()=>{const e=f.status,t=!g.id||!Object(l.a)(g);e!==d.DISABLED||t?e!==d.DISABLED&&t&&C({type:O}):C(y())},[f.status,g,C]),Object(o.useEffect)(()=>{f.status===d.BEFORE_PROCESSING&&(((e,t)=>{const c=Object(i.select)("core/notices").getNotices("wc/add-to-cart"),{removeNotice:o}=Object(i.dispatch)("core/notices");c.filter(e=>"error"===e.status).forEach(e=>o(e.id,"wc/add-to-cart"))})(),Object(U.a)(P,"add_to_cart_before_processing",{}).then(e=>{!0!==e?(Array.isArray(e)&&e.forEach(e=>{let{errorMessage:t,validationErrors:c}=e;t&&T(t,{context:"wc/add-to-cart"}),c&&I(c)}),C(y())):C({type:h})}))},[f.status,I,T,C,P,null==g?void 0:g.id]),Object(o.useEffect)(()=>{if(f.status===d.AFTER_PROCESSING){const e={processingResponse:f.processingResponse},t=e=>{let t=!1;return e.forEach(e=>{const{message:c,messageContext:o}=e;(Object($.b)(e)||Object($.c)(e))&&c&&(t=!0,T(c,o?{context:o}:void 0))}),t};if(f.hasError)return void Object(U.b)(P,"add_to_cart_after_processing_with_error",e).then(c=>{if(!t(c)){var o;const t=(null===(o=e.processingResponse)||void 0===o?void 0:o.message)||Object(a.__)("Something went wrong. Please contact us for assistance.","woocommerce");T(t,{id:"add-to-cart",context:"woocommerce/single-product/"+((null==g?void 0:g.id)||0)})}C(y())});Object(U.b)(P,"add_to_cart_after_processing_with_success",e).then(e=>{t(e)?C(S(!0)):C(y())})}},[f.status,f.hasError,f.processingResponse,R,T,P,null==g?void 0:g.id]);const B=Object(l.b)(g),L={product:g,productType:g.type||"simple",productIsPurchasable:Object(l.a)(g),productHasOptions:g.has_options||!1,supportsFormElements:B,showFormElements:w&&B,quantity:f.quantity||(null==g||null===(t=g.add_to_cart)||void 0===t?void 0:t.minimum)||1,minQuantity:(null==g||null===(c=g.add_to_cart)||void 0===c?void 0:c.minimum)||1,maxQuantity:(null==g||null===(r=g.add_to_cart)||void 0===r?void 0:r.maximum)||99,multipleOf:(null==g||null===(n=g.add_to_cart)||void 0===n?void 0:n.multiple_of)||1,requestParams:f.requestParams,isIdle:f.status===d.IDLE,isDisabled:f.status===d.DISABLED,isProcessing:f.status===d.PROCESSING,isBeforeProcessing:f.status===d.BEFORE_PROCESSING,isAfterProcessing:f.status===d.AFTER_PROCESSING,hasError:f.hasError,eventRegistration:A,dispatchActions:R};return Object(o.createElement)(K.Provider,{value:L},p)};var Z=c(16),ee=c.n(Z),te=c(14),ce=c(262),oe=c(47),re=()=>{const{dispatchActions:e,product:t,quantity:c,eventRegistration:r,hasError:n,isProcessing:s,requestParams:l}=J(),{showAllValidationErrors:d}=Object(i.useDispatch)(u.VALIDATION_STORE_KEY),b=Object(i.useSelect)(e=>e(u.VALIDATION_STORE_KEY).hasValidationErrors),{createErrorNotice:p,removeNotice:m}=Object(i.useDispatch)("core/notices"),{receiveCart:g}=Object(oe.a)(),[O,h]=Object(o.useState)(!1),j=!n&&s,_=Object(o.useCallback)(()=>!b()||(d(),{type:"error"}),[b,d]);Object(o.useEffect)(()=>{const e=r.onAddToCartBeforeProcessing(_,0);return()=>{e()}},[r,_]);const E=Object(o.useCallback)(()=>{h(!0),m("add-to-cart","woocommerce/single-product/"+((null==t?void 0:t.id)||0));const o={id:t.id||0,quantity:c,...l};ee()({path:"/wc/store/v1/cart/add-item",method:"POST",data:o,cache:"no-store",parse:!1}).then(c=>{ee.a.setNonce(c.headers),c.json().then((function(o){c.ok?g(o):(o.body&&o.body.message?p(Object(te.decodeEntities)(o.body.message),{id:"add-to-cart",context:"woocommerce/single-product/"+((null==t?void 0:t.id)||0)}):p(Object(a.__)("Something went wrong. Please contact us for assistance.","woocommerce"),{id:"add-to-cart",context:"woocommerce/single-product/"+((null==t?void 0:t.id)||0)}),e.setHasError()),Object(ce.b)({preserveCartData:!0}),e.setAfterProcessing(o),h(!1)}))}).catch(t=>{t.json().then((function(t){var c;null!==(c=t.data)&&void 0!==c&&c.cart&&g(t.data.cart),e.setHasError(),e.setAfterProcessing(t),h(!1)}))})},[t,p,m,g,e,c,l]);return Object(o.useEffect)(()=>{j&&!O&&E()},[j,E,O]),null};const ne=e=>{let{children:t,product:c,showFormElements:r}=e;return Object(o.createElement)(X,{product:c,showFormElements:r},t,Object(o.createElement)(re,null))};var ae=c(25),se=c(122),le=c(53),ie=(c(329),c(65)),ue=c(74),de=c(562),be=c(89),pe=c(273);const me=e=>{let{className:t,href:c,text:r,onClick:n}=e;return Object(o.createElement)(ie.a,{className:t,href:c,onClick:n,rel:"nofollow"},r)},ge=e=>{let{className:t,quantityInCart:c,isProcessing:r,isDisabled:n,isDone:s,onClick:l}=e;return Object(o.createElement)(ie.a,{className:t,disabled:n,showSpinner:r,onClick:l},s&&c>0?Object(a.sprintf)( /* translators: %s number of products in cart. */ Object(a._n)("%d in cart","%d in cart",c,"woocommerce"),c):Object(a.__)("Add to cart","woocommerce"),!!s&&Object(o.createElement)(ue.a,{icon:de.a}))};var Oe=()=>{const{showFormElements:e,productIsPurchasable:t,productHasOptions:c,product:r,productType:n,isDisabled:s,isProcessing:l,eventRegistration:i,hasError:u,dispatchActions:d}=J(),{parentName:b}=Object(ae.useInnerBlockLayoutContext)(),{dispatchStoreEvent:p}=Object(be.a)(),{cartQuantity:m}=Object(pe.a)(r.id||0),[g,O]=Object(o.useState)(!1),h=r.add_to_cart||{url:"",text:""};return Object(o.useEffect)(()=>{const e=i.onAddToCartAfterProcessingWithSuccess(()=>(u||O(!0),!0),0);return()=>{e()}},[i,u]),(e||!c&&"simple"===n)&&t?Object(o.createElement)(ge,{className:"wc-block-components-product-add-to-cart-button",quantityInCart:m,isDisabled:s,isProcessing:l,isDone:g,onClick:()=>{d.submitForm("woocommerce/single-product/"+((null==r?void 0:r.id)||0)),p("cart-add-item",{product:r,listName:b})}}):Object(o.createElement)(me,{className:"wc-block-components-product-add-to-cart-button",href:h.url,text:h.text||Object(a.__)("View Product","woocommerce"),onClick:()=>{p("product-view-link",{product:r,listName:b})}})},he=c(110),je=e=>{let{disabled:t,min:c,max:r,step:n=1,value:a,onChange:s}=e;const l=void 0!==r,i=Object(he.a)(e=>{let t=e;l&&(t=Math.min(t,Math.floor(r/n)*n)),t=Math.max(t,Math.ceil(c/n)*n),t=Math.floor(t/n)*n,t!==e&&(null==s||s(t))},300);return Object(o.createElement)("input",{className:"wc-block-components-product-add-to-cart-quantity",type:"number",value:a,min:c,max:r,step:n,hidden:1===r,disabled:t,onChange:e=>{null==s||s(e.target.value),i(Number(e.target.value))}})},_e=e=>{let{reason:t=Object(a.__)("Sorry, this product cannot be purchased.","woocommerce")}=e;return Object(o.createElement)("div",{className:"wc-block-components-product-add-to-cart-unavailable"},t)},Ee=()=>{const{product:e,quantity:t,minQuantity:c,maxQuantity:r,multipleOf:n,dispatchActions:s,isDisabled:l}=J();return e.id&&!e.is_purchasable?Object(o.createElement)(_e,null):e.id&&!e.is_in_stock?Object(o.createElement)(_e,{reason:Object(a.__)("This product is currently out of stock and cannot be purchased.","woocommerce")}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(je,{value:t,min:c,max:r,step:n,disabled:l,onChange:s.setQuantity}),Object(o.createElement)(Oe,null))},we=(c(364),c(592)),fe=c(12);const ke={value:"",label:Object(a.__)("Select an option","woocommerce")};var ve=e=>{let{attributeName:t,options:c=[],value:r="",onChange:s=(()=>{}),errorMessage:l=Object(a.__)("Please select a value.","woocommerce")}=e;const d=t,{setValidationErrors:b,clearValidationError:p}=Object(i.useDispatch)(u.VALIDATION_STORE_KEY),{error:m}=Object(i.useSelect)(e=>({error:e(u.VALIDATION_STORE_KEY).getValidationError(d)||{}}));return Object(o.useEffect)(()=>{r?p(d):b({[d]:{message:l,hidden:!0}})},[r,d,l,p,b]),Object(o.useEffect)(()=>()=>{p(d)},[d,p]),Object(o.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker__container"},Object(o.createElement)(we.a,{label:Object(te.decodeEntities)(t),value:r||"",options:[ke,...c],onChange:s,required:!0,className:n()("wc-block-components-product-add-to-cart-attribute-picker__select",{"has-error":(null==m?void 0:m.message)&&!(null!=m&&m.hidden)})}),Object(o.createElement)(fe.ValidationInputError,{propertyName:d,elementId:d}))},ye=c(28),Se=c(56);const Ce=(e,t,c)=>{const o=Object.values(t).map(e=>{let{id:t}=e;return t});if(Object.values(c).every(e=>""===e))return o;const r=Object.keys(e);return o.filter(e=>r.every(o=>{const r=c[o]||"",n=t["id:"+e].attributes[o];return""===r||null===n||n===r}))};var xe=e=>{let{attributes:t,variationAttributes:c,setRequestParams:r}=e;const n=Object(s.a)(t),a=Object(s.a)(c),[l,i]=Object(o.useState)(0),[u,d]=Object(o.useState)({}),[b,p]=Object(o.useState)(!1),m=Object(o.useMemo)(()=>((e,t,c)=>{const o={},r=Object.keys(e),n=Object.values(c).filter(Boolean).length>0;return r.forEach(r=>{const a=e[r],s={...c,[r]:null},l=n?Ce(e,t,s):null,i=null!==l?l.map(e=>t["id:"+e].attributes[r]):null;o[r]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.values(e).map(e=>{let{name:c,slug:o}=e;return null===t||t.includes(null)||t.includes(o)?{value:o,label:Object(te.decodeEntities)(c)}:null}).filter(Boolean)}(a.terms,i)}),o})(n,a,u),[u,n,a]);return Object(o.useEffect)(()=>{if(!b){const e=(e=>Object(ye.b)(e)?0===Object.keys(e).length?{}:Object.values(e).reduce((e,t)=>{const c=t.terms.filter(e=>e.default);var o;return c.length>0&&(e[t.name]=null===(o=c[0])||void 0===o?void 0:o.slug),e},{}):{})(t);e&&d({...e}),p(!0)}},[u,t,b]),Object(o.useEffect)(()=>{Object.values(u).filter(e=>""!==e).length===Object.keys(n).length?i(((e,t,c)=>Ce(e,t,c)[0]||0)(n,a,u)):l>0&&i(0)},[u,l,n,a]),Object(o.useEffect)(()=>{r({id:l,variation:Object.keys(u).map(e=>({attribute:e,value:u[e]}))})},[r,l,u]),Object(o.createElement)("div",{className:"wc-block-components-product-add-to-cart-attribute-picker"},Object.keys(n).map(e=>Object(o.createElement)(ve,{key:e,attributeName:e,options:m[e].filter(Boolean),value:u[e],onChange:t=>{d({...u,[e]:t})}})))},Ne=e=>{let{dispatchers:t,product:c}=e;const r=(e=>e?Object(Se.a)(Object.values(e).filter(e=>{let{has_variations:t}=e;return t}),"name"):{})(c.attributes),n=(e=>{if(!e)return{};const t={};return e.forEach(e=>{let{id:c,attributes:o}=e;t["id:"+c]={id:c,attributes:o.reduce((e,t)=>{let{name:c,value:o}=t;return e[c]=o,e},{})}}),t})(c.variations);return 0===Object.keys(r).length||0===Object.keys(n).length?null:Object(o.createElement)(xe,{attributes:r,variationAttributes:n,setRequestParams:t.setRequestParams})},Pe=()=>{const{product:e,quantity:t,minQuantity:c,maxQuantity:r,multipleOf:n,dispatchActions:s,isDisabled:l}=J();return e.id&&!e.is_purchasable?Object(o.createElement)(_e,null):e.id&&!e.is_in_stock?Object(o.createElement)(_e,{reason:Object(a.__)("This product is currently out of stock and cannot be purchased.","woocommerce")}):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(Ne,{product:e,dispatchers:s}),Object(o.createElement)(je,{value:t,min:c,max:r,step:n,disabled:l,onChange:s.setQuantity}),Object(o.createElement)(Oe,null))},Te=()=>Object(o.createElement)(Oe,null),Ie=()=>Object(o.createElement)("p",null,"This is a placeholder for the grouped products form element.");const Ae=()=>{const{showFormElements:e,productType:t}=J();return e?"variable"===t?Object(o.createElement)(Pe,null):"grouped"===t?Object(o.createElement)(Ie,null):"external"===t?Object(o.createElement)(Te,null):"simple"===t||"variation"===t?Object(o.createElement)(Ee,null):null:Object(o.createElement)(Oe,null)};t.a=Object(le.withProductDataContext)(e=>{let{className:t,showFormElements:c}=e;const{product:r}=Object(ae.useProductDataContext)(),a=n()(t,"wc-block-components-product-add-to-cart",{"wc-block-components-product-add-to-cart--placeholder":Object(se.a)(r)});return Object(o.createElement)(ne,{product:r,showFormElements:c},Object(o.createElement)("div",{className:a},Object(o.createElement)(Ae,null)))})},function(e,t,c){"use strict";c.d(t,"a",(function(){return a})),c.d(t,"b",(function(){return s}));var o=c(62),r=c(28);const n=e=>Object(r.b)(e)&&Object(r.c)(e,"type"),a=async(e,t,c)=>{const r=Object(o.a)(e,t),n=[];for(const e of r)try{const t=await Promise.resolve(e.callback(c));"object"==typeof t&&n.push(t)}catch(e){console.error(e)}return!n.length||n},s=async(e,t,c)=>{const r=[],a=Object(o.a)(e,t);for(const e of a)try{const t=await Promise.resolve(e.callback(c));if(!n(t))continue;if(!t.hasOwnProperty("type"))throw new Error("Returned objects from event emitter observers must return an object with a type property");if(Object(o.b)(t)||Object(o.c)(t))return r.push(t),r;r.push(t)}catch(e){return console.error(e),r.push({type:o.e.ERROR}),r}return r}},,,,,function(e,t,c){"use strict";c.r(t);var o=c(0),r=c(4),n=c.n(r),a=c(127),s=c(18),l=c(25),i=c(86),u=c(53);c(361),t.default=Object(u.withProductDataContext)(e=>{const{className:t}=e,{parentClassName:c}=Object(l.useInnerBlockLayoutContext)(),{product:r}=Object(l.useProductDataContext)(),u=Object(i.a)(e);if(!r)return Object(o.createElement)("div",{className:n()(t,"wc-block-components-product-summary",{[c+"__product-summary"]:c})});const d=r.short_description?r.short_description:r.description;return d?Object(o.createElement)(a.a,{className:n()(t,u.className,"wc-block-components-product-summary",{[c+"__product-summary"]:c}),source:d,maxLength:150,countType:s.o.wordCountType||"words",style:u.style}):null})},function(e,t,c){"use strict";c.r(t);var o=c(6),r=c.n(o),n=c(0),a=c(1),s=c(4),l=c.n(s),i=c(25),u=c(53),d=c(86);c(362);const b=e=>{let{parentClassName:t,sku:c,className:o,style:r}=e;return Object(n.createElement)("div",{className:l()(o,{[t+"__product-sku"]:t}),style:r},Object(a.__)("SKU:","woocommerce")," ",Object(n.createElement)("strong",null,c))};t.default=Object(u.withProductDataContext)(e=>{const{className:t}=e,c=Object(d.a)(e),{parentClassName:o}=Object(i.useInnerBlockLayoutContext)(),{product:a}=Object(i.useProductDataContext)(),s=a.sku;return e.isDescendentOfSingleProductTemplate?Object(n.createElement)(b,{parentClassName:o,className:t,sku:"Product SKU"}):s?Object(n.createElement)(b,r()({className:t,parentClassName:o,sku:s},e.isDescendantOfAllProducts&&{className:l()(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",c.className),style:{...c.style}})):null})},function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return b}));var o=c(6),r=c.n(o),n=c(0),a=c(1),s=c(4),l=c.n(s),i=c(25),u=c(86),d=c(53);c(363);const b=e=>{const{className:t}=e,c=Object(u.a)(e),{parentClassName:o}=Object(i.useInnerBlockLayoutContext)(),{product:s}=Object(i.useProductDataContext)();if(!s.id)return null;const d=!!s.is_in_stock,b=s.low_stock_remaining,p=s.is_on_backorder;return Object(n.createElement)("div",r()({className:l()(t,{[o+"__stock-indicator"]:o,"wc-block-components-product-stock-indicator--in-stock":d,"wc-block-components-product-stock-indicator--out-of-stock":!d,"wc-block-components-product-stock-indicator--low-stock":!!b,"wc-block-components-product-stock-indicator--available-on-backorder":!!p,...e.isDescendantOfAllProducts&&{[c.className]:c.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}})},e.isDescendantOfAllProducts&&{style:c.style}),(e=>{let{isInStock:t=!1,isLowStock:c=!1,lowStockAmount:o=null,isOnBackorder:r=!1}=e;return c&&null!==o?Object(a.sprintf)( /* translators: %d stock amount (number of items in stock for product) */ Object(a.__)("%d left in stock","woocommerce"),o):r?Object(a.__)("Available on backorder","woocommerce"):t?Object(a.__)("In stock","woocommerce"):Object(a.__)("Out of stock","woocommerce")})({isInStock:d,isLowStock:!!b,lowStockAmount:b,isOnBackorder:p}))};t.default=Object(d.withProductDataContext)(b)},function(e,t,c){"use strict";c.d(t,"a",(function(){return b})),c.d(t,"b",(function(){return p}));var o=c(0),r=c(2),n=c(1),a=c(202),s=c(309),l=c(42),i=c(109),u=c(81);const d="woocommerce/related-products",b={namespace:d,allowedControls:[],displayLayout:{type:"flex",columns:5},query:{perPage:5,pages:0,offset:0,postType:"product",order:"asc",orderBy:"title",author:"",search:"",exclude:[],sticky:"",inherit:!1},lock:{remove:!0,move:!0}},p=[["core/heading",{level:2,content:Object(n.__)("Related products","woocommerce")}],["core/post-template",{__woocommerceNamespace:i.b},[["woocommerce/product-image",{productId:0,imageSizing:"cropped"}],["core/post-title",{textAlign:"center",level:3,fontSize:"medium",isLink:!0,__woocommerceNamespace:u.b},[]],["woocommerce/product-price",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]],["woocommerce/product-button",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]]]]];Object(s.a)({blockName:l.f,blockMetadata:{},blockSettings:{description:Object(n.__)("Display related products.","woocommerce"),name:"Related Products Controls",title:Object(n.__)("Related Products Controls","woocommerce"),isActive:e=>e.namespace===d,icon:Object(o.createElement)(r.Icon,{icon:a.a,className:"wc-block-editor-components-block-icon wc-block-editor-components-block-icon--stacks"}),attributes:b,allowedControls:[],innerBlocks:p,scope:["block"]},isVariationBlock:!0,variationName:d})},,,,,,,,,,,,,,,,,,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,function(e,t,c){e.exports=c(502)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,c){"use strict";c.d(t,"a",(function(){return n}));var o=c(1),r=c(18);const n=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:Object(o.__)("Fly your WordPress banner with this beauty! Deck out your office space or add it to your kids walls. This banner will spruce up any space it’s hung!","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",price:"7.99",price_html:'$7.99',images:[{id:1,src:r.m+"previews/pennant.jpg",thumbnail:r.m+"previews/pennant.jpg",name:"pennant-1.jpg",alt:"WordPress Pennant",srcset:"",sizes:""}],average_rating:5,categories:[{id:1,name:"Decor",slug:"decor",link:"https://example.org"}],review_count:1,prices:{currency_code:"GBP",decimal_separator:".",thousand_separator:",",decimals:2,price_prefix:"£",price_suffix:"",price:"7.99",regular_price:"9.99",sale_price:"7.99",price_range:null},add_to_cart:{text:Object(o.__)("Add to cart","woocommerce"),description:Object(o.__)("Add to cart","woocommerce")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}]},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.r(t),c.d(t,"metadata",(function(){return Ot})),c.d(t,"name",(function(){return ac}));var o=c(0),r=c(8),n=c(74),a=c(553),s=c(91),l=c(5),i=c(1),u=c(4),d=c.n(u),b={category:"woocommerce-product-elements",keywords:[Object(i.__)("WooCommerce","woocommerce")],icon:{src:Object(o.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"})},supports:{html:!1},ancestor:["woocommerce/all-products","woocommerce/single-product"],save:e=>{let{attributes:t}=e;return t.isDescendentOfQueryLoop||t.isDescendentOfSingleProductBlock||t.isDescendentOfSingleProductTemplate?null:Object(o.createElement)("div",{className:d()("is-loading",t.className)})},deprecated:[{attributes:{},save:()=>null}]},p=c(330),m=c(2),g=c(11),O=c(10);function h(e){let{level:t}=e;const c={1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z"};return c.hasOwnProperty(t)?Object(o.createElement)(O.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(O.Path,{d:c[t]})):null}class j extends o.Component{createLevelControl(e,t,c){const r=e===t;return{icon:Object(o.createElement)(h,{level:e}),title:Object(i.sprintf)( /* translators: %s: heading level e.g: "2", "3", "4" */ Object(i.__)("Heading %d","woocommerce"),e),isActive:r,onClick:()=>c(e)}}render(){const{isCollapsed:e=!0,minLevel:t,maxLevel:c,selectedLevel:r,onChange:n}=this.props,a=Array.from({length:c-t+1},(e,c)=>c+t);return Object(o.createElement)(m.ToolbarGroup,{isCollapsed:e,icon:Object(o.createElement)(h,{level:r}),controls:a.map(e=>this.createLevelControl(e,r,n))})}}var _=j,E=c(208),w=c(104),f=c(161),k=c(25);c(379);var v=e=>t=>c=>{var r;const n=Object(k.useProductDataContext)(),{attributes:a,setAttributes:s}=c,{productId:u}=a,[d,b]=Object(o.useState)(!u);return n.hasContext||Number.isFinite(null===(r=c.context)||void 0===r?void 0:r.queryId)?Object(o.createElement)(t,c):Object(o.createElement)(o.Fragment,null,d?Object(o.createElement)(m.Placeholder,{icon:e.icon||"",label:e.label||"",className:"wc-atomic-blocks-product"},!!e.description&&Object(o.createElement)("div",null,e.description),Object(o.createElement)("div",{className:"wc-atomic-blocks-product__selection"},Object(o.createElement)(w.a,{selected:u||0,showVariations:!0,onChange:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s({productId:e[0]?e[0].id:0})}}),Object(o.createElement)(m.Button,{isSecondary:!0,disabled:!u,onClick:()=>{b(!1)}},Object(i.__)("Done","woocommerce")))):Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BlockControls,null,Object(o.createElement)(m.ToolbarGroup,null,Object(o.createElement)(f.a,{onClick:()=>b(!0)},Object(i.__)("Switch product…","woocommerce")))),Object(o.createElement)(t,c)))},y=c(72);c(380);const S=e=>{let{attributes:t,setAttributes:c}=e;const r=Object(l.useBlockProps)(),{headingLevel:n,showProductLink:a,align:u,linkTarget:d}=t;return Object(o.createElement)("div",r,Object(o.createElement)(l.BlockControls,null,Object(o.createElement)(_,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:n,onChange:e=>c({headingLevel:e})}),Object(s.b)()&&Object(o.createElement)(l.AlignmentToolbar,{value:u,onChange:e=>{c({align:e})}})),Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Link settings","woocommerce")},Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Make title a link","woocommerce"),checked:a,onChange:()=>c({showProductLink:!a})}),a&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Open in new tab","woocommerce"),onChange:e=>c({linkTarget:e?"_blank":"_self"}),checked:"_blank"===d})))),Object(o.createElement)(m.Disabled,null,Object(o.createElement)(E.b,t)))};var C=Object(s.b)()?Object(g.compose)([v({icon:y.b,label:y.c,description:Object(i.__)("Choose a product to display its title.","woocommerce")})])(S):S;const x={...b,apiVersion:2,title:y.c,description:y.a,icon:{src:y.b},attributes:p.a,edit:C,save:e=>{let{attributes:t}=e;return Object(o.createElement)("div",l.useBlockProps.save({className:d()("is-loading",t.className)}))},supports:{...b.supports,...Object(s.b)()&&{typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0},color:{text:!0,background:!0,link:!1,gradients:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,__experimentalSkipSerialization:!0}},__experimentalSelector:".wc-block-components-product-title"}}};Object(r.registerBlockType)("woocommerce/product-title",x);var N=c(7),P=c(225);const T={...b.supports,...Object(s.b)()&&{color:{text:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalSkipSerialization:!0,__experimentalLetterSpacing:!0},__experimentalSelector:".wp-block-woocommerce-product-price .wc-block-components-product-price"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}};var I=c(556);const A=Object(i.__)("Product Price","woocommerce"),R=Object(o.createElement)(n.a,{icon:I.a,className:"wc-block-editor-components-block-icon"}),B=Object(i.__)("Display the price of a product.","woocommerce"),{ancestor:L,...D}=b,F={...D,apiVersion:2,title:A,description:B,usesContext:["query","queryId","postId"],icon:{src:R},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},textAlign:{type:"string",default:""},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1},isDescendentOfSingleProductBlock:{type:"boolean",default:!1}},supports:T,edit:e=>{let{attributes:t,setAttributes:c,context:r}=e;const n=Object(l.useBlockProps)(),a={...t,...r},s=Number.isFinite(r.queryId),i=Object(N.useSelect)(e=>{const t=e("core/edit-site"),c=null==t?void 0:t.getEditedPostId();return(null==c?void 0:c.includes("//single-product"))&&!s},[s]);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:s,isDescendentOfSingleProductTemplate:i}),[s,i,c]),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BlockControls,null,Object(o.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{c({textAlign:e})}})),Object(o.createElement)("div",n,Object(o.createElement)(P.default,a)))}};Object(r.registerBlockType)("woocommerce/product-price",F);var M=c(6),V=c.n(M),q=c(3),z=c(135),H=c(211),G=c(557);const Q=Object(i.__)("Product Image","woocommerce"),Y=Object(o.createElement)(n.a,{icon:G.a,className:"wc-block-editor-components-block-icon"}),W=Object(i.__)("Display the main product image.","woocommerce");var U=c(58),$=v({icon:Y,label:Q,description:W})(e=>{let{attributes:t,setAttributes:c,context:r}=e;const{showProductLink:n,imageSizing:a,showSaleBadge:s,saleBadgeAlign:u}=t,d=Object(l.useBlockProps)(),b=Number.isFinite(r.queryId),p=Object(q.getSettingWithCoercion)("is_block_theme_enabled",!1,z.a);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:b}),[c,b]),Object(o.createElement)("div",d,Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Content","woocommerce")},Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Link to Product Page","woocommerce"),help:Object(i.__)("Links the image to the single product listing.","woocommerce"),checked:n,onChange:()=>c({showProductLink:!n})}),Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Show On-Sale Badge","woocommerce"),help:Object(i.__)("Display a “sale” badge if the product is on-sale.","woocommerce"),checked:s,onChange:()=>c({showSaleBadge:!s})}),s&&Object(o.createElement)(m.__experimentalToggleGroupControl,{label:Object(i.__)("Sale Badge Alignment","woocommerce"),value:u,onChange:e=>c({saleBadgeAlign:e})},Object(o.createElement)(m.__experimentalToggleGroupControlOption,{value:"left",label:Object(i.__)("Left","woocommerce")}),Object(o.createElement)(m.__experimentalToggleGroupControlOption,{value:"center",label:Object(i.__)("Center","woocommerce")}),Object(o.createElement)(m.__experimentalToggleGroupControlOption,{value:"right",label:Object(i.__)("Right","woocommerce")})),!p&&Object(o.createElement)(m.__experimentalToggleGroupControl,{label:Object(i.__)("Image Sizing","woocommerce"),help:Object(o.createInterpolateElement)(Object(i.__)("Product image cropping can be modified in the Customizer.","woocommerce"),{a:Object(o.createElement)("a",{href:Object(q.getAdminLink)("customize.php")+"?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images",target:"_blank",rel:"noopener noreferrer"})}),value:a,onChange:e=>c({imageSizing:e})},Object(o.createElement)(m.__experimentalToggleGroupControlOption,{value:U.a.SINGLE,label:Object(i.__)("Full Size","woocommerce")}),Object(o.createElement)(m.__experimentalToggleGroupControlOption,{value:U.a.THUMBNAIL,label:Object(i.__)("Cropped","woocommerce")})))),Object(o.createElement)(m.Disabled,null,Object(o.createElement)(H.b,V()({},t,r))))});const K={html:!1,...Object(s.b)()&&{__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0,__experimentalSkipSerialization:!0}},__experimentalSelector:".wc-block-components-product-image"}};var J=c(331);const X={...b,apiVersion:2,name:"woocommerce/product-image",title:Q,icon:{src:Y},keywords:["WooCommerce"],description:W,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template"],textdomain:"woocommerce",attributes:J.a,supports:K,edit:$};Object(r.registerBlockType)("woocommerce/product-image",{...X});var Z=c(226),ee=c(558);const te=Object(i.__)("Product Rating","woocommerce"),ce=Object(o.createElement)(n.a,{icon:ee.a,className:"wc-block-editor-components-block-icon"}),oe=Object(i.__)("Display the average rating of a product.","woocommerce");c(381);var re=v({icon:ce,label:te,description:Object(i.__)("Choose a product to display its rating.","woocommerce")})(e=>{let{attributes:t,setAttributes:c,context:r}=e;const n=Object(l.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),a={...t,...r},s=Number.isFinite(r.queryId);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:s}),[c,s]),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BlockControls,null,Object(o.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{c({textAlign:e||""})}})),Object(o.createElement)("div",n,Object(o.createElement)(Z.default,a)))});const ne={...Object(s.b)()&&{color:{text:!0,background:!1,link:!1,__experimentalSkipSerialization:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-rating"},...!Object(s.b)()&&"function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0}}},ae={...b,apiVersion:2,title:te,description:oe,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template"],icon:{src:ce},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},textAlign:{type:"string",default:""},isDescendentOfSingleProductBlock:{type:"boolean",default:!1}},supports:ne,edit:re};Object(r.registerBlockType)("woocommerce/product-rating",{...ae});const se={...Object(s.b)()&&{color:{text:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0,__experimentalSkipSerialization:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:".wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&!Object(s.b)()&&{spacing:{margin:!0}}};var le=c(227);function ie(e){let{selectedWidth:t,setAttributes:c}=e;return Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Width settings","woocommerce")},Object(o.createElement)(m.ButtonGroup,{"aria-label":Object(i.__)("Button width","woocommerce")},[25,50,75,100].map(e=>Object(o.createElement)(m.Button,{key:e,isSmall:!0,variant:e===t?"primary":void 0,onClick:()=>{var o;c({width:t===(o=e)?void 0:o})}},e,"%"))))}var ue=c(559);const de=Object(i.__)("Add to Cart Button","woocommerce"),be=Object(o.createElement)(n.a,{icon:ue.a,className:"wc-block-editor-components-block-icon"}),pe=Object(i.__)("Display a call to action button which either adds the product to the cart, or links to the product page.","woocommerce"),me={...b,apiVersion:2,title:de,description:pe,ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template"],usesContext:["query","queryId","postId"],icon:{src:be},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},textAlign:{type:"string",default:""},width:{type:"number"}},supports:se,edit:e=>{let{attributes:t,setAttributes:c,context:r}=e;const n=Object(l.useBlockProps)(),a=Number.isFinite(null==r?void 0:r.queryId),{width:s}=t;return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:a}),[c,a]),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(l.BlockControls,null,a&&Object(o.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{c({textAlign:e||""})}})),Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(ie,{selectedWidth:s,setAttributes:c})),Object(o.createElement)("div",n,Object(o.createElement)(m.Disabled,null,Object(o.createElement)(le.default,V()({},t,r,{className:d()(t.className,{["has-custom-width wp-block-button__width-"+s]:s})})))))},save:e=>{let{attributes:t}=e;return t.isDescendentOfQueryLoop?null:Object(o.createElement)("div",l.useBlockProps.save({className:d()("is-loading",t.className,{["has-custom-width wp-block-button__width-"+t.width]:t.width})}))},styles:[{name:"fill",label:Object(i.__)("Fill","woocommerce"),isDefault:!0},{name:"outline",label:Object(i.__)("Outline","woocommerce")}]};Object(r.registerBlockType)("woocommerce/product-button",{...me});var ge=c(339),Oe=c(78);c(382);var he=v({icon:Oe.b,label:Oe.c,description:Oe.a})(e=>{let{attributes:t}=e;const c=Object(l.useBlockProps)();return Object(o.createElement)("div",c,Object(o.createElement)(ge.default,t))});const je={...Object(s.b)()&&{color:{background:!1},typography:{fontSize:!0},__experimentalSelector:".wc-block-components-product-summary"}},_e={...b,apiVersion:2,title:Oe.c,description:Oe.a,icon:{src:Oe.b},attributes:{productId:{type:"number",default:0}},supports:je,edit:he,save:e=>{let{attributes:t}=e;return Object(o.createElement)("div",l.useBlockProps.save({className:d()("is-loading",t.className)}))}};Object(r.registerBlockType)("woocommerce/product-summary",_e);var Ee=c(149),we=c(560);const fe=Object(i.__)("On-Sale Badge","woocommerce"),ke=Object(o.createElement)(n.a,{icon:we.a,className:"wc-block-editor-components-block-icon"}),ve=Object(i.__)("Displays an on-sale badge if the product is on-sale.","woocommerce");var ye=v({icon:ke,label:fe,description:ve})(e=>{let{attributes:t,setAttributes:c,context:r}=e;const n=Object(l.useBlockProps)(),a={...t,...r},s=Number.isFinite(r.queryId);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:s}),[c,s]),Object(o.createElement)("div",n,Object(o.createElement)(Ee.default,a))});const Se={html:!1,...Object(s.b)()&&{color:{gradients:!0,background:!0,link:!1,__experimentalSkipSerialization:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalSkipSerialization:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}},__experimentalSelector:".wc-block-components-product-sale-badge"},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&!Object(s.b)()&&{spacing:{margin:!0}}},Ce={...b,title:fe,description:ve,icon:{src:ke},apiVersion:2,supports:Se,attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1}},edit:ye,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template"]};Object(r.registerBlockType)("woocommerce/product-sale-badge",{...Ce});var xe=c(151),Ne=c(340);const Pe={...b.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,...Object(s.b)()&&{__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0}},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}};var Te=Object(o.createElement)(O.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"}));const Ie=Object(i.__)("Product SKU","woocommerce"),Ae=Object(o.createElement)(n.a,{icon:Te,className:"wc-block-editor-components-block-icon"}),Re=Object(i.__)("Display the SKU of a product.","woocommerce"),{ancestor:Be,...Le}=b,De={...Le,apiVersion:2,title:Ie,description:Re,icon:{src:Ae},usesContext:["query","queryId","postId"],attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1},isDescendantOfAllProducts:{type:"boolean",default:!1},showProductSelector:{type:"boolean",default:!1}},ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-meta"],edit:e=>{let{attributes:t,setAttributes:c,context:r}=e;const{style:n,...a}=Object(l.useBlockProps)({className:"wc-block-components-product-sku wp-block-woocommerce-product-sku"}),s={...t,...r},i=Number.isFinite(r.queryId),u=Object(N.useSelect)(e=>{const t=e("core/edit-site"),c=null==t?void 0:t.getEditedPostId();return!!c&&c.includes("//single-product")&&!i},[i]);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:i,isDescendentOfSingleProductTemplate:u}),[c,i,u]),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(xe.a,null),Object(o.createElement)("div",V()({},a,{style:t.isDescendantOfAllProducts?void 0:n}),Object(o.createElement)(Ne.default,s)))},supports:Pe};Object(r.registerBlockType)("woocommerce/product-sku",{...De});var Fe=c(341),Me=c(561);const Ve=Object(i.__)("Product Stock Indicator","woocommerce"),qe=Object(o.createElement)(n.a,{icon:Me.a,className:"wc-block-editor-components-block-icon"}),ze=Object(i.__)("Display product stock status.","woocommerce");var He=v({icon:qe,label:Ve,description:ze})(e=>{let{attributes:t,setAttributes:c,context:r}=e;const{style:n,...a}=Object(l.useBlockProps)({className:"wc-block-components-product-stock-indicator"}),s={...t,...r},i=Number.isFinite(r.queryId);return Object(o.useEffect)(()=>c({isDescendentOfQueryLoop:i}),[c,i]),Object(o.createElement)("div",V()({},a,{style:t.isDescendantOfAllProducts?void 0:n}),Object(o.createElement)(xe.a,null),Object(o.createElement)(Fe.default,s))});const Ge={...b.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,...Object(s.b)()&&{__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0}},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}},Qe={...b,apiVersion:2,title:Ve,description:ze,icon:{src:qe},attributes:{productId:{type:"number",default:0},isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendantOfAllProducts:{type:"boolean",default:!1}},supports:Ge,edit:He,usesContext:["query","queryId","postId"],ancestor:["woocommerce/all-products","woocommerce/single-product","core/post-template"]};Object(r.registerBlockType)("woocommerce/product-stock-indicator",{...Qe});var Ye=c(544),We=(c(329),c(333)),Ue=c(274);const $e=Object(i.__)("Add to Cart","woocommerce"),Ke=Object(o.createElement)(n.a,{icon:Ue.a,className:"wc-block-editor-components-block-icon"}),Je={title:$e,description:Object(i.__)("Displays an add to cart button. Optionally displays other add to cart form elements.","woocommerce"),icon:{src:Ke},edit:v({icon:Ke,label:$e,description:Object(i.__)("Choose a product to display its add to cart form.","woocommerce")})(e=>{let{attributes:t,setAttributes:c}=e;const{product:r}=Object(k.useProductDataContext)(),{className:n,showFormElements:a}=t;return Object(o.createElement)("div",{className:d()(n,"wc-block-components-product-add-to-cart")},Object(o.createElement)(xe.a,{productId:r.id}),Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Layout","woocommerce")},Object(Ye.b)(r)?Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Display form elements","woocommerce"),help:Object(i.__)("Depending on product type, allow customers to select a quantity, variations etc.","woocommerce"),checked:a,onChange:()=>c({showFormElements:!a})}):Object(o.createElement)(m.Notice,{className:"wc-block-components-product-add-to-cart-notice",isDismissible:!1,status:"info"},Object(i.__)("This product does not support the block based add to cart form. A link to the product page will be shown instead.","woocommerce")))),Object(o.createElement)(m.Disabled,null,Object(o.createElement)(We.a,t)))}),attributes:c(332).a};Object(s.c)("woocommerce/product-add-to-cart",{...b,...Je});var Xe=c(309),Ze=c(308);c(386);const et=e=>{let{numberOfLines:t=1}=e;const c=Array.from({length:t},(e,t)=>Object(o.createElement)("span",{className:"wc-block-components-skeleton-text-line","aria-hidden":"true",key:t}));return Object(o.createElement)("div",{className:"wc-block-components-skeleton"},c)};c(385);const tt={edit:()=>{const e=Object(l.useBlockProps)({className:"wc-block-add-to-cart-form"});return Object(o.createElement)("div",e,Object(o.createElement)(m.Tooltip,{text:"Customer will see product add-to-cart options in this space, dependend on the product type. ",position:"bottom right"},Object(o.createElement)("div",{className:"wc-block-editor-container"},Object(o.createElement)(et,{numberOfLines:3}),Object(o.createElement)(m.Disabled,null,Object(o.createElement)("input",{type:"number",value:"1",className:"wc-block-editor-add-to-cart-form__quantity"}),Object(o.createElement)(m.Button,{variant:"primary",className:"wc-block-editor-add-to-cart-form__button"},Object(i.__)("Add to cart","woocommerce"))))))},icon:{src:Object(o.createElement)(n.a,{icon:ue.a,className:"wc-block-editor-components-block-icon"})},ancestor:["woocommerce/single-product"],save:()=>null};Object(Xe.a)({blockName:Ze.name,blockMetadata:Ze,blockSettings:tt});var ct=c(564),ot=c(18),rt=c(28);c(387);const nt=()=>Object(o.createElement)("div",{className:"wc-block-editor-product-gallery"},Object(o.createElement)("img",{src:ot.m+"block-placeholders/product-image-gallery.svg",alt:"Placeholder"}),Object(o.createElement)("div",{className:"wc-block-editor-product-gallery__other-images"},[...Array(4).keys()].map(e=>Object(o.createElement)("img",{key:e,src:ot.m+"block-placeholders/product-image-gallery.svg",alt:"Placeholder"}))));var at=c(310);c(388),Object(Xe.a)({blockName:at.name,blockMetadata:at,blockSettings:{icon:ct.a,edit:e=>{let{context:t}=e;const c=Object(l.useBlockProps)();return Object(rt.a)(t)?Object(o.createElement)("div",c,Object(o.createElement)(m.Disabled,null,Object(o.createElement)(nt,null))):Object(o.createElement)(o.Fragment,null)},ancestor:["woocommerce/single-product"]}});var st=c(311);const lt=e=>{let{id:t,title:c,active:r}=e;return Object(o.createElement)("li",{className:d()(t+"_tab",{active:r}),id:"tab-title-"+t,role:"tab","aria-controls":"tab-"+t},Object(o.createElement)("a",{href:"#tab-"+t},c))},it=e=>{let{id:t,content:c}=e;return Object(o.createElement)("div",{className:t+"_tab",id:"tab-title-"+t,role:"tab","aria-controls":"tab-"+t},c)};var ut=()=>{const e=Object(l.useBlockProps)(),t=[{id:"description",title:"Description",active:!0,content:Object(i.__)("This block lists description, attributes and reviews for a single product.","woocommerce")},{id:"additional_information",title:"Additional Information",active:!1},{id:"reviews",title:"Reviews",active:!1}],c=t.map(e=>{let{id:t,title:c,active:r}=e;return Object(o.createElement)(lt,{key:t,id:t,title:c,active:r})}),r=t.map(e=>{let{id:t,content:c}=e;return Object(o.createElement)(it,{key:t,id:t,content:c})});return Object(o.createElement)("div",e,Object(o.createElement)("ul",{className:"wc-tabs tabs",role:"tablist"},c),r)};Object(Xe.a)({blockName:st.name,blockMetadata:st,blockSettings:{icon:{src:()=>Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{src:ot.m+"/blocks/product-details/product-details-icon.svg",alt:""}))},edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(l.useBlockProps)({className:c});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",r,Object(o.createElement)(m.Disabled,null,Object(o.createElement)(ut,null))))},ancestor:["woocommerce/single-product"]}});var dt=c(312),bt=()=>{const e=Object(l.useBlockProps)();return Object(o.createElement)("div",e,Object(o.createElement)(m.Notice,{className:"wc-block-editor-related-products__notice",status:"info",isDismissible:!1},Object(o.createElement)("p",null,Object(i.__)("The products reviews and the form to add a new review will be displayed here according to your theme. The look you see here is not representative of what is going to look like, this is just a placeholder.","woocommerce"))),Object(o.createElement)("h2",null,Object(i.__)("3 reviews for this product","woocommerce")),Object(o.createElement)("img",{src:ot.m+"block-placeholders/product-reviews.svg",alt:"Placeholder"}),Object(o.createElement)("h3",null,Object(i.__)("Add a review","woocommerce")),Object(o.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__form-container"},Object(o.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},Object(o.createElement)("span",null,Object(i.__)("Your rating *","woocommerce")),Object(o.createElement)("p",{className:"wp-block-woocommerce-product-reviews__editor__stars"})),Object(o.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},Object(o.createElement)("span",null,Object(i.__)("Your review *","woocommerce")),Object(o.createElement)("textarea",null)),Object(o.createElement)("input",{type:"submit",className:"submit wp-block-button__link wp-element-button",value:Object(i.__)("Submit","woocommerce")})))};Object(Xe.a)({blockName:dt.name,blockMetadata:dt,blockSettings:{edit:e=>{let{attributes:t}=e;const{className:c}=t,r=Object(l.useBlockProps)({className:c});return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",r,Object(o.createElement)(m.Disabled,null,Object(o.createElement)(bt,null))))},ancestor:["woocommerce/single-product"]}});var pt=c(342);c(389);var mt=c(313);Object(Xe.a)({blockName:mt.name,blockMetadata:mt,blockSettings:{icon:Me.a,edit:()=>{const e=[["core/query",pt.a,pt.b]],t=Object(l.useBlockProps)();return Object(o.createElement)("div",t,Object(o.createElement)(l.InspectorControls,null,Object(o.createElement)(m.Notice,{className:"wc-block-editor-related-products__notice",status:"warning",isDismissible:!1},Object(o.createElement)("p",null,Object(i.__)("These products will vary depending on the main product in the page","woocommerce")))),Object(o.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return Object(o.createElement)("div",e,Object(o.createElement)(l.InnerBlocks.Content,null))},ancestor:["woocommerce/single-product"]}}),c(390);var gt=c(314);Object(Xe.a)({blockName:gt.name,blockMetadata:gt,blockSettings:{edit:()=>{const e=[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["woocommerce/product-sku",{isDescendentOfSingleProductTemplate:Object(N.useSelect)(e=>{const t=e("core/edit-site"),c=null==t?void 0:t.getEditedPostId();return null==c?void 0:c.includes("//single-product")},[])}],["core/post-terms",{prefix:"Category: ",term:"product_cat"}],["core/post-terms",{prefix:"Tags: ",term:"product_tag"}]]]],t=Object(l.useBlockProps)();return Object(o.createElement)("div",t,Object(o.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return Object(o.createElement)("div",e,Object(o.createElement)(l.InnerBlocks.Content,null))},icon:{src:()=>Object(o.createElement)("img",{src:ot.m+"/blocks/product-meta/product-meta-icon.svg",alt:""})},ancestor:["woocommerce/single-product"]}});var Ot=c(229);const ht=(e,t)=>{const{className:c,contentVisibility:o}=t;return d()(e,c,{"has-image":o&&o.image,"has-title":o&&o.title,"has-rating":o&&o.rating,"has-price":o&&o.price,"has-button":o&&o.button})},{attributes:jt}=Ot;var _t=[{attributes:Object.assign({},jt,{rows:{type:"number",default:1}}),save(e){let{attributes:t}=e;const c={"data-attributes":JSON.stringify(t)};return Object(o.createElement)("div",V()({className:ht("wc-block-all-products",t)},c),Object(o.createElement)(l.InnerBlocks.Content,null))}}],Et=c(22),wt=c.n(Et),ft=c(67),kt=c(539),vt=c(392),yt=c(247);const St=[["woocommerce/product-image",{imageSizing:U.a.THUMBNAIL}],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],Ct=e=>e&&0!==e.length?e.map(e=>{var t,c;return[e.name,{...e.attributes,product:void 0,children:e.innerBlocks.length>0?Ct(e.innerBlocks):[],..."woocommerce/product-button"===e.name&&{className:d()(e.attributes.className,{["has-custom-width wp-block-button__width-"+(null===(t=e.attributes)||void 0===t?void 0:t.width)]:null===(c=e.attributes)||void 0===c?void 0:c.width})},isDescendantOfAllProducts:!0}]}):[];var xt=c(121),Nt=c.n(xt),Pt=c(30);c(395);var Tt=e=>{let{currentPage:t,displayFirstAndLastPages:c=!0,displayNextAndPreviousArrows:r=!0,pagesToDisplay:n=3,onPageChange:a,totalPages:s}=e,{minIndex:l,maxIndex:u}=((e,t,c)=>{if(c<=2)return{minIndex:null,maxIndex:null};const o=e-1,r=Math.max(Math.floor(t-o/2),2),n=Math.min(Math.ceil(t+(o-(t-r))),c-1);return{minIndex:Math.max(Math.floor(t-(o-(n-t))),2),maxIndex:n}})(n,t,s);const b=c&&Boolean(1!==l),p=c&&Boolean(u!==s),m=c&&Boolean(l&&l>3),g=c&&Boolean(u&&ua(t-1),title:Object(i.__)("Previous page","woocommerce"),disabled:t<=1},Object(o.createElement)(Pt.a,{label:"←",screenReaderLabel:Object(i.__)("Previous page","woocommerce")})),b&&Object(o.createElement)("button",{className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":1===t,"wc-block-components-pagination__page--active":1===t}),onClick:()=>a(1),disabled:1===t},Object(o.createElement)(Pt.a,{label:"1",screenReaderLabel:Object(i.sprintf)( /* translators: %d is the page number (1, 2, 3...). */ Object(i.__)("Page %d","woocommerce"),1)})),m&&Object(o.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(i.__)("…","woocommerce")),O.map(e=>Object(o.createElement)("button",{key:e,className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===e,"wc-block-components-pagination__page--active":t===e}),onClick:t===e?void 0:()=>a(e),disabled:t===e},Object(o.createElement)(Pt.a,{label:e.toString(),screenReaderLabel:Object(i.sprintf)( /* translators: %d is the page number (1, 2, 3...). */ Object(i.__)("Page %d","woocommerce"),e)}))),g&&Object(o.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},Object(i.__)("…","woocommerce")),p&&Object(o.createElement)("button",{className:d()("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":t===s,"wc-block-components-pagination__page--active":t===s}),onClick:()=>a(s),disabled:t===s},Object(o.createElement)(Pt.a,{label:s.toString(),screenReaderLabel:Object(i.sprintf)( /* translators: %d is the page number (1, 2, 3...). */ Object(i.__)("Page %d","woocommerce"),s)})),r&&Object(o.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>a(t+1),title:Object(i.__)("Next page","woocommerce"),disabled:t>=s},Object(o.createElement)(Pt.a,{label:"→",screenReaderLabel:Object(i.__)("Next page","woocommerce")})))},It=c(103),At=c(57),Rt=c(113),Bt=c(9),Lt=c(45);var Dt=c(89);c(396);const Ft=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};var Mt=c(44),Vt=c(204),qt=()=>{const{parentClassName:e}=Object(k.useInnerBlockLayoutContext)();return Object(o.createElement)("div",{className:e+"__no-products"},Object(o.createElement)(n.a,{className:e+"__no-products-image",icon:Vt.a,size:100}),Object(o.createElement)("strong",{className:e+"__no-products-title"},Object(i.__)("No products","woocommerce")),Object(o.createElement)("p",{className:e+"__no-products-description"},Object(i.__)("There are currently no products available to display.","woocommerce")))},zt=c(565),Ht=e=>{let{resetCallback:t=(()=>{})}=e;const{parentClassName:c}=Object(k.useInnerBlockLayoutContext)();return Object(o.createElement)("div",{className:c+"__no-products"},Object(o.createElement)(n.a,{className:c+"__no-products-image",icon:zt.a,size:100}),Object(o.createElement)("strong",{className:c+"__no-products-title"},Object(i.__)("No products found","woocommerce")),Object(o.createElement)("p",{className:c+"__no-products-description"},Object(i.__)("We were unable to find any results based on your search.","woocommerce")),Object(o.createElement)("button",{onClick:t},Object(i.__)("Reset Search","woocommerce")))},Gt=c(132);c(394);var Qt=e=>{let{onChange:t,value:c}=e;return Object(o.createElement)(Gt.a,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",onChange:t,options:[{key:"menu_order",label:Object(i.__)("Default sorting","woocommerce")},{key:"popularity",label:Object(i.__)("Popularity","woocommerce")},{key:"rating",label:Object(i.__)("Average rating","woocommerce")},{key:"date",label:Object(i.__)("Latest","woocommerce")},{key:"price",label:Object(i.__)("Price: low to high","woocommerce")},{key:"price-desc",label:Object(i.__)("Price: high to low","woocommerce")}],screenReaderLabel:Object(i.__)("Order products by","woocommerce"),value:c})};const Yt=(e,t,c,r)=>{if(!c)return;const n=Object(kt.a)(e);return c.map((c,a)=>{let[s,l={}]=c,i=[];l.children&&l.children.length>0&&(i=Yt(e,t,l.children,r));const u=n[s];if(!u)return null;const d=t.id||0,b=["layout",s,a,r,d];return Object(o.createElement)(o.Suspense,{key:b.join("_"),fallback:Object(o.createElement)("div",{className:"wc-block-placeholder"})},Object(o.createElement)(u,V()({},l,{children:i,product:t})))})};var Wt=Object(g.withInstanceId)(e=>{let{product:t={},attributes:c,instanceId:r}=e;const{layoutConfig:n}=c,{parentClassName:a,parentName:s}=Object(k.useInnerBlockLayoutContext)(),l=0===Object.keys(t).length,i=d()(a+"__product","wc-block-layout",{"is-loading":l});return Object(o.createElement)("li",{className:i,"aria-hidden":l},Yt(s,t,n,r))});c(393);const Ut=e=>{switch(e){case"menu_order":case"popularity":case"rating":case"price":return{orderby:e,order:"asc"};case"price-desc":return{orderby:"price",order:"desc"};case"date":return{orderby:"date",order:"desc"}}},$t=function(e){let{totalQuery:t,totalProducts:c}=e,{totalQuery:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!Nt()(t,o)&&Number.isFinite(c)};var Kt,Jt=(Kt=e=>{let{attributes:t,currentPage:c,onPageChange:r,onSortChange:n,sortValue:a,scrollToTop:s}=e;const[l,u]=Object(At.b)("attributes",[]),[b,p]=Object(At.b)("stock_status",[]),[m,g]=Object(At.b)("rating",[]),[O,h]=Object(At.b)("min_price"),[j,_]=Object(At.b)("max_price"),[E]=Object(At.c)((e=>{let{sortValue:t,currentPage:c,attributes:o}=e;const{columns:r,rows:n}=o;return{...Ut(t),catalog_visibility:"catalog",per_page:r*n,page:c}})({attributes:t,sortValue:a,currentPage:c})),{products:w,totalProducts:f,productsLoading:v}=(e=>{const t={namespace:"/wc/store/v1",resourceName:"products"},{results:c,isLoading:o}=Object(Rt.a)({...t,query:e}),{value:r}=((e,t)=>{const{namespace:c,resourceName:o,resourceValues:r=[],query:n={}}=t;if(!c||!o)throw new Error("The options object must have valid values for the namespace and the resource name properties.");const a=Object(Lt.a)(n),s=Object(Lt.a)(r),{value:l,isLoading:i=!0}=Object(N.useSelect)(e=>{const t=e(Bt.COLLECTIONS_STORE_KEY),r=["x-wp-total",c,o,a,s];return{value:t.getCollectionHeader(...r),isLoading:t.hasFinishedResolution("getCollectionHeader",r)}},["x-wp-total",c,o,s,a]);return{value:l,isLoading:i}})(0,{...t,query:e});return{products:c,totalProducts:parseInt(r,10),productsLoading:o}})(E),{parentClassName:y,parentName:S}=Object(k.useInnerBlockLayoutContext)(),C=(e=>{const{order:t,orderby:c,page:o,per_page:r,...n}=e;return n||{}})(E),{dispatchStoreEvent:x}=Object(Dt.a)(),P=Object(It.a)({totalQuery:C,totalProducts:f},$t);Object(o.useEffect)(()=>{x("product-list-render",{products:w,listName:S})},[w,S,x]),Object(o.useEffect)(()=>{Nt()(C,null==P?void 0:P.totalQuery)||(r(1),null!=P&&P.totalQuery&&(e=>{Number.isFinite(e)&&(0===e?Object(Mt.speak)(Object(i.__)("No products found","woocommerce")):Object(Mt.speak)(Object(i.sprintf)( /* translators: %s is an integer higher than 0 (1, 2, 3...) */ Object(i._n)("%d product found","%d products found",e,"woocommerce"),e)))})(f))},[null==P?void 0:P.totalQuery,f,r,C]);const{contentVisibility:T}=t,I=t.columns*t.rows,A=!Number.isFinite(f)&&Number.isFinite(null==P?void 0:P.totalProducts)&&Nt()(C,null==P?void 0:P.totalQuery)?Math.ceil(((null==P?void 0:P.totalProducts)||0)/I):Math.ceil(f/I),R=w.length?w:Array.from({length:I}),B=0!==w.length||v,L=l.length>0||b.length>0||m.length>0||Number.isFinite(O)||Number.isFinite(j);return Object(o.createElement)("div",{className:(()=>{const{columns:e,rows:c,alignButtons:o,align:r}=t,n=void 0!==r?"align"+r:"";return d()(y,n,"has-"+e+"-columns",{"has-multiple-rows":c>1,"has-aligned-buttons":o})})()},(null==T?void 0:T.orderBy)&&B&&Object(o.createElement)(Qt,{onChange:n,value:a}),!B&&L&&Object(o.createElement)(Ht,{resetCallback:()=>{u([]),p([]),g([]),h(null),_(null)}}),!B&&!L&&Object(o.createElement)(qt,null),B&&Object(o.createElement)("ul",{className:d()(y+"__products",{"is-loading-products":v})},R.map((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;return Object(o.createElement)(Wt,{key:e.id||c,attributes:t,product:e})}))),A>1&&Object(o.createElement)(Tt,{currentPage:c,onPageChange:e=>{s({focusableSelector:"a, button"}),r(e)},totalPages:A}))},e=>{const t=Object(o.useRef)(null);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:t,"aria-hidden":!0}),Object(o.createElement)(Kt,V()({},e,{scrollToTop:e=>{null!==t.current&&((e,t)=>{const{focusableSelector:c}=t||{};window&&Number.isFinite(window.innerHeight)&&(c?((e,t)=>{var c;const o=(null===(c=e.parentElement)||void 0===c?void 0:c.querySelectorAll(t))||[];if(o.length){const e=o[0];Ft(e),null==e||e.focus()}else Ft(e)})(e,c):Ft(e))})(t.current,e)}})))}),Xt=e=>{let{attributes:t}=e;const[c,r]=Object(o.useState)(1),[n,a]=Object(o.useState)(t.orderby);return Object(o.useEffect)(()=>{a(t.orderby)},[t.orderby]),Object(o.createElement)(Jt,{attributes:t,currentPage:c,onPageChange:e=>{r(e)},onSortChange:e=>{var t;const c=null==e||null===(t=e.target)||void 0===t?void 0:t.value;a(c),r(1)},sortValue:n})},Zt=c(159),ec=c(12);class tc extends o.Component{render(){const{attributes:e,urlParameterSuffix:t}=this.props;return e.isPreview?Zt.a:Object(o.createElement)(k.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(o.createElement)(ec.StoreNoticesContainer,{context:"wc/all-products"}),Object(o.createElement)(Xt,{attributes:e,urlParameterSuffix:t}))}}var cc=tc;c(391);class oc extends o.Component{constructor(){super(...arguments),wt()(this,"state",{isEditing:!1,innerBlocks:[]}),wt()(this,"blockMap",Object(kt.a)("woocommerce/all-products")),wt()(this,"componentDidMount",()=>{const{block:e}=this.props;this.setState({innerBlocks:e.innerBlocks})}),wt()(this,"getTitle",()=>Object(i.__)("All Products","woocommerce")),wt()(this,"getIcon",()=>Object(o.createElement)(n.a,{icon:a.a})),wt()(this,"togglePreview",()=>{const{debouncedSpeak:e}=this.props;this.setState({isEditing:!this.state.isEditing}),this.state.isEditing||e(Object(i.__)("Showing All Products block preview.","woocommerce"))}),wt()(this,"getInspectorControls",()=>{const{attributes:e,setAttributes:t}=this.props,{columns:c,rows:r,alignButtons:n}=e;return Object(o.createElement)(l.InspectorControls,{key:"inspector"},Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Layout Settings","woocommerce"),initialOpen:!0},Object(o.createElement)(ft.a,{columns:c,rows:r,alignButtons:n,setAttributes:t,minColumns:Object(q.getSetting)("min_columns",1),maxColumns:Object(q.getSetting)("max_columns",6),minRows:Object(q.getSetting)("min_rows",1),maxRows:Object(q.getSetting)("max_rows",6)})),Object(o.createElement)(m.PanelBody,{title:Object(i.__)("Content Settings","woocommerce")},((e,t)=>{const{contentVisibility:c}=e;return Object(o.createElement)(m.ToggleControl,{label:Object(i.__)("Show Sorting Dropdown","woocommerce"),checked:c.orderBy,onChange:()=>t({contentVisibility:{...c,orderBy:!c.orderBy}})})})(e,t),((e,t)=>Object(o.createElement)(m.SelectControl,{label:Object(i.__)("Order Products By","woocommerce"),value:e.orderby,options:[{label:Object(i.__)("Default sorting (menu order)","woocommerce"),value:"menu_order"},{label:Object(i.__)("Popularity","woocommerce"),value:"popularity"},{label:Object(i.__)("Average rating","woocommerce"),value:"rating"},{label:Object(i.__)("Latest","woocommerce"),value:"date"},{label:Object(i.__)("Price: low to high","woocommerce"),value:"price"},{label:Object(i.__)("Price: high to low","woocommerce"),value:"price-desc"}],onChange:e=>t({orderby:e})}))(e,t)))}),wt()(this,"getBlockControls",()=>{const{isEditing:e}=this.state;return Object(o.createElement)(l.BlockControls,null,Object(o.createElement)(m.ToolbarGroup,{controls:[{icon:"edit",title:Object(i.__)("Edit the layout of each product","woocommerce"),onClick:()=>this.togglePreview(),isActive:e}]}))}),wt()(this,"renderEditMode",()=>{const e={template:this.props.attributes.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(this.blockMap)};return 0!==this.props.attributes.layoutConfig.length&&(e.renderAppender=!1),Object(o.createElement)(m.Placeholder,{icon:this.getIcon(),label:this.getTitle()},Object(i.__)("Display all products from your store as a grid.","woocommerce"),Object(o.createElement)("div",{className:"wc-block-all-products-grid-item-template"},Object(o.createElement)(m.Tip,null,Object(i.__)("Edit the blocks inside the example below to change the content displayed for all products within the product grid.","woocommerce")),Object(o.createElement)(k.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},Object(o.createElement)("div",{className:"wc-block-grid wc-block-layout has-1-columns"},Object(o.createElement)("ul",{className:"wc-block-grid__products"},Object(o.createElement)("li",{className:"wc-block-grid__product"},Object(o.createElement)(k.ProductDataContextProvider,{product:vt.a[0]},Object(o.createElement)(l.InnerBlocks,e)))))),Object(o.createElement)("div",{className:"wc-block-all-products__actions"},Object(o.createElement)(m.Button,{className:"wc-block-all-products__done-button",isPrimary:!0,onClick:()=>{const{block:e,setAttributes:t}=this.props;t({layoutConfig:Ct(e.innerBlocks)}),this.setState({innerBlocks:e.innerBlocks}),this.togglePreview()}},Object(i.__)("Done","woocommerce")),Object(o.createElement)(m.Button,{className:"wc-block-all-products__cancel-button",isTertiary:!0,onClick:()=>{const{block:e,replaceInnerBlocks:t}=this.props,{innerBlocks:c}=this.state;t(e.clientId,c,!1),this.togglePreview()}},Object(i.__)("Cancel","woocommerce")),Object(o.createElement)(m.Button,{className:"wc-block-all-products__reset-button",icon:Object(o.createElement)(n.a,{icon:a.a}),label:Object(i.__)("Reset layout to default","woocommerce"),onClick:()=>{const{block:e,replaceInnerBlocks:t}=this.props,c=[];St.map(e=>{let[t,o]=e;return c.push(Object(r.createBlock)(t,o)),!0}),t(e.clientId,c,!1),this.setState({innerBlocks:e.innerBlocks})}},Object(i.__)("Reset Layout","woocommerce")))))}),wt()(this,"renderViewMode",()=>{const{attributes:e}=this.props,{layoutConfig:t}=e,c=t&&0!==t.length,r=this.getTitle(),n=this.getIcon();return c?Object(o.createElement)(m.Disabled,null,Object(o.createElement)(cc,{attributes:e})):((e,t)=>Object(o.createElement)(m.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(i.__)("The content for this block is hidden due to block settings.","woocommerce")))(r,n)}),wt()(this,"render",()=>{const{attributes:e}=this.props,{isEditing:t}=this.state,c=this.getTitle(),r=this.getIcon();return 0===ot.o.productCount?((e,t)=>Object(o.createElement)(m.Placeholder,{className:"wc-block-products",icon:t,label:e},Object(o.createElement)("p",null,Object(i.__)("You haven't published any products to list here yet.","woocommerce")),Object(o.createElement)(m.Button,{className:"wc-block-products__add-product-button",isSecondary:!0,href:q.ADMIN_URL+"post-new.php?post_type=product"},Object(i.__)("Add new product","woocommerce")+" ",Object(o.createElement)(n.a,{icon:yt.a})),Object(o.createElement)(m.Button,{className:"wc-block-products__read_more_button",isTertiary:!0,href:"https://docs.woocommerce.com/document/managing-products/"},Object(i.__)("Learn more","woocommerce"))))(c,r):Object(o.createElement)("div",{className:ht("wc-block-all-products",e)},this.getBlockControls(),this.getInspectorControls(),t?this.renderEditMode():this.renderViewMode())})}}var rc=Object(g.compose)(m.withSpokenMessages,Object(N.withSelect)((e,t)=>{let{clientId:c}=t;const{getBlock:o}=e("core/block-editor");return{block:o(c)}}),Object(N.withDispatch)(e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}}))(oc),nc={columns:Object(q.getSetting)("default_columns",3),rows:Object(q.getSetting)("default_rows",3),alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:St,isPreview:!1};const{name:ac}=Ot,sc={icon:{src:Object(o.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"})},edit:rc,save:function(e){let{attributes:t}=e;const c={};Object.keys(t).sort().forEach(e=>{c[e]=t[e]});const r={"data-attributes":JSON.stringify(c)};return Object(o.createElement)("div",V()({className:ht("wc-block-all-products",t)},r),Object(o.createElement)(l.InnerBlocks.Content,null))},deprecated:_t,defaults:nc};Object(r.registerBlockType)(ac,sc)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var o=c(40),r=c(0),n=c(18);c.p=n.l,Object(o.registerBlockComponent)({blockName:"woocommerce/product-price",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(29)]).then(c.bind(null,225)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-image",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(26)]).then(c.bind(null,596)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-title",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(39)]).then(c.bind(null,597)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-rating",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(31)]).then(c.bind(null,226)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-button",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(23)]).then(c.bind(null,227)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-summary",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(37)]).then(c.bind(null,339)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(33)]).then(c.bind(null,149)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-sku",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(35)]).then(c.bind(null,340)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(36)]).then(c.bind(null,341)))}),Object(o.registerBlockComponent)({blockName:"woocommerce/product-add-to-cart",component:Object(r.lazy)(()=>Promise.all([c.e(0),c.e(1),c.e(3),c.e(21)]).then(c.bind(null,598)))});const a=e=>Object(o.getRegisteredBlockComponents)(e)},,,,,function(e,t,c){"use strict";c.d(t,"a",(function(){return o})),c.d(t,"b",(function(){return r}));const o=e=>e.is_purchasable||!1,r=e=>["simple","variable"].includes(e.type||"simple")}]); Coming Soon
illustration

Coming Soon

New WordPress website is being built and will be published soon