@morghulis/core 1.0.40 → 1.0.41

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,4 +1,4 @@
1
- import { hasInjectionContext as jr, inject as Et, getCurrentInstance as qr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Hr, onScopeDispose as Kr, watch as J, toRefs as tl, unref as h, onUnmounted as Pa, defineComponent as R, onMounted as $t, onBeforeUnmount as Fa, createElementBlock as M, openBlock as b, normalizeStyle as je, useSlots as Tn, normalizeClass as Vt, createBlock as k, createCommentVNode as K, renderSlot as X, resolveComponent as w, withCtx as f, createVNode as m, createElementVNode as te, createTextVNode as S, resolveDirective as Tt, withKeys as Le, createSlots as ko, withDirectives as Ye, toDisplayString as z, Fragment as H, defineAsyncComponent as Wt, shallowRef as Yr, renderList as se, resolveDynamicComponent as An, mergeProps as ke, vShow as Wr } from "vue";
1
+ import { hasInjectionContext as jr, inject as Et, getCurrentInstance as qr, effectScope as Ia, ref as x, markRaw as it, reactive as Kt, isRef as ie, isReactive as wo, toRef as Yn, toRaw as Yt, nextTick as Ve, computed as O, getCurrentScope as Hr, onScopeDispose as Kr, watch as J, toRefs as tl, unref as h, onUnmounted as Pa, defineComponent as I, onMounted as $t, onBeforeUnmount as Fa, createElementBlock as M, openBlock as b, normalizeStyle as je, useSlots as Tn, normalizeClass as Vt, createBlock as k, createCommentVNode as K, renderSlot as Z, resolveComponent as w, withCtx as f, createVNode as m, createElementVNode as te, createTextVNode as S, resolveDirective as Tt, withKeys as Le, createSlots as ko, withDirectives as Ye, toDisplayString as z, Fragment as H, defineAsyncComponent as Wt, shallowRef as Yr, renderList as se, resolveDynamicComponent as An, mergeProps as ke, vShow as Wr } from "vue";
2
2
  import { library as Gr } from "@fortawesome/fontawesome-svg-core";
3
3
  import { faUser as Jr, faPaperPlane as Xr, faRefresh as Zr, faExchangeAlt as Qr, faCalculator as ei, faDatabase as ti, faClose as ni, faPlus as oi, faSave as li, faMinusSquare as ai, faSearch as si, faBan as ri, faEdit as ii, faTrash as ui, faPaste as ci, faPlusSquare as di, faLeaf as pi, faFolder as fi, faTable as mi, faUpload as _i, faClone as gi, faDownload as hi, faFolderOpen as vi, faExpand as yi, faCode as bi, faCheckCircle as wi, faInfoCircle as ki, faClipboard as Ei, faFileExcel as xi, faXmark as Ci, faXmarkCircle as Oi, faXmarkSquare as Si, faWarning as $i, faFileText as Vi, faBookOpen as Ti, faFileImport as Ai, faCloudUploadAlt as Di, faCloudUpload as Ri, faCheckSquare as Ii, faSort as Pi, faLayerGroup as Fi, faFile as Ni, faA as Ui, faCheck as Bi, faSortDesc as Li, faSearchMinus as zi, faSortAsc as Mi, faCaretSquareUp as ji, faTableCells as qi, faTableList as Hi, faRobot as Ki, faLock as Yi, faQuoteLeftAlt as Wi, faScroll as Gi, faSlidersH as Ji, faCalendarDay as Xi, faListUl as Zi, faCalendarWeek as Qi, faCalendarAlt as eu, faLink as tu, faUnlink as nu, faBox as ou, faBoxes as lu, faFolderTree as au, faBolt as su, faCheckToSlot as ru, faCircleDot as iu, faCircle as uu, faCopy as cu, faCogs as du, faListAlt as pu, faUnlock as fu, faPen as mu, faSpinner as _u, faRightToBracket as gu, faRightFromBracket as hu, faEnvelope as vu, faKey as yu, faCodeBranch as bu, faAddressCard as wu, faHome as ku, faCircleUser as Eu, faUsers as xu, faList as Cu, faUserLock as Ou, faRotateLeft as Su, faBars as $u, faEye as Vu, faAt as Tu, faUserTag as Au, faLockOpen as Du, faCalendar as Ru, faStar as Iu, faCog as Pu, faSquare as Fu, faBoxOpen as Nu, faUserGroup as Uu, faHourglass as Bu, faUserGraduate as Lu, faAsterisk as zu, faUserPlus as Mu } from "@fortawesome/free-solid-svg-icons";
4
4
  import { pick as ve, isEqual as Ie, isEmpty as qe, isBoolean as Dn, isNumber as no, isArray as oo, cloneDeep as Qe, keyBy as Eo, merge as xo, range as Na, intersection as pn, union as lo, difference as ju, omit as Rn, get as qu, mapValues as Hu } from "lodash";
@@ -191,16 +191,16 @@ var nc = Object.create, La = Object.defineProperty, oc = Object.getOwnPropertyDe
191
191
  function c(g, p) {
192
192
  const v = Object.keys(g), y = new Array(v.length);
193
193
  for (let E = 0; E < v.length; E++) {
194
- const V = v[E], D = g[V];
194
+ const T = v[E], D = g[T];
195
195
  if (typeof D != "object" || D === null)
196
- y[V] = D;
196
+ y[T] = D;
197
197
  else if (D.constructor !== Object && (u = i.get(D.constructor)))
198
- y[V] = u(D, p);
198
+ y[T] = u(D, p);
199
199
  else if (ArrayBuffer.isView(D))
200
- y[V] = n(D);
200
+ y[T] = n(D);
201
201
  else {
202
202
  const C = a.indexOf(D);
203
- C !== -1 ? y[V] = r[C] : y[V] = p(D);
203
+ C !== -1 ? y[T] = r[C] : y[T] = p(D);
204
204
  }
205
205
  }
206
206
  return y;
@@ -1792,30 +1792,30 @@ var Ec = Object.create, qa = Object.defineProperty, xc = Object.getOwnPropertyDe
1792
1792
  "¤": "tien te"
1793
1793
  }
