k5web/assets/useGlobalIcon.e6846aca.js
2024-07-01 22:33:25 +08:00

6 lines
2.2 KiB
JavaScript

import{h as u,c as i}from"./arco.7f845a67.js";import{d as l}from"./index.e1698f3e.js";function f(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function o(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,t)}return n}function s(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?o(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e){var r=["fillOpacity","fillRule","clipRule"];return r.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function v(e,r){var n=Object.keys(e.attrs).reduce((t,c)=>(t[d(c)]=e.attrs[c],t),{});return u(e.tag,s(s({},n),r),(e.children||[]).map(t=>v(t,{})))}var p="t",b="zh-CN",O={classPrefix:p,locale:b};const g=O;function m(){var{classPrefix:e}=g;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function h(e){var r=m().SIZE,n=i(()=>e.value in r?r[e.value]:""),t=i(()=>e.value===void 0||e.value in r?{}:{fontSize:e.value});return{style:t,className:n}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function S(e){var r=l("icon"),n=r.globalConfig,t={};return Object.keys(e).forEach(function(c){var a;t[c]=((a=n.value)===null||a===void 0?void 0:a[c])||e[c]}),t}export{f as _,S as a,v as r,h as u};