@unizhen/ui 0.1.79 → 0.1.81

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 () => Af({
43
+ return () => Nf({
44
44
  buttons: e.data,
45
45
  rowData: e.rowData,
46
46
  hProps: e.hProps
@@ -2049,7 +2049,10 @@ var K = Ye({
2049
2049
  scan: "Scan",
2050
2050
  download: "Download",
2051
2051
  expand: "Expand",
2052
- contract: "Contract"
2052
+ contract: "Contract",
2053
+ import: "Import",
2054
+ export: "Export",
2055
+ file: "File"
2053
2056
  },
2054
2057
  Notice: {
2055
2058
  success: "Operation Success",
@@ -2089,7 +2092,10 @@ var K = Ye({
2089
2092
  scan: "扫一扫",
2090
2093
  download: "下载",
2091
2094
  expand: "全部展开",
2092
- contract: "全部收起"
2095
+ contract: "全部收起",
2096
+ import: "导入",
2097
+ export: "导出",
2098
+ file: "文件"
2093
2099
  },
2094
2100
  Notice: {
2095
2101
  success: "操作成功",
@@ -2202,7 +2208,7 @@ var Xu = "local-", Zu = new class {
2202
2208
  deleteAll() {
2203
2209
  for (let e in this.map) this.delete(e);
2204
2210
  }
2205
- }("qx"), Qu = new Intl.Collator("zh-Hans-u-co-pinyin"), $u = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ed = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: td, dialog: nd } = Be(["notification", "dialog"], {
2211
+ }("uz"), Qu = new Intl.Collator("zh-Hans-u-co-pinyin"), $u = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ed = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: td, dialog: nd } = Be(["notification", "dialog"], {
2206
2212
  configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
2207
2213
  notificationProviderProps: { placement: "bottom-right" }
2208
2214
  }), rd = td, id = nd;
@@ -2615,7 +2621,8 @@ lf.interceptors.request.use((e) => {
2615
2621
  return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
2616
2622
  }, (e) => Promise.reject(e)), lf.interceptors.response.use((e) => {
2617
2623
  let t = e.data;
2618
- if (t.code === 401 && (ad("token"), G.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
2624
+ if (t.code === 401) return ad("token"), G.replace("/login"), Promise.reject(!1);
2625
+ if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
2619
2626
  let t = cf(e.headers);
2620
2627
  return Promise.resolve({
2621
2628
  fileName: decodeURIComponent(t),
@@ -2687,10 +2694,13 @@ var df = "/apiserver/", ff = () => {
2687
2694
  calculationIds: e,
2688
2695
  linkId: t,
2689
2696
  ...n
2690
- }), Tf = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
2697
+ }), Tf = (e) => mf("excel/template", { tableKey: e }, "arraybuffer"), Ef = (e) => Q("excel/record/query", {
2698
+ recordType: "import",
2699
+ tableKey: e
2700
+ }), Df = (e) => Q("excel/exportData", e), Of = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
2691
2701
  trigger: () => e,
2692
2702
  default: () => typeof t == "function" ? t() : t
2693
- }), Ef = (e, t, n, r) => {
2703
+ }), kf = (e, t, n, r) => {
2694
2704
  try {
2695
2705
  Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
2696
2706
  n && n();
@@ -2704,7 +2714,7 @@ var df = "/apiserver/", ff = () => {
2704
2714
  } catch (e) {
2705
2715
  J(e);
2706
2716
  }
2707
- }, Df = (e, t, n, r, i) => {
2717
+ }, Af = (e, t, n, r, i) => {
2708
2718
  let a = {
2709
2719
  quaternary: i?.quaternary || !1,
2710
2720
  size: i?.size || "small",
@@ -2717,36 +2727,36 @@ var df = "/apiserver/", ff = () => {
2717
2727
  if (!e.confirmText) {
2718
2728
  if (e.onClick && typeof e.onClick == "string") {
2719
2729
  let i = e.onClick;
2720
- a.onClick = () => Ef(i, t, n, r);
2730
+ a.onClick = () => kf(i, t, n, r);
2721
2731
  }
2722
2732
  e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
2723
2733
  }
2724
2734
  return e.icon && (o.icon = () => f(V, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
2725
- }, Of = (e, t, n, r, i) => {
2735
+ }, jf = (e, t, n, r, i) => {
2726
2736
  let a = { placement: "left" };
2727
2737
  if (typeof t.onClick == "string") {
2728
2738
  let e = t.onClick;
2729
- a["on-positive-click"] = () => Ef(e, n, r, i);
2739
+ a["on-positive-click"] = () => kf(e, n, r, i);
2730
2740
  } else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
2731
2741
  return f(Te, a, {
2732
2742
  default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
2733
2743
  trigger: () => e
2734
2744
  });
2735
- }, kf = (e, t, n, r, i) => {
2736
- let a = Df(e, t, n, r, i);
2737
- return e.confirmText && (a = Of(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Tf(a, e.tooltipText)), a;
2738
- }, Af = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
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 }) => {
2739
2749
  let a = [];
2740
2750
  return e.forEach((e) => {
2741
2751
  if (e.type === "group") {
2742
2752
  let o = [];
2743
2753
  e.children && e.children.length > 0 && e.children.forEach((a, s) => {
2744
- o.push(kf({
2754
+ o.push(Mf({
2745
2755
  ...a,
2746
2756
  tooltipText: void 0
2747
2757
  }, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
2748
2758
  }), a.push(f(Ee, { trigger: "click" }, {
2749
- trigger: () => Df({
2759
+ trigger: () => Af({
2750
2760
  type: "normal",
2751
2761
  key: e.key,
2752
2762
  icon: e.icon,
@@ -2762,11 +2772,11 @@ var df = "/apiserver/", ff = () => {
2762
2772
  }));
2763
2773
  }
2764
2774
  if (e.type === "normal") {
2765
- let o = kf(e, t, n, r, i);
2775
+ let o = Mf(e, t, n, r, i);
2766
2776
  a.push(o);
2767
2777
  }
2768
2778
  }), f("div", { class: "uz-action-flex" }, { default: () => a });
2769
- }, jf = (e) => {
2779
+ }, Pf = (e) => {
2770
2780
  switch (e) {
2771
2781
  case "tertiary": return 1;
2772
2782
  case "primary": return 2;
@@ -2776,7 +2786,7 @@ var df = "/apiserver/", ff = () => {
2776
2786
  case "error": return 6;
2777
2787
  default: return 0;
2778
2788
  }
2779
- }, Mf = (e) => {
2789
+ }, Ff = (e) => {
2780
2790
  switch (e) {
2781
2791
  case 1: return "tertiary";
2782
2792
  case 2: return "primary";
@@ -2786,7 +2796,7 @@ var df = "/apiserver/", ff = () => {
2786
2796
  case 6: return "error";
2787
2797
  default: return "default";
2788
2798
  }
2789
- }, Nf = (e) => {
2799
+ }, If = (e) => {
2790
2800
  switch (e) {
2791
2801
  case "detailInside": return 0;
2792
2802
  case "editInside": return 1;
@@ -2795,7 +2805,7 @@ var df = "/apiserver/", ff = () => {
2795
2805
  case "enabledInside": return 4;
2796
2806
  default: return e;
2797
2807
  }
2798
- }, Pf = (e) => {
2808
+ }, Lf = (e) => {
2799
2809
  switch (e) {
2800
2810
  case 0: return "detailInside";
2801
2811
  case 1: return "editInside";
@@ -2804,66 +2814,66 @@ var df = "/apiserver/", ff = () => {
2804
2814
  case 4: return "enabledInside";
2805
2815
  default: return e;
2806
2816
  }
2807
- }, Ff = (e) => ({
2817
+ }, Rf = (e) => ({
2808
2818
  t: 0,
2809
2819
  k: e.key,
2810
2820
  d: e?.disabled,
2811
2821
  l: e?.loading,
2812
2822
  i: e?.icon,
2813
- c: jf(e?.color),
2823
+ c: Pf(e?.color),
2814
2824
  b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
2815
2825
  o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
2816
2826
  p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
2817
2827
  s: e?.optionsType,
2818
2828
  u: e?.optionsSource,
2819
- a: Nf(e?.action),
2829
+ a: If(e?.action),
2820
2830
  r: +!!e.footer,
2821
2831
  g: +!!e.main,
2822
2832
  h: +!!e.sub,
2823
2833
  w: e?.width,
2824
2834
  z: e?.onClick
2825
- }), If = (e) => ({
2835
+ }), zf = (e) => ({
2826
2836
  type: "normal",
2827
2837
  key: e.k,
2828
2838
  disabled: e?.d,
2829
2839
  loading: e?.l,
2830
2840
  icon: e?.i,
2831
- color: Mf(e?.c),
2841
+ color: Ff(e?.c),
2832
2842
  buttonText: e?.b ? decodeURIComponent(e?.b) : "",
2833
2843
  confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
2834
2844
  tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
2835
2845
  optionsType: e?.s,
2836
2846
  optionsSource: e?.u,
2837
- action: Pf(e?.a),
2847
+ action: Lf(e?.a),
2838
2848
  footer: !!e.r,
2839
2849
  sub: !!e.h,
2840
2850
  main: !!e.g,
2841
2851
  width: e?.w,
2842
2852
  onClick: e?.z
2843
- }), Lf = (e) => {
2853
+ }), Bf = (e) => {
2844
2854
  let t = [];
2845
- for (let n of e) n.type === "normal" && t.push(Ff(n)), n.type === "group" && t.push({
2855
+ for (let n of e) n.type === "normal" && t.push(Rf(n)), n.type === "group" && t.push({
2846
2856
  t: 1,
2847
2857
  k: n.key,
2848
2858
  i: n?.icon,
2849
- x: jf(n?.color),
2859
+ x: Pf(n?.color),
2850
2860
  b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
2851
- c: n.children.map((e) => Ff(e))
2861
+ c: n.children.map((e) => Rf(e))
2852
2862
  });
2853
2863
  return t;
2854
- }, Rf = (e) => {
2864
+ }, Vf = (e) => {
2855
2865
  if (e && e[0] && e[0].type) return e;
2856
2866
  let t = [];
2857
- for (let n of e) n.t === 0 && t.push(If(n)), n.t === 1 && t.push({
2867
+ for (let n of e) n.t === 0 && t.push(zf(n)), n.t === 1 && t.push({
2858
2868
  type: "group",
2859
2869
  key: n.k,
2860
2870
  icon: n?.i,
2861
- color: Mf(n?.x),
2871
+ color: Ff(n?.x),
2862
2872
  buttonText: n?.b ? decodeURIComponent(n?.b) : "",
2863
- children: n.c.map((e) => If(e))
2873
+ children: n.c.map((e) => zf(e))
2864
2874
  });
2865
2875
  return t;
2866
- }, zf = d({
2876
+ }, Hf = d({
2867
2877
  name: "UzBack",
2868
2878
  components: {
2869
2879
  ArrowNarrowLeft: an,
@@ -2889,7 +2899,7 @@ var df = "/apiserver/", ff = () => {
2889
2899
  });
2890
2900
  //#endregion
2891
2901
  //#region components/back/index.vue
2892
- function Bf(e, t, r, i, o, s) {
2902
+ function Uf(e, t, r, i, o, s) {
2893
2903
  let c = D("ArrowNarrowLeft"), u = D("NIcon"), d = D("NButton");
2894
2904
  return x(), n(d, {
2895
2905
  quaternary: "",
@@ -2903,7 +2913,7 @@ function Bf(e, t, r, i, o, s) {
2903
2913
  _: 1
2904
2914
  }, 8, ["onClick"]);
2905
2915
  }
2906
- var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2, Gf = (Hf - 6 - Uf) / 2, Kf = Gf * 2 * Math.PI, qf = Gf * 1.5 * Math.PI, Jf = `${qf} ${Kf}`, Yf = `translate(${Wf}, 69)`, Xf = `translate(${Wf}, 84)`, Zf = (e) => {
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) => {
2907
2917
  if (!e) return "";
2908
2918
  let t = e.toLowerCase();
2909
2919
  if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
@@ -2917,7 +2927,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
2917
2927
  return e.join(",");
2918
2928
  }
2919
2929
  return "0,0,0";
2920
- }, Qf = d({
2930
+ }, tp = d({
2921
2931
  name: "UzCircle",
2922
2932
  props: {
2923
2933
  circle: {
@@ -2943,30 +2953,30 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
2943
2953
  return {
2944
2954
  uniqueId: n,
2945
2955
  blurFilterId: `uz-blurs-${n}`,
2946
- backgroundBg: t(() => `rgba(${Zf(e.color)},0.1)`),
2947
- strokeDasharray: Jf,
2948
- centerTransform: Yf,
2949
- centerTransformUnit: Xf,
2950
- colorA: t(() => `rgba(${Zf(e.color).split(",").map((e) => {
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) => {
2951
2961
  let t = Number(e) - 50;
2952
2962
  return t < 0 && (t = 0), t;
2953
2963
  })},1)`),
2954
- colorB: t(() => `rgba(${Zf(e.color)},1)`),
2964
+ colorB: t(() => `rgba(${ep(e.color)},1)`),
2955
2965
  calculateCircle: () => {
2956
2966
  let t = 314 - Number(e.circle) * Math.PI;
2957
2967
  return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
2958
2968
  },
2959
2969
  calculateSemicircle: (t) => {
2960
2970
  let n = t ?? Number(e.circle);
2961
- return n > 100 && (n = 100), n <= 0 && (n = 1e-4), qf * (1 - n / 100);
2971
+ return n > 100 && (n = 100), n <= 0 && (n = 1e-4), Xf * (1 - n / 100);
2962
2972
  },
2963
2973
  calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
2964
2974
  };
2965
2975
  }
2966
- }), $f = { class: "uz-circle" }, ep = {
2976
+ }), np = { class: "uz-circle" }, rp = {
2967
2977
  key: 0,
2968
2978
  viewBox: "40 20 120 120"
2969
- }, tp = ["id"], np = ["stop-color"], rp = ["stop-color"], ip = ["id"], ap = ["stroke"], op = ["filter", "stroke"], sp = ["filter", "transform"], cp = {
2979
+ }, ip = ["id"], ap = ["stop-color"], op = ["stop-color"], sp = ["id"], cp = ["stroke"], lp = ["filter", "stroke"], up = ["filter", "transform"], dp = {
2970
2980
  dx: "100",
2971
2981
  dy: "90",
2972
2982
  "text-anchor": "middle",
@@ -2975,7 +2985,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
2975
2985
  "font-size": "2rem",
2976
2986
  "font-weight": "400"
2977
2987
  }
2978
- }, lp = {
2988
+ }, fp = {
2979
2989
  dx: "100",
2980
2990
  dy: "105",
2981
2991
  "text-anchor": "middle",
@@ -2984,20 +2994,20 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
2984
2994
  "font-size": "0.6rem",
2985
2995
  "font-weight": "400"
2986
2996
  }
2987
- }, up = {
2997
+ }, pp = {
2988
2998
  key: 1,
2989
2999
  viewBox: "0 0 120 120"
2990
- }, dp = ["id"], fp = ["stop-color"], pp = ["stop-color"], mp = ["id"], hp = [
3000
+ }, mp = ["id"], hp = ["stop-color"], gp = ["stop-color"], _p = ["id"], vp = [
2991
3001
  "stroke-dasharray",
2992
3002
  "stroke-dashoffset",
2993
3003
  "transform"
2994
- ], gp = ["filter", "stroke"], _p = [
3004
+ ], yp = ["filter", "stroke"], bp = [
2995
3005
  "stroke-dasharray",
2996
3006
  "stroke-dashoffset",
2997
3007
  "transform"
2998
- ], vp = ["stroke"], yp = ["transform"], bp = ["transform"];
2999
- function xp(e, t, n, r, o, s) {
3000
- return x(), i("div", $f, [e.mode === 0 ? (x(), i("svg", ep, [
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, [
3001
3011
  a("defs", null, [a("linearGradient", {
3002
3012
  id: `uz-progress-grad-${e.uniqueId}`,
3003
3013
  x1: "1",
@@ -3007,10 +3017,10 @@ function xp(e, t, n, r, o, s) {
3007
3017
  }, [a("stop", {
3008
3018
  offset: "0%",
3009
3019
  "stop-color": e.colorA
3010
- }, null, 8, np), a("stop", {
3020
+ }, null, 8, ap), a("stop", {
3011
3021
  offset: "50%",
3012
3022
  "stop-color": e.colorB
3013
- }, null, 8, rp)], 8, tp), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
3023
+ }, null, 8, op)], 8, ip), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
3014
3024
  a("feOffset", {
3015
3025
  result: "offOut",
3016
3026
  in: "SourceGraphic",
@@ -3027,7 +3037,7 @@ function xp(e, t, n, r, o, s) {
3027
3037
  in2: "blurOut",
3028
3038
  mode: "normal"
3029
3039
  }, null, -1)
3030
- ]], 8, ip)]),
3040
+ ]], 8, sp)]),
3031
3041
  a("circle", {
3032
3042
  transform: "rotate(-90 100 80)",
3033
3043
  cx: "100",
@@ -3037,7 +3047,7 @@ function xp(e, t, n, r, o, s) {
3037
3047
  "stroke-width": "10",
3038
3048
  "stroke-dashoffset": "0",
3039
3049
  stroke: e.backgroundBg
3040
- }, null, 8, ap),
3050
+ }, null, 8, cp),
3041
3051
  a("circle", {
3042
3052
  class: "uz-circle-round",
3043
3053
  filter: `url(#${e.blurFilterId})`,
@@ -3050,7 +3060,7 @@ function xp(e, t, n, r, o, s) {
3050
3060
  "stroke-width": "10",
3051
3061
  style: _(e.calculateCircle()),
3052
3062
  stroke: `url(#uz-progress-grad-${e.uniqueId})`
3053
- }, null, 12, op),
3063
+ }, null, 12, lp),
3054
3064
  a("circle", {
3055
3065
  class: "uz-circle-round",
3056
3066
  filter: `url(#${e.blurFilterId})`,
@@ -3060,10 +3070,10 @@ function xp(e, t, n, r, o, s) {
3060
3070
  "stroke-width": "0",
3061
3071
  transform: e.calculatePoint(),
3062
3072
  fill: "#fff"
3063
- }, null, 8, sp),
3064
- a("text", cp, A(e.circle), 1),
3065
- a("text", lp, A(e.circleUnit), 1)
3066
- ])) : (x(), i("svg", up, [
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, [
3067
3077
  a("defs", null, [a("linearGradient", {
3068
3078
  id: `uz-progress-grad-1-${e.uniqueId}`,
3069
3079
  x1: "1",
@@ -3073,10 +3083,10 @@ function xp(e, t, n, r, o, s) {
3073
3083
  }, [a("stop", {
3074
3084
  offset: "0%",
3075
3085
  "stop-color": e.colorA
3076
- }, null, 8, fp), a("stop", {
3086
+ }, null, 8, hp), a("stop", {
3077
3087
  offset: "50%",
3078
3088
  "stop-color": e.colorB
3079
- }, null, 8, pp)], 8, dp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
3089
+ }, null, 8, gp)], 8, mp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
3080
3090
  a("feOffset", {
3081
3091
  result: "offOut",
3082
3092
  in: "SourceGraphic",
@@ -3093,7 +3103,7 @@ function xp(e, t, n, r, o, s) {
3093
3103
  in2: "blurOut",
3094
3104
  mode: "normal"
3095
3105
  }, null, -1)
3096
- ]], 8, mp)]),
3106
+ ]], 8, _p)]),
3097
3107
  a("g", {
3098
3108
  fill: "none",
3099
3109
  "stroke-dasharray": e.strokeDasharray,
@@ -3107,7 +3117,7 @@ function xp(e, t, n, r, o, s) {
3107
3117
  stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
3108
3118
  transform: "rotate(-225)",
3109
3119
  class: "uz-semicircle-round"
3110
- }, null, 8, gp)], 8, hp),
3120
+ }, null, 8, yp)], 8, vp),
3111
3121
  a("g", {
3112
3122
  fill: "none",
3113
3123
  "stroke-dasharray": e.strokeDasharray,
@@ -3119,7 +3129,7 @@ function xp(e, t, n, r, o, s) {
3119
3129
  r: "52",
3120
3130
  stroke: e.backgroundBg,
3121
3131
  transform: "rotate(-225)"
3122
- }, null, 8, vp)], 8, _p),
3132
+ }, null, 8, xp)], 8, bp),
3123
3133
  a("text", {
3124
3134
  fill: "var(--circle-color)",
3125
3135
  "text-anchor": "middle",
@@ -3128,7 +3138,7 @@ function xp(e, t, n, r, o, s) {
3128
3138
  "font-size": "2rem",
3129
3139
  "font-weight": "400"
3130
3140
  }
3131
- }, A(e.circle), 9, yp),
3141
+ }, A(e.circle), 9, Sp),
3132
3142
  a("text", {
3133
3143
  cy: "90",
3134
3144
  fill: "var(--circle-unit-color)",
@@ -3138,10 +3148,10 @@ function xp(e, t, n, r, o, s) {
3138
3148
  "font-size": "0.6rem",
3139
3149
  "font-weight": "400"
3140
3150
  }
3141
- }, A(e.circleUnit), 9, bp)
3151
+ }, A(e.circleUnit), 9, Cp)
3142
3152
  ]))]);
3143
3153
  }
3144
- var Sp = /*#__PURE__*/ W(Qf, [["render", xp]]), Cp = d({
3154
+ var Tp = /*#__PURE__*/ W(tp, [["render", wp]]), Ep = d({
3145
3155
  name: "UzFormItem",
3146
3156
  components: {
3147
3157
  NIcon: V,
@@ -3272,8 +3282,8 @@ var Sp = /*#__PURE__*/ W(Qf, [["render", xp]]), Cp = d({
3272
3282
  selectFilter: (e, t) => _d(t.label, e)
3273
3283
  };
3274
3284
  }
3275
- }), wp = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3276
- function Tp(t, r, s, u, d, f) {
3285
+ }), Dp = { class: "uz-flex uz-flex-wrap uz-gap-2" };
3286
+ function Op(t, r, s, u, d, f) {
3277
3287
  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");
3278
3288
  return t.item.input === "input" ? (x(), n(p, {
3279
3289
  key: 0,
@@ -3578,7 +3588,7 @@ function Tp(t, r, s, u, d, f) {
3578
3588
  value: t.formValue[t.item.key],
3579
3589
  disabled: t.checkDisabled()
3580
3590
  }, {
3581
- default: N(() => [a("div", wp, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3591
+ default: N(() => [a("div", Dp, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
3582
3592
  key: e.value,
3583
3593
  label: e.label,
3584
3594
  value: e.value
@@ -3647,7 +3657,7 @@ function Tp(t, r, s, u, d, f) {
3647
3657
  "status"
3648
3658
  ])) : (x(), i(e, { key: 14 }, [], 64));
3649
3659
  }
3650
- var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
3660
+ var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
3651
3661
  name: "UzForm",
3652
3662
  components: {
3653
3663
  NForm: pe,
@@ -3655,7 +3665,7 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
3655
3665
  NDivider: ce,
3656
3666
  NButton: L,
3657
3667
  NIcon: V,
3658
- UzFormItem: Ep,
3668
+ UzFormItem: kp,
3659
3669
  Plus: uc
3660
3670
  },
3661
3671
  props: {
@@ -3860,8 +3870,8 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
3860
3870
  }
3861
3871
  };
3862
3872
  }
3863
- }), Op = ["onClick"];
3864
- function kp(t, o, s, u, d, f) {
3873
+ }), jp = ["onClick"];
3874
+ function Mp(t, o, s, u, d, f) {
3865
3875
  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");
3866
3876
  return x(), i(e, null, [l(C, {
3867
3877
  ref: "formRef",
@@ -3889,7 +3899,7 @@ function kp(t, o, s, u, d, f) {
3889
3899
  }, [l(m, null, {
3890
3900
  default: N(() => [l(p)]),
3891
3901
  _: 1
3892
- }), o[0] ||= c(" 新增 ", -1)], 8, Op)) : r("", !0),
3902
+ }), o[0] ||= c(" 新增 ", -1)], 8, jp)) : r("", !0),
3893
3903
  s.form.showDays ? (x(), i("span", {
3894
3904
  key: 1,
3895
3905
  class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
@@ -3950,7 +3960,7 @@ function kp(t, o, s, u, d, f) {
3950
3960
  onOnSubmit: t.refreshOption
3951
3961
  }, null, 8, ["onOnSubmit"])], 64);
3952
3962
  }
3953
- var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
3963
+ var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
3954
3964
  name: "UzDraggableForm",
3955
3965
  components: {
3956
3966
  NForm: pe,
@@ -3958,7 +3968,7 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
3958
3968
  NButton: L,
3959
3969
  NIcon: V,
3960
3970
  NDivider: ce,
3961
- UzFormItem: Ep,
3971
+ UzFormItem: kp,
3962
3972
  Trash: bl,
3963
3973
  Plus: uc,
3964
3974
  VueDraggable: tt
@@ -4057,14 +4067,14 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
4057
4067
  }
4058
4068
  };
4059
4069
  }
4060
- }), Mp = {
4070
+ }), Fp = {
4061
4071
  key: 0,
4062
4072
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
4063
- }, Np = {
4073
+ }, Ip = {
4064
4074
  key: 1,
4065
4075
  class: "uz-form-item-add"
4066
4076
  };
