@jt-home/mfe-components 1.0.51 → 1.0.53

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/dist/index.mjs CHANGED
@@ -1,9 +1,36 @@
1
1
  import './style.css';
2
2
  import { t as Z, J as Ft, i as Un } from "./index-CTj7lrC9.js";
3
- import { a as ps, g as ms, n as vs, r as hs, s as gs, b as ys } from "./index-CTj7lrC9.js";
4
- import { defineComponent as pe, useAttrs as Hn, computed as M, openBlock as I, createBlock as U, mergeProps as ae, toHandlers as et, withCtx as W, renderSlot as te, resolveDynamicComponent as Yt, createCommentVNode as fe, ref as ge, watch as Le, mergeDefaults as Jn, withKeys as Wn, createElementBlock as G, Fragment as Se, renderList as ye, normalizeStyle as $t, nextTick as Zn, useSlots as Pe, normalizeClass as We, createVNode as ke, withModifiers as Ut, unref as J, createSlots as Re, createElementVNode as ne, toDisplayString as oe, normalizeProps as Oe, guardReactiveProps as Be, useModel as vt, withDirectives as Qn, mergeModels as Bt, shallowRef as je, onMounted as Ht, onBeforeUnmount as Xn, createTextVNode as He, resolveComponent as eo, onErrorCaptured as to } from "vue";
3
+ import { a as Rs, g as zs, n as xs, r as qs, s as Gs, b as Ks } from "./index-CTj7lrC9.js";
4
+ import { defineComponent as pe, useAttrs as Hn, computed as M, openBlock as I, createBlock as U, mergeProps as ae, toHandlers as et, withCtx as W, renderSlot as te, resolveDynamicComponent as Yt, createCommentVNode as fe, ref as ge, watch as Le, mergeDefaults as Jn, withKeys as Wn, createElementBlock as K, Fragment as Se, renderList as ye, normalizeStyle as $t, nextTick as Zn, useSlots as Pe, normalizeClass as We, createVNode as ke, withModifiers as Ut, unref as J, createSlots as Ne, createElementVNode as ne, toDisplayString as oe, normalizeProps as Oe, guardReactiveProps as Be, useModel as vt, withDirectives as Qn, mergeModels as Bt, shallowRef as je, onMounted as Ht, onBeforeUnmount as Xn, createTextVNode as He, resolveComponent as eo, onErrorCaptured as to } from "vue";
5
5
  import { ElButton as Ct, ElIcon as Jt, ElCascader as no, ElDatePicker as Wt, ElInput as Zt, ElSelect as Qt, ElOption as Xt, ElFormItem as en, ElForm as tn, ElTable as nn, ElTableColumn as on, ElPagination as oo, ElLoadingDirective as ro, ElInputNumber as ao, ElSwitch as so, ElPopconfirm as lo } from "element-plus/es";
6
+ import "element-plus/theme-chalk/base.css";
7
+ import "element-plus/theme-chalk/el-form.css";
8
+ import "element-plus/theme-chalk/el-form-item.css";
9
+ import "element-plus/theme-chalk/el-input.css";
10
+ import "element-plus/theme-chalk/el-switch.css";
11
+ import "element-plus/theme-chalk/el-input-number.css";
12
+ import "element-plus/theme-chalk/el-popper.css";
13
+ import "element-plus/theme-chalk/el-scrollbar.css";
14
+ import "element-plus/theme-chalk/el-button.css";
15
+ import "element-plus/theme-chalk/el-date-picker-panel.css";
16
+ import "element-plus/theme-chalk/el-date-picker.css";
17
+ import "element-plus/theme-chalk/el-tag.css";
18
+ import "element-plus/theme-chalk/el-option.css";
19
+ import "element-plus/theme-chalk/el-option-group.css";
20
+ import "element-plus/theme-chalk/el-select.css";
21
+ import "element-plus/theme-chalk/el-tooltip.css";
22
+ import "element-plus/theme-chalk/el-checkbox.css";
23
+ import "element-plus/theme-chalk/el-table.css";
24
+ import "element-plus/theme-chalk/el-table-column.css";
25
+ import "element-plus/theme-chalk/el-popover.css";
26
+ import "element-plus/theme-chalk/el-popconfirm.css";
27
+ import "element-plus/theme-chalk/el-radio.css";
28
+ import "element-plus/theme-chalk/el-virtual-list.css";
29
+ import "element-plus/theme-chalk/el-cascader-panel.css";
30
+ import "element-plus/theme-chalk/el-cascader.css";
6
31
  import { cascaderEmits as io, inputEmits as Lt, selectEmits as Pt } from "element-plus";
32
+ import "element-plus/theme-chalk/el-loading.css";
33
+ import "element-plus/theme-chalk/el-pagination.css";
7
34
  const bt = 2, co = 3;
