@unizhen/ui 0.1.128 → 0.1.129

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
@@ -2593,8 +2593,17 @@ var Yr = (e, t) => e.map((e, n) => {
2593
2593
  }, $r = (e) => e == null ? null : Number.isFinite(e) ? e : null, ei = (e) => {
2594
2594
  let t = Number(e.quantity), n = $r(e.lossRate);
2595
2595
  return !Number.isFinite(t) || n === null || n < 0 ? null : Math.ceil(t * (1 + n / 100));
2596
- }, ti = (e) => e.key ?? e.code, ni = (e, t, n) => {
2597
- let r = e.findIndex((e) => ti(e) === t);
2596
+ }, ti = (e, t) => {
2597
+ if (e === null || t == null || t === "") return null;
2598
+ let n = Number(t);
2599
+ return Number.isFinite(n) ? e * n : null;
2600
+ }, ni = (e, t) => {
2601
+ e.forEach((e) => {
2602
+ let n = ei(e);
2603
+ e.required_quantity = n, e.counts = ti(n, t), Array.isArray(e.children) && ni(e.children, t);
2604
+ });
2605
+ }, ri = (e) => e.key ?? e.code, ii = (e, t, n) => {
2606
+ let r = e.findIndex((e) => ri(e) === t);
2598
2607
  return r >= 0 ? [
2599
2608
  ...e.slice(0, r + 1),
2600
2609
  {
@@ -2605,9 +2614,9 @@ var Yr = (e, t) => e.map((e, n) => {
2605
2614
  ...e.slice(r + 1)
2606
2615
  ] : e.map((e) => Array.isArray(e.children) ? {
2607
2616
  ...e,
2608
- children: ni(e.children, t, n)
2617
+ children: ii(e.children, t, n)
2609
2618
  } : e);
2610
- }, ri = /(?<=\[)(.+?)(?=\])/g, ii = {
2619
+ }, ai = /(?<=\[)(.+?)(?=\])/g, oi = {
2611
2620
  index: 1,
2612
2621
  selection: 0,
2613
2622
  pagination: 1,
@@ -2625,10 +2634,10 @@ var Yr = (e, t) => e.map((e, n) => {
2625
2634
  placement: "right",
2626
2635
  summary: ""
2627
2636
  };
2628
- function ai(e) {
2637
+ function si(e) {
2629
2638
  return Function("return " + e)();
2630
2639
  }
2631
- var oi = () => new Promise((e) => {
2640
+ var ci = () => new Promise((e) => {
2632
2641
  let t = window.localStorage.getItem("city");
2633
2642
  if (t) e(JSON.parse(t));
2634
2643
  else {
@@ -2641,9 +2650,9 @@ var oi = () => new Promise((e) => {
2641
2650
  t && (clearInterval(i), e(JSON.parse(t)));
2642
2651
  }, 500);
2643
2652
  }
2644
- }), si = async (e, t, n) => {
2653
+ }), li = async (e, t, n) => {
2645
2654
  if (t && typeof t == "string") {
2646
- let r = t.match(ri);
2655
+ let r = t.match(ai);
2647
2656
  if (r && t.indexOf("return") === -1) {
2648
2657
  let t = r[0].split(":");
2649
2658
  if (t[0] === "date") return (t) => jt(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
@@ -2664,7 +2673,7 @@ var oi = () => new Promise((e) => {
2664
2673
  }
2665
2674
  }
2666
2675
  return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
2667
- }, ci = (e, t, n) => {
2676
+ }, ui = (e, t, n) => {
2668
2677
  let r = t.map((t) => {
2669
2678
  let r = [], i = t.id;
2670
2679
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
@@ -2677,35 +2686,35 @@ var oi = () => new Promise((e) => {
2677
2686
  };
2678
2687
  });
2679
2688
  return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
2680
- }, li = /* @__PURE__ */ new Map();
2681
- function ui() {
2682
- li.clear();
2689
+ }, di = /* @__PURE__ */ new Map();
2690
+ function fi() {
2691
+ di.clear();
2683
2692
  }
2684
- async function di(e, t = !1) {
2693
+ async function pi(e, t = !1) {
2685
2694
  let n = e.split("."), r = !1;
2686
- return n.length > 1 && (li.has(n[0]) && !t ? r = H(li.get(n[0])) : (r = await Yn({ tableId: n[0] }), li.set(n[0], r))), {
2695
+ return n.length > 1 && (di.has(n[0]) && !t ? r = H(di.get(n[0])) : (r = await Yn({ tableId: n[0] }), di.set(n[0], r))), {
2687
2696
  sourceData: r,
2688
2697
  n
2689
2698
  };
2690
2699
  }
2691
- async function fi(e) {
2700
+ async function mi(e) {
2692
2701
  return new Promise((t, n) => {
2693
2702
  let r = K(`dynamicTable_${e}`, !1);
2694
- r && li.has(`dynamicTable_${e}`) ? t(r) : Jn(e, r ? r.createTime : null).then((n) => {
2703
+ r && di.has(`dynamicTable_${e}`) ? t(r) : Jn(e, r ? r.createTime : null).then((n) => {
2695
2704
  if (n) {
2696
2705
  let r = {
2697
2706
  createTime: n.createTime,
2698
2707
  tableTitle: n.tableTitle,
2699
2708
  viewJson: n.viewJson
2700
2709
  };
2701
- G(`dynamicTable_${e}`, r, 0), li.set(`dynamicTable_${e}`, !0), Dt("tables_"), t(n);
2702
- } else li.set(`dynamicTable_${e}`, !0), t(r);
2710
+ G(`dynamicTable_${e}`, r, 0), di.set(`dynamicTable_${e}`, !0), Dt("tables_"), t(n);
2711
+ } else di.set(`dynamicTable_${e}`, !0), t(r);
2703
2712
  }).catch(() => {
2704
2713
  n();
2705
2714
  });
2706
2715
  });
2707
2716
  }
2708
- var pi = (e) => e.map((e) => {
2717
+ var hi = (e) => e.map((e) => {
2709
2718
  let t = {};
2710
2719
  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)), {
2711
2720
  i: e.input,
@@ -2780,7 +2789,7 @@ var pi = (e) => e.map((e) => {
2780
2789
  p: { s: +!!e.form.expand.show }
2781
2790
  }
2782
2791
  };
2783
- }), mi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
2792
+ }), gi = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
2784
2793
  let t = {};
2785
2794
  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)), {
2786
2795
  input: e.i,
@@ -2855,12 +2864,12 @@ var pi = (e) => e.map((e) => {
2855
2864
  expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
2856
2865
  }
2857
2866
  };
2858
- }), hi = (e) => ({
2867
+ }), _i = (e) => ({
2859
2868
  f: e.fetch,
2860
2869
  n: e.fetchFn,
2861
2870
  o: e.when_drawer_open,
2862
2871
  b: e.when_before_save
2863
- }), gi = (e) => e ? e.fetch ? e : {
2872
+ }), vi = (e) => e ? e.fetch ? e : {
2864
2873
  fetch: e.f,
2865
2874
  fetchFn: e.n,
2866
2875
  when_drawer_open: e.o,
@@ -2870,7 +2879,7 @@ var pi = (e) => e.map((e) => {
2870
2879
  fetchFn: "",
2871
2880
  when_drawer_open: "",
2872
2881
  when_before_save: ""
2873
- }, _i = (e) => ({
2882
+ }, yi = (e) => ({
2874
2883
  i: e.index,
2875
2884
  s: e.selection,
2876
2885
  p: e.pagination,
@@ -2886,7 +2895,7 @@ var pi = (e) => e.map((e) => {
2886
2895
  h: e.drawerHeight,
2887
2896
  l: e.placement,
2888
2897
  r: e.summary
2889
- }), vi = (e) => {
2898
+ }), bi = (e) => {
2890
2899
  let t = {};
2891
2900
  return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
2892
2901
  index: e.i,
@@ -2904,9 +2913,9 @@ var pi = (e) => e.map((e) => {
2904
2913
  drawerHeight: e.h,
2905
2914
  placement: e.l,
2906
2915
  summary: e.r
2907
- }), Object.assign({}, ii, H(t));
2916
+ }), Object.assign({}, oi, H(t));
2908
2917
  };
2909
- function yi(e, t, n, r) {
2918
+ function xi(e, t, n, r) {
2910
2919
  return new Promise(async (i, a) => {
2911
2920
  let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
2912
2921
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
@@ -2941,21 +2950,21 @@ function yi(e, t, n, r) {
2941
2950
  disabled: !0
2942
2951
  }];
2943
2952
  if (e.params.immediately || r) {
2944
- let { sourceData: t, n: r } = await di(e.source);
2953
+ let { sourceData: t, n: r } = await pi(e.source);
2945
2954
  if (t && Array.isArray(t)) {
2946
2955
  if (e.sourceFn) {
2947
2956
  let r = e.sourceFn;
2948
2957
  n = Function("sourceData", "POST", r)(t, Z);
2949
- } else n = ci(e, t, r);
2958
+ } else n = ui(e, t, r);
2950
2959
  }
2951
2960
  } else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
2952
- let { sourceData: t, n } = await di(e.source);
2961
+ let { sourceData: t, n } = await pi(e.source);
2953
2962
  if (t && Array.isArray(t)) {
2954
2963
  if (e.sourceFn) {
2955
2964
  let n = e.sourceFn;
2956
2965
  return Function("sourceData", "POST", n)(t, Z);
2957
2966
  }
2958
- return ci(e, t, n);
2967
+ return ui(e, t, n);
2959
2968
  }
2960
2969
  };
2961
2970
  if (e.params.options = n, e.form.backfill && t) {
@@ -2989,27 +2998,27 @@ function yi(e, t, n, r) {
2989
2998
  W(e);
2990
2999
  }
2991
3000
  if (e.input === "cascader" && e.table.render === "[city]") {
2992
- let t = await oi();
3001
+ let t = await ci();
2993
3002
  e.params.options = t;
2994
3003
  }
2995
3004
  if (e.input === "subTable" && e.params.link) {
2996
- let t = await fi(e.params.link).catch(() => {
3005
+ let t = await mi(e.params.link).catch(() => {
2997
3006
  a();
2998
3007
  });
2999
3008
  if (t) try {
3000
3009
  let n = U.parse(t.viewJson);
3001
3010
  n.suffix && (e._suffix = _r(n.suffix));
3002
- let r = mi(n.table);
3011
+ let r = gi(n.table);
3003
3012
  r.forEach((e) => {
3004
3013
  e.table.sorter = !1;
3005
3014
  });
3006
3015
  let i = r.filter((e) => e.input === "subTable");
3007
3016
  if (i) for await (let e of i) {
3008
- let t = await fi(e.params.link).catch(() => {
3017
+ let t = await mi(e.params.link).catch(() => {
3009
3018
  a();
3010
3019
  });
3011
3020
  if (t) try {
3012
- let n = U.parse(t.viewJson), r = mi(n.table);
3021
+ let n = U.parse(t.viewJson), r = gi(n.table);
3013
3022
  r.forEach((e) => {
3014
3023
  e.table.sorter = !1;
3015
3024
  }), e.params.columns = r, e.params.actions = n.action;
@@ -3043,7 +3052,7 @@ function yi(e, t, n, r) {
3043
3052
  });
3044
3053
  });
3045
3054
  }
3046
- async function bi(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3055
+ async function Si(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3047
3056
  let s = 0, c = [], l = [], u = {
3048
3057
  key: "",
3049
3058
  link: "",
@@ -3058,25 +3067,25 @@ async function bi(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3058
3067
  for await (let [e, s] of m.entries()) {
3059
3068
  if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
3060
3069
  if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
3061
- let { sourceData: t, n } = await di(s.source, a && e === 0);
3070
+ let { sourceData: t, n } = await pi(s.source, a && e === 0);
3062
3071
  if (t && Array.isArray(t)) {
3063
3072
  if (s.sourceFn) {
3064
3073
  let e = s.sourceFn, n = Function("sourceData", "POST", e);
3065
3074
  s.params.options = n(t, Z);
3066
- } else s.params.options = ci(s, t, n);
3075
+ } else s.params.options = ui(s, t, n);
3067
3076
  }
3068
3077
  } else s.params.options = [{
3069
3078
  label: "加载中......",
3070
3079
  value: "loading",
3071
3080
  disabled: !0
3072
3081
  }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
3073
- let { sourceData: e, n: t } = await di(s.source);
3082
+ let { sourceData: e, n: t } = await pi(s.source);
3074
3083
  if (e && Array.isArray(e)) {
3075
3084
  if (s.sourceFn) {
3076
3085
  let t = s.sourceFn;
3077
3086
  return Function("sourceData", "POST", t)(e, Z);
3078
3087
  }
3079
- return ci(s, e, t);
3088
+ return ui(s, e, t);
3080
3089
  }
3081
3090
  };
3082
3091
  }
@@ -3099,7 +3108,7 @@ async function bi(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3099
3108
  tooltip: !0,
3100
3109
  "line-clamp": s.table.clamp ?? 0
3101
3110
  } : !1,
3102
- render: s.table.render ? await si(s.key, s.table.render, i) : void 0,
3111
+ render: s.table.render ? await li(s.key, s.table.render, i) : void 0,
3103
3112
  show: J.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
3104
3113
  pin: !!s.table.fixed,
3105
3114
  fixTemp: s.table.fixed
@@ -3134,34 +3143,34 @@ async function bi(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3134
3143
  if (s.search.title && (s.label = s.search.title), s.search.source) {
3135
3144
  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;
3136
3145
  else if (s.params.immediately || s.search.defaultValue) {
3137
- let { sourceData: e, n: t } = await di(s.search.source);
3146
+ let { sourceData: e, n: t } = await pi(s.search.source);
3138
3147
  if (e && Array.isArray(e)) {
3139
3148
  if (s.sourceFn) {
3140
3149
  let t = s.sourceFn, n = Function("sourceData", "POST", t);
3141
3150
  s.params.options = n(e, Z);
3142
- } else s.params.options = ci(s, e, t);
3151
+ } else s.params.options = ui(s, e, t);
3143
3152
  }
3144
3153
  } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
3145
- let { sourceData: e, n: t } = await di(s.search.source);
3154
+ let { sourceData: e, n: t } = await pi(s.search.source);
3146
3155
  if (e && Array.isArray(e)) {
3147
3156
  if (s.sourceFn) {
3148
3157
  let t = s.sourceFn;
3149
3158
  return Function("sourceData", "POST", t)(e, Z);
3150
3159
  }
3151
- return ci(s, e, t);
3160
+ return ui(s, e, t);
3152
3161
  }
3153
3162
  };
3154
3163
  }
3155
- if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = ai(s.search.defaultValue))), s.search.show) {
3164
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = si(s.search.defaultValue))), s.search.show) {
3156
3165
  let e = H(s);
3157
3166
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
3158
- let { sourceData: t, n } = await di(e.source || e.search.source);
3167
+ let { sourceData: t, n } = await pi(e.source || e.search.source);
3159
3168
  if (t && Array.isArray(t)) {
3160
3169
  if (e.sourceFn) {
3161
3170
  let n = e.sourceFn;
3162
3171
  return Function("sourceData", "POST", n)(t, Z);
3163
3172
  }
3164
- return ci(e, t, n);
3173
+ return ui(e, t, n);
3165
3174
  }
3166
3175
  }), c.push({
3167
3176
  input: e.input,
@@ -3215,12 +3224,12 @@ async function bi(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
3215
3224
  }
3216
3225
  //#endregion
3217
3226
  //#region components/bom/index.vue?vue&type=script&lang.ts
3218
- var xi = [
3227
+ var Ci = [
3219
3228
  "var(--primary)",
3220
3229
  "var(--green)",
3221
3230
  "var(--yellow)",
3222
3231
  "var(--purple)"
3223
- ], Si = d({
3232
+ ], wi = d({
3224
3233
  name: "UzBom",
3225
3234
  components: {
3226
3235
  NDataTable: se,
@@ -3238,23 +3247,23 @@ var xi = [
3238
3247
  },
3239
3248
  emits: ["update:value"],
3240
3249
  setup(e, { emit: t, expose: n }) {
3241
- let r = w(null), i = w([]), a = w(0), o = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), s = (e, t = 1, n) => (e ?? []).map((e, t) => ({
3250
+ let r = w(null), i = w([]), a = w(0), o = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), s = (e, t = 1, n, r) => (e ?? []).map((e, t) => ({
3242
3251
  row: e,
3243
3252
  index: t
3244
- })).sort((e, t) => (typeof e.row.sort_index == "number" && Number.isFinite(e.row.sort_index) ? e.row.sort_index : Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (typeof t.row.sort_index == "number" && Number.isFinite(t.row.sort_index) ? t.row.sort_index : Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, r) => {
3245
- let i = o(e, r, n), a = e.children, c = ei(e);
3253
+ })).sort((e, t) => (typeof e.row.sort_index == "number" && Number.isFinite(e.row.sort_index) ? e.row.sort_index : Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (typeof t.row.sort_index == "number" && Number.isFinite(t.row.sort_index) ? t.row.sort_index : Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, i) => {
3254
+ let a = o(e, i, n), c = e.children, l = ei(e), u = t === 1 ? e.counts : ti(l, r);
3246
3255
  return {
3247
3256
  ...e,
3248
- required_quantity: c,
3249
- counts: c,
3250
- key: ti(e),
3257
+ required_quantity: l,
3258
+ counts: u,
3259
+ key: ri(e),
3251
3260
  level: t,
3252
- code: i,
3253
- sort: r,
3254
- sort_index: r,
3255
- ...Array.isArray(a) ? { children: s(a, t + 1, i) } : {}
3261
+ code: a,
3262
+ sort: i,
3263
+ sort_index: i,
3264
+ ...Array.isArray(c) ? { children: s(c, t + 1, a, t === 1 ? u : r) } : {}
3256
3265
  };
3257
- }), c = w(s(e.value)), l = w([]), u = !1, d = 1, p = ti, m = (e, t = 1, n) => {
3266
+ }), c = w(s(e.value)), l = w([]), u = !1, d = 1, p = ri, m = (e, t = 1, n) => {
3258
3267
  e.forEach((e, r) => {
3259
3268
  let i = e.code, a = o(e, r, n);
3260
3269
  e.level !== t && (e.level = t), i !== a && (e.code = a), Array.isArray(e.children) && m(e.children, t + 1, a);
@@ -3287,11 +3296,7 @@ var xi = [
3287
3296
  },
3288
3297
  set(e, t, n) {
3289
3298
  let r = Reflect.get(e, t) !== n, i = Reflect.set(e, t, n);
3290
- if (r && (t === "quantity" || t === "lossRate")) {
3291
- let t = ei(e);
3292
- Reflect.set(e, "required_quantity", t), Reflect.set(e, "counts", t);
3293
- }
3294
- return r && t === "product_no" && b(), i;
3299
+ return r && (t === "quantity" || t === "lossRate") && Reflect.set(e, "required_quantity", ei(e)), r && (t === "quantity" || t === "lossRate" || t === "counts") && c.value.forEach((e) => ni(Array.isArray(e.children) ? e.children : [], e.counts)), r && t === "product_no" && b(), i;
3295
3300
  }
3296
3301
  });
3297
3302
  return C.set(e, n), n;
@@ -3348,7 +3353,7 @@ var xi = [
3348
3353
  });
3349
3354
  D(r(c.value)), n && !l.value.includes(t) && g([...l.value, t]);
3350
3355
  }, M = (e) => {
3351
- D(ni(c.value, p(e), E()));
3356
+ D(ii(c.value, p(e), E()));
3352
3357
  }, N = (e) => {
3353
3358
  let t = p(e), n = (e) => e.reduce((e, r) => {
3354
3359
  if (p(r) === t) return e;
@@ -3424,7 +3429,7 @@ var xi = [
3424
3429
  if (!Number.isFinite(t) || t < 1) return null;
3425
3430
  let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
3426
3431
  return {
3427
- color: xi[n - 1],
3432
+ color: Ci[n - 1],
3428
3433
  strength: `${Math.min(10 + r * 5, 40)}%`
3429
3434
  };
3430
3435
  };
@@ -3432,8 +3437,8 @@ var xi = [
3432
3437
  e !== c.value && (S(), c.value = s(e));
3433
3438
  }), j(c, () => _(), { immediate: !0 }), y(async () => {
3434
3439
  let e = await qn("bom_col");
3435
- e = U.parse(e.viewJson), e = mi(e.table);
3436
- let { tableColumns: t } = await bi(e), n = t.filter((e) => e.show).map((e) => ({
3440
+ e = U.parse(e.viewJson), e = gi(e.table);
3441
+ let { tableColumns: t } = await Si(e), n = t.filter((e) => e.show).map((e) => ({
3437
3442
  title: e.title,
3438
3443
  key: e.key,
3439
3444
  width: e.width ?? 120,
@@ -3481,10 +3486,10 @@ var xi = [
3481
3486
  handleExpandedRowKeysChange: F
3482
3487
  };
3483
3488
  }
3484
- }), Ci = { class: "uz-bom" };
3485
- function wi(e, t, n, i, o, s) {
3489
+ }), Ti = { class: "uz-bom" };
3490
+ function Ei(e, t, n, i, o, s) {
3486
3491
  let u = D("NDataTable"), d = D("NForm");
3487
- return x(), a("div", Ci, [l(d, {
3492
+ return x(), a("div", Ti, [l(d, {
3488
3493
  ref: "formRef",
3489
3494
  model: { child: e.innerData }
3490
3495
  }, {
@@ -3523,13 +3528,13 @@ function wi(e, t, n, i, o, s) {
3523
3528
  _: 3
3524
3529
  }, 8, ["model"])]);
3525
3530
  }
3526
- var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.PI * Ei, ki = Di, Ai = 19, ji = 69, Mi = 52, Ni = 8, Pi = 135, Fi = 270, Ii = 2 * Math.PI * Mi, Li = Fi / 360 * Ii, Ri = 11, zi = `rotate(${Pi} 60 ${ji})`, Bi = (e, t, n, r) => {
3531
+ var Di = /*#__PURE__*/ Q(wi, [["render", Ei]]), Oi = 46, ki = 8, Ai = 2 * Math.PI * Oi, ji = ki, Mi = 19, Ni = 69, Pi = 52, Fi = 8, Ii = 135, Li = 270, Ri = 2 * Math.PI * Pi, zi = Li / 360 * Ri, Bi = 11, Vi = `rotate(${Ii} 60 ${Ni})`, Hi = (e, t, n, r) => {
3527
3532
  let i = r * Math.PI / 180;
3528
3533
  return {
3529
3534
  x: e + n * Math.cos(i),
3530
3535
  y: t + n * Math.sin(i)
3531
3536
  };
3532
- }, Vi = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Hi = (e, t, n, r, i, a) => {
3537
+ }, Ui = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Wi = (e, t, n, r, i, a) => {
3533
3538
  if (a <= 0) return "";
3534
3539
  let o = n + r / 2, s = n - r / 2;
3535
3540
  if (a >= 359.999) {
@@ -3541,16 +3546,16 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3541
3546
  `A ${s} ${s} 0 1 0 ${i}`
3542
3547
  ].join(" ");
3543
3548
  }
3544
- let c = i + a, l = Bi(e, t, o, i), u = Bi(e, t, o, c), d = Bi(e, t, s, c), f = Bi(e, t, s, i), p = r / 2, m = +(a > 180);
3549
+ let c = i + a, l = Hi(e, t, o, i), u = Hi(e, t, o, c), d = Hi(e, t, s, c), f = Hi(e, t, s, i), p = r / 2, m = +(a > 180);
3545
3550
  return [
3546
- `M ${Vi(l)}`,
3547
- `A ${o} ${o} 0 ${m} 1 ${Vi(u)}`,
3548
- `A ${p} ${p} 0 0 1 ${Vi(d)}`,
3549
- `A ${s} ${s} 0 ${m} 0 ${Vi(f)}`,
3550
- `A ${p} ${p} 0 0 1 ${Vi(l)}`,
3551
+ `M ${Ui(l)}`,
3552
+ `A ${o} ${o} 0 ${m} 1 ${Ui(u)}`,
3553
+ `A ${p} ${p} 0 0 1 ${Ui(d)}`,
3554
+ `A ${s} ${s} 0 ${m} 0 ${Ui(f)}`,
3555
+ `A ${p} ${p} 0 0 1 ${Ui(l)}`,
3551
3556
  "Z"
3552
3557
  ].join(" ");
3553
- }, Ui = (e) => {
3558
+ }, Gi = (e) => {
3554
3559
  if (!e) return "";
3555
3560
  let t = e.toLowerCase();
3556
3561
  if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
@@ -3564,7 +3569,7 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3564
3569
  return e.join(",");
3565
3570
  }
3566
3571
  return "0,0,0";
3567
- }, Wi = d({
3572
+ }, Ki = d({
3568
3573
  name: "UzCircle",
3569
3574
  components: { UzNumberFlow: it },
3570
3575
  props: {
@@ -3587,10 +3592,10 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3587
3592
  }
3588
3593
  },
3589
3594
  setup(e) {
3590
- let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Ui(e.color).split(",").map((e) => {
3595
+ let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Gi(e.color).split(",").map((e) => {
3591
3596
  let t = Number(e) - 50;
3592
3597
  return t < 0 && (t = 0), t;
3593
- })},1)`), a = n(() => `rgba(${Ui(e.color)},1)`), o = n(() => {
3598
+ })},1)`), a = n(() => `rgba(${Gi(e.color)},1)`), o = n(() => {
3594
3599
  let t = Number(e.circle);
3595
3600
  return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
3596
3601
  }), s = w(o.value), c;
@@ -3609,62 +3614,62 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3609
3614
  c !== void 0 && cancelAnimationFrame(c);
3610
3615
  });
3611
3616
  let l = n(() => {
3612
- let e = Oi * (s.value / 100), t = Oi - e;
3617
+ let e = Ai * (s.value / 100), t = Ai - e;
3613
3618
  if (e === 0) return {
3614
3619
  activeLength: 0,
3615
3620
  activeStart: 0,
3616
- remainingLength: Oi,
3621
+ remainingLength: Ai,
3617
3622
  remainingStart: 0
3618
3623
  };
3619
3624
  if (t === 0) return {
3620
- activeLength: Oi,
3625
+ activeLength: Ai,
3621
3626
  activeStart: 0,
3622
3627
  remainingLength: 0,
3623
3628
  remainingStart: 0
3624
3629
  };
3625
- let n = Math.min(1, Math.min(e, t) / Ai), r = ki + 3 * n, i = Di * n, a = e < Ai ? i : Oi - (t < Ai ? i : t - r) - r * 2, o = Oi - a - r * 2;
3630
+ let n = Math.min(1, Math.min(e, t) / Mi), r = ji + 3 * n, i = ki * n, a = e < Mi ? i : Ai - (t < Mi ? i : t - r) - r * 2, o = Ai - a - r * 2;
3626
3631
  return {
3627
3632
  activeLength: a,
3628
3633
  activeStart: r / 2,
3629
3634
  remainingLength: o,
3630
3635
  remainingStart: r / 2 + a + r
3631
3636
  };
3632
- }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Hi(60, 60, Ei, Di, -90 + p.value / Oi * 360, f.value / Oi * 360)), h = n(() => {
3633
- let e = Li * (s.value / 100), t = Li - e;
3637
+ }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Wi(60, 60, Oi, ki, -90 + p.value / Ai * 360, f.value / Ai * 360)), h = n(() => {
3638
+ let e = zi * (s.value / 100), t = zi - e;
3634
3639
  if (e === 0) return {
3635
3640
  activeLength: 0,
3636
- remainingLength: Li,
3641
+ remainingLength: zi,
3637
3642
  remainingStart: 0
3638
3643
  };
3639
3644
  if (t === 0) return {
3640
- activeLength: Li,
3645
+ activeLength: zi,
3641
3646
  remainingLength: 0,
3642
3647
  remainingStart: 0
3643
3648
  };
3644
- let n = Math.min(Ri, e, t);
3649
+ let n = Math.min(Bi, e, t);
3645
3650
  return {
3646
3651
  activeLength: e - n / 2,
3647
3652
  remainingLength: t - n / 2,
3648
3653
  remainingStart: e + n / 2
3649
3654
  };
3650
- }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => Hi(60, ji, Mi, Ni, Pi + y.value / Ii * 360, _.value / Ii * 360));
3655
+ }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => Wi(60, Ni, Pi, Fi, Ii + y.value / Ri * 360, _.value / Ri * 360));
3651
3656
  return {
3652
3657
  color: n(() => e.color),
3653
3658
  colorA: i,
3654
3659
  colorB: a,
3655
- fullRadius: Ei,
3656
- fullStrokeWidth: Di,
3657
- fullCircumference: Oi,
3660
+ fullRadius: Oi,
3661
+ fullStrokeWidth: ki,
3662
+ fullCircumference: Ai,
3658
3663
  fullActiveLength: u,
3659
3664
  fullActiveStart: d,
3660
3665
  fullRemainingLength: f,
3661
3666
  fullRemainingStart: p,
3662
3667
  fullRemainingPath: m,
3663
- gaugeCenterY: ji,
3664
- gaugeRadius: Mi,
3665
- gaugeStrokeWidth: Ni,
3666
- gaugeCircumference: Ii,
3667
- gaugeTransform: zi,
3668
+ gaugeCenterY: Ni,
3669
+ gaugeRadius: Pi,
3670
+ gaugeStrokeWidth: Fi,
3671
+ gaugeCircumference: Ri,
3672
+ gaugeTransform: Vi,
3668
3673
  gaugeActiveLength: g,
3669
3674
  gaugeRemainingLength: _,
3670
3675
  gaugeRemainingStart: y,
@@ -3673,31 +3678,31 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3673
3678
  blurFilterId: r
3674
3679
  };
3675
3680
  }
3676
- }), Gi = { class: "uz-circle" }, Ki = {
3681
+ }), qi = { class: "uz-circle" }, Ji = {
3677
3682
  key: 0,
3678
3683
  viewBox: "0 0 120 120",
3679
3684
  "aria-hidden": "true"
3680
- }, qi = ["id"], Ji = ["stop-color"], Yi = ["stop-color"], Xi = ["id"], Zi = [
3685
+ }, Yi = ["id"], Xi = ["stop-color"], Zi = ["stop-color"], Qi = ["id"], $i = [
3681
3686
  "r",
3682
3687
  "stroke-width",
3683
3688
  "stroke-dasharray",
3684
3689
  "stroke-dashoffset",
3685
3690
  "filter",
3686
3691
  "stroke"
3687
- ], Qi = [
3692
+ ], ea = [
3688
3693
  "d",
3689
3694
  "fill",
3690
3695
  "filter"
3691
- ], $i = {
3696
+ ], ta = {
3692
3697
  class: "uz-circle__unit",
3693
3698
  x: "60",
3694
3699
  y: "82",
3695
3700
  "text-anchor": "middle"
3696
- }, ea = {
3701
+ }, na = {
3697
3702
  key: 1,
3698
3703
  viewBox: "0 0 120 120",
3699
3704
  "aria-hidden": "true"
3700
- }, ta = ["id"], na = ["stop-color"], ra = ["stop-color"], ia = ["id"], aa = [
3705
+ }, ra = ["id"], ia = ["stop-color"], aa = ["stop-color"], oa = ["id"], sa = [
3701
3706
  "cy",
3702
3707
  "r",
3703
3708
  "stroke-width",
@@ -3705,19 +3710,19 @@ var Ti = /*#__PURE__*/ Q(Si, [["render", wi]]), Ei = 46, Di = 8, Oi = 2 * Math.P
3705
3710
  "transform",
3706
3711
  "filter",
3707
3712
  "stroke"
3708
- ], oa = [
3713
+ ], ca = [
3709
3714
  "d",
3710
3715
  "fill",
3711
3716
  "filter"
3712
- ], sa = {
3717
+ ], la = {
3713
3718
  class: "uz-circle__unit uz-circle__unit--gauge",
3714
3719
  x: "60",
3715
3720
  y: "90",
3716
3721
  "text-anchor": "middle"
3717
3722
  };
3718
- function ca(e, t, n, r, s, c) {
3723
+ function ua(e, t, n, r, s, c) {
3719
3724
  let u = D("UzNumberFlow");
3720
- return x(), a("div", Gi, [e.mode === 0 ? (x(), a("svg", Ki, [
3725
+ return x(), a("div", qi, [e.mode === 0 ? (x(), a("svg", Ji, [
3721
3726
  o("defs", null, [o("linearGradient", {
3722
3727
  id: `uz-progress-grad-${e.uniqueId}`,
3723
3728
  x1: "1",
@@ -3727,10 +3732,10 @@ function ca(e, t, n, r, s, c) {
3727
3732
  }, [o("stop", {
3728
3733
  offset: "0%",
3729
3734
  "stop-color": e.colorA
3730
- }, null, 8, Ji), o("stop", {
3735
+ }, null, 8, Xi), o("stop", {
3731
3736
  offset: "50%",
3732
3737
  "stop-color": e.colorB
3733
- }, null, 8, Yi)], 8, qi), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3738
+ }, null, 8, Zi)], 8, Yi), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3734
3739
  o("feOffset", {
3735
3740
  result: "offOut",
3736
3741
  in: "SourceGraphic",
@@ -3747,7 +3752,7 @@ function ca(e, t, n, r, s, c) {
3747
3752
  in2: "blurOut",
3748
3753
  mode: "normal"
3749
3754
  }, null, -1)
3750
- ]], 8, Xi)]),
3755
+ ]], 8, Qi)]),
3751
3756
  e.fullActiveLength > 0 ? (x(), a("circle", {
3752
3757
  key: 0,
3753
3758
  class: "uz-circle__progress",
@@ -3762,7 +3767,7 @@ function ca(e, t, n, r, s, c) {
3762
3767
  transform: "rotate(-90 60 60)",
3763
3768
  filter: `url(#${e.blurFilterId})`,
3764
3769
  stroke: `url(#uz-progress-grad-${e.uniqueId})`
3765
- }, null, 8, Zi)) : i("", !0),
3770
+ }, null, 8, $i)) : i("", !0),
3766
3771
  e.fullRemainingPath ? (x(), a("path", {
3767
3772
  key: 1,
3768
3773
  class: "uz-circle__progress",
@@ -3770,9 +3775,9 @@ function ca(e, t, n, r, s, c) {
3770
3775
  fill: e.color,
3771
3776
  "fill-opacity": "0.1",
3772
3777
  filter: `url(#${e.blurFilterId})`
3773
- }, null, 8, Qi)) : i("", !0),
3774
- o("text", $i, A(e.circleUnit), 1)
3775
- ])) : (x(), a("svg", ea, [
3778
+ }, null, 8, ea)) : i("", !0),
3779
+ o("text", ta, A(e.circleUnit), 1)
3780
+ ])) : (x(), a("svg", na, [
3776
3781
  o("defs", null, [o("linearGradient", {
3777
3782
  id: `uz-progress-grad-1-${e.uniqueId}`,
3778
3783
  x1: "1",
@@ -3782,10 +3787,10 @@ function ca(e, t, n, r, s, c) {
3782
3787
  }, [o("stop", {
3783
3788
  offset: "0%",
3784
3789
  "stop-color": e.colorA
3785
- }, null, 8, na), o("stop", {
3790
+ }, null, 8, ia), o("stop", {
3786
3791
  offset: "50%",
3787
3792
  "stop-color": e.colorB
3788
- }, null, 8, ra)], 8, ta), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
3793
+ }, null, 8, aa)], 8, ra), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
3789
3794
  o("feOffset", {
3790
3795
  result: "offOut",
3791
3796
  in: "SourceGraphic",
@@ -3802,7 +3807,7 @@ function ca(e, t, n, r, s, c) {
3802
3807
  in2: "blurOut",
3803
3808
  mode: "normal"
3804
3809
  }, null, -1)
3805
- ]], 8, ia)]),
3810
+ ]], 8, oa)]),
3806
3811
  e.gaugeActiveLength > 0 ? (x(), a("circle", {
3807
3812
  key: 0,
3808
3813
  class: "uz-circle__progress",
@@ -3816,7 +3821,7 @@ function ca(e, t, n, r, s, c) {
3816
3821
  transform: e.gaugeTransform,
3817
3822
  filter: `url(#${e.blurFilterId})`,
3818
3823
  stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
3819
- }, null, 8, aa)) : i("", !0),
3824
+ }, null, 8, sa)) : i("", !0),
3820
3825
  e.gaugeRemainingPath ? (x(), a("path", {
3821
3826
  key: 1,
3822
3827
  class: "uz-circle__progress",
@@ -3824,11 +3829,11 @@ function ca(e, t, n, r, s, c) {
3824
3829
  fill: e.color,
3825
3830
  "fill-opacity": "0.1",
3826
3831
  filter: `url(#${e.blurFilterId})`
3827
- }, null, 8, oa)) : i("", !0),
3828
- o("text", sa, A(e.circleUnit), 1)
3832
+ }, null, 8, ca)) : i("", !0),
3833
+ o("text", la, A(e.circleUnit), 1)
3829
3834
  ])), o("div", { class: g(["uz-circle__value uz-circle__value--gauge uz-circle__number", { "uz-circle__number--gauge": e.mode !== 0 }]) }, [l(u, { value: e.circle }, null, 8, ["value"])], 2)]);
3830
3835
  }
3831
- var la = /*#__PURE__*/ Q(Wi, [["render", ca]]), ua = d({
3836
+ var da = /*#__PURE__*/ Q(Ki, [["render", ua]]), fa = d({
3832
3837
  name: "UzCamera",
3833
3838
  components: {
3834
3839
  NButton: I,
@@ -3920,11 +3925,11 @@ var la = /*#__PURE__*/ Q(Wi, [["render", ca]]), ua = d({
3920
3925
  closeAll: d
3921
3926
  };
3922
3927
  }
3923
- }), da = ["width", "height"], fa = ["width", "height"], pa = { class: "uz-scan-video" }, ma = {
3928
+ }), pa = ["width", "height"], ma = ["width", "height"], ha = { class: "uz-scan-video" }, ga = {
3924
3929
  ref: "videoRef",
3925
3930
  playsInline: ""
3926
3931
  };
3927
- function ha(t, n, s, l, u, d) {
3932
+ function _a(t, n, s, l, u, d) {
3928
3933
  let f = D("NButton"), p = D("NModal");
3929
3934
  return x(), a(e, null, [
3930
3935
  t.mode === "button" ? (x(), r(f, {
@@ -3956,7 +3961,7 @@ function ha(t, n, s, l, u, d) {
3956
3961
  id: "uz-scan-canvas",
3957
3962
  width: t.width,
3958
3963
  height: t.height
3959
- }, null, 8, da)], 4)]),
3964
+ }, null, 8, pa)], 4)]),
3960
3965
  _: 1
3961
3966
  }, 8, [
3962
3967
  "show",
@@ -3974,11 +3979,11 @@ function ha(t, n, s, l, u, d) {
3974
3979
  id: "uz-scan-canvas",
3975
3980
  width: t.width,
3976
3981
  height: t.height
3977
- }, null, 8, fa)], 4)) : i("", !0),
3978
- o("div", pa, [o("video", ma, null, 512)])
3982
+ }, null, 8, ma)], 4)) : i("", !0),
3983
+ o("div", ha, [o("video", ga, null, 512)])
3979
3984
  ], 64);
