@das-fed/upf-utils 6.4.0-hot.13 → 6.4.0-hot.14

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 (135) hide show
  1. package/api-services/es5.js +1811 -1697
  2. package/api-services/index.js +1456 -1363
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +2116 -2001
  5. package/api-services/modules/app-manage/index.js +1846 -1752
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1769 -1666
  8. package/api-services/modules/authentication/index.js +1509 -1433
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1732 -1629
  11. package/api-services/modules/bems/index.js +1468 -1392
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1769 -1666
  14. package/api-services/modules/contract/index.js +1509 -1433
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1953 -1850
  17. package/api-services/modules/duty-manage/index.js +1688 -1612
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1769 -1666
  20. package/api-services/modules/enterpriseright/index.js +1509 -1433
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1394 -1292
  23. package/api-services/modules/file/es5.js +1701 -1611
  24. package/api-services/modules/file/index.js +1411 -1354
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1769 -1666
  27. package/api-services/modules/gateway-edge/index.js +1509 -1433
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1063 -988
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +2005 -1890
  32. package/api-services/modules/iot/index.js +1741 -1647
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1945 -1845
  35. package/api-services/modules/justauth/index.js +1672 -1600
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +2115 -2003
  38. package/api-services/modules/knowledge/index.js +1846 -1756
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1769 -1666
  41. package/api-services/modules/link/index.js +1509 -1433
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1769 -1666
  44. package/api-services/modules/permission/index.js +1509 -1433
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +2068 -1977
  47. package/api-services/modules/platformManage/index.js +1829 -1771
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1769 -1666
  50. package/api-services/modules/portal/index.js +1509 -1433
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1950 -1847
  53. package/api-services/modules/space-manage/index.js +1681 -1605
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1942 -1851
  56. package/api-services/modules/super-admin/index.js +1685 -1627
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1771 -1668
  59. package/api-services/modules/supplier/index.js +1511 -1435
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +2116 -2001
  62. package/api-services/modules/supplychain-manage/index.js +1846 -1752
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1769 -1666
  65. package/api-services/modules/systemConfiguration/index.js +1509 -1433
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +2116 -2001
  68. package/api-services/modules/tool/index.js +1846 -1752
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +2114 -1999
  71. package/api-services/src/create-service/index.js +1844 -1750
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +2125 -2034
  74. package/common-info/getPermissionMethod/es5.js +1943 -1852
  75. package/common-info/getPermissionMethod/index.js +1700 -1642
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +1856 -1798
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/timezone-format/es5.d.ts +56 -2
  80. package/common-tools/timezone-format/es5.js +778 -512
  81. package/common-tools/timezone-format/index.d.ts +56 -2
  82. package/common-tools/timezone-format/index.js +539 -323
  83. package/common-tools/timezone-format/index.js.gz +0 -0
  84. package/create-api-service/es5.js +2115 -2000
  85. package/create-api-service/index.js +1845 -1751
  86. package/create-api-service/index.js.gz +0 -0
  87. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +29 -0
  88. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +19826 -0
  89. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js.gz +0 -0
  90. package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +55 -0
  91. package/dimple-canvas/use-dimple-canvas/core/konva/index.js +116 -0
  92. package/dimple-canvas/use-dimple-canvas/core/konva/index.js.gz +0 -0
  93. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +104 -0
  94. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +17 -0
  95. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +8 -0
  96. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +51 -0
  97. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js.gz +0 -0
  98. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +5 -0
  99. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +14 -0
  100. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +7 -0
  101. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +5 -0
  102. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +5 -0
  103. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +180 -0
  104. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js.gz +0 -0
  105. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +4 -0
  106. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +7535 -0
  107. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js.gz +0 -0
  108. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +6 -0
  109. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +13 -0
  110. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +6 -0
  111. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +7 -0
  112. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +8 -0
  113. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +193 -0
  114. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js.gz +0 -0
  115. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +11 -0
  116. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +20 -0
  117. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +5 -0
  118. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +52 -0
  119. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js.gz +0 -0
  120. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +4 -0
  121. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +14 -0
  122. package/dimple-canvas/use-dimple-canvas/es5.d.ts +9 -0
  123. package/dimple-canvas/use-dimple-canvas/es5.js +20 -0
  124. package/dimple-canvas/use-dimple-canvas/index.d.ts +9 -0
  125. package/dimple-canvas/use-dimple-canvas/index.js +10 -0
  126. package/esm-map.json +31 -1
  127. package/package.json +3 -3
  128. package/theme/bridge.d.ts +42 -0
  129. package/theme/color.d.ts +7 -0
  130. package/theme/es5.d.ts +15 -32
  131. package/theme/es5.js +1120 -651
  132. package/theme/index.d.ts +15 -32
  133. package/theme/index.js +720 -468
  134. package/theme/index.js.gz +0 -0
  135. package/theme/source-variables.d.ts +35 -0
