@glodon-aiot/dataset-annotation 3.19.2-alpha.1 → 3.19.2-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/PicZipImportModal/index.mjs +275 -269
- package/dist/es/components/VLMAnnotationDetail/VLMDetail/index.mjs +263 -254
- package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +154 -148
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +3 -3
- package/package.json +2 -2
|
@@ -1,197 +1,197 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Ze = (
|
|
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
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var s of
|
|
9
|
-
|
|
10
|
-
return
|
|
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
|
|
13
|
-
var
|
|
12
|
+
var Ce = (y, l, s) => new Promise((g, I) => {
|
|
13
|
+
var Z = ($) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
15
|
+
k(s.next($));
|
|
16
16
|
} catch (D) {
|
|
17
|
-
|
|
17
|
+
I(D);
|
|
18
18
|
}
|
|
19
|
-
}, c = (
|
|
19
|
+
}, c = ($) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
21
|
+
k(s.throw($));
|
|
22
22
|
} catch (D) {
|
|
23
|
-
|
|
23
|
+
I(D);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
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
|
|
29
|
-
import { useContext as
|
|
30
|
-
import { Form as
|
|
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
|
|
33
|
-
import
|
|
34
|
-
import { initMinio as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import { MB as
|
|
41
|
-
import { fileSuffixToLowerCase as
|
|
42
|
-
import
|
|
43
|
-
import { EXAMPLE_SRC_ROOT as
|
|
44
|
-
import { getImportConfig as
|
|
45
|
-
let
|
|
46
|
-
const
|
|
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:
|
|
52
|
-
isVisible:
|
|
51
|
+
tenCode: I,
|
|
52
|
+
isVisible: Z,
|
|
53
53
|
markType: c,
|
|
54
|
-
vlmMarkTmpl:
|
|
55
|
-
setIsVisible:
|
|
54
|
+
vlmMarkTmpl: k,
|
|
55
|
+
setIsVisible: $,
|
|
56
56
|
getVersionListRequest: D,
|
|
57
57
|
onUploadStatusChange: M,
|
|
58
|
-
setIsConfirm:
|
|
59
|
-
tableReload:
|
|
60
|
-
loadVersionData:
|
|
61
|
-
actionAfterFinish:
|
|
62
|
-
vlmDwgImport:
|
|
63
|
-
} =
|
|
58
|
+
setIsConfirm: le,
|
|
59
|
+
tableReload: we,
|
|
60
|
+
loadVersionData: Q,
|
|
61
|
+
actionAfterFinish: ze,
|
|
62
|
+
vlmDwgImport: He = !1
|
|
63
|
+
} = y, {
|
|
64
64
|
services: {
|
|
65
|
-
cvforceDatahub:
|
|
65
|
+
cvforceDatahub: u
|
|
66
66
|
},
|
|
67
67
|
featuresConfig: {
|
|
68
|
-
exampleSrcRoot:
|
|
68
|
+
exampleSrcRoot: Be
|
|
69
69
|
} = {
|
|
70
|
-
exampleSrcRoot:
|
|
70
|
+
exampleSrcRoot: _l
|
|
71
71
|
}
|
|
72
|
-
} =
|
|
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
|
-
),
|
|
76
|
-
Dragger:
|
|
77
|
-
} =
|
|
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
|
-
|
|
80
|
-
}, [
|
|
81
|
-
const
|
|
82
|
-
var
|
|
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
|
-
|
|
85
|
-
let
|
|
86
|
-
if (
|
|
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,
|
|
90
|
-
|
|
91
|
-
|
|
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:
|
|
94
|
-
width:
|
|
95
|
-
height:
|
|
96
|
-
}),
|
|
93
|
+
src: C.src,
|
|
94
|
+
width: C.width,
|
|
95
|
+
height: C.height
|
|
96
|
+
}), ll(te);
|
|
97
97
|
}, t.map((w) => {
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
}), n.length > 100 && n.splice(100, n.length),
|
|
101
|
-
const
|
|
102
|
-
if (
|
|
103
|
-
if (!
|
|
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
|
|
109
|
-
if (i.size >
|
|
110
|
-
return T.error(`${i.name}文件总大小不能超过${
|
|
111
|
-
const f = (
|
|
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
|
-
|
|
114
|
+
ue((n) => n.length >= 1 ? n : [...n, i]);
|
|
115
115
|
}
|
|
116
116
|
return !1;
|
|
117
117
|
};
|
|
118
118
|
V(() => {
|
|
119
|
-
Se !== !1 && (!v && !
|
|
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
|
|
121
|
+
const pl = (i) => {
|
|
122
122
|
const t = i.originFileObj;
|
|
123
|
-
return new Promise((
|
|
124
|
-
|
|
125
|
-
f &&
|
|
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
|
-
},
|
|
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
|
|
134
|
-
i.push(
|
|
133
|
+
const o = B[t], a = yield pl(o);
|
|
134
|
+
i.push(a);
|
|
135
135
|
}
|
|
136
|
-
!s || i.length === 0 ||
|
|
137
|
-
|
|
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
|
-
|
|
141
|
+
ul();
|
|
142
142
|
}, [B]);
|
|
143
143
|
const ml = (i, t) => {
|
|
144
|
-
t.md5 = i,
|
|
145
|
-
},
|
|
144
|
+
t.md5 = i, Ae.push(t);
|
|
145
|
+
}, Oe = ({
|
|
146
146
|
fileList: i
|
|
147
147
|
}) => {
|
|
148
148
|
if (r === "zip")
|
|
149
149
|
return;
|
|
150
|
-
|
|
151
|
-
const t = i.filter((
|
|
152
|
-
t.splice(100, t.length), t.length < B.length ? (
|
|
153
|
-
},
|
|
154
|
-
r === "zip" && (
|
|
155
|
-
},
|
|
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((
|
|
160
|
+
if (P.duplicated.length !== 0 && P.duplicated.map((o, a) => {
|
|
161
161
|
var b;
|
|
162
|
-
const f = P.duplicatedMd5[
|
|
163
|
-
var
|
|
164
|
-
return ((
|
|
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
|
-
|
|
166
|
+
re.push({
|
|
167
167
|
labels: [],
|
|
168
|
-
fileKey:
|
|
168
|
+
fileKey: o,
|
|
169
169
|
sampleFileName: {
|
|
170
170
|
name: n
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
}), P.unduplicated.length !== 0) {
|
|
174
|
-
const
|
|
175
|
-
const n =
|
|
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,
|
|
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":
|
|
181
|
-
"X-Amz-Meta-Height":
|
|
182
|
-
}, w = `dataset/${s}/sample/${
|
|
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
|
|
185
|
-
|
|
186
|
-
|
|
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(
|
|
192
|
-
|
|
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: `${
|
|
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(
|
|
202
|
+
Promise.all(o).then(() => {
|
|
203
203
|
!s || !g || setTimeout(() => {
|
|
204
|
-
|
|
205
|
-
samples:
|
|
204
|
+
u == null || u.postDatasetsIdVersionsVidSamples(s, g.id, {
|
|
205
|
+
samples: ve.concat(re)
|
|
206
206
|
}).then(() => {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}),
|
|
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
|
-
|
|
217
|
-
samples:
|
|
216
|
+
u == null || u.postDatasetsIdVersionsVidSamples(s, g.id, {
|
|
217
|
+
samples: re
|
|
218
218
|
}).then(() => {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}),
|
|
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
|
-
|
|
226
|
-
},
|
|
227
|
-
!s || !g || i.map((t,
|
|
228
|
-
var
|
|
229
|
-
const
|
|
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) + ((
|
|
237
|
-
b.readAsArrayBuffer(t), b.onload = (
|
|
238
|
-
|
|
239
|
-
if (
|
|
240
|
-
console.log(
|
|
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 (
|
|
242
|
+
if (fe.current)
|
|
243
243
|
return;
|
|
244
|
-
|
|
244
|
+
X(!0), c === "vlm" ? u == null || u.postVlmUploadPicsZip(s, g.id, {
|
|
245
245
|
zipUrl: (l == null ? void 0 : l.bucket) + "/" + n,
|
|
246
|
-
type:
|
|
247
|
-
}).then((
|
|
248
|
-
|
|
249
|
-
}) :
|
|
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:
|
|
253
|
-
})).then((
|
|
254
|
-
|
|
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
|
-
},
|
|
260
|
+
}, De = (i) => Ce(void 0, null, function* () {
|
|
261
261
|
var t;
|
|
262
|
-
if (!(!s || !g || !
|
|
262
|
+
if (!(!s || !g || !u))
|
|
263
263
|
try {
|
|
264
|
-
const
|
|
264
|
+
const o = yield u.checkFileResult(s, g.id, {
|
|
265
265
|
taskId: i
|
|
266
|
-
}, 5e3, c, (
|
|
267
|
-
Fe(
|
|
266
|
+
}, 5e3, c, (a) => {
|
|
267
|
+
Fe(a);
|
|
268
268
|
});
|
|
269
|
-
|
|
270
|
-
} catch (
|
|
271
|
-
if (((t =
|
|
272
|
-
|
|
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
|
-
|
|
279
|
-
}, [
|
|
280
|
-
|
|
281
|
-
}, [
|
|
282
|
-
|
|
283
|
-
}, [
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
},
|
|
287
|
-
D(),
|
|
288
|
-
},
|
|
289
|
-
children: [/* @__PURE__ */ e(
|
|
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
|
-
}),
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
const t =
|
|
299
|
-
|
|
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
|
-
|
|
304
|
-
},
|
|
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
|
-
|
|
307
|
-
labelFormat:
|
|
306
|
+
Ue === "labeled" && K.setFieldsValue({
|
|
307
|
+
labelFormat: Pe,
|
|
308
308
|
acceptType: "zip"
|
|
309
309
|
/* Zip */
|
|
310
310
|
});
|
|
311
|
-
}, [
|
|
312
|
-
const
|
|
311
|
+
}, [Ue, Pe]);
|
|
312
|
+
const zl = (i, t, o, a, f, n, b, C, E) => {
|
|
313
313
|
if (i === "image") {
|
|
314
|
-
const
|
|
315
|
-
return `数据导入完成,成功${n}个,失败${b}个,去重${
|
|
314
|
+
const q = f.length - n - b;
|
|
315
|
+
return `数据导入完成,成功${n}个,失败${b}个,去重${q}个`;
|
|
316
316
|
}
|
|
317
317
|
if (!t)
|
|
318
318
|
return "";
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
|
331
|
+
return G;
|
|
326
332
|
};
|
|
327
|
-
return /* @__PURE__ */ d(
|
|
328
|
-
children: [/* @__PURE__ */ e(
|
|
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: () =>
|
|
340
|
+
onCancel: () => Re(),
|
|
335
341
|
maskClosable: !1,
|
|
336
342
|
centered: !0,
|
|
337
|
-
footer: [/* @__PURE__ */ e(
|
|
338
|
-
onClick:
|
|
343
|
+
footer: [/* @__PURE__ */ e(O, {
|
|
344
|
+
onClick: Re,
|
|
339
345
|
children: "取消"
|
|
340
|
-
}, "cancel"), /* @__PURE__ */ e(
|
|
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" && !
|
|
345
|
-
loading:
|
|
350
|
+
disabled: r === "image" && !B.length || r === "zip" && !j.length || ie && Ne == 0 || rl,
|
|
351
|
+
loading: _ == !0,
|
|
346
352
|
onClick: () => {
|
|
347
|
-
|
|
353
|
+
fl(), ne(!0);
|
|
348
354
|
},
|
|
349
355
|
children: "导入"
|
|
350
356
|
}, "confirm")],
|
|
351
|
-
children: /* @__PURE__ */ d(
|
|
357
|
+
children: /* @__PURE__ */ d(U, {
|
|
352
358
|
className: "file-form",
|
|
353
359
|
preserve: !1,
|
|
354
|
-
form:
|
|
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(
|
|
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:
|
|
381
|
+
disabled: _,
|
|
376
382
|
onChange: (i) => {
|
|
377
|
-
|
|
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(
|
|
390
|
+
children: ["有标注信息", c === "vlm" && /* @__PURE__ */ e(Nl, {
|
|
385
391
|
title: "支持上传带OCR标注信息的数据",
|
|
386
|
-
children: /* @__PURE__ */ e(
|
|
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
|
-
}),
|
|
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:
|
|
405
|
-
onChange:
|
|
406
|
-
children: c === "vlm" ? /* @__PURE__ */ d(
|
|
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
|
-
}),
|
|
416
|
+
}), He && k === "KIE" && /* @__PURE__ */ e(N, {
|
|
411
417
|
value: "dwg-json",
|
|
412
418
|
children: "图纸json"
|
|
413
419
|
})]
|
|
414
|
-
}) :
|
|
415
|
-
value:
|
|
416
|
-
children:
|
|
420
|
+
}) : m.labelFormatLabel ? /* @__PURE__ */ e(N, {
|
|
421
|
+
value: m.labelFormat || "folder",
|
|
422
|
+
children: m.labelFormatLabel
|
|
417
423
|
}) : /* @__PURE__ */ e(N, {
|
|
418
|
-
value:
|
|
419
|
-
children:
|
|
424
|
+
value: m.labelFormat || "json",
|
|
425
|
+
children: m.labelFormat || "json"
|
|
420
426
|
})
|
|
421
427
|
})
|
|
422
|
-
}), /* @__PURE__ */ e(
|
|
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:
|
|
431
|
-
onChange:
|
|
432
|
-
children: [
|
|
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(
|
|
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:
|
|
447
|
-
accept: r === "zip" ? ".zip" :
|
|
452
|
+
beforeUpload: Ve,
|
|
453
|
+
accept: r === "zip" ? ".zip" : Te,
|
|
448
454
|
maxCount: r === "zip" ? 1 : void 0,
|
|
449
|
-
onChange:
|
|
450
|
-
disabled: r === "zip" ?
|
|
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(
|
|
459
|
+
children: /* @__PURE__ */ e(Ll, {})
|
|
454
460
|
}), /* @__PURE__ */ d(Ke, {
|
|
455
461
|
className: "file-upload-action",
|
|
456
|
-
children: [r === "image" && "拖拽图片至此,或者", r === "zip" && "拖拽包含“图片”的压缩包至此,或者", /* @__PURE__ */ e(
|
|
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" ?
|
|
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. 支持",
|
|
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格式,单个压缩包不超过",
|
|
484
|
-
}),
|
|
485
|
-
children:
|
|
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. ",
|
|
497
|
+
children: ["2. ", m.zipUploadTexts.unlabeled.description[0]]
|
|
492
498
|
}), /* @__PURE__ */ d("div", {
|
|
493
499
|
className: "item-upload-desc",
|
|
494
|
-
children: [
|
|
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(
|
|
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:
|
|
507
|
-
accept:
|
|
508
|
-
onChange:
|
|
509
|
-
children: B.length < 100 ?
|
|
512
|
+
beforeUpload: Ve,
|
|
513
|
+
accept: Te,
|
|
514
|
+
onChange: Oe,
|
|
515
|
+
children: B.length < 100 ? bl : null
|
|
510
516
|
})
|
|
511
|
-
}) : /* @__PURE__ */ e(
|
|
517
|
+
}) : /* @__PURE__ */ e(Y, {}), r === "zip" && /* @__PURE__ */ d("div", {
|
|
512
518
|
className: "upload-wrapper",
|
|
513
|
-
children: [
|
|
519
|
+
children: [j != null && j.length ? /* @__PURE__ */ e("div", {
|
|
514
520
|
className: "upload-main",
|
|
515
|
-
children: /* @__PURE__ */ e(
|
|
521
|
+
children: /* @__PURE__ */ e(Ee, {
|
|
516
522
|
gutter: [24, 8],
|
|
517
523
|
className: "upload-pannel",
|
|
518
|
-
children:
|
|
524
|
+
children: j.map((i) => /* @__PURE__ */ e(Fl, {
|
|
519
525
|
span: 24,
|
|
520
526
|
className: "upload-item",
|
|
521
|
-
children: /* @__PURE__ */ d(
|
|
527
|
+
children: /* @__PURE__ */ d(Ee, {
|
|
522
528
|
justify: "space-between",
|
|
523
529
|
align: "middle",
|
|
524
|
-
children: [/* @__PURE__ */ d(
|
|
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(
|
|
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(
|
|
539
|
+
}), /* @__PURE__ */ e(O, {
|
|
534
540
|
className: "upload-item-upload-delete",
|
|
535
541
|
type: "link",
|
|
536
|
-
disabled:
|
|
537
|
-
onClick: () =>
|
|
538
|
-
children: /* @__PURE__ */ e(
|
|
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(
|
|
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(),
|
|
563
|
+
i.stopPropagation(), El();
|
|
558
564
|
},
|
|
559
565
|
children: "下载示例 >"
|
|
560
566
|
})]
|
|
561
567
|
})
|
|
562
|
-
}), c !== "classification" && !(
|
|
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:
|
|
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
|
-
}),
|
|
578
|
+
}), ie && /* @__PURE__ */ e(ee, {
|
|
573
579
|
className: "uploading-modal",
|
|
574
580
|
width: 404,
|
|
575
581
|
title: null,
|
|
576
|
-
open:
|
|
582
|
+
open: ie,
|
|
577
583
|
maskClosable: !1,
|
|
578
584
|
closable: r !== "image",
|
|
579
585
|
onCancel: () => {
|
|
580
|
-
|
|
586
|
+
Me();
|
|
581
587
|
},
|
|
582
588
|
footer: null,
|
|
583
589
|
children: /* @__PURE__ */ e("div", {
|
|
584
590
|
className: "upload-spin",
|
|
585
|
-
children: /* @__PURE__ */ e(
|
|
586
|
-
tip: r === "image" ? `数据导入中(${
|
|
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
|
-
}),
|
|
599
|
+
}), ye && /* @__PURE__ */ e(ee, {
|
|
594
600
|
className: "result",
|
|
595
601
|
width: 424,
|
|
596
602
|
title: null,
|
|
597
|
-
open:
|
|
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(
|
|
608
|
+
children: /* @__PURE__ */ e(qe, {
|
|
603
609
|
status: "success",
|
|
604
|
-
title:
|
|
605
|
-
extra: [/* @__PURE__ */ e(
|
|
606
|
-
onClick:
|
|
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
|
-
}),
|
|
617
|
+
}), xe && /* @__PURE__ */ e(ee, {
|
|
612
618
|
className: "result",
|
|
613
619
|
width: 424,
|
|
614
620
|
title: null,
|
|
615
|
-
open:
|
|
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(
|
|
626
|
+
children: /* @__PURE__ */ e(qe, {
|
|
621
627
|
status: "error",
|
|
622
628
|
title: "文件处理失败",
|
|
623
|
-
extra: [/* @__PURE__ */ e(
|
|
624
|
-
onClick:
|
|
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
|
-
|
|
639
|
+
ft as default
|
|
634
640
|
};
|