geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/mini-cart-contents-block/title-label-frontend.js

1 line
3.8 KiB
JavaScript
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[262],{3611:(e,o,t)=>{t.d(o,{F:()=>i});var r=t(4184),n=t.n(r),l=t(7884),s=t(2646),a=t(1473),c=t(2661);const i=e=>{const o=(e=>{const o=(0,l.Kn)(e)?e:{style:{}};let t=o.style;return(0,s.H)(t)&&(t=JSON.parse(t)||{}),(0,l.Kn)(t)||(t={}),{...o,style:t}})(e),t=(0,c.vc)(o),r=(0,c.l8)(o),i=(0,c.su)(o),u=(0,a.f)(o);return{className:n()(u.className,t.className,r.className,i.className),style:{...u.style,...t.style,...r.style,...i.style}}}},1473:(e,o,t)=>{t.d(o,{f:()=>l});var r=t(7884),n=t(2646);const l=e=>{const o=(0,r.Kn)(e.style.typography)?e.style.typography:{},t=(0,n.H)(o.fontFamily)?o.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:t,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:o.fontSize,fontStyle:o.fontStyle,fontWeight:o.fontWeight,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,textDecoration:o.textDecoration,textTransform:o.textTransform}}}},2661:(e,o,t)=>{t.d(o,{l8:()=>d,su:()=>f,vc:()=>u});var r=t(4184),n=t.n(r),l=t(9784),s=t(2289),a=t(7884);function c(e={}){const o={};return(0,s.getCSSRules)(e,{selector:""}).forEach((e=>{o[e.key]=e.value})),o}function i(e,o){return e&&o?`has-${(0,l.o)(o)}-${e}`:""}function u(e){var o,t,r,l,s,u,d;const{backgroundColor:f,textColor:v,gradient:p,style:y}=e,g=i("background-color",f),m=i("color",v),h=function(e){if(e)return`has-${e}-gradient-background`}(p),b=h||(null==y||null===(o=y.color)||void 0===o?void 0:o.gradient);return{className:n()(m,h,{[g]:!b&&!!g,"has-text-color":v||(null==y||null===(t=y.color)||void 0===t?void 0:t.text),"has-background":f||(null==y||null===(r=y.color)||void 0===r?void 0:r.background)||p||(null==y||null===(l=y.color)||void 0===l?void 0:l.gradient),"has-link-color":(0,a.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:c({color:(null==y?void 0:y.color)||{}})}}function d(e){var o;const t=(null===(o=e.style)||void 0===o?void 0:o.border)||{};return{className:function(e){var o;const{borderColor:t,style:r}=e,l=t?i("border-color",t):"";return n()({"has-border-color":!!t||!(null==r||null===(o=r.border)||void 0===o||!o.color),[l]:!!l})}(e),style:c({border:t})}}function f(e){var o;return{className:void 0,style:c({spacing:(null===(o=e.style)||void 0===o?void 0:o.spacing)||{}})}}},7407:(e,o,t)=>{t.r(o),t.d(o,{default:()=>c});var r=t(9196),n=t(3611),l=t(4184),s=t.n(l);const a=(0,t(5736).__)("Your cart","woocommerce"),c=e=>{const o=(0,n.F)(e);return(0,r.createElement)("span",{className:s()(e.className,o.className),style:o.style},e.label||a)}},1290:(e,o,t)=>{t.d(o,{$:()=>l});var r=t(7582),n=t(307);function l(e,o){return void 0===o&&(o={}),(0,n.B)(e,(0,r.pi)({delimiter:"."},o))}},9562:(e,o,t)=>{function r(e){return e.toLowerCase()}t.d(o,{U:()=>r})},307:(e,o,t)=>{t.d(o,{B:()=>s});var r=t(9562),n=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],l=/[^A-Z0-9]+/gi;function s(e,o){void 0===o&&(o={});for(var t=o.splitRegexp,s=void 0===t?n:t,c=o.stripRegexp,i=void 0===c?l:c,u=o.transform,d=void 0===u?r.U:u,f=o.delimiter,v=void 0===f?" ":f,p=a(a(e,s,"$1\0$2"),i,"\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 a(e,o,t){return o instanceof RegExp?e.replace(o,t):o.reduce((function(e,o){return e.replace(o,t)}),e)}},9784:(e,o,t)=>{t.d(o,{o:()=>l});var r=t(7582),n=t(1290);function l(e,o){return void 0===o&&(o={}),(0,n.$)(e,(0,r.pi)({delimiter:"-"},o))}},7582:(e,o,t)=>{t.d(o,{pi:()=>r});var r=function(){return r=Object.assign||function(e){for(var o,t=1,r=arguments.length;t<r;t++)for(var n in o=arguments[t])Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);return e},r.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);