(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[5445],{4304:(o,t,c)=>{"use strict";c.r(t),c.d(t,{Block:()=>u,default:()=>d});var e=c(9196),n=c(5736),l=c(7608),s=c.n(l),r=c(2864),i=c(947),a=c(721);c(8094);const u=o=>{const{className:t}=o,c=(0,i.F)(o),{parentClassName:l}=(0,r.useInnerBlockLayoutContext)(),{product:a}=(0,r.useProductDataContext)();if(!a.id)return null;const u=!!a.is_in_stock,d=a.low_stock_remaining,k=a.is_on_backorder;return(0,e.createElement)("div",{className:s()(t,{[`${l}__stock-indicator`]:l,"wc-block-components-product-stock-indicator--in-stock":u,"wc-block-components-product-stock-indicator--out-of-stock":!u,"wc-block-components-product-stock-indicator--low-stock":!!d,"wc-block-components-product-stock-indicator--available-on-backorder":!!k,...o.isDescendantOfAllProducts&&{[c.className]:c.className,"wc-block-components-product-stock-indicator wp-block-woocommerce-product-stock-indicator":!0}}),...o.isDescendantOfAllProducts&&{style:c.style}},(({isInStock:o=!1,isLowStock:t=!1,lowStockAmount:c=null,isOnBackorder:e=!1})=>t&&null!==c?(0,n.sprintf)(/* translators: %d stock amount (number of items in stock for product) */ /* translators: %d stock amount (number of items in stock for product) */
(0,n.__)("%d left in stock","woocommerce"),c):e?(0,n.__)("Available on backorder","woocommerce"):o?(0,n.__)("In stock","woocommerce"):(0,n.__)("Out of stock","woocommerce"))({isInStock:u,isLowStock:!!d,lowStockAmount:d,isOnBackorder:k}))},d=(0,a.withProductDataContext)(u)},947:(o,t,c)=>{"use strict";c.d(t,{F:()=>i});var e=c(7608),n=c.n(e),l=c(6946),s=c(3392),r=c(172);const i=o=>{const t=(o=>{const t=(0,l.isObject)(o)?o:{style:{}};let c=t.style;return(0,l.isString)(c)&&(c=JSON.parse(c)||{}),(0,l.isObject)(c)||(c={}),{...t,style:c}})(o),c=(0,r.vc)(t),e=(0,r.l8)(t),i=(0,r.su)(t),a=(0,s.f)(t);return{className:n()(a.className,c.className,e.className,i.className),style:{...a.style,...c.style,...e.style,...i.style}}}},3392:(o,t,c)=>{"use strict";c.d(t,{f:()=>n});var e=c(6946);const n=o=>{const t=(0,e.isObject)(o.style.typography)?o.style.typography:{},c=(0,e.isString)(t.fontFamily)?t.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:c,style:{fontSize:o.fontSize?`var(--wp--preset--font-size--${o.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},172:(o,t,c)=>{"use strict";c.d(t,{l8:()=>d,su:()=>k,vc:()=>u});var e=c(7608),n=c.n(e),l=c(7427),s=c(2289),r=c(6946);function i(o={}){const t={};return(0,s.getCSSRules)(o,{selector:""}).forEach((o=>{t[o.key]=o.value})),t}function a(o,t){return o&&t?`has-${(0,l.o)(t)}-${o}`:""}function u(o){var t,c,e,l,s,u,d;const{backgroundColor:k,textColor:m,gradient:f,style:v}=o,p=a("background-color",k),y=a("color",m),b=function(o){if(o)return`has-${o}-gradient-background`}(f),g=b||(null==v||null===(t=v.color)||void 0===t?void 0:t.gradient);return{className:n()(y,b,{[p]:!g&&!!p,"has-text-color":m||(null==v||null===(c=v.color)||void 0===c?void 0:c.text),"has-background":k||(null==v||null===(e=v.color)||void 0===e?void 0:e.background)||f||(null==v||null===(l=v.color)||void 0===l?void 0:l.gradient),"has-link-color":(0,r.isObject)(null==v||null===(s=v.elements)||void 0===s?void 0:s.link)?null==v||null===(u=v.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:i({color:(null==v?void 0:v.color)||{}})}}function d(o){var t;const c=(null===(t=o.style)||void 0===t?void 0:t.border)||{};return{className:function(o){var t;const{borderColor:c,style:e}=o,l=c?a("border-color",c):"";return n()({"has-border-color":!!c||!(null==e||null===(t=e.border)||void 0===t||!t.color),[l]:!!l})}(o),style:i({border:c})}}function k(o){var t;return{className:void 0,style:i({spacing:(null===(t=o.style)||void 0===t?void 0:t.spacing)||{}})}}},8094:()=>{}}]);