@mxmweb/zui 1.1.14 → 1.3.0

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 (132) hide show
  1. package/README.md +61 -3
  2. package/assets/style.css +1 -0
  3. package/cluster_enter.d.ts +25 -0
  4. package/index.js +33 -0
  5. package/package.json +24 -39
  6. package/.editorconfig +0 -38
  7. package/.prettierignore +0 -16
  8. package/.prettierrc +0 -17
  9. package/.releaserc.json +0 -36
  10. package/CHANGELOG.md +0 -58
  11. package/CONTRIBUTING.md +0 -111
  12. package/NPMREADME.md +0 -0
  13. package/bash.exe.stackdump +0 -40
  14. package/components.json +0 -21
  15. package/dist/Preview.d.ts +0 -3
  16. package/dist/README.md +0 -4
  17. package/dist/assets/style.css +0 -1
  18. package/dist/containers/DashboardContainer.d.ts +0 -35
  19. package/dist/containers/DockContainer.d.ts +0 -24
  20. package/dist/elements/Button.d.ts +0 -17
  21. package/dist/elements/CustomDock.d.ts +0 -25
  22. package/dist/elements/DropDownButton.d.ts +0 -24
  23. package/dist/elements/DropdownMenu.d.ts +0 -18
  24. package/dist/elements/GoggleNavbar.d.ts +0 -31
  25. package/dist/elements/Uploader/UploadItem.d.ts +0 -35
  26. package/dist/elements/Uploader/example.d.ts +0 -7
  27. package/dist/elements/Uploader/index.d.ts +0 -9
  28. package/dist/elements/Uploader/styles.d.ts +0 -65
  29. package/dist/elements/Uploader/types.d.ts +0 -87
  30. package/dist/elements/Uploader/utils.d.ts +0 -31
  31. package/dist/elements/Uploader.d.ts +0 -2
  32. package/dist/examples/DockContainerExample.d.ts +0 -3
  33. package/dist/examples/Dropdown.d.ts +0 -2
  34. package/dist/icons/Icon.d.ts +0 -7
  35. package/dist/icons/Icon.tsx +0 -82
  36. package/dist/icons/index.d.ts +0 -13
  37. package/dist/icons/index.tsx +0 -92
  38. package/dist/icons/lazyIndex.d.ts +0 -7
  39. package/dist/icons/lazyIndex.tsx +0 -49
  40. package/dist/icons/rag/csv.svg +0 -3
  41. package/dist/icons/rag/document.svg +0 -3
  42. package/dist/icons/rag/excel.svg +0 -3
  43. package/dist/icons/rag/file.svg +0 -3
  44. package/dist/icons/rag/folder.svg +0 -5
  45. package/dist/icons/rag/json.svg +0 -3
  46. package/dist/icons/rag/knowledgebase.svg +0 -3
  47. package/dist/icons/rag/netretrive.svg +0 -3
  48. package/dist/icons/rag/odf.svg +0 -7
  49. package/dist/icons/rag/pdf.svg +0 -3
  50. package/dist/icons/rag/pic.svg +0 -3
  51. package/dist/icons/rag/ppt.svg +0 -3
  52. package/dist/icons/rag/think.svg +0 -6
  53. package/dist/icons/rag/txt.svg +0 -3
  54. package/dist/icons/rag/url.svg +0 -3
  55. package/dist/icons/rag/word.svg +0 -3
  56. package/dist/icons/rag/wps.svg +0 -3
  57. package/dist/icons/rag/zip.svg +0 -7
  58. package/dist/index.js +0 -2301
  59. package/dist/lib_enter.d.ts +0 -13
  60. package/dist/main.d.ts +0 -1
  61. package/dist/mock.csv +0 -16
  62. package/dist/mock_/345/211/257/346/234/254.csv +0 -16
  63. package/dist/package.json +0 -30
  64. package/dist/theme/styledTheme.d.ts +0 -101
  65. package/dist/vite.svg +0 -1
  66. package/eslint.config.js +0 -92
  67. package/index.html +0 -13
  68. package/postcss.config.cjs +0 -19
  69. package/public/mock.csv +0 -16
  70. package/public/mock_/345/211/257/346/234/254.csv +0 -16
  71. package/public/vite.svg +0 -1
  72. package/src/Preview.tsx +0 -15
  73. package/src/assets/img/excel.png +0 -0
  74. package/src/assets/img/img.png +0 -0
  75. package/src/assets/img/pdf.png +0 -0
  76. package/src/assets/img/ppt.png +0 -0
  77. package/src/assets/img/txt.png +0 -0
  78. package/src/assets/img/word.png +0 -0
  79. package/src/containers/DashboardContainer.tsx +0 -507
  80. package/src/containers/DockContainer.tsx +0 -186
  81. package/src/containers/style.css +0 -37
  82. package/src/elements/Button.tsx +0 -118
  83. package/src/elements/CustomDock.tsx +0 -287
  84. package/src/elements/DropDownButton.tsx +0 -249
  85. package/src/elements/DropdownMenu.tsx +0 -186
  86. package/src/elements/GoggleNavbar.tsx +0 -184
  87. package/src/elements/Uploader/README.md +0 -249
  88. package/src/elements/Uploader/UploadItem.tsx +0 -298
  89. package/src/elements/Uploader/example.tsx +0 -95
  90. package/src/elements/Uploader/index.tsx +0 -702
  91. package/src/elements/Uploader/styles.tsx +0 -291
  92. package/src/elements/Uploader/types.ts +0 -119
  93. package/src/elements/Uploader/utils.ts +0 -200
  94. package/src/elements/Uploader.tsx +0 -3
  95. package/src/examples/DockContainerExample.tsx +0 -254
  96. package/src/examples/Dropdown.tsx +0 -27
  97. package/src/icons/Icon.tsx +0 -82
  98. package/src/icons/index.tsx +0 -92
  99. package/src/icons/lazyIndex.tsx +0 -49
  100. package/src/icons/rag/csv.svg +0 -3
  101. package/src/icons/rag/document.svg +0 -3
  102. package/src/icons/rag/excel.svg +0 -3
  103. package/src/icons/rag/file.svg +0 -3
  104. package/src/icons/rag/folder.svg +0 -5
  105. package/src/icons/rag/json.svg +0 -3
  106. package/src/icons/rag/knowledgebase.svg +0 -3
  107. package/src/icons/rag/netretrive.svg +0 -3
  108. package/src/icons/rag/odf.svg +0 -7
  109. package/src/icons/rag/pdf.svg +0 -3
  110. package/src/icons/rag/pic.svg +0 -3
  111. package/src/icons/rag/ppt.svg +0 -3
  112. package/src/icons/rag/think.svg +0 -6
  113. package/src/icons/rag/txt.svg +0 -3
  114. package/src/icons/rag/url.svg +0 -3
  115. package/src/icons/rag/word.svg +0 -3
  116. package/src/icons/rag/wps.svg +0 -3
  117. package/src/icons/rag/zip.svg +0 -7
  118. package/src/lib_enter.ts +0 -27
  119. package/src/main.tsx +0 -11
  120. package/src/style.css +0 -9
  121. package/src/theme/styledTheme.tsx +0 -253
  122. package/src/type.d.ts +0 -0
  123. package/src/types/images.d.ts +0 -12
  124. package/src/types/svg-modules.d.ts +0 -24
  125. package/src/vite-env.d.ts +0 -11
  126. package/tailwind.config.js +0 -170
  127. package/tsconfig.app.json +0 -29
  128. package/tsconfig.app.tsbuildinfo +0 -11
  129. package/tsconfig.json +0 -13
  130. package/tsconfig.node.json +0 -22
  131. package/tsconfig.node.tsbuildinfo +0 -1
  132. package/vite.config.ts +0 -165
