(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[73],{19: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))}},20: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}},216:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n(100);var c=n(46);const r=()=>c.m>1},217:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(30),r=n(20);const a=e=>Object(c.a)(e)?JSON.parse(e)||{}:Object(r.a)(e)?e:{}},277:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(111),r=n(216),a=n(20),s=n(217);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})}},292:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(111),r=n(216),a=n(20),s=n(217);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})}},301:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(20),r=n(217);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}}}},319:function(e,t,n){"use strict";n.r(t),n.d(t,"Block",(function(){return O}));var c=n(0),r=n(1),a=n(4),s=n.n(a),o=n(19),l=n(50),u=n(277),i=n(292),b=n(301),f=n(326),p=n(134);n(320);const O=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")}))};t.default=Object(p.withProductDataContext)(O)},320:function(e,t){},326:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(111),r=n(216),a=n(20),s=n(217);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})}}}]);