@wandox/sdk 0.1.36 → 0.1.38

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 (109) hide show
  1. package/dist/{V1Workbench-BTDED9f0.js → V1Workbench-CX2TY1nY.js} +207 -208
  2. package/dist/{V1Workbench-dkHeo8tR.cjs → V1Workbench-D4MDOCK8.cjs} +3 -3
  3. package/dist/V2Workbench-3OIxKrwT.cjs +2 -0
  4. package/dist/V2Workbench-B9hpG29_.js +2674 -0
  5. package/dist/{WorkbenchRuntime-C-WMn1Qs.cjs → WorkbenchRuntime-CcgVGiw7.cjs} +5 -5
  6. package/dist/{WorkbenchRuntime-DwnSaeU0.js → WorkbenchRuntime-DFoqujXl.js} +151 -145
  7. package/dist/{arc-DnAFTAlx.cjs → arc-BoXgqEyE.cjs} +1 -1
  8. package/dist/{arc-lrZAmC97.js → arc-DRkZQWMH.js} +1 -1
  9. package/dist/{architectureDiagram-3BPJPVTR-qSATMtIu.js → architectureDiagram-3BPJPVTR-Cvjm2RUg.js} +3 -3
  10. package/dist/{architectureDiagram-3BPJPVTR-CPhTU6Eo.cjs → architectureDiagram-3BPJPVTR-JB1cjWXS.cjs} +1 -1
  11. package/dist/{blockDiagram-GPEHLZMM-XVMF04BT.cjs → blockDiagram-GPEHLZMM-BMrbXpB3.cjs} +1 -1
  12. package/dist/{blockDiagram-GPEHLZMM-CDwrkiVy.js → blockDiagram-GPEHLZMM-LAE7xfhz.js} +3 -3
  13. package/dist/{c4Diagram-AAUBKEIU-CGowpJup.js → c4Diagram-AAUBKEIU-CZcPU-n2.js} +2 -2
  14. package/dist/{c4Diagram-AAUBKEIU-DffwDzj1.cjs → c4Diagram-AAUBKEIU-T_tWuHKf.cjs} +1 -1
  15. package/dist/{channel-CY7r6qlF.js → channel-B8LPCyPH.js} +1 -1
  16. package/dist/{channel-BXFE-BpN.cjs → channel-BaiWA2t8.cjs} +1 -1
  17. package/dist/{chunk-2J33WTMH-D4rEqGzt.cjs → chunk-2J33WTMH-BibdqHFp.cjs} +1 -1
  18. package/dist/{chunk-2J33WTMH-DuCYldMe.js → chunk-2J33WTMH-C5be9lBd.js} +1 -1
  19. package/dist/{chunk-4BX2VUAB-BsCUMKlS.cjs → chunk-4BX2VUAB-D0KvmKPe.cjs} +1 -1
  20. package/dist/{chunk-4BX2VUAB-Cxp0_Qfx.js → chunk-4BX2VUAB-DMFsq4KZ.js} +1 -1
  21. package/dist/{chunk-55IACEB6-XDcbyyvP.cjs → chunk-55IACEB6-CqaRoYMg.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-BLJmAN4x.js → chunk-55IACEB6-DmSQDD1d.js} +1 -1
  23. package/dist/{chunk-727SXJPM-1bTbq9QM.cjs → chunk-727SXJPM-slxRZHEn.cjs} +1 -1
  24. package/dist/{chunk-727SXJPM-BjPhiU2p.js → chunk-727SXJPM-zPDeBLwO.js} +5 -5
  25. package/dist/{chunk-AQP2D5EJ-CGe-fbI_.js → chunk-AQP2D5EJ-CAbt8thT.js} +3 -3
  26. package/dist/{chunk-AQP2D5EJ-EH5FWOXH.cjs → chunk-AQP2D5EJ-DInpQ3Bk.cjs} +1 -1
  27. package/dist/{chunk-FMBD7UC4-BEhZw-9x.cjs → chunk-FMBD7UC4-7r_t9A1F.cjs} +1 -1
  28. package/dist/{chunk-FMBD7UC4-BrTtqwn9.js → chunk-FMBD7UC4-IX1Bs9Jl.js} +1 -1
  29. package/dist/{chunk-ND2GUHAM-C22ALL-1.js → chunk-ND2GUHAM-BDBw_eej.js} +1 -1
  30. package/dist/{chunk-ND2GUHAM-CTAo-Gfu.cjs → chunk-ND2GUHAM-BKWetS2i.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-R1cC06zp.cjs → chunk-QZHKN3VN-CaXwA0Ch.cjs} +1 -1
  32. package/dist/{chunk-QZHKN3VN-C_Ih-bcC.js → chunk-QZHKN3VN-DYLGrKqP.js} +1 -1
  33. package/dist/{classDiagram-4FO5ZUOK-C_wQW8PQ.js → classDiagram-4FO5ZUOK-BfPbGLow.js} +2 -2
  34. package/dist/{classDiagram-4FO5ZUOK-scM2IOJa.cjs → classDiagram-4FO5ZUOK-C8Col58-.cjs} +1 -1
  35. package/dist/{classDiagram-v2-Q7XG4LA2-B0_wL31A.js → classDiagram-v2-Q7XG4LA2-BBAMvpEX.js} +2 -2
  36. package/dist/{classDiagram-v2-Q7XG4LA2-scM2IOJa.cjs → classDiagram-v2-Q7XG4LA2-C8Col58-.cjs} +1 -1
  37. package/dist/{cose-bilkent-S5V4N54A-DpRpmxlF.cjs → cose-bilkent-S5V4N54A-BAGhd7Pv.cjs} +1 -1
  38. package/dist/{cose-bilkent-S5V4N54A-DXGf68xP.js → cose-bilkent-S5V4N54A-BWdSLpNe.js} +6 -6
  39. package/dist/{dagre-BM42HDAG-DAmZKlMa.js → dagre-BM42HDAG-BeqXhsH3.js} +1 -1
  40. package/dist/{dagre-BM42HDAG-Bllljh6b.cjs → dagre-BM42HDAG-Bx9eEuWz.cjs} +1 -1
  41. package/dist/{diagram-2AECGRRQ-BtVZDvFi.cjs → diagram-2AECGRRQ-C1_rnEMZ.cjs} +1 -1
  42. package/dist/{diagram-2AECGRRQ-e4xTSyXB.js → diagram-2AECGRRQ-CD5HRvtt.js} +2 -2
  43. package/dist/{diagram-5GNKFQAL-DDznFCpC.cjs → diagram-5GNKFQAL-BGP7CKfK.cjs} +1 -1
  44. package/dist/{diagram-5GNKFQAL-B57ntKRP.js → diagram-5GNKFQAL-hnwUnNop.js} +3 -3
  45. package/dist/{diagram-KO2AKTUF-CZHRsaEN.js → diagram-KO2AKTUF-C-lTMkbh.js} +2 -2
  46. package/dist/{diagram-KO2AKTUF-B1_pEYsh.cjs → diagram-KO2AKTUF-Cj5RbuFk.cjs} +1 -1
  47. package/dist/{diagram-LMA3HP47-Dw1iJ4GY.js → diagram-LMA3HP47-DNNxuzUF.js} +2 -2
  48. package/dist/{diagram-LMA3HP47-DCOfsSfF.cjs → diagram-LMA3HP47-qynJFlE9.cjs} +1 -1
  49. package/dist/{diagram-OG6HWLK6-C9iJ1_vk.cjs → diagram-OG6HWLK6-BEw06BpQ.cjs} +1 -1
  50. package/dist/{diagram-OG6HWLK6-DBRyn55R.js → diagram-OG6HWLK6-D-mFnPam.js} +3 -3
  51. package/dist/{erDiagram-TEJ5UH35-CwU_D9zQ.js → erDiagram-TEJ5UH35-DlHPKqjs.js} +4 -4
  52. package/dist/{erDiagram-TEJ5UH35-CQLcSzGq.cjs → erDiagram-TEJ5UH35-ihaFG4EG.cjs} +1 -1
  53. package/dist/{flowDiagram-I6XJVG4X-DeoNy8j_.js → flowDiagram-I6XJVG4X-D7D28W3h.js} +6 -6
  54. package/dist/{flowDiagram-I6XJVG4X-BXfh71rU.cjs → flowDiagram-I6XJVG4X-Rn9cXbM4.cjs} +1 -1
  55. package/dist/{ganttDiagram-6RSMTGT7-zl3WHbE2.cjs → ganttDiagram-6RSMTGT7-BpYlzTOm.cjs} +1 -1
  56. package/dist/{ganttDiagram-6RSMTGT7-Df26R8Yw.js → ganttDiagram-6RSMTGT7-C3CGnJzh.js} +3 -3
  57. package/dist/{gitGraphDiagram-PVQCEYII-D4lV7Wyt.js → gitGraphDiagram-PVQCEYII-CM_EMfS6.js} +3 -3
  58. package/dist/{gitGraphDiagram-PVQCEYII-B1DCGlgk.cjs → gitGraphDiagram-PVQCEYII-DR7ogqPB.cjs} +1 -1
  59. package/dist/index-B86Di0kD.js +2820 -0
  60. package/dist/index-Mn9BkUmO.cjs +1 -0
  61. package/dist/{index-Fogne5nt.cjs → index-OiJ3pN8N.cjs} +182 -182
  62. package/dist/{index-B7ymMLUP.js → index-RR6eNszd.js} +677 -673
  63. package/dist/{infoDiagram-5YYISTIA-CQzoD1R6.cjs → infoDiagram-5YYISTIA-CIxPF8Ny.cjs} +1 -1
  64. package/dist/{infoDiagram-5YYISTIA-BVUPRn39.js → infoDiagram-5YYISTIA-DeiTjOtd.js} +1 -1
  65. package/dist/{ishikawaDiagram-YF4QCWOH-B2szA0Bd.cjs → ishikawaDiagram-YF4QCWOH-1xm7obKK.cjs} +1 -1
  66. package/dist/{ishikawaDiagram-YF4QCWOH-D-w9d_mh.js → ishikawaDiagram-YF4QCWOH-D5sHNiN0.js} +1 -1
  67. package/dist/{journeyDiagram-JHISSGLW-DvxAjmWW.js → journeyDiagram-JHISSGLW-B7vkaR-O.js} +4 -4
  68. package/dist/{journeyDiagram-JHISSGLW-BlZOXaNG.cjs → journeyDiagram-JHISSGLW-Bj3pR1r8.cjs} +1 -1
  69. package/dist/{kanban-definition-UN3LZRKU-uWpfk339.cjs → kanban-definition-UN3LZRKU-C2BvNLvg.cjs} +1 -1
  70. package/dist/{kanban-definition-UN3LZRKU-3ITzwD_V.js → kanban-definition-UN3LZRKU-SSN_awCf.js} +2 -2
  71. package/dist/{linear-xTyNvSvf.cjs → linear-BPGTGVZF.cjs} +1 -1
  72. package/dist/{linear-h0PKX5pS.js → linear-CrtlOpJC.js} +1 -1
  73. package/dist/{mermaid.core-B-oz1JHo.js → mermaid.core-BMFdNVmT.js} +35 -35
  74. package/dist/{mermaid.core-BNCrNPF3.cjs → mermaid.core-CzUM8ZFm.cjs} +3 -3
  75. package/dist/{mindmap-definition-RKZ34NQL-CP2xdC8i.cjs → mindmap-definition-RKZ34NQL-BzoMooEA.cjs} +1 -1
  76. package/dist/{mindmap-definition-RKZ34NQL-iv6ScGf8.js → mindmap-definition-RKZ34NQL-CQ_AvUYl.js} +3 -3
  77. package/dist/{pieDiagram-4H26LBE5-DBlTRpYF.cjs → pieDiagram-4H26LBE5--B008aOr.cjs} +1 -1
  78. package/dist/{pieDiagram-4H26LBE5-DG5ob37D.js → pieDiagram-4H26LBE5-DZA6EYmY.js} +3 -3
  79. package/dist/{quadrantDiagram-W4KKPZXB-BIJcQpbE.cjs → quadrantDiagram-W4KKPZXB-CUgU7n5W.cjs} +1 -1
  80. package/dist/{quadrantDiagram-W4KKPZXB-gdLXyrgM.js → quadrantDiagram-W4KKPZXB-DkJ_1r5Q.js} +2 -2
  81. package/dist/{requirementDiagram-4Y6WPE33-BZupS8ve.cjs → requirementDiagram-4Y6WPE33-C9c_OdBu.cjs} +1 -1
  82. package/dist/{requirementDiagram-4Y6WPE33-Devp3bFn.js → requirementDiagram-4Y6WPE33-D-Rhgay0.js} +3 -3
  83. package/dist/{sankeyDiagram-5OEKKPKP-YmUkqYvM.cjs → sankeyDiagram-5OEKKPKP-CjqPY4DA.cjs} +1 -1
  84. package/dist/{sankeyDiagram-5OEKKPKP-DclF12AE.js → sankeyDiagram-5OEKKPKP-D4c7ZW3L.js} +1 -1
  85. package/dist/{sequenceDiagram-3UESZ5HK-Bp3v1G4L.js → sequenceDiagram-3UESZ5HK-BFZ_dS_o.js} +3 -3
  86. package/dist/{sequenceDiagram-3UESZ5HK-Cc6KiFLH.cjs → sequenceDiagram-3UESZ5HK-CvSm5Cdr.cjs} +1 -1
  87. package/dist/{stateDiagram-AJRCARHV-DzpR85VO.js → stateDiagram-AJRCARHV-_zVtg-ny.js} +2 -2
  88. package/dist/{stateDiagram-AJRCARHV-BhKrmX4f.cjs → stateDiagram-AJRCARHV-l6UNFX0d.cjs} +1 -1
  89. package/dist/{stateDiagram-v2-BHNVJYJU-C0Aq_ia1.cjs → stateDiagram-v2-BHNVJYJU-RSGFy9G6.cjs} +1 -1
  90. package/dist/{stateDiagram-v2-BHNVJYJU-DwsxsR-W.js → stateDiagram-v2-BHNVJYJU-eyWoWwdr.js} +2 -2
  91. package/dist/{timeline-definition-PNZ67QCA-B87x3yay.js → timeline-definition-PNZ67QCA-B9ePHeNX.js} +2 -2
  92. package/dist/{timeline-definition-PNZ67QCA-AdSmOXjp.cjs → timeline-definition-PNZ67QCA-Dz0DlRBT.cjs} +1 -1
  93. package/dist/{vennDiagram-CIIHVFJN-CLpzW4Nc.cjs → vennDiagram-CIIHVFJN-DB7dFqUU.cjs} +1 -1
  94. package/dist/{vennDiagram-CIIHVFJN-GqWq5zHi.js → vennDiagram-CIIHVFJN-DTMVqRLj.js} +1 -1
  95. package/dist/wandox.cjs +1 -1
  96. package/dist/wandox.css +1 -1
  97. package/dist/wandox.js +3 -3
  98. package/dist/wandox.umd.js +642 -642
  99. package/dist/{wardleyDiagram-YWT4CUSO-5_EScJ4X.js → wardleyDiagram-YWT4CUSO-CLgLoevL.js} +2 -2
  100. package/dist/{wardleyDiagram-YWT4CUSO-Cls7iV6P.cjs → wardleyDiagram-YWT4CUSO-llCStOjH.cjs} +1 -1
  101. package/dist/{xychartDiagram-2RQKCTM6-DbdkH607.js → xychartDiagram-2RQKCTM6-B9AnuRIT.js} +2 -2
  102. package/dist/{xychartDiagram-2RQKCTM6-D8JYg9fO.cjs → xychartDiagram-2RQKCTM6-Co8C1pBL.cjs} +1 -1
  103. package/package.json +1 -1
  104. package/dist/V2Workbench-P9muvE1U.js +0 -2170
  105. package/dist/V2Workbench-Un5ZzXV7.cjs +0 -2
  106. package/dist/index-B6ippZgO.js +0 -2520
  107. package/dist/index-C5MgqruW.js +0 -307
  108. package/dist/index-CgghWcty.cjs +0 -1
  109. package/dist/index-D2f85EfC.cjs +0 -1
