geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/title-items-counter-style.js
2024-02-01 11:54:18 +00:00

1 line
No EOL
2.7 KiB
JavaScript

"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[1114],{93611:(o,l,t)=>{t.d(l,{F:()=>i});var e=t(89814),n=t.n(e),r=t(57884),s=t(42646),a=t(11473),c=t(92661);const i=o=>{const l=(o=>{const l=(0,r.Kn)(o)?o:{style:{}};let t=l.style;return(0,s.H)(t)&&(t=JSON.parse(t)||{}),(0,r.Kn)(t)||(t={}),{...l,style:t}})(o),t=(0,c.vc)(l),e=(0,c.l8)(l),i=(0,c.su)(l),u=(0,a.f)(l);return{className:n()(u.className,t.className,e.className,i.className),style:{...u.style,...t.style,...e.style,...i.style}}}},11473:(o,l,t)=>{t.d(l,{f:()=>r});var e=t(57884),n=t(42646);const r=o=>{const l=(0,e.Kn)(o.style.typography)?o.style.typography:{},t=(0,n.H)(l.fontFamily)?l.fontFamily:"";return{className:o.fontFamily?`has-${o.fontFamily}-font-family`:t,style:{fontSize:o.fontSize?`var(--wp--preset--font-size--${o.fontSize})`:l.fontSize,fontStyle:l.fontStyle,fontWeight:l.fontWeight,letterSpacing:l.letterSpacing,lineHeight:l.lineHeight,textDecoration:l.textDecoration,textTransform:l.textTransform}}}},92661:(o,l,t)=>{t.d(l,{l8:()=>d,su:()=>v,vc:()=>u});var e=t(89814),n=t.n(e),r=t(98448),s=t(92289),a=t(57884);function c(o={}){const l={};return(0,s.getCSSRules)(o,{selector:""}).forEach((o=>{l[o.key]=o.value})),l}function i(o,l){return o&&l?`has-${(0,r.o)(l)}-${o}`:""}function u(o){var l,t,e,r,s,u,d;const{backgroundColor:v,textColor:f,gradient:y,style:m}=o,g=i("background-color",v),p=i("color",f),b=function(o){if(o)return`has-${o}-gradient-background`}(y),k=b||(null==m||null===(l=m.color)||void 0===l?void 0:l.gradient);return{className:n()(p,b,{[g]:!k&&!!g,"has-text-color":f||(null==m||null===(t=m.color)||void 0===t?void 0:t.text),"has-background":v||(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(o){var l;const t=(null===(l=o.style)||void 0===l?void 0:l.border)||{};return{className:function(o){var l;const{borderColor:t,style:e}=o,r=t?i("border-color",t):"";return n()({"has-border-color":!!t||!(null==e||null===(l=e.border)||void 0===l||!l.color),[r]:!!r})}(o),style:c({border:t})}}function v(o){var l;return{className:void 0,style:c({spacing:(null===(l=o.style)||void 0===l?void 0:l.spacing)||{}})}}},72368:(o,l,t)=>{t.r(l),t.d(l,{default:()=>i});var e=t(99196),n=t(94055),r=t(89814),s=t.n(r),a=t(65736),c=t(93611);const i=o=>{const{cartItemsCount:l}=(0,n.b)(),t=(0,c.F)(o);return(0,e.createElement)("span",{className:s()(o.className,t.className),style:t.style},(0,a.sprintf)((0,a._n)("(%d item)","(%d items)",l,"woocommerce"),l))}}}]);