disguise-ui 0.3.4 → 0.3.6

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,14 +1,14 @@
1
- import { i as e, r as t, t as n } from "./picture-cell-C6BLbwEb.js";
1
+ import { i as e, r as t, t as n } from "./picture-cell--GGQKBgi.js";
2
2
  import { t as r } from "./modal-CHOpDVLd.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";
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-DyM4J6Tt.js";
4
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";
5
+ import { t as p } from "./use-image-url-CWM0aE7u.js";
6
+ import { t as m } from "./user-avatar-info-CwXzoLlH.js";
7
7
  import { t as h } from "./use-file-type-rNstoxXw.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";
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";
8
+ import { t as g } from "./file-upload-BYq_ZBPv.js";
9
+ import { r as _ } from "./use-multiple-file-upload-Vt01wSm6.js";
10
+ import { t as v } from "./picture-upload-BQeS_ojB.js";
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 te, normalizeStyle as I, onUnmounted as L, openBlock as R, reactive as ne, ref as z, renderList as B, renderSlot as V, resolveComponent as re, resolveDirective as H, resolveDynamicComponent as ie, shallowReactive as U, toDisplayString as W, toHandlers as ae, toValue as oe, unref as G, useModel as se, useSlots as ce, vModelSelect as K, vModelText as le, watch as q, withCtx as J, withDirectives as ue, withKeys as de, withModifiers as fe } from "vue";
12
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";
13
13
  import Ge from "dayjs";
14
14
  import Ke from "dayjs/plugin/timezone.js";
