1 line
No EOL
2.8 KiB
JavaScript
1 line
No EOL
2.8 KiB
JavaScript
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[1959],{93611:(l,o,t)=>{t.d(o,{F:()=>i});var e=t(89814),n=t.n(e),r=t(57884),s=t(42646),a=t(11473),c=t(92661);const i=l=>{const o=(l=>{const o=(0,r.Kn)(l)?l:{style:{}};let t=o.style;return(0,s.H)(t)&&(t=JSON.parse(t)||{}),(0,r.Kn)(t)||(t={}),{...o,style:t}})(l),t=(0,c.vc)(o),e=(0,c.l8)(o),i=(0,c.su)(o),u=(0,a.f)(o);return{className:n()(u.className,t.className,e.className,i.className),style:{...u.style,...t.style,...e.style,...i.style}}}},11473:(l,o,t)=>{t.d(o,{f:()=>r});var e=t(57884),n=t(42646);const r=l=>{const o=(0,e.Kn)(l.style.typography)?l.style.typography:{},t=(0,n.H)(o.fontFamily)?o.fontFamily:"";return{className:l.fontFamily?`has-${l.fontFamily}-font-family`:t,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,t)=>{t.d(o,{l8:()=>d,su:()=>f,vc:()=>u});var e=t(89814),n=t.n(e),r=t(98448),s=t(92289),a=t(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,t,e,r,s,u,d;const{backgroundColor:f,textColor:v,gradient:y,style:m}=l,g=i("background-color",f),h=i("color",v),b=function(l){if(l)return`has-${l}-gradient-background`}(y),k=b||(null==m||null===(o=m.color)||void 0===o?void 0:o.gradient);return{className:n()(h,b,{[g]:!k&&!!g,"has-text-color":v||(null==m||null===(t=m.color)||void 0===t?void 0:t.text),"has-background":f||(null==m||null===(e=m.color)||void 0===e?void 0:e.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 t=(null===(o=l.style)||void 0===o?void 0:o.border)||{};return{className:function(l){var o;const{borderColor:t,style:e}=l,r=t?i("border-color",t):"";return n()({"has-border-color":!!t||!(null==e||null===(o=e.border)||void 0===o||!o.color),[r]:!!r})}(l),style:c({border:t})}}function f(l){var o;return{className:void 0,style:c({spacing:(null===(o=l.style)||void 0===o?void 0:o.spacing)||{}})}}},81966:(l,o,t)=>{t.r(o),t.d(o,{default:()=>d});var e=t(99196),n=t(75271),r=t(34877),s=t(89814),a=t.n(s),c=t(93611),i=t(3227),u=t(39214);const d=({className:l,cartButtonLabel:o,style:t})=>{const s=(0,c.F)({style:t});return n.fh?(0,e.createElement)(r.Z,{className:a()(l,s.className,"wc-block-mini-cart__footer-cart"),style:s.style,href:n.fh,variant:(0,u.b)(l,"outlined")},o||i.z):null}}}]); |