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