Submit
Path:
~
/
home
/
getwphos
/
www
/
techniquetechs
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
blocks
/
File Content:
all-products.js
(()=>{var e,t,o,r,n,c={9075:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>i,default:()=>m});var r=o(1609),n=o(851),c=o(2796),a=o(2150),l=o(7723),s=o(1616);const i=e=>{const{textAlign:t}=e,o=(0,a.p)(e),{product:s}=(0,c.useProductDataContext)(),i=(0,n.A)(o.className,"wc-block-components-product-average-rating",{[`has-text-align-${t}`]:t});return(0,r.createElement)("div",{className:i,style:o.style},Number(s.average_rating)>0?s.average_rating:(0,l.__)("No ratings","woocommerce"))},m=(0,s.withProductDataContext)(i)},1526:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>w,default:()=>_});var r=o(1609),n=o(851),c=o(7723),a=o(9499),l=o(1183),s=o(2150),i=o(8537),m=o(2516),d=o(5703),u=o(2796),p=o(1616);o(1546);const g=({product:e,className:t,style:o})=>{const{id:s,permalink:u,add_to_cart:p,has_options:g,is_purchasable:h,is_in_stock:w}=e,{dispatchStoreEvent:_}=(0,a.y)(),{cartQuantity:b,addingToCart:E,addToCart:y}=(0,l.R)(s),v=Number.isFinite(b)&&b>0,f=!g&&h&&w,k=(0,i.decodeEntities)((null==p?void 0:p.description)||""),x=v?(0,c.sprintf)(/* translators: %s number of products in cart. */ /* translators: %s number of products in cart. */ (0,c._n)("%d in cart","%d in cart",b,"woocommerce"),b):(0,i.decodeEntities)((null==p?void 0:p.text)||(0,c.__)("Add to cart","woocommerce")),C=f?"button":"a",S={};return f?S.onClick=async()=>{await y(),_("cart-add-item",{product:e});const{cartRedirectAfterAdd:t}=(0,d.getSetting)("productsSettings");t&&(window.location.href=m.Vo)}:(S.href=u,S.rel="nofollow",S.onClick=()=>{_("product-view-link",{product:e})}),(0,r.createElement)(C,{...S,"aria-label":k,disabled:E,className:(0,n.A)(t,"wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{loading:E,added:v}),style:o},x)},h=({className:e,style:t,isLoading:o})=>(0,r.createElement)("button",{className:(0,n.A)("wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{"wc-block-components-product-button__button--placeholder":o},e),style:t,disabled:!0},(0,c.__)("Add to cart","woocommerce")),w=e=>{const{className:t,textAlign:o}=e,c=(0,s.p)(e),{parentClassName:a}=(0,u.useInnerBlockLayoutContext)(),{isLoading:l,product:i}=(0,u.useProductDataContext)();return(0,r.createElement)("div",{className:(0,n.A)(t,"wp-block-button","wc-block-components-product-button",{[`${a}__product-add-to-cart`]:a,[`align-${o}`]:o})},i.id?(0,r.createElement)(g,{product:i,style:c.style,className:c.className}):(0,r.createElement)(h,{style:c.style,className:c.className,isLoading:l}))},_=(0,p.withProductDataContext)(w)},2623:(e,t,o)=>{"use strict";o.d(t,{A:()=>_});var r=o(1609),n=o(6087),c=o(7723),a=o(851),l=o(5703),s=o(2796),i=o(2150),m=o(1616),d=o(9499),u=o(8537),p=o(3905),g=(o(5183),o(3945));const h=e=>(0,r.createElement)("img",{...e,src:l.PLACEHOLDER_IMG_SRC,alt:e.alt,width:void 0,height:void 0}),w=({image:e,loaded:t,showFullSize:o,fallbackAlt:c,width:a,scale:l,height:s,aspectRatio:i})=>{const{thumbnail:m,src:d,srcset:u,sizes:p,alt:g}=e||{},w={alt:g||c,hidden:!t,src:m,...o&&{src:d,srcSet:u,sizes:p}},_={height:s,width:a,objectFit:l,aspectRatio:i};return(0,r.createElement)(n.Fragment,null,w.src&&(0,r.createElement)("img",{style:_,"data-testid":"product-image",...w}),!e&&(0,r.createElement)(h,{style:_,alt:w.alt}))},_=(0,m.withProductDataContext)((e=>{const{className:t,imageSizing:o=g.e.SINGLE,showProductLink:l=!0,showSaleBadge:m,saleBadgeAlign:_="right",height:b,width:E,scale:y,aspectRatio:v,...f}=e,k=(0,i.p)(e),{parentClassName:x}=(0,s.useInnerBlockLayoutContext)(),{product:C,isLoading:S}=(0,s.useProductDataContext)(),{dispatchStoreEvent:N}=(0,d.y)();if(!C.id)return(0,r.createElement)("div",{className:(0,a.A)(t,"wc-block-components-product-image",{[`${x}__product-image`]:x},k.className),style:k.style},(0,r.createElement)(h,null));const P=!!C.images.length,A=P?C.images[0]:null,T=l?"a":n.Fragment,B=(0,c.sprintf)(/* translators: %s is referring to the product name */ /* translators: %s is referring to the product name */ (0,c.__)("Link to %s","woocommerce"),C.name),I={href:C.permalink,...!P&&{"aria-label":B},onClick:()=>{N("product-view-link",{product:C})}};return delete f.style,(0,r.createElement)("div",{className:(0,a.A)(t,"wc-block-components-product-image",{[`${x}__product-image`]:x},k.className),style:k.style},(0,r.createElement)(T,{...l&&I},!!m&&(0,r.createElement)(p.default,{align:_,...f}),(0,r.createElement)(w,{fallbackAlt:(0,u.decodeEntities)(C.name),image:A,loaded:!S,showFullSize:o!==g.e.THUMBNAIL,width:E,height:b,scale:y,aspectRatio:v})))}))},3945:(e,t,o)=>{"use strict";o.d(t,{e:()=>r});let r=function(e){return e.SINGLE="single",e.THUMBNAIL="thumbnail",e}({})},4431:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>m,default:()=>d});var r=o(1609),n=o(851),c=o(8834),a=o(8529),l=o(2796),s=o(2150),i=o(1616);const m=e=>{var t,o;const{className:i,textAlign:m,isDescendentOfSingleProductTemplate:d}=e,u=(0,s.p)(e),{parentName:p,parentClassName:g}=(0,l.useInnerBlockLayoutContext)(),{product:h}=(0,l.useProductDataContext)(),w="woocommerce/all-products"===p,_=d&&!("woocommerce/add-to-cart-with-options-grouped-product-selector-item"===p),b=(0,n.A)("wc-block-components-product-price",i,u.className,{[`${g}__product-price`]:g});if(!h.id&&!d){const e=(0,r.createElement)(c.A,{align:m,className:b});return w?(0,r.createElement)("div",{className:"wp-block-woocommerce-product-price"},e):e}const E=h.prices,y=_?(0,a.getCurrencyFromPriceResponse)():(0,a.getCurrencyFromPriceResponse)(E),v="5000",f=E.price!==E.regular_price,k=(0,n.A)({[`${g}__product-price__value`]:g,[`${g}__product-price__value--on-sale`]:f}),x=(0,r.createElement)(c.A,{align:m,className:b,style:u.style,regularPriceStyle:u.style,priceStyle:u.style,priceClassName:k,currency:y,price:_?v:E.price,minPrice:null==E||null===(t=E.price_range)||void 0===t?void 0:t.min_amount,maxPrice:null==E||null===(o=E.price_range)||void 0===o?void 0:o.max_amount,regularPrice:_?v:E.regular_price,regularPriceClassName:(0,n.A)({[`${g}__product-price__regular`]:g})});return w?(0,r.createElement)("div",{className:"wp-block-woocommerce-product-price"},x):x},d=e=>e.isDescendentOfSingleProductTemplate?(0,r.createElement)(m,{...e}):(0,i.withProductDataContext)(m)(e)},8494:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>u,default:()=>p});var r=o(1609),n=o(7723),c=o(851),a=o(2796),l=o(2150),s=o(1616),i=o(3993),m=o(6427);const d=e=>{const{reviews:t}=e,o=t?(0,n.sprintf)(/* translators: %s is referring to the total of reviews for a product */ /* translators: %s is referring to the total of reviews for a product */ (0,n._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t):(0,n.__)("(X customer reviews)","woocommerce");return(0,r.createElement)("span",{className:"wc-block-components-product-rating-counter__reviews_count"},(0,r.createElement)(m.Disabled,null,(0,r.createElement)("a",{href:"/"},o)))},u=e=>{const{textAlign:t,shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,n=(0,l.p)(e),{parentClassName:s}=(0,a.useInnerBlockLayoutContext)(),{product:m}=(0,a.useProductDataContext)(),u=(e=>{const t=(0,i.isNumber)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0})(m),p=(0,c.A)(n.className,"wc-block-components-product-rating-counter",{[`${s}__product-rating`]:s,[`has-text-align-${t}`]:t});if(u||o)return(0,r.createElement)("div",{className:p,style:n.style},(0,r.createElement)("div",{className:"wc-block-components-product-rating-counter__container"},(0,r.createElement)(d,{reviews:u})))},p=(0,s.withProductDataContext)(u)},53:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>s,default:()=>i});var r=o(1609),n=o(2796),c=o(2150),a=o(1616),l=o(4786);o(7195);const s=e=>{const{textAlign:t="",shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,a=(0,c.p)(e),{parentClassName:s}=(0,n.useInnerBlockLayoutContext)(),{product:i}=(0,n.useProductDataContext)(),m=(0,l.p3)(i),d=(0,l.Nm)(i);return(0,r.createElement)(l.fb,{className:"wc-block-components-product-rating-stars",showMockedReviews:o,styleProps:a,parentClassName:s,reviews:d,rating:m,textAlign:t})},i=(0,a.withProductDataContext)(s)},9325:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>s,default:()=>i});var r=o(1609),n=o(2796),c=o(2150),a=o(1616),l=o(4786);o(7067);const s=e=>{const{textAlign:t="",isDescendentOfSingleProductBlock:o,shouldDisplayMockedReviewsWhenProductHasNoReviews:a}=e,s=(0,c.p)(e),{parentClassName:i}=(0,n.useInnerBlockLayoutContext)(),{product:m}=(0,n.useProductDataContext)(),d=(0,l.p3)(m),u=(0,l.Nm)(m);if(u||a)return(0,r.createElement)(l.fb,{className:"wc-block-components-product-rating",showReviewCount:o,showMockedReviews:a,styleProps:s,parentClassName:i,reviews:u,rating:d,textAlign:t})},i=(0,a.withProductDataContext)(s)},3905:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>m,default:()=>d});var r=o(1609),n=o(7723),c=o(851),a=o(4656),l=o(2796),s=o(2150),i=o(1616);o(6007);const m=e=>{const{className:t,align:o}=e,i=(0,s.p)(e),{parentClassName:m}=(0,l.useInnerBlockLayoutContext)(),{product:d}=(0,l.useProductDataContext)();if(!(d.id&&d.on_sale||e.isDescendentOfSingleProductTemplate))return null;const u="string"==typeof o?`wc-block-components-product-sale-badge--align-${o}`:"";return(0,r.createElement)("div",{className:(0,c.A)("wc-block-components-product-sale-badge",t,u,{[`${m}__product-onsale`]:m},i.className),style:i.style},(0,r.createElement)(a.Label,{label:(0,n.__)("Sale","woocommerce"),screenReaderLabel:(0,n.__)("Product on sale","woocommerce")}))},d=(0,i.withProductDataContext)(m)},6511:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>d});var r=o(1609),n=o(851),c=o(2796),a=o(1616),l=o(2150),s=o(4715),i=o(7723);o(7663);const m=({setAttributes:e,parentClassName:t,sku:o,className:c,style:a,prefix:l,suffix:m})=>(0,r.createElement)("div",{className:(0,n.A)(c,"wp-block-post-terms",{[`${t}__product-sku`]:t}),style:a},(0,r.createElement)(s.RichText,{className:"wc-block-components-product-sku__prefix",tagName:"span",placeholder:(0,i.__)("Prefix","woocommerce"),value:l,onChange:t=>e({prefix:t})}),(0,r.createElement)("span",null," ",o),(0,r.createElement)(s.RichText,{className:"wc-block-components-product-sku__suffix",tagName:"span",placeholder:" "+(0,i.__)("Suffix","woocommerce"),value:m,onChange:t=>e({suffix:t})})),d=(0,a.withProductDataContext)((e=>{const{className:t}=e,o=(0,l.p)(e),{parentClassName:a}=(0,c.useInnerBlockLayoutContext)(),{product:s}=(0,c.useProductDataContext)(),d=s.sku;return e.isDescendentOfSingleProductTemplate?(0,r.createElement)(m,{setAttributes:e.setAttributes,parentClassName:a,className:t,sku:(0,i.__)("Product SKU","woocommerce"),prefix:e.prefix,suffix:e.suffix}):d?(0,r.createElement)(m,{setAttributes:e.setAttributes,className:t,parentClassName:a,sku:d,prefix:e.prefix,suffix:e.suffix,...e.isDescendantOfAllProducts&&{className:(0,n.A)(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",o.className),style:{...o.style}}}):null}))},5916:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>f,default:()=>k});var r=o(1609),n=o(7723),c=o(851),a=o(2796),l=o(2150),s=o(1616),i=o(5703),m=o(7143);const d="woocommerce/product-type-template-state",u="SWITCH_PRODUCT_TYPE",p="SET_PRODUCT_TYPES",g="REGISTER_LISTENER",h="UNREGISTER_LISTENER",w=(0,i.getSetting)("productTypes",{});var _;const b=Object.keys(w).map((e=>({slug:e,label:w[e]}))),E={productTypes:{list:b,current:null===(_=b[0])||void 0===_?void 0:_.slug},listeners:[]},y={switchProductType:e=>({type:u,current:e}),setProductTypes:e=>({type:p,productTypes:e}),registerListener:e=>({type:g,listener:e}),unregisterListener:e=>({type:h,listener:e})},v=(0,m.createReduxStore)(d,{reducer:(e=E,t)=>{switch(t.type){case p:return{...e,productTypes:{...e.productTypes,list:t.productTypes||[]}};case u:return{...e,productTypes:{...e.productTypes,current:t.current}};case g:return{...e,listeners:[...e.listeners,t.listener||""]};case h:return{...e,listeners:e.listeners.filter((e=>e!==t.listener))};default:return e}},actions:y,selectors:{getProductTypes:e=>e.productTypes.list,getCurrentProductType:e=>e.productTypes.list.find((t=>t.slug===e.productTypes.current)),getRegisteredListeners:e=>e.listeners}});(0,m.select)(d)||(0,m.register)(v),o(9644);const f=e=>{const{className:t}=e,o=(0,l.p)(e),{parentClassName:s}=(0,a.useInnerBlockLayoutContext)(),{product:d}=(0,a.useProductDataContext)(),{text:u,class:p}=d.stock_availability,{selectedProductType:g}=(0,m.useSelect)((e=>{const{getCurrentProductType:t}=e(v);return{selectedProductType:t()}}),[]);if(!((e,t,o)=>{if(0!==e.id)return""!==t;const r=(0,i.getSetting)("productTypesWithoutStockIndicator",["external","grouped","variable"]),n=o||(null==e?void 0:e.type);return!r.includes(n)})(d,u,null==g?void 0:g.slug))return null;const h=0===d.id,w=d.low_stock_remaining;return(0,r.createElement)("div",{className:(0,c.A)(t,{[`${s}__stock-indicator`]:s,[`wc-block-components-product-stock-indicator--${p}`]:p,"wc-block-components-product-stock-indicator--in-stock":h,"wc-block-components-product-stock-indicator--low-stock":!!w,...e.isDescendantOfAllProducts&&{[o.className]:o.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...e.isDescendantOfAllProducts&&{style:o.style}},h?(0,n.__)("In stock","woocommerce"):u)},k=e=>{const{product:t}=(0,a.useProductDataContext)();return 0===t.id?(0,r.createElement)(f,{...e}):(0,s.withProductDataContext)(f)(e)}},3591:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>x});var r=o(1609),n=o(7723),c=o(851),a=o(6087),l=o(7674),s=o.n(l);const i=["a","b","em","i","strong","p","br"],m=["target","href","rel","name","download"];var d=o(6004);const u=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),p=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var g=o(9446);const h=["a","b","em","i","strong","p","br","ul","ol","li","h1","h2","h3","h4","h5","h6","pre","blockquote","img"],w=["target","href","rel","name","download","src","class","alt","style"],_=({source:e,maxLength:t=15,countType:o="words",className:n="",style:c={}})=>{const l=(0,a.useMemo)((()=>((e,t=15,o="words")=>{const r=(0,d.autop)(e);if((0,g.count)(r,o)<=t)return r;const n=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(r);return(0,g.count)(n,o)<=t?n:"words"===o?((e,t,o="…",r=!0)=>{const n=u(e),c=n.split(" ").splice(0,t).join(" ");return c===n?r?(0,d.autop)(n):n:r?(0,d.autop)(p(c,o)):p(c,o)})(n,t):((e,t,o=!0,r="…",n=!0)=>{const c=u(e),a=c.slice(0,t);if(a===c)return n?(0,d.autop)(c):c;if(o)return(0,d.autop)(p(a,r));const l=a.match(/([\s]+)/g),s=l?l.length:0,i=c.slice(0,t+s);return n?(0,d.autop)(p(i,r)):p(i,r)})(n,t,"characters_including_spaces"===o)})(e,t,o)),[e,t,o]);return(0,r.createElement)(a.RawHTML,{style:c,className:n},((e,t)=>{const o=(null==t?void 0:t.tags)||i,r=(null==t?void 0:t.attr)||m;return s().sanitize(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:r})})(l,{tags:h,attr:w}))};var b=o(2516),E=o(3993),y=o(2796),v=o(2150),f=o(1616);o(7766);const k=e=>{const{className:t,showDescriptionIfEmpty:o,summaryLength:a,showLink:l,linkText:s,isDescendantOfAllProducts:i,isDescendentOfSingleProductTemplate:m}=e,{parentClassName:d}=(0,y.useInnerBlockLayoutContext)(),{product:u}=(0,y.useProductDataContext)(),p=(0,v.p)(e),g=(e=>{const{isDescendantOfAllProducts:t,summaryLength:o,showDescriptionIfEmpty:r,showLink:n}=e;return t&&(0,E.isEmpty)(o)&&(0,E.isEmpty)(r)&&(0,E.isEmpty)(n)})(e),h=g?150:a,w=!g&&l,f=((e,t)=>{const{short_description:o,description:r}=e;return o||(t&&r?r:"")})(u,!!g||o),k=h||1/0;return u?m?(0,r.createElement)("p",null,(0,n.__)("This block displays the product summary and all its customizations.","woocommerce")):f?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(_,{className:(0,c.A)(t,p.className,"wc-block-components-product-summary",{[`${d}__product-summary`]:d}),source:f,maxLength:k,countType:b.r7.wordCountType||"words",style:p.style}),i&&w&&s?(0,r.createElement)("a",{href:`${u.permalink}#tab-description`},s):null):i?null:(0,r.createElement)("p",null,(0,n.__)("No product summary to show.","woocommerce")):(0,r.createElement)("div",{className:(0,c.A)(t,"wc-block-components-product-summary",{[`${d}__product-summary`]:d})})},x=e=>e.isDescendentOfSingleProductTemplate?(0,r.createElement)(k,{...e}):(0,f.withProductDataContext)(k)(e)},9618:(e,t,o)=>{"use strict";o.d(t,{A:()=>n});let r={headingLevel:{type:"number",default:2},showProductLink:{type:"boolean",default:!0},linkTarget:{type:"string"},productId:{type:"number",default:0}};r={...r,align:{type:"string"}};const n=r},6510:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var r=o(1609),n=o(851),c=o(2796),a=o(1616),l=o(7702),s=o(9499),i=o(2150);o(7128);const m=({children:e,headingLevel:t,elementType:o=`h${t}`,...n})=>(0,r.createElement)(o,{...n},e),d=(0,a.withProductDataContext)((e=>{const{className:t,headingLevel:o=2,showProductLink:a=!0,linkTarget:d,align:u}=e,p=(0,i.p)(e),{parentClassName:g}=(0,c.useInnerBlockLayoutContext)(),{product:h}=(0,c.useProductDataContext)(),{dispatchStoreEvent:w}=(0,s.y)();return h.id?(0,r.createElement)(m,{headingLevel:o,className:(0,n.A)(t,p.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${u}`]:u}),style:p.style},(0,r.createElement)(l.A,{disabled:!a,name:h.name,permalink:h.permalink,target:d,onClick:()=>{w("product-view-link",{product:h})}})):(0,r.createElement)(m,{headingLevel:o,className:(0,n.A)(t,p.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${u}`]:u}),style:p.style})}))},7057:(e,t,o)=>{"use strict";o.d(t,{A:()=>l});var r=o(7723),n=o(3993),c=o(2516);const a=Object.entries(c.iI).reduce(((e,[t,o])=>(e[t]=Object.entries(o).reduce(((e,[t,o])=>(e[t]=(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=(0,r.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */ (0,r.__)("%s (optional)","woocommerce"),e.label)),e.index&&((0,n.isNumber)(e.index)&&(t.index=e.index),(0,n.isString)(e.index)&&(t.index=parseInt(e.index,10))),e.hidden&&(t.required=!1),t})(o),e)),{}),e)),{}),l=(e,t,o="")=>{const r=o&&void 0!==a[o]?a[o]:{};return e.map((e=>({key:e,...t[e]||{},...r[e]||{}}))).sort(((e,t)=>e.index-t.index))}},7702:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(1609),n=o(851);o(6625);const c=({className:e="",disabled:t=!1,name:o,permalink:c="",target:a,rel:l,style:s,onClick:i,disabledTagName:m="span",...d})=>{const u=(0,n.A)("wc-block-components-product-name",e),p=m;if(t){const e=d;return(0,r.createElement)(p,{className:u,...e,dangerouslySetInnerHTML:{__html:o}})}return(0,r.createElement)("a",{className:u,href:c,target:a,...d,dangerouslySetInnerHTML:{__html:o},style:s})}},8834:(e,t,o)=>{"use strict";o.d(t,{A:()=>d});var r=o(1609),n=o(7723),c=o(4656),a=o(851),l=o(8529),s=o(6087);o(4567);const i=({currency:e,maxPrice:t,minPrice:o,priceClassName:s,priceStyle:i={}})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */ (0,n.__)("Price between %1$s and %2$s","woocommerce"),(0,l.formatPrice)(o),(0,l.formatPrice)(t))),(0,r.createElement)("span",{"aria-hidden":!0},(0,r.createElement)(c.FormattedMonetaryAmount,{className:(0,a.A)("wc-block-components-product-price__value",s),currency:e,value:o,style:i})," — ",(0,r.createElement)(c.FormattedMonetaryAmount,{className:(0,a.A)("wc-block-components-product-price__value",s),currency:e,value:t,style:i}))),m=({currency:e,regularPriceClassName:t,regularPriceStyle:o,regularPrice:l,priceClassName:s,priceStyle:i,price:m})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.__)("Previous price:","woocommerce")),(0,r.createElement)(c.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,r.createElement)("del",{className:(0,a.A)("wc-block-components-product-price__regular",t),style:o},e),value:l}),(0,r.createElement)("span",{className:"screen-reader-text"},(0,n.__)("Discounted price:","woocommerce")),(0,r.createElement)(c.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,r.createElement)("ins",{className:(0,a.A)("wc-block-components-product-price__value","is-discounted",s),style:i},e),value:m})),d=({align:e,className:t,currency:o,format:n="<price/>",maxPrice:l,minPrice:d,price:u,priceClassName:p,priceStyle:g,regularPrice:h,regularPriceClassName:w,regularPriceStyle:_,style:b})=>{const E=(0,a.A)(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});n.includes("<price/>")||(n="<price/>",console.error("Price formats need to include the `<price/>` tag."));const y=h&&u&&u<h;let v=(0,r.createElement)("span",{className:(0,a.A)("wc-block-components-product-price__value",p)});return y?v=(0,r.createElement)(m,{currency:o,price:u,priceClassName:p,priceStyle:g,regularPrice:h,regularPriceClassName:w,regularPriceStyle:_}):void 0!==d&&void 0!==l?v=(0,r.createElement)(i,{currency:o,maxPrice:l,minPrice:d,priceClassName:p,priceStyle:g}):u&&(v=(0,r.createElement)(c.FormattedMonetaryAmount,{className:(0,a.A)("wc-block-components-product-price__value",p),currency:o,value:u,style:g})),(0,r.createElement)("span",{className:E,style:b},(0,s.createInterpolateElement)(n,{price:v}))}},52:(e,t,o)=>{"use strict";o.d(t,{U:()=>d});var r=o(6087),n=o(7594),c=o(7143),a=o(6367),l=o(7428);const s=e=>{const t=null==e?void 0:e.detail;t&&t.preserveCartData||(0,c.dispatch)(n.cartStore).invalidateResolutionForStore()},i=e=>{(null!=e&&e.persisted||"back_forward"===(0,a.F)())&&(0,c.dispatch)(n.cartStore).invalidateResolutionForStore()},m=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},d=()=>{(0,r.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",s),document.body.addEventListener("wc-blocks_removed_from_cart",s),window.addEventListener("pageshow",i);const t=(0,l.f2)("added_to_cart","wc-blocks_added_to_cart"),o=(0,l.f2)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",s),document.body.removeEventListener("wc-blocks_removed_from_cart",s),window.removeEventListener("pageshow",i),t(),o()}})(),m)),[])}},8645:(e,t,o)=>{"use strict";o.d(t,{V:()=>_});var r=o(458),n=o.n(r),c=o(6087),a=o(7594),l=o(7143),s=o(8537),i=o(3643),m=o(1759),d=o(52);const u={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},p={...u,email:""},g={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:""},h=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,s.decodeEntities)(t)]))),w={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:g,cartIsLoading:!0,cartErrors:a.EMPTY_CART_ERRORS,billingData:p,billingAddress:p,shippingAddress:u,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},_=(e={shouldSelect:!0})=>{const{shouldSelect:t}=e,{isEditor:o,previewData:r}=(0,m.m)(),s=null==r?void 0:r.previewCart,g=(0,c.useRef)(),_=(0,c.useRef)(p),b=(0,c.useRef)(u);(0,d.U)();const E=(0,l.useSelect)(((e,{dispatch:r})=>{if(!t)return w;if(o)return{...w,cartCoupons:s.coupons,cartItems:s.items,crossSellsProducts:s.cross_sells,cartFees:s.fees,cartItemsCount:s.items_count,cartItemsWeight:s.items_weight,cartNeedsPayment:s.needs_payment,cartNeedsShipping:s.needs_shipping,cartTotals:s.totals,shippingRates:s.shipping_rates,cartHasCalculatedShipping:s.has_calculated_shipping,paymentMethods:s.payment_methods,paymentRequirements:s.payment_requirements,cartIsLoading:!1,receiveCart:"function"==typeof(null==s?void 0:s.receiveCart)?s.receiveCart:()=>{},receiveCartContents:"function"==typeof(null==s?void 0:s.receiveCartContents)?s.receiveCartContents:()=>{}};const c=e(a.cartStore),l=c.getCartData(),m=c.getCartErrors(),d=c.getCartTotals(),u=!c.hasFinishedResolution("getCartData"),p=c.isCustomerDataUpdating(),{receiveCart:g,receiveCartContents:E}=r(a.cartStore),y=l.fees.length>0?l.fees.map((e=>h(e))):a.EMPTY_CART_FEES,v=l.coupons.length>0?l.coupons.map((e=>({...e,label:e.code}))):a.EMPTY_CART_COUPONS,f=(0,i.TU)(h(l.billingAddress)),k=l.needsShipping?(0,i.TU)(h(l.shippingAddress)):f;return n()(f,_.current)||(_.current=f),n()(k,b.current)||(b.current=k),{cartCoupons:v,cartItems:l.items,crossSellsProducts:l.crossSells,cartFees:y,cartItemsCount:l.itemsCount,cartItemsWeight:l.itemsWeight,cartNeedsPayment:l.needsPayment,cartNeedsShipping:l.needsShipping,cartItemErrors:l.errors,cartTotals:d,cartIsLoading:u,cartErrors:m,billingData:_.current,billingAddress:_.current,shippingAddress:b.current,extensions:l.extensions,shippingRates:l.shippingRates,isLoadingRates:p,cartHasCalculatedShipping:l.hasCalculatedShipping,paymentRequirements:l.paymentRequirements,receiveCart:g,receiveCartContents:E}}),[t,o]);return g.current&&n()(g.current,E)||(g.current=E),g.current}},1183:(e,t,o)=>{"use strict";o.d(t,{R:()=>i});var r=o(6087),n=o(7143),c=o(7594),a=o(8537),l=o(8645);const s=(e,t)=>{const o=e.find((({id:e})=>e===t));return o?o.quantity:0},i=e=>{const{addItemToCart:t}=(0,n.useDispatch)(c.cartStore),{cartItems:o,cartIsLoading:i}=(0,l.V)(),{createErrorNotice:m,removeNotice:d}=(0,n.useDispatch)("core/notices"),[u,p]=(0,r.useState)(!1),g=(0,r.useRef)(s(o,e));return(0,r.useEffect)((()=>{const t=s(o,e);t!==g.current&&(g.current=t)}),[o,e]),{cartQuantity:Number.isFinite(g.current)?g.current:0,addingToCart:u,cartIsLoading:i,addToCart:(o=1)=>(p(!0),t(e,o).then((()=>{d("add-to-cart")})).catch((e=>{m((0,a.decodeEntities)(e.message),{id:"add-to-cart",context:"wc/all-products",isDismissible:!0})})).finally((()=>{p(!1)})))}}},9499:(e,t,o)=>{"use strict";o.d(t,{y:()=>a});var r=o(2619),n=o(7143),c=o(6087);const a=()=>({dispatchStoreEvent:(0,c.useCallback)(((e,t={})=>{try{(0,r.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}}),[]),dispatchCheckoutEvent:(0,c.useCallback)(((e,t={})=>{try{(0,r.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:(0,n.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])})},1759:(e,t,o)=>{"use strict";o.d(t,{m:()=>c}),o(1609);var r=o(6087);o(7143);const n=(0,r.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),c=()=>(0,r.useContext)(n)},2150:(e,t,o)=>{"use strict";o.d(t,{p:()=>l});var r=o(851),n=o(3993),c=o(3924),a=o(104);const l=e=>{const t=(e=>{const t=(0,n.isObject)(e)?e:{style:{}};let o=t.style;return(0,n.isString)(o)&&(o=JSON.parse(o)||{}),(0,n.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,a.BK)(t),l=(0,a.aR)(t),s=(0,a.fo)(t),i=(0,c.x)(t);return{className:(0,r.A)(i.className,o.className,l.className,s.className),style:{...i.style,...o.style,...l.style,...s.style}}}},3924:(e,t,o)=>{"use strict";o.d(t,{x:()=>n});var r=o(3993);const n=e=>{const t=(0,r.isObject)(e.style.typography)?e.style.typography:{},o=(0,r.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},3643:(e,t,o)=>{"use strict";o.d(t,{TU:()=>a});var r=o(7057),n=(o(3832),o(3993),o(5703)),c=(o(8537),o(2516));const a=e=>{const t=(0,r.A)(c.Hw,n.defaultFields,e.country),o=Object.assign({},e);return t.forEach((({key:t,hidden:r})=>{r&&((e,t)=>e in t)(t,e)&&(o[t]="")})),o}},104:(e,t,o)=>{"use strict";o.d(t,{BK:()=>i,aR:()=>m,fo:()=>d});var r=o(851),n=o(1194),c=o(9786),a=o(3993);function l(e={}){const t={};return(0,c.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function s(e,t){return e&&t?`has-${(0,n.c)(t)}-${e}`:""}function i(e){var t,o,n,c,i,m;const{backgroundColor:d,textColor:u,gradient:p,style:g}=e,h=s("background-color",d),w=s("color",u),_=function(e){if(e)return`has-${e}-gradient-background`}(p),b=_||(null==g||null===(t=g.color)||void 0===t?void 0:t.gradient);return{className:(0,r.A)(w,_,{[h]:!b&&!!h,"has-text-color":u||(null==g||null===(o=g.color)||void 0===o?void 0:o.text),"has-background":d||(null==g||null===(n=g.color)||void 0===n?void 0:n.background)||p||(null==g||null===(c=g.color)||void 0===c?void 0:c.gradient),"has-link-color":(0,a.isObject)(null==g||null===(i=g.elements)||void 0===i?void 0:i.link)?null==g||null===(m=g.elements)||void 0===m||null===(m=m.link)||void 0===m?void 0:m.color:void 0}),style:l({color:(null==g?void 0:g.color)||{}})}}function m(e){var t;const o=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:o,style:n}=e,c=o?s("border-color",o):"";return(0,r.A)({"has-border-color":!!o||!(null==n||null===(t=n.border)||void 0===t||!t.color),[c]:!!c})}(e),style:l({border:o})}}function d(e){var t;return{className:void 0,style:l({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},6367:(e,t,o)=>{"use strict";o.d(t,{F:()=>r});const r=()=>window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""},7428:(e,t,o)=>{"use strict";o.d(t,{f2:()=>n});const r=window.CustomEvent||null,n=(e,t,o=!1,n=!1)=>{if("function"!=typeof jQuery)return()=>{};const c=()=>{((e,{bubbles:t=!1,cancelable:o=!1,element:n,detail:c={}})=>{if(!r)return;n||(n=document.body);const a=new r(e,{bubbles:t,cancelable:o,detail:c});n.dispatchEvent(a)})(t,{bubbles:o,cancelable:n})};return jQuery(document).on(e,c),()=>jQuery(document).off(e,c)}},5313:(e,t,o)=>{"use strict";o.r(t),o.d(t,{metadata:()=>ro,name:()=>Uo});var r=o(1609);const n=window.wp.blocks;var c=o(7104),a=o(6554),l=o(4715),s=o(7723),i=o(851);const m={category:"woocommerce-product-elements",keywords:[(0,s.__)("WooCommerce","woocommerce")],icon:{src:(0,r.createElement)(c.A,{icon:a.A,className:"wc-block-editor-components-block-icon"})},apiVersion:3,supports:{html:!1},ancestor:["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],save:({attributes:e})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock||e.isDescendentOfSingleProductTemplate?null:(0,r.createElement)("div",{className:(0,i.A)("is-loading",e.className)}),deprecated:[{attributes:{},save:()=>null}]};var d=o(9618),u=o(6427),p=o(9491),g=o(6087),h=o(5573);function w({level:e}){const t={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 t.hasOwnProperty(e)?(0,r.createElement)(h.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(h.Path,{d:t[e]})):null}class _ extends g.Component{createLevelControl(e,t,o){const n=e===t;return{icon:(0,r.createElement)(w,{level:e}),title:(0,s.sprintf)(/* translators: %s: heading level e.g: "2", "3", "4" */ /* translators: %s: heading level e.g: "2", "3", "4" */ (0,s.__)("Heading %d","woocommerce"),e),isActive:n,onClick:()=>o(e)}}render(){const{isCollapsed:e=!0,minLevel:t,maxLevel:o,selectedLevel:n,onChange:c}=this.props,a=Array.from({length:o-t+1},((e,o)=>o+t));return(0,r.createElement)(u.ToolbarGroup,{isCollapsed:e,icon:(0,r.createElement)(w,{level:n}),controls:a.map((e=>this.createLevelControl(e,n,c)))})}}const b=_;var E=o(6510),y=o(3993);function v(e,t,o){const r=new Set(t.map((e=>e[o])));return e.filter((e=>!r.has(e[o])))}var f=o(8537);const k={clear:(0,s.__)("Clear all selected items","woocommerce"),noItems:(0,s.__)("No items found.","woocommerce"), /* Translators: %s search term */ noResults:(0,s.__)("No results for %s","woocommerce"),search:(0,s.__)("Search for items","woocommerce"),selected:e=>(0,s.sprintf)(/* translators: Number of items selected from list. */ /* translators: Number of items selected from list. */ (0,s._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:(0,s.__)("Search results updated.","woocommerce")},x=(e,t=e)=>{const o=e.reduce(((e,t)=>{const o=t.parent||0;return e[o]||(e[o]=[]),e[o].push(t),e}),{}),r=t.reduce(((e,t)=>(e[String(t.id)]=t,e)),{});const n=["0"],c=(e={})=>e.parent?[...c(r[e.parent]),e.name]:e.name?[e.name]:[],a=e=>e.map((e=>{const t=o[e.id];return n.push(""+e.id),{...e,breadcrumbs:c(r[e.parent]),children:t&&t.length?a(t):[]}})),l=a(o[0]||[]);return Object.entries(o).forEach((([e,t])=>{n.includes(e)||l.push(...a(t||[]))})),l},C=(e,t)=>{if(!t)return e;const o=new RegExp(`(${t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"ig");return e.split(o).map(((e,t)=>o.test(e)?(0,r.createElement)("strong",{key:t},e):(0,r.createElement)(g.Fragment,{key:t},e)))},S=({label:e})=>(0,r.createElement)("span",{className:"woocommerce-search-list__item-count"},e),N=e=>{const{item:t,search:o}=e,n=t.breadcrumbs&&t.breadcrumbs.length;return(0,r.createElement)("span",{className:"woocommerce-search-list__item-label"},n?(0,r.createElement)("span",{className:"woocommerce-search-list__item-prefix"},1===(c=t.breadcrumbs).length?c.slice(0,1).toString():2===c.length?c.slice(0,1).toString()+" › "+c.slice(-1).toString():c.slice(0,1).toString()+" … "+c.slice(-1).toString()):null,(0,r.createElement)("span",{className:"woocommerce-search-list__item-name"},C((0,f.decodeEntities)(t.name),o)));var c},P=({countLabel:e,className:t,depth:o=0,controlId:n="",item:c,isSelected:a,isSingle:l,onSelect:s,search:m="",selected:d,useExpandedPanelId:p,...h})=>{var w,_;const[b,E]=p,y=null!=e&&void 0!==c.count&&null!==c.count,k=!(null===(w=c.breadcrumbs)||void 0===w||!w.length),x=!(null===(_=c.children)||void 0===_||!_.length),P=b===c.id,A=(0,i.A)(["woocommerce-search-list__item",`depth-${o}`,t],{"has-breadcrumbs":k,"has-children":x,"has-count":y,"is-expanded":P,"is-radio-button":l});(0,g.useEffect)((()=>{x&&a&&E(c.id)}),[c,x,a,E]);const T=h.name||`search-list-item-${n}`,B=`${T}-${c.id}`,I=(0,g.useCallback)((()=>{E(P?-1:Number(c.id))}),[P,c.id,E]);return x?(0,r.createElement)("div",{className:A,onClick:I,onKeyDown:e=>"Enter"===e.key||" "===e.key?I():null,role:"treeitem",tabIndex:0},l?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("input",{type:"radio",id:B,name:T,value:c.value,onChange:s(c),onClick:e=>e.stopPropagation(),checked:a,className:"woocommerce-search-list__item-input",...h}),(0,r.createElement)(N,{item:c,search:m}),y?(0,r.createElement)(S,{label:e||c.count}):null):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.CheckboxControl,{className:"woocommerce-search-list__item-input",checked:a,...!a&&c.children.some((e=>d.find((t=>t.id===e.id))))?{indeterminate:!0}:{},label:C((0,f.decodeEntities)(c.name),m),onChange:()=>{a?s(v(d,c.children,"id"))():s(function(e,t){const o=v(t,e,"id");return[...e,...o]}(d,c.children))()},onClick:e=>e.stopPropagation()}),y?(0,r.createElement)(S,{label:e||c.count}):null)):(0,r.createElement)("label",{htmlFor:B,className:A},l?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("input",{...h,type:"radio",id:B,name:T,value:c.value,onChange:s(c),checked:a,className:"woocommerce-search-list__item-input"}),(0,r.createElement)(N,{item:c,search:m})):(0,r.createElement)(u.CheckboxControl,{...h,id:B,name:T,className:"woocommerce-search-list__item-input",value:(0,f.decodeEntities)(c.value),label:C((0,f.decodeEntities)(c.name),m),onChange:s(c),checked:a}),y?(0,r.createElement)(S,{label:e||c.count}):null)},A=P;var T=o(2478),B=o(2370);o(6636);const I=({id:e,label:t,popoverContents:o,remove:n,screenReaderLabel:a,className:l=""})=>{const[m,d]=(0,g.useState)(!1),h=(0,p.useInstanceId)(I);if(a=a||t,!t)return null;t=(0,f.decodeEntities)(t);const w=(0,i.A)("woocommerce-tag",l,{"has-remove":!!n}),_=`woocommerce-tag__label-${h}`,b=(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"screen-reader-text"},a),(0,r.createElement)("span",{"aria-hidden":"true"},t));return(0,r.createElement)("span",{className:w},o?(0,r.createElement)(u.Button,{className:"woocommerce-tag__text",id:_,onClick:()=>d(!0)},b):(0,r.createElement)("span",{className:"woocommerce-tag__text",id:_},b),o&&m&&(0,r.createElement)(u.Popover,{onClose:()=>d(!1)},o),n&&(0,r.createElement)(u.Button,{className:"woocommerce-tag__remove",onClick:n(e),label:(0,s.sprintf)( // Translators: %s label. // Translators: %s label. (0,s.__)("Remove %s","woocommerce"),t),"aria-describedby":_},(0,r.createElement)(c.A,{icon:B.A,size:20,className:"clear-icon",role:"img"})))},L=I;o(8137);const D=e=>(0,r.createElement)(A,{...e}),O=e=>{const{list:t,selected:o,renderItem:n,depth:c=0,onSelect:a,instanceId:l,isSingle:s,search:i,useExpandedPanelId:m}=e,[d]=m;return t?(0,r.createElement)(g.Fragment,null,t.map((t=>{var u,p;const h=null!==(u=t.children)&&void 0!==u&&u.length&&!s?t.children.every((({id:e})=>o.find((t=>t.id===e)))):!!o.find((({id:e})=>e===t.id)),w=(null===(p=t.children)||void 0===p?void 0:p.length)&&d===t.id;return(0,r.createElement)(g.Fragment,{key:t.id},(0,r.createElement)("li",null,n({item:t,isSelected:h,onSelect:a,isSingle:s,selected:o,search:i,depth:c,useExpandedPanelId:m,controlId:l})),w?(0,r.createElement)(O,{...e,list:t.children,depth:c+1}):null)}))):null},R=({isLoading:e,isSingle:t,selected:o,messages:n,onChange:c,onRemove:a})=>{if(e||t||!o)return null;const l=o.length;return(0,r.createElement)("div",{className:"woocommerce-search-list__selected"},(0,r.createElement)("div",{className:"woocommerce-search-list__selected-header"},(0,r.createElement)("strong",null,n.selected(l)),l>0?(0,r.createElement)(u.Button,{variant:"link",isDestructive:!0,onClick:()=>c([]),"aria-label":n.clear},(0,s.__)("Clear all","woocommerce")):null),l>0?(0,r.createElement)("ul",null,o.map(((e,t)=>(0,r.createElement)("li",{key:t},(0,r.createElement)(L,{label:e.name,id:e.id,remove:a}))))):null)},F=({filteredList:e,search:t,onSelect:o,instanceId:n,useExpandedPanelId:a,...l})=>{const{messages:i,renderItem:m,selected:d,isSingle:u}=l,p=m||D;return 0===e.length?(0,r.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},(0,r.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},(0,r.createElement)(c.A,{icon:T.A,role:"img"})),(0,r.createElement)("span",{className:"woocommerce-search-list__not-found-text"},t?(0,s.sprintf)(i.noResults,t):i.noItems)):(0,r.createElement)("ul",{className:"woocommerce-search-list__list"},(0,r.createElement)(O,{useExpandedPanelId:a,list:e,selected:d,renderItem:p,onSelect:o,instanceId:n,isSingle:u,search:t}))},V=e=>{const{className:t="",isCompact:o,isHierarchical:n,isLoading:c,isSingle:a,list:l,messages:m=k,onChange:d,onSearch:h,selected:w,type:_="text",debouncedSpeak:b}=e,[E,y]=(0,g.useState)(""),v=(0,g.useState)(-1),f=(0,p.useInstanceId)(V),C=(0,g.useMemo)((()=>({...k,...m})),[m]),S=(0,g.useMemo)((()=>((e,t,o)=>{if(!t)return o?x(e):e;const r=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),n=e.map((e=>!!r.test(e.name)&&e)).filter(Boolean);return o?x(n,e):n})(l,E,n)),[l,E,n]);(0,g.useEffect)((()=>{b&&b(C.updated)}),[b,C]),(0,g.useEffect)((()=>{"function"==typeof h&&h(E)}),[E,h]);const N=(0,g.useCallback)((e=>()=>{a&&d([]);const t=w.findIndex((({id:t})=>t===e));d([...w.slice(0,t),...w.slice(t+1)])}),[a,w,d]),P=(0,g.useCallback)((e=>()=>{Array.isArray(e)?d(e):-1===w.findIndex((({id:t})=>t===e.id))?d(a?[e]:[...w,e]):N(e.id)()}),[a,N,d,w]),A=(0,g.useCallback)((e=>{const[t]=w.filter((t=>!e.find((e=>t.id===e.id))));N(t.id)()}),[N,w]);return(0,r.createElement)("div",{className:(0,i.A)("woocommerce-search-list",t,{"is-compact":o,"is-loading":c,"is-token":"token"===_})},"text"===_&&(0,r.createElement)(R,{...e,onRemove:N,messages:C}),(0,r.createElement)("div",{className:"woocommerce-search-list__search"},"text"===_?(0,r.createElement)(u.TextControl,{label:C.search,type:"search",value:E,onChange:e=>y(e)}):(0,r.createElement)(u.FormTokenField,{disabled:c,label:C.search,onChange:A,onInputChange:e=>y(e),suggestions:[],__experimentalValidateInput:()=>!1,value:c?[(0,s.__)("Loading…","woocommerce")]:w.map((e=>({...e,value:e.name}))),__experimentalShowHowTo:!1})),c?(0,r.createElement)("div",{className:"woocommerce-search-list__list"},(0,r.createElement)(u.Spinner,null)):(0,r.createElement)(F,{...e,search:E,filteredList:S,messages:C,onSelect:P,instanceId:f,useExpandedPanelId:v}))},$=((0,u.withSpokenMessages)(V),e=>t=>{let{selected:o}=t;o=void 0===o?null:o;const n=null===o;return Array.isArray(o)?(0,r.createElement)(e,{...t}):(0,r.createElement)(e,{...t,selected:n?[]:[o]})});var M=o(2516),z=o(3832);const H=window.wp.apiFetch;var j=o.n(H),q=o(5703);const W=({selected:e=[],search:t="",queryArgs:o={}})=>{const r=(({selected:e=[],search:t="",queryArgs:o={}})=>{const r=M.r7.productCount>100,n={per_page:r?100:0,catalog_visibility:"any",search:t,orderby:"title",order:"asc"},c=[(0,z.addQueryArgs)("/wc/store/v1/products",{...n,...o})];return r&&e.length&&c.push((0,z.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:e,per_page:0})),c})({selected:e,search:t,queryArgs:o});return Promise.all(r.map((e=>j()({path:e})))).then((e=>{const t=((e,t)=>{const o=new Map;return e.filter((e=>{const r=t(e);return!o.has(r)&&(o.set(r,e),!0)}))})(e.flat(),(e=>e.id));return t.map((e=>({...e,parent:0})))})).catch((e=>{throw e}))};var G=o(4717);const Q=async e=>{if(!("json"in e))return{code:e.code||"",message:e.message,type:e.type||"general"};try{const t=await e.json();return{code:t.code||"",message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}};var U=o(2294),Y=o(923),J=o.n(Y);const K=(0,p.createHigherOrderComponent)((e=>{class t extends g.Component{constructor(...e){super(...e),(0,U.A)(this,"state",{error:null,loading:!1,variations:{}}),(0,U.A)(this,"prevSelectedItem",void 0),(0,U.A)(this,"loadVariations",(()=>{const{products:e}=this.props,{loading:t,variations:o}=this.state;if(t)return;const r=this.getExpandedProduct();if(!r||o[r])return;const n=e.find((e=>e.id===r));var c;null!=n&&n.variations&&0!==n.variations.length?(this.setState({loading:!0}),(c=r,j()({path:(0,z.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:c})})).then((e=>{const t=e.map((e=>({...e,parent:r})));this.setState({variations:{...this.state.variations,[r]:t},loading:!1,error:null})})).catch((async e=>{const t=await Q(e);this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:t})}))):this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:null})}))}componentDidMount(){const{selected:e,showVariations:t}=this.props;e&&t&&this.loadVariations()}componentDidUpdate(e){const{isLoading:t,selected:o,showVariations:r}=this.props;r&&(!J()(e.selected,o)||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:o}=this.props;return null===(t=o.filter((t=>t.variations&&t.variations.find((({id:t})=>t===e))))[0])||void 0===t?void 0:t.id}getExpandedProduct(){const{isLoading:e,selected:t,showVariations:o}=this.props;if(!o)return null;let r=t&&t.length?t[0]:null;return r?this.prevSelectedItem=r:!this.prevSelectedItem||e||this.isProductId(this.prevSelectedItem)||(r=this.prevSelectedItem),!e&&r?this.isProductId(r)?r:this.findParentProduct(r):null}render(){const{error:t,isLoading:o}=this.props,{error:n,loading:c,variations:a}=this.state;return(0,r.createElement)(e,{...this.props,error:n||t,expandedProduct:this.getExpandedProduct(),isLoading:o,variations:a,variationsLoading:c})}}return t}),"withProductVariations"),Z=K,X=e=>{const{id:t,name:o,parent:r}=e;return{id:t,name:o,parent:r,breadcrumbs:[],children:[],details:e,value:e.slug}},ee=window.wp.escapeHtml,te=({error:e})=>(0,r.createElement)("div",{className:"wc-block-error-message"},(({message:e,type:t})=>e?"general"===t?(0,r.createElement)("span",null,(0,s.__)("The following error was returned","woocommerce"),(0,r.createElement)("br",null),(0,r.createElement)("code",null,(0,ee.escapeHTML)(e))):"api"===t?(0,r.createElement)("span",null,(0,s.__)("The following error was returned from the API","woocommerce"),(0,r.createElement)("br",null),(0,r.createElement)("code",null,(0,ee.escapeHTML)(e))):e:(0,s.__)("An error has prevented the block from being updated.","woocommerce"))(e)),oe=({className:e,item:t,isSelected:o,isLoading:n,onSelect:c,disabled:a,...l})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(P,{...l,key:t.id,className:e,isSelected:o,item:t,onSelect:c,disabled:a}),o&&n&&(0,r.createElement)("div",{key:"loading",className:(0,i.A)("woocommerce-search-list__item","woocommerce-product-attributes__item","depth-1","is-loading","is-not-active")},(0,r.createElement)(u.Spinner,null)));o(7369);const re={list:(0,s.__)("Products","woocommerce"),noItems:(0,s.__)("Your store doesn't have any products.","woocommerce"),search:(0,s.__)("Search for a product to display","woocommerce"),updated:(0,s.__)("Product search results updated.","woocommerce")},ne=$((ce=Z((0,p.withInstanceId)((e=>{const{expandedProduct:t=null,error:o,instanceId:n,isCompact:c=!1,isLoading:a,onChange:l,onSearch:m,products:d,renderItem:u,selected:p=[],showVariations:g=!1,variations:h,variationsLoading:w}=e;if(o)return(0,r.createElement)(te,{error:o});const _=[...d,...h&&t&&h[t]?h[t]:[]].map(X);return(0,r.createElement)(V,{className:"woocommerce-products",list:_,isCompact:c,isLoading:a,isSingle:!0,selected:_.filter((({id:e})=>p.includes(Number(e)))),onChange:l,renderItem:u||(g?e=>{var t,o,c,l;const{item:m,search:d,depth:u=0,isSelected:p,onSelect:g}=e,h=null!==(t=m.details)&&void 0!==t&&t.variations&&Array.isArray(m.details.variations)?m.details.variations.length:0,_=(0,i.A)("woocommerce-search-product__item","woocommerce-search-list__item",`depth-${u}`,"has-count",{"is-searching":d.length>0,"is-skip-level":0===u&&0!==m.parent,"is-variable":h>0});if(!m.breadcrumbs.length){var b,E,v,f;const t=(null===(b=m.details)||void 0===b?void 0:b.variations)&&m.details.variations.length>0;return(0,r.createElement)(oe,{...e,className:(0,i.A)(_,{"is-selected":p}),isSelected:p,item:m,onSelect:()=>()=>{g(m)()},isLoading:a||w,countLabel:t?(0,s.sprintf)(/* translators: %1$d is the number of variations of a product product. */ /* translators: %1$d is the number of variations of a product product. */ (0,s.__)("%1$d variations","woocommerce"),null===(E=m.details)||void 0===E?void 0:E.variations.length):null,name:`products-${n}`,"aria-label":t?(0,s.sprintf)(/* translators: %1$s is the product name, %2$d is the number of variations of that product. */ /* translators: %1$s is the product name, %2$d is the number of variations of that product. */ (0,s._n)("%1$s, has %2$d variation","%1$s, has %2$d variations",null===(v=m.details)||void 0===v||null===(v=v.variations)||void 0===v?void 0:v.length,"woocommerce"),m.name,null===(f=m.details)||void 0===f?void 0:f.variations.length):void 0})}const k=(0,y.isEmpty)(null===(o=m.details)||void 0===o?void 0:o.variation)?e:{...e,item:{...e.item,name:null===(c=m.details)||void 0===c?void 0:c.variation},"aria-label":`${m.breadcrumbs[0]}: ${null===(l=m.details)||void 0===l?void 0:l.variation}`};return(0,r.createElement)(P,{...k,className:_,name:`variations-${n}`})}:void 0),onSearch:m,messages:{...re,...e.messages},isHierarchical:!0})}))),({selected:e,...t})=>{const[o,n]=(0,g.useState)(!0),[c,a]=(0,g.useState)(null),[l,s]=(0,g.useState)([]),i=M.r7.productCount>100,m=async e=>{const t=await Q(e);a(t),n(!1)},d=(0,g.useRef)(e);(0,g.useEffect)((()=>{W({selected:d.current}).then((e=>{s(e),n(!1)})).catch(m)}),[d]);const u=(0,G.YQ)((t=>{W({selected:e,search:t}).then((e=>{s(e),n(!1)})).catch(m)}),400),p=(0,g.useCallback)((e=>{n(!0),u(e)}),[n,u]);return(0,r.createElement)(ce,{...t,selected:e,error:c,products:l,isLoading:o,onSearch:i?p:null})}));var ce;o(4738);const ae=function({className:e="",...t}){const o=(0,i.A)("wc-block-text-toolbar-button",e);return(0,r.createElement)(u.Button,{className:o,...t})};var le=o(2796);o(7947);const se=e=>t=>o=>{var n;const c=(0,le.useProductDataContext)(),{attributes:a,setAttributes:i}=o,{productId:m}=a,[d,p]=(0,g.useState)(!m);return c.hasContext||Number.isFinite(null===(n=o.context)||void 0===n?void 0:n.queryId)?(0,r.createElement)(t,{...o}):(0,r.createElement)(r.Fragment,null,d?(0,r.createElement)(u.Placeholder,{icon:e.icon||"",label:e.label||"",className:"wc-atomic-blocks-product"},!!e.description&&(0,r.createElement)("div",null,e.description),(0,r.createElement)("div",{className:"wc-atomic-blocks-product__selection"},(0,r.createElement)(ne,{selected:m||0,showVariations:!0,onChange:(e=[])=>{i({productId:e[0]?e[0].id:0})}}),(0,r.createElement)(u.Button,{variant:"secondary",disabled:!m,onClick:()=>{p(!1)}},(0,s.__)("Done","woocommerce")))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(u.ToolbarGroup,null,(0,r.createElement)(ae,{onClick:()=>p(!0)},(0,s.__)("Switch product…","woocommerce")))),(0,r.createElement)(t,{...o})))};var ie=o(4478);const me=(0,s.__)("Product Title","woocommerce"),de=(0,r.createElement)(c.A,{icon:ie.A,className:"wc-block-editor-components-block-icon"}),ue=(0,s.__)("Display the title of a product.","woocommerce");o(6342);const pe=(0,p.compose)([se({icon:de,label:me,description:(0,s.__)("Choose a product to display its title.","woocommerce")})])((({attributes:e,setAttributes:t})=>{const o=(0,l.useBlockProps)(),{headingLevel:n,showProductLink:c,align:a,linkTarget:i}=e;return(0,r.createElement)("div",{...o},(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(b,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:n,onChange:e=>t({headingLevel:e})}),(0,r.createElement)(l.AlignmentToolbar,{value:a,onChange:e=>{t({align:e})}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Link settings","woocommerce")},(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Make title a link","woocommerce"),checked:c,onChange:()=>t({showProductLink:!c})}),c&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Open in new tab","woocommerce"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===i})))),(0,r.createElement)(u.Disabled,null,(0,r.createElement)(E.A,{...e})))})),ge=pe,he={...m,ancestor:["woocommerce/all-products","woocommerce/single-product"],title:me,description:ue,icon:{src:de},attributes:d.A,edit:ge,save:({attributes:e})=>(0,r.createElement)("div",{...l.useBlockProps.save({className:(0,i.A)("is-loading",e.className)})}),supports:{...m.supports,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"}};(0,n.registerBlockType)("woocommerce/product-title",he);var we=o(7143);class _e{constructor(){(0,U.A)(this,"blocks",new Map),(0,U.A)(this,"currentTemplateId",void 0),(0,U.A)(this,"initialized",!1),(0,U.A)(this,"attemptedRegisteredBlocks",new Set),this.initializeSubscriptions()}static getInstance(){return _e.instance||(_e.instance=new _e),_e.instance}parseTemplateId(e){const t=(0,y.isNumber)(e)?void 0:e;return null==t?void 0:t.split("//")[1]}initializeSubscriptions(){if(this.initialized)return;const e=(0,we.subscribe)((()=>{const t=(0,we.select)("core/edit-site"),o=(0,we.select)("core/edit-post");if(t||o)if(t){const o=t.getEditedPostId();e(),this.currentTemplateId="string"==typeof o?this.parseTemplateId(o):void 0,(0,we.subscribe)((()=>{const e=this.currentTemplateId;this.currentTemplateId=this.parseTemplateId(t.getEditedPostId()),e!==this.currentTemplateId&&this.handleTemplateChange(e)}),"core/edit-site"),this.initialized=!0}else o&&(e(),this.blocks.forEach((e=>{if(e.isAvailableOnPostEditor){const t=e.variationName||e.blockName;this.hasAttemptedRegistration(t)||this.registerBlock(e)}})),this.initialized=!0)}))}handleTemplateChange(e){var t;((null===(t=this.currentTemplateId)||void 0===t?void 0:t.includes("single-product"))||(null==e?void 0:e.includes("single-product")))&&this.blocks.forEach((e=>{this.unregisterBlock(e),this.registerBlock(e)}))}hasAttemptedRegistration(e){return this.attemptedRegisteredBlocks.has(e)}unregisterBlock(e){const{blockName:t,isVariationBlock:o,variationName:r}=e;try{o&&r?((0,n.unregisterBlockVariation)(t,r),this.attemptedRegisteredBlocks.delete(r)):((0,n.unregisterBlockType)(t),this.attemptedRegisteredBlocks.delete(t))}catch(e){console.debug(`Failed to unregister block ${t}:`,e)}}registerBlock(e){const{blockName:t,settings:o,isVariationBlock:r,variationName:c,isAvailableOnPostEditor:a}=e;try{const e=c||t;if(this.hasAttemptedRegistration(e))return;const s=(0,we.select)("core/edit-site");if(!s&&!a)return;if(r)(0,n.registerBlockVariation)(t,o);else{var l;const e=(0,y.isEmpty)(null==o?void 0:o.ancestor)?["woocommerce/single-product"]:null==o?void 0:o.ancestor,r=s&&(null===(l=this.currentTemplateId)||void 0===l?void 0:l.includes("single-product"));(0,n.registerBlockType)(t,{...o,ancestor:r?void 0:e})}this.attemptedRegisteredBlocks.add(e)}catch(e){console.error(`Failed to register block ${t}:`,e)}}registerBlockConfig(e){const t=e.variationName||e.blockName;this.blocks.set(t,e),this.registerBlock(e)}}(0,U.A)(_e,"instance",void 0);const be=(e,t)=>{const o="string"==typeof e?e:e.name;if(!o)return void console.error("registerProductBlockType: Block name is required for registration");const r="string"==typeof e?{}:(({name:e,...t})=>t)(e),{isVariationBlock:n,variationName:c,isAvailableOnPostEditor:a,...l}={...r,...t||{}},s={blockName:o,settings:{...l},isVariationBlock:null!=n&&n,variationName:null!=c?c:void 0,isAvailableOnPostEditor:null!=a&&a};_e.getInstance().registerBlockConfig(s)};var Ee=o(3576),ye=o(4431);const ve=()=>({isDescendentOfSingleProductTemplate:(0,we.useSelect)((e=>{const t=e("core/edit-site"),o=null==t?void 0:t.getEditedPostId();return Boolean(null==o?void 0:o.includes("//single-product"))}),[])}),fe={...m.supports,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}}};be({...JSON.parse('{"name":"woocommerce/product-price","version":"1.0.0","title":"Product Price","description":"Display the price of a product.","category":"woocommerce-product-elements","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"supports":{"html":false},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"$schema":"https://schemas.wp.org/trunk/block.json"}'),...m,supports:fe,icon:(0,r.createElement)(c.A,{icon:Ee.A,className:"wc-block-editor-components-block-icon"}),edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c={...e,...o},a=Number.isFinite(o.queryId);let{isDescendentOfSingleProductTemplate:s}=ve();return a&&(s=!1),(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:a,isDescendentOfSingleProductTemplate:s})),[a,s,t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e})}})),(0,r.createElement)("div",{...n},(0,r.createElement)(ye.default,{...c})))}},{isAvailableOnPostEditor:!0});var ke=o(2623),xe=o(4269);const Ce=(0,r.createElement)(c.A,{icon:xe.A,className:"wc-block-editor-components-block-icon"});var Se=o(7746),Ne=o(3945);const Pe={cover:(0,s.__)("Image is scaled and cropped to fill the entire space without being distorted.","woocommerce"),contain:(0,s.__)("Image is scaled to fill the space without clipping nor distorting.","woocommerce"),fill:(0,s.__)("Image will be stretched and distorted to completely fill the space.","woocommerce")},Ae=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"},{value:"vw",label:"vw"},{value:"vh",label:"vh"}],Te=({scale:e,width:t,height:o,setAttributes:n})=>(0,r.createElement)(u.__experimentalToolsPanel,{className:"wc-block-product-image__tools-panel",label:(0,s.__)("Image size","woocommerce")},(0,r.createElement)(u.__experimentalUnitControl,{label:(0,s.__)("Height","woocommerce"),onChange:e=>{n({height:e})},value:o,units:Ae}),(0,r.createElement)(u.__experimentalUnitControl,{label:(0,s.__)("Width","woocommerce"),onChange:e=>{n({width:e})},value:t,units:Ae}),o&&(0,r.createElement)(u.__experimentalToolsPanelItem,{hasValue:()=>!0,label:(0,s.__)("Scale","woocommerce")},(0,r.createElement)(u.__experimentalToggleGroupControl,{label:(0,s.__)("Scale","woocommerce"),value:e,help:Pe[e],onChange:e=>n({scale:e}),isBlock:!0},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"cover",label:(0,s.__)("Cover","woocommerce")}),(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"contain",label:(0,s.__)("Contain","woocommerce")}),(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"fill",label:(0,s.__)("Fill","woocommerce")}))))),Be=se({icon:Ce,title:Se.title,description:Se.description})((({attributes:e,setAttributes:t,context:o})=>{const{showProductLink:n,imageSizing:c,showSaleBadge:a,saleBadgeAlign:i,width:m,height:d,scale:p}=e,h=(0,l.useBlockProps)({style:{width:m,height:d}}),w=Number.isFinite(o.queryId),_=(0,q.getSettingWithCoercion)("isBlockThemeEnabled",!1,y.isBoolean);return(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:w})),[t,w]),(0,r.createElement)("div",{...h},(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(Te,{scale:p,width:m,height:d,setAttributes:t}),(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Content","woocommerce")},(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Link to Product Page","woocommerce"),help:(0,s.__)("Links the image to the single product listing.","woocommerce"),checked:n,onChange:()=>t({showProductLink:!n})}),(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Show On-Sale Badge","woocommerce"),help:(0,s.__)("Display a “sale” badge if the product is on-sale.","woocommerce"),checked:a,onChange:()=>t({showSaleBadge:!a})}),a&&(0,r.createElement)(u.__experimentalToggleGroupControl,{label:(0,s.__)("Sale Badge Alignment","woocommerce"),isBlock:!0,value:i,onChange:e=>t({saleBadgeAlign:e})},(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"left",label:(0,s.__)("Left","woocommerce")}),(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"center",label:(0,s.__)("Center","woocommerce")}),(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:"right",label:(0,s.__)("Right","woocommerce")})),(0,r.createElement)(u.__experimentalToggleGroupControl,{label:(0,s.__)("Image Sizing","woocommerce"),isBlock:!0,help:_?null:(0,g.createInterpolateElement)((0,s.__)("Product image cropping can be modified in the <a>Customizer</a>.","woocommerce"),{a:(0,r.createElement)("a",{href:`${(0,q.getAdminLink)("customize.php")}?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images`,target:"_blank",rel:"noopener noreferrer"})}),value:c,onChange:e=>t({imageSizing:e})},(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:Ne.e.SINGLE,label:(0,s.__)("Full Size","woocommerce")}),(0,r.createElement)(u.__experimentalToggleGroupControlOption,{value:Ne.e.THUMBNAIL,label:(0,s.__)("Cropped","woocommerce")})))),(0,r.createElement)(u.Disabled,null,(0,r.createElement)(ke.A,{...e,...o})))})),Ie={html:!1,__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}},__experimentalSelector:".wc-block-components-product-image"};(0,n.registerBlockType)(Se,{...m,icon:Ce,supports:Ie,edit:Be});var Le=o(9325);o(3047);const De=({blockClientId:e})=>{const{isDescendentOfSingleProductBlock:t}=(0,we.useSelect)((t=>{const{getBlockParentsByBlockName:o}=t("core/block-editor");return{isDescendentOfSingleProductBlock:o(null==e?void 0:e.replace("block-",""),["woocommerce/single-product"]).length>0}}),[e]);return{isDescendentOfSingleProductBlock:t}};var Oe=o(846);(0,s.__)("Product Rating","woocommerce");const Re=(0,r.createElement)(c.A,{icon:Oe.A,className:"wc-block-editor-components-block-icon"}),Fe=((0,s.__)("Display the average rating of a product.","woocommerce"),JSON.parse('{"name":"woocommerce/product-rating","version":"1.0.0","icon":"info","title":"Product Rating","description":"Display the average rating of a product.","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"supports":{"align":true},"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}')),Ve={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",..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0}}};be({...Fe,...m,icon:{src:Re},supports:Ve,edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=De({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,g.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(Le.default,{...a})))}},{isAvailableOnPostEditor:!0});var $e=o(43);const Me=JSON.parse('{"name":"woocommerce/product-rating-stars","title":"Product Rating Stars","description":"Display the average rating of a product with stars","category":"woocommerce-product-elements","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"supports":{"align":true},"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var ze=o(53);(0,n.registerBlockType)(Me,{apiVersion:3,icon:{src:(0,r.createElement)(c.A,{icon:$e.A,className:"wc-block-editor-components-block-icon"})},supports:{inserter:!1,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"},edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=De({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,g.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(ze.default,{...a})))}});const He=JSON.parse('{"name":"woocommerce/product-rating-counter","version":"1.0.0","title":"Product Rating Counter","description":"Display the review count of a product","category":"woocommerce-product-elements","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"textAlign":{"type":"string","default":""},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"supports":{"align":true},"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var je=o(8494);(0,n.registerBlockType)(He,{apiVersion:3,icon:{src:(0,r.createElement)(c.A,{icon:$e.A,className:"wc-block-editor-components-block-icon"})},supports:{inserter:!1,color:{text:!1,background:!1,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-rating-counter"},edit:e=>{const{attributes:t,setAttributes:o,context:n}=e,c=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-rating-counter"}),a={...t,...n,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},s=Number.isFinite(n.queryId),{isDescendentOfSingleProductBlock:i}=De({blockClientId:null==c?void 0:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return(s||i)&&(m=!1),(0,g.useEffect)((()=>{o({isDescendentOfQueryLoop:s,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:m})}),[o,s,i,m]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...c},(0,r.createElement)(je.default,{...a})))}});var qe=o(6822);const We=JSON.parse('{"name":"woocommerce/product-average-rating","title":"Product Average Rating (Beta)","description":"Display the average rating of a product","apiVersion":3,"category":"woocommerce-product-elements","attributes":{"textAlign":{"type":"string"}},"keywords":["WooCommerce"],"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","$schema":"https://schemas.wp.org/trunk/block.json"}');var Ge=o(9075);(0,n.registerBlockType)(We,{apiVersion:3,icon:{src:(0,r.createElement)(c.A,{icon:qe.A,className:"wc-block-editor-components-block-icon"})},supports:{color:{text:!0,background:!0,__experimentalSkipSerialization:!0},spacing:{margin:!0,padding:!0,__experimentalSkipSerialization:!0},typography:{fontSize:!0,__experimentalFontWeight:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wc-block-components-product-average-rating"},edit:e=>{const{attributes:t,setAttributes:o}=e,n=(0,l.useBlockProps)({className:"wp-block-woocommerce-product-average-rating"});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})),(0,r.createElement)("div",{...n},(0,r.createElement)(Ge.default,{...t})))}});var Qe=o(498),Ue=o(1526);function Ye({selectedWidth:e,setAttributes:t}){return(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Width settings","woocommerce")},(0,r.createElement)(u.ButtonGroup,{"aria-label":(0,s.__)("Button width","woocommerce")},[25,50,75,100].map((o=>(0,r.createElement)(u.Button,{key:o,isSmall:!0,variant:o===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=o)?void 0:r})}},o,"%")))))}const Je=JSON.parse('{"name":"woocommerce/product-button","version":"1.0.0","title":"Add to Cart Button","description":"Display a call to action button which either adds the product to the cart, or links to the product page.","category":"woocommerce-product-elements","keywords":["WooCommerce"],"usesContext":["query","queryId","postId"],"textdomain":"woocommerce","attributes":{"productId":{"type":"number","default":0},"textAlign":{"type":"string","default":""},"width":{"type":"number"},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfQueryLoop":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"color":{"background":false,"link":true},"interactivity":true,"html":false,"typography":{"fontSize":true,"lineHeight":true}},"ancestor":["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"],"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"viewScript":["wc-product-button-interactivity-frontend"],"apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Ke={...Je.supports,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&&{spacing:{margin:!0}}};(0,n.registerBlockType)(Je,{apiVersion:3,icon:{src:(0,r.createElement)(c.A,{icon:Qe.A,className:"wc-block-editor-components-block-icon"})},attributes:{...Je.attributes},supports:{...Ke},edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c=Number.isFinite(null==o?void 0:o.queryId),{width:a}=e;return(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:c})),[t,c]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(l.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e||""})}})),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(Ye,{selectedWidth:a,setAttributes:t})),(0,r.createElement)("div",{...n},(0,r.createElement)(u.Disabled,null,(0,r.createElement)(Ue.default,{...e,...o,className:(0,i.A)(e.className,{[`has-custom-width wp-block-button__width-${a}`]:a})}))))},save:({attributes:e,innerBlocks:t})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock||!t||0===(null==t?void 0:t.length)?null:(0,r.createElement)("div",{...l.useBlockProps.save({className:(0,i.A)("is-loading",e.className,{[`has-custom-width wp-block-button__width-${e.width}`]:e.width})})})});var Ze=o(3591);o(7764);const Xe=({showDescriptionIfEmpty:e,setAttributes:t})=>{const o=(0,s.__)("Show description if empty","woocommerce"),n=(0,s.__)("Display the product description if it doesn't have a summary","woocommerce");return(0,r.createElement)(u.__experimentalToolsPanelItem,{label:o,hasValue:()=>!0===e,onDeselect:()=>t({showDescriptionIfEmpty:!1}),isShownByDefault:!0},(0,r.createElement)(u.ToggleControl,{label:o,help:n,checked:e,onChange:e=>{t({showDescriptionIfEmpty:e})}}))},et=({summaryLength:e,setAttributes:t})=>{const o=(0,s.__)("Max word count","woocommerce"),n=(0,s.__)("When there is a word limit, only the first paragraph will be considered and displayed. Set to 0 to remove the word limit.","woocommerce");return(0,r.createElement)(u.__experimentalToolsPanelItem,{label:o,hasValue:()=>0!==e,onDeselect:()=>t({summaryLength:0}),isShownByDefault:!0},(0,r.createElement)(u.RangeControl,{label:o,help:n,value:e,onChange:e=>{t({summaryLength:e||0})},min:0,max:200,step:10}))},tt=({showLink:e,setAttributes:t})=>{const o=(0,s.__)("Link to description","woocommerce"),n=(0,s.__)("Display a button to let shoppers jump to the product's description","woocommerce");return(0,r.createElement)(u.__experimentalToolsPanelItem,{label:o,hasValue:()=>!1===e,onDeselect:()=>t({showLink:!1}),isShownByDefault:!0},(0,r.createElement)(u.ToggleControl,{label:o,help:n,checked:e,onChange:e=>{t({showLink:e})}}))},ot=({linkText:e,setAttributes:t})=>(0,r.createElement)("p",null,(0,r.createElement)(l.RichText,{identifier:"linkToDescrption",className:"wc-block-components-product-summary__more-link",tagName:"a","aria-label":(0,s.__)("“Read more” link text","woocommerce"),placeholder:(0,s.__)('Add "read more" link text',"woocommerce"),value:e,onChange:e=>t({linkText:e}),withoutInteractiveFormatting:!0}));var rt=o(6465);const nt=(0,s.__)("Product Summary","woocommerce"),ct=(0,r.createElement)(c.A,{icon:rt.A,className:"wc-block-editor-components-block-icon"}),at=(0,s.__)("Display a short description about a product.","woocommerce"),lt=JSON.parse('{"name":"woocommerce/product-summary","version":"1.0.0","icon":"page","title":"Product Summary","description":"Display a short description about a product.","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendantOfAllProducts":{"type":"boolean","default":false},"showDescriptionIfEmpty":{"type":"boolean","default":false},"showLink":{"type":"boolean","default":false},"summaryLength":{"type":"number","default":0},"linkText":{"type":"string","default":""}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var st=o(2619);function it(e,{blockDescription:t,blockIcon:o,blockTitle:r,variationName:c,scope:a}){(0,n.registerBlockVariation)(e,{description:t,name:c,title:r,isActive:e=>e.__woocommerceNamespace===c,icon:{src:o},attributes:{__woocommerceNamespace:c},scope:a})}const mt="woocommerce/product-query/product-summary";it("core/post-excerpt",{blockDescription:at,blockIcon:(0,r.createElement)(u.Icon,{icon:rt.A}),blockTitle:nt,variationName:mt,scope:[]});const dt=`${JSON.parse('{"name":"woocommerce/product-collection"}').name}/product-summary`;function ut({children:e,className:t,actionLabel:o,onActionClick:n,...c}){return(0,r.createElement)(u.Notice,{...c,className:(0,i.$)("wc-block-editor-components-upgrade-downgrade-notice",t),actions:[{label:o,onClick:n,noDefaultClasses:!0,variant:"link"}]},(0,r.createElement)("div",{className:"wc-block-editor-components-upgrade-downgrade-notice__text"},e))}o(2615);const pt=({clientId:e})=>{const t=(0,g.createInterpolateElement)((0,s.__)("There's <strongText /> with important fixes and brand new features.","woocommerce"),{strongText:(0,r.createElement)("strong",null,(0,s.__)("new version of Product Summary","woocommerce"))}),o=(0,s.__)("Upgrade now (just this block)","woocommerce");return(0,r.createElement)(ut,{isDismissible:!1,actionLabel:o,onActionClick:()=>{const t=(0,we.select)(l.store).getBlocksByClientId(e);if(t.length){const o=t[0],{excerptLength:r,showMoreOnNewLine:c,moreText:a,...s}=o.attributes,i=(0,n.createBlock)("woocommerce/product-summary",s);(0,we.dispatch)(l.store).replaceBlock(e,i)}}},t)};(0,st.addFilter)("editor.BlockEdit","woocommerce-blocks/product-summary-upgrade-notice",(e=>t=>(e=>{const t=e.attributes.__woocommerceNamespace===mt,o=e.attributes.__woocommerceNamespace===dt;return"core/post-excerpt"===e.name&&(t||o)})(t)?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(pt,{clientId:t.clientId})),(0,r.createElement)(e,{...t})):(0,r.createElement)(e,{...t})));const gt=[{save:m.save,migrate:e=>({...e,showDescriptionIfEmpty:!0,summaryLength:150}),isEligible:e=>(0,y.isEmptyObject)(e)}];be({...lt,...m,icon:{src:ct},supports:{color:{text:!0,background:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:".wc-block-components-product-summary"},deprecated:gt,edit:({attributes:e,context:t,setAttributes:o})=>{const n=(0,l.useBlockProps)(),{showDescriptionIfEmpty:c,showLink:a,summaryLength:i,linkText:m,isDescendantOfAllProducts:d}=e,p=Number.isFinite(t.queryId),{isDescendentOfSingleProductBlock:h}=De({blockClientId:n.id});let{isDescendentOfSingleProductTemplate:w}=ve();return p&&(w=!1),(0,g.useEffect)((()=>o({isDescendentOfQueryLoop:p,isDescendentOfSingleProductTemplate:w,isDescendentOfSingleProductBlock:h})),[o,p,w,h]),(0,r.createElement)("div",{...n},(0,r.createElement)(Ze.default,{...e}),(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(u.__experimentalToolsPanel,{label:(0,s.__)("Settings","woocommerce"),resetAll:()=>{o({})}},(0,r.createElement)(et,{summaryLength:i,setAttributes:o}),(0,r.createElement)(Xe,{showDescriptionIfEmpty:c,setAttributes:o}),!d&&(0,r.createElement)(tt,{showLink:a,setAttributes:o}))),!d&&a&&(0,r.createElement)(ot,{linkText:m,setAttributes:o}))}},{isAvailableOnPostEditor:!0});var ht=o(1173),wt=o(3905);const _t={html:!1,align:!0,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&&{spacing:{margin:!0}}},bt=JSON.parse('{"name":"woocommerce/product-sale-badge","version":"1.0.0","title":"On-Sale Badge","description":"Displays an on-sale badge if the product is on-sale.","category":"woocommerce-product-elements","attributes":{"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');(0,n.registerBlockType)(bt,{...m,icon:(0,r.createElement)(c.A,{icon:ht.A,className:"wc-block-editor-components-block-icon"}),supports:_t,edit:({attributes:e,setAttributes:t,context:o})=>{const n=(0,l.useBlockProps)(),c={...e,...o},a=Number.isFinite(o.queryId),{isDescendentOfSingleProductTemplate:s}=ve();return(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:a,isDescendentOfSingleProductTemplate:s})),[t,a,s]),(0,r.createElement)("div",{...n},(0,r.createElement)(wt.default,{...c}))},ancestor:[...m.ancestor||[],"woocommerce/product-gallery"]});var Et=o(4133);const yt=e=>{const t=((0,le.useProductDataContext)().product||{}).id||e.productId||0;return t&&1!==t?(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)("div",{className:"wc-block-single-product__edit-card"},(0,r.createElement)("div",{className:"wc-block-single-product__edit-card-title"},(0,r.createElement)("a",{href:`${q.ADMIN_URL}post.php?post=${t}&action=edit`,target:"_blank",rel:"noopener noreferrer"},(0,s.__)("Edit this product's details","woocommerce"),(0,r.createElement)(c.A,{icon:Et.A,size:16}))),(0,r.createElement)("div",{className:"wc-block-single-product__edit-card-description"},(0,s.__)("Edit details such as title, price, description and more.","woocommerce")))):null};o(1563);var vt=o(6511);const ft={...m.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}},kt=(0,r.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})),xt=(0,s.__)("Product SKU","woocommerce"),Ct=(0,r.createElement)(c.A,{icon:kt,className:"wc-block-editor-components-block-icon"}),St=(0,s.__)("Display the SKU of a product.","woocommerce"),Nt={...m,title:xt,description:St,icon:{src:Ct},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},prefix:{type:"string",default:"SKU:"},suffix:{type:"string",default:""}},ancestor:[...m.ancestor||[],"woocommerce/product-meta"],edit:({attributes:e,setAttributes:t,context:o})=>{const{style:n,...c}=(0,l.useBlockProps)({className:"wc-block-components-product-sku wp-block-woocommerce-product-sku"}),a={...e,...o},s=Number.isFinite(o.queryId),{isDescendentOfSingleProductBlock:i}=De({blockClientId:c.id});let{isDescendentOfSingleProductTemplate:m}=ve();return s&&(m=!1),(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:s,isDescendentOfSingleProductTemplate:m,isDescendentOfSingleProductBlock:i})),[t,s,m,i]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(yt,null),(0,r.createElement)("div",{...c,style:e.isDescendantOfAllProducts?void 0:n},(0,r.createElement)(vt.default,{...a,setAttributes:t})))},save:()=>null,supports:ft};(0,n.registerBlockType)("woocommerce/product-sku",{...Nt});var Pt=o(5916),At=o(885);const Tt=(0,s.__)("Product Stock Indicator","woocommerce"),Bt=(0,r.createElement)(c.A,{icon:At.A,className:"wc-block-editor-components-block-icon"}),It=(0,s.__)("Display product stock status.","woocommerce"),Lt=({attributes:e,setAttributes:t,context:o})=>{const{style:n,...c}=(0,l.useBlockProps)({className:"wc-block-components-product-stock-indicator"}),a={...e,...o},s=Number.isFinite(o.queryId);return(0,g.useEffect)((()=>t({isDescendentOfQueryLoop:s})),[t,s]),(0,r.createElement)("div",{...c,style:e.isDescendantOfAllProducts?void 0:n},(0,r.createElement)(yt,null),(0,r.createElement)(Pt.default,{...a}))},Dt={...m.supports,color:{text:!0,background:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontWeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0},..."function"==typeof l.__experimentalGetSpacingClassesAndStyles&&{spacing:{margin:!0,padding:!0}}},Ot={...m,title:Tt,description:It,icon:{src:Bt},attributes:{isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendantOfAllProducts:{type:"boolean",default:!1}},supports:Dt,edit:e=>{const{product:t}=(0,le.useProductDataContext)();return 0===t.id?(0,r.createElement)(Lt,{...e}):se({icon:Bt,label:Tt,description:It})(Lt)(e)},save:()=>null,usesContext:["query","queryId","postId"]};(0,n.registerBlockType)("woocommerce/product-stock-indicator",{...Ot});var Rt=o(3782);o(3400);const Ft=()=>(0,r.createElement)("div",{className:"wc-block-editor-product-gallery"},(0,r.createElement)("img",{src:`${M.sW}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"}),(0,r.createElement)("div",{className:"wc-block-editor-product-gallery__other-images"},[...Array(4).keys()].map((e=>(0,r.createElement)("img",{key:e,src:`${M.sW}block-placeholders/product-image-gallery.svg`,alt:"Placeholder"}))))),Vt=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-product-elements","supports":{"align":true,"multiple":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');o(618);const $t="woocommerce/product-gallery";be({...Vt,icon:Rt.A,edit:()=>{const e=(0,l.useBlockProps)();return(0,r.createElement)("div",{...e},(0,r.createElement)(u.Disabled,null,(0,r.createElement)(Ft,null)))},transforms:{to:[{type:"block",blocks:[$t],transform:()=>(0,n.createBlock)($t)}]}},{isAvailableOnPostEditor:!1});const Mt=(0,r.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 5.5H19C19.1326 5.5 19.2598 5.55268 19.3536 5.64645C19.4473 5.74021 19.5 5.86739 19.5 6V7.5C19.5 7.63261 19.4473 7.75979 19.3536 7.85355C19.2598 7.94732 19.1326 8 19 8H5C4.86739 8 4.74021 7.94732 4.64645 7.85355C4.55268 7.75979 4.5 7.63261 4.5 7.5V6C4.5 5.86739 4.55268 5.74021 4.64645 5.64645C4.74021 5.55268 4.86739 5.5 5 5.5V5.5ZM4 9.232C3.69597 9.05647 3.4435 8.804 3.26796 8.49997C3.09243 8.19594 3.00001 7.85106 3 7.5V6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4H19C19.5304 4 20.0391 4.21071 20.4142 4.58579C20.7893 4.96086 21 5.46957 21 6V7.5C21 7.85106 20.9076 8.19594 20.732 8.49997C20.5565 8.804 20.304 9.05647 20 9.232V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V9.232ZM5.5 9.5V18C5.5 18.1326 5.55268 18.2598 5.64645 18.3536C5.74021 18.4473 5.86739 18.5 6 18.5H18C18.1326 18.5 18.2598 18.4473 18.3536 18.3536C18.4473 18.2598 18.5 18.1326 18.5 18V9.5H5.5Z"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.25V11.75H16V13.25L8 13.25Z"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16.25V14.75H16V16.25H8Z"})),zt=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-product-elements","attributes":{"hideTabTitle":{"type":"boolean","default":false}},"keywords":["WooCommerce"],"supports":{"align":true,"spacing":{"margin":true}},"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Ht=({id:e,title:t,active:o})=>(0,r.createElement)("li",{className:(0,i.A)(`${e}_tab`,{active:o}),id:`tab-title-${e}`,role:"tab","aria-controls":`tab-${e}`},(0,r.createElement)("a",{href:`#tab-${e}`},t)),jt=({id:e,content:t})=>(0,r.createElement)("div",{className:`${e}_tab`,id:`tab-title-${e}`,role:"tab","aria-controls":`tab-${e}`},t),qt=({hideTabTitle:e})=>{const t=[{id:"description",title:"Description",active:!0,content:(0,r.createElement)(r.Fragment,null,!e&&(0,r.createElement)("h2",null,(0,s.__)("Description","woocommerce")),(0,r.createElement)("p",null,(0,s.__)("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}],o=t.map((({id:e,title:t,active:o})=>(0,r.createElement)(Ht,{key:e,id:e,title:t,active:o}))),n=t.map((({id:e,content:t})=>(0,r.createElement)(jt,{key:e,id:e,content:t})));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"wc-tabs tabs",role:"tablist"},o),n)};o(6160);o(3778),be({...zt,icon:{src:(0,r.createElement)(c.A,{icon:Mt,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{className:o,hideTabTitle:n}=e,c=(0,l.useBlockProps)({className:o});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...c},(0,r.createElement)(l.InspectorControls,{key:"inspector"},(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Settings","woocommerce")},(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Show tab title in content","woocommerce"),checked:!n,onChange:()=>t({hideTabTitle:!n})}))),(0,r.createElement)(u.Disabled,null,(0,r.createElement)(qt,{hideTabTitle:n}))))}},{isAvailableOnPostEditor:!1});const Wt=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-product-elements","keywords":["WooCommerce"],"supports":{},"attributes":{},"usesContext":["postId"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),Gt=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.Notice,{className:"wc-block-editor-related-products__notice",status:"info",isDismissible:!1},(0,r.createElement)("p",null,(0,s.__)("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"))),(0,r.createElement)("h2",null,(0,s.__)("3 reviews for this product","woocommerce")),(0,r.createElement)("img",{src:`${M.sW}block-placeholders/product-reviews.svg`,alt:"Placeholder"}),(0,r.createElement)("h3",null,(0,s.__)("Add a review","woocommerce")),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__form-container"},(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},(0,r.createElement)("span",null,(0,s.__)("Your rating *","woocommerce")),(0,r.createElement)("p",{className:"wp-block-woocommerce-product-reviews__editor__stars"})),(0,r.createElement)("div",{className:"wp-block-woocommerce-product-reviews__editor__row"},(0,r.createElement)("span",null,(0,s.__)("Your review *","woocommerce")),(0,r.createElement)("textarea",null)),(0,r.createElement)("input",{type:"submit",className:"submit wp-block-button__link wp-element-button",value:(0,s.__)("Submit","woocommerce")})));o(445),be({...Wt,edit:({attributes:e})=>{const{className:t}=e,o=(0,l.useBlockProps)({className:t});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...o},(0,r.createElement)(u.Disabled,null,(0,r.createElement)(Gt,null))))}},{isAvailableOnPostEditor:!1});const Qt=(0,r.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,r.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"})),Ut="woocommerce/product-query/product-title";it("core/post-title",{blockDescription:ue,blockIcon:(0,r.createElement)(u.Icon,{icon:ie.A}),blockTitle:me,variationName:Ut,scope:["block"]});var Yt=o(4396);const Jt="woocommerce/product-query/product-template";it("core/post-template",{blockDescription:(0,s.__)("Contains the block elements used to render a product, like its name, featured image, rating, and more.","woocommerce"),blockIcon:(0,r.createElement)(u.Icon,{icon:Yt.A}),blockTitle:(0,s.__)("Product template","woocommerce"),variationName:Jt,scope:["block","inserter"]});const Kt=(0,q.getSetting)("stockStatusOptions",[]),Zt=((0,q.getSetting)("hideOutOfStockItems",!1)?Object.keys(function(e,t){const{[t]:o,...r}=e;return r}(Kt,"outofstock")):Object.keys(Kt),(0,q.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,y.isBoolean),Ne.e.THUMBNAIL,"woocommerce/related-products"),Xt={namespace:Zt,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}},eo=(0,q.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,y.isBoolean),to=[["core/heading",{level:2,content:(0,s.__)("Related products","woocommerce"),style:{spacing:{margin:{top:"1rem",bottom:"1rem"}}}}],["core/post-template",{__woocommerceNamespace:Jt,...eo&&{layout:{type:"grid",columnCount:5}}},[["woocommerce/product-image",{productId:0,imageSizing:"cropped"}],["core/post-title",{textAlign:"center",level:3,fontSize:"medium",isLink:!0,__woocommerceNamespace:Ut},[]],["woocommerce/product-price",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]],["woocommerce/product-button",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]]]]];be({name:"core/query",description:(0,s.__)("Display related products.","woocommerce"),title:(0,s.__)("Related Products Controls","woocommerce"),isActive:e=>e.namespace===Zt,icon:(0,r.createElement)(u.Icon,{icon:Qt,className:"wc-block-editor-components-block-icon wc-block-editor-components-block-icon--stacks"}),attributes:Xt,allowedControls:[],innerBlocks:to,scope:["block"]},{isVariationBlock:!0,variationName:Zt,isAvailableOnPostEditor:!1}),o(9278);be({...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,"inserter":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),icon:{src:At.A},edit:()=>{const e=[["core/query",Xt,to]],t=(0,l.useBlockProps)();return(0,r.createElement)("div",{...t},(0,r.createElement)(l.InspectorControls,null,(0,r.createElement)(u.Notice,{className:"wc-block-editor-related-products__notice",status:"warning",isDismissible:!1},(0,r.createElement)("p",null,(0,s.__)("These products will vary depending on the main product in the page","woocommerce")))),(0,r.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return(0,r.createElement)("div",{...e},(0,r.createElement)(l.InnerBlocks.Content,null))},isAvailableOnPostEditor:!1},{isAvailableOnPostEditor:!1});const oo=(0,r.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)("path",{id:"icon/action/view_list_24px",fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 5.5H19C19.1326 5.5 19.2598 5.55268 19.3536 5.64645C19.4473 5.74021 19.5 5.86739 19.5 6V7.5C19.5 7.63261 19.4473 7.75979 19.3536 7.85355C19.2598 7.94732 19.1326 8 19 8H5C4.86739 8 4.74021 7.94732 4.64645 7.85355C4.55268 7.75979 4.5 7.63261 4.5 7.5V6C4.5 5.86739 4.55268 5.74021 4.64645 5.64645C4.74021 5.55268 4.86739 5.5 5 5.5V5.5ZM4 9.232C3.69597 9.05647 3.4435 8.804 3.26796 8.49997C3.09243 8.19594 3.00001 7.85106 3 7.5V6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4H19C19.5304 4 20.0391 4.21071 20.4142 4.58579C20.7893 4.96086 21 5.46957 21 6V7.5C21 7.85106 20.9076 8.19594 20.732 8.49997C20.5565 8.804 20.304 9.05647 20 9.232V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V9.232ZM5.5 9.5V18C5.5 18.1326 5.55268 18.2598 5.64645 18.3536C5.74021 18.4473 5.86739 18.5 6 18.5H18C18.1326 18.5 18.2598 18.4473 18.3536 18.3536C18.4473 18.2598 18.5 18.1326 18.5 18V9.5H5.5Z"}),(0,r.createElement)("circle",{cx:"9",cy:"14",r:"1"}),(0,r.createElement)("circle",{cx:"12",cy:"14",r:"1"}),(0,r.createElement)("circle",{cx:"15",cy:"14",r:"1"}));o(4593);be({...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-product-elements","supports":{"align":true,"reusable":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),icon:{src:(0,r.createElement)(c.A,{icon:oo,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["woocommerce/product-sku",{isDescendentOfSingleProductTemplate:ve()}],["core/post-terms",{prefix:(0,s.__)("Category: ","woocommerce"),term:"product_cat"}],["core/post-terms",{prefix:(0,s.__)("Tags: ","woocommerce"),term:"product_tag"}]]]],t=(0,l.useBlockProps)();return(0,r.createElement)("div",{...t},(0,r.createElement)(l.InnerBlocks,{template:e}))},save:()=>{const e=l.useBlockProps.save();return(0,r.createElement)("div",{...e},(0,r.createElement)(l.InnerBlocks.Content,null))},ancestor:["woocommerce/single-product"]},{isAvailableOnPostEditor:!0});const ro=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"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,"inserter":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}}}'),no=(e,t)=>{const{className:o,contentVisibility:r}=t;return(0,i.A)(e,o,{"has-image":r&&r.image,"has-title":r&&r.title,"has-rating":r&&r.rating,"has-price":r&&r.price,"has-button":r&&r.button})},{attributes:co}=ro,ao={attributes:Object.assign({},co,{rows:{type:"number",default:1}}),save({attributes:e}){const t={"data-attributes":JSON.stringify(e)};return(0,r.createElement)("div",{className:no("wc-block-all-products",e),...t},(0,r.createElement)(l.InnerBlocks.Content,null))}},lo=[ao],so=window.wc.wcBlocksRegistry;o.p=M.XK,(0,so.registerBlockComponent)({blockName:"woocommerce/product-price",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(2388)]).then(o.bind(o,4431))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-image",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(4232)]).then(o.bind(o,2934))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-title",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(2105)]).then(o.bind(o,3303))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-rating",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(462)]).then(o.bind(o,9325))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-rating-stars",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(8578)]).then(o.bind(o,53))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-rating-counter",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(8553)]).then(o.bind(o,8494))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-average-rating",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(8647)]).then(o.bind(o,9075))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-button",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(7409)]).then(o.bind(o,1526))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-summary",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(3895)]).then(o.bind(o,3591))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(4442)]).then(o.bind(o,3905))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-sku",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(2724)]).then(o.bind(o,6511))))}),(0,so.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:(0,g.lazy)((()=>Promise.all([o.e(94),o.e(345)]).then(o.bind(o,5916))))});const io=e=>(0,so.getRegisteredBlockComponents)(e),mo=(e,t,o)=>o?Math.min(e,t)===e?t:Math.max(e,o)===e?o:e:Math.max(e,t)===t?e:t,uo=({columns:e,rows:t,setAttributes:o,alignButtons:n,minColumns:c=1,maxColumns:a=6,minRows:l=1,maxRows:i=6})=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.RangeControl,{label:(0,s.__)("Columns","woocommerce"),value:e,onChange:e=>{const t=mo(e,c,a);o({columns:Number.isNaN(t)?"":t})},min:c,max:a}),(0,r.createElement)(u.RangeControl,{label:(0,s.__)("Rows","woocommerce"),value:t,onChange:e=>{const t=mo(e,l,i);o({rows:Number.isNaN(t)?"":t})},min:l,max:i}),(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Align the last block to the bottom","woocommerce"),help:n?(0,s.__)("Align the last block to the bottom.","woocommerce"):(0,s.__)("The last inner block will follow other content.","woocommerce"),checked:n,onChange:()=>o({alignButtons:!n})})),po=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:(0,s.__)("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:'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>7.99</span>',images:[{id:1,src:M.sW+"previews/pennant.jpg",thumbnail:M.sW+"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:(0,s.__)("Add to cart","woocommerce"),description:(0,s.__)("Add to cart","woocommerce")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}],go=[["woocommerce/product-image",{imageSizing:Ne.e.THUMBNAIL}],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],ho=e=>e&&0!==e.length?e.map((e=>{var t,o;return[e.name,{...e.attributes,product:void 0,children:e.innerBlocks.length>0?ho(e.innerBlocks):[],...e.name===Je.name&&{className:(0,i.A)(e.attributes.className,{[`has-custom-width wp-block-button__width-${null===(t=e.attributes)||void 0===t?void 0:t.width}`]:null===(o=e.attributes)||void 0===o?void 0:o.width})},isDescendantOfAllProducts:!0}]})):[];var wo=o(458),_o=o.n(wo),bo=o(4656);o(4156);const Eo=({currentPage:e,displayFirstAndLastPages:t=!0,displayNextAndPreviousArrows:o=!0,pagesToDisplay:n=3,onPageChange:c,totalPages:a})=>{let{minIndex:l,maxIndex:m}=((e,t,o)=>{if(o<=2)return{minIndex:null,maxIndex:null};const r=e-1,n=Math.max(Math.floor(t-r/2),2),c=Math.min(Math.ceil(t+(r-(t-n))),o-1);return{minIndex:Math.max(Math.floor(t-(r-(c-t))),2),maxIndex:c}})(n,e,a);const d=t&&Boolean(1!==l),u=t&&Boolean(m!==a),p=t&&Boolean(l&&l>3),g=t&&Boolean(m&&m<a-2);d&&3===l&&(l-=1),u&&m===a-2&&(m+=1);const h=[];if(l&&m)for(let e=l;e<=m;e++)h.push(e);return(0,r.createElement)("div",{className:"wc-block-pagination wc-block-components-pagination"},(0,r.createElement)(bo.Label,{screenReaderLabel:(0,s.__)("Navigate to another page","woocommerce")}),o&&(0,r.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>c(e-1),title:(0,s.__)("Previous page","woocommerce"),disabled:e<=1},(0,r.createElement)(bo.Label,{label:"←",screenReaderLabel:(0,s.__)("Previous page","woocommerce")})),d&&(0,r.createElement)("button",{className:(0,i.A)("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":1===e,"wc-block-components-pagination__page--active":1===e}),onClick:()=>c(1),disabled:1===e},(0,r.createElement)(bo.Label,{label:"1",screenReaderLabel:(0,s.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,s.__)("Page %d","woocommerce"),1)})),p&&(0,r.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},(0,s.__)("…","woocommerce")),h.map((t=>(0,r.createElement)("button",{key:t,className:(0,i.A)("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":e===t,"wc-block-components-pagination__page--active":e===t}),onClick:e===t?void 0:()=>c(t),disabled:e===t},(0,r.createElement)(bo.Label,{label:t.toString(),screenReaderLabel:(0,s.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,s.__)("Page %d","woocommerce"),t)})))),g&&(0,r.createElement)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true"},(0,s.__)("…","woocommerce")),u&&(0,r.createElement)("button",{className:(0,i.A)("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":e===a,"wc-block-components-pagination__page--active":e===a}),onClick:()=>c(a),disabled:e===a},(0,r.createElement)(bo.Label,{label:a.toString(),screenReaderLabel:(0,s.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,s.__)("Page %d","woocommerce"),a)})),o&&(0,r.createElement)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>c(e+1),title:(0,s.__)("Next page","woocommerce"),disabled:e>=a},(0,r.createElement)(bo.Label,{label:"→",screenReaderLabel:(0,s.__)("Next page","woocommerce")})))};function yo(e,t){const o=(0,g.useRef)();return(0,g.useEffect)((()=>{o.current===e||t&&!t(e,o.current)||(o.current=e)}),[e,t]),o.current}var vo=o(7594);function fo(e){const t=(0,g.useRef)(e);return J()(e,t.current)||(t.current=e),t.current}const ko=(0,g.createContext)("page"),xo=()=>(0,g.useContext)(ko),Co=(ko.Provider,(e,t,o)=>{const r=xo();o=o||r;const n=(0,we.useSelect)((r=>r(vo.QUERY_STATE_STORE_KEY).getValueForQueryKey(o,e,t)),[o,e]),{setQueryValue:c}=(0,we.useDispatch)(vo.QUERY_STATE_STORE_KEY);return[n,(0,g.useCallback)((t=>{c(o,e,t)}),[o,e,c])]}),So=e=>{const t={namespace:"/wc/store/v1",resourceName:"products"},{results:o,isLoading:r}=(e=>{const{namespace:t,resourceName:o,resourceValues:r=[],query:n={},shouldSelect:c=!0}=e;if(!t||!o)throw new Error("The options object must have valid values for the namespace and the resource properties.");const a=(0,g.useRef)({results:[],isLoading:!0}),l=fo(n),s=fo(r),i=(()=>{const[,e]=(0,g.useState)();return(0,g.useCallback)((t=>{e((()=>{throw t}))}),[])})(),m=(0,we.useSelect)((e=>{if(!c)return null;const r=e(vo.COLLECTIONS_STORE_KEY),n=[t,o,l,s],a=r.getCollectionError(...n);if(a){if(!(0,y.isError)(a))throw new Error("TypeError: `error` object is not an instance of Error constructor");i(a)}return{results:r.getCollection(...n),isLoading:!r.hasFinishedResolution("getCollection",n)}}),[t,o,s,l,c,i]);return null!==m&&(a.current=m),a.current})({...t,query:e}),{value:n}=((e,t)=>{const{namespace:o,resourceName:r,resourceValues:n=[],query:c={}}=t;if(!o||!r)throw new Error("The options object must have valid values for the namespace and the resource name properties.");const a=fo(c),l=fo(n),{value:s,isLoading:i=!0}=(0,we.useSelect)((t=>{const n=t(vo.COLLECTIONS_STORE_KEY),c=[e,o,r,a,l];return{value:n.getCollectionHeader(...c),isLoading:n.hasFinishedResolution("getCollectionHeader",c)}}),[e,o,r,l,a]);return{value:s,isLoading:i}})("x-wp-total",{...t,query:e});return{products:o,totalProducts:parseInt(n,10),productsLoading:r}};var No=o(9499);o(3135);const Po=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};var Ao=o(195),To=o(3588);const Bo=()=>{const{parentClassName:e}=(0,le.useInnerBlockLayoutContext)();return(0,r.createElement)("div",{className:`${e}__no-products`},(0,r.createElement)(c.A,{className:`${e}__no-products-image`,icon:To.A,size:100}),(0,r.createElement)("strong",{className:`${e}__no-products-title`},(0,s.__)("No products","woocommerce")),(0,r.createElement)("p",{className:`${e}__no-products-description`},(0,s.__)("There are currently no products available to display.","woocommerce")))};var Io=o(7850);const Lo=({resetCallback:e=()=>{}})=>{const{parentClassName:t}=(0,le.useInnerBlockLayoutContext)();return(0,r.createElement)("div",{className:`${t}__no-products`},(0,r.createElement)(c.A,{className:`${t}__no-products-image`,icon:Io.A,size:100}),(0,r.createElement)("strong",{className:`${t}__no-products-title`},(0,s.__)("No products found","woocommerce")),(0,r.createElement)("p",{className:`${t}__no-products-description`},(0,s.__)("We were unable to find any results based on your search.","woocommerce")),(0,r.createElement)("button",{onClick:e},(0,s.__)("Reset Search","woocommerce")))};o(7532);const Do=({onChange:e,value:t})=>(0,r.createElement)(bo.SortSelect,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",onChange:e,options:[{key:"menu_order",label:(0,s.__)("Default sorting","woocommerce")},{key:"popularity",label:(0,s.__)("Popularity","woocommerce")},{key:"rating",label:(0,s.__)("Average rating","woocommerce")},{key:"date",label:(0,s.__)("Latest","woocommerce")},{key:"price",label:(0,s.__)("Price: low to high","woocommerce")},{key:"price-desc",label:(0,s.__)("Price: high to low","woocommerce")}],screenReaderLabel:(0,s.__)("Order products by","woocommerce"),value:t}),Oo=(e,t,o,n)=>{if(!o)return;const c=io(e);return o.map((([o,a={}],l)=>{let s=[];a.children&&a.children.length>0&&(s=Oo(e,t,a.children,n));const i=c[o];if(!i)return null;const m=t.id||0,d=["layout",o,l,n,m];return(0,r.createElement)(g.Suspense,{key:d.join("_"),fallback:(0,r.createElement)("div",{className:"wc-block-placeholder"})},(0,r.createElement)(i,{...a,children:s,product:t}))}))},Ro=(0,p.withInstanceId)((({product:e={},attributes:t,instanceId:o})=>{const{layoutConfig:n}=t,{parentClassName:c,parentName:a}=(0,le.useInnerBlockLayoutContext)(),l=0===Object.keys(e).length,s=(0,i.A)(`${c}__product`,"wc-block-layout",{"is-loading":l});return(0,r.createElement)("li",{className:s,"aria-hidden":l},Oo(a,e,n,o))}));o(4458);const Fo=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"}}},Vo=({totalQuery:e,totalProducts:t},{totalQuery:o}={})=>!_o()(e,o)&&Number.isFinite(t),$o=(e=>t=>{const o=(0,g.useRef)(null);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"with-scroll-to-top__scroll-point",ref:o,"aria-hidden":!0}),(0,r.createElement)(e,{...t,scrollToTop:e=>{null!==o.current&&((e,t)=>{const{focusableSelector:o}=t||{};window&&Number.isFinite(window.innerHeight)&&(o?((e,t)=>{var o;const r=(null===(o=e.parentElement)||void 0===o?void 0:o.querySelectorAll(t))||[];if(r.length){const e=r[0];Po(e),null==e||e.focus()}else Po(e)})(e,o):Po(e))})(o.current,e)}}))})((({attributes:e,currentPage:t,onPageChange:o,onSortChange:n,sortValue:c,scrollToTop:a})=>{const[l,m]=Co("attributes",[]),[d,u]=Co("stock_status",[]),[p,h]=Co("rating",[]),[w,_]=Co("min_price"),[b,E]=Co("max_price"),[y]=((e,t)=>{const o=xo();t=t||o;const[r,n]=(e=>{const t=xo();e=e||t;const o=(0,we.useSelect)((t=>t(vo.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)),[e]),{setValueForQueryContext:r}=(0,we.useDispatch)(vo.QUERY_STATE_STORE_KEY);return[o,(0,g.useCallback)((t=>{r(e,t)}),[e,r])]})(t),c=fo(r),a=fo(e),l=yo(a),s=(0,g.useRef)(!1);return(0,g.useEffect)((()=>{J()(l,a)||(n(Object.assign({},c,a)),s.current=!0)}),[c,a,l,n]),s.current?[r,n]:[e,n]})((({sortValue:e,currentPage:t,attributes:o})=>{const{columns:r,rows:n}=o;return{...Fo(e),catalog_visibility:"catalog",per_page:r*n,page:t}})({attributes:e,sortValue:c,currentPage:t})),{products:v,totalProducts:f,productsLoading:k}=So(y),{parentClassName:x,parentName:C}=(0,le.useInnerBlockLayoutContext)(),S=(e=>{const{order:t,orderby:o,page:r,per_page:n,...c}=e;return c||{}})(y),{dispatchStoreEvent:N}=(0,No.y)(),P=yo({totalQuery:S,totalProducts:f},Vo);(0,g.useEffect)((()=>{N("product-list-render",{products:v,listName:C})}),[v,C,N]),(0,g.useEffect)((()=>{_o()(S,null==P?void 0:P.totalQuery)||(o(1),null!=P&&P.totalQuery&&(e=>{Number.isFinite(e)&&(0===e?(0,Ao.speak)((0,s.__)("No products found","woocommerce")):(0,Ao.speak)((0,s.sprintf)(/* translators: %s is an integer higher than 0 (1, 2, 3...) */ /* translators: %s is an integer higher than 0 (1, 2, 3...) */ (0,s._n)("%d product found","%d products found",e,"woocommerce"),e)))})(f))}),[null==P?void 0:P.totalQuery,f,o,S]);const{contentVisibility:A}=e,T=e.columns*e.rows,B=!Number.isFinite(f)&&Number.isFinite(null==P?void 0:P.totalProducts)&&_o()(S,null==P?void 0:P.totalQuery)?Math.ceil(((null==P?void 0:P.totalProducts)||0)/T):Math.ceil(f/T),I=v.length?v:Array.from({length:T}),L=0!==v.length||k,D=l.length>0||d.length>0||p.length>0||Number.isFinite(w)||Number.isFinite(b);return(0,r.createElement)("div",{className:(()=>{const{columns:t,rows:o,alignButtons:r,align:n}=e,c=void 0!==n?"align"+n:"";return(0,i.A)(x,c,"has-"+t+"-columns",{"has-multiple-rows":o>1,"has-aligned-buttons":r})})()},(null==A?void 0:A.orderBy)&&L&&(0,r.createElement)(Do,{onChange:n,value:c}),!L&&D&&(0,r.createElement)(Lo,{resetCallback:()=>{m([]),u([]),h([]),_(null),E(null)}}),!L&&!D&&(0,r.createElement)(Bo,null),L&&(0,r.createElement)("ul",{className:(0,i.A)(`${x}__products`,{"is-loading-products":k})},I.map(((t={},o)=>(0,r.createElement)(Ro,{key:t.id||o,attributes:e,product:t})))),B>1&&(0,r.createElement)(Eo,{currentPage:t,onPageChange:e=>{a({focusableSelector:"a, button"}),o(e)},totalPages:B}))})),Mo=({attributes:e})=>{const[t,o]=(0,g.useState)(1),[n,c]=(0,g.useState)(e.orderby);return(0,g.useEffect)((()=>{c(e.orderby)}),[e.orderby]),(0,r.createElement)($o,{attributes:e,currentPage:t,onPageChange:e=>{o(e)},onSortChange:e=>{var t;const r=null==e||null===(t=e.target)||void 0===t?void 0:t.value;c(r),o(1)},sortValue:n})},zo=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 230 250",style:{width:"100%"}},(0,r.createElement)("title",null,"Grid Block Preview"),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:".162",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"1.565",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"82.478",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"83.882",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:".779",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"65.374",height:"65.374",x:"164.788",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,r.createElement)("rect",{width:"62.8",height:"15",x:"166.192",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,r.createElement)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"221.798",fill:"#E1E3E6",rx:"3"}));class Ho extends g.Component{render(){const{attributes:e,urlParameterSuffix:t}=this.props;return e.isPreview?zo:(0,r.createElement)(le.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},(0,r.createElement)(bo.StoreNoticesContainer,{context:"wc/all-products"}),(0,r.createElement)(Mo,{attributes:e,urlParameterSuffix:t}))}}const jo=Ho;o(6965);const qo=io("woocommerce/all-products"),Wo=(0,r.createElement)(c.A,{icon:a.A}),Go=(0,p.compose)(u.withSpokenMessages,(0,we.withSelect)(((e,{clientId:t})=>{const{getBlock:o}=e("core/block-editor");return{block:o(t)}})),(0,we.withDispatch)((e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}})))((({block:e,attributes:t,setAttributes:o,debouncedSpeak:i,replaceInnerBlocks:m})=>{const[d,p]=(0,g.useState)(!1),[h,w]=(0,g.useState)([]),_=(0,l.useBlockProps)({className:no("wc-block-all-products",t)});if(0===M.r7.productCount)return((e,t)=>(0,r.createElement)(u.Placeholder,{className:"wc-block-products",icon:t,label:e},(0,r.createElement)("p",null,(0,s.__)("You haven't published any products to list here yet.","woocommerce")),(0,r.createElement)(u.Button,{className:"wc-block-products__add-product-button",variant:"secondary",href:q.ADMIN_URL+"post-new.php?post_type=product",target:"_top"},(0,s.__)("Add new product","woocommerce")+" ",(0,r.createElement)(c.A,{icon:Et.A})),(0,r.createElement)(u.Button,{className:"wc-block-products__read_more_button",variant:"tertiary",href:"https://woocommerce.com/document/managing-products/",target:"_blank"},(0,s.__)("Learn more","woocommerce"))))(ro.title,(0,r.createElement)(c.A,{icon:a.A}));const b=()=>{p(!d),d||i((0,s.__)("Showing All Products block preview.","woocommerce"))};return(0,r.createElement)("div",{..._},(0,r.createElement)(l.BlockControls,null,(0,r.createElement)(u.ToolbarGroup,{controls:[{icon:"edit",title:(0,s.__)("Edit the layout of each product","woocommerce"),onClick:()=>b(),isActive:d}]})),(()=>{const{columns:e,rows:n,alignButtons:c}=t;return(0,r.createElement)(l.InspectorControls,{key:"inspector"},(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Layout Settings","woocommerce"),initialOpen:!0},(0,r.createElement)(uo,{columns:e,rows:n,alignButtons:c,setAttributes:o,minColumns:(0,q.getSetting)("minColumns",1),maxColumns:(0,q.getSetting)("maxColumns",6),minRows:(0,q.getSetting)("minRows",1),maxRows:(0,q.getSetting)("maxRows",6)})),(0,r.createElement)(u.PanelBody,{title:(0,s.__)("Content Settings","woocommerce")},((e,t)=>{const{contentVisibility:o}=e;return(0,r.createElement)(u.ToggleControl,{label:(0,s.__)("Show Sorting Dropdown","woocommerce"),checked:o.orderBy,onChange:()=>t({contentVisibility:{...o,orderBy:!o.orderBy}})})})(t,o),((e,t)=>(0,r.createElement)(u.SelectControl,{label:(0,s.__)("Order Products By","woocommerce"),value:e.orderby,options:[{label:(0,s.__)("Default sorting (menu order)","woocommerce"),value:"menu_order"},{label:(0,s.__)("Popularity","woocommerce"),value:"popularity"},{label:(0,s.__)("Average rating","woocommerce"),value:"rating"},{label:(0,s.__)("Latest","woocommerce"),value:"date"},{label:(0,s.__)("Price: low to high","woocommerce"),value:"price"},{label:(0,s.__)("Price: high to low","woocommerce"),value:"price-desc"}],onChange:e=>t({orderby:e})}))(t,o)))})(),d?(()=>{const c={template:t.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(qo)};return 0!==t.layoutConfig.length&&(c.renderAppender=!1),(0,r.createElement)(u.Placeholder,{icon:Wo,label:ro.title},(0,s.__)("Display all products from your store as a grid.","woocommerce"),(0,r.createElement)("div",{className:"wc-block-all-products-grid-item-template"},(0,r.createElement)(u.Tip,null,(0,s.__)("Edit the blocks inside the example below to change the content displayed for all products within the product grid.","woocommerce")),(0,r.createElement)(le.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid"},(0,r.createElement)("div",{className:"wc-block-grid wc-block-layout has-1-columns"},(0,r.createElement)("ul",{className:"wc-block-grid__products"},(0,r.createElement)("li",{className:"wc-block-grid__product"},(0,r.createElement)(le.ProductDataContextProvider,{product:po[0]},(0,r.createElement)(l.InnerBlocks,{...c})))))),(0,r.createElement)("div",{className:"wc-block-all-products__actions"},(0,r.createElement)(u.Button,{className:"wc-block-all-products__done-button",variant:"primary",onClick:()=>{o({layoutConfig:ho(e.innerBlocks)}),w(e.innerBlocks),b()}},(0,s.__)("Done","woocommerce")),(0,r.createElement)(u.Button,{className:"wc-block-all-products__cancel-button",variant:"tertiary",onClick:()=>{m(e.clientId,h,!1),b()}},(0,s.__)("Cancel","woocommerce")),(0,r.createElement)(u.Button,{className:"wc-block-all-products__reset-button",icon:Wo,label:(0,s.__)("Reset layout to default","woocommerce"),onClick:()=>{const t=[];go.map((([e,o])=>(t.push((0,n.createBlock)(e,o)),!0))),m(e.clientId,t,!1),w(e.innerBlocks)}},(0,s.__)("Reset Layout","woocommerce")))))})():(()=>{const{layoutConfig:e}=t,o=e&&0!==e.length,n=ro.title;return o?(0,r.createElement)(u.Disabled,null,(0,r.createElement)(jo,{attributes:t})):((e,t)=>(0,r.createElement)(u.Placeholder,{className:"wc-block-products",icon:t,label:e},(0,s.__)("The content for this block is hidden due to block settings.","woocommerce")))(n,Wo)})())})),Qo={columns:(0,q.getSetting)("defaultColumns",3),rows:(0,q.getSetting)("defaultRows",3),alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:go,isPreview:!1},{name:Uo}=ro,Yo={icon:{src:(0,r.createElement)(c.A,{icon:a.A,className:"wc-block-editor-components-block-icon"})},edit:Go,save:function({attributes:e}){const t={};Object.keys(e).sort().forEach((o=>{t[o]=e[o]}));const o=l.useBlockProps.save({className:no("wc-block-all-products",e),"data-attributes":JSON.stringify(t)});return(0,r.createElement)("div",{...o},(0,r.createElement)(l.InnerBlocks.Content,null))},deprecated:lo,defaults:Qo};(0,n.registerBlockType)(Uo,Yo)},4786:(e,t,o)=>{"use strict";o.d(t,{Nm:()=>s,fb:()=>p,p3:()=>l});var r=o(1609),n=o(7723),c=o(851),a=o(3993);const l=e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0},s=e=>{const t=(0,a.isNumber)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0},i=e=>({width:e/5*100+"%"}),m=({className:e,parentClassName:t})=>{const o=i(0);return(0,r.createElement)("div",{className:(0,c.A)(`${e}__norating-container`,`${t}-product-rating__norating-container`)},(0,r.createElement)("div",{className:`${e}__norating`,role:"img"},(0,r.createElement)("span",{style:o})),(0,r.createElement)("span",null,(0,n.__)("No Reviews","woocommerce")))},d=e=>{const{className:t,rating:o,reviews:a,parentClassName:l}=e,s=i(o),m=(0,n.sprintf)(/* translators: %f is referring to the average rating value */ /* translators: %f is referring to the average rating value */ (0,n.__)("Rated %f out of 5","woocommerce"),o),d={__html:(0,n.sprintf)(/* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ /* translators: %1$s is referring to the average rating value, %2$s is referring to the number of ratings */ (0,n._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",a,"woocommerce"),(0,n.sprintf)('<strong class="rating">%f</strong>',o),(0,n.sprintf)('<span class="rating">%d</span>',a))};return(0,r.createElement)("div",{className:(0,c.A)(`${t}__stars`,`${l}__product-rating__stars`),role:"img","aria-label":m},(0,r.createElement)("span",{style:s,dangerouslySetInnerHTML:d}))},u=e=>{const{className:t,reviews:o}=e,c=(0,n.sprintf)(/* translators: %s is referring to the total of reviews for a product */ /* translators: %s is referring to the total of reviews for a product */ (0,n._n)("(%s customer review)","(%s customer reviews)",o,"woocommerce"),o);return(0,r.createElement)("span",{className:`${t}__reviews_count`},c)},p=e=>{const{className:t="wc-block-components-product-rating",showReviewCount:o,showMockedReviews:n,parentClassName:a="",rating:l,reviews:s,styleProps:i,textAlign:p}=e,g=(0,c.A)(i.className,t,{[`${a}__product-rating`]:a,[`has-text-align-${p}`]:p}),h=n&&(0,r.createElement)(m,{className:t,parentClassName:a}),w=s?(0,r.createElement)(d,{className:t,rating:l,reviews:s,parentClassName:a}):h,_=s&&o;return(0,r.createElement)("div",{className:g,style:i.style},(0,r.createElement)("div",{className:`${t}__container`},w,_?(0,r.createElement)(u,{className:t,reviews:s}):null))}},2897:(e,t,o)=>{"use strict";o.d(t,{Hw:()=>f,Vo:()=>_,XK:()=>w,iI:()=>y,r7:()=>g,sW:()=>h});var r,n,c,a,l,s,i,m,d,u,p=o(5703);const g=(0,p.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),h=g.pluginUrl+"assets/images/",w=g.pluginUrl+"assets/client/blocks/",_=(null===(r=p.STORE_PAGES.shop)||void 0===r||r.permalink,null===(n=p.STORE_PAGES.checkout)||void 0===n||n.id,null===(c=p.STORE_PAGES.checkout)||void 0===c||c.permalink,null===(a=p.STORE_PAGES.privacy)||void 0===a||a.permalink,null===(l=p.STORE_PAGES.privacy)||void 0===l||l.title,null===(s=p.STORE_PAGES.terms)||void 0===s||s.permalink,null===(i=p.STORE_PAGES.terms)||void 0===i||i.title,null===(m=p.STORE_PAGES.cart)||void 0===m||m.id,null===(d=p.STORE_PAGES.cart)||void 0===d?void 0:d.permalink),b=(null!==(u=p.STORE_PAGES.myaccount)&&void 0!==u&&u.permalink?p.STORE_PAGES.myaccount.permalink:(0,p.getSetting)("wpLoginUrl","/wp-login.php"),(0,p.getSetting)("localPickupEnabled",!1),(0,p.getSetting)("shippingMethodsExist",!1),(0,p.getSetting)("shippingEnabled",!0),(0,p.getSetting)("countries",{})),E=(0,p.getSetting)("countryData",{}),y=(Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowBilling)).map((e=>[e,b[e]||""]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowBilling)).map((e=>[e,E[e].states||{}]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowShipping)).map((e=>[e,b[e]||""]))),Object.fromEntries(Object.keys(E).filter((e=>!0===E[e].allowShipping)).map((e=>[e,E[e].states||{}]))),Object.fromEntries(Object.keys(E).map((e=>[e,E[e].locale||{}])))),v={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]},f=(0,p.getSetting)("addressFieldsLocations",v).address;(0,p.getSetting)("addressFieldsLocations",v).contact,(0,p.getSetting)("addressFieldsLocations",v).order,(0,p.getSetting)("additionalOrderFields",{}),(0,p.getSetting)("additionalContactFields",{}),(0,p.getSetting)("additionalAddressFields",{})},2516:(e,t,o)=>{"use strict";o.d(t,{Hw:()=>r.Hw,Vo:()=>r.Vo,XK:()=>r.XK,iI:()=>r.iI,r7:()=>r.r7,sW:()=>r.sW});var r=o(2897)},1546:()=>{},5183:()=>{},6160:()=>{},3778:()=>{},3400:()=>{},618:()=>{},4593:()=>{},445:()=>{},7195:()=>{},3047:()=>{},7067:()=>{},9278:()=>{},6007:()=>{},7947:()=>{},1563:()=>{},7663:()=>{},9644:()=>{},7764:()=>{},7766:()=>{},6342:()=>{},7128:()=>{},4156:()=>{},7532:()=>{},4458:()=>{},6625:()=>{},4567:()=>{},3135:()=>{},6965:()=>{},7369:()=>{},8137:()=>{},6636:()=>{},4738:()=>{},2615:()=>{},1609:e=>{"use strict";e.exports=window.React},4656:e=>{"use strict";e.exports=window.wc.blocksComponents},8529:e=>{"use strict";e.exports=window.wc.priceFormat},7594:e=>{"use strict";e.exports=window.wc.wcBlocksData},2796:e=>{"use strict";e.exports=window.wc.wcBlocksSharedContext},1616:e=>{"use strict";e.exports=window.wc.wcBlocksSharedHocs},5703:e=>{"use strict";e.exports=window.wc.wcSettings},3993:e=>{"use strict";e.exports=window.wc.wcTypes},195:e=>{"use strict";e.exports=window.wp.a11y},6004:e=>{"use strict";e.exports=window.wp.autop},4715:e=>{"use strict";e.exports=window.wp.blockEditor},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},2619:e=>{"use strict";e.exports=window.wp.hooks},8537:e=>{"use strict";e.exports=window.wp.htmlEntities},7723:e=>{"use strict";e.exports=window.wp.i18n},923:e=>{"use strict";e.exports=window.wp.isShallowEqual},5573:e=>{"use strict";e.exports=window.wp.primitives},9786:e=>{"use strict";e.exports=window.wp.styleEngine},3832:e=>{"use strict";e.exports=window.wp.url},9446:e=>{"use strict";e.exports=window.wp.wordcount},7746:e=>{"use strict";e.exports=JSON.parse('{"name":"woocommerce/product-image","version":"1.0.0","title":"Product Image","description":"Display the main product image.","category":"woocommerce-product-elements","attributes":{"showProductLink":{"type":"boolean","default":true},"showSaleBadge":{"type":"boolean","default":true},"saleBadgeAlign":{"type":"string","default":"right"},"imageSizing":{"type":"string","default":"single"},"productId":{"type":"number","default":0},"isDescendentOfQueryLoop":{"type":"boolean","default":false},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"width":{"type":"string"},"height":{"type":"string"},"scale":{"type":"string","default":"cover"},"aspectRatio":{"type":"string"}},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}')}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return c[e].call(o.exports,o,o.exports,l),o.exports}l.m=c,e=[],l.O=(t,o,r,n)=>{if(!o){var c=1/0;for(m=0;m<e.length;m++){for(var[o,r,n]=e[m],a=!0,s=0;s<o.length;s++)(!1&n||c>=n)&&Object.keys(l.O).every((e=>l.O[e](o[s])))?o.splice(s--,1):(a=!1,n<c&&(c=n));if(a){e.splice(m--,1);var i=r();void 0!==i&&(t=i)}}return t}n=n||0;for(var m=e.length;m>0&&e[m-1][2]>n;m--)e[m]=e[m-1];e[m]=[o,r,n]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);l.r(n);var c={};t=t||[null,o({}),o([]),o(o)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=o(a))Object.getOwnPropertyNames(a).forEach((t=>c[t]=()=>e[t]));return c.default=()=>e,l.d(n,c),n},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,o)=>(l.f[o](e,t),t)),[])),l.u=e=>({345:"product-stock-indicator",462:"product-rating",2105:"product-title",2388:"product-price",2724:"product-sku",3895:"product-summary",4232:"product-image",4442:"product-sale-badge",7409:"product-button",8553:"product-rating-counter",8578:"product-rating-stars",8647:"product-average-rating"}[e]+".js?ver="+{345:"94d4fcb970dbe175da80",462:"f18e748e3e503e3573f0",2105:"c31ddfa7baf698942dcd",2388:"0389c6f76e1746ee196b",2724:"d272f170b41d7faf1c55",3895:"242b611762a3cfb6f001",4232:"212ed9f8329cbf61fd5b",4442:"999abc96ba9a00950609",7409:"38e658aa9039622ca6dc",8553:"0b5fccaf1150013df996",8578:"111421f96aa9bb228f01",8647:"c21cf5cb50f21d32e328"}[e]),l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="webpackWcBlocksMainJsonp:",l.l=(e,t,o,c)=>{if(r[e])r[e].push(t);else{var a,s;if(void 0!==o)for(var i=document.getElementsByTagName("script"),m=0;m<i.length;m++){var d=i[m];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,l.nc&&a.setAttribute("nonce",l.nc),a.setAttribute("data-webpack",n+o),a.src=e),r[e]=[t];var u=(t,o)=>{a.onerror=a.onload=null,clearTimeout(p);var n=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(o))),t)return t(o)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),s&&document.head.appendChild(a)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.j=1001,(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e})(),(()=>{var e={1001:0,2388:0,462:0,8578:0,8553:0,8647:0,7409:0,3895:0,4442:0,2724:0,345:0};l.f.j=(t,o)=>{var r=l.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var c=l.p+l.u(t),a=new Error;l.l(c,(o=>{if(l.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),c=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+c+")",a.name="ChunkLoadError",a.type=n,a.request=c,r[1](a)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[c,a,s]=o,i=0;if(c.some((t=>0!==e[t]))){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);if(s)var m=s(l)}for(t&&t(o);i<c.length;i++)n=c[i],l.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return l.O(m)},o=self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var s=l.O(void 0,[94],(()=>l(5313)));s=l.O(s),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["all-products"]=s})();
Submit
FILE
FOLDER
Name
Size
Permission
Action
@woocommerce
---
0755
accordion-group
---
0755
accordion-header
---
0755
accordion-item
---
0755
accordion-panel
---
0755
active-filters
---
0755
add-to-cart-form
---
0755
add-to-cart-with-options
---
0755
add-to-cart-with-options-grouped-product-selector
---
0755
add-to-cart-with-options-grouped-product-selector-item
---
0755
add-to-cart-with-options-quantity-selector
---
0755
add-to-cart-with-options-variation-selector
---
0755
all-products
---
0755
attribute-filter
---
0755
blockified-product-details
---
0755
breadcrumbs
---
0755
cart-blocks
---
0755
cart-link
---
0755
catalog-sorting
---
0755
checkout
---
0755
checkout-blocks
---
0755
classic-shortcode
---
0755
coming-soon
---
0755
customer-account
---
0755
featured-category
---
0755
featured-product
---
0755
filter-wrapper
---
0755
handpicked-products
---
0755
inner-blocks
---
0755
mini-cart
---
0755
mini-cart-contents-block
---
0755
order-confirmation-additional-fields
---
0755
order-confirmation-additional-fields-wrapper
---
0755
order-confirmation-additional-information
---
0755
order-confirmation-billing-address
---
0755
order-confirmation-billing-wrapper
---
0755
order-confirmation-create-account
---
0755
order-confirmation-downloads
---
0755
order-confirmation-downloads-wrapper
---
0755
order-confirmation-shipping-address
---
0755
order-confirmation-shipping-wrapper
---
0755
order-confirmation-status
---
0755
order-confirmation-summary
---
0755
order-confirmation-totals
---
0755
order-confirmation-totals-wrapper
---
0755
page-content-wrapper
---
0755
price-filter
---
0755
product-average-rating
---
0755
product-best-sellers
---
0755
product-button
---
0755
product-categories
---
0755
product-category
---
0755
product-collection
---
0755
product-collection-no-results
---
0755
product-details
---
0755
product-filter-active
---
0755
product-filter-attribute
---
0755
product-filter-checkbox-list
---
0755
product-filter-chips
---
0755
product-filter-clear-button
---
0755
product-filter-price
---
0755
product-filter-price-slider
---
0755
product-filter-rating
---
0755
product-filter-removable-chips
---
0755
product-filter-status
---
0755
product-filters
---
0755
product-gallery
---
0755
product-gallery-large-image
---
0755
product-gallery-large-image-next-previous
---
0755
product-gallery-pager
---
0755
product-gallery-thumbnails
---
0755
product-image
---
0755
product-image-gallery
---
0755
product-meta
---
0755
product-new
---
0755
product-price
---
0755
product-rating
---
0755
product-rating-counter
---
0755
product-rating-stars
---
0755
product-results-count
---
0755
product-reviews
---
0755
product-sale-badge
---
0755
product-summary
---
0755
product-tag
---
0755
product-template
---
0755
product-top-rated
---
0755
products-by-attribute
---
0755
rating-filter
---
0755
related-products
---
0755
single-product
---
0755
stock-filter
---
0755
store-notices
---
0755
woocommerce
---
0755
2727-style.js.LICENSE.txt
188 bytes
0644
3671-style.js.LICENSE.txt
121 bytes
0644
accordion-group-frontend.asset.php
147 bytes
0644
accordion-group-frontend.js
691 bytes
0644
accordion-group-rtl.css
1940 bytes
0644
accordion-group-style.asset.php
186 bytes
0644
accordion-group.asset.php
166 bytes
0644
accordion-group.css
1939 bytes
0644
accordion-group.js
4760 bytes
0644
accordion-header-style.asset.php
166 bytes
0644
accordion-header.asset.php
166 bytes
0644
accordion-header.js
9782 bytes
0644
accordion-item-style.asset.php
191 bytes
0644
accordion-item.asset.php
191 bytes
0644
accordion-item.js
5145 bytes
0644
accordion-panel-style.asset.php
155 bytes
0644
accordion-panel.asset.php
155 bytes
0644
accordion-panel.js
5682 bytes
0644
active-filters-frontend.asset.php
336 bytes
0644
active-filters-frontend.js
18676 bytes
0644
active-filters-rtl.css
9793 bytes
0644
active-filters-style.asset.php
369 bytes
0644
active-filters-wrapper-frontend.js
15040 bytes
0644
active-filters-wrapper-rtl.css
9260 bytes
0644
active-filters-wrapper.css
9262 bytes
0644
active-filters.asset.php
369 bytes
0644
active-filters.css
9795 bytes
0644
active-filters.js
17367 bytes
0644
add-to-cart-form-frontend.asset.php
147 bytes
0644
add-to-cart-form-frontend.js
1067 bytes
0644
add-to-cart-form-rtl.css
6923 bytes
0644
add-to-cart-form-style.asset.php
255 bytes
0644
add-to-cart-form.asset.php
235 bytes
0644
add-to-cart-form.css
6927 bytes
0644
add-to-cart-form.js
11717 bytes
0644
add-to-cart-with-options-frontend.asset.php
147 bytes
0644
add-to-cart-with-options-frontend.js
370 bytes
0644
add-to-cart-with-options-grouped-product-selector-frontend.asset.php
147 bytes
0644
add-to-cart-with-options-grouped-product-selector-frontend.js
395 bytes
0644
add-to-cart-with-options-grouped-product-selector-item-frontend.asset.php
147 bytes
0644
add-to-cart-with-options-grouped-product-selector-item-frontend.js
400 bytes
0644
add-to-cart-with-options-grouped-product-selector-item-style.asset.php
311 bytes
0644
add-to-cart-with-options-grouped-product-selector-item.asset.php
291 bytes
0644
add-to-cart-with-options-grouped-product-selector-item.js
6179 bytes
0644
add-to-cart-with-options-grouped-product-selector-style.asset.php
255 bytes
0644
add-to-cart-with-options-grouped-product-selector.asset.php
235 bytes
0644
add-to-cart-with-options-grouped-product-selector.js
5587 bytes
0644
add-to-cart-with-options-quantity-selector-frontend.asset.php
147 bytes
0644
add-to-cart-with-options-quantity-selector-frontend.js
1101 bytes
0644
add-to-cart-with-options-quantity-selector-rtl.css
3603 bytes
0644
add-to-cart-with-options-quantity-selector-style.asset.php
255 bytes
0644
add-to-cart-with-options-quantity-selector.asset.php
235 bytes
0644
add-to-cart-with-options-quantity-selector.css
3605 bytes
0644
add-to-cart-with-options-quantity-selector.js
5744 bytes
0644
add-to-cart-with-options-rtl.css
1226 bytes
0644
add-to-cart-with-options-style.asset.php
326 bytes
0644
add-to-cart-with-options-variation-selector-frontend.asset.php
147 bytes
0644
add-to-cart-with-options-variation-selector-frontend.js
389 bytes
0644
add-to-cart-with-options-variation-selector-rtl.css
96 bytes
0644
add-to-cart-with-options-variation-selector-style.asset.php
283 bytes
0644
add-to-cart-with-options-variation-selector.asset.php
263 bytes
0644
add-to-cart-with-options-variation-selector.css
96 bytes
0644
add-to-cart-with-options-variation-selector.js
6052 bytes
0644
add-to-cart-with-options.asset.php
306 bytes
0644
add-to-cart-with-options.css
1226 bytes
0644
add-to-cart-with-options.js
13910 bytes
0644
all-products-frontend.asset.php
531 bytes
0644
all-products-frontend.js
30921 bytes
0644
all-products-rtl.css
27637 bytes
0644
all-products-style.asset.php
548 bytes
0644
all-products-style.js.LICENSE.txt
188 bytes
0644
all-products.asset.php
548 bytes
0644
all-products.css
27627 bytes
0644
all-products.js
140783 bytes
0644
all-reviews-rtl.css
10572 bytes
0644
all-reviews-style.asset.php
313 bytes
0644
all-reviews-style.js.LICENSE.txt
188 bytes
0644
all-reviews.asset.php
313 bytes
0644
all-reviews.css
10572 bytes
0644
all-reviews.js
27306 bytes
0644
attribute-filter-frontend.asset.php
408 bytes
0644
attribute-filter-frontend.js
22663 bytes
0644
attribute-filter-rtl.css
29718 bytes
0644
attribute-filter-style.asset.php
427 bytes
0644
attribute-filter-style.js.LICENSE.txt
121 bytes
0644
attribute-filter-wrapper-frontend.js
19200 bytes
0644
attribute-filter-wrapper-rtl.css
8811 bytes
0644
attribute-filter-wrapper.css
8809 bytes
0644
attribute-filter.asset.php
427 bytes
0644
attribute-filter.css
29707 bytes
0644
attribute-filter.js
34955 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss-rtl.css
20374 bytes
0644
base-components-stock-filter-wrapper~attribute-filter-wrapper~rating-filter-wrapper-style.scss.css
20365 bytes
0644
blockified-product-details-style.asset.php
170 bytes
0644
blockified-product-details.asset.php
170 bytes
0644
blockified-product-details.js
3196 bytes
0644
blocks-checkout-events.asset.php
109 bytes
0644
blocks-checkout-events.js
1668 bytes
0644
blocks-checkout.asset.php
456 bytes
0644
blocks-checkout.js
2631 bytes
0644
blocks-components.asset.php
373 bytes
0644
blocks-components.js
2451 bytes
0644
blocks-json.php
144395 bytes
0644
breadcrumbs-rtl.css
155 bytes
0644
breadcrumbs-style.asset.php
197 bytes
0644
breadcrumbs.asset.php
197 bytes
0644
breadcrumbs.css
155 bytes
0644
breadcrumbs.js
3941 bytes
0644
cart-frontend.asset.php
666 bytes
0644
cart-frontend.js
22831 bytes
0644
cart-link-rtl.css
1022 bytes
0644
cart-link-style.asset.php
197 bytes
0644
cart-link.asset.php
197 bytes
0644
cart-link.css
1020 bytes
0644
cart-link.js
9025 bytes
0644
cart-rtl.css
73790 bytes
0644
cart-style.asset.php
701 bytes
0644
cart-style.js.LICENSE.txt
188 bytes
0644
cart.asset.php
701 bytes
0644
cart.css
73780 bytes
0644
cart.js
169815 bytes
0644
catalog-sorting-rtl.css
357 bytes
0644
catalog-sorting-style.asset.php
197 bytes
0644
catalog-sorting.asset.php
197 bytes
0644
catalog-sorting.css
358 bytes
0644
catalog-sorting.js
4806 bytes
0644
checkout-frontend.asset.php
614 bytes
0644
checkout-frontend.js
31904 bytes
0644
checkout-rtl.css
86490 bytes
0644
checkout-style.asset.php
654 bytes
0644
checkout-style.js.LICENSE.txt
188 bytes
0644
checkout.asset.php
629 bytes
0644
checkout.css
86463 bytes
0644
checkout.js
202972 bytes
0644
classic-shortcode-rtl.css
114 bytes
0644
classic-shortcode-style.asset.php
222 bytes
0644
classic-shortcode.asset.php
222 bytes
0644
classic-shortcode.css
114 bytes
0644
classic-shortcode.js
11941 bytes
0644
coming-soon-rtl.css
2023 bytes
0644
coming-soon-style.asset.php
219 bytes
0644
coming-soon.asset.php
219 bytes
0644
coming-soon.css
2023 bytes
0644
coming-soon.js
7182 bytes
0644
customer-account-rtl.css
706 bytes
0644
customer-account-style.asset.php
212 bytes
0644
customer-account.asset.php
212 bytes
0644
customer-account.css
706 bytes
0644
customer-account.js
9307 bytes
0644
featured-category-rtl.css
4926 bytes
0644
featured-category-style.asset.php
355 bytes
0644
featured-category.asset.php
355 bytes
0644
featured-category.css
4926 bytes
0644
featured-category.js
45730 bytes
0644
featured-product-rtl.css
5342 bytes
0644
featured-product-style.asset.php
355 bytes
0644
featured-product.asset.php
355 bytes
0644
featured-product.css
5342 bytes
0644
featured-product.js
46181 bytes
0644
filter-wrapper-frontend.asset.php
490 bytes
0644
filter-wrapper-frontend.js
13807 bytes
0644
filter-wrapper-rtl.css
533 bytes
0644
filter-wrapper-style.asset.php
492 bytes
0644
filter-wrapper.asset.php
180 bytes
0644
filter-wrapper.css
533 bytes
0644
filter-wrapper.js
6931 bytes
0644
handpicked-products-style.asset.php
315 bytes
0644
handpicked-products.asset.php
315 bytes
0644
handpicked-products.js
26767 bytes
0644
interactivity-blocks-frontend-assets.php
2873 bytes
0644
legacy-template-rtl.css
112 bytes
0644
legacy-template-style.asset.php
253 bytes
0644
legacy-template.asset.php
253 bytes
0644
legacy-template.css
112 bytes
0644
legacy-template.js
24594 bytes
0644
mini-cart-component-frontend.asset.php
540 bytes
0644
mini-cart-component-frontend.js
20453 bytes
0644
mini-cart-contents-rtl.css
20427 bytes
0644
mini-cart-contents-style.asset.php
546 bytes
0644
mini-cart-contents-style.js.LICENSE.txt
188 bytes
0644
mini-cart-contents.asset.php
513 bytes
0644
mini-cart-contents.css
20428 bytes
0644
mini-cart-contents.js
62035 bytes
0644
mini-cart-frontend.asset.php
242 bytes
0644
mini-cart-frontend.js
5799 bytes
0644
mini-cart-rtl.css
12259 bytes
0644
mini-cart-style.asset.php
374 bytes
0644
mini-cart.asset.php
276 bytes
0644
mini-cart.css
12257 bytes
0644
mini-cart.js
19585 bytes
0644
order-confirmation-additional-fields-rtl.css
2014 bytes
0644
order-confirmation-additional-fields-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper-rtl.css
80 bytes
0644
order-confirmation-additional-fields-wrapper-style.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.asset.php
195 bytes
0644
order-confirmation-additional-fields-wrapper.css
80 bytes
0644
order-confirmation-additional-fields-wrapper.js
5537 bytes
0644
order-confirmation-additional-fields.asset.php
195 bytes
0644
order-confirmation-additional-fields.css
2014 bytes
0644
order-confirmation-additional-fields.js
5737 bytes
0644
order-confirmation-additional-information-rtl.css
172 bytes
0644
order-confirmation-additional-information-style.asset.php
180 bytes
0644
order-confirmation-additional-information.asset.php
180 bytes
0644
order-confirmation-additional-information.css
172 bytes
0644
order-confirmation-additional-information.js
3512 bytes
0644
order-confirmation-billing-address-rtl.css
1617 bytes
0644
order-confirmation-billing-address-style.asset.php
195 bytes
0644
order-confirmation-billing-address.asset.php
195 bytes
0644
order-confirmation-billing-address.css
1617 bytes
0644
order-confirmation-billing-address.js
6271 bytes
0644
order-confirmation-billing-wrapper-style.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.asset.php
180 bytes
0644
order-confirmation-billing-wrapper.js
3352 bytes
0644
order-confirmation-create-account-frontend.asset.php
287 bytes
0644
order-confirmation-create-account-frontend.js
13326 bytes
0644
order-confirmation-create-account-rtl.css
9360 bytes
0644
order-confirmation-create-account-style.asset.php
323 bytes
0644
order-confirmation-create-account.asset.php
323 bytes
0644
order-confirmation-create-account.css
9357 bytes
0644
order-confirmation-create-account.js
13811 bytes
0644
order-confirmation-downloads-rtl.css
1561 bytes
0644
order-confirmation-downloads-style.asset.php
197 bytes
0644
order-confirmation-downloads-wrapper-style.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper.asset.php
195 bytes
0644
order-confirmation-downloads-wrapper.js
3556 bytes
0644
order-confirmation-downloads.asset.php
197 bytes
0644
order-confirmation-downloads.css
1561 bytes
0644
order-confirmation-downloads.js
5551 bytes
0644
order-confirmation-shipping-address-rtl.css
2187 bytes
0644
order-confirmation-shipping-address-style.asset.php
195 bytes
0644
order-confirmation-shipping-address.asset.php
195 bytes
0644
order-confirmation-shipping-address.css
2187 bytes
0644
order-confirmation-shipping-address.js
6274 bytes
0644
order-confirmation-shipping-wrapper-style.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.asset.php
180 bytes
0644
order-confirmation-shipping-wrapper.js
3379 bytes
0644
order-confirmation-status-rtl.css
824 bytes
0644
order-confirmation-status-style.asset.php
180 bytes
0644
order-confirmation-status.asset.php
180 bytes
0644
order-confirmation-status.css
825 bytes
0644
order-confirmation-status.js
3733 bytes
0644
order-confirmation-summary-rtl.css
913 bytes
0644
order-confirmation-summary-style.asset.php
242 bytes
0644
order-confirmation-summary.asset.php
242 bytes
0644
order-confirmation-summary.css
913 bytes
0644
order-confirmation-summary.js
5589 bytes
0644
order-confirmation-totals-rtl.css
1996 bytes
0644
order-confirmation-totals-style.asset.php
216 bytes
0644
order-confirmation-totals-wrapper-style.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.asset.php
180 bytes
0644
order-confirmation-totals-wrapper.js
4061 bytes
0644
order-confirmation-totals.asset.php
216 bytes
0644
order-confirmation-totals.css
1995 bytes
0644
order-confirmation-totals.js
6420 bytes
0644
packages-style-rtl.css
42214 bytes
0644
packages-style-style.asset.php
378 bytes
0644
packages-style-style.js.LICENSE.txt
1698 bytes
0644
packages-style.css
42203 bytes
0644
page-content-wrapper-style.asset.php
195 bytes
0644
page-content-wrapper.asset.php
195 bytes
0644
page-content-wrapper.js
5451 bytes
0644
price-filter-frontend.asset.php
299 bytes
0644
price-filter-frontend.js
21667 bytes
0644
price-filter-rtl.css
18201 bytes
0644
price-filter-style.asset.php
349 bytes
0644
price-filter-wrapper-frontend.js
17805 bytes
0644
price-filter-wrapper-rtl.css
17668 bytes
0644
price-filter-wrapper.css
17649 bytes
0644
price-filter.asset.php
349 bytes
0644
price-filter.css
18182 bytes
0644
price-filter.js
23538 bytes
0644
price-format.asset.php
132 bytes
0644
price-format.js
1669 bytes
0644
product-average-rating-frontend.js
2766 bytes
0644
product-average-rating.js
2945 bytes
0644
product-best-sellers-style.asset.php
315 bytes
0644
product-best-sellers.asset.php
315 bytes
0644
product-best-sellers.js
26149 bytes
0644
product-button-frontend.js
10886 bytes
0644
product-button-rtl.css
3588 bytes
0644
product-button.css
3587 bytes
0644
product-button.js
12307 bytes
0644
product-categories-rtl.css
1757 bytes
0644
product-categories-style.asset.php
233 bytes
0644
product-categories.asset.php
233 bytes
0644
product-categories.css
1757 bytes
0644
product-categories.js
7588 bytes
0644
product-category-style.asset.php
315 bytes
0644
product-category.asset.php
315 bytes
0644
product-category.js
30227 bytes
0644
product-collection-no-results-style.asset.php
166 bytes
0644
product-collection-no-results.asset.php
166 bytes
0644
product-collection-no-results.js
3793 bytes
0644
product-collection-rtl.css
232 bytes
0644
product-collection-style.asset.php
493 bytes
0644
product-collection.asset.php
446 bytes
0644
product-collection.css
232 bytes
0644
product-collection.js
91072 bytes
0644
product-details-rtl.css
2213 bytes
0644
product-details-style.asset.php
220 bytes
0644
product-details.css
2211 bytes
0644
product-filter-active-rtl.css
516 bytes
0644
product-filter-active-style.asset.php
201 bytes
0644
product-filter-active.asset.php
181 bytes
0644
product-filter-active.css
516 bytes
0644
product-filter-active.js
3246 bytes
0644
product-filter-attribute-rtl.css
977 bytes
0644
product-filter-attribute-style.asset.php
302 bytes
0644
product-filter-attribute.asset.php
282 bytes
0644
product-filter-attribute.css
978 bytes
0644
product-filter-attribute.js
16772 bytes
0644
product-filter-checkbox-list-frontend.asset.php
147 bytes
0644
product-filter-checkbox-list-frontend.js
413 bytes
0644
product-filter-checkbox-list-rtl.css
1830 bytes
0644
product-filter-checkbox-list-style.asset.php
232 bytes
0644
product-filter-checkbox-list.asset.php
212 bytes
0644
product-filter-checkbox-list.css
1828 bytes
0644
product-filter-checkbox-list.js
7853 bytes
0644
product-filter-chips-frontend.asset.php
147 bytes
0644
product-filter-chips-frontend.js
397 bytes
0644
product-filter-chips-rtl.css
1568 bytes
0644
product-filter-chips-style.asset.php
215 bytes
0644
product-filter-chips.asset.php
195 bytes
0644
product-filter-chips.css
1568 bytes
0644
product-filter-chips.js
8250 bytes
0644
product-filter-clear-button-style.asset.php
181 bytes
0644
product-filter-clear-button.asset.php
181 bytes
0644
product-filter-clear-button.js
3447 bytes
0644
product-filter-price-rtl.css
516 bytes
0644
product-filter-price-slider-frontend.asset.php
147 bytes
0644
product-filter-price-slider-frontend.js
1204 bytes
0644
product-filter-price-slider-rtl.css
6602 bytes
0644
product-filter-price-slider-style.asset.php
222 bytes
0644
product-filter-price-slider.asset.php
202 bytes
0644
product-filter-price-slider.css
6589 bytes
0644
product-filter-price-slider.js
6960 bytes
0644
product-filter-price-style.asset.php
304 bytes
0644
product-filter-price.asset.php
284 bytes
0644
product-filter-price.css
516 bytes
0644
product-filter-price.js
9155 bytes
0644
product-filter-rating-rtl.css
4306 bytes
0644
product-filter-rating-style.asset.php
312 bytes
0644
product-filter-rating.asset.php
292 bytes
0644
product-filter-rating.css
4303 bytes
0644
product-filter-rating.js
12996 bytes
0644
product-filter-removable-chips-rtl.css
1714 bytes
0644
product-filter-removable-chips-style.asset.php
256 bytes
0644
product-filter-removable-chips.asset.php
236 bytes
0644
product-filter-removable-chips.css
1714 bytes
0644
product-filter-removable-chips.js
7408 bytes
0644
product-filter-status-rtl.css
822 bytes
0644
product-filter-status-style.asset.php
302 bytes
0644
product-filter-status.asset.php
282 bytes
0644
product-filter-status.css
822 bytes
0644
product-filter-status.js
10085 bytes
0644
product-filters-rtl.css
4863 bytes
0644
product-filters-style.asset.php
242 bytes
0644
product-filters.asset.php
195 bytes
0644
product-filters.css
4863 bytes
0644
product-filters.js
6526 bytes
0644
product-gallery-large-image-next-previous-style.asset.php
155 bytes
0644
product-gallery-large-image-next-previous.asset.php
155 bytes
0644
product-gallery-large-image-next-previous.js
6273 bytes
0644
product-gallery-large-image-style.asset.php
187 bytes
0644
product-gallery-large-image.asset.php
167 bytes
0644
product-gallery-large-image.js
6303 bytes
0644
product-gallery-pager-style.asset.php
138 bytes
0644
product-gallery-pager.asset.php
138 bytes
0644
product-gallery-pager.js
1743 bytes
0644
product-gallery-rtl.css
9396 bytes
0644
product-gallery-style.asset.php
241 bytes
0644
product-gallery-thumbnails-style.asset.php
181 bytes
0644
product-gallery-thumbnails.asset.php
181 bytes
0644
product-gallery-thumbnails.js
5224 bytes
0644
product-gallery.asset.php
221 bytes
0644
product-gallery.css
9395 bytes
0644
product-gallery.js
19001 bytes
0644
product-image-frontend.js
5704 bytes
0644
product-image-gallery-rtl.css
408 bytes
0644
product-image-gallery-style.asset.php
210 bytes
0644
product-image-gallery.css
408 bytes
0644
product-image-rtl.css
3732 bytes
0644
product-image.css
3732 bytes
0644
product-image.js
6772 bytes
0644
product-new-style.asset.php
315 bytes
0644
product-new.asset.php
315 bytes
0644
product-new.js
28314 bytes
0644
product-on-sale-style.asset.php
315 bytes
0644
product-on-sale.asset.php
315 bytes
0644
product-on-sale.js
27505 bytes
0644
product-price-frontend.js
6367 bytes
0644
product-price-rtl.css
1605 bytes
0644
product-price.css
1603 bytes
0644
product-price.js
6660 bytes
0644
product-query-rtl.css
444 bytes
0644
product-query-style.asset.php
325 bytes
0644
product-query.asset.php
325 bytes
0644
product-query.css
443 bytes
0644
product-query.js
40881 bytes
0644
product-rating-counter-frontend.js
3601 bytes
0644
product-rating-counter.js
3779 bytes
0644
product-rating-frontend.js
5452 bytes
0644
product-rating-rtl.css
217 bytes
0644
product-rating-stars-frontend.js
5395 bytes
0644
product-rating-stars-rtl.css
2904 bytes
0644
product-rating-stars.css
2902 bytes
0644
product-rating-stars.js
5599 bytes
0644
product-rating.css
217 bytes
0644
product-rating.js
5655 bytes
0644
product-results-count-rtl.css
112 bytes
0644
product-results-count-style.asset.php
180 bytes
0644
product-results-count.asset.php
180 bytes
0644
product-results-count.css
112 bytes
0644
product-results-count.js
3846 bytes
0644
product-reviews-rtl.css
916 bytes
0644
product-reviews-style.asset.php
204 bytes
0644
product-reviews.css
917 bytes
0644
product-sale-badge-frontend.js
3073 bytes
0644
product-sale-badge-rtl.css
743 bytes
0644
product-sale-badge.css
743 bytes
0644
product-sale-badge.js
3277 bytes
0644
product-search-rtl.css
958 bytes
0644
product-search-style.asset.php
261 bytes
0644
product-search.asset.php
261 bytes
0644
product-search.css
957 bytes
0644
product-search.js
9999 bytes
0644
product-sku-frontend.js
3702 bytes
0644
product-sku-rtl.css
312 bytes
0644
product-sku.css
312 bytes
0644
product-sku.js
3906 bytes
0644
product-stock-indicator-frontend.js
4756 bytes
0644
product-stock-indicator-rtl.css
110 bytes
0644
product-stock-indicator.css
110 bytes
0644
product-stock-indicator.js
4959 bytes
0644
product-summary-frontend.js
5125 bytes
0644
product-summary-rtl.css
1411 bytes
0644
product-summary.css
1410 bytes
0644
product-summary.js
5329 bytes
0644
product-tag-style.asset.php
309 bytes
0644
product-tag.asset.php
309 bytes
0644
product-tag.js
27792 bytes
0644
product-template-rtl.css
1913 bytes
0644
product-template-style.asset.php
302 bytes
0644
product-template.asset.php
302 bytes
0644
product-template.css
1913 bytes
0644
product-template.js
11863 bytes
0644
product-title-frontend.js
3985 bytes
0644
product-title-rtl.css
1572 bytes
0644
product-title.css
1571 bytes
0644
product-title.js
4857 bytes
0644
product-top-rated-style.asset.php
315 bytes
0644
product-top-rated.asset.php
315 bytes
0644
product-top-rated.js
27732 bytes
0644
products-by-attribute-style.asset.php
338 bytes
0644
products-by-attribute.asset.php
338 bytes
0644
products-by-attribute.js
29463 bytes
0644
rating-filter-frontend.asset.php
388 bytes
0644
rating-filter-frontend.js
19243 bytes
0644
rating-filter-rtl.css
30624 bytes
0644
rating-filter-style.asset.php
407 bytes
0644
rating-filter-style.js.LICENSE.txt
121 bytes
0644
rating-filter-wrapper-frontend.js
14989 bytes
0644
rating-filter-wrapper-rtl.css
9717 bytes
0644
rating-filter-wrapper.css
9712 bytes
0644
rating-filter.asset.php
407 bytes
0644
rating-filter.css
30610 bytes
0644
rating-filter.js
17121 bytes
0644
reviews-by-category-rtl.css
10572 bytes
0644
reviews-by-category-style.asset.php
337 bytes
0644
reviews-by-category-style.js.LICENSE.txt
188 bytes
0644
reviews-by-category.asset.php
337 bytes
0644
reviews-by-category.css
10572 bytes
0644
reviews-by-category.js
41084 bytes
0644
reviews-by-product-rtl.css
10572 bytes
0644
reviews-by-product-style.asset.php
349 bytes
0644
reviews-by-product-style.js.LICENSE.txt
188 bytes
0644
reviews-by-product.asset.php
349 bytes
0644
reviews-by-product.css
10572 bytes
0644
reviews-by-product.js
45420 bytes
0644
reviews-frontend.asset.php
270 bytes
0644
reviews-frontend.js
22728 bytes
0644
single-product-rtl.css
533 bytes
0644
single-product-style.asset.php
554 bytes
0644
single-product.asset.php
554 bytes
0644
single-product.css
533 bytes
0644
single-product.js
36016 bytes
0644
stock-filter-frontend.asset.php
408 bytes
0644
stock-filter-frontend.js
19623 bytes
0644
stock-filter-rtl.css
28578 bytes
0644
stock-filter-style.asset.php
427 bytes
0644
stock-filter-style.js.LICENSE.txt
121 bytes
0644
stock-filter-wrapper-frontend.js
15537 bytes
0644
stock-filter-wrapper-rtl.css
7671 bytes
0644
stock-filter-wrapper.css
7669 bytes
0644
stock-filter.asset.php
427 bytes
0644
stock-filter.css
28567 bytes
0644
stock-filter.js
18935 bytes
0644
store-notices-rtl.css
6305 bytes
0644
store-notices-style.asset.php
229 bytes
0644
store-notices.asset.php
229 bytes
0644
store-notices.css
6303 bytes
0644
store-notices.js
6161 bytes
0644
wc-blocks-classic-template-revert-button-style-rtl.css
217 bytes
0644
wc-blocks-classic-template-revert-button-style-style.asset.php
234 bytes
0644
wc-blocks-classic-template-revert-button-style.css
217 bytes
0644
wc-blocks-classic-template-revert-button.asset.php
234 bytes
0644
wc-blocks-classic-template-revert-button.js
2558 bytes
0644
wc-blocks-data.asset.php
353 bytes
0644
wc-blocks-data.js
82190 bytes
0644
wc-blocks-editor-style-rtl.css
61487 bytes
0644
wc-blocks-editor-style.css
61472 bytes
0644
wc-blocks-frontend-vendors-frontend.asset.php
97 bytes
0644
wc-blocks-frontend-vendors-frontend.js
115113 bytes
0644
wc-blocks-google-analytics.asset.php
120 bytes
0644
wc-blocks-google-analytics.js
3153 bytes
0644
wc-blocks-middleware.asset.php
123 bytes
0644
wc-blocks-middleware.js
1896 bytes
0644
wc-blocks-registry.asset.php
175 bytes
0644
wc-blocks-registry.js
20897 bytes
0644
wc-blocks-rtl.css
12614 bytes
0644
wc-blocks-shared-context.asset.php
120 bytes
0644
wc-blocks-shared-context.js
1889 bytes
0644
wc-blocks-shared-hocs.asset.php
218 bytes
0644
wc-blocks-shared-hocs.js
3213 bytes
0644
wc-blocks-style.asset.php
255 bytes
0644
wc-blocks-vendors.asset.php
97 bytes
0644
wc-blocks-vendors.js
129358 bytes
0644
wc-blocks.asset.php
255 bytes
0644
wc-blocks.css
12613 bytes
0644
wc-blocks.js
10128 bytes
0644
wc-cart-checkout-base-frontend.asset.php
97 bytes
0644
wc-cart-checkout-base-frontend.js
205717 bytes
0644
wc-cart-checkout-vendors-frontend.asset.php
97 bytes
0644
wc-cart-checkout-vendors-frontend.js
159129 bytes
0644
wc-interactivity.asset.php
97 bytes
0644
wc-interactivity.js
35695 bytes
0644
wc-payment-method-bacs.asset.php
188 bytes
0644
wc-payment-method-bacs.js
23233 bytes
0644
wc-payment-method-cheque.asset.php
188 bytes
0644
wc-payment-method-cheque.js
23230 bytes
0644
wc-payment-method-cod.asset.php
188 bytes
0644
wc-payment-method-cod.js
23466 bytes
0644
wc-payment-method-paypal.asset.php
188 bytes
0644
wc-payment-method-paypal.js
23301 bytes
0644
wc-schema-parser.asset.php
97 bytes
0644
wc-schema-parser.js
129571 bytes
0644
wc-settings.asset.php
109 bytes
0644
wc-settings.js
4566 bytes
0644
wc-shipping-method-pickup-location.asset.php
256 bytes
0644
wc-shipping-method-pickup-location.js
85677 bytes
0644
wc-types.asset.php
97 bytes
0644
wc-types.js
3693 bytes
0644
N4ST4R_ID | Naxtarrr