@@ -141,25 +141,25 @@ var Sn = {
141
141
  setup(e, { emit: t }) {
142
142
  let n = e, i = t, [a, o] = r({ onOpenChange: (e) => {
143
143
  e !== n.modelValue && i("update:modelValue", e);
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 : [{
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), te = b(() => n.modes?.length ? n.modes : [{
145
145
  label: u("components.importDialog.modeCreate"),
146
146
  value: "create"
147
147
  }, {
148
148
  label: u("components.importDialog.modeUpdate"),
149
149
  value: "update"
150
- }]), L = b(() => n.tips?.length ? n.tips : [
150
+ }]), I = b(() => n.tips?.length ? n.tips : [
151
151
  u("components.importDialog.tipSize", { size: n.maxSize }),
152
152
  u("components.importDialog.tipHeader"),
153
153
  u("components.importDialog.tipFormula"),
154
154
  u("components.importDialog.tipArea"),
155
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
+ ]), L = 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), ie = b(() => u("components.importDialog.previewSummary", {
157
157
  total: _.value,
158
158
  count: Math.min(g.value.length, n.maxPreviewCount)
159
- })), ie = b(() => f.value || d.value?.name || ""), ae = b(() => h.value.map((e) => ({
159
+ })), U = b(() => f.value || d.value?.name || ""), ae = b(() => h.value.map((e) => ({
160
160
  label: e.label,
161
161
  value: e.label
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(() => [
162
+ }))), oe = b(() => j.value || u("components.importDialog.importingProgress", { progress: A.value })), se = b(() => M.value ? M.value.title ? M.value.title : M.value.success ? u("components.importDialog.successTitle") : u("components.importDialog.errorTitle") : ""), ce = b(() => M.value ? M.value.description ? M.value.description : M.value.success ? u("components.importDialog.successDescription") : u("components.importDialog.errorDescription") : ""), K = b(() => [
163
163
  u("components.importDialog.stepUpload"),
164
164
  u("components.importDialog.stepPreview"),
165
165
  u("components.importDialog.stepMapping"),
@@ -411,7 +411,7 @@ var Sn = {
411
411
  default: J(() => [E(W(G(u)("common.close")), 1)]),
412
412
  _: 1
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", {
414
+ default: J(() => [w("div", En, [re.value ? (R(), C("div", Dn, [(R(!0), C(y, null, B(K.value, (e, t) => (R(), C("div", {
415
415
  key: e,
416
416
  class: "import-dialog__step"
417
417
  }, [
@@ -423,7 +423,7 @@ var Sn = {
423
423
  _: 1
424
424
  })) : (R(), C("span", On, W(t + 1), 1))], 2),
425
425
  w("div", kn, W(e), 1),
426
- t === ce.value.length - 1 ? S("", !0) : (R(), C("div", {
426
+ t === K.value.length - 1 ? S("", !0) : (R(), C("div", {
427
427
  key: 0,
428
428
  class: F(["import-dialog__step-line", { "is-active": c.value === "preview" && t === 0 || c.value === "mapping" && t <= 1 || c.value === "importing" && t <= 2 }])
429
429
  }, null, 2))
@@ -440,7 +440,7 @@ var Sn = {
440
440
  class: "import-dialog__mode-group",
441
441
  "onUpdate:modelValue": Ee
442
442
  }, {
443
- default: J(() => [(R(!0), C(y, null, B(I.value, (e) => (R(), x(G(je), {
443
+ default: J(() => [(R(!0), C(y, null, B(te.value, (e) => (R(), x(G(je), {
444
444
  key: e.value,
445
445
  label: e.value,
446
446
  disabled: e.disabled
@@ -457,7 +457,7 @@ var Sn = {
457
457
  drag: "",
458
458
  "auto-upload": !1,
459
459
  "show-file-list": !1,
460
- accept: te.value,
460
+ accept: L.value,
461
461
  "on-change": we
462
462
  }, {
463
463
  default: J(() => [w("div", jn, [
@@ -467,7 +467,7 @@ var Sn = {
467
467
  })]),
468
468
  w("div", Nn, [E(W(G(u)("components.importDialog.uploadPlaceholder")) + " ", 1), w("span", Pn, W(G(u)("components.importDialog.selectUpload")), 1)]),
469
469
  w("div", Fn, W(G(u)("components.importDialog.supportedTypes", { types: ne.value })), 1),
470
- ie.value ? (R(), C("div", In, W(ie.value), 1)) : S("", !0)
470
+ U.value ? (R(), C("div", In, W(U.value), 1)) : S("", !0)
471
471
  ])]),
472
472
  _: 1
473
473
  }, 8, ["accept"]),
@@ -483,13 +483,13 @@ var Sn = {
483
483
  onClick: pe
484
484
  }, W(G(u)("components.importDialog.downloadTemplate")), 1)
485
485
  ]),
486
- w("div", Rn, [(R(!0), C(y, null, B(L.value, (e) => (R(), C("div", {
486
+ w("div", Rn, [(R(!0), C(y, null, B(I.value, (e) => (R(), C("div", {
487
487
  key: e,
488
488
  class: "import-dialog__tip-item"
489
489
  }, W(e), 1))), 128))])
490
490
  ], 64)) : c.value === "preview" ? (R(), C(y, { key: 2 }, [
491
491
  w("div", zn, [w("div", Bn, [w("div", Vn, W(G(u)("components.importDialog.fileLabel")), 1), D(G(Te), {
492
- "model-value": ie.value,
492
+ "model-value": U.value,
493
493
  readonly: ""
494
494
  }, null, 8, ["model-value"])]), w("div", Hn, [w("div", Un, W(G(u)("components.importDialog.sheetLabel")), 1), D(G(Pe), {
495
495
  modelValue: m.value,
@@ -526,7 +526,7 @@ var Sn = {
526
526
  ]))), 128))]),
527
527
  _: 1
528
528
  }, 8, ["data"])), [[n, T.value]]),
529
- w("div", Wn, W(U.value), 1)
529
+ w("div", Wn, W(ie.value), 1)
530
530
  ], 64)) : c.value === "mapping" ? (R(), C(y, { key: 3 }, [w("div", Gn, [
531
531
  w("div", null, W(G(u)("components.importDialog.mappingExcelColumn")), 1),
532
532
  t[1] ||= w("div", null, null, -1),
@@ -578,8 +578,8 @@ var Sn = {
578
578
  default: J(() => [D(G(mt))]),
579
579
  _: 1
580
580
  }))])], 2),
581
- w("div", Xn, W(K.value), 1),
582
- w("div", Zn, W(se.value), 1),
581
+ w("div", Xn, W(se.value), 1),
582
+ w("div", Zn, W(ce.value), 1),
583
583
  M.value?.detail ? (R(), C("div", Qn, W(M.value.detail), 1)) : S("", !0)
584
584
  ], 64)) : c.value === "importing" ? (R(), C(y, { key: 5 }, [
585
585
  w("div", $n, [D(G(Ae), {
@@ -871,7 +871,7 @@ function vr(e = 50) {
871
871
  display: n.active ? "block" : "none",
872
872
  left: `${n.currentX}px`
873
873
  }));
874
- return te(() => {
874
+ return L(() => {
875
875
  n.active && (n.active = !1, document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", i), document.body.style.cursor = "", document.body.style.userSelect = "");
876
876
  }), {
877
877
  widthOverrides: t,
@@ -1118,7 +1118,7 @@ function Er(e) {
1118
1118
  let h = Sr(f, e.getRowHeight()), g = h == null ? void 0 : e.getRows()[h];
1119
1119
  h != null && g && !e.isRowDisabled(g) && (c.preventDefault(), r = c.clientX, i = c.clientY, a = !1, t.value = h, n.value = h, o = document.body.style.cursor, s = document.body.style.userSelect, document.body.style.cursor = "grabbing", document.body.style.userSelect = "none", document.addEventListener("pointermove", p), document.addEventListener("pointerup", m));
1120
1120
  }
1121
- return te(f), {
1121
+ return L(f), {
1122
1122
  draggingIndex: t,
1123
1123
  onPointerDown: h,
1124
1124
  overIndex: n
@@ -1297,7 +1297,7 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1297
1297
  }), s = b(() => o.value ? n[o.value] ?? "dict-tag--colored" : ""), c = b(() => o.value && !n[o.value] ? { "--dict-tag-color": o.value } : {});
1298
1298
  return (e, t) => (R(), C("span", {
1299
1299
  class: F(["dict-tag", s.value]),
1300
- style: L(c.value)
1300
+ style: I(c.value)
1301
1301
  }, W(a.value), 7));
1302
1302
  }
1303
1303
  }), [["__scopeId", "data-v-0d76da83"]]), Lr = { class: "file-cell flex items-center" }, Rr = {
@@ -1476,11 +1476,11 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1476
1476
  };
1477
1477
  return (r, i) => (R(), C("div", ii, [w("span", {
1478
1478
  class: "text-[red]",
1479
- style: L(t.style)
1479
+ style: I(t.style)
1480
1480
  }, W(n(e.price)), 5), e.oldPrice ? (R(), C("span", {
1481
1481
  key: 0,
1482
1482
  class: "ml-1 line-through",
1483
- style: L(t.oldPriceStyle)
1483
+ style: I(t.oldPriceStyle)
1484
1484
  }, W(n(e.oldPrice)), 5)) : S("", !0)]));
1485
1485
  }
1486
1486
  });
@@ -1545,7 +1545,7 @@ function gi(e, t = "name") {
1545
1545
  }).filter(Boolean);
1546
1546
  }
1547
1547
  // src/components/table-entity/utils/column-slots.ts
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
+ var _i = O(() => Promise.resolve().then(() => Zr)), vi = O(() => import("./picture-cell--GGQKBgi.js").then((e) => e.n)), yi = O(() => import("./avatar-cell-Cns1UqiV.js")), { resolveImageUrl: bi } = p();
1549
1549
  function xi(e) {
1550
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);
1551
1551
  }
@@ -1701,8 +1701,11 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1701
1701
  class: "table-entity__toolbar-left"
1702
1702
  }, Ai = {
1703
1703
  key: 1,
1704
- class: "table-entity__pagination"
1705
- }, ji = "__actions__", Mi = "__drag__", Ni = "table-entity__drag-handle", Pi = /*#__PURE__*/ f(/* @__PURE__ */ k({
1704
+ class: "table-entity__pagination flex items-center justify-between"
1705
+ }, ji = {
1706
+ key: 0,
1707
+ class: "inline-flex h-8 shrink-0 items-center gap-2 rounded-full border border-[var(--el-color-primary-light-7)] bg-[var(--el-color-primary-light-9)] px-3 text-sm font-medium text-[var(--el-color-primary)] shadow-sm transition-colors"
1708
+ }, Mi = { key: 1 }, Ni = "__actions__", Pi = "__drag__", Fi = "table-entity__drag-handle", Ii = /*#__PURE__*/ f(/* @__PURE__ */ k({
1706
1709
  __name: "index",
1707
1710
  props: {
1708
1711
  columns: { default: () => [] },
@@ -1815,105 +1818,105 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1815
1818
  50,
1816
1819
  100
1817
1820
  ];
1818
- }), p = se(), { hasAccessByCodes: m } = pn(), h = z([]), g = z(/* @__PURE__ */ new Set()), _ = z(!1), v = z([...r.defaultExpandedRowKeys ?? []]), y = z(), { width: T } = _t(y), E = ne({
1821
+ }), p = ce(), { hasAccessByCodes: m } = pn(), h = z([]), g = z(/* @__PURE__ */ new Set()), _ = z(!1), v = z([...r.defaultExpandedRowKeys ?? []]), y = z(), { width: T } = _t(y), O = ne({
1819
1822
  current_page: r.current_page,
1820
1823
  per_page: r.per_page
1821
- }), O = b(() => Math.max(1, Math.floor(r.width ?? T.value))), k = b(() => r.total == null ? l.value : Number(r.total)), A = b(() => r.showColumnSettings || typeof r.data == "function");
1822
- function M() {
1823
- i("refresh"), nt();
1824
+ }), k = b(() => Math.max(1, Math.floor(r.width ?? T.value))), A = b(() => r.total == null ? l.value : Number(r.total)), M = b(() => r.showColumnSettings || typeof r.data == "function");
1825
+ function N() {
1826
+ i("refresh"), rt();
1824
1827
  }
1825
- let N = b(() => r.columns.filter(Boolean).map((e) => ({
1828
+ let ee = b(() => r.columns.filter(Boolean).map((e) => ({
1826
1829
  ...e,
1827
1830
  dataKey: e.dataKey ?? e.dataIndex
1828
- }))), ee = b(() => N.value.filter((e) => e.type === "listExpand")), I = b(() => !r.tree && ee.value.length > 0);
1829
- function te(e) {
1831
+ }))), te = b(() => ee.value.filter((e) => e.type === "listExpand")), L = b(() => !r.tree && te.value.length > 0);
1832
+ function B(e) {
1830
1833
  let t = new Set(g.value);
1831
1834
  t.has(e) ? t.delete(e) : t.add(e), g.value = t;
1832
1835
  }
1833
- let B = b(() => Ei(N.value, p, {
1836
+ let re = b(() => Ei(ee.value, p, {
1834
1837
  expandedKeys: g.value,
1835
- onToggle: te,
1838
+ onToggle: B,
1836
1839
  rowKey: r.rowKey ?? "id"
1837
- })), re = r.columns.find((e) => e.sortOrder), U = z({
1838
- field: re && String(re.dataKey ?? re.dataIndex ?? re.key ?? "") || void 0,
1839
- order: re?.sortOrder
1840
+ })), ie = r.columns.find((e) => e.sortOrder), U = z({
1841
+ field: ie && String(ie.dataKey ?? ie.dataIndex ?? ie.key ?? "") || void 0,
1842
+ order: ie?.sortOrder
1840
1843
  });
1841
- function ie(e) {
1844
+ function ae(e) {
1842
1845
  let t = e.dataKey ?? e.dataIndex ?? e.key;
1843
1846
  return t == null ? void 0 : String(t);
1844
1847
  }
1845
- function ae(e) {
1848
+ function oe(e) {
1846
1849
  if (!e.sortable && !e.sortOrder) return;
1847
- let t = ie(e);
1850
+ let t = ae(e);
1848
1851
  if (!t) return;
1849
1852
  let n = U.value.field === t && U.value.order === "asc" ? "desc" : "asc";
1850
1853
  U.value = {
1851
1854
  field: t,
1852
1855
  order: n
1853
- }, E.current_page === 1 ? (oe(), typeof r.data == "function" && nt()) : (E.current_page = 1, i("update:current_page", 1), i("update:page", 1), oe());
1856
+ }, O.current_page === 1 ? (se(), typeof r.data == "function" && rt()) : (O.current_page = 1, i("update:current_page", 1), i("update:page", 1), se());
1854
1857
  }
1855
- function oe() {
1858
+ function se() {
1856
1859
  i("change", {
1857
- current_page: E.current_page,
1858
- page: E.current_page,
1859
- per_page: E.per_page,
1860
+ current_page: O.current_page,
1861
+ page: O.current_page,
1862
+ per_page: O.per_page,
1860
1863
  sortField: U.value.field,
1861
1864
  sortOrder: U.value.order
1862
1865
  });
1863
1866
  }
1864
- let K = yr(B), ce = gr(B), le = ce.orderedItems, de = ce.setFixed;
1865
- ce.reset;
1866
- function fe() {
1867
- K.reset(), ce.reset();
1867
+ let K = yr(re), le = gr(re), de = le.orderedItems, fe = le.setFixed;
1868
+ le.reset;
1869
+ function X() {
1870
+ K.reset(), le.reset();
1868
1871
  }
1869
- let { applyColumnWidths: X, resizeLineStyle: pe, onViewportMouseDown: me } = vr(r.minColumnWidth), he = b(() => {
1870
- let e = r.showColumnSettings ? K.visibleColumns.value : B.value;
1871
- return ce.applyFixed(K.applyAlign(X(e)));
1872
- }), ge = b(() => {
1872
+ let { applyColumnWidths: pe, resizeLineStyle: me, onViewportMouseDown: he } = vr(r.minColumnWidth), ge = b(() => {
1873
+ let e = r.showColumnSettings ? K.visibleColumns.value : re.value;
1874
+ return le.applyFixed(K.applyAlign(pe(e)));
1875
+ }), _e = b(() => {
1873
1876
  if (!r.tree) return;
1874
1877
  if (r.expandColumnKey) return r.expandColumnKey;
1875
- let e = B.value.find((e) => {
1878
+ let e = re.value.find((e) => {
1876
1879
  let t = e.key ?? e.dataKey;
1877
1880
  return t != null && String(t) !== "";
1878
1881
  }), t = e?.key ?? e?.dataKey;
1879
1882
  return t == null ? void 0 : String(t);
1880
- }), _e = b(() => r.expandedRowKeys ?? v.value), Se = b(() => !r.tree || r.treeChildrenKey === "children" ? h.value : it(h.value, r.treeChildrenKey));
1881
- function Ce(e) {
1882
- let t = r.rowKey ?? "id", n = r.treeChildrenKey ?? "children", i = ee.value.map((e) => mi(e));
1883
+ }), Se = b(() => r.expandedRowKeys ?? v.value), Ce = b(() => !r.tree || r.treeChildrenKey === "children" ? h.value : at(h.value, r.treeChildrenKey));
1884
+ function we(e) {
1885
+ let t = r.rowKey ?? "id", n = r.treeChildrenKey ?? "children", i = te.value.map((e) => mi(e));
1883
1886
  return e.map((e) => {
1884
1887
  let r = i.map((n) => g.value.has(hi(e[t], n)) ? "1" : "0").join(""), a = {
1885
1888
  ...e,
1886
1889
  __measureKey: `${e[t]}:${r}`
1887
1890
  };
1888
- return Array.isArray(e[n]) && (a[n] = Ce(e[n])), a;
1891
+ return Array.isArray(e[n]) && (a[n] = we(e[n])), a;
1889
1892
  });
1890
1893
  }
1891
- let we = b(() => I.value ? Ce(Se.value) : Se.value), Te = b(() => r.tree ? at(Se.value, _e.value) : h.value), Ee = b(() => r.tree ? at(Se.value) : h.value);
1894
+ let Te = b(() => L.value ? we(Ce.value) : Ce.value), Ee = b(() => r.tree ? ot(Ce.value, Se.value) : h.value), Q = b(() => r.tree ? ot(Ce.value) : h.value);
1892
1895
  q(() => r.current_page, (e) => {
1893
- E.current_page = e;
1896
+ O.current_page = e;
1894
1897
  }), q(() => r.per_page, (e) => {
1895
- E.per_page = e;
1898
+ O.per_page = e;
1896
1899
  }), q(() => r.data, async () => {
1897
- await nt();
1900
+ await rt();
1898
1901
  }, {
1899
1902
  deep: !0,
1900
1903
  immediate: !0
1901
- }), q(() => [E.current_page, E.per_page], async () => {
1902
- typeof r.data == "function" && await nt();
1904
+ }), q(() => [O.current_page, O.per_page], async () => {
1905
+ typeof r.data == "function" && await rt();
1903
1906
  }), q(() => r.expandedRowKeys, (e) => {
1904
1907
  e && (v.value = [...e]);
1905
1908
  }, { immediate: !0 });
1906
- let { selectionColumn: Q, rowEventHandlers: De, clearSelection: $, getSelectedRows: ke, getSelectedCount: Ae, setSelectedKeys: je } = Or(r, i, Te, Ee);
1907
- function Me() {
1909
+ let { selectionColumn: De, rowEventHandlers: $, clearSelection: ke, getSelectedRows: Ae, getSelectedCount: je, setSelectedKeys: Me } = Or(r, i, Ee, Q);
1910
+ function Ne() {
1908
1911
  return r.importDialog ? (a.value = !0, !0) : !1;
1909
1912
  }
1910
- function Ne(e) {
1911
- i("importSuccess", e), nt();
1912
- }
1913
1913
  function Pe(e) {
1914
+ i("importSuccess", e), rt();
1915
+ }
1916
+ function Fe(e) {
1914
1917
  i("importError", e);
1915
1918
  }
1916
- let Fe = Symbol("table-entity-root-parent"), Ie = b(() => r.rowDraggable), Le = b(() => r.tree && ge.value ? at(Se.value, _e.value) : r.tree ? Se.value : h.value), Re = b(() => {
1919
+ let Ie = Symbol("table-entity-root-parent"), Le = b(() => r.rowDraggable), Re = b(() => r.tree && _e.value ? ot(Ce.value, Se.value) : r.tree ? Ce.value : h.value), ze = b(() => {
1917
1920
  let e = /* @__PURE__ */ new Map(), t = r.rowKey ?? "id", n = r.treeChildrenKey ?? "children";
1918
1921
  function i(r, a) {
1919
1922
  for (let o of r) {
@@ -1923,9 +1926,9 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1923
1926
  Array.isArray(s) && i(s, r);
1924
1927
  }
1925
1928
  }
1926
- return i(h.value, Fe), e;
1929
+ return i(h.value, Ie), e;
1927
1930
  });
1928
- function ze(e, t, n, r, i, a = null) {
1931
+ function Ve(e, t, n, r, i, a = null) {
1929
1932
  let o = e.findIndex((e) => e[r] === t), s = e.findIndex((e) => e[r] === n);
1930
1933
  if (o >= 0 && s >= 0 && o !== s) return {
1931
1934
  newIndex: s,
@@ -1936,7 +1939,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1936
1939
  for (let a = 0; a < e.length; a += 1) {
1937
1940
  let o = e[a], s = o[i];
1938
1941
  if (!Array.isArray(s)) continue;
1939
- let c = ze(s, t, n, r, i, o[r] ?? null);
1942
+ let c = Ve(s, t, n, r, i, o[r] ?? null);
1940
1943
  if (c) return {
1941
1944
  ...c,
1942
1945
  rows: e.map((e, t) => t === a ? {
@@ -1947,17 +1950,17 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1947
1950
  }
1948
1951
  return null;
1949
1952
  }
1950
- let { draggingIndex: Ve, onPointerDown: Ue, overIndex: We } = Er({
1953
+ let { draggingIndex: Ue, onPointerDown: We, overIndex: Ge } = Er({
1951
1954
  canDrop: (e, t) => {
1952
1955
  if (!r.tree) return !0;
1953
- let n = r.rowKey ?? "id", i = Re.value, a = e[n], o = t[n];
1956
+ let n = r.rowKey ?? "id", i = ze.value, a = e[n], o = t[n];
1954
1957
  return a != null && o != null && i.has(a) && i.has(o) && i.get(a) === i.get(o);
1955
1958
  },
1956
- getHandle: () => r.rowDragHandle || `.${Ni}`,
1959
+ getHandle: () => r.rowDragHandle || `.${Fi}`,
1957
1960
  getRoot: () => y.value,
1958
1961
  getRowHeight: () => r.rowHeight,
1959
- getRows: () => Le.value,
1960
- isEnabled: () => Ie.value,
1962
+ getRows: () => Re.value,
1963
+ isEnabled: () => Le.value,
1961
1964
  isTree: () => r.tree,
1962
1965
  isRowDisabled: (e) => r.rowDragDisabled?.(e) ?? !1,
1963
1966
  moveRows: (e, t, n, i) => {
@@ -1969,61 +1972,61 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
1969
1972
  rows: e
1970
1973
  });
1971
1974
  }
1972
- let a = r.rowKey ?? "id", o = ze(h.value, e[a], t[a], a, r.treeChildrenKey ?? "children");
1975
+ let a = r.rowKey ?? "id", o = Ve(h.value, e[a], t[a], a, r.treeChildrenKey ?? "children");
1973
1976
  return o ? (h.value = o.rows, o) : null;
1974
1977
  },
1975
1978
  onSort: (e) => i("rowSort", e)
1976
1979
  });
1977
- function Ge({ rowData: e, rowIndex: t }) {
1978
- if (!Ie.value) return "";
1980
+ function Ke({ rowData: e, rowIndex: t }) {
1981
+ if (!Le.value) return "";
1979
1982
  let n = [];
1980
- return r.rowDragDisabled?.(e) && n.push("table-entity__row--drag-disabled"), Ve.value != null && We.value === t && We.value !== Ve.value && n.push("table-entity__row--drop-target"), n.join(" ");
1983
+ return r.rowDragDisabled?.(e) && n.push("table-entity__row--drag-disabled"), Ue.value != null && Ge.value === t && Ge.value !== Ue.value && n.push("table-entity__row--drop-target"), n.join(" ");
1981
1984
  }
1982
- function Ke({ rowData: e, rowIndex: t }) {
1983
- if (!Ie.value) return {};
1985
+ function qe({ rowData: e, rowIndex: t }) {
1986
+ if (!Le.value) return {};
1984
1987
  let n = e?.[r.rowKey ?? "id"];
1985
1988
  return {
1986
1989
  "data-row-index": t,
1987
1990
  "data-row-key": String(n ?? t)
1988
1991
  };
1989
1992
  }
1990
- let qe = b(() => ({
1991
- key: Mi,
1992
- dataKey: Mi,
1993
+ let Je = b(() => ({
1994
+ key: Pi,
1995
+ dataKey: Pi,
1993
1996
  title: "",
1994
1997
  width: 40,
1995
1998
  cellRenderer: ({ rowData: e }) => r.rowDragDisabled?.(e) ? null : j("span", {
1996
- class: Ni,
1999
+ class: Fi,
1997
2000
  title: u("components.tableEntity.dragSort")
1998
2001
  }, j(Z, { size: 16 }, () => j(ct)))
1999
2002
  }));
2000
- function Je(e) {
2003
+ function Ye(e) {
2001
2004
  if (!e || !r.permissionCode) return;
2002
2005
  let t = e === "delete" ? "remove" : e === "view" ? "query" : e;
2003
2006
  return `${r.permissionCode}:${t}`;
2004
2007
  }
2005
- function Ye(e) {
2006
- let t = Je(e);
2008
+ function Xe(e) {
2009
+ let t = Ye(e);
2007
2010
  return !t || m([t]);
2008
2011
  }
2009
- let Xe = b(() => {
2012
+ let Ze = b(() => {
2010
2013
  let e = /* @__PURE__ */ new Set();
2011
- for (let t of r.actions ?? []) Ye(t) && e.add(t);
2012
- for (let t of r.pushActions ?? []) t.name && Ye(t.name) && e.add(t.name);
2014
+ for (let t of r.actions ?? []) Xe(t) && e.add(t);
2015
+ for (let t of r.pushActions ?? []) t.name && Xe(t.name) && e.add(t.name);
2013
2016
  return e;
2014
2017
  });
2015
- function Ze(e, t) {
2016
- let n = Je(t), r = H("access");
2018
+ function Qe(e, t) {
2019
+ let n = Ye(t), r = H("access");
2017
2020
  return !n || !r ? e : ue(e, [[r, [n]]]);
2018
2021
  }
2019
- let Qe = b(() => 50), $e = b(() => {
2022
+ let $e = b(() => 50), et = b(() => {
2020
2023
  if (!r.showActions) return null;
2021
- let e = Xe.value;
2024
+ let e = Ze.value;
2022
2025
  return {
2023
- key: ji,
2024
- dataKey: ji,
2026
+ key: Ni,
2027
+ dataKey: Ni,
2025
2028
  title: r.actionColumnTitle || u("components.tableEntity.action"),
2026
- width: Qe.value,
2029
+ width: $e.value,
2027
2030
  fixed: "right",
2028
2031
  cellRenderer: (t) => {
2029
2032
  let n = p.actionsCol;
@@ -2052,7 +2055,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2052
2055
  function s(e, n = !0) {
2053
2056
  if (e.component) {
2054
2057
  let r;
2055
- return r = typeof e.component == "function" ? e.component({ row: t.rowData }) : j(e.component, { row: t.rowData }), n ? Ze(r, e.name) : r;
2058
+ return r = typeof e.component == "function" ? e.component({ row: t.rowData }) : j(e.component, { row: t.rowData }), n ? Qe(r, e.name) : r;
2056
2059
  }
2057
2060
  let r = j(Y, {
2058
2061
  type: e.type,
@@ -2063,7 +2066,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2063
2066
  row: t.rowData
2064
2067
  })
2065
2068
  }, () => e.label);
2066
- return n ? Ze(r, e.name) : r;
2069
+ return n ? Qe(r, e.name) : r;
2067
2070
  }
2068
2071
  let l = o.length > 1 ? o : [], d = (l.length > 0 ? [] : o).map((e) => s(e));
2069
2072
  if (l.length > 0) {
@@ -2076,7 +2079,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2076
2079
  size: "small",
2077
2080
  title: u("components.tableEntity.moreActions")
2078
2081
  }, () => "..."),
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, {
2082
+ dropdown: () => j(xe, {}, () => l.map((e, n) => e.component ? Qe(j(be, { key: e.name ?? `component-${n}` }, () => s(e, !1)), e.name) : Qe(j(be, {
2080
2083
  key: e.name,
2081
2084
  onClick: () => i("handle-action", {
2082
2085
  action: e.name,
@@ -2093,13 +2096,13 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2093
2096
  return j("div", { class: "table-entity__actions" }, d);
2094
2097
  }
2095
2098
  };
2096
- }), et = b(() => {
2099
+ }), tt = b(() => {
2097
2100
  let e = [];
2098
- return Ie.value && !r.rowDragHandle && e.push(qe.value), r.selectable && e.push(Q.value), e.push(...he.value), $e.value && e.push($e.value), rt(e, O.value);
2101
+ return Le.value && !r.rowDragHandle && e.push(Je.value), r.selectable && e.push(De.value), e.push(...ge.value), et.value && e.push(et.value), it(e, k.value);
2099
2102
  });
2100
- function tt(e) {
2103
+ function nt(e) {
2101
2104
  return e.map((e) => {
2102
- let t = e.headerCellRenderer, n = ie(e), r = U.value.field === n, i = !!(e.sortable || e.sortOrder), a = i && r ? j("span", { class: ["table-entity__sort-arrow", U.value.order === "desc" ? "table-entity__sort-arrow--desc" : "table-entity__sort-arrow--asc"] }) : i ? j("span", { class: "table-entity__sort-icons" }, [j("span", { class: "table-entity__sort-arrow--asc" }), j("span", { class: "table-entity__sort-arrow--desc" })]) : null;
2105
+ let t = e.headerCellRenderer, n = ae(e), r = U.value.field === n, i = !!(e.sortable || e.sortOrder), a = i && r ? j("span", { class: ["table-entity__sort-arrow", U.value.order === "desc" ? "table-entity__sort-arrow--desc" : "table-entity__sort-arrow--asc"] }) : i ? j("span", { class: "table-entity__sort-icons" }, [j("span", { class: "table-entity__sort-arrow--asc" }), j("span", { class: "table-entity__sort-arrow--desc" })]) : null;
2103
2106
  return {
2104
2107
  ...e,
2105
2108
  width: e.width ?? 120,
@@ -2114,22 +2117,22 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2114
2117
  cursor: i ? "pointer" : void 0
2115
2118
  },
2116
2119
  onClick: i ? (t) => {
2117
- t.stopPropagation(), ae(e);
2120
+ t.stopPropagation(), oe(e);
2118
2121
  } : void 0
2119
2122
  }, [t ? t(n) : e.title, a])
2120
2123
  };
2121
2124
  });
2122
2125
  }
2123
- async function nt() {
2126
+ async function rt() {
2124
2127
  if (Array.isArray(r.data)) h.value = [...r.data], l.value = h.value.length;
2125
2128
  else if (typeof r.data != "function") h.value = [];
2126
2129
  else {
2127
2130
  _.value = !0;
2128
2131
  try {
2129
2132
  let e = await r.data({
2130
- current_page: E.current_page,
2131
- page: E.current_page,
2132
- per_page: E.per_page,
2133
+ current_page: O.current_page,
2134
+ page: O.current_page,
2135
+ per_page: O.per_page,
2133
2136
  query: r.query,
2134
2137
  sortField: U.value.field,
2135
2138
  sortOrder: U.value.order
@@ -2140,18 +2143,18 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2140
2143
  }
2141
2144
  }
2142
2145
  }
2143
- function rt(e, t) {
2146
+ function it(e, t) {
2144
2147
  if (e.length === 0 || t <= 1) return e;
2145
2148
  let n = e.map((e) => ({
2146
2149
  ...e,
2147
2150
  width: Number(e.width ?? 120)
2148
2151
  })), r = n.reduce((e, t) => e + Number(t.width ?? 0), 0);
2149
2152
  if (r >= t) return n;
2150
- let i = n.filter((e) => e.dataKey !== ji && e.dataKey !== "__sel__" && e.dataKey !== Mi);
2153
+ let i = n.filter((e) => e.dataKey !== Ni && e.dataKey !== "__sel__" && e.dataKey !== Pi);
2151
2154
  if (i.length === 0) return n;
2152
2155
  let a = t - r, o = i.reduce((e, t) => e + Number(t.width ?? 0), 0);
2153
2156
  return n.map((e) => {
2154
- if (e.dataKey === ji || e.dataKey === "__sel__" || e.dataKey === Mi) return e;
2157
+ if (e.dataKey === Ni || e.dataKey === "__sel__" || e.dataKey === Pi) return e;
2155
2158
  let t = Number(e.width ?? 120);
2156
2159
  return {
2157
2160
  ...e,
@@ -2159,16 +2162,16 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2159
2162
  };
2160
2163
  });
2161
2164
  }
2162
- function it(e, t = "children") {
2165
+ function at(e, t = "children") {
2163
2166
  return e.map((e) => {
2164
2167
  let n = e[t];
2165
2168
  return Array.isArray(n) ? {
2166
2169
  ...e,
2167
- children: it(n, t)
2170
+ children: at(n, t)
2168
2171
  } : e;
2169
2172
  });
2170
2173
  }
2171
- function at(e, t) {
2174
+ function ot(e, t) {
2172
2175
  let n = [], i = t ? new Set(t) : void 0, a = r.rowKey ?? "id";
2173
2176
  function o(e) {
2174
2177
  e.forEach((e) => {
@@ -2179,45 +2182,45 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2179
2182
  }
2180
2183
  return o(e), n;
2181
2184
  }
2182
- function ot(e) {
2183
- v.value = [...e], i("update:expandedRowKeys", [...e]);
2184
- }
2185
2185
  function st(e) {
2186
- ot(e);
2186
+ v.value = [...e], i("update:expandedRowKeys", [...e]);
2187
2187
  }
2188
2188
  function ut(e) {
2189
- ot(e), i("expandedRowsChange", [...e]);
2189
+ st(e);
2190
2190
  }
2191
2191
  function dt(e) {
2192
- i("rowExpand", e);
2192
+ st(e), i("expandedRowsChange", [...e]);
2193
2193
  }
2194
2194
  function pt(e) {
2195
- E.current_page = e, i("update:current_page", e), i("pageChange", e), oe();
2195
+ i("rowExpand", e);
2196
2196
  }
2197
2197
  function mt(e) {
2198
- E.per_page = e, i("update:per_page", e), oe();
2198
+ O.current_page = e, i("update:current_page", e), i("pageChange", e), se();
2199
+ }
2200
+ function ht(e) {
2201
+ O.per_page = e, i("update:per_page", e), se();
2199
2202
  }
2200
- async function ht(e) {
2201
- e != null && E.current_page !== e ? (E.current_page = e, i("update:current_page", e), oe()) : await nt();
2203
+ async function gt(e) {
2204
+ e != null && O.current_page !== e ? (O.current_page = e, i("update:current_page", e), se()) : await rt();
2202
2205
  }
2203
2206
  return t({
2204
- clearSelection: $,
2205
- getSelectedRows: ke,
2206
- getSelectedCount: Ae,
2207
- setSelectedKeys: je,
2208
- openImport: Me,
2209
- reload: ht
2207
+ clearSelection: ke,
2208
+ getSelectedRows: Ae,
2209
+ getSelectedCount: je,
2210
+ setSelectedKeys: Me,
2211
+ openImport: Ne,
2212
+ reload: gt
2210
2213
  }), (t, n) => {
2211
2214
  let i = H("loading");
2212
2215
  return R(), C("div", { class: F(["table-entity", {
2213
2216
  "table-entity--large-row": r.rowHeight > 40,
2214
- "table-entity--dynamic-row": I.value
2217
+ "table-entity--dynamic-row": L.value
2215
2218
  }]) }, [
2216
- n[5] ||= w("div", { class: "flex justify-between mb-1" }, null, -1),
2219
+ n[6] ||= w("div", { class: "flex justify-between mb-1" }, null, -1),
2217
2220
  w("div", {
2218
2221
  class: "table-entity__toolbar",
2219
- style: L({ width: `${e.width}px` })
2220
- }, [w("div", Di, [w("div", Oi, [V(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", ki, [
2222
+ style: I({ width: `${e.width}px` })
2223
+ }, [w("div", Di, [w("div", Oi, [V(t.$slots, "buttons", {}, void 0, !0)])]), M.value ? (R(), C("div", ki, [
2221
2224
  D(G(He), {
2222
2225
  content: G(u)("components.tableEntity.refresh"),
2223
2226
  placement: "top"
@@ -2227,7 +2230,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2227
2230
  circle: "",
2228
2231
  size: "small",
2229
2232
  title: G(u)("components.tableEntity.refresh"),
2230
- onClick: M
2233
+ onClick: N
2231
2234
  }, null, 8, ["icon", "title"])]),
2232
2235
  _: 1
2233
2236
  }, 8, ["content"]),
@@ -2254,13 +2257,13 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2254
2257
  }, {
2255
2258
  default: J(() => [D(hr, {
2256
2259
  settings: G(K).orderedSettings.value,
2257
- "fixed-items": G(le),
2260
+ "fixed-items": G(de),
2258
2261
  onToggle: G(K).toggleColumn,
2259
2262
  onSetHeaderAlign: G(K).setHeaderAlign,
2260
2263
  onSetContentAlign: G(K).setContentAlign,
2261
2264
  onSetWidth: G(K).setWidth,
2262
- onSetFixed: G(de),
2263
- onReset: fe,
2265
+ onSetFixed: G(fe),
2266
+ onReset: X,
2264
2267
  "onUpdate:settings": G(K).reorderSettings
2265
2268
  }, null, 8, [
2266
2269
  "settings",
@@ -2280,29 +2283,29 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2280
2283
  ref_key: "tableViewportRef",
2281
2284
  ref: y,
2282
2285
  class: "table-entity__viewport",
2283
- onMousedown: n[2] ||= (...e) => G(me) && G(me)(...e),
2284
- onPointerdown: n[3] ||= (...e) => G(Ue) && G(Ue)(...e)
2286
+ onMousedown: n[2] ||= (...e) => G(he) && G(he)(...e),
2287
+ onPointerdown: n[3] ||= (...e) => G(We) && G(We)(...e)
2285
2288
  }, [D(G(Be), {
2286
- columns: tt(et.value),
2287
- data: we.value,
2288
- width: O.value,
2289
+ columns: nt(tt.value),
2290
+ data: Te.value,
2291
+ width: k.value,
2289
2292
  height: r.height,
2290
2293
  "row-height": r.rowHeight,
2291
- "row-class": Ge,
2292
- "row-props": Ke,
2294
+ "row-class": Ke,
2295
+ "row-props": qe,
2293
2296
  cache: r.cache,
2294
- "estimated-row-height": I.value ? r.rowHeight : void 0,
2295
- "row-key": I.value ? "__measureKey" : r.rowKey,
2296
- "expand-column-key": ge.value,
2297
- "expanded-row-keys": _e.value,
2297
+ "estimated-row-height": L.value ? r.rowHeight : void 0,
2298
+ "row-key": L.value ? "__measureKey" : r.rowKey,
2299
+ "expand-column-key": _e.value,
2300
+ "expanded-row-keys": Se.value,
2298
2301
  "default-expanded-row-keys": r.defaultExpandedRowKeys,
2299
2302
  "indent-size": r.indentSize,
2300
2303
  "icon-size": r.iconSize,
2301
- "row-event-handlers": r.selectable ? G(De) : void 0,
2304
+ "row-event-handlers": r.selectable ? G($) : void 0,
2302
2305
  fixed: "",
2303
- "onUpdate:expandedRowKeys": st,
2304
- onExpandedRowsChange: ut,
2305
- onRowExpand: dt
2306
+ "onUpdate:expandedRowKeys": ut,
2307
+ onExpandedRowsChange: dt,
2308
+ onRowExpand: pt
2306
2309
  }, null, 8, [
2307
2310
  "columns",
2308
2311
  "data",
@@ -2322,16 +2325,19 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2322
2325
  r.resizable ? (R(), C("div", {
2323
2326
  key: 0,
2324
2327
  class: "table-entity__resize-line",
2325
- style: L(G(pe))
2328
+ style: I(G(me))
2326
2329
  }, null, 4)) : S("", !0),
2327
- r.showPagination ? (R(), C("div", Ai, [w("div", null, W(G(u)("components.tableEntity.selectedCount", { count: G(Ae)() })), 1), D(G(Oe), P({
2328
- "current-page": E.current_page,
2329
- "page-size": E.per_page,
2330
- total: k.value
2330
+ r.showPagination ? (R(), C("div", Ai, [G(je)() > 0 ? (R(), C("div", ji, [n[5] ||= w("span", {
2331
+ class: "size-2 rounded-full bg-[var(--el-color-primary)] shadow-[0_0_0_3px_var(--el-color-primary-light-8)]",
2332
+ "aria-hidden": "true"
2333
+ }, null, -1), E(" " + W(G(u)("components.tableEntity.selectedCount", { count: G(je)() })), 1)])) : (R(), C("div", Mi)), D(G(Oe), P({
2334
+ "current-page": O.current_page,
2335
+ "page-size": O.per_page,
2336
+ total: A.value
2331
2337
  }, G(d), {
2332
2338
  "page-sizes": f.value,
2333
- onSizeChange: mt,
2334
- onCurrentChange: pt
2339
+ onSizeChange: ht,
2340
+ onCurrentChange: mt
2335
2341
  }), null, 16, [
2336
2342
  "current-page",
2337
2343
  "page-size",
@@ -2356,8 +2362,8 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2356
2362
  "parse-file": r.importDialog.parseFile,
2357
2363
  "submit-import": r.importDialog.submitImport,
2358
2364
  "reset-on-close": r.importDialog.resetOnClose,
2359
- onSuccess: Ne,
2360
- onError: Pe
2365
+ onSuccess: Pe,
2366
+ onError: Fe
2361
2367
  }, null, 8, [
2362
2368
  "modelValue",
2363
2369
  "api",
@@ -2378,10 +2384,10 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2378
2384
  ], 2);
2379
2385
  };
2380
2386
  }
2381
- }), [["__scopeId", "data-v-7026ed16"]]), Fi = { class: "dialog-list" }, Ii = { class: "dialog-list__bar" }, Li = {
2387
+ }), [["__scopeId", "data-v-b67b4ebe"]]), Li = { class: "dialog-list" }, Ri = { class: "dialog-list__bar" }, zi = {
2382
2388
  key: 0,
2383
2389
  class: "dialog-list__count"
2384
- }, Ri = { class: "dialog-list__table" }, zi = /*#__PURE__*/ f(/* @__PURE__ */ k({
2390
+ }, Bi = { class: "dialog-list__table" }, Vi = /*#__PURE__*/ f(/* @__PURE__ */ k({
2385
2391
  __name: "index",
2386
2392
  props: {
2387
2393
  visible: { type: Boolean },
@@ -2473,7 +2479,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2473
2479
  "cancel-text": G(u)("components.dialogList.cancel"),
2474
2480
  "confirm-text": G(u)("components.dialogList.confirm")
2475
2481
  }, {
2476
- default: J(() => [w("div", Fi, [w("div", Ii, [D(i, {
2482
+ default: J(() => [w("div", Li, [w("div", Ri, [D(i, {
2477
2483
  modelValue: l.value,
2478
2484
  "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
2479
2485
  placeholder: G(u)("components.dialogList.placeholder"),
@@ -2487,7 +2493,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2487
2493
  onClick: y
2488
2494
  }, null, 8, ["icon"])]),
2489
2495
  _: 1
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, {
2496
+ }, 8, ["modelValue", "placeholder"]), O.value > 0 ? (R(), C("span", zi, W(G(u)("components.dialogList.selectedCount", { count: O.value })), 1)) : S("", !0)]), ue((R(), C("div", Bi, [D(Ii, {
2491
2497
  ref_key: "tableRef",
2492
2498
  ref: c,
2493
2499
  columns: e.columns,
@@ -2528,7 +2534,7 @@ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki
2528
2534
  }
2529
2535
  }), [["__scopeId", "data-v-34113a12"]]);
2530
2536
  // src/components/async-select/async-select.utils.ts
2531
- async function Bi({ activeValues: e, selectedValues: t, loadRows: n, resolveValue: r, toOption: i }) {
2537
+ async function Hi({ activeValues: e, selectedValues: t, loadRows: n, resolveValue: r, toOption: i }) {
2532
2538
  let a = e.filter((e) => !t.some((t) => String(t) === String(e)));
2533
2539
  if (a.length === 0) return [];
2534
2540
  let o = new Set(a.map(String)), s = await n(a), c = [];
@@ -2541,13 +2547,13 @@ async function Bi({ activeValues: e, selectedValues: t, loadRows: n, resolveValu
2541
2547
  return c;
2542
2548
  }
2543
2549
  // src/components/async-select/async-select.vue?vue&type=script&setup=true&lang.ts
2544
- var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui = ["src"], Wi = { class: "async-select__value-text" }, Gi = {
2550
+ var Ui = { class: "async-select" }, Wi = { class: "async-select__value" }, Gi = ["src"], Ki = { class: "async-select__value-text" }, qi = {
2545
2551
  key: 0,
2546
2552
  class: "async-select__option"
2547
- }, Ki = { class: "async-select__option-label" }, qi = ["src"], Ji = { class: "async-select__option-text" }, Yi = {
2553
+ }, Ji = { class: "async-select__option-label" }, Yi = ["src"], Xi = { class: "async-select__option-text" }, Zi = {
2548
2554
  key: 0,
2549
2555
  class: "async-select__option-desc"
2550
- }, Xi = ["title"], Zi = ["src", "alt"], Qi = /*@__PURE__*/ k({
2556
+ }, Qi = ["title"], $i = ["src", "alt"], ea = /*@__PURE__*/ k({
2551
2557
  __name: "async-select",
2552
2558
  props: {
2553
2559
  modelValue: {},
@@ -2620,7 +2626,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2620
2626
  l.value.find((t) => j(t.value, e.value)) || l.value.push(e);
2621
2627
  }
2622
2628
  }
2623
- let I = b(() => {
2629
+ let te = b(() => {
2624
2630
  let e = c.value.map((e) => {
2625
2631
  let t = A(e);
2626
2632
  return {
@@ -2636,7 +2642,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2636
2642
  q(o, (e) => {
2637
2643
  g.value || (c.value = e ?? [], p.value = !1);
2638
2644
  }, { immediate: !0 });
2639
- async function L(e = !1) {
2645
+ async function I(e = !1) {
2640
2646
  let t = m.value || void 0, n = t ?? "";
2641
2647
  if (!e && v === n) return;
2642
2648
  let r = _.get(n);
@@ -2653,7 +2659,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2653
2659
  _.get(n) === i && _.delete(n);
2654
2660
  }
2655
2661
  }
2656
- async function te() {
2662
+ async function L() {
2657
2663
  !f.value && p.value && await ne(d.value + 1);
2658
2664
  }
2659
2665
  async function ne(e, t = m.value || void 0) {
@@ -2674,10 +2680,10 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2674
2680
  }
2675
2681
  }
2676
2682
  async function B(e) {
2677
- h.value = e, e && g.value && c.value.length === 0 && await L();
2683
+ h.value = e, e && g.value && c.value.length === 0 && await I();
2678
2684
  }
2679
2685
  q([T, o], async ([e, t]) => {
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({
2686
+ e.length === 0 ? l.value = [] : (ee(t.filter((t) => e.some((e) => j(e, E(t)))).map(A)), g.value && r.fetcher && ee(await Hi({
2681
2687
  activeValues: e,
2682
2688
  selectedValues: l.value.map((e) => e.value),
2683
2689
  loadRows: (e) => r.fetcher({
@@ -2698,7 +2704,7 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2698
2704
  let t = r.multiple ? e.map((e) => E(e)) : e[0] ? E(e[0]) : null;
2699
2705
  i("update:modelValue", t), i("change", t, e);
2700
2706
  }
2701
- async function U(e) {
2707
+ async function ie(e) {
2702
2708
  if (r.fetcher) {
2703
2709
  let t = await r.fetcher(e);
2704
2710
  return {
@@ -2712,16 +2718,16 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2712
2718
  total: n.length
2713
2719
  };
2714
2720
  }
2715
- let ie = b(() => r.placeholder || u("components.asyncSelect.placeholder")), ae = b(() => r.dialogTitle || u("components.asyncSelect.placeholder"));
2721
+ let U = b(() => r.placeholder || u("components.asyncSelect.placeholder")), ae = b(() => r.dialogTitle || u("components.asyncSelect.placeholder"));
2716
2722
  return t({
2717
- reload: () => L(!0),
2723
+ reload: () => I(!0),
2718
2724
  allItems: c
2719
- }), (t, n) => (R(), C("div", Vi, [
2725
+ }), (t, n) => (R(), C("div", Ui, [
2720
2726
  D(G(Fe), P({
2721
2727
  modelValue: y.value,
2722
2728
  "onUpdate:modelValue": n[0] ||= (e) => y.value = e,
2723
2729
  class: "async-select__select",
2724
- options: I.value,
2730
+ options: te.value,
2725
2731
  loading: f.value,
2726
2732
  multiple: e.multiple,
2727
2733
  filterable: "",
@@ -2729,26 +2735,26 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2729
2735
  remote: g.value,
2730
2736
  "remote-show-suffix": "",
2731
2737
  "remote-method": g.value ? (e) => {
2732
- m.value !== e && (m.value = e, M(v) ? v.value = null : v = null), L();
2738
+ m.value !== e && (m.value = e, M(v) ? v.value = null : v = null), I();
2733
2739
  } : void 0,
2734
- placeholder: ie.value,
2740
+ placeholder: U.value,
2735
2741
  disabled: e.disabled
2736
2742
  }, t.$attrs, {
2737
2743
  onVisibleChange: B,
2738
- onEndReached: te
2744
+ onEndReached: L
2739
2745
  }), {
2740
- label: J((e) => [w("span", Hi, [e?.label?.flag ? (R(), C("img", {
2746
+ label: J((e) => [w("span", Wi, [e?.label?.flag ? (R(), C("img", {
2741
2747
  key: 0,
2742
2748
  class: "async-select__flag",
2743
2749
  src: e.label.flag,
2744
2750
  alt: ""
2745
- }, null, 8, Ui)) : S("", !0), w("span", Wi, W(e?.label?.label ?? ""), 1)])]),
2746
- default: J((e) => [e?.item ? (R(), C("div", Gi, [w("p", Ki, [e.item.label.flag ? (R(), C("img", {
2751
+ }, null, 8, Gi)) : S("", !0), w("span", Ki, W(e?.label?.label ?? ""), 1)])]),
2752
+ default: J((e) => [e?.item ? (R(), C("div", qi, [w("p", Ji, [e.item.label.flag ? (R(), C("img", {
2747
2753
  key: 0,
2748
2754
  class: "async-select__flag",
2749
2755
  src: e.item.label.flag,
2750
2756
  alt: ""
2751
- }, null, 8, qi)) : S("", !0), w("span", Ji, W(e.item.label.label), 1)]), e.item.label.subtitle ? (R(), C("p", Yi, W(e.item.label.subtitle), 1)) : S("", !0)])) : S("", !0)]),
2757
+ }, null, 8, Yi)) : S("", !0), w("span", Xi, W(e.item.label.label), 1)]), e.item.label.subtitle ? (R(), C("p", Zi, W(e.item.label.subtitle), 1)) : S("", !0)])) : S("", !0)]),
2752
2758
  _: 1
2753
2759
  }, 16, [
2754
2760
  "modelValue",
@@ -2771,16 +2777,16 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2771
2777
  default: J(() => [w("img", {
2772
2778
  src: G(fn),
2773
2779
  alt: G(u)("components.asyncSelect.more")
2774
- }, null, 8, Zi)]),
2780
+ }, null, 8, $i)]),
2775
2781
  _: 1
2776
- })], 42, Xi)) : S("", !0),
2777
- e.columns.length > 0 ? (R(), x(zi, {
2782
+ })], 42, Qi)) : S("", !0),
2783
+ e.columns.length > 0 ? (R(), x(Vi, {
2778
2784
  key: 1,
2779
2785
  visible: V.value,
2780
2786
  columns: e.columns,
2781
2787
  "model-value": e.modelValue,
2782
2788
  multiple: e.multiple,
2783
- fetcher: (e) => U(e),
2789
+ fetcher: (e) => ie(e),
2784
2790
  "row-key": e.valueKey,
2785
2791
  "dialog-title": ae.value,
2786
2792
  "per-page": e.perPage,
@@ -2798,26 +2804,26 @@ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui =
2798
2804
  ])) : S("", !0)
2799
2805
  ]));
2800
2806
  }
2801
- }), $i = /* @__PURE__ */ e({ default: () => ea }), ea = /*#__PURE__*/ f(Qi, [["__scopeId", "data-v-a1f5097a"]]), ta = { theme: { get cardShadow() {
2807
+ }), ta = /* @__PURE__ */ e({ default: () => na }), na = /*#__PURE__*/ f(ea, [["__scopeId", "data-v-a1f5097a"]]), ra = { theme: { get cardShadow() {
2802
2808
  return c().value;
2803
- } } }, na = /*#__PURE__*/ f(/* @__PURE__ */ k({
2809
+ } } }, ia = /*#__PURE__*/ f(/* @__PURE__ */ k({
2804
2810
  inheritAttrs: !1,
2805
2811
  __name: "index",
2806
2812
  setup(e) {
2807
- let t = b(() => ta.theme.cardShadow);
2813
+ let t = b(() => ra.theme.cardShadow);
2808
2814
  return (e, n) => (R(), x(G(X), P({ class: "box-card" }, e.$attrs, { shadow: t.value }), T({ _: 2 }, [B(e.$slots, (t, n) => ({
2809
2815
  name: n,
2810
- fn: J((t) => [V(e.$slots, n, I(A(t ?? {})), void 0, !0)])
2816
+ fn: J((t) => [V(e.$slots, n, te(A(t ?? {})), void 0, !0)])
2811
2817
  }))]), 1040, ["shadow"]));
2812
2818
  }
2813
- }), [["__scopeId", "data-v-ed977a22"]]), ra = /* @__PURE__ */ new Map();
2814
- function ia(e) {
2815
- ra.set(e.key, e);
2819
+ }), [["__scopeId", "data-v-ed977a22"]]), aa = /* @__PURE__ */ new Map();
2820
+ function oa(e) {
2821
+ aa.set(e.key, e);
2816
2822
  }
2817
- function aa(e) {
2818
- return ra.get(e);
2823
+ function sa(e) {
2824
+ return aa.get(e);
2819
2825
  }
2820
- function oa(e, { keyword: t, page: n, per_page: r }, i) {
2826
+ function ca(e, { keyword: t, page: n, per_page: r }, i) {
2821
2827
  let a = t?.trim().toLowerCase(), o = a ? e.filter((e) => i.some((t) => String(e[t] ?? "").toLowerCase().includes(a))) : e;
2822
2828
  return {
2823
2829
  items: o.slice((n - 1) * r, n * r),
@@ -2825,13 +2831,13 @@ function oa(e, { keyword: t, page: n, per_page: r }, i) {
2825
2831
  };
2826
2832
  }
2827
2833
  // src/components/schema-form/readonly-text.vue?vue&type=script&setup=true&lang.ts
2828
- var sa = { class: "readonly-text" }, ca = {
2834
+ var la = { class: "readonly-text" }, ua = {
2829
2835
  key: 0,
2830
2836
  class: "readonly-text__value"
2831
- }, la = {
2837
+ }, da = {
2832
2838
  key: 1,
2833
2839
  class: "readonly-text__empty"
2834
- }, ua = /*#__PURE__*/ f(/* @__PURE__ */ k({
2840
+ }, fa = /*#__PURE__*/ f(/* @__PURE__ */ k({
2835
2841
  __name: "readonly-text",
2836
2842
  props: {
2837
2843
  copyable: { type: Boolean },
@@ -2845,7 +2851,7 @@ var sa = { class: "readonly-text" }, ca = {
2845
2851
  async function o() {
2846
2852
  await n(i.value), Q.success(u("schemaForm.copied"));
2847
2853
  }
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), {
2854
+ return (e, t) => (R(), C("div", la, [i.value ? (R(), C("span", ua, W(i.value), 1)) : (R(), C("span", da, W(G(u)("schemaForm.empty")), 1)), a.value ? (R(), x(G(Z), {
2849
2855
  key: 2,
2850
2856
  class: "readonly-text__copy",
2851
2857
  title: G(u)("schemaForm.copy"),
@@ -2855,21 +2861,21 @@ var sa = { class: "readonly-text" }, ca = {
2855
2861
  _: 1
2856
2862
  }, 8, ["title"])) : S("", !0)]));
2857
2863
  }
2858
- }), [["__scopeId", "data-v-1f95eeac"]]), da = ie({});
2859
- function fa(e) {
2864
+ }), [["__scopeId", "data-v-1f95eeac"]]), pa = U({});
2865
+ function ma(e) {
2860
2866
  return typeof e == "object" && e && "component" in e && e.component ? e : { component: e };
2861
2867
  }
2862
- function pa(e) {
2863
- for (let [t, n] of Object.entries(e)) n && (da[t] = n);
2868
+ function ha(e) {
2869
+ for (let [t, n] of Object.entries(e)) n && (pa[t] = n);
2864
2870
  }
2865
- function ma(e) {
2871
+ function ga(e) {
2866
2872
  if (!e) return;
2867
- if (typeof e != "string") return fa(e);
2868
- let t = da[e];
2869
- return t ? fa(t) : void 0;
2873
+ if (typeof e != "string") return ma(e);
2874
+ let t = pa[e];
2875
+ return t ? ma(t) : void 0;
2870
2876
  }
2871
2877
  // src/components/schema-form/schema-form.util.ts
2872
- var ha = /* @__PURE__ */ new Set([
2878
+ var _a = /* @__PURE__ */ new Set([
2873
2879
  "async-select",
2874
2880
  "cascader",
2875
2881
  "checkbox",
@@ -2883,43 +2889,43 @@ var ha = /* @__PURE__ */ new Set([
2883
2889
  "switch",
2884
2890
  "upload"
2885
2891
  ]);
2886
- function ga(e) {
2887
- return ha.has(e.type);
2892
+ function va(e) {
2893
+ return _a.has(e.type);
2888
2894
  }
2889
- function _a(e) {
2895
+ function ya(e) {
2890
2896
  return e.type === "group";
2891
2897
  }
2892
- function va(e) {
2893
- return e.flatMap((e) => _a(e) ? e.children : [e]);
2898
+ function ba(e) {
2899
+ return e.flatMap((e) => ya(e) ? e.children : [e]);
2894
2900
  }
2895
- function ya(e, t) {
2901
+ function xa(e, t) {
2896
2902
  return typeof e == "function" ? e(t) : e === !0;
2897
2903
  }
2898
- function ba(e, t) {
2899
- return t.mode === "create" && e.hideOnCreate || t.mode === "edit" && e.hideOnEdit ? !0 : ya(e.hidden, t);
2904
+ function Sa(e, t) {
2905
+ return t.mode === "create" && e.hideOnCreate || t.mode === "edit" && e.hideOnEdit ? !0 : xa(e.hidden, t);
2900
2906
  }
2901
- function xa(e) {
2907
+ function Ca(e) {
2902
2908
  if (e.placeholder) return e.placeholder;
2903
2909
  let t = e.label || e.prop;
2904
- return ga(e) ? u("validation.selectField", { field: t }) : u("validation.enterField", { field: t });
2910
+ return va(e) ? u("validation.selectField", { field: t }) : u("validation.enterField", { field: t });
2905
2911
  }
2906
- function Sa(e, t) {
2912
+ function wa(e, t) {
2907
2913
  let n = e.rules ? [...e.rules] : [];
2908
- return ya(e.required, t) && n.unshift(e.translateConfig && [
2914
+ return xa(e.required, t) && n.unshift(e.translateConfig && [
2909
2915
  "rich-text",
2910
2916
  "text",
2911
2917
  "textarea"
2912
2918
  ].includes(e.type) ? {
2913
- message: xa(e),
2919
+ message: Ca(e),
2914
2920
  trigger: "change",
2915
2921
  validator: (t, n) => {
2916
2922
  let r = (e) => typeof e == "string" ? e.trim().length > 0 : typeof e == "number" || typeof e == "boolean" ? !0 : Array.isArray(e) ? e.some((e) => r(e)) : e && typeof e == "object" ? Object.values(e).some((e) => r(e)) : !1;
2917
- return n && typeof n == "object" && Object.values(n).some((e) => r(e)) || Error(xa(e));
2923
+ return n && typeof n == "object" && Object.values(n).some((e) => r(e)) || Error(Ca(e));
2918
2924
  }
2919
2925
  } : {
2920
2926
  required: !0,
2921
- message: xa(e),
2922
- trigger: ga(e) ? "change" : "blur"
2927
+ message: Ca(e),
2928
+ trigger: va(e) ? "change" : "blur"
2923
2929
  }), n.map((e) => {
2924
2930
  if (e.asyncValidator) {
2925
2931
  let n = e.asyncValidator;
@@ -2939,11 +2945,11 @@ function Sa(e, t) {
2939
2945
  });
2940
2946
  }
2941
2947
  // src/components/rich-text-editor/index.vue?vue&type=script&setup=true&lang.ts
2942
- var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disabled"], Oa = { value: "" }, ka = ["title"], Aa = ["title"], ja = ["title"], Ma = ["title"], Na = ["title"], Pa = ["title"], Fa = ["disabled"], Ia = ["value"], La = ["disabled"], Ra = ["value"], za = ["disabled"], Ba = { value: "paragraph" }, Va = { value: "h1" }, Ha = { value: "h2" }, Ua = { value: "h3" }, Wa = { value: "blockquote" }, Ga = ["title"], Ka = ["title"], qa = ["title"], Ja = ["title"], Ya = ["title"], Xa = ["title"], Za = ["title"], Qa = ["title"], $a = ["title"], eo = ["title"], to = ["title"], no = ["disabled"], ro = { value: "" }, io = { value: "insertTable" }, ao = { value: "addColumnBefore" }, oo = { value: "addColumnAfter" }, so = { value: "deleteColumn" }, co = { value: "addRowBefore" }, lo = { value: "addRowAfter" }, uo = { value: "deleteRow" }, fo = { value: "deleteTable" }, po = ["title"], mo = ["title"], ho = ["title"], go = ["title"], _o = ["title"], vo = [
2948
+ var Ta = ["title"], Ea = ["title"], Da = ["title"], Oa = ["title"], ka = ["disabled"], Aa = { value: "" }, ja = ["title"], Ma = ["title"], Na = ["title"], Pa = ["title"], Fa = ["title"], Ia = ["title"], La = ["disabled"], Ra = ["value"], za = ["disabled"], Ba = ["value"], Va = ["disabled"], Ha = { value: "paragraph" }, Ua = { value: "h1" }, Wa = { value: "h2" }, Ga = { value: "h3" }, Ka = { value: "blockquote" }, qa = ["title"], Ja = ["title"], Ya = ["title"], Xa = ["title"], Za = ["title"], Qa = ["title"], $a = ["title"], eo = ["title"], to = ["title"], no = ["title"], ro = ["title"], io = ["disabled"], ao = { value: "" }, oo = { value: "insertTable" }, so = { value: "addColumnBefore" }, co = { value: "addColumnAfter" }, lo = { value: "deleteColumn" }, uo = { value: "addRowBefore" }, fo = { value: "addRowAfter" }, po = { value: "deleteRow" }, mo = { value: "deleteTable" }, ho = ["title"], go = ["title"], _o = ["title"], vo = ["title"], yo = ["title"], bo = [
2943
2949
  "title",
2944
2950
  "disabled",
2945
2951
  "onClick"
2946
- ], yo = { key: 1 }, bo = ["readonly"], xo = /*@__PURE__*/ k({
2952
+ ], xo = { key: 1 }, So = ["readonly"], Co = /*@__PURE__*/ k({
2947
2953
  __name: "index",
2948
2954
  props: {
2949
2955
  editable: {
@@ -3102,11 +3108,11 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3102
3108
  e === "paragraph" && n.setParagraph().run(), e === "h1" && n.toggleHeading({ level: 1 }).run(), e === "h2" && n.toggleHeading({ level: 2 }).run(), e === "h3" && n.toggleHeading({ level: 3 }).run(), e === "blockquote" && n.toggleBlockquote().run();
3103
3109
  });
3104
3110
  }
3105
- function I() {
3111
+ function te() {
3106
3112
  p.value && p.value.getHTML() !== s.value && p.value.commands.setContent(s.value, { emitUpdate: !0 });
3107
3113
  }
3108
- function te() {
3109
- c.value ? I() : s.value = p.value?.getHTML() ?? r.modelValue, c.value = !c.value;
3114
+ function L() {
3115
+ c.value ? te() : s.value = p.value?.getHTML() ?? r.modelValue, c.value = !c.value;
3110
3116
  }
3111
3117
  function ne() {
3112
3118
  if (m.value) return;
@@ -3123,7 +3129,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3123
3129
  function H(e) {
3124
3130
  return /^(https?:|mailto:|tel:)/i.test(e) ? e : "https://" + e;
3125
3131
  }
3126
- function ie(e) {
3132
+ function U(e) {
3127
3133
  let t = e.target.value;
3128
3134
  N((e) => e.chain().focus().setColor(t).run());
3129
3135
  }
@@ -3134,11 +3140,11 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3134
3140
  function oe(e) {
3135
3141
  N((t) => t.chain().focus().setTextAlign(e).run());
3136
3142
  }
3137
- function K(e) {
3143
+ function se(e) {
3138
3144
  let t = e.target.value;
3139
3145
  t && N((e) => e.chain().focus().setLineHeight(t).run());
3140
3146
  }
3141
- function se(e) {
3147
+ function ce(e) {
3142
3148
  let t = e.target, n = t.value;
3143
3149
  t.value = "", n && N((e) => {
3144
3150
  let t = e.chain().focus();
@@ -3182,64 +3188,64 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3182
3188
  type: "button",
3183
3189
  title: G(u)("components.richTextEditor.undo"),
3184
3190
  onClick: n[0] ||= (e) => G(p).chain().focus().undo().run()
3185
- }, [D(G(Gt), { size: 17 })], 8, Ca),
3191
+ }, [D(G(Gt), { size: 17 })], 8, Ta),
3186
3192
  w("button", {
3187
3193
  type: "button",
3188
3194
  title: G(u)("components.richTextEditor.redo"),
3189
3195
  onClick: n[1] ||= (e) => G(p).chain().focus().redo().run()
3190
- }, [D(G(Vt), { size: 17 })], 8, wa),
3196
+ }, [D(G(Vt), { size: 17 })], 8, Ea),
3191
3197
  n[27] ||= w("span", { class: "rich-text-separator" }, null, -1),
3192
3198
  w("button", {
3193
3199
  type: "button",
3194
3200
  title: G(u)("components.richTextEditor.insertImage"),
3195
3201
  onClick: re
3196
- }, [D(G(kt), { size: 17 })], 8, Ta),
3202
+ }, [D(G(kt), { size: 17 })], 8, Da),
3197
3203
  w("label", {
3198
3204
  class: "rich-text-select-wrap rich-text-select-wrap--line",
3199
3205
  title: G(u)("components.richTextEditor.lineHeight")
3200
3206
  }, [D(G(jt), { size: 17 }), w("select", {
3201
3207
  disabled: m.value,
3202
- onChange: K
3208
+ onChange: se
3203
3209
  }, [
3204
- w("option", Oa, W(G(u)("components.richTextEditor.lineHeight")), 1),
3210
+ w("option", Aa, W(G(u)("components.richTextEditor.lineHeight")), 1),
3205
3211
  n[22] ||= w("option", { value: "1.2" }, "1.2", -1),
3206
3212
  n[23] ||= w("option", { value: "1.5" }, "1.5", -1),
3207
3213
  n[24] ||= w("option", { value: "1.75" }, "1.75", -1),
3208
3214
  n[25] ||= w("option", { value: "2" }, "2", -1)
3209
- ], 40, Da)], 8, Ea),
3215
+ ], 40, ka)], 8, Oa),
3210
3216
  n[28] ||= w("span", { class: "rich-text-separator" }, null, -1),
3211
3217
  w("button", {
3212
3218
  type: "button",
3213
3219
  class: F({ "is-active": X("bold") }),
3214
3220
  title: G(u)("components.richTextEditor.bold"),
3215
3221
  onClick: n[2] ||= (e) => G(p).chain().focus().toggleBold().run()
3216
- }, [D(G(Tt), { size: 17 })], 10, ka),
3222
+ }, [D(G(Tt), { size: 17 })], 10, ja),
3217
3223
  w("button", {
3218
3224
  type: "button",
3219
3225
  class: F({ "is-active": X("italic") }),
3220
3226
  title: G(u)("components.richTextEditor.italic"),
3221
3227
  onClick: n[3] ||= (e) => G(p).chain().focus().toggleItalic().run()
3222
- }, [D(G(Mt), { size: 17 })], 10, Aa),
3228
+ }, [D(G(Mt), { size: 17 })], 10, Ma),
3223
3229
  w("button", {
3224
3230
  type: "button",
3225
3231
  class: F({ "is-active": X("underline") }),
3226
3232
  title: G(u)("components.richTextEditor.underline"),
3227
3233
  onClick: n[4] ||= (e) => G(p).chain().focus().toggleUnderline().run()
3228
- }, [D(G(Wt), { size: 17 })], 10, ja),
3234
+ }, [D(G(Wt), { size: 17 })], 10, Na),
3229
3235
  w("button", {
3230
3236
  type: "button",
3231
3237
  class: F({ "is-active": X("strike") }),
3232
3238
  title: G(u)("components.richTextEditor.strike"),
3233
3239
  onClick: n[5] ||= (e) => G(p).chain().focus().toggleStrike().run()
3234
- }, [D(G(Ht), { size: 17 })], 10, Ma),
3240
+ }, [D(G(Ht), { size: 17 })], 10, Pa),
3235
3241
  w("label", {
3236
3242
  class: "rich-text-color",
3237
3243
  title: G(u)("components.richTextEditor.textColor")
3238
3244
  }, [D(G(zt), { size: 17 }), w("input", {
3239
3245
  type: "color",
3240
3246
  value: "#111827",
3241
- onInput: ie
3242
- }, null, 32)], 8, Na),
3247
+ onInput: U
3248
+ }, null, 32)], 8, Fa),
3243
3249
  w("label", {
3244
3250
  class: "rich-text-color",
3245
3251
  title: G(u)("components.richTextEditor.highlight")
@@ -3247,7 +3253,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3247
3253
  type: "color",
3248
3254
  value: "#fff3bf",
3249
3255
  onInput: ae
3250
- }, null, 32)], 8, Pa),
3256
+ }, null, 32)], 8, Ia),
3251
3257
  n[29] ||= w("span", { class: "rich-text-separator" }, null, -1),
3252
3258
  ue(w("select", {
3253
3259
  "onUpdate:modelValue": n[6] ||= (e) => j.value = e,
@@ -3256,7 +3262,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3256
3262
  }, [(R(), C(y, null, B(a, (e) => w("option", {
3257
3263
  key: e.label,
3258
3264
  value: e.value
3259
- }, W(e.label), 9, Ia)), 64))], 8, Fa), [[ce, j.value]]),
3265
+ }, W(e.label), 9, Ra)), 64))], 8, La), [[K, j.value]]),
3260
3266
  ue(w("select", {
3261
3267
  "onUpdate:modelValue": n[7] ||= (e) => M.value = e,
3262
3268
  class: "rich-text-select rich-text-select--size",
@@ -3264,94 +3270,94 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3264
3270
  }, [(R(), C(y, null, B(o, (e) => w("option", {
3265
3271
  key: e,
3266
3272
  value: e
3267
- }, W(e), 9, Ra)), 64))], 8, La), [[ce, M.value]]),
3273
+ }, W(e), 9, Ba)), 64))], 8, za), [[K, M.value]]),
3268
3274
  ue(w("select", {
3269
3275
  "onUpdate:modelValue": n[8] ||= (e) => A.value = e,
3270
3276
  class: "rich-text-select rich-text-select--block",
3271
3277
  disabled: m.value
3272
3278
  }, [
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)
3278
- ], 8, za), [[ce, A.value]]),
3279
+ w("option", Ha, W(G(u)("components.richTextEditor.paragraph")), 1),
3280
+ w("option", Ua, W(G(u)("components.richTextEditor.heading1")), 1),
3281
+ w("option", Wa, W(G(u)("components.richTextEditor.heading2")), 1),
3282
+ w("option", Ga, W(G(u)("components.richTextEditor.heading3")), 1),
3283
+ w("option", Ka, W(G(u)("components.richTextEditor.blockquote")), 1)
3284
+ ], 8, Va), [[K, A.value]]),
3279
3285
  n[30] ||= w("span", { class: "rich-text-separator" }, null, -1),
3280
3286
  w("button", {
3281
3287
  type: "button",
3282
3288
  class: F({ "is-active": pe("left") }),
3283
3289
  title: G(u)("components.richTextEditor.alignLeft"),
3284
3290
  onClick: n[9] ||= (e) => oe("left")
3285
- }, [D(G(Ct), { size: 17 })], 10, Ga),
3291
+ }, [D(G(Ct), { size: 17 })], 10, qa),
3286
3292
  w("button", {
3287
3293
  type: "button",
3288
3294
  class: F({ "is-active": pe("center") }),
3289
3295
  title: G(u)("components.richTextEditor.alignCenter"),
3290
3296
  onClick: n[10] ||= (e) => oe("center")
3291
- }, [D(G(xt), { size: 17 })], 10, Ka),
3297
+ }, [D(G(xt), { size: 17 })], 10, Ja),
3292
3298
  w("button", {
3293
3299
  type: "button",
3294
3300
  class: F({ "is-active": pe("right") }),
3295
3301
  title: G(u)("components.richTextEditor.alignRight"),
3296
3302
  onClick: n[11] ||= (e) => oe("right")
3297
- }, [D(G(wt), { size: 17 })], 10, qa),
3303
+ }, [D(G(wt), { size: 17 })], 10, Ya),
3298
3304
  w("button", {
3299
3305
  type: "button",
3300
3306
  class: F({ "is-active": pe("justify") }),
3301
3307
  title: G(u)("components.richTextEditor.alignJustify"),
3302
3308
  onClick: n[12] ||= (e) => oe("justify")
3303
- }, [D(G(St), { size: 17 })], 10, Ja),
3309
+ }, [D(G(St), { size: 17 })], 10, Xa),
3304
3310
  n[31] ||= w("span", { class: "rich-text-break" }, null, -1),
3305
3311
  w("button", {
3306
3312
  type: "button",
3307
3313
  title: G(u)("components.richTextEditor.decreaseIndent"),
3308
3314
  onClick: de
3309
- }, [D(G(At), { size: 17 })], 8, Ya),
3315
+ }, [D(G(At), { size: 17 })], 8, Za),
3310
3316
  w("button", {
3311
3317
  type: "button",
3312
3318
  title: G(u)("components.richTextEditor.increaseIndent"),
3313
3319
  onClick: J
3314
- }, [D(G(jt), { size: 17 })], 8, Xa),
3320
+ }, [D(G(jt), { size: 17 })], 8, Qa),
3315
3321
  w("button", {
3316
3322
  type: "button",
3317
3323
  class: F({ "is-active": X("orderedList") }),
3318
3324
  title: G(u)("components.richTextEditor.orderedList"),
3319
3325
  onClick: n[13] ||= (e) => G(p).chain().focus().toggleOrderedList().run()
3320
- }, [D(G(It), { size: 17 })], 10, Za),
3326
+ }, [D(G(It), { size: 17 })], 10, $a),
3321
3327
  w("button", {
3322
3328
  type: "button",
3323
3329
  class: F({ "is-active": X("bulletList") }),
3324
3330
  title: G(u)("components.richTextEditor.bulletList"),
3325
3331
  onClick: n[14] ||= (e) => G(p).chain().focus().toggleBulletList().run()
3326
- }, [D(G(Ft), { size: 17 })], 10, Qa),
3332
+ }, [D(G(Ft), { size: 17 })], 10, eo),
3327
3333
  w("button", {
3328
3334
  type: "button",
3329
3335
  class: F({ "is-active": X("code") }),
3330
3336
  title: G(u)("components.richTextEditor.code"),
3331
3337
  onClick: n[15] ||= (e) => G(p).chain().focus().toggleCode().run()
3332
- }, [...n[26] ||= [w("span", { class: "rich-text-tx" }, [E("T"), w("sub", null, "x")], -1)]], 10, $a),
3338
+ }, [...n[26] ||= [w("span", { class: "rich-text-tx" }, [E("T"), w("sub", null, "x")], -1)]], 10, to),
3333
3339
  w("button", {
3334
3340
  type: "button",
3335
3341
  title: G(u)("components.richTextEditor.insertLink"),
3336
3342
  onClick: ne
3337
- }, [D(G(Pt), { size: 17 })], 8, eo),
3343
+ }, [D(G(Pt), { size: 17 })], 8, no),
3338
3344
  w("label", {
3339
3345
  class: "rich-text-select-wrap rich-text-select-wrap--table",
3340
3346
  title: G(u)("components.richTextEditor.table")
3341
3347
  }, [D(G(Ut), { size: 17 }), w("select", {
3342
3348
  disabled: m.value,
3343
- onChange: se
3349
+ onChange: ce
3344
3350
  }, [
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)
3354
- ], 40, no)], 8, to),
3351
+ w("option", ao, W(G(u)("components.richTextEditor.table")), 1),
3352
+ w("option", oo, W(G(u)("components.richTextEditor.insertTable")), 1),
3353
+ w("option", so, W(G(u)("components.richTextEditor.addColumnBefore")), 1),
3354
+ w("option", co, W(G(u)("components.richTextEditor.addColumnAfter")), 1),
3355
+ w("option", lo, W(G(u)("components.richTextEditor.deleteColumn")), 1),
3356
+ w("option", uo, W(G(u)("components.richTextEditor.addRowBefore")), 1),
3357
+ w("option", fo, W(G(u)("components.richTextEditor.addRowAfter")), 1),
3358
+ w("option", po, W(G(u)("components.richTextEditor.deleteRow")), 1),
3359
+ w("option", mo, W(G(u)("components.richTextEditor.deleteTable")), 1)
3360
+ ], 40, io)], 8, ro),
3355
3361
  n[32] ||= w("span", { class: "rich-text-separator" }, null, -1),
3356
3362
  w("button", {
3357
3363
  type: "button",
@@ -3363,24 +3369,24 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3363
3369
  })) : (R(), x(G(Lt), {
3364
3370
  key: 1,
3365
3371
  size: 17
3366
- }))], 8, po),
3372
+ }))], 8, ho),
3367
3373
  w("button", {
3368
3374
  type: "button",
3369
3375
  class: F({ "is-active": c.value }),
3370
3376
  title: G(u)("components.richTextEditor.sourceCode"),
3371
- onClick: te
3372
- }, [D(G(Et), { size: 17 })], 10, mo),
3377
+ onClick: L
3378
+ }, [D(G(Et), { size: 17 })], 10, go),
3373
3379
  w("button", {
3374
3380
  type: "button",
3375
3381
  title: G(u)("components.richTextEditor.clearFormat"),
3376
3382
  onClick: Y
3377
- }, [D(G(Dt), { size: 17 })], 8, ho),
3383
+ }, [D(G(Dt), { size: 17 })], 8, _o),
3378
3384
  w("button", {
3379
3385
  type: "button",
3380
3386
  class: F({ "is-active": X("blockquote") }),
3381
3387
  title: G(u)("components.richTextEditor.blockquote"),
3382
3388
  onClick: n[17] ||= (e) => G(p).chain().focus().toggleBlockquote().run()
3383
- }, [D(G(Bt), { size: 17 })], 10, go),
3389
+ }, [D(G(Bt), { size: 17 })], 10, vo),
3384
3390
  t.$slots["toolbar-append"] ? (R(), C("div", {
3385
3391
  key: 0,
3386
3392
  class: "rich-text-toolbar-extension",
@@ -3391,33 +3397,33 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3391
3397
  class: "rich-text-toolbar-extension",
3392
3398
  title: e.label,
3393
3399
  onMousedown: n[19] ||= fe(() => {}, ["stop"])
3394
- }, [(R(), x(U(e.component), P({ ref_for: !0 }, e.props, {
3400
+ }, [(R(), x(ie(e.component), P({ ref_for: !0 }, e.props, {
3395
3401
  context: _.value,
3396
3402
  disabled: O(e)
3397
- }), null, 16, ["context", "disabled"]))], 40, _o)) : (R(), C("button", {
3403
+ }), null, 16, ["context", "disabled"]))], 40, yo)) : (R(), C("button", {
3398
3404
  key: 1,
3399
3405
  type: "button",
3400
3406
  title: e.label,
3401
3407
  disabled: O(e),
3402
3408
  onClick: (t) => k(e)
3403
- }, [e.icon ? (R(), x(U(e.icon), {
3409
+ }, [e.icon ? (R(), x(ie(e.icon), {
3404
3410
  key: 0,
3405
3411
  size: 17
3406
- })) : (R(), C("span", yo, W(e.label), 1))], 8, vo))], 64))), 128))
3412
+ })) : (R(), C("span", xo, W(e.label), 1))], 8, bo))], 64))), 128))
3407
3413
  ], 32), c.value ? ue((R(), C("textarea", {
3408
3414
  key: 0,
3409
3415
  "onUpdate:modelValue": n[21] ||= (e) => s.value = e,
3410
3416
  class: "rich-text-source",
3411
3417
  readonly: m.value,
3412
- style: L({ "--rich-text-max-height": e.maxHeight }),
3413
- onBlur: I
3414
- }, null, 44, bo)), [[le, s.value]]) : (R(), x(G(un), {
3418
+ style: I({ "--rich-text-max-height": e.maxHeight }),
3419
+ onBlur: te
3420
+ }, null, 44, So)), [[le, s.value]]) : (R(), x(G(un), {
3415
3421
  key: 1,
3416
3422
  editor: G(p),
3417
- style: L({ "--rich-text-max-height": e.maxHeight })
3423
+ style: I({ "--rich-text-max-height": e.maxHeight })
3418
3424
  }, null, 8, ["editor", "style"]))], 2)) : S("", !0);
3419
3425
  }
3420
- }), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ f(xo, [["__scopeId", "data-v-6961f3bf"]]), wo = [
3426
+ }), wo = /* @__PURE__ */ e({ default: () => To }), To = /*#__PURE__*/ f(Co, [["__scopeId", "data-v-6961f3bf"]]), Eo = [
3421
3427
  {
3422
3428
  code: "en",
3423
3429
  label: "English"
@@ -3466,10 +3472,10 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3466
3472
  code: "fr",
3467
3473
  label: "French"
3468
3474
  }
3469
- ], To = {
3475
+ ], Do = {
3470
3476
  key: 0,
3471
3477
  class: "translate-toolbar__inline"
3472
- }, Eo = { class: "translate-toolbar__label" }, Do = { class: "translate-toolbar__controls" }, Oo = { class: "translate-toolbar__row" }, ko = /*#__PURE__*/ f(/* @__PURE__ */ k({
3478
+ }, Oo = { class: "translate-toolbar__label" }, ko = { class: "translate-toolbar__controls" }, Ao = { class: "translate-toolbar__row" }, jo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3473
3479
  __name: "translate-toolbar",
3474
3480
  props: {
3475
3481
  disabled: {
@@ -3501,12 +3507,12 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3501
3507
  function a(e) {
3502
3508
  (e === "translate" || e === "polish") && r("translate", e);
3503
3509
  }
3504
- return (t, n) => e.inline ? (R(), C("div", To, [w("span", Eo, [D(G(Nt), {
3510
+ return (t, n) => e.inline ? (R(), C("div", Do, [w("span", Oo, [D(G(Nt), {
3505
3511
  class: "translate-toolbar__label-icon",
3506
3512
  size: 16,
3507
3513
  color: "#8994BC",
3508
3514
  "stroke-width": 2
3509
- }), E(" " + W(G(u)("product-management.attribute.translation.label")), 1)]), w("div", Do, [
3515
+ }), E(" " + W(G(u)("product-management.attribute.translation.label")), 1)]), w("div", ko, [
3510
3516
  D(G(Pe), {
3511
3517
  "model-value": e.sourceLanguage,
3512
3518
  disabled: e.disabled || e.loading,
@@ -3588,7 +3594,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3588
3594
  "title",
3589
3595
  "aria-label"
3590
3596
  ])]),
3591
- default: J(() => [w("div", Oo, [
3597
+ default: J(() => [w("div", Ao, [
3592
3598
  D(G(Pe), {
3593
3599
  "model-value": e.sourceLanguage,
3594
3600
  disabled: e.disabled || e.loading,
@@ -3654,10 +3660,10 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3654
3660
  _: 1
3655
3661
  }, 8, ["disabled"]));
3656
3662
  }
3657
- }), [["__scopeId", "data-v-df9539f3"]]), Ao = ["element-loading-text"], jo = {
3663
+ }), [["__scopeId", "data-v-df9539f3"]]), Mo = ["element-loading-text"], No = {
3658
3664
  key: 1,
3659
3665
  class: "translate-field__grid"
3660
- }, Mo = ["for"], No = /*#__PURE__*/ f(/* @__PURE__ */ k({
3666
+ }, Po = ["for"], Fo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3661
3667
  __name: "translate-field",
3662
3668
  props: {
3663
3669
  config: { default: void 0 },
@@ -3678,7 +3684,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3678
3684
  },
3679
3685
  emits: ["update:modelValue"],
3680
3686
  setup(e, { emit: t }) {
3681
- let n = e, r = t, i = b(() => n.config?.language?.length ? n.config.language : wo), a = b(() => i.value.map(({ code: e }) => e)), o = b(() => n.config?.layout ?? ([
3687
+ let n = e, r = t, i = b(() => n.config?.language?.length ? n.config.language : Eo), a = b(() => i.value.map(({ code: e }) => e)), o = b(() => n.config?.layout ?? ([
3682
3688
  "rich-text",
3683
3689
  "text",
3684
3690
  "textarea"
@@ -3756,7 +3762,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3756
3762
  name: e.code
3757
3763
  }, null, 8, ["label", "name"]))), 128))]),
3758
3764
  _: 1
3759
- }, 8, ["modelValue"]), e.field.type === "rich-text" ? (R(), x(Co, P({ key: 0 }, e.inputProps, {
3765
+ }, 8, ["modelValue"]), e.field.type === "rich-text" ? (R(), x(To, P({ key: 0 }, e.inputProps, {
3760
3766
  id: `${e.field.prop}-${l.value}`,
3761
3767
  "model-value": String(c.value[l.value] ?? ""),
3762
3768
  placeholder: e.placeholder || s.value,
@@ -3765,7 +3771,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3765
3771
  "tool-context": _(l.value),
3766
3772
  "onUpdate:modelValue": n[3] ||= (e) => h(l.value, e)
3767
3773
  }), {
3768
- "toolbar-append": J(() => [D(ko, {
3774
+ "toolbar-append": J(() => [D(jo, {
3769
3775
  languages: i.value,
3770
3776
  "source-language": d.value,
3771
3777
  "target-language": f.value,
@@ -3804,13 +3810,13 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3804
3810
  "rows",
3805
3811
  "placeholder",
3806
3812
  "disabled"
3807
- ]))], 64)) : (R(), C("div", jo, [(R(!0), C(y, null, B(i.value, (t) => (R(), C("div", {
3813
+ ]))], 64)) : (R(), C("div", No, [(R(!0), C(y, null, B(i.value, (t) => (R(), C("div", {
3808
3814
  key: t.code,
3809
3815
  class: "translate-field__entry"
3810
3816
  }, [w("label", {
3811
3817
  class: "translate-field__label",
3812
3818
  for: `${e.field.prop}-${t.code}`
3813
- }, W(t.label), 9, Mo), e.field.type === "rich-text" ? (R(), x(Co, P({
3819
+ }, W(t.label), 9, Po), e.field.type === "rich-text" ? (R(), x(To, P({
3814
3820
  key: 0,
3815
3821
  ref_for: !0
3816
3822
  }, e.inputProps, {
@@ -3848,7 +3854,7 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3848
3854
  "placeholder",
3849
3855
  "disabled",
3850
3856
  "onUpdate:modelValue"
3851
- ]))]))), 128))])), o.value !== "tabs" || e.field.type !== "rich-text" ? (R(), x(ko, {
3857
+ ]))]))), 128))])), o.value !== "tabs" || e.field.type !== "rich-text" ? (R(), x(jo, {
3852
3858
  key: 2,
3853
3859
  inline: e.field.type === "text" || e.field.type === "textarea",
3854
3860
  languages: i.value,
@@ -3867,12 +3873,12 @@ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disab
3867
3873
  "target-language",
3868
3874
  "disabled",
3869
3875
  "loading"
3870
- ])) : S("", !0)], 10, Ao)), [[r, p.value]]);
3876
+ ])) : S("", !0)], 10, Mo)), [[r, p.value]]);
3871
3877
  };
3872
3878
  }
3873
3879
  }), [["__scopeId", "data-v-51b67e99"]]);
3874
3880
  // src/components/schema-form/use-field-options.ts
3875
- function Po(e, t) {
3881
+ function Io(e, t) {
3876
3882
  let { options: n } = Fr(() => {
3877
3883
  let t = e();
3878
3884
  return t.optionSource === "dict" ? t.dictCode : "";
@@ -3883,13 +3889,13 @@ function Po(e, t) {
3883
3889
  });
3884
3890
  }
3885
3891
  // src/components/schema-form/schema-form-item.vue?vue&type=script&setup=true&lang.ts
3886
- var Fo = {
3892
+ var Lo = {
3887
3893
  key: 2,
3888
3894
  class: "schema-form-item__dict-tag"
3889
- }, Io = {
3895
+ }, Ro = {
3890
3896
  key: 23,
3891
3897
  class: "schema-form-item__tip"
3892
- }, Lo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3898
+ }, zo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3893
3899
  __name: "schema-form-item",
3894
3900
  props: {
3895
3901
  disabled: { type: Boolean },
@@ -3902,13 +3908,13 @@ var Fo = {
3902
3908
  },
3903
3909
  emits: ["update:modelValue"],
3904
3910
  setup(e, { emit: t }) {
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 ?? {
3911
+ let r = e, i = t, a = O(() => Promise.resolve().then(() => ta)), o = O(() => import("./file-upload-D02tRF4e.js")), s = O(() => import("./picture-upload-CmNsacpE.js")), c = O(() => Promise.resolve().then(() => wo)), l = b(() => r.context ?? {
3906
3912
  mode: "create",
3907
3913
  values: {}
3908
- }), d = Po(() => r.field, l), f = b(() => ({
3914
+ }), d = Io(() => r.field, l), f = b(() => ({
3909
3915
  ...l.value,
3910
3916
  updateValue: H
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 && [
3917
+ })), p = b(() => typeof r.field.props == "function" ? r.field.props(f.value) : r.field.props), m = b(() => wa(r.field, l.value)), h = b(() => Ca(r.field)), g = b(() => r.field.copyable ?? !!r.field.readonly), _ = b(() => !!r.field.translateConfig && [
3912
3918
  "rich-text",
3913
3919
  "text",
3914
3920
  "textarea"
@@ -3959,7 +3965,7 @@ var Fo = {
3959
3965
  fileOriginName: t.fileOriginName ?? t.name ?? t.url ?? t.fileUrl
3960
3966
  };
3961
3967
  }).filter((e) => !!e);
3962
- }), j = b(() => p.value?.maxPreviewCount ?? p.value?.maxCount ?? 3), M = b(() => ma(r.field.component)), N = b(() => {
3968
+ }), j = b(() => p.value?.maxPreviewCount ?? p.value?.maxCount ?? 3), M = b(() => ga(r.field.component)), N = b(() => {
3963
3969
  let e = M.value;
3964
3970
  return e ? {
3965
3971
  ...p.value,
@@ -3969,7 +3975,7 @@ var Fo = {
3969
3975
  }), ee = b(() => {
3970
3976
  let e = M.value;
3971
3977
  return e ? { [e.updateEvent ?? `update:${e.modelProp ?? "modelValue"}`]: (t) => H(e.valueExtractor?.(t) ?? t) } : {};
3972
- }), I = b(() => ({
3978
+ }), te = b(() => ({
3973
3979
  ...p.value,
3974
3980
  editable: !r.disabled && !r.readonly && p.value?.editable !== !1,
3975
3981
  toolContext: {
@@ -3978,11 +3984,11 @@ var Fo = {
3978
3984
  getFormData: () => l.value.values,
3979
3985
  mode: l.value.mode
3980
3986
  }
3981
- })), L = b(() => r.field.apiOptions), te = b(() => L.value ? aa(L.value.entityKey) : void 0), ne = b(() => {
3982
- let e = L.value?.params;
3987
+ })), I = b(() => r.field.apiOptions), L = b(() => I.value ? sa(I.value.entityKey) : void 0), ne = b(() => {
3988
+ let e = I.value?.params;
3983
3989
  return typeof e == "function" ? e(l.value) : e;
3984
3990
  }), z = b(() => JSON.stringify(ne.value ?? {})), re = b(() => {
3985
- let e = te.value, t = L.value;
3991
+ let e = L.value, t = I.value;
3986
3992
  return !e || !t ? null : {
3987
3993
  columns: e.columns ?? [],
3988
3994
  dialogTitle: e.dialogTitle,
@@ -3995,8 +4001,8 @@ var Fo = {
3995
4001
  function H(e) {
3996
4002
  i("update:modelValue", e);
3997
4003
  }
3998
- function ie(e) {
3999
- let t = te.value;
4004
+ function U(e) {
4005
+ let t = L.value;
4000
4006
  return t ? t.fetch({
4001
4007
  ...e,
4002
4008
  params: ne.value
@@ -4028,7 +4034,7 @@ var Fo = {
4028
4034
  prop: e.field.prop,
4029
4035
  rules: m.value
4030
4036
  }, {
4031
- default: J(() => [_.value ? (R(), x(No, {
4037
+ default: J(() => [_.value ? (R(), x(Fo, {
4032
4038
  key: 0,
4033
4039
  config: e.field.translateConfig,
4034
4040
  context: l.value,
@@ -4054,7 +4060,7 @@ var Fo = {
4054
4060
  key: 1,
4055
4061
  "model-value": e.modelValue,
4056
4062
  placeholder: h.value
4057
- }, I.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", Fo, [(R(!0), C(y, null, B(D.value, (t, n) => (R(), x(Ir, {
4063
+ }, te.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", Lo, [(R(!0), C(y, null, B(D.value, (t, n) => (R(), x(Ir, {
4058
4064
  key: `${e.field.prop}-${n}`,
4059
4065
  code: e.field.dictCode,
4060
4066
  value: t
@@ -4066,11 +4072,11 @@ var Fo = {
4066
4072
  key: 4,
4067
4073
  attachments: A.value,
4068
4074
  "max-preview-count": j.value
4069
- }, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(ua, {
4075
+ }, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(fa, {
4070
4076
  key: 5,
4071
4077
  value: T.value,
4072
4078
  copyable: g.value
4073
- }, null, 8, ["value", "copyable"])) : M.value ? (R(), x(U(M.value.component), P({ key: 6 }, N.value, ae(ee.value)), null, 16)) : e.field.type === "upload" ? (R(), x(G(o), P({
4079
+ }, null, 8, ["value", "copyable"])) : M.value ? (R(), x(ie(M.value.component), P({ key: 6 }, N.value, ae(ee.value)), null, 16)) : e.field.type === "upload" ? (R(), x(G(o), P({
4074
4080
  key: 7,
4075
4081
  "model-value": e.modelValue,
4076
4082
  placeholder: e.field.placeholder,
@@ -4131,7 +4137,7 @@ var Fo = {
4131
4137
  key: 13,
4132
4138
  "model-value": e.modelValue,
4133
4139
  placeholder: h.value
4134
- }, I.value, { "onUpdate:modelValue": H }), null, 16, ["model-value", "placeholder"])) : e.field.type === "number" ? (R(), x(G(Ee), P({
4140
+ }, te.value, { "onUpdate:modelValue": H }), null, 16, ["model-value", "placeholder"])) : e.field.type === "number" ? (R(), x(G(Ee), P({
4135
4141
  key: 14,
4136
4142
  "model-value": e.modelValue,
4137
4143
  placeholder: h.value,
@@ -4210,8 +4216,8 @@ var Fo = {
4210
4216
  "model-value": e.modelValue,
4211
4217
  placeholder: h.value,
4212
4218
  disabled: e.disabled,
4213
- fetcher: te.value ? ie : void 0,
4214
- options: te.value ? void 0 : G(d)
4219
+ fetcher: L.value ? U : void 0,
4220
+ options: L.value ? void 0 : G(d)
4215
4221
  }, {
4216
4222
  ...re.value,
4217
4223
  ...p.value
@@ -4221,10 +4227,10 @@ var Fo = {
4221
4227
  "disabled",
4222
4228
  "fetcher",
4223
4229
  "options"
4224
- ])) : (R(), x(ua, {
4230
+ ])) : (R(), x(fa, {
4225
4231
  key: 22,
4226
4232
  value: e.modelValue
4227
- }, null, 8, ["value"])), e.field.tip ? (R(), C("div", Io, W(e.field.tip), 1)) : S("", !0)]),
4233
+ }, null, 8, ["value"])), e.field.tip ? (R(), C("div", Ro, W(e.field.tip), 1)) : S("", !0)]),
4228
4234
  _: 3
4229
4235
  }, 8, [
4230
4236
  "class",
@@ -4234,20 +4240,20 @@ var Fo = {
4234
4240
  "rules"
4235
4241
  ]));
4236
4242
  }
4237
- }), [["__scopeId", "data-v-7c39b720"]]), Ro = { class: "schema-form-root" }, zo = {
4243
+ }), [["__scopeId", "data-v-7c39b720"]]), Bo = { class: "schema-form-root" }, Vo = {
4238
4244
  key: 0,
4239
4245
  class: "schema-form__row-break",
4240
4246
  "aria-hidden": "true"
4241
- }, Bo = {
4247
+ }, Ho = {
4242
4248
  key: 0,
4243
4249
  class: "schema-form-group__header"
4244
- }, Vo = { class: "schema-form-group__index" }, Ho = { class: "schema-form-group__heading" }, Uo = { key: 0 }, Wo = {
4250
+ }, Uo = { class: "schema-form-group__index" }, Wo = { class: "schema-form-group__heading" }, Go = { key: 0 }, Ko = {
4245
4251
  key: 0,
4246
4252
  class: "schema-form-group__required-note"
4247
- }, Go = { key: 1 }, Ko = {
4253
+ }, qo = { key: 1 }, Jo = {
4248
4254
  key: 0,
4249
4255
  class: "schema-form-group__tip"
4250
- }, qo = /*#__PURE__*/ f(/* @__PURE__ */ k({
4256
+ }, Yo = /*#__PURE__*/ f(/* @__PURE__ */ k({
4251
4257
  __name: "schema-form",
4252
4258
  props: /*@__PURE__*/ N({
4253
4259
  columns: { default: 1 },
@@ -4277,17 +4283,17 @@ var Fo = {
4277
4283
  }),
4278
4284
  emits: /*@__PURE__*/ N(["field-change"], ["update:modelValue"]),
4279
4285
  setup(e, { expose: t, emit: n }) {
4280
- let r = e, i = n, a = K(e, "modelValue"), o = z(), s = {
4286
+ let r = e, i = n, a = se(e, "modelValue"), o = z(), s = {
4281
4287
  behavior: "smooth",
4282
4288
  block: "center"
4283
4289
  }, c = b(() => r.schema), l = b(() => ({
4284
4290
  mode: r.mode,
4285
4291
  values: a.value ?? {}
4286
- })), d = b(() => c.value.filter((e) => ba(e, l.value) ? !1 : !_a(e) || f(e).length > 0));
4292
+ })), d = b(() => c.value.filter((e) => Sa(e, l.value) ? !1 : !ya(e) || f(e).length > 0));
4287
4293
  function f(e) {
4288
- return e.children.filter((e) => !ba(e, l.value));
4294
+ return e.children.filter((e) => !Sa(e, l.value));
4289
4295
  }
4290
- let p = b(() => d.value.flatMap((e) => _a(e) ? f(e) : [e])), m = b(() => Math.floor(24 / r.columns)), h = b(() => ({
4296
+ let p = b(() => d.value.flatMap((e) => ya(e) ? f(e) : [e])), m = b(() => Math.floor(24 / r.columns)), h = b(() => ({
4291
4297
  [`schema-form--label-align-${r.labelAlign}`]: !!r.labelAlign,
4292
4298
  "schema-form--underline": r.underline
4293
4299
  })), g = b(() => r.mode === "view" ? "left" : r.labelPosition);
@@ -4300,20 +4306,20 @@ var Fo = {
4300
4306
  "--schema-form-label-gap": _(r.labelGap)
4301
4307
  }));
4302
4308
  function T(e, t) {
4303
- return _a(e) ? `group-${t}-${e.label}` : e.prop;
4309
+ return ya(e) ? `group-${t}-${e.label}` : e.prop;
4304
4310
  }
4305
4311
  function E(e, t = !1) {
4306
4312
  return t ? { gridColumn: e.newRow ? "1 / -1" : `span ${e.span ?? m.value}` } : { flex: `${e.span ?? 1} 1 0` };
4307
4313
  }
4308
4314
  function O(e) {
4309
- return f(e).some((e) => ya(e.required, l.value));
4315
+ return f(e).some((e) => xa(e.required, l.value));
4310
4316
  }
4311
4317
  function k(e) {
4312
- let t = d.value.filter((e) => _a(e) && !!e.anchor);
4318
+ let t = d.value.filter((e) => ya(e) && !!e.anchor);
4313
4319
  return String(t.indexOf(e) + 1).padStart(2, "0");
4314
4320
  }
4315
4321
  function A(e, t) {
4316
- return r.disabled || ya(t?.disabled, l.value) || ya(e.disabled, l.value);
4322
+ return r.disabled || xa(t?.disabled, l.value) || xa(e.disabled, l.value);
4317
4323
  }
4318
4324
  function j(e) {
4319
4325
  return r.mode === "view" || !!e.readonly;
@@ -4326,7 +4332,7 @@ var Fo = {
4326
4332
  }
4327
4333
  q([c, a], () => {
4328
4334
  let e = a.value ?? {}, t = {};
4329
- for (let n of va(c.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4335
+ for (let n of ba(c.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4330
4336
  Object.keys(t).length > 0 && (a.value = {
4331
4337
  ...e,
4332
4338
  ...t
@@ -4348,18 +4354,18 @@ var Fo = {
4348
4354
  getValues: () => Object.fromEntries(p.value.map((e) => [e.prop, a.value?.[e.prop]]))
4349
4355
  }), (t, n) => {
4350
4356
  let r = H("loading");
4351
- return R(), C("div", Ro, [ue((R(), x(G(Se), {
4357
+ return R(), C("div", Bo, [ue((R(), x(G(Se), {
4352
4358
  ref_key: "formRef",
4353
4359
  ref: o,
4354
4360
  class: F(["schema-form", h.value]),
4355
- style: L(v.value),
4361
+ style: I(v.value),
4356
4362
  model: a.value,
4357
4363
  "label-width": e.labelWidth,
4358
4364
  "label-position": g.value,
4359
4365
  "scroll-into-view-options": s
4360
4366
  }, {
4361
4367
  default: J(() => [D(G(Ne), { gutter: 16 }, {
4362
- default: J(() => [(R(!0), C(y, null, B(d.value, (e, n) => (R(), C(y, { key: T(e, n) }, [e.newRow ? (R(), C("div", zo)) : S("", !0), D(G(ge), {
4368
+ default: J(() => [(R(!0), C(y, null, B(d.value, (e, n) => (R(), C(y, { key: T(e, n) }, [e.newRow ? (R(), C("div", Vo)) : S("", !0), D(G(ge), {
4363
4369
  span: e.span ?? (e.type === "group" ? 24 : m.value),
4364
4370
  class: F({
4365
4371
  "schema-form-col--anchor-group": e.type === "group" && e.anchor,
@@ -4372,14 +4378,14 @@ var Fo = {
4372
4378
  "data-form-anchor": e.anchor ? c.value.indexOf(e) : void 0,
4373
4379
  label: e.label
4374
4380
  }, {
4375
- label: J(() => [e.anchor ? (R(), C("div", Bo, [
4376
- w("span", Vo, W(k(e)), 1),
4377
- w("span", Ho, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Uo, W(e.description), 1)) : S("", !0)]),
4378
- O(e) ? (R(), C("span", Wo, W(G(u)("schemaForm.requiredNote")), 1)) : S("", !0)
4379
- ])) : (R(), C("span", Go, W(e.label), 1))]),
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, {
4381
+ label: J(() => [e.anchor ? (R(), C("div", Ho, [
4382
+ w("span", Uo, W(k(e)), 1),
4383
+ w("span", Wo, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Go, W(e.description), 1)) : S("", !0)]),
4384
+ O(e) ? (R(), C("span", Ko, W(G(u)("schemaForm.requiredNote")), 1)) : S("", !0)
4385
+ ])) : (R(), C("span", qo, W(e.label), 1))]),
4386
+ 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(zo, {
4381
4387
  key: n.prop,
4382
- style: L(E(n, e.anchor)),
4388
+ style: I(E(n, e.anchor)),
4383
4389
  "hide-label": !e.anchor,
4384
4390
  field: n,
4385
4391
  context: l.value,
@@ -4401,13 +4407,13 @@ var Fo = {
4401
4407
  "disabled",
4402
4408
  "readonly",
4403
4409
  "onUpdate:modelValue"
4404
- ]))), 128))], 2), e.tip ? (R(), C("div", Ko, W(e.tip), 1)) : S("", !0)]),
4410
+ ]))), 128))], 2), e.tip ? (R(), C("div", Jo, W(e.tip), 1)) : S("", !0)]),
4405
4411
  _: 2
4406
4412
  }, 1032, [
4407
4413
  "class",
4408
4414
  "data-form-anchor",
4409
4415
  "label"
4410
- ])) : (R(), x(Lo, {
4416
+ ])) : (R(), x(zo, {
4411
4417
  key: 1,
4412
4418
  field: e,
4413
4419
  context: l.value,
@@ -4442,11 +4448,11 @@ var Fo = {
4442
4448
  ])), [[r, e.loading]])]);
4443
4449
  };
4444
4450
  }
4445
- }), [["__scopeId", "data-v-c8073595"]]), Jo = { class: "drawer-form-page__header" }, Yo = { class: "drawer-form-page__header-main" }, Xo = { class: "drawer-form-page__title-stack" }, Zo = { class: "drawer-form-page__title" }, Qo = { class: "drawer-form-page__header-actions" }, $o = { class: "drawer-form-page__status" }, es = {
4451
+ }), [["__scopeId", "data-v-c8073595"]]), Xo = { class: "drawer-form-page__header" }, Zo = { class: "drawer-form-page__header-main" }, Qo = { class: "drawer-form-page__title-stack" }, $o = { class: "drawer-form-page__title" }, es = { class: "drawer-form-page__header-actions" }, ts = { class: "drawer-form-page__status" }, ns = {
4446
4452
  key: 0,
4447
4453
  class: "drawer-form-page__anchors",
4448
4454
  "aria-label": "表单分区"
4449
- }, ts = ["onClick"], ns = { class: "drawer-form-page__footer" }, rs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4455
+ }, rs = ["onClick"], is = { class: "drawer-form-page__footer" }, as = /*#__PURE__*/ f(/* @__PURE__ */ k({
4450
4456
  __name: "index",
4451
4457
  props: {
4452
4458
  modelValue: {
@@ -4530,7 +4536,7 @@ var Fo = {
4530
4536
  "closed"
4531
4537
  ],
4532
4538
  setup(e, { expose: t, emit: n }) {
4533
- let r = e, i = n, a = z(0), o = se(), s = z(), c = z(), l = z(r.fullscreen), u = b({
4539
+ let r = e, i = n, a = z(0), o = ce(), s = z(), c = z(), l = z(r.fullscreen), u = b({
4534
4540
  get: () => r.modelValue,
4535
4541
  set: (e) => i("update:modelValue", e)
4536
4542
  }), d = b({
@@ -4569,11 +4575,11 @@ var Fo = {
4569
4575
  async function N() {
4570
4576
  return await s.value?.validate() ?? !1;
4571
4577
  }
4572
- function L() {
4578
+ function I() {
4573
4579
  return s.value?.getValues() ?? {};
4574
4580
  }
4575
- async function te() {
4576
- return r.mode === "view" || r.submitting || r.loading || !await N() ? !1 : (i("submit", L()), !0);
4581
+ async function L() {
4582
+ return r.mode === "view" || r.submitting || r.loading || !await N() ? !1 : (i("submit", I()), !0);
4577
4583
  }
4578
4584
  function ne() {
4579
4585
  s.value?.resetFields();
@@ -4581,10 +4587,10 @@ var Fo = {
4581
4587
  function re() {
4582
4588
  i("closed");
4583
4589
  }
4584
- function U() {
4590
+ function ie() {
4585
4591
  a.value = v.value[0]?.index ?? 0, i("open");
4586
4592
  }
4587
- function ie() {
4593
+ function U() {
4588
4594
  let e = c.value;
4589
4595
  if (!e) return;
4590
4596
  let t = e.getBoundingClientRect().top, n = v.value[0]?.index ?? 0;
@@ -4596,9 +4602,9 @@ var Fo = {
4596
4602
  }
4597
4603
  return t({
4598
4604
  close: j,
4599
- getValues: L,
4605
+ getValues: I,
4600
4606
  resetFields: ne,
4601
- submit: te,
4607
+ submit: L,
4602
4608
  toggleFullscreen: O,
4603
4609
  validate: N
4604
4610
  }), (e, t) => {
@@ -4616,17 +4622,17 @@ var Fo = {
4616
4622
  "append-to-body": r.appendToBody,
4617
4623
  "lock-scroll": r.lockScroll,
4618
4624
  class: ["drawer-form-page", { "drawer-form-page--fullscreen": f.value }],
4619
- onOpen: U,
4625
+ onOpen: ie,
4620
4626
  onClosed: re
4621
4627
  }), T({
4622
4628
  header: J(() => [V(e.$slots, "header", {
4623
4629
  fullscreen: f.value,
4624
4630
  title: r.title,
4625
4631
  toggleFullscreen: O
4626
- }, () => [w("div", Jo, [
4627
- w("div", Yo, [w("div", Xo, [w("span", Zo, W(r.title), 1)])]),
4628
- w("div", Qo, [
4629
- w("span", $o, [t[2] ||= w("i", { "aria-hidden": "true" }, null, -1), E(" " + W(g.value), 1)]),
4632
+ }, () => [w("div", Xo, [
4633
+ w("div", Zo, [w("div", Qo, [w("span", $o, W(r.title), 1)])]),
4634
+ w("div", es, [
4635
+ w("span", ts, [t[2] ||= w("i", { "aria-hidden": "true" }, null, -1), E(" " + W(g.value), 1)]),
4630
4636
  r.fullscreenButton ? (R(), x(G(He), {
4631
4637
  key: 0,
4632
4638
  content: f.value ? "退出全屏" : "全屏",
@@ -4654,21 +4660,21 @@ var Fo = {
4654
4660
  _: 1
4655
4661
  })
4656
4662
  ]),
4657
- v.value.length ? (R(), C("nav", es, [(R(!0), C(y, null, B(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4663
+ v.value.length ? (R(), C("nav", ns, [(R(!0), C(y, null, B(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4658
4664
  key: t,
4659
4665
  type: "button",
4660
4666
  class: F(["drawer-form-page__anchor", { "is-active": a.value === t }]),
4661
4667
  onClick: (e) => {
4662
4668
  a.value = t, k(t);
4663
4669
  }
4664
- }, W(e.label), 11, ts))), 128))])) : S("", !0)
4670
+ }, W(e.label), 11, rs))), 128))])) : S("", !0)
4665
4671
  ])], !0)]),
4666
4672
  default: J(() => [ue((R(), C("div", {
4667
4673
  ref_key: "contentRef",
4668
4674
  ref: c,
4669
4675
  class: "drawer-form-page__content",
4670
- onScrollPassive: ie
4671
- }, [D(qo, P({
4676
+ onScrollPassive: U
4677
+ }, [D(Yo, P({
4672
4678
  ref_key: "formRef",
4673
4679
  ref: s
4674
4680
  }, r.schemaFormProps, {
@@ -4681,7 +4687,7 @@ var Fo = {
4681
4687
  loading: r.loading
4682
4688
  }), T({ _: 2 }, [B(_.value, (t) => ({
4683
4689
  name: t,
4684
- fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
4690
+ fn: J((n) => [V(e.$slots, t, te(A(n)), void 0, !0)])
4685
4691
  }))]), 1040, [
4686
4692
  "modelValue",
4687
4693
  "schema",
@@ -4695,9 +4701,9 @@ var Fo = {
4695
4701
  name: "footer",
4696
4702
  fn: J(() => [V(e.$slots, "footer", {
4697
4703
  cancel: M,
4698
- submit: te,
4704
+ submit: L,
4699
4705
  submitting: r.submitting
4700
- }, () => [w("div", ns, [r.showCancelButton ? (R(), x(G(Y), {
4706
+ }, () => [w("div", is, [r.showCancelButton ? (R(), x(G(Y), {
4701
4707
  key: 0,
4702
4708
  disabled: r.submitting,
4703
4709
  onClick: M
@@ -4709,7 +4715,7 @@ var Fo = {
4709
4715
  type: "primary",
4710
4716
  disabled: r.loading,
4711
4717
  loading: r.submitting,
4712
- onClick: te
4718
+ onClick: L
4713
4719
  }, {
4714
4720
  default: J(() => [E(W(r.submitText), 1)]),
4715
4721
  _: 1
@@ -4730,11 +4736,11 @@ var Fo = {
4730
4736
  }
4731
4737
  }), [["__scopeId", "data-v-41961167"]]);
4732
4738
  // src/components/drawer-form-page/use-drawer-form-page.ts
4733
- function is(e = {}) {
4734
- let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = z(!1), l = z(as(o ?? n ?? {})), u = ne({ ...s }), d = z(), f;
4739
+ function os(e = {}) {
4740
+ let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = z(!1), l = z(ss(o ?? n ?? {})), u = ne({ ...s }), d = z(), f;
4735
4741
  function p(e = {}) {
4736
4742
  let { values: t, ...r } = e;
4737
- Object.assign(u, r), l.value = as(t ?? n ?? {}), c.value = !0;
4743
+ Object.assign(u, r), l.value = ss(t ?? n ?? {}), c.value = !0;
4738
4744
  }
4739
4745
  function m() {
4740
4746
  c.value = !1;
@@ -4762,7 +4768,7 @@ function is(e = {}) {
4762
4768
  }
4763
4769
  function x(e) {
4764
4770
  let { values: t, ...n } = e;
4765
- Object.assign(u, n), t !== void 0 && (l.value = as(t));
4771
+ Object.assign(u, n), t !== void 0 && (l.value = ss(t));
4766
4772
  }
4767
4773
  return f = {
4768
4774
  close: m,
@@ -4780,7 +4786,7 @@ function is(e = {}) {
4780
4786
  name: "DrawerFormPageProvider",
4781
4787
  inheritAttrs: !1,
4782
4788
  setup(e, { attrs: n, slots: i }) {
4783
- return () => j(rs, {
4789
+ return () => j(as, {
4784
4790
  ...n,
4785
4791
  ...u,
4786
4792
  ref: d,
@@ -4805,14 +4811,14 @@ function is(e = {}) {
4805
4811
  }
4806
4812
  }), f];
4807
4813
  }
4808
- function as(e) {
4814
+ function ss(e) {
4809
4815
  return { ...e };
4810
4816
  }
4811
4817
  // src/components/search-form/index.vue?vue&type=script&setup=true&lang.ts
4812
- var os = {
4818
+ var cs = {
4813
4819
  key: 0,
4814
4820
  class: "search-form__actions"
4815
- }, ss = /*#__PURE__*/ f(/* @__PURE__ */ k({
4821
+ }, ls = /*#__PURE__*/ f(/* @__PURE__ */ k({
4816
4822
  __name: "index",
4817
4823
  props: /*@__PURE__*/ N({
4818
4824
  collapsedRows: { default: 2 },
@@ -4836,19 +4842,19 @@ var os = {
4836
4842
  }),
4837
4843
  emits: /*@__PURE__*/ N(["reset", "search"], ["update:modelValue"]),
4838
4844
  setup(e, { expose: t, emit: n }) {
4839
- let r = e, i = n, a = K(e, "modelValue"), o = se(), s = z(!1), c = z(), l = /* @__PURE__ */ new Set([
4845
+ let r = e, i = n, a = se(e, "modelValue"), o = ce(), s = z(!1), c = z(), l = /* @__PURE__ */ new Set([
4840
4846
  "async-select",
4841
4847
  "cascader",
4842
4848
  "select"
4843
4849
  ]), d = b(() => r.schema), f = b(() => ({
4844
4850
  mode: r.mode,
4845
4851
  values: a.value ?? {}
4846
- })), p = b(() => d.value.filter((e) => ba(e, f.value) ? !1 : !_a(e) || v(e).length > 0)), m = b(() => Math.max(r.columns * r.collapsedRows, r.columns)), h = b(() => r.showActions && p.value.length > m.value), g = b(() => !h.value || s.value ? p.value : p.value.slice(0, m.value)), _ = b(() => Object.keys(o));
4852
+ })), p = b(() => d.value.filter((e) => Sa(e, f.value) ? !1 : !ya(e) || v(e).length > 0)), m = b(() => Math.max(r.columns * r.collapsedRows, r.columns)), h = b(() => r.showActions && p.value.length > m.value), g = b(() => !h.value || s.value ? p.value : p.value.slice(0, m.value)), _ = b(() => Object.keys(o));
4847
4853
  function v(e) {
4848
- return e.children.filter((e) => !ba(e, f.value));
4854
+ return e.children.filter((e) => !Sa(e, f.value));
4849
4855
  }
4850
4856
  function y() {
4851
- return va(d.value);
4857
+ return ba(d.value);
4852
4858
  }
4853
4859
  function w() {
4854
4860
  return Object.fromEntries(y().map((e) => [e.prop, e.defaultValue]));
@@ -4884,7 +4890,7 @@ var os = {
4884
4890
  class: "search-form",
4885
4891
  onKeydown: de(j, ["enter"]),
4886
4892
  onSubmit: fe(k, ["prevent"])
4887
- }, [D(qo, {
4893
+ }, [D(Yo, {
4888
4894
  ref_key: "schemaFormRef",
4889
4895
  ref: c,
4890
4896
  modelValue: a.value,
@@ -4901,7 +4907,7 @@ var os = {
4901
4907
  onFieldChange: M
4902
4908
  }, T({ _: 2 }, [B(_.value, (e) => ({
4903
4909
  name: e,
4904
- fn: J((n) => [V(t.$slots, e, I(A(n)), void 0, !0)])
4910
+ fn: J((n) => [V(t.$slots, e, te(A(n)), void 0, !0)])
4905
4911
  }))]), 1032, [
4906
4912
  "modelValue",
4907
4913
  "columns",
@@ -4911,7 +4917,7 @@ var os = {
4911
4917
  "label-align",
4912
4918
  "label-position",
4913
4919
  "label-width"
4914
- ]), e.showActions ? (R(), C("div", os, [
4920
+ ]), e.showActions ? (R(), C("div", cs, [
4915
4921
  D(G(Y), {
4916
4922
  type: "primary",
4917
4923
  "native-type": "submit"
@@ -4939,7 +4945,7 @@ var os = {
4939
4945
  }, 8, ["icon"])) : S("", !0)
4940
4946
  ])) : S("", !0)], 32));
4941
4947
  }
4942
- }), [["__scopeId", "data-v-4b7b21fe"]]), cs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4948
+ }), [["__scopeId", "data-v-4b7b21fe"]]), us = /*#__PURE__*/ f(/* @__PURE__ */ k({
4943
4949
  __name: "index",
4944
4950
  props: {
4945
4951
  fields: { default: () => [] },
@@ -5005,7 +5011,7 @@ var os = {
5005
5011
  "toolbarAction"
5006
5012
  ],
5007
5013
  setup(e, { expose: t, emit: n }) {
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(() => {
5014
+ let r = e, i = n, a = ce(), 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(() => {
5009
5015
  let e = r.searchFormProps?.schema;
5010
5016
  return e?.length ? e : r.fields.filter((e) => e.search).map((e) => ne(e)).filter((e) => !!e);
5011
5017
  }), g = b(() => h.value.length > 0), _ = b(() => r.fields.filter((e) => e.table !== !1).filter((e) => e.type !== "group").map((e) => {
@@ -5039,10 +5045,10 @@ var os = {
5039
5045
  ...typeof r.importUrl == "string" ? { api: r.importUrl } : r.importUrl ?? {}
5040
5046
  }
5041
5047
  };
5042
- }), L = b(() => {
5048
+ }), I = b(() => {
5043
5049
  let { schema: e, ...t } = r.searchFormProps ?? {};
5044
5050
  return t;
5045
- }), te = /* @__PURE__ */ new Set([
5051
+ }), L = /* @__PURE__ */ new Set([
5046
5052
  "apiOptions",
5047
5053
  "component",
5048
5054
  "copyable",
@@ -5066,7 +5072,7 @@ var os = {
5066
5072
  "type"
5067
5073
  ]);
5068
5074
  function ne(e) {
5069
- return e.type === "group" ? re(e) : U(e);
5075
+ return e.type === "group" ? re(e) : ie(e);
5070
5076
  }
5071
5077
  function re(e) {
5072
5078
  let t = e.search;
@@ -5074,18 +5080,18 @@ var os = {
5074
5080
  let n = typeof t == "object" ? t : {}, r = Array.isArray(n.children) ? n.children : e.children;
5075
5081
  return {
5076
5082
  ...e,
5077
- ...ie(n),
5083
+ ...U(n),
5078
5084
  children: r,
5079
5085
  hidden: n.hidden ?? !1
5080
5086
  };
5081
5087
  }
5082
- function U(e) {
5088
+ function ie(e) {
5083
5089
  let t = e.search;
5084
5090
  if (!t) return null;
5085
5091
  let n = typeof t == "object" ? t : {}, r = ae(n), i = oe(e.props, r);
5086
5092
  return {
5087
5093
  ...e,
5088
- ...ie(n),
5094
+ ...U(n),
5089
5095
  props: i,
5090
5096
  hidden: n.hidden ?? !1,
5091
5097
  readonly: n.readonly ?? !1,
@@ -5093,11 +5099,11 @@ var os = {
5093
5099
  rules: n.rules ?? []
5094
5100
  };
5095
5101
  }
5096
- function ie(e) {
5097
- return Object.fromEntries(Object.entries(e).filter(([e]) => te.has(e)));
5102
+ function U(e) {
5103
+ return Object.fromEntries(Object.entries(e).filter(([e]) => L.has(e)));
5098
5104
  }
5099
5105
  function ae(e) {
5100
- return Object.fromEntries(Object.entries(e).filter(([e]) => !te.has(e)));
5106
+ return Object.fromEntries(Object.entries(e).filter(([e]) => !L.has(e)));
5101
5107
  }
5102
5108
  function oe(e, t) {
5103
5109
  return Object.keys(t).length === 0 ? e : typeof e == "function" ? ((n) => ({
@@ -5108,22 +5114,22 @@ var os = {
5108
5114
  ...t
5109
5115
  };
5110
5116
  }
5111
- async function K(e) {
5117
+ async function se(e) {
5112
5118
  p.value = { ...e }, await ee(), await ke();
5113
5119
  }
5114
- function ce(e) {
5115
- K(e);
5120
+ function K(e) {
5121
+ se(e);
5116
5122
  }
5117
5123
  function le() {
5118
- K({});
5124
+ se({});
5119
5125
  }
5120
5126
  function q(e = f.value) {
5121
- f.value = { ...e }, ce(f.value);
5127
+ f.value = { ...e }, K(f.value);
5122
5128
  }
5123
5129
  function de(e = {}) {
5124
- f.value = { ...e }, K(f.value);
5130
+ f.value = { ...e }, se(f.value);
5125
5131
  }
5126
- let [fe, X] = is({
5132
+ let [fe, X] = os({
5127
5133
  ...r.drawerProps,
5128
5134
  schema: m.value,
5129
5135
  schemaFormProps: {
@@ -5302,27 +5308,27 @@ var os = {
5302
5308
  reload: ke
5303
5309
  }), (e, t) => {
5304
5310
  let n = H("access");
5305
- return R(), C(y, null, [D(na, null, {
5311
+ return R(), C(y, null, [D(ia, null, {
5306
5312
  default: J(() => [
5307
5313
  V(e.$slots, "prepend", {}, void 0, !0),
5308
5314
  e.$slots.search ? V(e.$slots, "search", {
5309
5315
  values: f.value,
5310
5316
  search: q,
5311
5317
  reset: de
5312
- }, void 0, !0, 0) : g.value ? (R(), x(ss, P({
5318
+ }, void 0, !0, 0) : g.value ? (R(), x(ls, P({
5313
5319
  key: 1,
5314
5320
  modelValue: f.value,
5315
5321
  "onUpdate:modelValue": t[0] ||= (e) => f.value = e,
5316
5322
  class: "crud-page__search"
5317
- }, L.value, {
5323
+ }, I.value, {
5318
5324
  schema: h.value,
5319
- onSearch: ce,
5325
+ onSearch: K,
5320
5326
  onReset: le
5321
5327
  }), T({ _: 2 }, [B(w.value, (t) => ({
5322
5328
  name: t,
5323
- fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5329
+ fn: J((n) => [V(e.$slots, t, te(A(n)), void 0, !0)])
5324
5330
  }))]), 1040, ["modelValue", "schema"])) : S("", !0),
5325
- D(Pi, P({
5331
+ D(Ii, P({
5326
5332
  ref_key: "tableRef",
5327
5333
  ref: o
5328
5334
  }, F.value, {
@@ -5374,7 +5380,7 @@ var os = {
5374
5380
  _: 2
5375
5381
  }, [B(v.value, (t) => ({
5376
5382
  name: t,
5377
- fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5383
+ fn: J((n) => [V(e.$slots, t, te(A(n)), void 0, !0)])
5378
5384
  }))]), 1040, [
5379
5385
  "row-key",
5380
5386
  "columns",
@@ -5392,22 +5398,22 @@ var os = {
5392
5398
  }, [
5393
5399
  B(w.value, (t) => ({
5394
5400
  name: t,
5395
- fn: J((n) => [V(e.$slots, t, I(A(n)), void 0, !0)])
5401
+ fn: J((n) => [V(e.$slots, t, te(A(n)), void 0, !0)])
5396
5402
  })),
5397
5403
  e.$slots.header ? {
5398
5404
  name: "header",
5399
- fn: J((t) => [V(e.$slots, "header", I(A(t)), void 0, !0)]),
5405
+ fn: J((t) => [V(e.$slots, "header", te(A(t)), void 0, !0)]),
5400
5406
  key: "0"
5401
5407
  } : void 0,
5402
5408
  e.$slots.footer ? {
5403
5409
  name: "footer",
5404
- fn: J((t) => [V(e.$slots, "footer", I(A(t)), void 0, !0)]),
5410
+ fn: J((t) => [V(e.$slots, "footer", te(A(t)), void 0, !0)]),
5405
5411
  key: "1"
5406
5412
  } : void 0
5407
5413
  ]), 1024)], 64);
5408
5414
  };
5409
5415
  }
5410
- }), [["__scopeId", "data-v-a852aef4"]]), ls = /* @__PURE__ */ k({
5416
+ }), [["__scopeId", "data-v-a852aef4"]]), ds = /* @__PURE__ */ k({
5411
5417
  __name: "index",
5412
5418
  props: {
5413
5419
  className: { default: "disguiseicon" },
@@ -5417,7 +5423,7 @@ var os = {
5417
5423
  let t = e;
5418
5424
  return (e, n) => (R(), x(G(Z), P(e.$attrs, { class: ["disguise iconfont", t.icon ? `${t.className}-${t.icon}` : void 0] }), null, 16, ["class"]));
5419
5425
  }
5420
- }), us = ["src"], ds = { class: "image-upload__mask" }, fs = { class: "image-upload__text" }, ps = /*#__PURE__*/ f(/* @__PURE__ */ k({
5426
+ }), fs = ["src"], ps = { class: "image-upload__mask" }, ms = { class: "image-upload__text" }, hs = /*#__PURE__*/ f(/* @__PURE__ */ k({
5421
5427
  __name: "index",
5422
5428
  props: /*@__PURE__*/ N({
5423
5429
  accept: { default: () => [
@@ -5439,7 +5445,7 @@ var os = {
5439
5445
  }),
5440
5446
  emits: ["update:modelValue"],
5441
5447
  setup(e) {
5442
- let t = e, n = K(e, "modelValue"), { resolveImageUrl: r } = p(), i = z(!1), a = z(!1), o = b(() => r(n.value)), s = b(() => ({
5448
+ let t = e, n = se(e, "modelValue"), { resolveImageUrl: r } = p(), i = z(!1), a = z(!1), o = b(() => r(n.value)), s = b(() => ({
5443
5449
  width: `${t.width}px`,
5444
5450
  height: `${t.height}px`
5445
5451
  }));
@@ -5465,12 +5471,12 @@ var os = {
5465
5471
  return (t, n) => (R(), C("div", { class: F(["image-upload", { "is-disabled": e.disabled }]) }, [o.value ? (R(), C("div", {
5466
5472
  key: 0,
5467
5473
  class: "image-upload__box",
5468
- style: L(s.value)
5474
+ style: I(s.value)
5469
5475
  }, [w("img", {
5470
5476
  src: o.value,
5471
5477
  alt: "",
5472
5478
  class: "image-upload__img"
5473
- }, null, 8, us), w("div", ds, [D(G(Z), {
5479
+ }, null, 8, fs), w("div", ps, [D(G(Z), {
5474
5480
  class: "image-upload__action",
5475
5481
  title: G(u)("components.imageUpload.preview"),
5476
5482
  onClick: n[0] ||= (e) => a.value = !0
@@ -5495,11 +5501,11 @@ var os = {
5495
5501
  }, {
5496
5502
  default: J(() => [w("div", {
5497
5503
  class: "image-upload__box is-empty",
5498
- style: L(s.value)
5504
+ style: I(s.value)
5499
5505
  }, [D(G(Z), { class: F(["image-upload__icon", { "is-loading": i.value }]) }, {
5500
5506
  default: J(() => [i.value ? (R(), x(G(at), { key: 0 })) : (R(), x(G(st), { key: 1 }))]),
5501
5507
  _: 1
5502
- }, 8, ["class"]), w("span", fs, W(i.value ? G(u)("components.imageUpload.uploading") : G(u)("components.imageUpload.upload")), 1)], 4)]),
5508
+ }, 8, ["class"]), w("span", ms, W(i.value ? G(u)("components.imageUpload.uploading") : G(u)("components.imageUpload.upload")), 1)], 4)]),
5503
5509
  _: 1
5504
5510
  }, 8, ["accept", "disabled"])), a.value ? (R(), x(G(we), {
5505
5511
  key: 2,
@@ -5510,7 +5516,7 @@ var os = {
5510
5516
  }
5511
5517
  }), [["__scopeId", "data-v-c6aeef2e"]]);
5512
5518
  // src/setup.ts
5513
- function ms(e = {}) {
5519
+ function gs(e = {}) {
5514
5520
  l(e);
5515
5521
  }
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 };
5522
+ export { na as AsyncSelect, ia as BaseCard, us as CrudPage, Vi as DialogList, Ir as DictTag, ds as DisguiseIcon, as as DrawerFormPage, g as FileUpload, hs as ImageUpload, t as ImagesView, ar as ImportDialog, v as PictureUpload, To as RichTextEditor, Yo as SchemaForm, ls as SearchForm, Ii as TableEntity, m as UserAvatarInfo, sa as getEntity, ca as paginateLocally, oa as registerEntity, ha as registerSchemaFormComponents, gs as setupDisguise, os as useDrawerFormPage };