@unizhen/ui 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/lib/ui.css +1 -1
  2. package/lib/ui.js +469 -457
  3. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var Ac = Object.defineProperty;
2
2
  var Rc = (e, t, r) => t in e ? Ac(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var Tt = (e, t, r) => Rc(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as le, createElementBlock as w, openBlock as c, createStaticVNode as P, createElementVNode as i, ref as T, watch as ie, nextTick as Ue, h as ee, reactive as Na, resolveComponent as S, createBlock as O, withCtx as k, toDisplayString as H, createVNode as M, normalizeStyle as Se, inject as Le, computed as bt, Fragment as se, createCommentVNode as X, normalizeClass as ue, createSlots as ze, createTextVNode as G, renderList as be, provide as ya, onMounted as Ke, resolveDirective as zl, withDirectives as rt, mergeProps as ka, withModifiers as Nt, watchEffect as Al, onBeforeUnmount as Ia, withKeys as Oc, renderSlot as xe, markRaw as Bc, defineAsyncComponent as Fc, onUnmounted as Rl, vShow as vt, resolveDynamicComponent as ho } from "vue";
5
- import { createDiscreteApi as Vc, NPopover as ct, NFlex as Ol, NButton as ge, NPopconfirm as Da, NTooltip as Bl, NIcon as ve, NDropdown as Uc, NCascader as Fl, NCheckboxGroup as ja, NCheckbox as qa, NColorPicker as Pc, NSwitch as Ec, NTimePicker as Lc, NDatePicker as Hc, NInputNumber as Kc, NSelect as Vl, NInput as Gc, NDivider as za, NFormItem as Aa, NForm as Ra, NInputGroup as Oa, NUploadDragger as Wc, NImage as Ul, NUpload as Pl, useNotification as qt, NImageGroup as Jc, NModal as Qc, NInputGroupLabel as El, NGridItem as Ll, NGrid as Hl, NButtonGroup as Xc, NDrawerContent as Ba, NDrawer as Fa, NTag as Yc, NEllipsis as Zc, NSpin as Va, NRadioGroup as Kl, NSkeleton as Gl, NDataTable as Ua, NPagination as ed, NRadio as td, NTabPane as rd, NTabs as nd, darkTheme as Ge, NConfigProvider as ad, dateZhCN as od, zhCN as sd } from "naive-ui";
4
+ import { defineComponent as le, createElementBlock as w, openBlock as c, createStaticVNode as P, createElementVNode as i, ref as T, watch as ie, nextTick as Ue, h as ee, reactive as Na, resolveComponent as S, createBlock as O, withCtx as k, toDisplayString as H, createVNode as M, normalizeStyle as Se, inject as Le, computed as bt, Fragment as se, createCommentVNode as X, normalizeClass as ue, createSlots as qe, createTextVNode as G, renderList as be, provide as ya, onMounted as Ke, resolveDirective as ql, withDirectives as rt, mergeProps as ka, withModifiers as Nt, watchEffect as Al, onBeforeUnmount as Ia, withKeys as Oc, renderSlot as xe, markRaw as Bc, defineAsyncComponent as Fc, onUnmounted as Rl, vShow as vt, resolveDynamicComponent as ho } from "vue";
5
+ import { createDiscreteApi as Vc, NPopover as ct, NFlex as Ol, NButton as ge, NPopconfirm as Da, NTooltip as Bl, NIcon as ve, NDropdown as Uc, NCascader as Fl, NCheckboxGroup as ja, NCheckbox as za, NColorPicker as Pc, NSwitch as Ec, NTimePicker as Lc, NDatePicker as Hc, NInputNumber as Kc, NSelect as Vl, NInput as Gc, NDivider as qa, NFormItem as Aa, NForm as Ra, NInputGroup as Oa, NUploadDragger as Wc, NImage as Ul, NUpload as Pl, useNotification as zt, NImageGroup as Jc, NModal as Qc, NInputGroupLabel as El, NGridItem as Ll, NGrid as Hl, NButtonGroup as Xc, NDrawerContent as Ba, NDrawer as Fa, NTag as Yc, NEllipsis as Zc, NSpin as Va, NRadioGroup as Kl, NSkeleton as Gl, NDataTable as Ua, NPagination as ed, NRadio as td, NTabPane as rd, NTabs as nd, darkTheme as Ge, NConfigProvider as ad, dateZhCN as od, zhCN as sd } from "naive-ui";
6
6
  import Pa from "axios";
7
- import { createRouter as ld, createWebHistory as id, useRouter as ud, useRoute as zt } from "vue-router";
7
+ import { createRouter as ld, createWebHistory as id, useRouter as ud, useRoute as qt } from "vue-router";
8
8
  import { createI18n as cd, useI18n as At } from "vue-i18n";
9
9
  import Pe from "dayjs";
10
10
  import Wl from "vuedraggable";
@@ -109,12 +109,12 @@ const Zl = /* @__PURE__ */ x(Td, [["render", Id]]), Dd = {}, jd = {
109
109
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
110
110
  viewBox: "0 0 24 24"
111
111
  };
112
- function qd(e, t) {
112
+ function zd(e, t) {
113
113
  return c(), w("svg", jd, t[0] || (t[0] = [
114
114
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="13" r="7"></circle><path d="M12 10v3h2"></path><path d="M7 4L4.25 6"></path><path d="M17 4l2.75 2"></path></g>', 1)
115
115
  ]));
116
116
  }
117
- const ei = /* @__PURE__ */ x(Dd, [["render", qd]]), zd = {}, Ad = {
117
+ const ei = /* @__PURE__ */ x(Dd, [["render", zd]]), qd = {}, Ad = {
118
118
  xmlns: "http://www.w3.org/2000/svg",
119
119
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
120
120
  viewBox: "0 0 24 24"
@@ -138,7 +138,7 @@ function Rd(e, t) {
138
138
  ], -1)
139
139
  ]));
140
140
  }
141
- const ti = /* @__PURE__ */ x(zd, [["render", Rd]]), Od = {}, Bd = {
141
+ const ti = /* @__PURE__ */ x(qd, [["render", Rd]]), Od = {}, Bd = {
142
142
  xmlns: "http://www.w3.org/2000/svg",
143
143
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
144
144
  viewBox: "0 0 24 24"
@@ -442,17 +442,17 @@ function Df(e, t) {
442
442
  ], -1)
443
443
  ]));
444
444
  }
