@glodon-aiot/dataset-annotation 3.24.0-alpha.6 → 3.25.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/es/components/ClassificationAnnotation/index.mjs +399 -343
  2. package/dist/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +82 -78
  3. package/dist/es/components/DetectionAnnotation/components/ImageModal/index.mjs +28 -26
  4. package/dist/es/components/DetectionAnnotation/components/LabelMaker/index.mjs +173 -166
  5. package/dist/es/components/DetectionAnnotation/index.mjs +478 -473
  6. package/dist/es/components/OcrAnnotation/OCRBoxDetail/index.mjs +249 -230
  7. package/dist/es/components/OcrAnnotation/OcrModal/index.mjs +103 -98
  8. package/dist/es/components/OcrAnnotation/index.mjs +281 -243
  9. package/dist/es/components/VLMAnnotationDetail/VLMDetail/index.mjs +277 -272
  10. package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +42 -40
  11. package/dist/es/components/VLMAnnotationDetail/index.mjs +331 -278
  12. package/dist/es/index.mjs +1 -1
  13. package/dist/es/utils/checkVlmSampleLabeled.mjs +7 -0
  14. package/dist/es/utils/scrollSampleIntoView.mjs +16 -0
  15. package/dist/lib/index.js +4 -4
  16. package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +2 -0
  17. package/dist/src/components/DetectionAnnotation/components/ImageModal/index.d.ts +2 -0
  18. package/dist/src/components/OcrAnnotation/OCRBoxDetail/index.d.ts +2 -0
  19. package/dist/src/components/OcrAnnotation/OcrModal/index.d.ts +1 -0
  20. package/dist/src/components/VLMAnnotationDetail/VLMDetail/index.d.ts +6 -0
  21. package/dist/src/components/VLMAnnotationDetail/VlmModal/index.d.ts +5 -0
  22. package/dist/src/utils/checkVlmSampleLabeled.d.ts +8 -0
  23. package/dist/src/utils/scrollSampleIntoView.d.ts +9 -0
  24. package/package.json +2 -2
@@ -1,355 +1,410 @@
1
- var Ye = Object.defineProperty, et = Object.defineProperties;
2
- var tt = Object.getOwnPropertyDescriptors;
3
- var Ne = Object.getOwnPropertySymbols;
4
- var lt = Object.prototype.hasOwnProperty, it = Object.prototype.propertyIsEnumerable;
5
- var ke = (D, c, o) => c in D ? Ye(D, c, { enumerable: !0, configurable: !0, writable: !0, value: o }) : D[c] = o, u = (D, c) => {
6
- for (var o in c || (c = {}))
7
- lt.call(c, o) && ke(D, o, c[o]);
8
- if (Ne)
9
- for (var o of Ne(c))
10
- it.call(c, o) && ke(D, o, c[o]);
1
+ var ot = Object.defineProperty, rt = Object.defineProperties;
2
+ var lt = Object.getOwnPropertyDescriptors;
3
+ var Ee = Object.getOwnPropertySymbols;
4
+ var st = Object.prototype.hasOwnProperty, ct = Object.prototype.propertyIsEnumerable;
5
+ var Me = (D, f, l) => f in D ? ot(D, f, { enumerable: !0, configurable: !0, writable: !0, value: l }) : D[f] = l, v = (D, f) => {
6
+ for (var l in f || (f = {}))
7
+ st.call(f, l) && Me(D, l, f[l]);
8
+ if (Ee)
9
+ for (var l of Ee(f))
10
+ ct.call(f, l) && Me(D, l, f[l]);
11
11
  return D;
12
- }, h = (D, c) => et(D, tt(c));
13
- import { jsx as n, jsxs as E } from "react/jsx-runtime";
14
- import { useRef as se, useState as d, useEffect as N } from "react";
15
- import { message as j, ConfigProvider as ot, Space as ce, Select as nt, Button as Te, Tabs as rt, Col as st, Tooltip as ct, Empty as we, Spin as Ee, Modal as at } from "antd";
16
- import dt from "rc-virtual-list";
17
- import { UploadZipsStatus as Y } from "@glodon-aiot/apis";
18
- import ft from "antd/es/locale/zh_CN";
19
- import ut from "../../DatasetContext/index.mjs";
20
- import ht from "../DetectionAnnotation/icon_item_empty.svg.mjs";
12
+ }, b = (D, f) => rt(D, lt(f));
13
+ import { jsx as s, jsxs as M } from "react/jsx-runtime";
14
+ import { useRef as B, useState as h, useEffect as N } from "react";
15
+ import { message as G, ConfigProvider as at, Space as ue, Select as dt, Button as Ae, Tabs as ft, Col as ut, Tooltip as ht, Empty as ze, Spin as Fe, Modal as mt } from "antd";
16
+ import gt from "rc-virtual-list";
17
+ import { UploadZipsStatus as ie } from "@glodon-aiot/apis";
18
+ import vt from "antd/es/locale/zh_CN";
19
+ import bt from "../../DatasetContext/index.mjs";
20
+ import pt from "../DetectionAnnotation/icon_item_empty.svg.mjs";
21
21
  import "./style.less.mjs";
