@glodon-aiot/dataset-annotation 3.19.2-alpha.1 → 3.19.2-alpha.2

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,197 +1,197 @@
1
- var zl = Object.defineProperty;
2
- var Pe = Object.getOwnPropertySymbols;
3
- var Bl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable;
4
- var Ze = (A, l, s) => l in A ? zl(A, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : A[l] = s, _e = (A, l) => {
1
+ var Al = Object.defineProperty;
2
+ var Ie = Object.getOwnPropertySymbols;
3
+ var yl = Object.prototype.hasOwnProperty, $l = Object.prototype.propertyIsEnumerable;
4
+ var Ze = (y, l, s) => l in y ? Al(y, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : y[l] = s, _e = (y, l) => {
5
5
  for (var s in l || (l = {}))
6
- Bl.call(l, s) && Ze(A, s, l[s]);
7
- if (Pe)
8
- for (var s of Pe(l))
9
- yl.call(l, s) && Ze(A, s, l[s]);
10
- return A;
6
+ yl.call(l, s) && Ze(y, s, l[s]);
7
+ if (Ie)
8
+ for (var s of Ie(l))
9
+ $l.call(l, s) && Ze(y, s, l[s]);
10
+ return y;
11
11
  };
12
- var ge = (A, l, s) => new Promise((g, Z) => {
13
- var _ = (S) => {
12
+ var Ce = (y, l, s) => new Promise((g, I) => {
13
+ var Z = ($) => {
14
14
  try {
15
- U(s.next(S));
15
+ k(s.next($));
16
16
  } catch (D) {
17
- Z(D);
17
+ I(D);
18
18
  }
19
- }, c = (S) => {
19
+ }, c = ($) => {
20
20
  try {
21
- U(s.throw(S));
21
+ k(s.throw($));
22
22
  } catch (D) {
23
- Z(D);
23
+ I(D);
24
24
  }
25
- }, U = (S) => S.done ? g(S.value) : Promise.resolve(S.value).then(_, c);
26
- U((s = s.apply(A, l)).next());
25
+ }, k = ($) => $.done ? g($.value) : Promise.resolve($.value).then(Z, c);
26
+ k((s = s.apply(y, l)).next());
27
27
  });
28
- import { jsxs as d, Fragment as Q, jsx as e } from "react/jsx-runtime";
29
- import { useContext as Al, useState as p, useRef as Sl, useEffect as V } from "react";
30
- import { Form as L, message as T, Modal as H, Button as R, Radio as N, Tooltip as vl, Space as Ke, Upload as Ie, Row as be, Col as Fl, Spin as Nl, Result as Ge } from "antd";
28
+ import { jsxs as d, Fragment as Y, jsx as e } from "react/jsx-runtime";
29
+ import { useContext as vl, useState as p, useRef as Sl, useEffect as V } from "react";
30
+ import { Form as U, message as T, Modal as ee, Button as O, Radio as N, Tooltip as Nl, Space as Ke, Upload as Ge, Row as Ee, Col as Fl, Spin as xl, Result as qe } from "antd";
31
31
  import "./style.less.mjs";
32
- import { InfoCircleOutlined as $l, CloudUploadOutlined as xl, PaperClipOutlined as jl, DeleteOutlined as kl, PlusOutlined as Ll } from "@ant-design/icons";
33
- import Tl from "browser-md5-file";
34
- import { initMinio as qe, putObjectBuffer as We } from "@glodon-aiot/minio";
35
- import Ul from "./pic_zip.svg.mjs";
36
- import Vl from "./pic_zip_json.svg.mjs";
37
- import Rl from "./pic_vlm_json_zip.svg.mjs";
38
- import Ol from "./pic_vlm_zip.svg.mjs";
39
- import Dl from "./pic_vlm_dwg_zip.svg.mjs";
40
- import { MB as Je, GB as Xe } from "../../constant.mjs";
41
- import { fileSuffixToLowerCase as Ml } from "../../utils/index.mjs";
42
- import Pl from "../../DatasetContext/index.mjs";
43
- import { EXAMPLE_SRC_ROOT as Zl } from "../../featuresConfig.mjs";
44
- import { getImportConfig as _l } from "./config.mjs";
45
- let C = 0, G = 0, O = 0, q = 0;
46
- const mt = (A) => {
32
+ import { InfoCircleOutlined as jl, CloudUploadOutlined as Ll, PaperClipOutlined as kl, DeleteOutlined as Ul, PlusOutlined as Tl } from "@ant-design/icons";
33
+ import Vl from "browser-md5-file";
34
+ import { initMinio as Je, putObjectBuffer as We } from "@glodon-aiot/minio";
35
+ import Ol from "./pic_zip.svg.mjs";
36
+ import Rl from "./pic_zip_json.svg.mjs";
37
+ import Dl from "./pic_vlm_json_zip.svg.mjs";
38
+ import Ml from "./pic_vlm_zip.svg.mjs";
39
+ import Pl from "./pic_vlm_dwg_zip.svg.mjs";
40
+ import { MB as Qe, GB as Xe } from "../../constant.mjs";
41
+ import { fileSuffixToLowerCase as Il } from "../../utils/index.mjs";
42
+ import Zl from "../../DatasetContext/index.mjs";
43
+ import { EXAMPLE_SRC_ROOT as _l } from "../../featuresConfig.mjs";
44
+ import { getImportConfig as Kl } from "./config.mjs";
45
+ let z = 0, J = 0, R = 0, W = 0;
46
+ const ft = (y) => {
47
47
  const {
48
48
  datasetIam: l,
49
49
  datasetId: s,
50
50
  currentVersion: g,
51
- tenCode: Z,
52
- isVisible: _,
51
+ tenCode: I,
52
+ isVisible: Z,
53
53
  markType: c,
54
- vlmMarkTmpl: U,
55
- setIsVisible: S,
54
+ vlmMarkTmpl: k,
55
+ setIsVisible: $,
56
56
  getVersionListRequest: D,
57
57
  onUploadStatusChange: M,
58
- setIsConfirm: Y,
59
- tableReload: Ce,
60
- loadVersionData: W,
61
- actionAfterFinish: Ee,
62
- vlmDwgImport: Qe = !1
63
- } = A, {
58
+ setIsConfirm: le,
59
+ tableReload: we,
60
+ loadVersionData: Q,
61
+ actionAfterFinish: ze,
62
+ vlmDwgImport: He = !1
63
+ } = y, {
64
64
  services: {
65
- cvforceDatahub: m
65
+ cvforceDatahub: u
66
66
  },
67
67
  featuresConfig: {
68
- exampleSrcRoot: we
68
+ exampleSrcRoot: Be
69
69
  } = {
70
- exampleSrcRoot: Zl
70
+ exampleSrcRoot: _l
71
71
  }
72
- } = Al(Pl), [v, He] = p(0), [F, Ye] = p(0), [ee, el] = p([]), [P, ll] = p(), [ze, Kl] = p([]), [le, J] = p(!1), [Be, te] = p(!1), [K, ie] = p(!1), [se, tl] = p(0), [il, sl] = p(0), [ne, ye] = p(-1), [ae, Il] = p([]), [Ae, Gl] = p([]), [Se, oe] = p(!1), nl = new Tl(), [I] = L.useForm(), r = L.useWatch("acceptType", I), $ = L.useWatch("labelState", I), re = L.useWatch("labelFormat", I), [B, ce] = p([]), [x, de] = p([]), [pe, al] = p(), [ve, Fe] = p(0), [Ne, $e] = p(!1), [ql, xe] = p(""), [ol, je] = p(!1), [ke, rl] = p(
72
+ } = vl(Zl), [v, Ye] = p(0), [S, el] = p(0), [te, ll] = p([]), [P, tl] = p(), [Ae, Gl] = p([]), [ie, X] = p(!1), [ye, se] = p(!1), [_, ne] = p(!1), [oe, il] = p(0), [sl, nl] = p(0), [ae, $e] = p(-1), [re, ql] = p([]), [ve, Jl] = p([]), [Se, ce] = p(!1), ol = new Vl(), [K] = U.useForm(), r = U.useWatch("acceptType", K), F = U.useWatch("labelState", K), de = U.useWatch("labelFormat", K), [B, pe] = p([]), [j, ue] = p([]), [me, al] = p(), [Ne, Fe] = p(0), [xe, je] = p(!1), [Wl, Le] = p(""), [rl, ke] = p(!1), [Ue, cl] = p(
73
73
  "unlabeled"
74
74
  /* Unlabeled */
75
- ), me = Sl(!0), {
76
- Dragger: cl
77
- } = Ie, u = _l(c, re, U), ue = u.imageMimeTypes, Le = u.imageAccept, fe = u.maxImageSize;
75
+ ), fe = Sl(!0), {
76
+ Dragger: dl
77
+ } = Ge, m = Kl(c, de, k), he = m.imageMimeTypes, Te = m.imageAccept, ge = m.maxImageSize;
78
78
  V(() => {
79
- C = 0, G = 0, O = 0, q = 0, ie(!1), _ && (me.current = !1, W && W());
80
- }, [_]);
81
- const Te = (i, t) => {
82
- var a;
79
+ z = 0, J = 0, R = 0, W = 0, ne(!1), Z && (fe.current = !1, Q && Q());
80
+ }, [Z]);
81
+ const Ve = (i, t) => {
82
+ var o;
83
83
  if (r === "image") {
84
- oe(!0);
85
- let o = 0;
86
- if (C = C + 1, G = G + 1, t.length === 0)
84
+ ce(!0);
85
+ let a = 0;
86
+ if (z = z + 1, J = J + 1, t.length === 0)
87
87
  return;
88
88
  let f = 0;
89
- const [...n] = t, b = window.URL || window.webkitURL, E = new Image();
90
- E.src = b.createObjectURL(i), E.onload = () => {
91
- ee.push({
89
+ const [...n] = t, b = window.URL || window.webkitURL, C = new Image();
90
+ C.src = b.createObjectURL(i), C.onload = () => {
91
+ te.push({
92
92
  name: i.name,
93
- src: E.src,
94
- width: E.width,
95
- height: E.height
96
- }), el(ee);
93
+ src: C.src,
94
+ width: C.width,
95
+ height: C.height
96
+ }), ll(te);
97
97
  }, t.map((w) => {
98
- const z = ue.some((y) => y === w.type), k = w.size <= fe;
99
- z ? k || (o = o + 1, n.splice(n.findIndex((y) => y.name === w.name), 1)) : (f = f + 1, n.splice(n.findIndex((y) => y.name === w.name), 1));
100
- }), n.length > 100 && n.splice(100, n.length), He(f), Ye(o), G === t.length && (oe(!0), G = 0);
101
- const h = ue.some((w) => w === i.type), j = i.size <= fe;
102
- if (h) {
103
- if (!j)
98
+ const h = he.some((L) => L === w.type), A = w.size <= ge;
99
+ h ? A || (a = a + 1, n.splice(n.findIndex((L) => L.name === w.name), 1)) : (f = f + 1, n.splice(n.findIndex((L) => L.name === w.name), 1));
100
+ }), n.length > 100 && n.splice(100, n.length), Ye(f), el(a), J === t.length && (ce(!0), J = 0);
101
+ const E = he.some((w) => w === i.type), x = i.size <= ge;
102
+ if (E) {
103
+ if (!x)
104
104
  return !1;
105
105
  } else
106
106
  return !1;
107
107
  } else {
108
- const o = u.maxZipSize;
109
- if (i.size > o)
110
- return T.error(`${i.name}文件总大小不能超过${o / Xe}G`), !1;
111
- const f = (a = i.name) == null ? void 0 : a.substring(i.name.lastIndexOf("."));
108
+ const a = m.maxZipSize;
109
+ if (i.size > a)
110
+ return T.error(`${i.name}文件总大小不能超过${a / Xe}G`), !1;
111
+ const f = (o = i.name) == null ? void 0 : o.substring(i.name.lastIndexOf("."));
112
112
  if (r === "zip" && f !== ".zip")
113
113
  return T.error("存在格式不正确的文件,已自动去除"), !1;
114
- de((n) => n.length >= 1 ? n : [...n, i]);
114
+ ue((n) => n.length >= 1 ? n : [...n, i]);
115
115
  }
116
116
  return !1;
117
117
  };
118
118
  V(() => {
119
- Se !== !1 && (!v && !F && !C || (C = C - q - v - F, C < 101 ? v > 0 && F > 0 ? (T.error(`${v + F}个文件添加失败,格式、大小或数量不符合要求`), C = C - v - F) : v > 0 && F === 0 ? T.error(`${v}个文件添加失败,格式不符合要求`) : v === 0 && F > 0 ? T.error(`${F}个文件添加失败,单张图片超过${u.maxImageSize / Je}M`) : v === 0 && F === 0 && T.success("校验成功") : v + F === 0 ? (T.error(`${C - 100}个文件添加失败,超过数量限制`), C = 100) : (T.error(`${C - 100 + v + F}个文件添加失败,格式、大小或数量不符合要求`), C = C < 101 ? C : 100), oe(!1)));
119
+ Se !== !1 && (!v && !S && !z || (z = z - W - v - S, z < 101 ? v > 0 && S > 0 ? (T.error(`${v + S}个文件添加失败,格式、大小或数量不符合要求`), z = z - v - S) : v > 0 && S === 0 ? T.error(`${v}个文件添加失败,格式不符合要求`) : v === 0 && S > 0 ? T.error(`${S}个文件添加失败,单张图片超过${m.maxImageSize / Qe}M`) : v === 0 && S === 0 && T.success("校验成功") : v + S === 0 ? (T.error(`${z - 100}个文件添加失败,超过数量限制`), z = 100) : (T.error(`${z - 100 + v + S}个文件添加失败,格式、大小或数量不符合要求`), z = z < 101 ? z : 100), ce(!1)));
120
120
  }, [Se]);
121
- const dl = (i) => {
121
+ const pl = (i) => {
122
122
  const t = i.originFileObj;
123
- return new Promise((a, o) => {
124
- nl.md5(t, (f, n) => {
125
- f && o(f), ml(n, t), a(n);
123
+ return new Promise((o, a) => {
124
+ ol.md5(t, (f, n) => {
125
+ f && a(f), ml(n, t), o(n);
126
126
  });
127
127
  });
128
- }, pl = () => ge(void 0, null, function* () {
128
+ }, ul = () => Ce(void 0, null, function* () {
129
129
  if (!B)
130
130
  return;
131
131
  const i = [];
132
132
  for (let t = 0; t < B.length; t++) {
133
- const a = B[t], o = yield dl(a);
134
- i.push(o);
133
+ const o = B[t], a = yield pl(o);
134
+ i.push(a);
135
135
  }
136
- !s || i.length === 0 || m == null || m.getDeduplication(i, s).then((t) => {
137
- ll(t), je(!1);
136
+ !s || i.length === 0 || u == null || u.getDeduplication(i, s).then((t) => {
137
+ tl(t), ke(!1);
138
138
  });
139
139
  });
140
140
  V(() => {
141
- pl();
141
+ ul();
142
142
  }, [B]);
143
143
  const ml = (i, t) => {
144
- t.md5 = i, ze.push(t);
145
- }, Ue = ({
144
+ t.md5 = i, Ae.push(t);
145
+ }, Oe = ({
146
146
  fileList: i
147
147
  }) => {
148
148
  if (r === "zip")
149
149
  return;
150
- je(!0);
151
- const t = i.filter((a) => a.size && a.size <= fe ? ue.some((o) => a.type === o) : !1);
152
- t.splice(100, t.length), t.length < B.length ? (ce(t), q++) : (O = O - q, q = 0, O++, O == t.length && ce(t), O > t.length && (O = t.length));
153
- }, Ve = () => {
154
- r === "zip" && (me.current = !0), S(!1);
155
- }, ul = () => {
150
+ ke(!0);
151
+ const t = i.filter((o) => o.size && o.size <= ge ? he.some((a) => o.type === a) : !1);
152
+ t.splice(100, t.length), t.length < B.length ? (pe(t), W++) : (R = R - W, W = 0, R++, R == t.length && pe(t), R > t.length && (R = t.length));
153
+ }, Re = () => {
154
+ r === "zip" && (fe.current = !0), $(!1);
155
+ }, fl = () => {
156
156
  if (r === "image") {
157
157
  if (!P)
158
158
  return;
159
159
  let i = 0, t = 0;
160
- if (P.duplicated.length !== 0 && P.duplicated.map((a, o) => {
160
+ if (P.duplicated.length !== 0 && P.duplicated.map((o, a) => {
161
161
  var b;
162
- const f = P.duplicatedMd5[o], n = ((b = B.find((E) => {
163
- var h;
164
- return ((h = E.originFileObj) == null ? void 0 : h.md5) === f;
162
+ const f = P.duplicatedMd5[a], n = ((b = B.find((C) => {
163
+ var E;
164
+ return ((E = C.originFileObj) == null ? void 0 : E.md5) === f;
165
165
  })) == null ? void 0 : b.name) || "";
166
- ae.push({
166
+ re.push({
167
167
  labels: [],
168
- fileKey: a,
168
+ fileKey: o,
169
169
  sampleFileName: {
170
170
  name: n
171
171
  }
172
172
  });
173
173
  }), P.unduplicated.length !== 0) {
174
- const a = P.unduplicated.map((o) => new Promise((f) => {
175
- const n = ze.find((k) => k.md5 === o);
174
+ const o = P.unduplicated.map((a) => new Promise((f) => {
175
+ const n = Ae.find((A) => A.md5 === a);
176
176
  if (!n)
177
177
  return f();
178
- const b = n.name, E = b.substring(b.indexOf(".")), h = ee.find((k) => k.name === b), j = {
178
+ const b = n.name, C = b.substring(b.indexOf(".")), E = te.find((A) => A.name === b), x = {
179
179
  "Content-Type": "application/octet-stream",
180
- "X-Amz-Meta-Width": h == null ? void 0 : h.width,
181
- "X-Amz-Meta-Height": h == null ? void 0 : h.height
182
- }, w = `dataset/${s}/sample/${o}${Ml(E)}`;
180
+ "X-Amz-Meta-Width": E == null ? void 0 : E.width,
181
+ "X-Amz-Meta-Height": E == null ? void 0 : E.height
182
+ }, w = `dataset/${s}/sample/${a}${Il(C)}`;
183
183
  delete n.md5;
184
- const z = new FileReader();
185
- z.readAsArrayBuffer(n), z.onload = (k) => {
186
- qe({
184
+ const h = new FileReader();
185
+ h.readAsArrayBuffer(n), h.onload = (A) => {
186
+ Je({
187
187
  endPoint: l == null ? void 0 : l.endpoints[0],
188
188
  useSSL: l == null ? void 0 : l.useSSL,
189
189
  accessKey: l == null ? void 0 : l.accessKey,
190
190
  secretKey: l == null ? void 0 : l.secretKey
191
- }), We(Z, w, k.target.result, j, (y, X) => {
192
- J(!0), t += 1, y && (i += 1, sl(i)), tl(t), Ae.push({
191
+ }), We(I, w, A.target.result, x, (L, G) => {
192
+ X(!0), t += 1, L && (i += 1, nl(i)), il(t), ve.push({
193
193
  labels: [],
194
- fileKey: `${Z}/${w}`,
194
+ fileKey: `${I}/${w}`,
195
195
  sampleFileName: {
196
196
  name: b
197
197
  }
@@ -199,159 +199,165 @@ const mt = (A) => {
199
199
  });
200
200
  };
201
201
  }));
202
- Promise.all(a).then(() => {
202
+ Promise.all(o).then(() => {
203
203
  !s || !g || setTimeout(() => {
204
- m == null || m.postDatasetsIdVersionsVidSamples(s, g.id, {
205
- samples: Ae.concat(ae)
204
+ u == null || u.postDatasetsIdVersionsVidSamples(s, g.id, {
205
+ samples: ve.concat(re)
206
206
  }).then(() => {
207
- m.getDatasetsIdVersionsVid(s, g.id).then((o) => {
208
- ye(o.samplesCount - g.samplesCount);
209
- }), Y(!0), M && M(!1);
207
+ u.getDatasetsIdVersionsVid(s, g.id).then((a) => {
208
+ $e(a.samplesCount - g.samplesCount);
209
+ }), le(!0), M && M(!1);
210
210
  });
211
211
  }, 100);
212
212
  });
213
213
  } else {
214
214
  if (!s || !g)
215
215
  return;
216
- m == null || m.postDatasetsIdVersionsVidSamples(s, g.id, {
217
- samples: ae
216
+ u == null || u.postDatasetsIdVersionsVidSamples(s, g.id, {
217
+ samples: re
218
218
  }).then(() => {
219
- m.getDatasetsIdVersionsVid(s, g.id).then((a) => {
220
- ye(a.samplesCount - g.samplesCount);
221
- }), Y(!0), M && M(!1);
219
+ u.getDatasetsIdVersionsVid(s, g.id).then((o) => {
220
+ $e(o.samplesCount - g.samplesCount);
221
+ }), le(!0), M && M(!1);
222
222
  });
223
223
  }
224
224
  } else
225
- fl(x);
226
- }, fl = (i) => {
227
- !s || !g || i.map((t, a) => {
228
- var E;
229
- const o = {
225
+ hl(j);
226
+ }, hl = (i) => {
227
+ !s || !g || i.map((t, o) => {
228
+ var C;
229
+ const a = {
230
230
  "Content-Type": "application/octet-stream"
231
231
  }, f = {
232
232
  endPoint: l == null ? void 0 : l.endpoints[0],
233
233
  useSSL: l == null ? void 0 : l.useSSL,
234
234
  accessKey: l == null ? void 0 : l.accessKey,
235
235
  secretKey: l == null ? void 0 : l.secretKey
236
- }, n = (l == null ? void 0 : l.prefix) + ((E = i[0]) == null ? void 0 : E.name), b = new FileReader();
237
- b.readAsArrayBuffer(t), b.onload = (h) => {
238
- qe(f), We(l == null ? void 0 : l.bucket, n, h.target.result, o, (j, w) => {
239
- if (j)
240
- console.log(j);
236
+ }, n = (l == null ? void 0 : l.prefix) + ((C = i[0]) == null ? void 0 : C.name), b = new FileReader();
237
+ b.readAsArrayBuffer(t), b.onload = (E) => {
238
+ Je(f), We(l == null ? void 0 : l.bucket, n, E.target.result, a, (x, w) => {
239
+ if (x)
240
+ console.log(x);
241
241
  else {
242
- if (me.current)
242
+ if (fe.current)
243
243
  return;
244
- J(!0), c === "vlm" ? m == null || m.postVlmUploadPicsZip(s, g.id, {
244
+ X(!0), c === "vlm" ? u == null || u.postVlmUploadPicsZip(s, g.id, {
245
245
  zipUrl: (l == null ? void 0 : l.bucket) + "/" + n,
246
- type: $ === "labeled" ? 2 : 1
247
- }).then((z) => {
248
- Re(z), xe(z);
249
- }) : m == null || m.postUploadPicsZip(s, g.id, _e({
246
+ type: F === "labeled" ? 2 : 1
247
+ }).then((h) => {
248
+ De(h), Le(h);
249
+ }) : u == null || u.postUploadPicsZip(s, g.id, _e({
250
250
  zipUrls: [(l == null ? void 0 : l.bucket) + "/" + n]
251
251
  }, (c === "ocr" || c === "detection" || c === "classification") && {
252
- type: $ === "labeled" ? 1 : 0
253
- })).then((z) => {
254
- Re(z), xe(z);
252
+ type: F === "labeled" ? 1 : 0
253
+ })).then((h) => {
254
+ De(h), Le(h);
255
255
  });
256
256
  }
257
257
  });
258
258
  };
259
259
  });
260
- }, Re = (i) => ge(void 0, null, function* () {
260
+ }, De = (i) => Ce(void 0, null, function* () {
261
261
  var t;
262
- if (!(!s || !g || !m))
262
+ if (!(!s || !g || !u))
263
263
  try {
264
- const a = yield m.checkFileResult(s, g.id, {
264
+ const o = yield u.checkFileResult(s, g.id, {
265
265
  taskId: i
266
- }, 5e3, c, (o) => {
267
- Fe(o);
266
+ }, 5e3, c, (a) => {
267
+ Fe(a);
268
268
  });
269
- a && al(JSON.parse(a));
270
- } catch (a) {
271
- if (((t = a.cause) == null ? void 0 : t.code) === -101) {
272
- $e(!0);
269
+ o && al(JSON.parse(o));
270
+ } catch (o) {
271
+ if (((t = o.cause) == null ? void 0 : t.code) === -101) {
272
+ je(!0);
273
273
  return;
274
274
  }
275
275
  }
276
276
  });
277
277
  V(() => {
278
- pe && (Fe(100), te(!0));
279
- }, [pe]), V(() => {
280
- se !== 0 && (Y(!1), M && M(!0));
281
- }, [se]), V(() => {
282
- ne !== -1 && (te(!0), ie(!1));
283
- }, [ne]);
284
- const hl = () => {
285
- Oe(), te(!1), Ee && Ee();
286
- }, Oe = () => {
287
- D(), J(!1), S(!1), Ce && Ce(), W && W();
288
- }, gl = /* @__PURE__ */ d("div", {
289
- children: [/* @__PURE__ */ e(Ll, {}), /* @__PURE__ */ e("div", {
278
+ me && (Fe(100), se(!0));
279
+ }, [me]), V(() => {
280
+ oe !== 0 && (le(!1), M && M(!0));
281
+ }, [oe]), V(() => {
282
+ ae !== -1 && (se(!0), ne(!1));
283
+ }, [ae]);
284
+ const gl = () => {
285
+ Me(), se(!1), ze && ze();
286
+ }, Me = () => {
287
+ D(), X(!1), $(!1), we && we(), Q && Q();
288
+ }, bl = /* @__PURE__ */ d("div", {
289
+ children: [/* @__PURE__ */ e(Tl, {}), /* @__PURE__ */ e("div", {
290
290
  style: {
291
291
  marginTop: 8
292
292
  },
293
293
  children: "添加图片"
294
294
  })]
295
- }), he = () => {
296
- ce([]), de([]);
297
- }, bl = (i) => {
298
- const t = x.filter((a) => a.uid !== i.uid);
299
- de(t);
300
- }, Cl = () => {
301
- $ === "labeled" ? c === "vlm" ? re === "dwg-json" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com/dataset_data/%E5%B7%A5%E7%A8%8B%E5%8C%96%E5%9B%BE%E7%BA%B8%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B%E6%95%B0%E6%8D%AE.zip" : U === "VQA" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com/dataset_data/VLM-VQA%E6%A0%87%E6%B3%A8%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B.zip" : window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/%E6%9C%89%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : c === "detection" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/detection/%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : c === "classification" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/classification/%E6%9C%89%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : window.location.href = `${we}/%E6%A0%87%E6%B3%A8%E6%A0%BC%E5%BC%8F%E7%A4%BA%E4%BE%8B.zip` : c === "vlm" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/%E6%97%A0%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : window.location.href = `${we}/%E7%A4%BA%E4%BE%8B%E5%8E%8B%E7%BC%A9%E5%8C%85.zip`;
295
+ }), be = () => {
296
+ pe([]), ue([]);
297
+ }, Cl = (i) => {
298
+ const t = j.filter((o) => o.uid !== i.uid);
299
+ ue(t);
302
300
  }, El = () => {
303
- D(), $e(!1), J(!1), S(!1);
304
- }, De = c === "vlm" ? "jsonl" : u.labelFormat || "json";
301
+ F === "labeled" ? c === "vlm" ? de === "dwg-json" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com/dataset_data/%E5%B7%A5%E7%A8%8B%E5%8C%96%E5%9B%BE%E7%BA%B8%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B%E6%95%B0%E6%8D%AE.zip" : k === "VQA" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com/dataset_data/VLM-VQA%E6%A0%87%E6%B3%A8%E6%95%B0%E6%8D%AE%E7%A4%BA%E4%BE%8B.zip" : window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/%E6%9C%89%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : c === "detection" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/detection/%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : c === "classification" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/classification/%E6%9C%89%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : window.location.href = `${Be}/%E6%A0%87%E6%B3%A8%E6%A0%BC%E5%BC%8F%E7%A4%BA%E4%BE%8B.zip` : c === "vlm" ? window.location.href = "https://sjzn-cv-data.obs.cn-north-4.myhuaweicloud.com:443/dataset_data/%E6%97%A0%E6%A0%87%E6%B3%A8%E7%A4%BA%E4%BE%8B.zip" : window.location.href = `${Be}/%E7%A4%BA%E4%BE%8B%E5%8E%8B%E7%BC%A9%E5%8C%85.zip`;
302
+ }, wl = () => {
303
+ D(), je(!1), X(!1), $(!1);
304
+ }, Pe = c === "vlm" ? "jsonl" : m.labelFormat || "json";
305
305
  V(() => {
306
- ke === "labeled" && I.setFieldsValue({
307
- labelFormat: De,
306
+ Ue === "labeled" && K.setFieldsValue({
307
+ labelFormat: Pe,
308
308
  acceptType: "zip"
309
309
  /* Zip */
310
310
  });
311
- }, [ke, De]);
312
- const wl = (i, t, a, o, f, n, b, E) => {
311
+ }, [Ue, Pe]);
312
+ const zl = (i, t, o, a, f, n, b, C, E) => {
313
313
  if (i === "image") {
314
- const X = f.length - n - b;
315
- return `数据导入完成,成功${n}个,失败${b}个,去重${X}个`;
314
+ const q = f.length - n - b;
315
+ return `数据导入完成,成功${n}个,失败${b}个,去重${q}个`;
316
316
  }
317
317
  if (!t)
318
318
  return "";
319
- const h = t.formatErrorCount || 0, j = t.successCount || 0, w = t.repeatCount || 0, z = t.failedCount || 0, k = t.hasLabelCount || 0;
320
- let y = `数据导入完成,格式不符合的图片${h}个,成功${j}个,去重${w}个,失败${z}个`;
321
- if (a === "labeled") {
322
- const X = (o.labelFormat || "json").toUpperCase(), Me = t.labelErrorCount || 0;
323
- E === "detection" ? y = `成功导入已标注${k}张,未标注${Me}张,去重${w}张,失败${z}张,格式不符合${h}张` : o.labelFormat === "dwg-json" ? y = `数据导入完成,成功${j}个,去重${w}个,失败${z}个` : y += `(${X}格式不符合${Me}个)`;
319
+ const x = t.formatErrorCount || 0, w = t.successCount || 0, h = t.repeatCount || 0, A = t.failedCount || 0, L = t.hasLabelCount || 0;
320
+ if (C === "vlm" && E === "VQA")
321
+ if (o === "labeled") {
322
+ const q = t.count || 0, H = t.unusedImageCount || 0, Bl = t.labelErrorCount || 0;
323
+ return `数据导入完成:共 ${q} 条,成功 ${w} 条,去重 ${h} 条,失败 ${A} 条;JSONL 格式错误 ${Bl} 条;未引用图片 ${H} 张。`;
324
+ } else
325
+ return `数据导入完成:成功 ${w} 张,格式不符合 ${x} 张,去重 ${h} 张,失败 ${A} 张。`;
326
+ let G = `数据导入完成,格式不符合的图片${x}个,成功${w}个,去重${h}个,失败${A}个`;
327
+ if (o === "labeled") {
328
+ const q = (a.labelFormat || "json").toUpperCase(), H = t.labelErrorCount || 0;
329
+ C === "detection" ? G = `成功导入已标注${L}张,未标注${H}张,去重${h}张,失败${A}张,格式不符合${x}张` : a.labelFormat === "dwg-json" ? G = `数据导入完成,成功${w}个,去重${h}个,失败${A}个` : G += `(${q}格式不符合${H}个)`;
324
330
  }
325
- return y;
331
+ return G;
326
332
  };
327
- return /* @__PURE__ */ d(Q, {
328
- children: [/* @__PURE__ */ e(H, {
333
+ return /* @__PURE__ */ d(Y, {
334
+ children: [/* @__PURE__ */ e(ee, {
329
335
  className: "upload-pics",
330
336
  width: 600,
331
337
  title: "导入数据",
332
- open: _,
338
+ open: Z,
333
339
  destroyOnClose: !0,
334
- onCancel: () => Ve(),
340
+ onCancel: () => Re(),
335
341
  maskClosable: !1,
336
342
  centered: !0,
337
- footer: [/* @__PURE__ */ e(R, {
338
- onClick: Ve,
343
+ footer: [/* @__PURE__ */ e(O, {
344
+ onClick: Re,
339
345
  children: "取消"
340
- }, "cancel"), /* @__PURE__ */ e(R, {
346
+ }, "cancel"), /* @__PURE__ */ e(O, {
341
347
  type: "primary",
342
348
  htmlType: "submit",
343
349
  form: "importModal",
344
- disabled: r === "image" && !B.length || r === "zip" && !x.length || le && ve == 0 || ol,
345
- loading: K == !0,
350
+ disabled: r === "image" && !B.length || r === "zip" && !j.length || ie && Ne == 0 || rl,
351
+ loading: _ == !0,
346
352
  onClick: () => {
347
- ul(), ie(!0);
353
+ fl(), ne(!0);
348
354
  },
349
355
  children: "导入"
350
356
  }, "confirm")],
351
- children: /* @__PURE__ */ d(L, {
357
+ children: /* @__PURE__ */ d(U, {
352
358
  className: "file-form",
353
359
  preserve: !1,
354
- form: I,
360
+ form: K,
355
361
  initialValues: {
356
362
  acceptType: "image",
357
363
  labelState: "unlabeled"
@@ -364,7 +370,7 @@ const mt = (A) => {
364
370
  width: 110
365
371
  }
366
372
  },
367
- children: [(c === "ocr" || c === "vlm" || c === "detection" || c === "classification") && /* @__PURE__ */ e(L.Item, {
373
+ children: [(c === "ocr" || c === "vlm" || c === "detection" || c === "classification") && /* @__PURE__ */ e(U.Item, {
368
374
  label: "数据标注状态",
369
375
  name: "labelState",
370
376
  rules: [{
@@ -372,18 +378,18 @@ const mt = (A) => {
372
378
  message: "请选择数据标注状态"
373
379
  }],
374
380
  children: /* @__PURE__ */ d(N.Group, {
375
- disabled: K,
381
+ disabled: _,
376
382
  onChange: (i) => {
377
- rl(i.target.value), he();
383
+ cl(i.target.value), be();
378
384
  },
379
385
  children: [/* @__PURE__ */ e(N, {
380
386
  value: "unlabeled",
381
387
  children: "无标注信息"
382
388
  }), /* @__PURE__ */ d(N, {
383
389
  value: "labeled",
384
- children: ["有标注信息", c === "vlm" && /* @__PURE__ */ e(vl, {
390
+ children: ["有标注信息", c === "vlm" && /* @__PURE__ */ e(Nl, {
385
391
  title: "支持上传带OCR标注信息的数据",
386
- children: /* @__PURE__ */ e($l, {
392
+ children: /* @__PURE__ */ e(jl, {
387
393
  style: {
388
394
  cursor: "pointer",
389
395
  marginLeft: 4,
@@ -393,7 +399,7 @@ const mt = (A) => {
393
399
  })]
394
400
  })]
395
401
  })
396
- }), $ === "labeled" && /* @__PURE__ */ e(L.Item, {
402
+ }), F === "labeled" && /* @__PURE__ */ e(U.Item, {
397
403
  label: "标注格式",
398
404
  name: "labelFormat",
399
405
  rules: [{
@@ -401,25 +407,25 @@ const mt = (A) => {
401
407
  message: "请选择标注格式"
402
408
  }],
403
409
  children: /* @__PURE__ */ e(N.Group, {
404
- disabled: K,
405
- onChange: he,
406
- children: c === "vlm" ? /* @__PURE__ */ d(Q, {
410
+ disabled: _,
411
+ onChange: be,
412
+ children: c === "vlm" ? /* @__PURE__ */ d(Y, {
407
413
  children: [/* @__PURE__ */ e(N, {
408
414
  value: "jsonl",
409
415
  children: "jsonl"
410
- }), Qe && U === "KIE" && /* @__PURE__ */ e(N, {
416
+ }), He && k === "KIE" && /* @__PURE__ */ e(N, {
411
417
  value: "dwg-json",
412
418
  children: "图纸json"
413
419
  })]
414
- }) : u.labelFormatLabel ? /* @__PURE__ */ e(N, {
415
- value: u.labelFormat || "folder",
416
- children: u.labelFormatLabel
420
+ }) : m.labelFormatLabel ? /* @__PURE__ */ e(N, {
421
+ value: m.labelFormat || "folder",
422
+ children: m.labelFormatLabel
417
423
  }) : /* @__PURE__ */ e(N, {
418
- value: u.labelFormat || "json",
419
- children: u.labelFormat || "json"
424
+ value: m.labelFormat || "json",
425
+ children: m.labelFormat || "json"
420
426
  })
421
427
  })
422
- }), /* @__PURE__ */ e(L.Item, {
428
+ }), /* @__PURE__ */ e(U.Item, {
423
429
  label: "导入方式",
424
430
  name: "acceptType",
425
431
  rules: [{
@@ -427,9 +433,9 @@ const mt = (A) => {
427
433
  message: "请选择导入方式"
428
434
  }],
429
435
  children: /* @__PURE__ */ d(N.Group, {
430
- disabled: K,
431
- onChange: he,
432
- children: [$ !== "labeled" && /* @__PURE__ */ e(N.Button, {
436
+ disabled: _,
437
+ onChange: be,
438
+ children: [F !== "labeled" && /* @__PURE__ */ e(N.Button, {
433
439
  value: "image",
434
440
  children: "上传图片"
435
441
  }), /* @__PURE__ */ e(N.Button, {
@@ -439,26 +445,26 @@ const mt = (A) => {
439
445
  })
440
446
  }), /* @__PURE__ */ d("div", {
441
447
  className: "file-upload",
442
- children: [(r === "image" && !B.length || r === "zip") && /* @__PURE__ */ d(cl, {
448
+ children: [(r === "image" && !B.length || r === "zip") && /* @__PURE__ */ d(dl, {
443
449
  name: "file",
444
450
  showUploadList: !1,
445
451
  multiple: !0,
446
- beforeUpload: Te,
447
- accept: r === "zip" ? ".zip" : Le,
452
+ beforeUpload: Ve,
453
+ accept: r === "zip" ? ".zip" : Te,
448
454
  maxCount: r === "zip" ? 1 : void 0,
449
- onChange: Ue,
450
- disabled: r === "zip" ? x.length === 1 : !1,
455
+ onChange: Oe,
456
+ disabled: r === "zip" ? j.length === 1 : !1,
451
457
  children: [/* @__PURE__ */ e("span", {
452
458
  className: "file-upload-icon",
453
- children: /* @__PURE__ */ e(xl, {})
459
+ children: /* @__PURE__ */ e(Ll, {})
454
460
  }), /* @__PURE__ */ d(Ke, {
455
461
  className: "file-upload-action",
456
- children: [r === "image" && "拖拽图片至此,或者", r === "zip" && "拖拽包含“图片”的压缩包至此,或者", /* @__PURE__ */ e(R, {
462
+ children: [r === "image" && "拖拽图片至此,或者", r === "zip" && "拖拽包含“图片”的压缩包至此,或者", /* @__PURE__ */ e(O, {
457
463
  type: "link",
458
464
  style: {
459
465
  padding: 0
460
466
  },
461
- disabled: r === "zip" ? x.length === 1 : !1,
467
+ disabled: r === "zip" ? j.length === 1 : !1,
462
468
  children: r === "image" ? "上传图片" : "上传压缩包"
463
469
  })]
464
470
  }), r === "image" && /* @__PURE__ */ d("div", {
@@ -468,7 +474,7 @@ const mt = (A) => {
468
474
  },
469
475
  children: [/* @__PURE__ */ d("div", {
470
476
  className: "item-upload-desc item-upload-desc__1",
471
- children: ["1. 支持", u.imageFormatsText, "格式,单张图片不超过", u.maxImageSize / Je, "M;"]
477
+ children: ["1. 支持", m.imageFormatsText, "格式,单张图片不超过", m.maxImageSize / Qe, "M;"]
472
478
  }), /* @__PURE__ */ e("div", {
473
479
  className: "item-upload-desc",
474
480
  children: "2. 单次上传最多可选择100个文件。"
@@ -480,62 +486,62 @@ const mt = (A) => {
480
486
  },
481
487
  children: [/* @__PURE__ */ d("div", {
482
488
  className: "item-upload-desc item-upload-desc__1",
483
- children: ["1. 仅支持.zip格式,单个压缩包不超过", u.maxZipSize / Xe, "G;"]
484
- }), $ === "labeled" ? /* @__PURE__ */ e(Q, {
485
- children: u.zipUploadTexts.labeled.description.map((i, t) => /* @__PURE__ */ d("div", {
489
+ children: ["1. 仅支持.zip格式,单个压缩包不超过", m.maxZipSize / Xe, "G;"]
490
+ }), F === "labeled" ? /* @__PURE__ */ e(Y, {
491
+ children: m.zipUploadTexts.labeled.description.map((i, t) => /* @__PURE__ */ d("div", {
486
492
  className: "item-upload-desc",
487
493
  children: [t + 2, ". ", i]
488
494
  }, t))
489
495
  }) : /* @__PURE__ */ d("div", {
490
496
  className: "item-upload-desc",
491
- children: ["2. ", u.zipUploadTexts.unlabeled.description[0]]
497
+ children: ["2. ", m.zipUploadTexts.unlabeled.description[0]]
492
498
  }), /* @__PURE__ */ d("div", {
493
499
  className: "item-upload-desc",
494
- children: [$ === "labeled" ? u.zipUploadTexts.labeled.description.length + 2 : 3, ". 单次仅可上传1个文件。"]
500
+ children: [F === "labeled" ? m.zipUploadTexts.labeled.description.length + 2 : 3, ". 单次仅可上传1个文件。"]
495
501
  })]
496
502
  })]
497
503
  }), r === "image" && B.length ? /* @__PURE__ */ e("div", {
498
504
  className: "picture-upload",
499
- children: /* @__PURE__ */ e(Ie, {
505
+ children: /* @__PURE__ */ e(Ge, {
500
506
  listType: "picture-card",
501
507
  fileList: B,
502
508
  multiple: !0,
503
509
  showUploadList: {
504
510
  showPreviewIcon: !1
505
511
  },
506
- beforeUpload: Te,
507
- accept: Le,
508
- onChange: Ue,
509
- children: B.length < 100 ? gl : null
512
+ beforeUpload: Ve,
513
+ accept: Te,
514
+ onChange: Oe,
515
+ children: B.length < 100 ? bl : null
510
516
  })
511
- }) : /* @__PURE__ */ e(Q, {}), r === "zip" && /* @__PURE__ */ d("div", {
517
+ }) : /* @__PURE__ */ e(Y, {}), r === "zip" && /* @__PURE__ */ d("div", {
512
518
  className: "upload-wrapper",
513
- children: [x != null && x.length ? /* @__PURE__ */ e("div", {
519
+ children: [j != null && j.length ? /* @__PURE__ */ e("div", {
514
520
  className: "upload-main",
515
- children: /* @__PURE__ */ e(be, {
521
+ children: /* @__PURE__ */ e(Ee, {
516
522
  gutter: [24, 8],
517
523
  className: "upload-pannel",
518
- children: x.map((i) => /* @__PURE__ */ e(Fl, {
524
+ children: j.map((i) => /* @__PURE__ */ e(Fl, {
519
525
  span: 24,
520
526
  className: "upload-item",
521
- children: /* @__PURE__ */ d(be, {
527
+ children: /* @__PURE__ */ d(Ee, {
522
528
  justify: "space-between",
523
529
  align: "middle",
524
- children: [/* @__PURE__ */ d(be, {
530
+ children: [/* @__PURE__ */ d(Ee, {
525
531
  align: "middle",
526
532
  children: [/* @__PURE__ */ e("span", {
527
533
  className: "upload-item-file-icon",
528
- children: /* @__PURE__ */ e(jl, {})
534
+ children: /* @__PURE__ */ e(kl, {})
529
535
  }), /* @__PURE__ */ e("span", {
530
536
  className: "upload-item-name",
531
537
  children: i.name
532
538
  })]
533
- }), /* @__PURE__ */ e(R, {
539
+ }), /* @__PURE__ */ e(O, {
534
540
  className: "upload-item-upload-delete",
535
541
  type: "link",
536
- disabled: K,
537
- onClick: () => bl(i),
538
- children: /* @__PURE__ */ e(kl, {})
542
+ disabled: _,
543
+ onClick: () => Cl(i),
544
+ children: /* @__PURE__ */ e(Ul, {})
539
545
  })]
540
546
  })
541
547
  }, i.uid))
@@ -547,81 +553,81 @@ const mt = (A) => {
547
553
  children: /* @__PURE__ */ d(Ke, {
548
554
  children: [/* @__PURE__ */ e("span", {
549
555
  children: "数据示例:"
550
- }), /* @__PURE__ */ e(R, {
556
+ }), /* @__PURE__ */ e(O, {
551
557
  size: "small",
552
558
  type: "link",
553
559
  style: {
554
560
  padding: 0
555
561
  },
556
562
  onClick: (i) => {
557
- i.stopPropagation(), Cl();
563
+ i.stopPropagation(), El();
558
564
  },
559
565
  children: "下载示例 >"
560
566
  })]
561
567
  })
562
- }), c !== "classification" && !($ === "labeled" && u.showExampleImage === !1) && /* @__PURE__ */ e("div", {
568
+ }), c !== "classification" && !(F === "labeled" && m.showExampleImage === !1) && /* @__PURE__ */ e("div", {
563
569
  className: "upload-example-main",
564
570
  children: /* @__PURE__ */ e("img", {
565
- src: $ === "labeled" ? c === "vlm" ? re === "dwg-json" ? Dl : Rl : Vl : c === "vlm" ? Ol : Ul
571
+ src: F === "labeled" ? c === "vlm" ? de === "dwg-json" ? Pl : Dl : Rl : c === "vlm" ? Ml : Ol
566
572
  })
567
573
  })]
568
574
  })]
569
575
  })]
570
576
  })]
571
577
  })
572
- }), le && /* @__PURE__ */ e(H, {
578
+ }), ie && /* @__PURE__ */ e(ee, {
573
579
  className: "uploading-modal",
574
580
  width: 404,
575
581
  title: null,
576
- open: le,
582
+ open: ie,
577
583
  maskClosable: !1,
578
584
  closable: r !== "image",
579
585
  onCancel: () => {
580
- Oe();
586
+ Me();
581
587
  },
582
588
  footer: null,
583
589
  children: /* @__PURE__ */ e("div", {
584
590
  className: "upload-spin",
585
- children: /* @__PURE__ */ e(Nl, {
586
- tip: r === "image" ? `数据导入中(${se}/${B.length}),请耐心等待` : `处理中(${ve}/100%),请耐心等待`,
591
+ children: /* @__PURE__ */ e(xl, {
592
+ tip: r === "image" ? `数据导入中(${oe}/${B.length}),请耐心等待` : `处理中(${Ne}/100%),请耐心等待`,
587
593
  size: "large",
588
594
  children: /* @__PURE__ */ e("div", {
589
595
  className: "content"
590
596
  })
591
597
  })
592
598
  })
593
- }), Be && /* @__PURE__ */ e(H, {
599
+ }), ye && /* @__PURE__ */ e(ee, {
594
600
  className: "result",
595
601
  width: 424,
596
602
  title: null,
597
- open: Be,
603
+ open: ye,
598
604
  closable: !1,
599
605
  footer: null,
600
606
  children: /* @__PURE__ */ e("div", {
601
607
  className: "upload-result",
602
- children: /* @__PURE__ */ e(Ge, {
608
+ children: /* @__PURE__ */ e(qe, {
603
609
  status: "success",
604
- title: wl(r, pe, $, u, B, ne, il, c),
605
- extra: [/* @__PURE__ */ e(R, {
606
- onClick: hl,
610
+ title: zl(r, me, F, m, B, ae, sl, c, k),
611
+ extra: [/* @__PURE__ */ e(O, {
612
+ onClick: gl,
607
613
  children: "关闭"
608
614
  }, "close")]
609
615
  })
610
616
  })
611
- }), Ne && /* @__PURE__ */ e(H, {
617
+ }), xe && /* @__PURE__ */ e(ee, {
612
618
  className: "result",
613
619
  width: 424,
614
620
  title: null,
615
- open: Ne,
621
+ open: xe,
616
622
  closable: !1,
617
623
  footer: null,
618
624
  children: /* @__PURE__ */ e("div", {
619
625
  className: "upload-result",
620
- children: /* @__PURE__ */ e(Ge, {
626
+ children: /* @__PURE__ */ e(qe, {
621
627
  status: "error",
622
628
  title: "文件处理失败",
623
- extra: [/* @__PURE__ */ e(R, {
624
- onClick: El,
629
+ extra: [/* @__PURE__ */ e(O, {
630
+ onClick: wl,
625
631
  children: "关闭"
626
632
  }, "close")]
627
633
  })
@@ -630,5 +636,5 @@ const mt = (A) => {
630
636
  });
631
637
  };
632
638
  export {
633
- mt as default
639
+ ft as default
634
640
  };