(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[64],{125:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(45),r=n(18);const a=e=>Object(c.a)(e)?JSON.parse(e)||{}:Object(r.a)(e)?e:{}},18:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return r}));const c=e=>!(e=>null===e)(e)&&e instanceof Object&&e.constructor===Object;function r(e,t){return c(e)&&t in e}},20:function(e,t,n){"use strict";var c=n(0),r=n(4),a=n.n(r);t.a=e=>{let t,{label:n,screenReaderLabel:r,wrapperElement:s,wrapperProps:o={}}=e;const l=null!=n,u=null!=r;return!l&&u?(t=s||"span",o={...o,className:a()(o.className,"screen-reader-text")},Object(c.createElement)(t,o,r)):(t=s||c.Fragment,l&&u&&n!==r?Object(c.createElement)(t,o,Object(c.createElement)("span",{"aria-hidden":"true"},n),Object(c.createElement)("span",{className:"screen-reader-text"},r)):Object(c.createElement)(t,o,n))}},204:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n(106);var c=n(48);const r=()=>c.m>1},255:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(18),r=n(125);const a=e=>{const t=Object(c.a)(e)?e:{},n=Object(r.a)(t.style),a=Object(c.a)(n.typography)?n.typography:{};return{style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:a.fontSize,lineHeight:a.lineHeight,fontWeight:a.fontWeight,textTransform:a.textTransform,fontFamily:t.fontFamily}}}},257:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(119),r=n(204),a=n(18),s=n(125);const o=e=>{if(!Object(r.a)())return{className:"",style:{}};const t=Object(a.a)(e)?e:{},n=Object(s.a)(t.style);return Object(c.__experimentalUseBorderProps)({...t,style:n})}},276:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(119),r=n(204),a=n(18),s=n(125);const o=e=>{if(!Object(r.a)())return{className:"",style:{}};const t=Object(a.a)(e)?e:{},n=Object(s.a)(t.style);return Object(c.__experimentalUseColorProps)({...t,style:n})}},305:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(119),r=n(204),a=n(18),s=n(125);const o=e=>{if(!Object(r.a)()||"function"!=typeof c.__experimentalGetSpacingClassesAndStyles)return{style:{}};const t=Object(a.a)(e)?e:{},n=Object(s.a)(t.style);return Object(c.__experimentalGetSpacingClassesAndStyles)({...t,style:n})}},309:function(e,t){},327:function(e,t,n){"use strict";n.r(t);var c=n(0),r=n(1),a=n(4),s=n.n(a),o=n(20),l=n(47),u=n(257),i=n(276),b=n(255),f=n(305),p=n(123);n(309),t.default=Object(p.withProductDataContext)(e=>{const{className:t,align:n}=e,{parentClassName:a}=Object(l.useInnerBlockLayoutContext)(),{product:p}=Object(l.useProductDataContext)(),O=Object(u.a)(e),j=Object(i.a)(e),d=Object(b.a)(e),m=Object(f.a)(e);if(!p.id||!p.on_sale)return null;const y="string"==typeof n?"wc-block-components-product-sale-badge--align-"+n:"";return Object(c.createElement)("div",{className:s()("wc-block-components-product-sale-badge",t,y,{[a+"__product-onsale"]:a},j.className,O.className),style:{...j.style,...O.style,...d.style,...m.style}},Object(c.createElement)(o.a,{label:Object(r.__)("Sale","woocommerce"),screenReaderLabel:Object(r.__)("Product on sale","woocommerce")}))})}}]);