disguise-ui 0.3.8 → 0.3.9

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.
@@ -92,7 +92,10 @@ var xn = {
92
92
  }, Sn = { class: "import-dialog__header" }, Cn = { class: "import-dialog__title" }, wn = { class: "import-dialog__header-actions" }, Tn = { class: "import-dialog" }, En = {
93
93
  key: 0,
94
94
  class: "import-dialog__steps"
95
- }, Dn = { key: 1 }, On = { class: "import-dialog__step-label" }, kn = { class: "import-dialog__form-label" }, An = { class: "import-dialog__desc" }, jn = { class: "import-dialog__upload-inner" }, Mn = { class: "import-dialog__upload-icon" }, Nn = { class: "import-dialog__upload-title" }, Pn = { class: "import-dialog__upload-link" }, Fn = { class: "import-dialog__upload-subtitle" }, In = {
95
+ }, Dn = { key: 1 }, On = { class: "import-dialog__step-label" }, kn = { class: "import-dialog__form-label" }, An = {
96
+ key: 0,
97
+ class: "import-dialog__desc"
98
+ }, jn = { class: "import-dialog__upload-inner" }, Mn = { class: "import-dialog__upload-icon" }, Nn = { class: "import-dialog__upload-title" }, Pn = { class: "import-dialog__upload-link" }, Fn = { class: "import-dialog__upload-subtitle" }, In = {
96
99
  key: 0,
97
100
  class: "import-dialog__upload-name"
98
101
  }, Ln = { class: "import-dialog__download" }, Rn = { class: "import-dialog__tips" }, zn = { class: "import-dialog__preview-header" }, Bn = { class: "import-dialog__preview-field" }, Vn = { class: "import-dialog__form-label" }, Hn = { class: "import-dialog__preview-field" }, Un = { class: "import-dialog__form-label" }, Wn = { class: "import-dialog__preview-summary" }, Gn = { class: "import-dialog__mapping-header" }, Kn = { class: "import-dialog__mapping-body" }, qn = { class: "import-dialog__mapping-arrow" }, Jn = { class: "import-dialog__mapping-checkbox" }, Yn = { class: "import-dialog__result-badge" }, Xn = { class: "import-dialog__result-title" }, Zn = { class: "import-dialog__result-description" }, Qn = {
@@ -149,13 +152,13 @@ var xn = {
149
152
  u("components.importDialog.tipFormula"),
150
153
  u("components.importDialog.tipArea"),
151
154
  u("components.importDialog.tipRelation")
152
- ]), I = b(() => n.accept.join(",")), L = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), ne = b(() => M.value !== null), V = b(() => !ne.value && !ee.value), re = b(() => u("components.importDialog.previewSummary", {
155
+ ]), I = b(() => n.accept.join(",")), L = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), ne = b(() => M.value !== null), re = b(() => !ne.value && !ee.value), ie = b(() => u("components.importDialog.previewSummary", {
153
156
  total: _.value,
154
157
  count: Math.min(g.value.length, n.maxPreviewCount)
155
- })), ie = b(() => f.value || d.value?.name || ""), U = b(() => h.value.map((e) => ({
158
+ })), U = b(() => f.value || d.value?.name || ""), ae = b(() => h.value.map((e) => ({
156
159
  label: e.label,
157
160
  value: e.label
158
- }))), ae = b(() => j.value || u("components.importDialog.importingProgress", { progress: A.value })), oe = b(() => M.value ? M.value.title ? M.value.title : M.value.success ? u("components.importDialog.successTitle") : u("components.importDialog.errorTitle") : ""), se = b(() => M.value ? M.value.description ? M.value.description : M.value.success ? u("components.importDialog.successDescription") : u("components.importDialog.errorDescription") : ""), ce = b(() => n.skipSteps.includes("preview")), K = b(() => n.skipSteps.includes("mapping")), le = b(() => [
161
+ }))), oe = b(() => j.value || u("components.importDialog.importingProgress", { progress: A.value })), se = b(() => M.value ? M.value.title ? M.value.title : M.value.success ? u("components.importDialog.successTitle") : u("components.importDialog.errorTitle") : ""), ce = b(() => M.value ? M.value.description ? M.value.description : M.value.success ? u("components.importDialog.successDescription") : u("components.importDialog.errorDescription") : ""), K = b(() => n.skipSteps.includes("preview")), le = b(() => n.skipSteps.includes("mapping")), de = b(() => [
159
162
  {
160
163
  key: "upload",
161
164
  label: u("components.importDialog.stepUpload")
@@ -172,46 +175,46 @@ var xn = {
172
175
  key: "import",
173
176
  label: u("components.importDialog.stepImport")
174
177
  }
175
- ].filter((e) => !(e.key === "preview" && ce.value || e.key === "mapping" && K.value))), de = b(() => {
176
- let e = c.value === "importing" ? "import" : c.value, t = le.value.findIndex((t) => t.key === e);
178
+ ].filter((e) => !(e.key === "preview" && K.value || e.key === "mapping" && le.value))), fe = b(() => {
179
+ let e = c.value === "importing" ? "import" : c.value, t = de.value.findIndex((t) => t.key === e);
177
180
  return t === -1 ? 0 : t;
178
- }), fe = b(() => c.value === "mapping" ? !0 : c.value === "preview" ? K.value : c.value === "upload" ? ee.value || ce.value && K.value : !1);
181
+ }), X = b(() => c.value === "mapping" ? !0 : c.value === "preview" ? le.value : c.value === "upload" ? ee.value || K.value && le.value : !1);
179
182
  q(() => n.modelValue, (e, t) => {
180
- e ? (l.value = n.defaultMode, o.open()) : (o.close(), k.value = !1, o.setState({ fullscreen: !1 }), t && n.resetOnClose && X());
183
+ e ? (l.value = n.defaultMode, o.open()) : (o.close(), k.value = !1, o.setState({ fullscreen: !1 }), t && n.resetOnClose && pe());
181
184
  }, { immediate: !0 });
