@jt-home/mfe-components 1.0.37 → 1.0.39

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,6 +1,6 @@
1
1
  import './style.css';
2
- import { t as Z, J as Dt, i as Un } from "./index-C66W1IXZ.js";
3
- import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-C66W1IXZ.js";
2
+ import { t as Z, J as Dt, i as Un } from "./index-C6AyqKhk.js";
3
+ import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-C6AyqKhk.js";
4
4
  import { defineComponent as pe, useAttrs as Hn, computed as O, openBlock as I, createBlock as H, mergeProps as ae, toHandlers as et, withCtx as U, renderSlot as te, resolveDynamicComponent as Kt, createCommentVNode as fe, ref as ge, watch as Ee, mergeDefaults as Jn, withKeys as Wn, createElementBlock as G, Fragment as Se, renderList as ye, normalizeStyle as Yt, nextTick as Zn, useSlots as Le, normalizeClass as We, createVNode as Ie, withModifiers as Ut, unref as J, createSlots as Re, createElementVNode as ne, toDisplayString as oe, normalizeProps as Oe, guardReactiveProps as Be, useModel as vt, withDirectives as Qn, mergeModels as Ft, shallowRef as je, onMounted as Ht, onBeforeUnmount as Xn, createTextVNode as He, resolveComponent as eo, onErrorCaptured as to } from "vue";
5
5
  import { ElButton as $t, ElIcon as Jt, ElCascader as no, ElDatePicker as Wt, ElInput as Zt, ElSelect as Qt, ElOption as Xt, ElFormItem as en, ElForm as tn, ElTable as nn, ElTableColumn as on, ElPagination as oo, ElLoadingDirective as ro, ElInputNumber as ao, ElSwitch as so, ElRow as lo, ElCol as io, ElPopconfirm as co } from "element-plus/es";
6
6
  import { cascaderEmits as uo, inputEmits as Bt, selectEmits as Et } from "element-plus";