4067
- function Pp(t, o, s, u, d, f) {
4077
+ function Lp(t, o, s, u, d, f) {
4068
4078
  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");
4069
4079
  return x(), n(E, {
4070
4080
  ref: "formRef",
@@ -4102,11 +4112,11 @@ function Pp(t, o, s, u, d, f) {
4102
4112
  }, {
4103
4113
  label: N(() => [
4104
4114
  a("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
4105
- s.source && s.form.createButton ? (x(), i("a", Mp, [l(m, null, {
4115
+ s.source && s.form.createButton ? (x(), i("a", Fp, [l(m, null, {
4106
4116
  default: N(() => [l(p)]),
4107
4117
  _: 1
4108
4118
  }), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
4109
- s.form.showDays ? (x(), i("span", Np, " showDays ")) : r("", !0)
4119
+ s.form.showDays ? (x(), i("span", Ip, " showDays ")) : r("", !0)
4110
4120
  ]),
4111
4121
  default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
4112
4122
  key: 0,
@@ -4233,7 +4243,7 @@ function Pp(t, o, s, u, d, f) {
4233
4243
  "onClick"
4234
4244
  ]);
4235
4245
  }
4236
- var Fp = /*#__PURE__*/ W(jp, [["render", Pp]]), Ip = d({
4246
+ var Rp = /*#__PURE__*/ W(Pp, [["render", Lp]]), zp = d({
4237
4247
  name: "UzFormItemUpload",
4238
4248
  components: {
4239
4249
  NUpload: Re,
@@ -4349,8 +4359,8 @@ var Fp = /*#__PURE__*/ W(jp, [["render", Pp]]), Ip = d({
4349
4359
  }
4350
4360
  };
4351
4361
  }
4352
- }), Lp = { class: "uz-form-upload-item-inner" }, Rp = ["title"], zp = { key: 0 };
4353
- function Bp(t, o, s, u, d, f) {
4362
+ }), Bp = { class: "uz-form-upload-item-inner" }, Vp = ["title"], Hp = { key: 0 };
4363
+ function Up(t, o, s, u, d, f) {
4354
4364
  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");
4355
4365
  return x(), n(E, {
4356
4366
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
@@ -4404,10 +4414,10 @@ function Bp(t, o, s, u, d, f) {
4404
4414
  }, {
4405
4415
  default: N(() => [l(y)]),
4406
4416
  _: 1
4407
- }, 8, ["onClick"])), a("div", Lp, [a("div", {
4417
+ }, 8, ["onClick"])), a("div", Bp, [a("div", {
4408
4418
  class: "uz-form-upload-title uz-truncate",
4409
4419
  title: e.name
4410
- }, A(e.name), 9, Rp), t.status === 2 ? r("", !0) : (x(), i("div", zp, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4420
+ }, A(e.name), 9, Vp), t.status === 2 ? r("", !0) : (x(), i("div", Hp, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
4411
4421
  trigger: N(() => [l(S, {
4412
4422
  size: "small",
4413
4423
  tertiary: ""
@@ -4436,7 +4446,7 @@ function Bp(t, o, s, u, d, f) {
4436
4446
  _: 1
4437
4447
  }, 8, ["show"]);
4438
4448
  }
4439
- var Vp = /*#__PURE__*/ W(Ip, [["render", Bp], ["__scopeId", "data-v-2daf6715"]]), Hp = d({
4449
+ var Wp = /*#__PURE__*/ W(zp, [["render", Up], ["__scopeId", "data-v-2daf6715"]]), Gp = d({
4440
4450
  name: "UzFormItemImage",
4441
4451
  components: {
4442
4452
  NImageGroup: ve,
@@ -4482,11 +4492,11 @@ var Vp = /*#__PURE__*/ W(Ip, [["render", Bp], ["__scopeId", "data-v-2daf6715"]])
4482
4492
  }
4483
4493
  };
4484
4494
  }
4485
- }), Up = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
4486
- function Wp(t, r, o, s, u, d) {
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) {
4487
4497
  let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
4488
4498
  return x(), n(_, null, {
4489
- default: N(() => [a("div", Up, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
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, {
4490
4500
  key: 0,
4491
4501
  width: "40",
4492
4502
  src: r
@@ -4518,7 +4528,7 @@ function Wp(t, r, o, s, u, d) {
4518
4528
  _: 1
4519
4529
  });
4520
4530
  }
4521
- var Gp = /*#__PURE__*/ W(Hp, [["render", Wp]]), Kp = d({
4531
+ var Jp = /*#__PURE__*/ W(Gp, [["render", qp]]), Yp = d({
4522
4532
  name: "UzFormItemTimesPicker",
4523
4533
  components: { NSelect: ke },
4524
4534
  props: {
@@ -4568,10 +4578,10 @@ var Gp = /*#__PURE__*/ W(Hp, [["render", Wp]]), Kp = d({
4568
4578
  }
4569
4579
  };
4570
4580
  }
4571
- }), qp = { class: "times-picker" };
4572
- function Jp(e, t, n, r, a, o) {
4581
+ }), Xp = { class: "times-picker" };
4582
+ function Zp(e, t, n, r, a, o) {
4573
4583
  let s = D("NSelect");
4574
- return x(), i("div", qp, [
4584
+ return x(), i("div", Xp, [
4575
4585
  l(s, {
4576
4586
  value: e.h,
4577
4587
  options: e.times,
@@ -4619,7 +4629,7 @@ function Jp(e, t, n, r, a, o) {
4619
4629
  ])
4620
4630
  ]);
4621
4631
  }
4622
- var Yp = /*#__PURE__*/ W(Kp, [["render", Jp], ["__scopeId", "data-v-12b4d7e3"]]), Xp = d({
4632
+ var Qp = /*#__PURE__*/ W(Yp, [["render", Zp], ["__scopeId", "data-v-12b4d7e3"]]), $p = d({
4623
4633
  name: "UzCamera",
4624
4634
  components: {
4625
4635
  NButton: L,
@@ -4711,11 +4721,11 @@ var Yp = /*#__PURE__*/ W(Kp, [["render", Jp], ["__scopeId", "data-v-12b4d7e3"]])
4711
4721
  closeAll: d
4712
4722
  };
4713
4723
  }
4714
- }), Zp = ["width", "height"], Qp = ["width", "height"], $p = { class: "uz-scan-video" }, em = {
4724
+ }), em = ["width", "height"], tm = ["width", "height"], nm = { class: "uz-scan-video" }, rm = {
4715
4725
  ref: "videoRef",
4716
4726
  playsInline: ""
4717
4727
  };
4718
- function tm(t, o, s, l, u, d) {
4728
+ function im(t, o, s, l, u, d) {
4719
4729
  let f = D("NButton"), p = D("NModal");
4720
4730
  return x(), i(e, null, [
4721
4731
  t.mode === "button" ? (x(), n(f, {
@@ -4747,7 +4757,7 @@ function tm(t, o, s, l, u, d) {
4747
4757
  id: "uz-scan-canvas",
4748
4758
  width: t.width,
4749
4759
  height: t.height
4750
- }, null, 8, Zp)], 4)]),
4760
+ }, null, 8, em)], 4)]),
4751
4761
  _: 1
4752
4762
  }, 8, [
4753
4763
  "show",
@@ -4765,11 +4775,11 @@ function tm(t, o, s, l, u, d) {
4765
4775
  id: "uz-scan-canvas",
4766
4776
  width: t.width,
4767
4777
  height: t.height
4768
- }, null, 8, Qp)], 4)) : r("", !0),
4769
- a("div", $p, [a("video", em, null, 512)])
4778
+ }, null, 8, tm)], 4)) : r("", !0),
4779
+ a("div", nm, [a("video", rm, null, 512)])
4770
4780
  ], 64);
4771
4781
  }
4772
- var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap(), im = d({
4782
+ var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap(), sm = d({
4773
4783
  name: "UzSearchBar",
4774
4784
  components: {
4775
4785
  NIcon: V,
@@ -4780,7 +4790,7 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
4780
4790
  NInputGroup: be,
4781
4791
  NInputGroupLabel: xe,
4782
4792
  NPopover: Ee,
4783
- UzFormItem: Ep,
4793
+ UzFormItem: kp,
4784
4794
  CaretDown: Fr,
4785
4795
  Refresh: Ac,
4786
4796
  Search: Xc,
@@ -4822,10 +4832,10 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
4822
4832
  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);
4823
4833
  }
4824
4834
  });
4825
- n.observe(e), rm.set(e, n);
4835
+ n.observe(e), om.set(e, n);
4826
4836
  },
4827
4837
  unmounted: (e) => {
4828
- rm.get(e)?.disconnect(), rm.delete(e);
4838
+ om.get(e)?.disconnect(), om.delete(e);
4829
4839
  }
4830
4840
  } },
4831
4841
  emits: ["update:loading", "on-update:value"],
@@ -4940,19 +4950,19 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
4940
4950
  tabButtonType: b
4941
4951
  };
4942
4952
  }
4943
- }), am = {
4953
+ }), cm = {
4944
4954
  key: 0,
4945
4955
  class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
4946
- }, om = { class: "uz-flex-1" }, sm = {
4956
+ }, lm = { class: "uz-flex-1" }, um = {
4947
4957
  key: 1,
4948
4958
  class: "uz-flex uz-gap-2 uz-flex-1"
4949
4959
  };
4950
- function cm(t, a, o, s, u, d) {
4960
+ function dm(t, a, o, s, u, d) {
4951
4961
  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");
4952
4962
  return x(), i("div", {
4953
4963
  class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
4954
4964
  onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
4955
- }, [t.enableHeader ? (x(), i("div", am, [E(t.$slots, "header"), P((x(), i("div", om, [l(b, {
4965
+ }, [t.enableHeader ? (x(), i("div", cm, [E(t.$slots, "header"), P((x(), i("div", lm, [l(b, {
4956
4966
  "x-gap": "8",
4957
4967
  "y-gap": "8",
4958
4968
  cols: t.cols,
@@ -5009,7 +5019,7 @@ function cm(t, a, o, s, u, d) {
5009
5019
  }, 1032, ["span"]))), 128))
5010
5020
  ]),
5011
5021
  _: 1
5012
- }, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", sm, [
5022
+ }, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", um, [
5013
5023
  t.more ? (x(), n(f, {
5014
5024
  key: 0,
5015
5025
  quaternary: "",
@@ -5021,39 +5031,46 @@ function cm(t, a, o, s, u, d) {
5021
5031
  }, 8, ["class"])]),
5022
5032
  _: 1
5023
5033
  }, 8, ["onClick"])) : r("", !0),
5024
- t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(f, {
5034
+ t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(_, {
5025
5035
  key: 1,
5026
- loading: t.loading,
5027
- secondary: "",
5028
- onClick: a[0] ||= (e) => t.doSearch(!1)
5036
+ trigger: "hover",
5037
+ placement: "bottom",
5038
+ "show-arrow": !1,
5039
+ style: { padding: "0" }
5029
5040
  }, {
5030
- icon: N(() => [l(C, {
5031
- size: "18",
5032
- color: "#0086ff"
5041
+ trigger: N(() => [l(f, {
5042
+ loading: t.loading,
5043
+ secondary: "",
5044
+ onClick: a[0] ||= (e) => t.doSearch(!1)
5033
5045
  }, {
5034
- default: N(() => [l(w)]),
5046
+ icon: N(() => [l(C, {
5047
+ size: "18",
5048
+ color: "#0086ff"
5049
+ }, {
5050
+ default: N(() => [l(w)]),
5051
+ _: 1
5052
+ })]),
5053
+ default: N(() => [c(" " + A(t.$t("Common.search")), 1)]),
5035
5054
  _: 1
5036
- })]),
5037
- default: N(() => [c(" " + A(t.$t("Common.search")), 1)]),
5038
- _: 1
5039
- }, 8, ["loading"])) : r("", !0),
5040
- t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
5041
- key: 2,
5042
- loading: t.loading,
5043
- secondary: "",
5044
- onClick: t.clearAll
5045
- }, {
5046
- icon: N(() => [l(C, null, {
5047
- default: N(() => [l(k)]),
5055
+ }, 8, ["loading"])]),
5056
+ default: N(() => [l(f, {
5057
+ loading: t.loading,
5058
+ secondary: "",
5059
+ onClick: t.clearAll
5060
+ }, {
5061
+ icon: N(() => [l(C, null, {
5062
+ default: N(() => [l(k)]),
5063
+ _: 1
5064
+ })]),
5065
+ default: N(() => [c(" " + A(t.$t("Common.reset")), 1)]),
5048
5066
  _: 1
5049
- })]),
5050
- default: N(() => [c(" " + A(t.$t("Common.reset")), 1)]),
5067
+ }, 8, ["loading", "onClick"])]),
5051
5068
  _: 1
5052
- }, 8, ["loading", "onClick"])) : r("", !0),
5069
+ })) : r("", !0),
5053
5070
  E(t.$slots, "action")
5054
5071
  ])) : r("", !0)], 32);
5055
5072
  }
5056
- var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
5073
+ var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
5057
5074
  name: "UzSearchMobileBar",
5058
5075
  components: {
5059
5076
  NIcon: V,
@@ -5066,7 +5083,7 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
5066
5083
  NInputGroupLabel: xe,
5067
5084
  Refresh: Ac,
5068
5085
  Search: Xc,
5069
- UzFormItem: Ep
5086
+ UzFormItem: kp
5070
5087
  },
5071
5088
  props: {
5072
5089
  data: {
@@ -5144,10 +5161,10 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
5144
5161
  clearAll: l
5145
5162
  };
5146
5163
  }
5147
- }), dm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, fm = { class: "uz-flex uz-gap-2" }, pm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
5148
- function mm(t, o, s, u, d, f) {
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) {
5149
5166
  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");
5150
- return x(), i(e, null, [a("div", dm, [E(t.$slots, "header"), a("div", fm, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
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, {
5151
5168
  key: 0,
5152
5169
  secondary: "",
5153
5170
  onClick: o[0] ||= (e) => t.drawer = !0
@@ -5172,7 +5189,7 @@ function mm(t, o, s, u, d, f) {
5172
5189
  title: "查询",
5173
5190
  closable: ""
5174
5191
  }, {
5175
- footer: N(() => [a("div", pm, [l(h, {
5192
+ footer: N(() => [a("div", gm, [l(h, {
5176
5193
  secondary: "",
5177
5194
  loading: t.loading,
5178
5195
  onClick: t.clearAll,
@@ -5227,10 +5244,10 @@ function mm(t, o, s, u, d, f) {
5227
5244
  _: 1
5228
5245
  }, 8, ["show"])], 64);
5229
5246
  }
5230
- var hm = /*#__PURE__*/ W(um, [["render", mm]]);
5247
+ var vm = /*#__PURE__*/ W(pm, [["render", _m]]);
5231
5248
  //#endregion
5232
5249
  //#region components/hooks/useDebounceFn.ts
5233
- function gm(e, t = 1e3) {
5250
+ function ym(e, t = 1e3) {
5234
5251
  let n = Qe(e, t);
5235
5252
  return {
5236
5253
  run: n,
@@ -5240,7 +5257,7 @@ function gm(e, t = 1e3) {
5240
5257
  }
5241
5258
  //#endregion
5242
5259
  //#region components/table/factory.ts
5243
- var _m = /(?<=\[)(.+?)(?=\])/g, vm = {
5260
+ var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
5244
5261
  index: 1,
5245
5262
  selection: 0,
5246
5263
  pagination: 1,
@@ -5250,16 +5267,17 @@ var _m = /(?<=\[)(.+?)(?=\])/g, vm = {
5250
5267
  addButton: 1,
5251
5268
  filterButton: 1,
5252
5269
  commonTime: 1,
5270
+ filePort: 0,
5253
5271
  actionWidth: 300,
5254
5272
  drawerWidth: "70%",
5255
5273
  drawerHeight: "96vh",
5256
5274
  placement: "right",
5257
5275
  summary: ""
5258
5276
  };
5259
- function ym(e) {
5277
+ function Sm(e) {
5260
5278
  return Function("return " + e)();
5261
5279
  }
5262
- var bm = () => new Promise((e) => {
5280
+ var Cm = () => new Promise((e) => {
5263
5281
  let t = window.localStorage.getItem("city");
5264
5282
  if (t) e(JSON.parse(t));
5265
5283
  else {
@@ -5272,9 +5290,9 @@ var bm = () => new Promise((e) => {
5272
5290
  t && (clearInterval(i), e(JSON.parse(t)));
5273
5291
  }, 500);
5274
5292
  }
5275
- }), xm = async (e, t, n) => {
5293
+ }), wm = async (e, t, n) => {
5276
5294
  if (t && typeof t == "string") {
5277
- let r = t.match(_m);
5295
+ let r = t.match(bm);
5278
5296
  if (r && t.indexOf("return") === -1) {
5279
5297
  let t = r[0].split(":");
5280
5298
  if (t[0] === "date") return (t) => ud(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
@@ -5294,7 +5312,7 @@ var bm = () => new Promise((e) => {
5294
5312
  }
5295
5313
  }
5296
5314
  return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
5297
- }, Sm = (e, t, n) => {
5315
+ }, Tm = (e, t, n) => {
5298
5316
  let r = t.map((t) => {
5299
5317
  let r = [], i = t.id;
5300
5318
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
@@ -5307,37 +5325,37 @@ var bm = () => new Promise((e) => {
5307
5325
  };
5308
5326
  });
5309
5327
  return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
5310
- }, Cm = /* @__PURE__ */ new Map();
5311
- function wm() {
5312
- Cm.clear();
5328
+ }, Em = /* @__PURE__ */ new Map();
5329
+ function Dm() {
5330
+ Em.clear();
5313
5331
  }
5314
- async function Tm(e, t = !1) {
5332
+ async function Om(e, t = !1) {
5315
5333
  let n = e.split("."), r = !1;
5316
- return n.length > 1 && (Cm.has(n[0]) && !t ? r = U(Cm.get(n[0])) : (r = await yf({ tableId: n[0] }), Cm.set(n[0], r))), {
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))), {
5317
5335
  sourceData: r,
5318
5336
  n
5319
5337
  };
5320
5338
  }
5321
- async function Em(e) {
5339
+ async function km(e) {
5322
5340
  return new Promise((t, n) => {
5323
5341
  let r = X(`dynamicTable_${e}`, !1);
5324
- r && Cm.has(`dynamicTable_${e}`) ? t(r) : vf(e).then((i) => {
5342
+ r && Em.has(`dynamicTable_${e}`) ? t(r) : vf(e).then((i) => {
5325
5343
  !r || r && r.createTime !== i.createTime ? _f(e).then((n) => {
5326
5344
  let r = {
5327
5345
  createTime: n.createTime,
5328
5346
  tableTitle: n.tableTitle,
5329
5347
  viewJson: n.viewJson
5330
5348
  };
5331
- Y(`dynamicTable_${e}`, r, 0), Cm.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
5349
+ Y(`dynamicTable_${e}`, r, 0), Em.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
5332
5350
  }).catch(() => {
5333
5351
  n();
5334
- }) : (Cm.set(`dynamicTable_${e}`, !0), t(r));
5352
+ }) : (Em.set(`dynamicTable_${e}`, !0), t(r));
5335
5353
  }).catch(() => {
5336
5354
  n();
5337
5355
  });
5338
5356
  });
5339
5357
  }
5340
- var Dm = (e) => e.map((e) => {
5358
+ var Am = (e) => e.map((e) => {
5341
5359
  let t = {};
5342
5360
  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)), {
5343
5361
  i: e.input,
@@ -5410,7 +5428,7 @@ var Dm = (e) => e.map((e) => {
5410
5428
  p: { s: +!!e.form.expand.show }
5411
5429
  }
5412
5430
  };
5413
- }), Om = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
5431
+ }), jm = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
5414
5432
  let t = {};
5415
5433
  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)), {
5416
5434
  input: e.i,
@@ -5483,11 +5501,11 @@ var Dm = (e) => e.map((e) => {
5483
5501
  expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
5484
5502
  }
5485
5503
  };
5486
- }), km = (e) => ({
5504
+ }), Mm = (e) => ({
5487
5505
  f: e.fetch,
5488
5506
  o: e.when_drawer_open,
5489
5507
  b: e.when_before_save
5490
- }), Am = (e) => e ? e.fetch ? e : {
5508
+ }), Nm = (e) => e ? e.fetch ? e : {
5491
5509
  fetch: e.f,
5492
5510
  when_drawer_open: e.o,
5493
5511
  when_before_save: e.b
@@ -5495,7 +5513,7 @@ var Dm = (e) => e.map((e) => {
5495
5513
  fetch: null,
5496
5514
  when_drawer_open: "",
5497
5515
  when_before_save: ""
5498
- }, jm = (e) => ({
5516
+ }, Pm = (e) => ({
5499
5517
  i: e.index,
5500
5518
  s: e.selection,
5501
5519
  p: e.pagination,
@@ -5504,14 +5522,15 @@ var Dm = (e) => e.map((e) => {
5504
5522
  a: e.addButton,
5505
5523
  f: e.filterButton,
5506
5524
  o: e.commonTime,
5525
+ e: e.filePort,
5507
5526
  t: e.actionWidth,
5508
5527
  w: e.drawerWidth,
5509
5528
  h: e.drawerHeight,
5510
5529
  l: e.placement,
5511
5530
  r: e.summary
5512
- }), Mm = (e) => {
5531
+ }), Fm = (e) => {
5513
5532
  let t = {};
5514
- 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.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
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 : {
5515
5534
  index: e.i,
5516
5535
  selection: e.s,
5517
5536
  pagination: e.p,
@@ -5520,14 +5539,15 @@ var Dm = (e) => e.map((e) => {
5520
5539
  addButton: e.a,
5521
5540
  filterButton: e.f,
5522
5541
  commonTime: e.o,
5542
+ filePort: e.e,
5523
5543
  actionWidth: e.t,
5524
5544
  drawerWidth: e.w,
5525
5545
  drawerHeight: e.h,
5526
5546
  placement: e.l,
5527
5547
  summary: e.r
5528
- }), Object.assign({}, vm, U(t));
5548
+ }), Object.assign({}, xm, U(t));
5529
5549
  };
5530
- function Nm(e, t, n, r) {
5550
+ function Im(e, t, n, r) {
5531
5551
  return new Promise(async (i, a) => {
5532
5552
  let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
5533
5553
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
@@ -5562,17 +5582,17 @@ function Nm(e, t, n, r) {
5562
5582
  disabled: !0
5563
5583
  }];
5564
5584
  if (e.params.immediately || r) {
5565
- let { sourceData: t, n: r } = await Tm(e.source);
5585
+ let { sourceData: t, n: r } = await Om(e.source);
5566
5586
  if (t && Array.isArray(t)) if (e.sourceFn) {
5567
5587
  let r = e.sourceFn;
5568
5588
  n = Function("sourceData", r)(t);
5569
- } else n = Sm(e, t, r);
5589
+ } else n = Tm(e, t, r);
5570
5590
  } else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
5571
- let { sourceData: t, n } = await Tm(e.source);
5591
+ let { sourceData: t, n } = await Om(e.source);
5572
5592
  if (t && Array.isArray(t)) if (e.sourceFn) {
5573
5593
  let n = e.sourceFn;
5574
5594
  return Function("sourceData", n)(t);
5575
- } else return Sm(e, t, n);
5595
+ } else return Tm(e, t, n);
5576
5596
  };
5577
5597
  if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
5578
5598
  let i = n.find((n) => n.value === t[e.key]);
@@ -5603,27 +5623,27 @@ function Nm(e, t, n, r) {
5603
5623
  J(e);
5604
5624
  }
5605
5625
  if (e.input === "cascader" && e.table.render === "[city]") {
5606
- let t = await bm();
5626
+ let t = await Cm();
5607
5627
  e.params.options = t;
5608
5628
  }
5609
5629
  if (e.input === "subTable" && e.params.link) {
5610
- let t = await Em(e.params.link).catch(() => {
5630
+ let t = await km(e.params.link).catch(() => {
5611
5631
  a();
5612
5632
  });
5613
5633
  if (t) try {
5614
5634
  let n = nt.parse(t.viewJson);
5615
- n.suffix && (e._suffix = Rf(n.suffix));
5616
- let r = Om(n.table);
5635
+ n.suffix && (e._suffix = Vf(n.suffix));
5636
+ let r = jm(n.table);
5617
5637
  r.forEach((e) => {
5618
5638
  e.table.sorter = !1;
5619
5639
  });
5620
5640
  let i = r.filter((e) => e.input === "subTable");
5621
5641
  if (i) for await (let e of i) {
5622
- let t = await Em(e.params.link).catch(() => {
5642
+ let t = await km(e.params.link).catch(() => {
5623
5643
  a();
5624
5644
  });
5625
5645
  if (t) try {
5626
- let n = nt.parse(t.viewJson), r = Om(n.table);
5646
+ let n = nt.parse(t.viewJson), r = jm(n.table);
5627
5647
  r.forEach((e) => {
5628
5648
  e.table.sorter = !1;
5629
5649
  }), e.params.columns = r, e.params.actions = n.action;
@@ -5657,7 +5677,7 @@ function Nm(e, t, n, r) {
5657
5677
  });
5658
5678
  });
5659
5679
  }
5660
- async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5680
+ async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5661
5681
  let s = 0, c = [], l = [], u = {
5662
5682
  key: "",
5663
5683
  link: "",
@@ -5671,27 +5691,27 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5671
5691
  })) : (m.push(e), h.push(e.key));
5672
5692
  for await (let [e, s] of m.entries()) {
5673
5693
  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) {
5674
- let { sourceData: t, n } = await Tm(s.source, a && e === 0);
5694
+ let { sourceData: t, n } = await Om(s.source, a && e === 0);
5675
5695
  if (t && Array.isArray(t)) if (s.sourceFn) {
5676
5696
  let e = s.sourceFn, n = Function("sourceData", e);
5677
5697
  s.params.options = n(t);
5678
- } else s.params.options = Sm(s, t, n);
5698
+ } else s.params.options = Tm(s, t, n);
5679
5699
  } else s.params.options = [{
5680
5700
  label: "加载中......",
5681
5701
  value: "loading",
5682
5702
  disabled: !0
5683
5703
  }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5684
- let { sourceData: e, n: t } = await Tm(s.source);
5704
+ let { sourceData: e, n: t } = await Om(s.source);
5685
5705
  if (e && Array.isArray(e)) if (s.sourceFn) {
5686
5706
  let t = s.sourceFn;
5687
5707
  return Function("sourceData", t)(e);
5688
- } else return Sm(s, e, t);
5708
+ } else return Tm(s, e, t);
5689
5709
  };
5690
5710
  !s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
5691
5711
  let t = s.params.options.find((t) => t.value === e[s.key]);
5692
5712
  if (t) return t.label;
5693
5713
  }), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
5694
- return f(Gp, { value: e[s.key] }, { default: () => null });
5714
+ return f(Jp, { value: e[s.key] }, { default: () => null });
5695
5715
  });
5696
5716
  let p = {
5697
5717
  input: s.input,
@@ -5706,7 +5726,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5706
5726
  tooltip: !0,
5707
5727
  "line-clamp": s.table.clamp ?? 0
5708
5728
  } : !1,
5709
- render: s.table.render ? await xm(s.key, s.table.render, i) : void 0,
5729
+ render: s.table.render ? await wm(s.key, s.table.render, i) : void 0,
5710
5730
  show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
5711
5731
  pin: !!s.table.fixed,
5712
5732
  fixTemp: s.table.fixed
@@ -5727,7 +5747,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5727
5747
  ...s.form.rule,
5728
5748
  index: t
5729
5749
  } : void 0
5730
- }, { default: () => f(Ep, {
5750
+ }, { default: () => f(kp, {
5731
5751
  item: s,
5732
5752
  formValue: e,
5733
5753
  status: n,
@@ -5738,26 +5758,26 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5738
5758
  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) {
5739
5759
  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;
5740
5760
  else if (s.params.immediately || s.search.defaultValue) {
5741
- let { sourceData: e, n: t } = await Tm(s.search.source);
5761
+ let { sourceData: e, n: t } = await Om(s.search.source);
5742
5762
  if (e && Array.isArray(e)) if (s.sourceFn) {
5743
5763
  let t = s.sourceFn, n = Function("sourceData", t);
5744
5764
  s.params.options = n(e);
5745
- } else s.params.options = Sm(s, e, t);
5765
+ } else s.params.options = Tm(s, e, t);
5746
5766
  } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
5747
- let { sourceData: e, n: t } = await Tm(s.search.source);
5767
+ let { sourceData: e, n: t } = await Om(s.search.source);
5748
5768
  if (e && Array.isArray(e)) if (s.sourceFn) {
5749
5769
  let t = s.sourceFn;
5750
5770
  return Function("sourceData", t)(e);
5751
- } else return Sm(s, e, t);
5771
+ } else return Tm(s, e, t);
5752
5772
  };
5753
- if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = ym(s.search.defaultValue))), s.search.show) {
5773
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Sm(s.search.defaultValue))), s.search.show) {
5754
5774
  let e = U(s);
5755
5775
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
5756
- let { sourceData: t, n } = await Tm(e.source || e.search.source);
5776
+ let { sourceData: t, n } = await Om(e.source || e.search.source);
5757
5777
  if (t && Array.isArray(t)) if (e.sourceFn) {
5758
5778
  let n = e.sourceFn;
5759
5779
  return Function("sourceData", n)(t);
5760
- } else return Sm(e, t, n);
5780
+ } else return Tm(e, t, n);
5761
5781
  }), c.push({
5762
5782
  input: e.input,
5763
5783
  label: e.label,
@@ -5810,7 +5830,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
5810
5830
  }
5811
5831
  //#endregion
5812
5832
  //#region components/spin/index.vue?vue&type=script&lang.ts
5813
- var Fm = d({
5833
+ var Rm = d({
5814
5834
  name: "UzSpin",
5815
5835
  components: {
5816
5836
  NButton: L,
@@ -5856,7 +5876,7 @@ var Fm = d({
5856
5876
  });
5857
5877
  //#endregion
5858
5878
  //#region components/spin/index.vue
5859
- function Im(e, t, r, i, o, s) {
5879
+ function zm(e, t, r, i, o, s) {
5860
5880
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
5861
5881
  return x(), n(f, { show: e.value }, {
5862
5882
  description: N(() => [
@@ -5884,7 +5904,7 @@ function Im(e, t, r, i, o, s) {
5884
5904
  _: 3
5885
5905
  }, 8, ["show"]);
5886
5906
  }
5887
- var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
5907
+ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5888
5908
  name: "UzTableExpand",
5889
5909
  components: {
5890
5910
  NDataTable: oe,
@@ -5910,8 +5930,8 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
5910
5930
  } catch (e) {
5911
5931
  J(e);
5912
5932
  }
5913
- Em(e.data.link).then(async (e) => {
5914
- let { tableColumns: r } = await Pm(Om(nt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
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) => ({
5915
5935
  ...e,
5916
5936
  sorter: !1,
5917
5937
  resizable: !1
@@ -5931,8 +5951,8 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
5931
5951
  }
5932
5952
  });
5933
5953
  //#endregion
5934
- //#region components/table/expand.vue
5935
- function zm(e, t, r, i, a, o) {
5954
+ //#region components/table/components/expand.vue
5955
+ function Hm(e, t, r, i, a, o) {
5936
5956
  let s = D("NDataTable");
5937
5957
  return x(), n(s, {
5938
5958
  columns: e.columns,
@@ -5954,7 +5974,46 @@ function zm(e, t, r, i, a, o) {
5954
5974
  "scroll-x"
5955
5975
  ]);
5956
5976
  }
5957
- var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
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
+ width: 120,
5982
+ size: "medium"
5983
+ }), a("div", qm, [
5984
+ l(n, {
5985
+ width: 180,
5986
+ size: "medium"
5987
+ }),
5988
+ l(n, {
5989
+ width: 180,
5990
+ size: "medium"
5991
+ }),
5992
+ l(n, {
5993
+ width: 46,
5994
+ size: "medium"
5995
+ }),
5996
+ l(n, {
5997
+ width: 46,
5998
+ size: "medium"
5999
+ }),
6000
+ l(n, {
6001
+ width: 46,
6002
+ size: "medium"
6003
+ }),
6004
+ l(n, {
6005
+ width: 46,
6006
+ size: "medium"
6007
+ })
6008
+ ])]), l(n, {
6009
+ class: "uz-flex-1",
6010
+ width: "100%",
6011
+ size: "medium"
6012
+ })]);
6013
+ }
6014
+ //#endregion
6015
+ //#region components/table/index.vue?vue&type=script&lang.ts
6016
+ var Ym = d({
5958
6017
  name: "UzTable",
5959
6018
  components: {
5960
6019
  NDataTable: oe,
@@ -5968,8 +6027,10 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
5968
6027
  GridDots: es,
5969
6028
  Plus: uc,
5970
6029
  VueDraggable: tt,
5971
- UzSpin: Lm,
5972
- UzIcon: Iu
6030
+ UzSpin: Bm,
6031
+ UzIcon: Iu,
6032
+ TableExpand: Um,
6033
+ SkeletonLoading: /* @__PURE__ */ W(Wm, [["render", Jm]])
5973
6034
  },
5974
6035
  props: {
5975
6036
  id: {
@@ -6107,7 +6168,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6107
6168
  fetch: null,
6108
6169
  when_drawer_open: "",
6109
6170
  when_before_save: ""
6110
- }), R = w(Mm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
6171
+ }), R = w(Fm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
6111
6172
  n("update:rowKeys", {
6112
6173
  keys: e,
6113
6174
  rows: U(t)
@@ -6198,7 +6259,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6198
6259
  width: 180,
6199
6260
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => ud(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
6200
6261
  }], 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) => {
6201
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Nm(N.value, e, () => m.value?.getFormValues());
6262
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Im(N.value, e, () => m.value?.getFormValues());
6202
6263
  return x.value = t, {
6203
6264
  form: t,
6204
6265
  fillingDefaultValue: n,
@@ -6379,8 +6440,8 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6379
6440
  };
6380
6441
  }
6381
6442
  }, Ce = async () => {
6382
- re.value = !1, wm();
6383
- let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Pm(N.value, e.child, 0, () => ({}), ae);
6443
+ re.value = !1, Dm();
6444
+ let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Lm(N.value, e.child, 0, () => ({}), ae);
6384
6445
  !l.value && R.value.index && t.unshift({
6385
6446
  title: "#",
6386
6447
  key: "index",
@@ -6422,7 +6483,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6422
6483
  hide: !0,
6423
6484
  width: Number(typeof R.value.actionWidth == "string" ? R.value.actionWidth.replace("px", "") : R.value.actionWidth),
6424
6485
  render(t) {
6425
- return Af({
6486
+ return Nf({
6426
6487
  buttons: e,
6427
6488
  rowData: t,
6428
6489
  callback: B,
@@ -6449,7 +6510,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6449
6510
  filter: "default",
6450
6511
  filterOptionValue: null,
6451
6512
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Le }, { default: () => s("Common.expand") }), f(L, { onClick: Re }, { default: () => s("Common.contract") })]),
6452
- renderExpand: (e) => f(Bm, {
6513
+ renderExpand: (e) => f(Um, {
6453
6514
  data: i,
6454
6515
  value: e
6455
6516
  })
@@ -6475,7 +6536,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6475
6536
  data: JSON.stringify(t)
6476
6537
  }).catch(() => null);
6477
6538
  }
6478
- }, { run: De } = gm(Ee), { run: Oe } = gm((e, t) => {
6539
+ }, { run: De } = ym(Ee), { run: Oe } = ym((e, t) => {
6479
6540
  let n = [];
6480
6541
  C.value.forEach((r) => {
6481
6542
  r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
@@ -6515,13 +6576,13 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6515
6576
  fetch: null,
6516
6577
  when_drawer_open: "",
6517
6578
  when_before_save: ""
6518
- }, R.value = Mm();
6579
+ }, R.value = Fm();
6519
6580
  }, Me = (t) => {
6520
6581
  let n = nt.parse(t.viewJson);
6521
- b.value = t.tableTitle, N.value = Om(n.table), P.value = Rf(e.actions || n.action);
6522
- let r = Rf(n.suffix || []);
6523
- F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Am(n.trigger);
6524
- let i = Mm(e.options ?? n.option);
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);
6525
6586
  t.tableTitle && i.title && dd(t.tableTitle), R.value = i;
6526
6587
  }, Ne = async () => {
6527
6588
  v.value = !1, je();
@@ -6539,7 +6600,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6539
6600
  ne.value = s("Notice.network"), re.value = !0;
6540
6601
  return;
6541
6602
  }
6542
- Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], R.value = Mm(e.options), await Ce()) : await Em(t).then(async (e) => {
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) => {
6543
6604
  Me(e), await Ce();
6544
6605
  }).catch((e) => {
6545
6606
  ne.value = e?.message || s("Notice.network"), re.value = !0;
@@ -6650,56 +6711,27 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
6650
6711
  handleColumnResize: Ie,
6651
6712
  expandedRowKeys: O,
6652
6713
  handleExpandAll: Le,
6653
- handleContractAll: Re
6714
+ handleContractAll: Re,
6715
+ doPortChange: () => {
6716
+ B();
6717
+ }
6654
6718
  };
6655
6719
  }
6656
- }), Hm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Um = { class: "uz-flex uz-justify-between" }, Wm = { class: "uz-flex uz-gap-1" }, Gm = { class: "uz-com-title" }, Km = {
6720
+ }), Xm = { class: "uz-com-title" }, Zm = {
6657
6721
  ref: "mRef",
6658
6722
  class: "uz-table-m-content"
6659
- }, qm = {
6723
+ }, Qm = {
6660
6724
  key: 1,
6661
6725
  class: "uz-transform-fade-in"
6662
- }, Jm = { class: "uz-com-title" }, Ym = ["data-index"];
6663
- function Xm(t, s, u, d, f, p) {
6664
- let m = D("NSkeleton"), 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("UzSearchBar"), F = D("NDataTable"), I = D("NSpin"), L = D("UzTableDrawer");
6726
+ }, $m = { class: "uz-com-title" }, eh = ["data-index"];
6727
+ function th(t, s, u, d, f, p) {
6728
+ 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");
6665
6729
  return x(), i("div", {
6666
6730
  class: "uz-table",
6667
6731
  style: _({ width: t.isTypeofNumber(t.width) })
6668
6732
  }, [
6669
- P(a("div", Hm, [a("div", Um, [l(m, {
6670
- width: 120,
6671
- size: "medium"
6672
- }), a("div", Wm, [
6673
- l(m, {
6674
- width: 180,
6675
- size: "medium"
6676
- }),
6677
- l(m, {
6678
- width: 180,
6679
- size: "medium"
6680
- }),
6681
- l(m, {
6682
- width: 46,
6683
- size: "medium"
6684
- }),
6685
- l(m, {
6686
- width: 46,
6687
- size: "medium"
6688
- }),
6689
- l(m, {
6690
- width: 46,
6691
- size: "medium"
6692
- }),
6693
- l(m, {
6694
- width: 46,
6695
- size: "medium"
6696
- })
6697
- ])]), l(m, {
6698
- class: "uz-flex-1",
6699
- width: "100%",
6700
- size: "medium"
6701
- })], 512), [[te, !t.dynamicLoading]]),
6702
- P(l(I, {
6733
+ P(l(m, null, null, 512), [[te, !t.dynamicLoading]]),
6734
+ P(l(L, {
6703
6735
  show: t.spinError,
6704
6736
  class: "uz-table-n-spin"
6705
6737
  }, {
@@ -6757,7 +6789,7 @@ function Xm(t, s, u, d, f, p) {
6757
6789
  key: "0"
6758
6790
  } : {
6759
6791
  name: "header",
6760
- fn: N(() => [a("div", Gm, A(t.title), 1)]),
6792
+ fn: N(() => [a("div", Xm, A(t.title), 1)]),
6761
6793
  key: "1"
6762
6794
  }]), 1032, [
6763
6795
  "data",
@@ -6765,7 +6797,7 @@ function Xm(t, s, u, d, f, p) {
6765
6797
  "cache",
6766
6798
  "loading",
6767
6799
  "onOnUpdate:value"
6768
- ]), a("div", Km, [l(C, {
6800
+ ]), a("div", Zm, [l(C, {
6769
6801
  tableColumns: t.tableCols,
6770
6802
  tableData: t.tableData,
6771
6803
  tableQueries: t.tableQueries,
@@ -6783,7 +6815,7 @@ function Xm(t, s, u, d, f, p) {
6783
6815
  "minH",
6784
6816
  "maxH",
6785
6817
  "onUpdate:rowKeys"
6786
- ])], 512)], 2)) : (x(), i("div", qm, [l(M, {
6818
+ ])], 512)], 2)) : (x(), i("div", Qm, [l(F, {
6787
6819
  data: t.searchData,
6788
6820
  id: t.id || t.route.params.id,
6789
6821
  cache: t.tableOption.cache,
@@ -6838,7 +6870,7 @@ function Xm(t, s, u, d, f, p) {
6838
6870
  _: 1
6839
6871
  })]),
6840
6872
  _: 1
6841
- })], 8, Ym)), [[te, !e.hide]])), 128)), l(h, {
6873
+ })], 8, eh)), [[te, !e.hide]])), 128)), l(h, {
6842
6874
  block: "",
6843
6875
  tertiary: "",
6844
6876
  loading: t.loading,
@@ -6864,8 +6896,13 @@ function Xm(t, s, u, d, f, p) {
6864
6896
  default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
6865
6897
  _: 1
6866
6898
  }, 8, ["disabled", "onClick"])) : r("", !0),
6867
- t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
6899
+ t.tableOption.filePort ? (x(), n(M, {
6868
6900
  key: 2,
6901
+ query: t.tableQueries,
6902
+ "onOnUpdate:change": t.doPortChange
6903
+ }, null, 8, ["query", "onOnUpdate:change"])) : r("", !0),
6904
+ t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
6905
+ key: 3,
6869
6906
  data: t.suffixes,
6870
6907
  hProps: {
6871
6908
  quaternary: !1,
@@ -6882,7 +6919,7 @@ function Xm(t, s, u, d, f, p) {
6882
6919
  key: "0"
6883
6920
  } : {
6884
6921
  name: "header",
6885
- fn: N(() => [a("div", Jm, A(t.title), 1)]),
6922
+ fn: N(() => [a("div", $m, A(t.title), 1)]),
6886
6923
  key: "1"
6887
6924
  }]), 1032, [
6888
6925
  "data",
@@ -6892,7 +6929,7 @@ function Xm(t, s, u, d, f, p) {
6892
6929
  "cols",
6893
6930
  "enableHeader",
6894
6931
  "onOnUpdate:value"
6895
- ]), l(F, {
6932
+ ]), l(I, {
6896
6933
  ref: "tableRef",
6897
6934
  columns: t.tableCols,
6898
6935
  data: t.tableData,
@@ -6943,10 +6980,10 @@ function Xm(t, s, u, d, f, p) {
6943
6980
  ])]))]),
6944
6981
  _: 3
6945
6982
  }, 8, ["show"]), [[te, t.dynamicLoading]]),
6946
- l(L, { ref: "drawerRef" }, null, 512)
6983
+ l(R, { ref: "drawerRef" }, null, 512)
6947
6984
  ], 4);
6948
6985
  }
6949
- var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
6986
+ var nh = /*#__PURE__*/ W(Ym, [["render", th]]), rh = d({
6950
6987
  name: "UzTableChild",
6951
6988
  components: {
6952
6989
  NSpin: Me,
@@ -6976,7 +7013,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
6976
7013
  emits: ["update:value"],
6977
7014
  setup(e, { emit: n, expose: r }) {
6978
7015
  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) => {
6979
- let { formDefaultValue: r, fillingDefaultArray: i } = await Nm(U(n ?? e.item.params.columns), t, void 0, !0);
7016
+ let { formDefaultValue: r, fillingDefaultArray: i } = await Im(U(n ?? e.item.params.columns), t, void 0, !0);
6980
7017
  return C.value = r, i;
6981
7018
  }, O = async (t) => {
6982
7019
  if (_.value) return;
@@ -7007,7 +7044,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
7007
7044
  });
7008
7045
  }, k = (e) => e.delete ? "uz-table-child-delete" : "", A = async (t, n = !1) => {
7009
7046
  g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
7010
- let { tableColumns: r, tableWidth: i } = await Pm(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
7047
+ let { tableColumns: r, tableWidth: i } = await Lm(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
7011
7048
  r.unshift({
7012
7049
  title: " ",
7013
7050
  key: "index",
@@ -7040,7 +7077,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
7040
7077
  width: 60,
7041
7078
  render(t, n) {
7042
7079
  let r = [];
7043
- return e.item.params.childActions && e.item.params.actions && Rf(e.item.params.actions).forEach((e) => {
7080
+ return e.item.params.childActions && e.item.params.actions && Vf(e.item.params.actions).forEach((e) => {
7044
7081
  e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
7045
7082
  }), 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({
7046
7083
  type: "normal",
@@ -7052,7 +7089,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
7052
7089
  let n = e.item.params.deleteFn;
7053
7090
  n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
7054
7091
  }
7055
- }), Af({
7092
+ }), Nf({
7056
7093
  buttons: r,
7057
7094
  rowData: t
7058
7095
  });
@@ -7184,18 +7221,18 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
7184
7221
  }
7185
7222
  };
7186
7223
  }
7187
- }), $m = { class: "uz-flex uz-justify-between" }, eh = { class: "uz-com-title" }, th = {
7224
+ }), ih = { class: "uz-flex uz-justify-between" }, ah = { class: "uz-com-title" }, oh = {
7188
7225
  key: 0,
7189
7226
  class: "uz-table-asterisk"
7190
- }, nh = { class: "uz-flex uz-gap-2" }, rh = { class: "uz-flex uz-justify-end uz-gap-2" };
7191
- function ih(t, s, u, d, f, p) {
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) {
7192
7229
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
7193
7230
  return x(), n(S, {
7194
7231
  show: t.spin,
7195
7232
  class: "uz-flex-1 uz-w-full"
7196
7233
  }, {
7197
7234
  default: N(() => [
7198
- a("div", $m, [a("div", eh, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", th, " \xA0* ")) : r("", !0)]), a("div", nh, [
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, [
7199
7236
  t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
7200
7237
  key: e.key,
7201
7238
  type: e.color,
@@ -7271,7 +7308,7 @@ function ih(t, s, u, d, f, p) {
7271
7308
  "scroll-x",
7272
7309
  "class",
7273
7310
  "row-class-name"
7274
- ])) : r("", !0), a("div", rh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
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(_, {
7275
7312
  key: 0,
7276
7313
  type: "success",
7277
7314
  secondary: "",
@@ -7302,7 +7339,7 @@ function ih(t, s, u, d, f, p) {
7302
7339
  _: 1
7303
7340
  }, 8, ["show"]);
7304
7341
  }
7305
- var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
7342
+ var uh = /*#__PURE__*/ W(rh, [["render", lh]]), dh = d({
7306
7343
  name: "UzTableQuestChild",
7307
7344
  components: { NDataTable: oe },
7308
7345
  props: {
@@ -7330,7 +7367,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
7330
7367
  }), o.value = t, i.value = !1;
7331
7368
  }
7332
7369
  }, l = async (i) => {
7333
- let { tableColumns: c, tableWidth: l } = await Pm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7370
+ let { tableColumns: c, tableWidth: l } = await Lm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
7334
7371
  c.unshift({
7335
7372
  title: " ",
7336
7373
  key: "index",
@@ -7349,7 +7386,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
7349
7386
  hide: !0,
7350
7387
  width: 60,
7351
7388
  render(t) {
7352
- return Af({ buttons: [{
7389
+ return Nf({ buttons: [{
7353
7390
  type: "normal",
7354
7391
  color: "primary",
7355
7392
  key: "detail",
@@ -7404,11 +7441,11 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
7404
7441
  tableScrollX: s
7405
7442
  };
7406
7443
  }
7407
- }), sh = { class: "uz-flex-1 uz-w-full" }, ch = { class: "uz-flex uz-justify-between" }, lh = { class: "uz-com-title" };
7408
- function uh(e, t, n, r, o, s) {
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) {
7409
7446
  let c = D("NDataTable"), u = D("UzTableDrawer");
7410
- return x(), i("div", sh, [
7411
- a("div", ch, [a("div", lh, A(e.item.label), 1)]),
7447
+ return x(), i("div", fh, [
7448
+ a("div", ph, [a("div", mh, A(e.item.label), 1)]),
7412
7449
  t[0] ||= a("div", { class: "uz-br" }, null, -1),
7413
7450
  l(c, {
7414
7451
  columns: e.columns,
@@ -7433,7 +7470,7 @@ function uh(e, t, n, r, o, s) {
7433
7470
  l(u, { ref: "drawerRef" }, null, 512)
7434
7471
  ]);
7435
7472
  }
7436
- var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
7473
+ var gh = /*#__PURE__*/ W(dh, [["render", hh]]), _h = d({
7437
7474
  name: "UzTableDrawer",
7438
7475
  components: {
7439
7476
  NButton: L,
@@ -7459,6 +7496,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
7459
7496
  addButton: 1,
7460
7497
  filterButton: 1,
7461
7498
  commonTime: 1,
7499
+ filePort: 0,
7462
7500
  actionWidth: 300,
7463
7501
  drawerWidth: "70%",
7464
7502
  drawerHeight: "96vh",
@@ -7502,11 +7540,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
7502
7540
  linkFn: t
7503
7541
  };
7504
7542
  let r = e.split(".")[0];
7505
- Em(r).then((e) => {
7543
+ km(r).then((e) => {
7506
7544
  h(async () => {
7507
7545
  let t = nt.parse(e.viewJson);
7508
- d.value = Mm(t.option), u.value = !0;
7509
- let { form: i } = await Nm(Om(t.table), n);
7546
+ d.value = Fm(t.option), u.value = !0;
7547
+ let { form: i } = await Im(jm(t.table), n);
7510
7548
  y.value = t.trigger, n && T(n);
7511
7549
  let a = X(`tables_cache_link_${r}`, !1);
7512
7550
  a && (c.value = a), h(() => {
@@ -7566,7 +7604,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
7566
7604
  tableId: t,
7567
7605
  ...e
7568
7606
  }).then(() => {
7569
- wm(), yf({ tableId: t }).then((e) => {
7607
+ Dm(), yf({ tableId: t }).then((e) => {
7570
7608
  let r = l.value.link.split("."), i;
7571
7609
  if (l.value.linkFn) {
7572
7610
  let t = l.value.linkFn;
@@ -7599,11 +7637,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
7599
7637
  }
7600
7638
  };
7601
7639
  }
7602
- }), ph = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, mh = {
7640
+ }), vh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, yh = {
7603
7641
  key: 0,
7604
7642
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
7605
- }, hh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, gh = { class: "uz-flex uz-gap-2" };
7606
- function _h(t, s, u, d, f, p) {
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) {
7607
7645
  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");
7608
7646
  return x(), i(e, null, [l(S, {
7609
7647
  show: t.drawer,
@@ -7629,7 +7667,7 @@ function _h(t, s, u, d, f, p) {
7629
7667
  message: t.spinMsg,
7630
7668
  status: t.spinStatus
7631
7669
  }, {
7632
- default: N(() => [a("div", ph, [t.skeletonShow ? (x(), i("div", mh, [
7670
+ default: N(() => [a("div", vh, [t.skeletonShow ? (x(), i("div", yh, [
7633
7671
  l(m, {
7634
7672
  size: "large",
7635
7673
  style: { height: "156px" }
@@ -7692,7 +7730,7 @@ function _h(t, s, u, d, f, p) {
7692
7730
  _: 2
7693
7731
  }, [t.formStatus === 2 ? void 0 : {
7694
7732
  name: "footer",
7695
- fn: N(() => [a("div", hh, [t.isMobile ? r("", !0) : (x(), n(v, {
7733
+ fn: N(() => [a("div", bh, [t.isMobile ? r("", !0) : (x(), n(v, {
7696
7734
  key: 0,
7697
7735
  loading: t.spinShow,
7698
7736
  type: "success",
@@ -7701,7 +7739,7 @@ function _h(t, s, u, d, f, p) {
7701
7739
  }, {
7702
7740
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
7703
7741
  _: 1
7704
- }, 8, ["loading"])), a("div", gh, [
7742
+ }, 8, ["loading"])), a("div", xh, [
7705
7743
  l(v, {
7706
7744
  loading: t.spinShow,
7707
7745
  class: "uz-drawer-button",
@@ -7769,7 +7807,7 @@ function _h(t, s, u, d, f, p) {
7769
7807
  _: 1
7770
7808
  }, 8, ["show"])], 64);
7771
7809
  }
7772
- var vh = /*#__PURE__*/ W(fh, [["render", _h]]), yh = d({
7810
+ var Ch = /*#__PURE__*/ W(_h, [["render", Sh]]), wh = d({
7773
7811
  name: "UzTableMobileList",
7774
7812
  props: {
7775
7813
  tableData: {
@@ -7787,12 +7825,12 @@ var vh = /*#__PURE__*/ W(fh, [["render", _h]]), yh = d({
7787
7825
  },
7788
7826
  emits: ["update:row-keys"],
7789
7827
  setup() {}
7790
- }), bh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, xh = {
7828
+ }), Th = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Eh = {
7791
7829
  key: 1,
7792
7830
  class: "uz-table-mobile-group-txt"
7793
7831
  };
7794
- function Sh(t, o, s, c, l, u) {
7795
- return x(), i("div", bh, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
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", {
7796
7834
  key: o.key,
7797
7835
  class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
7798
7836
  style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
@@ -7803,11 +7841,11 @@ function Sh(t, o, s, c, l, u) {
7803
7841
  class: "mobile"
7804
7842
  })) : 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(() => {
7805
7843
  if (t.tableData) return o.render(t.tableData, t.tableIndex);
7806
- }), { key: 0 })) : (x(), i("div", xh, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7844
+ }), { key: 0 })) : (x(), i("div", Eh, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
7807
7845
  }
7808
7846
  //#endregion
7809
7847
  //#region components/table/mobile.vue?vue&type=script&lang.ts
7810
- var Ch = d({
7848
+ var Oh = d({
7811
7849
  name: "UzTableMobile",
7812
7850
  components: {
7813
7851
  NCheckbox: re,
@@ -7815,7 +7853,7 @@ var Ch = d({
7815
7853
  NPagination: we,
7816
7854
  NCheckboxGroup: ie,
7817
7855
  NRadioGroup: Oe,
7818
- UzTableMobileList: /* @__PURE__ */ W(yh, [["render", Sh], ["__scopeId", "data-v-84c394fe"]])
7856
+ UzTableMobileList: /* @__PURE__ */ W(wh, [["render", Dh], ["__scopeId", "data-v-84c394fe"]])
7819
7857
  },
7820
7858
  props: {
7821
7859
  tableData: {
@@ -7862,17 +7900,17 @@ var Ch = d({
7862
7900
  }
7863
7901
  };
7864
7902
  }
7865
- }), wh = {
7903
+ }), kh = {
7866
7904
  key: 0,
7867
7905
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7868
- }, Th = {
7906
+ }, Ah = {
7869
7907
  key: 0,
7870
7908
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7871
- }, Eh = {
7909
+ }, jh = {
7872
7910
  key: 0,
7873
7911
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
7874
7912
  };
7875
- function Dh(t, a, o, s, c, u) {
7913
+ function Mh(t, a, o, s, c, u) {
7876
7914
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
7877
7915
  return t.selection === 2 ? (x(), n(m, {
7878
7916
  key: 0,
@@ -7899,7 +7937,7 @@ function Dh(t, a, o, s, c, u) {
7899
7937
  "tableColumns"
7900
7938
  ])]),
7901
7939
  _: 2
7902
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", wh, [l(p, {
7940
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", kh, [l(p, {
7903
7941
  page: t.tableQueries.query.page,
7904
7942
  "onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7905
7943
  "item-count": t.tableQueries.query.itemCount,
@@ -7941,7 +7979,7 @@ function Dh(t, a, o, s, c, u) {
7941
7979
  "tableColumns"
7942
7980
  ])]),
7943
7981
  _: 2
7944
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Th, [l(p, {
7982
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ah, [l(p, {
7945
7983
  page: t.tableQueries.query.page,
7946
7984
  "onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7947
7985
  "item-count": t.tableQueries.query.itemCount,
@@ -7976,7 +8014,7 @@ function Dh(t, a, o, s, c, u) {
7976
8014
  "tableData",
7977
8015
  "tableIndex",
7978
8016
  "tableColumns"
7979
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Eh, [l(p, {
8017
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", jh, [l(p, {
7980
8018
  page: t.tableQueries.query.page,
7981
8019
  "onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
7982
8020
  "item-count": t.tableQueries.query.itemCount,
@@ -7989,7 +8027,257 @@ function Dh(t, a, o, s, c, u) {
7989
8027
  "onUpdate:page"
7990
8028
  ])])) : r("", !0)], 4));
7991
8029
  }
7992
- var Oh = /*#__PURE__*/ W(Ch, [["render", Dh], ["__scopeId", "data-v-70b54e3b"]]), $ = C({
8030
+ var Nh = /*#__PURE__*/ W(Oh, [["render", Mh], ["__scopeId", "data-v-70b54e3b"]]), Ph = d({
8031
+ name: "UzTableFile",
8032
+ components: {
8033
+ NDropdown: B,
8034
+ NButton: L,
8035
+ NModal: Ce,
8036
+ NUpload: Re,
8037
+ NSpace: je,
8038
+ NIcon: V,
8039
+ NDataTable: oe,
8040
+ FileText: Ro
8041
+ },
8042
+ props: { query: {
8043
+ required: !1,
8044
+ type: Object,
8045
+ default: () => {}
8046
+ } },
8047
+ emits: ["on-update:change"],
8048
+ setup(e, { emit: t }) {
8049
+ let { t: n } = Xe(), r = qe(), i = He(), a = w(!1), o = w(!1), s = w(), c = w(""), l = w([{
8050
+ label: n("Common.import"),
8051
+ key: "import",
8052
+ icon: () => f(V, null, { default: () => f($i) })
8053
+ }, {
8054
+ label: n("Common.export"),
8055
+ key: "export",
8056
+ icon: () => f(V, null, { default: () => f(Yi) })
8057
+ }]), u = w([
8058
+ {
8059
+ title: "文件名称",
8060
+ key: "fileName"
8061
+ },
8062
+ {
8063
+ title: "状态",
8064
+ key: "status",
8065
+ render(e) {
8066
+ switch (e.status) {
8067
+ case "1": return f("div", { style: "color: rgb(var(--green))" }, "成功");
8068
+ case "2": return f("div", { style: "color: rgb(var(--red))" }, "失败");
8069
+ default: return "处理中";
8070
+ }
8071
+ }
8072
+ },
8073
+ {
8074
+ title: "信息(文件保留7日)",
8075
+ key: "failMessage"
8076
+ },
8077
+ {
8078
+ title: "操作",
8079
+ key: "action",
8080
+ align: "center",
8081
+ render(e) {
8082
+ return f(L, {
8083
+ tertiary: !0,
8084
+ onClick: () => {
8085
+ window.open(e.cosUrl);
8086
+ }
8087
+ }, { default: () => "下载" });
8088
+ }
8089
+ }
8090
+ ]), d = w([]), p = (e) => new Promise((t) => {
8091
+ if (e.file.file) {
8092
+ let t = new FormData();
8093
+ t.append("file", e.file.file), c.value = e.file.name, t.append("tableKey", r.params.id), s.value = t;
8094
+ }
8095
+ }), m = () => {
8096
+ s.value = null;
8097
+ }, h = () => {
8098
+ o.value || (o.value = !0, Tf(r.params.id).then((e) => {
8099
+ let t = document.createElement("a");
8100
+ 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
+ }).catch(() => null).finally(() => {
8102
+ o.value = !1;
8103
+ }));
8104
+ }, g = () => {
8105
+ o.value || (o.value = !0, gf("excel/import", s.value).then((e) => {
8106
+ i.success({
8107
+ content: "导入执行中...",
8108
+ duration: 3e3
8109
+ }), s.value = null, c.value = "";
8110
+ }).catch(() => {
8111
+ i.error({
8112
+ content: "上传失败",
8113
+ duration: 3e3
8114
+ });
8115
+ }).finally(() => {
8116
+ _(), o.value = !1;
8117
+ }));
8118
+ }, _ = () => {
8119
+ o.value || (o.value = !0, Ef(r.params.id).then((e) => {
8120
+ d.value = e;
8121
+ }).catch(() => null).finally(() => {
8122
+ o.value = !1;
8123
+ }));
8124
+ };
8125
+ return {
8126
+ show: a,
8127
+ rawFile: s,
8128
+ loading: o,
8129
+ rawFileName: c,
8130
+ dropOption: l,
8131
+ dropSelect: (t) => {
8132
+ if (t === "import") {
8133
+ a.value = !0, _();
8134
+ return;
8135
+ }
8136
+ if (t === "export") {
8137
+ id.info({
8138
+ title: "提示",
8139
+ content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
8140
+ positiveText: "确定",
8141
+ negativeText: "取消",
8142
+ draggable: !0,
8143
+ onPositiveClick: () => {
8144
+ let t = e.query ?? {};
8145
+ Df({
8146
+ tableKey: r.params.id,
8147
+ ...t
8148
+ }).then((e) => {
8149
+ i.success({
8150
+ content: "导出中...稍后请在文件中心查看",
8151
+ duration: 3e3
8152
+ });
8153
+ }).catch(() => null);
8154
+ }
8155
+ });
8156
+ return;
8157
+ }
8158
+ },
8159
+ beforeUpload: p,
8160
+ clearFile: m,
8161
+ manualImport: g,
8162
+ downloadTemplate: h,
8163
+ columns: u,
8164
+ coldata: d,
8165
+ init: _,
8166
+ modalLeave: () => {
8167
+ t("on-update:change", !0);
8168
+ }
8169
+ };
8170
+ }
8171
+ }), Fh = { class: "uz-file-port-modal" }, Ih = {
8172
+ key: 1,
8173
+ class: "uz-file-port-panel"
8174
+ }, Lh = { class: "uz-flex uz-justify-between" };
8175
+ function Rh(t, r, o, s, u, d) {
8176
+ 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
+ return x(), i(e, null, [l(h, {
8178
+ trigger: "hover",
8179
+ options: t.dropOption,
8180
+ onSelect: t.dropSelect
8181
+ }, {
8182
+ default: N(() => [l(m, { secondary: "" }, {
8183
+ icon: N(() => [l(p, null, {
8184
+ default: N(() => [l(f)]),
8185
+ _: 1
8186
+ })]),
8187
+ default: N(() => [c(" " + A(t.$t("Common.file")), 1)]),
8188
+ _: 1
8189
+ })]),
8190
+ _: 1
8191
+ }, 8, ["options", "onSelect"]), l(y, {
8192
+ show: t.show,
8193
+ "onUpdate:show": r[0] ||= (e) => t.show = e,
8194
+ "mask-closable": !1,
8195
+ "close-on-esc": !1,
8196
+ title: "批量导入",
8197
+ preset: "card",
8198
+ style: { width: "70%" },
8199
+ "auto-focus": !1,
8200
+ "on-after-leave": t.modalLeave
8201
+ }, {
8202
+ "header-extra": N(() => [l(m, {
8203
+ type: "success",
8204
+ loading: t.loading,
8205
+ onClick: t.downloadTemplate,
8206
+ secondary: ""
8207
+ }, {
8208
+ default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
8209
+ _: 1
8210
+ }, 8, ["loading", "onClick"])]),
8211
+ default: N(() => [a("div", Fh, [
8212
+ t.rawFile ? (x(), i("div", Ih, [
8213
+ r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
8214
+ xmlns: "http://www.w3.org/2000/svg",
8215
+ viewBox: "0 0 24 24",
8216
+ width: "40",
8217
+ height: "40",
8218
+ fill: "currentColor"
8219
+ }, [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),
8220
+ a("div", null, A(t.rawFileName), 1),
8221
+ r[6] ||= a("div", { class: "uz-file-port-subtitle" }, " 导入文件过程较慢,程序会静默处理,不需要留在本页面等待。 ", -1),
8222
+ l(_, { justify: "space-between" }, {
8223
+ default: N(() => [l(m, {
8224
+ size: "small",
8225
+ secondary: "",
8226
+ type: "default",
8227
+ onClick: t.clearFile
8228
+ }, {
8229
+ default: N(() => [...r[3] ||= [c(" 重新选择 ", -1)]]),
8230
+ _: 1
8231
+ }, 8, ["onClick"]), l(m, {
8232
+ size: "small",
8233
+ type: "primary",
8234
+ loading: t.loading,
8235
+ onClick: t.manualImport
8236
+ }, {
8237
+ default: N(() => [...r[4] ||= [c(" 开始导入 ", -1)]]),
8238
+ _: 1
8239
+ }, 8, ["loading", "onClick"])]),
8240
+ _: 1
8241
+ })
8242
+ ])) : (x(), n(g, {
8243
+ key: 0,
8244
+ accept: ".xlsx",
8245
+ "show-file-list": !1,
8246
+ "on-before-upload": t.beforeUpload,
8247
+ "directory-dnd": "",
8248
+ class: "uz-w-full"
8249
+ }, {
8250
+ default: N(() => [...r[2] ||= [a("div", { class: "uz-file-port-card" }, [a("div", { class: "uz-file-port-icon" }, [a("svg", {
8251
+ xmlns: "http://www.w3.org/2000/svg",
8252
+ viewBox: "0 0 24 24",
8253
+ width: "40",
8254
+ height: "40",
8255
+ fill: "currentColor"
8256
+ }, [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
+ _: 1
8258
+ }, 8, ["on-before-upload"])),
8259
+ a("div", Lh, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
8260
+ onClick: t.init,
8261
+ loading: t.loading,
8262
+ secondary: ""
8263
+ }, {
8264
+ default: N(() => [...r[7] ||= [c("刷新", -1)]]),
8265
+ _: 1
8266
+ }, 8, ["onClick", "loading"])]),
8267
+ l(v, {
8268
+ columns: t.columns,
8269
+ data: t.coldata,
8270
+ loading: t.loading
8271
+ }, null, 8, [
8272
+ "columns",
8273
+ "data",
8274
+ "loading"
8275
+ ])
8276
+ ])]),
8277
+ _: 1
8278
+ }, 8, ["show", "on-after-leave"])], 64);
8279
+ }
8280
+ var zh = /*#__PURE__*/ W(Ph, [["render", Rh], ["__scopeId", "data-v-4b30705b"]]), $ = C({
7993
8281
  page: {
7994
8282
  label: "首页",
7995
8283
  key: "/",
@@ -8000,7 +8288,7 @@ var Oh = /*#__PURE__*/ W(Ch, [["render", Dh], ["__scopeId", "data-v-70b54e3b"]])
8000
8288
  active: "/",
8001
8289
  thumbnail: []
8002
8290
  });
8003
- function kh(e) {
8291
+ function Bh(e) {
8004
8292
  $.cache = e.cache, $.page = {
8005
8293
  label: e.label,
8006
8294
  key: e.key,
@@ -8015,14 +8303,14 @@ function kh(e) {
8015
8303
  closable: !1
8016
8304
  }];
8017
8305
  }
8018
- function Ah(e) {
8306
+ function Vh(e) {
8019
8307
  $.active = e, G.push(e), Y($.cache, $, 0);
8020
8308
  }
8021
- function jh(e, t) {
8309
+ function Hh(e, t) {
8022
8310
  let n = $.thumbnail.find((t) => t.key === e);
8023
8311
  n && (n.key = t, $.active = t, Y($.cache, $, 0));
8024
8312
  }
8025
- function Mh(e) {
8313
+ function Uh(e) {
8026
8314
  let t = $.thumbnail.find((t) => t.path === e.key);
8027
8315
  t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
8028
8316
  ...e,
@@ -8030,7 +8318,7 @@ function Mh(e) {
8030
8318
  closable: !0
8031
8319
  }), G.push(e.key));
8032
8320
  }
8033
- function Nh(e) {
8321
+ function Wh(e) {
8034
8322
  let t = $.thumbnail.findIndex((t) => t.key === e);
8035
8323
  if ($.thumbnail.splice(t, 1), $.active === e) {
8036
8324
  let e = $.thumbnail[t - 1]?.key || "";
@@ -8038,12 +8326,12 @@ function Nh(e) {
8038
8326
  }
8039
8327
  Y($.cache, $, 0);
8040
8328
  }
8041
- function Ph() {
8329
+ function Gh() {
8042
8330
  $.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
8043
8331
  }
8044
8332
  //#endregion
8045
8333
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
8046
- var Fh = d({
8334
+ var Kh = d({
8047
8335
  name: "UzThumbnail",
8048
8336
  components: {
8049
8337
  NTabs: Fe,
@@ -8065,29 +8353,29 @@ var Fh = d({
8065
8353
  setup(e, { slots: t }) {
8066
8354
  let n = w(!!t.prefix), r = qe();
8067
8355
  return y(() => {
8068
- kh(e.option), $.active !== r.path && jh(r.path, r.fullPath);
8356
+ Bh(e.option), $.active !== r.path && Hh(r.path, r.fullPath);
8069
8357
  }), j(() => r, (e) => {
8070
- $.active === r.path && jh(e.path, e.fullPath);
8358
+ $.active === r.path && Hh(e.path, e.fullPath);
8071
8359
  }, { deep: !0 }), j(() => e.option, (e) => {
8072
- kh(e);
8360
+ Bh(e);
8073
8361
  }, { deep: !0 }), {
8074
8362
  thumbnailStore: $,
8075
8363
  isSlotPrefix: n,
8076
8364
  handleClose: (e) => {
8077
- Nh(e);
8365
+ Wh(e);
8078
8366
  },
8079
8367
  handleChange: (e) => {
8080
- Ah(e);
8368
+ Vh(e);
8081
8369
  },
8082
8370
  handleClear: () => {
8083
- Ph();
8371
+ Gh();
8084
8372
  }
8085
8373
  };
8086
8374
  }
8087
8375
  });
8088
8376
  //#endregion
8089
8377
  //#region components/thumbnail/index.vue
8090
- function Ih(t, r, a, s, u, d) {
8378
+ function qh(t, r, a, s, u, d) {
8091
8379
  let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
8092
8380
  return x(), n(v, {
8093
8381
  value: t.thumbnailStore.active,
@@ -8133,33 +8421,33 @@ function Ih(t, r, a, s, u, d) {
8133
8421
  "on-update:value"
8134
8422
  ]);
8135
8423
  }
8136
- var Lh = /*#__PURE__*/ W(Fh, [["render", Ih]]), Rh = "#007AFF", zh = "#0A84FF", Bh = "#FF9500", Vh = "#FF9F0A", Hh = "#28CD41", Uh = "#32D74B", Wh = "#FFCC00", Gh = "#FFD60A", Kh = "#FF3B30", qh = "#FF453A";
8137
- H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = zh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Vh, H.common.successColor = "#32D74B", H.common.successColorHover = Uh, H.common.warningColor = "#FFD60A", H.common.successColorHover = Gh, H.common.errorColor = "#FF453A", H.common.errorColorHover = qh, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
8138
- var Jh = {
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 = {
8139
8427
  common: {
8140
8428
  inputColor: "rgba(var(--input))",
8141
8429
  borderColor: "rgba(var(--border), 0.7)",
8142
8430
  borderRadius: "var(--borderRadius)",
8143
- primaryColor: Rh,
8144
- primaryColorHover: zh,
8145
- primaryColorPressed: Rh,
8146
- primaryColorSuppl: Rh,
8147
- infoColor: Bh,
8148
- infoColorHover: Vh,
8149
- infoColorPressed: Bh,
8150
- infoColorSuppl: Bh,
8151
- successColor: Hh,
8152
- successColorHover: Uh,
8153
- successColorPressed: Hh,
8154
- successColorSuppl: Hh,
8155
- warningColor: Wh,
8156
- warningColorHover: Gh,
8157
- warningColorPressed: Wh,
8158
- warningColorSuppl: Wh,
8159
- errorColor: Kh,
8160
- errorColorHover: qh,
8161
- errorColorPressed: Kh,
8162
- errorColorSuppl: Kh,
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,
8163
8451
  cardColor: "#fff"
8164
8452
  },
8165
8453
  Button: { textColor: "rgb(var(--font))" },
@@ -8167,7 +8455,7 @@ var Jh = {
8167
8455
  DatePicker: { itemBorderRadius: "var(--borderRadius)" },
8168
8456
  Notification: { borderRadius: "var(--borderRadius)" },
8169
8457
  Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
8170
- }, Yh = H, Xh = d({
8458
+ }, og = H, sg = d({
8171
8459
  name: "UzWrap",
8172
8460
  components: { NConfigProvider: ae },
8173
8461
  setup() {
@@ -8175,14 +8463,14 @@ var Jh = {
8175
8463
  zhCN: Ue,
8176
8464
  dateZhCN: Ve,
8177
8465
  commonStore: q,
8178
- lightTheme: Jh,
8179
- darkTheme: Yh
8466
+ lightTheme: ag,
8467
+ darkTheme: og
8180
8468
  };
8181
8469
  }
8182
8470
  });
8183
8471
  //#endregion
8184
8472
  //#region components/wrap/index.vue
8185
- function Zh(e, t, r, i, a, o) {
8473
+ function cg(e, t, r, i, a, o) {
8186
8474
  let s = D("NConfigProvider");
8187
8475
  return x(), n(s, {
8188
8476
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -8201,10 +8489,10 @@ function Zh(e, t, r, i, a, o) {
8201
8489
  "date-locale"
8202
8490
  ]);
8203
8491
  }
8204
- var Qh = /*#__PURE__*/ W(Xh, [["render", Zh]]);
8492
+ var lg = /*#__PURE__*/ W(sg, [["render", cg]]);
8205
8493
  //#endregion
8206
8494
  //#region components/ocr/preprocess.ts
8207
- function $h(e) {
8495
+ function ug(e) {
8208
8496
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
8209
8497
  for (let r = 0; r < n; r++) t[e[r]]++;
8210
8498
  let r = 0;
@@ -8219,7 +8507,7 @@ function $h(e) {
8219
8507
  }
8220
8508
  return c;
8221
8509
  }
8222
- function eg(e, t) {
8510
+ function dg(e, t) {
8223
8511
  return new Promise((n, r) => {
8224
8512
  let i = new Image();
8225
8513
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -8252,7 +8540,7 @@ function eg(e, t) {
8252
8540
  }
8253
8541
  let u = t.threshold;
8254
8542
  if (t.binarize) {
8255
- t.autoThreshold && (u = $h(l));
8543
+ t.autoThreshold && (u = ug(l));
8256
8544
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
8257
8545
  let n = l[t] < u ? 0 : 255;
8258
8546
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -8275,7 +8563,7 @@ function eg(e, t) {
8275
8563
  }
8276
8564
  //#endregion
8277
8565
  //#region components/ocr/index.vue?vue&type=script&lang.ts
8278
- var tg = d({
8566
+ var fg = d({
8279
8567
  name: "UzOcr",
8280
8568
  components: {
8281
8569
  NButton: L,
@@ -8312,7 +8600,7 @@ var tg = d({
8312
8600
  tessedit_char_blacklist: "|"
8313
8601
  }), a.value), v = async () => {
8314
8602
  if (f.value) try {
8315
- let e = await eg(f.value, {
8603
+ let e = await dg(f.value, {
8316
8604
  enabled: o.value,
8317
8605
  scale: s.value,
8318
8606
  grayscale: !0,
@@ -8349,7 +8637,7 @@ var tg = d({
8349
8637
  n.value = !0, r.value = e("OCR.analysis");
8350
8638
  let a = t;
8351
8639
  if (o.value || s.value > 1) try {
8352
- let e = await eg(t, {
8640
+ let e = await dg(t, {
8353
8641
  enabled: o.value,
8354
8642
  scale: s.value,
8355
8643
  grayscale: !0,
@@ -8411,25 +8699,25 @@ var tg = d({
8411
8699
  t: e
8412
8700
  };
8413
8701
  }
8414
- }), ng = { class: "uz-ocr" }, rg = { class: "uz-ocr-left-col" }, ig = { class: "uz-ocr-upload-card" }, ag = { class: "uz-ocr-upload-title" }, og = {
8702
+ }), pg = { class: "uz-ocr" }, mg = { class: "uz-ocr-left-col" }, hg = { class: "uz-ocr-upload-card" }, gg = { class: "uz-ocr-upload-title" }, _g = {
8415
8703
  key: 1,
8416
8704
  class: "uz-ocr-preview-panel"
8417
- }, sg = { class: "uz-ocr-preview-box" }, cg = ["src"], lg = {
8705
+ }, vg = { class: "uz-ocr-preview-box" }, yg = ["src"], bg = {
8418
8706
  key: 0,
8419
8707
  class: "uz-ocr-threshold-badge"
8420
- }, ug = { class: "uz-ocr-preview-box" }, dg = ["src"], fg = { class: "uz-ocr-settings-form" }, pg = { class: "uz-settings-row" }, mg = { class: "uz-settings-label" }, hg = {
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 = {
8421
8709
  key: 0,
8422
8710
  class: "uz-ocr-nested-settings animate-fade-in"
8423
- }, gg = { class: "uz-settings-row" }, _g = { class: "uz-settings-label" }, vg = { class: "uz-settings-row" }, yg = { class: "uz-settings-label" }, bg = { class: "uz-ocr-right-col" }, xg = { class: "uz-ocr-result-header" }, Sg = { class: "uz-result-title" }, Cg = {
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 = {
8424
8712
  key: 0,
8425
8713
  class: "uz-ocr-empty-state"
8426
- }, wg = { class: "uz-empty-text" }, Tg = {
8714
+ }, Fg = { class: "uz-empty-text" }, Ig = {
8427
8715
  key: 1,
8428
8716
  class: "uz-ocr-result-tabs"
8429
8717
  };
8430
- function Eg(e, t, o, s, u, d) {
8718
+ function Lg(e, t, o, s, u, d) {
8431
8719
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
8432
- return x(), i("div", ng, [a("div", rg, [e.rawImage ? (x(), i("div", og, [l(m, {
8720
+ return x(), i("div", pg, [a("div", mg, [e.rawImage ? (x(), i("div", _g, [l(m, {
8433
8721
  value: e.imagePreviewTab,
8434
8722
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
8435
8723
  type: "segment",
@@ -8439,21 +8727,21 @@ function Eg(e, t, o, s, u, d) {
8439
8727
  name: "processed",
8440
8728
  tab: e.t("OCR.previewProcessed")
8441
8729
  }, {
8442
- default: N(() => [a("div", sg, [a("img", {
8730
+ default: N(() => [a("div", vg, [a("img", {
8443
8731
  src: e.processedImage,
8444
8732
  alt: "Processed Preview",
8445
8733
  class: "uz-ocr-preview-img"
8446
- }, null, 8, cg), e.preEnabled && e.preBinarize ? (x(), i("div", lg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8734
+ }, null, 8, yg), e.preEnabled && e.preBinarize ? (x(), i("div", bg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
8447
8735
  _: 1
8448
8736
  }, 8, ["tab"]), l(p, {
8449
8737
  name: "raw",
8450
8738
  tab: e.t("OCR.previewRaw")
8451
8739
  }, {
8452
- default: N(() => [a("div", ug, [a("img", {
8740
+ default: N(() => [a("div", xg, [a("img", {
8453
8741
  src: e.rawImage,
8454
8742
  alt: "Raw Preview",
8455
8743
  class: "uz-ocr-preview-img"
8456
- }, null, 8, dg)])]),
8744
+ }, null, 8, Sg)])]),
8457
8745
  _: 1
8458
8746
  }, 8, ["tab"])]),
8459
8747
  _: 1
@@ -8487,7 +8775,7 @@ function Eg(e, t, o, s, u, d) {
8487
8775
  "directory-dnd": "",
8488
8776
  class: "uz-w-full"
8489
8777
  }, {
8490
- default: N(() => [a("div", ig, [
8778
+ default: N(() => [a("div", hg, [
8491
8779
  t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
8492
8780
  xmlns: "http://www.w3.org/2000/svg",
8493
8781
  viewBox: "0 0 24 24",
@@ -8495,27 +8783,27 @@ function Eg(e, t, o, s, u, d) {
8495
8783
  height: "40",
8496
8784
  fill: "currentColor"
8497
8785
  }, [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),
8498
- a("div", ag, A(e.t("OCR.scan")), 1),
8786
+ a("div", gg, A(e.t("OCR.scan")), 1),
8499
8787
  t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
8500
8788
  ])]),
8501
8789
  _: 1
8502
- }, 8, ["on-before-upload"])), a("div", fg, [a("div", pg, [a("span", mg, A(e.t("OCR.preprocess")), 1), l(_, {
8790
+ }, 8, ["on-before-upload"])), a("div", Cg, [a("div", wg, [a("span", Tg, A(e.t("OCR.preprocess")), 1), l(_, {
8503
8791
  value: e.preEnabled,
8504
8792
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
8505
8793
  size: "small"
8506
- }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", hg, [a("div", gg, [a("span", _g, A(e.t("OCR.scale")), 1), l(v, {
8794
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Eg, [a("div", Dg, [a("span", Og, A(e.t("OCR.scale")), 1), l(v, {
8507
8795
  value: e.preScale,
8508
8796
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
8509
8797
  options: e.scaleOptions,
8510
8798
  size: "small",
8511
8799
  class: "uz-settings-select"
8512
- }, null, 8, ["value", "options"])]), a("div", vg, [a("span", yg, A(e.t("OCR.contrast")), 1), l(_, {
8800
+ }, null, 8, ["value", "options"])]), a("div", kg, [a("span", Ag, A(e.t("OCR.contrast")), 1), l(_, {
8513
8801
  value: e.preContrast,
8514
8802
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
8515
8803
  size: "small"
8516
- }, null, 8, ["value"])])])) : r("", !0)])]), a("div", bg, [a("div", xg, [a("span", Sg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Tg, A(e.fullText), 1)) : (x(), i("div", Cg, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", wg, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
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)]))])]);
8517
8805
  }
8518
- var Dg = /*#__PURE__*/ W(tg, [["render", Eg], ["__scopeId", "data-v-c7224ff5"]]), Og = /* @__PURE__ */ lt({
8806
+ var Rg = /*#__PURE__*/ W(fg, [["render", Lg], ["__scopeId", "data-v-c7224ff5"]]), zg = /* @__PURE__ */ lt({
8519
8807
  AccessPoint: () => mt,
8520
8808
  Activity: () => vt,
8521
8809
  Adjustments: () => St,
@@ -8644,54 +8932,55 @@ var Dg = /*#__PURE__*/ W(tg, [["render", Eg], ["__scopeId", "data-v-c7224ff5"]])
8644
8932
  UserPlus: () => Ml,
8645
8933
  Users: () => Il,
8646
8934
  UzActionButton: () => ut,
8647
- UzBack: () => Vf,
8648
- UzCamera: () => nm,
8649
- UzCircle: () => Sp,
8650
- UzDraggableForm: () => Fp,
8651
- UzForm: () => Ap,
8652
- UzFormItem: () => Ep,
8653
- UzFormItemImage: () => Gp,
8654
- UzFormItemTimesPicker: () => Yp,
8655
- UzFormItemUpload: () => Vp,
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,
8656
8944
  UzIcon: () => Iu,
8657
- UzOcr: () => Dg,
8658
- UzSearchBar: () => lm,
8659
- UzSearchMobileBar: () => hm,
8660
- UzSpin: () => Lm,
8661
- UzTable: () => Zm,
8662
- UzTableChild: () => ah,
8663
- UzTableDrawer: () => vh,
8664
- UzTableMobile: () => Oh,
8665
- UzTableQuestChild: () => dh,
8666
- UzThumbnail: () => Lh,
8667
- UzWrap: () => Qh,
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,
8668
8957
  X: () => Bl,
8669
8958
  commonStore: () => q,
8670
- fnActionReduction: () => Rf,
8671
- fnActionSimplify: () => Lf,
8672
- fnAddThumbnail: () => Mh,
8673
- fnClearAllThumbnail: () => Ph,
8674
- fnDeleteThumbnail: () => Nh,
8675
- fnGetTableData: () => Em,
8676
- fnOptionReduction: () => Mm,
8677
- fnOptionSimplify: () => jm,
8678
- fnPrepareFormData: () => Nm,
8679
- fnPrepareTableData: () => Pm,
8680
- fnRenderAction: () => Af,
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,
8681
8970
  fnSetLang: () => Bu,
8682
8971
  fnSetTheme: () => Vu,
8683
- fnSetThumbnail: () => Ah,
8684
- fnTableReduction: () => Om,
8685
- fnTableSimplify: () => Dm,
8686
- fnTriggersReduction: () => Am,
8687
- fnTriggersSimplify: () => km,
8972
+ fnSetThumbnail: () => Vh,
8973
+ fnTableReduction: () => jm,
8974
+ fnTableSimplify: () => Am,
8975
+ fnTriggersReduction: () => Nm,
8976
+ fnTriggersSimplify: () => Mm,
8688
8977
  i18n: () => K
8689
- }), kg = 3840, Ag = 2160, jg = C({ scale: 1 });
8690
- function Mg(e, t) {
8691
- kg = e, Ag = t;
8978
+ }), Bg = 3840, Vg = 2160, Hg = C({ scale: 1 });
8979
+ function Ug(e, t) {
8980
+ Bg = e, Vg = t;
8692
8981
  }
8693
- function Ng() {
8694
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = kg, i = Ag, a = parseFloat((r / i).toFixed(5));
8982
+ function Wg() {
8983
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = Bg, i = Vg, a = parseFloat((r / i).toFixed(5));
8695
8984
  if (parseFloat((t / n).toFixed(5)) > a) {
8696
8985
  let t = parseFloat((n * a / r).toFixed(5));
8697
8986
  e = t > 1 ? 1 : t;
@@ -8699,17 +8988,17 @@ function Ng() {
8699
8988
  let n = parseFloat((t / a / i).toFixed(5));
8700
8989
  e = n > 1 ? 1 : n;
8701
8990
  }
8702
- jg.scale = e;
8991
+ Hg.scale = e;
8703
8992
  }
8704
- function Pg() {
8705
- let e = Qe(Ng, 200);
8993
+ function Gg() {
8994
+ let e = Qe(Wg, 200);
8706
8995
  return e(), window.addEventListener("resize", e), () => {
8707
- kg = 3840, Ag = 2160, window.removeEventListener("resize", e);
8996
+ Bg = 3840, Vg = 2160, window.removeEventListener("resize", e);
8708
8997
  };
8709
8998
  }
8710
8999
  //#endregion
8711
9000
  //#region components/hooks/useThrottleFn.ts
8712
- function Fg(e, n = 1e3) {
9001
+ function Kg(e, n = 1e3) {
8713
9002
  let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
8714
9003
  return b(() => {
8715
9004
  i.value.cancel();
@@ -8721,14 +9010,14 @@ function Fg(e, n = 1e3) {
8721
9010
  }
8722
9011
  //#endregion
8723
9012
  //#region components/hooks/useLocalStorage.ts
8724
- function Ig(e, t) {
9013
+ function qg(e, t) {
8725
9014
  return [w(X(e, t?.defaultValue)), (n) => {
8726
9015
  n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
8727
9016
  }];
8728
9017
  }
8729
9018
  //#endregion
8730
9019
  //#region components/hooks/useQuery.ts
8731
- function Lg(e, t, n) {
9020
+ function Jg(e, t, n) {
8732
9021
  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 = () => {
8733
9022
  ff(), clearInterval(o.value), o.value = null;
8734
9023
  }, p = async () => {
@@ -8794,26 +9083,26 @@ function Lg(e, t, n) {
8794
9083
  }
8795
9084
  //#endregion
8796
9085
  //#region package.json
8797
- var Rg = "0.1.79", zg;
8798
- async function Bg() {
9086
+ var Yg = "0.1.81", Xg;
9087
+ async function Zg() {
8799
9088
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
8800
9089
  method: "HEAD",
8801
9090
  cache: "no-cache"
8802
9091
  });
8803
9092
  return e.headers.get("etag") || e.headers.get("last-modified");
8804
9093
  }
8805
- async function Vg() {
8806
- let e = await Bg();
8807
- zg !== e && Hu(!0);
9094
+ async function Qg() {
9095
+ let e = await Zg();
9096
+ Xg !== e && Hu(!0);
8808
9097
  }
8809
- async function Hg() {
8810
- zg = await Bg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
8811
- Vg();
9098
+ async function $g() {
9099
+ Xg = await Zg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
9100
+ Qg();
8812
9101
  }, 60 * 1e3);
8813
9102
  }
8814
9103
  //#endregion
8815
9104
  //#region components/create.ts
8816
- function Ug({ components: e = [] } = {}) {
9105
+ function e_({ components: e = [] } = {}) {
8817
9106
  let t = [];
8818
9107
  function n(e, t, n) {
8819
9108
  e.component(t) || e.component(t, n);
@@ -8826,16 +9115,16 @@ function Ug({ components: e = [] } = {}) {
8826
9115
  });
8827
9116
  }), i)) {
8828
9117
  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);
8829
- Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && Hg(), t && tf(r, t, n);
9118
+ Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && $g(), t && tf(r, t, n);
8830
9119
  }
8831
9120
  }
8832
9121
  return {
8833
- version: Rg,
9122
+ version: Yg,
8834
9123
  install: r
8835
9124
  };
8836
9125
  }
8837
9126
  //#endregion
8838
9127
  //#region components/preset.ts
8839
- var Wg = Ug({ components: Object.keys(Og).map((e) => Og[e]) }), Gg = Wg.install;
9128
+ var t_ = e_({ components: Object.keys(zg).map((e) => zg[e]) }), n_ = t_.install;
8840
9129
  //#endregion
8841
- 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, Vf as UzBack, nm as UzCamera, Sp as UzCircle, Fp as UzDraggableForm, Ap as UzForm, Ep as UzFormItem, Gp as UzFormItemImage, Yp as UzFormItemTimesPicker, Vp as UzFormItemUpload, Iu as UzIcon, Dg as UzOcr, lm as UzSearchBar, hm as UzSearchMobileBar, Lm as UzSpin, Zm as UzTable, ah as UzTableChild, vh as UzTableDrawer, Oh as UzTableMobile, dh as UzTableQuestChild, Lh as UzThumbnail, Qh as UzWrap, Bl as X, q as commonStore, Ug as create, Yh as darkTheme, Wg as default, Rf as fnActionReduction, Lf as fnActionSimplify, Mh as fnAddThumbnail, ff as fnCancelFetch, Ph as fnClearAllThumbnail, Ng as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Nh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, Em as fnGetTableData, Pg as fnListenerScale, rd as fnNotification, Mm as fnOptionReduction, jm as fnOptionSimplify, ld as fnPageModel2Naive, Nm as fnPrepareFormData, Pm as fnPrepareTableData, Af as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Mg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, Ah as fnSetThumbnail, Om as fnTableReduction, Dm as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Am as fnTriggersReduction, km as fnTriggersSimplify, K as i18n, Gg as install, Jh as lightTheme, vd as mergeColumns, G as router, jg as scaleStore, gm as useDebounceFn, Ig as useLocalStorage, Lg as useQuery, Fg as useThrottleFn };
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 };