(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[32],{277:function(o,c,t){"use strict";t.r(c);var e=t(0),n=t(1),s=t(4),r=t.n(s),a=t(29),b=t(56),i=(t(341),t(42));c.default=Object(b.withProductDataContext)(o=>{const{className:c}=o,{parentClassName:t}=Object(a.useInnerBlockLayoutContext)(),{product:s}=Object(a.useProductDataContext)(),b=Object(i.b)(o),k=Object(i.d)(o);if(!s.id||!s.is_purchasable)return null;const l=!!s.is_in_stock,u=s.low_stock_remaining,d=s.is_on_backorder;return Object(e.createElement)("div",{className:r()(c,b.className,"wc-block-components-product-stock-indicator",{[t+"__stock-indicator"]:t,"wc-block-components-product-stock-indicator--in-stock":l,"wc-block-components-product-stock-indicator--out-of-stock":!l,"wc-block-components-product-stock-indicator--low-stock":!!u,"wc-block-components-product-stock-indicator--available-on-backorder":!!d}),style:{...b.style,...k.style}},u?(o=>Object(n.sprintf)(
/* translators: %d stock amount (number of items in stock for product) */
Object(n.__)("%d left in stock","woocommerce"),o))(u):((o,c)=>c?Object(n.__)("Available on backorder","woocommerce"):o?Object(n.__)("In Stock","woocommerce"):Object(n.__)("Out of Stock","woocommerce"))(l,d))})},341:function(o,c){}}]);