@jt-home/mfe-components 1.0.40 → 1.0.42

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