@unizhen/ui 0.0.57 → 0.0.59

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.
package/lib/ui.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as se, createElementBlock as d, openBlock as a, createStaticVNode as R, createElementVNode as o, ref as x, watch as ce, nextTick as Te, h as Z, reactive as Lt, resolveComponent as $, createBlock as I, withCtx as m, toDisplayString as j, createVNode as _, computed as Be, normalizeStyle as $e, inject as Ve, normalizeClass as ie, createSlots as Se, createTextVNode as H, Fragment as ae, renderList as ke, provide as Vt, onMounted as Ue, resolveDirective as jn, withDirectives as Qe, createCommentVNode as E, mergeProps as It, withModifiers as st, watchEffect as Rn, onBeforeUnmount as Et, withKeys as Xa, renderSlot as be, markRaw as Ya, defineAsyncComponent as Za, onUnmounted as An, vShow as Ut, resolveDynamicComponent as xn } from "vue";
2
- import { createDiscreteApi as es, NPopover as Ee, NFlex as Pn, NButton as ge, NPopconfirm as Kt, NTooltip as Hn, NIcon as we, NDropdown as ts, NCascader as qn, NCheckboxGroup as Wt, NCheckbox as Gt, NColorPicker as ns, NSwitch as os, NTimePicker as rs, NDatePicker as as, NInputNumber as ss, NSelect as ls, NInput as is, NDivider as Qt, NFormItem as Jt, NForm as Xt, NSpin as ut, NInputGroup as Yt, NUploadDragger as cs, NImage as Ln, NUpload as En, useNotification as dt, NImageGroup as us, NModal as ds, NInputGroupLabel as Kn, NGridItem as Wn, NGrid as Gn, NButtonGroup as ps, NDrawerContent as Zt, NDrawer as en, NTag as fs, NEllipsis as hs, NRadioGroup as Qn, NSkeleton as Jn, NDataTable as tn, NPagination as ms, NRadio as ws, NTabPane as gs, NTabs as vs, darkTheme as pe, NConfigProvider as ks, dateZhCN as ys, zhCN as bs } from "naive-ui";
1
+ import { defineComponent as se, createElementBlock as d, openBlock as a, createStaticVNode as R, createElementVNode as o, ref as $, watch as le, nextTick as Ne, h as Z, reactive as Lt, resolveComponent as y, createBlock as I, withCtx as m, toDisplayString as j, createVNode as _, computed as Be, normalizeStyle as $e, inject as Ve, normalizeClass as ce, createSlots as ze, createTextVNode as H, Fragment as oe, renderList as we, provide as Vt, resolveDirective as jn, withDirectives as Qe, createCommentVNode as q, onMounted as Le, mergeProps as It, withModifiers as st, watchEffect as Rn, onBeforeUnmount as Et, withKeys as Xa, renderSlot as be, markRaw as Ya, defineAsyncComponent as Za, onUnmounted as An, vShow as Ut, resolveDynamicComponent as xn } from "vue";
2
+ import { createDiscreteApi as es, NPopover as Ee, NFlex as Pn, NButton as ve, NPopconfirm as Kt, NTooltip as Hn, NIcon as ge, NDropdown as ts, NCascader as qn, NCheckboxGroup as Wt, NCheckbox as Gt, NColorPicker as ns, NSwitch as os, NTimePicker as rs, NDatePicker as as, NInputNumber as ss, NSelect as ls, NInput as is, NDivider as Qt, NFormItem as Jt, NForm as Xt, NSpin as ut, NInputGroup as Yt, NUploadDragger as cs, NImage as Ln, NUpload as En, useNotification as dt, NImageGroup as us, NModal as ds, NInputGroupLabel as Kn, NGridItem as Wn, NGrid as Gn, NButtonGroup as ps, NDrawerContent as Zt, NDrawer as en, NTag as fs, NEllipsis as hs, NRadioGroup as Qn, NSkeleton as Jn, NDataTable as tn, NPagination as ms, NRadio as ws, NTabPane as gs, NTabs as vs, darkTheme as pe, NConfigProvider as ks, dateZhCN as ys, zhCN as bs } from "naive-ui";
3
3
  import nn from "axios";
4
4
  import { createRouter as $s, createWebHistory as xs, useRouter as _s, useRoute as pt } from "vue-router";
5
5
  import { createI18n as Cs, useI18n as ft } from "vue-i18n";
6
6
  import { cloneDeep as J, compact as Ms, debounce as Xn, throttle as Ns } from "lodash-es";
7
- import ze from "dayjs";
7
+ import De from "dayjs";
8
8
  import Yn from "vuedraggable";
9
- import Pe from "json5";
9
+ import Ae from "json5";
10
10
  import Ss from "jsqr";
11
11
  import zs from "vue-clipboard3";
12
12
  import { createWorker as Ds } from "tesseract.js";
@@ -2319,16 +2319,16 @@ const oa = /* @__PURE__ */ w(Tf, [["render", Bf]]), ra = /* @__PURE__ */ Object.
2319
2319
  }
2320
2320
  },
