File "title-items-counter-style.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce/assets/client/blocks/mini-cart-contents-block/title-items-counter-style.js
File size: 2.75 KB
MIME-type: text/plain
Charset: utf-8
"use strict";(self.webpackChunkwebpackWcBlocksStylingJsonp=self.webpackChunkwebpackWcBlocksStylingJsonp||[]).push([[319],{93566:(t,o,e)=>{e.d(o,{p:()=>a});var l=e(70851),n=e(73993),s=e(90092),r=e(66032);const a=t=>{const o=(t=>{const o=(0,n.isObject)(t)?t:{style:{}};let e=o.style;return(0,n.isString)(e)&&(e=JSON.parse(e)||{}),(0,n.isObject)(e)||(e={}),{...o,style:e}})(t),e=(0,r.BK)(o),a=(0,r.aR)(o),c=(0,r.fo)(o),i=(0,s.x)(o);return{className:(0,l.A)(i.className,e.className,a.className,c.className),style:{...i.style,...e.style,...a.style,...c.style}}}},90092:(t,o,e)=>{e.d(o,{x:()=>n});var l=e(73993);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}}}},66032:(t,o,e)=>{e.d(o,{BK:()=>i,aR:()=>u,fo:()=>d});var l=e(70851),n=e(1194),s=e(49786),r=e(73993);function a(t={}){const o={};return(0,s.getCSSRules)(t,{selector:""}).forEach((t=>{o[t.key]=t.value})),o}function c(t,o){return t&&o?`has-${(0,n.c)(o)}-${t}`:""}function i(t){var o,e,n,s,i,u,d;const{backgroundColor:y,textColor:f,gradient:v,style:m}=t,g=c("background-color",y),p=c("color",f),b=function(t){if(t)return`has-${t}-gradient-background`}(v),h=b||(null==m||null===(o=m.color)||void 0===o?void 0:o.gradient);return{className:(0,l.A)(p,b,{[g]:!h&&!!g,"has-text-color":f||(null==m||null===(e=m.color)||void 0===e?void 0:e.text),"has-background":y||(null==m||null===(n=m.color)||void 0===n?void 0:n.background)||v||(null==m||null===(s=m.color)||void 0===s?void 0:s.gradient),"has-link-color":(0,r.isObject)(null==m||null===(i=m.elements)||void 0===i?void 0:i.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 u(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:n}=t,s=e?c("border-color",e):"";return(0,l.A)({"has-border-color":!!e||!(null==n||null===(o=n.border)||void 0===o||!o.color),[s]:!!s})}(t),style:a({border:e})}}function d(t){var o;return{className:void 0,style:a({spacing:(null===(o=t.style)||void 0===o?void 0:o.spacing)||{}})}}},12500:(t,o,e)=>{e.r(o),e.d(o,{default:()=>c});var l=e(51609),n=e(88605),s=e(70851),r=e(27723),a=e(93566);const c=t=>{const{cartItemsCount:o}=(0,n.V)(),e=(0,a.p)(t);return(0,l.createElement)("span",{className:(0,s.A)(t.className,e.className),style:e.style},(0,r.sprintf)((0,r._n)("(%d item)","(%d items)",o,"woocommerce"),o))}}}]);