package/theme/index.js CHANGED
@@ -1,233 +1,380 @@
1
- import { bus as q } from "@das-fed/mframe";
2
- const J = {
3
- "--upf-brand-primary": "#ffffff",
4
- "--upf-brand-secondary": "#f2f6ff",
5
- "--upf-color-primary": "#5582f3",
1
+ import { bus as se } from "@das-fed/mframe";
2
+ const m = "#ffffff", d = "#000000", fe = 0.115, X = (e) => {
3
+ const r = String(e || "").trim();
4
+ return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
5
+ }, B = (e) => {
6
+ const r = X(e);
7
+ if (!r)
8
+ return null;
9
+ const t = r.slice(1);
10
+ return {
11
+ red: Number.parseInt(t.slice(0, 2), 16),
12
+ green: Number.parseInt(t.slice(2, 4), 16),
13
+ blue: Number.parseInt(t.slice(4, 6), 16)
14
+ };
15
+ }, H = (e) => Math.min(255, Math.max(0, Math.round(e))), Q = (e, r, t, o) => {
16
+ const u = B(e), n = B(r);
17
+ if (!u || !n)
18
+ return o;
19
+ const l = Math.min(1, Math.max(0, t)), i = H(u.red * l + n.red * (1 - l)), s = H(u.green * l + n.green * (1 - l)), c = H(u.blue * l + n.blue * (1 - l));
20
+ return `#${[i, s, c].map((p) => p.toString(16).padStart(2, "0")).join("")}`;
21
+ }, ce = (e, r, t) => {
22
+ const o = B(e);
23
+ if (!o)
24
+ return t;
25
+ const u = Math.min(1, Math.max(0, r));
26
+ return `rgba(${o.red}, ${o.green}, ${o.blue}, ${u})`;
27
+ }, D = (e, r = m) => Q(e || "#5582F3", r || m, fe, "#ebf1fe"), z = "#5582f3", j = "#e63946", pe = [
28
+ {
29
+ group: "foundation",
30
+ name: "brand",
31
+ displayName: "品牌基因",
32
+ shortDisplayName: "品牌",
33
+ description: "品牌识别专用颜色,用于Logo、品牌元素等",
34
+ variables: ["--upf-brand-primary", "--upf-brand-secondary"]
35
+ },
36
+ {
37
+ group: "foundation",
38
+ name: "basic",
39
+ displayName: "交互与状态色",
40
+ shortDisplayName: "交互色",
41
+ description: "交互主色与状态反馈色,用于按钮、状态、标签等交互元素",
42
+ variables: [
43
+ "--upf-color-primary",
44
+ "--upf-color-primary-bg",
45
+ "--upf-color-success",
46
+ "--upf-color-warning",
47
+ "--upf-color-error",
48
+ "--upf-color-info"
49
+ ]
50
+ },
51
+ {
52
+ group: "foundation",
53
+ name: "text",
54
+ displayName: "文本色",
55
+ description: "文本层级颜色,用于标题、正文、辅助说明等",
56
+ variables: ["--upf-text-primary", "--upf-text-secondary", "--upf-text-disabled", "--upf-text-placeholder"]
57
+ },
58
+ {
59
+ group: "foundation",
60
+ name: "background",
61
+ displayName: "页面与容器背景",
62
+ shortDisplayName: "背景色",
63
+ description: "背景层级颜色,用于页面、卡片、弹窗等容器背景",
64
+ variables: ["--upf-bg-primary", "--upf-bg-secondary", "--upf-bg-elevated", "--upf-bg-mask"]
65
+ },
66
+ {
67
+ group: "foundation",
68
+ name: "border",
69
+ displayName: "边框与分割线",
70
+ shortDisplayName: "边框分割",
71
+ description: "边框和分割线颜色",
72
+ variables: ["--upf-border-color", "--upf-divider-color"]
73
+ },
74
+ {
75
+ group: "shell",
76
+ name: "nav",
77
+ displayName: "顶部导航",
78
+ description: "顶部导航栏相关颜色",
79
+ variables: ["--upf-nav-bg", "--upf-nav-border-color", "--upf-nav-text", "--upf-nav-hover-bg", "--upf-nav-active-bg", "--upf-nav-active-text"]
80
+ },
81
+ {
82
+ group: "shell",
83
+ name: "menu",
84
+ displayName: "侧边菜单",
85
+ description: "左侧菜单相关颜色",
86
+ variables: [
87
+ "--upf-menu-bg",
88
+ "--upf-menu-text",
89
+ "--upf-menu-hover-bg",
90
+ "--upf-menu-active-bg",
91
+ "--upf-menu-active-text",
92
+ "--upf-menu-submenu-bg"
93
+ ]
94
+ },
95
+ {
96
+ group: "shell",
97
+ name: "tab",
98
+ displayName: "标签页",
99
+ description: "标签页相关颜色",
100
+ variables: ["--upf-tab-bg", "--upf-tab-text", "--upf-tab-hover-bg", "--upf-tab-active-bg", "--upf-tab-active-text"]
101
+ },
102
+ {
103
+ group: "foundation",
104
+ name: "effect",
105
+ displayName: "圆角与阴影",
106
+ shortDisplayName: "圆角阴影",
107
+ description: "圆角和阴影等样式效果",
108
+ variables: ["--upf-border-radius", "--upf-box-shadow", "--upf-box-shadow-elevated"]
109
+ }
110
+ ], S = [
111
+ { name: "--upf-brand-primary", label: "品牌主色", hint: "品牌主色,建议用于导航背景、Logo等品牌识别场景", category: "brand" },
112
+ { name: "--upf-brand-secondary", label: "品牌辅色", hint: "品牌辅色,用于辅助品牌识别和强调元素", category: "brand" },
113
+ { name: "--upf-color-primary", label: "主色", hint: "功能主色,用于按钮、交互元素、状态反馈", category: "basic" },
114
+ {
115
+ name: "--upf-color-primary-bg",
116
+ label: "主色高亮背景",
117
+ hint: "主色配套高亮背景,默认跟随主色自动生成透明背景,也可手动覆盖",
118
+ category: "basic",
119
+ fallback: (e) => D(e["--upf-color-primary"], e["--upf-bg-primary"]),
120
+ fallbackDeps: ["--upf-color-primary", "--upf-bg-primary"]
121
+ },
122
+ { name: "--upf-color-success", label: "成功色", hint: "成功状态色,用于成功提示、成功按钮", category: "basic" },
123
+ { name: "--upf-color-warning", label: "警告色", hint: "警告状态色,用于警告提示、注意信息", category: "basic" },
124
+ { name: "--upf-color-error", label: "错误色", hint: "错误状态色,用于错误提示、删除操作", category: "basic" },
125
+ { name: "--upf-color-info", label: "信息色", hint: "信息状态色,用于信息提示、普通消息", category: "basic" },
126
+ { name: "--upf-text-primary", label: "主要文本", hint: "主要文本,用于标题、重要内容", category: "text" },
127
+ { name: "--upf-text-secondary", label: "次要文本", hint: "次要文本,用于辅助说明、描述文字", category: "text" },
128
+ { name: "--upf-text-disabled", label: "禁用文本", hint: "禁用文本,用于禁用状态下的文字", category: "text" },
129
+ { name: "--upf-text-placeholder", label: "占位文本", hint: "占位文本,用于输入框占位符", category: "text" },
130
+ { name: "--upf-bg-primary", label: "主背景", hint: "主背景,用于页面整体背景", category: "background" },
131
+ { name: "--upf-bg-secondary", label: "次背景", hint: "次背景,用于卡片、容器背景", category: "background" },
132
+ { name: "--upf-bg-elevated", label: "浮层背景", hint: "浮层背景,用于弹窗、下拉浮层", category: "background" },
133
+ { name: "--upf-bg-mask", label: "遮罩背景", hint: "遮罩背景,用于全屏遮罩层", category: "background" },
134
+ { name: "--upf-border-color", label: "边框色", hint: "边框色,用于组件边框、分割线", category: "border" },
135
+ { name: "--upf-divider-color", label: "分割线色", hint: "分割线色,用于内容分割线", category: "border" },
136
+ { name: "--upf-nav-bg", label: "导航背景", hint: "导航背景色,建议使用品牌主色", category: "nav" },
137
+ {
138
+ name: "--upf-nav-border-color",
139
+ label: "导航边框",
140
+ hint: "导航边框色,用于顶部导航底部分割线",
141
+ category: "nav",
142
+ fallback: ["--upf-divider-color", "--upf-border-color"],
143
+ fallbackDeps: ["--upf-divider-color", "--upf-border-color"]
144
+ },
145
+ { name: "--upf-nav-text", label: "导航文本", hint: "导航文本色,用于导航栏文字", category: "nav" },
146
+ { name: "--upf-nav-hover-bg", label: "导航悬停", hint: "导航悬停背景,用于导航项悬停状态", category: "nav" },
147
+ { name: "--upf-nav-active-bg", label: "导航激活", hint: "导航激活背景,用于导航项激活状态", category: "nav" },
148
+ { name: "--upf-nav-active-text", label: "导航激活文本", hint: "导航激活文本,用于导航项激活状态文字", category: "nav" },
149
+ { name: "--upf-menu-bg", label: "菜单背景", hint: "菜单背景,用于侧边菜单背景", category: "menu" },
150
+ { name: "--upf-menu-text", label: "菜单文本", hint: "菜单文本,用于菜单项文字", category: "menu" },
151
+ { name: "--upf-menu-hover-bg", label: "菜单悬停", hint: "菜单悬停背景,用于菜单项悬停状态", category: "menu" },
152
+ { name: "--upf-menu-active-bg", label: "菜单激活", hint: "菜单激活背景,用于菜单项激活状态", category: "menu" },
153
+ { name: "--upf-menu-active-text", label: "菜单激活文本", hint: "菜单激活文本,建议使用功能主色", category: "menu" },
154
+ { name: "--upf-menu-submenu-bg", label: "子菜单背景", hint: "子菜单背景,用于子菜单展开背景", category: "menu" },
155
+ { name: "--upf-tab-bg", label: "标签背景", hint: "标签背景,用于标签页背景", category: "tab" },
156
+ { name: "--upf-tab-text", label: "标签文本", hint: "标签文本,用于标签页文字", category: "tab" },
157
+ { name: "--upf-tab-hover-bg", label: "标签悬停", hint: "标签悬停背景,用于标签页悬停状态", category: "tab" },
158
+ { name: "--upf-tab-active-bg", label: "标签激活", hint: "标签激活背景,用于标签页激活状态", category: "tab" },
159
+ { name: "--upf-tab-active-text", label: "标签激活文本", hint: "标签激活文本,建议使用功能主色", category: "tab" },
160
+ { name: "--upf-border-radius", label: "圆角", hint: "圆角大小,用于组件圆角", category: "effect" },
161
+ { name: "--upf-box-shadow", label: "阴影", hint: "阴影效果,用于普通阴影", category: "effect" },
162
+ { name: "--upf-box-shadow-elevated", label: "浮层阴影", hint: "浮层阴影,用于弹窗、浮层阴影", category: "effect" }
163
+ ], me = S.map((e) => e.name), de = S.reduce((e, r) => (e[r.name] = r.label, e), {}), ge = S.reduce((e, r) => (e[r.name] = r.hint, e), {}), be = {
164
+ "--upf-nav-bg": "--upf-brand-primary",
165
+ "--upf-color-primary-bg": "--upf-color-primary",
166
+ "--upf-menu-active-text": "--upf-color-primary",
167
+ "--upf-tab-active-text": "--upf-color-primary"
168
+ }, v = {
169
+ "--upf-color-primary": z,
170
+ "--upf-color-primary-bg": D(z),
6
171
  "--upf-color-success": "#52c41a",
7
172
  "--upf-color-warning": "#faad14",
8
173
  "--upf-color-error": "#ff4d4f",
9
174
  "--upf-color-info": "#1890ff",
10
- "--upf-text-primary": "#212121",
11
- "--upf-text-secondary": "#666666",
12
175
  "--upf-text-disabled": "#B2B2B2",
13
- "--upf-text-placeholder": "#bfbfbf",
14
176
  "--upf-bg-primary": "#ffffff",
15
177
  "--upf-bg-secondary": "#F2F2F2",
16
178
  "--upf-bg-elevated": "#ffffff",
17
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
18
179
  "--upf-border-color": "#D9D9D9",
19
- "--upf-divider-color": "#ebeff5",
20
- "--upf-nav-bg": "#ffffff",
21
- "--upf-nav-text": "#212121",
22
- "--upf-nav-hover-bg": "#f2f6ff",
23
- "--upf-nav-active-bg": "#f2f6ff",
24
- "--upf-nav-active-text": "#5582f3",
25
- "--upf-menu-bg": "#ffffff",
26
- "--upf-menu-text": "#212121",
27
- "--upf-menu-hover-bg": "#f2f2f2",
28
- "--upf-menu-active-bg": "#f2f6ff",
29
- "--upf-menu-active-text": "#5582f3",
30
- "--upf-menu-submenu-bg": "#ffffff",
180
+ "--upf-nav-border-color": "rgba(235, 239, 245, 1)",
31
181
  "--upf-tab-bg": "#ffffff",
32
182
  "--upf-tab-text": "#666666",
33
- "--upf-tab-hover-bg": "#f2f6ff",
34
183
  "--upf-tab-active-bg": "#ffffff",
35
- "--upf-tab-active-text": "#5582f3",
36
- "--upf-border-radius": "4px",
37
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
38
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
39
- }, Y = {
184
+ "--upf-border-radius": "4px"
185
+ }, y = {
186
+ default: {
187
+ ...v,
188
+ "--upf-brand-primary": "#0e5fd8",
189
+ "--upf-brand-secondary": "#3579de",
190
+ "--upf-text-primary": "#231815",
191
+ "--upf-text-secondary": "#666666",
192
+ "--upf-text-placeholder": "#bfbfbf",
193
+ "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
194
+ "--upf-divider-color": "#ebeff5",
195
+ "--upf-nav-bg": "#0e5fd8",
196
+ "--upf-nav-text": "#ffffff",
197
+ "--upf-nav-hover-bg": "#3579de",
198
+ "--upf-nav-active-bg": "#3579de",
199
+ "--upf-nav-active-text": "#ffffff",
200
+ "--upf-menu-bg": "#ffffff",
201
+ "--upf-menu-text": "#231815",
202
+ "--upf-menu-hover-bg": "#f2f2f2",
203
+ "--upf-menu-active-bg": "#eef3fe",
204
+ "--upf-menu-active-text": "#5582f3",
205
+ "--upf-menu-submenu-bg": "#ffffff",
206
+ "--upf-tab-hover-bg": "#eef3fe",
207
+ "--upf-tab-active-text": "#5582f3",
208
+ "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
209
+ "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
210
+ },
211
+ cjb: {
212
+ ...v,
213
+ "--upf-brand-primary": "#ffffff",
214
+ "--upf-brand-secondary": "#f2f6ff",
215
+ "--upf-text-primary": "#212121",
216
+ "--upf-text-secondary": "#666666",
217
+ "--upf-text-placeholder": "#bfbfbf",
218
+ "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
219
+ "--upf-divider-color": "#ebeff5",
220
+ "--upf-nav-bg": "#ffffff",
221
+ "--upf-nav-text": "#212121",
222
+ "--upf-nav-hover-bg": "#f2f6ff",
223
+ "--upf-nav-active-bg": "#f2f6ff",
224
+ "--upf-nav-active-text": "#5582f3",
225
+ "--upf-menu-bg": "#ffffff",
226
+ "--upf-menu-text": "#212121",
227
+ "--upf-menu-hover-bg": "#f2f2f2",
228
+ "--upf-menu-active-bg": "#f2f6ff",
229
+ "--upf-menu-active-text": "#5582f3",
230
+ "--upf-menu-submenu-bg": "#ffffff",
231
+ "--upf-tab-hover-bg": "#f2f6ff",
232
+ "--upf-tab-active-text": "#5582f3",
233
+ "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
234
+ "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
235
+ },
236
+ ssl: {
237
+ ...v,
238
+ "--upf-brand-primary": "#1f2346",
239
+ "--upf-brand-secondary": "#2d3158",
240
+ "--upf-text-primary": "#231815",
241
+ "--upf-text-secondary": "#666666",
242
+ "--upf-text-placeholder": "#b8c0cc",
243
+ "--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
244
+ "--upf-divider-color": "rgba(235, 239, 245, 1)",
245
+ "--upf-nav-bg": "#1f2346",
246
+ "--upf-nav-border-color": "rgba(235, 239, 245, 0.1)",
247
+ "--upf-nav-text": "#ffffff",
248
+ "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
249
+ "--upf-nav-active-bg": "#5582f3",
250
+ "--upf-nav-active-text": "#ffffff",
251
+ "--upf-menu-bg": "#1f2346",
252
+ "--upf-menu-text": "#ffffff",
253
+ "--upf-menu-hover-bg": "#2d3158",
254
+ "--upf-menu-active-bg": "#2d3158",
255
+ "--upf-menu-active-text": "#ffffff",
256
+ "--upf-menu-submenu-bg": "#171b36",
257
+ "--upf-tab-hover-bg": "#f2f6ff",
258
+ "--upf-tab-active-text": "#5582f3",
259
+ "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
260
+ "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
261
+ },
262
+ dkh: {
263
+ ...v,
264
+ "--upf-brand-primary": "#eb0e1b",
265
+ "--upf-brand-secondary": "#f15760",
266
+ "--upf-color-primary": j,
267
+ "--upf-color-primary-bg": D(j),
268
+ "--upf-text-primary": "#231815",
269
+ "--upf-text-secondary": "#666666",
270
+ "--upf-text-placeholder": "#bfbfbf",
271
+ "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
272
+ "--upf-divider-color": "#ebeff5",
273
+ "--upf-nav-bg": "#eb0e1b",
274
+ "--upf-nav-text": "#ffffff",
275
+ "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
276
+ "--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
277
+ "--upf-nav-active-text": "#ffffff",
278
+ "--upf-menu-bg": "#ffffff",
279
+ "--upf-menu-text": "#231815",
280
+ "--upf-menu-hover-bg": "#f5f5f5",
281
+ "--upf-menu-active-bg": "#fce8ea",
282
+ "--upf-menu-active-text": "#e63946",
283
+ "--upf-menu-submenu-bg": "#ffffff",
284
+ "--upf-tab-hover-bg": "#fce8ea",
285
+ "--upf-tab-active-text": "#e63946",
286
+ "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
287
+ "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
288
+ }
289
+ }, he = (e, r) => {
290
+ if (!r)
291
+ return "";
292
+ if (typeof r == "function")
293
+ return String(r(e) || "");
294
+ const t = Array.isArray(r) ? r : [r];
295
+ for (const o of t) {
296
+ const u = String(e[o] || "").trim();
297
+ if (u)
298
+ return u;
299
+ }
300
+ return "";
301
+ }, $ = (e) => Object.entries(e || {}).reduce((r, [t, o]) => (r[t] = String(o ?? "").trim(), r), {}), br = () => [...me], hr = () => ({ ...de }), yr = () => ({ ...ge }), vr = () => pe.map((e) => ({
302
+ ...e,
303
+ variables: [...e.variables]
304
+ })), xr = () => ({ ...be }), ye = (e, r = y.default) => {
305
+ const t = $(e), o = $(r), u = {
306
+ ...o,
307
+ ...t
308
+ };
309
+ return S.reduce((n, l) => {
310
+ var p;
311
+ const i = t[l.name] || "", s = (p = l.fallbackDeps) == null ? void 0 : p.some((U) => !!t[U]), c = he({ ...u, ...n }, l.fallback);
312
+ return n[l.name] = i || (s ? c : "") || o[l.name] || c, n;
313
+ }, {});
314
+ }, ve = y.cjb, xe = {
40
315
  name: "cjb",
41
316
  displayName: "纯净白",
42
317
  description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
43
318
  mode: "light",
44
319
  source: "preset",
45
320
  basePresetName: "cjb",
46
- variables: J
47
- }, X = {
48
- "--upf-brand-primary": "#0e5fd8",
49
- "--upf-brand-secondary": "#3579de",
50
- "--upf-color-primary": "#5582f3",
51
- "--upf-color-success": "#52c41a",
52
- "--upf-color-warning": "#faad14",
53
- "--upf-color-error": "#ff4d4f",
54
- "--upf-color-info": "#1890ff",
55
- "--upf-text-primary": "#231815",
56
- "--upf-text-secondary": "#666666",
57
- "--upf-text-disabled": "#B2B2B2",
58
- "--upf-text-placeholder": "#bfbfbf",
59
- "--upf-bg-primary": "#ffffff",
60
- "--upf-bg-secondary": "#F2F2F2",
61
- "--upf-bg-elevated": "#ffffff",
62
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
63
- "--upf-border-color": "#D9D9D9",
64
- "--upf-divider-color": "#ebeff5",
65
- "--upf-nav-bg": "#0e5fd8",
66
- "--upf-nav-text": "#ffffff",
67
- "--upf-nav-hover-bg": "#3579de",
68
- "--upf-nav-active-bg": "#3579de",
69
- "--upf-nav-active-text": "#ffffff",
70
- "--upf-menu-bg": "#ffffff",
71
- "--upf-menu-text": "#231815",
72
- "--upf-menu-hover-bg": "#f2f2f2",
73
- "--upf-menu-active-bg": "#eef3fe",
74
- "--upf-menu-active-text": "#5582f3",
75
- "--upf-menu-submenu-bg": "#ffffff",
76
- "--upf-tab-bg": "#ffffff",
77
- "--upf-tab-text": "#666666",
78
- "--upf-tab-hover-bg": "#eef3fe",
79
- "--upf-tab-active-bg": "#ffffff",
80
- "--upf-tab-active-text": "#5582f3",
81
- "--upf-border-radius": "4px",
82
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
83
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
84
- }, Q = {
321
+ variables: ve
322
+ }, Ee = y.default, Te = {
85
323
  name: "default",
86
324
  displayName: "经典蓝",
87
325
  description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
88
326
  mode: "light",
89
327
  source: "preset",
90
328
  basePresetName: "default",
91
- variables: X
92
- }, Z = {
93
- "--upf-brand-primary": "#eb0e1b",
94
- "--upf-brand-secondary": "#f15760",
95
- "--upf-color-primary": "#e63946",
96
- "--upf-color-success": "#52c41a",
97
- "--upf-color-warning": "#faad14",
98
- "--upf-color-error": "#ff4d4f",
99
- "--upf-color-info": "#1890ff",
100
- "--upf-text-primary": "#231815",
101
- "--upf-text-secondary": "#666666",
102
- "--upf-text-disabled": "#B2B2B2",
103
- "--upf-text-placeholder": "#bfbfbf",
104
- "--upf-bg-primary": "#ffffff",
105
- "--upf-bg-secondary": "#F2F2F2",
106
- "--upf-bg-elevated": "#ffffff",
107
- "--upf-bg-mask": "rgba(0, 0, 0, 0.45)",
108
- "--upf-border-color": "#D9D9D9",
109
- "--upf-divider-color": "#ebeff5",
110
- "--upf-nav-bg": "#eb0e1b",
111
- "--upf-nav-text": "#ffffff",
112
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.3)",
113
- "--upf-nav-active-bg": "rgba(255, 255, 255, 0.3)",
114
- "--upf-nav-active-text": "#ffffff",
115
- "--upf-menu-bg": "#ffffff",
116
- "--upf-menu-text": "#231815",
117
- "--upf-menu-hover-bg": "#f5f5f5",
118
- "--upf-menu-active-bg": "#fce8ea",
119
- "--upf-menu-active-text": "#e63946",
120
- "--upf-menu-submenu-bg": "#ffffff",
121
- "--upf-tab-bg": "#ffffff",
122
- "--upf-tab-text": "#666666",
123
- "--upf-tab-hover-bg": "#fce8ea",
124
- "--upf-tab-active-bg": "#ffffff",
125
- "--upf-tab-active-text": "#e63946",
126
- "--upf-border-radius": "4px",
127
- "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
128
- "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
129
- }, ee = {
329
+ variables: Ee
330
+ }, Ce = y.dkh, Se = {
130
331
  name: "dkh",
131
332
  displayName: "大咖红",
132
333
  description: "大咖红主题,壳层与内容交互色保持同系红色",
133
334
  mode: "light",
134
335
  source: "preset",
135
336
  basePresetName: "dkh",
136
- variables: Z
137
- }, re = {
138
- "--upf-brand-primary": "#1f2346",
139
- "--upf-brand-secondary": "#2d3158",
140
- "--upf-color-primary": "#5582f3",
141
- "--upf-color-success": "#52c41a",
142
- "--upf-color-warning": "#faad14",
143
- "--upf-color-error": "#ff4d4f",
144
- "--upf-color-info": "#1890ff",
145
- "--upf-text-primary": "#231815",
146
- "--upf-text-secondary": "#666666",
147
- "--upf-text-disabled": "#B2B2B2",
148
- "--upf-text-placeholder": "#b8c0cc",
149
- "--upf-bg-primary": "#ffffff",
150
- "--upf-bg-secondary": "#F2F2F2",
151
- "--upf-bg-elevated": "#ffffff",
152
- "--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
153
- "--upf-border-color": "#D9D9D9",
154
- "--upf-divider-color": "#ebeff5",
155
- "--upf-nav-bg": "#1f2346",
156
- "--upf-nav-text": "#ffffff",
157
- "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
158
- "--upf-nav-active-bg": "#5582f3",
159
- "--upf-nav-active-text": "#ffffff",
160
- "--upf-menu-bg": "#1f2346",
161
- "--upf-menu-text": "#ffffff",
162
- "--upf-menu-hover-bg": "#2d3158",
163
- "--upf-menu-active-bg": "#2d3158",
164
- "--upf-menu-active-text": "#ffffff",
165
- "--upf-menu-submenu-bg": "#171b36",
166
- "--upf-tab-bg": "#ffffff",
167
- "--upf-tab-text": "#666666",
168
- "--upf-tab-hover-bg": "#f2f6ff",
169
- "--upf-tab-active-bg": "#ffffff",
170
- "--upf-tab-active-text": "#5582f3",
171
- "--upf-border-radius": "4px",
172
- "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
173
- "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
174
- }, te = {
337
+ variables: Ce
338
+ }, we = y.ssl, Fe = {
175
339
  name: "ssl",
176
340
  displayName: "深邃蓝",
177
341
  description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
178
342
  mode: "dark",
179
343
  source: "preset",
180
344
  basePresetName: "ssl",
181
- variables: re
182
- }, oe = ["default", "cjb", "ssl", "dkh"], _ = {
183
- default: Q,
184
- cjb: Y,
185
- ssl: te,
186
- dkh: ee
187
- }, ae = (e) => ({ ...e }), I = (e) => ({
345
+ variables: we
346
+ }, _e = ["default", "cjb", "ssl", "dkh"], R = {
347
+ default: Te,
348
+ cjb: xe,
349
+ ssl: Fe,
350
+ dkh: Se
351
+ }, Ne = (e) => ({ ...e }), Z = (e) => ({
188
352
  ...e,
189
- variables: ae(e.variables)
190
- }), y = (e) => {
353
+ variables: Ne(e.variables)
354
+ }), g = (e) => {
191
355
  const r = String(e || "").trim();
192
- return _[r] ? I(_[r]) : void 0;
193
- }, ue = () => oe.map((e) => I(_[e])), A = "themeChange", p = "#ffffff", d = "#000000", v = "upf-theme-root-vars", fe = "upf-default-theme-vars", le = ["--upf-color-primary", "--upf-brand-primary"], D = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), b = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(h(e)).reduce((r, [t, a]) => (r[t] = String(a ?? ""), r), {}) : null, h = (e) => e, o = (e, r) => {
194
- const t = h(e);
356
+ return R[r] ? Z(R[r]) : void 0;
357
+ }, Ae = () => _e.map((e) => Z(R[e])), ee = (e) => e, a = (e, r) => {
358
+ const t = ee(e);
195
359
  return String((r ? t[r] : "") ?? "");
196
- }, n = (e, r) => r.map((t) => ({ target: t, from: e })), P = (e) => {
197
- const r = String(e || "").trim();
198
- return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
199
- }, k = (e) => {
200
- const r = P(e);
201
- if (!r)
202
- return null;
203
- const t = r.slice(1);
360
+ }, f = (e, r) => r.map((t) => ({ target: t, from: e })), M = (e) => {
361
+ const r = ee(e);
204
362
  return {
205
- red: Number.parseInt(t.slice(0, 2), 16),
206
- green: Number.parseInt(t.slice(2, 4), 16),
207
- blue: Number.parseInt(t.slice(4, 6), 16)
363
+ ...Object.entries(r).reduce((o, [u, n]) => (o[u] = String(n ?? ""), o), {}),
364
+ ...ye(r)
208
365
  };
209
- }, w = (e) => Math.min(255, Math.max(0, Math.round(e))), ne = (e, r, t, a) => {
210
- const u = k(e), f = k(r);
211
- if (!u || !f)
212
- return a;
213
- const l = Math.min(1, Math.max(0, t)), s = w(u.red * l + f.red * (1 - l)), i = w(u.green * l + f.green * (1 - l)), c = w(u.blue * l + f.blue * (1 - l));
214
- return `#${[s, i, c].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
215
- }, ie = (e, r, t) => {
216
- const a = k(e);
217
- if (!a)
218
- return t;
219
- const u = Math.min(1, Math.max(0, r));
220
- return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
221
- }, se = {
366
+ }, ke = {
222
367
  "#5582f3": "#3761CA",
223
368
  "#e63946": "#C9303C"
224
- }, V = (e, r) => {
369
+ }, K = (e, r) => {
225
370
  const t = e || "#5582F3";
226
- return se[P(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
227
- }, E = (e, r) => r.reduce((t, a) => {
228
- const u = a.resolve ? a.resolve({ variables: e, result: t, mixHexColor: ne, toRgbaColor: ie }) : a.from ? o(e, String(a.from)) : String(a.value ?? "");
229
- return t[a.target] = String(u ?? ""), t;
230
- }, {}), ce = [
371
+ return ke[X(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
372
+ }, He = "#999", Ve = (e) => [e.themeName, e.basePresetName].some((r) => String(r || "").trim() === "dkh"), Be = (e) => Ve(e) ? He : a(e.variables, "--upf-color-primary"), Re = (e) => Array.isArray(e) ? [...e] : [e], w = (e, r, t = {}) => r.reduce((o, u) => {
373
+ const n = u.resolve ? u.resolve({ variables: e, result: o, mixHexColor: Q, toRgbaColor: ce, ...t }) : u.from ? a(e, String(u.from)) : String(u.value ?? "");
374
+ return Re(u.target).forEach((l) => {
375
+ o[l] = String(n ?? "");
376
+ }), o;
377
+ }, {}), De = [
231
378
  { target: "--upf-primary", from: "--upf-color-primary" },
232
379
  { target: "--upf-text", from: "--upf-text-primary" },
233
380
  { target: "--upf-surface", from: "--upf-bg-primary" },
@@ -237,7 +384,7 @@ const J = {
237
384
  { target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
238
385
  { target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
239
386
  { target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
240
- ], pe = [
387
+ ], Me = [
241
388
  { target: "--el-color-primary", from: "--upf-color-primary" },
242
389
  { target: "--el-color-success", from: "--upf-color-success" },
243
390
  { target: "--el-color-warning", from: "--upf-color-warning" },
@@ -265,18 +412,18 @@ const J = {
265
412
  { target: "--el-checkbox-font-weight", value: "400" },
266
413
  { target: "--el-checkbox-input-width", value: "14px" },
267
414
  { target: "--el-checkbox-input-height", value: "14px" },
268
- { target: "--el-checkbox-checked-icon-color", value: p },
415
+ { target: "--el-checkbox-checked-icon-color", value: m },
269
416
  {
270
417
  target: "--el-checkbox-input-border",
271
- resolve: ({ variables: e }) => `1px solid ${o(e, "--upf-border-color")}`
418
+ resolve: ({ variables: e }) => `1px solid ${a(e, "--upf-border-color")}`
272
419
  }
273
- ], de = [
420
+ ], Pe = [
274
421
  { target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
275
- ...n("--upf-color-primary-bg", [
422
+ ...f("--upf-color-primary-bg", [
276
423
  "--das-ui-color-primary-level1",
277
424
  "--das-ui-upload-bgcolor-hover"
278
425
  ]),
279
- ...n("--upf-bg-primary", [
426
+ ...f("--upf-bg-primary", [
280
427
  "--das-black-list-mange-color-white"
281
428
  ]),
282
429
  { target: "--das-ui-color-primary", from: "--upf-color-primary" },
@@ -296,7 +443,7 @@ const J = {
296
443
  // 共享桥接先兜底旧加载态、下拉态和范围选择器变量,保证首批迁移组件样式稳定。
297
444
  { target: "--das-ui-split-panel-color-primary", from: "--upf-color-primary" },
298
445
  { target: "--das-ui-split-panel-color-line", from: "--upf-divider-color" },
299
- { target: "--das-ui-split-panel-color-btn", from: "--upf-text-secondary" },
446
+ { target: "--das-ui-split-panel-color-btn", value: "#999999" },
300
447
  { target: "--das-ui-tree-table-highlight-color", from: "--upf-color-primary" },
301
448
  { target: "--das-ui-tree-table-header-color", from: "--upf-text-primary" },
302
449
  { target: "--das-ui-tree-table-header-bg-color", from: "--upf-bg-secondary" },
@@ -304,7 +451,7 @@ const J = {
304
451
  { target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
305
452
  {
306
453
  target: "--das-ui-dropdown-bgff-color",
307
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
454
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
308
455
  },
309
456
  { target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
310
457
  { target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
@@ -325,8 +472,8 @@ const J = {
325
472
  {
326
473
  target: "--das-ui-special-range-picker-in-range",
327
474
  resolve: ({ variables: e, mixHexColor: r }) => r(
328
- o(e, "--upf-color-primary"),
329
- o(e, "--upf-bg-primary"),
475
+ a(e, "--upf-color-primary"),
476
+ a(e, "--upf-bg-primary"),
330
477
  0.08,
331
478
  "#F2F6FF"
332
479
  )
@@ -334,8 +481,8 @@ const J = {
334
481
  {
335
482
  target: "--das-ui-special-range-picker-new-range",
336
483
  resolve: ({ variables: e, mixHexColor: r }) => r(
337
- o(e, "--upf-color-primary"),
338
- o(e, "--upf-bg-primary"),
484
+ a(e, "--upf-color-primary"),
485
+ a(e, "--upf-bg-primary"),
339
486
  0.14,
340
487
  "#E3EBFF"
341
488
  )
@@ -352,7 +499,10 @@ const J = {
352
499
  { target: "--das-ui-table-required-color", from: "--upf-color-error" },
353
500
  { target: "--das-ui-form-error-label-color", from: "--upf-color-error" },
354
501
  { target: "--das-input-base-border-color", from: "--upf-border-color" },
355
- { target: "--das-input-active-border-color", from: "--upf-color-primary" },
502
+ {
503
+ target: ["--upf-form-active-border-color", "--das-input-active-border-color", "--upf-date-picker-active-border-color"],
504
+ resolve: Be
505
+ },
356
506
  { target: "--das-input-font-color", from: "--upf-text-primary" },
357
507
  { target: "--das-input-sub-font-color", from: "--upf-text-placeholder" },
358
508
  { target: "--das-input-disabled-bg-color", from: "--upf-bg-secondary" },
@@ -362,16 +512,18 @@ const J = {
362
512
  { target: "--das-ui-scrollbar-thumb-hover-color", from: "--upf-text-secondary" },
363
513
  { target: "--das-ui-scrollbar-padding", value: "1px" },
364
514
  { target: "--das-ui-scrollbar-thumb-size", value: "8px" },
365
- { target: "--das-user-manage-white", value: p },
515
+ { target: "--das-user-manage-white", value: m },
366
516
  { target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
367
517
  { target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
518
+ { target: "--das-layout-micro-container-bg-color", value: "#e2e7ef" },
519
+ { target: "--das-layout-breadcrumb-bg-color", value: "#ffffff" },
368
520
  { target: "--das-ui-font-size-sm", value: "12px" },
369
521
  { target: "--das-ui-font-size-md", value: "14px" },
370
522
  { target: "--das-ui-font-size-lg", value: "16px" },
371
523
  { target: "--das-upf-ui-font-size-sm", value: "14px" },
372
524
  { target: "--das-upf-ui-line-height", value: "32px" },
373
525
  { target: "--das-ui-text-tooltip-shadow", value: "rgba(0, 0, 0, 0.2)" },
374
- { target: "--das-ui-text-tooltip-bgcolor", value: p },
526
+ { target: "--das-ui-text-tooltip-bgcolor", value: m },
375
527
  { target: "--das-ui-search-form-font-color", from: "--upf-text-primary" },
376
528
  { target: "--das-ui-search-form-filter-font-color", from: "--upf-text-secondary" },
377
529
  { target: "--das-ui-search-form-filter-bgcolor", from: "--upf-bg-secondary" },
@@ -388,7 +540,7 @@ const J = {
388
540
  { target: "--das-ui-steps-title-font-size", value: "12px" },
389
541
  {
390
542
  target: "--das-ui-collaspe-bgcolor",
391
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
543
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
392
544
  },
393
545
  { target: "--das-ui-calendar-color-text", value: "#212121" },
394
546
  { target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
@@ -400,8 +552,8 @@ const J = {
400
552
  {
401
553
  target: "--das-ui-color-primary-level2",
402
554
  resolve: ({ variables: e, mixHexColor: r }) => r(
403
- o(e, "--upf-color-primary"),
404
- o(e, "--upf-bg-primary"),
555
+ a(e, "--upf-color-primary"),
556
+ a(e, "--upf-bg-primary"),
405
557
  0.16,
406
558
  "#E0EFFE"
407
559
  )
@@ -409,8 +561,8 @@ const J = {
409
561
  {
410
562
  target: "--das-ui-color-primary-level3",
411
563
  resolve: ({ variables: e, mixHexColor: r }) => r(
412
- o(e, "--upf-color-primary"),
413
- o(e, "--upf-bg-primary"),
564
+ a(e, "--upf-color-primary"),
565
+ a(e, "--upf-bg-primary"),
414
566
  0.32,
415
567
  "#B3D5FF"
416
568
  )
@@ -418,8 +570,8 @@ const J = {
418
570
  {
419
571
  target: "--das-ui-color-primary-level4",
420
572
  resolve: ({ variables: e, mixHexColor: r }) => r(
421
- o(e, "--upf-color-primary"),
422
- o(e, "--upf-bg-primary"),
573
+ a(e, "--upf-color-primary"),
574
+ a(e, "--upf-bg-primary"),
423
575
  0.48,
424
576
  "#85B8FE"
425
577
  )
@@ -427,29 +579,29 @@ const J = {
427
579
  {
428
580
  target: "--das-ui-color-primary-level5",
429
581
  resolve: ({ variables: e, mixHexColor: r }) => r(
430
- o(e, "--upf-color-primary"),
431
- o(e, "--upf-bg-primary"),
582
+ a(e, "--upf-color-primary"),
583
+ a(e, "--upf-bg-primary"),
432
584
  0.68,
433
585
  "#5797FF"
434
586
  )
435
587
  },
436
588
  {
437
589
  target: "--das-ui-color-primary-level7",
438
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
590
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
439
591
  },
440
592
  {
441
593
  target: "--das-ui-color-primary-level8",
442
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.68, "#002EA3")
594
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.68, "#002EA3")
443
595
  },
444
596
  {
445
597
  target: "--das-ui-color-primary-level9",
446
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.5, "#001F7A")
598
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.5, "#001F7A")
447
599
  },
448
600
  {
449
601
  target: "--das-ui-color-danger-level1",
450
602
  resolve: ({ variables: e, mixHexColor: r }) => r(
451
- o(e, "--upf-color-error"),
452
- o(e, "--upf-bg-primary"),
603
+ a(e, "--upf-color-error"),
604
+ a(e, "--upf-bg-primary"),
453
605
  0.14,
454
606
  "#FFDBE0"
455
607
  )
@@ -457,8 +609,8 @@ const J = {
457
609
  {
458
610
  target: "--das-ui-color-danger-level2",
459
611
  resolve: ({ variables: e, mixHexColor: r }) => r(
460
- o(e, "--upf-color-error"),
461
- o(e, "--upf-bg-primary"),
612
+ a(e, "--upf-color-error"),
613
+ a(e, "--upf-bg-primary"),
462
614
  0.08,
463
615
  "#FFF2F4"
464
616
  )
@@ -466,8 +618,8 @@ const J = {
466
618
  {
467
619
  target: "--das-ui-color-warning-level1",
468
620
  resolve: ({ variables: e, mixHexColor: r }) => r(
469
- o(e, "--upf-color-warning"),
470
- o(e, "--upf-bg-primary"),
621
+ a(e, "--upf-color-warning"),
622
+ a(e, "--upf-bg-primary"),
471
623
  0.08,
472
624
  "#FFFBF2"
473
625
  )
@@ -475,8 +627,8 @@ const J = {
475
627
  {
476
628
  target: "--das-ui-color-warning-level2",
477
629
  resolve: ({ variables: e, mixHexColor: r }) => r(
478
- o(e, "--upf-color-warning"),
479
- o(e, "--upf-bg-primary"),
630
+ a(e, "--upf-color-warning"),
631
+ a(e, "--upf-bg-primary"),
480
632
  0.16,
481
633
  "#FFF1D4"
482
634
  )
@@ -484,8 +636,8 @@ const J = {
484
636
  {
485
637
  target: "--das-ui-color-success-level1",
486
638
  resolve: ({ variables: e, mixHexColor: r }) => r(
487
- o(e, "--upf-color-success"),
488
- o(e, "--upf-bg-primary"),
639
+ a(e, "--upf-color-success"),
640
+ a(e, "--upf-bg-primary"),
489
641
  0.08,
490
642
  "#F2FFF5"
491
643
  )
@@ -493,8 +645,8 @@ const J = {
493
645
  {
494
646
  target: "--das-ui-color-success-level2",
495
647
  resolve: ({ variables: e, mixHexColor: r }) => r(
496
- o(e, "--upf-color-success"),
497
- o(e, "--upf-bg-primary"),
648
+ a(e, "--upf-color-success"),
649
+ a(e, "--upf-bg-primary"),
498
650
  0.16,
499
651
  "#DCFAE4"
500
652
  )
@@ -502,33 +654,33 @@ const J = {
502
654
  {
503
655
  target: "--das-ui-color-amount",
504
656
  resolve: ({ variables: e, mixHexColor: r }) => r(
505
- o(e, "--upf-color-warning"),
506
- o(e, "--upf-color-error"),
657
+ a(e, "--upf-color-warning"),
658
+ a(e, "--upf-color-error"),
507
659
  0.55,
508
660
  "#FF5F1F"
509
661
  )
510
662
  },
511
663
  {
512
664
  target: "--das-ui-button-primary-hover",
513
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
665
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
514
666
  },
515
- ...n("--upf-color-primary", [
667
+ ...f("--upf-color-primary", [
516
668
  "--das-ui-search-form-primary-color"
517
669
  ]),
518
- ...n("--upf-text-primary", [
670
+ ...f("--upf-text-primary", [
519
671
  "--das-ui-tag-list-text-color"
520
672
  ]),
521
- ...n("--upf-border-color", [
673
+ ...f("--upf-border-color", [
522
674
  "--das-ui-tag-list-border-color",
523
675
  "--das-ui-upload-border-color"
524
676
  ]),
525
- ...n("--upf-bg-secondary", [
677
+ ...f("--upf-bg-secondary", [
526
678
  "--das-ui-upload-bgcolor"
527
679
  ]),
528
- ...n("--upf-text-secondary", [
680
+ ...f("--upf-text-secondary", [
529
681
  "--das-ui-search-form-tip-color"
530
682
  ]),
531
- { target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
683
+ { target: "--das-ui-layout-header-menu-border-color", from: "--upf-nav-border-color" },
532
684
  { target: "--das-ui-layout-header-menu-background-color", from: "--upf-nav-bg" },
533
685
  { target: "--das-ui-layout-header-menu-color", from: "--upf-nav-text" },
534
686
  { target: "--das-ui-layout-header-menu-hover-background-color", from: "--upf-nav-hover-bg" },
@@ -537,17 +689,17 @@ const J = {
537
689
  { target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
538
690
  {
539
691
  target: "--das-ui-layout-header-menu-remove-btn-color",
540
- resolve: ({ variables: e, toRgbaColor: r }) => r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
692
+ resolve: ({ variables: e, toRgbaColor: r }) => r(a(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
541
693
  },
542
694
  { target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
543
695
  {
544
696
  target: "--das-ui-layout-header-icon-color",
545
- resolve: ({ variables: e }) => o(e, "--upf-nav-text") || o(e, "--upf-text-secondary")
697
+ resolve: ({ variables: e }) => a(e, "--upf-nav-text") || a(e, "--upf-text-secondary")
546
698
  },
547
699
  {
548
700
  target: "--das-ui-layout-header-left-box-line",
549
701
  resolve: ({ variables: e, toRgbaColor: r }) => r(
550
- o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"),
702
+ a(e, "--upf-nav-text") || a(e, "--upf-text-secondary"),
551
703
  0.28,
552
704
  "#CCCCCC"
553
705
  )
@@ -578,43 +730,43 @@ const J = {
578
730
  { target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
579
731
  { target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
580
732
  { target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
581
- ], me = [
733
+ ], Ie = [
582
734
  // 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
583
- ...n("--upf-color-primary", [
735
+ ...f("--upf-color-primary", [
584
736
  "--upf-button-primary",
585
737
  "--upf-notification-primary-bg"
586
738
  ]),
587
- ...n("--upf-text-primary", [
739
+ ...f("--upf-text-primary", [
588
740
  "--upf-button-default-text",
589
741
  "--upf-notification-title-text",
590
742
  "--upf-text-tooltip-text"
591
743
  ]),
592
- ...n("--upf-border-color", [
744
+ ...f("--upf-border-color", [
593
745
  "--upf-button-default-border",
594
746
  "--upf-text-tooltip-border"
595
747
  ]),
596
- ...n("--upf-text-disabled", [
748
+ ...f("--upf-text-disabled", [
597
749
  "--upf-button-default-disabled",
598
750
  "--upf-switch-off-color",
599
751
  "--upf-message-thumb",
600
752
  "--upf-text-tooltip-scrollbar-thumb"
601
753
  ]),
602
- ...n("--upf-bg-secondary", [
754
+ ...f("--upf-bg-secondary", [
603
755
  "--upf-button-default-disabled-bg",
604
756
  "--upf-table-header-bg"
605
757
  ]),
606
- ...n("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
607
- ...n("--upf-color-info", ["--upf-loading-color-1"]),
608
- ...n("--upf-brand-secondary", ["--upf-loading-color-2"]),
609
- ...n("--upf-color-success", ["--upf-loading-color-3"]),
610
- ...n("--upf-divider-color", ["--upf-loading-color-6"]),
611
- ...n("--upf-text-secondary", [
758
+ ...f("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
759
+ ...f("--upf-color-info", ["--upf-loading-color-1"]),
760
+ ...f("--upf-brand-secondary", ["--upf-loading-color-2"]),
761
+ ...f("--upf-color-success", ["--upf-loading-color-3"]),
762
+ ...f("--upf-divider-color", ["--upf-loading-color-6"]),
763
+ ...f("--upf-text-secondary", [
612
764
  "--upf-message-close",
613
765
  "--upf-notification-description-text",
614
766
  "--upf-notification-close",
615
767
  "--upf-text-tooltip-scrollbar-thumb-hover"
616
768
  ]),
617
- { target: "--upf-button-primary-text", value: p },
769
+ { target: "--upf-button-primary-text", value: m },
618
770
  { target: "--upf-button-primary-text-disabled", value: "rgba(255, 255, 255, 1)" },
619
771
  { target: "--upf-dialog-basic-header-height", value: "50px" },
620
772
  { target: "--upf-dialog-basic-content-padding", value: "30px" },
@@ -633,49 +785,49 @@ const J = {
633
785
  { target: "--upf-notification-font-size-sm", value: "12px" },
634
786
  { target: "--upf-notification-font-size-md", value: "14px" },
635
787
  { target: "--upf-notification-font-size-lg", value: "16px" },
636
- { target: "--upf-notification-primary-text", value: p },
788
+ { target: "--upf-notification-primary-text", value: m },
637
789
  { target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
638
790
  {
639
791
  target: "--upf-button-primary-hover",
640
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
792
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", m, 0.82, "#87A9FF")
641
793
  },
642
794
  {
643
795
  target: "--upf-button-active",
644
- resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
796
+ resolve: ({ variables: e, mixHexColor: r }) => K(a(e, "--upf-color-primary"), r)
645
797
  },
646
798
  {
647
799
  target: "--upf-button-disabled",
648
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
800
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", m, 0.3, "#B5CAFF")
649
801
  },
650
802
  {
651
803
  target: "--upf-button-set",
652
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
804
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
653
805
  },
654
806
  {
655
807
  target: "--upf-button-set-hover",
656
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
808
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
657
809
  },
658
810
  {
659
811
  target: "--upf-button-set-active",
660
- resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
812
+ resolve: ({ variables: e, mixHexColor: r }) => K(a(e, "--upf-color-primary"), r)
661
813
  },
662
814
  {
663
815
  target: "--upf-button-set-disabled",
664
816
  resolve: ({ variables: e, mixHexColor: r, result: t }) => r(
665
- t["--upf-button-set"] || o(e, "--upf-color-primary") || "#5582F3",
666
- o(e, "--upf-bg-primary"),
817
+ t["--upf-button-set"] || a(e, "--upf-color-primary") || "#5582F3",
818
+ a(e, "--upf-bg-primary"),
667
819
  0.55,
668
820
  "#95A4C8"
669
821
  )
670
822
  },
671
823
  {
672
824
  target: "--upf-switch-on-color-disabled",
673
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
825
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), m, 0.32, "#B5CAFF")
674
826
  },
675
827
  {
676
828
  target: "--upf-checkbox-focus-shadow",
677
829
  resolve: ({ variables: e, toRgbaColor: r }) => r(
678
- o(e, "--upf-color-primary") || "#5582F3",
830
+ a(e, "--upf-color-primary") || "#5582F3",
679
831
  0.1,
680
832
  "rgba(85, 130, 243, 0.1)"
681
833
  )
@@ -683,8 +835,8 @@ const J = {
683
835
  {
684
836
  target: "--upf-checkbox-overlay-error-bg",
685
837
  resolve: ({ variables: e, mixHexColor: r }) => r(
686
- o(e, "--upf-color-error"),
687
- o(e, "--upf-bg-primary"),
838
+ a(e, "--upf-color-error"),
839
+ a(e, "--upf-bg-primary"),
688
840
  0.14,
689
841
  "#FFDBE0"
690
842
  )
@@ -692,22 +844,22 @@ const J = {
692
844
  {
693
845
  target: "--upf-loading-color-4",
694
846
  resolve: ({ variables: e, mixHexColor: r }) => r(
695
- o(e, "--upf-brand-secondary"),
696
- o(e, "--upf-color-primary"),
847
+ a(e, "--upf-brand-secondary"),
848
+ a(e, "--upf-color-primary"),
697
849
  0.45,
698
850
  "#A06EFF"
699
851
  )
700
852
  },
701
853
  {
702
854
  target: "--upf-loading-color-5",
703
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
855
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
704
856
  },
705
857
  { target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
706
858
  {
707
859
  target: "--upf-table-row-active-bg",
708
860
  resolve: ({ variables: e, mixHexColor: r }) => r(
709
- o(e, "--upf-color-primary"),
710
- o(e, "--upf-bg-primary"),
861
+ a(e, "--upf-color-primary"),
862
+ a(e, "--upf-bg-primary"),
711
863
  0.08,
712
864
  "#F2F6FF"
713
865
  )
@@ -715,8 +867,8 @@ const J = {
715
867
  {
716
868
  target: "--upf-table-row-active-hover-bg",
717
869
  resolve: ({ variables: e, mixHexColor: r }) => r(
718
- o(e, "--upf-color-primary"),
719
- o(e, "--upf-bg-primary"),
870
+ a(e, "--upf-color-primary"),
871
+ a(e, "--upf-bg-primary"),
720
872
  0.14,
721
873
  "#E3EBFF"
722
874
  )
@@ -724,8 +876,8 @@ const J = {
724
876
  {
725
877
  target: "--upf-table-summary-row-color",
726
878
  resolve: ({ variables: e, mixHexColor: r }) => r(
727
- o(e, "--upf-color-warning"),
728
- o(e, "--upf-color-error"),
879
+ a(e, "--upf-color-warning"),
880
+ a(e, "--upf-color-error"),
729
881
  0.55,
730
882
  "#FF5F1F"
731
883
  )
@@ -733,8 +885,8 @@ const J = {
733
885
  {
734
886
  target: "--upf-table-summary-row-bg",
735
887
  resolve: ({ variables: e, mixHexColor: r }) => r(
736
- o(e, "--upf-color-warning"),
737
- o(e, "--upf-bg-primary"),
888
+ a(e, "--upf-color-warning"),
889
+ a(e, "--upf-bg-primary"),
738
890
  0.18,
739
891
  "#FFF1D4"
740
892
  )
@@ -742,47 +894,47 @@ const J = {
742
894
  {
743
895
  target: "--upf-message-bg",
744
896
  resolve: ({ variables: e, mixHexColor: r }) => r(
745
- o(e, "--upf-color-info"),
746
- o(e, "--upf-bg-primary"),
897
+ a(e, "--upf-color-info"),
898
+ a(e, "--upf-bg-primary"),
747
899
  0.14,
748
900
  "#E0EFFF"
749
901
  )
750
902
  },
751
903
  {
752
904
  target: "--upf-message-text",
753
- resolve: ({ variables: e }) => o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8"
905
+ resolve: ({ variables: e }) => a(e, "--upf-color-info") || a(e, "--upf-color-primary") || "#0E5FD8"
754
906
  },
755
907
  {
756
908
  target: "--upf-message-border",
757
909
  resolve: ({ variables: e, mixHexColor: r }) => r(
758
- o(e, "--upf-color-info"),
759
- o(e, "--upf-bg-primary"),
910
+ a(e, "--upf-color-info"),
911
+ a(e, "--upf-bg-primary"),
760
912
  0.32,
761
913
  "#B3D5FF"
762
914
  )
763
915
  },
764
916
  {
765
917
  target: "--upf-message-close-hover",
766
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
918
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
767
919
  },
768
920
  {
769
921
  target: "--upf-message-success-bg",
770
922
  resolve: ({ variables: e, mixHexColor: r }) => r(
771
- o(e, "--upf-color-success"),
772
- o(e, "--upf-bg-primary"),
923
+ a(e, "--upf-color-success"),
924
+ a(e, "--upf-bg-primary"),
773
925
  0.16,
774
926
  "#DCFAE4"
775
927
  )
776
928
  },
777
929
  {
778
930
  target: "--upf-message-success-text",
779
- resolve: ({ variables: e }) => o(e, "--upf-color-success") || "#1BA854"
931
+ resolve: ({ variables: e }) => a(e, "--upf-color-success") || "#1BA854"
780
932
  },
781
933
  {
782
934
  target: "--upf-message-success-border",
783
935
  resolve: ({ variables: e, mixHexColor: r }) => r(
784
- o(e, "--upf-color-success"),
785
- o(e, "--upf-bg-primary"),
936
+ a(e, "--upf-color-success"),
937
+ a(e, "--upf-bg-primary"),
786
938
  0.32,
787
939
  "#A1E6B5"
788
940
  )
@@ -802,21 +954,21 @@ const J = {
802
954
  {
803
955
  target: "--upf-message-warning-bg",
804
956
  resolve: ({ variables: e, mixHexColor: r }) => r(
805
- o(e, "--upf-color-warning"),
806
- o(e, "--upf-bg-primary"),
957
+ a(e, "--upf-color-warning"),
958
+ a(e, "--upf-bg-primary"),
807
959
  0.16,
808
960
  "#FFF1D4"
809
961
  )
810
962
  },
811
963
  {
812
964
  target: "--upf-message-warning-text",
813
- resolve: ({ variables: e }) => o(e, "--upf-color-warning") || "#FF991C"
965
+ resolve: ({ variables: e }) => a(e, "--upf-color-warning") || "#FF991C"
814
966
  },
815
967
  {
816
968
  target: "--upf-message-warning-border",
817
969
  resolve: ({ variables: e, mixHexColor: r }) => r(
818
- o(e, "--upf-color-warning"),
819
- o(e, "--upf-bg-primary"),
970
+ a(e, "--upf-color-warning"),
971
+ a(e, "--upf-bg-primary"),
820
972
  0.32,
821
973
  "#FFE0A6"
822
974
  )
@@ -824,36 +976,36 @@ const J = {
824
976
  {
825
977
  target: "--upf-message-error-bg",
826
978
  resolve: ({ variables: e, mixHexColor: r }) => r(
827
- o(e, "--upf-color-error"),
828
- o(e, "--upf-bg-primary"),
979
+ a(e, "--upf-color-error"),
980
+ a(e, "--upf-bg-primary"),
829
981
  0.14,
830
982
  "#FFDBE0"
831
983
  )
832
984
  },
833
985
  {
834
986
  target: "--upf-message-error-text",
835
- resolve: ({ variables: e }) => o(e, "--upf-color-error") || "#FB2323"
987
+ resolve: ({ variables: e }) => a(e, "--upf-color-error") || "#FB2323"
836
988
  },
837
989
  {
838
990
  target: "--upf-message-error-border",
839
991
  resolve: ({ variables: e, mixHexColor: r }) => r(
840
- o(e, "--upf-color-error"),
841
- o(e, "--upf-bg-primary"),
992
+ a(e, "--upf-color-error"),
993
+ a(e, "--upf-bg-primary"),
842
994
  0.32,
843
995
  "#FFADB6"
844
996
  )
845
997
  },
846
998
  {
847
999
  target: "--upf-notification-bg",
848
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
1000
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
849
1001
  },
850
1002
  {
851
1003
  target: "--upf-notification-close-hover",
852
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
1004
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
853
1005
  },
854
1006
  {
855
1007
  target: "--upf-text-tooltip-bg",
856
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
1008
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
857
1009
  },
858
1010
  {
859
1011
  target: "--upf-text-tooltip-shadow-color",
@@ -861,258 +1013,358 @@ const J = {
861
1013
  },
862
1014
  { target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
863
1015
  { target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
864
- ], ge = (e) => E(e, ce), be = (e) => E(e, pe), xe = (e) => E(e, de), ve = (e) => E(e, me), O = (e, r = {}) => {
865
- const t = h(e), { includeElementAndDasUiBridges: a = !0 } = r, u = ve(t), f = {
1016
+ ], Oe = (e, r = {}) => w(e, De, r), Le = (e, r = {}) => w(e, Me, r), Ue = (e, r = {}) => w(e, Pe, r), ze = (e, r = {}) => w(e, Ie, r), P = (e, r = {}) => {
1017
+ const t = M(e), { includeElementAndDasUiBridges: o = !0, themeName: u, basePresetName: n } = r, l = { themeName: u, basePresetName: n }, i = ze(t, l), s = {
866
1018
  ...t,
867
- ...u
1019
+ ...i
868
1020
  };
869
1021
  return {
870
1022
  ...t,
871
- ...u,
872
- ...a ? be(f) : {},
873
- ...a ? xe(f) : {},
874
- ...ge(f)
1023
+ ...i,
1024
+ ...o ? Le(s, l) : {},
1025
+ ...o ? Ue(s, l) : {},
1026
+ ...Oe(s, l)
875
1027
  };
876
- }, Le = (e) => y(e), Ue = () => ue(), H = () => y("default"), ze = () => ({ ...H().variables }), B = (e) => e || (typeof document > "u" ? null : document.documentElement), L = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), C = (e) => e.head || e.documentElement, U = (e, r) => {
877
- const t = C(e);
1028
+ }, W = "themeChange", T = "upf-theme-root-vars", je = "upf-default-theme-vars", C = "upf-theme-config", $e = ["--upf-color-primary", "--upf-brand-primary"], G = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), h = /* @__PURE__ */ new WeakMap(), E = (e) => e ? Object.entries(e).reduce((r, [t, o]) => (r[t] = String(o ?? ""), r), {}) : null, Er = (e) => g(e), Tr = () => Ae(), F = () => g("default"), Cr = () => ({ ...F().variables }), I = (e) => e || (typeof document > "u" ? null : document.documentElement), re = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), _ = (e) => e.head || e.documentElement, te = (e, r) => {
1029
+ const t = _(e);
878
1030
  t && (r.parentNode !== t || t.lastElementChild !== r) && t.appendChild(r);
879
- }, M = (e) => {
1031
+ }, q = (e) => {
880
1032
  var u;
881
- if (N.has(e))
1033
+ if (Y.has(e))
882
1034
  return;
883
- const r = C(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
1035
+ const r = _(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
884
1036
  if (!r || !t)
885
1037
  return;
886
1038
  new t(() => {
887
- const f = e.getElementById(v);
888
- L(f) && U(e, f);
889
- }).observe(r, { childList: !0 }), N.add(e);
890
- }, ye = (e) => {
891
- const r = e.getElementById(v);
892
- if (L(r))
893
- return U(e, r), M(e), r;
1039
+ const n = e.getElementById(T);
1040
+ re(n) && te(e, n);
1041
+ }).observe(r, { childList: !0 }), Y.add(e);
1042
+ }, Ke = (e) => {
1043
+ const r = e.getElementById(T);
1044
+ if (re(r))
1045
+ return te(e, r), q(e), r;
894
1046
  const t = e.createElement("style");
895
- return t.id = v, C(e).appendChild(t), M(e), t;
896
- }, z = (e) => {
897
- const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, a]) => ` ${t}: ${String(a ?? "")};`).join(`
1047
+ return t.id = T, _(e).appendChild(t), q(e), t;
1048
+ }, O = (e) => {
1049
+ const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, o]) => ` ${t}: ${String(o ?? "")};`).join(`
898
1050
  `);