@@ -56,25 +56,25 @@ const vo = /* @__PURE__ */ pe({
56
56
  },
57
57
  setup(e) {
58
58
  const t = e, n = Hn(), o = O(() => {
59
- const { icon: i, ...a } = t;
59
+ const { icon: c, ...a } = t;
60
60
  return {
61
61
  ...sn(n),
62
62
  ...a
63
63
  };
64
64
  }), r = O(() => an(n));
65
- return (i, a) => {
66
- const c = Jt, s = $t;
65
+ return (c, a) => {
66
+ const l = Jt, s = $t;
67
67
  return I(), H(s, ae({ class: "jt-button" }, o.value, et(r.value)), {
68
68
  default: U(() => [
69
- i.$slots.icon ? (I(), H(c, {
69
+ c.$slots.icon ? (I(), H(l, {
70
70
  key: 0,
71
71
  class: "jt-button__icon"
72
72
  }, {
73
73
  default: U(() => [
74
- te(i.$slots, "icon", {}, void 0, !0)
74
+ te(c.$slots, "icon", {}, void 0, !0)
75
75
  ]),
76
76
  _: 3
77
- })) : t.icon ? (I(), H(c, {
77
+ })) : t.icon ? (I(), H(l, {
78
78
  key: 1,
79
79
  class: "jt-button__icon"
80
80
  }, {
@@ -83,7 +83,7 @@ const vo = /* @__PURE__ */ pe({
83
83
  ]),
84
84
  _: 1
85
85
  })) : fe("", !0),
86
- te(i.$slots, "default", {}, void 0, !0)
86
+ te(c.$slots, "default", {}, void 0, !0)
87
87
  ]),
88
88
  _: 3
89
89
  }, 16);
@@ -94,7 +94,7 @@ const vo = /* @__PURE__ */ pe({
94
94
  for (const [o, r] of t)
95
95
  n[o] = r;
96
96
  return n;
97
- }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-fde6491e"]]), ho = {
97
+ }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-28dbb12d"]]), ho = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
100
  placeholder: Z("common.请选择"),
@@ -156,7 +156,12 @@ const yo = /* @__PURE__ */ pe({
156
156
  }, ho),
157
157
  emits: uo,
158
158
  setup(e, { emit: t }) {
159
- const n = e, o = O(() => go(n)), r = ge(n.modelValue);
159
+ const n = e, o = O(() => {
160
+ const f = go(n);
161
+ if (!f.disabled) return f;
162
+ const { placeholder: S, ...T } = f;
163
+ return T;
164
+ }), r = ge(n.modelValue);
160
165
  Ee(
161
166
  () => n.modelValue,
162
167
  (f) => {
@@ -164,17 +169,17 @@ const yo = /* @__PURE__ */ pe({
164
169
  },
165
170
  { deep: !0 }
166
171
  );
167
- const i = t;
172
+ const c = t;
168
173
  function a(f, ...S) {
169
- i(f, ...S);
174
+ c(f, ...S);
170
175
  }
171
- function c(f) {
176
+ function l(f) {
172
177
  r.value = f, a("update:modelValue", f);
173
178
  }
174
179
  function s(f) {
175
180
  a("change", f);
176
181
  }
177
- function l(f) {
182
+ function i(f) {
178
183
  a("focus", f);
179
184
  }
180
185
  function g(f) {
@@ -189,21 +194,21 @@ const yo = /* @__PURE__ */ pe({
189
194
  function L(f) {
190
195
  a("expandChange", f);
191
196
  }
192
- function P(f) {
197
+ function V(f) {
193
198
  a("removeTag", f);
194
199
  }
195
200
  return (f, S) => {
196
- const M = no;
197
- return I(), H(M, ae({ class: "jt-cascader" }, o.value, {
201
+ const T = no;
202
+ return I(), H(T, ae({ class: "jt-cascader" }, o.value, {
198
203
  "model-value": r.value,
199
- "onUpdate:modelValue": c,
204
+ "onUpdate:modelValue": l,
200
205
  onChange: s,
201
- onFocus: l,
206
+ onFocus: i,
202
207
  onBlur: g,
203
208
  onClear: w,
204
209
  onVisibleChange: $,
205
210
  onExpandChange: L,
206
- onRemoveTag: P
211
+ onRemoveTag: V
207
212
  }), null, 16, ["model-value"]);
208
213
  };
209
214
  }
@@ -260,24 +265,33 @@ const yo = /* @__PURE__ */ pe({
260
265
  isRange: { type: Boolean }
261
266
  },
262
267
  setup(e) {
263
- const t = e, n = O(
264
- () => ({
268
+ const t = e, n = O(() => {
269
+ if (t.disabled) {
270
+ const {
271
+ placeholder: r,
272
+ startPlaceholder: c,
273
+ endPlaceholder: a,
274
+ ...l
275
+ } = t;
276
+ return l;
277
+ }
278
+ return {
265
279
  ...t,
266
280
  startPlaceholder: t.startPlaceholder ?? (o(t.type) ? Z("common.开始日期") : void 0),
267
281
  endPlaceholder: t.endPlaceholder ?? (o(t.type) ? Z("common.结束日期") : void 0)
268
- })
269
- );
282
+ };
283
+ });
270
284
  function o(r) {
271
285
  return r?.includes("range") ?? !1;
272
286
  }
273
- return (r, i) => {
287
+ return (r, c) => {
274
288
  const a = Wt;
275
289
  return I(), H(a, ae({ class: "jt-date-picker" }, n.value, {
276
- "onUpdate:modelValue": i[0] || (i[0] = (c) => r.$emit("update:modelValue", c))
290
+ "onUpdate:modelValue": c[0] || (c[0] = (l) => r.$emit("update:modelValue", l))
277
291
  }), null, 16);
278
292
  };
279
293
  }
280
- }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-8a40d2aa"]]), _o = /* @__PURE__ */ pe({
294
+ }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-a5b3b51c"]]), _o = /* @__PURE__ */ pe({
281
295
  name: "JtInput",
282
296
  __name: "index",
283
297
  props: {
@@ -320,20 +334,24 @@ const yo = /* @__PURE__ */ pe({
320
334
  enter: () => !0
321
335
  },
322
336
  setup(e, { emit: t }) {
323
- const n = e, o = t, r = O(() => Object.fromEntries(
324
- Object.keys(Bt).map((i) => [
325
- i,
326
- (...a) => o(i, ...a)
337
+ const n = e, o = O(() => {
338
+ if (!n.disabled) return n;
339
+ const { placeholder: a, ...l } = n;
340
+ return l;
341
+ }), r = t, c = O(() => Object.fromEntries(
342
+ Object.keys(Bt).map((a) => [
343
+ a,
344
+ (...l) => r(a, ...l)
327
345
  ])
328
346
  ));
329
- return (i, a) => {
330
- const c = Zt;
331
- return I(), H(c, ae({ class: "jt-input" }, n, et(r.value), {
332
- onKeyup: a[0] || (a[0] = Wn((s) => o("enter"), ["enter"]))
347
+ return (a, l) => {
348
+ const s = Zt;
349
+ return I(), H(s, ae({ class: "jt-input" }, o.value, et(c.value), {
350
+ onKeyup: l[0] || (l[0] = Wn((i) => r("enter"), ["enter"]))
333
351
  }), null, 16);
334
352
  };
335
353
  }
336
- }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-2cc0b532"]]), wo = /* @__PURE__ */ pe({
354
+ }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-6e8f46d7"]]), wo = /* @__PURE__ */ pe({
337
355
  name: "JtSelect",
338
356
  __name: "index",
339
357
  props: {
@@ -393,17 +411,20 @@ const yo = /* @__PURE__ */ pe({
393
411
  emits: Et,
394
412
  setup(e, { emit: t }) {
395
413
  const n = e, o = O(() => {
396
- const { options: a, ...c } = n;
397
- return c;
398
- }), r = t, i = O(() => Object.fromEntries(
414
+ const { options: a, placeholder: l, ...s } = n;
415
+ return n.disabled ? s : {
416
+ ...s,
417
+ placeholder: l
418
+ };
419
+ }), r = t, c = O(() => Object.fromEntries(
399
420
  Object.keys(Et).map((a) => [
400
421
  a,
401
- (...c) => r(a, ...c)
422
+ (...l) => r(a, ...l)
402
423
  ])
403
424
  ));
404
- return (a, c) => {
405
- const s = Xt, l = Qt;
406
- return I(), H(l, ae({ class: "jt-select" }, o.value, et(i.value)), {
425
+ return (a, l) => {
426
+ const s = Xt, i = Qt;
427
+ return I(), H(i, ae({ class: "jt-select" }, o.value, et(c.value)), {
407
428
  default: U(() => [
408
429
  (I(!0), G(Se, null, ye(a.options ?? [], (g) => (I(), H(s, ae({
409
430
  key: g.value,
@@ -414,7 +435,7 @@ const yo = /* @__PURE__ */ pe({
414
435
  }, 16);
415
436
  };
416
437
  }
417
- }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-32dcf973"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
438
+ }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-c55d61ef"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
418
439
  name: "JTFormItems",
419
440
  __name: "JtFormItems",
420
441
  props: {
@@ -434,20 +455,20 @@ const yo = /* @__PURE__ */ pe({
434
455
  daterange: "date-picker",
435
456
  "date-range": "date-picker",
436
457
  dateRange: "date-picker"
437
- }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), i = Object.keys(n), a = /* @__PURE__ */ new Map(), c = O(() => t.configs.filter((h) => h.show !== !1)), s = (h) => {
458
+ }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), a = /* @__PURE__ */ new Map(), l = O(() => t.configs.filter((h) => h.show !== !1)), s = (h) => {
438
459
  const { itemType: v } = h;
439
460
  if (!v) return ht;
440
461
  if (typeof v != "string") return v;
441
462
  const F = o[v] ?? v;
442
- return i.includes(F) ? n[F] : (console.error(
443
- `[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${i.join(", ")}`
463
+ return c.includes(F) ? n[F] : (console.error(
464
+ `[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${c.join(", ")}`
444
465
  ), ht);
445
- }, l = (h) => {
466
+ }, i = (h) => {
446
467
  const v = sn(h, r);
447
468
  return h.itemType === "select" || h.itemType === "remote-select" || h.itemType === "cascader" ? {
448
469
  ...v,
449
470
  options: h.options
450
- } : N(h.itemType) ? {
471
+ } : z(h.itemType) ? {
451
472
  ...v,
452
473
  type: "daterange"
453
474
  } : v;
@@ -466,14 +487,14 @@ const yo = /* @__PURE__ */ pe({
466
487
  a.delete(h);
467
488
  };
468
489
  }
469
- function P(h, v) {
490
+ function V(h, v) {
470
491
  Zn(() => {
471
492
  a.get(h)?.validate(v).catch(() => {
472
493
  });
473
494
  });
474
495
  }
475
496
  const f = (h) => Math.min(Math.max(Math.trunc(h || 1), 1), 4), S = O(() => {
476
- const v = c.value.reduce(
497
+ const v = l.value.reduce(
477
498
  (F, y) => F + f(t.span || y.span),
478
499
  0
479
500
  ) % gt;
@@ -482,21 +503,21 @@ const yo = /* @__PURE__ */ pe({
482
503
  } : {
483
504
  gridColumn: `${v + 1} / span ${gt - v}`
484
505
  };
485
- }), M = (h) => ({
506
+ }), T = (h) => ({
486
507
  gridColumn: `span ${f(t.span || h.span)}`
487
508
  });
488
- function N(h) {
509
+ function z(h) {
489
510
  return h === "daterange" || h === "date-range" || h === "dateRange";
490
511
  }
491
512
  return (h, v) => {
492
513
  const F = en;
493
514
  return I(), G("div", $o, [
494
- (I(!0), G(Se, null, ye(c.value, (y) => (I(), H(F, ae({
515
+ (I(!0), G(Se, null, ye(l.value, (y) => (I(), H(F, ae({
495
516
  key: y.prop,
496
517
  ref_for: !0,
497
518
  ref: L(y.prop),
498
519
  class: "jt-form-items__item",
499
- style: M(y),
520
+ style: T(y),
500
521
  label: y.label,
501
522
  prop: y.prop
502
523
  }, w(y)), {
@@ -505,10 +526,10 @@ const yo = /* @__PURE__ */ pe({
505
526
  key: 1,
506
527
  "model-value": h.formData[y.prop],
507
528
  ref_for: !0
508
- }, l(y), et(g(y)), {
529
+ }, i(y), et(g(y)), {
509
530
  "onUpdate:modelValue": (A) => $(y.prop, A),
510
- onChange: () => P(y.prop, "change"),
511
- onBlur: () => P(y.prop, "blur")
531
+ onChange: () => V(y.prop, "change"),
532
+ onBlur: () => V(y.prop, "blur")
512
533
  }), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
513
534
  ]),
514
535
  _: 2
@@ -526,7 +547,7 @@ const yo = /* @__PURE__ */ pe({
526
547
  ]);
527
548
  };
528
549
  }
529
- }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-f91fea34"]]);
550
+ }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-d4308345"]]);
530
551
  function To() {
531
552
  const e = ge(!1);
532
553
  function t() {
@@ -541,7 +562,7 @@ function To() {
541
562
  searchDone: n
542
563
  };
543
564
  }
544
- const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", Oo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Do = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Fo = { class: "jt-filter-bar__btns" }, Bo = ["src"], Eo = ["src"], Lo = ["src"], Vo = /* @__PURE__ */ pe({
565
+ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='-0.5'%20width='11'%20height='11'%20rx='5.5'%20transform='matrix(1%200%200%20-1%201%2012)'%20stroke='%23999999'/%3e%3cpath%20d='M10%208.16064L7%205.16064L4%208.16064'%20stroke='%23999999'/%3e%3c/svg%3e", Oo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.375%207.00017C2.375%207.27631%202.59886%207.50017%202.875%207.50017C3.15114%207.50017%203.375%207.27631%203.375%207.00017H2.875H2.375ZM2.875%207.00017H3.375C3.375%204.46334%205.41801%202.41406%207.93713%202.41406V1.91406V1.41406C4.86127%201.41406%202.375%203.91551%202.375%207.00017H2.875ZM7.93713%201.91406V2.41406C10.4563%202.41406%2012.4993%204.46334%2012.4993%207.00017H12.9993H13.4993C13.4993%203.91551%2011.013%201.41406%207.93713%201.41406V1.91406ZM12.9993%207.00017H12.4993C12.4993%209.537%2010.4563%2011.5863%207.93713%2011.5863V12.0863V12.5863C11.013%2012.5863%2013.4993%2010.0848%2013.4993%207.00017H12.9993ZM7.93713%2012.0863V11.5863C6.68975%2011.5863%205.55663%2011.0806%204.72892%2010.2635L4.37765%2010.6193L4.02638%2010.9752C5.0317%2011.9676%206.41366%2012.5863%207.93713%2012.5863V12.0863Z'%20fill='%23999999'/%3e%3cpath%20d='M4.75131%206.0102L2.88631%207.88403L1%205.99414'%20stroke='%23999999'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Do = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.60938%2012.1099C9.64694%2012.1099%2012.1094%209.64743%2012.1094%206.60986C12.1094%203.5723%209.64694%201.10986%206.60938%201.10986C3.57181%201.10986%201.10938%203.5723%201.10938%206.60986C1.10938%209.64743%203.57181%2012.1099%206.60938%2012.1099Z'%20stroke='white'%20stroke-miterlimit='10'/%3e%3cpath%20d='M12.4993%2012.5002L10.2832%2010.3301'%20stroke='white'%20stroke-miterlimit='10'/%3e%3c/svg%3e", Fo = { class: "jt-filter-bar__btns" }, Bo = ["src"], Eo = ["src"], Lo = ["src"], Po = /* @__PURE__ */ pe({
545
566
  name: "JtFilterBar",
546
567
  __name: "JtFilterBar",
547
568
  props: {
@@ -551,15 +572,15 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
551
572
  },
552
573
  emits: ["update:modelValue", "search", "reset"],
553
574
  setup(e, { expose: t, emit: n }) {
554
- const o = e, r = n, i = ge(), a = Le(), c = ge({}), { searchDisabled: s, searchLoading: l, searchDone: g } = To(), w = O(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), L = O(
555
- () => o.columns.filter((T) => T.search === !0)
556
- ), P = O(
575
+ const o = e, r = n, c = ge(), a = Le(), l = ge({}), { searchDisabled: s, searchLoading: i, searchDone: g } = To(), w = O(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), L = O(
576
+ () => o.columns.filter((M) => M.search === !0)
577
+ ), V = O(
557
578
  () => Math.max(1, w.value.searchSpan ?? 4)
558
579
  ), f = O(
559
580
  () => Math.max(1, w.value.searchCollapsedRows ?? 1)
560
- ), S = O(() => P.value), M = O(
581
+ ), S = O(() => V.value), T = O(
561
582
  () => Math.max(1, S.value * f.value)
562
- ), N = O(() => P.value), h = O(
583
+ ), z = O(() => V.value), h = O(
563
584
  () => j.value ? "264px" : "174px"
564
585
  ), v = O(
565
586
  () => K(w.value.searchLabelWidth ?? 84)
@@ -571,58 +592,58 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
571
592
  () => q(w.value.searchRowGap, 10)
572
593
  ), b = O(
573
594
  () => Q(w.value.searchPadding ?? "18px 4px 0")
574
- ), j = O(() => w.value.searchCollapse === !1 ? !1 : x(L.value) > M.value), C = O(() => {
595
+ ), j = O(() => w.value.searchCollapse === !1 ? !1 : x(L.value) > T.value), C = O(() => {
575
596
  if (!j.value || !$.value) return L.value;
576
- let T = 0;
597
+ let M = 0;
577
598
  return L.value.filter((X) => {
578
- const ue = V(X);
579
- return T + ue > M.value ? !1 : (T += ue, !0);
599
+ const ue = P(X);
600
+ return M + ue > T.value ? !1 : (M += ue, !0);
580
601
  });
581
- }), z = O(
582
- () => C.value.filter((T) => !!a[`${T.prop}-search`])
602
+ }), N = O(
603
+ () => C.value.filter((M) => !!a[`${M.prop}-search`])
583
604
  ), re = O(() => {
584
- const T = x(C.value);
585
- return C.value.length > 0 && C.value.length <= 2 && T < P.value;
605
+ const M = x(C.value);
606
+ return C.value.length > 0 && C.value.length <= 2 && M < V.value;
586
607
  }), le = O(() => {
587
- const T = x(C.value);
588
- return `${Math.min(P.value, T + 1)}`;
608
+ const M = x(C.value);
609
+ return `${Math.min(V.value, M + 1)}`;
589
610
  }), R = O(
590
- () => C.value.map((T) => E(T))
611
+ () => C.value.map((M) => E(M))
591
612
  );
592
613
  Ee(
593
614
  () => w.value.searchCollapsed,
594
- (T) => {
595
- typeof T == "boolean" && ($.value = T);
615
+ (M) => {
616
+ typeof M == "boolean" && ($.value = M);
596
617
  }
597
618
  ), Ee(
598
619
  () => o.modelValue,
599
- (T) => {
600
- c.value = { ...T };
620
+ (M) => {
621
+ l.value = { ...M };
601
622
  },
602
623
  { deep: !0, immediate: !0 }
603
624
  );
604
- function B(T, X) {
625
+ function B(M, X) {
605
626
  if (s.value) return;
606
- const ue = { ...c.value, [T]: X };
607
- c.value = ue, r("update:modelValue", ue);
627
+ const ue = { ...l.value, [M]: X };
628
+ l.value = ue, r("update:modelValue", ue);
608
629
  }
609
- function E(T) {
610
- const X = T.searchProps ?? {}, ue = T.searchType ?? "input";
630
+ function E(M) {
631
+ const X = M.searchProps ?? {}, ue = M.searchType ?? "input";
611
632
  return {
612
633
  ...X,
613
- prop: T.prop,
614
- label: T.searchLabel ?? T.label,
615
- span: V(T),
634
+ prop: M.prop,
635
+ label: M.searchLabel ?? M.label,
636
+ span: P(M),
616
637
  itemType: ue,
617
638
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
618
- showSlot: !!a[`${T.prop}-search`],
619
- options: X.options ?? T.searchOptions ?? T.dicData,
620
- placeholder: X.placeholder ?? T.searchPlaceholder,
621
- valueFormat: X.valueFormat ?? T.searchValueFormat,
639
+ showSlot: !!a[`${M.prop}-search`],
640
+ options: X.options ?? M.searchOptions ?? M.dicData,
641
+ placeholder: X.placeholder ?? M.searchPlaceholder,
642
+ valueFormat: X.valueFormat ?? M.searchValueFormat,
622
643
  disabled: s.value || X.disabled === !0,
623
644
  formItemProps: {
624
- required: T.searchRequired,
625
- class: ["jt-filter-bar__item", { "is-required": T.searchRequired }]
645
+ required: M.searchRequired,
646
+ class: ["jt-filter-bar__item", { "is-required": M.searchRequired }]
626
647
  },
627
648
  // 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
628
649
  onEnter: (...de) => {
@@ -630,22 +651,22 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
630
651
  },
631
652
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
632
653
  "onUpdate:modelValue": (de) => {
633
- d(X["onUpdate:modelValue"], de), B(T.prop, de);
654
+ d(X["onUpdate:modelValue"], de), B(M.prop, de);
634
655
  }
635
656
  };
636
657
  }
637
- function d(T, ...X) {
638
- if (Array.isArray(T)) {
639
- T.forEach((ue) => d(ue, ...X));
658
+ function d(M, ...X) {
659
+ if (Array.isArray(M)) {
660
+ M.forEach((ue) => d(ue, ...X));
640
661
  return;
641
662
  }
642
- typeof T == "function" && T(...X);
663
+ typeof M == "function" && M(...X);
643
664
  }
644
665
  async function u() {
645
666
  if (!s.value) {
646
- if (i.value)
667
+ if (c.value)
647
668
  try {
648
- await i.value.validate();
669
+ await c.value.validate();
649
670
  } catch {
650
671
  return;
651
672
  }
@@ -658,31 +679,31 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
658
679
  function D() {
659
680
  $.value = !$.value;
660
681
  }
661
- function V(T) {
662
- return Math.min(P.value, Math.max(1, T.searchSpan ?? 1));
682
+ function P(M) {
683
+ return Math.min(V.value, Math.max(1, M.searchSpan ?? 1));
663
684
  }
664
- function x(T) {
665
- return T.reduce((X, ue) => X + V(ue), 0);
685
+ function x(M) {
686
+ return M.reduce((X, ue) => X + P(ue), 0);
666
687
  }
667
- function K(T) {
668
- return typeof T == "number" ? `${T}px` : T;
688
+ function K(M) {
689
+ return typeof M == "number" ? `${M}px` : M;
669
690
  }
670
- function q(T, X) {
671
- return typeof T == "number" ? T : X;
691
+ function q(M, X) {
692
+ return typeof M == "number" ? M : X;
672
693
  }
673
- function Q(T) {
674
- return typeof T == "number" ? `${T}px` : T;
694
+ function Q(M) {
695
+ return typeof M == "number" ? `${M}px` : M;
675
696
  }
676
697
  return t({
677
698
  /** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
678
- formRef: i,
699
+ formRef: c,
679
700
  /** 当前筛选表单禁用态。 */
680
701
  searchDisabled: s,
681
702
  /** 开启筛选表单禁用。 */
682
- searchLoading: l,
703
+ searchLoading: i,
683
704
  /** 关闭筛选表单禁用。 */
684
705
  searchDone: g
685
- }), (T, X) => {
706
+ }), (M, X) => {
686
707
  const ue = tn;
687
708
  return I(), G("div", {
688
709
  class: We(["jt-filter-bar", [
@@ -690,8 +711,8 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
690
711
  { "is-single-filter": re.value }
691
712
  ]]),
692
713
  style: Yt({
693
- "--jt-filter-columns": P.value,
694
- "--jt-filter-field-columns": N.value,
714
+ "--jt-filter-columns": V.value,
715
+ "--jt-filter-field-columns": z.value,
695
716
  "--jt-filter-btns-width": h.value,
696
717
  "--jt-filter-actions-start": le.value,
697
718
  "--jt-filter-label-width": v.value,
@@ -702,9 +723,9 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
702
723
  }, [
703
724
  Ie(ue, {
704
725
  ref_key: "formRef",
705
- ref: i,
726
+ ref: c,
706
727
  class: "jt-filter-bar__form",
707
- model: c.value,
728
+ model: l.value,
708
729
  "label-position": F.value,
709
730
  "label-width": v.value,
710
731
  disabled: J(s),
@@ -714,12 +735,12 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
714
735
  default: U(() => [
715
736
  Ie(J(ko), {
716
737
  configs: R.value,
717
- "form-data": c.value,
738
+ "form-data": l.value,
718
739
  style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
719
740
  }, Re({
720
741
  actions: U(() => [
721
742
  ne("div", Fo, [
722
- te(T.$slots, "search-menu", {
743
+ te(M.$slots, "search-menu", {
723
744
  search: u,
724
745
  reset: _,
725
746
  disabled: J(s),
@@ -784,11 +805,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
784
805
  ]),
785
806
  _: 2
786
807
  }, [
787
- ye(z.value, (de) => ({
808
+ ye(N.value, (de) => ({
788
809
  name: de.prop,
789
810
  fn: U(() => [
790
- te(T.$slots, `${de.prop}-search`, {
791
- value: c.value[de.prop],
811
+ te(M.$slots, `${de.prop}-search`, {
812
+ value: l.value[de.prop],
792
813
  column: de,
793
814
  setValue: (me) => B(de.prop, me),
794
815
  search: u,
@@ -804,7 +825,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
804
825
  ], 6);
805
826
  };
806
827
  }
807
- }), Po = /* @__PURE__ */ be(Vo, [["__scopeId", "data-v-e492ba95"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, No = /* @__PURE__ */ pe({
828
+ }), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-fba58b18"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, zo = /* @__PURE__ */ pe({
808
829
  name: "JtTable",
809
830
  __name: "JtTable",
810
831
  props: {
@@ -814,11 +835,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
814
835
  tableEvents: {}
815
836
  },
816
837
  setup(e, { expose: t }) {
817
- const n = e, o = Le(), r = ge(), i = O(() => n.option ?? {}), a = O(() => n.columns.filter((f) => !f.hide)), c = O(() => i.value.menuFixed ?? "right");
838
+ const n = e, o = Le(), r = ge(), c = O(() => n.option ?? {}), a = O(() => n.columns.filter((f) => !f.hide)), l = O(() => c.value.menuFixed ?? "right");
818
839
  function s(f) {
819
840
  return !!o[`${f}-header`];
820
841
  }
821
- function l(f) {
842
+ function i(f) {
822
843
  return !!o[`${f}-data`];
823
844
  }
824
845
  function g(f) {
@@ -833,7 +854,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
833
854
  };
834
855
  }
835
856
  function w(f) {
836
- return !l(f.prop) && !L(f.columnOptions?.type);
857
+ return !i(f.prop) && !L(f.columnOptions?.type);
837
858
  }
838
859
  function $(f) {
839
860
  return !L(f.columnOptions?.type);
@@ -841,38 +862,38 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
841
862
  function L(f) {
842
863
  return f === "selection" || f === "index" || f === "expand";
843
864
  }
844
- function P(f, S) {
845
- return f.find((M) => M.value === S)?.label ?? String(S ?? "");
865
+ function V(f, S) {
866
+ return f.find((T) => T.value === S)?.label ?? String(S ?? "");
846
867
  }
847
868
  return t({ tableRef: r }), (f, S) => {
848
- const M = on, N = nn;
849
- return I(), H(N, ae({
869
+ const T = on, z = nn;
870
+ return I(), H(z, ae({
850
871
  ref_key: "tableRef",
851
872
  ref: r,
852
873
  data: f.data,
853
- "row-key": i.value.rowKey ?? "id",
854
- "empty-text": i.value.emptyText,
874
+ "row-key": c.value.rowKey ?? "id",
875
+ "empty-text": c.value.emptyText,
855
876
  class: "jt-table"
856
- }, i.value.tableProps, et(f.tableEvents)), {
877
+ }, c.value.tableProps, et(f.tableEvents)), {
857
878
  default: U(() => [
858
- i.value.selection ? (I(), H(M, {
879
+ c.value.selection ? (I(), H(T, {
859
880
  key: 0,
860
881
  type: "selection",
861
882
  width: "55",
862
883
  align: "center"
863
884
  })) : fe("", !0),
864
- i.value.index ? (I(), H(M, {
885
+ c.value.index ? (I(), H(T, {
865
886
  key: 1,
866
887
  type: "index",
867
- label: i.value.indexLabel ?? J(Z)("common.序号"),
888
+ label: c.value.indexLabel ?? J(Z)("common.序号"),
868
889
  width: "60",
869
890
  align: "center"
870
891
  }, null, 8, ["label"])) : fe("", !0),
871
- (I(!0), G(Se, null, ye(a.value, (h) => (I(), H(M, ae({
892
+ (I(!0), G(Se, null, ye(a.value, (h) => (I(), H(T, ae({
872
893
  key: h.prop,
873
894
  prop: h.prop,
874
895
  label: h.label,
875
- formatter: !l(h.prop) && !h.dicData ? h.formatter : void 0,
896
+ formatter: !i(h.prop) && !h.dicData ? h.formatter : void 0,
876
897
  ref_for: !0
877
898
  }, g(h)), Re({ _: 2 }, [
878
899
  s(h.prop) ? {
@@ -885,10 +906,10 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
885
906
  $(h) ? {
886
907
  name: "default",
887
908
  fn: U((v) => [
888
- l(h.prop) ? te(f.$slots, `${h.prop}-data`, ae({
909
+ i(h.prop) ? te(f.$slots, `${h.prop}-data`, ae({
889
910
  key: 0,
890
911
  ref_for: !0
891
- }, v), void 0, !0) : h.dicData ? (I(), G("span", jo, oe(P(h.dicData, v.row[h.prop])), 1)) : h.formatter ? (I(), G("span", Ao, oe(h.formatter(
912
+ }, v), void 0, !0) : h.dicData ? (I(), G("span", jo, oe(V(h.dicData, v.row[h.prop])), 1)) : h.formatter ? (I(), G("span", Ao, oe(h.formatter(
892
913
  v.row,
893
914
  v.column,
894
915
  v.row[h.prop],
@@ -898,13 +919,13 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
898
919
  key: "1"
899
920
  } : void 0
900
921
  ]), 1040, ["prop", "label", "formatter"]))), 128)),
901
- i.value.menu ? (I(), H(M, {
922
+ c.value.menu ? (I(), H(T, {
902
923
  key: 2,
903
- label: i.value.menuLabel ?? J(Z)("common.操作"),
904
- width: i.value.menuWidth,
905
- "min-width": i.value.menuMinWidth,
906
- align: i.value.menuAlign ?? "center",
907
- fixed: c.value
924
+ label: c.value.menuLabel ?? J(Z)("common.操作"),
925
+ width: c.value.menuWidth,
926
+ "min-width": c.value.menuMinWidth,
927
+ align: c.value.menuAlign ?? "center",
928
+ fixed: l.value
908
929
  }, {
909
930
  default: U((h) => [
910
931
  te(f.$slots, "menu", Oe(Be(h)), void 0, !0)
@@ -916,7 +937,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
916
937
  }, 16, ["data", "row-key", "empty-text"]);
917
938
  };
918
939
  }
919
- }), zo = /* @__PURE__ */ be(No, [["__scopeId", "data-v-6a3d1d32"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
940
+ }), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-6976b4e3"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
920
941
  name: "JtPagination",
921
942
  __name: "JtPagination",
922
943
  props: {
@@ -928,10 +949,10 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
928
949
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
929
950
  setup(e, { emit: t }) {
930
951
  const n = e, o = O(() => n.option ?? {}), r = t;
931
- function i(a) {
952
+ function c(a) {
932
953
  r("current-change", a), r("page-change", a);
933
954
  }
934
- return (a, c) => {
955
+ return (a, l) => {
935
956
  const s = oo;
936
957
  return I(), G("div", xo, [
937
958
  Ie(s, {
@@ -940,16 +961,16 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
940
961
  "page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
941
962
  total: a.total,
942
963
  layout: o.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
943
- "onUpdate:currentPage": c[0] || (c[0] = (l) => a.$emit("update:currentPage", l)),
944
- "onUpdate:pageSize": c[1] || (c[1] = (l) => a.$emit("update:pageSize", l)),
945
- onCurrentChange: i,
946
- onSizeChange: c[2] || (c[2] = (l) => a.$emit("size-change", l))
964
+ "onUpdate:currentPage": l[0] || (l[0] = (i) => a.$emit("update:currentPage", i)),
965
+ "onUpdate:pageSize": l[1] || (l[1] = (i) => a.$emit("update:pageSize", i)),
966
+ onCurrentChange: c,
967
+ onSizeChange: l[2] || (l[2] = (i) => a.$emit("size-change", i))
947
968
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
948
969
  ne("span", qo, oe(J(Z)("common.共")) + oe(a.total) + oe(J(Z)("common.条记录")), 1)
949
970
  ]);
950
971
  };
951
972
  }
952
- }), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-37c16fce"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
973
+ }), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-8f04a5d2"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
953
974
  key: 0,
954
975
  class: "jt-crud-table__toolbar"
955
976
  }, Zo = /* @__PURE__ */ pe({
@@ -973,26 +994,26 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
973
994
  }),
974
995
  emits: /* @__PURE__ */ Ft(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
975
996
  setup(e, { expose: t, emit: n }) {
976
- const o = e, r = n, i = vt(e, "currentPage"), a = vt(e, "pageSize"), c = vt(e, "searchModel"), s = Le(), l = ge(), g = ge(), w = O(() => o.option), $ = O(() => w.value.searchShow !== !1), L = O(
997
+ const o = e, r = n, c = vt(e, "currentPage"), a = vt(e, "pageSize"), l = vt(e, "searchModel"), s = Le(), i = ge(), g = ge(), w = O(() => o.option), $ = O(() => w.value.searchShow !== !1), L = O(
977
998
  () => w.value.paginationShow !== !1
978
- ), P = O(
999
+ ), V = O(
979
1000
  () => o.columns.filter((y) => y.search && !!s[`${y.prop}-search`])
980
1001
  ), f = O(
981
1002
  () => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-header`])
982
1003
  ), S = O(
983
1004
  () => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-data`])
984
1005
  );
985
- function M() {
1006
+ function T() {
986
1007
  const y = {};
987
1008
  return o.columns.forEach((A) => {
988
1009
  A.search && (y[A.prop] = void 0);
989
1010
  }), y;
990
1011
  }
991
- function N() {
992
- r("search", { ...c.value });
1012
+ function z() {
1013
+ r("search", { ...l.value });
993
1014
  }
994
1015
  function h() {
995
- c.value = M(), r("reset");
1016
+ l.value = T(), r("reset");
996
1017
  }
997
1018
  function v() {
998
1019
  g.value?.searchLoading();
@@ -1002,7 +1023,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1002
1023
  }
1003
1024
  return t({
1004
1025
  /** 获取内部 el-table 实例 */
1005
- tableRef: O(() => l.value?.tableRef),
1026
+ tableRef: O(() => i.value?.tableRef),
1006
1027
  /** 获取内部筛选条实例 */
1007
1028
  filterBarRef: g,
1008
1029
  /** 开启筛选表单禁用。 */
@@ -1014,18 +1035,18 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1014
1035
  return I(), G("div", Yo, [
1015
1036
  te(y.$slots, "header", {}, void 0, !0),
1016
1037
  ne("div", Uo, [
1017
- $.value ? (I(), H(Po, {
1038
+ $.value ? (I(), H(Vo, {
1018
1039
  key: 0,
1019
1040
  ref_key: "filterBarRef",
1020
1041
  ref: g,
1021
- modelValue: c.value,
1022
- "onUpdate:modelValue": A[0] || (A[0] = (j) => c.value = j),
1042
+ modelValue: l.value,
1043
+ "onUpdate:modelValue": A[0] || (A[0] = (j) => l.value = j),
1023
1044
  columns: y.columns,
1024
1045
  option: w.value,
1025
- onSearch: N,
1046
+ onSearch: z,
1026
1047
  onReset: h
1027
1048
  }, Re({ _: 2 }, [
1028
- ye(P.value, (j) => ({
1049
+ ye(V.value, (j) => ({
1029
1050
  name: `${j.prop}-search`,
1030
1051
  fn: U((C) => [
1031
1052
  te(y.$slots, `${j.prop}-search`, Oe(Be(C)), void 0, !0)
@@ -1038,9 +1059,9 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1038
1059
  J(s).toolbar ? (I(), G("div", Wo, [
1039
1060
  te(y.$slots, "toolbar", {}, void 0, !0)
1040
1061
  ])) : fe("", !0),
1041
- Qn((I(), H(zo, {
1062
+ Qn((I(), H(No, {
1042
1063
  ref_key: "jtTableRef",
1043
- ref: l,
1064
+ ref: i,
1044
1065
  data: y.data,
1045
1066
  columns: y.columns,
1046
1067
  option: w.value,
@@ -1071,8 +1092,8 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1071
1092
  ]),
1072
1093
  L.value ? (I(), H(Ko, {
1073
1094
  key: 0,
1074
- "current-page": i.value,
1075
- "onUpdate:currentPage": A[1] || (A[1] = (j) => i.value = j),
1095
+ "current-page": c.value,
1096
+ "onUpdate:currentPage": A[1] || (A[1] = (j) => c.value = j),
1076
1097
  "page-size": a.value,
1077
1098
  "onUpdate:pageSize": A[2] || (A[2] = (j) => a.value = j),
1078
1099
  total: y.total,
@@ -1084,7 +1105,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1084
1105
  ]);
1085
1106
  };
1086
1107
  }
1087
- }), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-335c2682"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
1108
+ }), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-3454628a"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
1088
1109
  key: 0,
1089
1110
  class: "jt-page-header__operates"
1090
1111
  }, tr = /* @__PURE__ */ pe({
@@ -1097,35 +1118,35 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1097
1118
  },
1098
1119
  emits: ["operate-click"],
1099
1120
  setup(e, { emit: t }) {
1100
- const n = e, o = t, r = Le(), i = O(() => n.operates.length > 0 || !!r.operates);
1101
- function a(c, s) {
1102
- c.onClick?.(c, s), o("operate-click", c, s);
1121
+ const n = e, o = t, r = Le(), c = O(() => n.operates.length > 0 || !!r.operates);
1122
+ function a(l, s) {
1123
+ l.onClick?.(l, s), o("operate-click", l, s);
1103
1124
  }
1104
- return (c, s) => (I(), G("div", ae({
1105
- class: ["jt-page-header", `jt-page-header--${c.type}`]
1106
- }, c.$attrs), [
1125
+ return (l, s) => (I(), G("div", ae({
1126
+ class: ["jt-page-header", `jt-page-header--${l.type}`]
1127
+ }, l.$attrs), [
1107
1128
  ne("div", Qo, [
1108
- te(c.$slots, "title", {}, () => [
1109
- c.title ? (I(), G("span", Xo, oe(c.title), 1)) : fe("", !0)
1129
+ te(l.$slots, "title", {}, () => [
1130
+ l.title ? (I(), G("span", Xo, oe(l.title), 1)) : fe("", !0)
1110
1131
  ], !0)
1111
1132
  ]),
1112
- i.value ? (I(), G("div", er, [
1113
- te(c.$slots, "operates", { operates: c.operates }, () => [
1114
- (I(!0), G(Se, null, ye(c.operates, (l) => (I(), H(J(rt), ae({
1115
- key: l.key ?? l.label,
1133
+ c.value ? (I(), G("div", er, [
1134
+ te(l.$slots, "operates", { operates: l.operates }, () => [
1135
+ (I(!0), G(Se, null, ye(l.operates, (i) => (I(), H(J(rt), ae({
1136
+ key: i.key ?? i.label,
1116
1137
  ref_for: !0
1117
- }, l.buttonProps, {
1118
- type: l.type,
1119
- disabled: l.disabled,
1120
- loading: l.loading,
1121
- plain: l.plain,
1122
- text: l.text,
1123
- link: l.link,
1124
- icon: l.icon,
1125
- onClick: (g) => a(l, g)
1138
+ }, i.buttonProps, {
1139
+ type: i.type,
1140
+ disabled: i.disabled,
1141
+ loading: i.loading,
1142
+ plain: i.plain,
1143
+ text: i.text,
1144
+ link: i.link,
1145
+ icon: i.icon,
1146
+ onClick: (g) => a(i, g)
1126
1147
  }), {
1127
1148
  default: U(() => [
1128
- ne("span", null, oe(l.label), 1)
1149
+ ne("span", null, oe(i.label), 1)
1129
1150
  ]),
1130
1151
  _: 2
1131
1152
  }, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
@@ -1133,21 +1154,21 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1133
1154
  ])) : fe("", !0)
1134
1155
  ], 16));
1135
1156
  }
1136
- }), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-0926ebf1"]]);
1157
+ }), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-bbbd4ec6"]]);
1137
1158
  function nr(e, t) {
1138
1159
  t = t || (() => "default-use-once-sync");
1139
1160
  const n = /* @__PURE__ */ new Map();
1140
1161
  async function o(...r) {
1141
- const i = t(...r);
1142
- if (n.get(i))
1143
- return n.get(i);
1162
+ const c = t(...r);
1163
+ if (n.get(c))
1164
+ return n.get(c);
1144
1165
  try {
1145
- const a = e(...r).then((c) => c).catch((c) => {
1146
- throw c;
1166
+ const a = e(...r).then((l) => l).catch((l) => {
1167
+ throw l;
1147
1168
  });
1148
- return n.set(i, a), a;
1169
+ return n.set(c, a), a;
1149
1170
  } catch (a) {
1150
- throw n.set(i, null), a;
1171
+ throw n.set(c, null), a;
1151
1172
  }
1152
1173
  }
1153
1174
  return o.bind(e);
@@ -1156,12 +1177,12 @@ function ln(e, t) {
1156
1177
  t = t || (() => "default-use-queue-sync");
1157
1178
  const n = /* @__PURE__ */ new Map();
1158
1179
  async function o(...r) {
1159
- const i = t(...r), a = Symbol("single");
1160
- return n.set(i, a), new Promise((c, s) => {
1161
- e(...r).then((l) => {
1162
- n.get(i) === a && c(l);
1163
- }).catch((l) => {
1164
- n.get(i) === a && s(l);
1180
+ const c = t(...r), a = Symbol("single");
1181
+ return n.set(c, a), new Promise((l, s) => {
1182
+ e(...r).then((i) => {
1183
+ n.get(c) === a && l(i);
1184
+ }).catch((i) => {
1185
+ n.get(c) === a && s(i);
1165
1186
  });
1166
1187
  });
1167
1188
  }
@@ -1176,7 +1197,7 @@ var cn = { exports: {} };
1176
1197
  (function(n, o) {
1177
1198
  e.exports = o();
1178
1199
  })(it, function() {
1179
- var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", a = "second", c = "minute", s = "hour", l = "day", g = "week", w = "month", $ = "quarter", L = "year", P = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
1200
+ var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", a = "second", l = "minute", s = "hour", i = "day", g = "week", w = "month", $ = "quarter", L = "year", V = "date", f = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, z = { 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) {
1180
1201
  var B = ["th", "st", "nd", "rd"], E = R % 100;
1181
1202
  return "[" + R + (B[(E - 20) % 10] || B[E] || B[0]) + "]";
1182
1203
  } }, h = function(R, B, E) {
@@ -1192,11 +1213,11 @@ var cn = { exports: {} };
1192
1213
  }, a: function(R) {
1193
1214
  return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
1194
1215
  }, p: function(R) {
1195
- return { M: w, y: L, w: g, d: l, D: P, h: s, m: c, s: a, ms: i, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1216
+ return { M: w, y: L, w: g, d: i, D: V, h: s, m: l, s: a, ms: c, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1196
1217
  }, u: function(R) {
1197
1218
  return R === void 0;
1198
1219
  } }, F = "en", y = {};
1199
- y[F] = N;
1220
+ y[F] = z;
1200
1221
  var A = "$isDayjsObject", b = function(R) {
1201
1222
  return R instanceof re || !(!R || !R[A]);
1202
1223
  }, j = function R(B, E, d) {
@@ -1208,16 +1229,16 @@ var cn = { exports: {} };
1208
1229
  var D = B.split("-");
1209
1230
  if (!u && D.length > 1) return R(D[0]);
1210
1231
  } else {
1211
- var V = B.name;
1212
- y[V] = B, u = V;
1232
+ var P = B.name;
1233
+ y[P] = B, u = P;
1213
1234
  }
1214
1235
  return !d && u && (F = u), u || !d && F;
1215
1236
  }, C = function(R, B) {
1216
1237
  if (b(R)) return R.clone();
1217
1238
  var E = typeof B == "object" ? B : {};
1218
1239
  return E.date = R, E.args = arguments, new re(E);
1219
- }, z = v;
1220
- z.l = j, z.i = b, z.w = function(R, B) {
1240
+ }, N = v;
1241
+ N.l = j, N.i = b, N.w = function(R, B) {
1221
1242
  return C(R, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
1222
1243
  };
1223
1244
  var re = function() {
@@ -1229,13 +1250,13 @@ var cn = { exports: {} };
1229
1250
  this.$d = function(d) {
1230
1251
  var u = d.date, _ = d.utc;
1231
1252
  if (u === null) return /* @__PURE__ */ new Date(NaN);
1232
- if (z.u(u)) return /* @__PURE__ */ new Date();
1253
+ if (N.u(u)) return /* @__PURE__ */ new Date();
1233
1254
  if (u instanceof Date) return new Date(u);
1234
1255
  if (typeof u == "string" && !/Z$/i.test(u)) {
1235
1256
  var D = u.match(S);
1236
1257
  if (D) {
1237
- var V = D[2] - 1 || 0, x = (D[7] || "0").substring(0, 3);
1238
- return _ ? new Date(Date.UTC(D[1], V, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x)) : new Date(D[1], V, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x);
1258
+ var P = D[2] - 1 || 0, x = (D[7] || "0").substring(0, 3);
1259
+ return _ ? new Date(Date.UTC(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x)) : new Date(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, x);
1239
1260
  }
1240
1261
  }
1241
1262
  return new Date(u);
@@ -1244,7 +1265,7 @@ var cn = { exports: {} };
1244
1265
  var E = this.$d;
1245
1266
  this.$y = E.getFullYear(), this.$M = E.getMonth(), this.$D = E.getDate(), this.$W = E.getDay(), this.$H = E.getHours(), this.$m = E.getMinutes(), this.$s = E.getSeconds(), this.$ms = E.getMilliseconds();
1246
1267
  }, B.$utils = function() {
1247
- return z;
1268
+ return N;
1248
1269
  }, B.isValid = function() {
1249
1270
  return this.$d.toString() !== f;
1250
1271
  }, B.isSame = function(E, d) {
@@ -1255,88 +1276,88 @@ var cn = { exports: {} };
1255
1276
  }, B.isBefore = function(E, d) {
1256
1277
  return this.endOf(d) < C(E);
1257
1278
  }, B.$g = function(E, d, u) {
1258
- return z.u(E) ? this[d] : this.set(u, E);
1279
+ return N.u(E) ? this[d] : this.set(u, E);
1259
1280
  }, B.unix = function() {
1260
1281
  return Math.floor(this.valueOf() / 1e3);
1261
1282
  }, B.valueOf = function() {
1262
1283
  return this.$d.getTime();
1263
1284
  }, B.startOf = function(E, d) {
1264
- var u = this, _ = !!z.u(d) || d, D = z.p(E), V = function(de, me) {
1265
- var we = z.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
1266
- return _ ? we : we.endOf(l);
1285
+ var u = this, _ = !!N.u(d) || d, D = N.p(E), P = function(de, me) {
1286
+ var we = N.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
1287
+ return _ ? we : we.endOf(i);
1267
1288
  }, x = function(de, me) {
1268
- return z.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1269
- }, K = this.$W, q = this.$M, Q = this.$D, T = "set" + (this.$u ? "UTC" : "");
1289
+ return N.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1290
+ }, K = this.$W, q = this.$M, Q = this.$D, M = "set" + (this.$u ? "UTC" : "");
1270
1291
  switch (D) {
1271
1292
  case L:
1272
- return _ ? V(1, 0) : V(31, 11);
1293
+ return _ ? P(1, 0) : P(31, 11);
1273
1294
  case w:
1274
- return _ ? V(1, q) : V(0, q + 1);
1295
+ return _ ? P(1, q) : P(0, q + 1);
1275
1296
  case g:
1276
1297
  var X = this.$locale().weekStart || 0, ue = (K < X ? K + 7 : K) - X;
1277
- return V(_ ? Q - ue : Q + (6 - ue), q);
1278
- case l:
1279
- case P:
1280
- return x(T + "Hours", 0);
1298
+ return P(_ ? Q - ue : Q + (6 - ue), q);
1299
+ case i:
1300
+ case V:
1301
+ return x(M + "Hours", 0);
1281
1302
  case s:
1282
- return x(T + "Minutes", 1);
1283
- case c:
1284
- return x(T + "Seconds", 2);
1303
+ return x(M + "Minutes", 1);
1304
+ case l:
1305
+ return x(M + "Seconds", 2);
1285
1306
  case a:
1286
- return x(T + "Milliseconds", 3);
1307
+ return x(M + "Milliseconds", 3);
1287
1308
  default:
1288
1309
  return this.clone();
1289
1310
  }
1290
1311
  }, B.endOf = function(E) {
1291
1312
  return this.startOf(E, !1);
1292
1313
  }, B.$set = function(E, d) {
1293
- var u, _ = z.p(E), D = "set" + (this.$u ? "UTC" : ""), V = (u = {}, u[l] = D + "Date", u[P] = D + "Date", u[w] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[c] = D + "Minutes", u[a] = D + "Seconds", u[i] = D + "Milliseconds", u)[_], x = _ === l ? this.$D + (d - this.$W) : d;
1314
+ var u, _ = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[i] = D + "Date", u[V] = D + "Date", u[w] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[l] = D + "Minutes", u[a] = D + "Seconds", u[c] = D + "Milliseconds", u)[_], x = _ === i ? this.$D + (d - this.$W) : d;
1294
1315
  if (_ === w || _ === L) {
1295
- var K = this.clone().set(P, 1);
1296
- K.$d[V](x), K.init(), this.$d = K.set(P, Math.min(this.$D, K.daysInMonth())).$d;
1297
- } else V && this.$d[V](x);
1316
+ var K = this.clone().set(V, 1);
1317
+ K.$d[P](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
1318
+ } else P && this.$d[P](x);
1298
1319
  return this.init(), this;
1299
1320
  }, B.set = function(E, d) {
1300
1321
  return this.clone().$set(E, d);
1301
1322
  }, B.get = function(E) {
1302
- return this[z.p(E)]();
1323
+ return this[N.p(E)]();
1303
1324
  }, B.add = function(E, d) {
1304
1325
  var u, _ = this;
1305
1326
  E = Number(E);
1306
- var D = z.p(d), V = function(q) {
1327
+ var D = N.p(d), P = function(q) {
1307
1328
  var Q = C(_);
1308
- return z.w(Q.date(Q.date() + Math.round(q * E)), _);
1329
+ return N.w(Q.date(Q.date() + Math.round(q * E)), _);
1309
1330
  };
1310
1331
  if (D === w) return this.set(w, this.$M + E);
1311
1332
  if (D === L) return this.set(L, this.$y + E);
1312
- if (D === l) return V(1);
1313
- if (D === g) return V(7);
1314
- var x = (u = {}, u[c] = o, u[s] = r, u[a] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1315
- return z.w(K, this);
1333
+ if (D === i) return P(1);
1334
+ if (D === g) return P(7);
1335
+ var x = (u = {}, u[l] = o, u[s] = r, u[a] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1336
+ return N.w(K, this);
1316
1337
  }, B.subtract = function(E, d) {
1317
1338
  return this.add(-1 * E, d);
1318
1339
  }, B.format = function(E) {
1319
1340
  var d = this, u = this.$locale();
1320
1341
  if (!this.isValid()) return u.invalidDate || f;
1321
- var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D = z.z(this), V = this.$H, x = this.$m, K = this.$M, q = u.weekdays, Q = u.months, T = u.meridiem, X = function(me, we, De, $e) {
1342
+ var _ = E || "YYYY-MM-DDTHH:mm:ssZ", D = N.z(this), P = this.$H, x = this.$m, K = this.$M, q = u.weekdays, Q = u.months, M = u.meridiem, X = function(me, we, De, $e) {
1322
1343
  return me && (me[we] || me(d, _)) || De[we].slice(0, $e);
1323
1344
  }, ue = function(me) {
1324
- return z.s(V % 12 || 12, me, "0");
1325
- }, de = T || function(me, we, De) {
1345
+ return N.s(P % 12 || 12, me, "0");
1346
+ }, de = M || function(me, we, De) {
1326
1347
  var $e = me < 12 ? "AM" : "PM";
1327
1348
  return De ? $e.toLowerCase() : $e;
1328
1349
  };
1329
- return _.replace(M, function(me, we) {
1350
+ return _.replace(T, function(me, we) {
1330
1351
  return we || function(De) {
1331
1352
  switch (De) {
1332
1353
  case "YY":
1333
1354
  return String(d.$y).slice(-2);
1334
1355
  case "YYYY":
1335
- return z.s(d.$y, 4, "0");
1356
+ return N.s(d.$y, 4, "0");
1336
1357
  case "M":
1337
1358
  return K + 1;
1338
1359
  case "MM":
1339
- return z.s(K + 1, 2, "0");
1360
+ return N.s(K + 1, 2, "0");
1340
1361
  case "MMM":
1341
1362
  return X(u.monthsShort, K, Q, 3);
1342
1363
  case "MMMM":
@@ -1344,7 +1365,7 @@ var cn = { exports: {} };
1344
1365
  case "D":
1345
1366
  return d.$D;
1346
1367
  case "DD":
1347
- return z.s(d.$D, 2, "0");
1368
+ return N.s(d.$D, 2, "0");
1348
1369
  case "d":
1349
1370
  return String(d.$W);
1350
1371
  case "dd":
@@ -1354,27 +1375,27 @@ var cn = { exports: {} };
1354
1375
  case "dddd":
1355
1376
  return q[d.$W];
1356
1377
  case "H":
1357
- return String(V);
1378
+ return String(P);
1358
1379
  case "HH":
1359
- return z.s(V, 2, "0");
1380
+ return N.s(P, 2, "0");
1360
1381
  case "h":
1361
1382
  return ue(1);
1362
1383
  case "hh":
1363
1384
  return ue(2);
1364
1385
  case "a":
1365
- return de(V, x, !0);
1386
+ return de(P, x, !0);
1366
1387
  case "A":
1367
- return de(V, x, !1);
1388
+ return de(P, x, !1);
1368
1389
  case "m":
1369
1390
  return String(x);
1370
1391
  case "mm":
1371
- return z.s(x, 2, "0");
1392
+ return N.s(x, 2, "0");
1372
1393
  case "s":
1373
1394
  return String(d.$s);
1374
1395
  case "ss":
1375
- return z.s(d.$s, 2, "0");
1396
+ return N.s(d.$s, 2, "0");
1376
1397
  case "SSS":
1377
- return z.s(d.$ms, 3, "0");
1398
+ return N.s(d.$ms, 3, "0");
1378
1399
  case "Z":
1379
1400
  return D;
1380
1401
  }
@@ -1384,10 +1405,10 @@ var cn = { exports: {} };
1384
1405
  }, B.utcOffset = function() {
1385
1406
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1386
1407
  }, B.diff = function(E, d, u) {
1387
- var _, D = this, V = z.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
1388
- return z.m(D, x);
1408
+ var _, D = this, P = N.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
1409
+ return N.m(D, x);
1389
1410
  };
1390
- switch (V) {
1411
+ switch (P) {
1391
1412
  case L:
1392
1413
  _ = Q() / 12;
1393
1414
  break;
@@ -1400,13 +1421,13 @@ var cn = { exports: {} };
1400
1421
  case g:
1401
1422
  _ = (q - K) / 6048e5;
1402
1423
  break;
1403
- case l:
1424
+ case i:
1404
1425
  _ = (q - K) / 864e5;
1405
1426
  break;
1406
1427
  case s:
1407
1428
  _ = q / r;
1408
1429
  break;
1409
- case c:
1430
+ case l:
1410
1431
  _ = q / o;
1411
1432
  break;
1412
1433
  case a:
@@ -1415,7 +1436,7 @@ var cn = { exports: {} };
1415
1436
  default:
1416
1437
  _ = q;
1417
1438
  }
1418
- return u ? _ : z.a(_);
1439
+ return u ? _ : N.a(_);
1419
1440
  }, B.daysInMonth = function() {
1420
1441
  return this.endOf(w).$D;
1421
1442
  }, B.$locale = function() {
@@ -1425,7 +1446,7 @@ var cn = { exports: {} };
1425
1446
  var u = this.clone(), _ = j(E, d, !0);
1426
1447
  return _ && (u.$L = _), u;
1427
1448
  }, B.clone = function() {
1428
- return z.w(this.$d, this);
1449
+ return N.w(this.$d, this);
1429
1450
  }, B.toDate = function() {
1430
1451
  return new Date(this.valueOf());
1431
1452
  }, B.toJSON = function() {
@@ -1436,7 +1457,7 @@ var cn = { exports: {} };
1436
1457
  return this.$d.toUTCString();
1437
1458
  }, R;
1438
1459
  }(), le = re.prototype;
1439
- return C.prototype = le, [["$ms", i], ["$s", a], ["$m", c], ["$H", s], ["$W", l], ["$M", w], ["$y", L], ["$D", P]].forEach(function(R) {
1460
+ return C.prototype = le, [["$ms", c], ["$s", a], ["$m", l], ["$H", s], ["$W", i], ["$M", w], ["$y", L], ["$D", V]].forEach(function(R) {
1440
1461
  le[R[1]] = function(B) {
1441
1462
  return this.$g(B, R[0], R[1]);
1442
1463
  };
@@ -1454,111 +1475,111 @@ var un = { exports: {} };
1454
1475
  (function(n, o) {
1455
1476
  e.exports = o();
1456
1477
  })(it, function() {
1457
- 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/, a = /\d\d?/, c = /\d*[^-_:/,()\s\d]+/, s = {}, l = function(S) {
1478
+ 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/, c = /\d\d/, a = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(S) {
1458
1479
  return (S = +S) + (S > 68 ? 1900 : 2e3);
1459
1480
  }, g = function(S) {
1460
- return function(M) {
1461
- this[S] = +M;
1481
+ return function(T) {
1482
+ this[S] = +T;
1462
1483
  };
1463
1484
  }, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
1464
- (this.zone || (this.zone = {})).offset = function(M) {
1465
- if (!M || M === "Z") return 0;
1466
- var N = M.match(/([+-]|\d\d)/g), h = 60 * N[1] + (+N[2] || 0);
1467
- return h === 0 ? 0 : N[0] === "+" ? -h : h;
1485
+ (this.zone || (this.zone = {})).offset = function(T) {
1486
+ if (!T || T === "Z") return 0;
1487
+ var z = T.match(/([+-]|\d\d)/g), h = 60 * z[1] + (+z[2] || 0);
1488
+ return h === 0 ? 0 : z[0] === "+" ? -h : h;
1468
1489
  }(S);
1469
1490
  }], $ = function(S) {
1470
- var M = s[S];
1471
- return M && (M.indexOf ? M : M.s.concat(M.f));
1472
- }, L = function(S, M) {
1473
- var N, h = s.meridiem;
1491
+ var T = s[S];
1492
+ return T && (T.indexOf ? T : T.s.concat(T.f));
1493
+ }, L = function(S, T) {
1494
+ var z, h = s.meridiem;
1474
1495
  if (h) {
1475
- for (var v = 1; v <= 24; v += 1) if (S.indexOf(h(v, 0, M)) > -1) {
1476
- N = v > 12;
1496
+ for (var v = 1; v <= 24; v += 1) if (S.indexOf(h(v, 0, T)) > -1) {
1497
+ z = v > 12;
1477
1498
  break;
1478
1499
  }
1479
- } else N = S === (M ? "pm" : "PM");
1480
- return N;
1481
- }, P = { A: [c, function(S) {
1500
+ } else z = S === (T ? "pm" : "PM");
1501
+ return z;
1502
+ }, V = { A: [l, function(S) {
1482
1503
  this.afternoon = L(S, !1);
1483
- }], a: [c, function(S) {
1504
+ }], a: [l, function(S) {
1484
1505
  this.afternoon = L(S, !0);
1485
1506
  }], Q: [r, function(S) {
1486
1507
  this.month = 3 * (S - 1) + 1;
1487
1508
  }], S: [r, function(S) {
1488
1509
  this.milliseconds = 100 * +S;
1489
- }], SS: [i, function(S) {
1510
+ }], SS: [c, function(S) {
1490
1511
  this.milliseconds = 10 * +S;
1491
1512
  }], SSS: [/\d{3}/, function(S) {
1492
1513
  this.milliseconds = +S;
1493
- }], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [i, g("day")], Do: [c, function(S) {
1494
- var M = s.ordinal, N = S.match(/\d+/);
1495
- if (this.day = N[0], M) for (var h = 1; h <= 31; h += 1) M(h).replace(/\[|\]/g, "") === S && (this.day = h);
1496
- }], w: [a, g("week")], ww: [i, g("week")], M: [a, g("month")], MM: [i, g("month")], MMM: [c, function(S) {
1497
- var M = $("months"), N = ($("monthsShort") || M.map(function(h) {
1514
+ }], s: [a, g("seconds")], ss: [a, g("seconds")], m: [a, g("minutes")], mm: [a, g("minutes")], H: [a, g("hours")], h: [a, g("hours")], HH: [a, g("hours")], hh: [a, g("hours")], D: [a, g("day")], DD: [c, g("day")], Do: [l, function(S) {
1515
+ var T = s.ordinal, z = S.match(/\d+/);
1516
+ if (this.day = z[0], T) for (var h = 1; h <= 31; h += 1) T(h).replace(/\[|\]/g, "") === S && (this.day = h);
1517
+ }], w: [a, g("week")], ww: [c, g("week")], M: [a, g("month")], MM: [c, g("month")], MMM: [l, function(S) {
1518
+ var T = $("months"), z = ($("monthsShort") || T.map(function(h) {
1498
1519
  return h.slice(0, 3);
1499
1520
  })).indexOf(S) + 1;
1500
- if (N < 1) throw new Error();
1501
- this.month = N % 12 || N;
1502
- }], MMMM: [c, function(S) {
1503
- var M = $("months").indexOf(S) + 1;
1504
- if (M < 1) throw new Error();
1505
- this.month = M % 12 || M;
1506
- }], Y: [/[+-]?\d+/, g("year")], YY: [i, function(S) {
1507
- this.year = l(S);
1521
+ if (z < 1) throw new Error();
1522
+ this.month = z % 12 || z;
1523
+ }], MMMM: [l, function(S) {
1524
+ var T = $("months").indexOf(S) + 1;
1525
+ if (T < 1) throw new Error();
1526
+ this.month = T % 12 || T;
1527
+ }], Y: [/[+-]?\d+/, g("year")], YY: [c, function(S) {
1528
+ this.year = i(S);
1508
1529
  }], YYYY: [/\d{4}/, g("year")], Z: w, ZZ: w };
1509
1530
  function f(S) {
1510
- var M, N;
1511
- M = S, N = s && s.formats;
1512
- for (var h = (S = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, z, re) {
1531
+ var T, z;
1532
+ T = S, z = s && s.formats;
1533
+ for (var h = (S = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, N, re) {
1513
1534
  var le = re && re.toUpperCase();
1514
- return z || N[re] || n[re] || N[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
1535
+ return N || z[re] || n[re] || z[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
1515
1536
  return B || E.slice(1);
1516
1537
  });
1517
1538
  })).match(o), v = h.length, F = 0; F < v; F += 1) {
1518
- var y = h[F], A = P[y], b = A && A[0], j = A && A[1];
1539
+ var y = h[F], A = V[y], b = A && A[0], j = A && A[1];
1519
1540
  h[F] = j ? { regex: b, parser: j } : y.replace(/^\[|\]$/g, "");
1520
1541
  }
1521
1542
  return function(C) {
1522
- for (var z = {}, re = 0, le = 0; re < v; re += 1) {
1543
+ for (var N = {}, re = 0, le = 0; re < v; re += 1) {
1523
1544
  var R = h[re];
1524
1545
  if (typeof R == "string") le += R.length;
1525
1546
  else {
1526
1547
  var B = R.regex, E = R.parser, d = C.slice(le), u = B.exec(d)[0];
1527
- E.call(z, u), C = C.replace(u, "");
1548
+ E.call(N, u), C = C.replace(u, "");
1528
1549
  }
1529
1550
  }
1530
1551
  return function(_) {
1531
1552
  var D = _.afternoon;
1532
1553
  if (D !== void 0) {
1533
- var V = _.hours;
1534
- D ? V < 12 && (_.hours += 12) : V === 12 && (_.hours = 0), delete _.afternoon;
1554
+ var P = _.hours;
1555
+ D ? P < 12 && (_.hours += 12) : P === 12 && (_.hours = 0), delete _.afternoon;
1535
1556
  }
1536
- }(z), z;
1557
+ }(N), N;
1537
1558
  };
1538
1559
  }
1539
- return function(S, M, N) {
1540
- N.p.customParseFormat = !0, S && S.parseTwoDigitYear && (l = S.parseTwoDigitYear);
1541
- var h = M.prototype, v = h.parse;
1560
+ return function(S, T, z) {
1561
+ z.p.customParseFormat = !0, S && S.parseTwoDigitYear && (i = S.parseTwoDigitYear);
1562
+ var h = T.prototype, v = h.parse;
1542
1563
  h.parse = function(F) {
1543
1564
  var y = F.date, A = F.utc, b = F.args;
1544
1565
  this.$u = A;
1545
1566
  var j = b[1];
1546
1567
  if (typeof j == "string") {
1547
- var C = b[2] === !0, z = b[3] === !0, re = C || z, le = b[2];
1548
- z && (le = b[2]), s = this.$locale(), !C && le && (s = N.Ls[le]), this.$d = function(d, u, _, D) {
1568
+ var C = b[2] === !0, N = b[3] === !0, re = C || N, le = b[2];
1569
+ N && (le = b[2]), s = this.$locale(), !C && le && (s = z.Ls[le]), this.$d = function(d, u, _, D) {
1549
1570
  try {
1550
1571
  if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
1551
- var V = f(u)(d), x = V.year, K = V.month, q = V.day, Q = V.hours, T = V.minutes, X = V.seconds, ue = V.milliseconds, de = V.zone, me = V.week, we = /* @__PURE__ */ new Date(), De = q || (x || K ? 1 : we.getDate()), $e = x || we.getFullYear(), xe = 0;
1572
+ var P = f(u)(d), x = P.year, K = P.month, q = P.day, Q = P.hours, M = P.minutes, X = P.seconds, ue = P.milliseconds, de = P.zone, me = P.week, we = /* @__PURE__ */ new Date(), De = q || (x || K ? 1 : we.getDate()), $e = x || we.getFullYear(), xe = 0;
1552
1573
  x && !K || (xe = K > 0 ? K - 1 : we.getMonth());
1553
- var qe, nt = Q || 0, Ge = T || 0, m = X || 0, p = ue || 0;
1574
+ var qe, nt = Q || 0, Ge = M || 0, m = X || 0, p = ue || 0;
1554
1575
  return de ? new Date(Date.UTC($e, xe, De, nt, Ge, m, p + 60 * de.offset * 1e3)) : _ ? new Date(Date.UTC($e, xe, De, nt, Ge, m, p)) : (qe = new Date($e, xe, De, nt, Ge, m, p), me && (qe = D(qe).week(me).toDate()), qe);
1555
1576
  } catch {
1556
1577
  return /* @__PURE__ */ new Date("");
1557
1578
  }
1558
- }(y, j, A, N), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && y != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
1579
+ }(y, j, A, z), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), re && y != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
1559
1580
  } else if (j instanceof Array) for (var R = j.length, B = 1; B <= R; B += 1) {
1560
1581
  b[1] = j[B - 1];
1561
- var E = N.apply(this, b);
1582
+ var E = z.apply(this, b);
1562
1583
  if (E.isValid()) {
1563
1584
  this.$d = E.$d, this.$L = E.$L, this.init();
1564
1585
  break;
@@ -1578,57 +1599,57 @@ var dn = { exports: {} };
1578
1599
  e.exports = o();
1579
1600
  })(it, function() {
1580
1601
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1581
- return function(r, i, a) {
1582
- var c, s = function($, L, P) {
1583
- P === void 0 && (P = {});
1584
- var f = new Date($), S = function(M, N) {
1585
- N === void 0 && (N = {});
1586
- var h = N.timeZoneName || "short", v = M + "|" + h, F = o[v];
1587
- return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: h }), o[v] = F), F;
1588
- }(L, P);
1602
+ return function(r, c, a) {
1603
+ var l, s = function($, L, V) {
1604
+ V === void 0 && (V = {});
1605
+ var f = new Date($), S = function(T, z) {
1606
+ z === void 0 && (z = {});
1607
+ var h = z.timeZoneName || "short", v = T + "|" + h, F = o[v];
1608
+ return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: T, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: h }), o[v] = F), F;
1609
+ }(L, V);
1589
1610
  return S.formatToParts(f);
1590
- }, l = function($, L) {
1591
- for (var P = s($, L), f = [], S = 0; S < P.length; S += 1) {
1592
- var M = P[S], N = M.type, h = M.value, v = n[N];
1611
+ }, i = function($, L) {
1612
+ for (var V = s($, L), f = [], S = 0; S < V.length; S += 1) {
1613
+ var T = V[S], z = T.type, h = T.value, v = n[z];
1593
1614
  v >= 0 && (f[v] = parseInt(h, 10));
1594
1615
  }
1595
1616
  var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +$;
1596
1617
  return (a.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
1597
- }, g = i.prototype;
1618
+ }, g = c.prototype;
1598
1619
  g.tz = function($, L) {
1599
- $ === void 0 && ($ = c);
1600
- var P, f = this.utcOffset(), S = this.toDate(), M = S.toLocaleString("en-US", { timeZone: $ }), N = Math.round((S - new Date(M)) / 1e3 / 60), h = 15 * -Math.round(S.getTimezoneOffset() / 15) - N;
1601
- if (!Number(h)) P = this.utcOffset(0, L);
1602
- else if (P = a(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(h, !0), L) {
1603
- var v = P.utcOffset();
1604
- P = P.add(f - v, "minute");
1620
+ $ === void 0 && ($ = l);
1621
+ var V, f = this.utcOffset(), S = this.toDate(), T = S.toLocaleString("en-US", { timeZone: $ }), z = Math.round((S - new Date(T)) / 1e3 / 60), h = 15 * -Math.round(S.getTimezoneOffset() / 15) - z;
1622
+ if (!Number(h)) V = this.utcOffset(0, L);
1623
+ else if (V = a(T, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(h, !0), L) {
1624
+ var v = V.utcOffset();
1625
+ V = V.add(f - v, "minute");
1605
1626
  }
1606
- return P.$x.$timezone = $, P;
1627
+ return V.$x.$timezone = $, V;
1607
1628
  }, g.offsetName = function($) {
1608
- var L = this.$x.$timezone || a.tz.guess(), P = s(this.valueOf(), L, { timeZoneName: $ }).find(function(f) {
1629
+ var L = this.$x.$timezone || a.tz.guess(), V = s(this.valueOf(), L, { timeZoneName: $ }).find(function(f) {
1609
1630
  return f.type.toLowerCase() === "timezonename";
1610
1631
  });
1611
- return P && P.value;
1632
+ return V && V.value;
1612
1633
  };
1613
1634
  var w = g.startOf;
1614
1635
  g.startOf = function($, L) {
1615
1636
  if (!this.$x || !this.$x.$timezone) return w.call(this, $, L);
1616
- var P = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1617
- return w.call(P, $, L).tz(this.$x.$timezone, !0);
1618
- }, a.tz = function($, L, P) {
1619
- var f = P && L, S = P || L || c, M = l(+a(), S);
1637
+ var V = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1638
+ return w.call(V, $, L).tz(this.$x.$timezone, !0);
1639
+ }, a.tz = function($, L, V) {
1640
+ var f = V && L, S = V || L || l, T = i(+a(), S);
1620
1641
  if (typeof $ != "string") return a($).tz(S);
1621
- var N = function(y, A, b) {
1622
- var j = y - 60 * A * 1e3, C = l(j, b);
1642
+ var z = function(y, A, b) {
1643
+ var j = y - 60 * A * 1e3, C = i(j, b);
1623
1644
  if (A === C) return [j, A];
1624
- var z = l(j -= 60 * (C - A) * 1e3, b);
1625
- return C === z ? [j, C] : [y - 60 * Math.min(C, z) * 1e3, Math.max(C, z)];
1626
- }(a.utc($, f).valueOf(), M, S), h = N[0], v = N[1], F = a(h).utcOffset(v);
1645
+ var N = i(j -= 60 * (C - A) * 1e3, b);
1646
+ return C === N ? [j, C] : [y - 60 * Math.min(C, N) * 1e3, Math.max(C, N)];
1647
+ }(a.utc($, f).valueOf(), T, S), h = z[0], v = z[1], F = a(h).utcOffset(v);
1627
1648
  return F.$x.$timezone = S, F;
1628
1649
  }, a.tz.guess = function() {
1629
1650
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1630
1651
  }, a.tz.setDefault = function($) {
1631
- c = $;
1652
+ l = $;
1632
1653
  };
1633
1654
  };
1634
1655
  });
@@ -1641,20 +1662,20 @@ var fn = { exports: {} };
1641
1662
  e.exports = o();
1642
1663
  })(it, function() {
1643
1664
  var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1644
- return function(i, a, c) {
1665
+ return function(c, a, l) {
1645
1666
  var s = a.prototype;
1646
- c.utc = function(f) {
1667
+ l.utc = function(f) {
1647
1668
  var S = { date: f, utc: !0, args: arguments };
1648
1669
  return new a(S);
1649
1670
  }, s.utc = function(f) {
1650
- var S = c(this.toDate(), { locale: this.$L, utc: !0 });
1671
+ var S = l(this.toDate(), { locale: this.$L, utc: !0 });
1651
1672
  return f ? S.add(this.utcOffset(), n) : S;
1652
1673
  }, s.local = function() {
1653
- return c(this.toDate(), { locale: this.$L, utc: !1 });
1674
+ return l(this.toDate(), { locale: this.$L, utc: !1 });
1654
1675
  };
1655
- var l = s.parse;
1676
+ var i = s.parse;
1656
1677
  s.parse = function(f) {
1657
- f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), l.call(this, f);
1678
+ f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), i.call(this, f);
1658
1679
  };
1659
1680
  var g = s.init;
1660
1681
  s.init = function() {
@@ -1665,8 +1686,8 @@ var fn = { exports: {} };
1665
1686
  };
1666
1687
  var w = s.utcOffset;
1667
1688
  s.utcOffset = function(f, S) {
1668
- var M = this.$utils().u;
1669
- if (M(f)) return this.$u ? 0 : M(this.$offset) ? w.call(this) : this.$offset;
1689
+ var T = this.$utils().u;
1690
+ if (T(f)) return this.$u ? 0 : T(this.$offset) ? w.call(this) : this.$offset;
1670
1691
  if (typeof f == "string" && (f = function(F) {
1671
1692
  F === void 0 && (F = "");
1672
1693
  var y = F.match(o);
@@ -1674,12 +1695,12 @@ var fn = { exports: {} };
1674
1695
  var A = ("" + y[0]).match(r) || ["-", 0, 0], b = A[0], j = 60 * +A[1] + +A[2];
1675
1696
  return j === 0 ? 0 : b === "+" ? j : -j;
1676
1697
  }(f), f === null)) return this;
1677
- var N = Math.abs(f) <= 16 ? 60 * f : f;
1678
- if (N === 0) return this.utc(S);
1698
+ var z = Math.abs(f) <= 16 ? 60 * f : f;
1699
+ if (z === 0) return this.utc(S);
1679
1700
  var h = this.clone();
1680
- if (S) return h.$offset = N, h.$u = !1, h;
1701
+ if (S) return h.$offset = z, h.$u = !1, h;
1681
1702
  var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1682
- return (h = this.local().add(N + v, n)).$offset = N, h.$x.$localOffset = v, h;
1703
+ return (h = this.local().add(z + v, n)).$offset = z, h.$x.$localOffset = v, h;
1683
1704
  };
1684
1705
  var $ = s.format;
1685
1706
  s.format = function(f) {
@@ -1697,13 +1718,13 @@ var fn = { exports: {} };
1697
1718
  };
1698
1719
  var L = s.toDate;
1699
1720
  s.toDate = function(f) {
1700
- return f === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1721
+ return f === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1701
1722
  };
1702
- var P = s.diff;
1703
- s.diff = function(f, S, M) {
1704
- if (f && this.$u === f.$u) return P.call(this, f, S, M);
1705
- var N = this.local(), h = c(f).local();
1706
- return P.call(N, h, S, M);
1723
+ var V = s.diff;
1724
+ s.diff = function(f, S, T) {
1725
+ if (f && this.$u === f.$u) return V.call(this, f, S, T);
1726
+ var z = this.local(), h = l(f).local();
1727
+ return V.call(z, h, S, T);
1707
1728
  };
1708
1729
  };
1709
1730
  });
@@ -1714,7 +1735,7 @@ Ct.extend(cr);
1714
1735
  Ct.extend(lr);
1715
1736
  Ct.extend(ar);
1716
1737
  const yt = /\$\{([^}]+)\}/g;
1717
- function ze(e) {
1738
+ function Ne(e) {
1718
1739
  if (!e)
1719
1740
  return [];
1720
1741
  const t = /* @__PURE__ */ new Set();
@@ -1829,15 +1850,15 @@ function Ze(e, t) {
1829
1850
  }
1830
1851
  function ft(e, t, n, o = {}) {
1831
1852
  const r = gr(o);
1832
- return e.filter((i) => i.visible ? !yr(
1833
- i,
1853
+ return e.filter((c) => c.visible ? !yr(
1854
+ c,
1834
1855
  t,
1835
1856
  n,
1836
1857
  r,
1837
1858
  o.rows
1838
1859
  ) : !1);
1839
1860
  }
1840
- function Vt(e) {
1861
+ function Pt(e) {
1841
1862
  return gn(e).some(
1842
1863
  (n) => [
1843
1864
  Z("common.序号"),
@@ -1852,7 +1873,7 @@ function Vt(e) {
1852
1873
  ].includes(n)
1853
1874
  );
1854
1875
  }
1855
- function Pt(e) {
1876
+ function Vt(e) {
1856
1877
  return gn(e).includes("seqno");
1857
1878
  }
1858
1879
  function mr(e) {
@@ -1867,7 +1888,7 @@ function mr(e) {
1867
1888
  }
1868
1889
  function hn(e, t, n = "-") {
1869
1890
  return !mr(e) || _e(t) ? [] : (Array.isArray(t) ? t : [t]).map(
1870
- (r, i) => vr(r, i, n)
1891
+ (r, c) => vr(r, c, n)
1871
1892
  ).filter((r) => !!r);
1872
1893
  }
1873
1894
  function vr(e, t, n) {
@@ -1889,15 +1910,15 @@ function vr(e, t, n) {
1889
1910
  text: e.name || n
1890
1911
  };
1891
1912
  if (e && typeof e == "object") {
1892
- const o = e, r = hr(o, n), i = Fe(o.url);
1893
- if (i) {
1894
- const c = { url: i }, s = Fe(o.name), l = Fe(o.mimeType), g = Fe(o.extension);
1895
- return s && (c.name = s), l && (c.mimeType = l), g && (c.extension = g), {
1913
+ const o = e, r = hr(o, n), c = Fe(o.url);
1914
+ if (c) {
1915
+ const l = { url: c }, s = Fe(o.name), i = Fe(o.mimeType), g = Fe(o.extension);
1916
+ return s && (l.name = s), i && (l.mimeType = i), g && (l.extension = g), {
1896
1917
  key: String(t),
1897
1918
  text: r,
1898
1919
  action: {
1899
1920
  type: "direct",
1900
- options: c
1921
+ options: l
1901
1922
  }
1902
1923
  };
1903
1924
  }
@@ -1939,21 +1960,21 @@ function gr(e) {
1939
1960
  return e.rows?.length ? e.rows : [e.values ?? {}];
1940
1961
  }
1941
1962
  function yr(e, t, n, o, r) {
1942
- const i = n?.hiddenRule;
1943
- return i ? o.some((a) => {
1963
+ const c = n?.hiddenRule;
1964
+ return c ? o.some((a) => {
1944
1965
  try {
1945
- const c = a[e.code];
1946
- return i({
1966
+ const l = a[e.code];
1967
+ return c({
1947
1968
  field: e,
1948
1969
  section: t,
1949
1970
  values: a,
1950
1971
  allValues: a,
1951
- value: c,
1952
- currentValue: c,
1972
+ value: l,
1973
+ currentValue: l,
1953
1974
  rows: r
1954
1975
  });
1955
- } catch (c) {
1956
- return console.error("[globalInfo] hidden rule failed", c), !1;
1976
+ } catch (l) {
1977
+ return console.error("[globalInfo] hidden rule failed", l), !1;
1957
1978
  }
1958
1979
  }) : !1;
1959
1980
  }
@@ -1978,8 +1999,8 @@ function yn(e) {
1978
1999
  function Sr(e, t, n) {
1979
2000
  const o = pt(e);
1980
2001
  if (Array.isArray(t) || o) {
1981
- const r = dt(e, t).map((a) => Rt(e, a) || String(a ?? "").trim()).filter(Boolean), i = o ? "," : "、";
1982
- return r.length > 0 ? r.join(i) : n;
2002
+ const r = dt(e, t).map((a) => Rt(e, a) || String(a ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2003
+ return r.length > 0 ? r.join(c) : n;
1983
2004
  }
1984
2005
  return Rt(e, t) || String(t).trim() || n;
1985
2006
  }
@@ -2006,12 +2027,12 @@ function bn(e) {
2006
2027
  }
2007
2028
  function _r(e, t) {
2008
2029
  if (Array.isArray(e)) {
2009
- const n = e.map((o) => Nt(o)).filter(Boolean);
2030
+ const n = e.map((o) => zt(o)).filter(Boolean);
2010
2031
  return n.length > 0 ? n.join("、") : t;
2011
2032
  }
2012
- return Nt(e) || t;
2033
+ return zt(e) || t;
2013
2034
  }
2014
- function Nt(e) {
2035
+ function zt(e) {
2015
2036
  if (typeof File < "u" && e instanceof File) return e.name;
2016
2037
  if (e && typeof e == "object") {
2017
2038
  const t = e;
@@ -2038,7 +2059,7 @@ function Ir(e = null) {
2038
2059
  raw: e
2039
2060
  };
2040
2061
  }
2041
- function zt(e) {
2062
+ function Nt(e) {
2042
2063
  const t = kn(e), n = Cn(t), o = Lr(t).flatMap(
2043
2064
  (r) => $n(r, n)
2044
2065
  );
@@ -2056,8 +2077,8 @@ function Sn(e, t, n) {
2056
2077
  });
2057
2078
  }
2058
2079
  function $r(e, t = {}, n = null) {
2059
- const o = kn(e), r = Cn(o, t), i = Tr(o, t, n), a = Object.fromEntries(
2060
- i.map((c) => [c.key, c])
2080
+ const o = kn(e), r = Cn(o, t), c = Tr(o, t, n), a = Object.fromEntries(
2081
+ c.map((l) => [l.key, l])
2061
2082
  );
2062
2083
  return {
2063
2084
  scheme: r,
@@ -2065,8 +2086,8 @@ function $r(e, t = {}, n = null) {
2065
2086
  topNodes: [],
2066
2087
  treeNodes: [],
2067
2088
  activeNode: n,
2068
- activeSection: i[0] ?? null,
2069
- sections: i,
2089
+ activeSection: c[0] ?? null,
2090
+ sections: c,
2070
2091
  sectionMap: a,
2071
2092
  raw: e
2072
2093
  };
@@ -2077,14 +2098,14 @@ function Cr(e) {
2077
2098
  function kr(e, t = {}) {
2078
2099
  const n = e.renderType === "table" ? e.rows.map(
2079
2100
  (s) => _t(wt(s))
2080
- ) : [_t(wt(e.model))], o = ce(e.operationInfo), r = ce(o.editInfoSet), i = ce(r.params), a = ce(o.queryInfoSet), c = ce(a.params);
2101
+ ) : [_t(wt(e.model))], o = ce(e.operationInfo), r = ce(o.editInfoSet), c = ce(r.params), a = ce(o.queryInfoSet), l = ce(a.params);
2081
2102
  return {
2082
2103
  ...t,
2083
2104
  infSchmId: t.infSchmId ?? se(e.raw.infSchmId),
2084
2105
  emplid: t.emplid ?? se(e.raw.emplid),
2085
2106
  // 保存优先使用接口出参里的信息集挂载 tagId,其次才回退到请求节点 tagId。
2086
2107
  tagId: ee(
2087
- e.tagId || i.tagId || c.tagId || t.tagId || e.requestTagId
2108
+ e.tagId || c.tagId || l.tagId || t.tagId || e.requestTagId
2088
2109
  ),
2089
2110
  infSetId: t.infSetId ?? e.infSetId,
2090
2111
  setId: t.setId ?? e.setId,
@@ -2111,10 +2132,10 @@ function is(e) {
2111
2132
  function wn(e) {
2112
2133
  const t = Tn(e);
2113
2134
  return (Array.isArray(t) ? t : Qe(ce(t), ["options", "list", "records", "data"])).map((o) => {
2114
- const r = ce(o), i = r.fieldvalue, a = i ?? r.value ?? r.code ?? r.emplid;
2135
+ const r = ce(o), c = r.fieldvalue, a = c ?? r.value ?? r.code ?? r.emplid;
2115
2136
  return {
2116
2137
  id: r.id,
2117
- code: i ?? r.value ?? r.code ?? r.emplid,
2138
+ code: c ?? r.value ?? r.code ?? r.emplid,
2118
2139
  // fieldname 在 md-options 中是字段标识,不是用户可读文案;展示文案只接受明确的 label/descr/name。
2119
2140
  label: ee(
2120
2141
  r.label ?? r.descr ?? r.name
@@ -2133,13 +2154,13 @@ function Tr(e, t, n) {
2133
2154
  ) : e.infSetMark || e.infSetFields || e.fields ? [xt(e, t, n, !0)] : [];
2134
2155
  }
2135
2156
  function xt(e, t, n, o) {
2136
- const r = ce(e), i = Mr(r.infSetMark ?? r), a = Or(r.infSetFields ?? r.fields ?? []), c = Cr(i), s = Fr(
2157
+ const r = ce(e), c = Mr(r.infSetMark ?? r), a = Or(r.infSetFields ?? r.fields ?? []), l = Cr(c), s = Fr(
2137
2158
  r.infSetValues ?? r.rows ?? r.data,
2138
2159
  a,
2139
- c
2140
- ), l = s[0] ? wt(s[0]) : In(a), g = ce(r.tag), w = ee(
2141
- r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ?? i.raw.tagId ?? i.raw.infTagId
2142
- ), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), P = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, M = i.setId || ee(r.setId), N = ee(r.infSetId) || M || ee(P), h = M || ee(f ?? N), v = i.code || ee(r.code ?? S ?? h), F = h || v || N || w, y = {
2160
+ l
2161
+ ), i = s[0] ? wt(s[0]) : In(a), g = ce(r.tag), w = ee(
2162
+ r.tagId ?? r.infTagId ?? g.tagId ?? g.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2163
+ ), $ = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, S = o ? n?.code : void 0, T = c.setId || ee(r.setId), z = ee(r.infSetId) || T || ee(V), h = T || ee(f ?? z), v = c.code || ee(r.code ?? S ?? h), F = h || v || z || w, y = {
2143
2164
  key: F,
2144
2165
  id: F,
2145
2166
  setId: h,
@@ -2147,19 +2168,19 @@ function xt(e, t, n, o) {
2147
2168
  tagId: w,
2148
2169
  requestTagId: $ || void 0,
2149
2170
  ownerNodeKey: L || void 0,
2150
- infSetId: N,
2151
- title: i.name || ee(r.name ?? n?.tagName ?? F),
2152
- renderType: c,
2153
- mark: i,
2171
+ infSetId: z,
2172
+ title: c.name || ee(r.name ?? n?.tagName ?? F),
2173
+ renderType: l,
2174
+ mark: c,
2154
2175
  fields: a,
2155
- model: l,
2176
+ model: i,
2156
2177
  rows: s,
2157
2178
  operationInfo: mt(
2158
2179
  t.operationInfo ?? r.operationInfo
2159
2180
  ),
2160
2181
  raw: r
2161
2182
  };
2162
- return y.renderType === "form" && s.length === 0 && (y.rows = [{ ...l, __rowKey: `${F}-0` }]), y;
2183
+ return y.renderType === "form" && s.length === 0 && (y.rows = [{ ...i, __rowKey: `${F}-0` }]), y;
2163
2184
  }
2164
2185
  function Mr(e) {
2165
2186
  const t = ce(e), n = ee(t.htmlDisplay || "F");
@@ -2182,7 +2203,7 @@ function Or(e) {
2182
2203
  function Dr(e, t) {
2183
2204
  const n = ce(e), o = ee(
2184
2205
  n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`
2185
- ), r = ee(n.label ?? n.name ?? n.tagName ?? o), i = Mn(
2206
+ ), r = ee(n.label ?? n.name ?? n.tagName ?? o), c = Mn(
2186
2207
  n.interface ?? n.interfaceField
2187
2208
  ), a = qt(n.cascadeDependFields);
2188
2209
  return {
@@ -2194,7 +2215,7 @@ function Dr(e, t) {
2194
2215
  type: jr(n),
2195
2216
  fieldType: se(n.fieldType),
2196
2217
  frontInputType: se(n.frontInputType),
2197
- renderType: Pr(n),
2218
+ renderType: Vr(n),
2198
2219
  required: ke(n.required ?? n.isRequired),
2199
2220
  readonly: ke(n.readonly ?? n.disabled),
2200
2221
  visible: n.visible === void 0 ? ke(n.visibled ?? !0) : ke(n.visible),
@@ -2207,11 +2228,11 @@ function Dr(e, t) {
2207
2228
  minWidth: Gt(n.minWidth),
2208
2229
  placeholder: se(n.placeholder),
2209
2230
  options: wn(n.options),
2210
- interface: i,
2231
+ interface: c,
2211
2232
  cascadeClearFields: qt(n.cascadeClearFields),
2212
- cascadeDependFields: ze({
2233
+ cascadeDependFields: Ne({
2213
2234
  cascadeDependFields: a,
2214
- interface: i
2235
+ interface: c
2215
2236
  }),
2216
2237
  props: Ar(n),
2217
2238
  formItemProps: On(n.formItemProps),
@@ -2219,16 +2240,16 @@ function Dr(e, t) {
2219
2240
  };
2220
2241
  }
2221
2242
  function Fr(e, t, n) {
2222
- if (Array.isArray(e) && e.some((i) => {
2223
- const a = ce(i);
2243
+ if (Array.isArray(e) && e.some((c) => {
2244
+ const a = ce(c);
2224
2245
  return t.some(
2225
- (c) => a[c.code] !== void 0 || a[c.key] !== void 0
2246
+ (l) => a[l.code] !== void 0 || a[l.key] !== void 0
2226
2247
  );
2227
2248
  }))
2228
- return e.map((i, a) => ({
2229
- ...ce(i),
2249
+ return e.map((c, a) => ({
2250
+ ...ce(c),
2230
2251
  __rowKey: ee(
2231
- ce(i).__rowKey ?? ce(i).key ?? a
2252
+ ce(c).__rowKey ?? ce(c).key ?? a
2232
2253
  )
2233
2254
  }));
2234
2255
  const o = In(t);
@@ -2244,19 +2265,19 @@ function $n(e, t, n = "") {
2244
2265
  t,
2245
2266
  ee(o.tagId ?? o.id ?? o.key)
2246
2267
  )
2247
- ), i = Vr(o.infSetList);
2248
- return r.length === 0 && i.length > 0 ? i.map(
2249
- (a, c) => Er(o, a, t, n, c)
2268
+ ), c = Pr(o.infSetList);
2269
+ return r.length === 0 && c.length > 0 ? c.map(
2270
+ (a, l) => Er(o, a, t, n, l)
2250
2271
  ) : [Br(o, t, n, r)];
2251
2272
  }
2252
2273
  function Br(e, t, n, o) {
2253
- const r = ee(e.tagId ?? e.id ?? e.key), i = ee(e.tagName ?? e.name ?? e.label ?? r);
2274
+ const r = ee(e.tagId ?? e.id ?? e.key), c = ee(e.tagName ?? e.name ?? e.label ?? r);
2254
2275
  return {
2255
2276
  key: ee(e.key ?? r),
2256
2277
  id: r,
2257
2278
  tagId: r,
2258
- tagName: i,
2259
- label: i,
2279
+ tagName: c,
2280
+ label: c,
2260
2281
  tagLevel: se(e.tagLevel ?? e.level) ?? null,
2261
2282
  level: Dn(e.tagLevel ?? e.level),
2262
2283
  parentTagId: se(
@@ -2276,11 +2297,11 @@ function Br(e, t, n, o) {
2276
2297
  };
2277
2298
  }
2278
2299
  function Er(e, t, n, o, r) {
2279
- const i = ee(e.tagId ?? e.id ?? e.key), a = ee(e.tagName ?? e.name ?? e.label ?? i), c = t.infSetId || ee(t.setId), s = t.setId || c, l = c || `${i}-${r}`, g = t.code || se(e.code ?? c);
2300
+ const c = ee(e.tagId ?? e.id ?? e.key), a = ee(e.tagName ?? e.name ?? e.label ?? c), l = t.infSetId || ee(t.setId), s = t.setId || l, i = l || `${c}-${r}`, g = t.code || se(e.code ?? l);
2280
2301
  return {
2281
- key: l,
2282
- id: l,
2283
- tagId: i,
2302
+ key: i,
2303
+ id: i,
2304
+ tagId: c,
2284
2305
  tagName: a,
2285
2306
  label: a,
2286
2307
  tagLevel: se(e.tagLevel ?? e.level) ?? null,
@@ -2291,7 +2312,7 @@ function Er(e, t, n, o, r) {
2291
2312
  parentId: se(e.parentTagId ?? e.parentId ?? o) ?? null,
2292
2313
  infSchmId: se(e.infSchmId ?? n?.infSchmId),
2293
2314
  schemeId: ee(e.infSchmId ?? n?.infSchmId),
2294
- infSetId: c,
2315
+ infSetId: l,
2295
2316
  setId: s,
2296
2317
  code: g,
2297
2318
  children: [],
@@ -2300,7 +2321,7 @@ function Er(e, t, n, o, r) {
2300
2321
  loaded: !0,
2301
2322
  raw: {
2302
2323
  ...e,
2303
- infSetId: c,
2324
+ infSetId: l,
2304
2325
  setId: s,
2305
2326
  infSetList: [t.raw]
2306
2327
  }
@@ -2325,7 +2346,7 @@ function Lr(e) {
2325
2346
  const t = ce(e.globalInfoSchmConfig), n = Qe(t, ["children", "tree", "list", "tags"]);
2326
2347
  return n.length ? n : Qe(e, ["children", "tree", "list", "tags", "records"]);
2327
2348
  }
2328
- function Vr(e) {
2349
+ function Pr(e) {
2329
2350
  return Array.isArray(e) ? e.map((t) => {
2330
2351
  const n = ce(t);
2331
2352
  return {
@@ -2385,7 +2406,7 @@ function qt(e) {
2385
2406
  const t = e.map((n) => ee(n)).filter(Boolean);
2386
2407
  return t.length ? t : void 0;
2387
2408
  }
2388
- function Pr(e) {
2409
+ function Vr(e) {
2389
2410
  if (ke(e.htmlDisplay)) return "html";
2390
2411
  if (ke(e.multRow)) return "multi-row";
2391
2412
  const t = ee(e.renderType).toLowerCase();
@@ -2433,7 +2454,7 @@ function ke(e) {
2433
2454
  e.toLowerCase()
2434
2455
  ) : !!e;
2435
2456
  }
2436
- const Pe = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => String(e ?? "").trim(), tt = (e) => Array.from(new Set(e.map(Rr).filter(Boolean))), Ue = (e) => !!(e && typeof e == "object" && "children" in e), Xe = (e) => tt([
2457
+ const Ve = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => String(e ?? "").trim(), tt = (e) => Array.from(new Set(e.map(Rr).filter(Boolean))), Ue = (e) => !!(e && typeof e == "object" && "children" in e), Xe = (e) => tt([
2437
2458
  e?.key,
2438
2459
  e?.id,
2439
2460
  e?.setId,
@@ -2442,7 +2463,7 @@ const Pe = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
2442
2463
  e?.code,
2443
2464
  ...(e?.infSetList ?? []).map((t) => t.infSetId),
2444
2465
  ...(e?.infSetList ?? []).map((t) => t.setId)
2445
- ]), Nr = (e) => tt([
2466
+ ]), zr = (e) => tt([
2446
2467
  e.key,
2447
2468
  e.id,
2448
2469
  e.setId,
@@ -2451,32 +2472,32 @@ const Pe = (e) => e.key || e.code, Me = (e) => e.key || e.setId, Rr = (e) => Str
2451
2472
  e.code
2452
2473
  ]);
2453
2474
  function Bn(e, t, n) {
2454
- const o = Nr(e), r = tt([n, ...Xe(t)]);
2455
- return r.length === 0 ? !1 : r.some((i) => o.includes(i));
2475
+ const o = zr(e), r = tt([n, ...Xe(t)]);
2476
+ return r.length === 0 ? !1 : r.some((c) => o.includes(c));
2456
2477
  }
2457
- function zr(e, t, n) {
2478
+ function Nr(e, t, n) {
2458
2479
  return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((r) => Bn(r, t, n));
2459
2480
  }
2460
2481
  function xr(e, t, n = {}) {
2461
- const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Pe(t), i = typeof t == "string" ? e.fields.find((s) => Pe(s) === r || s.code === r) : t, c = ze(i).some((s) => {
2482
+ const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((s) => Ve(s) === r || s.code === r) : t, l = Ne(c).some((s) => {
2462
2483
  if (s === "searchText" && Object.prototype.hasOwnProperty.call(o, s) || s !== "searchText" && !Gr(e, s))
2463
2484
  return !1;
2464
- const l = o[s];
2465
- return l == null || l === "";
2485
+ const i = o[s];
2486
+ return i == null || i === "";
2466
2487
  });
2467
2488
  return {
2468
2489
  fieldKey: r,
2469
- currentField: i,
2490
+ currentField: c,
2470
2491
  sourceModel: o,
2471
2492
  sourceRow: e.renderType === "table" ? o : void 0,
2472
- missingDependField: c
2493
+ missingDependField: l
2473
2494
  };
2474
2495
  }
2475
2496
  function qr(e) {
2476
- return !!(e && !ut(e) && ze(e).length === 0 && (e.options ?? []).length > 0);
2497
+ return !!(e && !ut(e) && Ne(e).length === 0 && (e.options ?? []).length > 0);
2477
2498
  }
2478
2499
  function Gr(e, t) {
2479
- return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Pe(n) === t);
2500
+ return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
2480
2501
  }
2481
2502
  function Kr(e) {
2482
2503
  return wn(e);
@@ -2493,8 +2514,8 @@ function Ur(e, t, n) {
2493
2514
  const o = Te(e?.operationInfo).queryInfoSet;
2494
2515
  if (at(o))
2495
2516
  return o;
2496
- const r = t?.infSetList.find((a) => a.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
2497
- return at(i) ? i : void 0;
2517
+ const r = t?.infSetList.find((a) => a.infSetId === n), c = Te(r?.operationInfo).queryInfoSet;
2518
+ return at(c) ? c : void 0;
2498
2519
  }
2499
2520
  function Hr(e) {
2500
2521
  const t = Te(e.operationInfo).editInfoSet;
@@ -2579,29 +2600,29 @@ function Je(e = {}) {
2579
2600
  };
2580
2601
  }
2581
2602
  function Qr(e) {
2582
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = zr(e.nextViewModel.sections, e.node, e.targetKey), a = tt([e.targetKey, ...Xe(e.node)]).length > 0, c = i.find((s) => Bn(s, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
2583
- return i.forEach((s) => {
2584
- const l = Me(s);
2585
- t[l] = s, o.includes(l) || o.push(l), r[l] = Je({
2586
- ...r[l],
2603
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), a = tt([e.targetKey, ...Xe(e.node)]).length > 0, l = c.find((s) => Bn(s, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2604
+ return c.forEach((s) => {
2605
+ const i = Me(s);
2606
+ t[i] = s, o.includes(i) || o.push(i), r[i] = Je({
2607
+ ...r[i],
2587
2608
  loaded: !0,
2588
2609
  loading: !1,
2589
2610
  error: null,
2590
- editing: e.editingSectionKeys.includes(l)
2611
+ editing: e.editingSectionKeys.includes(i)
2591
2612
  });
2592
- }), e.targetKey && c ? n[e.targetKey] = Me(c) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Je({
2613
+ }), e.targetKey && l ? n[e.targetKey] = Me(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Je({
2593
2614
  ...r[e.targetKey],
2594
2615
  loaded: !0,
2595
2616
  loading: !1,
2596
2617
  error: null,
2597
- editing: !!(c && e.editingSectionKeys.includes(Me(c)))
2618
+ editing: !!(l && e.editingSectionKeys.includes(Me(l)))
2598
2619
  })), {
2599
2620
  sectionMap: t,
2600
2621
  sectionAliasMap: n,
2601
2622
  sectionOrder: o,
2602
2623
  sectionStatusMap: r,
2603
- matchedSection: c,
2604
- targetSections: i
2624
+ matchedSection: l,
2625
+ targetSections: c
2605
2626
  };
2606
2627
  }
2607
2628
  const Ln = Z(
@@ -2616,7 +2637,7 @@ function Xr(e, t = [], n = {}) {
2616
2637
  function ea(e, t) {
2617
2638
  return typeof e == "function" ? e(t) : typeof e == "string" ? e : Ln;
2618
2639
  }
2619
- const Ne = (e) => new Error(`[GlobalInfo] ${e}`), ta = (e) => [
2640
+ const ze = (e) => new Error(`[GlobalInfo] ${e}`), ta = (e) => [
2620
2641
  String(e.method ?? "").toLowerCase(),
2621
2642
  String(e.url ?? ""),
2622
2643
  It(Te(e.params))
@@ -2625,9 +2646,9 @@ function It(e) {
2625
2646
  return Array.isArray(e) ? `[${e.map((t) => It(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${It(o)}`).join(",")}}` : JSON.stringify(e);
2626
2647
  }
2627
2648
  const na = (e) => {
2628
- const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), i = je([]), a = je(null), c = je(null), s = je(null), l = je({}), g = je({}), w = ge([]), $ = je({}), L = ge([]), P = O(
2649
+ const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), c = je([]), a = je(null), l = je(null), s = je(null), i = je({}), g = je({}), w = ge([]), $ = je({}), L = ge([]), V = O(
2629
2650
  () => {
2630
- const m = w.value.map((k) => l.value[k]).filter((k) => !!k), p = Object.entries(l.value).filter(([k]) => !w.value.includes(k)).map(([, k]) => k);
2651
+ const m = w.value.map((k) => i.value[k]).filter((k) => !!k), p = Object.entries(i.value).filter(([k]) => !w.value.includes(k)).map(([, k]) => k);
2631
2652
  return [...m, ...p];
2632
2653
  }
2633
2654
  ), f = O(() => ({
@@ -2640,7 +2661,7 @@ const na = (e) => {
2640
2661
  // 当前所有编辑中的 section key。
2641
2662
  editingSectionKeys: L.value,
2642
2663
  // 已加载 section 映射。
2643
- sectionMap: l.value,
2664
+ sectionMap: i.value,
2644
2665
  // section 状态映射;这里把 alias 后的编辑态也同步进去。
2645
2666
  sectionStatusMap: Object.fromEntries(
2646
2667
  Object.entries($.value).map(([m, p]) => [
@@ -2662,7 +2683,7 @@ const na = (e) => {
2662
2683
  adaptScene: e.adaptScene,
2663
2684
  // emplid 是当前人员标识,树和详情接口都需要它。
2664
2685
  emplid: e.emplid
2665
- }), M = (m) => ({
2686
+ }), T = (m) => ({
2666
2687
  // 复用基础参数,保证人员和场景一致。
2667
2688
  ...S(),
2668
2689
  // infSchmId 指定当前模板方案。
@@ -2673,7 +2694,7 @@ const na = (e) => {
2673
2694
  tagLevel: m.tagLevel,
2674
2695
  // parentTagId 保留父子关系上下文。
2675
2696
  parentTagId: m.parentTagId
2676
- }), N = (m = c.value, p = s.value) => ({
2697
+ }), z = (m = l.value, p = s.value) => ({
2677
2698
  // 详情接口同样需要基础人员和场景参数。
2678
2699
  ...S(),
2679
2700
  // 当前节点所属模板方案。
@@ -2690,13 +2711,13 @@ const na = (e) => {
2690
2711
  operation: m,
2691
2712
  context: p,
2692
2713
  viewModel: a.value,
2693
- sections: P.value,
2694
- activeNode: c.value,
2714
+ sections: V.value,
2715
+ activeNode: l.value,
2695
2716
  activeSection: s.value
2696
2717
  }), v = nr(
2697
2718
  async (m, p) => {
2698
2719
  if (!e.service.requestOperation)
2699
- throw Ne("service.requestOperation is required");
2720
+ throw ze("service.requestOperation is required");
2700
2721
  return e.service.requestOperation(m, p);
2701
2722
  },
2702
2723
  (m) => ta(m)
@@ -2714,8 +2735,8 @@ const na = (e) => {
2714
2735
  row: p?.row,
2715
2736
  node: p?.node,
2716
2737
  viewModel: a.value,
2717
- sections: P.value,
2718
- activeNode: c.value,
2738
+ sections: V.value,
2739
+ activeNode: l.value,
2719
2740
  activeSection: s.value,
2720
2741
  searchText: p?.searchText
2721
2742
  }), Y = { ...m, params: k }, W = p && { ...p, params: k };
@@ -2739,7 +2760,7 @@ const na = (e) => {
2739
2760
  if (!p)
2740
2761
  return null;
2741
2762
  const k = g.value[p] ?? p;
2742
- return l.value[k] ?? null;
2763
+ return i.value[k] ?? null;
2743
2764
  }, j = (m = s.value) => {
2744
2765
  const p = A(m);
2745
2766
  if (p)
@@ -2747,17 +2768,17 @@ const na = (e) => {
2747
2768
  }, C = (m = s.value) => {
2748
2769
  if (m)
2749
2770
  return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Me(m);
2750
- }, z = (m = s.value) => {
2771
+ }, N = (m = s.value) => {
2751
2772
  if (Ue(m))
2752
2773
  return m;
2753
2774
  if (typeof m == "string") {
2754
- const p = y(i.value, m);
2775
+ const p = y(c.value, m);
2755
2776
  if (p)
2756
2777
  return p;
2757
2778
  const k = b(m);
2758
- return k?.ownerNodeKey ? y(i.value, k.ownerNodeKey) ?? c.value : k || c.value && Xe(c.value).includes(m) ? c.value : null;
2779
+ return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? l.value : k || l.value && Xe(l.value).includes(m) ? l.value : null;
2759
2780
  }
2760
- return m?.ownerNodeKey ? y(i.value, m.ownerNodeKey) ?? c.value : c.value;
2781
+ return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? l.value : l.value;
2761
2782
  }, re = (m = s.value) => !m || Ue(m) ? null : b(m), le = (m = s.value) => {
2762
2783
  const p = C(m);
2763
2784
  if (!p)
@@ -2784,8 +2805,8 @@ const na = (e) => {
2784
2805
  editing: L.value.includes(k)
2785
2806
  })
2786
2807
  });
2787
- }, B = (m = a.value?.raw ?? null, p = c.value) => {
2788
- const k = P.value, Y = s.value && k.find(
2808
+ }, B = (m = a.value?.raw ?? null, p = l.value) => {
2809
+ const k = V.value, Y = s.value && k.find(
2789
2810
  (W) => Me(W) === Me(s.value)
2790
2811
  ) ? s.value : null;
2791
2812
  a.value = {
@@ -2794,8 +2815,8 @@ const na = (e) => {
2794
2815
  // 当前节点。
2795
2816
  node: p,
2796
2817
  // 顶层节点和树节点都来自 nodes。
2797
- topNodes: i.value,
2798
- treeNodes: i.value,
2818
+ topNodes: c.value,
2819
+ treeNodes: c.value,
2799
2820
  // 当前激活节点。
2800
2821
  activeNode: p,
2801
2822
  // 当前激活 section。
@@ -2803,13 +2824,13 @@ const na = (e) => {
2803
2824
  // 当前所有已加载 section。
2804
2825
  sections: k,
2805
2826
  // 当前 section 缓存。
2806
- sectionMap: l.value,
2827
+ sectionMap: i.value,
2807
2828
  // 保留原始接口数据。
2808
2829
  raw: m
2809
2830
  }, s.value = Y;
2810
- }, E = (m, p = c.value, k) => {
2831
+ }, E = (m, p = l.value, k) => {
2811
2832
  const Y = Qr({
2812
- currentMap: l.value,
2833
+ currentMap: i.value,
2813
2834
  currentAliasMap: g.value,
2814
2835
  currentOrder: w.value,
2815
2836
  currentStatusMap: $.value,
@@ -2819,39 +2840,39 @@ const na = (e) => {
2819
2840
  targetKey: k,
2820
2841
  activeSection: s.value
2821
2842
  });
2822
- return l.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, $.value = Y.sectionStatusMap, a.value = {
2843
+ return i.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, $.value = Y.sectionStatusMap, a.value = {
2823
2844
  ...m,
2824
2845
  scheme: m.scheme ?? a.value?.scheme ?? null,
2825
- topNodes: i.value,
2826
- treeNodes: i.value,
2846
+ topNodes: c.value,
2847
+ treeNodes: c.value,
2827
2848
  activeNode: p,
2828
2849
  activeSection: Y.matchedSection,
2829
2850
  sections: Y.targetSections,
2830
- sectionMap: l.value
2851
+ sectionMap: i.value
2831
2852
  }, s.value = Y.matchedSection, Y.matchedSection;
2832
2853
  }, d = (m, p) => {
2833
- const k = j(m), Y = k ? l.value[k] : null;
2854
+ const k = j(m), Y = k ? i.value[k] : null;
2834
2855
  if (!k || !Y)
2835
2856
  return;
2836
2857
  const W = p(Y);
2837
- l.value = {
2838
- ...l.value,
2858
+ i.value = {
2859
+ ...i.value,
2839
2860
  [k]: W
2840
2861
  }, s.value = Me(s.value ?? W) === k ? W : s.value, B();
2841
- }, u = async (m = s.value ?? c.value) => {
2842
- const p = re(m), k = z(m) ?? c.value, Y = C(m);
2862
+ }, u = async (m = s.value ?? l.value) => {
2863
+ const p = re(m), k = N(m) ?? l.value, Y = C(m);
2843
2864
  if (!k)
2844
2865
  return null;
2845
2866
  if (!e.service.requestOperation)
2846
- throw Ne("service.requestOperation is required");
2867
+ throw ze("service.requestOperation is required");
2847
2868
  n.value = !0, r.value = null, R(Y ?? k, { loading: !0, error: null });
2848
2869
  try {
2849
2870
  const W = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : k.infSetList;
2850
2871
  if (W.length === 0)
2851
- throw Ne("node.infSetList is required");
2872
+ throw ze("node.infSetList is required");
2852
2873
  const Ce = await Promise.all(W.map(async (ie) => {
2853
2874
  const he = Ur(p, k, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? k.tagId, ot = {
2854
- ...N(k, p),
2875
+ ...z(k, p),
2855
2876
  tagId: Ae,
2856
2877
  infSetId: ie.infSetId,
2857
2878
  setId: ie.setId,
@@ -2868,7 +2889,7 @@ const na = (e) => {
2868
2889
  });
2869
2890
  return $r(Ke, ot, k);
2870
2891
  }
2871
- throw Ne("infoSet.operationInfo.queryInfoSet is required");
2892
+ throw ze("infoSet.operationInfo.queryInfoSet is required");
2872
2893
  })), ve = {
2873
2894
  ...Ce[0],
2874
2895
  sections: Ce.flatMap((ie) => ie.sections),
@@ -2886,34 +2907,34 @@ const na = (e) => {
2886
2907
  if (!Ue(m) && typeof m != "string")
2887
2908
  return b(m);
2888
2909
  const p = C(m);
2889
- return p ? l.value[g.value[p] ?? p] ?? null : null;
2890
- }, V = async (m = c.value) => m ? (await u(m), a.value) : (a.value = null, s.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, null), x = async (m) => {
2910
+ return p ? i.value[g.value[p] ?? p] ?? null : null;
2911
+ }, P = async (m = l.value) => m ? (await u(m), a.value) : (a.value = null, s.value = null, i.value = {}, g.value = {}, w.value = [], $.value = {}, null), x = async (m) => {
2891
2912
  const p = Yr(m);
2892
2913
  if (!p)
2893
2914
  return m.children;
2894
- const k = M(m), Y = await h(p, {
2915
+ const k = T(m), Y = await h(p, {
2895
2916
  type: "openTag",
2896
2917
  requestSource: "sidebar",
2897
2918
  tagId: m.tagId,
2898
2919
  node: m,
2899
2920
  params: k
2900
2921
  });
2901
- return zt(Y).treeNodes;
2922
+ return Nt(Y).treeNodes;
2902
2923
  }, K = async (m) => {
2903
2924
  if (m.loaded)
2904
2925
  return m.children;
2905
2926
  const p = await x(m);
2906
- return p.length > 0 && (i.value = Sn(i.value, m.key, p)), p;
2927
+ return p.length > 0 && (c.value = Sn(c.value, m.key, p)), p;
2907
2928
  }, q = async (m) => {
2908
- const p = typeof m == "string" ? y(i.value, m) : m;
2909
- return p ? (c.value = p, s.value = null, L.value = [], await K(p), B(a.value?.raw, p), p) : null;
2929
+ const p = typeof m == "string" ? y(c.value, m) : m;
2930
+ return p ? (l.value = p, s.value = null, L.value = [], await K(p), B(a.value?.raw, p), p) : null;
2910
2931
  }, Q = async () => {
2911
2932
  const m = e.service.templateTree;
2912
2933
  if (!m)
2913
- throw Ne("service.templateTree is required");
2934
+ throw ze("service.templateTree is required");
2914
2935
  t.value = !0, r.value = null;
2915
2936
  try {
2916
- const p = await m(S()), k = zt(p), Y = await Promise.all(
2937
+ const p = await m(S()), k = Nt(p), Y = await Promise.all(
2917
2938
  k.treeNodes.map(async (Ce) => {
2918
2939
  const ve = await x(Ce);
2919
2940
  return {
@@ -2923,24 +2944,24 @@ const na = (e) => {
2923
2944
  };
2924
2945
  })
2925
2946
  );
2926
- i.value = Y, s.value = null, l.value = {}, g.value = {}, w.value = [], $.value = {}, L.value = [];
2947
+ c.value = Y, s.value = null, i.value = {}, g.value = {}, w.value = [], $.value = {}, L.value = [];
2927
2948
  const W = y(Y, e.initialActiveNodeKey) ?? y(Y);
2928
- return c.value = W, a.value = {
2949
+ return l.value = W, a.value = {
2929
2950
  ...k,
2930
2951
  treeNodes: Y,
2931
2952
  activeNode: W,
2932
- sectionMap: l.value,
2933
- sections: P.value
2934
- }, i.value;
2953
+ sectionMap: i.value,
2954
+ sections: V.value
2955
+ }, c.value;
2935
2956
  } catch (p) {
2936
2957
  throw r.value = p, p;
2937
2958
  } finally {
2938
2959
  t.value = !1;
2939
2960
  }
2940
- }, T = async () => {
2961
+ }, M = async () => {
2941
2962
  const m = A();
2942
- await _(s.value ?? c.value);
2943
- const p = P.value.find(
2963
+ await _(s.value ?? l.value);
2964
+ const p = V.value.find(
2944
2965
  (k) => Me(k) === m
2945
2966
  );
2946
2967
  return p && (s.value = p), B(), a.value;
@@ -2956,9 +2977,9 @@ const na = (e) => {
2956
2977
  (k) => k !== p
2957
2978
  ), R(p, { editing: !1 }));
2958
2979
  }, me = (m, p, k) => {
2959
- const Y = typeof p == "string" ? p : Pe(p);
2980
+ const Y = typeof p == "string" ? p : Ve(p);
2960
2981
  d(m, (W) => {
2961
- const ve = (typeof p == "string" ? W.fields.find((he) => Pe(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
2982
+ const ve = (typeof p == "string" ? W.fields.find((he) => Ve(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
2962
2983
  ...W.model,
2963
2984
  [Y]: k
2964
2985
  };
@@ -2973,7 +2994,7 @@ const na = (e) => {
2973
2994
  rows: W.renderType === "form" ? [{ ...W.rows[0], ...ie }] : W.rows,
2974
2995
  // 同步 fields.value,保证只读 renderer 立即显示新值。
2975
2996
  fields: W.fields.map((he) => {
2976
- const Ae = Pe(he);
2997
+ const Ae = Ve(he);
2977
2998
  return Ae === Y || he.code === Y ? { ...he, value: k } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
2978
2999
  })
2979
3000
  };
@@ -3000,7 +3021,7 @@ const na = (e) => {
3000
3021
  return d(W, (Ye) => ({
3001
3022
  ...Ye,
3002
3023
  fields: Ye.fields.map(
3003
- (Ve) => Pe(Ve) === ve || Ve.code === ve ? { ...Ve, options: [] } : Ve
3024
+ (Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: [] } : Pe
3004
3025
  )
3005
3026
  })), [];
3006
3027
  const Yn = await F(
@@ -3011,7 +3032,7 @@ const na = (e) => {
3011
3032
  type: "fieldOptions",
3012
3033
  requestSource: "inner",
3013
3034
  tagId: W.requestTagId ?? W.tagId,
3014
- node: z(W),
3035
+ node: N(W),
3015
3036
  section: W,
3016
3037
  field: ie,
3017
3038
  params: Te(Ke.params),
@@ -3024,7 +3045,7 @@ const na = (e) => {
3024
3045
  return d(W, (Ye) => ({
3025
3046
  ...Ye,
3026
3047
  fields: Ye.fields.map(
3027
- (Ve) => Pe(Ve) === ve || Ve.code === ve ? { ...Ve, options: Ot } : Ve
3048
+ (Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: Ot } : Pe
3028
3049
  )
3029
3050
  })), Ot;
3030
3051
  }, De = (m, p) => {
@@ -3041,7 +3062,7 @@ const na = (e) => {
3041
3062
  // fields.value 也同步成 model 中的值。
3042
3063
  fields: k.fields.map((Y) => ({
3043
3064
  ...Y,
3044
- value: p[Pe(Y)]
3065
+ value: p[Ve(Y)]
3045
3066
  }))
3046
3067
  }));
3047
3068
  }, $e = (m, p) => {
@@ -3056,9 +3077,9 @@ const na = (e) => {
3056
3077
  // 选中树节点。
3057
3078
  selectNode: q,
3058
3079
  // 加载当前节点详情。
3059
- loadDetail: V,
3080
+ loadDetail: P,
3060
3081
  // 刷新当前详情。
3061
- reloadActiveSection: T,
3082
+ reloadActiveSection: M,
3062
3083
  // 加载指定节点或 section。
3063
3084
  loadSection: u,
3064
3085
  // 重新加载指定节点或 section。
@@ -3098,13 +3119,13 @@ const na = (e) => {
3098
3119
  return null;
3099
3120
  const Y = Hr(k);
3100
3121
  if (!Y)
3101
- throw Ne("section.operationInfo.editInfoSet is required");
3122
+ throw ze("section.operationInfo.editInfoSet is required");
3102
3123
  o.value = !0, r.value = null, p && p !== Me(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
3103
3124
  try {
3104
3125
  const {
3105
3126
  tagId: W,
3106
3127
  ...Ce
3107
- } = N(c.value, k), ve = kr(k, Ce), ie = Xr(
3128
+ } = z(l.value, k), ve = kr(k, Ce), ie = Xr(
3108
3129
  k,
3109
3130
  ve.infSetValues ?? [],
3110
3131
  {
@@ -3120,7 +3141,7 @@ const na = (e) => {
3120
3141
  type: "editInfoSet",
3121
3142
  requestSource: "inner",
3122
3143
  tagId: k.requestTagId ?? k.tagId,
3123
- node: c.value,
3144
+ node: l.value,
3124
3145
  section: k,
3125
3146
  params: ve,
3126
3147
  model: k.model
@@ -3148,15 +3169,15 @@ const na = (e) => {
3148
3169
  // 当前 viewModel。
3149
3170
  viewModel: a,
3150
3171
  // 当前模板树节点。
3151
- nodes: i,
3172
+ nodes: c,
3152
3173
  // 当前已加载 section 列表。
3153
- sections: P,
3174
+ sections: V,
3154
3175
  // 当前 section 缓存。
3155
- sectionMap: l,
3176
+ sectionMap: i,
3156
3177
  // 当前 section 状态缓存。
3157
3178
  sectionStatusMap: $,
3158
3179
  // 当前激活节点。
3159
- activeNode: c,
3180
+ activeNode: l,
3160
3181
  // 当前激活 section。
3161
3182
  activeSection: s,
3162
3183
  // 给页面消费的状态快照。
@@ -3177,20 +3198,20 @@ const na = (e) => {
3177
3198
  formatOperationParams: {}
3178
3199
  },
3179
3200
  setup(e) {
3180
- const t = e, n = na(t), { viewModel: o, nodes: r, sections: i, activeNode: a, activeSection: c, state: s, actions: l } = n;
3201
+ const t = e, n = na(t), { viewModel: o, nodes: r, sections: c, activeNode: a, activeSection: l, state: s, actions: i } = n;
3181
3202
  return (g, w) => te(g.$slots, "default", Oe(Be({
3182
3203
  viewModel: J(o),
3183
3204
  nodes: J(r),
3184
- sections: J(i),
3205
+ sections: J(c),
3185
3206
  activeNode: J(a),
3186
- activeSection: J(c),
3207
+ activeSection: J(l),
3187
3208
  state: J(s),
3188
- actions: J(l),
3209
+ actions: J(i),
3189
3210
  renderConfig: t.renderConfig
3190
3211
  })));
3191
3212
  }
3192
3213
  });
3193
- function Vn(e) {
3214
+ function Pn(e) {
3194
3215
  if (e.action) {
3195
3216
  if (e.action.type === "direct") {
3196
3217
  Dt(e.action.options);
@@ -3235,13 +3256,13 @@ const oa = {
3235
3256
  "html",
3236
3257
  "code",
3237
3258
  "multi-row"
3238
- ], i = ge(null), a = O(
3259
+ ], c = ge(null), a = O(
3239
3260
  () => kt(n.field)
3240
- ), c = O(
3261
+ ), l = O(
3241
3262
  () => ut(n.field)
3242
3263
  ), s = O(
3243
3264
  () => dr(n.field)
3244
- ), l = O(
3265
+ ), i = O(
3245
3266
  () => n.disabled || n.field.disabled || n.field.readonly
3246
3267
  ), g = O(() => !!n.field.props?.multiple), w = O(
3247
3268
  () => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
@@ -3252,7 +3273,7 @@ const oa = {
3252
3273
  return;
3253
3274
  const u = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3254
3275
  return Number.isFinite(u) ? u : void 0;
3255
- }), P = O(
3276
+ }), V = O(
3256
3277
  () => fr(n.field, n.modelValue)
3257
3278
  ), f = O(
3258
3279
  () => (n.field.options ?? []).map((u) => ({
@@ -3262,12 +3283,12 @@ const oa = {
3262
3283
  ), S = O(() => {
3263
3284
  const u = n.field.props?.popperClass ?? n.field.props?.["popper-class"];
3264
3285
  return s.value ? [u, "global-info-field-control__descr-popper"].filter(Boolean).join(" ") : u;
3265
- }), M = O(
3286
+ }), T = O(
3266
3287
  () => (
3267
3288
  // select_remote_descr 的浮层样式受业务沙箱前缀约束,默认留在当前应用容器内,避免 teleport 到 body 后样式失效。
3268
3289
  s.value ? !1 : n.field.props?.teleported
3269
3290
  )
3270
- ), N = O(() => {
3291
+ ), z = O(() => {
3271
3292
  const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], _ = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3272
3293
  return u !== void 0 || _ !== void 0 ? n.modelValue ?? _ ?? !1 : vn(n.modelValue);
3273
3294
  }), h = O(() => a.value === "code" ? 5 : 1), v = O(
@@ -3284,79 +3305,79 @@ const oa = {
3284
3305
  n.modelValue,
3285
3306
  Z("common.请选择文件")
3286
3307
  )
3287
- ), A = O(() => n.field.placeholder ? n.field.placeholder : c.value ? Z("common.请输入关键词") : a.value === "select" ? Z("common.请选择") : a.value === "date" ? Z("common.请选择日期") : a.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3308
+ ), A = O(() => n.field.placeholder ? n.field.placeholder : l.value ? Z("common.请输入关键词") : a.value === "select" ? Z("common.请选择") : a.value === "date" ? Z("common.请选择日期") : a.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3288
3309
  let b;
3289
3310
  function j(u) {
3290
- if (Array.isArray(P.value)) {
3291
- const _ = P.value.find(
3311
+ if (Array.isArray(V.value)) {
3312
+ const _ = V.value.find(
3292
3313
  (D) => Ze(u, D)
3293
3314
  );
3294
3315
  if (_ !== void 0) return _;
3295
3316
  }
3296
- return Ze(u, P.value) ? P.value : u.value;
3317
+ return Ze(u, V.value) ? V.value : u.value;
3297
3318
  }
3298
3319
  function C(u) {
3299
3320
  o("update:modelValue", re(u));
3300
3321
  }
3301
- function z(u) {
3322
+ function N(u) {
3302
3323
  o("change", re(u));
3303
3324
  }
3304
3325
  function re(u) {
3305
3326
  return a.value === "select" || a.value === "select_remote" ? pr(n.field, u) : u;
3306
3327
  }
3307
3328
  function le(u) {
3308
- u && o("loadOptions", c.value ? { searchText: "" } : void 0);
3329
+ u && o("loadOptions", l.value ? { searchText: "" } : void 0);
3309
3330
  }
3310
3331
  function R(u) {
3311
- c.value && (b && clearTimeout(b), b = setTimeout(() => {
3332
+ l.value && (b && clearTimeout(b), b = setTimeout(() => {
3312
3333
  o("loadOptions", { searchText: u });
3313
3334
  }, 300));
3314
3335
  }
3315
3336
  function B() {
3316
- l.value || i.value?.click();
3337
+ i.value || c.value?.click();
3317
3338
  }
3318
3339
  function E(u) {
3319
- Vn(u);
3340
+ Pn(u);
3320
3341
  }
3321
3342
  Xn(() => {
3322
3343
  b && clearTimeout(b);
3323
3344
  });
3324
3345
  function d(u) {
3325
- const _ = u.target, D = Array.from(_.files ?? []), V = n.field.props?.multiple ? D : D[0] ?? null;
3326
- C(V), z(V);
3346
+ const _ = u.target, D = Array.from(_.files ?? []), P = n.field.props?.multiple ? D : D[0] ?? null;
3347
+ C(P), N(P);
3327
3348
  }
3328
3349
  return (u, _) => {
3329
- const D = Xt, V = Qt, x = Wt, K = ao, q = so, Q = Zt;
3330
- return a.value === "select" || a.value === "select_remote" ? (I(), H(V, ae({
3350
+ const D = Xt, P = Qt, x = Wt, K = ao, q = so, Q = Zt;
3351
+ return a.value === "select" || a.value === "select_remote" ? (I(), H(P, ae({
3331
3352
  key: 0,
3332
3353
  class: "global-info-field-control"
3333
3354
  }, u.field.props, {
3334
3355
  "popper-class": S.value,
3335
- teleported: M.value,
3336
- "model-value": P.value,
3356
+ teleported: T.value,
3357
+ "model-value": V.value,
3337
3358
  placeholder: A.value,
3338
- disabled: l.value,
3359
+ disabled: i.value,
3339
3360
  "collapse-tags": g.value,
3340
3361
  "collapse-tags-tooltip": g.value,
3341
3362
  "max-collapse-tags": 1,
3342
- filterable: c.value || !!u.field.props?.filterable,
3343
- remote: c.value || !!u.field.props?.remote,
3344
- "remote-method": c.value ? R : u.field.props?.remoteMethod,
3363
+ filterable: l.value || !!u.field.props?.filterable,
3364
+ remote: l.value || !!u.field.props?.remote,
3365
+ "remote-method": l.value ? R : u.field.props?.remoteMethod,
3345
3366
  clearable: "",
3346
3367
  onVisibleChange: le,
3347
3368
  "onUpdate:modelValue": C,
3348
- onChange: z
3369
+ onChange: N
3349
3370
  }), {
3350
3371
  default: U(() => [
3351
- (I(!0), G(Se, null, ye(f.value, (T) => (I(), H(D, {
3352
- key: String(T.value),
3353
- label: T.label,
3354
- value: T.value
3372
+ (I(!0), G(Se, null, ye(f.value, (M) => (I(), H(D, {
3373
+ key: String(M.value),
3374
+ label: M.label,
3375
+ value: M.value
3355
3376
  }, {
3356
3377
  default: U(() => [
3357
3378
  s.value ? (I(), G("div", oa, [
3358
- ne("div", ra, oe(T.label), 1),
3359
- T.labelDescr ? (I(), G("div", aa, oe(T.labelDescr), 1)) : fe("", !0)
3379
+ ne("div", ra, oe(M.label), 1),
3380
+ M.labelDescr ? (I(), G("div", aa, oe(M.labelDescr), 1)) : fe("", !0)
3360
3381
  ])) : fe("", !0)
3361
3382
  ]),
3362
3383
  _: 2
@@ -3369,33 +3390,33 @@ const oa = {
3369
3390
  }, u.field.props, {
3370
3391
  "model-value": u.modelValue,
3371
3392
  placeholder: A.value,
3372
- disabled: l.value,
3393
+ disabled: i.value,
3373
3394
  type: "date",
3374
3395
  "value-format": "YYYY-MM-DD",
3375
3396
  "onUpdate:modelValue": C,
3376
- onChange: z
3397
+ onChange: N
3377
3398
  }), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "number" ? (I(), H(K, ae({
3378
3399
  key: 2,
3379
3400
  class: "global-info-field-control"
3380
3401
  }, u.field.props, {
3381
3402
  "model-value": L.value,
3382
3403
  placeholder: A.value,
3383
- disabled: l.value,
3404
+ disabled: i.value,
3384
3405
  "controls-position": "right",
3385
3406
  "onUpdate:modelValue": C,
3386
- onChange: z
3407
+ onChange: N
3387
3408
  }), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "switch" ? (I(), H(q, ae({
3388
3409
  key: 3,
3389
3410
  class: "global-info-field-control global-info-field-control--switch"
3390
3411
  }, u.field.props, {
3391
- "model-value": N.value,
3392
- disabled: l.value,
3412
+ "model-value": z.value,
3413
+ disabled: i.value,
3393
3414
  "onUpdate:modelValue": C,
3394
- onChange: z
3415
+ onChange: N
3395
3416
  }), null, 16, ["model-value", "disabled"])) : a.value === "file" ? (I(), G("div", {
3396
3417
  key: 4,
3397
3418
  class: We(["global-info-field-control global-info-field-control--file", {
3398
- "is-disabled": l.value,
3419
+ "is-disabled": i.value,
3399
3420
  "is-empty": !v.value,
3400
3421
  "is-filled": v.value
3401
3422
  }]),
@@ -3403,24 +3424,24 @@ const oa = {
3403
3424
  }, [
3404
3425
  ne("input", {
3405
3426
  ref_key: "fileInputRef",
3406
- ref: i,
3427
+ ref: c,
3407
3428
  class: "global-info-field-control__file-input",
3408
3429
  type: "file",
3409
- disabled: l.value,
3430
+ disabled: i.value,
3410
3431
  accept: String(u.field.props?.accept ?? ""),
3411
3432
  multiple: !!u.field.props?.multiple,
3412
3433
  onChange: d
3413
3434
  }, null, 40, sa),
3414
3435
  y.value.length ? (I(), G("span", la, [
3415
- (I(!0), G(Se, null, ye(y.value, (T, X) => (I(), G(Se, {
3416
- key: T.key
3436
+ (I(!0), G(Se, null, ye(y.value, (M, X) => (I(), G(Se, {
3437
+ key: M.key
3417
3438
  }, [
3418
- T.action ? (I(), G("button", {
3439
+ M.action ? (I(), G("button", {
3419
3440
  key: 0,
3420
3441
  class: "global-info-field-control__file-preview",
3421
3442
  type: "button",
3422
- onClick: Ut((ue) => E(T), ["stop", "prevent"])
3423
- }, oe(T.text), 9, ia)) : (I(), G("span", ca, oe(T.text), 1)),
3443
+ onClick: Ut((ue) => E(M), ["stop", "prevent"])
3444
+ }, oe(M.text), 9, ia)) : (I(), G("span", ca, oe(M.text), 1)),
3424
3445
  X < y.value.length - 1 ? (I(), G("span", ua, "、")) : fe("", !0)
3425
3446
  ], 64))), 128))
3426
3447
  ])) : v.value ? (I(), G("span", da, oe(F.value), 1)) : (I(), G("span", fa, oe(J(Z)("common.上传")), 1))
@@ -3439,16 +3460,16 @@ const oa = {
3439
3460
  }, u.field.props, {
3440
3461
  "model-value": w.value,
3441
3462
  placeholder: A.value,
3442
- disabled: l.value,
3463
+ disabled: i.value,
3443
3464
  type: r.includes(a.value) ? "textarea" : "text",
3444
3465
  rows: r.includes(a.value) ? h.value : void 0,
3445
3466
  resize: $.value,
3446
3467
  "onUpdate:modelValue": C,
3447
- onChange: z
3468
+ onChange: N
3448
3469
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3449
3470
  };
3450
3471
  }
3451
- }), Pn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-fb0f2f9b"]]), ma = ["innerHTML"], va = {
3472
+ }), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-94cd43bd"]]), ma = ["innerHTML"], va = {
3452
3473
  key: 1,
3453
3474
  class: "global-info-field-value global-info-field-value--code"
3454
3475
  }, ha = {
@@ -3463,25 +3484,25 @@ const oa = {
3463
3484
  emptyText: { default: "-" }
3464
3485
  },
3465
3486
  setup(e) {
3466
- const t = e, n = O(() => Tt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), r = O(() => mn(t.field, t.value, t.emptyText)), i = O(() => hn(t.field, t.value, t.emptyText));
3467
- function a(c) {
3468
- Vn(c);
3487
+ const t = e, n = O(() => Tt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), r = O(() => mn(t.field, t.value, t.emptyText)), c = O(() => hn(t.field, t.value, t.emptyText));
3488
+ function a(l) {
3489
+ Pn(l);
3469
3490
  }
3470
- return (c, s) => n.value === "html" && !o.value ? (I(), G("span", {
3491
+ return (l, s) => n.value === "html" && !o.value ? (I(), G("span", {
3471
3492
  key: 0,
3472
3493
  class: "global-info-field-value global-info-field-value--html",
3473
3494
  innerHTML: r.value
3474
- }, null, 8, ma)) : n.value === "code" && !o.value ? (I(), G("pre", va, oe(r.value), 1)) : i.value.length ? (I(), G("span", ha, [
3475
- (I(!0), G(Se, null, ye(i.value, (l, g) => (I(), G(Se, {
3476
- key: l.key
3495
+ }, null, 8, ma)) : n.value === "code" && !o.value ? (I(), G("pre", va, oe(r.value), 1)) : c.value.length ? (I(), G("span", ha, [
3496
+ (I(!0), G(Se, null, ye(c.value, (i, g) => (I(), G(Se, {
3497
+ key: i.key
3477
3498
  }, [
3478
- l.action ? (I(), G("button", {
3499
+ i.action ? (I(), G("button", {
3479
3500
  key: 0,
3480
3501
  class: "global-info-field-value__attachment-preview",
3481
3502
  type: "button",
3482
- onClick: (w) => a(l)
3483
- }, oe(l.text), 9, ga)) : (I(), G("span", ya, oe(l.text), 1)),
3484
- g < i.value.length - 1 ? (I(), G("span", ba, "、")) : fe("", !0)
3503
+ onClick: (w) => a(i)
3504
+ }, oe(i.text), 9, ga)) : (I(), G("span", ya, oe(i.text), 1)),
3505
+ g < c.value.length - 1 ? (I(), G("span", ba, "、")) : fe("", !0)
3485
3506
  ], 64))), 128))
3486
3507
  ])) : (I(), G("span", {
3487
3508
  key: 3,
@@ -3491,17 +3512,17 @@ const oa = {
3491
3512
  }])
3492
3513
  }, oe(r.value), 3));
3493
3514
  }
3494
- }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-79688203"]]);
3515
+ }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-efe9888d"]]);
3495
3516
  function _a(e) {
3496
3517
  const t = kt(e);
3497
3518
  return (t === "select" || t === "select_remote") && !!e.interface;
3498
3519
  }
3499
3520
  function st(e, t, n = {}, o = "") {
3500
- const r = t.key || t.id || t.code, a = ze(t).map((c) => `${c}:${String(n[c] ?? "")}`).join("|");
3521
+ const r = t.key || t.id || t.code, a = Ne(t).map((l) => `${l}:${String(n[l] ?? "")}`).join("|");
3501
3522
  return [e, o, r, a].join("::");
3502
3523
  }
3503
3524
  function lt(e, t, n) {
3504
- return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && ze(e).length === 0 : !1;
3525
+ return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Ne(e).length === 0 : !1;
3505
3526
  }
3506
3527
  function An(e = {}) {
3507
3528
  return Object.prototype.hasOwnProperty.call(e, "searchText");
@@ -3510,12 +3531,12 @@ function Rn(e, t) {
3510
3531
  const n = new Set(
3511
3532
  [t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
3512
3533
  );
3513
- return n.size === 0 ? !1 : ze(e).some((o) => n.has(o));
3534
+ return n.size === 0 ? !1 : Ne(e).some((o) => n.has(o));
3514
3535
  }
3515
- function Nn(e, t, n) {
3536
+ function zn(e, t, n) {
3516
3537
  return _a(e) ? n ? !0 : (ut(e), !_e(t)) : !1;
3517
3538
  }
3518
- function zn(e, t) {
3539
+ function Nn(e, t) {
3519
3540
  return [e.code, e.key, e.id].map((o) => t[o]).filter((o) => !_e(o))[0] ?? e.value;
3520
3541
  }
3521
3542
  function xn(e, t) {
@@ -3540,16 +3561,16 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3540
3561
  renderConfig: {}
3541
3562
  },
3542
3563
  setup(e) {
3543
- const t = e, n = Le(), o = O(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = O(() => ft(
3564
+ const t = e, n = Le(), o = O(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), c = O(() => ft(
3544
3565
  t.section.fields,
3545
3566
  t.section,
3546
3567
  t.renderConfig,
3547
3568
  { values: o.value }
3548
3569
  )), a = ln(
3549
3570
  async (v, F, y) => t.actions.loadFieldOptions(t.section, v, F, y),
3550
- (v) => `${t.section.key}:${M(v)}`
3571
+ (v) => `${t.section.key}:${T(v)}`
3551
3572
  );
3552
- function c(v, F) {
3573
+ function l(v, F) {
3553
3574
  const y = { ...o.value, [v.code]: F };
3554
3575
  (v.cascadeClearFields ?? []).forEach((A) => {
3555
3576
  y[A] = "";
@@ -3559,7 +3580,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3559
3580
  const A = t.renderConfig?.onFieldBusinessChange;
3560
3581
  if (A)
3561
3582
  try {
3562
- const b = l(v, F), j = {
3583
+ const b = i(v, F), j = {
3563
3584
  field: v,
3564
3585
  value: F,
3565
3586
  section: t.section,
@@ -3580,7 +3601,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3580
3601
  console.error("[GlobalInfoFormRenderer] field business change failed", b);
3581
3602
  }
3582
3603
  }
3583
- function l(v, F) {
3604
+ function i(v, F) {
3584
3605
  const y = dt(v, F);
3585
3606
  return (v.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
3586
3607
  }
@@ -3595,7 +3616,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3595
3616
  return Object.fromEntries(A);
3596
3617
  }
3597
3618
  async function $(v, F = {}, y = o.value) {
3598
- const A = y, b = M(v), j = st(t.section.key, v, A), C = r.get(b);
3619
+ const A = y, b = T(v), j = st(t.section.key, v, A), C = r.get(b);
3599
3620
  if (!An(F) && lt(v, C, j)) {
3600
3621
  r.set(b, j);
3601
3622
  return;
@@ -3611,11 +3632,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3611
3632
  }
3612
3633
  }
3613
3634
  async function L(v = o.value, F) {
3614
- for (const y of i.value) {
3635
+ for (const y of c.value) {
3615
3636
  if (F && !Rn(y, F)) continue;
3616
- const A = zn(y, v);
3617
- if (!N(y, A)) continue;
3618
- const b = st(t.section.key, y, v), j = M(y), C = r.get(j);
3637
+ const A = Nn(y, v);
3638
+ if (!z(y, A)) continue;
3639
+ const b = st(t.section.key, y, v), j = T(y), C = r.get(j);
3619
3640
  if (lt(y, C, b)) {
3620
3641
  r.set(j, b);
3621
3642
  continue;
@@ -3635,7 +3656,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3635
3656
  },
3636
3657
  { immediate: !0 }
3637
3658
  );
3638
- function P(v) {
3659
+ function V(v) {
3639
3660
  const F = o.value[v.code];
3640
3661
  return {
3641
3662
  field: v,
@@ -3647,7 +3668,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3647
3668
  value: F,
3648
3669
  state: t.state,
3649
3670
  actions: t.actions,
3650
- updateModelValue: (y) => c(v, y)
3671
+ updateModelValue: (y) => l(v, y)
3651
3672
  };
3652
3673
  }
3653
3674
  function f(v) {
@@ -3659,11 +3680,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3659
3680
  function S(v) {
3660
3681
  return v.span ? Math.min(Math.max(v.span, 1), 24) : 6;
3661
3682
  }
3662
- function M(v) {
3683
+ function T(v) {
3663
3684
  return v.key || v.id || v.code;
3664
3685
  }
3665
- function N(v, F) {
3666
- return Nn(v, F, t.editing);
3686
+ function z(v, F) {
3687
+ return zn(v, F, t.editing);
3667
3688
  }
3668
3689
  function h(v) {
3669
3690
  return v.required || v.isRequired;
@@ -3678,8 +3699,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3678
3699
  default: U(() => [
3679
3700
  Ie(b, { gutter: 24 }, {
3680
3701
  default: U(() => [
3681
- (I(!0), G(Se, null, ye(i.value, (C) => (I(), H(A, {
3682
- key: M(C),
3702
+ (I(!0), G(Se, null, ye(c.value, (C) => (I(), H(A, {
3703
+ key: T(C),
3683
3704
  span: S(C)
3684
3705
  }, {
3685
3706
  default: U(() => [
@@ -3697,13 +3718,13 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3697
3718
  f(C) ? te(v.$slots, f(C), ae({
3698
3719
  key: 0,
3699
3720
  ref_for: !0
3700
- }, P(C)), void 0, !0) : v.editing && !C.readonly ? (I(), H(Pn, {
3721
+ }, V(C)), void 0, !0) : v.editing && !C.readonly ? (I(), H(Vn, {
3701
3722
  key: 1,
3702
3723
  field: C,
3703
3724
  "model-value": o.value[C.code],
3704
3725
  section: v.section,
3705
- onLoadOptions: (z) => $(C, z),
3706
- "onUpdate:modelValue": (z) => c(C, z)
3726
+ onLoadOptions: (N) => $(C, N),
3727
+ "onUpdate:modelValue": (N) => l(C, N)
3707
3728
  }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
3708
3729
  key: 2,
3709
3730
  field: C,
@@ -3724,7 +3745,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3724
3745
  }, 8, ["model"]);
3725
3746
  };
3726
3747
  }
3727
- }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-4a51dc3d"]]), ka = /* @__PURE__ */ pe({
3748
+ }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-a2728a86"]]), ka = /* @__PURE__ */ pe({
3728
3749
  name: "GlobalInfoDeleteConfirm",
3729
3750
  __name: "GlobalInfoDeleteConfirm",
3730
3751
  props: {
@@ -3770,12 +3791,12 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3770
3791
  },
3771
3792
  setup(e) {
3772
3793
  const t = e, n = Le(), o = O(
3773
- () => t.section.fields.some((d) => Pt(d))
3774
- ), r = O(() => o.value), i = O(
3794
+ () => t.section.fields.some((d) => Vt(d))
3795
+ ), r = O(() => o.value), c = O(
3775
3796
  () => t.renderConfig?.sequenceLabel ?? Z("common.序号")
3776
3797
  ), a = O(
3777
3798
  () => t.renderConfig?.sequenceWidth ?? 56
3778
- ), c = O(() => {
3799
+ ), l = O(() => {
3779
3800
  const d = t.renderConfig?.sequenceStart;
3780
3801
  return typeof d == "number" && Number.isFinite(d) ? d : 1;
3781
3802
  }), s = O(() => {
@@ -3786,7 +3807,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3786
3807
  { rows: t.section.rows, values: t.section.model }
3787
3808
  );
3788
3809
  return r.value ? d.filter((u) => !re(u)) : d;
3789
- }), l = /* @__PURE__ */ new Map(), g = ln(
3810
+ }), i = /* @__PURE__ */ new Map(), g = ln(
3790
3811
  async (d, u, _) => t.actions.loadFieldOptions(t.section, d, u, _),
3791
3812
  (d, u) => `${t.section.key}:${B(u)}:${C(d)}`
3792
3813
  );
@@ -3805,18 +3826,18 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3805
3826
  }) : d.allowDelete !== !1);
3806
3827
  }
3807
3828
  function L(d, u, _, D) {
3808
- const V = t.section.rows.slice(), x = _.cascadeClearFields ?? [], K = {
3829
+ const P = t.section.rows.slice(), x = _.cascadeClearFields ?? [], K = {
3809
3830
  ...d,
3810
3831
  __rowKey: B(d),
3811
3832
  [_.code]: D
3812
3833
  };
3813
3834
  x.forEach((q) => {
3814
3835
  K[q] = "";
3815
- }), V[u] = {
3836
+ }), P[u] = {
3816
3837
  ...K
3817
- }, t.actions.updateTableRows(t.section, V), P(_, D, K, u, V), h(_, K);
3838
+ }, t.actions.updateTableRows(t.section, P), V(_, D, K, u, P), h(_, K);
3818
3839
  }
3819
- function P(d, u, _, D, V) {
3840
+ function V(d, u, _, D, P) {
3820
3841
  const x = t.renderConfig?.onFieldBusinessChange;
3821
3842
  if (x)
3822
3843
  try {
@@ -3828,19 +3849,19 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3828
3849
  values: q,
3829
3850
  row: _,
3830
3851
  rowIndex: D,
3831
- rows: V,
3852
+ rows: P,
3832
3853
  node: t.node,
3833
3854
  activeNode: t.node,
3834
3855
  sections: S(),
3835
- sectionValues: M(t.section, V),
3856
+ sectionValues: T(t.section, P),
3836
3857
  actions: t.actions,
3837
3858
  selectedOption: K[0],
3838
3859
  selectedOptions: K
3839
3860
  };
3840
- Promise.resolve(x(Q)).catch((T) => {
3861
+ Promise.resolve(x(Q)).catch((M) => {
3841
3862
  console.error(
3842
3863
  "[GlobalInfoTableRenderer] field business change failed",
3843
- T
3864
+ M
3844
3865
  );
3845
3866
  });
3846
3867
  } catch (K) {
@@ -3853,34 +3874,34 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3853
3874
  function f(d, u) {
3854
3875
  const _ = dt(d, u);
3855
3876
  return (d.options ?? []).filter(
3856
- (D) => _.some((V) => Ze(D, V))
3877
+ (D) => _.some((P) => Ze(D, P))
3857
3878
  );
3858
3879
  }
3859
3880
  function S() {
3860
3881
  return Object.values(t.state.sectionMap);
3861
3882
  }
3862
- function M(d, u) {
3863
- const D = S().flatMap((V) => {
3864
- const x = V.key === d.key ? u : V.renderType === "table" ? V.rows : V.model;
3883
+ function T(d, u) {
3884
+ const D = S().flatMap((P) => {
3885
+ const x = P.key === d.key ? u : P.renderType === "table" ? P.rows : P.model;
3865
3886
  return [
3866
- V.key,
3867
- V.id,
3868
- V.setId,
3869
- V.infSetId,
3870
- V.code
3887
+ P.key,
3888
+ P.id,
3889
+ P.setId,
3890
+ P.infSetId,
3891
+ P.code
3871
3892
  ].filter(Boolean).map((K) => [String(K), x]);
3872
3893
  });
3873
3894
  return Object.fromEntries(D);
3874
3895
  }
3875
- async function N(d, u, _ = {}, D = u) {
3876
- const V = B(D), x = `${V}:${C(d)}`, K = st(
3896
+ async function z(d, u, _ = {}, D = u) {
3897
+ const P = B(D), x = `${P}:${C(d)}`, K = st(
3877
3898
  t.section.key,
3878
3899
  d,
3879
3900
  D,
3880
- V
3881
- ), q = l.get(x);
3901
+ P
3902
+ ), q = i.get(x);
3882
3903
  if (!An(_) && lt(d, q, K)) {
3883
- l.set(x, K);
3904
+ i.set(x, K);
3884
3905
  return;
3885
3906
  }
3886
3907
  try {
@@ -3893,31 +3914,31 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3893
3914
  d,
3894
3915
  D,
3895
3916
  _
3896
- ), l.set(x, K);
3897
- } catch (T) {
3898
- console.error("[GlobalInfoTableRenderer] load field options failed", T);
3917
+ ), i.set(x, K);
3918
+ } catch (M) {
3919
+ console.error("[GlobalInfoTableRenderer] load field options failed", M);
3899
3920
  }
3900
3921
  }
3901
3922
  async function h(d, u) {
3902
3923
  const _ = u ? [u] : t.section.rows;
3903
3924
  for (const D of _) {
3904
- const V = B(D);
3925
+ const P = B(D);
3905
3926
  for (const x of s.value) {
3906
3927
  if (d && !Rn(x, d))
3907
3928
  continue;
3908
- const K = zn(x, D);
3929
+ const K = Nn(x, D);
3909
3930
  if (!A(x, K)) continue;
3910
3931
  const q = st(
3911
3932
  t.section.key,
3912
3933
  x,
3913
3934
  D,
3914
- V
3915
- ), Q = `${V}:${C(x)}`, T = l.get(Q);
3916
- if (lt(x, T, q)) {
3917
- l.set(Q, q);
3935
+ P
3936
+ ), Q = `${P}:${C(x)}`, M = i.get(Q);
3937
+ if (lt(x, M, q)) {
3938
+ i.set(Q, q);
3918
3939
  continue;
3919
3940
  }
3920
- T !== q && await N(
3941
+ M !== q && await z(
3921
3942
  x,
3922
3943
  D,
3923
3944
  xn(x, K)
@@ -3939,7 +3960,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3939
3960
  value: D,
3940
3961
  state: t.state,
3941
3962
  actions: t.actions,
3942
- updateModelValue: (V) => L(u, _, d, V)
3963
+ updateModelValue: (P) => L(u, _, d, P)
3943
3964
  };
3944
3965
  }
3945
3966
  function F(d) {
@@ -3952,23 +3973,23 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3952
3973
  return !d.readonly && !d.disabled;
3953
3974
  }
3954
3975
  function A(d, u) {
3955
- return Nn(d, u, t.editing);
3976
+ return zn(d, u, t.editing);
3956
3977
  }
3957
3978
  function b(d) {
3958
- return d.width ?? (Vt(d) ? 56 : void 0);
3979
+ return d.width ?? (Pt(d) ? 56 : void 0);
3959
3980
  }
3960
3981
  function j(d) {
3961
3982
  if (!d.width)
3962
- return d.minWidth ?? (Vt(d) ? 56 : void 0);
3983
+ return d.minWidth ?? (Pt(d) ? 56 : void 0);
3963
3984
  }
3964
3985
  function C(d) {
3965
3986
  return d.key || d.id || d.code;
3966
3987
  }
3967
- function z(d) {
3968
- return c.value + d;
3988
+ function N(d) {
3989
+ return l.value + d;
3969
3990
  }
3970
3991
  function re(d) {
3971
- return Pt(d);
3992
+ return Vt(d);
3972
3993
  }
3973
3994
  let le = 0;
3974
3995
  const R = /* @__PURE__ */ new WeakMap();
@@ -3979,8 +4000,8 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3979
4000
  const _ = d, D = R.get(_);
3980
4001
  if (D) return D;
3981
4002
  le += 1;
3982
- const V = `local-${le}`;
3983
- return R.set(_, V), V;
4003
+ const P = `local-${le}`;
4004
+ return R.set(_, P), P;
3984
4005
  }
3985
4006
  function E(d) {
3986
4007
  return d.required || d.isRequired;
@@ -3988,7 +4009,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3988
4009
  return Ee(
3989
4010
  () => t.section.key,
3990
4011
  () => {
3991
- l.clear();
4012
+ i.clear();
3992
4013
  }
3993
4014
  ), Ee(
3994
4015
  () => t.editing,
@@ -3997,7 +4018,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3997
4018
  },
3998
4019
  { immediate: !0 }
3999
4020
  ), (d, u) => {
4000
- const _ = on, D = eo("Delete"), V = Jt, x = $t, K = nn;
4021
+ const _ = on, D = eo("Delete"), P = Jt, x = $t, K = nn;
4001
4022
  return I(), G("div", {
4002
4023
  class: We(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
4003
4024
  }, [
@@ -4013,9 +4034,9 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4013
4034
  r.value ? (I(), H(_, {
4014
4035
  key: 0,
4015
4036
  type: "index",
4016
- label: i.value,
4037
+ label: c.value,
4017
4038
  width: a.value,
4018
- index: z
4039
+ index: N
4019
4040
  }, null, 8, ["label", "width"])) : fe("", !0),
4020
4041
  (I(!0), G(Se, null, ye(s.value, (q) => (I(), H(_, {
4021
4042
  key: C(q),
@@ -4030,26 +4051,26 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4030
4051
  ne("span", null, oe(q.label), 1)
4031
4052
  ])
4032
4053
  ]),
4033
- default: U(({ row: Q, $index: T }) => [
4054
+ default: U(({ row: Q, $index: M }) => [
4034
4055
  F(q) ? te(d.$slots, F(q), ae({
4035
4056
  key: 0,
4036
4057
  ref_for: !0
4037
- }, v(q, Q, T)), void 0, !0) : d.editing && y(q) ? (I(), H(Pn, {
4058
+ }, v(q, Q, M)), void 0, !0) : d.editing && y(q) ? (I(), H(Vn, {
4038
4059
  key: 1,
4039
4060
  field: q,
4040
4061
  "model-value": Q[q.code],
4041
4062
  section: d.section,
4042
4063
  row: Q,
4043
- "row-index": T,
4044
- onLoadOptions: (X) => N(q, Q, X),
4045
- "onUpdate:modelValue": (X) => L(Q, T, q, X)
4064
+ "row-index": M,
4065
+ onLoadOptions: (X) => z(q, Q, X),
4066
+ "onUpdate:modelValue": (X) => L(Q, M, q, X)
4046
4067
  }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
4047
4068
  key: 2,
4048
4069
  field: q,
4049
4070
  value: Q[q.code],
4050
4071
  section: d.section,
4051
4072
  row: Q,
4052
- "row-index": T
4073
+ "row-index": M
4053
4074
  }, null, 8, ["field", "value", "section", "row", "row-index"]))
4054
4075
  ]),
4055
4076
  _: 2
@@ -4063,7 +4084,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4063
4084
  default: U(({ row: q, $index: Q }) => [
4064
4085
  $(q, Q) ? (I(), H(ka, {
4065
4086
  key: 0,
4066
- onConfirm: (T) => w(Q)
4087
+ onConfirm: (M) => w(Q)
4067
4088
  }, {
4068
4089
  default: U(() => [
4069
4090
  Ie(x, {
@@ -4072,7 +4093,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4072
4093
  type: "danger"
4073
4094
  }, {
4074
4095
  default: U(() => [
4075
- Ie(V, { class: "global-info-table-renderer__delete-icon" }, {
4096
+ Ie(P, { class: "global-info-table-renderer__delete-icon" }, {
4076
4097
  default: U(() => [
4077
4098
  Ie(D)
4078
4099
  ]),
@@ -4095,7 +4116,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4095
4116
  ], 2);
4096
4117
  };
4097
4118
  }
4098
- }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-c89c935f"]]), Ba = /* @__PURE__ */ pe({
4119
+ }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-ef398e69"]]), Ba = /* @__PURE__ */ pe({
4099
4120
  name: "GlobalInfoAutoRenderer",
4100
4121
  __name: "GlobalInfoAutoRenderer",
4101
4122
  props: {
@@ -4162,29 +4183,29 @@ const Ea = /* @__PURE__ */ pe({
4162
4183
  values: t.section.model,
4163
4184
  rows: t.section.renderType === "table" ? t.section.rows : void 0
4164
4185
  }
4165
- )), r = O(() => t.editing ?? t.actions.isEditing(t.section)), i = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), a = O(() => {
4186
+ )), r = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), a = O(() => {
4166
4187
  const s = Mt(
4167
4188
  n,
4168
4189
  "section",
4169
4190
  Gn(t.node ?? {}, t.section)
4170
- ), l = c(t.section.renderType);
4191
+ ), i = l(t.section.renderType);
4171
4192
  return [
4172
4193
  s,
4173
- l,
4194
+ i,
4174
4195
  "default"
4175
4196
  ].find((g) => !!(g && n[g])) ?? "";
4176
4197
  });
4177
- function c(s) {
4198
+ function l(s) {
4178
4199
  return s === "form" || s === "table" ? s : "";
4179
4200
  }
4180
- return (s, l) => a.value ? te(s.$slots, a.value, {
4201
+ return (s, i) => a.value ? te(s.$slots, a.value, {
4181
4202
  key: 0,
4182
4203
  section: s.section,
4183
4204
  sectionView: s.section,
4184
4205
  node: s.node,
4185
4206
  editing: r.value,
4186
- isEmpty: i.value,
4187
- empty: i.value,
4207
+ isEmpty: c.value,
4208
+ empty: c.value,
4188
4209
  fields: o.value,
4189
4210
  renderConfig: s.renderConfig,
4190
4211
  state: s.state,
@@ -4221,27 +4242,27 @@ const Ea = /* @__PURE__ */ pe({
4221
4242
  () => {
4222
4243
  o.value = !1;
4223
4244
  }
4224
- ), to((i) => (r(i), !1));
4225
- function r(i) {
4226
- o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, i), t("error", i);
4245
+ ), to((c) => (r(c), !1));
4246
+ function r(c) {
4247
+ o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, c), t("error", c);
4227
4248
  }
4228
4249
  return () => {
4229
4250
  if (o.value)
4230
4251
  return n.fallback?.() ?? null;
4231
4252
  try {
4232
4253
  return n.default?.() ?? null;
4233
- } catch (i) {
4234
- return r(i), n.fallback?.() ?? null;
4254
+ } catch (c) {
4255
+ return r(c), n.fallback?.() ?? null;
4235
4256
  }
4236
4257
  };
4237
4258
  }
4238
- }), Va = { class: "global-info-section-block" }, Pa = {
4259
+ }), Pa = { class: "global-info-section-block" }, Va = {
4239
4260
  key: 0,
4240
4261
  class: "global-info-section-block__header"
4241
4262
  }, ja = { class: "global-info-section-block__title-wrap" }, Aa = { class: "global-info-section-block__title" }, Ra = {
4242
4263
  key: 0,
4243
4264
  class: "global-info-section-block__actions"
4244
- }, Na = { class: "global-info-section-block__body" }, za = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = { class: "global-info-section-block__status" }, Ga = /* @__PURE__ */ pe({
4265
+ }, za = { class: "global-info-section-block__body" }, Na = { class: "global-info-section-block__status" }, xa = { class: "global-info-section-block__status" }, qa = { class: "global-info-section-block__status" }, Ga = /* @__PURE__ */ pe({
4245
4266
  name: "GlobalInfoSectionBlock",
4246
4267
  __name: "GlobalInfoSectionBlock",
4247
4268
  props: {
@@ -4255,9 +4276,9 @@ const Ea = /* @__PURE__ */ pe({
4255
4276
  onSave: { type: Function }
4256
4277
  },
4257
4278
  setup(e) {
4258
- const t = e, n = Le(), o = ge(!1), r = ge(null), i = ge(null), a = O(() => !!t.hideHeader), c = O(() => t.actions.getSectionStatus(t.node)), s = O(
4259
- () => t.actions.getSection(t.node) ?? i.value
4260
- ), l = O(() => {
4279
+ const t = e, n = Le(), o = ge(!1), r = ge(null), c = ge(null), a = O(() => !!t.hideHeader), l = O(() => t.actions.getSectionStatus(t.node)), s = O(
4280
+ () => t.actions.getSection(t.node) ?? c.value
4281
+ ), i = O(() => {
4261
4282
  const b = s.value;
4262
4283
  return b ? ft(
4263
4284
  b.fields,
@@ -4274,37 +4295,37 @@ const Ea = /* @__PURE__ */ pe({
4274
4295
  () => !!(s.value && t.actions.isEditing(s.value))
4275
4296
  ), $ = O(
4276
4297
  () => s.value?.renderType === "table"
4277
- ), L = O(() => o.value || c.value.loading), P = O(
4278
- () => M(r.value || c.value.error)
4298
+ ), L = O(() => o.value || l.value.loading), V = O(
4299
+ () => T(r.value || l.value.error)
4279
4300
  ), f = O(() => {
4280
4301
  const b = s.value;
4281
- return b ? b.renderType === "table" && b.rows.length === 0 || l.value.length === 0 : !0;
4302
+ return b ? b.renderType === "table" && b.rows.length === 0 || i.value.length === 0 : !0;
4282
4303
  }), S = O(() => ({
4283
4304
  node: t.node,
4284
4305
  section: s.value,
4285
4306
  sectionView: s.value,
4286
- fields: l.value,
4307
+ fields: i.value,
4287
4308
  renderConfig: t.renderConfig,
4288
4309
  title: g.value,
4289
4310
  editing: w.value,
4290
4311
  loading: L.value,
4291
- error: r.value || c.value.error,
4292
- errorMessage: P.value,
4312
+ error: r.value || l.value.error,
4313
+ errorMessage: V.value,
4293
4314
  isEmpty: f.value,
4294
4315
  empty: f.value,
4295
- sectionStatus: c.value,
4316
+ sectionStatus: l.value,
4296
4317
  state: t.state,
4297
4318
  actions: t.actions,
4298
4319
  reload: A,
4299
- handleEdit: N,
4320
+ handleEdit: z,
4300
4321
  handleCancel: h,
4301
4322
  handleAddTableRow: v,
4302
4323
  handleSave: F
4303
4324
  }));
4304
- function M(b) {
4325
+ function T(b) {
4305
4326
  return b ? b instanceof Error ? b.message : String(b) : "";
4306
4327
  }
4307
- async function N() {
4328
+ async function z() {
4308
4329
  const b = s.value;
4309
4330
  b && (await t.onEdit?.(b, t.node), t.onEdit || t.actions.startEdit(b));
4310
4331
  }
@@ -4316,7 +4337,7 @@ const Ea = /* @__PURE__ */ pe({
4316
4337
  const b = s.value;
4317
4338
  if (!b) return;
4318
4339
  const j = b.fields.reduce(
4319
- (C, z) => (C[z.code] = z.value ?? "", C),
4340
+ (C, N) => (C[N.code] = N.value ?? "", C),
4320
4341
  { __rowKey: `new-${Date.now()}` }
4321
4342
  );
4322
4343
  t.actions.saveRow(b, j, -1);
@@ -4338,9 +4359,9 @@ const Ea = /* @__PURE__ */ pe({
4338
4359
  r.value = b;
4339
4360
  }
4340
4361
  async function A() {
4341
- o.value = !0, r.value = null, i.value = null;
4362
+ o.value = !0, r.value = null, c.value = null;
4342
4363
  try {
4343
- i.value = await t.actions.loadSection(t.node);
4364
+ c.value = await t.actions.loadSection(t.node);
4344
4365
  } catch (b) {
4345
4366
  r.value = b, console.error("[GlobalInfoSectionBlock] load section failed", b);
4346
4367
  } finally {
@@ -4356,8 +4377,8 @@ const Ea = /* @__PURE__ */ pe({
4356
4377
  }
4357
4378
  ), (b, j) => {
4358
4379
  const C = $t;
4359
- return I(), G("section", Va, [
4360
- a.value ? fe("", !0) : (I(), G("header", Pa, [
4380
+ return I(), G("section", Pa, [
4381
+ a.value ? fe("", !0) : (I(), G("header", Va, [
4361
4382
  te(b.$slots, "header", Oe(Be(S.value)), () => [
4362
4383
  ne("div", ja, [
4363
4384
  j[0] || (j[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
@@ -4368,7 +4389,7 @@ const Ea = /* @__PURE__ */ pe({
4368
4389
  w.value ? (I(), G(Se, { key: 1 }, [
4369
4390
  Ie(C, {
4370
4391
  class: "global-info-section-block__cancel",
4371
- disabled: c.value.saving,
4392
+ disabled: l.value.saving,
4372
4393
  onClick: h
4373
4394
  }, {
4374
4395
  default: U(() => [
@@ -4379,7 +4400,7 @@ const Ea = /* @__PURE__ */ pe({
4379
4400
  $.value ? (I(), H(C, {
4380
4401
  key: 0,
4381
4402
  class: "global-info-section-block__add",
4382
- disabled: c.value.saving,
4403
+ disabled: l.value.saving,
4383
4404
  onClick: v
4384
4405
  }, {
4385
4406
  default: U(() => [
@@ -4389,7 +4410,7 @@ const Ea = /* @__PURE__ */ pe({
4389
4410
  }, 8, ["disabled"])) : fe("", !0),
4390
4411
  Ie(C, {
4391
4412
  class: "global-info-section-block__confirm",
4392
- loading: c.value.saving,
4413
+ loading: l.value.saving,
4393
4414
  onClick: F
4394
4415
  }, {
4395
4416
  default: U(() => [
@@ -4400,8 +4421,8 @@ const Ea = /* @__PURE__ */ pe({
4400
4421
  ], 64)) : (I(), H(C, {
4401
4422
  key: 0,
4402
4423
  class: "global-info-section-block__edit",
4403
- disabled: c.value.saving || L.value,
4404
- onClick: N
4424
+ disabled: l.value.saving || L.value,
4425
+ onClick: z
4405
4426
  }, {
4406
4427
  default: U(() => [
4407
4428
  j[1] || (j[1] = ne("svg", {
@@ -4423,9 +4444,9 @@ const Ea = /* @__PURE__ */ pe({
4423
4444
  ], !0)
4424
4445
  ], !0)
4425
4446
  ])),
4426
- ne("div", Na, [
4447
+ ne("div", za, [
4427
4448
  L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
4428
- ne("div", za, oe(J(Z)("common.加载中___")), 1)
4449
+ ne("div", Na, oe(J(Z)("common.加载中___")), 1)
4429
4450
  ], !0) : !s.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
4430
4451
  ne("div", xa, oe(J(Z)("common.暂无数据")), 1)
4431
4452
  ], !0) : (I(), H(La, {
@@ -4448,7 +4469,7 @@ const Ea = /* @__PURE__ */ pe({
4448
4469
  actions: b.actions,
4449
4470
  "render-config": b.renderConfig
4450
4471
  }, Re({ _: 2 }, [
4451
- ye(J(n), (z, re) => ({
4472
+ ye(J(n), (N, re) => ({
4452
4473
  name: re,
4453
4474
  fn: U((le) => [
4454
4475
  te(b.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
@@ -4462,7 +4483,7 @@ const Ea = /* @__PURE__ */ pe({
4462
4483
  ]);
4463
4484
  };
4464
4485
  }
4465
- }), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-ca5e73ee"]]), Ya = { class: "global-info-group" }, Ua = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ja = { class: "global-info-group__body" }, Wa = ["id"], Za = { class: "global-info-group__empty" }, Qa = /* @__PURE__ */ pe({
4486
+ }), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-55cf6792"]]), Ya = { class: "global-info-group" }, Ua = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ja = { class: "global-info-group__body" }, Wa = ["id"], Za = { class: "global-info-group__empty" }, Qa = /* @__PURE__ */ pe({
4466
4487
  name: "GlobalInfoGroup",
4467
4488
  __name: "GlobalInfoGroup",
4468
4489
  props: {
@@ -4477,12 +4498,12 @@ const Ea = /* @__PURE__ */ pe({
4477
4498
  const t = e, n = Le(), o = O(
4478
4499
  () => t.group.tagName || t.group.label || "-"
4479
4500
  ), r = O(() => t.children.length <= 1);
4480
- function i(l, g) {
4481
- const w = t.actions.getSection(l);
4501
+ function c(i, g) {
4502
+ const w = t.actions.getSection(i);
4482
4503
  return {
4483
- node: l,
4504
+ node: i,
4484
4505
  group: t.group,
4485
- sectionNode: l,
4506
+ sectionNode: i,
4486
4507
  section: w,
4487
4508
  sectionView: w,
4488
4509
  state: t.state,
@@ -4490,37 +4511,37 @@ const Ea = /* @__PURE__ */ pe({
4490
4511
  renderConfig: t.renderConfig,
4491
4512
  index: g,
4492
4513
  editing: !!(w && t.actions.isEditing(w)),
4493
- sectionStatus: t.actions.getSectionStatus(l),
4494
- isSelfSection: c(l, 0) === c(t.group, 0),
4495
- handleEdit: () => t.actions.startEdit(l),
4496
- handleCancel: () => t.actions.cancelEdit(l),
4497
- handleSave: () => t.actions.saveSection(l.key)
4514
+ sectionStatus: t.actions.getSectionStatus(i),
4515
+ isSelfSection: l(i, 0) === l(t.group, 0),
4516
+ handleEdit: () => t.actions.startEdit(i),
4517
+ handleCancel: () => t.actions.cancelEdit(i),
4518
+ handleSave: () => t.actions.saveSection(i.key)
4498
4519
  };
4499
4520
  }
4500
- function a(l) {
4501
- const g = t.actions.getSection(l);
4521
+ function a(i) {
4522
+ const g = t.actions.getSection(i);
4502
4523
  return Mt(
4503
4524
  n,
4504
4525
  "section",
4505
- Gn(l, g)
4526
+ Gn(i, g)
4506
4527
  );
4507
4528
  }
4508
- function c(l, g) {
4509
- return l.key || l.id || l.infSetId || l.tagId || `${g}`;
4529
+ function l(i, g) {
4530
+ return i.key || i.id || i.infSetId || i.tagId || `${g}`;
4510
4531
  }
4511
- function s(l) {
4512
- return `global-info-section-${c(l, 0)}`;
4532
+ function s(i) {
4533
+ return `global-info-section-${l(i, 0)}`;
4513
4534
  }
4514
- return (l, g) => (I(), G("section", Ya, [
4515
- te(l.$slots, "header", {
4516
- group: l.group,
4517
- children: l.children,
4518
- state: l.state,
4519
- actions: l.actions,
4520
- renderConfig: l.renderConfig,
4535
+ return (i, g) => (I(), G("section", Ya, [
4536
+ te(i.$slots, "header", {
4537
+ group: i.group,
4538
+ children: i.children,
4539
+ state: i.state,
4540
+ actions: i.actions,
4541
+ renderConfig: i.renderConfig,
4521
4542
  title: o.value,
4522
- index: l.index,
4523
- isEmpty: l.children.length === 0
4543
+ index: i.index,
4544
+ isEmpty: i.children.length === 0
4524
4545
  }, () => [
4525
4546
  ne("header", Ua, [
4526
4547
  g[0] || (g[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
@@ -4528,52 +4549,52 @@ const Ea = /* @__PURE__ */ pe({
4528
4549
  ])
4529
4550
  ], !0),
4530
4551
  ne("div", Ja, [
4531
- J(n).default ? te(l.$slots, "default", {
4552
+ J(n).default ? te(i.$slots, "default", {
4532
4553
  key: 0,
4533
- group: l.group,
4534
- children: l.children,
4535
- state: l.state,
4536
- actions: l.actions,
4537
- renderConfig: l.renderConfig,
4538
- index: l.index,
4539
- isEmpty: l.children.length === 0
4554
+ group: i.group,
4555
+ children: i.children,
4556
+ state: i.state,
4557
+ actions: i.actions,
4558
+ renderConfig: i.renderConfig,
4559
+ index: i.index,
4560
+ isEmpty: i.children.length === 0
4540
4561
  }, void 0, !0) : (I(), G(Se, { key: 1 }, [
4541
- (I(!0), G(Se, null, ye(l.children, (w, $) => (I(), G("div", {
4562
+ (I(!0), G(Se, null, ye(i.children, (w, $) => (I(), G("div", {
4542
4563
  id: s(w),
4543
- key: c(w, $),
4564
+ key: l(w, $),
4544
4565
  class: "global-info-group__section"
4545
4566
  }, [
4546
- a(w) ? te(l.$slots, a(w), ae({
4567
+ a(w) ? te(i.$slots, a(w), ae({
4547
4568
  key: 0,
4548
4569
  ref_for: !0
4549
- }, i(w, $)), void 0, !0) : J(n).section ? te(l.$slots, "section", ae({
4570
+ }, c(w, $)), void 0, !0) : J(n).section ? te(i.$slots, "section", ae({
4550
4571
  key: 1,
4551
4572
  ref_for: !0
4552
- }, i(w, $)), void 0, !0) : (I(), H(Ka, {
4573
+ }, c(w, $)), void 0, !0) : (I(), H(Ka, {
4553
4574
  key: 2,
4554
4575
  node: w,
4555
- state: l.state,
4556
- actions: l.actions,
4576
+ state: i.state,
4577
+ actions: i.actions,
4557
4578
  "hide-header": r.value,
4558
- "render-config": l.renderConfig
4579
+ "render-config": i.renderConfig
4559
4580
  }, Re({ _: 2 }, [
4560
- ye(J(n), (L, P) => ({
4561
- name: P,
4581
+ ye(J(n), (L, V) => ({
4582
+ name: V,
4562
4583
  fn: U((f) => [
4563
- te(l.$slots, P, ae({ ref_for: !0 }, f), void 0, !0)
4584
+ te(i.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
4564
4585
  ])
4565
4586
  }))
4566
4587
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
4567
4588
  ], 8, Wa))), 128)),
4568
- l.children.length === 0 ? te(l.$slots, "empty", {
4589
+ i.children.length === 0 ? te(i.$slots, "empty", {
4569
4590
  key: 0,
4570
4591
  node: null,
4571
- group: l.group,
4592
+ group: i.group,
4572
4593
  sectionNode: null,
4573
- state: l.state,
4574
- actions: l.actions,
4594
+ state: i.state,
4595
+ actions: i.actions,
4575
4596
  index: -1,
4576
- renderConfig: l.renderConfig
4597
+ renderConfig: i.renderConfig
4577
4598
  }, () => [
4578
4599
  ne("div", Za, oe(J(Z)("common.暂无数据")), 1)
4579
4600
  ], !0) : fe("", !0)
@@ -4581,7 +4602,7 @@ const Ea = /* @__PURE__ */ pe({
4581
4602
  ])
4582
4603
  ]));
4583
4604
  }
4584
- }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-ecdfaf65"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4605
+ }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e86a3d32"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4585
4606
  name: "GlobalInfoSections",
4586
4607
  __name: "GlobalInfoSections",
4587
4608
  props: {
@@ -4593,29 +4614,29 @@ const Ea = /* @__PURE__ */ pe({
4593
4614
  setup(e) {
4594
4615
  const t = e, n = Le(), o = O(() => {
4595
4616
  const g = t.nodes.filter(
4596
- (M) => r(M).length > 0
4597
- ), w = t.nodes.filter((M) => r(M).length === 0), $ = w.filter((M) => i(M)), L = w.filter((M) => !i(M)), P = g.map((M) => ({
4598
- group: M,
4599
- children: r(M)
4600
- })), f = $.map((M) => ({
4601
- group: M,
4602
- children: [M]
4617
+ (T) => r(T).length > 0
4618
+ ), w = t.nodes.filter((T) => r(T).length === 0), $ = w.filter((T) => c(T)), L = w.filter((T) => !c(T)), V = g.map((T) => ({
4619
+ group: T,
4620
+ children: r(T)
4621
+ })), f = $.map((T) => ({
4622
+ group: T,
4623
+ children: [T]
4603
4624
  }));
4604
- if (P.length === 0)
4605
- return $.length > 0 ? f : l(L);
4606
- const S = l(L);
4607
- return [...P, ...f, ...S];
4625
+ if (V.length === 0)
4626
+ return $.length > 0 ? f : i(L);
4627
+ const S = i(L);
4628
+ return [...V, ...f, ...S];
4608
4629
  });
4609
4630
  function r(g) {
4610
4631
  return g.children ?? [];
4611
4632
  }
4612
- function i(g) {
4633
+ function c(g) {
4613
4634
  return !String(g.parentId || g.parentTagId || "").trim();
4614
4635
  }
4615
4636
  function a(g) {
4616
4637
  return Mt(n, "group", qn(g));
4617
4638
  }
4618
- function c(g, w) {
4639
+ function l(g, w) {
4619
4640
  return g.key || g.id || g.tagId || `${w}`;
4620
4641
  }
4621
4642
  function s(g) {
@@ -4636,13 +4657,13 @@ const Ea = /* @__PURE__ */ pe({
4636
4657
  children: g
4637
4658
  };
4638
4659
  }
4639
- function l(g) {
4660
+ function i(g) {
4640
4661
  const w = /* @__PURE__ */ new Map();
4641
4662
  return g.forEach(($) => {
4642
4663
  const L = String(
4643
4664
  $.parentId || $.parentTagId || "global-info-flat"
4644
- ), P = w.get(L) ?? [];
4645
- P.push($), w.set(L, P);
4665
+ ), V = w.get(L) ?? [];
4666
+ V.push($), w.set(L, V);
4646
4667
  }), Array.from(w.values()).map(($) => ({
4647
4668
  group: s($),
4648
4669
  children: $
@@ -4650,7 +4671,7 @@ const Ea = /* @__PURE__ */ pe({
4650
4671
  }
4651
4672
  return (g, w) => (I(), G("div", es, [
4652
4673
  (I(!0), G(Se, null, ye(o.value, ($, L) => (I(), G(Se, {
4653
- key: c($.group, L)
4674
+ key: l($.group, L)
4654
4675
  }, [
4655
4676
  a($.group) ? te(g.$slots, a($.group), {
4656
4677
  key: 0,
@@ -4679,7 +4700,7 @@ const Ea = /* @__PURE__ */ pe({
4679
4700
  "render-config": g.renderConfig,
4680
4701
  index: L
4681
4702
  }, Re({ _: 2 }, [
4682
- ye(J(n), (P, f) => ({
4703
+ ye(J(n), (V, f) => ({
4683
4704
  name: f,
4684
4705
  fn: U((S) => [
4685
4706
  te(g.$slots, f, ae({ ref_for: !0 }, S), void 0, !0)
@@ -4689,7 +4710,7 @@ const Ea = /* @__PURE__ */ pe({
4689
4710
  ], 64))), 128))
4690
4711
  ]));
4691
4712
  }
4692
- }), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-86c94f9f"]]);
4713
+ }), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-d4ed3f80"]]);
4693
4714
  function ds(e, t = {}) {
4694
4715
  Un(e, t);
4695
4716
  }
@@ -4697,7 +4718,7 @@ export {
4697
4718
  Ln as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
4698
4719
  Ba as GlobalInfoAutoRenderer,
4699
4720
  ka as GlobalInfoDeleteConfirm,
4700
- Pn as GlobalInfoFieldControl,
4721
+ Vn as GlobalInfoFieldControl,
4701
4722
  jn as GlobalInfoFieldValue,
4702
4723
  Ca as GlobalInfoFormRenderer,
4703
4724
  Xa as GlobalInfoGroup,
@@ -4712,13 +4733,13 @@ export {
4712
4733
  yo as JtCascader,
4713
4734
  ss as JtCrudTable,
4714
4735
  So as JtDatePicker,
4715
- Po as JtFilterBar,
4736
+ Vo as JtFilterBar,
4716
4737
  ko as JtFormItems,
4717
4738
  ht as JtInput,
4718
4739
  ls as JtPageHeader,
4719
4740
  Ko as JtPagination,
4720
4741
  Io as JtSelect,
4721
- zo as JtTable,
4742
+ No as JtTable,
4722
4743
  kr as buildGlobalInfoUpdatePayload,
4723
4744
  Ir as createEmptyGlobalInfoViewModel,
4724
4745
  vs as getJtLocale,
@@ -4727,7 +4748,7 @@ export {
4727
4748
  is as isGlobalInfoNode,
4728
4749
  Sn as mergeGlobalInfoChildren,
4729
4750
  $r as normalizeGlobalInfoDetail,
4730
- zt as normalizeGlobalInfoTree,
4751
+ Nt as normalizeGlobalInfoTree,
4731
4752
  hs as normalizeLocale,
4732
4753
  gs as resetJtLocale,
4733
4754
  Cr as resolveGlobalInfoRenderType,