Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/plugins/woocommerce/assets/client/blocks/ |
Upload File : |
(()=>{var e,t,o,r,s,c={4514:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>l,default:()=>d});var r=o(4921),s=o(415),c=o(371),n=o(7723),i=o(1616),a=o(790);const l=e=>{const{textAlign:t}=e,o=(0,c.p)(e),{product:i}=(0,s.useProductDataContext)(),l=(0,r.A)(o.className,"wc-block-components-product-average-rating",{[`has-text-align-${t}`]:t});return(0,a.jsx)("div",{className:l,style:o.style,children:Number(i.average_rating)>0?i.average_rating:(0,n.__)("No ratings","woocommerce")})},d=(0,i.withProductDataContext)(l)},595:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>b,default:()=>y});var r=o(6087),s=o(4921),c=o(7723),n=o(7052),i=o(1057),a=o(371),l=o(8537),d=o(8331),u=o(5703),p=o(415),m=o(1616),g=(o(7316),o(2281)),h=o(790);const w=({product:e,isDescendantOfAddToCartWithOptions:t,className:o,style:r})=>{const{id:a,permalink:p,add_to_cart:m,has_options:g,is_purchasable:w,is_in_stock:x}=e,{dispatchStoreEvent:_}=(0,n.y)(),{cartQuantity:b,addingToCart:y,addToCart:f}=(0,i.R)(a),k=Number.isFinite(b)&&b>0,v=!g&&w&&x,j=(0,l.decodeEntities)(m?.description||""),S=(({cartQuantity:e,productCartDetails:t,isDescendantOfAddToCartWithOptions:o})=>Number.isFinite(e)&&e>0?(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",e,"woocommerce"),e):o&&t?.single_text?t?.single_text:t?.text||(0,c.__)("Add to cart","woocommerce"))({cartQuantity:b,productCartDetails:m,isDescendantOfAddToCartWithOptions:t}),C=v?"button":"a",N={};return v?N.onClick=async()=>{await f(),_("cart-add-item",{product:e});const{cartRedirectAfterAdd:t}=(0,u.getSetting)("productsSettings");t&&(window.location.href=d.Vo)}:(N.href=p,N.rel="nofollow",N.onClick=()=>{_("product-view-link",{product:e})}),(0,h.jsx)(C,{...N,"aria-label":j,disabled:y,className:(0,s.A)(o,"wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",{loading:y,added:k}),style:r,children:S})},x=({className:e,style:t})=>(0,h.jsx)("button",{className:(0,s.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",e),style:t,disabled:!0,children:(0,c.__)("Add to cart","woocommerce")}),_=({className:e,style:t,blockClientId:o})=>{const{current:n,registerListener:i,unregisterListener:a}=(0,g.A)();(0,r.useEffect)((()=>{if(o)return i(o),()=>{a(o)}}),[o,i,a]);const l="external"===n?.slug?(0,c.__)("Buy product","woocommerce"):(0,c.__)("Add to cart","woocommerce");return(0,h.jsx)("button",{className:(0,s.A)("wp-block-button__link","wp-element-button","add_to_cart_button","wc-block-components-product-button__button",e),style:t,disabled:!0,children:l})},b=e=>{const{className:t,textAlign:o,blockClientId:r}=e,c=(0,a.p)(e),{parentClassName:n}=(0,p.useInnerBlockLayoutContext)(),{isLoading:i,product:l}=(0,p.useProductDataContext)();return(0,h.jsx)("div",{className:(0,s.A)(t,"wp-block-button","wc-block-components-product-button",{[`${n}__product-add-to-cart`]:n,[`align-${o}`]:o}),children:i?(0,h.jsx)(x,{className:c.className,style:c.style}):(0,h.jsx)(h.Fragment,{children:l.id?(0,h.jsx)(w,{product:l,style:c.style,className:c.className,isDescendantOfAddToCartWithOptions:e["woocommerce/isDescendantOfAddToCartWithOptions"]}):(0,h.jsx)(_,{style:c.style,className:c.className,isLoading:i,blockClientId:r})})})},y=(0,m.withProductDataContext)(b)},3104:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var r=o(6087),s=o(7723),c=o(4921),n=o(5703),i=o(415),a=o(371),l=o(1616),d=o(7052),u=o(8537),p=o(3993),m=o(3848),g=(o(1189),o(4264)),h=o(6724),w=o(790);const x=e=>{const{aspectRatio:t,height:o,width:r,scale:s}=e;return{height:o,width:r,objectFit:s,aspectRatio:t}},_=e=>{const{showFullSize:t,...o}=e,r=t?(0,n.getSetting)("placeholderImgSrcFullSize",n.PLACEHOLDER_IMG_SRC):n.PLACEHOLDER_IMG_SRC;return(0,w.jsx)("img",{...o,src:r,alt:"",width:void 0,height:void 0})},b=({image:e,loaded:t,showFullSize:o,fallbackAlt:r,width:s,scale:c,height:n,aspectRatio:i})=>{const{thumbnail:a,src:l,srcset:d,sizes:u,alt:p}=e||{},m={alt:p||r,hidden:!t,src:o?l:a,...o&&{srcSet:d,sizes:u}},g=x({height:n,width:s,scale:c,aspectRatio:i});return e?(0,w.jsx)("img",{style:g,"data-testid":"product-image",...m}):(0,w.jsx)(_,{showFullSize:o,style:g})},y=e=>{const{product:t}=e;return!(0,p.isEmpty)(t)&&(0,h.S)(e.showSaleBadge)},f=(0,l.withProductDataContext)((e=>{const{aspectRatio:t,children:o,className:n,height:l,imageId:h,imageSizing:f=g.e.SINGLE,scale:k,showProductLink:v=!0,style:j,width:S,isAdmin:C,product:N,isResolving:E,...P}=e,A=(0,a.p)(e),{parentClassName:T}=(0,i.useInnerBlockLayoutContext)(),{product:B,isLoading:O}=(0,i.useProductDataContext)({isAdmin:C,product:N,isResolving:E}),{dispatchStoreEvent:I}=(0,d.y)(),L=f!==g.e.THUMBNAIL,D=(0,p.objectHasProp)(j,"dimensions")&&(0,p.objectHasProp)(j.dimensions,"aspectRatio")&&(0,p.isString)(j.dimensions.aspectRatio)?j.dimensions.aspectRatio:t,R=`wc-block-components-product-image--aspect-ratio-${D?D.replace("/","-"):"auto"}`;if(!B?.id){const e=x({height:l,width:S,scale:k,aspectRatio:D});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:(0,c.A)(n,"wc-block-components-product-image",R,{[`${T}__product-image`]:T},A.className),style:A.style,children:(0,w.jsx)(_,{showFullSize:L,style:e})}),o]})}const F=((e,t)=>e.images.length?t&&e.images.find((e=>e.id===t))||e.images[0]:null)(B,h);F&&(F.alt=F.alt||(0,u.decodeEntities)(B.name));const z=v?"a":r.Fragment,M=B?.name? // translators: %s is the product name. // translators: %s is the product name. (0,s.sprintf)((0,s.__)("Link to %s","woocommerce"),B.name):"",V={href:v?B?.permalink:void 0,...v&&{"aria-label":M,onClick:()=>{I("product-view-link",{product:B})}}};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:(0,c.A)(n,"wc-block-components-product-image",R,{[`${T}__product-image`]:T},A.className),style:A.style,children:[y(e)&&(0,w.jsx)(m.default,{align:e.saleBadgeAlign||"right",...P}),(0,w.jsx)(z,{...v&&V,children:(0,w.jsx)(b,{fallbackAlt:(0,u.decodeEntities)(B.name),image:F,loaded:!O,showFullSize:L,width:S,height:l,scale:k,aspectRatio:D})})]}),o]})}))},4264:(e,t,o)=>{"use strict";o.d(t,{e:()=>r});let r=function(e){return e.SINGLE="single",e.THUMBNAIL="thumbnail",e}({})},6724:(e,t,o)=>{"use strict";o.d(t,{S:()=>r});const r=e=>void 0===e||e},1308:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>p,default:()=>m});var r=o(4921),s=o(6711),c=o(910),n=o(415),i=o(371),a=o(1616),l=o(5703),d=o(790);const u=(e,t,o="0")=>{const r=10**t.minorUnit;return(Number.parseFloat(null!=e?e:o)*r).toString()},p=e=>{var t;const{className:o,textAlign:a,isDescendentOfSingleProductTemplate:p,isAdmin:m,product:g,isExperimentalWcRestApiEnabled:h}=e,w=(0,i.p)(e),{parentName:x,parentClassName:_}=(0,n.useInnerBlockLayoutContext)(),{product:b}=(0,n.useProductDataContext)(h?{isAdmin:m,product:g}:void 0),y="woocommerce/all-products"===x,f=p&&!("woocommerce/add-to-cart-with-options-grouped-product-item"===x),k=(0,r.A)("wc-block-components-product-price",o,w.className,{[`${_}__product-price`]:_});if(!b?.id&&!p){const e=(0,d.jsx)(s.A,{align:a,className:k});return y?(0,d.jsx)("div",{className:"wp-block-woocommerce-product-price",children:e}):e}let v=null!==(t=b?.prices)&&void 0!==t?t:{};const j=f?(0,c.getCurrencyFromPriceResponse)():(0,c.getCurrencyFromPriceResponse)(v);h&&(v={price:u(b?.price,j),...b?.sale_price?{sale_price:u(b?.sale_price,j)}:{},...b?.regular_price?{regular_price:u(b?.regular_price,j)}:{},currency_minor_unit:l.SITE_CURRENCY.minorUnit,price_range:b?.__experimental_max_price&&b?.__experimental_min_price?{min_amount:u(b.__experimental_min_price,j),max_amount:u(b.__experimental_max_price,j)}:null});const S="5000",C=v.price!==v.regular_price,N=(0,r.A)({[`${_}__product-price__value`]:_,[`${_}__product-price__value--on-sale`]:C}),E=(0,d.jsx)(s.A,{align:a,className:k,style:w.style,regularPriceStyle:w.style,priceStyle:w.style,priceClassName:N,currency:j,price:f?S:v.price,minPrice:v?.price_range?.min_amount,maxPrice:v?.price_range?.max_amount,regularPrice:f?S:v.regular_price,regularPriceClassName:(0,r.A)({[`${_}__product-price__regular`]:_})});return y?(0,d.jsx)("div",{className:"wp-block-woocommerce-product-price",children:E}):E},m=e=>e.isDescendentOfSingleProductTemplate?(0,d.jsx)(p,{...e}):(0,a.withProductDataContext)(p)(e)},9147:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>p,default:()=>m});var r=o(7723),s=o(4921),c=o(415),n=o(371),i=o(1616),a=o(3993),l=o(6427),d=o(790);const u=e=>{const{reviews:t}=e,o=t?(0,r.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,r._n)("(%s customer review)","(%s customer reviews)",t,"woocommerce"),t):(0,r.__)("(X customer reviews)","woocommerce");return(0,d.jsx)("span",{className:"wc-block-components-product-rating-counter__reviews_count",children:(0,d.jsx)(l.Disabled,{children:(0,d.jsx)("a",{href:"/",children:o})})})},p=e=>{const{textAlign:t,shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,r=(0,n.p)(e),{parentClassName:i}=(0,c.useInnerBlockLayoutContext)(),{product:l}=(0,c.useProductDataContext)(),p=(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})(l),m=(0,s.A)(r.className,"wc-block-components-product-rating-counter",{[`${i}__product-rating`]:i,[`has-text-align-${t}`]:t});if(p||o)return(0,d.jsx)("div",{className:m,style:r.style,children:(0,d.jsx)("div",{className:"wc-block-components-product-rating-counter__container",children:(0,d.jsx)(u,{reviews:p})})})},m=(0,i.withProductDataContext)(p)},7220:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>a,default:()=>l});var r=o(415),s=o(371),c=o(1616),n=o(5841),i=(o(7545),o(790));const a=e=>{const{textAlign:t="",shouldDisplayMockedReviewsWhenProductHasNoReviews:o}=e,c=(0,s.p)(e),{parentClassName:a}=(0,r.useInnerBlockLayoutContext)(),{product:l}=(0,r.useProductDataContext)(),d=(0,n.p3)(l),u=(0,n.Nm)(l);return(0,i.jsx)(n.fb,{className:"wc-block-components-product-rating-stars",showMockedReviews:o,styleProps:c,parentClassName:a,reviews:u,rating:d,textAlign:t})},l=(0,c.withProductDataContext)(a)},9812:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>a,default:()=>l});var r=o(415),s=o(371),c=o(1616),n=o(5841),i=(o(4053),o(790));const a=e=>{const{textAlign:t="",shouldDisplayMockedReviewsWhenProductHasNoReviews:o,isDescendentOfQueryLoop:c,product:a}=e,l=(0,s.p)(e),{parentClassName:d}=(0,r.useInnerBlockLayoutContext)(),{product:u}=(0,r.useProductDataContext)({product:a,isAdmin:e.isAdmin}),p=u?(0,n.p3)(u):0,m=u?(0,n.Nm)(u):0;if(m||o)return(0,i.jsx)(n.fb,{className:"wc-block-components-product-rating",showReviewCount:!c,showMockedReviews:o,styleProps:l,parentClassName:d,reviews:m,rating:p,textAlign:t})},l=(0,c.withProductDataContext)(a)},3848:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>d,default:()=>u});var r=o(7723),s=o(4921),c=o(4656),n=o(415),i=o(371),a=o(1616),l=(o(4313),o(790));const d=e=>{const{className:t,align:o,isDescendentOfSingleProductTemplate:a}=e,d=(0,i.p)(e),{parentClassName:u}=(0,n.useInnerBlockLayoutContext)(),{product:p}=(0,n.useProductDataContext)();if(!(p.id&&p.on_sale||a))return null;const m="string"==typeof o?`wc-block-components-product-sale-badge--align-${o}`:"";return(0,l.jsx)("div",{className:(0,s.A)("wc-block-components-product-sale-badge",t,m,{[`${u}__product-onsale`]:u},d.className),style:d.style,children:(0,l.jsx)(c.Label,{label:(0,r.__)("Sale","woocommerce"),screenReaderLabel:(0,r.__)("Product on sale","woocommerce")})})},u=(0,a.withProductDataContext)(d)},1648:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>u});var r=o(4921),s=o(415),c=o(1616),n=o(371),i=o(4715),a=o(7723),l=(o(1129),o(790));const d=({setAttributes:e,parentClassName:t,sku:o,className:s,style:c,prefix:n,suffix:d})=>(0,l.jsxs)("div",{className:(0,r.A)(s,"wp-block-post-terms",{[`${t}__product-sku`]:t}),style:c,children:[(0,l.jsx)(i.RichText,{className:"wc-block-components-product-sku__prefix",tagName:"span",placeholder:(0,a.__)("Prefix","woocommerce"),value:n,onChange:t=>e({prefix:t})}),(0,l.jsxs)("span",{children:[" ",o]}),(0,l.jsx)(i.RichText,{className:"wc-block-components-product-sku__suffix",tagName:"span",placeholder:" "+(0,a.__)("Suffix","woocommerce"),value:d,onChange:t=>e({suffix:t})})]}),u=(0,c.withProductDataContext)((e=>{const{className:t}=e,o=(0,n.p)(e),{parentClassName:c}=(0,s.useInnerBlockLayoutContext)(),{product:i}=(0,s.useProductDataContext)(),u=i.sku;return e.isDescendentOfSingleProductTemplate?(0,l.jsx)(d,{setAttributes:e.setAttributes,parentClassName:c,className:t,sku:(0,a.__)("Product SKU","woocommerce"),prefix:e.prefix,suffix:e.suffix}):u?(0,l.jsx)(d,{setAttributes:e.setAttributes,className:t,parentClassName:c,sku:u,prefix:e.prefix,suffix:e.suffix,...e.isDescendantOfAllProducts&&{className:(0,r.A)(t,"wc-block-components-product-sku wp-block-woocommerce-product-sku",o.className),style:{...o.style}}}):null}))},6374:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>u,default:()=>p});var r=o(7723),s=o(4921),c=o(415),n=o(371),i=o(1616),a=o(5703),l=o(2281),d=(o(3790),o(790));const u=e=>{const{className:t}=e,o=(0,n.p)(e),{parentClassName:i}=(0,c.useInnerBlockLayoutContext)(),{product:u}=(0,c.useProductDataContext)(),{text:p,class:m}=u.stock_availability,{current:g}=(0,l.A)();if(!((e,t,o)=>{if(0!==e.id)return""!==t;const r=(0,a.getSetting)("productTypesWithoutStockIndicator",["external","grouped","variable"]),s=o||e?.type;return!r.includes(s)})(u,p,g?.slug))return null;const h=0===u.id,w=u.low_stock_remaining;return(0,d.jsx)("div",{className:(0,s.A)(t,{[`${i}__stock-indicator`]:i,[`wc-block-components-product-stock-indicator--${m}`]:m,"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},children:h?(0,r.__)("In stock","woocommerce"):p})},p=e=>{const{product:t}=(0,c.useProductDataContext)();return 0===t.id?(0,d.jsx)(u,{...e}):(0,i.withProductDataContext)(u)(e)}},4001:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>S});var r=o(7723),s=o(4921),c=o(6087),n=o(3240),i=o.n(n);const a=["a","b","em","i","strong","p","br"],l=["target","href","rel","name","download"],d=(e,t)=>{const o=t?.tags||a,r=t?.attr||l;return i().sanitize(e,{ALLOWED_TAGS:o,ALLOWED_ATTR:r})};var u=o(6004);const p=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),m=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t;var g=o(9446);var h=o(790);const w=["a","b","em","i","strong","p","br","ul","ol","li","h1","h2","h3","h4","h5","h6","pre","blockquote","img"],x=["target","href","rel","name","download","src","class","alt","style"],_=({source:e,maxLength:t=15,countType:o="words",className:r="",style:s={}})=>{const n=(0,c.useMemo)((()=>((e,t=15,o="words")=>{const r=(0,u.autop)(e);if((0,g.count)(r,o)<=t)return r;const s=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(r);return(0,g.count)(s,o)<=t?s:"words"===o?((e,t,o="…",r=!0)=>{const s=p(e),c=s.split(" ").splice(0,t).join(" ");return c===s?r?(0,u.autop)(s):s:r?(0,u.autop)(m(c,o)):m(c,o)})(s,t):((e,t,o=!0,r="…",s=!0)=>{const c=p(e),n=c.slice(0,t);if(n===c)return s?(0,u.autop)(c):c;if(o)return(0,u.autop)(m(n,r));const i=n.match(/([\s]+)/g),a=i?i.length:0,l=c.slice(0,t+a);return s?(0,u.autop)(m(l,r)):m(l,r)})(s,t,"characters_including_spaces"===o)})(e,t,o)),[e,t,o]);return(0,h.jsx)(c.RawHTML,{style:s,className:r,children:d(n,{tags:w,attr:x})})};var b=o(8331),y=o(3993),f=o(415),k=o(371),v=o(1616);o(3608);const j=e=>{const{className:t,showDescriptionIfEmpty:o,summaryLength:c,showLink:n,linkText:i,isDescendantOfAllProducts:a,isDescendentOfSingleProductTemplate:l,product:d,isAdmin:u}=e,{parentClassName:p}=(0,f.useInnerBlockLayoutContext)(),{product:m}=(0,f.useProductDataContext)({product:d,isAdmin:u}),g=(0,k.p)(e),w=(e=>{const{isDescendantOfAllProducts:t,summaryLength:o,showDescriptionIfEmpty:r,showLink:s}=e;return t&&(0,y.isEmpty)(o)&&(0,y.isEmpty)(r)&&(0,y.isEmpty)(s)})(e),x=w?150:c,v=!w&&n,j=m?((e,t)=>{const{short_description:o,description:r}=e;return o||(t&&r?r:"")})(m,!!w||o):"",S=x||1/0,C="wc-block-components-product-summary";return l?(0,h.jsx)("div",{className:C,children:(0,h.jsx)("p",{children:(0,r.__)("This block displays the product summary and all its customizations.","woocommerce")})}):m?j?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(_,{className:(0,s.A)(t,g.className,C,{[`${p}__product-summary`]:p}),source:j,maxLength:S,countType:b.r7.wordCountType||"words",style:g.style}),a&&v&&i&&m?.permalink?(0,h.jsx)("a",{href:`${m.permalink}#tab-description`,children:i}):null]}):a?null:(0,h.jsx)("div",{className:C,children:(0,h.jsx)("p",{children:(0,r.__)("No product summary to show.","woocommerce")})}):(0,h.jsx)("div",{className:(0,s.A)(t,C,{[`${p}__product-summary`]:p})})},S=e=>e.isDescendentOfSingleProductTemplate?(0,h.jsx)(j,{...e}):(0,v.withProductDataContext)(j)(e)},7581:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var r=o(4921),s=o(415),c=o(1616),n=o(4473),i=o(7052),a=o(371),l=(o(7578),o(790));const d=({children:e,headingLevel:t,elementType:o=`h${t}`,...r})=>(0,l.jsx)(o,{...r,children:e}),u=(0,c.withProductDataContext)((e=>{const{className:t,headingLevel:o=2,showProductLink:c=!0,linkTarget:u,align:p}=e,m=(0,a.p)(e),{parentClassName:g}=(0,s.useInnerBlockLayoutContext)(),{product:h}=(0,s.useProductDataContext)(),{dispatchStoreEvent:w}=(0,i.y)();return h.id?(0,l.jsx)(d,{headingLevel:o,className:(0,r.A)(t,m.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${p}`]:p}),style:m.style,children:(0,l.jsx)(n.A,{disabled:!c,name:h.name,permalink:h.permalink,target:u,onClick:()=>{w("product-view-link",{product:h})}})}):(0,l.jsx)(d,{headingLevel:o,className:(0,r.A)(t,m.className,"wc-block-components-product-title",{[`${g}__product-title`]:g,[`wc-block-components-product-title--align-${p}`]:p}),style:m.style})}))},2e3:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var r=o(8331),s=o(3993),c=o(7723);const n=Object.entries(r.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,c.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */ (0,c.__)("%s (optional)","woocommerce"),e.label)),void 0!==e.optionalLabel&&(t.optionalLabel=e.optionalLabel),e.index&&((0,s.isNumber)(e.index)&&(t.index=e.index),(0,s.isString)(e.index)&&(t.index=parseInt(e.index,10))),e.hidden&&(t.required=!1),t})(o),e)),{}),e)),{}),i=(e,t,o="")=>{const r=o&&void 0!==n[o]?n[o]:{};return e.map((e=>({key:e,...t&&e in t?t[e]:{},...r&&e in r?r[e]:{}}))).sort(((e,t)=>e.index-t.index))}},4473:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(4921),s=(o(959),o(790));const c=({className:e="",disabled:t=!1,name:o,permalink:c="",target:n,rel:i,style:a,onClick:l,disabledTagName:d="span",...u})=>{const p=(0,r.A)("wc-block-components-product-name",e),m=d;if(t){const e=u;return(0,s.jsx)(m,{className:p,...e,dangerouslySetInnerHTML:{__html:o}})}return(0,s.jsx)("a",{className:p,href:c,target:n,...u,dangerouslySetInnerHTML:{__html:o},style:a})}},6711:(e,t,o)=>{"use strict";o.d(t,{A:()=>u});var r=o(7723),s=o(4656),c=o(4921),n=o(910),i=o(6087),a=(o(8501),o(790));const l=({currency:e,maxPrice:t,minPrice:o,priceClassName:i,priceStyle:l={}})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"screen-reader-text",children:(0,r.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */ (0,r.__)("Price between %1$s and %2$s","woocommerce"),(0,n.formatPrice)(o),(0,n.formatPrice)(t))}),(0,a.jsxs)("span",{"aria-hidden":!0,children:[(0,a.jsx)(s.FormattedMonetaryAmount,{className:(0,c.A)("wc-block-components-product-price__value",i),currency:e,value:o,style:l})," — ",(0,a.jsx)(s.FormattedMonetaryAmount,{className:(0,c.A)("wc-block-components-product-price__value",i),currency:e,value:t,style:l})]})]}),d=({currency:e,regularPriceClassName:t,regularPriceStyle:o,regularPrice:n,priceClassName:i,priceStyle:l,price:d})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"screen-reader-text",children:(0,r.__)("Previous price:","woocommerce")}),(0,a.jsx)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,a.jsx)("del",{className:(0,c.A)("wc-block-components-product-price__regular",t),style:o,children:e}),value:n}),(0,a.jsx)("span",{className:"screen-reader-text",children:(0,r.__)("Discounted price:","woocommerce")}),(0,a.jsx)(s.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,a.jsx)("ins",{className:(0,c.A)("wc-block-components-product-price__value","is-discounted",i),style:l,children:e}),value:d})]}),u=({align:e,className:t,currency:o,format:r="<price/>",maxPrice:n,minPrice:u,price:p,priceClassName:m,priceStyle:g,regularPrice:h,regularPriceClassName:w,regularPriceStyle:x,style:_})=>{const b=(0,c.A)(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});r.includes("<price/>")||(r="<price/>",console.error("Price formats need to include the `<price/>` tag."));const y=h&&p&&p<h;let f=(0,a.jsx)("span",{className:(0,c.A)("wc-block-components-product-price__value",m)});return y?f=(0,a.jsx)(d,{currency:o,price:p,priceClassName:m,priceStyle:g,regularPrice:h,regularPriceClassName:w,regularPriceStyle:x}):void 0!==u&&void 0!==n?f=(0,a.jsx)(l,{currency:o,maxPrice:n,minPrice:u,priceClassName:m,priceStyle:g}):(p||0===p)&&(f=(0,a.jsx)(s.FormattedMonetaryAmount,{className:(0,c.A)("wc-block-components-product-price__value",m),currency:o,value:p,style:g})),(0,a.jsx)("span",{className:b,style:_,children:(0,i.createInterpolateElement)(r,{price:f})})}},6037:(e,t,o)=>{"use strict";o.d(t,{U:()=>u});var r=o(6087),s=o(7594),c=o(7143),n=o(1174),i=o(3757);const a=e=>{const t=e?.detail;t&&t.preserveCartData||(0,c.dispatch)(s.cartStore).invalidateResolutionForStore()},l=e=>{(e?.persisted||"back_forward"===(0,n.F)())&&(0,c.dispatch)(s.cartStore).invalidateResolutionForStore()},d=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},u=()=>{(0,r.useEffect)((()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),window.wcBlocksStoreCartListeners?.count>0)return void window.wcBlocksStoreCartListeners.count++;document.body.addEventListener("wc-blocks_added_to_cart",a),document.body.addEventListener("wc-blocks_removed_from_cart",a),window.addEventListener("pageshow",l);const e=(0,i.f2)("added_to_cart","wc-blocks_added_to_cart"),t=(0,i.f2)("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",a),document.body.removeEventListener("wc-blocks_removed_from_cart",a),window.removeEventListener("pageshow",l),e(),t()}})(),d)),[])}},5460:(e,t,o)=>{"use strict";o.d(t,{V:()=>x});var r=o(1824),s=o.n(r),c=o(6087),n=o(7594),i=o(7143),a=o(8537),l=o(4982),d=o(6037);const u={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},p={...u,email:""},m={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:n.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},g=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,(0,a.decodeEntities)(t)]))),h=(e,t)=>{const o=(0,l.TU)(g(e));return s()(t.current,o)||(t.current=o),t.current},w={billingAddress:p,billingData:p,cartCoupons:n.EMPTY_CART_COUPONS,cartErrors:n.EMPTY_CART_ERRORS,cartFees:n.EMPTY_CART_FEES,cartHasCalculatedShipping:!1,cartIsLoading:!0,cartItemErrors:n.EMPTY_CART_ITEM_ERRORS,cartItems:n.EMPTY_CART_ITEMS,cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartTotals:m,crossSellsProducts:n.EMPTY_CART_CROSS_SELLS,extensions:n.EMPTY_EXTENSIONS,hasPendingItemsOperations:!1,isLoadingRates:!1,paymentMethods:n.EMPTY_PAYMENT_METHODS,paymentRequirements:n.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},shippingAddress:u,shippingRates:n.EMPTY_SHIPPING_RATES},x=(e={shouldSelect:!0})=>{const{shouldSelect:t}=e,o=(0,c.useRef)(),r=(0,c.useRef)(p),l=(0,c.useRef)(u);(0,d.U)();const{receiveCart:m,receiveCartContents:x}=(0,i.useDispatch)(n.cartStore),{cartData:_,cartErrors:b,cartTotals:y,cartIsLoading:f,isLoadingRates:k,hasPendingItemsOperations:v}=(0,i.useSelect)((e=>{const t=e(n.cartStore),o=!t.hasFinishedResolution("getCartData",[]);return{cartData:t.getCartData(),cartErrors:t.getCartErrors(),cartTotals:t.getCartTotals(),cartIsLoading:o,isLoadingRates:t.isAddressFieldsForShippingRatesUpdating(),hasPendingItemsOperations:t.hasPendingItemsOperations()}}),[]);if(!t)return w;const j=h(_.billingAddress,r),S=_.needsShipping?h(_.shippingAddress,l):j,C={billingAddress:j,billingData:j,cartCoupons:(P=_.coupons,P.length>0?P.map((e=>({...e,label:(0,a.decodeEntities)(e.code)}))):n.EMPTY_CART_COUPONS),cartErrors:b,cartFees:(E=_.fees,E.length>0?E.map((e=>g(e))):n.EMPTY_CART_FEES),cartHasCalculatedShipping:_.hasCalculatedShipping,cartIsLoading:f,cartItemErrors:_.errors,cartItems:_.items,cartItemsCount:_.itemsCount,cartItemsWeight:_.itemsWeight,cartNeedsPayment:_.needsPayment,cartNeedsShipping:_.needsShipping,cartTotals:y,crossSellsProducts:_.crossSells,extensions:_.extensions,hasPendingItemsOperations:v,isLoadingRates:k,paymentMethods:_.paymentMethods,paymentRequirements:_.paymentRequirements,receiveCart:m,receiveCartContents:x,shippingAddress:S,shippingRates:(N=_.shippingRates,N.length>0?N.map((e=>({...e,shipping_rates:e.shipping_rates.length>0?e.shipping_rates.map((e=>g(e))):[]}))):[])};var N,E,P;return o.current&&s()(o.current,C)||(o.current=C),o.current}},1057:(e,t,o)=>{"use strict";o.d(t,{R:()=>l});var r=o(6087),s=o(7143),c=o(7594),n=o(8537),i=o(5460);const a=(e,t)=>{const o=e.find((({id:e})=>e===t));return o?o.quantity:0},l=e=>{const{addItemToCart:t}=(0,s.useDispatch)(c.cartStore),{cartItems:o,cartIsLoading:l}=(0,i.V)(),{createErrorNotice:d,removeNotice:u}=(0,s.useDispatch)("core/notices"),[p,m]=(0,r.useState)(!1),g=(0,r.useRef)(a(o,e));return(0,r.useEffect)((()=>{const t=a(o,e);t!==g.current&&(g.current=t)}),[o,e]),{cartQuantity:Number.isFinite(g.current)?g.current:0,addingToCart:p,cartIsLoading:l,addToCart:(o=1)=>(m(!0),t(e,o).then((()=>{u("add-to-cart")})).catch((e=>{d((0,n.decodeEntities)(e.message),{id:"add-to-cart",context:"wc/all-products",isDismissible:!0})})).finally((()=>{m(!1)})))}}},7052:(e,t,o)=>{"use strict";o.d(t,{y:()=>n});var r=o(2619),s=o(7143),c=o(6087);const n=()=>({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,s.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}}),[])})},371:(e,t,o)=>{"use strict";o.d(t,{p:()=>i});var r=o(4921),s=o(3993),c=o(219),n=o(17);const i=e=>{const t=(e=>{const t=(0,s.isObject)(e)?e:{style:{}};let o=t.style;return(0,s.isString)(o)&&(o=JSON.parse(o)||{}),(0,s.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,n.BK)(t),i=(0,n.aR)(t),a=(0,n.fo)(t),l=(0,c.x)(t);return{className:(0,r.A)(l.className,o.className,i.className,a.className),style:{...l.style,...o.style,...i.style,...a.style}}}},219:(e,t,o)=>{"use strict";o.d(t,{x:()=>s});var r=o(3993);const s=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}}}},4982:(e,t,o)=>{"use strict";o.d(t,{TU:()=>n});var r=o(2e3),s=o(8331),c=o(5703);o(3993),o(8537);const n=e=>{const t=(0,r.A)(s.Hw,c.defaultFields,e.country),o=Object.assign({},e);return t.forEach((({key:t,hidden:r})=>{!0===r&&((e,t)=>e in t)(t,e)&&(o[t]="")})),o}},17:(e,t,o)=>{"use strict";o.d(t,{BK:()=>l,aR:()=>d,fo:()=>u});var r=o(4921),s=o(7356),c=o(9786),n=o(3993);function i(e={}){const t={};return(0,c.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function a(e,t){return e&&t?`has-${(0,s.c)(t)}-${e}`:""}function l(e){const{backgroundColor:t,textColor:o,gradient:s,style:c}=e,l=a("background-color",t),d=a("color",o),u=function(e){if(e)return`has-${e}-gradient-background`}(s),p=u||c?.color?.gradient;return{className:(0,r.A)(d,u,{[l]:!p&&!!l,"has-text-color":o||c?.color?.text,"has-background":t||c?.color?.background||s||c?.color?.gradient,"has-link-color":(0,n.isObject)(c?.elements?.link)?c?.elements?.link?.color:void 0}),style:i({color:c?.color||{}})}}function d(e){const t=e.style?.border||{};return{className:function(e){const{borderColor:t,style:o}=e,s=t?a("border-color",t):"";return(0,r.A)({"has-border-color":!!t||!!o?.border?.color,[s]:!!s})}(e),style:i({border:t})}}function u(e){return{className:void 0,style:i({spacing:e.style?.spacing||{}})}}},1174:(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:""},3757:(e,t,o)=>{"use strict";o.d(t,{f2:()=>s});const r=window.CustomEvent||null,s=(e,t,o=!1,s=!1)=>{if("function"!=typeof jQuery)return()=>{};const c=()=>{((e,{bubbles:t=!1,cancelable:o=!1,element:s,detail:c={}})=>{if(!r)return;s||(s=document.body);const n=new r(e,{bubbles:t,cancelable:o,detail:c});s.dispatchEvent(n)})(t,{bubbles:o,cancelable:s})};return jQuery(document).on(e,c),()=>jQuery(document).off(e,c)}},2050:(e,t,o)=>{"use strict";o.r(t),o.d(t,{metadata:()=>Xe,name:()=>Gt});const r=window.wp.blocks;var s=o(4530),c=o(9264),n=o(7723),i=o(6427),a=o(4715),l=o(6087),d=o(5573),u=o(790);function p({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,u.jsx)(d.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)(d.Path,{d:t[e]})}):null}class m extends l.Component{createLevelControl(e,t,o){const r=e===t;return{icon:(0,u.jsx)(p,{level:e}),title:(0,n.sprintf)(/* translators: %s: heading level e.g: "2", "3", "4" */ /* translators: %s: heading level e.g: "2", "3", "4" */ (0,n.__)("Heading %d","woocommerce"),e),isActive:r,onClick:()=>o(e)}}render(){const{isCollapsed:e=!0,minLevel:t,maxLevel:o,selectedLevel:r,onChange:s}=this.props,c=Array.from({length:o-t+1},((e,o)=>o+t));return(0,u.jsx)(i.ToolbarGroup,{isCollapsed:e,icon:(0,u.jsx)(p,{level:r}),controls:c.map((e=>this.createLevelControl(e,r,s)))})}}const g=m;var h=o(7581);o(1784);var w=o(4921),x=o(8992);const _=(0,u.jsx)(s.A,{icon:x.A,className:"wc-block-editor-components-block-icon"});var b=o(3925);(0,r.registerBlockType)(b,{icon:{src:_},edit:({attributes:e,setAttributes:t})=>{const o=(0,a.useBlockProps)(),{headingLevel:r,showProductLink:s,align:c,linkTarget:l}=e;return(0,u.jsxs)("div",{...o,children:[(0,u.jsxs)(a.BlockControls,{children:[(0,u.jsx)(g,{isCollapsed:!0,minLevel:1,maxLevel:7,selectedLevel:r,onChange:e=>t({headingLevel:e})}),(0,u.jsx)(a.AlignmentToolbar,{value:c,onChange:e=>{t({align:e})}})]}),(0,u.jsx)(a.InspectorControls,{children:(0,u.jsxs)(i.PanelBody,{title:(0,n.__)("Link settings","woocommerce"),children:[(0,u.jsx)(i.ToggleControl,{label:(0,n.__)("Make title a link","woocommerce"),checked:s,onChange:()=>t({showProductLink:!s})}),s&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(i.ToggleControl,{label:(0,n.__)("Open in new tab","woocommerce"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l})})]})}),(0,u.jsx)(i.Disabled,{children:(0,u.jsx)(h.A,{...e})})]})},save:({attributes:e})=>(0,u.jsx)("div",{...a.useBlockProps.save({className:(0,w.A)("is-loading",e.className)})})});var y=o(7143);const f=window.wp.editor;var k=o(3993);class v{blocks=new Map;initialized=!1;attemptedRegisteredBlocks=new Set;constructor(){this.initializeSubscriptions()}static getInstance(){return v.instance||(v.instance=new v),v.instance}initializeSubscriptions(){if(this.initialized)return;const e=(0,y.subscribe)((()=>{const t=(0,y.select)(f.store);if(!t)return;const o=t.getCurrentPostType();if(o)if("post"===o||"page"===o)e(),this.blocks.forEach((e=>{if(e.isAvailableOnPostEditor){const t=e.variationName||e.blockName;this.hasAttemptedRegistration(t)||this.registerBlock(e)}})),this.initialized=!0;else{e();const o=String(t.getEditedPostSlug());this.currentTemplateId=o,this.handleTemplateChange(void 0),(0,y.subscribe)((()=>{const e=this.currentTemplateId;this.currentTemplateId=String(t.getEditedPostSlug()),e!==this.currentTemplateId&&this.handleTemplateChange(e)}),f.store),this.initialized=!0}}))}handleTemplateChange(e){(this.currentTemplateId?.includes("single-product")||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:s}=e;try{o&&s?((0,r.unregisterBlockVariation)(t,s),this.attemptedRegisteredBlocks.delete(s)):((0,r.unregisterBlockType)(t),this.attemptedRegisteredBlocks.delete(t))}catch(e){console.debug(`Failed to unregister block ${t}:`,e)}}registerBlock(e){const{blockName:t,settings:o,isVariationBlock:s,variationName:c,isAvailableOnPostEditor:n}=e;try{const e=c||t;if(this.hasAttemptedRegistration(e))return;const i=(0,y.select)("core/edit-site");if(!i&&!n)return;if(s)(0,r.registerBlockVariation)(t,o);else{const e=(0,k.isEmpty)(o?.ancestor)?["woocommerce/single-product"]:o?.ancestor,s=i&&this.currentTemplateId?.includes("single-product");(0,r.registerBlockType)(t,{...o,ancestor:s?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)}}const j=(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:s,variationName:c,isAvailableOnPostEditor:n,...i}={...r,...t||{}},a={blockName:o,settings:{...i},isVariationBlock:null!=s&&s,variationName:null!=c?c:void 0,isAvailableOnPostEditor:null!=n&&n};v.getInstance().registerBlockConfig(a)};var S=o(8486);const C=({attributes:e})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock||e.isDescendentOfSingleProductTemplate?null:(0,u.jsx)("div",{className:(0,w.A)("is-loading",e.className)});var N=o(8331);const E=window.wp.coreData,P=e=>(0,y.useSelect)((t=>{if(!e)return{product:void 0,isResolving:!1};const o="string"==typeof e?parseInt(e,10):e;return{product:t(E.store).getEditedEntityRecord("root","product",o),isResolving:t(E.store).isResolving("getEditedEntityRecord",["root","product",o]),isResolutionFinished:t(E.store).hasFinishedResolution("getEditedEntityRecord",["root","product",o])}}),[e]);var A=o(1308);const T=()=>({isDescendentOfSingleProductTemplate:(0,y.useSelect)((e=>{const t=e(f.store).getEditedPostSlug();return!!(0,k.isString)(t)&&t.includes("single-product")}),[])});j({...JSON.parse('{"name":"woocommerce/product-price","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,"interactivity":true,"color":{"text":true,"background":true,"link":false,"__experimentalSkipSerialization":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalSkipSerialization":true,"__experimentalLetterSpacing":true},"__experimentalSelector":".wp-block-woocommerce-product-price .wc-block-components-product-price","spacing":{"margin":true,"padding":true}},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"$schema":"https://schemas.wp.org/trunk/block.json"}'),icon:(0,u.jsx)(s.A,{icon:S.A,className:"wc-block-editor-components-block-icon"}),edit:({attributes:e,setAttributes:t,context:o})=>{const r=(0,a.useBlockProps)(),s={...e,...o},c=Number.isFinite(o.queryId);let{isDescendentOfSingleProductTemplate:n}=T();c&&(n=!1),(0,l.useEffect)((()=>t({isDescendentOfQueryLoop:c,isDescendentOfSingleProductTemplate:n})),[c,n,t]);const{product:i}=P(o.postId);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e})}})}),(0,u.jsx)("div",{...r,children:(0,u.jsx)(A.default,{...s,isAdmin:!0,product:i,isExperimentalWcRestApiEnabled:(0,N.QE)()})})]})},save:C},{isAvailableOnPostEditor:!0});var B=o(7746),O=o(6724);const I=[{save:C,attributes:B.attributes,isEligible:({showSaleBadge:e})=>(0,O.S)(e),migrate:e=>{const{showSaleBadge:t,saleBadgeAlign:o}=e;return!1===t?[e]:[{...e,showSaleBadge:!1},[(0,r.createBlock)("woocommerce/product-sale-badge",{align:o})]]}}];var L=o(5703),D=o(3104);const R=({blockClientId:e})=>{const{isDescendentOfSingleProductBlock:t}=(0,y.useSelect)((t=>{const{getBlockParentsByBlockName:o}=t("core/block-editor");return{isDescendentOfSingleProductBlock:o(e?.replace("block-",""),["woocommerce/single-product"]).length>0}}),[e]);return{isDescendentOfSingleProductBlock:t}};var F=o(4264);const z={cover:(0,n.__)("Image is scaled and cropped to fill the entire space without being distorted.","woocommerce"),contain:(0,n.__)("Image is scaled to fill the space without clipping nor distorting.","woocommerce"),fill:(0,n.__)("Image will be stretched and distorted to completely fill the space.","woocommerce")},M=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"rem",label:"rem"},{value:"%",label:"%"},{value:"vw",label:"vw"},{value:"vh",label:"vh"}],V=({scale:e,width:t,height:o,setAttributes:r})=>(0,u.jsxs)(i.__experimentalToolsPanel,{className:"wc-block-product-image__tools-panel",label:(0,n.__)("Image size","woocommerce"),children:[(0,u.jsx)(i.__experimentalUnitControl,{label:(0,n.__)("Height","woocommerce"),onChange:e=>{r({height:e})},value:o,units:M}),(0,u.jsx)(i.__experimentalUnitControl,{label:(0,n.__)("Width","woocommerce"),onChange:e=>{r({width:e})},value:t,units:M}),o&&(0,u.jsx)(i.__experimentalToolsPanelItem,{hasValue:()=>!0,label:(0,n.__)("Scale","woocommerce"),children:(0,u.jsx)(i.__experimentalToggleGroupControl,{label:(0,n.__)("Scale","woocommerce"),value:e,help:z[e],onChange:e=>r({scale:e}),isBlock:!0,children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.__experimentalToggleGroupControlOption,{value:"cover",label:(0,n.__)("Cover","woocommerce")}),(0,u.jsx)(i.__experimentalToggleGroupControlOption,{value:"contain",label:(0,n.__)("Contain","woocommerce")}),(0,u.jsx)(i.__experimentalToggleGroupControlOption,{value:"fill",label:(0,n.__)("Fill","woocommerce")})]})})})]}),$=[["woocommerce/product-sale-badge",{align:"right"}]];var H=o(4003);const W=(0,u.jsx)(s.A,{icon:H.A,className:"wc-block-editor-components-block-icon"});(0,r.registerBlockType)(B,{deprecated:I,icon:W,edit:({attributes:e,setAttributes:t,context:o,clientId:r})=>{const{showProductLink:s,imageSizing:c,width:d,height:p,scale:m}=e,g=(0,l.useRef)(null),h=(0,a.useBlockProps)(),{wasBlockJustInserted:w,isInProductGallery:x}=(0,y.useSelect)((e=>({wasBlockJustInserted:e(a.store).wasBlockJustInserted(r),isInProductGallery:e(a.store).getBlockParentsByBlockName(r,"woocommerce/product-gallery").length>0})),[r]),_=Number.isFinite(o.queryId),{isDescendentOfSingleProductBlock:b}=R({blockClientId:h?.id});(0,l.useEffect)((()=>{t(_||b?{isDescendentOfQueryLoop:_,isDescendentOfSingleProductBlock:b,showSaleBadge:!1}:{isDescendentOfQueryLoop:_,isDescendentOfSingleProductBlock:b})}),[_,b,t]);const f=_||b,v=(0,a.useInnerBlocksProps)({className:"wc-block-components-product-image__inner-container"},{dropZoneElement:g.current,template:w?$:void 0}),j=(0,L.getSettingWithCoercion)("isBlockTheme",!1,k.isBoolean),{product:S,isResolving:C}=P(o.postId);return(0,u.jsxs)("div",{...h,children:[f&&!x&&(0,u.jsxs)(a.InspectorControls,{children:[(0,u.jsx)(V,{scale:m,width:d,height:p,setAttributes:t}),(0,u.jsxs)(i.PanelBody,{title:(0,n.__)("Content","woocommerce"),children:[(0,u.jsx)(i.ToggleControl,{label:(0,n.__)("Link to Product Page","woocommerce"),help:(0,n.__)("Links the image to the single product listing.","woocommerce"),checked:s,onChange:()=>t({showProductLink:!s})}),(0,u.jsxs)(i.__experimentalToggleGroupControl,{label:(0,n.__)("Resolution","woocommerce"),isBlock:!0,help:j?null:(0,l.createInterpolateElement)((0,n.__)("Product image cropping can be modified in the <a>Customizer</a>.","woocommerce"),{a:(0,u.jsx)("a",{href:`${(0,L.getAdminLink)("customize.php")}?autofocus[panel]=woocommerce&autofocus[section]=woocommerce_product_images`,target:"_blank",rel:"noopener noreferrer"})}),value:c,onChange:e=>t({imageSizing:e}),children:[(0,u.jsx)(i.__experimentalToggleGroupControlOption,{value:F.e.SINGLE,label:(0,n.__)("Full Size","woocommerce")}),(0,u.jsx)(i.__experimentalToggleGroupControlOption,{value:F.e.THUMBNAIL,label:(0,n.__)("Thumbnail","woocommerce")})]})]})]}),(0,u.jsx)(D.A,{...e,...o,isAdmin:!0,product:S,isResolving:C,children:f&&(0,u.jsx)("div",{...v})})]})},save:({attributes:e})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock?(0,u.jsx)(a.InnerBlocks.Content,{}):(0,u.jsx)("div",{className:(0,w.A)("is-loading",e.className)})});var q=o(9812);o(3081);var Q=o(2108);(0,n.__)("Product Rating","woocommerce");const G=(0,u.jsx)(s.A,{icon:Q.A,className:"wc-block-editor-components-block-icon"});(0,n.__)("Display the average rating of a product.","woocommerce"),j({...JSON.parse('{"name":"woocommerce/product-rating","icon":"info","title":"Product Rating","description":"Display the average rating 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}},"supports":{"interactivity":{"clientNavigation":true},"color":{"text":true,"background":false,"link":false,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-rating"},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),icon:{src:G},edit:e=>{const{attributes:t,setAttributes:o,context:r}=e,s=(0,a.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),c={...t,...r,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},n=Number.isFinite(r.queryId),{isDescendentOfSingleProductBlock:i}=R({blockClientId:s?.id});let{isDescendentOfSingleProductTemplate:d}=T();(n||i)&&(d=!1),(0,l.useEffect)((()=>{o({isDescendentOfQueryLoop:n,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:d})}),[o,n,i,d]);const{product:p}=P(r.postId);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})}),(0,u.jsx)("div",{...s,children:(0,u.jsx)(q.default,{isAdmin:!0,...c,product:p})})]})},save:C},{isAvailableOnPostEditor:!0});var U=o(3129);const Y=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":{"interactivity":{"clientNavigation":true},"inserter":false,"color":{"text":true,"background":false,"link":false,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-rating"},"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var J=o(7220);(0,r.registerBlockType)(Y,{apiVersion:3,icon:{src:(0,u.jsx)(s.A,{icon:U.A,className:"wc-block-editor-components-block-icon"})},edit:e=>{const{attributes:t,setAttributes:o,context:r}=e,s=(0,a.useBlockProps)({className:"wp-block-woocommerce-product-rating"}),c={...t,...r,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},n=Number.isFinite(r.queryId),{isDescendentOfSingleProductBlock:i}=R({blockClientId:s?.id});let{isDescendentOfSingleProductTemplate:d}=T();return(n||i)&&(d=!1),(0,l.useEffect)((()=>{o({isDescendentOfQueryLoop:n,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:d})}),[o,n,i,d]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})}),(0,u.jsx)("div",{...s,children:(0,u.jsx)(J.default,{...c})})]})}});const K=JSON.parse('{"name":"woocommerce/product-rating-counter","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}},"supports":{"interactivity":{"clientNavigation":true},"inserter":false,"color":{"text":false,"background":false,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-rating-counter"},"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"ancestor":["woocommerce/single-product"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var X=o(9147);(0,r.registerBlockType)(K,{apiVersion:3,icon:{src:(0,u.jsx)(s.A,{icon:U.A,className:"wc-block-editor-components-block-icon"})},edit:e=>{const{attributes:t,setAttributes:o,context:r}=e,s=(0,a.useBlockProps)({className:"wp-block-woocommerce-product-rating-counter"}),c={...t,...r,shouldDisplayMockedReviewsWhenProductHasNoReviews:!0},n=Number.isFinite(r.queryId),{isDescendentOfSingleProductBlock:i}=R({blockClientId:s?.id});let{isDescendentOfSingleProductTemplate:d}=T();return(n||i)&&(d=!1),(0,l.useEffect)((()=>{o({isDescendentOfQueryLoop:n,isDescendentOfSingleProductBlock:i,isDescendentOfSingleProductTemplate:d})}),[o,n,i,d]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})}),(0,u.jsx)("div",{...s,children:(0,u.jsx)(X.default,{...c})})]})}});var Z=o(6052);const ee=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"],"supports":{"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true,"__experimentalSkipSerialization":true},"typography":{"fontSize":true,"__experimentalFontWeight":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-average-rating"},"textdomain":"woocommerce","$schema":"https://schemas.wp.org/trunk/block.json"}');var te=o(4514);(0,r.registerBlockType)(ee,{apiVersion:3,icon:{src:(0,u.jsx)(s.A,{icon:Z.A,className:"wc-block-editor-components-block-icon"})},edit:e=>{const{attributes:t,setAttributes:o}=e,r=(0,a.useBlockProps)({className:"wp-block-woocommerce-product-average-rating"});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:t.textAlign,onChange:e=>{o({textAlign:e||""})}})}),(0,u.jsx)("div",{...r,children:(0,u.jsx)(te.default,{...t})})]})}});var oe=o(6012),re=o(595);function se({selectedWidth:e,setAttributes:t}){return(0,u.jsx)(i.PanelBody,{title:(0,n.__)("Width settings","woocommerce"),children:(0,u.jsx)(i.ButtonGroup,{"aria-label":(0,n.__)("Button width","woocommerce"),children:[25,50,75,100].map((o=>(0,u.jsxs)(i.Button,{isSmall:!0,variant:o===e?"primary":void 0,onClick:()=>{var r;t({width:e===(r=o)?void 0:r})},children:[o,"%"]},o)))})})}const ce=JSON.parse('{"name":"woocommerce/product-button","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","woocommerce/isDescendantOfAddToCartWithOptions"],"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":{"text":true,"background":true,"link":false,"__experimentalSkipSerialization":true},"interactivity":true,"html":false,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button"},"ancestor":["woocommerce/all-products","woocommerce/single-product","core/post-template","woocommerce/product-template"],"styles":[{"name":"fill","label":"Fill","isDefault":true},{"name":"outline","label":"Outline"}],"apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json","viewScriptModule":"woocommerce/product-button","style":"file:../woocommerce/product-button-style.css"}');(0,r.registerBlockType)(ce,{apiVersion:3,icon:{src:(0,u.jsx)(s.A,{icon:oe.A,className:"wc-block-editor-components-block-icon"})},attributes:{...ce.attributes},edit:({attributes:e,setAttributes:t,context:o})=>{const r=(0,a.useBlockProps)(),s=Number.isFinite(o?.queryId),{width:c}=e;return(0,l.useEffect)((()=>t({isDescendentOfQueryLoop:s})),[t,s]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(a.AlignmentToolbar,{value:e.textAlign,onChange:e=>{t({textAlign:e||""})}})}),(0,u.jsx)(a.InspectorControls,{children:(0,u.jsx)(se,{selectedWidth:c,setAttributes:t})}),(0,u.jsx)("div",{...r,children:(0,u.jsx)(i.Disabled,{children:(0,u.jsx)(re.default,{...e,...o,blockClientId:r?.id,className:(0,w.A)(e.className,{[`has-custom-width wp-block-button__width-${c}`]:c})})})})]})},save:({attributes:e,innerBlocks:t})=>e.isDescendentOfQueryLoop||e.isDescendentOfSingleProductBlock||!t||0===t?.length?null:(0,u.jsx)("div",{...a.useBlockProps.save({className:(0,w.A)("is-loading",e.className,{[`has-custom-width wp-block-button__width-${e.width}`]:e.width})})})});var ne=o(4001);o(649);const ie=({showDescriptionIfEmpty:e,setAttributes:t})=>{const o=(0,n.__)("Show description if empty","woocommerce"),r=(0,n.__)("Display the product description if it doesn't have a summary","woocommerce");return(0,u.jsx)(i.__experimentalToolsPanelItem,{label:o,hasValue:()=>!0===e,onDeselect:()=>t({showDescriptionIfEmpty:!1}),isShownByDefault:!0,children:(0,u.jsx)(i.ToggleControl,{label:o,help:r,checked:e,onChange:e=>{t({showDescriptionIfEmpty:e})}})})},ae=({summaryLength:e,setAttributes:t})=>{const o=(0,n.__)("Max word count","woocommerce"),r=(0,n.__)("If the content exceeds the word limit, only the first paragraph will be shown. If the content is within the limit, all paragraphs will be displayed. Set to 0 to remove the word limit.","woocommerce");return(0,u.jsx)(i.__experimentalToolsPanelItem,{label:o,hasValue:()=>0!==e,onDeselect:()=>t({summaryLength:0}),isShownByDefault:!0,children:(0,u.jsx)(i.RangeControl,{label:o,help:r,value:e,onChange:e=>{t({summaryLength:e||0})},min:0,max:200,step:1})})},le=({showLink:e,setAttributes:t})=>{const o=(0,n.__)("Link to description","woocommerce"),r=(0,n.__)("Display a button to let shoppers jump to the product's description","woocommerce");return(0,u.jsx)(i.__experimentalToolsPanelItem,{label:o,hasValue:()=>!1===e,onDeselect:()=>t({showLink:!1}),isShownByDefault:!0,children:(0,u.jsx)(i.ToggleControl,{label:o,help:r,checked:e,onChange:e=>{t({showLink:e})}})})},de=({linkText:e,setAttributes:t})=>(0,u.jsx)("p",{children:(0,u.jsx)(a.RichText,{identifier:"linkToDescrption",className:"wc-block-components-product-summary__more-link",tagName:"a","aria-label":(0,n.__)("“Read more” link text","woocommerce"),placeholder:(0,n.__)('Add "read more" link text',"woocommerce"),value:e,onChange:e=>t({linkText:e}),withoutInteractiveFormatting:!0})});var ue=o(7715);const pe=(0,n.__)("Product Summary","woocommerce"),me=(0,u.jsx)(s.A,{icon:ue.A,className:"wc-block-editor-components-block-icon"}),ge=(0,n.__)("Display a short description about a product.","woocommerce"),he=JSON.parse('{"name":"woocommerce/product-summary","icon":"page","title":"Product Summary","description":"Display a short description about a product.","category":"woocommerce-product-elements","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":""}},"supports":{"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true,"link":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalDefaultControls":{"fontSize":true}},"__experimentalSelector":".wc-block-components-product-summary"},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var we=o(2619);function xe(e,{blockDescription:t,blockIcon:o,blockTitle:s,variationName:c,scope:n}){(0,r.registerBlockVariation)(e,{description:t,name:c,title:s,isActive:e=>e.__woocommerceNamespace===c,icon:{src:o},attributes:{__woocommerceNamespace:c},scope:n})}const _e="woocommerce/product-query/product-summary";xe("core/post-excerpt",{blockDescription:ge,blockIcon:(0,u.jsx)(i.Icon,{icon:ue.A}),blockTitle:pe,variationName:_e,scope:[]});const be=`${JSON.parse('{"name":"woocommerce/product-collection"}').name}/product-summary`;function ye({children:e,className:t,actionLabel:o,onActionClick:r,...s}){return(0,u.jsx)(i.Notice,{...s,className:(0,w.$)("wc-block-editor-components-upgrade-downgrade-notice",t),actions:[{label:o,onClick:r,noDefaultClasses:!0,variant:"link"}],children:(0,u.jsx)("div",{className:"wc-block-editor-components-upgrade-downgrade-notice__text",children:e})})}o(9969);const fe=({clientId:e})=>{const t=(0,l.createInterpolateElement)((0,n.__)("There's <strongText /> with important fixes and brand new features.","woocommerce"),{strongText:(0,u.jsx)("strong",{children:(0,n.__)("new version of Product Summary","woocommerce")})}),o=(0,n.__)("Upgrade now (just this block)","woocommerce");return(0,u.jsx)(ye,{isDismissible:!1,actionLabel:o,onActionClick:()=>{const t=(0,y.select)(a.store).getBlocksByClientId(e);if(t.length){const o=t[0],{excerptLength:s,showMoreOnNewLine:c,moreText:n,...i}=o.attributes,l=(0,r.createBlock)("woocommerce/product-summary",i);(0,y.dispatch)(a.store).replaceBlock(e,l)}},children:t})};(0,we.addFilter)("editor.BlockEdit","woocommerce-blocks/product-summary-upgrade-notice",(e=>t=>(e=>{const t=e.attributes.__woocommerceNamespace===_e,o=e.attributes.__woocommerceNamespace===be;return"core/post-excerpt"===e.name&&(t||o)})(t)?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.InspectorControls,{children:(0,u.jsx)(fe,{clientId:t.clientId})}),(0,u.jsx)(e,{...t})]}):(0,u.jsx)(e,{...t}))),j({...he,icon:{src:me},deprecated:[{save:C,migrate:e=>({...e,showDescriptionIfEmpty:!0,summaryLength:150}),isEligible:e=>(0,k.isEmptyObject)(e)}],edit:({attributes:e,context:t,setAttributes:o})=>{const r=(0,a.useBlockProps)(),{showDescriptionIfEmpty:s,showLink:c,summaryLength:d,linkText:p,isDescendantOfAllProducts:m}=e,g=Number.isFinite(t.queryId),{isDescendentOfSingleProductBlock:h}=R({blockClientId:r.id});let{isDescendentOfSingleProductTemplate:w}=T();g&&(w=!1),(0,l.useEffect)((()=>o({isDescendentOfQueryLoop:g,isDescendentOfSingleProductTemplate:w,isDescendentOfSingleProductBlock:h})),[o,g,w,h]);const{product:x}=P(t.postId);return(0,u.jsxs)("div",{...r,children:[(0,u.jsx)(ne.default,{isAdmin:!0,...e,product:x}),(0,u.jsx)(a.InspectorControls,{children:(0,u.jsxs)(i.__experimentalToolsPanel,{label:(0,n.__)("Settings","woocommerce"),resetAll:()=>{o({})},children:[(0,u.jsx)(ae,{summaryLength:d,setAttributes:o}),(0,u.jsx)(ie,{showDescriptionIfEmpty:s,setAttributes:o}),!m&&(0,u.jsx)(le,{showLink:c,setAttributes:o})]})}),!m&&c&&(0,u.jsx)(de,{linkText:p,setAttributes:o})]})},save:C},{isAvailableOnPostEditor:!0});var ke=o(9771),ve=o(3848);const je=JSON.parse('{"name":"woocommerce/product-sale-badge","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},"isDescendentOfSingleProductBlock":{"type":"boolean","default":false},"isDescendentOfSingleProductTemplate":{"type":"boolean","default":false}},"supports":{"interactivity":{"clientNavigation":true},"html":false,"align":true,"color":{"gradients":true,"background":true,"link":false,"__experimentalSkipSerialization":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalSkipSerialization":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true},"__experimentalBorder":{"color":true,"radius":true,"width":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true},"__experimentalSelector":".wc-block-components-product-sale-badge"},"ancestor":["woocommerce/single-product","woocommerce/product-template","core/post-template","woocommerce/product-gallery"],"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"example":{},"$schema":"https://schemas.wp.org/trunk/block.json"}'),{attributes:Se}=je,Ce=[{attributes:{...Se,isDescendentOfQueryLoop:{type:"boolean",default:!1},isDescendentOfSingleProductTemplate:{type:"boolean",default:!1}},save:C,apiVersion:3}];j({...je,icon:(0,u.jsx)(s.A,{icon:ke.A,className:"wc-block-editor-components-block-icon"}),edit:({attributes:e,context:t})=>{const o=(0,a.useBlockProps)(),{style:r,...s}=o,{isDescendentOfSingleProductTemplate:c}=T(),n={...e,...t};return(0,u.jsx)("div",{...s,children:(0,u.jsx)(ve.default,{...n,isDescendentOfSingleProductTemplate:c})})},save:()=>null,deprecated:Ce},{isAvailableOnPostEditor:!0});const Ne=(0,u.jsx)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)("path",{d:"M2 6h2v12H2V6m3 0h1v12H5V6m2 0h3v12H7V6m4 0h1v12h-1V6m3 0h2v12h-2V6m3 0h3v12h-3V6m4 0h1v12h-1V6z"})}),Ee=JSON.parse('{"name":"woocommerce/product-sku","title":"Product SKU","description":"Displays the SKU of a product.","category":"woocommerce-product-elements","attributes":{"productId":{"type":"number","default":0},"isDescendantOfAllProducts":{"type":"boolean","default":false},"showProductSelector":{"type":"boolean","default":false},"prefix":{"type":"string","default":"SKU:"},"suffix":{"type":"string","default":""}},"usesContext":["query","queryId","postId"],"ancestor":["woocommerce/product-meta","woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"supports":{"html":false,"interactivity":{"clientNavigation":true},"color":{"text":true,"background":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true},"spacing":{"margin":true,"padding":true}},"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var Pe=o(7035),Ae=o(415);const Te=e=>{const t=((0,Ae.useProductDataContext)().product||{}).id||e.productId||0;return t&&1!==t?(0,u.jsx)(a.InspectorControls,{children:(0,u.jsxs)("div",{className:"wc-block-single-product__edit-card",children:[(0,u.jsx)("div",{className:"wc-block-single-product__edit-card-title",children:(0,u.jsxs)("a",{href:`${L.ADMIN_URL}post.php?post=${t}&action=edit`,target:"_blank",rel:"noopener noreferrer",children:[(0,n.__)("Edit this product's details","woocommerce"),(0,u.jsx)(s.A,{icon:Pe.A,size:16})]})}),(0,u.jsx)("div",{className:"wc-block-single-product__edit-card-description",children:(0,n.__)("Edit details such as title, price, description and more.","woocommerce")})]})}):null};o(4093);var Be=o(1648);(0,r.registerBlockType)(Ee,{icon:(0,u.jsx)(s.A,{icon:Ne,className:"wc-block-editor-components-block-icon"}),edit:({attributes:e,setAttributes:t,context:o})=>{const{style:r,...s}=(0,a.useBlockProps)({className:"wc-block-components-product-sku wp-block-woocommerce-product-sku"}),c={...e,...o},n=Number.isFinite(o.queryId);let{isDescendentOfSingleProductTemplate:i}=T();return n&&(i=!1),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Te,{}),(0,u.jsx)("div",{...s,style:e.isDescendantOfAllProducts?void 0:r,children:(0,u.jsx)(Be.default,{...c,setAttributes:t,isDescendentOfSingleProductTemplate:i,isDescendantOfAllProducts:e.isDescendantOfAllProducts})})]})},save:()=>null});var Oe=o(6374);const Ie=({attributes:e,setAttributes:t,context:o})=>{const{style:r,...s}=(0,a.useBlockProps)({className:"wc-block-components-product-stock-indicator"}),c={...e,...o},n=Number.isFinite(o.queryId);return(0,l.useEffect)((()=>t({isDescendentOfQueryLoop:n})),[t,n]),(0,u.jsxs)("div",{...s,style:e.isDescendantOfAllProducts?void 0:r,children:[(0,u.jsx)(Te,{}),(0,u.jsx)(Oe.default,{...c})]})},Le=JSON.parse('{"name":"woocommerce/product-stock-indicator","icon":"info","title":"Product Stock Indicator","description":"Let shoppers know when products are out of stock or on backorder. This block is hidden when products are in stock.","category":"woocommerce-product-elements","attributes":{"isDescendentOfQueryLoop":{"type":"boolean","default":false},"isDescendantOfAllProducts":{"type":"boolean","default":false}},"supports":{"html":false,"interactivity":true,"color":{"text":true,"background":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true},"spacing":{"margin":true,"padding":true}},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"usesContext":["query","queryId","postId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');var De=o(8471);j({...Le,icon:{src:(0,u.jsx)(s.A,{icon:De.A,className:"wc-block-editor-components-block-icon"})},edit:e=>(0,u.jsx)(Ie,{...e}),save:()=>null},{isAvailableOnPostEditor:!0});var Re=o(9784);o(1986);const Fe=()=>(0,u.jsxs)("div",{className:"wc-block-editor-product-gallery",children:[(0,u.jsx)("img",{src:L.PLACEHOLDER_IMG_SRC,alt:"Placeholder"}),(0,u.jsx)("div",{className:"wc-block-editor-product-gallery__other-images",children:[...Array(4).keys()].map((e=>(0,u.jsx)("img",{src:L.PLACEHOLDER_IMG_SRC,alt:"Placeholder"},e)))})]}),ze=JSON.parse('{"name":"woocommerce/product-image-gallery","title":"Product Image Gallery","icon":"gallery","description":"Display a product\'s images.","category":"woocommerce-product-elements","supports":{"interactivity":{"clientNavigation":true},"align":true,"multiple":false},"keywords":["WooCommerce"],"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}');o(9556);const Me="woocommerce/product-gallery";j({...ze,icon:Re.A,edit:()=>{const e=(0,a.useBlockProps)();return(0,u.jsx)("div",{...e,children:(0,u.jsx)(i.Disabled,{children:(0,u.jsx)(Fe,{})})})},transforms:{to:[{type:"block",blocks:[Me],transform:()=>(0,r.createBlock)(Me)}]}},{isAvailableOnPostEditor:!1});const Ve=(0,u.jsx)(d.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",children:(0,u.jsx)("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"})}),$e="woocommerce/product-query/product-title";xe("core/post-title",{blockDescription:b.description,blockIcon:(0,u.jsx)(i.Icon,{icon:x.A}),blockTitle:b.title,variationName:$e,scope:["block"]});var He=o(5534);const We="woocommerce/product-query/product-template";xe("core/post-template",{blockDescription:(0,n.__)("Contains the block elements used to render a product, like its name, featured image, rating, and more.","woocommerce"),blockIcon:(0,u.jsx)(i.Icon,{icon:He.A}),blockTitle:(0,n.__)("Product template","woocommerce"),variationName:We,scope:["block","inserter"]});const qe=(0,L.getSetting)("stockStatusOptions",[]),Qe=((0,L.getSetting)("hideOutOfStockItems",!1)?Object.keys(function(e,t){const{[t]:o,...r}=e;return r}(qe,"outofstock")):Object.keys(qe),(0,L.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,k.isBoolean),F.e.THUMBNAIL,"woocommerce/related-products"),Ge={namespace:Qe,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}},Ue=(0,L.getSettingWithCoercion)("postTemplateHasSupportForGridView",!1,k.isBoolean),Ye=[["core/heading",{level:2,content:(0,n.__)("Related products","woocommerce"),style:{spacing:{margin:{top:"1rem",bottom:"1rem"}}}}],["core/post-template",{__woocommerceNamespace:We,...Ue&&{layout:{type:"grid",columnCount:5}}},[["woocommerce/product-image",{productId:0,imageSizing:"cropped"}],["core/post-title",{textAlign:"center",level:3,fontSize:"medium",isLink:!0,__woocommerceNamespace:$e},[]],["woocommerce/product-price",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]],["woocommerce/product-button",{textAlign:"center",fontSize:"small",style:{spacing:{margin:{bottom:"1rem"}}}},[]]]]],Je={name:"core/query",description:(0,n.__)("Display related products.","woocommerce"),title:(0,n.__)("Related Products Controls","woocommerce"),isActive:e=>e.namespace===Qe,icon:(0,u.jsx)(i.Icon,{icon:Ve,className:"wc-block-editor-components-block-icon wc-block-editor-components-block-icon--stacks"}),attributes:Ge,allowedControls:[],innerBlocks:Ye,scope:["block"]};j(Je,{isVariationBlock:!0,variationName:Qe,isAvailableOnPostEditor:!1}),o(752);j({...JSON.parse('{"name":"woocommerce/related-products","title":"Related Products","icon":"product","description":"Display related products.","category":"woocommerce","supports":{"interactivity":{"clientNavigation":true},"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:De.A},edit:()=>{const e=[["core/query",Ge,Ye]],t=(0,a.useBlockProps)();return(0,u.jsxs)("div",{...t,children:[(0,u.jsx)(a.InspectorControls,{children:(0,u.jsx)(i.Notice,{className:"wc-block-editor-related-products__notice",status:"warning",isDismissible:!1,children:(0,u.jsx)("p",{children:(0,n.__)("These products will vary depending on the main product in the page","woocommerce")})})}),(0,u.jsx)(a.InnerBlocks,{template:e})]})},save:()=>{const e=a.useBlockProps.save();return(0,u.jsx)("div",{...e,children:(0,u.jsx)(a.InnerBlocks.Content,{})})},isAvailableOnPostEditor:!1},{isAvailableOnPostEditor:!1});const Ke=(0,u.jsxs)(d.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,u.jsx)("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,u.jsx)("circle",{cx:"9",cy:"14",r:"1"}),(0,u.jsx)("circle",{cx:"12",cy:"14",r:"1"}),(0,u.jsx)("circle",{cx:"15",cy:"14",r:"1"})]});o(9835);j({...JSON.parse('{"name":"woocommerce/product-meta","title":"Product Meta","icon":"product","description":"Display a product’s SKU, categories, tags, and more.","category":"woocommerce-product-elements","supports":{"interactivity":{"clientNavigation":true},"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,u.jsx)(s.A,{icon:Ke,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[["woocommerce/product-sku"],["core/post-terms",{prefix:(0,n.__)("Category: ","woocommerce"),term:"product_cat"}],["core/post-terms",{prefix:(0,n.__)("Tags: ","woocommerce"),term:"product_tag"}]]]],t=(0,a.useBlockProps)();return(0,u.jsx)("div",{...t,children:(0,u.jsx)(a.InnerBlocks,{template:e})})},save:()=>{const e=a.useBlockProps.save();return(0,u.jsx)("div",{...e,children:(0,u.jsx)(a.InnerBlocks.Content,{})})},ancestor:["woocommerce/single-product"]},{isAvailableOnPostEditor:!0});const Xe=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":{"interactivity":{"clientNavigation":false},"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}}}'),Ze=(e,t)=>{const{className:o,contentVisibility:r}=t;return(0,w.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:et}=Xe,tt=[{attributes:Object.assign({},et,{rows:{type:"number",default:1}}),save({attributes:e}){const t={"data-attributes":JSON.stringify(e)};return(0,u.jsx)("div",{className:Ze("wc-block-all-products",e),...t,children:(0,u.jsx)(a.InnerBlocks.Content,{})})}}];var ot=o(9491);const rt=window.wc.wcBlocksRegistry;o.p=N.XK,(0,rt.registerBlockComponent)({blockName:"woocommerce/product-price",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(2388)]).then(o.bind(o,1308))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-image",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(4232)]).then(o.bind(o,933))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-title",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(2105)]).then(o.bind(o,5168))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-rating",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(462)]).then(o.bind(o,9812))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-rating-stars",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(8578)]).then(o.bind(o,7220))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-rating-counter",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(8553)]).then(o.bind(o,9147))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-average-rating",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(8647)]).then(o.bind(o,4514))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-button",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(7409)]).then(o.bind(o,595))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-summary",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(3895)]).then(o.bind(o,4001))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(4442)]).then(o.bind(o,3848))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-sku",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(2724)]).then(o.bind(o,1648))))}),(0,rt.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:(0,l.lazy)((()=>Promise.all([o.e(94),o.e(345)]).then(o.bind(o,6374))))});const st=e=>(0,rt.getRegisteredBlockComponents)(e),ct=(e,t,o)=>o?Math.min(e,t)===e?t:Math.max(e,o)===e?o:e:Math.max(e,t)===t?e:t,nt=({columns:e,rows:t,setAttributes:o,alignButtons:r,minColumns:s=1,maxColumns:c=6,minRows:a=1,maxRows:l=6})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.RangeControl,{label:(0,n.__)("Columns","woocommerce"),value:e,onChange:e=>{const t=ct(e,s,c);o({columns:Number.isNaN(t)?"":t})},min:s,max:c}),(0,u.jsx)(i.RangeControl,{label:(0,n.__)("Rows","woocommerce"),value:t,onChange:e=>{const t=ct(e,a,l);o({rows:Number.isNaN(t)?"":t})},min:a,max:l}),(0,u.jsx)(i.ToggleControl,{label:(0,n.__)("Align the last block to the bottom","woocommerce"),help:r?(0,n.__)("Align the last block to the bottom.","woocommerce"):(0,n.__)("The last inner block will follow other content.","woocommerce"),checked:r,onChange:()=>o({alignButtons:!r})})]}),it=[{id:1,name:"WordPress Pennant",variation:"",permalink:"https://example.org",sku:"wp-pennant",short_description:(0,n.__)("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:N.sW+"previews/pennant.jpg",thumbnail:N.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,n.__)("Add to cart","woocommerce"),description:(0,n.__)("Add to cart","woocommerce")},has_options:!1,is_purchasable:!0,is_in_stock:!0,on_sale:!0}],at=[["woocommerce/product-image",{imageSizing:F.e.THUMBNAIL}],["woocommerce/product-title"],["woocommerce/product-price"],["woocommerce/product-rating"],["woocommerce/product-button"]],lt=e=>e&&0!==e.length?e.map((e=>[e.name,{...e.attributes,product:void 0,children:e.innerBlocks.length>0?lt(e.innerBlocks):[],...e.name===ce.name&&{className:(0,w.A)(e.attributes.className,{[`has-custom-width wp-block-button__width-${e.attributes?.width}`]:e.attributes?.width})},isDescendantOfAllProducts:!0}])):[],dt=(e,t)=>{const{contentVisibility:o}=e;return(0,u.jsx)(i.ToggleControl,{label:(0,n.__)("Show Sorting Dropdown","woocommerce"),checked:o.orderBy,onChange:()=>t({contentVisibility:{...o,orderBy:!o.orderBy}})})},ut=(e,t)=>(0,u.jsx)(i.SelectControl,{label:(0,n.__)("Order Products By","woocommerce"),value:e.orderby,options:[{label:(0,n.__)("Default sorting (menu order)","woocommerce"),value:"menu_order"},{label:(0,n.__)("Popularity","woocommerce"),value:"popularity"},{label:(0,n.__)("Average rating","woocommerce"),value:"rating"},{label:(0,n.__)("Latest","woocommerce"),value:"date"},{label:(0,n.__)("Price: low to high","woocommerce"),value:"price"},{label:(0,n.__)("Price: high to low","woocommerce"),value:"price-desc"}],onChange:e=>t({orderby:e})});var pt=o(1824),mt=o.n(pt),gt=o(4656);o(8714);const ht=({currentPage:e,displayFirstAndLastPages:t=!0,displayNextAndPreviousArrows:o=!0,pagesToDisplay:r=3,onPageChange:s,totalPages:c})=>{let{minIndex:i,maxIndex:a}=((e,t,o)=>{if(o<=2)return{minIndex:null,maxIndex:null};const r=e-1,s=Math.max(Math.floor(t-r/2),2),c=Math.min(Math.ceil(t+(r-(t-s))),o-1);return{minIndex:Math.max(Math.floor(t-(r-(c-t))),2),maxIndex:c}})(r,e,c);const l=t&&Boolean(1!==i),d=t&&Boolean(a!==c),p=t&&Boolean(i&&i>3),m=t&&Boolean(a&&a<c-2);l&&3===i&&(i-=1),d&&a===c-2&&(a+=1);const g=[];if(i&&a)for(let e=i;e<=a;e++)g.push(e);return(0,u.jsxs)("div",{className:"wc-block-pagination wc-block-components-pagination",children:[(0,u.jsx)(gt.Label,{screenReaderLabel:(0,n.__)("Navigate to another page","woocommerce")}),o&&(0,u.jsx)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>s(e-1),title:(0,n.__)("Previous page","woocommerce"),disabled:e<=1,children:(0,u.jsx)(gt.Label,{label:"←",screenReaderLabel:(0,n.__)("Previous page","woocommerce")})}),l&&(0,u.jsx)("button",{className:(0,w.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:()=>s(1),disabled:1===e,children:(0,u.jsx)(gt.Label,{label:"1",screenReaderLabel:(0,n.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,n.__)("Page %d","woocommerce"),1)})}),p&&(0,u.jsx)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true",children:(0,n.__)("…","woocommerce")}),g.map((t=>(0,u.jsx)("button",{className:(0,w.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:()=>s(t),disabled:e===t,children:(0,u.jsx)(gt.Label,{label:t.toString(),screenReaderLabel:(0,n.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,n.__)("Page %d","woocommerce"),t)})},t))),m&&(0,u.jsx)("span",{className:"wc-block-pagination-ellipsis wc-block-components-pagination__ellipsis","aria-hidden":"true",children:(0,n.__)("…","woocommerce")}),d&&(0,u.jsx)("button",{className:(0,w.A)("wc-block-pagination-page","wc-block-components-pagination__page",{"wc-block-pagination-page--active":e===c,"wc-block-components-pagination__page--active":e===c}),onClick:()=>s(c),disabled:e===c,children:(0,u.jsx)(gt.Label,{label:c.toString(),screenReaderLabel:(0,n.sprintf)(/* translators: %d is the page number (1, 2, 3...). */ /* translators: %d is the page number (1, 2, 3...). */ (0,n.__)("Page %d","woocommerce"),c)})}),o&&(0,u.jsx)("button",{className:"wc-block-pagination-page wc-block-components-pagination__page wc-block-components-pagination-page--arrow",onClick:()=>s(e+1),title:(0,n.__)("Next page","woocommerce"),disabled:e>=c,children:(0,u.jsx)(gt.Label,{label:"→",screenReaderLabel:(0,n.__)("Next page","woocommerce")})})]})};function wt(e,t){const o=(0,l.useRef)();return(0,l.useEffect)((()=>{o.current===e||t&&!t(e,o.current)||(o.current=e)}),[e,t]),o.current}var xt=o(7594),_t=o(923),bt=o.n(_t);function yt(e){const t=(0,l.useRef)(e);return bt()(e,t.current)||(t.current=e),t.current}const ft=(0,l.createContext)("page"),kt=()=>(0,l.useContext)(ft),vt=(ft.Provider,(e,t,o)=>{const r=kt();o=o||r;const s=(0,y.useSelect)((r=>r(xt.QUERY_STATE_STORE_KEY).getValueForQueryKey(o,e,t)),[o,e]),{setQueryValue:c}=(0,y.useDispatch)(xt.QUERY_STATE_STORE_KEY);return[s,(0,l.useCallback)((t=>{c(o,e,t)}),[o,e,c])]}),jt=e=>{const t={namespace:"/wc/store/v1",resourceName:"products"},{results:o,isLoading:r}=(e=>{const{namespace:t,resourceName:o,resourceValues:r=[],query:s={},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 n=(0,l.useRef)({results:[],isLoading:!0}),i=yt(s),a=yt(r),d=(()=>{const[,e]=(0,l.useState)();return(0,l.useCallback)((t=>{e((()=>{throw t}))}),[])})(),u=(0,y.useSelect)((e=>{if(!c)return null;const r=e(xt.COLLECTIONS_STORE_KEY),s=[t,o,i,a],n=r.getCollectionError(...s);if(n){if(!(0,k.isError)(n))throw new Error("TypeError: `error` object is not an instance of Error constructor");d(n)}return{results:r.getCollection(...s),isLoading:!r.hasFinishedResolution("getCollection",s)}}),[t,o,a,i,c,d]);return null!==u&&(n.current=u),n.current})({...t,query:e}),{value:s}=((e,t)=>{const{namespace:o,resourceName:r,resourceValues:s=[],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 n=yt(c),i=yt(s),{value:a,isLoading:l=!0}=(0,y.useSelect)((t=>{const s=t(xt.COLLECTIONS_STORE_KEY),c=[e,o,r,n,i];return{value:s.getCollectionHeader(...c),isLoading:s.hasFinishedResolution("getCollectionHeader",c)}}),[e,o,r,i,n]);return{value:a,isLoading:l}})("x-wp-total",{...t,query:e});return{products:o,totalProducts:parseInt(s,10),productsLoading:r}};var St=o(7052);o(7525);const Ct=e=>{if(!e)return;const t=e.getBoundingClientRect().bottom;t>=0&&t<=window.innerHeight||e.scrollIntoView()};var Nt=o(195),Et=o(2098);const Pt=()=>{const{parentClassName:e}=(0,Ae.useInnerBlockLayoutContext)();return(0,u.jsxs)("div",{className:`${e}__no-products`,children:[(0,u.jsx)(s.A,{className:`${e}__no-products-image`,icon:Et.A,size:100}),(0,u.jsx)("strong",{className:`${e}__no-products-title`,children:(0,n.__)("No products","woocommerce")}),(0,u.jsx)("p",{className:`${e}__no-products-description`,children:(0,n.__)("There are currently no products available to display.","woocommerce")})]})};var At=o(428);const Tt=({resetCallback:e=()=>{}})=>{const{parentClassName:t}=(0,Ae.useInnerBlockLayoutContext)();return(0,u.jsxs)("div",{className:`${t}__no-products`,children:[(0,u.jsx)(s.A,{className:`${t}__no-products-image`,icon:At.A,size:100}),(0,u.jsx)("strong",{className:`${t}__no-products-title`,children:(0,n.__)("No products found","woocommerce")}),(0,u.jsx)("p",{className:`${t}__no-products-description`,children:(0,n.__)("We were unable to find any results based on your search.","woocommerce")}),(0,u.jsx)("button",{onClick:e,children:(0,n.__)("Reset Search","woocommerce")})]})};o(6854);const Bt=({onChange:e,value:t})=>(0,u.jsx)(gt.SortSelect,{className:"wc-block-product-sort-select wc-block-components-product-sort-select",onChange:e,options:[{key:"menu_order",label:(0,n.__)("Default sorting","woocommerce")},{key:"popularity",label:(0,n.__)("Popularity","woocommerce")},{key:"rating",label:(0,n.__)("Average rating","woocommerce")},{key:"date",label:(0,n.__)("Latest","woocommerce")},{key:"price",label:(0,n.__)("Price: low to high","woocommerce")},{key:"price-desc",label:(0,n.__)("Price: high to low","woocommerce")}],screenReaderLabel:(0,n.__)("Order products by","woocommerce"),value:t}),Ot=(e,t,o,r)=>{if(!o)return;const s=st(e);return o.map((([o,c={}],n)=>{let i=[];c.children&&c.children.length>0&&(i=Ot(e,t,c.children,r));const a=s[o];if(!a)return null;const d=t.id||0,p=["layout",o,n,r,d];return(0,u.jsx)(l.Suspense,{fallback:(0,u.jsx)("div",{className:"wc-block-placeholder"}),children:(0,u.jsx)(a,{...c,children:i,product:t})},p.join("_"))}))},It=(0,ot.withInstanceId)((({product:e={},attributes:t,instanceId:o})=>{const{layoutConfig:r}=t,{parentClassName:s,parentName:c}=(0,Ae.useInnerBlockLayoutContext)(),n=0===Object.keys(e).length,i=(0,w.A)(`${s}__product`,"wc-block-layout",{"is-loading":n});return(0,u.jsx)("li",{className:i,"aria-hidden":n,children:Ot(c,e,r,o)})}));o(3320);const Lt=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"}}},Dt=({totalQuery:e,totalProducts:t},{totalQuery:o}={})=>!mt()(e,o)&&Number.isFinite(t),Rt=(Mt=({attributes:e,currentPage:t,onPageChange:o,onSortChange:r,sortValue:s,scrollToTop:c})=>{const[i,a]=vt("attributes",[]),[d,p]=vt("stock_status",[]),[m,g]=vt("rating",[]),[h,x]=vt("min_price"),[_,b]=vt("max_price"),[f]=((e,t)=>{const o=kt();t=t||o;const[r,s]=(e=>{const t=kt();e=e||t;const o=(0,y.useSelect)((t=>t(xt.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)),[e]),{setValueForQueryContext:r}=(0,y.useDispatch)(xt.QUERY_STATE_STORE_KEY);return[o,(0,l.useCallback)((t=>{r(e,t)}),[e,r])]})(t),c=yt(r),n=yt(e),i=wt(n),a=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{bt()(i,n)||(s(Object.assign({},c,n)),a.current=!0)}),[c,n,i,s]),a.current?[r,s]:[e,s]})((({sortValue:e,currentPage:t,attributes:o})=>{const{columns:r,rows:s}=o;return{...Lt(e),catalog_visibility:"catalog",per_page:r*s,page:t}})({attributes:e,sortValue:s,currentPage:t})),{products:k,totalProducts:v,productsLoading:j}=jt(f),{parentClassName:S,parentName:C}=(0,Ae.useInnerBlockLayoutContext)(),N=(e=>{const{order:t,orderby:o,page:r,per_page:s,...c}=e;return c||{}})(f),{dispatchStoreEvent:E}=(0,St.y)(),P=wt({totalQuery:N,totalProducts:v},Dt);(0,l.useEffect)((()=>{E("product-list-render",{products:k,listName:C})}),[k,C,E]),(0,l.useEffect)((()=>{mt()(N,P?.totalQuery)||(o(1),P?.totalQuery&&(e=>{Number.isFinite(e)&&(0===e?(0,Nt.speak)((0,n.__)("No products found","woocommerce")):(0,Nt.speak)((0,n.sprintf)(/* translators: %s is an integer higher than 0 (1, 2, 3...) */ /* translators: %s is an integer higher than 0 (1, 2, 3...) */ (0,n._n)("%d product found","%d products found",e,"woocommerce"),e)))})(v))}),[P?.totalQuery,v,o,N]);const{contentVisibility:A}=e,T=e.columns*e.rows,B=!Number.isFinite(v)&&Number.isFinite(P?.totalProducts)&&mt()(N,P?.totalQuery)?Math.ceil((P?.totalProducts||0)/T):Math.ceil(v/T),O=k.length?k:Array.from({length:T}),I=0!==k.length||j,L=i.length>0||d.length>0||m.length>0||Number.isFinite(h)||Number.isFinite(_);return(0,u.jsxs)("div",{className:(()=>{const{columns:t,rows:o,alignButtons:r,align:s}=e,c=void 0!==s?"align"+s:"";return(0,w.A)(S,c,"has-"+t+"-columns",{"has-multiple-rows":o>1,"has-aligned-buttons":r})})(),children:[A?.orderBy&&I&&(0,u.jsx)(Bt,{onChange:r,value:s}),!I&&L&&(0,u.jsx)(Tt,{resetCallback:()=>{a([]),p([]),g([]),x(null),b(null)}}),!I&&!L&&(0,u.jsx)(Pt,{}),I&&(0,u.jsx)("ul",{className:(0,w.A)(`${S}__products`,{"is-loading-products":j}),children:O.map(((t={},o)=>(0,u.jsx)(It,{attributes:e,product:t},t.id||o)))}),B>1&&(0,u.jsx)(ht,{currentPage:t,onPageChange:e=>{c({focusableSelector:"a, button"}),o(e)},totalPages:B})]})},e=>{const t=(0,l.useRef)(null);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"with-scroll-to-top__scroll-point",ref:t,"aria-hidden":!0}),(0,u.jsx)(Mt,{...e,scrollToTop:e=>{null!==t.current&&((e,t)=>{const{focusableSelector:o}=t||{};window&&Number.isFinite(window.innerHeight)&&(o?((e,t)=>{const o=e.parentElement?.querySelectorAll(t)||[];if(o.length){const e=o[0];Ct(e),e?.focus()}else Ct(e)})(e,o):Ct(e))})(t.current,e)}})]})}),Ft=({attributes:e})=>{const[t,o]=(0,l.useState)(1),[r,s]=(0,l.useState)(e.orderby);return(0,l.useEffect)((()=>{s(e.orderby)}),[e.orderby]),(0,u.jsx)(Rt,{attributes:e,currentPage:t,onPageChange:e=>{o(e)},onSortChange:e=>{const t=e?.target?.value;s(t),o(1)},sortValue:r})},zt=(0,u.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 230 250",style:{width:"100%"},children:[(0,u.jsx)("title",{children:"Grid Block Preview"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:".162",y:".779",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"1.565",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:".162",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"9.216",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"1.565",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:"82.478",y:".779",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"83.882",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:"82.478",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"91.532",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"83.882",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:"164.788",y:".779",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"76.153",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"166.192",y:"101.448",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"65.374",height:"65.374",x:"164.788",y:"136.277",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"47.266",height:"5.148",x:"173.843",y:"211.651",fill:"#E1E3E6",rx:"2.574"}),(0,u.jsx)("rect",{width:"62.8",height:"15",x:"166.192",y:"236.946",fill:"#E1E3E6",rx:"5"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"86.301",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"13.283",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"21.498",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"29.713",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"37.927",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"46.238",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"95.599",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"103.814",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"112.029",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"120.243",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"128.554",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"177.909",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"186.124",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"194.339",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"202.553",y:"221.798",fill:"#E1E3E6",rx:"3"}),(0,u.jsx)("rect",{width:"6.177",height:"6.177",x:"210.864",y:"221.798",fill:"#E1E3E6",rx:"3"})]});var Mt;class Vt extends l.Component{render(){const{attributes:e,urlParameterSuffix:t}=this.props;return e.isPreview?zt:(0,u.jsxs)(Ae.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid",children:[(0,u.jsx)(gt.StoreNoticesContainer,{context:"wc/all-products"}),(0,u.jsx)(Ft,{attributes:e,urlParameterSuffix:t})]})}}const $t=Vt;o(4695);const Ht=st("woocommerce/all-products"),Wt=(0,u.jsx)(s.A,{icon:c.A}),qt=(0,ot.compose)(i.withSpokenMessages,(0,y.withSelect)(((e,{clientId:t})=>{const{getBlock:o}=e("core/block-editor");return{block:o(t)}})),(0,y.withDispatch)((e=>{const{replaceInnerBlocks:t}=e("core/block-editor");return{replaceInnerBlocks:t}})))((({block:e,attributes:t,setAttributes:o,debouncedSpeak:d,replaceInnerBlocks:p})=>{const[m,g]=(0,l.useState)(!1),[h,w]=(0,l.useState)([]),x=(0,a.useBlockProps)({className:Ze("wc-block-all-products",t)});if(0===N.r7.productCount)return((e,t)=>(0,u.jsxs)(i.Placeholder,{className:"wc-block-products",icon:t,label:e,children:[(0,u.jsx)("p",{children:(0,n.__)("You haven't published any products to list here yet.","woocommerce")}),(0,u.jsxs)(i.Button,{className:"wc-block-products__add-product-button",variant:"secondary",href:L.ADMIN_URL+"post-new.php?post_type=product",target:"_top",children:[(0,n.__)("Add new product","woocommerce")+" ",(0,u.jsx)(s.A,{icon:Pe.A})]}),(0,u.jsx)(i.Button,{className:"wc-block-products__read_more_button",variant:"tertiary",href:"https://woocommerce.com/document/managing-products/",target:"_blank",children:(0,n.__)("Learn more","woocommerce")})]}))(Xe.title,(0,u.jsx)(s.A,{icon:c.A}));const _=()=>{g(!m),m||d((0,n.__)("Showing All Products block preview.","woocommerce"))};return(0,u.jsxs)("div",{...x,children:[(0,u.jsx)(a.BlockControls,{children:(0,u.jsx)(i.ToolbarGroup,{controls:[{icon:"edit",title:(0,n.__)("Edit the layout of each product","woocommerce"),onClick:()=>_(),isActive:m}]})}),(()=>{const{columns:e,rows:r,alignButtons:s}=t;return(0,u.jsxs)(a.InspectorControls,{children:[(0,u.jsx)(i.PanelBody,{title:(0,n.__)("Layout Settings","woocommerce"),initialOpen:!0,children:(0,u.jsx)(nt,{columns:e,rows:r,alignButtons:s,setAttributes:o,minColumns:(0,L.getSetting)("minColumns",1),maxColumns:(0,L.getSetting)("maxColumns",6),minRows:(0,L.getSetting)("minRows",1),maxRows:(0,L.getSetting)("maxRows",6)})}),(0,u.jsxs)(i.PanelBody,{title:(0,n.__)("Content Settings","woocommerce"),children:[dt(t,o),ut(t,o)]})]},"inspector")})(),m?(()=>{const s={template:t.layoutConfig,templateLock:!1,allowedBlocks:Object.keys(Ht)};return 0!==t.layoutConfig.length&&(s.renderAppender=!1),(0,u.jsxs)(i.Placeholder,{icon:Wt,label:Xe.title,children:[(0,n.__)("Display all products from your store as a grid.","woocommerce"),(0,u.jsxs)("div",{className:"wc-block-all-products-grid-item-template",children:[(0,u.jsx)(i.Tip,{children:(0,n.__)("Edit the blocks inside the example below to change the content displayed for all products within the product grid.","woocommerce")}),(0,u.jsx)(Ae.InnerBlockLayoutContextProvider,{parentName:"woocommerce/all-products",parentClassName:"wc-block-grid",children:(0,u.jsx)("div",{className:"wc-block-grid wc-block-layout has-1-columns",children:(0,u.jsx)("ul",{className:"wc-block-grid__products",children:(0,u.jsx)("li",{className:"wc-block-grid__product",children:(0,u.jsx)(Ae.ProductDataContextProvider,{product:it[0],children:(0,u.jsx)(a.InnerBlocks,{...s})})})})})}),(0,u.jsxs)("div",{className:"wc-block-all-products__actions",children:[(0,u.jsx)(i.Button,{className:"wc-block-all-products__done-button",variant:"primary",onClick:()=>{o({layoutConfig:lt(e.innerBlocks)}),w(e.innerBlocks),_()},children:(0,n.__)("Done","woocommerce")}),(0,u.jsx)(i.Button,{className:"wc-block-all-products__cancel-button",variant:"tertiary",onClick:()=>{p(e.clientId,h,!1),_()},children:(0,n.__)("Cancel","woocommerce")}),(0,u.jsx)(i.Button,{className:"wc-block-all-products__reset-button",icon:Wt,label:(0,n.__)("Reset layout to default","woocommerce"),onClick:()=>{const t=[];at.map((([e,o])=>(t.push((0,r.createBlock)(e,o)),!0))),p(e.clientId,t,!1),w(e.innerBlocks)},children:(0,n.__)("Reset Layout","woocommerce")})]})]})]})})():(()=>{const{layoutConfig:e}=t,o=e&&0!==e.length,r=Xe.title;return o?(0,u.jsx)(i.Disabled,{children:(0,u.jsx)($t,{attributes:t})}):((e,t)=>(0,u.jsx)(i.Placeholder,{className:"wc-block-products",icon:t,label:e,children:(0,n.__)("The content for this block is hidden due to block settings.","woocommerce")}))(r,Wt)})()]})})),Qt={columns:(0,L.getSetting)("defaultColumns",3),rows:(0,L.getSetting)("defaultRows",3),alignButtons:!1,contentVisibility:{orderBy:!0},orderby:"date",layoutConfig:at,isPreview:!1},{name:Gt}=Xe,Ut={icon:{src:(0,u.jsx)(s.A,{icon:c.A,className:"wc-block-editor-components-block-icon"})},edit:qt,save:function({attributes:e}){const t={};Object.keys(e).sort().forEach((o=>{t[o]=e[o]}));const o=a.useBlockProps.save({className:Ze("wc-block-all-products",e),"data-attributes":JSON.stringify(t)});return(0,u.jsx)("div",{...o,children:(0,u.jsx)(a.InnerBlocks.Content,{})})},deprecated:tt,defaults:Qt};(0,r.registerBlockType)(Gt,Ut)},5841:(e,t,o)=>{"use strict";o.d(t,{Nm:()=>a,fb:()=>m,p3:()=>i});var r=o(7723),s=o(4921),c=o(3993),n=o(790);const i=e=>{const t=parseFloat(e.average_rating);return Number.isFinite(t)&&t>0?t:0},a=e=>{if("review_count"in e){const t=(0,c.isNumber)(e.review_count)?e.review_count:parseInt(e.review_count,10);return Number.isFinite(t)&&t>0?t:0}if("rating_count"in e){const t=(0,c.isNumber)(e.rating_count)?e.rating_count:parseInt(e.rating_count,10);return Number.isFinite(t)&&t>0?t:0}return 0},l=e=>({width:e/5*100+"%"}),d=({className:e,parentClassName:t})=>{const o=l(0);return(0,n.jsxs)("div",{className:(0,s.A)(`${e}__norating-container`,`${t}-product-rating__norating-container`),children:[(0,n.jsx)("div",{className:`${e}__norating`,role:"img",children:(0,n.jsx)("span",{style:o})}),(0,n.jsx)("span",{children:(0,r.__)("No Reviews","woocommerce")})]})},u=e=>{const{className:t,rating:o,reviews:c,parentClassName:i}=e,a=l(o),d=(0,r.sprintf)(/* translators: %f is referring to the average rating value */ /* translators: %f is referring to the average rating value */ (0,r.__)("Rated %f out of 5","woocommerce"),o),u={__html:(0,r.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,r._n)("Rated %1$s out of 5 based on %2$s customer rating","Rated %1$s out of 5 based on %2$s customer ratings",c,"woocommerce"),(0,r.sprintf)('<strong class="rating">%f</strong>',o),(0,r.sprintf)('<span class="rating">%d</span>',c))};return(0,n.jsx)("div",{className:(0,s.A)(`${t}__stars`,`${i}__product-rating__stars`),role:"img","aria-label":d,children:(0,n.jsx)("span",{style:a,dangerouslySetInnerHTML:u})})},p=e=>{const{className:t,reviews:o}=e,s=(0,r.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,r._n)("(%s customer review)","(%s customer reviews)",o,"woocommerce"),o);return(0,n.jsx)("span",{className:`${t}__reviews_count`,children:s})},m=e=>{const{className:t="wc-block-components-product-rating",showReviewCount:o,showMockedReviews:r,parentClassName:c="",rating:i,reviews:a,styleProps:l,textAlign:m}=e,g=(0,s.A)(l.className,t,{[`${c}__product-rating`]:c,[`has-text-align-${m}`]:m}),h=r&&(0,n.jsx)(d,{className:t,parentClassName:c}),w=a?(0,n.jsx)(u,{className:t,rating:i,reviews:a,parentClassName:c}):h,x=a&&o;return(0,n.jsx)("div",{className:g,style:l.style,children:(0,n.jsxs)("div",{className:`${t}__container`,children:[w,x?(0,n.jsx)(p,{className:t,reviews:a}):null]})})}},6070:(e,t,o)=>{"use strict";o.d(t,{Hw:()=>m,Vo:()=>i,XK:()=>n,iI:()=>u,r7:()=>s,sW:()=>c});var r=o(5703);const s=(0,r.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),c=s.pluginUrl+"assets/images/",n=s.pluginUrl+"assets/client/blocks/",i=(r.STORE_PAGES.shop,r.STORE_PAGES.checkout,r.STORE_PAGES.checkout,r.STORE_PAGES.privacy,r.STORE_PAGES.privacy,r.STORE_PAGES.terms,r.STORE_PAGES.terms,r.STORE_PAGES.cart,r.STORE_PAGES.cart?.permalink),a=(r.STORE_PAGES.myaccount?.permalink?r.STORE_PAGES.myaccount.permalink:(0,r.getSetting)("wpLoginUrl","/wp-login.php"),(0,r.getSetting)("localPickupEnabled",!1),(0,r.getSetting)("shippingMethodsExist",!1),(0,r.getSetting)("shippingEnabled",!0),(0,r.getSetting)("countries",{})),l=(0,r.getSetting)("countryData",{}),d={...Object.fromEntries(Object.keys(l).filter((e=>!0===l[e].allowBilling)).map((e=>[e,a[e]||""]))),...Object.fromEntries(Object.keys(l).filter((e=>!0===l[e].allowShipping)).map((e=>[e,a[e]||""])))},u=(Object.fromEntries(Object.keys(d).map((e=>[e,l[e].states||{}]))),Object.fromEntries(Object.keys(d).map((e=>[e,l[e].locale||{}])))),p={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]},m=(0,r.getSetting)("addressFieldsLocations",p).address;(0,r.getSetting)("addressFieldsLocations",p).contact,(0,r.getSetting)("addressFieldsLocations",p).order,(0,r.getSetting)("additionalOrderFields",{}),(0,r.getSetting)("additionalContactFields",{}),(0,r.getSetting)("additionalAddressFields",{})},6231:(e,t,o)=>{"use strict";o.d(t,{Q:()=>s});var r=o(5703);const s=()=>{const{experimentalWcRestApi:e}=(0,r.getSetting)("wcBlocksConfig",{experimentalWcRestApi:!1});return e}},8331:(e,t,o)=>{"use strict";o.d(t,{Hw:()=>r.Hw,QE:()=>s.Q,Vo:()=>r.Vo,XK:()=>r.XK,iI:()=>r.iI,r7:()=>r.r7,sW:()=>r.sW});var r=o(6070),s=o(6231)},2266:(e,t,o)=>{"use strict";o.d(t,{EF:()=>r,Ie:()=>n,UI:()=>c,ht:()=>i,j9:()=>s});const r="woocommerce/product-type-template-state",s="SWITCH_PRODUCT_TYPE",c="SET_PRODUCT_TYPES",n="REGISTER_LISTENER",i="UNREGISTER_LISTENER"},8207:(e,t,o)=>{"use strict";o.d(t,{M:()=>a});var r=o(7143),s=o(2266);const c=(0,o(7254).c)(),n={productTypes:{list:c,current:c[0]?.slug},listeners:[]},i={switchProductType:e=>({type:s.j9,current:e}),setProductTypes:e=>({type:s.UI,productTypes:e}),registerListener:e=>({type:s.Ie,listener:e}),unregisterListener:e=>({type:s.ht,listener:e})},a=(0,r.createReduxStore)(s.EF,{reducer:(e=n,t)=>{switch(t.type){case s.UI:return{...e,productTypes:{...e.productTypes,list:t.productTypes||[]}};case s.j9:return{...e,productTypes:{...e.productTypes,current:t.current}};case s.Ie:return{...e,listeners:[...e.listeners,t.listener||""]};case s.ht:return{...e,listeners:e.listeners.filter((e=>e!==t.listener))};default:return e}},actions:i,selectors:{getProductTypes:e=>e.productTypes.list,getCurrentProductType:e=>e.productTypes.list.find((t=>t.slug===e.productTypes.current)),getRegisteredListeners:e=>e.listeners}});(0,r.select)(s.EF)||(0,r.register)(a)},2281:(e,t,o)=>{"use strict";o.d(t,{A:()=>c});var r=o(7143),s=o(8207);function c(){const{productTypes:e,current:t,registeredListeners:o}=(0,r.useSelect)((e=>{const{getProductTypes:t,getCurrentProductType:o,getRegisteredListeners:r}=e(s.M);return{productTypes:t(),current:o(),registeredListeners:r()}}),[]),{switchProductType:c,registerListener:n,unregisterListener:i}=(0,r.useDispatch)(s.M);return{productTypes:e,current:t,set:c,registeredListeners:o,registerListener:n,unregisterListener:i}}},7254:(e,t,o)=>{"use strict";o.d(t,{c:()=>s});const r=(0,o(5703).getSetting)("productTypes",{});function s(){return Object.keys(r).map((e=>({slug:e,label:r[e]})))}},7316:()=>{},1189:()=>{},1986:()=>{},9556:()=>{},9835:()=>{},7545:()=>{},3081:()=>{},4053:()=>{},752:()=>{},4313:()=>{},4093:()=>{},1129:()=>{},3790:()=>{},649:()=>{},3608:()=>{},1784:()=>{},7578:()=>{},8714:()=>{},6854:()=>{},3320:()=>{},959:()=>{},8501:()=>{},7525:()=>{},4695:()=>{},9969:()=>{},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},4656:e=>{"use strict";e.exports=window.wc.blocksComponents},910:e=>{"use strict";e.exports=window.wc.priceFormat},7594:e=>{"use strict";e.exports=window.wc.wcBlocksData},415: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},9446:e=>{"use strict";e.exports=window.wp.wordcount},7746:e=>{"use strict";e.exports=JSON.parse('{"name":"woocommerce/product-image","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"}},"supports":{"interactivity":{"clientNavigation":true},"html":false,"__experimentalBorder":{"radius":true,"__experimentalSkipSerialization":true},"typography":{"fontSize":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"padding":true},"dimensions":{"aspectRatio":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-image"},"ancestor":["woocommerce/all-products","woocommerce/single-product","woocommerce/product-template","core/post-template"],"usesContext":["imageId","postId","query","queryId"],"keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}')},3925:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-title","version":"1.0.0","title":"Product Title","category":"woocommerce-product-elements","description":"Display the title of a product.","supports":{"html":false,"interactivity":{"clientNavigation":false},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true,"__experimentalTextTransform":true,"__experimentalFontFamily":true},"color":{"text":true,"background":true,"link":false,"gradients":true,"__experimentalSkipSerialization":true},"spacing":{"margin":true,"__experimentalSkipSerialization":true},"__experimentalSelector":".wc-block-components-product-title"},"textdomain":"woocommerce","attributes":{"headingLevel":{"type":"number","default":2},"showProductLink":{"type":"boolean","default":true},"linkTarget":{"type":"string"},"productId":{"type":"number","default":0},"align":{"type":"string"}},"ancestor":["woocommerce/all-products"]}')}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return c[e].call(o.exports,o,o.exports,i),o.exports}i.m=c,e=[],i.O=(t,o,r,s)=>{if(!o){var c=1/0;for(d=0;d<e.length;d++){for(var[o,r,s]=e[d],n=!0,a=0;a<o.length;a++)(!1&s||c>=s)&&Object.keys(i.O).every((e=>i.O[e](o[a])))?o.splice(a--,1):(n=!1,s<c&&(c=s));if(n){e.splice(d--,1);var l=r();void 0!==l&&(t=l)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[o,r,s]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.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 s=Object.create(null);i.r(s);var c={};t=t||[null,o({}),o([]),o(o)];for(var n=2&r&&e;"object"==typeof n&&!~t.indexOf(n);n=o(n))Object.getOwnPropertyNames(n).forEach((t=>c[t]=()=>e[t]));return c.default=()=>e,i.d(s,c),s},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,o)=>(i.f[o](e,t),t)),[])),i.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:"df5124dfa21ae95f6b99",462:"dbe142844072de177c7b",2105:"d92c3a074be89ba952d1",2388:"d74f2069624dae07b4c2",2724:"68c6a5abd5b457353eed",3895:"58e7ccf88f3a6b42fadc",4232:"c066235ed1ae7a69c1b2",4442:"e8a10a172a750d04f107",7409:"04cf4f54485de393ee40",8553:"50f738006badde9aa053",8578:"a949306fc89e03db24ad",8647:"7c7c74fa303f8fca8df1"}[e]),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},s="webpackWcBlocksMainJsonp:",i.l=(e,t,o,c)=>{if(r[e])r[e].push(t);else{var n,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==s+o){n=u;break}}n||(a=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,i.nc&&n.setAttribute("nonce",i.nc),n.setAttribute("data-webpack",s+o),n.src=e),r[e]=[t];var p=(t,o)=>{n.onerror=n.onload=null,clearTimeout(m);var s=r[e];if(delete r[e],n.parentNode&&n.parentNode.removeChild(n),s&&s.forEach((e=>e(o))),t)return t(o)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=p.bind(null,n.onerror),n.onload=p.bind(null,n.onload),a&&document.head.appendChild(n)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=1001,(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(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(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={345:0,462:0,1001:0,2388:0,2724:0,3895:0,4442:0,7409:0,8553:0,8578:0,8647:0};i.f.j=(t,o)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var s=new Promise(((o,s)=>r=e[t]=[o,s]));o.push(r[2]=s);var c=i.p+i.u(t),n=new Error;i.l(c,(o=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),c=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+c+")",n.name="ChunkLoadError",n.type=s,n.request=c,r[1](n)}}),"chunk-"+t,t)}},i.O.j=t=>0===e[t];var t=(t,o)=>{var r,s,[c,n,a]=o,l=0;if(c.some((t=>0!==e[t]))){for(r in n)i.o(n,r)&&(i.m[r]=n[r]);if(a)var d=a(i)}for(t&&t(o);l<c.length;l++)s=c[l],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return i.O(d)},o=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=i.O(void 0,[94],(()=>i(2050)));a=i.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["all-products"]=a})();