bitz-react-admin-ui 2.10.1 → 2.10.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.
@@ -1,248 +1,204 @@
1
1
  import { j as r } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { useRef as O, useContext as De, useState as G, useEffect as Je, useMemo as h, useLayoutEffect as Qe, useCallback as ce } from "react";
3
- import { isMobile as g } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
- import { Typography as xe, Skeleton as Gt, Alert as It, Table as Yt, Spin as Dt } from "antd";
5
- import ie from "../../../node_modules/classnames/index.mjs";
6
- import Jt from "../../BitzDrawer/index.mjs";
7
- import Qt from "../../BitzPagination/index.mjs";
8
- import Rt from "../../BitzNoData/index.mjs";
2
+ import { useRef as L, useContext as Ke, useState as K, useEffect as He, useMemo as f, useLayoutEffect as Oe, useCallback as A } from "react";
3
+ import { isMobile as C } from "../../../node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Typography as ae, Skeleton as qt, Alert as Kt, Table as Ht, Spin as Ot } from "antd";
5
+ import p from "../../../node_modules/classnames/index.mjs";
6
+ import Vt from "../../BitzDrawer/index.mjs";
7
+ import _t from "../../BitzPagination/index.mjs";
8
+ import vt from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import Ut from "../../BitzList/List.mjs";
10
+ import Gt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import Xt from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import Zt, { BitzTableContext as Et, toolCols as pt } from "../Store/index.mjs";
14
- import { loopFilter as At, columnSort as Ft, genColumnKey as es } from "../Store/utils/index.mjs";
15
- import ts from "../../BitzTheme/index.mjs";
16
- import { tablePaddingInline as ss } from "../../BitzConfigProvider/context.mjs";
17
- import Re from "../../BitzHighlight/index.mjs";
18
- import rs from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import It from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import Yt, { BitzTableContext as Dt, toolCols as Jt } from "../Store/index.mjs";
14
+ import { loopFilter as Qt, columnSort as Ut, genColumnKey as Xt } from "../Store/utils/index.mjs";
15
+ import Zt from "../../BitzTheme/index.mjs";
16
+ import { tablePaddingInline as Et } from "../../BitzConfigProvider/context.mjs";
17
+ import Ve from "../../BitzHighlight/index.mjs";
18
+ import At from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
19
19
  import "../../../node_modules/antd/es/config-provider/index.mjs";
20
- import ns from "../../../node_modules/antd/locale/en_US.mjs";
21
- import { getColumnsWithTool as ls, resetScroll as Ue } from "./utils.mjs";
22
- import { getCssVar as os } from "./style.mjs";
23
- import cs from "./SortableRow.mjs";
24
- import is from "./SortTableContext.mjs";
25
- import us from "./ResizableTitle copy.mjs";
26
- import as from "../TextOverflow/index.mjs";
20
+ import pt from "../../../node_modules/antd/locale/en_US.mjs";
21
+ import { getColumnsWithTool as Ft, resetScroll as _e } from "./utils.mjs";
22
+ import { getCssVar as es } from "./style.mjs";
23
+ import ts from "./SortableRow.mjs";
24
+ import ss from "./SortTableContext.mjs";
25
+ import rs from "./ResizableTitle copy.mjs";
26
+ import ls from "../TextOverflow/index.mjs";
27
27
  import "./index.less.mjs";
