@unizhen/ui 0.0.75 → 0.0.76

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,4 +1,4 @@
1
- import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as se, nextTick as ye, h as ee, reactive as It, resolveComponent as $, createBlock as V, withCtx as m, toDisplayString as E, createVNode as x, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as ae, createSlots as Me, createTextVNode as q, Fragment as le, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as Le, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
1
+ import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as le, nextTick as ye, h as ee, reactive as It, resolveComponent as $, createBlock as V, withCtx as m, toDisplayString as E, createVNode as x, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as ae, createSlots as Me, createTextVNode as q, Fragment as se, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as Le, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
2
2
  import { createDiscreteApi as Aa, NPopover as Pe, NFlex as Bn, NButton as we, NPopconfirm as jt, NTooltip as Vn, NIcon as me, NDropdown as Ra, NCascader as Fn, NCheckboxGroup as In, NCheckbox as Ot, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as At, NFormItem as Rt, NForm as Pt, NSpin as rt, NInputGroup as Ht, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Et, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as On, NGridItem as An, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NTag as Ya, NEllipsis as Za, NSkeleton as En, NDataTable as qt, NRadioGroup as es, NPagination as ts, NRadio as ns, NTabPane as os, NTabs as rs, darkTheme as fe, NConfigProvider as as, dateZhCN as ss, zhCN as ls } from "naive-ui";
3
3
  import Lt from "axios";
4
4
  import { createRouter as is, createWebHistory as us, useRouter as cs, useRoute as at } from "vue-router";
@@ -2326,7 +2326,7 @@ const Xr = /* @__PURE__ */ w(mf, [["render", gf]]), Yr = /* @__PURE__ */ Object.
2326
2326
  }
2327
2327
  n.value = l;
2328
2328
  };
2329
- return c(e.icon), se(
2329
+ return c(e.icon), le(
2330
2330
  () => e.icon,
2331
2331
  (l) => {
2332
2332
  c(l);
@@ -2534,9 +2534,9 @@ const Be = (e, t = "yyyy-MM-dd") => {
2534
2534
  }, P0 = (e, t = 500) => {
2535
2535
  const n = e;
2536
2536
  let c;
2537
- const l = function(...r) {
2537
+ const l = function(...a) {
2538
2538
  c || (c = setTimeout(function() {
2539
- c && clearTimeout(c), c = void 0, n.apply(l, r);
2539
+ c && clearTimeout(c), c = void 0, n.apply(l, a);
2540
2540
  }, t));
2541
2541
  };
2542
2542
  return l;
@@ -2603,11 +2603,11 @@ function oa(e, t) {
2603
2603
  if (!jf.call(e, c))
2604
2604
  continue;
2605
2605
  const l = e[c], i = encodeURIComponent(c);
2606
- let r;
2607
- typeof l == "object" ? r = oa(
2606
+ let a;
2607
+ typeof l == "object" ? a = oa(
2608
2608
  l,
2609
2609
  t ? t + "[" + i + "]" : i
2610
- ) : r = (t ? t + "[" + i + "]" : i) + "=" + encodeURIComponent(l), n.push(r);
2610
+ ) : a = (t ? t + "[" + i + "]" : i) + "=" + encodeURIComponent(l), n.push(a);
2611
2611
  }
2612
2612
  return n.join("&");
2613
2613
  }
@@ -2687,7 +2687,7 @@ const dt = "/apiserver/", vn = () => {
2687
2687
  data: t,
2688
2688
  responseType: n,
2689
2689
  timeout: c
2690
- }).then((r) => (xe.delete(l), r)).catch(() => {
2690
+ }).then((a) => (xe.delete(l), a)).catch(() => {
2691
2691
  xe.delete(l);
2692
2692
  });
2693
2693
  return xe.set(l, i), i;
@@ -2704,7 +2704,7 @@ const dt = "/apiserver/", vn = () => {
2704
2704
  data: t,
2705
2705
  responseType: n,
2706
2706
  timeout: c
2707
- }).then((r) => (xe.delete(l), Promise.resolve(r))).catch((r) => (xe.delete(l), Promise.reject(r)));
2707
+ }).then((a) => (xe.delete(l), Promise.resolve(a))).catch((a) => (xe.delete(l), Promise.reject(a)));
2708
2708
  return xe.set(l, i), i;
