@unizhen/ui 0.1.81 → 0.1.83

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
@@ -40,7 +40,7 @@ var ct = Object.defineProperty, lt = (e, t) => {
40
40
  }
41
41
  },
42
42
  setup(e) {
43
- return () => Nf({
43
+ return () => Mf({
44
44
  buttons: e.data,
45
45
  rowData: e.rowData,
46
46
  hProps: e.hProps
@@ -2487,7 +2487,7 @@ var yd = 500, bd = 300, xd = [], Sd = /* @__PURE__ */ new WeakMap(), Cd = /* @__
2487
2487
  jd = !0;
2488
2488
  try {
2489
2489
  let a = Rd(i);
2490
- a && a.indexOf("ResizeObserver loop") === -1 && Hd(e, Ld({
2490
+ a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && Hd(e, Ld({
2491
2491
  type: n,
2492
2492
  time: Date.now(),
2493
2493
  url: zd(r) || zd(location.href),
@@ -2690,31 +2690,34 @@ var df = "/apiserver/", ff = () => {
2690
2690
  url: `${df}${e}`,
2691
2691
  method: "POST",
2692
2692
  data: t
2693
- }), _f = (e) => Q("dynamic-table/queryById", { id: e }), vf = (e) => Q("dynamic-table/createTime", { id: e }), yf = (e) => Q("table/query", e), bf = (e) => Q("table/submit", e), xf = (e) => Q("table/delete", e), Sf = (e) => Q("dataBind/query", { table_id: e }), Cf = (e) => Q("dataBind/submit", e), wf = (e, t, n) => Q("calculation/sqlExecute", {
2693
+ }), _f = (e, t) => Q("dynamic-table/createTime", {
2694
+ id: e,
2695
+ createTime: t
2696
+ }), vf = (e) => Q("table/query", e), yf = (e) => Q("table/submit", e), bf = (e) => Q("table/delete", e), xf = (e) => Q("dataBind/query", { table_id: e }), Sf = (e) => Q("dataBind/submit", e), Cf = (e, t, n) => Q("calculation/sqlExecute", {
2694
2697
  calculationIds: e,
2695
2698
  linkId: t,
2696
2699
  ...n
2697
- }), Tf = (e) => mf("excel/template", { tableKey: e }, "arraybuffer"), Ef = (e) => Q("excel/record/query", {
2700
+ }), wf = (e) => mf("excel/template", { tableKey: e }, "arraybuffer"), Tf = (e) => Q("excel/record/query", {
2698
2701
  recordType: "import",
2699
2702
  tableKey: e
2700
- }), Df = (e) => Q("excel/exportData", e), Of = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
2703
+ }), Ef = (e) => Q("excel/exportData", e), Df = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
2701
2704
  trigger: () => e,
2702
2705
  default: () => typeof t == "function" ? t() : t
2703
- }), kf = (e, t, n, r) => {
2706
+ }), Of = (e, t, n, r) => {
2704
2707
  try {
2705
2708
  Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
2706
2709
  n && n();
2707
- }, (e) => yf({
2710
+ }, (e) => vf({
2708
2711
  id: e,
2709
2712
  tableId: r
2710
- }), (e) => bf({
2713
+ }), (e) => yf({
2711
2714
  tableId: r,
2712
2715
  ...e
2713
2716
  }), rd, Q);
2714
2717
  } catch (e) {
2715
2718
  J(e);
2716
2719
  }
2717
- }, Af = (e, t, n, r, i) => {
2720
+ }, kf = (e, t, n, r, i) => {
2718
2721
  let a = {
2719
2722
  quaternary: i?.quaternary || !1,
2720
2723
  size: i?.size || "small",
@@ -2727,36 +2730,36 @@ var df = "/apiserver/", ff = () => {
2727
2730
  if (!e.confirmText) {
2728
2731
  if (e.onClick && typeof e.onClick == "string") {
2729
2732
  let i = e.onClick;
2730
- a.onClick = () => kf(i, t, n, r);
2733
+ a.onClick = () => Of(i, t, n, r);
2731
2734
  }
2732
2735
  e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
2733
2736
  }
2734
2737
  return e.icon && (o.icon = () => f(V, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
2735
- }, jf = (e, t, n, r, i) => {
2738
+ }, Af = (e, t, n, r, i) => {
2736
2739
  let a = { placement: "left" };
2737
2740
  if (typeof t.onClick == "string") {
2738
2741
  let e = t.onClick;
2739
- a["on-positive-click"] = () => kf(e, n, r, i);
2742
+ a["on-positive-click"] = () => Of(e, n, r, i);
2740
2743
  } else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
2741
2744
  return f(Te, a, {
2742
2745
  default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
2743
2746
  trigger: () => e
2744
2747
  });
2745
- }, Mf = (e, t, n, r, i) => {
2746
- let a = Af(e, t, n, r, i);
2747
- return e.confirmText && (a = jf(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Of(a, e.tooltipText)), a;
2748
- }, Nf = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
2748
+ }, jf = (e, t, n, r, i) => {
2749
+ let a = kf(e, t, n, r, i);
2750
+ return e.confirmText && (a = Af(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Df(a, e.tooltipText)), a;
2751
+ }, Mf = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
2749
2752
  let a = [];
2750
2753
  return e.forEach((e) => {
2751
2754
  if (e.type === "group") {
2752
2755
  let o = [];
2753
2756
  e.children && e.children.length > 0 && e.children.forEach((a, s) => {
2754
- o.push(Mf({
2757
+ o.push(jf({
2755
2758
  ...a,
2756
2759
  tooltipText: void 0
2757
2760
  }, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
2758
2761
  }), a.push(f(Ee, { trigger: "click" }, {
2759
- trigger: () => Af({
2762
+ trigger: () => kf({
2760
2763
  type: "normal",
2761
2764
  key: e.key,
2762
2765
  icon: e.icon,
@@ -2772,11 +2775,11 @@ var df = "/apiserver/", ff = () => {
2772
2775
  }));
2773
2776
  }
2774
2777
  if (e.type === "normal") {
2775
- let o = Mf(e, t, n, r, i);
2778
+ let o = jf(e, t, n, r, i);
2776
2779
  a.push(o);
2777
2780
  }
2778
2781
  }), f("div", { class: "uz-action-flex" }, { default: () => a });
2779
- }, Pf = (e) => {
2782
+ }, Nf = (e) => {
2780
2783
  switch (e) {
2781
2784
  case "tertiary": return 1;
2782
2785
  case "primary": return 2;
@@ -2786,7 +2789,7 @@ var df = "/apiserver/", ff = () => {
2786
2789
  case "error": return 6;
2787
2790
  default: return 0;
2788
2791
  }
2789
- }, Ff = (e) => {
2792
+ }, Pf = (e) => {
2790
2793
  switch (e) {
2791
2794
  case 1: return "tertiary";
2792
2795
  case 2: return "primary";
@@ -2796,7 +2799,7 @@ var df = "/apiserver/", ff = () => {
2796
2799
  case 6: return "error";
2797
2800
  default: return "default";
2798
2801
  }
2799
- }, If = (e) => {
2802
+ }, Ff = (e) => {
2800
2803
  switch (e) {
2801
2804
  case "detailInside": return 0;
2802
2805
  case "editInside": return 1;
@@ -2805,7 +2808,7 @@ var df = "/apiserver/", ff = () => {
2805
2808
  case "enabledInside": return 4;
2806
2809
  default: return e;
2807
2810
  }
2808
- }, Lf = (e) => {
2811
+ }, If = (e) => {
2809
2812
  switch (e) {
2810
2813
  case 0: return "detailInside";
2811
2814
  case 1: return "editInside";
@@ -2814,66 +2817,66 @@ var df = "/apiserver/", ff = () => {
2814
2817
  case 4: return "enabledInside";
2815
2818
  default: return e;
2816
2819
  }
2817
- }, Rf = (e) => ({
2820
+ }, Lf = (e) => ({
2818
2821
  t: 0,
2819
2822
  k: e.key,
2820
2823
  d: e?.disabled,
2821
2824
  l: e?.loading,
2822
2825
  i: e?.icon,
2823
- c: Pf(e?.color),
2826
+ c: Nf(e?.color),
2824
2827
  b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
2825
2828
  o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
2826
2829
  p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
2827
2830
  s: e?.optionsType,
2828
2831
  u: e?.optionsSource,
2829
- a: If(e?.action),
2832
+ a: Ff(e?.action),
2830
2833
  r: +!!e.footer,
2831
2834
  g: +!!e.main,
2832
2835
  h: +!!e.sub,
2833
2836
  w: e?.width,
2834
2837
  z: e?.onClick
2835
- }), zf = (e) => ({
2838
+ }), Rf = (e) => ({
2836
2839
  type: "normal",
2837
2840
  key: e.k,
2838
2841
  disabled: e?.d,
2839
2842
  loading: e?.l,
2840
2843
  icon: e?.i,
2841
- color: Ff(e?.c),
2844
+ color: Pf(e?.c),
2842
2845
  buttonText: e?.b ? decodeURIComponent(e?.b) : "",
2843
2846
  confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
2844
2847
  tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
2845
2848
  optionsType: e?.s,
2846
2849
  optionsSource: e?.u,
2847
- action: Lf(e?.a),
2850
+ action: If(e?.a),
2848
2851
  footer: !!e.r,
2849
2852
  sub: !!e.h,
2850
2853
  main: !!e.g,
2851
2854
  width: e?.w,
2852
2855
  onClick: e?.z
2853
- }), Bf = (e) => {
2856
+ }), zf = (e) => {
2854
2857
  let t = [];
2855
- for (let n of e) n.type === "normal" && t.push(Rf(n)), n.type === "group" && t.push({
2858
+ for (let n of e) n.type === "normal" && t.push(Lf(n)), n.type === "group" && t.push({
2856
2859
  t: 1,
2857
2860
  k: n.key,
2858
2861
  i: n?.icon,
2859
- x: Pf(n?.color),
2862
+ x: Nf(n?.color),
2860
2863
  b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
2861
- c: n.children.map((e) => Rf(e))
2864
+ c: n.children.map((e) => Lf(e))
2862
2865
  });
2863
2866
  return t;
2864
- }, Vf = (e) => {
2867
+ }, Bf = (e) => {
2865
2868
  if (e && e[0] && e[0].type) return e;
2866
2869
  let t = [];
2867
- for (let n of e) n.t === 0 && t.push(zf(n)), n.t === 1 && t.push({
2870
+ for (let n of e) n.t === 0 && t.push(Rf(n)), n.t === 1 && t.push({
2868
2871
  type: "group",
2869
2872
  key: n.k,
2870
2873
  icon: n?.i,
2871
- color: Ff(n?.x),
2874
+ color: Pf(n?.x),
2872
2875
  buttonText: n?.b ? decodeURIComponent(n?.b) : "",
2873
- children: n.c.map((e) => zf(e))
2876
+ children: n.c.map((e) => Rf(e))
2874
2877
  });
2875
2878
  return t;
2876
- }, Hf = d({
2879
+ }, Vf = d({
2877
2880
  name: "UzBack",
2878
2881
  components: {
2879
2882
  ArrowNarrowLeft: an,
@@ -2899,7 +2902,7 @@ var df = "/apiserver/", ff = () => {
2899
2902
  });
2900
2903
  //#endregion
2901
2904
  //#region components/back/index.vue
2902
- function Uf(e, t, r, i, o, s) {
2905
+ function Hf(e, t, r, i, o, s) {
2903
2906
  let c = D("ArrowNarrowLeft"), u = D("NIcon"), d = D("NButton");
2904
2907
  return x(), n(d, {
2905
2908
  quaternary: "",
@@ -2913,7 +2916,7 @@ function Uf(e, t, r, i, o, s) {
2913
2916
  _: 1
2914
2917
  }, 8, ["onClick"]);
2915
2918
  }
2916
- var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2, Jf = (Gf - 6 - Kf) / 2, Yf = Jf * 2 * Math.PI, Xf = Jf * 1.5 * Math.PI, Zf = `${Xf} ${Yf}`, Qf = `translate(${qf}, 69)`, $f = `translate(${qf}, 84)`, ep = (e) => {
2919
+ var Uf = /*#__PURE__*/ W(Vf, [["render", Hf]]), Wf = 120, Gf = 10, Kf = Wf / 2, qf = (Wf - 6 - Gf) / 2, Jf = qf * 2 * Math.PI, Yf = qf * 1.5 * Math.PI, Xf = `${Yf} ${Jf}`, Zf = `translate(${Kf}, 69)`, Qf = `translate(${Kf}, 84)`, $f = (e) => {
2917
2920
  if (!e) return "";
2918
2921
  let t = e.toLowerCase();
2919
2922
  if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
@@ -2927,7 +2930,7 @@ var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2,
2927
2930
  return e.join(",");
2928
2931
  }
2929
2932
  return "0,0,0";
2930
- }, tp = d({
2933
+ }, ep = d({
2931
2934
  name: "UzCircle",
2932
2935
  props: {
2933
2936
  circle: {
@@ -2953,30 +2956,30 @@ var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2,
2953
2956
  return {
2954
2957
  uniqueId: n,
2955
2958
  blurFilterId: `uz-blurs-${n}`,
2956
- backgroundBg: t(() => `rgba(${ep(e.color)},0.1)`),
2957
- strokeDasharray: Zf,
2958
- centerTransform: Qf,
2959
- centerTransformUnit: $f,
2960
- colorA: t(() => `rgba(${ep(e.color).split(",").map((e) => {
2959
+ backgroundBg: t(() => `rgba(${$f(e.color)},0.1)`),
2960
+ strokeDasharray: Xf,
2961
+ centerTransform: Zf,
2962
+ centerTransformUnit: Qf,
2963
+ colorA: t(() => `rgba(${$f(e.color).split(",").map((e) => {
2961
2964
  let t = Number(e) - 50;
2962
2965
  return t < 0 && (t = 0), t;
2963
2966
  })},1)`),
2964
- colorB: t(() => `rgba(${ep(e.color)},1)`),
2967
+ colorB: t(() => `rgba(${$f(e.color)},1)`),
2965
2968
  calculateCircle: () => {
2966
2969
  let t = 314 - Number(e.circle) * Math.PI;
2967
2970
  return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
2968
2971
  },
2969
2972
  calculateSemicircle: (t) => {
2970
2973
  let n = t ?? Number(e.circle);
2971
- return n > 100 && (n = 100), n <= 0 && (n = 1e-4), Xf * (1 - n / 100);
2974
+ return n > 100 && (n = 100), n <= 0 && (n = 1e-4), Yf * (1 - n / 100);
2972
2975
  },
2973
2976
  calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
2974
2977
  };
2975
2978
  }
2976
- }), np = { class: "uz-circle" }, rp = {
2979
+ }), tp = { class: "uz-circle" }, np = {
2977
2980
  key: 0,
2978
2981
  viewBox: "40 20 120 120"
2979
- }, ip = ["id"], ap = ["stop-color"], op = ["stop-color"], sp = ["id"], cp = ["stroke"], lp = ["filter", "stroke"], up = ["filter", "transform"], dp = {
2982
+ }, rp = ["id"], ip = ["stop-color"], ap = ["stop-color"], op = ["id"], sp = ["stroke"], cp = ["filter", "stroke"], lp = ["filter", "transform"], up = {
2980
2983
  dx: "100",
2981
2984
  dy: "90",
2982
2985
  "text-anchor": "middle",
@@ -2985,7 +2988,7 @@ var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2,
2985
2988
  "font-size": "2rem",
2986
2989
  "font-weight": "400"
2987
2990
  }
2988
- }, fp = {
2991
+ }, dp = {
2989
2992
  dx: "100",
2990
2993
  dy: "105",
2991
2994
  "text-anchor": "middle",
@@ -2994,20 +2997,20 @@ var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2,
2994
2997
  "font-size": "0.6rem",
2995
2998
  "font-weight": "400"
2996
2999
  }
2997
- }, pp = {
3000
+ }, fp = {
2998
3001
  key: 1,
2999
3002
  viewBox: "0 0 120 120"
3000
- }, mp = ["id"], hp = ["stop-color"], gp = ["stop-color"], _p = ["id"], vp = [
3003
+ }, pp = ["id"], mp = ["stop-color"], hp = ["stop-color"], gp = ["id"], _p = [
3001
3004
  "stroke-dasharray",
3002
3005
  "stroke-dashoffset",
3003
3006
  "transform"
3004
- ], yp = ["filter", "stroke"], bp = [
3007
+ ], vp = ["filter", "stroke"], yp = [
3005
3008
  "stroke-dasharray",
3006
3009
  "stroke-dashoffset",
3007
3010
  "transform"
3008
- ], xp = ["stroke"], Sp = ["transform"], Cp = ["transform"];
3009
- function wp(e, t, n, r, o, s) {
3010
- return x(), i("div", np, [e.mode === 0 ? (x(), i("svg", rp, [
3011
+ ], bp = ["stroke"], xp = ["transform"], Sp = ["transform"];
3012
+ function Cp(e, t, n, r, o, s) {
3013
+ return x(), i("div", tp, [e.mode === 0 ? (x(), i("svg", np, [
3011
3014
  a("defs", null, [a("linearGradient", {
3012
3015
  id: `uz-progress-grad-${e.uniqueId}`,
3013
3016
  x1: "1",
@@ -3017,10 +3020,10 @@ function wp(e, t, n, r, o, s) {
3017
3020
  }, [a("stop", {
3018
3021
  offset: "0%",
3019
3022
  "stop-color": e.colorA
3020
- }, null, 8, ap), a("stop", {
3023
+ }, null, 8, ip), a("stop", {
3021
3024
  offset: "50%",
3022
3025
  "stop-color": e.colorB
3023
- }, null, 8, op)], 8, ip), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
3026
+ }, null, 8, ap)], 8, rp), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
3024
3027
  a("feOffset", {
3025
3028
  result: "offOut",
3026
3029
  in: "SourceGraphic",
@@ -3037,7 +3040,7 @@ function wp(e, t, n, r, o, s) {
3037
3040
  in2: "blurOut",
3038
3041
  mode: "normal"
3039
3042
  }, null, -1)
3040
- ]], 8, sp)]),
3043
+ ]], 8, op)]),
3041
3044
  a("circle", {
3042
3045
  transform: "rotate(-90 100 80)",
3043
3046
  cx: "100",
@@ -3047,7 +3050,7 @@ function wp(e, t, n, r, o, s) {
3047
3050
  "stroke-width": "10",
3048
3051
  "stroke-dashoffset": "0",
3049
3052
  stroke: e.backgroundBg
3050
- }, null, 8, cp),
3053
+ }, null, 8, sp),
3051
3054
  a("circle", {
3052
3055
  class: "uz-circle-round",
3053
3056
  filter: `url(#${e.blurFilterId})`,
@@ -3060,7 +3063,7 @@ function wp(e, t, n, r, o, s) {
3060
3063
  "stroke-width": "10",
3061
3064
  style: _(e.calculateCircle()),
3062
3065
  stroke: `url(#uz-progress-grad-${e.uniqueId})`
3063
- }, null, 12, lp),
3066
+ }, null, 12, cp),
3064
3067
  a("circle", {
3065
3068
  class: "uz-circle-round",
3066
3069
  filter: `url(#${e.blurFilterId})`,
@@ -3070,10 +3073,10 @@ function wp(e, t, n, r, o, s) {
3070
3073
  "stroke-width": "0",
3071
3074
  transform: e.calculatePoint(),
3072
3075
  fill: "#fff"
3073
- }, null, 8, up),
3074
- a("text", dp, A(e.circle), 1),
3075
- a("text", fp, A(e.circleUnit), 1)
3076
- ])) : (x(), i("svg", pp, [
3076
+ }, null, 8, lp),
3077
+ a("text", up, A(e.circle), 1),
3078
+ a("text", dp, A(e.circleUnit), 1)
3079
+ ])) : (x(), i("svg", fp, [
3077
3080
  a("defs", null, [a("linearGradient", {
3078
3081
  id: `uz-progress-grad-1-${e.uniqueId}`,
3079
3082
  x1: "1",
@@ -3083,10 +3086,10 @@ function wp(e, t, n, r, o, s) {
3083
3086
  }, [a("stop", {
3084
3087
  offset: "0%",
3085
3088
  "stop-color": e.colorA
3086
- }, null, 8, hp), a("stop", {
3089
+ }, null, 8, mp), a("stop", {
3087
3090
  offset: "50%",
3088
3091
  "stop-color": e.colorB
3089
- }, null, 8, gp)], 8, mp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
3092
+ }, null, 8, hp)], 8, pp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
3090
3093
  a("feOffset", {
3091
3094
  result: "offOut",
3092
3095
  in: "SourceGraphic",
@@ -3103,7 +3106,7 @@ function wp(e, t, n, r, o, s) {
3103
3106
  in2: "blurOut",
3104
3107
  mode: "normal"
3105
3108
  }, null, -1)
3106
- ]], 8, _p)]),
3109
+ ]], 8, gp)]),
3107
3110
  a("g", {
3108
3111
  fill: "none",
3109
3112
  "stroke-dasharray": e.strokeDasharray,
@@ -3117,7 +3120,7 @@ function wp(e, t, n, r, o, s) {
3117
3120
  stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
3118
3121
  transform: "rotate(-225)",
3119
3122
  class: "uz-semicircle-round"
3120
- }, null, 8, yp)], 8, vp),
3123
+ }, null, 8, vp)], 8, _p),
3121
3124
  a("g", {
3122
3125
  fill: "none",
3123
3126
  "stroke-dasharray": e.strokeDasharray,
@@ -3129,7 +3132,7 @@ function wp(e, t, n, r, o, s) {
3129
3132
  r: "52",
3130
3133
  stroke: e.backgroundBg,
3131
3134
  transform: "rotate(-225)"
3132
- }, null, 8, xp)], 8, bp),
3135
+ }, null, 8, bp)], 8, yp),
3133
3136
  a("text", {
3134
3137
  fill: "var(--circle-color)",
3135
3138
  "text-anchor": "middle",
@@ -3138,7 +3141,7 @@ function wp(e, t, n, r, o, s) {
3138
3141
  "font-size": "2rem",
3139
3142
  "font-weight": "400"
3140
3143
  }
3141
- }, A(e.circle), 9, Sp),
3144
+ }, A(e.circle), 9, xp),
3142
3145
  a("text", {
3143
3146
  cy: "90",
3144
3147
  fill: "var(--circle-unit-color)",
@@ -3148,10 +3151,10 @@ function wp(e, t, n, r, o, s) {
3148
3151
  "font-size": "0.6rem",
3149
3152
  "font-weight": "400"
3150
3153
  }
3151
- }, A(e.circleUnit), 9, Cp)
3154
+ }, A(e.circleUnit), 9, Sp)
3152
3155
  ]))]);