28
- import { querySelectorAll as ds, querySelector as hs } from "../../../utils/select-query.mjs";
29
- import { TdCell as fs } from "./TdCell.mjs";
30
- import ms from "../../../node_modules/lodash-es/isNil.mjs";
31
- import { ConfigContext as bs } from "../../../node_modules/antd/es/config-provider/context.mjs";
32
- import ys from "../../../node_modules/lodash-es/at.mjs";
33
- function Cs({
34
- showPagination: R = !0,
35
- height: H,
36
- minHeight: ue,
28
+ import { querySelectorAll as os, querySelector as ns } from "../../../utils/select-query.mjs";
29
+ import { TdCell as cs } from "./TdCell.mjs";
30
+ import { useScrollConfig as is } from "./useScrollConfig.mjs";
31
+ import { ConfigContext as as } from "../../../node_modules/antd/es/config-provider/context.mjs";
32
+ import ds from "../../../node_modules/lodash-es/at.mjs";
33
+ function us({
34
+ showPagination: v = !0,
35
+ height: G,
36
+ minHeight: de,
37
37
  dataSource: z,
38
- total: M = 0,
39
- columns: ae,
38
+ total: W = 0,
39
+ columns: F,
40
40
  loading: a,
41
- dataProps: Xe = {},
42
- skeletonNum: we = {
41
+ dataProps: ve = {},
42
+ skeletonNum: ue = {
43
43
  pc: 10,
44
44
  mobile: 10
45
45
  },
46
- skeletonRender: de,
47
- skeletonRowNum: Ze = 4,
48
- skeletonRowsWidth: Ee = ["35%", "100%", "100%", "60%"],
46
+ skeletonRender: ee,
47
+ skeletonRowNum: Ge = 4,
48
+ skeletonRowsWidth: Ie = ["35%", "100%", "100%", "60%"],
49
49
  // mobileLoadEmit,
50
- mobileRefreshEmit: ge,
50
+ mobileRefreshEmit: fe,
51
51
  operationFilter: d,
52
- enableControlPage: pe,
53
- pagination: x,
54
- paginationEmit: I = () => {
52
+ enableControlPage: Ye,
53
+ pagination: m,
54
+ paginationEmit: H = () => {
55
55
  },
56
- onChange: he,
57
- enabledRowDragSort: Y,
58
- onRowDragEnd: fe,
59
- resizableColumns: F,
56
+ onChange: te,
57
+ enabledRowDragSort: O,
58
+ onRowDragEnd: se,
59
+ resizableColumns: J,
60
60
  // mobilePageHeight = 500,
61
- mobileCancelText: Ae = "取消",
62
- noDataTitle: Fe,
63
- noDataImg: et,
61
+ mobileCancelText: De = "取消",
62
+ noDataTitle: Je,
63
+ noDataImg: Qe,
64
64
  // color,
65
- size: Te,
66
- showTableTool: tt = !0,
67
- tableAction: st,
68
- tableToolbar: rt,
69
- selectionBar: nt,
70
- scroll: f,
71
- components: P,
72
- expandable: k,
73
- rowSelection: V,
74
- selectionAlert: C,
75
- resetPage: lt,
76
- inview: je,
77
- ...u
65
+ size: he,
66
+ showTableTool: Ue = !0,
67
+ tableAction: Xe,
68
+ tableToolbar: Ze,
69
+ selectionBar: Ee,
70
+ scroll: b,
71
+ components: B,
72
+ expandable: N,
73
+ rowSelection: $,
74
+ selectionAlert: h,
75
+ resetPage: Ae,
76
+ inview: me,
77
+ ...n
78
78
  }) {
79
- var ve, _e, Ge;
80
- const { token: W } = ts.useToken(), ze = O([]), { Table: m } = W, Ne = m.tableSpaceBetweenPage ?? 10, ot = m.cellPaddingInline ?? ss, U = m.minHeight ?? 500, { showColumnBorder: me, hideRowBorder: ke, rowHoverable: ct, ...c } = De(Et), [it, ee] = G(!1), [T, ut] = G([]);
81
- Je(() => {
79
+ var Re;
80
+ const { token: k } = Zt.useToken(), be = L([]), { Table: u } = k, pe = u.tableSpaceBetweenPage ?? 10, Fe = u.cellPaddingInline ?? Et, ye = u.minHeight ?? 500, { showColumnBorder: re, hideRowBorder: Ce, rowHoverable: et, ...c } = Ke(Dt), [tt, Q] = K(!1), [x, st] = K([]);
81
+ He(() => {
82
82
  let e = [...z ?? []];
83
- (x == null ? void 0 : x.page) !== 1 && (e = [...T, ...e]), ut(e);
84
- }, [g ? z : 0]);
85
- const We = h(() => !!(T != null && T.length) && (T == null ? void 0 : T.length) >= M, [T, M]), [te, at] = G([]), [dt, Be] = G(!1), ht = async (e, s) => {
86
- var l, o, b;
87
- let t, n = !1;
83
+ (m == null ? void 0 : m.page) !== 1 && (e = [...x, ...e]), st(e);
84
+ }, [C ? z : 0]);
85
+ const xe = f(() => !!(x != null && x.length) && (x == null ? void 0 : x.length) >= W, [x, W]), [U, rt] = K([]), [lt, we] = K(!1), ot = async (e, s) => {
86
+ var o, i, T;
87
+ let t, l = !1;
88
88
  if (typeof d == "function")
89
- t = (l = d == null ? void 0 : d(e, s)) == null ? void 0 : l.filter(
89
+ t = (o = d == null ? void 0 : d(e, s)) == null ? void 0 : o.filter(
90
90
  (y) => y.type !== "divider"
91
91
  );
92
- else if (t = (o = d == null ? void 0 : d.custom) == null ? void 0 : o.call(d, e, s), d != null && d.request) {
93
- Be(!0), ee(!0), n = !0;
92
+ else if (t = (i = d == null ? void 0 : d.custom) == null ? void 0 : i.call(d, e, s), d != null && d.request) {
93
+ we(!0), Q(!0), l = !0;
94
94
  try {
95
95
  const y = await (d == null ? void 0 : d.request(e, s));
96
- (b = d.fieldsName) != null && b.label ? t = y == null ? void 0 : y.map((w) => {
97
- var S;
96
+ (T = d.fieldsName) != null && T.label ? t = y == null ? void 0 : y.map((j) => {
97
+ var _;
98
98
  return {
99
- ...w,
100
- label: w == null ? void 0 : w[((S = d.fieldsName) == null ? void 0 : S.label) ?? "label"]
99
+ ...j,
100
+ label: j == null ? void 0 : j[((_ = d.fieldsName) == null ? void 0 : _.label) ?? "label"]
101
101
  };
102
102
  }) : t = y ?? [];
103
103
  } finally {
104
- Be(!1);
104
+ we(!1);
105
105
  }
106
106
  }
107
- t != null && t.length && (at(t), n || ee(!0));
108
- }, Se = () => {
109
- ee(!1);
110
- }, ft = (e, s) => {
111
- var t, n;
112
- ee(!1), (t = e.onClick) == null || t.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((n = te == null ? void 0 : te[s]) == null ? void 0 : n.key);
113
- }, D = O(null), He = O(null), i = O(null), $ = O(null), X = O(null), mt = (...e) => {
114
- Ue(D), he == null || he(...e);
115
- }, bt = (...e) => {
116
- Ue(D), I == null || I(...e);
117
- }, se = h(() => !(f != null && f.auto) && F, [f == null ? void 0 : f.auto, F]), yt = () => {
107
+ t != null && t.length && (rt(t), l || Q(!0));
108
+ }, Te = () => {
109
+ Q(!1);
110
+ }, nt = (e, s) => {
111
+ var t, l;
112
+ Q(!1), (t = e.onClick) == null || t.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((l = U == null ? void 0 : U[s]) == null ? void 0 : l.key);
113
+ }, le = L(null), je = L(null), g = L(null), S = L(null), ze = L(null), ct = is(g, {
114
+ height: G,
115
+ scroll: b,
116
+ fullscreen: c.fullscreen
117
+ }), it = (...e) => {
118
+ _e(le), te == null || te(...e);
119
+ }, at = (...e) => {
120
+ _e(le), H == null || H(...e);
121
+ }, X = f(() => !(b != null && b.auto) && J, [b == null ? void 0 : b.auto, J]), dt = () => {
118
122
  var t;
119
- const e = ds(
123
+ const e = os(
120
124
  "& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-tbody > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)",
121
- (t = i.current) == null ? void 0 : t.querySelectorAll
125
+ (t = g.current) == null ? void 0 : t.querySelectorAll
122
126
  ), s = [];
123
- if (e == null || e.forEach((n) => {
124
- var l;
127
+ if (e == null || e.forEach((l) => {
128
+ var o;
125
129
  s.push(
126
- ((l = hs("& > .operationCol .actionGroup", n.querySelector)) == null ? void 0 : l.clientWidth) || 0
130
+ ((o = ns("& > .operationCol .actionGroup", l.querySelector)) == null ? void 0 : o.clientWidth) || 0
127
131
  );
128
132
  }), s.length)
129
133
  return Math.ceil(Math.max(...s));
130
- }, Ct = () => {
131
- var l, o, b, y;
132
- let e = (l = i.current) == null ? void 0 : l.querySelector(
134
+ }, ut = () => {
135
+ var o, i, T, y;
136
+ let e = (o = g.current) == null ? void 0 : o.querySelector(
133
137
  ".ant-table-content"
134
138
  );
135
- e || (e = (o = i.current) == null ? void 0 : o.querySelector(
139
+ e || (e = (i = g.current) == null ? void 0 : i.querySelector(
136
140
  ".ant-table-tbody"
137
141
  ));
138
- let s = 0, t = !1, n = 0;
139
- return e && (s = e.clientWidth - (me ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, n = (y = (b = i.current) == null ? void 0 : b.querySelector(
142
+ let s = 0, t = !1, l = 0;
143
+ return e && (s = e.clientWidth - (re ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, l = (y = (T = g.current) == null ? void 0 : T.querySelector(
140
144
  ".ant-table-cell-scrollbar"
141
- )) == null ? void 0 : y.offsetWidth), { hasScrollBar: t, scrollbarSize: n, tbodyWidth: s };
142
- }, re = h(() => a ? ze.current : (ze.current = z, z), [a, z]), { hasScrollBar: v, scrollbarSize: q, tbodyWidth: ne } = h(() => Ct(), [re, c.fullscreen]), be = h(() => {
143
- var S, _, B, E, p, Q, K, N, A, oe, Ie;
144
- if (typeof H > "u" || ms((S = i == null ? void 0 : i.current) == null ? void 0 : S.clientHeight))
145
- return;
146
- (_ = i == null ? void 0 : i.current) == null || _.clientHeight;
147
- const e = ((p = (E = (B = i == null ? void 0 : i.current) == null ? void 0 : B.querySelector) == null ? void 0 : E.call(B, ".ant-table-header")) == null ? void 0 : p.clientHeight) ?? 50, s = ((N = (K = (Q = i == null ? void 0 : i.current) == null ? void 0 : Q.querySelector) == null ? void 0 : K.call(Q, ".bitzTablePagination")) == null ? void 0 : N.clientHeight) ?? 30;
148
- let t = 40;
149
- if (i.current) {
150
- const Ye = window.getComputedStyle(i.current);
151
- parseInt(Ye.getPropertyValue("--cell-height")), t = parseInt(Ye.getPropertyValue("--toolbar-height"));
152
- }
153
- const o = ((((A = X == null ? void 0 : X.current) == null ? void 0 : A.clientHeight) || 30 ? Ne : 0) || 10) + t + s + (e ?? 50), b = (Ie = (oe = i == null ? void 0 : i.current) == null ? void 0 : oe.querySelector) == null ? void 0 : Ie.call(
154
- oe,
155
- ".ant-table-tbody"
156
- ), y = (H > U ? H : U) - o;
157
- if (!document.fullscreenElement && (b == null ? void 0 : b.clientHeight) > y)
158
- return b.style.maxHeight = `${y}px`, y;
159
- }, [
160
- (ve = i == null ? void 0 : i.current) == null ? void 0 : ve.clientHeight,
161
- // @ts-ignore
162
- (_e = D == null ? void 0 : D.current) == null ? void 0 : _e.clientHeight,
163
- c.fullscreen,
164
- H,
165
- ue,
166
- U,
167
- // paginationRect?.height,
168
- re,
169
- // containerBodyRect?.height,
170
- c.tableSize
171
- ]), xt = () => {
145
+ )) == null ? void 0 : y.offsetWidth), { hasScrollBar: t, scrollbarSize: l, tbodyWidth: s };
146
+ }, oe = f(() => a ? be.current : (be.current = z, z), [a, z]), { hasScrollBar: q, scrollbarSize: M, tbodyWidth: Z } = f(() => ut(), [oe, c.fullscreen]), ft = () => {
172
147
  let e = 0;
173
- if (i.current) {
174
- const t = window.getComputedStyle(i.current), n = parseInt(
148
+ if (g.current) {
149
+ const t = window.getComputedStyle(g.current), l = parseInt(
175
150
  t.getPropertyValue("--toolCell-paddingInline")
176
151
  );
177
- e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 * n;
152
+ e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 * l;
178
153
  }
179
154
  let s = 0;
180
- return V && (s += e), k && (s += e), Y && (s += e), s;
181
- }, [L, wt] = G([]), [ye, gt] = G(0);
182
- Qe(() => {
155
+ return $ && (s += e), N && (s += e), O && (s += e), s;
156
+ }, [P, ht] = K([]), [ne, mt] = K(0);
157
+ Oe(() => {
183
158
  var y;
184
- const e = ae ?? [], s = (y = e.find((w) => w.isOperationCol)) == null ? void 0 : y.width, t = e.filter((w) => !pt.includes(w)), l = At(t, c.columnsMap).sort(Ft(c.columnsMap)), o = l.findIndex((w) => w.isOperationCol);
185
- o >= 0 && (l[o].width = s);
186
- let b = 0;
187
- g || (b = xt()), wt(l), gt(b);
188
- }, [c.columnsMap, ae]);
189
- const [j, Tt] = G([]);
190
- Je(() => {
191
- if (se) {
192
- const e = L.map((s, t) => {
193
- let n = s.width;
159
+ const e = F ?? [], s = (y = e.find((j) => j.isOperationCol)) == null ? void 0 : y.width, t = e.filter((j) => !Jt.includes(j)), o = Qt(t, c.columnsMap).sort(Ut(c.columnsMap)), i = o.findIndex((j) => j.isOperationCol);
160
+ i >= 0 && (o[i].width = s);
161
+ let T = 0;
162
+ C || (T = ft()), ht(o), mt(T);
163
+ }, [c.columnsMap, F]);
164
+ const [w, bt] = K([]);
165
+ He(() => {
166
+ if (X) {
167
+ const e = P.map((s, t) => {
168
+ let l = s.width;
194
169
  if (s != null && s.isOperationCol && (s != null && s.useMaxWidth)) {
195
- const o = yt();
196
- o && (n = o + ot * 2);
170
+ const i = dt();
171
+ i && (l = i + Fe * 2);
197
172
  }
198
173
  return {
199
- key: es(s, t),
200
- width: n ?? 0
174
+ key: Xt(s, t),
175
+ width: l ?? 0
201
176
  };
202
177
  });
203
- Tt(e);
178
+ bt(e);
204
179
  }
205
- }, [L, se]);
206
- const jt = O(!1), zt = O(!1), le = h(() => {
207
- let e;
208
- if (typeof be == "number" && (e = be - 1), typeof (f == null ? void 0 : f.y) == "number" && (e = f.y - 2), f != null && f.auto)
209
- return {
210
- x: void 0,
211
- y: e
212
- };
213
- let s = f == null ? void 0 : f.x;
214
- return F && j.length && (s = j.reduce((l, o) => l + o.width, 0) + ye, ne && s < ne - (v ? q : 0) && (jt.current = !0, s = ne)), f != null && f.y ? { x: s, y: f.y } : { x: s, y: e };
180
+ }, [P, X]);
181
+ const yt = L(!1), Ct = L(!1), ce = f(() => {
182
+ let e = b == null ? void 0 : b.x;
183
+ return J && w.length && (e = w.reduce((l, o) => l + o.width, 0) + ne, Z && e < Z - (q ? M : 0) && (yt.current = !0, e = Z)), b != null && b.y ? { x: e, y: b.y } : { x: e, y: scrollY };
215
184
  }, [
216
- f,
217
- be,
218
- F,
219
- j,
220
- ye,
221
- me,
222
- v,
223
- q
224
- ]), Nt = h(() => {
225
- var e, s, t;
226
- if (c.fullscreen) {
227
- const n = document.body.clientHeight, l = (e = document.fullscreenElement) != null && e.classList.contains(
228
- "bz-fullscreen"
229
- ) ? 50 : 0, o = 130, b = (t = (s = document.fullscreenElement) == null ? void 0 : s.querySelector) == null ? void 0 : t.call(
230
- s,
231
- ".ant-table-tbody"
232
- ), y = n - o - l;
233
- if ((b == null ? void 0 : b.clientHeight) > y)
234
- return { y };
235
- }
236
- }, [c.fullscreen]), Z = h(() => {
237
- if (g)
238
- return L;
239
- const e = L.length - 1, s = L.map((t, n) => {
240
- var l;
185
+ b,
186
+ J,
187
+ w,
188
+ ne,
189
+ re,
190
+ q,
191
+ M
192
+ ]), I = f(() => {
193
+ if (C)
194
+ return P;
195
+ const e = P.length - 1, s = P.map((t, l) => {
196
+ var o;
241
197
  return {
242
198
  ...t,
243
199
  ...typeof t.title == "string" && {
244
200
  title: /* @__PURE__ */ r.jsx(
245
- xe.Paragraph,
201
+ ae.Paragraph,
246
202
  {
247
203
  className: "bitzTableTitle",
248
204
  ellipsis: { rows: 2 },
@@ -250,68 +206,68 @@ function Cs({
250
206
  }
251
207
  )
252
208
  },
253
- ...e === n && {
254
- className: ie(t.className, "lastColumn")
209
+ ...e === l && {
210
+ className: p(t.className, "lastColumn")
255
211
  },
256
- width: j.length ? (l = j[n]) == null ? void 0 : l.width : (t == null ? void 0 : t.width) || void 0,
257
- ...le.x !== void 0 ? {
258
- onHeaderCell: (o) => {
259
- var b;
212
+ width: w.length ? (o = w[l]) == null ? void 0 : o.width : (t == null ? void 0 : t.width) || void 0,
213
+ ...ce.x !== void 0 ? {
214
+ onHeaderCell: (i) => {
215
+ var T;
260
216
  return {
261
- ...(b = t.onHeaderCell) == null ? void 0 : b.call(t),
262
- width: o.width,
263
- stretchref: He,
264
- datagridref: $,
265
- onResize: kt(n)
217
+ ...(T = t.onHeaderCell) == null ? void 0 : T.call(t),
218
+ width: i.width,
219
+ stretchref: je,
220
+ datagridref: S,
221
+ onResize: xt(l)
266
222
  };
267
223
  }
268
224
  } : {},
269
225
  ...!(t != null && t.render) && t.copyable ? {
270
- render: (o) => ["number", "bigint"].includes(typeof o) ? o : /* @__PURE__ */ r.jsx(as, { value: o })
226
+ render: (i) => ["number", "bigint"].includes(typeof i) ? i : /* @__PURE__ */ r.jsx(ls, { value: i })
271
227
  } : {}
272
228
  };
273
229
  });
274
- return ls(
275
- ae,
230
+ return Ft(
231
+ F,
276
232
  s,
277
- Y,
278
- !!V,
279
- !!k
233
+ O,
234
+ !!$,
235
+ !!N
280
236
  );
281
- }, [L, j]), kt = (e) => (s, { size: t, minWidth: n }) => {
282
- const o = (t.width > n ? t.width : n) - j[e].width;
283
- if (o === 0)
237
+ }, [P, w]), xt = (e) => (s, { size: t, minWidth: l }) => {
238
+ const i = (t.width > l ? t.width : l) - w[e].width;
239
+ if (i === 0)
284
240
  return;
285
- const y = j.reduce((K, N) => K + N.width, 0) + o + ye, S = ne - (v ? q : 0);
286
- let _ = "", B = -1, E = 0;
287
- if (o < 0 && y < S) {
288
- B = e + 1;
289
- const K = L.length - 1, N = L[K];
290
- (e === K - 1 && (N != null && N.isOperationCol) || e === K && !(N != null && N.isOperationCol)) && (B = e - 1);
291
- let A = 0;
292
- le.x > S && (A = le.x - S), _ = `${j[B].key}`, E = j[B].width - o - A;
241
+ const y = w.reduce((D, R) => D + R.width, 0) + i + ne, _ = Z - (q ? M : 0);
242
+ let E = "", Y = -1, Le = 0;
243
+ if (i < 0 && y < _) {
244
+ Y = e + 1;
245
+ const D = P.length - 1, R = P[D];
246
+ (e === D - 1 && (R != null && R.isOperationCol) || e === D && !(R != null && R.isOperationCol)) && (Y = e - 1);
247
+ let qe = 0;
248
+ ce.x > _ && (qe = ce.x - _), E = `${w[Y].key}`, Le = w[Y].width - i - qe;
293
249
  }
294
- const p = `${j[e].key}`, Q = {
250
+ const $e = `${w[e].key}`, $t = {
295
251
  ...c.columnsMap,
296
- [p]: {
297
- ...c.columnsMap[p],
298
- width: j[e].width + o
252
+ [$e]: {
253
+ ...c.columnsMap[$e],
254
+ width: w[e].width + i
299
255
  },
300
- ..._ && B >= 0 && {
301
- [_]: {
302
- ...c.columnsMap[_],
303
- width: E
256
+ ...E && Y >= 0 && {
257
+ [E]: {
258
+ ...c.columnsMap[E],
259
+ width: Le
304
260
  }
305
261
  }
306
262
  };
307
- c.setColumnsMap(Q), zt.current = !0, c.persistenceType === "online" && c.persistenceKey && c.startAutoSaveCountdown();
308
- }, J = Z, { table: Ce, locale: Wt = ns } = De(bs), Bt = { ...Wt.Table }, St = ((Ge = Ce == null ? void 0 : Ce.expandable) == null ? void 0 : Ge.expandIcon) || (k == null ? void 0 : k.expandIcon) || rs(Bt), Me = h(() => {
309
- if (k)
263
+ c.setColumnsMap($t), Ct.current = !0, c.persistenceType === "online" && c.persistenceKey && c.startAutoSaveCountdown();
264
+ }, V = I, { table: ie, locale: wt = pt } = Ke(as), Tt = { ...wt.Table }, jt = ((Re = ie == null ? void 0 : ie.expandable) == null ? void 0 : Re.expandIcon) || (N == null ? void 0 : N.expandIcon) || At(Tt), Ne = f(() => {
265
+ if (N)
310
266
  return {
311
- ...k,
267
+ ...N,
312
268
  expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
313
269
  expandIcon: (e) => {
314
- const s = St(e);
270
+ const s = jt(e);
315
271
  return {
316
272
  ...s,
317
273
  props: {
@@ -319,86 +275,86 @@ function Cs({
319
275
  disabled: !0,
320
276
  style: {
321
277
  ...s.props.style,
322
- backgroundColor: W.colorBgContainerDisabled
278
+ backgroundColor: k.colorBgContainerDisabled
323
279
  }
324
280
  }
325
281
  };
326
282
  }
327
283
  };
328
- }, [k]), Ht = h(() => a ? Me : k, [a, k, Me]), Pe = h(() => {
329
- if (V)
284
+ }, [N]), zt = f(() => a ? Ne : N, [a, N, Ne]), ke = f(() => {
285
+ if ($)
330
286
  return {
331
- ...V,
287
+ ...$,
332
288
  selectedRowKeys: [],
333
289
  getCheckboxProps: () => ({ disabled: !0 })
334
290
  };
335
- }, [V]), Mt = h(() => a ? Pe : V, [a, V, Pe]), $e = h(() => a ? "key" : u.rowKey, [a, u.rowKey]), qe = h(() => `${Te ?? c.stylesConfig.size}BitzTable`, [Te, c.stylesConfig.size]), Pt = ce(
291
+ }, [$]), Nt = f(() => a ? ke : $, [a, $, ke]), We = f(() => a ? "key" : n.rowKey, [a, n.rowKey]), Be = f(() => `${he ?? c.stylesConfig.size}BitzTable`, [he, c.stylesConfig.size]), kt = A(
336
292
  (e, s) => {
337
- var n;
338
- if (!u.onRow || a)
293
+ var l;
294
+ if (!n.onRow || a)
339
295
  return {};
340
- const t = (n = u.onRow) == null ? void 0 : n.call(u, e, s);
296
+ const t = (l = n.onRow) == null ? void 0 : l.call(n, e, s);
341
297
  return t.onClick && (t.className = "rowPointerCursor"), t;
342
298
  },
343
- [u.onRow, a]
344
- ), $t = h(() => ie(
299
+ [n.onRow, a]
300
+ ), Wt = f(() => p(
345
301
  "bitzTableContainer",
346
- { hideBorder: ke },
347
- { hasScrollBar: v },
348
- { stickyTable: !!(u != null && u.sticky) },
349
- qe,
350
- u.className
302
+ { hideBorder: Ce },
303
+ { hasScrollBar: q },
304
+ { stickyTable: !!(n != null && n.sticky) },
305
+ Be,
306
+ n.className
351
307
  ), [
352
- u.className,
353
- qe,
354
- v,
308
+ n.className,
309
+ Be,
310
+ q,
355
311
  c.fullscreen,
356
- ke,
357
- u.sticky
358
- ]), qt = h(() => ({
359
- "--container-bgColor": W.colorBgContainer
360
- }), [W.colorBgContainer]), Lt = h(() => {
361
- const e = ue ?? U;
312
+ Ce,
313
+ n.sticky
314
+ ]), Bt = f(() => ({
315
+ "--container-bgColor": k.colorBgContainer
316
+ }), [k.colorBgContainer]), gt = f(() => {
317
+ const e = de ?? ye;
362
318
  let s;
363
- H && (s = H >= e ? H : e);
319
+ G && (s = G >= e ? G : e);
364
320
  const t = c.fullscreen ? "100%" : s;
365
- let n;
366
- return (q ?? 0) > 0 && (n = q), os({
321
+ let l;
322
+ return (M ?? 0) > 0 && (l = M), es({
367
323
  height: t ?? "auto",
368
- token: W,
369
- evenRowBgColor: c.zebra ? m == null ? void 0 : m.evenRowBgColor : W.colorBgContainer,
370
- table: m,
371
- gap: Ne,
372
- borderColor: (m == null ? void 0 : m.borderColor) || W.colorBorderSecondary,
373
- scrollbarWidth: n,
374
- other: u.style
324
+ token: k,
325
+ evenRowBgColor: c.zebra ? u == null ? void 0 : u.evenRowBgColor : k.colorBgContainer,
326
+ table: u,
327
+ gap: pe,
328
+ borderColor: (u == null ? void 0 : u.borderColor) || k.colorBorderSecondary,
329
+ scrollbarWidth: l,
330
+ other: n.style
375
331
  });
376
332
  }, [
377
- u.style,
333
+ n.style,
378
334
  c.fullscreen,
379
- H,
380
- ue,
381
- U,
382
- m,
335
+ G,
336
+ de,
337
+ ye,
338
+ u,
383
339
  c == null ? void 0 : c.zebra,
384
- q
385
- ]), Kt = ce(
340
+ M
341
+ ]), St = A(
386
342
  (e, s, t) => {
387
- const n = s % 2 === 0 ? "oddRow" : "evenRow";
388
- if (u.rowClassName) {
389
- const l = u.rowClassName(e, s, t);
390
- return ie(n, l);
343
+ const l = s % 2 === 0 ? "oddRow" : "evenRow";
344
+ if (n.rowClassName) {
345
+ const o = n.rowClassName(e, s, t);
346
+ return p(l, o);
391
347
  }
392
- return n;
348
+ return l;
393
349
  },
394
- [u.rowClassName]
395
- ), Le = h(() => /* @__PURE__ */ r.jsx(
396
- Ut,
350
+ [n.rowClassName]
351
+ ), ge = f(() => /* @__PURE__ */ r.jsx(
352
+ Gt,
397
353
  {
398
- finished: We,
354
+ finished: xe,
399
355
  onLoad: async () => (
400
356
  // @ts-ignore
401
- !a && (I == null ? void 0 : I((x == null ? void 0 : x.page) + 1, x == null ? void 0 : x.size))
357
+ !a && (H == null ? void 0 : H((m == null ? void 0 : m.page) + 1, m == null ? void 0 : m.size))
402
358
  ),
403
359
  loadingText: "加载中...",
404
360
  finishedText: "没有更多了",
@@ -407,55 +363,55 @@ function Cs({
407
363
  "div",
408
364
  {
409
365
  className: "mobileList",
410
- style: { backgroundColor: m == null ? void 0 : m.mobileListBgColor },
366
+ style: { backgroundColor: u == null ? void 0 : u.mobileListBgColor },
411
367
  children: [
412
- T == null ? void 0 : T.map((e, s) => /* @__PURE__ */ r.jsx(
368
+ x == null ? void 0 : x.map((e, s) => /* @__PURE__ */ r.jsx(
413
369
  "div",
414
370
  {
415
371
  className: "listItem",
416
- style: { backgroundColor: m == null ? void 0 : m.listItemBgColor },
417
- onClick: () => ht(e, s),
418
- children: Z == null ? void 0 : Z.map((t, n) => {
419
- var l;
372
+ style: { backgroundColor: u == null ? void 0 : u.listItemBgColor },
373
+ onClick: () => ot(e, s),
374
+ children: I == null ? void 0 : I.map((t, l) => {
375
+ var o;
420
376
  return !(t != null && t.mobileHide) && /* @__PURE__ */ r.jsxs(
421
377
  "div",
422
378
  {
423
379
  className: "row",
424
- style: { color: W.colorText },
380
+ style: { color: k.colorText },
425
381
  children: [
426
382
  !t.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
427
383
  `${t.title}`,
428
384
  ":"
429
385
  ] }),
430
- /* @__PURE__ */ r.jsx("div", { className: "value", children: ((l = t == null ? void 0 : t.render) == null ? void 0 : l.call(
386
+ /* @__PURE__ */ r.jsx("div", { className: "value", children: ((o = t == null ? void 0 : t.render) == null ? void 0 : o.call(
431
387
  t,
432
- ys(e, (t == null ? void 0 : t.dataIndex) || ""),
388
+ ds(e, (t == null ? void 0 : t.dataIndex) || ""),
433
389
  e,
434
390
  s
435
391
  )) || (e == null ? void 0 : e[t.dataIndex]) })
436
392
  ]
437
393
  },
438
- n
394
+ l
439
395
  );
440
396
  })
441
397
  },
442
398
  s
443
399
  )),
444
- Array.from({ length: we.mobile ?? 2 }).map((e, s) => /* @__PURE__ */ r.jsx(
400
+ Array.from({ length: ue.mobile ?? 2 }).map((e, s) => /* @__PURE__ */ r.jsx(
445
401
  "div",
446
402
  {
447
403
  className: "listItem",
448
404
  style: {
449
405
  display: a ? "block" : "none",
450
- backgroundColor: m == null ? void 0 : m.listItemBgColor
406
+ backgroundColor: u == null ? void 0 : u.listItemBgColor
451
407
  },
452
- children: /* @__PURE__ */ r.jsx("div", { className: "row", children: de ? de() : /* @__PURE__ */ r.jsx(
453
- Gt,
408
+ children: /* @__PURE__ */ r.jsx("div", { className: "row", children: ee ? ee() : /* @__PURE__ */ r.jsx(
409
+ qt,
454
410
  {
455
411
  title: !1,
456
412
  paragraph: {
457
- rows: Ze,
458
- width: Ee
413
+ rows: Ge,
414
+ width: Ie
459
415
  },
460
416
  active: !0
461
417
  }
@@ -468,118 +424,118 @@ function Cs({
468
424
  )
469
425
  }
470
426
  ), [
471
- g ? We : 0,
472
- g ? a : 0,
473
- g ? x : 0,
474
- g ? m : 0,
475
- g ? T : 0,
476
- g ? Z : 0,
477
- g ? we : 0,
478
- g ? de : 0
427
+ C ? xe : 0,
428
+ C ? a : 0,
429
+ C ? m : 0,
430
+ C ? u : 0,
431
+ C ? x : 0,
432
+ C ? I : 0,
433
+ C ? ue : 0,
434
+ C ? ee : 0
479
435
  ]);
480
- Qe(() => {
481
- c.setSelected(!!(C != null && C.num));
482
- }, [C]);
483
- const Ke = h(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
436
+ Oe(() => {
437
+ c.setSelected(!!(h != null && h.num));
438
+ }, [h]);
439
+ const Se = f(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
484
440
  /* @__PURE__ */ r.jsx(
485
- Re,
441
+ Ve,
486
442
  {
487
443
  highlightTag: "strong",
488
- keywords: `${M}`,
489
- sourceString: `共 ${M} 条`,
444
+ keywords: `${W}`,
445
+ sourceString: `共 ${W} 条`,
490
446
  tagClass: "totalText"
491
447
  }
492
448
  ),
493
- !!C && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
494
- /* @__PURE__ */ r.jsx(xe.Text, { className: "splitBorder", children: "/" }),
449
+ !!h && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
450
+ /* @__PURE__ */ r.jsx(ae.Text, { className: "splitBorder", children: "/" }),
495
451
  /* @__PURE__ */ r.jsx(
496
- Re,
452
+ Ve,
497
453
  {
498
454
  highlightTag: "strong",
499
- keywords: `${(C == null ? void 0 : C.num) ?? 0}`,
500
- sourceString: `已选中 ${(C == null ? void 0 : C.num) ?? 0} 条`
455
+ keywords: `${(h == null ? void 0 : h.num) ?? 0}`,
456
+ sourceString: `已选中 ${(h == null ? void 0 : h.num) ?? 0} 条`
501
457
  }
502
458
  ),
503
- !!(C != null && C.num) && /* @__PURE__ */ r.jsx(
504
- xe.Link,
459
+ !!(h != null && h.num) && /* @__PURE__ */ r.jsx(
460
+ ae.Link,
505
461
  {
506
462
  className: "cleanSelected",
507
- onClick: C == null ? void 0 : C.onClear,
463
+ onClick: h == null ? void 0 : h.onClear,
508
464
  children: "取消选中"
509
465
  }
510
466
  )
511
467
  ] })
512
- ] }), [M, C]), Ot = (e) => {
513
- a || fe == null || fe(e);
514
- }, Oe = ce(() => Y ? {
515
- row: (e) => cs({ ...e, loading: a == null ? void 0 : a.toString() })
516
- } : {}, [Y, Y ? a : !1]), Ve = ce(
468
+ ] }), [W, h]), Mt = (e) => {
469
+ a || se == null || se(e);
470
+ }, Me = A(() => O ? {
471
+ row: (e) => ts({ ...e, loading: a == null ? void 0 : a.toString() })
472
+ } : {}, [O, O ? a : !1]), Pe = A(
517
473
  (e) => {
518
- if (se)
519
- return us({ ...e, hasScrollBar: v, scrollbarSize: q });
474
+ if (X)
475
+ return rs({ ...e, hasScrollBar: q, scrollbarSize: M });
520
476
  const s = { ...e };
521
477
  return /* @__PURE__ */ r.jsx("th", { ...s });
522
478
  },
523
- [v, q, se, c.fullscreen]
524
- ), Vt = h(() => u != null && u.virtual ? {} : je ?? (x == null ? void 0 : x.size) > 10 ? { cell: fs } : {}, [je, u == null ? void 0 : u.virtual, z, x, c.fullscreen]), vt = h(() => ({
525
- ...P,
479
+ [q, M, X, c.fullscreen]
480
+ ), Pt = f(() => n != null && n.virtual ? {} : me ?? (m == null ? void 0 : m.size) > 10 ? { cell: cs } : {}, [me, n == null ? void 0 : n.virtual, z, m, c.fullscreen]), Rt = f(() => ({
481
+ ...B,
526
482
  header: {
527
- ...P == null ? void 0 : P.header,
528
- cell: Ve
483
+ ...B == null ? void 0 : B.header,
484
+ cell: Pe
529
485
  },
530
486
  body: {
531
- ...Vt,
532
- ...P == null ? void 0 : P.body,
533
- ...Oe()
487
+ ...Pt,
488
+ ...B == null ? void 0 : B.body,
489
+ ...Me()
534
490
  }
535
- }), [P, Ve, Oe]), _t = h(() => {
491
+ }), [B, Pe, Me]), Lt = f(() => {
536
492
  var e;
537
- if ((J == null ? void 0 : J.length) > 5 && ($ != null && $.current)) {
538
- const s = J.reduce(
539
- (n, l) => (l.fixed && (n += l.width), n),
493
+ if ((V == null ? void 0 : V.length) > 5 && (S != null && S.current)) {
494
+ const s = V.reduce(
495
+ (l, o) => (o.fixed && (l += o.width), l),
540
496
  0
541
- ), t = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.clientWidth;
497
+ ), t = (e = S == null ? void 0 : S.current) == null ? void 0 : e.clientWidth;
542
498
  return s > t - 300;
543
499
  }
544
500
  return !1;
545
- }, [J]);
501
+ }, [V]);
546
502
  return /* @__PURE__ */ r.jsxs(
547
503
  "div",
548
504
  {
549
- className: ie("bitzTableBlock", {
505
+ className: p("bitzTableBlock", {
550
506
  fullscreen: c.fullscreen
551
507
  }),
552
- style: qt,
553
- ...Xe,
508
+ style: Bt,
509
+ ...ve,
554
510
  children: [
555
- !g && /* @__PURE__ */ r.jsxs("div", { ref: i, className: $t, style: Lt, children: [
556
- /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: $, children: [
557
- tt && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
558
- st || /* @__PURE__ */ r.jsx("div", {}),
559
- rt,
560
- nt
511
+ !C && /* @__PURE__ */ r.jsxs("div", { ref: g, className: Wt, style: gt, children: [
512
+ /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: S, children: [
513
+ Ue && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
514
+ Xe || /* @__PURE__ */ r.jsx("div", {}),
515
+ Ze,
516
+ Ee
561
517
  ] }),
562
518
  /* @__PURE__ */ r.jsx(
563
519
  "div",
564
520
  {
565
521
  className: "stretchLine",
566
- ref: He,
522
+ ref: je,
567
523
  style: {
568
- background: W.colorPrimary,
524
+ background: k.colorPrimary,
569
525
  bottom: 0
570
526
  }
571
527
  }
572
528
  ),
573
529
  /* @__PURE__ */ r.jsxs(
574
- is,
530
+ ss,
575
531
  {
576
- enabledRowDragSort: Y,
577
- dataSource: re,
578
- mergeRowKey: $e,
579
- onDragEnd: Ot,
532
+ enabledRowDragSort: O,
533
+ dataSource: oe,
534
+ mergeRowKey: We,
535
+ onDragEnd: Mt,
580
536
  children: [
581
- _t && /* @__PURE__ */ r.jsx(
582
- It,
537
+ Lt && /* @__PURE__ */ r.jsx(
538
+ Kt,
583
539
  {
584
540
  closable: !0,
585
541
  type: "error",
@@ -587,85 +543,85 @@ function Cs({
587
543
  }
588
544
  ),
589
545
  /* @__PURE__ */ r.jsx(
590
- Yt,
546
+ Ht,
591
547
  {
592
- ...u,
593
- bordered: me,
594
- columns: J,
595
- dataSource: re,
548
+ ...n,
549
+ bordered: re,
550
+ columns: V,
551
+ dataSource: oe,
596
552
  loading: a,
597
553
  pagination: !1,
598
- scroll: { ...le, ...Nt },
599
- expandable: Ht,
600
- rowSelection: Mt,
601
- onRow: Pt,
602
- rowHoverable: ct,
603
- rowClassName: Kt,
554
+ scroll: ct,
555
+ expandable: zt,
556
+ rowSelection: Nt,
557
+ onRow: kt,
558
+ rowHoverable: et,
559
+ rowClassName: St,
604
560
  className: "bitzTable",
605
- components: vt,
606
- rowKey: $e,
607
- onChange: mt,
608
- ref: D
561
+ components: Rt,
562
+ rowKey: We,
563
+ onChange: it,
564
+ ref: le
609
565
  }
610
566
  )
611
567
  ]
612
568
  }
613
569
  )
614
570
  ] }),
615
- R && !!M && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: X, children: [
616
- Ke,
571
+ v && !!W && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: ze, children: [
572
+ Se,
617
573
  /* @__PURE__ */ r.jsx(
618
- Qt,
574
+ _t,
619
575
  {
620
576
  size: "small",
621
- enableControl: pe,
622
- pagination: x,
623
- total: M,
577
+ enableControl: Ye,
578
+ pagination: m,
579
+ total: W,
624
580
  dataSource: z,
625
- resetPage: lt,
581
+ resetPage: Ae,
626
582
  hideTotalText: !0,
627
- paginationEmit: bt
583
+ paginationEmit: at
628
584
  }
629
585
  )
630
586
  ] }),
631
- !R && !!C && !!M && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: X, children: Ke })
587
+ !v && !!h && !!W && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: ze, children: Se })
632
588
  ] }),
633
- g && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
634
- (a || !!(z != null && z.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: ge ? (
589
+ C && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
590
+ (a || !!(z != null && z.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: fe ? (
635
591
  // @ts-ignore
636
592
  /* @__PURE__ */ r.jsx(
637
- Xt,
593
+ It,
638
594
  {
639
- onRefresh: async () => !a && ge(),
640
- children: Le
595
+ onRefresh: async () => !a && fe(),
596
+ children: ge
641
597
  }
642
598
  )
643
- ) : Le }),
644
- !a && /* @__PURE__ */ r.jsx(Rt, { data: z, title: Fe, img: et }),
599
+ ) : ge }),
600
+ !a && /* @__PURE__ */ r.jsx(vt, { data: z, title: Je, img: Qe }),
645
601
  /* @__PURE__ */ r.jsx(
646
- Jt,
602
+ Vt,
647
603
  {
648
604
  className: "tableMobileDrawer",
649
- open: it,
605
+ open: tt,
650
606
  placement: "bottom",
651
607
  height: "auto",
652
608
  closable: !1,
653
- onClose: Se,
609
+ onClose: Te,
654
610
  children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
655
- /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: dt ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Dt, {}) }) : te.map((e, s) => /* @__PURE__ */ r.jsx(
611
+ /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: lt ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Ot, {}) }) : U.map((e, s) => /* @__PURE__ */ r.jsx(
656
612
  "div",
657
613
  {
658
614
  className: "operaList",
659
- onClick: () => ft(e, s),
615
+ onClick: () => nt(e, s),
660
616
  ...e.danger && {
661
- style: { color: W.colorError }
617
+ style: { color: k.colorError }
662
618
  },
663
619
  children: e.label
664
620
  },
665
621
  s
666
622
  )) }),
667
623
  /* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
668
- /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: Se, children: Ae })
624
+ /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: Te, children: De })
669
625
  ] })
670
626
  }
671
627
  )
@@ -674,7 +630,7 @@ function Cs({
674
630
  }
675
631
  );
676
632
  }
677
- const Es = (R) => /* @__PURE__ */ r.jsx(Zt, { initValue: R, children: /* @__PURE__ */ r.jsx(Cs, { ...R }) });
633
+ const Ds = (v) => /* @__PURE__ */ r.jsx(Yt, { initValue: v, children: /* @__PURE__ */ r.jsx(us, { ...v }) });
678
634
  export {
679
- Es as default
635
+ Ds as default
680
636
  };