899
1051
  return r ? `:root {
900
1052
  ${r}
901
1053
  }` : ":root {}";
902
- }, $ = (e = "default", r = {}) => {
903
- const t = y(e) || H();
904
- return z(O(t.variables, r));
905
- }, $e = (e = {}) => $("default", e), he = (e) => {
906
- const r = e.getElementById(v);
1054
+ }, We = (e = "default", r = {}) => {
1055
+ const t = g(e) || F();
1056
+ return O(P(t.variables, {
1057
+ ...r,
1058
+ themeName: r.themeName || t.name,
1059
+ basePresetName: r.basePresetName || t.basePresetName
1060
+ }));
1061
+ }, Sr = (e = {}) => We("default", e), Ge = (e) => {
1062
+ const r = e.getElementById(T);
907
1063
  if (r != null && r.textContent)
908
1064
  return !0;
909
- const t = b.get(e) || b.get(e.documentElement);
1065
+ const t = h.get(e) || h.get(e.documentElement);
910
1066
  return !!(t && Object.keys(t).length);
911
- }, Ee = (e) => {
912
- var a;
913
- const r = ((a = e.defaultView) == null ? void 0 : a.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
1067
+ }, Ye = (e) => {
1068
+ var o;
1069
+ const r = ((o = e.defaultView) == null ? void 0 : o.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
914
1070
  if (!r || !e.documentElement)
915
1071
  return !1;
916
1072
  const t = r(e.documentElement);
917
- return le.some((u) => t.getPropertyValue(u).trim());
918
- }, Ce = (e, r) => {
919
- const t = C(e);
1073
+ return $e.some((u) => t.getPropertyValue(u).trim());
1074
+ }, L = (e) => Object.prototype.toString.call(e) === "[object Object]", N = (e) => ({
1075
+ themeName: e.name,
1076
+ basePresetName: e.basePresetName,
1077
+ variables: e.variables
1078
+ }), x = () => N(F()), oe = (e) => {
1079
+ if (typeof window > "u")
1080
+ return null;
1081
+ try {
1082
+ const r = window.localStorage.getItem(e);
1083
+ if (!r)
1084
+ return null;
1085
+ const t = JSON.parse(r);
1086
+ return L(t) ? t : null;
1087
+ } catch {
1088
+ return null;
1089
+ }
1090
+ }, qe = (e, r) => {
1091
+ if (!L(e))
1092
+ return null;
1093
+ const t = { ...r };
1094
+ return Object.entries(e).forEach(([o, u]) => {
1095
+ !o.startsWith("--") || typeof u != "string" && typeof u != "number" || (t[o] = String(u));
1096
+ }), M(t);
1097
+ }, ae = (e) => {
1098
+ const r = L(e.customTheme) ? e.customTheme : null;
1099
+ if (!r)
1100
+ return null;
1101
+ const t = String(r.basePresetName || e.remoteTheme || "").trim(), o = g(t) || F(), u = qe(r.variables, o.variables);
1102
+ return u ? {
1103
+ themeName: "custom",
1104
+ basePresetName: o.name,
1105
+ variables: u
1106
+ } : null;
1107
+ }, Je = (e) => {
1108
+ if (!e.useStoredTheme)
1109
+ return null;
1110
+ const r = String(e.storageKey || C).trim() || C, t = oe(r);
1111
+ if (!t)
1112
+ return null;
1113
+ const o = [t.currentTheme, t.remoteTheme];
1114
+ for (const u of o) {
1115
+ const n = String(u || "").trim();
1116
+ if (!n)
1117
+ continue;
1118
+ if (n === "custom") {
1119
+ const i = ae(t);
1120
+ if (i)
1121
+ return i;
1122
+ continue;
1123
+ }
1124
+ const l = g(n);
1125
+ if (l)
1126
+ return N(l);
1127
+ }
1128
+ return null;
1129
+ }, Xe = (e) => {
1130
+ const r = e.documentElement, t = [r.getAttribute("data-theme"), r.getAttribute("data-skin")];
1131
+ for (const o of t) {
1132
+ const u = g(String(o || "").trim());
1133
+ if (u)
1134
+ return N(u);
1135
+ }
1136
+ return null;
1137
+ }, Qe = (e, r) => {
1138
+ const t = String(r.presetName || "").trim();
1139
+ if (t) {
1140
+ if (t === "custom") {
1141
+ if (r.useStoredTheme === !1)
1142
+ return x();
1143
+ const u = String(r.storageKey || C).trim() || C, n = oe(u);
1144
+ return (n ? ae(n) : null) || x();
1145
+ }
1146
+ const o = g(t);
1147
+ return o ? N(o) : x();
1148
+ }
1149
+ return Xe(e) || Je(r) || x();
1150
+ }, Ze = (e, r) => {
1151
+ const t = _(e);
920
1152
  (r.parentNode !== t || t.firstChild !== r) && t.insertBefore(r, t.firstChild);
921
- }, je = (e = {}) => {
922
- var i;
1153
+ }, wr = (e = {}) => {
1154
+ var p;
923
1155
  if (typeof document > "u")
924
1156
  return null;
925
- const r = ((i = e.root) == null ? void 0 : i.ownerDocument) || document, t = y(e.presetName || "default") || H(), a = e.styleId || fe;
926
- if (!e.force && he(r))
1157
+ const r = ((p = e.root) == null ? void 0 : p.ownerDocument) || document, t = Qe(r, e), o = e.styleId || je;
1158
+ if (!e.force && Ge(r))
927
1159
  return null;
928
- const u = r.getElementById(a);
929
- if (!e.force && !u && Ee(r))
1160
+ const u = r.getElementById(o);
1161
+ if (!e.force && !u && Ye(r))
930
1162
  return null;
931
- const f = u || r.createElement("style");
932
- f.id || (f.id = a);
933
- const l = $(t.name, {
934
- includeElementAndDasUiBridges: e.includeElementAndDasUiBridges
935
- });
936
- f.textContent !== l && (f.textContent = l), Ce(r, f);
937
- const { setThemeAttributes: s = !0 } = e;
938
- return s && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", e.themeName || t.name), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || t.basePresetName)), f;
939
- }, R = (e, r) => {
1163
+ const n = u || r.createElement("style");
1164
+ n.id || (n.id = o);
1165
+ const l = e.themeName || t.themeName, i = e.basePresetName || t.basePresetName, s = O(P(t.variables, {
1166
+ includeElementAndDasUiBridges: e.includeElementAndDasUiBridges,
1167
+ themeName: l,
1168
+ basePresetName: i
1169
+ }));
1170
+ n.textContent !== s && (n.textContent = s), Ze(r, n);
1171
+ const { setThemeAttributes: c = !0 } = e;
1172
+ return c && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", l), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || i)), n;
1173
+ }, J = (e, r) => {
940
1174
  if (!e.length || !r.length)
941
1175
  return;
942
1176
  const t = new Set(r);
943
- for (let a = e.length - 1; a >= 0; a--) {
944
- const u = e[a];
1177
+ for (let o = e.length - 1; o >= 0; o--) {
1178
+ const u = e[o];
945
1179
  t.has(u) && e.removeProperty(u);
946
1180
  }
947
- }, Te = (e, r) => {
948
- const t = ye(e), a = z(r);
949
- (D.get(e) !== a || t.textContent !== a) && (t.textContent = a, D.set(e, a));
1181
+ }, er = (e, r) => {
1182
+ const t = Ke(e), o = O(r);
1183
+ (G.get(e) !== o || t.textContent !== o) && (t.textContent = o, G.set(e, o));
950
1184
  const u = Object.keys(r);
951
- R(e.documentElement.style, u), e.body && R(e.body.style, u);
952
- }, Fe = (e) => {
1185
+ J(e.documentElement.style, u), e.body && J(e.body.style, u);
1186
+ }, rr = (e) => {
953
1187
  typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
954
- }, we = (e, r) => {
955
- const t = x(r) || {}, a = e.ownerDocument || document;
956
- b.set(e, t);
957
- const u = e === a.documentElement || e === a.body;
958
- u && b.set(a, t), u && typeof window < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
959
- }, Se = (e) => {
960
- const r = B(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), a = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
961
- return (r ? b.get(r) : null) || (t ? b.get(t) : null) || a;
962
- }, _e = (e = !0) => {
1188
+ }, tr = (e, r) => {
1189
+ const t = E(r) || {}, o = e.ownerDocument || document;
1190
+ h.set(e, t);
1191
+ const u = e === o.documentElement || e === o.body;
1192
+ u && h.set(o, t), u && typeof window < "u" && o === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
1193
+ }, or = (e) => {
1194
+ const r = I(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), o = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
1195
+ return (r ? h.get(r) : null) || (t ? h.get(t) : null) || o;
1196
+ }, ar = (e = !0) => {
963
1197
  var r;
964
1198
  if (typeof window > "u" || !window.name)
965
1199
  return null;
966
1200
  try {
967
- const t = JSON.parse(window.name), a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
968
- return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
969
- themeName: String(a.themeName || ""),
970
- config: a.config || null,
971
- variables: a.variables,
972
- timestamp: Number(a.timestamp) || Date.now()
1201
+ const t = JSON.parse(window.name), o = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
1202
+ return !(o != null && o.variables) || typeof o.variables != "object" ? null : {
1203
+ themeName: String(o.themeName || ""),
1204
+ config: o.config || null,
1205
+ variables: o.variables,
1206
+ timestamp: Number(o.timestamp) || Date.now()
973
1207
  };
974
1208
  } catch {
975
1209
  return null;
976
1210
  }
977
- }, ke = (e, r) => {
1211
+ }, ur = (e, r) => {
978
1212
  if (r !== void 0)
979
1213
  return r;
980
1214
  const t = e.config || {};
981
1215
  return String(t.basePresetName || t.name || e.themeName || "").trim() || null;
982
- }, He = (e, r = {}) => {
983
- const t = B(r.root);
1216
+ }, nr = (e, r = {}) => {
1217
+ const t = I(r.root);
984
1218
  if (!t)
985
1219
  return {};
986
- const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((l, [s, i]) => (l[s] = String(i ?? ""), l), {}) : O(a, {
987
- includeElementAndDasUiBridges: r.includeElementAndDasUiBridges
988
- }), f = t.ownerDocument || document;
989
- return t === f.documentElement || t === f.body ? Te(f, u) : Object.entries(u).forEach(([l, s]) => {
990
- t.style.getPropertyValue(l) !== s && t.style.setProperty(l, s);
991
- }), 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;
992
- }, j = (e, r = {}) => {
993
- const t = He(e.variables || {}, {
1220
+ const o = M(e), u = r.includeBridges === !1 ? Object.entries(o).reduce((l, [i, s]) => (l[i] = String(s ?? ""), l), {}) : P(o, {
1221
+ includeElementAndDasUiBridges: r.includeElementAndDasUiBridges,
1222
+ themeName: r.themeName,
1223
+ basePresetName: r.basePresetName
1224
+ }), n = t.ownerDocument || document;
1225
+ return t === n.documentElement || t === n.body ? er(n, u) : Object.entries(u).forEach(([l, i]) => {
1226
+ t.style.getPropertyValue(l) !== i && t.style.setProperty(l, i);
1227
+ }), tr(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;
1228
+ }, ue = (e, r = {}) => {
1229
+ const t = e.config || {}, o = nr(e.variables || {}, {
994
1230
  ...r,
995
1231
  themeName: r.themeName || e.themeName,
996
- skinName: ke(e, r.skinName)
1232
+ basePresetName: r.basePresetName || String(t.basePresetName || t.name || ""),
1233
+ skinName: ur(e, r.skinName)
997
1234
  });
998
- return Fe(e), t;
999
- }, S = (e, r, t = !0) => {
1235
+ return rr(e), o;
1236
+ }, V = (e, r, t = !0) => {
1000
1237
  try {
1001
1238
  return e && e.__THEME_API__ || null;
1002
1239
  } catch {
1003
1240
  return null;
1004
1241
  }
1005
- }, T = (e = !0) => typeof window > "u" ? null : S(window, "current", e) || S(window.parent, "parent", e) || S(window.top, "top", e), W = (e = {}) => {
1006
- const r = T(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1242
+ }, A = (e = !0) => typeof window > "u" ? null : V(window, "current", e) || V(window.parent, "parent", e) || V(window.top, "top", e), ne = (e = {}) => {
1243
+ const r = A(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1007
1244
  if (t)
1008
1245
  return t;
1009
- const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1010
- return a || _e(e.debug);
1011
- }, Be = (e = {}) => {
1012
- const r = Se(e.root);
1246
+ const o = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1247
+ return o || ar(e.debug);
1248
+ }, lr = (e = {}) => {
1249
+ const r = or(e.root);
1013
1250
  if (r)
1014
- return x(r);
1015
- const t = W(e);
1251
+ return E(r);
1252
+ const t = ne(e);
1016
1253
  if (t != null && t.variables)
1017
- return x(t.variables);
1018
- const a = T(e.debug);
1019
- if (!a)
1254
+ return E(t.variables);
1255
+ const o = A(e.debug);
1256
+ if (!o)
1020
1257
  return null;
1021
- const u = a.getVariables ? a.getVariables() : null;
1022
- return x(u);
1023
- }, We = (e, r = !0) => {
1024
- const t = T(r);
1258
+ const u = o.getVariables ? o.getVariables() : null;
1259
+ return E(u);
1260
+ }, Fr = (e, r = !0) => {
1261
+ const t = A(r);
1025
1262
  return t != null && t.changeTheme ? (t.changeTheme(e), !0) : !1;
1026
- }, G = (e = {}) => {
1027
- const r = W(e);
1028
- return r ? (j(r, e), r) : (e.debug, null);
1029
- }, Ge = (e = {}) => G({
1263
+ }, le = (e = {}) => {
1264
+ const r = ne(e);
1265
+ return r ? (ue(r, e), r) : (e.debug, null);
1266
+ }, _r = (e = {}) => le({
1030
1267
  includeBridges: !1,
1031
1268
  includeElementAndDasUiBridges: !1,
1032
1269
  ...e
1033
- }), Ae = (e, r = !0) => {
1270
+ }), ir = (e, r = !0) => {
1034
1271
  try {
1035
- const t = q("microApp");
1036
- return t.event.on(A, e), () => {
1037
- t.event.off(A, e);
1272
+ const t = se("microApp");
1273
+ return t.event.on(W, e), () => {
1274
+ t.event.off(W, e);
1038
1275
  };
1039
1276
  } catch {
1040
1277
  return null;
1041
1278
  }
1042
- }, De = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, Ne = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", Ve = (e) => {
1279
+ }, sr = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, fr = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", cr = (e) => {
1043
1280
  let r = "";
1044
1281
  return (t) => {
1045
- const a = Ne(t);
1046
- a && a === r || (r = a, e(t));
1282
+ const o = fr(t);
1283
+ o && o === r || (r = o, e(t));
1047
1284
  };
1048
- }, Me = (e, r, t = !1, a = !0) => {
1049
- const u = Ve(r), f = De(e, u), l = Ae(u, a), i = (t ? [f, l] : [l, f]).filter(Boolean);
1050
- return i.length ? () => {
1051
- i.forEach((c) => c());
1285
+ }, pr = (e, r, t = !1, o = !0) => {
1286
+ const u = cr(r), n = sr(e, u), l = ir(u, o), s = (t ? [n, l] : [l, n]).filter(Boolean);
1287
+ return s.length ? () => {
1288
+ s.forEach((c) => c());
1052
1289
  } : null;
1053
- }, Re = (e = {}) => {
1054
- const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: a, debug: u = !0, ...f } = e, l = T(u);
1055
- let s = !1, i = null, c = null;
1056
- const m = () => {
1057
- s || G({ ...f, debug: u });
1058
- }, F = Me(l, (g) => {
1059
- j(g, f), a && (g == null ? void 0 : g.source) !== "mountSync" && a(g);
1290
+ }, mr = (e = {}) => {
1291
+ const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: o, debug: u = !0, ...n } = e, l = A(u);
1292
+ let i = !1, s = null, c = null;
1293
+ const p = () => {
1294
+ i || le({ ...n, debug: u });
1295
+ }, k = pr(l, (b) => {
1296
+ ue(b, n), o && (b == null ? void 0 : b.source) !== "mountSync" && o(b);
1060
1297
  }, t, u);
1061
- return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (K) => Promise.resolve().then(K))(m), typeof requestAnimationFrame == "function" ? i = requestAnimationFrame(() => {
1062
- i = null, m();
1298
+ return r && (p(), (typeof queueMicrotask == "function" ? queueMicrotask : (ie) => Promise.resolve().then(ie))(p), typeof requestAnimationFrame == "function" ? s = requestAnimationFrame(() => {
1299
+ s = null, p();
1063
1300
  }) : c = setTimeout(() => {
1064
- c = null, m();
1301
+ c = null, p();
1065
1302
  }, 16)), () => {
1066
- s = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), F == null || F();
1303
+ i = !0, s !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(s), s = null), c !== null && (clearTimeout(c), c = null), k == null || k();
1067
1304
  };
1068
- }, Ke = (e = {}) => Re({
1305
+ }, Nr = (e = {}) => mr({
1069
1306
  includeBridges: !1,
1070
1307
  includeElementAndDasUiBridges: !1,
1071
1308
  ...e
1072
- }), Ie = (e, r) => {
1073
- var f;
1074
- const t = B(r), a = String(e || "").trim();
1075
- if (!t || !a)
1309
+ }), dr = (e, r) => {
1310
+ var n;
1311
+ const t = I(r), o = String(e || "").trim();
1312
+ if (!t || !o)
1076
1313
  return "";
1077
- const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(a).trim();
1078
- return u || String(((f = Be({ root: t, debug: !1 })) == null ? void 0 : f[a]) ?? "");
1079
- }, qe = (e) => `var(${String(e || "").trim()})`, Je = (e, r) => ({
1080
- value: Ie(String(e || "").trim(), r)
1314
+ const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(o).trim();
1315
+ return u || String(((n = lr({ root: t, debug: !1 })) == null ? void 0 : n[o]) ?? "");
1316
+ }, Ar = (e) => `var(${String(e || "").trim()})`, kr = (e, r) => ({
1317
+ value: dr(String(e || "").trim(), r)
1081
1318
  });
1082
1319
  export {
1083
- oe as BUILTIN_PRESET_THEME_NAMES,
1084
- de as DAS_UI_THEME_BRIDGE_ITEMS,
1085
- pe as ELEMENT_THEME_BRIDGE_ITEMS,
1086
- ce as LEGACY_THEME_BRIDGE_ITEMS,
1087
- _ as PRESET_THEMES,
1088
- me as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1089
- j as applyThemeEventToDocument,
1090
- He as applyThemeVariablesToDocument,
1091
- $e as buildDefaultThemeCssText,
1092
- $ as buildPresetThemeCssText,
1093
- O as buildRuntimeThemeVariables,
1094
- We as changeTheme,
1095
- je as ensureDefaultThemeStyle,
1096
- Ue as getAllPresetThemes,
1097
- W as getCurrentTheme,
1098
- H as getDefaultPresetTheme,
1099
- ze as getDefaultThemeVariables,
1100
- _e as getHostThemeSnapshotFromWindowName,
1101
- Le as getPresetTheme,
1102
- T as getThemeAPI,
1103
- Ie as getThemeVariable,
1104
- Be as getThemeVariables,
1105
- qe as getVar,
1106
- Je as getVarValue,
1107
- Ke as initHostThemeRootSync,
1108
- Re as initSubAppThemeSync,
1109
- ne as mixHexColor,
1110
- E as resolveThemeBridgeVariables,
1111
- Ge as syncHostThemeRoot,
1112
- G as syncThemeFromHost,
1113
- xe as toDasUiColorOverrides,
1114
- be as toElementThemeVariables,
1115
- ge as toLegacyThemeVariables,
1116
- ie as toRgbaColor,
1117
- ve as toUpfComponentThemeVariables
1320
+ _e as BUILTIN_PRESET_THEME_NAMES,
1321
+ Pe as DAS_UI_THEME_BRIDGE_ITEMS,
1322
+ Me as ELEMENT_THEME_BRIDGE_ITEMS,
1323
+ De as LEGACY_THEME_BRIDGE_ITEMS,
1324
+ R as PRESET_THEMES,
1325
+ y as PRESET_THEME_VARIABLES,
1326
+ pe as THEME_SOURCE_VARIABLE_CATEGORIES,
1327
+ ge as THEME_SOURCE_VARIABLE_HINTS,
1328
+ de as THEME_SOURCE_VARIABLE_LABELS,
1329
+ S as THEME_SOURCE_VARIABLE_META,
1330
+ me as THEME_SOURCE_VARIABLE_NAMES,
1331
+ be as THEME_SOURCE_VARIABLE_RELATIONS,
1332
+ Ie as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1333
+ ue as applyThemeEventToDocument,
1334
+ nr as applyThemeVariablesToDocument,
1335
+ Sr as buildDefaultThemeCssText,
1336
+ We as buildPresetThemeCssText,
1337
+ P as buildRuntimeThemeVariables,
1338
+ Fr as changeTheme,
1339
+ wr as ensureDefaultThemeStyle,
1340
+ Tr as getAllPresetThemes,
1341
+ ne as getCurrentTheme,
1342
+ F as getDefaultPresetTheme,
1343
+ Cr as getDefaultThemeVariables,
1344
+ ar as getHostThemeSnapshotFromWindowName,
1345
+ Er as getPresetTheme,
1346
+ A as getThemeAPI,
1347
+ vr as getThemeSourceVariableCategories,
1348
+ yr as getThemeSourceVariableHints,
1349
+ hr as getThemeSourceVariableLabels,
1350
+ br as getThemeSourceVariableNames,
1351
+ xr as getThemeSourceVariableRelations,
1352
+ dr as getThemeVariable,
1353
+ lr as getThemeVariables,
1354
+ Ar as getVar,
1355
+ kr as getVarValue,
1356
+ Nr as initHostThemeRootSync,
1357
+ mr as initSubAppThemeSync,
1358
+ Q as mixHexColor,
1359
+ X as normalizeHexColor,
1360
+ ye as normalizeThemeSourceVariables,
1361
+ D as resolvePrimaryBgColor,
1362
+ w as resolveThemeBridgeVariables,
1363
+ _r as syncHostThemeRoot,
1364
+ le as syncThemeFromHost,
1365
+ Ue as toDasUiColorOverrides,
1366
+ Le as toElementThemeVariables,
1367
+ Oe as toLegacyThemeVariables,
1368
+ ce as toRgbaColor,
1369
+ ze as toUpfComponentThemeVariables
1118
1370
  };