@das-fed/upf-utils 6.4.0-dev.254 → 6.4.0-dev.256

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/api-services/es5.js +1440 -1452
  2. package/api-services/index.js +1132 -1150
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/bems/es5.js +979 -981
  5. package/api-services/modules/bems/index.js +773 -777
  6. package/api-services/modules/bems/index.js.gz +0 -0
  7. package/api-services/modules/contract/es5.js +1063 -1075
  8. package/api-services/modules/contract/index.js +856 -874
  9. package/api-services/modules/contract/index.js.gz +0 -0
  10. package/api-services/modules/duty-manage/es5.js +979 -982
  11. package/api-services/modules/duty-manage/index.js +771 -775
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/es5.js +1452 -1440
  14. package/api-services/modules/gateway-edge/es5.js +1048 -1039
  15. package/api-services/modules/gateway-edge/index.js +846 -832
  16. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  17. package/api-services/modules/index.js +1150 -1132
  18. package/api-services/modules/index.js.gz +0 -0
  19. package/api-services/modules/justauth/es5.js +1077 -1065
  20. package/api-services/modules/justauth/index.js +875 -857
  21. package/api-services/modules/justauth/index.js.gz +0 -0
  22. package/api-services/modules/link/es5.js +975 -978
  23. package/api-services/modules/link/index.js +769 -773
  24. package/api-services/modules/link/index.js.gz +0 -0
  25. package/api-services/modules/permission/es5.js +1075 -1063
  26. package/api-services/modules/permission/index.js +874 -856
  27. package/api-services/modules/permission/index.js.gz +0 -0
  28. package/api-services/modules/platformManage/es5.js +1043 -1053
  29. package/api-services/modules/platformManage/index.js +832 -846
  30. package/api-services/modules/platformManage/index.js.gz +0 -0
  31. package/api-services/modules/space-manage/es5.js +1075 -1063
  32. package/api-services/modules/space-manage/index.js +874 -856
  33. package/api-services/modules/space-manage/index.js.gz +0 -0
  34. package/api-services/modules/super-admin/es5.js +1046 -1055
  35. package/api-services/modules/super-admin/index.js +834 -848
  36. package/api-services/modules/super-admin/index.js.gz +0 -0
  37. package/api-services/modules/supplychain-manage/es5.js +972 -970
  38. package/api-services/modules/supplychain-manage/index.js +773 -769
  39. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  40. package/api-services/modules/systemConfiguration/es5.js +1037 -1049
  41. package/api-services/modules/systemConfiguration/index.js +829 -847
  42. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  43. package/esm-map.json +19 -95
  44. package/package.json +3 -3
  45. package/theme/es5.d.ts +22 -2
  46. package/theme/es5.js +390 -310
  47. package/theme/index.d.ts +22 -2
  48. package/theme/index.js +309 -250
  49. package/theme/index.js.gz +0 -0
  50. package/theme/presets/color.d.ts +0 -7
  51. package/theme/presets/default.d.ts +0 -13
  52. package/theme/presets/es5.js +0 -440
  53. package/theme/presets/index.js +0 -249
  54. package/theme/presets/index.js.gz +0 -0
  55. package/theme/presets/presets/cjb.d.ts +0 -4
  56. package/theme/presets/presets/default.d.ts +0 -13
  57. package/theme/presets/presets/dkh.d.ts +0 -4
  58. package/theme/presets/presets/index.d.ts +0 -8
  59. package/theme/presets/presets/ssl.d.ts +0 -4
  60. package/theme/presets/source-variables.d.ts +0 -35
  61. package/theme/vue/es5.d.ts +0 -8
  62. package/theme/vue/es5.js +0 -1794
  63. package/theme/vue.d.ts +0 -8
  64. package/theme/vue.js +0 -1083
  65. package/theme/vue.js.gz +0 -0
