"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[458],{40947:(e,t,o)=>{o.d(t,{F:()=>a});var l=o(91),n=o.n(l),r=o(46946),s=o(63392),c=o(40172);const a=e=>{const t=(e=>{const t=(0,r.isObject)(e)?e:{style:{}};let o=t.style;return(0,r.isString)(o)&&(o=JSON.parse(o)||{}),(0,r.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,c.vc)(t),l=(0,c.l8)(t),a=(0,c.su)(t),i=(0,s.f)(t);return{className:n()(i.className,o.className,l.className,a.className),style:{...i.style,...o.style,...l.style,...a.style}}}},63392:(e,t,o)=>{o.d(t,{f:()=>n});var l=o(46946);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}}}},40172:(e,t,o)=>{o.d(t,{l8:()=>d,su:()=>y,vc:()=>u});var l=o(91),n=o.n(l),r=o(28579),s=o(92289),c=o(46946);function a(e={}){const t={};return(0,s.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function i(e,t){return e&&t?`has-${(0,r.o)(t)}-${e}`:""}function u(e){var t,o,l,r,s,u,d;const{backgroundColor:y,textColor:v,gradient:f,style:h}=e,k=i("background-color",y),m=i("color",v),g=function(e){if(e)return`has-${e}-gradient-background`}(f),b=g||(null==h||null===(t=h.color)||void 0===t?void 0:t.gradient);return{className:n()(m,g,{[k]:!b&&!!k,"has-text-color":v||(null==h||null===(o=h.color)||void 0===o?void 0:o.text),"has-background":y||(null==h||null===(l=h.color)||void 0===l?void 0:l.background)||f||(null==h||null===(r=h.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,c.isObject)(null==h||null===(s=h.elements)||void 0===s?void 0:s.link)?null==h||null===(u=h.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==h?void 0:h.color)||{}})}}function d(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:l}=e,r=o?i("border-color",o):"";return n()({"has-border-color":!!o||!(null==l||null===(t=l.border)||void 0===t||!t.color),[r]:!!r})}(e),style:a({border:o})}}function y(e){var t;return{className:void 0,style:a({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},33625:(e,t,o)=>{o.r(t),o.d(t,{default:()=>k});var l=o(99196),n=o(68752),r=o(12904),s=o(91),c=o.n(s),a=o(40947),i=o(69307);const u=(0,i.createContext)({onProceedToCheckout:()=>()=>{},dispatchOnProceedToCheckout:()=>new Promise((()=>{}))});var d=o(46946);let y=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({});const v=e=>((e,t)=>(0,d.isObject)(e)&&"type"in e&&e.type===t)(e,y.ERROR);var f=o(152),h=o(95605);const k=({className:e,checkoutButtonLabel:t,style:o})=>{const s=(0,a.F)({style:o}),{dispatchOnProceedToCheckout:d}=(0,i.useContext)(u);return n.sE?(0,l.createElement)(r.Z,{className:c()(e,s.className,"wc-block-mini-cart__footer-checkout"),variant:(0,h.b)(e,"contained"),style:s.style,href:n.sE,onClick:e=>{d().then((t=>{t.some(v)&&e.preventDefault()}))}},t||f.k):null}}}]);