445
- const mi = /* @__PURE__ */ x(Nf, [["render", Df]]), jf = {}, qf = {
445
+ const mi = /* @__PURE__ */ x(Nf, [["render", Df]]), jf = {}, zf = {
446
446
  xmlns: "http://www.w3.org/2000/svg",
447
447
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
448
448
  viewBox: "0 0 24 24"
449
449
  };
450
- function zf(e, t) {
451
- return c(), w("svg", qf, t[0] || (t[0] = [
450
+ function qf(e, t) {
451
+ return c(), w("svg", zf, t[0] || (t[0] = [
452
452
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="7" width="18" height="13" rx="2"></rect><path d="M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><path d="M12 12v.01"></path><path d="M3 13a20 20 0 0 0 18 0"></path></g>', 1)
453
453
  ]));
454
454
  }
455
- const vi = /* @__PURE__ */ x(jf, [["render", zf]]), Af = {}, Rf = {
455
+ const vi = /* @__PURE__ */ x(jf, [["render", qf]]), Af = {}, Rf = {
456
456
  xmlns: "http://www.w3.org/2000/svg",
457
457
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
458
458
  viewBox: "0 0 24 24"
@@ -717,13 +717,13 @@ function Dp(e, t) {
717
717
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l9.5 7L18 21H6L2.5 10z"></path><path d="M12 7.5l5.5 4L15 17H8.5l-2-5.5z"></path><path d="M2.5 10l9.5 3l9.5-3"></path><path d="M12 3v10l6 8"></path><path d="M6 21l6-8"></path></g>', 1)
718
718
  ]));
719
719
  }
720
- const qi = /* @__PURE__ */ x(Np, [["render", Dp]]), jp = {}, qp = {
720
+ const zi = /* @__PURE__ */ x(Np, [["render", Dp]]), jp = {}, zp = {
721
721
  xmlns: "http://www.w3.org/2000/svg",
722
722
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
723
723
  viewBox: "0 0 24 24"
724
724
  };
725
- function zp(e, t) {
726
- return c(), w("svg", qp, t[0] || (t[0] = [
725
+ function qp(e, t) {
726
+ return c(), w("svg", zp, t[0] || (t[0] = [
727
727
  i("g", {
728
728
  fill: "none",
729
729
  stroke: "currentColor",
@@ -736,7 +736,7 @@ function zp(e, t) {
736
736
  ], -1)
737
737
  ]));
738
738
  }
739
- const zi = /* @__PURE__ */ x(jp, [["render", zp]]), Ap = {}, Rp = {
739
+ const qi = /* @__PURE__ */ x(jp, [["render", qp]]), Ap = {}, Rp = {
740
740
  xmlns: "http://www.w3.org/2000/svg",
741
741
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
742
742
  viewBox: "0 0 24 24"
@@ -1054,17 +1054,17 @@ function Dh(e, t) {
1054
1054
  ], -1)
1055
1055
  ]));
1056
1056
  }
1057
- const Wi = /* @__PURE__ */ x(Nh, [["render", Dh]]), jh = {}, qh = {
1057
+ const Wi = /* @__PURE__ */ x(Nh, [["render", Dh]]), jh = {}, zh = {
1058
1058
  xmlns: "http://www.w3.org/2000/svg",
1059
1059
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1060
1060
  viewBox: "0 0 24 24"
1061
1061
  };
1062
- function zh(e, t) {
1063
- return c(), w("svg", qh, t[0] || (t[0] = [
1062
+ function qh(e, t) {
1063
+ return c(), w("svg", zh, t[0] || (t[0] = [
1064
1064
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="12" rx="1"></rect><path d="M7 20h10"></path><path d="M9 16v4"></path><path d="M15 16v4"></path><path d="M8 12l3-3l2 2l3-3"></path></g>', 1)
1065
1065
  ]));
1066
1066
  }
1067
- const Ji = /* @__PURE__ */ x(jh, [["render", zh]]), Ah = {}, Rh = {
1067
+ const Ji = /* @__PURE__ */ x(jh, [["render", qh]]), Ah = {}, Rh = {
1068
1068
  xmlns: "http://www.w3.org/2000/svg",
1069
1069
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1070
1070
  viewBox: "0 0 24 24"
@@ -1366,17 +1366,17 @@ function D1(e, t) {
1366
1366
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="18" r="2"></circle><circle cx="6" cy="6" r="2"></circle><circle cx="18" cy="18" r="2"></circle><path d="M6 8v8"></path><path d="M11 6h5a2 2 0 0 1 2 2v8"></path><path d="M14 9l-3-3l3-3"></path></g>', 1)
1367
1367
  ]));
1368
1368
  }
1369
- const cu = /* @__PURE__ */ x(N1, [["render", D1]]), j1 = {}, q1 = {
1369
+ const cu = /* @__PURE__ */ x(N1, [["render", D1]]), j1 = {}, z1 = {
1370
1370
  xmlns: "http://www.w3.org/2000/svg",
1371
1371
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1372
1372
  viewBox: "0 0 24 24"
1373
1373
  };
1374
- function z1(e, t) {
1375
- return c(), w("svg", q1, t[0] || (t[0] = [
1374
+ function q1(e, t) {
1375
+ return c(), w("svg", z1, t[0] || (t[0] = [
1376
1376
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="5" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="19" cy="5" r="1"></circle><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="19" r="1"></circle><circle cx="12" cy="19" r="1"></circle><circle cx="19" cy="19" r="1"></circle></g>', 1)
1377
1377
  ]));
1378
1378
  }
1379
- const gt = /* @__PURE__ */ x(j1, [["render", z1]]), A1 = {}, R1 = {
1379
+ const gt = /* @__PURE__ */ x(j1, [["render", q1]]), A1 = {}, R1 = {
1380
1380
  xmlns: "http://www.w3.org/2000/svg",
1381
1381
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1382
1382
  viewBox: "0 0 24 24"
@@ -1661,17 +1661,17 @@ function D0(e, t) {
1661
1661
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4h18"></path><path d="M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4"></path><path d="M12 16v4"></path><path d="M9 20h6"></path><path d="M8 12l3-3l2 2l3-3"></path></g>', 1)
1662
1662
  ]));
1663
1663
  }
1664
- const $u = /* @__PURE__ */ x(N0, [["render", D0]]), j0 = {}, q0 = {
1664
+ const $u = /* @__PURE__ */ x(N0, [["render", D0]]), j0 = {}, z0 = {
1665
1665
  xmlns: "http://www.w3.org/2000/svg",
1666
1666
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1667
1667
  viewBox: "0 0 24 24"
1668
1668
  };
1669
- function z0(e, t) {
1670
- return c(), w("svg", q0, t[0] || (t[0] = [
1669
+ function q0(e, t) {
1670
+ return c(), w("svg", z0, t[0] || (t[0] = [
1671
1671
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 12V8"></path><path d="M15 12v-2"></path><path d="M12 12v-1"></path><path d="M3 4h18"></path><path d="M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4"></path><path d="M12 16v4"></path><path d="M9 20h6"></path></g>', 1)
1672
1672
  ]));
1673
1673
  }
1674
- const Mu = /* @__PURE__ */ x(j0, [["render", z0]]), A0 = {}, R0 = {
1674
+ const Mu = /* @__PURE__ */ x(j0, [["render", q0]]), A0 = {}, R0 = {
1675
1675
  xmlns: "http://www.w3.org/2000/svg",
1676
1676
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1677
1677
  viewBox: "0 0 24 24"
@@ -1812,7 +1812,7 @@ function lw(e, t) {
1812
1812
  ], -1)
1813
1813
  ]));
1814
1814
  }
1815
- const qu = /* @__PURE__ */ x(ow, [["render", lw]]), iw = {}, uw = {
1815
+ const zu = /* @__PURE__ */ x(ow, [["render", lw]]), iw = {}, uw = {
1816
1816
  xmlns: "http://www.w3.org/2000/svg",
1817
1817
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1818
1818
  viewBox: "0 0 24 24"
@@ -1831,7 +1831,7 @@ function cw(e, t) {
1831
1831
  ], -1)
1832
1832
  ]));
1833
1833
  }
1834
- const zu = /* @__PURE__ */ x(iw, [["render", cw]]), dw = {}, fw = {
1834
+ const qu = /* @__PURE__ */ x(iw, [["render", cw]]), dw = {}, fw = {
1835
1835
  xmlns: "http://www.w3.org/2000/svg",
1836
1836
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1837
1837
  viewBox: "0 0 24 24"
@@ -1975,17 +1975,17 @@ function Dw(e, t) {
1975
1975
  ], -1)
1976
1976
  ]));
1977
1977
  }
1978
- const Vu = /* @__PURE__ */ x(Nw, [["render", Dw]]), jw = {}, qw = {
1978
+ const Vu = /* @__PURE__ */ x(Nw, [["render", Dw]]), jw = {}, zw = {
1979
1979
  xmlns: "http://www.w3.org/2000/svg",
1980
1980
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1981
1981
  viewBox: "0 0 24 24"
1982
1982
  };
1983
- function zw(e, t) {
1984
- return c(), w("svg", qw, t[0] || (t[0] = [
1983
+ function qw(e, t) {
1984
+ return c(), w("svg", zw, t[0] || (t[0] = [
1985
1985
  P('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="7" r="4"></circle><path d="M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path><path d="M21 21v-2a4 4 0 0 0-3-3.85"></path></g>', 1)
1986
1986
  ]));
1987
1987
  }
1988
- const Uu = /* @__PURE__ */ x(jw, [["render", zw]]), Aw = {}, Rw = {
1988
+ const Uu = /* @__PURE__ */ x(jw, [["render", qw]]), Aw = {}, Rw = {
1989
1989
  xmlns: "http://www.w3.org/2000/svg",
1990
1990
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1991
1991
  viewBox: "0 0 24 24"
@@ -2236,8 +2236,8 @@ const Yu = /* @__PURE__ */ x(hm, [["render", mm]]), Zu = /* @__PURE__ */ Object.
2236
2236
  ChartDonut: Ii,
2237
2237
  ChartLine: Di,
2238
2238
  ChartPie: ji,
2239
- ChartRadar: qi,
2240
- Checkbox: zi,
2239
+ ChartRadar: zi,
2240
+ Checkbox: qi,
2241
2241
  CheckupList: Ai,
2242
2242
  CircleMinus: Eu,
2243
2243
  Clipboard: Ri,
@@ -2308,8 +2308,8 @@ const Yu = /* @__PURE__ */ x(hm, [["render", mm]]), Zu = /* @__PURE__ */ Object.
2308
2308
  ReportMoney: Du,
2309
2309
  ReportSearch: ju,
2310
2310
  Search: Vt,
2311
- Settings: qu,
2312
- SmartHome: zu,
2311
+ Settings: zu,
2312
+ SmartHome: qu,
2313
2313
  Sun: Au,
2314
2314
  TransferIn: Ru,
2315
2315
  TransferOut: Ou,
@@ -2654,7 +2654,7 @@ const rc = () => {
2654
2654
  };
2655
2655
  window.addEventListener("resize", rc);
2656
2656
  rc();
2657
- const qe = /* @__PURE__ */ new Map(), Nm = Object.prototype.hasOwnProperty;
2657
+ const ze = /* @__PURE__ */ new Map(), Nm = Object.prototype.hasOwnProperty;
2658
2658
  function nc(e, t) {
2659
2659
  const r = [];
2660
2660
  for (const n in e) {
@@ -2738,33 +2738,33 @@ const Ut = "/apiserver/", go = () => {
2738
2738
  fetchUri: e,
2739
2739
  ...t
2740
2740
  });
2741
- if (qe.has(a))
2742
- return qe.get(a);
2741
+ if (ze.has(a))
2742
+ return ze.get(a);
2743
2743
  const o = We({
2744
2744
  url: `${Ut}${e}`,
2745
2745
  method: "GET",
2746
2746
  data: t,
2747
2747
  responseType: r,
2748
2748
  timeout: n
2749
- }).then((s) => (qe.delete(a), s)).catch(() => {
2750
- qe.delete(a);
2749
+ }).then((s) => (ze.delete(a), s)).catch(() => {
2750
+ ze.delete(a);
2751
2751
  });
2752
- return qe.set(a, o), o;
2752
+ return ze.set(a, o), o;
2753
2753
  }, pe = (e, t = {}, r = "json", n = 3e5) => {
2754
2754
  const a = JSON.stringify({
2755
2755
  fetchUri: e,
2756
2756
  ...t
2757
2757
  });
2758
- if (qe.has(a))
2759
- return qe.get(a);
2758
+ if (ze.has(a))
2759
+ return ze.get(a);
2760
2760
  const o = We({
2761
2761
  url: `${Ut}${e}`,
2762
2762
  method: "POST",
2763
2763
  data: t,
2764
2764
  responseType: r,
2765
2765
  timeout: n
2766
- }).then((s) => (qe.delete(a), Promise.resolve(s))).catch((s) => (qe.delete(a), Promise.reject(s)));
2767
- return qe.set(a, o), o;
2766
+ }).then((s) => (ze.delete(a), Promise.resolve(s))).catch((s) => (ze.delete(a), Promise.reject(s)));
2767
+ return ze.set(a, o), o;
2768
2768
  }, uk = (e, t = {}, r = "blob", n = 3e5) => We({
2769
2769
  url: `${Ut}${e}`,
2770
2770
  method: "POST",
@@ -2778,11 +2778,11 @@ const Ut = "/apiserver/", go = () => {
2778
2778
  url: `${Ut}${e}`,
2779
2779
  method: "POST",
2780
2780
  data: t
2781
- }), Dm = (e) => pe("dynamic-table/queryById", { id: e }), jm = (e) => pe("dynamic-table/createTime", { id: e }), et = (e) => pe("table/query", e), Xa = (e) => pe("table/submit", e), qm = (e) => pe("table/delete", e), Ve = (e, t, r) => pe("calculation/sqlExecute", {
2781
+ }), Dm = (e) => pe("dynamic-table/queryById", { id: e }), jm = (e) => pe("dynamic-table/createTime", { id: e }), et = (e) => pe("table/query", e), Xa = (e) => pe("table/submit", e), zm = (e) => pe("table/delete", e), Ve = (e, t, r) => pe("calculation/sqlExecute", {
2782
2782
  calculationIds: e,
2783
2783
  linkId: t,
2784
2784
  ...r
2785
- }), zm = (e, t) => ee(
2785
+ }), qm = (e, t) => ee(
2786
2786
  Bl,
2787
2787
  {
2788
2788
  style: {
@@ -2886,7 +2886,7 @@ const Ut = "/apiserver/", go = () => {
2886
2886
  });
2887
2887
  }, yo = (e, t, r, n, a) => {
2888
2888
  let o = sc(e, t, r, n, a);
2889
- return e.confirmText && (o = Am(o, e, t, r, n)), !e.confirmText && e.tooltipText && (o = zm(o, e.tooltipText)), o;
2889
+ return e.confirmText && (o = Am(o, e, t, r, n)), !e.confirmText && e.tooltipText && (o = qm(o, e.tooltipText)), o;
2890
2890
  }, Ct = ({
2891
2891
  buttons: e,
2892
2892
  rowData: t = {},
@@ -3349,19 +3349,19 @@ function nv() {
3349
3349
  }
3350
3350
  return yr = e, yr;
3351
3351
  }
3352
- var kr, qo;
3352
+ var kr, zo;
3353
3353
  function av() {
3354
- if (qo) return kr;
3355
- qo = 1;
3354
+ if (zo) return kr;
3355
+ zo = 1;
3356
3356
  function e(t) {
3357
3357
  return this.__data__.has(t);
3358
3358
  }
3359
3359
  return kr = e, kr;
3360
3360
  }
3361
- var br, zo;
3361
+ var br, qo;
3362
3362
  function cc() {
3363
- if (zo) return br;
3364
- zo = 1;
3363
+ if (qo) return br;
3364
+ qo = 1;
3365
3365
  var e = typeof It == "object" && It && It.Object === Object && It;
3366
3366
  return br = e, br;
3367
3367
  }
@@ -3494,25 +3494,25 @@ function uv() {
3494
3494
  }
3495
3495
  return jr = I, jr;
3496
3496
  }
3497
- var qr, Ko;
3497
+ var zr, Ko;
3498
3498
  function cv() {
3499
- if (Ko) return qr;
3499
+ if (Ko) return zr;
3500
3500
  Ko = 1;
3501
3501
  function e(t, r) {
3502
3502
  return t == null ? void 0 : t[r];
3503
3503
  }
3504
- return qr = e, qr;
3504
+ return zr = e, zr;
3505
3505
  }
3506
- var zr, Go;
3506
+ var qr, Go;
3507
3507
  function at() {
3508
- if (Go) return zr;
3508
+ if (Go) return qr;
3509
3509
  Go = 1;
3510
3510
  var e = uv(), t = cv();
3511
3511
  function r(n, a) {
3512
3512
  var o = t(n, a);
3513
3513
  return e(o) ? o : void 0;
3514
3514
  }
3515
- return zr = r, zr;
3515
+ return qr = r, qr;
3516
3516
  }
3517
3517
  var Ar, Wo;
3518
3518
  function eo() {
@@ -3871,13 +3871,13 @@ function mc() {
3871
3871
  return fn = t, fn;
3872
3872
  }
3873
3873
  var pn, Ms;
3874
- function qv() {
3874
+ function zv() {
3875
3875
  if (Ms) return pn;
3876
3876
  Ms = 1;
3877
- var e = $t(), t = mc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", I = "[object Object]", y = "[object RegExp]", d = "[object Set]", v = "[object String]", l = "[object WeakMap]", g = "[object ArrayBuffer]", m = "[object DataView]", f = "[object Float32Array]", C = "[object Float64Array]", N = "[object Int8Array]", V = "[object Int16Array]", R = "[object Int32Array]", z = "[object Uint8Array]", D = "[object Uint8ClampedArray]", _ = "[object Uint16Array]", B = "[object Uint32Array]", q = {};
3878
- q[f] = q[C] = q[N] = q[V] = q[R] = q[z] = q[D] = q[_] = q[B] = !0, q[n] = q[a] = q[g] = q[o] = q[m] = q[s] = q[u] = q[p] = q[h] = q[b] = q[I] = q[y] = q[d] = q[v] = q[l] = !1;
3877
+ var e = $t(), t = mc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", I = "[object Object]", y = "[object RegExp]", d = "[object Set]", g = "[object String]", l = "[object WeakMap]", v = "[object ArrayBuffer]", m = "[object DataView]", f = "[object Float32Array]", C = "[object Float64Array]", N = "[object Int8Array]", V = "[object Int16Array]", R = "[object Int32Array]", q = "[object Uint8Array]", D = "[object Uint8ClampedArray]", _ = "[object Uint16Array]", B = "[object Uint32Array]", z = {};
3878
+ z[f] = z[C] = z[N] = z[V] = z[R] = z[q] = z[D] = z[_] = z[B] = !0, z[n] = z[a] = z[v] = z[o] = z[m] = z[s] = z[u] = z[p] = z[h] = z[b] = z[I] = z[y] = z[d] = z[g] = z[l] = !1;
3879
3879
  function A(j) {
3880
- return r(j) && t(j.length) && !!q[e(j)];
3880
+ return r(j) && t(j.length) && !!z[e(j)];
3881
3881
  }
3882
3882
  return pn = A, pn;
3883
3883
  }
@@ -3908,26 +3908,26 @@ function no() {
3908
3908
  }(wt, wt.exports)), wt.exports;
3909
3909
  }
3910
3910
  var wn, Ns;
3911
- function zv() {
3911
+ function qv() {
3912
3912
  if (Ns) return wn;
3913
3913
  Ns = 1;
3914
- var e = qv(), t = ro(), r = no(), n = r && r.isTypedArray, a = n ? t(n) : e;
3914
+ var e = zv(), t = ro(), r = no(), n = r && r.isTypedArray, a = n ? t(n) : e;
3915
3915
  return wn = a, wn;
3916
3916
  }
3917
3917
  var mn, Is;
3918
3918
  function vc() {
3919
3919
  if (Is) return mn;
3920
3920
  Is = 1;
3921
- var e = Tv(), t = Iv(), r = to(), n = wc(), a = jv(), o = zv(), s = Object.prototype, u = s.hasOwnProperty;
3921
+ var e = Tv(), t = Iv(), r = to(), n = wc(), a = jv(), o = qv(), s = Object.prototype, u = s.hasOwnProperty;
3922
3922
  function p(h, b) {
3923
- var I = r(h), y = !I && t(h), d = !I && !y && n(h), v = !I && !y && !d && o(h), l = I || y || d || v, g = l ? e(h.length, String) : [], m = g.length;
3923
+ var I = r(h), y = !I && t(h), d = !I && !y && n(h), g = !I && !y && !d && o(h), l = I || y || d || g, v = l ? e(h.length, String) : [], m = v.length;
3924
3924
  for (var f in h)
3925
3925
  (b || u.call(h, f)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
3926
3926
  (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3927
3927
  d && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3928
- v && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
3929
- a(f, m))) && g.push(f);
3930
- return g;
3928
+ g && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
3929
+ a(f, m))) && v.push(f);
3930
+ return v;
3931
3931
  }
3932
3932
  return mn = p, mn;
3933
3933
  }
@@ -3953,17 +3953,17 @@ function gc() {
3953
3953
  }
3954
3954
  return gn = e, gn;
3955
3955
  }
3956
- var yn, qs;
3956
+ var yn, zs;
3957
3957
  function Av() {
3958
- if (qs) return yn;
3959
- qs = 1;
3958
+ if (zs) return yn;
3959
+ zs = 1;
3960
3960
  var e = gc(), t = e(Object.keys, Object);
3961
3961
  return yn = t, yn;
3962
3962
  }
3963
- var kn, zs;
3963
+ var kn, qs;
3964
3964
  function Rv() {
3965
- if (zs) return kn;
3966
- zs = 1;
3965
+ if (qs) return kn;
3966
+ qs = 1;
3967
3967
  var e = ao(), t = Av(), r = Object.prototype, n = r.hasOwnProperty;
3968
3968
  function a(o) {
3969
3969
  if (!e(o))
@@ -4123,23 +4123,23 @@ function Lv() {
4123
4123
  }
4124
4124
  return jn = r, jn;
4125
4125
  }
4126
- var qn, Ws;
4126
+ var zn, Ws;
4127
4127
  function bc() {
4128
- if (Ws) return qn;
4128
+ if (Ws) return zn;
4129
4129
  Ws = 1;
4130
4130
  function e(t, r) {
4131
4131
  for (var n = -1, a = r.length, o = t.length; ++n < a; )
4132
4132
  t[o + n] = r[n];
4133
4133
  return t;
4134
4134
  }
4135
- return qn = e, qn;
4135
+ return zn = e, zn;
4136
4136
  }
4137
- var zn, Js;
4137
+ var qn, Js;
4138
4138
  function _c() {
4139
- if (Js) return zn;
4139
+ if (Js) return qn;
4140
4140
  Js = 1;
4141
4141
  var e = gc(), t = e(Object.getPrototypeOf, Object);
4142
- return zn = t, zn;
4142
+ return qn = t, qn;
4143
4143
  }
4144
4144
  var An, Qs;
4145
4145
  function xc() {
@@ -4225,18 +4225,18 @@ var Ln, ol;
4225
4225
  function io() {
4226
4226
  if (ol) return Ln;
4227
4227
  ol = 1;
4228
- var e = Wv(), t = eo(), r = Jv(), n = Qv(), a = Xv(), o = $t(), s = fc(), u = "[object Map]", p = "[object Object]", h = "[object Promise]", b = "[object Set]", I = "[object WeakMap]", y = "[object DataView]", d = s(e), v = s(t), l = s(r), g = s(n), m = s(a), f = o;
4228
+ var e = Wv(), t = eo(), r = Jv(), n = Qv(), a = Xv(), o = $t(), s = fc(), u = "[object Map]", p = "[object Object]", h = "[object Promise]", b = "[object Set]", I = "[object WeakMap]", y = "[object DataView]", d = s(e), g = s(t), l = s(r), v = s(n), m = s(a), f = o;
4229
4229
  return (e && f(new e(new ArrayBuffer(1))) != y || t && f(new t()) != u || r && f(r.resolve()) != h || n && f(new n()) != b || a && f(new a()) != I) && (f = function(C) {
4230
4230
  var N = o(C), V = N == p ? C.constructor : void 0, R = V ? s(V) : "";
4231
4231
  if (R)
4232
4232
  switch (R) {
4233
4233
  case d:
4234
4234
  return y;
4235
- case v:
4235
+ case g:
4236
4236
  return u;
4237
4237
  case l:
4238
4238
  return h;
4239
- case g:
4239
+ case v:
4240
4240
  return b;
4241
4241
  case m:
4242
4242
  return I;
@@ -4320,8 +4320,8 @@ var Yn, pl;
4320
4320
  function ag() {
4321
4321
  if (pl) return Yn;
4322
4322
  pl = 1;
4323
- var e = uo(), t = eg(), r = tg(), n = rg(), a = ng(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", p = "[object Number]", h = "[object RegExp]", b = "[object Set]", I = "[object String]", y = "[object Symbol]", d = "[object ArrayBuffer]", v = "[object DataView]", l = "[object Float32Array]", g = "[object Float64Array]", m = "[object Int8Array]", f = "[object Int16Array]", C = "[object Int32Array]", N = "[object Uint8Array]", V = "[object Uint8ClampedArray]", R = "[object Uint16Array]", z = "[object Uint32Array]";
4324
- function D(_, B, q) {
4323
+ var e = uo(), t = eg(), r = tg(), n = rg(), a = ng(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", p = "[object Number]", h = "[object RegExp]", b = "[object Set]", I = "[object String]", y = "[object Symbol]", d = "[object ArrayBuffer]", g = "[object DataView]", l = "[object Float32Array]", v = "[object Float64Array]", m = "[object Int8Array]", f = "[object Int16Array]", C = "[object Int32Array]", N = "[object Uint8Array]", V = "[object Uint8ClampedArray]", R = "[object Uint16Array]", q = "[object Uint32Array]";
4324
+ function D(_, B, z) {
4325
4325
  var A = _.constructor;
4326
4326
  switch (B) {
4327
4327
  case d:
@@ -4329,18 +4329,18 @@ function ag() {
4329
4329
  case o:
4330
4330
  case s:
4331
4331
  return new A(+_);
4332
- case v:
4333
- return t(_, q);
4334
- case l:
4335
4332
  case g:
4333
+ return t(_, z);
4334
+ case l:
4335
+ case v:
4336
4336
  case m:
4337
4337
  case f:
4338
4338
  case C:
4339
4339
  case N:
4340
4340
  case V:
4341
4341
  case R:
4342
- case z:
4343
- return a(_, q);
4342
+ case q:
4343
+ return a(_, z);
4344
4344
  case u:
4345
4345
  return new A();
4346
4346
  case p:
@@ -4423,10 +4423,10 @@ var oa, kl;
4423
4423
  function dg() {
4424
4424
  if (kl) return oa;
4425
4425
  kl = 1;
4426
- var e = $v(), t = Mv(), r = hc(), n = Ov(), a = Vv(), o = Uv(), s = Pv(), u = Lv(), p = Hv(), h = Kv(), b = Gv(), I = io(), y = Yv(), d = ag(), v = sg(), l = to(), g = wc(), m = ig(), f = Je(), C = cg(), N = oo(), V = so(), R = 1, z = 2, D = 4, _ = "[object Arguments]", B = "[object Array]", q = "[object Boolean]", A = "[object Date]", j = "[object Error]", U = "[object Function]", E = "[object GeneratorFunction]", ae = "[object Map]", L = "[object Number]", oe = "[object Object]", ye = "[object RegExp]", Ie = "[object Set]", Ce = "[object String]", ke = "[object Symbol]", De = "[object WeakMap]", Jt = "[object ArrayBuffer]", Qt = "[object DataView]", Xt = "[object Float32Array]", Yt = "[object Float64Array]", Qe = "[object Int8Array]", Zt = "[object Int16Array]", fe = "[object Int32Array]", er = "[object Uint8Array]", tr = "[object Uint8ClampedArray]", rr = "[object Uint16Array]", nr = "[object Uint32Array]", ne = {};
4427
- ne[_] = ne[B] = ne[Jt] = ne[Qt] = ne[q] = ne[A] = ne[Xt] = ne[Yt] = ne[Qe] = ne[Zt] = ne[fe] = ne[ae] = ne[L] = ne[oe] = ne[ye] = ne[Ie] = ne[Ce] = ne[ke] = ne[er] = ne[tr] = ne[rr] = ne[nr] = !0, ne[j] = ne[U] = ne[De] = !1;
4426
+ var e = $v(), t = Mv(), r = hc(), n = Ov(), a = Vv(), o = Uv(), s = Pv(), u = Lv(), p = Hv(), h = Kv(), b = Gv(), I = io(), y = Yv(), d = ag(), g = sg(), l = to(), v = wc(), m = ig(), f = Je(), C = cg(), N = oo(), V = so(), R = 1, q = 2, D = 4, _ = "[object Arguments]", B = "[object Array]", z = "[object Boolean]", A = "[object Date]", j = "[object Error]", U = "[object Function]", E = "[object GeneratorFunction]", ae = "[object Map]", L = "[object Number]", oe = "[object Object]", ye = "[object RegExp]", Ie = "[object Set]", Ce = "[object String]", ke = "[object Symbol]", De = "[object WeakMap]", Jt = "[object ArrayBuffer]", Qt = "[object DataView]", Xt = "[object Float32Array]", Yt = "[object Float64Array]", Qe = "[object Int8Array]", Zt = "[object Int16Array]", fe = "[object Int32Array]", er = "[object Uint8Array]", tr = "[object Uint8ClampedArray]", rr = "[object Uint16Array]", nr = "[object Uint32Array]", ne = {};
4427
+ ne[_] = ne[B] = ne[Jt] = ne[Qt] = ne[z] = ne[A] = ne[Xt] = ne[Yt] = ne[Qe] = ne[Zt] = ne[fe] = ne[ae] = ne[L] = ne[oe] = ne[ye] = ne[Ie] = ne[Ce] = ne[ke] = ne[er] = ne[tr] = ne[rr] = ne[nr] = !0, ne[j] = ne[U] = ne[De] = !1;
4428
4428
  function ot(te, Re, Oe, st, Be, _e) {
4429
- var ce, Xe = Re & R, Fe = Re & z, ar = Re & D;
4429
+ var ce, Xe = Re & R, Fe = Re & q, ar = Re & D;
4430
4430
  if (Oe && (ce = Be ? Oe(te, st, Be, _e) : Oe(te)), ce !== void 0)
4431
4431
  return ce;
4432
4432
  if (!f(te))
@@ -4437,10 +4437,10 @@ function dg() {
4437
4437
  return s(te, ce);
4438
4438
  } else {
4439
4439
  var $e = I(te), Mt = $e == U || $e == E;
4440
- if (g(te))
4440
+ if (v(te))
4441
4441
  return o(te, Xe);
4442
4442
  if ($e == oe || $e == _ || Mt && !Be) {
4443
- if (ce = Fe || Mt ? {} : v(te), !Xe)
4443
+ if (ce = Fe || Mt ? {} : g(te), !Xe)
4444
4444
  return Fe ? p(te, a(ce, te)) : u(te, n(ce, te));
4445
4445
  } else {
4446
4446
  if (!ne[$e])
@@ -4486,7 +4486,7 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4486
4486
  NTimePicker: Lc,
4487
4487
  NSwitch: Ec,
4488
4488
  NColorPicker: Pc,
4489
- NCheckbox: qa,
4489
+ NCheckbox: za,
4490
4490
  NCheckboxGroup: ja,
4491
4491
  NCascader: Fl,
4492
4492
  NTooltip: Bl,
@@ -4523,7 +4523,7 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4523
4523
  isMobile: bt(() => de.isMobile),
4524
4524
  showDropdown: r,
4525
4525
  dropdownOptions: n,
4526
- updateValue: async (l, g, m) => {
4526
+ updateValue: async (l, v, m) => {
4527
4527
  if (l.form.updateValue) {
4528
4528
  const f = Q(e.formValue);
4529
4529
  if (typeof l.form.updateValue == "string")
@@ -4538,7 +4538,7 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4538
4538
  );
4539
4539
  try {
4540
4540
  const V = await N(
4541
- g,
4541
+ v,
4542
4542
  f,
4543
4543
  t,
4544
4544
  m,
@@ -4554,7 +4554,7 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4554
4554
  throw new Error(C);
4555
4555
  }
4556
4556
  else
4557
- l.form.updateValue(g, f, m, pe);
4557
+ l.form.updateValue(v, f, m, pe);
4558
4558
  }
4559
4559
  },
4560
4560
  selectFallback: (l) => l ? {
@@ -4598,9 +4598,9 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4598
4598
  }
4599
4599
  },
4600
4600
  checkClassReadonly: () => {
4601
- var g, m;
4601
+ var v, m;
4602
4602
  let l = "";
4603
- return e.item.input === "select" && e.item.params.tag && e.formValue[e.item.key] && e.formValue[e.item.key].indexOf("-#create#-") > -1 && (l = "uz-input-create"), e.status === 0 && ((g = e.item.form.create) != null && g.readonly) || e.status === 1 && ((m = e.item.form.edit) != null && m.readonly) || e.status === 2 ? l + "uz-input-readonly" : l;
4603
+ return e.item.input === "select" && e.item.params.tag && e.formValue[e.item.key] && e.formValue[e.item.key].indexOf("-#create#-") > -1 && (l = "uz-input-create"), e.status === 0 && ((v = e.item.form.create) != null && v.readonly) || e.status === 1 && ((m = e.item.form.edit) != null && m.readonly) || e.status === 2 ? l + "uz-input-readonly" : l;
4604
4604
  },
4605
4605
  checkReadonlyShow: () => {
4606
4606
  var l;
@@ -4616,17 +4616,17 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4616
4616
  }
4617
4617
  },
4618
4618
  handleFocus: (l) => {
4619
- const g = Q(e.item.params.options);
4619
+ const v = Q(e.item.params.options);
4620
4620
  if (e.formValue && e.formValue[l]) {
4621
4621
  const f = e.formValue[l].toLocaleLowerCase();
4622
- g.forEach((C) => {
4622
+ v.forEach((C) => {
4623
4623
  C.label.toLocaleLowerCase().indexOf(f) > -1 ? C.show = !0 : C.show = !1;
4624
4624
  });
4625
4625
  } else
4626
- g.forEach((f) => {
4626
+ v.forEach((f) => {
4627
4627
  f.show = !0;
4628
4628
  });
4629
- g.find((f) => f.show === !0) ? r.value = !0 : r.value = !1, n.value = g;
4629
+ v.find((f) => f.show === !0) ? r.value = !0 : r.value = !1, n.value = v;
4630
4630
  },
4631
4631
  renderDropdown: (l) => ee(
4632
4632
  "div",
@@ -4642,7 +4642,7 @@ const Q = /* @__PURE__ */ Ya(pg), hg = le({
4642
4642
  }
4643
4643
  }), wg = { class: "flex flex-wrap gap-2" };
4644
4644
  function mg(e, t, r, n, a, o) {
4645
- const s = S("NInput"), u = S("NDropdown"), p = S("NInputNumber"), h = S("NDatePicker"), b = S("NSelect"), I = S("NCascader"), y = S("NColorPicker"), d = S("NCheckbox"), v = S("NCheckboxGroup"), l = S("NTimePicker"), g = S("NSwitch"), m = S("UzFormItemUpload");
4645
+ const s = S("NInput"), u = S("NDropdown"), p = S("NInputNumber"), h = S("NDatePicker"), b = S("NSelect"), I = S("NCascader"), y = S("NColorPicker"), d = S("NCheckbox"), g = S("NCheckboxGroup"), l = S("NTimePicker"), v = S("NSwitch"), m = S("UzFormItemUpload");
4646
4646
  return c(), w(se, null, [
4647
4647
  e.item.input === "input" ? (c(), O(s, {
4648
4648
  key: 0,
@@ -4664,7 +4664,7 @@ function mg(e, t, r, n, a, o) {
4664
4664
  rows: e.item.params.rows,
4665
4665
  "show-count": !!e.item.params.maxlength,
4666
4666
  class: ue(e.checkClassReadonly())
4667
- }, ze({ _: 2 }, [
4667
+ }, qe({ _: 2 }, [
4668
4668
  e.item.params.prefix ? {
4669
4669
  name: "prefix",
4670
4670
  fn: k(() => [
@@ -4718,7 +4718,7 @@ function mg(e, t, r, n, a, o) {
4718
4718
  rows: e.item.params.rows,
4719
4719
  "show-count": !!e.item.params.maxlength,
4720
4720
  class: ue(e.checkClassReadonly())
4721
- }, ze({ _: 2 }, [
4721
+ }, qe({ _: 2 }, [
4722
4722
  e.item.params.prefix ? {
4723
4723
  name: "prefix",
4724
4724
  fn: k(() => [
@@ -4755,7 +4755,7 @@ function mg(e, t, r, n, a, o) {
4755
4755
  showButton: e.item.params.showButton,
4756
4756
  precision: e.item.params.precision,
4757
4757
  class: ue(e.checkClassReadonly())
4758
- }, ze({ _: 2 }, [
4758
+ }, qe({ _: 2 }, [
4759
4759
  e.item.params.prefix ? {
4760
4760
  name: "prefix",
4761
4761
  fn: k(() => [
@@ -4849,12 +4849,12 @@ function mg(e, t, r, n, a, o) {
4849
4849
  t[13] || (t[13] = (f) => e.formValue[e.item.key] = f),
4850
4850
  t[14] || (t[14] = (f, C, N) => {
4851
4851
  const V = e.item;
4852
- let R = f, z = f;
4852
+ let R = f, q = f;
4853
4853
  if (V.params.multiple) {
4854
4854
  let D = f.filter((_) => _);
4855
- D.length === 0 ? (R = [], z = []) : (R = D, z = D);
4855
+ D.length === 0 ? (R = [], q = []) : (R = D, q = D);
4856
4856
  }
4857
- e.formValue[e.item.key] = R, N && (e.formValue[`${e.item.key}Str`] = N.map((D) => D.label).join("/")), e.updateValue(e.item, z);
4857
+ e.formValue[e.item.key] = R, N && (e.formValue[`${e.item.key}Str`] = N.map((D) => D.label).join("/")), e.updateValue(e.item, q);
4858
4858
  })
4859
4859
  ],
4860
4860
  placeholder: e.showPlaceholder(e.item),
@@ -4883,7 +4883,7 @@ function mg(e, t, r, n, a, o) {
4883
4883
  "rgba(208, 48, 80, 1)"
4884
4884
  ],
4885
4885
  class: ue(e.checkClassReadonly())
4886
- }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), O(v, {
4886
+ }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), O(g, {
4887
4887
  key: 9,
4888
4888
  value: e.formValue[e.item.key],
4889
4889
  "onUpdate:value": t[16] || (t[16] = (f) => e.formValue[e.item.key] = f),
@@ -4915,7 +4915,7 @@ function mg(e, t, r, n, a, o) {
4915
4915
  show: e.checkReadonlyShow(),
4916
4916
  clearable: e.checkClearable(),
4917
4917
  class: ue(e.checkClassReadonly())
4918
- }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), O(g, {
4918
+ }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), O(v, {
4919
4919
  key: 11,
4920
4920
  "checked-value": 1,
4921
4921
  "unchecked-value": 0,
@@ -4928,7 +4928,7 @@ function mg(e, t, r, n, a, o) {
4928
4928
  ],
4929
4929
  disabled: e.checkDisabled(),
4930
4930
  size: "large"
4931
- }, ze({ _: 2 }, [
4931
+ }, qe({ _: 2 }, [
4932
4932
  e.item.params.checked ? {
4933
4933
  name: "checked",
4934
4934
  fn: k(() => [
@@ -4957,7 +4957,7 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
4957
4957
  components: {
4958
4958
  NForm: Ra,
4959
4959
  NFormItem: Aa,
4960
- NDivider: za,
4960
+ NDivider: qa,
4961
4961
  NButton: ge,
4962
4962
  NIcon: ve,
4963
4963
  UzFormItem: pt,
@@ -5029,7 +5029,7 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5029
5029
  case 2:
5030
5030
  return D.form.show;
5031
5031
  }
5032
- }, v = (D, _) => {
5032
+ }, g = (D, _) => {
5033
5033
  switch (D) {
5034
5034
  case "datetime":
5035
5035
  case "datetimerange":
@@ -5050,48 +5050,48 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5050
5050
  o.value[_.key] = Number(_.form.defaultValue);
5051
5051
  else if (_.input === "select" && ((B = _.params.options) == null ? void 0 : B.length) > 0) {
5052
5052
  _.form.defaultValue === "userId" ? o.value[_.key] = r.userId : o.value[_.key] = _.form.defaultValue;
5053
- const q = _.params.options.find(
5053
+ const z = _.params.options.find(
5054
5054
  (A) => A.value === o.value[_.key]
5055
5055
  );
5056
- q && (o.value[`${_.key}Str`] = q.label);
5056
+ z && (o.value[`${_.key}Str`] = z.label);
5057
5057
  } else if (_.input === "date")
5058
5058
  if (_.params.type.indexOf("range") > -1)
5059
5059
  switch (_.form.defaultValue) {
5060
5060
  case "now":
5061
- o.value[_.key] = [Date.now(), Date.now()], o.value[`${_.key}StartStr`] = v(
5061
+ o.value[_.key] = [Date.now(), Date.now()], o.value[`${_.key}StartStr`] = g(
5062
5062
  _.params.type,
5063
5063
  Date.now()
5064
- ), o.value[`${_.key}EndStr`] = v(
5064
+ ), o.value[`${_.key}EndStr`] = g(
5065
5065
  _.params.type,
5066
5066
  Date.now()
5067
5067
  );
5068
5068
  break;
5069
5069
  case "start-now":
5070
- const q = Pe().startOf("day").valueOf();
5071
- o.value[_.key] = [q, q], o.value[`${_.key}StartStr`] = v(
5070
+ const z = Pe().startOf("day").valueOf();
5071
+ o.value[_.key] = [z, z], o.value[`${_.key}StartStr`] = g(
5072
5072
  _.params.type,
5073
- q
5074
- ), o.value[`${_.key}EndStr`] = v(
5073
+ z
5074
+ ), o.value[`${_.key}EndStr`] = g(
5075
5075
  _.params.type,
5076
- q
5076
+ z
5077
5077
  );
5078
5078
  break;
5079
5079
  case "end-now":
5080
5080
  const A = Pe().endOf("day").valueOf();
5081
- o.value[_.key] = [A, A], o.value[`${_.key}StartStr`] = v(
5081
+ o.value[_.key] = [A, A], o.value[`${_.key}StartStr`] = g(
5082
5082
  _.params.type,
5083
5083
  A
5084
- ), o.value[`${_.key}EndStr`] = v(
5084
+ ), o.value[`${_.key}EndStr`] = g(
5085
5085
  _.params.type,
5086
5086
  A
5087
5087
  );
5088
5088
  break;
5089
5089
  default:
5090
5090
  const j = Number(_.form.defaultValue);
5091
- o.value[_.key] = Number.isNaN(j) ? null : [j, j], o.value[`${_.key}StartStr`] = v(
5091
+ o.value[_.key] = Number.isNaN(j) ? null : [j, j], o.value[`${_.key}StartStr`] = g(
5092
5092
  _.params.type,
5093
5093
  j
5094
- ), o.value[`${_.key}EndStr`] = v(
5094
+ ), o.value[`${_.key}EndStr`] = g(
5095
5095
  _.params.type,
5096
5096
  j
5097
5097
  );
@@ -5100,28 +5100,28 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5100
5100
  else
5101
5101
  switch (_.form.defaultValue) {
5102
5102
  case "now":
5103
- o.value[_.key] = Date.now(), o.value[`${_.key}Str`] = v(
5103
+ o.value[_.key] = Date.now(), o.value[`${_.key}Str`] = g(
5104
5104
  _.params.type,
5105
5105
  Date.now()
5106
5106
  );
5107
5107
  break;
5108
5108
  case "start-now":
5109
- const q = Pe().startOf("day").valueOf();
5110
- o.value[_.key] = Pe().startOf("day").valueOf(), o.value[`${_.key}StartStr`] = v(
5109
+ const z = Pe().startOf("day").valueOf();
5110
+ o.value[_.key] = Pe().startOf("day").valueOf(), o.value[`${_.key}StartStr`] = g(
5111
5111
  _.params.type,
5112
- q
5112
+ z
5113
5113
  );
5114
5114
  break;
5115
5115
  case "end-now":
5116
5116
  const A = Pe().endOf("day").valueOf();
5117
- o.value[_.key] = Pe().endOf("day").valueOf(), o.value[`${_.key}Str`] = v(
5117
+ o.value[_.key] = Pe().endOf("day").valueOf(), o.value[`${_.key}Str`] = g(
5118
5118
  _.params.type,
5119
5119
  A
5120
5120
  );
5121
5121
  break;
5122
5122
  default:
5123
5123
  const j = Number(_.form.defaultValue);
5124
- o.value[_.key] = Number.isNaN(j) ? null : j, o.value[`${_.key}Str`] = v(
5124
+ o.value[_.key] = Number.isNaN(j) ? null : j, o.value[`${_.key}Str`] = g(
5125
5125
  _.params.type,
5126
5126
  j
5127
5127
  );
@@ -5141,7 +5141,7 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5141
5141
  } catch {
5142
5142
  o.value[_.key] = [];
5143
5143
  }
5144
- }), D), g = (D) => {
5144
+ }), D), v = (D) => {
5145
5145
  D || (D = Q(e.items)), D && Array.isArray(D) && D.length > 0 ? s.value = l(D) : s.value = [];
5146
5146
  }, m = () => new Promise(async (D) => {
5147
5147
  let _ = 0;
@@ -5152,11 +5152,11 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5152
5152
  D(_);
5153
5153
  }), f = () => new Promise((D, _) => {
5154
5154
  var B;
5155
- u.value.forEach((q) => {
5156
- q.validate().catch(() => null);
5155
+ u.value.forEach((z) => {
5156
+ z.validate().catch(() => null);
5157
5157
  }), (B = a.value) == null || B.validate(
5158
- async (q) => {
5159
- if (q)
5158
+ async (z) => {
5159
+ if (z)
5160
5160
  _();
5161
5161
  else if (await m() === 0) {
5162
5162
  const j = Q(o.value);
@@ -5198,13 +5198,13 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5198
5198
  h.value = _, I.value = D.source, y.value = D.sourceFn, b.value = !0;
5199
5199
  }, R = (D) => {
5200
5200
  h.value && (s.value[h.value].params.options = D);
5201
- }, z = () => o.value;
5201
+ }, q = () => o.value;
5202
5202
  return Ke(() => {
5203
- e.status !== 0 && (o.value = e.value, g());
5204
- }), t({ validate: f, restoreValidation: C, getValues: z }), ie(
5203
+ e.status !== 0 && (o.value = e.value, v());
5204
+ }), t({ validate: f, restoreValidation: C, getValues: q }), ie(
5205
5205
  () => e.items,
5206
5206
  (D) => {
5207
- g(D);
5207
+ v(D);
5208
5208
  },
5209
5209
  {
5210
5210
  deep: !0
@@ -5212,7 +5212,7 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5212
5212
  ), ie(
5213
5213
  () => e.value,
5214
5214
  (D) => {
5215
- o.value = D, g();
5215
+ o.value = D, v();
5216
5216
  },
5217
5217
  {
5218
5218
  deep: !0
@@ -5234,7 +5234,7 @@ const pt = /* @__PURE__ */ x(hg, [["render", mg]]), vg = le({
5234
5234
  }
5235
5235
  }), gg = ["onClick"];
5236
5236
  function yg(e, t, r, n, a, o) {
5237
- const s = S("Plus"), u = S("NIcon"), p = S("UzTableChild"), h = S("UzTableQuestChild"), b = S("NDivider"), I = S("UzFormItem"), y = S("NFormItem"), d = S("NForm"), v = S("UzTableDrawer"), l = zl("media");
5237
+ const s = S("Plus"), u = S("NIcon"), p = S("UzTableChild"), h = S("UzTableQuestChild"), b = S("NDivider"), I = S("UzFormItem"), y = S("NFormItem"), d = S("NForm"), g = S("UzTableDrawer"), l = ql("media");
5238
5238
  return c(), w(se, null, [
5239
5239
  M(d, {
5240
5240
  ref: "formRef",
@@ -5249,23 +5249,23 @@ function yg(e, t, r, n, a, o) {
5249
5249
  rt((c(), w("div", {
5250
5250
  class: ue(e.isMobile ? "" : "uz-form-grid")
5251
5251
  }, [
5252
- (c(!0), w(se, null, be(e.formItems, (g, m) => {
5252
+ (c(!0), w(se, null, be(e.formItems, (v, m) => {
5253
5253
  var f;
5254
5254
  return c(), w(se, { key: m }, [
5255
- e.itemShow(g) ? (c(), O(y, {
5255
+ e.itemShow(v) ? (c(), O(y, {
5256
5256
  key: 0,
5257
- path: g.key,
5258
- rule: g.input === "subTable" ? void 0 : (f = g.form.rule) != null && f.required ? g.form.rule : void 0,
5259
- style: Se(`grid-column: span ${g.form.span || 6} / span ${g.form.span || 6};`),
5260
- "show-label": g.input !== "divider" && g.input !== "subTable",
5261
- "show-feedback": e.showFeedback && g.input !== "divider"
5257
+ path: v.key,
5258
+ rule: v.input === "subTable" ? void 0 : (f = v.form.rule) != null && f.required ? v.form.rule : void 0,
5259
+ style: Se(`grid-column: span ${v.form.span || 6} / span ${v.form.span || 6};`),
5260
+ "show-label": v.input !== "divider" && v.input !== "subTable",
5261
+ "show-feedback": e.showFeedback && v.input !== "divider"
5262
5262
  }, {
5263
5263
  label: k(() => [
5264
- i("div", null, H(typeof g.label == "function" ? g.label() : g.label), 1),
5265
- e.status !== 2 && g.source && g.form.createButton ? (c(), w("a", {
5264
+ i("div", null, H(typeof v.label == "function" ? v.label() : v.label), 1),
5265
+ e.status !== 2 && v.source && v.form.createButton ? (c(), w("a", {
5266
5266
  key: 0,
5267
5267
  class: "flex items-center gap-1 form-item-add",
5268
- onClick: (C) => e.sourceAdd(g, m)
5268
+ onClick: (C) => e.sourceAdd(v, m)
5269
5269
  }, [
5270
5270
  M(u, null, {
5271
5271
  default: k(() => [
@@ -5277,30 +5277,30 @@ function yg(e, t, r, n, a, o) {
5277
5277
  ], 8, gg)) : X("", !0)
5278
5278
  ]),
5279
5279
  default: k(() => [
5280
- g.input === "subTable" && !g.params.quest ? (c(), O(p, {
5280
+ v.input === "subTable" && !v.params.quest ? (c(), O(p, {
5281
5281
  key: 0,
5282
5282
  ref_for: !0,
5283
5283
  ref: "childRef",
5284
- value: e.formValue[`sub_${g.key}`],
5285
- "onUpdate:value": (C) => e.formValue[`sub_${g.key}`] = C,
5284
+ value: e.formValue[`sub_${v.key}`],
5285
+ "onUpdate:value": (C) => e.formValue[`sub_${v.key}`] = C,
5286
5286
  formValue: e.formValue,
5287
- item: g,
5287
+ item: v,
5288
5288
  status: e.status
5289
- }, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : g.input === "subTable" && g.params.quest ? (c(), O(h, {
5289
+ }, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : v.input === "subTable" && v.params.quest ? (c(), O(h, {
5290
5290
  key: 1,
5291
5291
  formValue: e.formValue,
5292
- item: g
5293
- }, null, 8, ["formValue", "item"])) : g.input === "divider" ? (c(), O(b, {
5292
+ item: v
5293
+ }, null, 8, ["formValue", "item"])) : v.input === "divider" ? (c(), O(b, {
5294
5294
  key: 2,
5295
- "title-placement": g.params.placement
5295
+ "title-placement": v.params.placement
5296
5296
  }, {
5297
5297
  default: k(() => [
5298
- G(H(typeof g.label == "function" ? g.label() : g.label), 1)
5298
+ G(H(typeof v.label == "function" ? v.label() : v.label), 1)
5299
5299
  ]),
5300
5300
  _: 2
5301
5301
  }, 1032, ["title-placement"])) : (c(), O(I, {
5302
5302
  key: 3,
5303
- item: g,
5303
+ item: v,
5304
5304
  formValue: e.formValue,
5305
5305
  status: e.status
5306
5306
  }, null, 8, ["item", "formValue", "status"]))
@@ -5315,9 +5315,9 @@ function yg(e, t, r, n, a, o) {
5315
5315
  ]),
5316
5316
  _: 1
5317
5317
  }, 8, ["model", "inline", "labelWidth", "labelAlign", "labelPlacement"]),
5318
- M(v, {
5318
+ M(g, {
5319
5319
  show: e.drawer,
5320
- "onUpdate:show": t[0] || (t[0] = (g) => e.drawer = g),
5320
+ "onUpdate:show": t[0] || (t[0] = (v) => e.drawer = v),
5321
5321
  link: e.link,
5322
5322
  linkFn: e.linkFn,
5323
5323
  onOnSubmit: e.refreshOption
@@ -5331,7 +5331,7 @@ const kg = /* @__PURE__ */ x(vg, [["render", yg]]), bg = le({
5331
5331
  NFormItem: Aa,
5332
5332
  NButton: ge,
5333
5333
  NIcon: ve,
5334
- NDivider: za,
5334
+ NDivider: qa,
5335
5335
  UzFormItem: pt,
5336
5336
  Trash: _t,
5337
5337
  Plus: dt,
@@ -5376,40 +5376,40 @@ const kg = /* @__PURE__ */ x(vg, [["render", yg]]), bg = le({
5376
5376
  },
5377
5377
  emits: ["update:value", "on-select", "on-change"],
5378
5378
  setup(e, { expose: t, emit: r }) {
5379
- const n = Le("userStore"), a = T(), o = T({}), s = T([]), u = T([]), p = T(), h = T(!1), b = T(""), I = T(""), y = T([-1, -1]), d = (R, z, D) => {
5380
- y.value = [z, D ?? -1], r("on-select", R);
5381
- }, v = (R) => {
5379
+ const n = Le("userStore"), a = T(), o = T({}), s = T([]), u = T([]), p = T(), h = T(!1), b = T(""), I = T(""), y = T([-1, -1]), d = (R, q, D) => {
5380
+ y.value = [q, D ?? -1], r("on-select", R);
5381
+ }, g = (R) => {
5382
5382
  R && (y.value[1] === -1 ? s.value.splice(y.value[0], 1, R) : s.value[y.value[0]].params.children.splice(y.value[1], 1, R), m()), f();
5383
- }, l = (R) => (R.forEach((z) => {
5383
+ }, l = (R) => (R.forEach((q) => {
5384
5384
  var D;
5385
- if (z.form.defaultValue && !o.value[z.key])
5386
- if (z.input === "number")
5387
- o.value[z.key] = Number(z.form.defaultValue);
5388
- else if (z.input === "select" && ((D = z.params.options) == null ? void 0 : D.length) > 0) {
5389
- z.form.defaultValue === "userId" ? o.value[z.key] = n.userId : o.value[z.key] = z.form.defaultValue;
5390
- const _ = z.params.options.find(
5391
- (B) => B.value === o.value[z.key]
5385
+ if (q.form.defaultValue && !o.value[q.key])
5386
+ if (q.input === "number")
5387
+ o.value[q.key] = Number(q.form.defaultValue);
5388
+ else if (q.input === "select" && ((D = q.params.options) == null ? void 0 : D.length) > 0) {
5389
+ q.form.defaultValue === "userId" ? o.value[q.key] = n.userId : o.value[q.key] = q.form.defaultValue;
5390
+ const _ = q.params.options.find(
5391
+ (B) => B.value === o.value[q.key]
5392
5392
  );
5393
- _ && (o.value[`${z.key}Str`] = _.label);
5394
- } else if (z.input === "date")
5395
- switch (z.form.defaultValue) {
5393
+ _ && (o.value[`${q.key}Str`] = _.label);
5394
+ } else if (q.input === "date")
5395
+ switch (q.form.defaultValue) {
5396
5396
  case "now":
5397
- o.value[z.key] = Date.now();
5397
+ o.value[q.key] = Date.now();
5398
5398
  break;
5399
5399
  case "start-now":
5400
- o.value[z.key] = Pe().startOf("day").valueOf();
5400
+ o.value[q.key] = Pe().startOf("day").valueOf();
5401
5401
  break;
5402
5402
  case "end-now":
5403
- o.value[z.key] = Pe().endOf("day").valueOf();
5403
+ o.value[q.key] = Pe().endOf("day").valueOf();
5404
5404
  break;
5405
5405
  default:
5406
- const _ = Number(z.form.defaultValue);
5407
- o.value[z.key] = Number.isNaN(_) ? null : _;
5406
+ const _ = Number(q.form.defaultValue);
5407
+ o.value[q.key] = Number.isNaN(_) ? null : _;
5408
5408
  break;
5409
5409
  }
5410
5410
  else
5411
- o.value[z.key] = z.form.defaultValue;
5412
- }), R), g = () => {
5411
+ o.value[q.key] = q.form.defaultValue;
5412
+ }), R), v = () => {
5413
5413
  if (e.items && Array.isArray(e.items)) {
5414
5414
  const R = Q(e.items);
5415
5415
  s.value = l(R);
@@ -5420,17 +5420,17 @@ const kg = /* @__PURE__ */ x(vg, [["render", yg]]), bg = le({
5420
5420
  y.value = [-1, -1], r("on-select", void 0);
5421
5421
  }, C = () => {
5422
5422
  y.value[1] === -1 ? s.value.splice(y.value[0], 1) : s.value[y.value[0]].params.children.splice(y.value[1], 1), m(), f();
5423
- }, N = (R, z) => {
5424
- p.value = z, b.value = R.source, I.value = R.sourceFn, h.value = !0;
5423
+ }, N = (R, q) => {
5424
+ p.value = q, b.value = R.source, I.value = R.sourceFn, h.value = !0;
5425
5425
  }, V = (R) => {
5426
5426
  p.value && (s.value[p.value].params.options = R);
5427
5427
  };
5428
5428
  return Ke(() => {
5429
- o.value = e.value, g();
5430
- }), t({ changeItem: v }), ie(
5429
+ o.value = e.value, v();
5430
+ }), t({ changeItem: g }), ie(
5431
5431
  () => e.items,
5432
5432
  () => {
5433
- g();
5433
+ v();
5434
5434
  },
5435
5435
  {
5436
5436
  deep: !0
@@ -5462,7 +5462,7 @@ const kg = /* @__PURE__ */ x(vg, [["render", yg]]), bg = le({
5462
5462
  }
5463
5463
  }), _g = ["onClick"];
5464
5464
  function xg(e, t, r, n, a, o) {
5465
- const s = S("Plus"), u = S("NIcon"), p = S("Trash"), h = S("NButton"), b = S("UzTableChild"), I = S("UzFormItem"), y = S("NFormItem"), d = S("Draggable", !0), v = S("NDivider"), l = S("NForm"), g = S("UzTableDrawer");
5465
+ const s = S("Plus"), u = S("NIcon"), p = S("Trash"), h = S("NButton"), b = S("UzTableChild"), I = S("UzFormItem"), y = S("NFormItem"), d = S("Draggable", !0), g = S("NDivider"), l = S("NForm"), v = S("UzTableDrawer");
5466
5466
  return c(), w(se, null, [
5467
5467
  M(l, {
5468
5468
  ref: "formRef",
@@ -5569,7 +5569,7 @@ function xg(e, t, r, n, a, o) {
5569
5569
  "uz-form-grid-item uz-form-mode",
5570
5570
  e.formItemIndex[0] === f && e.formItemIndex[1] === V ? "select" : ""
5571
5571
  ]),
5572
- onClick: Nt((z) => e.onModeClick(N, f, V), ["stop"]),
5572
+ onClick: Nt((q) => e.onModeClick(N, f, V), ["stop"]),
5573
5573
  key: V,
5574
5574
  style: Se(`grid-column: span ${N.form.span || 6} / span ${N.form.span || 6};`),
5575
5575
  "show-label": N.input !== "divider" && N.input !== "subTable",
@@ -5604,7 +5604,7 @@ function xg(e, t, r, n, a, o) {
5604
5604
  ];
5605
5605
  }),
5606
5606
  _: 2
5607
- }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(), O(v, {
5607
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(), O(g, {
5608
5608
  key: 3,
5609
5609
  "title-placement": m.params.placement
5610
5610
  }, {
@@ -5628,7 +5628,7 @@ function xg(e, t, r, n, a, o) {
5628
5628
  ]),
5629
5629
  _: 1
5630
5630
  }, 8, ["model", "inline", "labelWidth", "labelAlign", "labelPlacement", "onClick"]),
5631
- M(g, {
5631
+ M(v, {
5632
5632
  show: e.drawer,
5633
5633
  "onUpdate:show": t[1] || (t[1] = (m) => e.drawer = m),
5634
5634
  link: e.link,
@@ -5673,7 +5673,7 @@ const Cg = /* @__PURE__ */ x(bg, [["render", xg]]), $g = le({
5673
5673
  },
5674
5674
  emits: ["update:value"],
5675
5675
  setup(e, { emit: t }) {
5676
- const r = qt(), n = T([]), a = () => {
5676
+ const r = zt(), n = T([]), a = () => {
5677
5677
  t(
5678
5678
  "update:value",
5679
5679
  nt.stringify(n.value.map((b) => b.url))
@@ -5684,15 +5684,15 @@ const Cg = /* @__PURE__ */ x(bg, [["render", xg]]), $g = le({
5684
5684
  r.error({ content: "请上传小于10MB的文件", duration: 3e3 }), y();
5685
5685
  else {
5686
5686
  const d = new FormData();
5687
- d.append("file", b.file.file), ac("file/cos/upload", d).then((v) => {
5687
+ d.append("file", b.file.file), ac("file/cos/upload", d).then((g) => {
5688
5688
  n.value.push({
5689
5689
  id: b.file.id,
5690
5690
  name: b.file.name,
5691
5691
  status: "finished",
5692
- url: v
5692
+ url: g
5693
5693
  }), r.success({ content: "上传成功", duration: 3e3 }), a(), I();
5694
- }).catch((v) => {
5695
- throw y(), r.error({ content: "上传失败", duration: 3e3 }), new Error(v);
5694
+ }).catch((g) => {
5695
+ throw y(), r.error({ content: "上传失败", duration: 3e3 }), new Error(g);
5696
5696
  });
5697
5697
  }
5698
5698
  }), s = (b) => {
@@ -5712,7 +5712,7 @@ const Cg = /* @__PURE__ */ x(bg, [["render", xg]]), $g = le({
5712
5712
  try {
5713
5713
  b = nt.parse(b), n.value = b.map(
5714
5714
  (I, y) => {
5715
- const d = decodeURIComponent(I), v = d.lastIndexOf("/"), l = d.substring(v + 1);
5715
+ const d = decodeURIComponent(I), g = d.lastIndexOf("/"), l = d.substring(g + 1);
5716
5716
  return {
5717
5717
  id: String(y + 1),
5718
5718
  name: l,
@@ -5744,9 +5744,9 @@ const Cg = /* @__PURE__ */ x(bg, [["render", xg]]), $g = le({
5744
5744
  openFile: h
5745
5745
  };
5746
5746
  }
5747
- }), Mg = { class: "flex flex-wrap gap-2 items-center w-full" }, Sg = { class: "uz-form-upload-item-inner" }, Tg = ["title"], Ng = { key: 0 };
5747
+ }), Mg = { class: "uz-form-upload flex flex-wrap gap-2 items-center" }, Sg = { class: "uz-form-upload-item-inner" }, Tg = ["title"], Ng = { key: 0 };
5748
5748
  function Ig(e, t, r, n, a, o) {
5749
- const s = S("CloudUpload"), u = S("NIcon"), p = S("NUploadDragger"), h = S("NUpload"), b = S("PhotoOff"), I = S("NImage"), y = S("FileText"), d = S("Trash"), v = S("NButton"), l = S("NPopconfirm"), g = S("CloudDownload");
5749
+ const s = S("CloudUpload"), u = S("NIcon"), p = S("NUploadDragger"), h = S("NUpload"), b = S("PhotoOff"), I = S("NImage"), y = S("FileText"), d = S("Trash"), g = S("NButton"), l = S("NPopconfirm"), v = S("CloudDownload");
5750
5750
  return c(), w("div", Mg, [
5751
5751
  e.status !== 2 ? (c(), O(h, {
5752
5752
  key: 0,
@@ -5817,7 +5817,7 @@ function Ig(e, t, r, n, a, o) {
5817
5817
  onPositiveClick: (C) => e.doDelete(f)
5818
5818
  }, {
5819
5819
  trigger: k(() => [
5820
- M(v, {
5820
+ M(g, {
5821
5821
  size: "small",
5822
5822
  tertiary: ""
5823
5823
  }, {
@@ -5838,7 +5838,7 @@ function Ig(e, t, r, n, a, o) {
5838
5838
  _: 2,
5839
5839
  __: [0]
5840
5840
  }, 1032, ["onPositiveClick"]),
5841
- M(v, {
5841
+ M(g, {
5842
5842
  tag: "a",
5843
5843
  href: m.url,
5844
5844
  download: "",
@@ -5848,7 +5848,7 @@ function Ig(e, t, r, n, a, o) {
5848
5848
  icon: k(() => [
5849
5849
  M(u, { size: "14" }, {
5850
5850
  default: k(() => [
5851
- M(g)
5851
+ M(v)
5852
5852
  ]),
5853
5853
  _: 1
5854
5854
  })
@@ -5860,7 +5860,7 @@ function Ig(e, t, r, n, a, o) {
5860
5860
  ]))), 128))
5861
5861
  ]);
5862
5862
  }
5863
- const Dg = /* @__PURE__ */ x($g, [["render", Ig], ["__scopeId", "data-v-25699389"]]), jg = le({
5863
+ const Dg = /* @__PURE__ */ x($g, [["render", Ig], ["__scopeId", "data-v-1aea1a60"]]), jg = le({
5864
5864
  name: "UzFormItemImage",
5865
5865
  components: { NImageGroup: Jc, NImage: Ul, NIcon: ve, NPopover: ct, PhotoOff: Bt, FileText: Rt },
5866
5866
  props: {
@@ -5895,12 +5895,12 @@ const Dg = /* @__PURE__ */ x($g, [["render", Ig], ["__scopeId", "data-v-25699389
5895
5895
  isAssetTypeAnImage: r
5896
5896
  };
5897
5897
  }
5898
- }), qg = { class: "flex gap-2 max-w-sm overflow-y-hidden overflow-x-auto items-center" };
5899
- function zg(e, t, r, n, a, o) {
5898
+ }), zg = { class: "flex gap-2 max-w-sm overflow-y-hidden overflow-x-auto items-center" };
5899
+ function qg(e, t, r, n, a, o) {
5900
5900
  const s = S("PhotoOff"), u = S("NIcon"), p = S("NImage"), h = S("FileText"), b = S("NPopover"), I = S("NImageGroup");
5901
5901
  return c(), O(I, null, {
5902
5902
  default: k(() => [
5903
- i("div", qg, [
5903
+ i("div", zg, [
5904
5904
  (c(!0), w(se, null, be(e.imgs, (y) => (c(), w(se, null, [
5905
5905
  e.isAssetTypeAnImage(y) ? (c(), O(p, {
5906
5906
  key: 0,
@@ -5947,7 +5947,7 @@ function zg(e, t, r, n, a, o) {
5947
5947
  _: 1
5948
5948
  });
5949
5949
  }
5950
- const $c = /* @__PURE__ */ x(jg, [["render", zg]]), Ag = le({
5950
+ const $c = /* @__PURE__ */ x(jg, [["render", qg]]), Ag = le({
5951
5951
  name: "UzNumberRoll",
5952
5952
  props: {
5953
5953
  value: {
@@ -5972,12 +5972,12 @@ const $c = /* @__PURE__ */ x(jg, [["render", zg]]), Ag = le({
5972
5972
  const t = T(!1), r = T(0), n = (u) => 1 - Math.pow(1 - u, 5), a = (u) => e.format ? e.format(u) : u;
5973
5973
  function o(u, p, h = e.duration) {
5974
5974
  const b = () => {
5975
- const y = performance.now(), d = Math.min(y - I, h), v = u + (p - u) * n(d / h);
5975
+ const y = performance.now(), d = Math.min(y - I, h), g = u + (p - u) * n(d / h);
5976
5976
  if (d === h) {
5977
5977
  r.value = a(Number(e.value)), t.value = !1;
5978
5978
  return;
5979
5979
  }
5980
- const l = Number(v.toFixed(e.precision));
5980
+ const l = Number(g.toFixed(e.precision));
5981
5981
  r.value = a(l), requestAnimationFrame(b);
5982
5982
  }, I = performance.now();
5983
5983
  b();
@@ -6026,19 +6026,19 @@ const Og = /* @__PURE__ */ x(Ag, [["render", Rg]]), Bg = le({
6026
6026
  },
6027
6027
  emits: ["on-update:value"],
6028
6028
  setup(e, { emit: t }) {
6029
- const r = T(), n = T(!1), a = T(!1), o = qt();
6029
+ const r = T(), n = T(!1), a = T(!1), o = zt();
6030
6030
  let s = null, u = null;
6031
- const p = (l, g) => {
6032
- s.beginPath(), s.moveTo(l.x, l.y), s.lineTo(g.x, g.y), s.lineWidth = 2, s.strokeStyle = "green", s.stroke();
6031
+ const p = (l, v) => {
6032
+ s.beginPath(), s.moveTo(l.x, l.y), s.lineTo(v.x, v.y), s.lineWidth = 2, s.strokeStyle = "green", s.stroke();
6033
6033
  }, h = () => {
6034
6034
  a.value && requestAnimationFrame(b);
6035
6035
  }, b = () => {
6036
- const l = parseInt(String(e.width)), g = parseInt(String(e.height));
6036
+ const l = parseInt(String(e.width)), v = parseInt(String(e.height));
6037
6037
  if (u && u.readyState === u.HAVE_ENOUGH_DATA) {
6038
- u.width = l, u.height = g, s.drawImage(r.value, 0, 0, l, g);
6039
- const m = s.getImageData(0, 0, l, g);
6038
+ u.width = l, u.height = v, s.drawImage(r.value, 0, 0, l, v);
6039
+ const m = s.getImageData(0, 0, l, v);
6040
6040
  try {
6041
- const f = dd(m.data, l, g);
6041
+ const f = dd(m.data, l, v);
6042
6042
  if (f) {
6043
6043
  const { location: C, data: N } = f;
6044
6044
  N && (p(C.topLeftCorner, C.topRightCorner), p(C.topRightCorner, C.bottomRightCorner), p(C.bottomRightCorner, C.bottomLeftCorner), p(C.bottomLeftCorner, C.topLeftCorner), t("on-update:value", N));
@@ -6062,10 +6062,10 @@ const Og = /* @__PURE__ */ x(Ag, [["render", Rg]]), Bg = le({
6062
6062
  l.getCapabilities().focusDistance && await l.applyConstraints({
6063
6063
  advanced: [{ autoFocus: "continuous" }]
6064
6064
  });
6065
- } catch (g) {
6066
- console.error("Error enabling autofocus:", g);
6065
+ } catch (v) {
6066
+ console.error("Error enabling autofocus:", v);
6067
6067
  }
6068
- }, v = () => {
6068
+ }, g = () => {
6069
6069
  n.value = !0, Ue(async () => {
6070
6070
  navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (a.value = !0, u = document.getElementById("uz-scan-canvas"), u && (s = u.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
6071
6071
  video: {
@@ -6085,16 +6085,16 @@ const Og = /* @__PURE__ */ x(Ag, [["render", Rg]]), Bg = le({
6085
6085
  });
6086
6086
  };
6087
6087
  return Ke(() => {
6088
- e.mode === "video" && v();
6088
+ e.mode === "video" && g();
6089
6089
  }), Ia(() => {
6090
6090
  I();
6091
6091
  }), ie([() => e.width, () => e.width], () => {
6092
- e.mode === "video" && (I(), v());
6092
+ e.mode === "video" && (I(), g());
6093
6093
  }), {
6094
6094
  videoRef: r,
6095
6095
  modal: n,
6096
6096
  loading: a,
6097
- doScan: v,
6097
+ doScan: g,
6098
6098
  closeAll: I
6099
6099
  };
6100
6100
  }
@@ -6217,23 +6217,23 @@ const Lg = /* @__PURE__ */ x(Bg, [["render", Eg]]), Hg = le({
6217
6217
  },
6218
6218
  emits: ["update:loading", "on-update:value"],
6219
6219
  setup(e, { emit: t }) {
6220
- const r = zt(), n = T(), a = T([]), o = T(), s = T(!0), u = T(!1), p = T(!1), h = T(0), b = T(0), I = T(0), y = T(1), d = T(""), v = T([]), l = T(!1), g = (D) => Array.isArray(D) && D.length > 0 || D ? D : !1, m = (D = !1) => {
6220
+ const r = qt(), n = T(), a = T([]), o = T(), s = T(!0), u = T(!1), p = T(!1), h = T(0), b = T(0), I = T(0), y = T(1), d = T(""), g = T([]), l = T(!1), v = (D) => Array.isArray(D) && D.length > 0 || D ? D : !1, m = (D = !1) => {
6221
6221
  if (e.loading)
6222
6222
  return;
6223
6223
  const _ = Q(n.value);
6224
6224
  !D && _.query && (_.query.page = 1);
6225
6225
  const B = [];
6226
- a.value.forEach((q) => {
6227
- if (_[q.key]) {
6228
- const A = g(_[q.key]);
6226
+ a.value.forEach((z) => {
6227
+ if (_[z.key]) {
6228
+ const A = v(_[z.key]);
6229
6229
  if (A) {
6230
6230
  const j = {
6231
- key: q.key,
6231
+ key: z.key,
6232
6232
  value: A,
6233
6233
  range: !1,
6234
- fuzzy: q.search.fuzzy
6234
+ fuzzy: z.search.fuzzy
6235
6235
  };
6236
- (q.input === "cascader" || q.input === "select") && q.params.multiple && (j.range = !0), q.input === "date" && q.params.type.indexOf("range") > -1 && (j.range = !0, j.time = !0), B.push(j);
6236
+ (z.input === "cascader" || z.input === "select") && z.params.multiple && (j.range = !0), z.input === "date" && z.params.type.indexOf("range") > -1 && (j.range = !0, j.time = !0), B.push(j);
6237
6237
  }
6238
6238
  }
6239
6239
  }), t("update:loading", !0), t("on-update:value", B);
@@ -6245,32 +6245,32 @@ const Lg = /* @__PURE__ */ x(Bg, [["render", Eg]]), Hg = le({
6245
6245
  var j;
6246
6246
  const _ = {};
6247
6247
  let B = 0;
6248
- const q = e.cols ? e.cols : 4;
6248
+ const z = e.cols ? e.cols : 4;
6249
6249
  if (D.length > 0)
6250
- for (let U = 0; U <= q; U++)
6250
+ for (let U = 0; U <= z; U++)
6251
6251
  (j = D[U]) != null && j.search.show && (B = B + 1);
6252
- const A = q - B >= 0 ? q - B - 1 : -1;
6253
- b.value = A, I.value = A, h.value = B, B > q ? (u.value = !0, p.value = !0) : (u.value = !1, p.value = !1);
6252
+ const A = z - B >= 0 ? z - B - 1 : -1;
6253
+ b.value = A, I.value = A, h.value = B, B > z ? (u.value = !0, p.value = !0) : (u.value = !1, p.value = !1);
6254
6254
  for (const U of D)
6255
- U.search.tab && (v.value = U.params.options, l.value = U.params.multiple, d.value = U.key, U.search.show = !1), U.input === "input" && U.params.type === "textarea" && (U.params.type = "text"), U.search.show = U.search.show ?? !0, U.defaultValue ? _[U.key] = U.defaultValue : (_[U.key] = "", (U.input === "number" || U.input === "date" || U.input === "time") && (_[U.key] = null), (U.input === "cascader" || U.input === "select") && (U.params.multiple ? _[U.key] = [] : _[U.key] = null));
6255
+ U.search.tab && (g.value = U.params.options, l.value = U.params.multiple, d.value = U.key, U.search.show = !1), U.input === "input" && U.params.type === "textarea" && (U.params.type = "text"), U.search.show = U.search.show ?? !0, U.defaultValue ? _[U.key] = U.defaultValue : (_[U.key] = "", (U.input === "number" || U.input === "date" || U.input === "time") && (_[U.key] = null), (U.input === "cascader" || U.input === "select") && (U.params.multiple ? _[U.key] = [] : _[U.key] = null));
6256
6256
  return { data: D, values: _ };
6257
6257
  }, R = (D) => {
6258
- if (v.value = [], D && D.length > 0) {
6259
- const { data: _, values: B } = V(Q(D)), q = {}, A = e.id || r.params.id;
6258
+ if (g.value = [], D && D.length > 0) {
6259
+ const { data: _, values: B } = V(Q(D)), z = {}, A = e.id || r.params.id;
6260
6260
  if (e.cache && A) {
6261
6261
  const j = Ae(`tables_${A}`, !1);
6262
6262
  j && j.params.forEach((U) => {
6263
- q[U.key] = U.value;
6263
+ z[U.key] = U.value;
6264
6264
  });
6265
6265
  }
6266
- a.value = _, n.value = Q({ ...B, ...q }), o.value = Q(B);
6266
+ a.value = _, n.value = Q({ ...B, ...z }), o.value = Q(B);
6267
6267
  }
6268
6268
  m(!0);
6269
- }, z = (D) => {
6269
+ }, q = (D) => {
6270
6270
  if (l.value) {
6271
6271
  const _ = n.value[d.value];
6272
6272
  if (_.includes(D)) {
6273
- const B = _.findIndex((q) => q === D);
6273
+ const B = _.findIndex((z) => z === D);
6274
6274
  n.value[d.value].splice(B, 1);
6275
6275
  } else
6276
6276
  _.push(D);
@@ -6295,17 +6295,17 @@ const Lg = /* @__PURE__ */ x(Bg, [["render", Eg]]), Hg = le({
6295
6295
  collapsed: s,
6296
6296
  gridSpan: y,
6297
6297
  tabKey: d,
6298
- tabList: v,
6298
+ tabList: g,
6299
6299
  doSearch: m,
6300
6300
  clearAll: f,
6301
6301
  showMore: C,
6302
- tabItemChange: z,
6302
+ tabItemChange: q,
6303
6303
  tabButtonType: N
6304
6304
  };
6305
6305
  }
6306
6306
  }), Kg = { class: "flex items-start justify-between gap-8 w-full" }, Gg = { class: "flex-1" }, Wg = { class: "flex gap-2 flex-1" };
6307
6307
  function Jg(e, t, r, n, a, o) {
6308
- const s = S("NButton"), u = S("NButtonGroup"), p = S("NGridItem"), h = S("NInputGroupLabel"), b = S("NPopover"), I = S("UzFormItem"), y = S("NInputGroup"), d = S("NGrid"), v = S("CaretDown"), l = S("NIcon"), g = S("Search"), m = S("Refresh"), f = zl("media");
6308
+ const s = S("NButton"), u = S("NButtonGroup"), p = S("NGridItem"), h = S("NInputGroupLabel"), b = S("NPopover"), I = S("UzFormItem"), y = S("NInputGroup"), d = S("NGrid"), g = S("CaretDown"), l = S("NIcon"), v = S("Search"), m = S("Refresh"), f = ql("media");
6309
6309
  return c(), w("div", {
6310
6310
  class: "uz-search-bar flex justify-between gap-2 w-full",
6311
6311
  onKeyup: t[1] || (t[1] = Oc((C) => e.doSearch(!1), ["enter"]))
@@ -6403,7 +6403,7 @@ function Jg(e, t, r, n, a, o) {
6403
6403
  class: ue(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
6404
6404
  }, {
6405
6405
  default: k(() => [
6406
- M(v)
6406
+ M(g)
6407
6407
  ]),
6408
6408
  _: 1
6409
6409
  }, 8, ["class"])
@@ -6422,7 +6422,7 @@ function Jg(e, t, r, n, a, o) {
6422
6422
  color: "#0086ff"
6423
6423
  }, {
6424
6424
  default: k(() => [
6425
- M(g)
6425
+ M(v)
6426
6426
  ]),
6427
6427
  _: 1
6428
6428
  })
@@ -6491,43 +6491,43 @@ const Qg = /* @__PURE__ */ x(Hg, [["render", Jg]]), Xg = le({
6491
6491
  },
6492
6492
  emits: ["update:loading", "on-update:value"],
6493
6493
  setup(e, { emit: t }) {
6494
- const r = zt(), n = T([]), a = T(!1), o = T(), s = T(), u = (y) => Array.isArray(y) && y.length > 0 || y ? y : !1, p = (y = !1) => {
6494
+ const r = qt(), n = T([]), a = T(!1), o = T(), s = T(), u = (y) => Array.isArray(y) && y.length > 0 || y ? y : !1, p = (y = !1) => {
6495
6495
  if (e.loading)
6496
6496
  return;
6497
6497
  const d = Q(o.value);
6498
6498
  !y && d.query && (d.query.page = 1);
6499
- const v = [];
6499
+ const g = [];
6500
6500
  n.value.forEach((l) => {
6501
6501
  if (d[l.key]) {
6502
- const g = u(d[l.key]);
6503
- if (g) {
6502
+ const v = u(d[l.key]);
6503
+ if (v) {
6504
6504
  const m = {
6505
6505
  key: l.key,
6506
- value: g,
6506
+ value: v,
6507
6507
  range: !1,
6508
6508
  fuzzy: l.search.fuzzy
6509
6509
  };
6510
- (l.input === "cascader" || l.input === "select") && l.params.multiple && (m.range = !0), l.input === "date" && l.params.type.indexOf("range") > -1 && (m.range = !0, m.time = !0), v.push(m);
6510
+ (l.input === "cascader" || l.input === "select") && l.params.multiple && (m.range = !0), l.input === "date" && l.params.type.indexOf("range") > -1 && (m.range = !0, m.time = !0), g.push(m);
6511
6511
  }
6512
6512
  }
6513
- }), a.value = !1, t("update:loading", !0), t("on-update:value", v);
6513
+ }), a.value = !1, t("update:loading", !0), t("on-update:value", g);
6514
6514
  }, h = () => {
6515
6515
  e.loading || (o.value = Q(s.value), p());
6516
6516
  }, b = (y) => {
6517
6517
  const d = {};
6518
- for (const v of y)
6519
- v.input === "input" && v.params.type === "textarea" && (v.params.type = "text"), v.search.show = v.search.show ?? !0, v.defaultValue ? d[v.key] = v.defaultValue : (d[v.key] = "", (v.input === "number" || v.input === "date" || v.input === "time") && (d[v.key] = null), v.input === "cascader" && (v.params.multiple ? d[v.key] = [] : d[v.key] = null), v.input === "select" && (v.params.multiple ? d[v.key] = [] : d[v.key] = null));
6518
+ for (const g of y)
6519
+ g.input === "input" && g.params.type === "textarea" && (g.params.type = "text"), g.search.show = g.search.show ?? !0, g.defaultValue ? d[g.key] = g.defaultValue : (d[g.key] = "", (g.input === "number" || g.input === "date" || g.input === "time") && (d[g.key] = null), g.input === "cascader" && (g.params.multiple ? d[g.key] = [] : d[g.key] = null), g.input === "select" && (g.params.multiple ? d[g.key] = [] : d[g.key] = null));
6520
6520
  return { data: y, values: d };
6521
6521
  }, I = (y) => {
6522
6522
  if (y && y.length > 0) {
6523
- const { data: d, values: v } = b(Q(y)), l = {}, g = e.id || r.params.id;
6524
- if (e.cache && g) {
6525
- const m = Ae(`tables_${g}`, !1);
6523
+ const { data: d, values: g } = b(Q(y)), l = {}, v = e.id || r.params.id;
6524
+ if (e.cache && v) {
6525
+ const m = Ae(`tables_${v}`, !1);
6526
6526
  m && m.params.forEach((f) => {
6527
6527
  l[f.key] = f.value;
6528
6528
  });
6529
6529
  }
6530
- n.value = d, o.value = Q({ ...v, ...l }), s.value = Q(v);
6530
+ n.value = d, o.value = Q({ ...g, ...l }), s.value = Q(g);
6531
6531
  }
6532
6532
  p(!0);
6533
6533
  };
@@ -6546,7 +6546,7 @@ const Qg = /* @__PURE__ */ x(Hg, [["render", Jg]]), Xg = le({
6546
6546
  }
6547
6547
  }), Yg = { class: "flex items-start justify-between gap-8 pb-2" }, Zg = { class: "flex items-center gap-2 w-full" };
6548
6548
  function e2(e, t, r, n, a, o) {
6549
- const s = S("Search"), u = S("NIcon"), p = S("NButton"), h = S("NInputGroupLabel"), b = S("UzFormItem"), I = S("NInputGroup"), y = S("NGridItem"), d = S("NGrid"), v = S("Refresh"), l = S("NDrawerContent"), g = S("NDrawer");
6549
+ const s = S("Search"), u = S("NIcon"), p = S("NButton"), h = S("NInputGroupLabel"), b = S("UzFormItem"), I = S("NInputGroup"), y = S("NGridItem"), d = S("NGrid"), g = S("Refresh"), l = S("NDrawerContent"), v = S("NDrawer");
6550
6550
  return c(), w(se, null, [
6551
6551
  i("div", Yg, [
6552
6552
  xe(e.$slots, "header"),
@@ -6570,7 +6570,7 @@ function e2(e, t, r, n, a, o) {
6570
6570
  xe(e.$slots, "action")
6571
6571
  ])
6572
6572
  ]),
6573
- M(g, {
6573
+ M(v, {
6574
6574
  show: e.drawer,
6575
6575
  "onUpdate:show": t[2] || (t[2] = (m) => e.drawer = m),
6576
6576
  width: "100%",
@@ -6591,7 +6591,7 @@ function e2(e, t, r, n, a, o) {
6591
6591
  icon: k(() => [
6592
6592
  M(u, null, {
6593
6593
  default: k(() => [
6594
- M(v)
6594
+ M(g)
6595
6595
  ]),
6596
6596
  _: 1
6597
6597
  })
@@ -6984,63 +6984,63 @@ function Gt(e, t, r) {
6984
6984
  d.input === "group" ? y.push(...d.params.children) : y.push(d);
6985
6985
  for await (const d of y) {
6986
6986
  if (d.source) {
6987
- const { sourceData: v, n: l } = await $a(d.source);
6988
- if (v && Array.isArray(v)) {
6989
- let g = [];
6987
+ const { sourceData: g, n: l } = await $a(d.source);
6988
+ if (g && Array.isArray(g)) {
6989
+ let v = [];
6990
6990
  if (d.sourceFn) {
6991
6991
  const m = d.sourceFn;
6992
- g = new Function("sourceData", m)(v);
6992
+ v = new Function("sourceData", m)(g);
6993
6993
  } else
6994
- g = xa(d, v, l);
6995
- if (d.params.options = g, d.form.backfill && t)
6994
+ v = xa(d, g, l);
6995
+ if (d.params.options = v, d.form.backfill && t)
6996
6996
  if (Array.isArray(t))
6997
6997
  t.forEach((m, f) => {
6998
- const C = g.find((N) => N.value === m[d.key]);
6998
+ const C = v.find((N) => N.value === m[d.key]);
6999
6999
  C && (h[f] || (h[f] = {}), h[f][d.key] = C.params);
7000
7000
  });
7001
7001
  else {
7002
- const m = g.find((f) => f.value === t[d.key]);
7002
+ const m = v.find((f) => f.value === t[d.key]);
7003
7003
  m && (u[d.key] = m.params);
7004
7004
  }
7005
7005
  }
7006
7006
  }
7007
7007
  if (d.input === "filling")
7008
7008
  try {
7009
- Array.isArray(t) ? t.forEach((v, l) => {
7009
+ Array.isArray(t) ? t.forEach((g, l) => {
7010
7010
  b[l] || (b[l] = {}), h[l] && h[l][d.params.parentKey] && h[l][d.params.parentKey][d.key] ? (b[l][d.key] = h[l][d.params.parentKey][d.key], h[l][d.params.parentKey][`${d.key}Str`] && (b[l][`${d.key}Str`] = h[l][d.params.parentKey][`${d.key}Str`])) : (b[l][d.key] = null, b[l][`${d.key}Str`] = null);
7011
7011
  }) : u[d.params.parentKey] && u[d.params.parentKey][d.key] ? (p[d.key] = u[d.params.parentKey][d.key], u[d.params.parentKey][`${d.key}Str`] && (p[`${d.key}Str`] = u[d.params.parentKey][`${d.key}Str`])) : (p[d.key] = null, p[`${d.key}Str`] = null);
7012
- } catch (v) {
7013
- console.log(v);
7012
+ } catch (g) {
7013
+ console.log(g);
7014
7014
  }
7015
7015
  if (d.input !== "divider" && d.form.rule && d.form.rule.validator && typeof d.form.rule.validator == "string")
7016
7016
  try {
7017
- const v = d.form.rule.validator, l = new Function("rule", "value", "index", "formValues", v);
7018
- d.form.rule.validator = (g, m) => l(g, m, null, r);
7019
- } catch (v) {
7020
- throw new Error(v);
7017
+ const g = d.form.rule.validator, l = new Function("rule", "value", "index", "formValues", g);
7018
+ d.form.rule.validator = (v, m) => l(v, m, null, r);
7019
+ } catch (g) {
7020
+ throw new Error(g);
7021
7021
  }
7022
7022
  if (d.input === "date" && d.params.isDateDisabled && typeof d.params.isDateDisabled == "string")
7023
7023
  try {
7024
- const v = d.params.isDateDisabled, l = new Function("ts", "detail", v);
7025
- d.params.isDateDisabled = (g, m) => l(g, m);
7026
- } catch (v) {
7027
- throw new Error(v);
7024
+ const g = d.params.isDateDisabled, l = new Function("ts", "detail", g);
7025
+ d.params.isDateDisabled = (v, m) => l(v, m);
7026
+ } catch (g) {
7027
+ throw new Error(g);
7028
7028
  }
7029
7029
  if (d.input === "cascader" && d.table.render === "[city]") {
7030
- const v = await co();
7031
- d.params.options = v;
7030
+ const g = await co();
7031
+ d.params.options = g;
7032
7032
  }
7033
7033
  if (d.input === "subTable" && d.params.link) {
7034
- const v = await yt(d.params.link).catch(() => {
7034
+ const g = await yt(d.params.link).catch(() => {
7035
7035
  a();
7036
7036
  });
7037
- if (v)
7037
+ if (g)
7038
7038
  try {
7039
- const l = nt.parse(v.viewJson), g = kt(l.table);
7040
- g.forEach((f) => {
7039
+ const l = nt.parse(g.viewJson), v = kt(l.table);
7040
+ v.forEach((f) => {
7041
7041
  f.table.sorter = !1;
7042
7042
  });
7043
- const m = g.filter(
7043
+ const m = v.filter(
7044
7044
  (f) => f.input === "subTable"
7045
7045
  );
7046
7046
  if (m)
@@ -7061,7 +7061,7 @@ function Gt(e, t, r) {
7061
7061
  return;
7062
7062
  }
7063
7063
  }
7064
- d.params.columns = g, d.params.actions = l.action;
7064
+ d.params.columns = v, d.params.actions = l.action;
7065
7065
  } catch (l) {
7066
7066
  a(l);
7067
7067
  return;
@@ -7087,7 +7087,7 @@ function Gt(e, t, r) {
7087
7087
  }
7088
7088
  async function Wt(e, t = !1, r = 0, n = () => {
7089
7089
  }, a = {}) {
7090
- var v;
7090
+ var g;
7091
7091
  let o = 0;
7092
7092
  const s = [], u = [];
7093
7093
  let p = [];
@@ -7097,7 +7097,7 @@ async function Wt(e, t = !1, r = 0, n = () => {
7097
7097
  title: l.label,
7098
7098
  key: l.key,
7099
7099
  ...l.table,
7100
- children: l.params.children.map((g) => g.key)
7100
+ children: l.params.children.map((v) => v.key)
7101
7101
  })) : (b.push(l), I.push(l.key));
7102
7102
  const y = [];
7103
7103
  e.forEach((l) => {
@@ -7113,17 +7113,17 @@ async function Wt(e, t = !1, r = 0, n = () => {
7113
7113
  const N = [], V = JSON.parse(C[l.key]);
7114
7114
  if (V)
7115
7115
  for (const R of V) {
7116
- const z = m.find(
7116
+ const q = m.find(
7117
7117
  (D) => String(D.id) === R
7118
7118
  );
7119
- z && N.push(
7119
+ q && N.push(
7120
7120
  ee(
7121
7121
  Yc,
7122
7122
  {
7123
7123
  type: "info"
7124
7124
  },
7125
7125
  {
7126
- default: () => z[f[1]]
7126
+ default: () => q[f[1]]
7127
7127
  }
7128
7128
  )
7129
7129
  );
@@ -7132,12 +7132,12 @@ async function Wt(e, t = !1, r = 0, n = () => {
7132
7132
  } else {
7133
7133
  const N = m.find(
7134
7134
  (V) => {
7135
- var R, z;
7135
+ var R, q;
7136
7136
  return (
7137
7137
  // @ts-ignore
7138
7138
  ((R = l.params) != null && R.valueKey ? (
7139
7139
  // @ts-ignore
7140
- V[(z = l.params) == null ? void 0 : z.valueKey]
7140
+ V[(q = l.params) == null ? void 0 : q.valueKey]
7141
7141
  ) : String(V.id)) === C[l.key]
7142
7142
  );
7143
7143
  }
@@ -7172,7 +7172,7 @@ async function Wt(e, t = !1, r = 0, n = () => {
7172
7172
  }
7173
7173
  );
7174
7174
  }), (de.isMobile ? l.table.mobile : l.table.show) && (o = o + (Number(l.table.width) || (de.isMobile ? 80 : 160)));
7175
- let g = {
7175
+ let v = {
7176
7176
  input: l.input,
7177
7177
  title: l.label,
7178
7178
  key: l.key,
@@ -7188,15 +7188,15 @@ async function Wt(e, t = !1, r = 0, n = () => {
7188
7188
  fixTemp: l.table.fixed
7189
7189
  };
7190
7190
  if (t)
7191
- if (!g.form.edit.show)
7192
- g = null;
7191
+ if (!v.form.edit.show)
7192
+ v = null;
7193
7193
  else {
7194
- if (g.ellipsis = !1, g.resizable = !1, de.isMobile && (g.show = l.table.mobile), l.table.show && (r === 0 && (g.show = l.form.create.show), r === 1 && (g.show = l.form.edit.show), r === 2 && (g.show = l.form.show)), (v = l.form.rule) != null && v.required && l.form.rule && typeof l.form.rule.validator == "string" && l.form.rule.validator !== "") {
7194
+ if (v.ellipsis = !1, v.resizable = !1, de.isMobile && (v.show = l.table.mobile), l.table.show && (r === 0 && (v.show = l.form.create.show), r === 1 && (v.show = l.form.edit.show), r === 2 && (v.show = l.form.show)), (g = l.form.rule) != null && g.required && l.form.rule && typeof l.form.rule.validator == "string" && l.form.rule.validator !== "") {
7195
7195
  delete l.form.rule.message;
7196
7196
  const m = l.form.rule.validator, f = new Function("rule", "value", "index", "formValues", m);
7197
7197
  l.form.rule.validator = (C, N) => f(C, N, C.index, () => n());
7198
7198
  }
7199
- g.render = function(m, f) {
7199
+ v.render = function(m, f) {
7200
7200
  var C;
7201
7201
  return ee(
7202
7202
  Aa,
@@ -7220,7 +7220,7 @@ async function Wt(e, t = !1, r = 0, n = () => {
7220
7220
  );
7221
7221
  };
7222
7222
  }
7223
- if (g && l.input !== "divider" && l.input !== "subTable" && p.push(g), l.input !== "divider" && l.input !== "switch" && l.input !== "subTable" && l.input !== "upload" && l.search.show) {
7223
+ if (v && l.input !== "divider" && l.input !== "subTable" && p.push(v), l.input !== "divider" && l.input !== "switch" && l.input !== "subTable" && l.input !== "upload" && l.search.show) {
7224
7224
  if (l.search.source)
7225
7225
  if (l.input = "select", l.params.type = l.search.type, l.params.valueKey = l.search.valueKey, l.params.valueKey = l.search.valueKey, l.search.source === "from-up")
7226
7226
  l.params.options = l.params.options;
@@ -7255,12 +7255,12 @@ async function Wt(e, t = !1, r = 0, n = () => {
7255
7255
  if (I.length > 0) {
7256
7256
  for (const l of I) {
7257
7257
  if (typeof l == "string") {
7258
- const g = p.find((m) => m.key === l);
7259
- g && d.push(g);
7258
+ const v = p.find((m) => m.key === l);
7259
+ v && d.push(v);
7260
7260
  }
7261
7261
  if (typeof l == "object") {
7262
- const g = l.children, m = [];
7263
- for (const f of g) {
7262
+ const v = l.children, m = [];
7263
+ for (const f of v) {
7264
7264
  const C = p.find((N) => N.key === f);
7265
7265
  C && m.push(C);
7266
7266
  }
@@ -7369,7 +7369,7 @@ const Mc = /* @__PURE__ */ x(u2, [["render", c2]]), d2 = le({
7369
7369
  Copy: Ga
7370
7370
  },
7371
7371
  setup() {
7372
- const e = qt(), { toClipboard: t } = fd(), { t: r } = At(), n = T(), a = T(!1), o = T(r("OCR.scan")), s = T([]), u = T(null), p = async (y) => {
7372
+ const e = zt(), { toClipboard: t } = fd(), { t: r } = At(), n = T(), a = T(!1), o = T(r("OCR.scan")), s = T([]), u = T(null), p = async (y) => {
7373
7373
  u.value || (u.value = await pd(["chi_sim"], void 0, {
7374
7374
  workerPath: "https://www.skcloud.com.cn/static/worker.min.js",
7375
7375
  langPath: "https://www.skcloud.com.cn/static/chi_sim_vert.traineddata",
@@ -7399,12 +7399,12 @@ const Mc = /* @__PURE__ */ x(u2, [["render", c2]]), d2 = le({
7399
7399
  o.value = r("OCR.analysis");
7400
7400
  const d = await p(y).catch(() => {
7401
7401
  o.value = r("OCR.analysisError"), a.value = !1;
7402
- }), v = [];
7402
+ }), g = [];
7403
7403
  d.split(`
7404
7404
  `).forEach((l) => {
7405
- const g = l.replace(/\s+/g, "");
7406
- g && v.push(g);
7407
- }), s.value = v, o.value = r("OCR.scan"), a.value = !1;
7405
+ const v = l.replace(/\s+/g, "");
7406
+ v && g.push(v);
7407
+ }), s.value = g, o.value = r("OCR.scan"), a.value = !1;
7408
7408
  };
7409
7409
  return {
7410
7410
  ocrRef: n,
@@ -7412,13 +7412,13 @@ const Mc = /* @__PURE__ */ x(u2, [["render", c2]]), d2 = le({
7412
7412
  ocrText: o,
7413
7413
  ocrLoading: a,
7414
7414
  copy: h,
7415
- beforeUpload: (y) => new Promise((d, v) => {
7415
+ beforeUpload: (y) => new Promise((d, g) => {
7416
7416
  if (a.value = !0, o.value = r("OCR.upload"), y.file.file) {
7417
7417
  const l = new FormData();
7418
- l.append("file", y.file.file), ac("file/cos/upload", l).then((g) => {
7419
- b(g), d();
7418
+ l.append("file", y.file.file), ac("file/cos/upload", l).then((v) => {
7419
+ b(v), d();
7420
7420
  }).catch(() => {
7421
- o.value = r("OCR.uploadError"), a.value = !1, v();
7421
+ o.value = r("OCR.uploadError"), a.value = !1, g();
7422
7422
  });
7423
7423
  }
7424
7424
  })
@@ -7482,7 +7482,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
7482
7482
  NDrawer: Fa,
7483
7483
  NDrawerContent: Ba,
7484
7484
  NSkeleton: Gl,
7485
- NCheckbox: qa,
7485
+ NCheckbox: za,
7486
7486
  NSpin: Va,
7487
7487
  NCheckboxGroup: ja,
7488
7488
  NRadioGroup: Kl,
@@ -7624,12 +7624,12 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
7624
7624
  value: () => null,
7625
7625
  setValue: () => null
7626
7626
  });
7627
- const a = zt(), { t: o } = At(), s = qt(), u = bt(() => de.isMobile), p = T(), h = T(!!n.header), b = T(), I = T(!1), y = T(!1), d = T(!1), v = T(""), l = T(), g = T([]), m = T([]), f = T([]), C = T(void 0), N = T({
7627
+ const a = qt(), { t: o } = At(), s = zt(), u = bt(() => de.isMobile), p = T(), h = T(!!n.header), b = T(), I = T(!1), y = T(!1), d = T(!1), g = T(""), l = T(), v = T([]), m = T([]), f = T([]), C = T(void 0), N = T({
7628
7628
  params: [],
7629
7629
  query: {
7630
7630
  page: 1
7631
7631
  }
7632
- }), V = T([]), R = T(void 0), z = T(void 0), D = T(!1), _ = T(0), B = T({}), q = T([]), A = T([]), j = T([]), U = T([]), E = T({
7632
+ }), V = T([]), R = T(void 0), q = T(void 0), D = T(!1), _ = T(0), B = T({}), z = T([]), A = T([]), j = T([]), U = T([]), E = T({
7633
7633
  fetch: null,
7634
7634
  when_open: null,
7635
7635
  when_create: null,
@@ -7709,7 +7709,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
7709
7709
  const $ = [];
7710
7710
  m.value.forEach((F) => {
7711
7711
  F.show && $.push(F);
7712
- }), g.value = $;
7712
+ }), v.value = $;
7713
7713
  }, Re = ($) => {
7714
7714
  N.value.params = $, fe();
7715
7715
  }, Oe = () => [
@@ -7765,7 +7765,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
7765
7765
  }
7766
7766
  ], st = ($) => {
7767
7767
  var F;
7768
- return !e.ruleFetch || !q.value || q.value && q.value[0] === "*" ? !1 : !((F = q.value) != null && F.includes($));
7768
+ return !e.ruleFetch || !z.value || z.value && z.value[0] === "*" ? !1 : !((F = z.value) != null && F.includes($));
7769
7769
  }, Be = async ($) => {
7770
7770
  const { form: F, fillingDefaultValue: W } = await Gt(
7771
7771
  A.value,
@@ -7866,7 +7866,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
7866
7866
  ...K,
7867
7867
  tableId: W,
7868
7868
  sub_table_ids: F
7869
- }) : J = qm({
7869
+ }) : J = zm({
7870
7870
  ...K,
7871
7871
  tableId: W,
7872
7872
  sub_table_ids: F
@@ -8010,10 +8010,10 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8010
8010
  }, Fe = ($) => typeof $ == "number" ? `${$}px` : $, ar = () => {
8011
8011
  if (e.height) {
8012
8012
  const $ = Fe(e.height);
8013
- R.value = $, z.value = $;
8013
+ R.value = $, q.value = $;
8014
8014
  return;
8015
8015
  }
8016
- e.minHeight && (R.value = Fe(e.minHeight)), e.maxHeight && (z.value = Fe(e.maxHeight));
8016
+ e.minHeight && (R.value = Fe(e.minHeight)), e.maxHeight && (q.value = Fe(e.maxHeight));
8017
8017
  }, lt = () => {
8018
8018
  const $ = [];
8019
8019
  m.value.forEach((F) => {
@@ -8065,7 +8065,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8065
8065
  oe.value = !1;
8066
8066
  });
8067
8067
  }, St = () => {
8068
- v.value = "", A.value = [], j.value = [], U.value = [], E.value = {
8068
+ g.value = "", A.value = [], j.value = [], U.value = [], E.value = {
8069
8069
  fetch: null,
8070
8070
  when_open: null,
8071
8071
  when_create: null,
@@ -8082,7 +8082,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8082
8082
  }, L.value = ut();
8083
8083
  }, or = ($) => {
8084
8084
  const F = nt.parse($.viewJson);
8085
- v.value = $.tableTitle, A.value = kt(F.table), j.value = jt(e.actions || F.action);
8085
+ g.value = $.tableTitle, A.value = kt(F.table), j.value = jt(e.actions || F.action);
8086
8086
  const W = jt(F.suffix || []);
8087
8087
  U.value = W.map((J) => (Me(J), J)), E.value = Ma(F.trigger), ae.value = Ma(F.trigger);
8088
8088
  const K = ut(e.options ?? F.option);
@@ -8097,7 +8097,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8097
8097
  }
8098
8098
  }, f.value = [], e.ruleFetch)
8099
8099
  try {
8100
- q.value = await e.ruleFetch($);
8100
+ z.value = await e.ruleFetch($);
8101
8101
  } catch {
8102
8102
  Ie.value = o("Notice.network"), Ce.value = !0;
8103
8103
  return;
@@ -8154,20 +8154,20 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8154
8154
  }), {
8155
8155
  loading: I,
8156
8156
  minH: R,
8157
- maxH: z,
8157
+ maxH: q,
8158
8158
  drawer: D,
8159
8159
  formRef: b,
8160
8160
  ocFormStatus: _,
8161
8161
  formValues: B,
8162
8162
  tableOption: L,
8163
- tableColumns: g,
8163
+ tableColumns: v,
8164
8164
  tableData: f,
8165
8165
  tableQueries: N,
8166
8166
  searchData: V,
8167
8167
  baseColumns: m,
8168
8168
  isSlotHeader: h,
8169
8169
  formData: l,
8170
- title: v,
8170
+ title: g,
8171
8171
  dynamicLoading: y,
8172
8172
  spinShow: oe,
8173
8173
  spinMsg: Ie,
@@ -8207,7 +8207,7 @@ const Sc = /* @__PURE__ */ x(d2, [["render", h2], ["__scopeId", "data-v-8949ab14
8207
8207
  class: "uz-transform-fade-in"
8208
8208
  }, x2 = { class: "uz-com-title" }, C2 = { class: "flex gap-2 h-full" }, $2 = { class: "flex justify-between w-full" }, M2 = { class: "flex gap-2" };
8209
8209
  function S2(e, t, r, n, a, o) {
8210
- const s = S("NSkeleton"), u = S("NButton"), p = S("Plus"), h = S("NIcon"), b = S("UzActionButton"), I = S("UzSearchMobileBar"), y = S("UzTableMobile"), d = S("Filter"), v = S("NCheckbox"), l = S("GridDots"), g = S("Draggable"), m = S("NPopover"), f = S("UzSearchBar"), C = S("NDataTable"), N = S("NSpin"), V = S("UzOcr"), R = S("UzForm"), z = S("UzSpin"), D = S("NDrawerContent"), _ = S("NDrawer");
8210
+ const s = S("NSkeleton"), u = S("NButton"), p = S("Plus"), h = S("NIcon"), b = S("UzActionButton"), I = S("UzSearchMobileBar"), y = S("UzTableMobile"), d = S("Filter"), g = S("NCheckbox"), l = S("GridDots"), v = S("Draggable"), m = S("NPopover"), f = S("UzSearchBar"), C = S("NDataTable"), N = S("NSpin"), V = S("UzOcr"), R = S("UzForm"), q = S("UzSpin"), D = S("NDrawerContent"), _ = S("NDrawer");
8211
8211
  return c(), w("div", m2, [
8212
8212
  rt(i("div", v2, [
8213
8213
  i("div", g2, [
@@ -8280,7 +8280,7 @@ function S2(e, t, r, n, a, o) {
8280
8280
  cache: e.tableOption.cache,
8281
8281
  loading: e.loading,
8282
8282
  "onOnUpdate:value": e.submit
8283
- }, ze({
8283
+ }, qe({
8284
8284
  action: k(() => [
8285
8285
  e.addFetch && e.tableOption.addButton ? (c(), O(u, {
8286
8286
  key: 0,
@@ -8349,7 +8349,7 @@ function S2(e, t, r, n, a, o) {
8349
8349
  loading: e.loading,
8350
8350
  cols: e.searchCols,
8351
8351
  "onOnUpdate:value": e.submit
8352
- }, ze({
8352
+ }, qe({
8353
8353
  action: k(() => [
8354
8354
  e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(), O(m, {
8355
8355
  key: 0,
@@ -8374,7 +8374,7 @@ function S2(e, t, r, n, a, o) {
8374
8374
  })
8375
8375
  ]),
8376
8376
  default: k(() => [
8377
- M(g, ka({
8377
+ M(v, ka({
8378
8378
  modelValue: e.baseColumns,
8379
8379
  "onUpdate:modelValue": t[0] || (t[0] = (B) => e.baseColumns = B)
8380
8380
  }, {
@@ -8390,7 +8390,7 @@ function S2(e, t, r, n, a, o) {
8390
8390
  key: B.key,
8391
8391
  class: "uz-table-sort"
8392
8392
  }, [
8393
- M(v, {
8393
+ M(g, {
8394
8394
  checked: B.show,
8395
8395
  "on-update:checked": () => e.showChange(B),
8396
8396
  size: "large"
@@ -8512,11 +8512,11 @@ function S2(e, t, r, n, a, o) {
8512
8512
  M(D, {
8513
8513
  title: e.ocFormStatus === 1 ? e.$t("Common.edit") : e.ocFormStatus === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
8514
8514
  closable: ""
8515
- }, ze({
8515
+ }, qe({
8516
8516
  default: k(() => [
8517
8517
  i("div", C2, [
8518
8518
  e.ocrShow ? (c(), O(V, { key: 0 })) : X("", !0),
8519
- M(z, {
8519
+ M(q, {
8520
8520
  value: e.spinShow,
8521
8521
  "onUpdate:value": t[1] || (t[1] = (B) => e.spinShow = B),
8522
8522
  message: e.spinMsg,
@@ -8588,7 +8588,7 @@ function S2(e, t, r, n, a, o) {
8588
8588
  }
8589
8589
  const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8590
8590
  name: "UzTableChild",
8591
- components: { NButton: ge, NIcon: ve, NDataTable: Ua, NForm: Ra, NDivider: za, Plus: dt, GridDots: gt },
8591
+ components: { NButton: ge, NIcon: ve, NDataTable: Ua, NForm: Ra, NDivider: qa, Plus: dt, GridDots: gt },
8592
8592
  props: {
8593
8593
  value: { type: Array, default: () => [] },
8594
8594
  item: {
@@ -8604,13 +8604,13 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8604
8604
  },
8605
8605
  emits: ["update:value"],
8606
8606
  setup(e, { emit: t, expose: r }) {
8607
- const n = Le("emitSuffix"), a = Le("modules"), o = Le("mainFormValue"), { t: s } = At(), u = T(), p = T(), h = T(), b = T(!1), I = T(!0), y = T([]), d = T([]), v = T({ child: [] }), l = T(""), g = T([]), m = T(void 0), f = async (A) => {
8607
+ const n = Le("emitSuffix"), a = Le("modules"), o = Le("mainFormValue"), { t: s } = At(), u = T(), p = T(), h = T(), b = T(!1), I = T(!0), y = T([]), d = T([]), g = T({ child: [] }), l = T(""), v = T([]), m = T(void 0), f = async (A) => {
8608
8608
  b.value = !0;
8609
8609
  const { formDefaultValue: j, fillingDefaultArray: U } = await Gt(
8610
8610
  e.item.params.columns,
8611
8611
  A
8612
8612
  );
8613
- e.item.params.init && (g.value = Q(j));
8613
+ e.item.params.init && (v.value = Q(j));
8614
8614
  const E = Q(A).map((ae, L) => ({
8615
8615
  ...ae,
8616
8616
  ...U[L]
@@ -8623,12 +8623,12 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8623
8623
  ae.forEach((oe) => {
8624
8624
  L[oe] && typeof L[oe] == "string" && (L[oe] = JSON.parse(L[oe]));
8625
8625
  });
8626
- }), e.item.params.init && E.length === 0 ? v.value.child = [Q(g.value)] : v.value.child = E, b.value = !1, Ue(() => {
8627
- q();
8626
+ }), e.item.params.init && E.length === 0 ? g.value.child = [Q(v.value)] : g.value.child = E, b.value = !1, Ue(() => {
8627
+ z();
8628
8628
  });
8629
8629
  } else
8630
8630
  Ue(() => {
8631
- q();
8631
+ z();
8632
8632
  });
8633
8633
  }, C = () => {
8634
8634
  const A = [];
@@ -8640,7 +8640,7 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8640
8640
  Q(A),
8641
8641
  !0,
8642
8642
  e.status,
8643
- () => v.value.child,
8643
+ () => g.value.child,
8644
8644
  a
8645
8645
  );
8646
8646
  let E = U;
@@ -8703,7 +8703,7 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8703
8703
  ke.disabled = De(L, oe);
8704
8704
  }
8705
8705
  ye.push(ke);
8706
- }), e.item.params.showDelete && (e.status !== 2 && (v.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && ye.push(Ie), Ct({
8706
+ }), e.item.params.showDelete && (e.status !== 2 && (g.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && ye.push(Ie), Ct({
8707
8707
  buttons: ye,
8708
8708
  rowData: L
8709
8709
  });
@@ -8724,9 +8724,9 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8724
8724
  }
8725
8725
  }
8726
8726
  return [];
8727
- }, z = async () => {
8728
- l.value = "", v.value.child.push(Q(g.value)), Ue(() => {
8729
- q();
8727
+ }, q = async () => {
8728
+ l.value = "", g.value.child.push(Q(v.value)), Ue(() => {
8729
+ z();
8730
8730
  });
8731
8731
  }, D = async () => {
8732
8732
  l.value = "";
@@ -8737,11 +8737,11 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8737
8737
  e.item.params.optionsType && n({
8738
8738
  open: e.item.params.optionsType,
8739
8739
  mainFormValue: o,
8740
- children: () => v.value.child,
8740
+ children: () => g.value.child,
8741
8741
  callback: async (U) => {
8742
8742
  const E = await j(U, o, pe);
8743
- v.value.child = [...v.value.child, ...E], Ue(() => {
8744
- q();
8743
+ g.value.child = [...g.value.child, ...E], Ue(() => {
8744
+ z();
8745
8745
  });
8746
8746
  }
8747
8747
  });
@@ -8749,10 +8749,10 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8749
8749
  e.item.params.optionsType && n({
8750
8750
  open: e.item.params.optionsType,
8751
8751
  mainFormValue: o,
8752
- children: () => v.value.child,
8752
+ children: () => g.value.child,
8753
8753
  callback: async (j) => {
8754
- v.value.child = [...v.value.child, ...j], Ue(() => {
8755
- q();
8754
+ g.value.child = [...g.value.child, ...j], Ue(() => {
8755
+ z();
8756
8756
  });
8757
8757
  }
8758
8758
  });
@@ -8764,14 +8764,14 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8764
8764
  (A = h.value) == null || A.restoreValidation();
8765
8765
  }, B = () => (l.value = "", new Promise((A, j) => {
8766
8766
  var U;
8767
- if (e.item.form.rule.required && v.value.child.length === 0) {
8767
+ if (e.item.form.rule.required && g.value.child.length === 0) {
8768
8768
  l.value = e.item.form.rule.message, j();
8769
8769
  return;
8770
8770
  }
8771
8771
  (U = h.value) == null || U.validate((E) => {
8772
8772
  E ? j() : A();
8773
8773
  });
8774
- })), q = () => {
8774
+ })), z = () => {
8775
8775
  if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
8776
8776
  const A = u.value.$el.querySelector(".n-data-table-tbody");
8777
8777
  A && (p.value = hd.create(A, {
@@ -8782,12 +8782,12 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8782
8782
  onEnd: ({ oldIndex: j, newIndex: U }) => {
8783
8783
  var L;
8784
8784
  (L = p.value) == null || L.destroy(), p.value = null, I.value = !1;
8785
- let E = Q(v.value.child);
8785
+ let E = Q(g.value.child);
8786
8786
  const ae = E.splice(j, 1)[0];
8787
8787
  E.splice(U, 0, ae), E = E.map((oe, ye) => ({
8788
8788
  ...oe,
8789
8789
  sort_index: ye
8790
- })), v.value.child = E, Ue(() => {
8790
+ })), g.value.child = E, Ue(() => {
8791
8791
  I.value = !0;
8792
8792
  });
8793
8793
  }
@@ -8817,7 +8817,7 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8817
8817
  },
8818
8818
  { deep: !0 }
8819
8819
  ), ie(
8820
- () => v.value.child,
8820
+ () => g.value.child,
8821
8821
  (A) => {
8822
8822
  JSON.stringify(A) !== JSON.stringify(e.value) && t("update:value", A);
8823
8823
  },
@@ -8827,30 +8827,30 @@ const T2 = /* @__PURE__ */ x(w2, [["render", S2]]), N2 = le({
8827
8827
  formRef: h,
8828
8828
  tableRef: u,
8829
8829
  columns: y,
8830
- tableData: v,
8830
+ tableData: g,
8831
8831
  baseColumns: d,
8832
8832
  summaryData: R,
8833
8833
  message: l,
8834
8834
  tableScrollX: m,
8835
8835
  tableShow: I,
8836
- onAdd: z,
8836
+ onAdd: q,
8837
8837
  onAddFormData: D,
8838
8838
  rowClassName: N
8839
8839
  };
8840
8840
  }
8841
- }), I2 = { class: "flex-1 w-full" }, D2 = { class: "flex justify-between" }, j2 = { class: "uz-com-title" }, q2 = {
8841
+ }), I2 = { class: "flex-1 w-full" }, D2 = { class: "flex justify-between" }, j2 = { class: "uz-com-title" }, z2 = {
8842
8842
  key: 0,
8843
8843
  class: "uz-table-asterisk"
8844
- }, z2 = { class: "flex gap-2" }, A2 = { class: "flex justify-end gap-2" };
8844
+ }, q2 = { class: "flex gap-2" }, A2 = { class: "flex justify-end gap-2" };
8845
8845
  function R2(e, t, r, n, a, o) {
8846
8846
  const s = S("Plus"), u = S("NIcon"), p = S("NButton"), h = S("NDataTable"), b = S("NForm");
8847
8847
  return c(), w("div", I2, [
8848
8848
  i("div", D2, [
8849
8849
  i("div", j2, [
8850
8850
  G(H(e.item.label) + " ", 1),
8851
- e.item.form.rule.required ? (c(), w("span", q2, "  * ")) : X("", !0)
8851
+ e.item.form.rule.required ? (c(), w("span", z2, "  * ")) : X("", !0)
8852
8852
  ]),
8853
- i("div", z2, [
8853
+ i("div", q2, [
8854
8854
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), O(p, {
8855
8855
  key: 0,
8856
8856
  type: "success",
@@ -8977,22 +8977,22 @@ const O2 = /* @__PURE__ */ x(N2, [["render", R2]]), B2 = le({
8977
8977
  setup(e) {
8978
8978
  const t = Le("modules"), { t: r } = At(), n = T(!1), a = T(!1), o = T(""), s = T({}), u = T([]), p = T([]), h = T([]), b = T(void 0), I = (l) => {
8979
8979
  if (n.value = !0, e.item.params.link) {
8980
- const g = [];
8980
+ const v = [];
8981
8981
  e.item.params.columns.forEach((m) => {
8982
- (m.input === "cascader" || m.input === "select") && m.params.multiple && g.push(m.key);
8982
+ (m.input === "cascader" || m.input === "select") && m.params.multiple && v.push(m.key);
8983
8983
  }), l && l.forEach((m) => {
8984
- g.forEach((f) => {
8984
+ v.forEach((f) => {
8985
8985
  m[f] && typeof m[f] == "string" && (m[f] = JSON.parse(m[f]));
8986
8986
  });
8987
8987
  }), h.value = l, n.value = !1;
8988
8988
  }
8989
8989
  }, y = () => {
8990
8990
  const l = [];
8991
- p.value.forEach((g) => {
8992
- g.show && l.push(g);
8991
+ p.value.forEach((v) => {
8992
+ v.show && l.push(v);
8993
8993
  }), u.value = l;
8994
8994
  }, d = async (l) => {
8995
- const { tableColumns: g, tableWidth: m } = await Wt(
8995
+ const { tableColumns: v, tableWidth: m } = await Wt(
8996
8996
  Q(l),
8997
8997
  !0,
8998
8998
  2,
@@ -9000,6 +9000,18 @@ const O2 = /* @__PURE__ */ x(N2, [["render", R2]]), B2 = le({
9000
9000
  t
9001
9001
  );
9002
9002
  let f = m;
9003
+ v.unshift({
9004
+ title: " ",
9005
+ key: "index",
9006
+ align: "center",
9007
+ fixed: "left",
9008
+ titleAlign: "center",
9009
+ width: 10,
9010
+ show: !0
9011
+ // render(_: ObjectKey, rowIndex: number) {
9012
+ // return h('span', {}, { default: () => rowIndex + 1 })
9013
+ // }
9014
+ }), f = f + 60;
9003
9015
  const C = {
9004
9016
  title: () => r("Common.action"),
9005
9017
  key: "action",
@@ -9026,16 +9038,16 @@ const O2 = /* @__PURE__ */ x(N2, [["render", R2]]), B2 = le({
9026
9038
  });
9027
9039
  }
9028
9040
  };
9029
- g.push(C), p.value = g, f = f + 180, b.value = f;
9030
- }, v = (l) => {
9041
+ v.push(C), p.value = v, f = f + 180, b.value = f;
9042
+ }, g = (l) => {
9031
9043
  if (e.item.params.summary) {
9032
9044
  if (typeof e.item.params.summary == "function")
9033
9045
  return e.item.params.summary(l);
9034
9046
  try {
9035
- const g = e.item.params.summary;
9036
- return new Function("pageData", "h", g)(l, ee);
9037
- } catch (g) {
9038
- throw new Error(g);
9047
+ const v = e.item.params.summary;
9048
+ return new Function("pageData", "h", v)(l, ee);
9049
+ } catch (v) {
9050
+ throw new Error(v);
9039
9051
  }
9040
9052
  }
9041
9053
  return [];
@@ -9075,7 +9087,7 @@ const O2 = /* @__PURE__ */ x(N2, [["render", R2]]), B2 = le({
9075
9087
  columns: u,
9076
9088
  normalData: h,
9077
9089
  baseColumns: p,
9078
- summaryData: v,
9090
+ summaryData: g,
9079
9091
  tableScrollX: b,
9080
9092
  drawer: a,
9081
9093
  drawerLink: o,
@@ -9173,10 +9185,10 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9173
9185
  when_edit: null,
9174
9186
  when_delete: null,
9175
9187
  when_before_save: ""
9176
- }), d = T(!1), v = T(!1), l = () => {
9188
+ }), d = T(!1), g = T(!1), l = () => {
9177
9189
  var C;
9178
9190
  (C = n.value) == null || C.restoreValidation(), a.value = {}, u.value = !1, o.value = !1, t("update:show", !1);
9179
- }, g = async () => {
9191
+ }, v = async () => {
9180
9192
  if (e.link) {
9181
9193
  const C = e.link.split(".")[0];
9182
9194
  await yt(C).then(async (N) => {
@@ -9186,7 +9198,7 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9186
9198
  );
9187
9199
  I.value = R, s.value = ut(V.option), y.value = V.trigger, e.mainData && (a.value = e.mainData);
9188
9200
  }).catch(() => {
9189
- v.value = !0;
9201
+ g.value = !0;
9190
9202
  });
9191
9203
  }
9192
9204
  }, m = (C) => {
@@ -9196,9 +9208,9 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9196
9208
  var C;
9197
9209
  b.value = 0, p.value = !0, (C = n.value) == null || C.validate().then(async (N) => {
9198
9210
  if (y.value.when_before_save) {
9199
- const R = y.value.when_before_save, z = new Function("data", "POST", R);
9211
+ const R = y.value.when_before_save, q = new Function("data", "POST", R);
9200
9212
  try {
9201
- N = await z(N, pe).catch((D) => {
9213
+ N = await q(N, pe).catch((D) => {
9202
9214
  b.value = 1, h.value = D.message;
9203
9215
  });
9204
9216
  } catch (D) {
@@ -9212,19 +9224,19 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9212
9224
  ...N
9213
9225
  }).then((R) => {
9214
9226
  if (Ca(), y.value.when_create) {
9215
- const z = m(y.value.when_create);
9216
- z && Ve(z, R.id);
9227
+ const q = m(y.value.when_create);
9228
+ q && Ve(q, R.id);
9217
9229
  }
9218
9230
  et({
9219
9231
  tableId: V
9220
- }).then((z) => {
9232
+ }).then((q) => {
9221
9233
  const D = e.link.split(".");
9222
9234
  let _;
9223
9235
  if (e.linkFn) {
9224
9236
  const B = e.linkFn;
9225
- _ = new Function("sourceData", B)(z);
9237
+ _ = new Function("sourceData", B)(q);
9226
9238
  } else
9227
- _ = z.map((B) => ({
9239
+ _ = q.map((B) => ({
9228
9240
  label: B[D[1]],
9229
9241
  value: B.id,
9230
9242
  disabled: (B == null ? void 0 : B.status) === "0",
@@ -9242,7 +9254,7 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9242
9254
  return ie(
9243
9255
  () => e.show,
9244
9256
  (C) => {
9245
- C && g();
9257
+ C && v();
9246
9258
  }
9247
9259
  ), {
9248
9260
  drawer: o,
@@ -9254,12 +9266,12 @@ const E2 = /* @__PURE__ */ x(B2, [["render", P2]]), L2 = le({
9254
9266
  spinStatus: b,
9255
9267
  formData: I,
9256
9268
  formValues: a,
9257
- spinError: v,
9269
+ spinError: g,
9258
9270
  dynamicLoading: d,
9259
9271
  isMobile: r,
9260
9272
  drawerCancel: l,
9261
9273
  drawerSubmit: f,
9262
- getFormData: g
9274
+ getFormData: v
9263
9275
  };
9264
9276
  }
9265
9277
  }), H2 = { class: "flex flex-col gap-2 flex-1 h-full" }, K2 = { class: "flex justify-between" }, G2 = { class: "flex gap-1" }, W2 = { class: "flex gap-2 h-full" }, J2 = { class: "flex justify-between w-full" }, Q2 = { class: "flex gap-2" };
@@ -9267,7 +9279,7 @@ function X2(e, t, r, n, a, o) {
9267
9279
  const s = S("NButton"), u = S("NSkeleton"), p = S("UzOcr"), h = S("UzForm"), b = S("UzSpin"), I = S("NSpin"), y = S("NDrawerContent"), d = S("NDrawer");
9268
9280
  return c(), O(d, {
9269
9281
  show: e.drawer,
9270
- "onUpdate:show": t[2] || (t[2] = (v) => e.drawer = v),
9282
+ "onUpdate:show": t[2] || (t[2] = (g) => e.drawer = g),
9271
9283
  width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
9272
9284
  height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
9273
9285
  placement: e.isMobile ? "bottom" : e.tableOption.placement,
@@ -9279,7 +9291,7 @@ function X2(e, t, r, n, a, o) {
9279
9291
  M(y, {
9280
9292
  title: e.status === 1 ? e.$t("Common.edit") : e.status === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
9281
9293
  closable: ""
9282
- }, ze({
9294
+ }, qe({
9283
9295
  default: k(() => [
9284
9296
  M(I, { show: e.spinError }, {
9285
9297
  description: k(() => [
@@ -9344,7 +9356,7 @@ function X2(e, t, r, n, a, o) {
9344
9356
  M(b, {
9345
9357
  class: "flex-1",
9346
9358
  value: e.spinShow,
9347
- "onUpdate:value": t[0] || (t[0] = (v) => e.spinShow = v),
9359
+ "onUpdate:value": t[0] || (t[0] = (g) => e.spinShow = g),
9348
9360
  message: e.spinMsg,
9349
9361
  status: e.spinStatus
9350
9362
  }, {
@@ -9375,7 +9387,7 @@ function X2(e, t, r, n, a, o) {
9375
9387
  e.isMobile ? X("", !0) : (c(), O(s, {
9376
9388
  key: 0,
9377
9389
  type: "primary",
9378
- onClick: t[1] || (t[1] = (v) => e.ocrShow = !e.ocrShow),
9390
+ onClick: t[1] || (t[1] = (g) => e.ocrShow = !e.ocrShow),
9379
9391
  tertiary: ""
9380
9392
  }, {
9381
9393
  default: k(() => [
@@ -9470,7 +9482,7 @@ function ry(e, t, r, n, a, o) {
9470
9482
  const ny = /* @__PURE__ */ x(Z2, [["render", ry], ["__scopeId", "data-v-1e15c935"]]), ay = le({
9471
9483
  name: "UzTableMobile",
9472
9484
  components: {
9473
- NCheckbox: qa,
9485
+ NCheckbox: za,
9474
9486
  NRadio: td,
9475
9487
  NPagination: ed,
9476
9488
  NCheckboxGroup: ja,
@@ -9694,7 +9706,7 @@ const dy = le({
9694
9706
  }
9695
9707
  },
9696
9708
  setup(e, { slots: t }) {
9697
- const r = T(!!t.prefix), n = zt(), a = (u) => {
9709
+ const r = T(!!t.prefix), n = qt(), a = (u) => {
9698
9710
  Nc(u);
9699
9711
  }, o = (u) => {
9700
9712
  Tc(u);
@@ -9738,7 +9750,7 @@ function fy(e, t, r, n, a, o) {
9738
9750
  "on-close": e.handleClose,
9739
9751
  "on-update:value": e.handleChange,
9740
9752
  class: "uz-thumbnail"
9741
- }, ze({
9753
+ }, qe({
9742
9754
  suffix: k(() => [
9743
9755
  M(I, null, {
9744
9756
  default: k(() => [
@@ -9913,8 +9925,8 @@ const xy = /* @__PURE__ */ x(by, [["render", _y]]), Cl = /* @__PURE__ */ Object.
9913
9925
  ChartDonut: Ii,
9914
9926
  ChartLine: Di,
9915
9927
  ChartPie: ji,
9916
- ChartRadar: qi,
9917
- Checkbox: zi,
9928
+ ChartRadar: zi,
9929
+ Checkbox: qi,
9918
9930
  CheckupList: Ai,
9919
9931
  CircleMinus: Eu,
9920
9932
  Clipboard: Ri,
@@ -9986,8 +9998,8 @@ const xy = /* @__PURE__ */ x(by, [["render", _y]]), Cl = /* @__PURE__ */ Object.
9986
9998
  ReportMoney: Du,
9987
9999
  ReportSearch: ju,
9988
10000
  Search: Vt,
9989
- Settings: qu,
9990
- SmartHome: zu,
10001
+ Settings: zu,
10002
+ SmartHome: qu,
9991
10003
  Sun: Au,
9992
10004
  TransferIn: Ru,
9993
10005
  TransferOut: Ou,
@@ -10109,51 +10121,51 @@ function Dc() {
10109
10121
  Il = 1;
10110
10122
  var e = Je(), t = Cy(), r = Ty(), n = "Expected a function", a = Math.max, o = Math.min;
10111
10123
  function s(u, p, h) {
10112
- var b, I, y, d, v, l, g = 0, m = !1, f = !1, C = !0;
10124
+ var b, I, y, d, g, l, v = 0, m = !1, f = !1, C = !0;
10113
10125
  if (typeof u != "function")
10114
10126
  throw new TypeError(n);
10115
10127
  p = r(p) || 0, e(h) && (m = !!h.leading, f = "maxWait" in h, y = f ? a(r(h.maxWait) || 0, p) : y, C = "trailing" in h ? !!h.trailing : C);
10116
10128
  function N(j) {
10117
10129
  var U = b, E = I;
10118
- return b = I = void 0, g = j, d = u.apply(E, U), d;
10130
+ return b = I = void 0, v = j, d = u.apply(E, U), d;
10119
10131
  }
10120
10132
  function V(j) {
10121
- return g = j, v = setTimeout(D, p), m ? N(j) : d;
10133
+ return v = j, g = setTimeout(D, p), m ? N(j) : d;
10122
10134
  }
10123
10135
  function R(j) {
10124
- var U = j - l, E = j - g, ae = p - U;
10136
+ var U = j - l, E = j - v, ae = p - U;
10125
10137
  return f ? o(ae, y - E) : ae;
10126
10138
  }
10127
- function z(j) {
10128
- var U = j - l, E = j - g;
10139
+ function q(j) {
10140
+ var U = j - l, E = j - v;
10129
10141
  return l === void 0 || U >= p || U < 0 || f && E >= y;
10130
10142
  }
10131
10143
  function D() {
10132
10144
  var j = t();
10133
- if (z(j))
10145
+ if (q(j))
10134
10146
  return _(j);
10135
- v = setTimeout(D, R(j));
10147
+ g = setTimeout(D, R(j));
10136
10148
  }
10137
10149
  function _(j) {
10138
- return v = void 0, C && b ? N(j) : (b = I = void 0, d);
10150
+ return g = void 0, C && b ? N(j) : (b = I = void 0, d);
10139
10151
  }
10140
10152
  function B() {
10141
- v !== void 0 && clearTimeout(v), g = 0, b = l = I = v = void 0;
10153
+ g !== void 0 && clearTimeout(g), v = 0, b = l = I = g = void 0;
10142
10154
  }
10143
- function q() {
10144
- return v === void 0 ? d : _(t());
10155
+ function z() {
10156
+ return g === void 0 ? d : _(t());
10145
10157
  }
10146
10158
  function A() {
10147
- var j = t(), U = z(j);
10159
+ var j = t(), U = q(j);
10148
10160
  if (b = arguments, I = this, l = j, U) {
10149
- if (v === void 0)
10161
+ if (g === void 0)
10150
10162
  return V(l);
10151
10163
  if (f)
10152
- return clearTimeout(v), v = setTimeout(D, p), N(l);
10164
+ return clearTimeout(g), g = setTimeout(D, p), N(l);
10153
10165
  }
10154
- return v === void 0 && (v = setTimeout(D, p)), d;
10166
+ return g === void 0 && (g = setTimeout(D, p)), d;
10155
10167
  }
10156
- return A.cancel = B, A.flush = q, A;
10168
+ return A.cancel = B, A.flush = z, A;
10157
10169
  }
10158
10170
  return va = s, va;
10159
10171
  }
@@ -10227,11 +10239,11 @@ function jy() {
10227
10239
  }
10228
10240
  return ga = n, ga;
10229
10241
  }
10230
- var qy = jy();
10231
- const zy = /* @__PURE__ */ Ya(qy);
10242
+ var zy = jy();
10243
+ const qy = /* @__PURE__ */ Ya(zy);
10232
10244
  function hk(e, t = 1e3) {
10233
10245
  const r = T(e), n = bt(
10234
- () => zy((...a) => r.value([...a]), t)
10246
+ () => qy((...a) => r.value([...a]), t)
10235
10247
  );
10236
10248
  return Rl(() => {
10237
10249
  n.value.cancel();
@@ -10256,10 +10268,10 @@ function mk(e, t, r) {
10256
10268
  let C;
10257
10269
  if (Array.isArray(t))
10258
10270
  C = await new Promise((V, R) => {
10259
- a.value = R, Promise.all(t.map((z) => z.call(null))).then((z) => {
10260
- V(z);
10261
- }).catch((z) => {
10262
- R(z);
10271
+ a.value = R, Promise.all(t.map((q) => q.call(null))).then((q) => {
10272
+ V(q);
10273
+ }).catch((q) => {
10274
+ R(q);
10263
10275
  });
10264
10276
  });
10265
10277
  else {
@@ -10268,21 +10280,21 @@ function mk(e, t, r) {
10268
10280
  });
10269
10281
  C = await Promise.race([N, t()]);
10270
10282
  }
10271
- l(!1, "success"), v(C), Te(n, C, 0);
10283
+ l(!1, "success"), g(C), Te(n, C, 0);
10272
10284
  } catch (C) {
10273
- g(C), l(!1, "error"), b.value > 0 && (b.value = b.value - 1, setTimeout(() => {
10285
+ v(C), l(!1, "error"), b.value > 0 && (b.value = b.value - 1, setTimeout(() => {
10274
10286
  d();
10275
10287
  }, I.value));
10276
10288
  }
10277
10289
  }
10278
- }, v = (C) => {
10290
+ }, g = (C) => {
10279
10291
  if (C) {
10280
10292
  let N = C;
10281
10293
  r != null && r.formatResult && (N = r.formatResult(C)), o.value = N;
10282
10294
  }
10283
10295
  }, l = (C, N) => {
10284
10296
  u.value = C, N && (p.value = N);
10285
- }, g = (C) => {
10297
+ }, v = (C) => {
10286
10298
  h.value = C;
10287
10299
  }, m = () => {
10288
10300
  go(), a.value && a.value();
@@ -10291,12 +10303,12 @@ function mk(e, t, r) {
10291
10303
  d();
10292
10304
  }, r == null ? void 0 : r.pollingInterval));
10293
10305
  };
10294
- if (r != null && r.retry && r.pollingInterval === void 0 && (b.value = r.retry.retryCount || 3, I.value = r.retry.retryInterval || 1e3 * 2 ** 3), r != null && r.initialData && v(r.initialData()), r === void 0 || r.initialData === void 0 || r.cache === void 0 || r.cache === !0)
10306
+ if (r != null && r.retry && r.pollingInterval === void 0 && (b.value = r.retry.retryCount || 3, I.value = r.retry.retryInterval || 1e3 * 2 ** 3), r != null && r.initialData && g(r.initialData()), r === void 0 || r.initialData === void 0 || r.cache === void 0 || r.cache === !0)
10295
10307
  try {
10296
10308
  const C = Ae(n, !1);
10297
- C && v(C);
10309
+ C && g(C);
10298
10310
  } catch {
10299
- v(!1);
10311
+ g(!1);
10300
10312
  }
10301
10313
  return r != null && r.pollingInterval ? (d(), s.value = setInterval(() => {
10302
10314
  d();
@@ -10312,9 +10324,9 @@ function mk(e, t, r) {
10312
10324
  refetch: f
10313
10325
  };
10314
10326
  }
10315
- const Ay = "0.0.4";
10316
- let qc;
10317
- async function zc() {
10327
+ const Ay = "0.0.5";
10328
+ let zc;
10329
+ async function qc() {
10318
10330
  const e = await fetch(
10319
10331
  `${window.location.protocol}//${window.location.host}`,
10320
10332
  {
@@ -10325,11 +10337,11 @@ async function zc() {
10325
10337
  return e.headers.get("etag") || e.headers.get("last-modified");
10326
10338
  }
10327
10339
  async function Ry() {
10328
- const e = await zc();
10329
- qc !== e && Tm(!0);
10340
+ const e = await qc();
10341
+ zc !== e && Tm(!0);
10330
10342
  }
10331
10343
  async function Oy() {
10332
- qc = await zc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
10344
+ zc = await qc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
10333
10345
  Ry();
10334
10346
  }, 60 * 1e3);
10335
10347
  }
@@ -10400,7 +10412,7 @@ function jl(e, t, r, n = !1) {
10400
10412
  typeof o == "function" && (e[t] = o);
10401
10413
  }
10402
10414
  }
10403
- function ql(e, t, r, n = !1) {
10415
+ function zl(e, t, r, n = !1) {
10404
10416
  e.addEventListener(t, r, n);
10405
10417
  }
10406
10418
  function Vy() {
@@ -10413,14 +10425,14 @@ function Vy() {
10413
10425
  url: r[1],
10414
10426
  startTime: Date.now(),
10415
10427
  type: "xhr"
10416
- }, ql(this, "error", function() {
10428
+ }, zl(this, "error", function() {
10417
10429
  this.xhr.url.indexOf("log/submit") === -1 && Dt(3, this.xhr.url, `Request-${this.status}`);
10418
10430
  }), t.apply(this, r);
10419
10431
  }), jl(e, "send", (t) => function(...r) {
10420
10432
  const { url: n } = this.xhr;
10421
10433
  this.ontimeout = function() {
10422
10434
  Dt(3, n, "Network Timeout");
10423
- }, ql(this, "loadend", function() {
10435
+ }, zl(this, "loadend", function() {
10424
10436
  (this.status === 500 || this.status === 405) && Dt(3, n, `${r[0]}-${this.status}-${this.response}`);
10425
10437
  }), t.apply(this, r);
10426
10438
  });
@@ -10530,8 +10542,8 @@ export {
10530
10542
  Ii as ChartDonut,
10531
10543
  Di as ChartLine,
10532
10544
  ji as ChartPie,
10533
- qi as ChartRadar,
10534
- zi as Checkbox,
10545
+ zi as ChartRadar,
10546
+ qi as Checkbox,
10535
10547
  Ai as CheckupList,
10536
10548
  Eu as CircleMinus,
10537
10549
  Ri as Clipboard,
@@ -10606,8 +10618,8 @@ export {
10606
10618
  Du as ReportMoney,
10607
10619
  ju as ReportSearch,
10608
10620
  Vt as Search,
10609
- qu as Settings,
10610
- zu as SmartHome,
10621
+ zu as Settings,
10622
+ qu as SmartHome,
10611
10623
  Au as Sun,
10612
10624
  Ru as TransferIn,
10613
10625
  Ou as TransferOut,