@unizhen/ui 0.1.119 → 0.1.120

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
@@ -7,9 +7,9 @@ import { cloneDeep as H, compact as Qe, debounce as $e, throttle as et } from "l
7
7
  import tt from "dayjs";
8
8
  import { VueDraggable as nt } from "vue-draggable-plus";
9
9
  import rt from "json5";
10
- import { UzNumberFlow as it } from "@unizhen/number";
11
- import at from "jsqr";
12
- import ot from "sortablejs";
10
+ import it from "sortablejs";
11
+ import { UzNumberFlow as at } from "@unizhen/number";
12
+ import ot from "jsqr";
13
13
  import { OEM as st, PSM as ct, createWorker as lt } from "tesseract.js";
14
14
  //#region \0rolldown/runtime.js
15
15
  var ut = Object.defineProperty, dt = (e, t) => {
@@ -43,7 +43,7 @@ var ut = Object.defineProperty, dt = (e, t) => {
43
43
  }
44
44
  },
45
45
  setup(e) {
46
- return () => lr({
46
+ return () => cr({
47
47
  buttons: e.data,
48
48
  rowData: e.rowData,
49
49
  hProps: e.hProps
@@ -213,11 +213,7 @@ var Mt = (e, t = "yyyy-MM-dd") => {
213
213
  document.title = `${e} - ${q.title}`;
214
214
  }, Pt = (e, t = 500) => {
215
215
  let n = e, r, i = !1, a = function(...e) {
216
- if (i) {
217
- n.apply(a, e), i = !1;
218
- return;
219
- }
220
- r ||= setTimeout(function() {
216
+ i ? (n.apply(a, e), i = !1) : r ||= setTimeout(function() {
221
217
  r && clearTimeout(r), r = void 0, n.apply(a, e);
222
218
  }, t);
223
219
  };
@@ -411,9 +407,7 @@ var Jt = d({
411
407
  h(() => {
412
408
  t.value = !0;
413
409
  });
414
- return;
415
- }
416
- n.value = e;
410
+ } else n.value = e;
417
411
  };
418
412
  return r(e.icon), j(() => e.icon, (e) => {
419
413
  r(e);
@@ -532,19 +526,15 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
532
526
  r();
533
527
  } catch {}
534
528
  }, a = an ?? window.fetch;
535
- if (typeof a == "function") {
536
- a.call(window, e, {
537
- method: "POST",
538
- body: n,
539
- keepalive: !0,
540
- credentials: "same-origin",
541
- headers: { "Content-Type": "text/plain;charset=UTF-8" }
542
- }).then((e) => {
543
- e.ok || i();
544
- }).catch(i);
545
- return;
546
- }
547
- i();
529
+ typeof a == "function" ? a.call(window, e, {
530
+ method: "POST",
531
+ body: n,
532
+ keepalive: !0,
533
+ credentials: "same-origin",
534
+ headers: { "Content-Type": "text/plain;charset=UTF-8" }
535
+ }).then((e) => {
536
+ e.ok || i();
537
+ }).catch(i) : i();
548
538
  }, xn = (e, t) => (n, r, i) => {
549
539
  if (!ln) {
550
540
  ln = !0;
@@ -757,31 +747,31 @@ var Hn = "/apiserver/", Un = () => {
757
747
  }), Jn = (e, t) => X("dynamic-table/createTime", {
758
748
  id: e,
759
749
  createTime: t
760
- }), Yn = (e) => X("table/query", e), Xn = (e) => X("table/submit", e), Zn = (e) => X("table/delete", e), Qn = (e) => X("dataBind/query", { table_id: e }), $n = (e) => X("dataBind/submit", e), er = (e, t, n) => X("calculation/sqlExecute", {
750
+ }), Z = (e) => X("table/query", e), Yn = (e) => X("table/submit", e), Xn = (e) => X("table/delete", e), Zn = (e) => X("dataBind/query", { table_id: e }), Qn = (e) => X("dataBind/submit", e), $n = (e, t, n) => X("calculation/sqlExecute", {
761
751
  calculationIds: e,
762
752
  linkId: t,
763
753
  ...n
764
- }), tr = (e) => Gn("excel/template", { tableKey: e }, "arraybuffer"), nr = (e) => X("excel/record/query", {
754
+ }), er = (e) => Gn("excel/template", { tableKey: e }, "arraybuffer"), tr = (e) => X("excel/record/query", {
765
755
  recordType: "import",
766
756
  tableKey: e
767
- }), rr = (e) => X("excel/exportData", e), ir = (e, t) => f(Re, { style: { "max-width": "300px" } }, {
757
+ }), nr = (e) => X("excel/exportData", e), rr = (e, t) => f(Re, { style: { "max-width": "300px" } }, {
768
758
  trigger: () => e,
769
759
  default: () => typeof t == "function" ? t() : t
770
- }), ar = (e, t, n, r) => {
760
+ }), ir = (e, t, n, r) => {
771
761
  try {
772
762
  Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
773
763
  n && n();
774
- }, (e) => Yn({
764
+ }, (e) => Z({
775
765
  id: e,
776
766
  tableId: r
777
- }), (e) => Xn({
767
+ }), (e) => Yn({
778
768
  tableId: r,
779
769
  ...e
780
770
  }), Tt, X);
781
771
  } catch (e) {
782
772
  U(e);
783
773
  }
784
- }, or = (e, t, n, r, i) => {
774
+ }, ar = (e, t, n, r, i) => {
785
775
  let a = {
786
776
  secondary: i?.secondary || !1,
787
777
  tertiary: i?.tertiary || !1,
@@ -796,36 +786,36 @@ var Hn = "/apiserver/", Un = () => {
796
786
  if (!e.confirmText) {
797
787
  if (e.onClick && typeof e.onClick == "string") {
798
788
  let i = e.onClick;
799
- a.onClick = () => ar(i, t, n, r);
789
+ a.onClick = () => ir(i, t, n, r);
800
790
  }
801
791
  e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
802
792
  }
803
793
  return e.icon && (o.icon = () => f(B, {}, { default: () => f(Jt, { icon: e.icon }, { default: () => null }) })), f(I, a, o);
804
- }, sr = (e, t, n, r, i) => {
794
+ }, or = (e, t, n, r, i) => {
805
795
  let a = { placement: "left" };
806
796
  if (typeof t.onClick == "string") {
807
797
  let e = t.onClick;
808
- a["on-positive-click"] = () => ar(e, n, r, i);
798
+ a["on-positive-click"] = () => ir(e, n, r, i);
809
799
  } else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
810
800
  return f(Ee, a, {
811
801
  default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
812
802
  trigger: () => e
813
803
  });
814
- }, cr = (e, t, n, r, i) => {
815
- let a = or(e, t, n, r, i);
816
- return e.confirmText && (a = sr(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = ir(a, e.tooltipText)), a;
817
- }, lr = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
804
+ }, sr = (e, t, n, r, i) => {
805
+ let a = ar(e, t, n, r, i);
806
+ return e.confirmText && (a = or(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = rr(a, e.tooltipText)), a;
807
+ }, cr = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
818
808
  let a = [];
819
809
  return e.forEach((e) => {
820
810
  if (e.type === "group") {
821
811
  let o = [];
822
812
  e.children && e.children.length > 0 && e.children.forEach((a, s) => {
823
- o.push(cr({
813
+ o.push(sr({
824
814
  ...a,
825
815
  tooltipText: void 0
826
816
  }, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
827
817
  }), a.push(f(De, { trigger: "click" }, {
828
- trigger: () => or({
818
+ trigger: () => ar({
829
819
  type: "normal",
830
820
  key: e.key,
831
821
  icon: e.icon,
@@ -841,11 +831,11 @@ var Hn = "/apiserver/", Un = () => {
841
831
  }));
842
832
  }
843
833
  if (e.type === "normal") {
844
- let o = cr(e, t, n, r, i);
834
+ let o = sr(e, t, n, r, i);
845
835
  a.push(o);
846
836
  }
847
837
  }), f("div", { class: "uz-action-flex" }, { default: () => a });
848
- }, ur = (e) => {
838
+ }, lr = (e) => {
849
839
  switch (e) {
850
840
  case "tertiary": return 1;
851
841
  case "primary": return 2;
@@ -855,7 +845,7 @@ var Hn = "/apiserver/", Un = () => {
855
845
  case "error": return 6;
856
846
  default: return 0;
857
847
  }
858
- }, dr = (e) => {
848
+ }, ur = (e) => {
859
849
  switch (e) {
860
850
  case 1: return "tertiary";
861
851
  case 2: return "primary";
@@ -865,7 +855,7 @@ var Hn = "/apiserver/", Un = () => {
865
855
  case 6: return "error";
866
856
  default: return "default";
867
857
  }
868
- }, fr = (e) => {
858
+ }, dr = (e) => {
869
859
  switch (e) {
870
860
  case "detailInside": return 0;
871
861
  case "editInside": return 1;
@@ -874,7 +864,7 @@ var Hn = "/apiserver/", Un = () => {
874
864
  case "enabledInside": return 4;
875
865
  default: return e;
876
866
  }
877
- }, pr = (e) => {
867
+ }, fr = (e) => {
878
868
  switch (e) {
879
869
  case 0: return "detailInside";
880
870
  case 1: return "editInside";
@@ -883,66 +873,66 @@ var Hn = "/apiserver/", Un = () => {
883
873
  case 4: return "enabledInside";
884
874
  default: return e;
885
875
  }
886
- }, mr = (e) => ({
876
+ }, pr = (e) => ({
887
877
  t: 0,
888
878
  k: e.key,
889
879
  d: e?.disabled,
890
880
  l: e?.loading,
891
881
  i: e?.icon,
892
- c: ur(e?.color),
882
+ c: lr(e?.color),
893
883
  b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
894
884
  o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
895
885
  p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
896
886
  s: e?.optionsType,
897
887
  u: e?.optionsSource,
898
- a: fr(e?.action),
888
+ a: dr(e?.action),
899
889
  r: +!!e.footer,
900
890
  g: +!!e.main,
901
891
  h: +!!e.sub,
902
892
  w: e?.width,
903
893
  z: e?.onClick
904
- }), hr = (e) => ({
894
+ }), mr = (e) => ({
905
895
  type: "normal",
906
896
  key: e.k,
907
897
  disabled: e?.d,
908
898
  loading: e?.l,
909
899
  icon: e?.i,
910
- color: dr(e?.c),
900
+ color: ur(e?.c),
911
901
  buttonText: e?.b ? decodeURIComponent(e?.b) : "",
912
902
  confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
913
903
  tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
914
904
  optionsType: e?.s,
915
905
  optionsSource: e?.u,
916
- action: pr(e?.a),
906
+ action: fr(e?.a),
917
907
  footer: !!e.r,
918
908
  sub: !!e.h,
919
909
  main: !!e.g,
920
910
  width: e?.w,
921
911
  onClick: e?.z
922
- }), gr = (e) => {
912
+ }), hr = (e) => {
923
913
  let t = [];
924
- for (let n of e) n.type === "normal" && t.push(mr(n)), n.type === "group" && t.push({
914
+ for (let n of e) n.type === "normal" && t.push(pr(n)), n.type === "group" && t.push({
925
915
  t: 1,
926
916
  k: n.key,
927
917
  i: n?.icon,
928
- x: ur(n?.color),
918
+ x: lr(n?.color),
929
919
  b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
930
- c: n.children.map((e) => mr(e))
920
+ c: n.children.map((e) => pr(e))
931
921
  });
932
922
  return t;
933
- }, _r = (e) => {
923
+ }, gr = (e) => {
934
924
  if (e && e[0] && e[0].type) return e;
935
925
  let t = [];
936
- for (let n of e) n.t === 0 && t.push(hr(n)), n.t === 1 && t.push({
926
+ for (let n of e) n.t === 0 && t.push(mr(n)), n.t === 1 && t.push({
937
927
  type: "group",
938
928
  key: n.k,
939
929
  icon: n?.i,
940
- color: dr(n?.x),
930
+ color: ur(n?.x),
941
931
  buttonText: n?.b ? decodeURIComponent(n?.b) : "",
942
- children: n.c.map((e) => hr(e))
932
+ children: n.c.map((e) => mr(e))
943
933
  });
944
934
  return t;
945
- }, vr = d({
935
+ }, _r = d({
946
936
  name: "UzBack",
947
937
  components: {
948
938
  NButton: I,
@@ -964,14 +954,14 @@ var Hn = "/apiserver/", Un = () => {
964
954
  e.to ? t.push(e.to) : t.back();
965
955
  } };
966
956
  }
967
- }), Z = (e, t) => {
957
+ }), Q = (e, t) => {
968
958
  let n = e.__vccOpts || e;
969
959
  for (let [e, r] of t) n[e] = r;
970
960
  return n;
971
961
  };
972
962
  //#endregion
973
963
  //#region components/back/index.vue
974
- function yr(e, t, n, i, a, s) {
964
+ function vr(e, t, n, i, a, s) {
975
965
  let c = D("UzIcon"), u = D("NIcon"), d = D("NButton");
976
966
  return x(), r(d, {
977
967
  quaternary: "",
@@ -985,7 +975,7 @@ function yr(e, t, n, i, a, s) {
985
975
  _: 1
986
976
  }, 8, ["onClick"]);
987
977
  }
988
- var br = /*#__PURE__*/ Z(vr, [["render", yr]]), xr = d({
978
+ var yr = /*#__PURE__*/ Q(_r, [["render", vr]]), br = d({
989
979
  name: "UzFormItem",
990
980
  components: {
991
981
  NIcon: B,
@@ -1166,8 +1156,8 @@ var br = /*#__PURE__*/ Z(vr, [["render", yr]]), xr = d({
1166
1156
  selectFilter: (e, t) => zt(t.label, e)
1167
1157
  };
1168
1158
  }
1169
- }), Sr = { class: "uz-flex uz-flex-wrap uz-gap-2" };
1170
- function Cr(t, n, i, u, d, f) {
1159
+ }), xr = { class: "uz-flex uz-flex-wrap uz-gap-2" };
1160
+ function Sr(t, n, i, u, d, f) {
1171
1161
  let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), O = D("NSwitch"), k = D("UzFormItemUpload");
1172
1162
  return t.item.input === "input" ? (x(), r(p, {
1173
1163
  key: 0,
@@ -1472,7 +1462,7 @@ function Cr(t, n, i, u, d, f) {
1472
1462
  value: t.formValue[t.item.key],
1473
1463
  disabled: t.checkDisabled()
1474
1464
  }, {
1475
- default: N(() => [o("div", Sr, [(x(!0), a(e, null, T(t.item.params.options, (e) => (x(), r(S, {
1465
+ default: N(() => [o("div", xr, [(x(!0), a(e, null, T(t.item.params.options, (e) => (x(), r(S, {
1476
1466
  key: e.value,
1477
1467
  label: e.label,
1478
1468
  value: e.value
@@ -1541,7 +1531,7 @@ function Cr(t, n, i, u, d, f) {
1541
1531
  "status"
1542
1532
  ])) : (x(), a(e, { key: 14 }, [], 64));
1543
1533
  }
1544
- var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
1534
+ var Cr = /*#__PURE__*/ Q(br, [["render", Sr]]), wr = d({
1545
1535
  name: "UzForm",
1546
1536
  components: {
1547
1537
  NForm: me,
@@ -1549,7 +1539,7 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
1549
1539
  NDivider: le,
1550
1540
  NButton: I,
1551
1541
  NIcon: B,
1552
- UzFormItem: wr
1542
+ UzFormItem: Cr
1553
1543
  },
1554
1544
  props: {
1555
1545
  items: {
@@ -1668,7 +1658,7 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
1668
1658
  }
1669
1659
  } else s.value[e.key] = e.form.defaultValue;
1670
1660
  }
1671
- if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
1661
+ if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "bom" && u.value.push(e.key), e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
1672
1662
  s.value[e.key] = JSON.parse(s.value[e.key]);
1673
1663
  } catch {
1674
1664
  s.value[e.key] = [];
@@ -1754,10 +1744,10 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
1754
1744
  }
1755
1745
  };
1756
1746
  }
1757
- }), Er = ["onClick"];
1758
- function Dr(t, n, s, u, d, f) {
1759
- let p = D("UzIcon"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = O("media");
1760
- return x(), a(e, null, [l(C, {
1747
+ }), Tr = ["onClick"];
1748
+ function Er(t, n, s, u, d, f) {
1749
+ let p = D("UzIcon"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("UzBom"), b = D("NDivider"), S = D("UzFormItem"), C = D("NFormItem"), w = D("NForm"), E = D("UzTableDrawer"), k = O("media");
1750
+ return x(), a(e, null, [l(w, {
1761
1751
  ref: "formRef",
1762
1752
  class: "uz-w-full uz-h-full",
1763
1753
  model: t.formValue,
@@ -1766,7 +1756,7 @@ function Dr(t, n, s, u, d, f) {
1766
1756
  labelAlign: t.labelAlign,
1767
1757
  labelPlacement: t.labelPlacement
1768
1758
  }, {
1769
- default: N(() => [P((x(), a("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), a(e, null, T(t.formItems, (s, u) => (x(), a(e, { key: s.key }, [t.itemShow(s) ? (x(), r(S, {
1759
+ default: N(() => [P((x(), a("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), a(e, null, T(t.formItems, (s, u) => (x(), a(e, { key: s.key }, [t.itemShow(s) ? (x(), r(C, {
1770
1760
  key: 0,
1771
1761
  path: s.key,
1772
1762
  rule: s.input === "subTable" ? void 0 : s.form.rule?.required ? s.form.rule : void 0,
@@ -1783,7 +1773,7 @@ function Dr(t, n, s, u, d, f) {
1783
1773
  }, [l(m, null, {
1784
1774
  default: N(() => [l(p, { icon: "Add" })]),
1785
1775
  _: 1
1786
- }), n[0] ||= c(" 新增 ", -1)], 8, Er)) : i("", !0),
1776
+ }), n[0] ||= c(" 新增 ", -1)], 8, Tr)) : i("", !0),
1787
1777
  s.form.showDays ? (x(), a("span", {
1788
1778
  key: 1,
1789
1779
  class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
@@ -1808,14 +1798,18 @@ function Dr(t, n, s, u, d, f) {
1808
1798
  key: 1,
1809
1799
  formValue: t.formValue,
1810
1800
  item: s
1811
- }, null, 8, ["formValue", "item"])) : s.input === "divider" ? (x(), r(y, {
1801
+ }, null, 8, ["formValue", "item"])) : s.input === "bom" ? (x(), r(y, {
1812
1802
  key: 2,
1803
+ value: t.formValue[`bom_${s.key}`],
1804
+ "onUpdate:value": (e) => t.formValue[`bom_${s.key}`] = e
1805
+ }, null, 8, ["value", "onUpdate:value"])) : s.input === "divider" ? (x(), r(b, {
1806
+ key: 3,
1813
1807
  "title-placement": s.params.placement
1814
1808
  }, {
1815
1809
  default: N(() => [c(A(typeof s.label == "function" ? s.label() : s.label), 1)]),
1816
1810
  _: 2
1817
- }, 1032, ["title-placement"])) : (x(), r(b, {
1818
- key: 3,
1811
+ }, 1032, ["title-placement"])) : (x(), r(S, {
1812
+ key: 4,
1819
1813
  item: s,
1820
1814
  formValue: t.formValue,
1821
1815
  status: t.status
@@ -1831,7 +1825,7 @@ function Dr(t, n, s, u, d, f) {
1831
1825
  "style",
1832
1826
  "show-label",
1833
1827
  "show-feedback"
1834
- ])) : i("", !0)], 64))), 128))], 2)), [[E]])]),
1828
+ ])) : i("", !0)], 64))), 128))], 2)), [[k]])]),
1835
1829
  _: 1
1836
1830
  }, 8, [
1837
1831
  "model",
@@ -1839,12 +1833,12 @@ function Dr(t, n, s, u, d, f) {
1839
1833
  "labelWidth",
1840
1834
  "labelAlign",
1841
1835
  "labelPlacement"
1842
- ]), l(w, {
1836
+ ]), l(E, {
1843
1837
  ref: "drawerRef",
1844
1838
  onOnSubmit: t.refreshOption
1845
1839
  }, null, 8, ["onOnSubmit"])], 64);
1846
1840
  }
1847
- var Or = /*#__PURE__*/ Z(Tr, [["render", Dr]]), kr = d({
1841
+ var Dr = /*#__PURE__*/ Q(wr, [["render", Er]]), Or = d({
1848
1842
  name: "UzDraggableForm",
1849
1843
  components: {
1850
1844
  NForm: me,
@@ -1852,7 +1846,7 @@ var Or = /*#__PURE__*/ Z(Tr, [["render", Dr]]), kr = d({
1852
1846
  NButton: I,
1853
1847
  NIcon: B,
1854
1848
  NDivider: le,
1855
- UzFormItem: wr,
1849
+ UzFormItem: Cr,
1856
1850
  VueDraggable: nt
1857
1851
  },
1858
1852
  props: {
@@ -1950,14 +1944,14 @@ var Or = /*#__PURE__*/ Z(Tr, [["render", Dr]]), kr = d({
1950
1944
  }
1951
1945
  };
1952
1946
  }
1953
- }), Ar = {
1947
+ }), kr = {
1954
1948
  key: 0,
1955
1949
  class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
1956
- }, jr = {
1950
+ }, Ar = {
1957
1951
  key: 1,
1958
1952
  class: "uz-form-item-add"
1959
1953
  };
1960
- function Mr(t, n, s, u, d, f) {
1954
+ function jr(t, n, s, u, d, f) {
1961
1955
  let p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), v = D("UzTableChild"), y = D("UzFormItem"), b = D("NFormItem"), S = D("VueDraggable"), C = D("NDivider"), w = D("NForm");
1962
1956
  return x(), r(w, {
1963
1957
  ref: "formRef",
@@ -1995,11 +1989,11 @@ function Mr(t, n, s, u, d, f) {
1995
1989
  }, {
1996
1990
  label: N(() => [
1997
1991
  o("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
1998
- s.source && s.form.createButton ? (x(), a("a", Ar, [l(m, null, {
1992
+ s.source && s.form.createButton ? (x(), a("a", kr, [l(m, null, {
1999
1993
  default: N(() => [l(p, { icon: "Add" })]),
2000
1994
  _: 1
2001
1995
  }), n[1] ||= c(" 新增 ", -1)])) : i("", !0),
2002
- s.form.showDays ? (x(), a("span", jr, " showDays ")) : i("", !0)
1996
+ s.form.showDays ? (x(), a("span", Ar, " showDays ")) : i("", !0)
2003
1997
  ]),
2004
1998
  default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), r(h, {
2005
1999
  key: 0,
@@ -2126,7 +2120,7 @@ function Mr(t, n, s, u, d, f) {
2126
2120
  "onClick"
2127
2121
  ]);
2128
2122
  }
2129
- var Nr = /*#__PURE__*/ Z(kr, [["render", Mr]]), Pr = d({
2123
+ var Mr = /*#__PURE__*/ Q(Or, [["render", jr]]), Nr = d({
2130
2124
  name: "UzFormItemUpload",
2131
2125
  components: {
2132
2126
  NUpload: ze,
@@ -2204,11 +2198,8 @@ var Nr = /*#__PURE__*/ Z(kr, [["render", Mr]]), Pr = d({
2204
2198
  i.value.splice(e, 1), a();
2205
2199
  }, l = () => {
2206
2200
  let t = H(e.value);
2207
- if (!t) {
2208
- i.value = [];
2209
- return;
2210
- }
2211
- if (typeof t == "string") try {
2201
+ if (!t) i.value = [];
2202
+ else if (typeof t == "string") try {
2212
2203
  t = rt.parse(t), i.value = t.map((e, t) => {
2213
2204
  let n = decodeURIComponent(e), r = n.lastIndexOf("/"), i = n.substring(r + 1);
2214
2205
  return {
@@ -2238,8 +2229,8 @@ var Nr = /*#__PURE__*/ Z(kr, [["render", Mr]]), Pr = d({
2238
2229
  }
2239
2230
  };
2240
2231
  }
2241
- }), Fr = { class: "uz-form-upload-item-inner" }, Ir = ["title"], Lr = { key: 0 };
2242
- function Rr(t, n, s, u, d, f) {
2232
+ }), Pr = { class: "uz-form-upload-item-inner" }, Fr = ["title"], Ir = { key: 0 };
2233
+ function Lr(t, n, s, u, d, f) {
2243
2234
  let p = D("UzIcon"), m = D("NIcon"), h = D("NUploadDragger"), g = D("NUpload"), _ = D("NImage"), v = D("NButton"), y = D("NPopconfirm"), b = D("NSpin");
2244
2235
  return x(), r(b, {
2245
2236
  "content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
@@ -2293,10 +2284,10 @@ function Rr(t, n, s, u, d, f) {
2293
2284
  }, {
2294
2285
  default: N(() => [l(p, { icon: "Document" })]),
2295
2286
  _: 1
2296
- }, 8, ["onClick"])), o("div", Fr, [o("div", {
2287
+ }, 8, ["onClick"])), o("div", Pr, [o("div", {
2297
2288
  class: "uz-form-upload-title uz-truncate",
2298
2289
  title: e.name
2299
- }, A(e.name), 9, Ir), t.status === 2 ? i("", !0) : (x(), a("div", Lr, [l(y, { onPositiveClick: (e) => t.doDelete(s) }, {
2290
+ }, A(e.name), 9, Fr), t.status === 2 ? i("", !0) : (x(), a("div", Ir, [l(y, { onPositiveClick: (e) => t.doDelete(s) }, {
2300
2291
  trigger: N(() => [l(v, {
2301
2292
  size: "small",
2302
2293
  tertiary: ""
@@ -2325,7 +2316,7 @@ function Rr(t, n, s, u, d, f) {
2325
2316
  _: 1
2326
2317
  }, 8, ["show"]);
2327
2318
  }
2328
- var zr = /*#__PURE__*/ Z(Pr, [["render", Rr], ["__scopeId", "data-v-abc9b567"]]), Br = d({
2319
+ var Rr = /*#__PURE__*/ Q(Nr, [["render", Lr], ["__scopeId", "data-v-abc9b567"]]), zr = d({
2329
2320
  name: "UzFormItemImage",
2330
2321
  components: {
2331
2322
  NImageGroup: ye,
@@ -2369,11 +2360,11 @@ var zr = /*#__PURE__*/ Z(Pr, [["render", Rr], ["__scopeId", "data-v-abc9b567"]])
2369
2360
  }
2370
2361
  };
2371
2362
  }
2372
- }), Vr = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
2373
- function Hr(t, n, i, s, u, d) {
2363
+ }), Br = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
2364
+ function Vr(t, n, i, s, u, d) {
2374
2365
  let f = D("UzIcon"), p = D("NIcon"), m = D("NImage"), h = D("NPopover"), g = D("NImageGroup");
2375
2366
  return x(), r(g, null, {
2376
- default: N(() => [o("div", Vr, [(x(!0), a(e, null, T(t.imgs, (n) => (x(), a(e, null, [t.isAssetTypeAnImage(n) ? (x(), r(m, {
2367
+ default: N(() => [o("div", Br, [(x(!0), a(e, null, T(t.imgs, (n) => (x(), a(e, null, [t.isAssetTypeAnImage(n) ? (x(), r(m, {
2377
2368
  key: 0,
2378
2369
  width: "40",
2379
2370
  src: n
@@ -2405,7 +2396,7 @@ function Hr(t, n, i, s, u, d) {
2405
2396
  _: 1
2406
2397
  });
2407
2398
  }
2408
- var Ur = /*#__PURE__*/ Z(Br, [["render", Hr]]), Wr = d({
2399
+ var Hr = /*#__PURE__*/ Q(zr, [["render", Vr]]), Ur = d({
2409
2400
  name: "UzFormItemTimesPicker",
2410
2401
  components: { NSelect: Ae },
2411
2402
  props: {
@@ -2455,10 +2446,10 @@ var Ur = /*#__PURE__*/ Z(Br, [["render", Hr]]), Wr = d({
2455
2446
  }
2456
2447
  };
2457
2448
  }
2458
- }), Gr = { class: "times-picker" };
2459
- function Kr(e, t, n, r, i, o) {
2449
+ }), Wr = { class: "times-picker" };
2450
+ function Gr(e, t, n, r, i, o) {
2460
2451
  let s = D("NSelect");
2461
- return x(), a("div", Gr, [
2452
+ return x(), a("div", Wr, [
2462
2453
  l(s, {
2463
2454
  value: e.h,
2464
2455
  options: e.times,
@@ -2506,10 +2497,10 @@ function Kr(e, t, n, r, i, o) {
2506
2497
  ])
2507
2498
  ]);
2508
2499
  }
2509
- var qr = /*#__PURE__*/ Z(Wr, [["render", Kr], ["__scopeId", "data-v-12b4d7e3"]]);
2500
+ var Kr = /*#__PURE__*/ Q(Ur, [["render", Gr], ["__scopeId", "data-v-12b4d7e3"]]);
2510
2501
  //#endregion
2511
2502
  //#region components/hooks/useDebounceFn.ts
2512
- function Jr(e, t = 1e3) {
2503
+ function qr(e, t = 1e3) {
2513
2504
  let n = $e(e, t);
2514
2505
  return {
2515
2506
  run: n,
@@ -2518,86 +2509,529 @@ function Jr(e, t = 1e3) {
2518
2509
  };
2519
2510
  }
2520
2511
  //#endregion
2521
- //#region components/bom/index.vue?vue&type=script&lang.ts
2522
- var Yr = [
2523
- "var(--primary)",
2524
- "var(--green)",
2525
- "var(--yellow)",
2526
- "var(--purple)"
2527
- ], Xr = (e) => {
2528
- if (e == null || e === "") return null;
2529
- if (typeof e == "string") {
2530
- let t = Number.parseFloat(e);
2531
- return Number.isFinite(t) ? e.includes("%") || t > 1 ? t / 100 : t : null;
2532
- }
2533
- return Number.isFinite(e) ? e > 1 ? e / 100 : e : null;
2534
- }, Zr = (e) => {
2535
- let t = Number(e.quantity), n = Xr(e.lossRate);
2536
- if (!Number.isFinite(t) || n === null || n < 0) return null;
2537
- let r = 1 - n;
2538
- return r > 0 ? Math.ceil(t / r) : null;
2539
- }, Qr = (e) => e === null ? "—" : e.toLocaleString("zh-CN"), $r = [
2540
- {
2541
- title: "编码",
2542
- key: "code",
2543
- width: 140,
2544
- fixed: "left",
2545
- ellipsis: { tooltip: !0 }
2546
- },
2512
+ //#region components/bom/sortable.ts
2513
+ var Jr = (e, t) => e.map((e, n) => {
2514
+ let r = `${t}-${n + 1}`, i = Array.isArray(e.children) ? Jr(e.children, r) : e.children;
2515
+ return {
2516
+ ...e,
2517
+ code: r,
2518
+ sort: n,
2519
+ children: i
2520
+ };
2521
+ }), Yr = (e, t) => {
2522
+ let n = new Map(e.map((e) => [e.code, e])), r = new Set(t);
2523
+ return [...t.flatMap((e) => {
2524
+ let t = n.get(e);
2525
+ return t ? [t] : [];
2526
+ }), ...e.filter((e) => !r.has(e.code))].map((e, t) => ({
2527
+ ...e,
2528
+ sort: t
2529
+ }));
2530
+ }, Xr = (e, t, n) => t ? e.map((e) => e.code === t ? {
2531
+ ...e,
2532
+ children: Jr(Yr(e.children ?? [], n), e.code)
2533
+ } : Array.isArray(e.children) ? {
2534
+ ...e,
2535
+ children: Xr(e.children, t, n)
2536
+ } : e) : Yr(e, n), Zr = (e, t) => {
2537
+ let r = w(null), i = w(0), a = w(null), o = n(() => {
2538
+ let t = /* @__PURE__ */ new Map(), n = (e, r = "") => {
2539
+ e.forEach((e) => {
2540
+ t.set(e.code, r), Array.isArray(e.children) && n(e.children, e.code);
2541
+ });
2542
+ };
2543
+ return n(e.value), t;
2544
+ }), s = async () => {
2545
+ await h();
2546
+ let n = r.value?.$el?.querySelector(".n-data-table-tbody");
2547
+ n && a.value?.el !== n && (a.value?.destroy(), a.value = it.create(n, {
2548
+ animation: 150,
2549
+ handle: ".uz-bom-drag-handle",
2550
+ onMove: ({ dragged: e, related: t }) => {
2551
+ let n = e.dataset.parentKey;
2552
+ return !!(n && n === t.dataset.parentKey);
2553
+ },
2554
+ onEnd: ({ item: r }) => {
2555
+ let o = r.dataset.parentKey ?? "", s = Array.from(n.children).flatMap((e) => {
2556
+ let t = e, n = t.dataset.rowKey;
2557
+ return t.dataset.parentKey === o && n ? [n] : [];
2558
+ });
2559
+ a.value?.destroy(), a.value = null, i.value += 1, t(Xr(e.value, o, s));
2560
+ }
2561
+ }));
2562
+ };
2563
+ return y(s), j(e, s), v(() => a.value?.destroy()), {
2564
+ dragColumn: {
2565
+ title: "",
2566
+ key: "drag",
2567
+ width: 40,
2568
+ fixed: "left",
2569
+ align: "center",
2570
+ render: (e) => o.value.get(e.code) ? f("span", {
2571
+ class: "uz-bom-drag-handle uz-cursor-pointer uz-select-none",
2572
+ "aria-label": "拖拽排序"
2573
+ }, "⠿") : null
2574
+ },
2575
+ getSortableRowProps: (e) => ({
2576
+ "data-row-key": e.code,
2577
+ "data-parent-key": o.value.get(e.code) ?? ""
2578
+ }),
2579
+ tableRef: r,
2580
+ tableVersion: i
2581
+ };
2582
+ }, Qr = (e, t) => e.map((e) => ({
2583
+ label: String(e[`${t}_name`] || e[`${t}_no`] || ""),
2584
+ value: e.id
2585
+ })), $r = (e) => Qr(e, "operation"), ei = (e) => Qr(e, "unit"), ti = (e, t) => [{
2586
+ label: "产品",
2587
+ key: "product",
2588
+ rows: e
2589
+ }, {
2590
+ label: "物料",
2591
+ key: "material",
2592
+ rows: t
2593
+ }].map(({ label: e, key: t, rows: n }) => ({
2594
+ type: "group",
2595
+ label: e,
2596
+ key: t,
2597
+ children: n.map((e) => {
2598
+ let t = e.product_no ?? e.material_no, n = e.product_name ?? e.material_name ?? e.name;
2599
+ return {
2600
+ label: n ? `${t}-${n}` : String(t),
2601
+ value: t,
2602
+ params: e
2603
+ };
2604
+ })
2605
+ })), ni = [
2547
2606
  {
2548
- title: "物料名称",
2549
- key: "product_name",
2607
+ input: "input",
2550
2608
  width: 200,
2551
- ellipsis: { tooltip: !0 }
2609
+ label: "编码",
2610
+ key: "code",
2611
+ source: "",
2612
+ sourceFn: "",
2613
+ params: {
2614
+ placeholder: "编码",
2615
+ clearable: !1,
2616
+ type: "text"
2617
+ },
2618
+ form: {
2619
+ span: 24,
2620
+ show: !0,
2621
+ disabled: !1,
2622
+ readonly: !0,
2623
+ updateValue: "",
2624
+ display: "",
2625
+ readonlyFn: "",
2626
+ disabledFn: "",
2627
+ createButton: !1,
2628
+ showDays: !1,
2629
+ backfill: !1,
2630
+ rule: {
2631
+ required: !1,
2632
+ type: "string",
2633
+ message: "必填",
2634
+ trigger: "change",
2635
+ validator: ""
2636
+ },
2637
+ create: {
2638
+ show: !0,
2639
+ disabled: !1,
2640
+ readonly: !0
2641
+ },
2642
+ edit: {
2643
+ show: !0,
2644
+ disabled: !1,
2645
+ readonly: !0
2646
+ },
2647
+ expand: {
2648
+ show: !0,
2649
+ disabled: !1,
2650
+ readonly: !0
2651
+ }
2652
+ }
2552
2653
  },
2553
2654
  {
2554
- title: "材料规格",
2555
- key: "product_specifications",
2556
- width: 180,
2557
- ellipsis: { tooltip: !0 }
2655
+ input: "select",
2656
+ label: "物料",
2657
+ width: 150,
2658
+ key: "product_no",
2659
+ source: "",
2660
+ sourceFn: "",
2661
+ params: {
2662
+ immediately: !1,
2663
+ placeholder: "物料",
2664
+ clearable: !0,
2665
+ options: []
2666
+ },
2667
+ form: {
2668
+ span: 24,
2669
+ show: !0,
2670
+ disabled: !1,
2671
+ readonly: !1,
2672
+ updateValue: "\n const source = (option && option.params) || {}\n return {\n product_name: source.product_name ?? source.material_name ?? '',\n unit: source.unit ?? '',\n operation_no: source.operation_no ?? ''\n }\n",
2673
+ display: "",
2674
+ readonlyFn: "",
2675
+ disabledFn: "",
2676
+ createButton: !1,
2677
+ showDays: !1,
2678
+ backfill: !1,
2679
+ rule: {
2680
+ required: !1,
2681
+ type: "string",
2682
+ message: "必填",
2683
+ trigger: "change",
2684
+ validator: ""
2685
+ },
2686
+ create: {
2687
+ show: !0,
2688
+ disabled: !1,
2689
+ readonly: !1
2690
+ },
2691
+ edit: {
2692
+ show: !0,
2693
+ disabled: !1,
2694
+ readonly: !1
2695
+ },
2696
+ expand: {
2697
+ show: !0,
2698
+ disabled: !1,
2699
+ readonly: !1
2700
+ }
2701
+ }
2558
2702
  },
2559
2703
  {
2560
- title: "单位",
2704
+ input: "select",
2705
+ label: "单位",
2561
2706
  key: "unit",
2562
- width: 80
2707
+ source: "",
2708
+ sourceFn: "",
2709
+ params: {
2710
+ immediately: !1,
2711
+ placeholder: "单位",
2712
+ clearable: !0,
2713
+ options: []
2714
+ },
2715
+ form: {
2716
+ span: 24,
2717
+ show: !0,
2718
+ disabled: !1,
2719
+ readonly: !1,
2720
+ updateValue: "",
2721
+ display: "",
2722
+ readonlyFn: "",
2723
+ disabledFn: "",
2724
+ createButton: !1,
2725
+ showDays: !1,
2726
+ backfill: !1,
2727
+ rule: {
2728
+ required: !1,
2729
+ type: "string",
2730
+ message: "必填",
2731
+ trigger: "change",
2732
+ validator: ""
2733
+ },
2734
+ create: {
2735
+ show: !0,
2736
+ disabled: !1,
2737
+ readonly: !1
2738
+ },
2739
+ edit: {
2740
+ show: !0,
2741
+ disabled: !1,
2742
+ readonly: !1
2743
+ },
2744
+ expand: {
2745
+ show: !0,
2746
+ disabled: !1,
2747
+ readonly: !1
2748
+ }
2749
+ }
2563
2750
  },
2564
2751
  {
2565
- title: "工序",
2752
+ input: "select",
2753
+ label: "工序",
2754
+ width: 200,
2566
2755
  key: "operation_no",
2567
- width: 100,
2568
- ellipsis: { tooltip: !0 }
2756
+ source: "",
2757
+ sourceFn: "",
2758
+ params: {
2759
+ immediately: !1,
2760
+ placeholder: "工序",
2761
+ clearable: !0,
2762
+ options: []
2763
+ },
2764
+ form: {
2765
+ span: 24,
2766
+ show: !0,
2767
+ disabled: !1,
2768
+ readonly: !1,
2769
+ updateValue: "",
2770
+ display: "",
2771
+ readonlyFn: "",
2772
+ disabledFn: "",
2773
+ createButton: !1,
2774
+ showDays: !1,
2775
+ backfill: !1,
2776
+ rule: {
2777
+ required: !1,
2778
+ type: "string",
2779
+ message: "必填",
2780
+ trigger: "change",
2781
+ validator: ""
2782
+ },
2783
+ create: {
2784
+ show: !0,
2785
+ disabled: !1,
2786
+ readonly: !1
2787
+ },
2788
+ edit: {
2789
+ show: !0,
2790
+ disabled: !1,
2791
+ readonly: !1
2792
+ },
2793
+ expand: {
2794
+ show: !0,
2795
+ disabled: !1,
2796
+ readonly: !1
2797
+ }
2798
+ }
2569
2799
  },
2570
2800
  {
2571
- title: "用量",
2801
+ input: "number",
2802
+ label: "用量",
2572
2803
  key: "quantity",
2573
- width: 100
2804
+ source: "",
2805
+ sourceFn: "",
2806
+ params: {
2807
+ placeholder: "用量",
2808
+ clearable: !0,
2809
+ showButton: !1
2810
+ },
2811
+ form: {
2812
+ span: 24,
2813
+ show: !0,
2814
+ disabled: !1,
2815
+ readonly: !1,
2816
+ updateValue: "",
2817
+ display: "",
2818
+ readonlyFn: "",
2819
+ disabledFn: "",
2820
+ createButton: !1,
2821
+ showDays: !1,
2822
+ backfill: !1,
2823
+ rule: {
2824
+ required: !1,
2825
+ type: "number",
2826
+ message: "必填",
2827
+ trigger: "change",
2828
+ validator: ""
2829
+ },
2830
+ create: {
2831
+ show: !0,
2832
+ disabled: !1,
2833
+ readonly: !1
2834
+ },
2835
+ edit: {
2836
+ show: !0,
2837
+ disabled: !1,
2838
+ readonly: !1
2839
+ },
2840
+ expand: {
2841
+ show: !0,
2842
+ disabled: !1,
2843
+ readonly: !1
2844
+ }
2845
+ }
2574
2846
  },
2575
2847
  {
2576
- title: "损耗率",
2848
+ input: "input",
2849
+ label: "损耗率",
2577
2850
  key: "lossRate",
2578
- width: 100
2851
+ source: "",
2852
+ sourceFn: "",
2853
+ params: {
2854
+ placeholder: "损耗率",
2855
+ clearable: !0,
2856
+ type: "text"
2857
+ },
2858
+ form: {
2859
+ span: 24,
2860
+ show: !0,
2861
+ disabled: !1,
2862
+ readonly: !1,
2863
+ updateValue: "",
2864
+ display: "",
2865
+ readonlyFn: "",
2866
+ disabledFn: "",
2867
+ createButton: !1,
2868
+ showDays: !1,
2869
+ backfill: !1,
2870
+ rule: {
2871
+ required: !1,
2872
+ type: "string",
2873
+ message: "必填",
2874
+ trigger: "change",
2875
+ validator: ""
2876
+ },
2877
+ create: {
2878
+ show: !0,
2879
+ disabled: !1,
2880
+ readonly: !1
2881
+ },
2882
+ edit: {
2883
+ show: !0,
2884
+ disabled: !1,
2885
+ readonly: !1
2886
+ },
2887
+ expand: {
2888
+ show: !0,
2889
+ disabled: !1,
2890
+ readonly: !1
2891
+ }
2892
+ }
2579
2893
  },
2580
2894
  {
2581
- title: "含损耗用量",
2895
+ input: "number",
2896
+ label: "含损耗用量",
2582
2897
  key: "required_quantity",
2583
- width: 120,
2584
- render: (e) => Qr(Zr(e))
2898
+ source: "",
2899
+ sourceFn: "",
2900
+ params: {
2901
+ placeholder: "含损耗用量",
2902
+ clearable: !1,
2903
+ showButton: !1
2904
+ },
2905
+ form: {
2906
+ span: 24,
2907
+ show: !0,
2908
+ disabled: !1,
2909
+ readonly: !0,
2910
+ updateValue: "",
2911
+ display: "",
2912
+ readonlyFn: "",
2913
+ disabledFn: "",
2914
+ createButton: !1,
2915
+ showDays: !1,
2916
+ backfill: !1,
2917
+ rule: {
2918
+ required: !1,
2919
+ type: "number",
2920
+ message: "必填",
2921
+ trigger: "change",
2922
+ validator: ""
2923
+ },
2924
+ create: {
2925
+ show: !0,
2926
+ disabled: !1,
2927
+ readonly: !0
2928
+ },
2929
+ edit: {
2930
+ show: !0,
2931
+ disabled: !1,
2932
+ readonly: !0
2933
+ },
2934
+ expand: {
2935
+ show: !0,
2936
+ disabled: !1,
2937
+ readonly: !0
2938
+ }
2939
+ }
2585
2940
  },
2586
2941
  {
2587
- title: "备注",
2942
+ input: "input",
2943
+ width: 300,
2944
+ label: "备注",
2588
2945
  key: "remark",
2589
- width: 220,
2590
- ellipsis: { tooltip: !0 }
2946
+ source: "",
2947
+ sourceFn: "",
2948
+ params: {
2949
+ placeholder: "备注",
2950
+ clearable: !0,
2951
+ type: "text"
2952
+ },
2953
+ form: {
2954
+ span: 24,
2955
+ show: !0,
2956
+ disabled: !1,
2957
+ readonly: !1,
2958
+ updateValue: "",
2959
+ display: "",
2960
+ readonlyFn: "",
2961
+ disabledFn: "",
2962
+ createButton: !1,
2963
+ showDays: !1,
2964
+ backfill: !1,
2965
+ rule: {
2966
+ required: !1,
2967
+ type: "string",
2968
+ message: "必填",
2969
+ trigger: "change",
2970
+ validator: ""
2971
+ },
2972
+ create: {
2973
+ show: !0,
2974
+ disabled: !1,
2975
+ readonly: !1
2976
+ },
2977
+ edit: {
2978
+ show: !0,
2979
+ disabled: !1,
2980
+ readonly: !1
2981
+ },
2982
+ expand: {
2983
+ show: !0,
2984
+ disabled: !1,
2985
+ readonly: !1
2986
+ }
2987
+ }
2988
+ }
2989
+ ];
2990
+ await Promise.all([
2991
+ Z({ tableId: "product" }),
2992
+ Z({ tableId: "material" }),
2993
+ Z({ tableId: "operation" }),
2994
+ Z({ tableId: "unit" })
2995
+ ]).then(([e, t, n, r]) => {
2996
+ ni[1].params.options = ti(e, t), ni[2].params.options = ei(r), ni[3].params.options = $r(n);
2997
+ }).catch((e) => {
2998
+ U(e);
2999
+ });
3000
+ //#endregion
3001
+ //#region components/bom/quantity.ts
3002
+ var ri = (e) => {
3003
+ if (e == null || e === "") return null;
3004
+ if (typeof e == "string") {
3005
+ let t = Number.parseFloat(e);
3006
+ return Number.isFinite(t) ? t : null;
2591
3007
  }
2592
- ], ei = d({
3008
+ return Number.isFinite(e) ? e : null;
3009
+ }, ii = (e) => {
3010
+ let t = Number(e.quantity), n = ri(e.lossRate);
3011
+ return !Number.isFinite(t) || n === null || n < 0 ? null : Math.ceil(t * (1 + n / 100));
3012
+ }, ai = (e) => e.key ?? e.code, oi = (e, t, n) => {
3013
+ let r = e.findIndex((e) => ai(e) === t);
3014
+ return r >= 0 ? [
3015
+ ...e.slice(0, r + 1),
3016
+ {
3017
+ ...n,
3018
+ sort: r + 1
3019
+ },
3020
+ ...e.slice(r + 1)
3021
+ ] : e.map((e) => Array.isArray(e.children) ? {
3022
+ ...e,
3023
+ children: oi(e.children, t, n)
3024
+ } : e);
3025
+ }, si = [
3026
+ "var(--primary)",
3027
+ "var(--green)",
3028
+ "var(--yellow)",
3029
+ "var(--purple)"
3030
+ ], ci = d({
2593
3031
  name: "UzBom",
2594
3032
  components: { NDataTable: se },
2595
3033
  props: {
2596
- data: {
2597
- type: Array,
2598
- default: () => []
2599
- },
2600
- extendTable: {
3034
+ value: {
2601
3035
  type: Array,
2602
3036
  default: () => []
2603
3037
  },
@@ -2606,19 +3040,27 @@ var Yr = [
2606
3040
  default: void 0
2607
3041
  }
2608
3042
  },
2609
- setup(e, { expose: t }) {
2610
- let r = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), i = (e, t = 1, n) => e.map((e, a) => {
3043
+ emits: ["update:value"],
3044
+ setup(e, { emit: t }) {
3045
+ let r = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), i = (e, t = 1, n) => e.map((e, t) => ({
3046
+ row: e,
3047
+ index: t
3048
+ })).sort((e, t) => (Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, a) => {
2611
3049
  let o = r(e, a, n), s = e.children;
2612
3050
  return {
2613
3051
  ...e,
3052
+ key: ai(e),
2614
3053
  level: t,
2615
3054
  code: o,
3055
+ sort: a,
2616
3056
  ...Array.isArray(s) ? { children: i(s, t + 1, o) } : {}
2617
3057
  };
2618
- }), a = w(i(e.data)), o = w([]), s = !1, c = 1, l = (e) => e.code, u = (e, t = 1, n, i = /* @__PURE__ */ new Map()) => (e.forEach((e, a) => {
2619
- let o = e.code, s = r(e, a, n);
2620
- e.level !== t && (e.level = t), o !== s && (e.code = s, i.set(o, s)), Array.isArray(e.children) && u(e.children, t + 1, s, i);
2621
- }), i), d = (e) => {
3058
+ }), a = w(i(e.value)), o = w([]), s = !1, c = 1, l = ai, u = (e, t = 1, n) => {
3059
+ e.forEach((e, i) => {
3060
+ let a = e.code, o = r(e, i, n);
3061
+ e.level !== t && (e.level = t), a !== o && (e.code = o), Array.isArray(e.children) && u(e.children, t + 1, o);
3062
+ });
3063
+ }, d = (e) => {
2622
3064
  let t = [];
2623
3065
  return e.forEach((e) => {
2624
3066
  let n = e.children;
@@ -2626,22 +3068,29 @@ var Yr = [
2626
3068
  }), t;
2627
3069
  }, p = (e) => {
2628
3070
  o.value = e, s = !0;
2629
- }, m = (e = /* @__PURE__ */ new Map()) => {
2630
- let t = d(a.value);
3071
+ }, m = () => {
3072
+ let e = d(a.value);
2631
3073
  if (!s) {
2632
3074
  if (!a.value.length) return;
2633
- o.value = t, s = !0;
3075
+ o.value = e, s = !0;
2634
3076
  return;
2635
3077
  }
2636
- let n = new Set(t), r = o.value.map((t) => e.get(t) ?? t).filter((e) => n.has(e));
2637
- (r.length !== o.value.length || r.some((e, t) => e !== o.value[t])) && (o.value = r);
2638
- }, { run: h, flush: g, cancel: _ } = Jr(() => m(u(a.value)), 200), y = /* @__PURE__ */ new WeakMap(), b = (e) => {
3078
+ let t = new Set(e), n = o.value.filter((e) => t.has(e));
3079
+ (n.length !== o.value.length || n.some((e, t) => e !== o.value[t])) && (o.value = n);
3080
+ }, { run: h, flush: g, cancel: _ } = qr(() => {
3081
+ u(a.value), m();
3082
+ }, 200), y = /* @__PURE__ */ new WeakMap(), b = (e) => {
2639
3083
  let t = y.get(e);
2640
3084
  if (t) return t;
2641
- let n = new Proxy(e, { set(e, t, n) {
2642
- let r = Reflect.get(e, t) !== n, i = Reflect.set(e, t, n);
2643
- return r && t === "product_no" && h(), i;
2644
- } });
3085
+ let n = new Proxy(e, {
3086
+ get(e, t, n) {
3087
+ return t === "required_quantity" ? ii(e) : Reflect.get(e, t, n);
3088
+ },
3089
+ set(e, t, n) {
3090
+ let r = Reflect.get(e, t) !== n, i = Reflect.set(e, t, n);
3091
+ return r && t === "product_no" && h(), i;
3092
+ }
3093
+ });
2645
3094
  return y.set(e, n), n;
2646
3095
  }, x = () => {
2647
3096
  let e = /* @__PURE__ */ new Set(), t = (n) => {
@@ -2660,6 +3109,7 @@ var Yr = [
2660
3109
  key: n,
2661
3110
  level: 1,
2662
3111
  code: n,
3112
+ sort: 0,
2663
3113
  product_no: n,
2664
3114
  product_name: "新增零件",
2665
3115
  product_specifications: "待填写",
@@ -2670,16 +3120,18 @@ var Yr = [
2670
3120
  remark: "零件"
2671
3121
  };
2672
3122
  }, S = (e) => {
2673
- let t = i(e);
2674
- a.value = t;
2675
- }, C = (e) => {
3123
+ a.value = i(e), m(), t("update:value", a.value);
3124
+ }, { dragColumn: C, getSortableRowProps: T, tableRef: E, tableVersion: D } = Zr(a, S), O = (e) => {
2676
3125
  let t = l(e), n = !1, r = (e) => e.map((e) => {
2677
3126
  if (l(e) === t) {
2678
3127
  n = !0;
2679
3128
  let t = e.children, r = Array.isArray(t) ? t : [];
2680
3129
  return {
2681
3130
  ...e,
2682
- children: [...r, x()]
3131
+ children: [...r, {
3132
+ ...x(),
3133
+ sort: r.length
3134
+ }]
2683
3135
  };
2684
3136
  }
2685
3137
  let i = e.children;
@@ -2689,7 +3141,9 @@ var Yr = [
2689
3141
  } : e;
2690
3142
  });
2691
3143
  S(r(a.value)), n && !o.value.includes(t) && p([...o.value, t]);
2692
- }, T = (e) => {
3144
+ }, k = (e) => {
3145
+ S(oi(a.value, l(e), x()));
3146
+ }, A = (e) => {
2693
3147
  let t = l(e), n = (e) => e.reduce((e, r) => {
2694
3148
  if (l(r) === t) return e;
2695
3149
  let i = r.children;
@@ -2699,7 +3153,7 @@ var Yr = [
2699
3153
  } : r), e;
2700
3154
  }, []);
2701
3155
  S(n(a.value));
2702
- }, E = {
3156
+ }, ee = {
2703
3157
  title: () => f(fe, {
2704
3158
  trigger: "click",
2705
3159
  options: [{
@@ -2722,91 +3176,99 @@ var Yr = [
2722
3176
  fixed: "left",
2723
3177
  tree: !0,
2724
3178
  ellipsis: { tooltip: !0 }
2725
- }, D = {
3179
+ }, te = {
2726
3180
  title: "操作",
2727
3181
  key: "actions",
2728
- width: 140,
3182
+ width: 240,
2729
3183
  fixed: "right",
2730
3184
  align: "center",
2731
3185
  titleAlign: "center",
2732
3186
  className: "uz-bom-action-cell",
2733
- render: (e) => lr({
3187
+ render: (e) => cr({
2734
3188
  buttons: [{
2735
3189
  type: "normal",
2736
- key: "add",
3190
+ key: "add-child",
3191
+ color: "primary",
3192
+ buttonText: "新增下级",
3193
+ onClick: (e) => O(e)
3194
+ }, ...Number(e.level) === 1 ? [] : [{
3195
+ type: "normal",
3196
+ key: "add-sibling",
2737
3197
  color: "primary",
2738
- buttonText: "新增",
2739
- onClick: (e) => C(e)
3198
+ buttonText: "新增同级",
3199
+ onClick: (e) => k(e)
2740
3200
  }, {
2741
3201
  type: "normal",
2742
3202
  key: "delete",
2743
3203
  color: "error",
2744
3204
  buttonText: "删除",
2745
3205
  confirmText: "确认删除该物料及其所有下级吗?",
2746
- onClick: (e) => T(e)
2747
- }],
3206
+ onClick: (e) => A(e)
3207
+ }]],
2748
3208
  rowData: e,
2749
3209
  hProps: {
2750
3210
  size: "small",
2751
3211
  secondary: !0
2752
3212
  }
2753
3213
  })
2754
- }, O = n(() => e.extendTable.filter((e) => ![
2755
- "divider",
2756
- "group",
2757
- "subTable"
2758
- ].includes(e.input) && e.form.edit?.show !== !1).map((e) => ({
2759
- title: e.label,
2760
- key: e.key,
2761
- width: 160,
2762
- render: (t, n) => f(wr, {
2763
- item: e,
2764
- formValue: b(t),
2765
- status: 1,
2766
- itemIndex: n
2767
- })
2768
- }))), k = n(() => {
2769
- let [e, ...t] = $r;
3214
+ }, M = n(() => {
3215
+ let e = ni.map((e) => ({
3216
+ title: e.label,
3217
+ key: e.key,
3218
+ width: e.width ?? 120,
3219
+ render: (t, n) => f(Cr, {
3220
+ item: e,
3221
+ formValue: b(t),
3222
+ status: 1,
3223
+ itemIndex: n
3224
+ })
3225
+ }));
2770
3226
  return [
2771
- E,
2772
- e,
2773
- ...O.value,
2774
- ...t,
2775
- D
3227
+ C,
3228
+ ee,
3229
+ ...e,
3230
+ te
2776
3231
  ];
2777
- }), A = n(() => k.value.reduce((e, t) => {
3232
+ }), N = n(() => M.value.reduce((e, t) => {
2778
3233
  let n = "width" in t ? Number(t.width) : 0;
2779
3234
  return e + (Number.isFinite(n) ? n : 0);
2780
- }, 0)), ee = (e) => {
3235
+ }, 0)), P = (e) => {
2781
3236
  p(e);
2782
- }, te = (e) => {
3237
+ }, ne = (e) => {
2783
3238
  let t = Math.trunc(Number(e.level));
2784
3239
  if (!Number.isFinite(t) || t < 1) return null;
2785
3240
  let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
2786
3241
  return {
2787
- color: Yr[n - 1],
2788
- opacity: Math.min(.1 + r * .05, .4)
3242
+ color: si[n - 1],
3243
+ strength: `${Math.min(10 + r * 5, 40)}%`
2789
3244
  };
2790
3245
  };
2791
- return j(() => e.data, (e) => {
2792
- _(), s = !1, a.value = i(e);
2793
- }), j(a, () => m(), { immediate: !0 }), v(_), t({ getData: () => (g(), i(a.value)) }), {
3246
+ return j(() => e.value, (e) => {
3247
+ e !== a.value && (_(), a.value = i(e));
3248
+ }), j(a, () => m(), { immediate: !0 }), v(_), {
2794
3249
  innerData: a,
2795
- tableColumns: k,
2796
- scrollX: A,
3250
+ tableRef: E,
3251
+ tableVersion: D,
3252
+ tableColumns: M,
3253
+ scrollX: N,
2797
3254
  innerExpandedRowKeys: o,
2798
3255
  getRowKey: l,
2799
3256
  getRowProps: (e) => {
2800
- let t = te(e);
2801
- return t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-opacity: ${t.opacity}` } : {};
3257
+ let t = ne(e);
3258
+ return {
3259
+ ...T(e),
3260
+ ...t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-strength: ${t.strength}` } : {}
3261
+ };
2802
3262
  },
2803
- handleExpandedRowKeysChange: ee
3263
+ handleExpandedRowKeysChange: P
2804
3264
  };
2805
3265
  }
2806
- }), ti = { class: "uz-bom" };
2807
- function ni(e, t, n, r, i, o) {
2808
- let s = D("NDataTable");
2809
- return x(), a("div", ti, [l(s, {
3266
+ }), li = { class: "uz-bom" };
3267
+ function ui(e, t, n, i, o, s) {
3268
+ let l = D("NDataTable");
3269
+ return x(), a("div", li, [(x(), r(l, {
3270
+ key: e.tableVersion,
3271
+ ref: "tableRef",
2810
3272
  columns: e.tableColumns,
2811
3273
  data: e.innerData,
2812
3274
  "row-props": e.getRowProps,
@@ -2831,15 +3293,15 @@ function ni(e, t, n, r, i, o) {
2831
3293
  "max-height",
2832
3294
  "scroll-x",
2833
3295
  "onUpdate:expandedRowKeys"
2834
- ])]);
3296
+ ]))]);
2835
3297
  }
2836
- var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI * ii, oi = ai, si = 19, ci = 69, li = 52, ui = 8, di = 135, fi = 270, pi = 2 * Math.PI * li, mi = fi / 360 * pi, hi = 11, gi = `rotate(${di} 60 ${ci})`, _i = (e, t, n, r) => {
3298
+ var di = /*#__PURE__*/ Q(ci, [["render", ui]]), fi = 46, pi = 8, mi = 2 * Math.PI * fi, hi = pi, gi = 19, _i = 69, vi = 52, yi = 8, bi = 135, xi = 270, Si = 2 * Math.PI * vi, Ci = xi / 360 * Si, wi = 11, Ti = `rotate(${bi} 60 ${_i})`, Ei = (e, t, n, r) => {
2837
3299
  let i = r * Math.PI / 180;
2838
3300
  return {
2839
3301
  x: e + n * Math.cos(i),
2840
3302
  y: t + n * Math.sin(i)
2841
3303
  };
2842
- }, vi = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, yi = (e, t, n, r, i, a) => {
3304
+ }, Di = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, Oi = (e, t, n, r, i, a) => {
2843
3305
  if (a <= 0) return "";
2844
3306
  let o = n + r / 2, s = n - r / 2;
2845
3307
  if (a >= 359.999) {
@@ -2851,16 +3313,16 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
2851
3313
  `A ${s} ${s} 0 1 0 ${i}`
2852
3314
  ].join(" ");
2853
3315
  }
2854
- let c = i + a, l = _i(e, t, o, i), u = _i(e, t, o, c), d = _i(e, t, s, c), f = _i(e, t, s, i), p = r / 2, m = +(a > 180);
3316
+ let c = i + a, l = Ei(e, t, o, i), u = Ei(e, t, o, c), d = Ei(e, t, s, c), f = Ei(e, t, s, i), p = r / 2, m = +(a > 180);
2855
3317
  return [
2856
- `M ${vi(l)}`,
2857
- `A ${o} ${o} 0 ${m} 1 ${vi(u)}`,
2858
- `A ${p} ${p} 0 0 1 ${vi(d)}`,
2859
- `A ${s} ${s} 0 ${m} 0 ${vi(f)}`,
2860
- `A ${p} ${p} 0 0 1 ${vi(l)}`,
3318
+ `M ${Di(l)}`,
3319
+ `A ${o} ${o} 0 ${m} 1 ${Di(u)}`,
3320
+ `A ${p} ${p} 0 0 1 ${Di(d)}`,
3321
+ `A ${s} ${s} 0 ${m} 0 ${Di(f)}`,
3322
+ `A ${p} ${p} 0 0 1 ${Di(l)}`,
2861
3323
  "Z"
2862
3324
  ].join(" ");
2863
- }, bi = (e) => {
3325
+ }, ki = (e) => {
2864
3326
  if (!e) return "";
2865
3327
  let t = e.toLowerCase();
2866
3328
  if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
@@ -2874,9 +3336,9 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
2874
3336
  return e.join(",");
2875
3337
  }
2876
3338
  return "0,0,0";
2877
- }, xi = d({
3339
+ }, Ai = d({
2878
3340
  name: "UzCircle",
2879
- components: { UzNumberFlow: it },
3341
+ components: { UzNumberFlow: at },
2880
3342
  props: {
2881
3343
  circle: {
2882
3344
  required: !0,
@@ -2897,10 +3359,10 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
2897
3359
  }
2898
3360
  },
2899
3361
  setup(e) {
2900
- let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${bi(e.color).split(",").map((e) => {
3362
+ let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${ki(e.color).split(",").map((e) => {
2901
3363
  let t = Number(e) - 50;
2902
3364
  return t < 0 && (t = 0), t;
2903
- })},1)`), a = n(() => `rgba(${bi(e.color)},1)`), o = n(() => {
3365
+ })},1)`), a = n(() => `rgba(${ki(e.color)},1)`), o = n(() => {
2904
3366
  let t = Number(e.circle);
2905
3367
  return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
2906
3368
  }), s = w(o.value), c;
@@ -2919,62 +3381,62 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
2919
3381
  c !== void 0 && cancelAnimationFrame(c);
2920
3382
  });
2921
3383
  let l = n(() => {
2922
- let e = Q * (s.value / 100), t = Q - e;
3384
+ let e = mi * (s.value / 100), t = mi - e;
2923
3385
  if (e === 0) return {
2924
3386
  activeLength: 0,
2925
3387
  activeStart: 0,
2926
- remainingLength: Q,
3388
+ remainingLength: mi,
2927
3389
  remainingStart: 0
2928
3390
  };
2929
3391
  if (t === 0) return {
2930
- activeLength: Q,
3392
+ activeLength: mi,
2931
3393
  activeStart: 0,
2932
3394
  remainingLength: 0,
2933
3395
  remainingStart: 0
2934
3396
  };
2935
- let n = Math.min(1, Math.min(e, t) / si), r = oi + 3 * n, i = ai * n, a = e < si ? i : Q - (t < si ? i : t - r) - r * 2, o = Q - a - r * 2;
3397
+ let n = Math.min(1, Math.min(e, t) / gi), r = hi + 3 * n, i = pi * n, a = e < gi ? i : mi - (t < gi ? i : t - r) - r * 2, o = mi - a - r * 2;
2936
3398
  return {
2937
3399
  activeLength: a,
2938
3400
  activeStart: r / 2,
2939
3401
  remainingLength: o,
2940
3402
  remainingStart: r / 2 + a + r
2941
3403
  };
2942
- }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => yi(60, 60, ii, ai, -90 + p.value / Q * 360, f.value / Q * 360)), h = n(() => {
2943
- let e = mi * (s.value / 100), t = mi - e;
3404
+ }), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => Oi(60, 60, fi, pi, -90 + p.value / mi * 360, f.value / mi * 360)), h = n(() => {
3405
+ let e = Ci * (s.value / 100), t = Ci - e;
2944
3406
  if (e === 0) return {
2945
3407
  activeLength: 0,
2946
- remainingLength: mi,
3408
+ remainingLength: Ci,
2947
3409
  remainingStart: 0
2948
3410
  };
2949
3411
  if (t === 0) return {
2950
- activeLength: mi,
3412
+ activeLength: Ci,
2951
3413
  remainingLength: 0,
2952
3414
  remainingStart: 0
2953
3415
  };
2954
- let n = Math.min(hi, e, t);
3416
+ let n = Math.min(wi, e, t);
2955
3417
  return {
2956
3418
  activeLength: e - n / 2,
2957
3419
  remainingLength: t - n / 2,
2958
3420
  remainingStart: e + n / 2
2959
3421
  };
2960
- }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => yi(60, ci, li, ui, di + y.value / pi * 360, _.value / pi * 360));
3422
+ }), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => Oi(60, _i, vi, yi, bi + y.value / Si * 360, _.value / Si * 360));
2961
3423
  return {
2962
3424
  color: n(() => e.color),
2963
3425
  colorA: i,
2964
3426
  colorB: a,
2965
- fullRadius: ii,
2966
- fullStrokeWidth: ai,
2967
- fullCircumference: Q,
3427
+ fullRadius: fi,
3428
+ fullStrokeWidth: pi,
3429
+ fullCircumference: mi,
2968
3430
  fullActiveLength: u,
2969
3431
  fullActiveStart: d,
2970
3432
  fullRemainingLength: f,
2971
3433
  fullRemainingStart: p,
2972
3434
  fullRemainingPath: m,
2973
- gaugeCenterY: ci,
2974
- gaugeRadius: li,
2975
- gaugeStrokeWidth: ui,
2976
- gaugeCircumference: pi,
2977
- gaugeTransform: gi,
3435
+ gaugeCenterY: _i,
3436
+ gaugeRadius: vi,
3437
+ gaugeStrokeWidth: yi,
3438
+ gaugeCircumference: Si,
3439
+ gaugeTransform: Ti,
2978
3440
  gaugeActiveLength: g,
2979
3441
  gaugeRemainingLength: _,
2980
3442
  gaugeRemainingStart: y,
@@ -2983,31 +3445,31 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
2983
3445
  blurFilterId: r
2984
3446
  };
2985
3447
  }
2986
- }), Si = { class: "uz-circle" }, Ci = {
3448
+ }), ji = { class: "uz-circle" }, Mi = {
2987
3449
  key: 0,
2988
3450
  viewBox: "0 0 120 120",
2989
3451
  "aria-hidden": "true"
2990
- }, wi = ["id"], Ti = ["stop-color"], Ei = ["stop-color"], Di = ["id"], Oi = [
3452
+ }, Ni = ["id"], Pi = ["stop-color"], Fi = ["stop-color"], Ii = ["id"], Li = [
2991
3453
  "r",
2992
3454
  "stroke-width",
2993
3455
  "stroke-dasharray",
2994
3456
  "stroke-dashoffset",
2995
3457
  "filter",
2996
3458
  "stroke"
2997
- ], ki = [
3459
+ ], Ri = [
2998
3460
  "d",
2999
3461
  "fill",
3000
3462
  "filter"
3001
- ], Ai = {
3463
+ ], zi = {
3002
3464
  class: "uz-circle__unit",
3003
3465
  x: "60",
3004
3466
  y: "82",
3005
3467
  "text-anchor": "middle"
3006
- }, ji = {
3468
+ }, Bi = {
3007
3469
  key: 1,
3008
3470
  viewBox: "0 0 120 120",
3009
3471
  "aria-hidden": "true"
3010
- }, Mi = ["id"], Ni = ["stop-color"], Pi = ["stop-color"], Fi = ["id"], Ii = [
3472
+ }, Vi = ["id"], Hi = ["stop-color"], Ui = ["stop-color"], Wi = ["id"], Gi = [
3011
3473
  "cy",
3012
3474
  "r",
3013
3475
  "stroke-width",
@@ -3015,19 +3477,19 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
3015
3477
  "transform",
3016
3478
  "filter",
3017
3479
  "stroke"
3018
- ], Li = [
3480
+ ], Ki = [
3019
3481
  "d",
3020
3482
  "fill",
3021
3483
  "filter"
3022
- ], Ri = {
3484
+ ], qi = {
3023
3485
  class: "uz-circle__unit uz-circle__unit--gauge",
3024
3486
  x: "60",
3025
3487
  y: "90",
3026
3488
  "text-anchor": "middle"
3027
3489
  };
3028
- function zi(e, t, n, r, s, c) {
3490
+ function Ji(e, t, n, r, s, c) {
3029
3491
  let u = D("UzNumberFlow");
3030
- return x(), a("div", Si, [e.mode === 0 ? (x(), a("svg", Ci, [
3492
+ return x(), a("div", ji, [e.mode === 0 ? (x(), a("svg", Mi, [
3031
3493
  o("defs", null, [o("linearGradient", {
3032
3494
  id: `uz-progress-grad-${e.uniqueId}`,
3033
3495
  x1: "1",
@@ -3037,10 +3499,10 @@ function zi(e, t, n, r, s, c) {
3037
3499
  }, [o("stop", {
3038
3500
  offset: "0%",
3039
3501
  "stop-color": e.colorA
3040
- }, null, 8, Ti), o("stop", {
3502
+ }, null, 8, Pi), o("stop", {
3041
3503
  offset: "50%",
3042
3504
  "stop-color": e.colorB
3043
- }, null, 8, Ei)], 8, wi), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3505
+ }, null, 8, Fi)], 8, Ni), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
3044
3506
  o("feOffset", {
3045
3507
  result: "offOut",
3046
3508
  in: "SourceGraphic",
@@ -3057,7 +3519,7 @@ function zi(e, t, n, r, s, c) {
3057
3519
  in2: "blurOut",
3058
3520
  mode: "normal"
3059
3521
  }, null, -1)
3060
- ]], 8, Di)]),
3522
+ ]], 8, Ii)]),
3061
3523
  e.fullActiveLength > 0 ? (x(), a("circle", {
3062
3524
  key: 0,
3063
3525
  class: "uz-circle__progress",
@@ -3072,7 +3534,7 @@ function zi(e, t, n, r, s, c) {
3072
3534
  transform: "rotate(-90 60 60)",
3073
3535
  filter: `url(#${e.blurFilterId})`,
3074
3536
  stroke: `url(#uz-progress-grad-${e.uniqueId})`
3075
- }, null, 8, Oi)) : i("", !0),
3537
+ }, null, 8, Li)) : i("", !0),
3076
3538
  e.fullRemainingPath ? (x(), a("path", {
3077
3539
  key: 1,
3078
3540
  class: "uz-circle__progress",
@@ -3080,9 +3542,9 @@ function zi(e, t, n, r, s, c) {
3080
3542
  fill: e.color,
3081
3543
  "fill-opacity": "0.1",
3082
3544
  filter: `url(#${e.blurFilterId})`
3083
- }, null, 8, ki)) : i("", !0),
3084
- o("text", Ai, A(e.circleUnit), 1)
3085
- ])) : (x(), a("svg", ji, [
3545
+ }, null, 8, Ri)) : i("", !0),
3546
+ o("text", zi, A(e.circleUnit), 1)
3547
+ ])) : (x(), a("svg", Bi, [
3086
3548
  o("defs", null, [o("linearGradient", {
3087
3549
  id: `uz-progress-grad-1-${e.uniqueId}`,
3088
3550
  x1: "1",
@@ -3092,10 +3554,10 @@ function zi(e, t, n, r, s, c) {
3092
3554
  }, [o("stop", {
3093
3555
  offset: "0%",
3094
3556
  "stop-color": e.colorA
3095
- }, null, 8, Ni), o("stop", {
3557
+ }, null, 8, Hi), o("stop", {
3096
3558
  offset: "50%",
3097
3559
  "stop-color": e.colorB
3098
- }, null, 8, Pi)], 8, Mi), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
3560
+ }, null, 8, Ui)], 8, Vi), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
3099
3561
  o("feOffset", {
3100
3562
  result: "offOut",
3101
3563
  in: "SourceGraphic",
@@ -3112,7 +3574,7 @@ function zi(e, t, n, r, s, c) {
3112
3574
  in2: "blurOut",
3113
3575
  mode: "normal"
3114
3576
  }, null, -1)
3115
- ]], 8, Fi)]),
3577
+ ]], 8, Wi)]),
3116
3578
  e.gaugeActiveLength > 0 ? (x(), a("circle", {
3117
3579
  key: 0,
3118
3580
  class: "uz-circle__progress",
@@ -3126,7 +3588,7 @@ function zi(e, t, n, r, s, c) {
3126
3588
  transform: e.gaugeTransform,
3127
3589
  filter: `url(#${e.blurFilterId})`,
3128
3590
  stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
3129
- }, null, 8, Ii)) : i("", !0),
3591
+ }, null, 8, Gi)) : i("", !0),
3130
3592
  e.gaugeRemainingPath ? (x(), a("path", {
3131
3593
  key: 1,
3132
3594
  class: "uz-circle__progress",
@@ -3134,11 +3596,11 @@ function zi(e, t, n, r, s, c) {
3134
3596
  fill: e.color,
3135
3597
  "fill-opacity": "0.1",
3136
3598
  filter: `url(#${e.blurFilterId})`
3137
- }, null, 8, Li)) : i("", !0),
3138
- o("text", Ri, A(e.circleUnit), 1)
3599
+ }, null, 8, Ki)) : i("", !0),
3600
+ o("text", qi, A(e.circleUnit), 1)
3139
3601
  ])), 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)]);
3140
3602
  }
3141
- var Bi = /*#__PURE__*/ Z(xi, [["render", zi]]), Vi = d({
3603
+ var Yi = /*#__PURE__*/ Q(Ai, [["render", Ji]]), Xi = d({
3142
3604
  name: "UzCamera",
3143
3605
  components: {
3144
3606
  NButton: I,
@@ -3174,7 +3636,7 @@ var Bi = /*#__PURE__*/ Z(xi, [["render", zi]]), Vi = d({
3174
3636
  s.width = r, s.height = u, o.drawImage(n.value, 0, 0, r, u);
3175
3637
  let e = o.getImageData(0, 0, r, u);
3176
3638
  try {
3177
- let n = at(e.data, r, u);
3639
+ let n = ot(e.data, r, u);
3178
3640
  if (n) {
3179
3641
  let { location: e, data: r } = n;
3180
3642
  r && (c(e.topLeftCorner, e.topRightCorner), c(e.topRightCorner, e.bottomRightCorner), c(e.bottomRightCorner, e.bottomLeftCorner), c(e.bottomLeftCorner, e.topLeftCorner), t("on-update:value", r));
@@ -3230,11 +3692,11 @@ var Bi = /*#__PURE__*/ Z(xi, [["render", zi]]), Vi = d({
3230
3692
  closeAll: d
3231
3693
  };
3232
3694
  }
3233
- }), Hi = ["width", "height"], Ui = ["width", "height"], Wi = { class: "uz-scan-video" }, Gi = {
3695
+ }), Zi = ["width", "height"], Qi = ["width", "height"], $i = { class: "uz-scan-video" }, ea = {
3234
3696
  ref: "videoRef",
3235
3697
  playsInline: ""
3236
3698
  };
3237
- function Ki(t, n, s, l, u, d) {
3699
+ function ta(t, n, s, l, u, d) {
3238
3700
  let f = D("NButton"), p = D("NModal");
3239
3701
  return x(), a(e, null, [
3240
3702
  t.mode === "button" ? (x(), r(f, {
@@ -3266,7 +3728,7 @@ function Ki(t, n, s, l, u, d) {
3266
3728
  id: "uz-scan-canvas",
3267
3729
  width: t.width,
3268
3730
  height: t.height
3269
- }, null, 8, Hi)], 4)]),
3731
+ }, null, 8, Zi)], 4)]),
3270
3732
  _: 1
3271
3733
  }, 8, [
3272
3734
  "show",
@@ -3284,11 +3746,11 @@ function Ki(t, n, s, l, u, d) {
3284
3746
  id: "uz-scan-canvas",
3285
3747
  width: t.width,
3286
3748
  height: t.height
3287
- }, null, 8, Ui)], 4)) : i("", !0),
3288
- o("div", Wi, [o("video", Gi, null, 512)])
3749
+ }, null, 8, Qi)], 4)) : i("", !0),
3750
+ o("div", $i, [o("video", ea, null, 512)])
3289
3751
  ], 64);
3290
3752
  }
3291
- var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap(), Yi = d({
3753
+ var na = /*#__PURE__*/ Q(Xi, [["render", ta]]), ra = /* @__PURE__ */ new WeakMap(), ia = d({
3292
3754
  name: "UzSearchBar",
3293
3755
  components: {
3294
3756
  NIcon: B,
@@ -3299,7 +3761,7 @@ var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap
3299
3761
  NInputGroup: xe,
3300
3762
  NInputGroupLabel: Se,
3301
3763
  NPopover: De,
3302
- UzFormItem: wr
3764
+ UzFormItem: Cr
3303
3765
  },
3304
3766
  props: {
3305
3767
  data: {
@@ -3337,10 +3799,10 @@ var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap
3337
3799
  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);
3338
3800
  }
3339
3801
  });
3340
- n.observe(e), Ji.set(e, n);
3802
+ n.observe(e), ra.set(e, n);
3341
3803
  },
3342
3804
  unmounted: (e) => {
3343
- Ji.get(e)?.disconnect(), Ji.delete(e);
3805
+ ra.get(e)?.disconnect(), ra.delete(e);
3344
3806
  }
3345
3807
  } },
3346
3808
  emits: ["update:loading", "on-update:value"],
@@ -3455,24 +3917,24 @@ var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap
3455
3917
  tabButtonType: b
3456
3918
  };
3457
3919
  }
3458
- }), Xi = { class: "uz-flex uz-justify-between uz-gap-2" }, Zi = {
3920
+ }), aa = { class: "uz-flex uz-justify-between uz-gap-2" }, oa = {
3459
3921
  key: 0,
3460
3922
  class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
3461
- }, Qi = { key: 0 }, $i = { class: "uz-flex-1" }, ea = {
3923
+ }, sa = { key: 0 }, ca = { class: "uz-flex-1" }, la = {
3462
3924
  key: 1,
3463
3925
  class: "uz-flex uz-gap-2 uz-flex-1"
3464
- }, ta = {
3926
+ }, ua = {
3465
3927
  key: 0,
3466
3928
  class: "uz-search-fields-collapse"
3467
3929
  };
3468
- function na(n, s, u, d, f, p) {
3930
+ function da(n, s, u, d, f, p) {
3469
3931
  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");
3470
3932
  return x(), a("div", {
3471
3933
  class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
3472
3934
  onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
3473
- }, [o("div", Xi, [n.enableHeader ? (x(), a("div", Zi, [
3935
+ }, [o("div", aa, [n.enableHeader ? (x(), a("div", oa, [
3474
3936
  E(n.$slots, "header"),
3475
- n.tabList && n.tabList.length > 0 ? (x(), a("div", Qi, [l(h, null, {
3937
+ n.tabList && n.tabList.length > 0 ? (x(), a("div", sa, [l(h, null, {
3476
3938
  default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
3477
3939
  key: e.value,
3478
3940
  type: n.tabButtonType(e),
@@ -3484,7 +3946,7 @@ function na(n, s, u, d, f, p) {
3484
3946
  }, 1032, ["type", "onClick"]))), 128))]),
3485
3947
  _: 1
3486
3948
  })])) : i("", !0),
3487
- P((x(), a("div", $i, [l(C, {
3949
+ P((x(), a("div", ca, [l(C, {
3488
3950
  "x-gap": "8",
3489
3951
  "y-gap": "8",
3490
3952
  cols: n.cols,
@@ -3521,7 +3983,7 @@ function na(n, s, u, d, f, p) {
3521
3983
  }, 1032, ["span"]))), 128)) : i("", !0)]),
3522
3984
  _: 1
3523
3985
  }, 8, ["cols"])])), [[ee]])
3524
- ])) : i("", !0), n.enableHeader ? (x(), a("div", ea, [
3986
+ ])) : i("", !0), n.enableHeader ? (x(), a("div", la, [
3525
3987
  n.more ? (x(), r(m, {
3526
3988
  key: 0,
3527
3989
  secondary: "",
@@ -3571,7 +4033,7 @@ function na(n, s, u, d, f, p) {
3571
4033
  })) : i("", !0),
3572
4034
  E(n.$slots, "action")
3573
4035
  ])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
3574
- default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", ta, [l(C, {
4036
+ default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", ua, [l(C, {
3575
4037
  "x-gap": "8",
3576
4038
  "y-gap": "8",
3577
4039
  cols: 4
@@ -3606,7 +4068,7 @@ function na(n, s, u, d, f, p) {
3606
4068
  _: 1
3607
4069
  })], 32);
3608
4070
  }
3609
- var ra = /*#__PURE__*/ Z(Yi, [["render", na]]), ia = d({
4071
+ var fa = /*#__PURE__*/ Q(ia, [["render", da]]), pa = d({
3610
4072
  name: "UzSearchMobileBar",
3611
4073
  components: {
3612
4074
  NIcon: B,
@@ -3617,7 +4079,7 @@ var ra = /*#__PURE__*/ Z(Yi, [["render", na]]), ia = d({
3617
4079
  NGridItem: _e,
3618
4080
  NInputGroup: xe,
3619
4081
  NInputGroupLabel: Se,
3620
- UzFormItem: wr
4082
+ UzFormItem: Cr
3621
4083
  },
3622
4084
  props: {
3623
4085
  data: {
@@ -3695,10 +4157,10 @@ var ra = /*#__PURE__*/ Z(Yi, [["render", na]]), ia = d({
3695
4157
  clearAll: l
3696
4158
  };
3697
4159
  }
3698
- }), aa = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, oa = { class: "uz-flex uz-gap-2" }, sa = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
3699
- function ca(t, n, s, u, d, f) {
4160
+ }), ma = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, ha = { class: "uz-flex uz-gap-2" }, ga = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
4161
+ function _a(t, n, s, u, d, f) {
3700
4162
  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");
3701
- return x(), a(e, null, [o("div", aa, [E(t.$slots, "header"), o("div", oa, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
4163
+ return x(), a(e, null, [o("div", ma, [E(t.$slots, "header"), o("div", ha, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
3702
4164
  key: 0,
3703
4165
  secondary: "",
3704
4166
  onClick: n[0] ||= (e) => t.drawer = !0
@@ -3723,7 +4185,7 @@ function ca(t, n, s, u, d, f) {
3723
4185
  title: "查询",
3724
4186
  closable: ""
3725
4187
  }, {
3726
- footer: N(() => [o("div", sa, [l(h, {
4188
+ footer: N(() => [o("div", ga, [l(h, {
3727
4189
  secondary: "",
3728
4190
  loading: t.loading,
3729
4191
  onClick: t.clearAll,
@@ -3778,7 +4240,7 @@ function ca(t, n, s, u, d, f) {
3778
4240
  _: 1
3779
4241
  }, 8, ["show"])], 64);
3780
4242
  }
3781
- var la = /*#__PURE__*/ Z(ia, [["render", ca]]), ua = /(?<=\[)(.+?)(?=\])/g, da = {
4243
+ var va = /*#__PURE__*/ Q(pa, [["render", _a]]), ya = /(?<=\[)(.+?)(?=\])/g, ba = {
3782
4244
  index: 1,
3783
4245
  selection: 0,
3784
4246
  pagination: 1,
@@ -3796,10 +4258,10 @@ var la = /*#__PURE__*/ Z(ia, [["render", ca]]), ua = /(?<=\[)(.+?)(?=\])/g, da =
3796
4258
  placement: "right",
3797
4259
  summary: ""
3798
4260
  };
3799
- function fa(e) {
4261
+ function xa(e) {
3800
4262
  return Function("return " + e)();
3801
4263
  }
3802
- var pa = () => new Promise((e) => {
4264
+ var Sa = () => new Promise((e) => {
3803
4265
  let t = window.localStorage.getItem("city");
3804
4266
  if (t) e(JSON.parse(t));
3805
4267
  else {
@@ -3812,9 +4274,9 @@ var pa = () => new Promise((e) => {
3812
4274
  t && (clearInterval(i), e(JSON.parse(t)));
3813
4275
  }, 500);
3814
4276
  }
3815
- }), ma = async (e, t, n) => {
4277
+ }), Ca = async (e, t, n) => {
3816
4278
  if (t && typeof t == "string") {
3817
- let r = t.match(ua);
4279
+ let r = t.match(ya);
3818
4280
  if (r && t.indexOf("return") === -1) {
3819
4281
  let t = r[0].split(":");
3820
4282
  if (t[0] === "date") return (t) => Mt(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
@@ -3835,7 +4297,7 @@ var pa = () => new Promise((e) => {
3835
4297
  }
3836
4298
  }
3837
4299
  return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
3838
- }, ha = (e, t, n) => {
4300
+ }, wa = (e, t, n) => {
3839
4301
  let r = t.map((t) => {
3840
4302
  let r = [], i = t.id;
3841
4303
  return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
@@ -3848,35 +4310,35 @@ var pa = () => new Promise((e) => {
3848
4310
  };
3849
4311
  });
3850
4312
  return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
3851
- }, ga = /* @__PURE__ */ new Map();
3852
- function _a() {
3853
- ga.clear();
4313
+ }, Ta = /* @__PURE__ */ new Map();
4314
+ function Ea() {
4315
+ Ta.clear();
3854
4316
  }
3855
- async function va(e, t = !1) {
4317
+ async function Da(e, t = !1) {
3856
4318
  let n = e.split("."), r = !1;
3857
- return n.length > 1 && (ga.has(n[0]) && !t ? r = H(ga.get(n[0])) : (r = await Yn({ tableId: n[0] }), ga.set(n[0], r))), {
4319
+ return n.length > 1 && (Ta.has(n[0]) && !t ? r = H(Ta.get(n[0])) : (r = await Z({ tableId: n[0] }), Ta.set(n[0], r))), {
3858
4320
  sourceData: r,
3859
4321
  n
3860
4322
  };
3861
4323
  }
3862
- async function ya(e) {
4324
+ async function Oa(e) {
3863
4325
  return new Promise((t, n) => {
3864
4326
  let r = G(`dynamicTable_${e}`, !1);
3865
- r && ga.has(`dynamicTable_${e}`) ? t(r) : Jn(e, r ? r.createTime : null).then((n) => {
4327
+ r && Ta.has(`dynamicTable_${e}`) ? t(r) : Jn(e, r ? r.createTime : null).then((n) => {
3866
4328
  if (n) {
3867
4329
  let r = {
3868
4330
  createTime: n.createTime,
3869
4331
  tableTitle: n.tableTitle,
3870
4332
  viewJson: n.viewJson
3871
4333
  };
3872
- W(`dynamicTable_${e}`, r, 0), ga.set(`dynamicTable_${e}`, !0), Ot("tables_"), t(n);
3873
- } else ga.set(`dynamicTable_${e}`, !0), t(r);
4334
+ W(`dynamicTable_${e}`, r, 0), Ta.set(`dynamicTable_${e}`, !0), Ot("tables_"), t(n);
4335
+ } else Ta.set(`dynamicTable_${e}`, !0), t(r);
3874
4336
  }).catch(() => {
3875
4337
  n();
3876
4338
  });
3877
4339
  });
3878
4340
  }
3879
- var ba = (e) => e.map((e) => {
4341
+ var ka = (e) => e.map((e) => {
3880
4342
  let t = {};
3881
4343
  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)), {
3882
4344
  i: e.input,
@@ -3951,7 +4413,7 @@ var ba = (e) => e.map((e) => {
3951
4413
  p: { s: +!!e.form.expand.show }
3952
4414
  }
3953
4415
  };
3954
- }), xa = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
4416
+ }), Aa = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
3955
4417
  let t = {};
3956
4418
  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)), {
3957
4419
  input: e.i,
@@ -4026,12 +4488,12 @@ var ba = (e) => e.map((e) => {
4026
4488
  expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
4027
4489
  }
4028
4490
  };
4029
- }), Sa = (e) => ({
4491
+ }), ja = (e) => ({
4030
4492
  f: e.fetch,
4031
4493
  n: e.fetchFn,
4032
4494
  o: e.when_drawer_open,
4033
4495
  b: e.when_before_save
4034
- }), Ca = (e) => e ? e.fetch ? e : {
4496
+ }), Ma = (e) => e ? e.fetch ? e : {
4035
4497
  fetch: e.f,
4036
4498
  fetchFn: e.n,
4037
4499
  when_drawer_open: e.o,
@@ -4041,7 +4503,7 @@ var ba = (e) => e.map((e) => {
4041
4503
  fetchFn: "",
4042
4504
  when_drawer_open: "",
4043
4505
  when_before_save: ""
4044
- }, wa = (e) => ({
4506
+ }, Na = (e) => ({
4045
4507
  i: e.index,
4046
4508
  s: e.selection,
4047
4509
  p: e.pagination,
@@ -4057,7 +4519,7 @@ var ba = (e) => e.map((e) => {
4057
4519
  h: e.drawerHeight,
4058
4520
  l: e.placement,
4059
4521
  r: e.summary
4060
- }), Ta = (e) => {
4522
+ }), Pa = (e) => {
4061
4523
  let t = {};
4062
4524
  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 : {
4063
4525
  index: e.i,
@@ -4075,9 +4537,9 @@ var ba = (e) => e.map((e) => {
4075
4537
  drawerHeight: e.h,
4076
4538
  placement: e.l,
4077
4539
  summary: e.r
4078
- }), Object.assign({}, da, H(t));
4540
+ }), Object.assign({}, ba, H(t));
4079
4541
  };
4080
- function Ea(e, t, n, r) {
4542
+ function Fa(e, t, n, r) {
4081
4543
  return new Promise(async (i, a) => {
4082
4544
  let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
4083
4545
  for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
@@ -4112,21 +4574,21 @@ function Ea(e, t, n, r) {
4112
4574
  disabled: !0
4113
4575
  }];
4114
4576
  if (e.params.immediately || r) {
4115
- let { sourceData: t, n: r } = await va(e.source);
4577
+ let { sourceData: t, n: r } = await Da(e.source);
4116
4578
  if (t && Array.isArray(t)) {
4117
4579
  if (e.sourceFn) {
4118
4580
  let r = e.sourceFn;
4119
4581
  n = Function("sourceData", r)(t);
4120
- } else n = ha(e, t, r);
4582
+ } else n = wa(e, t, r);
4121
4583
  }
4122
4584
  } else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
4123
- let { sourceData: t, n } = await va(e.source);
4585
+ let { sourceData: t, n } = await Da(e.source);
4124
4586
  if (t && Array.isArray(t)) {
4125
4587
  if (e.sourceFn) {
4126
4588
  let n = e.sourceFn;
4127
4589
  return Function("sourceData", n)(t);
4128
4590
  }
4129
- return ha(e, t, n);
4591
+ return wa(e, t, n);
4130
4592
  }
4131
4593
  };
4132
4594
  if (e.params.options = n, e.form.backfill && t) {
@@ -4160,27 +4622,27 @@ function Ea(e, t, n, r) {
4160
4622
  U(e);
4161
4623
  }
4162
4624
  if (e.input === "cascader" && e.table.render === "[city]") {
4163
- let t = await pa();
4625
+ let t = await Sa();
4164
4626
  e.params.options = t;
4165
4627
  }
4166
4628
  if (e.input === "subTable" && e.params.link) {
4167
- let t = await ya(e.params.link).catch(() => {
4629
+ let t = await Oa(e.params.link).catch(() => {
4168
4630
  a();
4169
4631
  });
4170
4632
  if (t) try {
4171
4633
  let n = rt.parse(t.viewJson);
4172
- n.suffix && (e._suffix = _r(n.suffix));
4173
- let r = xa(n.table);
4634
+ n.suffix && (e._suffix = gr(n.suffix));
4635
+ let r = Aa(n.table);
4174
4636
  r.forEach((e) => {
4175
4637
  e.table.sorter = !1;
4176
4638
  });
4177
4639
  let i = r.filter((e) => e.input === "subTable");
4178
4640
  if (i) for await (let e of i) {
4179
- let t = await ya(e.params.link).catch(() => {
4641
+ let t = await Oa(e.params.link).catch(() => {
4180
4642
  a();
4181
4643
  });
4182
4644
  if (t) try {
4183
- let n = rt.parse(t.viewJson), r = xa(n.table);
4645
+ let n = rt.parse(t.viewJson), r = Aa(n.table);
4184
4646
  r.forEach((e) => {
4185
4647
  e.table.sorter = !1;
4186
4648
  }), e.params.columns = r, e.params.actions = n.action;
@@ -4214,7 +4676,7 @@ function Ea(e, t, n, r) {
4214
4676
  });
4215
4677
  });
4216
4678
  }
4217
- async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4679
+ async function Ia(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4218
4680
  let s = 0, c = [], l = [], u = {
4219
4681
  key: "",
4220
4682
  link: "",
@@ -4229,25 +4691,25 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4229
4691
  for await (let [e, s] of m.entries()) {
4230
4692
  if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
4231
4693
  if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
4232
- let { sourceData: t, n } = await va(s.source, a && e === 0);
4694
+ let { sourceData: t, n } = await Da(s.source, a && e === 0);
4233
4695
  if (t && Array.isArray(t)) {
4234
4696
  if (s.sourceFn) {
4235
4697
  let e = s.sourceFn, n = Function("sourceData", e);
4236
4698
  s.params.options = n(t);
4237
- } else s.params.options = ha(s, t, n);
4699
+ } else s.params.options = wa(s, t, n);
4238
4700
  }
4239
4701
  } else s.params.options = [{
4240
4702
  label: "加载中......",
4241
4703
  value: "loading",
4242
4704
  disabled: !0
4243
4705
  }], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
4244
- let { sourceData: e, n: t } = await va(s.source);
4706
+ let { sourceData: e, n: t } = await Da(s.source);
4245
4707
  if (e && Array.isArray(e)) {
4246
4708
  if (s.sourceFn) {
4247
4709
  let t = s.sourceFn;
4248
4710
  return Function("sourceData", t)(e);
4249
4711
  }
4250
- return ha(s, e, t);
4712
+ return wa(s, e, t);
4251
4713
  }
4252
4714
  };
4253
4715
  }
@@ -4255,7 +4717,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4255
4717
  let t = s.params.options.find((t) => t.value === e[s.key]);
4256
4718
  if (t) return t.label;
4257
4719
  }), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
4258
- return f(Ur, { value: e[s.key] }, { default: () => null });
4720
+ return f(Hr, { value: e[s.key] }, { default: () => null });
4259
4721
  });
4260
4722
  let p = {
4261
4723
  input: s.input,
@@ -4270,7 +4732,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4270
4732
  tooltip: !0,
4271
4733
  "line-clamp": s.table.clamp ?? 0
4272
4734
  } : !1,
4273
- render: s.table.render ? await ma(s.key, s.table.render, i) : void 0,
4735
+ render: s.table.render ? await Ca(s.key, s.table.render, i) : void 0,
4274
4736
  show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
4275
4737
  pin: !!s.table.fixed,
4276
4738
  fixTemp: s.table.fixed
@@ -4292,7 +4754,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4292
4754
  ...s.form.rule,
4293
4755
  index: t
4294
4756
  } : void 0
4295
- }, { default: () => f(wr, {
4757
+ }, { default: () => f(Cr, {
4296
4758
  item: s,
4297
4759
  formValue: e,
4298
4760
  status: n,
@@ -4305,34 +4767,34 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4305
4767
  if (s.search.title && (s.label = s.search.title), s.search.source) {
4306
4768
  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;
4307
4769
  else if (s.params.immediately || s.search.defaultValue) {
4308
- let { sourceData: e, n: t } = await va(s.search.source);
4770
+ let { sourceData: e, n: t } = await Da(s.search.source);
4309
4771
  if (e && Array.isArray(e)) {
4310
4772
  if (s.sourceFn) {
4311
4773
  let t = s.sourceFn, n = Function("sourceData", t);
4312
4774
  s.params.options = n(e);
4313
- } else s.params.options = ha(s, e, t);
4775
+ } else s.params.options = wa(s, e, t);
4314
4776
  }
4315
4777
  } else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
4316
- let { sourceData: e, n: t } = await va(s.search.source);
4778
+ let { sourceData: e, n: t } = await Da(s.search.source);
4317
4779
  if (e && Array.isArray(e)) {
4318
4780
  if (s.sourceFn) {
4319
4781
  let t = s.sourceFn;
4320
4782
  return Function("sourceData", t)(e);
4321
4783
  }
4322
- return ha(s, e, t);
4784
+ return wa(s, e, t);
4323
4785
  }
4324
4786
  };
4325
4787
  }
4326
- if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = fa(s.search.defaultValue))), s.search.show) {
4788
+ if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = xa(s.search.defaultValue))), s.search.show) {
4327
4789
  let e = H(s);
4328
4790
  e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
4329
- let { sourceData: t, n } = await va(e.source || e.search.source);
4791
+ let { sourceData: t, n } = await Da(e.source || e.search.source);
4330
4792
  if (t && Array.isArray(t)) {
4331
4793
  if (e.sourceFn) {
4332
4794
  let n = e.sourceFn;
4333
4795
  return Function("sourceData", n)(t);
4334
4796
  }
4335
- return ha(e, t, n);
4797
+ return wa(e, t, n);
4336
4798
  }
4337
4799
  }), c.push({
4338
4800
  input: e.input,
@@ -4386,7 +4848,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
4386
4848
  }
4387
4849
  //#endregion
4388
4850
  //#region components/spin/index.vue?vue&type=script&lang.ts
4389
- var Oa = d({
4851
+ var La = d({
4390
4852
  name: "UzSpin",
4391
4853
  components: {
4392
4854
  NButton: I,
@@ -4432,7 +4894,7 @@ var Oa = d({
4432
4894
  });
4433
4895
  //#endregion
4434
4896
  //#region components/spin/index.vue
4435
- function ka(e, t, n, i, a, s) {
4897
+ function Ra(e, t, n, i, a, s) {
4436
4898
  let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
4437
4899
  return x(), r(f, { show: e.value }, {
4438
4900
  description: N(() => [
@@ -4460,7 +4922,7 @@ function ka(e, t, n, i, a, s) {
4460
4922
  _: 3
4461
4923
  }, 8, ["show"]);
4462
4924
  }
4463
- var Aa = /*#__PURE__*/ Z(Oa, [["render", ka]]), ja = d({
4925
+ var za = /*#__PURE__*/ Q(La, [["render", Ra]]), Ba = d({
4464
4926
  name: "UzTableExpand",
4465
4927
  components: {
4466
4928
  NDataTable: se,
@@ -4486,8 +4948,8 @@ var Aa = /*#__PURE__*/ Z(Oa, [["render", ka]]), ja = d({
4486
4948
  } catch (e) {
4487
4949
  U(e);
4488
4950
  }
4489
- ya(e.data.link).then(async (e) => {
4490
- let { tableColumns: r } = await Da(xa(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4951
+ Oa(e.data.link).then(async (e) => {
4952
+ let { tableColumns: r } = await Ia(Aa(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
4491
4953
  ...e,
4492
4954
  sorter: !1,
4493
4955
  resizable: !1
@@ -4508,7 +4970,7 @@ var Aa = /*#__PURE__*/ Z(Oa, [["render", ka]]), ja = d({
4508
4970
  });
4509
4971
  //#endregion
4510
4972
  //#region components/table/components/expand.vue
4511
- function Ma(e, t, n, i, a, o) {
4973
+ function Va(e, t, n, i, a, o) {
4512
4974
  let s = D("NDataTable");
4513
4975
  return x(), r(s, {
4514
4976
  columns: e.columns,
@@ -4527,18 +4989,18 @@ function Ma(e, t, n, i, a, o) {
4527
4989
  "scroll-x"
4528
4990
  ]);
4529
4991
  }
4530
- var Na = /*#__PURE__*/ Z(ja, [["render", Ma]]), Pa = d({
4992
+ var Ha = /*#__PURE__*/ Q(Ba, [["render", Va]]), Ua = d({
4531
4993
  components: { NSkeleton: je },
4532
4994
  setup() {
4533
4995
  return {};
4534
4996
  }
4535
- }), Fa = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ia = { class: "uz-flex uz-justify-between" }, La = { class: "uz-flex uz-gap-1" };
4536
- function Ra(e, t, n, r, i, s) {
4997
+ }), Wa = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ga = { class: "uz-flex uz-justify-between" }, Ka = { class: "uz-flex uz-gap-1" };
4998
+ function qa(e, t, n, r, i, s) {
4537
4999
  let c = D("NSkeleton");
4538
- return x(), a("div", Fa, [o("div", Ia, [l(c, {
5000
+ return x(), a("div", Wa, [o("div", Ga, [l(c, {
4539
5001
  width: 120,
4540
5002
  size: "medium"
4541
- }), o("div", La, [
5003
+ }), o("div", Ka, [
4542
5004
  l(c, {
4543
5005
  width: 180,
4544
5006
  size: "medium"
@@ -4571,7 +5033,7 @@ function Ra(e, t, n, r, i, s) {
4571
5033
  }
4572
5034
  //#endregion
4573
5035
  //#region components/table/index.vue?vue&type=script&lang.ts
4574
- var za = d({
5036
+ var Ja = d({
4575
5037
  name: "UzTable",
4576
5038
  components: {
4577
5039
  NDataTable: se,
@@ -4581,9 +5043,9 @@ var za = d({
4581
5043
  NCheckbox: ie,
4582
5044
  NSpin: Ne,
4583
5045
  VueDraggable: nt,
4584
- UzSpin: Aa,
4585
- TableExpand: Na,
4586
- SkeletonLoading: /* @__PURE__ */ Z(Pa, [["render", Ra]])
5046
+ UzSpin: za,
5047
+ TableExpand: Ha,
5048
+ SkeletonLoading: /* @__PURE__ */ Q(Ua, [["render", qa]])
4587
5049
  },
4588
5050
  props: {
4589
5051
  id: {
@@ -4723,7 +5185,7 @@ var za = d({
4723
5185
  fetchFn: "",
4724
5186
  when_drawer_open: "",
4725
5187
  when_before_save: ""
4726
- }), L = w(Ta()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, n) => {
5188
+ }), L = w(Pa()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, n) => {
4727
5189
  t("update:rowKeys", {
4728
5190
  keys: e,
4729
5191
  rows: H(n)
@@ -4757,7 +5219,7 @@ var za = d({
4757
5219
  else if (F.value.fetchFn) {
4758
5220
  let e = F.value.fetchFn;
4759
5221
  r = Function("POST", "queryData", e)(X, { ...t });
4760
- } else r = Yn({
5222
+ } else r = Z({
4761
5223
  ...t,
4762
5224
  tableId: n
4763
5225
  });
@@ -4771,7 +5233,7 @@ var za = d({
4771
5233
  else if (F.value.fetchFn) {
4772
5234
  let e = F.value.fetchFn;
4773
5235
  r = Function("POST", "queryData", e)(X, { id: t.id });
4774
- } else r = Yn({
5236
+ } else r = Z({
4775
5237
  id: t.id,
4776
5238
  tableId: n
4777
5239
  });
@@ -4780,7 +5242,7 @@ var za = d({
4780
5242
  let r = e.id || o.params.id;
4781
5243
  e.enableLoading && (_.value = !0, t("update:loading", !0));
4782
5244
  let i = H(k.value);
4783
- n && delete i.orderby, F.value.fetch ? er([F.value.fetch], "", i).then((e) => {
5245
+ n && delete i.orderby, F.value.fetch ? $n([F.value.fetch], "", i).then((e) => {
4784
5246
  let n = jt(e);
4785
5247
  k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && W(`tables_${r}`, k.value);
4786
5248
  }).catch(() => {
@@ -4832,7 +5294,7 @@ var za = d({
4832
5294
  width: 180,
4833
5295
  render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => Mt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
4834
5296
  }], 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) => {
4835
- let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ea(N.value, e, () => m.value?.getFormValues());
5297
+ let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Fa(N.value, e, () => m.value?.getFormValues());
4836
5298
  return x.value = t, {
4837
5299
  form: t,
4838
5300
  fillingDefaultValue: n,
@@ -4921,7 +5383,7 @@ var za = d({
4921
5383
  ...n,
4922
5384
  tableId: a,
4923
5385
  sub_table_ids: r
4924
- }) : Zn({
5386
+ }) : Xn({
4925
5387
  ...n,
4926
5388
  tableId: a,
4927
5389
  sub_table_ids: r
@@ -4939,7 +5401,7 @@ var za = d({
4939
5401
  });
4940
5402
  };
4941
5403
  } else if (n.type !== "group" && n.action === "disabledInside") n.onClick = (t) => {
4942
- Xn({
5404
+ Yn({
4943
5405
  tableId: e.id || o.params.id,
4944
5406
  ...t,
4945
5407
  is_disabled: "1"
@@ -4948,7 +5410,7 @@ var za = d({
4948
5410
  }).catch(() => null);
4949
5411
  };
4950
5412
  else if (n.type !== "group" && n.action === "enabledInside") n.onClick = (t) => {
4951
- Xn({
5413
+ Yn({
4952
5414
  tableId: e.id || o.params.id,
4953
5415
  ...t,
4954
5416
  is_disabled: "0"
@@ -4961,35 +5423,28 @@ var za = d({
4961
5423
  n.onClick = (t) => {
4962
5424
  pe(t).then((t) => {
4963
5425
  let r = t && t[0];
4964
- er([n.action], r.id, r).then((t) => {
4965
- if (e && typeof e == "string") {
4966
- try {
4967
- Function("rowData", "res", e)(r, t).then((e) => {
4968
- c.success({
4969
- content: e,
4970
- duration: 3e3
4971
- }), z();
4972
- }).catch((e) => {
4973
- U(e);
4974
- });
4975
- } catch (e) {
4976
- U(e);
4977
- }
4978
- return;
4979
- }
4980
- if (e && typeof e == "function") {
4981
- e(r, t, () => {
5426
+ $n([n.action], r.id, r).then((t) => {
5427
+ if (e && typeof e == "string") try {
5428
+ Function("rowData", "res", e)(r, t).then((e) => {
4982
5429
  c.success({
4983
- content: () => s("Notice.success"),
5430
+ content: e,
4984
5431
  duration: 3e3
4985
5432
  }), z();
5433
+ }).catch((e) => {
5434
+ U(e);
4986
5435
  });
4987
- return;
5436
+ } catch (e) {
5437
+ U(e);
4988
5438
  }
4989
- c.success({
5439
+ else e && typeof e == "function" ? e(r, t, () => {
5440
+ c.success({
5441
+ content: () => s("Notice.success"),
5442
+ duration: 3e3
5443
+ }), z();
5444
+ }) : (c.success({
4990
5445
  content: () => s("Notice.success"),
4991
5446
  duration: 3e3
4992
- }), z();
5447
+ }), z());
4993
5448
  }).catch(() => {
4994
5449
  c.error({
4995
5450
  content: () => s("Notice.failed"),
@@ -5000,8 +5455,8 @@ var za = d({
5000
5455
  };
5001
5456
  }
5002
5457
  }, Ee = async () => {
5003
- ie.value = !1, _a();
5004
- let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Da(N.value, e.child, 0, () => ({}), oe);
5458
+ ie.value = !1, Ea();
5459
+ let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ia(N.value, e.child, 0, () => ({}), oe);
5005
5460
  !l.value && L.value.index && n.unshift({
5006
5461
  title: "#",
5007
5462
  key: "index",
@@ -5043,7 +5498,7 @@ var za = d({
5043
5498
  hide: !0,
5044
5499
  width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
5045
5500
  render(t) {
5046
- return lr({
5501
+ return cr({
5047
5502
  buttons: e,
5048
5503
  rowData: t,
5049
5504
  callback: z,
@@ -5057,7 +5512,7 @@ var za = d({
5057
5512
  if (c) {
5058
5513
  let e = G(`tables_filter_${c}`, !1);
5059
5514
  if (e) try {
5060
- let t = await Qn(c);
5515
+ let t = await Zn(c);
5061
5516
  t && (e = JSON.parse(t), u = Bt(n, e));
5062
5517
  } catch {}
5063
5518
  }
@@ -5070,7 +5525,7 @@ var za = d({
5070
5525
  filter: "default",
5071
5526
  filterOptionValue: null,
5072
5527
  renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: Be }, { default: () => s("Common.expand") }), f(I, { onClick: Ve }, { default: () => s("Common.contract") })]),
5073
- renderExpand: (e) => f(Na, {
5528
+ renderExpand: (e) => f(Ha, {
5074
5529
  data: a,
5075
5530
  value: e
5076
5531
  })
@@ -5083,7 +5538,6 @@ var za = d({
5083
5538
  if (e.height) {
5084
5539
  let t = De(e.height);
5085
5540
  ee.value = t, te.value = t;
5086
- return;
5087
5541
  }
5088
5542
  }, ke = (t) => {
5089
5543
  let n = e.id || o.params.id;
@@ -5091,12 +5545,12 @@ var za = d({
5091
5545
  let e = 0;
5092
5546
  C.value.forEach((t) => {
5093
5547
  t.show && (e += Number(t.width || 140));
5094
- }), D.value = e, W(`tables_filter_${n}`, t.filter((e) => e.key)), $n({
5548
+ }), D.value = e, W(`tables_filter_${n}`, t.filter((e) => e.key)), Qn({
5095
5549
  table_id: n,
5096
5550
  data: JSON.stringify(t)
5097
5551
  }).catch(() => null);
5098
5552
  }
5099
- }, { run: Ae } = Jr(ke), { run: je } = Jr((e, t) => {
5553
+ }, { run: Ae } = qr(ke), { run: je } = qr((e, t) => {
5100
5554
  let n = [];
5101
5555
  C.value.forEach((r) => {
5102
5556
  r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
@@ -5123,7 +5577,7 @@ var za = d({
5123
5577
  i = e.formFetch ? e.formFetch({
5124
5578
  tableId: a,
5125
5579
  ...t
5126
- }) : Xn({
5580
+ }) : Yn({
5127
5581
  tableId: a,
5128
5582
  ...t
5129
5583
  }), i.then(() => {
@@ -5137,13 +5591,13 @@ var za = d({
5137
5591
  fetchFn: "",
5138
5592
  when_drawer_open: "",
5139
5593
  when_before_save: ""
5140
- }, L.value = Ta();
5594
+ }, L.value = Pa();
5141
5595
  }, Fe = (t) => {
5142
5596
  let n = rt.parse(t.viewJson);
5143
- b.value = t.tableTitle, N.value = xa(n.table), P.value = _r(e.actions || n.action);
5144
- let r = _r(n.suffix || []);
5145
- ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value = Ca(n.trigger);
5146
- let i = Ta(e.options ?? n.option);
5597
+ b.value = t.tableTitle, N.value = Aa(n.table), P.value = gr(e.actions || n.action);
5598
+ let r = gr(n.suffix || []);
5599
+ ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value = Ma(n.trigger);
5600
+ let i = Pa(e.options ?? n.option);
5147
5601
  t.tableTitle && i.title && Nt(t.tableTitle), L.value = i;
5148
5602
  }, Ie = async () => {
5149
5603
  v.value = !1, Pe();
@@ -5161,7 +5615,7 @@ var za = d({
5161
5615
  re.value = s("Notice.network"), ie.value = !0;
5162
5616
  return;
5163
5617
  }
5164
- Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = Ta(e.options), await Ee()) : await ya(t).then(async (e) => {
5618
+ Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = Pa(e.options), await Ee()) : await Oa(t).then(async (e) => {
5165
5619
  Fe(e), await Ee();
5166
5620
  }).catch((e) => {
5167
5621
  re.value = e?.message || s("Notice.network"), ie.value = !0;
@@ -5187,14 +5641,11 @@ var za = d({
5187
5641
  } else if (e.type !== "group") {
5188
5642
  let t = H(e.onClick);
5189
5643
  e.onClick = async () => {
5190
- if (t && typeof t == "string") {
5191
- try {
5192
- let e = Function("rowData", "POST", "fnNotification", t);
5193
- await e(R.value, X, c, e), z();
5194
- } catch (e) {
5195
- U(e);
5196
- }
5197
- return;
5644
+ if (t && typeof t == "string") try {
5645
+ let e = Function("rowData", "POST", "fnNotification", t);
5646
+ await e(R.value, X, c, e), z();
5647
+ } catch (e) {
5648
+ U(e);
5198
5649
  }
5199
5650
  };
5200
5651
  }
@@ -5202,7 +5653,7 @@ var za = d({
5202
5653
  if (_.value) return;
5203
5654
  _.value = !0;
5204
5655
  let t = e.id || o.params.id;
5205
- t && (Dt(`tables_filter_${t}`), $n({
5656
+ t && (Dt(`tables_filter_${t}`), Qn({
5206
5657
  table_id: t,
5207
5658
  data: null
5208
5659
  }).catch(() => null).finally(() => {
@@ -5280,14 +5731,14 @@ var za = d({
5280
5731
  }
5281
5732
  };
5282
5733
  }
5283
- }), Ba = { class: "uz-com-title" }, Va = {
5734
+ }), Ya = { class: "uz-com-title" }, Xa = {
5284
5735
  ref: "mRef",
5285
5736
  class: "uz-table-m-content"
5286
- }, Ha = {
5737
+ }, Za = {
5287
5738
  key: 1,
5288
5739
  class: "uz-transform-fade-in"
5289
- }, Ua = { class: "uz-com-title" }, Wa = ["data-index"];
5290
- function Ga(t, n, u, d, f, p) {
5740
+ }, Qa = { class: "uz-com-title" }, $a = ["data-index"];
5741
+ function eo(t, n, u, d, f, p) {
5291
5742
  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");
5292
5743
  return x(), a("div", {
5293
5744
  class: "uz-table",
@@ -5352,7 +5803,7 @@ function Ga(t, n, u, d, f, p) {
5352
5803
  key: "0"
5353
5804
  } : {
5354
5805
  name: "header",
5355
- fn: N(() => [o("div", Ba, A(t.title), 1)]),
5806
+ fn: N(() => [o("div", Ya, A(t.title), 1)]),
5356
5807
  key: "1"
5357
5808
  }]), 1032, [
5358
5809
  "data",
@@ -5360,7 +5811,7 @@ function Ga(t, n, u, d, f, p) {
5360
5811
  "cache",
5361
5812
  "loading",
5362
5813
  "onOnUpdate:value"
5363
- ]), o("div", Va, [l(C, {
5814
+ ]), o("div", Xa, [l(C, {
5364
5815
  tableColumns: t.tableCols,
5365
5816
  tableData: t.tableData,
5366
5817
  tableQueries: t.tableQueries,
@@ -5378,7 +5829,7 @@ function Ga(t, n, u, d, f, p) {
5378
5829
  "minH",
5379
5830
  "maxH",
5380
5831
  "onUpdate:rowKeys"
5381
- ])], 512)], 2)) : (x(), a("div", Ha, [l(j, {
5832
+ ])], 512)], 2)) : (x(), a("div", Za, [l(j, {
5382
5833
  data: t.searchData,
5383
5834
  id: t.id || t.route.params.id,
5384
5835
  cache: t.tableOption.cache,
@@ -5433,7 +5884,7 @@ function Ga(t, n, u, d, f, p) {
5433
5884
  _: 1
5434
5885
  })]),
5435
5886
  _: 1
5436
- })], 8, Wa)), [[te, !e.hide]])), 128)), l(h, {
5887
+ })], 8, $a)), [[te, !e.hide]])), 128)), l(h, {
5437
5888
  block: "",
5438
5889
  tertiary: "",
5439
5890
  loading: t.loading,
@@ -5487,7 +5938,7 @@ function Ga(t, n, u, d, f, p) {
5487
5938
  key: "0"
5488
5939
  } : {
5489
5940
  name: "header",
5490
- fn: N(() => [o("div", Ua, A(t.title), 1)]),
5941
+ fn: N(() => [o("div", Qa, A(t.title), 1)]),
5491
5942
  key: "1"
5492
5943
  }]), 1032, [
5493
5944
  "data",
@@ -5548,7 +5999,7 @@ function Ga(t, n, u, d, f, p) {
5548
5999
  l(F, { ref: "drawerRef" }, null, 512)
5549
6000
  ], 4);
5550
6001
  }
5551
- var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
6002
+ var to = /*#__PURE__*/ Q(Ja, [["render", eo]]), no = d({
5552
6003
  name: "UzTableChild",
5553
6004
  components: {
5554
6005
  UzIcon: Jt,
@@ -5577,7 +6028,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5577
6028
  emits: ["update:value"],
5578
6029
  setup(e, { emit: t, expose: r }) {
5579
6030
  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) => {
5580
- let { formDefaultValue: r, fillingDefaultArray: i } = await Ea(H(n ?? e.item.params.columns), t, void 0, !0);
6031
+ let { formDefaultValue: r, fillingDefaultArray: i } = await Fa(H(n ?? e.item.params.columns), t, void 0, !0);
5581
6032
  return S.value = r, i;
5582
6033
  }, D = async (t) => {
5583
6034
  if (g.value) return;
@@ -5608,7 +6059,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5608
6059
  });
5609
6060
  }, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
5610
6061
  e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
5611
- let { tableColumns: r, tableWidth: i } = await Da(H(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
6062
+ let { tableColumns: r, tableWidth: i } = await Ia(H(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
5612
6063
  r.unshift({
5613
6064
  title: " ",
5614
6065
  key: "index",
@@ -5641,7 +6092,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5641
6092
  width: 60,
5642
6093
  render(t, n) {
5643
6094
  let r = [];
5644
- return e.item.params.childActions && e.item.params.actions && _r(e.item.params.actions).forEach((e) => {
6095
+ return e.item.params.childActions && e.item.params.actions && gr(e.item.params.actions).forEach((e) => {
5645
6096
  e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
5646
6097
  }), e.item.params.showDelete && e.status !== 2 && (b.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
5647
6098
  type: "normal",
@@ -5653,7 +6104,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5653
6104
  let n = e.item.params.deleteFn;
5654
6105
  n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
5655
6106
  }
5656
- }), lr({
6107
+ }), cr({
5657
6108
  buttons: r,
5658
6109
  rowData: t
5659
6110
  });
@@ -5712,17 +6163,13 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5712
6163
  m.value?.restoreValidation();
5713
6164
  }, N = () => (x.value = "", new Promise((t, n) => {
5714
6165
  let r = b.value.child.filter((e) => !e.delete).length;
5715
- if (e.item.form.rule.required && r === 0) {
5716
- x.value = e.item.form.rule.message, n();
5717
- return;
5718
- }
5719
- m.value?.validate((r) => {
6166
+ e.item.form.rule.required && r === 0 ? (x.value = e.item.form.rule.message, n()) : m.value?.validate((r) => {
5720
6167
  r ? (x.value = e.item.form.rule.message, n()) : t();
5721
6168
  });
5722
6169
  })), P = () => {
5723
6170
  if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
5724
6171
  let e = u.value.$el.querySelector(".n-data-table-tbody");
5725
- e && (d.value = ot.create(e, {
6172
+ e && (d.value = it.create(e, {
5726
6173
  handle: ".uz-drag-handle",
5727
6174
  onEnd: ({ oldIndex: e, newIndex: t }) => {
5728
6175
  d.value?.destroy(), d.value = null, _.value = !1;
@@ -5784,14 +6231,14 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
5784
6231
  }
5785
6232
  };
5786
6233
  }
5787
- }), Ja = { class: "uz-flex-1 uz-w-full" }, Ya = { class: "uz-flex uz-justify-between" }, Xa = { class: "uz-com-title" }, Za = {
6234
+ }), ro = { class: "uz-flex-1 uz-w-full" }, io = { class: "uz-flex uz-justify-between" }, ao = { class: "uz-com-title" }, oo = {
5788
6235
  key: 0,
5789
6236
  class: "uz-table-asterisk"
5790
- }, Qa = { class: "uz-flex uz-gap-2" }, $a = { class: "uz-flex uz-justify-end uz-gap-2" };
5791
- function eo(t, n, u, d, f, p) {
6237
+ }, so = { class: "uz-flex uz-gap-2" }, co = { class: "uz-flex uz-justify-end uz-gap-2" };
6238
+ function lo(t, n, u, d, f, p) {
5792
6239
  let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("NDataTable"), y = D("NForm");
5793
- return x(), a("div", Ja, [
5794
- o("div", Ya, [o("div", Xa, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", Za, " \xA0* ")) : i("", !0)]), o("div", Qa, [
6240
+ return x(), a("div", ro, [
6241
+ o("div", io, [o("div", ao, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", oo, " \xA0* ")) : i("", !0)]), o("div", so, [
5795
6242
  t.status === 2 ? i("", !0) : (x(!0), a(e, { key: 0 }, T(t.suffixes, (e) => (x(), r(_, {
5796
6243
  key: e.key,
5797
6244
  type: e.color,
@@ -5864,7 +6311,7 @@ function eo(t, n, u, d, f, p) {
5864
6311
  "scroll-x",
5865
6312
  "class",
5866
6313
  "row-class-name"
5867
- ])) : i("", !0), o("div", $a, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
6314
+ ])) : i("", !0), o("div", co, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
5868
6315
  key: 0,
5869
6316
  type: "success",
5870
6317
  secondary: "",
@@ -5893,7 +6340,7 @@ function eo(t, n, u, d, f, p) {
5893
6340
  }, 8, ["model"])
5894
6341
  ]);
5895
6342
  }
5896
- var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
6343
+ var uo = /*#__PURE__*/ Q(no, [["render", lo]]), fo = d({
5897
6344
  name: "UzTableQuestChild",
5898
6345
  components: { NDataTable: se },
5899
6346
  props: {
@@ -5921,7 +6368,7 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
5921
6368
  }), o.value = t, i.value = !1;
5922
6369
  }
5923
6370
  }, l = async (i) => {
5924
- let { tableColumns: c, tableWidth: l } = await Da(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
6371
+ let { tableColumns: c, tableWidth: l } = await Ia(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
5925
6372
  c.unshift({
5926
6373
  title: " ",
5927
6374
  key: "index",
@@ -5940,7 +6387,7 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
5940
6387
  hide: !0,
5941
6388
  width: 60,
5942
6389
  render(t) {
5943
- return lr({ buttons: [{
6390
+ return cr({ buttons: [{
5944
6391
  type: "normal",
5945
6392
  color: "primary",
5946
6393
  key: "detail",
@@ -5961,7 +6408,7 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
5961
6408
  }), M(async () => {
5962
6409
  try {
5963
6410
  if (e.formValue && e.formValue.id && e.item.params.searchKey) {
5964
- let t = await Yn({
6411
+ let t = await Z({
5965
6412
  tableId: e.item.params.link,
5966
6413
  params: [{
5967
6414
  key: e.item.params.searchKey,
@@ -5995,11 +6442,11 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
5995
6442
  tableScrollX: s
5996
6443
  };
5997
6444
  }
5998
- }), ro = { class: "uz-flex-1 uz-w-full" }, io = { class: "uz-flex uz-justify-between" }, ao = { class: "uz-com-title" };
5999
- function oo(e, t, n, r, i, s) {
6445
+ }), po = { class: "uz-flex-1 uz-w-full" }, mo = { class: "uz-flex uz-justify-between" }, ho = { class: "uz-com-title" };
6446
+ function go(e, t, n, r, i, s) {
6000
6447
  let c = D("NDataTable"), u = D("UzTableDrawer");
6001
- return x(), a("div", ro, [
6002
- o("div", io, [o("div", ao, A(e.item.label), 1)]),
6448
+ return x(), a("div", po, [
6449
+ o("div", mo, [o("div", ho, A(e.item.label), 1)]),
6003
6450
  t[0] ||= o("div", { class: "uz-br" }, null, -1),
6004
6451
  l(c, {
6005
6452
  columns: e.columns,
@@ -6021,7 +6468,7 @@ function oo(e, t, n, r, i, s) {
6021
6468
  l(u, { ref: "drawerRef" }, null, 512)
6022
6469
  ]);
6023
6470
  }
6024
- var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
6471
+ var _o = /*#__PURE__*/ Q(fo, [["render", go]]), vo = d({
6025
6472
  name: "UzTableDrawer",
6026
6473
  components: {
6027
6474
  NButton: I,
@@ -6093,11 +6540,11 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
6093
6540
  linkFn: t
6094
6541
  };
6095
6542
  let r = e.split(".")[0];
6096
- ya(r).then((e) => {
6543
+ Oa(r).then((e) => {
6097
6544
  h(async () => {
6098
6545
  let t = rt.parse(e.viewJson);
6099
- d.value = Ta(t.option), u.value = !0;
6100
- let { form: i } = await Ea(xa(t.table), n);
6546
+ d.value = Pa(t.option), u.value = !0;
6547
+ let { form: i } = await Fa(Aa(t.table), n);
6101
6548
  y.value = t.trigger, n && T(n);
6102
6549
  let a = G(`tables_cache_link_${r}`, !1);
6103
6550
  a && (c.value = a), h(() => {
@@ -6144,21 +6591,18 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
6144
6591
  _.value = 1, g.value = e.message;
6145
6592
  return;
6146
6593
  }
6147
- if (x.value) {
6148
- x.value(e, () => {
6149
- Dt(`tables_cache_${o.value}`), S();
6150
- }, (e) => {
6151
- _.value = 1, g.value = e;
6152
- });
6153
- return;
6154
- }
6155
- {
6594
+ if (x.value) x.value(e, () => {
6595
+ Dt(`tables_cache_${o.value}`), S();
6596
+ }, (e) => {
6597
+ _.value = 1, g.value = e;
6598
+ });
6599
+ else {
6156
6600
  let n = l.value.link.split(".")[0];
6157
- Xn({
6601
+ Yn({
6158
6602
  tableId: n,
6159
6603
  ...e
6160
6604
  }).then(() => {
6161
- _a(), Yn({ tableId: n }).then((e) => {
6605
+ Ea(), Z({ tableId: n }).then((e) => {
6162
6606
  let r = l.value.link.split("."), i;
6163
6607
  if (l.value.linkFn) {
6164
6608
  let t = l.value.linkFn;
@@ -6191,11 +6635,11 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
6191
6635
  }
6192
6636
  };
6193
6637
  }
6194
- }), lo = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, uo = {
6638
+ }), yo = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, bo = {
6195
6639
  key: 0,
6196
6640
  class: "uz-grid uz-grid-cols-2 uz-gap-2"
6197
- }, fo = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, po = { class: "uz-flex uz-gap-2" };
6198
- function mo(t, n, u, d, f, p) {
6641
+ }, xo = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, So = { class: "uz-flex uz-gap-2" };
6642
+ function Co(t, n, u, d, f, p) {
6199
6643
  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");
6200
6644
  return x(), a(e, null, [l(S, {
6201
6645
  show: t.drawer,
@@ -6221,7 +6665,7 @@ function mo(t, n, u, d, f, p) {
6221
6665
  message: t.spinMsg,
6222
6666
  status: t.spinStatus
6223
6667
  }, {
6224
- default: N(() => [o("div", lo, [t.skeletonShow ? (x(), a("div", uo, [
6668
+ default: N(() => [o("div", yo, [t.skeletonShow ? (x(), a("div", bo, [
6225
6669
  l(m, {
6226
6670
  size: "large",
6227
6671
  style: { height: "156px" }
@@ -6284,7 +6728,7 @@ function mo(t, n, u, d, f, p) {
6284
6728
  _: 2
6285
6729
  }, [t.formStatus === 2 ? void 0 : {
6286
6730
  name: "footer",
6287
- fn: N(() => [o("div", fo, [t.isMobile ? i("", !0) : (x(), r(v, {
6731
+ fn: N(() => [o("div", xo, [t.isMobile ? i("", !0) : (x(), r(v, {
6288
6732
  key: 0,
6289
6733
  loading: t.spinShow,
6290
6734
  type: "success",
@@ -6293,7 +6737,7 @@ function mo(t, n, u, d, f, p) {
6293
6737
  }, {
6294
6738
  default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
6295
6739
  _: 1
6296
- }, 8, ["loading"])), o("div", po, [
6740
+ }, 8, ["loading"])), o("div", So, [
6297
6741
  l(v, {
6298
6742
  loading: t.spinShow,
6299
6743
  class: "uz-drawer-button",
@@ -6361,7 +6805,7 @@ function mo(t, n, u, d, f, p) {
6361
6805
  _: 1
6362
6806
  }, 8, ["show"])], 64);
6363
6807
  }
6364
- var ho = /*#__PURE__*/ Z(co, [["render", mo]]), go = d({
6808
+ var wo = /*#__PURE__*/ Q(vo, [["render", Co]]), To = d({
6365
6809
  name: "UzTableMobileList",
6366
6810
  props: {
6367
6811
  tableData: {
@@ -6379,12 +6823,12 @@ var ho = /*#__PURE__*/ Z(co, [["render", mo]]), go = d({
6379
6823
  },
6380
6824
  emits: ["update:row-keys"],
6381
6825
  setup() {}
6382
- }), _o = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, vo = {
6826
+ }), Eo = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Do = {
6383
6827
  key: 1,
6384
6828
  class: "uz-table-mobile-group-txt"
6385
6829
  };
6386
- function yo(t, n, s, c, l, u) {
6387
- return x(), a("div", _o, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6830
+ function Oo(t, n, s, c, l, u) {
6831
+ return x(), a("div", Eo, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
6388
6832
  key: n.key,
6389
6833
  class: g(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
6390
6834
  style: _(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
@@ -6395,11 +6839,11 @@ function yo(t, n, s, c, l, u) {
6395
6839
  class: "mobile"
6396
6840
  })) : 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(() => {
6397
6841
  if (t.tableData) return n.render(t.tableData, t.tableIndex);
6398
- }), { key: 0 })) : (x(), a("div", vo, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6842
+ }), { key: 0 })) : (x(), a("div", Do, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
6399
6843
  }
6400
6844
  //#endregion
6401
6845
  //#region components/table/mobile.vue?vue&type=script&lang.ts
6402
- var bo = d({
6846
+ var ko = d({
6403
6847
  name: "UzTableMobile",
6404
6848
  components: {
6405
6849
  NCheckbox: ie,
@@ -6407,7 +6851,7 @@ var bo = d({
6407
6851
  NPagination: Te,
6408
6852
  NCheckboxGroup: ae,
6409
6853
  NRadioGroup: ke,
6410
- UzTableMobileList: /* @__PURE__ */ Z(go, [["render", yo], ["__scopeId", "data-v-84c394fe"]])
6854
+ UzTableMobileList: /* @__PURE__ */ Q(To, [["render", Oo], ["__scopeId", "data-v-84c394fe"]])
6411
6855
  },
6412
6856
  props: {
6413
6857
  tableData: {
@@ -6454,17 +6898,17 @@ var bo = d({
6454
6898
  }
6455
6899
  };
6456
6900
  }
6457
- }), xo = {
6901
+ }), Ao = {
6458
6902
  key: 0,
6459
6903
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6460
- }, So = {
6904
+ }, jo = {
6461
6905
  key: 0,
6462
6906
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6463
- }, Co = {
6907
+ }, Mo = {
6464
6908
  key: 0,
6465
6909
  class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
6466
6910
  };
6467
- function wo(t, n, o, s, c, u) {
6911
+ function No(t, n, o, s, c, u) {
6468
6912
  let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
6469
6913
  return t.selection === 2 ? (x(), r(m, {
6470
6914
  key: 0,
@@ -6491,7 +6935,7 @@ function wo(t, n, o, s, c, u) {
6491
6935
  "tableColumns"
6492
6936
  ])]),
6493
6937
  _: 2
6494
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", xo, [l(p, {
6938
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Ao, [l(p, {
6495
6939
  page: t.tableQueries.query.page,
6496
6940
  "onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6497
6941
  "item-count": t.tableQueries.query.itemCount,
@@ -6533,7 +6977,7 @@ function wo(t, n, o, s, c, u) {
6533
6977
  "tableColumns"
6534
6978
  ])]),
6535
6979
  _: 2
6536
- }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", So, [l(p, {
6980
+ }, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", jo, [l(p, {
6537
6981
  page: t.tableQueries.query.page,
6538
6982
  "onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6539
6983
  "item-count": t.tableQueries.query.itemCount,
@@ -6568,7 +7012,7 @@ function wo(t, n, o, s, c, u) {
6568
7012
  "tableData",
6569
7013
  "tableIndex",
6570
7014
  "tableColumns"
6571
- ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Co, [l(p, {
7015
+ ])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Mo, [l(p, {
6572
7016
  page: t.tableQueries.query.page,
6573
7017
  "onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
6574
7018
  "item-count": t.tableQueries.query.itemCount,
@@ -6581,7 +7025,7 @@ function wo(t, n, o, s, c, u) {
6581
7025
  "onUpdate:page"
6582
7026
  ])])) : i("", !0)], 4));
6583
7027
  }
6584
- var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]]), Eo = d({
7028
+ var Po = /*#__PURE__*/ Q(ko, [["render", No], ["__scopeId", "data-v-70b54e3b"]]), Fo = d({
6585
7029
  name: "UzTableFile",
6586
7030
  components: {
6587
7031
  UzIcon: Jt,
@@ -6653,7 +7097,7 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
6653
7097
  }), h = () => {
6654
7098
  s.value = !1;
6655
7099
  }, g = () => {
6656
- o.value || (o.value = !0, tr(r.params.id).then((t) => {
7100
+ o.value || (o.value = !0, er(r.params.id).then((t) => {
6657
7101
  let n = document.createElement("a");
6658
7102
  n.download = e.title ? `${e.title}-导入模板.xlsx` : "导入模板.xlsx", n.target = "_blank", n.style.display = "none", n.href = URL.createObjectURL(new Blob([t.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(n), n.click(), URL.revokeObjectURL(n.href), document.body.removeChild(n);
6659
7103
  }).catch(() => null).finally(() => {
@@ -6674,7 +7118,7 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
6674
7118
  o.value = !1, v();
6675
7119
  }));
6676
7120
  }, v = () => {
6677
- o.value || (o.value = !0, nr(r.params.id).then((e) => {
7121
+ o.value || (o.value = !0, tr(r.params.id).then((e) => {
6678
7122
  p.value = e;
6679
7123
  }).catch(() => null).finally(() => {
6680
7124
  o.value = !1;
@@ -6689,32 +7133,25 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
6689
7133
  rawFileName: c,
6690
7134
  dropOption: u,
6691
7135
  dropSelect: (t) => {
6692
- if (t === "import") {
6693
- a.value = !0, v();
6694
- return;
6695
- }
6696
- if (t === "export") {
6697
- Et.info({
6698
- title: "提示",
6699
- content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
6700
- positiveText: "确定",
6701
- negativeText: "取消",
6702
- draggable: !0,
6703
- onPositiveClick: () => {
6704
- let t = e.query ?? {};
6705
- rr({
6706
- tableKey: r.params.id,
6707
- ...t
6708
- }).then(() => {
6709
- i.success({
6710
- content: "导出中...稍后请在文件中心查看",
6711
- duration: 3e3
6712
- });
6713
- }).catch(() => null);
6714
- }
6715
- });
6716
- return;
6717
- }
7136
+ t === "import" ? (a.value = !0, v()) : t === "export" && Et.info({
7137
+ title: "提示",
7138
+ content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
7139
+ positiveText: "确定",
7140
+ negativeText: "取消",
7141
+ draggable: !0,
7142
+ onPositiveClick: () => {
7143
+ let t = e.query ?? {};
7144
+ nr({
7145
+ tableKey: r.params.id,
7146
+ ...t
7147
+ }).then(() => {
7148
+ i.success({
7149
+ content: "导出中...稍后请在文件中心查看",
7150
+ duration: 3e3
7151
+ });
7152
+ }).catch(() => null);
7153
+ }
7154
+ });
6718
7155
  },
6719
7156
  beforeUpload: m,
6720
7157
  clearFile: h,
@@ -6726,11 +7163,11 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
6726
7163
  }
6727
7164
  };
6728
7165
  }
6729
- }), Do = { class: "uz-file-port-modal" }, Oo = {
7166
+ }), Io = { class: "uz-file-port-modal" }, Lo = {
6730
7167
  key: 1,
6731
7168
  class: "uz-file-port-panel"
6732
- }, ko = { class: "uz-flex uz-justify-between" };
6733
- function Ao(t, n, i, s, u, d) {
7169
+ }, Ro = { class: "uz-flex uz-justify-between" };
7170
+ function zo(t, n, i, s, u, d) {
6734
7171
  let f = D("UzIcon"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
6735
7172
  return x(), a(e, null, [l(h, {
6736
7173
  trigger: "hover",
@@ -6765,8 +7202,8 @@ function Ao(t, n, i, s, u, d) {
6765
7202
  default: N(() => [...n[1] ||= [c(" 下载模板 ", -1)]]),
6766
7203
  _: 1
6767
7204
  }, 8, ["onClick"])]),
6768
- default: N(() => [o("div", Do, [
6769
- t.rawFile ? (x(), a("div", Oo, [
7205
+ default: N(() => [o("div", Io, [
7206
+ t.rawFile ? (x(), a("div", Lo, [
6770
7207
  n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
6771
7208
  xmlns: "http://www.w3.org/2000/svg",
6772
7209
  viewBox: "0 0 24 24",
@@ -6814,7 +7251,7 @@ function Ao(t, n, i, s, u, d) {
6814
7251
  }, [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)]]),
6815
7252
  _: 1
6816
7253
  }, 8, ["on-before-upload"])),
6817
- o("div", ko, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
7254
+ o("div", Ro, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
6818
7255
  onClick: t.init,
6819
7256
  loading: t.loading,
6820
7257
  secondary: ""
@@ -6837,7 +7274,7 @@ function Ao(t, n, i, s, u, d) {
6837
7274
  _: 1
6838
7275
  }, 8, ["show", "on-after-leave"])], 64);
6839
7276
  }
6840
- var jo = /*#__PURE__*/ Z(Eo, [["render", Ao], ["__scopeId", "data-v-a491799c"]]), $ = C({
7277
+ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-a491799c"]]), $ = C({
6841
7278
  page: {
6842
7279
  label: "首页",
6843
7280
  key: "/",
@@ -6848,7 +7285,7 @@ var jo = /*#__PURE__*/ Z(Eo, [["render", Ao], ["__scopeId", "data-v-a491799c"]])
6848
7285
  active: "/",
6849
7286
  thumbnail: []
6850
7287
  });
6851
- function Mo(e) {
7288
+ function Vo(e) {
6852
7289
  $.cache = e.cache, $.page = {
6853
7290
  label: e.label,
6854
7291
  key: e.key,
@@ -6863,14 +7300,14 @@ function Mo(e) {
6863
7300
  closable: !1
6864
7301
  }];
6865
7302
  }
6866
- function No(e) {
7303
+ function Ho(e) {
6867
7304
  $.active = e, J.push(e), W($.cache, $, 0);
6868
7305
  }
6869
- function Po(e, t) {
7306
+ function Uo(e, t) {
6870
7307
  let n = $.thumbnail.find((t) => t.key === e);
6871
7308
  n && (n.key = t, $.active = t, W($.cache, $, 0));
6872
7309
  }
6873
- function Fo(e) {
7310
+ function Wo(e) {
6874
7311
  let t = $.thumbnail.find((t) => t.path === e.key);
6875
7312
  t ? ($.active = t.key, W($.cache, $, 0), J.push(t.key)) : ($.active = e.key, $.thumbnail.push({
6876
7313
  ...e,
@@ -6878,7 +7315,7 @@ function Fo(e) {
6878
7315
  closable: !0
6879
7316
  }), J.push(e.key));
6880
7317
  }
6881
- function Io(e) {
7318
+ function Go(e) {
6882
7319
  let t = $.thumbnail.findIndex((t) => t.key === e);
6883
7320
  if ($.thumbnail.splice(t, 1), $.active === e) {
6884
7321
  let e = $.thumbnail[t - 1]?.key || "";
@@ -6886,12 +7323,12 @@ function Io(e) {
6886
7323
  }
6887
7324
  W($.cache, $, 0);
6888
7325
  }
6889
- function Lo() {
7326
+ function Ko() {
6890
7327
  $.active = $.page.path, $.thumbnail = [$.page], J.push($.page.path), W($.cache, $, 0);
6891
7328
  }
6892
7329
  //#endregion
6893
7330
  //#region components/thumbnail/index.vue?vue&type=script&lang.ts
6894
- var Ro = d({
7331
+ var qo = d({
6895
7332
  name: "UzThumbnail",
6896
7333
  components: {
6897
7334
  NTabs: Ie,
@@ -6912,29 +7349,29 @@ var Ro = d({
6912
7349
  setup(e, { slots: t }) {
6913
7350
  let n = w(!!t.prefix), r = Xe();
6914
7351
  return y(() => {
6915
- Mo(e.option), $.active !== r.path && Po(r.path, r.fullPath);
7352
+ Vo(e.option), $.active !== r.path && Uo(r.path, r.fullPath);
6916
7353
  }), j(() => r, (e) => {
6917
- $.active === r.path && Po(e.path, e.fullPath);
7354
+ $.active === r.path && Uo(e.path, e.fullPath);
6918
7355
  }, { deep: !0 }), j(() => e.option, (e) => {
6919
- Mo(e);
7356
+ Vo(e);
6920
7357
  }, { deep: !0 }), {
6921
7358
  thumbnailStore: $,
6922
7359
  isSlotPrefix: n,
6923
7360
  handleClose: (e) => {
6924
- Io(e);
7361
+ Go(e);
6925
7362
  },
6926
7363
  handleChange: (e) => {
6927
- No(e);
7364
+ Ho(e);
6928
7365
  },
6929
7366
  handleClear: () => {
6930
- Lo();
7367
+ Ko();
6931
7368
  }
6932
7369
  };
6933
7370
  }
6934
7371
  });
6935
7372
  //#endregion
6936
7373
  //#region components/thumbnail/index.vue
6937
- function zo(t, n, i, o, u, d) {
7374
+ function Jo(t, n, i, o, u, d) {
6938
7375
  let f = D("NTabPane"), p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
6939
7376
  return x(), r(v, {
6940
7377
  value: t.thumbnailStore.active,
@@ -6983,33 +7420,33 @@ function zo(t, n, i, o, u, d) {
6983
7420
  "on-update:value"
6984
7421
  ]);
6985
7422
  }
6986
- var Bo = /*#__PURE__*/ Z(Ro, [["render", zo]]), Vo = "#007AFF", Ho = "#0A84FF", Uo = "#FF9500", Wo = "#FF9F0A", Go = "#28CD41", Ko = "#32D74B", qo = "#FFCC00", Jo = "#FFD60A", Yo = "#FF3B30", Xo = "#FF453A";
6987
- V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Ho, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Wo, V.common.successColor = "#32D74B", V.common.successColorHover = Ko, V.common.warningColor = "#FFD60A", V.common.successColorHover = Jo, V.common.errorColor = "#FF453A", V.common.errorColorHover = Xo, 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";
6988
- var Zo = {
7423
+ var Yo = /*#__PURE__*/ Q(qo, [["render", Jo]]), Xo = "#007AFF", Zo = "#0A84FF", Qo = "#FF9500", $o = "#FF9F0A", es = "#28CD41", ts = "#32D74B", ns = "#FFCC00", rs = "#FFD60A", is = "#FF3B30", as = "#FF453A";
7424
+ V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Zo, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = $o, V.common.successColor = "#32D74B", V.common.successColorHover = ts, V.common.warningColor = "#FFD60A", V.common.successColorHover = rs, V.common.errorColor = "#FF453A", V.common.errorColorHover = as, 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";
7425
+ var os = {
6989
7426
  common: {
6990
7427
  inputColor: "rgba(var(--input))",
6991
7428
  borderColor: "rgba(var(--border), 0.7)",
6992
7429
  borderRadius: "var(--borderRadius)",
6993
- primaryColor: Vo,
6994
- primaryColorHover: Ho,
6995
- primaryColorPressed: Vo,
6996
- primaryColorSuppl: Vo,
6997
- infoColor: Uo,
6998
- infoColorHover: Wo,
6999
- infoColorPressed: Uo,
7000
- infoColorSuppl: Uo,
7001
- successColor: Go,
7002
- successColorHover: Ko,
7003
- successColorPressed: Go,
7004
- successColorSuppl: Go,
7005
- warningColor: qo,
7006
- warningColorHover: Jo,
7007
- warningColorPressed: qo,
7008
- warningColorSuppl: qo,
7009
- errorColor: Yo,
7010
- errorColorHover: Xo,
7011
- errorColorPressed: Yo,
7012
- errorColorSuppl: Yo,
7430
+ primaryColor: Xo,
7431
+ primaryColorHover: Zo,
7432
+ primaryColorPressed: Xo,
7433
+ primaryColorSuppl: Xo,
7434
+ infoColor: Qo,
7435
+ infoColorHover: $o,
7436
+ infoColorPressed: Qo,
7437
+ infoColorSuppl: Qo,
7438
+ successColor: es,
7439
+ successColorHover: ts,
7440
+ successColorPressed: es,
7441
+ successColorSuppl: es,
7442
+ warningColor: ns,
7443
+ warningColorHover: rs,
7444
+ warningColorPressed: ns,
7445
+ warningColorSuppl: ns,
7446
+ errorColor: is,
7447
+ errorColorHover: as,
7448
+ errorColorPressed: is,
7449
+ errorColorSuppl: is,
7013
7450
  cardColor: "#fff"
7014
7451
  },
7015
7452
  Button: { textColor: "rgb(var(--font))" },
@@ -7023,7 +7460,7 @@ var Zo = {
7023
7460
  borderRadius: "8px",
7024
7461
  color: "#c0c0c0"
7025
7462
  }
7026
- }, Qo = V, $o = d({
7463
+ }, ss = V, cs = d({
7027
7464
  name: "UzWrap",
7028
7465
  components: { NConfigProvider: oe },
7029
7466
  setup() {
@@ -7031,14 +7468,14 @@ var Zo = {
7031
7468
  zhCN: We,
7032
7469
  dateZhCN: He,
7033
7470
  commonStore: q,
7034
- lightTheme: Zo,
7035
- darkTheme: Qo
7471
+ lightTheme: os,
7472
+ darkTheme: ss
7036
7473
  };
7037
7474
  }
7038
7475
  });
7039
7476
  //#endregion
7040
7477
  //#region components/wrap/index.vue
7041
- function es(e, t, n, i, a, o) {
7478
+ function ls(e, t, n, i, a, o) {
7042
7479
  let s = D("NConfigProvider");
7043
7480
  return x(), r(s, {
7044
7481
  theme: e.commonStore.theme ? { name: "darkTheme" } : null,
@@ -7057,10 +7494,10 @@ function es(e, t, n, i, a, o) {
7057
7494
  "date-locale"
7058
7495
  ]);
7059
7496
  }
7060
- var ts = /*#__PURE__*/ Z($o, [["render", es]]);
7497
+ var us = /*#__PURE__*/ Q(cs, [["render", ls]]);
7061
7498
  //#endregion
7062
7499
  //#region components/ocr/preprocess.ts
7063
- function ns(e) {
7500
+ function ds(e) {
7064
7501
  let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
7065
7502
  for (let r = 0; r < n; r++) t[e[r]]++;
7066
7503
  let r = 0;
@@ -7075,7 +7512,7 @@ function ns(e) {
7075
7512
  }
7076
7513
  return c;
7077
7514
  }
7078
- function rs(e, t) {
7515
+ function fs(e, t) {
7079
7516
  return new Promise((n, r) => {
7080
7517
  let i = new Image();
7081
7518
  i.crossOrigin = "anonymous", i.onload = () => {
@@ -7108,7 +7545,7 @@ function rs(e, t) {
7108
7545
  }
7109
7546
  let u = t.threshold;
7110
7547
  if (t.binarize) {
7111
- t.autoThreshold && (u = ns(l));
7548
+ t.autoThreshold && (u = ds(l));
7112
7549
  for (let e = 0, t = 0; e < s.length; e += 4, t++) {
7113
7550
  let n = l[t] < u ? 0 : 255;
7114
7551
  s[e] = n, s[e + 1] = n, s[e + 2] = n;
@@ -7131,7 +7568,7 @@ function rs(e, t) {
7131
7568
  }
7132
7569
  //#endregion
7133
7570
  //#region components/ocr/index.vue?vue&type=script&lang.ts
7134
- var is = d({
7571
+ var ps = d({
7135
7572
  name: "UzOcr",
7136
7573
  components: {
7137
7574
  NButton: I,
@@ -7168,7 +7605,7 @@ var is = d({
7168
7605
  tessedit_char_blacklist: "|"
7169
7606
  }), a.value), v = async () => {
7170
7607
  if (f.value) try {
7171
- let e = await rs(f.value, {
7608
+ let e = await fs(f.value, {
7172
7609
  enabled: o.value,
7173
7610
  scale: s.value,
7174
7611
  grayscale: !0,
@@ -7205,7 +7642,7 @@ var is = d({
7205
7642
  t.value = !0, r.value = e("OCR.analysis");
7206
7643
  let a = n;
7207
7644
  if (o.value || s.value > 1) try {
7208
- let e = await rs(n, {
7645
+ let e = await fs(n, {
7209
7646
  enabled: o.value,
7210
7647
  scale: s.value,
7211
7648
  grayscale: !0,
@@ -7267,25 +7704,25 @@ var is = d({
7267
7704
  t: e
7268
7705
  };
7269
7706
  }
7270
- }), as = { class: "uz-ocr" }, os = { class: "uz-ocr-left-col" }, ss = { class: "uz-ocr-upload-card" }, cs = { class: "uz-ocr-upload-title" }, ls = {
7707
+ }), ms = { class: "uz-ocr" }, hs = { class: "uz-ocr-left-col" }, gs = { class: "uz-ocr-upload-card" }, _s = { class: "uz-ocr-upload-title" }, vs = {
7271
7708
  key: 1,
7272
7709
  class: "uz-ocr-preview-panel"
7273
- }, us = { class: "uz-ocr-preview-box" }, ds = ["src"], fs = {
7710
+ }, ys = { class: "uz-ocr-preview-box" }, bs = ["src"], xs = {
7274
7711
  key: 0,
7275
7712
  class: "uz-ocr-threshold-badge"
7276
- }, ps = { class: "uz-ocr-preview-box" }, ms = ["src"], hs = { class: "uz-ocr-settings-form" }, gs = { class: "uz-settings-row" }, _s = { class: "uz-settings-label" }, vs = {
7713
+ }, Ss = { class: "uz-ocr-preview-box" }, Cs = ["src"], ws = { class: "uz-ocr-settings-form" }, Ts = { class: "uz-settings-row" }, Es = { class: "uz-settings-label" }, Ds = {
7277
7714
  key: 0,
7278
7715
  class: "uz-ocr-nested-settings animate-fade-in"
7279
- }, ys = { class: "uz-settings-row" }, bs = { class: "uz-settings-label" }, xs = { class: "uz-settings-row" }, Ss = { class: "uz-settings-label" }, Cs = { class: "uz-ocr-right-col" }, ws = { class: "uz-ocr-result-header" }, Ts = { class: "uz-result-title" }, Es = {
7716
+ }, Os = { class: "uz-settings-row" }, ks = { class: "uz-settings-label" }, As = { class: "uz-settings-row" }, js = { class: "uz-settings-label" }, Ms = { class: "uz-ocr-right-col" }, Ns = { class: "uz-ocr-result-header" }, Ps = { class: "uz-result-title" }, Fs = {
7280
7717
  key: 0,
7281
7718
  class: "uz-ocr-empty-state"
7282
- }, Ds = { class: "uz-empty-text" }, Os = {
7719
+ }, Is = { class: "uz-empty-text" }, Ls = {
7283
7720
  key: 1,
7284
7721
  class: "uz-ocr-result-tabs"
7285
7722
  };
7286
- function ks(e, t, n, s, u, d) {
7723
+ function Rs(e, t, n, s, u, d) {
7287
7724
  let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
7288
- return x(), a("div", as, [o("div", os, [e.rawImage ? (x(), a("div", ls, [l(m, {
7725
+ return x(), a("div", ms, [o("div", hs, [e.rawImage ? (x(), a("div", vs, [l(m, {
7289
7726
  value: e.imagePreviewTab,
7290
7727
  "onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
7291
7728
  type: "segment",
@@ -7295,21 +7732,21 @@ function ks(e, t, n, s, u, d) {
7295
7732
  name: "processed",
7296
7733
  tab: e.t("OCR.previewProcessed")
7297
7734
  }, {
7298
- default: N(() => [o("div", us, [o("img", {
7735
+ default: N(() => [o("div", ys, [o("img", {
7299
7736
  src: e.processedImage,
7300
7737
  alt: "Processed Preview",
7301
7738
  class: "uz-ocr-preview-img"
7302
- }, null, 8, ds), e.preEnabled && e.preBinarize ? (x(), a("div", fs, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7739
+ }, null, 8, bs), e.preEnabled && e.preBinarize ? (x(), a("div", xs, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
7303
7740
  _: 1
7304
7741
  }, 8, ["tab"]), l(p, {
7305
7742
  name: "raw",
7306
7743
  tab: e.t("OCR.previewRaw")
7307
7744
  }, {
7308
- default: N(() => [o("div", ps, [o("img", {
7745
+ default: N(() => [o("div", Ss, [o("img", {
7309
7746
  src: e.rawImage,
7310
7747
  alt: "Raw Preview",
7311
7748
  class: "uz-ocr-preview-img"
7312
- }, null, 8, ms)])]),
7749
+ }, null, 8, Cs)])]),
7313
7750
  _: 1
7314
7751
  }, 8, ["tab"])]),
7315
7752
  _: 1
@@ -7343,7 +7780,7 @@ function ks(e, t, n, s, u, d) {
7343
7780
  "directory-dnd": "",
7344
7781
  class: "uz-w-full"
7345
7782
  }, {
7346
- default: N(() => [o("div", ss, [
7783
+ default: N(() => [o("div", gs, [
7347
7784
  t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
7348
7785
  xmlns: "http://www.w3.org/2000/svg",
7349
7786
  viewBox: "0 0 24 24",
@@ -7351,77 +7788,77 @@ function ks(e, t, n, s, u, d) {
7351
7788
  height: "40",
7352
7789
  fill: "currentColor"
7353
7790
  }, [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),
7354
- o("div", cs, A(e.t("OCR.scan")), 1),
7791
+ o("div", _s, A(e.t("OCR.scan")), 1),
7355
7792
  t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
7356
7793
  ])]),
7357
7794
  _: 1
7358
- }, 8, ["on-before-upload"])), o("div", hs, [o("div", gs, [o("span", _s, A(e.t("OCR.preprocess")), 1), l(_, {
7795
+ }, 8, ["on-before-upload"])), o("div", ws, [o("div", Ts, [o("span", Es, A(e.t("OCR.preprocess")), 1), l(_, {
7359
7796
  value: e.preEnabled,
7360
7797
  "onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
7361
7798
  size: "small"
7362
- }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", vs, [o("div", ys, [o("span", bs, A(e.t("OCR.scale")), 1), l(v, {
7799
+ }, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Ds, [o("div", Os, [o("span", ks, A(e.t("OCR.scale")), 1), l(v, {
7363
7800
  value: e.preScale,
7364
7801
  "onUpdate:value": t[2] ||= (t) => e.preScale = t,
7365
7802
  options: e.scaleOptions,
7366
7803
  size: "small",
7367
7804
  class: "uz-settings-select"
7368
- }, null, 8, ["value", "options"])]), o("div", xs, [o("span", Ss, A(e.t("OCR.contrast")), 1), l(_, {
7805
+ }, null, 8, ["value", "options"])]), o("div", As, [o("span", js, A(e.t("OCR.contrast")), 1), l(_, {
7369
7806
  value: e.preContrast,
7370
7807
  "onUpdate:value": t[3] ||= (t) => e.preContrast = t,
7371
7808
  size: "small"
7372
- }, null, 8, ["value"])])])) : i("", !0)])]), o("div", Cs, [o("div", ws, [o("span", Ts, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), a("div", Os, A(e.fullText), 1)) : (x(), a("div", Es, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ds, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
7809
+ }, null, 8, ["value"])])])) : i("", !0)])]), o("div", Ms, [o("div", Ns, [o("span", Ps, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), a("div", Ls, A(e.fullText), 1)) : (x(), a("div", Fs, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Is, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
7373
7810
  }
7374
- var As = /*#__PURE__*/ Z(is, [["render", ks], ["__scopeId", "data-v-c7224ff5"]]), js = /* @__PURE__ */ dt({
7811
+ var zs = /*#__PURE__*/ Q(ps, [["render", Rs], ["__scopeId", "data-v-c7224ff5"]]), Bs = /* @__PURE__ */ dt({
7375
7812
  UzActionButton: () => ft,
7376
- UzBack: () => br,
7377
- UzBom: () => ri,
7378
- UzCamera: () => qi,
7379
- UzCircle: () => Bi,
7380
- UzDraggableForm: () => Nr,
7381
- UzForm: () => Or,
7382
- UzFormItem: () => wr,
7383
- UzFormItemImage: () => Ur,
7384
- UzFormItemTimesPicker: () => qr,
7385
- UzFormItemUpload: () => zr,
7813
+ UzBack: () => yr,
7814
+ UzBom: () => di,
7815
+ UzCamera: () => na,
7816
+ UzCircle: () => Yi,
7817
+ UzDraggableForm: () => Mr,
7818
+ UzForm: () => Dr,
7819
+ UzFormItem: () => Cr,
7820
+ UzFormItemImage: () => Hr,
7821
+ UzFormItemTimesPicker: () => Kr,
7822
+ UzFormItemUpload: () => Rr,
7386
7823
  UzIcon: () => Jt,
7387
- UzOcr: () => As,
7388
- UzSearchBar: () => ra,
7389
- UzSearchMobileBar: () => la,
7390
- UzSpin: () => Aa,
7391
- UzTable: () => Ka,
7392
- UzTableChild: () => to,
7393
- UzTableDrawer: () => ho,
7394
- UzTableFile: () => jo,
7395
- UzTableMobile: () => To,
7396
- UzTableQuestChild: () => so,
7397
- UzThumbnail: () => Bo,
7398
- UzWrap: () => ts,
7824
+ UzOcr: () => zs,
7825
+ UzSearchBar: () => fa,
7826
+ UzSearchMobileBar: () => va,
7827
+ UzSpin: () => za,
7828
+ UzTable: () => to,
7829
+ UzTableChild: () => uo,
7830
+ UzTableDrawer: () => wo,
7831
+ UzTableFile: () => Bo,
7832
+ UzTableMobile: () => Po,
7833
+ UzTableQuestChild: () => _o,
7834
+ UzThumbnail: () => Yo,
7835
+ UzWrap: () => us,
7399
7836
  commonStore: () => q,
7400
- fnActionReduction: () => _r,
7401
- fnActionSimplify: () => gr,
7402
- fnAddThumbnail: () => Fo,
7403
- fnClearAllThumbnail: () => Lo,
7404
- fnDeleteThumbnail: () => Io,
7405
- fnGetTableData: () => ya,
7406
- fnOptionReduction: () => Ta,
7407
- fnOptionSimplify: () => wa,
7408
- fnPrepareFormData: () => Ea,
7409
- fnPrepareTableData: () => Da,
7410
- fnRenderAction: () => lr,
7837
+ fnActionReduction: () => gr,
7838
+ fnActionSimplify: () => hr,
7839
+ fnAddThumbnail: () => Wo,
7840
+ fnClearAllThumbnail: () => Ko,
7841
+ fnDeleteThumbnail: () => Go,
7842
+ fnGetTableData: () => Oa,
7843
+ fnOptionReduction: () => Pa,
7844
+ fnOptionSimplify: () => Na,
7845
+ fnPrepareFormData: () => Fa,
7846
+ fnPrepareTableData: () => Ia,
7847
+ fnRenderAction: () => cr,
7411
7848
  fnSetLang: () => Ut,
7412
7849
  fnSetTheme: () => Wt,
7413
- fnSetThumbnail: () => No,
7414
- fnTableReduction: () => xa,
7415
- fnTableSimplify: () => ba,
7416
- fnTriggersReduction: () => Ca,
7417
- fnTriggersSimplify: () => Sa,
7850
+ fnSetThumbnail: () => Ho,
7851
+ fnTableReduction: () => Aa,
7852
+ fnTableSimplify: () => ka,
7853
+ fnTriggersReduction: () => Ma,
7854
+ fnTriggersSimplify: () => ja,
7418
7855
  i18n: () => K
7419
- }), Ms = 3840, Ns = 2160, Ps = C({ scale: 1 });
7420
- function Fs(e, t) {
7421
- Ms = e, Ns = t;
7856
+ }), Vs = 3840, Hs = 2160, Us = C({ scale: 1 });
7857
+ function Ws(e, t) {
7858
+ Vs = e, Hs = t;
7422
7859
  }
7423
- function Is() {
7424
- let e = 1, t = window.innerWidth, n = window.innerHeight, r = Ms, i = Ns, a = parseFloat((r / i).toFixed(5));
7860
+ function Gs() {
7861
+ let e = 1, t = window.innerWidth, n = window.innerHeight, r = Vs, i = Hs, a = parseFloat((r / i).toFixed(5));
7425
7862
  if (parseFloat((t / n).toFixed(5)) > a) {
7426
7863
  let t = parseFloat((n * a / r).toFixed(5));
7427
7864
  e = t > 1 ? 1 : t;
@@ -7429,17 +7866,17 @@ function Is() {
7429
7866
  let n = parseFloat((t / a / i).toFixed(5));
7430
7867
  e = n > 1 ? 1 : n;
7431
7868
  }
7432
- Ps.scale = e;
7869
+ Us.scale = e;
7433
7870
  }
7434
- function Ls() {
7435
- let e = $e(Is, 200);
7871
+ function Ks() {
7872
+ let e = $e(Gs, 200);
7436
7873
  return e(), window.addEventListener("resize", e), () => {
7437
- Ms = 3840, Ns = 2160, window.removeEventListener("resize", e);
7874
+ Vs = 3840, Hs = 2160, window.removeEventListener("resize", e);
7438
7875
  };
7439
7876
  }
7440
7877
  //#endregion
7441
7878
  //#region components/hooks/useThrottleFn.ts
7442
- function Rs(e, t = 1e3) {
7879
+ function qs(e, t = 1e3) {
7443
7880
  let r = w(e), i = n(() => et((...e) => r.value([...e]), t));
7444
7881
  return b(() => {
7445
7882
  i.value.cancel();
@@ -7451,14 +7888,14 @@ function Rs(e, t = 1e3) {
7451
7888
  }
7452
7889
  //#endregion
7453
7890
  //#region components/hooks/useLocalStorage.ts
7454
- function zs(e, t) {
7891
+ function Js(e, t) {
7455
7892
  return [w(G(e, t?.defaultValue)), (n) => {
7456
7893
  n === void 0 ? Dt(e) : W(e, n, t?.expired || "1 Day");
7457
7894
  }];
7458
7895
  }
7459
7896
  //#endregion
7460
7897
  //#region components/hooks/useQuery.ts
7461
- function Bs(e, t, n) {
7898
+ function Ys(e, t, n) {
7462
7899
  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 = () => {
7463
7900
  Un(), clearInterval(o.value), o.value = null;
7464
7901
  }, p = async () => {
@@ -7524,26 +7961,26 @@ function Bs(e, t, n) {
7524
7961
  }
7525
7962
  //#endregion
7526
7963
  //#region package.json
7527
- var Vs = "0.1.119", Hs;
7528
- async function Us() {
7964
+ var Xs = "0.1.120", Zs;
7965
+ async function Qs() {
7529
7966
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
7530
7967
  method: "HEAD",
7531
7968
  cache: "no-cache"
7532
7969
  });
7533
7970
  return e.headers.get("etag") || e.headers.get("last-modified");
7534
7971
  }
7535
- async function Ws() {
7536
- let e = await Us();
7537
- Hs !== e && Gt(!0);
7972
+ async function $s() {
7973
+ let e = await Qs();
7974
+ Zs !== e && Gt(!0);
7538
7975
  }
7539
- async function Gs() {
7540
- Hs = await Us(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7541
- Ws();
7976
+ async function ec() {
7977
+ Zs = await Qs(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
7978
+ $s();
7542
7979
  }, 6e4);
7543
7980
  }
7544
7981
  //#endregion
7545
7982
  //#region components/create.ts
7546
- function Ks({ components: e = [] } = {}) {
7983
+ function tc({ components: e = [] } = {}) {
7547
7984
  let t = [];
7548
7985
  function n(e, t, n) {
7549
7986
  e.component(t) || e.component(t, n);
@@ -7559,16 +7996,16 @@ function Ks({ components: e = [] } = {}) {
7559
7996
  Kt(e), Ht(o), Ut(d), Wt(u), Vt({
7560
7997
  icons: c,
7561
7998
  iconDefault: l
7562
- }), K.global.locale.value = d, a && Gs(), t && Nn(r, t, n);
7999
+ }), K.global.locale.value = d, a && ec(), t && Nn(r, t, n);
7563
8000
  }
7564
8001
  }
7565
8002
  return {
7566
- version: Vs,
8003
+ version: Xs,
7567
8004
  install: r
7568
8005
  };
7569
8006
  }
7570
8007
  //#endregion
7571
8008
  //#region components/preset.ts
7572
- var qs = Ks({ components: Object.keys(js).map((e) => js[e]) }), Js = qs.install;
8009
+ var nc = tc({ components: Object.keys(Bs).map((e) => Bs[e]) }), rc = nc.install;
7573
8010
  //#endregion
7574
- export { Gn as BLOB, Kn as CUSTOM, qn as FILE, Wn as GET, X as POST, ft as UzActionButton, br as UzBack, ri as UzBom, qi as UzCamera, Bi as UzCircle, Nr as UzDraggableForm, Or as UzForm, wr as UzFormItem, Ur as UzFormItemImage, qr as UzFormItemTimesPicker, zr as UzFormItemUpload, Jt as UzIcon, As as UzOcr, ra as UzSearchBar, la as UzSearchMobileBar, Aa as UzSpin, Ka as UzTable, to as UzTableChild, ho as UzTableDrawer, jo as UzTableFile, To as UzTableMobile, so as UzTableQuestChild, Bo as UzThumbnail, ts as UzWrap, q as commonStore, Ks as create, Qo as darkTheme, qs as default, _r as fnActionReduction, gr as fnActionSimplify, Fo as fnAddThumbnail, Un as fnCancelFetch, Lo as fnClearAllThumbnail, Is as fnComputedScale, Yt as fnCreateRouter, Dt as fnDelStorage, kt as fnDelStorageAll, Ot as fnDelStorageByPrefix, Io as fnDeleteThumbnail, Et as fnDialog, U as fnErrorLog, zt as fnFilterByPinyinInitials, Mt as fnFormatTime, It as fnFormatUnits, Ft as fnFullScreen, G as fnGetStorage, ya as fnGetTableData, Ls as fnListenerScale, Tt as fnNotification, Ta as fnOptionReduction, wa as fnOptionSimplify, jt as fnPageModel2Naive, Ea as fnPrepareFormData, Da as fnPrepareTableData, lr as fnRenderAction, At as fnScrollTop, Ut as fnSetLang, Fs as fnSetNormalWidthAndHeight, W as fnSetStorage, Wt as fnSetTheme, No as fnSetThumbnail, xa as fnTableReduction, ba as fnTableSimplify, Pt as fnThrottle, Nt as fnTitle, Ca as fnTriggersReduction, Sa as fnTriggersSimplify, K as i18n, Js as install, Zo as lightTheme, Bt as mergeColumns, J as router, Ps as scaleStore, Jr as useDebounceFn, zs as useLocalStorage, Bs as useQuery, Rs as useThrottleFn };
8011
+ export { Gn as BLOB, Kn as CUSTOM, qn as FILE, Wn as GET, X as POST, ft as UzActionButton, yr as UzBack, di as UzBom, na as UzCamera, Yi as UzCircle, Mr as UzDraggableForm, Dr as UzForm, Cr as UzFormItem, Hr as UzFormItemImage, Kr as UzFormItemTimesPicker, Rr as UzFormItemUpload, Jt as UzIcon, zs as UzOcr, fa as UzSearchBar, va as UzSearchMobileBar, za as UzSpin, to as UzTable, uo as UzTableChild, wo as UzTableDrawer, Bo as UzTableFile, Po as UzTableMobile, _o as UzTableQuestChild, Yo as UzThumbnail, us as UzWrap, q as commonStore, tc as create, ss as darkTheme, nc as default, gr as fnActionReduction, hr as fnActionSimplify, Wo as fnAddThumbnail, Un as fnCancelFetch, Ko as fnClearAllThumbnail, Gs as fnComputedScale, Yt as fnCreateRouter, Dt as fnDelStorage, kt as fnDelStorageAll, Ot as fnDelStorageByPrefix, Go as fnDeleteThumbnail, Et as fnDialog, U as fnErrorLog, zt as fnFilterByPinyinInitials, Mt as fnFormatTime, It as fnFormatUnits, Ft as fnFullScreen, G as fnGetStorage, Oa as fnGetTableData, Ks as fnListenerScale, Tt as fnNotification, Pa as fnOptionReduction, Na as fnOptionSimplify, jt as fnPageModel2Naive, Fa as fnPrepareFormData, Ia as fnPrepareTableData, cr as fnRenderAction, At as fnScrollTop, Ut as fnSetLang, Ws as fnSetNormalWidthAndHeight, W as fnSetStorage, Wt as fnSetTheme, Ho as fnSetThumbnail, Aa as fnTableReduction, ka as fnTableSimplify, Pt as fnThrottle, Nt as fnTitle, Ma as fnTriggersReduction, ja as fnTriggersSimplify, K as i18n, rc as install, os as lightTheme, Bt as mergeColumns, J as router, Us as scaleStore, qr as useDebounceFn, Js as useLocalStorage, Ys as useQuery, qs as useThrottleFn };