2321
2321
  setup(e) {
2322
- const t = x(!0), n = x(), c = (l) => {
2322
+ const t = $(!0), n = $(), c = (l) => {
2323
2323
  if (t.value = !1, l && typeof l == "string") {
2324
- n.value = ra[l], Te(() => {
2324
+ n.value = ra[l], Ne(() => {
2325
2325
  t.value = !0;
2326
2326
  });
2327
2327
  return;
2328
2328
  }
2329
2329
  n.value = l;
2330
2330
  };
2331
- return c(e.icon), ce(
2331
+ return c(e.icon), le(
2332
2332
  () => e.icon,
2333
2333
  (l) => {
2334
2334
  c(l);
@@ -2337,7 +2337,7 @@ const oa = /* @__PURE__ */ w(Tf, [["render", Bf]]), ra = /* @__PURE__ */ Object.
2337
2337
  }
2338
2338
  }), Vf = ra;
2339
2339
  let Ie;
2340
- function om(e, t = "/") {
2340
+ function rm(e, t = "/") {
2341
2341
  return Ie = $s({
2342
2342
  history: xs(t),
2343
2343
  routes: e,
@@ -2413,7 +2413,7 @@ class Of {
2413
2413
  const et = new Of("qx"), { notification: aa, dialog: jf } = es(["notification", "dialog"], {
2414
2414
  configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
2415
2415
  notificationProviderProps: { placement: "bottom-right" }
2416
- }), qe = aa, sa = jf;
2416
+ }), He = aa, sa = jf;
2417
2417
  function ne(e) {
2418
2418
  console.log(e), aa.error({
2419
2419
  content: e.message,
@@ -2442,14 +2442,14 @@ function xe(e, t, n = "1 Day") {
2442
2442
  }
2443
2443
  et.set(e, t, n);
2444
2444
  }
2445
- function De(e, t) {
2445
+ function Te(e, t) {
2446
2446
  return et.get(e, t);
2447
2447
  }
2448
2448
  const Ot = (e) => {
2449
2449
  et.delete(e);
2450
2450
  }, Rf = (e) => {
2451
2451
  et.deleteByPrefix(e);
2452
- }, rm = () => {
2452
+ }, am = () => {
2453
2453
  et.deleteAll();
2454
2454
  }, Nt = (e = 0) => {
2455
2455
  const t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
@@ -2502,7 +2502,7 @@ function Mn(e) {
2502
2502
  records: e.records
2503
2503
  };
2504
2504
  }
2505
- const je = (e, t = "yyyy-MM-dd") => {
2505
+ const Oe = (e, t = "yyyy-MM-dd") => {
2506
2506
  if (!e)
2507
2507
  return "";
2508
2508
  typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
@@ -2533,7 +2533,7 @@ const je = (e, t = "yyyy-MM-dd") => {
2533
2533
  return t;
2534
2534
  }, Af = (e) => {
2535
2535
  document.title = `${e} - 杭州宇臻智能`;
2536
- }, am = (e, t = 500) => {
2536
+ }, sm = (e, t = 500) => {
2537
2537
  const n = e;
2538
2538
  let c;
2539
2539
  const l = function(...i) {
@@ -2543,10 +2543,10 @@ const je = (e, t = "yyyy-MM-dd") => {
2543
2543
  };
2544
2544
  return l;
2545
2545
  };
2546
- function sm(e, t) {
2546
+ function lm(e, t) {
2547
2547
  e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
2548
2548
  }
2549
- function lm(e, t = 0) {
2549
+ function im(e, t = 0) {
2550
2550
  const n = ["", "k", "m", "b", "t"], c = Math.floor(Math.log10(Math.abs(e)) / 3), l = Math.max(0, Math.min(c, n.length - 1)), s = n[l];
2551
2551
  return s ? (e / Math.pow(10, l * 3)).toFixed(t) + s : (e / Math.pow(10, l * 3)).toFixed(0);
2552
2552
  }
@@ -2598,7 +2598,7 @@ const ca = () => {
2598
2598
  };
2599
2599
  window.addEventListener("resize", ca);
2600
2600
  ca();
2601
- const Ne = /* @__PURE__ */ new Map(), Yf = Object.prototype.hasOwnProperty;
2601
+ const Se = /* @__PURE__ */ new Map(), Yf = Object.prototype.hasOwnProperty;
2602
2602
  function ua(e, t) {
2603
2603
  const n = [];
2604
2604
  for (const c in e) {
@@ -2620,19 +2620,19 @@ const Zf = (e) => {
2620
2620
  return n && n.groups && n.groups.fileName;
2621
2621
  }
2622
2622
  return "";
2623
- }, Oe = nn.create({
2623
+ }, Ue = nn.create({
2624
2624
  timeout: 3e5,
2625
2625
  responseType: "json",
2626
2626
  headers: {
2627
2627
  "Content-Type": "application/json"
2628
2628
  }
2629
2629
  });
2630
- Oe.defaults.timeout = 3e5;
2630
+ Ue.defaults.timeout = 3e5;
2631
2631
  let jt = nn.CancelToken.source();
2632
- Oe.interceptors.request.use(
2632
+ Ue.interceptors.request.use(
2633
2633
  (e) => {
2634
2634
  e.cancelToken = jt.token, e.headers.Language = de.lang, e.headers.Platform = de.isMobile ? "mobile" : "pc";
2635
- const t = De(
2635
+ const t = Te(
2636
2636
  "token",
2637
2637
  !1
2638
2638
  );
@@ -2644,7 +2644,7 @@ Oe.interceptors.request.use(
2644
2644
  },
2645
2645
  (e) => Promise.reject(e)
2646
2646
  );
2647
- Oe.interceptors.response.use(
2647
+ Ue.interceptors.response.use(
2648
2648
  (e) => {
2649
2649
  const t = e.data;
2650
2650
  if (t.code === 401 && (Ot("token"), Ie.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
@@ -2658,70 +2658,70 @@ Oe.interceptors.response.use(
2658
2658
  const n = t.data;
2659
2659
  return Promise.resolve(n);
2660
2660
  } else {
2661
- qe.destroyAll();
2661
+ He.destroyAll();
2662
2662
  const n = t.message;
2663
- return qe.error({
2663
+ return He.error({
2664
2664
  content: n || Fe.global.t("Notice.error"),
2665
2665
  duration: 3e3
2666
2666
  }), Promise.reject(n);
2667
2667
  }
2668
2668
  },
2669
- (e) => e ? (qe.destroyAll(), e.code === "ERR_NETWORK" ? (qe.error({
2669
+ (e) => e ? (He.destroyAll(), e.code === "ERR_NETWORK" ? (He.error({
2670
2670
  content: Fe.global.t("Notice.network"),
2671
2671
  duration: 3e3
2672
- }), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (Ot("token"), window.location.href = "/login"), qe.error({
2672
+ }), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (Ot("token"), window.location.href = "/login"), He.error({
2673
2673
  content: Fe.global.t("Notice.error"),
2674
2674
  duration: 3e3
2675
2675
  }), Promise.reject(Fe.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(Fe.global.t("Notice.error"))
2676
2676
  );
2677
2677
  const kt = "/apiserver/", Nn = () => {
2678
2678
  jt.cancel(), jt = nn.CancelToken.source();
2679
- }, im = (e, t, n = "json", c = 3e5) => {
2679
+ }, cm = (e, t, n = "json", c = 3e5) => {
2680
2680
  const l = JSON.stringify({
2681
2681
  fetchUri: e,
2682
2682
  ...t
2683
2683
  });
2684
- if (Ne.has(l))
2685
- return Ne.get(l);
2686
- const s = Oe({
2684
+ if (Se.has(l))
2685
+ return Se.get(l);
2686
+ const s = Ue({
2687
2687
  url: `${kt}${e}`,
2688
2688
  method: "GET",
2689
2689
  data: t,
2690
2690
  responseType: n,
2691
2691
  timeout: c
2692
- }).then((i) => (Ne.delete(l), i)).catch(() => {
2693
- Ne.delete(l);
2692
+ }).then((i) => (Se.delete(l), i)).catch(() => {
2693
+ Se.delete(l);
2694
2694
  });
2695
- return Ne.set(l, s), s;
2695
+ return Se.set(l, s), s;
2696
2696
  }, ue = (e, t = {}, n = "json", c = 3e5) => {
2697
2697
  const l = JSON.stringify({
2698
2698
  fetchUri: e,
2699
2699
  ...t
2700
2700
  });
2701
- if (Ne.has(l))
2702
- return Ne.get(l);
2703
- const s = Oe({
2701
+ if (Se.has(l))
2702
+ return Se.get(l);
2703
+ const s = Ue({
2704
2704
  url: `${kt}${e}`,
2705
2705
  method: "POST",
2706
2706
  data: t,
2707
2707
  responseType: n,
2708
2708
  timeout: c
2709
- }).then((i) => (Ne.delete(l), Promise.resolve(i))).catch((i) => (Ne.delete(l), Promise.reject(i)));
2710
- return Ne.set(l, s), s;
2711
- }, cm = (e, t = {}, n = "blob", c = 3e5) => Oe({
2709
+ }).then((i) => (Se.delete(l), Promise.resolve(i))).catch((i) => (Se.delete(l), Promise.reject(i)));
2710
+ return Se.set(l, s), s;
2711
+ }, um = (e, t = {}, n = "blob", c = 3e5) => Ue({
2712
2712
  url: `${kt}${e}`,
2713
2713
  method: "POST",
2714
2714
  data: t,
2715
2715
  responseType: n,
2716
2716
  timeout: c
2717
- }), um = (e) => Oe(e), da = (e, t) => Oe({
2717
+ }), dm = (e) => Ue(e), da = (e, t) => Ue({
2718
2718
  headers: {
2719
2719
  "Content-Type": "multipart/form-data"
2720
2720
  },
2721
2721
  url: `${kt}${e}`,
2722
2722
  method: "POST",
2723
2723
  data: t
2724
- }), eh = (e) => ue("dynamic-table/queryById", { id: e }), th = (e) => ue("dynamic-table/createTime", { id: e }), Re = (e) => ue("table/query", e), pn = (e) => ue("table/submit", e), nh = (e) => ue("table/delete", e), Sn = (e, t, n) => ue("calculation/sqlExecute", {
2724
+ }), eh = (e) => ue("dynamic-table/queryById", { id: e }), th = (e) => ue("dynamic-table/createTime", { id: e }), je = (e) => ue("table/query", e), pn = (e) => ue("table/submit", e), nh = (e) => ue("table/delete", e), Sn = (e, t, n) => ue("calculation/sqlExecute", {
2725
2725
  calculationIds: e,
2726
2726
  linkId: t,
2727
2727
  ...n
@@ -2751,7 +2751,7 @@ const kt = "/apiserver/", Nn = () => {
2751
2751
  () => {
2752
2752
  n && n();
2753
2753
  },
2754
- (s) => Re({
2754
+ (s) => je({
2755
2755
  id: s,
2756
2756
  tableId: c
2757
2757
  }),
@@ -2759,7 +2759,7 @@ const kt = "/apiserver/", Nn = () => {
2759
2759
  tableId: c,
2760
2760
  ...s
2761
2761
  }),
2762
- qe,
2762
+ He,
2763
2763
  ue
2764
2764
  );
2765
2765
  } catch (l) {
@@ -2785,7 +2785,7 @@ const kt = "/apiserver/", Nn = () => {
2785
2785
  e.onClick && typeof e.onClick == "function" && (s.onClick = e.onClick.bind(void 0, t, n, c));
2786
2786
  }
2787
2787
  return e.icon && (i.icon = () => Z(
2788
- we,
2788
+ ge,
2789
2789
  {},
2790
2790
  {
2791
2791
  default: () => Z(
@@ -2798,7 +2798,7 @@ const kt = "/apiserver/", Nn = () => {
2798
2798
  }
2799
2799
  )
2800
2800
  }
2801
- )), Z(ge, s, i);
2801
+ )), Z(ve, s, i);
2802
2802
  }, rh = (e, t, n, c, l) => {
2803
2803
  const s = {
2804
2804
  placement: "left"
@@ -3023,8 +3023,8 @@ const kt = "/apiserver/", Nn = () => {
3023
3023
  name: "UzBack",
3024
3024
  components: {
3025
3025
  ArrowNarrowLeft: on,
3026
- NButton: ge,
3027
- NIcon: we
3026
+ NButton: ve,
3027
+ NIcon: ge
3028
3028
  },
3029
3029
  props: {
3030
3030
  to: {
@@ -3042,7 +3042,7 @@ const kt = "/apiserver/", Nn = () => {
3042
3042
  }
3043
3043
  });
3044
3044
  function ch(e, t, n, c, l, s) {
3045
- const i = $("ArrowNarrowLeft"), p = $("NIcon"), C = $("NButton");
3045
+ const i = y("ArrowNarrowLeft"), p = y("NIcon"), C = y("NButton");
3046
3046
  return a(), I(C, {
3047
3047
  quaternary: "",
3048
3048
  onClick: e.back
@@ -3104,12 +3104,12 @@ const uh = /* @__PURE__ */ w(ih, [["render", ch]]), wa = 120, dh = 10, lt = wa /
3104
3104
  }
3105
3105
  },
3106
3106
  setup(e) {
3107
- const t = x({
3107
+ const t = $({
3108
3108
  show: !1,
3109
3109
  text: "",
3110
3110
  x: 0,
3111
3111
  y: 0
3112
- }), n = x(), c = x(), l = x(), s = Be(() => `rgba(${St(e.color)},0.1)`), i = Be(() => `rgba(${St(e.color).split(",").map((u) => {
3112
+ }), n = $(), c = $(), l = $(), s = Be(() => `rgba(${St(e.color)},0.1)`), i = Be(() => `rgba(${St(e.color).split(",").map((u) => {
3113
3113
  let r = Number(u) - 50;
3114
3114
  return r < 0 && (r = 0), r;
3115
3115
  })},1)`), p = Be(() => `rgba(${St(e.color)},1)`);
@@ -3127,8 +3127,8 @@ const uh = /* @__PURE__ */ w(ih, [["render", ch]]), wa = 120, dh = 10, lt = wa /
3127
3127
  },
3128
3128
  calculateSemicircle: (S) => {
3129
3129
  n.value = `${Fn} ${fh}`, c.value = `translate(${lt}, ${lt + 9})`, l.value = `translate(${lt}, ${lt + 24})`;
3130
- let v = S || Number(e.circle);
3131
- return v > 100 && (v = 100), v <= 0 && (v = 1e-4), Fn * (1 - v / 100);
3130
+ let b = S || Number(e.circle);
3131
+ return b > 100 && (b = 100), b <= 0 && (b = 1e-4), Fn * (1 - b / 100);
3132
3132
  },
3133
3133
  calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
3134
3134
  };
@@ -3312,7 +3312,7 @@ function Bh(e, t, n, c, l, s) {
3312
3312
  const Vh = /* @__PURE__ */ w(hh, [["render", Bh]]), Ih = se({
3313
3313
  name: "UzFormItem",
3314
3314
  components: {
3315
- NIcon: we,
3315
+ NIcon: ge,
3316
3316
  NInput: is,
3317
3317
  NSelect: ls,
3318
3318
  NInputNumber: ss,
@@ -3356,46 +3356,46 @@ const Vh = /* @__PURE__ */ w(hh, [["render", Bh]]), Ih = se({
3356
3356
  }
3357
3357
  },
3358
3358
  setup(e) {
3359
- const t = Ve("mainFormValue"), n = x(!1), c = x([]);
3359
+ const t = Ve("mainFormValue"), n = $(!1), c = $([]);
3360
3360
  return {
3361
3361
  isMobile: Be(() => de.isMobile),
3362
3362
  showDropdown: n,
3363
3363
  dropdownOptions: c,
3364
- dayjs: ze,
3365
- updateValue: async (h, f, b) => {
3364
+ dayjs: De,
3365
+ updateValue: async (h, f, x) => {
3366
3366
  if (h.form.updateValue) {
3367
3367
  const D = { ...e.formValue };
3368
3368
  if (typeof h.form.updateValue == "string")
3369
3369
  try {
3370
- const q = h.form.updateValue, K = new Function(
3370
+ const L = h.form.updateValue, G = new Function(
3371
3371
  "value",
3372
3372
  "formValue",
3373
3373
  "mainFormValue",
3374
3374
  "index",
3375
3375
  "option",
3376
3376
  "POST",
3377
- q
3377
+ L
3378
3378
  );
3379
3379
  try {
3380
- const O = await K(
3380
+ const U = await G(
3381
3381
  f,
3382
3382
  D,
3383
3383
  t,
3384
3384
  e.itemIndex,
3385
- b,
3385
+ x,
3386
3386
  ue
3387
3387
  );
3388
- O && typeof O == "object" && Object.keys(O).forEach((B) => {
3389
- e.formValue[B] = O[B];
3388
+ U && typeof U == "object" && Object.keys(U).forEach((B) => {
3389
+ e.formValue[B] = U[B];
3390
3390
  });
3391
- } catch (O) {
3392
- ne(O);
3391
+ } catch (U) {
3392
+ ne(U);
3393
3393
  }
3394
- } catch (q) {
3395
- ne(q);
3394
+ } catch (L) {
3395
+ ne(L);
3396
3396
  }
3397
3397
  else
3398
- h.form.updateValue(f, D, b, ue);
3398
+ h.form.updateValue(f, D, x, ue);
3399
3399
  }
3400
3400
  },
3401
3401
  selectFallback: (h) => h ? {
@@ -3453,8 +3453,8 @@ const Vh = /* @__PURE__ */ w(hh, [["render", Bh]]), Ih = se({
3453
3453
  const f = J(e.item.params.options);
3454
3454
  if (e.formValue && e.formValue[h]) {
3455
3455
  const D = e.formValue[h].toLocaleLowerCase();
3456
- f.forEach((q) => {
3457
- q.label && q.label.toLocaleLowerCase().indexOf(D) > -1 ? q.show = !0 : q.show = !1;
3456
+ f.forEach((L) => {
3457
+ L.label && L.label.toLocaleLowerCase().indexOf(D) > -1 ? L.show = !0 : L.show = !1;
3458
3458
  });
3459
3459
  } else
3460
3460
  f.forEach((D) => {
@@ -3484,7 +3484,7 @@ const Vh = /* @__PURE__ */ w(hh, [["render", Bh]]), Ih = se({
3484
3484
  }
3485
3485
  }), Uh = { class: "flex flex-wrap gap-2" };
3486
3486
  function Oh(e, t, n, c, l, s) {
3487
- const i = $("NInput"), p = $("NDropdown"), C = $("NInputNumber"), N = $("NDatePicker"), T = $("NSelect"), S = $("NCascader"), v = $("NColorPicker"), u = $("NCheckbox"), r = $("NCheckboxGroup"), y = $("NTimePicker"), g = $("NSwitch"), h = $("UzFormItemUpload");
3487
+ const i = y("NInput"), p = y("NDropdown"), C = y("NInputNumber"), N = y("NDatePicker"), T = y("NSelect"), S = y("NCascader"), b = y("NColorPicker"), u = y("NCheckbox"), r = y("NCheckboxGroup"), v = y("NTimePicker"), g = y("NSwitch"), h = y("UzFormItemUpload");
3488
3488
  return e.item.input === "input" ? (a(), I(i, {
3489
3489
  key: 0,
3490
3490
  value: e.formValue[e.item.key],
@@ -3504,8 +3504,8 @@ function Oh(e, t, n, c, l, s) {
3504
3504
  maxlength: e.item.params.maxlength,
3505
3505
  rows: e.item.params.rows,
3506
3506
  "show-count": !!e.item.params.maxlength,
3507
- class: ie(e.checkClassReadonly())
3508
- }, Se({ _: 2 }, [
3507
+ class: ce(e.checkClassReadonly())
3508
+ }, ze({ _: 2 }, [
3509
3509
  e.item.params.prefix ? {
3510
3510
  name: "prefix",
3511
3511
  fn: m(() => [
@@ -3557,8 +3557,8 @@ function Oh(e, t, n, c, l, s) {
3557
3557
  maxlength: e.item.params.maxlength,
3558
3558
  rows: e.item.params.rows,
3559
3559
  "show-count": !!e.item.params.maxlength,
3560
- class: ie(e.checkClassReadonly())
3561
- }, Se({ _: 2 }, [
3560
+ class: ce(e.checkClassReadonly())
3561
+ }, ze({ _: 2 }, [
3562
3562
  e.item.params.prefix ? {
3563
3563
  name: "prefix",
3564
3564
  fn: m(() => [
@@ -3594,8 +3594,8 @@ function Oh(e, t, n, c, l, s) {
3594
3594
  step: e.item.params.step,
3595
3595
  showButton: e.item.params.showButton,
3596
3596
  precision: e.item.params.precision,
3597
- class: ie(e.checkClassReadonly())
3598
- }, Se({ _: 2 }, [
3597
+ class: ce(e.checkClassReadonly())
3598
+ }, ze({ _: 2 }, [
3599
3599
  e.item.params.prefix ? {
3600
3600
  name: "prefix",
3601
3601
  fn: m(() => [
@@ -3615,13 +3615,13 @@ function Oh(e, t, n, c, l, s) {
3615
3615
  value: e.formValue[e.item.key],
3616
3616
  "onUpdate:value": [
3617
3617
  t[7] || (t[7] = (f) => e.formValue[e.item.key] = f),
3618
- t[8] || (t[8] = (f, b) => {
3618
+ t[8] || (t[8] = (f, x) => {
3619
3619
  e.item.params.type.indexOf("daterange") > -1 ? e.formValue[e.item.key] = [
3620
3620
  // @ts-ignore
3621
3621
  e.dayjs(f[0]).startOf("date").valueOf(),
3622
3622
  // @ts-ignore
3623
3623
  e.dayjs(f[1]).endOf("date").valueOf()
3624
- ] : e.formValue[e.item.key] = f, b && (e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = b[0], e.formValue[`${e.item.key}EndStr`] = b[1]) : e.formValue[`${e.item.key}Str`] = b), e.updateValue(e.item, f);
3624
+ ] : e.formValue[e.item.key] = f, x && (e.item.params.type.indexOf("range") > -1 ? (e.formValue[`${e.item.key}StartStr`] = x[0], e.formValue[`${e.item.key}EndStr`] = x[1]) : e.formValue[`${e.item.key}Str`] = x), e.updateValue(e.item, f);
3625
3625
  })
3626
3626
  ],
3627
3627
  type: e.item.params.type,
@@ -3631,12 +3631,12 @@ function Oh(e, t, n, c, l, s) {
3631
3631
  clearable: e.checkClearable(),
3632
3632
  "time-picker-props": e.item.params.timePickerProps,
3633
3633
  "input-readonly": e.isMobile,
3634
- "is-date-disabled": (f, b) => {
3634
+ "is-date-disabled": (f, x) => {
3635
3635
  const D = e.item;
3636
- return D.params.isDateDisabled ? D.params.isDateDisabled(f, b) : !1;
3636
+ return D.params.isDateDisabled ? D.params.isDateDisabled(f, x) : !1;
3637
3637
  },
3638
3638
  "close-on-select": !0,
3639
- class: ie(e.checkClassReadonly())
3639
+ class: ce(e.checkClassReadonly())
3640
3640
  }, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "input-readonly", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (a(), I(N, {
3641
3641
  key: 5,
3642
3642
  "formatted-value": e.formValue[e.item.key],
@@ -3659,19 +3659,19 @@ function Oh(e, t, n, c, l, s) {
3659
3659
  "input-readonly": e.isMobile,
3660
3660
  format: e.item.params.format,
3661
3661
  "time-picker-props": e.item.params.timePickerProps,
3662
- "is-date-disabled": (f, b) => {
3662
+ "is-date-disabled": (f, x) => {
3663
3663
  const D = e.item;
3664
- return D.params.isDateDisabled ? D.params.isDateDisabled(f, b) : !1;
3664
+ return D.params.isDateDisabled ? D.params.isDateDisabled(f, x) : !1;
3665
3665
  },
3666
3666
  "close-on-select": !0,
3667
- class: ie(e.checkClassReadonly())
3667
+ class: ce(e.checkClassReadonly())
3668
3668
  }, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "input-readonly", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (a(), I(T, {
3669
3669
  key: 6,
3670
3670
  value: e.formValue[e.item.key],
3671
3671
  "onUpdate:value": [
3672
3672
  t[11] || (t[11] = (f) => e.formValue[e.item.key] = f),
3673
- t[12] || (t[12] = (f, b) => {
3674
- e.formValue[e.item.key] = f, e.item.params.multiple ? e.formValue[`${e.item.key}Str`] = b.map((D) => D.label).join(",") : e.formValue[`${e.item.key}Str`] = b.label, e.updateValue(e.item, f, b);
3673
+ t[12] || (t[12] = (f, x) => {
3674
+ e.formValue[e.item.key] = f, e.item.params.multiple ? e.formValue[`${e.item.key}Str`] = x.map((D) => D.label).join(",") : e.formValue[`${e.item.key}Str`] = x.label, e.updateValue(e.item, f, x);
3675
3675
  })
3676
3676
  ],
3677
3677
  placeholder: e.showPlaceholder(e.item),
@@ -3691,20 +3691,20 @@ function Oh(e, t, n, c, l, s) {
3691
3691
  label: f,
3692
3692
  value: `op${Date.now()}-#create#-${f}`
3693
3693
  }) : void 0,
3694
- class: ie(e.checkClassReadonly())
3694
+ class: ce(e.checkClassReadonly())
3695
3695
  }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (a(), I(S, {
3696
3696
  key: 7,
3697
3697
  value: e.formValue[e.item.key],
3698
3698
  "onUpdate:value": [
3699
3699
  t[13] || (t[13] = (f) => e.formValue[e.item.key] = f),
3700
- t[14] || (t[14] = (f, b, D) => {
3701
- const q = e.item;
3702
- let K = f, O = f;
3703
- if (q.params.multiple) {
3700
+ t[14] || (t[14] = (f, x, D) => {
3701
+ const L = e.item;
3702
+ let G = f, U = f;
3703
+ if (L.params.multiple) {
3704
3704
  let B = f.filter((F) => F);
3705
- B.length === 0 ? (K = [], O = []) : (K = B, O = B);
3705
+ B.length === 0 ? (G = [], U = []) : (G = B, U = B);
3706
3706
  }
3707
- e.formValue[e.item.key] = K, D && (e.formValue[`${e.item.key}Str`] = D.map((B) => B.label).join("/")), e.updateValue(e.item, O);
3707
+ e.formValue[e.item.key] = G, D && (e.formValue[`${e.item.key}Str`] = D.map((B) => B.label).join("/")), e.updateValue(e.item, U);
3708
3708
  })
3709
3709
  ],
3710
3710
  placeholder: e.showPlaceholder(e.item),
@@ -3714,10 +3714,10 @@ function Oh(e, t, n, c, l, s) {
3714
3714
  clearable: e.checkClearable(),
3715
3715
  filterable: e.item.params.filterable,
3716
3716
  multiple: e.item.params.multiple,
3717
- class: ie(e.checkClassReadonly()),
3717
+ class: ce(e.checkClassReadonly()),
3718
3718
  "check-strategy": "all",
3719
3719
  maxTagCount: "responsive"
3720
- }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (a(), I(v, {
3720
+ }, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (a(), I(b, {
3721
3721
  key: 8,
3722
3722
  value: e.formValue[e.item.key],
3723
3723
  "onUpdate:value": t[15] || (t[15] = (f) => e.formValue[e.item.key] = f),
@@ -3732,7 +3732,7 @@ function Oh(e, t, n, c, l, s) {
3732
3732
  "#F0A020",
3733
3733
  "rgba(208, 48, 80, 1)"
3734
3734
  ],
3735
- class: ie(e.checkClassReadonly())
3735
+ class: ce(e.checkClassReadonly())
3736
3736
  }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (a(), I(r, {
3737
3737
  key: 9,
3738
3738
  value: e.formValue[e.item.key],
@@ -3741,7 +3741,7 @@ function Oh(e, t, n, c, l, s) {
3741
3741
  }, {
3742
3742
  default: m(() => [
3743
3743
  o("div", Uh, [
3744
- (a(!0), d(ae, null, ke(e.item.params.options, (f) => (a(), I(u, {
3744
+ (a(!0), d(oe, null, we(e.item.params.options, (f) => (a(), I(u, {
3745
3745
  key: f.value,
3746
3746
  label: f.label,
3747
3747
  value: f.value
@@ -3749,7 +3749,7 @@ function Oh(e, t, n, c, l, s) {
3749
3749
  ])
3750
3750
  ]),
3751
3751
  _: 1
3752
- }, 8, ["value", "disabled"])) : e.item.input === "time" ? (a(), I(y, {
3752
+ }, 8, ["value", "disabled"])) : e.item.input === "time" ? (a(), I(v, {
3753
3753
  key: 10,
3754
3754
  value: e.formValue[e.item.key],
3755
3755
  "onUpdate:value": [
@@ -3764,7 +3764,7 @@ function Oh(e, t, n, c, l, s) {
3764
3764
  disabled: e.checkDisabled(),
3765
3765
  show: e.checkReadonlyShow(),
3766
3766
  clearable: e.checkClearable(),
3767
- class: ie(e.checkClassReadonly())
3767
+ class: ce(e.checkClassReadonly())
3768
3768
  }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (a(), I(g, {
3769
3769
  key: 11,
3770
3770
  "checked-value": 1,
@@ -3778,7 +3778,7 @@ function Oh(e, t, n, c, l, s) {
3778
3778
  ],
3779
3779
  disabled: e.checkDisabled(),
3780
3780
  size: "large"
3781
- }, Se({ _: 2 }, [
3781
+ }, ze({ _: 2 }, [
3782
3782
  e.item.params.checked ? {
3783
3783
  name: "checked",
3784
3784
  fn: m(() => [
@@ -3799,7 +3799,7 @@ function Oh(e, t, n, c, l, s) {
3799
3799
  "onUpdate:value": t[21] || (t[21] = (f) => e.formValue[e.item.key] = f),
3800
3800
  item: e.item,
3801
3801
  status: e.status
3802
- }, null, 8, ["value", "item", "status"])) : (a(), d(ae, { key: 13 }, [], 64));
3802
+ }, null, 8, ["value", "item", "status"])) : (a(), d(oe, { key: 13 }, [], 64));
3803
3803
  }
3804
3804
  const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3805
3805
  name: "UzForm",
@@ -3807,8 +3807,8 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3807
3807
  NForm: Xt,
3808
3808
  NFormItem: Jt,
3809
3809
  NDivider: Qt,
3810
- NButton: ge,
3811
- NIcon: we,
3810
+ NButton: ve,
3811
+ NIcon: ge,
3812
3812
  UzFormItem: We,
3813
3813
  Plus: Ke
3814
3814
  },
@@ -3862,7 +3862,7 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3862
3862
  }
3863
3863
  },
3864
3864
  setup(e, { expose: t }) {
3865
- const n = Ve("userStore"), c = Be(() => de.isMobile), l = x(), s = x({}), i = x([]), p = x([]), C = x([]), N = x(), T = x(!1), S = x(""), v = x("");
3865
+ const n = Ve("userStore"), c = Be(() => de.isMobile), l = $(), s = $({}), i = $([]), p = $([]), C = $([]), N = $(), T = $(!1), S = $(""), b = $("");
3866
3866
  Vt("mainFormValue", {
3867
3867
  value: () => s.value,
3868
3868
  setValue: (F) => {
@@ -3897,18 +3897,18 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3897
3897
  switch (F) {
3898
3898
  case "datetime":
3899
3899
  case "datetimerange":
3900
- return je(M, "yyyy-MM-dd hh:mm:ss");
3900
+ return Oe(M, "yyyy-MM-dd hh:mm:ss");
3901
3901
  case "month":
3902
3902
  case "monthrange":
3903
- return je(M, "yyyy-MM");
3903
+ return Oe(M, "yyyy-MM");
3904
3904
  case "year":
3905
3905
  case "yearrange":
3906
- return je(M, "yyyy");
3906
+ return Oe(M, "yyyy");
3907
3907
  default:
3908
- return je(M);
3908
+ return Oe(M);
3909
3909
  }
3910
- }, y = (F, M = !1) => {
3911
- const z = ze(F).startOf("day").diff(ze().startOf("day"), "day");
3910
+ }, v = (F, M = !1) => {
3911
+ const z = De(F).startOf("day").diff(De().startOf("day"), "day");
3912
3912
  return z >= 0 ? M ? "success" : `剩余${z}天` : M ? "error" : `逾期${Math.abs(z)}天`;
3913
3913
  }, g = (F) => (C.value = [], F.forEach((M) => {
3914
3914
  if (M.form.defaultValue && !s.value[M.key])
@@ -3925,7 +3925,7 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3925
3925
  switch (M.form.defaultValue) {
3926
3926
  case "now":
3927
3927
  {
3928
- const P = ze().startOf("day").valueOf(), V = ze().endOf("day").valueOf();
3928
+ const P = De().startOf("day").valueOf(), V = De().endOf("day").valueOf();
3929
3929
  s.value[M.key] = [P, V], s.value[`${M.key}StartStr`] = r(
3930
3930
  M.params.type,
3931
3931
  P
@@ -3985,7 +3985,7 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3985
3985
  M = M + 1;
3986
3986
  });
3987
3987
  F(M);
3988
- }), b = () => new Promise((F, M) => {
3988
+ }), x = () => new Promise((F, M) => {
3989
3989
  p.value.forEach((z) => {
3990
3990
  z.validate().catch(() => null);
3991
3991
  }), l.value?.validate(
@@ -3994,19 +3994,19 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
3994
3994
  M();
3995
3995
  else if (await f() === 0) {
3996
3996
  const V = J(s.value);
3997
- C.value.forEach((W) => {
3998
- V[W] = JSON.stringify(V[W]);
3999
- }), Object.keys(V).forEach((W) => {
4000
- W.includes("sub_") && V[W].forEach((oe) => {
4001
- Object.keys(oe).forEach((ve) => {
4002
- Array.isArray(oe[ve]) && (oe[ve] = JSON.stringify(oe[ve]));
3997
+ C.value.forEach((K) => {
3998
+ V[K] = JSON.stringify(V[K]);
3999
+ }), Object.keys(V).forEach((K) => {
4000
+ K.includes("sub_") && V[K].forEach((re) => {
4001
+ Object.keys(re).forEach((ke) => {
4002
+ Array.isArray(re[ke]) && (re[ke] = JSON.stringify(re[ke]));
4003
4003
  });
4004
4004
  });
4005
4005
  });
4006
- const L = JSON.stringify(
4006
+ const E = JSON.stringify(
4007
4007
  V,
4008
- (W, oe) => oe === void 0 ? null : Array.isArray(oe) ? oe.filter((ve) => ve !== "") : oe
4009
- ), Q = JSON.parse(L);
4008
+ (K, re) => re === void 0 ? null : Array.isArray(re) ? re.filter((ke) => ke !== "") : re
4009
+ ), Q = JSON.parse(E);
4010
4010
  F(Q);
4011
4011
  } else
4012
4012
  M();
@@ -4014,7 +4014,7 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
4014
4014
  );
4015
4015
  }), D = () => {
4016
4016
  l.value?.restoreValidation();
4017
- }, q = (F = 6) => ({
4017
+ }, L = (F = 6) => ({
4018
4018
  1: "md:col-span-1 lg:col-span-1 xl:col-span-1 2xl:col-span-1",
4019
4019
  2: "md:col-span-2 lg:col-span-2 xl:col-span-2 2xl:col-span-2",
4020
4020
  3: "md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3",
@@ -4027,25 +4027,24 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
4027
4027
  10: "md:col-span-10 lg:col-span-10 xl:col-span-10 2xl:col-span-10",
4028
4028
  11: "md:col-span-11 lg:col-span-11 xl:col-span-11 2xl:col-span-11",
4029
4029
  12: "md:col-span-12 lg:col-span-12 xl:col-span-12 2xl:col-span-12"
4030
- })[F], K = (F, M) => {
4031
- N.value = M, S.value = F.source, v.value = F.sourceFn, T.value = !0;
4032
- }, O = (F) => {
4030
+ })[F], G = (F, M) => {
4031
+ N.value = M, S.value = F.source, b.value = F.sourceFn, T.value = !0;
4032
+ }, U = (F) => {
4033
4033
  N.value && (i.value[N.value].params.options = F);
4034
- }, B = () => s.value;
4035
- return Ue(() => {
4036
- e.status !== 0 && (s.value = e.value, h());
4037
- }), t({ validate: b, restoreValidation: D, getValues: B }), ce(
4034
+ };
4035
+ return t({ validate: x, restoreValidation: D, getValues: () => s.value }), le(
4038
4036
  () => e.items,
4039
4037
  (F) => {
4040
4038
  h(F);
4041
4039
  },
4042
4040
  {
4043
- deep: !0
4041
+ deep: !0,
4042
+ immediate: !0
4044
4043
  }
4045
- ), ce(
4044
+ ), le(
4046
4045
  () => e.value,
4047
- (F) => {
4048
- s.value = F, h();
4046
+ (F, M) => {
4047
+ JSON.stringify(F) !== JSON.stringify(M) && (s.value = F);
4049
4048
  },
4050
4049
  {
4051
4050
  deep: !0
@@ -4057,19 +4056,19 @@ const We = /* @__PURE__ */ w(Ih, [["render", Oh]]), jh = se({
4057
4056
  childRef: p,
4058
4057
  drawer: T,
4059
4058
  link: S,
4060
- linkFn: v,
4059
+ linkFn: b,
4061
4060
  isMobile: c,
4062
- diffDay: y,
4063
- sourceAdd: K,
4061
+ diffDay: v,
4062
+ sourceAdd: G,
4064
4063
  itemShow: u,
4065
- setSpan: q,
4066
- refreshOption: O
4064
+ setSpan: L,
4065
+ refreshOption: U
4067
4066
  };
4068
4067
  }
4069
4068
  }), Rh = ["onClick"];
4070
4069
  function Ah(e, t, n, c, l, s) {
4071
- const i = $("Plus"), p = $("NIcon"), C = $("UzTableChild"), N = $("UzTableQuestChild"), T = $("NDivider"), S = $("UzFormItem"), v = $("NFormItem"), u = $("NForm"), r = $("UzTableDrawer"), y = jn("media");
4072
- return a(), d(ae, null, [
4070
+ const i = y("Plus"), p = y("NIcon"), C = y("UzTableChild"), N = y("UzTableQuestChild"), T = y("NDivider"), S = y("UzFormItem"), b = y("NFormItem"), u = y("NForm"), r = y("UzTableDrawer"), v = jn("media");
4071
+ return a(), d(oe, null, [
4073
4072
  _(u, {
4074
4073
  ref: "formRef",
4075
4074
  class: "w-full h-full",
@@ -4081,10 +4080,10 @@ function Ah(e, t, n, c, l, s) {
4081
4080
  }, {
4082
4081
  default: m(() => [
4083
4082
  Qe((a(), d("div", {
4084
- class: ie(e.isMobile ? "" : "uz-form-grid")
4083
+ class: ce(e.isMobile ? "" : "uz-form-grid")
4085
4084
  }, [
4086
- (a(!0), d(ae, null, ke(e.formItems, (g, h) => (a(), d(ae, { key: h }, [
4087
- e.itemShow(g) ? (a(), I(v, {
4085
+ (a(!0), d(oe, null, we(e.formItems, (g, h) => (a(), d(oe, { key: h }, [
4086
+ e.itemShow(g) ? (a(), I(b, {
4088
4087
  key: 0,
4089
4088
  path: g.key,
4090
4089
  rule: g.input === "subTable" ? void 0 : g.form.rule?.required ? g.form.rule : void 0,
@@ -4106,11 +4105,11 @@ function Ah(e, t, n, c, l, s) {
4106
4105
  _: 1
4107
4106
  }),
4108
4107
  t[1] || (t[1] = H(" 新增 ", -1))
4109
- ], 8, Rh)) : E("", !0),
4108
+ ], 8, Rh)) : q("", !0),
4110
4109
  g.form.showDays ? (a(), d("span", {
4111
4110
  key: 1,
4112
- class: ie(["uz-form-item-add", e.diffDay(e.formValue[g.key], !0)])
4113
- }, j(e.diffDay(e.formValue[g.key])), 3)) : E("", !0)
4111
+ class: ce(["uz-form-item-add", e.diffDay(e.formValue[g.key], !0)])
4112
+ }, j(e.diffDay(e.formValue[g.key])), 3)) : q("", !0)
4114
4113
  ]),
4115
4114
  default: m(() => [
4116
4115
  g.input === "subTable" && !g.params.quest ? (a(), I(C, {
@@ -4142,10 +4141,10 @@ function Ah(e, t, n, c, l, s) {
4142
4141
  }, null, 8, ["item", "formValue", "status"]))
4143
4142
  ]),
4144
4143
  _: 2
4145
- }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : E("", !0)
4144
+ }, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : q("", !0)
4146
4145
  ], 64))), 128))
4147
4146
  ], 2)), [
4148
- [y]
4147
+ [v]
4149
4148
  ])
4150
4149
  ]),
4151
4150
  _: 1
@@ -4164,8 +4163,8 @@ const Ph = /* @__PURE__ */ w(jh, [["render", Ah]]), Hh = se({
4164
4163
  components: {
4165
4164
  NForm: Xt,
4166
4165
  NFormItem: Jt,
4167
- NButton: ge,
4168
- NIcon: we,
4166
+ NButton: ve,
4167
+ NIcon: ge,
4169
4168
  NDivider: Qt,
4170
4169
  UzFormItem: We,
4171
4170
  Trash: Ze,
@@ -4211,14 +4210,14 @@ const Ph = /* @__PURE__ */ w(jh, [["render", Ah]]), Hh = se({
4211
4210
  },
4212
4211
  emits: ["update:value", "on-select", "on-change"],
4213
4212
  setup(e, { expose: t, emit: n }) {
4214
- const c = Ve("userStore"), l = x(), s = x({}), i = x([]), p = x([]), C = x(), N = x(!1), T = x(""), S = x(""), v = x([-1, -1]), u = (O, B, F) => {
4215
- v.value = [B, F ?? -1], n("on-select", O);
4216
- }, r = (O) => {
4217
- O && (v.value[1] === -1 ? i.value.splice(v.value[0], 1, O) : i.value[v.value[0]].params.children.splice(v.value[1], 1, O), f()), b();
4218
- }, y = (O, B = !1) => {
4219
- const F = ze(O).startOf("day").diff(ze().startOf("day"), "day");
4213
+ const c = Ve("userStore"), l = $(), s = $({}), i = $([]), p = $([]), C = $(), N = $(!1), T = $(""), S = $(""), b = $([-1, -1]), u = (U, B, F) => {
4214
+ b.value = [B, F ?? -1], n("on-select", U);
4215
+ }, r = (U) => {
4216
+ U && (b.value[1] === -1 ? i.value.splice(b.value[0], 1, U) : i.value[b.value[0]].params.children.splice(b.value[1], 1, U), f()), x();
4217
+ }, v = (U, B = !1) => {
4218
+ const F = De(U).startOf("day").diff(De().startOf("day"), "day");
4220
4219
  return F >= 0 ? B ? "success" : `剩余${F}天` : B ? "error" : `逾期${Math.abs(F)}天`;
4221
- }, g = (O) => (O.forEach((B) => {
4220
+ }, g = (U) => (U.forEach((B) => {
4222
4221
  if (B.form.defaultValue && !s.value[B.key])
4223
4222
  if (B.input === "number")
4224
4223
  s.value[B.key] = Number(B.form.defaultValue);
@@ -4240,25 +4239,25 @@ const Ph = /* @__PURE__ */ w(jh, [["render", Ah]]), Hh = se({
4240
4239
  }
4241
4240
  else
4242
4241
  s.value[B.key] = B.form.defaultValue;
4243
- }), O), h = () => {
4242
+ }), U), h = () => {
4244
4243
  if (e.items && Array.isArray(e.items)) {
4245
- const O = J(e.items);
4246
- i.value = g(O);
4244
+ const U = J(e.items);
4245
+ i.value = g(U);
4247
4246
  }
4248
4247
  }, f = () => {
4249
4248
  n("on-change", J(i.value));
4250
- }, b = () => {
4251
- v.value = [-1, -1], n("on-select", void 0);
4249
+ }, x = () => {
4250
+ b.value = [-1, -1], n("on-select", void 0);
4252
4251
  }, D = () => {
4253
- v.value[1] === -1 ? i.value.splice(v.value[0], 1) : i.value[v.value[0]].params.children.splice(v.value[1], 1), f(), b();
4254
- }, q = (O, B) => {
4255
- C.value = B, T.value = O.source, S.value = O.sourceFn, N.value = !0;
4256
- }, K = (O) => {
4257
- C.value && (i.value[C.value].params.options = O);
4252
+ b.value[1] === -1 ? i.value.splice(b.value[0], 1) : i.value[b.value[0]].params.children.splice(b.value[1], 1), f(), x();
4253
+ }, L = (U, B) => {
4254
+ C.value = B, T.value = U.source, S.value = U.sourceFn, N.value = !0;
4255
+ }, G = (U) => {
4256
+ C.value && (i.value[C.value].params.options = U);
4258
4257
  };
4259
- return Ue(() => {
4258
+ return Le(() => {
4260
4259
  s.value = e.value, h();
4261
- }), t({ changeItem: r }), ce(
4260
+ }), t({ changeItem: r }), le(
4262
4261
  () => e.items,
4263
4262
  () => {
4264
4263
  h();
@@ -4266,10 +4265,10 @@ const Ph = /* @__PURE__ */ w(jh, [["render", Ah]]), Hh = se({
4266
4265
  {
4267
4266
  deep: !0
4268
4267
  }
4269
- ), ce(
4268
+ ), le(
4270
4269
  () => e.value,
4271
- (O) => {
4272
- s.value = O;
4270
+ (U) => {
4271
+ s.value = U;
4273
4272
  },
4274
4273
  {
4275
4274
  deep: !0
@@ -4282,21 +4281,21 @@ const Ph = /* @__PURE__ */ w(jh, [["render", Ah]]), Hh = se({
4282
4281
  drawer: N,
4283
4282
  link: T,
4284
4283
  linkFn: S,
4285
- formItemIndex: v,
4286
- diffDay: y,
4284
+ formItemIndex: b,
4285
+ diffDay: v,
4287
4286
  onDragChange: f,
4288
4287
  onModeClick: u,
4289
- onCancel: b,
4288
+ onCancel: x,
4290
4289
  onDelete: D,
4291
- sourceAdd: q,
4292
- refreshOption: K
4290
+ sourceAdd: L,
4291
+ refreshOption: G
4293
4292
  };
4294
4293
  }
4295
4294
  }), qh = ["onClick"];
4296
4295
  function Lh(e, t, n, c, l, s) {
4297
- const i = $("Plus"), p = $("NIcon"), C = $("Trash"), N = $("NButton"), T = $("UzTableChild"), S = $("UzFormItem"), v = $("NFormItem"), u = $("Draggable", !0), r = $("NDivider"), y = $("NForm"), g = $("UzTableDrawer");
4298
- return a(), d(ae, null, [
4299
- _(y, {
4296
+ const i = y("Plus"), p = y("NIcon"), C = y("Trash"), N = y("NButton"), T = y("UzTableChild"), S = y("UzFormItem"), b = y("NFormItem"), u = y("Draggable", !0), r = y("NDivider"), v = y("NForm"), g = y("UzTableDrawer");
4297
+ return a(), d(oe, null, [
4298
+ _(v, {
4300
4299
  ref: "formRef",
4301
4300
  class: "w-full h-full",
4302
4301
  model: e.formValue,
@@ -4322,14 +4321,14 @@ function Lh(e, t, n, c, l, s) {
4322
4321
  onChange: e.onDragChange
4323
4322
  }), {
4324
4323
  item: m(({ element: h, index: f }) => [
4325
- (a(), I(v, {
4324
+ (a(), I(b, {
4326
4325
  path: h.key,
4327
4326
  rule: h.rule?.required ? h.rule : void 0,
4328
- class: ie([
4327
+ class: ce([
4329
4328
  "uz-form-grid-item uz-form-mode",
4330
4329
  e.formItemIndex[0] === f && e.formItemIndex[1] === -1 ? "select" : h.input === "group" ? "group" : ""
4331
4330
  ]),
4332
- onClick: st((b) => e.onModeClick(h, f), ["stop"]),
4331
+ onClick: st((x) => e.onModeClick(h, f), ["stop"]),
4333
4332
  key: f,
4334
4333
  style: $e(`grid-column: span ${h.form.span || 6} / span ${h.form.span || 6};`),
4335
4334
  "show-label": h.input !== "divider" && h.input !== "subTable",
@@ -4340,7 +4339,7 @@ function Lh(e, t, n, c, l, s) {
4340
4339
  h.source && h.form.createButton ? (a(), d("a", {
4341
4340
  key: 0,
4342
4341
  class: "flex items-center gap-1 uz-form-item-add",
4343
- onClick: (b) => e.sourceAdd(h, f)
4342
+ onClick: (x) => e.sourceAdd(h, f)
4344
4343
  }, [
4345
4344
  _(p, null, {
4346
4345
  default: m(() => [
@@ -4349,11 +4348,11 @@ function Lh(e, t, n, c, l, s) {
4349
4348
  _: 1
4350
4349
  }),
4351
4350
  t[2] || (t[2] = H(" 新增 ", -1))
4352
- ], 8, qh)) : E("", !0),
4351
+ ], 8, qh)) : q("", !0),
4353
4352
  h.form.showDays ? (a(), d("span", {
4354
4353
  key: 1,
4355
- class: ie(["uz-form-item-add", e.diffDay(e.formValue[h.key], !0)])
4356
- }, j(e.diffDay(e.formValue[h.key])), 3)) : E("", !0)
4354
+ class: ce(["uz-form-item-add", e.diffDay(e.formValue[h.key], !0)])
4355
+ }, j(e.diffDay(e.formValue[h.key])), 3)) : q("", !0)
4357
4356
  ]),
4358
4357
  default: m(() => [
4359
4358
  e.formItemIndex[0] === f && e.formItemIndex[1] === -1 ? (a(), I(N, {
@@ -4372,7 +4371,7 @@ function Lh(e, t, n, c, l, s) {
4372
4371
  })
4373
4372
  ]),
4374
4373
  _: 1
4375
- }, 8, ["onClick"])) : E("", !0),
4374
+ }, 8, ["onClick"])) : q("", !0),
4376
4375
  h.input === "subTable" ? (a(), I(T, {
4377
4376
  key: 1,
4378
4377
  formValue: e.formValue,
@@ -4381,7 +4380,7 @@ function Lh(e, t, n, c, l, s) {
4381
4380
  }, null, 8, ["formValue", "item", "status"])) : h.input === "group" ? (a(), I(u, It({
4382
4381
  key: 2,
4383
4382
  modelValue: h.params.children,
4384
- "onUpdate:modelValue": (b) => h.params.children = b
4383
+ "onUpdate:modelValue": (x) => h.params.children = x
4385
4384
  }, {
4386
4385
  animation: 200
4387
4386
  }, {
@@ -4392,20 +4391,20 @@ function Lh(e, t, n, c, l, s) {
4392
4391
  onEnd: e.onCancel,
4393
4392
  onChange: e.onDragChange
4394
4393
  }), {
4395
- item: m(({ element: b, index: D }) => [
4396
- (a(), I(v, {
4397
- label: b.input !== "divider" ? typeof b.label == "function" ? b.label() : b.label : "",
4398
- path: b.key,
4399
- rule: b.rule?.required ? b.rule : void 0,
4400
- class: ie([
4394
+ item: m(({ element: x, index: D }) => [
4395
+ (a(), I(b, {
4396
+ label: x.input !== "divider" ? typeof x.label == "function" ? x.label() : x.label : "",
4397
+ path: x.key,
4398
+ rule: x.rule?.required ? x.rule : void 0,
4399
+ class: ce([
4401
4400
  "uz-form-grid-item uz-form-mode",
4402
4401
  e.formItemIndex[0] === f && e.formItemIndex[1] === D ? "select" : ""
4403
4402
  ]),
4404
- onClick: st((q) => e.onModeClick(b, f, D), ["stop"]),
4403
+ onClick: st((L) => e.onModeClick(x, f, D), ["stop"]),
4405
4404
  key: D,
4406
- style: $e(`grid-column: span ${b.form.span || 6} / span ${b.form.span || 6};`),
4407
- "show-label": b.input !== "divider" && b.input !== "subTable",
4408
- "show-feedback": e.showFeedback && b.input !== "divider"
4405
+ style: $e(`grid-column: span ${x.form.span || 6} / span ${x.form.span || 6};`),
4406
+ "show-label": x.input !== "divider" && x.input !== "subTable",
4407
+ "show-feedback": e.showFeedback && x.input !== "divider"
4409
4408
  }, {
4410
4409
  default: m(() => [
4411
4410
  e.formItemIndex[0] === f && e.formItemIndex[1] === D ? (a(), I(N, {
@@ -4424,9 +4423,9 @@ function Lh(e, t, n, c, l, s) {
4424
4423
  })
4425
4424
  ]),
4426
4425
  _: 1
4427
- }, 8, ["onClick"])) : E("", !0),
4426
+ }, 8, ["onClick"])) : q("", !0),
4428
4427
  _(S, {
4429
- item: b,
4428
+ item: x,
4430
4429
  formValue: e.formValue,
4431
4430
  status: e.status
4432
4431
  }, null, 8, ["item", "formValue", "status"])
@@ -4471,8 +4470,8 @@ const Eh = /* @__PURE__ */ w(Hh, [["render", Lh]]), Kh = se({
4471
4470
  name: "UzFormItemUpload",
4472
4471
  components: {
4473
4472
  NUpload: En,
4474
- NButton: ge,
4475
- NIcon: we,
4473
+ NButton: ve,
4474
+ NIcon: ge,
4476
4475
  NImage: Ln,
4477
4476
  NPopover: Ee,
4478
4477
  NPopconfirm: Kt,
@@ -4504,30 +4503,30 @@ const Eh = /* @__PURE__ */ w(Hh, [["render", Lh]]), Kh = se({
4504
4503
  },
4505
4504
  emits: ["update:value"],
4506
4505
  setup(e, { emit: t }) {
4507
- const n = dt(), c = x(!1), l = x([]), s = () => {
4506
+ const n = dt(), c = $(!1), l = $([]), s = () => {
4508
4507
  t(
4509
4508
  "update:value",
4510
- Pe.stringify(l.value.map((S) => S.url))
4509
+ Ae.stringify(l.value.map((S) => S.url))
4511
4510
  );
4512
- }, i = (S) => new Promise((v, u) => {
4511
+ }, i = (S) => new Promise((b, u) => {
4513
4512
  if (S.file.file)
4514
4513
  if (c.value = !0, S.file.file.size > 10485760)
4515
4514
  n.error({ content: "请上传小于10MB的文件", duration: 3e3 }), u();
4516
4515
  else {
4517
4516
  const r = new FormData();
4518
- r.append("file", S.file.file), r.append("name", S.file.name), da("file/cos/upload", r).then((y) => {
4517
+ r.append("file", S.file.file), r.append("name", S.file.name), da("file/cos/upload", r).then((v) => {
4519
4518
  l.value.push({
4520
4519
  id: S.file.id,
4521
4520
  name: S.file.name,
4522
4521
  status: "finished",
4523
- url: y
4524
- }), n.success({ content: "上传成功", duration: 3e3 }), c.value = !1, s(), v();
4522
+ url: v
4523
+ }), n.success({ content: "上传成功", duration: 3e3 }), c.value = !1, s(), b();
4525
4524
  }).catch(() => {
4526
4525
  c.value = !1, u(), n.error({ content: "上传失败", duration: 3e3 });
4527
4526
  });
4528
4527
  }
4529
4528
  }), p = (S) => {
4530
- const v = S.lastIndexOf("."), u = S.substring(v + 1);
4529
+ const b = S.lastIndexOf("."), u = S.substring(b + 1);
4531
4530
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
4532
4531
  u.toLowerCase()
4533
4532
  ) !== -1;
@@ -4541,9 +4540,9 @@ const Eh = /* @__PURE__ */ w(Hh, [["render", Lh]]), Kh = se({
4541
4540
  }
4542
4541
  if (typeof S == "string")
4543
4542
  try {
4544
- S = Pe.parse(S), l.value = S.map(
4545
- (v, u) => {
4546
- const r = decodeURIComponent(v), y = r.lastIndexOf("/"), g = r.substring(y + 1);
4543
+ S = Ae.parse(S), l.value = S.map(
4544
+ (b, u) => {
4545
+ const r = decodeURIComponent(b), v = r.lastIndexOf("/"), g = r.substring(v + 1);
4547
4546
  return {
4548
4547
  id: String(u + 1),
4549
4548
  name: g,
@@ -4560,9 +4559,9 @@ const Eh = /* @__PURE__ */ w(Hh, [["render", Lh]]), Kh = se({
4560
4559
  }, T = (S) => {
4561
4560
  window.open(S);
4562
4561
  };
4563
- return Ue(() => {
4562
+ return Le(() => {
4564
4563
  N();
4565
- }), ce(
4564
+ }), le(
4566
4565
  () => e.value,
4567
4566
  () => {
4568
4567
  N();
@@ -4578,7 +4577,7 @@ const Eh = /* @__PURE__ */ w(Hh, [["render", Lh]]), Kh = se({
4578
4577
  }
4579
4578
  }), Wh = { class: "uz-form-upload-item-inner" }, Gh = ["title"], Qh = { key: 0 };
4580
4579
  function Jh(e, t, n, c, l, s) {
4581
- const i = $("CloudUpload"), p = $("NIcon"), C = $("NUploadDragger"), N = $("NUpload"), T = $("PhotoOff"), S = $("NImage"), v = $("FileText"), u = $("Trash"), r = $("NButton"), y = $("NPopconfirm"), g = $("CloudDownload"), h = $("NSpin");
4580
+ const i = y("CloudUpload"), p = y("NIcon"), C = y("NUploadDragger"), N = y("NUpload"), T = y("PhotoOff"), S = y("NImage"), b = y("FileText"), u = y("Trash"), r = y("NButton"), v = y("NPopconfirm"), g = y("CloudDownload"), h = y("NSpin");
4582
4581
  return a(), I(h, {
4583
4582
  "content-class": "uz-form-upload flex flex-wrap gap-2 items-center",
4584
4583
  show: e.show
@@ -4609,9 +4608,9 @@ function Jh(e, t, n, c, l, s) {
4609
4608
  })
4610
4609
  ]),
4611
4610
  _: 1
4612
- }, 8, ["accept", "max", "on-before-upload"])) : E("", !0),
4613
- (a(!0), d(ae, null, ke(e.formValue, (f, b) => (a(), d("div", {
4614
- key: b,
4611
+ }, 8, ["accept", "max", "on-before-upload"])) : q("", !0),
4612
+ (a(!0), d(oe, null, we(e.formValue, (f, x) => (a(), d("div", {
4613
+ key: x,
4615
4614
  class: "uz-form-upload-item w-20 h-20"
4616
4615
  }, [
4617
4616
  e.isAssetTypeAnImage(f.url) ? (a(), I(S, {
@@ -4639,7 +4638,7 @@ function Jh(e, t, n, c, l, s) {
4639
4638
  onClick: (D) => e.openFile(f.url)
4640
4639
  }, {
4641
4640
  default: m(() => [
4642
- _(v)
4641
+ _(b)
4643
4642
  ]),
4644
4643
  _: 1
4645
4644
  }, 8, ["onClick"])),
@@ -4649,8 +4648,8 @@ function Jh(e, t, n, c, l, s) {
4649
4648
  title: f.name
4650
4649
  }, j(f.name), 9, Gh),
4651
4650
  e.status !== 2 ? (a(), d("div", Qh, [
4652
- _(y, {
4653
- onPositiveClick: (D) => e.doDelete(b)
4651
+ _(v, {
4652
+ onPositiveClick: (D) => e.doDelete(x)
4654
4653
  }, {
4655
4654
  trigger: m(() => [
4656
4655
  _(r, {
@@ -4690,7 +4689,7 @@ function Jh(e, t, n, c, l, s) {
4690
4689
  ]),
4691
4690
  _: 1
4692
4691
  }, 8, ["href"])
4693
- ])) : E("", !0)
4692
+ ])) : q("", !0)
4694
4693
  ])
4695
4694
  ]))), 128))
4696
4695
  ]),
@@ -4699,7 +4698,7 @@ function Jh(e, t, n, c, l, s) {
4699
4698
  }
4700
4699
  const Xh = /* @__PURE__ */ w(Kh, [["render", Jh], ["__scopeId", "data-v-2db0da6d"]]), Yh = se({
4701
4700
  name: "UzFormItemImage",
4702
- components: { NImageGroup: us, NImage: Ln, NIcon: we, NPopover: Ee, PhotoOff: wt, FileText: ht },
4701
+ components: { NImageGroup: us, NImage: Ln, NIcon: ge, NPopover: Ee, PhotoOff: wt, FileText: ht },
4703
4702
  props: {
4704
4703
  value: {
4705
4704
  required: !0,
@@ -4708,7 +4707,7 @@ const Xh = /* @__PURE__ */ w(Kh, [["render", Jh], ["__scopeId", "data-v-2db0da6d
4708
4707
  }
4709
4708
  },
4710
4709
  setup(e) {
4711
- const t = x([]), n = (s) => {
4710
+ const t = $([]), n = (s) => {
4712
4711
  const i = s.lastIndexOf("."), p = s.substring(i + 1);
4713
4712
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
4714
4713
  p.toLowerCase()
@@ -4721,7 +4720,7 @@ const Xh = /* @__PURE__ */ w(Kh, [["render", Jh], ["__scopeId", "data-v-2db0da6d
4721
4720
  };
4722
4721
  return Rn(() => {
4723
4722
  try {
4724
- e.value && (t.value = Pe.parse(e.value));
4723
+ e.value && (t.value = Ae.parse(e.value));
4725
4724
  } catch {
4726
4725
  t.value = [];
4727
4726
  }
@@ -4734,15 +4733,15 @@ const Xh = /* @__PURE__ */ w(Kh, [["render", Jh], ["__scopeId", "data-v-2db0da6d
4734
4733
  }
4735
4734
  }), Zh = { class: "flex gap-2 max-w-sm overflow-y-hidden overflow-x-auto items-center" };
4736
4735
  function e1(e, t, n, c, l, s) {
4737
- const i = $("PhotoOff"), p = $("NIcon"), C = $("NImage"), N = $("FileText"), T = $("NPopover"), S = $("NImageGroup");
4736
+ const i = y("PhotoOff"), p = y("NIcon"), C = y("NImage"), N = y("FileText"), T = y("NPopover"), S = y("NImageGroup");
4738
4737
  return a(), I(S, null, {
4739
4738
  default: m(() => [
4740
4739
  o("div", Zh, [
4741
- (a(!0), d(ae, null, ke(e.imgs, (v) => (a(), d(ae, null, [
4742
- e.isAssetTypeAnImage(v) ? (a(), I(C, {
4740
+ (a(!0), d(oe, null, we(e.imgs, (b) => (a(), d(oe, null, [
4741
+ e.isAssetTypeAnImage(b) ? (a(), I(C, {
4743
4742
  key: 0,
4744
4743
  width: "40",
4745
- src: v
4744
+ src: b
4746
4745
  }, {
4747
4746
  error: m(() => [
4748
4747
  _(p, {
@@ -4764,7 +4763,7 @@ function e1(e, t, n, c, l, s) {
4764
4763
  _(p, {
4765
4764
  size: "40",
4766
4765
  color: "lightGrey",
4767
- onClick: (u) => e.openFile(v),
4766
+ onClick: (u) => e.openFile(b),
4768
4767
  class: "cursor-pointer"
4769
4768
  }, {
4770
4769
  default: m(() => [
@@ -4774,7 +4773,7 @@ function e1(e, t, n, c, l, s) {
4774
4773
  }, 8, ["onClick"])
4775
4774
  ]),
4776
4775
  default: m(() => [
4777
- H(j(e.getFileName(v)), 1)
4776
+ H(j(e.getFileName(b)), 1)
4778
4777
  ]),
4779
4778
  _: 2
4780
4779
  }, 1024))
@@ -4787,7 +4786,7 @@ function e1(e, t, n, c, l, s) {
4787
4786
  const va = /* @__PURE__ */ w(Yh, [["render", e1]]), t1 = se({
4788
4787
  name: "UzCamera",
4789
4788
  components: {
4790
- NButton: ge,
4789
+ NButton: ve,
4791
4790
  NModal: ds
4792
4791
  },
4793
4792
  props: {
@@ -4810,22 +4809,22 @@ const va = /* @__PURE__ */ w(Yh, [["render", e1]]), t1 = se({
4810
4809
  },
4811
4810
  emits: ["on-update:value"],
4812
4811
  setup(e, { emit: t }) {
4813
- const n = x(), c = x(!1), l = x(!1), s = dt();
4812
+ const n = $(), c = $(!1), l = $(!1), s = dt();
4814
4813
  let i = null, p = null;
4815
- const C = (y, g) => {
4816
- i.beginPath(), i.moveTo(y.x, y.y), i.lineTo(g.x, g.y), i.lineWidth = 2, i.strokeStyle = "green", i.stroke();
4814
+ const C = (v, g) => {
4815
+ i.beginPath(), i.moveTo(v.x, v.y), i.lineTo(g.x, g.y), i.lineWidth = 2, i.strokeStyle = "green", i.stroke();
4817
4816
  }, N = () => {
4818
4817
  l.value && requestAnimationFrame(T);
4819
4818
  }, T = () => {
4820
- const y = parseInt(String(e.width)), g = parseInt(String(e.height));
4819
+ const v = parseInt(String(e.width)), g = parseInt(String(e.height));
4821
4820
  if (p && p.readyState === p.HAVE_ENOUGH_DATA) {
4822
- p.width = y, p.height = g, i.drawImage(n.value, 0, 0, y, g);
4823
- const h = i.getImageData(0, 0, y, g);
4821
+ p.width = v, p.height = g, i.drawImage(n.value, 0, 0, v, g);
4822
+ const h = i.getImageData(0, 0, v, g);
4824
4823
  try {
4825
- const f = Ss(h.data, y, g);
4824
+ const f = Ss(h.data, v, g);
4826
4825
  if (f) {
4827
- const { location: b, data: D } = f;
4828
- D && (C(b.topLeftCorner, b.topRightCorner), C(b.topRightCorner, b.bottomRightCorner), C(b.bottomRightCorner, b.bottomLeftCorner), C(b.bottomLeftCorner, b.topLeftCorner), t("on-update:value", D));
4826
+ const { location: x, data: D } = f;
4827
+ D && (C(x.topLeftCorner, x.topRightCorner), C(x.topRightCorner, x.bottomRightCorner), C(x.bottomRightCorner, x.bottomLeftCorner), C(x.bottomLeftCorner, x.topLeftCorner), t("on-update:value", D));
4829
4828
  }
4830
4829
  } catch {
4831
4830
  l.value = !1, s.error({
@@ -4836,28 +4835,28 @@ const va = /* @__PURE__ */ w(Yh, [["render", e1]]), t1 = se({
4836
4835
  }
4837
4836
  N();
4838
4837
  }, S = () => {
4839
- n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((y) => y.stop()), i = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, c.value = !1;
4840
- }, v = async (y) => {
4841
- n.value.srcObject !== void 0 ? n.value.srcObject = y : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = y : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(y) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(y) : n.value.src = y, n.value.play().then(N);
4842
- const h = y.getVideoTracks()[0];
4838
+ n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((v) => v.stop()), i = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, c.value = !1;
4839
+ }, b = async (v) => {
4840
+ n.value.srcObject !== void 0 ? n.value.srcObject = v : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = v : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(v) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(v) : n.value.src = v, n.value.play().then(N);
4841
+ const h = v.getVideoTracks()[0];
4843
4842
  await u(h);
4844
- }, u = async (y) => {
4843
+ }, u = async (v) => {
4845
4844
  try {
4846
- y.getCapabilities().focusDistance && await y.applyConstraints({
4845
+ v.getCapabilities().focusDistance && await v.applyConstraints({
4847
4846
  advanced: [{ autoFocus: "continuous" }]
4848
4847
  });
4849
4848
  } catch (g) {
4850
4849
  ne(g);
4851
4850
  }
4852
4851
  }, r = () => {
4853
- c.value = !0, Te(async () => {
4852
+ c.value = !0, Ne(async () => {
4854
4853
  navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (l.value = !0, p = document.getElementById("uz-scan-canvas"), p && (i = p.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
4855
4854
  video: {
4856
4855
  width: parseInt(String(e.width)),
4857
4856
  height: parseInt(String(e.height)),
4858
4857
  facingMode: e.facingMode
4859
4858
  }
4860
- }).then(v).catch(() => {
4859
+ }).then(b).catch(() => {
4861
4860
  l.value = !1, s.error({
4862
4861
  content: "未获取到摄像头权限,请确认赋予相关权限",
4863
4862
  duration: 3e3
@@ -4868,11 +4867,11 @@ const va = /* @__PURE__ */ w(Yh, [["render", e1]]), t1 = se({
4868
4867
  }));
4869
4868
  });
4870
4869
  };
4871
- return Ue(() => {
4870
+ return Le(() => {
4872
4871
  e.mode === "video" && r();
4873
4872
  }), Et(() => {
4874
4873
  S();
4875
- }), ce([() => e.width, () => e.width], () => {
4874
+ }), le([() => e.width, () => e.width], () => {
4876
4875
  e.mode === "video" && (S(), r());
4877
4876
  }), {
4878
4877
  videoRef: n,
@@ -4887,8 +4886,8 @@ const va = /* @__PURE__ */ w(Yh, [["render", e1]]), t1 = se({
4887
4886
  playsInline: ""
4888
4887
  };
4889
4888
  function s1(e, t, n, c, l, s) {
4890
- const i = $("NButton"), p = $("NModal");
4891
- return a(), d(ae, null, [
4889
+ const i = y("NButton"), p = y("NModal");
4890
+ return a(), d(oe, null, [
4892
4891
  e.mode === "button" ? (a(), I(i, {
4893
4892
  key: 0,
4894
4893
  type: "primary",
@@ -4899,7 +4898,7 @@ function s1(e, t, n, c, l, s) {
4899
4898
  H(j(e.$t("Common.scan")), 1)
4900
4899
  ]),
4901
4900
  _: 1
4902
- }, 8, ["loading", "onClick"])) : E("", !0),
4901
+ }, 8, ["loading", "onClick"])) : q("", !0),
4903
4902
  e.mode === "button" ? (a(), I(p, {
4904
4903
  key: 1,
4905
4904
  show: e.modal,
@@ -4926,7 +4925,7 @@ function s1(e, t, n, c, l, s) {
4926
4925
  ], 4)
4927
4926
  ]),
4928
4927
  _: 1
4929
- }, 8, ["show", "title", "on-after-leave"])) : E("", !0),
4928
+ }, 8, ["show", "title", "on-after-leave"])) : q("", !0),
4930
4929
  e.mode === "video" ? (a(), d("div", {
4931
4930
  key: 2,
4932
4931
  class: "uz-scan-canvas-main",
@@ -4940,7 +4939,7 @@ function s1(e, t, n, c, l, s) {
4940
4939
  width: e.width,
4941
4940
  height: e.height
4942
4941
  }, null, 8, o1)
4943
- ], 4)) : E("", !0),
4942
+ ], 4)) : q("", !0),
4944
4943
  o("div", r1, [
4945
4944
  o("video", a1, null, 512)
4946
4945
  ])
@@ -4949,8 +4948,8 @@ function s1(e, t, n, c, l, s) {
4949
4948
  const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
4950
4949
  name: "UzSearchBar",
4951
4950
  components: {
4952
- NIcon: we,
4953
- NButton: ge,
4951
+ NIcon: ge,
4952
+ NButton: ve,
4954
4953
  NButtonGroup: ps,
4955
4954
  NGrid: Gn,
4956
4955
  NGridItem: Wn,
@@ -5005,7 +5004,7 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5005
5004
  },
5006
5005
  emits: ["update:loading", "on-update:value"],
5007
5006
  setup(e, { emit: t }) {
5008
- const n = pt(), c = x(), l = x([]), s = x(), i = x(!0), p = x(!1), C = x(!1), N = x(0), T = x(0), S = x(0), v = x(1), u = x(""), r = x([]), y = x(!1), g = (B) => Array.isArray(B) && B.length > 0 || B ? B : !1, h = (B = !1) => {
5007
+ const n = pt(), c = $(), l = $([]), s = $(), i = $(!0), p = $(!1), C = $(!1), N = $(0), T = $(0), S = $(0), b = $(1), u = $(""), r = $([]), v = $(!1), g = (B) => Array.isArray(B) && B.length > 0 || B ? B : !1, h = (B = !1) => {
5009
5008
  if (e.loading)
5010
5009
  return;
5011
5010
  const F = J(c.value);
@@ -5027,9 +5026,9 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5027
5026
  }), t("update:loading", !0), t("on-update:value", M);
5028
5027
  }, f = () => {
5029
5028
  e.loading || (c.value = J(s.value), h());
5030
- }, b = () => {
5029
+ }, x = () => {
5031
5030
  i.value = !i.value;
5032
- }, D = (B) => y.value ? c.value && Array.isArray(c.value[u.value]) && c.value[u.value].includes(B.value) ? "primary" : "default" : c.value[u.value] === B.value ? "primary" : "default", q = (B) => {
5031
+ }, D = (B) => v.value ? c.value && Array.isArray(c.value[u.value]) && c.value[u.value].includes(B.value) ? "primary" : "default" : c.value[u.value] === B.value ? "primary" : "default", L = (B) => {
5033
5032
  const F = {};
5034
5033
  let M = 0;
5035
5034
  const z = e.cols ? e.cols : 4;
@@ -5039,19 +5038,19 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5039
5038
  const P = z - M >= 0 ? z - M - 1 : -1;
5040
5039
  T.value = P, S.value = P, N.value = M, M > z ? (p.value = !0, C.value = !0) : (p.value = !1, C.value = !1);
5041
5040
  for (const V of B)
5042
- if (V.search.tab && (r.value = V.params.options, y.value = V.params.multiple, u.value = V.key, V.search.show = !1), V.input === "input" && V.params.type === "textarea" && (V.params.type = "text"), V.search.show = V.search.show ?? !0, V.defaultValue)
5041
+ if (V.search.tab && (r.value = V.params.options, v.value = V.params.multiple, u.value = V.key, V.search.show = !1), V.input === "input" && V.params.type === "textarea" && (V.params.type = "text"), V.search.show = V.search.show ?? !0, V.defaultValue)
5043
5042
  if (V.input === "date")
5044
5043
  if (V.params.type.indexOf("range") > -1)
5045
5044
  switch (V.search.defaultValue) {
5046
5045
  case "now":
5047
5046
  {
5048
- const Q = ze().startOf("day").valueOf(), W = ze().endOf("day").valueOf();
5049
- F[V.key] = [Q, W];
5047
+ const Q = De().startOf("day").valueOf(), K = De().endOf("day").valueOf();
5048
+ F[V.key] = [Q, K];
5050
5049
  }
5051
5050
  break;
5052
5051
  default:
5053
- const L = Number(V.form.defaultValue);
5054
- F[V.key] = Number.isNaN(L) ? null : [L, L];
5052
+ const E = Number(V.form.defaultValue);
5053
+ F[V.key] = Number.isNaN(E) ? null : [E, E];
5055
5054
  break;
5056
5055
  }
5057
5056
  else
@@ -5060,8 +5059,8 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5060
5059
  F[V.key] = Date.now();
5061
5060
  break;
5062
5061
  default:
5063
- const L = Number(V.form.defaultValue);
5064
- F[V.key] = Number.isNaN(L) ? null : L;
5062
+ const E = Number(V.form.defaultValue);
5063
+ F[V.key] = Number.isNaN(E) ? null : E;
5065
5064
  break;
5066
5065
  }
5067
5066
  else
@@ -5069,20 +5068,20 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5069
5068
  else
5070
5069
  F[V.key] = "", (V.input === "number" || V.input === "date" || V.input === "time") && (F[V.key] = null), (V.input === "cascader" || V.input === "select") && (V.params.multiple ? F[V.key] = [] : F[V.key] = null);
5071
5070
  return { data: B, values: F };
5072
- }, K = (B) => {
5071
+ }, G = (B) => {
5073
5072
  if (r.value = [], B && B.length > 0) {
5074
- const { data: F, values: M } = q(J(B)), z = {}, P = e.id || n.params.id;
5073
+ const { data: F, values: M } = L(J(B)), z = {}, P = e.id || n.params.id;
5075
5074
  if (e.cache && P) {
5076
- const V = De(`tables_${P}`, !1);
5077
- V && V.params.forEach((L) => {
5078
- z[L.key] = L.value;
5075
+ const V = Te(`tables_${P}`, !1);
5076
+ V && V.params.forEach((E) => {
5077
+ z[E.key] = E.value;
5079
5078
  });
5080
5079
  }
5081
5080
  l.value = F, c.value = J({ ...M, ...z }), s.value = J(M);
5082
5081
  }
5083
5082
  h(!0);
5084
- }, O = (B) => {
5085
- if (y.value) {
5083
+ }, U = (B) => {
5084
+ if (v.value) {
5086
5085
  const F = c.value[u.value];
5087
5086
  if (F.includes(B)) {
5088
5087
  const M = F.findIndex((z) => z === B);
@@ -5093,10 +5092,10 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5093
5092
  c.value[u.value] = B;
5094
5093
  h(!0);
5095
5094
  };
5096
- return ce(
5095
+ return le(
5097
5096
  () => e.data,
5098
5097
  (B) => {
5099
- K(B);
5098
+ G(B);
5100
5099
  }
5101
5100
  ), {
5102
5101
  itemValue: c,
@@ -5108,13 +5107,13 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5108
5107
  offset: T,
5109
5108
  offsetCache: S,
5110
5109
  collapsed: i,
5111
- gridSpan: v,
5110
+ gridSpan: b,
5112
5111
  tabKey: u,
5113
5112
  tabList: r,
5114
5113
  doSearch: h,
5115
5114
  clearAll: f,
5116
- showMore: b,
5117
- tabItemChange: O,
5115
+ showMore: x,
5116
+ tabItemChange: U,
5118
5117
  tabButtonType: D
5119
5118
  };
5120
5119
  }
@@ -5126,10 +5125,10 @@ const l1 = /* @__PURE__ */ w(t1, [["render", s1]]), i1 = se({
5126
5125
  class: "flex gap-2 flex-1"
5127
5126
  };
5128
5127
  function p1(e, t, n, c, l, s) {
5129
- const i = $("NButton"), p = $("NButtonGroup"), C = $("NGridItem"), N = $("NInputGroupLabel"), T = $("NPopover"), S = $("UzFormItem"), v = $("NInputGroup"), u = $("NGrid"), r = $("CaretDown"), y = $("NIcon"), g = $("Search"), h = $("Refresh"), f = jn("media");
5128
+ const i = y("NButton"), p = y("NButtonGroup"), C = y("NGridItem"), N = y("NInputGroupLabel"), T = y("NPopover"), S = y("UzFormItem"), b = y("NInputGroup"), u = y("NGrid"), r = y("CaretDown"), v = y("NIcon"), g = y("Search"), h = y("Refresh"), f = jn("media");
5130
5129
  return a(), d("div", {
5131
5130
  class: "uz-search-bar flex justify-between gap-2 w-full",
5132
- onKeyup: t[1] || (t[1] = Xa((b) => e.doSearch(!1), ["enter"]))
5131
+ onKeyup: t[1] || (t[1] = Xa((x) => e.doSearch(!1), ["enter"]))
5133
5132
  }, [
5134
5133
  e.enableHeader ? (a(), d("div", c1, [
5135
5134
  be(e.$slots, "header"),
@@ -5149,14 +5148,14 @@ function p1(e, t, n, c, l, s) {
5149
5148
  default: m(() => [
5150
5149
  _(p, null, {
5151
5150
  default: m(() => [
5152
- (a(!0), d(ae, null, ke(e.tabList, (b) => (a(), I(i, {
5153
- key: b.value,
5154
- type: e.tabButtonType(b),
5151
+ (a(!0), d(oe, null, we(e.tabList, (x) => (a(), I(i, {
5152
+ key: x.value,
5153
+ type: e.tabButtonType(x),
5155
5154
  secondary: "",
5156
- onClick: (D) => e.tabItemChange(b.value)
5155
+ onClick: (D) => e.tabItemChange(x.value)
5157
5156
  }, {
5158
5157
  default: m(() => [
5159
- H(j(b.label), 1)
5158
+ H(j(x.label), 1)
5160
5159
  ]),
5161
5160
  _: 2
5162
5161
  }, 1032, ["type", "onClick"]))), 128))
@@ -5165,17 +5164,17 @@ function p1(e, t, n, c, l, s) {
5165
5164
  })
5166
5165
  ]),
5167
5166
  _: 1
5168
- }, 8, ["span"])) : E("", !0),
5167
+ }, 8, ["span"])) : q("", !0),
5169
5168
  e.offset > -1 ? (a(), I(C, {
5170
5169
  key: 1,
5171
5170
  offset: e.offset
5172
- }, null, 8, ["offset"])) : E("", !0),
5173
- (a(!0), d(ae, null, ke(e.itemData, (b, D) => (a(), I(C, {
5171
+ }, null, 8, ["offset"])) : q("", !0),
5172
+ (a(!0), d(oe, null, we(e.itemData, (x, D) => (a(), I(C, {
5174
5173
  key: `${D}_${Date.now()}`,
5175
- span: b.search.show ? e.gridSpan : 0
5174
+ span: x.search.show ? e.gridSpan : 0
5176
5175
  }, {
5177
5176
  default: m(() => [
5178
- _(v, null, {
5177
+ _(b, null, {
5179
5178
  default: m(() => [
5180
5179
  _(T, {
5181
5180
  trigger: "hover",
@@ -5185,18 +5184,18 @@ function p1(e, t, n, c, l, s) {
5185
5184
  trigger: m(() => [
5186
5185
  _(N, { class: "uz-group-label" }, {
5187
5186
  default: m(() => [
5188
- H(j(typeof b.label == "function" ? b.label() : b.label), 1)
5187
+ H(j(typeof x.label == "function" ? x.label() : x.label), 1)
5189
5188
  ]),
5190
5189
  _: 2
5191
5190
  }, 1024)
5192
5191
  ]),
5193
5192
  default: m(() => [
5194
- H(j(typeof b.label == "function" ? b.label() : b.label), 1)
5193
+ H(j(typeof x.label == "function" ? x.label() : x.label), 1)
5195
5194
  ]),
5196
5195
  _: 2
5197
5196
  }, 1024),
5198
5197
  _(S, {
5199
- item: b,
5198
+ item: x,
5200
5199
  formValue: e.itemValue,
5201
5200
  clearable: !0
5202
5201
  }, null, 8, ["item", "formValue"])
@@ -5212,7 +5211,7 @@ function p1(e, t, n, c, l, s) {
5212
5211
  ])), [
5213
5212
  [f]
5214
5213
  ])
5215
- ])) : E("", !0),
5214
+ ])) : q("", !0),
5216
5215
  e.enableHeader ? (a(), d("div", d1, [
5217
5216
  e.more ? (a(), I(i, {
5218
5217
  key: 0,
@@ -5220,8 +5219,8 @@ function p1(e, t, n, c, l, s) {
5220
5219
  onClick: e.showMore
5221
5220
  }, {
5222
5221
  icon: m(() => [
5223
- _(y, {
5224
- class: ie(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
5222
+ _(v, {
5223
+ class: ce(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
5225
5224
  }, {
5226
5225
  default: m(() => [
5227
5226
  _(r)
@@ -5230,15 +5229,15 @@ function p1(e, t, n, c, l, s) {
5230
5229
  }, 8, ["class"])
5231
5230
  ]),
5232
5231
  _: 1
5233
- }, 8, ["onClick"])) : E("", !0),
5232
+ }, 8, ["onClick"])) : q("", !0),
5234
5233
  e.itemData && Object.keys(e.itemData).length > 0 ? (a(), I(i, {
5235
5234
  key: 1,
5236
5235
  loading: e.loading,
5237
5236
  secondary: "",
5238
- onClick: t[0] || (t[0] = (b) => e.doSearch(!1))
5237
+ onClick: t[0] || (t[0] = (x) => e.doSearch(!1))
5239
5238
  }, {
5240
5239
  icon: m(() => [
5241
- _(y, {
5240
+ _(v, {
5242
5241
  size: "18",
5243
5242
  color: "#0086ff"
5244
5243
  }, {
@@ -5252,7 +5251,7 @@ function p1(e, t, n, c, l, s) {
5252
5251
  H(" " + j(e.$t("Common.search")), 1)
5253
5252
  ]),
5254
5253
  _: 1
5255
- }, 8, ["loading"])) : E("", !0),
5254
+ }, 8, ["loading"])) : q("", !0),
5256
5255
  e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (a(), I(i, {
5257
5256
  key: 2,
5258
5257
  loading: e.loading,
@@ -5260,7 +5259,7 @@ function p1(e, t, n, c, l, s) {
5260
5259
  onClick: e.clearAll
5261
5260
  }, {
5262
5261
  icon: m(() => [
5263
- _(y, null, {
5262
+ _(v, null, {
5264
5263
  default: m(() => [
5265
5264
  _(h)
5266
5265
  ]),
@@ -5271,16 +5270,16 @@ function p1(e, t, n, c, l, s) {
5271
5270
  H(" " + j(e.$t("Common.reset")), 1)
5272
5271
  ]),
5273
5272
  _: 1
5274
- }, 8, ["loading", "onClick"])) : E("", !0),
5273
+ }, 8, ["loading", "onClick"])) : q("", !0),
5275
5274
  be(e.$slots, "action")
5276
- ])) : E("", !0)
5275
+ ])) : q("", !0)
5277
5276
  ], 32);
5278
5277
  }
5279
5278
  const f1 = /* @__PURE__ */ w(i1, [["render", p1]]), h1 = se({
5280
5279
  name: "UzSearchMobileBar",
5281
5280
  components: {
5282
- NIcon: we,
5283
- NButton: ge,
5281
+ NIcon: ge,
5282
+ NButton: ve,
5284
5283
  NDrawer: en,
5285
5284
  NDrawerContent: Zt,
5286
5285
  NGrid: Gn,
@@ -5312,50 +5311,50 @@ const f1 = /* @__PURE__ */ w(i1, [["render", p1]]), h1 = se({
5312
5311
  },
5313
5312
  emits: ["update:loading", "on-update:value"],
5314
5313
  setup(e, { emit: t }) {
5315
- const n = pt(), c = x([]), l = x(!1), s = x(), i = x(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, C = (v = !1) => {
5314
+ const n = pt(), c = $([]), l = $(!1), s = $(), i = $(), p = (b) => Array.isArray(b) && b.length > 0 || b ? b : !1, C = (b = !1) => {
5316
5315
  if (e.loading)
5317
5316
  return;
5318
5317
  const u = J(s.value);
5319
- !v && u.query && (u.query.page = 1);
5318
+ !b && u.query && (u.query.page = 1);
5320
5319
  const r = [];
5321
- c.value.forEach((y) => {
5322
- if (u[y.key]) {
5323
- const g = p(u[y.key]);
5320
+ c.value.forEach((v) => {
5321
+ if (u[v.key]) {
5322
+ const g = p(u[v.key]);
5324
5323
  if (g) {
5325
5324
  const h = {
5326
- key: y.key,
5325
+ key: v.key,
5327
5326
  value: g,
5328
5327
  range: !1,
5329
- fuzzy: y.search.fuzzy
5328
+ fuzzy: v.search.fuzzy
5330
5329
  };
5331
- (y.input === "cascader" || y.input === "select") && y.params.multiple && (h.range = !0), y.input === "date" && y.params.type.indexOf("range") > -1 && (h.range = !0, h.time = !0), r.push(h);
5330
+ (v.input === "cascader" || v.input === "select") && v.params.multiple && (h.range = !0), v.input === "date" && v.params.type.indexOf("range") > -1 && (h.range = !0, h.time = !0), r.push(h);
5332
5331
  }
5333
5332
  }
5334
5333
  }), l.value = !1, t("update:loading", !0), t("on-update:value", r);
5335
5334
  }, N = () => {
5336
5335
  e.loading || (s.value = J(i.value), C());
5337
- }, T = (v) => {
5336
+ }, T = (b) => {
5338
5337
  const u = {};
5339
- for (const r of v)
5338
+ for (const r of b)
5340
5339
  r.input === "input" && r.params.type === "textarea" && (r.params.type = "text"), r.search.show = r.search.show ?? !0, r.defaultValue ? u[r.key] = r.defaultValue : (u[r.key] = "", (r.input === "number" || r.input === "date" || r.input === "time") && (u[r.key] = null), r.input === "cascader" && (r.params.multiple ? u[r.key] = [] : u[r.key] = null), r.input === "select" && (r.params.multiple ? u[r.key] = [] : u[r.key] = null));
5341
- return { data: v, values: u };
5342
- }, S = (v) => {
5343
- if (v && v.length > 0) {
5344
- const { data: u, values: r } = T(J(v)), y = {}, g = e.id || n.params.id;
5340
+ return { data: b, values: u };
5341
+ }, S = (b) => {
5342
+ if (b && b.length > 0) {
5343
+ const { data: u, values: r } = T(J(b)), v = {}, g = e.id || n.params.id;
5345
5344
  if (e.cache && g) {
5346
- const h = De(`tables_${g}`, !1);
5345
+ const h = Te(`tables_${g}`, !1);
5347
5346
  h && h.params.forEach((f) => {
5348
- y[f.key] = f.value;
5347
+ v[f.key] = f.value;
5349
5348
  });
5350
5349
  }
5351
- c.value = u, s.value = J({ ...r, ...y }), i.value = J(r);
5350
+ c.value = u, s.value = J({ ...r, ...v }), i.value = J(r);
5352
5351
  }
5353
5352
  C(!0);
5354
5353
  };
5355
- return ce(
5354
+ return le(
5356
5355
  () => e.data,
5357
- (v) => {
5358
- S(v);
5356
+ (b) => {
5357
+ S(b);
5359
5358
  }
5360
5359
  ), {
5361
5360
  drawer: l,
@@ -5367,8 +5366,8 @@ const f1 = /* @__PURE__ */ w(i1, [["render", p1]]), h1 = se({
5367
5366
  }
5368
5367
  }), m1 = { class: "flex items-start justify-between gap-8 pb-2" }, w1 = { class: "flex gap-2" }, g1 = { class: "flex items-center gap-2 w-full" };
5369
5368
  function v1(e, t, n, c, l, s) {
5370
- const i = $("Search"), p = $("NIcon"), C = $("NButton"), N = $("NInputGroupLabel"), T = $("UzFormItem"), S = $("NInputGroup"), v = $("NGridItem"), u = $("NGrid"), r = $("Refresh"), y = $("NDrawerContent"), g = $("NDrawer");
5371
- return a(), d(ae, null, [
5369
+ const i = y("Search"), p = y("NIcon"), C = y("NButton"), N = y("NInputGroupLabel"), T = y("UzFormItem"), S = y("NInputGroup"), b = y("NGridItem"), u = y("NGrid"), r = y("Refresh"), v = y("NDrawerContent"), g = y("NDrawer");
5370
+ return a(), d(oe, null, [
5372
5371
  o("div", m1, [
5373
5372
  be(e.$slots, "header"),
5374
5373
  o("div", w1, [
@@ -5389,7 +5388,7 @@ function v1(e, t, n, c, l, s) {
5389
5388
  H(" " + j(e.$t("Common.search")), 1)
5390
5389
  ]),
5391
5390
  _: 1
5392
- })) : E("", !0),
5391
+ })) : q("", !0),
5393
5392
  be(e.$slots, "action")
5394
5393
  ])
5395
5394
  ]),
@@ -5403,7 +5402,7 @@ function v1(e, t, n, c, l, s) {
5403
5402
  "close-on-esc": !1
5404
5403
  }, {
5405
5404
  default: m(() => [
5406
- _(y, {
5405
+ _(v, {
5407
5406
  title: "查询",
5408
5407
  closable: ""
5409
5408
  }, {
@@ -5447,7 +5446,7 @@ function v1(e, t, n, c, l, s) {
5447
5446
  H(" " + j(e.$t("Common.search")), 1)
5448
5447
  ]),
5449
5448
  _: 1
5450
- }, 8, ["loading"])) : E("", !0)
5449
+ }, 8, ["loading"])) : q("", !0)
5451
5450
  ])
5452
5451
  ]),
5453
5452
  default: m(() => [
@@ -5457,7 +5456,7 @@ function v1(e, t, n, c, l, s) {
5457
5456
  cols: "1"
5458
5457
  }, {
5459
5458
  default: m(() => [
5460
- (a(!0), d(ae, null, ke(e.itemData, (h, f) => (a(), I(v, {
5459
+ (a(!0), d(oe, null, we(e.itemData, (h, f) => (a(), I(b, {
5461
5460
  key: `${f}_${Date.now()}`,
5462
5461
  span: h.search.show ? 1 : 0
5463
5462
  }, {
@@ -5504,7 +5503,7 @@ const k1 = /* @__PURE__ */ w(h1, [["render", v1]]), y1 = new RegExp("(?<=\\[)(.+
5504
5503
  filterButton: 1,
5505
5504
  commonTime: 1,
5506
5505
  actionWidth: 300,
5507
- drawerWidth: "900px",
5506
+ drawerWidth: "70%",
5508
5507
  drawerHeight: "96vh",
5509
5508
  placement: "right",
5510
5509
  summary: ""
@@ -5538,7 +5537,7 @@ const fn = () => new Promise((e) => {
5538
5537
  if (c && t.indexOf("return") === -1) {
5539
5538
  const l = c[0].split(":");
5540
5539
  if (l[0] === "date")
5541
- return (s) => je(
5540
+ return (s) => Oe(
5542
5541
  s[e],
5543
5542
  c[0].replace("date:", "") || "YYYY-MM-DD"
5544
5543
  );
@@ -5583,29 +5582,29 @@ const fn = () => new Promise((e) => {
5583
5582
  disabled: l?.status === "0",
5584
5583
  params: l
5585
5584
  };
5586
- }), Ae = /* @__PURE__ */ new Map();
5585
+ }), Re = /* @__PURE__ */ new Map();
5587
5586
  function At() {
5588
- Ae.clear();
5587
+ Re.clear();
5589
5588
  }
5590
5589
  async function Pt(e) {
5591
5590
  const t = e.split(".");
5592
5591
  let n = !1;
5593
- return t.length > 1 && (Ae.has(t[0]) ? n = J(Ae.get(t[0])) : (n = await Re({ tableId: t[0] }), Ae.set(t[0], n))), { sourceData: n, n: t };
5592
+ return t.length > 1 && (Re.has(t[0]) ? n = J(Re.get(t[0])) : (n = await je({ tableId: t[0] }), Re.set(t[0], n))), { sourceData: n, n: t };
5594
5593
  }
5595
5594
  async function Xe(e) {
5596
5595
  return new Promise((t, n) => {
5597
- const c = De(`dynamicTable_${e}`, !1);
5598
- c && Ae.has(`dynamicTable_${e}`) ? t(c) : th(e).then((l) => {
5596
+ const c = Te(`dynamicTable_${e}`, !1);
5597
+ c && Re.has(`dynamicTable_${e}`) ? t(c) : th(e).then((l) => {
5599
5598
  !c || c && c.createTime !== l.createTime ? eh(e).then((s) => {
5600
5599
  const i = {
5601
5600
  createTime: s.createTime,
5602
5601
  tableTitle: s.tableTitle,
5603
5602
  viewJson: s.viewJson
5604
5603
  };
5605
- xe(`dynamicTable_${e}`, i, 0), Ae.set(`dynamicTable_${e}`, !0), Rf("tables_"), t(s);
5604
+ xe(`dynamicTable_${e}`, i, 0), Re.set(`dynamicTable_${e}`, !0), Rf("tables_"), t(s);
5606
5605
  }).catch(() => {
5607
5606
  n();
5608
- }) : (Ae.set(`dynamicTable_${e}`, !0), t(c));
5607
+ }) : (Re.set(`dynamicTable_${e}`, !0), t(c));
5609
5608
  }).catch(() => {
5610
5609
  n();
5611
5610
  });
@@ -5781,7 +5780,7 @@ const _1 = (e) => e.map((t) => {
5781
5780
  h: e.drawerHeight,
5782
5781
  l: e.placement,
5783
5782
  r: e.summary
5784
- }), Le = (e) => {
5783
+ }), qe = (e) => {
5785
5784
  let t = {};
5786
5785
  return e && (e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? t = e : t = {
5787
5786
  index: e.i,
@@ -5801,24 +5800,24 @@ const _1 = (e) => e.map((t) => {
5801
5800
  };
5802
5801
  function yt(e, t, n) {
5803
5802
  return new Promise(async (c, l) => {
5804
- const s = [], i = {}, p = {}, C = {}, N = [], T = [], S = J(e), v = [];
5803
+ const s = [], i = {}, p = {}, C = {}, N = [], T = [], S = J(e), b = [];
5805
5804
  for (const u of S)
5806
- u.input === "group" ? v.push(...u.params.children) : v.push(u);
5807
- for await (const u of v) {
5805
+ u.input === "group" ? b.push(...u.params.children) : b.push(u);
5806
+ for await (const u of b) {
5808
5807
  if (u.source) {
5809
- const { sourceData: r, n: y } = await Pt(u.source);
5808
+ const { sourceData: r, n: v } = await Pt(u.source);
5810
5809
  if (r && Array.isArray(r)) {
5811
5810
  let g = [];
5812
5811
  if (u.sourceFn) {
5813
5812
  const h = u.sourceFn;
5814
5813
  g = new Function("sourceData", h)(r);
5815
5814
  } else
5816
- g = Rt(u, r, y);
5815
+ g = Rt(u, r, v);
5817
5816
  if (u.params.options = g, u.form.backfill && t)
5818
5817
  if (Array.isArray(t))
5819
5818
  t.forEach((h, f) => {
5820
- const b = g.find((D) => D.value === h[u.key]);
5821
- b && (N[f] || (N[f] = {}), N[f][u.key] = b.params);
5819
+ const x = g.find((D) => D.value === h[u.key]);
5820
+ x && (N[f] || (N[f] = {}), N[f][u.key] = x.params);
5822
5821
  });
5823
5822
  else {
5824
5823
  const h = g.find((f) => f.value === t[u.key]);
@@ -5828,23 +5827,23 @@ function yt(e, t, n) {
5828
5827
  }
5829
5828
  if (u.input === "filling")
5830
5829
  try {
5831
- Array.isArray(t) ? t.forEach((r, y) => {
5832
- T[y] || (T[y] = {}), N[y] && N[y][u.params.parentKey] && N[y][u.params.parentKey][u.key] ? (T[y][u.key] = N[y][u.params.parentKey][u.key], N[y][u.params.parentKey][`${u.key}Str`] && (T[y][`${u.key}Str`] = N[y][u.params.parentKey][`${u.key}Str`])) : (T[y][u.key] = null, T[y][`${u.key}Str`] = null);
5830
+ Array.isArray(t) ? t.forEach((r, v) => {
5831
+ T[v] || (T[v] = {}), N[v] && N[v][u.params.parentKey] && N[v][u.params.parentKey][u.key] ? (T[v][u.key] = N[v][u.params.parentKey][u.key], N[v][u.params.parentKey][`${u.key}Str`] && (T[v][`${u.key}Str`] = N[v][u.params.parentKey][`${u.key}Str`])) : (T[v][u.key] = null, T[v][`${u.key}Str`] = null);
5833
5832
  }) : p[u.params.parentKey] && p[u.params.parentKey][u.key] ? (C[u.key] = p[u.params.parentKey][u.key], p[u.params.parentKey][`${u.key}Str`] && (C[`${u.key}Str`] = p[u.params.parentKey][`${u.key}Str`])) : (C[u.key] = null, C[`${u.key}Str`] = null);
5834
5833
  } catch (r) {
5835
5834
  ne(r);
5836
5835
  }
5837
5836
  if (u.input !== "divider" && u.form.rule && u.form.rule.validator && typeof u.form.rule.validator == "string")
5838
5837
  try {
5839
- const r = u.form.rule.validator, y = new Function("rule", "value", "index", "formValues", r);
5840
- u.form.rule.validator = (g, h) => y(g, h, null, n);
5838
+ const r = u.form.rule.validator, v = new Function("rule", "value", "index", "formValues", r);
5839
+ u.form.rule.validator = (g, h) => v(g, h, null, n);
5841
5840
  } catch (r) {
5842
5841
  ne(r);
5843
5842
  }
5844
5843
  if (u.input === "date" && u.params.isDateDisabled && typeof u.params.isDateDisabled == "string")
5845
5844
  try {
5846
- const r = u.params.isDateDisabled, y = new Function("ts", "detail", r);
5847
- u.params.isDateDisabled = (g, h) => y(g, h);
5845
+ const r = u.params.isDateDisabled, v = new Function("ts", "detail", r);
5846
+ u.params.isDateDisabled = (g, h) => v(g, h);
5848
5847
  } catch (r) {
5849
5848
  ne(r);
5850
5849
  }
@@ -5858,7 +5857,7 @@ function yt(e, t, n) {
5858
5857
  });
5859
5858
  if (r)
5860
5859
  try {
5861
- const y = Pe.parse(r.viewJson), g = Ye(y.table);
5860
+ const v = Ae.parse(r.viewJson), g = Ye(v.table);
5862
5861
  g.forEach((f) => {
5863
5862
  f.table.sorter = !1;
5864
5863
  });
@@ -5867,25 +5866,25 @@ function yt(e, t, n) {
5867
5866
  );
5868
5867
  if (h)
5869
5868
  for await (const f of h) {
5870
- const b = await Xe(
5869
+ const x = await Xe(
5871
5870
  f.params.link
5872
5871
  ).catch(() => {
5873
5872
  l();
5874
5873
  });
5875
- if (b)
5874
+ if (x)
5876
5875
  try {
5877
- const D = Pe.parse(b.viewJson), q = Ye(D.table);
5878
- q.forEach((K) => {
5879
- K.table.sorter = !1;
5880
- }), f.params.columns = q, f.params.actions = D.action;
5876
+ const D = Ae.parse(x.viewJson), L = Ye(D.table);
5877
+ L.forEach((G) => {
5878
+ G.table.sorter = !1;
5879
+ }), f.params.columns = L, f.params.actions = D.action;
5881
5880
  } catch (D) {
5882
5881
  l(D);
5883
5882
  return;
5884
5883
  }
5885
5884
  }
5886
- u.params.columns = g, u.params.actions = y.action;
5887
- } catch (y) {
5888
- l(y);
5885
+ u.params.columns = g, u.params.actions = v.action;
5886
+ } catch (v) {
5887
+ l(v);
5889
5888
  return;
5890
5889
  }
5891
5890
  }
@@ -5918,11 +5917,11 @@ async function bt(e, t = !1, n = 0, c = () => {
5918
5917
  title: r.label,
5919
5918
  key: r.key,
5920
5919
  ...r.table,
5921
- children: r.params.children.map((y) => y.key)
5920
+ children: r.params.children.map((v) => v.key)
5922
5921
  })) : (T.push(r), S.push(r.key));
5923
- const v = [];
5922
+ const b = [];
5924
5923
  e.forEach((r) => {
5925
- (r.input === "cascader" || r.input === "select") && r.params.multiple && v.push(r.key);
5924
+ (r.input === "cascader" || r.input === "select") && r.params.multiple && b.push(r.key);
5926
5925
  });
5927
5926
  for await (const r of T) {
5928
5927
  if (r.source && !r.table.render && r.input !== "auto") {
@@ -5930,28 +5929,28 @@ async function bt(e, t = !1, n = 0, c = () => {
5930
5929
  if (g && Array.isArray(g))
5931
5930
  if (r.table.render = (f) => {
5932
5931
  if (g && g.length > 0)
5933
- if (v.includes(r.key) && f[r.key]) {
5934
- const b = [], D = JSON.parse(f[r.key]);
5932
+ if (b.includes(r.key) && f[r.key]) {
5933
+ const x = [], D = JSON.parse(f[r.key]);
5935
5934
  if (D)
5936
- for (const q of D) {
5937
- const K = g.find(
5938
- (O) => String(O.id) === q
5935
+ for (const L of D) {
5936
+ const G = g.find(
5937
+ (U) => String(U.id) === L
5939
5938
  );
5940
- K && b.push(
5939
+ G && x.push(
5941
5940
  Z(
5942
5941
  fs,
5943
5942
  {
5944
5943
  type: "info"
5945
5944
  },
5946
5945
  {
5947
- default: () => K[h[1]]
5946
+ default: () => G[h[1]]
5948
5947
  }
5949
5948
  )
5950
5949
  );
5951
5950
  }
5952
- return b;
5951
+ return x;
5953
5952
  } else {
5954
- const b = g.find(
5953
+ const x = g.find(
5955
5954
  (D) => (
5956
5955
  // @ts-ignore
5957
5956
  (r.params?.valueKey ? (
@@ -5960,12 +5959,12 @@ async function bt(e, t = !1, n = 0, c = () => {
5960
5959
  ) : String(D.id)) === f[r.key]
5961
5960
  )
5962
5961
  );
5963
- if (b)
5964
- return b[h[1]];
5962
+ if (x)
5963
+ return x[h[1]];
5965
5964
  }
5966
5965
  }, r.sourceFn) {
5967
- const f = r.sourceFn, b = new Function("sourceData", f);
5968
- r.params.options = b(g);
5966
+ const f = r.sourceFn, x = new Function("sourceData", f);
5967
+ r.params.options = x(g);
5969
5968
  } else
5970
5969
  r.params.options = Rt(r, g, h);
5971
5970
  }
@@ -5990,7 +5989,7 @@ async function bt(e, t = !1, n = 0, c = () => {
5990
5989
  }
5991
5990
  );
5992
5991
  }), s = s + Number(r.table.width || 140);
5993
- let y = {
5992
+ let v = {
5994
5993
  input: r.input,
5995
5994
  title: r.label,
5996
5995
  key: r.key,
@@ -6006,15 +6005,15 @@ async function bt(e, t = !1, n = 0, c = () => {
6006
6005
  fixTemp: r.table.fixed
6007
6006
  };
6008
6007
  if (t)
6009
- if (!y.form.edit.show)
6010
- y = null;
6008
+ if (!v.form.edit.show)
6009
+ v = null;
6011
6010
  else {
6012
- if (y.ellipsis = !1, y.resizable = !1, de.isMobile && (y.show = r.table.mobile), r.table.show && (n === 0 && (y.show = r.form.create.show), n === 1 && (y.show = r.form.edit.show), n === 2 && (y.show = r.form.show)), r.form.rule?.required && typeof r.form.rule.validator == "string") {
6011
+ if (v.ellipsis = !1, v.resizable = !1, de.isMobile && (v.show = r.table.mobile), r.table.show && (n === 0 && (v.show = r.form.create.show), n === 1 && (v.show = r.form.edit.show), n === 2 && (v.show = r.form.show)), r.form.rule?.required && typeof r.form.rule.validator == "string") {
6013
6012
  delete r.form.rule.message;
6014
6013
  const g = r.form.rule.validator, h = new Function("rule", "value", "index", "formValues", g);
6015
- r.form.rule.validator !== "" ? r.form.rule.validator = (f, b) => c()[f.index].delete ? !0 : h(f, b, f.index, () => c()) : r.form.rule.validator = (f, b) => c()[f.index].delete || b ? !0 : new Error(r.form.rule.message);
6014
+ r.form.rule.validator !== "" ? r.form.rule.validator = (f, x) => c()[f.index].delete ? !0 : h(f, x, f.index, () => c()) : r.form.rule.validator = (f, x) => c()[f.index].delete || x ? !0 : new Error(r.form.rule.message);
6016
6015
  }
6017
- y.render = function(g, h) {
6016
+ v.render = function(g, h) {
6018
6017
  return Z(
6019
6018
  Jt,
6020
6019
  {
@@ -6038,7 +6037,7 @@ async function bt(e, t = !1, n = 0, c = () => {
6038
6037
  );
6039
6038
  };
6040
6039
  }
6041
- if (y && r.input !== "divider" && r.input !== "subTable" && C.push(y), r.input !== "divider" && r.input !== "switch" && r.input !== "subTable" && r.input !== "upload" && r.search.show) {
6040
+ if (v && r.input !== "divider" && r.input !== "subTable" && C.push(v), r.input !== "divider" && r.input !== "switch" && r.input !== "subTable" && r.input !== "upload" && r.search.show) {
6042
6041
  if (r.search.source)
6043
6042
  if (r.input = "select", r.params.type = r.search.type, r.params.valueKey = r.search.valueKey, r.params.valueKey = r.search.valueKey, r.search.source === "from-up")
6044
6043
  r.params.options = r.params.options;
@@ -6046,8 +6045,8 @@ async function bt(e, t = !1, n = 0, c = () => {
6046
6045
  const { sourceData: g, n: h } = await Pt(r.search.source);
6047
6046
  if (g && Array.isArray(g))
6048
6047
  if (r.sourceFn) {
6049
- const f = r.sourceFn, b = new Function("sourceData", f);
6050
- r.params.options = b(g);
6048
+ const f = r.sourceFn, x = new Function("sourceData", f);
6049
+ r.params.options = x(g);
6051
6050
  } else
6052
6051
  r.params.options = Rt(r, g, h);
6053
6052
  }
@@ -6073,13 +6072,13 @@ async function bt(e, t = !1, n = 0, c = () => {
6073
6072
  if (S.length > 0) {
6074
6073
  for (const r of S) {
6075
6074
  if (typeof r == "string") {
6076
- const y = C.find((g) => g.key === r);
6077
- y && u.push(y);
6075
+ const v = C.find((g) => g.key === r);
6076
+ v && u.push(v);
6078
6077
  }
6079
6078
  if (typeof r == "object") {
6080
- const y = r.children, g = [];
6081
- for (const h of y) {
6082
- const f = C.find((b) => b.key === h);
6079
+ const v = r.children, g = [];
6080
+ for (const h of v) {
6081
+ const f = C.find((x) => x.key === h);
6083
6082
  f && g.push(f);
6084
6083
  }
6085
6084
  r.children = g, u.push(r);
@@ -6097,7 +6096,7 @@ async function bt(e, t = !1, n = 0, c = () => {
6097
6096
  const N1 = se({
6098
6097
  name: "UzSpin",
6099
6098
  components: {
6100
- NButton: ge,
6099
+ NButton: ve,
6101
6100
  NSpin: ut,
6102
6101
  NEllipsis: hs
6103
6102
  },
@@ -6118,7 +6117,7 @@ const N1 = se({
6118
6117
  }
6119
6118
  },
6120
6119
  setup(e, { emit: t }) {
6121
- const n = x(), c = x(5), l = () => {
6120
+ const n = $(), c = $(5), l = () => {
6122
6121
  t("update:value", !1);
6123
6122
  }, s = () => {
6124
6123
  clearInterval(n.value);
@@ -6130,7 +6129,7 @@ const N1 = se({
6130
6129
  };
6131
6130
  return An(() => {
6132
6131
  clearInterval(n.value);
6133
- }), ce(
6132
+ }), le(
6134
6133
  () => e.status,
6135
6134
  (p) => {
6136
6135
  p === 1 && i();
@@ -6143,7 +6142,7 @@ const N1 = se({
6143
6142
  }
6144
6143
  });
6145
6144
  function S1(e, t, n, c, l, s) {
6146
- const i = $("NEllipsis"), p = $("NButton"), C = $("NSpin");
6145
+ const i = y("NEllipsis"), p = y("NButton"), C = y("NSpin");
6147
6146
  return a(), I(C, { show: e.value }, {
6148
6147
  description: m(() => [
6149
6148
  _(i, {
@@ -6181,13 +6180,13 @@ function S1(e, t, n, c, l, s) {
6181
6180
  const ya = /* @__PURE__ */ w(N1, [["render", S1]]), z1 = se({
6182
6181
  name: "UzOcr",
6183
6182
  components: {
6184
- NButton: ge,
6183
+ NButton: ve,
6185
6184
  NUpload: En,
6186
- NIcon: we,
6185
+ NIcon: ge,
6187
6186
  Copy: ln
6188
6187
  },
6189
6188
  setup() {
6190
- const e = dt(), { toClipboard: t } = zs(), { t: n } = ft(), c = x(), l = x(!1), s = x(n("OCR.scan")), i = x([]), p = x(null), C = async (v) => {
6189
+ const e = dt(), { toClipboard: t } = zs(), { t: n } = ft(), c = $(), l = $(!1), s = $(n("OCR.scan")), i = $([]), p = $(null), C = async (b) => {
6191
6190
  p.value || (p.value = await Ds(["chi_sim"], void 0, {
6192
6191
  workerPath: "https://spark-1355708620.cos.ap-shanghai.myqcloud.com/static/worker.min.js",
6193
6192
  langPath: "https://spark-1355708620.cos.ap-shanghai.myqcloud.com/static/chi_sim_vert.traineddata",
@@ -6196,14 +6195,14 @@ const ya = /* @__PURE__ */ w(N1, [["render", S1]]), z1 = se({
6196
6195
  try {
6197
6196
  const {
6198
6197
  data: { text: u }
6199
- } = await p.value.recognize(v);
6198
+ } = await p.value.recognize(b);
6200
6199
  return await p.value.terminate(), u;
6201
6200
  } catch (u) {
6202
6201
  ne(u);
6203
6202
  }
6204
- }, N = async (v) => {
6203
+ }, N = async (b) => {
6205
6204
  try {
6206
- await t(v, c.value), e.success({
6205
+ await t(b, c.value), e.success({
6207
6206
  content: "复制成功",
6208
6207
  duration: 3e3
6209
6208
  });
@@ -6213,14 +6212,14 @@ const ya = /* @__PURE__ */ w(N1, [["render", S1]]), z1 = se({
6213
6212
  duration: 3e3
6214
6213
  });
6215
6214
  }
6216
- }, T = async (v) => {
6215
+ }, T = async (b) => {
6217
6216
  s.value = n("OCR.analysis");
6218
- const u = await C(v).catch(() => {
6217
+ const u = await C(b).catch(() => {
6219
6218
  s.value = n("OCR.analysisError"), l.value = !1;
6220
6219
  }), r = [];
6221
6220
  u.split(`
6222
- `).forEach((y) => {
6223
- const g = y.replace(/\s+/g, "");
6221
+ `).forEach((v) => {
6222
+ const g = v.replace(/\s+/g, "");
6224
6223
  g && r.push(g);
6225
6224
  }), i.value = r, s.value = n("OCR.scan"), l.value = !1;
6226
6225
  };
@@ -6230,10 +6229,10 @@ const ya = /* @__PURE__ */ w(N1, [["render", S1]]), z1 = se({
6230
6229
  ocrText: s,
6231
6230
  ocrLoading: l,
6232
6231
  copy: N,
6233
- beforeUpload: (v) => new Promise((u, r) => {
6234
- if (l.value = !0, s.value = n("OCR.upload"), v.file.file) {
6235
- const y = new FormData();
6236
- y.append("file", v.file.file), da("file/cos/upload", y).then((g) => {
6232
+ beforeUpload: (b) => new Promise((u, r) => {
6233
+ if (l.value = !0, s.value = n("OCR.upload"), b.file.file) {
6234
+ const v = new FormData();
6235
+ v.append("file", b.file.file), da("file/cos/upload", v).then((g) => {
6237
6236
  T(g), u();
6238
6237
  }).catch(() => {
6239
6238
  s.value = n("OCR.uploadError"), l.value = !1, r();
@@ -6247,7 +6246,7 @@ const ya = /* @__PURE__ */ w(N1, [["render", S1]]), z1 = se({
6247
6246
  class: "uz-ocr-list uz-transform-fade-in flex gap-2 flex-wrap overflow-y-auto"
6248
6247
  };
6249
6248
  function F1(e, t, n, c, l, s) {
6250
- const i = $("NButton"), p = $("NUpload"), C = $("Copy"), N = $("NIcon");
6249
+ const i = y("NButton"), p = y("NUpload"), C = y("Copy"), N = y("NIcon");
6251
6250
  return a(), d("div", D1, [
6252
6251
  _(p, {
6253
6252
  accept: "image/gif,image/jpeg,image/jpg,image/png,image/webp",
@@ -6272,7 +6271,7 @@ function F1(e, t, n, c, l, s) {
6272
6271
  }, 8, ["on-before-upload"]),
6273
6272
  t[0] || (t[0] = o("div", { class: "uz-br" }, null, -1)),
6274
6273
  o("div", T1, [
6275
- (a(!0), d(ae, null, ke(e.text, (T) => (a(), d("div", {
6274
+ (a(!0), d(oe, null, we(e.text, (T) => (a(), d("div", {
6276
6275
  key: T,
6277
6276
  class: "uz-ocr-text flex items-center"
6278
6277
  }, [
@@ -6295,8 +6294,8 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6295
6294
  components: {
6296
6295
  NDataTable: tn,
6297
6296
  NPopover: Ee,
6298
- NButton: ge,
6299
- NIcon: we,
6297
+ NButton: ve,
6298
+ NIcon: ge,
6300
6299
  NDrawer: en,
6301
6300
  NDrawerContent: Zt,
6302
6301
  NSkeleton: Jn,
@@ -6442,59 +6441,59 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6442
6441
  value: () => null,
6443
6442
  setValue: () => null
6444
6443
  });
6445
- const l = pt(), { t: s } = ft(), i = dt(), p = Be(() => de.isMobile), C = x(), N = x(!!c.header), T = x(), S = x(!1), v = x(!1), u = x(!1), r = x(""), y = x(), g = x([]), h = x([]), f = x([]), b = x(void 0), D = x({
6444
+ const l = pt(), { t: s } = ft(), i = dt(), p = Be(() => de.isMobile), C = $(), N = $(!!c.header), T = $(), S = $(!1), b = $(!1), u = $(!1), r = $(""), v = $(), g = $([]), h = $([]), f = $([]), x = $(void 0), D = $({
6446
6445
  params: [],
6447
6446
  query: {
6448
6447
  page: 1,
6449
6448
  pageMax: 1,
6450
6449
  pageSize: e.pageSize || 30
6451
6450
  }
6452
- }), q = x([]), K = x(void 0), O = x(void 0), B = x(!1), F = x(0), M = x({}), z = x([]), P = x([]), V = x([]), L = x([]), Q = x({
6451
+ }), L = $([]), G = $(void 0), U = $(void 0), B = $(!1), F = $(0), M = $({}), z = $([]), P = $([]), V = $([]), E = $([]), Q = $({
6453
6452
  fetch: null,
6454
6453
  when_drawer_open: "",
6455
6454
  when_before_save: ""
6456
- }), W = x(Le()), oe = x(!1), ve = x(0), _e = x(""), He = x(!1), Ce = x([]), fe = x([]), nt = x(!1), wn = x(""), gn = x({}), Fa = Ve("modules"), Ba = (k) => k.id, Va = (k, U) => {
6455
+ }), K = $(qe()), re = $(!1), ke = $(0), _e = $(""), Pe = $(!1), Ce = $([]), fe = $([]), nt = $(!1), wn = $(""), gn = $({}), Fa = Ve("modules"), Ba = (k) => k.id, Va = (k, O) => {
6457
6456
  t("update:rowKeys", {
6458
6457
  keys: k,
6459
- rows: J(U)
6458
+ rows: J(O)
6460
6459
  });
6461
- }, Ia = (k, U, G) => {
6462
- if (Ce.value = k, G.action === "check" && fe.value.push(G.row), G.action === "uncheck") {
6460
+ }, Ia = (k, O, W) => {
6461
+ if (Ce.value = k, W.action === "check" && fe.value.push(W.row), W.action === "uncheck") {
6463
6462
  const Y = fe.value.findIndex(
6464
- (A) => A.id === G.row?.id
6463
+ (A) => A.id === W.row?.id
6465
6464
  );
6466
6465
  fe.value.splice(Y, 1);
6467
6466
  }
6468
- G.action === "checkAll" && U.forEach((Y) => {
6467
+ W.action === "checkAll" && O.forEach((Y) => {
6469
6468
  Y && fe.value.push(Y);
6470
- }), G.action === "uncheckAll" && (fe.value = [], Ce.value = []), t("update:rowKeys", {
6469
+ }), W.action === "uncheckAll" && (fe.value = [], Ce.value = []), t("update:rowKeys", {
6471
6470
  keys: J(Ce.value),
6472
6471
  rows: J(fe.value)
6473
6472
  });
6474
6473
  }, Ua = (k) => {
6475
- const U = e.summary || W.value.summary;
6476
- return U && typeof U == "string" ? new Function("pageData", "h", U)(k, "h", Z) : U && typeof U == "function" ? U(k) : [];
6474
+ const O = e.summary || K.value.summary;
6475
+ return O && typeof O == "string" ? new Function("pageData", "h", O)(k, "h", Z) : O && typeof O == "function" ? O(k) : [];
6477
6476
  }, he = (k = !1) => {
6478
- const U = e.id || l.params.id;
6477
+ const O = e.id || l.params.id;
6479
6478
  e.enableLoading && (S.value = !0, t("update:loading", !0));
6480
- const G = J(D.value);
6481
- if (k && delete G.orderby, Q.value.fetch)
6482
- Sn([Q.value.fetch], "", G).then((Y) => {
6479
+ const W = J(D.value);
6480
+ if (k && delete W.orderby, Q.value.fetch)
6481
+ Sn([Q.value.fetch], "", W).then((Y) => {
6483
6482
  const A = Mn(Y);
6484
- D.value.query = A.query, f.value = A.records, S.value = !1, v.value = !0, t("on-update:value", G), t("update:loading", !1), W.value.cache && U && xe(`tables_${U}`, D.value);
6483
+ D.value.query = A.query, f.value = A.records, S.value = !1, b.value = !0, t("on-update:value", W), t("update:loading", !1), K.value.cache && O && xe(`tables_${O}`, D.value);
6485
6484
  }).catch(() => {
6486
- S.value = !1, v.value = !0, t("update:loading", !1);
6485
+ S.value = !1, b.value = !0, t("update:loading", !1);
6487
6486
  });
6488
6487
  else {
6489
6488
  let Y;
6490
- e.fetch ? Y = e.fetch({ ...G, tableId: U }) : Y = Re({
6491
- ...G,
6492
- tableId: U
6489
+ e.fetch ? Y = e.fetch({ ...W, tableId: O }) : Y = je({
6490
+ ...W,
6491
+ tableId: O
6493
6492
  }), Y.then((A) => {
6494
6493
  const ee = Mn(A);
6495
- D.value.query = ee.query, f.value = ee.records, S.value = !1, v.value = !0, t("on-update:value", G), t("update:loading", !1), W.value.cache && U && xe(`tables_${U}`, D.value);
6494
+ D.value.query = ee.query, f.value = ee.records, S.value = !1, b.value = !0, t("on-update:value", W), t("update:loading", !1), K.value.cache && O && xe(`tables_${O}`, D.value);
6496
6495
  }).catch(() => {
6497
- S.value = !1, v.value = !0, t("update:loading", !1);
6496
+ S.value = !1, b.value = !0, t("update:loading", !1);
6498
6497
  });
6499
6498
  }
6500
6499
  }, Oa = (k) => {
@@ -6514,8 +6513,8 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6514
6513
  k.show = !k.show, _t();
6515
6514
  }, La = () => {
6516
6515
  const k = [];
6517
- h.value.forEach((U) => {
6518
- U.show && k.push(U);
6516
+ h.value.forEach((O) => {
6517
+ O.show && k.push(O);
6519
6518
  }), g.value = k;
6520
6519
  }, Ea = (k) => {
6521
6520
  D.value.params = k, he();
@@ -6540,7 +6539,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6540
6539
  "div",
6541
6540
  {},
6542
6541
  {
6543
- default: () => je(k.createTime, "yyyy-MM-dd hh:mm:ss")
6542
+ default: () => Oe(k.createTime, "yyyy-MM-dd hh:mm:ss")
6544
6543
  }
6545
6544
  )
6546
6545
  ]
@@ -6565,53 +6564,53 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6565
6564
  "div",
6566
6565
  {},
6567
6566
  {
6568
- default: () => je(k.updateTime, "yyyy-MM-dd hh:mm:ss")
6567
+ default: () => Oe(k.updateTime, "yyyy-MM-dd hh:mm:ss")
6569
6568
  }
6570
6569
  )
6571
6570
  ]
6572
6571
  }
6573
6572
  ], ot = (k) => !e.ruleFetch || !z.value || z.value && z.value[0] === "*" ? !1 : !z.value?.includes(k), $t = async (k) => {
6574
- const { form: U, fillingDefaultValue: G } = await yt(
6573
+ const { form: O, fillingDefaultValue: W } = await yt(
6575
6574
  P.value,
6576
6575
  k,
6577
6576
  () => T.value.getValues()
6578
6577
  );
6579
- return y.value = U, G;
6580
- }, xt = async (k) => new Promise((U, G) => {
6578
+ return v.value = O, W;
6579
+ }, xt = async (k) => new Promise((O, W) => {
6581
6580
  const Y = e.id || l.params.id;
6582
6581
  let A;
6583
6582
  e.fetch ? A = e.fetch({
6584
6583
  id: k.id,
6585
6584
  tableId: Y
6586
- }) : A = Re({
6585
+ }) : A = je({
6587
6586
  id: k.id,
6588
6587
  tableId: Y
6589
6588
  }), A.then((ee) => {
6590
- U(ee && ee[0]);
6589
+ O(ee && ee[0]);
6591
6590
  }).catch(() => {
6592
- G();
6591
+ W();
6593
6592
  });
6594
6593
  }), rt = (k) => {
6595
- const U = Q.value.when_drawer_open;
6596
- if (U && typeof U == "string")
6594
+ const O = Q.value.when_drawer_open;
6595
+ if (O && typeof O == "string")
6597
6596
  try {
6598
- new Function("data", "POST", U)(k, ue).then((Y) => {
6597
+ new Function("data", "POST", O)(k, ue).then((Y) => {
6599
6598
  M.value = Y;
6600
6599
  }).catch((Y) => {
6601
6600
  ne(Y);
6602
6601
  });
6603
- } catch (G) {
6604
- ne(G);
6602
+ } catch (W) {
6603
+ ne(W);
6605
6604
  }
6606
- }, vn = (k, U) => {
6607
- const G = J(k.onClick), Y = e.id || l.params.id;
6605
+ }, vn = (k, O) => {
6606
+ const W = J(k.onClick), Y = e.id || l.params.id;
6608
6607
  if (k.disabled) {
6609
6608
  if (typeof k.disabled == "string") {
6610
6609
  const A = new Function("rowData", "rowIndex", k.disabled);
6611
- k.disabled = (ee, re) => A(ee, re) || ot(k.key);
6610
+ k.disabled = (ee, ae) => A(ee, ae) || ot(k.key);
6612
6611
  } else if (typeof k.disabled == "function") {
6613
6612
  const A = J(k);
6614
- k.disabled = (ee, re) => A.disabled(ee, re) || ot(k.key);
6613
+ k.disabled = (ee, ae) => A.disabled(ee, ae) || ot(k.key);
6615
6614
  }
6616
6615
  } else
6617
6616
  k.disabled = () => ot(k.key);
@@ -6619,22 +6618,21 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6619
6618
  k.onClick = async (A) => {
6620
6619
  xt(A).then((ee) => {
6621
6620
  if (k.optionsType === "drawer:insider") {
6622
- if (G)
6621
+ if (W)
6623
6622
  try {
6624
6623
  new Function(
6625
6624
  "rowData",
6626
6625
  "POST",
6627
6626
  "fnNotification",
6628
- G
6627
+ W
6629
6628
  )(ee, ue, i).then((me) => {
6630
- gn.value = me;
6629
+ gn.value = me, wn.value = k.optionsSource || "", nt.value = !0;
6631
6630
  }).catch((me) => {
6632
6631
  ne(me);
6633
6632
  });
6634
- } catch (re) {
6635
- ne(re);
6633
+ } catch (ae) {
6634
+ ne(ae);
6636
6635
  }
6637
- wn.value = k.optionsSource || "", nt.value = !0;
6638
6636
  } else
6639
6637
  t("update:suffixes", {
6640
6638
  title: k.buttonText,
@@ -6650,8 +6648,8 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6650
6648
  else if (k.type !== "group" && k.action === "detailInside") {
6651
6649
  const A = J(k.onClick);
6652
6650
  k.onClick = (ee) => {
6653
- B.value = !0, F.value = 2, xt(ee).then(async (re) => {
6654
- const me = await $t(re), le = { ...re, ...me };
6651
+ B.value = !0, F.value = 2, xt(ee).then(async (ae) => {
6652
+ const me = await $t(ae), ie = { ...ae, ...me };
6655
6653
  if (A && typeof A == "string")
6656
6654
  try {
6657
6655
  new Function(
@@ -6659,7 +6657,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6659
6657
  "POST",
6660
6658
  "fnNotification",
6661
6659
  A
6662
- )(le, ue, i).then((Me) => {
6660
+ )(ie, ue, i).then((Me) => {
6663
6661
  Q.value.when_drawer_open ? rt(Me) : M.value = Me;
6664
6662
  }).catch((Me) => {
6665
6663
  ne(Me);
@@ -6668,7 +6666,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6668
6666
  ne(ye);
6669
6667
  }
6670
6668
  else
6671
- Q.value.when_drawer_open ? rt(le) : M.value = le;
6669
+ Q.value.when_drawer_open ? rt(ie) : M.value = ie;
6672
6670
  }).catch(() => {
6673
6671
  Ge();
6674
6672
  });
@@ -6676,8 +6674,8 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6676
6674
  } else if (k.type !== "group" && k.action === "editInside") {
6677
6675
  const A = J(k.onClick);
6678
6676
  k.onClick = (ee) => {
6679
- B.value = !0, F.value = 1, xt(ee).then(async (re) => {
6680
- const me = await $t(re), le = { ...re, ...me };
6677
+ B.value = !0, F.value = 1, xt(ee).then(async (ae) => {
6678
+ const me = await $t(ae), ie = { ...ae, ...me };
6681
6679
  if (A && typeof A == "string")
6682
6680
  try {
6683
6681
  new Function(
@@ -6685,14 +6683,14 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6685
6683
  "POST",
6686
6684
  "fnNotification",
6687
6685
  A
6688
- )(le, ue, i).then((Me) => {
6686
+ )(ie, ue, i).then((Me) => {
6689
6687
  Q.value.when_drawer_open ? rt(Me) : M.value = Me;
6690
6688
  }).catch(() => null);
6691
6689
  } catch (ye) {
6692
6690
  ne(ye);
6693
6691
  }
6694
6692
  else
6695
- Q.value.when_drawer_open ? rt(le) : M.value = le;
6693
+ Q.value.when_drawer_open ? rt(ie) : M.value = ie;
6696
6694
  }).catch(() => {
6697
6695
  Ge();
6698
6696
  });
@@ -6703,37 +6701,37 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6703
6701
  e.deleteFetch ? ee = e.deleteFetch({
6704
6702
  ...A,
6705
6703
  tableId: Y,
6706
- sub_table_ids: U
6704
+ sub_table_ids: O
6707
6705
  }) : ee = nh({
6708
6706
  ...A,
6709
6707
  tableId: Y,
6710
- sub_table_ids: U
6708
+ sub_table_ids: O
6711
6709
  }), ee.then(() => {
6712
6710
  he();
6713
- }).catch((re) => {
6714
- ne(re);
6711
+ }).catch((ae) => {
6712
+ ne(ae);
6715
6713
  });
6716
6714
  };
6717
6715
  else if (k.type !== "group" && k.action) {
6718
6716
  const A = J(k.onClick);
6719
6717
  k.onClick = (ee) => {
6720
- let re;
6721
- e.fetch ? re = e.fetch({
6718
+ let ae;
6719
+ e.fetch ? ae = e.fetch({
6722
6720
  id: ee.id,
6723
6721
  tableId: Y
6724
- }) : re = Re({
6722
+ }) : ae = je({
6725
6723
  id: ee.id,
6726
6724
  tableId: Y
6727
- }), re.then((me) => {
6728
- const le = me && me[0];
6725
+ }), ae.then((me) => {
6726
+ const ie = me && me[0];
6729
6727
  Sn(
6730
6728
  [k.action],
6731
- le.id,
6732
- le
6729
+ ie.id,
6730
+ ie
6733
6731
  ).then((ye) => {
6734
6732
  if (A && typeof A == "string") {
6735
6733
  try {
6736
- new Function("rowData", "res", A)(le, ye).then((Ct) => {
6734
+ new Function("rowData", "res", A)(ie, ye).then((Ct) => {
6737
6735
  i.success({
6738
6736
  content: Ct,
6739
6737
  duration: 3e3
@@ -6747,7 +6745,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6747
6745
  return;
6748
6746
  }
6749
6747
  if (A && typeof A == "function") {
6750
- A(le, ye, () => {
6748
+ A(ie, ye, () => {
6751
6749
  i.success({
6752
6750
  content: () => s("Notice.success"),
6753
6751
  duration: 3e3
@@ -6769,8 +6767,8 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6769
6767
  };
6770
6768
  }
6771
6769
  }, kn = async () => {
6772
- He.value = !1, At();
6773
- const { tableColumns: k, search: U, subTableIds: G, tableWidth: Y } = await bt(
6770
+ Pe.value = !1, At();
6771
+ const { tableColumns: k, search: O, subTableIds: W, tableWidth: Y } = await bt(
6774
6772
  P.value,
6775
6773
  e.child,
6776
6774
  F.value,
@@ -6778,7 +6776,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6778
6776
  Fa
6779
6777
  );
6780
6778
  let A = Y;
6781
- !p.value && W.value.index && (k.unshift({
6779
+ !p.value && K.value.index && (k.unshift({
6782
6780
  title: "#",
6783
6781
  key: "index",
6784
6782
  align: "center",
@@ -6787,72 +6785,72 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6787
6785
  width: 60,
6788
6786
  hide: !0,
6789
6787
  show: !0,
6790
- render(re, me) {
6788
+ render(ae, me) {
6791
6789
  return Z(
6792
6790
  "span",
6793
6791
  {},
6794
6792
  {
6795
6793
  default: () => {
6796
- const le = D.value.query.page || 1, ye = D.value.query.pageSize || 30;
6797
- return (le - 1) * ye + (me + 1);
6794
+ const ie = D.value.query.page || 1, ye = D.value.query.pageSize || 30;
6795
+ return (ie - 1) * ye + (me + 1);
6798
6796
  }
6799
6797
  }
6800
6798
  );
6801
6799
  }
6802
- }), A = A + 60), !p.value && (e.selection || W.value.selection !== 0) && (k.unshift({
6800
+ }), A = A + 60), !p.value && (e.selection || K.value.selection !== 0) && (k.unshift({
6803
6801
  type: "selection",
6804
6802
  fixed: "left",
6805
6803
  width: 60,
6806
6804
  hide: !0,
6807
6805
  show: !0,
6808
- multiple: e.selection === 2 || W.value.selection === 2,
6806
+ multiple: e.selection === 2 || K.value.selection === 2,
6809
6807
  options: ["all", "none"]
6810
6808
  }), A = A + 60);
6811
6809
  const ee = e.id || l.params.id;
6812
- if (!p.value && W.value.commonTime && k.push(...Ka()), e.enableAction === !0 && V.value && V.value.length > 0) {
6813
- const re = J(V.value);
6814
- for (const le of re)
6815
- le.type === "group" ? le.children.forEach((ye) => {
6816
- vn(ye, G);
6817
- }) : vn(le, G);
6810
+ if (!p.value && K.value.commonTime && k.push(...Ka()), e.enableAction === !0 && V.value && V.value.length > 0) {
6811
+ const ae = J(V.value);
6812
+ for (const ie of ae)
6813
+ ie.type === "group" ? ie.children.forEach((ye) => {
6814
+ vn(ye, W);
6815
+ }) : vn(ie, W);
6818
6816
  const me = {
6819
6817
  title: () => s("Common.action"),
6820
6818
  key: "action",
6821
6819
  align: "center",
6822
6820
  fixed: "right",
6823
- width: W.value.actionWidth,
6821
+ width: K.value.actionWidth,
6824
6822
  resizable: !0,
6825
6823
  checked: !0,
6826
6824
  show: !0,
6827
6825
  hide: !0,
6828
- render(le) {
6826
+ render(ie) {
6829
6827
  return tt({
6830
- buttons: re,
6831
- rowData: le,
6828
+ buttons: ae,
6829
+ rowData: ie,
6832
6830
  callback: he,
6833
6831
  tableId: ee
6834
6832
  });
6835
6833
  }
6836
6834
  };
6837
6835
  A = A + Number(
6838
- typeof W.value.actionWidth == "string" ? W.value.actionWidth.replace("px", "") : W.value.actionWidth
6836
+ typeof K.value.actionWidth == "string" ? K.value.actionWidth.replace("px", "") : K.value.actionWidth
6839
6837
  ), k.push(me);
6840
6838
  }
6841
- h.value = k, q.value = U, b.value = A;
6839
+ h.value = k, L.value = O, x.value = A;
6842
6840
  }, yn = (k) => typeof k == "number" ? `${k}px` : k, bn = () => {
6843
6841
  if (e.height) {
6844
6842
  const k = yn(e.height);
6845
- K.value = k, O.value = k;
6843
+ G.value = k, U.value = k;
6846
6844
  return;
6847
6845
  }
6848
6846
  }, _t = () => {
6849
6847
  const k = [];
6850
- h.value.forEach((U) => {
6851
- U.key !== "action" && k.push({
6852
- key: U.key,
6853
- show: U.show,
6854
- hide: U.hide,
6855
- fixed: U.fixed
6848
+ h.value.forEach((O) => {
6849
+ O.key !== "action" && k.push({
6850
+ key: O.key,
6851
+ show: O.show,
6852
+ hide: O.hide,
6853
+ fixed: O.fixed
6856
6854
  });
6857
6855
  }), t("on-update:columns", k);
6858
6856
  }, Ge = () => {
@@ -6869,49 +6867,49 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6869
6867
  }
6870
6868
  });
6871
6869
  }, Ga = () => {
6872
- ve.value = 0, oe.value = !0, T.value?.validate().then(async (k) => {
6870
+ ke.value = 0, re.value = !0, T.value?.validate().then(async (k) => {
6873
6871
  if (Q.value.when_before_save) {
6874
6872
  const Y = Q.value.when_before_save, A = new Function("data", "POST", Y);
6875
6873
  try {
6876
6874
  k = await A(k, ue).catch((ee) => {
6877
- ve.value = 1, _e.value = ee.message;
6875
+ ke.value = 1, _e.value = ee.message;
6878
6876
  });
6879
6877
  } catch (ee) {
6880
- ve.value = 1, _e.value = ee.message;
6878
+ ke.value = 1, _e.value = ee.message;
6881
6879
  return;
6882
6880
  }
6883
6881
  }
6884
- let U;
6885
- const G = e.id || l.params.id;
6886
- e.formFetch ? U = e.formFetch({
6887
- tableId: G,
6882
+ let O;
6883
+ const W = e.id || l.params.id;
6884
+ e.formFetch ? O = e.formFetch({
6885
+ tableId: W,
6888
6886
  ...k
6889
- }) : U = pn({
6890
- tableId: G,
6887
+ }) : O = pn({
6888
+ tableId: W,
6891
6889
  ...k
6892
- }), U.then(() => {
6893
- At(), oe.value = !1, he(), Ge();
6890
+ }), O.then(() => {
6891
+ At(), re.value = !1, he(), Ge();
6894
6892
  }).catch((Y) => {
6895
- ve.value = 1, _e.value = Y;
6893
+ ke.value = 1, _e.value = Y;
6896
6894
  });
6897
6895
  }).catch(() => {
6898
- oe.value = !1;
6896
+ re.value = !1;
6899
6897
  });
6900
6898
  }, Qa = () => {
6901
- r.value = "", P.value = [], V.value = [], L.value = [], Q.value = {
6899
+ r.value = "", P.value = [], V.value = [], E.value = [], Q.value = {
6902
6900
  fetch: null,
6903
6901
  when_drawer_open: "",
6904
6902
  when_before_save: ""
6905
- }, W.value = Le();
6903
+ }, K.value = qe();
6906
6904
  }, Ja = (k) => {
6907
- const U = Pe.parse(k.viewJson);
6908
- r.value = k.tableTitle, P.value = Ye(U.table), V.value = ct(e.actions || U.action);
6909
- const G = ct(U.suffix || []);
6910
- L.value = G.map((A) => ($n(A), A)), Q.value = ka(U.trigger);
6911
- const Y = Le(e.options ?? U.option);
6912
- k.tableTitle && Y.title && Af(k.tableTitle), W.value = Y;
6905
+ const O = Ae.parse(k.viewJson);
6906
+ r.value = k.tableTitle, P.value = Ye(O.table), V.value = ct(e.actions || O.action);
6907
+ const W = ct(O.suffix || []);
6908
+ E.value = W.map((A) => ($n(A), A)), Q.value = ka(O.trigger);
6909
+ const Y = qe(e.options ?? O.option);
6910
+ k.tableTitle && Y.title && Af(k.tableTitle), K.value = Y;
6913
6911
  }, at = async () => {
6914
- v.value = !1, Qa();
6912
+ b.value = !1, Qa();
6915
6913
  const k = e.id || l.params.id;
6916
6914
  if (D.value = {
6917
6915
  params: [],
@@ -6924,13 +6922,13 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6924
6922
  try {
6925
6923
  z.value = await e.ruleFetch(k);
6926
6924
  } catch {
6927
- _e.value = s("Notice.network"), He.value = !0;
6925
+ _e.value = s("Notice.network"), Pe.value = !0;
6928
6926
  return;
6929
6927
  }
6930
- bn(), e.columns ? (P.value = e.columns || [], V.value = e.actions || [], L.value = e.suffixes || [], W.value = Le(e.options), await kn()) : await Xe(k).then(async (U) => {
6931
- Ja(U), await kn();
6932
- }).catch((U) => {
6933
- _e.value = U.message, He.value = !0;
6928
+ bn(), e.columns ? (P.value = e.columns || [], V.value = e.actions || [], E.value = e.suffixes || [], K.value = qe(e.options), await kn()) : await Xe(k).then(async (O) => {
6929
+ Ja(O), await kn();
6930
+ }).catch((O) => {
6931
+ _e.value = O.message, Pe.value = !0;
6934
6932
  });
6935
6933
  }, $n = (k) => {
6936
6934
  if (k.type !== "group" && k.optionsType)
@@ -6946,71 +6944,71 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
6946
6944
  });
6947
6945
  };
6948
6946
  else if (k.type !== "group") {
6949
- const U = J(k.onClick);
6947
+ const O = J(k.onClick);
6950
6948
  k.onClick = async () => {
6951
- if (U && typeof U == "string") {
6949
+ if (O && typeof O == "string") {
6952
6950
  try {
6953
- const G = new Function("POST", "fnNotification", U);
6954
- await G(ue, i, G), he();
6955
- } catch (G) {
6956
- ne(G);
6951
+ const W = new Function("POST", "fnNotification", O);
6952
+ await W(ue, i, W), he();
6953
+ } catch (W) {
6954
+ ne(W);
6957
6955
  }
6958
6956
  return;
6959
6957
  }
6960
6958
  };
6961
6959
  }
6962
6960
  };
6963
- return n({ rebuild: at, init: he, nextPage: ja }), Ue(async () => {
6961
+ return n({ rebuild: at, init: he, nextPage: ja }), Le(async () => {
6964
6962
  await at();
6965
- }), ce(
6963
+ }), le(
6966
6964
  () => h.value,
6967
6965
  () => {
6968
6966
  La();
6969
6967
  },
6970
6968
  { deep: !0 }
6971
- ), ce(
6969
+ ), le(
6972
6970
  () => e.height,
6973
6971
  () => {
6974
6972
  bn();
6975
6973
  }
6976
- ), ce([() => l.params.id, () => e.id], async () => {
6974
+ ), le([() => l.params.id, () => e.id], async () => {
6977
6975
  Nt(), await at();
6978
- }), ce(
6976
+ }), le(
6979
6977
  () => e.defaultCheckedRowKeys,
6980
6978
  (k) => {
6981
- const U = k || [], G = fe.value.filter(
6982
- (Y) => U.includes(Y.id)
6979
+ const O = k || [], W = fe.value.filter(
6980
+ (Y) => O.includes(Y.id)
6983
6981
  );
6984
- Ce.value = U, fe.value = G;
6982
+ Ce.value = O, fe.value = W;
6985
6983
  },
6986
6984
  {
6987
6985
  deep: !0
6988
6986
  }
6989
6987
  ), {
6990
6988
  loading: S,
6991
- minH: K,
6992
- maxH: O,
6989
+ minH: G,
6990
+ maxH: U,
6993
6991
  drawer: B,
6994
6992
  formRef: T,
6995
6993
  ocFormStatus: F,
6996
6994
  formValues: M,
6997
- tableOption: W,
6995
+ tableOption: K,
6998
6996
  tableColumns: g,
6999
6997
  tableData: f,
7000
6998
  tableQueries: D,
7001
- searchData: q,
6999
+ searchData: L,
7002
7000
  baseColumns: h,
7003
7001
  isSlotHeader: N,
7004
- formData: y,
7002
+ formData: v,
7005
7003
  title: r,
7006
- dynamicLoading: v,
7007
- spinShow: oe,
7004
+ dynamicLoading: b,
7005
+ spinShow: re,
7008
7006
  spinMsg: _e,
7009
- spinStatus: ve,
7010
- tableScrollX: b,
7007
+ spinStatus: ke,
7008
+ tableScrollX: x,
7011
7009
  ocrShow: u,
7012
- suffixes: L,
7013
- spinError: He,
7010
+ suffixes: E,
7011
+ spinError: Pe,
7014
7012
  isMobile: p,
7015
7013
  mRef: C,
7016
7014
  checkRowKeys: Ce,
@@ -7047,7 +7045,7 @@ const ba = /* @__PURE__ */ w(z1, [["render", F1], ["__scopeId", "data-v-ec746f00
7047
7045
  class: "uz-transform-fade-in"
7048
7046
  }, A1 = { class: "uz-com-title" }, P1 = { class: "flex gap-2 h-full" }, H1 = { class: "flex justify-between w-full" }, q1 = { class: "flex gap-2" };
7049
7047
  function L1(e, t, n, c, l, s) {
7050
- const i = $("NSkeleton"), p = $("NButton"), C = $("Plus"), N = $("NIcon"), T = $("UzActionButton"), S = $("UzSearchMobileBar"), v = $("UzTableMobile"), u = $("Filter"), r = $("NCheckbox"), y = $("GridDots"), g = $("Draggable"), h = $("NPopover"), f = $("UzSearchBar"), b = $("NDataTable"), D = $("NSpin"), q = $("UzOcr"), K = $("UzForm"), O = $("UzSpin"), B = $("NDrawerContent"), F = $("NDrawer"), M = $("UzTableDrawer");
7048
+ const i = y("NSkeleton"), p = y("NButton"), C = y("Plus"), N = y("NIcon"), T = y("UzActionButton"), S = y("UzSearchMobileBar"), b = y("UzTableMobile"), u = y("Filter"), r = y("NCheckbox"), v = y("GridDots"), g = y("Draggable"), h = y("NPopover"), f = y("UzSearchBar"), x = y("NDataTable"), D = y("NSpin"), L = y("UzOcr"), G = y("UzForm"), U = y("UzSpin"), B = y("NDrawerContent"), F = y("NDrawer"), M = y("UzTableDrawer");
7051
7049
  return a(), d("div", {
7052
7050
  class: "uz-table",
7053
7051
  style: $e({
@@ -7116,7 +7114,7 @@ function L1(e, t, n, c, l, s) {
7116
7114
  default: m(() => [
7117
7115
  e.isMobile ? (a(), d("div", {
7118
7116
  key: 0,
7119
- class: ie([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
7117
+ class: ce([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
7120
7118
  }, [
7121
7119
  _(S, {
7122
7120
  data: e.searchData,
@@ -7124,7 +7122,7 @@ function L1(e, t, n, c, l, s) {
7124
7122
  cache: e.tableOption.cache,
7125
7123
  loading: e.loading,
7126
7124
  "onOnUpdate:value": e.submit
7127
- }, Se({
7125
+ }, ze({
7128
7126
  action: m(() => [
7129
7127
  e.addFetch && e.tableOption.addButton ? (a(), I(p, {
7130
7128
  key: 0,
@@ -7144,7 +7142,7 @@ function L1(e, t, n, c, l, s) {
7144
7142
  H(" " + j(e.$t("Common.add")), 1)
7145
7143
  ]),
7146
7144
  _: 1
7147
- }, 8, ["disabled", "onClick"])) : E("", !0),
7145
+ }, 8, ["disabled", "onClick"])) : q("", !0),
7148
7146
  e.suffixes && e.suffixes.length > 0 ? (a(), I(T, {
7149
7147
  key: 1,
7150
7148
  data: e.suffixes,
@@ -7153,7 +7151,7 @@ function L1(e, t, n, c, l, s) {
7153
7151
  size: "medium",
7154
7152
  text: !1
7155
7153
  }
7156
- }, null, 8, ["data"])) : E("", !0),
7154
+ }, null, 8, ["data"])) : q("", !0),
7157
7155
  be(e.$slots, "action")
7158
7156
  ]),
7159
7157
  _: 2
@@ -7173,7 +7171,7 @@ function L1(e, t, n, c, l, s) {
7173
7171
  }
7174
7172
  ]), 1032, ["data", "id", "cache", "loading", "onOnUpdate:value"]),
7175
7173
  o("div", j1, [
7176
- _(v, {
7174
+ _(b, {
7177
7175
  tableColumns: e.tableColumns,
7178
7176
  tableData: e.tableData,
7179
7177
  tableQueries: e.tableQueries,
@@ -7193,7 +7191,7 @@ function L1(e, t, n, c, l, s) {
7193
7191
  cols: e.searchCols,
7194
7192
  enableHeader: e.enableHeader,
7195
7193
  "onOnUpdate:value": e.submit
7196
- }, Se({
7194
+ }, ze({
7197
7195
  action: m(() => [
7198
7196
  e.tableOption.filterButton && e.baseColumns.length > 0 ? (a(), I(h, {
7199
7197
  key: 0,
@@ -7230,7 +7228,7 @@ function L1(e, t, n, c, l, s) {
7230
7228
  onEnd: e.handleColumnChange
7231
7229
  }), {
7232
7230
  item: m(({ element: z }) => [
7233
- z.hide ? E("", !0) : (a(), d("div", {
7231
+ z.hide ? q("", !0) : (a(), d("div", {
7234
7232
  key: z.key,
7235
7233
  class: "uz-table-sort"
7236
7234
  }, [
@@ -7251,7 +7249,7 @@ function L1(e, t, n, c, l, s) {
7251
7249
  icon: m(() => [
7252
7250
  _(N, { size: "18" }, {
7253
7251
  default: m(() => [
7254
- _(y)
7252
+ _(v)
7255
7253
  ]),
7256
7254
  _: 1
7257
7255
  })
@@ -7264,7 +7262,7 @@ function L1(e, t, n, c, l, s) {
7264
7262
  }, 16, ["modelValue", "onEnd"])
7265
7263
  ]),
7266
7264
  _: 1
7267
- })) : E("", !0),
7265
+ })) : q("", !0),
7268
7266
  e.addFetch && e.tableOption.addButton ? (a(), I(p, {
7269
7267
  key: 1,
7270
7268
  secondary: "",
@@ -7283,7 +7281,7 @@ function L1(e, t, n, c, l, s) {
7283
7281
  H(" " + j(e.$t("Common.add")), 1)
7284
7282
  ]),
7285
7283
  _: 1
7286
- }, 8, ["disabled", "onClick"])) : E("", !0),
7284
+ }, 8, ["disabled", "onClick"])) : q("", !0),
7287
7285
  e.suffixes && e.suffixes.length > 0 ? (a(), I(T, {
7288
7286
  key: 2,
7289
7287
  data: e.suffixes,
@@ -7292,7 +7290,7 @@ function L1(e, t, n, c, l, s) {
7292
7290
  size: "medium",
7293
7291
  text: !1
7294
7292
  }
7295
- }, null, 8, ["data"])) : E("", !0),
7293
+ }, null, 8, ["data"])) : q("", !0),
7296
7294
  be(e.$slots, "action")
7297
7295
  ]),
7298
7296
  _: 2
@@ -7311,7 +7309,7 @@ function L1(e, t, n, c, l, s) {
7311
7309
  key: "1"
7312
7310
  }
7313
7311
  ]), 1032, ["data", "id", "cache", "loading", "cols", "enableHeader", "onOnUpdate:value"]),
7314
- _(b, {
7312
+ _(x, {
7315
7313
  columns: e.tableColumns,
7316
7314
  data: e.tableData,
7317
7315
  pagination: !!e.tableOption.pagination && e.tableQueries.query,
@@ -7357,11 +7355,11 @@ function L1(e, t, n, c, l, s) {
7357
7355
  _(B, {
7358
7356
  title: e.ocFormStatus === 1 ? e.$t("Common.edit") : e.ocFormStatus === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
7359
7357
  closable: ""
7360
- }, Se({
7358
+ }, ze({
7361
7359
  default: m(() => [
7362
7360
  o("div", P1, [
7363
- e.ocrShow ? (a(), I(q, { key: 0 })) : E("", !0),
7364
- _(O, {
7361
+ e.ocrShow ? (a(), I(L, { key: 0 })) : q("", !0),
7362
+ _(U, {
7365
7363
  value: e.spinShow,
7366
7364
  "onUpdate:value": t[1] || (t[1] = (z) => e.spinShow = z),
7367
7365
  message: e.spinMsg,
@@ -7369,7 +7367,7 @@ function L1(e, t, n, c, l, s) {
7369
7367
  class: "flex-1"
7370
7368
  }, {
7371
7369
  default: m(() => [
7372
- _(K, {
7370
+ _(G, {
7373
7371
  ref: "formRef",
7374
7372
  items: e.formData,
7375
7373
  value: e.formValues,
@@ -7387,7 +7385,7 @@ function L1(e, t, n, c, l, s) {
7387
7385
  fn: m(() => [
7388
7386
  o("div", H1, [
7389
7387
  o("div", null, [
7390
- e.isMobile ? E("", !0) : (a(), I(p, {
7388
+ e.isMobile ? q("", !0) : (a(), I(p, {
7391
7389
  key: 0,
7392
7390
  type: "primary",
7393
7391
  onClick: t[2] || (t[2] = (z) => e.ocrShow = !e.ocrShow),
@@ -7439,7 +7437,7 @@ function L1(e, t, n, c, l, s) {
7439
7437
  }
7440
7438
  const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7441
7439
  name: "UzTableChild",
7442
- components: { NButton: ge, NIcon: we, NDataTable: tn, NForm: Xt, NDivider: Qt, Plus: Ke, GridDots: Je },
7440
+ components: { NButton: ve, NIcon: ge, NDataTable: tn, NForm: Xt, NDivider: Qt, Plus: Ke, GridDots: Je },
7443
7441
  props: {
7444
7442
  value: { type: Array, default: () => [] },
7445
7443
  item: {
@@ -7455,44 +7453,44 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7455
7453
  },
7456
7454
  emits: ["update:value"],
7457
7455
  setup(e, { emit: t, expose: n }) {
7458
- const c = Ve("emitSuffix"), l = Ve("modules"), s = Ve("mainFormValue"), { t: i } = ft(), p = x(), C = x(), N = x(), T = x(!1), S = x(!0), v = x([]), u = x({ child: [] }), r = x(""), y = x({}), g = x(void 0), h = async (z) => {
7456
+ const c = Ve("emitSuffix"), l = Ve("modules"), s = Ve("mainFormValue"), { t: i } = ft(), p = $(), C = $(), N = $(), T = $(!1), S = $(!0), b = $([]), u = $({ child: [] }), r = $(""), v = $({}), g = $(void 0), h = async (z) => {
7459
7457
  const { formDefaultValue: P, fillingDefaultArray: V } = await yt(
7460
7458
  e.item.params.columns,
7461
7459
  z
7462
7460
  );
7463
- return y.value = P, V;
7461
+ return v.value = P, V;
7464
7462
  }, f = async (z) => {
7465
7463
  if (T.value)
7466
7464
  return;
7467
7465
  T.value = !0;
7468
7466
  const P = await h(z);
7469
- let V = J(z).map((L, Q) => ({
7470
- ...L,
7467
+ let V = J(z).map((E, Q) => ({
7468
+ ...E,
7471
7469
  ...P[Q]
7472
7470
  }));
7473
7471
  if (e.item.params.link) {
7474
- const L = [];
7472
+ const E = [];
7475
7473
  if (e.item.params.columns.forEach((Q) => {
7476
- (Q.input === "cascader" || Q.input === "select") && Q.params.multiple && L.push(Q.key);
7477
- }), e.item.params.draggable && V.sort((Q, W) => Q.sort_index - W.sort_index), V && V.forEach((Q) => {
7478
- L.forEach((W) => {
7479
- Q[W] && typeof Q[W] == "string" && (Q[W] = JSON.parse(Q[W]));
7474
+ (Q.input === "cascader" || Q.input === "select") && Q.params.multiple && E.push(Q.key);
7475
+ }), e.item.params.draggable && V.sort((Q, K) => Q.sort_index - K.sort_index), V && V.forEach((Q) => {
7476
+ E.forEach((K) => {
7477
+ Q[K] && typeof Q[K] == "string" && (Q[K] = JSON.parse(Q[K]));
7480
7478
  });
7481
- }), e.item.params.init && V.length === 0 && e.status === 0 && (V = [y.value]), e.item.params.merge && typeof e.item.params.merge == "string")
7479
+ }), e.item.params.init && V.length === 0 && e.status === 0 && (V = [v.value]), e.item.params.merge && typeof e.item.params.merge == "string")
7482
7480
  try {
7483
7481
  const Q = e.item.params.merge;
7484
7482
  V = await new Function("formValue", "mainFormValue", "POST", Q)(V, s, ue);
7485
7483
  } catch (Q) {
7486
7484
  ne(Q);
7487
7485
  }
7488
- u.value.child = V, T.value = !1, Te(() => {
7486
+ u.value.child = V, T.value = !1, Ne(() => {
7489
7487
  M();
7490
7488
  });
7491
7489
  } else
7492
- Te(() => {
7490
+ Ne(() => {
7493
7491
  M();
7494
7492
  });
7495
- }, b = (z) => z.delete ? "uz-table-child-delete" : "", D = async (z) => {
7493
+ }, x = (z) => z.delete ? "uz-table-child-delete" : "", D = async (z) => {
7496
7494
  await h(z);
7497
7495
  const { tableColumns: P, tableWidth: V } = await bt(
7498
7496
  J(z ?? e.item.params.columns),
@@ -7501,7 +7499,7 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7501
7499
  () => u.value.child,
7502
7500
  l
7503
7501
  );
7504
- let L = V;
7502
+ let E = V;
7505
7503
  if (P.unshift({
7506
7504
  title: " ",
7507
7505
  key: "index",
@@ -7513,7 +7511,7 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7513
7511
  // render(_: ObjectKey, rowIndex: number) {
7514
7512
  // return h('span', {}, { default: () => rowIndex + 1 })
7515
7513
  // }
7516
- }), L = L + 60, e.item.params.draggable && e.status !== 2 && (P.unshift({
7514
+ }), E = E + 60, e.item.params.draggable && e.status !== 2 && (P.unshift({
7517
7515
  title: " ",
7518
7516
  key: "draggable",
7519
7517
  align: "center",
@@ -7529,11 +7527,11 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7529
7527
  {
7530
7528
  class: "flex justify-center"
7531
7529
  },
7532
- Z(we, {}, { default: () => Z(Je) })
7530
+ Z(ge, {}, { default: () => Z(Je) })
7533
7531
  );
7534
7532
  }
7535
- }), L = L + 40), e.status !== 2 && e.item.params.showActions) {
7536
- const W = {
7533
+ }), E = E + 40), e.status !== 2 && e.item.params.showActions) {
7534
+ const K = {
7537
7535
  title: () => i("Common.action"),
7538
7536
  key: "action",
7539
7537
  align: "center",
@@ -7543,8 +7541,8 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7543
7541
  show: !0,
7544
7542
  hide: !0,
7545
7543
  width: 60,
7546
- render(oe, ve) {
7547
- const _e = [], He = {
7544
+ render(re, ke) {
7545
+ const _e = [], Pe = {
7548
7546
  type: "normal",
7549
7547
  color: "error",
7550
7548
  key: "delete",
@@ -7552,28 +7550,28 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7552
7550
  confirmText: "确认删除?",
7553
7551
  onClick: () => {
7554
7552
  const Ce = e.item.params.deleteFn;
7555
- Ce && typeof Ce == "string" ? oe = new Function("rowData", "mainFormValue", Ce)(oe, s) : oe.delete = !0;
7553
+ Ce && typeof Ce == "string" ? re = new Function("rowData", "mainFormValue", Ce)(re, s) : re.delete = !0;
7556
7554
  }
7557
7555
  };
7558
7556
  return e.item.params.childActions && e.item.params.actions && ct(e.item.params.actions).forEach((fe) => {
7559
7557
  if (fe.disabled && typeof fe.disabled == "string") {
7560
7558
  const nt = new Function("rowData", "rowIndex", fe.disabled);
7561
- fe.disabled = nt(oe, ve);
7559
+ fe.disabled = nt(re, ke);
7562
7560
  }
7563
7561
  _e.push(fe);
7564
- }), e.item.params.showDelete && (e.status !== 2 && (u.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && _e.push(He), tt({
7562
+ }), e.item.params.showDelete && (e.status !== 2 && (u.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && _e.push(Pe), tt({
7565
7563
  buttons: _e,
7566
- rowData: oe
7564
+ rowData: re
7567
7565
  });
7568
7566
  }
7569
7567
  };
7570
- P.push(W);
7568
+ P.push(K);
7571
7569
  }
7572
7570
  const Q = [];
7573
- P.forEach((W) => {
7574
- W.show && Q.push(W);
7575
- }), v.value = Q, L = L + 180, g.value = L;
7576
- }, q = (z) => {
7571
+ P.forEach((K) => {
7572
+ K.show && Q.push(K);
7573
+ }), b.value = Q, E = E + 180, g.value = E;
7574
+ }, L = (z) => {
7577
7575
  if (e.item.params.summary) {
7578
7576
  if (typeof e.item.params.summary == "function")
7579
7577
  return e.item.params.summary(z);
@@ -7585,11 +7583,11 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7585
7583
  }
7586
7584
  }
7587
7585
  return [];
7588
- }, K = async () => {
7589
- r.value = "", u.value.child.push(J(y.value)), Te(() => {
7586
+ }, G = async () => {
7587
+ r.value = "", u.value.child.push(J(v.value)), Ne(() => {
7590
7588
  M();
7591
7589
  });
7592
- }, O = async () => {
7590
+ }, U = async () => {
7593
7591
  r.value = "";
7594
7592
  try {
7595
7593
  const z = e.item.params.options;
@@ -7600,8 +7598,8 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7600
7598
  mainFormValue: s,
7601
7599
  children: () => u.value.child,
7602
7600
  callback: async (V) => {
7603
- const L = await P(V, s, ue);
7604
- u.value.child = [...u.value.child, ...L], Te(() => {
7601
+ const E = await P(V, s, ue);
7602
+ u.value.child = [...u.value.child, ...E], Ne(() => {
7605
7603
  M();
7606
7604
  });
7607
7605
  }
@@ -7612,7 +7610,7 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7612
7610
  mainFormValue: s,
7613
7611
  children: () => u.value.child,
7614
7612
  callback: async (P) => {
7615
- u.value.child = [...u.value.child, ...P], Te(() => {
7613
+ u.value.child = [...u.value.child, ...P], Ne(() => {
7616
7614
  M();
7617
7615
  });
7618
7616
  }
@@ -7624,14 +7622,14 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7624
7622
  N.value?.restoreValidation();
7625
7623
  }, F = () => (r.value = "", new Promise((z, P) => {
7626
7624
  const V = u.value.child.filter(
7627
- (L) => !L.delete
7625
+ (E) => !E.delete
7628
7626
  ).length;
7629
7627
  if (e.item.form.rule.required && V === 0) {
7630
7628
  r.value = e.item.form.rule.message, P();
7631
7629
  return;
7632
7630
  }
7633
- N.value?.validate((L) => {
7634
- L ? (r.value = e.item.form.rule.message, P()) : z();
7631
+ N.value?.validate((E) => {
7632
+ E ? (r.value = e.item.form.rule.message, P()) : z();
7635
7633
  });
7636
7634
  })), M = () => {
7637
7635
  if (e.item.params.draggable && e.status !== 2 && p.value && !C.value) {
@@ -7643,12 +7641,12 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7643
7641
  // },
7644
7642
  onEnd: ({ oldIndex: P, newIndex: V }) => {
7645
7643
  C.value?.destroy(), C.value = null, S.value = !1;
7646
- let L = J(u.value.child);
7647
- const Q = L.splice(P, 1)[0];
7648
- L.splice(V, 0, Q), L = L.map((W, oe) => ({
7649
- ...W,
7650
- sort_index: oe
7651
- })), u.value.child = L, Te(() => {
7644
+ let E = J(u.value.child);
7645
+ const Q = E.splice(P, 1)[0];
7646
+ E.splice(V, 0, Q), E = E.map((K, re) => ({
7647
+ ...K,
7648
+ sort_index: re
7649
+ })), u.value.child = E, Ne(() => {
7652
7650
  S.value = !0, setTimeout(() => {
7653
7651
  M();
7654
7652
  }, 0);
@@ -7657,23 +7655,21 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7657
7655
  }));
7658
7656
  }
7659
7657
  };
7660
- return Ue(() => {
7661
- D();
7662
- }), Et(() => {
7658
+ return Et(() => {
7663
7659
  C.value?.destroy(), C.value = null;
7664
- }), n({ validate: F, restoreValidation: B }), ce(
7660
+ }), n({ validate: F, restoreValidation: B }), le(
7665
7661
  () => e.item.params.columns,
7666
7662
  (z, P) => {
7667
7663
  JSON.stringify(z) !== JSON.stringify(P) && D(z);
7668
7664
  },
7669
- { deep: !0 }
7670
- ), ce(
7665
+ { deep: !0, immediate: !0 }
7666
+ ), le(
7671
7667
  () => e.value,
7672
7668
  (z) => {
7673
7669
  JSON.stringify(z) !== JSON.stringify(u.value.child) && f(z);
7674
7670
  },
7675
7671
  { deep: !0, immediate: !0 }
7676
- ), ce(
7672
+ ), le(
7677
7673
  () => u.value.child,
7678
7674
  (z) => {
7679
7675
  e.status !== 2 && t("update:value", z);
@@ -7683,15 +7679,15 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7683
7679
  loading: T,
7684
7680
  formRef: N,
7685
7681
  tableRef: p,
7686
- columns: v,
7682
+ columns: b,
7687
7683
  tableData: u,
7688
- summaryData: q,
7684
+ summaryData: L,
7689
7685
  message: r,
7690
7686
  tableScrollX: g,
7691
7687
  tableShow: S,
7692
- onAdd: K,
7693
- onAddFormData: O,
7694
- rowClassName: b
7688
+ onAdd: G,
7689
+ onAddFormData: U,
7690
+ rowClassName: x
7695
7691
  };
7696
7692
  }
7697
7693
  }), W1 = { class: "flex-1 w-full" }, G1 = { class: "flex justify-between" }, Q1 = { class: "uz-com-title" }, J1 = {
@@ -7699,12 +7695,12 @@ const E1 = /* @__PURE__ */ w(B1, [["render", L1]]), K1 = se({
7699
7695
  class: "uz-table-asterisk"
7700
7696
  }, X1 = { class: "flex gap-2" }, Y1 = { class: "flex justify-end gap-2" };
7701
7697
  function Z1(e, t, n, c, l, s) {
7702
- const i = $("Plus"), p = $("NIcon"), C = $("NButton"), N = $("NDataTable"), T = $("NForm");
7698
+ const i = y("Plus"), p = y("NIcon"), C = y("NButton"), N = y("NDataTable"), T = y("NForm");
7703
7699
  return a(), d("div", W1, [
7704
7700
  o("div", G1, [
7705
7701
  o("div", Q1, [
7706
7702
  H(j(e.item.label) + " ", 1),
7707
- e.item.form.rule.required ? (a(), d("span", J1, "  * ")) : E("", !0)
7703
+ e.item.form.rule.required ? (a(), d("span", J1, "  * ")) : q("", !0)
7708
7704
  ]),
7709
7705
  o("div", X1, [
7710
7706
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (a(), I(C, {
@@ -7725,7 +7721,7 @@ function Z1(e, t, n, c, l, s) {
7725
7721
  t[0] || (t[0] = H(" 从数据新增 ", -1))
7726
7722
  ]),
7727
7723
  _: 1
7728
- }, 8, ["onClick"])) : E("", !0),
7724
+ }, 8, ["onClick"])) : q("", !0),
7729
7725
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (a(), I(C, {
7730
7726
  key: 1,
7731
7727
  type: "success",
@@ -7744,7 +7740,7 @@ function Z1(e, t, n, c, l, s) {
7744
7740
  t[1] || (t[1] = H(" 新增 ", -1))
7745
7741
  ]),
7746
7742
  _: 1
7747
- }, 8, ["onClick"])) : E("", !0)
7743
+ }, 8, ["onClick"])) : q("", !0)
7748
7744
  ])
7749
7745
  ]),
7750
7746
  t[4] || (t[4] = o("div", { class: "uz-br" }, null, -1)),
@@ -7764,12 +7760,12 @@ function Z1(e, t, n, c, l, s) {
7764
7760
  loading: e.loading,
7765
7761
  summary: e.summaryData,
7766
7762
  "scroll-x": e.tableScrollX,
7767
- class: ie([e.message ? "error-border" : void 0, "uz-table-child"]),
7763
+ class: ce([e.message ? "error-border" : void 0, "uz-table-child"]),
7768
7764
  size: "small",
7769
7765
  "row-class-name": e.rowClassName,
7770
7766
  "scrollbar-props": { size: 8, trigger: "none" },
7771
7767
  remote: ""
7772
- }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : E("", !0),
7768
+ }, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : q("", !0),
7773
7769
  o("div", Y1, [
7774
7770
  e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (a(), I(C, {
7775
7771
  key: 0,
@@ -7789,7 +7785,7 @@ function Z1(e, t, n, c, l, s) {
7789
7785
  t[2] || (t[2] = H(" 从数据新增 ", -1))
7790
7786
  ]),
7791
7787
  _: 1
7792
- }, 8, ["onClick"])) : E("", !0),
7788
+ }, 8, ["onClick"])) : q("", !0),
7793
7789
  e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (a(), I(C, {
7794
7790
  key: 1,
7795
7791
  type: "success",
@@ -7808,7 +7804,7 @@ function Z1(e, t, n, c, l, s) {
7808
7804
  t[3] || (t[3] = H(" 新增 ", -1))
7809
7805
  ]),
7810
7806
  _: 1
7811
- }, 8, ["onClick"])) : E("", !0)
7807
+ }, 8, ["onClick"])) : q("", !0)
7812
7808
  ])
7813
7809
  ]),
7814
7810
  _: 1
@@ -7828,26 +7824,26 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7828
7824
  },
7829
7825
  emits: ["update:value"],
7830
7826
  setup(e) {
7831
- const t = Ve("modules"), { t: n } = ft(), c = x(!1), l = x(!1), s = x(""), i = x({}), p = x([]), C = x([]), N = x(void 0), T = (u) => {
7827
+ const t = Ve("modules"), { t: n } = ft(), c = $(!1), l = $(!1), s = $(""), i = $({}), p = $([]), C = $([]), N = $(void 0), T = (u) => {
7832
7828
  if (c.value = !0, e.item.params.link) {
7833
7829
  const r = [];
7834
- e.item.params.columns.forEach((y) => {
7835
- (y.input === "cascader" || y.input === "select") && y.params.multiple && r.push(y.key);
7836
- }), u && u.forEach((y) => {
7830
+ e.item.params.columns.forEach((v) => {
7831
+ (v.input === "cascader" || v.input === "select") && v.params.multiple && r.push(v.key);
7832
+ }), u && u.forEach((v) => {
7837
7833
  r.forEach((g) => {
7838
- y[g] && typeof y[g] == "string" && (y[g] = JSON.parse(y[g]));
7834
+ v[g] && typeof v[g] == "string" && (v[g] = JSON.parse(v[g]));
7839
7835
  });
7840
7836
  }), C.value = u, c.value = !1;
7841
7837
  }
7842
7838
  }, S = async (u) => {
7843
- const { tableColumns: r, tableWidth: y } = await bt(
7839
+ const { tableColumns: r, tableWidth: v } = await bt(
7844
7840
  J(e.item.params.columns),
7845
7841
  !0,
7846
7842
  2,
7847
7843
  () => C.value,
7848
7844
  t
7849
7845
  );
7850
- let g = y;
7846
+ let g = v;
7851
7847
  r.unshift({
7852
7848
  title: " ",
7853
7849
  key: "index",
@@ -7870,7 +7866,7 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7870
7866
  show: !0,
7871
7867
  hide: !0,
7872
7868
  width: 60,
7873
- render(b) {
7869
+ render(x) {
7874
7870
  return tt({
7875
7871
  buttons: [
7876
7872
  {
@@ -7879,7 +7875,7 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7879
7875
  key: "detail",
7880
7876
  buttonText: n("Common.detail"),
7881
7877
  onClick: () => {
7882
- l.value = !0, i.value = b, s.value = e.item.params.link;
7878
+ l.value = !0, i.value = { ...x }, s.value = e.item.params.link;
7883
7879
  }
7884
7880
  }
7885
7881
  ]
@@ -7888,10 +7884,10 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7888
7884
  };
7889
7885
  r.push(h);
7890
7886
  const f = [];
7891
- r.forEach((b) => {
7892
- b.show && f.push(b);
7887
+ r.forEach((x) => {
7888
+ x.show && f.push(x);
7893
7889
  }), p.value = f, g = g + 180, N.value = g;
7894
- }, v = (u) => {
7890
+ }, b = (u) => {
7895
7891
  if (e.item.params.summary) {
7896
7892
  if (typeof e.item.params.summary == "function")
7897
7893
  return e.item.params.summary(u);
@@ -7904,12 +7900,12 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7904
7900
  }
7905
7901
  return [];
7906
7902
  };
7907
- return Ue(() => {
7903
+ return Le(() => {
7908
7904
  S();
7909
7905
  }), Rn(async () => {
7910
7906
  try {
7911
7907
  if (e.formValue && e.formValue.id && e.item.params.searchKey) {
7912
- const u = await Re({
7908
+ const u = await je({
7913
7909
  tableId: e.item.params.link,
7914
7910
  params: [
7915
7911
  {
@@ -7929,7 +7925,7 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7929
7925
  loading: c,
7930
7926
  columns: p,
7931
7927
  normalData: C,
7932
- summaryData: v,
7928
+ summaryData: b,
7933
7929
  tableScrollX: N,
7934
7930
  drawer: l,
7935
7931
  drawerLink: s,
@@ -7938,7 +7934,7 @@ const e0 = /* @__PURE__ */ w(K1, [["render", Z1]]), t0 = se({
7938
7934
  }
7939
7935
  }), n0 = { class: "flex-1 w-full" }, o0 = { class: "flex justify-between" }, r0 = { class: "uz-com-title" };
7940
7936
  function a0(e, t, n, c, l, s) {
7941
- const i = $("NDataTable"), p = $("UzTableDrawer");
7937
+ const i = y("NDataTable"), p = y("UzTableDrawer");
7942
7938
  return a(), d("div", n0, [
7943
7939
  o("div", o0, [
7944
7940
  o("div", r0, j(e.item.label), 1)
@@ -7968,7 +7964,7 @@ function a0(e, t, n, c, l, s) {
7968
7964
  const s0 = /* @__PURE__ */ w(t0, [["render", a0]]), l0 = se({
7969
7965
  name: "UzTableDrawer",
7970
7966
  components: {
7971
- NButton: ge,
7967
+ NButton: ve,
7972
7968
  NDrawerContent: Zt,
7973
7969
  NDrawer: en,
7974
7970
  NSkeleton: Jn,
@@ -8004,7 +8000,7 @@ const s0 = /* @__PURE__ */ w(t0, [["render", a0]]), l0 = se({
8004
8000
  },
8005
8001
  emits: ["update:show", "on-submit"],
8006
8002
  setup(e, { emit: t }) {
8007
- const n = Be(() => de.isMobile), c = x(), l = x({}), s = x(!1), i = x({
8003
+ const n = Be(() => de.isMobile), c = $(), l = $({}), s = $(!1), i = $({
8008
8004
  index: 1,
8009
8005
  selection: 0,
8010
8006
  // 0:false | 1:multiple:true | 2:multiple:false
@@ -8016,98 +8012,111 @@ const s0 = /* @__PURE__ */ w(t0, [["render", a0]]), l0 = se({
8016
8012
  filterButton: 1,
8017
8013
  commonTime: 1,
8018
8014
  actionWidth: 300,
8019
- drawerWidth: "900px",
8015
+ drawerWidth: "70%",
8020
8016
  drawerHeight: "96vh",
8021
8017
  placement: "right",
8022
8018
  summary: ""
8023
- }), p = x(!1), C = x(!1), N = x(""), T = x(0), S = x(), v = x({
8019
+ }), p = $(!1), C = $(!1), N = $(!1), T = $(""), S = $(0), b = $(), u = $({
8024
8020
  fetch: null,
8025
8021
  when_drawer_open: "",
8026
8022
  when_before_save: ""
8027
- }), u = x(!1), r = () => {
8023
+ }), r = $(!1), v = () => {
8028
8024
  c.value?.restoreValidation(), l.value = {}, p.value = !1, s.value = !1, t("update:show", !1);
8029
- }, y = () => {
8030
- sa.info({
8025
+ }, g = () => {
8026
+ e.status !== 2 ? sa.info({
8031
8027
  title: "提示",
8032
8028
  content: "关闭后修改的数据将不保留,确定关闭?",
8033
8029
  positiveText: "确定",
8034
8030
  negativeText: "取消",
8035
8031
  draggable: !0,
8036
8032
  onPositiveClick: () => {
8037
- r();
8033
+ v();
8038
8034
  }
8039
- });
8040
- }, g = (b) => {
8041
- const D = v.value.when_drawer_open;
8042
- if (D && typeof D == "string")
8035
+ }) : v();
8036
+ }, h = (D) => {
8037
+ const L = u.value.when_drawer_open;
8038
+ if (L && typeof L == "string")
8043
8039
  try {
8044
- new Function("formValues", "POST", D)(b, ue).then((K) => {
8045
- l.value = K;
8046
- }).catch((K) => {
8047
- ne(K);
8040
+ new Function("formValues", "POST", L)(D, ue).then((U) => {
8041
+ l.value = U;
8042
+ }).catch((U) => {
8043
+ ne(U);
8048
8044
  });
8049
- } catch (q) {
8050
- ne(q);
8045
+ } catch (G) {
8046
+ ne(G);
8051
8047
  }
8052
- }, h = async () => {
8048
+ }, f = (D) => {
8053
8049
  if (e.link) {
8054
- const b = e.link.split(".")[0];
8055
- await Xe(b).then(async (D) => {
8056
- s.value = !0;
8057
- const q = Pe.parse(D.viewJson), { form: K } = await yt(
8058
- Ye(q.table)
8059
- );
8060
- S.value = K, i.value = Le(q.option), v.value = q.trigger, e.mainData && (v.value.when_drawer_open ? g(e.mainData) : l.value = e.mainData);
8050
+ N.value = !0;
8051
+ const L = e.link.split(".")[0];
8052
+ Xe(L).then((G) => {
8053
+ Ne(async () => {
8054
+ const U = Ae.parse(G.viewJson), { form: B } = await yt(
8055
+ Ye(U.table)
8056
+ );
8057
+ u.value = U.trigger, D && (u.value.when_drawer_open ? h(D ?? e.mainData) : l.value = D ?? e.mainData), Ne(() => {
8058
+ b.value = B, i.value = qe(U.option), N.value = !1;
8059
+ });
8060
+ });
8061
8061
  }).catch(() => {
8062
- u.value = !0;
8062
+ r.value = !0, N.value = !1;
8063
8063
  });
8064
8064
  }
8065
- }, f = () => {
8066
- T.value = 0, C.value = !0, c.value?.validate().then(async (b) => {
8067
- if (v.value.when_before_save) {
8068
- const q = v.value.when_before_save, K = new Function("data", "POST", q);
8065
+ }, x = () => {
8066
+ S.value = 0, C.value = !0, c.value?.validate().then(async (D) => {
8067
+ if (u.value.when_before_save) {
8068
+ const G = u.value.when_before_save, U = new Function("data", "POST", G);
8069
8069
  try {
8070
- b = await K(b, ue).catch((O) => {
8071
- T.value = 1, N.value = O.message;
8070
+ D = await U(D, ue).catch((B) => {
8071
+ S.value = 1, T.value = B.message;
8072
8072
  });
8073
- } catch (O) {
8074
- T.value = 1, N.value = O.message;
8073
+ } catch (B) {
8074
+ S.value = 1, T.value = B.message;
8075
8075
  return;
8076
8076
  }
8077
8077
  }
8078
- const D = e.link.split(".")[0];
8078
+ const L = e.link.split(".")[0];
8079
8079
  pn({
8080
- tableId: D,
8081
- ...b
8082
- }).then((q) => {
8083
- At(), Re({
8084
- tableId: D
8085
- }).then((K) => {
8086
- const O = e.link.split(".");
8087
- let B;
8080
+ tableId: L,
8081
+ ...D
8082
+ }).then((G) => {
8083
+ At(), je({
8084
+ tableId: L
8085
+ }).then((U) => {
8086
+ const B = e.link.split(".");
8087
+ let F;
8088
8088
  if (e.linkFn) {
8089
- const F = e.linkFn;
8090
- B = new Function("sourceData", F)(K);
8089
+ const M = e.linkFn;
8090
+ F = new Function("sourceData", M)(U);
8091
8091
  } else
8092
- B = K.map((F) => ({
8093
- label: F[O[1]],
8094
- value: F.id,
8095
- disabled: F?.status === "0",
8096
- params: F
8092
+ F = U.map((M) => ({
8093
+ label: M[B[1]],
8094
+ value: M.id,
8095
+ disabled: M?.status === "0",
8096
+ params: M
8097
8097
  }));
8098
- C.value = !1, t("on-submit", B), r();
8098
+ C.value = !1, t("on-submit", F), v();
8099
8099
  });
8100
- }).catch((q) => {
8101
- T.value = 1, N.value = q;
8100
+ }).catch((G) => {
8101
+ S.value = 1, T.value = G;
8102
8102
  });
8103
8103
  }).catch(() => {
8104
8104
  C.value = !1;
8105
8105
  });
8106
8106
  };
8107
- return ce(
8107
+ return le(
8108
8108
  () => e.show,
8109
- (b) => {
8110
- b && h();
8109
+ (D) => {
8110
+ s.value = D;
8111
+ }
8112
+ ), le(
8113
+ () => e.mainData,
8114
+ (D) => {
8115
+ f(D);
8116
+ },
8117
+ {
8118
+ deep: !0,
8119
+ immediate: !0
8111
8120
  }
8112
8121
  ), {
8113
8122
  drawer: s,
@@ -8115,24 +8124,27 @@ const s0 = /* @__PURE__ */ w(t0, [["render", a0]]), l0 = se({
8115
8124
  tableOption: i,
8116
8125
  ocrShow: p,
8117
8126
  spinShow: C,
8118
- spinMsg: N,
8119
- spinStatus: T,
8120
- formData: S,
8127
+ spinMsg: T,
8128
+ skeletonShow: N,
8129
+ spinStatus: S,
8130
+ formData: b,
8121
8131
  formValues: l,
8122
- spinError: u,
8132
+ spinError: r,
8123
8133
  isMobile: n,
8124
- drawerCancel: r,
8125
- drawerCheck: y,
8126
- drawerSubmit: f,
8127
- init: h
8134
+ drawerCancel: v,
8135
+ drawerCheck: g,
8136
+ drawerSubmit: x
8128
8137
  };
8129
8138
  }
8130
- }), i0 = { class: "flex gap-2 h-full" }, c0 = { class: "flex justify-between w-full" }, u0 = { class: "flex gap-2" };
8131
- function d0(e, t, n, c, l, s) {
8132
- const i = $("NButton"), p = $("UzOcr"), C = $("UzForm"), N = $("UzSpin"), T = $("NSpin"), S = $("NDrawerContent"), v = $("NDrawer");
8133
- return a(), I(v, {
8139
+ }), i0 = { class: "flex gap-2 h-full" }, c0 = {
8140
+ key: 0,
8141
+ class: "grid grid-cols-2 gap-2"
8142
+ }, u0 = { class: "flex justify-between w-full" }, d0 = { class: "flex gap-2" };
8143
+ function p0(e, t, n, c, l, s) {
8144
+ const i = y("UzOcr"), p = y("NSkeleton"), C = y("UzForm"), N = y("UzSpin"), T = y("NSpin"), S = y("NButton"), b = y("NDrawerContent"), u = y("NDrawer");
8145
+ return a(), I(u, {
8134
8146
  show: e.drawer,
8135
- "onUpdate:show": t[2] || (t[2] = (u) => e.drawer = u),
8147
+ "onUpdate:show": t[2] || (t[2] = (r) => e.drawer = r),
8136
8148
  width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
8137
8149
  height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
8138
8150
  placement: e.isMobile ? "bottom" : e.tableOption.placement,
@@ -8143,37 +8155,32 @@ function d0(e, t, n, c, l, s) {
8143
8155
  "mask-closable": !1
8144
8156
  }, {
8145
8157
  default: m(() => [
8146
- _(S, {
8158
+ _(b, {
8147
8159
  title: e.status === 1 ? e.$t("Common.edit") : e.status === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
8148
8160
  closable: ""
8149
- }, Se({
8161
+ }, ze({
8150
8162
  default: m(() => [
8151
8163
  _(T, { show: e.spinError }, {
8152
8164
  description: m(() => [
8153
- o("div", null, j(e.$t("Notice.error")), 1),
8154
- t[4] || (t[4] = o("div", { class: "uz-br" }, null, -1)),
8155
- _(i, {
8156
- type: "primary",
8157
- onClick: e.init,
8158
- block: ""
8159
- }, {
8160
- default: m(() => [...t[3] || (t[3] = [
8161
- H("重试", -1)
8162
- ])]),
8163
- _: 1
8164
- }, 8, ["onClick"])
8165
+ H(j(e.$t("Notice.error")), 1)
8165
8166
  ]),
8166
8167
  default: m(() => [
8167
8168
  o("div", i0, [
8168
- e.ocrShow ? (a(), I(p, { key: 0 })) : E("", !0),
8169
+ e.ocrShow ? (a(), I(i, { key: 0 })) : q("", !0),
8169
8170
  _(N, {
8170
8171
  class: "flex-1",
8171
8172
  value: e.spinShow,
8172
- "onUpdate:value": t[0] || (t[0] = (u) => e.spinShow = u),
8173
+ "onUpdate:value": t[0] || (t[0] = (r) => e.spinShow = r),
8173
8174
  message: e.spinMsg,
8174
8175
  status: e.spinStatus
8175
8176
  }, {
8176
8177
  default: m(() => [
8178
+ e.skeletonShow ? (a(), d("div", c0, [
8179
+ (a(), d(oe, null, we(10, (r) => _(p, {
8180
+ size: "large",
8181
+ style: { height: "156px" }
8182
+ })), 64))
8183
+ ])) : q("", !0),
8177
8184
  _(C, {
8178
8185
  ref: "formRef",
8179
8186
  items: e.formData,
@@ -8193,12 +8200,12 @@ function d0(e, t, n, c, l, s) {
8193
8200
  e.status !== 2 ? {
8194
8201
  name: "footer",
8195
8202
  fn: m(() => [
8196
- o("div", c0, [
8203
+ o("div", u0, [
8197
8204
  o("div", null, [
8198
- e.isMobile ? E("", !0) : (a(), I(i, {
8205
+ e.isMobile ? q("", !0) : (a(), I(S, {
8199
8206
  key: 0,
8200
8207
  type: "primary",
8201
- onClick: t[1] || (t[1] = (u) => e.ocrShow = !e.ocrShow),
8208
+ onClick: t[1] || (t[1] = (r) => e.ocrShow = !e.ocrShow),
8202
8209
  tertiary: ""
8203
8210
  }, {
8204
8211
  default: m(() => [
@@ -8207,8 +8214,8 @@ function d0(e, t, n, c, l, s) {
8207
8214
  _: 1
8208
8215
  }))
8209
8216
  ]),
8210
- o("div", u0, [
8211
- _(i, {
8217
+ o("div", d0, [
8218
+ _(S, {
8212
8219
  loading: e.spinShow,
8213
8220
  secondary: "",
8214
8221
  onClick: e.drawerCheck
@@ -8218,7 +8225,7 @@ function d0(e, t, n, c, l, s) {
8218
8225
  ]),
8219
8226
  _: 1
8220
8227
  }, 8, ["loading", "onClick"]),
8221
- _(i, {
8228
+ _(S, {
8222
8229
  loading: e.spinShow,
8223
8230
  type: "primary",
8224
8231
  onClick: e.drawerSubmit
@@ -8238,7 +8245,7 @@ function d0(e, t, n, c, l, s) {
8238
8245
  _: 1
8239
8246
  }, 8, ["show", "width", "height", "placement", "on-mask-click", "on-after-leave"]);
8240
8247
  }
8241
- const p0 = /* @__PURE__ */ w(l0, [["render", d0]]), f0 = se({
8248
+ const f0 = /* @__PURE__ */ w(l0, [["render", p0]]), h0 = se({
8242
8249
  name: "UzTableMobileList",
8243
8250
  props: {
8244
8251
  tableData: { type: Object, default: () => {
@@ -8249,18 +8256,18 @@ const p0 = /* @__PURE__ */ w(l0, [["render", d0]]), f0 = se({
8249
8256
  emits: ["update:row-keys"],
8250
8257
  setup() {
8251
8258
  }
8252
- }), h0 = { class: "grid grid-cols-2 gap-2" }, m0 = {
8259
+ }), m0 = { class: "grid grid-cols-2 gap-2" }, w0 = {
8253
8260
  key: 1,
8254
8261
  class: "uz-table-mobile-group-txt"
8255
8262
  };
8256
- function w0(e, t, n, c, l, s) {
8257
- return a(), d("div", h0, [
8258
- (a(!0), d(ae, null, ke(e.tableColumns, (i) => (a(), d("div", {
8263
+ function g0(e, t, n, c, l, s) {
8264
+ return a(), d("div", m0, [
8265
+ (a(!0), d(oe, null, we(e.tableColumns, (i) => (a(), d("div", {
8259
8266
  key: i.key,
8260
- class: ie(["flex overflow-hidden", i.lineBreak ? "flex-col" : ""]),
8267
+ class: ce(["flex overflow-hidden", i.lineBreak ? "flex-col" : ""]),
8261
8268
  style: $e(`grid-column: span ${i.lineCol || 2} / span ${i.lineCol || 2}`)
8262
8269
  }, [
8263
- i.key === "action" ? (a(), d(ae, { key: 0 }, [
8270
+ i.key === "action" ? (a(), d(oe, { key: 0 }, [
8264
8271
  i.render ? (a(), I(xn(
8265
8272
  () => {
8266
8273
  if (e.tableData)
@@ -8269,28 +8276,28 @@ function w0(e, t, n, c, l, s) {
8269
8276
  ), {
8270
8277
  key: 0,
8271
8278
  class: "mobile"
8272
- })) : E("", !0)
8273
- ], 64)) : (a(), d(ae, { key: 1 }, [
8279
+ })) : q("", !0)
8280
+ ], 64)) : (a(), d(oe, { key: 1 }, [
8274
8281
  o("div", {
8275
- class: ie(["uz-table-mobile-group-title", i.lineBreak ? "line-break" : ""])
8282
+ class: ce(["uz-table-mobile-group-title", i.lineBreak ? "line-break" : ""])
8276
8283
  }, [
8277
8284
  o("div", null, j(typeof i.title == "string" ? i.title : i.title()), 1)
8278
8285
  ], 2),
8279
8286
  o("div", {
8280
- class: ie(["uz-table-mobile-group-content", i.lineBreak ? "line-break" : ""])
8287
+ class: ce(["uz-table-mobile-group-content", i.lineBreak ? "line-break" : ""])
8281
8288
  }, [
8282
8289
  i.render ? (a(), I(xn(
8283
8290
  () => {
8284
8291
  if (e.tableData)
8285
8292
  return i.render(e.tableData, e.tableIndex);
8286
8293
  }
8287
- ), { key: 0 })) : (a(), d("div", m0, j(e.tableData[i.key] || "-"), 1))
8294
+ ), { key: 0 })) : (a(), d("div", w0, j(e.tableData[i.key] || "-"), 1))
8288
8295
  ], 2)
8289
8296
  ], 64))
8290
8297
  ], 6))), 128))
8291
8298
  ]);
8292
8299
  }
8293
- const g0 = /* @__PURE__ */ w(f0, [["render", w0], ["__scopeId", "data-v-36ebf171"]]), v0 = se({
8300
+ const v0 = /* @__PURE__ */ w(h0, [["render", g0], ["__scopeId", "data-v-36ebf171"]]), k0 = se({
8294
8301
  name: "UzTableMobile",
8295
8302
  components: {
8296
8303
  NCheckbox: Gt,
@@ -8298,7 +8305,7 @@ const g0 = /* @__PURE__ */ w(f0, [["render", w0], ["__scopeId", "data-v-36ebf171
8298
8305
  NPagination: ms,
8299
8306
  NCheckboxGroup: Wt,
8300
8307
  NRadioGroup: Qn,
8301
- UzTableMobileList: g0
8308
+ UzTableMobileList: v0
8302
8309
  },
8303
8310
  props: {
8304
8311
  tableData: { type: Array, default: () => [] },
@@ -8311,7 +8318,7 @@ const g0 = /* @__PURE__ */ w(f0, [["render", w0], ["__scopeId", "data-v-36ebf171
8311
8318
  },
8312
8319
  emits: ["update:row-keys"],
8313
8320
  setup(e, { emit: t }) {
8314
- const n = x([]);
8321
+ const n = $([]);
8315
8322
  return {
8316
8323
  rowKeys: n,
8317
8324
  checkChange: (s) => {
@@ -8326,23 +8333,23 @@ const g0 = /* @__PURE__ */ w(f0, [["render", w0], ["__scopeId", "data-v-36ebf171
8326
8333
  }
8327
8334
  };
8328
8335
  }
8329
- }), k0 = {
8336
+ }), y0 = {
8330
8337
  key: 0,
8331
8338
  class: "flex justify-center text-center pb-4"
8332
- }, y0 = {
8339
+ }, b0 = {
8333
8340
  key: 0,
8334
8341
  class: "flex justify-center text-center pb-4"
8335
- }, b0 = {
8342
+ }, $0 = {
8336
8343
  key: 0,
8337
8344
  class: "flex justify-center text-center pb-4"
8338
8345
  };
8339
- function $0(e, t, n, c, l, s) {
8340
- const i = $("UzTableMobileList"), p = $("NCheckbox"), C = $("NPagination"), N = $("NCheckboxGroup"), T = $("NRadio"), S = $("NRadioGroup");
8346
+ function x0(e, t, n, c, l, s) {
8347
+ const i = y("UzTableMobileList"), p = y("NCheckbox"), C = y("NPagination"), N = y("NCheckboxGroup"), T = y("NRadio"), S = y("NRadioGroup");
8341
8348
  return e.selection === 2 ? (a(), I(N, {
8342
8349
  key: 0,
8343
8350
  value: e.rowKeys,
8344
8351
  "onUpdate:value": [
8345
- t[1] || (t[1] = (v) => e.rowKeys = v),
8352
+ t[1] || (t[1] = (b) => e.rowKeys = b),
8346
8353
  e.checkChange
8347
8354
  ],
8348
8355
  class: "flex flex-col gap-2 uz-table-mobile-group",
@@ -8352,39 +8359,39 @@ function $0(e, t, n, c, l, s) {
8352
8359
  })
8353
8360
  }, {
8354
8361
  default: m(() => [
8355
- (a(!0), d(ae, null, ke(e.tableData, (v, u) => (a(), I(p, {
8356
- key: v.id,
8362
+ (a(!0), d(oe, null, we(e.tableData, (b, u) => (a(), I(p, {
8363
+ key: b.id,
8357
8364
  class: "uz-com-card flex gap-2",
8358
- value: v.id
8365
+ value: b.id
8359
8366
  }, {
8360
8367
  default: m(() => [
8361
8368
  _(i, {
8362
- tableData: v,
8369
+ tableData: b,
8363
8370
  tableIndex: u,
8364
8371
  tableColumns: e.tableColumns
8365
8372
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
8366
8373
  ]),
8367
8374
  _: 2
8368
8375
  }, 1032, ["value"]))), 128)),
8369
- e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", k0, [
8376
+ e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", y0, [
8370
8377
  _(C, {
8371
8378
  page: e.tableQueries.query.page,
8372
8379
  "onUpdate:page": [
8373
- t[0] || (t[0] = (v) => e.tableQueries.query.page = v),
8380
+ t[0] || (t[0] = (b) => e.tableQueries.query.page = b),
8374
8381
  e.pageChange
8375
8382
  ],
8376
8383
  "item-count": e.tableQueries.query.itemCount,
8377
8384
  "page-size": e.tableQueries.query.pageSize,
8378
8385
  size: "large"
8379
8386
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8380
- ])) : E("", !0)
8387
+ ])) : q("", !0)
8381
8388
  ]),
8382
8389
  _: 1
8383
8390
  }, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (a(), I(S, {
8384
8391
  key: 1,
8385
8392
  value: e.rowKeys[0],
8386
8393
  "onUpdate:value": [
8387
- t[3] || (t[3] = (v) => e.rowKeys[0] = v),
8394
+ t[3] || (t[3] = (b) => e.rowKeys[0] = b),
8388
8395
  e.radioChange
8389
8396
  ],
8390
8397
  class: "flex! flex-col gap-2 uz-table-mobile-group",
@@ -8394,32 +8401,32 @@ function $0(e, t, n, c, l, s) {
8394
8401
  })
8395
8402
  }, {
8396
8403
  default: m(() => [
8397
- (a(!0), d(ae, null, ke(e.tableData, (v, u) => (a(), I(T, {
8398
- key: v.id,
8404
+ (a(!0), d(oe, null, we(e.tableData, (b, u) => (a(), I(T, {
8405
+ key: b.id,
8399
8406
  class: "uz-com-card flex gap-2",
8400
- value: v.id
8407
+ value: b.id
8401
8408
  }, {
8402
8409
  default: m(() => [
8403
8410
  _(i, {
8404
- tableData: v,
8411
+ tableData: b,
8405
8412
  tableIndex: u,
8406
8413
  tableColumns: e.tableColumns
8407
8414
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
8408
8415
  ]),
8409
8416
  _: 2
8410
8417
  }, 1032, ["value"]))), 128)),
8411
- e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", y0, [
8418
+ e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", b0, [
8412
8419
  _(C, {
8413
8420
  page: e.tableQueries.query.page,
8414
8421
  "onUpdate:page": [
8415
- t[2] || (t[2] = (v) => e.tableQueries.query.page = v),
8422
+ t[2] || (t[2] = (b) => e.tableQueries.query.page = b),
8416
8423
  e.pageChange
8417
8424
  ],
8418
8425
  "item-count": e.tableQueries.query.itemCount,
8419
8426
  "page-size": e.tableQueries.query.pageSize,
8420
8427
  size: "large"
8421
8428
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8422
- ])) : E("", !0)
8429
+ ])) : q("", !0)
8423
8430
  ]),
8424
8431
  _: 1
8425
8432
  }, 8, ["value", "style", "onUpdate:value"])) : (a(), d("div", {
@@ -8430,31 +8437,31 @@ function $0(e, t, n, c, l, s) {
8430
8437
  maxHeight: e.maxH
8431
8438
  })
8432
8439
  }, [
8433
- (a(!0), d(ae, null, ke(e.tableData, (v, u) => (a(), d("div", {
8434
- key: v.id,
8440
+ (a(!0), d(oe, null, we(e.tableData, (b, u) => (a(), d("div", {
8441
+ key: b.id,
8435
8442
  class: "uz-com-card flex flex-col gap-2"
8436
8443
  }, [
8437
8444
  _(i, {
8438
- tableData: v,
8445
+ tableData: b,
8439
8446
  tableIndex: u,
8440
8447
  tableColumns: e.tableColumns
8441
8448
  }, null, 8, ["tableData", "tableIndex", "tableColumns"])
8442
8449
  ]))), 128)),
8443
- e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", b0, [
8450
+ e.tableQueries && e.tableData && e.tableData.length > 0 ? (a(), d("div", $0, [
8444
8451
  _(C, {
8445
8452
  page: e.tableQueries.query.page,
8446
8453
  "onUpdate:page": [
8447
- t[4] || (t[4] = (v) => e.tableQueries.query.page = v),
8454
+ t[4] || (t[4] = (b) => e.tableQueries.query.page = b),
8448
8455
  e.pageChange
8449
8456
  ],
8450
8457
  "item-count": e.tableQueries.query.itemCount,
8451
8458
  "page-size": e.tableQueries.query.pageSize,
8452
8459
  size: "large"
8453
8460
  }, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
8454
- ])) : E("", !0)
8461
+ ])) : q("", !0)
8455
8462
  ], 4));
8456
8463
  }
8457
- const x0 = /* @__PURE__ */ w(v0, [["render", $0], ["__scopeId", "data-v-8c590cf0"]]), X = Lt({
8464
+ const _0 = /* @__PURE__ */ w(k0, [["render", x0], ["__scopeId", "data-v-8c590cf0"]]), X = Lt({
8458
8465
  page: {
8459
8466
  label: "首页",
8460
8467
  key: "/",
@@ -8472,7 +8479,7 @@ function Bn(e) {
8472
8479
  path: e.key,
8473
8480
  closable: !1
8474
8481
  };
8475
- const t = De(X.cache, !1);
8482
+ const t = Te(X.cache, !1);
8476
8483
  t ? (X.active = t.active, t.thumbnail && (X.thumbnail = t.thumbnail)) : X.thumbnail = [
8477
8484
  {
8478
8485
  label: e.label,
@@ -8489,7 +8496,7 @@ function Vn(e, t) {
8489
8496
  const n = X.thumbnail.find((c) => c.key === e);
8490
8497
  n && (n.key = t, X.active = t, xe(X.cache, X, 0));
8491
8498
  }
8492
- function _0(e) {
8499
+ function C0(e) {
8493
8500
  const t = X.thumbnail.find((n) => n.path === e.key);
8494
8501
  t ? (X.active = t.key, xe(X.cache, X, 0), Ie.push(t.key)) : (X.active = e.key, X.thumbnail.push({ ...e, path: e.key, closable: !0 }), Ie.push(e.key));
8495
8502
  }
@@ -8504,13 +8511,13 @@ function xa(e) {
8504
8511
  function _a() {
8505
8512
  X.active = X.page.path, X.thumbnail = [X.page], Ie.push(X.page.path), xe(X.cache, X, 0);
8506
8513
  }
8507
- const C0 = se({
8514
+ const M0 = se({
8508
8515
  name: "UzThumbnail",
8509
8516
  components: {
8510
8517
  NTabs: vs,
8511
8518
  NTabPane: gs,
8512
- NButton: ge,
8513
- NIcon: we,
8519
+ NButton: ve,
8520
+ NIcon: ge,
8514
8521
  NPopconfirm: Kt,
8515
8522
  NFlex: Pn,
8516
8523
  Trash: Ze
@@ -8526,16 +8533,16 @@ const C0 = se({
8526
8533
  }
8527
8534
  },
8528
8535
  setup(e, { slots: t }) {
8529
- const n = x(!!t.prefix), c = pt(), l = (p) => {
8536
+ const n = $(!!t.prefix), c = pt(), l = (p) => {
8530
8537
  xa(p);
8531
8538
  }, s = (p) => {
8532
8539
  $a(p);
8533
8540
  }, i = () => {
8534
8541
  _a();
8535
8542
  };
8536
- return Ue(() => {
8543
+ return Le(() => {
8537
8544
  Bn(e.option), X.active !== c.path && Vn(c.path, c.fullPath);
8538
- }), ce(
8545
+ }), le(
8539
8546
  () => c,
8540
8547
  (p) => {
8541
8548
  X.active === c.path && Vn(p.path, p.fullPath);
@@ -8543,7 +8550,7 @@ const C0 = se({
8543
8550
  {
8544
8551
  deep: !0
8545
8552
  }
8546
- ), ce(
8553
+ ), le(
8547
8554
  () => e.option,
8548
8555
  (p) => {
8549
8556
  Bn(p);
@@ -8560,9 +8567,9 @@ const C0 = se({
8560
8567
  };
8561
8568
  }
8562
8569
  });
8563
- function M0(e, t, n, c, l, s) {
8564
- const i = $("NTabPane"), p = $("Trash"), C = $("NIcon"), N = $("NButton"), T = $("NPopconfirm"), S = $("NFlex"), v = $("NTabs");
8565
- return a(), I(v, {
8570
+ function N0(e, t, n, c, l, s) {
8571
+ const i = y("NTabPane"), p = y("Trash"), C = y("NIcon"), N = y("NButton"), T = y("NPopconfirm"), S = y("NFlex"), b = y("NTabs");
8572
+ return a(), I(b, {
8566
8573
  value: e.thumbnailStore.active,
8567
8574
  type: "card",
8568
8575
  closable: "",
@@ -8570,7 +8577,7 @@ function M0(e, t, n, c, l, s) {
8570
8577
  "on-close": e.handleClose,
8571
8578
  "on-update:value": e.handleChange,
8572
8579
  class: "uz-thumbnail"
8573
- }, Se({
8580
+ }, ze({
8574
8581
  suffix: m(() => [
8575
8582
  _(S, null, {
8576
8583
  default: m(() => [
@@ -8599,7 +8606,7 @@ function M0(e, t, n, c, l, s) {
8599
8606
  })
8600
8607
  ]),
8601
8608
  default: m(() => [
8602
- (a(!0), d(ae, null, ke(e.thumbnailStore.thumbnail, (u) => (a(), I(i, {
8609
+ (a(!0), d(oe, null, we(e.thumbnailStore.thumbnail, (u) => (a(), I(i, {
8603
8610
  key: u.key,
8604
8611
  name: u.key,
8605
8612
  tab: u.label,
@@ -8617,7 +8624,7 @@ function M0(e, t, n, c, l, s) {
8617
8624
  } : void 0
8618
8625
  ]), 1032, ["value", "on-close", "on-update:value"]);
8619
8626
  }
8620
- const N0 = /* @__PURE__ */ w(C0, [["render", M0]]), zt = "#007AFF", Ca = "#0A84FF", Dt = "#FF9500", Ma = "#FF9F0A", Tt = "#28CD41", Na = "#32D74B", Ft = "#FFCC00", Sa = "#FFD60A", Bt = "#FF3B30", za = "#FF453A";
8627
+ const S0 = /* @__PURE__ */ w(M0, [["render", N0]]), zt = "#007AFF", Ca = "#0A84FF", Dt = "#FF9500", Ma = "#FF9F0A", Tt = "#28CD41", Na = "#32D74B", Ft = "#FFCC00", Sa = "#FFD60A", Bt = "#FF3B30", za = "#FF453A";
8621
8628
  pe.common.cardColor = "#32323b";
8622
8629
  pe.common.primaryColor = "#0A84FF";
8623
8630
  pe.common.primaryColorHover = Ca;
@@ -8633,7 +8640,7 @@ pe.common.borderRadius = "var(--borderRadius)";
8633
8640
  pe.common.inputColor = "rgba(var(--input))";
8634
8641
  pe.common.borderColor = "rgba(var(--border), 0.7)";
8635
8642
  pe.DataTable.tdColor = "#2d2d31";
8636
- const S0 = {
8643
+ const z0 = {
8637
8644
  common: {
8638
8645
  inputColor: "rgba(var(--input))",
8639
8646
  borderColor: "rgba(var(--border), 0.7)",
@@ -8675,7 +8682,7 @@ const S0 = {
8675
8682
  Radio: {
8676
8683
  boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
8677
8684
  }
8678
- }, z0 = pe, D0 = se({
8685
+ }, D0 = pe, T0 = se({
8679
8686
  name: "UzWrap",
8680
8687
  components: {
8681
8688
  NConfigProvider: ks
@@ -8685,13 +8692,13 @@ const S0 = {
8685
8692
  zhCN: bs,
8686
8693
  dateZhCN: ys,
8687
8694
  commonStore: de,
8688
- lightTheme: S0,
8689
- darkTheme: z0
8695
+ lightTheme: z0,
8696
+ darkTheme: D0
8690
8697
  };
8691
8698
  }
8692
8699
  });
8693
- function T0(e, t, n, c, l, s) {
8694
- const i = $("NConfigProvider");
8700
+ function F0(e, t, n, c, l, s) {
8701
+ const i = y("NConfigProvider");
8695
8702
  return a(), I(i, {
8696
8703
  theme: e.commonStore.theme ? {
8697
8704
  name: "darkTheme"
@@ -8708,7 +8715,7 @@ function T0(e, t, n, c, l, s) {
8708
8715
  _: 3
8709
8716
  }, 8, ["theme", "theme-overrides", "locale", "date-locale"]);
8710
8717
  }
8711
- const F0 = /* @__PURE__ */ w(D0, [["render", T0]]), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8718
+ const B0 = /* @__PURE__ */ w(T0, [["render", F0]]), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8712
8719
  __proto__: null,
8713
8720
  AccessPoint: Zn,
8714
8721
  Activity: eo,
@@ -8851,20 +8858,20 @@ const F0 = /* @__PURE__ */ w(D0, [["render", T0]]), In = /* @__PURE__ */ Object.
8851
8858
  UzSpin: ya,
8852
8859
  UzTable: E1,
8853
8860
  UzTableChild: e0,
8854
- UzTableDrawer: p0,
8855
- UzTableMobile: x0,
8861
+ UzTableDrawer: f0,
8862
+ UzTableMobile: _0,
8856
8863
  UzTableQuestChild: s0,
8857
- UzThumbnail: N0,
8858
- UzWrap: F0,
8864
+ UzThumbnail: S0,
8865
+ UzWrap: B0,
8859
8866
  X: cn,
8860
8867
  commonStore: de,
8861
8868
  fnActionReduction: ct,
8862
8869
  fnActionSimplify: lh,
8863
- fnAddThumbnail: _0,
8870
+ fnAddThumbnail: C0,
8864
8871
  fnClearAllThumbnail: _a,
8865
8872
  fnDeleteThumbnail: xa,
8866
8873
  fnGetTableData: Xe,
8867
- fnOptionReduction: Le,
8874
+ fnOptionReduction: qe,
8868
8875
  fnOptionSimplify: M1,
8869
8876
  fnPrepareFormData: yt,
8870
8877
  fnPrepareTableData: bt,
@@ -8879,13 +8886,13 @@ const F0 = /* @__PURE__ */ w(D0, [["render", T0]]), In = /* @__PURE__ */ Object.
8879
8886
  i18n: Fe
8880
8887
  }, Symbol.toStringTag, { value: "Module" }));
8881
8888
  let hn = 3840, mn = 2160;
8882
- const B0 = Lt({
8889
+ const V0 = Lt({
8883
8890
  scale: 1
8884
8891
  });
8885
- function dm(e, t) {
8892
+ function pm(e, t) {
8886
8893
  hn = e, mn = t;
8887
8894
  }
8888
- function V0() {
8895
+ function I0() {
8889
8896
  let e = 1;
8890
8897
  const t = window.innerWidth, n = window.innerHeight, c = hn, l = mn, s = parseFloat(
8891
8898
  (c / l).toFixed(5)
@@ -8901,15 +8908,15 @@ function V0() {
8901
8908
  );
8902
8909
  e = p > 1 ? 1 : p;
8903
8910
  }
8904
- B0.scale = e;
8911
+ V0.scale = e;
8905
8912
  }
8906
- function pm() {
8907
- const e = Xn(V0, 200);
8913
+ function fm() {
8914
+ const e = Xn(I0, 200);
8908
8915
  return e(), window.addEventListener("resize", e), () => {
8909
8916
  hn = 3840, mn = 2160, window.removeEventListener("resize", e);
8910
8917
  };
8911
8918
  }
8912
- function fm(e, t = 1e3) {
8919
+ function hm(e, t = 1e3) {
8913
8920
  const n = Xn(e, t);
8914
8921
  return {
8915
8922
  /**
@@ -8929,8 +8936,8 @@ function fm(e, t = 1e3) {
8929
8936
  flush: n.flush
8930
8937
  };
8931
8938
  }
8932
- function hm(e, t = 1e3) {
8933
- const n = x(e), c = Be(
8939
+ function mm(e, t = 1e3) {
8940
+ const n = $(e), c = Be(
8934
8941
  () => Ns((...l) => n.value([...l]), t)
8935
8942
  );
8936
8943
  return An(() => {
@@ -8941,78 +8948,78 @@ function hm(e, t = 1e3) {
8941
8948
  flush: c.value.flush
8942
8949
  };
8943
8950
  }
8944
- function mm(e, t) {
8945
- return [x(De(e, t?.defaultValue)), (s) => {
8951
+ function wm(e, t) {
8952
+ return [$(Te(e, t?.defaultValue)), (s) => {
8946
8953
  typeof s > "u" ? Ot(e) : xe(e, s, t?.expired || "1 Day");
8947
8954
  }];
8948
8955
  }
8949
- function wm(e, t, n) {
8950
- const c = `useQuery-${e}`, l = x(), s = x(), i = x(), p = x(!1), C = x("idle"), N = x(), T = x(0), S = x(0), v = () => {
8956
+ function gm(e, t, n) {
8957
+ const c = `useQuery-${e}`, l = $(), s = $(), i = $(), p = $(!1), C = $("idle"), N = $(), T = $(0), S = $(0), b = () => {
8951
8958
  Nn(), clearInterval(i.value), i.value = null;
8952
8959
  }, u = async () => {
8953
8960
  if (!p.value) {
8954
- y(!0, "loading");
8961
+ v(!0, "loading");
8955
8962
  try {
8956
- let b;
8963
+ let x;
8957
8964
  if (Array.isArray(t))
8958
- b = await new Promise((q, K) => {
8959
- l.value = K, Promise.all(t.map((O) => O.call(null))).then((O) => {
8960
- q(O);
8961
- }).catch((O) => {
8962
- K(O);
8965
+ x = await new Promise((L, G) => {
8966
+ l.value = G, Promise.all(t.map((U) => U.call(null))).then((U) => {
8967
+ L(U);
8968
+ }).catch((U) => {
8969
+ G(U);
8963
8970
  });
8964
8971
  });
8965
8972
  else {
8966
- const D = new Promise((q, K) => {
8967
- l.value = K;
8973
+ const D = new Promise((L, G) => {
8974
+ l.value = G;
8968
8975
  });
8969
- b = await Promise.race([D, t()]);
8976
+ x = await Promise.race([D, t()]);
8970
8977
  }
8971
- y(!1, "success"), r(b), xe(c, b, 0);
8972
- } catch (b) {
8973
- g(b), y(!1, "error"), T.value > 0 && (T.value = T.value - 1, setTimeout(() => {
8978
+ v(!1, "success"), r(x), xe(c, x, 0);
8979
+ } catch (x) {
8980
+ g(x), v(!1, "error"), T.value > 0 && (T.value = T.value - 1, setTimeout(() => {
8974
8981
  u();
8975
8982
  }, S.value));
8976
8983
  }
8977
8984
  }
8978
- }, r = (b) => {
8979
- if (b) {
8980
- let D = b;
8981
- n?.formatResult && (D = n.formatResult(b)), s.value = D;
8985
+ }, r = (x) => {
8986
+ if (x) {
8987
+ let D = x;
8988
+ n?.formatResult && (D = n.formatResult(x)), s.value = D;
8982
8989
  }
8983
- }, y = (b, D) => {
8984
- p.value = b, D && (C.value = D);
8985
- }, g = (b) => {
8986
- N.value = b;
8990
+ }, v = (x, D) => {
8991
+ p.value = x, D && (C.value = D);
8992
+ }, g = (x) => {
8993
+ N.value = x;
8987
8994
  }, h = () => {
8988
8995
  Nn(), l.value && l.value();
8989
8996
  }, f = () => {
8990
- h(), u(), n?.pollingInterval && (v(), i.value = setInterval(() => {
8997
+ h(), u(), n?.pollingInterval && (b(), i.value = setInterval(() => {
8991
8998
  u();
8992
8999
  }, n?.pollingInterval));
8993
9000
  };
8994
9001
  if (n?.retry && n.pollingInterval === void 0 && (T.value = n.retry.retryCount || 3, S.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && r(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0)
8995
9002
  try {
8996
- const b = De(c, !1);
8997
- b && r(b);
9003
+ const x = Te(c, !1);
9004
+ x && r(x);
8998
9005
  } catch {
8999
9006
  r(!1);
9000
9007
  }
9001
9008
  return n?.pollingInterval ? (u(), i.value = setInterval(() => {
9002
9009
  u();
9003
9010
  }, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && u(), Et(() => {
9004
- v();
9011
+ b();
9005
9012
  }), {
9006
9013
  status: C,
9007
9014
  data: s,
9008
9015
  loading: p,
9009
9016
  error: N,
9010
- stopPollingInterval: v,
9017
+ stopPollingInterval: b,
9011
9018
  cancel: h,
9012
9019
  refetch: f
9013
9020
  };
9014
9021
  }
9015
- const I0 = "0.0.57";
9022
+ const U0 = "0.0.59";
9016
9023
  let Da;
9017
9024
  async function Ta() {
9018
9025
  const e = await fetch(
@@ -9024,17 +9031,17 @@ async function Ta() {
9024
9031
  );
9025
9032
  return e.headers.get("etag") || e.headers.get("last-modified");
9026
9033
  }
9027
- async function U0() {
9034
+ async function O0() {
9028
9035
  const e = await Ta();
9029
9036
  Da !== e && Xf(!0);
9030
9037
  }
9031
- async function O0() {
9038
+ async function j0() {
9032
9039
  Da = await Ta(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9033
- U0();
9040
+ O0();
9034
9041
  }, 60 * 1e3);
9035
9042
  }
9036
9043
  let Ht = "", qt;
9037
- const te = navigator.userAgent.toLocaleUpperCase(), j0 = () => {
9044
+ const te = navigator.userAgent.toLocaleUpperCase(), R0 = () => {
9038
9045
  const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, s = /ANDROID [\d.]+/, i = /IPHONE/, p = /IPAD/, C = /MAC/;
9039
9046
  if (e.test(te)) return "Windows XP";
9040
9047
  if (t.test(te)) return "Windows 7";
@@ -9060,7 +9067,7 @@ const te = navigator.userAgent.toLocaleUpperCase(), j0 = () => {
9060
9067
  return `MAC ${T ? T[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
9061
9068
  }
9062
9069
  return "Other Platform";
9063
- }, R0 = () => {
9070
+ }, A0 = () => {
9064
9071
  const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, s = /OPR\/[\d.]+/, i = /SE \d/, p = /UCBROWSER/, C = /ANDROID [\d.]+/;
9065
9072
  if (e.test(te) && i.test(te))
9066
9073
  return "SogouIE";
@@ -9103,7 +9110,7 @@ function Un(e, t, n, c = !1) {
9103
9110
  function On(e, t, n, c = !1) {
9104
9111
  e.addEventListener(t, n, c);
9105
9112
  }
9106
- function A0() {
9113
+ function P0() {
9107
9114
  if (!("XMLHttpRequest" in window))
9108
9115
  return;
9109
9116
  const e = XMLHttpRequest.prototype;
@@ -9125,8 +9132,8 @@ function A0() {
9125
9132
  }), t.apply(this, n);
9126
9133
  });
9127
9134
  }
9128
- function P0(e, t, n) {
9129
- t && (Ht = t, qt = n, A0(), e.config.errorHandler = (c) => {
9135
+ function H0(e, t, n) {
9136
+ t && (Ht = t, qt = n, P0(), e.config.errorHandler = (c) => {
9130
9137
  it(2, window.location.href, c.message);
9131
9138
  }, window.addEventListener("unhandledrejection", function(c) {
9132
9139
  c.preventDefault();
@@ -9137,8 +9144,8 @@ const it = (e, t, n) => {
9137
9144
  type: e,
9138
9145
  time: Date.now(),
9139
9146
  url: encodeURIComponent(t || location.href),
9140
- browser: R0(),
9141
- platform: j0(),
9147
+ browser: A0(),
9148
+ platform: R0(),
9142
9149
  message: n,
9143
9150
  info: c
9144
9151
  // routerHistory: [], // historyStore.history
@@ -9153,7 +9160,7 @@ const it = (e, t, n) => {
9153
9160
  }, i.append(p);
9154
9161
  }
9155
9162
  };
9156
- function H0({ components: e = [] } = {}) {
9163
+ function q0({ components: e = [] } = {}) {
9157
9164
  const t = [];
9158
9165
  function n(l, s, i) {
9159
9166
  l.component(s) || l.component(s, i);
@@ -9171,20 +9178,20 @@ function H0({ components: e = [] } = {}) {
9171
9178
  version: C = !0,
9172
9179
  language: N = !1,
9173
9180
  local: T = "zh-CN"
9174
- } = s, S = De("theme", !1), v = De("lang", T);
9175
- Jf(N), la(v), ia(S), Fe.global.locale.value = v, C && O0(), i && P0(l, i, p);
9181
+ } = s, S = Te("theme", !1), b = Te("lang", T);
9182
+ Jf(N), la(b), ia(S), Fe.global.locale.value = b, C && j0(), i && H0(l, i, p);
9176
9183
  }
9177
9184
  }
9178
9185
  return {
9179
- version: I0,
9186
+ version: U0,
9180
9187
  install: c
9181
9188
  };
9182
9189
  }
9183
- const q0 = H0({
9190
+ const L0 = q0({
9184
9191
  components: Object.keys(In).map(
9185
9192
  (e) => In[e]
9186
9193
  )
9187
- }), gm = q0.install;
9194
+ }), vm = L0.install;
9188
9195
  export {
9189
9196
  Zn as AccessPoint,
9190
9197
  eo as Activity,
@@ -9202,7 +9209,7 @@ export {
9202
9209
  po as Atom,
9203
9210
  fo as Atom2,
9204
9211
  ho as Award,
9205
- cm as BLOB,
9212
+ um as BLOB,
9206
9213
  mo as Barcode,
9207
9214
  wo as Basket,
9208
9215
  go as Bell,
@@ -9216,7 +9223,7 @@ export {
9216
9223
  xo as Building,
9217
9224
  _o as BuildingArch,
9218
9225
  Jr as BuildingWarehouse,
9219
- um as CUSTOM,
9226
+ dm as CUSTOM,
9220
9227
  Mo as Calculator,
9221
9228
  No as Calendar,
9222
9229
  So as CalendarPlus,
@@ -9271,7 +9278,7 @@ export {
9271
9278
  fr as FileAnalytics,
9272
9279
  ht as FileText,
9273
9280
  mt as Filter,
9274
- im as GET,
9281
+ cm as GET,
9275
9282
  hr as GitCompare,
9276
9283
  mr as GitPullRequest,
9277
9284
  Je as GridDots,
@@ -9332,37 +9339,37 @@ export {
9332
9339
  ya as UzSpin,
9333
9340
  E1 as UzTable,
9334
9341
  e0 as UzTableChild,
9335
- p0 as UzTableDrawer,
9336
- x0 as UzTableMobile,
9342
+ f0 as UzTableDrawer,
9343
+ _0 as UzTableMobile,
9337
9344
  s0 as UzTableQuestChild,
9338
- N0 as UzThumbnail,
9339
- F0 as UzWrap,
9345
+ S0 as UzThumbnail,
9346
+ B0 as UzWrap,
9340
9347
  cn as X,
9341
9348
  de as commonStore,
9342
- H0 as create,
9343
- z0 as darkTheme,
9344
- q0 as default,
9349
+ q0 as create,
9350
+ D0 as darkTheme,
9351
+ L0 as default,
9345
9352
  ct as fnActionReduction,
9346
9353
  lh as fnActionSimplify,
9347
- _0 as fnAddThumbnail,
9354
+ C0 as fnAddThumbnail,
9348
9355
  Nn as fnCancelFetch,
9349
9356
  _a as fnClearAllThumbnail,
9350
- V0 as fnComputedScale,
9351
- om as fnCreateRouter,
9357
+ I0 as fnComputedScale,
9358
+ rm as fnCreateRouter,
9352
9359
  Ot as fnDelStorage,
9353
- rm as fnDelStorageAll,
9360
+ am as fnDelStorageAll,
9354
9361
  Rf as fnDelStorageByPrefix,
9355
9362
  xa as fnDeleteThumbnail,
9356
9363
  sa as fnDialog,
9357
9364
  ne as fnErrorLog,
9358
- je as fnFormatTime,
9359
- lm as fnFormatUnits,
9360
- sm as fnFullScreen,
9361
- De as fnGetStorage,
9365
+ Oe as fnFormatTime,
9366
+ im as fnFormatUnits,
9367
+ lm as fnFullScreen,
9368
+ Te as fnGetStorage,
9362
9369
  Xe as fnGetTableData,
9363
- pm as fnListenerScale,
9364
- qe as fnNotification,
9365
- Le as fnOptionReduction,
9370
+ fm as fnListenerScale,
9371
+ He as fnNotification,
9372
+ qe as fnOptionReduction,
9366
9373
  M1 as fnOptionSimplify,
9367
9374
  Mn as fnPageModel2Naive,
9368
9375
  yt as fnPrepareFormData,
@@ -9370,23 +9377,23 @@ export {
9370
9377
  tt as fnRenderAction,
9371
9378
  Nt as fnScrollTop,
9372
9379
  la as fnSetLang,
9373
- dm as fnSetNormalWidthAndHeight,
9380
+ pm as fnSetNormalWidthAndHeight,
9374
9381
  xe as fnSetStorage,
9375
9382
  ia as fnSetTheme,
9376
9383
  $a as fnSetThumbnail,
9377
9384
  Ye as fnTableReduction,
9378
9385
  _1 as fnTableSimplify,
9379
- am as fnThrottle,
9386
+ sm as fnThrottle,
9380
9387
  Af as fnTitle,
9381
9388
  ka as fnTriggersReduction,
9382
9389
  C1 as fnTriggersSimplify,
9383
9390
  Fe as i18n,
9384
- gm as install,
9385
- S0 as lightTheme,
9391
+ vm as install,
9392
+ z0 as lightTheme,
9386
9393
  Ie as router,
9387
- B0 as scaleStore,
9388
- fm as useDebounceFn,
9389
- mm as useLocalStorage,
9390
- wm as useQuery,
9391
- hm as useThrottleFn
9394
+ V0 as scaleStore,
9395
+ hm as useDebounceFn,
9396
+ wm as useLocalStorage,
9397
+ gm as useQuery,
9398
+ mm as useThrottleFn
9392
9399
  };