@yuku123/z-frontend-common 1.1.1 → 1.1.3

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.
@@ -0,0 +1,1737 @@
1
+ import { jsxs as m, jsx as t, Fragment as Ce } from "react/jsx-runtime";
2
+ import { useState as z, useRef as H, useEffect as D, useMemo as q, useCallback as be, useLayoutEffect as Re, createElement as ae, Fragment as O } from "react";
3
+ import { Button as V, Skeleton as _, Input as Te, Card as me, Table as ye, Breadcrumb as Ee, Space as se, Tag as ce } from "antd";
4
+ import { InboxOutlined as Ae, ExclamationCircleOutlined as Ie, ReloadOutlined as re, SearchOutlined as ze, ReadOutlined as Be } from "@ant-design/icons";
5
+ import { useNavigate as xe, useInRouterContext as De } from "react-router-dom";
6
+ const T = {
7
+ // 主色 (蓝紫) - 顶导/重点按钮/链接
8
+ primary: "#7c3aed",
9
+ // violet-600
10
+ primaryHover: "#8b5cf6",
11
+ // violet-500
12
+ primaryActive: "#6d28d9",
13
+ // violet-700
14
+ primarySoft: "#ede9fe"
15
+ // violet-100 (淡背景)
16
+ }, E = {
17
+ pink: {
18
+ bg: "#ec4899",
19
+ fg: "#ffffff",
20
+ soft: "#fce7f3",
21
+ gradient: "linear-gradient(135deg, #ec4899 0%, #be185d 100%)"
22
+ },
23
+ blue: {
24
+ bg: "#3b82f6",
25
+ fg: "#ffffff",
26
+ soft: "#dbeafe",
27
+ gradient: "linear-gradient(135deg, #3b82f6 0%, #1e40af 100%)"
28
+ },
29
+ green: {
30
+ bg: "#10b981",
31
+ fg: "#ffffff",
32
+ soft: "#d1fae5",
33
+ gradient: "linear-gradient(135deg, #10b981 0%, #047857 100%)"
34
+ },
35
+ orange: {
36
+ bg: "#f97316",
37
+ fg: "#ffffff",
38
+ soft: "#ffedd5",
39
+ gradient: "linear-gradient(135deg, #f97316 0%, #c2410c 100%)"
40
+ },
41
+ violet: {
42
+ bg: "#8b5cf6",
43
+ fg: "#ffffff",
44
+ soft: "#ede9fe",
45
+ gradient: "linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%)"
46
+ },
47
+ cyan: {
48
+ bg: "#06b6d4",
49
+ fg: "#ffffff",
50
+ soft: "#cffafe",
51
+ gradient: "linear-gradient(135deg, #06b6d4 0%, #0e7490 100%)"
52
+ },
53
+ red: {
54
+ bg: "#ef4444",
55
+ fg: "#ffffff",
56
+ soft: "#fee2e2",
57
+ gradient: "linear-gradient(135deg, #ef4444 0%, #b91c1c 100%)"
58
+ },
59
+ yellow: {
60
+ bg: "#eab308",
61
+ fg: "#1f2937",
62
+ soft: "#fef3c7",
63
+ gradient: "linear-gradient(135deg, #eab308 0%, #a16207 100%)"
64
+ }
65
+ }, x = {
66
+ bg: "#f8fafc",
67
+ // 页面底色 (比 antd 默认 #f5f5f5 更冷一点, 更现代)
68
+ surface: "#ffffff",
69
+ // 卡片表面
70
+ surfaceAlt: "#fafbfc",
71
+ // 次级表面 (表格 hover 等)
72
+ border: "#e5e7eb",
73
+ // 默认边框 (比 antd 默认淡, 更现代)
74
+ borderStrong: "#d1d5db",
75
+ text: "#111827",
76
+ // 主文本
77
+ textMuted: "#6b7280",
78
+ // 次文本
79
+ textDisabled: "#9ca3af"
80
+ }, C = {
81
+ sm: 8,
82
+ md: 12,
83
+ lg: 16,
84
+ xl: 20,
85
+ pill: 999
86
+ }, B = {
87
+ sm: "0 1px 2px 0 rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(15, 23, 42, 0.06)",
88
+ md: "0 2px 4px -1px rgba(15, 23, 42, 0.04), 0 4px 8px -1px rgba(15, 23, 42, 0.08)",
89
+ lg: "0 4px 6px -2px rgba(15, 23, 42, 0.05), 0 12px 16px -4px rgba(15, 23, 42, 0.10)",
90
+ xl: "0 8px 24px -6px rgba(15, 23, 42, 0.10), 0 24px 48px -12px rgba(15, 23, 42, 0.18)"
91
+ }, at = {
92
+ rest: B.md,
93
+ hover: "0 8px 16px -4px rgba(15, 23, 42, 0.08), 0 20px 32px -8px rgba(15, 23, 42, 0.14)"
94
+ }, N = {
95
+ 1: 4,
96
+ 2: 8,
97
+ 3: 12,
98
+ 4: 16,
99
+ 5: 20,
100
+ 6: 24,
101
+ 8: 32,
102
+ 10: 40,
103
+ 12: 48,
104
+ 16: 64
105
+ }, de = {
106
+ xs: 11,
107
+ sm: 12,
108
+ base: 14,
109
+ md: 16,
110
+ lg: 18,
111
+ xl: 20,
112
+ "2xl": 24,
113
+ "3xl": 30,
114
+ "4xl": 36
115
+ }, M = {
116
+ token: {
117
+ // 主色
118
+ colorPrimary: T.primary,
119
+ colorInfo: T.primary,
120
+ colorSuccess: E.green.bg,
121
+ colorWarning: E.orange.bg,
122
+ colorError: E.red.bg,
123
+ // 链接
124
+ colorLink: T.primary,
125
+ colorLinkHover: T.primaryHover,
126
+ colorLinkActive: T.primaryActive,
127
+ // 文本
128
+ colorText: x.text,
129
+ colorTextSecondary: x.textMuted,
130
+ colorTextTertiary: x.textDisabled,
131
+ // 背景
132
+ colorBgBase: x.surface,
133
+ colorBgLayout: x.bg,
134
+ colorBgContainer: x.surface,
135
+ colorBgElevated: x.surface,
136
+ // 边框
137
+ colorBorder: x.border,
138
+ colorBorderSecondary: x.surfaceAlt,
139
+ // 圆角
140
+ borderRadius: C.md,
141
+ borderRadiusLG: C.lg,
142
+ borderRadiusSM: C.sm,
143
+ // 字体
144
+ fontSize: de.base,
145
+ fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif",
146
+ // 阴影
147
+ boxShadow: B.md,
148
+ boxShadowSecondary: B.lg
149
+ },
150
+ components: {
151
+ // Layout: 顶导白底更现代
152
+ Layout: {
153
+ headerBg: x.surface,
154
+ headerHeight: 64,
155
+ headerPadding: "0 24px",
156
+ siderBg: "#0f172a"
157
+ // 深色侧栏 (slate-900), 比纯黑更有质感
158
+ },
159
+ // Menu: 深色侧栏菜单
160
+ Menu: {
161
+ darkItemBg: "transparent",
162
+ darkSubMenuItemBg: "transparent",
163
+ darkItemSelectedBg: T.primary,
164
+ darkItemHoverBg: "rgba(255, 255, 255, 0.06)",
165
+ darkItemColor: "rgba(255, 255, 255, 0.75)",
166
+ itemBorderRadius: 8,
167
+ itemMarginInline: 8
168
+ },
169
+ // Card: 更柔和
170
+ Card: {
171
+ borderRadiusLG: C.lg,
172
+ boxShadowTertiary: B.sm
173
+ },
174
+ // Button: 主按钮圆角统一
175
+ Button: {
176
+ borderRadius: C.md,
177
+ borderRadiusLG: C.lg,
178
+ fontWeight: 500
179
+ },
180
+ // Tabs: 现代化下划线
181
+ Tabs: {
182
+ itemSelectedColor: T.primary,
183
+ inkBarColor: T.primary,
184
+ titleFontSize: de.base
185
+ },
186
+ // Tag: 更小巧
187
+ Tag: {
188
+ borderRadiusSM: 6
189
+ }
190
+ }
191
+ };
192
+ function st({
193
+ icon: e,
194
+ label: n,
195
+ value: s,
196
+ suffix: o,
197
+ color: c = "blue",
198
+ trend: a,
199
+ href: r,
200
+ loading: l = !1,
201
+ precision: i = 0
202
+ }) {
203
+ const d = E[c] || E.blue, [f, g] = z(0), p = H(0);
204
+ D(() => {
205
+ if (l || s == null) return;
206
+ const b = p.current, S = Number(s) || 0;
207
+ if (b === S) {
208
+ g(S);
209
+ return;
210
+ }
211
+ const w = 600, L = performance.now();
212
+ let P;
213
+ const G = (U) => {
214
+ const j = Math.min(1, (U - L) / w), J = 1 - Math.pow(1 - j, 3), u = b + (S - b) * J;
215
+ g(u), j < 1 ? P = requestAnimationFrame(G) : p.current = S;
216
+ };
217
+ return P = requestAnimationFrame(G), () => P && cancelAnimationFrame(P);
218
+ }, [s, l]);
219
+ const h = () => {
220
+ r && typeof window < "u" && (window.location.href = r);
221
+ }, k = l ? "--" : Number(f).toLocaleString("zh-CN", {
222
+ minimumFractionDigits: i,
223
+ maximumFractionDigits: i
224
+ }), v = a != null ? Number(a) : null, A = v != null && v >= 0;
225
+ return /* @__PURE__ */ m(
226
+ "div",
227
+ {
228
+ onClick: h,
229
+ style: {
230
+ position: "relative",
231
+ background: d.gradient,
232
+ borderRadius: C.lg,
233
+ padding: N[5],
234
+ color: d.fg,
235
+ cursor: r ? "pointer" : "default",
236
+ boxShadow: B.md,
237
+ overflow: "hidden",
238
+ transition: "transform 200ms ease, box-shadow 200ms ease",
239
+ minHeight: 110,
240
+ display: "flex",
241
+ flexDirection: "column",
242
+ justifyContent: "space-between"
243
+ },
244
+ onMouseEnter: (b) => {
245
+ b.currentTarget.style.transform = "translateY(-2px)", b.currentTarget.style.boxShadow = B.lg;
246
+ },
247
+ onMouseLeave: (b) => {
248
+ b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = B.md;
249
+ },
250
+ children: [
251
+ /* @__PURE__ */ t(
252
+ "div",
253
+ {
254
+ style: {
255
+ position: "absolute",
256
+ top: -32,
257
+ right: -32,
258
+ width: 96,
259
+ height: 96,
260
+ borderRadius: "50%",
261
+ background: "rgba(255, 255, 255, 0.15)",
262
+ pointerEvents: "none"
263
+ }
264
+ }
265
+ ),
266
+ /* @__PURE__ */ m("div", { style: {
267
+ display: "flex",
268
+ alignItems: "center",
269
+ gap: N[2],
270
+ position: "relative"
271
+ }, children: [
272
+ /* @__PURE__ */ t("div", { style: {
273
+ width: 36,
274
+ height: 36,
275
+ borderRadius: C.sm,
276
+ background: "rgba(255, 255, 255, 0.20)",
277
+ backdropFilter: "blur(8px)",
278
+ display: "flex",
279
+ alignItems: "center",
280
+ justifyContent: "center",
281
+ fontSize: 18
282
+ }, children: e }),
283
+ /* @__PURE__ */ t("div", { style: {
284
+ fontSize: 13,
285
+ fontWeight: 500,
286
+ opacity: 0.92
287
+ }, children: n })
288
+ ] }),
289
+ /* @__PURE__ */ m("div", { style: {
290
+ display: "flex",
291
+ alignItems: "baseline",
292
+ gap: N[2],
293
+ position: "relative",
294
+ marginTop: N[3]
295
+ }, children: [
296
+ /* @__PURE__ */ t("div", { style: {
297
+ fontSize: 30,
298
+ fontWeight: 700,
299
+ lineHeight: 1.1,
300
+ letterSpacing: "-0.02em",
301
+ fontVariantNumeric: "tabular-nums"
302
+ }, children: k }),
303
+ o && /* @__PURE__ */ t("div", { style: { fontSize: 14, opacity: 0.85, fontWeight: 500 }, children: o }),
304
+ v != null && /* @__PURE__ */ m("div", { style: {
305
+ marginLeft: "auto",
306
+ fontSize: 12,
307
+ fontWeight: 600,
308
+ padding: "2px 8px",
309
+ borderRadius: 999,
310
+ background: A ? "rgba(255, 255, 255, 0.22)" : "rgba(0, 0, 0, 0.18)",
311
+ display: "flex",
312
+ alignItems: "center",
313
+ gap: 2
314
+ }, children: [
315
+ /* @__PURE__ */ t("span", { style: { fontSize: 10 }, children: A ? "▲" : "▼" }),
316
+ Math.abs(v).toFixed(1),
317
+ "%"
318
+ ] })
319
+ ] })
320
+ ]
321
+ }
322
+ );
323
+ }
324
+ function Le({ color: e = "blue", label: n, size: s = 8 }) {
325
+ const o = E[e] || E.blue;
326
+ return /* @__PURE__ */ m("span", { style: {
327
+ display: "inline-flex",
328
+ alignItems: "center",
329
+ gap: 8,
330
+ fontSize: 14,
331
+ fontWeight: 600,
332
+ color: "#111827"
333
+ }, children: [
334
+ /* @__PURE__ */ t("span", { style: {
335
+ width: s,
336
+ height: s,
337
+ borderRadius: "50%",
338
+ background: o.bg,
339
+ boxShadow: `0 0 0 3px ${o.soft}`,
340
+ flexShrink: 0
341
+ } }),
342
+ n && /* @__PURE__ */ t("span", { children: n })
343
+ ] });
344
+ }
345
+ function ct({
346
+ color: e = "blue",
347
+ title: n,
348
+ subtitle: s,
349
+ moreText: o = "全部",
350
+ moreHref: c,
351
+ onMore: a
352
+ }) {
353
+ return /* @__PURE__ */ m("div", { style: {
354
+ display: "flex",
355
+ alignItems: "center",
356
+ justifyContent: "space-between",
357
+ marginBottom: 16
358
+ }, children: [
359
+ /* @__PURE__ */ m("div", { style: { display: "flex", alignItems: "baseline", gap: 12 }, children: [
360
+ /* @__PURE__ */ t(Le, { color: e, label: n, size: 10 }),
361
+ s && /* @__PURE__ */ t("span", { style: {
362
+ fontSize: 13,
363
+ color: "#6b7280",
364
+ fontWeight: 400
365
+ }, children: s })
366
+ ] }),
367
+ (c || a) && /* @__PURE__ */ m(
368
+ "a",
369
+ {
370
+ href: c,
371
+ onClick: (r) => {
372
+ a && (r.preventDefault(), a());
373
+ },
374
+ style: {
375
+ fontSize: 13,
376
+ color: "#6b7280",
377
+ textDecoration: "none",
378
+ display: "inline-flex",
379
+ alignItems: "center",
380
+ gap: 4,
381
+ cursor: "pointer",
382
+ transition: "color 150ms ease"
383
+ },
384
+ onMouseEnter: (r) => {
385
+ r.currentTarget.style.color = "#7c3aed";
386
+ },
387
+ onMouseLeave: (r) => {
388
+ r.currentTarget.style.color = "#6b7280";
389
+ },
390
+ children: [
391
+ o,
392
+ /* @__PURE__ */ t("span", { style: { fontSize: 12 }, children: "›" })
393
+ ]
394
+ }
395
+ )
396
+ ] });
397
+ }
398
+ function dt({
399
+ title: e,
400
+ description: n,
401
+ icon: s,
402
+ cover: o,
403
+ color: c = "violet",
404
+ tags: a = [],
405
+ meta: r,
406
+ href: l,
407
+ extra: i
408
+ }) {
409
+ const d = E[c] || E.violet, [f, g] = z(!1);
410
+ return /* @__PURE__ */ m(
411
+ "div",
412
+ {
413
+ onClick: () => {
414
+ l && typeof window < "u" && (window.location.href = l);
415
+ },
416
+ onMouseEnter: () => g(!0),
417
+ onMouseLeave: () => g(!1),
418
+ style: {
419
+ background: "#ffffff",
420
+ borderRadius: C.lg,
421
+ overflow: "hidden",
422
+ cursor: l ? "pointer" : "default",
423
+ boxShadow: f ? B.lg : B.sm,
424
+ transform: f ? "translateY(-2px)" : "translateY(0)",
425
+ transition: "transform 200ms ease, box-shadow 200ms ease",
426
+ border: "1px solid #f1f5f9",
427
+ display: "flex",
428
+ flexDirection: "column"
429
+ },
430
+ children: [
431
+ /* @__PURE__ */ m("div", { style: {
432
+ position: "relative",
433
+ aspectRatio: "16 / 9",
434
+ background: o ? "#f1f5f9" : d.gradient,
435
+ display: "flex",
436
+ alignItems: "center",
437
+ justifyContent: "center",
438
+ overflow: "hidden"
439
+ }, children: [
440
+ o ? /* @__PURE__ */ t(
441
+ "img",
442
+ {
443
+ src: o,
444
+ alt: e,
445
+ style: {
446
+ width: "100%",
447
+ height: "100%",
448
+ objectFit: "cover"
449
+ }
450
+ }
451
+ ) : /* @__PURE__ */ t("div", { style: {
452
+ fontSize: 48,
453
+ color: "rgba(255, 255, 255, 0.9)",
454
+ display: "flex"
455
+ }, children: s }),
456
+ !o && /* @__PURE__ */ t("div", { style: {
457
+ position: "absolute",
458
+ top: -24,
459
+ right: -24,
460
+ width: 80,
461
+ height: 80,
462
+ borderRadius: "50%",
463
+ background: "rgba(255, 255, 255, 0.15)"
464
+ } }),
465
+ i && /* @__PURE__ */ t("div", { style: {
466
+ position: "absolute",
467
+ top: 8,
468
+ right: 8
469
+ }, children: i })
470
+ ] }),
471
+ /* @__PURE__ */ m("div", { style: {
472
+ padding: N[4],
473
+ display: "flex",
474
+ flexDirection: "column",
475
+ gap: N[2],
476
+ flex: 1
477
+ }, children: [
478
+ a.length > 0 && /* @__PURE__ */ t("div", { style: {
479
+ display: "flex",
480
+ flexWrap: "wrap",
481
+ gap: 6
482
+ }, children: a.slice(0, 3).map((h, k) => {
483
+ const v = E[h.color] || E.blue;
484
+ return /* @__PURE__ */ t(
485
+ "span",
486
+ {
487
+ style: {
488
+ fontSize: 11,
489
+ fontWeight: 500,
490
+ padding: "2px 8px",
491
+ borderRadius: 999,
492
+ background: v.soft,
493
+ color: v.bg
494
+ },
495
+ children: h.label
496
+ },
497
+ k
498
+ );
499
+ }) }),
500
+ /* @__PURE__ */ t("div", { style: {
501
+ fontSize: 15,
502
+ fontWeight: 600,
503
+ color: "#111827",
504
+ lineHeight: 1.3,
505
+ overflow: "hidden",
506
+ textOverflow: "ellipsis",
507
+ display: "-webkit-box",
508
+ WebkitLineClamp: 1,
509
+ WebkitBoxOrient: "vertical"
510
+ }, children: e }),
511
+ n && /* @__PURE__ */ t("div", { style: {
512
+ fontSize: 12,
513
+ color: "#6b7280",
514
+ lineHeight: 1.5,
515
+ overflow: "hidden",
516
+ textOverflow: "ellipsis",
517
+ display: "-webkit-box",
518
+ WebkitLineClamp: 2,
519
+ WebkitBoxOrient: "vertical",
520
+ minHeight: 36
521
+ }, children: n }),
522
+ r && /* @__PURE__ */ t("div", { style: {
523
+ fontSize: 11,
524
+ color: "#9ca3af",
525
+ marginTop: "auto",
526
+ paddingTop: N[2],
527
+ borderTop: "1px dashed #f1f5f9"
528
+ }, children: r })
529
+ ] })
530
+ ]
531
+ }
532
+ );
533
+ }
534
+ function ft({
535
+ tag: e,
536
+ title: n,
537
+ description: s,
538
+ buttonText: o,
539
+ buttonHref: c,
540
+ onButtonClick: a
541
+ }) {
542
+ return /* @__PURE__ */ m("div", { style: {
543
+ position: "relative",
544
+ borderRadius: C.lg,
545
+ padding: "40px 48px",
546
+ background: "linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%)",
547
+ color: "#ffffff",
548
+ overflow: "hidden",
549
+ boxShadow: B.lg
550
+ }, children: [
551
+ /* @__PURE__ */ t("div", { style: {
552
+ position: "absolute",
553
+ top: -64,
554
+ right: -64,
555
+ width: 200,
556
+ height: 200,
557
+ borderRadius: "50%",
558
+ background: "radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%)",
559
+ pointerEvents: "none"
560
+ } }),
561
+ /* @__PURE__ */ t("div", { style: {
562
+ position: "absolute",
563
+ bottom: -48,
564
+ left: "30%",
565
+ width: 160,
566
+ height: 160,
567
+ borderRadius: "50%",
568
+ background: "radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%)",
569
+ pointerEvents: "none"
570
+ } }),
571
+ /* @__PURE__ */ m("div", { style: {
572
+ position: "relative",
573
+ display: "flex",
574
+ alignItems: "center",
575
+ justifyContent: "space-between",
576
+ gap: 32,
577
+ flexWrap: "wrap"
578
+ }, children: [
579
+ /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 240 }, children: [
580
+ e && /* @__PURE__ */ t("div", { style: {
581
+ fontSize: 11,
582
+ fontWeight: 600,
583
+ letterSpacing: "0.12em",
584
+ color: "#a5b4fc",
585
+ textTransform: "uppercase",
586
+ marginBottom: 12
587
+ }, children: e }),
588
+ /* @__PURE__ */ t("div", { style: {
589
+ fontSize: 24,
590
+ fontWeight: 700,
591
+ lineHeight: 1.3,
592
+ marginBottom: 8
593
+ }, children: n }),
594
+ s && /* @__PURE__ */ t("div", { style: {
595
+ fontSize: 14,
596
+ color: "rgba(255, 255, 255, 0.7)",
597
+ lineHeight: 1.6,
598
+ maxWidth: 540
599
+ }, children: s })
600
+ ] }),
601
+ o && (c || a) && /* @__PURE__ */ m(
602
+ "a",
603
+ {
604
+ href: c || "#",
605
+ onClick: (r) => {
606
+ a && (r.preventDefault(), a());
607
+ },
608
+ style: {
609
+ display: "inline-flex",
610
+ alignItems: "center",
611
+ gap: 8,
612
+ padding: "12px 24px",
613
+ background: "linear-gradient(135deg, #10b981 0%, #059669 100%)",
614
+ color: "#ffffff",
615
+ borderRadius: 999,
616
+ fontSize: 14,
617
+ fontWeight: 600,
618
+ textDecoration: "none",
619
+ boxShadow: "0 4px 12px rgba(16, 185, 129, 0.4)",
620
+ transition: "transform 150ms ease, box-shadow 150ms ease",
621
+ whiteSpace: "nowrap"
622
+ },
623
+ onMouseEnter: (r) => {
624
+ r.currentTarget.style.transform = "translateY(-1px)", r.currentTarget.style.boxShadow = "0 6px 16px rgba(16, 185, 129, 0.5)";
625
+ },
626
+ onMouseLeave: (r) => {
627
+ r.currentTarget.style.transform = "translateY(0)", r.currentTarget.style.boxShadow = "0 4px 12px rgba(16, 185, 129, 0.4)";
628
+ },
629
+ children: [
630
+ o,
631
+ /* @__PURE__ */ t("span", { children: "→" })
632
+ ]
633
+ }
634
+ )
635
+ ] })
636
+ ] });
637
+ }
638
+ function ne({
639
+ icon: e,
640
+ title: n = "暂无数据",
641
+ description: s,
642
+ actionText: o,
643
+ onAction: c,
644
+ size: a = "md",
645
+ style: r
646
+ }) {
647
+ const l = { sm: 24, md: 40, lg: 64 }, i = { sm: 14, md: 16, lg: 20 };
648
+ return /* @__PURE__ */ m(
649
+ "div",
650
+ {
651
+ role: "status",
652
+ "aria-live": "polite",
653
+ style: {
654
+ padding: l[a] || l.md,
655
+ textAlign: "center",
656
+ background: "#ffffff",
657
+ borderRadius: C.md,
658
+ border: "1px dashed #e5e7eb",
659
+ ...r
660
+ },
661
+ children: [
662
+ /* @__PURE__ */ t("div", { style: {
663
+ display: "inline-flex",
664
+ alignItems: "center",
665
+ justifyContent: "center",
666
+ width: 56,
667
+ height: 56,
668
+ borderRadius: "50%",
669
+ background: x.surfaceAlt,
670
+ marginBottom: 16,
671
+ fontSize: 28,
672
+ color: "#9ca3af"
673
+ }, children: e || /* @__PURE__ */ t(Ae, {}) }),
674
+ /* @__PURE__ */ t("div", { style: {
675
+ fontSize: i[a],
676
+ fontWeight: 600,
677
+ color: x.text,
678
+ marginBottom: s ? 6 : 16
679
+ }, children: n }),
680
+ s && /* @__PURE__ */ t("div", { style: {
681
+ fontSize: 13,
682
+ color: x.textMuted,
683
+ lineHeight: 1.6,
684
+ maxWidth: 360,
685
+ margin: "0 auto 16px"
686
+ }, children: s }),
687
+ o && c && /* @__PURE__ */ t(
688
+ V,
689
+ {
690
+ type: "primary",
691
+ onClick: c,
692
+ style: {
693
+ background: "linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%)",
694
+ border: "none",
695
+ minHeight: 36
696
+ },
697
+ children: o
698
+ }
699
+ )
700
+ ]
701
+ }
702
+ );
703
+ }
704
+ function $e({
705
+ error: e,
706
+ title: n = "加载失败",
707
+ description: s,
708
+ onRetry: o,
709
+ retryText: c = "重新加载",
710
+ variant: a = "inline",
711
+ style: r
712
+ }) {
713
+ var p;
714
+ const l = a === "full", i = (p = e == null ? void 0 : e.response) == null ? void 0 : p.data, d = i && typeof i == "object" && (typeof i.message == "string" && i.message || typeof i.msg == "string" && i.msg) || null, f = d || (typeof e == "string" ? e : (e == null ? void 0 : e.message) || (e == null ? void 0 : e.msg) || (e ? String(e) : null)), g = s || (d ? `原因: ${d}` : f ? `原因: ${f}。请检查网络或稍后重试。` : "请检查网络或稍后重试。");
715
+ return /* @__PURE__ */ m(
716
+ "div",
717
+ {
718
+ role: "alert",
719
+ "aria-live": "assertive",
720
+ style: {
721
+ padding: l ? "48px 24px" : "20px 24px",
722
+ background: l ? "#ffffff" : "#fef2f2",
723
+ border: l ? `1px dashed ${x.border}` : "1px solid #fecaca",
724
+ borderRadius: C.md,
725
+ textAlign: l ? "center" : "left",
726
+ display: "flex",
727
+ flexDirection: l ? "column" : "row",
728
+ alignItems: l ? "center" : "flex-start",
729
+ gap: l ? 12 : 16,
730
+ ...r
731
+ },
732
+ children: [
733
+ /* @__PURE__ */ t("div", { style: {
734
+ display: "inline-flex",
735
+ alignItems: "center",
736
+ justifyContent: "center",
737
+ width: l ? 56 : 36,
738
+ height: l ? 56 : 36,
739
+ borderRadius: "50%",
740
+ background: l ? "#fef2f2" : "#ffffff",
741
+ color: "#dc2626",
742
+ fontSize: l ? 28 : 18,
743
+ flexShrink: 0
744
+ }, children: /* @__PURE__ */ t(Ie, {}) }),
745
+ /* @__PURE__ */ m("div", { style: { flex: 1, minWidth: 0 }, children: [
746
+ /* @__PURE__ */ t("div", { style: {
747
+ fontSize: l ? 16 : 14,
748
+ fontWeight: 600,
749
+ color: "#991b1b",
750
+ marginBottom: 4
751
+ }, children: n }),
752
+ /* @__PURE__ */ t("div", { style: {
753
+ fontSize: 13,
754
+ color: "#7f1d1d",
755
+ lineHeight: 1.6,
756
+ wordBreak: "break-word"
757
+ }, children: g }),
758
+ o && /* @__PURE__ */ t(
759
+ V,
760
+ {
761
+ type: "primary",
762
+ danger: !0,
763
+ icon: /* @__PURE__ */ t(re, {}),
764
+ onClick: o,
765
+ size: l ? "middle" : "small",
766
+ style: { marginTop: 12 },
767
+ children: c
768
+ }
769
+ )
770
+ ] })
771
+ ]
772
+ }
773
+ );
774
+ }
775
+ function gt({
776
+ variant: e = "cards",
777
+ rows: n = 4,
778
+ active: s = !0,
779
+ style: o
780
+ }) {
781
+ return e === "cards" ? /* @__PURE__ */ t(
782
+ "div",
783
+ {
784
+ role: "status",
785
+ "aria-busy": "true",
786
+ "aria-label": "加载中",
787
+ style: {
788
+ display: "grid",
789
+ gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
790
+ gap: 16,
791
+ ...o
792
+ },
793
+ children: Array.from({ length: n }).map((c, a) => /* @__PURE__ */ m(
794
+ "div",
795
+ {
796
+ style: {
797
+ background: "#ffffff",
798
+ borderRadius: C.lg,
799
+ overflow: "hidden",
800
+ border: "1px solid #f1f5f9"
801
+ },
802
+ children: [
803
+ /* @__PURE__ */ t(
804
+ _.Image,
805
+ {
806
+ active: s,
807
+ style: { width: "100%", height: 140, borderRadius: 0 }
808
+ }
809
+ ),
810
+ /* @__PURE__ */ t("div", { style: { padding: 16 }, children: /* @__PURE__ */ t(_, { active: s, paragraph: { rows: 2 }, title: { width: "60%" } }) })
811
+ ]
812
+ },
813
+ a
814
+ ))
815
+ }
816
+ ) : e === "table" ? /* @__PURE__ */ t(
817
+ "div",
818
+ {
819
+ role: "status",
820
+ "aria-busy": "true",
821
+ "aria-label": "加载中",
822
+ style: {
823
+ background: "#ffffff",
824
+ padding: 24,
825
+ borderRadius: C.md,
826
+ ...o
827
+ },
828
+ children: /* @__PURE__ */ t(_, { active: s, paragraph: { rows: n } })
829
+ }
830
+ ) : e === "list" ? /* @__PURE__ */ t("div", { role: "status", "aria-busy": "true", "aria-label": "加载中", style: o, children: Array.from({ length: n }).map((c, a) => /* @__PURE__ */ m(
831
+ "div",
832
+ {
833
+ style: {
834
+ display: "flex",
835
+ alignItems: "center",
836
+ gap: 12,
837
+ padding: "12px 0",
838
+ borderBottom: a < n - 1 ? "1px solid #f1f5f9" : "none"
839
+ },
840
+ children: [
841
+ /* @__PURE__ */ t(_.Avatar, { active: s, size: "default" }),
842
+ /* @__PURE__ */ t(_, { active: s, paragraph: { rows: 1 }, title: { width: 120 }, style: { flex: 1 } })
843
+ ]
844
+ },
845
+ a
846
+ )) }) : /* @__PURE__ */ t(
847
+ "div",
848
+ {
849
+ role: "status",
850
+ "aria-busy": "true",
851
+ "aria-label": "加载中",
852
+ style: {
853
+ background: "#ffffff",
854
+ padding: 32,
855
+ borderRadius: C.md,
856
+ ...o
857
+ },
858
+ children: /* @__PURE__ */ t(_, { active: s, title: { width: "40%" }, paragraph: { rows: n } })
859
+ }
860
+ );
861
+ }
862
+ function We({
863
+ value: e,
864
+ onChange: n,
865
+ onSearch: s,
866
+ placeholder: o = "搜索...",
867
+ debounceMs: c = 300,
868
+ width: a = 280,
869
+ allowClear: r = !0,
870
+ // antd v6: enterButton 已被废弃,SearchInput 已通过 onKeyDown 自行处理 Enter 键,
871
+ // 所以从 rest 里过滤掉,避免透传到原生 <input> 报 React 警告。
872
+ enterButton: l,
873
+ ...i
874
+ }) {
875
+ const [d, f] = z(e || ""), g = H(null), p = H(e || "");
876
+ D(() => {
877
+ e !== void 0 && e !== d && (f(e || ""), p.current = e || "");
878
+ }, [e]), D(() => () => {
879
+ g.current && clearTimeout(g.current);
880
+ }, []);
881
+ const h = (S) => {
882
+ p.current = S, n && n(S);
883
+ }, k = (S) => {
884
+ const w = S.target.value;
885
+ if (f(w), g.current && clearTimeout(g.current), w === "") {
886
+ h("");
887
+ return;
888
+ }
889
+ g.current = setTimeout(() => h(w), c);
890
+ }, v = (S) => {
891
+ g.current && clearTimeout(g.current), h(S), s && s(S);
892
+ };
893
+ return /* @__PURE__ */ t(
894
+ Te,
895
+ {
896
+ ...i,
897
+ value: d,
898
+ onChange: k,
899
+ onPressEnter: v,
900
+ onKeyDown: (S) => {
901
+ S.key === "Enter" ? (S.preventDefault(), v(d)) : S.key === "Escape" && (f(""), v(""));
902
+ },
903
+ placeholder: o,
904
+ allowClear: r ? { clearIcon: /* @__PURE__ */ t("span", { onClick: () => {
905
+ f(""), v("");
906
+ }, children: "×" }) } : !1,
907
+ prefix: /* @__PURE__ */ t(ze, { style: { color: "#9ca3af" } }),
908
+ style: {
909
+ width: a,
910
+ borderRadius: C.md,
911
+ ...i.style || {}
912
+ }
913
+ }
914
+ );
915
+ }
916
+ function Me(e, n, s) {
917
+ const o = Array.isArray(e) ? e : [], c = String(s ?? "").trim().toLowerCase();
918
+ if (!c) return o;
919
+ const a = (Array.isArray(n) ? n : String(n || "").split(",")).map((r) => String(r || "").trim()).filter(Boolean);
920
+ return a.length ? o.filter((r) => !r || typeof r != "object" ? !1 : a.some((l) => {
921
+ const i = r[l];
922
+ return i == null ? !1 : String(i).toLowerCase().includes(c);
923
+ })) : o;
924
+ }
925
+ function He(e, n) {
926
+ const [s, o] = z(""), c = (Array.isArray(n) ? n.join(",") : String(n || "")).trim(), a = q(
927
+ () => Me(e, c, s),
928
+ [e, c, s]
929
+ ), r = be(() => o(""), []);
930
+ return { keyword: s, setKeyword: o, filtered: a, reset: r };
931
+ }
932
+ const Ne = {
933
+ pageSize: 10,
934
+ showSizeChanger: !0,
935
+ pageSizeOptions: ["10", "20", "50", "100"],
936
+ showTotal: (e) => `共 ${e} 条`
937
+ };
938
+ function ut({
939
+ rows: e,
940
+ columns: n,
941
+ rowKey: s,
942
+ loading: o,
943
+ searchKeys: c,
944
+ searchPlaceholder: a = "过滤",
945
+ searchWidth: r = 220,
946
+ cardTitle: l,
947
+ cardExtra: i,
948
+ emptyTitle: d = "暂无数据",
949
+ emptyDescription: f,
950
+ emptyActionText: g,
951
+ emptyOnAction: p,
952
+ pagination: h = Ne,
953
+ cardProps: k = {},
954
+ tableProps: v = {},
955
+ ...A
956
+ }) {
957
+ const { keyword: b, setKeyword: S, filtered: w } = He(e, c);
958
+ return /* @__PURE__ */ t(me, { title: l, extra: (c ? /* @__PURE__ */ t(
959
+ We,
960
+ {
961
+ allowClear: !0,
962
+ width: r,
963
+ placeholder: a,
964
+ value: b,
965
+ onChange: S
966
+ }
967
+ ) : null) || i, ...k, children: /* @__PURE__ */ t(
968
+ ye,
969
+ {
970
+ rowKey: s,
971
+ columns: n,
972
+ dataSource: w,
973
+ loading: o,
974
+ size: "small",
975
+ pagination: h,
976
+ locale: {
977
+ emptyText: /* @__PURE__ */ t(
978
+ ne,
979
+ {
980
+ title: d,
981
+ description: f,
982
+ actionText: g,
983
+ onAction: p
984
+ }
985
+ )
986
+ },
987
+ ...v,
988
+ ...A
989
+ }
990
+ ) });
991
+ }
992
+ function ve({
993
+ title: e,
994
+ subtitle: n,
995
+ breadcrumb: s,
996
+ extra: o,
997
+ back: c,
998
+ onBack: a
999
+ }) {
1000
+ const r = xe();
1001
+ return /* @__PURE__ */ t("div", { style: {
1002
+ marginBottom: 12,
1003
+ paddingBottom: 10,
1004
+ borderBottom: "1px solid #f1f5f9"
1005
+ }, children: /* @__PURE__ */ m("div", { style: {
1006
+ display: "flex",
1007
+ alignItems: "center",
1008
+ justifyContent: "space-between",
1009
+ gap: 12,
1010
+ flexWrap: "wrap"
1011
+ }, children: [
1012
+ /* @__PURE__ */ m("div", { style: {
1013
+ display: "flex",
1014
+ alignItems: "center",
1015
+ gap: 10,
1016
+ minWidth: 0,
1017
+ flexWrap: "wrap"
1018
+ }, children: [
1019
+ c && /* @__PURE__ */ t(
1020
+ "button",
1021
+ {
1022
+ onClick: () => {
1023
+ a ? a() : r(-1);
1024
+ },
1025
+ "aria-label": "返回上一页",
1026
+ style: {
1027
+ width: 28,
1028
+ height: 28,
1029
+ borderRadius: 6,
1030
+ border: "1px solid #e5e7eb",
1031
+ background: "#ffffff",
1032
+ color: "#6b7280",
1033
+ cursor: "pointer",
1034
+ display: "inline-flex",
1035
+ alignItems: "center",
1036
+ justifyContent: "center",
1037
+ fontSize: 13,
1038
+ transition: "all 150ms ease",
1039
+ flexShrink: 0
1040
+ },
1041
+ onMouseEnter: (i) => {
1042
+ i.currentTarget.style.background = "#f8fafc", i.currentTarget.style.color = "#111827", i.currentTarget.style.borderColor = "#7c3aed";
1043
+ },
1044
+ onMouseLeave: (i) => {
1045
+ i.currentTarget.style.background = "#ffffff", i.currentTarget.style.color = "#6b7280", i.currentTarget.style.borderColor = "#e5e7eb";
1046
+ },
1047
+ children: "←"
1048
+ }
1049
+ ),
1050
+ s && s.length > 0 ? /* @__PURE__ */ t(
1051
+ Ee,
1052
+ {
1053
+ items: s.map((i, d) => {
1054
+ const f = d === s.length - 1;
1055
+ return {
1056
+ title: i.href && !f ? /* @__PURE__ */ t("a", { onClick: (g) => {
1057
+ g.preventDefault(), r(i.href);
1058
+ }, children: i.label }) : /* @__PURE__ */ t("span", { style: f ? {
1059
+ fontWeight: 600,
1060
+ color: "#111827"
1061
+ } : void 0, children: i.label })
1062
+ };
1063
+ })
1064
+ }
1065
+ ) : e && /* @__PURE__ */ t("span", { role: "heading", "aria-level": 1, style: {
1066
+ fontSize: 15,
1067
+ fontWeight: 600,
1068
+ color: "#111827",
1069
+ lineHeight: 1.4
1070
+ }, children: e }),
1071
+ n && /* @__PURE__ */ t("span", { title: n, style: {
1072
+ fontSize: 12,
1073
+ color: "#94a3b8",
1074
+ lineHeight: 1.4,
1075
+ whiteSpace: "nowrap",
1076
+ overflow: "hidden",
1077
+ textOverflow: "ellipsis",
1078
+ maxWidth: 360
1079
+ }, children: n })
1080
+ ] }),
1081
+ o && /* @__PURE__ */ t("div", { style: {
1082
+ display: "flex",
1083
+ gap: 8,
1084
+ flexShrink: 0
1085
+ }, children: o })
1086
+ ] }) });
1087
+ }
1088
+ function pt({ left: e, right: n, extra: s }) {
1089
+ return /* @__PURE__ */ m(
1090
+ "div",
1091
+ {
1092
+ style: {
1093
+ display: "flex",
1094
+ alignItems: "center",
1095
+ justifyContent: "space-between",
1096
+ gap: 12,
1097
+ marginBottom: 12,
1098
+ flexWrap: "wrap"
1099
+ },
1100
+ children: [
1101
+ /* @__PURE__ */ t(se, { size: 8, wrap: !0, children: e }),
1102
+ /* @__PURE__ */ m(se, { size: 8, wrap: !0, children: [
1103
+ n,
1104
+ s
1105
+ ] })
1106
+ ]
1107
+ }
1108
+ );
1109
+ }
1110
+ function ht({ onClick: e, loading: n, title: s = "刷新" }) {
1111
+ return /* @__PURE__ */ t(V, { icon: /* @__PURE__ */ t(re, {}), onClick: e, loading: n, title: s, children: s });
1112
+ }
1113
+ const Pe = {
1114
+ 0: { label: "待办", color: "default" },
1115
+ 1: { label: "进行中", color: "blue" },
1116
+ 2: { label: "已完成", color: "green" }
1117
+ }, _e = {
1118
+ ACTIVE: { label: "正常", color: "green" },
1119
+ INACTIVE: { label: "禁用", color: "red" },
1120
+ ENABLED: { label: "启用", color: "green" },
1121
+ DISABLED: { label: "禁用", color: "red" }
1122
+ }, Oe = {
1123
+ low: { label: "低", color: "default" },
1124
+ medium: { label: "中", color: "orange" },
1125
+ high: { label: "高", color: "red" },
1126
+ 1: { label: "低", color: "default" },
1127
+ 2: { label: "中", color: "orange" },
1128
+ 3: { label: "高", color: "red" }
1129
+ }, Fe = {
1130
+ PENDING: { label: "待审批", color: "orange" },
1131
+ APPROVED: { label: "已通过", color: "green" },
1132
+ REJECTED: { label: "已拒绝", color: "red" },
1133
+ CANCELLED: { label: "已撤回", color: "default" }
1134
+ }, je = {
1135
+ RUNNING: { label: "运行中", color: "green" },
1136
+ PAUSED: { label: "已暂停", color: "orange" },
1137
+ STOPPED: { label: "已停止", color: "default" },
1138
+ FAILED: { label: "失败", color: "red" },
1139
+ SUCCESS: { label: "成功", color: "green" }
1140
+ }, qe = {
1141
+ task: Pe,
1142
+ model: _e,
1143
+ priority: Oe,
1144
+ approval: Fe,
1145
+ schedule: je
1146
+ };
1147
+ function bt({ status: e, type: n = "task", mapping: s, ...o }) {
1148
+ const a = (s || qe[n] || {})[e];
1149
+ return a ? /* @__PURE__ */ t(ce, { color: a.color, ...o, children: a.label }) : /* @__PURE__ */ t(ce, { ...o, children: String(e) });
1150
+ }
1151
+ function mt({ title: e, description: n, load: s, columns: o, rowKey: c = "id", extra: a, expandable: r }) {
1152
+ const [l, i] = z([]), [d, f] = z({ current: 1, size: 10, total: null }), [g, p] = z(!1), [h, k] = z(null), v = be(async (b = d.current, S = d.size) => {
1153
+ p(!0), k(null);
1154
+ try {
1155
+ const w = await s(b, S);
1156
+ if (Array.isArray(w))
1157
+ i(w || []), f({ current: b, size: S, total: w.length });
1158
+ else {
1159
+ const L = (w == null ? void 0 : w.records) || [];
1160
+ i(L), f({ current: b, size: S, total: (w == null ? void 0 : w.total) == null ? null : Number(w.total) });
1161
+ }
1162
+ } catch (w) {
1163
+ i([]), k(w);
1164
+ } finally {
1165
+ p(!1);
1166
+ }
1167
+ }, [s, d.current, d.size]);
1168
+ D(() => {
1169
+ v(1);
1170
+ }, []);
1171
+ const A = d.total != null && d.total > 0;
1172
+ return /* @__PURE__ */ m("div", { children: [
1173
+ /* @__PURE__ */ t(ve, { title: e, subtitle: n }),
1174
+ /* @__PURE__ */ m(
1175
+ me,
1176
+ {
1177
+ extra: /* @__PURE__ */ t(
1178
+ V,
1179
+ {
1180
+ icon: /* @__PURE__ */ t(re, {}),
1181
+ loading: g,
1182
+ onClick: () => v(d.current, d.size),
1183
+ children: "刷新"
1184
+ }
1185
+ ),
1186
+ children: [
1187
+ a,
1188
+ h ? /* @__PURE__ */ t($e, { error: h, onRetry: () => v(d.current, d.size), type: "inline" }) : /* @__PURE__ */ t(
1189
+ ye,
1190
+ {
1191
+ size: "small",
1192
+ columns: o,
1193
+ dataSource: l,
1194
+ loading: g,
1195
+ rowKey: (b) => (b == null ? void 0 : b[c]) ?? (b == null ? void 0 : b.key) ?? JSON.stringify(b).slice(0, 32),
1196
+ pagination: {
1197
+ current: d.current,
1198
+ pageSize: d.size,
1199
+ total: A ? d.total : l.length,
1200
+ showSizeChanger: !0,
1201
+ showTotal: () => A ? `共 ${d.total} 条` : `本页 ${l.length} 条(接口 total 未返回有效值)`
1202
+ },
1203
+ onChange: (b) => v(b.current, b.pageSize),
1204
+ expandable: r,
1205
+ locale: { emptyText: /* @__PURE__ */ t(ne, { title: "暂无数据", description: "接口返回空列表" }) }
1206
+ }
1207
+ )
1208
+ ]
1209
+ }
1210
+ )
1211
+ ] });
1212
+ }
1213
+ const Ge = 240, fe = 96, Ue = { behavior: "smooth", block: "start" }, Ye = `
1214
+ .zfc-doc-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
1215
+ @media (max-width: 800px) { .zfc-doc-table-wrap > table { min-width: 520px; } }
1216
+ `, Ke = (e) => String(e || "").trim().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}\p{M}\p{Pc}-]/gu, "").replace(/-+/g, "-").replace(/^-|-$/g, ""), ie = (e) => String(e || "").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/`([^`]*)`/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/__([^_]+)__/g, "$1").replace(/\*([^*]+)\*/g, "$1").trim(), Se = () => {
1217
+ const e = /* @__PURE__ */ new Map();
1218
+ let n = 0;
1219
+ return (s) => {
1220
+ n += 1;
1221
+ const o = Ke(s) || `section-${n}`, c = e.get(o) || 0;
1222
+ return e.set(o, c + 1), c > 0 ? `${o}-${c}` : o;
1223
+ };
1224
+ }, Ve = (e) => {
1225
+ const n = [], s = Se();
1226
+ let o = !1;
1227
+ for (const c of String(e || "").split(`
1228
+ `)) {
1229
+ const a = c.replace(/\s+$/, "");
1230
+ if (/^\s*(```|~~~)/.test(a)) {
1231
+ o = !o;
1232
+ continue;
1233
+ }
1234
+ if (o) continue;
1235
+ const r = /^(#{1,6})[ \t]+(.+?)[ \t]*#*[ \t]*$/.exec(a);
1236
+ if (!r) continue;
1237
+ const l = r[1].length;
1238
+ if (l > 3) continue;
1239
+ const i = ie(r[2]);
1240
+ i && n.push({ level: l, text: i, id: s(i) });
1241
+ }
1242
+ return n;
1243
+ }, X = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(X).join("") : e.props ? X(e.props.children) : "", ge = (e) => String(e).replace(/["\\]/g, "\\$&"), ue = (e, n = Ue) => !e || typeof e.scrollIntoView != "function" ? !1 : (e.scrollIntoView(n), !0), Z = /^\s*(`{3,}|~{3,})\s*([\w+#-]*)\s*$/, ee = /^(#{1,6})\s+(.*?)\s*#*$/, te = /^\s*([-*_])\s*(\1\s*){2,}$/, F = /^(\s*)([-*+]|\d+[.)])(\s+)(.*)$/, Y = /^\s*>\s?(.*)$/, Je = /(!?\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^"]*")?\)|`([^`]+)`|\*\*([^*]+)\*\*|__([^_]+)__|~~([^~]+)~~|\*([^*\n]+)\*|<((?:https?:\/\/|mailto:)[^>\s]+)>)/g, K = (e) => {
1244
+ let n = String(e).trim();
1245
+ return n.startsWith("|") && (n = n.slice(1)), n.endsWith("|") && (n = n.slice(0, -1)), n.split("|").map((s) => s.trim());
1246
+ }, Qe = (e) => {
1247
+ if (!String(e).includes("-")) return !1;
1248
+ const n = K(e);
1249
+ return n.length > 0 && n.every((s) => /^:?-+:?$/.test(s));
1250
+ }, Xe = (e) => {
1251
+ const n = e.startsWith(":"), s = e.endsWith(":");
1252
+ return n && s ? "center" : s ? "right" : "left";
1253
+ }, Ze = (e, n) => {
1254
+ const s = F.exec(e[n]), o = /\d/.test(s[2]), c = [];
1255
+ let a = n;
1256
+ for (; a < e.length; ) {
1257
+ const r = F.exec(e[a]);
1258
+ if (!r) break;
1259
+ const l = r[1].length, i = l + r[2].length + r[3].length, d = [r[4]];
1260
+ for (a += 1; a < e.length; ) {
1261
+ const f = e[a];
1262
+ if (!f.trim()) {
1263
+ let h = a;
1264
+ for (; h < e.length && !e[h].trim(); ) h += 1;
1265
+ const k = h < e.length ? F.exec(e[h]) : null;
1266
+ if (k && k[1].length >= l) {
1267
+ a = h;
1268
+ continue;
1269
+ }
1270
+ break;
1271
+ }
1272
+ const g = /^[ \t]*/.exec(f)[0].length, p = F.exec(f);
1273
+ if (p && p[1].length <= l) break;
1274
+ if (g >= i) {
1275
+ d.push(f.slice(i)), a += 1;
1276
+ continue;
1277
+ }
1278
+ if (g > l) {
1279
+ d.push(f.slice(g)), a += 1;
1280
+ continue;
1281
+ }
1282
+ if (!p && !Z.test(f) && !ee.test(f) && !te.test(f) && !Y.test(f)) {
1283
+ d.push(f.trim()), a += 1;
1284
+ continue;
1285
+ }
1286
+ break;
1287
+ }
1288
+ c.push({ blocks: we(d, !0) });
1289
+ }
1290
+ return { block: { type: "list", ordered: o, items: c }, next: a };
1291
+ };
1292
+ function we(e, n = !1) {
1293
+ const s = [];
1294
+ let o = 0;
1295
+ for (; o < e.length; ) {
1296
+ const c = e[o];
1297
+ if (!c.trim()) {
1298
+ o += 1;
1299
+ continue;
1300
+ }
1301
+ const a = Z.exec(c);
1302
+ if (a) {
1303
+ const i = a[1][0], d = a[1].length, f = [];
1304
+ for (o += 1; o < e.length; ) {
1305
+ const g = e[o];
1306
+ if (new RegExp(`^\\s*\\${i}{${d},}\\s*$`).test(g)) {
1307
+ o += 1;
1308
+ break;
1309
+ }
1310
+ f.push(g), o += 1;
1311
+ }
1312
+ s.push({ type: "code", lang: a[2] || "", text: f.join(`
1313
+ `) });
1314
+ continue;
1315
+ }
1316
+ const r = ee.exec(c);
1317
+ if (r) {
1318
+ if (o += 1, !ie(r[2]).trim()) continue;
1319
+ n ? s.push({ type: "paragraph", text: r[2] }) : s.push({ type: "heading", level: r[1].length, text: r[2] });
1320
+ continue;
1321
+ }
1322
+ if (te.test(c)) {
1323
+ s.push({ type: "hr" }), o += 1;
1324
+ continue;
1325
+ }
1326
+ if (c.includes("|") && o + 1 < e.length && Qe(e[o + 1])) {
1327
+ const i = K(c), d = K(e[o + 1]).map(Xe);
1328
+ o += 2;
1329
+ const f = [];
1330
+ for (; o < e.length && e[o].trim() && e[o].includes("|"); )
1331
+ f.push(K(e[o])), o += 1;
1332
+ s.push({ type: "table", header: i, aligns: d, rows: f });
1333
+ continue;
1334
+ }
1335
+ if (Y.test(c)) {
1336
+ const i = [];
1337
+ for (; o < e.length; ) {
1338
+ const d = Y.exec(e[o]);
1339
+ if (!d) break;
1340
+ i.push(d[1]), o += 1;
1341
+ }
1342
+ s.push({ type: "quote", lines: i });
1343
+ continue;
1344
+ }
1345
+ if (F.test(c)) {
1346
+ const i = Ze(e, o);
1347
+ s.push(i.block), o = i.next;
1348
+ continue;
1349
+ }
1350
+ const l = [];
1351
+ for (; o < e.length; ) {
1352
+ const i = e[o];
1353
+ if (!i.trim() || l.length && (Z.test(i) || ee.test(i) || te.test(i) || F.test(i) || Y.test(i))) break;
1354
+ l.push(i.trim()), o += 1;
1355
+ }
1356
+ s.push({ type: "paragraph", text: l.join(" ") });
1357
+ }
1358
+ return s;
1359
+ }
1360
+ const I = (e, n) => {
1361
+ const s = [];
1362
+ let o = 0, c = 0;
1363
+ const a = (r) => s.push(/* @__PURE__ */ t(O, { children: r }, `i${c++}`));
1364
+ for (const r of e.matchAll(Je)) {
1365
+ if (r.index > o && a(e.slice(o, r.index)), r[1] !== void 0)
1366
+ if (r[0].startsWith("!"))
1367
+ a(n.img ? n.img({ src: r[3], alt: r[2] }) : /* @__PURE__ */ t("img", { src: r[3], alt: r[2] || "" }));
1368
+ else {
1369
+ const l = I(r[2], n);
1370
+ a(n.a ? n.a({ href: r[3], children: l }) : /* @__PURE__ */ t("a", { href: r[3], children: l }));
1371
+ }
1372
+ else r[4] !== void 0 ? a(n.code ? n.code({ children: r[4] }) : /* @__PURE__ */ t("code", { children: r[4] })) : r[5] !== void 0 ? a(/* @__PURE__ */ t("strong", { children: I(r[5], n) })) : r[6] !== void 0 ? a(/* @__PURE__ */ t("strong", { children: I(r[6], n) })) : r[7] !== void 0 ? a(/* @__PURE__ */ t("del", { children: I(r[7], n) })) : r[8] !== void 0 ? a(/* @__PURE__ */ t("em", { children: I(r[8], n) })) : r[9] !== void 0 && a(n.a ? n.a({ href: r[9], children: r[9] }) : /* @__PURE__ */ t("a", { href: r[9], children: r[9] }));
1373
+ o = r.index + r[0].length;
1374
+ }
1375
+ return o < e.length && a(e.slice(o)), s;
1376
+ }, ke = (e, n, s) => {
1377
+ const o = [];
1378
+ return e.forEach((c, a) => {
1379
+ const r = `b${a}`, l = (i) => o.push(/* @__PURE__ */ t(O, { children: i }, r));
1380
+ if (c.type === "heading") {
1381
+ const i = Math.min(c.level, 6), d = `h${i}`, f = n[d], g = I(c.text, n), p = i <= 3 ? s(ie(c.text)) : void 0;
1382
+ l(f ? f({ children: g, id: p }) : ae(d, { id: p }, g));
1383
+ } else if (c.type === "paragraph") {
1384
+ const i = I(c.text, n);
1385
+ l(n.p ? n.p({ children: i }) : /* @__PURE__ */ t("p", { children: i }));
1386
+ } else if (c.type === "code") {
1387
+ const i = /* @__PURE__ */ t("code", { className: c.lang ? `language-${c.lang}` : void 0, children: c.text });
1388
+ l(n.pre ? n.pre({ children: i }) : /* @__PURE__ */ t("pre", { children: i }));
1389
+ } else if (c.type === "list") {
1390
+ const i = c.ordered ? "ol" : "ul", d = n[i], f = c.items.map((g, p) => {
1391
+ const h = ke(g.blocks, n, s), k = n.li ? n.li({ children: h }) : /* @__PURE__ */ t("li", { children: h });
1392
+ return /* @__PURE__ */ t(O, { children: k }, `li${p}`);
1393
+ });
1394
+ l(d ? d({ children: f }) : ae(i, null, f));
1395
+ } else if (c.type === "table") {
1396
+ const i = /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ t("tr", { children: c.header.map((g, p) => {
1397
+ const h = n.th ? n.th({ children: I(g, n), align: c.aligns[p] }) : /* @__PURE__ */ t("th", { children: g });
1398
+ return /* @__PURE__ */ t(O, { children: h }, `th${p}`);
1399
+ }) }) }, "thead"), d = /* @__PURE__ */ t("tbody", { children: c.rows.map((g, p) => /* @__PURE__ */ t("tr", { children: g.map((h, k) => {
1400
+ const v = n.td ? n.td({ children: I(h, n), align: c.aligns[k] }) : /* @__PURE__ */ t("td", { children: h });
1401
+ return /* @__PURE__ */ t(O, { children: v }, `td${k}`);
1402
+ }) }, `tr${p}`)) }, "tbody"), f = n.table ? n.table({ children: [i, d] }) : /* @__PURE__ */ t("table", { children: [i, d] });
1403
+ l(f);
1404
+ } else if (c.type === "quote") {
1405
+ const i = c.lines.filter((d) => d.trim()).map((d, f) => {
1406
+ const g = n.p ? n.p({ children: I(d, n) }) : /* @__PURE__ */ t("p", { children: d });
1407
+ return /* @__PURE__ */ t(O, { children: g }, `q${f}`);
1408
+ });
1409
+ l(n.blockquote ? n.blockquote({ children: i }) : /* @__PURE__ */ t("blockquote", { children: i }));
1410
+ } else c.type === "hr" && l(n.hr ? n.hr({}) : /* @__PURE__ */ t("hr", {}));
1411
+ }), o;
1412
+ }, et = (e, n = {}) => ke(we(String(e || "").split(`
1413
+ `)), n, Se());
1414
+ let pe = null;
1415
+ const he = /* @__PURE__ */ new Set(), tt = ({ navigate: e, Prism: n, oneDark: s, onAnchorClick: o }) => {
1416
+ const c = {
1417
+ background: T.primarySoft,
1418
+ color: T.primary,
1419
+ padding: "1px 6px",
1420
+ borderRadius: 4,
1421
+ fontSize: "0.92em",
1422
+ fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace"
1423
+ };
1424
+ return {
1425
+ h1: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("h1", { ...l, style: {
1426
+ fontSize: 22,
1427
+ fontWeight: 700,
1428
+ margin: "8px 0 16px",
1429
+ borderBottom: `1px solid ${x.border}`,
1430
+ paddingBottom: 8,
1431
+ scrollMarginTop: 16
1432
+ }, children: r }),
1433
+ h2: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("h2", { ...l, style: {
1434
+ fontSize: 18,
1435
+ fontWeight: 700,
1436
+ margin: "24px 0 12px",
1437
+ color: x.text,
1438
+ scrollMarginTop: 16
1439
+ }, children: r }),
1440
+ h3: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("h3", { ...l, style: {
1441
+ fontSize: 15,
1442
+ fontWeight: 600,
1443
+ margin: "16px 0 8px",
1444
+ color: "#334155",
1445
+ scrollMarginTop: 16
1446
+ }, children: r }),
1447
+ p: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("p", { ...l, style: { margin: "8px 0", color: "#1f2937" }, children: r }),
1448
+ ul: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("ul", { ...l, style: { margin: "8px 0", paddingLeft: 22 }, children: r }),
1449
+ ol: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("ol", { ...l, style: { margin: "8px 0", paddingLeft: 22 }, children: r }),
1450
+ li: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("li", { ...l, style: { margin: "4px 0" }, children: r }),
1451
+ blockquote: ({ node: a, children: r, ...l }) => /* @__PURE__ */ t("blockquote", { ...l, style: {
1452
+ margin: "12px 0",
1453
+ padding: "8px 14px",
1454
+ borderLeft: `3px solid ${M.token.colorPrimary}`,
1455
+ background: T.primarySoft,
1456
+ color: "#475569",
1457
+ borderRadius: 4
1458
+ }, children: r }),
1459
+ hr: () => /* @__PURE__ */ t("hr", { style: { border: "none", borderTop: `1px solid ${x.border}`, margin: "20px 0" } }),
1460
+ img: ({ node: a, src: r, alt: l, ...i }) => /* @__PURE__ */ t("img", { ...i, src: r, alt: l || "", style: { maxWidth: "100%", height: "auto", display: "block" } }),
1461
+ table: ({ node: a, children: r, ...l }) => (
1462
+ // §7:窄屏表格要能横向滚动,不能把列挤成一团
1463
+ /* @__PURE__ */ t("div", { className: "zfc-doc-table-wrap", children: /* @__PURE__ */ t("table", { ...l, style: { width: "100%", borderCollapse: "collapse", fontSize: 13 }, children: r }) })
1464
+ ),
1465
+ th: ({ node: a, children: r, align: l, ...i }) => /* @__PURE__ */ t("th", { ...i, style: {
1466
+ padding: "8px 10px",
1467
+ background: x.surfaceAlt,
1468
+ border: `1px solid ${x.border}`,
1469
+ textAlign: l || "left",
1470
+ fontWeight: 600,
1471
+ color: "#334155"
1472
+ }, children: r }),
1473
+ td: ({ node: a, children: r, align: l, ...i }) => /* @__PURE__ */ t("td", { ...i, style: {
1474
+ padding: "8px 10px",
1475
+ border: `1px solid ${x.border}`,
1476
+ textAlign: l || "left",
1477
+ color: "#1f2937"
1478
+ }, children: r }),
1479
+ pre: ({ node: a, children: r }) => {
1480
+ const l = Array.isArray(r) ? r[0] : r;
1481
+ l && l.props && l.props.className;
1482
+ const i = X(l).replace(/\n$/, "");
1483
+ return /* @__PURE__ */ t("pre", { style: {
1484
+ margin: "12px 0",
1485
+ padding: "12px 14px",
1486
+ borderRadius: C.sm,
1487
+ background: "#1e293b",
1488
+ color: "#e2e8f0",
1489
+ overflowX: "auto",
1490
+ fontSize: 13
1491
+ }, children: /* @__PURE__ */ t("code", { style: { background: "transparent", color: "inherit", padding: 0, fontSize: "inherit" }, children: i }) });
1492
+ },
1493
+ code: ({ node: a, className: r, children: l, ...i }) => /* @__PURE__ */ t("code", { ...i, className: r, style: c, children: l }),
1494
+ a: ({ node: a, href: r, children: l, ...i }) => {
1495
+ const d = r || "";
1496
+ return /^https?:\/\//i.test(d) || d.startsWith("//") ? /* @__PURE__ */ t(
1497
+ "a",
1498
+ {
1499
+ ...i,
1500
+ href: d,
1501
+ target: "_blank",
1502
+ rel: "noopener noreferrer",
1503
+ style: { color: M.token.colorPrimary },
1504
+ children: l
1505
+ }
1506
+ ) : d.startsWith("#") ? /* @__PURE__ */ t(
1507
+ "a",
1508
+ {
1509
+ ...i,
1510
+ href: d,
1511
+ style: { color: M.token.colorPrimary },
1512
+ onClick: (g) => o(g, d.slice(1)),
1513
+ children: l
1514
+ }
1515
+ ) : d.startsWith("/") ? /* @__PURE__ */ t(
1516
+ "a",
1517
+ {
1518
+ ...i,
1519
+ href: d,
1520
+ style: { color: M.token.colorPrimary },
1521
+ onClick: (g) => {
1522
+ g.preventDefault(), e ? e(d) : typeof window < "u" && (window.location.href = d);
1523
+ },
1524
+ children: l
1525
+ }
1526
+ ) : /* @__PURE__ */ t("a", { ...i, href: d, style: { color: M.token.colorPrimary }, children: l });
1527
+ }
1528
+ };
1529
+ };
1530
+ function yt({
1531
+ markdown: e,
1532
+ title: n,
1533
+ tocWidth: s = Ge,
1534
+ tocLevels: o = [2],
1535
+ height: c = "calc(100vh - 120px)",
1536
+ markdownComponents: a,
1537
+ renderMarkdown: r
1538
+ }) {
1539
+ const i = De() ? xe() : null, d = H(null), f = H(null), g = H(""), p = H(null), [h, k] = z(""), [v, A] = z(0), b = q(() => Ve(e), [e]), S = q(
1540
+ () => b.filter((u) => o.includes(u.level)),
1541
+ [b, o]
1542
+ );
1543
+ D(() => {
1544
+ const u = () => A((y) => y + 1);
1545
+ return he.add(u), () => {
1546
+ he.delete(u);
1547
+ };
1548
+ }, []);
1549
+ const w = (u) => {
1550
+ g.current = u, p.current && clearTimeout(p.current), p.current = setTimeout(() => {
1551
+ g.current = "";
1552
+ }, 700);
1553
+ };
1554
+ D(() => () => {
1555
+ p.current && clearTimeout(p.current);
1556
+ }, []), Re(() => {
1557
+ const u = d.current;
1558
+ if (!u) return;
1559
+ const y = Array.from(u.querySelectorAll("h1, h2, h3"));
1560
+ b.forEach((R, $) => {
1561
+ const W = y[$];
1562
+ W && (W.id !== R.id && (W.id = R.id), W.setAttribute("data-anchor", R.id));
1563
+ });
1564
+ }, [b, v, r]), D(() => {
1565
+ const u = d.current;
1566
+ if (!u) return;
1567
+ const y = Array.from(u.querySelectorAll("h1, h2, h3"));
1568
+ if (!y.length) return;
1569
+ const R = () => {
1570
+ const Q = u.getBoundingClientRect().top;
1571
+ let oe = y[0];
1572
+ for (const le of y)
1573
+ if (le.getBoundingClientRect().top - Q <= fe) oe = le;
1574
+ else break;
1575
+ g.current || k(oe.id);
1576
+ }, $ = new IntersectionObserver(R, {
1577
+ root: u,
1578
+ rootMargin: `-${fe}px 0px 0px 0px`,
1579
+ threshold: 0
1580
+ });
1581
+ y.forEach((Q) => $.observe(Q)), R();
1582
+ const W = () => {
1583
+ g.current = "";
1584
+ };
1585
+ return u.addEventListener("scrollend", W), () => {
1586
+ $.disconnect(), u.removeEventListener("scrollend", W);
1587
+ };
1588
+ }, [b, v, r]), D(() => {
1589
+ const u = f.current;
1590
+ if (!u || !h) return;
1591
+ const y = u.querySelector(`[data-toc-id="${ge(h)}"]`);
1592
+ if (!y) return;
1593
+ const R = u.getBoundingClientRect(), $ = y.getBoundingClientRect();
1594
+ ($.top < R.top + 24 || $.bottom > R.bottom - 24) && y.scrollIntoView({ block: "nearest", behavior: "smooth" });
1595
+ }, [h]);
1596
+ const L = (u) => {
1597
+ const y = d.current;
1598
+ return y && y.querySelector(`[data-anchor="${ge(u)}"]`) || (typeof document < "u" ? document.getElementById(u) : null);
1599
+ }, P = (u, y) => {
1600
+ u.preventDefault(), w(y), ue(L(y)), k(y);
1601
+ }, G = (u, y) => {
1602
+ u.preventDefault(), w(y), ue(L(y)), k(y);
1603
+ }, U = q(
1604
+ () => tt({
1605
+ navigate: i,
1606
+ Prism: pe,
1607
+ oneDark: pe,
1608
+ onAnchorClick: G
1609
+ }),
1610
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1611
+ [i, v]
1612
+ ), j = q(
1613
+ () => ({ ...U, ...a || {} }),
1614
+ [U, a]
1615
+ ), J = () => !e || !String(e).trim() ? /* @__PURE__ */ t(
1616
+ ne,
1617
+ {
1618
+ title: "暂无文档",
1619
+ description: "把组件说明写成 DOC.md,用编译期 import 的字符串传给 ComponentDoc 即可"
1620
+ }
1621
+ ) : r ? r({ markdown: e, components: j }) : /* @__PURE__ */ t(Ce, { children: et(e, j) });
1622
+ return /* @__PURE__ */ m("div", { style: { display: "flex", flexDirection: "column", minHeight: 0, flex: 1 }, children: [
1623
+ /* @__PURE__ */ t("style", { children: Ye }),
1624
+ n ? /* @__PURE__ */ t(ve, { title: n }) : null,
1625
+ /* @__PURE__ */ m("div", { style: { display: "flex", gap: 16, alignItems: "flex-start", minHeight: 0 }, children: [
1626
+ /* @__PURE__ */ m(
1627
+ "aside",
1628
+ {
1629
+ ref: f,
1630
+ style: {
1631
+ width: s,
1632
+ flexShrink: 0,
1633
+ position: "sticky",
1634
+ top: 12,
1635
+ alignSelf: "flex-start",
1636
+ maxHeight: c,
1637
+ overflowY: "auto",
1638
+ padding: "8px 8px 12px",
1639
+ background: x.surface,
1640
+ border: `1px solid ${x.border}`,
1641
+ borderRadius: C.sm
1642
+ },
1643
+ children: [
1644
+ /* @__PURE__ */ m("div", { style: {
1645
+ display: "flex",
1646
+ alignItems: "center",
1647
+ gap: 6,
1648
+ fontSize: 12,
1649
+ color: x.textMuted,
1650
+ marginBottom: 8,
1651
+ padding: "0 4px"
1652
+ }, children: [
1653
+ /* @__PURE__ */ t(Be, {}),
1654
+ /* @__PURE__ */ t("span", { style: { fontWeight: 600 }, children: "本文目录" })
1655
+ ] }),
1656
+ /* @__PURE__ */ t("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: S.map((u) => {
1657
+ const y = h === u.id;
1658
+ return /* @__PURE__ */ t("li", { "data-toc-id": u.id, children: /* @__PURE__ */ t(
1659
+ "a",
1660
+ {
1661
+ href: "#" + u.id,
1662
+ onClick: (R) => P(R, u.id),
1663
+ style: {
1664
+ display: "block",
1665
+ padding: "6px 10px",
1666
+ borderLeft: `3px solid ${y ? M.token.colorPrimary : "transparent"}`,
1667
+ background: y ? T.primarySoft : "transparent",
1668
+ color: y ? M.token.colorPrimary : "#475569",
1669
+ fontWeight: y ? 600 : 400,
1670
+ fontSize: 13,
1671
+ lineHeight: 1.5,
1672
+ textDecoration: "none",
1673
+ borderRadius: y ? "0 4px 4px 0" : 4,
1674
+ transition: "all 120ms ease",
1675
+ whiteSpace: "nowrap",
1676
+ overflow: "hidden",
1677
+ textOverflow: "ellipsis"
1678
+ },
1679
+ children: u.text
1680
+ }
1681
+ ) }, u.id);
1682
+ }) })
1683
+ ]
1684
+ }
1685
+ ),
1686
+ /* @__PURE__ */ t(
1687
+ "article",
1688
+ {
1689
+ ref: d,
1690
+ style: {
1691
+ flex: 1,
1692
+ minWidth: 0,
1693
+ background: x.surface,
1694
+ border: `1px solid ${x.border}`,
1695
+ borderRadius: C.sm,
1696
+ padding: "24px 32px",
1697
+ lineHeight: 1.75,
1698
+ color: x.text,
1699
+ overflowY: c === "auto" ? "visible" : "auto",
1700
+ maxHeight: c === "auto" ? "none" : c
1701
+ },
1702
+ children: J()
1703
+ }
1704
+ )
1705
+ ] })
1706
+ ] });
1707
+ }
1708
+ export {
1709
+ Le as C,
1710
+ Ne as D,
1711
+ ne as E,
1712
+ dt as F,
1713
+ st as G,
1714
+ ut as L,
1715
+ ve as P,
1716
+ ht as R,
1717
+ We as S,
1718
+ pt as T,
1719
+ yt as a,
1720
+ ft as b,
1721
+ $e as c,
1722
+ gt as d,
1723
+ mt as e,
1724
+ ct as f,
1725
+ bt as g,
1726
+ M as h,
1727
+ T as i,
1728
+ Me as j,
1729
+ de as k,
1730
+ at as l,
1731
+ N as m,
1732
+ x as n,
1733
+ E as p,
1734
+ C as r,
1735
+ B as s,
1736
+ He as u
1737
+ };