(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[3],{257:function(e,t,r){"use strict";r.r(t);var c=r(7),n=r.n(c),a=r(0),o=(r(2),r(1)),s=r(8),l=r.n(s),p=r(46),u=r(42),b=r(71);r(529);t.default=Object(b.withProductDataContext)((function(e){var t=e.className,r=e.align,c=Object(u.useInnerBlockLayoutContext)().parentClassName,s=Object(u.useProductDataContext)().product;if(!s.id||!s.on_sale)return null;var b="string"==typeof r?"wc-block-components-product-sale-badge--align".concat(r):"";return Object(a.createElement)("div",{className:l()("wc-block-components-product-sale-badge",t,b,n()({},"".concat(c,"__product-onsale"),c))},Object(a.createElement)(p.a,{label:Object(o.__)("Sale",'woocommerce'),screenReaderLabel:Object(o.__)("Product on sale",'woocommerce')}))}))},46:function(e,t,r){"use strict";var c=r(7),n=r.n(c),a=r(0),o=(r(2),r(9)),s=r(8),l=r.n(s);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,c)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){var t,r=e.label,c=e.screenReaderLabel,n=e.wrapperElement,s=e.wrapperProps,p=null!=r,b=null!=c;return!p&&b?(t=n||"span",s=u(u({},s),{},{className:l()(s.className,"screen-reader-text")}),Object(a.createElement)(t,s,c)):(t=n||o.Fragment,p&&b&&r!==c?Object(a.createElement)(t,s,Object(a.createElement)("span",{"aria-hidden":"true"},r),Object(a.createElement)("span",{className:"screen-reader-text"},c)):Object(a.createElement)(t,s,r))};b.defaultProps={wrapperProps:{}},t.a=b},529:function(e,t){}}]);