3153
3156
  }
3154
- var Tp = /*#__PURE__*/ W(tp, [["render", wp]]), Ep = d({
3157
+ var wp = /*#__PURE__*/ W(ep, [["render", Cp]]), Tp = d({
3155
3158
  name: "UzFormItem",
3156
3159
  components: {
3157
3160
  NIcon: V,
@@ -3282,8 +3285,8 @@ var Tp = /*#__PURE__*/ W(tp, [["render", wp]]), Ep = d({
3282
3285
  selectFilter: (e, t) => _d(t.label, e)
3283
3286
  };
3284
3287
  }
3285
- }), Dp = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3286
- function Op(t, r, s, u, d, f) {
3288
+ }), Ep = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3289
+ function Dp(t, r, s, u, d, f) {
3287
3290
  let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), O = D("NSwitch"), k = D("UzFormItemUpload");
3288
3291
  return t.item.input === "input" ? (x(), n(p, {
3289
3292
  key: 0,
@@ -3588,7 +3591,7 @@ function Op(t, r, s, u, d, f) {
3588
3591
  value: t.formValue[t.item.key],
3589
3592
  disabled: t.checkDisabled()
3590
3593
  }, {
3591
- default: N(() => [a("div", Dp, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3594
+ default: N(() => [a("div", Ep, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3592
3595
  key: e.value,
3593
3596
  label: e.label,
3594
3597
  value: e.value
@@ -3657,7 +3660,7 @@ function Op(t, r, s, u, d, f) {
3657
3660
  "status"
3658
3661
  ])) : (x(), i(e, { key: 14 }, [], 64));
3659
3662
  }
3660
- var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
3663
+ var Op = /*#__PURE__*/ W(Tp, [["render", Dp]]), kp = d({
3661
3664
  name: "UzForm",
3662
3665
  components: {
3663
3666
  NForm: pe,
@@ -3665,7 +3668,7 @@ var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
3665
3668
  NDivider: ce,
3666
3669
  NButton: L,
3667
3670
  NIcon: V,
3668
- UzFormItem: kp,
3671
+ UzFormItem: Op,
3669
3672
  Plus: uc
3670
3673
  },
3671
3674
  props: {
@@ -3870,8 +3873,8 @@ var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
3870
3873
  }
3871
3874
  };
3872
3875
  }
3873
- }), jp = ["onClick"];
3874
- function Mp(t, o, s, u, d, f) {
3876
+ }), Ap = ["onClick"];
3877
+ function jp(t, o, s, u, d, f) {
3875
3878
  let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = O("media");
3876
3879
  return x(), i(e, null, [l(C, {
3877
3880
  ref: "formRef",
@@ -3899,7 +3902,7 @@ function Mp(t, o, s, u, d, f) {
3899
3902
  }, [l(m, null, {
3900
3903
  default: N(() => [l(p)]),
3901
3904
  _: 1
3902
- }), o[0] ||= c(" 新增 ", -1)], 8, jp)) : r("", !0),
3905
+ }), o[0] ||= c(" 新增 ", -1)], 8, Ap)) : r("", !0),
3903
3906
  s.form.showDays ? (x(), i("span", {
3904
3907
  key: 1,
3905
3908
  class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
@@ -3960,7 +3963,7 @@ function Mp(t, o, s, u, d, f) {
3960
3963
  onOnSubmit: t.refreshOption
3961
3964
  }, null, 8, ["onOnSubmit"])], 64);
3962
3965
  }
3963
- var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
3966
+ var Mp = /*#__PURE__*/ W(kp, [["render", jp]]), Np = d({
3964
3967
  name: "UzDraggableForm",
3965
3968
  components: {
3966
3969
  NForm: pe,
@@ -3968,7 +3971,7 @@ var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
3968
3971
  NButton: L,
3969
3972
  NIcon: V,
3970
3973
  NDivider: ce,
3971
- UzFormItem: kp,
3974
+ UzFormItem: Op,
3972
3975
  Trash: bl,
3973
3976
  Plus: uc,
3974
3977
  VueDraggable: tt
@@ -4067,14 +4070,14 @@ var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
4067
4070
  }
4068
4071
  };
4069
4072
  }
4070
- }), Fp = {
4073
+ }), Pp = {
4071
4074
  key: 0,
4072
4075
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
4073
- }, Ip = {
4076
+ }, Fp = {
4074
4077
  key: 1,
4075
4078
  class: "uz-form-item-add"
4076
4079
  };