1794
1794
  }, i = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(y, E) {
1795
- var V = "-", D = "", C = "", A = !0, P = {}, $, F, U, T, I, B, q, Z, de, ne, G, ae, oe, Ne, pe = "";
1795
+ var T = "-", D = "", C = "", V = !0, F = {}, $, P, U, A, R, B, q, Q, de, ne, G, ae, oe, Ne, pe = "";
1796
1796
  if (typeof y != "string")
1797
1797
  return "";
1798
- if (typeof E == "string" && (V = E), q = r.en, Z = a.en, typeof E == "object") {
1799
- $ = E.maintainCase || !1, P = E.custom && typeof E.custom == "object" ? E.custom : P, U = +E.truncate > 1 && E.truncate || !1, T = E.uric || !1, I = E.uricNoSlash || !1, B = E.mark || !1, A = !(E.symbols === !1 || E.lang === !1), V = E.separator || V, T && (pe += i), I && (pe += u), B && (pe += c), q = E.lang && r[E.lang] && A ? r[E.lang] : A ? r.en : {}, Z = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(me) {
1800
- P[me + ""] = me + "";
1801
- }), F = !0) : F = !!E.titleCase, E.custom && typeof E.custom.length == "number" && Array.prototype.toString.call(E.custom) && E.custom.forEach(function(me) {
1802
- P[me + ""] = me + "";
1803
- }), Object.keys(P).forEach(function(me) {
1798
+ if (typeof E == "string" && (T = E), q = r.en, Q = a.en, typeof E == "object") {
1799
+ $ = E.maintainCase || !1, F = E.custom && typeof E.custom == "object" ? E.custom : F, U = +E.truncate > 1 && E.truncate || !1, A = E.uric || !1, R = E.uricNoSlash || !1, B = E.mark || !1, V = !(E.symbols === !1 || E.lang === !1), T = E.separator || T, A && (pe += i), R && (pe += u), B && (pe += c), q = E.lang && r[E.lang] && V ? r[E.lang] : V ? r.en : {}, Q = E.lang && a[E.lang] ? a[E.lang] : E.lang === !1 || E.lang === !0 ? {} : a.en, E.titleCase && typeof E.titleCase.length == "number" && Array.prototype.toString.call(E.titleCase) ? (E.titleCase.forEach(function(me) {
1800
+ F[me + ""] = me + "";
1801
+ }), P = !0) : P = !!E.titleCase, E.custom && typeof E.custom.length == "number" && Array.prototype.toString.call(E.custom) && E.custom.forEach(function(me) {
1802
+ F[me + ""] = me + "";
1803
+ }), Object.keys(F).forEach(function(me) {
1804
1804
  var He;
1805
- me.length > 1 ? He = new RegExp("\\b" + g(me) + "\\b", "gi") : He = new RegExp(g(me), "gi"), y = y.replace(He, P[me]);
1805
+ me.length > 1 ? He = new RegExp("\\b" + g(me) + "\\b", "gi") : He = new RegExp(g(me), "gi"), y = y.replace(He, F[me]);
1806
1806
  });
1807
- for (G in P)
1807
+ for (G in F)
1808
1808
  pe += G;
1809
1809
  }
1810
- for (pe += V, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1, Ne = !1, ne = 0, ae = y.length; ne < ae; ne++)
1811
- G = y[ne], p(G, P) ? oe = !1 : Z[G] ? (G = oe && Z[G].match(/[A-Za-z0-9]/) ? " " + Z[G] : Z[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") : Ne === !0 ? (G = s[C] + o[G], C = "") : G = oe && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], oe = !1, Ne = !1) : G in s ? (C += G, G = "", ne === ae - 1 && (G = s[C]), Ne = !0) : /* process symbol chars */ q[G] && !(T && i.indexOf(G) !== -1) && !(I && u.indexOf(G) !== -1) ? (G = oe || D.substr(-1).match(/[A-Za-z0-9]/) ? V + q[G] : q[G], G += y[ne + 1] !== void 0 && y[ne + 1].match(/[A-Za-z0-9]/) ? V : "", oe = !0) : (Ne === !0 ? (G = s[C] + G, C = "", Ne = !1) : oe && (/[A-Za-z0-9]/.test(G) || D.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), oe = !1), D += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), V);
1812
- return F && (D = D.replace(/(\w)(\S*)/g, function(me, He, st) {
1810
+ for (pe += T, pe = g(pe), y = y.replace(/(^\s+|\s+$)/g, ""), oe = !1, Ne = !1, ne = 0, ae = y.length; ne < ae; ne++)
1811
+ G = y[ne], p(G, F) ? oe = !1 : Q[G] ? (G = oe && Q[G].match(/[A-Za-z0-9]/) ? " " + Q[G] : Q[G], oe = !1) : G in o ? (ne + 1 < ae && l.indexOf(y[ne + 1]) >= 0 ? (C += G, G = "") : Ne === !0 ? (G = s[C] + o[G], C = "") : G = oe && o[G].match(/[A-Za-z0-9]/) ? " " + o[G] : o[G], oe = !1, Ne = !1) : G in s ? (C += G, G = "", ne === ae - 1 && (G = s[C]), Ne = !0) : /* process symbol chars */ q[G] && !(A && i.indexOf(G) !== -1) && !(R && u.indexOf(G) !== -1) ? (G = oe || D.substr(-1).match(/[A-Za-z0-9]/) ? T + q[G] : q[G], G += y[ne + 1] !== void 0 && y[ne + 1].match(/[A-Za-z0-9]/) ? T : "", oe = !0) : (Ne === !0 ? (G = s[C] + G, C = "", Ne = !1) : oe && (/[A-Za-z0-9]/.test(G) || D.substr(-1).match(/A-Za-z0-9]/)) && (G = " " + G), oe = !1), D += G.replace(new RegExp("[^\\w\\s" + pe + "_-]", "g"), T);
1812
+ return P && (D = D.replace(/(\w)(\S*)/g, function(me, He, st) {
1813
1813
  var vt = He.toUpperCase() + (st !== null ? st : "");
1814
- return Object.keys(P).indexOf(vt.toLowerCase()) < 0 ? vt : vt.toLowerCase();
1815
- })), D = D.replace(/\s+/g, V).replace(new RegExp("\\" + V + "+", "g"), V).replace(new RegExp("(^\\" + V + "+|\\" + V + "+$)", "g"), ""), U && D.length > U && (de = D.charAt(U) === V, D = D.slice(0, U), de || (D = D.slice(0, D.lastIndexOf(V)))), !$ && !F && (D = D.toLowerCase()), D;
1814
+ return Object.keys(F).indexOf(vt.toLowerCase()) < 0 ? vt : vt.toLowerCase();
1815
+ })), D = D.replace(/\s+/g, T).replace(new RegExp("\\" + T + "+", "g"), T).replace(new RegExp("(^\\" + T + "+|\\" + T + "+$)", "g"), ""), U && D.length > U && (de = D.charAt(U) === T, D = D.slice(0, U), de || (D = D.slice(0, D.lastIndexOf(T)))), !$ && !P && (D = D.toLowerCase()), D;
1816
1816
  }, _ = function(y) {
1817
- return function(V) {
1818
- return d(V, y);
1817
+ return function(T) {
1818
+ return d(T, y);
1819
1819
  };
1820
1820
  }, g = function(y) {
1821
1821
  return y.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
@@ -3390,8 +3390,8 @@ var ys = (e, t, n, o, l = [], s = [], a = /* @__PURE__ */ new Map()) => {
3390
3390
  if (v === "__proto__" || v === "constructor" || v === "prototype")
3391
3391
  throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
3392
3392
  const y = ys(p, t, n, o, [...l, v], [...s, e], a);
3393
- d[v] = y.transformedValue, tt(y.annotations) ? _[v] = y.annotations : Jt(y.annotations) && Ot(y.annotations, (E, V) => {
3394
- _[cs(v) + "." + V] = E;
3393
+ d[v] = y.transformedValue, tt(y.annotations) ? _[v] = y.annotations : Jt(y.annotations) && Ot(y.annotations, (E, T) => {
3394
+ _[cs(v) + "." + T] = E;
3395
3395
  });
3396
3396
  });
3397
3397
  const g = co(_) ? {
@@ -4196,33 +4196,33 @@ function go(e, t, n = {}, o, l, s) {
4196
4196
  if (process.env.NODE_ENV !== "production" && !o._e.active)
4197
4197
  throw new Error("Pinia destroyed");
4198
4198
  const i = { deep: !0 };
4199
- process.env.NODE_ENV !== "production" && (i.onTrigger = (T) => {
4200
- u ? g = T : u == !1 && !$._hotUpdating && (Array.isArray(g) ? g.push(T) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4199
+ process.env.NODE_ENV !== "production" && (i.onTrigger = (A) => {
4200
+ u ? g = A : u == !1 && !$._hotUpdating && (Array.isArray(g) ? g.push(A) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4201
4201
  });
4202
4202
  let u, c, d = [], _ = [], g;
4203
4203
  const p = o.state.value[e];
4204
4204
  !s && !p && (process.env.NODE_ENV === "production" || !l) && (o.state.value[e] = {});
4205
4205
  const v = x({});
4206
4206
  let y;
4207
- function E(T) {
4208
- let I;
4209
- u = c = !1, process.env.NODE_ENV !== "production" && (g = []), typeof T == "function" ? (T(o.state.value[e]), I = {
4207
+ function E(A) {
4208
+ let R;
4209
+ u = c = !1, process.env.NODE_ENV !== "production" && (g = []), typeof A == "function" ? (A(o.state.value[e]), R = {
4210
4210
  type: ze.patchFunction,
4211
4211
  storeId: e,
4212
4212
  events: g
4213
- }) : (_o(o.state.value[e], T), I = {
4213
+ }) : (_o(o.state.value[e], A), R = {
4214
4214
  type: ze.patchObject,
4215
- payload: T,
4215
+ payload: A,
4216
4216
  storeId: e,
4217
4217
  events: g
4218
4218
  });
4219
4219
  const B = y = Symbol();
4220
4220
  Ve().then(() => {
4221
4221
  y === B && (u = !0);
4222
- }), c = !0, yt(d, I, o.state.value[e]);
4222
+ }), c = !0, yt(d, R, o.state.value[e]);
4223
4223
  }
4224
- const V = s ? function() {
4225
- const { state: I } = n, B = I ? I() : {};
4224
+ const T = s ? function() {
4225
+ const { state: R } = n, B = R ? R() : {};
4226
4226
  this.$patch((q) => {
4227
4227
  $e(q, B);
4228
4228
  });
@@ -4235,14 +4235,14 @@ function go(e, t, n = {}, o, l, s) {
4235
4235
  function D() {
4236
4236
  a.stop(), d = [], _ = [], o._s.delete(e);
4237
4237
  }
4238
- const C = (T, I = "") => {
4239
- if (ia in T)
4240
- return T[Xn] = I, T;
4238
+ const C = (A, R = "") => {
4239
+ if (ia in A)
4240
+ return A[Xn] = R, A;
4241
4241
  const B = function() {
4242
4242
  Qt(o);
4243
- const q = Array.from(arguments), Z = [], de = [];
4243
+ const q = Array.from(arguments), Q = [], de = [];
4244
4244
  function ne(oe) {
4245
- Z.push(oe);
4245
+ Q.push(oe);
4246
4246
  }
4247
4247
  function G(oe) {
4248
4248
  de.push(oe);
@@ -4256,122 +4256,122 @@ function go(e, t, n = {}, o, l, s) {
4256
4256
  });
4257
4257
  let ae;
4258
4258
  try {
4259
- ae = T.apply(this && this.$id === e ? this : $, q);
4259
+ ae = A.apply(this && this.$id === e ? this : $, q);
4260
4260
  } catch (oe) {
4261
4261
  throw yt(de, oe), oe;
4262
4262
  }
4263
- return ae instanceof Promise ? ae.then((oe) => (yt(Z, oe), oe)).catch((oe) => (yt(de, oe), Promise.reject(oe))) : (yt(Z, ae), ae);
4263
+ return ae instanceof Promise ? ae.then((oe) => (yt(Q, oe), oe)).catch((oe) => (yt(de, oe), Promise.reject(oe))) : (yt(Q, ae), ae);
4264
4264
  };
4265
- return B[ia] = !0, B[Xn] = I, B;
4266
- }, A = /* @__PURE__ */ it({
4265
+ return B[ia] = !0, B[Xn] = R, B;
4266
+ }, V = /* @__PURE__ */ it({
4267
4267
  actions: {},
4268
4268
  getters: {},
4269
4269
  state: [],
4270
4270
  hotState: v
4271
- }), P = {
4271
+ }), F = {
4272
4272
  _p: o,
4273
4273
  // _s: scope,
4274
4274
  $id: e,
4275
4275
  $onAction: ra.bind(null, _),
4276
4276
  $patch: E,
4277
- $reset: V,
4278
- $subscribe(T, I = {}) {
4279
- const B = ra(d, T, I.detached, () => q()), q = a.run(() => J(() => o.state.value[e], (Z) => {
4280
- (I.flush === "sync" ? c : u) && T({
4277
+ $reset: T,
4278
+ $subscribe(A, R = {}) {
4279
+ const B = ra(d, A, R.detached, () => q()), q = a.run(() => J(() => o.state.value[e], (Q) => {
4280
+ (R.flush === "sync" ? c : u) && A({
4281
4281
  storeId: e,
4282
4282
  type: ze.direct,
4283
4283
  events: g
4284
- }, Z);
4285
- }, $e({}, i, I)));
4284
+ }, Q);
4285
+ }, $e({}, i, R)));
4286
4286
  return B;
4287
4287
  },
4288
4288
  $dispose: D
4289
4289
  }, $ = Kt(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xe ? $e(
4290
4290
  {
4291
- _hmrPayload: A,
4291
+ _hmrPayload: V,
4292
4292
  _customProperties: it(/* @__PURE__ */ new Set())
4293
4293
  // devtools custom properties
4294
4294
  },
4295
- P
4295
+ F
4296
4296
  // must be added later
4297
4297
  // setupStore
4298
- ) : P);
4298
+ ) : F);
4299
4299
  o._s.set(e, $);
4300
4300
  const U = (o._a && o._a.runWithContext || xp)(() => o._e.run(() => (a = Ia()).run(() => t({ action: C }))));
4301
- for (const T in U) {
4302
- const I = U[T];
4303
- if (ie(I) && !ua(I) || wo(I))
4304
- process.env.NODE_ENV !== "production" && l ? v.value[T] = Yn(U, T) : s || (p && Op(I) && (ie(I) ? I.value = p[T] : _o(I, p[T])), o.state.value[e][T] = I), process.env.NODE_ENV !== "production" && A.state.push(T);
4305
- else if (typeof I == "function") {
4306
- const B = process.env.NODE_ENV !== "production" && l ? I : C(I, T);
4307
- U[T] = B, process.env.NODE_ENV !== "production" && (A.actions[T] = I), r.actions[T] = I;
4308
- } else process.env.NODE_ENV !== "production" && ua(I) && (A.getters[T] = s ? (
4301
+ for (const A in U) {
4302
+ const R = U[A];
4303
+ if (ie(R) && !ua(R) || wo(R))
4304
+ process.env.NODE_ENV !== "production" && l ? v.value[A] = Yn(U, A) : s || (p && Op(R) && (ie(R) ? R.value = p[A] : _o(R, p[A])), o.state.value[e][A] = R), process.env.NODE_ENV !== "production" && V.state.push(A);
4305
+ else if (typeof R == "function") {
4306
+ const B = process.env.NODE_ENV !== "production" && l ? R : C(R, A);
4307
+ U[A] = B, process.env.NODE_ENV !== "production" && (V.actions[A] = R), r.actions[A] = R;
4308
+ } else process.env.NODE_ENV !== "production" && ua(R) && (V.getters[A] = s ? (
4309
4309
  // @ts-expect-error
4310
- n.getters[T]
4311
- ) : I, Xe && (U._getters || // @ts-expect-error: same
4312
- (U._getters = it([]))).push(T));
4310
+ n.getters[A]
4311
+ ) : R, Xe && (U._getters || // @ts-expect-error: same
4312
+ (U._getters = it([]))).push(A));
4313
4313
  }
4314
4314
  if ($e($, U), $e(Yt($), U), Object.defineProperty($, "$state", {
4315
4315
  get: () => process.env.NODE_ENV !== "production" && l ? v.value : o.state.value[e],
4316
- set: (T) => {
4316
+ set: (A) => {
4317
4317
  if (process.env.NODE_ENV !== "production" && l)
4318
4318
  throw new Error("cannot set hotState");
4319
- E((I) => {
4320
- $e(I, T);
4319
+ E((R) => {
4320
+ $e(R, A);
4321
4321
  });
4322
4322
  }
4323
- }), process.env.NODE_ENV !== "production" && ($._hotUpdate = it((T) => {
4324
- $._hotUpdating = !0, T._hmrPayload.state.forEach((I) => {
4325
- if (I in $.$state) {
4326
- const B = T.$state[I], q = $.$state[I];
4327
- typeof B == "object" && ft(B) && ft(q) ? Ts(B, q) : T.$state[I] = q;
4323
+ }), process.env.NODE_ENV !== "production" && ($._hotUpdate = it((A) => {
4324
+ $._hotUpdating = !0, A._hmrPayload.state.forEach((R) => {
4325
+ if (R in $.$state) {
4326
+ const B = A.$state[R], q = $.$state[R];
4327
+ typeof B == "object" && ft(B) && ft(q) ? Ts(B, q) : A.$state[R] = q;
4328
4328
  }
4329
- $[I] = Yn(T.$state, I);
4330
- }), Object.keys($.$state).forEach((I) => {
4331
- I in T.$state || delete $[I];
4332
- }), u = !1, c = !1, o.state.value[e] = Yn(T._hmrPayload, "hotState"), c = !0, Ve().then(() => {
4329
+ $[R] = Yn(A.$state, R);
4330
+ }), Object.keys($.$state).forEach((R) => {
4331
+ R in A.$state || delete $[R];
4332
+ }), u = !1, c = !1, o.state.value[e] = Yn(A._hmrPayload, "hotState"), c = !0, Ve().then(() => {
4333
4333
  u = !0;
4334
4334
  });
4335
- for (const I in T._hmrPayload.actions) {
4336
- const B = T[I];
4337
- $[I] = //
4338
- C(B, I);
4335
+ for (const R in A._hmrPayload.actions) {
4336
+ const B = A[R];
4337
+ $[R] = //
4338
+ C(B, R);
4339
4339
  }
4340
- for (const I in T._hmrPayload.getters) {
4341
- const B = T._hmrPayload.getters[I], q = s ? (
4340
+ for (const R in A._hmrPayload.getters) {
4341
+ const B = A._hmrPayload.getters[R], q = s ? (
4342
4342
  // special handling of options api
4343
4343
  O(() => (Qt(o), B.call($, $)))
4344
4344
  ) : B;
4345
- $[I] = //
4345
+ $[R] = //
4346
4346
  q;
4347
4347
  }
4348
- Object.keys($._hmrPayload.getters).forEach((I) => {
4349
- I in T._hmrPayload.getters || delete $[I];
4350
- }), Object.keys($._hmrPayload.actions).forEach((I) => {
4351
- I in T._hmrPayload.actions || delete $[I];
4352
- }), $._hmrPayload = T._hmrPayload, $._getters = T._getters, $._hotUpdating = !1;
4348
+ Object.keys($._hmrPayload.getters).forEach((R) => {
4349
+ R in A._hmrPayload.getters || delete $[R];
4350
+ }), Object.keys($._hmrPayload.actions).forEach((R) => {
4351
+ R in A._hmrPayload.actions || delete $[R];
4352
+ }), $._hmrPayload = A._hmrPayload, $._getters = A._getters, $._hotUpdating = !1;
4353
4353
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xe) {
4354
- const T = {
4354
+ const A = {
4355
4355
  writable: !0,
4356
4356
  configurable: !0,
4357
4357
  // avoid warning on devtools trying to display this property
4358
4358
  enumerable: !1
4359
4359
  };
4360
- ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
4361
- Object.defineProperty($, I, $e({ value: $[I] }, T));
4360
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((R) => {
4361
+ Object.defineProperty($, R, $e({ value: $[R] }, A));
4362
4362
  });
4363
4363
  }
4364
- return o._p.forEach((T) => {
4364
+ return o._p.forEach((A) => {
4365
4365
  if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Xe) {
4366
- const I = a.run(() => T({
4366
+ const R = a.run(() => A({
4367
4367
  store: $,
4368
4368
  app: o._a,
4369
4369
  pinia: o,
4370
4370
  options: r
4371
4371
  }));
4372
- Object.keys(I || {}).forEach((B) => $._customProperties.add(B)), $e($, I);
4372
+ Object.keys(R || {}).forEach((B) => $._customProperties.add(B)), $e($, R);
4373
4373
  } else
4374
- $e($, a.run(() => T({
4374
+ $e($, a.run(() => A({
4375
4375
  store: $,
4376
4376
  app: o._a,
4377
4377
  pinia: o,
@@ -5066,14 +5066,14 @@ function Ln(e, t, n) {
5066
5066
  if (!N.isUndefined(p)) {
5067
5067
  if (d.indexOf(p) !== -1)
5068
5068
  throw Error("Circular reference detected in " + v.join("."));
5069
- d.push(p), N.forEach(p, function(E, V) {
5069
+ d.push(p), N.forEach(p, function(E, T) {
5070
5070
  (!(N.isUndefined(E) || E === null) && l.call(
5071
5071
  t,
5072
5072
  E,
5073
- N.isString(V) ? V.trim() : V,
5073
+ N.isString(T) ? T.trim() : T,
5074
5074
  v,
5075
5075
  _
5076
- )) === !0 && g(E, v ? v.concat(V) : [V]);
5076
+ )) === !0 && g(E, v ? v.concat(T) : [T]);
5077
5077
  }), d.pop();
5078
5078
  }
5079
5079
  }
@@ -5749,7 +5749,7 @@ const er = (e) => {
5749
5749
  return;
5750
5750
  const D = Ce.from(
5751
5751
  "getAllResponseHeaders" in y && y.getAllResponseHeaders()
5752
- ), A = {
5752
+ ), V = {
5753
5753
  data: !r || r === "text" || r === "json" ? y.responseText : y.response,
5754
5754
  status: y.status,
5755
5755
  statusText: y.statusText,
@@ -5761,32 +5761,32 @@ const er = (e) => {
5761
5761
  n($), v();
5762
5762
  }, function($) {
5763
5763
  o($), v();
5764
- }, A), y = null;
5764
+ }, V), y = null;
5765
5765
  }
5766
5766
  "onloadend" in y ? y.onloadend = E : y.onreadystatechange = function() {
5767
5767
  !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(E);
5768
5768
  }, y.onabort = function() {
5769
5769
  y && (o(new ee("Request aborted", ee.ECONNABORTED, e, y)), y = null);
5770
5770
  }, y.onerror = function(C) {
5771
- const A = C && C.message ? C.message : "Network Error", P = new ee(A, ee.ERR_NETWORK, e, y);
5772
- P.event = C || null, o(P), y = null;
5771
+ const V = C && C.message ? C.message : "Network Error", F = new ee(V, ee.ERR_NETWORK, e, y);
5772
+ F.event = C || null, o(F), y = null;
5773
5773
  }, y.ontimeout = function() {
5774
5774
  let C = l.timeout ? "timeout of " + l.timeout + "ms exceeded" : "timeout exceeded";
5775
- const A = l.transitional || Gs;
5775
+ const V = l.transitional || Gs;
5776
5776
  l.timeoutErrorMessage && (C = l.timeoutErrorMessage), o(new ee(
5777
5777
  C,
5778
- A.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
5778
+ V.clarifyTimeoutError ? ee.ETIMEDOUT : ee.ECONNABORTED,
5779
5779
  e,
5780
5780
  y
5781
5781
  )), y = null;
5782
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in y && N.forEach(a.toJSON(), function(C, A) {
5783
- y.setRequestHeader(A, C);
5782
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in y && N.forEach(a.toJSON(), function(C, V) {
5783
+ y.setRequestHeader(V, C);
5784
5784
  }), N.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), r && r !== "json" && (y.responseType = l.responseType), u && ([_, p] = Cn(u, !0), y.addEventListener("progress", _)), i && y.upload && ([d, g] = Cn(i), y.upload.addEventListener("progress", d), y.upload.addEventListener("loadend", g)), (l.cancelToken || l.signal) && (c = (D) => {
5785
5785
  y && (o(!D || D.type ? new Pt(null, e, y) : D), y.abort(), y = null);
5786
5786
  }, l.cancelToken && l.cancelToken.subscribe(c), l.signal && (l.signal.aborted ? c() : l.signal.addEventListener("abort", c)));
5787
- const V = Gf(l.url);
5788
- if (V && be.protocols.indexOf(V) === -1) {
5789
- o(new ee("Unsupported protocol " + V + ":", ee.ERR_BAD_REQUEST, e));
5787
+ const T = Gf(l.url);
5788
+ if (T && be.protocols.indexOf(T) === -1) {
5789
+ o(new ee("Unsupported protocol " + T + ":", ee.ERR_BAD_REQUEST, e));
5790
5790
  return;
5791
5791
  }
5792
5792
  y.send(s || null);
@@ -5934,69 +5934,69 @@ const er = (e) => {
5934
5934
  url: v,
5935
5935
  method: y,
5936
5936
  data: E,
5937
- signal: V,
5937
+ signal: T,
5938
5938
  cancelToken: D,
5939
5939
  timeout: C,
5940
- onDownloadProgress: A,
5941
- onUploadProgress: P,
5940
+ onDownloadProgress: V,
5941
+ onUploadProgress: F,
5942
5942
  responseType: $,
5943
- headers: F,
5943
+ headers: P,
5944
5944
  withCredentials: U = "same-origin",
5945
- fetchOptions: T
5946
- } = er(p), I = t || fetch;
5945
+ fetchOptions: A
5946
+ } = er(p), R = t || fetch;
5947
5947
  $ = $ ? ($ + "").toLowerCase() : "text";
5948
- let B = lm([V, D && D.toAbortSignal()], C), q = null;
5949
- const Z = B && B.unsubscribe && (() => {
5948
+ let B = lm([T, D && D.toAbortSignal()], C), q = null;
5949
+ const Q = B && B.unsubscribe && (() => {
5950
5950
  B.unsubscribe();
5951
5951
  });
5952
5952
  let de;
5953
5953
  try {
5954
- if (P && u && y !== "get" && y !== "head" && (de = await g(F, E)) !== 0) {
5954
+ if (F && u && y !== "get" && y !== "head" && (de = await g(P, E)) !== 0) {
5955
5955
  let pe = new n(v, {
5956
5956
  method: "POST",
5957
5957
  body: E,
5958
5958
  duplex: "half"
5959
5959
  }), me;
5960
- if (N.isFormData(E) && (me = pe.headers.get("content-type")) && F.setContentType(me), pe.body) {
5960
+ if (N.isFormData(E) && (me = pe.headers.get("content-type")) && P.setContentType(me), pe.body) {
5961
5961
  const [He, st] = va(
5962
5962
  de,
5963
- Cn(ya(P))
5963
+ Cn(ya(F))
5964
5964
  );
5965
5965
  E = wa(pe.body, ka, He, st);
5966
5966
  }
5967
5967
  }
5968
5968
  N.isString(U) || (U = U ? "include" : "omit");
5969
5969
  const ne = s && "credentials" in n.prototype, G = {
5970
- ...T,
5970
+ ...A,
5971
5971
  signal: B,
5972
5972
  method: y.toUpperCase(),
5973
- headers: F.normalize().toJSON(),
5973
+ headers: P.normalize().toJSON(),
5974
5974
  body: E,
5975
5975
  duplex: "half",
5976
5976
  credentials: ne ? U : void 0
5977
5977
  };
5978
5978
  q = s && new n(v, G);
5979
- let ae = await (s ? I(q, T) : I(v, G));
5979
+ let ae = await (s ? R(q, A) : R(v, G));
5980
5980
  const oe = c && ($ === "stream" || $ === "response");
5981
- if (c && (A || oe && Z)) {
5981
+ if (c && (V || oe && Q)) {
5982
5982
  const pe = {};
5983
5983
  ["status", "statusText", "headers"].forEach((vt) => {
5984
5984
  pe[vt] = ae[vt];
5985
5985
  });
5986
- const me = N.toFiniteNumber(ae.headers.get("content-length")), [He, st] = A && va(
5986
+ const me = N.toFiniteNumber(ae.headers.get("content-length")), [He, st] = V && va(
5987
5987
  me,
5988
- Cn(ya(A), !0)
5988
+ Cn(ya(V), !0)
5989
5989
  ) || [];
5990
5990
  ae = new o(
5991
5991
  wa(ae.body, ka, He, () => {
5992
- st && st(), Z && Z();
5992
+ st && st(), Q && Q();
5993
5993
  }),
5994
5994
  pe
5995
5995
  );
5996
5996
  }
5997
5997
  $ = $ || "text";
5998
5998
  let Ne = await d[N.findKey(d, $) || "text"](ae, p);
5999
- return !oe && Z && Z(), await new Promise((pe, me) => {
5999
+ return !oe && Q && Q(), await new Promise((pe, me) => {
6000
6000
  Zs(pe, me, {
6001
6001
  data: Ne,
6002
6002
  headers: Ce.from(ae.headers),
@@ -6007,7 +6007,7 @@ const er = (e) => {
6007
6007
  });
6008
6008
  });
6009
6009
  } catch (ne) {
6010
- throw Z && Z(), ne && ne.name === "TypeError" && /Load failed|fetch/i.test(ne.message) ? Object.assign(
6010
+ throw Q && Q(), ne && ne.name === "TypeError" && /Load failed|fetch/i.test(ne.message) ? Object.assign(
6011
6011
  new ee("Network Error", ee.ERR_NETWORK, p, q),
6012
6012
  {
6013
6013
  cause: ne.cause || ne
@@ -6515,19 +6515,19 @@ function ym() {
6515
6515
  }, n.status = null, n.set = function(p) {
6516
6516
  var v = n.isStarted();
6517
6517
  p = l(p, o.minimum, 1), n.status = p === 1 ? null : p;
6518
- var y = n.render(!v), E = y.querySelector(o.barSelector), V = o.speed, D = o.easing;
6518
+ var y = n.render(!v), E = y.querySelector(o.barSelector), T = o.speed, D = o.easing;
6519
6519
  return y.offsetWidth, r(function(C) {
6520
- o.positionUsing === "" && (o.positionUsing = n.getPositioningCSS()), i(E, a(p, V, D)), p === 1 ? (i(y, {
6520
+ o.positionUsing === "" && (o.positionUsing = n.getPositioningCSS()), i(E, a(p, T, D)), p === 1 ? (i(y, {
6521
6521
  transition: "none",
6522
6522
  opacity: 1
6523
6523
  }), y.offsetWidth, setTimeout(function() {
6524
6524
  i(y, {
6525
- transition: "all " + V + "ms linear",
6525
+ transition: "all " + T + "ms linear",
6526
6526
  opacity: 0
6527
6527
  }), setTimeout(function() {
6528
6528
  n.remove(), C();
6529
- }, V);
6530
- }, V)) : setTimeout(C, V);
6529
+ }, T);
6530
+ }, T)) : setTimeout(C, T);
6531
6531
  }), this;
6532
6532
  }, n.isStarted = function() {
6533
6533
  return typeof n.status == "number";
@@ -6558,11 +6558,11 @@ function ym() {
6558
6558
  c(document.documentElement, "nprogress-busy");
6559
6559
  var v = document.createElement("div");
6560
6560
  v.id = "nprogress", v.innerHTML = o.template;
6561
- var y = v.querySelector(o.barSelector), E = p ? "-100" : s(n.status || 0), V = document.querySelector(o.parent), D;
6561
+ var y = v.querySelector(o.barSelector), E = p ? "-100" : s(n.status || 0), T = document.querySelector(o.parent), D;
6562
6562
  return i(y, {
6563
6563
  transition: "all 0 linear",
6564
6564
  transform: "translate3d(" + E + "%,0,0)"
6565
- }), o.showSpinner || (D = v.querySelector(o.spinnerSelector), D && g(D)), V != document.body && c(V, "nprogress-custom-parent"), V.appendChild(v), v;
6565
+ }), o.showSpinner || (D = v.querySelector(o.spinnerSelector), D && g(D)), T != document.body && c(T, "nprogress-custom-parent"), T.appendChild(v), v;
6566
6566
  }, n.remove = function() {
6567
6567
  d(document.documentElement, "nprogress-busy"), d(document.querySelector(o.parent), "nprogress-custom-parent");
6568
6568
  var p = document.getElementById("nprogress");
@@ -6595,30 +6595,30 @@ function ym() {
6595
6595
  })(), i = /* @__PURE__ */ (function() {
6596
6596
  var p = ["Webkit", "O", "Moz", "ms"], v = {};
6597
6597
  function y(C) {
6598
- return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, P) {
6599
- return P.toUpperCase();
6598
+ return C.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(V, F) {
6599
+ return F.toUpperCase();
6600
6600
  });
6601
6601
  }
6602
6602
  function E(C) {
6603
- var A = document.body.style;
6604
- if (C in A) return C;
6605
- for (var P = p.length, $ = C.charAt(0).toUpperCase() + C.slice(1), F; P--; )
6606
- if (F = p[P] + $, F in A) return F;
6603
+ var V = document.body.style;
6604
+ if (C in V) return C;
6605
+ for (var F = p.length, $ = C.charAt(0).toUpperCase() + C.slice(1), P; F--; )
6606
+ if (P = p[F] + $, P in V) return P;
6607
6607
  return C;
6608
6608
  }
6609
- function V(C) {
6609
+ function T(C) {
6610
6610
  return C = y(C), v[C] || (v[C] = E(C));
6611
6611
  }
6612
- function D(C, A, P) {
6613
- A = V(A), C.style[A] = P;
6612
+ function D(C, V, F) {
6613
+ V = T(V), C.style[V] = F;
6614
6614
  }
6615
- return function(C, A) {
6616
- var P = arguments, $, F;
6617
- if (P.length == 2)
6618
- for ($ in A)
6619
- F = A[$], F !== void 0 && A.hasOwnProperty($) && D(C, $, F);
6615
+ return function(C, V) {
6616
+ var F = arguments, $, P;
6617
+ if (F.length == 2)
6618
+ for ($ in V)
6619
+ P = V[$], P !== void 0 && V.hasOwnProperty($) && D(C, $, P);
6620
6620
  else
6621
- D(C, P[1], P[2]);
6621
+ D(C, F[1], F[2]);
6622
6622
  };
6623
6623
  })();
6624
6624
  function u(p, v) {
@@ -7125,18 +7125,18 @@ function Ae(e) {
7125
7125
  const { $isTree: c, $fields: d } = t.value;
7126
7126
  let _ = c ? ["id", "sort", "pid", "isLeaf"] : ["id, sort"], g = _.map((v) => v);
7127
7127
  Object.values(d).map((v) => {
7128
- const { prop: y, name: E, domain: V } = v;
7128
+ const { prop: y, name: E, domain: T } = v;
7129
7129
  _.includes(y) || (g.push(E), _.push(y));
7130
7130
  });
7131
7131
  const p = u.map((v) => _.map((y) => {
7132
- const E = d[y] || {}, V = E.domain;
7133
- if (ge.DOMAINS.multiple.includes(V)) {
7134
- const D = `${y}_set`, C = v[D], { label: A } = E.refer;
7135
- return C.map((P) => P[A]).join(";");
7136
- } else if (ge.DOMAINS.referred.includes(V)) {
7137
- const D = y.replace("_id", ""), C = v[D], { label: A } = E.refer;
7138
- return C ? C[A] : null;
7139
- } else return V === "JSONField" ? JSON.stringify(v[y]) : v[y];
7132
+ const E = d[y] || {}, T = E.domain;
7133
+ if (ge.DOMAINS.multiple.includes(T)) {
7134
+ const D = `${y}_set`, C = v[D], { label: V } = E.refer;
7135
+ return C.map((F) => F[V]).join(";");
7136
+ } else if (ge.DOMAINS.referred.includes(T)) {
7137
+ const D = y.replace("_id", ""), C = v[D], { label: V } = E.refer;
7138
+ return C ? C[V] : null;
7139
+ } else return T === "JSONField" ? JSON.stringify(v[y]) : v[y];
7140
7140
  }));
7141
7141
  return [g, ...p];
7142
7142
  }
@@ -7150,8 +7150,8 @@ function Ae(e) {
7150
7150
  $index: c
7151
7151
  };
7152
7152
  Object.values(d).forEach((E) => {
7153
- const V = new cr(E).parse(u), D = E.prop;
7154
- p.item[D] = V.value, p.cells[D] = V, p.valid &&= V.valid;
7153
+ const T = new cr(E).parse(u), D = E.prop;
7154
+ p.item[D] = T.value, p.cells[D] = T, p.valid &&= T.valid;
7155
7155
  });
7156
7156
  const y = _ ? _(u) : null;
7157
7157
  return y != null && (p.message = y.message, p.valid = !1), p;
@@ -7174,7 +7174,7 @@ function Ae(e) {
7174
7174
  _ = y ? _ : "CharField";
7175
7175
  let {
7176
7176
  tool: E,
7177
- column_width: V,
7177
+ column_width: T,
7178
7178
  align: D
7179
7179
  } = y || Aa[_];
7180
7180
  E = qe(g) ? E : "set";
@@ -7185,7 +7185,7 @@ function Ae(e) {
7185
7185
  domain: _,
7186
7186
  tool: E,
7187
7187
  align: D,
7188
- column_width: V,
7188
+ column_width: T,
7189
7189
  not_null: v,
7190
7190
  allow_edit: !0,
7191
7191
  allow_order: !0,
@@ -7245,8 +7245,8 @@ function he(e, t) {
7245
7245
  const p = { ...new Ft(c, d), code: o.value };
7246
7246
  a("search", p).then((v) => {
7247
7247
  const y = new nt(v), E = n.value.convertor;
7248
- y.results.forEach((V) => {
7249
- y.type === "tree" && (V.children = []), E && E(V);
7248
+ y.results.forEach((T) => {
7249
+ y.type === "tree" && (T.children = []), E && E(T);
7250
7250
  }), _(y);
7251
7251
  });
7252
7252
  }),
@@ -7348,13 +7348,13 @@ function fr(e) {
7348
7348
  return Object.values(n.value).filter((v) => v.saved).sort(mr(_, g));
7349
7349
  }), s = O(() => l.value.length), a = O(() => l.value.length), r = x(0), i = (_) => {
7350
7350
  const g = [], p = {};
7351
- _.forEach((V, D) => {
7352
- const C = V.id, A = n.value[C];
7353
- A ? p[C] = { ...A, ...V } : g.push(V);
7351
+ _.forEach((T, D) => {
7352
+ const C = T.id, V = n.value[C];
7353
+ V ? p[C] = { ...V, ...T } : g.push(T);
7354
7354
  });
7355
7355
  const v = r.value + 1;
7356
- g.map((V, D) => c(V, D + v)), r.value += g.length;
7357
- const y = { ...p, ...u(g) }, E = Object.keys(y).map((V) => parseInt(V));
7356
+ g.map((T, D) => c(T, D + v)), r.value += g.length;
7357
+ const y = { ...p, ...u(g) }, E = Object.keys(y).map((T) => parseInt(T));
7358
7358
  return n.value = { ...n.value, ...y }, E;
7359
7359
  };
7360
7360
  J(t, () => {
@@ -7549,46 +7549,46 @@ function Ho(e, t, n) {
7549
7549
  manager: v,
7550
7550
  payload: y,
7551
7551
  loading: E
7552
- } = he(a, !0), { setEnable: V } = Ae(o);
7553
- J(() => e.value.disabled, ($) => V(!$));
7552
+ } = he(a, !0), { setEnable: T } = Ae(o);
7553
+ J(() => e.value.disabled, ($) => T(!$));
7554
7554
  function D() {
7555
7555
  v.meta_view().then(($) => {
7556
- $.$$validator = e.value.validator, e.value.beforeInit && e.value.beforeInit($), o.value = $, e.value.disabled && V(!1), C();
7556
+ $.$$validator = e.value.validator, e.value.beforeInit && e.value.beforeInit($), o.value = $, e.value.disabled && T(!1), C();
7557
7557
  }).catch(($) => s.value = $);
7558
7558
  }
7559
7559
  function C($) {
7560
- s.value = null, new Promise((F, U) => {
7561
- v.search(t.value, p.value).then((T) => {
7562
- const I = e.value.beforeLoad;
7563
- I ? I(T, o.value).then((B) => B ? F(T) : C($)) : F(T);
7560
+ s.value = null, new Promise((P, U) => {
7561
+ v.search(t.value, p.value).then((A) => {
7562
+ const R = e.value.beforeLoad;
7563
+ R ? R(A, o.value).then((B) => B ? P(A) : C($)) : P(A);
7564
7564
  });
7565
- }).then((F) => {
7566
- l.value = F, y && n($ || []);
7567
- }).catch((F) => s.value = F.message);
7565
+ }).then((P) => {
7566
+ l.value = P, y && n($ || []);
7567
+ }).catch((P) => s.value = P.message);
7568
7568
  }
7569
7569
  J(() => ({
7570
7570
  db: a.value.db,
7571
7571
  entity: a.value.entity,
7572
7572
  code: a.value.code
7573
- }), ($, F) => {
7574
- const U = ve($, ["db", "entity"]), T = ve(F, ["db", "entity"]);
7575
- F?.entity != null && !Ie(U, T) && (u.value.includes = {}, u.value.excludes = {}), D();
7573
+ }), ($, P) => {
7574
+ const U = ve($, ["db", "entity"]), A = ve(P, ["db", "entity"]);
7575
+ P?.entity != null && !Ie(U, A) && (u.value.includes = {}, u.value.excludes = {}), D();
7576
7576
  }, { deep: !0, immediate: !0 }), J(() => ({
7577
7577
  conditions: p.value,
7578
7578
  orders: t.value.orders,
7579
7579
  page: t.value.page,
7580
7580
  size: t.value.size
7581
- }), ($, F) => {
7582
- Ie($, F) || (!Ie($.conditions, F.conditions) && $.page != 1 ? t.value.page = 1 : C());
7581
+ }), ($, P) => {
7582
+ Ie($, P) || (!Ie($.conditions, P.conditions) && $.page != 1 ? t.value.page = 1 : C());
7583
7583
  }, { deep: !0 });
7584
- function A($) {
7585
- const F = $?.length ? [new Te({ id__in: $ })] : p.value;
7586
- v.delete_many(F);
7584
+ function V($) {
7585
+ const P = $?.length ? [new Te({ id__in: $ })] : p.value;
7586
+ v.delete_many(P);
7587
7587
  }
7588
- function P($) {
7588
+ function F($) {
7589
7589
  l.value.total + $.length > 200 && t.value.type === "table" && (t.value.size = 10);
7590
- const F = $.map((U) => ({ ...U, ...d.value }));
7591
- v.save_many(F);
7590
+ const P = $.map((U) => ({ ...U, ...d.value }));
7591
+ v.save_many(P);
7592
7592
  }
7593
7593
  return {
7594
7594
  model: l,
@@ -7604,8 +7604,8 @@ function Ho(e, t, n) {
7604
7604
  error: s,
7605
7605
  init: D,
7606
7606
  reload: C,
7607
- delete_many: A,
7608
- save_many: P,
7607
+ delete_many: V,
7608
+ save_many: F,
7609
7609
  switching: i
7610
7610
  };
7611
7611
  }
@@ -7678,8 +7678,8 @@ function Ut() {
7678
7678
  c.forEach((p, v) => {
7679
7679
  const y = p.headers ? [p.headers, ...p.data] : p.data, E = d.aoa_to_sheet(y);
7680
7680
  E["!merges"] = p.merges || [];
7681
- const V = p.name || `Sheet${v + 1}`;
7682
- d.book_append_sheet(g, E, V);
7681
+ const T = p.name || `Sheet${v + 1}`;
7682
+ d.book_append_sheet(g, E, T);
7683
7683
  }), _(g, u + ".xlsx");
7684
7684
  }
7685
7685
  const o = {
@@ -7709,8 +7709,8 @@ function Ut() {
7709
7709
  async function a(u) {
7710
7710
  const { utils: c, read: d } = await import("xlsx"), _ = d(u, { type: "binary", cellDates: !0 }), g = {};
7711
7711
  return _.SheetNames.forEach((p) => {
7712
- const v = _.Sheets[p], y = s(v), E = y.map((D) => D.key), V = c.sheet_to_json(v, { header: E, raw: !0 });
7713
- g[p] = { columns: y, data: V };
7712
+ const v = _.Sheets[p], y = s(v), E = y.map((D) => D.key), T = c.sheet_to_json(v, { header: E, raw: !0 });
7713
+ g[p] = { columns: y, data: T };
7714
7714
  }), g;
7715
7715
  }
7716
7716
  function r(u) {
@@ -7727,7 +7727,7 @@ function Ut() {
7727
7727
  domain: v.$domain
7728
7728
  })),
7729
7729
  data: _.slice(1).map((v) => {
7730
- const y = Object.entries(v).map(([E, V]) => [p[E], V]);
7730
+ const y = Object.entries(v).map(([E, T]) => [p[E], T]);
7731
7731
  return Object.fromEntries(y);
7732
7732
  })
7733
7733
  };
@@ -7813,7 +7813,7 @@ const br = (e = "/api/") => ({
7813
7813
  key: "USER",
7814
7814
  storage: localStorage
7815
7815
  }
7816
- }), $m = /* @__PURE__ */ R({
7816
+ }), $m = /* @__PURE__ */ I({
7817
7817
  __name: "MCharts",
7818
7818
  props: {
7819
7819
  options: { default: {
@@ -9814,7 +9814,7 @@ const br = (e = "/api/") => ({
9814
9814
  "yin-yang",
9815
9815
  "z",
9816
9816
  "zap"
9817
- ], j = /* @__PURE__ */ R({
9817
+ ], j = /* @__PURE__ */ I({
9818
9818
  __name: "MIcon",
9819
9819
  props: {
9820
9820
  type: {},
@@ -9888,10 +9888,10 @@ const br = (e = "/api/") => ({
9888
9888
  spinReverse: e.spinReverse,
9889
9889
  widthAuto: e.widthAuto
9890
9890
  }, null, 8, ["icon", "border", "style", "flip", "mask", "maskId", "listItem", "pull", "pulse", "rotation", "rotateBy", "swapOpacity", "size", "spin", "transform", "symbol", "title", "titleId", "inverse", "bounce", "shake", "beat", "fade", "beatFade", "spinPulse", "spinReverse", "widthAuto"])) : K("", !0),
9891
- X(s.$slots, "default")
9891
+ Z(s.$slots, "default")
9892
9892
  ], 2));
9893
9893
  }
9894
- }), Vm = /* @__PURE__ */ R({
9894
+ }), Vm = /* @__PURE__ */ I({
9895
9895
  __name: "MDialogHeader",
9896
9896
  props: {
9897
9897
  config: {},
@@ -9908,7 +9908,7 @@ const br = (e = "/api/") => ({
9908
9908
  default: f(() => [
9909
9909
  m(o, { span: 12 }, {
9910
9910
  default: f(() => [
9911
- X(t.$slots, "default")
9911
+ Z(t.$slots, "default")
9912
9912
  ]),
9913
9913
  _: 3
9914
9914
  }),
@@ -9920,7 +9920,7 @@ const br = (e = "/api/") => ({
9920
9920
  default: f(() => [
9921
9921
  m(l, { size: "large" }, {
9922
9922
  default: f(() => [
9923
- X(t.$slots, "tool"),
9923
+ Z(t.$slots, "tool"),
9924
9924
  m(j, {
9925
9925
  icon: "expand",
9926
9926
  onClick: n[0] || (n[0] = (a) => e.control.expand()),
@@ -9945,7 +9945,7 @@ const br = (e = "/api/") => ({
9945
9945
  }), Tm = {
9946
9946
  class: "justified",
9947
9947
  style: { "border-top": "0.001em solid #cccccc", "padding-top": "15px" }
9948
- }, Am = /* @__PURE__ */ R({
9948
+ }, Am = /* @__PURE__ */ I({
9949
9949
  __name: "MDialogFooter",
9950
9950
  props: {
9951
9951
  config: {},
@@ -9957,7 +9957,7 @@ const br = (e = "/api/") => ({
9957
9957
  const o = w("el-button"), l = w("el-space");
9958
9958
  return b(), M("div", Tm, [
9959
9959
  te("div", null, [
9960
- X(t.$slots, "tool")
9960
+ Z(t.$slots, "tool")
9961
9961
  ]),
9962
9962
  e.show.footerTool ? (b(), k(l, { key: 0 }, {
9963
9963
  default: f(() => [
@@ -9999,7 +9999,7 @@ const br = (e = "/api/") => ({
9999
9999
  ]);
10000
10000
  };
10001
10001
  }
10002
- }), Dm = ["element-loading-text"], le = /* @__PURE__ */ R({
10002
+ }), Dm = ["element-loading-text"], le = /* @__PURE__ */ I({
10003
10003
  __name: "MDialog",
10004
10004
  props: {
10005
10005
  width: { default: 600 },
@@ -10023,23 +10023,23 @@ const br = (e = "/api/") => ({
10023
10023
  loading: !1,
10024
10024
  fullscreen: !1
10025
10025
  }), u = x(), c = x({ title: "", info: "", data: {} });
10026
- function d(A) {
10027
- c.value.data = A;
10026
+ function d(V) {
10027
+ c.value.data = V;
10028
10028
  }
10029
- function _(A, P) {
10029
+ function _(V, F) {
10030
10030
  c.value = {
10031
- title: P?.title || l.title || "对话框",
10032
- info: P?.info || l.info,
10033
- data: Qe(A || {}),
10034
- raw: A,
10035
- width: P?.width || l.width
10031
+ title: F?.title || l.title || "对话框",
10032
+ info: F?.info || l.info,
10033
+ data: Qe(V || {}),
10034
+ raw: V,
10035
+ width: F?.width || l.width
10036
10036
  }, i.visible = !0;
10037
10037
  }
10038
10038
  function g() {
10039
10039
  s.value = !1, i.loading = !1, i.visible = !1;
10040
10040
  }
10041
10041
  function p() {
10042
- i.loading = !0, l.confirm && l.confirm(c.value.data, (A = !0) => A ? g() : v());
10042
+ i.loading = !0, l.confirm && l.confirm(c.value.data, (V = !0) => V ? g() : v());
10043
10043
  }
10044
10044
  function v() {
10045
10045
  i.loading = !1;
@@ -10050,15 +10050,15 @@ const br = (e = "/api/") => ({
10050
10050
  function E() {
10051
10051
  i.loading || (i.loading = !0, l.cancel(c.value.data, g));
10052
10052
  }
10053
- function V() {
10053
+ function T() {
10054
10054
  return c.value.data;
10055
10055
  }
10056
10056
  function D() {
10057
10057
  i.fullscreen = !i.fullscreen;
10058
10058
  }
10059
- const C = { open: _, close: g, confirm: p, cancel: E, getData: V, expand: D, unload: v };
10060
- return t({ open: _, close: g, confirm: p, cancel: E, getData: V, expand: D, load: y }), (A, P) => {
10061
- const $ = w("el-text"), F = w("el-space"), U = w("el-dialog"), T = Tt("loading");
10059
+ const C = { open: _, close: g, confirm: p, cancel: E, getData: T, expand: D, unload: v };
10060
+ return t({ open: _, close: g, confirm: p, cancel: E, getData: T, expand: D, load: y }), (V, F) => {
10061
+ const $ = w("el-text"), P = w("el-space"), U = w("el-dialog"), A = Tt("loading");
10062
10062
  return b(), k(U, {
10063
10063
  ref_key: "dialog",
10064
10064
  ref: u,
@@ -10068,7 +10068,7 @@ const br = (e = "/api/") => ({
10068
10068
  "body-class": "m-dialog-body",
10069
10069
  "footer-class": "m-dialog-footer",
10070
10070
  modelValue: i.visible,
10071
- "onUpdate:modelValue": P[0] || (P[0] = (I) => i.visible = I),
10071
+ "onUpdate:modelValue": F[0] || (F[0] = (R) => i.visible = R),
10072
10072
  width: c.value.width,
10073
10073
  top: e.top,
10074
10074
  fullscreen: i.fullscreen,
@@ -10080,9 +10080,9 @@ const br = (e = "/api/") => ({
10080
10080
  "close-on-press-escape": !1,
10081
10081
  "show-close": !1,
10082
10082
  draggable: !0,
10083
- onOpened: P[1] || (P[1] = (I) => s.value = !0),
10084
- onClose: P[2] || (P[2] = (I) => h(o)("closed")),
10085
- onKeydown: P[3] || (P[3] = Le((I) => E(), ["esc"]))
10083
+ onOpened: F[1] || (F[1] = (R) => s.value = !0),
10084
+ onClose: F[2] || (F[2] = (R) => h(o)("closed")),
10085
+ onKeydown: F[3] || (F[3] = Le((R) => E(), ["esc"]))
10086
10086
  }, ko({
10087
10087
  header: f(() => [
10088
10088
  Ye((b(), k(Vm, {
@@ -10094,7 +10094,7 @@ const br = (e = "/api/") => ({
10094
10094
  show: r.value
10095
10095
  }, {
10096
10096
  tool: f(() => [
10097
- X(A.$slots, "tool", {
10097
+ Z(V.$slots, "tool", {
10098
10098
  raw: c.value.raw,
10099
10099
  data: c.value.data,
10100
10100
  controller: C,
@@ -10102,13 +10102,13 @@ const br = (e = "/api/") => ({
10102
10102
  })
10103
10103
  ]),
10104
10104
  default: f(() => [
10105
- X(A.$slots, "header", {
10105
+ Z(V.$slots, "header", {
10106
10106
  data: c.value.data,
10107
10107
  raw: c.value.raw,
10108
10108
  controller: C,
10109
10109
  update: d
10110
10110
  }, () => [
10111
- m(F, { size: "large" }, {
10111
+ m(P, { size: "large" }, {
10112
10112
  default: f(() => [
10113
10113
  m($, { tag: "b" }, {
10114
10114
  default: f(() => [
@@ -10132,7 +10132,7 @@ const br = (e = "/api/") => ({
10132
10132
  ]),
10133
10133
  _: 3
10134
10134
  }, 8, ["config", "show"])), [
10135
- [T, i.loading]
10135
+ [A, i.loading]
10136
10136
  ])
10137
10137
  ]),
10138
10138
  _: 2
@@ -10148,14 +10148,14 @@ const br = (e = "/api/") => ({
10148
10148
  "element-loading-background": "rgba(255,255,255,0.6)",
10149
10149
  style: { "min-height": "80px" }
10150
10150
  }, [
10151
- X(A.$slots, "default", {
10151
+ Z(V.$slots, "default", {
10152
10152
  raw: c.value.raw,
10153
10153
  data: c.value.data,
10154
10154
  controller: C,
10155
10155
  update: d
10156
10156
  })
10157
10157
  ], 8, Dm)), [
10158
- [T, i.loading]
10158
+ [A, i.loading]
10159
10159
  ]) : K("", !0)
10160
10160
  ]),
10161
10161
  key: "0"
@@ -10171,7 +10171,7 @@ const br = (e = "/api/") => ({
10171
10171
  control: C,
10172
10172
  show: r.value
10173
10173
  }, null, 8, ["config", "show"]), [
10174
- [T, i.loading]
10174
+ [A, i.loading]
10175
10175
  ])
10176
10176
  ]),
10177
10177
  key: "1"
@@ -10183,7 +10183,7 @@ const br = (e = "/api/") => ({
10183
10183
  key: 0,
10184
10184
  class: "justified",
10185
10185
  style: { "padding-bottom": "5px", "border-bottom": "0.01em solid #cccccc" }
10186
- }, Im = { style: { "padding-top": "5px" } }, ht = /* @__PURE__ */ R({
10186
+ }, Im = { style: { "padding-top": "5px" } }, ht = /* @__PURE__ */ I({
10187
10187
  __name: "MPopover",
10188
10188
  props: {
10189
10189
  title: {},
@@ -10253,7 +10253,7 @@ const br = (e = "/api/") => ({
10253
10253
  ]),
10254
10254
  m(g, null, {
10255
10255
  default: f(() => [
10256
- X(c.$slots, "tool", {
10256
+ Z(c.$slots, "tool", {
10257
10257
  data: a.value.data,
10258
10258
  control: u
10259
10259
  }),
@@ -10267,7 +10267,7 @@ const br = (e = "/api/") => ({
10267
10267
  })
10268
10268
  ])),
10269
10269
  te("div", Im, [
10270
- X(c.$slots, "default", {
10270
+ Z(c.$slots, "default", {
10271
10271
  data: a.value.data,
10272
10272
  control: u
10273
10273
  })
@@ -10278,12 +10278,12 @@ const br = (e = "/api/") => ({
10278
10278
  ], 64);
10279
10279
  };
10280
10280
  }
10281
- }), Q = {
10281
+ }), X = {
10282
10282
  info: (e) => rn({ message: e, type: "info", grouping: !0, appendTo: "body" }),
10283
10283
  success: (e) => rn({ message: e, type: "success", grouping: !0 }),
10284
10284
  warning: (e) => rn({ message: e, type: "warning", grouping: !0, appendTo: "body" }),
10285
10285
  error: (e) => rn({ message: e, type: "error", grouping: !0 })
10286
- }, kr = (e, t) => Q[t](e), Pm = {
10286
+ }, kr = (e, t) => X[t](e), Pm = {
10287
10287
  info: (e, t = {}) => Je.alert(e, { ...t, type: "info" }),
10288
10288
  success: (e, t) => Je.alert(e, t, { type: "success" }),
10289
10289
  warning: (e, t) => Je.alert(e, t, { type: "warning" }),
@@ -10293,7 +10293,7 @@ const br = (e = "/api/") => ({
10293
10293
  success: (e, t) => Je.confirm(e, t, { type: "success", ...dn }),
10294
10294
  warning: (e, t) => Je.confirm(e, t, { type: "warning", ...dn }),
10295
10295
  error: (e, t) => Je.confirm(e, t, { type: "error", ...dn })
10296
- }, Yo = /* @__PURE__ */ R({
10296
+ }, Yo = /* @__PURE__ */ I({
10297
10297
  __name: "MRichEditor",
10298
10298
  props: {
10299
10299
  modelValue: {},
@@ -10308,7 +10308,7 @@ const br = (e = "/api/") => ({
10308
10308
  placeholder: "请输入内容...",
10309
10309
  readOnly: l.disabled
10310
10310
  }), d = (p, v) => {
10311
- Q.info(`${p}-${v}`);
10311
+ X.info(`${p}-${v}`);
10312
10312
  }, _ = (p, v, y) => {
10313
10313
  y(!0);
10314
10314
  };
@@ -10339,7 +10339,7 @@ const br = (e = "/api/") => ({
10339
10339
  }, null, 8, ["defaultConfig", "mode", "modelValue"])
10340
10340
  ], 64));
10341
10341
  }
10342
- }), en = /* @__PURE__ */ R({
10342
+ }), en = /* @__PURE__ */ I({
10343
10343
  __name: "MObjectEditor",
10344
10344
  props: {
10345
10345
  modelValue: {},
@@ -10367,7 +10367,7 @@ const br = (e = "/api/") => ({
10367
10367
  }, null, 8, ["modelValue"])
10368
10368
  ], 2));
10369
10369
  }
10370
- }), Fm = { class: "pager" }, Nm = /* @__PURE__ */ R({
10370
+ }), Fm = { class: "pager" }, Nm = /* @__PURE__ */ I({
10371
10371
  __name: "MPdfViewer",
10372
10372
  props: {
10373
10373
  url: {},
@@ -10442,7 +10442,7 @@ const br = (e = "/api/") => ({
10442
10442
  for (const [o, l] of t)
10443
10443
  n[o] = l;
10444
10444
  return n;
10445
- }, Um = /* @__PURE__ */ lt(Nm, [["__scopeId", "data-v-eb902bb2"]]), W = /* @__PURE__ */ R({
10445
+ }, Um = /* @__PURE__ */ lt(Nm, [["__scopeId", "data-v-eb902bb2"]]), W = /* @__PURE__ */ I({
10446
10446
  __name: "CtrlButton",
10447
10447
  props: {
10448
10448
  icon: {},
@@ -10499,7 +10499,7 @@ const br = (e = "/api/") => ({
10499
10499
  shake: e.shake,
10500
10500
  "beat-fade": e.beatFade
10501
10501
  }, null, 8, ["icon", "style", "bounce", "shake", "beat-fade"])) : K("", !0),
10502
- X(r.$slots, "default")
10502
+ Z(r.$slots, "default")
10503
10503
  ]),
10504
10504
  _: 3
10505
10505
  }, 8, ["type", "disabled", "size"])
@@ -10508,7 +10508,7 @@ const br = (e = "/api/") => ({
10508
10508
  }, 8, ["disabled", "content"]);
10509
10509
  };
10510
10510
  }
10511
- }), Bm = { class: "full justified" }, Lm = { style: { "margin-left": "30px", "font-size": "10px", color: "#999999" } }, we = /* @__PURE__ */ R({
10511
+ }), Bm = { class: "full justified" }, Lm = { style: { "margin-left": "30px", "font-size": "10px", color: "#999999" } }, we = /* @__PURE__ */ I({
10512
10512
  __name: "MOption",
10513
10513
  props: {
10514
10514
  icon: {},
@@ -10534,13 +10534,13 @@ const br = (e = "/api/") => ({
10534
10534
  te("span", {
10535
10535
  style: je(n.value)
10536
10536
  }, [
10537
- X(o.$slots, "left", {}, () => [
10537
+ Z(o.$slots, "left", {}, () => [
10538
10538
  S(z(e.left), 1)
10539
10539
  ])
10540
10540
  ], 4)
10541
10541
  ]),
10542
10542
  te("b", Lm, [
10543
- X(o.$slots, "right", {}, () => [
10543
+ Z(o.$slots, "right", {}, () => [
10544
10544
  S(z(e.right), 1)
10545
10545
  ])
10546
10546
  ])
@@ -10574,8 +10574,8 @@ function zm(e) {
10574
10574
  a.value[_] = t.value.item[_];
10575
10575
  }
10576
10576
  function d(_, g, p) {
10577
- const { prop: v, domain: y, not_null: E } = _, V = Sn(g[v]), D = Sn(p[v]), C = Dn(V) ? !1 : V == null, A = (t.value.keys?.length || 0) > 1, P = ge.DOMAINS.multiple.includes(y) || A ? !1 : C && E, $ = !Ie(D, V);
10578
- return { prop: v, invalid: P, value: V, changed: $ };
10577
+ const { prop: v, domain: y, not_null: E } = _, T = Sn(g[v]), D = Sn(p[v]), C = Dn(T) ? !1 : T == null, V = (t.value.keys?.length || 0) > 1, F = ge.DOMAINS.multiple.includes(y) || V ? !1 : C && E, $ = !Ie(D, T);
10578
+ return { prop: v, invalid: F, value: T, changed: $ };
10579
10579
  }
10580
10580
  return { fields: n, bean: a, $disabled: o, mapping: r, row: l, data: u, reset: c, invalid: i };
10581
10581
  }
@@ -10587,7 +10587,7 @@ function jm(e, t) {
10587
10587
  const { view: n, item: o, insert: l } = t, s = !Mm.includes(e.prop), a = !e.hide_on_form, r = l ? !e.hide_on_form_insert : !e.hide_on_form_edit, i = n.$isTree ? o.isLeaf ? !e.hide_on_form_leaf : o.isLeaf == !1 ? !e.hide_on_form_branch : !0 : !0, u = !["Custom"].includes(e.domain);
10588
10588
  return s && a && r && i && u;
10589
10589
  }
10590
- const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10590
+ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ I({
10591
10591
  __name: "CharCell",
10592
10592
  props: {
10593
10593
  modelValue: {},
@@ -10620,7 +10620,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10620
10620
  }), Hm = {
10621
10621
  type: "info",
10622
10622
  style: { width: "100%" }
10623
- }, Km = /* @__PURE__ */ R({
10623
+ }, Km = /* @__PURE__ */ I({
10624
10624
  __name: "ColorCell",
10625
10625
  props: {
10626
10626
  modelValue: {},
@@ -10635,7 +10635,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10635
10635
  set: (r) => o("update:modelValue", r || null)
10636
10636
  }), { copy: s } = At();
10637
10637
  function a() {
10638
- s(l.value), Q.info("颜色代码已复制");
10638
+ s(l.value), X.info("颜色代码已复制");
10639
10639
  }
10640
10640
  return (r, i) => {
10641
10641
  const u = w("el-color-picker"), c = w("el-col"), d = w("el-row");
@@ -10676,7 +10676,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10676
10676
  });
10677
10677
  };
10678
10678
  }
10679
- }), Ym = { class: "justified" }, Wm = /* @__PURE__ */ R({
10679
+ }), Ym = { class: "justified" }, Wm = /* @__PURE__ */ I({
10680
10680
  __name: "IconCell",
10681
10681
  props: {
10682
10682
  modelValue: {},
@@ -10726,7 +10726,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10726
10726
  ]), 1032, ["disabled", "modelValue"]);
10727
10727
  };
10728
10728
  }
10729
- }), Gm = /* @__PURE__ */ R({
10729
+ }), Gm = /* @__PURE__ */ I({
10730
10730
  __name: "MultiSetCell",
10731
10731
  props: {
10732
10732
  modelValue: {},
@@ -10774,7 +10774,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10774
10774
  }, 8, ["disabled", "modelValue"]);
10775
10775
  };
10776
10776
  }
10777
- }), Jm = /* @__PURE__ */ R({
10777
+ }), Jm = /* @__PURE__ */ I({
10778
10778
  __name: "SetCell",
10779
10779
  props: {
10780
10780
  modelValue: {},
@@ -10815,7 +10815,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10815
10815
  }, 8, ["disabled", "modelValue"]);
10816
10816
  };
10817
10817
  }
10818
- }), Xm = /* @__PURE__ */ R({
10818
+ }), Xm = /* @__PURE__ */ I({
10819
10819
  __name: "DateArrayCell",
10820
10820
  props: {
10821
10821
  modelValue: {},
@@ -10854,7 +10854,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10854
10854
  }, null, 8, ["modelValue", "disabled", "clearable", "type", "format", "value-format"]);
10855
10855
  };
10856
10856
  }
10857
- }), Zm = /* @__PURE__ */ R({
10857
+ }), Zm = /* @__PURE__ */ I({
10858
10858
  __name: "DateCell",
10859
10859
  props: {
10860
10860
  modelValue: {},
@@ -10893,7 +10893,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10893
10893
  }, null, 8, ["modelValue", "disabled", "clearable", "type", "value-format"]);
10894
10894
  };
10895
10895
  }
10896
- }), Qm = /* @__PURE__ */ R({
10896
+ }), Qm = /* @__PURE__ */ I({
10897
10897
  __name: "DateRangeCell",
10898
10898
  props: {
10899
10899
  modelValue: {},
@@ -10937,7 +10937,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10937
10937
  });
10938
10938
  };
10939
10939
  }
10940
- }), e_ = /* @__PURE__ */ R({
10940
+ }), e_ = /* @__PURE__ */ I({
10941
10941
  __name: "TimeCell",
10942
10942
  props: {
10943
10943
  modelValue: {},
@@ -10964,7 +10964,7 @@ const ce = ["update:modelValue", "confirm", "reload"], qm = /* @__PURE__ */ R({
10964
10964
  }, null, 8, ["modelValue", "disabled", "clearable"]);
10965
10965
  };
10966
10966
  }
10967
- }), t_ = /* @__PURE__ */ R({
10967
+ }), t_ = /* @__PURE__ */ I({
10968
10968
  __name: "TimeRangeCell",
10969
10969
  props: {
10970
10970
  modelValue: {},
@@ -11034,7 +11034,7 @@ function sn(e, t, n, o) {
11034
11034
  root: l.root,
11035
11035
  page: 1,
11036
11036
  size: 0
11037
- }, [s]).then((d) => c.value = d) : (Q.error("该字段未配置元数据"), c.value = new nt());
11037
+ }, [s]).then((d) => c.value = d) : (X.error("该字段未配置元数据"), c.value = new nt());
11038
11038
  }), { model: c, loading: u, param: a, manager: i, condition: s };
11039
11039
  }
11040
11040
  function Da(e = {}, t) {
@@ -11050,7 +11050,7 @@ function Da(e = {}, t) {
11050
11050
  });
11051
11051
  return Object.fromEntries(o);
11052
11052
  }
11053
- const n_ = /* @__PURE__ */ R({
11053
+ const n_ = /* @__PURE__ */ I({
11054
11054
  __name: "AutoCell",
11055
11055
  props: {
11056
11056
  modelValue: {},
@@ -11074,9 +11074,9 @@ const n_ = /* @__PURE__ */ R({
11074
11074
  },
11075
11075
  [v]
11076
11076
  ).then((y) => {
11077
- const E = (y?.results || []).map((V) => ({
11078
- value: V[g],
11079
- label: V[g]
11077
+ const E = (y?.results || []).map((T) => ({
11078
+ value: T[g],
11079
+ label: T[g]
11080
11080
  }));
11081
11081
  _(E);
11082
11082
  });
@@ -11106,7 +11106,7 @@ const n_ = /* @__PURE__ */ R({
11106
11106
  }, 8, ["modelValue", "disabled"]);
11107
11107
  };
11108
11108
  }
11109
- }), o_ = /* @__PURE__ */ R({
11109
+ }), o_ = /* @__PURE__ */ I({
11110
11110
  __name: "CascadeCell",
11111
11111
  props: {
11112
11112
  modelValue: {},
@@ -11156,7 +11156,7 @@ const n_ = /* @__PURE__ */ R({
11156
11156
  }, 8, ["modelValue", "disabled", "options", "props", "clearable", "collapse-tags", "collapse-tags-tooltip"]);
11157
11157
  };
11158
11158
  }
11159
- }), l_ = /* @__PURE__ */ R({
11159
+ }), l_ = /* @__PURE__ */ I({
11160
11160
  __name: "SelectCell",
11161
11161
  props: {
11162
11162
  modelValue: {},
@@ -11206,7 +11206,7 @@ const n_ = /* @__PURE__ */ R({
11206
11206
  ]);
11207
11207
  };
11208
11208
  }
11209
- }), Er = /* @__PURE__ */ R({
11209
+ }), Er = /* @__PURE__ */ I({
11210
11210
  __name: "FieldTransfer",
11211
11211
  props: {
11212
11212
  modelValue: {},
@@ -11246,7 +11246,7 @@ const n_ = /* @__PURE__ */ R({
11246
11246
  });
11247
11247
  };
11248
11248
  }
11249
- }), a_ = /* @__PURE__ */ R({
11249
+ }), a_ = /* @__PURE__ */ I({
11250
11250
  __name: "TransferCell",
11251
11251
  props: {
11252
11252
  modelValue: {},
@@ -11312,7 +11312,7 @@ const n_ = /* @__PURE__ */ R({
11312
11312
  ], 64);
11313
11313
  };
11314
11314
  }
11315
- }), s_ = /* @__PURE__ */ R({
11315
+ }), s_ = /* @__PURE__ */ I({
11316
11316
  __name: "TreeCell",
11317
11317
  props: {
11318
11318
  modelValue: {},
@@ -11366,7 +11366,7 @@ const n_ = /* @__PURE__ */ R({
11366
11366
  ]);
11367
11367
  };
11368
11368
  }
11369
- }), r_ = /* @__PURE__ */ R({
11369
+ }), r_ = /* @__PURE__ */ I({
11370
11370
  __name: "BooleanCell",
11371
11371
  props: {
11372
11372
  modelValue: {},
@@ -11430,7 +11430,7 @@ const n_ = /* @__PURE__ */ R({
11430
11430
  }, 8, ["modelValue", "disabled"]));
11431
11431
  };
11432
11432
  }
11433
- }), i_ = /* @__PURE__ */ R({
11433
+ }), i_ = /* @__PURE__ */ I({
11434
11434
  __name: "DefaultCell",
11435
11435
  props: {
11436
11436
  modelValue: {},
@@ -11455,7 +11455,7 @@ const n_ = /* @__PURE__ */ R({
11455
11455
  });
11456
11456
  };
11457
11457
  }
11458
- }), u_ = /* @__PURE__ */ lt(i_, [["__scopeId", "data-v-5ec7eb35"]]), c_ = /* @__PURE__ */ R({
11458
+ }), u_ = /* @__PURE__ */ lt(i_, [["__scopeId", "data-v-5ec7eb35"]]), c_ = /* @__PURE__ */ I({
11459
11459
  __name: "NumberCell",
11460
11460
  props: {
11461
11461
  modelValue: {},
@@ -11514,7 +11514,7 @@ function d_() {
11514
11514
  const p_ = { class: "justified full" }, f_ = {
11515
11515
  key: 0,
11516
11516
  style: { "padding-right": "5px" }
11517
- }, m_ = /* @__PURE__ */ R({
11517
+ }, m_ = /* @__PURE__ */ I({
11518
11518
  __name: "MenuTreeNode",
11519
11519
  props: {
11520
11520
  item: {},
@@ -11568,7 +11568,7 @@ const p_ = { class: "justified full" }, f_ = {
11568
11568
  ]);
11569
11569
  };
11570
11570
  }
11571
- }), __ = /* @__PURE__ */ R({
11571
+ }), __ = /* @__PURE__ */ I({
11572
11572
  __name: "AdminMenu",
11573
11573
  props: {
11574
11574
  options: {}
@@ -11654,11 +11654,11 @@ const p_ = { class: "justified full" }, f_ = {
11654
11654
  _: 1
11655
11655
  })
11656
11656
  ]),
11657
- default: f(({ data: E, node: V }) => [
11657
+ default: f(({ data: E, node: T }) => [
11658
11658
  m(m_, {
11659
11659
  item: E,
11660
11660
  path: a.value,
11661
- node: V
11661
+ node: T
11662
11662
  }, null, 8, ["item", "path", "node"])
11663
11663
  ]),
11664
11664
  _: 1
@@ -11713,15 +11713,15 @@ function Oe() {
11713
11713
  function Wo(e) {
11714
11714
  if (e === "admin") return !0;
11715
11715
  const t = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
11716
- return t || Q.error("邮箱格式不正确"), t;
11716
+ return t || X.error("邮箱格式不正确"), t;
11717
11717
  }
11718
11718
  function $n(e, t) {
11719
11719
  if (t && e !== t)
11720
- return Q.error("密码不一致"), !1;
11720
+ return X.error("密码不一致"), !1;
11721
11721
  const n = e.length >= 8;
11722
- return n || Q.error("密码长度不小于8位"), n;
11722
+ return n || X.error("密码长度不小于8位"), n;
11723
11723
  }
11724
- const g_ = /* @__PURE__ */ R({
11724
+ const g_ = /* @__PURE__ */ I({
11725
11725
  __name: "RetrieveDialog",
11726
11726
  setup(e, { expose: t }) {
11727
11727
  const n = x(), { handler: o } = Oe();
@@ -11773,7 +11773,7 @@ const g_ = /* @__PURE__ */ R({
11773
11773
  }, 512);
11774
11774
  };
11775
11775
  }
11776
- }), h_ = { class: "right" }, v_ = /* @__PURE__ */ R({
11776
+ }), h_ = { class: "right" }, v_ = /* @__PURE__ */ I({
11777
11777
  __name: "SignInForm",
11778
11778
  setup(e, { expose: t }) {
11779
11779
  const n = We(), o = x(), l = x({
@@ -11852,7 +11852,7 @@ const g_ = /* @__PURE__ */ R({
11852
11852
  ], 64);
11853
11853
  };
11854
11854
  }
11855
- }), y_ = /* @__PURE__ */ R({
11855
+ }), y_ = /* @__PURE__ */ I({
11856
11856
  __name: "SignUpForm",
11857
11857
  setup(e, { expose: t }) {
11858
11858
  const n = We(), o = x({
@@ -11934,7 +11934,7 @@ const g_ = /* @__PURE__ */ R({
11934
11934
  });
11935
11935
  };
11936
11936
  }
11937
- }), b_ = /* @__PURE__ */ R({
11937
+ }), b_ = /* @__PURE__ */ I({
11938
11938
  __name: "LoginForm",
11939
11939
  setup(e, { expose: t }) {
11940
11940
  const n = x(), o = x(), l = We(), s = x(!0);
@@ -11976,7 +11976,7 @@ const g_ = /* @__PURE__ */ R({
11976
11976
  ]), 1024);
11977
11977
  };
11978
11978
  }
11979
- }), w_ = /* @__PURE__ */ R({
11979
+ }), w_ = /* @__PURE__ */ I({
11980
11980
  __name: "LoginDialog",
11981
11981
  setup(e, { expose: t }) {
11982
11982
  const n = x(), o = x(), { handler: l } = Oe();
@@ -12000,7 +12000,7 @@ const g_ = /* @__PURE__ */ R({
12000
12000
  _: 1
12001
12001
  }, 512));
12002
12002
  }
12003
- }), k_ = /* @__PURE__ */ R({
12003
+ }), k_ = /* @__PURE__ */ I({
12004
12004
  __name: "AccountForm",
12005
12005
  props: {
12006
12006
  account: {}
@@ -12185,7 +12185,7 @@ const g_ = /* @__PURE__ */ R({
12185
12185
  });
12186
12186
  };
12187
12187
  }
12188
- }), xr = /* @__PURE__ */ R({
12188
+ }), xr = /* @__PURE__ */ I({
12189
12189
  __name: "AccountDialog",
12190
12190
  setup(e, { expose: t }) {
12191
12191
  const n = x();
@@ -12204,7 +12204,7 @@ const g_ = /* @__PURE__ */ R({
12204
12204
  _: 1
12205
12205
  }, 512));
12206
12206
  }
12207
- }), E_ = { style: { margin: "3px 0" } }, x_ = /* @__PURE__ */ R({
12207
+ }), E_ = { style: { margin: "3px 0" } }, x_ = /* @__PURE__ */ I({
12208
12208
  __name: "MChannelHub",
12209
12209
  setup(e) {
12210
12210
  const { container: t } = rr();
@@ -12305,7 +12305,7 @@ const g_ = /* @__PURE__ */ R({
12305
12305
  }, 8, ["data"]);
12306
12306
  };
12307
12307
  }
12308
- }), C_ = /* @__PURE__ */ R({
12308
+ }), C_ = /* @__PURE__ */ I({
12309
12309
  __name: "ChannelDialog",
12310
12310
  setup(e, { expose: t }) {
12311
12311
  const n = x(), { userStore: o } = Oe();
@@ -12323,7 +12323,7 @@ const g_ = /* @__PURE__ */ R({
12323
12323
  _: 1
12324
12324
  }, 512));
12325
12325
  }
12326
- }), O_ = /* @__PURE__ */ R({
12326
+ }), O_ = /* @__PURE__ */ I({
12327
12327
  __name: "PasswordForm",
12328
12328
  emits: ["confirm"],
12329
12329
  setup(e, { expose: t, emit: n }) {
@@ -12399,14 +12399,14 @@ const g_ = /* @__PURE__ */ R({
12399
12399
  });
12400
12400
  };
12401
12401
  }
12402
- }), S_ = /* @__PURE__ */ R({
12402
+ }), S_ = /* @__PURE__ */ I({
12403
12403
  __name: "PasswordDialog",
12404
12404
  setup(e, { expose: t }) {
12405
12405
  const n = x(), o = x(), { handler: l } = Oe();
12406
12406
  function s(r, i) {
12407
12407
  const { old_password: u, new_password: c } = o.value?.getData() || {};
12408
12408
  u && c ? l.changePassword(u, c).then((d) => {
12409
- d ? (Q.success("密码修改成功"), i()) : i(!1);
12409
+ d ? (X.success("密码修改成功"), i()) : i(!1);
12410
12410
  }) : i(!1);
12411
12411
  }
12412
12412
  return t({ open: () => n.value?.open() }), (r, i) => (b(), k(h(le), {
@@ -12426,7 +12426,7 @@ const g_ = /* @__PURE__ */ R({
12426
12426
  _: 1
12427
12427
  }, 512));
12428
12428
  }
12429
- }), Cr = /* @__PURE__ */ R({
12429
+ }), Cr = /* @__PURE__ */ I({
12430
12430
  __name: "MShrink",
12431
12431
  props: {
12432
12432
  width: { default: 400 },
@@ -12440,7 +12440,7 @@ const g_ = /* @__PURE__ */ R({
12440
12440
  ref_key: "outer",
12441
12441
  ref: t
12442
12442
  }, [
12443
- h(n) > e.width ? X(o.$slots, "default", {
12443
+ h(n) > e.width ? Z(o.$slots, "default", {
12444
12444
  key: 0,
12445
12445
  ref: "slot"
12446
12446
  }) : (b(), k(s, {
@@ -12453,7 +12453,7 @@ const g_ = /* @__PURE__ */ R({
12453
12453
  teleported: ""
12454
12454
  }, {
12455
12455
  content: f(() => [
12456
- X(o.$slots, "default")
12456
+ Z(o.$slots, "default")
12457
12457
  ]),
12458
12458
  default: f(() => [
12459
12459
  m(j, {
@@ -12466,7 +12466,7 @@ const g_ = /* @__PURE__ */ R({
12466
12466
  ], 512);
12467
12467
  };
12468
12468
  }
12469
- }), Go = /* @__PURE__ */ R({
12469
+ }), Go = /* @__PURE__ */ I({
12470
12470
  __name: "MWrap",
12471
12471
  props: {
12472
12472
  loading: { type: Boolean },
@@ -12489,7 +12489,7 @@ const g_ = /* @__PURE__ */ R({
12489
12489
  customClass: "m-dialog-loading"
12490
12490
  }), p?.setText(g?.value)) : p?.close();
12491
12491
  }, { immediate: !0, deep: !0 }), J(() => t.ticker, () => p?.setText(g.value)), (v, y) => {
12492
- const E = w("el-col"), V = w("el-space"), D = w("el-row");
12492
+ const E = w("el-col"), T = w("el-space"), D = w("el-row");
12493
12493
  return b(), M("div", {
12494
12494
  ref_key: "wrap",
12495
12495
  ref: n,
@@ -12509,7 +12509,7 @@ const g_ = /* @__PURE__ */ R({
12509
12509
  span: _.value.left
12510
12510
  }, {
12511
12511
  default: f(() => [
12512
- X(v.$slots, "header", { width: h(i) })
12512
+ Z(v.$slots, "header", { width: h(i) })
12513
12513
  ]),
12514
12514
  _: 3
12515
12515
  }, 8, ["span"]),
@@ -12522,9 +12522,9 @@ const g_ = /* @__PURE__ */ R({
12522
12522
  default: f(() => [
12523
12523
  m(Cr, null, {
12524
12524
  default: f(() => [
12525
- m(V, { size: "small" }, {
12525
+ m(T, { size: "small" }, {
12526
12526
  default: f(() => [
12527
- X(v.$slots, "header-tool", { width: h(u) })
12527
+ Z(v.$slots, "header-tool", { width: h(u) })
12528
12528
  ]),
12529
12529
  _: 3
12530
12530
  })
@@ -12541,7 +12541,7 @@ const g_ = /* @__PURE__ */ R({
12541
12541
  class: "m-wrap-body",
12542
12542
  style: je([{ overflow: "auto", "scrollbar-width": "none" }, { height: e.height || "auto" }])
12543
12543
  }, [
12544
- X(v.$slots, "default", { width: h(r) })
12544
+ Z(v.$slots, "default", { width: h(r) })
12545
12545
  ], 4),
12546
12546
  m(D, {
12547
12547
  class: "m-wrap-footer",
@@ -12554,7 +12554,7 @@ const g_ = /* @__PURE__ */ R({
12554
12554
  span: 12
12555
12555
  }, {
12556
12556
  default: f(() => [
12557
- X(v.$slots, "footer", { width: h(c) })
12557
+ Z(v.$slots, "footer", { width: h(c) })
12558
12558
  ]),
12559
12559
  _: 3
12560
12560
  }, 512),
@@ -12565,7 +12565,7 @@ const g_ = /* @__PURE__ */ R({
12565
12565
  class: "right"
12566
12566
  }, {
12567
12567
  default: f(() => [
12568
- X(v.$slots, "footer-tool", { width: h(d) })
12568
+ Z(v.$slots, "footer-tool", { width: h(d) })
12569
12569
  ]),
12570
12570
  _: 3
12571
12571
  }, 512)
@@ -12593,9 +12593,9 @@ function $_(e, t) {
12593
12593
  animation: 260,
12594
12594
  removeCloneOnHide: !0,
12595
12595
  onEnd(u) {
12596
- const c = u.newIndex, d = u.oldIndex, _ = a.value.map((V) => V.id), g = a.value.map((V) => V.sort), p = Math.min(c, d), v = Math.max(c, d), y = _.splice(d, 1)[0];
12596
+ const c = u.newIndex, d = u.oldIndex, _ = a.value.map((T) => T.id), g = a.value.map((T) => T.sort), p = Math.min(c, d), v = Math.max(c, d), y = _.splice(d, 1)[0];
12597
12597
  _.splice(c, 0, y);
12598
- const E = Na(p, v + 1).map((V) => ({ id: _[V], sort: g[V] }));
12598
+ const E = Na(p, v + 1).map((T) => ({ id: _[T], sort: g[T] }));
12599
12599
  E.length > 1 && e.rest.save_many(E);
12600
12600
  }
12601
12601
  });
@@ -12677,7 +12677,7 @@ function A_(e, t) {
12677
12677
  tableRowClassName: s
12678
12678
  };
12679
12679
  }
12680
- const Or = /* @__PURE__ */ R({
12680
+ const Or = /* @__PURE__ */ I({
12681
12681
  __name: "MTableControlButtons",
12682
12682
  props: {
12683
12683
  admin: { type: Boolean },
@@ -12735,7 +12735,7 @@ const Or = /* @__PURE__ */ R({
12735
12735
  })) : K("", !0)
12736
12736
  ], 64));
12737
12737
  }
12738
- }), D_ = /* @__PURE__ */ R({
12738
+ }), D_ = /* @__PURE__ */ I({
12739
12739
  __name: "MTableControl",
12740
12740
  props: {
12741
12741
  results: {},
@@ -12763,39 +12763,39 @@ const Or = /* @__PURE__ */ R({
12763
12763
  setup(e, { expose: t, emit: n }) {
12764
12764
  const o = n, l = e, s = x(), a = x(), r = O(() => l.selection.map((D) => D.id));
12765
12765
  function i(D, C) {
12766
- const A = a.value?.getData();
12767
- A == null ? (Q.warning("请注意非空值"), C(!1)) : A.length ? (l.rest.save_many(A), C()) : (Q.warning("数据无变化,是否关闭?"), C(!1));
12766
+ const V = a.value?.getData();
12767
+ V == null ? (X.warning("请注意非空值"), C(!1)) : V.length ? (l.rest.save_many(V), C()) : (X.warning("数据无变化,是否关闭?"), C(!1));
12768
12768
  }
12769
12769
  function u(D, C) {
12770
- const { keys: A, insert: P } = D;
12771
- P && l.rest.delete_one(A[0]), C();
12770
+ const { keys: V, insert: F } = D;
12771
+ F && l.rest.delete_one(V[0]), C();
12772
12772
  }
12773
12773
  function c(D) {
12774
- const C = D.map((F) => F.id), A = [];
12775
- Object.keys(l.view.$fields).forEach((F) => {
12776
- const U = D.map((B) => B[F]), T = [.../* @__PURE__ */ new Set([...U])], I = T.length === 1 ? T[0] : null;
12777
- I != null && A.push([F, I]);
12774
+ const C = D.map((P) => P.id), V = [];
12775
+ Object.keys(l.view.$fields).forEach((P) => {
12776
+ const U = D.map((B) => B[P]), A = [.../* @__PURE__ */ new Set([...U])], R = A.length === 1 ? A[0] : null;
12777
+ R != null && V.push([P, R]);
12778
12778
  });
12779
- const $ = Object.fromEntries(A);
12779
+ const $ = Object.fromEntries(V);
12780
12780
  return { keys: C, item: $ };
12781
12781
  }
12782
12782
  function d(D) {
12783
12783
  return new Promise((C) => {
12784
12784
  if (D) {
12785
- const A = xo({ saved: !1 }, l.core);
12786
- l.rest.insert_one(A).then((P) => C([P])).finally(l.collector.clear);
12785
+ const V = xo({ saved: !1 }, l.core);
12786
+ l.rest.insert_one(V).then((F) => C([F])).finally(l.collector.clear);
12787
12787
  } else
12788
- l.rest.find(r.value).then((A) => C(A));
12788
+ l.rest.find(r.value).then((V) => C(V));
12789
12789
  });
12790
12790
  }
12791
12791
  function _(D, C) {
12792
- d(D).then((A) => {
12793
- const { keys: P, item: $ } = c(A);
12792
+ d(D).then((V) => {
12793
+ const { keys: F, item: $ } = c(V);
12794
12794
  if (C) {
12795
- const F = Object.keys(l.core);
12796
- Object.assign($, ve(C, F));
12795
+ const P = Object.keys(l.core);
12796
+ Object.assign($, ve(C, P));
12797
12797
  }
12798
- s.value?.open({ insert: D, keys: P, item: $ });
12798
+ s.value?.open({ insert: D, keys: F, item: $ });
12799
12799
  });
12800
12800
  }
12801
12801
  function g() {
@@ -12803,38 +12803,38 @@ const Or = /* @__PURE__ */ R({
12803
12803
  }
12804
12804
  function p() {
12805
12805
  const D = l.selection.map((C) => Rn(C, ["id", "sort"]));
12806
- l.rest.save_many(D), Q.info(`已复制 ${D.length} 条数据`);
12806
+ l.rest.save_many(D), X.info(`已复制 ${D.length} 条数据`);
12807
12807
  }
12808
12808
  const { toAoa: v } = Ae(l.view), { copy: y } = At();
12809
12809
  function E() {
12810
- const [D, C] = v(l.selection), A = [];
12811
- D.map(($, F) => {
12812
- const U = C[F];
12813
- U != null && A.push([$, U]);
12810
+ const [D, C] = v(l.selection), V = [];
12811
+ D.map(($, P) => {
12812
+ const U = C[P];
12813
+ U != null && V.push([$, U]);
12814
12814
  });
12815
- const P = JSON.stringify(Object.fromEntries(A));
12816
- y(P).then(() => Q.success("所选数据已存入剪切板"));
12815
+ const F = JSON.stringify(Object.fromEntries(V));
12816
+ y(F).then(() => X.success("所选数据已存入剪切板"));
12817
12817
  }
12818
12818
  return t({ controller: {
12819
12819
  insert: (D) => _(!0, D),
12820
- edit: () => l.selection.length ? _(!1) : Q.warning("请选择数据"),
12821
- remove: () => l.selection.length ? g() : Q.warning("请选择数据"),
12822
- clone: () => l.selection.length ? p() : Q.warning("请选择数据"),
12823
- paste: () => l.selection.length ? E() : Q.warning("请选择数据")
12820
+ edit: () => l.selection.length ? _(!1) : X.warning("请选择数据"),
12821
+ remove: () => l.selection.length ? g() : X.warning("请选择数据"),
12822
+ clone: () => l.selection.length ? p() : X.warning("请选择数据"),
12823
+ paste: () => l.selection.length ? E() : X.warning("请选择数据")
12824
12824
  } }), (D, C) => {
12825
- const A = w("el-text"), P = w("el-tag"), $ = w("el-space");
12825
+ const V = w("el-text"), F = w("el-tag"), $ = w("el-space");
12826
12826
  return b(), M(H, null, [
12827
12827
  e.error ? K("", !0) : (b(), k(Or, {
12828
12828
  key: 0,
12829
12829
  admin: e.admin,
12830
12830
  view: e.view,
12831
12831
  selection: e.selection,
12832
- onInsert: C[0] || (C[0] = (F) => _(!0)),
12833
- onEdit: C[1] || (C[1] = (F) => _(!1)),
12832
+ onInsert: C[0] || (C[0] = (P) => _(!0)),
12833
+ onEdit: C[1] || (C[1] = (P) => _(!1)),
12834
12834
  onRemove: g,
12835
12835
  onClone: p,
12836
12836
  onDownload: e.rest.download,
12837
- onUpload: C[2] || (C[2] = (F) => o("upload"))
12837
+ onUpload: C[2] || (C[2] = (P) => o("upload"))
12838
12838
  }, null, 8, ["admin", "view", "selection", "onDownload"])),
12839
12839
  m(h(le), {
12840
12840
  ref_key: "dialog",
@@ -12842,8 +12842,8 @@ const Or = /* @__PURE__ */ R({
12842
12842
  confirm: i,
12843
12843
  cancel: u
12844
12844
  }, {
12845
- header: f(({ data: { insert: F, keys: U } }) => [
12846
- F ? (b(), k(A, {
12845
+ header: f(({ data: { insert: P, keys: U } }) => [
12846
+ P ? (b(), k(V, {
12847
12847
  key: 0,
12848
12848
  type: "success",
12849
12849
  tag: "b"
@@ -12854,7 +12854,7 @@ const Or = /* @__PURE__ */ R({
12854
12854
  _: 1
12855
12855
  })) : (b(), k($, { key: 1 }, {
12856
12856
  default: f(() => [
12857
- m(A, {
12857
+ m(V, {
12858
12858
  type: "warning",
12859
12859
  tag: "b"
12860
12860
  }, {
@@ -12863,7 +12863,7 @@ const Or = /* @__PURE__ */ R({
12863
12863
  ])]),
12864
12864
  _: 1
12865
12865
  }),
12866
- m(P, {
12866
+ m(F, {
12867
12867
  type: "primary",
12868
12868
  hit: "",
12869
12869
  size: "small",
@@ -12874,7 +12874,7 @@ const Or = /* @__PURE__ */ R({
12874
12874
  ]),
12875
12875
  _: 2
12876
12876
  }, 1024),
12877
- m(A, {
12877
+ m(V, {
12878
12878
  type: "warning",
12879
12879
  tag: "b"
12880
12880
  }, {
@@ -12887,16 +12887,16 @@ const Or = /* @__PURE__ */ R({
12887
12887
  _: 2
12888
12888
  }, 1024))
12889
12889
  ]),
12890
- default: f(({ data: { keys: F, item: U, insert: T } }) => [
12890
+ default: f(({ data: { keys: P, item: U, insert: A } }) => [
12891
12891
  m(h(Hn), {
12892
12892
  ref_key: "form",
12893
12893
  ref: a,
12894
12894
  item: U,
12895
- keys: F,
12895
+ keys: P,
12896
12896
  view: e.view,
12897
- insert: T,
12897
+ insert: A,
12898
12898
  core: e.core,
12899
- onReload: C[3] || (C[3] = (I) => e.rest.reload())
12899
+ onReload: C[3] || (C[3] = (R) => e.rest.reload())
12900
12900
  }, null, 8, ["item", "keys", "view", "insert", "core"])
12901
12901
  ]),
12902
12902
  _: 1
@@ -12904,7 +12904,7 @@ const Or = /* @__PURE__ */ R({
12904
12904
  ], 64);
12905
12905
  };
12906
12906
  }
12907
- }), R_ = /* @__PURE__ */ R({
12907
+ }), R_ = /* @__PURE__ */ I({
12908
12908
  __name: "CellPopover",
12909
12909
  props: {
12910
12910
  results: {},
@@ -12969,7 +12969,7 @@ const Or = /* @__PURE__ */ R({
12969
12969
  _: 1
12970
12970
  }, 512));
12971
12971
  }
12972
- }), I_ = /* @__PURE__ */ R({
12972
+ }), I_ = /* @__PURE__ */ I({
12973
12973
  __name: "IndexPopover",
12974
12974
  props: {
12975
12975
  results: {},
@@ -13026,7 +13026,7 @@ const Or = /* @__PURE__ */ R({
13026
13026
  _: 1
13027
13027
  }, 512));
13028
13028
  }
13029
- }), P_ = /* @__PURE__ */ R({
13029
+ }), P_ = /* @__PURE__ */ I({
13030
13030
  __name: "CellDialog",
13031
13031
  props: {
13032
13032
  results: {},
@@ -13129,7 +13129,7 @@ const Or = /* @__PURE__ */ R({
13129
13129
  }), F_ = {
13130
13130
  class: "justified",
13131
13131
  style: { "margin-bottom": "5px" }
13132
- }, N_ = { style: { "margin-right": "5px" } }, U_ = /* @__PURE__ */ R({
13132
+ }, N_ = { style: { "margin-right": "5px" } }, U_ = /* @__PURE__ */ I({
13133
13133
  __name: "MTableFinder",
13134
13134
  props: {
13135
13135
  field: {},
@@ -13160,27 +13160,27 @@ const Or = /* @__PURE__ */ R({
13160
13160
  }
13161
13161
  const _ = () => o("confirm");
13162
13162
  return t({ getData: d }), (g, p) => {
13163
- const v = w("el-segmented"), y = w("el-text"), E = w("el-option"), V = w("el-select"), D = w("el-space"), C = w("el-checkbox"), A = w("el-input-tag"), P = w("el-input"), $ = w("el-col"), F = w("el-row"), U = w("el-divider");
13163
+ const v = w("el-segmented"), y = w("el-text"), E = w("el-option"), T = w("el-select"), D = w("el-space"), C = w("el-checkbox"), V = w("el-input-tag"), F = w("el-input"), $ = w("el-col"), P = w("el-row"), U = w("el-divider");
13164
13164
  return b(), M(H, null, [
13165
13165
  te("div", F_, [
13166
13166
  m(v, {
13167
13167
  style: { border: "1px solid #cccccc" },
13168
13168
  options: r,
13169
13169
  modelValue: i.value.type,
13170
- "onUpdate:modelValue": p[0] || (p[0] = (T) => i.value.type = T)
13170
+ "onUpdate:modelValue": p[0] || (p[0] = (A) => i.value.type = A)
13171
13171
  }, null, 8, ["modelValue"]),
13172
13172
  m(D, null, {
13173
13173
  default: f(() => [
13174
- m(V, {
13174
+ m(T, {
13175
13175
  modelValue: i.value.lookup,
13176
- "onUpdate:modelValue": p[1] || (p[1] = (T) => i.value.lookup = T),
13176
+ "onUpdate:modelValue": p[1] || (p[1] = (A) => i.value.lookup = A),
13177
13177
  style: { width: "100px" },
13178
13178
  onChange: u
13179
13179
  }, {
13180
- label: f(({ label: T }) => [
13180
+ label: f(({ label: A }) => [
13181
13181
  m(y, null, {
13182
13182
  default: f(() => [
13183
- S(z(T), 1)
13183
+ S(z(A), 1)
13184
13184
  ]),
13185
13185
  _: 2
13186
13186
  }, 1024),
@@ -13192,9 +13192,9 @@ const Or = /* @__PURE__ */ R({
13192
13192
  })
13193
13193
  ]),
13194
13194
  default: f(() => [
13195
- (b(!0), M(H, null, se(h(s), (T, I) => (b(), k(E, {
13196
- value: I,
13197
- label: T
13195
+ (b(!0), M(H, null, se(h(s), (A, R) => (b(), k(E, {
13196
+ value: R,
13197
+ label: A
13198
13198
  }, null, 8, ["value", "label"]))), 256))
13199
13199
  ]),
13200
13200
  _: 1
@@ -13206,7 +13206,7 @@ const Or = /* @__PURE__ */ R({
13206
13206
  i.value.lookup === "isnull" ? (b(), k(C, {
13207
13207
  key: 0,
13208
13208
  modelValue: i.value.value,
13209
- "onUpdate:modelValue": p[2] || (p[2] = (T) => i.value.value = T),
13209
+ "onUpdate:modelValue": p[2] || (p[2] = (A) => i.value.value = A),
13210
13210
  border: "",
13211
13211
  size: "large",
13212
13212
  style: { width: "100%" },
@@ -13216,14 +13216,14 @@ const Or = /* @__PURE__ */ R({
13216
13216
  S("  " + z(i.value.value ? "仅空值" : "仅非空值"), 1)
13217
13217
  ]),
13218
13218
  _: 1
13219
- }, 8, ["modelValue"])) : i.value.lookup === "in" ? (b(), k(A, {
13219
+ }, 8, ["modelValue"])) : i.value.lookup === "in" ? (b(), k(V, {
13220
13220
  key: 1,
13221
13221
  size: "large",
13222
13222
  modelValue: i.value.value,
13223
- "onUpdate:modelValue": p[3] || (p[3] = (T) => i.value.value = T),
13223
+ "onUpdate:modelValue": p[3] || (p[3] = (A) => i.value.value = A),
13224
13224
  clearable: "",
13225
13225
  draggable: ""
13226
- }, null, 8, ["modelValue"])) : i.value.lookup === "range" ? (b(), k(F, {
13226
+ }, null, 8, ["modelValue"])) : i.value.lookup === "range" ? (b(), k(P, {
13227
13227
  key: 2,
13228
13228
  gutter: 10,
13229
13229
  align: "middle"
@@ -13231,9 +13231,9 @@ const Or = /* @__PURE__ */ R({
13231
13231
  default: f(() => [
13232
13232
  m($, { span: 11 }, {
13233
13233
  default: f(() => [
13234
- m(P, {
13234
+ m(F, {
13235
13235
  modelValue: i.value.value.from,
13236
- "onUpdate:modelValue": p[4] || (p[4] = (T) => i.value.value.from = T),
13236
+ "onUpdate:modelValue": p[4] || (p[4] = (A) => i.value.value.from = A),
13237
13237
  onKeyup: Le(_, ["enter"])
13238
13238
  }, null, 8, ["modelValue"])
13239
13239
  ]),
@@ -13250,9 +13250,9 @@ const Or = /* @__PURE__ */ R({
13250
13250
  }),
13251
13251
  m($, { span: 11 }, {
13252
13252
  default: f(() => [
13253
- m(P, {
13253
+ m(F, {
13254
13254
  modelValue: i.value.value.to,
13255
- "onUpdate:modelValue": p[5] || (p[5] = (T) => i.value.value.to = T),
13255
+ "onUpdate:modelValue": p[5] || (p[5] = (A) => i.value.value.to = A),
13256
13256
  onKeyup: Le(_, ["enter"])
13257
13257
  }, null, 8, ["modelValue"])
13258
13258
  ]),
@@ -13260,11 +13260,11 @@ const Or = /* @__PURE__ */ R({
13260
13260
  })
13261
13261
  ]),
13262
13262
  _: 1
13263
- })) : (b(), k(P, {
13263
+ })) : (b(), k(F, {
13264
13264
  key: 3,
13265
13265
  size: "large",
13266
13266
  modelValue: i.value.value,
13267
- "onUpdate:modelValue": p[9] || (p[9] = (T) => i.value.value = T),
13267
+ "onUpdate:modelValue": p[9] || (p[9] = (A) => i.value.value = A),
13268
13268
  onKeyup: Le(_, ["enter"])
13269
13269
  }, {
13270
13270
  prefix: f(() => [
@@ -13274,21 +13274,21 @@ const Or = /* @__PURE__ */ R({
13274
13274
  class: "pointer",
13275
13275
  size: "lg",
13276
13276
  icon: i.value.affix ? "greater-than-equal" : "greater-than",
13277
- onClick: p[6] || (p[6] = (T) => i.value.affix = !i.value.affix),
13277
+ onClick: p[6] || (p[6] = (A) => i.value.affix = !i.value.affix),
13278
13278
  type: "primary"
13279
13279
  }, null, 8, ["icon"])) : i.value.lookup === "lt" ? (b(), k(h(j), {
13280
13280
  key: 1,
13281
13281
  class: "pointer",
13282
13282
  size: "lg",
13283
13283
  icon: i.value.affix ? "less-than-equal" : "less-than",
13284
- onClick: p[7] || (p[7] = (T) => i.value.affix = !i.value.affix),
13284
+ onClick: p[7] || (p[7] = (A) => i.value.affix = !i.value.affix),
13285
13285
  type: "primary"
13286
13286
  }, null, 8, ["icon"])) : (b(), k(h(j), {
13287
13287
  key: 2,
13288
13288
  class: "pointer",
13289
13289
  icon: i.value.affix ? "a" : "ad",
13290
13290
  size: "lg",
13291
- onClick: p[8] || (p[8] = (T) => i.value.affix = !i.value.affix),
13291
+ onClick: p[8] || (p[8] = (A) => i.value.affix = !i.value.affix),
13292
13292
  type: "primary"
13293
13293
  }, null, 8, ["icon"]))
13294
13294
  ]),
@@ -13299,7 +13299,7 @@ const Or = /* @__PURE__ */ R({
13299
13299
  ], 64);
13300
13300
  };
13301
13301
  }
13302
- }), B_ = /* @__PURE__ */ R({
13302
+ }), B_ = /* @__PURE__ */ I({
13303
13303
  __name: "LookupPopover",
13304
13304
  props: {
13305
13305
  results: {},
@@ -13328,7 +13328,7 @@ const Or = /* @__PURE__ */ R({
13328
13328
  u && (n.rest.lookup(i.prop, u), o.value?.close());
13329
13329
  }
13330
13330
  function a(i) {
13331
- n.rest.lookup(i.prop), Q.info(`已清空${i.name}的检索条件`), o.value?.close();
13331
+ n.rest.lookup(i.prop), X.info(`已清空${i.name}的检索条件`), o.value?.close();
13332
13332
  }
13333
13333
  function r(i, u) {
13334
13334
  n.view.allow_search && u.allow_search && o.value?.open(i, { title: `检索:${u.name}`, data: u });
@@ -13366,7 +13366,7 @@ const Or = /* @__PURE__ */ R({
13366
13366
  _: 1
13367
13367
  }, 512));
13368
13368
  }
13369
- }), L_ = /* @__PURE__ */ R({
13369
+ }), L_ = /* @__PURE__ */ I({
13370
13370
  __name: "UploadControl",
13371
13371
  props: {
13372
13372
  param: {},
@@ -13455,7 +13455,7 @@ const Or = /* @__PURE__ */ R({
13455
13455
  });
13456
13456
  };
13457
13457
  }
13458
- }), z_ = /* @__PURE__ */ R({
13458
+ }), z_ = /* @__PURE__ */ I({
13459
13459
  __name: "UploadButtons",
13460
13460
  props: {
13461
13461
  notEmpty: { type: Boolean }
@@ -13508,7 +13508,7 @@ const Or = /* @__PURE__ */ R({
13508
13508
  }));
13509
13509
  };
13510
13510
  }
13511
- }), M_ = /* @__PURE__ */ R({
13511
+ }), M_ = /* @__PURE__ */ I({
13512
13512
  __name: "UploadDictionary",
13513
13513
  props: {
13514
13514
  frame: {}
@@ -13516,7 +13516,7 @@ const Or = /* @__PURE__ */ R({
13516
13516
  setup(e) {
13517
13517
  return (t, n) => z(e.frame);
13518
13518
  }
13519
- }), j_ = /* @__PURE__ */ R({
13519
+ }), j_ = /* @__PURE__ */ I({
13520
13520
  __name: "UploadTableCell",
13521
13521
  props: {
13522
13522
  field: {},
@@ -13538,7 +13538,7 @@ const Or = /* @__PURE__ */ R({
13538
13538
  }, 8, ["type", "tag"]);
13539
13539
  };
13540
13540
  }
13541
- }), q_ = /* @__PURE__ */ R({
13541
+ }), q_ = /* @__PURE__ */ I({
13542
13542
  __name: "UploadTableValidation",
13543
13543
  props: {
13544
13544
  row: {}
@@ -13599,7 +13599,7 @@ const Or = /* @__PURE__ */ R({
13599
13599
  }, 8, ["disabled"]);
13600
13600
  };
13601
13601
  }
13602
- }), H_ = /* @__PURE__ */ R({
13602
+ }), H_ = /* @__PURE__ */ I({
13603
13603
  __name: "UploadTable",
13604
13604
  props: {
13605
13605
  fields: {},
@@ -13615,14 +13615,14 @@ const Or = /* @__PURE__ */ R({
13615
13615
  return c.value ? !0 : u.value ? !!g.payload : !i.value === g.valid && !g.payload;
13616
13616
  }
13617
13617
  const s = O(() => o.rows.filter(l)), a = x(new Ft()), { results: r } = Ko(s, a), i = x(!0), u = x(!1), c = x(!0), d = O(() => {
13618
- const g = o.rows.length, p = o.rows.filter((V) => !V.payload), v = g - p.length, y = p.filter((V) => V.valid).length, E = p.length - y;
13618
+ const g = o.rows.length, p = o.rows.filter((T) => !T.payload), v = g - p.length, y = p.filter((T) => T.valid).length, E = p.length - y;
13619
13619
  return { total: g, removed: v, valid: y, invalid: E };
13620
13620
  });
13621
13621
  function _() {
13622
13622
  u.value = !1, i.value = !1;
13623
13623
  }
13624
13624
  return (g, p) => {
13625
- const v = w("el-checkbox"), y = w("el-space"), E = w("el-radio"), V = w("el-radio-group"), D = w("el-col"), C = w("el-text"), A = w("el-table-column"), P = w("el-tooltip"), $ = w("el-table"), F = w("el-pagination"), U = w("el-row");
13625
+ const v = w("el-checkbox"), y = w("el-space"), E = w("el-radio"), T = w("el-radio-group"), D = w("el-col"), C = w("el-text"), V = w("el-table-column"), F = w("el-tooltip"), $ = w("el-table"), P = w("el-pagination"), U = w("el-row");
13626
13626
  return b(), k(U, null, {
13627
13627
  default: f(() => [
13628
13628
  e.rows.length ? (b(), k(D, {
@@ -13634,7 +13634,7 @@ const Or = /* @__PURE__ */ R({
13634
13634
  default: f(() => [
13635
13635
  m(v, {
13636
13636
  modelValue: c.value,
13637
- "onUpdate:modelValue": p[0] || (p[0] = (T) => c.value = T),
13637
+ "onUpdate:modelValue": p[0] || (p[0] = (A) => c.value = A),
13638
13638
  size: "small",
13639
13639
  onChange: _
13640
13640
  }, {
@@ -13646,8 +13646,8 @@ const Or = /* @__PURE__ */ R({
13646
13646
  m(v, {
13647
13647
  disabled: c.value,
13648
13648
  modelValue: u.value,
13649
- "onUpdate:modelValue": p[1] || (p[1] = (T) => u.value = T),
13650
- onChange: p[2] || (p[2] = (T) => i.value = !1),
13649
+ "onUpdate:modelValue": p[1] || (p[1] = (A) => u.value = A),
13650
+ onChange: p[2] || (p[2] = (A) => i.value = !1),
13651
13651
  size: "small"
13652
13652
  }, {
13653
13653
  default: f(() => [
@@ -13658,10 +13658,10 @@ const Or = /* @__PURE__ */ R({
13658
13658
  ]),
13659
13659
  _: 1
13660
13660
  }),
13661
- m(V, {
13661
+ m(T, {
13662
13662
  disabled: u.value || c.value,
13663
13663
  modelValue: i.value,
13664
- "onUpdate:modelValue": p[3] || (p[3] = (T) => i.value = T),
13664
+ "onUpdate:modelValue": p[3] || (p[3] = (A) => i.value = A),
13665
13665
  size: "small"
13666
13666
  }, {
13667
13667
  default: f(() => [
@@ -13719,7 +13719,7 @@ const Or = /* @__PURE__ */ R({
13719
13719
  }))
13720
13720
  ]),
13721
13721
  default: f(() => [
13722
- m(A, {
13722
+ m(V, {
13723
13723
  prop: "$index",
13724
13724
  label: "序号",
13725
13725
  width: "80",
@@ -13727,31 +13727,31 @@ const Or = /* @__PURE__ */ R({
13727
13727
  sortable: "",
13728
13728
  resizable: !1
13729
13729
  }, {
13730
- default: f(({ row: T }) => [
13730
+ default: f(({ row: A }) => [
13731
13731
  m(C, {
13732
13732
  size: "small",
13733
13733
  type: "info"
13734
13734
  }, {
13735
13735
  default: f(() => [
13736
- S(z(T.$index + 1), 1)
13736
+ S(z(A.$index + 1), 1)
13737
13737
  ]),
13738
13738
  _: 2
13739
13739
  }, 1024)
13740
13740
  ]),
13741
13741
  _: 1
13742
13742
  }),
13743
- (b(!0), M(H, null, se(e.fields, (T) => (b(), k(A, {
13744
- prop: T.prop,
13745
- label: T.label,
13746
- align: T.align,
13743
+ (b(!0), M(H, null, se(e.fields, (A) => (b(), k(V, {
13744
+ prop: A.prop,
13745
+ label: A.label,
13746
+ align: A.align,
13747
13747
  "header-align": "left",
13748
13748
  sortable: "",
13749
13749
  resizable: !1
13750
13750
  }, {
13751
13751
  header: f(() => [
13752
- m(P, null, {
13752
+ m(F, null, {
13753
13753
  content: f(() => [
13754
- S(z(T.label) + "/" + z(T.tool) + "/" + z(T.format), 1)
13754
+ S(z(A.label) + "/" + z(A.tool) + "/" + z(A.format), 1)
13755
13755
  ]),
13756
13756
  default: f(() => [
13757
13757
  m(C, {
@@ -13759,7 +13759,7 @@ const Or = /* @__PURE__ */ R({
13759
13759
  size: "small"
13760
13760
  }, {
13761
13761
  default: f(() => [
13762
- S(z(T.label), 1)
13762
+ S(z(A.label), 1)
13763
13763
  ]),
13764
13764
  _: 2
13765
13765
  }, 1024)
@@ -13767,36 +13767,36 @@ const Or = /* @__PURE__ */ R({
13767
13767
  _: 2
13768
13768
  }, 1024)
13769
13769
  ]),
13770
- default: f(({ row: { cells: I }, row: B }) => [
13770
+ default: f(({ row: { cells: R }, row: B }) => [
13771
13771
  m(j_, {
13772
- field: T,
13772
+ field: A,
13773
13773
  row: B
13774
13774
  }, null, 8, ["field", "row"])
13775
13775
  ]),
13776
13776
  _: 2
13777
13777
  }, 1032, ["prop", "label", "align"]))), 256)),
13778
- m(A, {
13778
+ m(V, {
13779
13779
  prop: "$index",
13780
13780
  width: "50",
13781
13781
  align: "center",
13782
13782
  label: "验证",
13783
13783
  resizable: !1
13784
13784
  }, {
13785
- default: f(({ row: T }) => [
13786
- m(q_, { row: T }, null, 8, ["row"])
13785
+ default: f(({ row: A }) => [
13786
+ m(q_, { row: A }, null, 8, ["row"])
13787
13787
  ]),
13788
13788
  _: 1
13789
13789
  }),
13790
- m(A, {
13790
+ m(V, {
13791
13791
  prop: "$index",
13792
13792
  width: "100",
13793
13793
  label: "操作",
13794
13794
  align: "center",
13795
13795
  resizable: !1
13796
13796
  }, {
13797
- default: f(({ row: T }) => [
13797
+ default: f(({ row: A }) => [
13798
13798
  m(h(W), {
13799
- onClick: (I) => n("edit", T),
13799
+ onClick: (R) => n("edit", A),
13800
13800
  type: "primary"
13801
13801
  }, {
13802
13802
  default: f(() => [...p[6] || (p[6] = [
@@ -13804,9 +13804,9 @@ const Or = /* @__PURE__ */ R({
13804
13804
  ])]),
13805
13805
  _: 1
13806
13806
  }, 8, ["onClick"]),
13807
- T.payload ? (b(), k(h(W), {
13807
+ A.payload ? (b(), k(h(W), {
13808
13808
  key: 0,
13809
- onClick: (I) => n("restore", T),
13809
+ onClick: (R) => n("restore", A),
13810
13810
  type: "info"
13811
13811
  }, {
13812
13812
  default: f(() => [...p[7] || (p[7] = [
@@ -13815,7 +13815,7 @@ const Or = /* @__PURE__ */ R({
13815
13815
  _: 1
13816
13816
  }, 8, ["onClick"])) : (b(), k(h(W), {
13817
13817
  key: 1,
13818
- onClick: (I) => n("remove", T),
13818
+ onClick: (R) => n("remove", A),
13819
13819
  type: "danger"
13820
13820
  }, {
13821
13821
  default: f(() => [...p[8] || (p[8] = [
@@ -13839,13 +13839,13 @@ const Or = /* @__PURE__ */ R({
13839
13839
  default: f(() => [
13840
13840
  m(y, null, {
13841
13841
  default: f(() => [
13842
- m(F, {
13842
+ m(P, {
13843
13843
  size: "small",
13844
13844
  total: e.rows.length,
13845
13845
  "current-page": a.value.page,
13846
- "onUpdate:currentPage": p[4] || (p[4] = (T) => a.value.page = T),
13846
+ "onUpdate:currentPage": p[4] || (p[4] = (A) => a.value.page = A),
13847
13847
  ":page-size": a.value.size,
13848
- "onUpdate::pageSize": p[5] || (p[5] = (T) => a.value.size = T),
13848
+ "onUpdate::pageSize": p[5] || (p[5] = (A) => a.value.size = A),
13849
13849
  "pager-count": 5,
13850
13850
  background: "",
13851
13851
  layout: "sizes, prev, pager, next, jumper"
@@ -13870,48 +13870,48 @@ function Y_(e) {
13870
13870
  useKey: !1
13871
13871
  }), { post: o, loading: l } = at(), s = x({});
13872
13872
  J(t, () => {
13873
- const { $db: y, $entity: E, $code: V } = t.value.view;
13874
- o("valar/upload_frame", { db: y, entity: E, code: V }).then((C) => s.value = C);
13873
+ const { $db: y, $entity: E, $code: T } = t.value.view;
13874
+ o("valar/upload_frame", { db: y, entity: E, code: T }).then((C) => s.value = C);
13875
13875
  }, { deep: !0, immediate: !0 }), J(() => [n.value, s.value], () => {
13876
13876
  });
13877
13877
  const { fromMode: a } = Ae(t.value.view), r = O(() => {
13878
- const { $modes: y, $fields: E } = t.value.view, V = [];
13879
- return (n.value.hasId || n.value.isUpdate) && V.push(a(y.id)), n.value.hasSort && V.push(a(y.sort)), Object.values(E).filter((D) => {
13880
- const { prop: C, allow_update: A, allow_upload: P } = D, $ = !["id", "sort"].includes(C), F = n.value.isUpdate ? A : P;
13881
- return $ && F;
13878
+ const { $modes: y, $fields: E } = t.value.view, T = [];
13879
+ return (n.value.hasId || n.value.isUpdate) && T.push(a(y.id)), n.value.hasSort && T.push(a(y.sort)), Object.values(E).filter((D) => {
13880
+ const { prop: C, allow_update: V, allow_upload: F } = D, $ = !["id", "sort"].includes(C), P = n.value.isUpdate ? V : F;
13881
+ return $ && P;
13882
13882
  }).forEach((D) => {
13883
- let { domain: C, prop: A, label: P, not_null: $, format: F } = D;
13883
+ let { domain: C, prop: V, label: F, not_null: $, format: P } = D;
13884
13884
  if (ge.DOMAINS.referred) {
13885
- const U = ge.DOMAINS.multiple.includes(C), T = n.value.useKey ? "value" : "label", I = (s.value[A] || []).map((q) => [q[T], q[T]]), B = Object.fromEntries(I);
13886
- V.push(a({ prop: A, label: P, domain: C, not_null: $, multiple: U, set: B }));
13885
+ const U = ge.DOMAINS.multiple.includes(C), A = n.value.useKey ? "value" : "label", R = (s.value[V] || []).map((q) => [q[A], q[A]]), B = Object.fromEntries(R);
13886
+ T.push(a({ prop: V, label: F, domain: C, not_null: $, multiple: U, set: B }));
13887
13887
  } else {
13888
- const { set: U, multiple: T } = F;
13889
- V.push(a({ prop: A, label: P, domain: C, not_null: $, multiple: T, set: U }));
13888
+ const { set: U, multiple: A } = P;
13889
+ T.push(a({ prop: V, label: F, domain: C, not_null: $, multiple: A, set: U }));
13890
13890
  }
13891
- }), V;
13891
+ }), T;
13892
13892
  }), i = O(() => {
13893
13893
  const y = Object.fromEntries(r.value.map((E) => [E.prop, E]));
13894
13894
  return new Me({ $fields: y, $$validator: t.value.validator });
13895
13895
  }), { parseRow: u } = Ae(i), c = x([]), d = x([]), _ = O(() => !!c.value.length);
13896
13896
  function g(y) {
13897
- c.value = y, d.value = c.value.map((E, V) => u(E, V));
13897
+ c.value = y, d.value = c.value.map((E, T) => u(E, T));
13898
13898
  }
13899
13899
  const p = O(() => {
13900
13900
  const y = i.value.$fields;
13901
13901
  return d.value.filter((E) => E.valid && !E.payload).map(({ cells: E }) => {
13902
- const V = Object.entries(E).map(([D, C]) => {
13903
- const { format: { multiple: A } } = y[D];
13904
- if (A) {
13905
- const P = C.value ? C.value.split(";") : [];
13906
- return [D, P];
13902
+ const T = Object.entries(E).map(([D, C]) => {
13903
+ const { format: { multiple: V } } = y[D];
13904
+ if (V) {
13905
+ const F = C.value ? C.value.split(";") : [];
13906
+ return [D, F];
13907
13907
  } else
13908
13908
  return [D, C.value];
13909
13909
  });
13910
- return Object.fromEntries(V);
13910
+ return Object.fromEntries(T);
13911
13911
  });
13912
13912
  });
13913
13913
  function v(y, E) {
13914
- const V = c.value[E], D = xo(V, y || {});
13914
+ const T = c.value[E], D = xo(T, y || {});
13915
13915
  c.value[E] = D, d.value[E] = u(D, E);
13916
13916
  }
13917
13917
  return {
@@ -13928,7 +13928,7 @@ function Y_(e) {
13928
13928
  $view: i
13929
13929
  };
13930
13930
  }
13931
- const W_ = /* @__PURE__ */ R({
13931
+ const W_ = /* @__PURE__ */ I({
13932
13932
  __name: "ImporterTemplate",
13933
13933
  props: {
13934
13934
  fields: {}
@@ -13937,7 +13937,7 @@ const W_ = /* @__PURE__ */ R({
13937
13937
  const t = e, { write: n } = Ut(), { toText: o } = gt(), { copy: l } = At(), s = O(() => t.fields.map((i) => i.label));
13938
13938
  function a() {
13939
13939
  const i = o([s.value]);
13940
- l(i).then(() => Q.info("表头已复制,请即使将其粘贴到Excel文件中。"));
13940
+ l(i).then(() => X.info("表头已复制,请即使将其粘贴到Excel文件中。"));
13941
13941
  }
13942
13942
  function r() {
13943
13943
  const i = { data: [s.value] };
@@ -14031,7 +14031,7 @@ const W_ = /* @__PURE__ */ R({
14031
14031
  });
14032
14032
  };
14033
14033
  }
14034
- }), G_ = /* @__PURE__ */ R({
14034
+ }), G_ = /* @__PURE__ */ I({
14035
14035
  __name: "PasterImporter",
14036
14036
  emits: ["confirm", "pending"],
14037
14037
  setup(e, { emit: t }) {
@@ -14062,7 +14062,7 @@ const W_ = /* @__PURE__ */ R({
14062
14062
  });
14063
14063
  };
14064
14064
  }
14065
- }), J_ = /* @__PURE__ */ R({
14065
+ }), J_ = /* @__PURE__ */ I({
14066
14066
  __name: "FileImporter",
14067
14067
  emits: ["confirm", "pending"],
14068
14068
  setup(e, { emit: t }) {
@@ -14110,7 +14110,7 @@ const W_ = /* @__PURE__ */ R({
14110
14110
  });
14111
14111
  };
14112
14112
  }
14113
- }), X_ = /* @__PURE__ */ R({
14113
+ }), X_ = /* @__PURE__ */ I({
14114
14114
  __name: "UploadImporter",
14115
14115
  props: {
14116
14116
  fields: {},
@@ -14177,7 +14177,7 @@ const W_ = /* @__PURE__ */ R({
14177
14177
  ]);
14178
14178
  };
14179
14179
  }
14180
- }), Z_ = /* @__PURE__ */ R({
14180
+ }), Z_ = /* @__PURE__ */ I({
14181
14181
  __name: "MUpload",
14182
14182
  props: {
14183
14183
  view: {},
@@ -14185,53 +14185,53 @@ const W_ = /* @__PURE__ */ R({
14185
14185
  },
14186
14186
  emits: ["confirm"],
14187
14187
  setup(e, { emit: t }) {
14188
- const n = t, o = e, l = x(), s = x(), a = x(), r = x(), { loading: i, setArray: u, notEmpty: c, param: d, fields: _, rows: g, results: p, frame: v, array: y, save: E, $view: V } = Y_(o);
14189
- function D(T) {
14190
- s.value?.close(), u(T);
14188
+ const n = t, o = e, l = x(), s = x(), a = x(), r = x(), { loading: i, setArray: u, notEmpty: c, param: d, fields: _, rows: g, results: p, frame: v, array: y, save: E, $view: T } = Y_(o);
14189
+ function D(A) {
14190
+ s.value?.close(), u(A);
14191
14191
  }
14192
14192
  function C() {
14193
14193
  De.info("是否清空数据").then(() => u([]));
14194
14194
  }
14195
- function A(T) {
14196
- a.value?.open(T);
14195
+ function V(A) {
14196
+ a.value?.open(A);
14197
14197
  }
14198
- function P(T, I) {
14199
- const B = T.$index, q = r.value?.getData();
14200
- q ? (q.length && E(q[0], B), I()) : (Q.warning("注意验证信息"), I(!1));
14198
+ function F(A, R) {
14199
+ const B = A.$index, q = r.value?.getData();
14200
+ q ? (q.length && E(q[0], B), R()) : (X.warning("注意验证信息"), R(!1));
14201
14201
  }
14202
- function $(T) {
14203
- T.payload = !0;
14202
+ function $(A) {
14203
+ A.payload = !0;
14204
14204
  }
14205
- function F(T) {
14206
- T.payload = void 0;
14205
+ function P(A) {
14206
+ A.payload = void 0;
14207
14207
  }
14208
14208
  function U() {
14209
- const T = p.value.length;
14210
- p.value.length ? De.warning(`当前结果有效数据 ${T} 条,是否上传?`).then(() => {
14209
+ const A = p.value.length;
14210
+ p.value.length ? De.warning(`当前结果有效数据 ${A} 条,是否上传?`).then(() => {
14211
14211
  if (d.value.useKey)
14212
14212
  n("confirm", p.value);
14213
14213
  else {
14214
- const I = p.value.map((B) => (Object.keys(v.value).forEach((q) => {
14215
- const Z = v.value[q], de = B[q];
14214
+ const R = p.value.map((B) => (Object.keys(v.value).forEach((q) => {
14215
+ const Q = v.value[q], de = B[q];
14216
14216
  if (de instanceof Array) {
14217
14217
  const ne = [];
14218
14218
  de.forEach((G) => {
14219
- const ae = Z.find((oe) => oe.label === G);
14219
+ const ae = Q.find((oe) => oe.label === G);
14220
14220
  ae && ne.push(ae.value);
14221
14221
  }), B[q] = ne;
14222
14222
  } else {
14223
- const ne = Z.find((G) => G.label === de) || {};
14223
+ const ne = Q.find((G) => G.label === de) || {};
14224
14224
  B[q] = ne.value;
14225
14225
  }
14226
14226
  }), B));
14227
- n("confirm", I);
14227
+ n("confirm", R);
14228
14228
  }
14229
- }) : Q.warning("无有效数据");
14229
+ }) : X.warning("无有效数据");
14230
14230
  }
14231
- return (T, I) => {
14232
- const B = w("el-space"), q = w("el-col"), Z = w("el-row"), de = Tt("loading");
14231
+ return (A, R) => {
14232
+ const B = w("el-space"), q = w("el-col"), Q = w("el-row"), de = Tt("loading");
14233
14233
  return b(), M(H, null, [
14234
- Ye((b(), k(Z, { align: "middle" }, {
14234
+ Ye((b(), k(Q, { align: "middle" }, {
14235
14235
  default: f(() => [
14236
14236
  m(q, { class: "justified" }, {
14237
14237
  default: f(() => [
@@ -14239,9 +14239,9 @@ const W_ = /* @__PURE__ */ R({
14239
14239
  default: f(() => [
14240
14240
  m(h(L_), {
14241
14241
  param: h(d),
14242
- "onUpdate:param": I[0] || (I[0] = (ne) => ie(d) ? d.value = ne : null),
14242
+ "onUpdate:param": R[0] || (R[0] = (ne) => ie(d) ? d.value = ne : null),
14243
14243
  "not-empty": h(c),
14244
- onDictionary: I[1] || (I[1] = (ne) => l.value?.open())
14244
+ onDictionary: R[1] || (R[1] = (ne) => l.value?.open())
14245
14245
  }, null, 8, ["param", "not-empty"])
14246
14246
  ]),
14247
14247
  _: 1
@@ -14252,7 +14252,7 @@ const W_ = /* @__PURE__ */ R({
14252
14252
  "not-empty": h(c),
14253
14253
  onClear: C,
14254
14254
  onConfirm: U,
14255
- onUploader: I[2] || (I[2] = (ne) => s.value?.open())
14255
+ onUploader: R[2] || (R[2] = (ne) => s.value?.open())
14256
14256
  }, null, 8, ["not-empty"])
14257
14257
  ]),
14258
14258
  _: 1
@@ -14265,9 +14265,9 @@ const W_ = /* @__PURE__ */ R({
14265
14265
  m(h(K_), {
14266
14266
  fields: h(_),
14267
14267
  rows: h(g),
14268
- onEdit: A,
14268
+ onEdit: V,
14269
14269
  onRemove: $,
14270
- onRestore: F
14270
+ onRestore: P
14271
14271
  }, null, 8, ["fields", "rows"])
14272
14272
  ]),
14273
14273
  _: 1
@@ -14298,13 +14298,13 @@ const W_ = /* @__PURE__ */ R({
14298
14298
  ref: a,
14299
14299
  title: "数据编辑",
14300
14300
  width: "500",
14301
- confirm: P
14301
+ confirm: F
14302
14302
  }, {
14303
14303
  default: f(({ data: ne }) => [
14304
14304
  m(h(Hn), {
14305
14305
  ref_key: "form",
14306
14306
  ref: r,
14307
- view: h(V),
14307
+ view: h(T),
14308
14308
  item: h(y)[ne.$index]
14309
14309
  }, null, 8, ["view", "item"])
14310
14310
  ]),
@@ -14323,7 +14323,7 @@ const W_ = /* @__PURE__ */ R({
14323
14323
  ], 64);
14324
14324
  };
14325
14325
  }
14326
- }), Q_ = /* @__PURE__ */ R({
14326
+ }), Q_ = /* @__PURE__ */ I({
14327
14327
  __name: "UploadDialog",
14328
14328
  props: {
14329
14329
  results: {},
@@ -14366,7 +14366,7 @@ const W_ = /* @__PURE__ */ R({
14366
14366
  _: 1
14367
14367
  }, 512));
14368
14368
  }
14369
- }), eg = /* @__PURE__ */ R({
14369
+ }), eg = /* @__PURE__ */ I({
14370
14370
  __name: "MTablePage",
14371
14371
  props: {
14372
14372
  size: {},
@@ -14419,7 +14419,7 @@ const W_ = /* @__PURE__ */ R({
14419
14419
  }), tg = {
14420
14420
  key: 0,
14421
14421
  style: { "font-size": "11px", color: "#555" }
14422
- }, ng = /* @__PURE__ */ R({
14422
+ }, ng = /* @__PURE__ */ I({
14423
14423
  __name: "MTableSelection",
14424
14424
  props: {
14425
14425
  results: {},
@@ -14565,7 +14565,7 @@ const W_ = /* @__PURE__ */ R({
14565
14565
  }, sg = {
14566
14566
  class: "right",
14567
14567
  style: { "font-size": "12px" }
14568
- }, rg = /* @__PURE__ */ R({
14568
+ }, rg = /* @__PURE__ */ I({
14569
14569
  __name: "MTableSize",
14570
14570
  props: {
14571
14571
  size: {},
@@ -14650,7 +14650,7 @@ const W_ = /* @__PURE__ */ R({
14650
14650
  });
14651
14651
  };
14652
14652
  }
14653
- }), ig = /* @__PURE__ */ lt(rg, [["__scopeId", "data-v-c93898e0"]]), ug = ["innerHTML"], Sr = /* @__PURE__ */ R({
14653
+ }), ig = /* @__PURE__ */ lt(rg, [["__scopeId", "data-v-c93898e0"]]), ug = ["innerHTML"], Sr = /* @__PURE__ */ I({
14654
14654
  __name: "MPluginButtons",
14655
14655
  props: {
14656
14656
  view: {},
@@ -14715,7 +14715,7 @@ const W_ = /* @__PURE__ */ R({
14715
14715
  });
14716
14716
  };
14717
14717
  }
14718
- }), $r = /* @__PURE__ */ R({
14718
+ }), $r = /* @__PURE__ */ I({
14719
14719
  __name: "MPluginColumn",
14720
14720
  props: {
14721
14721
  view: {},
@@ -14737,7 +14737,7 @@ const W_ = /* @__PURE__ */ R({
14737
14737
  select: n
14738
14738
  }, null, 8, ["row", "view", "payload"]));
14739
14739
  }
14740
- }), cg = /* @__PURE__ */ R({
14740
+ }), cg = /* @__PURE__ */ I({
14741
14741
  __name: "CustomColumn",
14742
14742
  props: {
14743
14743
  view: {},
@@ -14771,7 +14771,7 @@ const W_ = /* @__PURE__ */ R({
14771
14771
  }, 1032, ["align", "fixed", "label", "width"]))), 256);
14772
14772
  };
14773
14773
  }
14774
- }), dg = /* @__PURE__ */ R({
14774
+ }), dg = /* @__PURE__ */ I({
14775
14775
  __name: "ButtonsColumn",
14776
14776
  props: {
14777
14777
  view: {},
@@ -14817,7 +14817,7 @@ const W_ = /* @__PURE__ */ R({
14817
14817
  }, 8, ["width"]);
14818
14818
  };
14819
14819
  }
14820
- }), pg = { class: "h-center" }, fg = /* @__PURE__ */ R({
14820
+ }), pg = { class: "h-center" }, fg = /* @__PURE__ */ I({
14821
14821
  __name: "MTableHeaderCell",
14822
14822
  props: {
14823
14823
  results: {},
@@ -14887,7 +14887,7 @@ const W_ = /* @__PURE__ */ R({
14887
14887
  }), mg = {
14888
14888
  key: 0,
14889
14889
  class: "cell-unit"
14890
- }, _g = /* @__PURE__ */ R({
14890
+ }, _g = /* @__PURE__ */ I({
14891
14891
  __name: "MTableCell",
14892
14892
  props: {
14893
14893
  view: {},
@@ -14985,7 +14985,7 @@ const W_ = /* @__PURE__ */ R({
14985
14985
  ], 64);
14986
14986
  };
14987
14987
  }
14988
- }), gg = /* @__PURE__ */ R({
14988
+ }), gg = /* @__PURE__ */ I({
14989
14989
  __name: "FieldColumn",
14990
14990
  props: {
14991
14991
  results: {},
@@ -15057,7 +15057,7 @@ const W_ = /* @__PURE__ */ R({
15057
15057
  ], 64))), 128);
15058
15058
  };
15059
15059
  }
15060
- }), hg = /* @__PURE__ */ R({
15060
+ }), hg = /* @__PURE__ */ I({
15061
15061
  __name: "MTableIndexCell",
15062
15062
  props: {
15063
15063
  index: {},
@@ -15094,7 +15094,7 @@ const W_ = /* @__PURE__ */ R({
15094
15094
  }, 8, ["disabled"]);
15095
15095
  };
15096
15096
  }
15097
- }), vg = /* @__PURE__ */ R({
15097
+ }), vg = /* @__PURE__ */ I({
15098
15098
  __name: "IndexColumn",
15099
15099
  props: {
15100
15100
  results: {},
@@ -15159,7 +15159,7 @@ const W_ = /* @__PURE__ */ R({
15159
15159
  });
15160
15160
  };
15161
15161
  }
15162
- }), Vr = /* @__PURE__ */ R({
15162
+ }), Vr = /* @__PURE__ */ I({
15163
15163
  __name: "MTable",
15164
15164
  props: {
15165
15165
  results: {},
@@ -15189,50 +15189,50 @@ const W_ = /* @__PURE__ */ R({
15189
15189
  collector: p
15190
15190
  } = V_(l, s), { createSortable: v } = $_(l, s);
15191
15191
  J(() => [l.results, l.view], () => {
15192
- const F = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
15193
- v(l.results, F);
15192
+ const P = l.view.allow_edit_on_sort && Ie(l.search.orders, { sort: -1 }) && !!l.results.length;
15193
+ v(l.results, P);
15194
15194
  }, { deep: !0, immediate: !0 });
15195
15195
  const {
15196
15196
  tooltipOptions: y,
15197
15197
  tooltipFormatter: E,
15198
- tableCellClassName: V,
15198
+ tableCellClassName: T,
15199
15199
  tableRowClassName: D
15200
- } = A_(l, s), C = O(() => a.value?.controller), A = O(() => {
15201
- const { parse: F } = Ae(l.view);
15202
- return F(l.results);
15200
+ } = A_(l, s), C = O(() => a.value?.controller), V = O(() => {
15201
+ const { parse: P } = Ae(l.view);
15202
+ return P(l.results);
15203
15203
  });
15204
- function P(F, U, T, I) {
15205
- I.preventDefault(), I.stopPropagation();
15206
- const { property: B } = U, q = F.id;
15204
+ function F(P, U, A, R) {
15205
+ R.preventDefault(), R.stopPropagation();
15206
+ const { property: B } = U, q = P.id;
15207
15207
  B && !l.single ? p.toggle(q) : (p.clear(), p.set([q]));
15208
15208
  }
15209
- function $(F, U, T, I) {
15210
- I.preventDefault(), I.stopPropagation();
15211
- const { type: B, property: q } = U, Z = F.id;
15212
- if (p.clear(), p.set([Z]), B === "index")
15213
- i.value?.open(I);
15209
+ function $(P, U, A, R) {
15210
+ R.preventDefault(), R.stopPropagation();
15211
+ const { type: B, property: q } = U, Q = P.id;
15212
+ if (p.clear(), p.set([Q]), B === "index")
15213
+ i.value?.open(R);
15214
15214
  else if (q) {
15215
15215
  if (Object.keys(l.core).includes(q)) return;
15216
15216
  const de = l.view.$fields[q];
15217
15217
  if (de.domain === "Custom") return;
15218
- r.value?.open(I, F, de);
15218
+ r.value?.open(R, P, de);
15219
15219
  }
15220
15220
  }
15221
15221
  return t({
15222
15222
  controller: () => C.value,
15223
15223
  getSelection: () => g.value,
15224
15224
  get: () => _.value,
15225
- set: (F) => Ve().then(() => p.set(F))
15226
- }), (F, U) => {
15227
- const T = w("el-text"), I = w("el-result"), B = w("el-table");
15225
+ set: (P) => Ve().then(() => p.set(P))
15226
+ }), (P, U) => {
15227
+ const A = w("el-text"), R = w("el-result"), B = w("el-table");
15228
15228
  return b(), M(H, null, [
15229
15229
  m(Go, {
15230
15230
  loading: e.loading,
15231
15231
  ticker: e.ticker
15232
15232
  }, {
15233
15233
  header: f(({ width: q }) => [
15234
- X(F.$slots, "header", { width: q }, () => [
15235
- m(T, { tag: "b" }, {
15234
+ Z(P.$slots, "header", { width: q }, () => [
15235
+ m(A, { tag: "b" }, {
15236
15236
  default: f(() => [
15237
15237
  S(z(e.title || e.view.$meta_name), 1)
15238
15238
  ]),
@@ -15244,42 +15244,42 @@ const W_ = /* @__PURE__ */ R({
15244
15244
  m(h(D_), ke({
15245
15245
  ref_key: "control",
15246
15246
  ref: a
15247
- }, F.$props, {
15247
+ }, P.$props, {
15248
15248
  selection: h(g),
15249
15249
  collector: h(p),
15250
- onUpload: U[0] || (U[0] = (Z) => d.value?.open())
15250
+ onUpload: U[0] || (U[0] = (Q) => d.value?.open())
15251
15251
  }), null, 16, ["selection", "collector"]),
15252
15252
  e.total ? (b(), k(h(ig), {
15253
15253
  key: 0,
15254
15254
  size: e.search.size,
15255
- "onUpdate:size": U[1] || (U[1] = (Z) => e.search.size = Z),
15255
+ "onUpdate:size": U[1] || (U[1] = (Q) => e.search.size = Q),
15256
15256
  total: e.total
15257
15257
  }, null, 8, ["size", "total"])) : K("", !0)
15258
15258
  ]),
15259
15259
  footer: f(({ width: q }) => [
15260
15260
  m(h(eg), {
15261
15261
  size: e.search.size,
15262
- "onUpdate:size": U[2] || (U[2] = (Z) => e.search.size = Z),
15262
+ "onUpdate:size": U[2] || (U[2] = (Q) => e.search.size = Q),
15263
15263
  page: e.search.page,
15264
- "onUpdate:page": U[3] || (U[3] = (Z) => e.search.page = Z),
15264
+ "onUpdate:page": U[3] || (U[3] = (Q) => e.search.page = Q),
15265
15265
  total: e.total,
15266
15266
  width: q
15267
15267
  }, null, 8, ["size", "page", "total", "width"])
15268
15268
  ]),
15269
15269
  "footer-tool": f(({ width: q }) => [
15270
- m(h(ng), ke(F.$props, {
15270
+ m(h(ng), ke(P.$props, {
15271
15271
  collection: h(_),
15272
15272
  collector: h(p),
15273
15273
  width: q
15274
15274
  }), null, 16, ["collection", "collector", "width"])
15275
15275
  ]),
15276
15276
  default: f(() => [
15277
- e.error ? (b(), k(I, {
15277
+ e.error ? (b(), k(R, {
15278
15278
  key: 0,
15279
15279
  icon: "error"
15280
15280
  }, {
15281
15281
  title: f(() => [
15282
- m(T, {
15282
+ m(A, {
15283
15283
  type: "danger",
15284
15284
  size: "small"
15285
15285
  }, {
@@ -15307,26 +15307,26 @@ const W_ = /* @__PURE__ */ R({
15307
15307
  "max-height": e.view.table_height,
15308
15308
  "tooltip-options": h(y),
15309
15309
  size: e.size || "small",
15310
- onCellClick: P,
15310
+ onCellClick: F,
15311
15311
  onCellContextmenu: $,
15312
15312
  "row-class-name": h(D),
15313
- "cell-class-name": h(V),
15313
+ "cell-class-name": h(T),
15314
15314
  "tooltip-formatter": h(E)
15315
15315
  }, {
15316
15316
  default: f(() => [
15317
- m(vg, ke(F.$props, {
15318
- frame: A.value,
15317
+ m(vg, ke(P.$props, {
15318
+ frame: V.value,
15319
15319
  collector: h(p),
15320
15320
  collection: h(_),
15321
15321
  onMeta: U[4] || (U[4] = (q) => o("meta", q))
15322
15322
  }), null, 16, ["frame", "collector", "collection"]),
15323
- m(gg, ke(F.$props, {
15323
+ m(gg, ke(P.$props, {
15324
15324
  collector: h(p),
15325
- frame: A.value,
15325
+ frame: V.value,
15326
15326
  collection: h(_),
15327
15327
  onField: U[5] || (U[5] = (q) => o("field", e.view.$fields[q.prop])),
15328
- onLookup: U[6] || (U[6] = (q, Z) => c.value?.open(q, Z)),
15329
- onCell: U[7] || (U[7] = (q, Z) => u.value?.open(q, Z))
15328
+ onLookup: U[6] || (U[6] = (q, Q) => c.value?.open(q, Q)),
15329
+ onCell: U[7] || (U[7] = (q, Q) => u.value?.open(q, Q))
15330
15330
  }), null, 16, ["collector", "frame", "collection"]),
15331
15331
  e.columns && e.columns.length ? (b(), k(cg, {
15332
15332
  key: 0,
@@ -15349,34 +15349,34 @@ const W_ = /* @__PURE__ */ R({
15349
15349
  m(h(I_), ke({
15350
15350
  ref_key: "index",
15351
15351
  ref: i
15352
- }, F.$props, {
15352
+ }, P.$props, {
15353
15353
  selection: h(g),
15354
15354
  controller: C.value
15355
15355
  }), null, 16, ["selection", "controller"]),
15356
15356
  m(h(B_), ke({
15357
15357
  ref_key: "lookup",
15358
15358
  ref: c
15359
- }, F.$props), null, 16),
15359
+ }, P.$props), null, 16),
15360
15360
  m(h(R_), ke({
15361
15361
  ref_key: "cell",
15362
15362
  ref: r
15363
- }, F.$props, {
15363
+ }, P.$props, {
15364
15364
  onSpecial: u.value?.open
15365
15365
  }), null, 16, ["onSpecial"]),
15366
15366
  m(h(P_), ke({
15367
15367
  ref_key: "special",
15368
15368
  ref: u
15369
- }, F.$props, { collector: h(p) }), null, 16, ["collector"]),
15369
+ }, P.$props, { collector: h(p) }), null, 16, ["collector"]),
15370
15370
  m(h(Q_), ke({
15371
15371
  ref_key: "upload",
15372
15372
  ref: d
15373
- }, F.$props, {
15373
+ }, P.$props, {
15374
15374
  onConfirm: U[8] || (U[8] = (q) => e.rest.save_many(q))
15375
15375
  }), null, 16)
15376
15376
  ], 64);
15377
15377
  };
15378
15378
  }
15379
- }), yg = /* @__PURE__ */ R({
15379
+ }), yg = /* @__PURE__ */ I({
15380
15380
  __name: "MTreeControl",
15381
15381
  props: {
15382
15382
  results: {},
@@ -15493,7 +15493,7 @@ const W_ = /* @__PURE__ */ R({
15493
15493
  });
15494
15494
  };
15495
15495
  }
15496
- }), bg = /* @__PURE__ */ R({
15496
+ }), bg = /* @__PURE__ */ I({
15497
15497
  __name: "ToggleNodeTool",
15498
15498
  props: {
15499
15499
  collection: {},
@@ -15561,52 +15561,52 @@ function kg(e, t) {
15561
15561
  }, { deep: !0 }), J(n, () => {
15562
15562
  Ve().then(() => {
15563
15563
  o.value.forEach((C) => {
15564
- const A = t.value?.getNode(C);
15565
- A && (A.expanded = n.value.includes(C));
15564
+ const V = t.value?.getNode(C);
15565
+ V && (V.expanded = n.value.includes(C));
15566
15566
  });
15567
15567
  });
15568
15568
  }, { deep: !0 });
15569
15569
  function l(C) {
15570
- const A = [];
15570
+ const V = [];
15571
15571
  for (; C; )
15572
- C = e.value.mapping[C].pid, C && A.push(C);
15573
- return A;
15572
+ C = e.value.mapping[C].pid, C && V.push(C);
15573
+ return V;
15574
15574
  }
15575
15575
  function s(C) {
15576
- const P = e.value.mapping[C].children;
15577
- if (P.length) {
15578
- const $ = P.map((F) => s(F.id)).reduce((F, U) => [...F, ...U], []);
15576
+ const F = e.value.mapping[C].children;
15577
+ if (F.length) {
15578
+ const $ = F.map((P) => s(P.id)).reduce((P, U) => [...P, ...U], []);
15579
15579
  return [C, ...$];
15580
15580
  }
15581
15581
  return [];
15582
15582
  }
15583
15583
  function a(C) {
15584
- n.value = n.value.filter((A) => !C.includes(A));
15584
+ n.value = n.value.filter((V) => !C.includes(V));
15585
15585
  }
15586
15586
  function r(C) {
15587
- const A = C.filter((P) => !n.value.includes(P) && o.value.includes(P));
15588
- n.value.push(...A);
15587
+ const V = C.filter((F) => !n.value.includes(F) && o.value.includes(F));
15588
+ n.value.push(...V);
15589
15589
  }
15590
15590
  function i(C) {
15591
15591
  e.value.expandAll || (n.value.includes(C) ? u(C) : o.value.includes(C) && r([C]));
15592
15592
  }
15593
15593
  function u(C) {
15594
15594
  if (e.value.expandAll) return;
15595
- const A = s(C);
15596
- a(A);
15595
+ const V = s(C);
15596
+ a(V);
15597
15597
  }
15598
15598
  function c(C) {
15599
15599
  if (e.value.expandAll) return;
15600
- const A = [...s(C), ...l(C)];
15601
- r(A);
15600
+ const V = [...s(C), ...l(C)];
15601
+ r(V);
15602
15602
  }
15603
15603
  function d(C) {
15604
15604
  e.value.expandAll || (C ? n.value = o.value : n.value = []);
15605
15605
  }
15606
15606
  function _(C) {
15607
15607
  if (e.value.expandAll) return;
15608
- const A = C.map((P) => l(P)).reduce((P, $) => [...P, ...$], []);
15609
- C = [...new Set(A)], r(C);
15608
+ const V = C.map((F) => l(F)).reduce((F, $) => [...F, ...$], []);
15609
+ C = [...new Set(V)], r(C);
15610
15610
  }
15611
15611
  const g = {
15612
15612
  toggle: i,
@@ -15616,36 +15616,36 @@ function kg(e, t) {
15616
15616
  function p(C) {
15617
15617
  return !!C.data.id;
15618
15618
  }
15619
- function v(C, A, P) {
15620
- const $ = C.data, F = A.data, U = F.isLeaf, T = !!F.children?.length, I = $.id, B = F.id;
15621
- return !U && B !== I && (A.expanded = !0), P === "inner" ? !U && !T : B != 0;
15619
+ function v(C, V, F) {
15620
+ const $ = C.data, P = V.data, U = P.isLeaf, A = !!P.children?.length, R = $.id, B = P.id;
15621
+ return !U && B !== R && (V.expanded = !0), F === "inner" ? !U && !A : B != 0;
15622
15622
  }
15623
15623
  function y(C) {
15624
- const A = C.id;
15625
- u(A);
15624
+ const V = C.id;
15625
+ u(V);
15626
15626
  }
15627
15627
  function E(C) {
15628
- const A = C.id;
15629
- c(A);
15628
+ const V = C.id;
15629
+ c(V);
15630
15630
  }
15631
- function V(C, A, P, $) {
15632
- const F = C.data, U = A.data, T = F.id, I = U.id;
15633
- if (P === "inner") {
15631
+ function T(C, V, F, $) {
15632
+ const P = C.data, U = V.data, A = P.id, R = U.id;
15633
+ if (F === "inner") {
15634
15634
  const B = {
15635
- id: T,
15636
- pid: I
15635
+ id: A,
15636
+ pid: R
15637
15637
  };
15638
15638
  e.value.rest.save_many([B]);
15639
15639
  } else {
15640
- const B = Hu(e.value.mapping, (G) => G.sort), q = A.parent.childNodes.map((G) => G.data), Z = q.map((G) => G.sort).sort((G, ae) => ae - G), de = U.pid, ne = q.map((G, ae) => {
15641
- const oe = G.id, Ne = Z[ae], pe = {
15640
+ const B = Hu(e.value.mapping, (G) => G.sort), q = V.parent.childNodes.map((G) => G.data), Q = q.map((G) => G.sort).sort((G, ae) => ae - G), de = U.pid, ne = q.map((G, ae) => {
15641
+ const oe = G.id, Ne = Q[ae], pe = {
15642
15642
  id: oe,
15643
15643
  sort: Ne
15644
15644
  };
15645
- return oe === T && (pe.pid = de), pe;
15645
+ return oe === A && (pe.pid = de), pe;
15646
15646
  }).filter((G) => {
15647
15647
  const ae = G.id, oe = G.sort;
15648
- return ae === T || oe !== B[ae];
15648
+ return ae === A || oe !== B[ae];
15649
15649
  });
15650
15650
  e.value.rest.save_many(ne);
15651
15651
  }
@@ -15655,10 +15655,10 @@ function kg(e, t) {
15655
15655
  allow_drop: v,
15656
15656
  handleCollapse: y,
15657
15657
  handleExpand: E,
15658
- handleDrop: V
15658
+ handleDrop: T
15659
15659
  } };
15660
15660
  }
15661
- const Eg = /* @__PURE__ */ R({
15661
+ const Eg = /* @__PURE__ */ I({
15662
15662
  __name: "BatchForm",
15663
15663
  props: {
15664
15664
  root: {},
@@ -15746,7 +15746,7 @@ const Eg = /* @__PURE__ */ R({
15746
15746
  });
15747
15747
  };
15748
15748
  }
15749
- }), xg = /* @__PURE__ */ R({
15749
+ }), xg = /* @__PURE__ */ I({
15750
15750
  __name: "BatchDialog",
15751
15751
  props: {
15752
15752
  results: {},
@@ -15776,7 +15776,7 @@ const Eg = /* @__PURE__ */ R({
15776
15776
  }
15777
15777
  function a(r, i) {
15778
15778
  const u = l.value?.getData();
15779
- u?.length ? (n.rest.save_many(u), i()) : (Q.info("内容为空"), i(!1));
15779
+ u?.length ? (n.rest.save_many(u), i()) : (X.info("内容为空"), i(!1));
15780
15780
  }
15781
15781
  return t({ open: s }), (r, i) => {
15782
15782
  const u = w("el-text"), c = w("el-tag"), d = w("el-space");
@@ -15820,7 +15820,7 @@ const Eg = /* @__PURE__ */ R({
15820
15820
  }, 512);
15821
15821
  };
15822
15822
  }
15823
- }), Cg = /* @__PURE__ */ R({
15823
+ }), Cg = /* @__PURE__ */ I({
15824
15824
  __name: "NodeButtons",
15825
15825
  props: {
15826
15826
  view: {},
@@ -15881,7 +15881,7 @@ const Eg = /* @__PURE__ */ R({
15881
15881
  });
15882
15882
  };
15883
15883
  }
15884
- }), Og = /* @__PURE__ */ R({
15884
+ }), Og = /* @__PURE__ */ I({
15885
15885
  __name: "NodePopover",
15886
15886
  props: {
15887
15887
  results: {},
@@ -15959,7 +15959,7 @@ const Eg = /* @__PURE__ */ R({
15959
15959
  _: 1
15960
15960
  }, 512));
15961
15961
  }
15962
- }), Sg = /* @__PURE__ */ R({
15962
+ }), Sg = /* @__PURE__ */ I({
15963
15963
  __name: "MTreeNode",
15964
15964
  props: {
15965
15965
  node: {},
@@ -15977,7 +15977,7 @@ const Eg = /* @__PURE__ */ R({
15977
15977
  te("span", null, z(n.value), 1)
15978
15978
  ], 64));
15979
15979
  }
15980
- }), $g = /* @__PURE__ */ R({
15980
+ }), $g = /* @__PURE__ */ I({
15981
15981
  __name: "MTreePlugin",
15982
15982
  props: {
15983
15983
  results: {},
@@ -16027,7 +16027,7 @@ const Eg = /* @__PURE__ */ R({
16027
16027
  }), Vg = {
16028
16028
  class: "justified full",
16029
16029
  style: { "padding-right": "10px" }
16030
- }, Tg = /* @__PURE__ */ R({
16030
+ }, Tg = /* @__PURE__ */ I({
16031
16031
  __name: "MTree",
16032
16032
  props: {
16033
16033
  results: {},
@@ -16052,10 +16052,10 @@ const Eg = /* @__PURE__ */ R({
16052
16052
  emits: ["meta", "table"],
16053
16053
  setup(e, { expose: t, emit: n }) {
16054
16054
  const o = n, l = e, s = x(), a = x(), r = x(), { fromMode: i } = Ae(), u = O(() => l), c = O(() => l.labelKey || "name"), d = O(() => {
16055
- const { $fields: P, $modes: $ } = l.view, F = c.value, U = P[F], T = l.view.$modes[F];
16056
- return U || (T ? i(T) : new ge());
16055
+ const { $fields: F, $modes: $ } = l.view, P = c.value, U = F[P], A = l.view.$modes[P];
16056
+ return U || (A ? i(A) : new ge());
16057
16057
  }), _ = x("");
16058
- J(_, (P) => s.value.filter(P));
16058
+ J(_, (F) => s.value.filter(F));
16059
16059
  const {
16060
16060
  collection: g,
16061
16061
  selection: p,
@@ -16063,28 +16063,28 @@ const Eg = /* @__PURE__ */ R({
16063
16063
  } = wg(u, s), {
16064
16064
  disclosure: y,
16065
16065
  expansion: E,
16066
- ui: V
16066
+ ui: T
16067
16067
  } = kg(u, s);
16068
- function D(P, $, F) {
16069
- return ($[c.value] || "").includes(P);
16068
+ function D(F, $, P) {
16069
+ return ($[c.value] || "").includes(F);
16070
16070
  }
16071
- function C(P, $, F, U) {
16072
- const T = P.id;
16073
- P.children.length ? y.toggle(T) : l.single ? v.set(T) : v.toggle(T);
16071
+ function C(F, $, P, U) {
16072
+ const A = F.id;
16073
+ F.children.length ? y.toggle(A) : l.single ? v.set(A) : v.toggle(A);
16074
16074
  }
16075
- function A(P, $) {
16076
- P.preventDefault(), P.stopPropagation();
16077
- const F = $.id;
16078
- v.set(F), r.value?.open(P, $);
16075
+ function V(F, $) {
16076
+ F.preventDefault(), F.stopPropagation();
16077
+ const P = $.id;
16078
+ v.set(P), r.value?.open(F, $);
16079
16079
  }
16080
16080
  return t({
16081
16081
  selection: p,
16082
16082
  get: () => g.value,
16083
- set: (P) => Ve().then(() => {
16084
- v.set(...P), y.set(P);
16083
+ set: (F) => Ve().then(() => {
16084
+ v.set(...F), y.set(F);
16085
16085
  })
16086
- }), (P, $) => {
16087
- const F = w("el-divider"), U = w("el-text"), T = w("el-space"), I = w("el-tree");
16086
+ }), (F, $) => {
16087
+ const P = w("el-divider"), U = w("el-text"), A = w("el-space"), R = w("el-tree");
16088
16088
  return b(), M(H, null, [
16089
16089
  m(Go, {
16090
16090
  loading: e.loading,
@@ -16099,8 +16099,8 @@ const Eg = /* @__PURE__ */ R({
16099
16099
  disclosure: h(y),
16100
16100
  onMeta: $[0] || ($[0] = (q) => o("meta", q))
16101
16101
  }, null, 8, ["collection", "expansion", "collector", "disclosure"]),
16102
- m(F, { direction: "vertical" }),
16103
- X(P.$slots, "header", { width: B }, () => [
16102
+ m(P, { direction: "vertical" }),
16103
+ Z(F.$slots, "header", { width: B }, () => [
16104
16104
  m(U, { tag: "b" }, {
16105
16105
  default: f(() => [
16106
16106
  S(z(e.view.$meta_name), 1)
@@ -16110,7 +16110,7 @@ const Eg = /* @__PURE__ */ R({
16110
16110
  ])
16111
16111
  ]),
16112
16112
  "header-tool": f(({ width: B }) => [
16113
- m(yg, ke(P.$props, {
16113
+ m(yg, ke(F.$props, {
16114
16114
  modelValue: _.value,
16115
16115
  "onUpdate:modelValue": $[1] || ($[1] = (q) => _.value = q),
16116
16116
  collector: h(v),
@@ -16120,7 +16120,7 @@ const Eg = /* @__PURE__ */ R({
16120
16120
  }), null, 16, ["modelValue", "collector", "selection", "onBatch"])
16121
16121
  ]),
16122
16122
  default: f(() => [
16123
- m(I, {
16123
+ m(R, {
16124
16124
  ref_key: "tree",
16125
16125
  ref: s,
16126
16126
  class: "m-tree",
@@ -16139,33 +16139,33 @@ const Eg = /* @__PURE__ */ R({
16139
16139
  accordion: !1,
16140
16140
  indent: 23,
16141
16141
  draggable: e.view.allow_edit,
16142
- "allow-drag": h(V).allow_drag,
16143
- "allow-drop": h(V).allow_drop,
16142
+ "allow-drag": h(T).allow_drag,
16143
+ "allow-drop": h(T).allow_drop,
16144
16144
  onNodeClick: C,
16145
- onNodeContextmenu: A,
16146
- onNodeCollapse: h(V).handleCollapse,
16147
- onNodeExpand: h(V).handleExpand,
16148
- onNodeDrop: h(V).handleDrop
16145
+ onNodeContextmenu: V,
16146
+ onNodeCollapse: h(T).handleCollapse,
16147
+ onNodeExpand: h(T).handleExpand,
16148
+ onNodeDrop: h(T).handleDrop
16149
16149
  }, {
16150
16150
  default: f(({ data: B, node: q }) => [
16151
16151
  te("div", Vg, [
16152
- m(T, null, {
16152
+ m(A, null, {
16153
16153
  default: f(() => [
16154
16154
  m(Sg, {
16155
16155
  node: q,
16156
16156
  data: B,
16157
16157
  field: d.value
16158
16158
  }, null, 8, ["node", "data", "field"]),
16159
- X(P.$slots, "prefix", {
16159
+ Z(F.$slots, "prefix", {
16160
16160
  isLeaf: B.isLeaf,
16161
16161
  node: q,
16162
16162
  data: B
16163
16163
  }, () => [
16164
- B.isLeaf ? X(P.$slots, "prefix-leaf", {
16164
+ B.isLeaf ? Z(F.$slots, "prefix-leaf", {
16165
16165
  key: 0,
16166
16166
  node: q,
16167
16167
  data: B
16168
- }) : X(P.$slots, "prefix-branch", {
16168
+ }) : Z(F.$slots, "prefix-branch", {
16169
16169
  key: 1,
16170
16170
  node: q,
16171
16171
  data: B
@@ -16174,24 +16174,24 @@ const Eg = /* @__PURE__ */ R({
16174
16174
  ]),
16175
16175
  _: 2
16176
16176
  }, 1024),
16177
- m(T, null, {
16177
+ m(A, null, {
16178
16178
  default: f(() => [
16179
- X(P.$slots, "suffix", {
16179
+ Z(F.$slots, "suffix", {
16180
16180
  isLeaf: B.isLeaf,
16181
16181
  node: q,
16182
16182
  data: B
16183
16183
  }, () => [
16184
- B.isLeaf ? X(P.$slots, "suffix-leaf", {
16184
+ B.isLeaf ? Z(F.$slots, "suffix-leaf", {
16185
16185
  key: 0,
16186
16186
  node: q,
16187
16187
  data: B
16188
- }) : X(P.$slots, "suffix-branch", {
16188
+ }) : Z(F.$slots, "suffix-branch", {
16189
16189
  key: 1,
16190
16190
  node: q,
16191
16191
  data: B
16192
16192
  })
16193
16193
  ]),
16194
- m($g, ke(P.$props, {
16194
+ m($g, ke(F.$props, {
16195
16195
  data: B,
16196
16196
  collector: h(v)
16197
16197
  }), null, 16, ["data", "collector"])
@@ -16208,11 +16208,11 @@ const Eg = /* @__PURE__ */ R({
16208
16208
  m(h(xg), ke({
16209
16209
  ref_key: "batch",
16210
16210
  ref: a
16211
- }, P.$props, { field: d.value }), null, 16, ["field"]),
16211
+ }, F.$props, { field: d.value }), null, 16, ["field"]),
16212
16212
  m(h(Og), ke({
16213
16213
  ref_key: "node",
16214
16214
  ref: r
16215
- }, P.$props, {
16215
+ }, F.$props, {
16216
16216
  field: d.value,
16217
16217
  onTable: $[3] || ($[3] = (B) => o("table", B)),
16218
16218
  onBatch: a.value?.open
@@ -16220,7 +16220,7 @@ const Eg = /* @__PURE__ */ R({
16220
16220
  ], 64);
16221
16221
  };
16222
16222
  }
16223
- }), Tr = /* @__PURE__ */ R({
16223
+ }), Tr = /* @__PURE__ */ I({
16224
16224
  __name: "ProfileDialog",
16225
16225
  emits: ["reload"],
16226
16226
  setup(e, { expose: t, emit: n }) {
@@ -16236,12 +16236,12 @@ const Eg = /* @__PURE__ */ R({
16236
16236
  });
16237
16237
  }).catch((g) => {
16238
16238
  console.log(g);
16239
- }) : Q.warning("获取用户信息失败");
16239
+ }) : X.warning("获取用户信息失败");
16240
16240
  };
16241
16241
  function c(d, _) {
16242
16242
  const { account_id: g } = d, v = (a.value?.getData() || [])[0];
16243
16243
  qe(v) || (v.account_id = g, i.save_one(v).then((y) => {
16244
- o("reload"), Q.success("用户信息修改成功"), _();
16244
+ o("reload"), X.success("用户信息修改成功"), _();
16245
16245
  })), _(!1);
16246
16246
  }
16247
16247
  return t({ open: u }), (d, _) => (b(), k(h(le), {
@@ -16262,7 +16262,7 @@ const Eg = /* @__PURE__ */ R({
16262
16262
  _: 1
16263
16263
  }, 512));
16264
16264
  }
16265
- }), Ag = /* @__PURE__ */ R({
16265
+ }), Ag = /* @__PURE__ */ I({
16266
16266
  __name: "AuthDropdown",
16267
16267
  setup(e) {
16268
16268
  const { userStore: t, handler: n } = Oe(), o = ot(), l = x(), s = x(), a = x(), r = x();
@@ -16404,7 +16404,7 @@ const Eg = /* @__PURE__ */ R({
16404
16404
  ], 64);
16405
16405
  };
16406
16406
  }
16407
- }), Dg = /* @__PURE__ */ R({
16407
+ }), Dg = /* @__PURE__ */ I({
16408
16408
  __name: "AdminAuth",
16409
16409
  setup(e) {
16410
16410
  const t = x(), {
@@ -16448,7 +16448,7 @@ const Eg = /* @__PURE__ */ R({
16448
16448
  ], 64);
16449
16449
  };
16450
16450
  }
16451
- }), Rg = /* @__PURE__ */ R({
16451
+ }), Rg = /* @__PURE__ */ I({
16452
16452
  __name: "AdminNavigate",
16453
16453
  props: {
16454
16454
  mapping: {}
@@ -16499,7 +16499,7 @@ const Eg = /* @__PURE__ */ R({
16499
16499
  }, Pg = {
16500
16500
  class: "justified",
16501
16501
  style: { height: "100%" }
16502
- }, Fg = /* @__PURE__ */ R({
16502
+ }, Fg = /* @__PURE__ */ I({
16503
16503
  __name: "MAdmin",
16504
16504
  setup(e) {
16505
16505
  const { frame: t } = Ar(), n = O(() => `${t.value.body}px`), { options: o, mapping: l } = d_(), s = We();
@@ -16531,7 +16531,7 @@ const Eg = /* @__PURE__ */ R({
16531
16531
  }),
16532
16532
  m(c, null, {
16533
16533
  default: f(() => [
16534
- X(a.$slots, "tool", {}, void 0, !0),
16534
+ Z(a.$slots, "tool", {}, void 0, !0),
16535
16535
  m(Dg)
16536
16536
  ]),
16537
16537
  _: 3
@@ -16549,7 +16549,7 @@ const Eg = /* @__PURE__ */ R({
16549
16549
  m(Rg, { mapping: h(l) }, null, 8, ["mapping"]),
16550
16550
  m(c, null, {
16551
16551
  default: f(() => [
16552
- X(a.$slots, "tag", {}, void 0, !0)
16552
+ Z(a.$slots, "tag", {}, void 0, !0)
16553
16553
  ]),
16554
16554
  _: 3
16555
16555
  })
@@ -16571,7 +16571,7 @@ const Eg = /* @__PURE__ */ R({
16571
16571
  height: `${h(t).footer}px`
16572
16572
  }, {
16573
16573
  default: f(() => [
16574
- X(a.$slots, "footer", {}, () => [
16574
+ Z(a.$slots, "footer", {}, () => [
16575
16575
  m(u, { type: "info" }, {
16576
16576
  default: f(() => [
16577
16577
  m(c, null, {
@@ -16614,7 +16614,7 @@ const Eg = /* @__PURE__ */ R({
16614
16614
  });
16615
16615
  };
16616
16616
  }
16617
- }), Ng = /* @__PURE__ */ lt(Fg, [["__scopeId", "data-v-ed04fe26"]]), Ug = /* @__PURE__ */ R({
16617
+ }), Ng = /* @__PURE__ */ lt(Fg, [["__scopeId", "data-v-ed04fe26"]]), Ug = /* @__PURE__ */ I({
16618
16618
  __name: "MApp",
16619
16619
  props: {
16620
16620
  type: {},
@@ -16626,10 +16626,10 @@ const Eg = /* @__PURE__ */ R({
16626
16626
  const s = w("el-button");
16627
16627
  return h(n) === "CONNECTED" ? (b(), k(Ng, { key: 0 }, {
16628
16628
  tool: f(() => [
16629
- X(o.$slots, "tool")
16629
+ Z(o.$slots, "tool")
16630
16630
  ]),
16631
16631
  footer: f(() => [
16632
- X(o.$slots, "footer")
16632
+ Z(o.$slots, "footer")
16633
16633
  ]),
16634
16634
  _: 3
16635
16635
  })) : h(n) === "CONNECTING" ? (b(), k(j, {
@@ -16643,7 +16643,7 @@ const Eg = /* @__PURE__ */ R({
16643
16643
  S("CONNECTING... ", -1)
16644
16644
  ])]),
16645
16645
  _: 1
16646
- })) : X(o.$slots, "connect", { key: 2 }, () => [
16646
+ })) : Z(o.$slots, "connect", { key: 2 }, () => [
16647
16647
  m(s, {
16648
16648
  size: "small",
16649
16649
  type: "primary",
@@ -16680,7 +16680,7 @@ function Ar() {
16680
16680
  return n.body = e.value - n.header - n.footer - n.neck, n;
16681
16681
  }) };
16682
16682
  }
16683
- const Dr = /* @__PURE__ */ R({
16683
+ const Dr = /* @__PURE__ */ I({
16684
16684
  __name: "FileCell",
16685
16685
  props: {
16686
16686
  modelValue: {},
@@ -16693,32 +16693,32 @@ const Dr = /* @__PURE__ */ R({
16693
16693
  setup(e, { emit: t }) {
16694
16694
  const n = e, o = t, l = O({
16695
16695
  get: () => n.modelValue,
16696
- set: (D) => o("update:modelValue", D)
16697
- }), s = x(), a = O(() => `/api/valar/${n.field.$db}/${n.field.$entity}/save_file`), r = O(() => n.field.format || {}), i = O(() => ({ id: n.row.id, prop: n.field.prop, field: r.value.file_name_field })), u = O(() => r.value.accept.length ? r.value.accept.join(",") : "*"), c = O(() => l.value ? l.value.split("/").pop().split("-").slice(2).join("-") : null), { post: d } = at(), _ = () => s.value?.$el.querySelector("input").click();
16698
- function g() {
16699
- const D = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
16700
- De.warning(`是否删除文件:${l.value}`).then(() => d(D, i.value)).then(() => {
16696
+ set: (C) => o("update:modelValue", C)
16697
+ }), s = x(), a = O(() => `/api/valar/${n.field.$db}/${n.field.$entity}/save_file`), r = O(() => n.field.format || {}), i = O(() => ({ id: n.row.id, prop: n.field.prop, field: r.value.file_name_field })), u = O(() => r.value.accept.length ? r.value.accept.join(",") : "*"), c = O(() => l.value ? decodeURI(l.value) : null), d = O(() => c.value ? (c.value.split("/").pop() || "").split("-").slice(2).join("-") : null), { post: _ } = at(), g = () => s.value?.$el.querySelector("input").click();
16698
+ function p() {
16699
+ const C = `/valar/${n.field.$db}/${n.field.$entity}/remove_file`;
16700
+ De.warning(`是否删除文件:${l.value}`).then(() => _(C, i.value)).then(() => {
16701
16701
  l.value = null, o("reload");
16702
- }).catch(() => Q.info("取消删除文件"));
16702
+ }).catch(() => X.info("取消删除文件"));
16703
16703
  }
16704
- const p = localStorage.getItem("MINIO");
16705
- function v() {
16706
- window.open(`${p}/${l.value}`, "_blank");
16704
+ const v = localStorage.getItem("MINIO");
16705
+ function y() {
16706
+ window.open(`${v}/${l.value}`, "_blank");
16707
16707
  }
16708
- function y(D) {
16709
- const { name: C, size: A } = D, P = C.indexOf(".") !== -1 ? `.${C.split(".").pop()}` : "", $ = [];
16710
- return (u.value === "*" ? !0 : r.value.accept.includes(P)) || $.push(`文件类型不符合:${u.value}`), A / 1e6 <= r.value.maximum || $.push(`文件大小不超过${r.value.maximum}Mb`), $.length > 0 ? (Q.error($.join(";")), !1) : !0;
16708
+ function E(C) {
16709
+ const { name: V, size: F } = C, $ = V.indexOf(".") !== -1 ? `.${V.split(".").pop()}` : "", P = [];
16710
+ return (u.value === "*" ? !0 : r.value.accept.includes($)) || P.push(`文件类型不符合:${u.value}`), F / 1e6 <= r.value.maximum || P.push(`文件大小不超过${r.value.maximum}Mb`), P.length > 0 ? (X.error(P.join(";")), !1) : !0;
16711
16711
  }
16712
- function E(D) {
16713
- D.payload ? (l.value = D.payload, o("reload"), Q.success("上传成功!")) : V(), s.value?.clearFiles();
16712
+ function T(C) {
16713
+ C.payload ? (l.value = C.payload, o("reload"), X.success("上传成功!")) : D(), s.value?.clearFiles();
16714
16714
  }
16715
- function V() {
16716
- Q.error("上传失败");
16715
+ function D() {
16716
+ X.error("上传失败");
16717
16717
  }
16718
- return (D, C) => {
16719
- const A = w("el-upload"), P = w("el-text"), $ = w("el-tooltip"), F = w("el-divider"), U = w("el-space"), T = w("el-input");
16718
+ return (C, V) => {
16719
+ const F = w("el-upload"), $ = w("el-text"), P = w("el-tooltip"), U = w("el-divider"), A = w("el-space"), R = w("el-input");
16720
16720
  return b(), M(H, null, [
16721
- Ye(m(A, {
16721
+ Ye(m(F, {
16722
16722
  ref_key: "upload",
16723
16723
  ref: s,
16724
16724
  action: a.value,
@@ -16727,43 +16727,43 @@ const Dr = /* @__PURE__ */ R({
16727
16727
  "show-file-list": !1,
16728
16728
  "auto-upload": "",
16729
16729
  accept: u.value,
16730
- "before-upload": y,
16731
- "on-success": E,
16732
- "on-error": V
16730
+ "before-upload": E,
16731
+ "on-success": T,
16732
+ "on-error": D
16733
16733
  }, null, 8, ["action", "data", "accept"]), [
16734
16734
  [Wr, !1]
16735
16735
  ]),
16736
- e.simple ? (b(), k(U, {
16736
+ e.simple ? (b(), k(A, {
16737
16737
  key: 0,
16738
16738
  size: "small"
16739
16739
  }, {
16740
16740
  default: f(() => [
16741
- m($, null, {
16741
+ m(P, null, {
16742
16742
  content: f(() => [
16743
- S(z(c.value), 1)
16743
+ S(z(d.value), 1)
16744
16744
  ]),
16745
16745
  default: f(() => [
16746
- m(P, {
16746
+ m($, {
16747
16747
  size: "small",
16748
16748
  truncated: "",
16749
16749
  style: { width: "100px" }
16750
16750
  }, {
16751
16751
  default: f(() => [
16752
- S(z(c.value), 1)
16752
+ S(z(d.value), 1)
16753
16753
  ]),
16754
16754
  _: 1
16755
16755
  })
16756
16756
  ]),
16757
16757
  _: 1
16758
16758
  }),
16759
- m(F, { direction: "vertical" }),
16759
+ m(U, { direction: "vertical" }),
16760
16760
  e.field.allow_edit && !e.disabled ? (b(), k(h(W), {
16761
16761
  key: 0,
16762
16762
  icon: "folder-open",
16763
16763
  type: "warning",
16764
- onClick: _
16764
+ onClick: g
16765
16765
  }, {
16766
- default: f(() => [...C[0] || (C[0] = [
16766
+ default: f(() => [...V[0] || (V[0] = [
16767
16767
  S(" 打开 ", -1)
16768
16768
  ])]),
16769
16769
  _: 1
@@ -16773,9 +16773,9 @@ const Dr = /* @__PURE__ */ R({
16773
16773
  disabled: !l.value,
16774
16774
  icon: "trash",
16775
16775
  type: "danger",
16776
- onClick: g
16776
+ onClick: p
16777
16777
  }, {
16778
- default: f(() => [...C[1] || (C[1] = [
16778
+ default: f(() => [...V[1] || (V[1] = [
16779
16779
  S(" 删除 ", -1)
16780
16780
  ])]),
16781
16781
  _: 1
@@ -16785,29 +16785,29 @@ const Dr = /* @__PURE__ */ R({
16785
16785
  disabled: !l.value,
16786
16786
  icon: "download",
16787
16787
  type: "primary",
16788
- onClick: v
16788
+ onClick: y
16789
16789
  }, {
16790
- default: f(() => [...C[2] || (C[2] = [
16790
+ default: f(() => [...V[2] || (V[2] = [
16791
16791
  S(" 下载 ", -1)
16792
16792
  ])]),
16793
16793
  _: 1
16794
16794
  }, 8, ["disabled"]))
16795
16795
  ]),
16796
16796
  _: 1
16797
- })) : (b(), k(T, {
16797
+ })) : (b(), k(R, {
16798
16798
  key: 1,
16799
- "model-value": c.value,
16799
+ "model-value": d.value,
16800
16800
  readonly: "",
16801
16801
  placeholder: "无文件..."
16802
16802
  }, {
16803
16803
  suffix: f(() => [
16804
- m(F, { direction: "vertical" }),
16804
+ m(U, { direction: "vertical" }),
16805
16805
  m(h(W), {
16806
16806
  icon: "folder-open",
16807
16807
  type: "warning",
16808
- onClick: _
16808
+ onClick: g
16809
16809
  }, {
16810
- default: f(() => [...C[3] || (C[3] = [
16810
+ default: f(() => [...V[3] || (V[3] = [
16811
16811
  S(" 打开 ", -1)
16812
16812
  ])]),
16813
16813
  _: 1
@@ -16817,9 +16817,9 @@ const Dr = /* @__PURE__ */ R({
16817
16817
  disabled: !l.value,
16818
16818
  icon: "trash",
16819
16819
  type: "danger",
16820
- onClick: g
16820
+ onClick: p
16821
16821
  }, {
16822
- default: f(() => [...C[4] || (C[4] = [
16822
+ default: f(() => [...V[4] || (V[4] = [
16823
16823
  S(" 删除 ", -1)
16824
16824
  ])]),
16825
16825
  _: 1
@@ -16828,9 +16828,9 @@ const Dr = /* @__PURE__ */ R({
16828
16828
  disabled: !l.value,
16829
16829
  icon: "download",
16830
16830
  type: "primary",
16831
- onClick: v
16831
+ onClick: y
16832
16832
  }, {
16833
- default: f(() => [...C[5] || (C[5] = [
16833
+ default: f(() => [...V[5] || (V[5] = [
16834
16834
  S(" 下载 ", -1)
16835
16835
  ])]),
16836
16836
  _: 1
@@ -16841,7 +16841,7 @@ const Dr = /* @__PURE__ */ R({
16841
16841
  ], 64);
16842
16842
  };
16843
16843
  }
16844
- }), Bg = /* @__PURE__ */ R({
16844
+ }), Bg = /* @__PURE__ */ I({
16845
16845
  __name: "ObjectCell",
16846
16846
  props: {
16847
16847
  modelValue: {},
@@ -16856,7 +16856,7 @@ const Dr = /* @__PURE__ */ R({
16856
16856
  set: (r) => l("update:modelValue", r)
16857
16857
  });
16858
16858
  function a(r, i) {
16859
- i(), Q.info("JSON结果已暂存");
16859
+ i(), X.info("JSON结果已暂存");
16860
16860
  }
16861
16861
  return (r, i) => {
16862
16862
  const u = w("el-button");
@@ -16899,7 +16899,7 @@ const Dr = /* @__PURE__ */ R({
16899
16899
  ], 64);
16900
16900
  };
16901
16901
  }
16902
- }), Lg = /* @__PURE__ */ R({
16902
+ }), Lg = /* @__PURE__ */ I({
16903
16903
  __name: "RichCell",
16904
16904
  props: {
16905
16905
  modelValue: {},
@@ -16914,7 +16914,7 @@ const Dr = /* @__PURE__ */ R({
16914
16914
  set: (i) => o("update:modelValue", i || null)
16915
16915
  }), s = x(), a = x();
16916
16916
  function r(i, u) {
16917
- Q.info("富文本结果已暂存"), u();
16917
+ X.info("富文本结果已暂存"), u();
16918
16918
  }
16919
16919
  return (i, u) => {
16920
16920
  const c = w("el-button");
@@ -17009,7 +17009,7 @@ function zg(e) {
17009
17009
  });
17010
17010
  return { config: t, enable: n, component: o };
17011
17011
  }
17012
- const Vn = /* @__PURE__ */ R({
17012
+ const Vn = /* @__PURE__ */ I({
17013
17013
  __name: "MCell",
17014
17014
  props: {
17015
17015
  bean: {},
@@ -17044,7 +17044,7 @@ const Vn = /* @__PURE__ */ R({
17044
17044
  onConfirm: u
17045
17045
  }, null, 40, ["modelValue", "field", "row", "disabled"])) : K("", !0);
17046
17046
  }
17047
- }), jn = /* @__PURE__ */ R({
17047
+ }), jn = /* @__PURE__ */ I({
17048
17048
  __name: "FieldLabel",
17049
17049
  props: {
17050
17050
  field: {}
@@ -17109,7 +17109,7 @@ const Vn = /* @__PURE__ */ R({
17109
17109
  });
17110
17110
  };
17111
17111
  }
17112
- }), qn = /* @__PURE__ */ R({
17112
+ }), qn = /* @__PURE__ */ I({
17113
17113
  __name: "ViewLabel",
17114
17114
  props: {
17115
17115
  view: {},
@@ -17188,7 +17188,7 @@ const Vn = /* @__PURE__ */ R({
17188
17188
  });
17189
17189
  };
17190
17190
  }
17191
- }), Mg = /* @__PURE__ */ R({
17191
+ }), Mg = /* @__PURE__ */ I({
17192
17192
  __name: "MFormLabel",
17193
17193
  props: {
17194
17194
  field: {},
@@ -17231,7 +17231,7 @@ const Vn = /* @__PURE__ */ R({
17231
17231
  });
17232
17232
  };
17233
17233
  }
17234
- }), Ra = /* @__PURE__ */ lt(Mg, [["__scopeId", "data-v-21849760"]]), Hn = /* @__PURE__ */ R({
17234
+ }), Ra = /* @__PURE__ */ lt(Mg, [["__scopeId", "data-v-21849760"]]), Hn = /* @__PURE__ */ I({
17235
17235
  __name: "MForm",
17236
17236
  props: {
17237
17237
  temp: {},
@@ -17260,12 +17260,12 @@ const Vn = /* @__PURE__ */ R({
17260
17260
  }, { deep: !0 });
17261
17261
  function p() {
17262
17262
  if (g.value)
17263
- return Q.warning("注意验证信息"), null;
17263
+ return X.warning("注意验证信息"), null;
17264
17264
  const v = c.value;
17265
17265
  return !l.insert && qe(v) ? [] : (l.keys || [l.item.id]).map((E) => ({ id: E, saved: !0, ...v }));
17266
17266
  }
17267
17267
  return t({ getData: p }), (v, y) => {
17268
- const E = w("el-form-item"), V = w("el-col"), D = w("el-row"), C = w("el-form");
17268
+ const E = w("el-form-item"), T = w("el-col"), D = w("el-row"), C = w("el-form");
17269
17269
  return b(), k(C, {
17270
17270
  ref_key: "form",
17271
17271
  ref: s,
@@ -17274,26 +17274,26 @@ const Vn = /* @__PURE__ */ R({
17274
17274
  default: f(() => [
17275
17275
  m(D, { gutter: 10 }, {
17276
17276
  default: f(() => [
17277
- (b(!0), M(H, null, se(h(a).filter((A) => A.domain !== "FileField"), (A) => (b(), k(V, {
17278
- span: A.span || 12
17277
+ (b(!0), M(H, null, se(h(a).filter((V) => V.domain !== "FileField"), (V) => (b(), k(T, {
17278
+ span: V.span || 12
17279
17279
  }, {
17280
17280
  default: f(() => [
17281
17281
  m(E, {
17282
- prop: A.prop,
17282
+ prop: V.prop,
17283
17283
  size: "default"
17284
17284
  }, {
17285
17285
  label: f(() => [
17286
17286
  m(Ra, {
17287
- field: A,
17287
+ field: V,
17288
17288
  mapping: h(d),
17289
17289
  onReset: h(_)
17290
17290
  }, null, 8, ["field", "mapping", "onReset"])
17291
17291
  ]),
17292
17292
  default: f(() => [
17293
17293
  m(h(Vn), {
17294
- field: A,
17294
+ field: V,
17295
17295
  row: e.item,
17296
- disabled: h(i)(A),
17296
+ disabled: h(i)(V),
17297
17297
  bean: h(r)
17298
17298
  }, null, 8, ["field", "row", "disabled", "bean"])
17299
17299
  ]),
@@ -17302,15 +17302,15 @@ const Vn = /* @__PURE__ */ R({
17302
17302
  ]),
17303
17303
  _: 2
17304
17304
  }, 1032, ["span"]))), 256)),
17305
- h(u) ? (b(!0), M(H, { key: 0 }, se(h(a).filter((A) => A.domain === "FileField"), (A) => (b(), k(V, null, {
17305
+ h(u) ? (b(!0), M(H, { key: 0 }, se(h(a).filter((V) => V.domain === "FileField"), (V) => (b(), k(T, null, {
17306
17306
  default: f(() => [
17307
17307
  m(E, {
17308
- prop: A.prop,
17308
+ prop: V.prop,
17309
17309
  size: "default"
17310
17310
  }, {
17311
17311
  label: f(() => [
17312
17312
  m(Ra, {
17313
- field: A,
17313
+ field: V,
17314
17314
  mapping: h(d),
17315
17315
  disabled: "",
17316
17316
  onReset: h(_)
@@ -17318,8 +17318,8 @@ const Vn = /* @__PURE__ */ R({
17318
17318
  ]),
17319
17319
  default: f(() => [
17320
17320
  m(h(Vn), {
17321
- field: A,
17322
- disabled: h(i)(A),
17321
+ field: V,
17322
+ disabled: h(i)(V),
17323
17323
  bean: h(r),
17324
17324
  row: h(u)
17325
17325
  }, null, 8, ["field", "disabled", "bean", "row"])
@@ -17355,7 +17355,7 @@ const qg = {
17355
17355
  }, Hg = {
17356
17356
  key: 1,
17357
17357
  style: { padding: "5px 5px 0 5px" }
17358
- }, Jo = /* @__PURE__ */ R({
17358
+ }, Jo = /* @__PURE__ */ I({
17359
17359
  __name: "CodesForm",
17360
17360
  props: {
17361
17361
  db: {},
@@ -17403,7 +17403,7 @@ const qg = {
17403
17403
  disabled: e.disabled,
17404
17404
  onChange: u
17405
17405
  }, null, 8, ["view", "item", "temp", "disabled"]),
17406
- X(_.$slots, "default", {
17406
+ Z(_.$slots, "default", {
17407
17407
  view: h(s),
17408
17408
  item: h(a),
17409
17409
  update: r,
@@ -17431,12 +17431,12 @@ function Kg(e, t) {
17431
17431
  reload: v,
17432
17432
  delete_many: y,
17433
17433
  save_many: E,
17434
- switching: V
17434
+ switching: T
17435
17435
  } = Ho(e, n, t), {
17436
17436
  options: D,
17437
17437
  mapping: C,
17438
- total: A
17439
- } = pr(o), { toAoa: P } = Ae(g), { toText: $ } = gt(), { copy: F } = At(), { write: U } = Ut();
17438
+ total: V
17439
+ } = pr(o), { toAoa: F } = Ae(g), { toText: $ } = gt(), { copy: P } = At(), { write: U } = Ut();
17440
17440
  return {
17441
17441
  view: g,
17442
17442
  search: n,
@@ -17446,7 +17446,7 @@ function Kg(e, t) {
17446
17446
  error: a,
17447
17447
  core: u,
17448
17448
  finder: c,
17449
- total: A,
17449
+ total: V,
17450
17450
  mapping: C,
17451
17451
  options: D,
17452
17452
  dao: i,
@@ -17454,24 +17454,24 @@ function Kg(e, t) {
17454
17454
  reload: v,
17455
17455
  init: p,
17456
17456
  delete_many: y,
17457
- save_many: (I) => E(I.map((B) => ({ ...B, ...u.value }))),
17458
- order: (I) => n.value.orders = I || { sort: -1 },
17459
- delete_one: (I) => l.delete_one(I).then(() => v()),
17460
- save_one: (I) => l.save_one({ ...I, ...u.value }),
17461
- insert_one: (I) => l.insert_one({ ...I, ...u.value }),
17462
- find: (I) => l.find(new Te({ id__in: I })),
17463
- values: (I, B) => l.values(I, new Te({ id__in: B })),
17464
- lookup: (I, B) => {
17465
- delete c.value.includes[I], delete c.value.excludes[I], B && (c.value[B.type][I] = B);
17457
+ save_many: (R) => E(R.map((B) => ({ ...B, ...u.value }))),
17458
+ order: (R) => n.value.orders = R || { sort: -1 },
17459
+ delete_one: (R) => l.delete_one(R).then(() => v()),
17460
+ save_one: (R) => l.save_one({ ...R, ...u.value }),
17461
+ insert_one: (R) => l.insert_one({ ...R, ...u.value }),
17462
+ find: (R) => l.find(new Te({ id__in: R })),
17463
+ values: (R, B) => l.values(R, new Te({ id__in: B })),
17464
+ lookup: (R, B) => {
17465
+ delete c.value.includes[R], delete c.value.excludes[R], B && (c.value[B.type][R] = B);
17466
17466
  },
17467
17467
  download: () => {
17468
- l.find(..._.value).then((I) => {
17469
- const B = P(I), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, Z = e.value.title || g.value.$meta_name;
17470
- De.info("请选择数据下载方式:", q).then(() => F($(B))).then(() => Q.success("数据已存至剪切板")).catch(() => U(Z || _t(), { data: B, name: Z }));
17468
+ l.find(..._.value).then((R) => {
17469
+ const B = F(R), q = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, Q = e.value.title || g.value.$meta_name;
17470
+ De.info("请选择数据下载方式:", q).then(() => P($(B))).then(() => X.success("数据已存至剪切板")).catch(() => U(Q || _t(), { data: B, name: Q }));
17471
17471
  });
17472
17472
  }
17473
17473
  },
17474
- switching: V
17474
+ switching: T
17475
17475
  };
17476
17476
  }
17477
17477
  class Rr {
@@ -17527,7 +17527,7 @@ class Rr {
17527
17527
  return ge.DOMAINS.referred.includes(n) ? !0 : n === "CharField" ? ["select", "cascade", "tree", "auto"].includes(t) : !1;
17528
17528
  }
17529
17529
  }
17530
- const Yg = /* @__PURE__ */ R({
17530
+ const Yg = /* @__PURE__ */ I({
17531
17531
  __name: "FieldFormBtn",
17532
17532
  props: {
17533
17533
  field: {}
@@ -17595,7 +17595,7 @@ const Yg = /* @__PURE__ */ R({
17595
17595
  });
17596
17596
  };
17597
17597
  }
17598
- }), Wg = /* @__PURE__ */ R({
17598
+ }), Wg = /* @__PURE__ */ I({
17599
17599
  __name: "DateFormats",
17600
17600
  props: {
17601
17601
  modelValue: {},
@@ -17664,7 +17664,7 @@ const Yg = /* @__PURE__ */ R({
17664
17664
  });
17665
17665
  };
17666
17666
  }
17667
- }), Gg = /* @__PURE__ */ R({
17667
+ }), Gg = /* @__PURE__ */ I({
17668
17668
  __name: "FileFormats",
17669
17669
  props: {
17670
17670
  modelValue: {},
@@ -17851,7 +17851,7 @@ const Yg = /* @__PURE__ */ R({
17851
17851
  });
17852
17852
  };
17853
17853
  }
17854
- }), Jg = /* @__PURE__ */ R({
17854
+ }), Jg = /* @__PURE__ */ I({
17855
17855
  __name: "NumberFormats",
17856
17856
  props: {
17857
17857
  modelValue: {},
@@ -17977,7 +17977,7 @@ const Yg = /* @__PURE__ */ R({
17977
17977
  });
17978
17978
  };
17979
17979
  }
17980
- }), Xg = /* @__PURE__ */ R({
17980
+ }), Xg = /* @__PURE__ */ I({
17981
17981
  __name: "SetFormats",
17982
17982
  props: {
17983
17983
  modelValue: {},
@@ -18020,7 +18020,7 @@ const Yg = /* @__PURE__ */ R({
18020
18020
  }, 8, ["results"]);
18021
18021
  };
18022
18022
  }
18023
- }), Zg = /* @__PURE__ */ R({
18023
+ }), Zg = /* @__PURE__ */ I({
18024
18024
  __name: "TextFormats",
18025
18025
  props: {
18026
18026
  modelValue: {},
@@ -18092,7 +18092,7 @@ const Yg = /* @__PURE__ */ R({
18092
18092
  });
18093
18093
  };
18094
18094
  }
18095
- }), Xo = /* @__PURE__ */ R({
18095
+ }), Xo = /* @__PURE__ */ I({
18096
18096
  __name: "FormatForm",
18097
18097
  props: {
18098
18098
  field: {},
@@ -18132,7 +18132,7 @@ const Yg = /* @__PURE__ */ R({
18132
18132
  view: e.view
18133
18133
  }, null, 8, ["modelValue", "field", "view"])) : K("", !0);
18134
18134
  }
18135
- }), Qg = { class: "justified" }, eh = { style: { "font-size": "10px", "margin-left": "10px" } }, Ir = /* @__PURE__ */ R({
18135
+ }), Qg = { class: "justified" }, eh = { style: { "font-size": "10px", "margin-left": "10px" } }, Ir = /* @__PURE__ */ I({
18136
18136
  __name: "MetaSelect",
18137
18137
  props: {
18138
18138
  modelValue: {},
@@ -18190,7 +18190,7 @@ const Yg = /* @__PURE__ */ R({
18190
18190
  }, 8, ["modelValue", "options", "disabled", "style", "clearable"]);
18191
18191
  };
18192
18192
  }
18193
- }), th = /* @__PURE__ */ R({
18193
+ }), th = /* @__PURE__ */ I({
18194
18194
  __name: "TreeRootSelection",
18195
18195
  props: {
18196
18196
  modelValue: {},
@@ -18234,7 +18234,7 @@ const Yg = /* @__PURE__ */ R({
18234
18234
  }, 8, ["modelValue", "data", "props"]);
18235
18235
  };
18236
18236
  }
18237
- }), Zo = /* @__PURE__ */ R({
18237
+ }), Zo = /* @__PURE__ */ I({
18238
18238
  __name: "ReferForm",
18239
18239
  props: {
18240
18240
  field: {}
@@ -18250,10 +18250,10 @@ const Yg = /* @__PURE__ */ R({
18250
18250
  o.value.isTree
18251
18251
  ], (g, p) => {
18252
18252
  const { db: v, entity: y, isTree: E } = o.value;
18253
- v && y ? i.meta_view().then((V) => {
18254
- if (l.value = V, E) {
18253
+ v && y ? i.meta_view().then((T) => {
18254
+ if (l.value = T, E) {
18255
18255
  const D = Object.assign({ isLeaf: !1 }, s.value.includes), C = [new Te(D)];
18256
- i.search({ type: "tree", root: 0 }, C).then((A) => a.value = A);
18256
+ i.search({ type: "tree", root: 0 }, C).then((V) => a.value = V);
18257
18257
  }
18258
18258
  }) : l.value = new Me();
18259
18259
  }, { immediate: !0, deep: !0 }), t({ getData: () => ({
@@ -18274,7 +18274,7 @@ const Yg = /* @__PURE__ */ R({
18274
18274
  () => Object.values(l.value?.$modes || {}).filter(({ domain: g }) => !ge.DOMAINS.referred.includes(g || "")).map(({ prop: g, label: p }) => ({ value: g, label: p, display: g }))
18275
18275
  );
18276
18276
  return (g, p) => {
18277
- const v = w("el-form-item"), y = w("el-col"), E = w("el-checkbox"), V = w("el-option"), D = w("el-select"), C = w("el-row");
18277
+ const v = w("el-form-item"), y = w("el-col"), E = w("el-checkbox"), T = w("el-option"), D = w("el-select"), C = w("el-row");
18278
18278
  return b(), k(C, { gutter: 10 }, {
18279
18279
  default: f(() => [
18280
18280
  m(y, { span: 12 }, {
@@ -18286,7 +18286,7 @@ const Yg = /* @__PURE__ */ R({
18286
18286
  default: f(() => [
18287
18287
  m(h(Ir), {
18288
18288
  modelValue: o.value,
18289
- "onUpdate:modelValue": p[0] || (p[0] = (A) => o.value = A)
18289
+ "onUpdate:modelValue": p[0] || (p[0] = (V) => o.value = V)
18290
18290
  }, null, 8, ["modelValue"])
18291
18291
  ]),
18292
18292
  _: 1
@@ -18306,7 +18306,7 @@ const Yg = /* @__PURE__ */ R({
18306
18306
  style: { width: "100%" },
18307
18307
  disabled: "",
18308
18308
  modelValue: o.value.multiple,
18309
- "onUpdate:modelValue": p[1] || (p[1] = (A) => o.value.multiple = A)
18309
+ "onUpdate:modelValue": p[1] || (p[1] = (V) => o.value.multiple = V)
18310
18310
  }, {
18311
18311
  default: f(() => [
18312
18312
  S(z(o.value.multiple ? "是" : "否"), 1)
@@ -18319,23 +18319,23 @@ const Yg = /* @__PURE__ */ R({
18319
18319
  ]),
18320
18320
  _: 1
18321
18321
  }),
18322
- (b(), M(H, null, se(c, (A, P) => m(y, { span: 8 }, {
18322
+ (b(), M(H, null, se(c, (V, F) => m(y, { span: 8 }, {
18323
18323
  default: f(() => [
18324
18324
  m(v, {
18325
- label: A,
18325
+ label: V,
18326
18326
  "label-position": "top"
18327
18327
  }, {
18328
18328
  default: f(() => [
18329
18329
  m(D, {
18330
- disabled: P === "value" && d.value.value || d.value.all,
18330
+ disabled: F === "value" && d.value.value || d.value.all,
18331
18331
  filterable: "",
18332
18332
  clearable: "",
18333
18333
  "value-on-clear": "",
18334
- modelValue: o.value[P],
18335
- "onUpdate:modelValue": ($) => o.value[P] = $
18334
+ modelValue: o.value[F],
18335
+ "onUpdate:modelValue": ($) => o.value[F] = $
18336
18336
  }, {
18337
18337
  default: f(() => [
18338
- (b(!0), M(H, null, se(_.value, ($) => (b(), k(V, {
18338
+ (b(!0), M(H, null, se(_.value, ($) => (b(), k(T, {
18339
18339
  label: $.label,
18340
18340
  value: $.value
18341
18341
  }, {
@@ -18365,7 +18365,7 @@ const Yg = /* @__PURE__ */ R({
18365
18365
  default: f(() => [
18366
18366
  m(h(en), {
18367
18367
  modelValue: o.value.includes,
18368
- "onUpdate:modelValue": p[2] || (p[2] = (A) => o.value.includes = A),
18368
+ "onUpdate:modelValue": p[2] || (p[2] = (V) => o.value.includes = V),
18369
18369
  disabled: d.value.all
18370
18370
  }, null, 8, ["modelValue", "disabled"])
18371
18371
  ]),
@@ -18383,7 +18383,7 @@ const Yg = /* @__PURE__ */ R({
18383
18383
  default: f(() => [
18384
18384
  m(h(en), {
18385
18385
  modelValue: o.value.excludes,
18386
- "onUpdate:modelValue": p[3] || (p[3] = (A) => o.value.excludes = A),
18386
+ "onUpdate:modelValue": p[3] || (p[3] = (V) => o.value.excludes = V),
18387
18387
  disabled: d.value.all
18388
18388
  }, null, 8, ["modelValue", "disabled"])
18389
18389
  ]),
@@ -18402,7 +18402,7 @@ const Yg = /* @__PURE__ */ R({
18402
18402
  default: f(() => [
18403
18403
  m(th, {
18404
18404
  modelValue: o.value.root,
18405
- "onUpdate:modelValue": p[4] || (p[4] = (A) => o.value.root = A),
18405
+ "onUpdate:modelValue": p[4] || (p[4] = (V) => o.value.root = V),
18406
18406
  options: h(r)
18407
18407
  }, null, 8, ["modelValue", "options"])
18408
18408
  ]),
@@ -18422,7 +18422,7 @@ const Yg = /* @__PURE__ */ R({
18422
18422
  border: "",
18423
18423
  style: { width: "100%" },
18424
18424
  modelValue: o.value.strict,
18425
- "onUpdate:modelValue": p[5] || (p[5] = (A) => o.value.strict = A)
18425
+ "onUpdate:modelValue": p[5] || (p[5] = (V) => o.value.strict = V)
18426
18426
  }, {
18427
18427
  default: f(() => [
18428
18428
  S(z(o.value.strict ? "是" : "否"), 1)
@@ -18441,7 +18441,7 @@ const Yg = /* @__PURE__ */ R({
18441
18441
  });
18442
18442
  };
18443
18443
  }
18444
- }), Pr = /* @__PURE__ */ R({
18444
+ }), Pr = /* @__PURE__ */ I({
18445
18445
  __name: "FieldForm",
18446
18446
  props: {
18447
18447
  field: {},
@@ -18511,7 +18511,7 @@ const Yg = /* @__PURE__ */ R({
18511
18511
  }, 512)
18512
18512
  ], 64));
18513
18513
  }
18514
- }), nh = /* @__PURE__ */ R({
18514
+ }), nh = /* @__PURE__ */ I({
18515
18515
  __name: "FieldDialog",
18516
18516
  props: {
18517
18517
  view: {}
@@ -18530,7 +18530,7 @@ const Yg = /* @__PURE__ */ R({
18530
18530
  });
18531
18531
  function i(u, c) {
18532
18532
  const d = s.value?.getData();
18533
- d == null ? (Q.warning("请查看验证信息"), c(!1)) : qe(d) ? (Q.info("数据无变化"), c(!1)) : (r.save_many([d]), c());
18533
+ d == null ? (X.warning("请查看验证信息"), c(!1)) : qe(d) ? (X.info("数据无变化"), c(!1)) : (r.save_many([d]), c());
18534
18534
  }
18535
18535
  return t({ open: a }), (u, c) => (b(), k(h(le), {
18536
18536
  ref_key: "dialog",
@@ -18552,7 +18552,7 @@ const Yg = /* @__PURE__ */ R({
18552
18552
  _: 1
18553
18553
  }, 512));
18554
18554
  }
18555
- }), oh = /* @__PURE__ */ R({
18555
+ }), oh = /* @__PURE__ */ I({
18556
18556
  __name: "AddFieldDialog",
18557
18557
  props: {
18558
18558
  view: {}
@@ -18575,7 +18575,7 @@ const Yg = /* @__PURE__ */ R({
18575
18575
  const p = a.value?.getSelection(), v = l.view.id, y = p?.map((E) => E.prop);
18576
18576
  y?.length ? i("valar/add_fields", { view_id: v, props: y }).then(() => {
18577
18577
  o("complete"), g();
18578
- }) : (Q.info("请选择"), g(!1));
18578
+ }) : (X.info("请选择"), g(!1));
18579
18579
  }
18580
18580
  return t({ open: c }), (_, g) => (b(), k(h(le), {
18581
18581
  ref_key: "dialog",
@@ -18594,7 +18594,7 @@ const Yg = /* @__PURE__ */ R({
18594
18594
  _: 1
18595
18595
  }, 512));
18596
18596
  }
18597
- }), Fr = /* @__PURE__ */ R({
18597
+ }), Fr = /* @__PURE__ */ I({
18598
18598
  __name: "CustomForm",
18599
18599
  props: {
18600
18600
  view: {}
@@ -18606,17 +18606,17 @@ const Yg = /* @__PURE__ */ R({
18606
18606
  multiple: !0,
18607
18607
  expandTrigger: "hover",
18608
18608
  lazyLoad(c, d) {
18609
- const { level: _, data: g } = c, { $db: p, $entity: v } = n.view, y = _ ? g : { db: p, entity: v }, E = _ ? c.pathNodes.map((A) => {
18610
- const { db: P, entity: $ } = A.data;
18611
- return `${P}.${$}`;
18612
- }) : [], V = _ ? c.pathValues : [];
18609
+ const { level: _, data: g } = c, { $db: p, $entity: v } = n.view, y = _ ? g : { db: p, entity: v }, E = _ ? c.pathNodes.map((V) => {
18610
+ const { db: F, entity: $ } = V.data;
18611
+ return `${F}.${$}`;
18612
+ }) : [], T = _ ? c.pathValues : [];
18613
18613
  E.push(`${p}.${v}`);
18614
18614
  const { db: D, entity: C } = y;
18615
- o("valar/get_fields", { db: D, entity: C, route: E }).then((A) => {
18616
- A.forEach((P) => {
18617
- const $ = [...V, P.value].join("__");
18618
- P.disabled = s.value.includes($);
18619
- }), d(A);
18615
+ o("valar/get_fields", { db: D, entity: C, route: E }).then((V) => {
18616
+ V.forEach((F) => {
18617
+ const $ = [...T, F.value].join("__");
18618
+ F.disabled = s.value.includes($);
18619
+ }), d(V);
18620
18620
  });
18621
18621
  }
18622
18622
  };
@@ -18685,7 +18685,7 @@ const Yg = /* @__PURE__ */ R({
18685
18685
  });
18686
18686
  };
18687
18687
  }
18688
- }), lh = /* @__PURE__ */ R({
18688
+ }), lh = /* @__PURE__ */ I({
18689
18689
  __name: "CustomFieldDialog",
18690
18690
  props: {
18691
18691
  view: {}
@@ -18701,7 +18701,7 @@ const Yg = /* @__PURE__ */ R({
18701
18701
  }
18702
18702
  function i(u, c) {
18703
18703
  const d = s.value?.getData();
18704
- d?.length ? (a.save_many(d), c()) : (Q.info("请选择"), c(!1));
18704
+ d?.length ? (a.save_many(d), c()) : (X.info("请选择"), c(!1));
18705
18705
  }
18706
18706
  return t({ open: r }), (u, c) => (b(), k(h(le), {
18707
18707
  ref_key: "dialog",
@@ -18719,7 +18719,7 @@ const Yg = /* @__PURE__ */ R({
18719
18719
  _: 1
18720
18720
  }, 512));
18721
18721
  }
18722
- }), Nr = /* @__PURE__ */ R({
18722
+ }), Nr = /* @__PURE__ */ I({
18723
18723
  __name: "ViewForm",
18724
18724
  props: {
18725
18725
  view: {}
@@ -18739,7 +18739,7 @@ const Yg = /* @__PURE__ */ R({
18739
18739
  codes: l
18740
18740
  }, null, 8, ["item"]));
18741
18741
  }
18742
- }), ah = /* @__PURE__ */ R({
18742
+ }), ah = /* @__PURE__ */ I({
18743
18743
  __name: "FormatDialog",
18744
18744
  props: {
18745
18745
  view: {}
@@ -18778,7 +18778,7 @@ const Yg = /* @__PURE__ */ R({
18778
18778
  _: 1
18779
18779
  }, 512));
18780
18780
  }
18781
- }), sh = /* @__PURE__ */ R({
18781
+ }), sh = /* @__PURE__ */ I({
18782
18782
  __name: "ReferDialog",
18783
18783
  emits: ["complete"],
18784
18784
  setup(e, { expose: t, emit: n }) {
@@ -18813,7 +18813,7 @@ const Yg = /* @__PURE__ */ R({
18813
18813
  _: 1
18814
18814
  }, 512));
18815
18815
  }
18816
- }), rh = { style: { display: "flex", "align-items": "center" } }, ih = /* @__PURE__ */ R({
18816
+ }), rh = { style: { display: "flex", "align-items": "center" } }, ih = /* @__PURE__ */ I({
18817
18817
  __name: "FieldPropCustom",
18818
18818
  props: {
18819
18819
  row: {},
@@ -18859,7 +18859,7 @@ const Yg = /* @__PURE__ */ R({
18859
18859
  });
18860
18860
  };
18861
18861
  }
18862
- }), uh = /* @__PURE__ */ R({
18862
+ }), uh = /* @__PURE__ */ I({
18863
18863
  __name: "FieldWidgetsCustom",
18864
18864
  props: {
18865
18865
  row: {},
@@ -18903,7 +18903,7 @@ const Yg = /* @__PURE__ */ R({
18903
18903
  }, 8, ["disabled", "icon", "type"])
18904
18904
  ], 64));
18905
18905
  }
18906
- }), ch = /* @__PURE__ */ R({
18906
+ }), ch = /* @__PURE__ */ I({
18907
18907
  __name: "ListPanel",
18908
18908
  props: {
18909
18909
  view: {}
@@ -19002,7 +19002,7 @@ const Yg = /* @__PURE__ */ R({
19002
19002
  ], 64);
19003
19003
  };
19004
19004
  }
19005
- }), dh = "元数据字段", Ur = /* @__PURE__ */ R({
19005
+ }), dh = "元数据字段", Ur = /* @__PURE__ */ I({
19006
19006
  __name: "ListDialog",
19007
19007
  props: {
19008
19008
  view: {}
@@ -19049,7 +19049,7 @@ const Yg = /* @__PURE__ */ R({
19049
19049
  }, 512);
19050
19050
  };
19051
19051
  }
19052
- }), ph = "元数据视图", Br = /* @__PURE__ */ R({
19052
+ }), ph = "元数据视图", Br = /* @__PURE__ */ I({
19053
19053
  __name: "ViewDialog",
19054
19054
  props: {
19055
19055
  view: {}
@@ -19061,7 +19061,7 @@ const Yg = /* @__PURE__ */ R({
19061
19061
  });
19062
19062
  function r(u, c) {
19063
19063
  const d = s.value?.getData();
19064
- qe(d) ? (Q.info("数据未修改"), c()) : a.save_one(d).then(() => {
19064
+ qe(d) ? (X.info("数据未修改"), c()) : a.save_one(d).then(() => {
19065
19065
  o("reload"), c();
19066
19066
  });
19067
19067
  }
@@ -19108,7 +19108,7 @@ const Yg = /* @__PURE__ */ R({
19108
19108
  }, 512);
19109
19109
  };
19110
19110
  }
19111
- }), fh = /* @__PURE__ */ R({
19111
+ }), fh = /* @__PURE__ */ I({
19112
19112
  __name: "CurrentView",
19113
19113
  props: {
19114
19114
  row: {},
@@ -19132,7 +19132,7 @@ const Yg = /* @__PURE__ */ R({
19132
19132
  onClick: l
19133
19133
  }, null, 8, ["icon", "type"]));
19134
19134
  }
19135
- }), Lr = /* @__PURE__ */ R({
19135
+ }), Lr = /* @__PURE__ */ I({
19136
19136
  __name: "ViewPanel",
19137
19137
  props: {
19138
19138
  view: {}
@@ -19215,7 +19215,7 @@ const Yg = /* @__PURE__ */ R({
19215
19215
  header: f(() => [
19216
19216
  m(h(Ir), {
19217
19217
  modelValue: r.value,
19218
- "onUpdate:modelValue": y[0] || (y[0] = (V) => r.value = V),
19218
+ "onUpdate:modelValue": y[0] || (y[0] = (T) => r.value = T),
19219
19219
  clearable: !1
19220
19220
  }, null, 8, ["modelValue"]),
19221
19221
  m(E, { direction: "vertical" }),
@@ -19249,12 +19249,12 @@ const Yg = /* @__PURE__ */ R({
19249
19249
  ref_key: "view_dialog",
19250
19250
  ref: a,
19251
19251
  view: g.value,
19252
- onReload: y[1] || (y[1] = (V) => l.value?.rest?.reload([g.value.id]))
19252
+ onReload: y[1] || (y[1] = (T) => l.value?.rest?.reload([g.value.id]))
19253
19253
  }, null, 8, ["view"])
19254
19254
  ], 64);
19255
19255
  };
19256
19256
  }
19257
- }), mh = "元数据实体", _h = /* @__PURE__ */ R({
19257
+ }), mh = "元数据实体", _h = /* @__PURE__ */ I({
19258
19258
  __name: "MetaDialog",
19259
19259
  props: {
19260
19260
  view: {}
@@ -19304,7 +19304,7 @@ const Yg = /* @__PURE__ */ R({
19304
19304
  }, 512);
19305
19305
  };
19306
19306
  }
19307
- }), Qo = /* @__PURE__ */ R({
19307
+ }), Qo = /* @__PURE__ */ I({
19308
19308
  __name: "MetaPopover",
19309
19309
  props: {
19310
19310
  view: {},
@@ -19394,7 +19394,7 @@ const Yg = /* @__PURE__ */ R({
19394
19394
  ], 64);
19395
19395
  };
19396
19396
  }
19397
- }), Lt = /* @__PURE__ */ R({
19397
+ }), Lt = /* @__PURE__ */ I({
19398
19398
  __name: "DTable",
19399
19399
  props: {
19400
19400
  buttons: {},
@@ -19430,24 +19430,24 @@ const Yg = /* @__PURE__ */ R({
19430
19430
  finder: v,
19431
19431
  total: y,
19432
19432
  mapping: E,
19433
- options: V,
19433
+ options: T,
19434
19434
  rest: D,
19435
19435
  switching: C
19436
- } = Kg(a, (P) => {
19437
- o.value?.set(P);
19436
+ } = Kg(a, (F) => {
19437
+ o.value?.set(F);
19438
19438
  });
19439
19439
  return t({
19440
19440
  rest: D,
19441
19441
  view: () => u.value,
19442
19442
  controller: i,
19443
19443
  getSelection: () => o.value?.getSelection() || []
19444
- }), (P, $) => (b(), M(H, null, [
19444
+ }), (F, $) => (b(), M(H, null, [
19445
19445
  m(h(Vr), {
19446
19446
  ref_key: "table",
19447
19447
  ref: o,
19448
19448
  view: h(u),
19449
19449
  rest: h(D),
19450
- results: h(V),
19450
+ results: h(T),
19451
19451
  mapping: h(E),
19452
19452
  total: h(y),
19453
19453
  search: h(c),
@@ -19466,8 +19466,8 @@ const Yg = /* @__PURE__ */ R({
19466
19466
  onMeta: l.value?.open,
19467
19467
  onField: s.value?.open
19468
19468
  }, {
19469
- header: f(({ width: F }) => [
19470
- X(P.$slots, "header", { width: F })
19469
+ header: f(({ width: P }) => [
19470
+ Z(F.$slots, "header", { width: P })
19471
19471
  ]),
19472
19472
  _: 3
19473
19473
  }, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "loading", "ticker", "error", "admin", "title", "single", "height", "buttons", "columns", "onMeta", "onField"]),
@@ -19475,14 +19475,14 @@ const Yg = /* @__PURE__ */ R({
19475
19475
  ref_key: "meta",
19476
19476
  ref: l,
19477
19477
  view: h(u),
19478
- onReload: $[0] || ($[0] = (F) => h(D).init()),
19478
+ onReload: $[0] || ($[0] = (P) => h(D).init()),
19479
19479
  switching: h(C)
19480
19480
  }, null, 8, ["view", "switching"]),
19481
19481
  m(nh, {
19482
19482
  ref_key: "field",
19483
19483
  ref: s,
19484
19484
  view: h(u),
19485
- onReload: $[1] || ($[1] = (F) => h(D).init())
19485
+ onReload: $[1] || ($[1] = (P) => h(D).init())
19486
19486
  }, null, 8, ["view"])
19487
19487
  ], 64));
19488
19488
  }
@@ -19551,7 +19551,7 @@ function vh(e, t) {
19551
19551
  d.value,
19552
19552
  l.value
19553
19553
  ], v, { deep: !0 });
19554
- const { results: y, total: E } = Ko(p, i), { toAoa: V } = Ae(u), { toText: D } = gt(), { copy: C } = At(), { write: A } = Ut();
19554
+ const { results: y, total: E } = Ko(p, i), { toAoa: T } = Ae(u), { toText: D } = gt(), { copy: C } = At(), { write: V } = Ut();
19555
19555
  return {
19556
19556
  results: y,
19557
19557
  mapping: s,
@@ -19569,41 +19569,41 @@ function vh(e, t) {
19569
19569
  $ = $ || { sort: -1 }, i.value.orders = $, r.value = $;
19570
19570
  },
19571
19571
  delete_one: ($) => a.delete_many([$]),
19572
- save_one: ($) => new Promise((F) => {
19572
+ save_one: ($) => new Promise((P) => {
19573
19573
  const U = { ...$, ..._.value };
19574
- a.save_many([{ ...$, ..._.value }]), F(U);
19574
+ a.save_many([{ ...$, ..._.value }]), P(U);
19575
19575
  }),
19576
- insert_one: ($) => new Promise((F) => {
19576
+ insert_one: ($) => new Promise((P) => {
19577
19577
  const U = a.insert_one({ ...$, ..._.value });
19578
- F(U);
19578
+ P(U);
19579
19579
  }),
19580
- find: ($) => new Promise((F) => {
19581
- const U = $.map((T) => a.find_one(T));
19582
- F(U);
19580
+ find: ($) => new Promise((P) => {
19581
+ const U = $.map((A) => a.find_one(A));
19582
+ P(U);
19583
19583
  }),
19584
19584
  delete_many: ($) => {
19585
19585
  a.delete_many($), t([]);
19586
19586
  },
19587
- values: ($, F) => new Promise((U) => {
19588
- const T = F.map((I) => ve(a.find_one(I), $));
19589
- U(T);
19587
+ values: ($, P) => new Promise((U) => {
19588
+ const A = P.map((R) => ve(a.find_one(R), $));
19589
+ U(A);
19590
19590
  }),
19591
19591
  save_many: ($) => {
19592
- const F = a.save_many($);
19593
- t(F);
19592
+ const P = a.save_many($);
19593
+ t(P);
19594
19594
  },
19595
- lookup: ($, F) => {
19596
- delete d.value.includes[$], delete d.value.excludes[$], F && (d.value[F.type][$] = F);
19595
+ lookup: ($, P) => {
19596
+ delete d.value.includes[$], delete d.value.excludes[$], P && (d.value[P.type][$] = P);
19597
19597
  },
19598
19598
  download: () => {
19599
- const $ = V(y.value), F = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
19600
- De.info("请选择数据下载方式:", F).then(() => C(D($))).then(() => Q.success("数据已存至剪切板")).catch(() => A(U || _t(), { data: $, name: U }));
19599
+ const $ = T(y.value), P = { confirmButtonText: "复制到剪切板", cancelButtonText: "下载为文件" }, U = n.value.title;
19600
+ De.info("请选择数据下载方式:", P).then(() => C(D($))).then(() => X.success("数据已存至剪切板")).catch(() => V(U || _t(), { data: $, name: U }));
19601
19601
  }
19602
19602
  },
19603
19603
  orders: r
19604
19604
  };
19605
19605
  }
19606
- const zt = /* @__PURE__ */ R({
19606
+ const zt = /* @__PURE__ */ I({
19607
19607
  __name: "PTable",
19608
19608
  props: {
19609
19609
  results: {},
@@ -19639,7 +19639,7 @@ const zt = /* @__PURE__ */ R({
19639
19639
  }, { deep: !0 }), t({
19640
19640
  getSelection: (y = !1) => {
19641
19641
  const E = s.value?.getSelection() || [];
19642
- return y ? E : E.map((V) => Rn(V, ["id", "sort", "saved"]));
19642
+ return y ? E : E.map((T) => Rn(T, ["id", "sort", "saved"]));
19643
19643
  }
19644
19644
  }), (y, E) => (b(), k(h(Vr), {
19645
19645
  ref_key: "table",
@@ -19661,13 +19661,13 @@ const zt = /* @__PURE__ */ R({
19661
19661
  buttons: e.buttons,
19662
19662
  columns: e.columns
19663
19663
  }, {
19664
- header: f(({ width: V }) => [
19665
- X(y.$slots, "header", { width: V })
19664
+ header: f(({ width: T }) => [
19665
+ Z(y.$slots, "header", { width: T })
19666
19666
  ]),
19667
19667
  _: 3
19668
19668
  }, 8, ["view", "rest", "results", "mapping", "total", "search", "finder", "core", "error", "admin", "title", "single", "height", "buttons", "columns"]));
19669
19669
  }
19670
- }), zr = /* @__PURE__ */ R({
19670
+ }), zr = /* @__PURE__ */ I({
19671
19671
  __name: "CodesTable",
19672
19672
  props: {
19673
19673
  buttons: {},
@@ -19709,7 +19709,7 @@ const zt = /* @__PURE__ */ R({
19709
19709
  columns: r.value,
19710
19710
  buttons: a.value
19711
19711
  }), {
19712
- header: f(({ width: V }) => [
19712
+ header: f(({ width: T }) => [
19713
19713
  m(E, null, {
19714
19714
  default: f(() => [
19715
19715
  m(v, {
@@ -19722,7 +19722,7 @@ const zt = /* @__PURE__ */ R({
19722
19722
  key: 0,
19723
19723
  direction: "vertical"
19724
19724
  })) : K("", !0),
19725
- X(g.$slots, "header", { width: V })
19725
+ Z(g.$slots, "header", { width: T })
19726
19726
  ]),
19727
19727
  _: 2
19728
19728
  }, 1024)
@@ -19749,8 +19749,8 @@ function yh(e, t) {
19749
19749
  reload: v,
19750
19750
  save_many: y,
19751
19751
  delete_many: E,
19752
- switching: V
19753
- } = Ho(e, n, t), { options: D, mapping: C, root: A } = Nt(o);
19752
+ switching: T
19753
+ } = Ho(e, n, t), { options: D, mapping: C, root: V } = Nt(o);
19754
19754
  return {
19755
19755
  manager: l,
19756
19756
  ticker: s,
@@ -19759,7 +19759,7 @@ function yh(e, t) {
19759
19759
  model: o,
19760
19760
  options: D,
19761
19761
  mapping: C,
19762
- $root: A,
19762
+ $root: V,
19763
19763
  core: u,
19764
19764
  error: a,
19765
19765
  rest: {
@@ -19767,16 +19767,16 @@ function yh(e, t) {
19767
19767
  reload: v,
19768
19768
  save_many: y,
19769
19769
  delete_many: E,
19770
- switch_nodes: ($, F) => {
19770
+ switch_nodes: ($, P) => {
19771
19771
  console.log($);
19772
- const U = $.map((T) => ({ id: T, isLeaf: F }));
19772
+ const U = $.map((A) => ({ id: A, isLeaf: P }));
19773
19773
  y(U);
19774
19774
  }
19775
19775
  },
19776
- switching: V
19776
+ switching: T
19777
19777
  };
19778
19778
  }
19779
- const bh = /* @__PURE__ */ R({
19779
+ const bh = /* @__PURE__ */ I({
19780
19780
  __name: "DTreeTablePlugin",
19781
19781
  props: {
19782
19782
  row: {},
@@ -19831,7 +19831,7 @@ const bh = /* @__PURE__ */ R({
19831
19831
  }));
19832
19832
  };
19833
19833
  }
19834
- }), wh = /* @__PURE__ */ R({
19834
+ }), wh = /* @__PURE__ */ I({
19835
19835
  __name: "DTreeTable",
19836
19836
  props: {
19837
19837
  mapping: {},
@@ -19904,26 +19904,26 @@ const bh = /* @__PURE__ */ R({
19904
19904
  m(_, {
19905
19905
  size: "small",
19906
19906
  modelValue: n.value,
19907
- "onUpdate:modelValue": d[0] || (d[0] = (V) => n.value = V),
19907
+ "onUpdate:modelValue": d[0] || (d[0] = (T) => n.value = T),
19908
19908
  options: o
19909
19909
  }, null, 8, ["modelValue"]),
19910
19910
  n.value ? (b(), M(H, { key: 0 }, [
19911
19911
  m(g, { direction: "vertical" }),
19912
19912
  m(y, { spacer: "/" }, {
19913
19913
  default: f(() => [
19914
- (b(!0), M(H, null, se(s.value, (V) => (b(), M(H, null, [
19915
- V.value ? (b(), k(v, {
19914
+ (b(!0), M(H, null, se(s.value, (T) => (b(), M(H, null, [
19915
+ T.value ? (b(), k(v, {
19916
19916
  key: 0,
19917
- disabled: V.disabled,
19917
+ disabled: T.disabled,
19918
19918
  icon: "folder",
19919
19919
  type: "warning",
19920
- onClick: (D) => i(V),
19920
+ onClick: (D) => i(T),
19921
19921
  truncate: ""
19922
19922
  }, {
19923
19923
  default: f(() => [
19924
19924
  m(p, { tag: "b" }, {
19925
19925
  default: f(() => [
19926
- S(z(V.label), 1)
19926
+ S(z(T.label), 1)
19927
19927
  ]),
19928
19928
  _: 2
19929
19929
  }, 1024)
@@ -19931,10 +19931,10 @@ const bh = /* @__PURE__ */ R({
19931
19931
  _: 2
19932
19932
  }, 1032, ["disabled", "onClick"])) : (b(), k(v, {
19933
19933
  key: 1,
19934
- disabled: V.disabled,
19934
+ disabled: T.disabled,
19935
19935
  icon: "folder-tree",
19936
19936
  type: "primary",
19937
- onClick: (D) => i(V)
19937
+ onClick: (D) => i(T)
19938
19938
  }, null, 8, ["disabled", "onClick"]))
19939
19939
  ], 64))), 256))
19940
19940
  ]),
@@ -19949,7 +19949,7 @@ const bh = /* @__PURE__ */ R({
19949
19949
  }, 8, ["db", "entity", "code", "includes", "excludes", "disabled", "columns"]);
19950
19950
  };
19951
19951
  }
19952
- }), el = /* @__PURE__ */ R({
19952
+ }), el = /* @__PURE__ */ I({
19953
19953
  __name: "DTree",
19954
19954
  props: {
19955
19955
  buttons: {},
@@ -19984,30 +19984,30 @@ const bh = /* @__PURE__ */ R({
19984
19984
  options: v,
19985
19985
  mapping: y,
19986
19986
  $root: E,
19987
- core: V,
19987
+ core: T,
19988
19988
  error: D,
19989
19989
  rest: C,
19990
- switching: A
19991
- } = yh(s, (F) => {
19992
- a.value?.set(F);
19990
+ switching: V
19991
+ } = yh(s, (P) => {
19992
+ a.value?.set(P);
19993
19993
  });
19994
- function P(F, U) {
19995
- F.stopPropagation(), F.preventDefault(), a.value?.set([U]);
19994
+ function F(P, U) {
19995
+ P.stopPropagation(), P.preventDefault(), a.value?.set([U]);
19996
19996
  }
19997
- return J(() => a.value?.selection, (F) => {
19997
+ return J(() => a.value?.selection, (P) => {
19998
19998
  if (l.single) {
19999
- const U = F?.length === 1 ? F[0] : null;
19999
+ const U = P?.length === 1 ? P[0] : null;
20000
20000
  o("change", U);
20001
20001
  } else
20002
- o("change", F);
20002
+ o("change", P);
20003
20003
  }, { deep: !0 }), t({
20004
20004
  manager: d,
20005
20005
  rest: C,
20006
20006
  getSelection: () => a.value?.selection,
20007
20007
  getOptions: () => v.value,
20008
20008
  getMapping: () => y.value
20009
- }), (F, U) => {
20010
- const T = w("m-dialog");
20009
+ }), (P, U) => {
20010
+ const A = w("m-dialog");
20011
20011
  return b(), M(H, null, [
20012
20012
  m(h(Tg), {
20013
20013
  ref_key: "tree",
@@ -20025,7 +20025,7 @@ const bh = /* @__PURE__ */ R({
20025
20025
  loading: h(g),
20026
20026
  ticker: h(_),
20027
20027
  size: "small",
20028
- core: h(V),
20028
+ core: h(T),
20029
20029
  error: h(D),
20030
20030
  title: e.title,
20031
20031
  height: e.height,
@@ -20033,50 +20033,50 @@ const bh = /* @__PURE__ */ R({
20033
20033
  onMeta: i.value?.open,
20034
20034
  onTable: r.value?.open
20035
20035
  }, {
20036
- header: f(({ width: I }) => [
20037
- X(F.$slots, "header", { width: I })
20036
+ header: f(({ width: R }) => [
20037
+ Z(P.$slots, "header", { width: R })
20038
20038
  ]),
20039
- prefix: f(({ data: I, node: B, isLeaf: q }) => [
20040
- X(F.$slots, "prefix", {
20041
- isLeaf: I.isLeaf,
20039
+ prefix: f(({ data: R, node: B, isLeaf: q }) => [
20040
+ Z(P.$slots, "prefix", {
20041
+ isLeaf: R.isLeaf,
20042
20042
  node: B,
20043
- data: I,
20044
- select: P
20043
+ data: R,
20044
+ select: F
20045
20045
  })
20046
20046
  ]),
20047
- "prefix-leaf": f(({ data: I, node: B }) => [
20048
- X(F.$slots, "prefix-leaf", {
20047
+ "prefix-leaf": f(({ data: R, node: B }) => [
20048
+ Z(P.$slots, "prefix-leaf", {
20049
20049
  node: B,
20050
- data: I,
20051
- select: P
20050
+ data: R,
20051
+ select: F
20052
20052
  })
20053
20053
  ]),
20054
- "prefix-branch": f(({ data: I, node: B }) => [
20055
- X(F.$slots, "prefix-branch", {
20054
+ "prefix-branch": f(({ data: R, node: B }) => [
20055
+ Z(P.$slots, "prefix-branch", {
20056
20056
  node: B,
20057
- data: I,
20058
- select: P
20057
+ data: R,
20058
+ select: F
20059
20059
  })
20060
20060
  ]),
20061
- suffix: f(({ data: I, node: B, isLeaf: q }) => [
20062
- X(F.$slots, "suffix", {
20061
+ suffix: f(({ data: R, node: B, isLeaf: q }) => [
20062
+ Z(P.$slots, "suffix", {
20063
20063
  node: B,
20064
- data: I,
20065
- select: P
20064
+ data: R,
20065
+ select: F
20066
20066
  })
20067
20067
  ]),
20068
- "suffix-leaf": f(({ data: I, node: B }) => [
20069
- X(F.$slots, "suffix-leaf", {
20068
+ "suffix-leaf": f(({ data: R, node: B }) => [
20069
+ Z(P.$slots, "suffix-leaf", {
20070
20070
  node: B,
20071
- data: I,
20072
- select: P
20071
+ data: R,
20072
+ select: F
20073
20073
  })
20074
20074
  ]),
20075
- "suffix-branch": f(({ data: I, node: B }) => [
20076
- X(F.$slots, "suffix-branch", {
20075
+ "suffix-branch": f(({ data: R, node: B }) => [
20076
+ Z(P.$slots, "suffix-branch", {
20077
20077
  node: B,
20078
- data: I,
20079
- select: P
20078
+ data: R,
20079
+ select: F
20080
20080
  })
20081
20081
  ]),
20082
20082
  _: 3
@@ -20085,22 +20085,22 @@ const bh = /* @__PURE__ */ R({
20085
20085
  ref_key: "meta",
20086
20086
  ref: i,
20087
20087
  view: h(p),
20088
- onReload: U[0] || (U[0] = (I) => h(C).init()),
20089
- switching: h(A)
20088
+ onReload: U[0] || (U[0] = (R) => h(C).init()),
20089
+ switching: h(V)
20090
20090
  }, null, 8, ["view", "switching"]),
20091
- m(T, {
20091
+ m(A, {
20092
20092
  ref_key: "table",
20093
20093
  ref: r,
20094
20094
  title: "表格查看",
20095
20095
  width: "1200"
20096
20096
  }, {
20097
- default: f(({ data: I }) => [
20097
+ default: f(({ data: R }) => [
20098
20098
  m(wh, {
20099
20099
  mapping: h(y),
20100
20100
  root: e.root,
20101
20101
  labelKey: e.labelKey,
20102
20102
  view: h(p),
20103
- node: I,
20103
+ node: R,
20104
20104
  includes: e.includes,
20105
20105
  excludes: e.excludes,
20106
20106
  disabled: e.disabled
@@ -20111,7 +20111,7 @@ const bh = /* @__PURE__ */ R({
20111
20111
  ], 64);
20112
20112
  };
20113
20113
  }
20114
- }), kh = /* @__PURE__ */ R({
20114
+ }), kh = /* @__PURE__ */ I({
20115
20115
  __name: "VCsv",
20116
20116
  props: {
20117
20117
  url: {}
@@ -20149,7 +20149,7 @@ const bh = /* @__PURE__ */ R({
20149
20149
  }, 8, ["modes", "results"]);
20150
20150
  };
20151
20151
  }
20152
- }), Eh = /* @__PURE__ */ R({
20152
+ }), Eh = /* @__PURE__ */ I({
20153
20153
  __name: "VExcel",
20154
20154
  props: {
20155
20155
  url: {}
@@ -20215,7 +20215,7 @@ const bh = /* @__PURE__ */ R({
20215
20215
  }, 8, ["modes", "results"]);
20216
20216
  };
20217
20217
  }
20218
- }), xh = /* @__PURE__ */ R({
20218
+ }), xh = /* @__PURE__ */ I({
20219
20219
  __name: "VImage",
20220
20220
  props: {
20221
20221
  url: {}
@@ -20231,7 +20231,7 @@ const bh = /* @__PURE__ */ R({
20231
20231
  }, null, 8, ["src", "preview-src-list"]);
20232
20232
  };
20233
20233
  }
20234
- }), Ch = { class: "pager" }, Oh = /* @__PURE__ */ R({
20234
+ }), Ch = { class: "pager" }, Oh = /* @__PURE__ */ I({
20235
20235
  __name: "VPdf",
20236
20236
  props: {
20237
20237
  url: {}
@@ -20307,7 +20307,7 @@ const bh = /* @__PURE__ */ R({
20307
20307
  ], 64);
20308
20308
  };
20309
20309
  }
20310
- }), Sh = /* @__PURE__ */ lt(Oh, [["__scopeId", "data-v-c57ee6e2"]]), $h = /* @__PURE__ */ R({
20310
+ }), Sh = /* @__PURE__ */ lt(Oh, [["__scopeId", "data-v-c57ee6e2"]]), $h = /* @__PURE__ */ I({
20311
20311
  __name: "VTxt",
20312
20312
  props: {
20313
20313
  url: {}
@@ -20330,7 +20330,7 @@ const bh = /* @__PURE__ */ R({
20330
20330
  }, null, 8, ["modelValue"]);
20331
20331
  };
20332
20332
  }
20333
- }), Mr = /* @__PURE__ */ R({
20333
+ }), Mr = /* @__PURE__ */ I({
20334
20334
  __name: "MFileView",
20335
20335
  props: {
20336
20336
  path: {},
@@ -20339,12 +20339,11 @@ const bh = /* @__PURE__ */ R({
20339
20339
  },
20340
20340
  setup(e) {
20341
20341
  const t = e, n = [".pdf", ".jpg", ".gif", ".png", ".jpeg", ".xls", ".xlsx", ".csv", ".txt"], o = O(() => {
20342
- const i = (t.path || "").split(".").pop();
20343
- return i ? `.${i}` : "";
20344
- }), l = localStorage.getItem("MINIO"), s = O(() => `${l}/${t.path}`);
20345
- O(() => (t.path || "").split("/").pop());
20342
+ const u = decodeURI(t.path || "").split(".").pop();
20343
+ return u ? `.${u}` : "";
20344
+ }), l = localStorage.getItem("MINIO"), s = O(() => t.path ? `${l}/${decodeURI(t.path)}` : null);
20346
20345
  function a(i) {
20347
- i && t.field?.format.locked ? Q.warning("抱歉,该文件不支持下载!请在线预览。") : window.open(s.value, "_blank");
20346
+ i && t.field?.format.locked ? X.warning("抱歉,该文件不支持下载!请在线预览。") : s.value ? window.open(s.value, "_blank") : X.warning("无文件");
20348
20347
  }
20349
20348
  const r = O(() => {
20350
20349
  switch (o.value) {
@@ -20366,10 +20365,10 @@ const bh = /* @__PURE__ */ R({
20366
20365
  });
20367
20366
  return (i, u) => {
20368
20367
  const c = w("el-text"), d = w("el-result");
20369
- return e.path ? (b(), M(H, { key: 0 }, [
20368
+ return s.value ? (b(), M(H, { key: 0 }, [
20370
20369
  n.includes(o.value) ? (b(), k(An(r.value), {
20371
20370
  key: 1,
20372
- url: decodeURI(s.value)
20371
+ url: s.value
20373
20372
  }, null, 8, ["url"])) : (b(), k(d, {
20374
20373
  key: 0,
20375
20374
  icon: "info"
@@ -20435,7 +20434,7 @@ const bh = /* @__PURE__ */ R({
20435
20434
  validate(e) {
20436
20435
  if (e === "admin") return !0;
20437
20436
  const t = this.account.validateRegExp.test(e);
20438
- return t || Q.error(this.account.validateMessage), t;
20437
+ return t || X.error(this.account.validateMessage), t;
20439
20438
  },
20440
20439
  init(e) {
20441
20440
  this.baseURL = e?.baseURL || "/api/", this.title = e?.title || "Valar Morghulis", this.signInOnly = e?.signInOnly || !1, this.scope = e?.scope || "admin";
@@ -20451,7 +20450,7 @@ const bh = /* @__PURE__ */ R({
20451
20450
  function Th(e, t) {
20452
20451
  return " main ";
20453
20452
  }
20454
- const Ah = /* @__PURE__ */ lt(Vh, [["render", Th]]), Dh = /* @__PURE__ */ R({
20453
+ const Ah = /* @__PURE__ */ lt(Vh, [["render", Th]]), Dh = /* @__PURE__ */ I({
20455
20454
  __name: "MUser",
20456
20455
  setup(e) {
20457
20456
  const t = x(), { userStore: n } = Oe(), { manager: o } = he({ entity: "valar.Account" }), l = [
@@ -20495,7 +20494,7 @@ function Kn() {
20495
20494
  }
20496
20495
  return { load_roles: s, load_accounts: a, load_menus: r, accountInfo: t };
20497
20496
  }
20498
- const Rh = /* @__PURE__ */ R({
20497
+ const Rh = /* @__PURE__ */ I({
20499
20498
  __name: "AccountRoleDialog",
20500
20499
  emits: ["confirm"],
20501
20500
  setup(e, { expose: t, emit: n }) {
@@ -20554,7 +20553,7 @@ const Rh = /* @__PURE__ */ R({
20554
20553
  }, 512);
20555
20554
  };
20556
20555
  }
20557
- }), Ih = /* @__PURE__ */ R({
20556
+ }), Ih = /* @__PURE__ */ I({
20558
20557
  __name: "RoleAccountDialog",
20559
20558
  emits: ["confirm"],
20560
20559
  setup(e, { expose: t, emit: n }) {
@@ -20629,7 +20628,7 @@ const Rh = /* @__PURE__ */ R({
20629
20628
  }, 512);
20630
20629
  };
20631
20630
  }
20632
- }), Ph = /* @__PURE__ */ R({
20631
+ }), Ph = /* @__PURE__ */ I({
20633
20632
  __name: "RoleMenuDialog",
20634
20633
  emits: ["confirm"],
20635
20634
  setup(e, { expose: t, emit: n }) {
@@ -20655,7 +20654,7 @@ const Rh = /* @__PURE__ */ R({
20655
20654
  _: 1
20656
20655
  }, 512));
20657
20656
  }
20658
- }), Fh = /* @__PURE__ */ R({
20657
+ }), Fh = /* @__PURE__ */ I({
20659
20658
  __name: "MenuRoleDialog",
20660
20659
  emits: ["confirm"],
20661
20660
  setup(e, { expose: t, emit: n }) {
@@ -20741,7 +20740,7 @@ const Rh = /* @__PURE__ */ R({
20741
20740
  }, 512);
20742
20741
  };
20743
20742
  }
20744
- }), Nh = /* @__PURE__ */ R({
20743
+ }), Nh = /* @__PURE__ */ I({
20745
20744
  __name: "MenuAddDialog",
20746
20745
  props: {
20747
20746
  vacant: {},
@@ -20751,7 +20750,7 @@ const Rh = /* @__PURE__ */ R({
20751
20750
  setup(e, { expose: t, emit: n }) {
20752
20751
  const o = n, l = e, s = x(), a = x();
20753
20752
  function r() {
20754
- l.vacant.length ? s.value?.open(l.vacant) : Q.warning("无可用路由");
20753
+ l.vacant.length ? s.value?.open(l.vacant) : X.warning("无可用路由");
20755
20754
  }
20756
20755
  function i(u, c) {
20757
20756
  const _ = (a.value?.getSelection() || []).map((g) => ({ ...g, isLeaf: !0, pid: l.pid }));
@@ -20773,7 +20772,7 @@ const Rh = /* @__PURE__ */ R({
20773
20772
  _: 1
20774
20773
  }, 512));
20775
20774
  }
20776
- }), Uh = /* @__PURE__ */ R({
20775
+ }), Uh = /* @__PURE__ */ I({
20777
20776
  __name: "MenuPathPopover",
20778
20777
  props: {
20779
20778
  vacant: {}
@@ -20789,7 +20788,7 @@ const Rh = /* @__PURE__ */ R({
20789
20788
  c ? De.info("是否将菜单名称设置为路由名称").then(() => {
20790
20789
  const d = { id: u.id, name: c };
20791
20790
  o("confirm", [d]), s.value?.close();
20792
- }) : Q.info("已是默认值");
20791
+ }) : X.info("已是默认值");
20793
20792
  }
20794
20793
  const i = (u) => {
20795
20794
  const c = ve(u, ["id", "path"]);
@@ -20846,7 +20845,7 @@ const Rh = /* @__PURE__ */ R({
20846
20845
  }, 512);
20847
20846
  };
20848
20847
  }
20849
- }), Bh = /* @__PURE__ */ R({
20848
+ }), Bh = /* @__PURE__ */ I({
20850
20849
  __name: "MenuViewDialog",
20851
20850
  setup(e, { expose: t }) {
20852
20851
  const n = x(), { load_roles: o, load_menus: l } = Kn(), s = x(!1), a = x(!1), r = x([]), i = x([]), u = x([]), c = (p) => {
@@ -20859,7 +20858,7 @@ const Rh = /* @__PURE__ */ R({
20859
20858
  });
20860
20859
  }
20861
20860
  return t({ open: g }), (p, v) => {
20862
- const y = w("el-checkbox"), E = w("el-space"), V = w("el-option"), D = w("el-select");
20861
+ const y = w("el-checkbox"), E = w("el-space"), T = w("el-option"), D = w("el-select");
20863
20862
  return b(), k(h(le), {
20864
20863
  ref_key: "dialog",
20865
20864
  ref: n,
@@ -20912,7 +20911,7 @@ const Rh = /* @__PURE__ */ R({
20912
20911
  m(h(j), { icon: "user-lock" })
20913
20912
  ]),
20914
20913
  default: f(() => [
20915
- (b(!0), M(H, null, se(i.value, (C) => (b(), k(V, {
20914
+ (b(!0), M(H, null, se(i.value, (C) => (b(), k(T, {
20916
20915
  value: C.id,
20917
20916
  label: C.name
20918
20917
  }, {
@@ -20940,7 +20939,7 @@ const Rh = /* @__PURE__ */ R({
20940
20939
  }, 512);
20941
20940
  };
20942
20941
  }
20943
- }), Lh = /* @__PURE__ */ R({
20942
+ }), Lh = /* @__PURE__ */ I({
20944
20943
  __name: "MAccount",
20945
20944
  setup(e) {
20946
20945
  const t = x(), n = x(), o = x(), { copy: l } = At(), { userStore: s, handler: a } = Oe(), { post: r } = at(), i = [
@@ -20965,7 +20964,7 @@ const Rh = /* @__PURE__ */ R({
20965
20964
  }
20966
20965
  ];
20967
20966
  function u(d) {
20968
- De.info(`是否向用户邮箱【${d.username}】发送密码【${d.token}】?`).then(() => a.sendPassword(d.id)).catch(() => l(d.token).then(() => Q.warning("密码已复制到剪切板")));
20967
+ De.info(`是否向用户邮箱【${d.username}】发送密码【${d.token}】?`).then(() => a.sendPassword(d.id)).catch(() => l(d.token).then(() => X.warning("密码已复制到剪切板")));
20969
20968
  }
20970
20969
  function c(d) {
20971
20970
  De.info(`是否重置账户 “${d.username}” 的密码`).then(() => a.retrieve({ id: d.id })).finally(() => o.value?.rest.reload());
@@ -20991,7 +20990,7 @@ const Rh = /* @__PURE__ */ R({
20991
20990
  }, null, 512)
20992
20991
  ], 64));
20993
20992
  }
20994
- }), zh = /* @__PURE__ */ R({
20993
+ }), zh = /* @__PURE__ */ I({
20995
20994
  __name: "MRole",
20996
20995
  setup(e) {
20997
20996
  x();
@@ -21028,7 +21027,7 @@ const Rh = /* @__PURE__ */ R({
21028
21027
  }, null, 512)
21029
21028
  ], 64));
21030
21029
  }
21031
- }), Mh = /* @__PURE__ */ R({
21030
+ }), Mh = /* @__PURE__ */ I({
21032
21031
  __name: "MenuLabel",
21033
21032
  props: {
21034
21033
  mapping: {},
@@ -21091,7 +21090,7 @@ const Rh = /* @__PURE__ */ R({
21091
21090
  });
21092
21091
  };
21093
21092
  }
21094
- }), jh = /* @__PURE__ */ R({
21093
+ }), jh = /* @__PURE__ */ I({
21095
21094
  __name: "MenuRolePlugin",
21096
21095
  props: {
21097
21096
  data: {}
@@ -21176,7 +21175,7 @@ const Rh = /* @__PURE__ */ R({
21176
21175
  }));
21177
21176
  };
21178
21177
  }
21179
- }), qh = /* @__PURE__ */ R({
21178
+ }), qh = /* @__PURE__ */ I({
21180
21179
  __name: "MMenu",
21181
21180
  setup(e) {
21182
21181
  const { optionStore: t } = Oe(), n = ot(), o = x(), l = x(), s = x(), a = x(), r = x(), i = O(() => o.value?.getSelection() || []), u = O(() => {
@@ -21284,7 +21283,7 @@ const Rh = /* @__PURE__ */ R({
21284
21283
  }, null, 8, ["vacant", "onConfirm"])
21285
21284
  ], 64));
21286
21285
  }
21287
- }), Hh = /* @__PURE__ */ R({
21286
+ }), Hh = /* @__PURE__ */ I({
21288
21287
  __name: "MSystem",
21289
21288
  setup(e) {
21290
21289
  const { userStore: t } = Oe(), n = x("menu");
@@ -21388,7 +21387,7 @@ const Rh = /* @__PURE__ */ R({
21388
21387
  }, 8, ["modelValue"])) : K("", !0);
21389
21388
  };
21390
21389
  }
21391
- }), Kh = /* @__PURE__ */ R({
21390
+ }), Kh = /* @__PURE__ */ I({
21392
21391
  __name: "NotFound",
21393
21392
  setup(e) {
21394
21393
  const t = ot(), { counter: n, pause: o, resume: l, isActive: s } = Ua(1e3, {
@@ -21459,7 +21458,7 @@ const Rh = /* @__PURE__ */ R({
21459
21458
  });
21460
21459
  };
21461
21460
  }
21462
- }), Yh = /* @__PURE__ */ R({
21461
+ }), Yh = /* @__PURE__ */ I({
21463
21462
  __name: "NoPermission",
21464
21463
  setup(e) {
21465
21464
  const t = ot(), { counter: n, pause: o, resume: l, isActive: s } = Ua(1e3, {
@@ -21559,7 +21558,7 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21559
21558
  $$message: kr,
21560
21559
  $alert: Pm,
21561
21560
  $confirm: De,
21562
- $message: Q,
21561
+ $message: X,
21563
21562
  CodesForm: Jo,
21564
21563
  CodesTable: zr,
21565
21564
  Condition: Te,
@@ -21628,7 +21627,7 @@ export {
21628
21627
  kr as $$message,
21629
21628
  Pm as $alert,
21630
21629
  De as $confirm,
21631
- Q as $message,
21630
+ X as $message,
21632
21631
  Jo as CodesForm,
21633
21632
  zr as CodesTable,
21634
21633
  Te as Condition,