1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
|
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[262],{93611:(l,o,e)=>{e.d(o,{F:()=>i});var t=e(89814),n=e.n(t),r=e(57884),s=e(42646),a=e(11473),c=e(92661);const i=l=>{const o=(l=>{const o=(0,r.Kn)(l)?l:{style:{}};let e=o.style;return(0,s.H)(e)&&(e=JSON.parse(e)||{}),(0,r.Kn)(e)||(e={}),{...o,style:e}})(l),e=(0,c.vc)(o),t=(0,c.l8)(o),i=(0,c.su)(o),u=(0,a.f)(o);return{className:n()(u.className,e.className,t.className,i.className),style:{...u.style,...e.style,...t.style,...i.style}}}},11473:(l,o,e)=>{e.d(o,{f:()=>r});var t=e(57884),n=e(42646);const r=l=>{const o=(0,t.Kn)(l.style.typography)?l.style.typography:{},e=(0,n.H)(o.fontFamily)?o.fontFamily:"";return{className:l.fontFamily?`has-${l.fontFamily}-font-family`:e,style:{fontSize:l.fontSize?`var(--wp--preset--font-size--${l.fontSize})`:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,textDecoration:o.textDecoration,textTransform:o.textTransform}}}},92661:(l,o,e)=>{e.d(o,{l8:()=>d,su:()=>v,vc:()=>u});var t=e(89814),n=e.n(t),r=e(98448),s=e(92289),a=e(57884);function c(l={}){const o={};return(0,s.getCSSRules)(l,{selector:""}).forEach((l=>{o[l.key]=l.value})),o}function i(l,o){return l&&o?`has-${(0,r.o)(o)}-${l}`:""}function u(l){var o,e,t,r,s,u,d;const{backgroundColor:v,textColor:f,gradient:y,style:m}=l,g=i("background-color",v),p=i("color",f),h=function(l){if(l)return`has-${l}-gradient-background`}(y),k=h||(null==m||null===(o=m.color)||void 0===o?void 0:o.gradient);return{className:n()(p,h,{[g]:!k&&!!g,"has-text-color":f||(null==m||null===(e=m.color)||void 0===e?void 0:e.text),"has-background":v||(null==m||null===(t=m.color)||void 0===t?void 0:t.background)||y||(null==m||null===(r=m.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,a.Kn)(null==m||null===(s=m.elements)||void 0===s?void 0:s.link)?null==m||null===(u=m.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:c({color:(null==m?void 0:m.color)||{}})}}function d(l){var o;const e=(null===(o=l.style)||void 0===o?void 0:o.border)||{};return{className:function(l){var o;const{borderColor:e,style:t}=l,r=e?i("border-color",e):"";return n()({"has-border-color":!!e||!(null==t||null===(o=t.border)||void 0===o||!o.color),[r]:!!r})}(l),style:c({border:e})}}function v(l){var o;return{className:void 0,style:c({spacing:(null===(o=l.style)||void 0===o?void 0:o.spacing)||{}})}}},67906:(l,o,e)=>{e.r(o),e.d(o,{default:()=>c});var t=e(99196),n=e(93611),r=e(89814),s=e.n(r),a=e(59091);const c=l=>{const o=(0,n.F)(l);return(0,t.createElement)("span",{className:s()(l.className,o.className),style:o.style},l.label||a.f)}}}]);
|