@glodon-aiot/dataset-annotation 3.10.0-alpha.18 → 3.10.0-snapshot.16

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