(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[33],{149:function(e,t,c){"use strict";c.r(t),c.d(t,"Block",(function(){return d}));var a=c(0),n=c(1),r=c(4),s=c.n(r),l=c(30),o=c(25),u=c(86),b=c(53);c(264);const d=e=>{const{className:t,align:c}=e,r=Object(u.a)(e),{parentClassName:b}=Object(o.useInnerBlockLayoutContext)(),{product:d}=Object(o.useProductDataContext)();if(!d.id||!d.on_sale)return null;const p="string"==typeof c?"wc-block-components-product-sale-badge--align-"+c:"";return Object(a.createElement)("div",{className:s()("wc-block-components-product-sale-badge",t,p,{[b+"__product-onsale"]:b},r.className),style:r.style},Object(a.createElement)(l.a,{label:Object(n.__)("Sale","woocommerce"),screenReaderLabel:Object(n.__)("Product on sale","woocommerce")}))};t.default=Object(b.withProductDataContext)(d)},264:function(e,t){},30:function(e,t,c){"use strict";var a=c(0),n=c(4),r=c.n(n);t.a=e=>{let t,{label:c,screenReaderLabel:n,wrapperElement:s,wrapperProps:l={}}=e;const o=null!=c,u=null!=n;return!o&&u?(t=s||"span",l={...l,className:r()(l.className,"screen-reader-text")},Object(a.createElement)(t,l,n)):(t=s||a.Fragment,o&&u&&c!==n?Object(a.createElement)(t,l,Object(a.createElement)("span",{"aria-hidden":"true"},c),Object(a.createElement)("span",{className:"screen-reader-text"},n)):Object(a.createElement)(t,l,c))}}}]);