(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[3],{113:function(o,t,l){"use strict";l.d(t,"a",(function(){return y}));var e=l(4),n=l.n(e),r=l(25),s=l(71);var c=l(308),a=l(145);function i(o={}){const t={};return Object(a.getCSSRules)(o,{selector:""}).forEach(o=>{t[o.key]=o.value}),t}function u(o,t){return o&&t?`has-${Object(c.a)(t)}-${o}`:""}function d(o){var t;const l=(null===(t=o.style)||void 0===t?void 0:t.border)||{};return{className:function(o){var t;const{borderColor:l,style:e}=o,r=l?u("border-color",l):"";return n()({"has-border-color":!!l||!(null==e||null===(t=e.border)||void 0===t||!t.color),[r]:!!r})}(o),style:i({border:l})}}const y=o=>{const t=(o=>{const t=Object(r.b)(o)?o:{style:{}};let l=t.style;return Object(s.a)(l)&&(l=JSON.parse(l)||{}),Object(r.b)(l)||(l={}),{...t,style:l}})(o),l=function(o){var t,l,e,s,c,a,d;const{backgroundColor:y,textColor:v,gradient:f,style:b}=o,g=u("background-color",y),m=u("color",v),p=function(o){if(o)return`has-${o}-gradient-background`}(f),h=p||(null==b||null===(t=b.color)||void 0===t?void 0:t.gradient);return{className:n()(m,p,{[g]:!h&&!!g,"has-text-color":v||(null==b||null===(l=b.color)||void 0===l?void 0:l.text),"has-background":y||(null==b||null===(e=b.color)||void 0===e?void 0:e.background)||f||(null==b||null===(s=b.color)||void 0===s?void 0:s.gradient),"has-link-color":Object(r.b)(null==b||null===(c=b.elements)||void 0===c?void 0:c.link)?null==b||null===(a=b.elements)||void 0===a||null===(d=a.link)||void 0===d?void 0:d.color:void 0}),style:i({color:(null==b?void 0:b.color)||{}})}}(t),e=d(t),c=function(o){var t;return{className:void 0,style:i({spacing:(null===(t=o.style)||void 0===t?void 0:t.spacing)||{}})}}(t),a=(o=>{const t=Object(r.b)(o.style.typography)?o.style.typography:{},l=Object(s.a)(t.fontFamily)?t.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:l,style:{fontSize:o.fontSize?`var(--wp--preset--font-size--${o.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}})(t);return{className:n()(a.className,l.className,e.className,c.className),style:{...a.style,...l.style,...e.style,...c.style}}}}}]);