@glodon-aiot/dataset-annotation 3.10.0-alpha.14 → 3.10.0-alpha.15

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