(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[74],{115:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n(53);var r=n(37);const c=()=>r.n>1},116:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(23),c=n(20);const a=t=>Object(r.a)(t)?JSON.parse(t)||{}:Object(c.a)(t)?t:{}},151:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(66),c=n(115),a=n(20),s=n(116);const o=t=>{if(!Object(c.a)())return{className:"",style:{}};const e=Object(a.a)(t)?t:{},n=Object(s.a)(e.style);return Object(r.__experimentalUseBorderProps)({...e,style:n})}},20: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}},21: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))}},287:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(66),c=n(115),a=n(20),s=n(116);const o=t=>{if(!Object(c.a)())return{className:"",style:{}};const e=Object(a.a)(t)?t:{},n=Object(s.a)(e.style);return Object(r.__experimentalUseColorProps)({...e,style:n})}},291:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(20),c=n(23),a=n(116);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}}}},308:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(66),c=n(115),a=n(20),s=n(116);const o=t=>{if(!Object(c.a)())return{style:{}};const e=Object(a.a)(t)?t:{},n=Object(s.a)(e.style);return Object(r.__experimentalGetSpacingClassesAndStyles)({...e,style:n})}},328:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return j}));var r=n(0),c=n(1),a=n(6),s=n.n(a),o=n(21),l=n(52),i=n(151),u=n(287),f=n(291),b=n(308),p=n(137);n(329);const j=t=>{const{className:e,align:n}=t,{parentClassName:a}=Object(l.useInnerBlockLayoutContext)(),{product:p}=Object(l.useProductDataContext)(),j=Object(i.a)(t),O=Object(u.a)(t),y=Object(f.a)(t),d=Object(b.a)(t);if(!p.id||!p.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},O.className,j.className,y.className),style:{...O.style,...j.style,...y.style,...d.style}},Object(r.createElement)(o.a,{label:Object(c.__)("Sale","woocommerce"),screenReaderLabel:Object(c.__)("Product on sale","woocommerce")}))};e.default=Object(p.withProductDataContext)(j)},329: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)}()}}]);