package/dist/index.js DELETED
@@ -1,2301 +0,0 @@
1
- import { jsxs as k, jsx as i, Fragment as u0 } from "react/jsx-runtime";
2
- import m, { createGlobalStyle as H0 } from "styled-components";
3
- import * as P from "react";
4
- import J, { createContext as B0, useState as j, useMemo as d0, useEffect as o0, useRef as r0, useCallback as U, memo as M0, Suspense as A0 } from "react";
5
- import { createPortal as w0 } from "react-dom";
6
- import { MoreHorizontal as _0, Trash as V0, File as Y, AlertCircle as h0, Upload as z0, ChevronDown as I0, ArrowLeft as E0, ChevronRight as a0 } from "lucide-react";
7
- import { FormXviwer as S0 } from "@mxmweb/xviewer";
8
- import "@mxmweb/xviewer/style.css";
9
- import f0 from "animejs/lib/anime.es.js";
10
- const I = {
11
- colors: {
12
- // 兼容旧字段
13
- primary: "#4E6EF2",
14
- secondary: "#6D86F5",
15
- success: "#52C41A",
16
- warning: "#FAAD14",
17
- error: "#F5222D",
18
- info: "#1890FF",
19
- background: "#F7F8FA",
20
- text: "#1D2129",
21
- border: "#DDE0E5",
22
- disabled: "#C9CDD4",
23
- disabledBackground: "#F5F7FA",
24
- disabledText: "#C9CDD4",
25
- shadow: "0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",
26
- appBackground: "transparent",
27
- listBackground: "#F2F3F5",
28
- dashboardBackground: "#FFFFFF",
29
- textSecondary: "#4E5969",
30
- textTertiary: "#86909C",
31
- textInverse: "#FFFFFF",
32
- // 状态与扩展
33
- primaryHover: "#6D86F5",
34
- primaryActive: "#2D4BE0",
35
- borderWeak: "#E5E6EB",
36
- surfaceSubtle: "#F2F3F5",
37
- surfaceSelected: "#EEF3FE",
38
- // 按钮映射
39
- btnPrimaryBg: "#4E6EF2",
40
- btnPrimaryBgHover: "#6D86F5",
41
- btnPrimaryBgActive: "#2D4BE0",
42
- btnPrimaryBgDisabled: "#F5F7FA",
43
- btnPrimaryText: "#FFFFFF",
44
- btnPrimaryTextDisabled: "#C9CDD4",
45
- btnSecondaryText: "#4E6EF2",
46
- btnSecondaryTextHover: "#4E6EF2",
47
- btnSecondaryTextActive: "#2D4BE0",
48
- btnSecondaryTextDisabled: "#C9CDD4",
49
- btnSecondaryBg: "#FFFFFF",
50
- btnSecondaryBgHover: "#EEF3FE",
51
- btnSecondaryBgActive: "#EEF3FE",
52
- btnSecondaryBgDisabled: "#F5F7FA",
53
- btnSecondaryBorder: "#4E6EF2",
54
- btnSecondaryBorderHover: "#6D86F5",
55
- btnSecondaryBorderActive: "#2D4BE0",
56
- btnSecondaryBorderDisabled: "#E5E6EB",
57
- btnTextText: "#4E6EF2",
58
- btnTextTextHover: "#6D86F5",
59
- btnTextTextActive: "#2D4BE0",
60
- btnTextTextDisabled: "#C9CDD4"
61
- },
62
- space: {
63
- sidebar: "260px",
64
- size: "12px",
65
- radius: "4px",
66
- padding: "8px",
67
- margin: "8px",
68
- shadow: "0 2px 8px rgba(0,0,0,0.1)",
69
- lineHeight: "1.5"
70
- },
71
- fonts: {
72
- body: {
73
- size: "14px",
74
- weight: "normal",
75
- family: "PingFang SC, Microsoft YaHei, Arial, sans-serif"
76
- },
77
- heading: {
78
- size: "16px",
79
- weight: "600",
80
- family: "PingFang SC, Microsoft YaHei, Arial, sans-serif"
81
- }
82
- },
83
- icons: {
84
- aiAvatar: "http://10.15.12.13:9000/dev-rag-data/header_pic/JIABINBIN00/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231212161213.jpg",
85
- userAvatar: "http://10.15.12.13:9005/assets/nav-logo-BKaOCDqi.png",
86
- pdf: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/pdf-icon.png",
87
- word: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/word-icon.png",
88
- image: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/image-icon.png",
89
- video: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/video-icon.png",
90
- audio: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/audio-icon.png",
91
- excel: "https://ai-chat-1326151111.cos.c zap-shanghai.myqcloud.com/excel-icon.png",
92
- ppt: "https://ai-chat-1326151111.cos.ap-shanghai.myqcloud.com/ppt-icon.png"
93
- },
94
- others: {
95
- baseFontWeight: "normal"
96
- }
97
- }, F0 = {
98
- theme: I,
99
- mode: "light"
100
- };
101
- function l0(e, o) {
102
- if (!o) return e;
103
- const r = {
104
- ...e,
105
- ...o
106
- };
107
- return o.theme && e.theme && (r.theme = {
108
- ...e.theme,
109
- ...o.theme,
110
- colors: { ...e.theme.colors, ...o.theme.colors },
111
- space: { ...e.theme.space, ...o.theme.space },
112
- icons: { ...e.theme.icons, ...o.theme.icons },
113
- fonts: { ...e.theme.fonts, ...o.theme.fonts },
114
- others: { ...e.theme.others, ...o.theme.others }
115
- }), r;
116
- }
117
- B0(F0);
118
- const N0 = m.button`
119
- height: 36px;
120
- min-height: 36px;
121
- max-height: 36px;
122
- line-height: 34px;
123
- padding: 0 12px;
124
- border-radius: ${(e) => {
125
- var o, r;
126
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
127
- }};
128
- font-size: 12px;
129
- border: none;
130
- cursor: ${(e) => e.$disabled || e.$loading ? "not-allowed" : "pointer"};
131
- transition: all 0.2s;
132
- opacity: ${(e) => e.$disabled ? 0.5 : 1};
133
- display: inline-flex;
134
- align-items: center;
135
- justify-content: center;
136
- gap: 6px;
137
- position: relative;
138
- background: ${({ $btnType: e, $theme: o }) => {
139
- var r, a, n;
140
- return e === "text" ? "none" : e === "primary" ? ((r = o == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff" : e === "error" ? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a.error) || "#FF0000" : e === "default" ? ((n = o == null ? void 0 : o.colors) == null ? void 0 : n.background) || "#f8f9fa" : "none";
141
- }};
142
- color: ${({ $btnType: e, $theme: o }) => {
143
- var r, a;
144
- return e === "text" ? ((r = o == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff" : e === "primary" || e === "error" ? "#ffffff" : ((a = o == null ? void 0 : o.colors) == null ? void 0 : a.text) || "#343a40";
145
- }};
146
- border: ${({ $btnType: e, $theme: o }) => {
147
- var r;
148
- return e === "default" ? `1px solid ${((r = o == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6"}` : "none";
149
- }};
150
- box-shadow: none;
151
-
152
- /* Loading 状态样式 */
153
- ${(e) => e.$loading && `
154
- pointer-events: none;
155
- opacity: 0.8;
156
-
157
- .button-loading {
158
- width: 14px;
159
- height: 14px;
160
- border: 2px solid transparent;
161
- border-top: 2px solid currentColor;
162
- border-radius: 50%;
163
- animation: spin 1s linear infinite;
164
- margin-right: 6px;
165
- }
166
- `}
167
-
168
- @keyframes spin {
169
- 0% { transform: rotate(0deg); }
170
- 100% { transform: rotate(360deg); }
171
- }
172
- `, v0 = ({
173
- mode: e = "default",
174
- label: o,
175
- icon: r,
176
- disabled: a = !1,
177
- loading: n = !1,
178
- // 新增:loading 状态
179
- onClick: g,
180
- styles: w,
181
- style: u,
182
- className: $,
183
- children: C,
184
- ...c
185
- }) => {
186
- const f = l0(I, w), h = () => {
187
- !a && !n && g && g();
188
- };
189
- return /* @__PURE__ */ k(
190
- N0,
191
- {
192
- $btnType: e,
193
- $disabled: a,
194
- $loading: n,
195
- $theme: f.theme || I,
196
- onClick: h,
197
- disabled: a || n,
198
- style: u,
199
- className: $,
200
- ...c,
201
- children: [
202
- n && /* @__PURE__ */ i("span", { className: "button-loading" }),
203
- r && /* @__PURE__ */ i("span", { className: "button-icon", style: { marginRight: 4 }, children: r }),
204
- o && /* @__PURE__ */ i("span", { className: "button-label", children: o }),
205
- C
206
- ]
207
- }
208
- );
209
- }, T0 = m.div`
210
- background-color: #ffffff;
211
- box-shadow: 0 2px 12px rgba(0,0,0,0.08);
212
- border-radius: ${(e) => {
213
- var o, r;
214
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "8px";
215
- }};
216
- height: 90vh;
217
- overflow: hidden;
218
- position: relative;
219
- `, Z0 = () => {
220
- o0(() => {
221
- const e = "goggle-nav-icon-styles";
222
- if (!document.getElementById(e)) {
223
- const o = document.createElement("style");
224
- o.id = e, o.innerHTML = `
225
- :root { --color-gray: #64748b; --color-blue: #3b82f6; }
226
- .g-nav-item { position: relative; transition: all .3s ease; border-radius: 8px; }
227
- .g-nav-icon img { transition: all .3s ease; filter: grayscale(100%) brightness(100%) opacity(.7); }
228
- .g-nav-text { color: var(--color-gray); transition: color .3s ease; }
229
- .g-nav-item:not(.active):hover .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(80%) opacity(1); transform: scale(1.05); }
230
- .g-nav-item:not(.active):hover .g-nav-text { color: var(--color-blue); font-weight: 500; }
231
- .g-nav-item.active { background-color: rgba(219,234,254,0.6); }
232
- .g-nav-item.active .g-nav-icon img { filter: sepia(100%) saturate(1000%) hue-rotate(200deg) brightness(100%) opacity(1); transform: scale(1.05); }
233
- .g-nav-item.active .g-nav-text { color: var(--color-blue); opacity: .8; font-weight: 500; }
234
- .g-nav-item.active::before { content: ''; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px; background: var(--color-blue); border-radius: 0 2px 2px 0; }
235
- `, document.head.appendChild(o);
236
- }
237
- }, []);
238
- }, C1 = ({
239
- items: e,
240
- activePath: o,
241
- defaultOpen: r = !0,
242
- open: a,
243
- onOpenChange: n,
244
- onItemClick: g,
245
- logo: w,
246
- className: u,
247
- style: $,
248
- styles: C
249
- }) => {
250
- const c = l0(I, C == null ? void 0 : C.theme);
251
- Z0();
252
- const [f, h] = j(r), t = typeof a == "boolean" ? a : f, F = (v) => {
253
- typeof a == "boolean" || h(v), n == null || n(v);
254
- }, [y, _] = j(!1), D = (v) => v ? typeof v == "string" ? /* @__PURE__ */ i("img", { src: v, className: "w-6 h-6 transition-all duration-200", alt: "nav" }) : v : null, E = d0(() => ({
255
- width: t ? "60px" : "20px",
256
- minWidth: t ? "60px" : "20px",
257
- transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
258
- }), [t]);
259
- return /* @__PURE__ */ k(T0, { $theme: c.theme || I, className: `relative ${u || ""}`, style: { ...E, ...$ }, children: [
260
- /* @__PURE__ */ i(
261
- "div",
262
- {
263
- onMouseEnter: () => _(!0),
264
- onMouseLeave: () => _(!1),
265
- className: "absolute top-1/2 -translate-y-1/2 right-1 w-6 h-6 cursor-pointer z-20 transition-all duration-300",
266
- onClick: () => F(!t),
267
- "aria-label": t ? "\u6536\u8D77" : "\u5C55\u5F00",
268
- role: "button",
269
- children: /* @__PURE__ */ i("div", { className: "group flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200", children: /* @__PURE__ */ k("div", { className: "relative w-4 h-4 flex items-center justify-center", children: [
270
- /* @__PURE__ */ i("div", { className: `absolute w-[2px] h-3 bg-gray-400 rounded-full transition-all duration-300 ${y ? "opacity-0 scale-0" : "opacity-100 scale-100"}` }),
271
- /* @__PURE__ */ i(
272
- "svg",
273
- {
274
- viewBox: "0 0 24 24",
275
- fill: "none",
276
- className: `absolute w-4 h-4 stroke-gray-400 transition-all duration-300 ${y ? "opacity-100 scale-100" : "opacity-0 scale-0"} ${t ? "rotate-0" : "rotate-180"}`,
277
- strokeWidth: "2",
278
- strokeLinecap: "round",
279
- strokeLinejoin: "round",
280
- children: /* @__PURE__ */ i("polyline", { points: "15 18 9 12 15 6" })
281
- }
282
- )
283
- ] }) })
284
- }
285
- ),
286
- /* @__PURE__ */ k(
287
- "div",
288
- {
289
- className: "h-full py-6 px-[2px] flex flex-col items-center",
290
- style: {
291
- opacity: t ? 1 : 0,
292
- transform: t ? "translateX(0)" : "translateX(-10px)",
293
- transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)"
294
- },
295
- children: [
296
- /* @__PURE__ */ i("div", { className: "mb-6 transition-transform duration-300 hover:scale-105", children: typeof w == "string" ? /* @__PURE__ */ i("img", { src: w, className: "w-7 h-7", alt: "logo" }) : w || /* @__PURE__ */ i("div", { className: "w-7 h-7 rounded bg-gray-100 flex items-center justify-center text-xs text-gray-500", children: "G" }) }),
297
- /* @__PURE__ */ i("div", { className: "w-full gap-y-[2px] mb-10 flex-1 overflow-x-hidden overflow-y-auto scrollbar-none flex flex-col items-center", children: e.map((v) => {
298
- const R = !!(o && v.path && o.startsWith(v.path)), H = R && v.activeIcon ? v.activeIcon : v.icon;
299
- return /* @__PURE__ */ k(
300
- "div",
301
- {
302
- onClick: () => !v.disabled && (g == null ? void 0 : g(v)),
303
- className: `g-nav-item group relative w-full flex flex-col items-center justify-center py-3 px-2 rounded-lg cursor-pointer transition-all duration-200 ${R ? "active bg-blue-50" : "text-gray-500 hover:bg-gray-50"}`,
304
- children: [
305
- /* @__PURE__ */ k("div", { className: "relative g-nav-icon transition-transform duration-200 group-hover:scale-105", children: [
306
- D(H),
307
- v.badge && v.badge > 0 && /* @__PURE__ */ i("span", { className: "absolute -top-1 -right-1 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[10px] leading-4 text-center", children: v.badge > 99 ? "99+" : v.badge })
308
- ] }),
309
- /* @__PURE__ */ i("div", { className: "mt-1 text-xs text-center g-nav-text transition-colors duration-200", children: v.name })
310
- ]
311
- },
312
- v.key
313
- );
314
- }) })
315
- ]
316
- }
317
- )
318
- ] });
319
- }, x1 = ({
320
- actions: e,
321
- onAction: o,
322
- direction: r = "top",
323
- styles: a
324
- }) => {
325
- const [n, g] = j(!1), w = r0(null), [u, $] = j({}), C = r0(null);
326
- o0(() => {
327
- if (!n) return;
328
- const h = w.current;
329
- if (!h) return;
330
- const t = h.getBoundingClientRect(), F = window.scrollX || window.pageXOffset, y = window.scrollY || window.pageYOffset, _ = 128, D = 8;
331
- let E = {
332
- position: "absolute",
333
- left: t.right - _ + F,
334
- width: _,
335
- zIndex: 9999
336
- };
337
- if (r === "bottom")
338
- E.top = t.bottom + D - 12 + y;
339
- else {
340
- const H = e.length * 30 + 1;
341
- E.top = t.top - D + 10 - H + y;
342
- }
343
- $(E);
344
- }, [n, r, e]), o0(() => {
345
- if (!n) return;
346
- const h = (F) => {
347
- w.current && w.current.contains(F.target) || C.current && C.current.contains(F.target) || g(!1);
348
- }, t = () => g(!1);
349
- return document.addEventListener("mousedown", h), window.addEventListener("scroll", t, !0), () => {
350
- document.removeEventListener("mousedown", h), window.removeEventListener("scroll", t, !0);
351
- };
352
- }, [n]);
353
- const c = (a == null ? void 0 : a.theme) || I, f = /* @__PURE__ */ i(
354
- "div",
355
- {
356
- ref: C,
357
- className: `origin-bottom-right absolute right-0 w-32 rounded-md shadow-lg focus:outline-none border transition-all duration-200 ease-in-out
358
- ${n ? "opacity-100 translate-y-0 pointer-events-auto scale-100" : "opacity-0 pointer-events-none scale-95"}
359
- `,
360
- style: {
361
- ...u,
362
- background: c.colors.background,
363
- color: c.colors.text,
364
- border: `1px solid ${c.colors.border}`,
365
- borderRadius: c.space.radius,
366
- boxShadow: c.colors.shadow,
367
- minWidth: 128,
368
- zIndex: 9999
369
- },
370
- children: /* @__PURE__ */ i("div", { className: "py-1 px-2", children: e.map((h, t) => h.type === "divider" ? /* @__PURE__ */ i(
371
- "div",
372
- {
373
- className: "my-2 bg-gray-100",
374
- style: {
375
- height: 1
376
- }
377
- },
378
- h.key || `divider-${t}`
379
- ) : /* @__PURE__ */ k(
380
- "button",
381
- {
382
- className: "w-full rounded flex items-center px-4 py-2 text-sm transition whitespace-nowrap",
383
- style: {
384
- color: c.colors.text,
385
- background: "transparent",
386
- border: "none",
387
- // borderRadius: theme.space.radius,
388
- fontSize: 12,
389
- opacity: h.disabled ? 0.5 : 1,
390
- cursor: h.disabled ? "not-allowed" : "pointer"
391
- },
392
- onClick: (F) => {
393
- F.stopPropagation(), g(!1), o(h.key), h.onClick && h.onClick();
394
- },
395
- type: "button",
396
- onMouseOver: (F) => F.currentTarget.style.background = c.colors.disabledBackground,
397
- onMouseOut: (F) => F.currentTarget.style.background = "transparent",
398
- children: [
399
- h.icon && /* @__PURE__ */ i("span", { className: "mr-2", children: h.icon }),
400
- h.label
401
- ]
402
- },
403
- h.key || `action-${t}`
404
- )) })
405
- }
406
- );
407
- return /* @__PURE__ */ k(u0, { children: [
408
- /* @__PURE__ */ i(
409
- "button",
410
- {
411
- ref: w,
412
- className: "card-action-more-btn cursor-pointer! flex items-center justify-center w-9 h-9 rounded-sm transition border-none outline-none",
413
- style: {
414
- background: "transparent",
415
- // 默认透明背景
416
- color: c.colors.primary,
417
- borderRadius: c.space.radius
418
- },
419
- onClick: (h) => {
420
- h.stopPropagation(), g((t) => !t);
421
- },
422
- tabIndex: 0,
423
- "aria-label": "\u66F4\u591A\u64CD\u4F5C",
424
- type: "button",
425
- children: /* @__PURE__ */ i(_0, { size: 18, className: "text-blue-500" })
426
- }
427
- ),
428
- n && w0(f, document.body)
429
- ] });
430
- };
431
- if (typeof window < "u" && !document.getElementById("card-action-more-btn-style")) {
432
- const e = document.createElement("style");
433
- e.id = "card-action-more-btn-style", e.innerHTML = `
434
- .card-action-more-btn:hover {
435
- background: #f5f6fa !important;
436
- color: #222 !important;
437
- box-shadow: 0 2px 8px 0 rgba(51,112,255,0.06);
438
- }
439
- `, document.head.appendChild(e);
440
- }
441
- const L0 = (e) => {
442
- if (e === 0) return "0 B";
443
- const o = 1024, r = ["B", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(o));
444
- return parseFloat((e / Math.pow(o, a)).toFixed(2)) + " " + r[a];
445
- }, C0 = () => Math.random().toString(36).substr(2, 9), R0 = (e, o) => {
446
- const r = { ...e.formData }, a = ["name", "filename", "title", "displayName", "fileName"], n = ["size", "fileSize", "file_size"], g = ["type", "fileType", "mimeType", "contentType"];
447
- return o.forEach((w) => {
448
- const u = w.name || w.field;
449
- u && (a.includes(u.toLowerCase()) && !r[u] && (r[u] = e.name), n.includes(u.toLowerCase()) && !r[u] && (r[u] = L0(e.size)), g.includes(u.toLowerCase()) && !r[u] && (r[u] = e.type));
450
- }), r;
451
- }, O0 = async (e, o, r = {}, a = {}, n) => new Promise((g, w) => {
452
- var f;
453
- const u = new XMLHttpRequest(), $ = new URL(o);
454
- if (Object.entries(a).forEach(([h, t]) => {
455
- $.searchParams.append(h, t);
456
- }), (f = r["Content-Type"]) == null ? void 0 : f.includes("application/json")) {
457
- const h = new FileReader();
458
- h.onload = () => {
459
- const t = h.result, F = JSON.stringify({
460
- file: t.split(",")[1]
461
- // 移除 data:application/octet-stream;base64, 前缀
462
- });
463
- c(F);
464
- }, h.onerror = () => w(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")), h.readAsDataURL(e);
465
- } else {
466
- const h = new FormData();
467
- h.append("tableFile", e), c(h);
468
- }
469
- function c(h) {
470
- u.upload.addEventListener("progress", (t) => {
471
- if (t.lengthComputable) {
472
- const F = Math.round(t.loaded / t.total * 100);
473
- n == null || n(F);
474
- }
475
- }), u.addEventListener("load", () => {
476
- if (u.status >= 200 && u.status < 300)
477
- try {
478
- const t = JSON.parse(u.responseText);
479
- t.data ? g(t.data) : g(u.responseText);
480
- } catch {
481
- g(u.responseText);
482
- }
483
- else {
484
- console.log("====xhr.responseText", u.responseText);
485
- let t = "";
486
- try {
487
- const y = JSON.parse(u.responseText);
488
- y.errorMsg ? t = y.errorMsg : y.message ? t = y.message : y.error ? t = y.error : t = `\u4E0A\u4F20\u5931\u8D25: ${u.status} ${u.statusText}`;
489
- } catch {
490
- t = `\u4E0A\u4F20\u5931\u8D25: ${u.status} ${u.statusText}`;
491
- }
492
- const F = new Error(t);
493
- F.response = {
494
- status: u.status,
495
- statusText: u.statusText,
496
- data: u.responseText ? JSON.parse(u.responseText) : null,
497
- headers: u.getAllResponseHeaders()
498
- }, w(F);
499
- }
500
- }), u.addEventListener("error", () => {
501
- const t = new Error("\u7F51\u7EDC\u9519\u8BEF\uFF0C\u4E0A\u4F20\u5931\u8D25");
502
- t.request = u, t.type = "network", w(t);
503
- }), u.addEventListener("timeout", () => {
504
- const t = new Error("\u8BF7\u6C42\u8D85\u65F6\uFF0C\u4E0A\u4F20\u5931\u8D25");
505
- t.request = u, t.type = "timeout", w(t);
506
- }), u.open("POST", $.toString()), Object.entries(r).forEach(([t, F]) => {
507
- u.setRequestHeader(t, F);
508
- }), u.send(h);
509
- }
510
- }), j0 = m.div`
511
- border: 2px dashed ${(e) => {
512
- var o, r, a, n;
513
- return e.$isDragOver ? ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff" : ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.border) || "#dee2e6";
514
- }};
515
- border-radius: 4px;
516
- background: ${(e) => {
517
- var o, r, a, n;
518
- return e.$isDragOver ? `${((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff"}10` : ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.background) || "#f8f9fa";
519
- }};
520
- padding: 24px;
521
- text-align: center;
522
- transition: all 0.2s ease;
523
- cursor: pointer;
524
- min-height: 200px;
525
- display: flex;
526
- flex-direction: column;
527
- align-items: center;
528
- justify-content: center;
529
- gap: 16px;
530
-
531
- &:hover {
532
- border-color: ${(e) => {
533
- var o, r;
534
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
535
- }};
536
- background: ${(e) => {
537
- var o, r;
538
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
539
- }};
540
- }
541
- `, W0 = m.div`
542
- color: ${(e) => {
543
- var o, r;
544
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
545
- }};
546
- font-size: 48px;
547
- margin-bottom: 8px;
548
- `, U0 = m.div`
549
- color: ${(e) => {
550
- var o, r;
551
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.text) || "#343a40";
552
- }};
553
- font-size: 16px;
554
- font-weight: 500;
555
- margin-bottom: 4px;
556
- `, x0 = m.div`
557
- color: ${(e) => {
558
- var o, r, a, n;
559
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.textSecondary) || ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.disabledText) || "#6b7280";
560
- }};
561
- font-size: 14px;
562
- `, P0 = m.input`
563
- display: none;
564
- `, X0 = m.div`
565
-
566
- width: 100%;
567
- max-width: 600px;
568
- `, q0 = m.div.attrs({
569
- className: "upload-item"
570
- })`
571
- display: flex;
572
- align-items: center;
573
- padding: 8px 12px;
574
- border-bottom: 1px solid ${(e) => {
575
- var o, r;
576
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
577
- }};
578
- border: ${(e) => {
579
- var o, r, a, n;
580
- return e.$hasForm ? "none" : e.$status === "error" ? `1px solid ${((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000"}` : `1px solid ${((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.border) || "#dee2e6"}`;
581
- }};
582
- border-radius: 4px;
583
- background: ${(e) => {
584
- var o, r;
585
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#ffffff";
586
- }};
587
- transition: all 0.2s ease;
588
-
589
- &:hover {
590
- border-color: ${(e) => {
591
- var o, r, a, n;
592
- return e.$hasForm ? "transparent" : e.$status === "error" ? ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000" : ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.primary) || "#007bff";
593
- }};
594
- }
595
- `, G0 = m.div`
596
- color: ${(e) => {
597
- var o, r;
598
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
599
- }};
600
- margin-right: 12px;
601
- flex-shrink: 0;
602
- `, Y0 = m.div`
603
- flex: 1;
604
- min-width: 0;
605
- `, J0 = m.div`
606
- color: ${(e) => {
607
- var o, r;
608
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.text) || "#343a40";
609
- }};
610
- font-size: 12px;
611
- font-weight: 400;
612
- margin-bottom: 2px;
613
- white-space: nowrap;
614
- overflow: hidden;
615
- text-overflow: ellipsis;
616
- `, K0 = m.div`
617
- color: ${(e) => {
618
- var o, r, a, n;
619
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.textSecondary) || ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.disabledText) || "#6b7280";
620
- }};
621
- font-size: 10px;
622
- `, Q0 = m.div`
623
- width: 100%;
624
- height: 4px;
625
- background: ${(e) => {
626
- var o, r;
627
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
628
- }};
629
- border-radius: 2px;
630
- overflow: hidden;
631
- margin-top: 8px;
632
- position: relative;
633
-
634
- &::after {
635
- content: '';
636
- position: absolute;
637
- top: 0;
638
- left: 0;
639
- height: 100%;
640
- width: ${(e) => e.$progress}%;
641
- background: ${(e) => {
642
- var o, r;
643
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
644
- }};
645
- transition: width 0.3s ease;
646
- }
647
- `, e2 = m.div`
648
- margin-left: 12px;
649
- flex-shrink: 0;
650
- color: ${(e) => {
651
- var o, r, a, n, g, w, u, $, C, c;
652
- switch (e.$status) {
653
- case "success":
654
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.success) || "#008000";
655
- case "error":
656
- return ((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.error) || "#FF0000";
657
- case "uploading":
658
- return ((w = (g = e.$theme) == null ? void 0 : g.colors) == null ? void 0 : w.primary) || "#007bff";
659
- case "pending":
660
- return (($ = (u = e.$theme) == null ? void 0 : u.colors) == null ? void 0 : $.warning) || "#FFA500";
661
- default:
662
- return ((c = (C = e.$theme) == null ? void 0 : C.colors) == null ? void 0 : c.disabledText) || "#808080";
663
- }
664
- }};
665
- `, o2 = m.button`
666
- background: none;
667
- border: none;
668
- color: ${(e) => {
669
- var o, r;
670
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000";
671
- }};
672
- cursor: pointer;
673
- padding: 4px;
674
- border-radius: 4px;
675
- margin-left: 8px;
676
- transition: all 0.2s ease;
677
-
678
- &:hover {
679
- background: ${(e) => {
680
- var o, r;
681
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000";
682
- }}20;
683
- }
684
- `;
685
- m.button`
686
- background: ${(e) => {
687
- var o, r;
688
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
689
- }};
690
- border: 1px solid ${(e) => {
691
- var o, r;
692
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
693
- }};
694
- color: ${(e) => {
695
- var o, r;
696
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
697
- }};
698
- padding: 8px 16px;
699
- border-radius: 4px;
700
- cursor: pointer;
701
- display: flex;
702
- align-items: center;
703
- gap: 8px;
704
- font-size: 14px;
705
- transition: all 0.2s ease;
706
-
707
- &:hover {
708
- border-color: ${(e) => {
709
- var o, r;
710
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
711
- }};
712
- background: ${(e) => {
713
- var o, r;
714
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
715
- }}10;
716
- }
717
- `;
718
- m.button`
719
- background: none;
720
- border: none;
721
- color: ${(e) => {
722
- var o, r;
723
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
724
- }};
725
- cursor: pointer;
726
- padding: 4px;
727
- border-radius: 4px;
728
- margin-left: 8px;
729
- transition: all 0.2s ease;
730
- display: flex;
731
- align-items: center;
732
-
733
- &:hover {
734
- background: ${(e) => {
735
- var o, r;
736
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
737
- }}20;
738
- }
739
- `;
740
- const r2 = m.div`
741
- padding: 0px;
742
- background: ${(e) => {
743
- var o, r;
744
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
745
- }};
746
-
747
- /* 移除边框,避免与外层容器边框重叠 */
748
- border: none;
749
- border-radius: 0;
750
-
751
- /* 添加上方隔离线 */
752
- border-top: 1px solid ${(e) => {
753
- var o, r;
754
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
755
- }};
756
-
757
- /* 当有错误时,使用错误状态的隔离线颜色 */
758
- ${(e) => {
759
- var o, r;
760
- return e.$hasError && `
761
- border-top-color: ${((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000"};
762
- `;
763
- }}
764
-
765
- /* 添加左右内边距,与外层容器对齐 */
766
- margin: 0 1px;
767
-
768
- /* 添加背景色区分 */
769
- background: ${(e) => {
770
- var o, r;
771
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.listBackground) || "#f9f9f9";
772
- }};
773
- `;
774
- m.input`
775
- border: 1px solid ${(e) => {
776
- var o, r;
777
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
778
- }};
779
- border-radius: 4px;
780
- padding: 8px 12px;
781
- font-size: 14px;
782
- width: 100%;
783
- margin-top: 8px;
784
- background: ${(e) => {
785
- var o, r;
786
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
787
- }};
788
- color: ${(e) => {
789
- var o, r;
790
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.text) || "#343a40";
791
- }};
792
-
793
- &:focus {
794
- outline: none;
795
- border-color: ${(e) => {
796
- var o, r;
797
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.primary) || "#007bff";
798
- }};
799
- }
800
- `;
801
- const t2 = m.div`
802
- /* 基础样式 */
803
- margin-top: 5px;
804
- background: ${(e) => {
805
- var o, r;
806
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
807
- }};
808
- transition: all 0.2s ease;
809
-
810
- /* 边框逻辑:有表单时显示边框,无表单时不显示 */
811
- border: ${(e) => {
812
- var o, r, a, n;
813
- return e.$hasForm ? e.$status === "error" ? `1px solid ${((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000"}` : `1px solid ${((n = (a = e.$theme) == null ? void 0 : a.colors) == null ? void 0 : n.border) || "#dee2e6"}` : "none";
814
- }};
815
-
816
- /* 圆角设置:有表单时设置圆角,无表单时不设置 */
817
- border-radius: ${(e) => e.$hasForm ? "4px" : "0"};
818
-
819
- /* 当有表单时的特殊样式 */
820
- ${(e) => e.$hasForm && `
821
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
822
-
823
- /* \u786E\u4FDD\u8FB9\u6846\u5B8C\u6574\u5305\u88F9\u6574\u4E2A\u5BB9\u5668 */
824
- overflow: hidden;
825
- `}
826
-
827
- /* 错误状态的特殊样式 */
828
- ${(e) => {
829
- var o, r;
830
- return e.$status === "error" && `
831
- background: ${((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.error) || "#FF0000"}05;
832
- `;
833
- }}
834
-
835
- /* 样式覆盖 */
836
- .list-my div{
837
- padding: 2px 2px !important;
838
- }
839
-
840
- :where(.css-dev-only-do-not-override-1v28nim).ant-input-textarea-affix-wrapper.ant-input-affix-wrapper >textarea.ant-input{
841
- min-height: 32px !important;
842
- }
843
- `, b0 = !1, n2 = (e, o) => o != null && o.fileType ? e.startsWith("image/") ? o.fileType.image || /* @__PURE__ */ i(Y, { size: 20 }) : e.includes("document") || e.includes("pdf") || e.includes("text") ? o.fileType.document || /* @__PURE__ */ i(Y, { size: 20 }) : e.includes("spreadsheet") || e.includes("excel") || e.includes("csv") ? o.fileType.spreadsheet || /* @__PURE__ */ i(Y, { size: 20 }) : e.includes("zip") || e.includes("rar") || e.includes("7z") ? o.fileType.archive || /* @__PURE__ */ i(Y, { size: 20 }) : e.startsWith("video/") ? o.fileType.video || /* @__PURE__ */ i(Y, { size: 20 }) : e.startsWith("audio/") ? o.fileType.audio || /* @__PURE__ */ i(Y, { size: 20 }) : o.fileType.default || /* @__PURE__ */ i(Y, { size: 20 }) : /* @__PURE__ */ i(Y, { size: 20 }), a2 = (e, o, r) => {
844
- var a, n, g, w;
845
- if (r != null && r.itemStatus)
846
- switch (e) {
847
- case "error":
848
- return r.itemStatus.error || /* @__PURE__ */ i(h0, { size: 20 });
849
- case "uploading":
850
- return r.itemStatus.uploading || /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: ((a = o == null ? void 0 : o.colors) == null ? void 0 : a.primary) || "#007bff" }, children: "\u4E0A\u4F20\u4E2D..." });
851
- case "success":
852
- return r.itemStatus.success || null;
853
- case "pending":
854
- return r.itemStatus.pending || /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: ((n = o == null ? void 0 : o.colors) == null ? void 0 : n.warning) || "#FFA500" }, children: "\u7B49\u5F85\u4E2D" });
855
- default:
856
- return null;
857
- }
858
- switch (e) {
859
- case "error":
860
- return /* @__PURE__ */ i(h0, { size: 20 });
861
- case "uploading":
862
- return /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: ((g = o == null ? void 0 : o.colors) == null ? void 0 : g.primary) || "#007bff" }, children: "\u4E0A\u4F20\u4E2D..." });
863
- case "pending":
864
- return /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: ((w = o == null ? void 0 : o.colors) == null ? void 0 : w.warning) || "#FFA500" }, children: "\u7B49\u5F85\u4E2D" });
865
- default:
866
- return null;
867
- }
868
- };
869
- H0`
870
- .upload-item-container .upload-item {
871
- padding: 0px !important;
872
- }
873
-
874
- .upload-item-container .list-item {
875
- padding: 0px !important;
876
- }
877
- `;
878
- const i2 = ({
879
- item: e,
880
- index: o,
881
- theme: r,
882
- itemForm: a,
883
- onRemove: n,
884
- onToggleExpand: g,
885
- onFormDataChange: w,
886
- icons: u
887
- }) => {
888
- var $;
889
- return /* @__PURE__ */ k(t2, { $theme: r, $status: e.status, $hasForm: a.length > 0, children: [
890
- /* @__PURE__ */ k(q0, { $theme: r, $status: e.status, $hasForm: a.length > 0, children: [
891
- /* @__PURE__ */ i(G0, { $theme: r, children: n2(e.type, u) }),
892
- /* @__PURE__ */ k(Y0, { children: [
893
- /* @__PURE__ */ k("div", { className: "flex items-center gap-1 line-clamp-1", children: [
894
- /* @__PURE__ */ i(J0, { $theme: r, children: e.name }),
895
- /* @__PURE__ */ i(K0, { $theme: r, children: L0(e.size) })
896
- ] }),
897
- e.status === "uploading" && /* @__PURE__ */ i(Q0, { $theme: r, $progress: e.progress }),
898
- e.status === "error" && e.error && /* @__PURE__ */ i("div", { style: { color: (($ = r == null ? void 0 : r.colors) == null ? void 0 : $.error) || "#FF0000", fontSize: "12px", marginTop: "4px" }, children: typeof e.error == "string" ? e.error : String(e.error) })
899
- ] }),
900
- (() => {
901
- const C = a2(e.status, r, u);
902
- return C && /* @__PURE__ */ i(e2, { $theme: r, $status: e.status, children: C });
903
- })(),
904
- b0,
905
- /* @__PURE__ */ i(
906
- o2,
907
- {
908
- $theme: r,
909
- onClick: () => n(e.id),
910
- title: "\u79FB\u9664\u6587\u4EF6",
911
- children: /* @__PURE__ */ i(V0, { size: 16 })
912
- }
913
- )
914
- ] }),
915
- (a.length > 0 || b0) && /* @__PURE__ */ i(
916
- r2,
917
- {
918
- $theme: r,
919
- $hasError: e.status === "error",
920
- className: "list-my",
921
- children: /* @__PURE__ */ i(
922
- S0,
923
- {
924
- formItems: a,
925
- initialValues: e.formData || {},
926
- size: "sm",
927
- formProps: { component: !1 },
928
- eventsEmit: (C, c) => {
929
- switch (console.log("FormXviwer Event:", C, c), C) {
930
- case "form:submit":
931
- w(e.id, c.values);
932
- break;
933
- case "form:change":
934
- w(e.id, c.values);
935
- break;
936
- case "form:fieldChange":
937
- if (c.field && c.value !== void 0) {
938
- const f = {
939
- ...e.formData,
940
- [c.field]: c.value
941
- };
942
- w(e.id, f);
943
- }
944
- break;
945
- case "form:reset":
946
- w(e.id, {});
947
- break;
948
- case "form:validate":
949
- c.values && w(e.id, c.values);
950
- break;
951
- }
952
- },
953
- styles: { theme: r },
954
- style: {
955
- padding: "0px"
956
- }
957
- },
958
- `form-${e.id}-always`
959
- )
960
- }
961
- )
962
- ] });
963
- }, b1 = ({
964
- multiple: e = !0,
965
- accept: o = "*/*",
966
- maxSize: r = 100,
967
- // 100MB
968
- maxFiles: a = 10,
969
- // 预留接口,后续可扩展文件数量限制功能
970
- autoUpload: n = !0,
971
- url: g = "http://localhost:3000/upload",
972
- // 默认上传地址
973
- headers: w = {},
974
- // 默认请求头
975
- queryParams: u = {},
976
- // 默认查询参数
977
- itemForm: $ = [],
978
- styles: C,
979
- buttons: c = [],
980
- // 新增:自定义按钮数组
981
- errorMessages: f = {},
982
- // 新增:错误提示配置
983
- icons: h,
984
- // 新增:图标配置
985
- eventsEmit: t,
986
- onRef: F,
987
- placeholder: y,
988
- listName: _
989
- }) => {
990
- var c0, Q;
991
- const D = l0(F0, C), E = r0(null), [v, R] = j(!1), [H, M] = j([]), x = U((s) => (s ?? H).map((p) => ({
992
- id: p.id,
993
- name: p.name,
994
- status: p.status,
995
- error: p.error,
996
- uploadApiRes: p.uploadApiRes || {},
997
- formData: p.formData || {},
998
- file: p.file,
999
- size: p.size,
1000
- type: p.type
1001
- })), [H]), O = d0(() => {
1002
- if (!y) return null;
1003
- if (typeof y == "string") {
1004
- let s = y;
1005
- return s = s.replace(/<br\s*\/?>(?=\s*)/gi, `
1006
- `), s = s.replace(/\s*\/n\s*/gi, `
1007
- `), s = s.replace(/\\n/g, `
1008
- `), /* @__PURE__ */ i(
1009
- x0,
1010
- {
1011
- $theme: D.theme || I,
1012
- style: {
1013
- textAlign: "center",
1014
- whiteSpace: "pre-line"
1015
- },
1016
- children: s
1017
- }
1018
- );
1019
- }
1020
- return y;
1021
- }, [y, D.theme]), T = {
1022
- noUrl: "\u8BF7\u63D0\u4F9B\u4E0A\u4F20\u63A5\u53E3\u5730\u5740 (url)",
1023
- uploadFailed: "\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",
1024
- fileTooLarge: `\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${r}MB`,
1025
- invalidFileType: "\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u7C7B\u578B"
1026
- }, L = { ...T, ...f }, V = (s, d) => L[s] ? L[s] : d || T[s], A = (s) => {
1027
- const d = s / 1048576;
1028
- return `${Number(d.toFixed(2))}MB`;
1029
- }, S = U(
1030
- (s, d) => {
1031
- const p = r * 1024 * 1024, l = [], N = [];
1032
- if (s.forEach((b) => {
1033
- b.size > p ? l.push(b) : N.push(b);
1034
- }), l.length > 0) {
1035
- const b = l.map((n0) => `${n0.name}\uFF08${A(n0.size)}\uFF09`).join("\u3001"), e0 = `${V("fileTooLarge")}\uFF1A${b}`;
1036
- t == null || t("uploader:error", {
1037
- type: "fileTooLarge",
1038
- message: e0,
1039
- files: l.map((n0) => ({ name: n0.name, size: n0.size })),
1040
- limit: `${r}MB`,
1041
- data: x()
1042
- });
1043
- }
1044
- const W = Math.max(0, a - d);
1045
- if (W <= 0) {
1046
- const b = `\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${a} \u4E2A\u6587\u4EF6\uFF0C\u5DF2\u5B58\u5728 ${d} \u4E2A\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u6DFB\u52A0\u3002`;
1047
- return t == null || t("uploader:error", {
1048
- type: "tooManyFiles",
1049
- message: b,
1050
- currentCount: d,
1051
- tryAdd: s.length,
1052
- limit: a,
1053
- data: x()
1054
- }), [];
1055
- }
1056
- const B = N.slice(0, W);
1057
- if (N.length > W) {
1058
- const b = N.length - B.length, e0 = `\u6700\u591A\u53EA\u80FD\u4E0A\u4F20 ${a} \u4E2A\u6587\u4EF6\uFF0C\u672C\u6B21\u4EC5\u63A5\u53D7 ${B.length} \u4E2A\uFF0C\u5FFD\u7565 ${b} \u4E2A\u3002`;
1059
- t == null || t("uploader:error", {
1060
- type: "tooManyFiles",
1061
- message: e0,
1062
- currentCount: d,
1063
- accepted: B.length,
1064
- dropped: b,
1065
- limit: a,
1066
- data: x()
1067
- });
1068
- }
1069
- return B;
1070
- },
1071
- [r, a, V, t, x]
1072
- ), X = d0(
1073
- () => ({
1074
- // 获取所有上传项
1075
- getUploadItems: () => H,
1076
- // 获取所有上传项的数据(包含表单数据)
1077
- getUploadItemsData: (s) => {
1078
- let d = H;
1079
- return s != null && s.includeStatus && (d = d.filter(
1080
- (p) => s.includeStatus.includes(p.status)
1081
- )), s != null && s.excludeStatus && (d = d.filter(
1082
- (p) => !s.excludeStatus.includes(p.status)
1083
- )), d.map((p) => ({
1084
- id: p.id,
1085
- name: p.name,
1086
- status: p.status,
1087
- error: p.error,
1088
- // 新增:错误信息
1089
- uploadApiRes: p.uploadApiRes || {},
1090
- formData: p.formData || {},
1091
- file: p.file,
1092
- size: p.size,
1093
- type: p.type
1094
- }));
1095
- },
1096
- // 清空所有上传项
1097
- clearUploadItems: () => {
1098
- M([]), t == null || t("uploader:clear", {});
1099
- },
1100
- // 新增:设置某个 item 的错误信息
1101
- setItemError: (s, d) => {
1102
- M((p) => p.map(
1103
- (l) => l.id === s ? { ...l, status: "error", error: d } : l
1104
- )), t == null || t("uploader:errorSet", { itemId: s, error: d, data: x() });
1105
- },
1106
- // 新增:清除某个 item 的错误信息
1107
- clearItemError: (s) => {
1108
- M((d) => d.map(
1109
- (p) => p.id === s ? { ...p, status: "pending", error: void 0 } : p
1110
- )), t == null || t("uploader:errorCleared", { itemId: s, data: x() });
1111
- },
1112
- // 添加新的上传项(对外方法也应用限流)
1113
- addUploadItems: (s) => {
1114
- const d = S(s, H.length);
1115
- if (d.length === 0) return;
1116
- const p = d.map((l) => ({
1117
- id: C0(),
1118
- file: l,
1119
- name: l.name,
1120
- size: l.size,
1121
- type: l.type,
1122
- status: "pending",
1123
- progress: 0,
1124
- formData: {},
1125
- isExpanded: !1
1126
- }));
1127
- M((l) => [...l, ...p]), n && z(p);
1128
- },
1129
- // 移除指定上传项
1130
- removeUploadItem: (s) => {
1131
- M((d) => {
1132
- const p = d.find((l) => l.id === s);
1133
- return p && (t == null || t("uploader:remove", {
1134
- itemId: s,
1135
- item: p,
1136
- data: x(d)
1137
- })), d.filter((l) => l.id !== s);
1138
- });
1139
- },
1140
- // 验证表单数据
1141
- validateFormData: async () => !(H.some((l) => l.status === "error") || H.some((l) => l.status === "uploading") || !H.some((l) => l.status === "success"))
1142
- }),
1143
- [H, n, t, S, x]
1144
- );
1145
- o0(() => {
1146
- F && F(X);
1147
- }, [X, F]);
1148
- const K = U(
1149
- (s) => {
1150
- if (!s) return;
1151
- const d = S(Array.from(s), H.length);
1152
- if (d.length === 0) return;
1153
- const p = d.map((l) => ({
1154
- id: C0(),
1155
- file: l,
1156
- name: l.name,
1157
- size: l.size,
1158
- type: l.type,
1159
- status: "pending",
1160
- progress: 0,
1161
- formData: {},
1162
- // 每个item独立的表单数据
1163
- isExpanded: !1
1164
- }));
1165
- M((l) => [...l, ...p]), n && z(p);
1166
- },
1167
- [n, H.length, S]
1168
- ), q = U((s) => {
1169
- s.preventDefault(), R(!0);
1170
- }, []), G = U((s) => {
1171
- s.preventDefault(), R(!1);
1172
- }, []), t0 = U(
1173
- (s) => {
1174
- s.preventDefault(), R(!1), K(s.dataTransfer.files);
1175
- },
1176
- [K]
1177
- ), z = U(
1178
- async (s) => {
1179
- if (!g) {
1180
- console.error(V("noUrl"));
1181
- return;
1182
- }
1183
- t == null || t("uploader:start", { items: s, data: x() });
1184
- for (const d of s)
1185
- try {
1186
- M(
1187
- (B) => B.map((b) => b.id === d.id ? { ...b, status: "uploading" } : b)
1188
- );
1189
- const p = await O0(d.file, g, w, u, (B) => {
1190
- M((b) => b.map((e0) => e0.id === d.id ? { ...e0, progress: B } : e0)), t == null || t("uploader:progress", { item: { ...d, progress: B }, data: x() });
1191
- }), l = R0(d, $), N = {
1192
- ...d,
1193
- status: "success",
1194
- uploadApiRes: p,
1195
- progress: 100,
1196
- formData: l,
1197
- // 使用自动填充后的表单数据
1198
- isExpanded: $.length > 0
1199
- // 上传成功后,如果有表单配置则默认展开
1200
- }, W = H.map((B) => B.id === d.id ? N : B);
1201
- M((B) => B.map((b) => b.id === d.id ? N : b)), t == null || t("uploader:success", { item: N, data: x(W) });
1202
- } catch (p) {
1203
- let l = "";
1204
- if (console.log("\u4E0A\u4F20\u9519\u8BEF\u8BE6\u60C5:", p), p && typeof p == "object") {
1205
- const B = p;
1206
- if (B.response && B.response.data) {
1207
- const b = B.response.data;
1208
- if (console.log("\u9519\u8BEF\u54CD\u5E94\u6570\u636E:", b), b.errorMsg)
1209
- l = b.errorMsg;
1210
- else if (b.message)
1211
- l = b.message;
1212
- else if (b.error)
1213
- l = b.error;
1214
- else if (b.errorCode)
1215
- switch (b.errorCode) {
1216
- case "30013":
1217
- l = "\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";
1218
- break;
1219
- case "30014":
1220
- l = "\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";
1221
- break;
1222
- case "30015":
1223
- l = "\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";
1224
- break;
1225
- case "30016":
1226
- l = "\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";
1227
- break;
1228
- default:
1229
- l = `\u64CD\u4F5C\u5931\u8D25 (${b.errorCode})`;
1230
- }
1231
- } else if (B.message)
1232
- try {
1233
- const b = JSON.parse(B.message);
1234
- if (console.log("\u89E3\u6790\u7684\u9519\u8BEF\u6570\u636E:", b), b.errorMsg)
1235
- l = b.errorMsg;
1236
- else if (b.message)
1237
- l = b.message;
1238
- else if (b.error)
1239
- l = b.error;
1240
- else if (b.errorCode)
1241
- switch (b.errorCode) {
1242
- case "30013":
1243
- l = "\u767B\u5F55\u5931\u6548\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55";
1244
- break;
1245
- case "30014":
1246
- l = "\u6CA1\u6709\u6743\u9650\u6267\u884C\u6B64\u64CD\u4F5C";
1247
- break;
1248
- case "30015":
1249
- l = "\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301";
1250
- break;
1251
- case "30016":
1252
- l = "\u6587\u4EF6\u5927\u5C0F\u8D85\u51FA\u9650\u5236";
1253
- break;
1254
- default:
1255
- l = `\u64CD\u4F5C\u5931\u8D25 (${b.errorCode})`;
1256
- }
1257
- } catch (b) {
1258
- console.log("\u9519\u8BEF\u6D88\u606F\u89E3\u6790\u5931\u8D25:", b), l = B.message;
1259
- }
1260
- }
1261
- l || (l = V("uploadFailed")), console.log("\u6700\u7EC8\u4F7F\u7528\u7684\u9519\u8BEF\u4FE1\u606F:", l);
1262
- const N = { ...d, status: "error", error: l }, W = H.map((B) => B.id === d.id ? N : B);
1263
- M((B) => B.map((b) => b.id === d.id ? N : b)), t == null || t("uploader:error", { item: N, error: l, data: x(W) });
1264
- }
1265
- t == null || t("uploader:complete", { items: H, data: x() });
1266
- },
1267
- [g, w, u, t, H, $, L.uploadFailed, x]
1268
- ), Z = U(
1269
- (s) => {
1270
- M((d) => {
1271
- const p = d.find((l) => l.id === s);
1272
- return p && (t == null || t("uploader:remove", {
1273
- itemId: s,
1274
- item: p,
1275
- data: x(d)
1276
- })), d.filter((l) => l.id !== s);
1277
- });
1278
- },
1279
- [t, x]
1280
- ), p0 = U(
1281
- (s) => {
1282
- M(
1283
- (d) => d.map((p) => {
1284
- if (p.id === s) {
1285
- const l = {
1286
- ...p,
1287
- isExpanded: !p.isExpanded
1288
- };
1289
- return console.log("Toggle Expand:", s, l.isExpanded, l.formData), t == null || t("uploader:toggleExpand", {
1290
- itemId: s,
1291
- isExpanded: l.isExpanded,
1292
- item: l,
1293
- data: x(d)
1294
- }), l;
1295
- }
1296
- return p;
1297
- })
1298
- );
1299
- },
1300
- [t, x]
1301
- ), g0 = U(
1302
- (s, d) => {
1303
- console.log("FormData Change:", s, d), M((p) => {
1304
- const l = p.map((N) => {
1305
- if (N.id === s) {
1306
- const W = {
1307
- ...N,
1308
- formData: { ...d }
1309
- // 确保数据是深拷贝
1310
- };
1311
- return t == null || t("uploader:formDataChange", {
1312
- itemId: s,
1313
- formData: W.formData,
1314
- item: W,
1315
- data: x(p)
1316
- }), W;
1317
- }
1318
- return N;
1319
- });
1320
- return t == null || t("uploader:dataChange", {
1321
- items: l,
1322
- changedItemId: s,
1323
- changedFormData: d,
1324
- data: x(l)
1325
- }), l;
1326
- });
1327
- },
1328
- [t, x]
1329
- );
1330
- return /* @__PURE__ */ k("div", { children: [
1331
- /* @__PURE__ */ k(
1332
- j0,
1333
- {
1334
- $theme: D.theme || I,
1335
- $isDragOver: v,
1336
- onDragOver: q,
1337
- onDragLeave: G,
1338
- onDrop: t0,
1339
- onClick: () => {
1340
- var s;
1341
- E.current && (E.current.value = ""), (s = E.current) == null || s.click();
1342
- },
1343
- children: [
1344
- /* @__PURE__ */ i(W0, { $theme: D.theme || I, children: (h == null ? void 0 : h.dragUpload) || /* @__PURE__ */ i(z0, { size: 48 }) }),
1345
- O || /* @__PURE__ */ k(u0, { children: [
1346
- /* @__PURE__ */ i(U0, { $theme: D.theme || I, children: "\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\u6216\u70B9\u51FB\u9009\u62E9\u6587\u4EF6" }),
1347
- /* @__PURE__ */ k(x0, { $theme: D.theme || I, children: [
1348
- "\u652F\u6301 ",
1349
- o,
1350
- " \u683C\u5F0F\uFF0C\u5355\u4E2A\u6587\u4EF6\u6700\u5927 ",
1351
- r,
1352
- "MB",
1353
- !g && /* @__PURE__ */ i("div", { style: { color: ((Q = (c0 = D.theme) == null ? void 0 : c0.colors) == null ? void 0 : Q.error) || "#FF0000", marginTop: "8px", fontSize: "12px" }, children: V("noUrl") })
1354
- ] })
1355
- ] })
1356
- ]
1357
- }
1358
- ),
1359
- /* @__PURE__ */ i(
1360
- P0,
1361
- {
1362
- ref: E,
1363
- type: "file",
1364
- multiple: e,
1365
- accept: o,
1366
- onChange: (s) => {
1367
- K(s.target.files), s.target.value = "";
1368
- }
1369
- }
1370
- ),
1371
- H.length > 0 && /* @__PURE__ */ k("div", { children: [
1372
- /* @__PURE__ */ k("div", { style: {
1373
- display: "flex",
1374
- justifyContent: "space-between",
1375
- alignItems: "center",
1376
- margin: "6px 0px"
1377
- }, children: [
1378
- /* @__PURE__ */ i("div", { className: "text-[14px] font-bold opacity-60", children: _ || "\u4E0A\u4F20\u6587\u4EF6\u5217\u8868" }),
1379
- c.length > 0 && /* @__PURE__ */ i("div", { style: {
1380
- display: "flex",
1381
- gap: "8px",
1382
- alignItems: "center"
1383
- }, children: c.map((s, d) => /* @__PURE__ */ i(
1384
- v0,
1385
- {
1386
- mode: s.mode || "default",
1387
- label: s.label,
1388
- icon: s.icon,
1389
- disabled: s.disabled,
1390
- onClick: s.onClick,
1391
- styles: C
1392
- },
1393
- d
1394
- )) })
1395
- ] }),
1396
- /* @__PURE__ */ i(X0, { $theme: D.theme || I, children: H.map((s, d) => /* @__PURE__ */ i(
1397
- i2,
1398
- {
1399
- item: s,
1400
- index: d,
1401
- itemForm: $,
1402
- onRemove: Z,
1403
- onToggleExpand: p0,
1404
- onFormDataChange: g0,
1405
- theme: D.theme || I,
1406
- icons: h
1407
- },
1408
- s.id
1409
- )) })
1410
- ] })
1411
- ] });
1412
- }, s2 = m.div`
1413
- position: fixed;
1414
- background: ${(e) => {
1415
- var o, r;
1416
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.background) || "#f8f9fa";
1417
- }};
1418
- border: 1px solid ${(e) => {
1419
- var o, r;
1420
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
1421
- }};
1422
- border-radius: ${(e) => {
1423
- var o, r;
1424
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
1425
- }};
1426
- box-shadow: ${(e) => {
1427
- var o, r;
1428
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.shadow) || "0 1px 3px rgba(0, 0, 0, 0.12)";
1429
- }};
1430
- z-index: 9999;
1431
- min-width: ${(e) => e.$buttonRect ? `${e.$buttonRect.width}px` : "auto"};
1432
- max-width: 300px;
1433
- overflow: hidden;
1434
- padding: 4px 0;
1435
- `, l2 = m.div`
1436
- padding: 8px 12px;
1437
- cursor: pointer;
1438
- display: flex;
1439
- align-items: center;
1440
- gap: 8px;
1441
- font-size: 12px;
1442
- color: ${(e) => {
1443
- var o, r;
1444
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.text) || "#343a40";
1445
- }};
1446
- background: transparent;
1447
- transition: background-color 0.2s;
1448
-
1449
- &:hover {
1450
- background: ${(e) => {
1451
- var o, r;
1452
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.disabledBackground) || "#F5F5F5";
1453
- }};
1454
- }
1455
-
1456
- &:first-child {
1457
- border-top-left-radius: ${(e) => {
1458
- var o, r;
1459
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
1460
- }};
1461
- border-top-right-radius: ${(e) => {
1462
- var o, r;
1463
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
1464
- }};
1465
- }
1466
-
1467
- &:last-child {
1468
- border-bottom-left-radius: ${(e) => {
1469
- var o, r;
1470
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
1471
- }};
1472
- border-bottom-right-radius: ${(e) => {
1473
- var o, r;
1474
- return ((r = (o = e.$theme) == null ? void 0 : o.space) == null ? void 0 : r.radius) || "4px";
1475
- }};
1476
- }
1477
- `, c2 = m.div`
1478
- height: 1px;
1479
- background: ${(e) => {
1480
- var o, r;
1481
- return ((r = (o = e.$theme) == null ? void 0 : o.colors) == null ? void 0 : r.border) || "#dee2e6";
1482
- }};
1483
- margin: 4px 0;
1484
- `, m1 = ({
1485
- mode: e = "default",
1486
- label: o = "\u9009\u62E9\u9009\u9879",
1487
- actions: r,
1488
- styles: a,
1489
- icon: n,
1490
- disabled: g = !1,
1491
- style: w,
1492
- className: u,
1493
- children: $,
1494
- eventEmit: C,
1495
- ...c
1496
- }) => {
1497
- const [f, h] = j(!1), t = r0(null), [F, y] = j(null), [_, D] = j({ top: 0, left: 0 }), E = l0(I, a == null ? void 0 : a.theme);
1498
- o0(() => {
1499
- console.log("[DropDownButton] \u7EC4\u4EF6\u6302\u8F7D\uFF0CeventEmit:", C), console.log("[DropDownButton] actions:", r);
1500
- }, [C, r]);
1501
- const v = () => {
1502
- if (!t.current) return;
1503
- const x = t.current.getBoundingClientRect();
1504
- y(x);
1505
- const O = x.bottom + 4, T = x.left;
1506
- D({ top: O, left: T });
1507
- };
1508
- o0(() => {
1509
- if (!f) return;
1510
- const x = (L) => {
1511
- t.current && !t.current.contains(L.target) && h(!1);
1512
- }, O = () => h(!1), T = () => h(!1);
1513
- return document.addEventListener("mousedown", x), window.addEventListener("scroll", O, !0), window.addEventListener("resize", T), () => {
1514
- document.removeEventListener("mousedown", x), window.removeEventListener("scroll", O, !0), window.removeEventListener("resize", T);
1515
- };
1516
- }, [f]);
1517
- const R = (x) => {
1518
- C && C("dropdown_action", { key: x }), h(!1);
1519
- }, H = () => {
1520
- g || (f || v(), h(!f));
1521
- }, M = () => !f || !F ? null : /* @__PURE__ */ i(
1522
- s2,
1523
- {
1524
- $theme: E.theme || I,
1525
- $buttonRect: F,
1526
- style: {
1527
- top: _.top,
1528
- left: _.left
1529
- },
1530
- children: r.map((x, O) => x.type === "divider" ? /* @__PURE__ */ i(
1531
- c2,
1532
- {
1533
- $theme: E.theme || I
1534
- },
1535
- x.key || `divider-${O}`
1536
- ) : /* @__PURE__ */ k(
1537
- l2,
1538
- {
1539
- $theme: E.theme || I,
1540
- onMouseDown: (T) => {
1541
- T.preventDefault(), T.stopPropagation(), R(x.key), x.onClick && x.onClick();
1542
- },
1543
- children: [
1544
- x.icon && /* @__PURE__ */ i("span", { className: "mr-2", children: x.icon }),
1545
- x.component || x.label
1546
- ]
1547
- },
1548
- x.key || `action-${O}`
1549
- ))
1550
- }
1551
- );
1552
- return /* @__PURE__ */ k(
1553
- "div",
1554
- {
1555
- ref: t,
1556
- style: { position: "relative", display: "inline-block" },
1557
- className: u,
1558
- children: [
1559
- /* @__PURE__ */ k(
1560
- v0,
1561
- {
1562
- mode: e,
1563
- label: o,
1564
- icon: n,
1565
- disabled: g,
1566
- onClick: H,
1567
- styles: a,
1568
- style: w,
1569
- ...c,
1570
- children: [
1571
- $,
1572
- /* @__PURE__ */ i(
1573
- I0,
1574
- {
1575
- size: 14,
1576
- style: {
1577
- marginLeft: 4,
1578
- transition: "transform 0.2s",
1579
- transform: f ? "rotate(180deg)" : "rotate(0deg)"
1580
- }
1581
- }
1582
- )
1583
- ]
1584
- }
1585
- ),
1586
- f && w0(M(), document.body)
1587
- ]
1588
- }
1589
- );
1590
- }, d2 = m.div.withConfig({
1591
- shouldForwardProp: (e) => !["itemWidth", "itemGap"].includes(e)
1592
- })`
1593
- position: relative;
1594
- display: flex;
1595
- align-items: flex-end;
1596
- justify-content: center;
1597
- padding: 12px 20px;
1598
- background: rgba(255, 255, 255, 0.18);
1599
- backdrop-filter: saturate(180%) blur(20px);
1600
- -webkit-backdrop-filter: saturate(180%) blur(20px);
1601
- border: 1px solid rgba(255, 255, 255, 0.28);
1602
- border-radius: 14px;
1603
- box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.4);
1604
- width: fit-content;
1605
- margin: 0 auto;
1606
- min-width: ${(e) => e.itemWidth * 2}px;
1607
- `, u2 = m.div.withConfig({
1608
- shouldForwardProp: (e) => !["itemWidth", "itemHeight", "itemGap", "isHovered", "magnification"].includes(e)
1609
- })`
1610
- position: relative;
1611
- width: ${(e) => e.itemWidth}px;
1612
- height: ${(e) => e.itemHeight}px;
1613
- margin: 0 ${(e) => e.itemGap / 2}px;
1614
- cursor: pointer;
1615
- transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
1616
- transform: ${(e) => e.isHovered ? `scale(${e.magnification})` : "scale(1)"};
1617
- transform-origin: center bottom;
1618
- z-index: ${(e) => e.isHovered ? 10 : 1};
1619
- `, p2 = m.img.withConfig({
1620
- shouldForwardProp: (e) => !["isActive"].includes(e)
1621
- })`
1622
- width: 80%;
1623
- height: 80%;
1624
- object-fit: contain;
1625
- border-radius: 8px;
1626
- transition: all 0.15s ease;
1627
- filter: ${(e) => e.isActive ? "none" : "grayscale(0.3) brightness(0.8)"};
1628
-
1629
- &:hover {
1630
- filter: none;
1631
- }
1632
- `, g2 = m.div.withConfig({
1633
- shouldForwardProp: (e) => !["isActive"].includes(e)
1634
- })`
1635
- position: absolute;
1636
- bottom: -4px;
1637
- left: 40%;
1638
- transform: translateX(-50%);
1639
- width: 6px;
1640
- height: 6px;
1641
- background: #007AFF;
1642
- border-radius: 50%;
1643
- opacity: ${(e) => e.isActive ? 1 : 0};
1644
- transition: opacity 0.2s ease;
1645
- `, h2 = m.div.withConfig({
1646
- shouldForwardProp: (e) => !["visible"].includes(e)
1647
- })`
1648
- position: absolute;
1649
- bottom: 100%;
1650
- left: 40%;
1651
- transform: translateX(-50%) translateY(-8px);
1652
- background: rgba(0, 0, 0, 0.8);
1653
- color: white;
1654
- padding: 4px 8px;
1655
- border-radius: 4px;
1656
- font-size: 10px;
1657
- white-space: nowrap;
1658
- opacity: ${(e) => e.visible ? 1 : 0};
1659
- visibility: ${(e) => e.visible ? "visible" : "hidden"};
1660
- transition: all 0.2s ease;
1661
- z-index: 1000;
1662
-
1663
- &::after {
1664
- content: '';
1665
- position: absolute;
1666
- top: 100%;
1667
- left: 50%;
1668
- transform: translateX(-50%);
1669
- border: 4px solid transparent;
1670
- border-top-color: rgba(0, 0, 0, 0.8);
1671
- }
1672
- `, y0 = ({
1673
- items: e,
1674
- itemWidth: o = 48,
1675
- itemHeight: r = 48,
1676
- magnification: a = 1.2,
1677
- itemGap: n = 13,
1678
- activeMode: g = "single",
1679
- defaultActiveId: w,
1680
- defaultActiveIds: u = [],
1681
- onItemClick: $,
1682
- onActiveChange: C,
1683
- onActiveChangeMultiple: c,
1684
- className: f
1685
- }) => {
1686
- const [h, t] = j(null), [F, y] = j(null), _ = () => g === "multiple" ? u || [] : w || (e.length > 0 ? e[0].id : null), [D, E] = j(
1687
- g === "single" ? _() : null
1688
- ), [v, R] = j(
1689
- g === "multiple" ? _() : []
1690
- ), H = r0(null), M = r0([]), x = (L) => {
1691
- t(L), y(L);
1692
- const V = M.current[L];
1693
- V && f0({
1694
- targets: V,
1695
- scale: a,
1696
- duration: 200,
1697
- easing: "easeOutCubic"
1698
- });
1699
- }, O = (L) => {
1700
- t(null), y(null);
1701
- const V = M.current[L];
1702
- V && f0({
1703
- targets: V,
1704
- scale: 1,
1705
- duration: 200,
1706
- easing: "easeOutCubic"
1707
- });
1708
- }, T = (L, V) => {
1709
- if (g === "single")
1710
- D !== L.id && (E(L.id), C && C(L.id, L));
1711
- else {
1712
- const A = v.includes(L.id) ? v.filter((S) => S !== L.id) : [...v, L.id];
1713
- if (R(A), c) {
1714
- const S = e.filter((X) => A.includes(X.id));
1715
- c(A, S);
1716
- }
1717
- }
1718
- $ && $(L, V), L.onClick && L.onClick();
1719
- };
1720
- return o0(() => {
1721
- M.current = M.current.slice(0, e.length);
1722
- }, [e.length]), /* @__PURE__ */ i(
1723
- d2,
1724
- {
1725
- ref: H,
1726
- itemWidth: o,
1727
- itemGap: n,
1728
- className: f,
1729
- children: e.map((L, V) => /* @__PURE__ */ k(
1730
- u2,
1731
- {
1732
- ref: (A) => M.current[V] = A,
1733
- itemWidth: o,
1734
- itemHeight: r,
1735
- itemGap: n,
1736
- isHovered: h === V,
1737
- magnification: a,
1738
- onMouseEnter: () => x(V),
1739
- onMouseLeave: () => O(V),
1740
- onClick: () => T(L, V),
1741
- children: [
1742
- /* @__PURE__ */ i(
1743
- p2,
1744
- {
1745
- src: L.icon,
1746
- alt: L.label,
1747
- isActive: g === "single" ? D === L.id : v.includes(L.id)
1748
- }
1749
- ),
1750
- /* @__PURE__ */ i(g2, { isActive: g === "single" ? D === L.id : v.includes(L.id) }),
1751
- /* @__PURE__ */ i(h2, { visible: F === V, children: L.label })
1752
- ]
1753
- },
1754
- L.id
1755
- ))
1756
- }
1757
- );
1758
- };
1759
- /**
1760
- * React Router v6.30.1
1761
- *
1762
- * Copyright (c) Remix Software Inc.
1763
- *
1764
- * This source code is licensed under the MIT license found in the
1765
- * LICENSE.md file in the root directory of this source tree.
1766
- *
1767
- * @license MIT
1768
- */
1769
- const f2 = /* @__PURE__ */ P.createContext(null);
1770
- process.env.NODE_ENV !== "production" && (f2.displayName = "DataRouter");
1771
- const C2 = /* @__PURE__ */ P.createContext(null);
1772
- process.env.NODE_ENV !== "production" && (C2.displayName = "DataRouterState");
1773
- const x2 = /* @__PURE__ */ P.createContext(null);
1774
- process.env.NODE_ENV !== "production" && (x2.displayName = "Await");
1775
- const b2 = /* @__PURE__ */ P.createContext(null);
1776
- process.env.NODE_ENV !== "production" && (b2.displayName = "Navigation");
1777
- const m2 = /* @__PURE__ */ P.createContext(null);
1778
- process.env.NODE_ENV !== "production" && (m2.displayName = "Location");
1779
- const $0 = /* @__PURE__ */ P.createContext({
1780
- outlet: null,
1781
- matches: [],
1782
- isDataRoute: !1
1783
- });
1784
- process.env.NODE_ENV !== "production" && ($0.displayName = "Route");
1785
- const w2 = /* @__PURE__ */ P.createContext(null);
1786
- process.env.NODE_ENV !== "production" && (w2.displayName = "RouteError");
1787
- const F2 = /* @__PURE__ */ P.createContext(null);
1788
- function v2(e) {
1789
- let o = P.useContext($0).outlet;
1790
- return o && /* @__PURE__ */ P.createElement(F2.Provider, {
1791
- value: e
1792
- }, o);
1793
- }
1794
- function L2(e) {
1795
- return v2(e.context);
1796
- }
1797
- new Promise(() => {
1798
- });
1799
- const y2 = m.div`
1800
- display: flex;
1801
- justify-content: flex-start;
1802
- align-items: flex-start;
1803
- margin-left: 20px;
1804
- flex-direction: column;
1805
- height: 100%;
1806
- width: 100%;
1807
- max-width: 98%;
1808
- position: relative;
1809
- `, $2 = m.div`
1810
- display: flex;
1811
- height: 38px;
1812
- z-index: 10;
1813
- background: transparent;
1814
- gap: 8px;
1815
- flex-direction: row;
1816
- align-items: center;
1817
- justify-content: flex-start;
1818
- width: 100%;
1819
- min-width: 0; /* 确保 flex 子元素可以收缩 */
1820
- `, k2 = m.button`
1821
- display: flex;
1822
- align-items: center;
1823
- justify-content: center;
1824
- width: 32px;
1825
- height: 32px;
1826
- background: transparent;
1827
- border: none;
1828
- cursor: pointer;
1829
-
1830
- /* 仅让图标在 hover 时上浮,按钮背景保持透明 */
1831
- svg {
1832
- transition: transform 0.2s ease;
1833
- }
1834
-
1835
- &:hover {
1836
- background: transparent;
1837
- }
1838
-
1839
- &:hover svg {
1840
- transform: translateY(-1px);
1841
- }
1842
-
1843
- &:active svg {
1844
- transform: translateY(0);
1845
- }
1846
- `, D2 = m.div`
1847
- line-height: 1.4;
1848
- cursor: pointer;
1849
- transition: color 0.2s ease;
1850
- white-space: nowrap;
1851
- overflow: hidden;
1852
- text-overflow: ellipsis;
1853
- max-width: 200px;
1854
- min-width: 0;
1855
-
1856
- &:hover {
1857
- color: #007bff;
1858
- }
1859
- `, H2 = m.div`
1860
- line-height: 1.4;
1861
- white-space: nowrap;
1862
- overflow: hidden;
1863
- text-overflow: ellipsis;
1864
- flex: 1;
1865
- min-width: 0;
1866
- `, m0 = m.div`
1867
- display: flex;
1868
- align-items: center;
1869
- gap: 4px;
1870
- flex-wrap: nowrap;
1871
- max-width: 50%;
1872
- min-width: 0;
1873
- overflow: hidden;
1874
- `, i0 = m.div`
1875
- display: flex;
1876
- align-items: center;
1877
- gap: 4px;
1878
- font-size: 14px;
1879
- color: ${(e) => e.$isLast ? "#343a40" : "#6c757d"};
1880
- font-weight: ${(e) => e.$isLast ? "600" : "normal"};
1881
- cursor: ${(e) => e.$isClickable ? "pointer" : "default"};
1882
- transition: color 0.2s ease;
1883
- white-space: nowrap;
1884
- overflow: hidden;
1885
- text-overflow: ellipsis;
1886
- max-width: 120px;
1887
-
1888
- &:hover {
1889
- color: ${(e) => e.$isLast ? "#007bff" : "inherit"};
1890
- }
1891
- `, s0 = m.div`
1892
- display: flex;
1893
- align-items: center;
1894
- color: #6c757d;
1895
- margin: 0 2px;
1896
- `, B2 = m.div`
1897
- display: flex;
1898
- flex-direction: column;
1899
- width: 100%;
1900
- height: calc(100% - 45px);
1901
- min-height: 650px;
1902
- overflow: auto;
1903
- `, M2 = m.div`
1904
- position: fixed;
1905
- bottom: 20px;
1906
- left: 50%;
1907
- transform: translateX(-50%);
1908
- z-index: 1000;
1909
- `, w1 = ({
1910
- children: e,
1911
- goBack: o,
1912
- title: r,
1913
- description: a,
1914
- breadcrumbs: n,
1915
- dockItems: g,
1916
- dockActiveMode: w = "single",
1917
- defaultDockActiveId: u,
1918
- defaultDockActiveIds: $,
1919
- styles: C,
1920
- eventsEmit: c
1921
- }) => {
1922
- var R, H, M, x, O, T, L, V;
1923
- const f = (C == null ? void 0 : C.theme) || I, h = J.useRef(null), t = () => {
1924
- c != null && c.onGoBack ? c.onGoBack() : o && o();
1925
- }, F = () => {
1926
- c != null && c.onTitleClick && c.onTitleClick();
1927
- }, y = (A, S) => {
1928
- c != null && c.onBreadcrumbClick ? c.onBreadcrumbClick(A, S) : A.onClick && A.onClick();
1929
- }, _ = (A, S) => {
1930
- c != null && c.onDockItemClick ? c.onDockItemClick(A, S) : A.onClick && A.onClick();
1931
- }, D = (A, S) => {
1932
- c != null && c.onDockActiveChange && c.onDockActiveChange(A, S);
1933
- }, E = (A, S) => {
1934
- c != null && c.onDockActiveChangeMultiple && c.onDockActiveChangeMultiple(A, S);
1935
- }, v = () => {
1936
- if (!n || n.length === 0) return null;
1937
- const A = J.useRef(null), [S, X] = J.useState({ start: 0, end: n.length, showEllipsis: !1 }), K = J.useCallback(() => {
1938
- if (!A.current || n.length <= 3) {
1939
- X({ start: 0, end: n.length, showEllipsis: !1 });
1940
- return;
1941
- }
1942
- const Z = A.current.offsetWidth * 0.5;
1943
- let Q = Math.floor((Z - 30) / (120 + 20));
1944
- if (Q < 2 && (Q = 2), Q >= n.length) {
1945
- X({ start: 0, end: n.length, showEllipsis: !1 });
1946
- return;
1947
- }
1948
- const s = 0, d = Math.min(Q - 1, n.length);
1949
- X({
1950
- start: s,
1951
- end: d,
1952
- showEllipsis: d < n.length - 1
1953
- });
1954
- }, [n.length]);
1955
- if (J.useEffect(() => {
1956
- K();
1957
- const z = new ResizeObserver(() => {
1958
- K();
1959
- });
1960
- return A.current && z.observe(A.current), () => {
1961
- z.disconnect();
1962
- };
1963
- }, [K]), n.length <= 3)
1964
- return /* @__PURE__ */ i(m0, { children: n.map((z, Z) => /* @__PURE__ */ k(J.Fragment, { children: [
1965
- /* @__PURE__ */ i(
1966
- i0,
1967
- {
1968
- $isLast: Z === n.length - 1,
1969
- $isClickable: !!(Z < n.length - 1 || z.onClick),
1970
- onClick: () => y(z, Z),
1971
- style: {
1972
- color: Z === n.length - 1 ? f.colors.text : f.colors.textSecondary || f.colors.disabledText
1973
- },
1974
- title: z.label,
1975
- children: z.label
1976
- }
1977
- ),
1978
- Z < n.length - 1 && /* @__PURE__ */ i(s0, { children: /* @__PURE__ */ i(a0, { size: 14 }) })
1979
- ] }, z.id)) });
1980
- const { start: q, end: G, showEllipsis: t0 } = S;
1981
- return /* @__PURE__ */ k(m0, { children: [
1982
- n.slice(q, G).map((z, Z) => /* @__PURE__ */ k(J.Fragment, { children: [
1983
- /* @__PURE__ */ i(
1984
- i0,
1985
- {
1986
- $isLast: Z === G - q - 1 && !t0,
1987
- $isClickable: !!(Z < G - q - 1 || z.onClick),
1988
- onClick: () => y(z, q + Z),
1989
- style: {
1990
- color: Z === G - q - 1 && !t0 ? f.colors.text : f.colors.textSecondary || f.colors.disabledText
1991
- },
1992
- title: z.label,
1993
- children: z.label
1994
- }
1995
- ),
1996
- Z < G - q - 1 && /* @__PURE__ */ i(s0, { children: /* @__PURE__ */ i(a0, { size: 14 }) })
1997
- ] }, z.id)),
1998
- t0 && /* @__PURE__ */ k(u0, { children: [
1999
- /* @__PURE__ */ i(s0, { children: /* @__PURE__ */ i(a0, { size: 14 }) }),
2000
- /* @__PURE__ */ i(
2001
- i0,
2002
- {
2003
- $isLast: !1,
2004
- $isClickable: !1,
2005
- style: {
2006
- color: f.colors.textSecondary || f.colors.disabledText,
2007
- cursor: "default",
2008
- maxWidth: "auto"
2009
- },
2010
- title: `${n.slice(G, -1).map((z) => z.label).join(" > ")}`,
2011
- children: "..."
2012
- }
2013
- ),
2014
- /* @__PURE__ */ i(s0, { children: /* @__PURE__ */ i(a0, { size: 14 }) }),
2015
- /* @__PURE__ */ i(
2016
- i0,
2017
- {
2018
- $isLast: !0,
2019
- $isClickable: !!n[n.length - 1].onClick,
2020
- onClick: () => y(n[n.length - 1], n.length - 1),
2021
- style: {
2022
- color: f.colors.text
2023
- },
2024
- title: n[n.length - 1].label,
2025
- children: n[n.length - 1].label
2026
- }
2027
- )
2028
- ] })
2029
- ] });
2030
- };
2031
- return /* @__PURE__ */ k(
2032
- y2,
2033
- {
2034
- style: {
2035
- background: f.colors.appBackground,
2036
- color: f.colors.text,
2037
- fontFamily: ((H = (R = f.fonts) == null ? void 0 : R.body) == null ? void 0 : H.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif"
2038
- },
2039
- children: [
2040
- (r || a || o || n) && /* @__PURE__ */ k($2, { ref: h, children: [
2041
- o && /* @__PURE__ */ i(
2042
- k2,
2043
- {
2044
- onClick: t,
2045
- style: {
2046
- color: f.colors.primary,
2047
- borderRadius: f.space.radius || "6px"
2048
- },
2049
- title: "\u8FD4\u56DE",
2050
- children: /* @__PURE__ */ i(E0, { size: 18 })
2051
- }
2052
- ),
2053
- v(),
2054
- r && /* @__PURE__ */ i(
2055
- D2,
2056
- {
2057
- onClick: F,
2058
- style: {
2059
- color: f.colors.text,
2060
- fontSize: ((x = (M = f.fonts) == null ? void 0 : M.heading) == null ? void 0 : x.size) || "16px",
2061
- fontWeight: ((T = (O = f.fonts) == null ? void 0 : O.heading) == null ? void 0 : T.weight) || "600"
2062
- },
2063
- title: r,
2064
- children: r
2065
- }
2066
- ),
2067
- a && /* @__PURE__ */ i(
2068
- H2,
2069
- {
2070
- style: {
2071
- color: f.colors.textSecondary || f.colors.disabledText,
2072
- opacity: 0.7,
2073
- fontSize: ((V = (L = f.fonts) == null ? void 0 : L.body) == null ? void 0 : V.size) || "12px"
2074
- },
2075
- title: a,
2076
- children: a
2077
- }
2078
- )
2079
- ] }),
2080
- /* @__PURE__ */ i(
2081
- B2,
2082
- {
2083
- style: {
2084
- background: f.colors.dashboardBackground || "transparent",
2085
- border: `1px solid ${f.colors.border}` || void 0,
2086
- borderRadius: f.space.radius || void 0,
2087
- boxShadow: f.colors.shadow || void 0
2088
- },
2089
- children: e || /* @__PURE__ */ i(L2, {})
2090
- }
2091
- ),
2092
- g && g.length > 0 && /* @__PURE__ */ i(M2, { children: /* @__PURE__ */ i(
2093
- y0,
2094
- {
2095
- items: g,
2096
- itemWidth: 48,
2097
- itemHeight: 48,
2098
- magnification: 1.5,
2099
- itemGap: 8,
2100
- activeMode: w,
2101
- defaultActiveId: u,
2102
- defaultActiveIds: $,
2103
- onItemClick: _,
2104
- onActiveChange: D,
2105
- onActiveChangeMultiple: E
2106
- }
2107
- ) })
2108
- ]
2109
- }
2110
- );
2111
- }, A2 = m.div.withConfig({
2112
- shouldForwardProp: (e) => !["backgroundImage", "backgroundColor"].includes(e)
2113
- })`
2114
- position: fixed;
2115
- top: 0;
2116
- left: 0;
2117
- width: 100vw;
2118
- height: 100vh;
2119
- background: ${(e) => e.backgroundImage ? `url(${e.backgroundImage}) center/cover no-repeat` : e.backgroundColor || "#1a1a1a"};
2120
- display: flex;
2121
- flex-direction: column;
2122
- overflow: hidden;
2123
- z-index: 1;
2124
- `, _2 = m.div`
2125
- height: 48px;
2126
- width: 100%;
2127
- display: flex;
2128
- align-items: center;
2129
- justify-content: center;
2130
- background: transparent;
2131
- z-index: 10;
2132
- flex-shrink: 0;
2133
- `, V2 = m.div`
2134
- flex: 1;
2135
- width: 100%;
2136
- overflow-y: auto;
2137
- overflow-x: hidden;
2138
- position: relative;
2139
- z-index: 2;
2140
- background: transparent;
2141
-
2142
- /* 自定义滚动条样式 */
2143
- &::-webkit-scrollbar {
2144
- width: 6px;
2145
- }
2146
-
2147
- &::-webkit-scrollbar-track {
2148
- background: rgba(255, 255, 255, 0.1);
2149
- border-radius: 3px;
2150
- }
2151
-
2152
- &::-webkit-scrollbar-thumb {
2153
- background: rgba(255, 255, 255, 0.3);
2154
- border-radius: 3px;
2155
- }
2156
-
2157
- &::-webkit-scrollbar-thumb:hover {
2158
- background: rgba(255, 255, 255, 0.5);
2159
- }
2160
- `, z2 = m.div`
2161
- height: 80px;
2162
- width: 100%;
2163
- display: flex;
2164
- align-items: flex-end;
2165
- justify-content: center;
2166
- padding: 12px 0;
2167
- background: transparent;
2168
- z-index: 10;
2169
- flex-shrink: 0;
2170
- `, F1 = ({
2171
- children: e,
2172
- backgroundImage: o,
2173
- backgroundColor: r,
2174
- header: a,
2175
- dockItems: n,
2176
- dockActiveMode: g = "single",
2177
- defaultDockActiveId: w,
2178
- defaultDockActiveIds: u,
2179
- styles: $,
2180
- eventsEmit: C
2181
- }) => {
2182
- var F, y;
2183
- const c = ($ == null ? void 0 : $.theme) || I, f = (_, D) => {
2184
- C != null && C.onDockItemClick ? C.onDockItemClick(_, D) : _.onClick && _.onClick();
2185
- }, h = (_, D) => {
2186
- C != null && C.onDockActiveChange && C.onDockActiveChange(_, D);
2187
- }, t = (_, D) => {
2188
- C != null && C.onDockActiveChangeMultiple && C.onDockActiveChangeMultiple(_, D);
2189
- };
2190
- return /* @__PURE__ */ k(
2191
- A2,
2192
- {
2193
- backgroundImage: o,
2194
- backgroundColor: r,
2195
- children: [
2196
- a && /* @__PURE__ */ i(_2, { children: a }),
2197
- /* @__PURE__ */ i(
2198
- V2,
2199
- {
2200
- style: {
2201
- color: c.colors.text,
2202
- fontFamily: ((y = (F = c.fonts) == null ? void 0 : F.body) == null ? void 0 : y.family) || "PingFang SC, Microsoft YaHei, Arial, sans-serif"
2203
- },
2204
- children: e
2205
- }
2206
- ),
2207
- n && n.length > 0 && /* @__PURE__ */ i(z2, { children: /* @__PURE__ */ i(
2208
- y0,
2209
- {
2210
- items: n,
2211
- itemWidth: 48,
2212
- itemHeight: 48,
2213
- magnification: 1.5,
2214
- itemGap: 8,
2215
- activeMode: g,
2216
- defaultActiveId: w,
2217
- defaultActiveIds: u,
2218
- onItemClick: f,
2219
- onActiveChange: h,
2220
- onActiveChangeMultiple: t
2221
- }
2222
- ) })
2223
- ]
2224
- }
2225
- );
2226
- }, I2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.69727%205.36035C9.24139%205.36035%209.7044%205.43727%2010.0781%205.59961L10.1787%205.64355V6.78418L9.93066%206.64746C9.56044%206.44228%209.15313%206.33892%208.70508%206.33887C8.12836%206.33887%207.66998%206.52918%207.31543%206.90527L7.31445%206.90625C6.96154%207.27886%206.77643%207.78905%206.77637%208.45605C6.77641%209.08819%206.94869%209.57219%207.27637%209.92578L7.4043%2010.0488C7.71343%2010.3185%208.1013%2010.456%208.5791%2010.4561C9.10219%2010.4561%209.54903%2010.3382%209.9248%2010.1084L10.1787%209.95312V11.0381L10.0889%2011.085C9.65012%2011.3158%209.10967%2011.4268%208.47559%2011.4268C7.6423%2011.4268%206.9605%2011.1612%206.44922%2010.6191V10.6182C5.93981%2010.0754%205.69145%209.36307%205.69141%208.49902C5.69147%207.57075%205.97064%206.80719%206.54102%206.22656C7.10964%205.64782%207.83309%205.36042%208.69727%205.36035ZM6.3291%206.75488C6.32678%206.75844%206.32457%206.76206%206.32227%206.76562C6.36901%206.69342%206.41884%206.62326%206.47266%206.55566L6.3291%206.75488ZM8.10645%205.57812C8.01275%205.59511%207.92124%205.61615%207.83203%205.6416C8.0108%205.5906%208.19869%205.55704%208.39551%205.54004L8.10645%205.57812Z'%20fill='%23339C43'/%3e%3c/svg%3e", E2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33301C11.457%201.33301%2011.6182%201.39584%2011.7412%201.50879L12.6504%202.3457L11.9736%203.08105L11.1602%202.33301H4V13.666H12.667V3.71387L11.9766%203.08398L11.9736%203.08203L12.6504%202.3457L13.4502%203.07617C13.5879%203.20229%2013.6668%203.38063%2013.667%203.56738V14L13.6533%2014.1338C13.5913%2014.4377%2013.3223%2014.666%2013%2014.666H3.66699L3.53223%2014.6523C3.27187%2014.599%203.06687%2014.3942%203.01367%2014.1338L3%2014V2C3.00012%201.67798%203.22857%201.40887%203.53223%201.34668L3.66699%201.33301H11.29ZM10.5%209C10.7761%209%2011%209.22386%2011%209.5C11%209.77614%2010.7761%2010%2010.5%2010H6.5C6.22386%2010%206%209.77614%206%209.5C6%209.22386%206.22386%209%206.5%209H10.5ZM10.5%207C10.7761%207%2011%207.22386%2011%207.5C11%207.77614%2010.7761%208%2010.5%208H6.5C6.22386%208%206%207.77614%206%207.5C6%207.22386%206.22386%207%206.5%207H10.5Z'%20fill='%23426BFF'/%3e%3c/svg%3e", S2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.71582%205.33301C6.78793%205.33301%206.85481%205.37254%206.89258%205.43652L7.9541%207.25586L9.00488%205.43848C9.04265%205.3745%209.10953%205.33496%209.18164%205.33496H9.79395C9.83089%205.33515%209.86769%205.34564%209.89941%205.36523C9.93101%205.3848%209.95694%205.41285%209.97461%205.44629C9.99224%205.47972%2010.0011%205.5176%2010%205.55566C9.99877%205.59389%209.9876%205.63179%209.96777%205.66406L8.50293%208.01855L9.94531%2010.3359C10.0071%2010.4354%209.97971%2010.5668%209.88379%2010.6309C9.84945%2010.6522%209.81097%2010.665%209.77148%2010.665H9.12793C9.05762%2010.665%208.99086%2010.6274%208.95312%2010.5635L7.88379%208.76172L6.80664%2010.5654C6.76885%2010.6275%206.70384%2010.667%206.63184%2010.667H6.04004C6.00321%2010.6669%205.96628%2010.6561%205.93457%2010.6367C5.90309%2010.6174%205.87717%2010.5897%205.85938%2010.5566C5.84153%2010.5233%205.83209%2010.4854%205.83301%2010.4473C5.83393%2010.4093%205.84491%2010.3721%205.86426%2010.3398L7.2959%207.97949L5.88379%205.66211C5.82198%205.56081%205.85112%205.42939%205.94727%205.36719C5.97982%205.3442%206.01726%205.33302%206.05664%205.33301H6.71582Z'%20fill='%232F913E'/%3e%3c/svg%3e", N2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1162%203.07617C13.2543%203.20232%2013.3338%203.3804%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM10%208.5C10.2761%208.5%2010.5%208.72386%2010.5%209C10.5%209.27614%2010.2761%209.5%2010%209.5H6C5.72386%209.5%205.5%209.27614%205.5%209C5.5%208.72386%205.72386%208.5%206%208.5H10ZM9%206C9.27614%206%209.5%206.22386%209.5%206.5C9.5%206.77614%209.27614%207%209%207H6C5.72386%207%205.5%206.77614%205.5%206.5C5.5%206.22386%205.72386%206%206%206H9Z'%20fill='%2370706E'/%3e%3c/svg%3e", T2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H8.22957C8.49499%202%208.73512%202.15744%208.84095%202.40085L9.92791%204.90085C10.1193%205.34115%209.79664%205.83333%209.31652%205.83333H2.66667C2.29848%205.83333%202%205.53486%202%205.16667V2.66667Z'%20fill='%23F9B13C'/%3e%3cpath%20d='M3%204.50008C3%204.31599%203.14924%204.16675%203.33333%204.16675H12.6667C12.8508%204.16675%2013%204.31599%2013%204.50008V13.1667C13%2013.3508%2012.8508%2013.5001%2012.6667%2013.5001H3.33333C3.14924%2013.5001%203%2013.3508%203%2013.1667V4.50008Z'%20fill='white'/%3e%3cpath%20d='M2%204.66675H13.3333C13.7015%204.66675%2014%204.96522%2014%205.33341V13.3334C14%2013.7016%2013.7015%2014.0001%2013.3333%2014.0001H2.66667C2.29848%2014.0001%202%2013.7016%202%2013.3334V4.66675Z'%20fill='%23FFCB2E'/%3e%3c/svg%3e", Z2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM8.95117%208.80469C8.95117%209.45619%208.83123%209.99047%208.58105%2010.3984L8.46582%2010.5654C8.13575%2010.9898%207.68375%2011.2012%207.12109%2011.2012C6.86476%2011.2012%206.64525%2011.1636%206.4668%2011.083L6.4082%2011.0566V10.0342L6.56641%2010.1494C6.70723%2010.2516%206.88862%2010.3066%207.11719%2010.3066C7.40052%2010.3066%207.60577%2010.1907%207.74609%209.95508C7.89129%209.7111%207.9707%209.33189%207.9707%208.80469V4.84961H8.95117V8.80469Z'%20fill='%23FF4D50'/%3e%3c/svg%3e", R2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%201C13.5523%201%2014%201.44772%2014%202V13H3.5C3.22386%2013%203%2013.2239%203%2013.5C3%2013.7761%203.22386%2014%203.5%2014H14C14%2014.5523%2013.5523%2015%2013%2015H4C2.89543%2015%202%2014.1046%202%2013V3C2%201.89543%202.89543%201%204%201H13ZM5.5%204C5.22386%204%205%204.22386%205%204.5C5%204.77614%205.22386%205%205.5%205H10.5C10.7761%205%2011%204.77614%2011%204.5C11%204.22386%2010.7761%204%2010.5%204H5.5Z'%20fill='%230956E4'/%3e%3c/svg%3e", O2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%201.5C11.5899%201.5%2014.5%204.41015%2014.5%208C14.5%2011.5899%2011.5899%2014.5%208%2014.5C4.41015%2014.5%201.5%2011.5899%201.5%208C1.5%204.41015%204.41015%201.5%208%201.5ZM8%202.42871C4.92298%202.42871%202.42871%204.92298%202.42871%208C2.42871%2011.077%204.92298%2013.5713%208%2013.5713C11.077%2013.5713%2013.5713%2011.077%2013.5713%208C13.5713%204.92298%2011.077%202.42871%208%202.42871ZM6.19434%207.36523C6.2548%207.30503%206.3537%207.30487%206.41406%207.36523L6.68262%207.63477C6.74275%207.69515%206.74275%207.79314%206.68262%207.85352L6.30371%208.23242C5.89985%208.63677%205.89974%209.29201%206.30371%209.69629C6.70813%2010.1005%207.3642%2010.1006%207.76855%209.69629L8.14746%209.31738C8.20788%209.25744%208.30591%209.25726%208.36621%209.31738L8.63574%209.58691C8.69582%209.64722%208.69567%209.74526%208.63574%209.80566L8.25684%2010.1846C7.58294%2010.8585%206.49045%2010.8582%205.81641%2010.1846C5.14239%209.51056%205.14239%208.41815%205.81641%207.74414L6.19434%207.36523ZM8.27441%207.27246C8.33487%207.21231%208.43282%207.21214%208.49316%207.27246L8.7627%207.54199C8.82268%207.60237%208.82273%207.7004%208.7627%207.76074L7.76074%208.76172C7.70035%208.82211%207.60244%208.82201%207.54199%208.76172L7.27246%208.49316C7.21217%208.43285%207.21239%208.33487%207.27246%208.27441L8.27441%207.27246ZM7.74414%205.81543C8.41813%205.14189%209.51068%205.14173%2010.1846%205.81543C10.8584%206.48938%2010.8583%207.58286%2010.1846%208.25684L9.80566%208.63477C9.74528%208.69515%209.64736%208.69505%209.58691%208.63477L9.31738%208.36621C9.25716%208.30593%209.25744%208.20792%209.31738%208.14746L9.69629%207.76855C10.1004%207.36418%2010.1005%206.70805%209.69629%206.30371C9.29201%205.89962%208.6368%205.89978%208.23242%206.30371L7.85352%206.68262C7.79319%206.74294%207.69523%206.74271%207.63477%206.68262L7.36523%206.41309C7.30484%206.35264%207.30481%206.25476%207.36523%206.19434L7.74414%205.81543Z'%20fill='%2339B83F'/%3e%3c/svg%3e", j2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957Z'%20fill='%23675FF0'/%3e%3cpath%20d='M5%206.81818C5.12597%206.81818%205.22541%206.79021%205.30497%206.73427C5.38453%206.67832%205.43757%206.6014%205.46409%206.51049C5.49061%206.41259%205.50387%206.25175%205.50387%206.02098C5.50387%205.79021%205.5105%205.63636%205.51713%205.56643C5.53039%205.44755%205.55691%205.35664%205.60331%205.28671C5.64309%205.21678%205.6895%205.16084%205.74917%205.11888C5.80884%205.07692%205.88177%205.04895%205.97459%205.02098C6.03425%205.00699%206.14033%205%206.27956%205H6.41878V5.32867H6.34586C6.17348%205.32867%206.06077%205.35664%206.00773%205.40559C5.9547%205.45454%205.92155%205.57343%205.92155%205.75525C5.92155%206.11888%205.91492%206.34266%205.89503%206.44056C5.86851%206.58741%205.81547%206.6993%205.74254%206.78322C5.66961%206.86014%205.55691%206.93706%205.41105%207C5.59006%207.06294%205.72265%207.16084%205.80221%207.29371C5.88177%207.42657%205.92155%207.63636%205.92155%207.93706C5.92155%208.2028%205.92818%208.36364%205.92818%208.41958C5.94144%208.51049%205.97459%208.58042%206.02762%208.61539C6.08066%208.65035%206.18674%208.67133%206.33923%208.67133H6.41215V9H6.27293C6.11381%209%205.99448%208.99301%205.92818%208.96503C5.8221%208.93007%205.73591%208.88112%205.66961%208.81119C5.60331%208.74126%205.55691%208.65035%205.53702%208.53846C5.51713%208.42657%205.50387%208.25175%205.50387%208C5.50387%207.74825%205.49061%207.58042%205.46409%207.48252C5.43757%207.39161%205.38453%207.30769%205.30497%207.25874C5.22541%207.2028%205.12597%207.17483%205%207.16783V6.81818ZM10.5956%206.06993H7.22099C7.04199%206.06993%206.90276%205.91608%206.90276%205.73427V5.67133C6.90276%205.48252%207.04862%205.33566%207.22099%205.33566H10.5956C10.7746%205.33566%2010.9138%205.48951%2010.9138%205.67133V5.73427C10.9138%205.91608%2010.768%206.06993%2010.5956%206.06993ZM10.5956%207.3986H7.22099C7.04199%207.3986%206.90276%207.24476%206.90276%207.06294V7C6.90276%206.81119%207.04862%206.66434%207.22099%206.66434H10.5956C10.7746%206.66434%2010.9138%206.81818%2010.9138%207V7.06294C10.9138%207.24476%2010.768%207.3986%2010.5956%207.3986ZM10.5956%208.73427H7.22099C7.04199%208.73427%206.90276%208.58042%206.90276%208.3986V8.33566C6.90276%208.14685%207.04862%208%207.22099%208H10.5956C10.7746%208%2010.9138%208.15385%2010.9138%208.33566V8.3986C10.9138%208.58042%2010.768%208.73427%2010.5956%208.73427Z'%20fill='%23675FF0'/%3e%3cpath%20d='M11.5%2010.1265H10.8525V12H10.3677V10.1265H9.72168V9.73096H11.5V10.1265Z'%20fill='%23675FF0'/%3e%3cpath%20d='M7.55811%2012V9.73096H8.3418C9.14746%209.73096%209.55029%2010.0996%209.55029%2010.8369C9.55029%2011.1875%209.4375%2011.4692%209.21191%2011.6821C8.98633%2011.894%208.69531%2012%208.33887%2012H7.55811ZM8.0415%2010.1265V11.6045H8.30518C8.53467%2011.6045%208.71484%2011.5361%208.8457%2011.3994C8.97656%2011.2627%209.04199%2011.0776%209.04199%2010.8442C9.04199%2010.6187%208.97363%2010.4429%208.83691%2010.3169C8.7002%2010.1899%208.52246%2010.1265%208.30371%2010.1265H8.0415Z'%20fill='%23675FF0'/%3e%3cpath%20d='M4.96094%2010.8955C4.96094%2010.54%205.06445%2010.251%205.27148%2010.0283C5.47949%209.80469%205.75391%209.69287%206.09473%209.69287C6.41895%209.69287%206.67969%209.80078%206.87695%2010.0166C7.0752%2010.2324%207.17432%2010.5098%207.17432%2010.8486C7.17432%2011.2021%207.07129%2011.4893%206.86523%2011.71C6.66016%2011.9297%206.39111%2012.0396%206.05811%2012.0396C5.73291%2012.0396%205.46875%2011.9331%205.26562%2011.7202C5.0625%2011.5063%204.96094%2011.2314%204.96094%2010.8955ZM5.46924%2010.8691C5.46924%2011.0898%205.52246%2011.2705%205.62891%2011.4111C5.73535%2011.5508%205.88135%2011.6206%206.06689%2011.6206C6.25635%2011.6206%206.40381%2011.5537%206.50928%2011.4199C6.61475%2011.2852%206.66748%2011.1045%206.66748%2010.8779C6.66748%2010.6416%206.61621%2010.4551%206.51367%2010.3184C6.41113%2010.1807%206.2666%2010.1118%206.08008%2010.1118C5.89062%2010.1118%205.74121%2010.1821%205.63184%2010.3228C5.52344%2010.4634%205.46924%2010.6455%205.46924%2010.8691Z'%20fill='%23675FF0'/%3e%3c/svg%3e", W2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM7.71191%205.00098C7.95398%205.01182%208.23799%205.16198%208.30664%205.54688C8.40941%206.03464%208.27759%206.57316%208.17285%207.00488L8.16699%207.03027C8.37835%207.57951%208.66991%207.94773%209.11426%208.21875C10.017%208.10683%2010.5964%208.16863%2010.835%208.40332C10.9994%208.56776%2011.0484%208.87519%2010.9473%209.11914C10.8894%209.25831%2010.7357%209.48926%2010.3457%209.48926C9.95189%209.48921%209.37167%209.31384%208.8623%209.04102C8.40175%209.11875%207.8926%209.29278%207.40137%209.45898C7.2966%209.49512%207.18778%209.5311%207.08301%209.56543C6.3969%2010.7429%205.8824%2010.9998%205.56445%2011C5.48865%2011%205.4233%2010.9837%205.36914%2010.9639C5.24449%2010.9169%205.13813%2010.8189%205.07129%2010.6924C5.01181%2010.5787%204.98629%2010.4528%205.00781%2010.3535C5.1144%209.81502%205.83149%209.3878%206.36621%209.11133C6.65343%208.60533%207.04538%207.75431%207.29102%207.16895C7.09599%206.41389%206.98933%205.82132%207.1084%205.3877C7.17162%205.15099%207.42651%204.98835%207.71191%205.00098ZM6.18555%209.77441C5.99948%209.94427%205.76264%2010.1801%205.6416%2010.4023C5.74457%2010.3228%205.93444%2010.1394%206.18555%209.77441ZM7.73926%207.69629C7.60016%208.05769%207.39944%208.55181%207.15918%208.9873C7.23144%208.95839%207.30596%208.9272%207.38184%208.89648C7.69966%208.76643%208.05529%208.61975%208.44531%208.53125C8.17624%208.31804%207.93249%208.03049%207.73926%207.69629ZM9.73535%208.74707C10.3674%208.99599%2010.5185%208.91259%2010.5352%208.90234L10.5391%208.89648H10.543C10.5536%208.88933%2010.5516%208.88347%2010.5498%208.87988C10.544%208.87053%2010.4509%208.71359%209.73535%208.74707ZM7.72852%205.4834C7.67613%205.54303%207.68883%206.05251%207.77734%206.41211C7.8496%206.16635%207.86152%205.68036%207.76758%205.51953C7.75502%205.4962%207.74284%205.48532%207.72852%205.4834Z'%20fill='%23FF4D50'/%3e%3c/svg%3e", U2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.1777%202.67969C14.4553%202.7361%2014.6644%202.98029%2014.666%203.27441V12.667C14.6659%2012.9891%2014.4376%2013.2583%2014.1338%2013.3203L14%2013.334H2L1.86523%2013.3203C1.56164%2013.2581%201.33312%2012.989%201.33301%2012.667V3.33398C1.33301%203.01196%201.56164%202.74298%201.86523%202.68066L2%202.66699H14.0557L14.1777%202.67969ZM2.33301%2012.334H13.666V3.66699H2.33301V12.334ZM8.78125%207.39355C8.79747%207.40146%208.81204%207.41261%208.82324%207.42676L10.8545%2010.0166C10.915%2010.0939%2010.8601%2010.2078%2010.7607%2010.208H5.28613C5.26386%2010.2081%205.24156%2010.2022%205.22266%2010.1904C5.20374%2010.1786%205.18849%2010.1616%205.17871%2010.1416C5.16897%2010.1216%205.16469%2010.0993%205.16699%2010.0771C5.16933%2010.055%205.17865%2010.0341%205.19238%2010.0166L6.67676%208.12305C6.68788%208.10885%206.70253%208.09775%206.71875%208.08984C6.73488%208.08198%206.75256%208.07818%206.77051%208.07812C6.78858%208.07812%206.807%208.08193%206.82324%208.08984C6.83924%208.09768%206.85322%208.10907%206.86426%208.12305L7.47656%208.90332L8.63379%207.42676C8.64501%207.41261%208.65955%207.40145%208.67578%207.39355C8.69215%207.38564%208.71034%207.38086%208.72852%207.38086C8.74668%207.38087%208.7649%207.38565%208.78125%207.39355ZM6.35547%205.83301C6.51333%205.83301%206.66474%205.89619%206.77637%206.00781C6.888%206.11944%206.95117%206.27084%206.95117%206.42871C6.95111%206.5865%206.88794%206.73803%206.77637%206.84961C6.66476%206.9611%206.51323%207.02344%206.35547%207.02344C6.19768%207.02338%206.04615%206.96118%205.93457%206.84961C5.823%206.73803%205.7608%206.5865%205.76074%206.42871C5.76074%206.27095%205.82308%206.11942%205.93457%206.00781C6.04615%205.89624%206.19768%205.83307%206.35547%205.83301Z'%20fill='%2332A3FF'/%3e%3c/svg%3e", P2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM6.1543%205.26758H8.1543C9.30194%205.26778%209.9998%206.03334%2010%207.08105C10%208.14247%209.29247%208.89045%208.15039%208.89062H6.93262V10.7275C6.93262%2010.812%206.86371%2010.8816%206.7793%2010.8818H6.1543C6.06968%2010.8818%206%2010.8122%206%2010.7275V5.41992C6.00002%205.33532%206.06969%205.2666%206.1543%205.2666V5.26758ZM6.93262%206.03906V8.12402H7.68066C8.54028%208.12402%209.0498%207.91372%209.0498%207.0791C9.04962%206.41793%208.66339%206.03914%208.01367%206.03906H6.93262Z'%20fill='%23FA8C16'/%3e%3c/svg%3e", X2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.73633%201.57642C2.53848%200.774265%203.74473%200.714862%204.87207%201.03052C6.02182%201.35245%207.24885%202.09683%208.3125%203.1604C9.37624%204.22414%2010.1204%205.45195%2010.4424%206.60181C10.758%207.72909%2010.6986%208.93446%209.89648%209.73657C9.09439%2010.5387%207.88901%2010.5981%206.76172%2010.2825C5.61186%209.96051%204.38405%209.21632%203.32031%208.15259C2.25674%207.08894%201.51236%205.86191%201.19043%204.71216C0.874775%203.58481%200.934176%202.37857%201.73633%201.57642Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.76172%205.41479C7.88883%205.09929%209.09442%205.15888%209.89648%205.96069C10.6986%206.76284%2010.758%207.96909%2010.4424%209.09644C10.1204%2010.2462%209.37617%2011.4732%208.3125%2012.5369C7.24882%2013.6005%206.02187%2014.3448%204.87207%2014.6667C3.74472%2014.9824%202.53848%2014.923%201.73633%2014.1208C0.934528%2013.3188%200.874922%2012.1132%201.19043%2010.9861C1.51239%209.83623%202.25659%208.60841%203.32031%207.54468C4.38405%206.48096%205.61186%205.73675%206.76172%205.41479Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.1282%201.03052C12.2553%200.715012%2013.4609%200.774612%2014.263%201.57642C15.0651%202.37857%2015.1246%203.58481%2014.8089%204.71216C14.4869%205.86196%2013.7427%207.08892%2012.679%208.15259C11.6153%209.21627%2010.3884%209.96048%209.23859%2010.2825C8.11124%2010.5981%206.90499%2010.5387%206.10284%209.73657C5.30106%208.9345%205.24144%207.72892%205.55695%206.60181C5.8789%205.45195%206.62311%204.22414%207.68683%203.1604C8.75056%202.09668%209.97838%201.35248%2011.1282%201.03052Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.10284%205.96069C6.90499%205.15855%208.11124%205.09914%209.23859%205.41479C10.3883%205.73673%2011.6154%206.48111%2012.679%207.54468C13.7427%208.60841%2014.4869%209.83623%2014.8089%2010.9861C15.1245%2012.1134%2015.0651%2013.3188%2014.263%2014.1208C13.4609%2014.9229%2012.2555%2014.9823%2011.1282%2014.6667C9.97838%2014.3448%208.75055%2013.6006%207.68683%2012.5369C6.62325%2011.4732%205.87888%2010.2462%205.55695%209.09644C5.24129%207.96909%205.3007%206.76284%206.10284%205.96069Z'%20stroke='%234E6EF2'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", q2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM9.91406%205.16699C10.0058%205.16721%2010.0799%205.24128%2010.0801%205.33301V5.9707C10.0801%206.06262%2010.0059%206.13748%209.91406%206.1377H8.64648C8.55457%206.1377%208.47971%206.21185%208.47949%206.30371V10.5469C8.47936%2010.6387%208.40525%2010.7127%208.31348%2010.7129H7.59375C7.50178%2010.7129%207.42689%2010.6388%207.42676%2010.5469V6.30371C7.42654%206.21185%207.35168%206.1377%207.25977%206.1377H6C5.90795%206.1377%205.83301%206.06275%205.83301%205.9707V5.33301C5.83323%205.24115%205.90809%205.16699%206%205.16699H9.91406Z'%20fill='%234089FF'/%3e%3c/svg%3e", G2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9568%201.33276C11.1238%201.33276%2011.2849%201.39651%2011.408%201.50952L12.3171%202.34644L11.6404%203.08179L10.8269%202.33374H3.66675V13.6667H12.3337V3.7146L11.6433%203.08472L11.6404%203.08276L12.3171%202.34644L13.1169%203.0769C13.2546%203.20307%2013.3336%203.38138%2013.3337%203.56812V14.0007L13.3201%2014.1345C13.2578%2014.4382%2012.9888%2014.6667%2012.6667%2014.6667H3.33374L3.19897%2014.6531C2.93875%2014.5998%202.73378%2014.3947%202.68042%2014.1345L2.66675%2014.0007V2.00073C2.66675%201.67864%202.89529%201.40965%203.19897%201.34741L3.33374%201.33276H10.9568ZM6.05542%207.31616C6.12046%207.25114%206.22568%207.25122%206.29077%207.31616L6.58081%207.6062C6.64589%207.67128%206.64588%207.77646%206.58081%207.84155L6.17358%208.24976C5.73807%208.68527%205.73807%209.39139%206.17358%209.8269C6.60912%2010.2622%207.31529%2010.2624%207.75073%209.8269L8.15796%209.4187C8.22305%209.35363%208.32921%209.35362%208.39429%209.4187L8.68433%209.70874C8.74934%209.77383%208.74937%209.88%208.68433%209.94507L8.27612%2010.3523C7.55026%2011.0782%206.37308%2011.0782%205.64722%2010.3523C4.92174%209.62652%204.92177%208.45016%205.64722%207.72437L6.05542%207.31616ZM8.29468%207.21655C8.35977%207.15147%208.46592%207.15147%208.53101%207.21655L8.82104%207.50659C8.88578%207.5716%208.88575%207.67692%208.82104%207.74194L7.74194%208.82104C7.67692%208.88583%207.57163%208.8858%207.50659%208.82104L7.21655%208.53101C7.15147%208.46592%207.15147%208.35977%207.21655%208.29468L8.29468%207.21655ZM7.72339%205.64722C8.44919%204.92141%209.62642%204.92152%2010.3523%205.64722C11.0782%206.37308%2011.0782%207.55026%2010.3523%208.27612L9.94409%208.68433C9.87904%208.74897%209.77371%208.7491%209.70874%208.68433L9.4187%208.39429C9.35361%208.3292%209.35361%208.22305%209.4187%208.15796L9.8269%207.75073C10.2623%207.31533%2010.2621%206.60913%209.8269%206.17358C9.39139%205.73807%208.68527%205.73807%208.24976%206.17358L7.84155%206.58081C7.77647%206.64589%207.67129%206.64588%207.6062%206.58081L7.31616%206.29077C7.25109%206.22568%207.25108%206.1205%207.31616%206.05542L7.72339%205.64722Z'%20fill='%231998FF'/%3e%3c/svg%3e", Y2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.957%201.33301C11.124%201.33307%2011.2853%201.39583%2011.4082%201.50879L12.3174%202.3457L11.6406%203.08105L10.8271%202.33301H3.66699V13.666H12.334V3.71387L11.6436%203.08398L11.6406%203.08203L12.3174%202.3457L13.1172%203.07617C13.2549%203.20229%2013.3338%203.38063%2013.334%203.56738V14L13.3203%2014.1338C13.2583%2014.4376%2012.9891%2014.6659%2012.667%2014.666H3.33398L3.19922%2014.6523C2.93884%2014.599%202.73387%2014.3942%202.68066%2014.1338L2.66699%2014V2C2.66711%201.67798%202.89556%201.40887%203.19922%201.34668L3.33398%201.33301H10.957ZM5.77832%205.83301C5.87031%205.83301%205.94933%205.8983%205.9707%205.98828L6.72852%209.2998L7.54492%205.98535C7.56627%205.89541%207.64507%205.83309%207.73535%205.83301H8.26465C8.35498%205.83305%208.43373%205.89538%208.45508%205.98535L9.27344%209.30664L10.0254%205.98828C10.0467%205.89837%2010.1259%205.83313%2010.2178%205.83301H10.8027C10.8329%205.83312%2010.8626%205.84093%2010.8896%205.85449C10.9167%205.86808%2010.9406%205.88781%2010.959%205.91211C10.9773%205.93632%2010.9901%205.96425%2010.9961%205.99414C11.0021%206.02417%2011.0008%206.05533%2010.9932%206.08496L9.77148%2010.6846C9.74853%2010.7727%209.66957%2010.8328%209.58105%2010.833H9.05859C8.96987%2010.833%208.89019%2010.7712%208.86719%2010.6846L8%207.40137L7.13281%2010.6846C7.10985%2010.7728%207.03094%2010.8328%206.94238%2010.833H6.41602C6.32739%2010.8329%206.24857%2010.7712%206.22559%2010.6846L5.00684%206.08496C4.99909%206.05533%204.99796%206.0242%205.00391%205.99414C5.00985%205.9641%205.02262%205.93543%205.04102%205.91113C5.05939%205.88697%205.08338%205.86703%205.11035%205.85352C5.13734%205.84008%205.1672%205.83306%205.19727%205.83301H5.77832Z'%20fill='%23426BFF'/%3e%3c/svg%3e", J2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.29%201.33008C11.457%201.33008%2011.6182%201.39298%2011.7412%201.50586L12.6504%202.34277L11.9736%203.07812L11.1602%202.33008H4V13.6631H12.667V3.71094L11.9766%203.08105L11.9736%203.0791L12.6504%202.34277L13.4502%203.07324C13.588%203.19942%2013.6669%203.37761%2013.667%203.56445V13.9971L13.6533%2014.1309C13.5912%2014.4347%2013.3222%2014.6631%2013%2014.6631H3.66699L3.53223%2014.6494C3.27204%2014.5959%203.06685%2014.3912%203.01367%2014.1309L3%2013.9971V1.99707C3%201.67508%203.22869%201.40611%203.53223%201.34375L3.66699%201.33008H11.29ZM7.36816%206.39941C7.65187%206.39959%207.84768%206.57468%207.95605%206.93066L7.52734%207.78809L7.31641%207.35938C7.24417%207.22007%207.15618%207.14756%207.04785%207.14746H6.19043C6.04599%207.14751%206.00977%207.21486%206.08203%207.35938L7.04199%209.38867C7.68737%208.10825%208.05967%207.27658%208.21973%206.93066C8.40557%206.5332%208.62233%206.39943%208.90625%206.39941H10.791C11.1471%206.39948%2011.2705%206.57449%2011.1621%206.93066C11.0536%207.287%2010.5013%208.46426%209.50488%2010.457C9.46874%2010.5241%209.41249%2010.5762%209.35059%2010.6123C9.1441%2010.731%208.88077%2010.6635%208.75684%2010.457L8.22461%209.28027L8.65332%208.42285L9.13379%209.43945L10.1504%207.35938C10.2175%207.21997%2010.1866%207.14746%2010.042%207.14746H8.97852L7.47656%2010.3535C7.43013%2010.5031%207.31627%2010.6168%207.17188%2010.6582C6.93438%2010.7253%206.68626%2010.591%206.61914%2010.3535C5.62275%208.28844%205.09083%207.1111%205.01855%206.82715C4.94645%206.54338%205.09114%206.39941%205.44727%206.39941H7.36816Z'%20fill='%23ED8E35'/%3e%3c/svg%3e", K2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%202.66667C2%202.29848%202.29848%202%202.66667%202H13.3333C13.7015%202%2014%202.29848%2014%202.66667V8H2V2.66667Z'%20fill='%234DC6FF'/%3e%3cpath%20d='M2%208H14V13.3333C14%2013.7015%2013.7015%2014%2013.3333%2014H2.66667C2.29848%2014%202%2013.7015%202%2013.3333V8Z'%20fill='%234DCE84'/%3e%3crect%20x='14'%20y='6'%20width='4'%20height='12'%20transform='rotate(90%2014%206)'%20fill='%23FF5F5A'/%3e%3crect%20x='6'%20y='2'%20width='4'%20height='12'%20fill='%23FCC048'/%3e%3crect%20x='5.66667'%20y='5.66667'%20width='4.66667'%20height='4.66667'%20rx='0.666667'%20stroke='white'%20stroke-width='0.666667'/%3e%3c/svg%3e", Q2 = /* @__PURE__ */ Object.assign({});
2227
- function e1(e, o, r) {
2228
- let a = e;
2229
- for (let n = 0; n < o.length - 1; n += 1) {
2230
- const g = o[n];
2231
- (!a[g] || typeof a[g] != "object") && (a[g] = {}), a = a[g];
2232
- }
2233
- a[o[o.length - 1]] = r;
2234
- }
2235
- function o1(e) {
2236
- return e.replace(/^\.\//, "").split("?")[0].replace(/\.svg$/i, "").split("/");
2237
- }
2238
- function r1(e, o) {
2239
- const r = J.lazy(() => e().then((n) => ({ default: n.default || n.ReactComponent }))), a = (n) => /* @__PURE__ */ i(A0, { fallback: null, children: /* @__PURE__ */ i(r, { ...n }) });
2240
- return a.displayName = o, M0(a);
2241
- }
2242
- const k0 = {};
2243
- Object.entries(Q2).forEach(([e, o]) => {
2244
- const r = o1(e), a = r1(o, `Icon(${r.join("/")})`);
2245
- e1(k0, r, a);
2246
- });
2247
- const t1 = /* @__PURE__ */ Object.assign({ "./rag/csv.svg": I2, "./rag/document.svg": E2, "./rag/excel.svg": S2, "./rag/file.svg": N2, "./rag/folder.svg": T2, "./rag/json.svg": Z2, "./rag/knowledgebase.svg": R2, "./rag/netretrive.svg": O2, "./rag/odf.svg": j2, "./rag/pdf.svg": W2, "./rag/pic.svg": U2, "./rag/ppt.svg": P2, "./rag/think.svg": X2, "./rag/txt.svg": q2, "./rag/url.svg": G2, "./rag/word.svg": Y2, "./rag/wps.svg": J2, "./rag/zip.svg": K2 });
2248
- function n1(e, o, r) {
2249
- let a = e;
2250
- for (let n = 0; n < o.length - 1; n += 1) {
2251
- const g = o[n];
2252
- (!a[g] || typeof a[g] != "object") && (a[g] = {}), a = a[g];
2253
- }
2254
- a[o[o.length - 1]] = r;
2255
- }
2256
- function a1(e) {
2257
- return e.replace(/^\.\//, "").split("?")[0].replace(/\.svg$/i, "").split("/");
2258
- }
2259
- const D0 = {};
2260
- Object.entries(t1).forEach(([e, o]) => {
2261
- const r = a1(e);
2262
- n1(D0, r, o);
2263
- });
2264
- function i1(e) {
2265
- const o = e.split("/").filter(Boolean);
2266
- let r = k0;
2267
- for (const a of o) {
2268
- if (!r) return;
2269
- r = r[a];
2270
- }
2271
- return typeof r == "function" ? r : void 0;
2272
- }
2273
- function s1(e) {
2274
- const o = e.split("/").filter(Boolean);
2275
- let r = D0;
2276
- for (const a of o) {
2277
- if (!r) return;
2278
- r = r[a];
2279
- }
2280
- return typeof r == "string" ? r : void 0;
2281
- }
2282
- const v1 = ({ type: e, size: o, ...r }) => {
2283
- const a = i1(e), n = typeof o < "u" ? { width: o, height: o } : {};
2284
- if (a)
2285
- return /* @__PURE__ */ i(a, { ...n, ...r });
2286
- const g = s1(e);
2287
- return g ? /* @__PURE__ */ i("img", { src: g, alt: "", ...n, ...r }) : null;
2288
- };
2289
- export {
2290
- v0 as Button,
2291
- y0 as CustomDock,
2292
- w1 as DashboardContainer,
2293
- F1 as DockContainer,
2294
- m1 as DropDownButton,
2295
- C1 as GoggleNavbar,
2296
- v1 as Icon,
2297
- x1 as MoreDropdown,
2298
- b1 as Uploader,
2299
- l0 as deepMergeTheme,
2300
- I as defaultTheme
2301
- };