1 line
No EOL
4.3 KiB
JavaScript
1 line
No EOL
4.3 KiB
JavaScript
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[458],{3611:(e,t,o)=>{o.d(t,{F:()=>a});var n=o(4184),r=o.n(n),l=o(7884),s=o(2646),c=o(1473),i=o(2661);const a=e=>{const t=(e=>{const t=(0,l.Kn)(e)?e:{style:{}};let o=t.style;return(0,s.H)(o)&&(o=JSON.parse(o)||{}),(0,l.Kn)(o)||(o={}),{...t,style:o}})(e),o=(0,i.vc)(t),n=(0,i.l8)(t),a=(0,i.su)(t),u=(0,c.f)(t);return{className:r()(u.className,o.className,n.className,a.className),style:{...u.style,...o.style,...n.style,...a.style}}}},1473:(e,t,o)=>{o.d(t,{f:()=>l});var n=o(7884),r=o(2646);const l=e=>{const t=(0,n.Kn)(e.style.typography)?e.style.typography:{},o=(0,r.H)(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}}}},2661:(e,t,o)=>{o.d(t,{l8:()=>d,su:()=>f,vc:()=>u});var n=o(4184),r=o.n(n),l=o(9784),s=o(2289),c=o(7884);function i(e={}){const t={};return(0,s.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function a(e,t){return e&&t?`has-${(0,l.o)(t)}-${e}`:""}function u(e){var t,o,n,l,s,u,d;const{backgroundColor:f,textColor:v,gradient:p,style:y}=e,g=a("background-color",f),m=a("color",v),h=function(e){if(e)return`has-${e}-gradient-background`}(p),b=h||(null==y||null===(t=y.color)||void 0===t?void 0:t.gradient);return{className:r()(m,h,{[g]:!b&&!!g,"has-text-color":v||(null==y||null===(o=y.color)||void 0===o?void 0:o.text),"has-background":f||(null==y||null===(n=y.color)||void 0===n?void 0:n.background)||p||(null==y||null===(l=y.color)||void 0===l?void 0:l.gradient),"has-link-color":(0,c.Kn)(null==y||null===(s=y.elements)||void 0===s?void 0:s.link)?null==y||null===(u=y.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:i({color:(null==y?void 0:y.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:n}=e,l=o?a("border-color",o):"";return r()({"has-border-color":!!o||!(null==n||null===(t=n.border)||void 0===t||!t.color),[l]:!!l})}(e),style:i({border:o})}}function f(e){var t;return{className:void 0,style:i({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}},9009:(e,t,o)=>{o.r(t),o.d(t,{default:()=>v});var n=o(9196),r=o(5271),l=o(4877),s=o(4184),c=o.n(s),i=o(3611),a=o(3691),u=o(6423);const d=(0,o(5736).__)("Go to checkout","woocommerce");var f=o(9214);const v=({className:e,checkoutButtonLabel:t,style:o})=>{const s=(0,i.F)({style:o}),{dispatchOnProceedToCheckout:v}=(0,a.b)();return r.sE?(0,n.createElement)(l.Z,{className:c()(e,s.className,"wc-block-mini-cart__footer-checkout"),variant:(0,f.b)(e,"contained"),style:s.style,href:r.sE,onClick:e=>{v().then((t=>{t.some(u.qm)&&e.preventDefault()}))}},t||d):null}},9214:(e,t,o)=>{o.d(t,{b:()=>r,g:()=>l});var n=o(7884);const r=(e="",t)=>e.includes("is-style-outline")?"outlined":e.includes("is-style-fill")?"contained":t,l=e=>e.some((e=>Array.isArray(e)?l(e):(0,n.Kn)(e)&&null!==e.key))},1290:(e,t,o)=>{o.d(t,{$:()=>l});var n=o(7582),r=o(307);function l(e,t){return void 0===t&&(t={}),(0,r.B)(e,(0,n.pi)({delimiter:"."},t))}},9562:(e,t,o)=>{function n(e){return e.toLowerCase()}o.d(t,{U:()=>n})},307:(e,t,o)=>{o.d(t,{B:()=>s});var n=o(9562),r=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l=/[^A-Z0-9]+/gi;function s(e,t){void 0===t&&(t={});for(var o=t.splitRegexp,s=void 0===o?r:o,i=t.stripRegexp,a=void 0===i?l:i,u=t.transform,d=void 0===u?n.U:u,f=t.delimiter,v=void 0===f?" ":f,p=c(c(e,s,"$1\0$2"),a,"\0"),y=0,g=p.length;"\0"===p.charAt(y);)y++;for(;"\0"===p.charAt(g-1);)g--;return p.slice(y,g).split("\0").map(d).join(v)}function c(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce((function(e,t){return e.replace(t,o)}),e)}},9784:(e,t,o)=>{o.d(t,{o:()=>l});var n=o(7582),r=o(1290);function l(e,t){return void 0===t&&(t={}),(0,r.$)(e,(0,n.pi)({delimiter:"-"},t))}},7582:(e,t,o)=>{o.d(t,{pi:()=>n});var n=function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}}]); |