@partex/one-core 2.0.102 → 2.0.104

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/one-core.js CHANGED
@@ -638,7 +638,7 @@ const pn = (e, t = "yyyy-MM-dd") => {
638
638
  } catch {
639
639
  return "";
640
640
  }
641
- }, bY = (e, t = 500) => {
641
+ }, TY = (e, t = 500) => {
642
642
  const r = e;
643
643
  let n;
644
644
  const a = function(...o) {
@@ -648,10 +648,10 @@ const pn = (e, t = "yyyy-MM-dd") => {
648
648
  };
649
649
  return a;
650
650
  };
651
- function wY(e, t) {
651
+ function xY(e, t) {
652
652
  e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
653
653
  }
654
- function SY(e, t = 0) {
654
+ function DY(e, t = 0) {
655
655
  const r = ["", "k", "m", "b", "t"], n = Math.floor(Math.log10(Math.abs(e)) / 3), a = Math.max(0, Math.min(n, r.length - 1)), i = r[a];
656
656
  return i ? (e / Math.pow(10, a * 3)).toFixed(t) + i : (e / Math.pow(10, a * 3)).toFixed(0);
657
657
  }
@@ -980,7 +980,7 @@ xi.interceptors.response.use(
980
980
  return Promise.reject();
981
981
  }
982
982
  );
983
- const CY = () => {
983
+ const AY = () => {
984
984
  th.cancel(), th = _d.CancelToken.source();
985
985
  }, kd = "/apiserver/", lD = (e, t, r = "json") => xi({
986
986
  url: `${kd}${e}`,
@@ -30804,7 +30804,23 @@ function hW(e, t, r, n, a, i) {
30804
30804
  }, null, 8, ["columns", "data", "loading"])
30805
30805
  ]);
30806
30806
  }
30807
- const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
30807
+ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = (e, t) => {
30808
+ let r = null;
30809
+ return function(...n) {
30810
+ r && clearTimeout(r), r = setTimeout(() => {
30811
+ e.call(this, ...n);
30812
+ }, t);
30813
+ };
30814
+ }, pW = (e, t = 500) => {
30815
+ const r = e;
30816
+ let n;
30817
+ const a = function(...o) {
30818
+ n || (n = setTimeout(function() {
30819
+ n && clearTimeout(n), n = void 0, r.apply(a, o);
30820
+ }, t));
30821
+ };
30822
+ return a;
30823
+ }, gW = 1e3, mW = (e, t) => ({ run: vW(e, typeof t == "number" ? t : gW) }), MY = (e, t) => ({ run: pW(e, typeof t == "number" ? t : 500) }), yW = Ie({
30808
30824
  name: "OcScan",
30809
30825
  components: {
30810
30826
  NButton: qe,
@@ -30858,14 +30874,12 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
30858
30874
  }));
30859
30875
  });
30860
30876
  };
30861
- let m = "", _ = 0;
30877
+ let m = "";
30878
+ const _ = mW(() => {
30879
+ m && t("on-update:value", m), m = "";
30880
+ }, 300);
30862
30881
  function y(w) {
30863
- if (w.code === "Enter") {
30864
- m && t("on-update:value", m), m = "", _ = 0;
30865
- return;
30866
- }
30867
- let C = (/* @__PURE__ */ new Date()).getTime();
30868
- _ === 0 || C - _ <= 100 ? m += w.key : C - _ > 500 && (m = "", _ = 0), _ = C;
30882
+ m += w.key, _.run();
30869
30883
  }
30870
30884
  return Jr(() => {
30871
30885
  window.addEventListener("keypress", y);
@@ -30880,21 +30894,21 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
30880
30894
  closeAll: v
30881
30895
  };
30882
30896
  }
30883
- }), pW = /* @__PURE__ */ F("div", { class: "oc-scan-canvas-main" }, [
30897
+ }), _W = /* @__PURE__ */ F("div", { class: "oc-scan-canvas-main" }, [
30884
30898
  /* @__PURE__ */ F("canvas", {
30885
30899
  id: "oc-scan-canvas",
30886
30900
  width: "1280",
30887
30901
  height: "720"
30888
30902
  })
30889
- ], -1), gW = { class: "oc-scan-video" }, mW = {
30903
+ ], -1), bW = { class: "oc-scan-video" }, wW = {
30890
30904
  ref: "videoRef",
30891
30905
  playsInline: ""
30892
- }, yW = {
30906
+ }, SW = {
30893
30907
  ref: "inputRef",
30894
30908
  type: "text",
30895
30909
  class: "oc-scan-input"
30896
30910
  };
30897
- function _W(e, t, r, n, a, i) {
30911
+ function CW(e, t, r, n, a, i) {
30898
30912
  const o = R("NButton"), s = R("IconDismiss"), l = R("NIcon"), u = R("NFlex"), c = R("NCard"), f = R("NModal");
30899
30913
  return V(), K(ht, null, [
30900
30914
  P(o, {
@@ -30939,20 +30953,20 @@ function _W(e, t, r, n, a, i) {
30939
30953
  })
30940
30954
  ]),
30941
30955
  default: k(() => [
30942
- pW
30956
+ _W
30943
30957
  ]),
30944
30958
  _: 1
30945
30959
  })
30946
30960
  ]),
30947
30961
  _: 1
30948
30962
  }, 8, ["show", "on-mask-click"]),
30949
- F("div", gW, [
30950
- F("video", mW, null, 512)
30963
+ F("div", bW, [
30964
+ F("video", wW, null, 512)
30951
30965
  ]),
30952
- F("input", yW, null, 512)
30966
+ F("input", SW, null, 512)
30953
30967
  ], 64);
30954
30968
  }
