disguise-ui 0.3.2 → 0.3.4

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,12 +1,13 @@
1
- import { i as e, r as t, t as n } from "./picture-cell-D4IF_fwn.js";
1
+ import { i as e, r as t, t as n } from "./picture-cell-C6BLbwEb.js";
2
2
  import { t as r } from "./modal-CHOpDVLd.js";
3
- import { a as i, d as a, f as o, i as s, n as c, o as l, s as u, t as d, u as f } from "./_plugin-vue_export-helper-BaV2q_qe.js";
4
- import { t as p } from "./use-image-url-BnWCAP3q.js";
5
- import { t as m } from "./user-avatar-info-CLHoRFpQ.js";
3
+ import { a as i, d as a, i as o, l as s, o as c, r as l, t as u, u as d } from "./i18n-D9LSb_U5.js";
4
+ import { t as f } from "./_plugin-vue_export-helper-Djzt4Yr7.js";
5
+ import { t as p } from "./use-image-url-Df54pSFh.js";
6
+ import { t as m } from "./user-avatar-info-COmJGI9K.js";
6
7
  import { t as h } from "./use-file-type-rNstoxXw.js";
7
- import { t as g } from "./file-upload-BllX1YqY.js";
8
- import { r as _ } from "./use-multiple-file-upload-D84IYptm.js";
9
- import { t as v } from "./picture-upload-DO3ttk_V.js";
8
+ import { t as g } from "./file-upload-n4pZizh3.js";
9
+ import { r as _ } from "./use-multiple-file-upload-CBOycBu3.js";
10
+ import { t as v } from "./picture-upload-C_10NZsL.js";
10
11
  import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, guardReactiveProps as A, h as j, isRef as M, mergeModels as N, mergeProps as P, nextTick as ee, normalizeClass as F, normalizeProps as I, normalizeStyle as L, onUnmounted as te, openBlock as R, reactive as ne, ref as z, renderList as B, renderSlot as V, resolveComponent as re, resolveDirective as H, resolveDynamicComponent as U, shallowReactive as ie, toDisplayString as W, toHandlers as ae, toValue as oe, unref as G, useModel as K, useSlots as se, vModelSelect as ce, vModelText as le, watch as q, withCtx as J, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
11
12
  import { ElButton as Y, ElCard as X, ElCascader as pe, ElCheckbox as me, ElCheckboxGroup as he, ElCol as ge, ElDatePicker as _e, ElDrawer as ve, ElDropdown as ye, ElDropdownItem as be, ElDropdownMenu as xe, ElForm as Se, ElFormItem as Ce, ElIcon as Z, ElImageViewer as we, ElInput as Te, ElInputNumber as Ee, ElMessage as Q, ElMessageBox as De, ElOption as $, ElPagination as Oe, ElPopover as ke, ElProgress as Ae, ElRadio as je, ElRadioGroup as Me, ElRow as Ne, ElSelect as Pe, ElSelectV2 as Fe, ElSwitch as Ie, ElTabPane as Le, ElTable as Re, ElTableColumn as ze, ElTableV2 as Be, ElTabs as Ve, ElTooltip as He, ElUpload as Ue, TableV2FixedDir as We } from "element-plus";
12
13
  import Ge from "dayjs";
@@ -37,12 +38,12 @@ var fn = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%
37
38
  // src/runtime/access.ts
38
39
  function pn() {
39
40
  return { hasAccessByCodes(e) {
40
- return i().value(e);
41
+ return o().value(e);
41
42
  } };
42
43
  }
43
44
  function mn() {
44
45
  return { get accessToken() {
45
- return l();
46
+ return i();
46
47
  } };
47
48
  }
48
49
  Ge.extend(qe), Ge.extend(Ke), Ge.tz.setDefault(Ge.tz.guess());
@@ -74,13 +75,13 @@ function bn({ fileName: e = "download", source: t }) {
74
75
  }
75
76
  // src/runtime/request.ts
76
77
  function xn() {
77
- let e = a();
78
+ let e = d();
78
79
  if (!e) throw Error("请先调用 setupDisguise,并传入 request");
79
80
  return e;
80
81
  }
