(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[77,75],{25:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r}));const o=t=>!(t=>null===t)(t)&&t instanceof Object&&t.constructor===Object;function r(t,e){return o(t)&&e in t}},252: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}).apply(this,arguments)};Object.create,Object.create},253: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,i=e.stripRegexp,s=void 0===i?c:i,u=e.transform,d=void 0===u?o:u,f=e.delimiter,b=void 0===f?" ":f,v=a(a(t,l,"$1\0$2"),s,"\0"),p=0,g=v.length;"\0"===v.charAt(p);)p++;for(;"\0"===v.charAt(g-1);)g--;return v.slice(p,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)}},263:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(252),r=n(253);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))}},264:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var o=n(6),r=n.n(o),c=n(25),l=n(35);const a=t=>Object(l.a)(t)?JSON.parse(t)||{}:Object(c.a)(t)?t:{};var i=n(263),s=n(99);function u(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e={};return Object(s.getCSSRules)(t,{selector:""}).forEach(t=>{e[t.key]=t.value}),e}function d(t,e){return t&&e?`has-${Object(i.a)(e)}-${t}`:""}const f=t=>{const e=Object(c.a)(t)?t:{style:{}},n=a(e.style),o=function(t){var e,n,o,l,a,i,s;const{backgroundColor:f,textColor:b,gradient:v,style:p}=t,g=d("background-color",f),y=d("color",b),m=function(t){if(t)return`has-${t}-gradient-background`}(v),O=m||(null==p||null===(e=p.color)||void 0===e?void 0:e.gradient);return{className:r()(y,m,{[g]:!O&&!!g,"has-text-color":b||(null==p||null===(n=p.color)||void 0===n?void 0:n.text),"has-background":f||(null==p||null===(o=p.color)||void 0===o?void 0:o.background)||v||(null==p||null===(l=p.color)||void 0===l?void 0:l.gradient),"has-link-color":Object(c.a)(null==p||null===(a=p.elements)||void 0===a?void 0:a.link)?null==p||null===(i=p.elements)||void 0===i||null===(s=i.link)||void 0===s?void 0:s.color:void 0})||void 0,style:u({color:(null==p?void 0:p.color)||{}})}}({...e,style:n}),i=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?d("border-color",n):"";return r()({"has-border-color":n||(null==o||null===(e=o.border)||void 0===e?void 0:e.color),borderColorClass:c})}(t)||void 0,style:u({border:n})}}({...e,style:n}),s=function(t){const{style:e}=t;return{className:void 0,style:u({spacing:(null==e?void 0:e.spacing)||{}})}}({...e,style:n}),f=(t=>{const e=a(t.style),n=Object(c.a)(e.typography)?e.typography:{},o=Object(l.a)(n.fontFamily)?n.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:o,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:n.fontSize,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,lineHeight:n.lineHeight,textDecoration:n.textDecoration,textTransform:n.textTransform}}})(e);return{className:r()(f.className,o.className,i.className,s.className),style:{...f.style,...o.style,...i.style,...s.style}}}},313: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(6),l=n.n(c),a=n(24),i=n(46),s=n(264),u=n(112);n(314);const d=t=>{const{className:e,align:n}=t,c=Object(s.a)(t),{parentClassName:u}=Object(i.useInnerBlockLayoutContext)(),{product:d}=Object(i.useProductDataContext)();if(!d.id||!d.on_sale)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)},314:function(t,e){}}]);