(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[74],{113:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(24),c=n(22);const a=t=>Object(r.a)(t)?JSON.parse(t)||{}:Object(c.a)(t)?t:{}},150:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(64),c=n(22),a=n(113);const s=t=>{const e=Object(c.a)(t)?t:{},n=Object(a.a)(e.style);return Object(r.__experimentalUseBorderProps)({...e,style:n})}},22:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));const r=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function c(t,e){return r(t)&&e in t}},23:function(t,e,n){"use strict";var r=n(0),c=n(6),a=n.n(c);e.a=t=>{let e,{label:n,screenReaderLabel:c,wrapperElement:s,wrapperProps:o={}}=t;const l=null!=n,i=null!=c;return!l&&i?(e=s||"span",o={...o,className:a()(o.className,"screen-reader-text")},Object(r.createElement)(e,o,c)):(e=s||r.Fragment,l&&i&&n!==c?Object(r.createElement)(e,o,Object(r.createElement)("span",{"aria-hidden":"true"},n),Object(r.createElement)("span",{className:"screen-reader-text"},c)):Object(r.createElement)(e,o,n))}},285:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(64),c=n(22),a=n(113);const s=t=>{const e=Object(c.a)(t)?t:{},n=Object(a.a)(e.style);return Object(r.__experimentalUseColorProps)({...e,style:n})}},289:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(22),c=n(24),a=n(113);const s=t=>{const e=Object(r.a)(t)?t:{},n=Object(a.a)(e.style),s=Object(r.a)(n.typography)?n.typography:{},o=Object(c.a)(s.fontFamily)?s.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:s.fontSize,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,lineHeight:s.lineHeight,textDecoration:s.textDecoration,textTransform:s.textTransform}}}},306:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(64),c=n(22),a=n(113);const s=t=>{if("function"!=typeof r.__experimentalGetSpacingClassesAndStyles)return{style:{}};const e=Object(c.a)(t)?t:{},n=Object(a.a)(e.style);return Object(r.__experimentalGetSpacingClassesAndStyles)({...e,style:n})}},326:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return y}));var r=n(0),c=n(1),a=n(6),s=n.n(a),o=n(23),l=n(51),i=n(150),u=n(285),f=n(289),p=n(306),b=n(133);n(327);const y=t=>{const{className:e,align:n}=t,{parentClassName:a}=Object(l.useInnerBlockLayoutContext)(),{product:b}=Object(l.useProductDataContext)(),y=Object(i.a)(t),j=Object(u.a)(t),O=Object(f.a)(t),d=Object(p.a)(t);if(!b.id||!b.on_sale)return null;const m="string"==typeof n?"wc-block-components-product-sale-badge--align-"+n:"";return Object(r.createElement)("div",{className:s()("wc-block-components-product-sale-badge",e,m,{[a+"__product-onsale"]:a},j.className,y.className,O.className),style:{...j.style,...y.style,...O.style,...d.style}},Object(r.createElement)(o.a,{label:Object(c.__)("Sale","woocommerce"),screenReaderLabel:Object(c.__)("Product on sale","woocommerce")}))};e.default=Object(b.withProductDataContext)(y)},327:function(t,e){},6:function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function c(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var s=c.apply(null,r);s&&t.push(s)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var o in r)n.call(r,o)&&r[o]&&t.push(o);else t.push(r.toString())}}return t.join(" ")}t.exports?(c.default=c,t.exports=c):void 0===(r=function(){return c}.apply(e,[]))||(t.exports=r)}()}}]);