30955
- const bW = /* @__PURE__ */ re(vW, [["render", _W]]), wW = Ie({
30969
+ const TW = /* @__PURE__ */ re(yW, [["render", CW]]), xW = Ie({
30956
30970
  name: "OcTimePickRange",
30957
30971
  components: {
30958
30972
  NInputGroup: yd,
@@ -30998,8 +31012,8 @@ const bW = /* @__PURE__ */ re(vW, [["render", _W]]), wW = Ie({
30998
31012
  updateEndValue: i
30999
31013
  };
31000
31014
  }
31001
- }), SW = /* @__PURE__ */ F("span", { class: "oc-time-picker-separator" }, "-", -1);
31002
- function CW(e, t, r, n, a, i) {
31015
+ }), DW = /* @__PURE__ */ F("span", { class: "oc-time-picker-separator" }, "-", -1);
31016
+ function AW(e, t, r, n, a, i) {
31003
31017
  const o = R("NTimePicker"), s = R("NInputGroup");
31004
31018
  return V(), J(s, { class: "oc-time-picker" }, {
31005
31019
  default: k(() => [
@@ -31010,7 +31024,7 @@ function CW(e, t, r, n, a, i) {
31010
31024
  format: e.format,
31011
31025
  disabled: e.disabled
31012
31026
  }, null, 8, ["value", "clearable", "on-update:value", "format", "disabled"]),
31013
- SW,
31027
+ DW,
31014
31028
  P(o, {
31015
31029
  value: e.endTime,
31016
31030
  clearable: e.clearable,
@@ -31022,7 +31036,7 @@ function CW(e, t, r, n, a, i) {
31022
31036
  _: 1
31023
31037
  });
31024
31038
  }
31025
- const TW = /* @__PURE__ */ re(wW, [["render", CW]]), xW = Ie({
31039
+ const MW = /* @__PURE__ */ re(xW, [["render", AW]]), NW = Ie({
31026
31040
  name: "OcSearchBarItem",
31027
31041
  components: {
31028
31042
  NIcon: At,
@@ -31040,7 +31054,7 @@ const TW = /* @__PURE__ */ re(wW, [["render", CW]]), xW = Ie({
31040
31054
  NDatePicker: gd,
31041
31055
  NInputGroup: yd,
31042
31056
  NInputGroupLabel: C_,
31043
- OcTimePickRange: TW,
31057
+ OcTimePickRange: MW,
31044
31058
  IconArrowDown: Md,
31045
31059
  IconArrowUp: L_
31046
31060
  },
@@ -31115,13 +31129,13 @@ const TW = /* @__PURE__ */ re(wW, [["render", CW]]), xW = Ie({
31115
31129
  selectFallback: d
31116
31130
  };
31117
31131
  }
31118
- }), DW = { class: "oc-search-bar-line" }, AW = { class: "oc-search-bar-title" }, MW = {
31132
+ }), PW = { class: "oc-search-bar-line" }, kW = { class: "oc-search-bar-title" }, EW = {
31119
31133
  key: 0,
31120
31134
  class: "oc-search-action-more"
31121
31135
  };
31122
- function NW(e, t, r, n, a, i) {
31136
+ function IW(e, t, r, n, a, i) {
31123
31137
  const o = R("NGridItem"), s = R("NInputGroupLabel"), l = R("NInput"), u = R("NInputNumber"), c = R("NSelect"), f = R("NDataTable"), d = R("NPopover"), h = R("NCascader"), v = R("NTreeSelect"), g = R("OcTimePickRange"), p = R("NDatePicker"), m = R("NInputGroup"), _ = R("NGrid"), y = R("IconArrowDown"), w = R("NIcon"), C = R("IconArrowUp"), S = R("NButton"), x = R("NTooltip");
31124
- return V(), K("div", DW, [
31138
+ return V(), K("div", PW, [
31125
31139
  P(_, {
31126
31140
  "x-gap": "15",
31127
31141
  "y-gap": "15",
@@ -31137,7 +31151,7 @@ function NW(e, t, r, n, a, i) {
31137
31151
  span: e.small ? 1 : `${e.cols} s:2 l:1`
31138
31152
  }, {
31139
31153
  default: k(() => [
31140
- F("div", AW, [
31154
+ F("div", kW, [
31141
31155
  Tr(e.$slots, "header")
31142
31156
  ])
31143
31157
  ]),
@@ -31503,7 +31517,7 @@ function NW(e, t, r, n, a, i) {
31503
31517
  ]),
31504
31518
  _: 3
31505
31519
  }, 8, ["cols", "collapsed"]),
31506
- e.more ? (V(), K("div", MW, [
31520
+ e.more ? (V(), K("div", EW, [
31507
31521
  P(x, { trigger: "hover" }, {
31508
31522
  trigger: k(() => [
31509
31523
  P(S, { onClick: e.showMore }, {
@@ -31531,7 +31545,7 @@ function NW(e, t, r, n, a, i) {
31531
31545
  ])) : te("", !0)
31532
31546
  ]);
31533
31547
  }
31534
- const PW = /* @__PURE__ */ re(xW, [["render", NW]]), kW = Ie({
31548
+ const LW = /* @__PURE__ */ re(NW, [["render", IW]]), OW = Ie({
31535
31549
  name: "OcSearchBarPop",
31536
31550
  props: {
31537
31551
  value: {
@@ -31548,18 +31562,18 @@ const PW = /* @__PURE__ */ re(xW, [["render", NW]]), kW = Ie({
31548
31562
  }
31549
31563
  };
31550
31564
  }
31551
- }), EW = { class: "oc-search-bar-pop" }, IW = { class: "oc-search-bar-pop-plan" }, LW = { class: "oc-search-bar-pop-action" }, OW = { class: "oc-search-bar-pop-content" };
31552
- function RW(e, t, r, n, a, i) {
31553
- return hi((V(), K("div", EW, [
31565
+ }), RW = { class: "oc-search-bar-pop" }, $W = { class: "oc-search-bar-pop-plan" }, BW = { class: "oc-search-bar-pop-action" }, VW = { class: "oc-search-bar-pop-content" };
31566
+ function FW(e, t, r, n, a, i) {
31567
+ return hi((V(), K("div", RW, [
31554
31568
  F("div", {
31555
31569
  class: "oc-search-bar-pop-mask",
31556
31570
  onClick: t[0] || (t[0] = (...o) => e.close && e.close(...o))
31557
31571
  }),
31558
- F("div", IW, [
31559
- F("div", LW, [
31572
+ F("div", $W, [
31573
+ F("div", BW, [
31560
31574
  Tr(e.$slots, "action")
31561
31575
  ]),
31562
- F("div", OW, [
31576
+ F("div", VW, [
31563
31577
  Tr(e.$slots, "default")
31564
31578
  ])
31565
31579
  ])
@@ -31567,7 +31581,7 @@ function RW(e, t, r, n, a, i) {
31567
31581
  [di, e.value]
31568
31582
  ]);
31569
31583
  }
31570
- const $W = /* @__PURE__ */ re(kW, [["render", RW]]), BW = Ie({
31584
+ const zW = /* @__PURE__ */ re(OW, [["render", FW]]), GW = Ie({
31571
31585
  name: "OcSearchBar",
31572
31586
  components: {
31573
31587
  NFlex: Lt,
@@ -31579,8 +31593,8 @@ const $W = /* @__PURE__ */ re(kW, [["render", RW]]), BW = Ie({
31579
31593
  IconReset: O_,
31580
31594
  IconSearch: Cd,
31581
31595
  IconFilter: Td,
31582
- OcSearchBarItem: PW,
31583
- OcSearchBarPop: $W
31596
+ OcSearchBarItem: LW,
31597
+ OcSearchBarPop: zW
31584
31598
  },
31585
31599
  props: {
31586
31600
  value: {
@@ -31668,11 +31682,11 @@ const $W = /* @__PURE__ */ re(kW, [["render", RW]]), BW = Ie({
31668
31682
  clearAll: d
31669
31683
  };
31670
31684
  }
31671
- }), VW = {
31685
+ }), HW = {
31672
31686
  key: 1,
31673
31687
  class: "oc-search-bar-popover"
31674
- }, FW = { key: 0 }, zW = { class: "oc-search-bar-center" };
31675
- function GW(e, t, r, n, a, i) {
31688
+ }, WW = { key: 0 }, UW = { class: "oc-search-bar-center" };
31689
+ function YW(e, t, r, n, a, i) {
31676
31690
  const o = R("OcSearchBarItem"), s = R("IconArrowDown"), l = R("NIcon"), u = R("NButton"), c = R("IconReset"), f = R("IconSearch"), d = R("NFlex"), h = R("OcSearchBarPop"), v = R("IconFilter"), g = R("NTooltip");
31677
31691
  return V(), K("div", {
31678
31692
  class: mp(["oc-search-bar", {
@@ -31686,7 +31700,7 @@ function GW(e, t, r, n, a, i) {
31686
31700
  }, [
31687
31701
  Tr(e.$slots, "header")
31688
31702
  ], 2)) : te("", !0),
31689
- e.small || e.commonStore.isMobile ? (V(), K("div", VW, [
31703
+ e.small || e.commonStore.isMobile ? (V(), K("div", HW, [
31690
31704
  P(h, {
31691
31705
  value: e.drawer,
31692
31706
  "onUpdate:value": t[2] || (t[2] = (p) => e.drawer = p),
@@ -31748,7 +31762,7 @@ function GW(e, t, r, n, a, i) {
31748
31762
  ]),
31749
31763
  _: 1
31750
31764
  }),
31751
- e.isSlotAction ? (V(), K("br", FW)) : te("", !0),
31765
+ e.isSlotAction ? (V(), K("br", WW)) : te("", !0),
31752
31766
  e.isSlotAction ? (V(), J(d, {
31753
31767
  key: 1,
31754
31768
  size: 15,
@@ -31784,7 +31798,7 @@ function GW(e, t, r, n, a, i) {
31784
31798
  _: 1
31785
31799
  })
31786
31800
  ])) : (V(), K(ht, { key: 2 }, [
31787
- F("div", zW, [
31801
+ F("div", UW, [
31788
31802
  P(o, {
31789
31803
  ref: "itemRef",
31790
31804
  loading: e.loading,
@@ -31872,7 +31886,7 @@ function GW(e, t, r, n, a, i) {
31872
31886
  ], 64))
31873
31887
  ], 34);
31874
31888
  }
31875
- const B2 = /* @__PURE__ */ re(BW, [["render", GW]]), HW = Ie({
31889
+ const B2 = /* @__PURE__ */ re(GW, [["render", YW]]), qW = Ie({
31876
31890
  name: "OcSkeleton",
31877
31891
  components: {
31878
31892
  NGrid: Si,
@@ -31892,10 +31906,10 @@ const B2 = /* @__PURE__ */ re(BW, [["render", GW]]), HW = Ie({
31892
31906
  setup() {
31893
31907
  return {};
31894
31908
  }
31895
- }), WW = { class: "com-skeleton" };
31896
- function UW(e, t, r, n, a, i) {
31909
+ }), jW = { class: "com-skeleton" };
31910
+ function XW(e, t, r, n, a, i) {
31897
31911
  const o = R("NSkeleton"), s = R("NGi"), l = R("NGrid");
31898
- return V(), K("div", WW, [
31912
+ return V(), K("div", jW, [
31899
31913
  P(l, {
31900
31914
  "x-gap": "15",
31901
31915
  "y-gap": "15",
@@ -31922,7 +31936,7 @@ function UW(e, t, r, n, a, i) {
31922
31936
  }, 8, ["cols"])
31923
31937
  ]);
31924
31938
  }
31925
- const YW = /* @__PURE__ */ re(HW, [["render", UW]]), qW = Ie({
31939
+ const ZW = /* @__PURE__ */ re(qW, [["render", XW]]), KW = Ie({
31926
31940
  name: "OcTable",
31927
31941
  components: {
31928
31942
  NDataTable: Ci,
@@ -32212,8 +32226,8 @@ const YW = /* @__PURE__ */ re(HW, [["render", UW]]), qW = Ie({
32212
32226
  handleColumnChange: O
32213
32227
  };
32214
32228
  }
32215
- }), jW = { class: "com-card" };
32216
- function XW(e, t, r, n, a, i) {
32229
+ }), JW = { class: "com-card" };
32230
+ function QW(e, t, r, n, a, i) {
32217
32231
  const o = R("IconAdd"), s = R("NIcon"), l = R("NButton"), u = R("NTooltip"), c = R("IconMailInboxAdd"), f = R("IconCloudArrowDown"), d = R("NPopconfirm"), h = R("IconFilter"), v = R("IconNavigation"), g = R("IconPin"), p = R("IconPinOff"), m = R("IconEye"), _ = R("IconEyeOff"), y = R("Draggable"), w = R("NPopover"), C = R("OcSearchBar"), S = R("NDataTable"), x = R("OcImporter");
32218
32232
  return V(), K(ht, null, [
32219
32233
  P(C, {
@@ -32419,7 +32433,7 @@ function XW(e, t, r, n, a, i) {
32419
32433
  ]),
32420
32434
  _: 3
32421
32435
  }, 8, ["value", "defaultValue", "data", "loading", "autoSubmit", "resetButton", "onOnUpdate:value"]),
32422
- F("div", jW, [
32436
+ F("div", JW, [
32423
32437
  P(S, {
32424
32438
  columns: e.tableColumns,
32425
32439
  data: e.tableData,
@@ -32444,7 +32458,7 @@ function XW(e, t, r, n, a, i) {
32444
32458
  }, null, 8, ["show", "data"])) : te("", !0)
32445
32459
  ], 64);
32446
32460
  }
32447
- const ZW = /* @__PURE__ */ re(qW, [["render", XW]]), KW = Ie({
32461
+ const eU = /* @__PURE__ */ re(KW, [["render", QW]]), tU = Ie({
32448
32462
  name: "OcWorkflowAdd",
32449
32463
  components: {
32450
32464
  IconAdd: bd,
@@ -32463,7 +32477,7 @@ const ZW = /* @__PURE__ */ re(qW, [["render", XW]]), KW = Ie({
32463
32477
  };
32464
32478
  }
32465
32479
  });
32466
- function JW(e, t, r, n, a, i) {
32480
+ function rU(e, t, r, n, a, i) {
32467
32481
  const o = R("IconAdd"), s = R("NIcon"), l = R("NButton"), u = R("NFlex"), c = R("NPopover");
32468
32482
  return V(), J(c, {
32469
32483
  trigger: "manual",
@@ -32513,7 +32527,7 @@ function JW(e, t, r, n, a, i) {
32513
32527
  _: 1
32514
32528
  }, 8, ["show"]);
32515
32529
  }
32516
- const V2 = /* @__PURE__ */ re(KW, [["render", JW]]), QW = Ie({
32530
+ const V2 = /* @__PURE__ */ re(tU, [["render", rU]]), nU = Ie({
32517
32531
  name: "OcWorkflowCard",
32518
32532
  components: {
32519
32533
  NFlex: Lt,
@@ -32537,11 +32551,11 @@ const V2 = /* @__PURE__ */ re(KW, [["render", JW]]), QW = Ie({
32537
32551
  }
32538
32552
  };
32539
32553
  }
32540
- }), eU = { class: "oc-workflow-node" }, tU = { class: "oc-workflow-node-ctx" }, rU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-desc" }, "功能", -1), nU = { class: "oc-workflow-node-more" };
32541
- function aU(e, t, r, n, a, i) {
32554
+ }), aU = { class: "oc-workflow-node" }, iU = { class: "oc-workflow-node-ctx" }, oU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-desc" }, "功能", -1), sU = { class: "oc-workflow-node-more" };
32555
+ function lU(e, t, r, n, a, i) {
32542
32556
  const o = R("IconDismiss"), s = R("NIcon"), l = R("NButton"), u = R("NFlex"), c = R("OcWorkflowAdd");
32543
- return V(), K("div", eU, [
32544
- F("div", tU, [
32557
+ return V(), K("div", aU, [
32558
+ F("div", iU, [
32545
32559
  P(u, {
32546
32560
  justify: "space-between",
32547
32561
  class: "oc-workflow-node-title"
@@ -32565,9 +32579,9 @@ function aU(e, t, r, n, a, i) {
32565
32579
  ]),
32566
32580
  _: 1
32567
32581
  }),
32568
- rU
32582
+ oU
32569
32583
  ]),
32570
- F("div", nU, [
32584
+ F("div", sU, [
32571
32585
  P(c, {
32572
32586
  "onUpdate:add": t[0] || (t[0] = (f) => {
32573
32587
  e.addOne(f);
@@ -32576,12 +32590,12 @@ function aU(e, t, r, n, a, i) {
32576
32590
  ])
32577
32591
  ]);
32578
32592
  }
32579
- const iU = /* @__PURE__ */ re(QW, [["render", aU]]), oU = Ie({
32593
+ const uU = /* @__PURE__ */ re(nU, [["render", lU]]), cU = Ie({
32580
32594
  name: "OcWorkflowNode",
32581
32595
  components: {
32582
32596
  NButton: qe,
32583
32597
  OcWorkflowAdd: V2,
32584
- OcWorkflowCard: iU
32598
+ OcWorkflowCard: uU
32585
32599
  },
32586
32600
  props: {
32587
32601
  data: {
@@ -32690,13 +32704,13 @@ const iU = /* @__PURE__ */ re(QW, [["render", aU]]), oU = Ie({
32690
32704
  }
32691
32705
  };
32692
32706
  }
32693
- }), sU = { key: 2 }, lU = { class: "oc-workflow-node-branch-add" }, uU = { class: "oc-workflow-branch-ctx" }, cU = { class: "oc-workflow-node-branch-add-bottom" }, fU = {
32707
+ }), fU = { key: 2 }, hU = { class: "oc-workflow-node-branch-add" }, dU = { class: "oc-workflow-branch-ctx" }, vU = { class: "oc-workflow-node-branch-add-bottom" }, pU = {
32694
32708
  key: 3,
32695
32709
  class: "oc-workflow-node-end"
32696
- }, hU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-title-end" }, "流程结束", -1), dU = [
32697
- hU
32710
+ }, gU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-title-end" }, "流程结束", -1), mU = [
32711
+ gU
32698
32712
  ];
32699
- function vU(e, t, r, n, a, i) {
32713
+ function yU(e, t, r, n, a, i) {
32700
32714
  const o = R("OcWorkflowCard"), s = R("NButton"), l = R("OcWorkflowNode"), u = R("OcWorkflowAdd");
32701
32715
  return V(!0), K(ht, null, fi(e.data, (c, f) => (V(), K(ht, {
32702
32716
  key: c.key
@@ -32715,12 +32729,12 @@ function vU(e, t, r, n, a, i) {
32715
32729
  },
32716
32730
  "onUpdate:delete": (d) => e.deleteNodeOne(f)
32717
32731
  }, null, 8, ["data", "onUpdate:add", "onUpdate:delete"])) : te("", !0),
32718
- c.type === 1 ? (V(), K("div", sU, [
32732
+ c.type === 1 ? (V(), K("div", fU, [
32719
32733
  (V(), K("div", {
32720
32734
  class: "oc-workflow-branch",
32721
32735
  key: f
32722
32736
  }, [
32723
- F("div", lU, [
32737
+ F("div", hU, [
32724
32738
  P(s, {
32725
32739
  type: "success",
32726
32740
  onClick: (d) => e.addCondition(c)
@@ -32731,7 +32745,7 @@ function vU(e, t, r, n, a, i) {
32731
32745
  _: 2
32732
32746
  }, 1032, ["onClick"])
32733
32747
  ]),
32734
- F("div", uU, [
32748
+ F("div", dU, [
32735
32749
  (V(!0), K(ht, null, fi(c.children, (d, h) => (V(), K("div", {
32736
32750
  key: `children-${h}`
32737
32751
  }, [
@@ -32748,7 +32762,7 @@ function vU(e, t, r, n, a, i) {
32748
32762
  ]))), 128))
32749
32763
  ])
32750
32764
  ])),
32751
- F("div", cU, [
32765
+ F("div", vU, [
32752
32766
  P(u, {
32753
32767
  "onUpdate:add": (d) => {
32754
32768
  e.addConditionBottom(c, d);
@@ -32756,13 +32770,13 @@ function vU(e, t, r, n, a, i) {
32756
32770
  }, null, 8, ["onUpdate:add"])
32757
32771
  ])
32758
32772
  ])) : te("", !0),
32759
- c.type === 99 ? (V(), K("div", fU, dU)) : te("", !0)
32773
+ c.type === 99 ? (V(), K("div", pU, mU)) : te("", !0)
32760
32774
  ], 64))), 128);
32761
32775
  }
32762
- const pU = /* @__PURE__ */ re(oU, [["render", vU]]), gU = Ie({
32776
+ const _U = /* @__PURE__ */ re(cU, [["render", yU]]), bU = Ie({
32763
32777
  name: "OcWorkflow",
32764
32778
  components: {
32765
- OcWorkflowNode: pU,
32779
+ OcWorkflowNode: _U,
32766
32780
  NSlider: pC,
32767
32781
  NSelect: pd
32768
32782
  },
@@ -32827,11 +32841,11 @@ const pU = /* @__PURE__ */ re(oU, [["render", vU]]), gU = Ie({
32827
32841
  )
32828
32842
  };
32829
32843
  }
32830
- }), mU = { class: "oc-workflow" }, yU = { class: "oc-workflow-tools" }, _U = { class: "oc-workflow-ctx" }, bU = { class: "oc-workflow-main" };
32831
- function wU(e, t, r, n, a, i) {
32844
+ }), wU = { class: "oc-workflow" }, SU = { class: "oc-workflow-tools" }, CU = { class: "oc-workflow-ctx" }, TU = { class: "oc-workflow-main" };
32845
+ function xU(e, t, r, n, a, i) {
32832
32846
  const o = R("NSelect"), s = R("NSlider"), l = R("OcWorkflowNode");
32833
- return V(), K("div", mU, [
32834
- F("div", yU, [
32847
+ return V(), K("div", wU, [
32848
+ F("div", SU, [
32835
32849
  P(o, {
32836
32850
  value: e.scaleFilter,
32837
32851
  "onUpdate:value": t[0] || (t[0] = (u) => e.scaleFilter = u),
@@ -32852,8 +32866,8 @@ function wU(e, t, r, n, a, i) {
32852
32866
  class: "oc-workflow-slider"
32853
32867
  }, null, 8, ["value", "on-update:value", "format-tooltip"])
32854
32868
  ]),
32855
- F("div", _U, [
32856
- F("div", bU, [
32869
+ F("div", CU, [
32870
+ F("div", TU, [
32857
32871
  F("div", {
32858
32872
  class: "oc-workflow-warp",
32859
32873
  style: hu({
@@ -32866,7 +32880,7 @@ function wU(e, t, r, n, a, i) {
32866
32880
  ])
32867
32881
  ]);
32868
32882
  }
32869
- const SU = /* @__PURE__ */ re(gU, [["render", wU]]), f_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32883
+ const DU = /* @__PURE__ */ re(bU, [["render", xU]]), f_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
32870
32884
  __proto__: null,
32871
32885
  IconAdd: bd,
32872
32886
  IconAlert: T_,
@@ -32911,11 +32925,11 @@ const SU = /* @__PURE__ */ re(gU, [["render", wU]]), f_ = /* @__PURE__ */ Object
32911
32925
  OcMy: sW,
32912
32926
  OcNumberRoll: $2,
32913
32927
  OcReport: dW,
32914
- OcScan: bW,
32928
+ OcScan: TW,
32915
32929
  OcSearchBar: B2,
32916
- OcSkeleton: YW,
32917
- OcTable: ZW,
32918
- OcWorkflow: SU,
32930
+ OcSkeleton: ZW,
32931
+ OcTable: eU,
32932
+ OcWorkflow: DU,
32919
32933
  commonStore: oe,
32920
32934
  fnClearUser: fp,
32921
32935
  fnDownload: k2,
@@ -32928,27 +32942,27 @@ const SU = /* @__PURE__ */ re(gU, [["render", wU]]), f_ = /* @__PURE__ */ Object
32928
32942
  i18n: fa,
32929
32943
  userStore: G
32930
32944
  }, Symbol.toStringTag, { value: "Module" }));
32931
- var CU = pr, TU = function() {
32932
- return CU.Date.now();
32933
- }, xU = TU, DU = /\s/;
32934
- function AU(e) {
32935
- for (var t = e.length; t-- && DU.test(e.charAt(t)); )
32945
+ var AU = pr, MU = function() {
32946
+ return AU.Date.now();
32947
+ }, NU = MU, PU = /\s/;
32948
+ function kU(e) {
32949
+ for (var t = e.length; t-- && PU.test(e.charAt(t)); )
32936
32950
  ;
32937
32951
  return t;
32938
32952
  }
32939
- var MU = AU, NU = MU, PU = /^\s+/;
32940
- function kU(e) {
32941
- return e && e.slice(0, NU(e) + 1).replace(PU, "");
32953
+ var EU = kU, IU = EU, LU = /^\s+/;
32954
+ function OU(e) {
32955
+ return e && e.slice(0, IU(e) + 1).replace(LU, "");
32942
32956
  }
32943
- var EU = kU, IU = ss, LU = Bi, OU = "[object Symbol]";
32944
- function RU(e) {
32945
- return typeof e == "symbol" || LU(e) && IU(e) == OU;
32957
+ var RU = OU, $U = ss, BU = Bi, VU = "[object Symbol]";
32958
+ function FU(e) {
32959
+ return typeof e == "symbol" || BU(e) && $U(e) == VU;
32946
32960
  }
32947
- var $U = RU, BU = EU, h_ = Na, VU = $U, d_ = NaN, FU = /^[-+]0x[0-9a-f]+$/i, zU = /^0b[01]+$/i, GU = /^0o[0-7]+$/i, HU = parseInt;
32948
- function WU(e) {
32961
+ var zU = FU, GU = RU, h_ = Na, HU = zU, d_ = NaN, WU = /^[-+]0x[0-9a-f]+$/i, UU = /^0b[01]+$/i, YU = /^0o[0-7]+$/i, qU = parseInt;
32962
+ function jU(e) {
32949
32963
  if (typeof e == "number")
32950
32964
  return e;
32951
- if (VU(e))
32965
+ if (HU(e))
32952
32966
  return d_;
32953
32967
  if (h_(e)) {
32954
32968
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -32956,16 +32970,16 @@ function WU(e) {
32956
32970
  }
32957
32971
  if (typeof e != "string")
32958
32972
  return e === 0 ? e : +e;
32959
- e = BU(e);
32960
- var r = zU.test(e);
32961
- return r || GU.test(e) ? HU(e.slice(2), r ? 2 : 8) : FU.test(e) ? d_ : +e;
32973
+ e = GU(e);
32974
+ var r = UU.test(e);
32975
+ return r || YU.test(e) ? qU(e.slice(2), r ? 2 : 8) : WU.test(e) ? d_ : +e;
32962
32976
  }
32963
- var UU = WU, YU = Na, Jf = xU, v_ = UU, qU = "Expected a function", jU = Math.max, XU = Math.min;
32964
- function ZU(e, t, r) {
32977
+ var XU = jU, ZU = Na, Jf = NU, v_ = XU, KU = "Expected a function", JU = Math.max, QU = Math.min;
32978
+ function eY(e, t, r) {
32965
32979
  var n, a, i, o, s, l, u = 0, c = !1, f = !1, d = !0;
32966
32980
  if (typeof e != "function")
32967
- throw new TypeError(qU);
32968
- t = v_(t) || 0, YU(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? jU(v_(r.maxWait) || 0, t) : i, d = "trailing" in r ? !!r.trailing : d);
32981
+ throw new TypeError(KU);
32982
+ t = v_(t) || 0, ZU(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? JU(v_(r.maxWait) || 0, t) : i, d = "trailing" in r ? !!r.trailing : d);
32969
32983
  function h(S) {
32970
32984
  var x = n, b = a;
32971
32985
  return n = a = void 0, u = S, o = e.apply(b, x), o;
@@ -32975,7 +32989,7 @@ function ZU(e, t, r) {
32975
32989
  }
32976
32990
  function g(S) {
32977
32991
  var x = S - l, b = S - u, T = t - x;
32978
- return f ? XU(T, i - b) : T;
32992
+ return f ? QU(T, i - b) : T;
32979
32993
  }
32980
32994
  function p(S) {
32981
32995
  var x = S - l, b = S - u;
@@ -33008,16 +33022,16 @@ function ZU(e, t, r) {
33008
33022
  }
33009
33023
  return C.cancel = y, C.flush = w, C;
33010
33024
  }
33011
- var KU = ZU;
33012
- const JU = /* @__PURE__ */ l2(KU);
33025
+ var tY = eY;
33026
+ const rY = /* @__PURE__ */ l2(tY);
33013
33027
  let hp = 3840, dp = 2160;
33014
- const QU = hd({
33028
+ const nY = hd({
33015
33029
  scale: 1
33016
33030
  });
33017
- function TY(e, t) {
33031
+ function NY(e, t) {
33018
33032
  hp = e, dp = t;
33019
33033
  }
33020
- function eY() {
33034
+ function aY() {
33021
33035
  let e = 1;
33022
33036
  const t = window.innerWidth, r = window.innerHeight, n = hp, a = dp, i = parseFloat(
33023
33037
  (n / a).toFixed(5)
@@ -33033,17 +33047,17 @@ function eY() {
33033
33047
  );
33034
33048
  e = s > 1 ? 1 : s;
33035
33049
  }
33036
- QU.scale = e;
33050
+ nY.scale = e;
33037
33051
  }
33038
- function xY() {
33039
- const e = JU(eY, 200);
33052
+ function PY() {
33053
+ const e = rY(aY, 200);
33040
33054
  return e(), window.addEventListener("resize", e), () => {
33041
33055
  hp = 3840, dp = 2160, window.removeEventListener("resize", e);
33042
33056
  };
33043
33057
  }
33044
- const DY = (e) => !!(G.kind === -1 || G.kind === 99 || G.iot_menu_authorization.includes(e)), AY = (e) => G.platform_tdm ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.tdm_menu_authorization.includes(e) : !1, MY = (e) => G.platform_qms ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.qms_menu_authorization.includes(e) : !1, NY = (e) => G.platform_twin ? (G.kind === -1 || G.kind === 99 || e === "home", !0) : !1, PY = (e) => !!(G.kind === -1 || G.kind === 99 || G.maintain_menu_authorization.includes(e)), kY = (e) => !!(G.kind === -1 || G.kind === 99 || G.order_menu_authorization.includes(e)), tY = "2.0.102";
33058
+ const kY = (e) => !!(G.kind === -1 || G.kind === 99 || G.iot_menu_authorization.includes(e)), EY = (e) => G.platform_tdm ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.tdm_menu_authorization.includes(e) : !1, IY = (e) => G.platform_qms ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.qms_menu_authorization.includes(e) : !1, LY = (e) => G.platform_twin ? (G.kind === -1 || G.kind === 99 || e === "home", !0) : !1, OY = (e) => !!(G.kind === -1 || G.kind === 99 || G.maintain_menu_authorization.includes(e)), RY = (e) => !!(G.kind === -1 || G.kind === 99 || G.order_menu_authorization.includes(e)), iY = "2.0.104";
33045
33059
  let ml = "";
33046
- const Me = navigator.userAgent.toLocaleUpperCase(), rY = () => {
33060
+ const Me = navigator.userAgent.toLocaleUpperCase(), oY = () => {
33047
33061
  const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, r = /WINDOWS NT 7.[\d]+/, n = /WINDOWS NT 10.[\d]+/, a = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, l = /MAC/;
33048
33062
  if (e.test(Me))
33049
33063
  return "Windows XP";
@@ -33072,7 +33086,7 @@ const Me = navigator.userAgent.toLocaleUpperCase(), rY = () => {
33072
33086
  return `MAC ${c ? c[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
33073
33087
  }
33074
33088
  return "Other Platform";
33075
- }, nY = () => {
33089
+ }, sY = () => {
33076
33090
  const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, r = /FIREFOX\/[\d.]+/, n = /CHROME\/[\d.]+/, a = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, l = /ANDROID [\d.]+/;
33077
33091
  if (e.test(Me) && o.test(Me))
33078
33092
  return "SogouIE";
@@ -33112,10 +33126,10 @@ function p_(e, t, r, n = !1) {
33112
33126
  typeof i == "function" && (e[t] = i);
33113
33127
  }
33114
33128
  }
33115
- function aY(e, t, r, n = !1) {
33129
+ function lY(e, t, r, n = !1) {
33116
33130
  e.addEventListener(t, r, n);
33117
33131
  }
33118
- function iY() {
33132
+ function uY() {
33119
33133
  if (!("XMLHttpRequest" in window))
33120
33134
  return;
33121
33135
  const e = XMLHttpRequest.prototype;
@@ -33130,7 +33144,7 @@ function iY() {
33130
33144
  const { url: n } = this.xhr;
33131
33145
  this.ontimeout = function() {
33132
33146
  fu(3, n, "Network Timeout");
33133
- }, aY(this, "loadend", function() {
33147
+ }, lY(this, "loadend", function() {
33134
33148
  try {
33135
33149
  const a = JSON.parse(this.response);
33136
33150
  (this.status === 500 || this.status === 405) && fu(3, n, `${r[0]}-${this.status}-${this.response}`);
@@ -33139,8 +33153,8 @@ function iY() {
33139
33153
  }), t.apply(this, r);
33140
33154
  });
33141
33155
  }
33142
- function oY(e, t) {
33143
- ml = typeof t == "string" ? t : ml, !(!t || !ml) && (iY(), window.addEventListener(
33156
+ function cY(e, t) {
33157
+ ml = typeof t == "string" ? t : ml, !(!t || !ml) && (uY(), window.addEventListener(
33144
33158
  "error",
33145
33159
  function(r) {
33146
33160
  fu(1, window.location.href, r);
@@ -33161,8 +33175,8 @@ const fu = (e, t, r) => {
33161
33175
  key: "c604902e-4088-4c64-bc73-edfbc971805b",
33162
33176
  url: encodeURIComponent(t || location.href),
33163
33177
  title: document.title,
33164
- browser: nY(),
33165
- platform: rY(),
33178
+ browser: sY(),
33179
+ platform: oY(),
33166
33180
  system: oe.platformName,
33167
33181
  message: e === 1 || e === 2 ? r.message : r,
33168
33182
  // routerHistory: [], // historyStore.history
@@ -33195,16 +33209,16 @@ async function z2() {
33195
33209
  );
33196
33210
  return e.headers.get("etag") || e.headers.get("last-modified");
33197
33211
  }
33198
- async function sY() {
33212
+ async function fY() {
33199
33213
  const e = await z2();
33200
33214
  F2 !== e && dD(!0);
33201
33215
  }
33202
- async function lY() {
33216
+ async function hY() {
33203
33217
  F2 = await z2(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
33204
- sY();
33218
+ fY();
33205
33219
  }, 60 * 1e3);
33206
33220
  }
33207
- function uY({ components: e = [] } = {}) {
33221
+ function dY({ components: e = [] } = {}) {
33208
33222
  const t = [];
33209
33223
  function r(a, i, o) {
33210
33224
  a.component(i) || a.component(i, o);
@@ -33224,19 +33238,19 @@ function uY({ components: e = [] } = {}) {
33224
33238
  language: c = !1,
33225
33239
  local: f = "zh-CN"
33226
33240
  } = i, d = Yt("theme", !1), h = Yt("lang", f);
33227
- hD(o), KG(u), fD(c), Fo(h), bu(d), fa.global.locale.value = h, l && lY(), s && oY(a, s);
33241
+ hD(o), KG(u), fD(c), Fo(h), bu(d), fa.global.locale.value = h, l && hY(), s && cY(a, s);
33228
33242
  }
33229
33243
  }
33230
33244
  return {
33231
- version: tY,
33245
+ version: iY,
33232
33246
  install: n
33233
33247
  };
33234
33248
  }
33235
- const cY = uY({
33249
+ const vY = dY({
33236
33250
  components: Object.keys(f_).map(
33237
33251
  (e) => f_[e]
33238
33252
  )
33239
- }), EY = cY.install;
33253
+ }), $Y = vY.install;
33240
33254
  export {
33241
33255
  uD as CUSTOM,
33242
33256
  B_ as FILE,
@@ -33284,51 +33298,53 @@ export {
33284
33298
  sW as OcMy,
33285
33299
  $2 as OcNumberRoll,
33286
33300
  dW as OcReport,
33287
- bW as OcScan,
33301
+ TW as OcScan,
33288
33302
  B2 as OcSearchBar,
33289
- YW as OcSkeleton,
33290
- ZW as OcTable,
33291
- SU as OcWorkflow,
33303
+ ZW as OcSkeleton,
33304
+ eU as OcTable,
33305
+ DU as OcWorkflow,
33292
33306
  Pt as POST,
33293
33307
  oe as commonStore,
33294
- uY as create,
33308
+ dY as create,
33295
33309
  UH as darkTheme,
33296
- cY as default,
33297
- CY as fnCancelFetch,
33298
- NY as fnCheckDashRole,
33299
- DY as fnCheckIoTRole,
33300
- PY as fnCheckMaintainRole,
33301
- kY as fnCheckOrderRole,
33302
- MY as fnCheckQMSRole,
33303
- AY as fnCheckTDMRole,
33310
+ vY as default,
33311
+ AY as fnCancelFetch,
33312
+ LY as fnCheckDashRole,
33313
+ kY as fnCheckIoTRole,
33314
+ OY as fnCheckMaintainRole,
33315
+ RY as fnCheckOrderRole,
33316
+ IY as fnCheckQMSRole,
33317
+ EY as fnCheckTDMRole,
33304
33318
  fp as fnClearUser,
33305
- eY as fnComputedScale,
33319
+ aY as fnComputedScale,
33306
33320
  _l as fnDecodeCursor,
33307
33321
  mu as fnDelStorage,
33308
33322
  nD as fnDeleteLoad,
33309
33323
  k2 as fnDownload,
33310
33324
  ra as fnEncodeCursor,
33311
33325
  pn as fnFormatTime,
33312
- SY as fnFormatUnits,
33313
- wY as fnFullScreen,
33326
+ DY as fnFormatUnits,
33327
+ xY as fnFullScreen,
33314
33328
  Yt as fnGetStorage,
33315
33329
  cp as fnGetUser,
33316
- xY as fnListenerScale,
33330
+ PY as fnListenerScale,
33317
33331
  yu as fnPageModel2Naive,
33318
33332
  _u as fnPageNaive2Model,
33319
33333
  Sa as fnRenderAction,
33320
33334
  eh as fnScrollTop,
33321
33335
  Fo as fnSetLang,
33322
- TY as fnSetNormalWidthAndHeight,
33336
+ NY as fnSetNormalWidthAndHeight,
33323
33337
  ir as fnSetStorage,
33324
33338
  bu as fnSetTheme,
33325
33339
  I2 as fnSetUser,
33326
- bY as fnThrottle,
33340
+ TY as fnThrottle,
33327
33341
  L2 as fnUserLogout,
33328
33342
  fo as getDefaultDate,
33329
33343
  fa as i18n,
33330
- EY as install,
33344
+ $Y as install,
33331
33345
  WH as lightTheme,
33332
- QU as scaleStore,
33346
+ nY as scaleStore,
33347
+ mW as useDebounceFn,
33348
+ MY as useThrottleFn,
33333
33349
  G as userStore
33334
33350
  };