2709
2709
  }, L0 = (e, t = {}, n = "blob", c = 3e5) => De({
2710
2710
  url: `${dt}${e}`,
@@ -2772,7 +2772,7 @@ const dt = "/apiserver/", vn = () => {
2772
2772
  class: l?.class ?? "",
2773
2773
  disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled || !1,
2774
2774
  loading: t[e.key] ?? !1
2775
- }, r = {
2775
+ }, a = {
2776
2776
  default: () => typeof e.buttonText == "function" ? e.buttonText() : e.buttonText || null
2777
2777
  };
2778
2778
  if (!e.confirmText) {
@@ -2782,7 +2782,7 @@ const dt = "/apiserver/", vn = () => {
2782
2782
  }
2783
2783
  e.onClick && typeof e.onClick == "function" && (i.onClick = e.onClick.bind(void 0, t, n, c));
2784
2784
  }
2785
- return e.icon && (r.icon = () => ee(
2785
+ return e.icon && (a.icon = () => ee(
2786
2786
  me,
2787
2787
  {},
2788
2788
  {
@@ -2796,14 +2796,14 @@ const dt = "/apiserver/", vn = () => {
2796
2796
  }
2797
2797
  )
2798
2798
  }
2799
- )), ee(we, i, r);
2799
+ )), ee(we, i, a);
2800
2800
  }, qf = (e, t, n, c, l) => {
2801
2801
  const i = {
2802
2802
  placement: "left"
2803
2803
  };
2804
2804
  if (typeof t.onClick == "string") {
2805
- const r = t.onClick;
2806
- i["on-positive-click"] = () => ra(r, n, c, l);
2805
+ const a = t.onClick;
2806
+ i["on-positive-click"] = () => ra(a, n, c, l);
2807
2807
  } else
2808
2808
  t.onClick && (i["on-positive-click"] = t.onClick.bind(
2809
2809
  void 0,
@@ -2836,11 +2836,11 @@ const dt = "/apiserver/", vn = () => {
2836
2836
  hProps: l
2837
2837
  }) => {
2838
2838
  const i = [];
2839
- return e.forEach((r) => {
2840
- if (r.type === "group") {
2839
+ return e.forEach((a) => {
2840
+ if (a.type === "group") {
2841
2841
  const p = [];
2842
- r.children && r.children.length > 0 && r.children.forEach((_, M) => {
2843
- delete _.tooltipText, p.push(yn(_, t, n, c, l)), M < r.children.length - 1 && p.push(
2842
+ a.children && a.children.length > 0 && a.children.forEach((_, M) => {
2843
+ delete _.tooltipText, p.push(yn(_, t, n, c, l)), M < a.children.length - 1 && p.push(
2844
2844
  ee(
2845
2845
  "div",
2846
2846
  {
@@ -2859,11 +2859,11 @@ const dt = "/apiserver/", vn = () => {
2859
2859
  trigger: () => aa(
2860
2860
  // @ts-ignore
2861
2861
  {
2862
- icon: r.icon,
2863
- color: r.color || "default",
2864
- buttonText: typeof r.buttonText == "function" ? r.buttonText() : r.buttonText,
2865
- disabled: typeof r.disabled == "function" ? r.disabled(t) : r.disabled,
2866
- loading: t[r.key] ?? !1
2862
+ icon: a.icon,
2863
+ color: a.color || "default",
2864
+ buttonText: typeof a.buttonText == "function" ? a.buttonText() : a.buttonText,
2865
+ disabled: typeof a.disabled == "function" ? a.disabled(t) : a.disabled,
2866
+ loading: t[a.key] ?? !1
2867
2867
  },
2868
2868
  t,
2869
2869
  n,
@@ -2884,9 +2884,9 @@ const dt = "/apiserver/", vn = () => {
2884
2884
  )
2885
2885
  );
2886
2886
  }
2887
- if (r.type === "normal") {
2887
+ if (a.type === "normal") {
2888
2888
  const p = yn(
2889
- r,
2889
+ a,
2890
2890
  t,
2891
2891
  n,
2892
2892
  c,
@@ -3040,7 +3040,7 @@ const dt = "/apiserver/", vn = () => {
3040
3040
  }
3041
3041
  });
3042
3042
  function Qf(e, t, n, c, l, i) {
3043
- const r = $("ArrowNarrowLeft"), p = $("NIcon"), _ = $("NButton");
3043
+ const a = $("ArrowNarrowLeft"), p = $("NIcon"), _ = $("NButton");
3044
3044
  return s(), V(_, {
3045
3045
  quaternary: "",
3046
3046
  onClick: e.back
@@ -3048,7 +3048,7 @@ function Qf(e, t, n, c, l, i) {
3048
3048
  icon: m(() => [
3049
3049
  x(p, null, {
3050
3050
  default: m(() => [
3051
- x(r)
3051
+ x(a)
3052
3052
  ]),
3053
3053
  _: 1
3054
3054
  })
@@ -3107,9 +3107,9 @@ const Jf = /* @__PURE__ */ w(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
3107
3107
  text: "",
3108
3108
  x: 0,
3109
3109
  y: 0
3110
- }), n = C(), c = C(), l = C(), i = ze(() => `rgba(${yt(e.color)},0.1)`), r = ze(() => `rgba(${yt(e.color).split(",").map((u) => {
3111
- let a = Number(u) - 50;
3112
- return a < 0 && (a = 0), a;
3110
+ }), n = C(), c = C(), l = C(), i = ze(() => `rgba(${yt(e.color)},0.1)`), a = ze(() => `rgba(${yt(e.color).split(",").map((u) => {
3111
+ let r = Number(u) - 50;
3112
+ return r < 0 && (r = 0), r;
3113
3113
  })},1)`), p = ze(() => `rgba(${yt(e.color)},1)`);
3114
3114
  return {
3115
3115
  popover: t,
@@ -3117,7 +3117,7 @@ const Jf = /* @__PURE__ */ w(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
3117
3117
  strokeDasharray: n,
3118
3118
  centerTransform: c,
3119
3119
  centerTransformUnit: l,
3120
- colorA: r,
3120
+ colorA: a,
3121
3121
  colorB: p,
3122
3122
  calculateCircle: () => {
3123
3123
  let z = 314 - Number(e.circle) * Math.PI;
@@ -3482,8 +3482,8 @@ const yh = /* @__PURE__ */ w(eh, [["render", kh]]), bh = oe({
3482
3482
  }
3483
3483
  }), xh = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3484
3484
  function $h(e, t, n, c, l, i) {
3485
- const r = $("NInput"), p = $("NDropdown"), _ = $("NInputNumber"), M = $("NDatePicker"), D = $("NSelect"), z = $("NCascader"), v = $("NColorPicker"), u = $("NCheckbox"), a = $("NCheckboxGroup"), k = $("NTimePicker"), d = $("UzFormItemTimesPicker"), g = $("NSwitch"), N = $("UzFormItemUpload");
3486
- return e.item.input === "input" ? (s(), V(r, {
3485
+ const a = $("NInput"), p = $("NDropdown"), _ = $("NInputNumber"), M = $("NDatePicker"), D = $("NSelect"), z = $("NCascader"), v = $("NColorPicker"), u = $("NCheckbox"), r = $("NCheckboxGroup"), k = $("NTimePicker"), d = $("UzFormItemTimesPicker"), g = $("NSwitch"), N = $("UzFormItemUpload");
3486
+ return e.item.input === "input" ? (s(), V(a, {
3487
3487
  key: 0,
3488
3488
  value: e.formValue[e.item.key],
3489
3489
  "onUpdate:value": [
@@ -3518,7 +3518,7 @@ function $h(e, t, n, c, l, i) {
3518
3518
  ]),
3519
3519
  key: "1"
3520
3520
  } : void 0
3521
- ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (s(), V(r, {
3521
+ ]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (s(), V(a, {
3522
3522
  key: 1,
3523
3523
  value: String(e.formValue[e.item.key] ?? ""),
3524
3524
  placeholder: e.showPlaceholder(e.item),
@@ -3537,7 +3537,7 @@ function $h(e, t, n, c, l, i) {
3537
3537
  })
3538
3538
  }, {
3539
3539
  default: m(() => [
3540
- x(r, {
3540
+ x(a, {
3541
3541
  value: e.formValue[e.item.key],
3542
3542
  "onUpdate:value": [
3543
3543
  t[2] || (t[2] = (h) => e.formValue[e.item.key] = h),
@@ -3731,7 +3731,7 @@ function $h(e, t, n, c, l, i) {
3731
3731
  "rgba(208, 48, 80, 1)"
3732
3732
  ],
3733
3733
  class: ae(e.checkClassReadonly())
3734
- }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (s(), V(a, {
3734
+ }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (s(), V(r, {
3735
3735
  key: 9,
3736
3736
  value: e.formValue[e.item.key],
3737
3737
  "onUpdate:value": t[16] || (t[16] = (h) => e.formValue[e.item.key] = h),
@@ -3739,7 +3739,7 @@ function $h(e, t, n, c, l, i) {
3739
3739
  }, {
3740
3740
  default: m(() => [
3741
3741
  o("div", xh, [
3742
- (s(!0), f(le, null, ke(e.item.params.options, (h) => (s(), V(u, {
3742
+ (s(!0), f(se, null, ke(e.item.params.options, (h) => (s(), V(u, {
3743
3743
  key: h.value,
3744
3744
  label: h.label,
3745
3745
  value: h.value
@@ -3763,7 +3763,7 @@ function $h(e, t, n, c, l, i) {
3763
3763
  show: e.checkReadonlyShow(),
3764
3764
  clearable: e.checkClearable(),
3765
3765
  class: ae(e.checkClassReadonly())
3766
- }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "timePicker" ? (s(), V(d, {
3766
+ }, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "timesPicker" ? (s(), V(d, {
3767
3767
  key: 11,
3768
3768
  value: e.formValue[e.item.key],
3769
3769
  "onUpdate:value": [
@@ -3773,9 +3773,9 @@ function $h(e, t, n, c, l, i) {
3773
3773
  })
3774
3774
  ],
3775
3775
  disabled: e.checkDisabled(),
3776
- show: e.checkReadonlyShow(),
3777
- class: ae(e.checkClassReadonly())
3778
- }, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "switch" ? (s(), V(g, {
3776
+ class: ae(e.checkClassReadonly()),
3777
+ title: e.formValue[e.item.key]
3778
+ }, null, 8, ["value", "disabled", "class", "title"])) : e.item.input === "switch" ? (s(), V(g, {
3779
3779
  key: 12,
3780
3780
  "checked-value": 1,
3781
3781
  "unchecked-value": 0,
@@ -3809,7 +3809,7 @@ function $h(e, t, n, c, l, i) {
3809
3809
  "onUpdate:value": t[23] || (t[23] = (h) => e.formValue[e.item.key] = h),
3810
3810
  item: e.item,
3811
3811
  status: e.status
3812
- }, null, 8, ["value", "item", "status"])) : (s(), f(le, { key: 14 }, [], 64));
3812
+ }, null, 8, ["value", "item", "status"])) : (s(), f(se, { key: 14 }, [], 64));
3813
3813
  }
3814
3814
  const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3815
3815
  name: "UzForm",
@@ -3872,11 +3872,11 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3872
3872
  }
3873
3873
  },
3874
3874
  setup(e, { expose: t }) {
3875
- const n = Ne("userStore"), c = ze(() => pe.isMobile), l = C(), i = C(), r = C({}), p = C([]), _ = C([]), M = C([]), D = C();
3875
+ const n = Ne("userStore"), c = ze(() => pe.isMobile), l = C(), i = C(), a = C({}), p = C([]), _ = C([]), M = C([]), D = C();
3876
3876
  Mt("mainFormValue", {
3877
- value: () => r.value,
3877
+ value: () => a.value,
3878
3878
  setValue: (F) => {
3879
- r.value = F;
3879
+ a.value = F;
3880
3880
  }
3881
3881
  });
3882
3882
  const z = (F) => {
@@ -3894,9 +3894,9 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3894
3894
  const I = new Function("mainFormValue", b);
3895
3895
  try {
3896
3896
  return I({
3897
- value: () => r.value,
3897
+ value: () => a.value,
3898
3898
  setValue: (O) => {
3899
- r.value = O;
3899
+ a.value = O;
3900
3900
  }
3901
3901
  });
3902
3902
  } catch {
@@ -3920,26 +3920,26 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3920
3920
  }, u = (F, b = !1) => {
3921
3921
  const I = Te(F).startOf("day").diff(Te().startOf("day"), "day");
3922
3922
  return I >= 0 ? b ? "success" : `剩余${I}天` : b ? "error" : `逾期${Math.abs(I)}天`;
3923
- }, a = (F) => (M.value = [], F.forEach((b) => {
3924
- if (b.form.defaultValue && !r.value[b.key])
3923
+ }, r = (F) => (M.value = [], F.forEach((b) => {
3924
+ if (b.form.defaultValue && !a.value[b.key])
3925
3925
  if (b.input === "number")
3926
- r.value[b.key] = Number(b.form.defaultValue);
3926
+ a.value[b.key] = Number(b.form.defaultValue);
3927
3927
  else if (b.input === "select" && b.params.options?.length > 0) {
3928
- b.form.defaultValue === "userId" ? r.value[b.key] = n.userId : r.value[b.key] = b.form.defaultValue;
3928
+ b.form.defaultValue === "userId" ? a.value[b.key] = n.userId : a.value[b.key] = b.form.defaultValue;
3929
3929
  const I = b.params.options.find(
3930
- (O) => O.value === r.value[b.key]
3930
+ (O) => O.value === a.value[b.key]
3931
3931
  );
3932
- I && (r.value[`${b.key}Str`] = I.label);
3932
+ I && (a.value[`${b.key}Str`] = I.label);
3933
3933
  } else if (b.input === "date")
3934
3934
  if (b.params.type.indexOf("range") > -1)
3935
3935
  switch (b.form.defaultValue) {
3936
3936
  case "now":
3937
3937
  {
3938
3938
  const O = Te().startOf("day").valueOf(), B = Te().endOf("day").valueOf();
3939
- r.value[b.key] = [O, B], r.value[`${b.key}StartStr`] = v(
3939
+ a.value[b.key] = [O, B], a.value[`${b.key}StartStr`] = v(
3940
3940
  b.params.type,
3941
3941
  O
3942
- ), r.value[`${b.key}EndStr`] = v(
3942
+ ), a.value[`${b.key}EndStr`] = v(
3943
3943
  b.params.type,
3944
3944
  B
3945
3945
  );
@@ -3947,43 +3947,43 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3947
3947
  break;
3948
3948
  default:
3949
3949
  const I = Number(b.form.defaultValue);
3950
- r.value[b.key] = Number.isNaN(I) ? null : [I, I], r.value[`${b.key}StartStr`] = v(
3950
+ a.value[b.key] = Number.isNaN(I) ? null : [I, I], a.value[`${b.key}StartStr`] = v(
3951
3951
  b.params.type,
3952
3952
  I
3953
- ), r.value[`${b.key}EndStr`] = v(
3953
+ ), a.value[`${b.key}EndStr`] = v(
3954
3954
  b.params.type,
3955
3955
  I
3956
3956
  );
3957
3957
  break;
3958
3958
  }
3959
3959
  else if (b.form.defaultValue === "now")
3960
- r.value[b.key] = Date.now(), r.value[`${b.key}Str`] = v(
3960
+ a.value[b.key] = Date.now(), a.value[`${b.key}Str`] = v(
3961
3961
  b.params.type,
3962
3962
  Date.now()
3963
3963
  );
3964
3964
  else {
3965
3965
  const I = Number(b.form.defaultValue);
3966
- r.value[b.key] = Number.isNaN(I) ? null : I, r.value[`${b.key}Str`] = v(
3966
+ a.value[b.key] = Number.isNaN(I) ? null : I, a.value[`${b.key}Str`] = v(
3967
3967
  b.params.type,
3968
3968
  I
3969
3969
  );
3970
3970
  }
3971
3971
  else
3972
- r.value[b.key] = b.form.defaultValue;
3973
- if ((b.input === "cascader" || b.input === "select") && b.params.multiple && M.value.push(b.key), b.input === "date" && b.params.type.indexOf("range") > -1 && M.value.push(b.key), b.input === "select" && b.params.multiple && r.value[b.key] && typeof r.value[b.key] == "string")
3972
+ a.value[b.key] = b.form.defaultValue;
3973
+ if ((b.input === "cascader" || b.input === "select") && b.params.multiple && M.value.push(b.key), b.input === "date" && b.params.type.indexOf("range") > -1 && M.value.push(b.key), b.input === "select" && b.params.multiple && a.value[b.key] && typeof a.value[b.key] == "string")
3974
3974
  try {
3975
- r.value[b.key] = JSON.parse(r.value[b.key]);
3975
+ a.value[b.key] = JSON.parse(a.value[b.key]);
3976
3976
  } catch {
3977
- r.value[b.key] = [];
3977
+ a.value[b.key] = [];
3978
3978
  }
3979
- if (typeof r.value[b.key] == "string" && b.input === "date" && b.params.type.indexOf("range") > -1)
3979
+ if (typeof a.value[b.key] == "string" && b.input === "date" && b.params.type.indexOf("range") > -1)
3980
3980
  try {
3981
- r.value[b.key] = JSON.parse(r.value[b.key]);
3981
+ a.value[b.key] = JSON.parse(a.value[b.key]);
3982
3982
  } catch {
3983
- r.value[b.key] = [];
3983
+ a.value[b.key] = [];
3984
3984
  }
3985
3985
  }), F), k = (F) => {
3986
- F || (F = G(e.items)), F && Array.isArray(F) && F.length > 0 ? p.value = a(F) : p.value = [];
3986
+ F || (F = G(e.items)), F && Array.isArray(F) && F.length > 0 ? p.value = r(F) : p.value = [];
3987
3987
  }, d = () => new Promise(async (F) => {
3988
3988
  let b = 0;
3989
3989
  for await (const I of _.value)
@@ -3999,7 +3999,7 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
3999
3999
  if (I)
4000
4000
  b();
4001
4001
  else if (await d() === 0) {
4002
- const B = G(r.value);
4002
+ const B = G(a.value);
4003
4003
  M.value.forEach((A) => {
4004
4004
  B[A] = JSON.stringify(B[A]);
4005
4005
  }), Object.keys(B).forEach((A) => {
@@ -4038,19 +4038,10 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
4038
4038
  }, L = (F) => {
4039
4039
  D.value && (p.value[D.value].params.options = F);
4040
4040
  };
4041
- return t({ validate: g, restoreValidation: N, getValues: () => r.value }), se(
4042
- () => e.items,
4043
- (F) => {
4044
- k(F);
4045
- },
4046
- {
4047
- deep: !0,
4048
- immediate: !0
4049
- }
4050
- ), se(
4041
+ return t({ validate: g, restoreValidation: N, getValues: () => a.value }), le(
4051
4042
  () => e.value,
4052
4043
  (F, b) => {
4053
- JSON.stringify(F) !== JSON.stringify(b) && (r.value = F, p.value.length === 0 && k(e.items));
4044
+ JSON.stringify(F) !== JSON.stringify(b) && (a.value = F, p.value.length === 0 && k(e.items));
4054
4045
  },
4055
4046
  {
4056
4047
  deep: !0,
@@ -4059,7 +4050,7 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
4059
4050
  ), {
4060
4051
  drawerRef: l,
4061
4052
  formRef: i,
4062
- formValue: r,
4053
+ formValue: a,
4063
4054
  formItems: p,
4064
4055
  childRef: _,
4065
4056
  isMobile: c,
@@ -4072,8 +4063,8 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
4072
4063
  }
4073
4064
  }), Ch = ["onClick"];
4074
4065
  function Mh(e, t, n, c, l, i) {
4075
- const r = $("Plus"), p = $("NIcon"), _ = $("UzTableChild"), M = $("UzTableQuestChild"), D = $("NDivider"), z = $("UzFormItem"), v = $("NFormItem"), u = $("NForm"), a = $("UzTableDrawer"), k = Sn("media");
4076
- return s(), f(le, null, [
4066
+ const a = $("Plus"), p = $("NIcon"), _ = $("UzTableChild"), M = $("UzTableQuestChild"), D = $("NDivider"), z = $("UzFormItem"), v = $("NFormItem"), u = $("NForm"), r = $("UzTableDrawer"), k = Sn("media");
4067
+ return s(), f(se, null, [
4077
4068
  x(u, {
4078
4069
  ref: "formRef",
4079
4070
  class: "uz-w-full uz-h-full",
@@ -4087,7 +4078,7 @@ function Mh(e, t, n, c, l, i) {
4087
4078
  Le((s(), f("div", {
4088
4079
  class: ae(e.isMobile ? "" : "uz-form-grid")
4089
4080
  }, [
4090
- (s(!0), f(le, null, ke(e.formItems, (d, g) => (s(), f(le, { key: g }, [
4081
+ (s(!0), f(se, null, ke(e.formItems, (d, g) => (s(), f(se, { key: g }, [
4091
4082
  e.itemShow(d) ? (s(), V(v, {
4092
4083
  key: 0,
4093
4084
  path: d.key,
@@ -4105,7 +4096,7 @@ function Mh(e, t, n, c, l, i) {
4105
4096
  }, [
4106
4097
  x(p, null, {
4107
4098
  default: m(() => [
4108
- x(r)
4099
+ x(a)
4109
4100
  ]),
4110
4101
  _: 1
4111
4102
  }),
@@ -4154,7 +4145,7 @@ function Mh(e, t, n, c, l, i) {
4154
4145
  ]),
4155
4146
  _: 1
4156
4147
  }, 8, ["model", "inline", "labelWidth", "labelAlign", "labelPlacement"]),
4157
- x(a, {
4148
+ x(r, {
4158
4149
  ref: "drawerRef",
4159
4150
  onOnSubmit: e.refreshOption
4160
4151
  }, null, 8, ["onOnSubmit"])
@@ -4212,10 +4203,10 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
4212
4203
  },
4213
4204
  emits: ["update:value", "on-select", "on-change"],
4214
4205
  setup(e, { expose: t, emit: n }) {
4215
- const c = Ne("userStore"), l = C(), i = C({}), r = C([]), p = C([-1, -1]), _ = (k, d, g) => {
4206
+ const c = Ne("userStore"), l = C(), i = C({}), a = C([]), p = C([-1, -1]), _ = (k, d, g) => {
4216
4207
  p.value = [d, g ?? -1], n("on-select", k);
4217
4208
  }, M = (k) => {
4218
- k && (p.value[1] === -1 ? r.value.splice(p.value[0], 1, k) : r.value[p.value[0]].params.children.splice(p.value[1], 1, k), v()), u();
4209
+ k && (p.value[1] === -1 ? a.value.splice(p.value[0], 1, k) : a.value[p.value[0]].params.children.splice(p.value[1], 1, k), v()), u();
4219
4210
  }, D = (k) => (k.forEach((d) => {
4220
4211
  if (d.form.defaultValue && !i.value[d.key])
4221
4212
  if (d.input === "number")
@@ -4238,18 +4229,18 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
4238
4229
  }), k), z = () => {
4239
4230
  if (e.items && Array.isArray(e.items)) {
4240
4231
  const k = G(e.items);
4241
- r.value = D(k);
4232
+ a.value = D(k);
4242
4233
  }
4243
4234
  }, v = () => {
4244
- n("on-change", G(r.value));
4235
+ n("on-change", G(a.value));
4245
4236
  }, u = () => {
4246
4237
  p.value = [-1, -1], n("on-select", void 0);
4247
- }, a = () => {
4248
- p.value[1] === -1 ? r.value.splice(p.value[0], 1) : r.value[p.value[0]].params.children.splice(p.value[1], 1), v(), u();
4238
+ }, r = () => {
4239
+ p.value[1] === -1 ? a.value.splice(p.value[0], 1) : a.value[p.value[0]].params.children.splice(p.value[1], 1), v(), u();
4249
4240
  };
4250
4241
  return Re(() => {
4251
4242
  i.value = e.value, z();
4252
- }), t({ changeItem: M }), se(
4243
+ }), t({ changeItem: M }), le(
4253
4244
  () => e.items,
4254
4245
  () => {
4255
4246
  z();
@@ -4257,7 +4248,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
4257
4248
  {
4258
4249
  deep: !0
4259
4250
  }
4260
- ), se(
4251
+ ), le(
4261
4252
  () => e.value,
4262
4253
  (k) => {
4263
4254
  i.value = k;
@@ -4268,12 +4259,12 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
4268
4259
  ), {
4269
4260
  formRef: l,
4270
4261
  formValue: i,
4271
- formItems: r,
4262
+ formItems: a,
4272
4263
  formItemIndex: p,
4273
4264
  onDragChange: v,
4274
4265
  onModeClick: _,
4275
4266
  onCancel: u,
4276
- onDelete: a
4267
+ onDelete: r
4277
4268
  };
4278
4269
  }
4279
4270
  }), Sh = {
@@ -4284,7 +4275,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
4284
4275
  class: "uz-form-item-add"
4285
4276
  };
4286
4277
  function Th(e, t, n, c, l, i) {
4287
- const r = $("Plus"), p = $("NIcon"), _ = $("Trash"), M = $("NButton"), D = $("UzTableChild"), z = $("UzFormItem"), v = $("NFormItem"), u = $("Draggable", !0), a = $("NDivider"), k = $("NForm");
4278
+ const a = $("Plus"), p = $("NIcon"), _ = $("Trash"), M = $("NButton"), D = $("UzTableChild"), z = $("UzFormItem"), v = $("NFormItem"), u = $("Draggable", !0), r = $("NDivider"), k = $("NForm");
4288
4279
  return s(), V(k, {
4289
4280
  ref: "formRef",
4290
4281
  class: "uz-w-full uz-h-full",
@@ -4329,7 +4320,7 @@ function Th(e, t, n, c, l, i) {
4329
4320
  d.source && d.form.createButton ? (s(), f("a", Sh, [
4330
4321
  x(p, null, {
4331
4322
  default: m(() => [
4332
- x(r)
4323
+ x(a)
4333
4324
  ]),
4334
4325
  _: 1
4335
4326
  }),
@@ -4417,7 +4408,7 @@ function Th(e, t, n, c, l, i) {
4417
4408
  }, 1032, ["label", "path", "rule", "class", "onClick", "style", "show-label", "show-feedback"]))
4418
4409
  ]),
4419
4410
  _: 2
4420
- }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : d.input === "divider" ? (s(), V(a, {
4411
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : d.input === "divider" ? (s(), V(r, {
4421
4412
  key: 3,
4422
4413
  "title-placement": d.params.placement
4423
4414
  }, {
@@ -4483,13 +4474,13 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
4483
4474
  "update:value",
4484
4475
  Ie.stringify(l.value.map((z) => z.url))
4485
4476
  );
4486
- }, r = (z) => new Promise((v, u) => {
4477
+ }, a = (z) => new Promise((v, u) => {
4487
4478
  if (z.file.file)
4488
4479
  if (c.value = !0, z.file.file.size > 10485760)
4489
4480
  n.error({ content: "请上传小于10MB的文件", duration: 3e3 }), u();
4490
4481
  else {
4491
- const a = new FormData();
4492
- a.append("file", z.file.file), a.append("name", z.file.name), Af("file/cos/upload", a).then((k) => {
4482
+ const r = new FormData();
4483
+ r.append("file", z.file.file), r.append("name", z.file.name), Af("file/cos/upload", r).then((k) => {
4493
4484
  l.value.push({
4494
4485
  id: z.file.id,
4495
4486
  name: z.file.name,
@@ -4517,12 +4508,12 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
4517
4508
  try {
4518
4509
  z = Ie.parse(z), l.value = z.map(
4519
4510
  (v, u) => {
4520
- const a = decodeURIComponent(v), k = a.lastIndexOf("/"), d = a.substring(k + 1);
4511
+ const r = decodeURIComponent(v), k = r.lastIndexOf("/"), d = r.substring(k + 1);
4521
4512
  return {
4522
4513
  id: String(u + 1),
4523
4514
  name: d,
4524
4515
  status: "finished",
4525
- url: a
4516
+ url: r
4526
4517
  };
4527
4518
  }
4528
4519
  );
@@ -4536,7 +4527,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
4536
4527
  };
4537
4528
  return Re(() => {
4538
4529
  M();
4539
- }), se(
4530
+ }), le(
4540
4531
  () => e.value,
4541
4532
  () => {
4542
4533
  M();
@@ -4544,7 +4535,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
4544
4535
  ), {
4545
4536
  formValue: l,
4546
4537
  show: c,
4547
- beforeUpload: r,
4538
+ beforeUpload: a,
4548
4539
  isAssetTypeAnImage: p,
4549
4540
  doDelete: _,
4550
4541
  openFile: D
@@ -4552,7 +4543,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
4552
4543
  }
4553
4544
  }), Fh = { class: "uz-form-upload-item-inner" }, Ih = ["title"], Uh = { key: 0 };
4554
4545
  function jh(e, t, n, c, l, i) {
4555
- const r = $("CloudUpload"), p = $("NIcon"), _ = $("NUploadDragger"), M = $("NUpload"), D = $("PhotoOff"), z = $("NImage"), v = $("FileText"), u = $("Trash"), a = $("NButton"), k = $("NPopconfirm"), d = $("CloudDownload"), g = $("NSpin");
4546
+ const a = $("CloudUpload"), p = $("NIcon"), _ = $("NUploadDragger"), M = $("NUpload"), D = $("PhotoOff"), z = $("NImage"), v = $("FileText"), u = $("Trash"), r = $("NButton"), k = $("NPopconfirm"), d = $("CloudDownload"), g = $("NSpin");
4556
4547
  return s(), V(g, {
4557
4548
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
4558
4549
  show: e.show
@@ -4574,7 +4565,7 @@ function jh(e, t, n, c, l, i) {
4574
4565
  default: m(() => [
4575
4566
  x(p, { size: "28" }, {
4576
4567
  default: m(() => [
4577
- x(r)
4568
+ x(a)
4578
4569
  ]),
4579
4570
  _: 1
4580
4571
  })
@@ -4584,7 +4575,7 @@ function jh(e, t, n, c, l, i) {
4584
4575
  ]),
4585
4576
  _: 1
4586
4577
  }, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
4587
- (s(!0), f(le, null, ke(e.formValue, (N, h) => (s(), f("div", {
4578
+ (s(!0), f(se, null, ke(e.formValue, (N, h) => (s(), f("div", {
4588
4579
  key: h,
4589
4580
  class: "uz-form-upload-item uz-w-20 uz-h-20"
4590
4581
  }, [
@@ -4627,7 +4618,7 @@ function jh(e, t, n, c, l, i) {
4627
4618
  onPositiveClick: (T) => e.doDelete(h)
4628
4619
  }, {
4629
4620
  trigger: m(() => [
4630
- x(a, {
4621
+ x(r, {
4631
4622
  size: "small",
4632
4623
  tertiary: ""
4633
4624
  }, {
@@ -4647,7 +4638,7 @@ function jh(e, t, n, c, l, i) {
4647
4638
  ]),
4648
4639
  _: 1
4649
4640
  }, 8, ["onPositiveClick"]),
4650
- x(a, {
4641
+ x(r, {
4651
4642
  tag: "a",
4652
4643
  href: N.url,
4653
4644
  download: "",
@@ -4683,13 +4674,13 @@ const Oh = /* @__PURE__ */ w(Vh, [["render", jh], ["__scopeId", "data-v-d4bd872d
4683
4674
  },
4684
4675
  setup(e) {
4685
4676
  const t = C([]), n = (i) => {
4686
- const r = i.lastIndexOf("."), p = i.substring(r + 1);
4677
+ const a = i.lastIndexOf("."), p = i.substring(a + 1);
4687
4678
  return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
4688
4679
  p.toLowerCase()
4689
4680
  ) !== -1;
4690
4681
  }, c = (i) => {
4691
- const r = decodeURIComponent(i), p = r.lastIndexOf("/");
4692
- return r.substring(p + 1);
4682
+ const a = decodeURIComponent(i), p = a.lastIndexOf("/");
4683
+ return a.substring(p + 1);
4693
4684
  }, l = (i) => {
4694
4685
  window.open(i);
4695
4686
  };
@@ -4708,11 +4699,11 @@ const Oh = /* @__PURE__ */ w(Vh, [["render", jh], ["__scopeId", "data-v-d4bd872d
4708
4699
  }
4709
4700
  }), Rh = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4710
4701
  function Ph(e, t, n, c, l, i) {
4711
- const r = $("PhotoOff"), p = $("NIcon"), _ = $("NImage"), M = $("FileText"), D = $("NPopover"), z = $("NImageGroup");
4702
+ const a = $("PhotoOff"), p = $("NIcon"), _ = $("NImage"), M = $("FileText"), D = $("NPopover"), z = $("NImageGroup");
4712
4703
  return s(), V(z, null, {
4713
4704
  default: m(() => [
4714
4705
  o("div", Rh, [
4715
- (s(!0), f(le, null, ke(e.imgs, (v) => (s(), f(le, null, [
4706
+ (s(!0), f(se, null, ke(e.imgs, (v) => (s(), f(se, null, [
4716
4707
  e.isAssetTypeAnImage(v) ? (s(), V(_, {
4717
4708
  key: 0,
4718
4709
  width: "40",
@@ -4724,7 +4715,7 @@ function Ph(e, t, n, c, l, i) {
4724
4715
  color: "lightGrey"
4725
4716
  }, {
4726
4717
  default: m(() => [
4727
- x(r)
4718
+ x(a)
4728
4719
  ]),
4729
4720
  _: 1
4730
4721
  })
@@ -4776,32 +4767,34 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
4776
4767
  },
4777
4768
  emits: ["on-update:value"],
4778
4769
  setup(e, { emit: t, expose: n }) {
4779
- const c = C([]), l = C("00"), i = C("00"), r = C("00"), p = () => {
4780
- l.value = "00", i.value = "00", r.value = "00";
4770
+ const c = C([]), l = C("00"), i = C("00"), a = C("00"), p = () => {
4771
+ l.value = "00", i.value = "00", a.value = "00";
4781
4772
  }, _ = () => {
4782
4773
  const u = [];
4783
- for (let a = 0; a <= 100; a++)
4774
+ for (let r = 0; r <= 100; r++)
4784
4775
  u.push({
4785
- label: a < 10 ? `0${a}` : String(a),
4786
- value: a < 10 ? `0${a}` : String(a)
4776
+ label: r < 10 ? `0${r}` : String(r),
4777
+ value: r < 10 ? `0${r}` : String(r)
4787
4778
  });
4788
4779
  c.value = u;
4789
4780
  }, M = () => {
4790
- l.value === "00" && i.value === "00" && r.value === "00" ? t("on-update:value", null) : t("on-update:value", `${l.value}:${i.value}:${r.value}`);
4781
+ t("on-update:value", `${l.value}:${i.value}:${a.value}`);
4791
4782
  }, D = (u) => {
4792
4783
  l.value = u, M();
4793
4784
  }, z = (u) => {
4794
4785
  i.value = u, M();
4795
4786
  }, v = (u) => {
4796
- r.value = u, M();
4787
+ a.value = u, M();
4797
4788
  };
4798
- return n({ clearAll: p }), se(
4789
+ return n({ clearAll: p }), le(
4799
4790
  () => e.value,
4800
4791
  (u) => {
4801
- if (u) {
4802
- const a = u.split(":");
4803
- l.value = a[0], i.value = a[1], r.value = a[2];
4804
- }
4792
+ if (u)
4793
+ try {
4794
+ const r = u.split(":");
4795
+ l.value = r[0], i.value = r[1], a.value = r[2];
4796
+ } catch {
4797
+ }
4805
4798
  },
4806
4799
  {
4807
4800
  immediate: !0
@@ -4810,7 +4803,7 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
4810
4803
  times: c,
4811
4804
  h: l,
4812
4805
  m: i,
4813
- s: r,
4806
+ s: a,
4814
4807
  changeH: D,
4815
4808
  changeM: z,
4816
4809
  changeS: v
@@ -4818,9 +4811,9 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
4818
4811
  }
4819
4812
  }), Eh = { class: "times-picker" };
4820
4813
  function qh(e, t, n, c, l, i) {
4821
- const r = $("NSelect");
4814
+ const a = $("NSelect");
4822
4815
  return s(), f("div", Eh, [
4823
- x(r, {
4816
+ x(a, {
4824
4817
  value: e.h,
4825
4818
  options: e.times,
4826
4819
  "consistent-menu-width": !1,
@@ -4832,7 +4825,7 @@ function qh(e, t, n, c, l, i) {
4832
4825
  ])]),
4833
4826
  _: 1
4834
4827
  }, 8, ["value", "options", "disabled", "on-update:value"]),
4835
- x(r, {
4828
+ x(a, {
4836
4829
  value: e.m,
4837
4830
  options: e.times,
4838
4831
  "consistent-menu-width": !1,
@@ -4844,7 +4837,7 @@ function qh(e, t, n, c, l, i) {
4844
4837
  ])]),
4845
4838
  _: 1
4846
4839
  }, 8, ["value", "options", "disabled", "on-update:value"]),
4847
- x(r, {
4840
+ x(a, {
4848
4841
  value: e.s,
4849
4842
  options: e.times,
4850
4843
  "consistent-menu-width": !1,
@@ -4858,7 +4851,7 @@ function qh(e, t, n, c, l, i) {
4858
4851
  }, 8, ["value", "options", "disabled", "on-update:value"])
4859
4852
  ]);
4860
4853
  }
4861
- const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2"]]), Kh = oe({
4854
+ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-9e3bc606"]]), Kh = oe({
4862
4855
  name: "UzCamera",
4863
4856
  components: {
4864
4857
  NButton: we,
@@ -4885,16 +4878,16 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2
4885
4878
  emits: ["on-update:value"],
4886
4879
  setup(e, { emit: t }) {
4887
4880
  const n = C(), c = C(!1), l = C(!1), i = Et();
4888
- let r = null, p = null;
4881
+ let a = null, p = null;
4889
4882
  const _ = (k, d) => {
4890
- r.beginPath(), r.moveTo(k.x, k.y), r.lineTo(d.x, d.y), r.lineWidth = 2, r.strokeStyle = "green", r.stroke();
4883
+ a.beginPath(), a.moveTo(k.x, k.y), a.lineTo(d.x, d.y), a.lineWidth = 2, a.strokeStyle = "green", a.stroke();
4891
4884
  }, M = () => {
4892
4885
  l.value && requestAnimationFrame(D);
4893
4886
  }, D = () => {
4894
4887
  const k = parseInt(String(e.width)), d = parseInt(String(e.height));
4895
4888
  if (p && p.readyState === p.HAVE_ENOUGH_DATA) {
4896
- p.width = k, p.height = d, r.drawImage(n.value, 0, 0, k, d);
4897
- const g = r.getImageData(0, 0, k, d);
4889
+ p.width = k, p.height = d, a.drawImage(n.value, 0, 0, k, d);
4890
+ const g = a.getImageData(0, 0, k, d);
4898
4891
  try {
4899
4892
  const N = hs(g.data, k, d);
4900
4893
  if (N) {
@@ -4910,7 +4903,7 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2
4910
4903
  }
4911
4904
  M();
4912
4905
  }, z = () => {
4913
- n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((k) => k.stop()), r = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, c.value = !1;
4906
+ n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((k) => k.stop()), a = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, c.value = !1;
4914
4907
  }, v = async (k) => {
4915
4908
  n.value.srcObject !== void 0 ? n.value.srcObject = k : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = k : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(k) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(k) : n.value.src = k, n.value.play().then(M);
4916
4909
  const g = k.getVideoTracks()[0];
@@ -4923,9 +4916,9 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2
4923
4916
  } catch (d) {
4924
4917
  ne(d);
4925
4918
  }
4926
- }, a = () => {
4919
+ }, r = () => {
4927
4920
  c.value = !0, ye(async () => {
4928
- navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (l.value = !0, p = document.getElementById("uz-scan-canvas"), p && (r = p.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
4921
+ navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (l.value = !0, p = document.getElementById("uz-scan-canvas"), p && (a = p.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
4929
4922
  video: {
4930
4923
  width: parseInt(String(e.width)),
4931
4924
  height: parseInt(String(e.height)),
@@ -4943,16 +4936,16 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2
4943
4936
  });
4944
4937
  };
4945
4938
  return Re(() => {
4946
- e.mode === "video" && a();
4939
+ e.mode === "video" && r();
4947
4940
  }), Ut(() => {
4948
4941
  z();
4949
- }), se([() => e.width, () => e.width], () => {
4950
- e.mode === "video" && (z(), a());
4942
+ }), le([() => e.width, () => e.width], () => {
4943
+ e.mode === "video" && (z(), r());
4951
4944
  }), {
4952
4945
  videoRef: n,
4953
4946
  modal: c,
4954
4947
  loading: l,
4955
- doScan: a,
4948
+ doScan: r,
4956
4949
  closeAll: z
4957
4950
  };
4958
4951
  }
@@ -4961,9 +4954,9 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-04b947b2
4961
4954
  playsInline: ""
4962
4955
  };
4963
4956
  function Xh(e, t, n, c, l, i) {
4964
- const r = $("NButton"), p = $("NModal");
4965
- return s(), f(le, null, [
4966
- e.mode === "button" ? (s(), V(r, {
4957
+ const a = $("NButton"), p = $("NModal");
4958
+ return s(), f(se, null, [
4959
+ e.mode === "button" ? (s(), V(a, {
4967
4960
  key: 0,
4968
4961
  type: "primary",
4969
4962
  loading: e.loading,
@@ -5079,7 +5072,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5079
5072
  },
5080
5073
  emits: ["update:loading", "on-update:value"],
5081
5074
  setup(e, { emit: t }) {
5082
- const n = at(), c = C(), l = C([]), i = C(), r = C(!0), p = C(!1), _ = C(!1), M = C(0), D = C(0), z = C(0), v = C(1), u = C(""), a = C([]), k = C(!1), d = (b) => Array.isArray(b) && b.length > 0 || b ? b : !1, g = (b = !1) => {
5075
+ const n = at(), c = C(), l = C([]), i = C(), a = C(!0), p = C(!1), _ = C(!1), M = C(0), D = C(0), z = C(0), v = C(1), u = C(""), r = C([]), k = C(!1), d = (b) => Array.isArray(b) && b.length > 0 || b ? b : !1, g = (b = !1) => {
5083
5076
  if (e.loading)
5084
5077
  return;
5085
5078
  const I = G(c.value);
@@ -5102,7 +5095,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5102
5095
  }, N = () => {
5103
5096
  e.loading || (c.value = G(i.value), g());
5104
5097
  }, h = () => {
5105
- r.value = !r.value;
5098
+ a.value = !a.value;
5106
5099
  }, T = (b) => k.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) => {
5107
5100
  const I = {};
5108
5101
  let O = 0;
@@ -5113,7 +5106,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5113
5106
  const j = B - O >= 0 ? B - O - 1 : -1;
5114
5107
  D.value = j, z.value = j, M.value = O, O > B ? (p.value = !0, _.value = !0) : (p.value = !1, _.value = !1);
5115
5108
  for (const S of b)
5116
- if (S.search.tab && (a.value = S.params.options, k.value = S.params.multiple, u.value = S.key, S.search.show = !1), S.input === "input" && S.params.type === "textarea" && (S.params.type = "text"), S.search.show = S.search.show ?? !0, S.defaultValue)
5109
+ if (S.search.tab && (r.value = S.params.options, k.value = S.params.multiple, u.value = S.key, S.search.show = !1), S.input === "input" && S.params.type === "textarea" && (S.params.type = "text"), S.search.show = S.search.show ?? !0, S.defaultValue)
5117
5110
  if (S.input === "date")
5118
5111
  if (S.params.type.indexOf("range") > -1)
5119
5112
  switch (S.search.defaultValue) {
@@ -5140,7 +5133,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5140
5133
  I[S.key] = "", (S.input === "number" || S.input === "date" || S.input === "time") && (I[S.key] = null), (S.input === "cascader" || S.input === "select") && (S.params.multiple ? I[S.key] = [] : I[S.key] = null);
5141
5134
  return { data: b, values: I };
5142
5135
  }, X = (b) => {
5143
- if (a.value = [], b && b.length > 0) {
5136
+ if (r.value = [], b && b.length > 0) {
5144
5137
  const { data: I, values: O } = L(G(b)), B = {}, j = e.id || n.params.id;
5145
5138
  if (e.cache && j) {
5146
5139
  const S = $e(`tables_${j}`, !1);
@@ -5163,7 +5156,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5163
5156
  c.value[u.value] = b;
5164
5157
  g(!0);
5165
5158
  };
5166
- return se(
5159
+ return le(
5167
5160
  () => e.data,
5168
5161
  (b) => {
5169
5162
  X(b);
@@ -5177,10 +5170,10 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5177
5170
  moreIndex: M,
5178
5171
  offset: D,
5179
5172
  offsetCache: z,
5180
- collapsed: r,
5173
+ collapsed: a,
5181
5174
  gridSpan: v,
5182
5175
  tabKey: u,
5183
- tabList: a,
5176
+ tabList: r,
5184
5177
  doSearch: g,
5185
5178
  clearAll: N,
5186
5179
  showMore: h,
@@ -5196,7 +5189,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
5196
5189
  class: "uz-flex uz-gap-2 uz-flex-1"
5197
5190
  };
5198
5191
  function o1(e, t, n, c, l, i) {
5199
- const r = $("NButton"), p = $("NButtonGroup"), _ = $("NGridItem"), M = $("NInputGroupLabel"), D = $("NPopover"), z = $("UzFormItem"), v = $("NInputGroup"), u = $("NGrid"), a = $("CaretDown"), k = $("NIcon"), d = $("Search"), g = $("Refresh"), N = Sn("media");
5192
+ const a = $("NButton"), p = $("NButtonGroup"), _ = $("NGridItem"), M = $("NInputGroupLabel"), D = $("NPopover"), z = $("UzFormItem"), v = $("NInputGroup"), u = $("NGrid"), r = $("CaretDown"), k = $("NIcon"), d = $("Search"), g = $("Refresh"), N = Sn("media");
5200
5193
  return s(), f("div", {
5201
5194
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
5202
5195
  onKeyup: t[1] || (t[1] = Ua((h) => e.doSearch(!1), ["enter"]))
@@ -5219,7 +5212,7 @@ function o1(e, t, n, c, l, i) {
5219
5212
  default: m(() => [
5220
5213
  x(p, null, {
5221
5214
  default: m(() => [
5222
- (s(!0), f(le, null, ke(e.tabList, (h) => (s(), V(r, {
5215
+ (s(!0), f(se, null, ke(e.tabList, (h) => (s(), V(a, {
5223
5216
  key: h.value,
5224
5217
  type: e.tabButtonType(h),
5225
5218
  secondary: "",
@@ -5240,7 +5233,7 @@ function o1(e, t, n, c, l, i) {
5240
5233
  key: 1,
5241
5234
  offset: e.offset
5242
5235
  }, null, 8, ["offset"])) : W("", !0),
5243
- (s(!0), f(le, null, ke(e.itemData, (h, T) => (s(), V(_, {
5236
+ (s(!0), f(se, null, ke(e.itemData, (h, T) => (s(), V(_, {
5244
5237
  key: `${T}_${Date.now()}`,
5245
5238
  span: h.search.show ? e.gridSpan : 0
5246
5239
  }, {
@@ -5284,7 +5277,7 @@ function o1(e, t, n, c, l, i) {
5284
5277
  ])
5285
5278
  ])) : W("", !0),
5286
5279
  e.enableHeader ? (s(), f("div", n1, [
5287
- e.more ? (s(), V(r, {
5280
+ e.more ? (s(), V(a, {
5288
5281
  key: 0,
5289
5282
  quaternary: "",
5290
5283
  onClick: e.showMore
@@ -5294,14 +5287,14 @@ function o1(e, t, n, c, l, i) {
5294
5287
  class: ae(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
5295
5288
  }, {
5296
5289
  default: m(() => [
5297
- x(a)
5290
+ x(r)
5298
5291
  ]),
5299
5292
  _: 1
5300
5293
  }, 8, ["class"])
5301
5294
  ]),
5302
5295
  _: 1
5303
5296
  }, 8, ["onClick"])) : W("", !0),
5304
- e.itemData && Object.keys(e.itemData).length > 0 ? (s(), V(r, {
5297
+ e.itemData && Object.keys(e.itemData).length > 0 ? (s(), V(a, {
5305
5298
  key: 1,
5306
5299
  loading: e.loading,
5307
5300
  secondary: "",
@@ -5323,7 +5316,7 @@ function o1(e, t, n, c, l, i) {
5323
5316
  ]),
5324
5317
  _: 1
5325
5318
  }, 8, ["loading"])) : W("", !0),
5326
- e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), V(r, {
5319
+ e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), V(a, {
5327
5320
  key: 2,
5328
5321
  loading: e.loading,
5329
5322
  secondary: "",
@@ -5382,12 +5375,12 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
5382
5375
  },
5383
5376
  emits: ["update:loading", "on-update:value"],
5384
5377
  setup(e, { emit: t }) {
5385
- const n = at(), c = C([]), l = C(!1), i = C(), r = C(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
5378
+ const n = at(), c = C([]), l = C(!1), i = C(), a = C(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
5386
5379
  if (e.loading)
5387
5380
  return;
5388
5381
  const u = G(i.value);
5389
5382
  !v && u.query && (u.query.page = 1);
5390
- const a = [];
5383
+ const r = [];
5391
5384
  c.value.forEach((k) => {
5392
5385
  if (u[k.key]) {
5393
5386
  const d = p(u[k.key]);
@@ -5398,31 +5391,31 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
5398
5391
  range: !1,
5399
5392
  fuzzy: k.search.fuzzy
5400
5393
  };
5401
- (k.input === "cascader" || k.input === "select") && k.params.multiple && (g.range = !0), k.input === "date" && k.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0), a.push(g);
5394
+ (k.input === "cascader" || k.input === "select") && k.params.multiple && (g.range = !0), k.input === "date" && k.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0), r.push(g);
5402
5395
  }
5403
5396
  }
5404
- }), l.value = !1, t("update:loading", !0), t("on-update:value", a);
5397
+ }), l.value = !1, t("update:loading", !0), t("on-update:value", r);
5405
5398
  }, M = () => {
5406
- e.loading || (i.value = G(r.value), _());
5399
+ e.loading || (i.value = G(a.value), _());
5407
5400
  }, D = (v) => {
5408
5401
  const u = {};
5409
- for (const a of v)
5410
- a.input === "input" && a.params.type === "textarea" && (a.params.type = "text"), a.search.show = a.search.show ?? !0, a.defaultValue ? u[a.key] = a.defaultValue : (u[a.key] = "", (a.input === "number" || a.input === "date" || a.input === "time") && (u[a.key] = null), a.input === "cascader" && (a.params.multiple ? u[a.key] = [] : u[a.key] = null), a.input === "select" && (a.params.multiple ? u[a.key] = [] : u[a.key] = null));
5402
+ for (const r of v)
5403
+ 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));
5411
5404
  return { data: v, values: u };
5412
5405
  }, z = (v) => {
5413
5406
  if (v && v.length > 0) {
5414
- const { data: u, values: a } = D(G(v)), k = {}, d = e.id || n.params.id;
5407
+ const { data: u, values: r } = D(G(v)), k = {}, d = e.id || n.params.id;
5415
5408
  if (e.cache && d) {
5416
5409
  const g = $e(`tables_${d}`, !1);
5417
5410
  g && g.params.forEach((N) => {
5418
5411
  k[N.key] = N.value;
5419
5412
  });
5420
5413
  }
5421
- c.value = u, i.value = G({ ...a, ...k }), r.value = G(a);
5414
+ c.value = u, i.value = G({ ...r, ...k }), a.value = G(r);
5422
5415
  }
5423
5416
  _(!0);
5424
5417
  };
5425
- return se(
5418
+ return le(
5426
5419
  () => e.data,
5427
5420
  (v) => {
5428
5421
  z(v);
@@ -5437,8 +5430,8 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
5437
5430
  }
5438
5431
  }), s1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, l1 = { class: "uz-flex uz-gap-2" }, i1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5439
5432
  function u1(e, t, n, c, l, i) {
5440
- const r = $("Search"), p = $("NIcon"), _ = $("NButton"), M = $("NInputGroupLabel"), D = $("UzFormItem"), z = $("NInputGroup"), v = $("NGridItem"), u = $("NGrid"), a = $("Refresh"), k = $("NDrawerContent"), d = $("NDrawer");
5441
- return s(), f(le, null, [
5433
+ const a = $("Search"), p = $("NIcon"), _ = $("NButton"), M = $("NInputGroupLabel"), D = $("UzFormItem"), z = $("NInputGroup"), v = $("NGridItem"), u = $("NGrid"), r = $("Refresh"), k = $("NDrawerContent"), d = $("NDrawer");
5434
+ return s(), f(se, null, [
5442
5435
  o("div", s1, [
5443
5436
  ge(e.$slots, "header"),
5444
5437
  o("div", l1, [
@@ -5450,7 +5443,7 @@ function u1(e, t, n, c, l, i) {
5450
5443
  icon: m(() => [
5451
5444
  x(p, { size: "18" }, {
5452
5445
  default: m(() => [
5453
- x(r)
5446
+ x(a)
5454
5447
  ]),
5455
5448
  _: 1
5456
5449
  })
@@ -5488,7 +5481,7 @@ function u1(e, t, n, c, l, i) {
5488
5481
  icon: m(() => [
5489
5482
  x(p, null, {
5490
5483
  default: m(() => [
5491
- x(a)
5484
+ x(r)
5492
5485
  ]),
5493
5486
  _: 1
5494
5487
  })
@@ -5508,7 +5501,7 @@ function u1(e, t, n, c, l, i) {
5508
5501
  icon: m(() => [
5509
5502
  x(p, { size: "18" }, {
5510
5503
  default: m(() => [
5511
- x(r)
5504
+ x(a)
5512
5505
  ]),
5513
5506
  _: 1
5514
5507
  })
@@ -5527,7 +5520,7 @@ function u1(e, t, n, c, l, i) {
5527
5520
  cols: "1"
5528
5521
  }, {
5529
5522
  default: m(() => [
5530
- (s(!0), f(le, null, ke(e.itemData, (g, N) => (s(), V(v, {
5523
+ (s(!0), f(se, null, ke(e.itemData, (g, N) => (s(), V(v, {
5531
5524
  key: `${N}_${Date.now()}`,
5532
5525
  span: g.search.show ? 1 : 0
5533
5526
  }, {
@@ -5598,8 +5591,8 @@ const tn = () => new Promise((e) => {
5598
5591
  const l = document.createElement("script");
5599
5592
  l.src = "https://spark-1355708620.cos.ap-shanghai.myqcloud.com/static/city.js?callback=cityFn", n?.appendChild(l);
5600
5593
  const i = setInterval(() => {
5601
- const r = window.localStorage.getItem("city");
5602
- r && (clearInterval(i), e(JSON.parse(r)));
5594
+ const a = window.localStorage.getItem("city");
5595
+ a && (clearInterval(i), e(JSON.parse(a)));
5603
5596
  }, 500);
5604
5597
  }
5605
5598
  }), h1 = async (e, t, n) => {
@@ -5614,10 +5607,10 @@ const tn = () => new Promise((e) => {
5614
5607
  );
5615
5608
  if (l[0] === "city") {
5616
5609
  const i = await tn();
5617
- return (r) => ee(
5610
+ return (a) => ee(
5618
5611
  Fn,
5619
5612
  {
5620
- value: r[e],
5613
+ value: a[e],
5621
5614
  options: i,
5622
5615
  disabled: !0,
5623
5616
  checkStrategy: "all",
@@ -5627,9 +5620,9 @@ const tn = () => new Promise((e) => {
5627
5620
  );
5628
5621
  }
5629
5622
  if (l[0] === "modules" && n && Object.keys(n).length > 0) {
5630
- const i = c[0].replace("modules:", ""), r = Object.keys(n).find((p) => p.includes(i));
5631
- if (r) {
5632
- const p = n[r], _ = ja(Oa(p));
5623
+ const i = c[0].replace("modules:", ""), a = Object.keys(n).find((p) => p.includes(i));
5624
+ if (a) {
5625
+ const p = n[a], _ = ja(Oa(p));
5633
5626
  return (M) => ee(_, { rowData: M }, {});
5634
5627
  } else
5635
5628
  return ee("div", "Module not found");
@@ -5637,19 +5630,19 @@ const tn = () => new Promise((e) => {
5637
5630
  } else
5638
5631
  try {
5639
5632
  const l = t, i = new Function("rowData", "rowIndex", "h", l);
5640
- return (r, p) => i(r, p, ee);
5633
+ return (a, p) => i(a, p, ee);
5641
5634
  } catch (l) {
5642
5635
  ne(l);
5643
5636
  }
5644
5637
  }
5645
5638
  return t && typeof t == "function" ? (c, l) => t(c, l, ee) : "";
5646
5639
  }, Tt = (e, t, n) => t.map((l) => {
5647
- let i = [], r = l.id;
5640
+ let i = [], a = l.id;
5648
5641
  return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((_) => {
5649
5642
  i.push(l[_]);
5650
- }), i = ps(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (r = l[e.params.valueKey]), {
5643
+ }), i = ps(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
5651
5644
  label: i,
5652
- value: r,
5645
+ value: a,
5653
5646
  disabled: l?.status === "0",
5654
5647
  params: l
5655
5648
  };
@@ -5667,12 +5660,12 @@ async function We(e) {
5667
5660
  const c = $e(`dynamicTable_${e}`, !1);
5668
5661
  c && Fe.has(`dynamicTable_${e}`) ? t(c) : Pf(e).then((l) => {
5669
5662
  !c || c && c.createTime !== l.createTime ? Rf(e).then((i) => {
5670
- const r = {
5663
+ const a = {
5671
5664
  createTime: i.createTime,
5672
5665
  tableTitle: i.tableTitle,
5673
5666
  viewJson: i.viewJson
5674
5667
  };
5675
- be(`dynamicTable_${e}`, r, 0), Fe.set(`dynamicTable_${e}`, !0), _f("tables_"), t(i);
5668
+ be(`dynamicTable_${e}`, a, 0), Fe.set(`dynamicTable_${e}`, !0), _f("tables_"), t(i);
5676
5669
  }).catch(() => {
5677
5670
  n();
5678
5671
  }) : (Fe.set(`dynamicTable_${e}`, !0), t(c));
@@ -5871,19 +5864,19 @@ const m1 = (e) => e.map((t) => {
5871
5864
  };
5872
5865
  function pt(e, t, n) {
5873
5866
  return new Promise(async (c, l) => {
5874
- const i = [], r = {}, p = {}, _ = {}, M = [], D = [], z = G(e), v = [];
5867
+ const i = [], a = {}, p = {}, _ = {}, M = [], D = [], z = G(e), v = [];
5875
5868
  for (const u of z)
5876
5869
  u.input === "group" ? v.push(...u.params.children) : v.push(u);
5877
5870
  for await (const u of v) {
5878
5871
  if (u.source) {
5879
- const { sourceData: a, n: k } = await Bt(u.source);
5880
- if (a && Array.isArray(a)) {
5872
+ const { sourceData: r, n: k } = await Bt(u.source);
5873
+ if (r && Array.isArray(r)) {
5881
5874
  let d = [];
5882
5875
  if (u.sourceFn) {
5883
5876
  const g = u.sourceFn;
5884
- d = new Function("sourceData", g)(a);
5877
+ d = new Function("sourceData", g)(r);
5885
5878
  } else
5886
- d = Tt(u, a, k);
5879
+ d = Tt(u, r, k);
5887
5880
  if (u.params.options = d, u.form.backfill && t)
5888
5881
  if (Array.isArray(t))
5889
5882
  t.forEach((g, N) => {
@@ -5898,37 +5891,37 @@ function pt(e, t, n) {
5898
5891
  }
5899
5892
  if (u.input === "filling")
5900
5893
  try {
5901
- Array.isArray(t) ? t.forEach((a, k) => {
5894
+ Array.isArray(t) ? t.forEach((r, k) => {
5902
5895
  D[k] || (D[k] = {}), M[k] && M[k][u.params.parentKey] && M[k][u.params.parentKey][u.key] ? (D[k][u.key] = M[k][u.params.parentKey][u.key], M[k][u.params.parentKey][`${u.key}Str`] && (D[k][`${u.key}Str`] = M[k][u.params.parentKey][`${u.key}Str`])) : (D[k][u.key] = null, D[k][`${u.key}Str`] = null);
5903
5896
  }) : p[u.params.parentKey] && p[u.params.parentKey][u.key] ? (_[u.key] = p[u.params.parentKey][u.key], p[u.params.parentKey][`${u.key}Str`] && (_[`${u.key}Str`] = p[u.params.parentKey][`${u.key}Str`])) : (_[u.key] = null, _[`${u.key}Str`] = null);
5904
- } catch (a) {
5905
- ne(a);
5897
+ } catch (r) {
5898
+ ne(r);
5906
5899
  }
5907
5900
  if (u.input !== "divider" && u.form.rule && u.form.rule.validator && typeof u.form.rule.validator == "string")
5908
5901
  try {
5909
- const a = u.form.rule.validator, k = new Function("rule", "value", "index", "formValues", a);
5902
+ const r = u.form.rule.validator, k = new Function("rule", "value", "index", "formValues", r);
5910
5903
  u.form.rule.validator = (d, g) => k(d, g, null, n);
5911
- } catch (a) {
5912
- ne(a);
5904
+ } catch (r) {
5905
+ ne(r);
5913
5906
  }
5914
5907
  if (u.input === "date" && u.params.isDateDisabled && typeof u.params.isDateDisabled == "string")
5915
5908
  try {
5916
- const a = u.params.isDateDisabled, k = new Function("ts", "detail", a);
5909
+ const r = u.params.isDateDisabled, k = new Function("ts", "detail", r);
5917
5910
  u.params.isDateDisabled = (d, g) => k(d, g);
5918
- } catch (a) {
5919
- ne(a);
5911
+ } catch (r) {
5912
+ ne(r);
5920
5913
  }
5921
5914
  if (u.input === "cascader" && u.table.render === "[city]") {
5922
- const a = await tn();
5923
- u.params.options = a;
5915
+ const r = await tn();
5916
+ u.params.options = r;
5924
5917
  }
5925
5918
  if (u.input === "subTable" && u.params.link) {
5926
- const a = await We(u.params.link).catch(() => {
5919
+ const r = await We(u.params.link).catch(() => {
5927
5920
  l();
5928
5921
  });
5929
- if (a)
5922
+ if (r)
5930
5923
  try {
5931
- const k = Ie.parse(a.viewJson), d = Ge(k.table);
5924
+ const k = Ie.parse(r.viewJson), d = Ge(k.table);
5932
5925
  d.forEach((N) => {
5933
5926
  N.table.sorter = !1;
5934
5927
  });
@@ -5967,11 +5960,11 @@ function pt(e, t, n) {
5967
5960
  sourceFn: u.sourceFn,
5968
5961
  params: u.params,
5969
5962
  form: u.form
5970
- }), u.input === "date" || u.input === "number" || u.input === "time" ? r[u.key] = Number(u.form.defaultValue) || 0 : r[u.key] = u.form.defaultValue;
5963
+ }), u.input === "date" || u.input === "number" || u.input === "time" ? a[u.key] = Number(u.form.defaultValue) || 0 : a[u.key] = u.form.defaultValue;
5971
5964
  }
5972
5965
  c({
5973
5966
  form: i,
5974
- formDefaultValue: r,
5967
+ formDefaultValue: a,
5975
5968
  fillingDefaultValue: _,
5976
5969
  fillingDefaultArray: D
5977
5970
  });
@@ -5980,28 +5973,28 @@ function pt(e, t, n) {
5980
5973
  async function ft(e, t = !1, n = 0, c = () => {
5981
5974
  }, l = {}) {
5982
5975
  let i = 0;
5983
- const r = [], p = [];
5976
+ const a = [], p = [];
5984
5977
  let _ = [];
5985
5978
  const M = G(e), D = [], z = [];
5986
- for (const a of M)
5987
- a.input === "group" ? (D.push(...a.params.children), z.push({
5988
- title: a.label,
5989
- key: a.key,
5990
- ...a.table,
5991
- children: a.params.children.map((k) => k.key)
5992
- })) : (D.push(a), z.push(a.key));
5979
+ for (const r of M)
5980
+ r.input === "group" ? (D.push(...r.params.children), z.push({
5981
+ title: r.label,
5982
+ key: r.key,
5983
+ ...r.table,
5984
+ children: r.params.children.map((k) => k.key)
5985
+ })) : (D.push(r), z.push(r.key));
5993
5986
  const v = [];
5994
- e.forEach((a) => {
5995
- (a.input === "cascader" || a.input === "select") && a.params.multiple && v.push(a.key);
5987
+ e.forEach((r) => {
5988
+ (r.input === "cascader" || r.input === "select") && r.params.multiple && v.push(r.key);
5996
5989
  });
5997
- for await (const a of D) {
5998
- if (a.source && !a.table.render && a.input !== "auto") {
5999
- const { sourceData: d, n: g } = await Bt(a.source);
5990
+ for await (const r of D) {
5991
+ if (r.source && !r.table.render && r.input !== "auto") {
5992
+ const { sourceData: d, n: g } = await Bt(r.source);
6000
5993
  if (d && Array.isArray(d))
6001
- if (a.table.render = (N) => {
5994
+ if (r.table.render = (N) => {
6002
5995
  if (d && d.length > 0)
6003
- if (v.includes(a.key) && N[a.key]) {
6004
- const h = [], T = JSON.parse(N[a.key]);
5996
+ if (v.includes(r.key) && N[r.key]) {
5997
+ const h = [], T = JSON.parse(N[r.key]);
6005
5998
  if (T)
6006
5999
  for (const L of T) {
6007
6000
  const X = d.find(
@@ -6024,65 +6017,65 @@ async function ft(e, t = !1, n = 0, c = () => {
6024
6017
  const h = d.find(
6025
6018
  (T) => (
6026
6019
  // @ts-ignore
6027
- (a.params?.valueKey ? (
6020
+ (r.params?.valueKey ? (
6028
6021
  // @ts-ignore
6029
- T[a.params?.valueKey]
6030
- ) : String(T.id)) === N[a.key]
6022
+ T[r.params?.valueKey]
6023
+ ) : String(T.id)) === N[r.key]
6031
6024
  )
6032
6025
  );
6033
6026
  if (h)
6034
6027
  return h[g[1]];
6035
6028
  }
6036
- }, a.sourceFn) {
6037
- const N = a.sourceFn, h = new Function("sourceData", N);
6038
- a.params.options = h(d);
6029
+ }, r.sourceFn) {
6030
+ const N = r.sourceFn, h = new Function("sourceData", N);
6031
+ r.params.options = h(d);
6039
6032
  } else
6040
- a.params.options = Tt(a, d, g);
6033
+ r.params.options = Tt(r, d, g);
6041
6034
  }
6042
- if (!a.table.render && !a.source && a.input === "select" && typeof a.params.options != "function" && a.params.options.length > 0 && (a.table.render = (d) => {
6043
- const g = a.params.options.find(
6044
- (N) => N.value === d[a.key]
6035
+ if (!r.table.render && !r.source && r.input === "select" && typeof r.params.options != "function" && r.params.options.length > 0 && (r.table.render = (d) => {
6036
+ const g = r.params.options.find(
6037
+ (N) => N.value === d[r.key]
6045
6038
  );
6046
6039
  if (g)
6047
6040
  return g.label;
6048
- }), a.input === "cascader" && a.table.render === "[city]") {
6041
+ }), r.input === "cascader" && r.table.render === "[city]") {
6049
6042
  const d = await tn();
6050
- a.params.options = d;
6043
+ r.params.options = d;
6051
6044
  }
6052
- a.input === "upload" && !a.table.render && (a.table.render = function(d) {
6045
+ r.input === "upload" && !r.table.render && (r.table.render = function(d) {
6053
6046
  return ee(
6054
6047
  ca,
6055
6048
  {
6056
- value: d[a.key]
6049
+ value: d[r.key]
6057
6050
  },
6058
6051
  {
6059
6052
  default: () => null
6060
6053
  }
6061
6054
  );
6062
- }), i = i + Number(a.table.width || 140);
6055
+ }), i = i + Number(r.table.width || 140);
6063
6056
  let k = {
6064
- input: a.input,
6065
- title: a.label,
6066
- key: a.key,
6067
- params: a.params,
6068
- form: a.form,
6057
+ input: r.input,
6058
+ title: r.label,
6059
+ key: r.key,
6060
+ params: r.params,
6061
+ form: r.form,
6069
6062
  ellipsisComponent: "performant-ellipsis",
6070
- ...a.table,
6071
- width: Number(a.table.width || 140),
6072
- ellipsis: a.table.ellipsis ? { tooltip: !0, "line-clamp": a.table.clamp ?? 0 } : !1,
6073
- render: a.table.render ? await h1(a.key, a.table.render, l) : void 0,
6074
- show: pe.isMobile ? a.table.mobile ?? !1 : a.table.show ?? !0,
6075
- pin: !!a.table.fixed,
6076
- fixTemp: a.table.fixed
6063
+ ...r.table,
6064
+ width: Number(r.table.width || 140),
6065
+ ellipsis: r.table.ellipsis ? { tooltip: !0, "line-clamp": r.table.clamp ?? 0 } : !1,
6066
+ render: r.table.render ? await h1(r.key, r.table.render, l) : void 0,
6067
+ show: pe.isMobile ? r.table.mobile ?? !1 : r.table.show ?? !0,
6068
+ pin: !!r.table.fixed,
6069
+ fixTemp: r.table.fixed
6077
6070
  };
6078
6071
  if (t)
6079
6072
  if (!k.form.edit.show)
6080
6073
  k = null;
6081
6074
  else {
6082
- if (k.ellipsis = !1, k.resizable = !0, pe.isMobile && (k.show = a.table.mobile), a.table.show && (n === 0 && (k.show = a.form.create.show), n === 1 && (k.show = a.form.edit.show), n === 2 && (k.show = a.form.show)), a.form.rule?.required && typeof a.form.rule.validator == "string") {
6083
- delete a.form.rule.message;
6084
- const d = a.form.rule.validator, g = new Function("rule", "value", "index", "formValues", d);
6085
- a.form.rule.validator !== "" ? a.form.rule.validator = (N, h) => c()[N.index].delete ? !0 : g(N, h, N.index, () => c()) : a.form.rule.validator = (N, h) => c()[N.index].delete || h ? !0 : new Error(a.form.rule.message);
6075
+ if (k.ellipsis = !1, k.resizable = !0, pe.isMobile && (k.show = r.table.mobile), r.table.show && (n === 0 && (k.show = r.form.create.show), n === 1 && (k.show = r.form.edit.show), n === 2 && (k.show = r.form.show)), r.form.rule?.required && typeof r.form.rule.validator == "string") {
6076
+ delete r.form.rule.message;
6077
+ const d = r.form.rule.validator, g = new Function("rule", "value", "index", "formValues", d);
6078
+ r.form.rule.validator !== "" ? r.form.rule.validator = (N, h) => c()[N.index].delete ? !0 : g(N, h, N.index, () => c()) : r.form.rule.validator = (N, h) => c()[N.index].delete || h ? !0 : new Error(r.form.rule.message);
6086
6079
  }
6087
6080
  k.render = function(d, g) {
6088
6081
  return ee(
@@ -6090,16 +6083,16 @@ async function ft(e, t = !1, n = 0, c = () => {
6090
6083
  {
6091
6084
  showLabel: !1,
6092
6085
  showFeedback: !1,
6093
- path: `child[${g}].${a.key}`,
6094
- rule: a.form.rule?.required ? {
6095
- ...a.form.rule,
6086
+ path: `child[${g}].${r.key}`,
6087
+ rule: r.form.rule?.required ? {
6088
+ ...r.form.rule,
6096
6089
  // @ts-ignore
6097
6090
  index: g
6098
6091
  } : void 0
6099
6092
  },
6100
6093
  {
6101
6094
  default: () => ee(Ee, {
6102
- item: a,
6095
+ item: r,
6103
6096
  formValue: d,
6104
6097
  status: n,
6105
6098
  itemIndex: g
@@ -6108,58 +6101,58 @@ async function ft(e, t = !1, n = 0, c = () => {
6108
6101
  );
6109
6102
  };
6110
6103
  }
6111
- if (k && a.input !== "divider" && a.input !== "subTable" && _.push(k), a.input !== "divider" && a.input !== "switch" && a.input !== "subTable" && a.input !== "upload" && a.search.show) {
6112
- if (a.search.source)
6113
- if (a.input = "select", a.params.type = a.search.type, a.params.valueKey = a.search.valueKey, a.params.valueKey = a.search.valueKey, a.search.source === "from-up")
6114
- a.params.options = a.params.options;
6104
+ if (k && r.input !== "divider" && r.input !== "subTable" && _.push(k), r.input !== "divider" && r.input !== "switch" && r.input !== "subTable" && r.input !== "upload" && r.search.show) {
6105
+ if (r.search.source)
6106
+ 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")
6107
+ r.params.options = r.params.options;
6115
6108
  else {
6116
- const { sourceData: d, n: g } = await Bt(a.search.source);
6109
+ const { sourceData: d, n: g } = await Bt(r.search.source);
6117
6110
  if (d && Array.isArray(d))
6118
- if (a.sourceFn) {
6119
- const N = a.sourceFn, h = new Function("sourceData", N);
6120
- a.params.options = h(d);
6111
+ if (r.sourceFn) {
6112
+ const N = r.sourceFn, h = new Function("sourceData", N);
6113
+ r.params.options = h(d);
6121
6114
  } else
6122
- a.params.options = Tt(a, d, g);
6115
+ r.params.options = Tt(r, d, g);
6123
6116
  }
6124
- a.search.multiple && (a.params.multiple = !0, a.search.defaultValue && (a.search.defaultValue = f1(a.search.defaultValue))), r.push({
6125
- input: a.input,
6126
- label: a.label,
6127
- key: a.key,
6128
- defaultValue: a.search.defaultValue,
6117
+ r.search.multiple && (r.params.multiple = !0, r.search.defaultValue && (r.search.defaultValue = f1(r.search.defaultValue))), a.push({
6118
+ input: r.input,
6119
+ label: r.label,
6120
+ key: r.key,
6121
+ defaultValue: r.search.defaultValue,
6129
6122
  params: {
6130
- ...a.params,
6131
- placeholder: a.label,
6123
+ ...r.params,
6124
+ placeholder: r.label,
6132
6125
  filterable: !0,
6133
6126
  // @ts-ignore
6134
- type: a.params.type
6127
+ type: r.params.type
6135
6128
  },
6136
- form: { show: a.search.show },
6137
- search: a.search
6129
+ form: { show: r.search.show },
6130
+ search: r.search
6138
6131
  });
6139
6132
  }
6140
- a.input === "subTable" && a.params.link && !a.params.quest && p.push(a.params.link);
6133
+ r.input === "subTable" && r.params.link && !r.params.quest && p.push(r.params.link);
6141
6134
  }
6142
6135
  const u = [];
6143
6136
  if (z.length > 0) {
6144
- for (const a of z) {
6145
- if (typeof a == "string") {
6146
- const k = _.find((d) => d.key === a);
6137
+ for (const r of z) {
6138
+ if (typeof r == "string") {
6139
+ const k = _.find((d) => d.key === r);
6147
6140
  k && u.push(k);
6148
6141
  }
6149
- if (typeof a == "object") {
6150
- const k = a.children, d = [];
6142
+ if (typeof r == "object") {
6143
+ const k = r.children, d = [];
6151
6144
  for (const g of k) {
6152
6145
  const N = _.find((h) => h.key === g);
6153
6146
  N && d.push(N);
6154
6147
  }
6155
- a.children = d, u.push(a);
6148
+ r.children = d, u.push(r);
6156
6149
  }
6157
6150
  }
6158
6151
  _ = u;
6159
6152
  }
6160
6153
  return {
6161
6154
  tableColumns: _,
6162
- search: r,
6155
+ search: a,
6163
6156
  subTableIds: p,
6164
6157
  tableWidth: i
6165
6158
  };
@@ -6192,7 +6185,7 @@ const v1 = oe({
6192
6185
  t("update:value", !1);
6193
6186
  }, i = () => {
6194
6187
  clearInterval(n.value);
6195
- }, r = () => {
6188
+ }, a = () => {
6196
6189
  c.value = 5, n.value = setInterval(() => {
6197
6190
  const p = c.value;
6198
6191
  p <= 0 ? (clearInterval(n.value), l()) : c.value = p - 1;
@@ -6200,10 +6193,10 @@ const v1 = oe({
6200
6193
  };
6201
6194
  return Tn(() => {
6202
6195
  clearInterval(n.value);
6203
- }), se(
6196
+ }), le(
6204
6197
  () => e.status,
6205
6198
  (p) => {
6206
- p === 1 && r();
6199
+ p === 1 && a();
6207
6200
  }
6208
6201
  ), {
6209
6202
  counts: c,
@@ -6213,10 +6206,10 @@ const v1 = oe({
6213
6206
  }
6214
6207
  });
6215
6208
  function k1(e, t, n, c, l, i) {
6216
- const r = $("NEllipsis"), p = $("NButton"), _ = $("NSpin");
6209
+ const a = $("NEllipsis"), p = $("NButton"), _ = $("NSpin");
6217
6210
  return s(), V(_, { show: e.value }, {
6218
6211
  description: m(() => [
6219
- x(r, {
6212
+ x(a, {
6220
6213
  "expand-trigger": "click",
6221
6214
  "line-clamp": "3",
6222
6215
  tooltip: !1
@@ -6395,7 +6388,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6395
6388
  value: () => null,
6396
6389
  setValue: () => null
6397
6390
  });
6398
- const l = at(), { t: i } = Kt(), r = Et(), p = ze(() => pe.isMobile), _ = C(), M = C(), D = C(), z = C(!!c.header), v = C(!1), u = C(!1), a = C(""), k = C(), d = C([]), g = C([]), N = C([]), h = C(void 0), T = C({
6391
+ const l = at(), { t: i } = Kt(), a = Et(), p = ze(() => pe.isMobile), _ = C(), M = C(), D = C(), z = C(!!c.header), v = C(!1), u = C(!1), r = C(""), k = C(), d = C([]), g = C([]), N = C([]), h = C(void 0), T = C({
6399
6392
  params: [],
6400
6393
  query: {
6401
6394
  page: 1,
@@ -6564,7 +6557,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6564
6557
  "POST",
6565
6558
  "fnNotification",
6566
6559
  U
6567
- )(Y, ue, r).catch(() => null);
6560
+ )(Y, ue, a).catch(() => null);
6568
6561
  } catch (de) {
6569
6562
  ne(de);
6570
6563
  }
@@ -6601,7 +6594,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6601
6594
  "POST",
6602
6595
  "fnNotification",
6603
6596
  K
6604
- )(Y, ue, r).then((de) => {
6597
+ )(Y, ue, a).then((de) => {
6605
6598
  D.value?.link(
6606
6599
  y.optionsSource || "",
6607
6600
  void 0,
@@ -6684,7 +6677,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6684
6677
  if (H && typeof H == "string") {
6685
6678
  try {
6686
6679
  new Function("rowData", "res", H)(he, je).then((gt) => {
6687
- r.success({
6680
+ a.success({
6688
6681
  content: gt,
6689
6682
  duration: 3e3
6690
6683
  }), ce();
@@ -6698,19 +6691,19 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6698
6691
  }
6699
6692
  if (H && typeof H == "function") {
6700
6693
  H(he, je, () => {
6701
- r.success({
6694
+ a.success({
6702
6695
  content: () => i("Notice.success"),
6703
6696
  duration: 3e3
6704
6697
  }), ce();
6705
6698
  });
6706
6699
  return;
6707
6700
  }
6708
- r.success({
6701
+ a.success({
6709
6702
  content: () => i("Notice.success"),
6710
6703
  duration: 3e3
6711
6704
  }), ce();
6712
6705
  }).catch(() => {
6713
- r.error({
6706
+ a.error({
6714
6707
  content: () => i("Notice.failed"),
6715
6708
  duration: 3e3
6716
6709
  }), ce();
@@ -6820,14 +6813,14 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6820
6813
  Y(Y);
6821
6814
  });
6822
6815
  }, Va = () => {
6823
- a.value = "", I.value = [], O.value = [], B.value = [], j.value = {
6816
+ r.value = "", I.value = [], O.value = [], B.value = [], j.value = {
6824
6817
  fetch: null,
6825
6818
  when_drawer_open: "",
6826
6819
  when_before_save: ""
6827
6820
  }, S.value = Ae();
6828
6821
  }, Fa = (y) => {
6829
6822
  const U = Ie.parse(y.viewJson);
6830
- a.value = y.tableTitle, I.value = Ge(U.table), O.value = ot(e.actions || U.action);
6823
+ r.value = y.tableTitle, I.value = Ge(U.table), O.value = ot(e.actions || U.action);
6831
6824
  const K = ot(U.suffix || []);
6832
6825
  B.value = K.map((H) => (Ia(H), H)), j.value = pa(U.trigger);
6833
6826
  const Z = Ae(e.options ?? U.option);
@@ -6873,7 +6866,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6873
6866
  if (U && typeof U == "string") {
6874
6867
  try {
6875
6868
  const K = new Function("POST", "fnNotification", U);
6876
- await K(ue, r, K), ce();
6869
+ await K(ue, a, K), ce();
6877
6870
  } catch (K) {
6878
6871
  ne(K);
6879
6872
  }
@@ -6889,20 +6882,20 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6889
6882
  right: 0
6890
6883
  });
6891
6884
  });
6892
- }), se(
6885
+ }), le(
6893
6886
  () => g.value,
6894
6887
  () => {
6895
6888
  Da();
6896
6889
  },
6897
6890
  { deep: !0 }
6898
- ), se(
6891
+ ), le(
6899
6892
  () => e.height,
6900
6893
  () => {
6901
6894
  dn();
6902
6895
  }
6903
- ), se([() => l.params.id, () => e.id], async () => {
6896
+ ), le([() => l.params.id, () => e.id], async () => {
6904
6897
  kt(), await Ze();
6905
- }), se(
6898
+ }), le(
6906
6899
  () => e.defaultCheckedRowKeys,
6907
6900
  (y) => {
6908
6901
  const U = y || [], K = ie.value.filter(
@@ -6925,7 +6918,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6925
6918
  searchData: L,
6926
6919
  baseColumns: g,
6927
6920
  isSlotHeader: z,
6928
- title: a,
6921
+ title: r,
6929
6922
  dynamicLoading: u,
6930
6923
  spinMsg: A,
6931
6924
  tableScrollX: h,
@@ -6959,7 +6952,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
6959
6952
  class: "uz-transform-fade-in"
6960
6953
  }, z1 = { class: "uz-com-title" };
6961
6954
  function N1(e, t, n, c, l, i) {
6962
- const r = $("NSkeleton"), p = $("NButton"), _ = $("Plus"), M = $("NIcon"), D = $("UzActionButton"), z = $("UzSearchMobileBar"), v = $("UzTableMobile"), u = $("Filter"), a = $("NCheckbox"), k = $("GridDots"), d = $("Draggable"), g = $("NPopover"), N = $("UzSearchBar"), h = $("NDataTable"), T = $("NSpin"), L = $("UzTableDrawer");
6955
+ const a = $("NSkeleton"), p = $("NButton"), _ = $("Plus"), M = $("NIcon"), D = $("UzActionButton"), z = $("UzSearchMobileBar"), v = $("UzTableMobile"), u = $("Filter"), r = $("NCheckbox"), k = $("GridDots"), d = $("Draggable"), g = $("NPopover"), N = $("UzSearchBar"), h = $("NDataTable"), T = $("NSpin"), L = $("UzTableDrawer");
6963
6956
  return s(), f("div", {
6964
6957
  class: "uz-table",
6965
6958
  style: ve({
@@ -6968,38 +6961,38 @@ function N1(e, t, n, c, l, i) {
6968
6961
  }, [
6969
6962
  Le(o("div", b1, [
6970
6963
  o("div", x1, [
6971
- x(r, {
6964
+ x(a, {
6972
6965
  width: 120,
6973
6966
  size: "medium"
6974
6967
  }),
6975
6968
  o("div", $1, [
6976
- x(r, {
6969
+ x(a, {
6977
6970
  width: 180,
6978
6971
  size: "medium"
6979
6972
  }),
6980
- x(r, {
6973
+ x(a, {
6981
6974
  width: 180,
6982
6975
  size: "medium"
6983
6976
  }),
6984
- x(r, {
6977
+ x(a, {
6985
6978
  width: 46,
6986
6979
  size: "medium"
6987
6980
  }),
6988
- x(r, {
6981
+ x(a, {
6989
6982
  width: 46,
6990
6983
  size: "medium"
6991
6984
  }),
6992
- x(r, {
6985
+ x(a, {
6993
6986
  width: 46,
6994
6987
  size: "medium"
6995
6988
  }),
6996
- x(r, {
6989
+ x(a, {
6997
6990
  width: 46,
6998
6991
  size: "medium"
6999
6992
  })
7000
6993
  ])
7001
6994
  ]),
7002
- x(r, {
6995
+ x(a, {
7003
6996
  class: "uz-flex-1",
7004
6997
  width: "100%",
7005
6998
  size: "medium"
@@ -7146,7 +7139,7 @@ function N1(e, t, n, c, l, i) {
7146
7139
  key: X.key,
7147
7140
  class: "uz-table-sort"
7148
7141
  }, [
7149
- x(a, {
7142
+ x(r, {
7150
7143
  checked: X.show,
7151
7144
  "on-update:checked": () => e.showChange(X),
7152
7145
  size: "large"
@@ -7275,7 +7268,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7275
7268
  },
7276
7269
  emits: ["update:value"],
7277
7270
  setup(e, { emit: t, expose: n }) {
7278
- const c = Ne("emitSuffix"), l = Ne("modules"), i = Ne("mainFormValue"), { t: r } = Kt(), p = C(), _ = C(), M = C(), D = C(!1), z = C(!0), v = C([]), u = C({ child: [] }), a = C(""), k = C({}), d = C(void 0), g = async (B) => {
7271
+ const c = Ne("emitSuffix"), l = Ne("modules"), i = Ne("mainFormValue"), { t: a } = Kt(), p = C(), _ = C(), M = C(), D = C(!1), z = C(!0), v = C([]), u = C({ child: [] }), r = C(""), k = C({}), d = C(void 0), g = async (B) => {
7279
7272
  const { formDefaultValue: j, fillingDefaultArray: S } = await pt(
7280
7273
  e.item.params.columns,
7281
7274
  B
@@ -7354,7 +7347,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7354
7347
  }
7355
7348
  }), A = A + 40), e.status !== 2 && e.item.params.showActions) {
7356
7349
  const J = {
7357
- title: () => r("Common.action"),
7350
+ title: () => a("Common.action"),
7358
7351
  key: "action",
7359
7352
  align: "center",
7360
7353
  fixed: "right",
@@ -7406,11 +7399,11 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7406
7399
  }
7407
7400
  return [];
7408
7401
  }, X = async () => {
7409
- a.value = "", u.value.child.push(G(k.value)), ye(() => {
7402
+ r.value = "", u.value.child.push(G(k.value)), ye(() => {
7410
7403
  O();
7411
7404
  });
7412
7405
  }, F = async () => {
7413
- a.value = "";
7406
+ r.value = "";
7414
7407
  try {
7415
7408
  const B = e.item.params.options;
7416
7409
  if (B) {
@@ -7442,16 +7435,16 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7442
7435
  }
7443
7436
  }, b = () => {
7444
7437
  M.value?.restoreValidation();
7445
- }, I = () => (a.value = "", new Promise((B, j) => {
7438
+ }, I = () => (r.value = "", new Promise((B, j) => {
7446
7439
  const S = u.value.child.filter(
7447
7440
  (A) => !A.delete
7448
7441
  ).length;
7449
7442
  if (e.item.form.rule.required && S === 0) {
7450
- a.value = e.item.form.rule.message, j();
7443
+ r.value = e.item.form.rule.message, j();
7451
7444
  return;
7452
7445
  }
7453
7446
  M.value?.validate((A) => {
7454
- A ? (a.value = e.item.form.rule.message, j()) : B();
7447
+ A ? (r.value = e.item.form.rule.message, j()) : B();
7455
7448
  });
7456
7449
  })), O = () => {
7457
7450
  if (e.item.params.draggable && e.status !== 2 && p.value && !_.value) {
@@ -7479,19 +7472,19 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7479
7472
  };
7480
7473
  return Ut(() => {
7481
7474
  _.value?.destroy(), _.value = null;
7482
- }), n({ validate: I, restoreValidation: b }), se(
7475
+ }), n({ validate: I, restoreValidation: b }), le(
7483
7476
  () => e.item.params.columns,
7484
7477
  (B, j) => {
7485
7478
  JSON.stringify(B) !== JSON.stringify(j) && T(B);
7486
7479
  },
7487
7480
  { deep: !0, immediate: !0 }
7488
- ), se(
7481
+ ), le(
7489
7482
  () => e.value,
7490
7483
  (B) => {
7491
7484
  JSON.stringify(B) !== JSON.stringify(u.value.child) && N(B);
7492
7485
  },
7493
7486
  { deep: !0, immediate: !0 }
7494
- ), se(
7487
+ ), le(
7495
7488
  () => u.value.child,
7496
7489
  (B) => {
7497
7490
  e.status !== 2 && t("update:value", B);
@@ -7504,7 +7497,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7504
7497
  columns: v,
7505
7498
  tableData: u,
7506
7499
  summaryData: L,
7507
- message: a,
7500
+ message: r,
7508
7501
  tableScrollX: d,
7509
7502
  tableShow: z,
7510
7503
  onAdd: X,
@@ -7517,7 +7510,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
7517
7510
  class: "uz-table-asterisk"
7518
7511
  }, I1 = { class: "uz-flex uz-gap-2" }, U1 = { class: "uz-flex uz-justify-end uz-gap-2" };
7519
7512
  function j1(e, t, n, c, l, i) {
7520
- const r = $("Plus"), p = $("NIcon"), _ = $("NButton"), M = $("NDataTable"), D = $("NForm");
7513
+ const a = $("Plus"), p = $("NIcon"), _ = $("NButton"), M = $("NDataTable"), D = $("NForm");
7521
7514
  return s(), f("div", T1, [
7522
7515
  o("div", B1, [
7523
7516
  o("div", V1, [
@@ -7534,7 +7527,7 @@ function j1(e, t, n, c, l, i) {
7534
7527
  icon: m(() => [
7535
7528
  x(p, null, {
7536
7529
  default: m(() => [
7537
- x(r)
7530
+ x(a)
7538
7531
  ]),
7539
7532
  _: 1
7540
7533
  })
@@ -7553,7 +7546,7 @@ function j1(e, t, n, c, l, i) {
7553
7546
  icon: m(() => [
7554
7547
  x(p, null, {
7555
7548
  default: m(() => [
7556
- x(r)
7549
+ x(a)
7557
7550
  ]),
7558
7551
  _: 1
7559
7552
  })
@@ -7598,7 +7591,7 @@ function j1(e, t, n, c, l, i) {
7598
7591
  icon: m(() => [
7599
7592
  x(p, null, {
7600
7593
  default: m(() => [
7601
- x(r)
7594
+ x(a)
7602
7595
  ]),
7603
7596
  _: 1
7604
7597
  })
@@ -7617,7 +7610,7 @@ function j1(e, t, n, c, l, i) {
7617
7610
  icon: m(() => [
7618
7611
  x(p, null, {
7619
7612
  default: m(() => [
7620
- x(r)
7613
+ x(a)
7621
7614
  ]),
7622
7615
  _: 1
7623
7616
  })
@@ -7647,26 +7640,26 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
7647
7640
  },
7648
7641
  emits: ["update:value"],
7649
7642
  setup(e) {
7650
- const t = Ne("modules"), { t: n } = Kt(), c = C(), l = C(!1), i = C([]), r = C([]), p = C(void 0), _ = (z) => {
7643
+ const t = Ne("modules"), { t: n } = Kt(), c = C(), l = C(!1), i = C([]), a = C([]), p = C(void 0), _ = (z) => {
7651
7644
  if (l.value = !0, e.item.params.link) {
7652
7645
  const v = [];
7653
7646
  e.item.params.columns.forEach((u) => {
7654
7647
  (u.input === "cascader" || u.input === "select") && u.params.multiple && v.push(u.key);
7655
7648
  }), z && z.forEach((u) => {
7656
- v.forEach((a) => {
7657
- u[a] && typeof u[a] == "string" && (u[a] = JSON.parse(u[a]));
7649
+ v.forEach((r) => {
7650
+ u[r] && typeof u[r] == "string" && (u[r] = JSON.parse(u[r]));
7658
7651
  });
7659
- }), r.value = z, l.value = !1;
7652
+ }), a.value = z, l.value = !1;
7660
7653
  }
7661
7654
  }, M = async (z) => {
7662
7655
  const { tableColumns: v, tableWidth: u } = await ft(
7663
7656
  G(e.item.params.columns),
7664
7657
  !0,
7665
7658
  2,
7666
- () => r.value,
7659
+ () => a.value,
7667
7660
  t
7668
7661
  );
7669
- let a = u;
7662
+ let r = u;
7670
7663
  v.unshift({
7671
7664
  title: " ",
7672
7665
  key: "index",
@@ -7678,7 +7671,7 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
7678
7671
  // render(_: ObjectKey, rowIndex: number) {
7679
7672
  // return h('span', {}, { default: () => rowIndex + 1 })
7680
7673
  // }
7681
- }), a = a + 60;
7674
+ }), r = r + 60;
7682
7675
  const k = {
7683
7676
  title: () => n("Common.action"),
7684
7677
  key: "action",
@@ -7714,7 +7707,7 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
7714
7707
  const d = [];
7715
7708
  v.forEach((g) => {
7716
7709
  g.show && d.push(g);
7717
- }), i.value = d, a = a + 180, p.value = a;
7710
+ }), i.value = d, r = r + 180, p.value = r;
7718
7711
  }, D = (z) => {
7719
7712
  if (e.item.params.summary) {
7720
7713
  if (typeof e.item.params.summary == "function")
@@ -7753,20 +7746,20 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
7753
7746
  drawerRef: c,
7754
7747
  loading: l,
7755
7748
  columns: i,
7756
- normalData: r,
7749
+ normalData: a,
7757
7750
  summaryData: D,
7758
7751
  tableScrollX: p
7759
7752
  };
7760
7753
  }
7761
7754
  }), R1 = { class: "uz-flex-1 uz-w-full" }, P1 = { class: "uz-flex uz-justify-between" }, H1 = { class: "uz-com-title" };
7762
7755
  function E1(e, t, n, c, l, i) {
7763
- const r = $("NDataTable"), p = $("UzTableDrawer");
7756
+ const a = $("NDataTable"), p = $("UzTableDrawer");
7764
7757
  return s(), f("div", R1, [
7765
7758
  o("div", P1, [
7766
7759
  o("div", H1, E(e.item.label), 1)
7767
7760
  ]),
7768
7761
  t[0] || (t[0] = o("div", { class: "uz-br" }, null, -1)),
7769
- x(r, {
7762
+ x(a, {
7770
7763
  columns: e.columns,
7771
7764
  data: e.normalData,
7772
7765
  pagination: !1,
@@ -7792,7 +7785,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7792
7785
  },
7793
7786
  emits: ["update:show", "on-submit"],
7794
7787
  setup(e, { emit: t, expose: n }) {
7795
- const c = ze(() => pe.isMobile), l = C(), i = C(0), r = C({}), p = C({
7788
+ const c = ze(() => pe.isMobile), l = C(), i = C(0), a = C({}), p = C({
7796
7789
  link: "",
7797
7790
  linkFn: ""
7798
7791
  }), _ = C(!1), M = C({
@@ -7811,12 +7804,12 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7811
7804
  drawerHeight: "96vh",
7812
7805
  placement: "right",
7813
7806
  summary: ""
7814
- }), D = C(!1), z = C(!1), v = C(!1), u = C(""), a = C(0), k = C(), d = C({
7807
+ }), D = C(!1), z = C(!1), v = C(!1), u = C(""), r = C(0), k = C(), d = C({
7815
7808
  fetch: null,
7816
7809
  when_drawer_open: "",
7817
7810
  when_before_save: ""
7818
7811
  }), g = C(!1), N = C(), h = () => {
7819
- l.value?.restoreValidation(), r.value = {}, z.value = !1, D.value = !1, _.value = !1, t("update:show", !1);
7812
+ l.value?.restoreValidation(), a.value = {}, z.value = !1, D.value = !1, _.value = !1, t("update:show", !1);
7820
7813
  }, T = () => {
7821
7814
  i.value !== 2 ? $f.info({
7822
7815
  title: "提示",
@@ -7833,7 +7826,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7833
7826
  if (B && typeof B == "string")
7834
7827
  try {
7835
7828
  new Function("formValues", "POST", B)(O, ue).then((S) => {
7836
- r.value = S;
7829
+ a.value = S;
7837
7830
  }).catch((S) => {
7838
7831
  ne(S);
7839
7832
  });
@@ -7841,10 +7834,10 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7841
7834
  ne(j);
7842
7835
  }
7843
7836
  else
7844
- r.value = O;
7837
+ a.value = O;
7845
7838
  }, X = async (O, B, j, S = 0, A) => {
7846
7839
  v.value = !0, i.value = S, M.value = B, d.value = j, _.value = !0, O().then(({ form: P, data: J }) => {
7847
- k.value = P, r.value = J, N.value = A, v.value = !1;
7840
+ k.value = P, a.value = J, N.value = A, v.value = !1;
7848
7841
  }).catch(() => null);
7849
7842
  }, F = (O, B, j, S = 0) => {
7850
7843
  if (i.value = S, N.value = null, v.value = !0, _.value = !0, O) {
@@ -7867,15 +7860,15 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7867
7860
  });
7868
7861
  }
7869
7862
  }, b = () => {
7870
- a.value = 0, z.value = !0, l.value?.validate().then(async (O) => {
7863
+ r.value = 0, z.value = !0, l.value?.validate().then(async (O) => {
7871
7864
  if (d.value.when_before_save) {
7872
7865
  const B = d.value.when_before_save, j = new Function("data", "POST", B);
7873
7866
  try {
7874
7867
  O = await j(O, ue).catch((S) => {
7875
- a.value = 1, u.value = S.message;
7868
+ r.value = 1, u.value = S.message;
7876
7869
  });
7877
7870
  } catch (S) {
7878
- a.value = 1, u.value = S.message;
7871
+ r.value = 1, u.value = S.message;
7879
7872
  return;
7880
7873
  }
7881
7874
  }
@@ -7886,7 +7879,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7886
7879
  h();
7887
7880
  },
7888
7881
  (B) => {
7889
- a.value = 1, u.value = B;
7882
+ r.value = 1, u.value = B;
7890
7883
  }
7891
7884
  );
7892
7885
  return;
@@ -7914,7 +7907,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7914
7907
  z.value = !1, t("on-submit", A), h();
7915
7908
  });
7916
7909
  }).catch((j) => {
7917
- a.value = 1, u.value = j;
7910
+ r.value = 1, u.value = j;
7918
7911
  });
7919
7912
  }
7920
7913
  }).catch(() => {
@@ -7929,9 +7922,9 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7929
7922
  spinShow: z,
7930
7923
  spinMsg: u,
7931
7924
  skeletonShow: v,
7932
- spinStatus: a,
7925
+ spinStatus: r,
7933
7926
  formData: k,
7934
- formValues: r,
7927
+ formValues: a,
7935
7928
  spinError: g,
7936
7929
  isMobile: c,
7937
7930
  formStatus: i,
@@ -7945,7 +7938,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
7945
7938
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7946
7939
  }, G1 = { class: "uz-flex uz-gap-2" };
7947
7940
  function Q1(e, t, n, c, l, i) {
7948
- const r = $("NSkeleton"), p = $("UzForm"), _ = $("UzSpin"), M = $("NSpin"), D = $("NButton"), z = $("NDrawerContent"), v = $("NDrawer");
7941
+ const a = $("NSkeleton"), p = $("UzForm"), _ = $("UzSpin"), M = $("NSpin"), D = $("NButton"), z = $("NDrawerContent"), v = $("NDrawer");
7949
7942
  return s(), V(v, {
7950
7943
  show: e.drawer,
7951
7944
  "onUpdate:show": t[1] || (t[1] = (u) => e.drawer = u),
@@ -7978,43 +7971,43 @@ function Q1(e, t, n, c, l, i) {
7978
7971
  default: m(() => [
7979
7972
  o("div", K1, [
7980
7973
  e.skeletonShow ? (s(), f("div", W1, [
7981
- x(r, {
7974
+ x(a, {
7982
7975
  size: "large",
7983
7976
  style: { height: "156px" }
7984
7977
  }),
7985
- x(r, {
7978
+ x(a, {
7986
7979
  size: "large",
7987
7980
  style: { height: "156px" }
7988
7981
  }),
7989
- x(r, {
7982
+ x(a, {
7990
7983
  size: "large",
7991
7984
  style: { height: "156px" }
7992
7985
  }),
7993
- x(r, {
7986
+ x(a, {
7994
7987
  size: "large",
7995
7988
  style: { height: "156px" }
7996
7989
  }),
7997
- x(r, {
7990
+ x(a, {
7998
7991
  size: "large",
7999
7992
  style: { height: "156px" }
8000
7993
  }),
8001
- x(r, {
7994
+ x(a, {
8002
7995
  size: "large",
8003
7996
  style: { height: "156px" }
8004
7997
  }),
8005
- x(r, {
7998
+ x(a, {
8006
7999
  size: "large",
8007
8000
  style: { height: "156px" }
8008
8001
  }),
8009
- x(r, {
8002
+ x(a, {
8010
8003
  size: "large",
8011
8004
  style: { height: "156px" }
8012
8005
  }),
8013
- x(r, {
8006
+ x(a, {
8014
8007
  size: "large",
8015
8008
  style: { height: "156px" }
8016
8009
  }),
8017
- x(r, {
8010
+ x(a, {
8018
8011
  size: "large",
8019
8012
  style: { height: "156px" }
8020
8013
  })
@@ -8085,36 +8078,36 @@ const J1 = /* @__PURE__ */ w(L1, [["render", Q1]]), X1 = oe({
8085
8078
  };
8086
8079
  function e0(e, t, n, c, l, i) {
8087
8080
  return s(), f("div", Y1, [
8088
- (s(!0), f(le, null, ke(e.tableColumns, (r) => (s(), f("div", {
8089
- key: r.key,
8090
- class: ae(["uz-flex uz-overflow-hidden", r.lineBreak ? "uz-flex-col" : ""]),
8091
- style: ve(`grid-column: span ${r.lineCol || 2} / span ${r.lineCol || 2}`)
8081
+ (s(!0), f(se, null, ke(e.tableColumns, (a) => (s(), f("div", {
8082
+ key: a.key,
8083
+ class: ae(["uz-flex uz-overflow-hidden", a.lineBreak ? "uz-flex-col" : ""]),
8084
+ style: ve(`grid-column: span ${a.lineCol || 2} / span ${a.lineCol || 2}`)
8092
8085
  }, [
8093
- r.key === "action" ? (s(), f(le, { key: 0 }, [
8094
- r.render ? (s(), V(hn(
8086
+ a.key === "action" ? (s(), f(se, { key: 0 }, [
8087
+ a.render ? (s(), V(hn(
8095
8088
  () => {
8096
8089
  if (e.tableData)
8097
- return r.render(e.tableData, e.tableIndex);
8090
+ return a.render(e.tableData, e.tableIndex);
8098
8091
  }
8099
8092
  ), {
8100
8093
  key: 0,
8101
8094
  class: "mobile"
8102
8095
  })) : W("", !0)
8103
- ], 64)) : (s(), f(le, { key: 1 }, [
8096
+ ], 64)) : (s(), f(se, { key: 1 }, [
8104
8097
  o("div", {
8105
- class: ae(["uz-table-mobile-group-title", r.lineBreak ? "line-break" : ""])
8098
+ class: ae(["uz-table-mobile-group-title", a.lineBreak ? "line-break" : ""])
8106
8099
  }, [
8107
- o("div", null, E(typeof r.title == "string" ? r.title : r.title()), 1)
8100
+ o("div", null, E(typeof a.title == "string" ? a.title : a.title()), 1)
8108
8101
  ], 2),
8109
8102
  o("div", {
8110
- class: ae(["uz-table-mobile-group-content", r.lineBreak ? "line-break" : ""])
8103
+ class: ae(["uz-table-mobile-group-content", a.lineBreak ? "line-break" : ""])
8111
8104
  }, [
8112
- r.render ? (s(), V(hn(
8105
+ a.render ? (s(), V(hn(
8113
8106
  () => {
8114
8107
  if (e.tableData)
8115
- return r.render(e.tableData, e.tableIndex);
8108
+ return a.render(e.tableData, e.tableIndex);
8116
8109
  }
8117
- ), { key: 0 })) : (s(), f("div", Z1, E(e.tableData[r.key] || "-"), 1))
8110
+ ), { key: 0 })) : (s(), f("div", Z1, E(e.tableData[a.key] || "-"), 1))
8118
8111
  ], 2)
8119
8112
  ], 64))
8120
8113
  ], 6))), 128))
@@ -8146,13 +8139,13 @@ const t0 = /* @__PURE__ */ w(X1, [["render", e0], ["__scopeId", "data-v-01b68b92
8146
8139
  rowKeys: n,
8147
8140
  checkChange: (i) => {
8148
8141
  n.value = i;
8149
- const r = e.tableData.filter((p) => i.includes(p.id));
8150
- t("update:row-keys", i, r);
8142
+ const a = e.tableData.filter((p) => i.includes(p.id));
8143
+ t("update:row-keys", i, a);
8151
8144
  },
8152
8145
  radioChange: (i) => {
8153
8146
  n.value = [i];
8154
- const r = e.tableData.find((p) => p.id === i);
8155
- t("update:row-keys", [i], [r]);
8147
+ const a = e.tableData.find((p) => p.id === i);
8148
+ t("update:row-keys", [i], [a]);
8156
8149
  }
8157
8150
  };
8158
8151
  }
@@ -8167,7 +8160,7 @@ const t0 = /* @__PURE__ */ w(X1, [["render", e0], ["__scopeId", "data-v-01b68b92
8167
8160
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
8168
8161
  };
8169
8162
  function s0(e, t, n, c, l, i) {
8170
- const r = $("UzTableMobileList"), p = $("NCheckbox"), _ = $("NPagination"), M = $("NCheckboxGroup"), D = $("NRadio"), z = $("NRadioGroup");
8163
+ const a = $("UzTableMobileList"), p = $("NCheckbox"), _ = $("NPagination"), M = $("NCheckboxGroup"), D = $("NRadio"), z = $("NRadioGroup");
8171
8164
  return e.selection === 2 ? (s(), V(M, {
8172
8165
  key: 0,
8173
8166
  value: e.rowKeys,
@@ -8182,13 +8175,13 @@ function s0(e, t, n, c, l, i) {
8182
8175
  })
8183
8176
  }, {
8184
8177
  default: m(() => [
8185
- (s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), V(p, {
8178
+ (s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), V(p, {
8186
8179
  key: v.id,
8187
8180
  class: "uz-com-card uz-flex uz-gap-2",
8188
8181
  value: v.id
8189
8182
  }, {
8190
8183
  default: m(() => [
8191
- x(r, {
8184
+ x(a, {
8192
8185
  tableData: v,
8193
8186
  tableIndex: u,
8194
8187
  tableColumns: e.tableColumns
@@ -8224,13 +8217,13 @@ function s0(e, t, n, c, l, i) {
8224
8217
  })
8225
8218
  }, {
8226
8219
  default: m(() => [
8227
- (s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), V(D, {
8220
+ (s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), V(D, {
8228
8221
  key: v.id,
8229
8222
  class: "uz-com-card uz-flex uz-gap-2",
8230
8223
  value: v.id
8231
8224
  }, {
8232
8225
  default: m(() => [
8233
- x(r, {
8226
+ x(a, {
8234
8227
  tableData: v,
8235
8228
  tableIndex: u,
8236
8229
  tableColumns: e.tableColumns
@@ -8260,11 +8253,11 @@ function s0(e, t, n, c, l, i) {
8260
8253
  maxHeight: e.maxH
8261
8254
  })
8262
8255
  }, [
8263
- (s(!0), f(le, null, ke(e.tableData, (v, u) => (s(), f("div", {
8256
+ (s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), f("div", {
8264
8257
  key: v.id,
8265
8258
  class: "uz-com-card uz-flex uz-flex-col uz-gap-2"
8266
8259
  }, [
8267
- x(r, {
8260
+ x(a, {
8268
8261
  tableData: v,
8269
8262
  tableIndex: u,
8270
8263
  tableColumns: e.tableColumns
@@ -8360,12 +8353,12 @@ const u0 = oe({
8360
8353
  ma(p);
8361
8354
  }, i = (p) => {
8362
8355
  ha(p);
8363
- }, r = () => {
8356
+ }, a = () => {
8364
8357
  wa();
8365
8358
  };
8366
8359
  return Re(() => {
8367
8360
  _n(e.option), Q.active !== c.path && Cn(c.path, c.fullPath);
8368
- }), se(
8361
+ }), le(
8369
8362
  () => c,
8370
8363
  (p) => {
8371
8364
  Q.active === c.path && Cn(p.path, p.fullPath);
@@ -8373,7 +8366,7 @@ const u0 = oe({
8373
8366
  {
8374
8367
  deep: !0
8375
8368
  }
8376
- ), se(
8369
+ ), le(
8377
8370
  () => e.option,
8378
8371
  (p) => {
8379
8372
  _n(p);
@@ -8386,12 +8379,12 @@ const u0 = oe({
8386
8379
  isSlotPrefix: n,
8387
8380
  handleClose: l,
8388
8381
  handleChange: i,
8389
- handleClear: r
8382
+ handleClear: a
8390
8383
  };
8391
8384
  }
8392
8385
  });
8393
8386
  function c0(e, t, n, c, l, i) {
8394
- const r = $("NTabPane"), p = $("Trash"), _ = $("NIcon"), M = $("NButton"), D = $("NPopconfirm"), z = $("NFlex"), v = $("NTabs");
8387
+ const a = $("NTabPane"), p = $("Trash"), _ = $("NIcon"), M = $("NButton"), D = $("NPopconfirm"), z = $("NFlex"), v = $("NTabs");
8395
8388
  return s(), V(v, {
8396
8389
  value: e.thumbnailStore.active,
8397
8390
  type: "card",
@@ -8429,7 +8422,7 @@ function c0(e, t, n, c, l, i) {
8429
8422
  })
8430
8423
  ]),
8431
8424
  default: m(() => [
8432
- (s(!0), f(le, null, ke(e.thumbnailStore.thumbnail, (u) => (s(), V(r, {
8425
+ (s(!0), f(se, null, ke(e.thumbnailStore.thumbnail, (u) => (s(), V(a, {
8433
8426
  key: u.key,
8434
8427
  name: u.key,
8435
8428
  tab: u.label,
@@ -8521,8 +8514,8 @@ const p0 = {
8521
8514
  }
8522
8515
  });
8523
8516
  function m0(e, t, n, c, l, i) {
8524
- const r = $("NConfigProvider");
8525
- return s(), V(r, {
8517
+ const a = $("NConfigProvider");
8518
+ return s(), V(a, {
8526
8519
  theme: e.commonStore.theme ? {
8527
8520
  name: "darkTheme"
8528
8521
  } : null,
@@ -8778,8 +8771,8 @@ function X0(e, t) {
8778
8771
  }];
8779
8772
  }
8780
8773
  function Y0(e, t, n) {
8781
- const c = `useQuery-${e}`, l = C(), i = C(), r = C(), p = C(!1), _ = C("idle"), M = C(), D = C(0), z = C(0), v = () => {
8782
- vn(), clearInterval(r.value), r.value = null;
8774
+ const c = `useQuery-${e}`, l = C(), i = C(), a = C(), p = C(!1), _ = C("idle"), M = C(), D = C(0), z = C(0), v = () => {
8775
+ vn(), clearInterval(a.value), a.value = null;
8783
8776
  }, u = async () => {
8784
8777
  if (!p.value) {
8785
8778
  k(!0, "loading");
@@ -8799,14 +8792,14 @@ function Y0(e, t, n) {
8799
8792
  });
8800
8793
  h = await Promise.race([T, t()]);
8801
8794
  }
8802
- k(!1, "success"), a(h), be(c, h, 0);
8795
+ k(!1, "success"), r(h), be(c, h, 0);
8803
8796
  } catch (h) {
8804
8797
  d(h), k(!1, "error"), D.value > 0 && (D.value = D.value - 1, setTimeout(() => {
8805
8798
  u();
8806
8799
  }, z.value));
8807
8800
  }
8808
8801
  }
8809
- }, a = (h) => {
8802
+ }, r = (h) => {
8810
8803
  if (h) {
8811
8804
  let T = h;
8812
8805
  n?.formatResult && (T = n.formatResult(h)), i.value = T;
@@ -8818,18 +8811,18 @@ function Y0(e, t, n) {
8818
8811
  }, g = () => {
8819
8812
  vn(), l.value && l.value();
8820
8813
  }, N = () => {
8821
- g(), u(), n?.pollingInterval && (v(), r.value = setInterval(() => {
8814
+ g(), u(), n?.pollingInterval && (v(), a.value = setInterval(() => {
8822
8815
  u();
8823
8816
  }, n?.pollingInterval));
8824
8817
  };
8825
- if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, z.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && a(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0)
8818
+ if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, z.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)
8826
8819
  try {
8827
8820
  const h = $e(c, !1);
8828
- h && a(h);
8821
+ h && r(h);
8829
8822
  } catch {
8830
- a(!1);
8823
+ r(!1);
8831
8824
  }
8832
- return n?.pollingInterval ? (u(), r.value = setInterval(() => {
8825
+ return n?.pollingInterval ? (u(), a.value = setInterval(() => {
8833
8826
  u();
8834
8827
  }, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && u(), Ut(() => {
8835
8828
  v();
@@ -8843,7 +8836,7 @@ function Y0(e, t, n) {
8843
8836
  refetch: N
8844
8837
  };
8845
8838
  }
8846
- const k0 = "0.0.75";
8839
+ const k0 = "0.0.76";
8847
8840
  let xa;
8848
8841
  async function $a() {
8849
8842
  const e = await fetch(
@@ -8866,7 +8859,7 @@ async function b0() {
8866
8859
  }
8867
8860
  let Vt = "", Ft;
8868
8861
  const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
8869
- 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]+/, i = /ANDROID [\d.]+/, r = /IPHONE/, p = /IPAD/, _ = /MAC/;
8862
+ 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]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/, _ = /MAC/;
8870
8863
  if (e.test(te)) return "Windows XP";
8871
8864
  if (t.test(te)) return "Windows 7";
8872
8865
  if (n.test(te)) return "Windows 8";
@@ -8878,7 +8871,7 @@ const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
8878
8871
  const M = i.exec(te);
8879
8872
  return `Android ${M ? M[0].split(" ")[1] : ""}`;
8880
8873
  }
8881
- if (r.test(te)) {
8874
+ if (a.test(te)) {
8882
8875
  const D = /OS [\d_]+/.exec(te);
8883
8876
  return `iPhone ${D ? D[0].split(" ")[1].replace(/_/g, ".") : ""}`;
8884
8877
  }
@@ -8892,10 +8885,10 @@ const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
8892
8885
  }
8893
8886
  return "Other Platform";
8894
8887
  }, $0 = () => {
8895
- const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, r = /SE \d/, p = /UCBROWSER/, _ = /ANDROID [\d.]+/;
8896
- if (e.test(te) && r.test(te))
8888
+ const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/, _ = /ANDROID [\d.]+/;
8889
+ if (e.test(te) && a.test(te))
8897
8890
  return "SogouIE";
8898
- if (r.test(te))
8891
+ if (a.test(te))
8899
8892
  return "SogouFast";
8900
8893
  if (p.test(te))
8901
8894
  return "UC";
@@ -8977,33 +8970,33 @@ const nt = (e, t, n) => {
8977
8970
  if (window.navigator.sendBeacon)
8978
8971
  window.navigator.sendBeacon(Vt, i);
8979
8972
  else {
8980
- const r = document.body;
8973
+ const a = document.body;
8981
8974
  let p = new Image();
8982
8975
  p.src = Vt + "?data=" + i, p.onload = p.onerror = function() {
8983
- r.removeChild(p), p = null;
8984
- }, r.append(p);
8976
+ a.removeChild(p), p = null;
8977
+ }, a.append(p);
8985
8978
  }
8986
8979
  };
8987
8980
  function M0({ components: e = [] } = {}) {
8988
8981
  const t = [];
8989
- function n(l, i, r) {
8990
- l.component(i) || l.component(i, r);
8982
+ function n(l, i, a) {
8983
+ l.component(i) || l.component(i, a);
8991
8984
  }
8992
8985
  function c(l, i) {
8993
- if (!t.includes(l) && (t.push(l), e.forEach((r) => {
8994
- const { name: p, alias: _ } = r;
8995
- n(l, p, r), _ && _.forEach((M) => {
8996
- n(l, M, r);
8986
+ if (!t.includes(l) && (t.push(l), e.forEach((a) => {
8987
+ const { name: p, alias: _ } = a;
8988
+ n(l, p, a), _ && _.forEach((M) => {
8989
+ n(l, M, a);
8997
8990
  });
8998
8991
  }), i)) {
8999
8992
  const {
9000
- monitor: r = !1,
8993
+ monitor: a = !1,
9001
8994
  monitorFn: p,
9002
8995
  version: _ = !0,
9003
8996
  language: M = !1,
9004
8997
  local: D = "zh-CN"
9005
8998
  } = i, z = $e("theme", !1), v = $e("lang", D);
9006
- If(M), ea(v), ta(z), Ce.global.locale.value = v, _ && b0(), r && C0(l, r, p);
8999
+ If(M), ea(v), ta(z), Ce.global.locale.value = v, _ && b0(), a && C0(l, a, p);
9007
9000
  }
9008
9001
  }
9009
9002
  return {