@jt-home/mfe-components 1.0.41 → 1.0.43

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,7 +1,7 @@
1
1
  import './style.css';
2
- import { t as Z, J as Dt, i as Un } from "./index-moF0d2Ee.js";
3
- import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-moF0d2Ee.js";
4
- import { defineComponent as pe, useAttrs as Hn, computed as O, openBlock as $, 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";
2
+ import { t as Z, J as Dt, i as Un } from "./index-DrZ9DS6y.js";
3
+ import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-DrZ9DS6y.js";
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";
7
7
  const bt = 2, fo = 3;
@@ -56,17 +56,17 @@ const vo = /* @__PURE__ */ pe({
56
56
  },
57
57
  setup(e) {
58
58
  const t = e, n = Hn(), o = O(() => {
59
- const { icon: c, ...r } = t;
59
+ const { icon: c, ...s } = t;
60
60
  return {
61
61
  ...sn(n),
62
- ...r
62
+ ...s
63
63
  };
64
- }), l = O(() => an(n));
65
- return (c, r) => {
66
- const a = Jt, s = $t;
67
- return $(), H(s, ae({ class: "jt-button" }, o.value, et(l.value)), {
64
+ }), r = O(() => an(n));
65
+ return (c, s) => {
66
+ const i = Jt, a = $t;
67
+ return I(), H(a, ae({ class: "jt-button" }, o.value, et(r.value)), {
68
68
  default: U(() => [
69
- c.$slots.icon ? ($(), H(a, {
69
+ c.$slots.icon ? (I(), H(i, {
70
70
  key: 0,
71
71
  class: "jt-button__icon"
72
72
  }, {
@@ -74,12 +74,12 @@ const vo = /* @__PURE__ */ pe({
74
74
  te(c.$slots, "icon", {}, void 0, !0)
75
75
  ]),
76
76
  _: 3
77
- })) : t.icon ? ($(), H(a, {
77
+ })) : t.icon ? (I(), H(i, {
78
78
  key: 1,
79
79
  class: "jt-button__icon"
80
80
  }, {
81
81
  default: U(() => [
82
- ($(), H(Kt(t.icon)))
82
+ (I(), H(Kt(t.icon)))
83
83
  ]),
84
84
  _: 1
85
85
  })) : fe("", !0),
@@ -91,10 +91,10 @@ const vo = /* @__PURE__ */ pe({
91
91
  }
92
92
  }), be = (e, t) => {
93
93
  const n = e.__vccOpts || e;
94
- for (const [o, l] of t)
95
- n[o] = l;
94
+ for (const [o, r] of t)
95
+ n[o] = r;
96
96
  return n;
97
- }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-28dbb12d"]]), ho = {
97
+ }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-500460fb"]]), ho = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
100
  clearable: !0,
@@ -158,54 +158,54 @@ const yo = /* @__PURE__ */ pe({
158
158
  const n = e, o = O(() => {
159
159
  const f = go(n);
160
160
  if (!f.disabled) return f;
161
- const { placeholder: _, ...M } = f;
162
- return M;
163
- }), l = ge(n.modelValue);
161
+ const { placeholder: S, ...T } = f;
162
+ return T;
163
+ }), r = ge(n.modelValue);
164
164
  Ee(
165
165
  () => n.modelValue,
166
166
  (f) => {
167
- l.value = f;
167
+ r.value = f;
168
168
  },
169
169
  { deep: !0 }
170
170
  );
171
171
  const c = t;
172
- function r(f, ..._) {
173
- c(f, ..._);
172
+ function s(f, ...S) {
173
+ c(f, ...S);
174
+ }
175
+ function i(f) {
176
+ r.value = f, s("update:modelValue", f);
174
177
  }
175
178
  function a(f) {
176
- l.value = f, r("update:modelValue", f);
179
+ s("change", f);
177
180
  }
178
- function s(f) {
179
- r("change", f);
181
+ function l(f) {
182
+ s("focus", f);
180
183
  }
181
- function i(f) {
182
- r("focus", f);
184
+ function h(f) {
185
+ s("blur", f);
183
186
  }
184
- function v(f) {
185
- r("blur", f);
186
- }
187
- function S() {
188
- r("clear");
187
+ function w() {
188
+ s("clear");
189
189
  }
190
- function I(f) {
191
- r("visibleChange", f);
190
+ function $(f) {
191
+ s("visibleChange", f);
192
192
  }
193
193
  function L(f) {
194
- r("expandChange", f);
194
+ s("expandChange", f);
195
195
  }
196
196
  function V(f) {
197
- r("removeTag", f);
197
+ s("removeTag", f);
198
198
  }
199
- return (f, _) => {
200
- const M = no;
201
- return $(), H(M, ae({ class: "jt-cascader" }, o.value, {
202
- "model-value": l.value,
203
- "onUpdate:modelValue": a,
204
- onChange: s,
205
- onFocus: i,
206
- onBlur: v,
207
- onClear: S,
208
- onVisibleChange: I,
199
+ return (f, S) => {
200
+ const T = no;
201
+ return I(), H(T, ae({ class: "jt-cascader" }, o.value, {
202
+ "model-value": r.value,
203
+ "onUpdate:modelValue": i,
204
+ onChange: a,
205
+ onFocus: l,
206
+ onBlur: h,
207
+ onClear: w,
208
+ onVisibleChange: $,
209
209
  onExpandChange: L,
210
210
  onRemoveTag: V
211
211
  }), null, 16, ["model-value"]);
@@ -266,46 +266,28 @@ const yo = /* @__PURE__ */ pe({
266
266
  },
267
267
  setup(e) {
268
268
  const t = e, n = O(() => {
269
- const { preservePlaceholderWhenDisabled: r, ...a } = t, s = l(
270
- "jt-date-picker-popper",
271
- a.popperClass
272
- ), i = {
273
- ...a,
274
- popperClass: s,
275
- // 默认日期 placeholder 依赖当前语言,放在 computed 中保证切换语言后重新计算。
276
- placeholder: t.placeholder ?? Z("common.请选择日期"),
269
+ const { preservePlaceholderWhenDisabled: r, ...c } = t;
270
+ if (t.disabled && !r) {
271
+ const { placeholder: s, startPlaceholder: i, endPlaceholder: a, ...l } = c;
272
+ return l;
273
+ }
274
+ return {
275
+ ...c,
277
276
  startPlaceholder: t.startPlaceholder ?? (o(t.type) ? Z("common.开始日期") : void 0),
278
277
  endPlaceholder: t.endPlaceholder ?? (o(t.type) ? Z("common.结束日期") : void 0)
279
278
  };
280
- if (t.disabled && !r) {
281
- const {
282
- placeholder: v,
283
- startPlaceholder: S,
284
- endPlaceholder: I,
285
- ...L
286
- } = i;
287
- return L;
288
- }
289
- return i;
290
279
  });
291
280
  function o(r) {
292
281
  return r?.includes("range") ?? !1;
293
282
  }
294
- function l(r, a) {
295
- const s = Array.isArray(a) ? a.flatMap((i) => c(i)) : c(a);
296
- return [r, ...s].filter(Boolean).join(" ");
297
- }
298
- function c(r) {
299
- return r ? typeof r == "string" ? [r] : Array.isArray(r) ? r.flatMap((a) => c(a)) : typeof r == "object" ? Object.entries(r).filter(([, a]) => !!a).map(([a]) => a) : [] : [];
300
- }
301
- return (r, a) => {
283
+ return (r, c) => {
302
284
  const s = Wt;
303
- return $(), H(s, ae({ class: "jt-date-picker" }, n.value, {
304
- "onUpdate:modelValue": a[0] || (a[0] = (i) => r.$emit("update:modelValue", i))
285
+ return I(), H(s, ae({ class: "jt-date-picker" }, n.value, {
286
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => r.$emit("update:modelValue", i))
305
287
  }), null, 16);
306
288
  };
307
289
  }
308
- }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-32c2dc63"]]), _o = /* @__PURE__ */ pe({
290
+ }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-014934ea"]]), _o = /* @__PURE__ */ pe({
309
291
  name: "JtInput",
310
292
  __name: "index",
311
293
  props: {
@@ -350,28 +332,28 @@ const yo = /* @__PURE__ */ pe({
350
332
  },
351
333
  setup(e, { emit: t }) {
352
334
  const n = e, o = O(() => {
353
- const { preservePlaceholderWhenDisabled: r, placeholder: a, ...s } = n, i = {
354
- ...s,
335
+ const { preservePlaceholderWhenDisabled: s, placeholder: i, ...a } = n, l = {
336
+ ...a,
355
337
  // 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
356
- placeholder: a ?? Z("common.请输入")
338
+ placeholder: i ?? Z("common.请输入")
357
339
  };
358
- return !n.disabled || r ? i : Object.fromEntries(
359
- Object.entries(i).filter(([v]) => v !== "placeholder")
340
+ return !n.disabled || s ? l : Object.fromEntries(
341
+ Object.entries(l).filter(([h]) => h !== "placeholder")
360
342
  );
361
- }), l = t, c = O(() => Object.fromEntries(
362
- Object.keys(Bt).map((r) => [
363
- r,
364
- (...a) => l(r, ...a)
343
+ }), r = t, c = O(() => Object.fromEntries(
344
+ Object.keys(Bt).map((s) => [
345
+ s,
346
+ (...i) => r(s, ...i)
365
347
  ])
366
348
  ));
367
- return (r, a) => {
368
- const s = Zt;
369
- return $(), H(s, ae({ class: "jt-input" }, o.value, et(c.value), {
370
- onKeyup: a[0] || (a[0] = Wn((i) => l("enter"), ["enter"]))
349
+ return (s, i) => {
350
+ const a = Zt;
351
+ return I(), H(a, ae({ class: "jt-input" }, o.value, et(c.value), {
352
+ onKeyup: i[0] || (i[0] = Wn((l) => r("enter"), ["enter"]))
371
353
  }), null, 16);
372
354
  };
373
355
  }
374
- }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-14966118"]]), wo = /* @__PURE__ */ pe({
356
+ }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-eec53052"]]), wo = /* @__PURE__ */ pe({
375
357
  name: "JtSelect",
376
358
  __name: "index",
377
359
  props: {
@@ -432,39 +414,32 @@ const yo = /* @__PURE__ */ pe({
432
414
  emits: Et,
433
415
  setup(e, { emit: t }) {
434
416
  const n = e, o = O(() => {
435
- const { options: a, placeholder: s, preservePlaceholderWhenDisabled: i, ...v } = n, S = l("jt-select-popper", v.popperClass), I = {
436
- ...v,
437
- popperClass: S
438
- };
439
- return n.disabled && !i ? I : {
440
- ...I,
417
+ const { options: s, placeholder: i, preservePlaceholderWhenDisabled: a, ...l } = n;
418
+ return n.disabled && !a ? l : {
419
+ ...l,
441
420
  // 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
442
- placeholder: s ?? Z("common.请选择")
421
+ placeholder: i ?? Z("common.请选择")
443
422
  };
444
- });
445
- function l(a, s) {
446
- return [a, s].flat().filter(Boolean).join(" ");
447
- }
448
- const c = t, r = O(() => Object.fromEntries(
449
- Object.keys(Et).map((a) => [
450
- a,
451
- (...s) => c(a, ...s)
423
+ }), r = t, c = O(() => Object.fromEntries(
424
+ Object.keys(Et).map((s) => [
425
+ s,
426
+ (...i) => r(s, ...i)
452
427
  ])
453
428
  ));
454
- return (a, s) => {
455
- const i = Xt, v = Qt;
456
- return $(), H(v, ae({ class: "jt-select" }, o.value, et(r.value)), {
429
+ return (s, i) => {
430
+ const a = Xt, l = Qt;
431
+ return I(), H(l, ae({ class: "jt-select" }, o.value, et(c.value)), {
457
432
  default: U(() => [
458
- ($(!0), G(Se, null, ye(a.options ?? [], (S) => ($(), H(i, ae({
459
- key: S.value,
433
+ (I(!0), G(Se, null, ye(s.options ?? [], (h) => (I(), H(a, ae({
434
+ key: h.value,
460
435
  ref_for: !0
461
- }, S), null, 16))), 128))
436
+ }, h), null, 16))), 128))
462
437
  ]),
463
438
  _: 1
464
439
  }, 16);
465
440
  };
466
441
  }
467
- }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-adab2b3a"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
442
+ }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-cb498ab1"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
468
443
  name: "JTFormItems",
469
444
  __name: "JtFormItems",
470
445
  props: {
@@ -484,89 +459,89 @@ const yo = /* @__PURE__ */ pe({
484
459
  daterange: "date-picker",
485
460
  "date-range": "date-picker",
486
461
  dateRange: "date-picker"
487
- }, l = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), r = /* @__PURE__ */ new Map(), a = O(() => t.configs.filter((g) => g.show !== !1)), s = (g) => {
488
- const { itemType: h } = g;
489
- if (!h) return ht;
490
- if (typeof h != "string") return h;
491
- const F = o[h] ?? h;
462
+ }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), s = /* @__PURE__ */ new Map(), i = O(() => t.configs.filter((g) => g.show !== !1)), a = (g) => {
463
+ const { itemType: v } = g;
464
+ if (!v) return ht;
465
+ if (typeof v != "string") return v;
466
+ const F = o[v] ?? v;
492
467
  return c.includes(F) ? n[F] : (console.error(
493
- `[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${c.join(", ")}`
468
+ `[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${c.join(", ")}`
494
469
  ), ht);
495
- }, i = (g) => {
496
- const h = sn(g, l);
470
+ }, l = (g) => {
471
+ const v = sn(g, r);
497
472
  return g.itemType === "select" || g.itemType === "remote-select" || g.itemType === "cascader" ? {
498
- ...h,
473
+ ...v,
499
474
  options: g.options
500
475
  } : z(g.itemType) ? {
501
- ...h,
476
+ ...v,
502
477
  type: "daterange"
503
- } : h;
504
- }, v = (g) => an(g, l), S = (g) => ({
478
+ } : v;
479
+ }, h = (g) => an(g, r), w = (g) => ({
505
480
  rules: g.rules,
506
481
  ...g.formItemProps
507
- }), I = (g, h) => {
508
- t.formData[g] = h;
482
+ }), $ = (g, v) => {
483
+ t.formData[g] = v;
509
484
  };
510
485
  function L(g) {
511
- return (h) => {
512
- if (h) {
513
- r.set(g, h);
486
+ return (v) => {
487
+ if (v) {
488
+ s.set(g, v);
514
489
  return;
515
490
  }
516
- r.delete(g);
491
+ s.delete(g);
517
492
  };
518
493
  }
519
- function V(g, h) {
494
+ function V(g, v) {
520
495
  Zn(() => {
521
- r.get(g)?.validate(h).catch(() => {
496
+ s.get(g)?.validate(v).catch(() => {
522
497
  });
523
498
  });
524
499
  }
525
- const f = (g) => Math.min(Math.max(Math.trunc(g || 1), 1), 4), _ = O(() => {
526
- const h = a.value.reduce(
500
+ const f = (g) => Math.min(Math.max(Math.trunc(g || 1), 1), 4), S = O(() => {
501
+ const v = i.value.reduce(
527
502
  (F, y) => F + f(t.span || y.span),
528
503
  0
529
504
  ) % gt;
530
- return h === 0 ? {
505
+ return v === 0 ? {
531
506
  gridColumn: `1 / span ${gt}`
532
507
  } : {
533
- gridColumn: `${h + 1} / span ${gt - h}`
508
+ gridColumn: `${v + 1} / span ${gt - v}`
534
509
  };
535
- }), M = (g) => ({
510
+ }), T = (g) => ({
536
511
  gridColumn: `span ${f(t.span || g.span)}`
537
512
  });
538
513
  function z(g) {
539
514
  return g === "daterange" || g === "date-range" || g === "dateRange";
540
515
  }
541
- return (g, h) => {
516
+ return (g, v) => {
542
517
  const F = en;
543
- return $(), G("div", $o, [
544
- ($(!0), G(Se, null, ye(a.value, (y) => ($(), H(F, ae({
518
+ return I(), G("div", $o, [
519
+ (I(!0), G(Se, null, ye(i.value, (y) => (I(), H(F, ae({
545
520
  key: y.prop,
546
521
  ref_for: !0,
547
522
  ref: L(y.prop),
548
523
  class: "jt-form-items__item",
549
- style: M(y),
524
+ style: T(y),
550
525
  label: y.label,
551
526
  prop: y.prop
552
- }, S(y)), {
527
+ }, w(y)), {
553
528
  default: U(() => [
554
- y.showSlot ? te(g.$slots, y.prop, { key: 0 }, void 0, !0) : ($(), H(Kt(s(y)), ae({
529
+ y.showSlot ? te(g.$slots, y.prop, { key: 0 }, void 0, !0) : (I(), H(Kt(a(y)), ae({
555
530
  key: 1,
556
531
  "model-value": g.formData[y.prop],
557
532
  ref_for: !0
558
- }, i(y), et(v(y)), {
559
- "onUpdate:modelValue": (A) => I(y.prop, A),
533
+ }, l(y), et(h(y)), {
534
+ "onUpdate:modelValue": (A) => $(y.prop, A),
560
535
  onChange: () => V(y.prop, "change"),
561
536
  onBlur: () => V(y.prop, "blur")
562
537
  }), null, 16, ["model-value", "onUpdate:modelValue", "onChange", "onBlur"]))
563
538
  ]),
564
539
  _: 2
565
540
  }, 1040, ["style", "label", "prop"]))), 128)),
566
- g.$slots.actions ? ($(), H(F, {
541
+ g.$slots.actions ? (I(), H(F, {
567
542
  key: 0,
568
543
  class: "jt-form-items__actions",
569
- style: Yt(_.value)
544
+ style: Yt(S.value)
570
545
  }, {
571
546
  default: U(() => [
572
547
  te(g.$slots, "actions", {}, void 0, !0)
@@ -576,8 +551,8 @@ const yo = /* @__PURE__ */ pe({
576
551
  ]);
577
552
  };
578
553
  }
579
- }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-08413520"]]);
580
- function Mo() {
554
+ }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-d4308345"]]);
555
+ function To() {
581
556
  const e = ge(!1);
582
557
  function t() {
583
558
  e.value = !0;
@@ -591,7 +566,7 @@ function Mo() {
591
566
  searchDone: n
592
567
  };
593
568
  }
594
- const To = "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({
569
+ 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({
595
570
  name: "JtFilterBar",
596
571
  __name: "JtFilterBar",
597
572
  props: {
@@ -601,79 +576,79 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
601
576
  },
602
577
  emits: ["update:modelValue", "search", "reset"],
603
578
  setup(e, { expose: t, emit: n }) {
604
- const o = e, l = n, c = ge(), r = Le(), a = ge({}), { searchDisabled: s, searchLoading: i, searchDone: v } = Mo(), S = O(() => o.option), I = ge(S.value.searchCollapsed ?? !0), L = O(
605
- () => o.columns.filter((T) => T.search === !0)
579
+ const o = e, r = n, c = ge(), s = Le(), i = ge({}), { searchDisabled: a, searchLoading: l, searchDone: h } = To(), w = O(() => o.option), $ = ge(w.value.searchCollapsed ?? !0), L = O(
580
+ () => o.columns.filter((M) => M.search === !0)
606
581
  ), V = O(
607
- () => Math.max(1, S.value.searchSpan ?? 4)
582
+ () => Math.max(1, w.value.searchSpan ?? 4)
608
583
  ), f = O(
609
- () => Math.max(1, S.value.searchCollapsedRows ?? 1)
610
- ), _ = O(() => V.value), M = O(
611
- () => Math.max(1, _.value * f.value)
584
+ () => Math.max(1, w.value.searchCollapsedRows ?? 1)
585
+ ), S = O(() => V.value), T = O(
586
+ () => Math.max(1, S.value * f.value)
612
587
  ), z = O(() => V.value), g = O(
613
588
  () => j.value ? "264px" : "174px"
614
- ), h = O(
615
- () => K(S.value.searchLabelWidth ?? 84)
589
+ ), v = O(
590
+ () => K(w.value.searchLabelWidth ?? 84)
616
591
  ), F = O(
617
- () => S.value.searchLabelPosition ?? "top"
592
+ () => w.value.searchLabelPosition ?? "top"
618
593
  ), y = O(
619
- () => q(S.value.searchGutter, 16)
594
+ () => q(w.value.searchGutter, 16)
620
595
  ), A = O(
621
- () => q(S.value.searchRowGap, 10)
596
+ () => q(w.value.searchRowGap, 10)
622
597
  ), b = O(
623
- () => Q(S.value.searchPadding ?? "18px 4px 0")
624
- ), j = O(() => S.value.searchCollapse === !1 ? !1 : x(L.value) > M.value), C = O(() => {
625
- if (!j.value || !I.value) return L.value;
626
- let T = 0;
598
+ () => Q(w.value.searchPadding ?? "18px 4px 0")
599
+ ), j = O(() => w.value.searchCollapse === !1 ? !1 : x(L.value) > T.value), C = O(() => {
600
+ if (!j.value || !$.value) return L.value;
601
+ let M = 0;
627
602
  return L.value.filter((X) => {
628
603
  const ue = P(X);
629
- return T + ue > M.value ? !1 : (T += ue, !0);
604
+ return M + ue > T.value ? !1 : (M += ue, !0);
630
605
  });
631
606
  }), N = O(
632
- () => C.value.filter((T) => !!r[`${T.prop}-search`])
607
+ () => C.value.filter((M) => !!s[`${M.prop}-search`])
633
608
  ), re = O(() => {
634
- const T = x(C.value);
635
- return C.value.length > 0 && C.value.length <= 2 && T < V.value;
609
+ const M = x(C.value);
610
+ return C.value.length > 0 && C.value.length <= 2 && M < V.value;
636
611
  }), le = O(() => {
637
- const T = x(C.value);
638
- return `${Math.min(V.value, T + 1)}`;
612
+ const M = x(C.value);
613
+ return `${Math.min(V.value, M + 1)}`;
639
614
  }), R = O(
640
- () => C.value.map((T) => E(T))
615
+ () => C.value.map((M) => E(M))
641
616
  );
642
617
  Ee(
643
- () => S.value.searchCollapsed,
644
- (T) => {
645
- typeof T == "boolean" && (I.value = T);
618
+ () => w.value.searchCollapsed,
619
+ (M) => {
620
+ typeof M == "boolean" && ($.value = M);
646
621
  }
647
622
  ), Ee(
648
623
  () => o.modelValue,
649
- (T) => {
650
- a.value = { ...T };
624
+ (M) => {
625
+ i.value = { ...M };
651
626
  },
652
627
  { deep: !0, immediate: !0 }
653
628
  );
654
- function B(T, X) {
655
- if (s.value) return;
656
- const ue = { ...a.value, [T]: X };
657
- a.value = ue, l("update:modelValue", ue);
629
+ function B(M, X) {
630
+ if (a.value) return;
631
+ const ue = { ...i.value, [M]: X };
632
+ i.value = ue, r("update:modelValue", ue);
658
633
  }
659
- function E(T) {
660
- const X = T.searchProps ?? {}, ue = T.searchType ?? "input";
634
+ function E(M) {
635
+ const X = M.searchProps ?? {}, ue = M.searchType ?? "input";
661
636
  return {
662
637
  ...X,
663
- prop: T.prop,
664
- label: T.searchLabel ?? T.label,
665
- span: P(T),
638
+ prop: M.prop,
639
+ label: M.searchLabel ?? M.label,
640
+ span: P(M),
666
641
  itemType: ue,
667
642
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
668
- showSlot: !!r[`${T.prop}-search`],
669
- options: X.options ?? T.searchOptions ?? T.dicData,
670
- placeholder: X.placeholder ?? T.searchPlaceholder,
671
- valueFormat: X.valueFormat ?? T.searchValueFormat,
672
- disabled: s.value || X.disabled === !0,
673
- preservePlaceholderWhenDisabled: s.value,
643
+ showSlot: !!s[`${M.prop}-search`],
644
+ options: X.options ?? M.searchOptions ?? M.dicData,
645
+ placeholder: X.placeholder ?? M.searchPlaceholder,
646
+ valueFormat: X.valueFormat ?? M.searchValueFormat,
647
+ disabled: a.value || X.disabled === !0,
648
+ preservePlaceholderWhenDisabled: a.value,
674
649
  formItemProps: {
675
- required: T.searchRequired,
676
- class: ["jt-filter-bar__item", { "is-required": T.searchRequired }]
650
+ required: M.searchRequired,
651
+ class: ["jt-filter-bar__item", { "is-required": M.searchRequired }]
677
652
  },
678
653
  // 保留原来输入框回车触发查询的行为,同时不吞掉使用方在 searchProps 中传入的 onEnter。
679
654
  onEnter: (...de) => {
@@ -681,61 +656,61 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
681
656
  },
682
657
  // JtFormItems 内部会修改 filterModel,这里继续按旧接口向外 emit update:modelValue。
683
658
  "onUpdate:modelValue": (de) => {
684
- d(X["onUpdate:modelValue"], de), B(T.prop, de);
659
+ d(X["onUpdate:modelValue"], de), B(M.prop, de);
685
660
  }
686
661
  };
687
662
  }
688
- function d(T, ...X) {
689
- if (Array.isArray(T)) {
690
- T.forEach((ue) => d(ue, ...X));
663
+ function d(M, ...X) {
664
+ if (Array.isArray(M)) {
665
+ M.forEach((ue) => d(ue, ...X));
691
666
  return;
692
667
  }
693
- typeof T == "function" && T(...X);
668
+ typeof M == "function" && M(...X);
694
669
  }
695
670
  async function u() {
696
- if (!s.value) {
671
+ if (!a.value) {
697
672
  if (c.value)
698
673
  try {
699
674
  await c.value.validate();
700
675
  } catch {
701
676
  return;
702
677
  }
703
- l("search");
678
+ r("search");
704
679
  }
705
680
  }
706
- function w() {
707
- s.value || l("reset");
681
+ function _() {
682
+ a.value || r("reset");
708
683
  }
709
684
  function D() {
710
- I.value = !I.value;
685
+ $.value = !$.value;
711
686
  }
712
- function P(T) {
713
- return Math.min(V.value, Math.max(1, T.searchSpan ?? 1));
687
+ function P(M) {
688
+ return Math.min(V.value, Math.max(1, M.searchSpan ?? 1));
714
689
  }
715
- function x(T) {
716
- return T.reduce((X, ue) => X + P(ue), 0);
690
+ function x(M) {
691
+ return M.reduce((X, ue) => X + P(ue), 0);
717
692
  }
718
- function K(T) {
719
- return typeof T == "number" ? `${T}px` : T;
693
+ function K(M) {
694
+ return typeof M == "number" ? `${M}px` : M;
720
695
  }
721
- function q(T, X) {
722
- return typeof T == "number" ? T : X;
696
+ function q(M, X) {
697
+ return typeof M == "number" ? M : X;
723
698
  }
724
- function Q(T) {
725
- return typeof T == "number" ? `${T}px` : T;
699
+ function Q(M) {
700
+ return typeof M == "number" ? `${M}px` : M;
726
701
  }
727
702
  return t({
728
703
  /** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
729
704
  formRef: c,
730
705
  /** 当前筛选表单禁用态。 */
731
- searchDisabled: s,
706
+ searchDisabled: a,
732
707
  /** 开启筛选表单禁用。 */
733
- searchLoading: i,
708
+ searchLoading: l,
734
709
  /** 关闭筛选表单禁用。 */
735
- searchDone: v
736
- }), (T, X) => {
710
+ searchDone: h
711
+ }), (M, X) => {
737
712
  const ue = tn;
738
- return $(), G("div", {
713
+ return I(), G("div", {
739
714
  class: We(["jt-filter-bar", [
740
715
  `is-label-${F.value}`,
741
716
  { "is-single-filter": re.value }
@@ -745,7 +720,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
745
720
  "--jt-filter-field-columns": z.value,
746
721
  "--jt-filter-btns-width": g.value,
747
722
  "--jt-filter-actions-start": le.value,
748
- "--jt-filter-label-width": h.value,
723
+ "--jt-filter-label-width": v.value,
749
724
  "--jt-filter-column-gap": `${y.value}px`,
750
725
  "--jt-filter-row-gap": `${A.value}px`,
751
726
  "--jt-filter-padding": b.value
@@ -755,29 +730,29 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
755
730
  ref_key: "formRef",
756
731
  ref: c,
757
732
  class: "jt-filter-bar__form",
758
- model: a.value,
733
+ model: i.value,
759
734
  "label-position": F.value,
760
- "label-width": h.value,
761
- disabled: J(s),
735
+ "label-width": v.value,
736
+ disabled: J(a),
762
737
  onSubmit: X[0] || (X[0] = Ut(() => {
763
738
  }, ["prevent"]))
764
739
  }, {
765
740
  default: U(() => [
766
741
  Ie(J(ko), {
767
742
  configs: R.value,
768
- "form-data": a.value,
743
+ "form-data": i.value,
769
744
  style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
770
745
  }, Re({
771
746
  actions: U(() => [
772
747
  ne("div", Fo, [
773
- te(T.$slots, "search-menu", {
748
+ te(M.$slots, "search-menu", {
774
749
  search: u,
775
- reset: w,
776
- disabled: J(s),
777
- collapsed: I.value,
750
+ reset: _,
751
+ disabled: J(a),
752
+ collapsed: $.value,
778
753
  toggleCollapse: D
779
754
  }, () => [
780
- j.value ? ($(), H(J(rt), {
755
+ j.value ? (I(), H(J(rt), {
781
756
  key: 0,
782
757
  class: "jt-filter-bar__btn-collapse",
783
758
  size: "small",
@@ -785,21 +760,21 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
785
760
  }, {
786
761
  icon: U(() => [
787
762
  ne("img", {
788
- class: We(["jt-filter-bar__icon-arrow", { "is-collapsed": I.value }]),
789
- src: J(To),
763
+ class: We(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
764
+ src: J(Mo),
790
765
  alt: ""
791
766
  }, null, 10, Bo)
792
767
  ]),
793
768
  default: U(() => [
794
- ne("span", null, oe(I.value ? J(Z)("common.展开") : J(Z)("common.收起")), 1)
769
+ ne("span", null, oe($.value ? J(Z)("common.展开") : J(Z)("common.收起")), 1)
795
770
  ]),
796
771
  _: 1
797
772
  })) : fe("", !0),
798
773
  Ie(J(rt), {
799
774
  class: "jt-filter-bar__btn-reset",
800
775
  size: "small",
801
- disabled: J(s),
802
- onClick: w
776
+ disabled: J(a),
777
+ onClick: _
803
778
  }, {
804
779
  icon: U(() => [
805
780
  ne("img", {
@@ -808,7 +783,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
808
783
  }, null, 8, Eo)
809
784
  ]),
810
785
  default: U(() => [
811
- ne("span", null, oe(S.value.resetBtnText ?? J(Z)("common.重置")), 1)
786
+ ne("span", null, oe(w.value.resetBtnText ?? J(Z)("common.重置")), 1)
812
787
  ]),
813
788
  _: 1
814
789
  }, 8, ["disabled"]),
@@ -816,7 +791,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
816
791
  class: "jt-filter-bar__btn-query",
817
792
  type: "primary",
818
793
  size: "small",
819
- disabled: J(s),
794
+ disabled: J(a),
820
795
  onClick: u
821
796
  }, {
822
797
  icon: U(() => [
@@ -826,7 +801,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
826
801
  }, null, 8, Lo)
827
802
  ]),
828
803
  default: U(() => [
829
- ne("span", null, oe(S.value.searchBtnText ?? J(Z)("common.查询")), 1)
804
+ ne("span", null, oe(w.value.searchBtnText ?? J(Z)("common.查询")), 1)
830
805
  ]),
831
806
  _: 1
832
807
  }, 8, ["disabled"])
@@ -838,13 +813,13 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
838
813
  ye(N.value, (de) => ({
839
814
  name: de.prop,
840
815
  fn: U(() => [
841
- te(T.$slots, `${de.prop}-search`, {
842
- value: a.value[de.prop],
816
+ te(M.$slots, `${de.prop}-search`, {
817
+ value: i.value[de.prop],
843
818
  column: de,
844
819
  setValue: (me) => B(de.prop, me),
845
820
  search: u,
846
- reset: w,
847
- disabled: J(s)
821
+ reset: _,
822
+ disabled: J(a)
848
823
  }, void 0, !0)
849
824
  ])
850
825
  }))
@@ -865,97 +840,97 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
865
840
  tableEvents: {}
866
841
  },
867
842
  setup(e, { expose: t }) {
868
- const n = e, o = Le(), l = ge(), c = O(() => n.option ?? {}), r = O(() => n.columns.filter((f) => !f.hide)), a = O(() => c.value.menuFixed ?? "right");
869
- function s(f) {
843
+ const n = e, o = Le(), r = ge(), c = O(() => n.option ?? {}), s = O(() => n.columns.filter((f) => !f.hide)), i = O(() => c.value.menuFixed ?? "right");
844
+ function a(f) {
870
845
  return !!o[`${f}-header`];
871
846
  }
872
- function i(f) {
847
+ function l(f) {
873
848
  return !!o[`${f}-data`];
874
849
  }
875
- function v(f) {
850
+ function h(f) {
876
851
  return {
877
852
  width: f.width,
878
853
  minWidth: f.minWidth,
879
854
  align: f.align || "center",
880
855
  fixed: f.fixed,
881
856
  sortable: f.sortable,
882
- showOverflowTooltip: f.showOverflowTooltip ?? S(f),
857
+ showOverflowTooltip: f.showOverflowTooltip ?? w(f),
883
858
  ...f.columnOptions
884
859
  };
885
860
  }
886
- function S(f) {
887
- return !i(f.prop) && !L(f.columnOptions?.type);
861
+ function w(f) {
862
+ return !l(f.prop) && !L(f.columnOptions?.type);
888
863
  }
889
- function I(f) {
864
+ function $(f) {
890
865
  return !L(f.columnOptions?.type);
891
866
  }
892
867
  function L(f) {
893
868
  return f === "selection" || f === "index" || f === "expand";
894
869
  }
895
- function V(f, _) {
896
- return f.find((M) => M.value === _)?.label ?? String(_ ?? "");
870
+ function V(f, S) {
871
+ return f.find((T) => T.value === S)?.label ?? String(S ?? "");
897
872
  }
898
- return t({ tableRef: l }), (f, _) => {
899
- const M = on, z = nn;
900
- return $(), H(z, ae({
873
+ return t({ tableRef: r }), (f, S) => {
874
+ const T = on, z = nn;
875
+ return I(), H(z, ae({
901
876
  ref_key: "tableRef",
902
- ref: l,
877
+ ref: r,
903
878
  data: f.data,
904
879
  "row-key": c.value.rowKey ?? "id",
905
880
  "empty-text": c.value.emptyText,
906
881
  class: "jt-table"
907
882
  }, c.value.tableProps, et(f.tableEvents)), {
908
883
  default: U(() => [
909
- c.value.selection ? ($(), H(M, {
884
+ c.value.selection ? (I(), H(T, {
910
885
  key: 0,
911
886
  type: "selection",
912
887
  width: "55",
913
888
  align: "center"
914
889
  })) : fe("", !0),
915
- c.value.index ? ($(), H(M, {
890
+ c.value.index ? (I(), H(T, {
916
891
  key: 1,
917
892
  type: "index",
918
893
  label: c.value.indexLabel ?? J(Z)("common.序号"),
919
894
  width: "60",
920
895
  align: "center"
921
896
  }, null, 8, ["label"])) : fe("", !0),
922
- ($(!0), G(Se, null, ye(r.value, (g) => ($(), H(M, ae({
897
+ (I(!0), G(Se, null, ye(s.value, (g) => (I(), H(T, ae({
923
898
  key: g.prop,
924
899
  prop: g.prop,
925
900
  label: g.label,
926
- formatter: !i(g.prop) && !g.dicData ? g.formatter : void 0,
901
+ formatter: !l(g.prop) && !g.dicData ? g.formatter : void 0,
927
902
  ref_for: !0
928
- }, v(g)), Re({ _: 2 }, [
929
- s(g.prop) ? {
903
+ }, h(g)), Re({ _: 2 }, [
904
+ a(g.prop) ? {
930
905
  name: "header",
931
- fn: U((h) => [
932
- te(f.$slots, `${g.prop}-header`, ae({ ref_for: !0 }, h), void 0, !0)
906
+ fn: U((v) => [
907
+ te(f.$slots, `${g.prop}-header`, ae({ ref_for: !0 }, v), void 0, !0)
933
908
  ]),
934
909
  key: "0"
935
910
  } : void 0,
936
- I(g) ? {
911
+ $(g) ? {
937
912
  name: "default",
938
- fn: U((h) => [
939
- i(g.prop) ? te(f.$slots, `${g.prop}-data`, ae({
913
+ fn: U((v) => [
914
+ l(g.prop) ? te(f.$slots, `${g.prop}-data`, ae({
940
915
  key: 0,
941
916
  ref_for: !0
942
- }, h), void 0, !0) : g.dicData ? ($(), G("span", jo, oe(V(g.dicData, h.row[g.prop])), 1)) : g.formatter ? ($(), G("span", Ao, oe(g.formatter(
943
- h.row,
944
- h.column,
945
- h.row[g.prop],
946
- h.$index
947
- )), 1)) : ($(), G("span", Ro, oe(h.row[g.prop]), 1))
917
+ }, v), void 0, !0) : g.dicData ? (I(), G("span", jo, oe(V(g.dicData, v.row[g.prop])), 1)) : g.formatter ? (I(), G("span", Ao, oe(g.formatter(
918
+ v.row,
919
+ v.column,
920
+ v.row[g.prop],
921
+ v.$index
922
+ )), 1)) : (I(), G("span", Ro, oe(v.row[g.prop]), 1))
948
923
  ]),
949
924
  key: "1"
950
925
  } : void 0
951
926
  ]), 1040, ["prop", "label", "formatter"]))), 128)),
952
- c.value.menu ? ($(), H(M, {
927
+ c.value.menu ? (I(), H(T, {
953
928
  key: 2,
954
929
  label: c.value.menuLabel ?? J(Z)("common.操作"),
955
930
  width: c.value.menuWidth,
956
931
  "min-width": c.value.menuMinWidth,
957
932
  align: c.value.menuAlign ?? "center",
958
- fixed: a.value
933
+ fixed: i.value
959
934
  }, {
960
935
  default: U((g) => [
961
936
  te(f.$slots, "menu", Oe(Be(g)), void 0, !0)
@@ -978,29 +953,29 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
978
953
  },
979
954
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
980
955
  setup(e, { emit: t }) {
981
- const n = e, o = O(() => n.option ?? {}), l = t;
982
- function c(r) {
983
- l("current-change", r), l("page-change", r);
956
+ const n = e, o = O(() => n.option ?? {}), r = t;
957
+ function c(s) {
958
+ r("current-change", s), r("page-change", s);
984
959
  }
985
- return (r, a) => {
986
- const s = oo;
987
- return $(), G("div", xo, [
988
- Ie(s, {
989
- "current-page": r.currentPage,
990
- "page-size": r.pageSize,
960
+ return (s, i) => {
961
+ const a = oo;
962
+ return I(), G("div", xo, [
963
+ Ie(a, {
964
+ "current-page": s.currentPage,
965
+ "page-size": s.pageSize,
991
966
  "page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
992
- total: r.total,
967
+ total: s.total,
993
968
  layout: o.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
994
- "onUpdate:currentPage": a[0] || (a[0] = (i) => r.$emit("update:currentPage", i)),
995
- "onUpdate:pageSize": a[1] || (a[1] = (i) => r.$emit("update:pageSize", i)),
969
+ "onUpdate:currentPage": i[0] || (i[0] = (l) => s.$emit("update:currentPage", l)),
970
+ "onUpdate:pageSize": i[1] || (i[1] = (l) => s.$emit("update:pageSize", l)),
996
971
  onCurrentChange: c,
997
- onSizeChange: a[2] || (a[2] = (i) => r.$emit("size-change", i))
972
+ onSizeChange: i[2] || (i[2] = (l) => s.$emit("size-change", l))
998
973
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
999
- ne("span", qo, oe(J(Z)("common.共")) + oe(r.total) + oe(J(Z)("common.条记录")), 1)
974
+ ne("span", qo, oe(J(Z)("common.共")) + oe(s.total) + oe(J(Z)("common.条记录")), 1)
1000
975
  ]);
1001
976
  };
1002
977
  }
1003
- }), 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 = {
978
+ }), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-5a8f7fb4"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
1004
979
  key: 0,
1005
980
  class: "jt-crud-table__toolbar"
1006
981
  }, Zo = /* @__PURE__ */ pe({
@@ -1024,55 +999,55 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1024
999
  }),
1025
1000
  emits: /* @__PURE__ */ Ft(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
1026
1001
  setup(e, { expose: t, emit: n }) {
1027
- const o = e, l = n, c = vt(e, "currentPage"), r = vt(e, "pageSize"), a = vt(e, "searchModel"), s = Le(), i = ge(), v = ge(), S = O(() => o.option), I = O(() => S.value.searchShow !== !1), L = O(
1028
- () => S.value.paginationShow !== !1
1002
+ const o = e, r = n, c = vt(e, "currentPage"), s = vt(e, "pageSize"), i = vt(e, "searchModel"), a = Le(), l = ge(), h = ge(), w = O(() => o.option), $ = O(() => w.value.searchShow !== !1), L = O(
1003
+ () => w.value.paginationShow !== !1
1029
1004
  ), V = O(
1030
- () => o.columns.filter((y) => y.search && !!s[`${y.prop}-search`])
1005
+ () => o.columns.filter((y) => y.search && !!a[`${y.prop}-search`])
1031
1006
  ), f = O(
1032
- () => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-header`])
1033
- ), _ = O(
1034
- () => o.columns.filter((y) => !y.hide && !!s[`${y.prop}-data`])
1007
+ () => o.columns.filter((y) => !y.hide && !!a[`${y.prop}-header`])
1008
+ ), S = O(
1009
+ () => o.columns.filter((y) => !y.hide && !!a[`${y.prop}-data`])
1035
1010
  );
1036
- function M() {
1011
+ function T() {
1037
1012
  const y = {};
1038
1013
  return o.columns.forEach((A) => {
1039
1014
  A.search && (y[A.prop] = void 0);
1040
1015
  }), y;
1041
1016
  }
1042
1017
  function z() {
1043
- l("search", { ...a.value });
1018
+ r("search", { ...i.value });
1044
1019
  }
1045
1020
  function g() {
1046
- a.value = M(), l("reset");
1021
+ i.value = T(), r("reset");
1047
1022
  }
1048
- function h() {
1049
- v.value?.searchLoading();
1023
+ function v() {
1024
+ h.value?.searchLoading();
1050
1025
  }
1051
1026
  function F() {
1052
- v.value?.searchDone();
1027
+ h.value?.searchDone();
1053
1028
  }
1054
1029
  return t({
1055
1030
  /** 获取内部 el-table 实例 */
1056
- tableRef: O(() => i.value?.tableRef),
1031
+ tableRef: O(() => l.value?.tableRef),
1057
1032
  /** 获取内部筛选条实例 */
1058
- filterBarRef: v,
1033
+ filterBarRef: h,
1059
1034
  /** 开启筛选表单禁用。 */
1060
- searchLoading: h,
1035
+ searchLoading: v,
1061
1036
  /** 关闭筛选表单禁用。 */
1062
1037
  searchDone: F
1063
1038
  }), (y, A) => {
1064
1039
  const b = ro;
1065
- return $(), G("div", Yo, [
1040
+ return I(), G("div", Yo, [
1066
1041
  te(y.$slots, "header", {}, void 0, !0),
1067
1042
  ne("div", Uo, [
1068
- I.value ? ($(), H(Vo, {
1043
+ $.value ? (I(), H(Vo, {
1069
1044
  key: 0,
1070
1045
  ref_key: "filterBarRef",
1071
- ref: v,
1072
- modelValue: a.value,
1073
- "onUpdate:modelValue": A[0] || (A[0] = (j) => a.value = j),
1046
+ ref: h,
1047
+ modelValue: i.value,
1048
+ "onUpdate:modelValue": A[0] || (A[0] = (j) => i.value = j),
1074
1049
  columns: y.columns,
1075
- option: S.value,
1050
+ option: w.value,
1076
1051
  onSearch: z,
1077
1052
  onReset: g
1078
1053
  }, Re({ _: 2 }, [
@@ -1086,15 +1061,15 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1086
1061
  ]),
1087
1062
  ne("div", Ho, [
1088
1063
  ne("div", Jo, [
1089
- J(s).toolbar ? ($(), G("div", Wo, [
1064
+ J(a).toolbar ? (I(), G("div", Wo, [
1090
1065
  te(y.$slots, "toolbar", {}, void 0, !0)
1091
1066
  ])) : fe("", !0),
1092
- Qn(($(), H(No, {
1067
+ Qn((I(), H(No, {
1093
1068
  ref_key: "jtTableRef",
1094
- ref: i,
1069
+ ref: l,
1095
1070
  data: y.data,
1096
1071
  columns: y.columns,
1097
- option: S.value,
1072
+ option: w.value,
1098
1073
  "table-events": y.tableEvents
1099
1074
  }, Re({ _: 2 }, [
1100
1075
  ye(f.value, (j) => ({
@@ -1103,13 +1078,13 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1103
1078
  te(y.$slots, `${j.prop}-header`, Oe(Be(C)), void 0, !0)
1104
1079
  ])
1105
1080
  })),
1106
- ye(_.value, (j) => ({
1081
+ ye(S.value, (j) => ({
1107
1082
  name: `${j.prop}-data`,
1108
1083
  fn: U((C) => [
1109
1084
  te(y.$slots, `${j.prop}-data`, Oe(Be(C)), void 0, !0)
1110
1085
  ])
1111
1086
  })),
1112
- S.value.menu ? {
1087
+ w.value.menu ? {
1113
1088
  name: "menu",
1114
1089
  fn: U((j) => [
1115
1090
  te(y.$slots, "menu", Oe(Be(j)), void 0, !0)
@@ -1117,17 +1092,17 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1117
1092
  key: "0"
1118
1093
  } : void 0
1119
1094
  ]), 1032, ["data", "columns", "option", "table-events"])), [
1120
- [b, S.value.loading]
1095
+ [b, w.value.loading]
1121
1096
  ])
1122
1097
  ]),
1123
- L.value ? ($(), H(Ko, {
1098
+ L.value ? (I(), H(Ko, {
1124
1099
  key: 0,
1125
1100
  "current-page": c.value,
1126
1101
  "onUpdate:currentPage": A[1] || (A[1] = (j) => c.value = j),
1127
- "page-size": r.value,
1128
- "onUpdate:pageSize": A[2] || (A[2] = (j) => r.value = j),
1102
+ "page-size": s.value,
1103
+ "onUpdate:pageSize": A[2] || (A[2] = (j) => s.value = j),
1129
1104
  total: y.total,
1130
- option: S.value,
1105
+ option: w.value,
1131
1106
  onPageChange: A[3] || (A[3] = (j) => y.$emit("page-change", j)),
1132
1107
  onSizeChange: A[4] || (A[4] = (j) => y.$emit("size-change", j))
1133
1108
  }, null, 8, ["current-page", "page-size", "total", "option"])) : fe("", !0)
@@ -1148,35 +1123,35 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1148
1123
  },
1149
1124
  emits: ["operate-click"],
1150
1125
  setup(e, { emit: t }) {
1151
- const n = e, o = t, l = Le(), c = O(() => n.operates.length > 0 || !!l.operates);
1152
- function r(a, s) {
1153
- a.onClick?.(a, s), o("operate-click", a, s);
1126
+ const n = e, o = t, r = Le(), c = O(() => n.operates.length > 0 || !!r.operates);
1127
+ function s(i, a) {
1128
+ i.onClick?.(i, a), o("operate-click", i, a);
1154
1129
  }
1155
- return (a, s) => ($(), G("div", ae({
1156
- class: ["jt-page-header", `jt-page-header--${a.type}`]
1157
- }, a.$attrs), [
1130
+ return (i, a) => (I(), G("div", ae({
1131
+ class: ["jt-page-header", `jt-page-header--${i.type}`]
1132
+ }, i.$attrs), [
1158
1133
  ne("div", Qo, [
1159
- te(a.$slots, "title", {}, () => [
1160
- a.title ? ($(), G("span", Xo, oe(a.title), 1)) : fe("", !0)
1134
+ te(i.$slots, "title", {}, () => [
1135
+ i.title ? (I(), G("span", Xo, oe(i.title), 1)) : fe("", !0)
1161
1136
  ], !0)
1162
1137
  ]),
1163
- c.value ? ($(), G("div", er, [
1164
- te(a.$slots, "operates", { operates: a.operates }, () => [
1165
- ($(!0), G(Se, null, ye(a.operates, (i) => ($(), H(J(rt), ae({
1166
- key: i.key ?? i.label,
1138
+ c.value ? (I(), G("div", er, [
1139
+ te(i.$slots, "operates", { operates: i.operates }, () => [
1140
+ (I(!0), G(Se, null, ye(i.operates, (l) => (I(), H(J(rt), ae({
1141
+ key: l.key ?? l.label,
1167
1142
  ref_for: !0
1168
- }, i.buttonProps, {
1169
- type: i.type,
1170
- disabled: i.disabled,
1171
- loading: i.loading,
1172
- plain: i.plain,
1173
- text: i.text,
1174
- link: i.link,
1175
- icon: i.icon,
1176
- onClick: (v) => r(i, v)
1143
+ }, l.buttonProps, {
1144
+ type: l.type,
1145
+ disabled: l.disabled,
1146
+ loading: l.loading,
1147
+ plain: l.plain,
1148
+ text: l.text,
1149
+ link: l.link,
1150
+ icon: l.icon,
1151
+ onClick: (h) => s(l, h)
1177
1152
  }), {
1178
1153
  default: U(() => [
1179
- ne("span", null, oe(i.label), 1)
1154
+ ne("span", null, oe(l.label), 1)
1180
1155
  ]),
1181
1156
  _: 2
1182
1157
  }, 1040, ["type", "disabled", "loading", "plain", "text", "link", "icon", "onClick"]))), 128))
@@ -1188,17 +1163,17 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1188
1163
  function nr(e, t) {
1189
1164
  t = t || (() => "default-use-once-sync");
1190
1165
  const n = /* @__PURE__ */ new Map();
1191
- async function o(...l) {
1192
- const c = t(...l);
1166
+ async function o(...r) {
1167
+ const c = t(...r);
1193
1168
  if (n.get(c))
1194
1169
  return n.get(c);
1195
1170
  try {
1196
- const r = e(...l).then((a) => a).catch((a) => {
1197
- throw a;
1171
+ const s = e(...r).then((i) => i).catch((i) => {
1172
+ throw i;
1198
1173
  });
1199
- return n.set(c, r), r;
1200
- } catch (r) {
1201
- throw n.set(c, null), r;
1174
+ return n.set(c, s), s;
1175
+ } catch (s) {
1176
+ throw n.set(c, null), s;
1202
1177
  }
1203
1178
  }
1204
1179
  return o.bind(e);
@@ -1206,13 +1181,13 @@ function nr(e, t) {
1206
1181
  function ln(e, t) {
1207
1182
  t = t || (() => "default-use-queue-sync");
1208
1183
  const n = /* @__PURE__ */ new Map();
1209
- async function o(...l) {
1210
- const c = t(...l), r = Symbol("single");
1211
- return n.set(c, r), new Promise((a, s) => {
1212
- e(...l).then((i) => {
1213
- n.get(c) === r && a(i);
1214
- }).catch((i) => {
1215
- n.get(c) === r && s(i);
1184
+ async function o(...r) {
1185
+ const c = t(...r), s = Symbol("single");
1186
+ return n.set(c, s), new Promise((i, a) => {
1187
+ e(...r).then((l) => {
1188
+ n.get(c) === s && i(l);
1189
+ }).catch((l) => {
1190
+ n.get(c) === s && a(l);
1216
1191
  });
1217
1192
  });
1218
1193
  }
@@ -1227,23 +1202,23 @@ var cn = { exports: {} };
1227
1202
  (function(n, o) {
1228
1203
  e.exports = o();
1229
1204
  })(it, function() {
1230
- var n = 1e3, o = 6e4, l = 36e5, c = "millisecond", r = "second", a = "minute", s = "hour", i = "day", v = "week", S = "month", I = "quarter", L = "year", V = "date", f = "Invalid Date", _ = /^(\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, 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) {
1205
+ var n = 1e3, o = 6e4, r = 36e5, c = "millisecond", s = "second", i = "minute", a = "hour", l = "day", h = "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) {
1231
1206
  var B = ["th", "st", "nd", "rd"], E = R % 100;
1232
1207
  return "[" + R + (B[(E - 20) % 10] || B[E] || B[0]) + "]";
1233
1208
  } }, g = function(R, B, E) {
1234
1209
  var d = String(R);
1235
1210
  return !d || d.length >= B ? R : "" + Array(B + 1 - d.length).join(E) + R;
1236
- }, h = { s: g, z: function(R) {
1211
+ }, v = { s: g, z: function(R) {
1237
1212
  var B = -R.utcOffset(), E = Math.abs(B), d = Math.floor(E / 60), u = E % 60;
1238
1213
  return (B <= 0 ? "+" : "-") + g(d, 2, "0") + ":" + g(u, 2, "0");
1239
1214
  }, m: function R(B, E) {
1240
1215
  if (B.date() < E.date()) return -R(E, B);
1241
- var d = 12 * (E.year() - B.year()) + (E.month() - B.month()), u = B.clone().add(d, S), w = E - u < 0, D = B.clone().add(d + (w ? -1 : 1), S);
1242
- return +(-(d + (E - u) / (w ? u - D : D - u)) || 0);
1216
+ var d = 12 * (E.year() - B.year()) + (E.month() - B.month()), u = B.clone().add(d, w), _ = E - u < 0, D = B.clone().add(d + (_ ? -1 : 1), w);
1217
+ return +(-(d + (E - u) / (_ ? u - D : D - u)) || 0);
1243
1218
  }, a: function(R) {
1244
1219
  return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
1245
1220
  }, p: function(R) {
1246
- return { M: S, y: L, w: v, d: i, D: V, h: s, m: a, s: r, ms: c, Q: I }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1221
+ return { M: w, y: L, w: h, d: l, D: V, h: a, m: i, s, ms: c, Q: $ }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1247
1222
  }, u: function(R) {
1248
1223
  return R === void 0;
1249
1224
  } }, F = "en", y = {};
@@ -1254,8 +1229,8 @@ var cn = { exports: {} };
1254
1229
  var u;
1255
1230
  if (!B) return F;
1256
1231
  if (typeof B == "string") {
1257
- var w = B.toLowerCase();
1258
- y[w] && (u = w), E && (y[w] = E, u = w);
1232
+ var _ = B.toLowerCase();
1233
+ y[_] && (u = _), E && (y[_] = E, u = _);
1259
1234
  var D = B.split("-");
1260
1235
  if (!u && D.length > 1) return R(D[0]);
1261
1236
  } else {
@@ -1267,7 +1242,7 @@ var cn = { exports: {} };
1267
1242
  if (b(R)) return R.clone();
1268
1243
  var E = typeof B == "object" ? B : {};
1269
1244
  return E.date = R, E.args = arguments, new re(E);
1270
- }, N = h;
1245
+ }, N = v;
1271
1246
  N.l = j, N.i = b, N.w = function(R, B) {
1272
1247
  return C(R, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
1273
1248
  };
@@ -1278,15 +1253,15 @@ var cn = { exports: {} };
1278
1253
  var B = R.prototype;
1279
1254
  return B.parse = function(E) {
1280
1255
  this.$d = function(d) {
1281
- var u = d.date, w = d.utc;
1256
+ var u = d.date, _ = d.utc;
1282
1257
  if (u === null) return /* @__PURE__ */ new Date(NaN);
1283
1258
  if (N.u(u)) return /* @__PURE__ */ new Date();
1284
1259
  if (u instanceof Date) return new Date(u);
1285
1260
  if (typeof u == "string" && !/Z$/i.test(u)) {
1286
- var D = u.match(_);
1261
+ var D = u.match(S);
1287
1262
  if (D) {
1288
1263
  var P = D[2] - 1 || 0, x = (D[7] || "0").substring(0, 3);
1289
- return w ? 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);
1264
+ 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);
1290
1265
  }
1291
1266
  }
1292
1267
  return new Date(u);
@@ -1312,37 +1287,37 @@ var cn = { exports: {} };
1312
1287
  }, B.valueOf = function() {
1313
1288
  return this.$d.getTime();
1314
1289
  }, B.startOf = function(E, d) {
1315
- var u = this, w = !!N.u(d) || d, D = N.p(E), P = function(de, me) {
1290
+ var u = this, _ = !!N.u(d) || d, D = N.p(E), P = function(de, me) {
1316
1291
  var we = N.w(u.$u ? Date.UTC(u.$y, me, de) : new Date(u.$y, me, de), u);
1317
- return w ? we : we.endOf(i);
1292
+ return _ ? we : we.endOf(l);
1318
1293
  }, x = function(de, me) {
1319
- return N.w(u.toDate()[de].apply(u.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1320
- }, K = this.$W, q = this.$M, Q = this.$D, T = "set" + (this.$u ? "UTC" : "");
1294
+ return N.w(u.toDate()[de].apply(u.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), u);
1295
+ }, K = this.$W, q = this.$M, Q = this.$D, M = "set" + (this.$u ? "UTC" : "");
1321
1296
  switch (D) {
1322
1297
  case L:
1323
- return w ? P(1, 0) : P(31, 11);
1324
- case S:
1325
- return w ? P(1, q) : P(0, q + 1);
1326
- case v:
1298
+ return _ ? P(1, 0) : P(31, 11);
1299
+ case w:
1300
+ return _ ? P(1, q) : P(0, q + 1);
1301
+ case h:
1327
1302
  var X = this.$locale().weekStart || 0, ue = (K < X ? K + 7 : K) - X;
1328
- return P(w ? Q - ue : Q + (6 - ue), q);
1329
- case i:
1303
+ return P(_ ? Q - ue : Q + (6 - ue), q);
1304
+ case l:
1330
1305
  case V:
1331
- return x(T + "Hours", 0);
1332
- case s:
1333
- return x(T + "Minutes", 1);
1306
+ return x(M + "Hours", 0);
1334
1307
  case a:
1335
- return x(T + "Seconds", 2);
1336
- case r:
1337
- return x(T + "Milliseconds", 3);
1308
+ return x(M + "Minutes", 1);
1309
+ case i:
1310
+ return x(M + "Seconds", 2);
1311
+ case s:
1312
+ return x(M + "Milliseconds", 3);
1338
1313
  default:
1339
1314
  return this.clone();
1340
1315
  }
1341
1316
  }, B.endOf = function(E) {
1342
1317
  return this.startOf(E, !1);
1343
1318
  }, B.$set = function(E, d) {
1344
- var u, w = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[i] = D + "Date", u[V] = D + "Date", u[S] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[a] = D + "Minutes", u[r] = D + "Seconds", u[c] = D + "Milliseconds", u)[w], x = w === i ? this.$D + (d - this.$W) : d;
1345
- if (w === S || w === L) {
1319
+ var u, _ = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[l] = D + "Date", u[V] = D + "Date", u[w] = D + "Month", u[L] = D + "FullYear", u[a] = D + "Hours", u[i] = D + "Minutes", u[s] = D + "Seconds", u[c] = D + "Milliseconds", u)[_], x = _ === l ? this.$D + (d - this.$W) : d;
1320
+ if (_ === w || _ === L) {
1346
1321
  var K = this.clone().set(V, 1);
1347
1322
  K.$d[P](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
1348
1323
  } else P && this.$d[P](x);
@@ -1352,32 +1327,32 @@ var cn = { exports: {} };
1352
1327
  }, B.get = function(E) {
1353
1328
  return this[N.p(E)]();
1354
1329
  }, B.add = function(E, d) {
1355
- var u, w = this;
1330
+ var u, _ = this;
1356
1331
  E = Number(E);
1357
1332
  var D = N.p(d), P = function(q) {
1358
- var Q = C(w);
1359
- return N.w(Q.date(Q.date() + Math.round(q * E)), w);
1333
+ var Q = C(_);
1334
+ return N.w(Q.date(Q.date() + Math.round(q * E)), _);
1360
1335
  };
1361
- if (D === S) return this.set(S, this.$M + E);
1336
+ if (D === w) return this.set(w, this.$M + E);
1362
1337
  if (D === L) return this.set(L, this.$y + E);
1363
- if (D === i) return P(1);
1364
- if (D === v) return P(7);
1365
- var x = (u = {}, u[a] = o, u[s] = l, u[r] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1338
+ if (D === l) return P(1);
1339
+ if (D === h) return P(7);
1340
+ var x = (u = {}, u[i] = o, u[a] = r, u[s] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1366
1341
  return N.w(K, this);
1367
1342
  }, B.subtract = function(E, d) {
1368
1343
  return this.add(-1 * E, d);
1369
1344
  }, B.format = function(E) {
1370
1345
  var d = this, u = this.$locale();
1371
1346
  if (!this.isValid()) return u.invalidDate || f;
1372
- var w = 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, T = u.meridiem, X = function(me, we, De, $e) {
1373
- return me && (me[we] || me(d, w)) || De[we].slice(0, $e);
1347
+ 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) {
1348
+ return me && (me[we] || me(d, _)) || De[we].slice(0, $e);
1374
1349
  }, ue = function(me) {
1375
1350
  return N.s(P % 12 || 12, me, "0");
1376
- }, de = T || function(me, we, De) {
1351
+ }, de = M || function(me, we, De) {
1377
1352
  var $e = me < 12 ? "AM" : "PM";
1378
1353
  return De ? $e.toLowerCase() : $e;
1379
1354
  };
1380
- return w.replace(M, function(me, we) {
1355
+ return _.replace(T, function(me, we) {
1381
1356
  return we || function(De) {
1382
1357
  switch (De) {
1383
1358
  case "YY":
@@ -1435,46 +1410,46 @@ var cn = { exports: {} };
1435
1410
  }, B.utcOffset = function() {
1436
1411
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1437
1412
  }, B.diff = function(E, d, u) {
1438
- var w, D = this, P = N.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
1413
+ var _, D = this, P = N.p(d), x = C(E), K = (x.utcOffset() - this.utcOffset()) * o, q = this - x, Q = function() {
1439
1414
  return N.m(D, x);
1440
1415
  };
1441
1416
  switch (P) {
1442
1417
  case L:
1443
- w = Q() / 12;
1444
- break;
1445
- case S:
1446
- w = Q();
1418
+ _ = Q() / 12;
1447
1419
  break;
1448
- case I:
1449
- w = Q() / 3;
1420
+ case w:
1421
+ _ = Q();
1450
1422
  break;
1451
- case v:
1452
- w = (q - K) / 6048e5;
1423
+ case $:
1424
+ _ = Q() / 3;
1453
1425
  break;
1454
- case i:
1455
- w = (q - K) / 864e5;
1426
+ case h:
1427
+ _ = (q - K) / 6048e5;
1456
1428
  break;
1457
- case s:
1458
- w = q / l;
1429
+ case l:
1430
+ _ = (q - K) / 864e5;
1459
1431
  break;
1460
1432
  case a:
1461
- w = q / o;
1433
+ _ = q / r;
1462
1434
  break;
1463
- case r:
1464
- w = q / n;
1435
+ case i:
1436
+ _ = q / o;
1437
+ break;
1438
+ case s:
1439
+ _ = q / n;
1465
1440
  break;
1466
1441
  default:
1467
- w = q;
1442
+ _ = q;
1468
1443
  }
1469
- return u ? w : N.a(w);
1444
+ return u ? _ : N.a(_);
1470
1445
  }, B.daysInMonth = function() {
1471
- return this.endOf(S).$D;
1446
+ return this.endOf(w).$D;
1472
1447
  }, B.$locale = function() {
1473
1448
  return y[this.$L];
1474
1449
  }, B.locale = function(E, d) {
1475
1450
  if (!E) return this.$L;
1476
- var u = this.clone(), w = j(E, d, !0);
1477
- return w && (u.$L = w), u;
1451
+ var u = this.clone(), _ = j(E, d, !0);
1452
+ return _ && (u.$L = _), u;
1478
1453
  }, B.clone = function() {
1479
1454
  return N.w(this.$d, this);
1480
1455
  }, B.toDate = function() {
@@ -1487,7 +1462,7 @@ var cn = { exports: {} };
1487
1462
  return this.$d.toUTCString();
1488
1463
  }, R;
1489
1464
  }(), le = re.prototype;
1490
- return C.prototype = le, [["$ms", c], ["$s", r], ["$m", a], ["$H", s], ["$W", i], ["$M", S], ["$y", L], ["$D", V]].forEach(function(R) {
1465
+ return C.prototype = le, [["$ms", c], ["$s", s], ["$m", i], ["$H", a], ["$W", l], ["$M", w], ["$y", L], ["$D", V]].forEach(function(R) {
1491
1466
  le[R[1]] = function(B) {
1492
1467
  return this.$g(B, R[0], R[1]);
1493
1468
  };
@@ -1505,72 +1480,72 @@ var un = { exports: {} };
1505
1480
  (function(n, o) {
1506
1481
  e.exports = o();
1507
1482
  })(it, function() {
1508
- 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, l = /\d/, c = /\d\d/, r = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(_) {
1509
- return (_ = +_) + (_ > 68 ? 1900 : 2e3);
1510
- }, v = function(_) {
1511
- return function(M) {
1512
- this[_] = +M;
1483
+ 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/, s = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, a = {}, l = function(S) {
1484
+ return (S = +S) + (S > 68 ? 1900 : 2e3);
1485
+ }, h = function(S) {
1486
+ return function(T) {
1487
+ this[S] = +T;
1513
1488
  };
1514
- }, S = [/[+-]\d\d:?(\d\d)?|Z/, function(_) {
1515
- (this.zone || (this.zone = {})).offset = function(M) {
1516
- if (!M || M === "Z") return 0;
1517
- var z = M.match(/([+-]|\d\d)/g), g = 60 * z[1] + (+z[2] || 0);
1489
+ }, w = [/[+-]\d\d:?(\d\d)?|Z/, function(S) {
1490
+ (this.zone || (this.zone = {})).offset = function(T) {
1491
+ if (!T || T === "Z") return 0;
1492
+ var z = T.match(/([+-]|\d\d)/g), g = 60 * z[1] + (+z[2] || 0);
1518
1493
  return g === 0 ? 0 : z[0] === "+" ? -g : g;
1519
- }(_);
1520
- }], I = function(_) {
1521
- var M = s[_];
1522
- return M && (M.indexOf ? M : M.s.concat(M.f));
1523
- }, L = function(_, M) {
1524
- var z, g = s.meridiem;
1494
+ }(S);
1495
+ }], $ = function(S) {
1496
+ var T = a[S];
1497
+ return T && (T.indexOf ? T : T.s.concat(T.f));
1498
+ }, L = function(S, T) {
1499
+ var z, g = a.meridiem;
1525
1500
  if (g) {
1526
- for (var h = 1; h <= 24; h += 1) if (_.indexOf(g(h, 0, M)) > -1) {
1527
- z = h > 12;
1501
+ for (var v = 1; v <= 24; v += 1) if (S.indexOf(g(v, 0, T)) > -1) {
1502
+ z = v > 12;
1528
1503
  break;
1529
1504
  }
1530
- } else z = _ === (M ? "pm" : "PM");
1505
+ } else z = S === (T ? "pm" : "PM");
1531
1506
  return z;
1532
- }, V = { A: [a, function(_) {
1533
- this.afternoon = L(_, !1);
1534
- }], a: [a, function(_) {
1535
- this.afternoon = L(_, !0);
1536
- }], Q: [l, function(_) {
1537
- this.month = 3 * (_ - 1) + 1;
1538
- }], S: [l, function(_) {
1539
- this.milliseconds = 100 * +_;
1540
- }], SS: [c, function(_) {
1541
- this.milliseconds = 10 * +_;
1542
- }], SSS: [/\d{3}/, function(_) {
1543
- this.milliseconds = +_;
1544
- }], s: [r, v("seconds")], ss: [r, v("seconds")], m: [r, v("minutes")], mm: [r, v("minutes")], H: [r, v("hours")], h: [r, v("hours")], HH: [r, v("hours")], hh: [r, v("hours")], D: [r, v("day")], DD: [c, v("day")], Do: [a, function(_) {
1545
- var M = s.ordinal, z = _.match(/\d+/);
1546
- if (this.day = z[0], M) for (var g = 1; g <= 31; g += 1) M(g).replace(/\[|\]/g, "") === _ && (this.day = g);
1547
- }], w: [r, v("week")], ww: [c, v("week")], M: [r, v("month")], MM: [c, v("month")], MMM: [a, function(_) {
1548
- var M = I("months"), z = (I("monthsShort") || M.map(function(g) {
1507
+ }, V = { A: [i, function(S) {
1508
+ this.afternoon = L(S, !1);
1509
+ }], a: [i, function(S) {
1510
+ this.afternoon = L(S, !0);
1511
+ }], Q: [r, function(S) {
1512
+ this.month = 3 * (S - 1) + 1;
1513
+ }], S: [r, function(S) {
1514
+ this.milliseconds = 100 * +S;
1515
+ }], SS: [c, function(S) {
1516
+ this.milliseconds = 10 * +S;
1517
+ }], SSS: [/\d{3}/, function(S) {
1518
+ this.milliseconds = +S;
1519
+ }], s: [s, h("seconds")], ss: [s, h("seconds")], m: [s, h("minutes")], mm: [s, h("minutes")], H: [s, h("hours")], h: [s, h("hours")], HH: [s, h("hours")], hh: [s, h("hours")], D: [s, h("day")], DD: [c, h("day")], Do: [i, function(S) {
1520
+ var T = a.ordinal, z = S.match(/\d+/);
1521
+ if (this.day = z[0], T) for (var g = 1; g <= 31; g += 1) T(g).replace(/\[|\]/g, "") === S && (this.day = g);
1522
+ }], w: [s, h("week")], ww: [c, h("week")], M: [s, h("month")], MM: [c, h("month")], MMM: [i, function(S) {
1523
+ var T = $("months"), z = ($("monthsShort") || T.map(function(g) {
1549
1524
  return g.slice(0, 3);
1550
- })).indexOf(_) + 1;
1525
+ })).indexOf(S) + 1;
1551
1526
  if (z < 1) throw new Error();
1552
1527
  this.month = z % 12 || z;
1553
- }], MMMM: [a, function(_) {
1554
- var M = I("months").indexOf(_) + 1;
1555
- if (M < 1) throw new Error();
1556
- this.month = M % 12 || M;
1557
- }], Y: [/[+-]?\d+/, v("year")], YY: [c, function(_) {
1558
- this.year = i(_);
1559
- }], YYYY: [/\d{4}/, v("year")], Z: S, ZZ: S };
1560
- function f(_) {
1561
- var M, z;
1562
- M = _, z = s && s.formats;
1563
- for (var g = (_ = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, N, re) {
1528
+ }], MMMM: [i, function(S) {
1529
+ var T = $("months").indexOf(S) + 1;
1530
+ if (T < 1) throw new Error();
1531
+ this.month = T % 12 || T;
1532
+ }], Y: [/[+-]?\d+/, h("year")], YY: [c, function(S) {
1533
+ this.year = l(S);
1534
+ }], YYYY: [/\d{4}/, h("year")], Z: w, ZZ: w };
1535
+ function f(S) {
1536
+ var T, z;
1537
+ T = S, z = a && a.formats;
1538
+ for (var g = (S = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(C, N, re) {
1564
1539
  var le = re && re.toUpperCase();
1565
1540
  return N || z[re] || n[re] || z[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
1566
1541
  return B || E.slice(1);
1567
1542
  });
1568
- })).match(o), h = g.length, F = 0; F < h; F += 1) {
1543
+ })).match(o), v = g.length, F = 0; F < v; F += 1) {
1569
1544
  var y = g[F], A = V[y], b = A && A[0], j = A && A[1];
1570
1545
  g[F] = j ? { regex: b, parser: j } : y.replace(/^\[|\]$/g, "");
1571
1546
  }
1572
1547
  return function(C) {
1573
- for (var N = {}, re = 0, le = 0; re < h; re += 1) {
1548
+ for (var N = {}, re = 0, le = 0; re < v; re += 1) {
1574
1549
  var R = g[re];
1575
1550
  if (typeof R == "string") le += R.length;
1576
1551
  else {
@@ -1578,35 +1553,35 @@ var un = { exports: {} };
1578
1553
  E.call(N, u), C = C.replace(u, "");
1579
1554
  }
1580
1555
  }
1581
- return function(w) {
1582
- var D = w.afternoon;
1556
+ return function(_) {
1557
+ var D = _.afternoon;
1583
1558
  if (D !== void 0) {
1584
- var P = w.hours;
1585
- D ? P < 12 && (w.hours += 12) : P === 12 && (w.hours = 0), delete w.afternoon;
1559
+ var P = _.hours;
1560
+ D ? P < 12 && (_.hours += 12) : P === 12 && (_.hours = 0), delete _.afternoon;
1586
1561
  }
1587
1562
  }(N), N;
1588
1563
  };
1589
1564
  }
1590
- return function(_, M, z) {
1591
- z.p.customParseFormat = !0, _ && _.parseTwoDigitYear && (i = _.parseTwoDigitYear);
1592
- var g = M.prototype, h = g.parse;
1565
+ return function(S, T, z) {
1566
+ z.p.customParseFormat = !0, S && S.parseTwoDigitYear && (l = S.parseTwoDigitYear);
1567
+ var g = T.prototype, v = g.parse;
1593
1568
  g.parse = function(F) {
1594
1569
  var y = F.date, A = F.utc, b = F.args;
1595
1570
  this.$u = A;
1596
1571
  var j = b[1];
1597
1572
  if (typeof j == "string") {
1598
1573
  var C = b[2] === !0, N = b[3] === !0, re = C || N, le = b[2];
1599
- N && (le = b[2]), s = this.$locale(), !C && le && (s = z.Ls[le]), this.$d = function(d, u, w, D) {
1574
+ N && (le = b[2]), a = this.$locale(), !C && le && (a = z.Ls[le]), this.$d = function(d, u, _, D) {
1600
1575
  try {
1601
1576
  if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * d);
1602
- var P = f(u)(d), x = P.year, K = P.month, q = P.day, Q = P.hours, T = 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;
1577
+ 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;
1603
1578
  x && !K || (xe = K > 0 ? K - 1 : we.getMonth());
1604
- var qe, nt = Q || 0, Ge = T || 0, m = X || 0, p = ue || 0;
1605
- return de ? new Date(Date.UTC($e, xe, De, nt, Ge, m, p + 60 * de.offset * 1e3)) : w ? 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);
1579
+ var qe, nt = Q || 0, Ge = M || 0, m = X || 0, p = ue || 0;
1580
+ 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);
1606
1581
  } catch {
1607
1582
  return /* @__PURE__ */ new Date("");
1608
1583
  }
1609
- }(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 = {};
1584
+ }(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("")), a = {};
1610
1585
  } else if (j instanceof Array) for (var R = j.length, B = 1; B <= R; B += 1) {
1611
1586
  b[1] = j[B - 1];
1612
1587
  var E = z.apply(this, b);
@@ -1616,7 +1591,7 @@ var un = { exports: {} };
1616
1591
  }
1617
1592
  B === R && (this.$d = /* @__PURE__ */ new Date(""));
1618
1593
  }
1619
- else h.call(this, F);
1594
+ else v.call(this, F);
1620
1595
  };
1621
1596
  };
1622
1597
  });
@@ -1629,57 +1604,57 @@ var dn = { exports: {} };
1629
1604
  e.exports = o();
1630
1605
  })(it, function() {
1631
1606
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1632
- return function(l, c, r) {
1633
- var a, s = function(I, L, V) {
1607
+ return function(r, c, s) {
1608
+ var i, a = function($, L, V) {
1634
1609
  V === void 0 && (V = {});
1635
- var f = new Date(I), _ = function(M, z) {
1610
+ var f = new Date($), S = function(T, z) {
1636
1611
  z === void 0 && (z = {});
1637
- var g = z.timeZoneName || "short", h = M + "|" + g, F = o[h];
1638
- 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: g }), o[h] = F), F;
1612
+ var g = z.timeZoneName || "short", v = T + "|" + g, F = o[v];
1613
+ 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: g }), o[v] = F), F;
1639
1614
  }(L, V);
1640
- return _.formatToParts(f);
1641
- }, i = function(I, L) {
1642
- for (var V = s(I, L), f = [], _ = 0; _ < V.length; _ += 1) {
1643
- var M = V[_], z = M.type, g = M.value, h = n[z];
1644
- h >= 0 && (f[h] = parseInt(g, 10));
1615
+ return S.formatToParts(f);
1616
+ }, l = function($, L) {
1617
+ for (var V = a($, L), f = [], S = 0; S < V.length; S += 1) {
1618
+ var T = V[S], z = T.type, g = T.value, v = n[z];
1619
+ v >= 0 && (f[v] = parseInt(g, 10));
1645
1620
  }
1646
- var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +I;
1647
- return (r.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
1648
- }, v = c.prototype;
1649
- v.tz = function(I, L) {
1650
- I === void 0 && (I = a);
1651
- var V, f = this.utcOffset(), _ = this.toDate(), M = _.toLocaleString("en-US", { timeZone: I }), z = Math.round((_ - new Date(M)) / 1e3 / 60), g = 15 * -Math.round(_.getTimezoneOffset() / 15) - z;
1621
+ var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +$;
1622
+ return (s.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
1623
+ }, h = c.prototype;
1624
+ h.tz = function($, L) {
1625
+ $ === void 0 && ($ = i);
1626
+ var V, f = this.utcOffset(), S = this.toDate(), T = S.toLocaleString("en-US", { timeZone: $ }), z = Math.round((S - new Date(T)) / 1e3 / 60), g = 15 * -Math.round(S.getTimezoneOffset() / 15) - z;
1652
1627
  if (!Number(g)) V = this.utcOffset(0, L);
1653
- else if (V = r(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), L) {
1654
- var h = V.utcOffset();
1655
- V = V.add(f - h, "minute");
1628
+ else if (V = s(T, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), L) {
1629
+ var v = V.utcOffset();
1630
+ V = V.add(f - v, "minute");
1656
1631
  }
1657
- return V.$x.$timezone = I, V;
1658
- }, v.offsetName = function(I) {
1659
- var L = this.$x.$timezone || r.tz.guess(), V = s(this.valueOf(), L, { timeZoneName: I }).find(function(f) {
1632
+ return V.$x.$timezone = $, V;
1633
+ }, h.offsetName = function($) {
1634
+ var L = this.$x.$timezone || s.tz.guess(), V = a(this.valueOf(), L, { timeZoneName: $ }).find(function(f) {
1660
1635
  return f.type.toLowerCase() === "timezonename";
1661
1636
  });
1662
1637
  return V && V.value;
1663
1638
  };
1664
- var S = v.startOf;
1665
- v.startOf = function(I, L) {
1666
- if (!this.$x || !this.$x.$timezone) return S.call(this, I, L);
1667
- var V = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1668
- return S.call(V, I, L).tz(this.$x.$timezone, !0);
1669
- }, r.tz = function(I, L, V) {
1670
- var f = V && L, _ = V || L || a, M = i(+r(), _);
1671
- if (typeof I != "string") return r(I).tz(_);
1639
+ var w = h.startOf;
1640
+ h.startOf = function($, L) {
1641
+ if (!this.$x || !this.$x.$timezone) return w.call(this, $, L);
1642
+ var V = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1643
+ return w.call(V, $, L).tz(this.$x.$timezone, !0);
1644
+ }, s.tz = function($, L, V) {
1645
+ var f = V && L, S = V || L || i, T = l(+s(), S);
1646
+ if (typeof $ != "string") return s($).tz(S);
1672
1647
  var z = function(y, A, b) {
1673
- var j = y - 60 * A * 1e3, C = i(j, b);
1648
+ var j = y - 60 * A * 1e3, C = l(j, b);
1674
1649
  if (A === C) return [j, A];
1675
- var N = i(j -= 60 * (C - A) * 1e3, b);
1650
+ var N = l(j -= 60 * (C - A) * 1e3, b);
1676
1651
  return C === N ? [j, C] : [y - 60 * Math.min(C, N) * 1e3, Math.max(C, N)];
1677
- }(r.utc(I, f).valueOf(), M, _), g = z[0], h = z[1], F = r(g).utcOffset(h);
1678
- return F.$x.$timezone = _, F;
1679
- }, r.tz.guess = function() {
1652
+ }(s.utc($, f).valueOf(), T, S), g = z[0], v = z[1], F = s(g).utcOffset(v);
1653
+ return F.$x.$timezone = S, F;
1654
+ }, s.tz.guess = function() {
1680
1655
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1681
- }, r.tz.setDefault = function(I) {
1682
- a = I;
1656
+ }, s.tz.setDefault = function($) {
1657
+ i = $;
1683
1658
  };
1684
1659
  };
1685
1660
  });
@@ -1691,70 +1666,70 @@ var fn = { exports: {} };
1691
1666
  (function(n, o) {
1692
1667
  e.exports = o();
1693
1668
  })(it, function() {
1694
- var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, l = /([+-]|\d\d)/g;
1695
- return function(c, r, a) {
1696
- var s = r.prototype;
1697
- a.utc = function(f) {
1698
- var _ = { date: f, utc: !0, args: arguments };
1699
- return new r(_);
1700
- }, s.utc = function(f) {
1701
- var _ = a(this.toDate(), { locale: this.$L, utc: !0 });
1702
- return f ? _.add(this.utcOffset(), n) : _;
1703
- }, s.local = function() {
1704
- return a(this.toDate(), { locale: this.$L, utc: !1 });
1669
+ var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1670
+ return function(c, s, i) {
1671
+ var a = s.prototype;
1672
+ i.utc = function(f) {
1673
+ var S = { date: f, utc: !0, args: arguments };
1674
+ return new s(S);
1675
+ }, a.utc = function(f) {
1676
+ var S = i(this.toDate(), { locale: this.$L, utc: !0 });
1677
+ return f ? S.add(this.utcOffset(), n) : S;
1678
+ }, a.local = function() {
1679
+ return i(this.toDate(), { locale: this.$L, utc: !1 });
1705
1680
  };
1706
- var i = s.parse;
1707
- s.parse = function(f) {
1708
- f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), i.call(this, f);
1681
+ var l = a.parse;
1682
+ a.parse = function(f) {
1683
+ f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), l.call(this, f);
1709
1684
  };
1710
- var v = s.init;
1711
- s.init = function() {
1685
+ var h = a.init;
1686
+ a.init = function() {
1712
1687
  if (this.$u) {
1713
1688
  var f = this.$d;
1714
1689
  this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
1715
- } else v.call(this);
1690
+ } else h.call(this);
1716
1691
  };
1717
- var S = s.utcOffset;
1718
- s.utcOffset = function(f, _) {
1719
- var M = this.$utils().u;
1720
- if (M(f)) return this.$u ? 0 : M(this.$offset) ? S.call(this) : this.$offset;
1692
+ var w = a.utcOffset;
1693
+ a.utcOffset = function(f, S) {
1694
+ var T = this.$utils().u;
1695
+ if (T(f)) return this.$u ? 0 : T(this.$offset) ? w.call(this) : this.$offset;
1721
1696
  if (typeof f == "string" && (f = function(F) {
1722
1697
  F === void 0 && (F = "");
1723
1698
  var y = F.match(o);
1724
1699
  if (!y) return null;
1725
- var A = ("" + y[0]).match(l) || ["-", 0, 0], b = A[0], j = 60 * +A[1] + +A[2];
1700
+ var A = ("" + y[0]).match(r) || ["-", 0, 0], b = A[0], j = 60 * +A[1] + +A[2];
1726
1701
  return j === 0 ? 0 : b === "+" ? j : -j;
1727
1702
  }(f), f === null)) return this;
1728
1703
  var z = Math.abs(f) <= 16 ? 60 * f : f;
1729
- if (z === 0) return this.utc(_);
1704
+ if (z === 0) return this.utc(S);
1730
1705
  var g = this.clone();
1731
- if (_) return g.$offset = z, g.$u = !1, g;
1732
- var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1733
- return (g = this.local().add(z + h, n)).$offset = z, g.$x.$localOffset = h, g;
1706
+ if (S) return g.$offset = z, g.$u = !1, g;
1707
+ var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1708
+ return (g = this.local().add(z + v, n)).$offset = z, g.$x.$localOffset = v, g;
1734
1709
  };
1735
- var I = s.format;
1736
- s.format = function(f) {
1737
- var _ = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1738
- return I.call(this, _);
1739
- }, s.valueOf = function() {
1710
+ var $ = a.format;
1711
+ a.format = function(f) {
1712
+ var S = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1713
+ return $.call(this, S);
1714
+ }, a.valueOf = function() {
1740
1715
  var f = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1741
1716
  return this.$d.valueOf() - 6e4 * f;
1742
- }, s.isUTC = function() {
1717
+ }, a.isUTC = function() {
1743
1718
  return !!this.$u;
1744
- }, s.toISOString = function() {
1719
+ }, a.toISOString = function() {
1745
1720
  return this.toDate().toISOString();
1746
- }, s.toString = function() {
1721
+ }, a.toString = function() {
1747
1722
  return this.toDate().toUTCString();
1748
1723
  };
1749
- var L = s.toDate;
1750
- s.toDate = function(f) {
1751
- return f === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1724
+ var L = a.toDate;
1725
+ a.toDate = function(f) {
1726
+ return f === "s" && this.$offset ? i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1752
1727
  };
1753
- var V = s.diff;
1754
- s.diff = function(f, _, M) {
1755
- if (f && this.$u === f.$u) return V.call(this, f, _, M);
1756
- var z = this.local(), g = a(f).local();
1757
- return V.call(z, g, _, M);
1728
+ var V = a.diff;
1729
+ a.diff = function(f, S, T) {
1730
+ if (f && this.$u === f.$u) return V.call(this, f, S, T);
1731
+ var z = this.local(), g = i(f).local();
1732
+ return V.call(z, g, S, T);
1758
1733
  };
1759
1734
  };
1760
1735
  });
@@ -1808,7 +1783,7 @@ function kt(e) {
1808
1783
  e.type || e.fieldType || e.frontInputType
1809
1784
  ) || jt(e.renderType) || "text";
1810
1785
  }
1811
- function Mt(e) {
1786
+ function Tt(e) {
1812
1787
  return At(
1813
1788
  e.type || e.fieldType || e.frontInputType
1814
1789
  ) || At(e.renderType) || "text";
@@ -1846,7 +1821,7 @@ function pn(e) {
1846
1821
  return typeof t.message == "string" && (typeof t.stack == "string" || t.name === "Error");
1847
1822
  }
1848
1823
  function mn(e, t, n = "-") {
1849
- const o = Mt(e);
1824
+ const o = Tt(e);
1850
1825
  return o === "empty" || _e(t) ? n : pn(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? Sr(e, t, n) : o === "switch" ? vn(t) ? Z("common.是") : Z("common.否") : o === "file" ? _r(t, n) : o === "multi-row" ? wr(t, n) : String(t);
1851
1826
  }
1852
1827
  function dt(e, t) {
@@ -1879,12 +1854,12 @@ function Ze(e, t) {
1879
1854
  );
1880
1855
  }
1881
1856
  function ft(e, t, n, o = {}) {
1882
- const l = gr(o);
1857
+ const r = gr(o);
1883
1858
  return e.filter((c) => c.visible ? !yr(
1884
1859
  c,
1885
1860
  t,
1886
1861
  n,
1887
- l,
1862
+ r,
1888
1863
  o.rows
1889
1864
  ) : !1);
1890
1865
  }
@@ -1918,8 +1893,8 @@ function mr(e) {
1918
1893
  }
1919
1894
  function hn(e, t, n = "-") {
1920
1895
  return !mr(e) || _e(t) ? [] : (Array.isArray(t) ? t : [t]).map(
1921
- (l, c) => vr(l, c, n)
1922
- ).filter((l) => !!l);
1896
+ (r, c) => vr(r, c, n)
1897
+ ).filter((r) => !!r);
1923
1898
  }
1924
1899
  function vr(e, t, n) {
1925
1900
  if (_e(e)) return null;
@@ -1940,31 +1915,31 @@ function vr(e, t, n) {
1940
1915
  text: e.name || n
1941
1916
  };
1942
1917
  if (e && typeof e == "object") {
1943
- const o = e, l = hr(o, n), c = Fe(o.url);
1918
+ const o = e, r = hr(o, n), c = Fe(o.url);
1944
1919
  if (c) {
1945
- const a = { url: c }, s = Fe(o.name), i = Fe(o.mimeType), v = Fe(o.extension);
1946
- return s && (a.name = s), i && (a.mimeType = i), v && (a.extension = v), {
1920
+ const i = { url: c }, a = Fe(o.name), l = Fe(o.mimeType), h = Fe(o.extension);
1921
+ return a && (i.name = a), l && (i.mimeType = l), h && (i.extension = h), {
1947
1922
  key: String(t),
1948
- text: l,
1923
+ text: r,
1949
1924
  action: {
1950
1925
  type: "direct",
1951
- options: a
1926
+ options: i
1952
1927
  }
1953
1928
  };
1954
1929
  }
1955
- const r = Fe(o.fileId);
1956
- return r ? {
1930
+ const s = Fe(o.fileId);
1931
+ return s ? {
1957
1932
  key: String(t),
1958
- text: l,
1933
+ text: r,
1959
1934
  action: {
1960
1935
  type: "params",
1961
1936
  params: {
1962
- fileId: r
1937
+ fileId: s
1963
1938
  }
1964
1939
  }
1965
1940
  } : {
1966
1941
  key: String(t),
1967
- text: l
1942
+ text: r
1968
1943
  };
1969
1944
  }
1970
1945
  return {
@@ -1989,22 +1964,22 @@ function At(e) {
1989
1964
  function gr(e) {
1990
1965
  return e.rows?.length ? e.rows : [e.values ?? {}];
1991
1966
  }
1992
- function yr(e, t, n, o, l) {
1967
+ function yr(e, t, n, o, r) {
1993
1968
  const c = n?.hiddenRule;
1994
- return c ? o.some((r) => {
1969
+ return c ? o.some((s) => {
1995
1970
  try {
1996
- const a = r[e.code];
1971
+ const i = s[e.code];
1997
1972
  return c({
1998
1973
  field: e,
1999
1974
  section: t,
2000
- values: r,
2001
- allValues: r,
2002
- value: a,
2003
- currentValue: a,
2004
- rows: l
1975
+ values: s,
1976
+ allValues: s,
1977
+ value: i,
1978
+ currentValue: i,
1979
+ rows: r
2005
1980
  });
2006
- } catch (a) {
2007
- return console.error("[globalInfo] hidden rule failed", a), !1;
1981
+ } catch (i) {
1982
+ return console.error("[globalInfo] hidden rule failed", i), !1;
2008
1983
  }
2009
1984
  }) : !1;
2010
1985
  }
@@ -2029,13 +2004,13 @@ function yn(e) {
2029
2004
  function Sr(e, t, n) {
2030
2005
  const o = pt(e);
2031
2006
  if (Array.isArray(t) || o) {
2032
- const l = dt(e, t).map((r) => Rt(e, r) || String(r ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2033
- return l.length > 0 ? l.join(c) : n;
2007
+ const r = dt(e, t).map((s) => Rt(e, s) || String(s ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2008
+ return r.length > 0 ? r.join(c) : n;
2034
2009
  }
2035
2010
  return Rt(e, t) || String(t).trim() || n;
2036
2011
  }
2037
2012
  function pt(e) {
2038
- return !!e.props?.multiple && (kt(e) === "select" || Mt(e) === "select");
2013
+ return !!e.props?.multiple && (kt(e) === "select" || Tt(e) === "select");
2039
2014
  }
2040
2015
  function Rt(e, t) {
2041
2016
  return e.options?.find(
@@ -2091,7 +2066,7 @@ function Ir(e = null) {
2091
2066
  }
2092
2067
  function Nt(e) {
2093
2068
  const t = kn(e), n = Cn(t), o = Lr(t).flatMap(
2094
- (l) => $n(l, n)
2069
+ (r) => $n(r, n)
2095
2070
  );
2096
2071
  return {
2097
2072
  ...Ir(e),
@@ -2107,18 +2082,18 @@ function Sn(e, t, n) {
2107
2082
  });
2108
2083
  }
2109
2084
  function $r(e, t = {}, n = null) {
2110
- const o = kn(e), l = Cn(o, t), c = Mr(o, t, n), r = Object.fromEntries(
2111
- c.map((a) => [a.key, a])
2085
+ const o = kn(e), r = Cn(o, t), c = Tr(o, t, n), s = Object.fromEntries(
2086
+ c.map((i) => [i.key, i])
2112
2087
  );
2113
2088
  return {
2114
- scheme: l,
2089
+ scheme: r,
2115
2090
  node: n,
2116
2091
  topNodes: [],
2117
2092
  treeNodes: [],
2118
2093
  activeNode: n,
2119
2094
  activeSection: c[0] ?? null,
2120
2095
  sections: c,
2121
- sectionMap: r,
2096
+ sectionMap: s,
2122
2097
  raw: e
2123
2098
  };
2124
2099
  }
@@ -2127,15 +2102,15 @@ function Cr(e) {
2127
2102
  }
2128
2103
  function kr(e, t = {}) {
2129
2104
  const n = e.renderType === "table" ? e.rows.map(
2130
- (s) => _t(wt(s))
2131
- ) : [_t(wt(e.model))], o = ce(e.operationInfo), l = ce(o.editInfoSet), c = ce(l.params), r = ce(o.queryInfoSet), a = ce(r.params);
2105
+ (a) => _t(wt(a))
2106
+ ) : [_t(wt(e.model))], o = ce(e.operationInfo), r = ce(o.editInfoSet), c = ce(r.params), s = ce(o.queryInfoSet), i = ce(s.params);
2132
2107
  return {
2133
2108
  ...t,
2134
2109
  infSchmId: t.infSchmId ?? se(e.raw.infSchmId),
2135
2110
  emplid: t.emplid ?? se(e.raw.emplid),
2136
2111
  // 保存优先使用接口出参里的信息集挂载 tagId,其次才回退到请求节点 tagId。
2137
2112
  tagId: ee(
2138
- e.tagId || c.tagId || a.tagId || t.tagId || e.requestTagId
2113
+ e.tagId || c.tagId || i.tagId || t.tagId || e.requestTagId
2139
2114
  ),
2140
2115
  infSetId: t.infSetId ?? e.infSetId,
2141
2116
  setId: t.setId ?? e.setId,
@@ -2160,59 +2135,59 @@ function is(e) {
2160
2135
  return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
2161
2136
  }
2162
2137
  function wn(e) {
2163
- const t = Mn(e);
2138
+ const t = Tn(e);
2164
2139
  return (Array.isArray(t) ? t : Qe(ce(t), ["options", "list", "records", "data"])).map((o) => {
2165
- const l = ce(o), c = l.fieldvalue, r = c ?? l.value ?? l.code ?? l.emplid;
2140
+ const r = ce(o), c = r.fieldvalue, s = c ?? r.value ?? r.code ?? r.emplid;
2166
2141
  return {
2167
- id: l.id,
2168
- code: c ?? l.value ?? l.code ?? l.emplid,
2142
+ id: r.id,
2143
+ code: c ?? r.value ?? r.code ?? r.emplid,
2169
2144
  // fieldname 在 md-options 中是字段标识,不是用户可读文案;展示文案只接受明确的 label/descr/name。
2170
2145
  label: ee(
2171
- l.label ?? l.descr ?? l.name
2146
+ r.label ?? r.descr ?? r.name
2172
2147
  ),
2173
- labelDescr: se(l.labelDescr),
2174
- name: se(l.name),
2175
- value: r,
2148
+ labelDescr: se(r.labelDescr),
2149
+ name: se(r.name),
2150
+ value: s,
2176
2151
  raw: o
2177
2152
  };
2178
2153
  });
2179
2154
  }
2180
- function Mr(e, t, n) {
2155
+ function Tr(e, t, n) {
2181
2156
  const o = Qe(e, ["sections", "sets", "list"]);
2182
2157
  return o.length > 0 ? o.map(
2183
- (l) => xt(l, t, n, o.length === 1)
2158
+ (r) => xt(r, t, n, o.length === 1)
2184
2159
  ) : e.infSetMark || e.infSetFields || e.fields ? [xt(e, t, n, !0)] : [];
2185
2160
  }
2186
2161
  function xt(e, t, n, o) {
2187
- const l = ce(e), c = Tr(l.infSetMark ?? l), r = Or(l.infSetFields ?? l.fields ?? []), a = Cr(c), s = Fr(
2188
- l.infSetValues ?? l.rows ?? l.data,
2189
- r,
2190
- a
2191
- ), i = s[0] ? wt(s[0]) : In(r), v = ce(l.tag), S = ee(
2192
- l.tagId ?? l.infTagId ?? v.tagId ?? v.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2193
- ), I = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, _ = o ? n?.code : void 0, M = c.setId || ee(l.setId), z = ee(l.infSetId) || M || ee(V), g = M || ee(f ?? z), h = c.code || ee(l.code ?? _ ?? g), F = g || h || z || S, y = {
2162
+ const r = ce(e), c = Mr(r.infSetMark ?? r), s = Or(r.infSetFields ?? r.fields ?? []), i = Cr(c), a = Fr(
2163
+ r.infSetValues ?? r.rows ?? r.data,
2164
+ s,
2165
+ i
2166
+ ), l = a[0] ? wt(a[0]) : In(s), h = ce(r.tag), w = ee(
2167
+ r.tagId ?? r.infTagId ?? h.tagId ?? h.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2168
+ ), $ = 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), g = T || ee(f ?? z), v = c.code || ee(r.code ?? S ?? g), F = g || v || z || w, y = {
2194
2169
  key: F,
2195
2170
  id: F,
2196
2171
  setId: g,
2197
- code: h,
2198
- tagId: S,
2199
- requestTagId: I || void 0,
2172
+ code: v,
2173
+ tagId: w,
2174
+ requestTagId: $ || void 0,
2200
2175
  ownerNodeKey: L || void 0,
2201
2176
  infSetId: z,
2202
- title: c.name || ee(l.name ?? n?.tagName ?? F),
2203
- renderType: a,
2177
+ title: c.name || ee(r.name ?? n?.tagName ?? F),
2178
+ renderType: i,
2204
2179
  mark: c,
2205
- fields: r,
2206
- model: i,
2207
- rows: s,
2180
+ fields: s,
2181
+ model: l,
2182
+ rows: a,
2208
2183
  operationInfo: mt(
2209
- t.operationInfo ?? l.operationInfo
2184
+ t.operationInfo ?? r.operationInfo
2210
2185
  ),
2211
- raw: l
2186
+ raw: r
2212
2187
  };
2213
- return y.renderType === "form" && s.length === 0 && (y.rows = [{ ...i, __rowKey: `${F}-0` }]), y;
2188
+ return y.renderType === "form" && a.length === 0 && (y.rows = [{ ...l, __rowKey: `${F}-0` }]), y;
2214
2189
  }
2215
- function Tr(e) {
2190
+ function Mr(e) {
2216
2191
  const t = ce(e), n = ee(t.htmlDisplay || "F");
2217
2192
  return {
2218
2193
  name: ee(t.name ?? t.title),
@@ -2233,14 +2208,14 @@ function Or(e) {
2233
2208
  function Dr(e, t) {
2234
2209
  const n = ce(e), o = ee(
2235
2210
  n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`
2236
- ), l = ee(n.label ?? n.name ?? n.tagName ?? o), c = Tn(
2211
+ ), r = ee(n.label ?? n.name ?? n.tagName ?? o), c = Mn(
2237
2212
  n.interface ?? n.interfaceField
2238
- ), r = qt(n.cascadeDependFields);
2213
+ ), s = qt(n.cascadeDependFields);
2239
2214
  return {
2240
2215
  id: ee(n.id ?? n.key ?? n.prop ?? o),
2241
2216
  key: ee(n.key ?? n.prop ?? o),
2242
2217
  code: o,
2243
- label: l,
2218
+ label: r,
2244
2219
  value: n.value ?? n.defaultValue ?? "",
2245
2220
  type: jr(n),
2246
2221
  fieldType: se(n.fieldType),
@@ -2261,7 +2236,7 @@ function Dr(e, t) {
2261
2236
  interface: c,
2262
2237
  cascadeClearFields: qt(n.cascadeClearFields),
2263
2238
  cascadeDependFields: Ne({
2264
- cascadeDependFields: r,
2239
+ cascadeDependFields: s,
2265
2240
  interface: c
2266
2241
  }),
2267
2242
  props: Ar(n),
@@ -2271,15 +2246,15 @@ function Dr(e, t) {
2271
2246
  }
2272
2247
  function Fr(e, t, n) {
2273
2248
  if (Array.isArray(e) && e.some((c) => {
2274
- const r = ce(c);
2249
+ const s = ce(c);
2275
2250
  return t.some(
2276
- (a) => r[a.code] !== void 0 || r[a.key] !== void 0
2251
+ (i) => s[i.code] !== void 0 || s[i.key] !== void 0
2277
2252
  );
2278
2253
  }))
2279
- return e.map((c, r) => ({
2254
+ return e.map((c, s) => ({
2280
2255
  ...ce(c),
2281
2256
  __rowKey: ee(
2282
- ce(c).__rowKey ?? ce(c).key ?? r
2257
+ ce(c).__rowKey ?? ce(c).key ?? s
2283
2258
  )
2284
2259
  }));
2285
2260
  const o = In(t);
@@ -2289,23 +2264,23 @@ function In(e) {
2289
2264
  return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
2290
2265
  }
2291
2266
  function $n(e, t, n = "") {
2292
- const o = ce(e), l = Qe(o, ["children", "list", "tags"]).flatMap(
2293
- (r) => $n(
2294
- r,
2267
+ const o = ce(e), r = Qe(o, ["children", "list", "tags"]).flatMap(
2268
+ (s) => $n(
2269
+ s,
2295
2270
  t,
2296
2271
  ee(o.tagId ?? o.id ?? o.key)
2297
2272
  )
2298
2273
  ), c = Pr(o.infSetList);
2299
- return l.length === 0 && c.length > 0 ? c.map(
2300
- (r, a) => Er(o, r, t, n, a)
2301
- ) : [Br(o, t, n, l)];
2274
+ return r.length === 0 && c.length > 0 ? c.map(
2275
+ (s, i) => Er(o, s, t, n, i)
2276
+ ) : [Br(o, t, n, r)];
2302
2277
  }
2303
2278
  function Br(e, t, n, o) {
2304
- const l = ee(e.tagId ?? e.id ?? e.key), c = ee(e.tagName ?? e.name ?? e.label ?? l);
2279
+ const r = ee(e.tagId ?? e.id ?? e.key), c = ee(e.tagName ?? e.name ?? e.label ?? r);
2305
2280
  return {
2306
- key: ee(e.key ?? l),
2307
- id: l,
2308
- tagId: l,
2281
+ key: ee(e.key ?? r),
2282
+ id: r,
2283
+ tagId: r,
2309
2284
  tagName: c,
2310
2285
  label: c,
2311
2286
  tagLevel: se(e.tagLevel ?? e.level) ?? null,
@@ -2326,14 +2301,14 @@ function Br(e, t, n, o) {
2326
2301
  raw: e
2327
2302
  };
2328
2303
  }
2329
- function Er(e, t, n, o, l) {
2330
- const c = ee(e.tagId ?? e.id ?? e.key), r = ee(e.tagName ?? e.name ?? e.label ?? c), a = t.infSetId || ee(t.setId), s = t.setId || a, i = a || `${c}-${l}`, v = t.code || se(e.code ?? a);
2304
+ function Er(e, t, n, o, r) {
2305
+ const c = ee(e.tagId ?? e.id ?? e.key), s = ee(e.tagName ?? e.name ?? e.label ?? c), i = t.infSetId || ee(t.setId), a = t.setId || i, l = i || `${c}-${r}`, h = t.code || se(e.code ?? i);
2331
2306
  return {
2332
- key: i,
2333
- id: i,
2307
+ key: l,
2308
+ id: l,
2334
2309
  tagId: c,
2335
- tagName: r,
2336
- label: r,
2310
+ tagName: s,
2311
+ label: s,
2337
2312
  tagLevel: se(e.tagLevel ?? e.level) ?? null,
2338
2313
  level: Dn(e.tagLevel ?? e.level),
2339
2314
  parentTagId: se(
@@ -2342,17 +2317,17 @@ function Er(e, t, n, o, l) {
2342
2317
  parentId: se(e.parentTagId ?? e.parentId ?? o) ?? null,
2343
2318
  infSchmId: se(e.infSchmId ?? n?.infSchmId),
2344
2319
  schemeId: ee(e.infSchmId ?? n?.infSchmId),
2345
- infSetId: a,
2346
- setId: s,
2347
- code: v,
2320
+ infSetId: i,
2321
+ setId: a,
2322
+ code: h,
2348
2323
  children: [],
2349
2324
  infSetList: [t],
2350
2325
  operationInfo: mt(e.operationInfo),
2351
2326
  loaded: !0,
2352
2327
  raw: {
2353
2328
  ...e,
2354
- infSetId: a,
2355
- setId: s,
2329
+ infSetId: i,
2330
+ setId: a,
2356
2331
  infSetList: [t.raw]
2357
2332
  }
2358
2333
  };
@@ -2360,10 +2335,10 @@ function Er(e, t, n, o, l) {
2360
2335
  function Cn(e, t = {}) {
2361
2336
  const n = ce(
2362
2337
  e.globalInfoSchmMark ?? e.scheme ?? e
2363
- ), o = ee(n.infSchmId ?? t.infSchmId), l = ee(n.emplid ?? t.emplid);
2364
- return !o && !l && Object.keys(n).length === 0 ? null : {
2338
+ ), o = ee(n.infSchmId ?? t.infSchmId), r = ee(n.emplid ?? t.emplid);
2339
+ return !o && !r && Object.keys(n).length === 0 ? null : {
2365
2340
  infSchmId: o,
2366
- emplid: l,
2341
+ emplid: r,
2367
2342
  id: o,
2368
2343
  mark: ee(n.globalInfoSchmMark ?? e.globalInfoSchmMark),
2369
2344
  config: Array.isArray(e.globalInfoSchmConfig) ? "" : ee(n.globalInfoSchmConfig ?? e.globalInfoSchmConfig),
@@ -2392,9 +2367,9 @@ function Pr(e) {
2392
2367
  }) : [];
2393
2368
  }
2394
2369
  function kn(e) {
2395
- return ce(Mn(e));
2370
+ return ce(Tn(e));
2396
2371
  }
2397
- function Mn(e) {
2372
+ function Tn(e) {
2398
2373
  const t = ce(e);
2399
2374
  return t.data ?? t.result ?? e;
2400
2375
  }
@@ -2410,7 +2385,7 @@ function wt(e) {
2410
2385
  const t = { ...e };
2411
2386
  return delete t.__rowKey, delete t.fields, t;
2412
2387
  }
2413
- function Tn(e) {
2388
+ function Mn(e) {
2414
2389
  const t = ce(e);
2415
2390
  if (!(!t.method && !t.url && !t.params))
2416
2391
  return {
@@ -2426,7 +2401,7 @@ function mt(e) {
2426
2401
  return Object.fromEntries(
2427
2402
  Object.entries(t).map(([n, o]) => [
2428
2403
  n,
2429
- Tn(o) ?? o
2404
+ Mn(o) ?? o
2430
2405
  ])
2431
2406
  );
2432
2407
  }
@@ -2484,7 +2459,7 @@ function ke(e) {
2484
2459
  e.toLowerCase()
2485
2460
  ) : !!e;
2486
2461
  }
2487
- const Ve = (e) => e.key || e.code, Te = (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([
2462
+ 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([
2488
2463
  e?.key,
2489
2464
  e?.id,
2490
2465
  e?.setId,
@@ -2502,25 +2477,25 @@ const Ve = (e) => e.key || e.code, Te = (e) => e.key || e.setId, Rr = (e) => Str
2502
2477
  e.code
2503
2478
  ]);
2504
2479
  function Bn(e, t, n) {
2505
- const o = zr(e), l = tt([n, ...Xe(t)]);
2506
- return l.length === 0 ? !1 : l.some((c) => o.includes(c));
2480
+ const o = zr(e), r = tt([n, ...Xe(t)]);
2481
+ return r.length === 0 ? !1 : r.some((c) => o.includes(c));
2507
2482
  }
2508
2483
  function Nr(e, t, n) {
2509
- return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((l) => Bn(l, t, n));
2484
+ return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((r) => Bn(r, t, n));
2510
2485
  }
2511
2486
  function xr(e, t, n = {}) {
2512
- const o = Object.keys(n).length > 0 ? n : e.model, l = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((s) => Ve(s) === l || s.code === l) : t, a = Ne(c).some((s) => {
2513
- if (s === "searchText" && Object.prototype.hasOwnProperty.call(o, s) || s !== "searchText" && !Gr(e, s))
2487
+ const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, i = Ne(c).some((a) => {
2488
+ if (a === "searchText" && Object.prototype.hasOwnProperty.call(o, a) || a !== "searchText" && !Gr(e, a))
2514
2489
  return !1;
2515
- const i = o[s];
2516
- return i == null || i === "";
2490
+ const l = o[a];
2491
+ return l == null || l === "";
2517
2492
  });
2518
2493
  return {
2519
- fieldKey: l,
2494
+ fieldKey: r,
2520
2495
  currentField: c,
2521
2496
  sourceModel: o,
2522
2497
  sourceRow: e.renderType === "table" ? o : void 0,
2523
- missingDependField: a
2498
+ missingDependField: i
2524
2499
  };
2525
2500
  }
2526
2501
  function qr(e) {
@@ -2532,27 +2507,27 @@ function Gr(e, t) {
2532
2507
  function Kr(e) {
2533
2508
  return wn(e);
2534
2509
  }
2535
- const Me = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, at = (e) => {
2536
- const t = Me(e);
2510
+ const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, at = (e) => {
2511
+ const t = Te(e);
2537
2512
  return !!(t.url || t.method || t.params);
2538
2513
  };
2539
2514
  function Yr(e) {
2540
- const t = Me(e.operationInfo).openTag;
2515
+ const t = Te(e.operationInfo).openTag;
2541
2516
  return at(t) ? t : void 0;
2542
2517
  }
2543
2518
  function Ur(e, t, n) {
2544
- const o = Me(e?.operationInfo).queryInfoSet;
2519
+ const o = Te(e?.operationInfo).queryInfoSet;
2545
2520
  if (at(o))
2546
2521
  return o;
2547
- const l = t?.infSetList.find((r) => r.infSetId === n), c = Me(l?.operationInfo).queryInfoSet;
2522
+ const r = t?.infSetList.find((s) => s.infSetId === n), c = Te(r?.operationInfo).queryInfoSet;
2548
2523
  return at(c) ? c : void 0;
2549
2524
  }
2550
2525
  function Hr(e) {
2551
- const t = Me(e.operationInfo).editInfoSet;
2526
+ const t = Te(e.operationInfo).editInfoSet;
2552
2527
  return at(t) ? t : void 0;
2553
2528
  }
2554
2529
  async function En(e) {
2555
- const t = e.params === void 0 ? void 0 : Me(e.params);
2530
+ const t = e.params === void 0 ? void 0 : Te(e.params);
2556
2531
  return !e.formatter || !Jr(e) ? t : e.formatter({
2557
2532
  operation: e.operation,
2558
2533
  interfaceOperation: e.field?.interface,
@@ -2560,8 +2535,8 @@ async function En(e) {
2560
2535
  requestSource: e.requestSource,
2561
2536
  tagId: e.tagId,
2562
2537
  model: {
2563
- ...Me(e.section?.model),
2564
- ...Me(e.model)
2538
+ ...Te(e.section?.model),
2539
+ ...Te(e.model)
2565
2540
  },
2566
2541
  row: e.row,
2567
2542
  section: e.section,
@@ -2581,7 +2556,7 @@ function Jr(e) {
2581
2556
  async function Wr(e) {
2582
2557
  if (!e.service.requestOperation)
2583
2558
  throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
2584
- const t = e.operation.params === void 0 ? void 0 : Me(e.operation.params), n = Zr(t, e.context), o = await En({
2559
+ const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = Zr(t, e.context), o = await En({
2585
2560
  formatter: e.formatter,
2586
2561
  params: n,
2587
2562
  operation: e.operation,
@@ -2607,10 +2582,10 @@ async function Wr(e) {
2607
2582
  function Zr(e, t) {
2608
2583
  if (t?.params === void 0)
2609
2584
  return e;
2610
- const n = Me(t.params);
2585
+ const n = Te(t.params);
2611
2586
  return t.type === "openTag" && t.requestSource === "sidebar" ? {
2612
2587
  ...n,
2613
- ...Me(e)
2588
+ ...Te(e)
2614
2589
  } : n;
2615
2590
  }
2616
2591
  function Je(e = {}) {
@@ -2630,28 +2605,28 @@ function Je(e = {}) {
2630
2605
  };
2631
2606
  }
2632
2607
  function Qr(e) {
2633
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], l = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), r = tt([e.targetKey, ...Xe(e.node)]).length > 0, a = c.find((s) => Bn(s, e.node, e.targetKey)) ?? (r ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2634
- return c.forEach((s) => {
2635
- const i = Te(s);
2636
- t[i] = s, o.includes(i) || o.push(i), l[i] = Je({
2637
- ...l[i],
2608
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), s = tt([e.targetKey, ...Xe(e.node)]).length > 0, i = c.find((a) => Bn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2609
+ return c.forEach((a) => {
2610
+ const l = Me(a);
2611
+ t[l] = a, o.includes(l) || o.push(l), r[l] = Je({
2612
+ ...r[l],
2638
2613
  loaded: !0,
2639
2614
  loading: !1,
2640
2615
  error: null,
2641
- editing: e.editingSectionKeys.includes(i)
2616
+ editing: e.editingSectionKeys.includes(l)
2642
2617
  });
2643
- }), e.targetKey && a ? n[e.targetKey] = Te(a) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (l[e.targetKey] = Je({
2644
- ...l[e.targetKey],
2618
+ }), e.targetKey && i ? n[e.targetKey] = Me(i) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Je({
2619
+ ...r[e.targetKey],
2645
2620
  loaded: !0,
2646
2621
  loading: !1,
2647
2622
  error: null,
2648
- editing: !!(a && e.editingSectionKeys.includes(Te(a)))
2623
+ editing: !!(i && e.editingSectionKeys.includes(Me(i)))
2649
2624
  })), {
2650
2625
  sectionMap: t,
2651
2626
  sectionAliasMap: n,
2652
2627
  sectionOrder: o,
2653
- sectionStatusMap: l,
2654
- matchedSection: a,
2628
+ sectionStatusMap: r,
2629
+ matchedSection: i,
2655
2630
  targetSections: c
2656
2631
  };
2657
2632
  }
@@ -2670,15 +2645,15 @@ function ea(e, t) {
2670
2645
  const ze = (e) => new Error(`[GlobalInfo] ${e}`), ta = (e) => [
2671
2646
  String(e.method ?? "").toLowerCase(),
2672
2647
  String(e.url ?? ""),
2673
- It(Me(e.params))
2648
+ It(Te(e.params))
2674
2649
  ].join("::");
2675
2650
  function It(e) {
2676
2651
  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);
2677
2652
  }
2678
2653
  const na = (e) => {
2679
- const t = ge(!1), n = ge(!1), o = ge(!1), l = je(null), c = je([]), r = je(null), a = je(null), s = je(null), i = je({}), v = je({}), S = ge([]), I = je({}), L = ge([]), V = O(
2654
+ const t = ge(!1), n = ge(!1), o = ge(!1), r = je(null), c = je([]), s = je(null), i = je(null), a = je(null), l = je({}), h = je({}), w = ge([]), $ = je({}), L = ge([]), V = O(
2680
2655
  () => {
2681
- const m = S.value.map((k) => i.value[k]).filter((k) => !!k), p = Object.entries(i.value).filter(([k]) => !S.value.includes(k)).map(([, k]) => k);
2656
+ 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);
2682
2657
  return [...m, ...p];
2683
2658
  }
2684
2659
  ), f = O(() => ({
@@ -2691,31 +2666,31 @@ const na = (e) => {
2691
2666
  // 当前所有编辑中的 section key。
2692
2667
  editingSectionKeys: L.value,
2693
2668
  // 已加载 section 映射。
2694
- sectionMap: i.value,
2669
+ sectionMap: l.value,
2695
2670
  // section 状态映射;这里把 alias 后的编辑态也同步进去。
2696
2671
  sectionStatusMap: Object.fromEntries(
2697
- Object.entries(I.value).map(([m, p]) => [
2672
+ Object.entries($.value).map(([m, p]) => [
2698
2673
  m,
2699
2674
  {
2700
2675
  // 保留原状态字段。
2701
2676
  ...p,
2702
2677
  // 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
2703
2678
  editing: L.value.includes(
2704
- v.value[m] ?? m
2679
+ h.value[m] ?? m
2705
2680
  )
2706
2681
  }
2707
2682
  ])
2708
2683
  ),
2709
2684
  // 最近一次全局错误。
2710
- error: l.value
2711
- })), _ = () => ({
2685
+ error: r.value
2686
+ })), S = () => ({
2712
2687
  // adaptScene 透传给新接口形态。
2713
2688
  adaptScene: e.adaptScene,
2714
2689
  // emplid 是当前人员标识,树和详情接口都需要它。
2715
2690
  emplid: e.emplid
2716
- }), M = (m) => ({
2691
+ }), T = (m) => ({
2717
2692
  // 复用基础参数,保证人员和场景一致。
2718
- ..._(),
2693
+ ...S(),
2719
2694
  // infSchmId 指定当前模板方案。
2720
2695
  infSchmId: m.infSchmId,
2721
2696
  // tagId 指定要展开的树节点。
@@ -2724,9 +2699,9 @@ const na = (e) => {
2724
2699
  tagLevel: m.tagLevel,
2725
2700
  // parentTagId 保留父子关系上下文。
2726
2701
  parentTagId: m.parentTagId
2727
- }), z = (m = a.value, p = s.value) => ({
2702
+ }), z = (m = i.value, p = a.value) => ({
2728
2703
  // 详情接口同样需要基础人员和场景参数。
2729
- ..._(),
2704
+ ...S(),
2730
2705
  // 当前节点所属模板方案。
2731
2706
  infSchmId: m?.infSchmId,
2732
2707
  // 当前点击或加载的树节点 id。
@@ -2740,11 +2715,11 @@ const na = (e) => {
2740
2715
  formatter: e.formatOperationParams,
2741
2716
  operation: m,
2742
2717
  context: p,
2743
- viewModel: r.value,
2718
+ viewModel: s.value,
2744
2719
  sections: V.value,
2745
- activeNode: a.value,
2746
- activeSection: s.value
2747
- }), h = nr(
2720
+ activeNode: i.value,
2721
+ activeSection: a.value
2722
+ }), v = nr(
2748
2723
  async (m, p) => {
2749
2724
  if (!e.service.requestOperation)
2750
2725
  throw ze("service.requestOperation is required");
@@ -2764,13 +2739,13 @@ const na = (e) => {
2764
2739
  model: p?.model,
2765
2740
  row: p?.row,
2766
2741
  node: p?.node,
2767
- viewModel: r.value,
2742
+ viewModel: s.value,
2768
2743
  sections: V.value,
2769
- activeNode: a.value,
2770
- activeSection: s.value,
2744
+ activeNode: i.value,
2745
+ activeSection: a.value,
2771
2746
  searchText: p?.searchText
2772
2747
  }), Y = { ...m, params: k }, W = p && { ...p, params: k };
2773
- return h(Y, W);
2748
+ return v(Y, W);
2774
2749
  }, y = (m, p) => {
2775
2750
  if (!p)
2776
2751
  return m[0] ?? null;
@@ -2782,23 +2757,23 @@ const na = (e) => {
2782
2757
  return Y;
2783
2758
  }
2784
2759
  return null;
2785
- }, A = (m = s.value) => {
2760
+ }, A = (m = a.value) => {
2786
2761
  if (m)
2787
- return typeof m == "string" ? m : Ue(m) ? C(m) : Te(m);
2788
- }, b = (m = s.value) => {
2762
+ return typeof m == "string" ? m : Ue(m) ? C(m) : Me(m);
2763
+ }, b = (m = a.value) => {
2789
2764
  const p = A(m);
2790
2765
  if (!p)
2791
2766
  return null;
2792
- const k = v.value[p] ?? p;
2793
- return i.value[k] ?? null;
2794
- }, j = (m = s.value) => {
2767
+ const k = h.value[p] ?? p;
2768
+ return l.value[k] ?? null;
2769
+ }, j = (m = a.value) => {
2795
2770
  const p = A(m);
2796
2771
  if (p)
2797
- return v.value[p] ?? p;
2798
- }, C = (m = s.value) => {
2772
+ return h.value[p] ?? p;
2773
+ }, C = (m = a.value) => {
2799
2774
  if (m)
2800
- return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Te(m);
2801
- }, N = (m = s.value) => {
2775
+ return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Me(m);
2776
+ }, N = (m = a.value) => {
2802
2777
  if (Ue(m))
2803
2778
  return m;
2804
2779
  if (typeof m == "string") {
@@ -2806,17 +2781,17 @@ const na = (e) => {
2806
2781
  if (p)
2807
2782
  return p;
2808
2783
  const k = b(m);
2809
- return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? a.value : k || a.value && Xe(a.value).includes(m) ? a.value : null;
2784
+ return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? i.value : k || i.value && Xe(i.value).includes(m) ? i.value : null;
2810
2785
  }
2811
- return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? a.value : a.value;
2812
- }, re = (m = s.value) => !m || Ue(m) ? null : b(m), le = (m = s.value) => {
2786
+ return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? i.value : i.value;
2787
+ }, re = (m = a.value) => !m || Ue(m) ? null : b(m), le = (m = a.value) => {
2813
2788
  const p = C(m);
2814
2789
  if (!p)
2815
2790
  return Je();
2816
- const k = v.value[p] ?? p;
2791
+ const k = h.value[p] ?? p;
2817
2792
  return Je({
2818
- ...I.value[p],
2819
- ...I.value[k],
2793
+ ...$.value[p],
2794
+ ...$.value[k],
2820
2795
  // 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
2821
2796
  editing: L.value.includes(
2822
2797
  k
@@ -2824,24 +2799,24 @@ const na = (e) => {
2824
2799
  });
2825
2800
  }, R = (m, p) => {
2826
2801
  const k = C(m);
2827
- k && (I.value = {
2828
- ...I.value,
2802
+ k && ($.value = {
2803
+ ...$.value,
2829
2804
  [k]: Je({
2830
2805
  // 保留已有状态。
2831
- ...I.value[k],
2806
+ ...$.value[k],
2832
2807
  // 合并本次状态补丁。
2833
2808
  ...p,
2834
2809
  // 编辑态仍以 editingSectionKeys 为准。
2835
2810
  editing: L.value.includes(k)
2836
2811
  })
2837
2812
  });
2838
- }, B = (m = r.value?.raw ?? null, p = a.value) => {
2839
- const k = V.value, Y = s.value && k.find(
2840
- (W) => Te(W) === Te(s.value)
2841
- ) ? s.value : null;
2842
- r.value = {
2813
+ }, B = (m = s.value?.raw ?? null, p = i.value) => {
2814
+ const k = V.value, Y = a.value && k.find(
2815
+ (W) => Me(W) === Me(a.value)
2816
+ ) ? a.value : null;
2817
+ s.value = {
2843
2818
  // 保留原 scheme。
2844
- scheme: r.value?.scheme ?? null,
2819
+ scheme: s.value?.scheme ?? null,
2845
2820
  // 当前节点。
2846
2821
  node: p,
2847
2822
  // 顶层节点和树节点都来自 nodes。
@@ -2854,48 +2829,48 @@ const na = (e) => {
2854
2829
  // 当前所有已加载 section。
2855
2830
  sections: k,
2856
2831
  // 当前 section 缓存。
2857
- sectionMap: i.value,
2832
+ sectionMap: l.value,
2858
2833
  // 保留原始接口数据。
2859
2834
  raw: m
2860
- }, s.value = Y;
2861
- }, E = (m, p = a.value, k) => {
2835
+ }, a.value = Y;
2836
+ }, E = (m, p = i.value, k) => {
2862
2837
  const Y = Qr({
2863
- currentMap: i.value,
2864
- currentAliasMap: v.value,
2865
- currentOrder: S.value,
2866
- currentStatusMap: I.value,
2838
+ currentMap: l.value,
2839
+ currentAliasMap: h.value,
2840
+ currentOrder: w.value,
2841
+ currentStatusMap: $.value,
2867
2842
  editingSectionKeys: L.value,
2868
2843
  nextViewModel: m,
2869
2844
  node: p,
2870
2845
  targetKey: k,
2871
- activeSection: s.value
2846
+ activeSection: a.value
2872
2847
  });
2873
- return i.value = Y.sectionMap, v.value = Y.sectionAliasMap, S.value = Y.sectionOrder, I.value = Y.sectionStatusMap, r.value = {
2848
+ return l.value = Y.sectionMap, h.value = Y.sectionAliasMap, w.value = Y.sectionOrder, $.value = Y.sectionStatusMap, s.value = {
2874
2849
  ...m,
2875
- scheme: m.scheme ?? r.value?.scheme ?? null,
2850
+ scheme: m.scheme ?? s.value?.scheme ?? null,
2876
2851
  topNodes: c.value,
2877
2852
  treeNodes: c.value,
2878
2853
  activeNode: p,
2879
2854
  activeSection: Y.matchedSection,
2880
2855
  sections: Y.targetSections,
2881
- sectionMap: i.value
2882
- }, s.value = Y.matchedSection, Y.matchedSection;
2856
+ sectionMap: l.value
2857
+ }, a.value = Y.matchedSection, Y.matchedSection;
2883
2858
  }, d = (m, p) => {
2884
- const k = j(m), Y = k ? i.value[k] : null;
2859
+ const k = j(m), Y = k ? l.value[k] : null;
2885
2860
  if (!k || !Y)
2886
2861
  return;
2887
2862
  const W = p(Y);
2888
- i.value = {
2889
- ...i.value,
2863
+ l.value = {
2864
+ ...l.value,
2890
2865
  [k]: W
2891
- }, s.value = Te(s.value ?? W) === k ? W : s.value, B();
2892
- }, u = async (m = s.value ?? a.value) => {
2893
- const p = re(m), k = N(m) ?? a.value, Y = C(m);
2866
+ }, a.value = Me(a.value ?? W) === k ? W : a.value, B();
2867
+ }, u = async (m = a.value ?? i.value) => {
2868
+ const p = re(m), k = N(m) ?? i.value, Y = C(m);
2894
2869
  if (!k)
2895
2870
  return null;
2896
2871
  if (!e.service.requestOperation)
2897
2872
  throw ze("service.requestOperation is required");
2898
- n.value = !0, l.value = null, R(Y ?? k, { loading: !0, error: null });
2873
+ n.value = !0, r.value = null, R(Y ?? k, { loading: !0, error: null });
2899
2874
  try {
2900
2875
  const W = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : k.infSetList;
2901
2876
  if (W.length === 0)
@@ -2927,22 +2902,22 @@ const na = (e) => {
2927
2902
  };
2928
2903
  return E(ve, k, Y);
2929
2904
  } catch (W) {
2930
- throw l.value = W, R(Y ?? k, { loading: !1, error: W }), W;
2905
+ throw r.value = W, R(Y ?? k, { loading: !1, error: W }), W;
2931
2906
  } finally {
2932
2907
  n.value = !1, R(Y ?? k, { loading: !1 });
2933
2908
  }
2934
- }, w = (m = s.value) => u(m), D = (m = s.value) => {
2909
+ }, _ = (m = a.value) => u(m), D = (m = a.value) => {
2935
2910
  if (!m)
2936
2911
  return null;
2937
2912
  if (!Ue(m) && typeof m != "string")
2938
2913
  return b(m);
2939
2914
  const p = C(m);
2940
- return p ? i.value[v.value[p] ?? p] ?? null : null;
2941
- }, P = async (m = a.value) => m ? (await u(m), r.value) : (r.value = null, s.value = null, i.value = {}, v.value = {}, S.value = [], I.value = {}, null), x = async (m) => {
2915
+ return p ? l.value[h.value[p] ?? p] ?? null : null;
2916
+ }, P = async (m = i.value) => m ? (await u(m), s.value) : (s.value = null, a.value = null, l.value = {}, h.value = {}, w.value = [], $.value = {}, null), x = async (m) => {
2942
2917
  const p = Yr(m);
2943
2918
  if (!p)
2944
2919
  return m.children;
2945
- const k = M(m), Y = await g(p, {
2920
+ const k = T(m), Y = await g(p, {
2946
2921
  type: "openTag",
2947
2922
  requestSource: "sidebar",
2948
2923
  tagId: m.tagId,
@@ -2957,14 +2932,14 @@ const na = (e) => {
2957
2932
  return p.length > 0 && (c.value = Sn(c.value, m.key, p)), p;
2958
2933
  }, q = async (m) => {
2959
2934
  const p = typeof m == "string" ? y(c.value, m) : m;
2960
- return p ? (a.value = p, s.value = null, L.value = [], await K(p), B(r.value?.raw, p), p) : null;
2935
+ return p ? (i.value = p, a.value = null, L.value = [], await K(p), B(s.value?.raw, p), p) : null;
2961
2936
  }, Q = async () => {
2962
2937
  const m = e.service.templateTree;
2963
2938
  if (!m)
2964
2939
  throw ze("service.templateTree is required");
2965
- t.value = !0, l.value = null;
2940
+ t.value = !0, r.value = null;
2966
2941
  try {
2967
- const p = await m(_()), k = Nt(p), Y = await Promise.all(
2942
+ const p = await m(S()), k = Nt(p), Y = await Promise.all(
2968
2943
  k.treeNodes.map(async (Ce) => {
2969
2944
  const ve = await x(Ce);
2970
2945
  return {
@@ -2974,34 +2949,34 @@ const na = (e) => {
2974
2949
  };
2975
2950
  })
2976
2951
  );
2977
- c.value = Y, s.value = null, i.value = {}, v.value = {}, S.value = [], I.value = {}, L.value = [];
2952
+ c.value = Y, a.value = null, l.value = {}, h.value = {}, w.value = [], $.value = {}, L.value = [];
2978
2953
  const W = y(Y, e.initialActiveNodeKey) ?? y(Y);
2979
- return a.value = W, r.value = {
2954
+ return i.value = W, s.value = {
2980
2955
  ...k,
2981
2956
  treeNodes: Y,
2982
2957
  activeNode: W,
2983
- sectionMap: i.value,
2958
+ sectionMap: l.value,
2984
2959
  sections: V.value
2985
2960
  }, c.value;
2986
2961
  } catch (p) {
2987
- throw l.value = p, p;
2962
+ throw r.value = p, p;
2988
2963
  } finally {
2989
2964
  t.value = !1;
2990
2965
  }
2991
- }, T = async () => {
2966
+ }, M = async () => {
2992
2967
  const m = A();
2993
- await w(s.value ?? a.value);
2968
+ await _(a.value ?? i.value);
2994
2969
  const p = V.value.find(
2995
- (k) => Te(k) === m
2970
+ (k) => Me(k) === m
2996
2971
  );
2997
- return p && (s.value = p), B(), r.value;
2998
- }, X = (m = s.value) => {
2972
+ return p && (a.value = p), B(), s.value;
2973
+ }, X = (m = a.value) => {
2999
2974
  const p = j(m);
3000
2975
  return !!(p && L.value.includes(p));
3001
- }, ue = (m = s.value) => {
2976
+ }, ue = (m = a.value) => {
3002
2977
  const p = j(m);
3003
2978
  !p || X(p) || (L.value = [...L.value, p], R(p, { editing: !0 }));
3004
- }, de = (m = s.value) => {
2979
+ }, de = (m = a.value) => {
3005
2980
  const p = j(m);
3006
2981
  p && (L.value = L.value.filter(
3007
2982
  (k) => k !== p
@@ -3065,7 +3040,7 @@ const na = (e) => {
3065
3040
  node: N(W),
3066
3041
  section: W,
3067
3042
  field: ie,
3068
- params: Me(Ke.params),
3043
+ params: Te(Ke.params),
3069
3044
  // searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
3070
3045
  model: he,
3071
3046
  row: Ae,
@@ -3109,11 +3084,11 @@ const na = (e) => {
3109
3084
  // 加载当前节点详情。
3110
3085
  loadDetail: P,
3111
3086
  // 刷新当前详情。
3112
- reloadActiveSection: T,
3087
+ reloadActiveSection: M,
3113
3088
  // 加载指定节点或 section。
3114
3089
  loadSection: u,
3115
3090
  // 重新加载指定节点或 section。
3116
- reloadSection: w,
3091
+ reloadSection: _,
3117
3092
  // 获取指定节点或 section 的缓存数据。
3118
3093
  getSection: D,
3119
3094
  // 获取指定节点或 section 的状态。
@@ -3143,19 +3118,19 @@ const na = (e) => {
3143
3118
  $e(m, W);
3144
3119
  },
3145
3120
  // 调用接口保存 section。
3146
- saveSection: async (m = s.value) => {
3121
+ saveSection: async (m = a.value) => {
3147
3122
  const p = A(m), k = b(m);
3148
3123
  if (!k)
3149
3124
  return null;
3150
3125
  const Y = Hr(k);
3151
3126
  if (!Y)
3152
3127
  throw ze("section.operationInfo.editInfoSet is required");
3153
- o.value = !0, l.value = null, p && p !== Te(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
3128
+ o.value = !0, r.value = null, p && p !== Me(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
3154
3129
  try {
3155
3130
  const {
3156
3131
  tagId: W,
3157
3132
  ...Ce
3158
- } = z(a.value, k), ve = kr(k, Ce), ie = Xr(
3133
+ } = z(i.value, k), ve = kr(k, Ce), ie = Xr(
3159
3134
  k,
3160
3135
  ve.infSetValues ?? [],
3161
3136
  {
@@ -3171,17 +3146,17 @@ const na = (e) => {
3171
3146
  type: "editInfoSet",
3172
3147
  requestSource: "inner",
3173
3148
  tagId: k.requestTagId ?? k.tagId,
3174
- node: a.value,
3149
+ node: i.value,
3175
3150
  section: k,
3176
3151
  params: ve,
3177
3152
  model: k.model
3178
3153
  }
3179
3154
  );
3180
- return de(k), await w(k), he;
3155
+ return de(k), await _(k), he;
3181
3156
  } catch (W) {
3182
- throw l.value = W, p && p !== Te(k) && R(p, { saving: !1, error: W }), R(k, { saving: !1, error: W }), W;
3157
+ throw r.value = W, p && p !== Me(k) && R(p, { saving: !1, error: W }), R(k, { saving: !1, error: W }), W;
3183
3158
  } finally {
3184
- o.value = !1, p && p !== Te(k) && R(p, { saving: !1 }), R(k, { saving: !1 });
3159
+ o.value = !1, p && p !== Me(k) && R(p, { saving: !1 }), R(k, { saving: !1 });
3185
3160
  }
3186
3161
  },
3187
3162
  // 判断编辑态。
@@ -3197,19 +3172,19 @@ const na = (e) => {
3197
3172
  (e.autoLoad ?? !0) && Q();
3198
3173
  }), {
3199
3174
  // 当前 viewModel。
3200
- viewModel: r,
3175
+ viewModel: s,
3201
3176
  // 当前模板树节点。
3202
3177
  nodes: c,
3203
3178
  // 当前已加载 section 列表。
3204
3179
  sections: V,
3205
3180
  // 当前 section 缓存。
3206
- sectionMap: i,
3181
+ sectionMap: l,
3207
3182
  // 当前 section 状态缓存。
3208
- sectionStatusMap: I,
3183
+ sectionStatusMap: $,
3209
3184
  // 当前激活节点。
3210
- activeNode: a,
3185
+ activeNode: i,
3211
3186
  // 当前激活 section。
3212
- activeSection: s,
3187
+ activeSection: a,
3213
3188
  // 给页面消费的状态快照。
3214
3189
  state: f,
3215
3190
  // 给页面消费的操作集合。
@@ -3228,15 +3203,15 @@ const na = (e) => {
3228
3203
  formatOperationParams: {}
3229
3204
  },
3230
3205
  setup(e) {
3231
- const t = e, n = na(t), { viewModel: o, nodes: l, sections: c, activeNode: r, activeSection: a, state: s, actions: i } = n;
3232
- return (v, S) => te(v.$slots, "default", Oe(Be({
3206
+ const t = e, n = na(t), { viewModel: o, nodes: r, sections: c, activeNode: s, activeSection: i, state: a, actions: l } = n;
3207
+ return (h, w) => te(h.$slots, "default", Oe(Be({
3233
3208
  viewModel: J(o),
3234
- nodes: J(l),
3209
+ nodes: J(r),
3235
3210
  sections: J(c),
3236
- activeNode: J(r),
3237
- activeSection: J(a),
3238
- state: J(s),
3239
- actions: J(i),
3211
+ activeNode: J(s),
3212
+ activeSection: J(i),
3213
+ state: J(a),
3214
+ actions: J(l),
3240
3215
  renderConfig: t.renderConfig
3241
3216
  })));
3242
3217
  }
@@ -3281,23 +3256,23 @@ const oa = {
3281
3256
  },
3282
3257
  emits: ["update:modelValue", "change", "loadOptions"],
3283
3258
  setup(e, { emit: t }) {
3284
- const n = e, o = t, l = [
3259
+ const n = e, o = t, r = [
3285
3260
  "textarea",
3286
3261
  "html",
3287
3262
  "code",
3288
3263
  "multi-row"
3289
- ], c = ge(null), r = O(
3264
+ ], c = ge(null), s = O(
3290
3265
  () => kt(n.field)
3291
- ), a = O(
3266
+ ), i = O(
3292
3267
  () => ut(n.field)
3293
- ), s = O(
3268
+ ), a = O(
3294
3269
  () => dr(n.field)
3295
- ), i = O(
3270
+ ), l = O(
3296
3271
  () => n.disabled || n.field.disabled || n.field.readonly
3297
- ), v = O(() => !!n.field.props?.multiple), S = O(
3272
+ ), h = O(() => !!n.field.props?.multiple), w = O(
3298
3273
  () => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
3299
- ), I = O(
3300
- () => l.includes(r.value) ? n.field.props?.resize ?? "vertical" : void 0
3274
+ ), $ = O(
3275
+ () => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0
3301
3276
  ), L = O(() => {
3302
3277
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "")
3303
3278
  return;
@@ -3310,19 +3285,19 @@ const oa = {
3310
3285
  ...u,
3311
3286
  value: j(u)
3312
3287
  }))
3313
- ), _ = O(() => {
3288
+ ), S = O(() => {
3314
3289
  const u = n.field.props?.popperClass ?? n.field.props?.["popper-class"];
3315
- return s.value ? [u, "global-info-field-control__descr-popper"].filter(Boolean).join(" ") : u;
3316
- }), M = O(
3290
+ return a.value ? [u, "global-info-field-control__descr-popper"].filter(Boolean).join(" ") : u;
3291
+ }), T = O(
3317
3292
  () => (
3318
3293
  // select_remote_descr 的浮层样式受业务沙箱前缀约束,默认留在当前应用容器内,避免 teleport 到 body 后样式失效。
3319
- s.value ? !1 : n.field.props?.teleported
3294
+ a.value ? !1 : n.field.props?.teleported
3320
3295
  )
3321
3296
  ), z = O(() => {
3322
- const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], w = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3323
- return u !== void 0 || w !== void 0 ? n.modelValue ?? w ?? !1 : vn(n.modelValue);
3324
- }), g = O(() => r.value === "code" ? 5 : 1), h = O(
3325
- () => r.value === "file" && !_e(n.modelValue)
3297
+ const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], _ = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3298
+ return u !== void 0 || _ !== void 0 ? n.modelValue ?? _ ?? !1 : vn(n.modelValue);
3299
+ }), g = O(() => s.value === "code" ? 5 : 1), v = O(
3300
+ () => s.value === "file" && !_e(n.modelValue)
3326
3301
  ), F = O(
3327
3302
  () => mn(
3328
3303
  n.field,
@@ -3335,14 +3310,14 @@ const oa = {
3335
3310
  n.modelValue,
3336
3311
  Z("common.请选择文件")
3337
3312
  )
3338
- ), A = O(() => n.field.placeholder ? n.field.placeholder : a.value ? Z("common.请输入关键词") : r.value === "select" ? Z("common.请选择") : r.value === "date" ? Z("common.请选择日期") : r.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3313
+ ), A = O(() => n.field.placeholder ? n.field.placeholder : i.value ? Z("common.请输入关键词") : s.value === "select" ? Z("common.请选择") : s.value === "date" ? Z("common.请选择日期") : s.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3339
3314
  let b;
3340
3315
  function j(u) {
3341
3316
  if (Array.isArray(V.value)) {
3342
- const w = V.value.find(
3317
+ const _ = V.value.find(
3343
3318
  (D) => Ze(u, D)
3344
3319
  );
3345
- if (w !== void 0) return w;
3320
+ if (_ !== void 0) return _;
3346
3321
  }
3347
3322
  return Ze(u, V.value) ? V.value : u.value;
3348
3323
  }
@@ -3353,18 +3328,18 @@ const oa = {
3353
3328
  o("change", re(u));
3354
3329
  }
3355
3330
  function re(u) {
3356
- return r.value === "select" || r.value === "select_remote" ? pr(n.field, u) : u;
3331
+ return s.value === "select" || s.value === "select_remote" ? pr(n.field, u) : u;
3357
3332
  }
3358
3333
  function le(u) {
3359
- u && o("loadOptions", a.value ? { searchText: "" } : void 0);
3334
+ u && o("loadOptions", i.value ? { searchText: "" } : void 0);
3360
3335
  }
3361
3336
  function R(u) {
3362
- a.value && (b && clearTimeout(b), b = setTimeout(() => {
3337
+ i.value && (b && clearTimeout(b), b = setTimeout(() => {
3363
3338
  o("loadOptions", { searchText: u });
3364
3339
  }, 300));
3365
3340
  }
3366
3341
  function B() {
3367
- i.value || c.value?.click();
3342
+ l.value || c.value?.click();
3368
3343
  }
3369
3344
  function E(u) {
3370
3345
  Pn(u);
@@ -3373,82 +3348,82 @@ const oa = {
3373
3348
  b && clearTimeout(b);
3374
3349
  });
3375
3350
  function d(u) {
3376
- const w = u.target, D = Array.from(w.files ?? []), P = n.field.props?.multiple ? D : D[0] ?? null;
3351
+ const _ = u.target, D = Array.from(_.files ?? []), P = n.field.props?.multiple ? D : D[0] ?? null;
3377
3352
  C(P), N(P);
3378
3353
  }
3379
- return (u, w) => {
3354
+ return (u, _) => {
3380
3355
  const D = Xt, P = Qt, x = Wt, K = ao, q = so, Q = Zt;
3381
- return r.value === "select" || r.value === "select_remote" ? ($(), H(P, ae({
3356
+ return s.value === "select" || s.value === "select_remote" ? (I(), H(P, ae({
3382
3357
  key: 0,
3383
3358
  class: "global-info-field-control"
3384
3359
  }, u.field.props, {
3385
- "popper-class": _.value,
3386
- teleported: M.value,
3360
+ "popper-class": S.value,
3361
+ teleported: T.value,
3387
3362
  "model-value": V.value,
3388
3363
  placeholder: A.value,
3389
- disabled: i.value,
3390
- "collapse-tags": v.value,
3391
- "collapse-tags-tooltip": v.value,
3364
+ disabled: l.value,
3365
+ "collapse-tags": h.value,
3366
+ "collapse-tags-tooltip": h.value,
3392
3367
  "max-collapse-tags": 1,
3393
- filterable: a.value || !!u.field.props?.filterable,
3394
- remote: a.value || !!u.field.props?.remote,
3395
- "remote-method": a.value ? R : u.field.props?.remoteMethod,
3368
+ filterable: i.value || !!u.field.props?.filterable,
3369
+ remote: i.value || !!u.field.props?.remote,
3370
+ "remote-method": i.value ? R : u.field.props?.remoteMethod,
3396
3371
  clearable: "",
3397
3372
  onVisibleChange: le,
3398
3373
  "onUpdate:modelValue": C,
3399
3374
  onChange: N
3400
3375
  }), {
3401
3376
  default: U(() => [
3402
- ($(!0), G(Se, null, ye(f.value, (T) => ($(), H(D, {
3403
- key: String(T.value),
3404
- label: T.label,
3405
- value: T.value
3377
+ (I(!0), G(Se, null, ye(f.value, (M) => (I(), H(D, {
3378
+ key: String(M.value),
3379
+ label: M.label,
3380
+ value: M.value
3406
3381
  }, {
3407
3382
  default: U(() => [
3408
- s.value ? ($(), G("div", oa, [
3409
- ne("div", ra, oe(T.label), 1),
3410
- T.labelDescr ? ($(), G("div", aa, oe(T.labelDescr), 1)) : fe("", !0)
3383
+ a.value ? (I(), G("div", oa, [
3384
+ ne("div", ra, oe(M.label), 1),
3385
+ M.labelDescr ? (I(), G("div", aa, oe(M.labelDescr), 1)) : fe("", !0)
3411
3386
  ])) : fe("", !0)
3412
3387
  ]),
3413
3388
  _: 2
3414
3389
  }, 1032, ["label", "value"]))), 128))
3415
3390
  ]),
3416
3391
  _: 1
3417
- }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : r.value === "date" ? ($(), H(x, ae({
3392
+ }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? (I(), H(x, ae({
3418
3393
  key: 1,
3419
3394
  class: "global-info-field-control"
3420
3395
  }, u.field.props, {
3421
3396
  "model-value": u.modelValue,
3422
3397
  placeholder: A.value,
3423
- disabled: i.value,
3398
+ disabled: l.value,
3424
3399
  type: "date",
3425
3400
  "value-format": "YYYY-MM-DD",
3426
3401
  "onUpdate:modelValue": C,
3427
3402
  onChange: N
3428
- }), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "number" ? ($(), H(K, ae({
3403
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? (I(), H(K, ae({
3429
3404
  key: 2,
3430
3405
  class: "global-info-field-control"
3431
3406
  }, u.field.props, {
3432
3407
  "model-value": L.value,
3433
3408
  placeholder: A.value,
3434
- disabled: i.value,
3409
+ disabled: l.value,
3435
3410
  "controls-position": "right",
3436
3411
  "onUpdate:modelValue": C,
3437
3412
  onChange: N
3438
- }), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "switch" ? ($(), H(q, ae({
3413
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? (I(), H(q, ae({
3439
3414
  key: 3,
3440
3415
  class: "global-info-field-control global-info-field-control--switch"
3441
3416
  }, u.field.props, {
3442
3417
  "model-value": z.value,
3443
- disabled: i.value,
3418
+ disabled: l.value,
3444
3419
  "onUpdate:modelValue": C,
3445
3420
  onChange: N
3446
- }), null, 16, ["model-value", "disabled"])) : r.value === "file" ? ($(), G("div", {
3421
+ }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? (I(), G("div", {
3447
3422
  key: 4,
3448
3423
  class: We(["global-info-field-control global-info-field-control--file", {
3449
- "is-disabled": i.value,
3450
- "is-empty": !h.value,
3451
- "is-filled": h.value
3424
+ "is-disabled": l.value,
3425
+ "is-empty": !v.value,
3426
+ "is-filled": v.value
3452
3427
  }]),
3453
3428
  onClick: B
3454
3429
  }, [
@@ -3457,43 +3432,43 @@ const oa = {
3457
3432
  ref: c,
3458
3433
  class: "global-info-field-control__file-input",
3459
3434
  type: "file",
3460
- disabled: i.value,
3435
+ disabled: l.value,
3461
3436
  accept: String(u.field.props?.accept ?? ""),
3462
3437
  multiple: !!u.field.props?.multiple,
3463
3438
  onChange: d
3464
3439
  }, null, 40, sa),
3465
- y.value.length ? ($(), G("span", la, [
3466
- ($(!0), G(Se, null, ye(y.value, (T, X) => ($(), G(Se, {
3467
- key: T.key
3440
+ y.value.length ? (I(), G("span", la, [
3441
+ (I(!0), G(Se, null, ye(y.value, (M, X) => (I(), G(Se, {
3442
+ key: M.key
3468
3443
  }, [
3469
- T.action ? ($(), G("button", {
3444
+ M.action ? (I(), G("button", {
3470
3445
  key: 0,
3471
3446
  class: "global-info-field-control__file-preview",
3472
3447
  type: "button",
3473
- onClick: Ut((ue) => E(T), ["stop", "prevent"])
3474
- }, oe(T.text), 9, ia)) : ($(), G("span", ca, oe(T.text), 1)),
3475
- X < y.value.length - 1 ? ($(), G("span", ua, "、")) : fe("", !0)
3448
+ onClick: Ut((ue) => E(M), ["stop", "prevent"])
3449
+ }, oe(M.text), 9, ia)) : (I(), G("span", ca, oe(M.text), 1)),
3450
+ X < y.value.length - 1 ? (I(), G("span", ua, "、")) : fe("", !0)
3476
3451
  ], 64))), 128))
3477
- ])) : h.value ? ($(), G("span", da, oe(F.value), 1)) : ($(), G("span", fa, oe(J(Z)("common.上传")), 1))
3478
- ], 2)) : r.value === "empty" ? ($(), H(Q, {
3452
+ ])) : v.value ? (I(), G("span", da, oe(F.value), 1)) : (I(), G("span", fa, oe(J(Z)("common.上传")), 1))
3453
+ ], 2)) : s.value === "empty" ? (I(), H(Q, {
3479
3454
  key: 5,
3480
3455
  class: "global-info-field-control",
3481
3456
  "model-value": "",
3482
3457
  disabled: "",
3483
3458
  placeholder: "-"
3484
- })) : ($(), H(Q, ae({
3459
+ })) : (I(), H(Q, ae({
3485
3460
  key: 6,
3486
3461
  class: ["global-info-field-control", {
3487
- "global-info-field-control--textarea": l.includes(r.value),
3488
- "global-info-field-control--code": r.value === "code"
3462
+ "global-info-field-control--textarea": r.includes(s.value),
3463
+ "global-info-field-control--code": s.value === "code"
3489
3464
  }]
3490
3465
  }, u.field.props, {
3491
- "model-value": S.value,
3466
+ "model-value": w.value,
3492
3467
  placeholder: A.value,
3493
- disabled: i.value,
3494
- type: l.includes(r.value) ? "textarea" : "text",
3495
- rows: l.includes(r.value) ? g.value : void 0,
3496
- resize: I.value,
3468
+ disabled: l.value,
3469
+ type: r.includes(s.value) ? "textarea" : "text",
3470
+ rows: r.includes(s.value) ? g.value : void 0,
3471
+ resize: $.value,
3497
3472
  "onUpdate:modelValue": C,
3498
3473
  onChange: N
3499
3474
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
@@ -3514,42 +3489,42 @@ const oa = {
3514
3489
  emptyText: { default: "-" }
3515
3490
  },
3516
3491
  setup(e) {
3517
- const t = e, n = O(() => Mt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), l = O(() => mn(t.field, t.value, t.emptyText)), c = O(() => hn(t.field, t.value, t.emptyText));
3518
- function r(a) {
3519
- Pn(a);
3492
+ 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));
3493
+ function s(i) {
3494
+ Pn(i);
3520
3495
  }
3521
- return (a, s) => n.value === "html" && !o.value ? ($(), G("span", {
3496
+ return (i, a) => n.value === "html" && !o.value ? (I(), G("span", {
3522
3497
  key: 0,
3523
3498
  class: "global-info-field-value global-info-field-value--html",
3524
- innerHTML: l.value
3525
- }, null, 8, ma)) : n.value === "code" && !o.value ? ($(), G("pre", va, oe(l.value), 1)) : c.value.length ? ($(), G("span", ha, [
3526
- ($(!0), G(Se, null, ye(c.value, (i, v) => ($(), G(Se, {
3527
- key: i.key
3499
+ innerHTML: r.value
3500
+ }, null, 8, ma)) : n.value === "code" && !o.value ? (I(), G("pre", va, oe(r.value), 1)) : c.value.length ? (I(), G("span", ha, [
3501
+ (I(!0), G(Se, null, ye(c.value, (l, h) => (I(), G(Se, {
3502
+ key: l.key
3528
3503
  }, [
3529
- i.action ? ($(), G("button", {
3504
+ l.action ? (I(), G("button", {
3530
3505
  key: 0,
3531
3506
  class: "global-info-field-value__attachment-preview",
3532
3507
  type: "button",
3533
- onClick: (S) => r(i)
3534
- }, oe(i.text), 9, ga)) : ($(), G("span", ya, oe(i.text), 1)),
3535
- v < c.value.length - 1 ? ($(), G("span", ba, "、")) : fe("", !0)
3508
+ onClick: (w) => s(l)
3509
+ }, oe(l.text), 9, ga)) : (I(), G("span", ya, oe(l.text), 1)),
3510
+ h < c.value.length - 1 ? (I(), G("span", ba, "、")) : fe("", !0)
3536
3511
  ], 64))), 128))
3537
- ])) : ($(), G("span", {
3512
+ ])) : (I(), G("span", {
3538
3513
  key: 3,
3539
3514
  class: We(["global-info-field-value", {
3540
3515
  "global-info-field-value--multi-row": n.value === "multi-row",
3541
3516
  "global-info-field-value--file": n.value === "file" && !o.value
3542
3517
  }])
3543
- }, oe(l.value), 3));
3518
+ }, oe(r.value), 3));
3544
3519
  }
3545
- }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-0b0c0bd4"]]);
3520
+ }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-efe9888d"]]);
3546
3521
  function _a(e) {
3547
3522
  const t = kt(e);
3548
3523
  return (t === "select" || t === "select_remote") && !!e.interface;
3549
3524
  }
3550
3525
  function st(e, t, n = {}, o = "") {
3551
- const l = t.key || t.id || t.code, r = Ne(t).map((a) => `${a}:${String(n[a] ?? "")}`).join("|");
3552
- return [e, o, l, r].join("::");
3526
+ const r = t.key || t.id || t.code, s = Ne(t).map((i) => `${i}:${String(n[i] ?? "")}`).join("|");
3527
+ return [e, o, r, s].join("::");
3553
3528
  }
3554
3529
  function lt(e, t, n) {
3555
3530
  return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Ne(e).length === 0 : !1;
@@ -3591,35 +3566,35 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3591
3566
  renderConfig: {}
3592
3567
  },
3593
3568
  setup(e) {
3594
- const t = e, n = Le(), o = O(() => t.model ?? t.section.model), l = /* @__PURE__ */ new Map(), c = O(() => ft(
3569
+ const t = e, n = Le(), o = O(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), c = O(() => ft(
3595
3570
  t.section.fields,
3596
3571
  t.section,
3597
3572
  t.renderConfig,
3598
3573
  { values: o.value }
3599
- )), r = ln(
3600
- async (h, F, y) => t.actions.loadFieldOptions(t.section, h, F, y),
3601
- (h) => `${t.section.key}:${M(h)}`
3574
+ )), s = ln(
3575
+ async (v, F, y) => t.actions.loadFieldOptions(t.section, v, F, y),
3576
+ (v) => `${t.section.key}:${T(v)}`
3602
3577
  );
3603
- function a(h, F) {
3604
- const y = { ...o.value, [h.code]: F };
3605
- (h.cascadeClearFields ?? []).forEach((A) => {
3578
+ function i(v, F) {
3579
+ const y = { ...o.value, [v.code]: F };
3580
+ (v.cascadeClearFields ?? []).forEach((A) => {
3606
3581
  y[A] = "";
3607
- }), t.onUpdateModel?.(y), t.onUpdateModel || t.actions.updateField(t.section, h, F), s(h, F, y), L(y, h);
3582
+ }), t.onUpdateModel?.(y), t.onUpdateModel || t.actions.updateField(t.section, v, F), a(v, F, y), L(y, v);
3608
3583
  }
3609
- function s(h, F, y) {
3584
+ function a(v, F, y) {
3610
3585
  const A = t.renderConfig?.onFieldBusinessChange;
3611
3586
  if (A)
3612
3587
  try {
3613
- const b = i(h, F), j = {
3614
- field: h,
3588
+ const b = l(v, F), j = {
3589
+ field: v,
3615
3590
  value: F,
3616
3591
  section: t.section,
3617
3592
  model: y,
3618
3593
  values: y,
3619
3594
  node: t.node,
3620
3595
  activeNode: t.node,
3621
- sections: v(),
3622
- sectionValues: S(t.section, y),
3596
+ sections: h(),
3597
+ sectionValues: w(t.section, y),
3623
3598
  actions: t.actions,
3624
3599
  selectedOption: b[0],
3625
3600
  selectedOptions: b
@@ -3631,53 +3606,53 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3631
3606
  console.error("[GlobalInfoFormRenderer] field business change failed", b);
3632
3607
  }
3633
3608
  }
3634
- function i(h, F) {
3635
- const y = dt(h, F);
3636
- return (h.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
3609
+ function l(v, F) {
3610
+ const y = dt(v, F);
3611
+ return (v.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
3637
3612
  }
3638
- function v() {
3613
+ function h() {
3639
3614
  return Object.values(t.state.sectionMap);
3640
3615
  }
3641
- function S(h, F) {
3642
- const A = v().flatMap((b) => {
3643
- const j = b.key === h.key ? F : b.renderType === "table" ? b.rows : b.model;
3616
+ function w(v, F) {
3617
+ const A = h().flatMap((b) => {
3618
+ const j = b.key === v.key ? F : b.renderType === "table" ? b.rows : b.model;
3644
3619
  return [b.key, b.id, b.setId, b.infSetId, b.code].filter(Boolean).map((C) => [String(C), j]);
3645
3620
  });
3646
3621
  return Object.fromEntries(A);
3647
3622
  }
3648
- async function I(h, F = {}, y = o.value) {
3649
- const A = y, b = M(h), j = st(t.section.key, h, A), C = l.get(b);
3650
- if (!An(F) && lt(h, C, j)) {
3651
- l.set(b, j);
3623
+ async function $(v, F = {}, y = o.value) {
3624
+ const A = y, b = T(v), j = st(t.section.key, v, A), C = r.get(b);
3625
+ if (!An(F) && lt(v, C, j)) {
3626
+ r.set(b, j);
3652
3627
  return;
3653
3628
  }
3654
3629
  try {
3655
3630
  if (F.searchText !== void 0) {
3656
- await r(h, A, F);
3631
+ await s(v, A, F);
3657
3632
  return;
3658
3633
  }
3659
- await t.actions.loadFieldOptions(t.section, h, A, F), l.set(b, j);
3634
+ await t.actions.loadFieldOptions(t.section, v, A, F), r.set(b, j);
3660
3635
  } catch (re) {
3661
3636
  console.error("[GlobalInfoFormRenderer] load field options failed", re);
3662
3637
  }
3663
3638
  }
3664
- async function L(h = o.value, F) {
3639
+ async function L(v = o.value, F) {
3665
3640
  for (const y of c.value) {
3666
3641
  if (F && !Rn(y, F)) continue;
3667
- const A = Nn(y, h);
3642
+ const A = Nn(y, v);
3668
3643
  if (!z(y, A)) continue;
3669
- const b = st(t.section.key, y, h), j = M(y), C = l.get(j);
3644
+ const b = st(t.section.key, y, v), j = T(y), C = r.get(j);
3670
3645
  if (lt(y, C, b)) {
3671
- l.set(j, b);
3646
+ r.set(j, b);
3672
3647
  continue;
3673
3648
  }
3674
- C !== b && await I(y, xn(y, A), h);
3649
+ C !== b && await $(y, xn(y, A), v);
3675
3650
  }
3676
3651
  }
3677
3652
  Ee(
3678
3653
  () => t.section.key,
3679
3654
  () => {
3680
- l.clear();
3655
+ r.clear();
3681
3656
  }
3682
3657
  ), Ee(
3683
3658
  () => t.editing,
@@ -3686,10 +3661,10 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3686
3661
  },
3687
3662
  { immediate: !0 }
3688
3663
  );
3689
- function V(h) {
3690
- const F = o.value[h.code];
3664
+ function V(v) {
3665
+ const F = o.value[v.code];
3691
3666
  return {
3692
- field: h,
3667
+ field: v,
3693
3668
  section: t.section,
3694
3669
  sectionView: t.section,
3695
3670
  node: t.node,
@@ -3698,30 +3673,30 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3698
3673
  value: F,
3699
3674
  state: t.state,
3700
3675
  actions: t.actions,
3701
- updateModelValue: (y) => a(h, y)
3676
+ updateModelValue: (y) => i(v, y)
3702
3677
  };
3703
3678
  }
3704
- function f(h) {
3705
- const F = String(h.code || "").trim(), y = F ? `field-${F}` : "";
3679
+ function f(v) {
3680
+ const F = String(v.code || "").trim(), y = F ? `field-${F}` : "";
3706
3681
  if (y && n[y]) return y;
3707
3682
  const A = y.toLowerCase();
3708
3683
  return A !== y && n[A] ? A : "";
3709
3684
  }
3710
- function _(h) {
3711
- return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
3685
+ function S(v) {
3686
+ return v.span ? Math.min(Math.max(v.span, 1), 24) : 6;
3712
3687
  }
3713
- function M(h) {
3714
- return h.key || h.id || h.code;
3688
+ function T(v) {
3689
+ return v.key || v.id || v.code;
3715
3690
  }
3716
- function z(h, F) {
3717
- return zn(h, F, t.editing);
3691
+ function z(v, F) {
3692
+ return zn(v, F, t.editing);
3718
3693
  }
3719
- function g(h) {
3720
- return h.required || h.isRequired;
3694
+ function g(v) {
3695
+ return v.required || v.isRequired;
3721
3696
  }
3722
- return (h, F) => {
3697
+ return (v, F) => {
3723
3698
  const y = en, A = io, b = lo, j = tn;
3724
- return $(), H(j, {
3699
+ return I(), H(j, {
3725
3700
  class: "global-info-form-renderer",
3726
3701
  model: o.value,
3727
3702
  "label-position": "top"
@@ -3729,9 +3704,9 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3729
3704
  default: U(() => [
3730
3705
  Ie(b, { gutter: 24 }, {
3731
3706
  default: U(() => [
3732
- ($(!0), G(Se, null, ye(c.value, (C) => ($(), H(A, {
3733
- key: M(C),
3734
- span: _(C)
3707
+ (I(!0), G(Se, null, ye(c.value, (C) => (I(), H(A, {
3708
+ key: T(C),
3709
+ span: S(C)
3735
3710
  }, {
3736
3711
  default: U(() => [
3737
3712
  Ie(y, ae({
@@ -3740,26 +3715,26 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3740
3715
  }, C.formItemProps), {
3741
3716
  label: U(() => [
3742
3717
  ne("span", wa, [
3743
- g(C) ? ($(), G("span", Ia, "*")) : fe("", !0),
3718
+ g(C) ? (I(), G("span", Ia, "*")) : fe("", !0),
3744
3719
  He(" " + oe(C.label), 1)
3745
3720
  ])
3746
3721
  ]),
3747
3722
  default: U(() => [
3748
- f(C) ? te(h.$slots, f(C), ae({
3723
+ f(C) ? te(v.$slots, f(C), ae({
3749
3724
  key: 0,
3750
3725
  ref_for: !0
3751
- }, V(C)), void 0, !0) : h.editing && !C.readonly ? ($(), H(Vn, {
3726
+ }, V(C)), void 0, !0) : v.editing && !C.readonly ? (I(), H(Vn, {
3752
3727
  key: 1,
3753
3728
  field: C,
3754
3729
  "model-value": o.value[C.code],
3755
- section: h.section,
3756
- onLoadOptions: (N) => I(C, N),
3757
- "onUpdate:modelValue": (N) => a(C, N)
3758
- }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : ($(), H(jn, {
3730
+ section: v.section,
3731
+ onLoadOptions: (N) => $(C, N),
3732
+ "onUpdate:modelValue": (N) => i(C, N)
3733
+ }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
3759
3734
  key: 2,
3760
3735
  field: C,
3761
3736
  value: o.value[C.code],
3762
- section: h.section
3737
+ section: v.section
3763
3738
  }, null, 8, ["field", "value", "section"]))
3764
3739
  ]),
3765
3740
  _: 2
@@ -3775,7 +3750,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3775
3750
  }, 8, ["model"]);
3776
3751
  };
3777
3752
  }
3778
- }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-54b269f1"]]), ka = /* @__PURE__ */ pe({
3753
+ }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-a2728a86"]]), ka = /* @__PURE__ */ pe({
3779
3754
  name: "GlobalInfoDeleteConfirm",
3780
3755
  __name: "GlobalInfoDeleteConfirm",
3781
3756
  props: {
@@ -3787,14 +3762,14 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3787
3762
  setup(e) {
3788
3763
  return (t, n) => {
3789
3764
  const o = co;
3790
- return $(), H(o, {
3765
+ return I(), H(o, {
3791
3766
  title: t.title,
3792
3767
  "confirm-button-text": t.confirmText,
3793
3768
  "cancel-button-text": t.cancelText,
3794
3769
  width: "240",
3795
3770
  "popper-class": "global-info-delete-confirm",
3796
- onConfirm: n[0] || (n[0] = (l) => t.$emit("confirm")),
3797
- onCancel: n[1] || (n[1] = (l) => t.$emit("cancel"))
3771
+ onConfirm: n[0] || (n[0] = (r) => t.$emit("confirm")),
3772
+ onCancel: n[1] || (n[1] = (r) => t.$emit("cancel"))
3798
3773
  }, {
3799
3774
  reference: U(() => [
3800
3775
  te(t.$slots, "default")
@@ -3803,7 +3778,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3803
3778
  }, 8, ["title", "confirm-button-text", "cancel-button-text"]);
3804
3779
  };
3805
3780
  }
3806
- }), Ma = { class: "global-info-table-renderer__table-scroll" }, Ta = { class: "global-info-table-renderer__header" }, Oa = {
3781
+ }), Ta = { class: "global-info-table-renderer__table-scroll" }, Ma = { class: "global-info-table-renderer__header" }, Oa = {
3807
3782
  key: 0,
3808
3783
  class: "global-info-table-renderer__required"
3809
3784
  }, Da = /* @__PURE__ */ pe({
@@ -3822,31 +3797,31 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3822
3797
  setup(e) {
3823
3798
  const t = e, n = Le(), o = O(
3824
3799
  () => t.section.fields.some((d) => Vt(d))
3825
- ), l = O(() => o.value), c = O(
3800
+ ), r = O(() => o.value), c = O(
3826
3801
  () => t.renderConfig?.sequenceLabel ?? Z("common.序号")
3827
- ), r = O(
3802
+ ), s = O(
3828
3803
  () => t.renderConfig?.sequenceWidth ?? 56
3829
- ), a = O(() => {
3804
+ ), i = O(() => {
3830
3805
  const d = t.renderConfig?.sequenceStart;
3831
3806
  return typeof d == "number" && Number.isFinite(d) ? d : 1;
3832
- }), s = O(() => {
3807
+ }), a = O(() => {
3833
3808
  const d = ft(
3834
3809
  t.section.fields,
3835
3810
  t.section,
3836
3811
  t.renderConfig,
3837
3812
  { rows: t.section.rows, values: t.section.model }
3838
3813
  );
3839
- return l.value ? d.filter((u) => !re(u)) : d;
3840
- }), i = /* @__PURE__ */ new Map(), v = ln(
3841
- async (d, u, w) => t.actions.loadFieldOptions(t.section, d, u, w),
3814
+ return r.value ? d.filter((u) => !re(u)) : d;
3815
+ }), l = /* @__PURE__ */ new Map(), h = ln(
3816
+ async (d, u, _) => t.actions.loadFieldOptions(t.section, d, u, _),
3842
3817
  (d, u) => `${t.section.key}:${B(u)}:${C(d)}`
3843
3818
  );
3844
- function S(d) {
3819
+ function w(d) {
3845
3820
  t.actions.deleteRow(t.section, d);
3846
3821
  }
3847
- function I(d, u) {
3848
- const w = t.renderConfig?.rowDeleteVisibleRule;
3849
- return t.showDelete && (typeof w == "function" ? w({
3822
+ function $(d, u) {
3823
+ const _ = t.renderConfig?.rowDeleteVisibleRule;
3824
+ return t.showDelete && (typeof _ == "function" ? _({
3850
3825
  section: t.section,
3851
3826
  row: d,
3852
3827
  rowIndex: u,
@@ -3855,43 +3830,43 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3855
3830
  actions: t.actions
3856
3831
  }) : d.allowDelete !== !1);
3857
3832
  }
3858
- function L(d, u, w, D) {
3859
- const P = t.section.rows.slice(), x = w.cascadeClearFields ?? [], K = {
3833
+ function L(d, u, _, D) {
3834
+ const P = t.section.rows.slice(), x = _.cascadeClearFields ?? [], K = {
3860
3835
  ...d,
3861
3836
  __rowKey: B(d),
3862
- [w.code]: D
3837
+ [_.code]: D
3863
3838
  };
3864
3839
  x.forEach((q) => {
3865
3840
  K[q] = "";
3866
3841
  }), P[u] = {
3867
3842
  ...K
3868
- }, t.actions.updateTableRows(t.section, P), V(w, D, K, u, P), g(w, K);
3843
+ }, t.actions.updateTableRows(t.section, P), V(_, D, K, u, P), g(_, K);
3869
3844
  }
3870
- function V(d, u, w, D, P) {
3845
+ function V(d, u, _, D, P) {
3871
3846
  const x = t.renderConfig?.onFieldBusinessChange;
3872
3847
  if (x)
3873
3848
  try {
3874
- const K = f(d, u), q = { ...t.section.model, ...w }, Q = {
3849
+ const K = f(d, u), q = { ...t.section.model, ..._ }, Q = {
3875
3850
  field: d,
3876
3851
  value: u,
3877
3852
  section: t.section,
3878
3853
  model: q,
3879
3854
  values: q,
3880
- row: w,
3855
+ row: _,
3881
3856
  rowIndex: D,
3882
3857
  rows: P,
3883
3858
  node: t.node,
3884
3859
  activeNode: t.node,
3885
- sections: _(),
3886
- sectionValues: M(t.section, P),
3860
+ sections: S(),
3861
+ sectionValues: T(t.section, P),
3887
3862
  actions: t.actions,
3888
3863
  selectedOption: K[0],
3889
3864
  selectedOptions: K
3890
3865
  };
3891
- Promise.resolve(x(Q)).catch((T) => {
3866
+ Promise.resolve(x(Q)).catch((M) => {
3892
3867
  console.error(
3893
3868
  "[GlobalInfoTableRenderer] field business change failed",
3894
- T
3869
+ M
3895
3870
  );
3896
3871
  });
3897
3872
  } catch (K) {
@@ -3902,16 +3877,16 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3902
3877
  }
3903
3878
  }
3904
3879
  function f(d, u) {
3905
- const w = dt(d, u);
3880
+ const _ = dt(d, u);
3906
3881
  return (d.options ?? []).filter(
3907
- (D) => w.some((P) => Ze(D, P))
3882
+ (D) => _.some((P) => Ze(D, P))
3908
3883
  );
3909
3884
  }
3910
- function _() {
3885
+ function S() {
3911
3886
  return Object.values(t.state.sectionMap);
3912
3887
  }
3913
- function M(d, u) {
3914
- const D = _().flatMap((P) => {
3888
+ function T(d, u) {
3889
+ const D = S().flatMap((P) => {
3915
3890
  const x = P.key === d.key ? u : P.renderType === "table" ? P.rows : P.model;
3916
3891
  return [
3917
3892
  P.key,
@@ -3923,37 +3898,37 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3923
3898
  });
3924
3899
  return Object.fromEntries(D);
3925
3900
  }
3926
- async function z(d, u, w = {}, D = u) {
3901
+ async function z(d, u, _ = {}, D = u) {
3927
3902
  const P = B(D), x = `${P}:${C(d)}`, K = st(
3928
3903
  t.section.key,
3929
3904
  d,
3930
3905
  D,
3931
3906
  P
3932
- ), q = i.get(x);
3933
- if (!An(w) && lt(d, q, K)) {
3934
- i.set(x, K);
3907
+ ), q = l.get(x);
3908
+ if (!An(_) && lt(d, q, K)) {
3909
+ l.set(x, K);
3935
3910
  return;
3936
3911
  }
3937
3912
  try {
3938
- if (w.searchText !== void 0) {
3939
- await v(d, D, w);
3913
+ if (_.searchText !== void 0) {
3914
+ await h(d, D, _);
3940
3915
  return;
3941
3916
  }
3942
3917
  await t.actions.loadFieldOptions(
3943
3918
  t.section,
3944
3919
  d,
3945
3920
  D,
3946
- w
3947
- ), i.set(x, K);
3948
- } catch (T) {
3949
- console.error("[GlobalInfoTableRenderer] load field options failed", T);
3921
+ _
3922
+ ), l.set(x, K);
3923
+ } catch (M) {
3924
+ console.error("[GlobalInfoTableRenderer] load field options failed", M);
3950
3925
  }
3951
3926
  }
3952
3927
  async function g(d, u) {
3953
- const w = u ? [u] : t.section.rows;
3954
- for (const D of w) {
3928
+ const _ = u ? [u] : t.section.rows;
3929
+ for (const D of _) {
3955
3930
  const P = B(D);
3956
- for (const x of s.value) {
3931
+ for (const x of a.value) {
3957
3932
  if (d && !Rn(x, d))
3958
3933
  continue;
3959
3934
  const K = Nn(x, D);
@@ -3963,12 +3938,12 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3963
3938
  x,
3964
3939
  D,
3965
3940
  P
3966
- ), Q = `${P}:${C(x)}`, T = i.get(Q);
3967
- if (lt(x, T, q)) {
3968
- i.set(Q, q);
3941
+ ), Q = `${P}:${C(x)}`, M = l.get(Q);
3942
+ if (lt(x, M, q)) {
3943
+ l.set(Q, q);
3969
3944
  continue;
3970
3945
  }
3971
- T !== q && await z(
3946
+ M !== q && await z(
3972
3947
  x,
3973
3948
  D,
3974
3949
  xn(x, K)
@@ -3976,7 +3951,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3976
3951
  }
3977
3952
  }
3978
3953
  }
3979
- function h(d, u, w) {
3954
+ function v(d, u, _) {
3980
3955
  const D = u[d.code];
3981
3956
  return {
3982
3957
  field: d,
@@ -3984,20 +3959,20 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3984
3959
  sectionView: t.section,
3985
3960
  node: t.node,
3986
3961
  row: u,
3987
- rowIndex: w,
3962
+ rowIndex: _,
3988
3963
  editing: t.editing,
3989
3964
  modelValue: D,
3990
3965
  value: D,
3991
3966
  state: t.state,
3992
3967
  actions: t.actions,
3993
- updateModelValue: (P) => L(u, w, d, P)
3968
+ updateModelValue: (P) => L(u, _, d, P)
3994
3969
  };
3995
3970
  }
3996
3971
  function F(d) {
3997
- const u = String(d.code || "").trim(), w = u ? `field-${u}` : "";
3998
- if (w && n[w]) return w;
3999
- const D = w.toLowerCase();
4000
- return D !== w && n[D] ? D : "";
3972
+ const u = String(d.code || "").trim(), _ = u ? `field-${u}` : "";
3973
+ if (_ && n[_]) return _;
3974
+ const D = _.toLowerCase();
3975
+ return D !== _ && n[D] ? D : "";
4001
3976
  }
4002
3977
  function y(d) {
4003
3978
  return !d.readonly && !d.disabled;
@@ -4016,7 +3991,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4016
3991
  return d.key || d.id || d.code;
4017
3992
  }
4018
3993
  function N(d) {
4019
- return a.value + d;
3994
+ return i.value + d;
4020
3995
  }
4021
3996
  function re(d) {
4022
3997
  return Vt(d);
@@ -4027,11 +4002,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4027
4002
  const u = d.__rowKey ?? d.key ?? d.id ?? d.setId ?? d.infSetId;
4028
4003
  if (u != null && u !== "")
4029
4004
  return String(u);
4030
- const w = d, D = R.get(w);
4005
+ const _ = d, D = R.get(_);
4031
4006
  if (D) return D;
4032
4007
  le += 1;
4033
4008
  const P = `local-${le}`;
4034
- return R.set(w, P), P;
4009
+ return R.set(_, P), P;
4035
4010
  }
4036
4011
  function E(d) {
4037
4012
  return d.required || d.isRequired;
@@ -4039,7 +4014,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4039
4014
  return Ee(
4040
4015
  () => t.section.key,
4041
4016
  () => {
4042
- i.clear();
4017
+ l.clear();
4043
4018
  }
4044
4019
  ), Ee(
4045
4020
  () => t.editing,
@@ -4048,11 +4023,11 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4048
4023
  },
4049
4024
  { immediate: !0 }
4050
4025
  ), (d, u) => {
4051
- const w = on, D = eo("Delete"), P = Jt, x = $t, K = nn;
4052
- return $(), G("div", {
4026
+ const _ = on, D = eo("Delete"), P = Jt, x = $t, K = nn;
4027
+ return I(), G("div", {
4053
4028
  class: We(["global-info-table-renderer", { "global-info-table-renderer--editing": d.editing }])
4054
4029
  }, [
4055
- ne("div", Ma, [
4030
+ ne("div", Ta, [
4056
4031
  Ie(K, {
4057
4032
  class: "global-info-table-renderer__table",
4058
4033
  data: d.section.rows,
@@ -4061,14 +4036,14 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4061
4036
  "row-key": B
4062
4037
  }, {
4063
4038
  default: U(() => [
4064
- l.value ? ($(), H(w, {
4039
+ r.value ? (I(), H(_, {
4065
4040
  key: 0,
4066
4041
  type: "index",
4067
4042
  label: c.value,
4068
- width: r.value,
4043
+ width: s.value,
4069
4044
  index: N
4070
4045
  }, null, 8, ["label", "width"])) : fe("", !0),
4071
- ($(!0), G(Se, null, ye(s.value, (q) => ($(), H(w, {
4046
+ (I(!0), G(Se, null, ye(a.value, (q) => (I(), H(_, {
4072
4047
  key: C(q),
4073
4048
  prop: q.code,
4074
4049
  label: q.label,
@@ -4076,45 +4051,45 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4076
4051
  "min-width": j(q)
4077
4052
  }, {
4078
4053
  header: U(() => [
4079
- ne("span", Ta, [
4080
- E(q) ? ($(), G("span", Oa, "*")) : fe("", !0),
4054
+ ne("span", Ma, [
4055
+ E(q) ? (I(), G("span", Oa, "*")) : fe("", !0),
4081
4056
  ne("span", null, oe(q.label), 1)
4082
4057
  ])
4083
4058
  ]),
4084
- default: U(({ row: Q, $index: T }) => [
4059
+ default: U(({ row: Q, $index: M }) => [
4085
4060
  F(q) ? te(d.$slots, F(q), ae({
4086
4061
  key: 0,
4087
4062
  ref_for: !0
4088
- }, h(q, Q, T)), void 0, !0) : d.editing && y(q) ? ($(), H(Vn, {
4063
+ }, v(q, Q, M)), void 0, !0) : d.editing && y(q) ? (I(), H(Vn, {
4089
4064
  key: 1,
4090
4065
  field: q,
4091
4066
  "model-value": Q[q.code],
4092
4067
  section: d.section,
4093
4068
  row: Q,
4094
- "row-index": T,
4069
+ "row-index": M,
4095
4070
  onLoadOptions: (X) => z(q, Q, X),
4096
- "onUpdate:modelValue": (X) => L(Q, T, q, X)
4097
- }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : ($(), H(jn, {
4071
+ "onUpdate:modelValue": (X) => L(Q, M, q, X)
4072
+ }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (I(), H(jn, {
4098
4073
  key: 2,
4099
4074
  field: q,
4100
4075
  value: Q[q.code],
4101
4076
  section: d.section,
4102
4077
  row: Q,
4103
- "row-index": T
4078
+ "row-index": M
4104
4079
  }, null, 8, ["field", "value", "section", "row", "row-index"]))
4105
4080
  ]),
4106
4081
  _: 2
4107
4082
  }, 1032, ["prop", "label", "width", "min-width"]))), 128)),
4108
- d.editing ? ($(), H(w, {
4083
+ d.editing ? (I(), H(_, {
4109
4084
  key: 1,
4110
4085
  label: J(Z)("common.操作"),
4111
4086
  width: "104",
4112
4087
  fixed: "right"
4113
4088
  }, {
4114
4089
  default: U(({ row: q, $index: Q }) => [
4115
- I(q, Q) ? ($(), H(ka, {
4090
+ $(q, Q) ? (I(), H(ka, {
4116
4091
  key: 0,
4117
- onConfirm: (T) => S(Q)
4092
+ onConfirm: (M) => w(Q)
4118
4093
  }, {
4119
4094
  default: U(() => [
4120
4095
  Ie(x, {
@@ -4146,7 +4121,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4146
4121
  ], 2);
4147
4122
  };
4148
4123
  }
4149
- }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-7dc68187"]]), Ba = /* @__PURE__ */ pe({
4124
+ }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-ef398e69"]]), Ba = /* @__PURE__ */ pe({
4150
4125
  name: "GlobalInfoAutoRenderer",
4151
4126
  __name: "GlobalInfoAutoRenderer",
4152
4127
  props: {
@@ -4158,7 +4133,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4158
4133
  renderConfig: {}
4159
4134
  },
4160
4135
  setup(e) {
4161
- return (t, n) => t.section.renderType === "table" ? ($(), H(Fa, {
4136
+ return (t, n) => t.section.renderType === "table" ? (I(), H(Fa, {
4162
4137
  key: 0,
4163
4138
  section: t.section,
4164
4139
  node: t.node,
@@ -4166,7 +4141,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4166
4141
  state: t.state,
4167
4142
  actions: t.actions,
4168
4143
  "render-config": t.renderConfig
4169
- }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : ($(), H(Ca, {
4144
+ }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (I(), H(Ca, {
4170
4145
  key: 1,
4171
4146
  section: t.section,
4172
4147
  node: t.node,
@@ -4183,12 +4158,12 @@ function qn(e) {
4183
4158
  function Gn(e, t) {
4184
4159
  return qn(e) || Kn(t?.code);
4185
4160
  }
4186
- function Tt(e, t, n) {
4161
+ function Mt(e, t, n) {
4187
4162
  if (!n) return "";
4188
4163
  const o = `${t}-${n}`;
4189
4164
  if (e[o]) return o;
4190
- const l = o.toLowerCase();
4191
- return l !== o && e[l] ? l : "";
4165
+ const r = o.toLowerCase();
4166
+ return r !== o && e[r] ? r : "";
4192
4167
  }
4193
4168
  function Kn(e) {
4194
4169
  return typeof e == "string" ? e.trim() : "";
@@ -4213,41 +4188,41 @@ const Ea = /* @__PURE__ */ pe({
4213
4188
  values: t.section.model,
4214
4189
  rows: t.section.renderType === "table" ? t.section.rows : void 0
4215
4190
  }
4216
- )), l = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), r = O(() => {
4217
- const s = Tt(
4191
+ )), r = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), s = O(() => {
4192
+ const a = Mt(
4218
4193
  n,
4219
4194
  "section",
4220
4195
  Gn(t.node ?? {}, t.section)
4221
- ), i = a(t.section.renderType);
4196
+ ), l = i(t.section.renderType);
4222
4197
  return [
4223
- s,
4224
- i,
4198
+ a,
4199
+ l,
4225
4200
  "default"
4226
- ].find((v) => !!(v && n[v])) ?? "";
4201
+ ].find((h) => !!(h && n[h])) ?? "";
4227
4202
  });
4228
- function a(s) {
4229
- return s === "form" || s === "table" ? s : "";
4203
+ function i(a) {
4204
+ return a === "form" || a === "table" ? a : "";
4230
4205
  }
4231
- return (s, i) => r.value ? te(s.$slots, r.value, {
4206
+ return (a, l) => s.value ? te(a.$slots, s.value, {
4232
4207
  key: 0,
4233
- section: s.section,
4234
- sectionView: s.section,
4235
- node: s.node,
4236
- editing: l.value,
4208
+ section: a.section,
4209
+ sectionView: a.section,
4210
+ node: a.node,
4211
+ editing: r.value,
4237
4212
  isEmpty: c.value,
4238
4213
  empty: c.value,
4239
4214
  fields: o.value,
4240
- renderConfig: s.renderConfig,
4241
- state: s.state,
4242
- actions: s.actions
4243
- }) : ($(), H(Ba, {
4215
+ renderConfig: a.renderConfig,
4216
+ state: a.state,
4217
+ actions: a.actions
4218
+ }) : (I(), H(Ba, {
4244
4219
  key: 1,
4245
- section: s.section,
4246
- node: s.node,
4247
- editing: l.value,
4248
- state: s.state,
4249
- actions: s.actions,
4250
- "render-config": s.renderConfig
4220
+ section: a.section,
4221
+ node: a.node,
4222
+ editing: r.value,
4223
+ state: a.state,
4224
+ actions: a.actions,
4225
+ "render-config": a.renderConfig
4251
4226
  }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
4252
4227
  }
4253
4228
  }), La = pe({
@@ -4272,8 +4247,8 @@ const Ea = /* @__PURE__ */ pe({
4272
4247
  () => {
4273
4248
  o.value = !1;
4274
4249
  }
4275
- ), to((c) => (l(c), !1));
4276
- function l(c) {
4250
+ ), to((c) => (r(c), !1));
4251
+ function r(c) {
4277
4252
  o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, c), t("error", c);
4278
4253
  }
4279
4254
  return () => {
@@ -4282,7 +4257,7 @@ const Ea = /* @__PURE__ */ pe({
4282
4257
  try {
4283
4258
  return n.default?.() ?? null;
4284
4259
  } catch (c) {
4285
- return l(c), n.fallback?.() ?? null;
4260
+ return r(c), n.fallback?.() ?? null;
4286
4261
  }
4287
4262
  };
4288
4263
  }
@@ -4306,10 +4281,10 @@ const Ea = /* @__PURE__ */ pe({
4306
4281
  onSave: { type: Function }
4307
4282
  },
4308
4283
  setup(e) {
4309
- const t = e, n = Le(), o = ge(!1), l = ge(null), c = ge(null), r = O(() => !!t.hideHeader), a = O(() => t.actions.getSectionStatus(t.node)), s = O(
4284
+ const t = e, n = Le(), o = ge(!1), r = ge(null), c = ge(null), s = O(() => !!t.hideHeader), i = O(() => t.actions.getSectionStatus(t.node)), a = O(
4310
4285
  () => t.actions.getSection(t.node) ?? c.value
4311
- ), i = O(() => {
4312
- const b = s.value;
4286
+ ), l = O(() => {
4287
+ const b = a.value;
4313
4288
  return b ? ft(
4314
4289
  b.fields,
4315
4290
  b,
@@ -4319,52 +4294,52 @@ const Ea = /* @__PURE__ */ pe({
4319
4294
  rows: b.renderType === "table" ? b.rows : void 0
4320
4295
  }
4321
4296
  ) : [];
4322
- }), v = O(
4323
- () => s.value?.title || t.node.tagName || t.node.label || "-"
4324
- ), S = O(
4325
- () => !!(s.value && t.actions.isEditing(s.value))
4326
- ), I = O(
4327
- () => s.value?.renderType === "table"
4328
- ), L = O(() => o.value || a.value.loading), V = O(
4329
- () => M(l.value || a.value.error)
4297
+ }), h = O(
4298
+ () => a.value?.title || t.node.tagName || t.node.label || "-"
4299
+ ), w = O(
4300
+ () => !!(a.value && t.actions.isEditing(a.value))
4301
+ ), $ = O(
4302
+ () => a.value?.renderType === "table"
4303
+ ), L = O(() => o.value || i.value.loading), V = O(
4304
+ () => T(r.value || i.value.error)
4330
4305
  ), f = O(() => {
4331
- const b = s.value;
4332
- return b ? b.renderType === "table" && b.rows.length === 0 || i.value.length === 0 : !0;
4333
- }), _ = O(() => ({
4306
+ const b = a.value;
4307
+ return b ? b.renderType === "table" && b.rows.length === 0 || l.value.length === 0 : !0;
4308
+ }), S = O(() => ({
4334
4309
  node: t.node,
4335
- section: s.value,
4336
- sectionView: s.value,
4337
- fields: i.value,
4310
+ section: a.value,
4311
+ sectionView: a.value,
4312
+ fields: l.value,
4338
4313
  renderConfig: t.renderConfig,
4339
- title: v.value,
4340
- editing: S.value,
4314
+ title: h.value,
4315
+ editing: w.value,
4341
4316
  loading: L.value,
4342
- error: l.value || a.value.error,
4317
+ error: r.value || i.value.error,
4343
4318
  errorMessage: V.value,
4344
4319
  isEmpty: f.value,
4345
4320
  empty: f.value,
4346
- sectionStatus: a.value,
4321
+ sectionStatus: i.value,
4347
4322
  state: t.state,
4348
4323
  actions: t.actions,
4349
4324
  reload: A,
4350
4325
  handleEdit: z,
4351
4326
  handleCancel: g,
4352
- handleAddTableRow: h,
4327
+ handleAddTableRow: v,
4353
4328
  handleSave: F
4354
4329
  }));
4355
- function M(b) {
4330
+ function T(b) {
4356
4331
  return b ? b instanceof Error ? b.message : String(b) : "";
4357
4332
  }
4358
4333
  async function z() {
4359
- const b = s.value;
4334
+ const b = a.value;
4360
4335
  b && (await t.onEdit?.(b, t.node), t.onEdit || t.actions.startEdit(b));
4361
4336
  }
4362
4337
  async function g() {
4363
- const b = s.value;
4338
+ const b = a.value;
4364
4339
  b && (await t.onCancel?.(b, t.node), t.onCancel || t.actions.cancelEdit(b));
4365
4340
  }
4366
- function h() {
4367
- const b = s.value;
4341
+ function v() {
4342
+ const b = a.value;
4368
4343
  if (!b) return;
4369
4344
  const j = b.fields.reduce(
4370
4345
  (C, N) => (C[N.code] = N.value ?? "", C),
@@ -4373,7 +4348,7 @@ const Ea = /* @__PURE__ */ pe({
4373
4348
  t.actions.saveRow(b, j, -1);
4374
4349
  }
4375
4350
  async function F() {
4376
- const b = s.value;
4351
+ const b = a.value;
4377
4352
  if (b)
4378
4353
  try {
4379
4354
  if (t.onSave) {
@@ -4382,18 +4357,18 @@ const Ea = /* @__PURE__ */ pe({
4382
4357
  }
4383
4358
  await t.actions.saveSection(b);
4384
4359
  } catch (j) {
4385
- l.value = j, console.error("[GlobalInfoSectionBlock] save section failed", j);
4360
+ r.value = j, console.error("[GlobalInfoSectionBlock] save section failed", j);
4386
4361
  }
4387
4362
  }
4388
4363
  function y(b) {
4389
- l.value = b;
4364
+ r.value = b;
4390
4365
  }
4391
4366
  async function A() {
4392
- o.value = !0, l.value = null, c.value = null;
4367
+ o.value = !0, r.value = null, c.value = null;
4393
4368
  try {
4394
4369
  c.value = await t.actions.loadSection(t.node);
4395
4370
  } catch (b) {
4396
- l.value = b, console.error("[GlobalInfoSectionBlock] load section failed", b);
4371
+ r.value = b, console.error("[GlobalInfoSectionBlock] load section failed", b);
4397
4372
  } finally {
4398
4373
  o.value = !1;
4399
4374
  }
@@ -4407,19 +4382,19 @@ const Ea = /* @__PURE__ */ pe({
4407
4382
  }
4408
4383
  ), (b, j) => {
4409
4384
  const C = $t;
4410
- return $(), G("section", Pa, [
4411
- r.value ? fe("", !0) : ($(), G("header", Va, [
4412
- te(b.$slots, "header", Oe(Be(_.value)), () => [
4385
+ return I(), G("section", Pa, [
4386
+ s.value ? fe("", !0) : (I(), G("header", Va, [
4387
+ te(b.$slots, "header", Oe(Be(S.value)), () => [
4413
4388
  ne("div", ja, [
4414
4389
  j[0] || (j[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
4415
- ne("h3", Aa, oe(v.value), 1)
4390
+ ne("h3", Aa, oe(h.value), 1)
4416
4391
  ]),
4417
- te(b.$slots, "actions", Oe(Be(_.value)), () => [
4418
- s.value ? ($(), G("div", Ra, [
4419
- S.value ? ($(), G(Se, { key: 1 }, [
4392
+ te(b.$slots, "actions", Oe(Be(S.value)), () => [
4393
+ a.value ? (I(), G("div", Ra, [
4394
+ w.value ? (I(), G(Se, { key: 1 }, [
4420
4395
  Ie(C, {
4421
4396
  class: "global-info-section-block__cancel",
4422
- disabled: a.value.saving,
4397
+ disabled: i.value.saving,
4423
4398
  onClick: g
4424
4399
  }, {
4425
4400
  default: U(() => [
@@ -4427,11 +4402,11 @@ const Ea = /* @__PURE__ */ pe({
4427
4402
  ]),
4428
4403
  _: 1
4429
4404
  }, 8, ["disabled"]),
4430
- I.value ? ($(), H(C, {
4405
+ $.value ? (I(), H(C, {
4431
4406
  key: 0,
4432
4407
  class: "global-info-section-block__add",
4433
- disabled: a.value.saving,
4434
- onClick: h
4408
+ disabled: i.value.saving,
4409
+ onClick: v
4435
4410
  }, {
4436
4411
  default: U(() => [
4437
4412
  He(oe(J(Z)("common.新增")), 1)
@@ -4440,18 +4415,18 @@ const Ea = /* @__PURE__ */ pe({
4440
4415
  }, 8, ["disabled"])) : fe("", !0),
4441
4416
  Ie(C, {
4442
4417
  class: "global-info-section-block__confirm",
4443
- loading: a.value.saving,
4418
+ loading: i.value.saving,
4444
4419
  onClick: F
4445
4420
  }, {
4446
4421
  default: U(() => [
4447
- He(oe(I.value ? J(Z)("common.确认") : J(Z)("common.保存")), 1)
4422
+ He(oe($.value ? J(Z)("common.确认") : J(Z)("common.保存")), 1)
4448
4423
  ]),
4449
4424
  _: 1
4450
4425
  }, 8, ["loading"])
4451
- ], 64)) : ($(), H(C, {
4426
+ ], 64)) : (I(), H(C, {
4452
4427
  key: 0,
4453
4428
  class: "global-info-section-block__edit",
4454
- disabled: a.value.saving || L.value,
4429
+ disabled: i.value.saving || L.value,
4455
4430
  onClick: z
4456
4431
  }, {
4457
4432
  default: U(() => [
@@ -4475,26 +4450,26 @@ const Ea = /* @__PURE__ */ pe({
4475
4450
  ], !0)
4476
4451
  ])),
4477
4452
  ne("div", za, [
4478
- L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, _.value)), () => [
4453
+ L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
4479
4454
  ne("div", Na, oe(J(Z)("common.加载中___")), 1)
4480
- ], !0) : !s.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, _.value)), () => [
4455
+ ], !0) : !a.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
4481
4456
  ne("div", xa, oe(J(Z)("common.暂无数据")), 1)
4482
- ], !0) : ($(), H(La, {
4457
+ ], !0) : (I(), H(La, {
4483
4458
  key: 2,
4484
4459
  "boundary-key": b.node.key,
4485
- label: v.value,
4460
+ label: h.value,
4486
4461
  onError: y
4487
4462
  }, {
4488
4463
  fallback: U(() => [
4489
- te(b.$slots, "empty", Oe(Be(_.value)), () => [
4464
+ te(b.$slots, "empty", Oe(Be(S.value)), () => [
4490
4465
  ne("div", qa, oe(J(Z)("common.暂无数据")), 1)
4491
4466
  ], !0)
4492
4467
  ]),
4493
4468
  default: U(() => [
4494
4469
  Ie(Ea, {
4495
- section: s.value,
4470
+ section: a.value,
4496
4471
  node: b.node,
4497
- editing: S.value,
4472
+ editing: w.value,
4498
4473
  state: b.state,
4499
4474
  actions: b.actions,
4500
4475
  "render-config": b.renderConfig
@@ -4502,7 +4477,7 @@ const Ea = /* @__PURE__ */ pe({
4502
4477
  ye(J(n), (N, re) => ({
4503
4478
  name: re,
4504
4479
  fn: U((le) => [
4505
- te(b.$slots, re, Oe(Be({ ..._.value, ...le })), void 0, !0)
4480
+ te(b.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
4506
4481
  ])
4507
4482
  }))
4508
4483
  ]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
@@ -4513,7 +4488,7 @@ const Ea = /* @__PURE__ */ pe({
4513
4488
  ]);
4514
4489
  };
4515
4490
  }
4516
- }), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-5ebfeec6"]]), 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({
4491
+ }), 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({
4517
4492
  name: "GlobalInfoGroup",
4518
4493
  __name: "GlobalInfoGroup",
4519
4494
  props: {
@@ -4527,104 +4502,104 @@ const Ea = /* @__PURE__ */ pe({
4527
4502
  setup(e) {
4528
4503
  const t = e, n = Le(), o = O(
4529
4504
  () => t.group.tagName || t.group.label || "-"
4530
- ), l = O(() => t.children.length <= 1);
4531
- function c(i, v) {
4532
- const S = t.actions.getSection(i);
4505
+ ), r = O(() => t.children.length <= 1);
4506
+ function c(l, h) {
4507
+ const w = t.actions.getSection(l);
4533
4508
  return {
4534
- node: i,
4509
+ node: l,
4535
4510
  group: t.group,
4536
- sectionNode: i,
4537
- section: S,
4538
- sectionView: S,
4511
+ sectionNode: l,
4512
+ section: w,
4513
+ sectionView: w,
4539
4514
  state: t.state,
4540
4515
  actions: t.actions,
4541
4516
  renderConfig: t.renderConfig,
4542
- index: v,
4543
- editing: !!(S && t.actions.isEditing(S)),
4544
- sectionStatus: t.actions.getSectionStatus(i),
4545
- isSelfSection: a(i, 0) === a(t.group, 0),
4546
- handleEdit: () => t.actions.startEdit(i),
4547
- handleCancel: () => t.actions.cancelEdit(i),
4548
- handleSave: () => t.actions.saveSection(i.key)
4517
+ index: h,
4518
+ editing: !!(w && t.actions.isEditing(w)),
4519
+ sectionStatus: t.actions.getSectionStatus(l),
4520
+ isSelfSection: i(l, 0) === i(t.group, 0),
4521
+ handleEdit: () => t.actions.startEdit(l),
4522
+ handleCancel: () => t.actions.cancelEdit(l),
4523
+ handleSave: () => t.actions.saveSection(l.key)
4549
4524
  };
4550
4525
  }
4551
- function r(i) {
4552
- const v = t.actions.getSection(i);
4553
- return Tt(
4526
+ function s(l) {
4527
+ const h = t.actions.getSection(l);
4528
+ return Mt(
4554
4529
  n,
4555
4530
  "section",
4556
- Gn(i, v)
4531
+ Gn(l, h)
4557
4532
  );
4558
4533
  }
4559
- function a(i, v) {
4560
- return i.key || i.id || i.infSetId || i.tagId || `${v}`;
4534
+ function i(l, h) {
4535
+ return l.key || l.id || l.infSetId || l.tagId || `${h}`;
4561
4536
  }
4562
- function s(i) {
4563
- return `global-info-section-${a(i, 0)}`;
4537
+ function a(l) {
4538
+ return `global-info-section-${i(l, 0)}`;
4564
4539
  }
4565
- return (i, v) => ($(), G("section", Ya, [
4566
- te(i.$slots, "header", {
4567
- group: i.group,
4568
- children: i.children,
4569
- state: i.state,
4570
- actions: i.actions,
4571
- renderConfig: i.renderConfig,
4540
+ return (l, h) => (I(), G("section", Ya, [
4541
+ te(l.$slots, "header", {
4542
+ group: l.group,
4543
+ children: l.children,
4544
+ state: l.state,
4545
+ actions: l.actions,
4546
+ renderConfig: l.renderConfig,
4572
4547
  title: o.value,
4573
- index: i.index,
4574
- isEmpty: i.children.length === 0
4548
+ index: l.index,
4549
+ isEmpty: l.children.length === 0
4575
4550
  }, () => [
4576
4551
  ne("header", Ua, [
4577
- v[0] || (v[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
4552
+ h[0] || (h[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
4578
4553
  ne("h2", Ha, oe(o.value), 1)
4579
4554
  ])
4580
4555
  ], !0),
4581
4556
  ne("div", Ja, [
4582
- J(n).default ? te(i.$slots, "default", {
4557
+ J(n).default ? te(l.$slots, "default", {
4583
4558
  key: 0,
4584
- group: i.group,
4585
- children: i.children,
4586
- state: i.state,
4587
- actions: i.actions,
4588
- renderConfig: i.renderConfig,
4589
- index: i.index,
4590
- isEmpty: i.children.length === 0
4591
- }, void 0, !0) : ($(), G(Se, { key: 1 }, [
4592
- ($(!0), G(Se, null, ye(i.children, (S, I) => ($(), G("div", {
4593
- id: s(S),
4594
- key: a(S, I),
4559
+ group: l.group,
4560
+ children: l.children,
4561
+ state: l.state,
4562
+ actions: l.actions,
4563
+ renderConfig: l.renderConfig,
4564
+ index: l.index,
4565
+ isEmpty: l.children.length === 0
4566
+ }, void 0, !0) : (I(), G(Se, { key: 1 }, [
4567
+ (I(!0), G(Se, null, ye(l.children, (w, $) => (I(), G("div", {
4568
+ id: a(w),
4569
+ key: i(w, $),
4595
4570
  class: "global-info-group__section"
4596
4571
  }, [
4597
- r(S) ? te(i.$slots, r(S), ae({
4572
+ s(w) ? te(l.$slots, s(w), ae({
4598
4573
  key: 0,
4599
4574
  ref_for: !0
4600
- }, c(S, I)), void 0, !0) : J(n).section ? te(i.$slots, "section", ae({
4575
+ }, c(w, $)), void 0, !0) : J(n).section ? te(l.$slots, "section", ae({
4601
4576
  key: 1,
4602
4577
  ref_for: !0
4603
- }, c(S, I)), void 0, !0) : ($(), H(Ka, {
4578
+ }, c(w, $)), void 0, !0) : (I(), H(Ka, {
4604
4579
  key: 2,
4605
- node: S,
4606
- state: i.state,
4607
- actions: i.actions,
4608
- "hide-header": l.value,
4609
- "render-config": i.renderConfig
4580
+ node: w,
4581
+ state: l.state,
4582
+ actions: l.actions,
4583
+ "hide-header": r.value,
4584
+ "render-config": l.renderConfig
4610
4585
  }, Re({ _: 2 }, [
4611
4586
  ye(J(n), (L, V) => ({
4612
4587
  name: V,
4613
4588
  fn: U((f) => [
4614
- te(i.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
4589
+ te(l.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
4615
4590
  ])
4616
4591
  }))
4617
4592
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
4618
4593
  ], 8, Wa))), 128)),
4619
- i.children.length === 0 ? te(i.$slots, "empty", {
4594
+ l.children.length === 0 ? te(l.$slots, "empty", {
4620
4595
  key: 0,
4621
4596
  node: null,
4622
- group: i.group,
4597
+ group: l.group,
4623
4598
  sectionNode: null,
4624
- state: i.state,
4625
- actions: i.actions,
4599
+ state: l.state,
4600
+ actions: l.actions,
4626
4601
  index: -1,
4627
- renderConfig: i.renderConfig
4602
+ renderConfig: l.renderConfig
4628
4603
  }, () => [
4629
4604
  ne("div", Za, oe(J(Z)("common.暂无数据")), 1)
4630
4605
  ], !0) : fe("", !0)
@@ -4632,7 +4607,7 @@ const Ea = /* @__PURE__ */ pe({
4632
4607
  ])
4633
4608
  ]));
4634
4609
  }
4635
- }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e16cde81"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4610
+ }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e86a3d32"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4636
4611
  name: "GlobalInfoSections",
4637
4612
  __name: "GlobalInfoSections",
4638
4613
  props: {
@@ -4643,97 +4618,97 @@ const Ea = /* @__PURE__ */ pe({
4643
4618
  },
4644
4619
  setup(e) {
4645
4620
  const t = e, n = Le(), o = O(() => {
4646
- const v = t.nodes.filter(
4647
- (M) => l(M).length > 0
4648
- ), S = t.nodes.filter((M) => l(M).length === 0), I = S.filter((M) => c(M)), L = S.filter((M) => !c(M)), V = v.map((M) => ({
4649
- group: M,
4650
- children: l(M)
4651
- })), f = I.map((M) => ({
4652
- group: M,
4653
- children: [M]
4621
+ const h = t.nodes.filter(
4622
+ (T) => r(T).length > 0
4623
+ ), w = t.nodes.filter((T) => r(T).length === 0), $ = w.filter((T) => c(T)), L = w.filter((T) => !c(T)), V = h.map((T) => ({
4624
+ group: T,
4625
+ children: r(T)
4626
+ })), f = $.map((T) => ({
4627
+ group: T,
4628
+ children: [T]
4654
4629
  }));
4655
4630
  if (V.length === 0)
4656
- return I.length > 0 ? f : i(L);
4657
- const _ = i(L);
4658
- return [...V, ...f, ..._];
4631
+ return $.length > 0 ? f : l(L);
4632
+ const S = l(L);
4633
+ return [...V, ...f, ...S];
4659
4634
  });
4660
- function l(v) {
4661
- return v.children ?? [];
4635
+ function r(h) {
4636
+ return h.children ?? [];
4662
4637
  }
4663
- function c(v) {
4664
- return !String(v.parentId || v.parentTagId || "").trim();
4638
+ function c(h) {
4639
+ return !String(h.parentId || h.parentTagId || "").trim();
4665
4640
  }
4666
- function r(v) {
4667
- return Tt(n, "group", qn(v));
4641
+ function s(h) {
4642
+ return Mt(n, "group", qn(h));
4668
4643
  }
4669
- function a(v, S) {
4670
- return v.key || v.id || v.tagId || `${S}`;
4644
+ function i(h, w) {
4645
+ return h.key || h.id || h.tagId || `${w}`;
4671
4646
  }
4672
- function s(v) {
4673
- const S = v[0], I = S?.raw ?? {}, L = String(
4674
- I.parentTagName || I.parentName || I.parentLabel || S?.parentId || Z("common.信息")
4647
+ function a(h) {
4648
+ const w = h[0], $ = w?.raw ?? {}, L = String(
4649
+ $.parentTagName || $.parentName || $.parentLabel || w?.parentId || Z("common.信息")
4675
4650
  );
4676
4651
  return {
4677
- ...S,
4678
- key: `${S?.parentId || S?.parentTagId || S?.key || "global-info"}-group`,
4652
+ ...w,
4653
+ key: `${w?.parentId || w?.parentTagId || w?.key || "global-info"}-group`,
4679
4654
  id: String(
4680
- S?.parentId || S?.parentTagId || S?.id || "global-info-group"
4655
+ w?.parentId || w?.parentTagId || w?.id || "global-info-group"
4681
4656
  ),
4682
4657
  tagId: String(
4683
- S?.parentTagId || S?.parentId || S?.tagId || "global-info-group"
4658
+ w?.parentTagId || w?.parentId || w?.tagId || "global-info-group"
4684
4659
  ),
4685
4660
  tagName: L,
4686
4661
  label: L,
4687
- children: v
4662
+ children: h
4688
4663
  };
4689
4664
  }
4690
- function i(v) {
4691
- const S = /* @__PURE__ */ new Map();
4692
- return v.forEach((I) => {
4665
+ function l(h) {
4666
+ const w = /* @__PURE__ */ new Map();
4667
+ return h.forEach(($) => {
4693
4668
  const L = String(
4694
- I.parentId || I.parentTagId || "global-info-flat"
4695
- ), V = S.get(L) ?? [];
4696
- V.push(I), S.set(L, V);
4697
- }), Array.from(S.values()).map((I) => ({
4698
- group: s(I),
4699
- children: I
4669
+ $.parentId || $.parentTagId || "global-info-flat"
4670
+ ), V = w.get(L) ?? [];
4671
+ V.push($), w.set(L, V);
4672
+ }), Array.from(w.values()).map(($) => ({
4673
+ group: a($),
4674
+ children: $
4700
4675
  }));
4701
4676
  }
4702
- return (v, S) => ($(), G("div", es, [
4703
- ($(!0), G(Se, null, ye(o.value, (I, L) => ($(), G(Se, {
4704
- key: a(I.group, L)
4677
+ return (h, w) => (I(), G("div", es, [
4678
+ (I(!0), G(Se, null, ye(o.value, ($, L) => (I(), G(Se, {
4679
+ key: i($.group, L)
4705
4680
  }, [
4706
- r(I.group) ? te(v.$slots, r(I.group), {
4681
+ s($.group) ? te(h.$slots, s($.group), {
4707
4682
  key: 0,
4708
- group: I.group,
4709
- children: I.children,
4710
- state: v.state,
4711
- actions: v.actions,
4712
- renderConfig: v.renderConfig,
4683
+ group: $.group,
4684
+ children: $.children,
4685
+ state: h.state,
4686
+ actions: h.actions,
4687
+ renderConfig: h.renderConfig,
4713
4688
  index: L,
4714
- isEmpty: I.children.length === 0
4715
- }, void 0, !0) : J(n).group ? te(v.$slots, "group", {
4689
+ isEmpty: $.children.length === 0
4690
+ }, void 0, !0) : J(n).group ? te(h.$slots, "group", {
4716
4691
  key: 1,
4717
- group: I.group,
4718
- children: I.children,
4719
- state: v.state,
4720
- actions: v.actions,
4721
- renderConfig: v.renderConfig,
4692
+ group: $.group,
4693
+ children: $.children,
4694
+ state: h.state,
4695
+ actions: h.actions,
4696
+ renderConfig: h.renderConfig,
4722
4697
  index: L,
4723
- isEmpty: I.children.length === 0
4724
- }, void 0, !0) : ($(), H(Xa, {
4698
+ isEmpty: $.children.length === 0
4699
+ }, void 0, !0) : (I(), H(Xa, {
4725
4700
  key: 2,
4726
- group: I.group,
4727
- children: I.children,
4728
- state: v.state,
4729
- actions: v.actions,
4730
- "render-config": v.renderConfig,
4701
+ group: $.group,
4702
+ children: $.children,
4703
+ state: h.state,
4704
+ actions: h.actions,
4705
+ "render-config": h.renderConfig,
4731
4706
  index: L
4732
4707
  }, Re({ _: 2 }, [
4733
4708
  ye(J(n), (V, f) => ({
4734
4709
  name: f,
4735
- fn: U((_) => [
4736
- te(v.$slots, f, ae({ ref_for: !0 }, _), void 0, !0)
4710
+ fn: U((S) => [
4711
+ te(h.$slots, f, ae({ ref_for: !0 }, S), void 0, !0)
4737
4712
  ])
4738
4713
  }))
4739
4714
  ]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))