(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[83,79],{19:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var o=n(37);const r=t=>!Object(o.a)(t)&&t instanceof Object&&t.constructor===Object;function c(t,e){return r(t)&&e in t}},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>"string"==typeof t},287:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o=function(){return o=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},288:function(t,e,n){"use strict";function o(t){return t.toLowerCase()}n.d(e,"a",(function(){return l}));var r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],c=/[^A-Z0-9]+/gi;function l(t,e){void 0===e&&(e={});for(var n=e.splitRegexp,l=void 0===n?r:n,s=e.stripRegexp,i=void 0===s?c:s,u=e.transform,d=void 0===u?o:u,f=e.delimiter,b=void 0===f?" ":f,p=a(a(t,l,"$1\0$2"),i,"\0"),v=0,g=p.length;"\0"===p.charAt(v);)v++;for(;"\0"===p.charAt(g-1);)g--;return p.slice(v,g).split("\0").map(d).join(b)}function a(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce((function(t,e){return t.replace(e,n)}),t)}},291:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(287),r=n(288);function c(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),Object(r.a)(t,Object(o.a)({delimiter:"."},e))}(t,Object(o.a)({delimiter:"-"},e))}},293:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(4),r=n.n(o),c=n(19),l=n(28),a=n(291),s=n(131);function i(t={}){const e={};return Object(s.getCSSRules)(t,{selector:""}).forEach((t=>{e[t.key]=t.value})),e}function u(t,e){return t&&e?`has-${Object(a.a)(e)}-${t}`:""}const d=t=>{const e=(t=>{const e=Object(c.a)(t)?t:{style:{}};let n=e.style;return Object(l.a)(n)&&(n=JSON.parse(n)||{}),Object(c.a)(n)||(n={}),{...e,style:n}})(t),n=function(t){var e,n,o,l,a,s,d;const{backgroundColor:f,textColor:b,gradient:p,style:v}=t,g=u("background-color",f),y=u("color",b),m=function(t){if(t)return`has-${t}-gradient-background`}(p),O=m||(null==v||null===(e=v.color)||void 0===e?void 0:e.gradient);return{className:r()(y,m,{[g]:!O&&!!g,"has-text-color":b||(null==v||null===(n=v.color)||void 0===n?void 0:n.text),"has-background":f||(null==v||null===(o=v.color)||void 0===o?void 0:o.background)||p||(null==v||null===(l=v.color)||void 0===l?void 0:l.gradient),"has-link-color":Object(c.a)(null==v||null===(a=v.elements)||void 0===a?void 0:a.link)?null==v||null===(s=v.elements)||void 0===s||null===(d=s.link)||void 0===d?void 0:d.color:void 0}),style:i({color:(null==v?void 0:v.color)||{}})}}(e),o=function(t){var e;const n=(null===(e=t.style)||void 0===e?void 0:e.border)||{};return{className:function(t){var e;const{borderColor:n,style:o}=t,c=n?u("border-color",n):"";return r()({"has-border-color":!!n||!(null==o||null===(e=o.border)||void 0===e||!e.color),[c]:!!c})}(t),style:i({border:n})}}(e),a=function(t){var e;return{className:void 0,style:i({spacing:(null===(e=t.style)||void 0===e?void 0:e.spacing)||{}})}}(e),s=(t=>{const e=Object(c.a)(t.style.typography)?t.style.typography:{},n=Object(l.a)(e.fontFamily)?e.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:n,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,lineHeight:e.lineHeight,textDecoration:e.textDecoration,textTransform:e.textTransform}}})(e);return{className:r()(s.className,n.className,o.className,a.className),style:{...s.style,...n.style,...o.style,...a.style}}}},343:function(t,e,n){"use strict";n.r(e),n.d(e,"Block",(function(){return d}));var o=n(0),r=n(1),c=n(4),l=n.n(c),a=n(18),s=n(59),i=n(293),u=n(144);n(344);const d=t=>{const{className:e,align:n}=t,c=Object(i.a)(t),{parentClassName:u}=Object(s.useInnerBlockLayoutContext)(),{product:d}=Object(s.useProductDataContext)();if(!(d.id&&d.on_sale||t.isDescendentOfSingleProductTemplate))return null;const f="string"==typeof n?`wc-block-components-product-sale-badge--align-${n}`:"";return Object(o.createElement)("div",{className:l()("wc-block-components-product-sale-badge",e,f,{[`${u}__product-onsale`]:u},c.className),style:c.style},Object(o.createElement)(a.a,{label:Object(r.__)("Sale","woocommerce"),screenReaderLabel:Object(r.__)("Product on sale","woocommerce")}))};e.default=Object(u.withProductDataContext)(d)},344:function(t,e){},37:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));const o=t=>null===t}}]);