Files
medicalalert-web-reloaded/wp/wp-content/plugins/woocommerce/assets/client/blocks/mini-cart-contents-block/title-items-counter-frontend.js

2 lines
2.9 KiB
JavaScript

"use strict";(self.webpackChunkwebpackWcBlocksFrontendJsonp=self.webpackChunkwebpackWcBlocksFrontendJsonp||[]).push([[1114],{947:(t,o,e)=>{e.d(o,{F:()=>a});var l=e(7608),n=e.n(l),s=e(6946),r=e(3392),c=e(172);const a=t=>{const o=(t=>{const o=(0,s.isObject)(t)?t:{style:{}};let e=o.style;return(0,s.isString)(e)&&(e=JSON.parse(e)||{}),(0,s.isObject)(e)||(e={}),{...o,style:e}})(t),e=(0,c.vc)(o),l=(0,c.l8)(o),a=(0,c.su)(o),i=(0,r.f)(o);return{className:n()(i.className,e.className,l.className,a.className),style:{...i.style,...e.style,...l.style,...a.style}}}},3392:(t,o,e)=>{e.d(o,{f:()=>n});var l=e(6946);const n=t=>{const o=(0,l.isObject)(t.style.typography)?t.style.typography:{},e=(0,l.isString)(o.fontFamily)?o.fontFamily:"";return{className:t.fontFamily?`has-${t.fontFamily}-font-family`:e,style:{fontSize:t.fontSize?`var(--wp--preset--font-size--${t.fontSize})`:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,textDecoration:o.textDecoration,textTransform:o.textTransform}}}},172:(t,o,e)=>{e.d(o,{l8:()=>d,su:()=>v,vc:()=>u});var l=e(7608),n=e.n(l),s=e(7427),r=e(2289),c=e(6946);function a(t={}){const o={};return(0,r.getCSSRules)(t,{selector:""}).forEach((t=>{o[t.key]=t.value})),o}function i(t,o){return t&&o?`has-${(0,s.o)(o)}-${t}`:""}function u(t){var o,e,l,s,r,u,d;const{backgroundColor:v,textColor:f,gradient:y,style:m}=t,g=i("background-color",v),b=i("color",f),p=function(t){if(t)return`has-${t}-gradient-background`}(y),h=p||(null==m||null===(o=m.color)||void 0===o?void 0:o.gradient);return{className:n()(b,p,{[g]:!h&&!!g,"has-text-color":f||(null==m||null===(e=m.color)||void 0===e?void 0:e.text),"has-background":v||(null==m||null===(l=m.color)||void 0===l?void 0:l.background)||y||(null==m||null===(s=m.color)||void 0===s?void 0:s.gradient),"has-link-color":(0,c.isObject)(null==m||null===(r=m.elements)||void 0===r?void 0:r.link)?null==m||null===(u=m.elements)||void 0===u||null===(d=u.link)||void 0===d?void 0:d.color:void 0}),style:a({color:(null==m?void 0:m.color)||{}})}}function d(t){var o;const e=(null===(o=t.style)||void 0===o?void 0:o.border)||{};return{className:function(t){var o;const{borderColor:e,style:l}=t,s=e?i("border-color",e):"";return n()({"has-border-color":!!e||!(null==l||null===(o=l.border)||void 0===o||!o.color),[s]:!!s})}(t),style:a({border:e})}}function v(t){var o;return{className:void 0,style:a({spacing:(null===(o=t.style)||void 0===o?void 0:o.spacing)||{}})}}},6806:(t,o,e)=>{e.r(o),e.d(o,{default:()=>i});var l=e(9196),n=e(9659),s=e(7608),r=e.n(s),c=e(5736),a=e(947);const i=t=>{const{cartItemsCount:o}=(0,n.b)(),e=(0,a.F)(t);return(0,l.createElement)("span",{className:r()(t.className,e.className),style:e.style},(0,c.sprintf)(/* translators: %d is the count of items in the cart. */ /* translators: %d is the count of items in the cart. */
(0,c._n)("(%d item)","(%d items)",o,"woocommerce"),o))}}}]);