182
- function X() {
185
+ function pe() {
183
186
  N.value += 1, c.value = "upload", d.value = null, f.value = "", p.value = [], m.value = "", h.value = [], g.value = [], _.value = 0, v.value = [], T.value = !1, O.value = !1, A.value = 0, j.value = "", M.value = null, s.value?.clearFiles();
184
187
  }
185
- function pe() {
188
+ function he() {
186
189
  p.value = [], m.value = "", h.value = [], g.value = [], _.value = 0, v.value = [], M.value = null;
187
190
  }
188
- function he() {
191
+ function ge() {
189
192
  ne.value || i("cancel"), i("update:modelValue", !1);
190
193
  }
191
- function ge() {
194
+ function _e() {
192
195
  k.value = !k.value, o.setState({ fullscreen: k.value });
193
196
  }
194
- async function _e() {
197
+ async function ve() {
195
198
  if (!n.templateUrl) i("downloadTemplate");
196
199
  else try {
197
- let e = await xn.download(ve(n.templateUrl), {
200
+ let e = await xn.download(ye(n.templateUrl), {
198
201
  method: n.templateMethod,
199
202
  responseReturn: "raw"
200
203
  });
201
204
  yn({
202
- fileName: be(ye(e.headers, "content-disposition"), n.templateName || "import-template.xlsx"),
205
+ fileName: xe(be(e.headers, "content-disposition"), n.templateName || "import-template.xlsx"),
203
206
  source: e.data
204
207
  });
205
208
  } catch (e) {
206
- Q.error(xe(e, u("components.importDialog.templateDownloadError")));
209
+ Q.error(Se(e, u("components.importDialog.templateDownloadError")));
207
210
  }
208
211
  }
209
- function ve(e) {
212
+ function ye(e) {
210
213
  if (/^https?:\/\//i.test(e)) return e;
211
214
  let t = xn.getBaseUrl() || "", n = (/^https?:\/\//i.test(t) ? new URL(t).pathname : t.split(/[?#]/, 1)[0] ?? "").replace(/\/+$/, "");
212
215
  return n && n !== "/" && (e === n || e.startsWith(`${n}/`)) ? e.slice(n.length) || "/" : e;
213
216
  }
214
- function ye(e, t) {
217
+ function be(e, t) {
215
218
  if (typeof e.get == "function") {
216
219
  let n = e.get(t);
217
220
  return typeof n == "string" ? n : void 0;
@@ -219,14 +222,14 @@ var xn = {
219
222
  let n = e[t];
220
223
  return typeof n == "string" ? n : void 0;
221
224
  }
222
- function be(e, t) {
225
+ function xe(e, t) {
223
226
  let n = e?.match(/filename\*=UTF-8''([^;]+)/i)?.[1];
224
227
  return n ? decodeURIComponent(n.replace(/^["']|["']$/g, "")) : e?.match(/filename="?([^";]+)"?/i)?.[1] || t;
225
228
  }
226
- function xe(e, t) {
229
+ function Se(e, t) {
227
230
  return e instanceof Error && e.message ? e.message : t;
228
231
  }
229
- function Se(e) {
232
+ function Ce(e) {
230
233
  if (e.size / 1024 / 1024 > n.maxSize) return Q.error(u("components.importDialog.fileSizeExceeded", { size: n.maxSize })), !1;
231
234
  if (!n.accept.length) return !0;
232
235
  let t = e.name.toLowerCase(), r = e.type.toLowerCase();
@@ -235,7 +238,7 @@ var xn = {
235
238
  return n.startsWith(".") ? t.endsWith(n) : r === n;
236
239
  }) ? !0 : (Q.error(u("components.importDialog.fileTypeInvalid", { types: L.value })), !1);
237
240
  }
238
- function Ce(e) {
241
+ function we(e) {
239
242
  let t = new Map((e ?? []).map((e) => [e.targetField, e]));
240
243
  return n.targetFields.map((e) => {
241
244
  let n = t.get(e.field);
@@ -249,14 +252,14 @@ var xn = {
249
252
  };
250
253
  });
251
254
  }
252
- function we(e) {
255
+ function Ee(e) {
253
256
  let t = e && typeof e == "object" ? e : {}, n = t.data && typeof t.data == "object" ? t.data : t, r = { success: typeof n.success == "boolean" ? n.success : t.success !== !1 };
254
257
  return typeof n.title == "string" && (r.title = n.title), typeof n.description == "string" && (r.description = n.description), typeof n.detail == "string" ? r.detail = n.detail : typeof n.message == "string" ? r.detail = n.message : typeof n.msg == "string" && (r.detail = n.msg), typeof n.successCount == "number" && (r.successCount = n.successCount), typeof n.failureCount == "number" && (r.failureCount = n.failureCount), r;
255
258
  }
256
- function Ee(e) {
257
- f.value = e.fileName || d.value?.name || "", p.value = e.sheets, m.value = e.currentSheet || e.sheets[0]?.value || "", h.value = e.previewColumns, g.value = e.previewRows, _.value = e.total, v.value = Ce(e.mappings);
259
+ function De(e) {
260
+ f.value = e.fileName || d.value?.name || "", p.value = e.sheets, m.value = e.currentSheet || e.sheets[0]?.value || "", h.value = e.previewColumns, g.value = e.previewRows, _.value = e.total, v.value = we(e.mappings);
258
261
  }
259
- async function De(e) {
262
+ async function Oe(e) {
260
263
  if (!d.value) return Q.warning(u("components.importDialog.fileRequired")), !1;
261
264
  if (!n.parseFile) return Q.error(u("components.importDialog.parseFileMissing")), !1;
262
265
  let t = ++N.value;
@@ -267,7 +270,7 @@ var xn = {
267
270
  mode: l.value,
268
271
  sheet: e
269
272
  });
270
- return t === N.value && (Ee(r), !0);
273
+ return t === N.value && (De(r), !0);
271
274
  } catch (e) {
272
275
  if (t !== N.value) return !1;
273
276
  let n = e instanceof Error ? e.message : u("components.importDialog.parseError");
@@ -276,60 +279,60 @@ var xn = {
276
279
  t === N.value && (T.value = !1);
277
280
  }
278
281
  }
279
- function Oe(e) {
282
+ function ke(e) {
280
283
  let t = e.raw;
281
- s.value?.clearFiles(), t && Se(t) && (d.value = t, f.value = t.name, c.value = "upload", pe(), i("fileChange", t));
284
+ s.value?.clearFiles(), t && Ce(t) && (d.value = t, f.value = t.name, c.value = "upload", he(), i("fileChange", t));
282
285
  }
283
- async function ke(e) {
284
- e && d.value && await De(e);
286
+ async function je(e) {
287
+ e && d.value && await Oe(e);
285
288
  }
286
- function je() {
289
+ function Me() {
287
290
  let e = v.value.find((e) => e.required && !e.sourceColumn);
288
291
  if (e) return Q.warning(u("components.importDialog.mappingRequired", { field: e.targetLabel })), !1;
289
292
  let t = v.value.map((e) => e.sourceColumn).filter(Boolean);
290
293
  return new Set(t).size === t.length || (Q.warning(u("components.importDialog.mappingDuplicate")), !1);
291
294
  }
292
- async function Me() {
295
+ async function Ne() {
293
296
  if (c.value === "upload") {
294
297
  if (ee.value) {
295
- await Ne();
298
+ await Fe();
296
299
  return;
297
300
  }
298
- if (!await De()) return;
299
- if (!ce.value) {
301
+ if (!await Oe()) return;
302
+ if (!K.value) {
300
303
  c.value = "preview";
301
304
  return;
302
305
  }
303
- if (!K.value) {
306
+ if (!le.value) {
304
307
  c.value = "mapping";
305
308
  return;
306
309
  }
307
- await Le();
310
+ await Be();
308
311
  } else if (c.value === "preview") {
309
- if (K.value) {
310
- await Le();
312
+ if (le.value) {
313
+ await Be();
311
314
  return;
312
315
  }
313
316
  c.value = "mapping";
314
- } else c.value === "mapping" && await Le();
317
+ } else c.value === "mapping" && await Be();
315
318
  }
316
- async function Ne() {
319
+ async function Fe() {
317
320
  if (!d.value) Q.warning(u("components.importDialog.fileRequired"));
318
321
  else if (!n.api) Q.error(u("components.importDialog.apiMissing"));
319
322
  else {
320
323
  c.value = "importing", O.value = !0, A.value = 8, j.value = u("components.importDialog.importingStart");
321
324
  try {
322
- let e = we(await xn.upload(ve(n.api), {
325
+ let e = Ee(await xn.upload(ye(n.api), {
323
326
  file: d.value,
324
327
  mode: l.value
325
328
  }, { onUploadProgress: (e) => {
326
- e.total && Ie(8 + Math.round(e.loaded / e.total * 84));
329
+ e.total && Le(8 + Math.round(e.loaded / e.total * 84));
327
330
  } }));
328
331
  A.value = 100, M.value = e, e.success ? i("success", e) : i("error", e);
329
332
  } catch (e) {
330
333
  let t = {
331
334
  success: !1,
332
- detail: xe(e, u("components.importDialog.importError"))
335
+ detail: Se(e, u("components.importDialog.importError"))
333
336
  };
334
337
  A.value = 100, M.value = t, i("error", e instanceof Error ? e : t);
335
338
  } finally {
@@ -337,16 +340,16 @@ var xn = {
337
340
  }
338
341
  }
339
342
  }
340
- function Fe() {
341
- c.value === "mapping" ? c.value = ce.value ? "upload" : "preview" : c.value === "preview" && (c.value = "upload");
343
+ function Ie() {
344
+ c.value === "mapping" ? c.value = K.value ? "upload" : "preview" : c.value === "preview" && (c.value = "upload");
342
345
  }
343
- function Ie(e, t) {
346
+ function Le(e, t) {
344
347
  A.value = Math.max(0, Math.min(100, Math.round(e))), t && (j.value = t);
345
348
  }
346
- async function Le() {
349
+ async function Be() {
347
350
  if (!d.value) Q.warning(u("components.importDialog.fileRequired"));
348
- else if (!ce.value && !m.value) Q.warning(u("components.importDialog.sheetRequired"));
349
- else if (K.value || je()) {
351
+ else if (!K.value && !m.value) Q.warning(u("components.importDialog.sheetRequired"));
352
+ else if (le.value || Me()) {
350
353
  c.value = "importing", O.value = !0, A.value = 8, j.value = u("components.importDialog.importingStart");
351
354
  try {
352
355
  if (!n.submitImport) throw Error(u("components.importDialog.submitImportMissing"));
@@ -355,7 +358,7 @@ var xn = {
355
358
  mode: l.value,
356
359
  sheet: m.value,
357
360
  mappings: v.value,
358
- onProgress: Ie
361
+ onProgress: Le
359
362
  });
360
363
  A.value = 100, M.value = e, e.success ? i("success", e) : i("error", e);
361
364
  } catch (e) {
@@ -383,7 +386,7 @@ var xn = {
383
386
  text: "",
384
387
  circle: "",
385
388
  class: "import-dialog__action",
386
- onClick: ge
389
+ onClick: _e
387
390
  }, {
388
391
  default: J(() => [D(G(Z), { size: 16 }, {
389
392
  default: J(() => [k.value ? (R(), x(G(lt), { key: 0 })) : (R(), x(G(rt), { key: 1 }))]),
@@ -394,7 +397,7 @@ var xn = {
394
397
  text: "",
395
398
  circle: "",
396
399
  class: "import-dialog__action",
397
- onClick: he
400
+ onClick: ge
398
401
  }, {
399
402
  default: J(() => [D(G(Z), { size: 16 }, {
400
403
  default: J(() => [D(G($e))]),
@@ -402,49 +405,50 @@ var xn = {
402
405
  })]),
403
406
  _: 1
404
407
  })])])]),
405
- footer: J(() => [w("div", ir, [c.value === "preview" || c.value === "mapping" ? (R(), C(y, { key: 0 }, [D(G(Y), { onClick: Fe }, {
408
+ footer: J(() => [w("div", ir, [c.value === "preview" || c.value === "mapping" ? (R(), C(y, { key: 0 }, [D(G(Y), { onClick: Ie }, {
406
409
  default: J(() => [E(W(G(u)("components.importDialog.previous")), 1)]),
407
410
  _: 1
408
411
  }), D(G(Y), {
409
412
  type: "primary",
410
413
  loading: T.value || O.value,
411
- onClick: Me
414
+ onClick: Ne
412
415
  }, {
413
- default: J(() => [E(W(fe.value ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
416
+ default: J(() => [E(W(X.value ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
414
417
  _: 1
415
418
  }, 8, ["loading"])], 64)) : c.value === "upload" ? (R(), x(G(Y), {
416
419
  key: 1,
417
420
  type: "primary",
418
421
  loading: T.value || O.value,
419
- onClick: Me
422
+ onClick: Ne
420
423
  }, {
421
- default: J(() => [E(W(fe.value ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
424
+ default: J(() => [E(W(X.value ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
422
425
  _: 1
423
426
  }, 8, ["loading"])) : (R(), x(G(Y), {
424
427
  key: 2,
425
- onClick: he
428
+ onClick: ge
426
429
  }, {
427
430
  default: J(() => [E(W(G(u)("common.close")), 1)]),
428
431
  _: 1
429
432
  }))])]),
430
- default: J(() => [w("div", Tn, [V.value ? (R(), C("div", En, [(R(!0), C(y, null, B(le.value, (e, t) => (R(), C("div", {
433
+ default: J(() => [w("div", Tn, [re.value ? (R(), C("div", En, [(R(!0), C(y, null, B(de.value, (e, t) => (R(), C("div", {
431
434
  key: e.key,
432
435
  class: "import-dialog__step"
433
436
  }, [
434
437
  w("div", { class: F(["import-dialog__step-node", {
435
- "is-active": t === de.value,
436
- "is-done": t < de.value
437
- }]) }, [t < de.value ? (R(), x(G(Z), { key: 0 }, {
438
+ "is-active": t === fe.value,
439
+ "is-done": t < fe.value
440
+ }]) }, [t < fe.value ? (R(), x(G(Z), { key: 0 }, {
438
441
  default: J(() => [D(G(Qe))]),
439
442
  _: 1
440
443
  })) : (R(), C("span", Dn, W(t + 1), 1))], 2),
441
444
  w("div", On, W(e.label), 1),
442
- t === le.value.length - 1 ? S("", !0) : (R(), C("div", {
445
+ t === de.value.length - 1 ? S("", !0) : (R(), C("div", {
443
446
  key: 0,
444
- class: F(["import-dialog__step-line", { "is-active": t < de.value }])
447
+ class: F(["import-dialog__step-line", { "is-active": t < fe.value }])
445
448
  }, null, 2))
446
449
  ]))), 128))])) : S("", !0), c.value === "upload" ? (R(), C(y, { key: 1 }, [
447
- e.importDesc ? (R(), C(y, { key: 0 }, [w("div", kn, W(G(u)("components.importDialog.descLabel")), 1), w("div", An, W(e.importDesc), 1)], 64)) : S("", !0),
450
+ V(t.$slots, "desc-title", {}, () => [w("div", kn, W(G(u)("components.importDialog.descLabel")), 1)], !0),
451
+ V(t.$slots, "desc-content", {}, () => [e.importDesc ? (R(), C("div", An, W(e.importDesc), 1)) : S("", !0)], !0),
448
452
  D(G(Ue), {
449
453
  ref_key: "uploadRef",
450
454
  ref: s,
@@ -453,7 +457,7 @@ var xn = {
453
457
  "auto-upload": !1,
454
458
  "show-file-list": !1,
455
459
  accept: I.value,
456
- "on-change": Oe
460
+ "on-change": ke
457
461
  }, {
458
462
  default: J(() => [w("div", jn, [
459
463
  w("div", Mn, [D(G(Z), { size: 20 }, {
@@ -462,7 +466,7 @@ var xn = {
462
466
  })]),
463
467
  w("div", Nn, [E(W(G(u)("components.importDialog.uploadPlaceholder")) + " ", 1), w("span", Pn, W(G(u)("components.importDialog.selectUpload")), 1)]),
464
468
  w("div", Fn, W(G(u)("components.importDialog.supportedTypes", { types: L.value })), 1),
465
- ie.value ? (R(), C("div", In, W(ie.value), 1)) : S("", !0)
469
+ U.value ? (R(), C("div", In, W(U.value), 1)) : S("", !0)
466
470
  ])]),
467
471
  _: 1
468
472
  }, 8, ["accept"]),
@@ -475,7 +479,7 @@ var xn = {
475
479
  w("button", {
476
480
  type: "button",
477
481
  class: "import-dialog__download-button",
478
- onClick: _e
482
+ onClick: ve
479
483
  }, W(G(u)("components.importDialog.downloadTemplate")), 1)
480
484
  ]),
481
485
  w("div", Rn, [(R(!0), C(y, null, B(te.value, (e) => (R(), C("div", {
@@ -484,14 +488,14 @@ var xn = {
484
488
  }, W(e), 1))), 128))])
485
489
  ], 64)) : c.value === "preview" ? (R(), C(y, { key: 2 }, [
486
490
  w("div", zn, [w("div", Bn, [w("div", Vn, W(G(u)("components.importDialog.fileLabel")), 1), D(G(Te), {
487
- "model-value": ie.value,
491
+ "model-value": U.value,
488
492
  readonly: ""
489
493
  }, null, 8, ["model-value"])]), w("div", Hn, [w("div", Un, W(G(u)("components.importDialog.sheetLabel")), 1), D(G(Pe), {
490
494
  modelValue: m.value,
491
495
  "onUpdate:modelValue": n[0] ||= (e) => m.value = e,
492
496
  class: "import-dialog__sheet-select",
493
497
  disabled: T.value,
494
- onChange: ke
498
+ onChange: je
495
499
  }, {
496
500
  default: J(() => [(R(!0), C(y, null, B(p.value, (e) => (R(), x(G($), {
497
501
  key: e.value,
@@ -521,7 +525,7 @@ var xn = {
521
525
  ]))), 128))]),
522
526
  _: 1
523
527
  }, 8, ["data"])), [[r, T.value]]),
524
- w("div", Wn, W(re.value), 1)
528
+ w("div", Wn, W(ie.value), 1)
525
529
  ], 64)) : c.value === "mapping" ? (R(), C(y, { key: 3 }, [w("div", Gn, [
526
530
  w("div", null, W(G(u)("components.importDialog.mappingExcelColumn")), 1),
527
531
  n[1] ||= w("div", null, null, -1),
@@ -537,7 +541,7 @@ var xn = {
537
541
  clearable: "",
538
542
  placeholder: G(u)("common.pleaseSelect")
539
543
  }, {
540
- default: J(() => [(R(!0), C(y, null, B(U.value, (e) => (R(), x(G($), {
544
+ default: J(() => [(R(!0), C(y, null, B(ae.value, (e) => (R(), x(G($), {
541
545
  key: e.value,
542
546
  label: e.label,
543
547
  value: e.value
@@ -573,8 +577,8 @@ var xn = {
573
577
  default: J(() => [D(G(pt))]),
574
578
  _: 1
575
579
  }))])], 2),
576
- w("div", Xn, W(oe.value), 1),
577
- w("div", Zn, W(se.value), 1),
580
+ w("div", Xn, W(se.value), 1),
581
+ w("div", Zn, W(ce.value), 1),
578
582
  M.value?.detail ? (R(), C("div", Qn, W(M.value.detail), 1)) : S("", !0)
579
583
  ], 64)) : c.value === "importing" ? (R(), C(y, { key: 5 }, [
580
584
  w("div", $n, [D(G(Ae), {
@@ -587,14 +591,14 @@ var xn = {
587
591
  _: 1
588
592
  })])]),
589
593
  w("div", tr, W(G(u)("components.importDialog.importingTitle")), 1),
590
- w("div", nr, W(ae.value), 1),
594
+ w("div", nr, W(oe.value), 1),
591
595
  w("div", rr, W(G(u)("components.importDialog.importingHint")), 1)
592
596
  ], 64)) : S("", !0)])]),
593
- _: 1
597
+ _: 3
594
598
  }, 8, ["title", "close-on-press-escape"]);
595
599
  };
596
600
  }
597
- }), [["__scopeId", "data-v-da023c99"]]), or = { class: "column-settings-panel" }, sr = { class: "column-settings-panel__header" }, cr = { class: "column-settings-panel__title" }, lr = { class: "column-settings-panel__list" }, ur = { class: "column-settings-panel__head" }, dr = { class: "column-settings-panel__drag-handle" }, fr = { class: "column-settings-panel__label" }, pr = { class: "column-settings-panel__footer" }, mr = { class: "column-settings-panel__count" }, hr = /*#__PURE__*/ f(/* @__PURE__ */ k({
601
+ }), [["__scopeId", "data-v-4cbcfa82"]]), or = { class: "column-settings-panel" }, sr = { class: "column-settings-panel__header" }, cr = { class: "column-settings-panel__title" }, lr = { class: "column-settings-panel__list" }, ur = { class: "column-settings-panel__head" }, dr = { class: "column-settings-panel__drag-handle" }, fr = { class: "column-settings-panel__label" }, pr = { class: "column-settings-panel__footer" }, mr = { class: "column-settings-panel__count" }, hr = /*#__PURE__*/ f(/* @__PURE__ */ k({
598
602
  __name: "ColumnSettingsPanel",
599
603
  props: {
600
604
  settings: {},
@@ -3641,6 +3645,7 @@ var Ta = ["title"], Ea = ["title"], Da = ["title"], Oa = ["title"], ka = ["disab
3641
3645
  D(G(ye), {
3642
3646
  "split-button": "",
3643
3647
  type: "primary",
3648
+ teleported: e.selectTeleported,
3644
3649
  class: "translate-toolbar__action",
3645
3650
  disabled: e.disabled || e.loading || !e.sourceLanguage || !e.targetLanguage,
3646
3651
  onClick: n[5] ||= (e) => r("translate", "translate"),
@@ -3658,12 +3663,12 @@ var Ta = ["title"], Ea = ["title"], Da = ["title"], Oa = ["title"], ka = ["disab
3658
3663
  })]),
3659
3664
  default: J(() => [E(W(G(u)("product-management.attribute.translation.translate")) + " ", 1)]),
3660
3665
  _: 1
3661
- }, 8, ["disabled"])
3666
+ }, 8, ["teleported", "disabled"])
3662
3667
  ])]),
3663
3668
  _: 1
3664
3669
  }, 8, ["disabled"]));
3665
3670
  }
3666
- }), [["__scopeId", "data-v-02492e8a"]]), Mo = ["element-loading-text"], No = {
3671
+ }), [["__scopeId", "data-v-9bc1a913"]]), Mo = ["element-loading-text"], No = {
3667
3672
  key: 1,
3668
3673
  class: "translate-field__grid"
3669
3674
  }, Po = ["for"], Fo = /*#__PURE__*/ f(/* @__PURE__ */ k({