"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[6476],{82150:(e,t,o)=>{o.d(t,{p:()=>c});var l=o(70851),n=o(73993),r=o(53924),s=o(90104);const c=e=>{const t=(e=>{const t=(0,n.isObject)(e)?e:{style:{}};let o=t.style;return(0,n.isString)(o)&&(o=JSON.parse(o)||{}),(0,n.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,l.A)(i.className,o.className,c.className,a.className),style:{...i.style,...o.style,...c.style,...a.style}}}},53924:(e,t,o)=>{o.d(t,{x:()=>n});var l=o(73993);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}}}},90104:(e,t,o)=>{o.d(t,{BK:()=>i,aR:()=>u,fo:()=>d});var l=o(70851),n=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,n.c)(t)}-${e}`:""}function i(e){var t,o,n,r,i,u;const{backgroundColor:d,textColor:y,gradient:f,style:v}=e,h=a("background-color",d),m=a("color",y),g=function(e){if(e)return`has-${e}-gradient-background`}(f),k=g||(null==v||null===(t=v.color)||void 0===t?void 0:t.gradient);return{className:(0,l.A)(m,g,{[h]:!k&&!!h,"has-text-color":y||(null==v||null===(o=v.color)||void 0===o?void 0:o.text),"has-background":d||(null==v||null===(n=v.color)||void 0===n?void 0:n.background)||f||(null==v||null===(r=v.color)||void 0===r?void 0:r.gradient),"has-link-color":(0,s.isObject)(null==v||null===(i=v.elements)||void 0===i?void 0:i.link)?null==v||null===(u=v.elements)||void 0===u||null===(u=u.link)||void 0===u?void 0:u.color:void 0}),style:c({color:(null==v?void 0:v.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:n}=e,r=o?a("border-color",o):"";return(0,l.A)({"has-border-color":!!o||!(null==n||null===(t=n.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)||{}})}}},66744:(e,t,o)=>{o.r(t),o.d(t,{default:()=>f});var l=o(51609),n=o(62516),r=o(23013),s=o(70851),c=o(82150),a=o(86087);const i=(0,a.createContext)({onProceedToCheckout:()=>()=>{},dispatchOnProceedToCheckout:()=>new Promise((()=>{}))});var u=o(73993),d=o(81007),y=o(81540);const f=({className:e,checkoutButtonLabel:t,style:o})=>{const f=(0,c.p)({style:o}),{dispatchOnProceedToCheckout:v}=(0,a.useContext)(i);return n.tn?(0,l.createElement)(r.A,{className:(0,s.A)(e,f.className,"wc-block-mini-cart__footer-checkout"),variant:(0,y.I)(e,"contained"),style:f.style,href:n.tn,onClick:e=>{v().then((t=>{t.some(u.isErrorResponse)&&e.preventDefault()}))}},t||d.c):null}}}]);