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