package/theme/vue/es5.js DELETED
@@ -1,1794 +0,0 @@
1
- 'use strict';
2
-
3
- var _excluded = ["syncOnInit", "preferWindowSubscription", "onThemeChange", "debug"];
4
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
7
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
8
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
10
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
11
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
15
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
16
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
21
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
- var vue = require('vue');
24
- var mframe = require('@das-fed/mframe/es5');
25
- var p = "#ffffff",
26
- g = "#000000",
27
- ee = 0.115,
28
- L = function L(e) {
29
- var r = String(e || "").trim();
30
- return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? "#".concat(r.slice(1).split("").map(function (t) {
31
- return "".concat(t).concat(t);
32
- }).join("")) : r : "";
33
- },
34
- T = function T(e) {
35
- var r = L(e);
36
- if (!r) return null;
37
- var t = r.slice(1);
38
- return {
39
- red: Number.parseInt(t.slice(0, 2), 16),
40
- green: Number.parseInt(t.slice(2, 4), 16),
41
- blue: Number.parseInt(t.slice(4, 6), 16)
42
- };
43
- },
44
- w = function w(e) {
45
- return Math.min(255, Math.max(0, Math.round(e)));
46
- },
47
- U = function U(e, r, t, a) {
48
- var u = T(e),
49
- l = T(r);
50
- if (!u || !l) return a;
51
- var n = Math.min(1, Math.max(0, t)),
52
- c = w(u.red * n + l.red * (1 - n)),
53
- f = w(u.green * n + l.green * (1 - n)),
54
- s = w(u.blue * n + l.blue * (1 - n));
55
- return "#".concat([c, f, s].map(function (m) {
56
- return m.toString(16).padStart(2, "0");
57
- }).join(""));
58
- },
59
- re = function re(e, r, t) {
60
- var a = T(e);
61
- if (!a) return t;
62
- var u = Math.min(1, Math.max(0, r));
63
- return "rgba(".concat(a.red, ", ").concat(a.green, ", ").concat(a.blue, ", ").concat(u, ")");
64
- },
65
- S = function S(e) {
66
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : p;
67
- return U(e || "#5582F3", r || p, ee, "#ebf1fe");
68
- },
69
- B = "#5582f3",
70
- D = "#e63946",
71
- v = [{
72
- name: "--upf-brand-primary",
73
- label: "品牌主色",
74
- hint: "品牌主色,建议用于导航背景、Logo等品牌识别场景",
75
- category: "brand"
76
- }, {
77
- name: "--upf-brand-secondary",
78
- label: "品牌辅色",
79
- hint: "品牌辅色,用于辅助品牌识别和强调元素",
80
- category: "brand"
81
- }, {
82
- name: "--upf-color-primary",
83
- label: "主色",
84
- hint: "功能主色,用于按钮、交互元素、状态反馈",
85
- category: "basic"
86
- }, {
87
- name: "--upf-color-primary-bg",
88
- label: "主色高亮背景",
89
- hint: "主色配套高亮背景,默认跟随主色自动生成透明背景,也可手动覆盖",
90
- category: "basic",
91
- fallback: function fallback(e) {
92
- return S(e["--upf-color-primary"], e["--upf-bg-primary"]);
93
- },
94
- fallbackDeps: ["--upf-color-primary", "--upf-bg-primary"]
95
- }, {
96
- name: "--upf-color-success",
97
- label: "成功色",
98
- hint: "成功状态色,用于成功提示、成功按钮",
99
- category: "basic"
100
- }, {
101
- name: "--upf-color-warning",
102
- label: "警告色",
103
- hint: "警告状态色,用于警告提示、注意信息",
104
- category: "basic"
105
- }, {
106
- name: "--upf-color-error",
107
- label: "错误色",
108
- hint: "错误状态色,用于错误提示、删除操作",
109
- category: "basic"
110
- }, {
111
- name: "--upf-color-info",
112
- label: "信息色",
113
- hint: "信息状态色,用于信息提示、普通消息",
114
- category: "basic"
115
- }, {
116
- name: "--upf-text-primary",
117
- label: "主要文本",
118
- hint: "主要文本,用于标题、重要内容",
119
- category: "text"
120
- }, {
121
- name: "--upf-text-secondary",
122
- label: "次要文本",
123
- hint: "次要文本,用于辅助说明、描述文字",
124
- category: "text"
125
- }, {
126
- name: "--upf-text-disabled",
127
- label: "禁用文本",
128
- hint: "禁用文本,用于禁用状态下的文字",
129
- category: "text"
130
- }, {
131
- name: "--upf-text-placeholder",
132
- label: "占位文本",
133
- hint: "占位文本,用于输入框占位符",
134
- category: "text"
135
- }, {
136
- name: "--upf-bg-primary",
137
- label: "主背景",
138
- hint: "主背景,用于页面整体背景",
139
- category: "background"
140
- }, {
141
- name: "--upf-bg-secondary",
142
- label: "次背景",
143
- hint: "次背景,用于卡片、容器背景",
144
- category: "background"
145
- }, {
146
- name: "--upf-bg-elevated",
147
- label: "浮层背景",
148
- hint: "浮层背景,用于弹窗、下拉浮层",
149
- category: "background"
150
- }, {
151
- name: "--upf-bg-mask",
152
- label: "遮罩背景",
153
- hint: "遮罩背景,用于全屏遮罩层",
154
- category: "background"
155
- }, {
156
- name: "--upf-border-color",
157
- label: "边框色",
158
- hint: "边框色,用于组件边框、分割线",
159
- category: "border"
160
- }, {
161
- name: "--upf-divider-color",
162
- label: "分割线色",
163
- hint: "分割线色,用于内容分割线",
164
- category: "border"
165
- }, {
166
- name: "--upf-nav-bg",
167
- label: "导航背景",
168
- hint: "导航背景色,建议使用品牌主色",
169
- category: "nav"
170
- }, {
171
- name: "--upf-nav-border-color",
172
- label: "导航边框",
173
- hint: "导航边框色,用于顶部导航底部分割线",
174
- category: "nav",
175
- fallback: ["--upf-divider-color", "--upf-border-color"],
176
- fallbackDeps: ["--upf-divider-color", "--upf-border-color"]
177
- }, {
178
- name: "--upf-nav-text",
179
- label: "导航文本",
180
- hint: "导航文本色,用于导航栏文字",
181
- category: "nav"
182
- }, {
183
- name: "--upf-nav-hover-bg",
184
- label: "导航悬停",
185
- hint: "导航悬停背景,用于导航项悬停状态",
186
- category: "nav"
187
- }, {
188
- name: "--upf-nav-active-bg",
189
- label: "导航激活",
190
- hint: "导航激活背景,用于导航项激活状态",
191
- category: "nav"
192
- }, {
193
- name: "--upf-nav-active-text",
194
- label: "导航激活文本",
195
- hint: "导航激活文本,用于导航项激活状态文字",
196
- category: "nav"
197
- }, {
198
- name: "--upf-menu-bg",
199
- label: "菜单背景",
200
- hint: "菜单背景,用于侧边菜单背景",
201
- category: "menu"
202
- }, {
203
- name: "--upf-menu-text",
204
- label: "菜单文本",
205
- hint: "菜单文本,用于菜单项文字",
206
- category: "menu"
207
- }, {
208
- name: "--upf-menu-hover-bg",
209
- label: "菜单悬停",
210
- hint: "菜单悬停背景,用于菜单项悬停状态",
211
- category: "menu"
212
- }, {
213
- name: "--upf-menu-active-bg",
214
- label: "菜单激活",
215
- hint: "菜单激活背景,用于菜单项激活状态",
216
- category: "menu"
217
- }, {
218
- name: "--upf-menu-active-text",
219
- label: "菜单激活文本",
220
- hint: "菜单激活文本,建议使用功能主色",
221
- category: "menu"
222
- }, {
223
- name: "--upf-menu-submenu-bg",
224
- label: "子菜单背景",
225
- hint: "子菜单背景,用于子菜单展开背景",
226
- category: "menu"
227
- }, {
228
- name: "--upf-tab-bg",
229
- label: "标签背景",
230
- hint: "标签背景,用于标签页背景",
231
- category: "tab"
232
- }, {
233
- name: "--upf-tab-text",
234
- label: "标签文本",
235
- hint: "标签文本,用于标签页文字",
236
- category: "tab"
237
- }, {
238
- name: "--upf-tab-hover-bg",
239
- label: "标签悬停",
240
- hint: "标签悬停背景,用于标签页悬停状态",
241
- category: "tab"
242
- }, {
243
- name: "--upf-tab-active-bg",
244
- label: "标签激活",
245
- hint: "标签激活背景,用于标签页激活状态",
246
- category: "tab"
247
- }, {
248
- name: "--upf-tab-active-text",
249
- label: "标签激活文本",
250
- hint: "标签激活文本,建议使用功能主色",
251
- category: "tab"
252
- }, {
253
- name: "--upf-border-radius",
254
- label: "圆角",
255
- hint: "圆角大小,用于组件圆角",
256
- category: "effect"
257
- }, {
258
- name: "--upf-box-shadow",
259
- label: "阴影",
260
- hint: "阴影效果,用于普通阴影",
261
- category: "effect"
262
- }, {
263
- name: "--upf-box-shadow-elevated",
264
- label: "浮层阴影",
265
- hint: "浮层阴影,用于弹窗、浮层阴影",
266
- category: "effect"
267
- }];
268
- v.map(function (e) {
269
- return e.name;
270
- });
271
- v.reduce(function (e, r) {
272
- return e[r.name] = r.label, e;
273
- }, {});
274
- v.reduce(function (e, r) {
275
- return e[r.name] = r.hint, e;
276
- }, {});
277
- var b = {
278
- "--upf-color-primary": B,
279
- "--upf-color-primary-bg": S(B),
280
- "--upf-color-success": "#52c41a",
281
- "--upf-color-warning": "#faad14",
282
- "--upf-color-error": "#ff4d4f",
283
- "--upf-color-info": "#1890ff",
284
- "--upf-text-disabled": "#B2B2B2",
285
- "--upf-bg-primary": "#ffffff",
286
- "--upf-bg-secondary": "#F2F2F2",
287
- "--upf-bg-elevated": "#ffffff",
288
- "--upf-border-color": "#D9D9D9",
289
- "--upf-nav-border-color": "rgba(235, 239, 245, 1)",
290
- "--upf-tab-bg": "#ffffff",
291
- "--upf-tab-text": "#666666",
292
- "--upf-tab-active-bg": "#ffffff",
293
- "--upf-border-radius": "4px"
294
- },
295
- te = {
296
- "default": _objectSpread(_objectSpread({}, b), {}, {
297
- "--upf-brand-primary": "#0e5fd8",
298
- "--upf-brand-secondary": "#3579de",
299
- "--upf-text-primary": "#231815",
300
- "--upf-text-secondary": "#666666",
301
- "--upf-text-placeholder": "#bfbfbf",
302
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
303
- "--upf-divider-color": "#ebeff5",
304
- "--upf-nav-bg": "#0e5fd8",
305
- "--upf-nav-text": "#ffffff",
306
- "--upf-nav-hover-bg": "#3579de",
307
- "--upf-nav-active-bg": "#3579de",
308
- "--upf-nav-active-text": "#ffffff",
309
- "--upf-menu-bg": "#ffffff",
310
- "--upf-menu-text": "#231815",
311
- "--upf-menu-hover-bg": "#f2f2f2",
312
- "--upf-menu-active-bg": "#eef3fe",
313
- "--upf-menu-active-text": "#5582f3",
314
- "--upf-menu-submenu-bg": "#ffffff",
315
- "--upf-tab-hover-bg": "#eef3fe",
316
- "--upf-tab-active-text": "#5582f3",
317
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
318
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
319
- }),
320
- cjb: _objectSpread(_objectSpread({}, b), {}, {
321
- "--upf-brand-primary": "#ffffff",
322
- "--upf-brand-secondary": "#f2f6ff",
323
- "--upf-text-primary": "#212121",
324
- "--upf-text-secondary": "#666666",
325
- "--upf-text-placeholder": "#bfbfbf",
326
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
327
- "--upf-divider-color": "#ebeff5",
328
- "--upf-nav-bg": "#ffffff",
329
- "--upf-nav-text": "#212121",
330
- "--upf-nav-hover-bg": "#f2f6ff",
331
- "--upf-nav-active-bg": "#f2f6ff",
332
- "--upf-nav-active-text": "#5582f3",
333
- "--upf-menu-bg": "#ffffff",
334
- "--upf-menu-text": "#212121",
335
- "--upf-menu-hover-bg": "#f2f2f2",
336
- "--upf-menu-active-bg": "#f2f6ff",
337
- "--upf-menu-active-text": "#5582f3",
338
- "--upf-menu-submenu-bg": "#ffffff",
339
- "--upf-tab-hover-bg": "#f2f6ff",
340
- "--upf-tab-active-text": "#5582f3",
341
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
342
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
343
- }),
344
- ssl: _objectSpread(_objectSpread({}, b), {}, {
345
- "--upf-brand-primary": "#1f2346",
346
- "--upf-brand-secondary": "#2d3158",
347
- "--upf-text-primary": "#231815",
348
- "--upf-text-secondary": "#666666",
349
- "--upf-text-placeholder": "#b8c0cc",
350
- "--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
351
- "--upf-divider-color": "rgba(235, 239, 245, 1)",
352
- "--upf-nav-bg": "#1f2346",
353
- "--upf-nav-border-color": "rgba(235, 239, 245, 0.1)",
354
- "--upf-nav-text": "#ffffff",
355
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
356
- "--upf-nav-active-bg": "#5582f3",
357
- "--upf-nav-active-text": "#ffffff",
358
- "--upf-menu-bg": "#1f2346",
359
- "--upf-menu-text": "#ffffff",
360
- "--upf-menu-hover-bg": "#2d3158",
361
- "--upf-menu-active-bg": "#2d3158",
362
- "--upf-menu-active-text": "#ffffff",
363
- "--upf-menu-submenu-bg": "#171b36",
364
- "--upf-tab-hover-bg": "#f2f6ff",
365
- "--upf-tab-active-text": "#5582f3",
366
- "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
367
- "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
368
- }),
369
- dkh: _objectSpread(_objectSpread({}, b), {}, {
370
- "--upf-brand-primary": "#eb0e1b",
371
- "--upf-brand-secondary": "#f15760",
372
- "--upf-color-primary": D,
373
- "--upf-color-primary-bg": S(D),
374
- "--upf-text-primary": "#231815",
375
- "--upf-text-secondary": "#666666",
376
- "--upf-text-placeholder": "#bfbfbf",
377
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
378
- "--upf-divider-color": "#ebeff5",
379
- "--upf-nav-bg": "#eb0e1b",
380
- "--upf-nav-text": "#ffffff",
381
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
382
- "--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
383
- "--upf-nav-active-text": "#ffffff",
384
- "--upf-menu-bg": "#ffffff",
385
- "--upf-menu-text": "#231815",
386
- "--upf-menu-hover-bg": "#f5f5f5",
387
- "--upf-menu-active-bg": "#fce8ea",
388
- "--upf-menu-active-text": "#e63946",
389
- "--upf-menu-submenu-bg": "#ffffff",
390
- "--upf-tab-hover-bg": "#fce8ea",
391
- "--upf-tab-active-text": "#e63946",
392
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
393
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
394
- })
395
- },
396
- oe = function oe(e, r) {
397
- if (!r) return "";
398
- if (typeof r == "function") return String(r(e) || "");
399
- var t = Array.isArray(r) ? r : [r];
400
- var _iterator = _createForOfIteratorHelper(t),
401
- _step;
402
- try {
403
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
404
- var a = _step.value;
405
- var u = String(e[a] || "").trim();
406
- if (u) return u;
407
- }
408
- } catch (err) {
409
- _iterator.e(err);
410
- } finally {
411
- _iterator.f();
412
- }
413
- return "";
414
- },
415
- N = function N(e) {
416
- return Object.entries(e || {}).reduce(function (r, _ref) {
417
- var _ref2 = _slicedToArray(_ref, 2),
418
- t = _ref2[0],
419
- a = _ref2[1];
420
- return r[t] = String(a !== null && a !== void 0 ? a : "").trim(), r;
421
- }, {});
422
- },
423
- ae = function ae(e) {
424
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : te["default"];
425
- var t = N(e),
426
- a = N(r),
427
- u = _objectSpread(_objectSpread({}, a), t);
428
- return v.reduce(function (l, n) {
429
- var m;
430
- var c = t[n.name] || "",
431
- f = (m = n.fallbackDeps) == null ? undefined : m.some(function (V) {
432
- return !!t[V];
433
- }),
434
- s = oe(_objectSpread(_objectSpread({}, u), l), n.fallback);
435
- return l[n.name] = c || (f ? s : "") || a[n.name] || s, l;
436
- }, {});
437
- },
438
- j = function j(e) {
439
- return e;
440
- },
441
- o = function o(e, r) {
442
- var _ref3;
443
- var t = j(e);
444
- return String((_ref3 = r ? t[r] : "") !== null && _ref3 !== void 0 ? _ref3 : "");
445
- },
446
- i = function i(e, r) {
447
- return r.map(function (t) {
448
- return {
449
- target: t,
450
- from: e
451
- };
452
- });
453
- },
454
- $ = function $(e) {
455
- var r = j(e);
456
- return _objectSpread(_objectSpread({}, Object.entries(r).reduce(function (a, _ref4) {
457
- var _ref5 = _slicedToArray(_ref4, 2),
458
- u = _ref5[0],
459
- l = _ref5[1];
460
- return a[u] = String(l !== null && l !== void 0 ? l : ""), a;
461
- }, {})), ae(r));
462
- },
463
- ue = {
464
- "#5582f3": "#3761CA",
465
- "#e63946": "#C9303C"
466
- },
467
- R = function R(e, r) {
468
- var t = e || "#5582F3";
469
- return ue[L(t).toLowerCase()] || r(t, g, 0.84, "#3761CA");
470
- },
471
- le = "#999",
472
- ne = function ne(e) {
473
- return [e.themeName, e.basePresetName].some(function (r) {
474
- return String(r || "").trim() === "dkh";
475
- });
476
- },
477
- fe = function fe(e) {
478
- return ne(e) ? le : o(e.variables, "--upf-color-primary");
479
- },
480
- ie = function ie(e) {
481
- return Array.isArray(e) ? _toConsumableArray(e) : [e];
482
- },
483
- x = function x(e, r) {
484
- var t = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
485
- return r.reduce(function (a, u) {
486
- var _u$value;
487
- var l = u.resolve ? u.resolve(_objectSpread({
488
- variables: e,
489
- result: a,
490
- mixHexColor: U,
491
- toRgbaColor: re
492
- }, t)) : u.from ? o(e, String(u.from)) : String((_u$value = u.value) !== null && _u$value !== void 0 ? _u$value : "");
493
- return ie(u.target).forEach(function (n) {
494
- a[n] = String(l !== null && l !== void 0 ? l : "");
495
- }), a;
496
- }, {});
497
- },
498
- ce = [{
499
- target: "--upf-primary",
500
- from: "--upf-color-primary"
501
- }, {
502
- target: "--upf-text",
503
- from: "--upf-text-primary"
504
- }, {
505
- target: "--upf-surface",
506
- from: "--upf-bg-primary"
507
- }, {
508
- target: "--upf-divider",
509
- from: "--upf-divider-color"
510
- }, {
511
- target: "--upf-nav-item-hover-bg",
512
- from: "--upf-nav-hover-bg"
513
- }, {
514
- target: "--upf-nav-item-active-bg",
515
- from: "--upf-nav-active-bg"
516
- }, {
517
- target: "--upf-menu-item-hover-bg",
518
- from: "--upf-menu-hover-bg"
519
- }, {
520
- target: "--upf-menu-item-active-bg",
521
- from: "--upf-menu-active-bg"
522
- }, {
523
- target: "--upf-menu-item-active-text",
524
- from: "--upf-menu-active-text"
525
- }],
526
- se = [{
527
- target: "--el-color-primary",
528
- from: "--upf-color-primary"
529
- }, {
530
- target: "--el-color-success",
531
- from: "--upf-color-success"
532
- }, {
533
- target: "--el-color-warning",
534
- from: "--upf-color-warning"
535
- }, {
536
- target: "--el-color-danger",
537
- from: "--upf-color-error"
538
- }, {
539
- target: "--el-color-error",
540
- from: "--upf-color-error"
541
- }, {
542
- target: "--el-color-info",
543
- from: "--upf-color-info"
544
- }, {
545
- target: "--el-text-color-primary",
546
- from: "--upf-text-primary"
547
- }, {
548
- target: "--el-text-color-regular",
549
- from: "--upf-text-primary"
550
- }, {
551
- target: "--el-text-color-secondary",
552
- from: "--upf-text-secondary"
553
- }, {
554
- target: "--el-text-color-placeholder",
555
- from: "--upf-text-placeholder"
556
- }, {
557
- target: "--el-text-color-disabled",
558
- from: "--upf-text-disabled"
559
- }, {
560
- target: "--el-border-color",
561
- from: "--upf-border-color"
562
- }, {
563
- target: "--el-border-color-light",
564
- from: "--upf-divider-color"
565
- }, {
566
- target: "--el-border-color-lighter",
567
- from: "--upf-divider-color"
568
- }, {
569
- target: "--el-fill-color-blank",
570
- from: "--upf-bg-primary"
571
- }, {
572
- target: "--el-bg-color",
573
- from: "--upf-bg-primary"
574
- }, {
575
- target: "--el-bg-color-page",
576
- from: "--upf-bg-secondary"
577
- }, {
578
- target: "--el-bg-color-overlay",
579
- from: "--upf-bg-elevated"
580
- }, {
581
- target: "--el-dialog-bg-color",
582
- from: "--upf-bg-elevated"
583
- }, {
584
- target: "--el-mask-color",
585
- from: "--upf-bg-mask"
586
- }, {
587
- target: "--el-tree-text-color",
588
- from: "--upf-text-secondary"
589
- }, {
590
- target: "--el-checkbox-disabled-checked-icon-color",
591
- from: "--upf-text-disabled"
592
- }, {
593
- target: "--el-dialog-content-font-size",
594
- value: "14px"
595
- }, {
596
- target: "--el-transition-duration-fast",
597
- value: "0.2s"
598
- }, {
599
- target: "--el-checkbox-font-weight",
600
- value: "400"
601
- }, {
602
- target: "--el-checkbox-input-width",
603
- value: "14px"
604
- }, {
605
- target: "--el-checkbox-input-height",
606
- value: "14px"
607
- }, {
608
- target: "--el-checkbox-checked-icon-color",
609
- value: p
610
- }, {
611
- target: "--el-checkbox-input-border",
612
- resolve: function resolve(_ref6) {
613
- var e = _ref6.variables;
614
- return "1px solid ".concat(o(e, "--upf-border-color"));
615
- }
616
- }],
617
- pe = [{
618
- target: "--das-ui-color-primary-level1",
619
- from: "--upf-color-primary-bg"
620
- }].concat(_toConsumableArray(i("--upf-color-primary-bg", ["--das-ui-color-primary-level1", "--das-ui-upload-bgcolor-hover"])), _toConsumableArray(i("--upf-bg-primary", ["--das-black-list-mange-color-white"])), [{
621
- target: "--das-ui-color-primary",
622
- from: "--upf-color-primary"
623
- }, {
624
- target: "--das-ui-color-danger",
625
- from: "--upf-color-error"
626
- }, {
627
- target: "--das-ui-color-warning",
628
- from: "--upf-color-warning"
629
- }, {
630
- target: "--das-ui-color-success",
631
- from: "--upf-color-success"
632
- }, {
633
- target: "--das-ui-color-link",
634
- from: "--upf-color-primary"
635
- }, {
636
- target: "--das-ui-color-normal",
637
- from: "--upf-text-primary"
638
- }, {
639
- target: "--das-ui-color-secondary",
640
- from: "--upf-text-secondary"
641
- }, {
642
- target: "--das-ui-color-help",
643
- from: "--upf-text-disabled"
644
- }, {
645
- target: "--das-ui-color-disabled",
646
- from: "--upf-text-disabled"
647
- }, {
648
- target: "--das-ui-color-overlay-error",
649
- from: "--upf-color-error"
650
- }, {
651
- target: "--das-ui-button-primary",
652
- from: "--upf-color-primary"
653
- }, {
654
- target: "--das-ui-input-full-border-color",
655
- from: "--upf-border-color"
656
- }, {
657
- target: "--das-ui-tag-list-border-active-color",
658
- from: "--upf-color-primary"
659
- }, {
660
- target: "--das-ui-tag-dark-temporary-color",
661
- from: "--upf-text-secondary"
662
- },
663
- // 共享桥接先兜底旧加载态、下拉态和范围选择器变量,保证首批迁移组件样式稳定。
664
- {
665
- target: "--das-ui-split-panel-color-primary",
666
- from: "--upf-color-primary"
667
- }, {
668
- target: "--das-ui-split-panel-color-line",
669
- from: "--upf-divider-color"
670
- }, {
671
- target: "--das-ui-split-panel-color-btn",
672
- value: "#999999"
673
- }, {
674
- target: "--das-ui-tree-table-highlight-color",
675
- from: "--upf-color-primary"
676
- }, {
677
- target: "--das-ui-tree-table-header-color",
678
- from: "--upf-text-primary"
679
- }, {
680
- target: "--das-ui-tree-table-header-bg-color",
681
- from: "--upf-bg-secondary"
682
- }, {
683
- target: "--das-ui-tree-table-border-color",
684
- from: "--upf-border-color"
685
- }, {
686
- target: "--das-ui-rich-editor-active-font-color",
687
- from: "--upf-color-primary"
688
- }, {
689
- target: "--das-ui-dropdown-bgff-color",
690
- resolve: function resolve(_ref7) {
691
- var e = _ref7.variables;
692
- return o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary");
693
- }
694
- }, {
695
- target: "--das-ui-dropdown-divided-color",
696
- from: "--upf-border-color"
697
- }, {
698
- target: "--das-ui-dropdown-active-color",
699
- from: "--upf-color-primary"
700
- }, {
701
- target: "--das-ui-dropdown-hover-color",
702
- from: "--upf-bg-secondary"
703
- }, {
704
- target: "--das-ui-spin-logo-1-color",
705
- from: "--upf-loading-color-1"
706
- }, {
707
- target: "--das-ui-spin-logo-2-color",
708
- from: "--upf-loading-color-2"
709
- }, {
710
- target: "--das-ui-spin-logo-3-color",
711
- from: "--upf-loading-color-3"
712
- }, {
713
- target: "--das-ui-spin-logo-4-color",
714
- from: "--upf-loading-color-4"
715
- }, {
716
- target: "--das-ui-spin-logo-5-color",
717
- from: "--upf-loading-color-5"
718
- }, {
719
- target: "--das-ui-spin-logo-6-color",
720
- from: "--upf-loading-color-6"
721
- }, {
722
- target: "--das-ui-special-range-picker-close-btn",
723
- from: "--upf-text-disabled"
724
- }, {
725
- target: "--das-ui-special-range-picker-close-btn-hover",
726
- from: "--upf-text-secondary"
727
- }, {
728
- target: "--das-ui-special-range-picker-color-primary",
729
- from: "--upf-color-primary"
730
- }, {
731
- target: "--das-ui-special-range-picker-color-white",
732
- from: "--upf-bg-primary"
733
- }, {
734
- target: "--das-ui-special-range-picker-hover-color",
735
- from: "--upf-bg-secondary"
736
- }, {
737
- target: "--das-ui-special-range-picker-border-color",
738
- from: "--upf-border-color"
739
- }, {
740
- target: "--das-ui-special-range-picker-header-bgcolor",
741
- from: "--upf-bg-secondary"
742
- }, {
743
- target: "--das-ui-special-range-picker-in-range",
744
- resolve: function resolve(_ref8) {
745
- var e = _ref8.variables,
746
- r = _ref8.mixHexColor;
747
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.08, "#F2F6FF");
748
- }
749
- }, {
750
- target: "--das-ui-special-range-picker-new-range",
751
- resolve: function resolve(_ref9) {
752
- var e = _ref9.variables,
753
- r = _ref9.mixHexColor;
754
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.14, "#E3EBFF");
755
- }
756
- }, {
757
- target: "--das-ui-special-range-picker-disabled",
758
- from: "--upf-divider-color"
759
- }, {
760
- target: "--das-ui-special-range-picker-error",
761
- from: "--upf-color-error"
762
- }, {
763
- target: "--das-ui-special-range-picker-overlay-error-bg-color",
764
- from: "--upf-message-error-bg"
765
- }, {
766
- target: "--das-ui-special-range-picker-box-shadow-5",
767
- value: "rgb(0 0 0 / 5%)"
768
- }, {
769
- target: "--das-ui-special-range-picker-box-shadow-8",
770
- value: "rgb(0 0 0 / 8%)"
771
- }, {
772
- target: "--das-ui-special-range-picker-box-shadow-12",
773
- value: "rgb(0 0 0 / 12%)"
774
- }, {
775
- target: "--das-ui-table-checkbox-bg",
776
- from: "--upf-color-primary"
777
- }, {
778
- target: "--das-ui-table-checkbox-border-color",
779
- from: "--upf-color-primary"
780
- }, {
781
- target: "--das-ui-table-sortable-color",
782
- from: "--upf-color-primary"
783
- }, {
784
- target: "--das-ui-table-required-color",
785
- from: "--upf-color-error"
786
- }, {
787
- target: "--das-ui-form-error-label-color",
788
- from: "--upf-color-error"
789
- }, {
790
- target: "--das-input-base-border-color",
791
- from: "--upf-border-color"
792
- }, {
793
- target: ["--upf-form-active-border-color", "--das-input-active-border-color", "--upf-date-picker-active-border-color"],
794
- resolve: fe
795
- }, {
796
- target: "--das-input-font-color",
797
- from: "--upf-text-primary"
798
- }, {
799
- target: "--das-input-sub-font-color",
800
- from: "--upf-text-placeholder"
801
- }, {
802
- target: "--das-input-disabled-bg-color",
803
- from: "--upf-bg-secondary"
804
- }, {
805
- target: "--das-input-count-color",
806
- from: "--upf-text-disabled"
807
- }, {
808
- target: "--das-input-message-font-size",
809
- value: "12px"
810
- }, {
811
- target: "--das-ui-scrollbar-thumb-color",
812
- from: "--upf-text-disabled"
813
- }, {
814
- target: "--das-ui-scrollbar-thumb-hover-color",
815
- from: "--upf-text-secondary"
816
- }, {
817
- target: "--das-ui-scrollbar-padding",
818
- value: "1px"
819
- }, {
820
- target: "--das-ui-scrollbar-thumb-size",
821
- value: "8px"
822
- }, {
823
- target: "--das-user-manage-white",
824
- value: p
825
- }, {
826
- target: "--das-user-manage-shadow-color",
827
- value: "rgba(38, 38, 38, 0.1)"
828
- }, {
829
- target: "--das-user-manage-border-color",
830
- value: "rgba(38, 38, 38, 0.1)"
831
- }, {
832
- target: "--das-layout-micro-container-bg-color",
833
- value: "#e2e7ef"
834
- }, {
835
- target: "--das-layout-breadcrumb-bg-color",
836
- value: "#ffffff"
837
- }, {
838
- target: "--das-ui-font-size-sm",
839
- value: "12px"
840
- }, {
841
- target: "--das-ui-font-size-md",
842
- value: "14px"
843
- }, {
844
- target: "--das-ui-font-size-lg",
845
- value: "16px"
846
- }, {
847
- target: "--das-upf-ui-font-size-sm",
848
- value: "14px"
849
- }, {
850
- target: "--das-upf-ui-line-height",
851
- value: "32px"
852
- }, {
853
- target: "--das-ui-text-tooltip-shadow",
854
- value: "rgba(0, 0, 0, 0.2)"
855
- }, {
856
- target: "--das-ui-text-tooltip-bgcolor",
857
- value: p
858
- }, {
859
- target: "--das-ui-search-form-font-color",
860
- from: "--upf-text-primary"
861
- }, {
862
- target: "--das-ui-search-form-filter-font-color",
863
- from: "--upf-text-secondary"
864
- }, {
865
- target: "--das-ui-search-form-filter-bgcolor",
866
- from: "--upf-bg-secondary"
867
- }, {
868
- target: "--das-ui-search-form-filter-border-color",
869
- from: "--upf-border-color"
870
- }, {
871
- target: "--das-ui-select-list-hover-bg",
872
- from: "--upf-bg-secondary"
873
- }, {
874
- target: "--das-ui-select-list-close-btn-hover",
875
- from: "--upf-color-primary"
876
- }, {
877
- target: "--das-ui-select-list-active-bg-color",
878
- from: "--upf-color-primary-bg"
879
- }, {
880
- target: "--das-ui-select-list-active-font-color",
881
- from: "--upf-color-primary"
882
- }, {
883
- target: "--das-ui-steps-color",
884
- from: "--upf-color-primary"
885
- }, {
886
- target: "--das-ui-steps-dashed-color",
887
- from: "--upf-text-disabled"
888
- }, {
889
- target: "--das-ui-steps-wait-color",
890
- from: "--upf-text-secondary"
891
- }, {
892
- target: "--das-ui-steps-finish-color",
893
- from: "--upf-color-success"
894
- }, {
895
- target: "--das-ui-steps-error-color",
896
- from: "--upf-color-error"
897
- }, {
898
- target: "--das-ui-steps-title-font-size",
899
- value: "12px"
900
- }, {
901
- target: "--das-ui-collaspe-bgcolor",
902
- resolve: function resolve(_ref0) {
903
- var e = _ref0.variables;
904
- return o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary");
905
- }
906
- }, {
907
- target: "--das-ui-calendar-color-text",
908
- value: "#212121"
909
- }, {
910
- target: "--das-ui-calendar-color-border",
911
- value: "#D9D9D9"
912
- }, {
913
- target: "--das-ui-calendar-size-text",
914
- value: "14px"
915
- }, {
916
- target: "--das-ui-calendar-color-head-tip",
917
- value: "#999999"
918
- }, {
919
- target: "--das-ui-calendar-size-head-tip",
920
- value: "12px"
921
- }, {
922
- target: "--das-ui-calendar-span-size",
923
- value: "28px"
924
- }, {
925
- target: "--das-ui-calendar-color-pre-next",
926
- value: "#B2B2B2"
927
- }, {
928
- target: "--das-ui-color-primary-level2",
929
- resolve: function resolve(_ref1) {
930
- var e = _ref1.variables,
931
- r = _ref1.mixHexColor;
932
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.16, "#E0EFFE");
933
- }
934
- }, {
935
- target: "--das-ui-color-primary-level3",
936
- resolve: function resolve(_ref10) {
937
- var e = _ref10.variables,
938
- r = _ref10.mixHexColor;
939
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.32, "#B3D5FF");
940
- }
941
- }, {
942
- target: "--das-ui-color-primary-level4",
943
- resolve: function resolve(_ref11) {
944
- var e = _ref11.variables,
945
- r = _ref11.mixHexColor;
946
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.48, "#85B8FE");
947
- }
948
- }, {
949
- target: "--das-ui-color-primary-level5",
950
- resolve: function resolve(_ref12) {
951
- var e = _ref12.variables,
952
- r = _ref12.mixHexColor;
953
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.68, "#5797FF");
954
- }
955
- }, {
956
- target: "--das-ui-color-primary-level7",
957
- resolve: function resolve(_ref13) {
958
- var e = _ref13.variables,
959
- r = _ref13.mixHexColor;
960
- return r(o(e, "--upf-color-primary"), g, 0.82, "#104CCC");
961
- }
962
- }, {
963
- target: "--das-ui-color-primary-level8",
964
- resolve: function resolve(_ref14) {
965
- var e = _ref14.variables,
966
- r = _ref14.mixHexColor;
967
- return r(o(e, "--upf-color-primary"), g, 0.68, "#002EA3");
968
- }
969
- }, {
970
- target: "--das-ui-color-primary-level9",
971
- resolve: function resolve(_ref15) {
972
- var e = _ref15.variables,
973
- r = _ref15.mixHexColor;
974
- return r(o(e, "--upf-color-primary"), g, 0.5, "#001F7A");
975
- }
976
- }, {
977
- target: "--das-ui-color-danger-level1",
978
- resolve: function resolve(_ref16) {
979
- var e = _ref16.variables,
980
- r = _ref16.mixHexColor;
981
- return r(o(e, "--upf-color-error"), o(e, "--upf-bg-primary"), 0.14, "#FFDBE0");
982
- }
983
- }, {
984
- target: "--das-ui-color-danger-level2",
985
- resolve: function resolve(_ref17) {
986
- var e = _ref17.variables,
987
- r = _ref17.mixHexColor;
988
- return r(o(e, "--upf-color-error"), o(e, "--upf-bg-primary"), 0.08, "#FFF2F4");
989
- }
990
- }, {
991
- target: "--das-ui-color-warning-level1",
992
- resolve: function resolve(_ref18) {
993
- var e = _ref18.variables,
994
- r = _ref18.mixHexColor;
995
- return r(o(e, "--upf-color-warning"), o(e, "--upf-bg-primary"), 0.08, "#FFFBF2");
996
- }
997
- }, {
998
- target: "--das-ui-color-warning-level2",
999
- resolve: function resolve(_ref19) {
1000
- var e = _ref19.variables,
1001
- r = _ref19.mixHexColor;
1002
- return r(o(e, "--upf-color-warning"), o(e, "--upf-bg-primary"), 0.16, "#FFF1D4");
1003
- }
1004
- }, {
1005
- target: "--das-ui-color-success-level1",
1006
- resolve: function resolve(_ref20) {
1007
- var e = _ref20.variables,
1008
- r = _ref20.mixHexColor;
1009
- return r(o(e, "--upf-color-success"), o(e, "--upf-bg-primary"), 0.08, "#F2FFF5");
1010
- }
1011
- }, {
1012
- target: "--das-ui-color-success-level2",
1013
- resolve: function resolve(_ref21) {
1014
- var e = _ref21.variables,
1015
- r = _ref21.mixHexColor;
1016
- return r(o(e, "--upf-color-success"), o(e, "--upf-bg-primary"), 0.16, "#DCFAE4");
1017
- }
1018
- }, {
1019
- target: "--das-ui-color-amount",
1020
- resolve: function resolve(_ref22) {
1021
- var e = _ref22.variables,
1022
- r = _ref22.mixHexColor;
1023
- return r(o(e, "--upf-color-warning"), o(e, "--upf-color-error"), 0.55, "#FF5F1F");
1024
- }
1025
- }, {
1026
- target: "--das-ui-button-primary-hover",
1027
- resolve: function resolve(_ref23) {
1028
- var e = _ref23.variables,
1029
- r = _ref23.mixHexColor;
1030
- return r(o(e, "--upf-color-primary"), g, 0.82, "#104CCC");
1031
- }
1032
- }], _toConsumableArray(i("--upf-color-primary", ["--das-ui-search-form-primary-color"])), _toConsumableArray(i("--upf-text-primary", ["--das-ui-tag-list-text-color"])), _toConsumableArray(i("--upf-border-color", ["--das-ui-tag-list-border-color", "--das-ui-upload-border-color"])), _toConsumableArray(i("--upf-bg-secondary", ["--das-ui-upload-bgcolor"])), _toConsumableArray(i("--upf-text-secondary", ["--das-ui-search-form-tip-color"])), [{
1033
- target: "--das-ui-layout-header-menu-border-color",
1034
- from: "--upf-nav-border-color"
1035
- }, {
1036
- target: "--das-ui-layout-header-menu-background-color",
1037
- from: "--upf-nav-bg"
1038
- }, {
1039
- target: "--das-ui-layout-header-menu-color",
1040
- from: "--upf-nav-text"
1041
- }, {
1042
- target: "--das-ui-layout-header-menu-hover-background-color",
1043
- from: "--upf-nav-hover-bg"
1044
- }, {
1045
- target: "--das-ui-layout-header-menu-hover-color",
1046
- from: "--upf-nav-active-text"
1047
- }, {
1048
- target: "--das-ui-layout-header-menu-active-background-color",
1049
- from: "--upf-nav-active-bg"
1050
- }, {
1051
- target: "--das-ui-layout-header-menu-active-color",
1052
- from: "--upf-nav-active-text"
1053
- }, {
1054
- target: "--das-ui-layout-header-menu-remove-btn-color",
1055
- resolve: function resolve(_ref24) {
1056
- var e = _ref24.variables,
1057
- r = _ref24.toRgbaColor;
1058
- return r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)");
1059
- }
1060
- }, {
1061
- target: "--das-ui-layout-header-menu-remove-btn-hover-color",
1062
- from: "--upf-nav-active-text"
1063
- }, {
1064
- target: "--das-ui-layout-header-icon-color",
1065
- resolve: function resolve(_ref25) {
1066
- var e = _ref25.variables;
1067
- return o(e, "--upf-nav-text") || o(e, "--upf-text-secondary");
1068
- }
1069
- }, {
1070
- target: "--das-ui-layout-header-left-box-line",
1071
- resolve: function resolve(_ref26) {
1072
- var e = _ref26.variables,
1073
- r = _ref26.toRgbaColor;
1074
- return r(o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"), 0.28, "#CCCCCC");
1075
- }
1076
- }, {
1077
- target: "--das-ui-layout-aside-menu-width",
1078
- value: "214px"
1079
- }, {
1080
- target: "--das-ui-layout-aside-collapse-menu-width",
1081
- value: "50px"
1082
- }, {
1083
- target: "--das-ui-layout-aside-menu-item-height",
1084
- value: "50px"
1085
- }, {
1086
- target: "--das-ui-layout-aside-border-color",
1087
- from: "--upf-border-color"
1088
- }, {
1089
- target: "--das-ui-layout-aside-background-color",
1090
- from: "--upf-menu-bg"
1091
- }, {
1092
- target: "--das-ui-layout-aside--item-color",
1093
- from: "--upf-menu-text"
1094
- }, {
1095
- target: "--das-ui-layout-aside--item-arrow-color",
1096
- from: "--upf-text-disabled"
1097
- }, {
1098
- target: "--das-ui-layout-aside--item-active-color",
1099
- from: "--upf-menu-active-text"
1100
- }, {
1101
- target: "--das-ui-layout-aside--item-active-background-color",
1102
- from: "--upf-menu-active-bg"
1103
- }, {
1104
- target: "--das-ui-layout-aside-item-hover-color",
1105
- from: "--upf-menu-active-text"
1106
- }, {
1107
- target: "--das-ui-layout-aside-item-hover-background-color",
1108
- from: "--upf-menu-hover-bg"
1109
- }, {
1110
- target: "--das-ui-layout-aside-submenu-title-border-color",
1111
- from: "--upf-divider-color"
1112
- }, {
1113
- target: "--das-ui-layout-aside-submenu-vertical-background-color",
1114
- from: "--upf-menu-submenu-bg"
1115
- }, {
1116
- target: "--das-ui-layout-aside-submenu-vertical-item-hover-background-color",
1117
- from: "--upf-menu-hover-bg"
1118
- }, {
1119
- target: "--das-ui-layout-aside-submenu-background-color",
1120
- from: "--upf-menu-submenu-bg"
1121
- }, {
1122
- target: "--das-ui-layout-aside-submenu-item-affix-color",
1123
- from: "--upf-color-primary"
1124
- }, {
1125
- target: "--das-ui-layout-aside-submenu-item-color",
1126
- from: "--upf-menu-text"
1127
- }, {
1128
- target: "--das-ui-layout-aside-submenu-item-hover-color",
1129
- from: "--upf-menu-active-text"
1130
- }, {
1131
- target: "--das-ui-layout-aside-submenu-item-hover-background-color",
1132
- from: "--upf-menu-hover-bg"
1133
- }, {
1134
- target: "--das-ui-layout-aside-submenu-item-active-background-color",
1135
- from: "--upf-menu-active-bg"
1136
- }, {
1137
- target: "--das-ui-layout-aside-collapse-icon-bg-color",
1138
- from: "--upf-text-disabled"
1139
- }, {
1140
- target: "--das-ui-layout-aside-collapse-icon-hover-bg-color",
1141
- from: "--upf-menu-active-text"
1142
- }, {
1143
- target: "--das-ui-layout-aside-divise-border-color",
1144
- from: "--upf-divider-color"
1145
- }, {
1146
- target: "--das-ui-layout-aside-menu-expired-color",
1147
- from: "--upf-text-disabled"
1148
- }, {
1149
- target: "--das-ui-layout-aside-menu-top-left-icon-color",
1150
- from: "--upf-color-primary"
1151
- }, {
1152
- target: "--das-ui-layout-aside-menu-top-right-icon-color",
1153
- from: "--upf-text-secondary"
1154
- }]),
1155
- me = [].concat(_toConsumableArray(i("--upf-color-primary", ["--upf-button-primary", "--upf-notification-primary-bg"])), _toConsumableArray(i("--upf-text-primary", ["--upf-button-default-text", "--upf-notification-title-text", "--upf-text-tooltip-text"])), _toConsumableArray(i("--upf-border-color", ["--upf-button-default-border", "--upf-text-tooltip-border"])), _toConsumableArray(i("--upf-text-disabled", ["--upf-button-default-disabled", "--upf-switch-off-color", "--upf-message-thumb", "--upf-text-tooltip-scrollbar-thumb"])), _toConsumableArray(i("--upf-bg-secondary", ["--upf-button-default-disabled-bg", "--upf-table-header-bg"])), _toConsumableArray(i("--upf-bg-primary", ["--upf-checkbox-filter-bg"])), _toConsumableArray(i("--upf-color-info", ["--upf-loading-color-1"])), _toConsumableArray(i("--upf-brand-secondary", ["--upf-loading-color-2"])), _toConsumableArray(i("--upf-color-success", ["--upf-loading-color-3"])), _toConsumableArray(i("--upf-divider-color", ["--upf-loading-color-6"])), _toConsumableArray(i("--upf-text-secondary", ["--upf-message-close", "--upf-notification-description-text", "--upf-notification-close", "--upf-text-tooltip-scrollbar-thumb-hover"])), [{
1156
- target: "--upf-button-primary-text",
1157
- value: p
1158
- }, {
1159
- target: "--upf-button-primary-text-disabled",
1160
- value: "rgba(255, 255, 255, 1)"
1161
- }, {
1162
- target: "--upf-dialog-basic-header-height",
1163
- value: "50px"
1164
- }, {
1165
- target: "--upf-dialog-basic-content-padding",
1166
- value: "30px"
1167
- }, {
1168
- target: "--upf-dialog-feedback-header-height",
1169
- value: "60px"
1170
- }, {
1171
- target: "--upf-dialog-feedback-icon-width",
1172
- value: "168px"
1173
- }, {
1174
- target: "--upf-dialog-feedback-icon-height",
1175
- value: "96px"
1176
- }, {
1177
- target: "--upf-dialog-feedback-content-font-size",
1178
- value: "16px"
1179
- }, {
1180
- target: "--upf-dialog-feedback-content-padding",
1181
- value: "48px"
1182
- }, {
1183
- target: "--upf-dialog-notice-content-font-size",
1184
- value: "14px"
1185
- }, {
1186
- target: "--upf-dialog-notice-content-padding",
1187
- value: "24px"
1188
- }, {
1189
- target: "--upf-table-header-padding-top",
1190
- value: "4px"
1191
- }, {
1192
- target: "--upf-table-header-padding-bottom",
1193
- value: "4px"
1194
- }, {
1195
- target: "--upf-message-font-size-sm",
1196
- value: "12px"
1197
- }, {
1198
- target: "--upf-message-font-size-md",
1199
- value: "14px"
1200
- }, {
1201
- target: "--upf-message-font-size-lg",
1202
- value: "16px"
1203
- }, {
1204
- target: "--upf-notification-font-size-sm",
1205
- value: "12px"
1206
- }, {
1207
- target: "--upf-notification-font-size-md",
1208
- value: "14px"
1209
- }, {
1210
- target: "--upf-notification-font-size-lg",
1211
- value: "16px"
1212
- }, {
1213
- target: "--upf-notification-primary-text",
1214
- value: p
1215
- }, {
1216
- target: "--upf-text-tooltip-scrollbar-padding",
1217
- value: "1px"
1218
- }, {
1219
- target: "--upf-button-primary-hover",
1220
- resolve: function resolve(_ref27) {
1221
- var e = _ref27.variables,
1222
- r = _ref27.mixHexColor;
1223
- return r(o(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF");
1224
- }
1225
- }, {
1226
- target: "--upf-button-active",
1227
- resolve: function resolve(_ref28) {
1228
- var e = _ref28.variables,
1229
- r = _ref28.mixHexColor;
1230
- return R(o(e, "--upf-color-primary"), r);
1231
- }
1232
- }, {
1233
- target: "--upf-button-disabled",
1234
- resolve: function resolve(_ref29) {
1235
- var e = _ref29.variables,
1236
- r = _ref29.mixHexColor;
1237
- return r(o(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF");
1238
- }
1239
- }, {
1240
- target: "--upf-button-set",
1241
- resolve: function resolve(_ref30) {
1242
- var e = _ref30.variables,
1243
- r = _ref30.mixHexColor;
1244
- return r(o(e, "--upf-color-primary") || "#5582F3", g, 0.78, "#4367C1");
1245
- }
1246
- }, {
1247
- target: "--upf-button-set-hover",
1248
- resolve: function resolve(_ref31) {
1249
- var e = _ref31.variables,
1250
- r = _ref31.mixHexColor;
1251
- return r(o(e, "--upf-color-primary") || "#5582F3", g, 0.86, "#4C74DA");
1252
- }
1253
- }, {
1254
- target: "--upf-button-set-active",
1255
- resolve: function resolve(_ref32) {
1256
- var e = _ref32.variables,
1257
- r = _ref32.mixHexColor;
1258
- return R(o(e, "--upf-color-primary"), r);
1259
- }
1260
- }, {
1261
- target: "--upf-button-set-disabled",
1262
- resolve: function resolve(_ref33) {
1263
- var e = _ref33.variables,
1264
- r = _ref33.mixHexColor,
1265
- t = _ref33.result;
1266
- return r(t["--upf-button-set"] || o(e, "--upf-color-primary") || "#5582F3", o(e, "--upf-bg-primary"), 0.55, "#95A4C8");
1267
- }
1268
- }, {
1269
- target: "--upf-switch-on-color-disabled",
1270
- resolve: function resolve(_ref34) {
1271
- var e = _ref34.variables,
1272
- r = _ref34.mixHexColor;
1273
- return r(o(e, "--upf-color-primary"), p, 0.32, "#B5CAFF");
1274
- }
1275
- }, {
1276
- target: "--upf-checkbox-focus-shadow",
1277
- resolve: function resolve(_ref35) {
1278
- var e = _ref35.variables,
1279
- r = _ref35.toRgbaColor;
1280
- return r(o(e, "--upf-color-primary") || "#5582F3", 0.1, "rgba(85, 130, 243, 0.1)");
1281
- }
1282
- }, {
1283
- target: "--upf-checkbox-overlay-error-bg",
1284
- resolve: function resolve(_ref36) {
1285
- var e = _ref36.variables,
1286
- r = _ref36.mixHexColor;
1287
- return r(o(e, "--upf-color-error"), o(e, "--upf-bg-primary"), 0.14, "#FFDBE0");
1288
- }
1289
- }, {
1290
- target: "--upf-loading-color-4",
1291
- resolve: function resolve(_ref37) {
1292
- var e = _ref37.variables,
1293
- r = _ref37.mixHexColor;
1294
- return r(o(e, "--upf-brand-secondary"), o(e, "--upf-color-primary"), 0.45, "#A06EFF");
1295
- }
1296
- }, {
1297
- target: "--upf-loading-color-5",
1298
- resolve: function resolve(_ref38) {
1299
- var e = _ref38.variables;
1300
- return o(e, "--upf-color-primary") || "#5582F3";
1301
- }
1302
- }, {
1303
- target: "--upf-table-row-hover-bg",
1304
- from: "--upf-bg-secondary"
1305
- }, {
1306
- target: "--upf-table-row-active-bg",
1307
- resolve: function resolve(_ref39) {
1308
- var e = _ref39.variables,
1309
- r = _ref39.mixHexColor;
1310
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.08, "#F2F6FF");
1311
- }
1312
- }, {
1313
- target: "--upf-table-row-active-hover-bg",
1314
- resolve: function resolve(_ref40) {
1315
- var e = _ref40.variables,
1316
- r = _ref40.mixHexColor;
1317
- return r(o(e, "--upf-color-primary"), o(e, "--upf-bg-primary"), 0.14, "#E3EBFF");
1318
- }
1319
- }, {
1320
- target: "--upf-table-summary-row-color",
1321
- resolve: function resolve(_ref41) {
1322
- var e = _ref41.variables,
1323
- r = _ref41.mixHexColor;
1324
- return r(o(e, "--upf-color-warning"), o(e, "--upf-color-error"), 0.55, "#FF5F1F");
1325
- }
1326
- }, {
1327
- target: "--upf-table-summary-row-bg",
1328
- resolve: function resolve(_ref42) {
1329
- var e = _ref42.variables,
1330
- r = _ref42.mixHexColor;
1331
- return r(o(e, "--upf-color-warning"), o(e, "--upf-bg-primary"), 0.18, "#FFF1D4");
1332
- }
1333
- }, {
1334
- target: "--upf-message-bg",
1335
- resolve: function resolve(_ref43) {
1336
- var e = _ref43.variables,
1337
- r = _ref43.mixHexColor;
1338
- return r(o(e, "--upf-color-info"), o(e, "--upf-bg-primary"), 0.14, "#E0EFFF");
1339
- }
1340
- }, {
1341
- target: "--upf-message-text",
1342
- resolve: function resolve(_ref44) {
1343
- var e = _ref44.variables;
1344
- return o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8";
1345
- }
1346
- }, {
1347
- target: "--upf-message-border",
1348
- resolve: function resolve(_ref45) {
1349
- var e = _ref45.variables,
1350
- r = _ref45.mixHexColor;
1351
- return r(o(e, "--upf-color-info"), o(e, "--upf-bg-primary"), 0.32, "#B3D5FF");
1352
- }
1353
- }, {
1354
- target: "--upf-message-close-hover",
1355
- resolve: function resolve(_ref46) {
1356
- var e = _ref46.variables;
1357
- return o(e, "--upf-color-primary") || "#5582F3";
1358
- }
1359
- }, {
1360
- target: "--upf-message-success-bg",
1361
- resolve: function resolve(_ref47) {
1362
- var e = _ref47.variables,
1363
- r = _ref47.mixHexColor;
1364
- return r(o(e, "--upf-color-success"), o(e, "--upf-bg-primary"), 0.16, "#DCFAE4");
1365
- }
1366
- }, {
1367
- target: "--upf-message-success-text",
1368
- resolve: function resolve(_ref48) {
1369
- var e = _ref48.variables;
1370
- return o(e, "--upf-color-success") || "#1BA854";
1371
- }
1372
- }, {
1373
- target: "--upf-message-success-border",
1374
- resolve: function resolve(_ref49) {
1375
- var e = _ref49.variables,
1376
- r = _ref49.mixHexColor;
1377
- return r(o(e, "--upf-color-success"), o(e, "--upf-bg-primary"), 0.32, "#A1E6B5");
1378
- }
1379
- }, {
1380
- target: "--upf-message-info-bg",
1381
- resolve: function resolve(_ref50) {
1382
- var e = _ref50.result;
1383
- return e["--upf-message-bg"] || "#E0EFFF";
1384
- }
1385
- }, {
1386
- target: "--upf-message-info-text",
1387
- resolve: function resolve(_ref51) {
1388
- var e = _ref51.result;
1389
- return e["--upf-message-text"] || "#0E5FD8";
1390
- }
1391
- }, {
1392
- target: "--upf-message-info-border",
1393
- resolve: function resolve(_ref52) {
1394
- var e = _ref52.result;
1395
- return e["--upf-message-border"] || "#B3D5FF";
1396
- }
1397
- }, {
1398
- target: "--upf-message-warning-bg",
1399
- resolve: function resolve(_ref53) {
1400
- var e = _ref53.variables,
1401
- r = _ref53.mixHexColor;
1402
- return r(o(e, "--upf-color-warning"), o(e, "--upf-bg-primary"), 0.16, "#FFF1D4");
1403
- }
1404
- }, {
1405
- target: "--upf-message-warning-text",
1406
- resolve: function resolve(_ref54) {
1407
- var e = _ref54.variables;
1408
- return o(e, "--upf-color-warning") || "#FF991C";
1409
- }
1410
- }, {
1411
- target: "--upf-message-warning-border",
1412
- resolve: function resolve(_ref55) {
1413
- var e = _ref55.variables,
1414
- r = _ref55.mixHexColor;
1415
- return r(o(e, "--upf-color-warning"), o(e, "--upf-bg-primary"), 0.32, "#FFE0A6");
1416
- }
1417
- }, {
1418
- target: "--upf-message-error-bg",
1419
- resolve: function resolve(_ref56) {
1420
- var e = _ref56.variables,
1421
- r = _ref56.mixHexColor;
1422
- return r(o(e, "--upf-color-error"), o(e, "--upf-bg-primary"), 0.14, "#FFDBE0");
1423
- }
1424
- }, {
1425
- target: "--upf-message-error-text",
1426
- resolve: function resolve(_ref57) {
1427
- var e = _ref57.variables;
1428
- return o(e, "--upf-color-error") || "#FB2323";
1429
- }
1430
- }, {
1431
- target: "--upf-message-error-border",
1432
- resolve: function resolve(_ref58) {
1433
- var e = _ref58.variables,
1434
- r = _ref58.mixHexColor;
1435
- return r(o(e, "--upf-color-error"), o(e, "--upf-bg-primary"), 0.32, "#FFADB6");
1436
- }
1437
- }, {
1438
- target: "--upf-notification-bg",
1439
- resolve: function resolve(_ref59) {
1440
- var e = _ref59.variables;
1441
- return o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary");
1442
- }
1443
- }, {
1444
- target: "--upf-notification-close-hover",
1445
- resolve: function resolve(_ref60) {
1446
- var e = _ref60.variables;
1447
- return o(e, "--upf-color-primary") || "#5582F3";
1448
- }
1449
- }, {
1450
- target: "--upf-text-tooltip-bg",
1451
- resolve: function resolve(_ref61) {
1452
- var e = _ref61.variables;
1453
- return o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary");
1454
- }
1455
- }, {
1456
- target: "--upf-text-tooltip-shadow-color",
1457
- resolve: function resolve(_ref62) {
1458
- var e = _ref62.toRgbaColor;
1459
- return e("#262626", 0.16, "rgba(38, 38, 38, 0.16)");
1460
- }
1461
- }, {
1462
- target: "--upf-app-container-app-bg-override",
1463
- from: "--upf-nav-bg"
1464
- }, {
1465
- target: "--upf-app-container-app-text-override",
1466
- from: "--upf-nav-text"
1467
- }]),
1468
- ge = function ge(e) {
1469
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1470
- return x(e, ce, r);
1471
- },
1472
- de = function de(e) {
1473
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1474
- return x(e, se, r);
1475
- },
1476
- be = function be(e) {
1477
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1478
- return x(e, pe, r);
1479
- },
1480
- he = function he(e) {
1481
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1482
- return x(e, me, r);
1483
- },
1484
- ye = function ye(e) {
1485
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1486
- var t = $(e),
1487
- _r$includeElementAndD = r.includeElementAndDasUiBridges,
1488
- a = _r$includeElementAndD === void 0 ? true : _r$includeElementAndD,
1489
- u = r.themeName,
1490
- l = r.basePresetName,
1491
- n = {
1492
- themeName: u,
1493
- basePresetName: l
1494
- },
1495
- c = he(t, n),
1496
- f = _objectSpread(_objectSpread({}, t), c);
1497
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, t), c), a ? de(f, n) : {}), a ? be(f, n) : {}), ge(f, n));
1498
- },
1499
- M = "themeChange",
1500
- k = "upf-theme-root-vars",
1501
- O = /* @__PURE__ */new WeakMap(),
1502
- I = /* @__PURE__ */new WeakSet(),
1503
- y = /* @__PURE__ */new WeakMap(),
1504
- h = function h(e) {
1505
- return e ? Object.entries(e).reduce(function (r, _ref63) {
1506
- var _ref64 = _slicedToArray(_ref63, 2),
1507
- t = _ref64[0],
1508
- a = _ref64[1];
1509
- return r[t] = String(a !== null && a !== void 0 ? a : ""), r;
1510
- }, {}) : null;
1511
- },
1512
- _ = function _(e) {
1513
- return e || ((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" ? null : document.documentElement);
1514
- },
1515
- W = function W(e) {
1516
- return !!(e && String(e.tagName || "").toLowerCase() === "style");
1517
- },
1518
- H = function H(e) {
1519
- return e.head || e.documentElement;
1520
- },
1521
- G = function G(e, r) {
1522
- var t = H(e);
1523
- t && (r.parentNode !== t || t.lastElementChild !== r) && t.appendChild(r);
1524
- },
1525
- z = function z(e) {
1526
- var u;
1527
- if (I.has(e)) return;
1528
- var r = H(e),
1529
- t = ((u = e.defaultView) == null ? undefined : u.MutationObserver) || ((typeof MutationObserver === "undefined" ? "undefined" : _typeof(MutationObserver)) < "u" ? MutationObserver : undefined);
1530
- if (!r || !t) return;
1531
- new t(function () {
1532
- var l = e.getElementById(k);
1533
- W(l) && G(e, l);
1534
- }).observe(r, {
1535
- childList: true
1536
- }), I.add(e);
1537
- },
1538
- ve = function ve(e) {
1539
- var r = e.getElementById(k);
1540
- if (W(r)) return G(e, r), z(e), r;
1541
- var t = e.createElement("style");
1542
- return t.id = k, H(e).appendChild(t), z(e), t;
1543
- },
1544
- xe = function xe(e) {
1545
- var r = Object.entries(e).filter(function (_ref65) {
1546
- var _ref66 = _slicedToArray(_ref65, 2),
1547
- t = _ref66[1];
1548
- return String(t !== null && t !== void 0 ? t : "").trim();
1549
- }).map(function (_ref67) {
1550
- var _ref68 = _slicedToArray(_ref67, 2),
1551
- t = _ref68[0],
1552
- a = _ref68[1];
1553
- return " ".concat(t, ": ").concat(String(a !== null && a !== void 0 ? a : ""), ";");
1554
- }).join("\n");
1555
- return r ? ":root {\n".concat(r, "\n}") : ":root {}";
1556
- },
1557
- P = function P(e, r) {
1558
- if (!e.length || !r.length) return;
1559
- var t = new Set(r);
1560
- for (var a = e.length - 1; a >= 0; a--) {
1561
- var u = e[a];
1562
- t.has(u) && e.removeProperty(u);
1563
- }
1564
- },
1565
- Ce = function Ce(e, r) {
1566
- var t = ve(e),
1567
- a = xe(r);
1568
- (O.get(e) !== a || t.textContent !== a) && (t.textContent = a, O.set(e, a));
1569
- var u = Object.keys(r);
1570
- P(e.documentElement.style, u), e.body && P(e.body.style, u);
1571
- },
1572
- Fe = function Fe(e) {
1573
- (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
1574
- },
1575
- we = function we(e, r) {
1576
- var t = h(r) || {},
1577
- a = e.ownerDocument || document;
1578
- y.set(e, t);
1579
- var u = e === a.documentElement || e === a.body;
1580
- u && y.set(a, t), u && (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
1581
- },
1582
- Ee = function Ee(e) {
1583
- var r = _(e),
1584
- t = (r == null ? undefined : r.ownerDocument) || ((typeof document === "undefined" ? "undefined" : _typeof(document)) < "u" ? document : null),
1585
- a = (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
1586
- return (r ? y.get(r) : null) || (t ? y.get(t) : null) || a;
1587
- },
1588
- Te = function Te() {
1589
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1590
- var r;
1591
- if ((typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" || !window.name) return null;
1592
- try {
1593
- var t = JSON.parse(window.name),
1594
- a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
1595
- return !(a != null && a.variables) || _typeof(a.variables) != "object" ? null : {
1596
- themeName: String(a.themeName || ""),
1597
- config: a.config || null,
1598
- variables: a.variables,
1599
- timestamp: Number(a.timestamp) || Date.now()
1600
- };
1601
- } catch (_unused) {
1602
- return null;
1603
- }
1604
- },
1605
- ke = function ke(e, r) {
1606
- if (r !== undefined) return r;
1607
- var t = e.config || {};
1608
- return String(t.basePresetName || t.name || e.themeName || "").trim() || null;
1609
- },
1610
- Se = function Se(e) {
1611
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1612
- var t = _(r.root);
1613
- if (!t) return {};
1614
- var a = $(e),
1615
- u = r.includeBridges === false ? Object.entries(a).reduce(function (n, _ref69) {
1616
- var _ref70 = _slicedToArray(_ref69, 2),
1617
- c = _ref70[0],
1618
- f = _ref70[1];
1619
- return n[c] = String(f !== null && f !== void 0 ? f : ""), n;
1620
- }, {}) : ye(a, {
1621
- includeElementAndDasUiBridges: r.includeElementAndDasUiBridges,
1622
- themeName: r.themeName,
1623
- basePresetName: r.basePresetName
1624
- }),
1625
- l = t.ownerDocument || document;
1626
- return t === l.documentElement || t === l.body ? Ce(l, u) : Object.entries(u).forEach(function (_ref71) {
1627
- var _ref72 = _slicedToArray(_ref71, 2),
1628
- n = _ref72[0],
1629
- c = _ref72[1];
1630
- t.style.getPropertyValue(n) !== c && t.style.setProperty(n, c);
1631
- }), we(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
1632
- },
1633
- K = function K(e) {
1634
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1635
- var t = e.config || {},
1636
- a = Se(e.variables || {}, _objectSpread(_objectSpread({}, r), {}, {
1637
- themeName: r.themeName || e.themeName,
1638
- basePresetName: r.basePresetName || String(t.basePresetName || t.name || ""),
1639
- skinName: ke(e, r.skinName)
1640
- }));
1641
- return Fe(e), a;
1642
- },
1643
- E = function E(e, r) {
1644
- var t = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
1645
- try {
1646
- return e && e.__THEME_API__ || null;
1647
- } catch (_unused2) {
1648
- return null;
1649
- }
1650
- },
1651
- C = function C() {
1652
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
1653
- return (typeof window === "undefined" ? "undefined" : _typeof(window)) > "u" ? null : E(window, "current", e) || E(window.parent, "parent", e) || E(window.top, "top", e);
1654
- },
1655
- A = function A() {
1656
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1657
- var r = C(e.debug),
1658
- t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1659
- if (t) return t;
1660
- var a = ((typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1661
- return a || Te(e.debug);
1662
- },
1663
- _e = function _e() {
1664
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1665
- var r = Ee(e.root);
1666
- if (r) return h(r);
1667
- var t = A(e);
1668
- if (t != null && t.variables) return h(t.variables);
1669
- var a = C(e.debug);
1670
- if (!a) return null;
1671
- var u = a.getVariables ? a.getVariables() : null;
1672
- return h(u);
1673
- },
1674
- He = function He(e) {
1675
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1676
- var t = C(r);
1677
- return t != null && t.changeTheme ? (t.changeTheme(e), true) : false;
1678
- },
1679
- q = function q() {
1680
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1681
- var r = A(e);
1682
- return r ? (K(r, e), r) : (e.debug, null);
1683
- },
1684
- Ae = function Ae(e) {
1685
- var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1686
- try {
1687
- var t = mframe.bus("microApp");
1688
- return t.event.on(M, e), function () {
1689
- t.event.off(M, e);
1690
- };
1691
- } catch (_unused3) {
1692
- return null;
1693
- }
1694
- },
1695
- Ve = function Ve(e, r) {
1696
- return e != null && e.onThemeChange ? e.onThemeChange(r) : null;
1697
- },
1698
- Be = function Be(e) {
1699
- return e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "";
1700
- },
1701
- De = function De(e) {
1702
- var r = "";
1703
- return function (t) {
1704
- var a = Be(t);
1705
- a && a === r || (r = a, e(t));
1706
- };
1707
- },
1708
- Ne = function Ne(e, r) {
1709
- var t = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1710
- var a = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
1711
- var u = De(r),
1712
- l = Ve(e, u),
1713
- n = Ae(u, a),
1714
- f = (t ? [l, n] : [n, l]).filter(Boolean);
1715
- return f.length ? function () {
1716
- f.forEach(function (s) {
1717
- return s();
1718
- });
1719
- } : null;
1720
- },
1721
- Re = function Re() {
1722
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1723
- var _e$syncOnInit = e.syncOnInit,
1724
- r = _e$syncOnInit === void 0 ? true : _e$syncOnInit,
1725
- _e$preferWindowSubscr = e.preferWindowSubscription,
1726
- t = _e$preferWindowSubscr === void 0 ? false : _e$preferWindowSubscr,
1727
- a = e.onThemeChange,
1728
- _e$debug = e.debug,
1729
- u = _e$debug === void 0 ? true : _e$debug,
1730
- l = _objectWithoutProperties(e, _excluded),
1731
- n = C(u);
1732
- var c = false,
1733
- f = null,
1734
- s = null;
1735
- var m = function m() {
1736
- c || q(_objectSpread(_objectSpread({}, l), {}, {
1737
- debug: u
1738
- }));
1739
- },
1740
- F = Ne(n, function (d) {
1741
- K(d, l), a && (d == null ? undefined : d.source) !== "mountSync" && a(d);
1742
- }, t, u);
1743
- return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : function (Y) {
1744
- return Promise.resolve().then(Y);
1745
- })(m), typeof requestAnimationFrame == "function" ? f = requestAnimationFrame(function () {
1746
- f = null, m();
1747
- }) : s = setTimeout(function () {
1748
- s = null, m();
1749
- }, 16)), function () {
1750
- c = true, f !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(f), f = null), s !== null && (clearTimeout(s), s = null), F == null || F();
1751
- };
1752
- },
1753
- Me = function Me(e, r) {
1754
- var _ref73;
1755
- var l;
1756
- var t = _(r),
1757
- a = String(e || "").trim();
1758
- if (!t || !a) return "";
1759
- var u = (typeof getComputedStyle === "undefined" ? "undefined" : _typeof(getComputedStyle)) > "u" ? "" : getComputedStyle(t).getPropertyValue(a).trim();
1760
- return u || String((_ref73 = (l = _e({
1761
- root: t,
1762
- debug: false
1763
- })) == null ? undefined : l[a]) !== null && _ref73 !== void 0 ? _ref73 : "");
1764
- },
1765
- ze = function ze() {
1766
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1767
- var r = vue.ref("default");
1768
- var t = null;
1769
- return vue.onMounted(function () {
1770
- t = Re(_objectSpread(_objectSpread({}, e), {}, {
1771
- onThemeChange: function onThemeChange(u) {
1772
- r.value = u.themeName, e.onThemeChange && e.onThemeChange(u);
1773
- }
1774
- }));
1775
- var a = A({
1776
- debug: e.debug
1777
- });
1778
- a && (r.value = a.themeName);
1779
- }), vue.onUnmounted(function () {
1780
- t == null || t();
1781
- }), {
1782
- currentTheme: r,
1783
- getVariable: function getVariable(a) {
1784
- return Me(a, e.root);
1785
- },
1786
- syncTheme: function syncTheme() {
1787
- return q(e);
1788
- },
1789
- changeTheme: function changeTheme(a) {
1790
- return He(a, e.debug);
1791
- }
1792
- };
1793
- };
1794
- exports.useSubAppTheme = ze;