3980
3985
  }
3981
- var ga = /*#__PURE__*/ Q(ua, [["render", ha]]), _a = /* @__PURE__ */ new WeakMap(), va = d({
3986
+ var va = /*#__PURE__*/ Q(fa, [["render", _a]]), ya = /* @__PURE__ */ new WeakMap(), ba = d({
3982
3987
  name: "UzSearchBar",
3983
3988
  components: {
3984
3989
  NIcon: B,
@@ -4027,10 +4032,10 @@ var ga = /*#__PURE__*/ Q(ua, [["render", ha]]), _a = /* @__PURE__ */ new WeakMap
4027
4032
  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);
4028
4033
  }
4029
4034
  });
4030
- n.observe(e), _a.set(e, n);
4035
+ n.observe(e), ya.set(e, n);
4031
4036
  },
4032
4037
  unmounted: (e) => {
4033
- _a.get(e)?.disconnect(), _a.delete(e);
4038
+ ya.get(e)?.disconnect(), ya.delete(e);
4034
4039
  }
4035
4040
  } },
4036
4041
  emits: ["update:loading", "on-update:value"],
@@ -4145,24 +4150,24 @@ var ga = /*#__PURE__*/ Q(ua, [["render", ha]]), _a = /* @__PURE__ */ new WeakMap
4145
4150
  tabButtonType: b