22
- import { tagColors as Me } from "../../utils/index.mjs";
23
- import { useKeyPress as mt } from "ahooks";
24
- import { SearchOutlined as bt } from "@ant-design/icons";
25
- import gt from "../../Common/Page/index.mjs";
26
- import vt from "../PageNav/index.mjs";
27
- import pt from "../Thumbnail/index.mjs";
28
- import Ct from "../CompositionInput/index.mjs";
29
- import It from "lodash/merge";
30
- import { DEFAULT_FILTER_SWITCH as St } from "../../constant.mjs";
31
- import xt from "../DetectionStatus/index.mjs";
32
- import yt from "./components/ClassificationImageModal/index.mjs";
33
- import Lt from "../DetectionAnnotation/components/Labels/index.mjs";
34
- import Dt from "../PicZipImportModal/index.mjs";
35
- import { Prompt as Vt } from "../hooks/Prompt.mjs";
36
- const Qt = (D) => {
37
- var Le, De;
22
+ import { tagColors as Pe } from "../../utils/index.mjs";
23
+ import { scrollSampleIntoView as Ct, getVirtualListHolder as It } from "../../utils/scrollSampleIntoView.mjs";
24
+ import { useKeyPress as xt } from "ahooks";
25
+ import { SearchOutlined as St } from "@ant-design/icons";
26
+ import Lt from "../../Common/Page/index.mjs";
27
+ import yt from "../PageNav/index.mjs";
28
+ import Vt from "../Thumbnail/index.mjs";
29
+ import Dt from "../CompositionInput/index.mjs";
30
+ import Nt from "lodash/merge";
31
+ import { DEFAULT_FILTER_SWITCH as kt } from "../../constant.mjs";
32
+ import wt from "../DetectionStatus/index.mjs";
33
+ import Tt from "./components/ClassificationImageModal/index.mjs";
34
+ import Rt from "../DetectionAnnotation/components/Labels/index.mjs";
35
+ import Et from "../PicZipImportModal/index.mjs";
36
+ import { Prompt as Mt } from "../hooks/Prompt.mjs";
37
+ const ln = (D) => {
38
+ var ke, we;
38
39
  const {
39
- services: c,
40
- datasetId: o,
41
- versionId: ee,
42
- backTo: Re,
43
- labelManager: ae = !1,
44
- datasetManager: T = !1,
45
- annotation: Ae,
46
- header: m = {
40
+ services: f,
41
+ datasetId: l,
42
+ versionId: oe,
43
+ backTo: Ue,
44
+ labelManager: he = !1,
45
+ datasetManager: w = !1,
46
+ annotation: He,
47
+ header: C = {
47
48
  versionSelect: !1
48
49
  }
49
- } = D, q = It(u({}, St), D.filterSwitch), _ = se(null), te = se(null), [C, ze] = d(), [i, G] = d(), [le, Ue] = d([]), [de, fe] = d(!1), [H, Fe] = d(0), [J, Be] = d(0), [a, ie] = d(""), [A, He] = d(0), [w, ue] = d([]), [b, oe] = d([]), [he, K] = d(!1), [P, z] = d(!1), [M, v] = d(-1), [I, p] = d(), [S, y] = d(), [x, V] = d({
50
+ } = D, J = Nt(v({}, kt), D.filterSwitch), K = B(null), re = B(null), [L, Oe] = h(), [o, Q] = h(), [le, Be] = h([]), [me, ge] = h(!1), [Z, Ke] = h(0), [X, Ze] = h(0), [c, se] = h(""), [F, qe] = h(0), [T, ve] = h([]), [p, ce] = h([]), [be, q] = h(!1), [W, P] = h(!1), [R, I] = h(-1), [m, x] = h(), [y, S] = h(), [a, V] = h({
50
51
  current: 0,
51
52
  pageSize: 100
52
- }), [Z, ne] = d([]), [O, Ke] = d(""), U = se({}), [Pe, Ze] = d(), [me, be] = d(!1), [ge, Oe] = d(!1), [ve, We] = d(!0), [$e, je] = d(!1), [W, qe] = d(""), pe = () => {
53
- p(void 0), y(void 0), v(-1), K(!1), Q(), setTimeout(() => {
54
- V((e) => h(u({}, e), {
53
+ }), [$, ae] = h([]), [j, We] = h(""), A = B({}), de = B(void 0), Y = B(!1), ee = B(!1), [$e, je] = h(), [pe, Ce] = h(!1), [Ie, _e] = h(!1), [xe, Ge] = h(!0), [Je, Qe] = h(!1), [_, Xe] = h(""), Se = () => {
54
+ x(void 0), S(void 0), I(-1), q(!1), te(), setTimeout(() => {
55
+ V((e) => b(v({}, e), {
55
56
  current: 1,
56
57
  type: void 0
57
58
  }));
58
59
  }, 10);
59
60
  };
60
- mt("Esc", pe), N(() => {
61
- o && c.cvforceDatahub.getS3Iam(o).then((e) => {
62
- Ze(e);
61
+ xt("Esc", Se), N(() => {
62
+ l && f.cvforceDatahub.getS3Iam(l).then((e) => {
63
+ je(e);
63
64
  });
64
- }, [o, c.cvforceDatahub]), N(() => {
65
- o && (fe(!0), Promise.all([c.cvforceDatahub.getDatasetsId(o).then(ze), c.cvforceDatahub.getDatasetsIdVersions(o, 1, 1e3).then((e) => {
66
- Ue(e.recordList), G(ee ? e.recordList.find((t) => t.id === ee) : e.recordList[0]);
67
- })]).finally(() => fe(!1)));
68
- }, [o, ee]), N(() => {
65
+ }, [l, f.cvforceDatahub]), N(() => {
66
+ l && (ge(!0), Promise.all([f.cvforceDatahub.getDatasetsId(l).then(Oe), f.cvforceDatahub.getDatasetsIdVersions(l, 1, 1e3).then((e) => {
67
+ Be(e.recordList), Q(oe ? e.recordList.find((n) => n.id === oe) : e.recordList[0]);
68
+ })]).finally(() => ge(!1)));
69
+ }, [l, oe]), N(() => {
69
70
  k();
70
- }, [i == null ? void 0 : i.id, O]), N(() => {
71
- Q();
72
- }, [i, a]), N(() => {
73
- !i || !C || $(h(u({}, x), {
71
+ }, [o == null ? void 0 : o.id, j]), N(() => {
72
+ te();
73
+ }, [o, c]), N(() => {
74
+ !o || !L || U(b(v({}, a), {
74
75
  current: 1
75
76
  }));
76
- }, [C == null ? void 0 : C.id, i == null ? void 0 : i.id, Z, O]), N(() => {
77
- $().then(() => {
77
+ }, [L == null ? void 0 : L.id, o == null ? void 0 : o.id, $, j]), N(() => {
78
+ if (Y.current) {
79
+ Y.current = !1;
80
+ return;
81
+ }
82
+ if (de.current === a.current) {
83
+ de.current = void 0, k();
84
+ return;
85
+ }
86
+ U().then(() => {
78
87
  }), k();
79
- }, [x.current]), N(() => {
80
- P || (p(void 0), y(void 0), K(!1), v(-1), Q(), k());
81
- }, [P]), N(() => {
82
- !i || !C || $(h(u({}, x), {
88
+ }, [a.current]), N(() => {
89
+ let e;
90
+ if (!W) {
91
+ const n = m == null ? void 0 : m.id, t = R;
92
+ x(void 0), S(void 0), q(!1), I(-1), te(), k(), n !== void 0 && (e = requestAnimationFrame(() => {
93
+ Ct(It(K.current), n, t);
94
+ }));
95
+ }
96
+ return () => {
97
+ e !== void 0 && cancelAnimationFrame(e);
98
+ };
99
+ }, [W]), N(() => {
100
+ if (!o || !L)
101
+ return;
102
+ const e = A.current[c], n = a.pageSize || 100;
103
+ (e && e.page > 1 ? U(b(v({}, a), {
83
104
  current: 1,
105
+ pageSize: e.page * n,
84
106
  total: void 0
85
- })).then((e) => {
86
- if (!(!e || !Array.isArray(e)) && !(!I && !P))
87
- if (e.length > 0) {
88
- const t = U.current[a], l = t !== void 0 && t >= 0 && t < e.length ? t : 0;
89
- v(l), p(e[l]), y(void 0);
107
+ })).then((r) => (de.current = e.page, V((i) => b(v({}, i), {
108
+ current: e.page,
109
+ pageSize: n
110
+ })), r)) : U(b(v({}, a), {
111
+ current: 1,
112
+ total: void 0
113
+ }))).then((r) => {
114
+ if (!(!r || !Array.isArray(r)) && !(!m && !W))
115
+ if (r.length > 0) {
116
+ const i = e == null ? void 0 : e.index, d = i !== void 0 && i >= 0 && i < r.length ? i : 0;
117
+ I(d), x(r[d]), S(void 0);
90
118
  } else
91
- p(void 0), y(void 0), v(-1), V((t) => h(u({}, t), {
119
+ x(void 0), S(void 0), I(-1), V((i) => b(v({}, i), {
92
120
  current: 1
93
121
  }));
94
122
  });
95
- }, [a]), N(() => {
96
- V(a === "nocode" ? (e) => h(u({}, e), {
97
- total: H
98
- }) : a === "" ? (e) => h(u({}, e), {
99
- total: A
100
- }) : a === "pending" ? (e) => h(u({}, e), {
101
- total: J
102
- }) : (e) => h(u({}, e), {
103
- total: A - H - J
123
+ }, [c]), N(() => {
124
+ V(c === "nocode" ? (e) => b(v({}, e), {
125
+ total: Z
126
+ }) : c === "" ? (e) => b(v({}, e), {
127
+ total: F
128
+ }) : c === "pending" ? (e) => b(v({}, e), {
129
+ total: X
130
+ }) : (e) => b(v({}, e), {
131
+ total: F - Z - X
104
132
  }));
105
- }, [H, A, J]);
106
- const Ce = () => {
107
- var e, t;
108
- (t = (e = _.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || t.scrollTo({
133
+ }, [Z, F, X]);
134
+ const Le = () => {
135
+ var e, n;
136
+ (n = (e = K.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || n.scrollTo({
109
137
  top: 0
110
138
  });
111
- }, Ie = () => {
112
- !o || !i || c.cvforceDatahub.getDatasetsIdVersionsVid(o, i.id).then((e) => {
113
- var t, l;
114
- G(e), qe((l = (t = e.versionAsyncTask) == null ? void 0 : t.state) != null ? l : "");
139
+ }, ye = () => {
140
+ !l || !o || f.cvforceDatahub.getDatasetsIdVersionsVid(l, o.id).then((e) => {
141
+ var n, t;
142
+ Q(e), Xe((t = (n = e.versionAsyncTask) == null ? void 0 : n.state) != null ? t : "");
115
143
  });
116
144
  };
117
145
  N(() => {
118
- W !== Y.Pending && W !== Y.Started || j.warning("文件导入中,请刷新页面再试");
119
- }, [W]), N(() => {
120
- je(!ve && ge);
121
- }, [ve, ge]), N(() => {
122
- o && (i != null && i.id) && Ie();
123
- }, [o, i == null ? void 0 : i.id]);
146
+ _ !== ie.Pending && _ !== ie.Started || G.warning("文件导入中,请刷新页面再试");
147
+ }, [_]), N(() => {
148
+ Qe(!xe && Ie);
149
+ }, [xe, Ie]), N(() => {
150
+ l && (o != null && o.id) && ye();
151
+ }, [l, o == null ? void 0 : o.id]);
124
152
  const k = () => {
125
- !o || !i || c.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(o, i.id, {
153
+ !l || !o || f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {
126
154
  label: "allcode",
127
- searchName: O
155
+ searchName: j
128
156
  }).then((e) => {
129
- var s, g, L;
130
- const t = e == null ? void 0 : e.find((f) => f.id === "allcodeid"), l = e == null ? void 0 : e.find((f) => f.id === "nocodeid"), r = e == null ? void 0 : e.find((f) => f.id === "pendingid");
131
- He((s = t == null ? void 0 : t.count) != null ? s : 0), Fe((g = l == null ? void 0 : l.count) != null ? g : 0), Be((L = r == null ? void 0 : r.count) != null ? L : 0);
157
+ var i, d, u;
158
+ const n = e == null ? void 0 : e.find((g) => g.id === "allcodeid"), t = e == null ? void 0 : e.find((g) => g.id === "nocodeid"), r = e == null ? void 0 : e.find((g) => g.id === "pendingid");
159
+ qe((i = n == null ? void 0 : n.count) != null ? i : 0), Ke((d = t == null ? void 0 : t.count) != null ? d : 0), Ze((u = r == null ? void 0 : r.count) != null ? u : 0);
132
160
  });
133
- }, Q = () => {
134
- if (!(!o || !(i != null && i.id)))
135
- return c.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(o, i.id, {}).then((e) => {
136
- const l = (e || []).filter((r) => r.label !== "nocode").map((r, s) => ({
161
+ }, te = () => {
162
+ if (!(!l || !(o != null && o.id)))
163
+ return f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {}).then((e) => {
164
+ const t = (e || []).filter((r) => r.label !== "nocode").map((r, i) => ({
137
165
  label: r.label,
138
166
  count: r.count,
139
167
  id: r.id,
140
- color: Me[s % 40]
168
+ color: Pe[i % 40]
141
169
  }));
142
- return ue(l), e;
170
+ return ve(t), e;
143
171
  });
144
- }, $ = (e, t) => {
145
- const l = (e == null ? void 0 : e.current) || x.current, r = (e == null ? void 0 : e.pageSize) || x.pageSize;
146
- if (!o || !i || !l)
172
+ }, U = (e, n) => {
173
+ const t = (e == null ? void 0 : e.current) || a.current, r = (e == null ? void 0 : e.pageSize) || a.pageSize;
174
+ if (!l || !o || !t)
147
175
  return Promise.resolve(!1);
148
- const s = Z.map((L) => L.label), g = () => {
149
- switch (a) {
176
+ const i = $.map((u) => u.label), d = () => {
177
+ switch (c) {
150
178
  case "nocode":
151
179
  return "nocode";
152
180
  case "hascode":
153
- return s.length ? s : "hascode";
181
+ return i.length ? i : "hascode";
154
182
  default:
155
- return s.length ? s : void 0;
183
+ return i.length ? i : void 0;
156
184
  }
157
185
  };
158
- return l === 1 && Ce(), V((L) => h(u({}, L), {
159
- current: l,
186
+ return t === 1 && Le(), V((u) => b(v({}, u), {
187
+ current: t,
160
188
  pageSize: r
161
- })), c.cvforceDatahub.getDatasetsIdVersionsVidSamples(o, i.id, {
162
- pageNo: l,
189
+ })), f.cvforceDatahub.getDatasetsIdVersionsVidSamples(l, o.id, {
190
+ pageNo: t,
163
191
  pageSize: r,
164
- labels: g(),
165
- searchName: O
166
- }).then((L) => {
167
- const f = L.recordList || [], R = l === 1 ? f : [...t || b, ...f];
168
- return oe(R), V((X) => h(u({}, X), {
169
- current: l,
192
+ labels: d(),
193
+ searchName: j
194
+ }).then((u) => {
195
+ const g = u.recordList || [], E = t === 1 ? g : [...n || p, ...g];
196
+ return ce(E), V((z) => b(v({}, z), {
197
+ current: t,
170
198
  pageSize: r,
171
- total: L.totalResults
172
- })), (e == null ? void 0 : e.type) === "next" && f.length && (v(0), p(f[0])), (e == null ? void 0 : e.type) === "prev" && f.length && (v(r - 1), p(f[f.length - 1])), he && M < 0 && f.length && (v(0), p(f[0]), z(!0)), R;
199
+ total: u.totalResults
200
+ })), (e == null ? void 0 : e.type) === "next" && g.length && (I(0), x(g[0])), (e == null ? void 0 : e.type) === "prev" && g.length && (I(r - 1), x(g[g.length - 1])), be && R < 0 && g.length && (I(0), x(g[0]), P(!0)), E;
173
201
  }).catch(() => !1);
174
- }, _e = (e) => {
175
- b && (K(!1), v(e), p(b[e]), y(void 0), z(!0), a !== void 0 && (U.current[a] = e));
202
+ }, Ye = (e) => {
203
+ p && (q(!1), I(e), x(p[e]), S(void 0), P(!0), c !== void 0 && (A.current[c] = {
204
+ index: e,
205
+ page: a.current || 1
206
+ }));
176
207
  };
177
208
  N(() => {
178
- var t, l, r;
179
- if (!S)
209
+ var n, t, r;
210
+ if (!y)
180
211
  return;
181
212
  const e = [];
182
- (t = S.labels) == null || t.forEach((s) => {
183
- w != null && w.find((g) => g.id === s.id) && e.push(s);
184
- }), e.length !== ((r = (l = S.labels) == null ? void 0 : l.length) != null ? r : 0) && y(h(u({}, S), {
213
+ (n = y.labels) == null || n.forEach((i) => {
214
+ T != null && T.find((d) => d.id === i.id) && e.push(i);
215
+ }), e.length !== ((r = (t = y.labels) == null ? void 0 : t.length) != null ? r : 0) && S(b(v({}, y), {
185
216
  labels: e
186
217
  }));
187
- }, [w]);
188
- const re = () => {
189
- if (!i)
218
+ }, [T]);
219
+ const fe = (e) => {
220
+ const n = (e == null ? void 0 : e.updateCurrentOnRemove) !== !1;
221
+ if (ee.current = !1, !o)
190
222
  return Promise.resolve(!1);
191
- const e = S != null ? S : I;
192
- if (!e || !S)
223
+ const t = y != null ? y : m;
224
+ if (!t || !y)
193
225
  return Promise.resolve(!0);
194
- const t = (I == null ? void 0 : I.labels) || [], l = (S.labels || []).filter((s) => !!s.id);
195
- if (t.length === l.length && l.every((s, g) => {
196
- var L;
197
- return ((L = t[g]) == null ? void 0 : L.id) === s.id;
226
+ const r = (m == null ? void 0 : m.labels) || [], i = (y.labels || []).filter((u) => !!u.id);
227
+ if (r.length === i.length && i.every((u, g) => {
228
+ var E;
229
+ return ((E = r[g]) == null ? void 0 : E.id) === u.id;
198
230
  }))
199
231
  return Promise.resolve(!0);
200
- const r = h(u({}, e), {
201
- labels: l.map((s) => {
232
+ const d = b(v({}, t), {
233
+ labels: i.map((u) => {
202
234
  var g;
203
- return h(u({}, s), {
204
- box: (g = s.box) != null ? g : []
235
+ return b(v({}, u), {
236
+ box: (g = u.box) != null ? g : []
205
237
  });
206
238
  }),
207
- isLabeled: l.length > 0
239
+ isLabeled: i.length > 0
208
240
  });
209
- return c.cvforceDatahub.updateSamples(o, i.id, [r]).then(() => {
210
- var g, L;
211
- j.success({
241
+ return f.cvforceDatahub.updateSamples(l, o.id, [d]).then(() => {
242
+ var g, E;
243
+ G.success({
212
244
  content: "保存成功"
213
245
  });
214
- const s = a === "nocode" && ((g = r.labels) == null ? void 0 : g.length) || a === "hascode" && !((L = r.labels) != null && L.length);
215
- return oe((f) => {
216
- const R = f.findIndex((F) => F.id === r.id);
217
- if (R === -1)
218
- return f;
219
- if (s) {
220
- const F = f.slice(0, R).concat(f.slice(R + 1));
221
- if (V((B) => h(u({}, B), {
222
- total: B.total != null ? Math.max(0, B.total - 1) : void 0
223
- })), F.length === 0)
224
- p(void 0), y(void 0), v(-1), z(!1);
225
- else {
226
- const B = Math.min(M, F.length - 1), Ve = F[B];
227
- Ve != null && (p(Ve), v(B), y(void 0));
246
+ const u = c === "nocode" && ((g = d.labels) == null ? void 0 : g.length) || c === "hascode" && !((E = d.labels) != null && E.length);
247
+ return ee.current = !!u, ce((z) => {
248
+ const ne = z.findIndex((H) => H.id === d.id);
249
+ if (ne === -1)
250
+ return z;
251
+ if (u) {
252
+ const H = z.slice(0, ne).concat(z.slice(ne + 1));
253
+ if (V((O) => b(v({}, O), {
254
+ total: O.total != null ? Math.max(0, O.total - 1) : void 0
255
+ })), H.length === 0)
256
+ x(void 0), S(void 0), I(-1), P(!1);
257
+ else if (n) {
258
+ const O = Math.min(R, H.length - 1), Re = H[O];
259
+ Re != null && (x(Re), I(O), S(void 0));
228
260
  }
229
- return F;
261
+ return H;
230
262
  }
231
- const X = [...f];
232
- return X[R] = r, X;
233
- }), s || (p(r), y(r)), !0;
263
+ const Te = [...z];
264
+ return Te[ne] = d, Te;
265
+ }), u || (x(d), S(d)), !0;
234
266
  }).catch(() => !1);
235
- }, Se = () => {
236
- b && re().then((e) => {
237
- if (!e)
267
+ }, Ve = () => {
268
+ if (!p)
269
+ return;
270
+ const e = m == null ? void 0 : m.id;
271
+ fe().then((n) => {
272
+ if (!n)
238
273
  return;
239
274
  k();
240
- const t = M + 1;
241
- t >= b.length ? x.total != null && t >= x.total ? j.error("已经是最后一个了") : $({
242
- current: x.current + 1,
243
- pageSize: x.pageSize,
275
+ const t = ee.current, r = t ? p.filter((u) => u.id !== e) : p, i = t ? R : R + 1, d = a.total != null ? a.total - (t ? 1 : 0) : void 0;
276
+ t && r.length === 0 || (i >= r.length ? d != null && i >= d ? G.error("已经是最后一个了") : U({
277
+ current: a.current + 1,
278
+ pageSize: a.pageSize,
244
279
  type: "next"
245
- }, b).then((l) => {
246
- Array.isArray(l) && (v(t), p(l[t]), y(void 0), a !== void 0 && (U.current[a] = t));
280
+ }, r).then((u) => {
281
+ Array.isArray(u) && (I(i), x(u[i]), S(void 0), c !== void 0 && (A.current[c] = {
282
+ index: i,
283
+ page: a.current + 1
284
+ }));
247
285
  }) : setTimeout(() => {
248
- v(t), p(b[t]), y(void 0), a !== void 0 && (U.current[a] = t);
249
- }, 200);
286
+ I(i), x(r[i]), S(void 0), c !== void 0 && (A.current[c] = {
287
+ index: i,
288
+ page: a.current || 1
289
+ });
290
+ }, 200));
250
291
  });
251
- }, Ge = () => {
252
- b && re().then((e) => {
253
- if (!e)
292
+ }, et = () => {
293
+ if (!p)
294
+ return;
295
+ const e = m == null ? void 0 : m.id;
296
+ fe({
297
+ updateCurrentOnRemove: !1
298
+ }).then((n) => {
299
+ if (!n)
254
300
  return;
255
301
  k();
256
- const t = M - 1;
257
- t < 0 ? j.error("已经是第一个了") : setTimeout(() => {
258
- v(t), p(b[t]), y(void 0), a !== void 0 && (U.current[a] = t);
259
- }, 200);
302
+ const t = ee.current, r = t ? p.filter((d) => d.id !== e) : p, i = R - 1;
303
+ i < 0 ? (G.error("已经是第一个了"), t && r.length > 0 ? (I(0), x(r[0]), S(void 0), c !== void 0 && (A.current[c] = {
304
+ index: 0,
305
+ page: a.current || 1
306
+ })) : S(void 0)) : (I(i), x(p[i]), S(void 0), c !== void 0 && (A.current[c] = {
307
+ index: i,
308
+ page: a.current || 1
309
+ }));
260
310
  });
261
- }, Je = () => {
311
+ }, tt = () => {
262
312
  var e;
263
- if ((e = S == null ? void 0 : S.labels) != null && e.some((t) => !t.id))
264
- return j.error("请选择标签"), Promise.resolve(!1);
265
- Se();
266
- }, Qe = () => {
267
- at.confirm({
313
+ if ((e = y == null ? void 0 : y.labels) != null && e.some((n) => !n.id))
314
+ return G.error("请选择标签"), Promise.resolve(!1);
315
+ Ve();
316
+ }, nt = () => {
317
+ mt.confirm({
268
318
  title: "确认要删除当前数据吗?",
269
319
  content: "数据包含当前标注的内容和图片,删除后无法恢复,请确认是否删除!",
270
320
  onOk: () => {
271
- !I || !i || c.cvforceDatahub.delDatasetsIdVersionsVidSamplesId(o, i.id, I.id).then(() => {
272
- const e = b.findIndex((l) => l.id === I.id), t = [...b];
273
- if (t.splice(e, 1), oe(t), V((l) => h(u({}, l), {
274
- total: l.total != null ? l.total - 1 : 0
275
- })), t.length > 0) {
276
- const l = e < t.length ? e : e - 1;
277
- p(t[l]), v(l);
321
+ !m || !o || f.cvforceDatahub.delDatasetsIdVersionsVidSamplesId(l, o.id, m.id).then(() => {
322
+ const e = p.findIndex((t) => t.id === m.id), n = [...p];
323
+ if (n.splice(e, 1), ce(n), V((t) => b(v({}, t), {
324
+ total: t.total != null ? t.total - 1 : 0
325
+ })), n.length > 0) {
326
+ const t = e < n.length ? e : e - 1;
327
+ x(n[t]), I(t);
278
328
  } else
279
- p(void 0), y(void 0), v(-1), z(!1), V((l) => h(u({}, l), {
329
+ x(void 0), S(void 0), I(-1), P(!1), V((t) => b(v({}, t), {
280
330
  current: 1
281
331
  }));
282
- y(void 0), k();
332
+ S(void 0), k();
283
333
  });
284
334
  }
285
335
  });
286
- }, xe = (e) => {
287
- M >= 0 && a !== void 0 && a !== null && (U.current[a] = M), S ? re().then((t) => {
288
- t && (ie(e), k());
289
- }) : (V((t) => h(u({}, t), {
336
+ }, De = (e) => {
337
+ R >= 0 && c !== void 0 && c !== null && (A.current[c] = {
338
+ index: R,
339
+ page: a.current || 1
340
+ });
341
+ const n = (a.current || 1) !== 1;
342
+ y ? fe().then((t) => {
343
+ t && (Y.current = n, se(e), k());
344
+ }) : (Y.current = n, V((t) => b(v({}, t), {
290
345
  current: 1,
291
346
  total: void 0
292
- })), ie(e)), e === "nocode" && ne([]);
293
- }, ye = [{
347
+ })), se(e)), e === "nocode" && ae([]);
348
+ }, Ne = [{
294
349
  key: "",
295
- label: `全部(${A})`,
350
+ label: `全部(${F})`,
296
351
  children: null
297
352
  }, {
298
353
  key: "nocode",
299
- label: `未标注(${H})`,
354
+ label: `未标注(${Z})`,
300
355
  children: null
301
356
  }, {
302
357
  key: "hascode",
303
- label: `已标注(${A - H - J})`,
358
+ label: `已标注(${F - Z - X})`,
304
359
  children: null
305
- }], Xe = (e) => {
306
- var l;
307
- const t = e.currentTarget;
308
- (x.total == null || x.total > b.length) && t.scrollHeight - t.scrollTop === ((l = _.current) == null ? void 0 : l.clientHeight) && V((r) => h(u({}, r), {
360
+ }], it = (e) => {
361
+ var t;
362
+ const n = e.currentTarget;
363
+ (a.total == null || a.total > p.length) && n.scrollHeight - n.scrollTop === ((t = K.current) == null ? void 0 : t.clientHeight) && V((r) => b(v({}, r), {
309
364
  current: r.current + 1
310
365
  }));
311
366
  };
312
- return /* @__PURE__ */ n(ot, {
313
- locale: ft,
314
- children: /* @__PURE__ */ n(ut.Provider, {
367
+ return /* @__PURE__ */ s(at, {
368
+ locale: vt,
369
+ children: /* @__PURE__ */ s(bt.Provider, {
315
370
  value: {
316
- datasetId: o,
317
- versionId: (i == null ? void 0 : i.id) || "",
318
- no: (i == null ? void 0 : i.no) || "",
319
- loading: de,
320
- version: i,
371
+ datasetId: l,
372
+ versionId: (o == null ? void 0 : o.id) || "",
373
+ no: (o == null ? void 0 : o.no) || "",
374
+ loading: me,
375
+ version: o,
321
376
  versions: le,
322
- samples: b,
323
- pagination: x,
324
- services: c,
377
+ samples: p,
378
+ pagination: a,
379
+ services: f,
325
380
  featuresConfig: {
326
- labelManager: ae,
327
- datasetManager: T,
328
- annotation: Ae,
329
- filterSwitch: q,
330
- header: m,
381
+ labelManager: he,
382
+ datasetManager: w,
383
+ annotation: He,
384
+ filterSwitch: J,
385
+ header: C,
331
386
  exampleSrcRoot: D.exampleSrcRoot
332
387
  }
333
388
  },
334
- children: C ? C.markType === "classification" ? /* @__PURE__ */ n("div", {
389
+ children: L ? L.markType === "classification" ? /* @__PURE__ */ s("div", {
335
390
  className: "classification-version-detail",
336
- children: /* @__PURE__ */ E(gt, {
391
+ children: /* @__PURE__ */ M(Lt, {
337
392
  className: "product-details-page",
338
- header: m !== !1 ? /* @__PURE__ */ n(vt, {
339
- backTo: Re,
340
- onBackClick: m != null && m.onBackClick ? () => {
393
+ header: C !== !1 ? /* @__PURE__ */ s(yt, {
394
+ backTo: Ue,
395
+ onBackClick: C != null && C.onBackClick ? () => {
341
396
  var e;
342
- I && pe(), (e = m == null ? void 0 : m.onBackClick) == null || e.call(m);
397
+ m && Se(), (e = C == null ? void 0 : C.onBackClick) == null || e.call(C);
343
398
  } : void 0,
344
- left: !de && /* @__PURE__ */ E(ce, {
345
- children: [/* @__PURE__ */ n("span", {
399
+ left: !me && /* @__PURE__ */ M(ue, {
400
+ children: [/* @__PURE__ */ s("span", {
346
401
  style: {
347
402
  fontWeight: "bold"
348
403
  },
349
- children: C == null ? void 0 : C.name
350
- }), /* @__PURE__ */ n(nt, {
351
- disabled: (m == null ? void 0 : m.versionSelect) === !1,
352
- value: i == null ? void 0 : i.id,
404
+ children: L == null ? void 0 : L.name
405
+ }), /* @__PURE__ */ s(dt, {
406
+ disabled: (C == null ? void 0 : C.versionSelect) === !1,
407
+ value: o == null ? void 0 : o.id,
353
408
  style: {
354
409
  width: 70
355
410
  },
@@ -358,133 +413,134 @@ const Qt = (D) => {
358
413
  value: e.id
359
414
  })),
360
415
  onChange: (e) => {
361
- var l;
362
- const t = le.find((r) => r.id === e);
363
- t && (G(t), (l = m == null ? void 0 : m.onVersionChange) == null || l.call(m, t));
416
+ var t;
417
+ const n = le.find((r) => r.id === e);
418
+ n && (Q(n), (t = C == null ? void 0 : C.onVersionChange) == null || t.call(C, n));
364
419
  }
365
420
  })]
366
421
  }),
367
- right: /* @__PURE__ */ E(ce, {
368
- children: [!I && T && T.add && /* @__PURE__ */ n(Te, {
422
+ right: /* @__PURE__ */ M(ue, {
423
+ children: [!m && w && w.add && /* @__PURE__ */ s(Ae, {
369
424
  type: "default",
370
- onClick: () => be(!0),
371
- disabled: W === Y.Pending || W === Y.Started,
425
+ onClick: () => Ce(!0),
426
+ disabled: _ === ie.Pending || _ === ie.Started,
372
427
  children: "导入数据"
373
- }), !I && T && T.label && /* @__PURE__ */ n(Te, {
428
+ }), !m && w && w.label && /* @__PURE__ */ s(Ae, {
374
429
  type: "primary",
375
430
  onClick: () => {
376
- I || ie("nocode"), K(!0), v(-1), a === "nocode" && (b != null && b.length) && (v(0), p(b[0])), z(!0);
431
+ m || se("nocode"), q(!0), I(-1), c === "nocode" && (p != null && p.length) && (I(0), x(p[0])), P(!0);
377
432
  },
378
433
  children: "开始标注"
379
- }), /* @__PURE__ */ n(Vt, {
380
- when: $e,
434
+ }), /* @__PURE__ */ s(Mt, {
435
+ when: Je,
381
436
  content: "确认要离开此页面吗?",
382
437
  subContent: "离开此页面后,将结束导入,放弃未上传的文件,请谨慎操作!"
383
- }), me && /* @__PURE__ */ n(Dt, {
384
- datasetIam: Pe,
385
- datasetId: o,
386
- currentVersion: i,
387
- tenCode: C == null ? void 0 : C.tenantCode,
388
- isVisible: me,
389
- setIsVisible: be,
438
+ }), pe && /* @__PURE__ */ s(Et, {
439
+ datasetIam: $e,
440
+ datasetId: l,
441
+ currentVersion: o,
442
+ tenCode: L == null ? void 0 : L.tenantCode,
443
+ isVisible: pe,
444
+ setIsVisible: Ce,
390
445
  getVersionListRequest: k,
391
- setIsConfirm: We,
446
+ setIsConfirm: Ge,
392
447
  onUploadStatusChange: (e) => {
393
- Oe(e);
448
+ _e(e);
394
449
  },
395
450
  tableReload: () => {
396
451
  var e;
397
- i != null && i.id && (Ce(), $(h(u({}, x), {
452
+ o != null && o.id && (Le(), U(b(v({}, a), {
398
453
  current: 1
399
- })), (e = te.current) == null || e.fetchLabels());
454
+ })), (e = re.current) == null || e.fetchLabels());
400
455
  },
401
- loadVersionData: Ie,
402
- markType: C == null ? void 0 : C.markType
456
+ loadVersionData: ye,
457
+ markType: L == null ? void 0 : L.markType
403
458
  })]
404
459
  })
405
460
  }) : void 0,
406
- children: [/* @__PURE__ */ n("div", {
461
+ children: [/* @__PURE__ */ s("div", {
407
462
  className: "detection-header",
408
- children: /* @__PURE__ */ E(ce, {
409
- children: [q.tabs && /* @__PURE__ */ n(rt, {
463
+ children: /* @__PURE__ */ M(ue, {
464
+ children: [J.tabs && /* @__PURE__ */ s(ft, {
410
465
  className: "header-tab",
411
- activeKey: a,
412
- items: ye,
413
- onChange: xe
414
- }), !I && q.search && /* @__PURE__ */ n(Ct, {
466
+ activeKey: c,
467
+ items: Ne,
468
+ onChange: De
469
+ }), !m && J.search && /* @__PURE__ */ s(Dt, {
415
470
  placeholder: "请输入图片名称搜索",
416
- suffix: /* @__PURE__ */ n(bt, {}),
417
- value: O,
418
- onChange: Ke,
471
+ suffix: /* @__PURE__ */ s(St, {}),
472
+ value: j,
473
+ onChange: We,
419
474
  allowClear: !0
420
475
  })]
421
476
  })
422
- }), /* @__PURE__ */ E("div", {
477
+ }), /* @__PURE__ */ M("div", {
423
478
  className: "d-row",
424
- children: [/* @__PURE__ */ E("div", {
479
+ children: [/* @__PURE__ */ M("div", {
425
480
  className: "d-right",
426
- ref: _,
427
- children: [P && /* @__PURE__ */ n(yt, {
428
- datasetId: o,
429
- isImageDetailVisible: P,
430
- setIsImageDetailVisible: z,
431
- currentSample: S != null ? S : I,
432
- labels: w,
433
- previewMode: !he,
434
- filterItems: ye,
435
- filterMode: a,
436
- onFilterChange: xe,
437
- onChange: y,
438
- onNextClick: Se,
439
- onPrevClick: Ge,
440
- onSave: Je,
441
- onEnterEdit: () => K(!0),
442
- onDeleteSample: Qe,
481
+ ref: K,
482
+ children: [W && /* @__PURE__ */ s(Tt, {
483
+ datasetId: l,
484
+ isImageDetailVisible: W,
485
+ setIsImageDetailVisible: P,
486
+ currentSample: y != null ? y : m,
487
+ labels: T,
488
+ previewMode: !be,
489
+ filterItems: Ne,
490
+ filterMode: c,
491
+ onFilterChange: De,
492
+ onChange: S,
493
+ onNextClick: Ve,
494
+ onPrevClick: et,
495
+ onSave: tt,
496
+ onEnterEdit: () => q(!0),
497
+ onDeleteSample: nt,
443
498
  onRefresh: () => {
444
- var e, t;
445
- (e = Q()) == null || e.then(() => k()), (t = te.current) == null || t.fetchLabels();
499
+ var e, n;
500
+ (e = te()) == null || e.then(() => k()), (n = re.current) == null || n.fetchLabels();
446
501
  },
447
502
  isPreLabel: !1,
448
503
  imgCount: {
449
- total: A,
450
- index: M + 1
504
+ total: F,
505
+ index: R + 1
451
506
  },
452
- settingHide: !ae,
453
- canLabel: !!(T && T.label),
454
- canDelete: !!(T && T.delete)
455
- }), I ? /* @__PURE__ */ n("div", {}) : x.total !== void 0 && x.total > 0 ? /* @__PURE__ */ n(dt, {
507
+ settingHide: !he,
508
+ canLabel: !!(w && w.label),
509
+ canDelete: !!(w && w.delete)
510
+ }), a.total !== void 0 && a.total > 0 ? /* @__PURE__ */ s(gt, {
456
511
  innerProps: {
457
512
  className: "d-right-row"
458
513
  },
459
- data: b,
514
+ data: p,
460
515
  itemKey: "id",
461
- height: (De = (Le = _.current) == null ? void 0 : Le.clientHeight) != null ? De : 600,
462
- onScroll: Xe,
463
- children: (e, t) => {
464
- var l;
465
- return /* @__PURE__ */ n(st, {
516
+ height: (we = (ke = K.current) == null ? void 0 : ke.clientHeight) != null ? we : 600,
517
+ onScroll: it,
518
+ children: (e, n) => {
519
+ var t;
520
+ return /* @__PURE__ */ s(ut, {
466
521
  className: "d-right-col",
467
- onClick: () => _e(t),
468
- children: /* @__PURE__ */ E("div", {
522
+ "data-sample-id": e.id,
523
+ onClick: () => Ye(n),
524
+ children: /* @__PURE__ */ M("div", {
469
525
  className: "right-col-wrapper",
470
- children: [/* @__PURE__ */ n("div", {
526
+ children: [/* @__PURE__ */ s("div", {
471
527
  className: "detection-status-wrapper",
472
- children: /* @__PURE__ */ n(xt, {
528
+ children: /* @__PURE__ */ s(wt, {
473
529
  sample: e
474
530
  })
475
- }), /* @__PURE__ */ n("div", {
531
+ }), /* @__PURE__ */ s("div", {
476
532
  className: "right-col-img",
477
- children: /* @__PURE__ */ n(pt, {
533
+ children: /* @__PURE__ */ s(Vt, {
478
534
  fileKey: e.fileKey,
479
535
  width: 124,
480
536
  thumbnailUrl: e.thumbnailUrl
481
537
  })
482
- }), /* @__PURE__ */ E("div", {
538
+ }), /* @__PURE__ */ M("div", {
483
539
  className: "right-col-text",
484
- children: [(l = e.labels) != null && l.length ? /* @__PURE__ */ n(ct, {
540
+ children: [(t = e.labels) != null && t.length ? /* @__PURE__ */ s(ht, {
485
541
  placement: "top",
486
542
  title: e.labels[0].label,
487
- children: /* @__PURE__ */ n("span", {
543
+ children: /* @__PURE__ */ s("span", {
488
544
  style: {
489
545
  display: "inline-block",
490
546
  maxWidth: "calc(100% - 25px)",
@@ -494,45 +550,45 @@ const Qt = (D) => {
494
550
  },
495
551
  children: e.labels[0].label
496
552
  })
497
- }) : /* @__PURE__ */ n("span", {
553
+ }) : /* @__PURE__ */ s("span", {
498
554
  style: {
499
555
  color: "rgba(0,0,0,0.45)",
500
556
  width: "100%"
501
557
  },
502
558
  children: "无标签"
503
- }), /* @__PURE__ */ n("div", {
504
- children: t + 1
559
+ }), /* @__PURE__ */ s("div", {
560
+ children: n + 1
505
561
  })]
506
562
  })]
507
563
  })
508
564
  }, e.id);
509
565
  }
510
- }) : /* @__PURE__ */ n("div", {
566
+ }) : /* @__PURE__ */ s("div", {
511
567
  className: "empty",
512
- children: x.total === 0 ? /* @__PURE__ */ n(we, {
513
- image: ht,
568
+ children: a.total === 0 ? /* @__PURE__ */ s(ze, {
569
+ image: pt,
514
570
  description: "暂无数据"
515
- }) : /* @__PURE__ */ n(Ee, {})
571
+ }) : /* @__PURE__ */ s(Fe, {})
516
572
  })]
517
- }), a !== "nocode" && !I && q.labels && /* @__PURE__ */ n("div", {
573
+ }), c !== "nocode" && J.labels && /* @__PURE__ */ s("div", {
518
574
  className: "d-sider",
519
- children: /* @__PURE__ */ n(Lt, {
520
- ref: te,
521
- datasetId: o,
522
- data: w || [],
523
- selected: Z,
575
+ children: /* @__PURE__ */ s(Rt, {
576
+ ref: re,
577
+ datasetId: l,
578
+ data: T || [],
579
+ selected: $,
524
580
  onSelectedChange: (e) => {
525
- ne((w == null ? void 0 : w.filter((t) => e.find((l) => l.label === t.label))) || []);
581
+ ae((T == null ? void 0 : T.filter((n) => e.find((t) => t.label === n.label))) || []);
526
582
  },
527
583
  onListChange: () => {
528
- i && (c.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(o, i.id, {}).then((e) => {
529
- const l = (e || []).filter((s) => s.label !== "nocode").map((s, g) => ({
530
- label: s.label,
531
- count: s.count,
532
- id: s.id,
533
- color: Me[g % 40]
534
- })), r = Z.filter((s) => l.some((g) => g.id === s.id));
535
- ue(l), Z.length !== r.length && ne(r);
584
+ o && (f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {}).then((e) => {
585
+ const t = (e || []).filter((i) => i.label !== "nocode").map((i, d) => ({
586
+ label: i.label,
587
+ count: i.count,
588
+ id: i.id,
589
+ color: Pe[d % 40]
590
+ })), r = $.filter((i) => t.some((d) => d.id === i.id));
591
+ ve(t), $.length !== r.length && ae(r);
536
592
  }), k());
537
593
  },
538
594
  isPreLabel: !1
@@ -540,18 +596,18 @@ const Qt = (D) => {
540
596
  })]
541
597
  })]
542
598
  })
543
- }) : /* @__PURE__ */ n("div", {
599
+ }) : /* @__PURE__ */ s("div", {
544
600
  className: "empty",
545
- children: /* @__PURE__ */ n(we, {
601
+ children: /* @__PURE__ */ s(ze, {
546
602
  description: "当前数据集不是 classification(图像分类) 类型"
547
603
  })
548
- }) : /* @__PURE__ */ n("div", {
604
+ }) : /* @__PURE__ */ s("div", {
549
605
  className: "empty",
550
- children: /* @__PURE__ */ n(Ee, {})
606
+ children: /* @__PURE__ */ s(Fe, {})
551
607
  })
552
608
  })
553
609
  });
554
610
  };
555
611
  export {
556
- Qt as default
612
+ ln as default
557
613
  };