4077
- function Lp(t, o, s, u, d, f) {
4080
+ function Ip(t, o, s, u, d, f) {
4078
4081
  let p = D("Plus"), m = D("NIcon"), h = D("Trash"), v = D("NButton"), y = D("UzTableChild"), b = D("UzFormItem"), S = D("NFormItem"), C = D("VueDraggable"), w = D("NDivider"), E = D("NForm");
4079
4082
  return x(), n(E, {
4080
4083
  ref: "formRef",
@@ -4112,11 +4115,11 @@ function Lp(t, o, s, u, d, f) {
4112
4115
  }, {
4113
4116
  label: N(() => [
4114
4117
  a("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
4115
- s.source && s.form.createButton ? (x(), i("a", Fp, [l(m, null, {
4118
+ s.source && s.form.createButton ? (x(), i("a", Pp, [l(m, null, {
4116
4119
  default: N(() => [l(p)]),
4117
4120
  _: 1
4118
4121
  }), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
4119
- s.form.showDays ? (x(), i("span", Ip, " showDays ")) : r("", !0)
4122
+ s.form.showDays ? (x(), i("span", Fp, " showDays ")) : r("", !0)
4120
4123
  ]),
4121
4124
  default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
4122
4125
  key: 0,
@@ -4243,7 +4246,7 @@ function Lp(t, o, s, u, d, f) {
4243
4246
  "onClick"
4244
4247
  ]);
4245
4248
  }
4246
- var Rp = /*#__PURE__*/ W(Pp, [["render", Lp]]), zp = d({
4249
+ var Lp = /*#__PURE__*/ W(Np, [["render", Ip]]), Rp = d({
4247
4250
  name: "UzFormItemUpload",
4248
4251
  components: {
4249
4252
  NUpload: Re,
@@ -4359,8 +4362,8 @@ var Rp = /*#__PURE__*/ W(Pp, [["render", Lp]]), zp = d({
4359
4362
  }
4360
4363
  };
4361
4364
  }
4362
- }), Bp = { class: "uz-form-upload-item-inner" }, Vp = ["title"], Hp = { key: 0 };
4363
- function Up(t, o, s, u, d, f) {
4365
+ }), zp = { class: "uz-form-upload-item-inner" }, Bp = ["title"], Vp = { key: 0 };
4366
+ function Hp(t, o, s, u, d, f) {
4364
4367
  let p = D("CloudUpload"), m = D("NIcon"), h = D("NUploadDragger"), g = D("NUpload"), _ = D("PhotoOff"), v = D("NImage"), y = D("FileText"), b = D("Trash"), S = D("NButton"), C = D("NPopconfirm"), w = D("CloudDownload"), E = D("NSpin");
4365
4368
  return x(), n(E, {
4366
4369
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
@@ -4414,10 +4417,10 @@ function Up(t, o, s, u, d, f) {
4414
4417
  }, {
4415
4418
  default: N(() => [l(y)]),
4416
4419
  _: 1
4417
- }, 8, ["onClick"])), a("div", Bp, [a("div", {
4420
+ }, 8, ["onClick"])), a("div", zp, [a("div", {
4418
4421
  class: "uz-form-upload-title uz-truncate",
4419
4422
  title: e.name
4420
- }, A(e.name), 9, Vp), t.status === 2 ? r("", !0) : (x(), i("div", Hp, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4423
+ }, A(e.name), 9, Bp), t.status === 2 ? r("", !0) : (x(), i("div", Vp, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4421
4424
  trigger: N(() => [l(S, {
4422
4425
  size: "small",
4423
4426
  tertiary: ""
@@ -4446,7 +4449,7 @@ function Up(t, o, s, u, d, f) {
4446
4449
  _: 1
4447
4450
  }, 8, ["show"]);
4448
4451
  }
4449
- var Wp = /*#__PURE__*/ W(zp, [["render", Up], ["__scopeId", "data-v-2daf6715"]]), Gp = d({
4452
+ var Up = /*#__PURE__*/ W(Rp, [["render", Hp], ["__scopeId", "data-v-2daf6715"]]), Wp = d({
4450
4453
  name: "UzFormItemImage",
4451
4454
  components: {
4452
4455
  NImageGroup: ve,
@@ -4492,11 +4495,11 @@ var Wp = /*#__PURE__*/ W(zp, [["render", Up], ["__scopeId", "data-v-2daf6715"]])
4492
4495
  }
4493
4496
  };
4494
4497
  }
4495
- }), Kp = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4496
- function qp(t, r, o, s, u, d) {
4498
+ }), Gp = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4499
+ function Kp(t, r, o, s, u, d) {
4497
4500
  let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
4498
4501
  return x(), n(_, null, {
4499
- default: N(() => [a("div", Kp, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
4502
+ default: N(() => [a("div", Gp, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
4500
4503
  key: 0,
4501
4504
  width: "40",
4502
4505
  src: r
@@ -4528,7 +4531,7 @@ function qp(t, r, o, s, u, d) {
4528
4531
  _: 1
4529
4532
  });
4530
4533
  }
4531
- var Jp = /*#__PURE__*/ W(Gp, [["render", qp]]), Yp = d({
4534
+ var qp = /*#__PURE__*/ W(Wp, [["render", Kp]]), Jp = d({
4532
4535
  name: "UzFormItemTimesPicker",
4533
4536
  components: { NSelect: ke },
4534
4537
  props: {
@@ -4578,10 +4581,10 @@ var Jp = /*#__PURE__*/ W(Gp, [["render", qp]]), Yp = d({
4578
4581
  }
4579
4582
  };
4580
4583
  }
4581
- }), Xp = { class: "times-picker" };
4582
- function Zp(e, t, n, r, a, o) {
4584
+ }), Yp = { class: "times-picker" };
4585
+ function Xp(e, t, n, r, a, o) {
4583
4586
  let s = D("NSelect");
4584
- return x(), i("div", Xp, [
4587
+ return x(), i("div", Yp, [
4585
4588
  l(s, {
4586
4589
  value: e.h,
4587
4590
  options: e.times,
@@ -4629,7 +4632,7 @@ function Zp(e, t, n, r, a, o) {
4629
4632
  ])
4630
4633
  ]);
4631
4634
  }
4632
- var Qp = /*#__PURE__*/ W(Yp, [["render", Zp], ["__scopeId", "data-v-12b4d7e3"]]), $p = d({
4635
+ var Zp = /*#__PURE__*/ W(Jp, [["render", Xp], ["__scopeId", "data-v-12b4d7e3"]]), Qp = d({
4633
4636
  name: "UzCamera",
4634
4637
  components: {
4635
4638
  NButton: L,
@@ -4721,11 +4724,11 @@ var Qp = /*#__PURE__*/ W(Yp, [["render", Zp], ["__scopeId", "data-v-12b4d7e3"]])
4721
4724
  closeAll: d
4722
4725
  };
4723
4726
  }
4724
- }), em = ["width", "height"], tm = ["width", "height"], nm = { class: "uz-scan-video" }, rm = {
4727
+ }), $p = ["width", "height"], em = ["width", "height"], tm = { class: "uz-scan-video" }, nm = {
4725
4728
  ref: "videoRef",
4726
4729
  playsInline: ""
4727
4730
  };
4728
- function im(t, o, s, l, u, d) {
4731
+ function rm(t, o, s, l, u, d) {
4729
4732
  let f = D("NButton"), p = D("NModal");
4730
4733
  return x(), i(e, null, [
4731
4734
  t.mode === "button" ? (x(), n(f, {
@@ -4757,7 +4760,7 @@ function im(t, o, s, l, u, d) {
4757
4760
  id: "uz-scan-canvas",
4758
4761
  width: t.width,
4759
4762
  height: t.height
4760
- }, null, 8, em)], 4)]),
4763
+ }, null, 8, $p)], 4)]),
4761
4764
  _: 1
4762
4765
  }, 8, [
4763
4766
  "show",
@@ -4775,11 +4778,11 @@ function im(t, o, s, l, u, d) {
4775
4778
  id: "uz-scan-canvas",
4776
4779
  width: t.width,
4777
4780
  height: t.height
4778
- }, null, 8, tm)], 4)) : r("", !0),
4779
- a("div", nm, [a("video", rm, null, 512)])
4781
+ }, null, 8, em)], 4)) : r("", !0),
4782
+ a("div", tm, [a("video", nm, null, 512)])
4780
4783
  ], 64);
4781
4784
  }
4782
- var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap(), sm = d({
4785
+ var im = /*#__PURE__*/ W(Qp, [["render", rm]]), am = /* @__PURE__ */ new WeakMap(), om = d({
4783
4786
  name: "UzSearchBar",
4784
4787
  components: {
4785
4788
  NIcon: V,
@@ -4790,7 +4793,7 @@ var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap
4790
4793
  NInputGroup: be,
4791
4794
  NInputGroupLabel: xe,
4792
4795
  NPopover: Ee,
4793
- UzFormItem: kp,
4796
+ UzFormItem: Op,
4794
4797
  CaretDown: Fr,
4795
4798
  Refresh: Ac,
4796
4799
  Search: Xc,
@@ -4832,10 +4835,10 @@ var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap
4832
4835
  e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
4833
4836
  }
4834
4837
  });
4835
- n.observe(e), om.set(e, n);
4838
+ n.observe(e), am.set(e, n);
4836
4839
  },
4837
4840
  unmounted: (e) => {
4838
- om.get(e)?.disconnect(), om.delete(e);
4841
+ am.get(e)?.disconnect(), am.delete(e);
4839
4842
  }
4840
4843
  } },
4841
4844
  emits: ["update:loading", "on-update:value"],
@@ -4950,19 +4953,19 @@ var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap
4950
4953
  tabButtonType: b
4951
4954
  };
4952
4955
  }
4953
- }), cm = {
4956
+ }), sm = {
4954
4957
  key: 0,
4955
4958
  class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
4956
- }, lm = { class: "uz-flex-1" }, um = {
4959
+ }, cm = { class: "uz-flex-1" }, lm = {
4957
4960
  key: 1,
4958
4961
  class: "uz-flex uz-gap-2 uz-flex-1"
4959
4962
  };
4960
- function dm(t, a, o, s, u, d) {
4963
+ function um(t, a, o, s, u, d) {
4961
4964
  let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), k = D("Refresh"), ee = O("media");
4962
4965
  return x(), i("div", {
4963
4966
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
4964
4967
  onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
4965
- }, [t.enableHeader ? (x(), i("div", cm, [E(t.$slots, "header"), P((x(), i("div", lm, [l(b, {
4968
+ }, [t.enableHeader ? (x(), i("div", sm, [E(t.$slots, "header"), P((x(), i("div", cm, [l(b, {
4966
4969
  "x-gap": "8",
4967
4970
  "y-gap": "8",
4968
4971
  cols: t.cols,
@@ -5019,7 +5022,7 @@ function dm(t, a, o, s, u, d) {
5019
5022
  }, 1032, ["span"]))), 128))
5020
5023
  ]),
5021
5024
  _: 1
5022
- }, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", um, [
5025
+ }, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", lm, [
5023
5026
  t.more ? (x(), n(f, {
5024
5027
  key: 0,
5025
5028
  quaternary: "",
@@ -5070,7 +5073,7 @@ function dm(t, a, o, s, u, d) {
5070
5073
  E(t.$slots, "action")
5071
5074
  ])) : r("", !0)], 32);
5072
5075
  }
5073
- var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
5076
+ var dm = /*#__PURE__*/ W(om, [["render", um]]), fm = d({
5074
5077
  name: "UzSearchMobileBar",
5075
5078
  components: {
5076
5079
  NIcon: V,
@@ -5083,7 +5086,7 @@ var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
5083
5086
  NInputGroupLabel: xe,
5084
5087
  Refresh: Ac,
5085
5088
  Search: Xc,
5086
- UzFormItem: kp
5089
+ UzFormItem: Op
5087
5090
  },
5088
5091
  props: {
5089
5092
  data: {
@@ -5161,10 +5164,10 @@ var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
5161
5164
  clearAll: l
5162
5165
  };
5163
5166
  }
5164
- }), mm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, hm = { class: "uz-flex uz-gap-2" }, gm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5165
- function _m(t, o, s, u, d, f) {
5167
+ }), pm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, mm = { class: "uz-flex uz-gap-2" }, hm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5168
+ function gm(t, o, s, u, d, f) {
5166
5169
  let p = D("Search"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("Refresh"), C = D("NDrawerContent"), w = D("NDrawer");
5167
- return x(), i(e, null, [a("div", mm, [E(t.$slots, "header"), a("div", hm, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
5170
+ return x(), i(e, null, [a("div", pm, [E(t.$slots, "header"), a("div", mm, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
5168
5171
  key: 0,
5169
5172
  secondary: "",
5170
5173
  onClick: o[0] ||= (e) => t.drawer = !0
@@ -5189,7 +5192,7 @@ function _m(t, o, s, u, d, f) {
5189
5192
  title: "查询",
5190
5193
  closable: ""
5191
5194
  }, {
5192
- footer: N(() => [a("div", gm, [l(h, {
5195
+ footer: N(() => [a("div", hm, [l(h, {
5193
5196
  secondary: "",
5194
5197
  loading: t.loading,
5195
5198
  onClick: t.clearAll,
@@ -5244,10 +5247,10 @@ function _m(t, o, s, u, d, f) {
5244
5247
  _: 1
5245
5248
  }, 8, ["show"])], 64);
5246
5249
  }
5247
- var vm = /*#__PURE__*/ W(pm, [["render", _m]]);
5250
+ var _m = /*#__PURE__*/ W(fm, [["render", gm]]);
5248
5251
  //#endregion
5249
5252
  //#region components/hooks/useDebounceFn.ts
5250
- function ym(e, t = 1e3) {
5253
+ function vm(e, t = 1e3) {
5251
5254
  let n = Qe(e, t);
5252
5255
  return {
5253
5256
  run: n,
@@ -5257,7 +5260,7 @@ function ym(e, t = 1e3) {
5257
5260
  }
5258
5261
  //#endregion
5259
5262
  //#region components/table/factory.ts
5260
- var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
5263
+ var ym = /(?<=\[)(.+?)(?=\])/g, bm = {
5261
5264
  index: 1,
5262
5265
  selection: 0,
5263
5266
  pagination: 1,
@@ -5267,6 +5270,7 @@ var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
5267
5270
  addButton: 1,
5268
5271
  filterButton: 1,
5269
5272
  commonTime: 1,
5273
+ asynchronous: "",
5270
5274
  filePort: 0,
5271
5275
  actionWidth: 300,
5272
5276
  drawerWidth: "70%",
@@ -5274,10 +5278,10 @@ var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
5274
5278
  placement: "right",
5275
5279
  summary: ""
5276
5280
  };
5277
- function Sm(e) {
5281
+ function xm(e) {
5278
5282
  return Function("return " + e)();
5279
5283
  }
5280
- var Cm = () => new Promise((e) => {
5284
+ var Sm = () => new Promise((e) => {
5281
5285
  let t = window.localStorage.getItem("city");
5282
5286
  if (t) e(JSON.parse(t));
5283
5287
  else {
@@ -5290,9 +5294,9 @@ var Cm = () => new Promise((e) => {
5290
5294
  t && (clearInterval(i), e(JSON.parse(t)));
5291
5295
  }, 500);
5292
5296
  }
5293
- }), wm = async (e, t, n) => {
5297
+ }), Cm = async (e, t, n) => {
5294
5298
  if (t && typeof t == "string") {
5295
- let r = t.match(bm);
5299
+ let r = t.match(ym);
5296
5300
  if (r && t.indexOf("return") === -1) {
5297
5301
  let t = r[0].split(":");
5298
5302
  if (t[0] === "date") return (t) => ud(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
@@ -5312,7 +5316,7 @@ var Cm = () => new Promise((e) => {
5312
5316
  }
5313
5317
  }
5314
5318
  return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
5315
- }, Tm = (e, t, n) => {
5319
+ }, wm = (e, t, n) => {
5316
5320
  let r = t.map((t) => {
5317
5321
  let r = [], i = t.id;
5318
5322
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
@@ -5325,37 +5329,35 @@ var Cm = () => new Promise((e) => {
5325
5329
  };
5326
5330
  });
5327
5331
  return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
5328
- }, Em = /* @__PURE__ */ new Map();
5329
- function Dm() {
5330
- Em.clear();
5332
+ }, Tm = /* @__PURE__ */ new Map();
5333
+ function Em() {
5334
+ Tm.clear();
5331
5335
  }
5332
- async function Om(e, t = !1) {
5336
+ async function Dm(e, t = !1) {
5333
5337
  let n = e.split("."), r = !1;
5334
- return n.length > 1 && (Em.has(n[0]) && !t ? r = U(Em.get(n[0])) : (r = await yf({ tableId: n[0] }), Em.set(n[0], r))), {
5338
+ return n.length > 1 && (Tm.has(n[0]) && !t ? r = U(Tm.get(n[0])) : (r = await vf({ tableId: n[0] }), Tm.set(n[0], r))), {
5335
5339
  sourceData: r,
5336
5340
  n
5337
5341
  };
5338
5342
  }
5339
- async function km(e) {
5343
+ async function Om(e) {
5340
5344
  return new Promise((t, n) => {
5341
5345
  let r = X(`dynamicTable_${e}`, !1);
5342
- r && Em.has(`dynamicTable_${e}`) ? t(r) : vf(e).then((i) => {
5343
- !r || r && r.createTime !== i.createTime ? _f(e).then((n) => {
5346
+ r && Tm.has(`dynamicTable_${e}`) ? t(r) : _f(e, r ? r.createTime : null).then((n) => {
5347
+ if (n) {
5344
5348
  let r = {
5345
5349
  createTime: n.createTime,
5346
5350
  tableTitle: n.tableTitle,
5347
5351
  viewJson: n.viewJson
5348
5352
  };
5349
- Y(`dynamicTable_${e}`, r, 0), Em.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
5350
- }).catch(() => {
5351
- n();
5352
- }) : (Em.set(`dynamicTable_${e}`, !0), t(r));
5353
+ Y(`dynamicTable_${e}`, r, 0), Tm.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
5354
+ } else Tm.set(`dynamicTable_${e}`, !0), t(r);
5353
5355
  }).catch(() => {
5354
5356
  n();
5355
5357
  });
5356
5358
  });
5357
5359
  }
5358
- var Am = (e) => e.map((e) => {
5360
+ var km = (e) => e.map((e) => {
5359
5361
  let t = {};
5360
5362
  return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
5361
5363
  i: e.input,
@@ -5428,7 +5430,7 @@ var Am = (e) => e.map((e) => {
5428
5430
  p: { s: +!!e.form.expand.show }
5429
5431
  }
5430
5432
  };
5431
- }), jm = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
5433
+ }), Am = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
5432
5434
  let t = {};
5433
5435
  return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
5434
5436
  input: e.i,
@@ -5501,11 +5503,11 @@ var Am = (e) => e.map((e) => {
5501
5503
  expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
5502
5504
  }
5503
5505
  };
5504
- }), Mm = (e) => ({
5506
+ }), jm = (e) => ({
5505
5507
  f: e.fetch,
5506
5508
  o: e.when_drawer_open,
5507
5509
  b: e.when_before_save
5508
- }), Nm = (e) => e ? e.fetch ? e : {
5510
+ }), Mm = (e) => e ? e.fetch ? e : {
5509
5511
  fetch: e.f,
5510
5512
  when_drawer_open: e.o,
5511
5513
  when_before_save: e.b
@@ -5513,7 +5515,7 @@ var Am = (e) => e.map((e) => {
5513
5515
  fetch: null,
5514
5516
  when_drawer_open: "",
5515
5517
  when_before_save: ""
5516
- }, Pm = (e) => ({
5518
+ }, Nm = (e) => ({
5517
5519
  i: e.index,
5518
5520
  s: e.selection,
5519
5521
  p: e.pagination,
@@ -5522,15 +5524,16 @@ var Am = (e) => e.map((e) => {
5522
5524
  a: e.addButton,
5523
5525
  f: e.filterButton,
5524
5526
  o: e.commonTime,
5527
+ n: e.asynchronous,
5525
5528
  e: e.filePort,
5526
5529
  t: e.actionWidth,
5527
5530
  w: e.drawerWidth,
5528
5531
  h: e.drawerHeight,
5529
5532
  l: e.placement,
5530
5533
  r: e.summary
5531
- }), Fm = (e) => {
5534
+ }), Pm = (e) => {
5532
5535
  let t = {};
5533
- return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
5536
+ return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
5534
5537
  index: e.i,
5535
5538
  selection: e.s,
5536
5539
  pagination: e.p,
@@ -5539,15 +5542,16 @@ var Am = (e) => e.map((e) => {
5539
5542
  addButton: e.a,
5540
5543
  filterButton: e.f,
5541
5544
  commonTime: e.o,
5545
+ asynchronous: e.n,
5542
5546
  filePort: e.e,
5543
5547
  actionWidth: e.t,
5544
5548
  drawerWidth: e.w,
5545
5549
  drawerHeight: e.h,
5546
5550
  placement: e.l,
5547
5551
  summary: e.r
5548
- }), Object.assign({}, xm, U(t));
5552
+ }), Object.assign({}, bm, U(t));
5549
5553
  };
5550
- function Im(e, t, n, r) {
5554
+ function Fm(e, t, n, r) {
5551
5555
  return new Promise(async (i, a) => {
5552
5556
  let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
5553
5557
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
@@ -5582,17 +5586,17 @@ function Im(e, t, n, r) {
5582
5586
  disabled: !0
5583
5587
  }];
5584
5588
  if (e.params.immediately || r) {
5585
- let { sourceData: t, n: r } = await Om(e.source);
5589
+ let { sourceData: t, n: r } = await Dm(e.source);
5586
5590
  if (t && Array.isArray(t)) if (e.sourceFn) {
5587
5591
  let r = e.sourceFn;
5588
5592
  n = Function("sourceData", r)(t);
5589
- } else n = Tm(e, t, r);
5593
+ } else n = wm(e, t, r);
5590
5594
  } else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
5591
- let { sourceData: t, n } = await Om(e.source);
5595
+ let { sourceData: t, n } = await Dm(e.source);
5592
5596
  if (t && Array.isArray(t)) if (e.sourceFn) {
5593
5597
  let n = e.sourceFn;
5594
5598
  return Function("sourceData", n)(t);
5595
- } else return Tm(e, t, n);
5599
+ } else return wm(e, t, n);
5596
5600
  };
5597
5601
  if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
5598
5602
  let i = n.find((n) => n.value === t[e.key]);
@@ -5623,27 +5627,27 @@ function Im(e, t, n, r) {
5623
5627
  J(e);
5624
5628
  }
5625
5629
  if (e.input === "cascader" && e.table.render === "[city]") {
5626
- let t = await Cm();
5630
+ let t = await Sm();
5627
5631
  e.params.options = t;
5628
5632
  }
5629
5633
  if (e.input === "subTable" && e.params.link) {
5630
- let t = await km(e.params.link).catch(() => {
5634
+ let t = await Om(e.params.link).catch(() => {
5631
5635
  a();
5632
5636
  });
5633
5637
  if (t) try {
5634
5638
  let n = nt.parse(t.viewJson);
5635
- n.suffix && (e._suffix = Vf(n.suffix));
5636
- let r = jm(n.table);
5639
+ n.suffix && (e._suffix = Bf(n.suffix));
5640
+ let r = Am(n.table);
5637
5641
  r.forEach((e) => {
5638
5642
  e.table.sorter = !1;
5639
5643
  });
5640
5644
  let i = r.filter((e) => e.input === "subTable");
5641
5645
  if (i) for await (let e of i) {
5642
- let t = await km(e.params.link).catch(() => {
5646
+ let t = await Om(e.params.link).catch(() => {
5643
5647
  a();
5644
5648
  });
5645
5649
  if (t) try {
5646
- let n = nt.parse(t.viewJson), r = jm(n.table);
5650
+ let n = nt.parse(t.viewJson), r = Am(n.table);
5647
5651
  r.forEach((e) => {
5648
5652
  e.table.sorter = !1;
5649
5653
  }), e.params.columns = r, e.params.actions = n.action;
@@ -5677,7 +5681,7 @@ function Im(e, t, n, r) {
5677
5681
  });
5678
5682
  });
5679
5683
  }
5680
- async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5684
+ async function Im(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5681
5685
  let s = 0, c = [], l = [], u = {
5682
5686
  key: "",
5683
5687
  link: "",
@@ -5691,27 +5695,27 @@ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5691
5695
  })) : (m.push(e), h.push(e.key));
5692
5696
  for await (let [e, s] of m.entries()) {
5693
5697
  if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
5694
- let { sourceData: t, n } = await Om(s.source, a && e === 0);
5698
+ let { sourceData: t, n } = await Dm(s.source, a && e === 0);
5695
5699
  if (t && Array.isArray(t)) if (s.sourceFn) {
5696
5700
  let e = s.sourceFn, n = Function("sourceData", e);
5697
5701
  s.params.options = n(t);
5698
- } else s.params.options = Tm(s, t, n);
5702
+ } else s.params.options = wm(s, t, n);
5699
5703
  } else s.params.options = [{
5700
5704
  label: "加载中......",
5701
5705
  value: "loading",
5702
5706
  disabled: !0
5703
5707
  }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5704
- let { sourceData: e, n: t } = await Om(s.source);
5708
+ let { sourceData: e, n: t } = await Dm(s.source);
5705
5709
  if (e && Array.isArray(e)) if (s.sourceFn) {
5706
5710
  let t = s.sourceFn;
5707
5711
  return Function("sourceData", t)(e);
5708
- } else return Tm(s, e, t);
5712
+ } else return wm(s, e, t);
5709
5713
  };
5710
5714
  !s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
5711
5715
  let t = s.params.options.find((t) => t.value === e[s.key]);
5712
5716
  if (t) return t.label;
5713
5717
  }), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
5714
- return f(Jp, { value: e[s.key] }, { default: () => null });
5718
+ return f(qp, { value: e[s.key] }, { default: () => null });
5715
5719
  });
5716
5720
  let p = {
5717
5721
  input: s.input,
@@ -5726,7 +5730,7 @@ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5726
5730
  tooltip: !0,
5727
5731
  "line-clamp": s.table.clamp ?? 0
5728
5732
  } : !1,
5729
- render: s.table.render ? await wm(s.key, s.table.render, i) : void 0,
5733
+ render: s.table.render ? await Cm(s.key, s.table.render, i) : void 0,
5730
5734
  show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
5731
5735
  pin: !!s.table.fixed,
5732
5736
  fixTemp: s.table.fixed
@@ -5747,7 +5751,7 @@ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5747
5751
  ...s.form.rule,
5748
5752
  index: t
5749
5753
  } : void 0
5750
- }, { default: () => f(kp, {
5754
+ }, { default: () => f(Op, {
5751
5755
  item: s,
5752
5756
  formValue: e,
5753
5757
  status: n,
@@ -5758,26 +5762,26 @@ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5758
5762
  if (p && s.input !== "divider" && s.input !== "subTable" && (o && (p.show = s.form.expand.show), d.push(p)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
5759
5763
  if (s.search.title && (s.label = s.search.title), s.search.source) if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
5760
5764
  else if (s.params.immediately || s.search.defaultValue) {
5761
- let { sourceData: e, n: t } = await Om(s.search.source);
5765
+ let { sourceData: e, n: t } = await Dm(s.search.source);
5762
5766
  if (e && Array.isArray(e)) if (s.sourceFn) {
5763
5767
  let t = s.sourceFn, n = Function("sourceData", t);
5764
5768
  s.params.options = n(e);
5765
- } else s.params.options = Tm(s, e, t);
5769
+ } else s.params.options = wm(s, e, t);
5766
5770
  } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5767
- let { sourceData: e, n: t } = await Om(s.search.source);
5771
+ let { sourceData: e, n: t } = await Dm(s.search.source);
5768
5772
  if (e && Array.isArray(e)) if (s.sourceFn) {
5769
5773
  let t = s.sourceFn;
5770
5774
  return Function("sourceData", t)(e);
5771
- } else return Tm(s, e, t);
5775
+ } else return wm(s, e, t);
5772
5776
  };
5773
- if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Sm(s.search.defaultValue))), s.search.show) {
5777
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = xm(s.search.defaultValue))), s.search.show) {
5774
5778
  let e = U(s);
5775
5779
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
5776
- let { sourceData: t, n } = await Om(e.source || e.search.source);
5780
+ let { sourceData: t, n } = await Dm(e.source || e.search.source);
5777
5781
  if (t && Array.isArray(t)) if (e.sourceFn) {
5778
5782
  let n = e.sourceFn;
5779
5783
  return Function("sourceData", n)(t);
5780
- } else return Tm(e, t, n);
5784
+ } else return wm(e, t, n);
5781
5785
  }), c.push({
5782
5786
  input: e.input,
5783
5787
  label: e.label,
@@ -5830,7 +5834,7 @@ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5830
5834
  }
5831
5835
  //#endregion
5832
5836
  //#region components/spin/index.vue?vue&type=script&lang.ts
5833
- var Rm = d({
5837
+ var Lm = d({
5834
5838
  name: "UzSpin",
5835
5839
  components: {
5836
5840
  NButton: L,
@@ -5876,7 +5880,7 @@ var Rm = d({
5876
5880
  });
5877
5881
  //#endregion
5878
5882
  //#region components/spin/index.vue
5879
- function zm(e, t, r, i, o, s) {
5883
+ function Rm(e, t, r, i, o, s) {
5880
5884
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
5881
5885
  return x(), n(f, { show: e.value }, {
5882
5886
  description: N(() => [
@@ -5904,7 +5908,7 @@ function zm(e, t, r, i, o, s) {
5904
5908
  _: 3
5905
5909
  }, 8, ["show"]);
5906
5910
  }
5907
- var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5911
+ var zm = /*#__PURE__*/ W(Lm, [["render", Rm]]), Bm = d({
5908
5912
  name: "UzTableExpand",
5909
5913
  components: {
5910
5914
  NDataTable: oe,
@@ -5930,8 +5934,8 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5930
5934
  } catch (e) {
5931
5935
  J(e);
5932
5936
  }
5933
- km(e.data.link).then(async (e) => {
5934
- let { tableColumns: r } = await Lm(jm(nt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
5937
+ Om(e.data.link).then(async (e) => {
5938
+ let { tableColumns: r } = await Im(Am(nt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
5935
5939
  ...e,
5936
5940
  sorter: !1,
5937
5941
  resizable: !1
@@ -5952,7 +5956,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5952
5956
  });
5953
5957
  //#endregion
5954
5958
  //#region components/table/components/expand.vue
5955
- function Hm(e, t, r, i, a, o) {
5959
+ function Vm(e, t, r, i, a, o) {
5956
5960
  let s = D("NDataTable");
5957
5961
  return x(), n(s, {
5958
5962
  columns: e.columns,
@@ -5974,13 +5978,13 @@ function Hm(e, t, r, i, a, o) {
5974
5978
  "scroll-x"
5975
5979
  ]);
5976
5980
  }
5977
- var Um = /*#__PURE__*/ W(Vm, [["render", Hm]]), Wm = {}, Gm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Km = { class: "uz-flex uz-justify-between" }, qm = { class: "uz-flex uz-gap-1" };
5978
- function Jm(e, t) {
5981
+ var Hm = /*#__PURE__*/ W(Bm, [["render", Vm]]), Um = {}, Wm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Gm = { class: "uz-flex uz-justify-between" }, Km = { class: "uz-flex uz-gap-1" };
5982
+ function qm(e, t) {
5979
5983
  let n = D("NSkeleton");
5980
- return x(), i("div", Gm, [a("div", Km, [l(n, {
5984
+ return x(), i("div", Wm, [a("div", Gm, [l(n, {
5981
5985
  width: 120,
5982
5986
  size: "medium"
5983
- }), a("div", qm, [
5987
+ }), a("div", Km, [
5984
5988
  l(n, {
5985
5989
  width: 180,
5986
5990
  size: "medium"
@@ -6013,7 +6017,7 @@ function Jm(e, t) {
6013
6017
  }
6014
6018
  //#endregion
6015
6019
  //#region components/table/index.vue?vue&type=script&lang.ts
6016
- var Ym = d({
6020
+ var Jm = d({
6017
6021
  name: "UzTable",
6018
6022
  components: {
6019
6023
  NDataTable: oe,
@@ -6027,10 +6031,10 @@ var Ym = d({
6027
6031
  GridDots: es,
6028
6032
  Plus: uc,
6029
6033
  VueDraggable: tt,
6030
- UzSpin: Bm,
6034
+ UzSpin: zm,
6031
6035
  UzIcon: Iu,
6032
- TableExpand: Um,
6033
- SkeletonLoading: /* @__PURE__ */ W(Wm, [["render", Jm]])
6036
+ TableExpand: Hm,
6037
+ SkeletonLoading: /* @__PURE__ */ W(Um, [["render", qm]])
6034
6038
  },
6035
6039
  props: {
6036
6040
  id: {
@@ -6148,7 +6152,8 @@ var Ym = d({
6148
6152
  "update:loading",
6149
6153
  "on-update:value",
6150
6154
  "update:rowKeys",
6151
- "update:suffixes"
6155
+ "update:suffixes",
6156
+ "update:asynchronous"
6152
6157
  ],
6153
6158
  setup(e, { emit: n, expose: r, slots: i }) {
6154
6159
  S("emitSuffix", (e) => {
@@ -6168,7 +6173,7 @@ var Ym = d({
6168
6173
  fetch: null,
6169
6174
  when_drawer_open: "",
6170
6175
  when_before_save: ""
6171
- }), R = w(Fm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
6176
+ }), R = w(Pm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
6172
6177
  n("update:rowKeys", {
6173
6178
  keys: e,
6174
6179
  rows: U(t)
@@ -6197,7 +6202,7 @@ var Ym = d({
6197
6202
  let r = e.id || o.params.id;
6198
6203
  e.enableLoading && (_.value = !0, n("update:loading", !0));
6199
6204
  let i = U(k.value);
6200
- if (t && delete i.orderby, I.value.fetch) wf([I.value.fetch], "", i).then((e) => {
6205
+ if (t && delete i.orderby, I.value.fetch) Cf([I.value.fetch], "", i).then((e) => {
6201
6206
  let t = ld(e);
6202
6207
  k.value.query = t.query, E.value = t.records, _.value = !1, v.value = !0, n("on-update:value", i), n("update:loading", !1), R.value.cache && r && Y(`tables_${r}`, k.value);
6203
6208
  }).catch(() => {
@@ -6208,7 +6213,7 @@ var Ym = d({
6208
6213
  t = e.fetch ? e.fetch({
6209
6214
  ...i,
6210
6215
  tableId: r
6211
- }) : yf({
6216
+ }) : vf({
6212
6217
  ...i,
6213
6218
  tableId: r
6214
6219
  }), t.then((e) => {
@@ -6259,7 +6264,7 @@ var Ym = d({
6259
6264
  width: 180,
6260
6265
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => ud(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
6261
6266
  }], ve = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !M.value || M.value && M.value[0] === "*" ? !1 : !M.value?.includes(t), ye = async (e) => {
6262
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Im(N.value, e, () => m.value?.getFormValues());
6267
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Fm(N.value, e, () => m.value?.getFormValues());
6263
6268
  return x.value = t, {
6264
6269
  form: t,
6265
6270
  fillingDefaultValue: n,
@@ -6270,7 +6275,7 @@ var Ym = d({
6270
6275
  a = e.fetch ? e.fetch({
6271
6276
  id: t.id,
6272
6277
  tableId: i
6273
- }) : yf({
6278
+ }) : vf({
6274
6279
  id: t.id,
6275
6280
  tableId: i
6276
6281
  }), a.then((e) => {
@@ -6354,7 +6359,7 @@ var Ym = d({
6354
6359
  ...t,
6355
6360
  tableId: a,
6356
6361
  sub_table_ids: r
6357
- }) : xf({
6362
+ }) : bf({
6358
6363
  ...t,
6359
6364
  tableId: a,
6360
6365
  sub_table_ids: r
@@ -6372,7 +6377,7 @@ var Ym = d({
6372
6377
  });
6373
6378
  };
6374
6379
  } else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
6375
- bf({
6380
+ yf({
6376
6381
  tableId: e.id || o.params.id,
6377
6382
  ...t,
6378
6383
  is_disabled: "1"
@@ -6381,7 +6386,7 @@ var Ym = d({
6381
6386
  }).catch(() => null);
6382
6387
  };
6383
6388
  else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
6384
- bf({
6389
+ yf({
6385
6390
  tableId: e.id || o.params.id,
6386
6391
  ...t,
6387
6392
  is_disabled: "0"
@@ -6396,12 +6401,12 @@ var Ym = d({
6396
6401
  i = e.fetch ? e.fetch({
6397
6402
  id: r.id,
6398
6403
  tableId: a
6399
- }) : yf({
6404
+ }) : vf({
6400
6405
  id: r.id,
6401
6406
  tableId: a
6402
6407
  }), i.then((e) => {
6403
6408
  let r = e && e[0];
6404
- wf([t.action], r.id, r).then((e) => {
6409
+ Cf([t.action], r.id, r).then((e) => {
6405
6410
  if (n && typeof n == "string") {
6406
6411
  try {
6407
6412
  Function("rowData", "res", n)(r, e).then((e) => {
@@ -6440,8 +6445,8 @@ var Ym = d({
6440
6445
  };
6441
6446
  }
6442
6447
  }, Ce = async () => {
6443
- re.value = !1, Dm();
6444
- let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Lm(N.value, e.child, 0, () => ({}), ae);
6448
+ re.value = !1, Em();
6449
+ let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Im(N.value, e.child, 0, () => ({}), ae);
6445
6450
  !l.value && R.value.index && t.unshift({
6446
6451
  title: "#",
6447
6452
  key: "index",
@@ -6483,7 +6488,7 @@ var Ym = d({
6483
6488
  hide: !0,
6484
6489
  width: Number(typeof R.value.actionWidth == "string" ? R.value.actionWidth.replace("px", "") : R.value.actionWidth),
6485
6490
  render(t) {
6486
- return Nf({
6491
+ return Mf({
6487
6492
  buttons: e,
6488
6493
  rowData: t,
6489
6494
  callback: B,
@@ -6497,7 +6502,7 @@ var Ym = d({
6497
6502
  if (a) {
6498
6503
  let e = X(`tables_filter_${a}`, !1);
6499
6504
  if (e) try {
6500
- let n = await Sf(a);
6505
+ let n = await xf(a);
6501
6506
  n && (e = JSON.parse(n), c = vd(t, e));
6502
6507
  } catch {}
6503
6508
  }
@@ -6510,7 +6515,7 @@ var Ym = d({
6510
6515
  filter: "default",
6511
6516
  filterOptionValue: null,
6512
6517
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Le }, { default: () => s("Common.expand") }), f(L, { onClick: Re }, { default: () => s("Common.contract") })]),
6513
- renderExpand: (e) => f(Um, {
6518
+ renderExpand: (e) => f(Hm, {
6514
6519
  data: i,
6515
6520
  value: e
6516
6521
  })
@@ -6531,12 +6536,12 @@ var Ym = d({
6531
6536
  let e = 0;
6532
6537
  C.value.forEach((t) => {
6533
6538
  t.show && (e += Number(t.width || 140));
6534
- }), D.value = e, Y(`tables_filter_${n}`, t.filter((e) => e.key)), Cf({
6539
+ }), D.value = e, Y(`tables_filter_${n}`, t.filter((e) => e.key)), Sf({
6535
6540
  table_id: n,
6536
6541
  data: JSON.stringify(t)
6537
6542
  }).catch(() => null);
6538
6543
  }
6539
- }, { run: De } = ym(Ee), { run: Oe } = ym((e, t) => {
6544
+ }, { run: De } = vm(Ee), { run: Oe } = vm((e, t) => {
6540
6545
  let n = [];
6541
6546
  C.value.forEach((r) => {
6542
6547
  r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
@@ -6563,7 +6568,7 @@ var Ym = d({
6563
6568
  i = e.formFetch ? e.formFetch({
6564
6569
  tableId: a,
6565
6570
  ...t
6566
- }) : bf({
6571
+ }) : yf({
6567
6572
  tableId: a,
6568
6573
  ...t
6569
6574
  }), i.then(() => {
@@ -6576,13 +6581,13 @@ var Ym = d({
6576
6581
  fetch: null,
6577
6582
  when_drawer_open: "",
6578
6583
  when_before_save: ""
6579
- }, R.value = Fm();
6584
+ }, R.value = Pm();
6580
6585
  }, Me = (t) => {
6581
6586
  let n = nt.parse(t.viewJson);
6582
- b.value = t.tableTitle, N.value = jm(n.table), P.value = Vf(e.actions || n.action);
6583
- let r = Vf(n.suffix || []);
6584
- F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Nm(n.trigger);
6585
- let i = Fm(e.options ?? n.option);
6587
+ b.value = t.tableTitle, N.value = Am(n.table), P.value = Bf(e.actions || n.action);
6588
+ let r = Bf(n.suffix || []);
6589
+ F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Mm(n.trigger);
6590
+ let i = Pm(e.options ?? n.option);
6586
6591
  t.tableTitle && i.title && dd(t.tableTitle), R.value = i;
6587
6592
  }, Ne = async () => {
6588
6593
  v.value = !1, je();
@@ -6600,7 +6605,7 @@ var Ym = d({
6600
6605
  ne.value = s("Notice.network"), re.value = !0;
6601
6606
  return;
6602
6607
  }
6603
- Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], R.value = Fm(e.options), await Ce()) : await km(t).then(async (e) => {
6608
+ R.value.asynchronous ? n("update:asynchronous", R.value.asynchronous) : n("update:asynchronous", null), Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], R.value = Pm(e.options), await Ce()) : await Om(t).then(async (e) => {
6604
6609
  Me(e), await Ce();
6605
6610
  }).catch((e) => {
6606
6611
  ne.value = e?.message || s("Notice.network"), re.value = !0;
@@ -6639,7 +6644,7 @@ var Ym = d({
6639
6644
  if (_.value) return;
6640
6645
  _.value = !0;
6641
6646
  let t = e.id || o.params.id;
6642
- t && (ad(`tables_filter_${t}`), Cf({
6647
+ t && (ad(`tables_filter_${t}`), Sf({
6643
6648
  table_id: t,
6644
6649
  data: null
6645
6650
  }).catch(() => null).finally(() => {
@@ -6717,14 +6722,14 @@ var Ym = d({
6717
6722
  }
6718
6723
  };
6719
6724
  }
6720
- }), Xm = { class: "uz-com-title" }, Zm = {
6725
+ }), Ym = { class: "uz-com-title" }, Xm = {
6721
6726
  ref: "mRef",
6722
6727
  class: "uz-table-m-content"
6723
- }, Qm = {
6728
+ }, Zm = {
6724
6729
  key: 1,
6725
6730
  class: "uz-transform-fade-in"
6726
- }, $m = { class: "uz-com-title" }, eh = ["data-index"];
6727
- function th(t, s, u, d, f, p) {
6731
+ }, Qm = { class: "uz-com-title" }, $m = ["data-index"];
6732
+ function eh(t, s, u, d, f, p) {
6728
6733
  let m = D("SkeletonLoading"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), k = D("GridDots"), ee = D("VueDraggable"), j = D("NPopover"), M = D("UzTableFile"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), R = D("UzTableDrawer");
6729
6734
  return x(), i("div", {
6730
6735
  class: "uz-table",
@@ -6789,7 +6794,7 @@ function th(t, s, u, d, f, p) {
6789
6794
  key: "0"
6790
6795
  } : {
6791
6796
  name: "header",
6792
- fn: N(() => [a("div", Xm, A(t.title), 1)]),
6797
+ fn: N(() => [a("div", Ym, A(t.title), 1)]),
6793
6798
  key: "1"
6794
6799
  }]), 1032, [
6795
6800
  "data",
@@ -6797,7 +6802,7 @@ function th(t, s, u, d, f, p) {
6797
6802
  "cache",
6798
6803
  "loading",
6799
6804
  "onOnUpdate:value"
6800
- ]), a("div", Zm, [l(C, {
6805
+ ]), a("div", Xm, [l(C, {
6801
6806
  tableColumns: t.tableCols,
6802
6807
  tableData: t.tableData,
6803
6808
  tableQueries: t.tableQueries,
@@ -6815,7 +6820,7 @@ function th(t, s, u, d, f, p) {
6815
6820
  "minH",
6816
6821
  "maxH",
6817
6822
  "onUpdate:rowKeys"
6818
- ])], 512)], 2)) : (x(), i("div", Qm, [l(F, {
6823
+ ])], 512)], 2)) : (x(), i("div", Zm, [l(F, {
6819
6824
  data: t.searchData,
6820
6825
  id: t.id || t.route.params.id,
6821
6826
  cache: t.tableOption.cache,
@@ -6870,7 +6875,7 @@ function th(t, s, u, d, f, p) {
6870
6875
  _: 1
6871
6876
  })]),
6872
6877
  _: 1
6873
- })], 8, eh)), [[te, !e.hide]])), 128)), l(h, {
6878
+ })], 8, $m)), [[te, !e.hide]])), 128)), l(h, {
6874
6879
  block: "",
6875
6880
  tertiary: "",
6876
6881
  loading: t.loading,
@@ -6883,8 +6888,22 @@ function th(t, s, u, d, f, p) {
6883
6888
  }, 8, ["modelValue", "onEnd"])]),
6884
6889
  _: 1
6885
6890
  })) : r("", !0),
6886
- t.addFetch && t.tableOption.addButton ? (x(), n(h, {
6891
+ t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
6887
6892
  key: 1,
6893
+ data: t.suffixes,
6894
+ hProps: {
6895
+ quaternary: !1,
6896
+ size: "medium",
6897
+ text: !1
6898
+ }
6899
+ }, null, 8, ["data"])) : r("", !0),
6900
+ t.tableOption.filePort ? (x(), n(M, {
6901
+ key: 2,
6902
+ query: t.tableQueries,
6903
+ "onOnUpdate:change": t.doPortChange
6904
+ }, null, 8, ["query", "onOnUpdate:change"])) : r("", !0),
6905
+ t.addFetch && t.tableOption.addButton ? (x(), n(h, {
6906
+ key: 3,
6888
6907
  secondary: "",
6889
6908
  disabled: t.checkRole("add"),
6890
6909
  onClick: t.handleAdd
@@ -6896,20 +6915,6 @@ function th(t, s, u, d, f, p) {
6896
6915
  default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
6897
6916
  _: 1
6898
6917
  }, 8, ["disabled", "onClick"])) : r("", !0),
6899
- t.tableOption.filePort ? (x(), n(M, {
6900
- key: 2,
6901
- query: t.tableQueries,
6902
- "onOnUpdate:change": t.doPortChange
6903
- }, null, 8, ["query", "onOnUpdate:change"])) : r("", !0),
6904
- t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
6905
- key: 3,
6906
- data: t.suffixes,
6907
- hProps: {
6908
- quaternary: !1,
6909
- size: "medium",
6910
- text: !1
6911
- }
6912
- }, null, 8, ["data"])) : r("", !0),
6913
6918
  E(t.$slots, "action")
6914
6919
  ]),
6915
6920
  _: 2
@@ -6919,7 +6924,7 @@ function th(t, s, u, d, f, p) {
6919
6924
  key: "0"
6920
6925
  } : {
6921
6926
  name: "header",
6922
- fn: N(() => [a("div", $m, A(t.title), 1)]),
6927
+ fn: N(() => [a("div", Qm, A(t.title), 1)]),
6923
6928
  key: "1"
6924
6929
  }]), 1032, [
6925
6930
  "data",
@@ -6983,7 +6988,7 @@ function th(t, s, u, d, f, p) {
6983
6988
  l(R, { ref: "drawerRef" }, null, 512)
6984
6989
  ], 4);
6985
6990
  }
6986
- var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
6991
+ var th = /*#__PURE__*/ W(Jm, [["render", eh]]), nh = d({
6987
6992
  name: "UzTableChild",
6988
6993
  components: {
6989
6994
  NSpin: Me,
@@ -7013,7 +7018,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7013
7018
  emits: ["update:value"],
7014
7019
  setup(e, { emit: n, expose: r }) {
7015
7020
  let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Xe(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
7016
- let { formDefaultValue: r, fillingDefaultArray: i } = await Im(U(n ?? e.item.params.columns), t, void 0, !0);
7021
+ let { formDefaultValue: r, fillingDefaultArray: i } = await Fm(U(n ?? e.item.params.columns), t, void 0, !0);
7017
7022
  return C.value = r, i;
7018
7023
  }, O = async (t) => {
7019
7024
  if (_.value) return;
@@ -7044,7 +7049,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7044
7049
  });
7045
7050
  }, k = (e) => e.delete ? "uz-table-child-delete" : "", A = async (t, n = !1) => {
7046
7051
  g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
7047
- let { tableColumns: r, tableWidth: i } = await Lm(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
7052
+ let { tableColumns: r, tableWidth: i } = await Im(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
7048
7053
  r.unshift({
7049
7054
  title: " ",
7050
7055
  key: "index",
@@ -7077,7 +7082,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7077
7082
  width: 60,
7078
7083
  render(t, n) {
7079
7084
  let r = [];
7080
- return e.item.params.childActions && e.item.params.actions && Vf(e.item.params.actions).forEach((e) => {
7085
+ return e.item.params.childActions && e.item.params.actions && Bf(e.item.params.actions).forEach((e) => {
7081
7086
  e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
7082
7087
  }), e.item.params.showDelete && e.status !== 2 && (x.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
7083
7088
  type: "normal",
@@ -7089,7 +7094,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7089
7094
  let n = e.item.params.deleteFn;
7090
7095
  n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
7091
7096
  }
7092
- }), Nf({
7097
+ }), Mf({
7093
7098
  buttons: r,
7094
7099
  rowData: t
7095
7100
  });
@@ -7221,18 +7226,18 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7221
7226
  }
7222
7227
  };
7223
7228
  }
7224
- }), ih = { class: "uz-flex uz-justify-between" }, ah = { class: "uz-com-title" }, oh = {
7229
+ }), rh = { class: "uz-flex uz-justify-between" }, ih = { class: "uz-com-title" }, ah = {
7225
7230
  key: 0,
7226
7231
  class: "uz-table-asterisk"
7227
- }, sh = { class: "uz-flex uz-gap-2" }, ch = { class: "uz-flex uz-justify-end uz-gap-2" };
7228
- function lh(t, s, u, d, f, p) {
7232
+ }, oh = { class: "uz-flex uz-gap-2" }, sh = { class: "uz-flex uz-justify-end uz-gap-2" };
7233
+ function ch(t, s, u, d, f, p) {
7229
7234
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
7230
7235
  return x(), n(S, {
7231
7236
  show: t.spin,
7232
7237
  class: "uz-flex-1 uz-w-full"
7233
7238
  }, {
7234
7239
  default: N(() => [
7235
- a("div", ih, [a("div", ah, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", oh, " \xA0* ")) : r("", !0)]), a("div", sh, [
7240
+ a("div", rh, [a("div", ih, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", ah, " \xA0* ")) : r("", !0)]), a("div", oh, [
7236
7241
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
7237
7242
  key: e.key,
7238
7243
  type: e.color,
@@ -7308,7 +7313,7 @@ function lh(t, s, u, d, f, p) {
7308
7313
  "scroll-x",
7309
7314
  "class",
7310
7315
  "row-class-name"
7311
- ])) : r("", !0), a("div", ch, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
7316
+ ])) : r("", !0), a("div", sh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
7312
7317
  key: 0,
7313
7318
  type: "success",
7314
7319
  secondary: "",
@@ -7339,7 +7344,7 @@ function lh(t, s, u, d, f, p) {
7339
7344
  _: 1
7340
7345
  }, 8, ["show"]);
7341
7346
  }
7342
- var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7347
+ var lh = /*#__PURE__*/ W(nh, [["render", ch]]), uh = d({
7343
7348
  name: "UzTableQuestChild",
7344
7349
  components: { NDataTable: oe },
7345
7350
  props: {
@@ -7367,7 +7372,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7367
7372
  }), o.value = t, i.value = !1;
7368
7373
  }
7369
7374
  }, l = async (i) => {
7370
- let { tableColumns: c, tableWidth: l } = await Lm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7375
+ let { tableColumns: c, tableWidth: l } = await Im(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7371
7376
  c.unshift({
7372
7377
  title: " ",
7373
7378
  key: "index",
@@ -7386,7 +7391,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7386
7391
  hide: !0,
7387
7392
  width: 60,
7388
7393
  render(t) {
7389
- return Nf({ buttons: [{
7394
+ return Mf({ buttons: [{
7390
7395
  type: "normal",
7391
7396
  color: "primary",
7392
7397
  key: "detail",
@@ -7407,7 +7412,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7407
7412
  }), M(async () => {
7408
7413
  try {
7409
7414
  if (e.formValue && e.formValue.id && e.item.params.searchKey) {
7410
- let t = await yf({
7415
+ let t = await vf({
7411
7416
  tableId: e.item.params.link,
7412
7417
  params: [{
7413
7418
  key: e.item.params.searchKey,
@@ -7441,11 +7446,11 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7441
7446
  tableScrollX: s
7442
7447
  };
7443
7448
  }
7444
- }), fh = { class: "uz-flex-1 uz-w-full" }, ph = { class: "uz-flex uz-justify-between" }, mh = { class: "uz-com-title" };
7445
- function hh(e, t, n, r, o, s) {
7449
+ }), dh = { class: "uz-flex-1 uz-w-full" }, fh = { class: "uz-flex uz-justify-between" }, ph = { class: "uz-com-title" };
7450
+ function mh(e, t, n, r, o, s) {
7446
7451
  let c = D("NDataTable"), u = D("UzTableDrawer");
7447
- return x(), i("div", fh, [
7448
- a("div", ph, [a("div", mh, A(e.item.label), 1)]),
7452
+ return x(), i("div", dh, [
7453
+ a("div", fh, [a("div", ph, A(e.item.label), 1)]),
7449
7454
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
7450
7455
  l(c, {
7451
7456
  columns: e.columns,
@@ -7470,7 +7475,7 @@ function hh(e, t, n, r, o, s) {
7470
7475
  l(u, { ref: "drawerRef" }, null, 512)
7471
7476
  ]);
7472
7477
  }
7473
- var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7478
+ var hh = /*#__PURE__*/ W(uh, [["render", mh]]), gh = d({
7474
7479
  name: "UzTableDrawer",
7475
7480
  components: {
7476
7481
  NButton: L,
@@ -7496,6 +7501,7 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7496
7501
  addButton: 1,
7497
7502
  filterButton: 1,
7498
7503
  commonTime: 1,
7504
+ asynchronous: "",
7499
7505
  filePort: 0,
7500
7506
  actionWidth: 300,
7501
7507
  drawerWidth: "70%",
@@ -7540,11 +7546,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7540
7546
  linkFn: t
7541
7547
  };
7542
7548
  let r = e.split(".")[0];
7543
- km(r).then((e) => {
7549
+ Om(r).then((e) => {
7544
7550
  h(async () => {
7545
7551
  let t = nt.parse(e.viewJson);
7546
- d.value = Fm(t.option), u.value = !0;
7547
- let { form: i } = await Im(jm(t.table), n);
7552
+ d.value = Pm(t.option), u.value = !0;
7553
+ let { form: i } = await Fm(Am(t.table), n);
7548
7554
  y.value = t.trigger, n && T(n);
7549
7555
  let a = X(`tables_cache_link_${r}`, !1);
7550
7556
  a && (c.value = a), h(() => {
@@ -7600,11 +7606,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7600
7606
  return;
7601
7607
  } else {
7602
7608
  let t = l.value.link.split(".")[0];
7603
- bf({
7609
+ yf({
7604
7610
  tableId: t,
7605
7611
  ...e
7606
7612
  }).then(() => {
7607
- Dm(), yf({ tableId: t }).then((e) => {
7613
+ Em(), vf({ tableId: t }).then((e) => {
7608
7614
  let r = l.value.link.split("."), i;
7609
7615
  if (l.value.linkFn) {
7610
7616
  let t = l.value.linkFn;
@@ -7637,11 +7643,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7637
7643
  }
7638
7644
  };
7639
7645
  }
7640
- }), vh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, yh = {
7646
+ }), _h = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, vh = {
7641
7647
  key: 0,
7642
7648
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7643
- }, bh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, xh = { class: "uz-flex uz-gap-2" };
7644
- function Sh(t, s, u, d, f, p) {
7649
+ }, yh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, bh = { class: "uz-flex uz-gap-2" };
7650
+ function xh(t, s, u, d, f, p) {
7645
7651
  let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
7646
7652
  return x(), i(e, null, [l(S, {
7647
7653
  show: t.drawer,
@@ -7667,7 +7673,7 @@ function Sh(t, s, u, d, f, p) {
7667
7673
  message: t.spinMsg,
7668
7674
  status: t.spinStatus
7669
7675
  }, {
7670
- default: N(() => [a("div", vh, [t.skeletonShow ? (x(), i("div", yh, [
7676
+ default: N(() => [a("div", _h, [t.skeletonShow ? (x(), i("div", vh, [
7671
7677
  l(m, {
7672
7678
  size: "large",
7673
7679
  style: { height: "156px" }
@@ -7730,7 +7736,7 @@ function Sh(t, s, u, d, f, p) {
7730
7736
  _: 2
7731
7737
  }, [t.formStatus === 2 ? void 0 : {
7732
7738
  name: "footer",
7733
- fn: N(() => [a("div", bh, [t.isMobile ? r("", !0) : (x(), n(v, {
7739
+ fn: N(() => [a("div", yh, [t.isMobile ? r("", !0) : (x(), n(v, {
7734
7740
  key: 0,
7735
7741
  loading: t.spinShow,
7736
7742
  type: "success",
@@ -7739,7 +7745,7 @@ function Sh(t, s, u, d, f, p) {
7739
7745
  }, {
7740
7746
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
7741
7747
  _: 1
7742
- }, 8, ["loading"])), a("div", xh, [
7748
+ }, 8, ["loading"])), a("div", bh, [
7743
7749
  l(v, {
7744
7750
  loading: t.spinShow,
7745
7751
  class: "uz-drawer-button",
@@ -7807,7 +7813,7 @@ function Sh(t, s, u, d, f, p) {
7807
7813
  _: 1
7808
7814
  }, 8, ["show"])], 64);
7809
7815
  }
7810
- var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
7816
+ var Sh = /*#__PURE__*/ W(gh, [["render", xh]]), Ch = d({
7811
7817
  name: "UzTableMobileList",
7812
7818
  props: {
7813
7819
  tableData: {
@@ -7825,12 +7831,12 @@ var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
7825
7831
  },
7826
7832
  emits: ["update:row-keys"],
7827
7833
  setup() {}
7828
- }), Th = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Eh = {
7834
+ }), wh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Th = {
7829
7835
  key: 1,
7830
7836
  class: "uz-table-mobile-group-txt"
7831
7837
  };
7832
- function Dh(t, o, s, c, l, u) {
7833
- return x(), i("div", Th, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
7838
+ function Eh(t, o, s, c, l, u) {
7839
+ return x(), i("div", wh, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
7834
7840
  key: o.key,
7835
7841
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
7836
7842
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
@@ -7841,11 +7847,11 @@ function Dh(t, o, s, c, l, u) {
7841
7847
  class: "mobile"
7842
7848
  })) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, A(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(k(() => {
7843
7849
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7844
- }), { key: 0 })) : (x(), i("div", Eh, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7850
+ }), { key: 0 })) : (x(), i("div", Th, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7845
7851
  }
7846
7852
  //#endregion
7847
7853
  //#region components/table/mobile.vue?vue&type=script&lang.ts
7848
- var Oh = d({
7854
+ var Dh = d({
7849
7855
  name: "UzTableMobile",
7850
7856
  components: {
7851
7857
  NCheckbox: re,
@@ -7853,7 +7859,7 @@ var Oh = d({
7853
7859
  NPagination: we,
7854
7860
  NCheckboxGroup: ie,
7855
7861
  NRadioGroup: Oe,
7856
- UzTableMobileList: /* @__PURE__ */ W(wh, [["render", Dh], ["__scopeId", "data-v-84c394fe"]])
7862
+ UzTableMobileList: /* @__PURE__ */ W(Ch, [["render", Eh], ["__scopeId", "data-v-84c394fe"]])
7857
7863
  },
7858
7864
  props: {
7859
7865
  tableData: {
@@ -7900,17 +7906,17 @@ var Oh = d({
7900
7906
  }
7901
7907
  };
7902
7908
  }
7903
- }), kh = {
7909
+ }), Oh = {
7904
7910
  key: 0,
7905
7911
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7906
- }, Ah = {
7912
+ }, kh = {
7907
7913
  key: 0,
7908
7914
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7909
- }, jh = {
7915
+ }, Ah = {
7910
7916
  key: 0,
7911
7917
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7912
7918
  };
7913
- function Mh(t, a, o, s, c, u) {
7919
+ function jh(t, a, o, s, c, u) {
7914
7920
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
7915
7921
  return t.selection === 2 ? (x(), n(m, {
7916
7922
  key: 0,
@@ -7937,7 +7943,7 @@ function Mh(t, a, o, s, c, u) {
7937
7943
  "tableColumns"
7938
7944
  ])]),
7939
7945
  _: 2
7940
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
7946
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Oh, [l(p, {
7941
7947
  page: t.tableQueries.query.page,
7942
7948
  "onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7943
7949
  "item-count": t.tableQueries.query.itemCount,
@@ -7979,7 +7985,7 @@ function Mh(t, a, o, s, c, u) {
7979
7985
  "tableColumns"
7980
7986
  ])]),
7981
7987
  _: 2
7982
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
7988
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
7983
7989
  page: t.tableQueries.query.page,
7984
7990
  "onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7985
7991
  "item-count": t.tableQueries.query.itemCount,
@@ -8014,7 +8020,7 @@ function Mh(t, a, o, s, c, u) {
8014
8020
  "tableData",
8015
8021
  "tableIndex",
8016
8022
  "tableColumns"
8017
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", jh, [l(p, {
8023
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
8018
8024
  page: t.tableQueries.query.page,
8019
8025
  "onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
8020
8026
  "item-count": t.tableQueries.query.itemCount,
@@ -8027,7 +8033,7 @@ function Mh(t, a, o, s, c, u) {
8027
8033
  "onUpdate:page"
8028
8034
  ])])) : r("", !0)], 4));
8029
8035
  }
8030
- var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]]), Ph = d({
8036
+ var Mh = /*#__PURE__*/ W(Dh, [["render", jh], ["__scopeId", "data-v-70b54e3b"]]), Nh = d({
8031
8037
  name: "UzTableFile",
8032
8038
  components: {
8033
8039
  NDropdown: B,
@@ -8095,7 +8101,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8095
8101
  }), m = () => {
8096
8102
  s.value = null;
8097
8103
  }, h = () => {
8098
- o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8104
+ o.value || (o.value = !0, wf(r.params.id).then((e) => {
8099
8105
  let t = document.createElement("a");
8100
8106
  t.download = "模板.xlsx", t.target = "_blank", t.style.display = "none", t.href = URL.createObjectURL(new Blob([e.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(t), t.click(), URL.revokeObjectURL(t.href), document.body.removeChild(t);
8101
8107
  }).catch(() => null).finally(() => {
@@ -8116,7 +8122,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8116
8122
  _(), o.value = !1;
8117
8123
  }));
8118
8124
  }, _ = () => {
8119
- o.value || (o.value = !0, Ef(r.params.id).then((e) => {
8125
+ o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8120
8126
  d.value = e;
8121
8127
  }).catch(() => null).finally(() => {
8122
8128
  o.value = !1;
@@ -8142,7 +8148,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8142
8148
  draggable: !0,
8143
8149
  onPositiveClick: () => {
8144
8150
  let t = e.query ?? {};
8145
- Df({
8151
+ Ef({
8146
8152
  tableKey: r.params.id,
8147
8153
  ...t
8148
8154
  }).then((e) => {
@@ -8168,11 +8174,11 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8168
8174
  }
8169
8175
  };
8170
8176
  }
8171
- }), Fh = { class: "uz-file-port-modal" }, Ih = {
8177
+ }), Ph = { class: "uz-file-port-modal" }, Fh = {
8172
8178
  key: 1,
8173
8179
  class: "uz-file-port-panel"
8174
- }, Lh = { class: "uz-flex uz-justify-between" };
8175
- function Rh(t, r, o, s, u, d) {
8180
+ }, Ih = { class: "uz-flex uz-justify-between" };
8181
+ function Lh(t, r, o, s, u, d) {
8176
8182
  let f = D("FileText"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
8177
8183
  return x(), i(e, null, [l(h, {
8178
8184
  trigger: "hover",
@@ -8208,8 +8214,8 @@ function Rh(t, r, o, s, u, d) {
8208
8214
  default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
8209
8215
  _: 1
8210
8216
  }, 8, ["loading", "onClick"])]),
8211
- default: N(() => [a("div", Fh, [
8212
- t.rawFile ? (x(), i("div", Ih, [
8217
+ default: N(() => [a("div", Ph, [
8218
+ t.rawFile ? (x(), i("div", Fh, [
8213
8219
  r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
8214
8220
  xmlns: "http://www.w3.org/2000/svg",
8215
8221
  viewBox: "0 0 24 24",
@@ -8256,7 +8262,7 @@ function Rh(t, r, o, s, u, d) {
8256
8262
  }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), a("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
8257
8263
  _: 1
8258
8264
  }, 8, ["on-before-upload"])),
8259
- a("div", Lh, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8265
+ a("div", Ih, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8260
8266
  onClick: t.init,
8261
8267
  loading: t.loading,
8262
8268
  secondary: ""
@@ -8277,7 +8283,7 @@ function Rh(t, r, o, s, u, d) {
8277
8283
  _: 1
8278
8284
  }, 8, ["show", "on-after-leave"])], 64);
8279
8285
  }
8280
- var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-4b30705b"]]), $ = C({
8286
+ var Rh = /*#__PURE__*/ W(Nh, [["render", Lh], ["__scopeId", "data-v-ca79bf5f"]]), $ = C({
8281
8287
  page: {
8282
8288
  label: "首页",
8283
8289
  key: "/",
@@ -8288,7 +8294,7 @@ var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-4b30705b"]])
8288
8294
  active: "/",
8289
8295
  thumbnail: []
8290
8296
  });
8291
- function Bh(e) {
8297
+ function zh(e) {
8292
8298
  $.cache = e.cache, $.page = {
8293
8299
  label: e.label,
8294
8300
  key: e.key,
@@ -8303,14 +8309,14 @@ function Bh(e) {
8303
8309
  closable: !1
8304
8310
  }];
8305
8311
  }
8306
- function Vh(e) {
8312
+ function Bh(e) {
8307
8313
  $.active = e, G.push(e), Y($.cache, $, 0);
8308
8314
  }
8309
- function Hh(e, t) {
8315
+ function Vh(e, t) {
8310
8316
  let n = $.thumbnail.find((t) => t.key === e);
8311
8317
  n && (n.key = t, $.active = t, Y($.cache, $, 0));
8312
8318
  }
8313
- function Uh(e) {
8319
+ function Hh(e) {
8314
8320
  let t = $.thumbnail.find((t) => t.path === e.key);
8315
8321
  t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
8316
8322
  ...e,
@@ -8318,7 +8324,7 @@ function Uh(e) {
8318
8324
  closable: !0
8319
8325
  }), G.push(e.key));
8320
8326
  }
8321
- function Wh(e) {
8327
+ function Uh(e) {
8322
8328
  let t = $.thumbnail.findIndex((t) => t.key === e);
8323
8329
  if ($.thumbnail.splice(t, 1), $.active === e) {
8324
8330
  let e = $.thumbnail[t - 1]?.key || "";
@@ -8326,12 +8332,12 @@ function Wh(e) {
8326
8332
  }
8327
8333
  Y($.cache, $, 0);
8328
8334
  }
8329
- function Gh() {
8335
+ function Wh() {
8330
8336
  $.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
8331
8337
  }
8332
8338
  //#endregion
8333
8339
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
8334
- var Kh = d({
8340
+ var Gh = d({
8335
8341
  name: "UzThumbnail",
8336
8342
  components: {
8337
8343
  NTabs: Fe,
@@ -8353,29 +8359,29 @@ var Kh = d({
8353
8359
  setup(e, { slots: t }) {
8354
8360
  let n = w(!!t.prefix), r = qe();
8355
8361
  return y(() => {
8356
- Bh(e.option), $.active !== r.path && Hh(r.path, r.fullPath);
8362
+ zh(e.option), $.active !== r.path && Vh(r.path, r.fullPath);
8357
8363
  }), j(() => r, (e) => {
8358
- $.active === r.path && Hh(e.path, e.fullPath);
8364
+ $.active === r.path && Vh(e.path, e.fullPath);
8359
8365
  }, { deep: !0 }), j(() => e.option, (e) => {
8360
- Bh(e);
8366
+ zh(e);
8361
8367
  }, { deep: !0 }), {
8362
8368
  thumbnailStore: $,
8363
8369
  isSlotPrefix: n,
8364
8370
  handleClose: (e) => {
8365
- Wh(e);
8371
+ Uh(e);
8366
8372
  },
8367
8373
  handleChange: (e) => {
8368
- Vh(e);
8374
+ Bh(e);
8369
8375
  },
8370
8376
  handleClear: () => {
8371
- Gh();
8377
+ Wh();
8372
8378
  }
8373
8379
  };
8374
8380
  }
8375
8381
  });
8376
8382
  //#endregion
8377
8383
  //#region components/thumbnail/index.vue
8378
- function qh(t, r, a, s, u, d) {
8384
+ function Kh(t, r, a, s, u, d) {
8379
8385
  let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
8380
8386
  return x(), n(v, {
8381
8387
  value: t.thumbnailStore.active,
@@ -8421,33 +8427,33 @@ function qh(t, r, a, s, u, d) {
8421
8427
  "on-update:value"
8422
8428
  ]);
8423
8429
  }
8424
- var Jh = /*#__PURE__*/ W(Kh, [["render", qh]]), Yh = "#007AFF", Xh = "#0A84FF", Zh = "#FF9500", Qh = "#FF9F0A", $h = "#28CD41", eg = "#32D74B", tg = "#FFCC00", ng = "#FFD60A", rg = "#FF3B30", ig = "#FF453A";
8425
- H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Xh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Qh, H.common.successColor = "#32D74B", H.common.successColorHover = eg, H.common.warningColor = "#FFD60A", H.common.successColorHover = ng, H.common.errorColor = "#FF453A", H.common.errorColorHover = ig, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
8426
- var ag = {
8430
+ var qh = /*#__PURE__*/ W(Gh, [["render", Kh]]), Jh = "#007AFF", Yh = "#0A84FF", Xh = "#FF9500", Zh = "#FF9F0A", Qh = "#28CD41", $h = "#32D74B", eg = "#FFCC00", tg = "#FFD60A", ng = "#FF3B30", rg = "#FF453A";
8431
+ H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Yh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Zh, H.common.successColor = "#32D74B", H.common.successColorHover = $h, H.common.warningColor = "#FFD60A", H.common.successColorHover = tg, H.common.errorColor = "#FF453A", H.common.errorColorHover = rg, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
8432
+ var ig = {
8427
8433
  common: {
8428
8434
  inputColor: "rgba(var(--input))",
8429
8435
  borderColor: "rgba(var(--border), 0.7)",
8430
8436
  borderRadius: "var(--borderRadius)",
8431
- primaryColor: Yh,
8432
- primaryColorHover: Xh,
8433
- primaryColorPressed: Yh,
8434
- primaryColorSuppl: Yh,
8435
- infoColor: Zh,
8436
- infoColorHover: Qh,
8437
- infoColorPressed: Zh,
8438
- infoColorSuppl: Zh,
8439
- successColor: $h,
8440
- successColorHover: eg,
8441
- successColorPressed: $h,
8442
- successColorSuppl: $h,
8443
- warningColor: tg,
8444
- warningColorHover: ng,
8445
- warningColorPressed: tg,
8446
- warningColorSuppl: tg,
8447
- errorColor: rg,
8448
- errorColorHover: ig,
8449
- errorColorPressed: rg,
8450
- errorColorSuppl: rg,
8437
+ primaryColor: Jh,
8438
+ primaryColorHover: Yh,
8439
+ primaryColorPressed: Jh,
8440
+ primaryColorSuppl: Jh,
8441
+ infoColor: Xh,
8442
+ infoColorHover: Zh,
8443
+ infoColorPressed: Xh,
8444
+ infoColorSuppl: Xh,
8445
+ successColor: Qh,
8446
+ successColorHover: $h,
8447
+ successColorPressed: Qh,
8448
+ successColorSuppl: Qh,
8449
+ warningColor: eg,
8450
+ warningColorHover: tg,
8451
+ warningColorPressed: eg,
8452
+ warningColorSuppl: eg,
8453
+ errorColor: ng,
8454
+ errorColorHover: rg,
8455
+ errorColorPressed: ng,
8456
+ errorColorSuppl: ng,
8451
8457
  cardColor: "#fff"
8452
8458
  },
8453
8459
  Button: { textColor: "rgb(var(--font))" },
@@ -8455,7 +8461,7 @@ var ag = {
8455
8461
  DatePicker: { itemBorderRadius: "var(--borderRadius)" },
8456
8462
  Notification: { borderRadius: "var(--borderRadius)" },
8457
8463
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
8458
- }, og = H, sg = d({
8464
+ }, ag = H, og = d({
8459
8465
  name: "UzWrap",
8460
8466
  components: { NConfigProvider: ae },
8461
8467
  setup() {
@@ -8463,14 +8469,14 @@ var ag = {
8463
8469
  zhCN: Ue,
8464
8470
  dateZhCN: Ve,
8465
8471
  commonStore: q,
8466
- lightTheme: ag,
8467
- darkTheme: og
8472
+ lightTheme: ig,
8473
+ darkTheme: ag
8468
8474
  };
8469
8475
  }
8470
8476
  });
8471
8477
  //#endregion
8472
8478
  //#region components/wrap/index.vue
8473
- function cg(e, t, r, i, a, o) {
8479
+ function sg(e, t, r, i, a, o) {
8474
8480
  let s = D("NConfigProvider");
8475
8481
  return x(), n(s, {
8476
8482
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -8489,10 +8495,10 @@ function cg(e, t, r, i, a, o) {
8489
8495
  "date-locale"
8490
8496
  ]);
8491
8497
  }
8492
- var lg = /*#__PURE__*/ W(sg, [["render", cg]]);
8498
+ var cg = /*#__PURE__*/ W(og, [["render", sg]]);
8493
8499
  //#endregion
8494
8500
  //#region components/ocr/preprocess.ts
8495
- function ug(e) {
8501
+ function lg(e) {
8496
8502
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
8497
8503
  for (let r = 0; r < n; r++) t[e[r]]++;
8498
8504
  let r = 0;
@@ -8507,7 +8513,7 @@ function ug(e) {
8507
8513
  }
8508
8514
  return c;
8509
8515
  }
8510
- function dg(e, t) {
8516
+ function ug(e, t) {
8511
8517
  return new Promise((n, r) => {
8512
8518
  let i = new Image();
8513
8519
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -8540,7 +8546,7 @@ function dg(e, t) {
8540
8546
  }
8541
8547
  let u = t.threshold;
8542
8548
  if (t.binarize) {
8543
- t.autoThreshold && (u = ug(l));
8549
+ t.autoThreshold && (u = lg(l));
8544
8550
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
8545
8551
  let n = l[t] < u ? 0 : 255;
8546
8552
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -8563,7 +8569,7 @@ function dg(e, t) {
8563
8569
  }
8564
8570
  //#endregion
8565
8571
  //#region components/ocr/index.vue?vue&type=script&lang.ts
8566
- var fg = d({
8572
+ var dg = d({
8567
8573
  name: "UzOcr",
8568
8574
  components: {
8569
8575
  NButton: L,
@@ -8600,7 +8606,7 @@ var fg = d({
8600
8606
  tessedit_char_blacklist: "|"
8601
8607
  }), a.value), v = async () => {
8602
8608
  if (f.value) try {
8603
- let e = await dg(f.value, {
8609
+ let e = await ug(f.value, {
8604
8610
  enabled: o.value,
8605
8611
  scale: s.value,
8606
8612
  grayscale: !0,
@@ -8637,7 +8643,7 @@ var fg = d({
8637
8643
  n.value = !0, r.value = e("OCR.analysis");
8638
8644
  let a = t;
8639
8645
  if (o.value || s.value > 1) try {
8640
- let e = await dg(t, {
8646
+ let e = await ug(t, {
8641
8647
  enabled: o.value,
8642
8648
  scale: s.value,
8643
8649
  grayscale: !0,
@@ -8699,25 +8705,25 @@ var fg = d({
8699
8705
  t: e
8700
8706
  };
8701
8707
  }
8702
- }), pg = { class: "uz-ocr" }, mg = { class: "uz-ocr-left-col" }, hg = { class: "uz-ocr-upload-card" }, gg = { class: "uz-ocr-upload-title" }, _g = {
8708
+ }), fg = { class: "uz-ocr" }, pg = { class: "uz-ocr-left-col" }, mg = { class: "uz-ocr-upload-card" }, hg = { class: "uz-ocr-upload-title" }, gg = {
8703
8709
  key: 1,
8704
8710
  class: "uz-ocr-preview-panel"
8705
- }, vg = { class: "uz-ocr-preview-box" }, yg = ["src"], bg = {
8711
+ }, _g = { class: "uz-ocr-preview-box" }, vg = ["src"], yg = {
8706
8712
  key: 0,
8707
8713
  class: "uz-ocr-threshold-badge"
8708
- }, xg = { class: "uz-ocr-preview-box" }, Sg = ["src"], Cg = { class: "uz-ocr-settings-form" }, wg = { class: "uz-settings-row" }, Tg = { class: "uz-settings-label" }, Eg = {
8714
+ }, bg = { class: "uz-ocr-preview-box" }, xg = ["src"], Sg = { class: "uz-ocr-settings-form" }, Cg = { class: "uz-settings-row" }, wg = { class: "uz-settings-label" }, Tg = {
8709
8715
  key: 0,
8710
8716
  class: "uz-ocr-nested-settings animate-fade-in"
8711
- }, Dg = { class: "uz-settings-row" }, Og = { class: "uz-settings-label" }, kg = { class: "uz-settings-row" }, Ag = { class: "uz-settings-label" }, jg = { class: "uz-ocr-right-col" }, Mg = { class: "uz-ocr-result-header" }, Ng = { class: "uz-result-title" }, Pg = {
8717
+ }, Eg = { class: "uz-settings-row" }, Dg = { class: "uz-settings-label" }, Og = { class: "uz-settings-row" }, kg = { class: "uz-settings-label" }, Ag = { class: "uz-ocr-right-col" }, jg = { class: "uz-ocr-result-header" }, Mg = { class: "uz-result-title" }, Ng = {
8712
8718
  key: 0,
8713
8719
  class: "uz-ocr-empty-state"
8714
- }, Fg = { class: "uz-empty-text" }, Ig = {
8720
+ }, Pg = { class: "uz-empty-text" }, Fg = {
8715
8721
  key: 1,
8716
8722
  class: "uz-ocr-result-tabs"
8717
8723
  };
8718
- function Lg(e, t, o, s, u, d) {
8724
+ function Ig(e, t, o, s, u, d) {
8719
8725
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
8720
- return x(), i("div", pg, [a("div", mg, [e.rawImage ? (x(), i("div", _g, [l(m, {
8726
+ return x(), i("div", fg, [a("div", pg, [e.rawImage ? (x(), i("div", gg, [l(m, {
8721
8727
  value: e.imagePreviewTab,
8722
8728
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
8723
8729
  type: "segment",
@@ -8727,21 +8733,21 @@ function Lg(e, t, o, s, u, d) {
8727
8733
  name: "processed",
8728
8734
  tab: e.t("OCR.previewProcessed")
8729
8735
  }, {
8730
- default: N(() => [a("div", vg, [a("img", {
8736
+ default: N(() => [a("div", _g, [a("img", {
8731
8737
  src: e.processedImage,
8732
8738
  alt: "Processed Preview",
8733
8739
  class: "uz-ocr-preview-img"
8734
- }, null, 8, yg), e.preEnabled && e.preBinarize ? (x(), i("div", bg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8740
+ }, null, 8, vg), e.preEnabled && e.preBinarize ? (x(), i("div", yg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8735
8741
  _: 1
8736
8742
  }, 8, ["tab"]), l(p, {
8737
8743
  name: "raw",
8738
8744
  tab: e.t("OCR.previewRaw")
8739
8745
  }, {
8740
- default: N(() => [a("div", xg, [a("img", {
8746
+ default: N(() => [a("div", bg, [a("img", {
8741
8747
  src: e.rawImage,
8742
8748
  alt: "Raw Preview",
8743
8749
  class: "uz-ocr-preview-img"
8744
- }, null, 8, Sg)])]),
8750
+ }, null, 8, xg)])]),
8745
8751
  _: 1
8746
8752
  }, 8, ["tab"])]),
8747
8753
  _: 1
@@ -8775,7 +8781,7 @@ function Lg(e, t, o, s, u, d) {
8775
8781
  "directory-dnd": "",
8776
8782
  class: "uz-w-full"
8777
8783
  }, {
8778
- default: N(() => [a("div", hg, [
8784
+ default: N(() => [a("div", mg, [
8779
8785
  t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
8780
8786
  xmlns: "http://www.w3.org/2000/svg",
8781
8787
  viewBox: "0 0 24 24",
@@ -8783,27 +8789,27 @@ function Lg(e, t, o, s, u, d) {
8783
8789
  height: "40",
8784
8790
  fill: "currentColor"
8785
8791
  }, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
8786
- a("div", gg, A(e.t("OCR.scan")), 1),
8792
+ a("div", hg, A(e.t("OCR.scan")), 1),
8787
8793
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8788
8794
  ])]),
8789
8795
  _: 1
8790
- }, 8, ["on-before-upload"])), a("div", Cg, [a("div", wg, [a("span", Tg, A(e.t("OCR.preprocess")), 1), l(_, {
8796
+ }, 8, ["on-before-upload"])), a("div", Sg, [a("div", Cg, [a("span", wg, A(e.t("OCR.preprocess")), 1), l(_, {
8791
8797
  value: e.preEnabled,
8792
8798
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8793
8799
  size: "small"
8794
- }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Eg, [a("div", Dg, [a("span", Og, A(e.t("OCR.scale")), 1), l(v, {
8800
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Tg, [a("div", Eg, [a("span", Dg, A(e.t("OCR.scale")), 1), l(v, {
8795
8801
  value: e.preScale,
8796
8802
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8797
8803
  options: e.scaleOptions,
8798
8804
  size: "small",
8799
8805
  class: "uz-settings-select"
8800
- }, null, 8, ["value", "options"])]), a("div", kg, [a("span", Ag, A(e.t("OCR.contrast")), 1), l(_, {
8806
+ }, null, 8, ["value", "options"])]), a("div", Og, [a("span", kg, A(e.t("OCR.contrast")), 1), l(_, {
8801
8807
  value: e.preContrast,
8802
8808
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8803
8809
  size: "small"
8804
- }, null, 8, ["value"])])])) : r("", !0)])]), a("div", jg, [a("div", Mg, [a("span", Ng, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Ig, A(e.fullText), 1)) : (x(), i("div", Pg, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Fg, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8810
+ }, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ag, [a("div", jg, [a("span", Mg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Fg, A(e.fullText), 1)) : (x(), i("div", Ng, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Pg, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
8805
8811
  }
8806
- var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]]), zg = /* @__PURE__ */ lt({
8812
+ var Lg = /*#__PURE__*/ W(dg, [["render", Ig], ["__scopeId", "data-v-c7224ff5"]]), Rg = /* @__PURE__ */ lt({
8807
8813
  AccessPoint: () => mt,
8808
8814
  Activity: () => vt,
8809
8815
  Adjustments: () => St,
@@ -8932,55 +8938,55 @@ var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]])
8932
8938
  UserPlus: () => Ml,
8933
8939
  Users: () => Il,
8934
8940
  UzActionButton: () => ut,
8935
- UzBack: () => Wf,
8936
- UzCamera: () => am,
8937
- UzCircle: () => Tp,
8938
- UzDraggableForm: () => Rp,
8939
- UzForm: () => Np,
8940
- UzFormItem: () => kp,
8941
- UzFormItemImage: () => Jp,
8942
- UzFormItemTimesPicker: () => Qp,
8943
- UzFormItemUpload: () => Wp,
8941
+ UzBack: () => Uf,
8942
+ UzCamera: () => im,
8943
+ UzCircle: () => wp,
8944
+ UzDraggableForm: () => Lp,
8945
+ UzForm: () => Mp,
8946
+ UzFormItem: () => Op,
8947
+ UzFormItemImage: () => qp,
8948
+ UzFormItemTimesPicker: () => Zp,
8949
+ UzFormItemUpload: () => Up,
8944
8950
  UzIcon: () => Iu,
8945
- UzOcr: () => Rg,
8946
- UzSearchBar: () => fm,
8947
- UzSearchMobileBar: () => vm,
8948
- UzSpin: () => Bm,
8949
- UzTable: () => nh,
8950
- UzTableChild: () => uh,
8951
- UzTableDrawer: () => Ch,
8952
- UzTableFile: () => zh,
8953
- UzTableMobile: () => Nh,
8954
- UzTableQuestChild: () => gh,
8955
- UzThumbnail: () => Jh,
8956
- UzWrap: () => lg,
8951
+ UzOcr: () => Lg,
8952
+ UzSearchBar: () => dm,
8953
+ UzSearchMobileBar: () => _m,
8954
+ UzSpin: () => zm,
8955
+ UzTable: () => th,
8956
+ UzTableChild: () => lh,
8957
+ UzTableDrawer: () => Sh,
8958
+ UzTableFile: () => Rh,
8959
+ UzTableMobile: () => Mh,
8960
+ UzTableQuestChild: () => hh,
8961
+ UzThumbnail: () => qh,
8962
+ UzWrap: () => cg,
8957
8963
  X: () => Bl,
8958
8964
  commonStore: () => q,
8959
- fnActionReduction: () => Vf,
8960
- fnActionSimplify: () => Bf,
8961
- fnAddThumbnail: () => Uh,
8962
- fnClearAllThumbnail: () => Gh,
8963
- fnDeleteThumbnail: () => Wh,
8964
- fnGetTableData: () => km,
8965
- fnOptionReduction: () => Fm,
8966
- fnOptionSimplify: () => Pm,
8967
- fnPrepareFormData: () => Im,
8968
- fnPrepareTableData: () => Lm,
8969
- fnRenderAction: () => Nf,
8965
+ fnActionReduction: () => Bf,
8966
+ fnActionSimplify: () => zf,
8967
+ fnAddThumbnail: () => Hh,
8968
+ fnClearAllThumbnail: () => Wh,
8969
+ fnDeleteThumbnail: () => Uh,
8970
+ fnGetTableData: () => Om,
8971
+ fnOptionReduction: () => Pm,
8972
+ fnOptionSimplify: () => Nm,
8973
+ fnPrepareFormData: () => Fm,
8974
+ fnPrepareTableData: () => Im,
8975
+ fnRenderAction: () => Mf,
8970
8976
  fnSetLang: () => Bu,
8971
8977
  fnSetTheme: () => Vu,
8972
- fnSetThumbnail: () => Vh,
8973
- fnTableReduction: () => jm,
8974
- fnTableSimplify: () => Am,
8975
- fnTriggersReduction: () => Nm,
8976
- fnTriggersSimplify: () => Mm,
8978
+ fnSetThumbnail: () => Bh,
8979
+ fnTableReduction: () => Am,
8980
+ fnTableSimplify: () => km,
8981
+ fnTriggersReduction: () => Mm,
8982
+ fnTriggersSimplify: () => jm,
8977
8983
  i18n: () => K
8978
- }), Bg = 3840, Vg = 2160, Hg = C({ scale: 1 });
8979
- function Ug(e, t) {
8980
- Bg = e, Vg = t;
8984
+ }), zg = 3840, Bg = 2160, Vg = C({ scale: 1 });
8985
+ function Hg(e, t) {
8986
+ zg = e, Bg = t;
8981
8987
  }
8982
- function Wg() {
8983
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Bg, i = Vg, a = parseFloat((r / i).toFixed(5));
8988
+ function Ug() {
8989
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = zg, i = Bg, a = parseFloat((r / i).toFixed(5));
8984
8990
  if (parseFloat((t / n).toFixed(5)) > a) {
8985
8991
  let t = parseFloat((n * a / r).toFixed(5));
8986
8992
  e = t > 1 ? 1 : t;
@@ -8988,17 +8994,17 @@ function Wg() {
8988
8994
  let n = parseFloat((t / a / i).toFixed(5));
8989
8995
  e = n > 1 ? 1 : n;
8990
8996
  }
8991
- Hg.scale = e;
8997
+ Vg.scale = e;
8992
8998
  }
8993
- function Gg() {
8994
- let e = Qe(Wg, 200);
8999
+ function Wg() {
9000
+ let e = Qe(Ug, 200);
8995
9001
  return e(), window.addEventListener("resize", e), () => {
8996
- Bg = 3840, Vg = 2160, window.removeEventListener("resize", e);
9002
+ zg = 3840, Bg = 2160, window.removeEventListener("resize", e);
8997
9003
  };
8998
9004
  }
8999
9005
  //#endregion
9000
9006
  //#region components/hooks/useThrottleFn.ts
9001
- function Kg(e, n = 1e3) {
9007
+ function Gg(e, n = 1e3) {
9002
9008
  let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
9003
9009
  return b(() => {
9004
9010
  i.value.cancel();
@@ -9010,14 +9016,14 @@ function Kg(e, n = 1e3) {
9010
9016
  }
9011
9017
  //#endregion
9012
9018
  //#region components/hooks/useLocalStorage.ts
9013
- function qg(e, t) {
9019
+ function Kg(e, t) {
9014
9020
  return [w(X(e, t?.defaultValue)), (n) => {
9015
9021
  n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
9016
9022
  }];
9017
9023
  }
9018
9024
  //#endregion
9019
9025
  //#region components/hooks/useQuery.ts
9020
- function Jg(e, t, n) {
9026
+ function qg(e, t, n) {
9021
9027
  let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
9022
9028
  ff(), clearInterval(o.value), o.value = null;
9023
9029
  }, p = async () => {
@@ -9083,26 +9089,26 @@ function Jg(e, t, n) {
9083
9089
  }
9084
9090
  //#endregion
9085
9091
  //#region package.json
9086
- var Yg = "0.1.81", Xg;
9087
- async function Zg() {
9092
+ var Jg = "0.1.83", Yg;
9093
+ async function Xg() {
9088
9094
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
9089
9095
  method: "HEAD",
9090
9096
  cache: "no-cache"
9091
9097
  });
9092
9098
  return e.headers.get("etag") || e.headers.get("last-modified");
9093
9099
  }
9094
- async function Qg() {
9095
- let e = await Zg();
9096
- Xg !== e && Hu(!0);
9100
+ async function Zg() {
9101
+ let e = await Xg();
9102
+ Yg !== e && Hu(!0);
9097
9103
  }
9098
- async function $g() {
9099
- Xg = await Zg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9100
- Qg();
9104
+ async function Qg() {
9105
+ Yg = await Xg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9106
+ Zg();
9101
9107
  }, 60 * 1e3);
9102
9108
  }
9103
9109
  //#endregion
9104
9110
  //#region components/create.ts
9105
- function e_({ components: e = [] } = {}) {
9111
+ function $g({ components: e = [] } = {}) {
9106
9112
  let t = [];
9107
9113
  function n(e, t, n) {
9108
9114
  e.component(t) || e.component(t, n);
@@ -9115,16 +9121,16 @@ function e_({ components: e = [] } = {}) {
9115
9121
  });
9116
9122
  }), i)) {
9117
9123
  let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
9118
- Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && $g(), t && tf(r, t, n);
9124
+ Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && Qg(), t && tf(r, t, n);
9119
9125
  }
9120
9126
  }
9121
9127
  return {
9122
- version: Yg,
9128
+ version: Jg,
9123
9129
  install: r
9124
9130
  };
9125
9131
  }
9126
9132
  //#endregion
9127
9133
  //#region components/preset.ts
9128
- var t_ = e_({ components: Object.keys(zg).map((e) => zg[e]) }), n_ = t_.install;
9134
+ var e_ = $g({ components: Object.keys(Rg).map((e) => Rg[e]) }), t_ = e_.install;
9129
9135
  //#endregion
9130
- export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, mf as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, hf as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Q as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Wf as UzBack, am as UzCamera, Tp as UzCircle, Rp as UzDraggableForm, Np as UzForm, kp as UzFormItem, Jp as UzFormItemImage, Qp as UzFormItemTimesPicker, Wp as UzFormItemUpload, Iu as UzIcon, Rg as UzOcr, fm as UzSearchBar, vm as UzSearchMobileBar, Bm as UzSpin, nh as UzTable, uh as UzTableChild, Ch as UzTableDrawer, zh as UzTableFile, Nh as UzTableMobile, gh as UzTableQuestChild, Jh as UzThumbnail, lg as UzWrap, Bl as X, q as commonStore, e_ as create, og as darkTheme, t_ as default, Vf as fnActionReduction, Bf as fnActionSimplify, Uh as fnAddThumbnail, ff as fnCancelFetch, Gh as fnClearAllThumbnail, Wg as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Wh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, km as fnGetTableData, Gg as fnListenerScale, rd as fnNotification, Fm as fnOptionReduction, Pm as fnOptionSimplify, ld as fnPageModel2Naive, Im as fnPrepareFormData, Lm as fnPrepareTableData, Nf as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Ug as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, Vh as fnSetThumbnail, jm as fnTableReduction, Am as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Nm as fnTriggersReduction, Mm as fnTriggersSimplify, K as i18n, n_ as install, ag as lightTheme, vd as mergeColumns, G as router, Hg as scaleStore, ym as useDebounceFn, qg as useLocalStorage, Jg as useQuery, Kg as useThrottleFn };
9136
+ export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, mf as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, hf as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Q as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Uf as UzBack, im as UzCamera, wp as UzCircle, Lp as UzDraggableForm, Mp as UzForm, Op as UzFormItem, qp as UzFormItemImage, Zp as UzFormItemTimesPicker, Up as UzFormItemUpload, Iu as UzIcon, Lg as UzOcr, dm as UzSearchBar, _m as UzSearchMobileBar, zm as UzSpin, th as UzTable, lh as UzTableChild, Sh as UzTableDrawer, Rh as UzTableFile, Mh as UzTableMobile, hh as UzTableQuestChild, qh as UzThumbnail, cg as UzWrap, Bl as X, q as commonStore, $g as create, ag as darkTheme, e_ as default, Bf as fnActionReduction, zf as fnActionSimplify, Hh as fnAddThumbnail, ff as fnCancelFetch, Wh as fnClearAllThumbnail, Ug as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Uh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, Om as fnGetTableData, Wg as fnListenerScale, rd as fnNotification, Pm as fnOptionReduction, Nm as fnOptionSimplify, ld as fnPageModel2Naive, Fm as fnPrepareFormData, Im as fnPrepareTableData, Mf as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Hg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, Bh as fnSetThumbnail, Am as fnTableReduction, km as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Mm as fnTriggersReduction, jm as fnTriggersSimplify, K as i18n, t_ as install, ig as lightTheme, vd as mergeColumns, G as router, Vg as scaleStore, vm as useDebounceFn, Kg as useLocalStorage, qg as useQuery, Gg as useThrottleFn };