(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[76],{115:function(t,o,n){"use strict";n.d(o,"a",(function(){return c})),n(53);var e=n(37);const c=()=>e.n>1},116:function(t,o,n){"use strict";n.d(o,"a",(function(){return r}));var e=n(23),c=n(20);const r=t=>Object(e.a)(t)?JSON.parse(t)||{}:Object(c.a)(t)?t:{}},20:function(t,o,n){"use strict";n.d(o,"a",(function(){return e})),n.d(o,"b",(function(){return c}));const e=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function c(t,o){return e(t)&&o in t}},287:function(t,o,n){"use strict";n.d(o,"a",(function(){return i}));var e=n(66),c=n(115),r=n(20),s=n(116);const i=t=>{if(!Object(c.a)())return{className:"",style:{}};const o=Object(r.a)(t)?t:{},n=Object(s.a)(o.style);return Object(e.__experimentalUseColorProps)({...o,style:n})}},291:function(t,o,n){"use strict";n.d(o,"a",(function(){return s}));var e=n(20),c=n(23),r=n(116);const s=t=>{const o=Object(e.a)(t)?t:{},n=Object(r.a)(o.style),s=Object(e.a)(n.typography)?n.typography:{},i=Object(c.a)(s.fontFamily)?s.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:i,style:{fontSize:o.fontSize?`var(--wp--preset--font-size--${o.fontSize})`:s.fontSize,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,lineHeight:s.lineHeight,textDecoration:s.textDecoration,textTransform:s.textTransform}}}},421:function(t,o){},468:function(t,o,n){"use strict";n.r(o),n.d(o,"Block",(function(){return f}));var e=n(0),c=n(1),r=n(6),s=n.n(r),i=n(52),a=n(287),u=n(291),l=n(137);n(421);const f=t=>{const{className:o}=t,{parentClassName:n}=Object(i.useInnerBlockLayoutContext)(),{product:r}=Object(i.useProductDataContext)(),l=Object(a.a)(t),f=Object(u.a)(t);if(!r.id||!r.is_purchasable)return null;const p=!!r.is_in_stock,b=r.low_stock_remaining,d=r.is_on_backorder;return Object(e.createElement)("div",{className:s()(o,l.className,"wc-block-components-product-stock-indicator",{[n+"__stock-indicator"]:n,"wc-block-components-product-stock-indicator--in-stock":p,"wc-block-components-product-stock-indicator--out-of-stock":!p,"wc-block-components-product-stock-indicator--low-stock":!!b,"wc-block-components-product-stock-indicator--available-on-backorder":!!d}),style:{...l.style,...f.style}},b?(t=>Object(c.sprintf)(
/* translators: %d stock amount (number of items in stock for product) */
Object(c.__)("%d left in stock","woocommerce"),t))(b):((t,o)=>o?Object(c.__)("Available on backorder","woocommerce"):t?Object(c.__)("In Stock","woocommerce"):Object(c.__)("Out of Stock","woocommerce"))(p,d))};o.default=Object(l.withProductDataContext)(f)},6:function(t,o,n){var e;!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var t=[],o=0;o<arguments.length;o++){var e=arguments[o];if(e){var r=typeof e;if("string"===r||"number"===r)t.push(e);else if(Array.isArray(e)){if(e.length){var s=c.apply(null,e);s&&t.push(s)}}else if("object"===r)if(e.toString===Object.prototype.toString)for(var i in e)n.call(e,i)&&e[i]&&t.push(i);else t.push(e.toString())}}return t.join(" ")}t.exports?(c.default=c,t.exports=c):void 0===(e=function(){return c}.apply(o,[]))||(t.exports=e)}()}}]);