@glodon-aiot/dataset-annotation 3.10.0-alpha.25 → 3.10.0-alpha.26

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