@jt-home/mfe-components 1.0.22 → 1.0.24

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,5 +1,5 @@
1
1
  import './style.css';
2
- import { defineComponent as ce, useAttrs as zn, computed as L, openBlock as $, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as zt, createCommentVNode as ue, ref as ve, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, createVNode as we, withModifiers as Gt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
2
+ import { defineComponent as ce, useAttrs as xn, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as J, renderSlot as ee, resolveDynamicComponent as xt, createCommentVNode as ue, ref as he, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as Y, Fragment as be, renderList as ge, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, createVNode as we, withModifiers as Gt, unref as re, createSlots as je, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
3
3
  import { ElButton as It, ElIcon as Yt, ElCascader as Wn, ElDatePicker as Ut, ElInput as Ht, ElSelect as Jt, ElOption as Wt, ElFormItem as Zt, ElForm as Qt, ElTable as Xt, ElTableColumn as en, ElPagination as Zn, ElLoadingDirective as Qn, ElInputNumber as Xn, ElSwitch as eo, ElRow as to, ElCol as no, ElPopconfirm as oo } from "element-plus/es";
4
4
  import { JtAttachmentPreview as Tt } from "./JtAttachmentPreview/index.mjs";
5
5
  import { JtAttachmentPreviewByParams as Ha, setupJtAttachmentPreview as Ja } from "./JtAttachmentPreview/index.mjs";
@@ -55,18 +55,18 @@ const lo = /* @__PURE__ */ ce({
55
55
  tag: {}
56
56
  },
57
57
  setup(e) {
58
- const t = e, n = zn(), o = L(() => {
58
+ const t = e, n = xn(), o = V(() => {
59
59
  const { icon: i, ...s } = t;
60
60
  return {
61
61
  ...on(n),
62
62
  ...s
63
63
  };
64
- }), r = L(() => nn(n));
64
+ }), r = V(() => nn(n));
65
65
  return (i, s) => {
66
66
  const l = Yt, a = It;
67
- return $(), H(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
67
+ return k(), H(a, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
68
68
  default: J(() => [
69
- i.$slots.icon ? ($(), H(l, {
69
+ i.$slots.icon ? (k(), H(l, {
70
70
  key: 0,
71
71
  class: "jt-button__icon"
72
72
  }, {
@@ -74,12 +74,12 @@ const lo = /* @__PURE__ */ ce({
74
74
  ee(i.$slots, "icon", {}, void 0, !0)
75
75
  ]),
76
76
  _: 3
77
- })) : t.icon ? ($(), H(l, {
77
+ })) : t.icon ? (k(), H(l, {
78
78
  key: 1,
79
79
  class: "jt-button__icon"
80
80
  }, {
81
81
  default: J(() => [
82
- ($(), H(zt(t.icon)))
82
+ (k(), H(xt(t.icon)))
83
83
  ]),
84
84
  _: 1
85
85
  })) : ue("", !0),
@@ -94,7 +94,7 @@ const lo = /* @__PURE__ */ ce({
94
94
  for (const [o, r] of t)
95
95
  n[o] = r;
96
96
  return n;
97
- }, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-29aa58e0"]]), co = {
97
+ }, tt = /* @__PURE__ */ ye(lo, [["__scopeId", "data-v-fbcdce34"]]), co = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
100
  placeholder: "请选择",
@@ -107,10 +107,10 @@ function Ft(e) {
107
107
  );
108
108
  }
109
109
  function uo(e) {
110
- const { hideDropdownIcon: t, ...n } = e, o = Ft(n);
111
- return o.props && (o.props = Ft(
112
- o.props
113
- )), o;
110
+ const t = Ft(e);
111
+ return t.props && (t.props = Ft(
112
+ t.props
113
+ )), t;
114
114
  }
115
115
  const fo = /* @__PURE__ */ ce({
116
116
  name: "JtCascader",
@@ -152,62 +152,59 @@ const fo = /* @__PURE__ */ ce({
152
152
  height: {},
153
153
  emptyValues: {},
154
154
  valueOnClear: { type: [String, Number, Boolean, Function, null] },
155
- options: {},
156
- hideDropdownIcon: { type: Boolean }
155
+ options: {}
157
156
  }, co),
158
157
  emits: ro,
159
158
  setup(e, { emit: t }) {
160
- const n = e, o = L(() => uo(n)), r = ve(n.modelValue);
159
+ const n = e, o = V(() => uo(n)), r = he(n.modelValue);
161
160
  Be(
162
161
  () => n.modelValue,
163
- (d) => {
164
- r.value = d;
162
+ (g) => {
163
+ r.value = g;
165
164
  },
166
165
  { deep: !0 }
167
166
  );
168
167
  const i = t;
169
- function s(d, ...S) {
170
- i(d, ...S);
168
+ function s(g, ...w) {
169
+ i(g, ...w);
171
170
  }
172
- function l(d) {
173
- r.value = d, s("update:modelValue", d);
171
+ function l(g) {
172
+ r.value = g, s("update:modelValue", g);
174
173
  }
175
- function a(d) {
176
- s("change", d);
174
+ function a(g) {
175
+ s("change", g);
177
176
  }
178
- function c(d) {
179
- s("focus", d);
177
+ function c(g) {
178
+ s("focus", g);
180
179
  }
181
- function g(d) {
182
- s("blur", d);
180
+ function m(g) {
181
+ s("blur", g);
183
182
  }
184
- function w() {
183
+ function _() {
185
184
  s("clear");
186
185
  }
187
- function I(d) {
188
- s("visibleChange", d);
186
+ function $(g) {
187
+ s("visibleChange", g);
189
188
  }
190
- function V(d) {
191
- s("expandChange", d);
189
+ function b(g) {
190
+ s("expandChange", g);
192
191
  }
193
- function A(d) {
194
- s("removeTag", d);
192
+ function A(g) {
193
+ s("removeTag", g);
195
194
  }
196
- return (d, S) => {
197
- const k = Wn;
198
- return $(), H(k, oe({
199
- class: ["jt-cascader", { "jt-cascader--hide-dropdown-icon": n.hideDropdownIcon }]
200
- }, o.value, {
195
+ return (g, w) => {
196
+ const S = Wn;
197
+ return k(), H(S, oe({ class: "jt-cascader" }, o.value, {
201
198
  "model-value": r.value,
202
199
  "onUpdate:modelValue": l,
203
200
  onChange: a,
204
201
  onFocus: c,
205
- onBlur: g,
206
- onClear: w,
207
- onVisibleChange: I,
208
- onExpandChange: V,
202
+ onBlur: m,
203
+ onClear: _,
204
+ onVisibleChange: $,
205
+ onExpandChange: b,
209
206
  onRemoveTag: A
210
- }), null, 16, ["class", "model-value"]);
207
+ }), null, 16, ["model-value"]);
211
208
  };
212
209
  }
213
210
  }), po = /* @__PURE__ */ ce({
@@ -263,7 +260,7 @@ const fo = /* @__PURE__ */ ce({
263
260
  isRange: { type: Boolean }
264
261
  },
265
262
  setup(e) {
266
- const t = e, n = L(() => ({
263
+ const t = e, n = V(() => ({
267
264
  ...t,
268
265
  startPlaceholder: t.startPlaceholder ?? (o(t.type) ? "开始日期" : void 0),
269
266
  endPlaceholder: t.endPlaceholder ?? (o(t.type) ? "结束日期" : void 0)
@@ -273,12 +270,12 @@ const fo = /* @__PURE__ */ ce({
273
270
  }
274
271
  return (r, i) => {
275
272
  const s = Ut;
276
- return $(), H(s, oe({ class: "jt-date-picker" }, n.value, {
273
+ return k(), H(s, oe({ class: "jt-date-picker" }, n.value, {
277
274
  "onUpdate:modelValue": i[0] || (i[0] = (l) => r.$emit("update:modelValue", l))
278
275
  }), null, 16);
279
276
  };
280
277
  }
281
- }), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-0e86d387"]]), ho = /* @__PURE__ */ ce({
278
+ }), mo = /* @__PURE__ */ ye(po, [["__scopeId", "data-v-2aaf2264"]]), vo = /* @__PURE__ */ ce({
282
279
  name: "JtInput",
283
280
  __name: "index",
284
281
  props: {
@@ -321,7 +318,7 @@ const fo = /* @__PURE__ */ ce({
321
318
  enter: () => !0
322
319
  },
323
320
  setup(e, { emit: t }) {
324
- const n = e, o = t, r = L(() => Object.fromEntries(
321
+ const n = e, o = t, r = V(() => Object.fromEntries(
325
322
  Object.keys(Ot).map((i) => [
326
323
  i,
327
324
  (...s) => o(i, ...s)
@@ -329,17 +326,16 @@ const fo = /* @__PURE__ */ ce({
329
326
  ));
330
327
  return (i, s) => {
331
328
  const l = Ht;
332
- return $(), H(l, oe({ class: "jt-input" }, n, Ze(r.value), {
329
+ return k(), H(l, oe({ class: "jt-input" }, n, Ze(r.value), {
333
330
  onKeyup: s[0] || (s[0] = Gn((a) => o("enter"), ["enter"]))
334
331
  }), null, 16);
335
332
  };
336
333
  }
337
- }), mt = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-d0a67995"]]), vo = /* @__PURE__ */ ce({
334
+ }), mt = /* @__PURE__ */ ye(vo, [["__scopeId", "data-v-c4e9cb3f"]]), ho = /* @__PURE__ */ ce({
338
335
  name: "JtSelect",
339
336
  __name: "index",
340
337
  props: {
341
338
  options: {},
342
- hideDropdownIcon: { type: Boolean },
343
339
  ariaLabel: {},
344
340
  emptyValues: {},
345
341
  valueOnClear: {},
@@ -394,10 +390,10 @@ const fo = /* @__PURE__ */ ce({
394
390
  },
395
391
  emits: Dt,
396
392
  setup(e, { emit: t }) {
397
- const n = e, o = L(() => {
398
- const { options: s, hideDropdownIcon: l, ...a } = n;
399
- return a;
400
- }), r = t, i = L(() => Object.fromEntries(
393
+ const n = e, o = V(() => {
394
+ const { options: s, ...l } = n;
395
+ return l;
396
+ }), r = t, i = V(() => Object.fromEntries(
401
397
  Object.keys(Dt).map((s) => [
402
398
  s,
403
399
  (...l) => r(s, ...l)
@@ -405,20 +401,18 @@ const fo = /* @__PURE__ */ ce({
405
401
  ));
406
402
  return (s, l) => {
407
403
  const a = Wt, c = Jt;
408
- return $(), H(c, oe({
409
- class: ["jt-select", { "jt-select--hide-dropdown-icon": n.hideDropdownIcon }]
410
- }, o.value, Ze(i.value)), {
404
+ return k(), H(c, oe({ class: "jt-select" }, o.value, Ze(i.value)), {
411
405
  default: J(() => [
412
- ($(!0), Y(be, null, ge(s.options ?? [], (g) => ($(), H(a, oe({
413
- key: g.value,
406
+ (k(!0), Y(be, null, ge(s.options ?? [], (m) => (k(), H(a, oe({
407
+ key: m.value,
414
408
  ref_for: !0
415
- }, g), null, 16))), 128))
409
+ }, m), null, 16))), 128))
416
410
  ]),
417
411
  _: 1
418
- }, 16, ["class"]);
412
+ }, 16);
419
413
  };
420
414
  }
421
- }), go = /* @__PURE__ */ ye(vo, [["__scopeId", "data-v-09c2c7a3"]]), yo = { class: "jt-form-items" }, ht = 4, bo = /* @__PURE__ */ ce({
415
+ }), go = /* @__PURE__ */ ye(ho, [["__scopeId", "data-v-abce8e44"]]), yo = { class: "jt-form-items" }, vt = 4, bo = /* @__PURE__ */ ce({
422
416
  name: "JTFormItems",
423
417
  __name: "JtFormItems",
424
418
  props: {
@@ -438,101 +432,101 @@ const fo = /* @__PURE__ */ ce({
438
432
  daterange: "date-picker",
439
433
  "date-range": "date-picker",
440
434
  dateRange: "date-picker"
441
- }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = L(() => t.configs.filter((h) => h.show !== !1)), a = (h) => {
442
- const { itemType: m } = h;
443
- if (!m) return mt;
444
- if (typeof m != "string") return m;
445
- const M = o[m] ?? m;
446
- return i.includes(M) ? n[M] : (console.error(
447
- `[JtFormItems] 不支持的 itemType: "${m}",支持的类型: ${i.join(", ")}`
435
+ }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), s = /* @__PURE__ */ new Map(), l = V(() => t.configs.filter((I) => I.show !== !1)), a = (I) => {
436
+ const { itemType: h } = I;
437
+ if (!h) return mt;
438
+ if (typeof h != "string") return h;
439
+ const T = o[h] ?? h;
440
+ return i.includes(T) ? n[T] : (console.error(
441
+ `[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${i.join(", ")}`
448
442
  ), mt);
449
- }, c = (h) => {
450
- const m = on(h, r);
451
- return h.itemType === "select" || h.itemType === "remote-select" || h.itemType === "cascader" ? {
452
- ...m,
453
- options: h.options
454
- } : R(h.itemType) ? {
455
- ...m,
443
+ }, c = (I) => {
444
+ const h = on(I, r);
445
+ return I.itemType === "select" || I.itemType === "remote-select" || I.itemType === "cascader" ? {
446
+ ...h,
447
+ options: I.options
448
+ } : j(I.itemType) ? {
449
+ ...h,
456
450
  type: "daterange"
457
- } : m;
458
- }, g = (h) => nn(h, r), w = (h) => ({
459
- rules: h.rules,
460
- ...h.formItemProps
461
- }), I = (h, m) => {
462
- t.formData[h] = m;
451
+ } : h;
452
+ }, m = (I) => nn(I, r), _ = (I) => ({
453
+ rules: I.rules,
454
+ ...I.formItemProps
455
+ }), $ = (I, h) => {
456
+ t.formData[I] = h;
463
457
  };
464
- function V(h) {
465
- return (m) => {
466
- if (m) {
467
- s.set(h, m);
458
+ function b(I) {
459
+ return (h) => {
460
+ if (h) {
461
+ s.set(I, h);
468
462
  return;
469
463
  }
470
- s.delete(h);
464
+ s.delete(I);
471
465
  };
472
466
  }
473
- function A(h, m) {
467
+ function A(I, h) {
474
468
  Kn(() => {
475
- s.get(h)?.validate(m).catch(() => {
469
+ s.get(I)?.validate(h).catch(() => {
476
470
  });
477
471
  });
478
472
  }
479
- const d = (h) => Math.min(Math.max(Math.trunc(h || 1), 1), 4), S = L(() => {
480
- const m = l.value.reduce(
481
- (M, v) => M + d(t.span || v.span),
473
+ const g = (I) => Math.min(Math.max(Math.trunc(I || 1), 1), 4), w = V(() => {
474
+ const h = l.value.reduce(
475
+ (T, p) => T + g(t.span || p.span),
482
476
  0
483
- ) % ht;
484
- return m === 0 ? {
485
- gridColumn: `1 / span ${ht}`
477
+ ) % vt;
478
+ return h === 0 ? {
479
+ gridColumn: `1 / span ${vt}`
486
480
  } : {
487
- gridColumn: `${m + 1} / span ${ht - m}`
481
+ gridColumn: `${h + 1} / span ${vt - h}`
488
482
  };
489
- }), k = (h) => ({
490
- gridColumn: `span ${d(t.span || h.span)}`
483
+ }), S = (I) => ({
484
+ gridColumn: `span ${g(t.span || I.span)}`
491
485
  });
492
- function R(h) {
493
- return h === "daterange" || h === "date-range" || h === "dateRange";
486
+ function j(I) {
487
+ return I === "daterange" || I === "date-range" || I === "dateRange";
494
488
  }
495
- return (h, m) => {
496
- const M = Zt;
497
- return $(), Y("div", yo, [
498
- ($(!0), Y(be, null, ge(l.value, (v) => ($(), H(M, oe({
499
- key: v.prop,
489
+ return (I, h) => {
490
+ const T = Zt;
491
+ return k(), Y("div", yo, [
492
+ (k(!0), Y(be, null, ge(l.value, (p) => (k(), H(T, oe({
493
+ key: p.prop,
500
494
  ref_for: !0,
501
- ref: V(v.prop),
495
+ ref: b(p.prop),
502
496
  class: "jt-form-items__item",
503
- style: k(v),
504
- label: v.label,
505
- prop: v.prop
506
- }, w(v)), {
497
+ style: S(p),
498
+ label: p.label,
499
+ prop: p.prop
500
+ }, _(p)), {
507
501
  default: J(() => [
508
- v.showSlot ? ee(h.$slots, v.prop, { key: 0 }, void 0, !0) : ($(), H(zt(a(v)), oe({
502
+ p.showSlot ? ee(I.$slots, p.prop, { key: 0 }, void 0, !0) : (k(), H(xt(a(p)), oe({
509
503
  key: 1,
510
- "model-value": h.formData[v.prop],
504
+ "model-value": I.formData[p.prop],
511
505
  ref_for: !0
512
- }, c(v), Ze(g(v)), {
513
- "onUpdate:modelValue": (j) => I(v.prop, j),
514
- onChange: () => A(v.prop, "change"),
515
- onBlur: () => A(v.prop, "blur")
506
+ }, c(p), Ze(m(p)), {
507
+ "onUpdate:modelValue": (N) => $(p.prop, N),
508
+ onChange: () => A(p.prop, "change"),
509
+ onBlur: () => A(p.prop, "blur")
516
510
  }), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
517
511
  ]),
518
512
  _: 2
519
513
  }, 1040, ["style", "label", "prop"]))), 128)),
520
- h.$slots.actions ? ($(), H(M, {
514
+ I.$slots.actions ? (k(), H(T, {
521
515
  key: 0,
522
516
  class: "jt-form-items__actions",
523
- style: qt(S.value)
517
+ style: qt(w.value)
524
518
  }, {
525
519
  default: J(() => [
526
- ee(h.$slots, "actions", {}, void 0, !0)
520
+ ee(I.$slots, "actions", {}, void 0, !0)
527
521
  ]),
528
522
  _: 3
529
523
  }, 8, ["style"])) : ue("", !0)
530
524
  ]);
531
525
  };
532
526
  }
533
- }), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-2ce5538f"]]);
527
+ }), So = /* @__PURE__ */ ye(bo, [["__scopeId", "data-v-136dd5e5"]]);
534
528
  function wo() {
535
- const e = ve(!1);
529
+ const e = he(!1);
536
530
  function t() {
537
531
  e.value = !0;
538
532
  }
@@ -555,36 +549,36 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
555
549
  },
556
550
  emits: ["update:modelValue", "search", "reset"],
557
551
  setup(e, { expose: t, emit: n }) {
558
- const o = e, r = n, i = ve(), s = Ee(), l = ve({}), {
552
+ const o = e, r = n, i = he(), s = Ee(), l = he({}), {
559
553
  searchDisabled: a,
560
554
  searchLoading: c,
561
- searchDone: g
562
- } = wo(), w = L(() => o.option), I = ve(w.value.searchCollapsed ?? !0), V = L(() => o.columns.filter((P) => P.search === !0)), A = L(
563
- () => Math.max(1, w.value.searchSpan ?? 4)
564
- ), d = L(() => Math.max(1, w.value.searchCollapsedRows ?? 1)), S = L(() => A.value), k = L(
565
- () => Math.max(1, S.value * d.value)
566
- ), R = L(() => A.value), h = L(() => D.value ? "264px" : "174px"), m = L(() => U(w.value.searchLabelWidth ?? 84)), M = L(() => w.value.searchLabelPosition ?? "top"), v = L(() => G(w.value.searchGutter, 14)), j = L(() => G(w.value.searchRowGap, 14)), b = L(() => X(w.value.searchPadding ?? "18px 4px 0")), D = L(() => w.value.searchCollapse === !1 ? !1 : q(V.value) > k.value), T = L(() => {
567
- if (!D.value || !I.value) return V.value;
555
+ searchDone: m
556
+ } = wo(), _ = V(() => o.option), $ = he(_.value.searchCollapsed ?? !0), b = V(() => o.columns.filter((P) => P.search === !0)), A = V(
557
+ () => Math.max(1, _.value.searchSpan ?? 4)
558
+ ), g = V(() => Math.max(1, _.value.searchCollapsedRows ?? 1)), w = V(() => A.value), S = V(
559
+ () => Math.max(1, w.value * g.value)
560
+ ), j = V(() => A.value), I = V(() => F.value ? "264px" : "174px"), h = V(() => U(_.value.searchLabelWidth ?? 84)), T = V(() => _.value.searchLabelPosition ?? "top"), p = V(() => G(_.value.searchGutter, 14)), N = V(() => G(_.value.searchRowGap, 14)), y = V(() => X(_.value.searchPadding ?? "18px 4px 0")), F = V(() => _.value.searchCollapse === !1 ? !1 : q(b.value) > S.value), O = V(() => {
561
+ if (!F.value || !$.value) return b.value;
568
562
  let P = 0;
569
- return V.value.filter((Z) => {
570
- const ae = B(Z);
571
- return P + ae > k.value ? !1 : (P += ae, !0);
563
+ return b.value.filter((Z) => {
564
+ const ae = E(Z);
565
+ return P + ae > S.value ? !1 : (P += ae, !0);
572
566
  });
573
- }), x = L(
574
- () => T.value.filter((P) => !!s[`${P.prop}-search`])
575
- ), ne = L(() => {
576
- const [P] = T.value;
577
- return !!P && T.value.length === 1 && B(P) < A.value;
578
- }), z = L(() => {
579
- const [P] = T.value;
580
- return `${Math.min(A.value, P ? B(P) + 1 : 1)}`;
581
- }), N = L(
582
- () => T.value.map((P) => F(P))
567
+ }), z = V(
568
+ () => O.value.filter((P) => !!s[`${P.prop}-search`])
569
+ ), ne = V(() => {
570
+ const [P] = O.value;
571
+ return !!P && O.value.length === 1 && E(P) < A.value;
572
+ }), x = V(() => {
573
+ const [P] = O.value;
574
+ return `${Math.min(A.value, P ? E(P) + 1 : 1)}`;
575
+ }), R = V(
576
+ () => O.value.map((P) => B(P))
583
577
  );
584
578
  Be(
585
- () => w.value.searchCollapsed,
579
+ () => _.value.searchCollapsed,
586
580
  (P) => {
587
- typeof P == "boolean" && (I.value = P);
581
+ typeof P == "boolean" && ($.value = P);
588
582
  }
589
583
  ), Be(
590
584
  () => o.modelValue,
@@ -593,18 +587,18 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
593
587
  },
594
588
  { deep: !0, immediate: !0 }
595
589
  );
596
- function O(P, Z) {
590
+ function D(P, Z) {
597
591
  if (a.value) return;
598
592
  const ae = { ...l.value, [P]: Z };
599
593
  l.value = ae, r("update:modelValue", ae);
600
594
  }
601
- function F(P) {
595
+ function B(P) {
602
596
  const Z = P.searchProps ?? {};
603
597
  return {
604
598
  ...Z,
605
599
  prop: P.prop,
606
600
  label: P.searchLabel ?? P.label,
607
- span: B(P),
601
+ span: E(P),
608
602
  itemType: P.searchType ?? "input",
609
603
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
610
604
  showSlot: !!s[`${P.prop}-search`],
@@ -618,11 +612,11 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
618
612
  },
619
613
  // 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
620
614
  onEnter: (...ae) => {
621
- u(Z.onEnter, ...ae), y();
615
+ u(Z.onEnter, ...ae), v();
622
616
  },
623
617
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
624
618
  "onUpdate:modelValue": (ae) => {
625
- u(Z["onUpdate:modelValue"], ae), O(P.prop, ae);
619
+ u(Z["onUpdate:modelValue"], ae), D(P.prop, ae);
626
620
  }
627
621
  };
628
622
  }
@@ -633,7 +627,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
633
627
  }
634
628
  typeof P == "function" && P(...Z);
635
629
  }
636
- async function y() {
630
+ async function v() {
637
631
  if (!a.value) {
638
632
  if (i.value)
639
633
  try {
@@ -644,17 +638,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
644
638
  r("search");
645
639
  }
646
640
  }
647
- function _() {
641
+ function C() {
648
642
  a.value || r("reset");
649
643
  }
650
- function E() {
651
- I.value = !I.value;
644
+ function L() {
645
+ $.value = !$.value;
652
646
  }
653
- function B(P) {
647
+ function E(P) {
654
648
  return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
655
649
  }
656
650
  function q(P) {
657
- return P.reduce((Z, ae) => Z + B(ae), 0);
651
+ return P.reduce((Z, ae) => Z + E(ae), 0);
658
652
  }
659
653
  function U(P) {
660
654
  return typeof P == "number" ? `${P}px` : P;
@@ -673,20 +667,20 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
673
667
  /** 开启筛选表单禁用。 */
674
668
  searchLoading: c,
675
669
  /** 关闭筛选表单禁用。 */
676
- searchDone: g
670
+ searchDone: m
677
671
  }), (P, Z) => {
678
672
  const ae = Qt;
679
- return $(), Y("div", {
680
- class: He(["jt-filter-bar", [`is-label-${M.value}`, { "is-single-filter": ne.value }]]),
673
+ return k(), Y("div", {
674
+ class: He(["jt-filter-bar", [`is-label-${T.value}`, { "is-single-filter": ne.value }]]),
681
675
  style: qt({
682
676
  "--jt-filter-columns": A.value,
683
- "--jt-filter-field-columns": R.value,
684
- "--jt-filter-btns-width": h.value,
685
- "--jt-filter-actions-start": z.value,
686
- "--jt-filter-label-width": m.value,
687
- "--jt-filter-column-gap": `${v.value}px`,
688
- "--jt-filter-row-gap": `${j.value}px`,
689
- "--jt-filter-padding": b.value
677
+ "--jt-filter-field-columns": j.value,
678
+ "--jt-filter-btns-width": I.value,
679
+ "--jt-filter-actions-start": x.value,
680
+ "--jt-filter-label-width": h.value,
681
+ "--jt-filter-column-gap": `${p.value}px`,
682
+ "--jt-filter-row-gap": `${N.value}px`,
683
+ "--jt-filter-padding": y.value
690
684
  })
691
685
  }, [
692
686
  we(ae, {
@@ -694,47 +688,47 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
694
688
  ref: i,
695
689
  class: "jt-filter-bar__form",
696
690
  model: l.value,
697
- "label-position": M.value,
698
- "label-width": m.value,
691
+ "label-position": T.value,
692
+ "label-width": h.value,
699
693
  disabled: re(a),
700
694
  onSubmit: Z[0] || (Z[0] = Gt(() => {
701
695
  }, ["prevent"]))
702
696
  }, {
703
697
  default: J(() => [
704
698
  we(re(So), {
705
- configs: N.value,
699
+ configs: R.value,
706
700
  "form-data": l.value
707
701
  }, je({
708
702
  actions: J(() => [
709
703
  te("div", Co, [
710
704
  ee(P.$slots, "search-menu", {
711
- search: y,
712
- reset: _,
705
+ search: v,
706
+ reset: C,
713
707
  disabled: re(a),
714
- collapsed: I.value,
715
- toggleCollapse: E
708
+ collapsed: $.value,
709
+ toggleCollapse: L
716
710
  }, () => [
717
- D.value ? ($(), H(re(tt), {
711
+ F.value ? (k(), H(re(tt), {
718
712
  key: 0,
719
713
  class: "jt-filter-bar__btn-collapse",
720
- onClick: E
714
+ onClick: L
721
715
  }, {
722
716
  icon: J(() => [
723
717
  te("img", {
724
- class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": I.value }]),
718
+ class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
725
719
  src: re(Io),
726
720
  alt: ""
727
721
  }, null, 10, ko)
728
722
  ]),
729
723
  default: J(() => [
730
- te("span", null, fe(I.value ? "展 开" : "收 起"), 1)
724
+ te("span", null, fe($.value ? "展 开" : "收 起"), 1)
731
725
  ]),
732
726
  _: 1
733
727
  })) : ue("", !0),
734
728
  we(re(tt), {
735
729
  class: "jt-filter-bar__btn-reset",
736
730
  disabled: re(a),
737
- onClick: _
731
+ onClick: C
738
732
  }, {
739
733
  icon: J(() => [
740
734
  te("img", {
@@ -743,7 +737,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
743
737
  }, null, 8, Mo)
744
738
  ]),
745
739
  default: J(() => [
746
- te("span", null, fe(w.value.resetBtnText ?? "重 置"), 1)
740
+ te("span", null, fe(_.value.resetBtnText ?? "重 置"), 1)
747
741
  ]),
748
742
  _: 1
749
743
  }, 8, ["disabled"]),
@@ -751,7 +745,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
751
745
  class: "jt-filter-bar__btn-query",
752
746
  type: "primary",
753
747
  disabled: re(a),
754
- onClick: y
748
+ onClick: v
755
749
  }, {
756
750
  icon: J(() => [
757
751
  te("img", {
@@ -760,7 +754,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
760
754
  }, null, 8, To)
761
755
  ]),
762
756
  default: J(() => [
763
- te("span", null, fe(w.value.searchBtnText ?? "查 询"), 1)
757
+ te("span", null, fe(_.value.searchBtnText ?? "查 询"), 1)
764
758
  ]),
765
759
  _: 1
766
760
  }, 8, ["disabled"])
@@ -769,15 +763,15 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
769
763
  ]),
770
764
  _: 2
771
765
  }, [
772
- ge(x.value, (pe) => ({
766
+ ge(z.value, (pe) => ({
773
767
  name: pe.prop,
774
768
  fn: J(() => [
775
769
  ee(P.$slots, `${pe.prop}-search`, {
776
770
  value: l.value[pe.prop],
777
771
  column: pe,
778
- setValue: (de) => O(pe.prop, de),
779
- search: y,
780
- reset: _,
772
+ setValue: (de) => D(pe.prop, de),
773
+ search: v,
774
+ reset: C,
781
775
  disabled: re(a)
782
776
  }, void 0, !0)
783
777
  ])
@@ -799,97 +793,94 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
799
793
  tableEvents: {}
800
794
  },
801
795
  setup(e, { expose: t }) {
802
- const n = e, o = Ee(), r = ve(), i = L(() => n.option ?? {}), s = L(() => n.columns.filter((d) => !d.hide)), l = L(() => i.value.menuFixed ?? "right");
803
- function a(d) {
804
- return !!o[`${d}-header`];
796
+ const n = e, o = Ee(), r = he(), i = V(() => n.option ?? {}), s = V(() => n.columns.filter((b) => !b.hide));
797
+ function l(b) {
798
+ return !!o[`${b}-header`];
805
799
  }
806
- function c(d) {
807
- return !!o[`${d}-data`];
800
+ function a(b) {
801
+ return !!o[`${b}-data`];
808
802
  }
809
- function g(d) {
803
+ function c(b) {
810
804
  return {
811
- width: d.width,
812
- minWidth: d.minWidth,
813
- align: d.align,
814
- fixed: d.fixed,
815
- sortable: d.sortable,
816
- showOverflowTooltip: d.showOverflowTooltip ?? w(d),
817
- ...d.columnOptions
805
+ width: b.width,
806
+ minWidth: b.minWidth,
807
+ align: b.align,
808
+ fixed: b.fixed,
809
+ sortable: b.sortable,
810
+ showOverflowTooltip: b.showOverflowTooltip,
811
+ ...b.columnOptions
818
812
  };
819
813
  }
820
- function w(d) {
821
- return !c(d.prop) && !V(d.columnOptions?.type);
822
- }
823
- function I(d) {
824
- return !V(d.columnOptions?.type);
814
+ function m(b) {
815
+ return !_(b.columnOptions?.type);
825
816
  }
826
- function V(d) {
827
- return d === "selection" || d === "index" || d === "expand";
817
+ function _(b) {
818
+ return b === "selection" || b === "index" || b === "expand";
828
819
  }
829
- function A(d, S) {
830
- return d.find((k) => k.value === S)?.label ?? String(S ?? "");
820
+ function $(b, A) {
821
+ return b.find((g) => g.value === A)?.label ?? String(A ?? "");
831
822
  }
832
- return t({ tableRef: r }), (d, S) => {
833
- const k = en, R = Xt;
834
- return $(), H(R, oe({
823
+ return t({ tableRef: r }), (b, A) => {
824
+ const g = en, w = Xt;
825
+ return k(), H(w, oe({
835
826
  ref_key: "tableRef",
836
827
  ref: r,
837
- data: d.data,
828
+ data: b.data,
838
829
  "row-key": i.value.rowKey ?? "id",
839
830
  height: i.value.height,
840
831
  "max-height": i.value.maxHeight,
841
832
  "empty-text": i.value.emptyText,
842
833
  class: "jt-table"
843
- }, i.value.tableProps, Ze(d.tableEvents)), {
834
+ }, i.value.tableProps, Ze(b.tableEvents)), {
844
835
  default: J(() => [
845
- i.value.selection ? ($(), H(k, {
836
+ i.value.selection ? (k(), H(g, {
846
837
  key: 0,
847
838
  type: "selection",
848
839
  width: "55",
849
840
  align: "center"
850
841
  })) : ue("", !0),
851
- i.value.index ? ($(), H(k, {
842
+ i.value.index ? (k(), H(g, {
852
843
  key: 1,
853
844
  type: "index",
854
845
  label: i.value.indexLabel ?? "序号",
855
846
  width: "60",
856
847
  align: "center"
857
848
  }, null, 8, ["label"])) : ue("", !0),
858
- ($(!0), Y(be, null, ge(s.value, (h) => ($(), H(k, oe({
859
- key: h.prop,
860
- prop: h.prop,
861
- label: h.label,
862
- formatter: !c(h.prop) && !h.dicData ? h.formatter : void 0,
849
+ (k(!0), Y(be, null, ge(s.value, (S) => (k(), H(g, oe({
850
+ key: S.prop,
851
+ prop: S.prop,
852
+ label: S.label,
853
+ formatter: !a(S.prop) && !S.dicData ? S.formatter : void 0,
863
854
  ref_for: !0
864
- }, g(h)), je({ _: 2 }, [
865
- a(h.prop) ? {
855
+ }, c(S)), je({ _: 2 }, [
856
+ l(S.prop) ? {
866
857
  name: "header",
867
- fn: J((m) => [
868
- ee(d.$slots, `${h.prop}-header`, oe({ ref_for: !0 }, m), void 0, !0)
858
+ fn: J((j) => [
859
+ ee(b.$slots, `${S.prop}-header`, oe({ ref_for: !0 }, j), void 0, !0)
869
860
  ]),
870
861
  key: "0"
871
862
  } : void 0,
872
- I(h) ? {
863
+ m(S) ? {
873
864
  name: "default",
874
- fn: J((m) => [
875
- c(h.prop) ? ee(d.$slots, `${h.prop}-data`, oe({
865
+ fn: J((j) => [
866
+ a(S.prop) ? ee(b.$slots, `${S.prop}-data`, oe({
876
867
  key: 0,
877
868
  ref_for: !0
878
- }, m), void 0, !0) : h.dicData ? ($(), Y("span", Fo, fe(A(h.dicData, m.row[h.prop])), 1)) : h.formatter ? ($(), Y("span", Bo, fe(h.formatter(m.row, m.column, m.row[h.prop], m.$index)), 1)) : ($(), Y("span", Eo, fe(m.row[h.prop]), 1))
869
+ }, j), void 0, !0) : S.dicData ? (k(), Y("span", Fo, fe($(S.dicData, j.row[S.prop])), 1)) : S.formatter ? (k(), Y("span", Bo, fe(S.formatter(j.row, j.column, j.row[S.prop], j.$index)), 1)) : (k(), Y("span", Eo, fe(j.row[S.prop]), 1))
879
870
  ]),
880
871
  key: "1"
881
872
  } : void 0
882
873
  ]), 1040, ["prop", "label", "formatter"]))), 128)),
883
- i.value.menu ? ($(), H(k, {
874
+ i.value.menu ? (k(), H(g, {
884
875
  key: 2,
885
876
  label: i.value.menuLabel ?? "操作",
886
877
  width: i.value.menuWidth,
887
878
  "min-width": i.value.menuMinWidth,
888
879
  align: i.value.menuAlign ?? "center",
889
- fixed: l.value
880
+ fixed: i.value.menuFixed
890
881
  }, {
891
- default: J((h) => [
892
- ee(d.$slots, "menu", Me(Fe(h)), void 0, !0)
882
+ default: J((S) => [
883
+ ee(b.$slots, "menu", Me(Fe(S)), void 0, !0)
893
884
  ]),
894
885
  _: 3
895
886
  }, 8, ["label", "width", "min-width", "align", "fixed"])) : ue("", !0)
@@ -898,7 +889,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
898
889
  }, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
899
890
  };
900
891
  }
901
- }), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-34d2ced7"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ ce({
892
+ }), Vo = /* @__PURE__ */ ye(Lo, [["__scopeId", "data-v-2f881a67"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ ce({
902
893
  name: "JtPagination",
903
894
  __name: "JtPagination",
904
895
  props: {
@@ -909,13 +900,13 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
909
900
  },
910
901
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
911
902
  setup(e, { emit: t }) {
912
- const n = e, o = L(() => n.option ?? {}), r = t;
903
+ const n = e, o = V(() => n.option ?? {}), r = t;
913
904
  function i(s) {
914
905
  r("current-change", s), r("page-change", s);
915
906
  }
916
907
  return (s, l) => {
917
908
  const a = Zn;
918
- return $(), Y("div", Po, [
909
+ return k(), Y("div", Po, [
919
910
  we(a, {
920
911
  "current-page": s.currentPage,
921
912
  "page-size": s.pageSize,
@@ -931,10 +922,10 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
931
922
  ]);
932
923
  };
933
924
  }
934
- }), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-43d86bec"]]), Ro = { class: "jt-crud-table" }, xo = {
925
+ }), No = /* @__PURE__ */ ye(jo, [["__scopeId", "data-v-c6757399"]]), Ro = { class: "jt-crud-table" }, zo = {
935
926
  key: 1,
936
927
  class: "jt-crud-table__toolbar"
937
- }, zo = /* @__PURE__ */ ce({
928
+ }, xo = /* @__PURE__ */ ce({
938
929
  name: "JtCrudTable",
939
930
  __name: "JtCrudTable",
940
931
  props: /* @__PURE__ */ Mt({
@@ -953,110 +944,110 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
953
944
  }),
954
945
  emits: /* @__PURE__ */ Mt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
955
946
  setup(e, { expose: t, emit: n }) {
956
- const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = ve(), g = ve(), w = L(() => o.option), I = L(() => w.value.searchShow !== !1), V = L(() => w.value.paginationShow !== !1), A = L(
957
- () => o.columns.filter((v) => v.search && !!a[`${v.prop}-search`])
958
- ), d = L(
959
- () => o.columns.filter((v) => !v.hide && !!a[`${v.prop}-header`])
960
- ), S = L(
961
- () => o.columns.filter((v) => !v.hide && !!a[`${v.prop}-data`])
947
+ const o = e, r = n, i = pt(e, "currentPage"), s = pt(e, "pageSize"), l = pt(e, "searchModel"), a = Ee(), c = he(), m = he(), _ = V(() => o.option), $ = V(() => _.value.searchShow !== !1), b = V(() => _.value.paginationShow !== !1), A = V(
948
+ () => o.columns.filter((p) => p.search && !!a[`${p.prop}-search`])
949
+ ), g = V(
950
+ () => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-header`])
951
+ ), w = V(
952
+ () => o.columns.filter((p) => !p.hide && !!a[`${p.prop}-data`])
962
953
  );
963
- function k() {
964
- const v = {};
965
- return o.columns.forEach((j) => {
966
- j.search && (v[j.prop] = void 0);
967
- }), v;
954
+ function S() {
955
+ const p = {};
956
+ return o.columns.forEach((N) => {
957
+ N.search && (p[N.prop] = void 0);
958
+ }), p;
968
959
  }
969
- function R() {
960
+ function j() {
970
961
  r("search", { ...l.value });
971
962
  }
972
- function h() {
973
- l.value = k(), r("reset");
963
+ function I() {
964
+ l.value = S(), r("reset");
974
965
  }
975
- function m() {
976
- g.value?.searchLoading();
966
+ function h() {
967
+ m.value?.searchLoading();
977
968
  }
978
- function M() {
979
- g.value?.searchDone();
969
+ function T() {
970
+ m.value?.searchDone();
980
971
  }
981
972
  return t({
982
973
  /** 获取内部 el-table 实例 */
983
- tableRef: L(() => c.value?.tableRef),
974
+ tableRef: V(() => c.value?.tableRef),
984
975
  /** 获取内部筛选条实例 */
985
- filterBarRef: g,
976
+ filterBarRef: m,
986
977
  /** 开启筛选表单禁用。 */
987
- searchLoading: m,
978
+ searchLoading: h,
988
979
  /** 关闭筛选表单禁用。 */
989
- searchDone: M
990
- }), (v, j) => {
991
- const b = Qn;
992
- return $(), Y("div", Ro, [
993
- ee(v.$slots, "header", {}, void 0, !0),
994
- I.value ? ($(), H(Do, {
980
+ searchDone: T
981
+ }), (p, N) => {
982
+ const y = Qn;
983
+ return k(), Y("div", Ro, [
984
+ ee(p.$slots, "header", {}, void 0, !0),
985
+ $.value ? (k(), H(Do, {
995
986
  key: 0,
996
987
  ref_key: "filterBarRef",
997
- ref: g,
988
+ ref: m,
998
989
  modelValue: l.value,
999
- "onUpdate:modelValue": j[0] || (j[0] = (D) => l.value = D),
1000
- columns: v.columns,
1001
- option: w.value,
1002
- onSearch: R,
1003
- onReset: h
990
+ "onUpdate:modelValue": N[0] || (N[0] = (F) => l.value = F),
991
+ columns: p.columns,
992
+ option: _.value,
993
+ onSearch: j,
994
+ onReset: I
1004
995
  }, je({ _: 2 }, [
1005
- ge(A.value, (D) => ({
1006
- name: `${D.prop}-search`,
1007
- fn: J((T) => [
1008
- ee(v.$slots, `${D.prop}-search`, Me(Fe(T)), void 0, !0)
996
+ ge(A.value, (F) => ({
997
+ name: `${F.prop}-search`,
998
+ fn: J((O) => [
999
+ ee(p.$slots, `${F.prop}-search`, Me(Fe(O)), void 0, !0)
1009
1000
  ])
1010
1001
  }))
1011
1002
  ]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
1012
- re(a).toolbar ? ($(), Y("div", xo, [
1013
- ee(v.$slots, "toolbar", {}, void 0, !0)
1003
+ re(a).toolbar ? (k(), Y("div", zo, [
1004
+ ee(p.$slots, "toolbar", {}, void 0, !0)
1014
1005
  ])) : ue("", !0),
1015
- Yn(($(), H(Vo, {
1006
+ Yn((k(), H(Vo, {
1016
1007
  ref_key: "jtTableRef",
1017
1008
  ref: c,
1018
- data: v.data,
1019
- columns: v.columns,
1020
- option: w.value,
1021
- "table-events": v.tableEvents
1009
+ data: p.data,
1010
+ columns: p.columns,
1011
+ option: _.value,
1012
+ "table-events": p.tableEvents
1022
1013
  }, je({ _: 2 }, [
1023
- ge(d.value, (D) => ({
1024
- name: `${D.prop}-header`,
1025
- fn: J((T) => [
1026
- ee(v.$slots, `${D.prop}-header`, Me(Fe(T)), void 0, !0)
1014
+ ge(g.value, (F) => ({
1015
+ name: `${F.prop}-header`,
1016
+ fn: J((O) => [
1017
+ ee(p.$slots, `${F.prop}-header`, Me(Fe(O)), void 0, !0)
1027
1018
  ])
1028
1019
  })),
1029
- ge(S.value, (D) => ({
1030
- name: `${D.prop}-data`,
1031
- fn: J((T) => [
1032
- ee(v.$slots, `${D.prop}-data`, Me(Fe(T)), void 0, !0)
1020
+ ge(w.value, (F) => ({
1021
+ name: `${F.prop}-data`,
1022
+ fn: J((O) => [
1023
+ ee(p.$slots, `${F.prop}-data`, Me(Fe(O)), void 0, !0)
1033
1024
  ])
1034
1025
  })),
1035
- w.value.menu ? {
1026
+ _.value.menu ? {
1036
1027
  name: "menu",
1037
- fn: J((D) => [
1038
- ee(v.$slots, "menu", Me(Fe(D)), void 0, !0)
1028
+ fn: J((F) => [
1029
+ ee(p.$slots, "menu", Me(Fe(F)), void 0, !0)
1039
1030
  ]),
1040
1031
  key: "0"
1041
1032
  } : void 0
1042
1033
  ]), 1032, ["data", "columns", "option", "table-events"])), [
1043
- [b, w.value.loading]
1034
+ [y, _.value.loading]
1044
1035
  ]),
1045
- V.value ? ($(), H(No, {
1036
+ b.value ? (k(), H(No, {
1046
1037
  key: 2,
1047
1038
  "current-page": i.value,
1048
- "onUpdate:currentPage": j[1] || (j[1] = (D) => i.value = D),
1039
+ "onUpdate:currentPage": N[1] || (N[1] = (F) => i.value = F),
1049
1040
  "page-size": s.value,
1050
- "onUpdate:pageSize": j[2] || (j[2] = (D) => s.value = D),
1051
- total: v.total,
1052
- option: w.value,
1053
- onPageChange: j[3] || (j[3] = (D) => v.$emit("page-change", D)),
1054
- onSizeChange: j[4] || (j[4] = (D) => v.$emit("size-change", D))
1041
+ "onUpdate:pageSize": N[2] || (N[2] = (F) => s.value = F),
1042
+ total: p.total,
1043
+ option: _.value,
1044
+ onPageChange: N[3] || (N[3] = (F) => p.$emit("page-change", F)),
1045
+ onSizeChange: N[4] || (N[4] = (F) => p.$emit("size-change", F))
1055
1046
  }, null, 8, ["current-page", "page-size", "total", "option"])) : ue("", !0)
1056
1047
  ]);
1057
1048
  };
1058
1049
  }
1059
- }), xa = /* @__PURE__ */ ye(zo, [["__scopeId", "data-v-dac2c00e"]]), qo = { class: "jt-page-header__title" }, Go = { key: 0 }, Ko = {
1050
+ }), za = /* @__PURE__ */ ye(xo, [["__scopeId", "data-v-6df082c6"]]), qo = { class: "jt-page-header__title" }, Go = { key: 0 }, Ko = {
1060
1051
  key: 0,
1061
1052
  class: "jt-page-header__operates"
1062
1053
  }, Yo = /* @__PURE__ */ ce({
@@ -1069,21 +1060,21 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1069
1060
  },
1070
1061
  emits: ["operate-click"],
1071
1062
  setup(e, { emit: t }) {
1072
- const n = e, o = t, r = Ee(), i = L(() => n.operates.length > 0 || !!r.operates);
1063
+ const n = e, o = t, r = Ee(), i = V(() => n.operates.length > 0 || !!r.operates);
1073
1064
  function s(l, a) {
1074
1065
  l.onClick?.(l, a), o("operate-click", l, a);
1075
1066
  }
1076
- return (l, a) => ($(), Y("div", oe({
1067
+ return (l, a) => (k(), Y("div", oe({
1077
1068
  class: ["jt-page-header", `jt-page-header--${l.type}`]
1078
1069
  }, l.$attrs), [
1079
1070
  te("div", qo, [
1080
1071
  ee(l.$slots, "title", {}, () => [
1081
- l.title ? ($(), Y("span", Go, fe(l.title), 1)) : ue("", !0)
1072
+ l.title ? (k(), Y("span", Go, fe(l.title), 1)) : ue("", !0)
1082
1073
  ], !0)
1083
1074
  ]),
1084
- i.value ? ($(), Y("div", Ko, [
1075
+ i.value ? (k(), Y("div", Ko, [
1085
1076
  ee(l.$slots, "operates", { operates: l.operates }, () => [
1086
- ($(!0), Y(be, null, ge(l.operates, (c) => ($(), H(re(tt), oe({
1077
+ (k(!0), Y(be, null, ge(l.operates, (c) => (k(), H(re(tt), oe({
1087
1078
  key: c.key ?? c.label,
1088
1079
  ref_for: !0
1089
1080
  }, c.buttonProps, {
@@ -1094,7 +1085,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1094
1085
  text: c.text,
1095
1086
  link: c.link,
1096
1087
  icon: c.icon,
1097
- onClick: (g) => s(c, g)
1088
+ onClick: (m) => s(c, m)
1098
1089
  }), {
1099
1090
  default: J(() => [
1100
1091
  te("span", null, fe(c.label), 1)
@@ -1105,7 +1096,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1105
1096
  ])) : ue("", !0)
1106
1097
  ], 16));
1107
1098
  }
1108
- }), za = /* @__PURE__ */ ye(Yo, [["__scopeId", "data-v-d924e29d"]]);
1099
+ }), xa = /* @__PURE__ */ ye(Yo, [["__scopeId", "data-v-9fe9e823"]]);
1109
1100
  function Uo(e, t) {
1110
1101
  t = t || (() => "default-use-once-sync");
1111
1102
  const n = /* @__PURE__ */ new Map();
@@ -1148,105 +1139,105 @@ var an = { exports: {} };
1148
1139
  (function(n, o) {
1149
1140
  e.exports = o();
1150
1141
  })(at, function() {
1151
- var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", g = "week", w = "month", I = "quarter", V = "year", A = "date", d = "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) {
1152
- var O = ["th", "st", "nd", "rd"], F = N % 100;
1153
- return "[" + N + (O[(F - 20) % 10] || O[F] || O[0]) + "]";
1154
- } }, h = function(N, O, F) {
1155
- var u = String(N);
1156
- return !u || u.length >= O ? N : "" + Array(O + 1 - u.length).join(F) + N;
1157
- }, m = { s: h, z: function(N) {
1158
- var O = -N.utcOffset(), F = Math.abs(O), u = Math.floor(F / 60), y = F % 60;
1159
- return (O <= 0 ? "+" : "-") + h(u, 2, "0") + ":" + h(y, 2, "0");
1160
- }, m: function N(O, F) {
1161
- if (O.date() < F.date()) return -N(F, O);
1162
- var u = 12 * (F.year() - O.year()) + (F.month() - O.month()), y = O.clone().add(u, w), _ = F - y < 0, E = O.clone().add(u + (_ ? -1 : 1), w);
1163
- return +(-(u + (F - y) / (_ ? y - E : E - y)) || 0);
1164
- }, a: function(N) {
1165
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
1166
- }, p: function(N) {
1167
- return { M: w, y: V, w: g, d: c, D: A, h: a, m: l, s, ms: i, Q: I }[N] || String(N || "").toLowerCase().replace(/s$/, "");
1168
- }, u: function(N) {
1169
- return N === void 0;
1170
- } }, M = "en", v = {};
1171
- v[M] = R;
1172
- var j = "$isDayjsObject", b = function(N) {
1173
- return N instanceof ne || !(!N || !N[j]);
1174
- }, D = function N(O, F, u) {
1175
- var y;
1176
- if (!O) return M;
1177
- if (typeof O == "string") {
1178
- var _ = O.toLowerCase();
1179
- v[_] && (y = _), F && (v[_] = F, y = _);
1180
- var E = O.split("-");
1181
- if (!y && E.length > 1) return N(E[0]);
1142
+ var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", m = "week", _ = "month", $ = "quarter", b = "year", A = "date", g = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, S = /\[([^\]]+)]|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, j = { 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) {
1143
+ var D = ["th", "st", "nd", "rd"], B = R % 100;
1144
+ return "[" + R + (D[(B - 20) % 10] || D[B] || D[0]) + "]";
1145
+ } }, I = function(R, D, B) {
1146
+ var u = String(R);
1147
+ return !u || u.length >= D ? R : "" + Array(D + 1 - u.length).join(B) + R;
1148
+ }, h = { s: I, z: function(R) {
1149
+ var D = -R.utcOffset(), B = Math.abs(D), u = Math.floor(B / 60), v = B % 60;
1150
+ return (D <= 0 ? "+" : "-") + I(u, 2, "0") + ":" + I(v, 2, "0");
1151
+ }, m: function R(D, B) {
1152
+ if (D.date() < B.date()) return -R(B, D);
1153
+ var u = 12 * (B.year() - D.year()) + (B.month() - D.month()), v = D.clone().add(u, _), C = B - v < 0, L = D.clone().add(u + (C ? -1 : 1), _);
1154
+ return +(-(u + (B - v) / (C ? v - L : L - v)) || 0);
1155
+ }, a: function(R) {
1156
+ return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
1157
+ }, p: function(R) {
1158
+ return { M: _, y: b, w: m, d: c, D: A, h: a, m: l, s, ms: i, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1159
+ }, u: function(R) {
1160
+ return R === void 0;
1161
+ } }, T = "en", p = {};
1162
+ p[T] = j;
1163
+ var N = "$isDayjsObject", y = function(R) {
1164
+ return R instanceof ne || !(!R || !R[N]);
1165
+ }, F = function R(D, B, u) {
1166
+ var v;
1167
+ if (!D) return T;
1168
+ if (typeof D == "string") {
1169
+ var C = D.toLowerCase();
1170
+ p[C] && (v = C), B && (p[C] = B, v = C);
1171
+ var L = D.split("-");
1172
+ if (!v && L.length > 1) return R(L[0]);
1182
1173
  } else {
1183
- var B = O.name;
1184
- v[B] = O, y = B;
1174
+ var E = D.name;
1175
+ p[E] = D, v = E;
1185
1176
  }
1186
- return !u && y && (M = y), y || !u && M;
1187
- }, T = function(N, O) {
1188
- if (b(N)) return N.clone();
1189
- var F = typeof O == "object" ? O : {};
1190
- return F.date = N, F.args = arguments, new ne(F);
1191
- }, x = m;
1192
- x.l = D, x.i = b, x.w = function(N, O) {
1193
- return T(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
1177
+ return !u && v && (T = v), v || !u && T;
1178
+ }, O = function(R, D) {
1179
+ if (y(R)) return R.clone();
1180
+ var B = typeof D == "object" ? D : {};
1181
+ return B.date = R, B.args = arguments, new ne(B);
1182
+ }, z = h;
1183
+ z.l = F, z.i = y, z.w = function(R, D) {
1184
+ return O(R, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
1194
1185
  };
1195
1186
  var ne = function() {
1196
- function N(F) {
1197
- this.$L = D(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[j] = !0;
1187
+ function R(B) {
1188
+ this.$L = F(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
1198
1189
  }
1199
- var O = N.prototype;
1200
- return O.parse = function(F) {
1190
+ var D = R.prototype;
1191
+ return D.parse = function(B) {
1201
1192
  this.$d = function(u) {
1202
- var y = u.date, _ = u.utc;
1203
- if (y === null) return /* @__PURE__ */ new Date(NaN);
1204
- if (x.u(y)) return /* @__PURE__ */ new Date();
1205
- if (y instanceof Date) return new Date(y);
1206
- if (typeof y == "string" && !/Z$/i.test(y)) {
1207
- var E = y.match(S);
1208
- if (E) {
1209
- var B = E[2] - 1 || 0, q = (E[7] || "0").substring(0, 3);
1210
- return _ ? new Date(Date.UTC(E[1], B, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, q)) : new Date(E[1], B, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, q);
1193
+ var v = u.date, C = u.utc;
1194
+ if (v === null) return /* @__PURE__ */ new Date(NaN);
1195
+ if (z.u(v)) return /* @__PURE__ */ new Date();
1196
+ if (v instanceof Date) return new Date(v);
1197
+ if (typeof v == "string" && !/Z$/i.test(v)) {
1198
+ var L = v.match(w);
1199
+ if (L) {
1200
+ var E = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
1201
+ return C ? new Date(Date.UTC(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], E, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
1211
1202
  }
1212
1203
  }
1213
- return new Date(y);
1214
- }(F), this.init();
1215
- }, O.init = function() {
1216
- var F = this.$d;
1217
- this.$y = F.getFullYear(), this.$M = F.getMonth(), this.$D = F.getDate(), this.$W = F.getDay(), this.$H = F.getHours(), this.$m = F.getMinutes(), this.$s = F.getSeconds(), this.$ms = F.getMilliseconds();
1218
- }, O.$utils = function() {
1219
- return x;
1220
- }, O.isValid = function() {
1221
- return this.$d.toString() !== d;
1222
- }, O.isSame = function(F, u) {
1223
- var y = T(F);
1224
- return this.startOf(u) <= y && y <= this.endOf(u);
1225
- }, O.isAfter = function(F, u) {
1226
- return T(F) < this.startOf(u);
1227
- }, O.isBefore = function(F, u) {
1228
- return this.endOf(u) < T(F);
1229
- }, O.$g = function(F, u, y) {
1230
- return x.u(F) ? this[u] : this.set(y, F);
1231
- }, O.unix = function() {
1204
+ return new Date(v);
1205
+ }(B), this.init();
1206
+ }, D.init = function() {
1207
+ var B = this.$d;
1208
+ 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();
1209
+ }, D.$utils = function() {
1210
+ return z;
1211
+ }, D.isValid = function() {
1212
+ return this.$d.toString() !== g;
1213
+ }, D.isSame = function(B, u) {
1214
+ var v = O(B);
1215
+ return this.startOf(u) <= v && v <= this.endOf(u);
1216
+ }, D.isAfter = function(B, u) {
1217
+ return O(B) < this.startOf(u);
1218
+ }, D.isBefore = function(B, u) {
1219
+ return this.endOf(u) < O(B);
1220
+ }, D.$g = function(B, u, v) {
1221
+ return z.u(B) ? this[u] : this.set(v, B);
1222
+ }, D.unix = function() {
1232
1223
  return Math.floor(this.valueOf() / 1e3);
1233
- }, O.valueOf = function() {
1224
+ }, D.valueOf = function() {
1234
1225
  return this.$d.getTime();
1235
- }, O.startOf = function(F, u) {
1236
- var y = this, _ = !!x.u(u) || u, E = x.p(F), B = function(pe, de) {
1237
- var Se = x.w(y.$u ? Date.UTC(y.$y, de, pe) : new Date(y.$y, de, pe), y);
1238
- return _ ? Se : Se.endOf(c);
1226
+ }, D.startOf = function(B, u) {
1227
+ var v = this, C = !!z.u(u) || u, L = z.p(B), E = function(pe, de) {
1228
+ var Se = z.w(v.$u ? Date.UTC(v.$y, de, pe) : new Date(v.$y, de, pe), v);
1229
+ return C ? Se : Se.endOf(c);
1239
1230
  }, q = function(pe, de) {
1240
- return x.w(y.toDate()[pe].apply(y.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), y);
1231
+ return z.w(v.toDate()[pe].apply(v.toDate("s"), (C ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), v);
1241
1232
  }, U = this.$W, G = this.$M, X = this.$D, P = "set" + (this.$u ? "UTC" : "");
1242
- switch (E) {
1243
- case V:
1244
- return _ ? B(1, 0) : B(31, 11);
1245
- case w:
1246
- return _ ? B(1, G) : B(0, G + 1);
1247
- case g:
1233
+ switch (L) {
1234
+ case b:
1235
+ return C ? E(1, 0) : E(31, 11);
1236
+ case _:
1237
+ return C ? E(1, G) : E(0, G + 1);
1238
+ case m:
1248
1239
  var Z = this.$locale().weekStart || 0, ae = (U < Z ? U + 7 : U) - Z;
1249
- return B(_ ? X - ae : X + (6 - ae), G);
1240
+ return E(C ? X - ae : X + (6 - ae), G);
1250
1241
  case c:
1251
1242
  case A:
1252
1243
  return q(P + "Hours", 0);
@@ -1259,164 +1250,164 @@ var an = { exports: {} };
1259
1250
  default:
1260
1251
  return this.clone();
1261
1252
  }
1262
- }, O.endOf = function(F) {
1263
- return this.startOf(F, !1);
1264
- }, O.$set = function(F, u) {
1265
- var y, _ = x.p(F), E = "set" + (this.$u ? "UTC" : ""), B = (y = {}, y[c] = E + "Date", y[A] = E + "Date", y[w] = E + "Month", y[V] = E + "FullYear", y[a] = E + "Hours", y[l] = E + "Minutes", y[s] = E + "Seconds", y[i] = E + "Milliseconds", y)[_], q = _ === c ? this.$D + (u - this.$W) : u;
1266
- if (_ === w || _ === V) {
1253
+ }, D.endOf = function(B) {
1254
+ return this.startOf(B, !1);
1255
+ }, D.$set = function(B, u) {
1256
+ var v, C = z.p(B), L = "set" + (this.$u ? "UTC" : ""), E = (v = {}, v[c] = L + "Date", v[A] = L + "Date", v[_] = L + "Month", v[b] = L + "FullYear", v[a] = L + "Hours", v[l] = L + "Minutes", v[s] = L + "Seconds", v[i] = L + "Milliseconds", v)[C], q = C === c ? this.$D + (u - this.$W) : u;
1257
+ if (C === _ || C === b) {
1267
1258
  var U = this.clone().set(A, 1);
1268
- U.$d[B](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
1269
- } else B && this.$d[B](q);
1259
+ U.$d[E](q), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
1260
+ } else E && this.$d[E](q);
1270
1261
  return this.init(), this;
1271
- }, O.set = function(F, u) {
1272
- return this.clone().$set(F, u);
1273
- }, O.get = function(F) {
1274
- return this[x.p(F)]();
1275
- }, O.add = function(F, u) {
1276
- var y, _ = this;
1277
- F = Number(F);
1278
- var E = x.p(u), B = function(G) {
1279
- var X = T(_);
1280
- return x.w(X.date(X.date() + Math.round(G * F)), _);
1262
+ }, D.set = function(B, u) {
1263
+ return this.clone().$set(B, u);
1264
+ }, D.get = function(B) {
1265
+ return this[z.p(B)]();
1266
+ }, D.add = function(B, u) {
1267
+ var v, C = this;
1268
+ B = Number(B);
1269
+ var L = z.p(u), E = function(G) {
1270
+ var X = O(C);
1271
+ return z.w(X.date(X.date() + Math.round(G * B)), C);
1281
1272
  };
1282
- if (E === w) return this.set(w, this.$M + F);
1283
- if (E === V) return this.set(V, this.$y + F);
1284
- if (E === c) return B(1);
1285
- if (E === g) return B(7);
1286
- var q = (y = {}, y[l] = o, y[a] = r, y[s] = n, y)[E] || 1, U = this.$d.getTime() + F * q;
1287
- return x.w(U, this);
1288
- }, O.subtract = function(F, u) {
1289
- return this.add(-1 * F, u);
1290
- }, O.format = function(F) {
1291
- var u = this, y = this.$locale();
1292
- if (!this.isValid()) return y.invalidDate || d;
1293
- var _ = F || "YYYY-MM-DDTHH:mm:ssZ", E = x.z(this), B = this.$H, q = this.$m, U = this.$M, G = y.weekdays, X = y.months, P = y.meridiem, Z = function(de, Se, Oe, Ie) {
1294
- return de && (de[Se] || de(u, _)) || Oe[Se].slice(0, Ie);
1273
+ if (L === _) return this.set(_, this.$M + B);
1274
+ if (L === b) return this.set(b, this.$y + B);
1275
+ if (L === c) return E(1);
1276
+ if (L === m) return E(7);
1277
+ var q = (v = {}, v[l] = o, v[a] = r, v[s] = n, v)[L] || 1, U = this.$d.getTime() + B * q;
1278
+ return z.w(U, this);
1279
+ }, D.subtract = function(B, u) {
1280
+ return this.add(-1 * B, u);
1281
+ }, D.format = function(B) {
1282
+ var u = this, v = this.$locale();
1283
+ if (!this.isValid()) return v.invalidDate || g;
1284
+ var C = B || "YYYY-MM-DDTHH:mm:ssZ", L = z.z(this), E = this.$H, q = this.$m, U = this.$M, G = v.weekdays, X = v.months, P = v.meridiem, Z = function(de, Se, Oe, Ie) {
1285
+ return de && (de[Se] || de(u, C)) || Oe[Se].slice(0, Ie);
1295
1286
  }, ae = function(de) {
1296
- return x.s(B % 12 || 12, de, "0");
1287
+ return z.s(E % 12 || 12, de, "0");
1297
1288
  }, pe = P || function(de, Se, Oe) {
1298
1289
  var Ie = de < 12 ? "AM" : "PM";
1299
1290
  return Oe ? Ie.toLowerCase() : Ie;
1300
1291
  };
1301
- return _.replace(k, function(de, Se) {
1292
+ return C.replace(S, function(de, Se) {
1302
1293
  return Se || function(Oe) {
1303
1294
  switch (Oe) {
1304
1295
  case "YY":
1305
1296
  return String(u.$y).slice(-2);
1306
1297
  case "YYYY":
1307
- return x.s(u.$y, 4, "0");
1298
+ return z.s(u.$y, 4, "0");
1308
1299
  case "M":
1309
1300
  return U + 1;
1310
1301
  case "MM":
1311
- return x.s(U + 1, 2, "0");
1302
+ return z.s(U + 1, 2, "0");
1312
1303
  case "MMM":
1313
- return Z(y.monthsShort, U, X, 3);
1304
+ return Z(v.monthsShort, U, X, 3);
1314
1305
  case "MMMM":
1315
1306
  return Z(X, U);
1316
1307
  case "D":
1317
1308
  return u.$D;
1318
1309
  case "DD":
1319
- return x.s(u.$D, 2, "0");
1310
+ return z.s(u.$D, 2, "0");
1320
1311
  case "d":
1321
1312
  return String(u.$W);
1322
1313
  case "dd":
1323
- return Z(y.weekdaysMin, u.$W, G, 2);
1314
+ return Z(v.weekdaysMin, u.$W, G, 2);
1324
1315
  case "ddd":
1325
- return Z(y.weekdaysShort, u.$W, G, 3);
1316
+ return Z(v.weekdaysShort, u.$W, G, 3);
1326
1317
  case "dddd":
1327
1318
  return G[u.$W];
1328
1319
  case "H":
1329
- return String(B);
1320
+ return String(E);
1330
1321
  case "HH":
1331
- return x.s(B, 2, "0");
1322
+ return z.s(E, 2, "0");
1332
1323
  case "h":
1333
1324
  return ae(1);
1334
1325
  case "hh":
1335
1326
  return ae(2);
1336
1327
  case "a":
1337
- return pe(B, q, !0);
1328
+ return pe(E, q, !0);
1338
1329
  case "A":
1339
- return pe(B, q, !1);
1330
+ return pe(E, q, !1);
1340
1331
  case "m":
1341
1332
  return String(q);
1342
1333
  case "mm":
1343
- return x.s(q, 2, "0");
1334
+ return z.s(q, 2, "0");
1344
1335
  case "s":
1345
1336
  return String(u.$s);
1346
1337
  case "ss":
1347
- return x.s(u.$s, 2, "0");
1338
+ return z.s(u.$s, 2, "0");
1348
1339
  case "SSS":
1349
- return x.s(u.$ms, 3, "0");
1340
+ return z.s(u.$ms, 3, "0");
1350
1341
  case "Z":
1351
- return E;
1342
+ return L;
1352
1343
  }
1353
1344
  return null;
1354
- }(de) || E.replace(":", "");
1345
+ }(de) || L.replace(":", "");
1355
1346
  });
1356
- }, O.utcOffset = function() {
1347
+ }, D.utcOffset = function() {
1357
1348
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1358
- }, O.diff = function(F, u, y) {
1359
- var _, E = this, B = x.p(u), q = T(F), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
1360
- return x.m(E, q);
1349
+ }, D.diff = function(B, u, v) {
1350
+ var C, L = this, E = z.p(u), q = O(B), U = (q.utcOffset() - this.utcOffset()) * o, G = this - q, X = function() {
1351
+ return z.m(L, q);
1361
1352
  };
1362
- switch (B) {
1363
- case V:
1364
- _ = X() / 12;
1353
+ switch (E) {
1354
+ case b:
1355
+ C = X() / 12;
1365
1356
  break;
1366
- case w:
1367
- _ = X();
1357
+ case _:
1358
+ C = X();
1368
1359
  break;
1369
- case I:
1370
- _ = X() / 3;
1360
+ case $:
1361
+ C = X() / 3;
1371
1362
  break;
1372
- case g:
1373
- _ = (G - U) / 6048e5;
1363
+ case m:
1364
+ C = (G - U) / 6048e5;
1374
1365
  break;
1375
1366
  case c:
1376
- _ = (G - U) / 864e5;
1367
+ C = (G - U) / 864e5;
1377
1368
  break;
1378
1369
  case a:
1379
- _ = G / r;
1370
+ C = G / r;
1380
1371
  break;
1381
1372
  case l:
1382
- _ = G / o;
1373
+ C = G / o;
1383
1374
  break;
1384
1375
  case s:
1385
- _ = G / n;
1376
+ C = G / n;
1386
1377
  break;
1387
1378
  default:
1388
- _ = G;
1379
+ C = G;
1389
1380
  }
1390
- return y ? _ : x.a(_);
1391
- }, O.daysInMonth = function() {
1392
- return this.endOf(w).$D;
1393
- }, O.$locale = function() {
1394
- return v[this.$L];
1395
- }, O.locale = function(F, u) {
1396
- if (!F) return this.$L;
1397
- var y = this.clone(), _ = D(F, u, !0);
1398
- return _ && (y.$L = _), y;
1399
- }, O.clone = function() {
1400
- return x.w(this.$d, this);
1401
- }, O.toDate = function() {
1381
+ return v ? C : z.a(C);
1382
+ }, D.daysInMonth = function() {
1383
+ return this.endOf(_).$D;
1384
+ }, D.$locale = function() {
1385
+ return p[this.$L];
1386
+ }, D.locale = function(B, u) {
1387
+ if (!B) return this.$L;
1388
+ var v = this.clone(), C = F(B, u, !0);
1389
+ return C && (v.$L = C), v;
1390
+ }, D.clone = function() {
1391
+ return z.w(this.$d, this);
1392
+ }, D.toDate = function() {
1402
1393
  return new Date(this.valueOf());
1403
- }, O.toJSON = function() {
1394
+ }, D.toJSON = function() {
1404
1395
  return this.isValid() ? this.toISOString() : null;
1405
- }, O.toISOString = function() {
1396
+ }, D.toISOString = function() {
1406
1397
  return this.$d.toISOString();
1407
- }, O.toString = function() {
1398
+ }, D.toString = function() {
1408
1399
  return this.$d.toUTCString();
1409
- }, N;
1410
- }(), z = ne.prototype;
1411
- return T.prototype = z, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", w], ["$y", V], ["$D", A]].forEach(function(N) {
1412
- z[N[1]] = function(O) {
1413
- return this.$g(O, N[0], N[1]);
1400
+ }, R;
1401
+ }(), x = ne.prototype;
1402
+ return O.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", _], ["$y", b], ["$D", A]].forEach(function(R) {
1403
+ x[R[1]] = function(D) {
1404
+ return this.$g(D, R[0], R[1]);
1414
1405
  };
1415
- }), T.extend = function(N, O) {
1416
- return N.$i || (N(O, ne, T), N.$i = !0), T;
1417
- }, T.locale = D, T.isDayjs = b, T.unix = function(N) {
1418
- return T(1e3 * N);
1419
- }, T.en = v[M], T.Ls = v, T.p = {}, T;
1406
+ }), O.extend = function(R, D) {
1407
+ return R.$i || (R(D, ne, O), R.$i = !0), O;
1408
+ }, O.locale = F, O.isDayjs = y, O.unix = function(R) {
1409
+ return O(1e3 * R);
1410
+ }, O.en = p[T], O.Ls = p, O.p = {}, O;
1420
1411
  });
1421
1412
  })(an);
1422
1413
  var Ho = an.exports;
@@ -1426,118 +1417,118 @@ var sn = { exports: {} };
1426
1417
  (function(n, o) {
1427
1418
  e.exports = o();
1428
1419
  })(at, function() {
1429
- var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(S) {
1430
- return (S = +S) + (S > 68 ? 1900 : 2e3);
1431
- }, g = function(S) {
1432
- return function(k) {
1433
- this[S] = +k;
1420
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(w) {
1421
+ return (w = +w) + (w > 68 ? 1900 : 2e3);
1422
+ }, m = function(w) {
1423
+ return function(S) {
1424
+ this[w] = +S;
1434
1425
  };
1435
- }, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
1436
- (this.zone || (this.zone = {})).offset = function(k) {
1437
- if (!k || k === "Z") return 0;
1438
- var R = k.match(/([+-]|\d\d)/g), h = 60 * R[1] + (+R[2] || 0);
1439
- return h === 0 ? 0 : R[0] === "+" ? -h : h;
1440
- }(S);
1441
- }], I = function(S) {
1442
- var k = a[S];
1443
- return k && (k.indexOf ? k : k.s.concat(k.f));
1444
- }, V = function(S, k) {
1445
- var R, h = a.meridiem;
1446
- if (h) {
1447
- for (var m = 1; m <= 24; m += 1) if (S.indexOf(h(m, 0, k)) > -1) {
1448
- R = m > 12;
1426
+ }, _ = [/[+-]\d\d:?(\d\d)?|Z/, function(w) {
1427
+ (this.zone || (this.zone = {})).offset = function(S) {
1428
+ if (!S || S === "Z") return 0;
1429
+ var j = S.match(/([+-]|\d\d)/g), I = 60 * j[1] + (+j[2] || 0);
1430
+ return I === 0 ? 0 : j[0] === "+" ? -I : I;
1431
+ }(w);
1432
+ }], $ = function(w) {
1433
+ var S = a[w];
1434
+ return S && (S.indexOf ? S : S.s.concat(S.f));
1435
+ }, b = function(w, S) {
1436
+ var j, I = a.meridiem;
1437
+ if (I) {
1438
+ for (var h = 1; h <= 24; h += 1) if (w.indexOf(I(h, 0, S)) > -1) {
1439
+ j = h > 12;
1449
1440
  break;
1450
1441
  }
1451
- } else R = S === (k ? "pm" : "PM");
1452
- return R;
1453
- }, A = { A: [l, function(S) {
1454
- this.afternoon = V(S, !1);
1455
- }], a: [l, function(S) {
1456
- this.afternoon = V(S, !0);
1457
- }], Q: [r, function(S) {
1458
- this.month = 3 * (S - 1) + 1;
1459
- }], S: [r, function(S) {
1460
- this.milliseconds = 100 * +S;
1461
- }], SS: [i, function(S) {
1462
- this.milliseconds = 10 * +S;
1463
- }], SSS: [/\d{3}/, function(S) {
1464
- this.milliseconds = +S;
1465
- }], 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: [i, g("day")], Do: [l, function(S) {
1466
- var k = a.ordinal, R = S.match(/\d+/);
1467
- if (this.day = R[0], k) for (var h = 1; h <= 31; h += 1) k(h).replace(/\[|\]/g, "") === S && (this.day = h);
1468
- }], w: [s, g("week")], ww: [i, g("week")], M: [s, g("month")], MM: [i, g("month")], MMM: [l, function(S) {
1469
- var k = I("months"), R = (I("monthsShort") || k.map(function(h) {
1470
- return h.slice(0, 3);
1471
- })).indexOf(S) + 1;
1472
- if (R < 1) throw new Error();
1473
- this.month = R % 12 || R;
1474
- }], MMMM: [l, function(S) {
1475
- var k = I("months").indexOf(S) + 1;
1476
- if (k < 1) throw new Error();
1477
- this.month = k % 12 || k;
1478
- }], Y: [/[+-]?\d+/, g("year")], YY: [i, function(S) {
1479
- this.year = c(S);
1480
- }], YYYY: [/\d{4}/, g("year")], Z: w, ZZ: w };
1481
- function d(S) {
1482
- var k, R;
1483
- k = S, R = a && a.formats;
1484
- for (var h = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, x, ne) {
1485
- var z = ne && ne.toUpperCase();
1486
- return x || R[ne] || n[ne] || R[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, O, F) {
1487
- return O || F.slice(1);
1442
+ } else j = w === (S ? "pm" : "PM");
1443
+ return j;
1444
+ }, A = { A: [l, function(w) {
1445
+ this.afternoon = b(w, !1);
1446
+ }], a: [l, function(w) {
1447
+ this.afternoon = b(w, !0);
1448
+ }], Q: [r, function(w) {
1449
+ this.month = 3 * (w - 1) + 1;
1450
+ }], S: [r, function(w) {
1451
+ this.milliseconds = 100 * +w;
1452
+ }], SS: [i, function(w) {
1453
+ this.milliseconds = 10 * +w;
1454
+ }], SSS: [/\d{3}/, function(w) {
1455
+ this.milliseconds = +w;
1456
+ }], s: [s, m("seconds")], ss: [s, m("seconds")], m: [s, m("minutes")], mm: [s, m("minutes")], H: [s, m("hours")], h: [s, m("hours")], HH: [s, m("hours")], hh: [s, m("hours")], D: [s, m("day")], DD: [i, m("day")], Do: [l, function(w) {
1457
+ var S = a.ordinal, j = w.match(/\d+/);
1458
+ if (this.day = j[0], S) for (var I = 1; I <= 31; I += 1) S(I).replace(/\[|\]/g, "") === w && (this.day = I);
1459
+ }], w: [s, m("week")], ww: [i, m("week")], M: [s, m("month")], MM: [i, m("month")], MMM: [l, function(w) {
1460
+ var S = $("months"), j = ($("monthsShort") || S.map(function(I) {
1461
+ return I.slice(0, 3);
1462
+ })).indexOf(w) + 1;
1463
+ if (j < 1) throw new Error();
1464
+ this.month = j % 12 || j;
1465
+ }], MMMM: [l, function(w) {
1466
+ var S = $("months").indexOf(w) + 1;
1467
+ if (S < 1) throw new Error();
1468
+ this.month = S % 12 || S;
1469
+ }], Y: [/[+-]?\d+/, m("year")], YY: [i, function(w) {
1470
+ this.year = c(w);
1471
+ }], YYYY: [/\d{4}/, m("year")], Z: _, ZZ: _ };
1472
+ function g(w) {
1473
+ var S, j;
1474
+ S = w, j = a && a.formats;
1475
+ for (var I = (w = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, z, ne) {
1476
+ var x = ne && ne.toUpperCase();
1477
+ return z || j[ne] || n[ne] || j[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, D, B) {
1478
+ return D || B.slice(1);
1488
1479
  });
1489
- })).match(o), m = h.length, M = 0; M < m; M += 1) {
1490
- var v = h[M], j = A[v], b = j && j[0], D = j && j[1];
1491
- h[M] = D ? { regex: b, parser: D } : v.replace(/^\[|\]$/g, "");
1480
+ })).match(o), h = I.length, T = 0; T < h; T += 1) {
1481
+ var p = I[T], N = A[p], y = N && N[0], F = N && N[1];
1482
+ I[T] = F ? { regex: y, parser: F } : p.replace(/^\[|\]$/g, "");
1492
1483
  }
1493
- return function(T) {
1494
- for (var x = {}, ne = 0, z = 0; ne < m; ne += 1) {
1495
- var N = h[ne];
1496
- if (typeof N == "string") z += N.length;
1484
+ return function(O) {
1485
+ for (var z = {}, ne = 0, x = 0; ne < h; ne += 1) {
1486
+ var R = I[ne];
1487
+ if (typeof R == "string") x += R.length;
1497
1488
  else {
1498
- var O = N.regex, F = N.parser, u = T.slice(z), y = O.exec(u)[0];
1499
- F.call(x, y), T = T.replace(y, "");
1489
+ var D = R.regex, B = R.parser, u = O.slice(x), v = D.exec(u)[0];
1490
+ B.call(z, v), O = O.replace(v, "");
1500
1491
  }
1501
1492
  }
1502
- return function(_) {
1503
- var E = _.afternoon;
1504
- if (E !== void 0) {
1505
- var B = _.hours;
1506
- E ? B < 12 && (_.hours += 12) : B === 12 && (_.hours = 0), delete _.afternoon;
1493
+ return function(C) {
1494
+ var L = C.afternoon;
1495
+ if (L !== void 0) {
1496
+ var E = C.hours;
1497
+ L ? E < 12 && (C.hours += 12) : E === 12 && (C.hours = 0), delete C.afternoon;
1507
1498
  }
1508
- }(x), x;
1499
+ }(z), z;
1509
1500
  };
1510
1501
  }
1511
- return function(S, k, R) {
1512
- R.p.customParseFormat = !0, S && S.parseTwoDigitYear && (c = S.parseTwoDigitYear);
1513
- var h = k.prototype, m = h.parse;
1514
- h.parse = function(M) {
1515
- var v = M.date, j = M.utc, b = M.args;
1516
- this.$u = j;
1517
- var D = b[1];
1518
- if (typeof D == "string") {
1519
- var T = b[2] === !0, x = b[3] === !0, ne = T || x, z = b[2];
1520
- x && (z = b[2]), a = this.$locale(), !T && z && (a = R.Ls[z]), this.$d = function(u, y, _, E) {
1502
+ return function(w, S, j) {
1503
+ j.p.customParseFormat = !0, w && w.parseTwoDigitYear && (c = w.parseTwoDigitYear);
1504
+ var I = S.prototype, h = I.parse;
1505
+ I.parse = function(T) {
1506
+ var p = T.date, N = T.utc, y = T.args;
1507
+ this.$u = N;
1508
+ var F = y[1];
1509
+ if (typeof F == "string") {
1510
+ var O = y[2] === !0, z = y[3] === !0, ne = O || z, x = y[2];
1511
+ z && (x = y[2]), a = this.$locale(), !O && x && (a = j.Ls[x]), this.$d = function(u, v, C, L) {
1521
1512
  try {
1522
- if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * u);
1523
- var B = d(y)(u), q = B.year, U = B.month, G = B.day, X = B.hours, P = B.minutes, Z = B.seconds, ae = B.milliseconds, pe = B.zone, de = B.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), xe = 0;
1524
- q && !U || (xe = U > 0 ? U - 1 : Se.getMonth());
1525
- var ze, et = X || 0, qe = P || 0, p = Z || 0, f = ae || 0;
1526
- return pe ? new Date(Date.UTC(Ie, xe, Oe, et, qe, p, f + 60 * pe.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, xe, Oe, et, qe, p, f)) : (ze = new Date(Ie, xe, Oe, et, qe, p, f), de && (ze = E(ze).week(de).toDate()), ze);
1513
+ if (["x", "X"].indexOf(v) > -1) return new Date((v === "X" ? 1e3 : 1) * u);
1514
+ var E = g(v)(u), q = E.year, U = E.month, G = E.day, X = E.hours, P = E.minutes, Z = E.seconds, ae = E.milliseconds, pe = E.zone, de = E.week, Se = /* @__PURE__ */ new Date(), Oe = G || (q || U ? 1 : Se.getDate()), Ie = q || Se.getFullYear(), ze = 0;
1515
+ q && !U || (ze = U > 0 ? U - 1 : Se.getMonth());
1516
+ var xe, et = X || 0, qe = P || 0, f = Z || 0, d = ae || 0;
1517
+ return pe ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d + 60 * pe.offset * 1e3)) : C ? new Date(Date.UTC(Ie, ze, Oe, et, qe, f, d)) : (xe = new Date(Ie, ze, Oe, et, qe, f, d), de && (xe = L(xe).week(de).toDate()), xe);
1527
1518
  } catch {
1528
1519
  return /* @__PURE__ */ new Date("");
1529
1520
  }
1530
- }(v, D, j, R), this.init(), z && z !== !0 && (this.$L = this.locale(z).$L), ne && v != this.format(D) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
1531
- } else if (D instanceof Array) for (var N = D.length, O = 1; O <= N; O += 1) {
1532
- b[1] = D[O - 1];
1533
- var F = R.apply(this, b);
1534
- if (F.isValid()) {
1535
- this.$d = F.$d, this.$L = F.$L, this.init();
1521
+ }(p, F, N, j), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && p != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
1522
+ } else if (F instanceof Array) for (var R = F.length, D = 1; D <= R; D += 1) {
1523
+ y[1] = F[D - 1];
1524
+ var B = j.apply(this, y);
1525
+ if (B.isValid()) {
1526
+ this.$d = B.$d, this.$L = B.$L, this.init();
1536
1527
  break;
1537
1528
  }
1538
- O === N && (this.$d = /* @__PURE__ */ new Date(""));
1529
+ D === R && (this.$d = /* @__PURE__ */ new Date(""));
1539
1530
  }
1540
- else m.call(this, M);
1531
+ else h.call(this, T);
1541
1532
  };
1542
1533
  };
1543
1534
  });
@@ -1551,56 +1542,56 @@ var ln = { exports: {} };
1551
1542
  })(at, function() {
1552
1543
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1553
1544
  return function(r, i, s) {
1554
- var l, a = function(I, V, A) {
1545
+ var l, a = function($, b, A) {
1555
1546
  A === void 0 && (A = {});
1556
- var d = new Date(I), S = function(k, R) {
1557
- R === void 0 && (R = {});
1558
- var h = R.timeZoneName || "short", m = k + "|" + h, M = o[m];
1559
- return M || (M = 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: h }), o[m] = M), M;
1560
- }(V, A);
1561
- return S.formatToParts(d);
1562
- }, c = function(I, V) {
1563
- for (var A = a(I, V), d = [], S = 0; S < A.length; S += 1) {
1564
- var k = A[S], R = k.type, h = k.value, m = n[R];
1565
- m >= 0 && (d[m] = parseInt(h, 10));
1547
+ var g = new Date($), w = function(S, j) {
1548
+ j === void 0 && (j = {});
1549
+ var I = j.timeZoneName || "short", h = S + "|" + I, T = o[h];
1550
+ return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: S, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: I }), o[h] = T), T;
1551
+ }(b, A);
1552
+ return w.formatToParts(g);
1553
+ }, c = function($, b) {
1554
+ for (var A = a($, b), g = [], w = 0; w < A.length; w += 1) {
1555
+ var S = A[w], j = S.type, I = S.value, h = n[j];
1556
+ h >= 0 && (g[h] = parseInt(I, 10));
1566
1557
  }
1567
- var M = d[3], v = M === 24 ? 0 : M, j = d[0] + "-" + d[1] + "-" + d[2] + " " + v + ":" + d[4] + ":" + d[5] + ":000", b = +I;
1568
- return (s.utc(j).valueOf() - (b -= b % 1e3)) / 6e4;
1569
- }, g = i.prototype;
1570
- g.tz = function(I, V) {
1571
- I === void 0 && (I = l);
1572
- var A, d = this.utcOffset(), S = this.toDate(), k = S.toLocaleString("en-US", { timeZone: I }), R = Math.round((S - new Date(k)) / 1e3 / 60), h = 15 * -Math.round(S.getTimezoneOffset() / 15) - R;
1573
- if (!Number(h)) A = this.utcOffset(0, V);
1574
- else if (A = s(k, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(h, !0), V) {
1575
- var m = A.utcOffset();
1576
- A = A.add(d - m, "minute");
1558
+ var T = g[3], p = T === 24 ? 0 : T, N = g[0] + "-" + g[1] + "-" + g[2] + " " + p + ":" + g[4] + ":" + g[5] + ":000", y = +$;
1559
+ return (s.utc(N).valueOf() - (y -= y % 1e3)) / 6e4;
1560
+ }, m = i.prototype;
1561
+ m.tz = function($, b) {
1562
+ $ === void 0 && ($ = l);
1563
+ var A, g = this.utcOffset(), w = this.toDate(), S = w.toLocaleString("en-US", { timeZone: $ }), j = Math.round((w - new Date(S)) / 1e3 / 60), I = 15 * -Math.round(w.getTimezoneOffset() / 15) - j;
1564
+ if (!Number(I)) A = this.utcOffset(0, b);
1565
+ else if (A = s(S, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(I, !0), b) {
1566
+ var h = A.utcOffset();
1567
+ A = A.add(g - h, "minute");
1577
1568
  }
1578
- return A.$x.$timezone = I, A;
1579
- }, g.offsetName = function(I) {
1580
- var V = this.$x.$timezone || s.tz.guess(), A = a(this.valueOf(), V, { timeZoneName: I }).find(function(d) {
1581
- return d.type.toLowerCase() === "timezonename";
1569
+ return A.$x.$timezone = $, A;
1570
+ }, m.offsetName = function($) {
1571
+ var b = this.$x.$timezone || s.tz.guess(), A = a(this.valueOf(), b, { timeZoneName: $ }).find(function(g) {
1572
+ return g.type.toLowerCase() === "timezonename";
1582
1573
  });
1583
1574
  return A && A.value;
1584
1575
  };
1585
- var w = g.startOf;
1586
- g.startOf = function(I, V) {
1587
- if (!this.$x || !this.$x.$timezone) return w.call(this, I, V);
1576
+ var _ = m.startOf;
1577
+ m.startOf = function($, b) {
1578
+ if (!this.$x || !this.$x.$timezone) return _.call(this, $, b);
1588
1579
  var A = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1589
- return w.call(A, I, V).tz(this.$x.$timezone, !0);
1590
- }, s.tz = function(I, V, A) {
1591
- var d = A && V, S = A || V || l, k = c(+s(), S);
1592
- if (typeof I != "string") return s(I).tz(S);
1593
- var R = function(v, j, b) {
1594
- var D = v - 60 * j * 1e3, T = c(D, b);
1595
- if (j === T) return [D, j];
1596
- var x = c(D -= 60 * (T - j) * 1e3, b);
1597
- return T === x ? [D, T] : [v - 60 * Math.min(T, x) * 1e3, Math.max(T, x)];
1598
- }(s.utc(I, d).valueOf(), k, S), h = R[0], m = R[1], M = s(h).utcOffset(m);
1599
- return M.$x.$timezone = S, M;
1580
+ return _.call(A, $, b).tz(this.$x.$timezone, !0);
1581
+ }, s.tz = function($, b, A) {
1582
+ var g = A && b, w = A || b || l, S = c(+s(), w);
1583
+ if (typeof $ != "string") return s($).tz(w);
1584
+ var j = function(p, N, y) {
1585
+ var F = p - 60 * N * 1e3, O = c(F, y);
1586
+ if (N === O) return [F, N];
1587
+ var z = c(F -= 60 * (O - N) * 1e3, y);
1588
+ return O === z ? [F, O] : [p - 60 * Math.min(O, z) * 1e3, Math.max(O, z)];
1589
+ }(s.utc($, g).valueOf(), S, w), I = j[0], h = j[1], T = s(I).utcOffset(h);
1590
+ return T.$x.$timezone = w, T;
1600
1591
  }, s.tz.guess = function() {
1601
1592
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1602
- }, s.tz.setDefault = function(I) {
1603
- l = I;
1593
+ }, s.tz.setDefault = function($) {
1594
+ l = $;
1604
1595
  };
1605
1596
  };
1606
1597
  });
@@ -1615,51 +1606,51 @@ var cn = { exports: {} };
1615
1606
  var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1616
1607
  return function(i, s, l) {
1617
1608
  var a = s.prototype;
1618
- l.utc = function(d) {
1619
- var S = { date: d, utc: !0, args: arguments };
1620
- return new s(S);
1621
- }, a.utc = function(d) {
1622
- var S = l(this.toDate(), { locale: this.$L, utc: !0 });
1623
- return d ? S.add(this.utcOffset(), n) : S;
1609
+ l.utc = function(g) {
1610
+ var w = { date: g, utc: !0, args: arguments };
1611
+ return new s(w);
1612
+ }, a.utc = function(g) {
1613
+ var w = l(this.toDate(), { locale: this.$L, utc: !0 });
1614
+ return g ? w.add(this.utcOffset(), n) : w;
1624
1615
  }, a.local = function() {
1625
1616
  return l(this.toDate(), { locale: this.$L, utc: !1 });
1626
1617
  };
1627
1618
  var c = a.parse;
1628
- a.parse = function(d) {
1629
- d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), c.call(this, d);
1619
+ a.parse = function(g) {
1620
+ g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), c.call(this, g);
1630
1621
  };
1631
- var g = a.init;
1622
+ var m = a.init;
1632
1623
  a.init = function() {
1633
1624
  if (this.$u) {
1634
- var d = this.$d;
1635
- this.$y = d.getUTCFullYear(), this.$M = d.getUTCMonth(), this.$D = d.getUTCDate(), this.$W = d.getUTCDay(), this.$H = d.getUTCHours(), this.$m = d.getUTCMinutes(), this.$s = d.getUTCSeconds(), this.$ms = d.getUTCMilliseconds();
1636
- } else g.call(this);
1625
+ var g = this.$d;
1626
+ this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
1627
+ } else m.call(this);
1637
1628
  };
1638
- var w = a.utcOffset;
1639
- a.utcOffset = function(d, S) {
1640
- var k = this.$utils().u;
1641
- if (k(d)) return this.$u ? 0 : k(this.$offset) ? w.call(this) : this.$offset;
1642
- if (typeof d == "string" && (d = function(M) {
1643
- M === void 0 && (M = "");
1644
- var v = M.match(o);
1645
- if (!v) return null;
1646
- var j = ("" + v[0]).match(r) || ["-", 0, 0], b = j[0], D = 60 * +j[1] + +j[2];
1647
- return D === 0 ? 0 : b === "+" ? D : -D;
1648
- }(d), d === null)) return this;
1649
- var R = Math.abs(d) <= 16 ? 60 * d : d;
1650
- if (R === 0) return this.utc(S);
1651
- var h = this.clone();
1652
- if (S) return h.$offset = R, h.$u = !1, h;
1653
- var m = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1654
- return (h = this.local().add(R + m, n)).$offset = R, h.$x.$localOffset = m, h;
1629
+ var _ = a.utcOffset;
1630
+ a.utcOffset = function(g, w) {
1631
+ var S = this.$utils().u;
1632
+ if (S(g)) return this.$u ? 0 : S(this.$offset) ? _.call(this) : this.$offset;
1633
+ if (typeof g == "string" && (g = function(T) {
1634
+ T === void 0 && (T = "");
1635
+ var p = T.match(o);
1636
+ if (!p) return null;
1637
+ var N = ("" + p[0]).match(r) || ["-", 0, 0], y = N[0], F = 60 * +N[1] + +N[2];
1638
+ return F === 0 ? 0 : y === "+" ? F : -F;
1639
+ }(g), g === null)) return this;
1640
+ var j = Math.abs(g) <= 16 ? 60 * g : g;
1641
+ if (j === 0) return this.utc(w);
1642
+ var I = this.clone();
1643
+ if (w) return I.$offset = j, I.$u = !1, I;
1644
+ var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1645
+ return (I = this.local().add(j + h, n)).$offset = j, I.$x.$localOffset = h, I;
1655
1646
  };
1656
- var I = a.format;
1657
- a.format = function(d) {
1658
- var S = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1659
- return I.call(this, S);
1647
+ var $ = a.format;
1648
+ a.format = function(g) {
1649
+ var w = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1650
+ return $.call(this, w);
1660
1651
  }, a.valueOf = function() {
1661
- var d = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1662
- return this.$d.valueOf() - 6e4 * d;
1652
+ var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1653
+ return this.$d.valueOf() - 6e4 * g;
1663
1654
  }, a.isUTC = function() {
1664
1655
  return !!this.$u;
1665
1656
  }, a.toISOString = function() {
@@ -1667,15 +1658,15 @@ var cn = { exports: {} };
1667
1658
  }, a.toString = function() {
1668
1659
  return this.toDate().toUTCString();
1669
1660
  };
1670
- var V = a.toDate;
1671
- a.toDate = function(d) {
1672
- return d === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : V.call(this);
1661
+ var b = a.toDate;
1662
+ a.toDate = function(g) {
1663
+ return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
1673
1664
  };
1674
1665
  var A = a.diff;
1675
- a.diff = function(d, S, k) {
1676
- if (d && this.$u === d.$u) return A.call(this, d, S, k);
1677
- var R = this.local(), h = l(d).local();
1678
- return A.call(R, h, S, k);
1666
+ a.diff = function(g, w, S) {
1667
+ if (g && this.$u === g.$u) return A.call(this, g, w, S);
1668
+ var j = this.local(), I = l(g).local();
1669
+ return A.call(j, I, w, S);
1679
1670
  };
1680
1671
  };
1681
1672
  });
@@ -1685,7 +1676,7 @@ const er = /* @__PURE__ */ st(Xo);
1685
1676
  _t.extend(er);
1686
1677
  _t.extend(Qo);
1687
1678
  _t.extend(Wo);
1688
- const vt = /\$\{([^}]+)\}/g;
1679
+ const ht = /\$\{([^}]+)\}/g;
1689
1680
  function Re(e) {
1690
1681
  if (!e)
1691
1682
  return [];
@@ -1706,11 +1697,11 @@ function tr(e) {
1706
1697
  }
1707
1698
  function yt(e, t) {
1708
1699
  if (typeof e == "string") {
1709
- vt.lastIndex = 0;
1710
- let n = vt.exec(e);
1700
+ ht.lastIndex = 0;
1701
+ let n = ht.exec(e);
1711
1702
  for (; n !== null; ) {
1712
1703
  const o = String(n[1] ?? "").trim();
1713
- o && t.add(o), n = vt.exec(e);
1704
+ o && t.add(o), n = ht.exec(e);
1714
1705
  }
1715
1706
  return;
1716
1707
  }
@@ -1781,7 +1772,7 @@ function rr(e) {
1781
1772
  e.raw?.type,
1782
1773
  e.raw?.fieldType,
1783
1774
  e.raw?.frontInputType
1784
- ].some((t) => hn(t) === "attach");
1775
+ ].some((t) => vn(t) === "attach");
1785
1776
  }
1786
1777
  function pn(e, t, n = "-") {
1787
1778
  return !rr(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, i) => ar(r, i, n)).filter((r) => !!r);
@@ -1807,8 +1798,8 @@ function ar(e, t, n) {
1807
1798
  if (e && typeof e == "object") {
1808
1799
  const o = e, r = sr(o, n), i = De(o.url);
1809
1800
  if (i) {
1810
- const l = { url: i }, a = De(o.name), c = De(o.mimeType), g = De(o.extension);
1811
- return a && (l.name = a), c && (l.mimeType = c), g && (l.extension = g), {
1801
+ const l = { url: i }, a = De(o.name), c = De(o.mimeType), m = De(o.extension);
1802
+ return a && (l.name = a), c && (l.mimeType = c), m && (l.extension = m), {
1812
1803
  key: String(t),
1813
1804
  text: r,
1814
1805
  action: {
@@ -1884,9 +1875,9 @@ function mn(e) {
1884
1875
  ]);
1885
1876
  }
1886
1877
  function cr(e) {
1887
- return Array.from(new Set(e.map((t) => hn(t)).filter(Boolean)));
1878
+ return Array.from(new Set(e.map((t) => vn(t)).filter(Boolean)));
1888
1879
  }
1889
- function hn(e) {
1880
+ function vn(e) {
1890
1881
  return String(e ?? "").trim().toLowerCase();
1891
1882
  }
1892
1883
  function ur(e, t, n) {
@@ -1944,10 +1935,10 @@ function jt(e) {
1944
1935
  treeNodes: o
1945
1936
  };
1946
1937
  }
1947
- function vn(e, t, n) {
1938
+ function hn(e, t, n) {
1948
1939
  return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
1949
1940
  ...o,
1950
- children: vn(o.children, t, n)
1941
+ children: hn(o.children, t, n)
1951
1942
  });
1952
1943
  }
1953
1944
  function mr(e, t = {}, n = null) {
@@ -1964,10 +1955,10 @@ function mr(e, t = {}, n = null) {
1964
1955
  raw: e
1965
1956
  };
1966
1957
  }
1967
- function hr(e) {
1958
+ function vr(e) {
1968
1959
  return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
1969
1960
  }
1970
- function vr(e, t = {}) {
1961
+ function hr(e, t = {}) {
1971
1962
  const n = e.renderType === "table" ? e.rows.map((a) => bt(St(a))) : [bt(St(e.model))], o = le(e.operationInfo), r = le(o.editInfoSet), i = le(r.params), s = le(o.queryInfoSet), l = le(s.params);
1972
1963
  return {
1973
1964
  ...t,
@@ -2015,18 +2006,18 @@ function gr(e, t, n) {
2015
2006
  return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
2016
2007
  }
2017
2008
  function Nt(e, t, n, o) {
2018
- const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = hr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), g = le(r.tag), w = Q(
2019
- r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ?? i.raw.tagId ?? i.raw.infTagId
2020
- ), I = Q(t.tagId ?? n?.tagId), V = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, d = o ? t.setId : void 0, S = o ? n?.code : void 0, k = i.setId || Q(r.setId), R = Q(r.infSetId) || k || Q(A), h = k || Q(d ?? R), m = i.code || Q(r.code ?? S ?? h), M = h || m || R || w, v = {
2021
- key: M,
2022
- id: M,
2023
- setId: h,
2024
- code: m,
2025
- tagId: w,
2026
- requestTagId: I || void 0,
2027
- ownerNodeKey: V || void 0,
2028
- infSetId: R,
2029
- title: i.name || Q(r.name ?? n?.tagName ?? M),
2009
+ const r = le(e), i = yr(r.infSetMark ?? r), s = br(r.infSetFields ?? r.fields ?? []), l = vr(i), a = wr(r.infSetValues ?? r.rows ?? r.data, s, l), c = a[0] ? St(a[0]) : bn(s), m = le(r.tag), _ = Q(
2010
+ r.tagId ?? r.infTagId ?? m.tagId ?? m.infTagId ?? i.raw.tagId ?? i.raw.infTagId
2011
+ ), $ = Q(t.tagId ?? n?.tagId), b = Q(n?.key), A = o ? t.infSetId ?? n?.infSetId : void 0, g = o ? t.setId : void 0, w = o ? n?.code : void 0, S = i.setId || Q(r.setId), j = Q(r.infSetId) || S || Q(A), I = S || Q(g ?? j), h = i.code || Q(r.code ?? w ?? I), T = I || h || j || _, p = {
2012
+ key: T,
2013
+ id: T,
2014
+ setId: I,
2015
+ code: h,
2016
+ tagId: _,
2017
+ requestTagId: $ || void 0,
2018
+ ownerNodeKey: b || void 0,
2019
+ infSetId: j,
2020
+ title: i.name || Q(r.name ?? n?.tagName ?? T),
2030
2021
  renderType: l,
2031
2022
  mark: i,
2032
2023
  fields: s,
@@ -2035,7 +2026,7 @@ function Nt(e, t, n, o) {
2035
2026
  operationInfo: ut(t.operationInfo ?? r.operationInfo),
2036
2027
  raw: r
2037
2028
  };
2038
- return v.renderType === "form" && a.length === 0 && (v.rows = [{ ...c, __rowKey: `${M}-0` }]), v;
2029
+ return p.renderType === "form" && a.length === 0 && (p.rows = [{ ...c, __rowKey: `${T}-0` }]), p;
2039
2030
  }
2040
2031
  function yr(e) {
2041
2032
  const t = le(e), n = Q(t.htmlDisplay || "F");
@@ -2075,8 +2066,8 @@ function Sr(e, t) {
2075
2066
  isRequired: $e(n.isRequired),
2076
2067
  disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
2077
2068
  span: Mn(n.span ?? n.colSpan),
2078
- width: xt(n.width),
2079
- minWidth: xt(n.minWidth),
2069
+ width: zt(n.width),
2070
+ minWidth: zt(n.minWidth),
2080
2071
  placeholder: ie(n.placeholder),
2081
2072
  options: yn(n.options),
2082
2073
  interface: i,
@@ -2131,7 +2122,7 @@ function Ir(e, t, n, o) {
2131
2122
  };
2132
2123
  }
2133
2124
  function _r(e, t, n, o, r) {
2134
- const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, g = t.code || ie(e.code ?? l);
2125
+ const i = Q(e.tagId ?? e.id ?? e.key), s = Q(e.tagName ?? e.name ?? e.label ?? i), l = t.infSetId || Q(t.setId), a = t.setId || l, c = l || `${i}-${r}`, m = t.code || ie(e.code ?? l);
2135
2126
  return {
2136
2127
  key: c,
2137
2128
  id: c,
@@ -2146,7 +2137,7 @@ function _r(e, t, n, o, r) {
2146
2137
  schemeId: Q(e.infSchmId ?? n?.infSchmId),
2147
2138
  infSetId: l,
2148
2139
  setId: a,
2149
- code: g,
2140
+ code: m,
2150
2141
  children: [],
2151
2142
  infSetList: [t],
2152
2143
  operationInfo: ut(e.operationInfo),
@@ -2251,7 +2242,7 @@ function Tr(e) {
2251
2242
  };
2252
2243
  return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
2253
2244
  }
2254
- function xt(e) {
2245
+ function zt(e) {
2255
2246
  return typeof e == "string" || typeof e == "number" ? e : void 0;
2256
2247
  }
2257
2248
  function le(e) {
@@ -2435,13 +2426,13 @@ function Rr(e) {
2435
2426
  };
2436
2427
  }
2437
2428
  const Dn = "信息集不能为空,最后一条数据不可删除";
2438
- function xr(e, t = [], n = {}) {
2439
- return !e.mark.isRequired || t.length > 0 ? null : zr(
2429
+ function zr(e, t = [], n = {}) {
2430
+ return !e.mark.isRequired || t.length > 0 ? null : xr(
2440
2431
  n.emptyMessage,
2441
2432
  { section: e, infSetValues: t }
2442
2433
  ) || Dn;
2443
2434
  }
2444
- function zr(e, t) {
2435
+ function xr(e, t) {
2445
2436
  return typeof e == "function" ? e(t) : typeof e == "string" ? e : Dn;
2446
2437
  }
2447
2438
  const Ne = (e) => new Error(`[GlobalInfo] ${e}`), qr = (e) => [
@@ -2453,12 +2444,12 @@ function wt(e) {
2453
2444
  return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
2454
2445
  }
2455
2446
  const Gr = (e) => {
2456
- const t = ve(!1), n = ve(!1), o = ve(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), g = Pe({}), w = ve([]), I = Pe({}), V = ve([]), A = L(
2447
+ const t = he(!1), n = he(!1), o = he(!1), r = Pe(null), i = Pe([]), s = Pe(null), l = Pe(null), a = Pe(null), c = Pe({}), m = Pe({}), _ = he([]), $ = Pe({}), b = he([]), A = V(
2457
2448
  () => {
2458
- const p = w.value.map((C) => c.value[C]).filter((C) => !!C), f = Object.entries(c.value).filter(([C]) => !w.value.includes(C)).map(([, C]) => C);
2459
- return [...p, ...f];
2449
+ const f = _.value.map((M) => c.value[M]).filter((M) => !!M), d = Object.entries(c.value).filter(([M]) => !_.value.includes(M)).map(([, M]) => M);
2450
+ return [...f, ...d];
2460
2451
  }
2461
- ), d = L(() => ({
2452
+ ), g = V(() => ({
2462
2453
  // 整棵树是否正在加载。
2463
2454
  loading: t.value,
2464
2455
  // 当前详情是否正在加载。
@@ -2466,234 +2457,234 @@ const Gr = (e) => {
2466
2457
  // 当前是否正在保存。
2467
2458
  saving: o.value,
2468
2459
  // 当前所有编辑中的 section key。
2469
- editingSectionKeys: V.value,
2460
+ editingSectionKeys: b.value,
2470
2461
  // 已加载 section 映射。
2471
2462
  sectionMap: c.value,
2472
2463
  // section 状态映射;这里把 alias 后的编辑态也同步进去。
2473
2464
  sectionStatusMap: Object.fromEntries(
2474
- Object.entries(I.value).map(([p, f]) => [
2475
- p,
2465
+ Object.entries($.value).map(([f, d]) => [
2466
+ f,
2476
2467
  {
2477
2468
  // 保留原状态字段。
2478
- ...f,
2469
+ ...d,
2479
2470
  // 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
2480
- editing: V.value.includes(
2481
- g.value[p] ?? p
2471
+ editing: b.value.includes(
2472
+ m.value[f] ?? f
2482
2473
  )
2483
2474
  }
2484
2475
  ])
2485
2476
  ),
2486
2477
  // 最近一次全局错误。
2487
2478
  error: r.value
2488
- })), S = () => ({
2479
+ })), w = () => ({
2489
2480
  // adaptScene 透传给新接口形态。
2490
2481
  adaptScene: e.adaptScene,
2491
2482
  // emplid 是当前人员标识,树和详情接口都需要它。
2492
2483
  emplid: e.emplid
2493
- }), k = (p) => ({
2484
+ }), S = (f) => ({
2494
2485
  // 复用基础参数,保证人员和场景一致。
2495
- ...S(),
2486
+ ...w(),
2496
2487
  // infSchmId 指定当前模板方案。
2497
- infSchmId: p.infSchmId,
2488
+ infSchmId: f.infSchmId,
2498
2489
  // tagId 指定要展开的树节点。
2499
- tagId: p.tagId,
2490
+ tagId: f.tagId,
2500
2491
  // tagLevel 告诉后端当前节点层级。
2501
- tagLevel: p.tagLevel,
2492
+ tagLevel: f.tagLevel,
2502
2493
  // parentTagId 保留父子关系上下文。
2503
- parentTagId: p.parentTagId
2504
- }), R = (p = l.value, f = a.value) => ({
2494
+ parentTagId: f.parentTagId
2495
+ }), j = (f = l.value, d = a.value) => ({
2505
2496
  // 详情接口同样需要基础人员和场景参数。
2506
- ...S(),
2497
+ ...w(),
2507
2498
  // 当前节点所属模板方案。
2508
- infSchmId: p?.infSchmId,
2499
+ infSchmId: f?.infSchmId,
2509
2500
  // 当前点击或加载的树节点 id。
2510
- tagId: p?.tagId,
2501
+ tagId: f?.tagId,
2511
2502
  // 保存或刷新指定 section 时优先使用 section 自己的信息集 id。
2512
- infSetId: f?.infSetId ?? p?.infSetId,
2503
+ infSetId: d?.infSetId ?? f?.infSetId,
2513
2504
  // setId 同样优先取 section,避免保存时拿错节点 setId。
2514
- setId: f?.setId ?? p?.setId
2515
- }), h = async (p, f) => Nr({
2505
+ setId: d?.setId ?? f?.setId
2506
+ }), I = async (f, d) => Nr({
2516
2507
  service: e.service,
2517
2508
  formatter: e.formatOperationParams,
2518
- operation: p,
2519
- context: f,
2509
+ operation: f,
2510
+ context: d,
2520
2511
  viewModel: s.value,
2521
2512
  sections: A.value,
2522
2513
  activeNode: l.value,
2523
2514
  activeSection: a.value
2524
- }), m = Uo(
2525
- async (p, f) => {
2515
+ }), h = Uo(
2516
+ async (f, d) => {
2526
2517
  if (!e.service.requestOperation)
2527
2518
  throw Ne("service.requestOperation is required");
2528
- return e.service.requestOperation(p, f);
2519
+ return e.service.requestOperation(f, d);
2529
2520
  },
2530
- (p) => qr(p)
2531
- ), M = async (p, f) => {
2532
- const C = await On({
2521
+ (f) => qr(f)
2522
+ ), T = async (f, d) => {
2523
+ const M = await On({
2533
2524
  formatter: e.formatOperationParams,
2534
- params: f?.params,
2535
- operation: p,
2536
- type: f?.type,
2537
- requestSource: f?.requestSource,
2538
- tagId: f?.tagId,
2539
- section: f?.section,
2540
- field: f?.field,
2541
- model: f?.model,
2542
- row: f?.row,
2543
- node: f?.node,
2525
+ params: d?.params,
2526
+ operation: f,
2527
+ type: d?.type,
2528
+ requestSource: d?.requestSource,
2529
+ tagId: d?.tagId,
2530
+ section: d?.section,
2531
+ field: d?.field,
2532
+ model: d?.model,
2533
+ row: d?.row,
2534
+ node: d?.node,
2544
2535
  viewModel: s.value,
2545
2536
  sections: A.value,
2546
2537
  activeNode: l.value,
2547
2538
  activeSection: a.value,
2548
- searchText: f?.searchText
2549
- }), K = { ...p, params: C }, W = f && { ...f, params: C };
2550
- return m(K, W);
2551
- }, v = (p, f) => {
2552
- if (!f)
2553
- return p[0] ?? null;
2554
- for (const C of p) {
2555
- if (We(C).includes(f))
2556
- return C;
2557
- const K = v(C.children, f);
2539
+ searchText: d?.searchText
2540
+ }), K = { ...f, params: M }, W = d && { ...d, params: M };
2541
+ return h(K, W);
2542
+ }, p = (f, d) => {
2543
+ if (!d)
2544
+ return f[0] ?? null;
2545
+ for (const M of f) {
2546
+ if (We(M).includes(d))
2547
+ return M;
2548
+ const K = p(M.children, d);
2558
2549
  if (K)
2559
2550
  return K;
2560
2551
  }
2561
2552
  return null;
2562
- }, j = (p = a.value) => {
2563
- if (p)
2564
- return typeof p == "string" ? p : Ke(p) ? T(p) : ke(p);
2565
- }, b = (p = a.value) => {
2566
- const f = j(p);
2567
- if (!f)
2553
+ }, N = (f = a.value) => {
2554
+ if (f)
2555
+ return typeof f == "string" ? f : Ke(f) ? O(f) : ke(f);
2556
+ }, y = (f = a.value) => {
2557
+ const d = N(f);
2558
+ if (!d)
2568
2559
  return null;
2569
- const C = g.value[f] ?? f;
2570
- return c.value[C] ?? null;
2571
- }, D = (p = a.value) => {
2572
- const f = j(p);
2560
+ const M = m.value[d] ?? d;
2561
+ return c.value[M] ?? null;
2562
+ }, F = (f = a.value) => {
2563
+ const d = N(f);
2564
+ if (d)
2565
+ return m.value[d] ?? d;
2566
+ }, O = (f = a.value) => {
2573
2567
  if (f)
2574
- return g.value[f] ?? f;
2575
- }, T = (p = a.value) => {
2576
- if (p)
2577
- return typeof p == "string" ? p : Ke(p) ? p.setId ?? p.infSetId ?? p.key : ke(p);
2578
- }, x = (p = a.value) => {
2579
- if (Ke(p))
2580
- return p;
2581
- if (typeof p == "string") {
2582
- const f = v(i.value, p);
2583
- if (f)
2584
- return f;
2585
- const C = b(p);
2586
- return C?.ownerNodeKey ? v(i.value, C.ownerNodeKey) ?? l.value : C || l.value && We(l.value).includes(p) ? l.value : null;
2568
+ return typeof f == "string" ? f : Ke(f) ? f.setId ?? f.infSetId ?? f.key : ke(f);
2569
+ }, z = (f = a.value) => {
2570
+ if (Ke(f))
2571
+ return f;
2572
+ if (typeof f == "string") {
2573
+ const d = p(i.value, f);
2574
+ if (d)
2575
+ return d;
2576
+ const M = y(f);
2577
+ return M?.ownerNodeKey ? p(i.value, M.ownerNodeKey) ?? l.value : M || l.value && We(l.value).includes(f) ? l.value : null;
2587
2578
  }
2588
- return p?.ownerNodeKey ? v(i.value, p.ownerNodeKey) ?? l.value : l.value;
2589
- }, ne = (p = a.value) => !p || Ke(p) ? null : b(p), z = (p = a.value) => {
2590
- const f = T(p);
2591
- if (!f)
2579
+ return f?.ownerNodeKey ? p(i.value, f.ownerNodeKey) ?? l.value : l.value;
2580
+ }, ne = (f = a.value) => !f || Ke(f) ? null : y(f), x = (f = a.value) => {
2581
+ const d = O(f);
2582
+ if (!d)
2592
2583
  return Ue();
2593
- const C = g.value[f] ?? f;
2584
+ const M = m.value[d] ?? d;
2594
2585
  return Ue({
2595
- ...I.value[f],
2596
- ...I.value[C],
2586
+ ...$.value[d],
2587
+ ...$.value[M],
2597
2588
  // 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
2598
- editing: V.value.includes(
2599
- C
2589
+ editing: b.value.includes(
2590
+ M
2600
2591
  )
2601
2592
  });
2602
- }, N = (p, f) => {
2603
- const C = T(p);
2604
- C && (I.value = {
2605
- ...I.value,
2606
- [C]: Ue({
2593
+ }, R = (f, d) => {
2594
+ const M = O(f);
2595
+ M && ($.value = {
2596
+ ...$.value,
2597
+ [M]: Ue({
2607
2598
  // 保留已有状态。
2608
- ...I.value[C],
2599
+ ...$.value[M],
2609
2600
  // 合并本次状态补丁。
2610
- ...f,
2601
+ ...d,
2611
2602
  // 编辑态仍以 editingSectionKeys 为准。
2612
- editing: V.value.includes(C)
2603
+ editing: b.value.includes(M)
2613
2604
  })
2614
2605
  });
2615
- }, O = (p = s.value?.raw ?? null, f = l.value) => {
2616
- const C = A.value, K = a.value && C.find(
2606
+ }, D = (f = s.value?.raw ?? null, d = l.value) => {
2607
+ const M = A.value, K = a.value && M.find(
2617
2608
  (W) => ke(W) === ke(a.value)
2618
2609
  ) ? a.value : null;
2619
2610
  s.value = {
2620
2611
  // 保留原 scheme。
2621
2612
  scheme: s.value?.scheme ?? null,
2622
2613
  // 当前节点。
2623
- node: f,
2614
+ node: d,
2624
2615
  // 顶层节点和树节点都来自 nodes。
2625
2616
  topNodes: i.value,
2626
2617
  treeNodes: i.value,
2627
2618
  // 当前激活节点。
2628
- activeNode: f,
2619
+ activeNode: d,
2629
2620
  // 当前激活 section。
2630
2621
  activeSection: K,
2631
2622
  // 当前所有已加载 section。
2632
- sections: C,
2623
+ sections: M,
2633
2624
  // 当前 section 缓存。
2634
2625
  sectionMap: c.value,
2635
2626
  // 保留原始接口数据。
2636
- raw: p
2627
+ raw: f
2637
2628
  }, a.value = K;
2638
- }, F = (p, f = l.value, C) => {
2629
+ }, B = (f, d = l.value, M) => {
2639
2630
  const K = Rr({
2640
2631
  currentMap: c.value,
2641
- currentAliasMap: g.value,
2642
- currentOrder: w.value,
2643
- currentStatusMap: I.value,
2644
- editingSectionKeys: V.value,
2645
- nextViewModel: p,
2646
- node: f,
2647
- targetKey: C,
2632
+ currentAliasMap: m.value,
2633
+ currentOrder: _.value,
2634
+ currentStatusMap: $.value,
2635
+ editingSectionKeys: b.value,
2636
+ nextViewModel: f,
2637
+ node: d,
2638
+ targetKey: M,
2648
2639
  activeSection: a.value
2649
2640
  });
2650
- return c.value = K.sectionMap, g.value = K.sectionAliasMap, w.value = K.sectionOrder, I.value = K.sectionStatusMap, s.value = {
2651
- ...p,
2652
- scheme: p.scheme ?? s.value?.scheme ?? null,
2641
+ return c.value = K.sectionMap, m.value = K.sectionAliasMap, _.value = K.sectionOrder, $.value = K.sectionStatusMap, s.value = {
2642
+ ...f,
2643
+ scheme: f.scheme ?? s.value?.scheme ?? null,
2653
2644
  topNodes: i.value,
2654
2645
  treeNodes: i.value,
2655
- activeNode: f,
2646
+ activeNode: d,
2656
2647
  activeSection: K.matchedSection,
2657
2648
  sections: K.targetSections,
2658
2649
  sectionMap: c.value
2659
2650
  }, a.value = K.matchedSection, K.matchedSection;
2660
- }, u = (p, f) => {
2661
- const C = D(p), K = C ? c.value[C] : null;
2662
- if (!C || !K)
2651
+ }, u = (f, d) => {
2652
+ const M = F(f), K = M ? c.value[M] : null;
2653
+ if (!M || !K)
2663
2654
  return;
2664
- const W = f(K);
2655
+ const W = d(K);
2665
2656
  c.value = {
2666
2657
  ...c.value,
2667
- [C]: W
2668
- }, a.value = ke(a.value ?? W) === C ? W : a.value, O();
2669
- }, y = async (p = a.value ?? l.value) => {
2670
- const f = ne(p), C = x(p) ?? l.value, K = T(p);
2671
- if (!C)
2658
+ [M]: W
2659
+ }, a.value = ke(a.value ?? W) === M ? W : a.value, D();
2660
+ }, v = async (f = a.value ?? l.value) => {
2661
+ const d = ne(f), M = z(f) ?? l.value, K = O(f);
2662
+ if (!M)
2672
2663
  return null;
2673
2664
  if (!e.service.requestOperation)
2674
2665
  throw Ne("service.requestOperation is required");
2675
- n.value = !0, r.value = null, N(K ?? C, { loading: !0, error: null });
2666
+ n.value = !0, r.value = null, R(K ?? M, { loading: !0, error: null });
2676
2667
  try {
2677
- const W = f ? [{ infSetId: f.infSetId, setId: f.setId, operationInfo: f.operationInfo, raw: f.raw }] : C.infSetList;
2668
+ const W = d ? [{ infSetId: d.infSetId, setId: d.setId, operationInfo: d.operationInfo, raw: d.raw }] : M.infSetList;
2678
2669
  if (W.length === 0)
2679
2670
  throw Ne("node.infSetList is required");
2680
2671
  const _e = await Promise.all(W.map(async (se) => {
2681
- const he = Ar(f, C, se.infSetId), Ae = {
2682
- ...R(C, f),
2672
+ const ve = Ar(d, M, se.infSetId), Ae = {
2673
+ ...j(M, d),
2683
2674
  infSetId: se.infSetId,
2684
2675
  setId: se.setId,
2685
2676
  operationInfo: se.operationInfo
2686
2677
  };
2687
- if (he) {
2688
- const dt = await h(he, {
2678
+ if (ve) {
2679
+ const dt = await I(ve, {
2689
2680
  type: "queryInfoSet",
2690
2681
  requestSource: "inner",
2691
- tagId: f?.requestTagId ?? f?.tagId ?? C.tagId,
2692
- node: C,
2693
- section: f,
2682
+ tagId: d?.requestTagId ?? d?.tagId ?? M.tagId,
2683
+ node: M,
2684
+ section: d,
2694
2685
  params: Ae
2695
2686
  });
2696
- return mr(dt, Ae, C);
2687
+ return mr(dt, Ae, M);
2697
2688
  }
2698
2689
  throw Ne("infoSet.operationInfo.queryInfoSet is required");
2699
2690
  })), me = {
@@ -2701,47 +2692,47 @@ const Gr = (e) => {
2701
2692
  sections: _e.flatMap((se) => se.sections),
2702
2693
  sectionMap: Object.fromEntries(_e.flatMap((se) => se.sections).map((se) => [se.key, se]))
2703
2694
  };
2704
- return F(me, C, K);
2695
+ return B(me, M, K);
2705
2696
  } catch (W) {
2706
- throw r.value = W, N(K ?? C, { loading: !1, error: W }), W;
2697
+ throw r.value = W, R(K ?? M, { loading: !1, error: W }), W;
2707
2698
  } finally {
2708
- n.value = !1, N(K ?? C, { loading: !1 });
2699
+ n.value = !1, R(K ?? M, { loading: !1 });
2709
2700
  }
2710
- }, _ = (p = a.value) => y(p), E = (p = a.value) => {
2711
- if (!p)
2712
- return null;
2713
- if (!Ke(p) && typeof p != "string")
2714
- return b(p);
2715
- const f = T(p);
2716
- return f ? c.value[g.value[f] ?? f] ?? null : null;
2717
- }, B = async (p = l.value) => p ? (await y(p), s.value) : (s.value = null, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, null), q = async (p) => {
2718
- const f = Pr(p);
2701
+ }, C = (f = a.value) => v(f), L = (f = a.value) => {
2719
2702
  if (!f)
2720
- return p.children;
2721
- const C = k(p), K = await h(f, {
2703
+ return null;
2704
+ if (!Ke(f) && typeof f != "string")
2705
+ return y(f);
2706
+ const d = O(f);
2707
+ return d ? c.value[m.value[d] ?? d] ?? null : null;
2708
+ }, E = async (f = l.value) => f ? (await v(f), s.value) : (s.value = null, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, null), q = async (f) => {
2709
+ const d = Pr(f);
2710
+ if (!d)
2711
+ return f.children;
2712
+ const M = S(f), K = await I(d, {
2722
2713
  type: "openTag",
2723
2714
  requestSource: "sidebar",
2724
- tagId: p.tagId,
2725
- node: p,
2726
- params: C
2715
+ tagId: f.tagId,
2716
+ node: f,
2717
+ params: M
2727
2718
  });
2728
2719
  return jt(K).treeNodes;
2729
- }, U = async (p) => {
2730
- if (p.loaded)
2731
- return p.children;
2732
- const f = await q(p);
2733
- return f.length > 0 && (i.value = vn(i.value, p.key, f)), f;
2734
- }, G = async (p) => {
2735
- const f = typeof p == "string" ? v(i.value, p) : p;
2736
- return f ? (l.value = f, a.value = null, V.value = [], await U(f), O(s.value?.raw, f), f) : null;
2720
+ }, U = async (f) => {
2721
+ if (f.loaded)
2722
+ return f.children;
2723
+ const d = await q(f);
2724
+ return d.length > 0 && (i.value = hn(i.value, f.key, d)), d;
2725
+ }, G = async (f) => {
2726
+ const d = typeof f == "string" ? p(i.value, f) : f;
2727
+ return d ? (l.value = d, a.value = null, b.value = [], await U(d), D(s.value?.raw, d), d) : null;
2737
2728
  }, X = async () => {
2738
- const p = e.service.templateTree;
2739
- if (!p)
2729
+ const f = e.service.templateTree;
2730
+ if (!f)
2740
2731
  throw Ne("service.templateTree is required");
2741
2732
  t.value = !0, r.value = null;
2742
2733
  try {
2743
- const f = await p(S()), C = jt(f), K = await Promise.all(
2744
- C.treeNodes.map(async (_e) => {
2734
+ const d = await f(w()), M = jt(d), K = await Promise.all(
2735
+ M.treeNodes.map(async (_e) => {
2745
2736
  const me = await q(_e);
2746
2737
  return {
2747
2738
  ..._e,
@@ -2750,47 +2741,47 @@ const Gr = (e) => {
2750
2741
  };
2751
2742
  })
2752
2743
  );
2753
- i.value = K, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, V.value = [];
2754
- const W = v(K, e.initialActiveNodeKey) ?? v(K);
2744
+ i.value = K, a.value = null, c.value = {}, m.value = {}, _.value = [], $.value = {}, b.value = [];
2745
+ const W = p(K, e.initialActiveNodeKey) ?? p(K);
2755
2746
  return l.value = W, s.value = {
2756
- ...C,
2747
+ ...M,
2757
2748
  treeNodes: K,
2758
2749
  activeNode: W,
2759
2750
  sectionMap: c.value,
2760
2751
  sections: A.value
2761
2752
  }, i.value;
2762
- } catch (f) {
2763
- throw r.value = f, f;
2753
+ } catch (d) {
2754
+ throw r.value = d, d;
2764
2755
  } finally {
2765
2756
  t.value = !1;
2766
2757
  }
2767
2758
  }, P = async () => {
2768
- const p = j();
2769
- await _(a.value ?? l.value);
2770
- const f = A.value.find(
2771
- (C) => ke(C) === p
2759
+ const f = N();
2760
+ await C(a.value ?? l.value);
2761
+ const d = A.value.find(
2762
+ (M) => ke(M) === f
2772
2763
  );
2773
- return f && (a.value = f), O(), s.value;
2774
- }, Z = (p = a.value) => {
2775
- const f = D(p);
2776
- return !!(f && V.value.includes(f));
2777
- }, ae = (p = a.value) => {
2778
- const f = D(p);
2779
- !f || Z(f) || (V.value = [...V.value, f], N(f, { editing: !0 }));
2780
- }, pe = (p = a.value) => {
2781
- const f = D(p);
2782
- f && (V.value = V.value.filter(
2783
- (C) => C !== f
2784
- ), N(f, { editing: !1 }));
2785
- }, de = (p, f, C) => {
2786
- const K = typeof f == "string" ? f : Ve(f);
2787
- u(p, (W) => {
2788
- const me = (typeof f == "string" ? W.fields.find((he) => Ve(he) === K || he.code === K) : f)?.cascadeClearFields ?? [], se = {
2764
+ return d && (a.value = d), D(), s.value;
2765
+ }, Z = (f = a.value) => {
2766
+ const d = F(f);
2767
+ return !!(d && b.value.includes(d));
2768
+ }, ae = (f = a.value) => {
2769
+ const d = F(f);
2770
+ !d || Z(d) || (b.value = [...b.value, d], R(d, { editing: !0 }));
2771
+ }, pe = (f = a.value) => {
2772
+ const d = F(f);
2773
+ d && (b.value = b.value.filter(
2774
+ (M) => M !== d
2775
+ ), R(d, { editing: !1 }));
2776
+ }, de = (f, d, M) => {
2777
+ const K = typeof d == "string" ? d : Ve(d);
2778
+ u(f, (W) => {
2779
+ const me = (typeof d == "string" ? W.fields.find((ve) => Ve(ve) === K || ve.code === K) : d)?.cascadeClearFields ?? [], se = {
2789
2780
  ...W.model,
2790
- [K]: C
2781
+ [K]: M
2791
2782
  };
2792
- return me.forEach((he) => {
2793
- se[he] = "";
2783
+ return me.forEach((ve) => {
2784
+ se[ve] = "";
2794
2785
  }), {
2795
2786
  // 保留 section 其它元数据。
2796
2787
  ...W,
@@ -2799,26 +2790,26 @@ const Gr = (e) => {
2799
2790
  // 表单类型同步更新第一行 rows,方便保存时统一从 rows 构造 payload。
2800
2791
  rows: W.renderType === "form" ? [{ ...W.rows[0], ...se }] : W.rows,
2801
2792
  // 同步 fields.value,保证只读 renderer 立即显示新值。
2802
- fields: W.fields.map((he) => {
2803
- const Ae = Ve(he);
2804
- return Ae === K || he.code === K ? { ...he, value: C } : me.includes(Ae) || me.includes(he.code) ? { ...he, value: "" } : he;
2793
+ fields: W.fields.map((ve) => {
2794
+ const Ae = Ve(ve);
2795
+ return Ae === K || ve.code === K ? { ...ve, value: M } : me.includes(Ae) || me.includes(ve.code) ? { ...ve, value: "" } : ve;
2805
2796
  })
2806
2797
  };
2807
2798
  });
2808
- }, Se = async (p, f, C = {}, K = {}) => {
2809
- const W = b(p);
2799
+ }, Se = async (f, d, M = {}, K = {}) => {
2800
+ const W = y(f);
2810
2801
  if (!W)
2811
2802
  return [];
2812
2803
  const _e = {
2813
- ...C,
2804
+ ...M,
2814
2805
  ...K.searchText !== void 0 ? { searchText: K.searchText } : {}
2815
2806
  }, {
2816
2807
  fieldKey: me,
2817
2808
  currentField: se,
2818
- sourceModel: he,
2809
+ sourceModel: ve,
2819
2810
  sourceRow: Ae,
2820
2811
  missingDependField: dt
2821
- } = Br(W, f, _e), ft = se?.interface;
2812
+ } = Br(W, d, _e), ft = se?.interface;
2822
2813
  if (!se || !ft)
2823
2814
  return se?.options ?? [];
2824
2815
  if (Er(se))
@@ -2830,7 +2821,7 @@ const Gr = (e) => {
2830
2821
  (Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: [] } : Le
2831
2822
  )
2832
2823
  })), [];
2833
- const xn = await M(
2824
+ const zn = await T(
2834
2825
  {
2835
2826
  ...ft
2836
2827
  },
@@ -2838,44 +2829,44 @@ const Gr = (e) => {
2838
2829
  type: "fieldOptions",
2839
2830
  requestSource: "inner",
2840
2831
  tagId: W.requestTagId ?? W.tagId,
2841
- node: x(W),
2832
+ node: z(W),
2842
2833
  section: W,
2843
2834
  field: se,
2844
2835
  params: Te(ft.params),
2845
2836
  // searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
2846
- model: he,
2837
+ model: ve,
2847
2838
  row: Ae,
2848
2839
  searchText: K.searchText
2849
2840
  }
2850
- ), kt = Vr(xn);
2841
+ ), kt = Vr(zn);
2851
2842
  return u(W, (Ge) => ({
2852
2843
  ...Ge,
2853
2844
  fields: Ge.fields.map(
2854
2845
  (Le) => Ve(Le) === me || Le.code === me ? { ...Le, options: kt } : Le
2855
2846
  )
2856
2847
  })), kt;
2857
- }, Oe = (p, f) => {
2858
- if (Array.isArray(f)) {
2859
- Ie(p, f);
2848
+ }, Oe = (f, d) => {
2849
+ if (Array.isArray(d)) {
2850
+ Ie(f, d);
2860
2851
  return;
2861
2852
  }
2862
- u(p, (C) => ({
2863
- ...C,
2853
+ u(f, (M) => ({
2854
+ ...M,
2864
2855
  // 替换当前 model。
2865
- model: f,
2856
+ model: d,
2866
2857
  // 表单类型同步合并到第一行 rows。
2867
- rows: C.renderType === "form" ? [{ ...C.rows[0], ...f }] : C.rows,
2858
+ rows: M.renderType === "form" ? [{ ...M.rows[0], ...d }] : M.rows,
2868
2859
  // fields.value 也同步成 model 中的值。
2869
- fields: C.fields.map((K) => ({
2860
+ fields: M.fields.map((K) => ({
2870
2861
  ...K,
2871
- value: f[Ve(K)]
2862
+ value: d[Ve(K)]
2872
2863
  }))
2873
2864
  }));
2874
- }, Ie = (p, f) => {
2875
- u(p, (C) => ({
2876
- ...C,
2877
- rows: f,
2878
- data: f
2865
+ }, Ie = (f, d) => {
2866
+ u(f, (M) => ({
2867
+ ...M,
2868
+ rows: d,
2869
+ data: d
2879
2870
  }));
2880
2871
  }, qe = {
2881
2872
  // 加载模板树。
@@ -2883,17 +2874,17 @@ const Gr = (e) => {
2883
2874
  // 选中树节点。
2884
2875
  selectNode: G,
2885
2876
  // 加载当前节点详情。
2886
- loadDetail: B,
2877
+ loadDetail: E,
2887
2878
  // 刷新当前详情。
2888
2879
  reloadActiveSection: P,
2889
2880
  // 加载指定节点或 section。
2890
- loadSection: y,
2881
+ loadSection: v,
2891
2882
  // 重新加载指定节点或 section。
2892
- reloadSection: _,
2883
+ reloadSection: C,
2893
2884
  // 获取指定节点或 section 的缓存数据。
2894
- getSection: E,
2885
+ getSection: L,
2895
2886
  // 获取指定节点或 section 的状态。
2896
- getSectionStatus: z,
2887
+ getSectionStatus: x,
2897
2888
  // 开启编辑。
2898
2889
  startEdit: ae,
2899
2890
  // 取消编辑。
@@ -2907,32 +2898,32 @@ const Gr = (e) => {
2907
2898
  // 更新表格行。
2908
2899
  updateTableRows: Ie,
2909
2900
  // 保存单行到本地缓存。
2910
- saveRow: (p, f = {}, C = -1) => {
2911
- const W = [...b(p)?.rows ?? []];
2912
- W.splice(C >= 0 ? C : W.length, C >= 0 ? 1 : 0, f), Ie(p, W);
2901
+ saveRow: (f, d = {}, M = -1) => {
2902
+ const W = [...y(f)?.rows ?? []];
2903
+ W.splice(M >= 0 ? M : W.length, M >= 0 ? 1 : 0, d), Ie(f, W);
2913
2904
  },
2914
2905
  // 删除单行本地缓存。
2915
- deleteRow: (p, f) => {
2916
- const C = b(p), K = typeof f == "string" ? Number(f) : f, W = (C?.rows ?? []).filter(
2906
+ deleteRow: (f, d) => {
2907
+ const M = y(f), K = typeof d == "string" ? Number(d) : d, W = (M?.rows ?? []).filter(
2917
2908
  (_e, me) => me !== K
2918
2909
  );
2919
- Ie(p, W);
2910
+ Ie(f, W);
2920
2911
  },
2921
2912
  // 调用接口保存 section。
2922
- saveSection: async (p = a.value) => {
2923
- const f = j(p), C = b(p);
2924
- if (!C)
2913
+ saveSection: async (f = a.value) => {
2914
+ const d = N(f), M = y(f);
2915
+ if (!M)
2925
2916
  return null;
2926
- const K = jr(C);
2917
+ const K = jr(M);
2927
2918
  if (!K)
2928
2919
  throw Ne("section.operationInfo.editInfoSet is required");
2929
- o.value = !0, r.value = null, f && f !== ke(C) && N(f, { saving: !0, error: null }), N(C, { saving: !0, error: null });
2920
+ o.value = !0, r.value = null, d && d !== ke(M) && R(d, { saving: !0, error: null }), R(M, { saving: !0, error: null });
2930
2921
  try {
2931
2922
  const {
2932
2923
  tagId: W,
2933
2924
  ..._e
2934
- } = R(l.value, C), me = vr(C, _e), se = xr(
2935
- C,
2925
+ } = j(l.value, M), me = hr(M, _e), se = zr(
2926
+ M,
2936
2927
  me.infSetValues ?? [],
2937
2928
  {
2938
2929
  emptyMessage: e.renderConfig?.requiredInfoSetEmptyMessage
@@ -2940,24 +2931,24 @@ const Gr = (e) => {
2940
2931
  );
2941
2932
  if (se)
2942
2933
  throw new Error(se);
2943
- const he = await h(
2934
+ const ve = await I(
2944
2935
  // 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
2945
2936
  K,
2946
2937
  {
2947
2938
  type: "editInfoSet",
2948
2939
  requestSource: "inner",
2949
- tagId: C.requestTagId ?? C.tagId,
2940
+ tagId: M.requestTagId ?? M.tagId,
2950
2941
  node: l.value,
2951
- section: C,
2942
+ section: M,
2952
2943
  params: me,
2953
- model: C.model
2944
+ model: M.model
2954
2945
  }
2955
2946
  );
2956
- return pe(C), await _(C), he;
2947
+ return pe(M), await C(M), ve;
2957
2948
  } catch (W) {
2958
- throw r.value = W, f && f !== ke(C) && N(f, { saving: !1, error: W }), N(C, { saving: !1, error: W }), W;
2949
+ throw r.value = W, d && d !== ke(M) && R(d, { saving: !1, error: W }), R(M, { saving: !1, error: W }), W;
2959
2950
  } finally {
2960
- o.value = !1, f && f !== ke(C) && N(f, { saving: !1 }), N(C, { saving: !1 });
2951
+ o.value = !1, d && d !== ke(M) && R(d, { saving: !1 }), R(M, { saving: !1 });
2961
2952
  }
2962
2953
  },
2963
2954
  // 判断编辑态。
@@ -2981,13 +2972,13 @@ const Gr = (e) => {
2981
2972
  // 当前 section 缓存。
2982
2973
  sectionMap: c,
2983
2974
  // 当前 section 状态缓存。
2984
- sectionStatusMap: I,
2975
+ sectionStatusMap: $,
2985
2976
  // 当前激活节点。
2986
2977
  activeNode: l,
2987
2978
  // 当前激活 section。
2988
2979
  activeSection: a,
2989
2980
  // 给页面消费的状态快照。
2990
- state: d,
2981
+ state: g,
2991
2982
  // 给页面消费的操作集合。
2992
2983
  actions: qe
2993
2984
  };
@@ -3005,7 +2996,7 @@ const Gr = (e) => {
3005
2996
  },
3006
2997
  setup(e) {
3007
2998
  const t = e, n = Gr(t), { viewModel: o, nodes: r, sections: i, activeNode: s, activeSection: l, state: a, actions: c } = n;
3008
- return (g, w) => ee(g.$slots, "default", Me(Fe({
2999
+ return (m, _) => ee(m.$slots, "default", Me(Fe({
3009
3000
  viewModel: re(o),
3010
3001
  nodes: re(r),
3011
3002
  sections: re(i),
@@ -3051,110 +3042,110 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
3051
3042
  },
3052
3043
  emits: ["update:modelValue", "change", "loadOptions"],
3053
3044
  setup(e, { emit: t }) {
3054
- const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = ve(null), s = L(() => Qe(n.field)), l = L(() => s.value === "select_remote"), a = L(() => n.disabled || n.field.disabled || n.field.readonly), c = L(() => !!n.field.props?.multiple), g = L(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), w = L(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), I = L(() => {
3045
+ const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = he(null), s = V(() => Qe(n.field)), l = V(() => s.value === "select_remote"), a = V(() => n.disabled || n.field.disabled || n.field.readonly), c = V(() => !!n.field.props?.multiple), m = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), _ = V(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), $ = V(() => {
3055
3046
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
3056
- const z = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3057
- return Number.isFinite(z) ? z : void 0;
3058
- }), V = L(() => nr(n.field, n.modelValue)), A = L(() => {
3059
- const z = n.field.props?.activeValue ?? n.field.props?.["active-value"], N = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3060
- return z !== void 0 || N !== void 0 ? n.modelValue ?? N ?? !1 : fn(n.modelValue);
3061
- }), d = L(() => s.value === "code" ? 5 : 1), S = L(() => s.value === "file" && !Ce(n.modelValue)), k = L(() => dn(n.field, n.modelValue, "请选择文件")), R = L(() => pn(n.field, n.modelValue, "请选择文件")), h = L(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
3062
- let m;
3063
- function M(z) {
3064
- o("update:modelValue", j(z));
3047
+ const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3048
+ return Number.isFinite(x) ? x : void 0;
3049
+ }), b = V(() => nr(n.field, n.modelValue)), A = V(() => {
3050
+ const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], R = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3051
+ return x !== void 0 || R !== void 0 ? n.modelValue ?? R ?? !1 : fn(n.modelValue);
3052
+ }), g = V(() => s.value === "code" ? 5 : 1), w = V(() => s.value === "file" && !Ce(n.modelValue)), S = V(() => dn(n.field, n.modelValue, "请选择文件")), j = V(() => pn(n.field, n.modelValue, "请选择文件")), I = V(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
3053
+ let h;
3054
+ function T(x) {
3055
+ o("update:modelValue", N(x));
3065
3056
  }
3066
- function v(z) {
3067
- o("change", j(z));
3057
+ function p(x) {
3058
+ o("change", N(x));
3068
3059
  }
3069
- function j(z) {
3070
- return s.value === "select" || s.value === "select_remote" ? or(n.field, z) : z;
3060
+ function N(x) {
3061
+ return s.value === "select" || s.value === "select_remote" ? or(n.field, x) : x;
3071
3062
  }
3072
- function b(z) {
3073
- z && o("loadOptions", l.value ? { searchText: "" } : void 0);
3063
+ function y(x) {
3064
+ x && o("loadOptions", l.value ? { searchText: "" } : void 0);
3074
3065
  }
3075
- function D(z) {
3076
- l.value && (m && clearTimeout(m), m = setTimeout(() => {
3077
- o("loadOptions", { searchText: z });
3066
+ function F(x) {
3067
+ l.value && (h && clearTimeout(h), h = setTimeout(() => {
3068
+ o("loadOptions", { searchText: x });
3078
3069
  }, 300));
3079
3070
  }
3080
- function T() {
3071
+ function O() {
3081
3072
  a.value || i.value?.click();
3082
3073
  }
3083
- function x(z) {
3084
- Fn(z);
3074
+ function z(x) {
3075
+ Fn(x);
3085
3076
  }
3086
3077
  Un(() => {
3087
- m && clearTimeout(m);
3078
+ h && clearTimeout(h);
3088
3079
  });
3089
- function ne(z) {
3090
- const N = z.target, O = Array.from(N.files ?? []), F = n.field.props?.multiple ? O : O[0] ?? null;
3091
- M(F), v(F);
3080
+ function ne(x) {
3081
+ const R = x.target, D = Array.from(R.files ?? []), B = n.field.props?.multiple ? D : D[0] ?? null;
3082
+ T(B), p(B);
3092
3083
  }
3093
- return (z, N) => {
3094
- const O = Wt, F = Jt, u = Ut, y = Xn, _ = eo, E = Ht;
3095
- return s.value === "select" || s.value === "select_remote" ? ($(), H(F, oe({
3084
+ return (x, R) => {
3085
+ const D = Wt, B = Jt, u = Ut, v = Xn, C = eo, L = Ht;
3086
+ return s.value === "select" || s.value === "select_remote" ? (k(), H(B, oe({
3096
3087
  key: 0,
3097
3088
  class: "global-info-field-control"
3098
- }, z.field.props, {
3099
- "model-value": V.value,
3100
- placeholder: h.value,
3089
+ }, x.field.props, {
3090
+ "model-value": b.value,
3091
+ placeholder: I.value,
3101
3092
  disabled: a.value,
3102
3093
  "collapse-tags": c.value,
3103
3094
  "collapse-tags-tooltip": c.value,
3104
3095
  "max-collapse-tags": 1,
3105
- filterable: l.value || !!z.field.props?.filterable,
3106
- remote: l.value || !!z.field.props?.remote,
3107
- "remote-method": l.value ? D : z.field.props?.remoteMethod,
3096
+ filterable: l.value || !!x.field.props?.filterable,
3097
+ remote: l.value || !!x.field.props?.remote,
3098
+ "remote-method": l.value ? F : x.field.props?.remoteMethod,
3108
3099
  clearable: "",
3109
- onVisibleChange: b,
3110
- "onUpdate:modelValue": M,
3111
- onChange: v
3100
+ onVisibleChange: y,
3101
+ "onUpdate:modelValue": T,
3102
+ onChange: p
3112
3103
  }), {
3113
3104
  default: J(() => [
3114
- ($(!0), Y(be, null, ge(z.field.options || [], (B) => ($(), H(O, {
3115
- key: String(B.value),
3116
- label: B.label,
3117
- value: B.value
3105
+ (k(!0), Y(be, null, ge(x.field.options || [], (E) => (k(), H(D, {
3106
+ key: String(E.value),
3107
+ label: E.label,
3108
+ value: E.value
3118
3109
  }, null, 8, ["label", "value"]))), 128))
3119
3110
  ]),
3120
3111
  _: 1
3121
- }, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? ($(), H(u, oe({
3112
+ }, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (k(), H(u, oe({
3122
3113
  key: 1,
3123
3114
  class: "global-info-field-control"
3124
- }, z.field.props, {
3125
- "model-value": z.modelValue,
3126
- placeholder: h.value,
3115
+ }, x.field.props, {
3116
+ "model-value": x.modelValue,
3117
+ placeholder: I.value,
3127
3118
  disabled: a.value,
3128
3119
  type: "date",
3129
3120
  "value-format": "YYYY-MM-DD",
3130
- "onUpdate:modelValue": M,
3131
- onChange: v
3132
- }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? ($(), H(y, oe({
3121
+ "onUpdate:modelValue": T,
3122
+ onChange: p
3123
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (k(), H(v, oe({
3133
3124
  key: 2,
3134
3125
  class: "global-info-field-control"
3135
- }, z.field.props, {
3136
- "model-value": I.value,
3137
- placeholder: h.value,
3126
+ }, x.field.props, {
3127
+ "model-value": $.value,
3128
+ placeholder: I.value,
3138
3129
  disabled: a.value,
3139
3130
  "controls-position": "right",
3140
- "onUpdate:modelValue": M,
3141
- onChange: v
3142
- }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? ($(), H(_, oe({
3131
+ "onUpdate:modelValue": T,
3132
+ onChange: p
3133
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (k(), H(C, oe({
3143
3134
  key: 3,
3144
3135
  class: "global-info-field-control global-info-field-control--switch"
3145
- }, z.field.props, {
3136
+ }, x.field.props, {
3146
3137
  "model-value": A.value,
3147
3138
  disabled: a.value,
3148
- "onUpdate:modelValue": M,
3149
- onChange: v
3150
- }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? ($(), Y("div", {
3139
+ "onUpdate:modelValue": T,
3140
+ onChange: p
3141
+ }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (k(), Y("div", {
3151
3142
  key: 4,
3152
3143
  class: He(["global-info-field-control global-info-field-control--file", {
3153
3144
  "is-disabled": a.value,
3154
- "is-empty": !S.value,
3155
- "is-filled": S.value
3145
+ "is-empty": !w.value,
3146
+ "is-filled": w.value
3156
3147
  }]),
3157
- onClick: T
3148
+ onClick: O
3158
3149
  }, [
3159
3150
  te("input", {
3160
3151
  ref_key: "fileInputRef",
@@ -3162,44 +3153,44 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
3162
3153
  class: "global-info-field-control__file-input",
3163
3154
  type: "file",
3164
3155
  disabled: a.value,
3165
- accept: String(z.field.props?.accept ?? ""),
3166
- multiple: !!z.field.props?.multiple,
3156
+ accept: String(x.field.props?.accept ?? ""),
3157
+ multiple: !!x.field.props?.multiple,
3167
3158
  onChange: ne
3168
3159
  }, null, 40, Kr),
3169
- R.value.length ? ($(), Y("span", Yr, [
3170
- ($(!0), Y(be, null, ge(R.value, (B, q) => ($(), Y(be, {
3171
- key: B.key
3160
+ j.value.length ? (k(), Y("span", Yr, [
3161
+ (k(!0), Y(be, null, ge(j.value, (E, q) => (k(), Y(be, {
3162
+ key: E.key
3172
3163
  }, [
3173
- B.action ? ($(), Y("button", {
3164
+ E.action ? (k(), Y("button", {
3174
3165
  key: 0,
3175
3166
  class: "global-info-field-control__file-preview",
3176
3167
  type: "button",
3177
- onClick: Gt((U) => x(B), ["stop", "prevent"])
3178
- }, fe(B.text), 9, Ur)) : ($(), Y("span", Hr, fe(B.text), 1)),
3179
- q < R.value.length - 1 ? ($(), Y("span", Jr, "、")) : ue("", !0)
3168
+ onClick: Gt((U) => z(E), ["stop", "prevent"])
3169
+ }, fe(E.text), 9, Ur)) : (k(), Y("span", Hr, fe(E.text), 1)),
3170
+ q < j.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
3180
3171
  ], 64))), 128))
3181
- ])) : S.value ? ($(), Y("span", Wr, fe(k.value), 1)) : ($(), Y("span", Zr, "上 传"))
3182
- ], 2)) : s.value === "empty" ? ($(), H(E, {
3172
+ ])) : w.value ? (k(), Y("span", Wr, fe(S.value), 1)) : (k(), Y("span", Zr, "上 传"))
3173
+ ], 2)) : s.value === "empty" ? (k(), H(L, {
3183
3174
  key: 5,
3184
3175
  class: "global-info-field-control",
3185
3176
  "model-value": "",
3186
3177
  disabled: "",
3187
3178
  placeholder: "-"
3188
- })) : ($(), H(E, oe({
3179
+ })) : (k(), H(L, oe({
3189
3180
  key: 6,
3190
3181
  class: ["global-info-field-control", {
3191
3182
  "global-info-field-control--textarea": r.includes(s.value),
3192
3183
  "global-info-field-control--code": s.value === "code"
3193
3184
  }]
3194
- }, z.field.props, {
3195
- "model-value": g.value,
3196
- placeholder: h.value,
3185
+ }, x.field.props, {
3186
+ "model-value": m.value,
3187
+ placeholder: I.value,
3197
3188
  disabled: a.value,
3198
3189
  type: r.includes(s.value) ? "textarea" : "text",
3199
- rows: r.includes(s.value) ? d.value : void 0,
3200
- resize: w.value,
3201
- "onUpdate:modelValue": M,
3202
- onChange: v
3190
+ rows: r.includes(s.value) ? g.value : void 0,
3191
+ resize: _.value,
3192
+ "onUpdate:modelValue": T,
3193
+ onChange: p
3203
3194
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3204
3195
  };
3205
3196
  }
@@ -3218,27 +3209,27 @@ const Kr = ["disabled", "accept", "multiple"], Yr = {
3218
3209
  emptyText: { default: "-" }
3219
3210
  },
3220
3211
  setup(e) {
3221
- const t = e, n = L(() => $t(t.field)), o = L(() => n.value === "empty" || Ce(t.value)), r = L(() => dn(t.field, t.value, t.emptyText)), i = L(() => pn(t.field, t.value, t.emptyText));
3212
+ const t = e, n = V(() => $t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => dn(t.field, t.value, t.emptyText)), i = V(() => pn(t.field, t.value, t.emptyText));
3222
3213
  function s(l) {
3223
3214
  Fn(l);
3224
3215
  }
3225
- return (l, a) => n.value === "html" && !o.value ? ($(), Y("span", {
3216
+ return (l, a) => n.value === "html" && !o.value ? (k(), Y("span", {
3226
3217
  key: 0,
3227
3218
  class: "global-info-field-value global-info-field-value--html",
3228
3219
  innerHTML: r.value
3229
- }, null, 8, Xr)) : n.value === "code" && !o.value ? ($(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? ($(), Y("span", ta, [
3230
- ($(!0), Y(be, null, ge(i.value, (c, g) => ($(), Y(be, {
3220
+ }, null, 8, Xr)) : n.value === "code" && !o.value ? (k(), Y("pre", ea, fe(r.value), 1)) : i.value.length ? (k(), Y("span", ta, [
3221
+ (k(!0), Y(be, null, ge(i.value, (c, m) => (k(), Y(be, {
3231
3222
  key: c.key
3232
3223
  }, [
3233
- c.action ? ($(), Y("button", {
3224
+ c.action ? (k(), Y("button", {
3234
3225
  key: 0,
3235
3226
  class: "global-info-field-value__attachment-preview",
3236
3227
  type: "button",
3237
- onClick: (w) => s(c)
3238
- }, fe(c.text), 9, na)) : ($(), Y("span", oa, fe(c.text), 1)),
3239
- g < i.value.length - 1 ? ($(), Y("span", ra, "、")) : ue("", !0)
3228
+ onClick: (_) => s(c)
3229
+ }, fe(c.text), 9, na)) : (k(), Y("span", oa, fe(c.text), 1)),
3230
+ m < i.value.length - 1 ? (k(), Y("span", ra, "、")) : ue("", !0)
3240
3231
  ], 64))), 128))
3241
- ])) : ($(), Y("span", {
3232
+ ])) : (k(), Y("span", {
3242
3233
  key: 3,
3243
3234
  class: He(["global-info-field-value", {
3244
3235
  "global-info-field-value--multi-row": n.value === "multi-row",
@@ -3293,87 +3284,87 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3293
3284
  renderConfig: {}
3294
3285
  },
3295
3286
  setup(e) {
3296
- const t = e, n = Ee(), o = L(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = L(() => lt(
3287
+ const t = e, n = Ee(), o = V(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = V(() => lt(
3297
3288
  t.section.fields,
3298
3289
  t.section,
3299
3290
  t.renderConfig,
3300
3291
  { values: o.value }
3301
3292
  )), s = rn(
3302
- async (m, M, v) => t.actions.loadFieldOptions(t.section, m, M, v),
3303
- (m) => `${t.section.key}:${k(m)}`
3293
+ async (h, T, p) => t.actions.loadFieldOptions(t.section, h, T, p),
3294
+ (h) => `${t.section.key}:${S(h)}`
3304
3295
  );
3305
- function l(m, M) {
3306
- const v = { ...o.value, [m.code]: M };
3307
- (m.cascadeClearFields ?? []).forEach((j) => {
3308
- v[j] = "";
3309
- }), t.onUpdateModel?.(v), t.onUpdateModel || t.actions.updateField(t.section, m, M), a(m, M, v), V(v, m);
3296
+ function l(h, T) {
3297
+ const p = { ...o.value, [h.code]: T };
3298
+ (h.cascadeClearFields ?? []).forEach((N) => {
3299
+ p[N] = "";
3300
+ }), t.onUpdateModel?.(p), t.onUpdateModel || t.actions.updateField(t.section, h, T), a(h, T, p), b(p, h);
3310
3301
  }
3311
- function a(m, M, v) {
3312
- const j = t.renderConfig?.onFieldBusinessChange;
3313
- if (j)
3302
+ function a(h, T, p) {
3303
+ const N = t.renderConfig?.onFieldBusinessChange;
3304
+ if (N)
3314
3305
  try {
3315
- const b = c(m, M), D = {
3316
- field: m,
3317
- value: M,
3306
+ const y = c(h, T), F = {
3307
+ field: h,
3308
+ value: T,
3318
3309
  section: t.section,
3319
- model: v,
3320
- values: v,
3310
+ model: p,
3311
+ values: p,
3321
3312
  node: t.node,
3322
3313
  activeNode: t.node,
3323
- sections: g(),
3324
- sectionValues: w(t.section, v),
3314
+ sections: m(),
3315
+ sectionValues: _(t.section, p),
3325
3316
  actions: t.actions,
3326
- selectedOption: b[0],
3327
- selectedOptions: b
3317
+ selectedOption: y[0],
3318
+ selectedOptions: y
3328
3319
  };
3329
- Promise.resolve(j(D)).catch((T) => {
3330
- console.error("[GlobalInfoFormRenderer] field business change failed", T);
3320
+ Promise.resolve(N(F)).catch((O) => {
3321
+ console.error("[GlobalInfoFormRenderer] field business change failed", O);
3331
3322
  });
3332
- } catch (b) {
3333
- console.error("[GlobalInfoFormRenderer] field business change failed", b);
3323
+ } catch (y) {
3324
+ console.error("[GlobalInfoFormRenderer] field business change failed", y);
3334
3325
  }
3335
3326
  }
3336
- function c(m, M) {
3337
- const v = it(m, M);
3338
- return (m.options ?? []).filter((j) => v.some((b) => j.value === b || String(j.value) === String(b)));
3327
+ function c(h, T) {
3328
+ const p = it(h, T);
3329
+ return (h.options ?? []).filter((N) => p.some((y) => N.value === y || String(N.value) === String(y)));
3339
3330
  }
3340
- function g() {
3331
+ function m() {
3341
3332
  return Object.values(t.state.sectionMap);
3342
3333
  }
3343
- function w(m, M) {
3344
- const j = g().flatMap((b) => {
3345
- const D = b.key === m.key ? M : b.renderType === "table" ? b.rows : b.model;
3346
- return [b.key, b.id, b.setId, b.infSetId, b.code].filter(Boolean).map((T) => [String(T), D]);
3334
+ function _(h, T) {
3335
+ const N = m().flatMap((y) => {
3336
+ const F = y.key === h.key ? T : y.renderType === "table" ? y.rows : y.model;
3337
+ return [y.key, y.id, y.setId, y.infSetId, y.code].filter(Boolean).map((O) => [String(O), F]);
3347
3338
  });
3348
- return Object.fromEntries(j);
3339
+ return Object.fromEntries(N);
3349
3340
  }
3350
- async function I(m, M = {}, v = o.value) {
3351
- const j = v, b = k(m), D = ot(t.section.key, m, j), T = r.get(b);
3352
- if (!Ln(M) && rt(m, T, D)) {
3353
- r.set(b, D);
3341
+ async function $(h, T = {}, p = o.value) {
3342
+ const N = p, y = S(h), F = ot(t.section.key, h, N), O = r.get(y);
3343
+ if (!Ln(T) && rt(h, O, F)) {
3344
+ r.set(y, F);
3354
3345
  return;
3355
3346
  }
3356
3347
  try {
3357
- if (M.searchText !== void 0) {
3358
- await s(m, j, M);
3348
+ if (T.searchText !== void 0) {
3349
+ await s(h, N, T);
3359
3350
  return;
3360
3351
  }
3361
- await t.actions.loadFieldOptions(t.section, m, j, M), r.set(b, D);
3352
+ await t.actions.loadFieldOptions(t.section, h, N, T), r.set(y, F);
3362
3353
  } catch (ne) {
3363
3354
  console.error("[GlobalInfoFormRenderer] load field options failed", ne);
3364
3355
  }
3365
3356
  }
3366
- async function V(m = o.value, M) {
3367
- for (const v of i.value) {
3368
- if (M && !Vn(v, M)) continue;
3369
- const j = m[v.code];
3370
- if (!R(v, j)) continue;
3371
- const b = ot(t.section.key, v, m), D = k(v), T = r.get(D);
3372
- if (rt(v, T, b)) {
3373
- r.set(D, b);
3357
+ async function b(h = o.value, T) {
3358
+ for (const p of i.value) {
3359
+ if (T && !Vn(p, T)) continue;
3360
+ const N = h[p.code];
3361
+ if (!j(p, N)) continue;
3362
+ const y = ot(t.section.key, p, h), F = S(p), O = r.get(F);
3363
+ if (rt(p, O, y)) {
3364
+ r.set(F, y);
3374
3365
  continue;
3375
3366
  }
3376
- T !== b && await I(v, An(v, j), m);
3367
+ O !== y && await $(p, An(p, N), h);
3377
3368
  }
3378
3369
  }
3379
3370
  Be(
@@ -3384,84 +3375,84 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3384
3375
  ), Be(
3385
3376
  () => t.editing,
3386
3377
  () => {
3387
- V();
3378
+ b();
3388
3379
  },
3389
3380
  { immediate: !0 }
3390
3381
  );
3391
- function A(m) {
3392
- const M = o.value[m.code];
3382
+ function A(h) {
3383
+ const T = o.value[h.code];
3393
3384
  return {
3394
- field: m,
3385
+ field: h,
3395
3386
  section: t.section,
3396
3387
  sectionView: t.section,
3397
3388
  node: t.node,
3398
3389
  editing: t.editing,
3399
- modelValue: M,
3400
- value: M,
3390
+ modelValue: T,
3391
+ value: T,
3401
3392
  state: t.state,
3402
3393
  actions: t.actions,
3403
- updateModelValue: (v) => l(m, v)
3394
+ updateModelValue: (p) => l(h, p)
3404
3395
  };
3405
3396
  }
3406
- function d(m) {
3407
- const M = String(m.code || "").trim(), v = M ? `field-${M}` : "";
3408
- if (v && n[v]) return v;
3409
- const j = v.toLowerCase();
3410
- return j !== v && n[j] ? j : "";
3397
+ function g(h) {
3398
+ const T = String(h.code || "").trim(), p = T ? `field-${T}` : "";
3399
+ if (p && n[p]) return p;
3400
+ const N = p.toLowerCase();
3401
+ return N !== p && n[N] ? N : "";
3411
3402
  }
3412
- function S(m) {
3413
- return m.span ? Math.min(Math.max(m.span, 1), 24) : 6;
3403
+ function w(h) {
3404
+ return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
3414
3405
  }
3415
- function k(m) {
3416
- return m.key || m.id || m.code;
3406
+ function S(h) {
3407
+ return h.key || h.id || h.code;
3417
3408
  }
3418
- function R(m, M) {
3419
- return Pn(m, M, t.editing);
3409
+ function j(h, T) {
3410
+ return Pn(h, T, t.editing);
3420
3411
  }
3421
- function h(m) {
3422
- return m.required || m.isRequired;
3412
+ function I(h) {
3413
+ return h.required || h.isRequired;
3423
3414
  }
3424
- return (m, M) => {
3425
- const v = Zt, j = no, b = to, D = Qt;
3426
- return $(), H(D, {
3415
+ return (h, T) => {
3416
+ const p = Zt, N = no, y = to, F = Qt;
3417
+ return k(), H(F, {
3427
3418
  class: "global-info-form-renderer",
3428
3419
  model: o.value,
3429
3420
  "label-position": "top"
3430
3421
  }, {
3431
3422
  default: J(() => [
3432
- we(b, { gutter: 24 }, {
3423
+ we(y, { gutter: 24 }, {
3433
3424
  default: J(() => [
3434
- ($(!0), Y(be, null, ge(i.value, (T) => ($(), H(j, {
3435
- key: k(T),
3436
- span: S(T)
3425
+ (k(!0), Y(be, null, ge(i.value, (O) => (k(), H(N, {
3426
+ key: S(O),
3427
+ span: w(O)
3437
3428
  }, {
3438
3429
  default: J(() => [
3439
- we(v, oe({
3440
- prop: T.code,
3430
+ we(p, oe({
3431
+ prop: O.code,
3441
3432
  ref_for: !0
3442
- }, T.formItemProps), {
3433
+ }, O.formItemProps), {
3443
3434
  label: J(() => [
3444
3435
  te("span", ia, [
3445
- h(T) ? ($(), Y("span", la, "*")) : ue("", !0),
3446
- Ye(" " + fe(T.label), 1)
3436
+ I(O) ? (k(), Y("span", la, "*")) : ue("", !0),
3437
+ Ye(" " + fe(O.label), 1)
3447
3438
  ])
3448
3439
  ]),
3449
3440
  default: J(() => [
3450
- d(T) ? ee(m.$slots, d(T), oe({
3441
+ g(O) ? ee(h.$slots, g(O), oe({
3451
3442
  key: 0,
3452
3443
  ref_for: !0
3453
- }, A(T)), void 0, !0) : m.editing && !T.readonly ? ($(), H(Bn, {
3444
+ }, A(O)), void 0, !0) : h.editing && !O.readonly ? (k(), H(Bn, {
3454
3445
  key: 1,
3455
- field: T,
3456
- "model-value": o.value[T.code],
3457
- section: m.section,
3458
- onLoadOptions: (x) => I(T, x),
3459
- "onUpdate:modelValue": (x) => l(T, x)
3460
- }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : ($(), H(En, {
3446
+ field: O,
3447
+ "model-value": o.value[O.code],
3448
+ section: h.section,
3449
+ onLoadOptions: (z) => $(O, z),
3450
+ "onUpdate:modelValue": (z) => l(O, z)
3451
+ }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
3461
3452
  key: 2,
3462
- field: T,
3463
- value: o.value[T.code],
3464
- section: m.section
3453
+ field: O,
3454
+ value: o.value[O.code],
3455
+ section: h.section
3465
3456
  }, null, 8, ["field", "value", "section"]))
3466
3457
  ]),
3467
3458
  _: 2
@@ -3489,7 +3480,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3489
3480
  setup(e) {
3490
3481
  return (t, n) => {
3491
3482
  const o = oo;
3492
- return $(), H(o, {
3483
+ return k(), H(o, {
3493
3484
  title: t.title,
3494
3485
  "confirm-button-text": t.confirmText,
3495
3486
  "cancel-button-text": t.cancelText,
@@ -3508,7 +3499,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3508
3499
  }), fa = { class: "global-info-table-renderer__table-scroll" }, pa = { class: "global-info-table-renderer__header" }, ma = {
3509
3500
  key: 0,
3510
3501
  class: "global-info-table-renderer__required"
3511
- }, ha = /* @__PURE__ */ ce({
3502
+ }, va = /* @__PURE__ */ ce({
3512
3503
  name: "GlobalInfoTableRenderer",
3513
3504
  __name: "GlobalInfoTableRenderer",
3514
3505
  props: {
@@ -3522,64 +3513,64 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3522
3513
  renderConfig: {}
3523
3514
  },
3524
3515
  setup(e) {
3525
- const t = e, n = Ee(), o = L(() => t.section.fields.some((u) => Et(u))), r = L(() => o.value), i = L(() => t.renderConfig?.sequenceLabel ?? "序号"), s = L(() => t.renderConfig?.sequenceWidth ?? 56), l = L(() => {
3516
+ const t = e, n = Ee(), o = V(() => t.section.fields.some((u) => Et(u))), r = V(() => o.value), i = V(() => t.renderConfig?.sequenceLabel ?? "序号"), s = V(() => t.renderConfig?.sequenceWidth ?? 56), l = V(() => {
3526
3517
  const u = t.renderConfig?.sequenceStart;
3527
3518
  return typeof u == "number" && Number.isFinite(u) ? u : 1;
3528
- }), a = L(() => {
3519
+ }), a = V(() => {
3529
3520
  const u = lt(
3530
3521
  t.section.fields,
3531
3522
  t.section,
3532
3523
  t.renderConfig,
3533
3524
  { rows: t.section.rows, values: t.section.model }
3534
3525
  );
3535
- return r.value ? u.filter((y) => !ne(y)) : u;
3536
- }), c = /* @__PURE__ */ new Map(), g = rn(
3537
- async (u, y, _) => t.actions.loadFieldOptions(t.section, u, y, _),
3538
- (u, y) => `${t.section.key}:${O(y)}:${T(u)}`
3526
+ return r.value ? u.filter((v) => !ne(v)) : u;
3527
+ }), c = /* @__PURE__ */ new Map(), m = rn(
3528
+ async (u, v, C) => t.actions.loadFieldOptions(t.section, u, v, C),
3529
+ (u, v) => `${t.section.key}:${D(v)}:${O(u)}`
3539
3530
  );
3540
- function w(u) {
3531
+ function _(u) {
3541
3532
  t.actions.deleteRow(t.section, u);
3542
3533
  }
3543
- function I(u, y) {
3544
- const _ = t.renderConfig?.rowDeleteVisibleRule;
3545
- return t.showDelete && (typeof _ == "function" ? _({
3534
+ function $(u, v) {
3535
+ const C = t.renderConfig?.rowDeleteVisibleRule;
3536
+ return t.showDelete && (typeof C == "function" ? C({
3546
3537
  section: t.section,
3547
3538
  row: u,
3548
- rowIndex: y,
3539
+ rowIndex: v,
3549
3540
  node: t.node,
3550
3541
  state: t.state,
3551
3542
  actions: t.actions
3552
3543
  }) : u.allowDelete !== !1);
3553
3544
  }
3554
- function V(u, y, _, E) {
3555
- const B = t.section.rows.slice(), q = _.cascadeClearFields ?? [], U = {
3545
+ function b(u, v, C, L) {
3546
+ const E = t.section.rows.slice(), q = C.cascadeClearFields ?? [], U = {
3556
3547
  ...u,
3557
- __rowKey: O(u),
3558
- [_.code]: E
3548
+ __rowKey: D(u),
3549
+ [C.code]: L
3559
3550
  };
3560
3551
  q.forEach((G) => {
3561
3552
  U[G] = "";
3562
- }), B[y] = {
3553
+ }), E[v] = {
3563
3554
  ...U
3564
- }, t.actions.updateTableRows(t.section, B), A(_, E, U, y, B), h(_, U);
3555
+ }, t.actions.updateTableRows(t.section, E), A(C, L, U, v, E), I(C, U);
3565
3556
  }
3566
- function A(u, y, _, E, B) {
3557
+ function A(u, v, C, L, E) {
3567
3558
  const q = t.renderConfig?.onFieldBusinessChange;
3568
3559
  if (q)
3569
3560
  try {
3570
- const U = d(u, y), G = { ...t.section.model, ..._ }, X = {
3561
+ const U = g(u, v), G = { ...t.section.model, ...C }, X = {
3571
3562
  field: u,
3572
- value: y,
3563
+ value: v,
3573
3564
  section: t.section,
3574
3565
  model: G,
3575
3566
  values: G,
3576
- row: _,
3577
- rowIndex: E,
3578
- rows: B,
3567
+ row: C,
3568
+ rowIndex: L,
3569
+ rows: E,
3579
3570
  node: t.node,
3580
3571
  activeNode: t.node,
3581
- sections: S(),
3582
- sectionValues: k(t.section, B),
3572
+ sections: w(),
3573
+ sectionValues: S(t.section, E),
3583
3574
  actions: t.actions,
3584
3575
  selectedOption: U[0],
3585
3576
  selectedOptions: U
@@ -3591,110 +3582,110 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3591
3582
  console.error("[GlobalInfoTableRenderer] field business change failed", U);
3592
3583
  }
3593
3584
  }
3594
- function d(u, y) {
3595
- const _ = it(u, y);
3596
- return (u.options ?? []).filter((E) => _.some((B) => E.value === B || String(E.value) === String(B)));
3585
+ function g(u, v) {
3586
+ const C = it(u, v);
3587
+ return (u.options ?? []).filter((L) => C.some((E) => L.value === E || String(L.value) === String(E)));
3597
3588
  }
3598
- function S() {
3589
+ function w() {
3599
3590
  return Object.values(t.state.sectionMap);
3600
3591
  }
3601
- function k(u, y) {
3602
- const E = S().flatMap((B) => {
3603
- const q = B.key === u.key ? y : B.renderType === "table" ? B.rows : B.model;
3604
- return [B.key, B.id, B.setId, B.infSetId, B.code].filter(Boolean).map((U) => [String(U), q]);
3592
+ function S(u, v) {
3593
+ const L = w().flatMap((E) => {
3594
+ const q = E.key === u.key ? v : E.renderType === "table" ? E.rows : E.model;
3595
+ return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), q]);
3605
3596
  });
3606
- return Object.fromEntries(E);
3597
+ return Object.fromEntries(L);
3607
3598
  }
3608
- async function R(u, y, _ = {}, E = y) {
3609
- const B = O(E), q = `${B}:${T(u)}`, U = ot(t.section.key, u, E, B), G = c.get(q);
3610
- if (!Ln(_) && rt(u, G, U)) {
3599
+ async function j(u, v, C = {}, L = v) {
3600
+ const E = D(L), q = `${E}:${O(u)}`, U = ot(t.section.key, u, L, E), G = c.get(q);
3601
+ if (!Ln(C) && rt(u, G, U)) {
3611
3602
  c.set(q, U);
3612
3603
  return;
3613
3604
  }
3614
3605
  try {
3615
- if (_.searchText !== void 0) {
3616
- await g(u, E, _);
3606
+ if (C.searchText !== void 0) {
3607
+ await m(u, L, C);
3617
3608
  return;
3618
3609
  }
3619
- await t.actions.loadFieldOptions(t.section, u, E, _), c.set(q, U);
3610
+ await t.actions.loadFieldOptions(t.section, u, L, C), c.set(q, U);
3620
3611
  } catch (P) {
3621
3612
  console.error("[GlobalInfoTableRenderer] load field options failed", P);
3622
3613
  }
3623
3614
  }
3624
- async function h(u, y) {
3625
- const _ = y ? [y] : t.section.rows;
3626
- for (const E of _) {
3627
- const B = O(E);
3615
+ async function I(u, v) {
3616
+ const C = v ? [v] : t.section.rows;
3617
+ for (const L of C) {
3618
+ const E = D(L);
3628
3619
  for (const q of a.value) {
3629
3620
  if (u && !Vn(q, u)) continue;
3630
- const U = E[q.code];
3631
- if (!j(q, U)) continue;
3632
- const G = ot(t.section.key, q, E, B), X = `${B}:${T(q)}`, P = c.get(X);
3621
+ const U = L[q.code];
3622
+ if (!N(q, U)) continue;
3623
+ const G = ot(t.section.key, q, L, E), X = `${E}:${O(q)}`, P = c.get(X);
3633
3624
  if (rt(q, P, G)) {
3634
3625
  c.set(X, G);
3635
3626
  continue;
3636
3627
  }
3637
- P !== G && await R(q, E, An(q, U));
3628
+ P !== G && await j(q, L, An(q, U));
3638
3629
  }
3639
3630
  }
3640
3631
  }
3641
- function m(u, y, _) {
3642
- const E = y[u.code];
3632
+ function h(u, v, C) {
3633
+ const L = v[u.code];
3643
3634
  return {
3644
3635
  field: u,
3645
3636
  section: t.section,
3646
3637
  sectionView: t.section,
3647
3638
  node: t.node,
3648
- row: y,
3649
- rowIndex: _,
3639
+ row: v,
3640
+ rowIndex: C,
3650
3641
  editing: t.editing,
3651
- modelValue: E,
3652
- value: E,
3642
+ modelValue: L,
3643
+ value: L,
3653
3644
  state: t.state,
3654
3645
  actions: t.actions,
3655
- updateModelValue: (B) => V(y, _, u, B)
3646
+ updateModelValue: (E) => b(v, C, u, E)
3656
3647
  };
3657
3648
  }
3658
- function M(u) {
3659
- const y = String(u.code || "").trim(), _ = y ? `field-${y}` : "";
3660
- if (_ && n[_]) return _;
3661
- const E = _.toLowerCase();
3662
- return E !== _ && n[E] ? E : "";
3649
+ function T(u) {
3650
+ const v = String(u.code || "").trim(), C = v ? `field-${v}` : "";
3651
+ if (C && n[C]) return C;
3652
+ const L = C.toLowerCase();
3653
+ return L !== C && n[L] ? L : "";
3663
3654
  }
3664
- function v(u) {
3655
+ function p(u) {
3665
3656
  return !u.readonly && !u.disabled;
3666
3657
  }
3667
- function j(u, y) {
3668
- return Pn(u, y, t.editing);
3658
+ function N(u, v) {
3659
+ return Pn(u, v, t.editing);
3669
3660
  }
3670
- function b(u) {
3661
+ function y(u) {
3671
3662
  return u.width ?? (Bt(u) ? 56 : void 0);
3672
3663
  }
3673
- function D(u) {
3664
+ function F(u) {
3674
3665
  if (!u.width)
3675
3666
  return u.minWidth ?? (Bt(u) ? 56 : void 0);
3676
3667
  }
3677
- function T(u) {
3668
+ function O(u) {
3678
3669
  return u.key || u.id || u.code;
3679
3670
  }
3680
- function x(u) {
3671
+ function z(u) {
3681
3672
  return l.value + u;
3682
3673
  }
3683
3674
  function ne(u) {
3684
3675
  return Et(u);
3685
3676
  }
3686
- let z = 0;
3687
- const N = /* @__PURE__ */ new WeakMap();
3688
- function O(u) {
3689
- const y = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
3690
- if (y != null && y !== "") return String(y);
3691
- const _ = u, E = N.get(_);
3692
- if (E) return E;
3693
- z += 1;
3694
- const B = `local-${z}`;
3695
- return N.set(_, B), B;
3677
+ let x = 0;
3678
+ const R = /* @__PURE__ */ new WeakMap();
3679
+ function D(u) {
3680
+ const v = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
3681
+ if (v != null && v !== "") return String(v);
3682
+ const C = u, L = R.get(C);
3683
+ if (L) return L;
3684
+ x += 1;
3685
+ const E = `local-${x}`;
3686
+ return R.set(C, E), E;
3696
3687
  }
3697
- function F(u) {
3688
+ function B(u) {
3698
3689
  return u.required || u.isRequired;
3699
3690
  }
3700
3691
  return Be(
@@ -3705,12 +3696,12 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3705
3696
  ), Be(
3706
3697
  () => t.editing,
3707
3698
  () => {
3708
- h();
3699
+ I();
3709
3700
  },
3710
3701
  { immediate: !0 }
3711
- ), (u, y) => {
3712
- const _ = en, E = Hn("Delete"), B = Yt, q = It, U = Xt;
3713
- return $(), Y("div", {
3702
+ ), (u, v) => {
3703
+ const C = en, L = Hn("Delete"), E = Yt, q = It, U = Xt;
3704
+ return k(), Y("div", {
3714
3705
  class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
3715
3706
  }, [
3716
3707
  te("div", fa, [
@@ -3719,43 +3710,43 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3719
3710
  data: u.section.rows,
3720
3711
  fit: !0,
3721
3712
  "table-layout": "auto",
3722
- "row-key": O
3713
+ "row-key": D
3723
3714
  }, {
3724
3715
  default: J(() => [
3725
- r.value ? ($(), H(_, {
3716
+ r.value ? (k(), H(C, {
3726
3717
  key: 0,
3727
3718
  type: "index",
3728
3719
  label: i.value,
3729
3720
  width: s.value,
3730
- index: x
3721
+ index: z
3731
3722
  }, null, 8, ["label", "width"])) : ue("", !0),
3732
- ($(!0), Y(be, null, ge(a.value, (G) => ($(), H(_, {
3733
- key: T(G),
3723
+ (k(!0), Y(be, null, ge(a.value, (G) => (k(), H(C, {
3724
+ key: O(G),
3734
3725
  prop: G.code,
3735
3726
  label: G.label,
3736
- width: b(G),
3737
- "min-width": D(G)
3727
+ width: y(G),
3728
+ "min-width": F(G)
3738
3729
  }, {
3739
3730
  header: J(() => [
3740
3731
  te("span", pa, [
3741
- F(G) ? ($(), Y("span", ma, "*")) : ue("", !0),
3732
+ B(G) ? (k(), Y("span", ma, "*")) : ue("", !0),
3742
3733
  te("span", null, fe(G.label), 1)
3743
3734
  ])
3744
3735
  ]),
3745
3736
  default: J(({ row: X, $index: P }) => [
3746
- M(G) ? ee(u.$slots, M(G), oe({
3737
+ T(G) ? ee(u.$slots, T(G), oe({
3747
3738
  key: 0,
3748
3739
  ref_for: !0
3749
- }, m(G, X, P)), void 0, !0) : u.editing && v(G) ? ($(), H(Bn, {
3740
+ }, h(G, X, P)), void 0, !0) : u.editing && p(G) ? (k(), H(Bn, {
3750
3741
  key: 1,
3751
3742
  field: G,
3752
3743
  "model-value": X[G.code],
3753
3744
  section: u.section,
3754
3745
  row: X,
3755
3746
  "row-index": P,
3756
- onLoadOptions: (Z) => R(G, X, Z),
3757
- "onUpdate:modelValue": (Z) => V(X, P, G, Z)
3758
- }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : ($(), H(En, {
3747
+ onLoadOptions: (Z) => j(G, X, Z),
3748
+ "onUpdate:modelValue": (Z) => b(X, P, G, Z)
3749
+ }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(En, {
3759
3750
  key: 2,
3760
3751
  field: G,
3761
3752
  value: X[G.code],
@@ -3766,16 +3757,16 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3766
3757
  ]),
3767
3758
  _: 2
3768
3759
  }, 1032, ["prop", "label", "width", "min-width"]))), 128)),
3769
- u.editing ? ($(), H(_, {
3760
+ u.editing ? (k(), H(C, {
3770
3761
  key: 1,
3771
3762
  label: "操作",
3772
3763
  width: "104",
3773
3764
  fixed: "right"
3774
3765
  }, {
3775
3766
  default: J(({ row: G, $index: X }) => [
3776
- I(G, X) ? ($(), H(da, {
3767
+ $(G, X) ? (k(), H(da, {
3777
3768
  key: 0,
3778
- onConfirm: (P) => w(X)
3769
+ onConfirm: (P) => _(X)
3779
3770
  }, {
3780
3771
  default: J(() => [
3781
3772
  we(q, {
@@ -3784,13 +3775,13 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3784
3775
  type: "danger"
3785
3776
  }, {
3786
3777
  default: J(() => [
3787
- we(B, { class: "global-info-table-renderer__delete-icon" }, {
3778
+ we(E, { class: "global-info-table-renderer__delete-icon" }, {
3788
3779
  default: J(() => [
3789
- we(E)
3780
+ we(L)
3790
3781
  ]),
3791
3782
  _: 1
3792
3783
  }),
3793
- y[0] || (y[0] = Ye(" 删除 "))
3784
+ v[0] || (v[0] = Ye(" 删除 "))
3794
3785
  ]),
3795
3786
  _: 1
3796
3787
  })
@@ -3807,7 +3798,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3807
3798
  ], 2);
3808
3799
  };
3809
3800
  }
3810
- }), va = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-bfc7b8fe"]]), ga = /* @__PURE__ */ ce({
3801
+ }), ha = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-bfc7b8fe"]]), ga = /* @__PURE__ */ ce({
3811
3802
  name: "GlobalInfoAutoRenderer",
3812
3803
  __name: "GlobalInfoAutoRenderer",
3813
3804
  props: {
@@ -3819,7 +3810,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3819
3810
  renderConfig: {}
3820
3811
  },
3821
3812
  setup(e) {
3822
- return (t, n) => t.section.renderType === "table" ? ($(), H(va, {
3813
+ return (t, n) => t.section.renderType === "table" ? (k(), H(ha, {
3823
3814
  key: 0,
3824
3815
  section: t.section,
3825
3816
  node: t.node,
@@ -3827,7 +3818,7 @@ const ia = { class: "global-info-form-renderer__label" }, la = {
3827
3818
  state: t.state,
3828
3819
  actions: t.actions,
3829
3820
  "render-config": t.renderConfig
3830
- }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : ($(), H(ua, {
3821
+ }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(ua, {
3831
3822
  key: 1,
3832
3823
  section: t.section,
3833
3824
  node: t.node,
@@ -3866,7 +3857,7 @@ const ya = /* @__PURE__ */ ce({
3866
3857
  renderConfig: {}
3867
3858
  },
3868
3859
  setup(e) {
3869
- const t = e, n = Ee(), o = L(() => lt(
3860
+ const t = e, n = Ee(), o = V(() => lt(
3870
3861
  t.section.fields,
3871
3862
  t.section,
3872
3863
  t.renderConfig,
@@ -3874,7 +3865,7 @@ const ya = /* @__PURE__ */ ce({
3874
3865
  values: t.section.model,
3875
3866
  rows: t.section.renderType === "table" ? t.section.rows : void 0
3876
3867
  }
3877
- )), r = L(() => t.editing ?? t.actions.isEditing(t.section)), i = L(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = L(() => {
3868
+ )), r = V(() => t.editing ?? t.actions.isEditing(t.section)), i = V(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = V(() => {
3878
3869
  const a = Ct(
3879
3870
  n,
3880
3871
  "section",
@@ -3884,7 +3875,7 @@ const ya = /* @__PURE__ */ ce({
3884
3875
  a,
3885
3876
  c,
3886
3877
  "default"
3887
- ].find((g) => !!(g && n[g])) ?? "";
3878
+ ].find((m) => !!(m && n[m])) ?? "";
3888
3879
  });
3889
3880
  function l(a) {
3890
3881
  return a === "form" || a === "table" ? a : "";
@@ -3901,7 +3892,7 @@ const ya = /* @__PURE__ */ ce({
3901
3892
  renderConfig: a.renderConfig,
3902
3893
  state: a.state,
3903
3894
  actions: a.actions
3904
- }) : ($(), H(ga, {
3895
+ }) : (k(), H(ga, {
3905
3896
  key: 1,
3906
3897
  section: a.section,
3907
3898
  node: a.node,
@@ -3927,7 +3918,7 @@ const ya = /* @__PURE__ */ ce({
3927
3918
  error: (e) => !0
3928
3919
  },
3929
3920
  setup(e, { emit: t, slots: n }) {
3930
- const o = ve(!1);
3921
+ const o = he(!1);
3931
3922
  Be(
3932
3923
  () => e.boundaryKey,
3933
3924
  () => {
@@ -3967,137 +3958,137 @@ const ya = /* @__PURE__ */ ce({
3967
3958
  onSave: { type: Function }
3968
3959
  },
3969
3960
  setup(e) {
3970
- const t = e, n = Ee(), o = ve(!1), r = ve(null), i = ve(null), s = L(() => !!t.hideHeader), l = L(() => t.actions.getSectionStatus(t.node)), a = L(() => t.actions.getSection(t.node) ?? i.value), c = L(() => {
3971
- const b = a.value;
3972
- return b ? lt(b.fields, b, t.renderConfig, {
3973
- values: b.model,
3974
- rows: b.renderType === "table" ? b.rows : void 0
3961
+ const t = e, n = Ee(), o = he(!1), r = he(null), i = he(null), s = V(() => !!t.hideHeader), l = V(() => t.actions.getSectionStatus(t.node)), a = V(() => t.actions.getSection(t.node) ?? i.value), c = V(() => {
3962
+ const y = a.value;
3963
+ return y ? lt(y.fields, y, t.renderConfig, {
3964
+ values: y.model,
3965
+ rows: y.renderType === "table" ? y.rows : void 0
3975
3966
  }) : [];
3976
- }), g = L(() => a.value?.title || t.node.tagName || t.node.label || "-"), w = L(() => !!(a.value && t.actions.isEditing(a.value))), I = L(() => a.value?.renderType === "table"), V = L(() => o.value || l.value.loading), A = L(() => k(r.value || l.value.error)), d = L(() => {
3977
- const b = a.value;
3978
- return b ? b.renderType === "table" && b.rows.length === 0 || c.value.length === 0 : !0;
3979
- }), S = L(() => ({
3967
+ }), m = V(() => a.value?.title || t.node.tagName || t.node.label || "-"), _ = V(() => !!(a.value && t.actions.isEditing(a.value))), $ = V(() => a.value?.renderType === "table"), b = V(() => o.value || l.value.loading), A = V(() => S(r.value || l.value.error)), g = V(() => {
3968
+ const y = a.value;
3969
+ return y ? y.renderType === "table" && y.rows.length === 0 || c.value.length === 0 : !0;
3970
+ }), w = V(() => ({
3980
3971
  node: t.node,
3981
3972
  section: a.value,
3982
3973
  sectionView: a.value,
3983
3974
  fields: c.value,
3984
3975
  renderConfig: t.renderConfig,
3985
- title: g.value,
3986
- editing: w.value,
3987
- loading: V.value,
3976
+ title: m.value,
3977
+ editing: _.value,
3978
+ loading: b.value,
3988
3979
  error: r.value || l.value.error,
3989
3980
  errorMessage: A.value,
3990
- isEmpty: d.value,
3991
- empty: d.value,
3981
+ isEmpty: g.value,
3982
+ empty: g.value,
3992
3983
  sectionStatus: l.value,
3993
3984
  state: t.state,
3994
3985
  actions: t.actions,
3995
- reload: j,
3996
- handleEdit: R,
3997
- handleCancel: h,
3998
- handleAddTableRow: m,
3999
- handleSave: M
3986
+ reload: N,
3987
+ handleEdit: j,
3988
+ handleCancel: I,
3989
+ handleAddTableRow: h,
3990
+ handleSave: T
4000
3991
  }));
4001
- function k(b) {
4002
- return b ? b instanceof Error ? b.message : String(b) : "";
3992
+ function S(y) {
3993
+ return y ? y instanceof Error ? y.message : String(y) : "";
4003
3994
  }
4004
- async function R() {
4005
- const b = a.value;
4006
- b && (await t.onEdit?.(b, t.node), t.onEdit || t.actions.startEdit(b));
3995
+ async function j() {
3996
+ const y = a.value;
3997
+ y && (await t.onEdit?.(y, t.node), t.onEdit || t.actions.startEdit(y));
4007
3998
  }
4008
- async function h() {
4009
- const b = a.value;
4010
- b && (await t.onCancel?.(b, t.node), t.onCancel || t.actions.cancelEdit(b));
3999
+ async function I() {
4000
+ const y = a.value;
4001
+ y && (await t.onCancel?.(y, t.node), t.onCancel || t.actions.cancelEdit(y));
4011
4002
  }
4012
- function m() {
4013
- const b = a.value;
4014
- if (!b) return;
4015
- const D = b.fields.reduce((T, x) => (T[x.code] = x.value ?? "", T), { __rowKey: `new-${Date.now()}` });
4016
- t.actions.saveRow(b, D, -1);
4003
+ function h() {
4004
+ const y = a.value;
4005
+ if (!y) return;
4006
+ const F = y.fields.reduce((O, z) => (O[z.code] = z.value ?? "", O), { __rowKey: `new-${Date.now()}` });
4007
+ t.actions.saveRow(y, F, -1);
4017
4008
  }
4018
- async function M() {
4019
- const b = a.value;
4020
- if (b)
4009
+ async function T() {
4010
+ const y = a.value;
4011
+ if (y)
4021
4012
  try {
4022
4013
  if (t.onSave) {
4023
- await t.onSave(b, t.node);
4014
+ await t.onSave(y, t.node);
4024
4015
  return;
4025
4016
  }
4026
- await t.actions.saveSection(b);
4027
- } catch (D) {
4028
- r.value = D, console.error("[GlobalInfoSectionBlock] save section failed", D);
4017
+ await t.actions.saveSection(y);
4018
+ } catch (F) {
4019
+ r.value = F, console.error("[GlobalInfoSectionBlock] save section failed", F);
4029
4020
  }
4030
4021
  }
4031
- function v(b) {
4032
- r.value = b;
4022
+ function p(y) {
4023
+ r.value = y;
4033
4024
  }
4034
- async function j() {
4025
+ async function N() {
4035
4026
  o.value = !0, r.value = null, i.value = null;
4036
4027
  try {
4037
4028
  i.value = await t.actions.loadSection(t.node);
4038
- } catch (b) {
4039
- r.value = b, console.error("[GlobalInfoSectionBlock] load section failed", b);
4029
+ } catch (y) {
4030
+ r.value = y, console.error("[GlobalInfoSectionBlock] load section failed", y);
4040
4031
  } finally {
4041
4032
  o.value = !1;
4042
4033
  }
4043
4034
  }
4044
4035
  return Kt(() => {
4045
- j();
4036
+ N();
4046
4037
  }), Be(
4047
4038
  () => t.node.key,
4048
4039
  () => {
4049
- j();
4040
+ N();
4050
4041
  }
4051
- ), (b, D) => {
4052
- const T = It;
4053
- return $(), Y("section", Sa, [
4054
- s.value ? ue("", !0) : ($(), Y("header", wa, [
4055
- ee(b.$slots, "header", Me(Fe(S.value)), () => [
4042
+ ), (y, F) => {
4043
+ const O = It;
4044
+ return k(), Y("section", Sa, [
4045
+ s.value ? ue("", !0) : (k(), Y("header", wa, [
4046
+ ee(y.$slots, "header", Me(Fe(w.value)), () => [
4056
4047
  te("div", Ia, [
4057
- D[0] || (D[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
4058
- te("h3", _a, fe(g.value), 1)
4048
+ F[0] || (F[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
4049
+ te("h3", _a, fe(m.value), 1)
4059
4050
  ]),
4060
- ee(b.$slots, "actions", Me(Fe(S.value)), () => [
4061
- a.value ? ($(), Y("div", $a, [
4062
- w.value ? ($(), Y(be, { key: 1 }, [
4063
- we(T, {
4051
+ ee(y.$slots, "actions", Me(Fe(w.value)), () => [
4052
+ a.value ? (k(), Y("div", $a, [
4053
+ _.value ? (k(), Y(be, { key: 1 }, [
4054
+ we(O, {
4064
4055
  class: "global-info-section-block__cancel",
4065
4056
  disabled: l.value.saving,
4066
- onClick: h
4057
+ onClick: I
4067
4058
  }, {
4068
- default: J(() => D[2] || (D[2] = [
4059
+ default: J(() => F[2] || (F[2] = [
4069
4060
  Ye(" 取消 ")
4070
4061
  ])),
4071
4062
  _: 1
4072
4063
  }, 8, ["disabled"]),
4073
- I.value ? ($(), H(T, {
4064
+ $.value ? (k(), H(O, {
4074
4065
  key: 0,
4075
4066
  class: "global-info-section-block__add",
4076
4067
  disabled: l.value.saving,
4077
- onClick: m
4068
+ onClick: h
4078
4069
  }, {
4079
- default: J(() => D[3] || (D[3] = [
4070
+ default: J(() => F[3] || (F[3] = [
4080
4071
  Ye(" 新增 ")
4081
4072
  ])),
4082
4073
  _: 1
4083
4074
  }, 8, ["disabled"])) : ue("", !0),
4084
- we(T, {
4075
+ we(O, {
4085
4076
  class: "global-info-section-block__confirm",
4086
4077
  loading: l.value.saving,
4087
- onClick: M
4078
+ onClick: T
4088
4079
  }, {
4089
4080
  default: J(() => [
4090
- Ye(fe(I.value ? "确认" : "保存"), 1)
4081
+ Ye(fe($.value ? "确认" : "保存"), 1)
4091
4082
  ]),
4092
4083
  _: 1
4093
4084
  }, 8, ["loading"])
4094
- ], 64)) : ($(), H(T, {
4085
+ ], 64)) : (k(), H(O, {
4095
4086
  key: 0,
4096
4087
  class: "global-info-section-block__edit",
4097
- disabled: l.value.saving || V.value,
4098
- onClick: R
4088
+ disabled: l.value.saving || b.value,
4089
+ onClick: j
4099
4090
  }, {
4100
- default: J(() => D[1] || (D[1] = [
4091
+ default: J(() => F[1] || (F[1] = [
4101
4092
  te("svg", {
4102
4093
  class: "global-info-section-block__edit-icon",
4103
4094
  viewBox: "0 0 12 12",
@@ -4118,34 +4109,34 @@ const ya = /* @__PURE__ */ ce({
4118
4109
  ], !0)
4119
4110
  ])),
4120
4111
  te("div", Ca, [
4121
- V.value ? ee(b.$slots, "loading", Me(oe({ key: 0 }, S.value)), () => [
4122
- D[4] || (D[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
4123
- ], !0) : !a.value || d.value ? ee(b.$slots, "empty", Me(oe({ key: 1 }, S.value)), () => [
4124
- D[5] || (D[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4125
- ], !0) : ($(), H(ba, {
4112
+ b.value ? ee(y.$slots, "loading", Me(oe({ key: 0 }, w.value)), () => [
4113
+ F[4] || (F[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
4114
+ ], !0) : !a.value || g.value ? ee(y.$slots, "empty", Me(oe({ key: 1 }, w.value)), () => [
4115
+ F[5] || (F[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4116
+ ], !0) : (k(), H(ba, {
4126
4117
  key: 2,
4127
- "boundary-key": b.node.key,
4128
- label: g.value,
4129
- onError: v
4118
+ "boundary-key": y.node.key,
4119
+ label: m.value,
4120
+ onError: p
4130
4121
  }, {
4131
4122
  fallback: J(() => [
4132
- ee(b.$slots, "empty", Me(Fe(S.value)), () => [
4133
- D[6] || (D[6] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4123
+ ee(y.$slots, "empty", Me(Fe(w.value)), () => [
4124
+ F[6] || (F[6] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4134
4125
  ], !0)
4135
4126
  ]),
4136
4127
  default: J(() => [
4137
4128
  we(ya, {
4138
4129
  section: a.value,
4139
- node: b.node,
4140
- editing: w.value,
4141
- state: b.state,
4142
- actions: b.actions,
4143
- "render-config": b.renderConfig
4130
+ node: y.node,
4131
+ editing: _.value,
4132
+ state: y.state,
4133
+ actions: y.actions,
4134
+ "render-config": y.renderConfig
4144
4135
  }, je({ _: 2 }, [
4145
- ge(re(n), (x, ne) => ({
4136
+ ge(re(n), (z, ne) => ({
4146
4137
  name: ne,
4147
- fn: J((z) => [
4148
- ee(b.$slots, ne, Me(Fe({ ...S.value, ...z })), void 0, !0)
4138
+ fn: J((x) => [
4139
+ ee(y.$slots, ne, Me(Fe({ ...w.value, ...x })), void 0, !0)
4149
4140
  ])
4150
4141
  }))
4151
4142
  ]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
@@ -4168,20 +4159,20 @@ const ya = /* @__PURE__ */ ce({
4168
4159
  renderConfig: {}
4169
4160
  },
4170
4161
  setup(e) {
4171
- const t = e, n = Ee(), o = L(() => t.group.tagName || t.group.label || "-"), r = L(() => t.children.length <= 1);
4172
- function i(c, g) {
4173
- const w = t.actions.getSection(c);
4162
+ const t = e, n = Ee(), o = V(() => t.group.tagName || t.group.label || "-"), r = V(() => t.children.length <= 1);
4163
+ function i(c, m) {
4164
+ const _ = t.actions.getSection(c);
4174
4165
  return {
4175
4166
  node: c,
4176
4167
  group: t.group,
4177
4168
  sectionNode: c,
4178
- section: w,
4179
- sectionView: w,
4169
+ section: _,
4170
+ sectionView: _,
4180
4171
  state: t.state,
4181
4172
  actions: t.actions,
4182
4173
  renderConfig: t.renderConfig,
4183
- index: g,
4184
- editing: !!(w && t.actions.isEditing(w)),
4174
+ index: m,
4175
+ editing: !!(_ && t.actions.isEditing(_)),
4185
4176
  sectionStatus: t.actions.getSectionStatus(c),
4186
4177
  isSelfSection: l(c, 0) === l(t.group, 0),
4187
4178
  handleEdit: () => t.actions.startEdit(c),
@@ -4190,16 +4181,16 @@ const ya = /* @__PURE__ */ ce({
4190
4181
  };
4191
4182
  }
4192
4183
  function s(c) {
4193
- const g = t.actions.getSection(c);
4194
- return Ct(n, "section", Nn(c, g));
4184
+ const m = t.actions.getSection(c);
4185
+ return Ct(n, "section", Nn(c, m));
4195
4186
  }
4196
- function l(c, g) {
4197
- return c.key || c.id || c.infSetId || c.tagId || `${g}`;
4187
+ function l(c, m) {
4188
+ return c.key || c.id || c.infSetId || c.tagId || `${m}`;
4198
4189
  }
4199
4190
  function a(c) {
4200
4191
  return `global-info-section-${l(c, 0)}`;
4201
4192
  }
4202
- return (c, g) => ($(), Y("section", Ta, [
4193
+ return (c, m) => (k(), Y("section", Ta, [
4203
4194
  ee(c.$slots, "header", {
4204
4195
  group: c.group,
4205
4196
  children: c.children,
@@ -4211,7 +4202,7 @@ const ya = /* @__PURE__ */ ce({
4211
4202
  isEmpty: c.children.length === 0
4212
4203
  }, () => [
4213
4204
  te("header", Oa, [
4214
- g[0] || (g[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
4205
+ m[0] || (m[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
4215
4206
  te("h2", Da, fe(o.value), 1)
4216
4207
  ])
4217
4208
  ], !0),
@@ -4225,30 +4216,30 @@ const ya = /* @__PURE__ */ ce({
4225
4216
  renderConfig: c.renderConfig,
4226
4217
  index: c.index,
4227
4218
  isEmpty: c.children.length === 0
4228
- }, void 0, !0) : ($(), Y(be, { key: 1 }, [
4229
- ($(!0), Y(be, null, ge(c.children, (w, I) => ($(), Y("div", {
4230
- id: a(w),
4231
- key: l(w, I),
4219
+ }, void 0, !0) : (k(), Y(be, { key: 1 }, [
4220
+ (k(!0), Y(be, null, ge(c.children, (_, $) => (k(), Y("div", {
4221
+ id: a(_),
4222
+ key: l(_, $),
4232
4223
  class: "global-info-group__section"
4233
4224
  }, [
4234
- s(w) ? ee(c.$slots, s(w), oe({
4225
+ s(_) ? ee(c.$slots, s(_), oe({
4235
4226
  key: 0,
4236
4227
  ref_for: !0
4237
- }, i(w, I)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
4228
+ }, i(_, $)), void 0, !0) : re(n).section ? ee(c.$slots, "section", oe({
4238
4229
  key: 1,
4239
4230
  ref_for: !0
4240
- }, i(w, I)), void 0, !0) : ($(), H(Ma, {
4231
+ }, i(_, $)), void 0, !0) : (k(), H(Ma, {
4241
4232
  key: 2,
4242
- node: w,
4233
+ node: _,
4243
4234
  state: c.state,
4244
4235
  actions: c.actions,
4245
4236
  "hide-header": r.value,
4246
4237
  "render-config": c.renderConfig
4247
4238
  }, je({ _: 2 }, [
4248
- ge(re(n), (V, A) => ({
4239
+ ge(re(n), (b, A) => ({
4249
4240
  name: A,
4250
- fn: J((d) => [
4251
- ee(c.$slots, A, oe({ ref_for: !0 }, d), void 0, !0)
4241
+ fn: J((g) => [
4242
+ ee(c.$slots, A, oe({ ref_for: !0 }, g), void 0, !0)
4252
4243
  ])
4253
4244
  }))
4254
4245
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
@@ -4263,7 +4254,7 @@ const ya = /* @__PURE__ */ ce({
4263
4254
  index: -1,
4264
4255
  renderConfig: c.renderConfig
4265
4256
  }, () => [
4266
- g[1] || (g[1] = te("div", { class: "global-info-group__empty" }, "暂无数据", -1))
4257
+ m[1] || (m[1] = te("div", { class: "global-info-group__empty" }, "暂无数据", -1))
4267
4258
  ], !0) : ue("", !0)
4268
4259
  ], 64))
4269
4260
  ])
@@ -4279,82 +4270,82 @@ const ya = /* @__PURE__ */ ce({
4279
4270
  renderConfig: {}
4280
4271
  },
4281
4272
  setup(e) {
4282
- const t = e, n = Ee(), o = L(() => {
4283
- const g = t.nodes.filter((k) => r(k).length > 0), w = t.nodes.filter((k) => r(k).length === 0), I = w.filter((k) => i(k)), V = w.filter((k) => !i(k)), A = g.map((k) => ({ group: k, children: r(k) })), d = I.map((k) => ({ group: k, children: [k] }));
4273
+ const t = e, n = Ee(), o = V(() => {
4274
+ const m = t.nodes.filter((S) => r(S).length > 0), _ = t.nodes.filter((S) => r(S).length === 0), $ = _.filter((S) => i(S)), b = _.filter((S) => !i(S)), A = m.map((S) => ({ group: S, children: r(S) })), g = $.map((S) => ({ group: S, children: [S] }));
4284
4275
  if (A.length === 0)
4285
- return I.length > 0 ? d : c(V);
4286
- const S = c(V);
4287
- return [...A, ...d, ...S];
4276
+ return $.length > 0 ? g : c(b);
4277
+ const w = c(b);
4278
+ return [...A, ...g, ...w];
4288
4279
  });
4289
- function r(g) {
4290
- return g.children ?? [];
4280
+ function r(m) {
4281
+ return m.children ?? [];
4291
4282
  }
4292
- function i(g) {
4293
- return !String(g.parentId || g.parentTagId || "").trim();
4283
+ function i(m) {
4284
+ return !String(m.parentId || m.parentTagId || "").trim();
4294
4285
  }
4295
- function s(g) {
4296
- return Ct(n, "group", jn(g));
4286
+ function s(m) {
4287
+ return Ct(n, "group", jn(m));
4297
4288
  }
4298
- function l(g, w) {
4299
- return g.key || g.id || g.tagId || `${w}`;
4289
+ function l(m, _) {
4290
+ return m.key || m.id || m.tagId || `${_}`;
4300
4291
  }
4301
- function a(g) {
4302
- const w = g[0], I = w?.raw ?? {}, V = String(I.parentTagName || I.parentName || I.parentLabel || w?.parentId || "信息");
4292
+ function a(m) {
4293
+ const _ = m[0], $ = _?.raw ?? {}, b = String($.parentTagName || $.parentName || $.parentLabel || _?.parentId || "信息");
4303
4294
  return {
4304
- ...w,
4305
- key: `${w?.parentId || w?.parentTagId || w?.key || "global-info"}-group`,
4306
- id: String(w?.parentId || w?.parentTagId || w?.id || "global-info-group"),
4307
- tagId: String(w?.parentTagId || w?.parentId || w?.tagId || "global-info-group"),
4308
- tagName: V,
4309
- label: V,
4310
- children: g
4295
+ ..._,
4296
+ key: `${_?.parentId || _?.parentTagId || _?.key || "global-info"}-group`,
4297
+ id: String(_?.parentId || _?.parentTagId || _?.id || "global-info-group"),
4298
+ tagId: String(_?.parentTagId || _?.parentId || _?.tagId || "global-info-group"),
4299
+ tagName: b,
4300
+ label: b,
4301
+ children: m
4311
4302
  };
4312
4303
  }
4313
- function c(g) {
4314
- const w = /* @__PURE__ */ new Map();
4315
- return g.forEach((I) => {
4316
- const V = String(I.parentId || I.parentTagId || "global-info-flat"), A = w.get(V) ?? [];
4317
- A.push(I), w.set(V, A);
4318
- }), Array.from(w.values()).map((I) => ({
4319
- group: a(I),
4320
- children: I
4304
+ function c(m) {
4305
+ const _ = /* @__PURE__ */ new Map();
4306
+ return m.forEach(($) => {
4307
+ const b = String($.parentId || $.parentTagId || "global-info-flat"), A = _.get(b) ?? [];
4308
+ A.push($), _.set(b, A);
4309
+ }), Array.from(_.values()).map(($) => ({
4310
+ group: a($),
4311
+ children: $
4321
4312
  }));
4322
4313
  }
4323
- return (g, w) => ($(), Y("div", Va, [
4324
- ($(!0), Y(be, null, ge(o.value, (I, V) => ($(), Y(be, {
4325
- key: l(I.group, V)
4314
+ return (m, _) => (k(), Y("div", Va, [
4315
+ (k(!0), Y(be, null, ge(o.value, ($, b) => (k(), Y(be, {
4316
+ key: l($.group, b)
4326
4317
  }, [
4327
- s(I.group) ? ee(g.$slots, s(I.group), {
4318
+ s($.group) ? ee(m.$slots, s($.group), {
4328
4319
  key: 0,
4329
- group: I.group,
4330
- children: I.children,
4331
- state: g.state,
4332
- actions: g.actions,
4333
- renderConfig: g.renderConfig,
4334
- index: V,
4335
- isEmpty: I.children.length === 0
4336
- }, void 0, !0) : re(n).group ? ee(g.$slots, "group", {
4320
+ group: $.group,
4321
+ children: $.children,
4322
+ state: m.state,
4323
+ actions: m.actions,
4324
+ renderConfig: m.renderConfig,
4325
+ index: b,
4326
+ isEmpty: $.children.length === 0
4327
+ }, void 0, !0) : re(n).group ? ee(m.$slots, "group", {
4337
4328
  key: 1,
4338
- group: I.group,
4339
- children: I.children,
4340
- state: g.state,
4341
- actions: g.actions,
4342
- renderConfig: g.renderConfig,
4343
- index: V,
4344
- isEmpty: I.children.length === 0
4345
- }, void 0, !0) : ($(), H(La, {
4329
+ group: $.group,
4330
+ children: $.children,
4331
+ state: m.state,
4332
+ actions: m.actions,
4333
+ renderConfig: m.renderConfig,
4334
+ index: b,
4335
+ isEmpty: $.children.length === 0
4336
+ }, void 0, !0) : (k(), H(La, {
4346
4337
  key: 2,
4347
- group: I.group,
4348
- children: I.children,
4349
- state: g.state,
4350
- actions: g.actions,
4351
- "render-config": g.renderConfig,
4352
- index: V
4338
+ group: $.group,
4339
+ children: $.children,
4340
+ state: m.state,
4341
+ actions: m.actions,
4342
+ "render-config": m.renderConfig,
4343
+ index: b
4353
4344
  }, je({ _: 2 }, [
4354
- ge(re(n), (A, d) => ({
4355
- name: d,
4356
- fn: J((S) => [
4357
- ee(g.$slots, d, oe({ ref_for: !0 }, S), void 0, !0)
4345
+ ge(re(n), (A, g) => ({
4346
+ name: g,
4347
+ fn: J((w) => [
4348
+ ee(m.$slots, g, oe({ ref_for: !0 }, w), void 0, !0)
4358
4349
  ])
4359
4350
  }))
4360
4351
  ]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
@@ -4374,28 +4365,28 @@ export {
4374
4365
  Ma as GlobalInfoSectionBlock,
4375
4366
  ya as GlobalInfoSectionOutlet,
4376
4367
  Ka as GlobalInfoSections,
4377
- va as GlobalInfoTableRenderer,
4368
+ ha as GlobalInfoTableRenderer,
4378
4369
  Tt as JtAttachmentPreview,
4379
4370
  Ha as JtAttachmentPreviewByParams,
4380
4371
  tt as JtButton,
4381
4372
  fo as JtCascader,
4382
- xa as JtCrudTable,
4373
+ za as JtCrudTable,
4383
4374
  mo as JtDatePicker,
4384
4375
  Do as JtFilterBar,
4385
4376
  So as JtFormItems,
4386
4377
  mt as JtInput,
4387
- za as JtPageHeader,
4378
+ xa as JtPageHeader,
4388
4379
  No as JtPagination,
4389
4380
  go as JtSelect,
4390
4381
  Vo as JtTable,
4391
- vr as buildGlobalInfoUpdatePayload,
4382
+ hr as buildGlobalInfoUpdatePayload,
4392
4383
  pr as createEmptyGlobalInfoViewModel,
4393
4384
  qa as isGlobalInfoNode,
4394
- vn as mergeGlobalInfoChildren,
4385
+ hn as mergeGlobalInfoChildren,
4395
4386
  mr as normalizeGlobalInfoDetail,
4396
4387
  jt as normalizeGlobalInfoTree,
4397
- hr as resolveGlobalInfoRenderType,
4388
+ vr as resolveGlobalInfoRenderType,
4398
4389
  Ja as setupJtAttachmentPreview,
4399
4390
  Gr as useGlobalInfoController,
4400
- xr as validateGlobalInfoRequiredInfoSet
4391
+ zr as validateGlobalInfoRequiredInfoSet
4401
4392
  };