@unizhen/ui 0.1.82 → 0.1.84

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
@@ -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,38 +5978,43 @@ 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) {
5979
- let n = D("NSkeleton");
5980
- return x(), i("div", Gm, [a("div", Km, [l(n, {
5981
+ var Hm = /*#__PURE__*/ W(Bm, [["render", Vm]]), Um = d({
5982
+ components: { NSkeleton: Ae },
5983
+ setup() {
5984
+ return {};
5985
+ }
5986
+ }), 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" };
5987
+ function qm(e, t, n, r, o, s) {
5988
+ let c = D("NSkeleton");
5989
+ return x(), i("div", Wm, [a("div", Gm, [l(c, {
5981
5990
  width: 120,
5982
5991
  size: "medium"
5983
- }), a("div", qm, [
5984
- l(n, {
5992
+ }), a("div", Km, [
5993
+ l(c, {
5985
5994
  width: 180,
5986
5995
  size: "medium"
5987
5996
  }),
5988
- l(n, {
5997
+ l(c, {
5989
5998
  width: 180,
5990
5999
  size: "medium"
5991
6000
  }),
5992
- l(n, {
6001
+ l(c, {
5993
6002
  width: 46,
5994
6003
  size: "medium"
5995
6004
  }),
5996
- l(n, {
6005
+ l(c, {
5997
6006
  width: 46,
5998
6007
  size: "medium"
5999
6008
  }),
6000
- l(n, {
6009
+ l(c, {
6001
6010
  width: 46,
6002
6011
  size: "medium"
6003
6012
  }),
6004
- l(n, {
6013
+ l(c, {
6005
6014
  width: 46,
6006
6015
  size: "medium"
6007
6016
  })
6008
- ])]), l(n, {
6017
+ ])]), l(c, {
6009
6018
  class: "uz-flex-1",
6010
6019
  width: "100%",
6011
6020
  size: "medium"
@@ -6013,24 +6022,23 @@ function Jm(e, t) {
6013
6022
  }
6014
6023
  //#endregion
6015
6024
  //#region components/table/index.vue?vue&type=script&lang.ts
6016
- var Ym = d({
6025
+ var Jm = d({
6017
6026
  name: "UzTable",
6018
6027
  components: {
6019
6028
  NDataTable: oe,
6020
6029
  NPopover: Ee,
6021
6030
  NButton: L,
6022
6031
  NIcon: V,
6023
- NSkeleton: Ae,
6024
6032
  NCheckbox: re,
6025
6033
  NSpin: Me,
6026
6034
  Filter: Ho,
6027
6035
  GridDots: es,
6028
6036
  Plus: uc,
6029
6037
  VueDraggable: tt,
6030
- UzSpin: Bm,
6038
+ UzSpin: zm,
6031
6039
  UzIcon: Iu,
6032
- TableExpand: Um,
6033
- SkeletonLoading: /* @__PURE__ */ W(Wm, [["render", Jm]])
6040
+ TableExpand: Hm,
6041
+ SkeletonLoading: /* @__PURE__ */ W(Um, [["render", qm]])
6034
6042
  },
6035
6043
  props: {
6036
6044
  id: {
@@ -6148,7 +6156,8 @@ var Ym = d({
6148
6156
  "update:loading",
6149
6157
  "on-update:value",
6150
6158
  "update:rowKeys",
6151
- "update:suffixes"
6159
+ "update:suffixes",
6160
+ "update:asynchronous"
6152
6161
  ],
6153
6162
  setup(e, { emit: n, expose: r, slots: i }) {
6154
6163
  S("emitSuffix", (e) => {
@@ -6168,7 +6177,7 @@ var Ym = d({
6168
6177
  fetch: null,
6169
6178
  when_drawer_open: "",
6170
6179
  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) => {
6180
+ }), R = w(Pm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
6172
6181
  n("update:rowKeys", {
6173
6182
  keys: e,
6174
6183
  rows: U(t)
@@ -6197,7 +6206,7 @@ var Ym = d({
6197
6206
  let r = e.id || o.params.id;
6198
6207
  e.enableLoading && (_.value = !0, n("update:loading", !0));
6199
6208
  let i = U(k.value);
6200
- if (t && delete i.orderby, I.value.fetch) wf([I.value.fetch], "", i).then((e) => {
6209
+ if (t && delete i.orderby, I.value.fetch) Cf([I.value.fetch], "", i).then((e) => {
6201
6210
  let t = ld(e);
6202
6211
  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
6212
  }).catch(() => {
@@ -6208,7 +6217,7 @@ var Ym = d({
6208
6217
  t = e.fetch ? e.fetch({
6209
6218
  ...i,
6210
6219
  tableId: r
6211
- }) : yf({
6220
+ }) : vf({
6212
6221
  ...i,
6213
6222
  tableId: r
6214
6223
  }), t.then((e) => {
@@ -6259,7 +6268,7 @@ var Ym = d({
6259
6268
  width: 180,
6260
6269
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => ud(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
6261
6270
  }], 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());
6271
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Fm(N.value, e, () => m.value?.getFormValues());
6263
6272
  return x.value = t, {
6264
6273
  form: t,
6265
6274
  fillingDefaultValue: n,
@@ -6270,7 +6279,7 @@ var Ym = d({
6270
6279
  a = e.fetch ? e.fetch({
6271
6280
  id: t.id,
6272
6281
  tableId: i
6273
- }) : yf({
6282
+ }) : vf({
6274
6283
  id: t.id,
6275
6284
  tableId: i
6276
6285
  }), a.then((e) => {
@@ -6354,7 +6363,7 @@ var Ym = d({
6354
6363
  ...t,
6355
6364
  tableId: a,
6356
6365
  sub_table_ids: r
6357
- }) : xf({
6366
+ }) : bf({
6358
6367
  ...t,
6359
6368
  tableId: a,
6360
6369
  sub_table_ids: r
@@ -6372,7 +6381,7 @@ var Ym = d({
6372
6381
  });
6373
6382
  };
6374
6383
  } else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
6375
- bf({
6384
+ yf({
6376
6385
  tableId: e.id || o.params.id,
6377
6386
  ...t,
6378
6387
  is_disabled: "1"
@@ -6381,7 +6390,7 @@ var Ym = d({
6381
6390
  }).catch(() => null);
6382
6391
  };
6383
6392
  else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
6384
- bf({
6393
+ yf({
6385
6394
  tableId: e.id || o.params.id,
6386
6395
  ...t,
6387
6396
  is_disabled: "0"
@@ -6396,12 +6405,12 @@ var Ym = d({
6396
6405
  i = e.fetch ? e.fetch({
6397
6406
  id: r.id,
6398
6407
  tableId: a
6399
- }) : yf({
6408
+ }) : vf({
6400
6409
  id: r.id,
6401
6410
  tableId: a
6402
6411
  }), i.then((e) => {
6403
6412
  let r = e && e[0];
6404
- wf([t.action], r.id, r).then((e) => {
6413
+ Cf([t.action], r.id, r).then((e) => {
6405
6414
  if (n && typeof n == "string") {
6406
6415
  try {
6407
6416
  Function("rowData", "res", n)(r, e).then((e) => {
@@ -6440,8 +6449,8 @@ var Ym = d({
6440
6449
  };
6441
6450
  }
6442
6451
  }, 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);
6452
+ re.value = !1, Em();
6453
+ let { tableColumns: t, search: r, subTableIds: i, subTableExpand: a } = await Im(N.value, e.child, 0, () => ({}), ae);
6445
6454
  !l.value && R.value.index && t.unshift({
6446
6455
  title: "#",
6447
6456
  key: "index",
@@ -6466,12 +6475,12 @@ var Ym = d({
6466
6475
  multiple: e.selection === 2 || R.value.selection === 2,
6467
6476
  options: ["all", "none"]
6468
6477
  });
6469
- let a = e.id || o.params.id;
6478
+ let c = e.id || o.params.id;
6470
6479
  if (!l.value && R.value.commonTime && t.push(..._e()), e.enableAction === !0 && P.value && P.value.length > 0) {
6471
6480
  let e = U(P.value);
6472
6481
  for (let t of e) t.type === "group" ? t.children.forEach((e) => {
6473
- Se(e, r);
6474
- }) : Se(t, r);
6482
+ Se(e, i);
6483
+ }) : Se(t, i);
6475
6484
  let n = {
6476
6485
  title: () => s("Common.action"),
6477
6486
  key: "action",
@@ -6483,25 +6492,25 @@ var Ym = d({
6483
6492
  hide: !0,
6484
6493
  width: Number(typeof R.value.actionWidth == "string" ? R.value.actionWidth.replace("px", "") : R.value.actionWidth),
6485
6494
  render(t) {
6486
- return Nf({
6495
+ return Mf({
6487
6496
  buttons: e,
6488
6497
  rowData: t,
6489
6498
  callback: B,
6490
- tableId: a
6499
+ tableId: c
6491
6500
  });
6492
6501
  }
6493
6502
  };
6494
6503
  t.push(n);
6495
6504
  }
6496
- let c = t;
6497
- if (a) {
6498
- let e = X(`tables_filter_${a}`, !1);
6505
+ let u = t;
6506
+ if (c) {
6507
+ let e = X(`tables_filter_${c}`, !1);
6499
6508
  if (e) try {
6500
- let n = await Sf(a);
6501
- n && (e = JSON.parse(n), c = vd(t, e));
6509
+ let n = await xf(c);
6510
+ n && (e = JSON.parse(n), u = vd(t, e));
6502
6511
  } catch {}
6503
6512
  }
6504
- i.link && c.unshift({
6513
+ a.link && u.unshift({
6505
6514
  type: "expand",
6506
6515
  show: !0,
6507
6516
  hide: !0,
@@ -6510,15 +6519,15 @@ var Ym = d({
6510
6519
  filter: "default",
6511
6520
  filterOptionValue: null,
6512
6521
  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, {
6514
- data: i,
6522
+ renderExpand: (e) => f(Hm, {
6523
+ data: a,
6515
6524
  value: e
6516
6525
  })
6517
- });
6518
- let u = 0;
6519
- c.forEach((e) => {
6520
- e.show && (u += Number(e.width || 140));
6521
- }), C.value = c, A.value = n, D.value = u;
6526
+ }), R.value.asynchronous ? n("update:asynchronous", R.value.asynchronous) : n("update:asynchronous", null);
6527
+ let d = 0;
6528
+ u.forEach((e) => {
6529
+ e.show && (d += Number(e.width || 140));
6530
+ }), C.value = u, A.value = r, D.value = d;
6522
6531
  }, we = (e) => typeof e == "number" ? `${e}px` : e, Te = () => {
6523
6532
  if (e.height) {
6524
6533
  let t = we(e.height);
@@ -6531,12 +6540,12 @@ var Ym = d({
6531
6540
  let e = 0;
6532
6541
  C.value.forEach((t) => {
6533
6542
  t.show && (e += Number(t.width || 140));
6534
- }), D.value = e, Y(`tables_filter_${n}`, t.filter((e) => e.key)), Cf({
6543
+ }), D.value = e, Y(`tables_filter_${n}`, t.filter((e) => e.key)), Sf({
6535
6544
  table_id: n,
6536
6545
  data: JSON.stringify(t)
6537
6546
  }).catch(() => null);
6538
6547
  }
6539
- }, { run: De } = ym(Ee), { run: Oe } = ym((e, t) => {
6548
+ }, { run: De } = vm(Ee), { run: Oe } = vm((e, t) => {
6540
6549
  let n = [];
6541
6550
  C.value.forEach((r) => {
6542
6551
  r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
@@ -6563,7 +6572,7 @@ var Ym = d({
6563
6572
  i = e.formFetch ? e.formFetch({
6564
6573
  tableId: a,
6565
6574
  ...t
6566
- }) : bf({
6575
+ }) : yf({
6567
6576
  tableId: a,
6568
6577
  ...t
6569
6578
  }), i.then(() => {
@@ -6576,13 +6585,13 @@ var Ym = d({
6576
6585
  fetch: null,
6577
6586
  when_drawer_open: "",
6578
6587
  when_before_save: ""
6579
- }, R.value = Fm();
6588
+ }, R.value = Pm();
6580
6589
  }, Me = (t) => {
6581
6590
  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);
6591
+ b.value = t.tableTitle, N.value = Am(n.table), P.value = Bf(e.actions || n.action);
6592
+ let r = Bf(n.suffix || []);
6593
+ F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Mm(n.trigger);
6594
+ let i = Pm(e.options ?? n.option);
6586
6595
  t.tableTitle && i.title && dd(t.tableTitle), R.value = i;
6587
6596
  }, Ne = async () => {
6588
6597
  v.value = !1, je();
@@ -6600,7 +6609,7 @@ var Ym = d({
6600
6609
  ne.value = s("Notice.network"), re.value = !0;
6601
6610
  return;
6602
6611
  }
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) => {
6612
+ 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
6613
  Me(e), await Ce();
6605
6614
  }).catch((e) => {
6606
6615
  ne.value = e?.message || s("Notice.network"), re.value = !0;
@@ -6639,7 +6648,7 @@ var Ym = d({
6639
6648
  if (_.value) return;
6640
6649
  _.value = !0;
6641
6650
  let t = e.id || o.params.id;
6642
- t && (ad(`tables_filter_${t}`), Cf({
6651
+ t && (ad(`tables_filter_${t}`), Sf({
6643
6652
  table_id: t,
6644
6653
  data: null
6645
6654
  }).catch(() => null).finally(() => {
@@ -6717,14 +6726,14 @@ var Ym = d({
6717
6726
  }
6718
6727
  };
6719
6728
  }
6720
- }), Xm = { class: "uz-com-title" }, Zm = {
6729
+ }), Ym = { class: "uz-com-title" }, Xm = {
6721
6730
  ref: "mRef",
6722
6731
  class: "uz-table-m-content"
6723
- }, Qm = {
6732
+ }, Zm = {
6724
6733
  key: 1,
6725
6734
  class: "uz-transform-fade-in"
6726
- }, $m = { class: "uz-com-title" }, eh = ["data-index"];
6727
- function th(t, s, u, d, f, p) {
6735
+ }, Qm = { class: "uz-com-title" }, $m = ["data-index"];
6736
+ function eh(t, s, u, d, f, p) {
6728
6737
  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
6738
  return x(), i("div", {
6730
6739
  class: "uz-table",
@@ -6789,7 +6798,7 @@ function th(t, s, u, d, f, p) {
6789
6798
  key: "0"
6790
6799
  } : {
6791
6800
  name: "header",
6792
- fn: N(() => [a("div", Xm, A(t.title), 1)]),
6801
+ fn: N(() => [a("div", Ym, A(t.title), 1)]),
6793
6802
  key: "1"
6794
6803
  }]), 1032, [
6795
6804
  "data",
@@ -6797,7 +6806,7 @@ function th(t, s, u, d, f, p) {
6797
6806
  "cache",
6798
6807
  "loading",
6799
6808
  "onOnUpdate:value"
6800
- ]), a("div", Zm, [l(C, {
6809
+ ]), a("div", Xm, [l(C, {
6801
6810
  tableColumns: t.tableCols,
6802
6811
  tableData: t.tableData,
6803
6812
  tableQueries: t.tableQueries,
@@ -6815,7 +6824,7 @@ function th(t, s, u, d, f, p) {
6815
6824
  "minH",
6816
6825
  "maxH",
6817
6826
  "onUpdate:rowKeys"
6818
- ])], 512)], 2)) : (x(), i("div", Qm, [l(F, {
6827
+ ])], 512)], 2)) : (x(), i("div", Zm, [l(F, {
6819
6828
  data: t.searchData,
6820
6829
  id: t.id || t.route.params.id,
6821
6830
  cache: t.tableOption.cache,
@@ -6870,7 +6879,7 @@ function th(t, s, u, d, f, p) {
6870
6879
  _: 1
6871
6880
  })]),
6872
6881
  _: 1
6873
- })], 8, eh)), [[te, !e.hide]])), 128)), l(h, {
6882
+ })], 8, $m)), [[te, !e.hide]])), 128)), l(h, {
6874
6883
  block: "",
6875
6884
  tertiary: "",
6876
6885
  loading: t.loading,
@@ -6919,7 +6928,7 @@ function th(t, s, u, d, f, p) {
6919
6928
  key: "0"
6920
6929
  } : {
6921
6930
  name: "header",
6922
- fn: N(() => [a("div", $m, A(t.title), 1)]),
6931
+ fn: N(() => [a("div", Qm, A(t.title), 1)]),
6923
6932
  key: "1"
6924
6933
  }]), 1032, [
6925
6934
  "data",
@@ -6983,7 +6992,7 @@ function th(t, s, u, d, f, p) {
6983
6992
  l(R, { ref: "drawerRef" }, null, 512)
6984
6993
  ], 4);
6985
6994
  }
6986
- var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
6995
+ var th = /*#__PURE__*/ W(Jm, [["render", eh]]), nh = d({
6987
6996
  name: "UzTableChild",
6988
6997
  components: {
6989
6998
  NSpin: Me,
@@ -7013,7 +7022,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7013
7022
  emits: ["update:value"],
7014
7023
  setup(e, { emit: n, expose: r }) {
7015
7024
  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);
7025
+ let { formDefaultValue: r, fillingDefaultArray: i } = await Fm(U(n ?? e.item.params.columns), t, void 0, !0);
7017
7026
  return C.value = r, i;
7018
7027
  }, O = async (t) => {
7019
7028
  if (_.value) return;
@@ -7044,7 +7053,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7044
7053
  });
7045
7054
  }, k = (e) => e.delete ? "uz-table-child-delete" : "", A = async (t, n = !1) => {
7046
7055
  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;
7056
+ let { tableColumns: r, tableWidth: i } = await Im(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
7048
7057
  r.unshift({
7049
7058
  title: " ",
7050
7059
  key: "index",
@@ -7077,7 +7086,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7077
7086
  width: 60,
7078
7087
  render(t, n) {
7079
7088
  let r = [];
7080
- return e.item.params.childActions && e.item.params.actions && Vf(e.item.params.actions).forEach((e) => {
7089
+ return e.item.params.childActions && e.item.params.actions && Bf(e.item.params.actions).forEach((e) => {
7081
7090
  e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
7082
7091
  }), 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
7092
  type: "normal",
@@ -7089,7 +7098,7 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7089
7098
  let n = e.item.params.deleteFn;
7090
7099
  n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
7091
7100
  }
7092
- }), Nf({
7101
+ }), Mf({
7093
7102
  buttons: r,
7094
7103
  rowData: t
7095
7104
  });
@@ -7221,18 +7230,18 @@ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
7221
7230
  }
7222
7231
  };
7223
7232
  }
7224
- }), ih = { class: "uz-flex uz-justify-between" }, ah = { class: "uz-com-title" }, oh = {
7233
+ }), rh = { class: "uz-flex uz-justify-between" }, ih = { class: "uz-com-title" }, ah = {
7225
7234
  key: 0,
7226
7235
  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) {
7236
+ }, oh = { class: "uz-flex uz-gap-2" }, sh = { class: "uz-flex uz-justify-end uz-gap-2" };
7237
+ function ch(t, s, u, d, f, p) {
7229
7238
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
7230
7239
  return x(), n(S, {
7231
7240
  show: t.spin,
7232
7241
  class: "uz-flex-1 uz-w-full"
7233
7242
  }, {
7234
7243
  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, [
7244
+ 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
7245
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
7237
7246
  key: e.key,
7238
7247
  type: e.color,
@@ -7308,7 +7317,7 @@ function lh(t, s, u, d, f, p) {
7308
7317
  "scroll-x",
7309
7318
  "class",
7310
7319
  "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(_, {
7320
+ ])) : 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
7321
  key: 0,
7313
7322
  type: "success",
7314
7323
  secondary: "",
@@ -7339,7 +7348,7 @@ function lh(t, s, u, d, f, p) {
7339
7348
  _: 1
7340
7349
  }, 8, ["show"]);
7341
7350
  }
7342
- var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7351
+ var lh = /*#__PURE__*/ W(nh, [["render", ch]]), uh = d({
7343
7352
  name: "UzTableQuestChild",
7344
7353
  components: { NDataTable: oe },
7345
7354
  props: {
@@ -7367,7 +7376,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7367
7376
  }), o.value = t, i.value = !1;
7368
7377
  }
7369
7378
  }, l = async (i) => {
7370
- let { tableColumns: c, tableWidth: l } = await Lm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7379
+ let { tableColumns: c, tableWidth: l } = await Im(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7371
7380
  c.unshift({
7372
7381
  title: " ",
7373
7382
  key: "index",
@@ -7386,7 +7395,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7386
7395
  hide: !0,
7387
7396
  width: 60,
7388
7397
  render(t) {
7389
- return Nf({ buttons: [{
7398
+ return Mf({ buttons: [{
7390
7399
  type: "normal",
7391
7400
  color: "primary",
7392
7401
  key: "detail",
@@ -7407,7 +7416,7 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7407
7416
  }), M(async () => {
7408
7417
  try {
7409
7418
  if (e.formValue && e.formValue.id && e.item.params.searchKey) {
7410
- let t = await yf({
7419
+ let t = await vf({
7411
7420
  tableId: e.item.params.link,
7412
7421
  params: [{
7413
7422
  key: e.item.params.searchKey,
@@ -7441,11 +7450,11 @@ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7441
7450
  tableScrollX: s
7442
7451
  };
7443
7452
  }
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) {
7453
+ }), dh = { class: "uz-flex-1 uz-w-full" }, fh = { class: "uz-flex uz-justify-between" }, ph = { class: "uz-com-title" };
7454
+ function mh(e, t, n, r, o, s) {
7446
7455
  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)]),
7456
+ return x(), i("div", dh, [
7457
+ a("div", fh, [a("div", ph, A(e.item.label), 1)]),
7449
7458
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
7450
7459
  l(c, {
7451
7460
  columns: e.columns,
@@ -7470,7 +7479,7 @@ function hh(e, t, n, r, o, s) {
7470
7479
  l(u, { ref: "drawerRef" }, null, 512)
7471
7480
  ]);
7472
7481
  }
7473
- var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7482
+ var hh = /*#__PURE__*/ W(uh, [["render", mh]]), gh = d({
7474
7483
  name: "UzTableDrawer",
7475
7484
  components: {
7476
7485
  NButton: L,
@@ -7496,6 +7505,7 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7496
7505
  addButton: 1,
7497
7506
  filterButton: 1,
7498
7507
  commonTime: 1,
7508
+ asynchronous: "",
7499
7509
  filePort: 0,
7500
7510
  actionWidth: 300,
7501
7511
  drawerWidth: "70%",
@@ -7540,11 +7550,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7540
7550
  linkFn: t
7541
7551
  };
7542
7552
  let r = e.split(".")[0];
7543
- km(r).then((e) => {
7553
+ Om(r).then((e) => {
7544
7554
  h(async () => {
7545
7555
  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);
7556
+ d.value = Pm(t.option), u.value = !0;
7557
+ let { form: i } = await Fm(Am(t.table), n);
7548
7558
  y.value = t.trigger, n && T(n);
7549
7559
  let a = X(`tables_cache_link_${r}`, !1);
7550
7560
  a && (c.value = a), h(() => {
@@ -7600,11 +7610,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7600
7610
  return;
7601
7611
  } else {
7602
7612
  let t = l.value.link.split(".")[0];
7603
- bf({
7613
+ yf({
7604
7614
  tableId: t,
7605
7615
  ...e
7606
7616
  }).then(() => {
7607
- Dm(), yf({ tableId: t }).then((e) => {
7617
+ Em(), vf({ tableId: t }).then((e) => {
7608
7618
  let r = l.value.link.split("."), i;
7609
7619
  if (l.value.linkFn) {
7610
7620
  let t = l.value.linkFn;
@@ -7637,11 +7647,11 @@ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7637
7647
  }
7638
7648
  };
7639
7649
  }
7640
- }), vh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, yh = {
7650
+ }), _h = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, vh = {
7641
7651
  key: 0,
7642
7652
  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) {
7653
+ }, yh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, bh = { class: "uz-flex uz-gap-2" };
7654
+ function xh(t, s, u, d, f, p) {
7645
7655
  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
7656
  return x(), i(e, null, [l(S, {
7647
7657
  show: t.drawer,
@@ -7667,7 +7677,7 @@ function Sh(t, s, u, d, f, p) {
7667
7677
  message: t.spinMsg,
7668
7678
  status: t.spinStatus
7669
7679
  }, {
7670
- default: N(() => [a("div", vh, [t.skeletonShow ? (x(), i("div", yh, [
7680
+ default: N(() => [a("div", _h, [t.skeletonShow ? (x(), i("div", vh, [
7671
7681
  l(m, {
7672
7682
  size: "large",
7673
7683
  style: { height: "156px" }
@@ -7730,7 +7740,7 @@ function Sh(t, s, u, d, f, p) {
7730
7740
  _: 2
7731
7741
  }, [t.formStatus === 2 ? void 0 : {
7732
7742
  name: "footer",
7733
- fn: N(() => [a("div", bh, [t.isMobile ? r("", !0) : (x(), n(v, {
7743
+ fn: N(() => [a("div", yh, [t.isMobile ? r("", !0) : (x(), n(v, {
7734
7744
  key: 0,
7735
7745
  loading: t.spinShow,
7736
7746
  type: "success",
@@ -7739,7 +7749,7 @@ function Sh(t, s, u, d, f, p) {
7739
7749
  }, {
7740
7750
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
7741
7751
  _: 1
7742
- }, 8, ["loading"])), a("div", xh, [
7752
+ }, 8, ["loading"])), a("div", bh, [
7743
7753
  l(v, {
7744
7754
  loading: t.spinShow,
7745
7755
  class: "uz-drawer-button",
@@ -7807,7 +7817,7 @@ function Sh(t, s, u, d, f, p) {
7807
7817
  _: 1
7808
7818
  }, 8, ["show"])], 64);
7809
7819
  }
7810
- var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
7820
+ var Sh = /*#__PURE__*/ W(gh, [["render", xh]]), Ch = d({
7811
7821
  name: "UzTableMobileList",
7812
7822
  props: {
7813
7823
  tableData: {
@@ -7825,12 +7835,12 @@ var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
7825
7835
  },
7826
7836
  emits: ["update:row-keys"],
7827
7837
  setup() {}
7828
- }), Th = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Eh = {
7838
+ }), wh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Th = {
7829
7839
  key: 1,
7830
7840
  class: "uz-table-mobile-group-txt"
7831
7841
  };
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", {
7842
+ function Eh(t, o, s, c, l, u) {
7843
+ return x(), i("div", wh, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
7834
7844
  key: o.key,
7835
7845
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
7836
7846
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
@@ -7841,11 +7851,11 @@ function Dh(t, o, s, c, l, u) {
7841
7851
  class: "mobile"
7842
7852
  })) : 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
7853
  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))]);
7854
+ }), { key: 0 })) : (x(), i("div", Th, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7845
7855
  }
7846
7856
  //#endregion
7847
7857
  //#region components/table/mobile.vue?vue&type=script&lang.ts
7848
- var Oh = d({
7858
+ var Dh = d({
7849
7859
  name: "UzTableMobile",
7850
7860
  components: {
7851
7861
  NCheckbox: re,
@@ -7853,7 +7863,7 @@ var Oh = d({
7853
7863
  NPagination: we,
7854
7864
  NCheckboxGroup: ie,
7855
7865
  NRadioGroup: Oe,
7856
- UzTableMobileList: /* @__PURE__ */ W(wh, [["render", Dh], ["__scopeId", "data-v-84c394fe"]])
7866
+ UzTableMobileList: /* @__PURE__ */ W(Ch, [["render", Eh], ["__scopeId", "data-v-84c394fe"]])
7857
7867
  },
7858
7868
  props: {
7859
7869
  tableData: {
@@ -7900,17 +7910,17 @@ var Oh = d({
7900
7910
  }
7901
7911
  };
7902
7912
  }
7903
- }), kh = {
7913
+ }), Oh = {
7904
7914
  key: 0,
7905
7915
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7906
- }, Ah = {
7916
+ }, kh = {
7907
7917
  key: 0,
7908
7918
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7909
- }, jh = {
7919
+ }, Ah = {
7910
7920
  key: 0,
7911
7921
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7912
7922
  };
7913
- function Mh(t, a, o, s, c, u) {
7923
+ function jh(t, a, o, s, c, u) {
7914
7924
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
7915
7925
  return t.selection === 2 ? (x(), n(m, {
7916
7926
  key: 0,
@@ -7937,7 +7947,7 @@ function Mh(t, a, o, s, c, u) {
7937
7947
  "tableColumns"
7938
7948
  ])]),
7939
7949
  _: 2
7940
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
7950
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Oh, [l(p, {
7941
7951
  page: t.tableQueries.query.page,
7942
7952
  "onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7943
7953
  "item-count": t.tableQueries.query.itemCount,
@@ -7979,7 +7989,7 @@ function Mh(t, a, o, s, c, u) {
7979
7989
  "tableColumns"
7980
7990
  ])]),
7981
7991
  _: 2
7982
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
7992
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
7983
7993
  page: t.tableQueries.query.page,
7984
7994
  "onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7985
7995
  "item-count": t.tableQueries.query.itemCount,
@@ -8014,7 +8024,7 @@ function Mh(t, a, o, s, c, u) {
8014
8024
  "tableData",
8015
8025
  "tableIndex",
8016
8026
  "tableColumns"
8017
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", jh, [l(p, {
8027
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
8018
8028
  page: t.tableQueries.query.page,
8019
8029
  "onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
8020
8030
  "item-count": t.tableQueries.query.itemCount,
@@ -8027,7 +8037,7 @@ function Mh(t, a, o, s, c, u) {
8027
8037
  "onUpdate:page"
8028
8038
  ])])) : r("", !0)], 4));
8029
8039
  }
8030
- var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]]), Ph = d({
8040
+ var Mh = /*#__PURE__*/ W(Dh, [["render", jh], ["__scopeId", "data-v-70b54e3b"]]), Nh = d({
8031
8041
  name: "UzTableFile",
8032
8042
  components: {
8033
8043
  NDropdown: B,
@@ -8095,7 +8105,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8095
8105
  }), m = () => {
8096
8106
  s.value = null;
8097
8107
  }, h = () => {
8098
- o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8108
+ o.value || (o.value = !0, wf(r.params.id).then((e) => {
8099
8109
  let t = document.createElement("a");
8100
8110
  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
8111
  }).catch(() => null).finally(() => {
@@ -8116,7 +8126,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8116
8126
  _(), o.value = !1;
8117
8127
  }));
8118
8128
  }, _ = () => {
8119
- o.value || (o.value = !0, Ef(r.params.id).then((e) => {
8129
+ o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8120
8130
  d.value = e;
8121
8131
  }).catch(() => null).finally(() => {
8122
8132
  o.value = !1;
@@ -8142,7 +8152,7 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8142
8152
  draggable: !0,
8143
8153
  onPositiveClick: () => {
8144
8154
  let t = e.query ?? {};
8145
- Df({
8155
+ Ef({
8146
8156
  tableKey: r.params.id,
8147
8157
  ...t
8148
8158
  }).then((e) => {
@@ -8168,11 +8178,11 @@ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]])
8168
8178
  }
8169
8179
  };
8170
8180
  }
8171
- }), Fh = { class: "uz-file-port-modal" }, Ih = {
8181
+ }), Ph = { class: "uz-file-port-modal" }, Fh = {
8172
8182
  key: 1,
8173
8183
  class: "uz-file-port-panel"
8174
- }, Lh = { class: "uz-flex uz-justify-between" };
8175
- function Rh(t, r, o, s, u, d) {
8184
+ }, Ih = { class: "uz-flex uz-justify-between" };
8185
+ function Lh(t, r, o, s, u, d) {
8176
8186
  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
8187
  return x(), i(e, null, [l(h, {
8178
8188
  trigger: "hover",
@@ -8208,8 +8218,8 @@ function Rh(t, r, o, s, u, d) {
8208
8218
  default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
8209
8219
  _: 1
8210
8220
  }, 8, ["loading", "onClick"])]),
8211
- default: N(() => [a("div", Fh, [
8212
- t.rawFile ? (x(), i("div", Ih, [
8221
+ default: N(() => [a("div", Ph, [
8222
+ t.rawFile ? (x(), i("div", Fh, [
8213
8223
  r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
8214
8224
  xmlns: "http://www.w3.org/2000/svg",
8215
8225
  viewBox: "0 0 24 24",
@@ -8256,7 +8266,7 @@ function Rh(t, r, o, s, u, d) {
8256
8266
  }, [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
8267
  _: 1
8258
8268
  }, 8, ["on-before-upload"])),
8259
- a("div", Lh, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8269
+ a("div", Ih, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8260
8270
  onClick: t.init,
8261
8271
  loading: t.loading,
8262
8272
  secondary: ""
@@ -8277,7 +8287,7 @@ function Rh(t, r, o, s, u, d) {
8277
8287
  _: 1
8278
8288
  }, 8, ["show", "on-after-leave"])], 64);
8279
8289
  }
8280
- var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-ca79bf5f"]]), $ = C({
8290
+ var Rh = /*#__PURE__*/ W(Nh, [["render", Lh], ["__scopeId", "data-v-ca79bf5f"]]), $ = C({
8281
8291
  page: {
8282
8292
  label: "首页",
8283
8293
  key: "/",
@@ -8288,7 +8298,7 @@ var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-ca79bf5f"]])
8288
8298
  active: "/",
8289
8299
  thumbnail: []
8290
8300
  });
8291
- function Bh(e) {
8301
+ function zh(e) {
8292
8302
  $.cache = e.cache, $.page = {
8293
8303
  label: e.label,
8294
8304
  key: e.key,
@@ -8303,14 +8313,14 @@ function Bh(e) {
8303
8313
  closable: !1
8304
8314
  }];
8305
8315
  }
8306
- function Vh(e) {
8316
+ function Bh(e) {
8307
8317
  $.active = e, G.push(e), Y($.cache, $, 0);
8308
8318
  }
8309
- function Hh(e, t) {
8319
+ function Vh(e, t) {
8310
8320
  let n = $.thumbnail.find((t) => t.key === e);
8311
8321
  n && (n.key = t, $.active = t, Y($.cache, $, 0));
8312
8322
  }
8313
- function Uh(e) {
8323
+ function Hh(e) {
8314
8324
  let t = $.thumbnail.find((t) => t.path === e.key);
8315
8325
  t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
8316
8326
  ...e,
@@ -8318,7 +8328,7 @@ function Uh(e) {
8318
8328
  closable: !0
8319
8329
  }), G.push(e.key));
8320
8330
  }
8321
- function Wh(e) {
8331
+ function Uh(e) {
8322
8332
  let t = $.thumbnail.findIndex((t) => t.key === e);
8323
8333
  if ($.thumbnail.splice(t, 1), $.active === e) {
8324
8334
  let e = $.thumbnail[t - 1]?.key || "";
@@ -8326,12 +8336,12 @@ function Wh(e) {
8326
8336
  }
8327
8337
  Y($.cache, $, 0);
8328
8338
  }
8329
- function Gh() {
8339
+ function Wh() {
8330
8340
  $.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
8331
8341
  }
8332
8342
  //#endregion
8333
8343
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
8334
- var Kh = d({
8344
+ var Gh = d({
8335
8345
  name: "UzThumbnail",
8336
8346
  components: {
8337
8347
  NTabs: Fe,
@@ -8353,29 +8363,29 @@ var Kh = d({
8353
8363
  setup(e, { slots: t }) {
8354
8364
  let n = w(!!t.prefix), r = qe();
8355
8365
  return y(() => {
8356
- Bh(e.option), $.active !== r.path && Hh(r.path, r.fullPath);
8366
+ zh(e.option), $.active !== r.path && Vh(r.path, r.fullPath);
8357
8367
  }), j(() => r, (e) => {
8358
- $.active === r.path && Hh(e.path, e.fullPath);
8368
+ $.active === r.path && Vh(e.path, e.fullPath);
8359
8369
  }, { deep: !0 }), j(() => e.option, (e) => {
8360
- Bh(e);
8370
+ zh(e);
8361
8371
  }, { deep: !0 }), {
8362
8372
  thumbnailStore: $,
8363
8373
  isSlotPrefix: n,
8364
8374
  handleClose: (e) => {
8365
- Wh(e);
8375
+ Uh(e);
8366
8376
  },
8367
8377
  handleChange: (e) => {
8368
- Vh(e);
8378
+ Bh(e);
8369
8379
  },
8370
8380
  handleClear: () => {
8371
- Gh();
8381
+ Wh();
8372
8382
  }
8373
8383
  };
8374
8384
  }
8375
8385
  });
8376
8386
  //#endregion
8377
8387
  //#region components/thumbnail/index.vue
8378
- function qh(t, r, a, s, u, d) {
8388
+ function Kh(t, r, a, s, u, d) {
8379
8389
  let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
8380
8390
  return x(), n(v, {
8381
8391
  value: t.thumbnailStore.active,
@@ -8421,33 +8431,33 @@ function qh(t, r, a, s, u, d) {
8421
8431
  "on-update:value"
8422
8432
  ]);
8423
8433
  }
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 = {
8434
+ 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";
8435
+ 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";
8436
+ var ig = {
8427
8437
  common: {
8428
8438
  inputColor: "rgba(var(--input))",
8429
8439
  borderColor: "rgba(var(--border), 0.7)",
8430
8440
  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,
8441
+ primaryColor: Jh,
8442
+ primaryColorHover: Yh,
8443
+ primaryColorPressed: Jh,
8444
+ primaryColorSuppl: Jh,
8445
+ infoColor: Xh,
8446
+ infoColorHover: Zh,
8447
+ infoColorPressed: Xh,
8448
+ infoColorSuppl: Xh,
8449
+ successColor: Qh,
8450
+ successColorHover: $h,
8451
+ successColorPressed: Qh,
8452
+ successColorSuppl: Qh,
8453
+ warningColor: eg,
8454
+ warningColorHover: tg,
8455
+ warningColorPressed: eg,
8456
+ warningColorSuppl: eg,
8457
+ errorColor: ng,
8458
+ errorColorHover: rg,
8459
+ errorColorPressed: ng,
8460
+ errorColorSuppl: ng,
8451
8461
  cardColor: "#fff"
8452
8462
  },
8453
8463
  Button: { textColor: "rgb(var(--font))" },
@@ -8455,7 +8465,7 @@ var ag = {
8455
8465
  DatePicker: { itemBorderRadius: "var(--borderRadius)" },
8456
8466
  Notification: { borderRadius: "var(--borderRadius)" },
8457
8467
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
8458
- }, og = H, sg = d({
8468
+ }, ag = H, og = d({
8459
8469
  name: "UzWrap",
8460
8470
  components: { NConfigProvider: ae },
8461
8471
  setup() {
@@ -8463,14 +8473,14 @@ var ag = {
8463
8473
  zhCN: Ue,
8464
8474
  dateZhCN: Ve,
8465
8475
  commonStore: q,
8466
- lightTheme: ag,
8467
- darkTheme: og
8476
+ lightTheme: ig,
8477
+ darkTheme: ag
8468
8478
  };
8469
8479
  }
8470
8480
  });
8471
8481
  //#endregion
8472
8482
  //#region components/wrap/index.vue
8473
- function cg(e, t, r, i, a, o) {
8483
+ function sg(e, t, r, i, a, o) {
8474
8484
  let s = D("NConfigProvider");
8475
8485
  return x(), n(s, {
8476
8486
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -8489,10 +8499,10 @@ function cg(e, t, r, i, a, o) {
8489
8499
  "date-locale"
8490
8500
  ]);
8491
8501
  }
8492
- var lg = /*#__PURE__*/ W(sg, [["render", cg]]);
8502
+ var cg = /*#__PURE__*/ W(og, [["render", sg]]);
8493
8503
  //#endregion
8494
8504
  //#region components/ocr/preprocess.ts
8495
- function ug(e) {
8505
+ function lg(e) {
8496
8506
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
8497
8507
  for (let r = 0; r < n; r++) t[e[r]]++;
8498
8508
  let r = 0;
@@ -8507,7 +8517,7 @@ function ug(e) {
8507
8517
  }
8508
8518
  return c;
8509
8519
  }
8510
- function dg(e, t) {
8520
+ function ug(e, t) {
8511
8521
  return new Promise((n, r) => {
8512
8522
  let i = new Image();
8513
8523
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -8540,7 +8550,7 @@ function dg(e, t) {
8540
8550
  }
8541
8551
  let u = t.threshold;
8542
8552
  if (t.binarize) {
8543
- t.autoThreshold && (u = ug(l));
8553
+ t.autoThreshold && (u = lg(l));
8544
8554
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
8545
8555
  let n = l[t] < u ? 0 : 255;
8546
8556
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -8563,7 +8573,7 @@ function dg(e, t) {
8563
8573
  }
8564
8574
  //#endregion
8565
8575
  //#region components/ocr/index.vue?vue&type=script&lang.ts
8566
- var fg = d({
8576
+ var dg = d({
8567
8577
  name: "UzOcr",
8568
8578
  components: {
8569
8579
  NButton: L,
@@ -8600,7 +8610,7 @@ var fg = d({
8600
8610
  tessedit_char_blacklist: "|"
8601
8611
  }), a.value), v = async () => {
8602
8612
  if (f.value) try {
8603
- let e = await dg(f.value, {
8613
+ let e = await ug(f.value, {
8604
8614
  enabled: o.value,
8605
8615
  scale: s.value,
8606
8616
  grayscale: !0,
@@ -8637,7 +8647,7 @@ var fg = d({
8637
8647
  n.value = !0, r.value = e("OCR.analysis");
8638
8648
  let a = t;
8639
8649
  if (o.value || s.value > 1) try {
8640
- let e = await dg(t, {
8650
+ let e = await ug(t, {
8641
8651
  enabled: o.value,
8642
8652
  scale: s.value,
8643
8653
  grayscale: !0,
@@ -8699,25 +8709,25 @@ var fg = d({
8699
8709
  t: e
8700
8710
  };
8701
8711
  }
8702
- }), pg = { class: "uz-ocr" }, mg = { class: "uz-ocr-left-col" }, hg = { class: "uz-ocr-upload-card" }, gg = { class: "uz-ocr-upload-title" }, _g = {
8712
+ }), fg = { class: "uz-ocr" }, pg = { class: "uz-ocr-left-col" }, mg = { class: "uz-ocr-upload-card" }, hg = { class: "uz-ocr-upload-title" }, gg = {
8703
8713
  key: 1,
8704
8714
  class: "uz-ocr-preview-panel"
8705
- }, vg = { class: "uz-ocr-preview-box" }, yg = ["src"], bg = {
8715
+ }, _g = { class: "uz-ocr-preview-box" }, vg = ["src"], yg = {
8706
8716
  key: 0,
8707
8717
  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 = {
8718
+ }, 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
8719
  key: 0,
8710
8720
  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 = {
8721
+ }, 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
8722
  key: 0,
8713
8723
  class: "uz-ocr-empty-state"
8714
- }, Fg = { class: "uz-empty-text" }, Ig = {
8724
+ }, Pg = { class: "uz-empty-text" }, Fg = {
8715
8725
  key: 1,
8716
8726
  class: "uz-ocr-result-tabs"
8717
8727
  };
8718
- function Lg(e, t, o, s, u, d) {
8728
+ function Ig(e, t, o, s, u, d) {
8719
8729
  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, {
8730
+ return x(), i("div", fg, [a("div", pg, [e.rawImage ? (x(), i("div", gg, [l(m, {
8721
8731
  value: e.imagePreviewTab,
8722
8732
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
8723
8733
  type: "segment",
@@ -8727,21 +8737,21 @@ function Lg(e, t, o, s, u, d) {
8727
8737
  name: "processed",
8728
8738
  tab: e.t("OCR.previewProcessed")
8729
8739
  }, {
8730
- default: N(() => [a("div", vg, [a("img", {
8740
+ default: N(() => [a("div", _g, [a("img", {
8731
8741
  src: e.processedImage,
8732
8742
  alt: "Processed Preview",
8733
8743
  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)])]),
8744
+ }, null, 8, vg), e.preEnabled && e.preBinarize ? (x(), i("div", yg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8735
8745
  _: 1
8736
8746
  }, 8, ["tab"]), l(p, {
8737
8747
  name: "raw",
8738
8748
  tab: e.t("OCR.previewRaw")
8739
8749
  }, {
8740
- default: N(() => [a("div", xg, [a("img", {
8750
+ default: N(() => [a("div", bg, [a("img", {
8741
8751
  src: e.rawImage,
8742
8752
  alt: "Raw Preview",
8743
8753
  class: "uz-ocr-preview-img"
8744
- }, null, 8, Sg)])]),
8754
+ }, null, 8, xg)])]),
8745
8755
  _: 1
8746
8756
  }, 8, ["tab"])]),
8747
8757
  _: 1
@@ -8775,7 +8785,7 @@ function Lg(e, t, o, s, u, d) {
8775
8785
  "directory-dnd": "",
8776
8786
  class: "uz-w-full"
8777
8787
  }, {
8778
- default: N(() => [a("div", hg, [
8788
+ default: N(() => [a("div", mg, [
8779
8789
  t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
8780
8790
  xmlns: "http://www.w3.org/2000/svg",
8781
8791
  viewBox: "0 0 24 24",
@@ -8783,27 +8793,27 @@ function Lg(e, t, o, s, u, d) {
8783
8793
  height: "40",
8784
8794
  fill: "currentColor"
8785
8795
  }, [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),
8796
+ a("div", hg, A(e.t("OCR.scan")), 1),
8787
8797
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8788
8798
  ])]),
8789
8799
  _: 1
8790
- }, 8, ["on-before-upload"])), a("div", Cg, [a("div", wg, [a("span", Tg, A(e.t("OCR.preprocess")), 1), l(_, {
8800
+ }, 8, ["on-before-upload"])), a("div", Sg, [a("div", Cg, [a("span", wg, A(e.t("OCR.preprocess")), 1), l(_, {
8791
8801
  value: e.preEnabled,
8792
8802
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8793
8803
  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, {
8804
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Tg, [a("div", Eg, [a("span", Dg, A(e.t("OCR.scale")), 1), l(v, {
8795
8805
  value: e.preScale,
8796
8806
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8797
8807
  options: e.scaleOptions,
8798
8808
  size: "small",
8799
8809
  class: "uz-settings-select"
8800
- }, null, 8, ["value", "options"])]), a("div", kg, [a("span", Ag, A(e.t("OCR.contrast")), 1), l(_, {
8810
+ }, null, 8, ["value", "options"])]), a("div", Og, [a("span", kg, A(e.t("OCR.contrast")), 1), l(_, {
8801
8811
  value: e.preContrast,
8802
8812
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8803
8813
  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)]))])]);
8814
+ }, 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
8815
  }
8806
- var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]]), zg = /* @__PURE__ */ lt({
8816
+ var Lg = /*#__PURE__*/ W(dg, [["render", Ig], ["__scopeId", "data-v-c7224ff5"]]), Rg = /* @__PURE__ */ lt({
8807
8817
  AccessPoint: () => mt,
8808
8818
  Activity: () => vt,
8809
8819
  Adjustments: () => St,
@@ -8932,55 +8942,55 @@ var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]])
8932
8942
  UserPlus: () => Ml,
8933
8943
  Users: () => Il,
8934
8944
  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,
8945
+ UzBack: () => Uf,
8946
+ UzCamera: () => im,
8947
+ UzCircle: () => wp,
8948
+ UzDraggableForm: () => Lp,
8949
+ UzForm: () => Mp,
8950
+ UzFormItem: () => Op,
8951
+ UzFormItemImage: () => qp,
8952
+ UzFormItemTimesPicker: () => Zp,
8953
+ UzFormItemUpload: () => Up,
8944
8954
  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,
8955
+ UzOcr: () => Lg,
8956
+ UzSearchBar: () => dm,
8957
+ UzSearchMobileBar: () => _m,
8958
+ UzSpin: () => zm,
8959
+ UzTable: () => th,
8960
+ UzTableChild: () => lh,
8961
+ UzTableDrawer: () => Sh,
8962
+ UzTableFile: () => Rh,
8963
+ UzTableMobile: () => Mh,
8964
+ UzTableQuestChild: () => hh,
8965
+ UzThumbnail: () => qh,
8966
+ UzWrap: () => cg,
8957
8967
  X: () => Bl,
8958
8968
  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,
8969
+ fnActionReduction: () => Bf,
8970
+ fnActionSimplify: () => zf,
8971
+ fnAddThumbnail: () => Hh,
8972
+ fnClearAllThumbnail: () => Wh,
8973
+ fnDeleteThumbnail: () => Uh,
8974
+ fnGetTableData: () => Om,
8975
+ fnOptionReduction: () => Pm,
8976
+ fnOptionSimplify: () => Nm,
8977
+ fnPrepareFormData: () => Fm,
8978
+ fnPrepareTableData: () => Im,
8979
+ fnRenderAction: () => Mf,
8970
8980
  fnSetLang: () => Bu,
8971
8981
  fnSetTheme: () => Vu,
8972
- fnSetThumbnail: () => Vh,
8973
- fnTableReduction: () => jm,
8974
- fnTableSimplify: () => Am,
8975
- fnTriggersReduction: () => Nm,
8976
- fnTriggersSimplify: () => Mm,
8982
+ fnSetThumbnail: () => Bh,
8983
+ fnTableReduction: () => Am,
8984
+ fnTableSimplify: () => km,
8985
+ fnTriggersReduction: () => Mm,
8986
+ fnTriggersSimplify: () => jm,
8977
8987
  i18n: () => K
8978
- }), Bg = 3840, Vg = 2160, Hg = C({ scale: 1 });
8979
- function Ug(e, t) {
8980
- Bg = e, Vg = t;
8988
+ }), zg = 3840, Bg = 2160, Vg = C({ scale: 1 });
8989
+ function Hg(e, t) {
8990
+ zg = e, Bg = t;
8981
8991
  }
8982
- function Wg() {
8983
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Bg, i = Vg, a = parseFloat((r / i).toFixed(5));
8992
+ function Ug() {
8993
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = zg, i = Bg, a = parseFloat((r / i).toFixed(5));
8984
8994
  if (parseFloat((t / n).toFixed(5)) > a) {
8985
8995
  let t = parseFloat((n * a / r).toFixed(5));
8986
8996
  e = t > 1 ? 1 : t;
@@ -8988,17 +8998,17 @@ function Wg() {
8988
8998
  let n = parseFloat((t / a / i).toFixed(5));
8989
8999
  e = n > 1 ? 1 : n;
8990
9000
  }
8991
- Hg.scale = e;
9001
+ Vg.scale = e;
8992
9002
  }
8993
- function Gg() {
8994
- let e = Qe(Wg, 200);
9003
+ function Wg() {
9004
+ let e = Qe(Ug, 200);
8995
9005
  return e(), window.addEventListener("resize", e), () => {
8996
- Bg = 3840, Vg = 2160, window.removeEventListener("resize", e);
9006
+ zg = 3840, Bg = 2160, window.removeEventListener("resize", e);
8997
9007
  };
8998
9008
  }
8999
9009
  //#endregion
9000
9010
  //#region components/hooks/useThrottleFn.ts
9001
- function Kg(e, n = 1e3) {
9011
+ function Gg(e, n = 1e3) {
9002
9012
  let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
9003
9013
  return b(() => {
9004
9014
  i.value.cancel();
@@ -9010,14 +9020,14 @@ function Kg(e, n = 1e3) {
9010
9020
  }
9011
9021
  //#endregion
9012
9022
  //#region components/hooks/useLocalStorage.ts
9013
- function qg(e, t) {
9023
+ function Kg(e, t) {
9014
9024
  return [w(X(e, t?.defaultValue)), (n) => {
9015
9025
  n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
9016
9026
  }];
9017
9027
  }
9018
9028
  //#endregion
9019
9029
  //#region components/hooks/useQuery.ts
9020
- function Jg(e, t, n) {
9030
+ function qg(e, t, n) {
9021
9031
  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
9032
  ff(), clearInterval(o.value), o.value = null;
9023
9033
  }, p = async () => {
@@ -9083,26 +9093,26 @@ function Jg(e, t, n) {
9083
9093
  }
9084
9094
  //#endregion
9085
9095
  //#region package.json
9086
- var Yg = "0.1.82", Xg;
9087
- async function Zg() {
9096
+ var Jg = "0.1.84", Yg;
9097
+ async function Xg() {
9088
9098
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
9089
9099
  method: "HEAD",
9090
9100
  cache: "no-cache"
9091
9101
  });
9092
9102
  return e.headers.get("etag") || e.headers.get("last-modified");
9093
9103
  }
9094
- async function Qg() {
9095
- let e = await Zg();
9096
- Xg !== e && Hu(!0);
9104
+ async function Zg() {
9105
+ let e = await Xg();
9106
+ Yg !== e && Hu(!0);
9097
9107
  }
9098
- async function $g() {
9099
- Xg = await Zg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9100
- Qg();
9108
+ async function Qg() {
9109
+ Yg = await Xg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9110
+ Zg();
9101
9111
  }, 60 * 1e3);
9102
9112
  }
9103
9113
  //#endregion
9104
9114
  //#region components/create.ts
9105
- function e_({ components: e = [] } = {}) {
9115
+ function $g({ components: e = [] } = {}) {
9106
9116
  let t = [];
9107
9117
  function n(e, t, n) {
9108
9118
  e.component(t) || e.component(t, n);
@@ -9115,16 +9125,16 @@ function e_({ components: e = [] } = {}) {
9115
9125
  });
9116
9126
  }), i)) {
9117
9127
  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);
9128
+ Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && Qg(), t && tf(r, t, n);
9119
9129
  }
9120
9130
  }
9121
9131
  return {
9122
- version: Yg,
9132
+ version: Jg,
9123
9133
  install: r
9124
9134
  };
9125
9135
  }
9126
9136
  //#endregion
9127
9137
  //#region components/preset.ts
9128
- var t_ = e_({ components: Object.keys(zg).map((e) => zg[e]) }), n_ = t_.install;
9138
+ var e_ = $g({ components: Object.keys(Rg).map((e) => Rg[e]) }), t_ = e_.install;
9129
9139
  //#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 };
9140
+ 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 };