8
35
  function uo(e) {
9
36
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
@@ -190,10 +217,10 @@ const ho = /* @__PURE__ */ pe({
190
217
  function $(f) {
191
218
  s("visibleChange", f);
192
219
  }
193
- function L(f) {
220
+ function V(f) {
194
221
  s("expandChange", f);
195
222
  }
196
- function V(f) {
223
+ function j(f) {
197
224
  s("removeTag", f);
198
225
  }
199
226
  return (f, S) => {
@@ -206,8 +233,8 @@ const ho = /* @__PURE__ */ pe({
206
233
  onBlur: g,
207
234
  onClear: w,
208
235
  onVisibleChange: $,
209
- onExpandChange: L,
210
- onRemoveTag: V
236
+ onExpandChange: V,
237
+ onRemoveTag: j
211
238
  }), null, 16, ["model-value"]);
212
239
  };
213
240
  }
@@ -430,7 +457,7 @@ const ho = /* @__PURE__ */ pe({
430
457
  const a = Xt, l = Qt;
431
458
  return I(), U(l, ae({ class: "jt-select" }, o.value, et(c.value)), {
432
459
  default: W(() => [
433
- (I(!0), G(Se, null, ye(s.options ?? [], (g) => (I(), U(a, ae({
460
+ (I(!0), K(Se, null, ye(s.options ?? [], (g) => (I(), U(a, ae({
434
461
  key: g.value,
435
462
  ref_for: !0
436
463
  }, g), null, 16))), 128))
@@ -472,7 +499,7 @@ const ho = /* @__PURE__ */ pe({
472
499
  return y.itemType === "select" || y.itemType === "remote-select" || y.itemType === "cascader" ? {
473
500
  ...h,
474
501
  options: y.options
475
- } : N(y.itemType) ? {
502
+ } : R(y.itemType) ? {
476
503
  ...h,
477
504
  type: "daterange"
478
505
  } : h;
@@ -482,7 +509,7 @@ const ho = /* @__PURE__ */ pe({
482
509
  }), $ = (y, h) => {
483
510
  t.formData[y] = h;
484
511
  };
485
- function L(y) {
512
+ function V(y) {
486
513
  return (h) => {
487
514
  if (h) {
488
515
  s.set(y, h);
@@ -491,7 +518,7 @@ const ho = /* @__PURE__ */ pe({
491
518
  s.delete(y);
492
519
  };
493
520
  }
494
- function V(y, h) {
521
+ function j(y, h) {
495
522
  Zn(() => {
496
523
  s.get(y)?.validate(h).catch(() => {
497
524
  });
@@ -510,16 +537,16 @@ const ho = /* @__PURE__ */ pe({
510
537
  }), k = (y) => ({
511
538
  gridColumn: `span ${f(t.span || y.span)}`
512
539
  });
513
- function N(y) {
540
+ function R(y) {
514
541
  return y === "daterange" || y === "date-range" || y === "dateRange";
515
542
  }
516
543
  return (y, h) => {
517
544
  const D = en;
518
- return I(), G("div", wo, [
519
- (I(!0), G(Se, null, ye(i.value, (b) => (I(), U(D, ae({
545
+ return I(), K("div", wo, [
546
+ (I(!0), K(Se, null, ye(i.value, (b) => (I(), U(D, ae({
520
547
  key: b.prop,
521
548
  ref_for: !0,
522
- ref: L(b.prop),
549
+ ref: V(b.prop),
523
550
  class: "jt-form-items__item",
524
551
  style: k(b),
525
552
  label: b.label,
@@ -532,8 +559,8 @@ const ho = /* @__PURE__ */ pe({
532
559
  ref_for: !0
533
560
  }, l(b), et(g(b)), {
534
561
  "onUpdate:modelValue": (A) => $(b.prop, A),
535
- onChange: () => V(b.prop, "change"),
536
- onBlur: () => V(b.prop, "blur")
562
+ onChange: () => j(b.prop, "change"),
563
+ onBlur: () => j(b.prop, "blur")
537
564
  }), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
538
565
  ]),
539
566
  _: 2
@@ -576,43 +603,43 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
576
603
  },
577
604
  emits: ["update:modelValue", "search", "reset"],
578
605
  setup(e, { expose: t, emit: n }) {
579
- const o = e, r = n, c = ge(), s = Pe(), i = ge({}), { searchDisabled: a, searchLoading: l, searchDone: g } = Co(), w = M(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), L = M(
606
+ const o = e, r = n, c = ge(), s = Pe(), i = ge({}), { searchDisabled: a, searchLoading: l, searchDone: g } = Co(), w = M(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), V = M(
580
607
  () => o.columns.filter((T) => T.search === !0)
581
- ), V = M(
608
+ ), j = M(
582
609
  () => Math.max(1, w.value.searchSpan ?? 4)
583
610
  ), f = M(
584
611
  () => Math.max(1, w.value.searchCollapsedRows ?? 1)
585
- ), S = M(() => V.value), k = M(
612
+ ), S = M(() => j.value), k = M(
586
613
  () => Math.max(1, S.value * f.value)
587
- ), N = M(() => V.value), y = M(
588
- () => P.value ? "264px" : "174px"
614
+ ), R = M(() => j.value), y = M(
615
+ () => F.value ? "264px" : "174px"
589
616
  ), h = M(
590
- () => K(w.value.searchLabelWidth ?? 84)
617
+ () => G(w.value.searchLabelWidth ?? 84)
591
618
  ), D = M(
592
619
  () => w.value.searchLabelPosition ?? "top"
593
620
  ), b = M(
594
621
  () => q(w.value.searchGutter, 16)
595
622
  ), A = M(
596
623
  () => q(w.value.searchRowGap, 10)
597
- ), v = M(
624
+ ), m = M(
598
625
  () => Q(w.value.searchPadding ?? "18px 4px 0")
599
- ), P = M(() => w.value.searchCollapse === !1 ? !1 : x(L.value) > k.value), j = M(() => {
600
- if (!P.value || !$.value) return L.value;
626
+ ), F = M(() => w.value.searchCollapse === !1 ? !1 : z(V.value) > k.value), P = M(() => {
627
+ if (!F.value || !$.value) return V.value;
601
628
  let T = 0;
602
- return L.value.filter((X) => {
629
+ return V.value.filter((X) => {
603
630
  const ue = E(X);
604
631
  return T + ue > k.value ? !1 : (T += ue, !0);
605
632
  });
606
- }), z = M(
607
- () => j.value.filter((T) => !!s[`${T.prop}-search`])
633
+ }), x = M(
634
+ () => P.value.filter((T) => !!s[`${T.prop}-search`])
608
635
  ), re = M(() => {
609
- const T = x(j.value);
610
- return j.value.length > 0 && j.value.length <= 2 && T < V.value;
636
+ const T = z(P.value);
637
+ return P.value.length > 0 && P.value.length <= 2 && T < j.value;
611
638
  }), le = M(() => {
612
- const T = x(j.value);
613
- return `${Math.min(V.value, T + 1)}`;
614
- }), R = M(
615
- () => j.value.map((T) => B(T))
639
+ const T = z(P.value);
640
+ return `${Math.min(j.value, T + 1)}`;
641
+ }), N = M(
642
+ () => P.value.map((T) => L(T))
616
643
  );
617
644
  Le(
618
645
  () => w.value.searchCollapsed,
@@ -626,12 +653,12 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
626
653
  },
627
654
  { deep: !0, immediate: !0 }
628
655
  );
629
- function F(T, X) {
656
+ function B(T, X) {
630
657
  if (a.value) return;
631
658
  const ue = { ...i.value, [T]: X };
632
659
  i.value = ue, r("update:modelValue", ue);
633
660
  }
634
- function B(T) {
661
+ function L(T) {
635
662
  const X = T.searchProps ?? {}, ue = T.searchType ?? "input";
636
663
  return {
637
664
  ...X,
@@ -656,7 +683,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
656
683
  },
657
684
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
658
685
  "onUpdate:modelValue": (de) => {
659
- d(X["onUpdate:modelValue"], de), F(T.prop, de);
686
+ d(X["onUpdate:modelValue"], de), B(T.prop, de);
660
687
  }
661
688
  };
662
689
  }
@@ -685,12 +712,12 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
685
712
  $.value = !$.value;
686
713
  }
687
714
  function E(T) {
688
- return Math.min(V.value, Math.max(1, T.searchSpan ?? 1));
715
+ return Math.min(j.value, Math.max(1, T.searchSpan ?? 1));
689
716
  }
690
- function x(T) {
717
+ function z(T) {
691
718
  return T.reduce((X, ue) => X + E(ue), 0);
692
719
  }
693
- function K(T) {
720
+ function G(T) {
694
721
  return typeof T == "number" ? `${T}px` : T;
695
722
  }
696
723
  function q(T, X) {
@@ -710,20 +737,20 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
710
737
  searchDone: g
711
738
  }), (T, X) => {
712
739
  const ue = tn;
713
- return I(), G("div", {
740
+ return I(), K("div", {
714
741
  class: We(["jt-filter-bar", [
715
742
  `is-label-${D.value}`,
716
743
  { "is-single-filter": re.value }
717
744
  ]]),
718
745
  style: $t({
719
- "--jt-filter-columns": V.value,
720
- "--jt-filter-field-columns": N.value,
746
+ "--jt-filter-columns": j.value,
747
+ "--jt-filter-field-columns": R.value,
721
748
  "--jt-filter-btns-width": y.value,
722
749
  "--jt-filter-actions-start": le.value,
723
750
  "--jt-filter-label-width": h.value,
724
751
  "--jt-filter-column-gap": `${b.value}px`,
725
752
  "--jt-filter-row-gap": `${A.value}px`,
726
- "--jt-filter-padding": v.value
753
+ "--jt-filter-padding": m.value
727
754
  })
728
755
  }, [
729
756
  ke(ue, {
@@ -739,10 +766,10 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
739
766
  }, {
740
767
  default: W(() => [
741
768
  ke(J($o), {
742
- configs: R.value,
769
+ configs: N.value,
743
770
  "form-data": i.value,
744
771
  style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
745
- }, Re({
772
+ }, Ne({
746
773
  actions: W(() => [
747
774
  ne("div", Oo, [
748
775
  te(T.$slots, "search-menu", {
@@ -752,7 +779,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
752
779
  collapsed: $.value,
753
780
  toggleCollapse: O
754
781
  }, () => [
755
- P.value ? (I(), U(J(rt), {
782
+ F.value ? (I(), U(J(rt), {
756
783
  key: 0,
757
784
  class: "jt-filter-bar__btn-collapse",
758
785
  onClick: O
@@ -807,13 +834,13 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
807
834
  ]),
808
835
  _: 2
809
836
  }, [
810
- ye(z.value, (de) => ({
837
+ ye(x.value, (de) => ({
811
838
  name: de.prop,
812
839
  fn: W(() => [
813
840
  te(T.$slots, `${de.prop}-search`, {
814
841
  value: i.value[de.prop],
815
842
  column: de,
816
- setValue: (me) => F(de.prop, me),
843
+ setValue: (me) => B(de.prop, me),
817
844
  search: u,
818
845
  reset: _,
819
846
  disabled: J(a)
@@ -856,20 +883,20 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
856
883
  };
857
884
  }
858
885
  function w(f) {
859
- return !l(f.prop) && !L(f.columnOptions?.type);
886
+ return !l(f.prop) && !V(f.columnOptions?.type);
860
887
  }
861
888
  function $(f) {
862
- return !L(f.columnOptions?.type);
889
+ return !V(f.columnOptions?.type);
863
890
  }
864
- function L(f) {
891
+ function V(f) {
865
892
  return f === "selection" || f === "index" || f === "expand";
866
893
  }
867
- function V(f, S) {
894
+ function j(f, S) {
868
895
  return f.find((k) => k.value === S)?.label ?? String(S ?? "");
869
896
  }
870
897
  return t({ tableRef: r }), (f, S) => {
871
- const k = on, N = nn;
872
- return I(), U(N, ae({
898
+ const k = on, R = nn;
899
+ return I(), U(R, ae({
873
900
  ref_key: "tableRef",
874
901
  ref: r,
875
902
  data: f.data,
@@ -891,13 +918,13 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
891
918
  width: "60",
892
919
  align: "center"
893
920
  }, null, 8, ["label"])) : fe("", !0),
894
- (I(!0), G(Se, null, ye(s.value, (y) => (I(), U(k, ae({
921
+ (I(!0), K(Se, null, ye(s.value, (y) => (I(), U(k, ae({
895
922
  key: y.prop,
896
923
  prop: y.prop,
897
924
  label: y.label,
898
925
  formatter: !l(y.prop) && !y.dicData ? y.formatter : void 0,
899
926
  ref_for: !0
900
- }, g(y)), Re({ _: 2 }, [
927
+ }, g(y)), Ne({ _: 2 }, [
901
928
  a(y.prop) ? {
902
929
  name: "header",
903
930
  fn: W((h) => [
@@ -911,12 +938,12 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
911
938
  l(y.prop) ? te(f.$slots, `${y.prop}-data`, ae({
912
939
  key: 0,
913
940
  ref_for: !0
914
- }, h), void 0, !0) : y.dicData ? (I(), G("span", Eo, oe(V(y.dicData, h.row[y.prop])), 1)) : y.formatter ? (I(), G("span", Vo, oe(y.formatter(
941
+ }, h), void 0, !0) : y.dicData ? (I(), K("span", Eo, oe(j(y.dicData, h.row[y.prop])), 1)) : y.formatter ? (I(), K("span", Vo, oe(y.formatter(
915
942
  h.row,
916
943
  h.column,
917
944
  h.row[y.prop],
918
945
  h.$index
919
- )), 1)) : (I(), G("span", jo, oe(h.row[y.prop]), 1))
946
+ )), 1)) : (I(), K("span", jo, oe(h.row[y.prop]), 1))
920
947
  ]),
921
948
  key: "1"
922
949
  } : void 0
@@ -939,7 +966,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
939
966
  }, 16, ["data", "row-key", "empty-text"]);
940
967
  };
941
968
  }
942
- }), Ro = /* @__PURE__ */ be(Ao, [["__scopeId", "data-v-da9a845b"]]), No = { class: "jt-pagination" }, zo = { class: "jt-pagination__count" }, xo = /* @__PURE__ */ pe({
969
+ }), No = /* @__PURE__ */ be(Ao, [["__scopeId", "data-v-da9a845b"]]), Ro = { class: "jt-pagination" }, zo = { class: "jt-pagination__count" }, xo = /* @__PURE__ */ pe({
943
970
  name: "JtPagination",
944
971
  __name: "JtPagination",
945
972
  props: {
@@ -956,7 +983,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
956
983
  }
957
984
  return (s, i) => {
958
985
  const a = oo;
959
- return I(), G("div", No, [
986
+ return I(), K("div", Ro, [
960
987
  ke(a, {
961
988
  "current-page": s.currentPage,
962
989
  "page-size": s.pageSize,
@@ -996,9 +1023,9 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
996
1023
  }),
997
1024
  emits: /* @__PURE__ */ Bt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
998
1025
  setup(e, { expose: t, emit: n }) {
999
- const o = e, r = n, c = vt(e, "currentPage"), s = vt(e, "pageSize"), i = vt(e, "searchModel"), a = Pe(), l = ge(), g = ge(), w = M(() => o.option), $ = M(() => w.value.searchShow !== !1), L = M(
1026
+ const o = e, r = n, c = vt(e, "currentPage"), s = vt(e, "pageSize"), i = vt(e, "searchModel"), a = Pe(), l = ge(), g = ge(), w = M(() => o.option), $ = M(() => w.value.searchShow !== !1), V = M(
1000
1027
  () => w.value.paginationShow !== !1
1001
- ), V = M(
1028
+ ), j = M(
1002
1029
  () => o.columns.filter((b) => b.search && !!a[`${b.prop}-search`])
1003
1030
  ), f = M(
1004
1031
  () => o.columns.filter((b) => !b.hide && !!a[`${b.prop}-header`])
@@ -1011,7 +1038,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1011
1038
  A.search && (b[A.prop] = void 0);
1012
1039
  }), b;
1013
1040
  }
1014
- function N() {
1041
+ function R() {
1015
1042
  r("search", { ...i.value });
1016
1043
  }
1017
1044
  function y() {
@@ -1033,8 +1060,8 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1033
1060
  /** 关闭筛选表单禁用。 */
1034
1061
  searchDone: D
1035
1062
  }), (b, A) => {
1036
- const v = ro;
1037
- return I(), G("div", Go, [
1063
+ const m = ro;
1064
+ return I(), K("div", Go, [
1038
1065
  te(b.$slots, "header", {}, void 0, !0),
1039
1066
  ne("div", Ko, [
1040
1067
  $.value ? (I(), U(Po, {
@@ -1042,72 +1069,72 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1042
1069
  ref_key: "filterBarRef",
1043
1070
  ref: g,
1044
1071
  modelValue: i.value,
1045
- "onUpdate:modelValue": A[0] || (A[0] = (P) => i.value = P),
1072
+ "onUpdate:modelValue": A[0] || (A[0] = (F) => i.value = F),
1046
1073
  columns: b.columns,
1047
1074
  option: w.value,
1048
- onSearch: N,
1075
+ onSearch: R,
1049
1076
  onReset: y
1050
- }, Re({ _: 2 }, [
1051
- ye(V.value, (P) => ({
1052
- name: `${P.prop}-search`,
1053
- fn: W((j) => [
1054
- te(b.$slots, `${P.prop}-search`, Oe(Be(j)), void 0, !0)
1077
+ }, Ne({ _: 2 }, [
1078
+ ye(j.value, (F) => ({
1079
+ name: `${F.prop}-search`,
1080
+ fn: W((P) => [
1081
+ te(b.$slots, `${F.prop}-search`, Oe(Be(P)), void 0, !0)
1055
1082
  ])
1056
1083
  }))
1057
1084
  ]), 1032, ["modelValue", "columns", "option"])) : fe("", !0)
1058
1085
  ]),
1059
1086
  ne("div", Yo, [
1060
1087
  ne("div", Uo, [
1061
- J(a).toolbar ? (I(), G("div", Ho, [
1088
+ J(a).toolbar ? (I(), K("div", Ho, [
1062
1089
  te(b.$slots, "toolbar", {}, void 0, !0)
1063
1090
  ])) : fe("", !0),
1064
- Qn((I(), U(Ro, {
1091
+ Qn((I(), U(No, {
1065
1092
  ref_key: "jtTableRef",
1066
1093
  ref: l,
1067
1094
  data: b.data,
1068
1095
  columns: b.columns,
1069
1096
  option: w.value,
1070
1097
  "table-events": b.tableEvents
1071
- }, Re({ _: 2 }, [
1072
- ye(f.value, (P) => ({
1073
- name: `${P.prop}-header`,
1074
- fn: W((j) => [
1075
- te(b.$slots, `${P.prop}-header`, Oe(Be(j)), void 0, !0)
1098
+ }, Ne({ _: 2 }, [
1099
+ ye(f.value, (F) => ({
1100
+ name: `${F.prop}-header`,
1101
+ fn: W((P) => [
1102
+ te(b.$slots, `${F.prop}-header`, Oe(Be(P)), void 0, !0)
1076
1103
  ])
1077
1104
  })),
1078
- ye(S.value, (P) => ({
1079
- name: `${P.prop}-data`,
1080
- fn: W((j) => [
1081
- te(b.$slots, `${P.prop}-data`, Oe(Be(j)), void 0, !0)
1105
+ ye(S.value, (F) => ({
1106
+ name: `${F.prop}-data`,
1107
+ fn: W((P) => [
1108
+ te(b.$slots, `${F.prop}-data`, Oe(Be(P)), void 0, !0)
1082
1109
  ])
1083
1110
  })),
1084
1111
  w.value.menu ? {
1085
1112
  name: "menu",
1086
- fn: W((P) => [
1087
- te(b.$slots, "menu", Oe(Be(P)), void 0, !0)
1113
+ fn: W((F) => [
1114
+ te(b.$slots, "menu", Oe(Be(F)), void 0, !0)
1088
1115
  ]),
1089
1116
  key: "0"
1090
1117
  } : void 0
1091
1118
  ]), 1032, ["data", "columns", "option", "table-events"])), [
1092
- [v, w.value.loading]
1119
+ [m, w.value.loading]
1093
1120
  ])
1094
1121
  ]),
1095
- L.value ? (I(), U(qo, {
1122
+ V.value ? (I(), U(qo, {
1096
1123
  key: 0,
1097
1124
  "current-page": c.value,
1098
- "onUpdate:currentPage": A[1] || (A[1] = (P) => c.value = P),
1125
+ "onUpdate:currentPage": A[1] || (A[1] = (F) => c.value = F),
1099
1126
  "page-size": s.value,
1100
- "onUpdate:pageSize": A[2] || (A[2] = (P) => s.value = P),
1127
+ "onUpdate:pageSize": A[2] || (A[2] = (F) => s.value = F),
1101
1128
  total: b.total,
1102
1129
  option: w.value,
1103
- onPageChange: A[3] || (A[3] = (P) => b.$emit("page-change", P)),
1104
- onSizeChange: A[4] || (A[4] = (P) => b.$emit("size-change", P))
1130
+ onPageChange: A[3] || (A[3] = (F) => b.$emit("page-change", F)),
1131
+ onSizeChange: A[4] || (A[4] = (F) => b.$emit("size-change", F))
1105
1132
  }, null, 8, ["current-page", "page-size", "total", "option"])) : fe("", !0)
1106
1133
  ])
1107
1134
  ]);
1108
1135
  };
1109
1136
  }
1110
- }), as = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-3454628a"]]), Wo = { class: "jt-page-header__title" }, Zo = { key: 0 }, Qo = {
1137
+ }), Bs = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-3454628a"]]), Wo = { class: "jt-page-header__title" }, Zo = { key: 0 }, Qo = {
1111
1138
  key: 0,
1112
1139
  class: "jt-page-header__operates"
1113
1140
  }, Xo = /* @__PURE__ */ pe({
@@ -1124,17 +1151,17 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1124
1151
  function s(i, a) {
1125
1152
  i.onClick?.(i, a), o("operate-click", i, a);
1126
1153
  }
1127
- return (i, a) => (I(), G("div", ae({
1154
+ return (i, a) => (I(), K("div", ae({
1128
1155
  class: ["jt-page-header", `jt-page-header--${i.type}`]
1129
1156
  }, i.$attrs), [
1130
1157
  ne("div", Wo, [
1131
1158
  te(i.$slots, "title", {}, () => [
1132
- i.title ? (I(), G("span", Zo, oe(i.title), 1)) : fe("", !0)
1159
+ i.title ? (I(), K("span", Zo, oe(i.title), 1)) : fe("", !0)
1133
1160
  ], !0)
1134
1161
  ]),
1135
- c.value ? (I(), G("div", Qo, [
1162
+ c.value ? (I(), K("div", Qo, [
1136
1163
  te(i.$slots, "operates", { operates: i.operates }, () => [
1137
- (I(!0), G(Se, null, ye(i.operates, (l) => (I(), U(J(rt), ae({
1164
+ (I(!0), K(Se, null, ye(i.operates, (l) => (I(), U(J(rt), ae({
1138
1165
  key: l.key ?? l.label,
1139
1166
  ref_for: !0
1140
1167
  }, l.buttonProps, {
@@ -1156,7 +1183,7 @@ const ko = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1156
1183
  ])) : fe("", !0)
1157
1184
  ], 16));
1158
1185
  }
1159
- }), ss = /* @__PURE__ */ be(Xo, [["__scopeId", "data-v-ead9571a"]]);
1186
+ }), Ls = /* @__PURE__ */ be(Xo, [["__scopeId", "data-v-ead9571a"]]);
1160
1187
  function er(e, t) {
1161
1188
  t = t || (() => "default-use-once-sync");
1162
1189
  const n = /* @__PURE__ */ new Map();
@@ -1199,152 +1226,152 @@ var cn = { exports: {} };
1199
1226
  (function(n, o) {
1200
1227
  e.exports = o();
1201
1228
  })(it, function() {
1202
- var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", s = "second", i = "minute", a = "hour", l = "day", g = "week", w = "month", $ = "quarter", L = "year", V = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
1203
- var F = ["th", "st", "nd", "rd"], B = R % 100;
1204
- return "[" + R + (F[(B - 20) % 10] || F[B] || F[0]) + "]";
1205
- } }, y = function(R, F, B) {
1206
- var d = String(R);
1207
- return !d || d.length >= F ? R : "" + Array(F + 1 - d.length).join(B) + R;
1208
- }, h = { s: y, z: function(R) {
1209
- var F = -R.utcOffset(), B = Math.abs(F), d = Math.floor(B / 60), u = B % 60;
1210
- return (F <= 0 ? "+" : "-") + y(d, 2, "0") + ":" + y(u, 2, "0");
1211
- }, m: function R(F, B) {
1212
- if (F.date() < B.date()) return -R(B, F);
1213
- var d = 12 * (B.year() - F.year()) + (B.month() - F.month()), u = F.clone().add(d, w), _ = B - u < 0, O = F.clone().add(d + (_ ? -1 : 1), w);
1214
- return +(-(d + (B - u) / (_ ? u - O : O - u)) || 0);
1215
- }, a: function(R) {
1216
- return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
1217
- }, p: function(R) {
1218
- return { M: w, y: L, w: g, d: l, D: V, h: a, m: i, s, ms: c, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1219
- }, u: function(R) {
1220
- return R === void 0;
1229
+ var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", s = "second", i = "minute", a = "hour", l = "day", g = "week", w = "month", $ = "quarter", V = "year", j = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
1230
+ var B = ["th", "st", "nd", "rd"], L = N % 100;
1231
+ return "[" + N + (B[(L - 20) % 10] || B[L] || B[0]) + "]";
1232
+ } }, y = function(N, B, L) {
1233
+ var d = String(N);
1234
+ return !d || d.length >= B ? N : "" + Array(B + 1 - d.length).join(L) + N;
1235
+ }, h = { s: y, z: function(N) {
1236
+ var B = -N.utcOffset(), L = Math.abs(B), d = Math.floor(L / 60), u = L % 60;
1237
+ return (B <= 0 ? "+" : "-") + y(d, 2, "0") + ":" + y(u, 2, "0");
1238
+ }, m: function N(B, L) {
1239
+ if (B.date() < L.date()) return -N(L, B);
1240
+ var d = 12 * (L.year() - B.year()) + (L.month() - B.month()), u = B.clone().add(d, w), _ = L - u < 0, O = B.clone().add(d + (_ ? -1 : 1), w);
1241
+ return +(-(d + (L - u) / (_ ? u - O : O - u)) || 0);
1242
+ }, a: function(N) {
1243
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
1244
+ }, p: function(N) {
1245
+ return { M: w, y: V, w: g, d: l, D: j, h: a, m: i, s, ms: c, Q: $ }[N] || String(N || "").toLowerCase().replace(/s$/, "");
1246
+ }, u: function(N) {
1247
+ return N === void 0;
1221
1248
  } }, D = "en", b = {};
1222
- b[D] = N;
1223
- var A = "$isDayjsObject", v = function(R) {
1224
- return R instanceof re || !(!R || !R[A]);
1225
- }, P = function R(F, B, d) {
1249
+ b[D] = R;
1250
+ var A = "$isDayjsObject", m = function(N) {
1251
+ return N instanceof re || !(!N || !N[A]);
1252
+ }, F = function N(B, L, d) {
1226
1253
  var u;
1227
- if (!F) return D;
1228
- if (typeof F == "string") {
1229
- var _ = F.toLowerCase();
1230
- b[_] && (u = _), B && (b[_] = B, u = _);
1231
- var O = F.split("-");
1232
- if (!u && O.length > 1) return R(O[0]);
1254
+ if (!B) return D;
1255
+ if (typeof B == "string") {
1256
+ var _ = B.toLowerCase();
1257
+ b[_] && (u = _), L && (b[_] = L, u = _);
1258
+ var O = B.split("-");
1259
+ if (!u && O.length > 1) return N(O[0]);
1233
1260
  } else {
1234
- var E = F.name;
1235
- b[E] = F, u = E;
1261
+ var E = B.name;
1262
+ b[E] = B, u = E;
1236
1263
  }
1237
1264
  return !d && u && (D = u), u || !d && D;
1238
- }, j = function(R, F) {
1239
- if (v(R)) return R.clone();
1240
- var B = typeof F == "object" ? F : {};
1241
- return B.date = R, B.args = arguments, new re(B);
1242
- }, z = h;
1243
- z.l = P, z.i = v, z.w = function(R, F) {
1244
- return j(R, { locale: F.$L, utc: F.$u, x: F.$x, $offset: F.$offset });
1265
+ }, P = function(N, B) {
1266
+ if (m(N)) return N.clone();
1267
+ var L = typeof B == "object" ? B : {};
1268
+ return L.date = N, L.args = arguments, new re(L);
1269
+ }, x = h;
1270
+ x.l = F, x.i = m, x.w = function(N, B) {
1271
+ return P(N, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
1245
1272
  };
1246
1273
  var re = function() {
1247
- function R(B) {
1248
- this.$L = P(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[A] = !0;
1274
+ function N(L) {
1275
+ this.$L = F(L.locale, null, !0), this.parse(L), this.$x = this.$x || L.x || {}, this[A] = !0;
1249
1276
  }
1250
- var F = R.prototype;
1251
- return F.parse = function(B) {
1277
+ var B = N.prototype;
1278
+ return B.parse = function(L) {
1252
1279
  this.$d = function(d) {
1253
1280
  var u = d.date, _ = d.utc;
1254
1281
  if (u === null) return /* @__PURE__ */ new Date(NaN);
1255
- if (z.u(u)) return /* @__PURE__ */ new Date();
1282
+ if (x.u(u)) return /* @__PURE__ */ new Date();
1256
1283
  if (u instanceof Date) return new Date(u);
1257
1284
  if (typeof u == "string" && !/Z$/i.test(u)) {
1258
1285
  var O = u.match(S);
1259
1286
  if (O) {
1260
- var E = O[2] - 1 || 0, x = (O[7] || "0").substring(0, 3);
1261
- return _ ? new Date(Date.UTC(O[1], E, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, x)) : new Date(O[1], E, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, x);
1287
+ var E = O[2] - 1 || 0, z = (O[7] || "0").substring(0, 3);
1288
+ return _ ? new Date(Date.UTC(O[1], E, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z)) : new Date(O[1], E, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z);
1262
1289
  }
1263
1290
  }
1264
1291
  return new Date(u);
1265
- }(B), this.init();
1266
- }, F.init = function() {
1267
- var B = this.$d;
1268
- this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
1269
- }, F.$utils = function() {
1270
- return z;
1271
- }, F.isValid = function() {
1292
+ }(L), this.init();
1293
+ }, B.init = function() {
1294
+ var L = this.$d;
1295
+ this.$y = L.getFullYear(), this.$M = L.getMonth(), this.$D = L.getDate(), this.$W = L.getDay(), this.$H = L.getHours(), this.$m = L.getMinutes(), this.$s = L.getSeconds(), this.$ms = L.getMilliseconds();
1296
+ }, B.$utils = function() {
1297
+ return x;
1298
+ }, B.isValid = function() {
1272
1299
  return this.$d.toString() !== f;
1273
- }, F.isSame = function(B, d) {
1274
- var u = j(B);
1300
+ }, B.isSame = function(L, d) {
1301
+ var u = P(L);
1275
1302
  return this.startOf(d) <= u && u <= this.endOf(d);
1276
- }, F.isAfter = function(B, d) {
1277
- return j(B) < this.startOf(d);
1278
- }, F.isBefore = function(B, d) {
1279
- return this.endOf(d) < j(B);
1280
- }, F.$g = function(B, d, u) {
1281
- return z.u(B) ? this[d] : this.set(u, B);
1282
- }, F.unix = function() {
1303
+ }, B.isAfter = function(L, d) {
1304
+ return P(L) < this.startOf(d);
1305
+ }, B.isBefore = function(L, d) {
1306
+ return this.endOf(d) < P(L);
1307
+ }, B.$g = function(L, d, u) {
1308
+ return x.u(L) ? this[d] : this.set(u, L);
1309
+ }, B.unix = function() {
1283
1310
  return Math.floor(this.valueOf() / 1e3);
1284
- }, F.valueOf = function() {
1311
+ }, B.valueOf = function() {
1285
1312
  return this.$d.getTime();
1286
- }, F.startOf = function(B, d) {
1287
- var u = this, _ = !!z.u(d) || d, O = z.p(B), E = function(de, me) {
1288
- var we = z.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
1313
+ }, B.startOf = function(L, d) {
1314
+ var u = this, _ = !!x.u(d) || d, O = x.p(L), E = function(de, me) {
1315
+ var we = x.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
1289
1316
  return _ ? we : we.endOf(l);
1290
- }, x = function(de, me) {
1291
- return z.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1292
- }, K = this.$W, q = this.$M, Q = this.$D, T = "set" + (this.$u ? "UTC" : "");
1317
+ }, z = function(de, me) {
1318
+ return x.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1319
+ }, G = this.$W, q = this.$M, Q = this.$D, T = "set" + (this.$u ? "UTC" : "");
1293
1320
  switch (O) {
1294
- case L:
1321
+ case V:
1295
1322
  return _ ? E(1, 0) : E(31, 11);
1296
1323
  case w:
1297
1324
  return _ ? E(1, q) : E(0, q + 1);
1298
1325
  case g:
1299
- var X = this.$locale().weekStart || 0, ue = (K < X ? K + 7 : K) - X;
1326
+ var X = this.$locale().weekStart || 0, ue = (G < X ? G + 7 : G) - X;
1300
1327
  return E(_ ? Q - ue : Q + (6 - ue), q);
1301
1328
  case l:
1302
- case V:
1303
- return x(T + "Hours", 0);
1329
+ case j:
1330
+ return z(T + "Hours", 0);
1304
1331
  case a:
1305
- return x(T + "Minutes", 1);
1332
+ return z(T + "Minutes", 1);
1306
1333
  case i:
1307
- return x(T + "Seconds", 2);
1334
+ return z(T + "Seconds", 2);
1308
1335
  case s:
1309
- return x(T + "Milliseconds", 3);
1336
+ return z(T + "Milliseconds", 3);
1310
1337
  default:
1311
1338
  return this.clone();
1312
1339
  }
1313
- }, F.endOf = function(B) {
1314
- return this.startOf(B, !1);
1315
- }, F.$set = function(B, d) {
1316
- var u, _ = z.p(B), O = "set" + (this.$u ? "UTC" : ""), E = (u = {}, u[l] = O + "Date", u[V] = O + "Date", u[w] = O + "Month", u[L] = O + "FullYear", u[a] = O + "Hours", u[i] = O + "Minutes", u[s] = O + "Seconds", u[c] = O + "Milliseconds", u)[_], x = _ === l ? this.$D + (d - this.$W) : d;
1317
- if (_ === w || _ === L) {
1318
- var K = this.clone().set(V, 1);
1319
- K.$d[E](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
1320
- } else E && this.$d[E](x);
1340
+ }, B.endOf = function(L) {
1341
+ return this.startOf(L, !1);
1342
+ }, B.$set = function(L, d) {
1343
+ var u, _ = x.p(L), O = "set" + (this.$u ? "UTC" : ""), E = (u = {}, u[l] = O + "Date", u[j] = O + "Date", u[w] = O + "Month", u[V] = O + "FullYear", u[a] = O + "Hours", u[i] = O + "Minutes", u[s] = O + "Seconds", u[c] = O + "Milliseconds", u)[_], z = _ === l ? this.$D + (d - this.$W) : d;
1344
+ if (_ === w || _ === V) {
1345
+ var G = this.clone().set(j, 1);
1346
+ G.$d[E](z), G.init(), this.$d = G.set(j, Math.min(this.$D, G.daysInMonth())).$d;
1347
+ } else E && this.$d[E](z);
1321
1348
  return this.init(), this;
1322
- }, F.set = function(B, d) {
1323
- return this.clone().$set(B, d);
1324
- }, F.get = function(B) {
1325
- return this[z.p(B)]();
1326
- }, F.add = function(B, d) {
1349
+ }, B.set = function(L, d) {
1350
+ return this.clone().$set(L, d);
1351
+ }, B.get = function(L) {
1352
+ return this[x.p(L)]();
1353
+ }, B.add = function(L, d) {
1327
1354
  var u, _ = this;
1328
- B = Number(B);
1329
- var O = z.p(d), E = function(q) {
1330
- var Q = j(_);
1331
- return z.w(Q.date(Q.date() + Math.round(q * B)), _);
1355
+ L = Number(L);
1356
+ var O = x.p(d), E = function(q) {
1357
+ var Q = P(_);
1358
+ return x.w(Q.date(Q.date() + Math.round(q * L)), _);
1332
1359
  };
1333
- if (O === w) return this.set(w, this.$M + B);
1334
- if (O === L) return this.set(L, this.$y + B);
1360
+ if (O === w) return this.set(w, this.$M + L);
1361
+ if (O === V) return this.set(V, this.$y + L);
1335
1362
  if (O === l) return E(1);
1336
1363
  if (O === g) return E(7);
1337
- var x = (u = {}, u[i] = o, u[a] = r, u[s] = n, u)[O] || 1, K = this.$d.getTime() + B * x;
1338
- return z.w(K, this);
1339
- }, F.subtract = function(B, d) {
1340
- return this.add(-1 * B, d);
1341
- }, F.format = function(B) {
1364
+ var z = (u = {}, u[i] = o, u[a] = r, u[s] = n, u)[O] || 1, G = this.$d.getTime() + L * z;
1365
+ return x.w(G, this);
1366
+ }, B.subtract = function(L, d) {
1367
+ return this.add(-1 * L, d);
1368
+ }, B.format = function(L) {
1342
1369
  var d = this, u = this.$locale();
1343
1370
  if (!this.isValid()) return u.invalidDate || f;
1344
- var _ = B || "YYYY-MM-DDTHH:mm:ssZ", O = z.z(this), E = this.$H, x = this.$m, K = this.$M, q = u.weekdays, Q = u.months, T = u.meridiem, X = function(me, we, De, Ie) {
1371
+ var _ = L || "YYYY-MM-DDTHH:mm:ssZ", O = x.z(this), E = this.$H, z = this.$m, G = this.$M, q = u.weekdays, Q = u.months, T = u.meridiem, X = function(me, we, De, Ie) {
1345
1372
  return me && (me[we] || me(d, _)) || De[we].slice(0, Ie);
1346
1373
  }, ue = function(me) {
1347
- return z.s(E % 12 || 12, me, "0");
1374
+ return x.s(E % 12 || 12, me, "0");
1348
1375
  }, de = T || function(me, we, De) {
1349
1376
  var Ie = me < 12 ? "AM" : "PM";
1350
1377
  return De ? Ie.toLowerCase() : Ie;
@@ -1355,19 +1382,19 @@ var cn = { exports: {} };
1355
1382
  case "YY":
1356
1383
  return String(d.$y).slice(-2);
1357
1384
  case "YYYY":
1358
- return z.s(d.$y, 4, "0");
1385
+ return x.s(d.$y, 4, "0");
1359
1386
  case "M":
1360
- return K + 1;
1387
+ return G + 1;
1361
1388
  case "MM":
1362
- return z.s(K + 1, 2, "0");
1389
+ return x.s(G + 1, 2, "0");
1363
1390
  case "MMM":
1364
- return X(u.monthsShort, K, Q, 3);
1391
+ return X(u.monthsShort, G, Q, 3);
1365
1392
  case "MMMM":
1366
- return X(Q, K);
1393
+ return X(Q, G);
1367
1394
  case "D":
1368
1395
  return d.$D;
1369
1396
  case "DD":
1370
- return z.s(d.$D, 2, "0");
1397
+ return x.s(d.$D, 2, "0");
1371
1398
  case "d":
1372
1399
  return String(d.$W);
1373
1400
  case "dd":
@@ -1379,39 +1406,39 @@ var cn = { exports: {} };
1379
1406
  case "H":
1380
1407
  return String(E);
1381
1408
  case "HH":
1382
- return z.s(E, 2, "0");
1409
+ return x.s(E, 2, "0");
1383
1410
  case "h":
1384
1411
  return ue(1);
1385
1412
  case "hh":
1386
1413
  return ue(2);
1387
1414
  case "a":
1388
- return de(E, x, !0);
1415
+ return de(E, z, !0);
1389
1416
  case "A":
1390
- return de(E, x, !1);
1417
+ return de(E, z, !1);
1391
1418
  case "m":
1392
- return String(x);
1419
+ return String(z);
1393
1420
  case "mm":
1394
- return z.s(x, 2, "0");
1421
+ return x.s(z, 2, "0");
1395
1422
  case "s":
1396
1423
  return String(d.$s);
1397
1424
  case "ss":
1398
- return z.s(d.$s, 2, "0");
1425
+ return x.s(d.$s, 2, "0");
1399
1426
  case "SSS":
1400
- return z.s(d.$ms, 3, "0");
1427
+ return x.s(d.$ms, 3, "0");
1401
1428
  case "Z":
1402
1429
  return O;
1403
1430
  }
1404
1431
  return null;
1405
1432
  }(me) || O.replace(":", "");
1406
1433
  });
1407
- }, F.utcOffset = function() {
1434
+ }, B.utcOffset = function() {
1408
1435
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1409
- }, F.diff = function(B, d, u) {
1410
- var _, O = this, E = z.p(d), x = j(B), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
1411
- return z.m(O, x);
1436
+ }, B.diff = function(L, d, u) {
1437
+ var _, O = this, E = x.p(d), z = P(L), G = (z.utcOffset() - this.utcOffset()) * o, q = this - z, Q = function() {
1438
+ return x.m(O, z);
1412
1439
  };
1413
1440
  switch (E) {
1414
- case L:
1441
+ case V:
1415
1442
  _ = Q() / 12;
1416
1443
  break;
1417
1444
  case w:
@@ -1421,10 +1448,10 @@ var cn = { exports: {} };
1421
1448
  _ = Q() / 3;
1422
1449
  break;
1423
1450
  case g:
1424
- _ = (q - K) / 6048e5;
1451
+ _ = (q - G) / 6048e5;
1425
1452
  break;
1426
1453
  case l:
1427
- _ = (q - K) / 864e5;
1454
+ _ = (q - G) / 864e5;
1428
1455
  break;
1429
1456
  case a:
1430
1457
  _ = q / r;
@@ -1438,36 +1465,36 @@ var cn = { exports: {} };
1438
1465
  default:
1439
1466
  _ = q;
1440
1467
  }
1441
- return u ? _ : z.a(_);
1442
- }, F.daysInMonth = function() {
1468
+ return u ? _ : x.a(_);
1469
+ }, B.daysInMonth = function() {
1443
1470
  return this.endOf(w).$D;
1444
- }, F.$locale = function() {
1471
+ }, B.$locale = function() {
1445
1472
  return b[this.$L];
1446
- }, F.locale = function(B, d) {
1447
- if (!B) return this.$L;
1448
- var u = this.clone(), _ = P(B, d, !0);
1473
+ }, B.locale = function(L, d) {
1474
+ if (!L) return this.$L;
1475
+ var u = this.clone(), _ = F(L, d, !0);
1449
1476
  return _ && (u.$L = _), u;
1450
- }, F.clone = function() {
1451
- return z.w(this.$d, this);
1452
- }, F.toDate = function() {
1477
+ }, B.clone = function() {
1478
+ return x.w(this.$d, this);
1479
+ }, B.toDate = function() {
1453
1480
  return new Date(this.valueOf());
1454
- }, F.toJSON = function() {
1481
+ }, B.toJSON = function() {
1455
1482
  return this.isValid() ? this.toISOString() : null;
1456
- }, F.toISOString = function() {
1483
+ }, B.toISOString = function() {
1457
1484
  return this.$d.toISOString();
1458
- }, F.toString = function() {
1485
+ }, B.toString = function() {
1459
1486
  return this.$d.toUTCString();
1460
- }, R;
1487
+ }, N;
1461
1488
  }(), le = re.prototype;
1462
- return j.prototype = le, [["$ms", c], ["$s", s], ["$m", i], ["$H", a], ["$W", l], ["$M", w], ["$y", L], ["$D", V]].forEach(function(R) {
1463
- le[R[1]] = function(F) {
1464
- return this.$g(F, R[0], R[1]);
1489
+ return P.prototype = le, [["$ms", c], ["$s", s], ["$m", i], ["$H", a], ["$W", l], ["$M", w], ["$y", V], ["$D", j]].forEach(function(N) {
1490
+ le[N[1]] = function(B) {
1491
+ return this.$g(B, N[0], N[1]);
1465
1492
  };
1466
- }), j.extend = function(R, F) {
1467
- return R.$i || (R(F, re, j), R.$i = !0), j;
1468
- }, j.locale = P, j.isDayjs = v, j.unix = function(R) {
1469
- return j(1e3 * R);
1470
- }, j.en = b[D], j.Ls = b, j.p = {}, j;
1493
+ }), P.extend = function(N, B) {
1494
+ return N.$i || (N(B, re, P), N.$i = !0), P;
1495
+ }, P.locale = F, P.isDayjs = m, P.unix = function(N) {
1496
+ return P(1e3 * N);
1497
+ }, P.en = b[D], P.Ls = b, P.p = {}, P;
1471
1498
  });
1472
1499
  })(cn);
1473
1500
  var tr = cn.exports;
@@ -1486,25 +1513,25 @@ var un = { exports: {} };
1486
1513
  }, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
1487
1514
  (this.zone || (this.zone = {})).offset = function(k) {
1488
1515
  if (!k || k === "Z") return 0;
1489
- var N = k.match(/([+-]|\d\d)/g), y = 60 * N[1] + (+N[2] || 0);
1490
- return y === 0 ? 0 : N[0] === "+" ? -y : y;
1516
+ var R = k.match(/([+-]|\d\d)/g), y = 60 * R[1] + (+R[2] || 0);
1517
+ return y === 0 ? 0 : R[0] === "+" ? -y : y;
1491
1518
  }(S);
1492
1519
  }], $ = function(S) {
1493
1520
  var k = a[S];
1494
1521
  return k && (k.indexOf ? k : k.s.concat(k.f));
1495
- }, L = function(S, k) {
1496
- var N, y = a.meridiem;
1522
+ }, V = function(S, k) {
1523
+ var R, y = a.meridiem;
1497
1524
  if (y) {
1498
1525
  for (var h = 1; h <= 24; h += 1) if (S.indexOf(y(h, 0, k)) > -1) {
1499
- N = h > 12;
1526
+ R = h > 12;
1500
1527
  break;
1501
1528
  }
1502
- } else N = S === (k ? "pm" : "PM");
1503
- return N;
1504
- }, V = { A: [i, function(S) {
1505
- this.afternoon = L(S, !1);
1529
+ } else R = S === (k ? "pm" : "PM");
1530
+ return R;
1531
+ }, j = { A: [i, function(S) {
1532
+ this.afternoon = V(S, !1);
1506
1533
  }], a: [i, function(S) {
1507
- this.afternoon = L(S, !0);
1534
+ this.afternoon = V(S, !0);
1508
1535
  }], Q: [r, function(S) {
1509
1536
  this.month = 3 * (S - 1) + 1;
1510
1537
  }], S: [r, function(S) {
@@ -1514,14 +1541,14 @@ var un = { exports: {} };
1514
1541
  }], SSS: [/\d{3}/, function(S) {
1515
1542
  this.milliseconds = +S;
1516
1543
  }], s: [s, g("seconds")], ss: [s, g("seconds")], m: [s, g("minutes")], mm: [s, g("minutes")], H: [s, g("hours")], h: [s, g("hours")], HH: [s, g("hours")], hh: [s, g("hours")], D: [s, g("day")], DD: [c, g("day")], Do: [i, function(S) {
1517
- var k = a.ordinal, N = S.match(/\d+/);
1518
- if (this.day = N[0], k) for (var y = 1; y <= 31; y += 1) k(y).replace(/\[|\]/g, "") === S && (this.day = y);
1544
+ var k = a.ordinal, R = S.match(/\d+/);
1545
+ if (this.day = R[0], k) for (var y = 1; y <= 31; y += 1) k(y).replace(/\[|\]/g, "") === S && (this.day = y);
1519
1546
  }], w: [s, g("week")], ww: [c, g("week")], M: [s, g("month")], MM: [c, g("month")], MMM: [i, function(S) {
1520
- var k = $("months"), N = ($("monthsShort") || k.map(function(y) {
1547
+ var k = $("months"), R = ($("monthsShort") || k.map(function(y) {
1521
1548
  return y.slice(0, 3);
1522
1549
  })).indexOf(S) + 1;
1523
- if (N < 1) throw new Error();
1524
- this.month = N % 12 || N;
1550
+ if (R < 1) throw new Error();
1551
+ this.month = R % 12 || R;
1525
1552
  }], MMMM: [i, function(S) {
1526
1553
  var k = $("months").indexOf(S) + 1;
1527
1554
  if (k < 1) throw new Error();
@@ -1530,24 +1557,24 @@ var un = { exports: {} };
1530
1557
  this.year = l(S);
1531
1558
  }], YYYY: [/\d{4}/, g("year")], Z: w, ZZ: w };
1532
1559
  function f(S) {
1533
- var k, N;
1534
- k = S, N = a && a.formats;
1535
- for (var y = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(j, z, re) {
1560
+ var k, R;
1561
+ k = S, R = a && a.formats;
1562
+ for (var y = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(P, x, re) {
1536
1563
  var le = re && re.toUpperCase();
1537
- return z || N[re] || n[re] || N[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, F, B) {
1538
- return F || B.slice(1);
1564
+ return x || R[re] || n[re] || R[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, B, L) {
1565
+ return B || L.slice(1);
1539
1566
  });
1540
1567
  })).match(o), h = y.length, D = 0; D < h; D += 1) {
1541
- var b = y[D], A = V[b], v = A && A[0], P = A && A[1];
1542
- y[D] = P ? { regex: v, parser: P } : b.replace(/^\[|\]$/g, "");
1568
+ var b = y[D], A = j[b], m = A && A[0], F = A && A[1];
1569
+ y[D] = F ? { regex: m, parser: F } : b.replace(/^\[|\]$/g, "");
1543
1570
  }
1544
- return function(j) {
1545
- for (var z = {}, re = 0, le = 0; re < h; re += 1) {
1546
- var R = y[re];
1547
- if (typeof R == "string") le += R.length;
1571
+ return function(P) {
1572
+ for (var x = {}, re = 0, le = 0; re < h; re += 1) {
1573
+ var N = y[re];
1574
+ if (typeof N == "string") le += N.length;
1548
1575
  else {
1549
- var F = R.regex, B = R.parser, d = j.slice(le), u = F.exec(d)[0];
1550
- B.call(z, u), j = j.replace(u, "");
1576
+ var B = N.regex, L = N.parser, d = P.slice(le), u = B.exec(d)[0];
1577
+ L.call(x, u), P = P.replace(u, "");
1551
1578
  }
1552
1579
  }
1553
1580
  return function(_) {
@@ -1556,37 +1583,37 @@ var un = { exports: {} };
1556
1583
  var E = _.hours;
1557
1584
  O ? E < 12 && (_.hours += 12) : E === 12 && (_.hours = 0), delete _.afternoon;
1558
1585
  }
1559
- }(z), z;
1586
+ }(x), x;
1560
1587
  };
1561
1588
  }
1562
- return function(S, k, N) {
1563
- N.p.customParseFormat = !0, S && S.parseTwoDigitYear && (l = S.parseTwoDigitYear);
1589
+ return function(S, k, R) {
1590
+ R.p.customParseFormat = !0, S && S.parseTwoDigitYear && (l = S.parseTwoDigitYear);
1564
1591
  var y = k.prototype, h = y.parse;
1565
1592
  y.parse = function(D) {
1566
- var b = D.date, A = D.utc, v = D.args;
1593
+ var b = D.date, A = D.utc, m = D.args;
1567
1594
  this.$u = A;
1568
- var P = v[1];
1569
- if (typeof P == "string") {
1570
- var j = v[2] === !0, z = v[3] === !0, re = j || z, le = v[2];
1571
- z && (le = v[2]), a = this.$locale(), !j && le && (a = N.Ls[le]), this.$d = function(d, u, _, O) {
1595
+ var F = m[1];
1596
+ if (typeof F == "string") {
1597
+ var P = m[2] === !0, x = m[3] === !0, re = P || x, le = m[2];
1598
+ x && (le = m[2]), a = this.$locale(), !P && le && (a = R.Ls[le]), this.$d = function(d, u, _, O) {
1572
1599
  try {
1573
1600
  if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
1574
- var E = f(u)(d), x = E.year, K = E.month, q = E.day, Q = E.hours, T = E.minutes, X = E.seconds, ue = E.milliseconds, de = E.zone, me = E.week, we = /* @__PURE__ */ new Date(), De = q || (x || K ? 1 : we.getDate()), Ie = x || we.getFullYear(), xe = 0;
1575
- x && !K || (xe = K > 0 ? K - 1 : we.getMonth());
1576
- var qe, nt = Q || 0, Ge = T || 0, m = X || 0, p = ue || 0;
1577
- return de ? new Date(Date.UTC(Ie, xe, De, nt, Ge, m, p + 60 * de.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, xe, De, nt, Ge, m, p)) : (qe = new Date(Ie, xe, De, nt, Ge, m, p), me && (qe = O(qe).week(me).toDate()), qe);
1601
+ var E = f(u)(d), z = E.year, G = E.month, q = E.day, Q = E.hours, T = E.minutes, X = E.seconds, ue = E.milliseconds, de = E.zone, me = E.week, we = /* @__PURE__ */ new Date(), De = q || (z || G ? 1 : we.getDate()), Ie = z || we.getFullYear(), xe = 0;
1602
+ z && !G || (xe = G > 0 ? G - 1 : we.getMonth());
1603
+ var qe, nt = Q || 0, Ge = T || 0, v = X || 0, p = ue || 0;
1604
+ return de ? new Date(Date.UTC(Ie, xe, De, nt, Ge, v, p + 60 * de.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, xe, De, nt, Ge, v, p)) : (qe = new Date(Ie, xe, De, nt, Ge, v, p), me && (qe = O(qe).week(me).toDate()), qe);
1578
1605
  } catch {
1579
1606
  return /* @__PURE__ */ new Date("");
1580
1607
  }
1581
- }(b, P, A, N), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && b != this.format(P) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
1582
- } else if (P instanceof Array) for (var R = P.length, F = 1; F <= R; F += 1) {
1583
- v[1] = P[F - 1];
1584
- var B = N.apply(this, v);
1585
- if (B.isValid()) {
1586
- this.$d = B.$d, this.$L = B.$L, this.init();
1608
+ }(b, F, A, R), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && b != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
1609
+ } else if (F instanceof Array) for (var N = F.length, B = 1; B <= N; B += 1) {
1610
+ m[1] = F[B - 1];
1611
+ var L = R.apply(this, m);
1612
+ if (L.isValid()) {
1613
+ this.$d = L.$d, this.$L = L.$L, this.init();
1587
1614
  break;
1588
1615
  }
1589
- F === R && (this.$d = /* @__PURE__ */ new Date(""));
1616
+ B === N && (this.$d = /* @__PURE__ */ new Date(""));
1590
1617
  }
1591
1618
  else h.call(this, D);
1592
1619
  };
@@ -1602,51 +1629,51 @@ var dn = { exports: {} };
1602
1629
  })(it, function() {
1603
1630
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1604
1631
  return function(r, c, s) {
1605
- var i, a = function($, L, V) {
1606
- V === void 0 && (V = {});
1607
- var f = new Date($), S = function(k, N) {
1608
- N === void 0 && (N = {});
1609
- var y = N.timeZoneName || "short", h = k + "|" + y, D = o[h];
1632
+ var i, a = function($, V, j) {
1633
+ j === void 0 && (j = {});
1634
+ var f = new Date($), S = function(k, R) {
1635
+ R === void 0 && (R = {});
1636
+ var y = R.timeZoneName || "short", h = k + "|" + y, D = o[h];
1610
1637
  return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: k, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: y }), o[h] = D), D;
1611
- }(L, V);
1638
+ }(V, j);
1612
1639
  return S.formatToParts(f);
1613
- }, l = function($, L) {
1614
- for (var V = a($, L), f = [], S = 0; S < V.length; S += 1) {
1615
- var k = V[S], N = k.type, y = k.value, h = n[N];
1640
+ }, l = function($, V) {
1641
+ for (var j = a($, V), f = [], S = 0; S < j.length; S += 1) {
1642
+ var k = j[S], R = k.type, y = k.value, h = n[R];
1616
1643
  h >= 0 && (f[h] = parseInt(y, 10));
1617
1644
  }
1618
- var D = f[3], b = D === 24 ? 0 : D, A = f[0] + "-" + f[1] + "-" + f[2] + " " + b + ":" + f[4] + ":" + f[5] + ":000", v = +$;
1619
- return (s.utc(A).valueOf() - (v -= v % 1e3)) / 6e4;
1645
+ var D = f[3], b = D === 24 ? 0 : D, A = f[0] + "-" + f[1] + "-" + f[2] + " " + b + ":" + f[4] + ":" + f[5] + ":000", m = +$;
1646
+ return (s.utc(A).valueOf() - (m -= m % 1e3)) / 6e4;
1620
1647
  }, g = c.prototype;
1621
- g.tz = function($, L) {
1648
+ g.tz = function($, V) {
1622
1649
  $ === void 0 && ($ = i);
1623
- var V, f = this.utcOffset(), S = this.toDate(), k = S.toLocaleString("en-US", { timeZone: $ }), N = Math.round((S - new Date(k)) / 1e3 / 60), y = 15 * -Math.round(S.getTimezoneOffset() / 15) - N;
1624
- if (!Number(y)) V = this.utcOffset(0, L);
1625
- else if (V = s(k, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(y, !0), L) {
1626
- var h = V.utcOffset();
1627
- V = V.add(f - h, "minute");
1650
+ var j, f = this.utcOffset(), S = this.toDate(), k = S.toLocaleString("en-US", { timeZone: $ }), R = Math.round((S - new Date(k)) / 1e3 / 60), y = 15 * -Math.round(S.getTimezoneOffset() / 15) - R;
1651
+ if (!Number(y)) j = this.utcOffset(0, V);
1652
+ else if (j = s(k, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(y, !0), V) {
1653
+ var h = j.utcOffset();
1654
+ j = j.add(f - h, "minute");
1628
1655
  }
1629
- return V.$x.$timezone = $, V;
1656
+ return j.$x.$timezone = $, j;
1630
1657
  }, g.offsetName = function($) {
1631
- var L = this.$x.$timezone || s.tz.guess(), V = a(this.valueOf(), L, { timeZoneName: $ }).find(function(f) {
1658
+ var V = this.$x.$timezone || s.tz.guess(), j = a(this.valueOf(), V, { timeZoneName: $ }).find(function(f) {
1632
1659
  return f.type.toLowerCase() === "timezonename";
1633
1660
  });
1634
- return V && V.value;
1661
+ return j && j.value;
1635
1662
  };
1636
1663
  var w = g.startOf;
1637
- g.startOf = function($, L) {
1638
- if (!this.$x || !this.$x.$timezone) return w.call(this, $, L);
1639
- var V = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1640
- return w.call(V, $, L).tz(this.$x.$timezone, !0);
1641
- }, s.tz = function($, L, V) {
1642
- var f = V && L, S = V || L || i, k = l(+s(), S);
1664
+ g.startOf = function($, V) {
1665
+ if (!this.$x || !this.$x.$timezone) return w.call(this, $, V);
1666
+ var j = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1667
+ return w.call(j, $, V).tz(this.$x.$timezone, !0);
1668
+ }, s.tz = function($, V, j) {
1669
+ var f = j && V, S = j || V || i, k = l(+s(), S);
1643
1670
  if (typeof $ != "string") return s($).tz(S);
1644
- var N = function(b, A, v) {
1645
- var P = b - 60 * A * 1e3, j = l(P, v);
1646
- if (A === j) return [P, A];
1647
- var z = l(P -= 60 * (j - A) * 1e3, v);
1648
- return j === z ? [P, j] : [b - 60 * Math.min(j, z) * 1e3, Math.max(j, z)];
1649
- }(s.utc($, f).valueOf(), k, S), y = N[0], h = N[1], D = s(y).utcOffset(h);
1671
+ var R = function(b, A, m) {
1672
+ var F = b - 60 * A * 1e3, P = l(F, m);
1673
+ if (A === P) return [F, A];
1674
+ var x = l(F -= 60 * (P - A) * 1e3, m);
1675
+ return P === x ? [F, P] : [b - 60 * Math.min(P, x) * 1e3, Math.max(P, x)];
1676
+ }(s.utc($, f).valueOf(), k, S), y = R[0], h = R[1], D = s(y).utcOffset(h);
1650
1677
  return D.$x.$timezone = S, D;
1651
1678
  }, s.tz.guess = function() {
1652
1679
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -1694,15 +1721,15 @@ var fn = { exports: {} };
1694
1721
  D === void 0 && (D = "");
1695
1722
  var b = D.match(o);
1696
1723
  if (!b) return null;
1697
- var A = ("" + b[0]).match(r) || ["-", 0, 0], v = A[0], P = 60 * +A[1] + +A[2];
1698
- return P === 0 ? 0 : v === "+" ? P : -P;
1724
+ var A = ("" + b[0]).match(r) || ["-", 0, 0], m = A[0], F = 60 * +A[1] + +A[2];
1725
+ return F === 0 ? 0 : m === "+" ? F : -F;
1699
1726
  }(f), f === null)) return this;
1700
- var N = Math.abs(f) <= 16 ? 60 * f : f;
1701
- if (N === 0) return this.utc(S);
1727
+ var R = Math.abs(f) <= 16 ? 60 * f : f;
1728
+ if (R === 0) return this.utc(S);
1702
1729
  var y = this.clone();
1703
- if (S) return y.$offset = N, y.$u = !1, y;
1730
+ if (S) return y.$offset = R, y.$u = !1, y;
1704
1731
  var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1705
- return (y = this.local().add(N + h, n)).$offset = N, y.$x.$localOffset = h, y;
1732
+ return (y = this.local().add(R + h, n)).$offset = R, y.$x.$localOffset = h, y;
1706
1733
  };
1707
1734
  var $ = a.format;
1708
1735
  a.format = function(f) {
@@ -1718,15 +1745,15 @@ var fn = { exports: {} };
1718
1745
  }, a.toString = function() {
1719
1746
  return this.toDate().toUTCString();
1720
1747
  };
1721
- var L = a.toDate;
1748
+ var V = a.toDate;
1722
1749
  a.toDate = function(f) {
1723
- return f === "s" && this.$offset ? i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1750
+ return f === "s" && this.$offset ? i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : V.call(this);
1724
1751
  };
1725
- var V = a.diff;
1752
+ var j = a.diff;
1726
1753
  a.diff = function(f, S, k) {
1727
- if (f && this.$u === f.$u) return V.call(this, f, S, k);
1728
- var N = this.local(), y = i(f).local();
1729
- return V.call(N, y, S, k);
1754
+ if (f && this.$u === f.$u) return j.call(this, f, S, k);
1755
+ var R = this.local(), y = i(f).local();
1756
+ return j.call(R, y, S, k);
1730
1757
  };
1731
1758
  };
1732
1759
  });
@@ -1781,9 +1808,9 @@ function Tt(e) {
1781
1808
  ) || At(e.renderType) || "text";
1782
1809
  }
1783
1810
  function Mt(e) {
1784
- return Rt(
1811
+ return Nt(
1785
1812
  e.type || e.fieldType || e.frontInputType
1786
- ) || Rt(e.renderType) || "text";
1813
+ ) || Nt(e.renderType) || "text";
1787
1814
  }
1788
1815
  function ut(e) {
1789
1816
  return bn(e).some(
@@ -1954,7 +1981,7 @@ function At(e) {
1954
1981
  const t = String(e ?? "").toLowerCase();
1955
1982
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" ? "select" : t === "text" || t === "textarea" || t === "select" || t === "select_remote" || t === "select_remote_descr" || t === "date" || t === "number" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t === "select_remote_descr" ? "select_remote" : t : "";
1956
1983
  }
1957
- function Rt(e) {
1984
+ function Nt(e) {
1958
1985
  const t = String(e ?? "").toLowerCase();
1959
1986
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" || t === "select_remote" || t === "select_remote_descr" ? "select" : t === "select" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : t === "textarea" || t === "date" || t === "number" || t === "text" ? "text" : "";
1960
1987
  }
@@ -2001,15 +2028,15 @@ function yn(e) {
2001
2028
  function yr(e, t, n) {
2002
2029
  const o = pt(e);
2003
2030
  if (Array.isArray(t) || o) {
2004
- const r = dt(e, t).map((s) => Nt(e, s) || String(s ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2031
+ const r = dt(e, t).map((s) => Rt(e, s) || String(s ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2005
2032
  return r.length > 0 ? r.join(c) : n;
2006
2033
  }
2007
- return Nt(e, t) || String(t).trim() || n;
2034
+ return Rt(e, t) || String(t).trim() || n;
2008
2035
  }
2009
2036
  function pt(e) {
2010
2037
  return !!e.props?.multiple && (Tt(e) === "select" || Mt(e) === "select");
2011
2038
  }
2012
- function Nt(e, t) {
2039
+ function Rt(e, t) {
2013
2040
  return e.options?.find(
2014
2041
  (o) => Ze(o, t)
2015
2042
  )?.label ?? "";
@@ -2127,7 +2154,7 @@ function _t(e) {
2127
2154
  function _n(e) {
2128
2155
  return e === "" ? null : Array.isArray(e) ? e.map(_n) : e && typeof e == "object" ? _t(e) : e;
2129
2156
  }
2130
- function ls(e) {
2157
+ function Ps(e) {
2131
2158
  const t = e;
2132
2159
  return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
2133
2160
  }
@@ -2162,15 +2189,15 @@ function qt(e, t, n, o) {
2162
2189
  i
2163
2190
  ), l = a[0] ? wt(a[0]) : In(s), g = ce(r.tag), w = ee(
2164
2191
  r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2165
- ), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, k = c.setId || ee(r.setId), N = ee(r.infSetId) || k || ee(V), y = k || ee(f ?? N), h = c.code || ee(r.code ?? S ?? y), D = y || h || N || w, b = {
2192
+ ), $ = ee(t.tagId ?? n?.tagId), V = ee(n?.key), j = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, k = c.setId || ee(r.setId), R = ee(r.infSetId) || k || ee(j), y = k || ee(f ?? R), h = c.code || ee(r.code ?? S ?? y), D = y || h || R || w, b = {
2166
2193
  key: D,
2167
2194
  id: D,
2168
2195
  setId: y,
2169
2196
  code: h,
2170
2197
  tagId: w,
2171
2198
  requestTagId: $ || void 0,
2172
- ownerNodeKey: L || void 0,
2173
- infSetId: N,
2199
+ ownerNodeKey: V || void 0,
2200
+ infSetId: R,
2174
2201
  title: c.name || ee(r.name ?? n?.tagName ?? D),
2175
2202
  renderType: i,
2176
2203
  mark: c,
@@ -2477,10 +2504,10 @@ function Bn(e, t, n) {
2477
2504
  const o = Ar(e), r = tt([n, ...Xe(t)]);
2478
2505
  return r.length === 0 ? !1 : r.some((c) => o.includes(c));
2479
2506
  }
2480
- function Rr(e, t, n) {
2507
+ function Nr(e, t, n) {
2481
2508
  return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((r) => Bn(r, t, n));
2482
2509
  }
2483
- function Nr(e, t, n = {}) {
2510
+ function Rr(e, t, n = {}) {
2484
2511
  const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, i = ze(c).some((a) => {
2485
2512
  if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !xr(e, a))
2486
2513
  return !1;
@@ -2602,7 +2629,7 @@ function Je(e = {}) {
2602
2629
  };
2603
2630
  }
2604
2631
  function Wr(e) {
2605
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = Rr(e.nextViewModel.sections, e.node, e.targetKey), s = tt([e.targetKey, ...Xe(e.node)]).length > 0, i = c.find((a) => Bn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2632
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), s = tt([e.targetKey, ...Xe(e.node)]).length > 0, i = c.find((a) => Bn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2606
2633
  return c.forEach((a) => {
2607
2634
  const l = Me(a);
2608
2635
  t[l] = a, o.includes(l) || o.push(l), r[l] = Je({
@@ -2639,7 +2666,7 @@ function Zr(e, t = [], n = {}) {
2639
2666
  function Qr(e, t) {
2640
2667
  return typeof e == "function" ? e(t) : typeof e == "string" ? e : Pn;
2641
2668
  }
2642
- const Ne = (e) => new Error(`[GlobalInfo] ${e}`), Xr = (e) => [
2669
+ const Re = (e) => new Error(`[GlobalInfo] ${e}`), Xr = (e) => [
2643
2670
  String(e.method ?? "").toLowerCase(),
2644
2671
  String(e.url ?? ""),
2645
2672
  It(Te(e.params))
@@ -2648,10 +2675,10 @@ function It(e) {
2648
2675
  return Array.isArray(e) ? `[${e.map((t) => It(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${It(o)}`).join(",")}}` : JSON.stringify(e);
2649
2676
  }
2650
2677
  const ea = (e) => {
2651
- const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), c = je([]), s = je(null), i = je(null), a = je(null), l = je({}), g = je({}), w = ge([]), $ = je({}), L = ge([]), V = M(
2678
+ const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), c = je([]), s = je(null), i = je(null), a = je(null), l = je({}), g = je({}), w = ge([]), $ = je({}), V = ge([]), j = M(
2652
2679
  () => {
2653
- const m = w.value.map((C) => l.value[C]).filter((C) => !!C), p = Object.entries(l.value).filter(([C]) => !w.value.includes(C)).map(([, C]) => C);
2654
- return [...m, ...p];
2680
+ const v = w.value.map((C) => l.value[C]).filter((C) => !!C), p = Object.entries(l.value).filter(([C]) => !w.value.includes(C)).map(([, C]) => C);
2681
+ return [...v, ...p];
2655
2682
  }
2656
2683
  ), f = M(() => ({
2657
2684
  // 整棵树是否正在加载。
@@ -2661,19 +2688,19 @@ const ea = (e) => {
2661
2688
  // 当前是否正在保存。
2662
2689
  saving: o.value,
2663
2690
  // 当前所有编辑中的 section key。
2664
- editingSectionKeys: L.value,
2691
+ editingSectionKeys: V.value,
2665
2692
  // 已加载 section 映射。
2666
2693
  sectionMap: l.value,
2667
2694
  // section 状态映射;这里把 alias 后的编辑态也同步进去。
2668
2695
  sectionStatusMap: Object.fromEntries(
2669
- Object.entries($.value).map(([m, p]) => [
2670
- m,
2696
+ Object.entries($.value).map(([v, p]) => [
2697
+ v,
2671
2698
  {
2672
2699
  // 保留原状态字段。
2673
2700
  ...p,
2674
2701
  // 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
2675
- editing: L.value.includes(
2676
- g.value[m] ?? m
2702
+ editing: V.value.includes(
2703
+ g.value[v] ?? v
2677
2704
  )
2678
2705
  }
2679
2706
  ])
@@ -2685,49 +2712,49 @@ const ea = (e) => {
2685
2712
  adaptScene: e.adaptScene,
2686
2713
  // emplid 是当前人员标识,树和详情接口都需要它。
2687
2714
  emplid: e.emplid
2688
- }), k = (m) => ({
2715
+ }), k = (v) => ({
2689
2716
  // 复用基础参数,保证人员和场景一致。
2690
2717
  ...S(),
2691
2718
  // infSchmId 指定当前模板方案。
2692
- infSchmId: m.infSchmId,
2719
+ infSchmId: v.infSchmId,
2693
2720
  // tagId 指定要展开的树节点。
2694
- tagId: m.tagId,
2721
+ tagId: v.tagId,
2695
2722
  // tagLevel 告诉后端当前节点层级。
2696
- tagLevel: m.tagLevel,
2723
+ tagLevel: v.tagLevel,
2697
2724
  // parentTagId 保留父子关系上下文。
2698
- parentTagId: m.parentTagId
2699
- }), N = (m = i.value, p = a.value) => ({
2725
+ parentTagId: v.parentTagId
2726
+ }), R = (v = i.value, p = a.value) => ({
2700
2727
  // 详情接口同样需要基础人员和场景参数。
2701
2728
  ...S(),
2702
2729
  // 当前节点所属模板方案。
2703
- infSchmId: m?.infSchmId,
2730
+ infSchmId: v?.infSchmId,
2704
2731
  // 当前点击或加载的树节点 id。
2705
- tagId: m?.tagId,
2732
+ tagId: v?.tagId,
2706
2733
  // 保存或刷新指定 section 时优先使用 section 自己的信息集 id。
2707
- infSetId: p?.infSetId ?? m?.infSetId,
2734
+ infSetId: p?.infSetId ?? v?.infSetId,
2708
2735
  // setId 同样优先取 section,避免保存时拿错节点 setId。
2709
- setId: p?.setId ?? m?.setId
2710
- }), y = async (m, p) => Hr({
2736
+ setId: p?.setId ?? v?.setId
2737
+ }), y = async (v, p) => Hr({
2711
2738
  service: e.service,
2712
2739
  formatter: e.formatOperationParams,
2713
- operation: m,
2740
+ operation: v,
2714
2741
  context: p,
2715
2742
  viewModel: s.value,
2716
- sections: V.value,
2743
+ sections: j.value,
2717
2744
  activeNode: i.value,
2718
2745
  activeSection: a.value
2719
2746
  }), h = er(
2720
- async (m, p) => {
2747
+ async (v, p) => {
2721
2748
  if (!e.service.requestOperation)
2722
- throw Ne("service.requestOperation is required");
2723
- return e.service.requestOperation(m, p);
2749
+ throw Re("service.requestOperation is required");
2750
+ return e.service.requestOperation(v, p);
2724
2751
  },
2725
- (m) => Xr(m)
2726
- ), D = async (m, p) => {
2752
+ (v) => Xr(v)
2753
+ ), D = async (v, p) => {
2727
2754
  const C = await Ln({
2728
2755
  formatter: e.formatOperationParams,
2729
2756
  params: p?.params,
2730
- operation: m,
2757
+ operation: v,
2731
2758
  type: p?.type,
2732
2759
  requestSource: p?.requestSource,
2733
2760
  tagId: p?.tagId,
@@ -2737,16 +2764,16 @@ const ea = (e) => {
2737
2764
  row: p?.row,
2738
2765
  node: p?.node,
2739
2766
  viewModel: s.value,
2740
- sections: V.value,
2767
+ sections: j.value,
2741
2768
  activeNode: i.value,
2742
2769
  activeSection: a.value,
2743
2770
  searchText: p?.searchText
2744
- }), Y = { ...m, params: C }, H = p && { ...p, params: C };
2771
+ }), Y = { ...v, params: C }, H = p && { ...p, params: C };
2745
2772
  return h(Y, H);
2746
- }, b = (m, p) => {
2773
+ }, b = (v, p) => {
2747
2774
  if (!p)
2748
- return m[0] ?? null;
2749
- for (const C of m) {
2775
+ return v[0] ?? null;
2776
+ for (const C of v) {
2750
2777
  if (Xe(C).includes(p))
2751
2778
  return C;
2752
2779
  const Y = b(C.children, p);
@@ -2754,35 +2781,35 @@ const ea = (e) => {
2754
2781
  return Y;
2755
2782
  }
2756
2783
  return null;
2757
- }, A = (m = a.value) => {
2758
- if (m)
2759
- return typeof m == "string" ? m : Ue(m) ? j(m) : Me(m);
2760
- }, v = (m = a.value) => {
2761
- const p = A(m);
2784
+ }, A = (v = a.value) => {
2785
+ if (v)
2786
+ return typeof v == "string" ? v : Ue(v) ? P(v) : Me(v);
2787
+ }, m = (v = a.value) => {
2788
+ const p = A(v);
2762
2789
  if (!p)
2763
2790
  return null;
2764
2791
  const C = g.value[p] ?? p;
2765
2792
  return l.value[C] ?? null;
2766
- }, P = (m = a.value) => {
2767
- const p = A(m);
2793
+ }, F = (v = a.value) => {
2794
+ const p = A(v);
2768
2795
  if (p)
2769
2796
  return g.value[p] ?? p;
2770
- }, j = (m = a.value) => {
2771
- if (m)
2772
- return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Me(m);
2773
- }, z = (m = a.value) => {
2774
- if (Ue(m))
2775
- return m;
2776
- if (typeof m == "string") {
2777
- const p = b(c.value, m);
2797
+ }, P = (v = a.value) => {
2798
+ if (v)
2799
+ return typeof v == "string" ? v : Ue(v) ? v.setId ?? v.infSetId ?? v.key : Me(v);
2800
+ }, x = (v = a.value) => {
2801
+ if (Ue(v))
2802
+ return v;
2803
+ if (typeof v == "string") {
2804
+ const p = b(c.value, v);
2778
2805
  if (p)
2779
2806
  return p;
2780
- const C = v(m);
2781
- return C?.ownerNodeKey ? b(c.value, C.ownerNodeKey) ?? i.value : C || i.value && Xe(i.value).includes(m) ? i.value : null;
2807
+ const C = m(v);
2808
+ return C?.ownerNodeKey ? b(c.value, C.ownerNodeKey) ?? i.value : C || i.value && Xe(i.value).includes(v) ? i.value : null;
2782
2809
  }
2783
- return m?.ownerNodeKey ? b(c.value, m.ownerNodeKey) ?? i.value : i.value;
2784
- }, re = (m = a.value) => !m || Ue(m) ? null : v(m), le = (m = a.value) => {
2785
- const p = j(m);
2810
+ return v?.ownerNodeKey ? b(c.value, v.ownerNodeKey) ?? i.value : i.value;
2811
+ }, re = (v = a.value) => !v || Ue(v) ? null : m(v), le = (v = a.value) => {
2812
+ const p = P(v);
2786
2813
  if (!p)
2787
2814
  return Je();
2788
2815
  const C = g.value[p] ?? p;
@@ -2790,12 +2817,12 @@ const ea = (e) => {
2790
2817
  ...$.value[p],
2791
2818
  ...$.value[C],
2792
2819
  // 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
2793
- editing: L.value.includes(
2820
+ editing: V.value.includes(
2794
2821
  C
2795
2822
  )
2796
2823
  });
2797
- }, R = (m, p) => {
2798
- const C = j(m);
2824
+ }, N = (v, p) => {
2825
+ const C = P(v);
2799
2826
  C && ($.value = {
2800
2827
  ...$.value,
2801
2828
  [C]: Je({
@@ -2804,11 +2831,11 @@ const ea = (e) => {
2804
2831
  // 合并本次状态补丁。
2805
2832
  ...p,
2806
2833
  // 编辑态仍以 editingSectionKeys 为准。
2807
- editing: L.value.includes(C)
2834
+ editing: V.value.includes(C)
2808
2835
  })
2809
2836
  });
2810
- }, F = (m = s.value?.raw ?? null, p = i.value) => {
2811
- const C = V.value, Y = a.value && C.find(
2837
+ }, B = (v = s.value?.raw ?? null, p = i.value) => {
2838
+ const C = j.value, Y = a.value && C.find(
2812
2839
  (H) => Me(H) === Me(a.value)
2813
2840
  ) ? a.value : null;
2814
2841
  s.value = {
@@ -2828,23 +2855,23 @@ const ea = (e) => {
2828
2855
  // 当前 section 缓存。
2829
2856
  sectionMap: l.value,
2830
2857
  // 保留原始接口数据。
2831
- raw: m
2858
+ raw: v
2832
2859
  }, a.value = Y;
2833
- }, B = (m, p = i.value, C) => {
2860
+ }, L = (v, p = i.value, C) => {
2834
2861
  const Y = Wr({
2835
2862
  currentMap: l.value,
2836
2863
  currentAliasMap: g.value,
2837
2864
  currentOrder: w.value,
2838
2865
  currentStatusMap: $.value,
2839
- editingSectionKeys: L.value,
2840
- nextViewModel: m,
2866
+ editingSectionKeys: V.value,
2867
+ nextViewModel: v,
2841
2868
  node: p,
2842
2869
  targetKey: C,
2843
2870
  activeSection: a.value
2844
2871
  });
2845
2872
  return l.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, $.value = Y.sectionStatusMap, s.value = {
2846
- ...m,
2847
- scheme: m.scheme ?? s.value?.scheme ?? null,
2873
+ ...v,
2874
+ scheme: v.scheme ?? s.value?.scheme ?? null,
2848
2875
  topNodes: c.value,
2849
2876
  treeNodes: c.value,
2850
2877
  activeNode: p,
@@ -2852,29 +2879,29 @@ const ea = (e) => {
2852
2879
  sections: Y.targetSections,
2853
2880
  sectionMap: l.value
2854
2881
  }, a.value = Y.matchedSection, Y.matchedSection;
2855
- }, d = (m, p) => {
2856
- const C = P(m), Y = C ? l.value[C] : null;
2882
+ }, d = (v, p) => {
2883
+ const C = F(v), Y = C ? l.value[C] : null;
2857
2884
  if (!C || !Y)
2858
2885
  return;
2859
2886
  const H = p(Y);
2860
2887
  l.value = {
2861
2888
  ...l.value,
2862
2889
  [C]: H
2863
- }, a.value = Me(a.value ?? H) === C ? H : a.value, F();
2864
- }, u = async (m = a.value ?? i.value) => {
2865
- const p = re(m), C = z(m) ?? i.value, Y = j(m);
2890
+ }, a.value = Me(a.value ?? H) === C ? H : a.value, B();
2891
+ }, u = async (v = a.value ?? i.value) => {
2892
+ const p = re(v), C = x(v) ?? i.value, Y = P(v);
2866
2893
  if (!C)
2867
2894
  return null;
2868
2895
  if (!e.service.requestOperation)
2869
- throw Ne("service.requestOperation is required");
2870
- n.value = !0, r.value = null, R(Y ?? C, { loading: !0, error: null });
2896
+ throw Re("service.requestOperation is required");
2897
+ n.value = !0, r.value = null, N(Y ?? C, { loading: !0, error: null });
2871
2898
  try {
2872
2899
  const H = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : C.infSetList;
2873
2900
  if (H.length === 0)
2874
- throw Ne("node.infSetList is required");
2901
+ throw Re("node.infSetList is required");
2875
2902
  const $e = await Promise.all(H.map(async (ie) => {
2876
2903
  const he = Kr(p, C, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? C.tagId, ot = {
2877
- ...N(C, p),
2904
+ ...R(C, p),
2878
2905
  tagId: Ae,
2879
2906
  infSetId: ie.infSetId,
2880
2907
  setId: ie.setId,
@@ -2891,54 +2918,54 @@ const ea = (e) => {
2891
2918
  });
2892
2919
  return wr(Ke, ot, C);
2893
2920
  }
2894
- throw Ne("infoSet.operationInfo.queryInfoSet is required");
2921
+ throw Re("infoSet.operationInfo.queryInfoSet is required");
2895
2922
  })), ve = {
2896
2923
  ...$e[0],
2897
2924
  sections: $e.flatMap((ie) => ie.sections),
2898
2925
  sectionMap: Object.fromEntries($e.flatMap((ie) => ie.sections).map((ie) => [ie.key, ie]))
2899
2926
  };
2900
- return B(ve, C, Y);
2927
+ return L(ve, C, Y);
2901
2928
  } catch (H) {
2902
- throw r.value = H, R(Y ?? C, { loading: !1, error: H }), H;
2929
+ throw r.value = H, N(Y ?? C, { loading: !1, error: H }), H;
2903
2930
  } finally {
2904
- n.value = !1, R(Y ?? C, { loading: !1 });
2931
+ n.value = !1, N(Y ?? C, { loading: !1 });
2905
2932
  }
2906
- }, _ = (m = a.value) => u(m), O = (m = a.value) => {
2907
- if (!m)
2933
+ }, _ = (v = a.value) => u(v), O = (v = a.value) => {
2934
+ if (!v)
2908
2935
  return null;
2909
- if (!Ue(m) && typeof m != "string")
2910
- return v(m);
2911
- const p = j(m);
2936
+ if (!Ue(v) && typeof v != "string")
2937
+ return m(v);
2938
+ const p = P(v);
2912
2939
  return p ? l.value[g.value[p] ?? p] ?? null : null;
2913
- }, E = async (m = i.value) => m ? (await u(m), s.value) : (s.value = null, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, null), x = async (m) => {
2914
- const p = Gr(m);
2940
+ }, E = async (v = i.value) => v ? (await u(v), s.value) : (s.value = null, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, null), z = async (v) => {
2941
+ const p = Gr(v);
2915
2942
  if (!p)
2916
- return m.children;
2917
- const C = k(m), Y = await y(p, {
2943
+ return v.children;
2944
+ const C = k(v), Y = await y(p, {
2918
2945
  type: "openTag",
2919
2946
  requestSource: "sidebar",
2920
- tagId: m.tagId,
2921
- node: m,
2947
+ tagId: v.tagId,
2948
+ node: v,
2922
2949
  params: C
2923
2950
  });
2924
2951
  return xt(Y).treeNodes;
2925
- }, K = async (m) => {
2926
- if (m.loaded)
2927
- return m.children;
2928
- const p = await x(m);
2929
- return p.length > 0 && (c.value = Sn(c.value, m.key, p)), p;
2930
- }, q = async (m) => {
2931
- const p = typeof m == "string" ? b(c.value, m) : m;
2932
- return p ? (i.value = p, a.value = null, L.value = [], await K(p), F(s.value?.raw, p), p) : null;
2952
+ }, G = async (v) => {
2953
+ if (v.loaded)
2954
+ return v.children;
2955
+ const p = await z(v);
2956
+ return p.length > 0 && (c.value = Sn(c.value, v.key, p)), p;
2957
+ }, q = async (v) => {
2958
+ const p = typeof v == "string" ? b(c.value, v) : v;
2959
+ return p ? (i.value = p, a.value = null, V.value = [], await G(p), B(s.value?.raw, p), p) : null;
2933
2960
  }, Q = async () => {
2934
- const m = e.service.templateTree;
2935
- if (!m)
2936
- throw Ne("service.templateTree is required");
2961
+ const v = e.service.templateTree;
2962
+ if (!v)
2963
+ throw Re("service.templateTree is required");
2937
2964
  t.value = !0, r.value = null;
2938
2965
  try {
2939
- const p = await m(S()), C = xt(p), Y = await Promise.all(
2966
+ const p = await v(S()), C = xt(p), Y = await Promise.all(
2940
2967
  C.treeNodes.map(async ($e) => {
2941
- const ve = await x($e);
2968
+ const ve = await z($e);
2942
2969
  return {
2943
2970
  ...$e,
2944
2971
  children: ve,
@@ -2946,14 +2973,14 @@ const ea = (e) => {
2946
2973
  };
2947
2974
  })
2948
2975
  );
2949
- c.value = Y, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, L.value = [];
2976
+ c.value = Y, a.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, V.value = [];
2950
2977
  const H = b(Y, e.initialActiveNodeKey) ?? b(Y);
2951
2978
  return i.value = H, s.value = {
2952
2979
  ...C,
2953
2980
  treeNodes: Y,
2954
2981
  activeNode: H,
2955
2982
  sectionMap: l.value,
2956
- sections: V.value
2983
+ sections: j.value
2957
2984
  }, c.value;
2958
2985
  } catch (p) {
2959
2986
  throw r.value = p, p;
@@ -2961,26 +2988,26 @@ const ea = (e) => {
2961
2988
  t.value = !1;
2962
2989
  }
2963
2990
  }, T = async () => {
2964
- const m = A();
2991
+ const v = A();
2965
2992
  await _(a.value ?? i.value);
2966
- const p = V.value.find(
2967
- (C) => Me(C) === m
2993
+ const p = j.value.find(
2994
+ (C) => Me(C) === v
2968
2995
  );
2969
- return p && (a.value = p), F(), s.value;
2970
- }, X = (m = a.value) => {
2971
- const p = P(m);
2972
- return !!(p && L.value.includes(p));
2973
- }, ue = (m = a.value) => {
2974
- const p = P(m);
2975
- !p || X(p) || (L.value = [...L.value, p], R(p, { editing: !0 }));
2976
- }, de = (m = a.value) => {
2977
- const p = P(m);
2978
- p && (L.value = L.value.filter(
2996
+ return p && (a.value = p), B(), s.value;
2997
+ }, X = (v = a.value) => {
2998
+ const p = F(v);
2999
+ return !!(p && V.value.includes(p));
3000
+ }, ue = (v = a.value) => {
3001
+ const p = F(v);
3002
+ !p || X(p) || (V.value = [...V.value, p], N(p, { editing: !0 }));
3003
+ }, de = (v = a.value) => {
3004
+ const p = F(v);
3005
+ p && (V.value = V.value.filter(
2979
3006
  (C) => C !== p
2980
- ), R(p, { editing: !1 }));
2981
- }, me = (m, p, C) => {
3007
+ ), N(p, { editing: !1 }));
3008
+ }, me = (v, p, C) => {
2982
3009
  const Y = typeof p == "string" ? p : Ve(p);
2983
- d(m, (H) => {
3010
+ d(v, (H) => {
2984
3011
  const ve = (typeof p == "string" ? H.fields.find((he) => Ve(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
2985
3012
  ...H.model,
2986
3013
  [Y]: C
@@ -3001,8 +3028,8 @@ const ea = (e) => {
3001
3028
  })
3002
3029
  };
3003
3030
  });
3004
- }, we = async (m, p, C = {}, Y = {}) => {
3005
- const H = v(m);
3031
+ }, we = async (v, p, C = {}, Y = {}) => {
3032
+ const H = m(v);
3006
3033
  if (!H)
3007
3034
  return [];
3008
3035
  const $e = {
@@ -3014,7 +3041,7 @@ const ea = (e) => {
3014
3041
  sourceModel: he,
3015
3042
  sourceRow: Ae,
3016
3043
  missingDependField: ot
3017
- } = Nr(H, p, $e), Ke = ie?.interface;
3044
+ } = Rr(H, p, $e), Ke = ie?.interface;
3018
3045
  if (!ie || !Ke)
3019
3046
  return ie?.options ?? [];
3020
3047
  if (zr(ie))
@@ -3034,7 +3061,7 @@ const ea = (e) => {
3034
3061
  type: "fieldOptions",
3035
3062
  requestSource: "inner",
3036
3063
  tagId: H.requestTagId ?? H.tagId,
3037
- node: z(H),
3064
+ node: x(H),
3038
3065
  section: H,
3039
3066
  field: ie,
3040
3067
  params: Te(Ke.params),
@@ -3050,12 +3077,12 @@ const ea = (e) => {
3050
3077
  (Ee) => Ve(Ee) === ve || Ee.code === ve ? { ...Ee, options: Dt } : Ee
3051
3078
  )
3052
3079
  })), Dt;
3053
- }, De = (m, p) => {
3080
+ }, De = (v, p) => {
3054
3081
  if (Array.isArray(p)) {
3055
- Ie(m, p);
3082
+ Ie(v, p);
3056
3083
  return;
3057
3084
  }
3058
- d(m, (C) => ({
3085
+ d(v, (C) => ({
3059
3086
  ...C,
3060
3087
  // 替换当前 model。
3061
3088
  model: p,
@@ -3067,8 +3094,8 @@ const ea = (e) => {
3067
3094
  value: p[Ve(Y)]
3068
3095
  }))
3069
3096
  }));
3070
- }, Ie = (m, p) => {
3071
- d(m, (C) => ({
3097
+ }, Ie = (v, p) => {
3098
+ d(v, (C) => ({
3072
3099
  ...C,
3073
3100
  rows: p,
3074
3101
  data: p
@@ -3103,31 +3130,31 @@ const ea = (e) => {
3103
3130
  // 更新表格行。
3104
3131
  updateTableRows: Ie,
3105
3132
  // 保存单行到本地缓存。
3106
- saveRow: (m, p = {}, C = -1) => {
3107
- const H = [...v(m)?.rows ?? []];
3108
- H.splice(C >= 0 ? C : H.length, C >= 0 ? 1 : 0, p), Ie(m, H);
3133
+ saveRow: (v, p = {}, C = -1) => {
3134
+ const H = [...m(v)?.rows ?? []];
3135
+ H.splice(C >= 0 ? C : H.length, C >= 0 ? 1 : 0, p), Ie(v, H);
3109
3136
  },
3110
3137
  // 删除单行本地缓存。
3111
- deleteRow: (m, p) => {
3112
- const C = v(m), Y = typeof p == "string" ? Number(p) : p, H = (C?.rows ?? []).filter(
3138
+ deleteRow: (v, p) => {
3139
+ const C = m(v), Y = typeof p == "string" ? Number(p) : p, H = (C?.rows ?? []).filter(
3113
3140
  ($e, ve) => ve !== Y
3114
3141
  );
3115
- Ie(m, H);
3142
+ Ie(v, H);
3116
3143
  },
3117
3144
  // 调用接口保存 section。
3118
- saveSection: async (m = a.value) => {
3119
- const p = A(m), C = v(m);
3145
+ saveSection: async (v = a.value) => {
3146
+ const p = A(v), C = m(v);
3120
3147
  if (!C)
3121
3148
  return null;
3122
3149
  const Y = Yr(C);
3123
3150
  if (!Y)
3124
- throw Ne("section.operationInfo.editInfoSet is required");
3125
- o.value = !0, r.value = null, p && p !== Me(C) && R(p, { saving: !0, error: null }), R(C, { saving: !0, error: null });
3151
+ throw Re("section.operationInfo.editInfoSet is required");
3152
+ o.value = !0, r.value = null, p && p !== Me(C) && N(p, { saving: !0, error: null }), N(C, { saving: !0, error: null });
3126
3153
  try {
3127
3154
  const {
3128
3155
  tagId: H,
3129
3156
  ...$e
3130
- } = N(i.value, C), ve = $r(C, $e), ie = Zr(
3157
+ } = R(i.value, C), ve = $r(C, $e), ie = Zr(
3131
3158
  C,
3132
3159
  ve.infSetValues ?? [],
3133
3160
  {
@@ -3151,9 +3178,9 @@ const ea = (e) => {
3151
3178
  );
3152
3179
  return de(C), await _(C), he;
3153
3180
  } catch (H) {
3154
- throw r.value = H, p && p !== Me(C) && R(p, { saving: !1, error: H }), R(C, { saving: !1, error: H }), H;
3181
+ throw r.value = H, p && p !== Me(C) && N(p, { saving: !1, error: H }), N(C, { saving: !1, error: H }), H;
3155
3182
  } finally {
3156
- o.value = !1, p && p !== Me(C) && R(p, { saving: !1 }), R(C, { saving: !1 });
3183
+ o.value = !1, p && p !== Me(C) && N(p, { saving: !1 }), N(C, { saving: !1 });
3157
3184
  }
3158
3185
  },
3159
3186
  // 判断编辑态。
@@ -3173,7 +3200,7 @@ const ea = (e) => {
3173
3200
  // 当前模板树节点。
3174
3201
  nodes: c,
3175
3202
  // 当前已加载 section 列表。
3176
- sections: V,
3203
+ sections: j,
3177
3204
  // 当前 section 缓存。
3178
3205
  sectionMap: l,
3179
3206
  // 当前 section 状态缓存。
@@ -3187,7 +3214,7 @@ const ea = (e) => {
3187
3214
  // 给页面消费的操作集合。
3188
3215
  actions: Ge
3189
3216
  };
3190
- }, is = /* @__PURE__ */ pe({
3217
+ }, Es = /* @__PURE__ */ pe({
3191
3218
  name: "GlobalInfoProvider",
3192
3219
  __name: "GlobalInfoProvider",
3193
3220
  props: {
@@ -3270,17 +3297,17 @@ const ta = {
3270
3297
  () => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
3271
3298
  ), $ = M(
3272
3299
  () => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0
3273
- ), L = M(() => {
3300
+ ), V = M(() => {
3274
3301
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "")
3275
3302
  return;
3276
3303
  const u = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3277
3304
  return Number.isFinite(u) ? u : void 0;
3278
- }), V = M(
3305
+ }), j = M(
3279
3306
  () => ur(n.field, n.modelValue)
3280
3307
  ), f = M(
3281
3308
  () => (n.field.options ?? []).map((u) => ({
3282
3309
  ...u,
3283
- value: P(u)
3310
+ value: F(u)
3284
3311
  }))
3285
3312
  ), S = M(() => {
3286
3313
  const u = n.field.props?.popperClass ?? n.field.props?.["popper-class"];
@@ -3290,7 +3317,7 @@ const ta = {
3290
3317
  // select_remote_descr 的浮层样式受业务沙箱前缀约束,默认留在当前应用容器内,避免 teleport 到 body 后样式失效。
3291
3318
  a.value ? !1 : n.field.props?.teleported
3292
3319
  )
3293
- ), N = M(() => {
3320
+ ), R = M(() => {
3294
3321
  const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], _ = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3295
3322
  return u !== void 0 || _ !== void 0 ? n.modelValue ?? _ ?? !1 : vn(n.modelValue);
3296
3323
  }), y = M(() => s.value === "code" ? 5 : 1), h = M(
@@ -3308,20 +3335,20 @@ const ta = {
3308
3335
  Z("common.请选择文件")
3309
3336
  )
3310
3337
  ), A = M(() => n.field.placeholder ? n.field.placeholder : i.value ? Z("common.请输入关键词") : s.value === "select" ? Z("common.请选择") : s.value === "date" ? Z("common.请选择日期") : s.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3311
- let v;
3312
- function P(u) {
3313
- if (Array.isArray(V.value)) {
3314
- const _ = V.value.find(
3338
+ let m;
3339
+ function F(u) {
3340
+ if (Array.isArray(j.value)) {
3341
+ const _ = j.value.find(
3315
3342
  (O) => Ze(u, O)
3316
3343
  );
3317
3344
  if (_ !== void 0) return _;
3318
3345
  }
3319
- return Ze(u, V.value) ? V.value : u.value;
3346
+ return Ze(u, j.value) ? j.value : u.value;
3320
3347
  }
3321
- function j(u) {
3348
+ function P(u) {
3322
3349
  o("update:modelValue", re(u));
3323
3350
  }
3324
- function z(u) {
3351
+ function x(u) {
3325
3352
  o("change", re(u));
3326
3353
  }
3327
3354
  function re(u) {
@@ -3330,33 +3357,33 @@ const ta = {
3330
3357
  function le(u) {
3331
3358
  u && o("loadOptions", i.value ? { searchText: "" } : void 0);
3332
3359
  }
3333
- function R(u) {
3334
- i.value && (v && clearTimeout(v), v = setTimeout(() => {
3360
+ function N(u) {
3361
+ i.value && (m && clearTimeout(m), m = setTimeout(() => {
3335
3362
  o("loadOptions", { searchText: u });
3336
3363
  }, 300));
3337
3364
  }
3338
- function F() {
3365
+ function B() {
3339
3366
  l.value || c.value?.click();
3340
3367
  }
3341
- function B(u) {
3368
+ function L(u) {
3342
3369
  En(u);
3343
3370
  }
3344
3371
  Xn(() => {
3345
- v && clearTimeout(v);
3372
+ m && clearTimeout(m);
3346
3373
  });
3347
3374
  function d(u) {
3348
3375
  const _ = u.target, O = Array.from(_.files ?? []), E = n.field.props?.multiple ? O : O[0] ?? null;
3349
- j(E), z(E);
3376
+ P(E), x(E);
3350
3377
  }
3351
3378
  return (u, _) => {
3352
- const O = Xt, E = Qt, x = Wt, K = ao, q = so, Q = Zt;
3379
+ const O = Xt, E = Qt, z = Wt, G = ao, q = so, Q = Zt;
3353
3380
  return s.value === "select" || s.value === "select_remote" ? (I(), U(E, ae({
3354
3381
  key: 0,
3355
3382
  class: "global-info-field-control"
3356
3383
  }, u.field.props, {
3357
3384
  "popper-class": S.value,
3358
3385
  teleported: k.value,
3359
- "model-value": V.value,
3386
+ "model-value": j.value,
3360
3387
  placeholder: A.value,
3361
3388
  disabled: l.value,
3362
3389
  "collapse-tags": g.value,
@@ -3364,29 +3391,29 @@ const ta = {
3364
3391
  "max-collapse-tags": 1,
3365
3392
  filterable: i.value || !!u.field.props?.filterable,
3366
3393
  remote: i.value || !!u.field.props?.remote,
3367
- "remote-method": i.value ? R : u.field.props?.remoteMethod,
3394
+ "remote-method": i.value ? N : u.field.props?.remoteMethod,
3368
3395
  clearable: "",
3369
3396
  onVisibleChange: le,
3370
- "onUpdate:modelValue": j,
3371
- onChange: z
3397
+ "onUpdate:modelValue": P,
3398
+ onChange: x
3372
3399
  }), {
3373
3400
  default: W(() => [
3374
- (I(!0), G(Se, null, ye(f.value, (T) => (I(), U(O, {
3401
+ (I(!0), K(Se, null, ye(f.value, (T) => (I(), U(O, {
3375
3402
  key: String(T.value),
3376
3403
  label: T.label,
3377
3404
  value: T.value
3378
3405
  }, {
3379
3406
  default: W(() => [
3380
- a.value ? (I(), G("div", ta, [
3407
+ a.value ? (I(), K("div", ta, [
3381
3408
  ne("div", na, oe(T.label), 1),
3382
- T.labelDescr ? (I(), G("div", oa, oe(T.labelDescr), 1)) : fe("", !0)
3409
+ T.labelDescr ? (I(), K("div", oa, oe(T.labelDescr), 1)) : fe("", !0)
3383
3410
  ])) : fe("", !0)
3384
3411
  ]),
3385
3412
  _: 2
3386
3413
  }, 1032, ["label", "value"]))), 128))
3387
3414
  ]),
3388
3415
  _: 1
3389
- }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (I(), U(x, ae({
3416
+ }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (I(), U(z, ae({
3390
3417
  key: 1,
3391
3418
  class: "global-info-field-control"
3392
3419
  }, u.field.props, {
@@ -3395,34 +3422,34 @@ const ta = {
3395
3422
  disabled: l.value,
3396
3423
  type: "date",
3397
3424
  "value-format": "YYYY-MM-DD",
3398
- "onUpdate:modelValue": j,
3399
- onChange: z
3400
- }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(), U(K, ae({
3425
+ "onUpdate:modelValue": P,
3426
+ onChange: x
3427
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(), U(G, ae({
3401
3428
  key: 2,
3402
3429
  class: "global-info-field-control"
3403
3430
  }, u.field.props, {
3404
- "model-value": L.value,
3431
+ "model-value": V.value,
3405
3432
  placeholder: A.value,
3406
3433
  disabled: l.value,
3407
3434
  "controls-position": "right",
3408
- "onUpdate:modelValue": j,
3409
- onChange: z
3435
+ "onUpdate:modelValue": P,
3436
+ onChange: x
3410
3437
  }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (I(), U(q, ae({
3411
3438
  key: 3,
3412
3439
  class: "global-info-field-control global-info-field-control--switch"
3413
3440
  }, u.field.props, {
3414
- "model-value": N.value,
3441
+ "model-value": R.value,
3415
3442
  disabled: l.value,
3416
- "onUpdate:modelValue": j,
3417
- onChange: z
3418
- }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (I(), G("div", {
3443
+ "onUpdate:modelValue": P,
3444
+ onChange: x
3445
+ }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (I(), K("div", {
3419
3446
  key: 4,
3420
3447
  class: We(["global-info-field-control global-info-field-control--file", {
3421
3448
  "is-disabled": l.value,
3422
3449
  "is-empty": !h.value,
3423
3450
  "is-filled": h.value
3424
3451
  }]),
3425
- onClick: F
3452
+ onClick: B
3426
3453
  }, [
3427
3454
  ne("input", {
3428
3455
  ref_key: "fileInputRef",
@@ -3434,19 +3461,19 @@ const ta = {
3434
3461
  multiple: !!u.field.props?.multiple,
3435
3462
  onChange: d
3436
3463
  }, null, 40, ra),
3437
- b.value.length ? (I(), G("span", aa, [
3438
- (I(!0), G(Se, null, ye(b.value, (T, X) => (I(), G(Se, {
3464
+ b.value.length ? (I(), K("span", aa, [
3465
+ (I(!0), K(Se, null, ye(b.value, (T, X) => (I(), K(Se, {
3439
3466
  key: T.key
3440
3467
  }, [
3441
- T.action ? (I(), G("button", {
3468
+ T.action ? (I(), K("button", {
3442
3469
  key: 0,
3443
3470
  class: "global-info-field-control__file-preview",
3444
3471
  type: "button",
3445
- onClick: Ut((ue) => B(T), ["stop", "prevent"])
3446
- }, oe(T.text), 9, sa)) : (I(), G("span", la, oe(T.text), 1)),
3447
- X < b.value.length - 1 ? (I(), G("span", ia, "、")) : fe("", !0)
3472
+ onClick: Ut((ue) => L(T), ["stop", "prevent"])
3473
+ }, oe(T.text), 9, sa)) : (I(), K("span", la, oe(T.text), 1)),
3474
+ X < b.value.length - 1 ? (I(), K("span", ia, "、")) : fe("", !0)
3448
3475
  ], 64))), 128))
3449
- ])) : h.value ? (I(), G("span", ca, oe(D.value), 1)) : (I(), G("span", ua, oe(J(Z)("common.上传")), 1))
3476
+ ])) : h.value ? (I(), K("span", ca, oe(D.value), 1)) : (I(), K("span", ua, oe(J(Z)("common.上传")), 1))
3450
3477
  ], 2)) : s.value === "empty" ? (I(), U(Q, {
3451
3478
  key: 5,
3452
3479
  class: "global-info-field-control",
@@ -3466,8 +3493,8 @@ const ta = {
3466
3493
  type: r.includes(s.value) ? "textarea" : "text",
3467
3494
  rows: r.includes(s.value) ? y.value : void 0,
3468
3495
  resize: $.value,
3469
- "onUpdate:modelValue": j,
3470
- onChange: z
3496
+ "onUpdate:modelValue": P,
3497
+ onChange: x
3471
3498
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3472
3499
  };
3473
3500
  }
@@ -3490,23 +3517,23 @@ const ta = {
3490
3517
  function s(i) {
3491
3518
  En(i);
3492
3519
  }
3493
- return (i, a) => n.value === "html" && !o.value ? (I(), G("span", {
3520
+ return (i, a) => n.value === "html" && !o.value ? (I(), K("span", {
3494
3521
  key: 0,
3495
3522
  class: "global-info-field-value global-info-field-value--html",
3496
3523
  innerHTML: r.value
3497
- }, null, 8, fa)) : n.value === "code" && !o.value ? (I(), G("pre", pa, oe(r.value), 1)) : c.value.length ? (I(), G("span", ma, [
3498
- (I(!0), G(Se, null, ye(c.value, (l, g) => (I(), G(Se, {
3524
+ }, null, 8, fa)) : n.value === "code" && !o.value ? (I(), K("pre", pa, oe(r.value), 1)) : c.value.length ? (I(), K("span", ma, [
3525
+ (I(!0), K(Se, null, ye(c.value, (l, g) => (I(), K(Se, {
3499
3526
  key: l.key
3500
3527
  }, [
3501
- l.action ? (I(), G("button", {
3528
+ l.action ? (I(), K("button", {
3502
3529
  key: 0,
3503
3530
  class: "global-info-field-value__attachment-preview",
3504
3531
  type: "button",
3505
3532
  onClick: (w) => s(l)
3506
- }, oe(l.text), 9, va)) : (I(), G("span", ha, oe(l.text), 1)),
3507
- g < c.value.length - 1 ? (I(), G("span", ga, "、")) : fe("", !0)
3533
+ }, oe(l.text), 9, va)) : (I(), K("span", ha, oe(l.text), 1)),
3534
+ g < c.value.length - 1 ? (I(), K("span", ga, "、")) : fe("", !0)
3508
3535
  ], 64))), 128))
3509
- ])) : (I(), G("span", {
3536
+ ])) : (I(), K("span", {
3510
3537
  key: 3,
3511
3538
  class: We(["global-info-field-value", {
3512
3539
  "global-info-field-value--multi-row": n.value === "multi-row",
@@ -3529,13 +3556,13 @@ function lt(e, t, n) {
3529
3556
  function An(e = {}) {
3530
3557
  return Object.prototype.hasOwnProperty.call(e, "searchText");
3531
3558
  }
3532
- function Rn(e, t) {
3559
+ function Nn(e, t) {
3533
3560
  const n = new Set(
3534
3561
  [t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
3535
3562
  );
3536
3563
  return n.size === 0 ? !1 : ze(e).some((o) => n.has(o));
3537
3564
  }
3538
- function Nn(e, t, n) {
3565
+ function Rn(e, t, n) {
3539
3566
  return ba(e) ? n ? !0 : (ut(e), !_e(t)) : !1;
3540
3567
  }
3541
3568
  function zn(e, t) {
@@ -3576,13 +3603,13 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3576
3603
  const b = { ...o.value, [h.code]: D };
3577
3604
  (h.cascadeClearFields ?? []).forEach((A) => {
3578
3605
  b[A] = "";
3579
- }), t.onUpdateModel?.(b), t.onUpdateModel || t.actions.updateField(t.section, h, D), a(h, D, b), L(b, h);
3606
+ }), t.onUpdateModel?.(b), t.onUpdateModel || t.actions.updateField(t.section, h, D), a(h, D, b), V(b, h);
3580
3607
  }
3581
3608
  function a(h, D, b) {
3582
3609
  const A = t.renderConfig?.onFieldBusinessChange;
3583
3610
  if (A)
3584
3611
  try {
3585
- const v = l(h, D), P = {
3612
+ const m = l(h, D), F = {
3586
3613
  field: h,
3587
3614
  value: D,
3588
3615
  section: t.section,
@@ -3593,34 +3620,34 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3593
3620
  sections: g(),
3594
3621
  sectionValues: w(t.section, b),
3595
3622
  actions: t.actions,
3596
- selectedOption: v[0],
3597
- selectedOptions: v
3623
+ selectedOption: m[0],
3624
+ selectedOptions: m
3598
3625
  };
3599
- Promise.resolve(A(P)).catch((j) => {
3600
- console.error("[GlobalInfoFormRenderer] field business change failed", j);
3626
+ Promise.resolve(A(F)).catch((P) => {
3627
+ console.error("[GlobalInfoFormRenderer] field business change failed", P);
3601
3628
  });
3602
- } catch (v) {
3603
- console.error("[GlobalInfoFormRenderer] field business change failed", v);
3629
+ } catch (m) {
3630
+ console.error("[GlobalInfoFormRenderer] field business change failed", m);
3604
3631
  }
3605
3632
  }
3606
3633
  function l(h, D) {
3607
3634
  const b = dt(h, D);
3608
- return (h.options ?? []).filter((A) => b.some((v) => Ze(A, v)));
3635
+ return (h.options ?? []).filter((A) => b.some((m) => Ze(A, m)));
3609
3636
  }
3610
3637
  function g() {
3611
3638
  return Object.values(t.state.sectionMap);
3612
3639
  }
3613
3640
  function w(h, D) {
3614
- const A = g().flatMap((v) => {
3615
- const P = v.key === h.key ? D : v.renderType === "table" ? v.rows : v.model;
3616
- return [v.key, v.id, v.setId, v.infSetId, v.code].filter(Boolean).map((j) => [String(j), P]);
3641
+ const A = g().flatMap((m) => {
3642
+ const F = m.key === h.key ? D : m.renderType === "table" ? m.rows : m.model;
3643
+ return [m.key, m.id, m.setId, m.infSetId, m.code].filter(Boolean).map((P) => [String(P), F]);
3617
3644
  });
3618
3645
  return Object.fromEntries(A);
3619
3646
  }
3620
3647
  async function $(h, D = {}, b = o.value) {
3621
- const A = b, v = k(h), P = st(t.section.key, h, A), j = r.get(v);
3622
- if (!An(D) && lt(h, j, P)) {
3623
- r.set(v, P);
3648
+ const A = b, m = k(h), F = st(t.section.key, h, A), P = r.get(m);
3649
+ if (!An(D) && lt(h, P, F)) {
3650
+ r.set(m, F);
3624
3651
  return;
3625
3652
  }
3626
3653
  try {
@@ -3628,22 +3655,22 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3628
3655
  await s(h, A, D);
3629
3656
  return;
3630
3657
  }
3631
- await t.actions.loadFieldOptions(t.section, h, A, D), r.set(v, P);
3658
+ await t.actions.loadFieldOptions(t.section, h, A, D), r.set(m, F);
3632
3659
  } catch (re) {
3633
3660
  console.error("[GlobalInfoFormRenderer] load field options failed", re);
3634
3661
  }
3635
3662
  }
3636
- async function L(h = o.value, D) {
3663
+ async function V(h = o.value, D) {
3637
3664
  for (const b of c.value) {
3638
- if (D && !Rn(b, D)) continue;
3665
+ if (D && !Nn(b, D)) continue;
3639
3666
  const A = zn(b, h);
3640
- if (!N(b, A)) continue;
3641
- const v = st(t.section.key, b, h), P = k(b), j = r.get(P);
3642
- if (lt(b, j, v)) {
3643
- r.set(P, v);
3667
+ if (!R(b, A)) continue;
3668
+ const m = st(t.section.key, b, h), F = k(b), P = r.get(F);
3669
+ if (lt(b, P, m)) {
3670
+ r.set(F, m);
3644
3671
  continue;
3645
3672
  }
3646
- j !== v && await $(b, xn(b, A), h);
3673
+ P !== m && await $(b, xn(b, A), h);
3647
3674
  }
3648
3675
  }
3649
3676
  Le(
@@ -3654,11 +3681,11 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3654
3681
  ), Le(
3655
3682
  () => t.editing,
3656
3683
  () => {
3657
- L();
3684
+ V();
3658
3685
  },
3659
3686
  { immediate: !0 }
3660
3687
  );
3661
- function V(h) {
3688
+ function j(h) {
3662
3689
  const D = o.value[h.code];
3663
3690
  return {
3664
3691
  field: h,
@@ -3677,7 +3704,11 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3677
3704
  const D = String(h.code || "").trim(), b = D ? `field-${D}` : "";
3678
3705
  if (b && n[b]) return b;
3679
3706
  const A = b.toLowerCase();
3680
- return A !== b && n[A] ? A : "";
3707
+ if (A !== b && n[A]) return A;
3708
+ const m = String(h.raw?.type || h.fieldType || h.type || "").trim(), F = m ? `field-type-${m}` : "";
3709
+ if (F && n[F]) return F;
3710
+ const P = F.toLowerCase();
3711
+ return P !== F && n[P] ? P : "";
3681
3712
  }
3682
3713
  function S(h) {
3683
3714
  return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
@@ -3685,8 +3716,8 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3685
3716
  function k(h) {
3686
3717
  return h.key || h.id || h.code;
3687
3718
  }
3688
- function N(h, D) {
3689
- return Nn(h, D, t.editing);
3719
+ function R(h, D) {
3720
+ return Rn(h, D, t.editing);
3690
3721
  }
3691
3722
  function y(h) {
3692
3723
  return h.required || h.isRequired;
@@ -3700,36 +3731,36 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3700
3731
  }, {
3701
3732
  default: W(() => [
3702
3733
  ne("div", Sa, [
3703
- (I(!0), G(Se, null, ye(c.value, (v) => (I(), G("div", {
3704
- key: k(v),
3734
+ (I(!0), K(Se, null, ye(c.value, (m) => (I(), K("div", {
3735
+ key: k(m),
3705
3736
  class: "global-info-form-renderer__grid-item",
3706
- style: $t({ gridColumn: `span ${S(v)}` })
3737
+ style: $t({ gridColumn: `span ${S(m)}` })
3707
3738
  }, [
3708
3739
  ke(b, ae({
3709
- prop: v.code,
3740
+ prop: m.code,
3710
3741
  ref_for: !0
3711
- }, v.formItemProps), {
3742
+ }, m.formItemProps), {
3712
3743
  label: W(() => [
3713
3744
  ne("span", _a, [
3714
- y(v) ? (I(), G("span", wa, "*")) : fe("", !0),
3715
- He(" " + oe(v.label), 1)
3745
+ y(m) ? (I(), K("span", wa, "*")) : fe("", !0),
3746
+ He(" " + oe(m.label), 1)
3716
3747
  ])
3717
3748
  ]),
3718
3749
  default: W(() => [
3719
- f(v) ? te(h.$slots, f(v), ae({
3750
+ f(m) ? te(h.$slots, f(m), ae({
3720
3751
  key: 0,
3721
3752
  ref_for: !0
3722
- }, V(v)), void 0, !0) : h.editing && !v.readonly ? (I(), U(Vn, {
3753
+ }, j(m)), void 0, !0) : h.editing && !m.readonly ? (I(), U(Vn, {
3723
3754
  key: 1,
3724
- field: v,
3725
- "model-value": o.value[v.code],
3755
+ field: m,
3756
+ "model-value": o.value[m.code],
3726
3757
  section: h.section,
3727
- onLoadOptions: (P) => $(v, P),
3728
- "onUpdate:modelValue": (P) => i(v, P)
3758
+ onLoadOptions: (F) => $(m, F),
3759
+ "onUpdate:modelValue": (F) => i(m, F)
3729
3760
  }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), U(jn, {
3730
3761
  key: 2,
3731
- field: v,
3732
- value: o.value[v.code],
3762
+ field: m,
3763
+ value: o.value[m.code],
3733
3764
  section: h.section
3734
3765
  }, null, 8, ["field", "value", "section"]))
3735
3766
  ]),
@@ -3742,7 +3773,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3742
3773
  }, 8, ["model"]);
3743
3774
  };
3744
3775
  }
3745
- }), $a = /* @__PURE__ */ be(Ia, [["__scopeId", "data-v-d5eaf07c"]]), Ca = /* @__PURE__ */ pe({
3776
+ }), $a = /* @__PURE__ */ be(Ia, [["__scopeId", "data-v-8f3ba84a"]]), Ca = /* @__PURE__ */ pe({
3746
3777
  name: "GlobalInfoDeleteConfirm",
3747
3778
  __name: "GlobalInfoDeleteConfirm",
3748
3779
  props: {
@@ -3806,7 +3837,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3806
3837
  return r.value ? d.filter((u) => !re(u)) : d;
3807
3838
  }), l = /* @__PURE__ */ new Map(), g = ln(
3808
3839
  async (d, u, _) => t.actions.loadFieldOptions(t.section, d, u, _),
3809
- (d, u) => `${t.section.key}:${F(u)}:${j(d)}`
3840
+ (d, u) => `${t.section.key}:${B(u)}:${P(d)}`
3810
3841
  );
3811
3842
  function w(d) {
3812
3843
  t.actions.deleteRow(t.section, d);
@@ -3822,23 +3853,23 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3822
3853
  actions: t.actions
3823
3854
  }) : d.allowDelete !== !1);
3824
3855
  }
3825
- function L(d, u, _, O) {
3826
- const E = t.section.rows.slice(), x = _.cascadeClearFields ?? [], K = {
3856
+ function V(d, u, _, O) {
3857
+ const E = t.section.rows.slice(), z = _.cascadeClearFields ?? [], G = {
3827
3858
  ...d,
3828
- __rowKey: F(d),
3859
+ __rowKey: B(d),
3829
3860
  [_.code]: O
3830
3861
  };
3831
- x.forEach((q) => {
3832
- K[q] = "";
3862
+ z.forEach((q) => {
3863
+ G[q] = "";
3833
3864
  }), E[u] = {
3834
- ...K
3835
- }, t.actions.updateTableRows(t.section, E), V(_, O, K, u, E), y(_, K);
3865
+ ...G
3866
+ }, t.actions.updateTableRows(t.section, E), j(_, O, G, u, E), y(_, G);
3836
3867
  }
3837
- function V(d, u, _, O, E) {
3838
- const x = t.renderConfig?.onFieldBusinessChange;
3839
- if (x)
3868
+ function j(d, u, _, O, E) {
3869
+ const z = t.renderConfig?.onFieldBusinessChange;
3870
+ if (z)
3840
3871
  try {
3841
- const K = f(d, u), q = { ...t.section.model, ..._ }, Q = {
3872
+ const G = f(d, u), q = { ...t.section.model, ..._ }, Q = {
3842
3873
  field: d,
3843
3874
  value: u,
3844
3875
  section: t.section,
@@ -3852,19 +3883,19 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3852
3883
  sections: S(),
3853
3884
  sectionValues: k(t.section, E),
3854
3885
  actions: t.actions,
3855
- selectedOption: K[0],
3856
- selectedOptions: K
3886
+ selectedOption: G[0],
3887
+ selectedOptions: G
3857
3888
  };
3858
- Promise.resolve(x(Q)).catch((T) => {
3889
+ Promise.resolve(z(Q)).catch((T) => {
3859
3890
  console.error(
3860
3891
  "[GlobalInfoTableRenderer] field business change failed",
3861
3892
  T
3862
3893
  );
3863
3894
  });
3864
- } catch (K) {
3895
+ } catch (G) {
3865
3896
  console.error(
3866
3897
  "[GlobalInfoTableRenderer] field business change failed",
3867
- K
3898
+ G
3868
3899
  );
3869
3900
  }
3870
3901
  }
@@ -3879,26 +3910,26 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3879
3910
  }
3880
3911
  function k(d, u) {
3881
3912
  const O = S().flatMap((E) => {
3882
- const x = E.key === d.key ? u : E.renderType === "table" ? E.rows : E.model;
3913
+ const z = E.key === d.key ? u : E.renderType === "table" ? E.rows : E.model;
3883
3914
  return [
3884
3915
  E.key,
3885
3916
  E.id,
3886
3917
  E.setId,
3887
3918
  E.infSetId,
3888
3919
  E.code
3889
- ].filter(Boolean).map((K) => [String(K), x]);
3920
+ ].filter(Boolean).map((G) => [String(G), z]);
3890
3921
  });
3891
3922
  return Object.fromEntries(O);
3892
3923
  }
3893
- async function N(d, u, _ = {}, O = u) {
3894
- const E = F(O), x = `${E}:${j(d)}`, K = st(
3924
+ async function R(d, u, _ = {}, O = u) {
3925
+ const E = B(O), z = `${E}:${P(d)}`, G = st(
3895
3926
  t.section.key,
3896
3927
  d,
3897
3928
  O,
3898
3929
  E
3899
- ), q = l.get(x);
3900
- if (!An(_) && lt(d, q, K)) {
3901
- l.set(x, K);
3930
+ ), q = l.get(z);
3931
+ if (!An(_) && lt(d, q, G)) {
3932
+ l.set(z, G);
3902
3933
  return;
3903
3934
  }
3904
3935
  try {
@@ -3911,7 +3942,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3911
3942
  d,
3912
3943
  O,
3913
3944
  _
3914
- ), l.set(x, K);
3945
+ ), l.set(z, G);
3915
3946
  } catch (T) {
3916
3947
  console.error("[GlobalInfoTableRenderer] load field options failed", T);
3917
3948
  }
@@ -3919,26 +3950,26 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3919
3950
  async function y(d, u) {
3920
3951
  const _ = u ? [u] : t.section.rows;
3921
3952
  for (const O of _) {
3922
- const E = F(O);
3923
- for (const x of a.value) {
3924
- if (d && !Rn(x, d))
3953
+ const E = B(O);
3954
+ for (const z of a.value) {
3955
+ if (d && !Nn(z, d))
3925
3956
  continue;
3926
- const K = zn(x, O);
3927
- if (!A(x, K)) continue;
3957
+ const G = zn(z, O);
3958
+ if (!A(z, G)) continue;
3928
3959
  const q = st(
3929
3960
  t.section.key,
3930
- x,
3961
+ z,
3931
3962
  O,
3932
3963
  E
3933
- ), Q = `${E}:${j(x)}`, T = l.get(Q);
3934
- if (lt(x, T, q)) {
3964
+ ), Q = `${E}:${P(z)}`, T = l.get(Q);
3965
+ if (lt(z, T, q)) {
3935
3966
  l.set(Q, q);
3936
3967
  continue;
3937
3968
  }
3938
- T !== q && await N(
3939
- x,
3969
+ T !== q && await R(
3970
+ z,
3940
3971
  O,
3941
- xn(x, K)
3972
+ xn(z, G)
3942
3973
  );
3943
3974
  }
3944
3975
  }
@@ -3957,50 +3988,54 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
3957
3988
  value: O,
3958
3989
  state: t.state,
3959
3990
  actions: t.actions,
3960
- updateModelValue: (E) => L(u, _, d, E)
3991
+ updateModelValue: (E) => V(u, _, d, E)
3961
3992
  };
3962
3993
  }
3963
3994
  function D(d) {
3964
3995
  const u = String(d.code || "").trim(), _ = u ? `field-${u}` : "";
3965
3996
  if (_ && n[_]) return _;
3966
3997
  const O = _.toLowerCase();
3967
- return O !== _ && n[O] ? O : "";
3998
+ if (O !== _ && n[O]) return O;
3999
+ const E = String(d.raw?.type || d.fieldType || d.type || "").trim(), z = E ? `field-type-${E}` : "";
4000
+ if (z && n[z]) return z;
4001
+ const G = z.toLowerCase();
4002
+ return G !== z && n[G] ? G : "";
3968
4003
  }
3969
4004
  function b(d) {
3970
4005
  return !d.readonly && !d.disabled;
3971
4006
  }
3972
4007
  function A(d, u) {
3973
- return Nn(d, u, t.editing);
4008
+ return Rn(d, u, t.editing);
3974
4009
  }
3975
- function v(d) {
4010
+ function m(d) {
3976
4011
  return d.width ?? (Vt(d) ? 56 : void 0);
3977
4012
  }
3978
- function P(d) {
4013
+ function F(d) {
3979
4014
  if (!d.width)
3980
4015
  return d.minWidth ?? (Vt(d) ? 56 : void 0);
3981
4016
  }
3982
- function j(d) {
4017
+ function P(d) {
3983
4018
  return d.key || d.id || d.code;
3984
4019
  }
3985
- function z(d) {
4020
+ function x(d) {
3986
4021
  return i.value + d;
3987
4022
  }
3988
4023
  function re(d) {
3989
4024
  return jt(d);
3990
4025
  }
3991
4026
  let le = 0;
3992
- const R = /* @__PURE__ */ new WeakMap();
3993
- function F(d) {
4027
+ const N = /* @__PURE__ */ new WeakMap();
4028
+ function B(d) {
3994
4029
  const u = d.__rowKey ?? d.key ?? d.id ?? d.setId ?? d.infSetId;
3995
4030
  if (u != null && u !== "")
3996
4031
  return String(u);
3997
- const _ = d, O = R.get(_);
4032
+ const _ = d, O = N.get(_);
3998
4033
  if (O) return O;
3999
4034
  le += 1;
4000
4035
  const E = `local-${le}`;
4001
- return R.set(_, E), E;
4036
+ return N.set(_, E), E;
4002
4037
  }
4003
- function B(d) {
4038
+ function L(d) {
4004
4039
  return d.required || d.isRequired;
4005
4040
  }
4006
4041
  return Le(
@@ -4015,17 +4050,17 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
4015
4050
  },
4016
4051
  { immediate: !0 }
4017
4052
  ), (d, u) => {
4018
- const _ = on, O = eo("Delete"), E = Jt, x = Ct, K = nn;
4019
- return I(), G("div", {
4053
+ const _ = on, O = eo("Delete"), E = Jt, z = Ct, G = nn;
4054
+ return I(), K("div", {
4020
4055
  class: We(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
4021
4056
  }, [
4022
4057
  ne("div", ka, [
4023
- ke(K, {
4058
+ ke(G, {
4024
4059
  class: "global-info-table-renderer__table",
4025
4060
  data: d.section.rows,
4026
4061
  fit: !0,
4027
4062
  "table-layout": "auto",
4028
- "row-key": F
4063
+ "row-key": B
4029
4064
  }, {
4030
4065
  default: W(() => [
4031
4066
  r.value ? (I(), U(_, {
@@ -4033,18 +4068,18 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
4033
4068
  type: "index",
4034
4069
  label: c.value,
4035
4070
  width: s.value,
4036
- index: z
4071
+ index: x
4037
4072
  }, null, 8, ["label", "width"])) : fe("", !0),
4038
- (I(!0), G(Se, null, ye(a.value, (q) => (I(), U(_, {
4039
- key: j(q),
4073
+ (I(!0), K(Se, null, ye(a.value, (q) => (I(), U(_, {
4074
+ key: P(q),
4040
4075
  prop: q.code,
4041
4076
  label: q.label,
4042
- width: v(q),
4043
- "min-width": P(q)
4077
+ width: m(q),
4078
+ "min-width": F(q)
4044
4079
  }, {
4045
4080
  header: W(() => [
4046
4081
  ne("span", Ta, [
4047
- B(q) ? (I(), G("span", Ma, "*")) : fe("", !0),
4082
+ L(q) ? (I(), K("span", Ma, "*")) : fe("", !0),
4048
4083
  ne("span", null, oe(q.label), 1)
4049
4084
  ])
4050
4085
  ]),
@@ -4059,8 +4094,8 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
4059
4094
  section: d.section,
4060
4095
  row: Q,
4061
4096
  "row-index": T,
4062
- onLoadOptions: (X) => N(q, Q, X),
4063
- "onUpdate:modelValue": (X) => L(Q, T, q, X)
4097
+ onLoadOptions: (X) => R(q, Q, X),
4098
+ "onUpdate:modelValue": (X) => V(Q, T, q, X)
4064
4099
  }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), U(jn, {
4065
4100
  key: 2,
4066
4101
  field: q,
@@ -4084,7 +4119,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
4084
4119
  onConfirm: (T) => w(Q)
4085
4120
  }, {
4086
4121
  default: W(() => [
4087
- ke(x, {
4122
+ ke(z, {
4088
4123
  class: "global-info-table-renderer__delete",
4089
4124
  link: "",
4090
4125
  type: "danger"
@@ -4113,7 +4148,7 @@ const Sa = { class: "global-info-form-renderer__grid" }, _a = { class: "global-i
4113
4148
  ], 2);
4114
4149
  };
4115
4150
  }
4116
- }), Da = /* @__PURE__ */ be(Oa, [["__scopeId", "data-v-b7f901aa"]]), Fa = /* @__PURE__ */ pe({
4151
+ }), Da = /* @__PURE__ */ be(Oa, [["__scopeId", "data-v-9d2b5d0d"]]), Fa = /* @__PURE__ */ pe({
4117
4152
  name: "GlobalInfoAutoRenderer",
4118
4153
  __name: "GlobalInfoAutoRenderer",
4119
4154
  props: {
@@ -4259,7 +4294,7 @@ const Ba = /* @__PURE__ */ pe({
4259
4294
  }, Va = { class: "global-info-section-block__title-wrap" }, ja = { class: "global-info-section-block__title" }, Aa = {
4260
4295
  key: 0,
4261
4296
  class: "global-info-section-block__actions"
4262
- }, Ra = { class: "global-info-section-block__body" }, Na = { class: "global-info-section-block__status" }, za = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = /* @__PURE__ */ pe({
4297
+ }, Na = { class: "global-info-section-block__body" }, Ra = { class: "global-info-section-block__status" }, za = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = /* @__PURE__ */ pe({
4263
4298
  name: "GlobalInfoSectionBlock",
4264
4299
  __name: "GlobalInfoSectionBlock",
4265
4300
  props: {
@@ -4276,14 +4311,14 @@ const Ba = /* @__PURE__ */ pe({
4276
4311
  const t = e, n = Pe(), o = ge(!1), r = ge(null), c = ge(null), s = M(() => !!t.hideHeader), i = M(() => t.actions.getSectionStatus(t.node)), a = M(
4277
4312
  () => t.actions.getSection(t.node) ?? c.value
4278
4313
  ), l = M(() => {
4279
- const v = a.value;
4280
- return v ? ft(
4281
- v.fields,
4282
- v,
4314
+ const m = a.value;
4315
+ return m ? ft(
4316
+ m.fields,
4317
+ m,
4283
4318
  t.renderConfig,
4284
4319
  {
4285
- values: v.model,
4286
- rows: v.renderType === "table" ? v.rows : void 0
4320
+ values: m.model,
4321
+ rows: m.renderType === "table" ? m.rows : void 0
4287
4322
  }
4288
4323
  ) : [];
4289
4324
  }), g = M(
@@ -4292,11 +4327,11 @@ const Ba = /* @__PURE__ */ pe({
4292
4327
  () => !!(a.value && t.actions.isEditing(a.value))
4293
4328
  ), $ = M(
4294
4329
  () => a.value?.renderType === "table"
4295
- ), L = M(() => o.value || i.value.loading), V = M(
4330
+ ), V = M(() => o.value || i.value.loading), j = M(
4296
4331
  () => k(r.value || i.value.error)
4297
4332
  ), f = M(() => {
4298
- const v = a.value;
4299
- return v ? v.renderType === "table" && v.rows.length === 0 || l.value.length === 0 : !0;
4333
+ const m = a.value;
4334
+ return m ? m.renderType === "table" && m.rows.length === 0 || l.value.length === 0 : !0;
4300
4335
  }), S = M(() => ({
4301
4336
  node: t.node,
4302
4337
  section: a.value,
@@ -4305,62 +4340,62 @@ const Ba = /* @__PURE__ */ pe({
4305
4340
  renderConfig: t.renderConfig,
4306
4341
  title: g.value,
4307
4342
  editing: w.value,
4308
- loading: L.value,
4343
+ loading: V.value,
4309
4344
  error: r.value || i.value.error,
4310
- errorMessage: V.value,
4345
+ errorMessage: j.value,
4311
4346
  isEmpty: f.value,
4312
4347
  empty: f.value,
4313
4348
  sectionStatus: i.value,
4314
4349
  state: t.state,
4315
4350
  actions: t.actions,
4316
4351
  reload: A,
4317
- handleEdit: N,
4352
+ handleEdit: R,
4318
4353
  handleCancel: y,
4319
4354
  handleAddTableRow: h,
4320
4355
  handleSave: D
4321
4356
  }));
4322
- function k(v) {
4323
- return v ? v instanceof Error ? v.message : String(v) : "";
4357
+ function k(m) {
4358
+ return m ? m instanceof Error ? m.message : String(m) : "";
4324
4359
  }
4325
- async function N() {
4326
- const v = a.value;
4327
- v && (await t.onEdit?.(v, t.node), t.onEdit || t.actions.startEdit(v));
4360
+ async function R() {
4361
+ const m = a.value;
4362
+ m && (await t.onEdit?.(m, t.node), t.onEdit || t.actions.startEdit(m));
4328
4363
  }
4329
4364
  async function y() {
4330
- const v = a.value;
4331
- v && (await t.onCancel?.(v, t.node), t.onCancel || t.actions.cancelEdit(v));
4365
+ const m = a.value;
4366
+ m && (await t.onCancel?.(m, t.node), t.onCancel || t.actions.cancelEdit(m));
4332
4367
  }
4333
4368
  function h() {
4334
- const v = a.value;
4335
- if (!v) return;
4336
- const P = v.fields.reduce(
4337
- (j, z) => (j[z.code] = z.value ?? "", j),
4369
+ const m = a.value;
4370
+ if (!m) return;
4371
+ const F = m.fields.reduce(
4372
+ (P, x) => (P[x.code] = x.value ?? "", P),
4338
4373
  { __rowKey: `new-${Date.now()}` }
4339
4374
  );
4340
- t.actions.saveRow(v, P, -1);
4375
+ t.actions.saveRow(m, F, -1);
4341
4376
  }
4342
4377
  async function D() {
4343
- const v = a.value;
4344
- if (v)
4378
+ const m = a.value;
4379
+ if (m)
4345
4380
  try {
4346
4381
  if (t.onSave) {
4347
- await t.onSave(v, t.node);
4382
+ await t.onSave(m, t.node);
4348
4383
  return;
4349
4384
  }
4350
- await t.actions.saveSection(v);
4351
- } catch (P) {
4352
- r.value = P, console.error("[GlobalInfoSectionBlock] save section failed", P);
4385
+ await t.actions.saveSection(m);
4386
+ } catch (F) {
4387
+ r.value = F, console.error("[GlobalInfoSectionBlock] save section failed", F);
4353
4388
  }
4354
4389
  }
4355
- function b(v) {
4356
- r.value = v;
4390
+ function b(m) {
4391
+ r.value = m;
4357
4392
  }
4358
4393
  async function A() {
4359
4394
  o.value = !0, r.value = null, c.value = null;
4360
4395
  try {
4361
4396
  c.value = await t.actions.loadSection(t.node);
4362
- } catch (v) {
4363
- r.value = v, console.error("[GlobalInfoSectionBlock] load section failed", v);
4397
+ } catch (m) {
4398
+ r.value = m, console.error("[GlobalInfoSectionBlock] load section failed", m);
4364
4399
  } finally {
4365
4400
  o.value = !1;
4366
4401
  }
@@ -4372,19 +4407,19 @@ const Ba = /* @__PURE__ */ pe({
4372
4407
  () => {
4373
4408
  A();
4374
4409
  }
4375
- ), (v, P) => {
4376
- const j = Ct;
4377
- return I(), G("section", Pa, [
4378
- s.value ? fe("", !0) : (I(), G("header", Ea, [
4379
- te(v.$slots, "header", Oe(Be(S.value)), () => [
4410
+ ), (m, F) => {
4411
+ const P = Ct;
4412
+ return I(), K("section", Pa, [
4413
+ s.value ? fe("", !0) : (I(), K("header", Ea, [
4414
+ te(m.$slots, "header", Oe(Be(S.value)), () => [
4380
4415
  ne("div", Va, [
4381
- P[0] || (P[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
4416
+ F[0] || (F[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
4382
4417
  ne("h3", ja, oe(g.value), 1)
4383
4418
  ]),
4384
- te(v.$slots, "actions", Oe(Be(S.value)), () => [
4385
- a.value ? (I(), G("div", Aa, [
4386
- w.value ? (I(), G(Se, { key: 1 }, [
4387
- ke(j, {
4419
+ te(m.$slots, "actions", Oe(Be(S.value)), () => [
4420
+ a.value ? (I(), K("div", Aa, [
4421
+ w.value ? (I(), K(Se, { key: 1 }, [
4422
+ ke(P, {
4388
4423
  class: "global-info-section-block__cancel",
4389
4424
  disabled: i.value.saving,
4390
4425
  onClick: y
@@ -4394,7 +4429,7 @@ const Ba = /* @__PURE__ */ pe({
4394
4429
  ]),
4395
4430
  _: 1
4396
4431
  }, 8, ["disabled"]),
4397
- $.value ? (I(), U(j, {
4432
+ $.value ? (I(), U(P, {
4398
4433
  key: 0,
4399
4434
  class: "global-info-section-block__add",
4400
4435
  disabled: i.value.saving,
@@ -4405,7 +4440,7 @@ const Ba = /* @__PURE__ */ pe({
4405
4440
  ]),
4406
4441
  _: 1
4407
4442
  }, 8, ["disabled"])) : fe("", !0),
4408
- ke(j, {
4443
+ ke(P, {
4409
4444
  class: "global-info-section-block__confirm",
4410
4445
  loading: i.value.saving,
4411
4446
  onClick: D
@@ -4415,14 +4450,14 @@ const Ba = /* @__PURE__ */ pe({
4415
4450
  ]),
4416
4451
  _: 1
4417
4452
  }, 8, ["loading"])
4418
- ], 64)) : (I(), U(j, {
4453
+ ], 64)) : (I(), U(P, {
4419
4454
  key: 0,
4420
4455
  class: "global-info-section-block__edit",
4421
- disabled: i.value.saving || L.value,
4422
- onClick: N
4456
+ disabled: i.value.saving || V.value,
4457
+ onClick: R
4423
4458
  }, {
4424
4459
  default: W(() => [
4425
- P[1] || (P[1] = ne("svg", {
4460
+ F[1] || (F[1] = ne("svg", {
4426
4461
  class: "global-info-section-block__edit-icon",
4427
4462
  viewBox: "0 0 12 12",
4428
4463
  "aria-hidden": "true",
@@ -4441,35 +4476,35 @@ const Ba = /* @__PURE__ */ pe({
4441
4476
  ], !0)
4442
4477
  ], !0)
4443
4478
  ])),
4444
- ne("div", Ra, [
4445
- L.value ? te(v.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
4446
- ne("div", Na, oe(J(Z)("common.加载中___")), 1)
4447
- ], !0) : !a.value || f.value ? te(v.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
4479
+ ne("div", Na, [
4480
+ V.value ? te(m.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
4481
+ ne("div", Ra, oe(J(Z)("common.加载中___")), 1)
4482
+ ], !0) : !a.value || f.value ? te(m.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
4448
4483
  ne("div", za, oe(J(Z)("common.暂无数据")), 1)
4449
4484
  ], !0) : (I(), U(La, {
4450
4485
  key: 2,
4451
- "boundary-key": v.node.key,
4486
+ "boundary-key": m.node.key,
4452
4487
  label: g.value,
4453
4488
  onError: b
4454
4489
  }, {
4455
4490
  fallback: W(() => [
4456
- te(v.$slots, "empty", Oe(Be(S.value)), () => [
4491
+ te(m.$slots, "empty", Oe(Be(S.value)), () => [
4457
4492
  ne("div", xa, oe(J(Z)("common.暂无数据")), 1)
4458
4493
  ], !0)
4459
4494
  ]),
4460
4495
  default: W(() => [
4461
4496
  ke(Ba, {
4462
4497
  section: a.value,
4463
- node: v.node,
4498
+ node: m.node,
4464
4499
  editing: w.value,
4465
- state: v.state,
4466
- actions: v.actions,
4467
- "render-config": v.renderConfig
4468
- }, Re({ _: 2 }, [
4469
- ye(J(n), (z, re) => ({
4500
+ state: m.state,
4501
+ actions: m.actions,
4502
+ "render-config": m.renderConfig
4503
+ }, Ne({ _: 2 }, [
4504
+ ye(J(n), (x, re) => ({
4470
4505
  name: re,
4471
4506
  fn: W((le) => [
4472
- te(v.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
4507
+ te(m.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
4473
4508
  ])
4474
4509
  }))
4475
4510
  ]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
@@ -4529,7 +4564,7 @@ const Ba = /* @__PURE__ */ pe({
4529
4564
  function a(l) {
4530
4565
  return `global-info-section-${i(l, 0)}`;
4531
4566
  }
4532
- return (l, g) => (I(), G("section", Ka, [
4567
+ return (l, g) => (I(), K("section", Ka, [
4533
4568
  te(l.$slots, "header", {
4534
4569
  group: l.group,
4535
4570
  children: l.children,
@@ -4555,8 +4590,8 @@ const Ba = /* @__PURE__ */ pe({
4555
4590
  renderConfig: l.renderConfig,
4556
4591
  index: l.index,
4557
4592
  isEmpty: l.children.length === 0
4558
- }, void 0, !0) : (I(), G(Se, { key: 1 }, [
4559
- (I(!0), G(Se, null, ye(l.children, (w, $) => (I(), G("div", {
4593
+ }, void 0, !0) : (I(), K(Se, { key: 1 }, [
4594
+ (I(!0), K(Se, null, ye(l.children, (w, $) => (I(), K("div", {
4560
4595
  id: a(w),
4561
4596
  key: i(w, $),
4562
4597
  class: "global-info-group__section"
@@ -4574,11 +4609,11 @@ const Ba = /* @__PURE__ */ pe({
4574
4609
  actions: l.actions,
4575
4610
  "hide-header": r.value,
4576
4611
  "render-config": l.renderConfig
4577
- }, Re({ _: 2 }, [
4578
- ye(J(n), (L, V) => ({
4579
- name: V,
4612
+ }, Ne({ _: 2 }, [
4613
+ ye(J(n), (V, j) => ({
4614
+ name: j,
4580
4615
  fn: W((f) => [
4581
- te(l.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
4616
+ te(l.$slots, j, ae({ ref_for: !0 }, f), void 0, !0)
4582
4617
  ])
4583
4618
  }))
4584
4619
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
@@ -4612,17 +4647,17 @@ const Ba = /* @__PURE__ */ pe({
4612
4647
  const t = e, n = Pe(), o = M(() => {
4613
4648
  const g = t.nodes.filter(
4614
4649
  (k) => r(k).length > 0
4615
- ), w = t.nodes.filter((k) => r(k).length === 0), $ = w.filter((k) => c(k)), L = w.filter((k) => !c(k)), V = g.map((k) => ({
4650
+ ), w = t.nodes.filter((k) => r(k).length === 0), $ = w.filter((k) => c(k)), V = w.filter((k) => !c(k)), j = g.map((k) => ({
4616
4651
  group: k,
4617
4652
  children: r(k)
4618
4653
  })), f = $.map((k) => ({
4619
4654
  group: k,
4620
4655
  children: [k]
4621
4656
  }));
4622
- if (V.length === 0)
4623
- return $.length > 0 ? f : l(L);
4624
- const S = l(L);
4625
- return [...V, ...f, ...S];
4657
+ if (j.length === 0)
4658
+ return $.length > 0 ? f : l(V);
4659
+ const S = l(V);
4660
+ return [...j, ...f, ...S];
4626
4661
  });
4627
4662
  function r(g) {
4628
4663
  return g.children ?? [];
@@ -4637,7 +4672,7 @@ const Ba = /* @__PURE__ */ pe({
4637
4672
  return g.key || g.id || g.tagId || `${w}`;
4638
4673
  }
4639
4674
  function a(g) {
4640
- const w = g[0], $ = w?.raw ?? {}, L = String(
4675
+ const w = g[0], $ = w?.raw ?? {}, V = String(
4641
4676
  $.parentTagName || $.parentName || $.parentLabel || w?.parentId || Z("common.信息")
4642
4677
  );
4643
4678
  return {
@@ -4649,26 +4684,26 @@ const Ba = /* @__PURE__ */ pe({
4649
4684
  tagId: String(
4650
4685
  w?.parentTagId || w?.parentId || w?.tagId || "global-info-group"
4651
4686
  ),
4652
- tagName: L,
4653
- label: L,
4687
+ tagName: V,
4688
+ label: V,
4654
4689
  children: g
4655
4690
  };
4656
4691
  }
4657
4692
  function l(g) {
4658
4693
  const w = /* @__PURE__ */ new Map();
4659
4694
  return g.forEach(($) => {
4660
- const L = String(
4695
+ const V = String(
4661
4696
  $.parentId || $.parentTagId || "global-info-flat"
4662
- ), V = w.get(L) ?? [];
4663
- V.push($), w.set(L, V);
4697
+ ), j = w.get(V) ?? [];
4698
+ j.push($), w.set(V, j);
4664
4699
  }), Array.from(w.values()).map(($) => ({
4665
4700
  group: a($),
4666
4701
  children: $
4667
4702
  }));
4668
4703
  }
4669
- return (g, w) => (I(), G("div", Xa, [
4670
- (I(!0), G(Se, null, ye(o.value, ($, L) => (I(), G(Se, {
4671
- key: i($.group, L)
4704
+ return (g, w) => (I(), K("div", Xa, [
4705
+ (I(!0), K(Se, null, ye(o.value, ($, V) => (I(), K(Se, {
4706
+ key: i($.group, V)
4672
4707
  }, [
4673
4708
  s($.group) ? te(g.$slots, s($.group), {
4674
4709
  key: 0,
@@ -4677,7 +4712,7 @@ const Ba = /* @__PURE__ */ pe({
4677
4712
  state: g.state,
4678
4713
  actions: g.actions,
4679
4714
  renderConfig: g.renderConfig,
4680
- index: L,
4715
+ index: V,
4681
4716
  isEmpty: $.children.length === 0
4682
4717
  }, void 0, !0) : J(n).group ? te(g.$slots, "group", {
4683
4718
  key: 1,
@@ -4686,7 +4721,7 @@ const Ba = /* @__PURE__ */ pe({
4686
4721
  state: g.state,
4687
4722
  actions: g.actions,
4688
4723
  renderConfig: g.renderConfig,
4689
- index: L,
4724
+ index: V,
4690
4725
  isEmpty: $.children.length === 0
4691
4726
  }, void 0, !0) : (I(), U(Qa, {
4692
4727
  key: 2,
@@ -4695,9 +4730,9 @@ const Ba = /* @__PURE__ */ pe({
4695
4730
  state: g.state,
4696
4731
  actions: g.actions,
4697
4732
  "render-config": g.renderConfig,
4698
- index: L
4699
- }, Re({ _: 2 }, [
4700
- ye(J(n), (V, f) => ({
4733
+ index: V
4734
+ }, Ne({ _: 2 }, [
4735
+ ye(J(n), (j, f) => ({
4701
4736
  name: f,
4702
4737
  fn: W((S) => [
4703
4738
  te(g.$slots, f, ae({ ref_for: !0 }, S), void 0, !0)
@@ -4707,8 +4742,8 @@ const Ba = /* @__PURE__ */ pe({
4707
4742
  ], 64))), 128))
4708
4743
  ]));
4709
4744
  }
4710
- }), cs = /* @__PURE__ */ be(es, [["__scopeId", "data-v-d4ed3f80"]]);
4711
- function us(e, t = {}) {
4745
+ }), Vs = /* @__PURE__ */ be(es, [["__scopeId", "data-v-d4ed3f80"]]);
4746
+ function js(e, t = {}) {
4712
4747
  Un(e, t);
4713
4748
  }
4714
4749
  export {
@@ -4719,38 +4754,38 @@ export {
4719
4754
  jn as GlobalInfoFieldValue,
4720
4755
  $a as GlobalInfoFormRenderer,
4721
4756
  Qa as GlobalInfoGroup,
4722
- is as GlobalInfoProvider,
4757
+ Es as GlobalInfoProvider,
4723
4758
  Ga as GlobalInfoSectionBlock,
4724
4759
  Ba as GlobalInfoSectionOutlet,
4725
- cs as GlobalInfoSections,
4760
+ Vs as GlobalInfoSections,
4726
4761
  Da as GlobalInfoTableRenderer,
4727
4762
  Ft as JtAttachmentPreview,
4728
- ps as JtAttachmentPreviewByParams,
4763
+ Rs as JtAttachmentPreviewByParams,
4729
4764
  rt as JtButton,
4730
4765
  ho as JtCascader,
4731
- as as JtCrudTable,
4766
+ Bs as JtCrudTable,
4732
4767
  yo as JtDatePicker,
4733
4768
  Po as JtFilterBar,
4734
4769
  $o as JtFormItems,
4735
4770
  ht as JtInput,
4736
- ss as JtPageHeader,
4771
+ Ls as JtPageHeader,
4737
4772
  qo as JtPagination,
4738
4773
  _o as JtSelect,
4739
- Ro as JtTable,
4774
+ No as JtTable,
4740
4775
  $r as buildGlobalInfoUpdatePayload,
4741
4776
  _r as createEmptyGlobalInfoViewModel,
4742
- ms as getJtLocale,
4743
- us as install,
4777
+ zs as getJtLocale,
4778
+ js as install,
4744
4779
  Un as installLocale,
4745
- ls as isGlobalInfoNode,
4780
+ Ps as isGlobalInfoNode,
4746
4781
  Sn as mergeGlobalInfoChildren,
4747
4782
  wr as normalizeGlobalInfoDetail,
4748
4783
  xt as normalizeGlobalInfoTree,
4749
- vs as normalizeLocale,
4750
- hs as resetJtLocale,
4784
+ xs as normalizeLocale,
4785
+ qs as resetJtLocale,
4751
4786
  Ir as resolveGlobalInfoRenderType,
4752
- gs as setJtLocale,
4753
- ys as setupJtAttachmentPreview,
4787
+ Gs as setJtLocale,
4788
+ Ks as setupJtAttachmentPreview,
4754
4789
  ea as useGlobalInfoController,
4755
4790
  Zr as validateGlobalInfoRequiredInfoSet
4756
4791
  };