@@ -0,0 +1,2820 @@
1
+ import { cr as De, d5 as Be, dS as W, dw as Ue, dY as we, ed as Ye, dt as r, e8 as tt, e5 as ze, b$ as y, dZ as ot, dl as Ce, d$ as Ee, em as nt, e4 as it, aY as ce, j as Oe, e3 as Le, aU as rt, dX as at, dm as Ae, bA as lt, cq as st, e1 as ct, e9 as dt, c3 as mt, eg as pt, e6 as ut, e0 as gt, u as ht, en as $t, cR as Fe, s as ft, ak as Xe, cp as G, dL as bt, dV as vt, bG as St, bL as xt, bQ as yt, a_ as Ct, b2 as wt, dG as fo } from "./index-RR6eNszd.js";
2
+ import { b as yo, c as Co, B as wo, i as zo, k as Io, p as No, q as Eo, r as Po, t as Ro, H as Mo, I as To, J as Do, L as Bo, N as Ho, ag as Wo, ai as ko, bN as Oo, ao as Lo, aq as Ao, aN as Fo, aS as Xo, aT as qo, aV as jo, aX as _o, bt as Go, by as Uo, bz as Yo, bB as Vo, bC as Ko, bD as Zo, bF as Qo, O as Jo, bH as en, bI as tn, bK as on, bM as nn, bO as rn, bP as an, dH as ln, ei as sn } from "./index-RR6eNszd.js";
3
+ const zt = (t) => {
4
+ const {
5
+ componentCls: e
6
+ } = t;
7
+ return {
8
+ [e]: {
9
+ "&-horizontal": {
10
+ [`&${e}`]: {
11
+ "&-sm": {
12
+ marginBlock: t.marginXS
13
+ },
14
+ "&-md": {
15
+ marginBlock: t.margin
16
+ }
17
+ }
18
+ }
19
+ }
20
+ };
21
+ }, It = (t) => {
22
+ const {
23
+ componentCls: e,
24
+ sizePaddingEdgeHorizontal: o,
25
+ colorSplit: n,
26
+ lineWidth: a,
27
+ textPaddingInline: c,
28
+ orientationMargin: s,
29
+ verticalMarginInline: $
30
+ } = t, m = `${e}-rail`;
31
+ return {
32
+ [e]: {
33
+ ...Ue(t),
34
+ borderBlockStart: `${W(a)} solid ${n}`,
35
+ [m]: {
36
+ borderBlockStart: `${W(a)} solid ${n}`
37
+ },
38
+ // vertical
39
+ "&-vertical": {
40
+ position: "relative",
41
+ top: "-0.06em",
42
+ display: "inline-block",
43
+ height: "0.9em",
44
+ marginInline: $,
45
+ marginBlock: 0,
46
+ verticalAlign: "middle",
47
+ borderTop: 0,
48
+ borderInlineStart: `${W(a)} solid ${n}`
49
+ },
50
+ "&-horizontal": {
51
+ display: "flex",
52
+ clear: "both",
53
+ width: "100%",
54
+ minWidth: "100%",
55
+ // Fix https://github.com/ant-design/ant-design/issues/10914
56
+ margin: `${W(t.marginLG)} 0`
57
+ },
58
+ [`&-horizontal${e}-with-text`]: {
59
+ display: "flex",
60
+ alignItems: "center",
61
+ margin: `${W(t.dividerHorizontalWithTextGutterMargin)} 0`,
62
+ color: t.colorTextHeading,
63
+ fontWeight: 500,
64
+ fontSize: t.fontSizeLG,
65
+ whiteSpace: "nowrap",
66
+ textAlign: "center",
67
+ borderBlockStart: `0 ${n}`,
68
+ [`${m}-start, ${m}-end`]: {
69
+ width: "50%",
70
+ // Chrome not accept `inherit` in `border-top`
71
+ borderBlockStartColor: "inherit",
72
+ borderBlockEnd: 0,
73
+ content: "''"
74
+ }
75
+ },
76
+ [`&-horizontal${e}-with-text-start`]: {
77
+ [`${m}-start`]: {
78
+ width: `calc(${s} * 100%)`
79
+ },
80
+ [`${m}-end`]: {
81
+ width: `calc(100% - ${s} * 100%)`
82
+ }
83
+ },
84
+ [`&-horizontal${e}-with-text-end`]: {
85
+ [`${m}-start`]: {
86
+ width: `calc(100% - ${s} * 100%)`
87
+ },
88
+ [`${m}-end`]: {
89
+ width: `calc(${s} * 100%)`
90
+ }
91
+ },
92
+ [`${e}-inner-text`]: {
93
+ display: "inline-block",
94
+ paddingBlock: 0,
95
+ paddingInline: c
96
+ },
97
+ "&-dashed": {
98
+ background: "none",
99
+ borderColor: n,
100
+ borderStyle: "dashed",
101
+ borderWidth: `${W(a)} 0 0`,
102
+ [m]: {
103
+ borderBlockStart: `${W(a)} dashed ${n}`
104
+ }
105
+ },
106
+ [`&-horizontal${e}-with-text${e}-dashed`]: {
107
+ [`${m}-start, ${m}-end`]: {
108
+ borderStyle: "dashed none none"
109
+ }
110
+ },
111
+ [`&-vertical${e}-dashed`]: {
112
+ borderInlineStartWidth: a,
113
+ borderInlineEnd: 0,
114
+ borderBlockStart: 0,
115
+ borderBlockEnd: 0
116
+ },
117
+ "&-dotted": {
118
+ background: "none",
119
+ borderColor: n,
120
+ borderStyle: "dotted",
121
+ borderWidth: `${W(a)} 0 0`,
122
+ [m]: {
123
+ borderBlockStart: `${W(a)} dotted ${n}`
124
+ }
125
+ },
126
+ [`&-horizontal${e}-with-text${e}-dotted`]: {
127
+ "&::before, &::after": {
128
+ borderStyle: "dotted none none"
129
+ }
130
+ },
131
+ [`&-vertical${e}-dotted`]: {
132
+ borderInlineStartWidth: a,
133
+ borderInlineEnd: 0,
134
+ borderBlockStart: 0,
135
+ borderBlockEnd: 0
136
+ },
137
+ [`&-plain${e}-with-text`]: {
138
+ color: t.colorText,
139
+ fontWeight: "normal",
140
+ fontSize: t.fontSize
141
+ },
142
+ [`&-horizontal${e}-with-text-start${e}-no-default-orientation-margin-start`]: {
143
+ [`${m}-start`]: {
144
+ width: 0
145
+ },
146
+ [`${m}-end`]: {
147
+ width: "100%"
148
+ },
149
+ [`${e}-inner-text`]: {
150
+ paddingInlineStart: o
151
+ }
152
+ },
153
+ [`&-horizontal${e}-with-text-end${e}-no-default-orientation-margin-end`]: {
154
+ [`${m}-start`]: {
155
+ width: "100%"
156
+ },
157
+ [`${m}-end`]: {
158
+ width: 0
159
+ },
160
+ [`${e}-inner-text`]: {
161
+ paddingInlineEnd: o
162
+ }
163
+ }
164
+ }
165
+ };
166
+ }, Nt = (t) => ({
167
+ textPaddingInline: "1em",
168
+ orientationMargin: 0.05,
169
+ verticalMarginInline: t.marginXS
170
+ }), Et = De("Divider", (t) => {
171
+ const e = Be(t, {
172
+ dividerHorizontalWithTextGutterMargin: t.margin,
173
+ sizePaddingEdgeHorizontal: 0
174
+ });
175
+ return [It(e), zt(e)];
176
+ }, Nt, {
177
+ unitless: {
178
+ orientationMargin: !0
179
+ }
180
+ }), Pt = ["left", "right", "center", "start", "end"], Rt = {
181
+ small: "sm",
182
+ middle: "md"
183
+ }, bo = (t) => {
184
+ const {
185
+ getPrefixCls: e,
186
+ direction: o,
187
+ className: n,
188
+ style: a,
189
+ classNames: c,
190
+ styles: s
191
+ } = we("divider"), {
192
+ prefixCls: $,
193
+ type: m,
194
+ orientation: d,
195
+ vertical: l,
196
+ titlePlacement: g,
197
+ orientationMargin: p,
198
+ className: u,
199
+ rootClassName: S,
200
+ children: I,
201
+ dashed: C,
202
+ variant: z = "solid",
203
+ plain: R,
204
+ style: h,
205
+ size: i,
206
+ classNames: f,
207
+ styles: N,
208
+ ...w
209
+ } = t, b = e("divider", $), x = `${b}-rail`, [M, v] = Et(b), A = Ye(i), q = Rt[A], L = !!I, B = Pt.includes(d || ""), T = r.useMemo(() => {
210
+ const Z = g ?? (B ? d : "center");
211
+ return Z === "left" ? o === "rtl" ? "end" : "start" : Z === "right" ? o === "rtl" ? "start" : "end" : Z;
212
+ }, [o, d, g, B]), P = T === "start" && p != null, j = T === "end" && p != null, [U, D] = tt(d, l, m), Y = {
213
+ ...t,
214
+ orientation: U,
215
+ titlePlacement: T,
216
+ size: A
217
+ }, [F, k] = ze([c, f], [s, N], {
218
+ props: Y
219
+ }), X = y(b, n, M, v, `${b}-${U}`, {
220
+ [`${b}-with-text`]: L,
221
+ [`${b}-with-text-${T}`]: L,
222
+ [`${b}-dashed`]: !!C,
223
+ [`${b}-${z}`]: z !== "solid",
224
+ [`${b}-plain`]: !!R,
225
+ [`${b}-rtl`]: o === "rtl",
226
+ [`${b}-no-default-orientation-margin-start`]: P,
227
+ [`${b}-no-default-orientation-margin-end`]: j,
228
+ [`${b}-${q}`]: !!q,
229
+ [x]: !I,
230
+ [F.rail]: F.rail && !I
231
+ }, u, S, F.root), H = r.useMemo(() => typeof p == "number" ? p : /^\d+$/.test(p) ? Number(p) : p, [p]), oe = {
232
+ marginInlineStart: P ? H : void 0,
233
+ marginInlineEnd: j ? H : void 0
234
+ };
235
+ return /* @__PURE__ */ r.createElement("div", {
236
+ className: X,
237
+ style: {
238
+ ...a,
239
+ ...k.root,
240
+ ...I ? {} : k.rail,
241
+ ...h
242
+ },
243
+ ...w,
244
+ role: "separator"
245
+ }, I && !D && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", {
246
+ className: y(x, `${x}-start`, F.rail),
247
+ style: k.rail
248
+ }), /* @__PURE__ */ r.createElement("span", {
249
+ className: y(`${b}-inner-text`, F.content),
250
+ style: {
251
+ ...oe,
252
+ ...k.content
253
+ }
254
+ }, I), /* @__PURE__ */ r.createElement("div", {
255
+ className: y(x, `${x}-end`, F.rail),
256
+ style: k.rail
257
+ })));
258
+ }, qe = /* @__PURE__ */ r.createContext(null), Ve = /* @__PURE__ */ r.createContext({});
259
+ function Pe() {
260
+ return Pe = Object.assign ? Object.assign.bind() : function(t) {
261
+ for (var e = 1; e < arguments.length; e++) {
262
+ var o = arguments[e];
263
+ for (var n in o)
264
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
265
+ }
266
+ return t;
267
+ }, Pe.apply(this, arguments);
268
+ }
269
+ const Mt = (t) => {
270
+ const {
271
+ prefixCls: e,
272
+ className: o,
273
+ containerRef: n,
274
+ ...a
275
+ } = t, {
276
+ panel: c
277
+ } = r.useContext(Ve), s = ot(c, n);
278
+ return /* @__PURE__ */ r.createElement("div", Pe({
279
+ className: y(`${e}-section`, o),
280
+ role: "dialog",
281
+ ref: s
282
+ }, Ce(t, {
283
+ aria: !0
284
+ }), {
285
+ "aria-modal": "true"
286
+ }, a));
287
+ };
288
+ function Tt(t) {
289
+ const {
290
+ prefixCls: e,
291
+ direction: o,
292
+ className: n,
293
+ style: a,
294
+ maxSize: c,
295
+ containerRef: s,
296
+ currentSize: $,
297
+ onResize: m,
298
+ onResizeEnd: d,
299
+ onResizeStart: l
300
+ } = t, [g, p] = r.useState(!1), [u, S] = r.useState(0), [I, C] = r.useState(0), z = o === "left" || o === "right", R = Ee((N) => {
301
+ N.preventDefault(), N.stopPropagation(), p(!0), S(z ? N.clientX : N.clientY);
302
+ let w;
303
+ if (typeof $ == "number")
304
+ w = $;
305
+ else if (s != null && s.current) {
306
+ const b = s.current.getBoundingClientRect();
307
+ w = z ? b.width : b.height;
308
+ }
309
+ C(w), l == null || l(w);
310
+ }), h = Ee((N) => {
311
+ if (!g) return;
312
+ let b = (z ? N.clientX : N.clientY) - u;
313
+ (o === "right" || o === "bottom") && (b = -b);
314
+ let x = I + b;
315
+ x < 0 && (x = 0), c && x > c && (x = c), m == null || m(x);
316
+ }), i = r.useCallback(() => {
317
+ if (g && (p(!1), s != null && s.current)) {
318
+ const N = s.current.getBoundingClientRect(), w = z ? N.width : N.height;
319
+ d == null || d(w);
320
+ }
321
+ }, [g, s, d, z]);
322
+ return r.useEffect(() => {
323
+ if (g)
324
+ return document.addEventListener("mousemove", h), document.addEventListener("mouseup", i), () => {
325
+ document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", i);
326
+ };
327
+ }, [g, h, i]), {
328
+ dragElementProps: {
329
+ className: y(`${e}-dragger`, `${e}-dragger-${o}`, {
330
+ [`${e}-dragger-dragging`]: g,
331
+ [`${e}-dragger-horizontal`]: z,
332
+ [`${e}-dragger-vertical`]: !z
333
+ }, n),
334
+ style: a,
335
+ onMouseDown: R
336
+ },
337
+ isDragging: g
338
+ };
339
+ }
340
+ function Ie(t) {
341
+ if (typeof t == "string") {
342
+ const e = Number(t.replace(/px$/i, ""));
343
+ if (parseFloat(t) === e && nt(!1, "Invalid value type of `width` or `height` which should be number type instead."), !Number.isNaN(e))
344
+ return e;
345
+ }
346
+ return t;
347
+ }
348
+ function Dt(t, e, o, n, a) {
349
+ const c = n ?? a !== !1, [s] = it(e && c, t);
350
+ return ce.useEffect(() => {
351
+ var $;
352
+ e && o === !0 && (($ = t()) == null || $.focus({
353
+ preventScroll: !0
354
+ }));
355
+ }, [e]), s;
356
+ }
357
+ function me() {
358
+ return me = Object.assign ? Object.assign.bind() : function(t) {
359
+ for (var e = 1; e < arguments.length; e++) {
360
+ var o = arguments[e];
361
+ for (var n in o)
362
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
363
+ }
364
+ return t;
365
+ }, me.apply(this, arguments);
366
+ }
367
+ const Bt = (t, e) => {
368
+ const {
369
+ prefixCls: o,
370
+ open: n,
371
+ placement: a,
372
+ inline: c,
373
+ push: s,
374
+ forceRender: $,
375
+ // Focus
376
+ autoFocus: m,
377
+ focusTrap: d,
378
+ // classNames
379
+ classNames: l,
380
+ // Root
381
+ rootClassName: g,
382
+ rootStyle: p,
383
+ zIndex: u,
384
+ // Drawer
385
+ className: S,
386
+ id: I,
387
+ style: C,
388
+ motion: z,
389
+ width: R,
390
+ height: h,
391
+ size: i,
392
+ maxSize: f,
393
+ children: N,
394
+ // Mask
395
+ mask: w,
396
+ maskClosable: b,
397
+ maskMotion: x,
398
+ maskClassName: M,
399
+ maskStyle: v,
400
+ // Events
401
+ afterOpenChange: A,
402
+ onClose: q,
403
+ onMouseEnter: L,
404
+ onMouseOver: B,
405
+ onMouseLeave: T,
406
+ onClick: P,
407
+ onKeyDown: j,
408
+ onKeyUp: U,
409
+ styles: D,
410
+ drawerRender: Y,
411
+ resizable: F,
412
+ defaultSize: k
413
+ } = t, X = r.useRef(null);
414
+ r.useImperativeHandle(e, () => X.current);
415
+ const H = Dt(() => X.current, n, m, d, w), [oe, Z] = r.useState(!1), O = r.useContext(qe);
416
+ let V;
417
+ typeof s == "boolean" ? V = s ? {} : {
418
+ distance: 0
419
+ } : V = s || {};
420
+ const Q = (V == null ? void 0 : V.distance) ?? (O == null ? void 0 : O.pushDistance) ?? 180, J = r.useMemo(() => ({
421
+ pushDistance: Q,
422
+ push: () => {
423
+ Z(!0);
424
+ },
425
+ pull: () => {
426
+ Z(!1);
427
+ }
428
+ }), [Q]);
429
+ r.useEffect(() => {
430
+ var E, _;
431
+ n ? (E = O == null ? void 0 : O.push) == null || E.call(O) : (_ = O == null ? void 0 : O.pull) == null || _.call(O);
432
+ }, [n]), r.useEffect(() => () => {
433
+ var E;
434
+ (E = O == null ? void 0 : O.pull) == null || E.call(O);
435
+ }, []);
436
+ const pe = /* @__PURE__ */ r.createElement(Oe, me({
437
+ key: "mask"
438
+ }, x, {
439
+ visible: w && n
440
+ }), ({
441
+ className: E,
442
+ style: _
443
+ }, se) => /* @__PURE__ */ r.createElement("div", {
444
+ className: y(`${o}-mask`, E, l == null ? void 0 : l.mask, M),
445
+ style: {
446
+ ..._,
447
+ ...v,
448
+ ...D == null ? void 0 : D.mask
449
+ },
450
+ onClick: b && n ? q : void 0,
451
+ ref: se
452
+ })), le = typeof z == "function" ? z(a) : z, [de, ue] = r.useState(), ne = a === "left" || a === "right", re = r.useMemo(() => Ie(i ?? (ne ? R : h) ?? de ?? k ?? (ne ? 378 : void 0)), [i, R, h, k, ne, de]), ie = r.useMemo(() => {
453
+ const E = {};
454
+ if (oe && Q)
455
+ switch (a) {
456
+ case "top":
457
+ E.transform = `translateY(${Q}px)`;
458
+ break;
459
+ case "bottom":
460
+ E.transform = `translateY(${-Q}px)`;
461
+ break;
462
+ case "left":
463
+ E.transform = `translateX(${Q}px)`;
464
+ break;
465
+ default:
466
+ E.transform = `translateX(${-Q}px)`;
467
+ break;
468
+ }
469
+ return ne ? E.width = Ie(re) : E.height = Ie(re), E;
470
+ }, [oe, Q, a, ne, re]), te = r.useRef(null), ee = !!F, K = typeof F == "object" && F || {}, ae = Ee((E) => {
471
+ var _;
472
+ ue(E), (_ = K.onResize) == null || _.call(K, E);
473
+ }), {
474
+ dragElementProps: he,
475
+ isDragging: $e
476
+ } = Tt({
477
+ prefixCls: `${o}-resizable`,
478
+ direction: a,
479
+ className: l == null ? void 0 : l.dragger,
480
+ style: D == null ? void 0 : D.dragger,
481
+ maxSize: f,
482
+ containerRef: te,
483
+ currentSize: re,
484
+ onResize: ae,
485
+ onResizeStart: K.onResizeStart,
486
+ onResizeEnd: K.onResizeEnd
487
+ }), fe = {
488
+ onMouseEnter: L,
489
+ onMouseOver: B,
490
+ onMouseLeave: T,
491
+ onClick: P,
492
+ onKeyDown: j,
493
+ onKeyUp: U,
494
+ onFocus: (E) => {
495
+ H(E.target);
496
+ }
497
+ }, be = /* @__PURE__ */ r.createElement(Oe, me({
498
+ key: "panel"
499
+ }, le, {
500
+ visible: n,
501
+ forceRender: $,
502
+ onVisibleChanged: A,
503
+ removeOnLeave: !1,
504
+ leavedClassName: `${o}-content-wrapper-hidden`
505
+ }), ({
506
+ className: E,
507
+ style: _
508
+ }, se) => {
509
+ const ke = /* @__PURE__ */ r.createElement(Mt, me({
510
+ id: I,
511
+ containerRef: se,
512
+ prefixCls: o,
513
+ className: y(S, l == null ? void 0 : l.section),
514
+ style: {
515
+ ...C,
516
+ ...D == null ? void 0 : D.section
517
+ }
518
+ }, Ce(t, {
519
+ aria: !0
520
+ }), fe), N);
521
+ return /* @__PURE__ */ r.createElement("div", me({
522
+ ref: te,
523
+ className: y(`${o}-content-wrapper`, $e && `${o}-content-wrapper-dragging`, l == null ? void 0 : l.wrapper, !$e && E),
524
+ style: {
525
+ ..._,
526
+ ...ie,
527
+ ...D == null ? void 0 : D.wrapper
528
+ }
529
+ }, Ce(t, {
530
+ data: !0
531
+ })), ee && /* @__PURE__ */ r.createElement("div", he), Y ? Y(ke) : ke);
532
+ }), ge = {
533
+ ...p
534
+ };
535
+ return u && (ge.zIndex = u), /* @__PURE__ */ r.createElement(qe.Provider, {
536
+ value: J
537
+ }, /* @__PURE__ */ r.createElement("div", {
538
+ className: y(o, `${o}-${a}`, g, {
539
+ [`${o}-open`]: n,
540
+ [`${o}-inline`]: c
541
+ }),
542
+ style: ge,
543
+ tabIndex: -1,
544
+ ref: X
545
+ }, pe, be));
546
+ }, Ht = /* @__PURE__ */ r.forwardRef(Bt), Wt = (t) => {
547
+ const {
548
+ open: e = !1,
549
+ prefixCls: o = "rc-drawer",
550
+ placement: n = "right",
551
+ autoFocus: a = !0,
552
+ keyboard: c = !0,
553
+ width: s,
554
+ height: $,
555
+ size: m,
556
+ maxSize: d,
557
+ mask: l = !0,
558
+ maskClosable: g = !0,
559
+ getContainer: p,
560
+ forceRender: u,
561
+ afterOpenChange: S,
562
+ destroyOnHidden: I,
563
+ onMouseEnter: C,
564
+ onMouseOver: z,
565
+ onMouseLeave: R,
566
+ onClick: h,
567
+ onKeyDown: i,
568
+ onKeyUp: f,
569
+ onClose: N,
570
+ resizable: w,
571
+ defaultSize: b,
572
+ focusTriggerAfterClose: x,
573
+ // Refs
574
+ panelRef: M
575
+ } = t, [v, A] = r.useState(!1), [q, L] = r.useState(!1);
576
+ Le(() => {
577
+ L(!0);
578
+ }, []);
579
+ const B = q ? e : !1, T = r.useRef(null), P = r.useRef(null);
580
+ Le(() => {
581
+ B && (P.current = document.activeElement);
582
+ }, [B]);
583
+ const j = (k) => {
584
+ var X, H;
585
+ A(k), S == null || S(k), !k && x !== !1 && P.current && !((X = T.current) != null && X.contains(P.current)) && ((H = P.current) == null || H.focus({
586
+ preventScroll: !0
587
+ }));
588
+ }, U = r.useMemo(() => ({
589
+ panel: M
590
+ }), [M]);
591
+ if (!u && !v && !B && I)
592
+ return null;
593
+ const Y = {
594
+ ...t,
595
+ open: B,
596
+ prefixCls: o,
597
+ placement: n,
598
+ autoFocus: a,
599
+ keyboard: c,
600
+ width: s,
601
+ height: $,
602
+ size: m,
603
+ maxSize: d,
604
+ defaultSize: b,
605
+ mask: l,
606
+ maskClosable: g,
607
+ inline: p === !1,
608
+ afterOpenChange: j,
609
+ ref: T,
610
+ resizable: w,
611
+ ...{
612
+ onMouseEnter: C,
613
+ onMouseOver: z,
614
+ onMouseLeave: R,
615
+ onClick: h,
616
+ onKeyDown: i,
617
+ onKeyUp: f
618
+ }
619
+ }, F = ({
620
+ top: k,
621
+ event: X
622
+ }) => {
623
+ k && c && (X.stopPropagation(), N == null || N(X));
624
+ };
625
+ return /* @__PURE__ */ r.createElement(Ve.Provider, {
626
+ value: U
627
+ }, /* @__PURE__ */ r.createElement(rt, {
628
+ open: B || u || v,
629
+ autoDestroy: !1,
630
+ getContainer: p,
631
+ autoLock: l && (B || v),
632
+ onEsc: F
633
+ }, /* @__PURE__ */ r.createElement(Ht, Y)));
634
+ }, Ke = (t) => {
635
+ const {
636
+ prefixCls: e,
637
+ ariaId: o,
638
+ title: n,
639
+ footer: a,
640
+ extra: c,
641
+ closable: s,
642
+ loading: $,
643
+ onClose: m,
644
+ headerStyle: d,
645
+ bodyStyle: l,
646
+ footerStyle: g,
647
+ children: p,
648
+ classNames: u,
649
+ styles: S
650
+ } = t, I = we("drawer"), {
651
+ classNames: C,
652
+ styles: z,
653
+ closable: R
654
+ } = I, [h, i] = ze([C, u], [z, S], {
655
+ props: {
656
+ ...t,
657
+ closable: s ?? R
658
+ }
659
+ }), f = r.useMemo(() => {
660
+ const v = s ?? R;
661
+ if (v !== !1)
662
+ return typeof v == "object" && (v == null ? void 0 : v.placement) === "end" ? "end" : "start";
663
+ }, [s, R]), N = r.useCallback((v) => /* @__PURE__ */ r.createElement("button", {
664
+ type: "button",
665
+ onClick: m,
666
+ className: y(`${e}-close`, {
667
+ [`${e}-close-${f}`]: f === "end"
668
+ }, h.close),
669
+ style: i.close
670
+ }, v), [m, e, f, h.close, i.close]), [w, b] = at(Ae(t), Ae(I), {
671
+ closable: !0,
672
+ closeIconRender: N
673
+ }), x = () => !n && !w ? null : /* @__PURE__ */ r.createElement("div", {
674
+ style: {
675
+ ...i.header,
676
+ ...d
677
+ },
678
+ className: y(`${e}-header`, h.header, {
679
+ [`${e}-header-close-only`]: w && !n && !c
680
+ })
681
+ }, /* @__PURE__ */ r.createElement("div", {
682
+ className: `${e}-header-title`
683
+ }, f === "start" && b, n && /* @__PURE__ */ r.createElement("div", {
684
+ className: y(`${e}-title`, h.title),
685
+ style: i.title,
686
+ id: o
687
+ }, n)), c && /* @__PURE__ */ r.createElement("div", {
688
+ className: y(`${e}-extra`, h.extra),
689
+ style: i.extra
690
+ }, c), f === "end" && b), M = () => a ? /* @__PURE__ */ r.createElement("div", {
691
+ className: y(`${e}-footer`, h.footer),
692
+ style: {
693
+ ...i.footer,
694
+ ...g
695
+ }
696
+ }, a) : null;
697
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, x(), /* @__PURE__ */ r.createElement("div", {
698
+ className: y(`${e}-body`, h.body),
699
+ style: {
700
+ ...i.body,
701
+ ...l
702
+ }
703
+ }, $ ? /* @__PURE__ */ r.createElement(lt, {
704
+ active: !0,
705
+ title: !1,
706
+ paragraph: {
707
+ rows: 5
708
+ },
709
+ className: `${e}-body-skeleton`
710
+ }) : p), M());
711
+ }, kt = (t) => {
712
+ const e = "100%";
713
+ return {
714
+ left: `translateX(-${e})`,
715
+ right: `translateX(${e})`,
716
+ top: `translateY(-${e})`,
717
+ bottom: `translateY(${e})`
718
+ }[t];
719
+ }, Ze = (t, e) => ({
720
+ "&-enter, &-appear": {
721
+ ...t,
722
+ "&-active": e
723
+ },
724
+ "&-leave": {
725
+ ...e,
726
+ "&-active": t
727
+ }
728
+ }), Qe = (t, e) => ({
729
+ "&-enter, &-appear, &-leave": {
730
+ "&-start": {
731
+ transition: "none"
732
+ },
733
+ "&-active": {
734
+ transition: `all ${e}`
735
+ }
736
+ },
737
+ ...Ze({
738
+ opacity: t
739
+ }, {
740
+ opacity: 1
741
+ })
742
+ }), Ot = (t, e) => [Qe(0.7, e), Ze({
743
+ transform: kt(t)
744
+ }, {
745
+ transform: "none"
746
+ })], Lt = (t) => {
747
+ const {
748
+ componentCls: e,
749
+ motionDurationSlow: o
750
+ } = t;
751
+ return {
752
+ [e]: {
753
+ // ======================== Mask ========================
754
+ [`${e}-mask-motion`]: Qe(0, o),
755
+ // ======================= Panel ========================
756
+ [`${e}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((n, a) => ({
757
+ ...n,
758
+ [`&-${a}`]: Ot(a, o)
759
+ }), {})
760
+ }
761
+ };
762
+ }, At = (t) => {
763
+ const {
764
+ borderRadiusSM: e,
765
+ componentCls: o,
766
+ zIndexPopup: n,
767
+ colorBgMask: a,
768
+ colorBgElevated: c,
769
+ motionDurationSlow: s,
770
+ motionDurationMid: $,
771
+ paddingXS: m,
772
+ padding: d,
773
+ paddingLG: l,
774
+ fontSizeLG: g,
775
+ lineHeightLG: p,
776
+ lineWidth: u,
777
+ lineType: S,
778
+ colorSplit: I,
779
+ marginXS: C,
780
+ colorIcon: z,
781
+ colorIconHover: R,
782
+ colorBgTextHover: h,
783
+ colorBgTextActive: i,
784
+ colorText: f,
785
+ fontWeightStrong: N,
786
+ footerPaddingBlock: w,
787
+ footerPaddingInline: b,
788
+ draggerSize: x,
789
+ calc: M
790
+ } = t, v = `${o}-content-wrapper`, A = `${o}-resizable-dragger`;
791
+ return {
792
+ [o]: {
793
+ position: "fixed",
794
+ inset: 0,
795
+ zIndex: n,
796
+ pointerEvents: "none",
797
+ color: f,
798
+ "&-pure": {
799
+ position: "relative",
800
+ background: c,
801
+ display: "flex",
802
+ flexDirection: "column",
803
+ pointerEvents: "auto",
804
+ [`&${o}-left`]: {
805
+ boxShadow: t.boxShadowDrawerLeft
806
+ },
807
+ [`&${o}-right`]: {
808
+ boxShadow: t.boxShadowDrawerRight
809
+ },
810
+ [`&${o}-top`]: {
811
+ boxShadow: t.boxShadowDrawerUp
812
+ },
813
+ [`&${o}-bottom`]: {
814
+ boxShadow: t.boxShadowDrawerDown
815
+ }
816
+ },
817
+ "&-inline": {
818
+ position: "absolute"
819
+ },
820
+ // ====================== Mask ======================
821
+ [`${o}-mask`]: {
822
+ position: "absolute",
823
+ inset: 0,
824
+ zIndex: n,
825
+ background: a,
826
+ pointerEvents: "auto",
827
+ [`&${o}-mask-blur`]: {
828
+ backdropFilter: "blur(4px)"
829
+ }
830
+ },
831
+ // ==================== Content =====================
832
+ [v]: {
833
+ position: "absolute",
834
+ zIndex: n,
835
+ maxWidth: "100vw",
836
+ transition: `all ${s}`,
837
+ "&-hidden": {
838
+ display: "none"
839
+ }
840
+ },
841
+ // Placement
842
+ [`&-left > ${v}`]: {
843
+ top: 0,
844
+ bottom: 0,
845
+ left: {
846
+ _skip_check_: !0,
847
+ value: 0
848
+ },
849
+ boxShadow: t.boxShadowDrawerLeft
850
+ },
851
+ [`&-right > ${v}`]: {
852
+ top: 0,
853
+ right: {
854
+ _skip_check_: !0,
855
+ value: 0
856
+ },
857
+ bottom: 0,
858
+ boxShadow: t.boxShadowDrawerRight
859
+ },
860
+ [`&-top > ${v}`]: {
861
+ top: 0,
862
+ insetInline: 0,
863
+ boxShadow: t.boxShadowDrawerUp
864
+ },
865
+ [`&-bottom > ${v}`]: {
866
+ bottom: 0,
867
+ insetInline: 0,
868
+ boxShadow: t.boxShadowDrawerDown
869
+ },
870
+ [`${o}-section`]: {
871
+ display: "flex",
872
+ flexDirection: "column",
873
+ width: "100%",
874
+ height: "100%",
875
+ overflow: "auto",
876
+ background: c,
877
+ pointerEvents: "auto"
878
+ },
879
+ // Header
880
+ [`${o}-header`]: {
881
+ display: "flex",
882
+ flex: 0,
883
+ alignItems: "center",
884
+ padding: `${W(d)} ${W(l)}`,
885
+ fontSize: g,
886
+ lineHeight: p,
887
+ borderBottom: `${W(u)} ${S} ${I}`,
888
+ "&-title": {
889
+ display: "flex",
890
+ flex: 1,
891
+ alignItems: "center",
892
+ minWidth: 0,
893
+ minHeight: 0
894
+ }
895
+ },
896
+ [`${o}-extra`]: {
897
+ flex: "none"
898
+ },
899
+ [`${o}-close`]: {
900
+ display: "inline-flex",
901
+ width: M(g).add(m).equal(),
902
+ height: M(g).add(m).equal(),
903
+ borderRadius: e,
904
+ justifyContent: "center",
905
+ alignItems: "center",
906
+ color: z,
907
+ fontWeight: N,
908
+ fontSize: g,
909
+ fontStyle: "normal",
910
+ lineHeight: 1,
911
+ textAlign: "center",
912
+ textTransform: "none",
913
+ textDecoration: "none",
914
+ background: "transparent",
915
+ border: 0,
916
+ cursor: "pointer",
917
+ transition: `all ${$}`,
918
+ textRendering: "auto",
919
+ [`&${o}-close-end`]: {
920
+ marginInlineStart: C
921
+ },
922
+ [`&:not(${o}-close-end)`]: {
923
+ marginInlineEnd: C
924
+ },
925
+ "&:hover": {
926
+ color: R,
927
+ backgroundColor: h,
928
+ textDecoration: "none"
929
+ },
930
+ "&:active": {
931
+ backgroundColor: i
932
+ },
933
+ ...st(t)
934
+ },
935
+ [`${o}-title`]: {
936
+ flex: 1,
937
+ margin: 0,
938
+ fontWeight: t.fontWeightStrong,
939
+ fontSize: g,
940
+ lineHeight: p
941
+ },
942
+ // Body
943
+ [`${o}-body`]: {
944
+ flex: 1,
945
+ minWidth: 0,
946
+ minHeight: 0,
947
+ padding: l,
948
+ overflow: "auto",
949
+ [`${o}-body-skeleton`]: {
950
+ width: "100%",
951
+ height: "100%",
952
+ display: "flex",
953
+ justifyContent: "center"
954
+ }
955
+ },
956
+ // Footer
957
+ [`${o}-footer`]: {
958
+ flexShrink: 0,
959
+ padding: `${W(w)} ${W(b)}`,
960
+ borderTop: `${W(u)} ${S} ${I}`
961
+ },
962
+ // ==================== Resizable ===================
963
+ [A]: {
964
+ position: "absolute",
965
+ zIndex: 1,
966
+ backgroundColor: "transparent",
967
+ userSelect: "none",
968
+ pointerEvents: "auto",
969
+ "&:hover": {
970
+ backgroundColor: t.colorPrimary,
971
+ opacity: 0.2
972
+ },
973
+ "&-dragging": {
974
+ backgroundColor: t.colorPrimary,
975
+ opacity: 0.3
976
+ }
977
+ },
978
+ [`${A}-left`]: {
979
+ top: 0,
980
+ bottom: 0,
981
+ insetInlineEnd: 0,
982
+ width: x,
983
+ cursor: "col-resize"
984
+ },
985
+ [`${A}-right`]: {
986
+ top: 0,
987
+ bottom: 0,
988
+ insetInlineStart: 0,
989
+ width: x,
990
+ cursor: "col-resize"
991
+ },
992
+ [`${A}-top`]: {
993
+ insetInline: 0,
994
+ bottom: 0,
995
+ height: x,
996
+ cursor: "row-resize"
997
+ },
998
+ [`${A}-bottom`]: {
999
+ insetInline: 0,
1000
+ top: 0,
1001
+ height: x,
1002
+ cursor: "row-resize"
1003
+ },
1004
+ // Wrapper dragging state - disable transitions for smooth dragging
1005
+ [`${v}-dragging`]: {
1006
+ userSelect: "none",
1007
+ transition: "none",
1008
+ willChange: "width, height",
1009
+ [`${o}-content`]: {
1010
+ pointerEvents: "none"
1011
+ },
1012
+ [`${o}-section`]: {
1013
+ pointerEvents: "none"
1014
+ }
1015
+ },
1016
+ // ====================== RTL =======================
1017
+ "&-rtl": {
1018
+ direction: "rtl"
1019
+ }
1020
+ }
1021
+ };
1022
+ }, Ft = (t) => ({
1023
+ zIndexPopup: t.zIndexPopupBase,
1024
+ footerPaddingBlock: t.paddingXS,
1025
+ footerPaddingInline: t.padding,
1026
+ draggerSize: 4
1027
+ }), Je = De("Drawer", (t) => {
1028
+ const e = Be(t, {});
1029
+ return [At(e), Lt(e)];
1030
+ }, Ft), Xt = {
1031
+ distance: 180
1032
+ }, je = 378, qt = (t) => {
1033
+ const {
1034
+ rootClassName: e,
1035
+ size: o,
1036
+ defaultSize: n = je,
1037
+ height: a,
1038
+ width: c,
1039
+ mask: s,
1040
+ push: $ = Xt,
1041
+ open: m,
1042
+ afterOpenChange: d,
1043
+ onClose: l,
1044
+ prefixCls: g,
1045
+ getContainer: p,
1046
+ panelRef: u = null,
1047
+ style: S,
1048
+ className: I,
1049
+ resizable: C,
1050
+ "aria-labelledby": z,
1051
+ // Focus
1052
+ focusable: R,
1053
+ // Deprecated
1054
+ maskStyle: h,
1055
+ drawerStyle: i,
1056
+ contentWrapperStyle: f,
1057
+ destroyOnClose: N,
1058
+ destroyOnHidden: w,
1059
+ ...b
1060
+ } = t, {
1061
+ placement: x
1062
+ } = b, M = ct(), v = b.title ? M : void 0, {
1063
+ getPopupContainer: A,
1064
+ getPrefixCls: q,
1065
+ direction: L,
1066
+ className: B,
1067
+ style: T,
1068
+ classNames: P,
1069
+ styles: j,
1070
+ mask: U
1071
+ } = we("drawer"), D = q("drawer", g), [Y, F] = Je(D), k = (
1072
+ // 有可能为 false,所以不能直接判断
1073
+ p === void 0 && A ? () => A(document.body) : p
1074
+ ), X = r.useMemo(() => typeof o == "number" ? o : o === "large" ? 736 : o === "default" ? je : typeof o == "string" ? /^\d+(\.\d+)?$/.test(o) ? Number(o) : o : !x || x === "left" || x === "right" ? c : a, [o, x, c, a]), H = {
1075
+ motionName: Fe(D, "mask-motion"),
1076
+ motionAppear: !0,
1077
+ motionEnter: !0,
1078
+ motionLeave: !0,
1079
+ motionDeadline: 500
1080
+ }, oe = (K) => ({
1081
+ motionName: Fe(D, `panel-motion-${K}`),
1082
+ motionAppear: !0,
1083
+ motionEnter: !0,
1084
+ motionLeave: !0,
1085
+ motionDeadline: 500
1086
+ }), Z = dt(), O = mt(u, Z), [V, Q] = pt("Drawer", b.zIndex), [J, pe] = ut(s, U, D), le = gt(R, k !== !1 && J), {
1087
+ classNames: de,
1088
+ styles: ue,
1089
+ rootStyle: ne
1090
+ } = b, re = {
1091
+ ...t,
1092
+ zIndex: V,
1093
+ panelRef: u,
1094
+ mask: J,
1095
+ defaultSize: n,
1096
+ push: $,
1097
+ focusable: le
1098
+ }, [ie, te] = ze([P, de], [j, ue], {
1099
+ props: re
1100
+ }), ee = y({
1101
+ "no-mask": !J,
1102
+ [`${D}-rtl`]: L === "rtl"
1103
+ }, e, Y, F, ie.root);
1104
+ return /* @__PURE__ */ r.createElement(ht, {
1105
+ form: !0,
1106
+ space: !0
1107
+ }, /* @__PURE__ */ r.createElement($t.Provider, {
1108
+ value: Q
1109
+ }, /* @__PURE__ */ r.createElement(Wt, {
1110
+ prefixCls: D,
1111
+ onClose: l,
1112
+ maskMotion: H,
1113
+ motion: oe,
1114
+ ...b,
1115
+ classNames: {
1116
+ mask: y(ie.mask, pe.mask),
1117
+ section: ie.section,
1118
+ wrapper: ie.wrapper,
1119
+ dragger: ie.dragger
1120
+ },
1121
+ styles: {
1122
+ mask: {
1123
+ ...te.mask,
1124
+ ...h
1125
+ },
1126
+ section: {
1127
+ ...te.section,
1128
+ ...i
1129
+ },
1130
+ wrapper: {
1131
+ ...te.wrapper,
1132
+ ...f
1133
+ },
1134
+ dragger: te.dragger
1135
+ },
1136
+ open: m,
1137
+ mask: J,
1138
+ push: $,
1139
+ size: X,
1140
+ defaultSize: n,
1141
+ style: {
1142
+ ...T,
1143
+ ...S
1144
+ },
1145
+ rootStyle: {
1146
+ ...ne,
1147
+ ...te.root
1148
+ },
1149
+ className: y(B, I),
1150
+ rootClassName: ee,
1151
+ getContainer: k,
1152
+ afterOpenChange: d,
1153
+ panelRef: O,
1154
+ zIndex: V,
1155
+ ...C ? {
1156
+ resizable: C
1157
+ } : {},
1158
+ "aria-labelledby": z ?? v,
1159
+ destroyOnHidden: w ?? N,
1160
+ // Focusable
1161
+ focusTriggerAfterClose: le.focusTriggerAfterClose,
1162
+ focusTrap: le.trap
1163
+ }, /* @__PURE__ */ r.createElement(Ke, {
1164
+ prefixCls: D,
1165
+ size: o,
1166
+ ...b,
1167
+ ariaId: v,
1168
+ onClose: l
1169
+ }))));
1170
+ }, jt = (t) => {
1171
+ const {
1172
+ prefixCls: e,
1173
+ style: o,
1174
+ className: n,
1175
+ placement: a = "right",
1176
+ ...c
1177
+ } = t, {
1178
+ getPrefixCls: s
1179
+ } = r.useContext(ft), $ = s("drawer", e), [m, d] = Je($), l = y($, `${$}-pure`, `${$}-${a}`, m, d, n);
1180
+ return /* @__PURE__ */ r.createElement("div", {
1181
+ className: l,
1182
+ style: o
1183
+ }, /* @__PURE__ */ r.createElement(Ke, {
1184
+ prefixCls: $,
1185
+ ...c
1186
+ }));
1187
+ };
1188
+ qt._InternalPanelDoNotUseOrYouWillBeFired = jt;
1189
+ function _t(t) {
1190
+ const {
1191
+ prefixCls: e,
1192
+ className: o,
1193
+ style: n,
1194
+ status: a
1195
+ } = t, c = `${e}-rail`;
1196
+ return /* @__PURE__ */ r.createElement("div", {
1197
+ className: y(c, `${c}-${a}`, o),
1198
+ style: n
1199
+ });
1200
+ }
1201
+ const Gt = /* @__PURE__ */ r.createContext({}), He = /* @__PURE__ */ r.createContext(null);
1202
+ function Re() {
1203
+ return Re = Object.assign ? Object.assign.bind() : function(t) {
1204
+ for (var e = 1; e < arguments.length; e++) {
1205
+ var o = arguments[e];
1206
+ for (var n in o)
1207
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
1208
+ }
1209
+ return t;
1210
+ }, Re.apply(this, arguments);
1211
+ }
1212
+ const et = /* @__PURE__ */ r.createContext({}), _e = /* @__PURE__ */ r.forwardRef((t, e) => {
1213
+ const {
1214
+ className: o,
1215
+ style: n,
1216
+ children: a,
1217
+ ...c
1218
+ } = t, {
1219
+ prefixCls: s,
1220
+ classNames: $,
1221
+ styles: m
1222
+ } = r.useContext(He), {
1223
+ className: d,
1224
+ style: l
1225
+ } = r.useContext(et), g = `${s}-item`;
1226
+ return /* @__PURE__ */ r.createElement("div", Re({}, Ce(c, !1), {
1227
+ ref: e,
1228
+ className: y(`${g}-icon`, $.itemIcon, d, o),
1229
+ style: {
1230
+ ...m.itemIcon,
1231
+ ...l,
1232
+ ...n
1233
+ }
1234
+ }), a);
1235
+ });
1236
+ function Me() {
1237
+ return Me = Object.assign ? Object.assign.bind() : function(t) {
1238
+ for (var e = 1; e < arguments.length; e++) {
1239
+ var o = arguments[e];
1240
+ for (var n in o)
1241
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
1242
+ }
1243
+ return t;
1244
+ }, Me.apply(this, arguments);
1245
+ }
1246
+ function Ne(t) {
1247
+ return t != null;
1248
+ }
1249
+ function Ut(t) {
1250
+ const {
1251
+ // style
1252
+ prefixCls: e,
1253
+ classNames: o,
1254
+ styles: n,
1255
+ // data
1256
+ data: a,
1257
+ last: c,
1258
+ nextStatus: s,
1259
+ active: $,
1260
+ index: m,
1261
+ // render
1262
+ itemRender: d,
1263
+ iconRender: l,
1264
+ itemWrapperRender: g,
1265
+ // events
1266
+ onClick: p
1267
+ } = t, u = `${e}-item`, {
1268
+ railFollowPrevStatus: S
1269
+ } = r.useContext(Gt), {
1270
+ ItemComponent: I
1271
+ } = r.useContext(He), {
1272
+ onClick: C,
1273
+ title: z,
1274
+ subTitle: R,
1275
+ content: h,
1276
+ description: i,
1277
+ disabled: f,
1278
+ icon: N,
1279
+ status: w,
1280
+ className: b,
1281
+ style: x,
1282
+ classNames: M = {},
1283
+ styles: v = {},
1284
+ ...A
1285
+ } = a, q = h ?? i, L = {
1286
+ item: {
1287
+ ...a,
1288
+ content: q
1289
+ },
1290
+ index: m,
1291
+ active: $
1292
+ }, B = !!(p || C) && !f, T = {};
1293
+ B && (T.role = "button", T.tabIndex = 0, T.onClick = (X) => {
1294
+ C == null || C(X), p(m);
1295
+ }, T.onKeyDown = (X) => {
1296
+ const {
1297
+ which: H
1298
+ } = X;
1299
+ (H === Xe.ENTER || H === Xe.SPACE) && p(m);
1300
+ });
1301
+ const P = w || "wait", j = Ne(z), U = Ne(R), D = y(u, `${u}-${P}`, {
1302
+ [`${u}-custom`]: N,
1303
+ [`${u}-active`]: $,
1304
+ [`${u}-disabled`]: f === !0,
1305
+ [`${u}-empty-header`]: !j && !U
1306
+ }, b, o.item, M.root);
1307
+ let Y = /* @__PURE__ */ r.createElement(_e, null);
1308
+ l && (Y = l(Y, {
1309
+ ...L,
1310
+ components: {
1311
+ Icon: _e
1312
+ }
1313
+ }));
1314
+ const F = /* @__PURE__ */ r.createElement("div", {
1315
+ className: y(`${u}-wrapper`, o.itemWrapper, M.wrapper),
1316
+ style: {
1317
+ ...n.itemWrapper,
1318
+ ...v.wrapper
1319
+ }
1320
+ }, /* @__PURE__ */ r.createElement(et.Provider, {
1321
+ value: {
1322
+ className: M.icon,
1323
+ style: v.icon
1324
+ }
1325
+ }, Y), /* @__PURE__ */ r.createElement("div", {
1326
+ className: y(`${u}-section`, o.itemSection, M.section),
1327
+ style: {
1328
+ ...n.itemSection,
1329
+ ...v.section
1330
+ }
1331
+ }, /* @__PURE__ */ r.createElement("div", {
1332
+ className: y(`${u}-header`, o.itemHeader, M.header),
1333
+ style: {
1334
+ ...n.itemHeader,
1335
+ ...v.header
1336
+ }
1337
+ }, j && /* @__PURE__ */ r.createElement("div", {
1338
+ className: y(`${u}-title`, o.itemTitle, M.title),
1339
+ style: {
1340
+ ...n.itemTitle,
1341
+ ...v.title
1342
+ }
1343
+ }, z), U && /* @__PURE__ */ r.createElement("div", {
1344
+ title: typeof R == "string" ? R : void 0,
1345
+ className: y(`${u}-subtitle`, o.itemSubtitle, M.subtitle),
1346
+ style: {
1347
+ ...n.itemSubtitle,
1348
+ ...v.subtitle
1349
+ }
1350
+ }, R), !c && /* @__PURE__ */ r.createElement(_t, {
1351
+ prefixCls: u,
1352
+ className: y(o.itemRail, M.rail),
1353
+ style: {
1354
+ ...n.itemRail,
1355
+ ...v.rail
1356
+ },
1357
+ status: S ? w : s
1358
+ })), Ne(q) && /* @__PURE__ */ r.createElement("div", {
1359
+ className: y(`${u}-content`, o.itemContent, M.content),
1360
+ style: {
1361
+ ...n.itemContent,
1362
+ ...v.content
1363
+ }
1364
+ }, q)));
1365
+ let k = /* @__PURE__ */ r.createElement(I, Me({}, A, T, {
1366
+ className: D,
1367
+ style: {
1368
+ ...n.item,
1369
+ ...v.root,
1370
+ ...x
1371
+ }
1372
+ }), g ? g(F) : F);
1373
+ return d && (k = d(k, L) || null), k;
1374
+ }
1375
+ function Te() {
1376
+ return Te = Object.assign ? Object.assign.bind() : function(t) {
1377
+ for (var e = 1; e < arguments.length; e++) {
1378
+ var o = arguments[e];
1379
+ for (var n in o)
1380
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
1381
+ }
1382
+ return t;
1383
+ }, Te.apply(this, arguments);
1384
+ }
1385
+ const Ge = {};
1386
+ function Yt(t) {
1387
+ const {
1388
+ // style
1389
+ prefixCls: e = "rc-steps",
1390
+ style: o,
1391
+ className: n,
1392
+ classNames: a = Ge,
1393
+ styles: c = Ge,
1394
+ rootClassName: s,
1395
+ // layout
1396
+ orientation: $,
1397
+ titlePlacement: m,
1398
+ components: d,
1399
+ // data
1400
+ status: l = "process",
1401
+ current: g = 0,
1402
+ initial: p = 0,
1403
+ onChange: u,
1404
+ items: S,
1405
+ // render
1406
+ iconRender: I,
1407
+ itemRender: C,
1408
+ itemWrapperRender: z,
1409
+ ...R
1410
+ } = t, h = $ === "vertical", i = h ? "vertical" : "horizontal", f = !h && m === "vertical" ? "vertical" : "horizontal", N = y(e, `${e}-${i}`, `${e}-title-${f}`, s, n, a.root), w = ce.useMemo(() => (S || []).filter(Boolean), [S]), b = ce.useMemo(() => w.map(({
1411
+ status: L
1412
+ }, B) => {
1413
+ const T = p + B;
1414
+ return L || (T === g ? l : T < g ? "finish" : "wait");
1415
+ }), [w, l, g, p]), x = (L) => {
1416
+ u && g !== L && u(L);
1417
+ }, {
1418
+ root: M = "div",
1419
+ item: v = "div"
1420
+ } = d || {}, A = ce.useMemo(() => ({
1421
+ prefixCls: e,
1422
+ classNames: a,
1423
+ styles: c,
1424
+ ItemComponent: v
1425
+ }), [e, a, c, v]), q = (L, B) => {
1426
+ const T = p + B, P = b[B], j = b[B + 1], U = {
1427
+ ...L,
1428
+ status: P
1429
+ };
1430
+ return /* @__PURE__ */ ce.createElement(Ut, {
1431
+ key: T,
1432
+ prefixCls: e,
1433
+ classNames: a,
1434
+ styles: c,
1435
+ data: U,
1436
+ nextStatus: j,
1437
+ active: T === g,
1438
+ index: T,
1439
+ last: w.length - 1 === B,
1440
+ iconRender: I,
1441
+ itemRender: C,
1442
+ itemWrapperRender: z,
1443
+ onClick: u && x
1444
+ });
1445
+ };
1446
+ return /* @__PURE__ */ ce.createElement(M, Te({
1447
+ className: N,
1448
+ style: {
1449
+ ...o,
1450
+ ...c == null ? void 0 : c.root
1451
+ }
1452
+ }, R), /* @__PURE__ */ ce.createElement(He.Provider, {
1453
+ value: A
1454
+ }, w.map(q)));
1455
+ }
1456
+ const Vt = /* @__PURE__ */ r.createContext(null), Kt = (t) => {
1457
+ const {
1458
+ prefixCls: e
1459
+ } = t;
1460
+ return /* @__PURE__ */ r.createElement("svg", {
1461
+ className: `${e}-panel-arrow`,
1462
+ viewBox: "0 0 100 100",
1463
+ xmlns: "http://www.w3.org/2000/svg",
1464
+ preserveAspectRatio: "none"
1465
+ }, /* @__PURE__ */ r.createElement("title", null, "Arrow"), /* @__PURE__ */ r.createElement("path", {
1466
+ d: "M 0 0 L 100 50 L 0 100"
1467
+ }));
1468
+ }, Zt = (t) => {
1469
+ const {
1470
+ prefixCls: e,
1471
+ rootPrefixCls: o,
1472
+ children: n,
1473
+ percent: a
1474
+ } = t, c = `${e}-item-progress-icon`, s = `${c}-circle`, [, $] = G(o, "cmp-steps"), m = `calc(${$("progress-radius")} * 2 * ${Math.PI * a / 100}) 9999`;
1475
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("svg", {
1476
+ className: `${c}-svg`,
1477
+ viewBox: "0 0 100 100",
1478
+ width: "100%",
1479
+ height: "100%",
1480
+ xmlns: "http://www.w3.org/2000/svg",
1481
+ "aria-valuemax": 100,
1482
+ "aria-valuemin": 0,
1483
+ "aria-valuenow": a
1484
+ }, /* @__PURE__ */ r.createElement("title", null, "Progress"), /* @__PURE__ */ r.createElement("circle", {
1485
+ className: y(s, `${s}-rail`)
1486
+ }), /* @__PURE__ */ r.createElement("circle", {
1487
+ className: y(s, `${s}-ptg`),
1488
+ strokeDasharray: m,
1489
+ transform: "rotate(-90 50 50)"
1490
+ })), n);
1491
+ }, Qt = (t) => {
1492
+ const {
1493
+ componentCls: e,
1494
+ antCls: o
1495
+ } = t, n = `${e}-item`, [a, c] = G(o, "cmp-steps");
1496
+ return {
1497
+ [`${e}-horizontal`]: {
1498
+ [`> ${n}`]: {
1499
+ flex: "1 1 auto",
1500
+ minWidth: t.iconSize,
1501
+ [`${n}-rail`]: {
1502
+ [a("horizontal-rail-margin")]: `calc(${c("icon-size-max")} / 2 + ${c("item-wrapper-padding-top")})`,
1503
+ position: "static",
1504
+ marginTop: c("horizontal-rail-margin"),
1505
+ width: "auto",
1506
+ borderBlockStartWidth: c("rail-size"),
1507
+ flex: 1,
1508
+ minWidth: 0,
1509
+ alignSelf: "flex-start",
1510
+ transform: "translateY(-50%)"
1511
+ }
1512
+ }
1513
+ }
1514
+ };
1515
+ }, Jt = (t) => {
1516
+ const {
1517
+ componentCls: e,
1518
+ customIconFontSize: o,
1519
+ motionDurationSlow: n,
1520
+ iconSize: a,
1521
+ lineWidth: c,
1522
+ lineType: s,
1523
+ antCls: $
1524
+ } = t, m = `${e}-item`, [d, l] = G($, "cmp-steps");
1525
+ return {
1526
+ [e]: {
1527
+ [d("icon-size")]: a,
1528
+ [d("icon-border-width")]: c,
1529
+ [`${m}-icon`]: {
1530
+ width: l("icon-size"),
1531
+ height: l("icon-size"),
1532
+ margin: 0,
1533
+ flex: "none",
1534
+ display: "flex",
1535
+ alignItems: "center",
1536
+ justifyContent: "center",
1537
+ fontSize: t.iconFontSize,
1538
+ fontFamily: t.fontFamily,
1539
+ lineHeight: l("icon-size"),
1540
+ textAlign: "center",
1541
+ borderRadius: l("icon-size"),
1542
+ border: `${l("icon-border-width")} ${s} transparent`,
1543
+ transition: ["background-color", "border", "color", "inset", "transform"].map((g) => `${g} ${n}`).join(", "),
1544
+ zIndex: 1
1545
+ },
1546
+ // ==================== Custom ====================
1547
+ [`${m}-custom ${m}-icon`]: {
1548
+ background: "none",
1549
+ border: 0,
1550
+ fontSize: o
1551
+ }
1552
+ }
1553
+ };
1554
+ }, eo = (t) => {
1555
+ const {
1556
+ componentCls: e,
1557
+ inlineDotSize: o,
1558
+ paddingXS: n,
1559
+ lineWidth: a,
1560
+ antCls: c,
1561
+ calc: s
1562
+ } = t, $ = s(n).add(a).equal(), m = `${e}-item`, [d, l] = G(c, "cmp-steps");
1563
+ return {
1564
+ [`${e}-inline`]: {
1565
+ [d("items-offset")]: "0",
1566
+ [d("item-wrapper-padding-top")]: $,
1567
+ display: "inline-flex",
1568
+ "&:before": {
1569
+ content: '""',
1570
+ flex: l("items-offset")
1571
+ },
1572
+ [m]: {
1573
+ // ========================= Variable =========================
1574
+ // Item
1575
+ [d("title-vertical-row-gap")]: n,
1576
+ // Icon
1577
+ [d("icon-size")]: o,
1578
+ [d("icon-size-active")]: o,
1579
+ // Title
1580
+ [d("title-font-size")]: t.fontSizeSM,
1581
+ [d("title-line-height")]: t.lineHeightSM,
1582
+ [d("item-title-color")]: t.colorTextSecondary,
1583
+ [d("subtitle-font-size")]: t.fontSizeSM,
1584
+ [d("subtitle-line-height")]: t.lineHeightSM,
1585
+ [d("item-subtitle-color")]: t.colorTextQuaternary,
1586
+ // Rail
1587
+ [d("rail-size")]: t.lineWidth,
1588
+ [d("title-horizontal-rail-gap")]: "0px",
1589
+ // ========================== Styles ==========================
1590
+ flex: 1,
1591
+ "&-wrapper": {
1592
+ paddingInline: t.paddingXXS,
1593
+ marginInline: t.calc(t.marginXXS).div(2).equal(),
1594
+ borderRadius: t.borderRadiusSM,
1595
+ cursor: "pointer",
1596
+ transition: `background-color ${t.motionDurationMid}`,
1597
+ "&:hover": {
1598
+ background: t.controlItemBgHover
1599
+ }
1600
+ },
1601
+ // Icon
1602
+ "&-icon": {
1603
+ [`${m}-icon-dot`]: {
1604
+ "&:after": {
1605
+ display: "none"
1606
+ }
1607
+ }
1608
+ },
1609
+ // Header
1610
+ "&-title": {
1611
+ fontWeight: "normal",
1612
+ whiteSpace: "nowrap"
1613
+ },
1614
+ "&-content": {
1615
+ display: "none"
1616
+ }
1617
+ }
1618
+ }
1619
+ };
1620
+ };
1621
+ function to(t) {
1622
+ return (t || "--ant-not-exist").replace(/var\((.*)\)/, "$1");
1623
+ }
1624
+ const We = (t, e, o) => {
1625
+ const {
1626
+ calc: n,
1627
+ componentCls: a,
1628
+ descriptionMaxWidth: c,
1629
+ antCls: s
1630
+ } = t, $ = `${a}-item`, [, m] = G(s, "cmp-steps");
1631
+ return {
1632
+ [`@container style(${to(c)})`]: [{
1633
+ // Icon
1634
+ [`${$}-icon`]: {
1635
+ marginInlineStart: n(c).sub(m("icon-size")).div(2).equal()
1636
+ },
1637
+ // >>> Rail
1638
+ [`${$}-rail`]: {
1639
+ width: "auto",
1640
+ insetInlineStart: n(c).add(m("icon-size")).div(2).add(e).equal(),
1641
+ insetInlineEnd: n(c).sub(m("icon-size")).div(2).sub(e).mul(-1).equal()
1642
+ }
1643
+ }, o]
1644
+ };
1645
+ }, oo = (t) => {
1646
+ const {
1647
+ componentCls: e,
1648
+ descriptionMaxWidth: o,
1649
+ marginXS: n,
1650
+ fontHeightLG: a,
1651
+ margin: c,
1652
+ paddingSM: s,
1653
+ marginXXS: $,
1654
+ antCls: m,
1655
+ calc: d
1656
+ } = t, l = `${e}-item`, [g, p] = G(m, "cmp-steps");
1657
+ return {
1658
+ // ====================== Shared ======================
1659
+ [e]: {
1660
+ // Dot Steps active icon size is 2px larger than the default icon size
1661
+ [g("icon-size-max")]: `max(${p("icon-size")}, ${p("icon-size-active", p("icon-size"))})`,
1662
+ // Icon
1663
+ [`${l}-icon`]: {
1664
+ marginBlockStart: `calc((${p("heading-height")} - ${p("icon-size")}) / 2)`
1665
+ }
1666
+ },
1667
+ // ==================== Horizontal ====================
1668
+ [`${e}-title-horizontal`]: {
1669
+ [g("title-horizontal-item-margin")]: c,
1670
+ [g("title-horizontal-rail-margin")]: c,
1671
+ [g("title-horizontal-title-height")]: a,
1672
+ [g("heading-height")]: `max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,
1673
+ // Horizontal only
1674
+ [`&${e}-horizontal, &${e}-horizontal-alternate`]: {
1675
+ [`${l}:not(:first-child)`]: {
1676
+ marginInlineStart: p("title-horizontal-item-margin")
1677
+ },
1678
+ [`${l}:last-child`]: {
1679
+ flex: "0 1 auto"
1680
+ },
1681
+ [`${l}-wrapper`]: {
1682
+ columnGap: t.marginXS
1683
+ }
1684
+ },
1685
+ // Vertical only
1686
+ [`&${e}-vertical`]: {
1687
+ [`${l}-wrapper`]: {
1688
+ columnGap: t.margin
1689
+ },
1690
+ [`${l}-empty-header`]: {
1691
+ [`${l}-header`]: {
1692
+ minHeight: "auto"
1693
+ },
1694
+ [`${l}-content`]: {
1695
+ marginTop: d(p("heading-height")).sub(t.fontHeight).div(2).equal()
1696
+ }
1697
+ }
1698
+ },
1699
+ // Shared
1700
+ [`${l}-section`]: {
1701
+ flex: 1,
1702
+ minWidth: 0
1703
+ },
1704
+ [`${l}-header`]: {
1705
+ minHeight: p("heading-height")
1706
+ },
1707
+ [`${l}-title`]: {
1708
+ flex: "0 1 auto"
1709
+ },
1710
+ [`${l}-content`]: {
1711
+ maxWidth: o
1712
+ },
1713
+ [`${l}-subtitle`]: {
1714
+ flex: "0 9999 auto"
1715
+ },
1716
+ [`&${e}-horizontal ${l}-rail`]: {
1717
+ [g("item-wrapper-padding-top")]: "0px",
1718
+ flex: "1 1 0%",
1719
+ marginInlineStart: p("title-horizontal-rail-margin")
1720
+ }
1721
+ },
1722
+ // ===================== Vertical =====================
1723
+ [`${e}-title-vertical`]: {
1724
+ [g("title-vertical-row-gap")]: s,
1725
+ [g("title-horizontal-rail-gap")]: $,
1726
+ [g("heading-height")]: p("icon-size-max"),
1727
+ [`> ${l}`]: {
1728
+ flex: "1 1 0%",
1729
+ [`${l}-wrapper`]: {
1730
+ flexDirection: "column",
1731
+ rowGap: p("title-vertical-row-gap"),
1732
+ alignItems: "center"
1733
+ },
1734
+ // Section
1735
+ [`${l}-section`]: {
1736
+ alignSelf: "stretch"
1737
+ },
1738
+ // Header
1739
+ [`${l}-header`]: {
1740
+ flexDirection: "column",
1741
+ alignItems: "center"
1742
+ },
1743
+ // >>> title & subtitle & Content
1744
+ [`${l}-title, ${l}-subtitle, ${l}-content`]: {
1745
+ textAlign: "center",
1746
+ maxWidth: "100%"
1747
+ },
1748
+ [`${l}-subtitle`]: {
1749
+ margin: 0
1750
+ },
1751
+ // >>> rail
1752
+ [`${l}-rail`]: {
1753
+ position: "absolute",
1754
+ top: 0,
1755
+ width: `calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,
1756
+ insetInlineStart: `calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`
1757
+ }
1758
+ },
1759
+ // With descriptionMaxWidth
1760
+ ...We(t, n, {
1761
+ [`${l}:last-child`]: {
1762
+ flex: "none"
1763
+ },
1764
+ // Icon
1765
+ [`${l}-icon`]: {
1766
+ alignSelf: "flex-start"
1767
+ },
1768
+ // Section
1769
+ [`${l}-section`]: {
1770
+ width: o
1771
+ }
1772
+ })
1773
+ }
1774
+ };
1775
+ }, no = (t) => {
1776
+ const {
1777
+ componentCls: e,
1778
+ fontSizeIcon: o,
1779
+ navContentMaxWidth: n,
1780
+ navArrowColor: a,
1781
+ colorPrimary: c,
1782
+ motionDurationSlow: s,
1783
+ antCls: $,
1784
+ calc: m
1785
+ } = t, d = `${e}-item`, l = c, [g, p] = G($, "cmp-steps");
1786
+ return {
1787
+ [`${e}${e}-navigation`]: {
1788
+ // ==========================================================
1789
+ // == Shared ==
1790
+ // ==========================================================
1791
+ // ========================== Item ==========================
1792
+ [d.repeat(4)]: {
1793
+ display: "flex",
1794
+ justifyContent: "center",
1795
+ position: "relative",
1796
+ flex: 1,
1797
+ marginInlineStart: 0,
1798
+ [`${d}-wrapper`]: {
1799
+ paddingBlock: t.paddingSM
1800
+ },
1801
+ // Section
1802
+ [`${d}-section`]: {
1803
+ maxWidth: n
1804
+ },
1805
+ // Rail
1806
+ [`${d}-rail`]: {
1807
+ display: "none"
1808
+ },
1809
+ // ======================== Active ========================
1810
+ "&:before": {
1811
+ position: "absolute",
1812
+ display: "block",
1813
+ backgroundColor: l,
1814
+ transition: `all ${s}`,
1815
+ transitionTimingFunction: "ease-out",
1816
+ content: '""'
1817
+ },
1818
+ "&:not(:last-child):after": {
1819
+ position: "absolute",
1820
+ display: "block",
1821
+ borderTop: `${W(t.lineWidth)} ${t.lineType} ${a}`,
1822
+ borderBottom: "none",
1823
+ borderInlineStart: "none",
1824
+ borderInlineEnd: `${W(t.lineWidth)} ${t.lineType} ${a}`,
1825
+ content: '""'
1826
+ },
1827
+ // Reset active item style to same as default
1828
+ [`&${d}-active`]: {
1829
+ [g("item-content-active-color")]: p("item-content-color"),
1830
+ [g("item-icon-active-bg-color")]: p("item-icon-bg-color"),
1831
+ [g("item-icon-active-border-color")]: p("item-icon-border-color"),
1832
+ [g("item-icon-active-text-color")]: p("item-icon-text-color")
1833
+ }
1834
+ },
1835
+ // ==========================================================
1836
+ // == Horizontal ==
1837
+ // ==========================================================
1838
+ [`&${e}-horizontal`]: {
1839
+ [d]: {
1840
+ "&:before": {
1841
+ bottom: 0,
1842
+ insetInlineStart: "50%",
1843
+ width: 0,
1844
+ height: t.lineWidthBold
1845
+ },
1846
+ [`&${d}-active:before`]: {
1847
+ insetInlineStart: 0,
1848
+ width: "100%"
1849
+ },
1850
+ "&:not(:last-child):after": {
1851
+ top: "50%",
1852
+ insetInlineStart: m(o).div(2).mul(-1).add("100%").equal(),
1853
+ width: o,
1854
+ height: o,
1855
+ transform: "translateY(-50%) rotate(45deg)"
1856
+ }
1857
+ }
1858
+ },
1859
+ // ==========================================================
1860
+ // == Vertical ==
1861
+ // ==========================================================
1862
+ [`&${e}-vertical`]: {
1863
+ [d.repeat(4)]: {
1864
+ [`${d}-content`]: {
1865
+ padding: 0
1866
+ },
1867
+ "&:before": {
1868
+ insetInlineEnd: 0,
1869
+ top: "50%",
1870
+ width: t.lineWidthBold,
1871
+ height: 0
1872
+ },
1873
+ [`&${d}-active::before`]: {
1874
+ top: 0,
1875
+ height: "100%"
1876
+ },
1877
+ "&:not(:last-child):after": {
1878
+ left: {
1879
+ _skip_check_: !0,
1880
+ value: "50%"
1881
+ },
1882
+ top: "100%",
1883
+ width: m(o).div(3).mul(2).equal(),
1884
+ height: m(o).div(3).mul(2).equal(),
1885
+ transform: "translateY(-50%) translateX(-50%) rotate(135deg)"
1886
+ }
1887
+ }
1888
+ }
1889
+ // ========================= Legacy =========================
1890
+ }
1891
+ };
1892
+ }, io = (t) => {
1893
+ const {
1894
+ componentCls: e,
1895
+ lineWidthBold: o,
1896
+ borderRadius: n,
1897
+ borderRadiusSM: a,
1898
+ motionDurationMid: c,
1899
+ paddingXS: s,
1900
+ lineType: $,
1901
+ paddingSM: m,
1902
+ antCls: d,
1903
+ calc: l
1904
+ } = t, g = `${e}-item`, [p, u] = G(d, "cmp-steps"), S = `${W(o)} ${$} ${u("panel-border-color")}`;
1905
+ return {
1906
+ [`${e}${e}-panel`]: [
1907
+ // ==========================================================
1908
+ // == Clean up ==
1909
+ // ==========================================================
1910
+ {
1911
+ // ====================== Shared ======================
1912
+ [`${g}-rail`]: {
1913
+ display: "none"
1914
+ },
1915
+ // ==================== Horizontal ====================
1916
+ [`&${e}-horizontal`]: {
1917
+ alignItems: "stretch",
1918
+ [g]: {
1919
+ flex: 1,
1920
+ margin: 0
1921
+ }
1922
+ }
1923
+ },
1924
+ // ==========================================================
1925
+ // == Template ==
1926
+ // ==========================================================
1927
+ {
1928
+ "&": {
1929
+ [p("panel-padding")]: m,
1930
+ [p("item-border-radius")]: n,
1931
+ [g]: {
1932
+ // Panel background
1933
+ [p("panel-bg-color")]: u("item-icon-bg-color"),
1934
+ [p("panel-border-color")]: u("item-icon-border-color"),
1935
+ [p("panel-active-bg-color")]: u("item-icon-active-bg-color"),
1936
+ [p("panel-active-border-color")]: u("item-icon-active-border-color"),
1937
+ [p("panel-title-height")]: `calc(${u("title-font-size")} * ${u("title-line-height")})`,
1938
+ // Base height = padding * 2 + iconSize + contentHeight
1939
+ [p("item-base-height")]: l(u("panel-padding")).mul(2).add(u("icon-size")).add(u("panel-title-height")).equal(),
1940
+ [p("item-base-width")]: `calc(${u("item-base-height")} * 0.7071)`,
1941
+ transition: `background-color ${c}`
1942
+ }
1943
+ },
1944
+ // ======================= Icon =======================
1945
+ [`${g}-icon`]: {
1946
+ display: "none"
1947
+ },
1948
+ // ====================== Header ======================
1949
+ [`${g}-header`]: {
1950
+ minHeight: "auto"
1951
+ },
1952
+ // ====================== Arrow =======================
1953
+ [`${e}-panel-arrow`]: {
1954
+ position: "absolute",
1955
+ top: l(o).mul(-1).equal(),
1956
+ insetInlineStart: "100%",
1957
+ zIndex: 1,
1958
+ height: l(o).mul(2).add("100%").equal(),
1959
+ width: u("item-base-width"),
1960
+ overflow: "visible",
1961
+ strokeLinecap: "round",
1962
+ path: {
1963
+ fill: u("panel-bg-color"),
1964
+ stroke: u("panel-border-color"),
1965
+ strokeWidth: o,
1966
+ vectorEffect: "non-scaling-stroke",
1967
+ transition: `fill ${c}`
1968
+ }
1969
+ },
1970
+ [`${g}:last-child ${e}-panel-arrow`]: {
1971
+ display: "none"
1972
+ },
1973
+ // ======================= Item =======================
1974
+ [g]: {
1975
+ padding: u("panel-padding"),
1976
+ background: u("panel-bg-color"),
1977
+ position: "relative",
1978
+ borderBlock: S,
1979
+ "&:not(:first-child)": {
1980
+ paddingInlineStart: `calc(${u("panel-padding")} + ${u("item-base-width")})`
1981
+ },
1982
+ "&:first-child": {
1983
+ borderInlineStart: S,
1984
+ borderStartStartRadius: u("item-border-radius"),
1985
+ borderEndStartRadius: u("item-border-radius")
1986
+ },
1987
+ "&:last-child": {
1988
+ borderInlineEnd: S,
1989
+ borderStartEndRadius: u("item-border-radius"),
1990
+ borderEndEndRadius: u("item-border-radius")
1991
+ },
1992
+ "&-active": {
1993
+ background: u("panel-active-bg-color"),
1994
+ borderColor: u("panel-active-border-color"),
1995
+ [`${e}-panel-arrow`]: {
1996
+ path: {
1997
+ fill: u("panel-active-bg-color"),
1998
+ stroke: u("panel-active-border-color")
1999
+ }
2000
+ },
2001
+ [`${g}-title, ${g}-subtitle, ${g}-content`]: {
2002
+ color: u("item-icon-active-text-color")
2003
+ }
2004
+ }
2005
+ }
2006
+ },
2007
+ // ==========================================================
2008
+ // == Size ==
2009
+ // ==========================================================
2010
+ {
2011
+ [`&${e}-small`]: {
2012
+ [p("panel-padding")]: s,
2013
+ [p("item-border-radius")]: a
2014
+ }
2015
+ },
2016
+ // ==========================================================
2017
+ // == Filled ==
2018
+ // ==========================================================
2019
+ {
2020
+ [`&${e}-filled`]: {
2021
+ [g]: {
2022
+ "&:not(:first-child)": {
2023
+ clipPath: `polygon(${[`${W(o)} 0`, `calc(100% + ${u("item-base-width")}) 0`, `calc(100% + ${u("item-base-width")}) 100%`, `${W(o)} 100%`, `calc(${u("item-base-width")} + ${W(o)}) 50%`].join(",")})`
2024
+ }
2025
+ }
2026
+ }
2027
+ },
2028
+ // ==========================================================
2029
+ // == Outlined ==
2030
+ // ==========================================================
2031
+ {
2032
+ [`&${e}-outlined`]: {
2033
+ [`${e}-panel-arrow`]: {
2034
+ top: l(o).div(2).mul(-1).equal(),
2035
+ height: l(o).add("100%").equal()
2036
+ }
2037
+ }
2038
+ }
2039
+ ]
2040
+ };
2041
+ }, ro = (t) => {
2042
+ const {
2043
+ calc: e,
2044
+ antCls: o,
2045
+ componentCls: n,
2046
+ lineWidthBold: a,
2047
+ motionDurationSlow: c
2048
+ } = t, s = `${n}-item`, [$, m] = G(o, "cmp-steps"), d = e(a).add(a).equal();
2049
+ return {
2050
+ [`${n}${n}-with-progress`]: {
2051
+ [$("item-wrapper-padding-top")]: d,
2052
+ [`${s}${s}-process`]: {
2053
+ [`${s}-icon`]: {
2054
+ position: "relative"
2055
+ }
2056
+ },
2057
+ [`${s}-progress-icon`]: {
2058
+ "&-svg": {
2059
+ [$("svg-size")]: e(d).mul(2).add(m("icon-size")).equal(),
2060
+ [$("icon-size-ptg-unitless")]: `calc(100 / tan(atan2(${m("svg-size")}, 1px)))`,
2061
+ fontSize: m("svg-size"),
2062
+ lineHeight: m("icon-size-ptg-unitless"),
2063
+ position: "absolute",
2064
+ inset: e(d).mul(-1).equal(),
2065
+ width: "auto",
2066
+ height: "auto"
2067
+ },
2068
+ "&-circle": {
2069
+ lineHeight: m("icon-size-ptg-unitless"),
2070
+ strokeWidth: e(m("icon-size-ptg-unitless")).mul(a).equal(),
2071
+ [$("progress-radius")]: e(m("svg-size")).sub(a).mul(m("icon-size-ptg-unitless")).div(2).equal(),
2072
+ r: m("progress-radius"),
2073
+ fill: "none",
2074
+ cx: 50,
2075
+ cy: 50,
2076
+ transition: `all ${c} ease-in-out`,
2077
+ "&-rail": {
2078
+ stroke: t.colorSplit
2079
+ },
2080
+ "&-ptg": {
2081
+ stroke: t.colorPrimary
2082
+ }
2083
+ }
2084
+ }
2085
+ }
2086
+ };
2087
+ }, ao = (t) => {
2088
+ const {
2089
+ componentCls: e,
2090
+ iconSize: o,
2091
+ dotSize: n,
2092
+ dotCurrentSize: a,
2093
+ marginXXS: c,
2094
+ lineWidthBold: s,
2095
+ fontSizeSM: $,
2096
+ antCls: m
2097
+ } = t, d = `${e}-item`, [l, g] = G(m, "cmp-steps");
2098
+ return {
2099
+ [`${e}${e}-dot`]: {
2100
+ [l("icon-size-active")]: a,
2101
+ [l("icon-size")]: n,
2102
+ [l("dot-icon-size")]: n,
2103
+ [l("dot-icon-border-width")]: s,
2104
+ [l("rail-size")]: s,
2105
+ [l("icon-border-width")]: s,
2106
+ // ========================= Shared ==========================
2107
+ // Icon
2108
+ [`${d}-custom ${d}-icon`]: {
2109
+ fontSize: $
2110
+ },
2111
+ [`${d}-icon`]: {
2112
+ position: "relative",
2113
+ "&:after": {
2114
+ content: '""',
2115
+ width: o,
2116
+ height: o,
2117
+ display: "block",
2118
+ position: "absolute",
2119
+ top: "50%",
2120
+ left: {
2121
+ _skip_check_: !0,
2122
+ value: "50%"
2123
+ },
2124
+ transform: "translate(-50%, -50%)"
2125
+ }
2126
+ },
2127
+ // // >>> active
2128
+ [`${d}-active ${d}-icon`]: {
2129
+ [l("icon-size")]: g("icon-size-active")
2130
+ },
2131
+ // ======================= Horizontal ========================
2132
+ [`&${e}-horizontal`]: {
2133
+ // With descriptionMaxWidth
2134
+ [`&, &${e}-small`]: We(t, c)
2135
+ }
2136
+ }
2137
+ };
2138
+ }, lo = (t) => {
2139
+ const {
2140
+ componentCls: e,
2141
+ lineWidthBold: o,
2142
+ antCls: n
2143
+ } = t, a = `${e}-item`, [, c] = G(n, "cmp-steps");
2144
+ return {
2145
+ [`${e}${e}-rtl`]: {
2146
+ direction: "rtl",
2147
+ // nav
2148
+ [`&${e}-navigation${e}-horizontal`]: {
2149
+ [`${a}:after`]: {
2150
+ transform: "translateY(-50%) rotate(-45deg)"
2151
+ }
2152
+ },
2153
+ // panel
2154
+ [`&${e}-panel`]: {
2155
+ [`${e}-panel-arrow`]: {
2156
+ transform: "scaleX(-1)"
2157
+ },
2158
+ [`&${e}-filled`]: {
2159
+ [a]: {
2160
+ "&:not(:first-child)": {
2161
+ clipPath: `polygon(${[`calc(0px - ${c("item-base-width")}) 0px`, `calc(100% - ${W(o)}) 0px`, `calc(100% - ${c("item-base-width")} - ${W(o)}) 50%`, `calc(100% - ${W(o)}) 100%`, `calc(0px - ${c("item-base-width")}) 100%`].join(",")})`
2162
+ }
2163
+ }
2164
+ }
2165
+ }
2166
+ }
2167
+ };
2168
+ }, so = (t) => {
2169
+ const {
2170
+ componentCls: e,
2171
+ iconSizeSM: o,
2172
+ fontSize: n,
2173
+ lineHeight: a,
2174
+ marginXS: c,
2175
+ fontHeight: s,
2176
+ marginSM: $,
2177
+ paddingXS: m,
2178
+ antCls: d
2179
+ } = t, [l] = G(d, "cmp-steps");
2180
+ return {
2181
+ [`${e}${e}-small`]: {
2182
+ [l("icon-size")]: o,
2183
+ [l("title-horizontal-item-margin")]: $,
2184
+ [l("title-vertical-row-gap")]: m,
2185
+ [l("title-font-size")]: n,
2186
+ [l("title-line-height")]: a,
2187
+ [l("title-horizontal-rail-margin")]: c,
2188
+ [l("title-horizontal-title-height")]: s,
2189
+ // Horizontal: label vertical
2190
+ [`&${e}-horizontal${e}-title-vertical`]: We(t, c)
2191
+ }
2192
+ };
2193
+ }, ve = "wait", Se = "process", xe = "finish", ye = "error", co = (t) => {
2194
+ const {
2195
+ componentCls: e,
2196
+ colorTextDisabled: o,
2197
+ colorTextLightSolid: n,
2198
+ colorPrimary: a,
2199
+ colorTextLabel: c,
2200
+ colorError: s,
2201
+ colorErrorHover: $,
2202
+ colorErrorBgFilledHover: m,
2203
+ colorFillTertiary: d,
2204
+ colorErrorBg: l,
2205
+ colorPrimaryBgHover: g,
2206
+ colorPrimaryBg: p,
2207
+ colorText: u,
2208
+ colorTextDescription: S,
2209
+ colorBgContainer: I,
2210
+ colorPrimaryHover: C,
2211
+ lineType: z,
2212
+ antCls: R
2213
+ } = t, h = `${e}-item`, [i, f] = G(R, "cmp-steps");
2214
+ return {
2215
+ [e]: [{
2216
+ // ========================= Variable =========================
2217
+ [h]: {
2218
+ // Normal
2219
+ // >>> line
2220
+ [i("item-solid-line-color")]: "#000",
2221
+ // >>> text
2222
+ [i("item-title-color")]: "#000",
2223
+ [i("item-content-color")]: "#000",
2224
+ [i("item-subtitle-color")]: f("item-content-color"),
2225
+ // >>> icon
2226
+ [i("item-icon-custom-color")]: "#000",
2227
+ [i("item-icon-bg-color")]: "#000",
2228
+ [i("item-icon-border-color")]: "#000",
2229
+ [i("item-icon-text-color")]: "#fff",
2230
+ // >>> dot
2231
+ [i("item-icon-dot-color")]: "#000",
2232
+ [i("item-icon-dot-bg-color")]: f("item-icon-dot-color"),
2233
+ [i("item-icon-dot-border-color")]: f("item-icon-dot-color"),
2234
+ // Hover
2235
+ // >>> text
2236
+ [i("item-text-hover-color")]: "#000",
2237
+ // >>> icon
2238
+ [i("item-icon-bg-hover-color")]: f("item-icon-bg-color"),
2239
+ [i("item-icon-border-hover-color")]: f("item-icon-border-color"),
2240
+ [i("item-icon-text-hover-color")]: f("item-icon-text-color"),
2241
+ // Active
2242
+ // >>> text
2243
+ [i("item-content-active-color")]: f("item-content-color"),
2244
+ // >>> icon
2245
+ [i("item-icon-active-bg-color")]: f("item-icon-bg-color"),
2246
+ [i("item-icon-active-border-color")]: f("item-icon-border-color"),
2247
+ [i("item-icon-active-text-color")]: f("item-icon-text-color"),
2248
+ // Status
2249
+ [i("item-process-rail-line-style")]: z
2250
+ },
2251
+ // ========================= Template =========================
2252
+ // Normal
2253
+ // >>> line
2254
+ [`${h}-rail`]: {
2255
+ borderColor: f("item-solid-line-color")
2256
+ },
2257
+ // >>> icon
2258
+ [`${h}-custom ${h}-icon`]: {
2259
+ color: f("item-icon-custom-color")
2260
+ },
2261
+ // >>> text
2262
+ [`${h}-title`]: {
2263
+ color: f("item-title-color")
2264
+ },
2265
+ [`${h}-subtitle`]: {
2266
+ color: f("item-subtitle-color")
2267
+ },
2268
+ [`${h}-content`]: {
2269
+ color: f("item-content-color")
2270
+ },
2271
+ // Active
2272
+ // >>> icon
2273
+ [`${h}-active ${h}-icon`]: {
2274
+ //
2275
+ },
2276
+ // >>> text
2277
+ [`${h}-active ${h}-content`]: {
2278
+ color: f("item-content-active-color")
2279
+ },
2280
+ // Hover
2281
+ // >>> text
2282
+ [`${h}[role='button']:not(${h}-active):hover`]: {
2283
+ [`${h}-title, ${h}-content`]: {
2284
+ color: f("item-text-hover-color")
2285
+ }
2286
+ },
2287
+ // Not dot
2288
+ [`&:not(${e}-dot)`]: {
2289
+ [`${h}:not(${h}-custom)`]: {
2290
+ [`${h}-icon`]: {
2291
+ background: f("item-icon-bg-color"),
2292
+ borderColor: f("item-icon-border-color"),
2293
+ color: f("item-icon-text-color")
2294
+ },
2295
+ // Hover
2296
+ [`&[role='button']:not(${h}-active):hover`]: {
2297
+ [`${h}-icon`]: {
2298
+ background: f("item-icon-bg-hover-color"),
2299
+ borderColor: f("item-icon-border-hover-color"),
2300
+ color: f("item-icon-text-hover-color")
2301
+ }
2302
+ },
2303
+ // Active
2304
+ [`&${h}-active`]: {
2305
+ [`${h}-icon`]: {
2306
+ background: f("item-icon-active-bg-color"),
2307
+ borderColor: f("item-icon-active-border-color"),
2308
+ color: f("item-icon-active-text-color")
2309
+ }
2310
+ }
2311
+ }
2312
+ },
2313
+ // Dot
2314
+ [`&${e}-dot`]: {
2315
+ [`${h}-icon`]: {
2316
+ background: f("item-icon-dot-bg-color"),
2317
+ borderColor: f("item-icon-dot-border-color"),
2318
+ color: f("item-icon-dot-color"),
2319
+ [`&${h}-icon-dot-custom`]: {
2320
+ background: "transparent",
2321
+ border: "none"
2322
+ }
2323
+ }
2324
+ }
2325
+ }, {
2326
+ // ========================== Shared ==========================
2327
+ // Wait
2328
+ [`${h}-${ve}`]: {
2329
+ [i("item-icon-custom-color")]: o,
2330
+ [i("item-title-color")]: S,
2331
+ [i("item-content-color")]: S,
2332
+ [i("item-content-active-color")]: u,
2333
+ [i("item-text-hover-color")]: C
2334
+ },
2335
+ [`${h}-rail-${ve}`]: {
2336
+ [i("item-solid-line-color")]: o
2337
+ },
2338
+ // Process
2339
+ [`${h}-${Se}`]: {
2340
+ [i("item-icon-custom-color")]: a,
2341
+ [i("item-title-color")]: u,
2342
+ [i("item-content-color")]: S,
2343
+ [i("item-content-active-color")]: u,
2344
+ [i("item-text-hover-color")]: C
2345
+ },
2346
+ [`${h}-rail-${Se}`]: {
2347
+ [i("item-solid-line-color")]: a,
2348
+ // Special for Timeline usage
2349
+ [i("rail-line-style")]: f("item-process-rail-line-style")
2350
+ },
2351
+ // Finish
2352
+ [`${h}-${xe}`]: {
2353
+ [i("item-icon-custom-color")]: a,
2354
+ [i("item-title-color")]: u,
2355
+ [i("item-content-color")]: S,
2356
+ [i("item-content-active-color")]: u,
2357
+ [i("item-text-hover-color")]: C
2358
+ },
2359
+ [`${h}-rail-${xe}`]: {
2360
+ [i("item-solid-line-color")]: a
2361
+ },
2362
+ // Error
2363
+ [`${h}-${ye}`]: {
2364
+ [i("item-icon-custom-color")]: s,
2365
+ [i("item-title-color")]: s,
2366
+ [i("item-content-color")]: s,
2367
+ [i("item-content-active-color")]: s,
2368
+ [i("item-text-hover-color")]: $
2369
+ },
2370
+ [`${h}-rail-${ye}`]: {
2371
+ [i("item-solid-line-color")]: s
2372
+ }
2373
+ }, {
2374
+ // ========================== Filled ==========================
2375
+ [`&${e}-filled`]: {
2376
+ [h]: {
2377
+ [i("item-icon-dot-border-color")]: "transparent"
2378
+ },
2379
+ // Wait
2380
+ [`${h}-${ve}`]: {
2381
+ [i("item-icon-bg-color")]: d,
2382
+ [i("item-icon-border-color")]: "transparent",
2383
+ [i("item-icon-text-color")]: c,
2384
+ [i("item-icon-dot-bg-color")]: o,
2385
+ // Hover
2386
+ [i("item-icon-bg-hover-color")]: g,
2387
+ [i("item-icon-border-hover-color")]: "transparent",
2388
+ [i("item-icon-text-hover-color")]: a,
2389
+ // Active
2390
+ [i("item-icon-active-bg-color")]: a,
2391
+ [i("item-icon-active-border-color")]: "transparent",
2392
+ [i("item-icon-active-text-color")]: n
2393
+ },
2394
+ // Finish & Process
2395
+ [`${h}-${Se}, ${h}-${xe}`]: {
2396
+ [i("item-icon-bg-color")]: p,
2397
+ [i("item-icon-border-color")]: "transparent",
2398
+ [i("item-icon-text-color")]: a,
2399
+ [i("item-icon-dot-bg-color")]: a,
2400
+ // Hover
2401
+ [i("item-icon-bg-hover-color")]: g,
2402
+ [i("item-icon-border-hover-color")]: "transparent",
2403
+ [i("item-icon-text-hover-color")]: a,
2404
+ // Active
2405
+ [i("item-icon-active-bg-color")]: a,
2406
+ [i("item-icon-active-border-color")]: "transparent",
2407
+ [i("item-icon-active-text-color")]: n
2408
+ },
2409
+ // Error
2410
+ [`${h}-${ye}`]: {
2411
+ [i("item-icon-bg-color")]: l,
2412
+ [i("item-icon-border-color")]: "transparent",
2413
+ [i("item-icon-text-color")]: s,
2414
+ [i("item-icon-dot-bg-color")]: s,
2415
+ // Hover
2416
+ [i("item-icon-bg-hover-color")]: m,
2417
+ [i("item-icon-border-hover-color")]: "transparent",
2418
+ [i("item-icon-text-hover-color")]: s,
2419
+ // Active
2420
+ [i("item-icon-active-bg-color")]: s,
2421
+ [i("item-icon-active-border-color")]: "transparent",
2422
+ [i("item-icon-active-text-color")]: n
2423
+ }
2424
+ }
2425
+ }, {
2426
+ // ========================= Outlined =========================
2427
+ [`&${e}-outlined`]: {
2428
+ [h]: {
2429
+ [i("item-icon-dot-bg-color")]: "transparent"
2430
+ },
2431
+ // Wait
2432
+ [`${h}-${ve}`]: {
2433
+ [i("item-icon-bg-color")]: I,
2434
+ [i("item-icon-border-color")]: o,
2435
+ [i("item-icon-text-color")]: o,
2436
+ [i("item-icon-dot-color")]: o,
2437
+ // Hover
2438
+ [i("item-icon-bg-hover-color")]: "transparent",
2439
+ [i("item-icon-border-hover-color")]: C,
2440
+ [i("item-icon-text-hover-color")]: C,
2441
+ // Active
2442
+ [i("item-icon-active-bg-color")]: d
2443
+ },
2444
+ // Finish & Process
2445
+ [`${h}-${Se}, ${h}-${xe}`]: {
2446
+ [i("item-icon-bg-color")]: I,
2447
+ [i("item-icon-border-color")]: a,
2448
+ [i("item-icon-text-color")]: a,
2449
+ [i("item-icon-dot-color")]: a,
2450
+ // Hover
2451
+ [i("item-icon-bg-hover-color")]: "transparent",
2452
+ [i("item-icon-border-hover-color")]: C,
2453
+ [i("item-icon-text-hover-color")]: C,
2454
+ // Active
2455
+ [i("item-icon-active-bg-color")]: p
2456
+ },
2457
+ // Error
2458
+ [`${h}-${ye}`]: {
2459
+ [i("item-icon-bg-color")]: I,
2460
+ [i("item-icon-border-color")]: s,
2461
+ [i("item-icon-text-color")]: s,
2462
+ [i("item-icon-dot-color")]: s,
2463
+ // Hover
2464
+ [i("item-icon-bg-hover-color")]: "transparent",
2465
+ [i("item-icon-border-hover-color")]: $,
2466
+ [i("item-icon-text-hover-color")]: $,
2467
+ // Active
2468
+ [i("item-icon-active-bg-color")]: l
2469
+ }
2470
+ }
2471
+ }]
2472
+ };
2473
+ }, mo = (t) => {
2474
+ const {
2475
+ componentCls: e,
2476
+ marginXXS: o,
2477
+ paddingSM: n,
2478
+ controlHeight: a,
2479
+ antCls: c,
2480
+ calc: s
2481
+ } = t, $ = `${e}-item`, [m, d] = G(c, "cmp-steps");
2482
+ return {
2483
+ [`${e}-vertical`]: {
2484
+ [m("vertical-rail-margin")]: s(o).mul(1.5).equal(),
2485
+ flexDirection: "column",
2486
+ alignItems: "stretch",
2487
+ // Item
2488
+ [`> ${$}`]: {
2489
+ minHeight: s(a).mul(1.5).equal(),
2490
+ paddingBottom: n,
2491
+ "&:last-child": {
2492
+ paddingBottom: 0
2493
+ },
2494
+ // Icon
2495
+ [`${$}-icon`]: {
2496
+ marginInlineStart: `calc((${d("icon-size-max")} - ${d("icon-size")}) / 2)`
2497
+ },
2498
+ // >>> Rail
2499
+ [`${$}-rail`]: {
2500
+ [m("rail-offset")]: s(d("heading-height")).sub(d("icon-size")).div(2).equal(),
2501
+ borderInlineStartWidth: d("rail-size"),
2502
+ position: "absolute",
2503
+ top: s(d("icon-size")).add(d("item-wrapper-padding-top")).add(d("rail-offset")).add(d("vertical-rail-margin")).equal(),
2504
+ insetInlineStart: s(d("icon-size-max")).div(2).equal(),
2505
+ bottom: s(d("vertical-rail-margin")).sub(d("rail-offset")).equal(),
2506
+ marginInlineStart: `calc(${d("rail-size")} / -2)`
2507
+ }
2508
+ }
2509
+ }
2510
+ };
2511
+ }, po = (t) => {
2512
+ const {
2513
+ componentCls: e,
2514
+ antCls: o
2515
+ } = t, n = `${e}-item`, [a, c] = G(o, "cmp-steps");
2516
+ return {
2517
+ [e]: {
2518
+ [a("title-font-size")]: t.fontSizeLG,
2519
+ [a("title-line-height")]: t.lineHeightLG,
2520
+ [a("subtitle-font-size")]: t.fontSize,
2521
+ [a("subtitle-line-height")]: t.lineHeight,
2522
+ [a("item-wrapper-padding-top")]: "0px",
2523
+ [a("rail-size")]: t.lineWidth,
2524
+ [a("rail-line-style")]: t.lineType,
2525
+ ...Ue(t),
2526
+ display: "flex",
2527
+ flexWrap: "nowrap",
2528
+ alignItems: "flex-start",
2529
+ [n]: {
2530
+ flex: "none",
2531
+ position: "relative"
2532
+ },
2533
+ [`${n}-wrapper`]: {
2534
+ display: "flex",
2535
+ flexWrap: "nowrap",
2536
+ paddingTop: c("item-wrapper-padding-top")
2537
+ },
2538
+ // Icon
2539
+ // Check `./icon.ts`
2540
+ // Header
2541
+ [`${n}-header`]: {
2542
+ display: "flex",
2543
+ flexWrap: "nowrap",
2544
+ alignItems: "center"
2545
+ },
2546
+ // >>> Title
2547
+ [`${n}-title`]: {
2548
+ color: t.colorText,
2549
+ fontSize: c("title-font-size"),
2550
+ lineHeight: c("title-line-height"),
2551
+ wordBreak: "break-word"
2552
+ },
2553
+ // >>> Sub Title
2554
+ [`${n}-subtitle`]: {
2555
+ color: t.colorTextDescription,
2556
+ fontWeight: "normal",
2557
+ fontSize: c("subtitle-font-size"),
2558
+ lineHeight: c("subtitle-line-height"),
2559
+ marginInlineStart: t.marginXS,
2560
+ wordBreak: "break-word"
2561
+ },
2562
+ // Content
2563
+ [`${n}-content`]: {
2564
+ color: t.colorTextDescription,
2565
+ fontSize: t.fontSize,
2566
+ lineHeight: t.lineHeight,
2567
+ wordBreak: "break-word"
2568
+ },
2569
+ // Rail
2570
+ [`${n}-rail`]: {
2571
+ borderStyle: c("rail-line-style"),
2572
+ borderWidth: 0
2573
+ },
2574
+ // Motion
2575
+ [`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]: {
2576
+ transition: `all ${t.motionDurationSlow}`
2577
+ },
2578
+ // ========================== Ellipsis ==========================
2579
+ [`&${e}-ellipsis`]: {
2580
+ [`${n}-title, ${n}-subtitle, ${n}-content`]: bt
2581
+ },
2582
+ // ========================= Clickable ==========================
2583
+ [`${n}[role='button']:not(${n}-active):hover`]: {
2584
+ cursor: "pointer"
2585
+ }
2586
+ }
2587
+ };
2588
+ }, uo = (t) => ({
2589
+ titleLineHeight: t.controlHeight,
2590
+ customIconSize: t.controlHeight,
2591
+ customIconTop: 0,
2592
+ customIconFontSize: t.controlHeightSM,
2593
+ iconSize: t.controlHeight,
2594
+ iconTop: -0.5,
2595
+ // magic for ui experience
2596
+ iconFontSize: t.fontSize,
2597
+ iconSizeSM: t.fontSizeHeading3,
2598
+ dotSize: t.controlHeight / 4,
2599
+ dotCurrentSize: t.controlHeightLG / 4,
2600
+ navArrowColor: t.colorTextDisabled,
2601
+ navContentMaxWidth: "unset",
2602
+ descriptionMaxWidth: void 0,
2603
+ // should be `undefined` to create css var
2604
+ waitIconColor: t.wireframe ? t.colorTextDisabled : t.colorTextLabel,
2605
+ waitIconBgColor: t.wireframe ? t.colorBgContainer : t.colorFillContent,
2606
+ waitIconBorderColor: t.wireframe ? t.colorTextDisabled : "transparent",
2607
+ finishIconBgColor: t.wireframe ? t.colorBgContainer : t.controlItemBgActive,
2608
+ finishIconBorderColor: t.wireframe ? t.colorPrimary : t.controlItemBgActive
2609
+ }), go = De("Steps", (t) => {
2610
+ const e = Be(t, {
2611
+ inlineDotSize: 6
2612
+ });
2613
+ return [po(e), Jt(e), mo(e), Qt(e), oo(e), so(e), ao(e), co(e), no(e), io(e), eo(e), ro(e), lo(e)];
2614
+ }, uo), ho = {
2615
+ itemIcon: St
2616
+ }, vo = (t) => {
2617
+ const {
2618
+ // Style
2619
+ size: e,
2620
+ className: o,
2621
+ rootClassName: n,
2622
+ style: a,
2623
+ variant: c = "filled",
2624
+ type: s,
2625
+ classNames: $,
2626
+ styles: m,
2627
+ // Layout
2628
+ direction: d,
2629
+ orientation: l,
2630
+ responsive: g = !0,
2631
+ progressDot: p,
2632
+ labelPlacement: u,
2633
+ titlePlacement: S,
2634
+ ellipsis: I,
2635
+ offset: C = 0,
2636
+ // Data
2637
+ items: z,
2638
+ percent: R,
2639
+ current: h = 0,
2640
+ onChange: i,
2641
+ // Render
2642
+ iconRender: f,
2643
+ // MISC
2644
+ ...N
2645
+ } = t, w = r.useContext(Vt), b = we("steps"), {
2646
+ getPrefixCls: x,
2647
+ direction: M,
2648
+ className: v,
2649
+ style: A
2650
+ } = b;
2651
+ let q, L, B = {};
2652
+ w ? B = {
2653
+ root: w.rootComponent,
2654
+ item: w.itemComponent
2655
+ } : {
2656
+ classNames: q,
2657
+ styles: L
2658
+ } = b;
2659
+ const T = x(), P = x("steps", t.prefixCls), j = `${P}-item-icon`, [U, D] = go(P), [Y] = G(T, "cmp-steps"), F = Ye(e), k = r.useMemo(() => (z || []).filter(Boolean), [z]), {
2660
+ xs: X
2661
+ } = vt(g), H = r.useMemo(() => s && s !== "default" ? s : p ? "dot" : s, [p, s]), oe = H === "inline", Z = H === "dot" || H === "inline", O = r.useMemo(() => H === "dot" && typeof p == "function" ? p : void 0, [H, p]), V = r.useMemo(() => {
2662
+ const ee = l || d;
2663
+ return H === "panel" ? "horizontal" : g && X || ee === "vertical" ? "vertical" : "horizontal";
2664
+ }, [l, d, H, g, X]), Q = r.useMemo(() => Z || V === "vertical" ? V === "vertical" ? "horizontal" : "vertical" : s === "navigation" ? "horizontal" : S || u || "horizontal", [Z, u, V, S, s]), J = oe ? void 0 : R, pe = {
2665
+ ...t,
2666
+ variant: c,
2667
+ size: F,
2668
+ type: H,
2669
+ orientation: V,
2670
+ titlePlacement: Q,
2671
+ current: h,
2672
+ percent: J,
2673
+ responsive: g,
2674
+ offset: C
2675
+ }, [le, de] = ze([ho, q, $], [L, m], {
2676
+ props: pe
2677
+ }), ue = (ee, K) => {
2678
+ const {
2679
+ item: ae,
2680
+ index: he,
2681
+ active: $e,
2682
+ components: {
2683
+ Icon: fe
2684
+ }
2685
+ } = K, {
2686
+ status: be,
2687
+ icon: ge
2688
+ } = ae;
2689
+ let E = null;
2690
+ if (Z || ge)
2691
+ E = ge;
2692
+ else
2693
+ switch (be) {
2694
+ case "finish":
2695
+ E = /* @__PURE__ */ r.createElement(wt, {
2696
+ className: `${j}-finish`
2697
+ });
2698
+ break;
2699
+ case "error":
2700
+ E = /* @__PURE__ */ r.createElement(Ct, {
2701
+ className: `${j}-error`
2702
+ });
2703
+ break;
2704
+ default: {
2705
+ let se = /* @__PURE__ */ r.createElement("span", {
2706
+ className: `${j}-number`
2707
+ }, K.index + 1);
2708
+ be === "process" && J !== void 0 && (se = /* @__PURE__ */ r.createElement(Zt, {
2709
+ prefixCls: P,
2710
+ rootPrefixCls: T,
2711
+ percent: J
2712
+ }, se)), E = se;
2713
+ }
2714
+ }
2715
+ let _ = /* @__PURE__ */ r.createElement(fe, null, E);
2716
+ return f ? _ = f(_, {
2717
+ index: he,
2718
+ active: $e,
2719
+ item: ae,
2720
+ components: {
2721
+ Icon: fe
2722
+ }
2723
+ }) : typeof O == "function" && (_ = O(_, {
2724
+ index: he,
2725
+ ...ae
2726
+ })), _;
2727
+ }, ne = (ee, K) => {
2728
+ let ae = ee;
2729
+ return oe && K.item.content && (ae = /* @__PURE__ */ r.createElement(xt, {
2730
+ destroyOnHidden: !0,
2731
+ title: K.item.content
2732
+ }, ee)), /* @__PURE__ */ r.createElement(yt, {
2733
+ component: "Steps",
2734
+ disabled: K.item.disabled || !i,
2735
+ colorSource: c === "filled" ? "color" : null
2736
+ }, ae);
2737
+ }, re = H === "panel" ? (ee) => /* @__PURE__ */ r.createElement(r.Fragment, null, ee, /* @__PURE__ */ r.createElement(Kt, {
2738
+ prefixCls: P
2739
+ })) : void 0, ie = {
2740
+ [Y("items-offset")]: `${C}`,
2741
+ ...A,
2742
+ ...a
2743
+ }, te = y(v, `${P}-${c}`, {
2744
+ [`${P}-${H}`]: H !== "dot" ? H : !1,
2745
+ [`${P}-rtl`]: M === "rtl",
2746
+ [`${P}-dot`]: Z,
2747
+ [`${P}-ellipsis`]: I,
2748
+ [`${P}-with-progress`]: J !== void 0,
2749
+ [`${P}-${F}`]: F
2750
+ }, o, n, U, D);
2751
+ return /* @__PURE__ */ r.createElement(Yt, {
2752
+ ...N,
2753
+ // Style
2754
+ prefixCls: P,
2755
+ className: te,
2756
+ style: ie,
2757
+ classNames: le,
2758
+ styles: de,
2759
+ // Layout
2760
+ orientation: V,
2761
+ titlePlacement: Q,
2762
+ components: B,
2763
+ // Data
2764
+ current: h,
2765
+ items: k,
2766
+ onChange: i,
2767
+ // Render
2768
+ iconRender: ue,
2769
+ itemRender: ne,
2770
+ itemWrapperRender: re
2771
+ });
2772
+ };
2773
+ export {
2774
+ yo as Alert,
2775
+ Co as AutoComplete,
2776
+ wo as Badge,
2777
+ zo as Button,
2778
+ Io as Card,
2779
+ No as Checkbox,
2780
+ Eo as Col,
2781
+ Po as Collapse,
2782
+ Ro as ConfigProvider,
2783
+ Mo as DatePicker,
2784
+ To as Descriptions,
2785
+ bo as Divider,
2786
+ qt as Drawer,
2787
+ Do as Dropdown,
2788
+ Bo as Empty,
2789
+ Ho as Form,
2790
+ Wo as Image,
2791
+ ko as Input,
2792
+ Oo as InputNumber,
2793
+ Lo as Menu,
2794
+ Ao as Modal,
2795
+ Fo as Pagination,
2796
+ Xo as Popconfirm,
2797
+ qo as Popover,
2798
+ jo as Progress,
2799
+ _o as Radio,
2800
+ Go as Row,
2801
+ Uo as Segmented,
2802
+ Yo as Select,
2803
+ lt as Skeleton,
2804
+ Vo as Space,
2805
+ Ko as Spin,
2806
+ Zo as Statistic,
2807
+ vo as Steps,
2808
+ Qo as Switch,
2809
+ Jo as Table,
2810
+ en as Tabs,
2811
+ tn as Tag,
2812
+ on as TimePicker,
2813
+ xt as Tooltip,
2814
+ nn as Tree,
2815
+ rn as Typography,
2816
+ an as Upload,
2817
+ fo as message,
2818
+ ln as notification,
2819
+ sn as version
2820
+ };