(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[75],{111:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var c=n(26),o=n(20);const s=t=>Object(c.a)(t)?JSON.parse(t)||{}:Object(o.a)(t)?t:{}},146:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var c=n(55),o=n(20),s=n(111);const a=t=>{const e=Object(o.a)(t)?t:{},n=Object(s.a)(e.style);return Object(c.__experimentalUseBorderProps)({...e,style:n})}},20:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return o}));const c=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function o(t,e){return c(t)&&e in t}},280:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var c=n(55),o=n(20),s=n(111);const a=t=>{const e=Object(o.a)(t)?t:{},n=Object(s.a)(e.style);return Object(c.__experimentalUseColorProps)({...e,style:n})}},286:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var c=n(20),o=n(26),s=n(111);const a=t=>{const e=Object(c.a)(t)?t:{},n=Object(s.a)(e.style),a=Object(c.a)(n.typography)?n.typography:{},r=Object(o.a)(a.fontFamily)?a.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:r,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight,letterSpacing:a.letterSpacing,lineHeight:a.lineHeight,textDecoration:a.textDecoration,textTransform:a.textTransform}}}},297:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var c=n(55),o=n(20),s=n(111);const a=t=>{if("function"!=typeof c.__experimentalGetSpacingClassesAndStyles)return{style:{}};const e=Object(o.a)(t)?t:{},n=Object(s.a)(e.style);return Object(c.__experimentalGetSpacingClassesAndStyles)({...e,style:n})}},330:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return y}));var c=n(0),o=n(1),s=n(5),a=n.n(s),r=n(21),l=n(58),i=n(146),u=n(280),b=n(286),f=n(297),p=n(142);n(331);const y=t=>{const{className:e,align:n}=t,{parentClassName:s}=Object(l.useInnerBlockLayoutContext)(),{product:p}=Object(l.useProductDataContext)(),y=Object(i.a)(t),O=Object(u.a)(t),d=Object(b.a)(t),j=Object(f.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(c.createElement)("div",{className:a()("wc-block-components-product-sale-badge",e,m,{[s+"__product-onsale"]:s},O.className,y.className,d.className),style:{...O.style,...y.style,...d.style,...j.style}},Object(c.createElement)(r.a,{label:Object(o.__)("Sale","woocommerce"),screenReaderLabel:Object(o.__)("Product on sale","woocommerce")}))};e.default=Object(p.withProductDataContext)(y)},331:function(t,e){}}]);