4146
4151
  };
4147
4152
  }
4148
- }), ya = { class: "uz-flex uz-justify-between uz-gap-2" }, ba = {
4153
+ }), xa = { class: "uz-flex uz-justify-between uz-gap-2" }, Sa = {
4149
4154
  key: 0,
4150
4155
  class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
4151
- }, xa = { key: 0 }, Sa = { class: "uz-flex-1" }, Ca = {
4156
+ }, Ca = { key: 0 }, wa = { class: "uz-flex-1" }, Ta = {
4152
4157
  key: 1,
4153
4158
  class: "uz-flex uz-gap-2 uz-flex-1"
4154
- }, wa = {
4159
+ }, Ea = {
4155
4160
  key: 0,
4156
4161
  class: "uz-search-fields-collapse"
4157
4162
  };
4158
- function Ta(n, s, u, d, f, p) {
4163
+ function Da(n, s, u, d, f, p) {
4159
4164
  let m = D("NButton"), h = D("NButtonGroup"), _ = D("NGridItem"), v = D("NInputGroupLabel"), y = D("NPopover"), b = D("UzFormItem"), S = D("NInputGroup"), C = D("NGrid"), w = D("UzIcon"), k = D("NIcon"), ee = O("media");
4160
4165
  return x(), a("div", {
4161
4166
  class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
4162
4167
  onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
4163
- }, [o("div", ya, [n.enableHeader ? (x(), a("div", ba, [
4168
+ }, [o("div", xa, [n.enableHeader ? (x(), a("div", Sa, [
4164
4169
  E(n.$slots, "header"),
4165
- n.tabList && n.tabList.length > 0 ? (x(), a("div", xa, [l(h, null, {
4170
+ n.tabList && n.tabList.length > 0 ? (x(), a("div", Ca, [l(h, null, {
4166
4171
  default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
4167
4172
  key: e.value,
4168
4173
  type: n.tabButtonType(e),
@@ -4174,7 +4179,7 @@ function Ta(n, s, u, d, f, p) {
4174
4179
  }, 1032, ["type", "onClick"]))), 128))]),
4175
4180
  _: 1
4176
4181
  })])) : i("", !0),
4177
- P((x(), a("div", Sa, [l(C, {
4182
+ P((x(), a("div", wa, [l(C, {
4178
4183
  "x-gap": "8",
4179
4184
  "y-gap": "8",
4180
4185
  cols: n.cols,
@@ -4211,7 +4216,7 @@ function Ta(n, s, u, d, f, p) {
4211
4216
  }, 1032, ["span"]))), 128)) : i("", !0)]),
4212
4217
  _: 1
4213
4218
  }, 8, ["cols"])])), [[ee]])
4214
- ])) : i("", !0), n.enableHeader ? (x(), a("div", Ca, [
4219
+ ])) : i("", !0), n.enableHeader ? (x(), a("div", Ta, [
4215
4220
  n.more ? (x(), r(m, {
4216
4221
  key: 0,
4217
4222
  secondary: "",
@@ -4261,7 +4266,7 @@ function Ta(n, s, u, d, f, p) {
4261
4266
  })) : i("", !0),
4262
4267
  E(n.$slots, "action")
4263
4268
  ])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
4264
- default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", wa, [l(C, {
4269
+ default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Ea, [l(C, {
4265
4270
  "x-gap": "8",
4266
4271
  "y-gap": "8",
4267
4272
  cols: 4
@@ -4296,7 +4301,7 @@ function Ta(n, s, u, d, f, p) {
4296
4301
  _: 1
4297
4302
  })], 32);
4298
4303
  }
4299
- var Ea = /*#__PURE__*/ Q(va, [["render", Ta]]), Da = d({
4304
+ var Oa = /*#__PURE__*/ Q(ba, [["render", Da]]), ka = d({
4300
4305
  name: "UzSearchMobileBar",
4301
4306
  components: {
4302
4307
  NIcon: B,
@@ -4385,10 +4390,10 @@ var Ea = /*#__PURE__*/ Q(va, [["render", Ta]]), Da = d({
4385
4390
  clearAll: l
4386
4391
  };
4387
4392
  }
4388
- }), Oa = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, ka = { class: "uz-flex uz-gap-2" }, Aa = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
4389
- function ja(t, n, s, u, d, f) {
4393
+ }), Aa = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, ja = { class: "uz-flex uz-gap-2" }, Ma = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
4394
+ function Na(t, n, s, u, d, f) {
4390
4395
  let p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("NDrawerContent"), C = D("NDrawer");
4391
- return x(), a(e, null, [o("div", Oa, [E(t.$slots, "header"), o("div", ka, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
4396
+ return x(), a(e, null, [o("div", Aa, [E(t.$slots, "header"), o("div", ja, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
4392
4397
  key: 0,
4393
4398
  secondary: "",
4394
4399
  onClick: n[0] ||= (e) => t.drawer = !0
@@ -4413,7 +4418,7 @@ function ja(t, n, s, u, d, f) {
4413
4418
  title: "查询",
4414
4419
  closable: ""
4415
4420
  }, {
4416
- footer: N(() => [o("div", Aa, [l(h, {
4421
+ footer: N(() => [o("div", Ma, [l(h, {
4417
4422
  secondary: "",
4418
4423
  loading: t.loading,
4419
4424
  onClick: t.clearAll,
@@ -4468,7 +4473,7 @@ function ja(t, n, s, u, d, f) {
4468
4473
  _: 1
4469
4474
  }, 8, ["show"])], 64);
4470
4475
  }
4471
- var Ma = /*#__PURE__*/ Q(Da, [["render", ja]]), Na = d({
4476
+ var Pa = /*#__PURE__*/ Q(ka, [["render", Na]]), Fa = d({
4472
4477
  name: "UzSpin",
4473
4478
  components: {
4474
4479
  NButton: I,
@@ -4514,7 +4519,7 @@ var Ma = /*#__PURE__*/ Q(Da, [["render", ja]]), Na = d({
4514
4519
  });
4515
4520
  //#endregion
4516
4521
  //#region components/spin/index.vue
4517
- function Pa(e, t, n, i, a, s) {
4522
+ function Ia(e, t, n, i, a, s) {
4518
4523
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
4519
4524
  return x(), r(f, { show: e.value }, {
4520
4525
  description: N(() => [
@@ -4542,7 +4547,7 @@ function Pa(e, t, n, i, a, s) {
4542
4547
  _: 3
4543
4548
  }, 8, ["show"]);
4544
4549
  }
4545
- var Fa = /*#__PURE__*/ Q(Na, [["render", Pa]]), Ia = d({
4550
+ var La = /*#__PURE__*/ Q(Fa, [["render", Ia]]), Ra = d({
4546
4551
  name: "UzTableExpand",
4547
4552
  components: {
4548
4553
  NDataTable: se,
@@ -4568,8 +4573,8 @@ var Fa = /*#__PURE__*/ Q(Na, [["render", Pa]]), Ia = d({
4568
4573
  } catch (e) {
4569
4574
  W(e);
4570
4575
  }
4571
- fi(e.data.link).then(async (e) => {
4572
- let { tableColumns: r } = await bi(mi(U.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4576
+ mi(e.data.link).then(async (e) => {
4577
+ let { tableColumns: r } = await Si(gi(U.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4573
4578
  ...e,
4574
4579
  sorter: !1,
4575
4580
  resizable: !1
@@ -4590,7 +4595,7 @@ var Fa = /*#__PURE__*/ Q(Na, [["render", Pa]]), Ia = d({
4590
4595
  });
4591
4596
  //#endregion
4592
4597
  //#region components/table/components/expand.vue
4593
- function La(e, t, n, i, a, o) {
4598
+ function za(e, t, n, i, a, o) {
4594
4599
  let s = D("NDataTable");
4595
4600
  return x(), r(s, {
4596
4601
  columns: e.columns,
@@ -4609,18 +4614,18 @@ function La(e, t, n, i, a, o) {
4609
4614
  "scroll-x"
4610
4615
  ]);
4611
4616
  }
4612
- var Ra = /*#__PURE__*/ Q(Ia, [["render", La]]), za = d({
4617
+ var Ba = /*#__PURE__*/ Q(Ra, [["render", za]]), Va = d({
4613
4618
  components: { NSkeleton: je },
4614
4619
  setup() {
4615
4620
  return {};
4616
4621
  }
4617
- }), Ba = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Va = { class: "uz-flex uz-justify-between" }, Ha = { class: "uz-flex uz-gap-1" };
4618
- function Ua(e, t, n, r, i, s) {
4622
+ }), Ha = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ua = { class: "uz-flex uz-justify-between" }, Wa = { class: "uz-flex uz-gap-1" };
4623
+ function Ga(e, t, n, r, i, s) {
4619
4624
  let c = D("NSkeleton");
4620
- return x(), a("div", Ba, [o("div", Va, [l(c, {
4625
+ return x(), a("div", Ha, [o("div", Ua, [l(c, {
4621
4626
  width: 120,
4622
4627
  size: "medium"
4623
- }), o("div", Ha, [
4628
+ }), o("div", Wa, [
4624
4629
  l(c, {
4625
4630
  width: 180,
4626
4631
  size: "medium"
@@ -4653,7 +4658,7 @@ function Ua(e, t, n, r, i, s) {
4653
4658
  }
4654
4659
  //#endregion
4655
4660
  //#region components/table/index.vue?vue&type=script&lang.ts
4656
- var Wa = d({
4661
+ var Ka = d({
4657
4662
  name: "UzTable",
4658
4663
  components: {
4659
4664
  NDataTable: se,
@@ -4663,9 +4668,9 @@ var Wa = d({
4663
4668
  NCheckbox: ie,
4664
4669
  NSpin: Ne,
4665
4670
  VueDraggable: nt,
4666
- UzSpin: Fa,
4667
- TableExpand: Ra,
4668
- SkeletonLoading: /* @__PURE__ */ Q(za, [["render", Ua]])
4671
+ UzSpin: La,
4672
+ TableExpand: Ba,
4673
+ SkeletonLoading: /* @__PURE__ */ Q(Va, [["render", Ga]])
4669
4674
  },
4670
4675
  props: {
4671
4676
  id: {
@@ -4805,7 +4810,7 @@ var Wa = d({
4805
4810
  fetchFn: "",
4806
4811
  when_drawer_open: "",
4807
4812
  when_before_save: ""
4808
- }), L = w(vi()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, n) => {
4813
+ }), L = w(bi()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, n) => {
4809
4814
  t("update:rowKeys", {
4810
4815
  keys: e,
4811
4816
  rows: H(n)
@@ -4914,7 +4919,7 @@ var Wa = d({
4914
4919
  width: 180,
4915
4920
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => jt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
4916
4921
  }], xe = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !M.value || M.value && M.value[0] === "*" ? !1 : !M.value?.includes(t), Se = async (e) => {
4917
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await yi(N.value, e, () => m.value?.getFormValues());
4922
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await xi(N.value, e, () => m.value?.getFormValues());
4918
4923
  return x.value = t, {
4919
4924
  form: t,
4920
4925
  fillingDefaultValue: n,
@@ -5075,8 +5080,8 @@ var Wa = d({
5075
5080
  };
5076
5081
  }
5077
5082
  }, Ee = async () => {
5078
- ie.value = !1, ui();
5079
- let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await bi(N.value, e.child, 0, () => ({}), oe);
5083
+ ie.value = !1, fi();
5084
+ let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Si(N.value, e.child, 0, () => ({}), oe);
5080
5085
  !l.value && L.value.index && n.unshift({
5081
5086
  title: "#",
5082
5087
  key: "index",
@@ -5145,7 +5150,7 @@ var Wa = d({
5145
5150
  filter: "default",
5146
5151
  filterOptionValue: null,
5147
5152
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: Be }, { default: () => s("Common.expand") }), f(I, { onClick: Ve }, { default: () => s("Common.contract") })]),
5148
- renderExpand: (e) => f(Ra, {
5153
+ renderExpand: (e) => f(Ba, {
5149
5154
  data: a,
5150
5155
  value: e
5151
5156
  })
@@ -5211,13 +5216,13 @@ var Wa = d({
5211
5216
  fetchFn: "",
5212
5217
  when_drawer_open: "",
5213
5218
  when_before_save: ""
5214
- }, L.value = vi();
5219
+ }, L.value = bi();
5215
5220
  }, Fe = (t) => {
5216
5221
  let n = U.parse(t.viewJson);
5217
- b.value = t.tableTitle, N.value = mi(n.table), P.value = _r(e.actions || n.action);
5222
+ b.value = t.tableTitle, N.value = gi(n.table), P.value = _r(e.actions || n.action);
5218
5223
  let r = _r(n.suffix || []);
5219
- ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value = gi(n.trigger);
5220
- let i = vi(e.options ?? n.option);
5224
+ ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value = vi(n.trigger);
5225
+ let i = bi(e.options ?? n.option);
5221
5226
  t.tableTitle && i.title && Mt(t.tableTitle), L.value = i;
5222
5227
  }, Ie = async () => {
5223
5228
  v.value = !1, Pe();
@@ -5235,7 +5240,7 @@ var Wa = d({
5235
5240
  re.value = s("Notice.network"), ie.value = !0;
5236
5241
  return;
5237
5242
  }
5238
- Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = vi(e.options), await Ee()) : await fi(t).then(async (e) => {
5243
+ Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = bi(e.options), await Ee()) : await mi(t).then(async (e) => {
5239
5244
  Fe(e), await Ee();
5240
5245
  }).catch((e) => {
5241
5246
  re.value = e?.message || s("Notice.network"), ie.value = !0;
@@ -5351,14 +5356,14 @@ var Wa = d({
5351
5356
  }
5352
5357
  };
5353
5358
  }
5354
- }), Ga = { class: "uz-com-title" }, Ka = {
5359
+ }), qa = { class: "uz-com-title" }, Ja = {
5355
5360
  ref: "mRef",
5356
5361
  class: "uz-table-m-content"
5357
- }, qa = {
5362
+ }, Ya = {
5358
5363
  key: 1,
5359
5364
  class: "uz-transform-fade-in"
5360
- }, Ja = { class: "uz-com-title" }, Ya = ["data-index"];
5361
- function Xa(t, n, u, d, f, p) {
5365
+ }, Xa = { class: "uz-com-title" }, Za = ["data-index"];
5366
+ function Qa(t, n, u, d, f, p) {
5362
5367
  let m = D("SkeletonLoading"), h = D("NButton"), v = D("UzIcon"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("NCheckbox"), O = D("VueDraggable"), k = D("NPopover"), ee = D("UzTableFile"), j = D("UzSearchBar"), M = D("NDataTable"), ne = D("NSpin"), F = D("UzTableDrawer");
5363
5368
  return x(), a("div", {
5364
5369
  class: "uz-table",
@@ -5423,7 +5428,7 @@ function Xa(t, n, u, d, f, p) {
5423
5428
  key: "0"
5424
5429
  } : {
5425
5430
  name: "header",
5426
- fn: N(() => [o("div", Ga, A(t.title), 1)]),
5431
+ fn: N(() => [o("div", qa, A(t.title), 1)]),
5427
5432
  key: "1"
5428
5433
  }]), 1032, [
5429
5434
  "data",
@@ -5431,7 +5436,7 @@ function Xa(t, n, u, d, f, p) {
5431
5436
  "cache",
5432
5437
  "loading",
5433
5438
  "onOnUpdate:value"
5434
- ]), o("div", Ka, [l(C, {
5439
+ ]), o("div", Ja, [l(C, {
5435
5440
  tableColumns: t.tableCols,
5436
5441
  tableData: t.tableData,
5437
5442
  tableQueries: t.tableQueries,
@@ -5449,7 +5454,7 @@ function Xa(t, n, u, d, f, p) {
5449
5454
  "minH",
5450
5455
  "maxH",
5451
5456
  "onUpdate:rowKeys"
5452
- ])], 512)], 2)) : (x(), a("div", qa, [l(j, {
5457
+ ])], 512)], 2)) : (x(), a("div", Ya, [l(j, {
5453
5458
  data: t.searchData,
5454
5459
  id: t.id || t.route.params.id,
5455
5460
  cache: t.tableOption.cache,
@@ -5504,7 +5509,7 @@ function Xa(t, n, u, d, f, p) {
5504
5509
  _: 1
5505
5510
  })]),
5506
5511
  _: 1
5507
- })], 8, Ya)), [[te, !e.hide]])), 128)), l(h, {
5512
+ })], 8, Za)), [[te, !e.hide]])), 128)), l(h, {
5508
5513
  block: "",
5509
5514
  tertiary: "",
5510
5515
  loading: t.loading,
@@ -5558,7 +5563,7 @@ function Xa(t, n, u, d, f, p) {
5558
5563
  key: "0"
5559
5564
  } : {
5560
5565
  name: "header",
5561
- fn: N(() => [o("div", Ja, A(t.title), 1)]),
5566
+ fn: N(() => [o("div", Xa, A(t.title), 1)]),
5562
5567
  key: "1"
5563
5568
  }]), 1032, [
5564
5569
  "data",
@@ -5619,7 +5624,7 @@ function Xa(t, n, u, d, f, p) {
5619
5624
  l(F, { ref: "drawerRef" }, null, 512)
5620
5625
  ], 4);
5621
5626
  }
5622
- var Za = /*#__PURE__*/ Q(Wa, [["render", Xa]]), Qa = d({
5627
+ var $a = /*#__PURE__*/ Q(Ka, [["render", Qa]]), eo = d({
5623
5628
  name: "UzTableChild",
5624
5629
  components: {
5625
5630
  UzIcon: qt,
@@ -5648,7 +5653,7 @@ var Za = /*#__PURE__*/ Q(Wa, [["render", Xa]]), Qa = d({
5648
5653
  emits: ["update:value"],
5649
5654
  setup(e, { emit: t, expose: r }) {
5650
5655
  let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ke(), u = w(), d = w(), m = w(), g = w(!1), _ = w(!0), y = w([]), b = w({ child: [] }), x = w(""), S = w({}), C = w([]), T = w(void 0), E = async (t, n) => {
5651
- let { formDefaultValue: r, fillingDefaultArray: i } = await yi(H(n ?? e.item.params.columns), t, void 0, !0);
5656
+ let { formDefaultValue: r, fillingDefaultArray: i } = await xi(H(n ?? e.item.params.columns), t, void 0, !0);
5652
5657
  return S.value = r, i;
5653
5658
  }, D = async (t) => {
5654
5659
  if (g.value) return;
@@ -5679,7 +5684,7 @@ var Za = /*#__PURE__*/ Q(Wa, [["render", Xa]]), Qa = d({
5679
5684
  });
5680
5685
  }, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
5681
5686
  e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
5682
- let { tableColumns: r, tableWidth: i } = await bi(H(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
5687
+ let { tableColumns: r, tableWidth: i } = await Si(H(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
5683
5688
  r.unshift({
5684
5689
  title: " ",
5685
5690
  key: "index",
@@ -5698,7 +5703,7 @@ var Za = /*#__PURE__*/ Q(Wa, [["render", Xa]]), Qa = d({
5698
5703
  hide: !0,
5699
5704
  show: !0,
5700
5705
  render() {
5701
- return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(qt, { icon: "Add" }) }));
5706
+ return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(qt, { icon: "List" }) }));
5702
5707
  }
5703
5708
  }), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
5704
5709
  title: () => l("Common.action"),
@@ -5851,14 +5856,14 @@ var Za = /*#__PURE__*/ Q(Wa, [["render", Xa]]), Qa = d({
5851
5856
  }
5852
5857
  };
5853
5858
  }
5854
- }), $a = { class: "uz-flex-1 uz-w-full" }, eo = { class: "uz-flex uz-justify-between" }, to = { class: "uz-com-title" }, no = {
5859
+ }), to = { class: "uz-flex-1 uz-w-full" }, no = { class: "uz-flex uz-justify-between" }, ro = { class: "uz-com-title" }, io = {
5855
5860
  key: 0,
5856
5861
  class: "uz-table-asterisk"
5857
- }, ro = { class: "uz-flex uz-gap-2" }, io = { class: "uz-flex uz-justify-end uz-gap-2" };
5858
- function ao(t, n, u, d, f, p) {
5862
+ }, ao = { class: "uz-flex uz-gap-2" }, oo = { class: "uz-flex uz-justify-end uz-gap-2" };
5863
+ function so(t, n, u, d, f, p) {
5859
5864
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("NDataTable"), y = D("NForm");
5860
- return x(), a("div", $a, [
5861
- o("div", eo, [o("div", to, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", no, " \xA0* ")) : i("", !0)]), o("div", ro, [
5865
+ return x(), a("div", to, [
5866
+ o("div", no, [o("div", ro, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", io, " \xA0* ")) : i("", !0)]), o("div", ao, [
5862
5867
  t.status === 2 ? i("", !0) : (x(!0), a(e, { key: 0 }, T(t.suffixes, (e) => (x(), r(_, {
5863
5868
  key: e.key,
5864
5869
  type: e.color,
@@ -5931,7 +5936,7 @@ function ao(t, n, u, d, f, p) {
5931
5936
  "scroll-x",
5932
5937
  "class",
5933
5938
  "row-class-name"
5934
- ])) : i("", !0), o("div", io, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
5939
+ ])) : i("", !0), o("div", oo, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
5935
5940
  key: 0,
5936
5941
  type: "success",
5937
5942
  secondary: "",
@@ -5960,7 +5965,7 @@ function ao(t, n, u, d, f, p) {
5960
5965
  }, 8, ["model"])
5961
5966
  ]);
5962
5967
  }
5963
- var oo = /*#__PURE__*/ Q(Qa, [["render", ao]]), so = d({
5968
+ var co = /*#__PURE__*/ Q(eo, [["render", so]]), lo = d({
5964
5969
  name: "UzTableQuestChild",
5965
5970
  components: { NDataTable: se },
5966
5971
  props: {
@@ -5988,7 +5993,7 @@ var oo = /*#__PURE__*/ Q(Qa, [["render", ao]]), so = d({
5988
5993
  }), o.value = t, i.value = !1;
5989
5994
  }
5990
5995
  }, l = async (i) => {
5991
- let { tableColumns: c, tableWidth: l } = await bi(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
5996
+ let { tableColumns: c, tableWidth: l } = await Si(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
5992
5997
  c.unshift({
5993
5998
  title: " ",
5994
5999
  key: "index",
@@ -6062,11 +6067,11 @@ var oo = /*#__PURE__*/ Q(Qa, [["render", ao]]), so = d({
6062
6067
  tableScrollX: s
6063
6068
  };
6064
6069
  }
6065
- }), co = { class: "uz-flex-1 uz-w-full" }, lo = { class: "uz-flex uz-justify-between" }, uo = { class: "uz-com-title" };
6066
- function fo(e, t, n, r, i, s) {
6070
+ }), uo = { class: "uz-flex-1 uz-w-full" }, fo = { class: "uz-flex uz-justify-between" }, po = { class: "uz-com-title" };
6071
+ function mo(e, t, n, r, i, s) {
6067
6072
  let c = D("NDataTable"), u = D("UzTableDrawer");
6068
- return x(), a("div", co, [
6069
- o("div", lo, [o("div", uo, A(e.item.label), 1)]),
6073
+ return x(), a("div", uo, [
6074
+ o("div", fo, [o("div", po, A(e.item.label), 1)]),
6070
6075
  t[0] ||= o("div", { class: "uz-br" }, null, -1),
6071
6076
  l(c, {
6072
6077
  columns: e.columns,
@@ -6088,7 +6093,7 @@ function fo(e, t, n, r, i, s) {
6088
6093
  l(u, { ref: "drawerRef" }, null, 512)
6089
6094
  ]);
6090
6095
  }
6091
- var po = /*#__PURE__*/ Q(so, [["render", fo]]), mo = d({
6096
+ var ho = /*#__PURE__*/ Q(lo, [["render", mo]]), go = d({
6092
6097
  name: "UzTableDrawer",
6093
6098
  components: {
6094
6099
  NButton: I,
@@ -6160,11 +6165,11 @@ var po = /*#__PURE__*/ Q(so, [["render", fo]]), mo = d({
6160
6165
  linkFn: t
6161
6166
  };
6162
6167
  let r = e.split(".")[0];
6163
- fi(r).then((e) => {
6168
+ mi(r).then((e) => {
6164
6169
  h(async () => {
6165
6170
  let t = U.parse(e.viewJson);
6166
- d.value = vi(t.option), u.value = !0;
6167
- let { form: i } = await yi(mi(t.table), n);
6171
+ d.value = bi(t.option), u.value = !0;
6172
+ let { form: i } = await xi(gi(t.table), n);
6168
6173
  y.value = t.trigger, n && T(n);
6169
6174
  let a = K(`tables_cache_link_${r}`, !1);
6170
6175
  a && (c.value = a), h(() => {
@@ -6222,7 +6227,7 @@ var po = /*#__PURE__*/ Q(so, [["render", fo]]), mo = d({
6222
6227
  tableId: n,
6223
6228
  ...e
6224
6229
  }).then(() => {
6225
- ui(), Yn({ tableId: n }).then((e) => {
6230
+ fi(), Yn({ tableId: n }).then((e) => {
6226
6231
  let r = l.value.link.split("."), i;
6227
6232
  if (l.value.linkFn) {
6228
6233
  let t = l.value.linkFn;
@@ -6255,11 +6260,11 @@ var po = /*#__PURE__*/ Q(so, [["render", fo]]), mo = d({
6255
6260
  }
6256
6261
  };
6257
6262
  }
6258
- }), ho = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, go = {
6263
+ }), _o = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, vo = {
6259
6264
  key: 0,
6260
6265
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
6261
- }, _o = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, vo = { class: "uz-flex uz-gap-2" };
6262
- function yo(t, n, u, d, f, p) {
6266
+ }, yo = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, bo = { class: "uz-flex uz-gap-2" };
6267
+ function xo(t, n, u, d, f, p) {
6263
6268
  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");
6264
6269
  return x(), a(e, null, [l(S, {
6265
6270
  show: t.drawer,
@@ -6285,7 +6290,7 @@ function yo(t, n, u, d, f, p) {
6285
6290
  message: t.spinMsg,
6286
6291
  status: t.spinStatus
6287
6292
  }, {
6288
- default: N(() => [o("div", ho, [t.skeletonShow ? (x(), a("div", go, [
6293
+ default: N(() => [o("div", _o, [t.skeletonShow ? (x(), a("div", vo, [
6289
6294
  l(m, {
6290
6295
  size: "large",
6291
6296
  style: { height: "156px" }
@@ -6348,7 +6353,7 @@ function yo(t, n, u, d, f, p) {
6348
6353
  _: 2
6349
6354
  }, [t.formStatus === 2 ? void 0 : {
6350
6355
  name: "footer",
6351
- fn: N(() => [o("div", _o, [t.isMobile ? i("", !0) : (x(), r(v, {
6356
+ fn: N(() => [o("div", yo, [t.isMobile ? i("", !0) : (x(), r(v, {
6352
6357
  key: 0,
6353
6358
  loading: t.spinShow,
6354
6359
  type: "success",
@@ -6357,7 +6362,7 @@ function yo(t, n, u, d, f, p) {
6357
6362
  }, {
6358
6363
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
6359
6364
  _: 1
6360
- }, 8, ["loading"])), o("div", vo, [
6365
+ }, 8, ["loading"])), o("div", bo, [
6361
6366
  l(v, {
6362
6367
  loading: t.spinShow,
6363
6368
  class: "uz-drawer-button",
@@ -6425,7 +6430,7 @@ function yo(t, n, u, d, f, p) {
6425
6430
  _: 1
6426
6431
  }, 8, ["show"])], 64);
6427
6432
  }
6428
- var bo = /*#__PURE__*/ Q(mo, [["render", yo]]), xo = d({
6433
+ var So = /*#__PURE__*/ Q(go, [["render", xo]]), Co = d({
6429
6434
  name: "UzTableMobileList",
6430
6435
  props: {
6431
6436
  tableData: {
@@ -6443,12 +6448,12 @@ var bo = /*#__PURE__*/ Q(mo, [["render", yo]]), xo = d({
6443
6448
  },
6444
6449
  emits: ["update:row-keys"],
6445
6450
  setup() {}
6446
- }), So = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Co = {
6451
+ }), wo = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, To = {
6447
6452
  key: 1,
6448
6453
  class: "uz-table-mobile-group-txt"
6449
6454
  };
6450
- function wo(t, n, s, c, l, u) {
6451
- return x(), a("div", So, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6455
+ function Eo(t, n, s, c, l, u) {
6456
+ return x(), a("div", wo, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6452
6457
  key: n.key,
6453
6458
  class: g(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
6454
6459
  style: _(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
@@ -6459,11 +6464,11 @@ function wo(t, n, s, c, l, u) {
6459
6464
  class: "mobile"
6460
6465
  })) : i("", !0)], 64)) : (x(), a(e, { key: 1 }, [o("div", { class: g(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: g(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (x(), r(k(() => {
6461
6466
  if (t.tableData) return n.render(t.tableData, t.tableIndex);
6462
- }), { key: 0 })) : (x(), a("div", Co, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6467
+ }), { key: 0 })) : (x(), a("div", To, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6463
6468
  }
6464
6469
  //#endregion
6465
6470
  //#region components/table/mobile.vue?vue&type=script&lang.ts
6466
- var To = d({
6471
+ var Do = d({
6467
6472
  name: "UzTableMobile",
6468
6473
  components: {
6469
6474
  NCheckbox: ie,
@@ -6471,7 +6476,7 @@ var To = d({
6471
6476
  NPagination: Te,
6472
6477
  NCheckboxGroup: ae,
6473
6478
  NRadioGroup: ke,
6474
- UzTableMobileList: /* @__PURE__ */ Q(xo, [["render", wo], ["__scopeId", "data-v-84c394fe"]])
6479
+ UzTableMobileList: /* @__PURE__ */ Q(Co, [["render", Eo], ["__scopeId", "data-v-84c394fe"]])
6475
6480
  },
6476
6481
  props: {
6477
6482
  tableData: {
@@ -6518,17 +6523,17 @@ var To = d({
6518
6523
  }
6519
6524
  };
6520
6525
  }
6521
- }), Eo = {
6526
+ }), Oo = {
6522
6527
  key: 0,
6523
6528
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6524
- }, Do = {
6529
+ }, ko = {
6525
6530
  key: 0,
6526
6531
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6527
- }, Oo = {
6532
+ }, Ao = {
6528
6533
  key: 0,
6529
6534
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6530
6535
  };
6531
- function ko(t, n, o, s, c, u) {
6536
+ function jo(t, n, o, s, c, u) {
6532
6537
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
6533
6538
  return t.selection === 2 ? (x(), r(m, {
6534
6539
  key: 0,
@@ -6555,7 +6560,7 @@ function ko(t, n, o, s, c, u) {
6555
6560
  "tableColumns"
6556
6561
  ])]),
6557
6562
  _: 2
6558
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Eo, [l(p, {
6563
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Oo, [l(p, {
6559
6564
  page: t.tableQueries.query.page,
6560
6565
  "onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6561
6566
  "item-count": t.tableQueries.query.itemCount,
@@ -6597,7 +6602,7 @@ function ko(t, n, o, s, c, u) {
6597
6602
  "tableColumns"
6598
6603
  ])]),
6599
6604
  _: 2
6600
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Do, [l(p, {
6605
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", ko, [l(p, {
6601
6606
  page: t.tableQueries.query.page,
6602
6607
  "onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6603
6608
  "item-count": t.tableQueries.query.itemCount,
@@ -6632,7 +6637,7 @@ function ko(t, n, o, s, c, u) {
6632
6637
  "tableData",
6633
6638
  "tableIndex",
6634
6639
  "tableColumns"
6635
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Oo, [l(p, {
6640
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Ao, [l(p, {
6636
6641
  page: t.tableQueries.query.page,
6637
6642
  "onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6638
6643
  "item-count": t.tableQueries.query.itemCount,
@@ -6645,7 +6650,7 @@ function ko(t, n, o, s, c, u) {
6645
6650
  "onUpdate:page"
6646
6651
  ])])) : i("", !0)], 4));
6647
6652
  }
6648
- var Ao = /*#__PURE__*/ Q(To, [["render", ko], ["__scopeId", "data-v-70b54e3b"]]), jo = d({
6653
+ var Mo = /*#__PURE__*/ Q(Do, [["render", jo], ["__scopeId", "data-v-70b54e3b"]]), No = d({
6649
6654
  name: "UzTableFile",
6650
6655
  components: {
6651
6656
  UzIcon: qt,
@@ -6783,11 +6788,11 @@ var Ao = /*#__PURE__*/ Q(To, [["render", ko], ["__scopeId", "data-v-70b54e3b"]])
6783
6788
  }
6784
6789
  };
6785
6790
  }
6786
- }), Mo = { class: "uz-file-port-modal" }, No = {
6791
+ }), Po = { class: "uz-file-port-modal" }, Fo = {
6787
6792
  key: 1,
6788
6793
  class: "uz-file-port-panel"
6789
- }, Po = { class: "uz-flex uz-justify-between" };
6790
- function Fo(t, n, i, s, u, d) {
6794
+ }, Io = { class: "uz-flex uz-justify-between" };
6795
+ function Lo(t, n, i, s, u, d) {
6791
6796
  let f = D("UzIcon"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
6792
6797
  return x(), a(e, null, [l(h, {
6793
6798
  trigger: "hover",
@@ -6822,8 +6827,8 @@ function Fo(t, n, i, s, u, d) {
6822
6827
  default: N(() => [...n[1] ||= [c(" 下载模板 ", -1)]]),
6823
6828
  _: 1
6824
6829
  }, 8, ["onClick"])]),
6825
- default: N(() => [o("div", Mo, [
6826
- t.rawFile ? (x(), a("div", No, [
6830
+ default: N(() => [o("div", Po, [
6831
+ t.rawFile ? (x(), a("div", Fo, [
6827
6832
  n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
6828
6833
  xmlns: "http://www.w3.org/2000/svg",
6829
6834
  viewBox: "0 0 24 24",
@@ -6871,7 +6876,7 @@ function Fo(t, n, i, s, u, d) {
6871
6876
  }, [o("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" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
6872
6877
  _: 1
6873
6878
  }, 8, ["on-before-upload"])),
6874
- o("div", Po, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
6879
+ o("div", Io, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
6875
6880
  onClick: t.init,
6876
6881
  loading: t.loading,
6877
6882
  secondary: ""
@@ -6894,7 +6899,7 @@ function Fo(t, n, i, s, u, d) {
6894
6899
  _: 1
6895
6900
  }, 8, ["show", "on-after-leave"])], 64);
6896
6901
  }
6897
- var Io = /*#__PURE__*/ Q(jo, [["render", Fo], ["__scopeId", "data-v-a491799c"]]), $ = C({
6902
+ var Ro = /*#__PURE__*/ Q(No, [["render", Lo], ["__scopeId", "data-v-a491799c"]]), $ = C({
6898
6903
  page: {
6899
6904
  label: "首页",
6900
6905
  key: "/",
@@ -6905,7 +6910,7 @@ var Io = /*#__PURE__*/ Q(jo, [["render", Fo], ["__scopeId", "data-v-a491799c"]])
6905
6910
  active: "/",
6906
6911
  thumbnail: []
6907
6912
  });
6908
- function Lo(e) {
6913
+ function zo(e) {
6909
6914
  $.cache = e.cache, $.page = {
6910
6915
  label: e.label,
6911
6916
  key: e.key,
@@ -6920,14 +6925,14 @@ function Lo(e) {
6920
6925
  closable: !1
6921
6926
  }];
6922
6927
  }
6923
- function Ro(e) {
6928
+ function Bo(e) {
6924
6929
  $.active = e, Y.push(e), G($.cache, $, 0);
6925
6930
  }
6926
- function zo(e, t) {
6931
+ function Vo(e, t) {
6927
6932
  let n = $.thumbnail.find((t) => t.key === e);
6928
6933
  n && (n.key = t, $.active = t, G($.cache, $, 0));
6929
6934
  }
6930
- function Bo(e) {
6935
+ function Ho(e) {
6931
6936
  let t = $.thumbnail.find((t) => t.path === e.key);
6932
6937
  t ? ($.active = t.key, G($.cache, $, 0), Y.push(t.key)) : ($.active = e.key, $.thumbnail.push({
6933
6938
  ...e,
@@ -6935,7 +6940,7 @@ function Bo(e) {
6935
6940
  closable: !0
6936
6941
  }), Y.push(e.key));
6937
6942
  }
6938
- function Vo(e) {
6943
+ function Uo(e) {
6939
6944
  let t = $.thumbnail.findIndex((t) => t.key === e);
6940
6945
  if ($.thumbnail.splice(t, 1), $.active === e) {
6941
6946
  let e = $.thumbnail[t - 1]?.key || "";
@@ -6943,12 +6948,12 @@ function Vo(e) {
6943
6948
  }
6944
6949
  G($.cache, $, 0);
6945
6950
  }
6946
- function Ho() {
6951
+ function Wo() {
6947
6952
  $.active = $.page.path, $.thumbnail = [$.page], Y.push($.page.path), G($.cache, $, 0);
6948
6953
  }
6949
6954
  //#endregion
6950
6955
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
6951
- var Uo = d({
6956
+ var Go = d({
6952
6957
  name: "UzThumbnail",
6953
6958
  components: {
6954
6959
  NTabs: Ie,
@@ -6969,29 +6974,29 @@ var Uo = d({
6969
6974
  setup(e, { slots: t }) {
6970
6975
  let n = w(!!t.prefix), r = Xe();
6971
6976
  return y(() => {
6972
- Lo(e.option), $.active !== r.path && zo(r.path, r.fullPath);
6977
+ zo(e.option), $.active !== r.path && Vo(r.path, r.fullPath);
6973
6978
  }), j(() => r, (e) => {
6974
- $.active === r.path && zo(e.path, e.fullPath);
6979
+ $.active === r.path && Vo(e.path, e.fullPath);
6975
6980
  }, { deep: !0 }), j(() => e.option, (e) => {
6976
- Lo(e);
6981
+ zo(e);
6977
6982
  }, { deep: !0 }), {
6978
6983
  thumbnailStore: $,
6979
6984
  isSlotPrefix: n,
6980
6985
  handleClose: (e) => {
6981
- Vo(e);
6986
+ Uo(e);
6982
6987
  },
6983
6988
  handleChange: (e) => {
6984
- Ro(e);
6989
+ Bo(e);
6985
6990
  },
6986
6991
  handleClear: () => {
6987
- Ho();
6992
+ Wo();
6988
6993
  }
6989
6994
  };
6990
6995
  }
6991
6996
  });
6992
6997
  //#endregion
6993
6998
  //#region components/thumbnail/index.vue
6994
- function Wo(t, n, i, o, u, d) {
6999
+ function Ko(t, n, i, o, u, d) {
6995
7000
  let f = D("NTabPane"), p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
6996
7001
  return x(), r(v, {
6997
7002
  value: t.thumbnailStore.active,
@@ -7040,33 +7045,33 @@ function Wo(t, n, i, o, u, d) {
7040
7045
  "on-update:value"
7041
7046
  ]);
7042
7047
  }
7043
- var Go = /*#__PURE__*/ Q(Uo, [["render", Wo]]), Ko = "#007AFF", qo = "#0A84FF", Jo = "#FF9500", Yo = "#FF9F0A", Xo = "#28CD41", Zo = "#32D74B", Qo = "#FFCC00", $o = "#FFD60A", es = "#FF3B30", ts = "#FF453A";
7044
- V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = qo, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Yo, V.common.successColor = "#32D74B", V.common.successColorHover = Zo, V.common.warningColor = "#FFD60A", V.common.successColorHover = $o, V.common.errorColor = "#FF453A", V.common.errorColorHover = ts, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31", V.Scrollbar.width = "8px", V.Scrollbar.height = "8px", V.Scrollbar.borderRadius = "8px", V.Scrollbar.color = "#686873";
7045
- var ns = {
7048
+ var qo = /*#__PURE__*/ Q(Go, [["render", Ko]]), Jo = "#007AFF", Yo = "#0A84FF", Xo = "#FF9500", Zo = "#FF9F0A", Qo = "#28CD41", $o = "#32D74B", es = "#FFCC00", ts = "#FFD60A", ns = "#FF3B30", rs = "#FF453A";
7049
+ V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Yo, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Zo, V.common.successColor = "#32D74B", V.common.successColorHover = $o, V.common.warningColor = "#FFD60A", V.common.successColorHover = ts, V.common.errorColor = "#FF453A", V.common.errorColorHover = rs, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31", V.Scrollbar.width = "8px", V.Scrollbar.height = "8px", V.Scrollbar.borderRadius = "8px", V.Scrollbar.color = "#686873";
7050
+ var is = {
7046
7051
  common: {
7047
7052
  inputColor: "rgba(var(--input))",
7048
7053
  borderColor: "rgba(var(--border), 0.7)",
7049
7054
  borderRadius: "var(--borderRadius)",
7050
- primaryColor: Ko,
7051
- primaryColorHover: qo,
7052
- primaryColorPressed: Ko,
7053
- primaryColorSuppl: Ko,
7054
- infoColor: Jo,
7055
- infoColorHover: Yo,
7056
- infoColorPressed: Jo,
7057
- infoColorSuppl: Jo,
7058
- successColor: Xo,
7059
- successColorHover: Zo,
7060
- successColorPressed: Xo,
7061
- successColorSuppl: Xo,
7062
- warningColor: Qo,
7063
- warningColorHover: $o,
7064
- warningColorPressed: Qo,
7065
- warningColorSuppl: Qo,
7066
- errorColor: es,
7067
- errorColorHover: ts,
7068
- errorColorPressed: es,
7069
- errorColorSuppl: es,
7055
+ primaryColor: Jo,
7056
+ primaryColorHover: Yo,
7057
+ primaryColorPressed: Jo,
7058
+ primaryColorSuppl: Jo,
7059
+ infoColor: Xo,
7060
+ infoColorHover: Zo,
7061
+ infoColorPressed: Xo,
7062
+ infoColorSuppl: Xo,
7063
+ successColor: Qo,
7064
+ successColorHover: $o,
7065
+ successColorPressed: Qo,
7066
+ successColorSuppl: Qo,
7067
+ warningColor: es,
7068
+ warningColorHover: ts,
7069
+ warningColorPressed: es,
7070
+ warningColorSuppl: es,
7071
+ errorColor: ns,
7072
+ errorColorHover: rs,
7073
+ errorColorPressed: ns,
7074
+ errorColorSuppl: ns,
7070
7075
  cardColor: "#fff"
7071
7076
  },
7072
7077
  Button: { textColor: "rgb(var(--font))" },
@@ -7080,7 +7085,7 @@ var ns = {
7080
7085
  borderRadius: "8px",
7081
7086
  color: "#c0c0c0"
7082
7087
  }
7083
- }, rs = V, is = d({
7088
+ }, as = V, os = d({
7084
7089
  name: "UzWrap",
7085
7090
  components: { NConfigProvider: oe },
7086
7091
  setup() {
@@ -7088,14 +7093,14 @@ var ns = {
7088
7093
  zhCN: We,
7089
7094
  dateZhCN: He,
7090
7095
  commonStore: J,
7091
- lightTheme: ns,
7092
- darkTheme: rs
7096
+ lightTheme: is,
7097
+ darkTheme: as
7093
7098
  };
7094
7099
  }
7095
7100
  });
7096
7101
  //#endregion
7097
7102
  //#region components/wrap/index.vue
7098
- function as(e, t, n, i, a, o) {
7103
+ function ss(e, t, n, i, a, o) {
7099
7104
  let s = D("NConfigProvider");
7100
7105
  return x(), r(s, {
7101
7106
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -7114,10 +7119,10 @@ function as(e, t, n, i, a, o) {
7114
7119
  "date-locale"
7115
7120
  ]);
7116
7121
  }
7117
- var os = /*#__PURE__*/ Q(is, [["render", as]]);
7122
+ var cs = /*#__PURE__*/ Q(os, [["render", ss]]);
7118
7123
  //#endregion
7119
7124
  //#region components/ocr/preprocess.ts
7120
- function ss(e) {
7125
+ function ls(e) {
7121
7126
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
7122
7127
  for (let r = 0; r < n; r++) t[e[r]]++;
7123
7128
  let r = 0;
@@ -7132,7 +7137,7 @@ function ss(e) {
7132
7137
  }
7133
7138
  return c;
7134
7139
  }
7135
- function cs(e, t) {
7140
+ function us(e, t) {
7136
7141
  return new Promise((n, r) => {
7137
7142
  let i = new Image();
7138
7143
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -7165,7 +7170,7 @@ function cs(e, t) {
7165
7170
  }
7166
7171
  let u = t.threshold;
7167
7172
  if (t.binarize) {
7168
- t.autoThreshold && (u = ss(l));
7173
+ t.autoThreshold && (u = ls(l));
7169
7174
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
7170
7175
  let n = l[t] < u ? 0 : 255;
7171
7176
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -7188,7 +7193,7 @@ function cs(e, t) {
7188
7193
  }
7189
7194
  //#endregion
7190
7195
  //#region components/ocr/index.vue?vue&type=script&lang.ts
7191
- var ls = d({
7196
+ var ds = d({
7192
7197
  name: "UzOcr",
7193
7198
  components: {
7194
7199
  NButton: I,
@@ -7225,7 +7230,7 @@ var ls = d({
7225
7230
  tessedit_char_blacklist: "|"
7226
7231
  }), a.value), v = async () => {
7227
7232
  if (f.value) try {
7228
- let e = await cs(f.value, {
7233
+ let e = await us(f.value, {
7229
7234
  enabled: o.value,
7230
7235
  scale: s.value,
7231
7236
  grayscale: !0,
@@ -7262,7 +7267,7 @@ var ls = d({
7262
7267
  t.value = !0, r.value = e("OCR.analysis");
7263
7268
  let a = n;
7264
7269
  if (o.value || s.value > 1) try {
7265
- let e = await cs(n, {
7270
+ let e = await us(n, {
7266
7271
  enabled: o.value,
7267
7272
  scale: s.value,
7268
7273
  grayscale: !0,
@@ -7324,25 +7329,25 @@ var ls = d({
7324
7329
  t: e
7325
7330
  };
7326
7331
  }
7327
- }), us = { class: "uz-ocr" }, ds = { class: "uz-ocr-left-col" }, fs = { class: "uz-ocr-upload-card" }, ps = { class: "uz-ocr-upload-title" }, ms = {
7332
+ }), fs = { class: "uz-ocr" }, ps = { class: "uz-ocr-left-col" }, ms = { class: "uz-ocr-upload-card" }, hs = { class: "uz-ocr-upload-title" }, gs = {
7328
7333
  key: 1,
7329
7334
  class: "uz-ocr-preview-panel"
7330
- }, hs = { class: "uz-ocr-preview-box" }, gs = ["src"], _s = {
7335
+ }, _s = { class: "uz-ocr-preview-box" }, vs = ["src"], ys = {
7331
7336
  key: 0,
7332
7337
  class: "uz-ocr-threshold-badge"
7333
- }, vs = { class: "uz-ocr-preview-box" }, ys = ["src"], bs = { class: "uz-ocr-settings-form" }, xs = { class: "uz-settings-row" }, Ss = { class: "uz-settings-label" }, Cs = {
7338
+ }, bs = { class: "uz-ocr-preview-box" }, xs = ["src"], Ss = { class: "uz-ocr-settings-form" }, Cs = { class: "uz-settings-row" }, ws = { class: "uz-settings-label" }, Ts = {
7334
7339
  key: 0,
7335
7340
  class: "uz-ocr-nested-settings animate-fade-in"
7336
- }, ws = { class: "uz-settings-row" }, Ts = { class: "uz-settings-label" }, Es = { class: "uz-settings-row" }, Ds = { class: "uz-settings-label" }, Os = { class: "uz-ocr-right-col" }, ks = { class: "uz-ocr-result-header" }, As = { class: "uz-result-title" }, js = {
7341
+ }, Es = { class: "uz-settings-row" }, Ds = { class: "uz-settings-label" }, Os = { class: "uz-settings-row" }, ks = { class: "uz-settings-label" }, As = { class: "uz-ocr-right-col" }, js = { class: "uz-ocr-result-header" }, Ms = { class: "uz-result-title" }, Ns = {
7337
7342
  key: 0,
7338
7343
  class: "uz-ocr-empty-state"
7339
- }, Ms = { class: "uz-empty-text" }, Ns = {
7344
+ }, Ps = { class: "uz-empty-text" }, Fs = {
7340
7345
  key: 1,
7341
7346
  class: "uz-ocr-result-tabs"
7342
7347
  };
7343
- function Ps(e, t, n, s, u, d) {
7348
+ function Is(e, t, n, s, u, d) {
7344
7349
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
7345
- return x(), a("div", us, [o("div", ds, [e.rawImage ? (x(), a("div", ms, [l(m, {
7350
+ return x(), a("div", fs, [o("div", ps, [e.rawImage ? (x(), a("div", gs, [l(m, {
7346
7351
  value: e.imagePreviewTab,
7347
7352
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
7348
7353
  type: "segment",
@@ -7352,21 +7357,21 @@ function Ps(e, t, n, s, u, d) {
7352
7357
  name: "processed",
7353
7358
  tab: e.t("OCR.previewProcessed")
7354
7359
  }, {
7355
- default: N(() => [o("div", hs, [o("img", {
7360
+ default: N(() => [o("div", _s, [o("img", {
7356
7361
  src: e.processedImage,
7357
7362
  alt: "Processed Preview",
7358
7363
  class: "uz-ocr-preview-img"
7359
- }, null, 8, gs), e.preEnabled && e.preBinarize ? (x(), a("div", _s, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7364
+ }, null, 8, vs), e.preEnabled && e.preBinarize ? (x(), a("div", ys, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7360
7365
  _: 1
7361
7366
  }, 8, ["tab"]), l(p, {
7362
7367
  name: "raw",
7363
7368
  tab: e.t("OCR.previewRaw")
7364
7369
  }, {
7365
- default: N(() => [o("div", vs, [o("img", {
7370
+ default: N(() => [o("div", bs, [o("img", {
7366
7371
  src: e.rawImage,
7367
7372
  alt: "Raw Preview",
7368
7373
  class: "uz-ocr-preview-img"
7369
- }, null, 8, ys)])]),
7374
+ }, null, 8, xs)])]),
7370
7375
  _: 1
7371
7376
  }, 8, ["tab"])]),
7372
7377
  _: 1
@@ -7400,7 +7405,7 @@ function Ps(e, t, n, s, u, d) {
7400
7405
  "directory-dnd": "",
7401
7406
  class: "uz-w-full"
7402
7407
  }, {
7403
- default: N(() => [o("div", fs, [
7408
+ default: N(() => [o("div", ms, [
7404
7409
  t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
7405
7410
  xmlns: "http://www.w3.org/2000/svg",
7406
7411
  viewBox: "0 0 24 24",
@@ -7408,32 +7413,32 @@ function Ps(e, t, n, s, u, d) {
7408
7413
  height: "40",
7409
7414
  fill: "currentColor"
7410
7415
  }, [o("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),
7411
- o("div", ps, A(e.t("OCR.scan")), 1),
7416
+ o("div", hs, A(e.t("OCR.scan")), 1),
7412
7417
  t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
7413
7418
  ])]),
7414
7419
  _: 1
7415
- }, 8, ["on-before-upload"])), o("div", bs, [o("div", xs, [o("span", Ss, A(e.t("OCR.preprocess")), 1), l(_, {
7420
+ }, 8, ["on-before-upload"])), o("div", Ss, [o("div", Cs, [o("span", ws, A(e.t("OCR.preprocess")), 1), l(_, {
7416
7421
  value: e.preEnabled,
7417
7422
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
7418
7423
  size: "small"
7419
- }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Cs, [o("div", ws, [o("span", Ts, A(e.t("OCR.scale")), 1), l(v, {
7424
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Ts, [o("div", Es, [o("span", Ds, A(e.t("OCR.scale")), 1), l(v, {
7420
7425
  value: e.preScale,
7421
7426
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
7422
7427
  options: e.scaleOptions,
7423
7428
  size: "small",
7424
7429
  class: "uz-settings-select"
7425
- }, null, 8, ["value", "options"])]), o("div", Es, [o("span", Ds, A(e.t("OCR.contrast")), 1), l(_, {
7430
+ }, null, 8, ["value", "options"])]), o("div", Os, [o("span", ks, A(e.t("OCR.contrast")), 1), l(_, {
7426
7431
  value: e.preContrast,
7427
7432
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
7428
7433
  size: "small"
7429
- }, null, 8, ["value"])])])) : i("", !0)])]), o("div", Os, [o("div", ks, [o("span", As, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), a("div", Ns, A(e.fullText), 1)) : (x(), a("div", js, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ms, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
7434
+ }, null, 8, ["value"])])])) : i("", !0)])]), o("div", As, [o("div", js, [o("span", Ms, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), a("div", Fs, A(e.fullText), 1)) : (x(), a("div", Ns, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ps, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
7430
7435
  }
7431
- var Fs = /*#__PURE__*/ Q(ls, [["render", Ps], ["__scopeId", "data-v-c7224ff5"]]), Is = /* @__PURE__ */ ut({
7436
+ var Ls = /*#__PURE__*/ Q(ds, [["render", Is], ["__scopeId", "data-v-c7224ff5"]]), Rs = /* @__PURE__ */ ut({
7432
7437
  UzActionButton: () => dt,
7433
7438
  UzBack: () => br,
7434
- UzBom: () => Ti,
7435
- UzCamera: () => ga,
7436
- UzCircle: () => la,
7439
+ UzBom: () => Di,
7440
+ UzCamera: () => va,
7441
+ UzCircle: () => da,
7437
7442
  UzDraggableForm: () => Nr,
7438
7443
  UzForm: () => Or,
7439
7444
  UzFormItem: () => wr,
@@ -7441,44 +7446,44 @@ var Fs = /*#__PURE__*/ Q(ls, [["render", Ps], ["__scopeId", "data-v-c7224ff5"]])
7441
7446
  UzFormItemTimesPicker: () => qr,
7442
7447
  UzFormItemUpload: () => zr,
7443
7448
  UzIcon: () => qt,
7444
- UzOcr: () => Fs,
7445
- UzSearchBar: () => Ea,
7446
- UzSearchMobileBar: () => Ma,
7447
- UzSpin: () => Fa,
7448
- UzTable: () => Za,
7449
- UzTableChild: () => oo,
7450
- UzTableDrawer: () => bo,
7451
- UzTableFile: () => Io,
7452
- UzTableMobile: () => Ao,
7453
- UzTableQuestChild: () => po,
7454
- UzThumbnail: () => Go,
7455
- UzWrap: () => os,
7449
+ UzOcr: () => Ls,
7450
+ UzSearchBar: () => Oa,
7451
+ UzSearchMobileBar: () => Pa,
7452
+ UzSpin: () => La,
7453
+ UzTable: () => $a,
7454
+ UzTableChild: () => co,
7455
+ UzTableDrawer: () => So,
7456
+ UzTableFile: () => Ro,
7457
+ UzTableMobile: () => Mo,
7458
+ UzTableQuestChild: () => ho,
7459
+ UzThumbnail: () => qo,
7460
+ UzWrap: () => cs,
7456
7461
  commonStore: () => J,
7457
7462
  fnActionReduction: () => _r,
7458
7463
  fnActionSimplify: () => gr,
7459
- fnAddThumbnail: () => Bo,
7460
- fnClearAllThumbnail: () => Ho,
7461
- fnDeleteThumbnail: () => Vo,
7462
- fnGetTableData: () => fi,
7463
- fnOptionReduction: () => vi,
7464
- fnOptionSimplify: () => _i,
7465
- fnPrepareFormData: () => yi,
7466
- fnPrepareTableData: () => bi,
7464
+ fnAddThumbnail: () => Ho,
7465
+ fnClearAllThumbnail: () => Wo,
7466
+ fnDeleteThumbnail: () => Uo,
7467
+ fnGetTableData: () => mi,
7468
+ fnOptionReduction: () => bi,
7469
+ fnOptionSimplify: () => yi,
7470
+ fnPrepareFormData: () => xi,
7471
+ fnPrepareTableData: () => Si,
7467
7472
  fnRenderAction: () => lr,
7468
7473
  fnSetLang: () => Ht,
7469
7474
  fnSetTheme: () => Ut,
7470
- fnSetThumbnail: () => Ro,
7471
- fnTableReduction: () => mi,
7472
- fnTableSimplify: () => pi,
7473
- fnTriggersReduction: () => gi,
7474
- fnTriggersSimplify: () => hi,
7475
+ fnSetThumbnail: () => Bo,
7476
+ fnTableReduction: () => gi,
7477
+ fnTableSimplify: () => hi,
7478
+ fnTriggersReduction: () => vi,
7479
+ fnTriggersSimplify: () => _i,
7475
7480
  i18n: () => q
7476
- }), Ls = 3840, Rs = 2160, zs = C({ scale: 1 });
7477
- function Bs(e, t) {
7478
- Ls = e, Rs = t;
7481
+ }), zs = 3840, Bs = 2160, Vs = C({ scale: 1 });
7482
+ function Hs(e, t) {
7483
+ zs = e, Bs = t;
7479
7484
  }
7480
- function Vs() {
7481
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Ls, i = Rs, a = parseFloat((r / i).toFixed(5));
7485
+ function Us() {
7486
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = zs, i = Bs, a = parseFloat((r / i).toFixed(5));
7482
7487
  if (parseFloat((t / n).toFixed(5)) > a) {
7483
7488
  let t = parseFloat((n * a / r).toFixed(5));
7484
7489
  e = t > 1 ? 1 : t;
@@ -7486,17 +7491,17 @@ function Vs() {
7486
7491
  let n = parseFloat((t / a / i).toFixed(5));
7487
7492
  e = n > 1 ? 1 : n;
7488
7493
  }
7489
- zs.scale = e;
7494
+ Vs.scale = e;
7490
7495
  }
7491
- function Hs() {
7492
- let e = $e(Vs, 200);
7496
+ function Ws() {
7497
+ let e = $e(Us, 200);
7493
7498
  return e(), window.addEventListener("resize", e), () => {
7494
- Ls = 3840, Rs = 2160, window.removeEventListener("resize", e);
7499
+ zs = 3840, Bs = 2160, window.removeEventListener("resize", e);
7495
7500
  };
7496
7501
  }
7497
7502
  //#endregion
7498
7503
  //#region components/hooks/useThrottleFn.ts
7499
- function Us(e, t = 1e3) {
7504
+ function Gs(e, t = 1e3) {
7500
7505
  let r = w(e), i = n(() => et((...e) => r.value([...e]), t));
7501
7506
  return b(() => {
7502
7507
  i.value.cancel();
@@ -7508,14 +7513,14 @@ function Us(e, t = 1e3) {
7508
7513
  }
7509
7514
  //#endregion
7510
7515
  //#region components/hooks/useLocalStorage.ts
7511
- function Ws(e, t) {
7516
+ function Ks(e, t) {
7512
7517
  return [w(K(e, t?.defaultValue)), (n) => {
7513
7518
  n === void 0 ? Et(e) : G(e, n, t?.expired || "1 Day");
7514
7519
  }];
7515
7520
  }
7516
7521
  //#endregion
7517
7522
  //#region components/hooks/useQuery.ts
7518
- function Gs(e, t, n) {
7523
+ function qs(e, t, n) {
7519
7524
  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 = () => {
7520
7525
  Hn(), clearInterval(o.value), o.value = null;
7521
7526
  }, p = async () => {
@@ -7581,26 +7586,26 @@ function Gs(e, t, n) {
7581
7586
  }
7582
7587
  //#endregion
7583
7588
  //#region package.json
7584
- var Ks = "0.1.128", qs;
7585
- async function Js() {
7589
+ var Js = "0.1.129", Ys;
7590
+ async function Xs() {
7586
7591
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7587
7592
  method: "HEAD",
7588
7593
  cache: "no-cache"
7589
7594
  });
7590
7595
  return e.headers.get("etag") || e.headers.get("last-modified");
7591
7596
  }
7592
- async function Ys() {
7593
- let e = await Js();
7594
- qs !== e && Wt(!0);
7597
+ async function Zs() {
7598
+ let e = await Xs();
7599
+ Ys !== e && Wt(!0);
7595
7600
  }
7596
- async function Xs() {
7597
- qs = await Js(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7598
- Ys();
7601
+ async function Qs() {
7602
+ Ys = await Xs(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7603
+ Zs();
7599
7604
  }, 6e4);
7600
7605
  }
7601
7606
  //#endregion
7602
7607
  //#region components/create.ts
7603
- function Zs({ components: e = [] } = {}) {
7608
+ function $s({ components: e = [] } = {}) {
7604
7609
  let t = [];
7605
7610
  function n(e, t, n) {
7606
7611
  e.component(t) || e.component(t, n);
@@ -7616,16 +7621,16 @@ function Zs({ components: e = [] } = {}) {
7616
7621
  Gt(e), Vt(o), Ht(d), Ut(u), Bt({
7617
7622
  icons: c,
7618
7623
  iconDefault: l
7619
- }), q.global.locale.value = d, a && Xs(), t && Mn(r, t, n);
7624
+ }), q.global.locale.value = d, a && Qs(), t && Mn(r, t, n);
7620
7625
  }
7621
7626
  }
7622
7627
  return {
7623
- version: Ks,
7628
+ version: Js,
7624
7629
  install: r
7625
7630
  };
7626
7631
  }
7627
7632
  //#endregion
7628
7633
  //#region components/preset.ts
7629
- var Qs = Zs({ components: Object.keys(Is).map((e) => Is[e]) }), $s = Qs.install;
7634
+ var ec = $s({ components: Object.keys(Rs).map((e) => Rs[e]) }), tc = ec.install;
7630
7635
  //#endregion
7631
- export { Wn as BLOB, Gn as CUSTOM, Kn as FILE, Un as GET, Z as POST, dt as UzActionButton, br as UzBack, Ti as UzBom, ga as UzCamera, la as UzCircle, Nr as UzDraggableForm, Or as UzForm, wr as UzFormItem, Ur as UzFormItemImage, qr as UzFormItemTimesPicker, zr as UzFormItemUpload, qt as UzIcon, Fs as UzOcr, Ea as UzSearchBar, Ma as UzSearchMobileBar, Fa as UzSpin, Za as UzTable, oo as UzTableChild, bo as UzTableDrawer, Io as UzTableFile, Ao as UzTableMobile, po as UzTableQuestChild, Go as UzThumbnail, os as UzWrap, J as commonStore, Zs as create, rs as darkTheme, Qs as default, _r as fnActionReduction, gr as fnActionSimplify, Bo as fnAddThumbnail, Hn as fnCancelFetch, Ho as fnClearAllThumbnail, Vs as fnComputedScale, Jt as fnCreateRouter, Et as fnDelStorage, Ot as fnDelStorageAll, Dt as fnDelStorageByPrefix, Vo as fnDeleteThumbnail, Tt as fnDialog, W as fnErrorLog, Rt as fnFilterByPinyinInitials, jt as fnFormatTime, Ft as fnFormatUnits, Pt as fnFullScreen, K as fnGetStorage, fi as fnGetTableData, Hs as fnListenerScale, wt as fnNotification, vi as fnOptionReduction, _i as fnOptionSimplify, At as fnPageModel2Naive, yi as fnPrepareFormData, bi as fnPrepareTableData, lr as fnRenderAction, kt as fnScrollTop, Ht as fnSetLang, Bs as fnSetNormalWidthAndHeight, G as fnSetStorage, Ut as fnSetTheme, Ro as fnSetThumbnail, mi as fnTableReduction, pi as fnTableSimplify, Nt as fnThrottle, Mt as fnTitle, gi as fnTriggersReduction, hi as fnTriggersSimplify, q as i18n, $s as install, ns as lightTheme, zt as mergeColumns, Y as router, zs as scaleStore, Jr as useDebounceFn, Ws as useLocalStorage, Gs as useQuery, Us as useThrottleFn };
7636
+ export { Wn as BLOB, Gn as CUSTOM, Kn as FILE, Un as GET, Z as POST, dt as UzActionButton, br as UzBack, Di as UzBom, va as UzCamera, da as UzCircle, Nr as UzDraggableForm, Or as UzForm, wr as UzFormItem, Ur as UzFormItemImage, qr as UzFormItemTimesPicker, zr as UzFormItemUpload, qt as UzIcon, Ls as UzOcr, Oa as UzSearchBar, Pa as UzSearchMobileBar, La as UzSpin, $a as UzTable, co as UzTableChild, So as UzTableDrawer, Ro as UzTableFile, Mo as UzTableMobile, ho as UzTableQuestChild, qo as UzThumbnail, cs as UzWrap, J as commonStore, $s as create, as as darkTheme, ec as default, _r as fnActionReduction, gr as fnActionSimplify, Ho as fnAddThumbnail, Hn as fnCancelFetch, Wo as fnClearAllThumbnail, Us as fnComputedScale, Jt as fnCreateRouter, Et as fnDelStorage, Ot as fnDelStorageAll, Dt as fnDelStorageByPrefix, Uo as fnDeleteThumbnail, Tt as fnDialog, W as fnErrorLog, Rt as fnFilterByPinyinInitials, jt as fnFormatTime, Ft as fnFormatUnits, Pt as fnFullScreen, K as fnGetStorage, mi as fnGetTableData, Ws as fnListenerScale, wt as fnNotification, bi as fnOptionReduction, yi as fnOptionSimplify, At as fnPageModel2Naive, xi as fnPrepareFormData, Si as fnPrepareTableData, lr as fnRenderAction, kt as fnScrollTop, Ht as fnSetLang, Hs as fnSetNormalWidthAndHeight, G as fnSetStorage, Ut as fnSetTheme, Bo as fnSetThumbnail, gi as fnTableReduction, hi as fnTableSimplify, Nt as fnThrottle, Mt as fnTitle, vi as fnTriggersReduction, _i as fnTriggersSimplify, q as i18n, tc as install, is as lightTheme, zt as mergeColumns, Y as router, Vs as scaleStore, Jr as useDebounceFn, Ks as useLocalStorage, qs as useQuery, Gs as useThrottleFn };