81
82
  var Sn = {
82
83
  getBaseUrl() {
83
- return a()?.getBaseUrl() ?? "";
84
+ return d()?.getBaseUrl() ?? "";
84
85
  },
85
86
  download(e, t) {
86
87
  return xn().download(e, t);
@@ -97,7 +98,7 @@ var Sn = {
97
98
  }, 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 = {
98
99
  key: 0,
99
100
  class: "import-dialog__result-detail"
100
- }, $n = { class: "import-dialog__progress" }, er = { class: "import-dialog__progress-icon" }, tr = { class: "import-dialog__progress-title" }, nr = { class: "import-dialog__progress-description" }, rr = { class: "import-dialog__progress-hint" }, ir = { class: "import-dialog__footer" }, ar = /* @__PURE__ */ d(/* @__PURE__ */ k({
101
+ }, $n = { class: "import-dialog__progress" }, er = { class: "import-dialog__progress-icon" }, tr = { class: "import-dialog__progress-title" }, nr = { class: "import-dialog__progress-description" }, rr = { class: "import-dialog__progress-hint" }, ir = { class: "import-dialog__footer" }, ar = /* @__PURE__ */ f(/* @__PURE__ */ k({
101
102
  __name: "index",
102
103
  props: {
103
104
  modelValue: {
@@ -140,35 +141,35 @@ var Sn = {
140
141
  setup(e, { emit: t }) {
141
142
  let n = e, i = t, [a, o] = r({ onOpenChange: (e) => {
142
143
  e !== n.modelValue && i("update:modelValue", e);
143
- } }), s = z(), l = z("upload"), u = z(n.defaultMode), d = z(null), f = z(""), p = z([]), m = z(""), h = z([]), g = z([]), _ = z(0), v = z([]), T = z(!1), O = z(!1), k = z(!1), A = z(0), j = z(""), M = z(null), N = z(0), P = b(() => n.title || c("components.importDialog.title")), ee = b(() => !!n.api), I = b(() => n.modes?.length ? n.modes : [{
144
- label: c("components.importDialog.modeCreate"),
144
+ } }), s = z(), c = z("upload"), l = z(n.defaultMode), d = z(null), f = z(""), p = z([]), m = z(""), h = z([]), g = z([]), _ = z(0), v = z([]), T = z(!1), O = z(!1), k = z(!1), A = z(0), j = z(""), M = z(null), N = z(0), P = b(() => n.title || u("components.importDialog.title")), ee = b(() => !!n.api), I = b(() => n.modes?.length ? n.modes : [{
145
+ label: u("components.importDialog.modeCreate"),
145
146
  value: "create"
146
147
  }, {
147
- label: c("components.importDialog.modeUpdate"),
148
+ label: u("components.importDialog.modeUpdate"),
148
149
  value: "update"
149
150
  }]), L = b(() => n.tips?.length ? n.tips : [
150
- c("components.importDialog.tipSize", { size: n.maxSize }),
151
- c("components.importDialog.tipHeader"),
152
- c("components.importDialog.tipFormula"),
153
- c("components.importDialog.tipArea"),
154
- c("components.importDialog.tipRelation")
155
- ]), te = b(() => n.accept.join(",")), ne = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), V = b(() => M.value !== null), re = b(() => !V.value && !ee.value), U = b(() => c("components.importDialog.previewSummary", {
151
+ u("components.importDialog.tipSize", { size: n.maxSize }),
152
+ u("components.importDialog.tipHeader"),
153
+ u("components.importDialog.tipFormula"),
154
+ u("components.importDialog.tipArea"),
155
+ u("components.importDialog.tipRelation")
156
+ ]), te = b(() => n.accept.join(",")), ne = b(() => n.accept.map((e) => e.replace(/^\./, "").toUpperCase()).join("、")), V = b(() => M.value !== null), re = b(() => !V.value && !ee.value), U = b(() => u("components.importDialog.previewSummary", {
156
157
  total: _.value,
157
158
  count: Math.min(g.value.length, n.maxPreviewCount)
158
159
  })), ie = b(() => f.value || d.value?.name || ""), ae = b(() => h.value.map((e) => ({
159
160
  label: e.label,
160
161
  value: e.label
161
- }))), oe = b(() => j.value || c("components.importDialog.importingProgress", { progress: A.value })), K = b(() => M.value ? M.value.title ? M.value.title : M.value.success ? c("components.importDialog.successTitle") : c("components.importDialog.errorTitle") : ""), se = b(() => M.value ? M.value.description ? M.value.description : M.value.success ? c("components.importDialog.successDescription") : c("components.importDialog.errorDescription") : ""), ce = b(() => [
162
- c("components.importDialog.stepUpload"),
163
- c("components.importDialog.stepPreview"),
164
- c("components.importDialog.stepMapping"),
165
- c("components.importDialog.stepImport")
162
+ }))), oe = b(() => j.value || u("components.importDialog.importingProgress", { progress: A.value })), K = 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(() => [
163
+ u("components.importDialog.stepUpload"),
164
+ u("components.importDialog.stepPreview"),
165
+ u("components.importDialog.stepMapping"),
166
+ u("components.importDialog.stepImport")
166
167
  ]);
167
168
  q(() => n.modelValue, (e, t) => {
168
- e ? (u.value = n.defaultMode, o.open()) : (o.close(), k.value = !1, o.setState({ fullscreen: !1 }), t && n.resetOnClose && le());
169
+ e ? (l.value = n.defaultMode, o.open()) : (o.close(), k.value = !1, o.setState({ fullscreen: !1 }), t && n.resetOnClose && le());
169
170
  }, { immediate: !0 });
170
171
  function le() {
171
- N.value += 1, l.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();
172
+ 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();
172
173
  }
173
174
  function de() {
174
175
  p.value = [], m.value = "", h.value = [], g.value = [], _.value = 0, v.value = [], M.value = null;
@@ -191,7 +192,7 @@ var Sn = {
191
192
  source: e.data
192
193
  });
193
194
  } catch (e) {
194
- Q.error(ve(e, c("components.importDialog.templateDownloadError")));
195
+ Q.error(ve(e, u("components.importDialog.templateDownloadError")));
195
196
  }
196
197
  }
197
198
  function he(e) {
@@ -215,13 +216,13 @@ var Sn = {
215
216
  return e instanceof Error && e.message ? e.message : t;
216
217
  }
217
218
  function ye(e) {
218
- if (e.size / 1024 / 1024 > n.maxSize) return Q.error(c("components.importDialog.fileSizeExceeded", { size: n.maxSize })), !1;
219
+ if (e.size / 1024 / 1024 > n.maxSize) return Q.error(u("components.importDialog.fileSizeExceeded", { size: n.maxSize })), !1;
219
220
  if (!n.accept.length) return !0;
220
221
  let t = e.name.toLowerCase(), r = e.type.toLowerCase();
221
222
  return n.accept.some((e) => {
222
223
  let n = e.toLowerCase();
223
224
  return n.startsWith(".") ? t.endsWith(n) : r === n;
224
- }) ? !0 : (Q.error(c("components.importDialog.fileTypeInvalid", { types: ne.value })), !1);
225
+ }) ? !0 : (Q.error(u("components.importDialog.fileTypeInvalid", { types: ne.value })), !1);
225
226
  }
226
227
  function be(e) {
227
228
  let t = new Map((e ?? []).map((e) => [e.targetField, e]));
@@ -246,11 +247,11 @@ var Sn = {
246
247
  }
247
248
  async function Ce(e) {
248
249
  if (!d.value) {
249
- Q.warning(c("components.importDialog.fileRequired"));
250
+ Q.warning(u("components.importDialog.fileRequired"));
250
251
  return;
251
252
  }
252
253
  if (!n.parseFile) {
253
- Q.error(c("components.importDialog.parseFileMissing"));
254
+ Q.error(u("components.importDialog.parseFileMissing"));
254
255
  return;
255
256
  }
256
257
  let t = ++N.value;
@@ -258,14 +259,14 @@ var Sn = {
258
259
  try {
259
260
  let r = await n.parseFile({
260
261
  file: d.value,
261
- mode: u.value,
262
+ mode: l.value,
262
263
  sheet: e
263
264
  });
264
265
  if (t !== N.value) return;
265
- Se(r), l.value = "preview";
266
+ Se(r), c.value = "preview";
266
267
  } catch (e) {
267
268
  if (t !== N.value) return;
268
- let n = e instanceof Error ? e.message : c("components.importDialog.parseError");
269
+ let n = e instanceof Error ? e.message : u("components.importDialog.parseError");
269
270
  Q.error(n);
270
271
  } finally {
271
272
  t === N.value && (T.value = !1);
@@ -273,38 +274,38 @@ var Sn = {
273
274
  }
274
275
  function we(e) {
275
276
  let t = e.raw;
276
- s.value?.clearFiles(), t && ye(t) && (d.value = t, f.value = t.name, l.value = "upload", de(), i("fileChange", t));
277
+ s.value?.clearFiles(), t && ye(t) && (d.value = t, f.value = t.name, c.value = "upload", de(), i("fileChange", t));
277
278
  }
278
279
  function Ee(e) {
279
- typeof e == "string" && (u.value = e, de(), l.value = "upload");
280
+ typeof e == "string" && (l.value = e, de(), c.value = "upload");
280
281
  }
281
282
  async function De(e) {
282
283
  e && d.value && await Ce(e);
283
284
  }
284
285
  function Oe() {
285
286
  let e = v.value.find((e) => e.required && !e.sourceColumn);
286
- if (e) return Q.warning(c("components.importDialog.mappingRequired", { field: e.targetLabel })), !1;
287
+ if (e) return Q.warning(u("components.importDialog.mappingRequired", { field: e.targetLabel })), !1;
287
288
  let t = v.value.map((e) => e.sourceColumn).filter(Boolean);
288
- return new Set(t).size === t.length || (Q.warning(c("components.importDialog.mappingDuplicate")), !1);
289
+ return new Set(t).size === t.length || (Q.warning(u("components.importDialog.mappingDuplicate")), !1);
289
290
  }
290
291
  async function ke() {
291
- if (l.value === "upload") {
292
+ if (c.value === "upload") {
292
293
  if (ee.value) {
293
294
  await Ne();
294
295
  return;
295
296
  }
296
297
  await Ce();
297
- } else l.value === "preview" ? l.value = "mapping" : l.value === "mapping" && await Le();
298
+ } else c.value === "preview" ? c.value = "mapping" : c.value === "mapping" && await Le();
298
299
  }
299
300
  async function Ne() {
300
- if (!d.value) Q.warning(c("components.importDialog.fileRequired"));
301
- else if (!n.api) Q.error(c("components.importDialog.apiMissing"));
301
+ if (!d.value) Q.warning(u("components.importDialog.fileRequired"));
302
+ else if (!n.api) Q.error(u("components.importDialog.apiMissing"));
302
303
  else {
303
- l.value = "importing", O.value = !0, A.value = 8, j.value = c("components.importDialog.importingStart");
304
+ c.value = "importing", O.value = !0, A.value = 8, j.value = u("components.importDialog.importingStart");
304
305
  try {
305
306
  let e = xe(await Sn.upload(he(n.api), {
306
307
  file: d.value,
307
- mode: u.value
308
+ mode: l.value
308
309
  }, { onUploadProgress: (e) => {
309
310
  e.total && Ie(8 + Math.round(e.loaded / e.total * 84));
310
311
  } }));
@@ -312,7 +313,7 @@ var Sn = {
312
313
  } catch (e) {
313
314
  let t = {
314
315
  success: !1,
315
- detail: ve(e, c("components.importDialog.importError"))
316
+ detail: ve(e, u("components.importDialog.importError"))
316
317
  };
317
318
  A.value = 100, M.value = t, i("error", e instanceof Error ? e : t);
318
319
  } finally {
@@ -321,21 +322,21 @@ var Sn = {
321
322
  }
322
323
  }
323
324
  function Fe() {
324
- l.value === "mapping" ? l.value = "preview" : l.value === "preview" && (l.value = "upload");
325
+ c.value === "mapping" ? c.value = "preview" : c.value === "preview" && (c.value = "upload");
325
326
  }
326
327
  function Ie(e, t) {
327
328
  A.value = Math.max(0, Math.min(100, Math.round(e))), t && (j.value = t);
328
329
  }
329
330
  async function Le() {
330
- if (!d.value) Q.warning(c("components.importDialog.fileRequired"));
331
- else if (!m.value) Q.warning(c("components.importDialog.sheetRequired"));
331
+ if (!d.value) Q.warning(u("components.importDialog.fileRequired"));
332
+ else if (!m.value) Q.warning(u("components.importDialog.sheetRequired"));
332
333
  else if (Oe()) {
333
- l.value = "importing", O.value = !0, A.value = 8, j.value = c("components.importDialog.importingStart");
334
+ c.value = "importing", O.value = !0, A.value = 8, j.value = u("components.importDialog.importingStart");
334
335
  try {
335
- if (!n.submitImport) throw Error(c("components.importDialog.submitImportMissing"));
336
+ if (!n.submitImport) throw Error(u("components.importDialog.submitImportMissing"));
336
337
  let e = await n.submitImport({
337
338
  file: d.value,
338
- mode: u.value,
339
+ mode: l.value,
339
340
  sheet: m.value,
340
341
  mappings: v.value,
341
342
  onProgress: Ie
@@ -344,7 +345,7 @@ var Sn = {
344
345
  } catch (e) {
345
346
  let t = {
346
347
  success: !1,
347
- detail: e instanceof Error ? e.message : c("components.importDialog.importError")
348
+ detail: e instanceof Error ? e.message : u("components.importDialog.importError")
348
349
  };
349
350
  A.value = 100, M.value = t, i("error", e instanceof Error ? e : t);
350
351
  } finally {
@@ -385,29 +386,29 @@ var Sn = {
385
386
  })]),
386
387
  _: 1
387
388
  })])])]),
388
- footer: J(() => [w("div", ir, [l.value === "preview" || l.value === "mapping" ? (R(), C(y, { key: 0 }, [D(G(Y), { onClick: Fe }, {
389
- default: J(() => [E(W(G(c)("components.importDialog.previous")), 1)]),
389
+ footer: J(() => [w("div", ir, [c.value === "preview" || c.value === "mapping" ? (R(), C(y, { key: 0 }, [D(G(Y), { onClick: Fe }, {
390
+ default: J(() => [E(W(G(u)("components.importDialog.previous")), 1)]),
390
391
  _: 1
391
392
  }), D(G(Y), {
392
393
  type: "primary",
393
394
  loading: T.value || O.value,
394
395
  onClick: ke
395
396
  }, {
396
- default: J(() => [E(W(l.value === "mapping" ? G(c)("components.importDialog.startImport") : G(c)("components.importDialog.next")), 1)]),
397
+ default: J(() => [E(W(c.value === "mapping" ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
397
398
  _: 1
398
- }, 8, ["loading"])], 64)) : l.value === "upload" ? (R(), x(G(Y), {
399
+ }, 8, ["loading"])], 64)) : c.value === "upload" ? (R(), x(G(Y), {
399
400
  key: 1,
400
401
  type: "primary",
401
402
  loading: T.value || O.value,
402
403
  onClick: ke
403
404
  }, {
404
- default: J(() => [E(W(ee.value ? G(c)("components.importDialog.startImport") : G(c)("components.importDialog.next")), 1)]),
405
+ default: J(() => [E(W(ee.value ? G(u)("components.importDialog.startImport") : G(u)("components.importDialog.next")), 1)]),
405
406
  _: 1
406
407
  }, 8, ["loading"])) : (R(), x(G(Y), {
407
408
  key: 2,
408
409
  onClick: fe
409
410
  }, {
410
- default: J(() => [E(W(G(c)("common.close")), 1)]),
411
+ default: J(() => [E(W(G(u)("common.close")), 1)]),
411
412
  _: 1
412
413
  }))])]),
413
414
  default: J(() => [w("div", En, [re.value ? (R(), C("div", Dn, [(R(!0), C(y, null, B(ce.value, (e, t) => (R(), C("div", {
@@ -415,19 +416,19 @@ var Sn = {
415
416
  class: "import-dialog__step"
416
417
  }, [
417
418
  w("div", { class: F(["import-dialog__step-node", {
418
- "is-active": l.value === "upload" && t === 0 || l.value === "preview" && t === 1 || l.value === "mapping" && t === 2 || l.value === "importing" && t === 3,
419
- "is-done": l.value === "preview" && t === 0 || l.value === "mapping" && t <= 1 || l.value === "importing" && t <= 2
420
- }]) }, [l.value === "preview" && t === 0 || l.value === "mapping" && t <= 1 || l.value === "importing" && t <= 2 ? (R(), x(G(Z), { key: 0 }, {
419
+ "is-active": c.value === "upload" && t === 0 || c.value === "preview" && t === 1 || c.value === "mapping" && t === 2 || c.value === "importing" && t === 3,
420
+ "is-done": c.value === "preview" && t === 0 || c.value === "mapping" && t <= 1 || c.value === "importing" && t <= 2
421
+ }]) }, [c.value === "preview" && t === 0 || c.value === "mapping" && t <= 1 || c.value === "importing" && t <= 2 ? (R(), x(G(Z), { key: 0 }, {
421
422
  default: J(() => [D(G(Qe))]),
422
423
  _: 1
423
424
  })) : (R(), C("span", On, W(t + 1), 1))], 2),
424
425
  w("div", kn, W(e), 1),
425
426
  t === ce.value.length - 1 ? S("", !0) : (R(), C("div", {
426
427
  key: 0,
427
- class: F(["import-dialog__step-line", { "is-active": l.value === "preview" && t === 0 || l.value === "mapping" && t <= 1 || l.value === "importing" && t <= 2 }])
428
+ class: F(["import-dialog__step-line", { "is-active": c.value === "preview" && t === 0 || c.value === "mapping" && t <= 1 || c.value === "importing" && t <= 2 }])
428
429
  }, null, 2))
429
- ]))), 128))])) : S("", !0), l.value === "upload" ? (R(), C(y, { key: 1 }, [
430
- w("div", An, [w("span", null, W(G(c)("components.importDialog.modeLabel")), 1), D(G(He), { content: G(c)("components.importDialog.modeHelp") }, {
430
+ ]))), 128))])) : S("", !0), c.value === "upload" ? (R(), C(y, { key: 1 }, [
431
+ w("div", An, [w("span", null, W(G(u)("components.importDialog.modeLabel")), 1), D(G(He), { content: G(u)("components.importDialog.modeHelp") }, {
431
432
  default: J(() => [D(G(Z), { class: "import-dialog__info" }, {
432
433
  default: J(() => [D(G(it))]),
433
434
  _: 1
@@ -435,7 +436,7 @@ var Sn = {
435
436
  _: 1
436
437
  }, 8, ["content"])]),
437
438
  D(G(Me), {
438
- "model-value": u.value,
439
+ "model-value": l.value,
439
440
  class: "import-dialog__mode-group",
440
441
  "onUpdate:modelValue": Ee
441
442
  }, {
@@ -464,8 +465,8 @@ var Sn = {
464
465
  default: J(() => [D(G(st))]),
465
466
  _: 1
466
467
  })]),
467
- w("div", Nn, [E(W(G(c)("components.importDialog.uploadPlaceholder")) + " ", 1), w("span", Pn, W(G(c)("components.importDialog.selectUpload")), 1)]),
468
- w("div", Fn, W(G(c)("components.importDialog.supportedTypes", { types: ne.value })), 1),
468
+ w("div", Nn, [E(W(G(u)("components.importDialog.uploadPlaceholder")) + " ", 1), w("span", Pn, W(G(u)("components.importDialog.selectUpload")), 1)]),
469
+ w("div", Fn, W(G(u)("components.importDialog.supportedTypes", { types: ne.value })), 1),
469
470
  ie.value ? (R(), C("div", In, W(ie.value), 1)) : S("", !0)
470
471
  ])]),
471
472
  _: 1
@@ -475,22 +476,22 @@ var Sn = {
475
476
  default: J(() => [D(G(nt))]),
476
477
  _: 1
477
478
  }),
478
- w("span", null, W(G(c)("components.importDialog.templateText")), 1),
479
+ w("span", null, W(G(u)("components.importDialog.templateText")), 1),
479
480
  w("button", {
480
481
  type: "button",
481
482
  class: "import-dialog__download-button",
482
483
  onClick: pe
483
- }, W(G(c)("components.importDialog.downloadTemplate")), 1)
484
+ }, W(G(u)("components.importDialog.downloadTemplate")), 1)
484
485
  ]),
485
486
  w("div", Rn, [(R(!0), C(y, null, B(L.value, (e) => (R(), C("div", {
486
487
  key: e,
487
488
  class: "import-dialog__tip-item"
488
489
  }, W(e), 1))), 128))])
489
- ], 64)) : l.value === "preview" ? (R(), C(y, { key: 2 }, [
490
- w("div", zn, [w("div", Bn, [w("div", Vn, W(G(c)("components.importDialog.fileLabel")), 1), D(G(Te), {
490
+ ], 64)) : c.value === "preview" ? (R(), C(y, { key: 2 }, [
491
+ w("div", zn, [w("div", Bn, [w("div", Vn, W(G(u)("components.importDialog.fileLabel")), 1), D(G(Te), {
491
492
  "model-value": ie.value,
492
493
  readonly: ""
493
- }, null, 8, ["model-value"])]), w("div", Hn, [w("div", Un, W(G(c)("components.importDialog.sheetLabel")), 1), D(G(Pe), {
494
+ }, null, 8, ["model-value"])]), w("div", Hn, [w("div", Un, W(G(u)("components.importDialog.sheetLabel")), 1), D(G(Pe), {
494
495
  modelValue: m.value,
495
496
  "onUpdate:modelValue": t[0] ||= (e) => m.value = e,
496
497
  class: "import-dialog__sheet-select",
@@ -526,11 +527,11 @@ var Sn = {
526
527
  _: 1
527
528
  }, 8, ["data"])), [[n, T.value]]),
528
529
  w("div", Wn, W(U.value), 1)
529
- ], 64)) : l.value === "mapping" ? (R(), C(y, { key: 3 }, [w("div", Gn, [
530
- w("div", null, W(G(c)("components.importDialog.mappingExcelColumn")), 1),
530
+ ], 64)) : c.value === "mapping" ? (R(), C(y, { key: 3 }, [w("div", Gn, [
531
+ w("div", null, W(G(u)("components.importDialog.mappingExcelColumn")), 1),
531
532
  t[1] ||= w("div", null, null, -1),
532
- w("div", null, W(G(c)("components.importDialog.mappingTargetField")), 1),
533
- w("div", null, W(G(c)("components.importDialog.mappingDuplicateLabel")), 1)
533
+ w("div", null, W(G(u)("components.importDialog.mappingTargetField")), 1),
534
+ w("div", null, W(G(u)("components.importDialog.mappingDuplicateLabel")), 1)
534
535
  ]), w("div", Kn, [(R(!0), C(y, null, B(v.value, (e) => (R(), C("div", {
535
536
  key: e.targetField,
536
537
  class: "import-dialog__mapping-row"
@@ -539,7 +540,7 @@ var Sn = {
539
540
  modelValue: e.sourceColumn,
540
541
  "onUpdate:modelValue": (t) => e.sourceColumn = t,
541
542
  clearable: "",
542
- placeholder: G(c)("common.pleaseSelect")
543
+ placeholder: G(u)("common.pleaseSelect")
543
544
  }, {
544
545
  default: J(() => [(R(!0), C(y, null, B(ae.value, (e) => (R(), x(G($), {
545
546
  key: e.value,
@@ -580,7 +581,7 @@ var Sn = {
580
581
  w("div", Xn, W(K.value), 1),
581
582
  w("div", Zn, W(se.value), 1),
582
583
  M.value?.detail ? (R(), C("div", Qn, W(M.value.detail), 1)) : S("", !0)
583
- ], 64)) : l.value === "importing" ? (R(), C(y, { key: 5 }, [
584
+ ], 64)) : c.value === "importing" ? (R(), C(y, { key: 5 }, [
584
585
  w("div", $n, [D(G(Ae), {
585
586
  percentage: A.value,
586
587
  "stroke-width": 10,
@@ -590,15 +591,15 @@ var Sn = {
590
591
  default: J(() => [D(G(pt))]),
591
592
  _: 1
592
593
  })])]),
593
- w("div", tr, W(G(c)("components.importDialog.importingTitle")), 1),
594
+ w("div", tr, W(G(u)("components.importDialog.importingTitle")), 1),
594
595
  w("div", nr, W(oe.value), 1),
595
- w("div", rr, W(G(c)("components.importDialog.importingHint")), 1)
596
+ w("div", rr, W(G(u)("components.importDialog.importingHint")), 1)
596
597
  ], 64)) : S("", !0)])]),
597
598
  _: 1
598
599
  }, 8, ["title", "close-on-press-escape"]);
599
600
  };
600
601
  }
601
- }), [["__scopeId", "data-v-1f28ec73"]]), 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__*/ d(/* @__PURE__ */ k({
602
+ }), [["__scopeId", "data-v-1f28ec73"]]), 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({
602
603
  __name: "ColumnSettingsPanel",
603
604
  props: {
604
605
  settings: {},
@@ -625,30 +626,30 @@ var Sn = {
625
626
  function s(e) {
626
627
  r("toggle", e);
627
628
  }
628
- function l() {
629
+ function c() {
629
630
  r("reset");
630
631
  }
631
- function u(e) {
632
+ function l(e) {
632
633
  return n.fixedItems.find((t) => t.key === e)?.fixed ?? !1;
633
634
  }
634
635
  return (e, t) => (R(), C("div", or, [
635
- w("div", sr, [w("span", cr, W(G(c)("components.tableEntity.columnSettings")), 1), D(G(Y), {
636
+ w("div", sr, [w("span", cr, W(G(u)("components.tableEntity.columnSettings")), 1), D(G(Y), {
636
637
  type: "primary",
637
638
  link: "",
638
639
  size: "small",
639
- onClick: l
640
+ onClick: c
640
641
  }, {
641
- default: J(() => [E(W(G(c)("components.tableEntity.restoreDefault")), 1)]),
642
+ default: J(() => [E(W(G(u)("components.tableEntity.restoreDefault")), 1)]),
642
643
  _: 1
643
644
  })]),
644
645
  w("div", lr, [w("div", ur, [
645
646
  t[1] ||= w("span", null, null, -1),
646
- w("span", null, W(G(c)("components.tableEntity.display")), 1),
647
- w("span", null, W(G(c)("components.tableEntity.columnName")), 1),
648
- w("span", null, W(G(c)("components.tableEntity.width")), 1),
649
- w("span", null, W(G(c)("components.tableEntity.headerAlign")), 1),
650
- w("span", null, W(G(c)("components.tableEntity.contentAlign")), 1),
651
- w("span", null, W(G(c)("components.tableEntity.fixedColumn")), 1)
647
+ w("span", null, W(G(u)("components.tableEntity.display")), 1),
648
+ w("span", null, W(G(u)("components.tableEntity.columnName")), 1),
649
+ w("span", null, W(G(u)("components.tableEntity.width")), 1),
650
+ w("span", null, W(G(u)("components.tableEntity.headerAlign")), 1),
651
+ w("span", null, W(G(u)("components.tableEntity.contentAlign")), 1),
652
+ w("span", null, W(G(u)("components.tableEntity.fixedColumn")), 1)
652
653
  ]), D(G(vt), {
653
654
  modelValue: i.value,
654
655
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -688,15 +689,15 @@ var Sn = {
688
689
  }, {
689
690
  default: J(() => [
690
691
  D(G($), {
691
- label: G(c)("components.tableEntity.left"),
692
+ label: G(u)("components.tableEntity.left"),
692
693
  value: "left"
693
694
  }, null, 8, ["label"]),
694
695
  D(G($), {
695
- label: G(c)("components.tableEntity.center"),
696
+ label: G(u)("components.tableEntity.center"),
696
697
  value: "center"
697
698
  }, null, 8, ["label"]),
698
699
  D(G($), {
699
- label: G(c)("components.tableEntity.right"),
700
+ label: G(u)("components.tableEntity.right"),
700
701
  value: "right"
701
702
  }, null, 8, ["label"])
702
703
  ]),
@@ -710,37 +711,37 @@ var Sn = {
710
711
  }, {
711
712
  default: J(() => [
712
713
  D(G($), {
713
- label: G(c)("components.tableEntity.left"),
714
+ label: G(u)("components.tableEntity.left"),
714
715
  value: "left"
715
716
  }, null, 8, ["label"]),
716
717
  D(G($), {
717
- label: G(c)("components.tableEntity.center"),
718
+ label: G(u)("components.tableEntity.center"),
718
719
  value: "center"
719
720
  }, null, 8, ["label"]),
720
721
  D(G($), {
721
- label: G(c)("components.tableEntity.right"),
722
+ label: G(u)("components.tableEntity.right"),
722
723
  value: "right"
723
724
  }, null, 8, ["label"])
724
725
  ]),
725
726
  _: 1
726
727
  }, 8, ["model-value", "onChange"]),
727
728
  D(G(Pe), {
728
- "model-value": u(e.key),
729
+ "model-value": l(e.key),
729
730
  size: "small",
730
731
  class: "column-settings-panel__select",
731
732
  onChange: (t) => r("setFixed", e.key, t ?? !1)
732
733
  }, {
733
734
  default: J(() => [
734
735
  D(G($), {
735
- label: G(c)("components.tableEntity.unfixed"),
736
+ label: G(u)("components.tableEntity.unfixed"),
736
737
  value: !1
737
738
  }, null, 8, ["label"]),
738
739
  D(G($), {
739
- label: G(c)("components.tableEntity.leftFixed"),
740
+ label: G(u)("components.tableEntity.leftFixed"),
740
741
  value: "left"
741
742
  }, null, 8, ["label"]),
742
743
  D(G($), {
743
- label: G(c)("components.tableEntity.rightFixed"),
744
+ label: G(u)("components.tableEntity.rightFixed"),
744
745
  value: "right"
745
746
  }, null, 8, ["label"])
746
747
  ]),
@@ -749,7 +750,7 @@ var Sn = {
749
750
  ], 2))), 128))]),
750
751
  _: 1
751
752
  }, 8, ["modelValue"])]),
752
- w("div", pr, [w("span", mr, W(G(c)("components.tableEntity.visibleCount", {
753
+ w("div", pr, [w("span", mr, W(G(u)("components.tableEntity.visibleCount", {
753
754
  visible: a.value,
754
755
  total: i.value.length
755
756
  })), 1)])
@@ -1226,7 +1227,7 @@ var kr = [
1226
1227
  "all"
1227
1228
  ];
1228
1229
  function Ar() {
1229
- return o();
1230
+ return a();
1230
1231
  }
1231
1232
  // src/composables/use-dict-data.ts
1232
1233
  function jr(e = !0) {
@@ -1267,7 +1268,7 @@ function Fr(e) {
1267
1268
  };
1268
1269
  }
1269
1270
  // src/components/dict-tag/index.vue
1270
- var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1271
+ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1271
1272
  __name: "index",
1272
1273
  props: {
1273
1274
  code: { default: "" },
@@ -1336,11 +1337,11 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1336
1337
  } catch {
1337
1338
  return "file";
1338
1339
  }
1339
- }, s = (e) => typeof e == "string" ? e : "", l = (e) => {
1340
+ }, s = (e) => typeof e == "string" ? e : "", c = (e) => {
1340
1341
  if (s(e.fileSuffix).toLowerCase().startsWith("image/")) return !0;
1341
1342
  let t = (s(e.fileUrl) || s(e.fileOriginName) || "").toLowerCase();
1342
1343
  return t.endsWith(".jpg") || t.endsWith(".jpeg") || t.endsWith(".png") || t.endsWith(".gif") || t.endsWith(".bmp") || t.endsWith(".webp") || t.endsWith(".svg") || t.endsWith(".ico");
1343
- }, u = (e, t) => {
1344
+ }, l = (e, t) => {
1344
1345
  let n = (e || "").toLowerCase(), r = (t || "").toLowerCase();
1345
1346
  return r === "application/pdf" || n.endsWith(".pdf") ? {
1346
1347
  kind: "pdf",
@@ -1353,10 +1354,10 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1353
1354
  label: "Word"
1354
1355
  } : {
1355
1356
  kind: "other",
1356
- label: c("components.tableEntity.fileKindOther")
1357
+ label: u("components.tableEntity.fileKindOther")
1357
1358
  };
1358
- }, d = b(() => t.attachments ? Array.isArray(t.attachments) ? t.attachments : [t.attachments] : []), f = b(() => d.value.filter((e) => e && l(e)).map((e) => a(e.fileUrl || e.fileOriginName || "")).filter((e) => !!e)), m = b(() => d.value.filter((e) => e && !l(e) && (e.fileUrl || e.fileOriginName)).map((e) => {
1359
- let t = e.fileUrl || e.fileOriginName || "", n = a(t), r = e.fileOriginName || o(t), i = h(r, e.fileSuffix), { kind: c, label: l } = u(r, s(e.fileSuffix));
1359
+ }, d = b(() => t.attachments ? Array.isArray(t.attachments) ? t.attachments : [t.attachments] : []), f = b(() => d.value.filter((e) => e && c(e)).map((e) => a(e.fileUrl || e.fileOriginName || "")).filter((e) => !!e)), m = b(() => d.value.filter((e) => e && !c(e) && (e.fileUrl || e.fileOriginName)).map((e) => {
1360
+ let t = e.fileUrl || e.fileOriginName || "", n = a(t), r = e.fileOriginName || o(t), i = h(r, e.fileSuffix), { kind: c, label: u } = l(r, s(e.fileSuffix));
1360
1361
  return {
1361
1362
  fileUrl: n,
1362
1363
  fileOriginName: r,
@@ -1365,7 +1366,7 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1365
1366
  iconClass: i.iconClass.value,
1366
1367
  iconSvg: i.iconSvg.value,
1367
1368
  kind: c,
1368
- kindLabel: l
1369
+ kindLabel: u
1369
1370
  };
1370
1371
  })), g = b(() => m.value.slice(0, t.maxPreviewCount)), _ = b(() => Math.max(0, m.value.length - g.value.length)), v = (e) => {
1371
1372
  e.fileUrl && window.open(e.fileUrl, "_blank");
@@ -1397,9 +1398,9 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1397
1398
  }
1398
1399
  }, null, 8, zr)) : (R(), C("div", Br, [
1399
1400
  w("div", Vr, W(e.fileOriginName), 1),
1400
- w("div", Hr, W(G(c)("components.tableEntity.fileType")) + ":" + W(e.kindLabel), 1),
1401
- T(e.size) ? (R(), C("div", Ur, W(G(c)("components.tableEntity.fileSize")) + ":" + W(T(e.size)), 1)) : S("", !0),
1402
- w("div", Wr, W(G(c)("components.tableEntity.fileOpenHint")), 1)
1401
+ w("div", Hr, W(G(u)("components.tableEntity.fileType")) + ":" + W(e.kindLabel), 1),
1402
+ T(e.size) ? (R(), C("div", Ur, W(G(u)("components.tableEntity.fileSize")) + ":" + W(T(e.size)), 1)) : S("", !0),
1403
+ w("div", Wr, W(G(u)("components.tableEntity.fileOpenHint")), 1)
1403
1404
  ]))]),
1404
1405
  default: J(() => [w("div", {
1405
1406
  class: "file-cell__item",
@@ -1415,10 +1416,10 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1415
1416
  _.value > 0 ? (R(), C("span", Jr, " +" + W(_.value), 1)) : S("", !0)
1416
1417
  ])) : (R(), C("span", Yr, "-"))]));
1417
1418
  }
1418
- }), Zr = /* @__PURE__ */ e({ default: () => Qr }), Qr = /*#__PURE__*/ d(Xr, [["__scopeId", "data-v-16821a65"]]), $r = {
1419
+ }), Zr = /* @__PURE__ */ e({ default: () => Qr }), Qr = /*#__PURE__*/ f(Xr, [["__scopeId", "data-v-16821a65"]]), $r = {
1419
1420
  key: 0,
1420
1421
  class: "list-expand-cell"
1421
- }, ei = ["innerHTML"], ti = { key: 1 }, ni = { key: 1 }, ri = /*#__PURE__*/ d(/* @__PURE__ */ k({
1422
+ }, ei = ["innerHTML"], ti = { key: 1 }, ni = { key: 1 }, ri = /*#__PURE__*/ f(/* @__PURE__ */ k({
1422
1423
  __name: "list-expand-cell",
1423
1424
  props: {
1424
1425
  expanded: {
@@ -1435,8 +1436,8 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1435
1436
  },
1436
1437
  emits: ["toggle"],
1437
1438
  setup(e, { emit: t }) {
1438
- let n = e, r = t, i = b(() => Math.max(1, n.max)), a = b(() => n.items.length > i.value), o = b(() => n.expanded || !a.value ? n.items : n.items.slice(0, i.value)), s = b(() => n.unit || c("components.tableEntity.itemUnit"));
1439
- function l(e) {
1439
+ let n = e, r = t, i = b(() => Math.max(1, n.max)), a = b(() => n.items.length > i.value), o = b(() => n.expanded || !a.value ? n.items : n.items.slice(0, i.value)), s = b(() => n.unit || u("components.tableEntity.itemUnit"));
1440
+ function c(e) {
1440
1441
  e.stopPropagation(), r("toggle");
1441
1442
  }
1442
1443
  return (t, n) => e.items.length > 0 ? (R(), C("div", $r, [(R(!0), C(y, null, B(o.value, (t, n) => (R(), C("div", {
@@ -1449,8 +1450,8 @@ var Ir = /*#__PURE__*/ d(/* @__PURE__ */ k({
1449
1450
  key: 0,
1450
1451
  class: "list-expand-cell__toggle",
1451
1452
  type: "button",
1452
- onClick: l
1453
- }, [w("span", null, W(e.expanded ? G(c)("components.tableEntity.collapseItems") : G(c)("components.tableEntity.viewAllItems", {
1453
+ onClick: c
1454
+ }, [w("span", null, W(e.expanded ? G(u)("components.tableEntity.collapseItems") : G(u)("components.tableEntity.viewAllItems", {
1454
1455
  count: e.items.length,
1455
1456
  unit: s.value
1456
1457
  })), 1), D(G(Z), { class: "list-expand-cell__icon" }, {
@@ -1544,7 +1545,7 @@ function gi(e, t = "name") {
1544
1545
  }).filter(Boolean);
1545
1546
  }
1546
1547
  // src/components/table-entity/utils/column-slots.ts
1547
- var _i = O(() => Promise.resolve().then(() => Zr)), vi = O(() => import("./picture-cell-D4IF_fwn.js").then((e) => e.n)), yi = O(() => import("./avatar-cell-CGc64Tyy.js")), { resolveImageUrl: bi } = p();
1548
+ var _i = O(() => Promise.resolve().then(() => Zr)), vi = O(() => import("./picture-cell-C6BLbwEb.js").then((e) => e.n)), yi = O(() => import("./avatar-cell-B9VByweR.js")), { resolveImageUrl: bi } = p();
1548
1549
  function xi(e) {
1549
1550
  return e == null || e === "" ? [] : (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [e]).map((e) => e && typeof e == "object" ? e.fileUrl ?? e.url : e).map((e) => bi(e)).filter(Boolean);
1550
1551
  }
@@ -1701,7 +1702,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1701
1702
  }, Ai = {
1702
1703
  key: 1,
1703
1704
  class: "table-entity__pagination"
1704
- }, ji = "__actions__", Mi = "__drag__", Ni = "table-entity__drag-handle", Pi = /*#__PURE__*/ d(/* @__PURE__ */ k({
1705
+ }, ji = "__actions__", Mi = "__drag__", Ni = "table-entity__drag-handle", Pi = /*#__PURE__*/ f(/* @__PURE__ */ k({
1705
1706
  __name: "index",
1706
1707
  props: {
1707
1708
  columns: { default: () => [] },
@@ -1789,7 +1790,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1789
1790
  "rowSort"
1790
1791
  ],
1791
1792
  setup(e, { expose: t, emit: n }) {
1792
- let r = e, i = n, a = z(!1), o = z(!1), s = {
1793
+ let r = e, i = n, a = z(!1), o = z(!1), c = {
1793
1794
  view: {
1794
1795
  label: "components.tableEntity.view",
1795
1796
  type: "primary"
@@ -1806,8 +1807,8 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1806
1807
  label: "components.tableEntity.delete",
1807
1808
  type: "danger"
1808
1809
  }
1809
- }, l = z(0), u = f(), d = b(() => {
1810
- let e = (u.value.pageSizes ?? []).map((e) => Number(e)).filter((e) => Number.isFinite(e) && e > 0);
1810
+ }, l = z(0), d = s(), f = b(() => {
1811
+ let e = (d.value.pageSizes ?? []).map((e) => Number(e)).filter((e) => Number.isFinite(e) && e > 0);
1811
1812
  return e.length > 0 ? e : [
1812
1813
  10,
1813
1814
  20,
@@ -1993,7 +1994,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1993
1994
  width: 40,
1994
1995
  cellRenderer: ({ rowData: e }) => r.rowDragDisabled?.(e) ? null : j("span", {
1995
1996
  class: Ni,
1996
- title: c("components.tableEntity.dragSort")
1997
+ title: u("components.tableEntity.dragSort")
1997
1998
  }, j(Z, { size: 16 }, () => j(ct)))
1998
1999
  }));
1999
2000
  function Je(e) {
@@ -2021,7 +2022,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2021
2022
  return {
2022
2023
  key: ji,
2023
2024
  dataKey: ji,
2024
- title: r.actionColumnTitle || c("components.tableEntity.action"),
2025
+ title: r.actionColumnTitle || u("components.tableEntity.action"),
2025
2026
  width: Qe.value,
2026
2027
  fixed: "right",
2027
2028
  cellRenderer: (t) => {
@@ -2035,10 +2036,10 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2035
2036
  }));
2036
2037
  let a = [];
2037
2038
  for (let e of r.actions ?? []) {
2038
- let t = s[e];
2039
+ let t = c[e];
2039
2040
  t && a.push({
2040
2041
  name: e,
2041
- label: c(t.label),
2042
+ label: u(t.label),
2042
2043
  type: t.type
2043
2044
  });
2044
2045
  }
@@ -2048,7 +2049,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2048
2049
  type: e.type ?? "primary"
2049
2050
  });
2050
2051
  let o = a.filter((t) => !t.name || e.has(t.name));
2051
- function l(e, n = !0) {
2052
+ function s(e, n = !0) {
2052
2053
  if (e.component) {
2053
2054
  let r;
2054
2055
  return r = typeof e.component == "function" ? e.component({ row: t.rowData }) : j(e.component, { row: t.rowData }), n ? Ze(r, e.name) : r;
@@ -2064,8 +2065,8 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2064
2065
  }, () => e.label);
2065
2066
  return n ? Ze(r, e.name) : r;
2066
2067
  }
2067
- let u = o.length > 1 ? o : [], d = (u.length > 0 ? [] : o).map((e) => l(e));
2068
- if (u.length > 0) {
2068
+ let l = o.length > 1 ? o : [], d = (l.length > 0 ? [] : o).map((e) => s(e));
2069
+ if (l.length > 0) {
2069
2070
  let e = j(ye, {
2070
2071
  trigger: "hover",
2071
2072
  placement: "bottom-end"
@@ -2073,9 +2074,9 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2073
2074
  default: () => j(Y, {
2074
2075
  link: !0,
2075
2076
  size: "small",
2076
- title: c("components.tableEntity.moreActions")
2077
+ title: u("components.tableEntity.moreActions")
2077
2078
  }, () => "..."),
2078
- dropdown: () => j(xe, {}, () => u.map((e, n) => e.component ? Ze(j(be, { key: e.name ?? `component-${n}` }, () => l(e, !1)), e.name) : Ze(j(be, {
2079
+ dropdown: () => j(xe, {}, () => l.map((e, n) => e.component ? Ze(j(be, { key: e.name ?? `component-${n}` }, () => s(e, !1)), e.name) : Ze(j(be, {
2079
2080
  key: e.name,
2080
2081
  onClick: () => i("handle-action", {
2081
2082
  action: e.name,
@@ -2218,20 +2219,20 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2218
2219
  style: L({ width: `${e.width}px` })
2219
2220
  }, [w("div", Di, [w("div", Oi, [V(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", ki, [
2220
2221
  D(G(He), {
2221
- content: G(c)("components.tableEntity.refresh"),
2222
+ content: G(u)("components.tableEntity.refresh"),
2222
2223
  placement: "top"
2223
2224
  }, {
2224
2225
  default: J(() => [D(G(Y), {
2225
2226
  icon: G(lt),
2226
2227
  circle: "",
2227
2228
  size: "small",
2228
- title: G(c)("components.tableEntity.refresh"),
2229
+ title: G(u)("components.tableEntity.refresh"),
2229
2230
  onClick: M
2230
2231
  }, null, 8, ["icon", "title"])]),
2231
2232
  _: 1
2232
2233
  }, 8, ["content"]),
2233
2234
  w("div", null, [D(G(He), {
2234
- content: G(c)("components.tableEntity.columnSettings"),
2235
+ content: G(u)("components.tableEntity.columnSettings"),
2235
2236
  placement: "top"
2236
2237
  }, {
2237
2238
  default: J(() => [D(G(Y), {
@@ -2247,7 +2248,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2247
2248
  key: 0,
2248
2249
  modelValue: o.value,
2249
2250
  "onUpdate:modelValue": n[1] ||= (e) => o.value = e,
2250
- title: G(c)("components.tableEntity.columnConfig"),
2251
+ title: G(u)("components.tableEntity.columnConfig"),
2251
2252
  direction: "rtl",
2252
2253
  size: "640px"
2253
2254
  }, {
@@ -2323,12 +2324,12 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2323
2324
  class: "table-entity__resize-line",
2324
2325
  style: L(G(pe))
2325
2326
  }, null, 4)) : S("", !0),
2326
- r.showPagination ? (R(), C("div", Ai, [w("div", null, W(G(c)("components.tableEntity.selectedCount", { count: G(Ae)() })), 1), D(G(Oe), P({
2327
+ r.showPagination ? (R(), C("div", Ai, [w("div", null, W(G(u)("components.tableEntity.selectedCount", { count: G(Ae)() })), 1), D(G(Oe), P({
2327
2328
  "current-page": E.current_page,
2328
2329
  "page-size": E.per_page,
2329
2330
  total: k.value
2330
- }, G(u), {
2331
- "page-sizes": d.value,
2331
+ }, G(d), {
2332
+ "page-sizes": f.value,
2332
2333
  onSizeChange: mt,
2333
2334
  onCurrentChange: pt
2334
2335
  }), null, 16, [
@@ -2380,7 +2381,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2380
2381
  }), [["__scopeId", "data-v-7026ed16"]]), Fi = { class: "dialog-list" }, Ii = { class: "dialog-list__bar" }, Li = {
2381
2382
  key: 0,
2382
2383
  class: "dialog-list__count"
2383
- }, Ri = { class: "dialog-list__table" }, zi = /*#__PURE__*/ d(/* @__PURE__ */ k({
2384
+ }, Ri = { class: "dialog-list__table" }, zi = /*#__PURE__*/ f(/* @__PURE__ */ k({
2384
2385
  __name: "index",
2385
2386
  props: {
2386
2387
  visible: { type: Boolean },
@@ -2412,17 +2413,17 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2412
2413
  onOpenChange: (e) => {
2413
2414
  e !== i.visible && a("update:visible", e);
2414
2415
  }
2415
- }), l = z(), u = z(""), d = z(1), f = z(i.perPage), p = z([]), m = b(() => [
2416
+ }), c = z(), l = z(""), d = z(1), f = z(i.perPage), p = z([]), m = b(() => [
2416
2417
  "__dialog-list__",
2417
2418
  i.rowKey,
2418
2419
  d.value,
2419
2420
  f.value,
2420
- u.value || "",
2421
+ l.value || "",
2421
2422
  JSON.stringify(i.filterParams)
2422
2423
  ]), { data: h, isFetching: g } = bt({
2423
2424
  queryKey: m,
2424
2425
  queryFn: () => i.fetcher({
2425
- keyword: u.value || void 0,
2426
+ keyword: l.value || void 0,
2426
2427
  page: d.value,
2427
2428
  per_page: f.value,
2428
2429
  params: i.filterParams
@@ -2439,7 +2440,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2439
2440
  return;
2440
2441
  }
2441
2442
  let t = Array.isArray(i.modelValue) ? i.modelValue : i.modelValue == null ? [] : [i.modelValue];
2442
- p.value = t, u.value = "", d.value = 1, f.value = i.perPage, k = [], s.open();
2443
+ p.value = t, l.value = "", d.value = 1, f.value = i.perPage, k = [], s.open();
2443
2444
  }, { immediate: !0 });
2444
2445
  function y() {
2445
2446
  d.value = 1;
@@ -2461,21 +2462,21 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2461
2462
  s.close();
2462
2463
  }
2463
2464
  function N() {
2464
- let e = k.length > 0 ? k : l.value?.getSelectedRows() ?? [], t = i.multiple ? [...p.value] : p.value[0] ?? null;
2465
+ let e = k.length > 0 ? k : c.value?.getSelectedRows() ?? [], t = i.multiple ? [...p.value] : p.value[0] ?? null;
2465
2466
  a("update:modelValue", t), a("confirm", e), s.close();
2466
2467
  }
2467
- return t({ tableRef: l }), (t, n) => {
2468
+ return t({ tableRef: c }), (t, n) => {
2468
2469
  let r = re("el-button"), i = re("el-input"), a = H("loading");
2469
2470
  return R(), x(G(o), {
2470
- title: e.dialogTitle || G(c)("components.asyncSelect.placeholder"),
2471
+ title: e.dialogTitle || G(u)("components.asyncSelect.placeholder"),
2471
2472
  class: F(`dialog-list__modal w-[${e.dialogWidth}]`),
2472
- "cancel-text": G(c)("components.dialogList.cancel"),
2473
- "confirm-text": G(c)("components.dialogList.confirm")
2473
+ "cancel-text": G(u)("components.dialogList.cancel"),
2474
+ "confirm-text": G(u)("components.dialogList.confirm")
2474
2475
  }, {
2475
2476
  default: J(() => [w("div", Fi, [w("div", Ii, [D(i, {
2476
- modelValue: u.value,
2477
- "onUpdate:modelValue": n[0] ||= (e) => u.value = e,
2478
- placeholder: G(c)("components.dialogList.placeholder"),
2477
+ modelValue: l.value,
2478
+ "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
2479
+ placeholder: G(u)("components.dialogList.placeholder"),
2479
2480
  clearable: "",
2480
2481
  style: { width: "260px" },
2481
2482
  onKeyup: de(y, ["enter"]),
@@ -2486,9 +2487,9 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2486
2487
  onClick: y
2487
2488
  }, null, 8, ["icon"])]),
2488
2489
  _: 1
2489
- }, 8, ["modelValue", "placeholder"]), O.value > 0 ? (R(), C("span", Li, W(G(c)("components.dialogList.selectedCount", { count: O.value })), 1)) : S("", !0)]), ue((R(), C("div", Ri, [D(Pi, {
2490
+ }, 8, ["modelValue", "placeholder"]), O.value > 0 ? (R(), C("span", Li, W(G(u)("components.dialogList.selectedCount", { count: O.value })), 1)) : S("", !0)]), ue((R(), C("div", Ri, [D(Pi, {
2490
2491
  ref_key: "tableRef",
2491
- ref: l,
2492
+ ref: c,
2492
2493
  columns: e.columns,
2493
2494
  data: _.value,
2494
2495
  height: e.tableHeight,
@@ -2578,7 +2579,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2578
2579
  if (r.labelKey) return r.labelKey;
2579
2580
  let e = r.columns?.[0];
2580
2581
  return e?.dataKey ? e.dataKey : "label";
2581
- }), l = z([]), u = z([]), d = z(0), f = z(!1), p = z(!0), m = z(""), h = z(!1), g = b(() => typeof r.fetcher == "function"), _ = /* @__PURE__ */ new Map(), v = null, y = b({
2582
+ }), c = z([]), l = z([]), d = z(0), f = z(!1), p = z(!0), m = z(""), h = z(!1), g = b(() => typeof r.fetcher == "function"), _ = /* @__PURE__ */ new Map(), v = null, y = b({
2582
2583
  get: () => r.modelValue,
2583
2584
  set: (e) => i("update:modelValue", e)
2584
2585
  }), T = b(() => Array.isArray(r.modelValue) ? r.modelValue.filter((e) => e != null) : r.modelValue == null ? [] : [r.modelValue]);
@@ -2616,24 +2617,24 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2616
2617
  ...t,
2617
2618
  value: N(t.value)
2618
2619
  };
2619
- u.value.find((t) => j(t.value, e.value)) || u.value.push(e);
2620
+ l.value.find((t) => j(t.value, e.value)) || l.value.push(e);
2620
2621
  }
2621
2622
  }
2622
2623
  let I = b(() => {
2623
- let e = l.value.map((e) => {
2624
+ let e = c.value.map((e) => {
2624
2625
  let t = A(e);
2625
2626
  return {
2626
2627
  ...t,
2627
2628
  value: N(t.value)
2628
2629
  };
2629
- }), t = u.value.map((e) => ({
2630
+ }), t = l.value.map((e) => ({
2630
2631
  ...e,
2631
2632
  value: N(e.value)
2632
2633
  })).filter((t) => T.value.some((e) => j(e, t.value)) && !e.find((e) => j(e.value, t.value)));
2633
2634
  return [...e, ...t];
2634
2635
  });
2635
2636
  q(o, (e) => {
2636
- g.value || (l.value = e ?? [], p.value = !1);
2637
+ g.value || (c.value = e ?? [], p.value = !1);
2637
2638
  }, { immediate: !0 });
2638
2639
  async function L(e = !1) {
2639
2640
  let t = m.value || void 0, n = t ?? "";
@@ -2643,7 +2644,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2643
2644
  await r;
2644
2645
  return;
2645
2646
  }
2646
- d.value = 1, l.value = [], p.value = !0;
2647
+ d.value = 1, c.value = [], p.value = !0;
2647
2648
  let i = ne(1, t);
2648
2649
  _.set(n, i);
2649
2650
  try {
@@ -2666,19 +2667,19 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2666
2667
  });
2667
2668
  if ((m.value || void 0) !== t) return;
2668
2669
  let i = n.items ?? [];
2669
- e === 1 ? l.value = i : l.value.push(...i), d.value = e, p.value = e * r.perPage < Number(n.total ?? 0);
2670
+ e === 1 ? c.value = i : c.value.push(...i), d.value = e, p.value = e * r.perPage < Number(n.total ?? 0);
2670
2671
  } finally {
2671
2672
  f.value = !1;
2672
2673
  }
2673
2674
  }
2674
2675
  }
2675
2676
  async function B(e) {
2676
- h.value = e, e && g.value && l.value.length === 0 && await L();
2677
+ h.value = e, e && g.value && c.value.length === 0 && await L();
2677
2678
  }
2678
2679
  q([T, o], async ([e, t]) => {
2679
- e.length === 0 ? u.value = [] : (ee(t.filter((t) => e.some((e) => j(e, E(t)))).map(A)), g.value && r.fetcher && ee(await Bi({
2680
+ e.length === 0 ? l.value = [] : (ee(t.filter((t) => e.some((e) => j(e, E(t)))).map(A)), g.value && r.fetcher && ee(await Bi({
2680
2681
  activeValues: e,
2681
- selectedValues: u.value.map((e) => e.value),
2682
+ selectedValues: l.value.map((e) => e.value),
2682
2683
  loadRows: (e) => r.fetcher({
2683
2684
  page: 1,
2684
2685
  per_page: Math.max(e.length, 1),
@@ -2711,10 +2712,10 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2711
2712
  total: n.length
2712
2713
  };
2713
2714
  }
2714
- let ie = b(() => r.placeholder || c("components.asyncSelect.placeholder")), ae = b(() => r.dialogTitle || c("components.asyncSelect.placeholder"));
2715
+ let ie = b(() => r.placeholder || u("components.asyncSelect.placeholder")), ae = b(() => r.dialogTitle || u("components.asyncSelect.placeholder"));
2715
2716
  return t({
2716
2717
  reload: () => L(!0),
2717
- allItems: l
2718
+ allItems: c
2718
2719
  }), (t, n) => (R(), C("div", Vi, [
2719
2720
  D(G(Fe), P({
2720
2721
  modelValue: y.value,
@@ -2763,13 +2764,13 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2763
2764
  key: 0,
2764
2765
  type: "button",
2765
2766
  class: F(["async-select__inner-trigger", { "is-disabled": e.disabled }]),
2766
- title: G(c)("components.asyncSelect.dialogSelect"),
2767
+ title: G(u)("components.asyncSelect.dialogSelect"),
2767
2768
  onMousedown: n[1] ||= fe(() => {}, ["prevent"]),
2768
2769
  onClick: fe(re, ["stop"])
2769
2770
  }, [D(G(Z), null, {
2770
2771
  default: J(() => [w("img", {
2771
2772
  src: G(fn),
2772
- alt: G(c)("components.asyncSelect.more")
2773
+ alt: G(u)("components.asyncSelect.more")
2773
2774
  }, null, 8, Zi)]),
2774
2775
  _: 1
2775
2776
  })], 42, Xi)) : S("", !0),
@@ -2797,9 +2798,9 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2797
2798
  ])) : S("", !0)
2798
2799
  ]));
2799
2800
  }
2800
- }), $i = /* @__PURE__ */ e({ default: () => ea }), ea = /*#__PURE__*/ d(Qi, [["__scopeId", "data-v-a1f5097a"]]), ta = { theme: { get cardShadow() {
2801
- return u().value;
2802
- } } }, na = /*#__PURE__*/ d(/* @__PURE__ */ k({
2801
+ }), $i = /* @__PURE__ */ e({ default: () => ea }), ea = /*#__PURE__*/ f(Qi, [["__scopeId", "data-v-a1f5097a"]]), ta = { theme: { get cardShadow() {
2802
+ return c().value;
2803
+ } } }, na = /*#__PURE__*/ f(/* @__PURE__ */ k({
2803
2804
  inheritAttrs: !1,
2804
2805
  __name: "index",
2805
2806
  setup(e) {
@@ -2830,7 +2831,7 @@ var sa = { class: "readonly-text" }, ca = {
2830
2831
  }, la = {
2831
2832
  key: 1,
2832
2833
  class: "readonly-text__empty"
2833
- }, ua = /*#__PURE__*/ d(/* @__PURE__ */ k({
2834
+ }, ua = /*#__PURE__*/ f(/* @__PURE__ */ k({
2834
2835
  __name: "readonly-text",
2835
2836
  props: {
2836
2837
  copyable: { type: Boolean },
@@ -2842,12 +2843,12 @@ var sa = { class: "readonly-text" }, ca = {
2842
2843
  return e == null || e === "" ? "" : Array.isArray(e) ? e.join(", ") : String(e);
2843
2844
  }), a = b(() => t.copyable && r.value && i.value);
2844
2845
  async function o() {
2845
- await n(i.value), Q.success(c("schemaForm.copied"));
2846
+ await n(i.value), Q.success(u("schemaForm.copied"));
2846
2847
  }
2847
- return (e, t) => (R(), C("div", sa, [i.value ? (R(), C("span", ca, W(i.value), 1)) : (R(), C("span", la, W(G(c)("schemaForm.empty")), 1)), a.value ? (R(), x(G(Z), {
2848
+ return (e, t) => (R(), C("div", sa, [i.value ? (R(), C("span", ca, W(i.value), 1)) : (R(), C("span", la, W(G(u)("schemaForm.empty")), 1)), a.value ? (R(), x(G(Z), {
2848
2849
  key: 2,
2849
2850
  class: "readonly-text__copy",
2850
- title: G(c)("schemaForm.copy"),
2851
+ title: G(u)("schemaForm.copy"),
2851
2852
  onClick: o
2852
2853
  }, {
2853
2854
  default: J(() => [D(G(et))]),
@@ -2900,7 +2901,7 @@ function ba(e, t) {
2900
2901
  function xa(e) {
2901
2902
  if (e.placeholder) return e.placeholder;
2902
2903
  let t = e.label || e.prop;
2903
- return ga(e) ? c("validation.selectField", { field: t }) : c("validation.enterField", { field: t });
2904
+ return ga(e) ? u("validation.selectField", { field: t }) : u("validation.enterField", { field: t });
2904
2905
  }
2905
2906
  function Sa(e, t) {
2906
2907
  let n = e.rules ? [...e.rules] : [];
@@ -2986,7 +2987,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
2986
2987
  "20px",
2987
2988
  "24px",
2988
2989
  "32px"
2989
- ], s = z(r.modelValue), l = z(!1), u = z(!1), d = z(0), f = b(() => r.placeholder || c("components.richTextEditor.placeholder")), p = dn({
2990
+ ], s = z(r.modelValue), c = z(!1), l = z(!1), d = z(0), f = b(() => r.placeholder || u("components.richTextEditor.placeholder")), p = dn({
2990
2991
  content: r.modelValue,
2991
2992
  editable: r.editable,
2992
2993
  extensions: [
@@ -3034,7 +3035,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3034
3035
  }
3035
3036
  }), m = b(() => !r.editable);
3036
3037
  function h() {
3037
- return l.value ? s.value : p.value?.getHTML() ?? r.modelValue;
3038
+ return c.value ? s.value : p.value?.getHTML() ?? r.modelValue;
3038
3039
  }
3039
3040
  function g(e) {
3040
3041
  s.value = e, p.value && p.value.getHTML() !== e && p.value.commands.setContent(e, { emitUpdate: !0 });
@@ -3105,18 +3106,18 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3105
3106
  p.value && p.value.getHTML() !== s.value && p.value.commands.setContent(s.value, { emitUpdate: !0 });
3106
3107
  }
3107
3108
  function te() {
3108
- l.value ? I() : s.value = p.value?.getHTML() ?? r.modelValue, l.value = !l.value;
3109
+ c.value ? I() : s.value = p.value?.getHTML() ?? r.modelValue, c.value = !c.value;
3109
3110
  }
3110
3111
  function ne() {
3111
3112
  if (m.value) return;
3112
- let e = p.value?.getAttributes("link").href, t = window.prompt(c("components.richTextEditor.linkPrompt"), e ?? "");
3113
+ let e = p.value?.getAttributes("link").href, t = window.prompt(u("components.richTextEditor.linkPrompt"), e ?? "");
3113
3114
  if (t === null) return;
3114
3115
  let n = t.trim();
3115
3116
  n ? p.value?.chain().focus().extendMarkRange("link").setLink({ href: H(n) }).run() : p.value?.chain().focus().extendMarkRange("link").unsetLink().run();
3116
3117
  }
3117
3118
  function re() {
3118
3119
  if (m.value) return;
3119
- let e = window.prompt(c("components.richTextEditor.imagePrompt"));
3120
+ let e = window.prompt(u("components.richTextEditor.imagePrompt"));
3120
3121
  e && p.value?.chain().focus().setImage({ src: e.trim() }).run();
3121
3122
  }
3122
3123
  function H(e) {
@@ -3170,8 +3171,8 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3170
3171
  }), (t, n) => G(p) ? (R(), C("div", {
3171
3172
  key: 0,
3172
3173
  class: F(["rich-text-editor", {
3173
- "is-fullscreen": u.value,
3174
- "is-source": l.value
3174
+ "is-fullscreen": l.value,
3175
+ "is-source": c.value
3175
3176
  }])
3176
3177
  }, [w("div", {
3177
3178
  class: "rich-text-toolbar",
@@ -3179,28 +3180,28 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3179
3180
  }, [
3180
3181
  w("button", {
3181
3182
  type: "button",
3182
- title: G(c)("components.richTextEditor.undo"),
3183
+ title: G(u)("components.richTextEditor.undo"),
3183
3184
  onClick: n[0] ||= (e) => G(p).chain().focus().undo().run()
3184
3185
  }, [D(G(Gt), { size: 17 })], 8, Ca),
3185
3186
  w("button", {
3186
3187
  type: "button",
3187
- title: G(c)("components.richTextEditor.redo"),
3188
+ title: G(u)("components.richTextEditor.redo"),
3188
3189
  onClick: n[1] ||= (e) => G(p).chain().focus().redo().run()
3189
3190
  }, [D(G(Vt), { size: 17 })], 8, wa),
3190
3191
  n[27] ||= w("span", { class: "rich-text-separator" }, null, -1),
3191
3192
  w("button", {
3192
3193
  type: "button",
3193
- title: G(c)("components.richTextEditor.insertImage"),
3194
+ title: G(u)("components.richTextEditor.insertImage"),
3194
3195
  onClick: re
3195
3196
  }, [D(G(kt), { size: 17 })], 8, Ta),
3196
3197
  w("label", {
3197
3198
  class: "rich-text-select-wrap rich-text-select-wrap--line",
3198
- title: G(c)("components.richTextEditor.lineHeight")
3199
+ title: G(u)("components.richTextEditor.lineHeight")
3199
3200
  }, [D(G(jt), { size: 17 }), w("select", {
3200
3201
  disabled: m.value,
3201
3202
  onChange: K
3202
3203
  }, [
3203
- w("option", Oa, W(G(c)("components.richTextEditor.lineHeight")), 1),
3204
+ w("option", Oa, W(G(u)("components.richTextEditor.lineHeight")), 1),
3204
3205
  n[22] ||= w("option", { value: "1.2" }, "1.2", -1),
3205
3206
  n[23] ||= w("option", { value: "1.5" }, "1.5", -1),
3206
3207
  n[24] ||= w("option", { value: "1.75" }, "1.75", -1),
@@ -3210,30 +3211,30 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3210
3211
  w("button", {
3211
3212
  type: "button",
3212
3213
  class: F({ "is-active": X("bold") }),
3213
- title: G(c)("components.richTextEditor.bold"),
3214
+ title: G(u)("components.richTextEditor.bold"),
3214
3215
  onClick: n[2] ||= (e) => G(p).chain().focus().toggleBold().run()
3215
3216
  }, [D(G(Tt), { size: 17 })], 10, ka),
3216
3217
  w("button", {
3217
3218
  type: "button",
3218
3219
  class: F({ "is-active": X("italic") }),
3219
- title: G(c)("components.richTextEditor.italic"),
3220
+ title: G(u)("components.richTextEditor.italic"),
3220
3221
  onClick: n[3] ||= (e) => G(p).chain().focus().toggleItalic().run()
3221
3222
  }, [D(G(Mt), { size: 17 })], 10, Aa),
3222
3223
  w("button", {
3223
3224
  type: "button",
3224
3225
  class: F({ "is-active": X("underline") }),
3225
- title: G(c)("components.richTextEditor.underline"),
3226
+ title: G(u)("components.richTextEditor.underline"),
3226
3227
  onClick: n[4] ||= (e) => G(p).chain().focus().toggleUnderline().run()
3227
3228
  }, [D(G(Wt), { size: 17 })], 10, ja),
3228
3229
  w("button", {
3229
3230
  type: "button",
3230
3231
  class: F({ "is-active": X("strike") }),
3231
- title: G(c)("components.richTextEditor.strike"),
3232
+ title: G(u)("components.richTextEditor.strike"),
3232
3233
  onClick: n[5] ||= (e) => G(p).chain().focus().toggleStrike().run()
3233
3234
  }, [D(G(Ht), { size: 17 })], 10, Ma),
3234
3235
  w("label", {
3235
3236
  class: "rich-text-color",
3236
- title: G(c)("components.richTextEditor.textColor")
3237
+ title: G(u)("components.richTextEditor.textColor")
3237
3238
  }, [D(G(zt), { size: 17 }), w("input", {
3238
3239
  type: "color",
3239
3240
  value: "#111827",
@@ -3241,7 +3242,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3241
3242
  }, null, 32)], 8, Na),
3242
3243
  w("label", {
3243
3244
  class: "rich-text-color",
3244
- title: G(c)("components.richTextEditor.highlight")
3245
+ title: G(u)("components.richTextEditor.highlight")
3245
3246
  }, [D(G(Ot), { size: 17 }), w("input", {
3246
3247
  type: "color",
3247
3248
  value: "#fff3bf",
@@ -3269,94 +3270,94 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3269
3270
  class: "rich-text-select rich-text-select--block",
3270
3271
  disabled: m.value
3271
3272
  }, [
3272
- w("option", Ba, W(G(c)("components.richTextEditor.paragraph")), 1),
3273
- w("option", Va, W(G(c)("components.richTextEditor.heading1")), 1),
3274
- w("option", Ha, W(G(c)("components.richTextEditor.heading2")), 1),
3275
- w("option", Ua, W(G(c)("components.richTextEditor.heading3")), 1),
3276
- w("option", Wa, W(G(c)("components.richTextEditor.blockquote")), 1)
3273
+ w("option", Ba, W(G(u)("components.richTextEditor.paragraph")), 1),
3274
+ w("option", Va, W(G(u)("components.richTextEditor.heading1")), 1),
3275
+ w("option", Ha, W(G(u)("components.richTextEditor.heading2")), 1),
3276
+ w("option", Ua, W(G(u)("components.richTextEditor.heading3")), 1),
3277
+ w("option", Wa, W(G(u)("components.richTextEditor.blockquote")), 1)
3277
3278
  ], 8, za), [[ce, A.value]]),
3278
3279
  n[30] ||= w("span", { class: "rich-text-separator" }, null, -1),
3279
3280
  w("button", {
3280
3281
  type: "button",
3281
3282
  class: F({ "is-active": pe("left") }),
3282
- title: G(c)("components.richTextEditor.alignLeft"),
3283
+ title: G(u)("components.richTextEditor.alignLeft"),
3283
3284
  onClick: n[9] ||= (e) => oe("left")
3284
3285
  }, [D(G(Ct), { size: 17 })], 10, Ga),
3285
3286
  w("button", {
3286
3287
  type: "button",
3287
3288
  class: F({ "is-active": pe("center") }),
3288
- title: G(c)("components.richTextEditor.alignCenter"),
3289
+ title: G(u)("components.richTextEditor.alignCenter"),
3289
3290
  onClick: n[10] ||= (e) => oe("center")
3290
3291
  }, [D(G(xt), { size: 17 })], 10, Ka),
3291
3292
  w("button", {
3292
3293
  type: "button",
3293
3294
  class: F({ "is-active": pe("right") }),
3294
- title: G(c)("components.richTextEditor.alignRight"),
3295
+ title: G(u)("components.richTextEditor.alignRight"),
3295
3296
  onClick: n[11] ||= (e) => oe("right")
3296
3297
  }, [D(G(wt), { size: 17 })], 10, qa),
3297
3298
  w("button", {
3298
3299
  type: "button",
3299
3300
  class: F({ "is-active": pe("justify") }),
3300
- title: G(c)("components.richTextEditor.alignJustify"),
3301
+ title: G(u)("components.richTextEditor.alignJustify"),
3301
3302
  onClick: n[12] ||= (e) => oe("justify")
3302
3303
  }, [D(G(St), { size: 17 })], 10, Ja),
3303
3304
  n[31] ||= w("span", { class: "rich-text-break" }, null, -1),
3304
3305
  w("button", {
3305
3306
  type: "button",
3306
- title: G(c)("components.richTextEditor.decreaseIndent"),
3307
+ title: G(u)("components.richTextEditor.decreaseIndent"),
3307
3308
  onClick: de
3308
3309
  }, [D(G(At), { size: 17 })], 8, Ya),
3309
3310
  w("button", {
3310
3311
  type: "button",
3311
- title: G(c)("components.richTextEditor.increaseIndent"),
3312
+ title: G(u)("components.richTextEditor.increaseIndent"),
3312
3313
  onClick: J
3313
3314
  }, [D(G(jt), { size: 17 })], 8, Xa),
3314
3315
  w("button", {
3315
3316
  type: "button",
3316
3317
  class: F({ "is-active": X("orderedList") }),
3317
- title: G(c)("components.richTextEditor.orderedList"),
3318
+ title: G(u)("components.richTextEditor.orderedList"),
3318
3319
  onClick: n[13] ||= (e) => G(p).chain().focus().toggleOrderedList().run()
3319
3320
  }, [D(G(It), { size: 17 })], 10, Za),
3320
3321
  w("button", {
3321
3322
  type: "button",
3322
3323
  class: F({ "is-active": X("bulletList") }),
3323
- title: G(c)("components.richTextEditor.bulletList"),
3324
+ title: G(u)("components.richTextEditor.bulletList"),
3324
3325
  onClick: n[14] ||= (e) => G(p).chain().focus().toggleBulletList().run()
3325
3326
  }, [D(G(Ft), { size: 17 })], 10, Qa),
3326
3327
  w("button", {
3327
3328
  type: "button",
3328
3329
  class: F({ "is-active": X("code") }),
3329
- title: G(c)("components.richTextEditor.code"),
3330
+ title: G(u)("components.richTextEditor.code"),
3330
3331
  onClick: n[15] ||= (e) => G(p).chain().focus().toggleCode().run()
3331
3332
  }, [...n[26] ||= [w("span", { class: "rich-text-tx" }, [E("T"), w("sub", null, "x")], -1)]], 10, $a),
3332
3333
  w("button", {
3333
3334
  type: "button",
3334
- title: G(c)("components.richTextEditor.insertLink"),
3335
+ title: G(u)("components.richTextEditor.insertLink"),
3335
3336
  onClick: ne
3336
3337
  }, [D(G(Pt), { size: 17 })], 8, eo),
3337
3338
  w("label", {
3338
3339
  class: "rich-text-select-wrap rich-text-select-wrap--table",
3339
- title: G(c)("components.richTextEditor.table")
3340
+ title: G(u)("components.richTextEditor.table")
3340
3341
  }, [D(G(Ut), { size: 17 }), w("select", {
3341
3342
  disabled: m.value,
3342
3343
  onChange: se
3343
3344
  }, [
3344
- w("option", ro, W(G(c)("components.richTextEditor.table")), 1),
3345
- w("option", io, W(G(c)("components.richTextEditor.insertTable")), 1),
3346
- w("option", ao, W(G(c)("components.richTextEditor.addColumnBefore")), 1),
3347
- w("option", oo, W(G(c)("components.richTextEditor.addColumnAfter")), 1),
3348
- w("option", so, W(G(c)("components.richTextEditor.deleteColumn")), 1),
3349
- w("option", co, W(G(c)("components.richTextEditor.addRowBefore")), 1),
3350
- w("option", lo, W(G(c)("components.richTextEditor.addRowAfter")), 1),
3351
- w("option", uo, W(G(c)("components.richTextEditor.deleteRow")), 1),
3352
- w("option", fo, W(G(c)("components.richTextEditor.deleteTable")), 1)
3345
+ w("option", ro, W(G(u)("components.richTextEditor.table")), 1),
3346
+ w("option", io, W(G(u)("components.richTextEditor.insertTable")), 1),
3347
+ w("option", ao, W(G(u)("components.richTextEditor.addColumnBefore")), 1),
3348
+ w("option", oo, W(G(u)("components.richTextEditor.addColumnAfter")), 1),
3349
+ w("option", so, W(G(u)("components.richTextEditor.deleteColumn")), 1),
3350
+ w("option", co, W(G(u)("components.richTextEditor.addRowBefore")), 1),
3351
+ w("option", lo, W(G(u)("components.richTextEditor.addRowAfter")), 1),
3352
+ w("option", uo, W(G(u)("components.richTextEditor.deleteRow")), 1),
3353
+ w("option", fo, W(G(u)("components.richTextEditor.deleteTable")), 1)
3353
3354
  ], 40, no)], 8, to),
3354
3355
  n[32] ||= w("span", { class: "rich-text-separator" }, null, -1),
3355
3356
  w("button", {
3356
3357
  type: "button",
3357
- title: G(c)("components.richTextEditor.fullscreen"),
3358
- onClick: n[16] ||= (e) => u.value = !u.value
3359
- }, [u.value ? (R(), x(G(Rt), {
3358
+ title: G(u)("components.richTextEditor.fullscreen"),
3359
+ onClick: n[16] ||= (e) => l.value = !l.value
3360
+ }, [l.value ? (R(), x(G(Rt), {
3360
3361
  key: 0,
3361
3362
  size: 17
3362
3363
  })) : (R(), x(G(Lt), {
@@ -3365,19 +3366,19 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3365
3366
  }))], 8, po),
3366
3367
  w("button", {
3367
3368
  type: "button",
3368
- class: F({ "is-active": l.value }),
3369
- title: G(c)("components.richTextEditor.sourceCode"),
3369
+ class: F({ "is-active": c.value }),
3370
+ title: G(u)("components.richTextEditor.sourceCode"),
3370
3371
  onClick: te
3371
3372
  }, [D(G(Et), { size: 17 })], 10, mo),
3372
3373
  w("button", {
3373
3374
  type: "button",
3374
- title: G(c)("components.richTextEditor.clearFormat"),
3375
+ title: G(u)("components.richTextEditor.clearFormat"),
3375
3376
  onClick: Y
3376
3377
  }, [D(G(Dt), { size: 17 })], 8, ho),
3377
3378
  w("button", {
3378
3379
  type: "button",
3379
3380
  class: F({ "is-active": X("blockquote") }),
3380
- title: G(c)("components.richTextEditor.blockquote"),
3381
+ title: G(u)("components.richTextEditor.blockquote"),
3381
3382
  onClick: n[17] ||= (e) => G(p).chain().focus().toggleBlockquote().run()
3382
3383
  }, [D(G(Bt), { size: 17 })], 10, go),
3383
3384
  t.$slots["toolbar-append"] ? (R(), C("div", {
@@ -3403,7 +3404,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3403
3404
  key: 0,
3404
3405
  size: 17
3405
3406
  })) : (R(), C("span", yo, W(e.label), 1))], 8, vo))], 64))), 128))
3406
- ], 32), l.value ? ue((R(), C("textarea", {
3407
+ ], 32), c.value ? ue((R(), C("textarea", {
3407
3408
  key: 0,
3408
3409
  "onUpdate:modelValue": n[21] ||= (e) => s.value = e,
3409
3410
  class: "rich-text-source",
@@ -3416,7 +3417,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3416
3417
  style: L({ "--rich-text-max-height": e.maxHeight })
3417
3418
  }, null, 8, ["editor", "style"]))], 2)) : S("", !0);
3418
3419
  }
3419
- }), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ d(xo, [["__scopeId", "data-v-6961f3bf"]]), wo = [
3420
+ }), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ f(xo, [["__scopeId", "data-v-6961f3bf"]]), wo = [
3420
3421
  {
3421
3422
  code: "en",
3422
3423
  label: "English"
@@ -3468,7 +3469,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3468
3469
  ], To = {
3469
3470
  key: 0,
3470
3471
  class: "translate-toolbar__inline"
3471
- }, Eo = { class: "translate-toolbar__label" }, Do = { class: "translate-toolbar__controls" }, Oo = { class: "translate-toolbar__row" }, ko = /*#__PURE__*/ d(/* @__PURE__ */ k({
3472
+ }, Eo = { class: "translate-toolbar__label" }, Do = { class: "translate-toolbar__controls" }, Oo = { class: "translate-toolbar__row" }, ko = /*#__PURE__*/ f(/* @__PURE__ */ k({
3472
3473
  __name: "translate-toolbar",
3473
3474
  props: {
3474
3475
  disabled: {
@@ -3495,7 +3496,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3495
3496
  setup(e, { emit: t }) {
3496
3497
  let n = e, r = t, i = b(() => [...n.languages.filter(({ code: e }) => e !== n.sourceLanguage), {
3497
3498
  code: "all",
3498
- label: c("product-management.attribute.translation.all")
3499
+ label: u("product-management.attribute.translation.all")
3499
3500
  }]);
3500
3501
  function a(e) {
3501
3502
  (e === "translate" || e === "polish") && r("translate", e);
@@ -3505,11 +3506,11 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3505
3506
  size: 16,
3506
3507
  color: "#8994BC",
3507
3508
  "stroke-width": 2
3508
- }), E(" " + W(G(c)("product-management.attribute.translation.label")), 1)]), w("div", Do, [
3509
+ }), E(" " + W(G(u)("product-management.attribute.translation.label")), 1)]), w("div", Do, [
3509
3510
  D(G(Pe), {
3510
3511
  "model-value": e.sourceLanguage,
3511
3512
  disabled: e.disabled || e.loading,
3512
- placeholder: G(c)("product-management.attribute.translation.from"),
3513
+ placeholder: G(u)("product-management.attribute.translation.from"),
3513
3514
  class: "translate-toolbar__language-select",
3514
3515
  "onUpdate:modelValue": n[0] ||= (e) => r("update:sourceLanguage", String(e))
3515
3516
  }, {
@@ -3531,7 +3532,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3531
3532
  D(G(Pe), {
3532
3533
  "model-value": e.targetLanguage,
3533
3534
  disabled: e.disabled || e.loading,
3534
- placeholder: G(c)("product-management.attribute.translation.to"),
3535
+ placeholder: G(u)("product-management.attribute.translation.to"),
3535
3536
  class: "translate-toolbar__language-select",
3536
3537
  "onUpdate:modelValue": n[1] ||= (e) => r("update:targetLanguage", String(e))
3537
3538
  }, {
@@ -3556,15 +3557,15 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3556
3557
  }, {
3557
3558
  dropdown: J(() => [D(G(xe), null, {
3558
3559
  default: J(() => [D(G(be), { command: "translate" }, {
3559
- default: J(() => [E(W(G(c)("product-management.attribute.translation.translate")), 1)]),
3560
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.translate")), 1)]),
3560
3561
  _: 1
3561
3562
  }), D(G(be), { command: "polish" }, {
3562
- default: J(() => [E(W(G(c)("product-management.attribute.translation.polish")), 1)]),
3563
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.polish")), 1)]),
3563
3564
  _: 1
3564
3565
  })]),
3565
3566
  _: 1
3566
3567
  })]),
3567
- default: J(() => [E(W(G(c)("product-management.attribute.translation.translate")) + " ", 1)]),
3568
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.translate")) + " ", 1)]),
3568
3569
  _: 1
3569
3570
  }, 8, ["disabled"])
3570
3571
  ])])) : (R(), x(G(ke), {
@@ -3579,8 +3580,8 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3579
3580
  icon: G(Ze),
3580
3581
  disabled: e.disabled,
3581
3582
  size: "large",
3582
- title: G(c)("product-management.attribute.translation.label"),
3583
- "aria-label": G(c)("product-management.attribute.translation.label")
3583
+ title: G(u)("product-management.attribute.translation.label"),
3584
+ "aria-label": G(u)("product-management.attribute.translation.label")
3584
3585
  }, null, 8, [
3585
3586
  "icon",
3586
3587
  "disabled",
@@ -3591,7 +3592,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3591
3592
  D(G(Pe), {
3592
3593
  "model-value": e.sourceLanguage,
3593
3594
  disabled: e.disabled || e.loading,
3594
- placeholder: G(c)("product-management.attribute.translation.from"),
3595
+ placeholder: G(u)("product-management.attribute.translation.from"),
3595
3596
  class: "translate-toolbar__language-select",
3596
3597
  "onUpdate:modelValue": n[3] ||= (e) => r("update:sourceLanguage", String(e))
3597
3598
  }, {
@@ -3613,7 +3614,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3613
3614
  D(G(Pe), {
3614
3615
  "model-value": e.targetLanguage,
3615
3616
  disabled: e.disabled || e.loading,
3616
- placeholder: G(c)("product-management.attribute.translation.to"),
3617
+ placeholder: G(u)("product-management.attribute.translation.to"),
3617
3618
  class: "translate-toolbar__language-select",
3618
3619
  "onUpdate:modelValue": n[4] ||= (e) => r("update:targetLanguage", String(e))
3619
3620
  }, {
@@ -3638,15 +3639,15 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3638
3639
  }, {
3639
3640
  dropdown: J(() => [D(G(xe), null, {
3640
3641
  default: J(() => [D(G(be), { command: "translate" }, {
3641
- default: J(() => [E(W(G(c)("product-management.attribute.translation.translate")), 1)]),
3642
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.translate")), 1)]),
3642
3643
  _: 1
3643
3644
  }), D(G(be), { command: "polish" }, {
3644
- default: J(() => [E(W(G(c)("product-management.attribute.translation.polish")), 1)]),
3645
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.polish")), 1)]),
3645
3646
  _: 1
3646
3647
  })]),
3647
3648
  _: 1
3648
3649
  })]),
3649
- default: J(() => [E(W(G(c)("product-management.attribute.translation.translate")) + " ", 1)]),
3650
+ default: J(() => [E(W(G(u)("product-management.attribute.translation.translate")) + " ", 1)]),
3650
3651
  _: 1
3651
3652
  }, 8, ["disabled"])
3652
3653
  ])]),
@@ -3656,7 +3657,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3656
3657
  }), [["__scopeId", "data-v-df9539f3"]]), Ao = ["element-loading-text"], jo = {
3657
3658
  key: 1,
3658
3659
  class: "translate-field__grid"
3659
- }, Mo = ["for"], No = /*#__PURE__*/ d(/* @__PURE__ */ k({
3660
+ }, Mo = ["for"], No = /*#__PURE__*/ f(/* @__PURE__ */ k({
3660
3661
  __name: "translate-field",
3661
3662
  props: {
3662
3663
  config: { default: void 0 },
@@ -3681,18 +3682,18 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3681
3682
  "rich-text",
3682
3683
  "text",
3683
3684
  "textarea"
3684
- ].includes(n.field.type) ? "tabs" : "grid")), s = b(() => i.value.find(({ code: e }) => e === u.value)?.label ?? ""), l = b(() => n.modelValue && typeof n.modelValue == "object" && !Array.isArray(n.modelValue) ? n.modelValue : typeof n.modelValue == "string" ? { [i.value[0]?.code ?? "en"]: n.modelValue } : {}), u = z("en"), d = z("en"), f = z("all"), p = z(!1), m = b(() => n.disabled || n.readonly || p.value);
3685
+ ].includes(n.field.type) ? "tabs" : "grid")), s = b(() => i.value.find(({ code: e }) => e === l.value)?.label ?? ""), c = b(() => n.modelValue && typeof n.modelValue == "object" && !Array.isArray(n.modelValue) ? n.modelValue : typeof n.modelValue == "string" ? { [i.value[0]?.code ?? "en"]: n.modelValue } : {}), l = z("en"), d = z("en"), f = z("all"), p = z(!1), m = b(() => n.disabled || n.readonly || p.value);
3685
3686
  q(a, (e) => {
3686
- e.includes(u.value) || (u.value = e.includes("en") ? "en" : e[0] ?? ""), e.includes(d.value) || (d.value = e.includes("en") ? "en" : e[0] ?? ""), f.value === "all" || e.includes(f.value) && f.value !== d.value || (f.value = "all");
3687
+ e.includes(l.value) || (l.value = e.includes("en") ? "en" : e[0] ?? ""), e.includes(d.value) || (d.value = e.includes("en") ? "en" : e[0] ?? ""), f.value === "all" || e.includes(f.value) && f.value !== d.value || (f.value = "all");
3687
3688
  }, { immediate: !0 });
3688
3689
  function h(e, t) {
3689
3690
  r("update:modelValue", {
3690
- ...l.value,
3691
+ ...c.value,
3691
3692
  [e]: t
3692
3693
  });
3693
3694
  }
3694
3695
  function g(e) {
3695
- let t = l.value[e];
3696
+ let t = c.value[e];
3696
3697
  return typeof t == "string" || typeof t == "number" ? t : void 0;
3697
3698
  }
3698
3699
  function _(e) {
@@ -3706,7 +3707,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3706
3707
  }
3707
3708
  async function v(e = "translate") {
3708
3709
  if (m.value || !d.value || !f.value) return;
3709
- let t = f.value === "all" ? a.value.filter((e) => e !== d.value) : [f.value], o = { ...l.value }, s = o[d.value], h = {
3710
+ let t = f.value === "all" ? a.value.filter((e) => e !== d.value) : [f.value], o = { ...c.value }, s = o[d.value], h = {
3710
3711
  ...n.context,
3711
3712
  before: o,
3712
3713
  command: e,
@@ -3726,15 +3727,15 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3726
3727
  ...e
3727
3728
  });
3728
3729
  let n = t.find((t) => e[t] !== void 0);
3729
- n && (u.value = n);
3730
+ n && (l.value = n);
3730
3731
  }
3731
- if (n.config?.translate) Q.success(c("product-management.attribute.translation.completed"));
3732
+ if (n.config?.translate) Q.success(u("product-management.attribute.translation.completed"));
3732
3733
  else {
3733
3734
  let e = t.map((e) => i.value.find((t) => t.code === e)?.label).join(", ");
3734
- Q.info(c("product-management.attribute.translation.mockCopied", { targets: e }));
3735
+ Q.info(u("product-management.attribute.translation.mockCopied", { targets: e }));
3735
3736
  }
3736
3737
  } catch {
3737
- Q.error(c("product-management.attribute.translation.failed"));
3738
+ Q.error(u("product-management.attribute.translation.failed"));
3738
3739
  } finally {
3739
3740
  p.value = !1;
3740
3741
  }
@@ -3743,10 +3744,10 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3743
3744
  let r = H("loading");
3744
3745
  return ue((R(), C("div", {
3745
3746
  class: F(["translate-field", [`translate-field--label-${e.labelPosition}`, { "translate-field--plain-input": e.field.type === "text" || e.field.type === "textarea" }]]),
3746
- "element-loading-text": G(c)("product-management.attribute.translation.loading")
3747
+ "element-loading-text": G(u)("product-management.attribute.translation.loading")
3747
3748
  }, [o.value === "tabs" ? (R(), C(y, { key: 0 }, [D(G(Ve), {
3748
- modelValue: u.value,
3749
- "onUpdate:modelValue": n[0] ||= (e) => u.value = e,
3749
+ modelValue: l.value,
3750
+ "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
3750
3751
  class: "translate-field__tabs"
3751
3752
  }, {
3752
3753
  default: J(() => [(R(!0), C(y, null, B(i.value, (e) => (R(), x(G(Le), {
@@ -3756,13 +3757,13 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3756
3757
  }, null, 8, ["label", "name"]))), 128))]),
3757
3758
  _: 1
3758
3759
  }, 8, ["modelValue"]), e.field.type === "rich-text" ? (R(), x(Co, P({ key: 0 }, e.inputProps, {
3759
- id: `${e.field.prop}-${u.value}`,
3760
- "model-value": String(l.value[u.value] ?? ""),
3760
+ id: `${e.field.prop}-${l.value}`,
3761
+ "model-value": String(c.value[l.value] ?? ""),
3761
3762
  placeholder: e.placeholder || s.value,
3762
3763
  editable: !m.value && e.inputProps.editable !== !1,
3763
3764
  "max-height": e.inputProps.maxHeight ?? "220px",
3764
- "tool-context": _(u.value),
3765
- "onUpdate:modelValue": n[3] ||= (e) => h(u.value, e)
3765
+ "tool-context": _(l.value),
3766
+ "onUpdate:modelValue": n[3] ||= (e) => h(l.value, e)
3766
3767
  }), {
3767
3768
  "toolbar-append": J(() => [D(ko, {
3768
3769
  languages: i.value,
@@ -3789,13 +3790,13 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3789
3790
  "max-height",
3790
3791
  "tool-context"
3791
3792
  ])) : (R(), x(G(Te), P({ key: 1 }, e.inputProps, {
3792
- id: `${e.field.prop}-${u.value}`,
3793
- "model-value": g(u.value),
3793
+ id: `${e.field.prop}-${l.value}`,
3794
+ "model-value": g(l.value),
3794
3795
  type: e.field.type === "textarea" ? "textarea" : "text",
3795
3796
  rows: e.field.type === "textarea" ? e.inputProps.rows ?? 4 : void 0,
3796
3797
  placeholder: e.placeholder || s.value,
3797
3798
  disabled: m.value,
3798
- "onUpdate:modelValue": n[4] ||= (e) => h(u.value, e)
3799
+ "onUpdate:modelValue": n[4] ||= (e) => h(l.value, e)
3799
3800
  }), null, 16, [
3800
3801
  "id",
3801
3802
  "model-value",
@@ -3814,7 +3815,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3814
3815
  ref_for: !0
3815
3816
  }, e.inputProps, {
3816
3817
  id: `${e.field.prop}-${t.code}`,
3817
- "model-value": String(l.value[t.code] ?? ""),
3818
+ "model-value": String(c.value[t.code] ?? ""),
3818
3819
  placeholder: e.placeholder || t.label,
3819
3820
  editable: !m.value && e.inputProps.editable !== !1,
3820
3821
  "max-height": e.inputProps.maxHeight ?? "220px",
@@ -3888,7 +3889,7 @@ var Fo = {
3888
3889
  }, Io = {
3889
3890
  key: 23,
3890
3891
  class: "schema-form-item__tip"
3891
- }, Lo = /*#__PURE__*/ d(/* @__PURE__ */ k({
3892
+ }, Lo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3892
3893
  __name: "schema-form-item",
3893
3894
  props: {
3894
3895
  disabled: { type: Boolean },
@@ -3901,13 +3902,13 @@ var Fo = {
3901
3902
  },
3902
3903
  emits: ["update:modelValue"],
3903
3904
  setup(e, { emit: t }) {
3904
- let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-DSqjKCVS.js")), s = O(() => import("./picture-upload-CDMrYc5t.js")), l = O(() => Promise.resolve().then(() => So)), u = b(() => r.context ?? {
3905
+ let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-C1cpwWWY.js")), s = O(() => import("./picture-upload-DFIHyqTp.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3905
3906
  mode: "create",
3906
3907
  values: {}
3907
- }), d = Po(() => r.field, u), f = b(() => ({
3908
- ...u.value,
3908
+ }), d = Po(() => r.field, l), f = b(() => ({
3909
+ ...l.value,
3909
3910
  updateValue: H
3910
- })), p = b(() => typeof r.field.props == "function" ? r.field.props(f.value) : r.field.props), m = b(() => Sa(r.field, u.value)), h = b(() => xa(r.field)), g = b(() => r.field.copyable ?? !!r.field.readonly), _ = b(() => !!r.field.translateConfig && [
3911
+ })), p = b(() => typeof r.field.props == "function" ? r.field.props(f.value) : r.field.props), m = b(() => Sa(r.field, l.value)), h = b(() => xa(r.field)), g = b(() => r.field.copyable ?? !!r.field.readonly), _ = b(() => !!r.field.translateConfig && [
3911
3912
  "rich-text",
3912
3913
  "text",
3913
3914
  "textarea"
@@ -3925,8 +3926,8 @@ var Fo = {
3925
3926
  if (e === "date") return vn(t);
3926
3927
  if (e === "switch") {
3927
3928
  let e = p.value?.activeValue ?? !0, n = p.value?.inactiveValue ?? !1;
3928
- if (v(t) === v(e)) return p.value?.activeText ?? c("schemaForm.yes");
3929
- if (v(t) === v(n)) return p.value?.inactiveText ?? c("schemaForm.no");
3929
+ if (v(t) === v(e)) return p.value?.activeText ?? u("schemaForm.yes");
3930
+ if (v(t) === v(n)) return p.value?.inactiveText ?? u("schemaForm.no");
3930
3931
  }
3931
3932
  if (e === "select" || e === "async-select" || e === "radio" || e === "checkbox") {
3932
3933
  if (Array.isArray(t)) return t.map((e) => w(e)).join("、");
@@ -3973,13 +3974,13 @@ var Fo = {
3973
3974
  editable: !r.disabled && !r.readonly && p.value?.editable !== !1,
3974
3975
  toolContext: {
3975
3976
  field: r.field,
3976
- formData: u.value.values,
3977
- getFormData: () => u.value.values,
3978
- mode: u.value.mode
3977
+ formData: l.value.values,
3978
+ getFormData: () => l.value.values,
3979
+ mode: l.value.mode
3979
3980
  }
3980
3981
  })), L = b(() => r.field.apiOptions), te = b(() => L.value ? aa(L.value.entityKey) : void 0), ne = b(() => {
3981
3982
  let e = L.value?.params;
3982
- return typeof e == "function" ? e(u.value) : e;
3983
+ return typeof e == "function" ? e(l.value) : e;
3983
3984
  }), z = b(() => JSON.stringify(ne.value ?? {})), re = b(() => {
3984
3985
  let e = te.value, t = L.value;
3985
3986
  return !e || !t ? null : {
@@ -4030,7 +4031,7 @@ var Fo = {
4030
4031
  default: J(() => [_.value ? (R(), x(No, {
4031
4032
  key: 0,
4032
4033
  config: e.field.translateConfig,
4033
- context: u.value,
4034
+ context: l.value,
4034
4035
  disabled: e.disabled || e.readonly,
4035
4036
  field: e.field,
4036
4037
  "label-position": e.labelPosition,
@@ -4049,7 +4050,7 @@ var Fo = {
4049
4050
  "model-value",
4050
4051
  "placeholder",
4051
4052
  "readonly"
4052
- ])) : e.readonly && e.field.type === "rich-text" ? (R(), x(G(l), P({
4053
+ ])) : e.readonly && e.field.type === "rich-text" ? (R(), x(G(c), P({
4053
4054
  key: 1,
4054
4055
  "model-value": e.modelValue,
4055
4056
  placeholder: h.value
@@ -4126,7 +4127,7 @@ var Fo = {
4126
4127
  "model-value",
4127
4128
  "placeholder",
4128
4129
  "disabled"
4129
- ])) : e.field.type === "rich-text" ? (R(), x(G(l), P({
4130
+ ])) : e.field.type === "rich-text" ? (R(), x(G(c), P({
4130
4131
  key: 13,
4131
4132
  "model-value": e.modelValue,
4132
4133
  placeholder: h.value
@@ -4246,7 +4247,7 @@ var Fo = {
4246
4247
  }, Go = { key: 1 }, Ko = {
4247
4248
  key: 0,
4248
4249
  class: "schema-form-group__tip"
4249
- }, qo = /*#__PURE__*/ d(/* @__PURE__ */ k({
4250
+ }, qo = /*#__PURE__*/ f(/* @__PURE__ */ k({
4250
4251
  __name: "schema-form",
4251
4252
  props: /*@__PURE__*/ N({
4252
4253
  columns: { default: 1 },
@@ -4279,12 +4280,12 @@ var Fo = {
4279
4280
  let r = e, i = n, a = K(e, "modelValue"), o = z(), s = {
4280
4281
  behavior: "smooth",
4281
4282
  block: "center"
4282
- }, l = b(() => r.schema), u = b(() => ({
4283
+ }, c = b(() => r.schema), l = b(() => ({
4283
4284
  mode: r.mode,
4284
4285
  values: a.value ?? {}
4285
- })), d = b(() => l.value.filter((e) => ba(e, u.value) ? !1 : !_a(e) || f(e).length > 0));
4286
+ })), d = b(() => c.value.filter((e) => ba(e, l.value) ? !1 : !_a(e) || f(e).length > 0));
4286
4287
  function f(e) {
4287
- return e.children.filter((e) => !ba(e, u.value));
4288
+ return e.children.filter((e) => !ba(e, l.value));
4288
4289
  }
4289
4290
  let p = b(() => d.value.flatMap((e) => _a(e) ? f(e) : [e])), m = b(() => Math.floor(24 / r.columns)), h = b(() => ({
4290
4291
  [`schema-form--label-align-${r.labelAlign}`]: !!r.labelAlign,
@@ -4305,14 +4306,14 @@ var Fo = {
4305
4306
  return t ? { gridColumn: e.newRow ? "1 / -1" : `span ${e.span ?? m.value}` } : { flex: `${e.span ?? 1} 1 0` };
4306
4307
  }
4307
4308
  function O(e) {
4308
- return f(e).some((e) => ya(e.required, u.value));
4309
+ return f(e).some((e) => ya(e.required, l.value));
4309
4310
  }
4310
4311
  function k(e) {
4311
4312
  let t = d.value.filter((e) => _a(e) && !!e.anchor);
4312
4313
  return String(t.indexOf(e) + 1).padStart(2, "0");
4313
4314
  }
4314
4315
  function A(e, t) {
4315
- return r.disabled || ya(t?.disabled, u.value) || ya(e.disabled, u.value);
4316
+ return r.disabled || ya(t?.disabled, l.value) || ya(e.disabled, l.value);
4316
4317
  }
4317
4318
  function j(e) {
4318
4319
  return r.mode === "view" || !!e.readonly;
@@ -4323,9 +4324,9 @@ var Fo = {
4323
4324
  [e.prop]: t
4324
4325
  }, i("field-change", e, t);
4325
4326
  }
4326
- q([l, a], () => {
4327
+ q([c, a], () => {
4327
4328
  let e = a.value ?? {}, t = {};
4328
- for (let n of va(l.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4329
+ for (let n of va(c.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4329
4330
  Object.keys(t).length > 0 && (a.value = {
4330
4331
  ...e,
4331
4332
  ...t
@@ -4368,20 +4369,20 @@ var Fo = {
4368
4369
  default: J(() => [e.type === "group" ? (R(), x(G(Ce), {
4369
4370
  key: 0,
4370
4371
  class: F(["schema-form-group", { "schema-form-group--anchor": e.anchor }]),
4371
- "data-form-anchor": e.anchor ? l.value.indexOf(e) : void 0,
4372
+ "data-form-anchor": e.anchor ? c.value.indexOf(e) : void 0,
4372
4373
  label: e.label
4373
4374
  }, {
4374
4375
  label: J(() => [e.anchor ? (R(), C("div", Bo, [
4375
4376
  w("span", Vo, W(k(e)), 1),
4376
4377
  w("span", Ho, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Uo, W(e.description), 1)) : S("", !0)]),
4377
- O(e) ? (R(), C("span", Wo, W(G(c)("schemaForm.requiredNote")), 1)) : S("", !0)
4378
+ O(e) ? (R(), C("span", Wo, W(G(u)("schemaForm.requiredNote")), 1)) : S("", !0)
4378
4379
  ])) : (R(), C("span", Go, W(e.label), 1))]),
4379
4380
  default: J(() => [w("div", { class: F(["schema-form-group__body", { "schema-form-group__body--grid": e.anchor }]) }, [(R(!0), C(y, null, B(f(e), (n) => (R(), x(Lo, {
4380
4381
  key: n.prop,
4381
4382
  style: L(E(n, e.anchor)),
4382
4383
  "hide-label": !e.anchor,
4383
4384
  field: n,
4384
- context: u.value,
4385
+ context: l.value,
4385
4386
  "label-position": g.value,
4386
4387
  "model-value": a.value[n.prop],
4387
4388
  disabled: A(n, e),
@@ -4409,7 +4410,7 @@ var Fo = {
4409
4410
  ])) : (R(), x(Lo, {
4410
4411
  key: 1,
4411
4412
  field: e,
4412
- context: u.value,
4413
+ context: l.value,
4413
4414
  "label-position": g.value,
4414
4415
  "model-value": a.value[e.prop],
4415
4416
  disabled: A(e),
@@ -4445,7 +4446,7 @@ var Fo = {
4445
4446
  key: 0,
4446
4447
  class: "drawer-form-page__anchors",
4447
4448
  "aria-label": "表单分区"
4448
- }, ts = ["onClick"], ns = { class: "drawer-form-page__footer" }, rs = /*#__PURE__*/ d(/* @__PURE__ */ k({
4449
+ }, ts = ["onClick"], ns = { class: "drawer-form-page__footer" }, rs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4449
4450
  __name: "index",
4450
4451
  props: {
4451
4452
  modelValue: {
@@ -4811,7 +4812,7 @@ function as(e) {
4811
4812
  var os = {
4812
4813
  key: 0,
4813
4814
  class: "search-form__actions"
4814
- }, ss = /*#__PURE__*/ d(/* @__PURE__ */ k({
4815
+ }, ss = /*#__PURE__*/ f(/* @__PURE__ */ k({
4815
4816
  __name: "index",
4816
4817
  props: /*@__PURE__*/ N({
4817
4818
  collapsedRows: { default: 2 },
@@ -4835,7 +4836,7 @@ var os = {
4835
4836
  }),
4836
4837
  emits: /*@__PURE__*/ N(["reset", "search"], ["update:modelValue"]),
4837
4838
  setup(e, { expose: t, emit: n }) {
4838
- let r = e, i = n, a = K(e, "modelValue"), o = se(), s = z(!1), l = z(), u = /* @__PURE__ */ new Set([
4839
+ let r = e, i = n, a = K(e, "modelValue"), o = se(), s = z(!1), c = z(), l = /* @__PURE__ */ new Set([
4839
4840
  "async-select",
4840
4841
  "cascader",
4841
4842
  "select"
@@ -4864,13 +4865,13 @@ var os = {
4864
4865
  t?.tagName === "INPUT" && (t.closest(".async-select, .el-select, .el-cascader, .el-date-editor") || (e.preventDefault(), k()));
4865
4866
  }
4866
4867
  async function M(e) {
4867
- u.has(e.type) && (await ee(), k());
4868
+ l.has(e.type) && (await ee(), k());
4868
4869
  }
4869
4870
  function N() {
4870
4871
  a.value = w(), i("reset", O());
4871
4872
  }
4872
4873
  async function P() {
4873
- return await l.value?.validate() ?? !1;
4874
+ return await c.value?.validate() ?? !1;
4874
4875
  }
4875
4876
  return q(h, (e) => {
4876
4877
  e || (s.value = !1);
@@ -4885,7 +4886,7 @@ var os = {
4885
4886
  onSubmit: fe(k, ["prevent"])
4886
4887
  }, [D(qo, {
4887
4888
  ref_key: "schemaFormRef",
4888
- ref: l,
4889
+ ref: c,
4889
4890
  modelValue: a.value,
4890
4891
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
4891
4892
  class: "search-form__schema",
@@ -4915,14 +4916,14 @@ var os = {
4915
4916
  type: "primary",
4916
4917
  "native-type": "submit"
4917
4918
  }, {
4918
- default: J(() => [E(W(G(c)("components.searchForm.search")), 1)]),
4919
+ default: J(() => [E(W(G(u)("components.searchForm.search")), 1)]),
4919
4920
  _: 1
4920
4921
  }),
4921
4922
  D(G(Y), {
4922
4923
  "native-type": "button",
4923
4924
  onClick: N
4924
4925
  }, {
4925
- default: J(() => [E(W(G(c)("components.searchForm.reset")), 1)]),
4926
+ default: J(() => [E(W(G(u)("components.searchForm.reset")), 1)]),
4926
4927
  _: 1
4927
4928
  }),
4928
4929
  h.value ? (R(), x(G(Y), {
@@ -4933,12 +4934,12 @@ var os = {
4933
4934
  icon: s.value ? G(Xe) : G(Je),
4934
4935
  onClick: n[1] ||= (e) => s.value = !s.value
4935
4936
  }, {
4936
- default: J(() => [E(W(s.value ? G(c)("components.searchForm.collapse") : G(c)("components.searchForm.expand")), 1)]),
4937
+ default: J(() => [E(W(s.value ? G(u)("components.searchForm.collapse") : G(u)("components.searchForm.expand")), 1)]),
4937
4938
  _: 1
4938
4939
  }, 8, ["icon"])) : S("", !0)
4939
4940
  ])) : S("", !0)], 32));
4940
4941
  }
4941
- }), [["__scopeId", "data-v-4b7b21fe"]]), cs = /*#__PURE__*/ d(/* @__PURE__ */ k({
4942
+ }), [["__scopeId", "data-v-4b7b21fe"]]), cs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4942
4943
  __name: "index",
4943
4944
  props: {
4944
4945
  fields: { default: () => [] },
@@ -5004,7 +5005,7 @@ var os = {
5004
5005
  "toolbarAction"
5005
5006
  ],
5006
5007
  setup(e, { expose: t, emit: n }) {
5007
- let r = e, i = n, a = se(), o = z(), s = z("create"), l = z({}), u = z(0), d = z([]), f = z({}), p = z({}), m = b(() => r.fields.filter((e) => e.form !== !1)), h = b(() => {
5008
+ let r = e, i = n, a = se(), o = z(), s = z("create"), c = z({}), l = z(0), d = z([]), f = z({}), p = z({}), m = b(() => r.fields.filter((e) => e.form !== !1)), h = b(() => {
5008
5009
  let e = r.searchFormProps?.schema;
5009
5010
  return e?.length ? e : r.fields.filter((e) => e.search).map((e) => ne(e)).filter((e) => !!e);
5010
5011
  }), g = b(() => h.value.length > 0), _ = b(() => r.fields.filter((e) => e.table !== !1).filter((e) => e.type !== "group").map((e) => {
@@ -5131,20 +5132,20 @@ var os = {
5131
5132
  },
5132
5133
  onSubmit: async (e) => {
5133
5134
  let t = s.value === "create";
5134
- if (!(t ? r.onCreate : r.onUpdate)) return Q.warning(c("components.crudPage.submitHandlerMissing")), !1;
5135
+ if (!(t ? r.onCreate : r.onUpdate)) return Q.warning(u("components.crudPage.submitHandlerMissing")), !1;
5135
5136
  X.setState({ submitting: !0 });
5136
5137
  try {
5137
- let n = t ? e : he(e, l.value);
5138
- return (t ? await r.onCreate?.(e) : await r.onUpdate?.(n, l.value)) !== !1 && (Q.success(s.value === "create" ? c("components.crudPage.createSuccess") : c("components.crudPage.updateSuccess")), await ke(), !0);
5138
+ let n = t ? e : he(e, c.value);
5139
+ return (t ? await r.onCreate?.(e) : await r.onUpdate?.(n, c.value)) !== !1 && (Q.success(s.value === "create" ? u("components.crudPage.createSuccess") : u("components.crudPage.updateSuccess")), await ke(), !0);
5139
5140
  } catch {
5140
- return Q.error(s.value === "create" ? c("components.crudPage.createFailed") : c("components.crudPage.updateFailed")), !1;
5141
+ return Q.error(s.value === "create" ? u("components.crudPage.createFailed") : u("components.crudPage.updateFailed")), !1;
5141
5142
  } finally {
5142
5143
  X.setState({ submitting: !1 });
5143
5144
  }
5144
5145
  }
5145
5146
  });
5146
5147
  function pe(e) {
5147
- return e === "create" ? r.createTitle ?? c("components.crudPage.createTitle") : e === "edit" ? r.editTitle ?? c("components.crudPage.editTitle") : r.viewTitle ?? c("components.crudPage.viewTitle");
5148
+ return e === "create" ? r.createTitle ?? u("components.crudPage.createTitle") : e === "edit" ? r.editTitle ?? u("components.crudPage.editTitle") : r.viewTitle ?? u("components.crudPage.viewTitle");
5148
5149
  }
5149
5150
  function me(e, t) {
5150
5151
  let n = e === "create" ? {
@@ -5160,8 +5161,8 @@ var os = {
5160
5161
  };
5161
5162
  }
5162
5163
  async function ge(e, t) {
5163
- s.value = e, l.value = { ...t ?? {} };
5164
- let n = ++u.value, i = e !== "create" && !!r.resolveFormValues;
5164
+ s.value = e, c.value = { ...t ?? {} };
5165
+ let n = ++l.value, i = e !== "create" && !!r.resolveFormValues;
5165
5166
  if (X.open({
5166
5167
  ...r.drawerProps,
5167
5168
  loading: i,
@@ -5175,11 +5176,11 @@ var os = {
5175
5176
  values: me(e, t)
5176
5177
  }), i) try {
5177
5178
  let i = await r.resolveFormValues?.(e, t);
5178
- n === u.value && i && (l.value = he(i, l.value), X.setValues(i));
5179
+ n === l.value && i && (c.value = he(i, c.value), X.setValues(i));
5179
5180
  } catch {
5180
- n === u.value && (Q.error(c("components.crudPage.loadDetailFailed")), X.close());
5181
+ n === l.value && (Q.error(u("components.crudPage.loadDetailFailed")), X.close());
5181
5182
  } finally {
5182
- n === u.value && X.setState({ loading: !1 });
5183
+ n === l.value && X.setState({ loading: !1 });
5183
5184
  }
5184
5185
  }
5185
5186
  async function _e() {
@@ -5187,10 +5188,10 @@ var os = {
5187
5188
  }
5188
5189
  function ve(e) {
5189
5190
  let t = r.deleteConfirmText;
5190
- return typeof t == "function" ? t(e) : t ?? c("components.crudPage.deleteConfirmText");
5191
+ return typeof t == "function" ? t(e) : t ?? u("components.crudPage.deleteConfirmText");
5191
5192
  }
5192
5193
  async function ye(e) {
5193
- if (!r.onDelete) Q.warning(c("components.crudPage.deleteHandlerMissing"));
5194
+ if (!r.onDelete) Q.warning(u("components.crudPage.deleteHandlerMissing"));
5194
5195
  else {
5195
5196
  if (r.confirmDelete) try {
5196
5197
  await De.confirm(ve(e), { type: "warning" });
@@ -5199,19 +5200,19 @@ var os = {
5199
5200
  }
5200
5201
  try {
5201
5202
  if (await r.onDelete(e) === !1) return;
5202
- Q.success(c("components.crudPage.deleteSuccess")), await ke();
5203
+ Q.success(u("components.crudPage.deleteSuccess")), await ke();
5203
5204
  } catch {
5204
- Q.error(c("components.crudPage.deleteFailed"));
5205
+ Q.error(u("components.crudPage.deleteFailed"));
5205
5206
  }
5206
5207
  }
5207
5208
  }
5208
5209
  async function be() {
5209
5210
  let e = [...d.value];
5210
5211
  if (e.length !== 0) {
5211
- if (!r.onDelete && !r.onBatchDelete) Q.warning(c("components.crudPage.batchDeleteHandlerMissing"));
5212
+ if (!r.onDelete && !r.onBatchDelete) Q.warning(u("components.crudPage.batchDeleteHandlerMissing"));
5212
5213
  else {
5213
5214
  try {
5214
- await De.confirm(c("components.crudPage.batchDeleteConfirm", { count: e.length }), { type: "warning" });
5215
+ await De.confirm(u("components.crudPage.batchDeleteConfirm", { count: e.length }), { type: "warning" });
5215
5216
  } catch {
5216
5217
  return;
5217
5218
  }
@@ -5219,15 +5220,15 @@ var os = {
5219
5220
  if (r.onBatchDelete) {
5220
5221
  if (await r.onBatchDelete(e) === !1) return;
5221
5222
  } else for (let t of e) if (await r.onDelete?.(t) === !1) return;
5222
- Q.success(c("components.crudPage.deleteSuccess")), o.value?.clearSelection(), await ke();
5223
+ Q.success(u("components.crudPage.deleteSuccess")), o.value?.clearSelection(), await ke();
5223
5224
  } catch {
5224
- Q.error(c("components.crudPage.deleteFailed"));
5225
+ Q.error(u("components.crudPage.deleteFailed"));
5225
5226
  }
5226
5227
  }
5227
5228
  }
5228
5229
  }
5229
5230
  function xe() {
5230
- o.value?.openImport() || Q.warning(c("components.crudPage.importNotConfigured"));
5231
+ o.value?.openImport() || Q.warning(u("components.crudPage.importNotConfigured"));
5231
5232
  }
5232
5233
  async function Se() {
5233
5234
  if (!r?.exportConfig) return;
@@ -5248,7 +5249,7 @@ var os = {
5248
5249
  source: a.data
5249
5250
  });
5250
5251
  } catch {
5251
- Q.error(c("components.crudPage.exportFailed"));
5252
+ Q.error(u("components.crudPage.exportFailed"));
5252
5253
  }
5253
5254
  }
5254
5255
  function Ce(e) {
@@ -5342,7 +5343,7 @@ var os = {
5342
5343
  type: "primary",
5343
5344
  onClick: _e
5344
5345
  }, {
5345
- default: J(() => [E(W(r.addButtonText ?? G(c)("components.crudPage.addButtonText")), 1)]),
5346
+ default: J(() => [E(W(r.addButtonText ?? G(u)("components.crudPage.addButtonText")), 1)]),
5346
5347
  _: 1
5347
5348
  })), [[n, [`${N.value}:add`]]]) : S("", !0),
5348
5349
  r.onDelete || r.onBatchDelete ? ue((R(), x(G(Y), {
@@ -5351,21 +5352,21 @@ var os = {
5351
5352
  disabled: d.value.length === 0,
5352
5353
  onClick: be
5353
5354
  }, {
5354
- default: J(() => [E(W(G(c)("components.tableEntity.batchDelete")), 1)]),
5355
+ default: J(() => [E(W(G(u)("components.tableEntity.batchDelete")), 1)]),
5355
5356
  _: 1
5356
5357
  }, 8, ["disabled"])), [[n, [`${N.value}:remove`]]]) : S("", !0),
5357
5358
  r.showImport ? ue((R(), x(G(Y), {
5358
5359
  key: 2,
5359
5360
  onClick: xe
5360
5361
  }, {
5361
- default: J(() => [E(W(G(c)("components.tableEntity.import")), 1)]),
5362
+ default: J(() => [E(W(G(u)("components.tableEntity.import")), 1)]),
5362
5363
  _: 1
5363
5364
  })), [[n, [`${N.value}:import`]]]) : S("", !0),
5364
5365
  r.showExport && r.exportConfig ? ue((R(), x(G(Y), {
5365
5366
  key: 3,
5366
5367
  onClick: Se
5367
5368
  }, {
5368
- default: J(() => [E(W(G(c)("components.tableEntity.export")), 1)]),
5369
+ default: J(() => [E(W(G(u)("components.tableEntity.export")), 1)]),
5369
5370
  _: 1
5370
5371
  })), [[n, [`${N.value}:export`]]]) : S("", !0),
5371
5372
  D(G($))
@@ -5416,7 +5417,7 @@ var os = {
5416
5417
  let t = e;
5417
5418
  return (e, n) => (R(), x(G(Z), P(e.$attrs, { class: ["disguise iconfont", t.icon ? `${t.className}-${t.icon}` : void 0] }), null, 16, ["class"]));
5418
5419
  }
5419
- }), us = ["src"], ds = { class: "image-upload__mask" }, fs = { class: "image-upload__text" }, ps = /*#__PURE__*/ d(/* @__PURE__ */ k({
5420
+ }), us = ["src"], ds = { class: "image-upload__mask" }, fs = { class: "image-upload__text" }, ps = /*#__PURE__*/ f(/* @__PURE__ */ k({
5420
5421
  __name: "index",
5421
5422
  props: /*@__PURE__*/ N({
5422
5423
  accept: { default: () => [
@@ -5442,14 +5443,14 @@ var os = {
5442
5443
  width: `${t.width}px`,
5443
5444
  height: `${t.height}px`
5444
5445
  }));
5445
- function l(e) {
5446
+ function c(e) {
5446
5447
  if (t.accept.length > 0 && !t.accept.includes(e.type)) {
5447
5448
  let e = t.accept.map((e) => e.replace("image/", "").replace("+xml", "")).join(" / ").toUpperCase();
5448
- return Q.error(c("components.imageUpload.typeNotAllowed", { types: e })), !1;
5449
+ return Q.error(u("components.imageUpload.typeNotAllowed", { types: e })), !1;
5449
5450
  }
5450
- return e.size / 1024 / 1024 > t.maxSize ? (Q.error(c("components.imageUpload.sizeLimitExceeded", { size: t.maxSize })), !1) : !0;
5451
+ return e.size / 1024 / 1024 > t.maxSize ? (Q.error(u("components.imageUpload.sizeLimitExceeded", { size: t.maxSize })), !1) : !0;
5451
5452
  }
5452
- async function u(e) {
5453
+ async function l(e) {
5453
5454
  i.value = !0;
5454
5455
  try {
5455
5456
  let { url: t } = await _(e.file);
@@ -5471,7 +5472,7 @@ var os = {
5471
5472
  class: "image-upload__img"
5472
5473
  }, null, 8, us), w("div", ds, [D(G(Z), {
5473
5474
  class: "image-upload__action",
5474
- title: G(c)("components.imageUpload.preview"),
5475
+ title: G(u)("components.imageUpload.preview"),
5475
5476
  onClick: n[0] ||= (e) => a.value = !0
5476
5477
  }, {
5477
5478
  default: J(() => [D(G(ht))]),
@@ -5479,7 +5480,7 @@ var os = {
5479
5480
  }, 8, ["title"]), e.disabled ? S("", !0) : (R(), x(G(Z), {
5480
5481
  key: 0,
5481
5482
  class: "image-upload__action",
5482
- title: G(c)("components.imageUpload.remove"),
5483
+ title: G(u)("components.imageUpload.remove"),
5483
5484
  onClick: d
5484
5485
  }, {
5485
5486
  default: J(() => [D(G(tt))]),
@@ -5487,9 +5488,9 @@ var os = {
5487
5488
  }, 8, ["title"]))])], 4)) : (R(), x(G(Ue), {
5488
5489
  key: 1,
5489
5490
  accept: e.accept.join(","),
5490
- "before-upload": l,
5491
+ "before-upload": c,
5491
5492
  disabled: e.disabled || i.value,
5492
- "http-request": u,
5493
+ "http-request": l,
5493
5494
  "show-file-list": !1
5494
5495
  }, {
5495
5496
  default: J(() => [w("div", {
@@ -5498,7 +5499,7 @@ var os = {
5498
5499
  }, [D(G(Z), { class: F(["image-upload__icon", { "is-loading": i.value }]) }, {
5499
5500
  default: J(() => [i.value ? (R(), x(G(at), { key: 0 })) : (R(), x(G(st), { key: 1 }))]),
5500
5501
  _: 1
5501
- }, 8, ["class"]), w("span", fs, W(i.value ? G(c)("components.imageUpload.uploading") : G(c)("components.imageUpload.upload")), 1)], 4)]),
5502
+ }, 8, ["class"]), w("span", fs, W(i.value ? G(u)("components.imageUpload.uploading") : G(u)("components.imageUpload.upload")), 1)], 4)]),
5502
5503
  _: 1
5503
5504
  }, 8, ["accept", "disabled"])), a.value ? (R(), x(G(we), {
5504
5505
  key: 2,
@@ -5510,6 +5511,6 @@ var os = {
5510
5511
  }), [["__scopeId", "data-v-c6aeef2e"]]);
5511
5512
  // src/setup.ts
5512
5513
  function ms(e = {}) {
5513
- s(e);
5514
+ l(e);
5514
5515
  }
5515
5516
  export { ea as AsyncSelect, na as BaseCard, cs as CrudPage, zi as DialogList, Ir as DictTag, ls as DisguiseIcon, rs as DrawerFormPage, g as FileUpload, ps as ImageUpload, t as ImagesView, ar as ImportDialog, v as PictureUpload, Co as RichTextEditor, qo as SchemaForm, ss as SearchForm, Pi as TableEntity, m as UserAvatarInfo, aa as getEntity, oa as paginateLocally, ia as registerEntity, pa as registerSchemaFormComponents, ms as setupDisguise, is as useDrawerFormPage };