bitz-react-admin-ui 2.10.2 → 2.10.4

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