"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6476],{93566:(e,t,o)=>{o.d(t,{p:()=>c});var n=o(70851),l=o(73993),r=o(90092),s=o(66032);const c=e=>{const t=(e=>{const t=(0,l.isObject)(e)?e:{style:{}};let o=t.style;return(0,l.isString)(o)&&(o=JSON.parse(o)||{}),(0,l.isObject)(o)||(o={}),{...t,style:o}})(e),o=(0,s.BK)(t),c=(0,s.aR)(t),a=(0,s.fo)(t),i=(0,r.x)(t);return{className:(0,n.A)(i.className,o.className,c.className,a.className),style:{...i.style,...o.style,...c.style,...a.style}}}},90092:(e,t,o)=>{o.d(t,{x:()=>l});var n=o(73993);const l=e=>{const t=(0,n.isObject)(e.style.typography)?e.style.typography:{},o=(0,n.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}}}},66032:(e,t,o)=>{o.d(t,{BK:()=>i,aR:()=>u,fo:()=>d});var n=o(70851),l=o(1194),r=o(49786),s=o(73993);function c(e={}){const t={};return(0,r.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function a(e,t){return e&&t?`has-${(0,l.c)(t)}-${e}`:""}function i(e){var t,o,l,r,i,u,d;const{backgroundColor:y,textColor:f,gradient:v,style:h}=e,m=a("background-color",y),p=a("color",f),g=function(e){if(e)return`has-${e}-gradient-background`}(v),k=g||(null==h||null===(t=h.color)||void 0===t?void 0:t.gradient);return{className:(0,n.A)(p,g,{[m]:!k&&!!m,"has-text-color":f||(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)||v||(null==h||null===(r=h.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,s.isObject)(null==h||null===(i=h.elements)||void 0===i?void 0:i.link)?null==h||null===(u=h.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:c({color:(null==h?void 0:h.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:l}=e,r=o?a("border-color",o):"";return(0,n.A)({"has-border-color":!!o||!(null==l||null===(t=l.border)||void 0===t||!t.color),[r]:!!r})}(e),style:c({border:o})}}function d(e){var t;return{className:void 0,style:c({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},31176:(e,t,o)=>{o.r(t),o.d(t,{default:()=>h});var n=o(51609),l=o(40812),r=o(74845),s=o(70851),c=o(93566),a=o(86087);const i=(0,a.createContext)({onProceedToCheckout:()=>()=>{},dispatchOnProceedToCheckout:()=>new Promise((()=>{}))});var u=o(73993);let d=function(e){return e.SUCCESS="success",e.FAIL="failure",e.ERROR="error",e}({});const y=e=>((e,t)=>(0,u.isObject)(e)&&"type"in e&&e.type===t)(e,d.ERROR);var f=o(26647),v=o(11692);const h=({className:e,checkoutButtonLabel:t,style:o})=>{const u=(0,c.p)({style:o}),{dispatchOnProceedToCheckout:d}=(0,a.useContext)(i);return l.tn?(0,n.createElement)(r.A,{className:(0,s.A)(e,u.className,"wc-block-mini-cart__footer-checkout"),variant:(0,v.I)(e,"contained"),style:u.style,href:l.tn,onClick:e=>{d().then((t=>{t.some(y)&&e.preventDefault()}))}},t||f.c):null}}}]);