(self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[]).push([[4442],{6809:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Block:()=>u,default:()=>d});var l=o(1609),n=o(7723),s=o(851),r=o(4656),a=o(2796),c=o(3566),i=o(1616);o(6007);const u=e=>{const{className:t,align:o}=e,i=(0,c.p)(e),{parentClassName:u}=(0,a.useInnerBlockLayoutContext)(),{product:d}=(0,a.useProductDataContext)();if(!(d.id&&d.on_sale||e.isDescendentOfSingleProductTemplate))return null;const f="string"==typeof o?`wc-block-components-product-sale-badge--align-${o}`:"";return(0,l.createElement)("div",{className:(0,s.A)("wc-block-components-product-sale-badge",t,f,{[`${u}__product-onsale`]:u},i.className),style:i.style},(0,l.createElement)(r.Label,{label:(0,n.__)("Sale","woocommerce"),screenReaderLabel:(0,n.__)("Product on sale","woocommerce")}))},d=(0,i.withProductDataContext)(u)},3566:(e,t,o)=>{"use strict";o.d(t,{p:()=>a});var l=o(851),n=o(3993),s=o(92),r=o(6032);const a=e=>{const t=(e=>{const t=(0,n.isObject)(e)?e:{style:{}};let o=t.style;return(0,n.isString)(o)&&(o=JSON.parse(o)||{}),(0,n.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,r.BK)(t),a=(0,r.aR)(t),c=(0,r.fo)(t),i=(0,s.x)(t);return{className:(0,l.A)(i.className,o.className,a.className,c.className),style:{...i.style,...o.style,...a.style,...c.style}}}},92:(e,t,o)=>{"use strict";o.d(t,{x:()=>n});var l=o(3993);const n=e=>{const t=(0,l.isObject)(e.style.typography)?e.style.typography:{},o=(0,l.isString)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:o,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}}},6032:(e,t,o)=>{"use strict";o.d(t,{BK:()=>i,aR:()=>u,fo:()=>d});var l=o(851),n=o(1194),s=o(9786),r=o(3993);function a(e={}){const t={};return(0,s.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function c(e,t){return e&&t?`has-${(0,n.c)(t)}-${e}`:""}function i(e){var t,o,n,s,i,u,d;const{backgroundColor:f,textColor:y,gradient:v,style:m}=e,p=c("background-color",f),g=c("color",y),b=function(e){if(e)return`has-${e}-gradient-background`}(v),k=b||(null==m||null===(t=m.color)||void 0===t?void 0:t.gradient);return{className:(0,l.A)(g,b,{[p]:!k&&!!p,"has-text-color":y||(null==m||null===(o=m.color)||void 0===o?void 0:o.text),"has-background":f||(null==m||null===(n=m.color)||void 0===n?void 0:n.background)||v||(null==m||null===(s=m.color)||void 0===s?void 0:s.gradient),"has-link-color":(0,r.isObject)(null==m||null===(i=m.elements)||void 0===i?void 0:i.link)?null==m||null===(u=m.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==m?void 0:m.color)||{}})}}function u(e){var t;const o=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:o,style:n}=e,s=o?c("border-color",o):"";return(0,l.A)({"has-border-color":!!o||!(null==n||null===(t=n.border)||void 0===t||!t.color),[s]:!!s})}(e),style:a({border:o})}}function d(e){var t;return{className:void 0,style:a({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},6007:()=>{}}]);