@glodon-aiot/dataset-annotation 3.10.0-alpha.17 → 3.10.0-alpha.19

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.
@@ -2,38 +2,38 @@ var Ee = Object.defineProperty, Pe = Object.defineProperties;
2
2
  var Ue = Object.getOwnPropertyDescriptors;
3
3
  var ae = Object.getOwnPropertySymbols;
4
4
  var Fe = Object.prototype.hasOwnProperty, He = Object.prototype.propertyIsEnumerable;
5
- var de = (m, l, r) => l in m ? Ee(m, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : m[l] = r, u = (m, l) => {
6
- for (var r in l || (l = {}))
7
- Fe.call(l, r) && de(m, r, l[r]);
5
+ var de = (f, n, r) => n in f ? Ee(f, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : f[n] = r, d = (f, n) => {
6
+ for (var r in n || (n = {}))
7
+ Fe.call(n, r) && de(f, r, n[r]);
8
8
  if (ae)
9
- for (var r of ae(l))
10
- He.call(l, r) && de(m, r, l[r]);
11
- return m;
12
- }, g = (m, l) => Pe(m, Ue(l));
13
- import { jsx as i, jsxs as k, Fragment as Ke } from "react/jsx-runtime";
14
- import { useState as s, useRef as Ze, useEffect as f } from "react";
15
- import { message as _, ConfigProvider as $e, Space as P, Select as je, Button as q, Tabs as We, Col as _e, Empty as qe } from "antd";
9
+ for (var r of ae(n))
10
+ He.call(n, r) && de(f, r, n[r]);
11
+ return f;
12
+ }, g = (f, n) => Pe(f, Ue(n));
13
+ import { jsx as o, jsxs as k, Fragment as Ke } from "react/jsx-runtime";
14
+ import { useState as s, useRef as Ze, useEffect as u } from "react";
15
+ import { message as W, ConfigProvider as $e, Space as A, Select as je, Button as _, Tabs as We, Col as _e, Empty as qe } from "antd";
16
16
  import Oe from "antd/es/locale/zh_CN";
17
17
  import "./style.less.mjs";
18
18
  import Ge from "./VlmModal/index.mjs";
19
19
  import Je from "./MarkVLMBoxModal/index.mjs";
20
20
  import Qe from "lodash/merge";
21
- import { UploadZipsStatus as x } from "@glodon-aiot/apis";
21
+ import { UploadZipsStatus as D } from "@glodon-aiot/apis";
22
22
  import Xe from "rc-virtual-list";
23
23
  import Ye from "../../Common/Page/index.mjs";
24
24
  import et from "../Thumbnail/index.mjs";
25
25
  import tt from "../../DatasetContext/index.mjs";
26
26
  import { DEFAULT_FILTER_SWITCH as rt } from "../../constant.mjs";
27
- import nt from "../PageNav/index.mjs";
28
- import ot from "../PicZipImportModal/index.mjs";
29
- import { Prompt as it } from "../hooks/Prompt.mjs";
30
- import lt from "../DetectionAnnotation/icon_item_empty.svg.mjs";
31
- const Dt = (m) => {
32
- var le;
27
+ import ot from "../PageNav/index.mjs";
28
+ import nt from "../PicZipImportModal/index.mjs";
29
+ import { Prompt as lt } from "../hooks/Prompt.mjs";
30
+ import it from "../DetectionAnnotation/icon_item_empty.svg.mjs";
31
+ const xt = (f) => {
32
+ var ie;
33
33
  const {
34
- services: l,
34
+ services: n,
35
35
  datasetId: r,
36
- versionId: D,
36
+ versionId: x,
37
37
  backTo: ue,
38
38
  labelManager: fe = !1,
39
39
  datasetManager: b = !1,
@@ -44,76 +44,76 @@ const Dt = (m) => {
44
44
  exampleSrcRoot: he,
45
45
  apiUrl: pe,
46
46
  token: ge
47
- } = m, [c, U] = s(), [t, T] = s(), [w, O] = s([]), [G, z] = s(!1), [F, H] = s(!1), [M, J] = s(0), [h, ve] = s([]), [R, y] = s(), [be, Q] = s(), [X, L] = s(-1), [o, C] = s({
47
+ } = f, [c, B] = s(), [t, T] = s(), [L, q] = s([]), [O, N] = s(!1), [E, P] = s(!1), [U, G] = s(0), [h, ve] = s([]), [w, y] = s(), [be, J] = s(), [Q, M] = s(-1), [l, C] = s({
48
48
  current: 0,
49
49
  pageSize: 100
50
- }), [A, Y] = s(0), [N, Se] = s(""), [ee, K] = s(!1), [S, Ie] = s(""), [ke, ye] = s(), [Ce, Ve] = s(), [te, Z] = s(!1), [re, xe] = s(!1), [ne, De] = s(!0), [Te, Me] = s(!1), B = Ze(null), $ = u({}, rt);
51
- Qe($, m.filterSwitch);
50
+ }), [X, Y] = s(0), [F, Se] = s(""), [ee, H] = s(!1), [S, Ie] = s(""), [ke, ye] = s(), [Ce, Ve] = s(), [te, K] = s(!1), [re, De] = s(!1), [oe, xe] = s(!0), [Te, Me] = s(!1), z = Ze(null), Z = d({}, rt);
51
+ Qe(Z, f.filterSwitch);
52
52
  const Le = () => {
53
- Q(void 0), K(!0);
53
+ J(void 0), H(!0);
54
54
  }, Ne = (e) => {
55
55
  if (!h)
56
56
  return;
57
- L(e);
58
- const n = h[e];
59
- y(n), H(!0);
57
+ M(e);
58
+ const i = h[e];
59
+ y(i), P(!0);
60
60
  };
61
- f(() => {
62
- l.cvforceDatahub && l.cvforceDatahub.getOptionsImgproxy().then((e) => ye(e));
63
- }, [l.cvforceDatahub]), f(() => {
64
- r && l.cvforceDatahub.getS3Iam(r).then((e) => {
61
+ u(() => {
62
+ n.cvforceDatahub && n.cvforceDatahub.getOptionsImgproxy().then((e) => ye(e));
63
+ }, [n.cvforceDatahub]), u(() => {
64
+ r && n.cvforceDatahub.getS3Iam(r).then((e) => {
65
65
  Ve(e);
66
66
  });
67
- }, [r]), f(() => {
68
- !r || t || (z(!0), Promise.all([
67
+ }, [r]), u(() => {
68
+ !r || t || (N(!0), Promise.all([
69
69
  // 数据集
70
- l.cvforceDatahub.getDatasetsId(r).then((e) => {
71
- U(e);
70
+ n.cvforceDatahub.getDatasetsId(r).then((e) => {
71
+ B(e);
72
72
  }),
73
73
  // 版本列表
74
- l.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
75
- O(e.recordList), T(D ? e.recordList.find((n) => n.id === D) : e.recordList[0]);
74
+ n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
75
+ q(e.recordList), T(x ? e.recordList.find((i) => i.id === x) : e.recordList[0]);
76
76
  })
77
- ]).finally(() => z(!1)));
78
- }, [r, t == null ? void 0 : t.id]), f(() => {
79
- r && (z(!0), Promise.all([
77
+ ]).finally(() => N(!1)));
78
+ }, [r, t == null ? void 0 : t.id]), u(() => {
79
+ r && (N(!0), Promise.all([
80
80
  // 数据集
81
- l.cvforceDatahub.getDatasetsId(r).then((e) => {
82
- U(e);
81
+ n.cvforceDatahub.getDatasetsId(r).then((e) => {
82
+ B(e);
83
83
  }),
84
84
  // 版本列表
85
- l.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
86
- O(e.recordList), T(D ? e.recordList.find((n) => n.id === D) : e.recordList[0]);
85
+ n.cvforceDatahub.getDatasetsIdVersions(r, 1, 1e3).then((e) => {
86
+ q(e.recordList), T(x ? e.recordList.find((i) => i.id === x) : e.recordList[0]);
87
87
  })
88
- ]).finally(() => z(!1)));
89
- }, [r, D]), f(() => {
90
- r && l.cvforceDatahub.getDatasetsId(r).then((e) => {
91
- U(e);
88
+ ]).finally(() => N(!1)));
89
+ }, [r, x]), u(() => {
90
+ r && n.cvforceDatahub.getDatasetsId(r).then((e) => {
91
+ B(e);
92
92
  });
93
93
  }, []);
94
- const oe = () => {
95
- !r || !t || l.cvforceDatahub.getDatasetsIdVersionsVid(r, t.id).then((e) => {
94
+ const ne = () => {
95
+ !r || !t || n.cvforceDatahub.getDatasetsIdVersionsVid(r, t.id).then((e) => {
96
96
  Ie(e.versionAsyncTask.state);
97
97
  });
98
98
  };
99
- f(() => {
100
- oe();
101
- }, [r, t == null ? void 0 : t.id]), f(() => {
102
- S !== x.Pending && S !== x.Started || _.warning("文件导入中,请刷新页面再试");
103
- }, [S]), f(() => {
104
- Me(!ne && re);
105
- }, [ne, re]);
99
+ u(() => {
100
+ ne();
101
+ }, [r, t == null ? void 0 : t.id]), u(() => {
102
+ S !== D.Pending && S !== D.Started || W.warning("文件导入中,请刷新页面再试");
103
+ }, [S]), u(() => {
104
+ Me(!oe && re);
105
+ }, [oe, re]);
106
106
  const V = () => {
107
- !r || !t || l.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(r, t.id).then((e) => {
108
- const n = e.find((p) => p.id === "allcodeid"), d = e.find((p) => p.id === "nocodeid");
109
- J(n ? n.count : 0), Y(d ? d.count : 0);
107
+ !r || !t || n.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(r, t.id).then((e) => {
108
+ const i = e.find((p) => p.id === "allcodeid"), m = e.find((p) => p.id === "nocodeid");
109
+ G(i ? i.count : 0), Y(m ? m.count : 0);
110
110
  });
111
- }, I = (e, n) => {
112
- const d = (e == null ? void 0 : e.current) || o.current, p = (e == null ? void 0 : e.pageSize) || o.pageSize, j = (e == null ? void 0 : e.type) || o.type, W = n || h || [];
113
- if (!r || !t || !d)
111
+ }, I = (e, i) => {
112
+ const m = (e == null ? void 0 : e.current) || l.current, p = (e == null ? void 0 : e.pageSize) || l.pageSize, $ = (e == null ? void 0 : e.type) || l.type, j = i || h || [];
113
+ if (!r || !t || !m)
114
114
  return Promise.resolve(!1);
115
115
  const Be = () => {
116
- switch (N) {
116
+ switch (F) {
117
117
  case "nocode":
118
118
  return "nocode";
119
119
  case "hascode":
@@ -122,127 +122,126 @@ const Dt = (m) => {
122
122
  return;
123
123
  }
124
124
  };
125
- return d === 1 && ie(), C(g(u({}, o), {
126
- current: d,
125
+ return m === 1 && le(), C(g(d({}, l), {
126
+ current: m,
127
127
  pageSize: p
128
- })), l.cvforceDatahub.getDatasetsIdVersionsVidSamples(r, t.id, {
129
- pageNo: d,
128
+ })), n.cvforceDatahub.getDatasetsIdVersionsVidSamples(r, t.id, {
129
+ pageNo: m,
130
130
  pageSize: p,
131
131
  labels: Be()
132
132
  }).then((se) => {
133
- const v = se.recordList || [], ce = d === 1 ? v : j === "prev" ? [...v, ...W] : [...W, ...v];
134
- if (ve(ce), C(g(u({}, o), {
135
- current: d,
133
+ const v = se.recordList || [], ce = m === 1 ? v : $ === "prev" ? [...v, ...j] : [...j, ...v];
134
+ if (ve(ce), C(g(d({}, l), {
135
+ current: m,
136
136
  pageSize: p,
137
137
  type: void 0,
138
138
  total: se.totalResults
139
- })), j === "next" && v.length) {
140
- const E = W.length;
141
- L(E), y(v[0]);
139
+ })), $ === "next" && v.length) {
140
+ const R = j.length;
141
+ M(R), y(v[0]);
142
142
  }
143
- if (j === "prev" && v.length) {
144
- const E = v.length - 1;
145
- L(E), y(v[E]);
143
+ if ($ === "prev" && v.length) {
144
+ const R = v.length - 1;
145
+ M(R), y(v[R]);
146
146
  }
147
147
  return ce;
148
148
  }).catch(() => !1);
149
149
  };
150
- f(() => {
151
- !t || !c || (I(g(u({}, o), {
150
+ u(() => {
151
+ !t || !c || (I(g(d({}, l), {
152
152
  current: 1
153
153
  })).then((e) => {
154
154
  }), V());
155
- }, [c == null ? void 0 : c.id, t == null ? void 0 : t.id]), f(() => {
155
+ }, [c == null ? void 0 : c.id, t == null ? void 0 : t.id]), u(() => {
156
156
  I().then((e) => {
157
157
  }), V();
158
- }, [o.current]), f(() => {
159
- I(g(u({}, o), {
158
+ }, [l.current]), u(() => {
159
+ I(g(d({}, l), {
160
160
  current: 1,
161
161
  total: void 0
162
162
  })).then((e) => {
163
163
  });
164
- }, [N]);
164
+ }, [F]);
165
165
  const we = () => {
166
166
  if (!h)
167
167
  return;
168
- const e = X + 1;
169
- if (e >= h.length) {
170
- let n = M;
171
- N === "hascode" && (n = M - A), N === "nocode" && (n = A), (o.current - 1) * o.pageSize + e >= n ? _.error("已经是最后一个了") : C({
172
- current: o.current + 1,
173
- pageSize: o.pageSize,
168
+ const e = Q + 1;
169
+ if (e >= h.length)
170
+ l.total && e >= l.total ? W.error("已经是最后一个了") : C({
171
+ current: l.current + 1,
172
+ pageSize: l.pageSize,
174
173
  type: "next"
175
174
  });
176
- } else {
177
- L(e);
178
- const n = h[e];
179
- y(n);
175
+ else {
176
+ M(e);
177
+ const i = h[e];
178
+ y(i);
180
179
  }
181
180
  }, ze = () => {
182
181
  if (!h)
183
182
  return;
184
- const e = X - 1;
183
+ const e = Q - 1;
185
184
  if (e < 0)
186
- (o.current - 1) * o.pageSize + e < 0 ? _.error("已经是第一个了") : C({
187
- current: o.current - 1,
188
- pageSize: o.pageSize,
185
+ e < 0 ? W.error("已经是第一个了") : C({
186
+ current: l.current - 1,
187
+ pageSize: l.pageSize,
189
188
  type: "prev"
190
189
  });
191
190
  else {
192
- L(e);
193
- const n = h[e];
194
- y(n);
191
+ M(e);
192
+ const i = h[e];
193
+ y(i);
195
194
  }
196
195
  }, Re = [{
197
196
  key: "",
198
- label: `全部(${M})`,
197
+ label: `全部(${U})`,
199
198
  children: null
200
199
  }, {
201
200
  key: "nocode",
202
- label: `未标注(${A})`,
201
+ label: `未标注(${X})`,
203
202
  children: null
204
203
  }, {
205
204
  key: "hascode",
206
- label: `已标注(${M - A})`,
205
+ label: `已标注(${U - X})`,
207
206
  children: null
208
207
  }];
209
- f(() => {
210
- F || y(void 0);
211
- }, [F]), f(() => {
208
+ u(() => {
209
+ E || y(void 0);
210
+ }, [E]), u(() => {
212
211
  c && c.markType !== "vlm" && console.error(`当前数据集不是vlm类型,请检查数据集类型。
213
212
  请检查markType是否为vlm。`);
214
213
  }, [c]);
215
- const ie = () => {
216
- var e, n;
217
- (n = (e = B.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || n.scrollTo({
214
+ const le = () => {
215
+ var e, i;
216
+ (i = (e = z.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || i.scrollTo({
218
217
  top: 0
219
218
  });
220
219
  }, Ae = (e) => {
221
- var n;
222
- (!o.total || o.total > h.length) && e.currentTarget.scrollHeight - e.currentTarget.scrollTop === ((n = B.current) == null ? void 0 : n.clientHeight) && C(g(u({}, o), {
223
- current: o.current + 1
220
+ var i;
221
+ (!l.total || l.total > h.length) && e.currentTarget.scrollHeight - e.currentTarget.scrollTop === ((i = z.current) == null ? void 0 : i.clientHeight) && C(g(d({}, l), {
222
+ current: l.current + 1
224
223
  }));
225
224
  };
226
- return /* @__PURE__ */ i($e, {
225
+ return /* @__PURE__ */ o($e, {
227
226
  locale: Oe,
228
- children: /* @__PURE__ */ i(tt.Provider, {
227
+ children: /* @__PURE__ */ o(tt.Provider, {
229
228
  value: {
230
229
  datasetId: r,
231
230
  versionId: (t == null ? void 0 : t.id) || "",
232
231
  no: (t == null ? void 0 : t.no) || "",
233
- loading: G,
232
+ loading: O,
234
233
  version: t,
235
- versions: w,
234
+ versions: L,
236
235
  samples: h,
237
- pagination: o,
238
- services: l,
236
+ pagination: l,
237
+ services: n,
239
238
  token: ge,
240
239
  apiUrl: pe,
241
240
  featuresConfig: {
242
241
  labelManager: fe,
243
242
  datasetManager: b,
244
243
  annotation: me,
245
- filterSwitch: $,
244
+ filterSwitch: Z,
246
245
  header: a,
247
246
  exampleSrcRoot: he
248
247
  }
@@ -251,90 +250,90 @@ const Dt = (m) => {
251
250
  className: "vlm-version-detail",
252
251
  children: [/* @__PURE__ */ k(Ye, {
253
252
  className: "product-details-page",
254
- header: a === !1 ? void 0 : /* @__PURE__ */ i(nt, {
253
+ header: a === !1 ? void 0 : /* @__PURE__ */ o(ot, {
255
254
  backTo: ue,
256
255
  onBackClick: a != null && a.onBackClick ? () => {
257
256
  a.onBackClick && a.onBackClick();
258
257
  } : void 0,
259
- left: !G && /* @__PURE__ */ k(P, {
260
- children: [/* @__PURE__ */ i("span", {
258
+ left: !O && /* @__PURE__ */ k(A, {
259
+ children: [/* @__PURE__ */ o("span", {
261
260
  style: {
262
261
  fontWeight: "bold"
263
262
  },
264
263
  children: c == null ? void 0 : c.name
265
- }), /* @__PURE__ */ i(je, {
264
+ }), /* @__PURE__ */ o(je, {
266
265
  disabled: (a == null ? void 0 : a.versionSelect) === !1,
267
266
  value: t == null ? void 0 : t.id,
268
267
  style: {
269
268
  width: 70
270
269
  },
271
- options: w.map((e) => ({
270
+ options: L.map((e) => ({
272
271
  label: e.no,
273
272
  value: e.id
274
273
  })),
275
274
  onChange: (e) => {
276
- const n = w.find((p) => p.id === e);
277
- if (!c || !n)
275
+ const i = L.find((p) => p.id === e);
276
+ if (!c || !i)
278
277
  return;
279
- const d = w.find((p) => p.id === n.id);
280
- T(d), a != null && a.onVersionChange && a.onVersionChange(d);
278
+ const m = L.find((p) => p.id === i.id);
279
+ T(m), a != null && a.onVersionChange && a.onVersionChange(m);
281
280
  }
282
281
  })]
283
282
  }),
284
- right: /* @__PURE__ */ k(P, {
285
- children: [!R && b && b.add && // <DisabledTooltip
283
+ right: /* @__PURE__ */ k(A, {
284
+ children: [!w && b && b.add && // <DisabledTooltip
286
285
  // isPreLabel={false}
287
286
  // placement="bottom"
288
287
  // >
289
- /* @__PURE__ */ i(q, {
288
+ /* @__PURE__ */ o(_, {
290
289
  type: "default",
291
- onClick: () => Z(!0),
292
- disabled: S === x.Pending || S === x.Started,
290
+ onClick: () => K(!0),
291
+ disabled: S === D.Pending || S === D.Started,
293
292
  children: "导入数据"
294
- }, "del"), /* @__PURE__ */ i(it, {
293
+ }, "del"), /* @__PURE__ */ o(lt, {
295
294
  when: Te,
296
295
  content: "确认要离开此页面吗?",
297
296
  subContent: "离开此页面后,将结束导入,放弃未上传的文件,请谨慎操作!"
298
- }), te && /* @__PURE__ */ i(ot, {
297
+ }), te && /* @__PURE__ */ o(nt, {
299
298
  datasetIam: Ce,
300
299
  datasetId: r,
301
300
  currentVersion: t,
302
301
  tenCode: c == null ? void 0 : c.tenantCode,
303
302
  markType: c.markType,
304
303
  isVisible: te,
305
- setIsVisible: Z,
304
+ setIsVisible: K,
306
305
  getVersionListRequest: V,
307
- setIsConfirm: De,
306
+ setIsConfirm: xe,
308
307
  onUploadStatusChange: (e) => {
309
- xe(e);
308
+ De(e);
310
309
  },
311
310
  tableReload: () => {
312
- t != null && t.id && (ie(), I(g(u({}, o), {
311
+ t != null && t.id && (le(), I(g(d({}, l), {
313
312
  current: 1
314
313
  })));
315
314
  },
316
- loadVersionData: oe
315
+ loadVersionData: ne
317
316
  })]
318
317
  })
319
318
  }),
320
319
  children: [/* @__PURE__ */ k("div", {
321
320
  className: "vlm-header",
322
- children: [/* @__PURE__ */ i(P, {
323
- children: $.tabs && /* @__PURE__ */ i(We, {
321
+ children: [/* @__PURE__ */ o(A, {
322
+ children: Z.tabs && /* @__PURE__ */ o(We, {
324
323
  className: "header-tab",
325
324
  defaultActiveKey: "",
326
325
  onChange: (e) => {
327
- C(g(u({}, o), {
326
+ C(g(d({}, l), {
328
327
  current: 1
329
328
  // total: 0,
330
329
  })), Se(e);
331
330
  },
332
331
  items: Re
333
332
  })
334
- }), /* @__PURE__ */ i(P, {
335
- children: b && b.label && /* @__PURE__ */ i(q, {
333
+ }), /* @__PURE__ */ o(A, {
334
+ children: b && b.label && /* @__PURE__ */ o(_, {
336
335
  type: "primary",
337
- disabled: !M,
336
+ disabled: !U,
338
337
  onClick: Le,
339
338
  style: {
340
339
  marginRight: "10px"
@@ -342,28 +341,28 @@ const Dt = (m) => {
342
341
  children: "标注"
343
342
  })
344
343
  })]
345
- }), /* @__PURE__ */ i("div", {
344
+ }), /* @__PURE__ */ o("div", {
346
345
  className: "d-row",
347
- children: /* @__PURE__ */ i("div", {
346
+ children: /* @__PURE__ */ o("div", {
348
347
  className: "d-right",
349
- ref: B,
350
- children: R ? /* @__PURE__ */ i("div", {}) : o.total !== void 0 && o.total > 0 ? /* @__PURE__ */ i(Ke, {
351
- children: /* @__PURE__ */ i(Xe, {
348
+ ref: z,
349
+ children: w ? /* @__PURE__ */ o("div", {}) : l.total !== void 0 && l.total > 0 ? /* @__PURE__ */ o(Ke, {
350
+ children: /* @__PURE__ */ o(Xe, {
352
351
  innerProps: {
353
352
  className: "d-right-row"
354
353
  },
355
354
  data: h,
356
355
  itemKey: "id",
357
- height: (le = B.current) == null ? void 0 : le.clientHeight,
356
+ height: (ie = z.current) == null ? void 0 : ie.clientHeight,
358
357
  onScroll: Ae,
359
- children: (e, n) => /* @__PURE__ */ i(_e, {
358
+ children: (e, i) => /* @__PURE__ */ o(_e, {
360
359
  className: "d-right-col",
361
- onClick: () => Ne(n),
362
- children: /* @__PURE__ */ i("div", {
360
+ onClick: () => Ne(i),
361
+ children: /* @__PURE__ */ o("div", {
363
362
  className: "right-col-wrapper",
364
- children: /* @__PURE__ */ i("div", {
363
+ children: /* @__PURE__ */ o("div", {
365
364
  className: "right-col-img",
366
- children: /* @__PURE__ */ i(et, {
365
+ children: /* @__PURE__ */ o(et, {
367
366
  fileKey: e.fileKey,
368
367
  width: 124,
369
368
  imgProxy: ke
@@ -372,21 +371,21 @@ const Dt = (m) => {
372
371
  })
373
372
  }, e.id)
374
373
  })
375
- }) : /* @__PURE__ */ i("div", {
374
+ }) : /* @__PURE__ */ o("div", {
376
375
  className: "empty",
377
- children: o.total === 0 ? /* @__PURE__ */ i(qe, {
378
- image: lt,
376
+ children: l.total === 0 ? /* @__PURE__ */ o(qe, {
377
+ image: it,
379
378
  description: /* @__PURE__ */ k("span", {
380
- children: ["暂无数据", N !== "hascode" && /* @__PURE__ */ i("span", {
381
- children: b && b.add && /* @__PURE__ */ k(q, {
379
+ children: ["暂无数据", F !== "hascode" && /* @__PURE__ */ o("span", {
380
+ children: b && b.add && /* @__PURE__ */ k(_, {
382
381
  type: "link",
383
382
  size: "small",
384
383
  style: {
385
384
  padding: 0
386
385
  },
387
- onClick: () => Z(!0),
388
- disabled: S === x.Pending || S === x.Started,
389
- children: [/* @__PURE__ */ i("span", {
386
+ onClick: () => K(!0),
387
+ disabled: S === D.Pending || S === D.Started,
388
+ children: [/* @__PURE__ */ o("span", {
390
389
  style: {
391
390
  color: "black"
392
391
  },
@@ -399,42 +398,42 @@ const Dt = (m) => {
399
398
  })
400
399
  })
401
400
  })]
402
- }), R && /* @__PURE__ */ i(Ge, {
403
- isVlmModalVisible: F,
404
- setIsVlmModalVisible: H,
405
- record: R,
401
+ }), w && /* @__PURE__ */ o(Ge, {
402
+ isVlmModalVisible: E,
403
+ setIsVlmModalVisible: P,
404
+ record: w,
406
405
  onNextClick: () => we(),
407
406
  onPrevClick: () => ze(),
408
407
  ocrMarkTmpl: c == null ? void 0 : c.ocrMarkTmpl,
409
408
  datasetId: r,
410
409
  versionId: t == null ? void 0 : t.id,
411
410
  handleMarkClick: (e) => {
412
- Q(e), H(!1), K(!0);
411
+ J(e), P(!1), H(!0);
413
412
  },
414
413
  updateSampleList: () => {
415
- I(g(u({}, o), {
414
+ I(g(d({}, l), {
416
415
  current: 1
417
416
  })), V();
418
417
  }
419
- }), ee && (t == null ? void 0 : t.id) && /* @__PURE__ */ i(Je, {
418
+ }), ee && (t == null ? void 0 : t.id) && /* @__PURE__ */ o(Je, {
420
419
  visible: ee,
421
420
  selectSampleId: be,
422
421
  datasetId: r,
423
422
  versionId: t.id,
424
423
  onClose: () => {
425
- I(g(u({}, o), {
424
+ I(g(d({}, l), {
426
425
  current: 1
427
- })), V(), K(!1);
426
+ })), V(), H(!1);
428
427
  },
429
428
  onSave: (e) => {
430
429
  if (!r || !t)
431
430
  throw "datasetId or version is not exist.";
432
- return l.cvforceDatahub.updateSamples(r, t.id, [u({}, e)]).then(() => (I(g(u({}, o), {
431
+ return n.cvforceDatahub.updateSamples(r, t.id, [d({}, e)]).then(() => (I(g(d({}, l), {
433
432
  current: 1
434
433
  })), V(), !0));
435
434
  }
436
435
  })]
437
- }) : /* @__PURE__ */ i("div", {
436
+ }) : /* @__PURE__ */ o("div", {
438
437
  style: {
439
438
  color: "red",
440
439
  textAlign: "center"
@@ -445,5 +444,5 @@ const Dt = (m) => {
445
444
  });
446
445
  };
447
446
  export {
448
- Dt as default
447
+ xt as default
449
448
  };