@jt-home/mfe-components 1.0.15 → 1.0.16

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,36 +1,36 @@
1
1
  import './style.css';
2
- import { defineComponent as ce, useAttrs as Vn, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as U, renderSlot as Q, resolveDynamicComponent as zt, createCommentVNode as ue, ref as me, watch as Be, mergeDefaults as Pn, withKeys as Nn, createElementBlock as Y, Fragment as be, renderList as ve, normalizeStyle as xt, nextTick as An, useSlots as Le, normalizeClass as Ue, createVNode as we, withModifiers as Rt, unref as re, createSlots as Ae, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as jn, mergeModels as Ct, shallowRef as Pe, onMounted as qt, onBeforeUnmount as zn, createTextVNode as Ye, resolveComponent as xn, onErrorCaptured as Rn } from "vue";
3
- import { ElButton as wt, ElIcon as Kt, ElCascader as qn, ElDatePicker as Gt, ElInput as Yt, ElSelect as Ht, ElOption as Ut, ElFormItem as Jt, ElForm as Wt, ElTable as Zt, ElTableColumn as Qt, ElPagination as Kn, ElLoadingDirective as Gn, ElInputNumber as Yn, ElSwitch as Hn, ElRow as Un, ElCol as Jn, ElPopconfirm as Wn } from "element-plus/es";
4
- import { JtAttachmentPreview as kt } from "./JtAttachmentPreview/index.mjs";
5
- import { JtAttachmentPreviewByParams as ja, setupJtAttachmentPreview as za } from "./JtAttachmentPreview/index.mjs";
6
- import { cascaderEmits as Zn, inputEmits as Mt, selectEmits as Tt } from "element-plus";
7
- const gt = 2, Qn = 3;
8
- function Xn(e) {
2
+ import { defineComponent as ce, useAttrs as An, computed as V, openBlock as k, createBlock as H, mergeProps as oe, toHandlers as Ze, withCtx as U, renderSlot as Q, resolveDynamicComponent as xt, createCommentVNode as ue, ref as me, watch as Be, mergeDefaults as Nn, withKeys as jn, createElementBlock as Y, Fragment as be, renderList as ve, normalizeStyle as Rt, nextTick as zn, useSlots as Le, normalizeClass as Ue, createVNode as we, withModifiers as qt, unref as re, createSlots as Ne, createElementVNode as te, toDisplayString as fe, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as xn, mergeModels as kt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Rn, createTextVNode as Ye, resolveComponent as qn, onErrorCaptured as Kn } from "vue";
3
+ import { ElButton as It, ElIcon as Gt, ElCascader as Gn, ElDatePicker as Yt, ElInput as Ht, ElSelect as Ut, ElOption as Jt, ElFormItem as Wt, ElForm as Zt, ElTable as Qt, ElTableColumn as Xt, ElPagination as Yn, ElLoadingDirective as Hn, ElInputNumber as Un, ElSwitch as Jn, ElRow as Wn, ElCol as Zn, ElPopconfirm as Qn } from "element-plus/es";
4
+ import { JtAttachmentPreview as Mt } from "./JtAttachmentPreview/index.mjs";
5
+ import { JtAttachmentPreviewByParams as xa, setupJtAttachmentPreview as Ra } from "./JtAttachmentPreview/index.mjs";
6
+ import { cascaderEmits as Xn, inputEmits as Tt, selectEmits as Ot } from "element-plus";
7
+ const gt = 2, eo = 3;
8
+ function to(e) {
9
9
  return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
10
10
  }
11
- function Xt(e) {
11
+ function en(e) {
12
12
  if (!e.startsWith("on") || e.length <= gt)
13
13
  return !1;
14
14
  const t = e.charCodeAt(gt);
15
15
  return t < 97 || t > 122;
16
16
  }
17
- function eo(e) {
17
+ function no(e) {
18
18
  if (e.startsWith("on-"))
19
- return e.slice(Qn);
20
- const [t, n] = e.slice(gt).split(":"), o = Xn(t);
19
+ return e.slice(eo);
20
+ const [t, n] = e.slice(gt).split(":"), o = to(t);
21
21
  return n ? `${o}:${n}` : o;
22
22
  }
23
- function en(e, t = /* @__PURE__ */ new Set()) {
23
+ function tn(e, t = /* @__PURE__ */ new Set()) {
24
24
  return Object.fromEntries(
25
- Object.entries(e).filter(([n, o]) => !t.has(n) && Xt(n) && typeof o == "function").map(([n, o]) => [eo(n), o])
25
+ Object.entries(e).filter(([n, o]) => !t.has(n) && en(n) && typeof o == "function").map(([n, o]) => [no(n), o])
26
26
  );
27
27
  }
28
- function tn(e, t = /* @__PURE__ */ new Set()) {
28
+ function nn(e, t = /* @__PURE__ */ new Set()) {
29
29
  return Object.fromEntries(
30
- Object.entries(e).filter(([n]) => !t.has(n) && !Xt(n))
30
+ Object.entries(e).filter(([n]) => !t.has(n) && !en(n))
31
31
  );
32
32
  }
33
- const to = /* @__PURE__ */ ce({
33
+ const oo = /* @__PURE__ */ ce({
34
34
  name: "JtButton",
35
35
  __name: "index",
36
36
  props: {
@@ -55,16 +55,16 @@ const to = /* @__PURE__ */ ce({
55
55
  tag: {}
56
56
  },
57
57
  setup(e) {
58
- const t = e, n = Vn(), o = V(() => {
58
+ const t = e, n = An(), o = V(() => {
59
59
  const { icon: s, ...a } = t;
60
60
  return {
61
- ...tn(n),
61
+ ...nn(n),
62
62
  ...a
63
63
  };
64
- }), r = V(() => en(n));
64
+ }), r = V(() => tn(n));
65
65
  return (s, a) => {
66
- const i = Kt, c = wt;
67
- return k(), H(c, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
66
+ const i = Gt, l = It;
67
+ return k(), H(l, oe({ class: "jt-button" }, o.value, Ze(r.value)), {
68
68
  default: U(() => [
69
69
  s.$slots.icon ? (k(), H(i, {
70
70
  key: 0,
@@ -79,7 +79,7 @@ const to = /* @__PURE__ */ ce({
79
79
  class: "jt-button__icon"
80
80
  }, {
81
81
  default: U(() => [
82
- (k(), H(zt(t.icon)))
82
+ (k(), H(xt(t.icon)))
83
83
  ]),
84
84
  _: 1
85
85
  })) : ue("", !0),
@@ -94,28 +94,28 @@ const to = /* @__PURE__ */ ce({
94
94
  for (const [o, r] of t)
95
95
  n[o] = r;
96
96
  return n;
97
- }, tt = /* @__PURE__ */ ge(to, [["__scopeId", "data-v-a8344276"]]), no = {
97
+ }, tt = /* @__PURE__ */ ge(oo, [["__scopeId", "data-v-a8344276"]]), ro = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
100
  placeholder: "请选择",
101
101
  clearable: !0,
102
102
  persistent: !0
103
103
  };
104
- function Ot(e) {
104
+ function Dt(e) {
105
105
  return Object.fromEntries(
106
106
  Object.entries(e).filter(([, t]) => t !== void 0)
107
107
  );
108
108
  }
109
- function oo(e) {
110
- const t = Ot(e);
111
- return t.props && (t.props = Ot(
109
+ function ao(e) {
110
+ const t = Dt(e);
111
+ return t.props && (t.props = Dt(
112
112
  t.props
113
113
  )), t;
114
114
  }
115
- const ro = /* @__PURE__ */ ce({
115
+ const so = /* @__PURE__ */ ce({
116
116
  name: "JtCascader",
117
117
  __name: "index",
118
- props: /* @__PURE__ */ Pn({
118
+ props: /* @__PURE__ */ Nn({
119
119
  size: {},
120
120
  placeholder: {},
121
121
  disabled: { type: Boolean },
@@ -153,10 +153,10 @@ const ro = /* @__PURE__ */ ce({
153
153
  emptyValues: {},
154
154
  valueOnClear: { type: [String, Number, Boolean, Function, null] },
155
155
  options: {}
156
- }, no),
157
- emits: Zn,
156
+ }, ro),
157
+ emits: Xn,
158
158
  setup(e, { emit: t }) {
159
- const n = e, o = V(() => oo(n)), r = me(n.modelValue);
159
+ const n = e, o = V(() => ao(n)), r = me(n.modelValue);
160
160
  Be(
161
161
  () => n.modelValue,
162
162
  (v) => {
@@ -171,7 +171,7 @@ const ro = /* @__PURE__ */ ce({
171
171
  function i(v) {
172
172
  r.value = v, a("update:modelValue", v);
173
173
  }
174
- function c(v) {
174
+ function l(v) {
175
175
  a("change", v);
176
176
  }
177
177
  function u(v) {
@@ -193,11 +193,11 @@ const ro = /* @__PURE__ */ ce({
193
193
  a("removeTag", v);
194
194
  }
195
195
  return (v, I) => {
196
- const C = qn;
196
+ const C = Gn;
197
197
  return k(), H(C, oe({ class: "jt-cascader" }, o.value, {
198
198
  "model-value": r.value,
199
199
  "onUpdate:modelValue": i,
200
- onChange: c,
200
+ onChange: l,
201
201
  onFocus: u,
202
202
  onBlur: B,
203
203
  onClear: m,
@@ -207,7 +207,7 @@ const ro = /* @__PURE__ */ ce({
207
207
  }), null, 16, ["model-value"]);
208
208
  };
209
209
  }
210
- }), ao = /* @__PURE__ */ ce({
210
+ }), io = /* @__PURE__ */ ce({
211
211
  name: "JtDatePicker",
212
212
  __name: "index",
213
213
  props: {
@@ -269,13 +269,13 @@ const ro = /* @__PURE__ */ ce({
269
269
  return r?.includes("range") ?? !1;
270
270
  }
271
271
  return (r, s) => {
272
- const a = Gt;
272
+ const a = Yt;
273
273
  return k(), H(a, oe({ class: "jt-date-picker" }, n.value, {
274
274
  "onUpdate:modelValue": s[0] || (s[0] = (i) => r.$emit("update:modelValue", i))
275
275
  }), null, 16);
276
276
  };
277
277
  }
278
- }), so = /* @__PURE__ */ ge(ao, [["__scopeId", "data-v-7aa4706e"]]), io = /* @__PURE__ */ ce({
278
+ }), lo = /* @__PURE__ */ ge(io, [["__scopeId", "data-v-7aa4706e"]]), co = /* @__PURE__ */ ce({
279
279
  name: "JtInput",
280
280
  __name: "index",
281
281
  props: {
@@ -314,24 +314,24 @@ const ro = /* @__PURE__ */ ce({
314
314
  countGraphemes: {}
315
315
  },
316
316
  emits: {
317
- ...Mt,
317
+ ...Tt,
318
318
  enter: () => !0
319
319
  },
320
320
  setup(e, { emit: t }) {
321
321
  const n = e, o = t, r = V(() => Object.fromEntries(
322
- Object.keys(Mt).map((s) => [
322
+ Object.keys(Tt).map((s) => [
323
323
  s,
324
324
  (...a) => o(s, ...a)
325
325
  ])
326
326
  ));
327
327
  return (s, a) => {
328
- const i = Yt;
328
+ const i = Ht;
329
329
  return k(), H(i, oe({ class: "jt-input" }, n, Ze(r.value), {
330
- onKeyup: a[0] || (a[0] = Nn((c) => o("enter"), ["enter"]))
330
+ onKeyup: a[0] || (a[0] = jn((l) => o("enter"), ["enter"]))
331
331
  }), null, 16);
332
332
  };
333
333
  }
334
- }), mt = /* @__PURE__ */ ge(io, [["__scopeId", "data-v-031428a1"]]), lo = /* @__PURE__ */ ce({
334
+ }), mt = /* @__PURE__ */ ge(co, [["__scopeId", "data-v-031428a1"]]), uo = /* @__PURE__ */ ce({
335
335
  name: "JtSelect",
336
336
  __name: "index",
337
337
  props: {
@@ -388,22 +388,22 @@ const ro = /* @__PURE__ */ ce({
388
388
  appendTo: {},
389
389
  props: {}
390
390
  },
391
- emits: Tt,
391
+ emits: Ot,
392
392
  setup(e, { emit: t }) {
393
393
  const n = e, o = V(() => {
394
394
  const { options: a, ...i } = n;
395
395
  return i;
396
396
  }), r = t, s = V(() => Object.fromEntries(
397
- Object.keys(Tt).map((a) => [
397
+ Object.keys(Ot).map((a) => [
398
398
  a,
399
399
  (...i) => r(a, ...i)
400
400
  ])
401
401
  ));
402
402
  return (a, i) => {
403
- const c = Ut, u = Ht;
403
+ const l = Jt, u = Ut;
404
404
  return k(), H(u, oe({ class: "jt-select" }, o.value, Ze(s.value)), {
405
405
  default: U(() => [
406
- (k(!0), Y(be, null, ve(a.options ?? [], (B) => (k(), H(c, oe({
406
+ (k(!0), Y(be, null, ve(a.options ?? [], (B) => (k(), H(l, oe({
407
407
  key: B.value,
408
408
  ref_for: !0
409
409
  }, B), null, 16))), 128))
@@ -412,7 +412,7 @@ const ro = /* @__PURE__ */ ce({
412
412
  }, 16);
413
413
  };
414
414
  }
415
- }), co = /* @__PURE__ */ ge(lo, [["__scopeId", "data-v-c67cfa84"]]), uo = { class: "jt-form-items" }, vt = 4, fo = /* @__PURE__ */ ce({
415
+ }), fo = /* @__PURE__ */ ge(uo, [["__scopeId", "data-v-c67cfa84"]]), po = { class: "jt-form-items" }, vt = 4, mo = /* @__PURE__ */ ce({
416
416
  name: "JTFormItems",
417
417
  __name: "JtFormItems",
418
418
  props: {
@@ -423,16 +423,16 @@ const ro = /* @__PURE__ */ ce({
423
423
  setup(e) {
424
424
  const t = e, n = {
425
425
  input: mt,
426
- select: co,
427
- cascader: ro,
428
- "date-picker": so
426
+ select: fo,
427
+ cascader: so,
428
+ "date-picker": lo
429
429
  }, o = {
430
430
  "remote-select": "select",
431
431
  date: "date-picker",
432
432
  daterange: "date-picker",
433
433
  "date-range": "date-picker",
434
434
  dateRange: "date-picker"
435
- }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), s = Object.keys(n), a = /* @__PURE__ */ new Map(), i = V(() => t.configs.filter((S) => S.show !== !1)), c = (S) => {
435
+ }, r = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), s = Object.keys(n), a = /* @__PURE__ */ new Map(), i = V(() => t.configs.filter((S) => S.show !== !1)), l = (S) => {
436
436
  const { itemType: h } = S;
437
437
  if (!h) return mt;
438
438
  if (typeof h != "string") return h;
@@ -441,7 +441,7 @@ const ro = /* @__PURE__ */ ce({
441
441
  `[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${s.join(", ")}`
442
442
  ), mt);
443
443
  }, u = (S) => {
444
- const h = tn(S, r);
444
+ const h = nn(S, r);
445
445
  return S.itemType === "select" || S.itemType === "remote-select" || S.itemType === "cascader" ? {
446
446
  ...h,
447
447
  options: S.options
@@ -449,7 +449,7 @@ const ro = /* @__PURE__ */ ce({
449
449
  ...h,
450
450
  type: "daterange"
451
451
  } : h;
452
- }, B = (S) => en(S, r), m = (S) => ({
452
+ }, B = (S) => tn(S, r), m = (S) => ({
453
453
  rules: S.rules,
454
454
  ...S.formItemProps
455
455
  }), y = (S, h) => {
@@ -465,7 +465,7 @@ const ro = /* @__PURE__ */ ce({
465
465
  };
466
466
  }
467
467
  function _(S, h) {
468
- An(() => {
468
+ zn(() => {
469
469
  a.get(S)?.validate(h).catch(() => {
470
470
  });
471
471
  });
@@ -487,8 +487,8 @@ const ro = /* @__PURE__ */ ce({
487
487
  return S === "daterange" || S === "date-range" || S === "dateRange";
488
488
  }
489
489
  return (S, h) => {
490
- const O = Jt;
491
- return k(), Y("div", uo, [
490
+ const O = Wt;
491
+ return k(), Y("div", po, [
492
492
  (k(!0), Y(be, null, ve(i.value, (g) => (k(), H(O, oe({
493
493
  key: g.prop,
494
494
  ref_for: !0,
@@ -499,7 +499,7 @@ const ro = /* @__PURE__ */ ce({
499
499
  prop: g.prop
500
500
  }, m(g)), {
501
501
  default: U(() => [
502
- g.showSlot ? Q(S.$slots, g.prop, { key: 0 }, void 0, !0) : (k(), H(zt(c(g)), oe({
502
+ g.showSlot ? Q(S.$slots, g.prop, { key: 0 }, void 0, !0) : (k(), H(xt(l(g)), oe({
503
503
  key: 1,
504
504
  "model-value": S.formData[g.prop],
505
505
  ref_for: !0
@@ -514,7 +514,7 @@ const ro = /* @__PURE__ */ ce({
514
514
  S.$slots.actions ? (k(), H(O, {
515
515
  key: 0,
516
516
  class: "jt-form-items__actions",
517
- style: xt(I.value)
517
+ style: Rt(I.value)
518
518
  }, {
519
519
  default: U(() => [
520
520
  Q(S.$slots, "actions", {}, void 0, !0)
@@ -524,8 +524,8 @@ const ro = /* @__PURE__ */ ce({
524
524
  ]);
525
525
  };
526
526
  }
527
- }), po = /* @__PURE__ */ ge(fo, [["__scopeId", "data-v-cb82fcfc"]]);
528
- function mo() {
527
+ }), vo = /* @__PURE__ */ ge(mo, [["__scopeId", "data-v-cb82fcfc"]]);
528
+ function ho() {
529
529
  const e = me(!1);
530
530
  function t() {
531
531
  e.value = !0;
@@ -539,7 +539,7 @@ function mo() {
539
539
  searchDone: n
540
540
  };
541
541
  }
542
- const vo = "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", ho = "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", go = "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", yo = { class: "jt-filter-bar__btns" }, bo = ["src"], So = ["src"], wo = ["src"], Io = /* @__PURE__ */ ce({
542
+ const go = "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", yo = "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", bo = "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", So = { class: "jt-filter-bar__btns" }, wo = ["src"], Io = ["src"], _o = ["src"], $o = /* @__PURE__ */ ce({
543
543
  name: "JtFilterBar",
544
544
  __name: "JtFilterBar",
545
545
  props: {
@@ -550,10 +550,10 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
550
550
  emits: ["update:modelValue", "search", "reset"],
551
551
  setup(e, { expose: t, emit: n }) {
552
552
  const o = e, r = n, s = me(), a = Le(), i = me({}), {
553
- searchDisabled: c,
553
+ searchDisabled: l,
554
554
  searchLoading: u,
555
555
  searchDone: B
556
- } = mo(), m = V(() => o.option), y = me(m.value.searchCollapsed ?? !1), f = V(() => o.columns.filter((z) => z.search === !0)), _ = V(
556
+ } = ho(), m = V(() => o.option), y = me(m.value.searchCollapsed ?? !1), f = V(() => o.columns.filter((z) => z.search === !0)), _ = V(
557
557
  () => Math.max(1, m.value.searchSpan ?? 4)
558
558
  ), v = V(() => Math.max(1, m.value.searchCollapsedRows ?? 1)), I = V(() => _.value), C = V(
559
559
  () => Math.max(1, I.value * v.value)
@@ -561,19 +561,19 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
561
561
  if (!T.value || !y.value) return f.value;
562
562
  let z = 0;
563
563
  return f.value.filter((X) => {
564
- const ae = A(X);
564
+ const ae = N(X);
565
565
  return z + ae > C.value ? !1 : (z += ae, !0);
566
566
  });
567
567
  }), x = V(
568
568
  () => F.value.filter((z) => !!a[`${z.prop}-search`])
569
569
  ), ne = V(() => {
570
570
  const [z] = F.value;
571
- return !!z && F.value.length === 1 && A(z) < _.value;
571
+ return !!z && F.value.length === 1 && N(z) < _.value;
572
572
  }), q = V(() => {
573
573
  const [z] = F.value;
574
- return `${Math.min(_.value, z ? A(z) + 1 : 1)}`;
575
- }), N = V(
576
- () => F.value.map((z) => l(z))
574
+ return `${Math.min(_.value, z ? N(z) + 1 : 1)}`;
575
+ }), A = V(
576
+ () => F.value.map((z) => c(z))
577
577
  );
578
578
  Be(
579
579
  () => m.value.searchCollapsed,
@@ -588,24 +588,24 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
588
588
  { deep: !0, immediate: !0 }
589
589
  );
590
590
  function L(z, X) {
591
- if (c.value) return;
591
+ if (l.value) return;
592
592
  const ae = { ...i.value, [z]: X };
593
593
  i.value = ae, r("update:modelValue", ae);
594
594
  }
595
- function l(z) {
595
+ function c(z) {
596
596
  const X = z.searchProps ?? {};
597
597
  return {
598
598
  ...X,
599
599
  prop: z.prop,
600
600
  label: z.searchLabel ?? z.label,
601
- span: A(z),
601
+ span: N(z),
602
602
  itemType: z.searchType ?? "input",
603
603
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
604
604
  showSlot: !!a[`${z.prop}-search`],
605
605
  options: X.options ?? z.searchOptions ?? z.dicData,
606
606
  placeholder: X.placeholder ?? z.searchPlaceholder,
607
607
  valueFormat: X.valueFormat ?? z.searchValueFormat,
608
- disabled: c.value || X.disabled === !0,
608
+ disabled: l.value || X.disabled === !0,
609
609
  formItemProps: {
610
610
  required: z.searchRequired,
611
611
  class: ["jt-filter-bar__item", { "is-required": z.searchRequired }]
@@ -628,7 +628,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
628
628
  typeof z == "function" && z(...X);
629
629
  }
630
630
  async function b() {
631
- if (!c.value) {
631
+ if (!l.value) {
632
632
  if (s.value)
633
633
  try {
634
634
  await s.value.validate();
@@ -639,16 +639,16 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
639
639
  }
640
640
  }
641
641
  function D() {
642
- c.value || r("reset");
642
+ l.value || r("reset");
643
643
  }
644
644
  function E() {
645
645
  y.value = !y.value;
646
646
  }
647
- function A(z) {
647
+ function N(z) {
648
648
  return Math.min(_.value, Math.max(1, z.searchSpan ?? 1));
649
649
  }
650
650
  function K(z) {
651
- return z.reduce((X, ae) => X + A(ae), 0);
651
+ return z.reduce((X, ae) => X + N(ae), 0);
652
652
  }
653
653
  function R(z) {
654
654
  return typeof z == "number" ? `${z}px` : z;
@@ -663,16 +663,16 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
663
663
  /** 内部 Element Plus Form 实例,保留给业务侧做校验、重置等原生表单操作。 */
664
664
  formRef: s,
665
665
  /** 当前筛选表单禁用态。 */
666
- searchDisabled: c,
666
+ searchDisabled: l,
667
667
  /** 开启筛选表单禁用。 */
668
668
  searchLoading: u,
669
669
  /** 关闭筛选表单禁用。 */
670
670
  searchDone: B
671
671
  }), (z, X) => {
672
- const ae = Wt;
672
+ const ae = Zt;
673
673
  return k(), Y("div", {
674
674
  class: Ue(["jt-filter-bar", [`is-label-${O.value}`, { "is-single-filter": ne.value }]]),
675
- style: xt({
675
+ style: Rt({
676
676
  "--jt-filter-columns": _.value,
677
677
  "--jt-filter-field-columns": P.value,
678
678
  "--jt-filter-btns-width": S.value,
@@ -690,21 +690,21 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
690
690
  model: i.value,
691
691
  "label-position": O.value,
692
692
  "label-width": h.value,
693
- disabled: re(c),
694
- onSubmit: X[0] || (X[0] = Rt(() => {
693
+ disabled: re(l),
694
+ onSubmit: X[0] || (X[0] = qt(() => {
695
695
  }, ["prevent"]))
696
696
  }, {
697
697
  default: U(() => [
698
- we(re(po), {
699
- configs: N.value,
698
+ we(re(vo), {
699
+ configs: A.value,
700
700
  "form-data": i.value
701
- }, Ae({
701
+ }, Ne({
702
702
  actions: U(() => [
703
- te("div", yo, [
703
+ te("div", So, [
704
704
  Q(z.$slots, "search-menu", {
705
705
  search: b,
706
706
  reset: D,
707
- disabled: re(c),
707
+ disabled: re(l),
708
708
  collapsed: y.value,
709
709
  toggleCollapse: E
710
710
  }, () => [
@@ -716,9 +716,9 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
716
716
  icon: U(() => [
717
717
  te("img", {
718
718
  class: Ue(["jt-filter-bar__icon-arrow", { "is-collapsed": y.value }]),
719
- src: re(vo),
719
+ src: re(go),
720
720
  alt: ""
721
- }, null, 10, bo)
721
+ }, null, 10, wo)
722
722
  ]),
723
723
  default: U(() => [
724
724
  te("span", null, fe(y.value ? "展 开" : "收 起"), 1)
@@ -727,14 +727,14 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
727
727
  })) : ue("", !0),
728
728
  we(re(tt), {
729
729
  class: "jt-filter-bar__btn-reset",
730
- disabled: re(c),
730
+ disabled: re(l),
731
731
  onClick: D
732
732
  }, {
733
733
  icon: U(() => [
734
734
  te("img", {
735
- src: re(ho),
735
+ src: re(yo),
736
736
  alt: ""
737
- }, null, 8, So)
737
+ }, null, 8, Io)
738
738
  ]),
739
739
  default: U(() => [
740
740
  te("span", null, fe(m.value.resetBtnText ?? "重 置"), 1)
@@ -744,14 +744,14 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
744
744
  we(re(tt), {
745
745
  class: "jt-filter-bar__btn-query",
746
746
  type: "primary",
747
- disabled: re(c),
747
+ disabled: re(l),
748
748
  onClick: b
749
749
  }, {
750
750
  icon: U(() => [
751
751
  te("img", {
752
- src: re(go),
752
+ src: re(bo),
753
753
  alt: ""
754
- }, null, 8, wo)
754
+ }, null, 8, _o)
755
755
  ]),
756
756
  default: U(() => [
757
757
  te("span", null, fe(m.value.searchBtnText ?? "查 询"), 1)
@@ -772,7 +772,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
772
772
  setValue: (de) => L(pe.prop, de),
773
773
  search: b,
774
774
  reset: D,
775
- disabled: re(c)
775
+ disabled: re(l)
776
776
  }, void 0, !0)
777
777
  ])
778
778
  }))
@@ -783,7 +783,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
783
783
  ], 6);
784
784
  };
785
785
  }
786
- }), _o = /* @__PURE__ */ ge(Io, [["__scopeId", "data-v-1f6fdc4e"]]), $o = { key: 1 }, Co = { key: 2 }, ko = { key: 3 }, Mo = /* @__PURE__ */ ce({
786
+ }), Co = /* @__PURE__ */ ge($o, [["__scopeId", "data-v-1f6fdc4e"]]), ko = { key: 1 }, Mo = { key: 2 }, To = { key: 3 }, Oo = /* @__PURE__ */ ce({
787
787
  name: "JtTable",
788
788
  __name: "JtTable",
789
789
  props: {
@@ -797,7 +797,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
797
797
  function i(f) {
798
798
  return !!o[`${f}-header`];
799
799
  }
800
- function c(f) {
800
+ function l(f) {
801
801
  return !!o[`${f}-data`];
802
802
  }
803
803
  function u(f) {
@@ -821,7 +821,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
821
821
  return f.find((v) => v.value === _)?.label ?? String(_ ?? "");
822
822
  }
823
823
  return t({ tableRef: r }), (f, _) => {
824
- const v = Qt, I = Zt;
824
+ const v = Xt, I = Qt;
825
825
  return k(), H(I, oe({
826
826
  ref_key: "tableRef",
827
827
  ref: r,
@@ -850,9 +850,9 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
850
850
  key: C.prop,
851
851
  prop: C.prop,
852
852
  label: C.label,
853
- formatter: !c(C.prop) && !C.dicData ? C.formatter : void 0,
853
+ formatter: !l(C.prop) && !C.dicData ? C.formatter : void 0,
854
854
  ref_for: !0
855
- }, u(C)), Ae({ _: 2 }, [
855
+ }, u(C)), Ne({ _: 2 }, [
856
856
  i(C.prop) ? {
857
857
  name: "header",
858
858
  fn: U((P) => [
@@ -863,10 +863,10 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
863
863
  B(C) ? {
864
864
  name: "default",
865
865
  fn: U((P) => [
866
- c(C.prop) ? Q(f.$slots, `${C.prop}-data`, oe({
866
+ l(C.prop) ? Q(f.$slots, `${C.prop}-data`, oe({
867
867
  key: 0,
868
868
  ref_for: !0
869
- }, P), void 0, !0) : C.dicData ? (k(), Y("span", $o, fe(y(C.dicData, P.row[C.prop])), 1)) : C.formatter ? (k(), Y("span", Co, fe(C.formatter(P.row, P.column, P.row[C.prop], P.$index)), 1)) : (k(), Y("span", ko, fe(P.row[C.prop]), 1))
869
+ }, P), void 0, !0) : C.dicData ? (k(), Y("span", ko, fe(y(C.dicData, P.row[C.prop])), 1)) : C.formatter ? (k(), Y("span", Mo, fe(C.formatter(P.row, P.column, P.row[C.prop], P.$index)), 1)) : (k(), Y("span", To, fe(P.row[C.prop]), 1))
870
870
  ]),
871
871
  key: "1"
872
872
  } : void 0
@@ -889,7 +889,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
889
889
  }, 16, ["data", "row-key", "height", "max-height", "empty-text"]);
890
890
  };
891
891
  }
892
- }), To = /* @__PURE__ */ ge(Mo, [["__scopeId", "data-v-513fa12d"]]), Oo = { class: "jt-pagination" }, Do = { class: "jt-pagination__count" }, Fo = /* @__PURE__ */ ce({
892
+ }), Do = /* @__PURE__ */ ge(Oo, [["__scopeId", "data-v-513fa12d"]]), Fo = { class: "jt-pagination" }, Bo = { class: "jt-pagination__count" }, Lo = /* @__PURE__ */ ce({
893
893
  name: "JtPagination",
894
894
  __name: "JtPagination",
895
895
  props: {
@@ -905,9 +905,9 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
905
905
  r("current-change", a), r("page-change", a);
906
906
  }
907
907
  return (a, i) => {
908
- const c = Kn;
909
- return k(), Y("div", Oo, [
910
- we(c, {
908
+ const l = Yn;
909
+ return k(), Y("div", Fo, [
910
+ we(l, {
911
911
  "current-page": a.currentPage,
912
912
  "page-size": a.pageSize,
913
913
  "page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
@@ -918,17 +918,17 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
918
918
  onCurrentChange: s,
919
919
  onSizeChange: i[2] || (i[2] = (u) => a.$emit("size-change", u))
920
920
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
921
- te("span", Do, "共" + fe(a.total) + "条记录", 1)
921
+ te("span", Bo, "共" + fe(a.total) + "条记录", 1)
922
922
  ]);
923
923
  };
924
924
  }
925
- }), Bo = /* @__PURE__ */ ge(Fo, [["__scopeId", "data-v-c6e8a4b5"]]), Lo = { class: "jt-crud-table" }, Eo = {
925
+ }), Eo = /* @__PURE__ */ ge(Lo, [["__scopeId", "data-v-c6e8a4b5"]]), Vo = { class: "jt-crud-table" }, Po = {
926
926
  key: 1,
927
927
  class: "jt-crud-table__toolbar"
928
- }, Vo = /* @__PURE__ */ ce({
928
+ }, Ao = /* @__PURE__ */ ce({
929
929
  name: "JtCrudTable",
930
930
  __name: "JtCrudTable",
931
- props: /* @__PURE__ */ Ct({
931
+ props: /* @__PURE__ */ kt({
932
932
  columns: {},
933
933
  option: { default: () => ({}) },
934
934
  data: {},
@@ -942,14 +942,14 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
942
942
  searchModel: { default: () => ({}) },
943
943
  searchModelModifiers: {}
944
944
  }),
945
- emits: /* @__PURE__ */ Ct(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
945
+ emits: /* @__PURE__ */ kt(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
946
946
  setup(e, { expose: t, emit: n }) {
947
- const o = e, r = n, s = pt(e, "currentPage"), a = pt(e, "pageSize"), i = pt(e, "searchModel"), c = Le(), u = me(), B = me(), m = V(() => o.option), y = V(() => m.value.searchShow !== !1), f = V(() => m.value.paginationShow !== !1), _ = V(
948
- () => o.columns.filter((g) => g.search && !!c[`${g.prop}-search`])
947
+ const o = e, r = n, s = pt(e, "currentPage"), a = pt(e, "pageSize"), i = pt(e, "searchModel"), l = Le(), u = me(), B = me(), m = V(() => o.option), y = V(() => m.value.searchShow !== !1), f = V(() => m.value.paginationShow !== !1), _ = V(
948
+ () => o.columns.filter((g) => g.search && !!l[`${g.prop}-search`])
949
949
  ), v = V(
950
- () => o.columns.filter((g) => !g.hide && !!c[`${g.prop}-header`])
950
+ () => o.columns.filter((g) => !g.hide && !!l[`${g.prop}-header`])
951
951
  ), I = V(
952
- () => o.columns.filter((g) => !g.hide && !!c[`${g.prop}-data`])
952
+ () => o.columns.filter((g) => !g.hide && !!l[`${g.prop}-data`])
953
953
  );
954
954
  function C() {
955
955
  const g = {};
@@ -979,10 +979,10 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
979
979
  /** 关闭筛选表单禁用。 */
980
980
  searchDone: O
981
981
  }), (g, j) => {
982
- const w = Gn;
983
- return k(), Y("div", Lo, [
982
+ const w = Hn;
983
+ return k(), Y("div", Vo, [
984
984
  Q(g.$slots, "header", {}, void 0, !0),
985
- y.value ? (k(), H(_o, {
985
+ y.value ? (k(), H(Co, {
986
986
  key: 0,
987
987
  ref_key: "filterBarRef",
988
988
  ref: B,
@@ -992,7 +992,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
992
992
  option: m.value,
993
993
  onSearch: P,
994
994
  onReset: S
995
- }, Ae({ _: 2 }, [
995
+ }, Ne({ _: 2 }, [
996
996
  ve(_.value, (T) => ({
997
997
  name: `${T.prop}-search`,
998
998
  fn: U((F) => [
@@ -1000,17 +1000,17 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1000
1000
  ])
1001
1001
  }))
1002
1002
  ]), 1032, ["modelValue", "columns", "option"])) : ue("", !0),
1003
- re(c).toolbar ? (k(), Y("div", Eo, [
1003
+ re(l).toolbar ? (k(), Y("div", Po, [
1004
1004
  Q(g.$slots, "toolbar", {}, void 0, !0)
1005
1005
  ])) : ue("", !0),
1006
- jn((k(), H(To, {
1006
+ xn((k(), H(Do, {
1007
1007
  ref_key: "jtTableRef",
1008
1008
  ref: u,
1009
1009
  data: g.data,
1010
1010
  columns: g.columns,
1011
1011
  option: m.value,
1012
1012
  "table-events": g.tableEvents
1013
- }, Ae({ _: 2 }, [
1013
+ }, Ne({ _: 2 }, [
1014
1014
  ve(v.value, (T) => ({
1015
1015
  name: `${T.prop}-header`,
1016
1016
  fn: U((F) => [
@@ -1033,7 +1033,7 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1033
1033
  ]), 1032, ["data", "columns", "option", "table-events"])), [
1034
1034
  [w, m.value.loading]
1035
1035
  ]),
1036
- f.value ? (k(), H(Bo, {
1036
+ f.value ? (k(), H(Eo, {
1037
1037
  key: 2,
1038
1038
  "current-page": s.value,
1039
1039
  "onUpdate:currentPage": j[1] || (j[1] = (T) => s.value = T),
@@ -1047,10 +1047,10 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1047
1047
  ]);
1048
1048
  };
1049
1049
  }
1050
- }), Ba = /* @__PURE__ */ ge(Vo, [["__scopeId", "data-v-ad466273"]]), Po = { class: "jt-page-header__title" }, No = { key: 0 }, Ao = {
1050
+ }), Ea = /* @__PURE__ */ ge(Ao, [["__scopeId", "data-v-ad466273"]]), No = { class: "jt-page-header__title" }, jo = { key: 0 }, zo = {
1051
1051
  key: 0,
1052
1052
  class: "jt-page-header__operates"
1053
- }, jo = /* @__PURE__ */ ce({
1053
+ }, xo = /* @__PURE__ */ ce({
1054
1054
  name: "JtPageHeader",
1055
1055
  __name: "index",
1056
1056
  props: {
@@ -1061,18 +1061,18 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1061
1061
  emits: ["operate-click"],
1062
1062
  setup(e, { emit: t }) {
1063
1063
  const n = e, o = t, r = Le(), s = V(() => n.operates.length > 0 || !!r.operates);
1064
- function a(i, c) {
1065
- i.onClick?.(i, c), o("operate-click", i, c);
1064
+ function a(i, l) {
1065
+ i.onClick?.(i, l), o("operate-click", i, l);
1066
1066
  }
1067
- return (i, c) => (k(), Y("div", oe({
1067
+ return (i, l) => (k(), Y("div", oe({
1068
1068
  class: ["jt-page-header", `jt-page-header--${i.type}`]
1069
1069
  }, i.$attrs), [
1070
- te("div", Po, [
1070
+ te("div", No, [
1071
1071
  Q(i.$slots, "title", {}, () => [
1072
- i.title ? (k(), Y("span", No, fe(i.title), 1)) : ue("", !0)
1072
+ i.title ? (k(), Y("span", jo, fe(i.title), 1)) : ue("", !0)
1073
1073
  ], !0)
1074
1074
  ]),
1075
- s.value ? (k(), Y("div", Ao, [
1075
+ s.value ? (k(), Y("div", zo, [
1076
1076
  Q(i.$slots, "operates", { operates: i.operates }, () => [
1077
1077
  (k(!0), Y(be, null, ve(i.operates, (u) => (k(), H(re(tt), oe({
1078
1078
  key: u.key ?? u.label,
@@ -1096,8 +1096,8 @@ const vo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1096
1096
  ])) : ue("", !0)
1097
1097
  ], 16));
1098
1098
  }
1099
- }), La = /* @__PURE__ */ ge(jo, [["__scopeId", "data-v-9e6bb356"]]);
1100
- function zo(e, t) {
1099
+ }), Va = /* @__PURE__ */ ge(xo, [["__scopeId", "data-v-9e6bb356"]]);
1100
+ function Ro(e, t) {
1101
1101
  t = t || (() => "default-use-once-sync");
1102
1102
  const n = /* @__PURE__ */ new Map();
1103
1103
  async function o(...r) {
@@ -1115,16 +1115,16 @@ function zo(e, t) {
1115
1115
  }
1116
1116
  return o.bind(e);
1117
1117
  }
1118
- function nn(e, t) {
1118
+ function on(e, t) {
1119
1119
  t = t || (() => "default-use-queue-sync");
1120
1120
  const n = /* @__PURE__ */ new Map();
1121
1121
  async function o(...r) {
1122
1122
  const s = t(...r), a = Symbol("single");
1123
- return n.set(s, a), new Promise((i, c) => {
1123
+ return n.set(s, a), new Promise((i, l) => {
1124
1124
  e(...r).then((u) => {
1125
1125
  n.get(s) === a && i(u);
1126
1126
  }).catch((u) => {
1127
- n.get(s) === a && c(u);
1127
+ n.get(s) === a && l(u);
1128
1128
  });
1129
1129
  });
1130
1130
  }
@@ -1134,61 +1134,61 @@ var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1134
1134
  function st(e) {
1135
1135
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1136
1136
  }
1137
- var on = { exports: {} };
1137
+ var rn = { exports: {} };
1138
1138
  (function(e, t) {
1139
1139
  (function(n, o) {
1140
1140
  e.exports = o();
1141
1141
  })(at, function() {
1142
- var n = 1e3, o = 6e4, r = 36e5, s = "millisecond", a = "second", i = "minute", c = "hour", u = "day", B = "week", m = "month", y = "quarter", f = "year", _ = "date", v = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
1143
- var L = ["th", "st", "nd", "rd"], l = N % 100;
1144
- return "[" + N + (L[(l - 20) % 10] || L[l] || L[0]) + "]";
1145
- } }, S = function(N, L, l) {
1146
- var $ = String(N);
1147
- return !$ || $.length >= L ? N : "" + Array(L + 1 - $.length).join(l) + N;
1148
- }, h = { s: S, z: function(N) {
1149
- var L = -N.utcOffset(), l = Math.abs(L), $ = Math.floor(l / 60), b = l % 60;
1142
+ var n = 1e3, o = 6e4, r = 36e5, s = "millisecond", a = "second", i = "minute", l = "hour", u = "day", B = "week", m = "month", y = "quarter", f = "year", _ = "date", v = "Invalid Date", I = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|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, P = { 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(A) {
1143
+ var L = ["th", "st", "nd", "rd"], c = A % 100;
1144
+ return "[" + A + (L[(c - 20) % 10] || L[c] || L[0]) + "]";
1145
+ } }, S = function(A, L, c) {
1146
+ var $ = String(A);
1147
+ return !$ || $.length >= L ? A : "" + Array(L + 1 - $.length).join(c) + A;
1148
+ }, h = { s: S, z: function(A) {
1149
+ var L = -A.utcOffset(), c = Math.abs(L), $ = Math.floor(c / 60), b = c % 60;
1150
1150
  return (L <= 0 ? "+" : "-") + S($, 2, "0") + ":" + S(b, 2, "0");
1151
- }, m: function N(L, l) {
1152
- if (L.date() < l.date()) return -N(l, L);
1153
- var $ = 12 * (l.year() - L.year()) + (l.month() - L.month()), b = L.clone().add($, m), D = l - b < 0, E = L.clone().add($ + (D ? -1 : 1), m);
1154
- return +(-($ + (l - b) / (D ? b - E : E - b)) || 0);
1155
- }, a: function(N) {
1156
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
1157
- }, p: function(N) {
1158
- return { M: m, y: f, w: B, d: u, D: _, h: c, m: i, s: a, ms: s, Q: y }[N] || String(N || "").toLowerCase().replace(/s$/, "");
1159
- }, u: function(N) {
1160
- return N === void 0;
1151
+ }, m: function A(L, c) {
1152
+ if (L.date() < c.date()) return -A(c, L);
1153
+ var $ = 12 * (c.year() - L.year()) + (c.month() - L.month()), b = L.clone().add($, m), D = c - b < 0, E = L.clone().add($ + (D ? -1 : 1), m);
1154
+ return +(-($ + (c - b) / (D ? b - E : E - b)) || 0);
1155
+ }, a: function(A) {
1156
+ return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
1157
+ }, p: function(A) {
1158
+ return { M: m, y: f, w: B, d: u, D: _, h: l, m: i, s: a, ms: s, Q: y }[A] || String(A || "").toLowerCase().replace(/s$/, "");
1159
+ }, u: function(A) {
1160
+ return A === void 0;
1161
1161
  } }, O = "en", g = {};
1162
1162
  g[O] = P;
1163
- var j = "$isDayjsObject", w = function(N) {
1164
- return N instanceof ne || !(!N || !N[j]);
1165
- }, T = function N(L, l, $) {
1163
+ var j = "$isDayjsObject", w = function(A) {
1164
+ return A instanceof ne || !(!A || !A[j]);
1165
+ }, T = function A(L, c, $) {
1166
1166
  var b;
1167
1167
  if (!L) return O;
1168
1168
  if (typeof L == "string") {
1169
1169
  var D = L.toLowerCase();
1170
- g[D] && (b = D), l && (g[D] = l, b = D);
1170
+ g[D] && (b = D), c && (g[D] = c, b = D);
1171
1171
  var E = L.split("-");
1172
- if (!b && E.length > 1) return N(E[0]);
1172
+ if (!b && E.length > 1) return A(E[0]);
1173
1173
  } else {
1174
- var A = L.name;
1175
- g[A] = L, b = A;
1174
+ var N = L.name;
1175
+ g[N] = L, b = N;
1176
1176
  }
1177
1177
  return !$ && b && (O = b), b || !$ && O;
1178
- }, F = function(N, L) {
1179
- if (w(N)) return N.clone();
1180
- var l = typeof L == "object" ? L : {};
1181
- return l.date = N, l.args = arguments, new ne(l);
1178
+ }, F = function(A, L) {
1179
+ if (w(A)) return A.clone();
1180
+ var c = typeof L == "object" ? L : {};
1181
+ return c.date = A, c.args = arguments, new ne(c);
1182
1182
  }, x = h;
1183
- x.l = T, x.i = w, x.w = function(N, L) {
1184
- return F(N, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
1183
+ x.l = T, x.i = w, x.w = function(A, L) {
1184
+ return F(A, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
1185
1185
  };
1186
1186
  var ne = function() {
1187
- function N(l) {
1188
- this.$L = T(l.locale, null, !0), this.parse(l), this.$x = this.$x || l.x || {}, this[j] = !0;
1187
+ function A(c) {
1188
+ this.$L = T(c.locale, null, !0), this.parse(c), this.$x = this.$x || c.x || {}, this[j] = !0;
1189
1189
  }
1190
- var L = N.prototype;
1191
- return L.parse = function(l) {
1190
+ var L = A.prototype;
1191
+ return L.parse = function(c) {
1192
1192
  this.$d = function($) {
1193
1193
  var b = $.date, D = $.utc;
1194
1194
  if (b === null) return /* @__PURE__ */ new Date(NaN);
@@ -1197,34 +1197,34 @@ var on = { exports: {} };
1197
1197
  if (typeof b == "string" && !/Z$/i.test(b)) {
1198
1198
  var E = b.match(I);
1199
1199
  if (E) {
1200
- var A = E[2] - 1 || 0, K = (E[7] || "0").substring(0, 3);
1201
- return D ? new Date(Date.UTC(E[1], A, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, K)) : new Date(E[1], A, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, K);
1200
+ var N = E[2] - 1 || 0, K = (E[7] || "0").substring(0, 3);
1201
+ return D ? new Date(Date.UTC(E[1], N, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, K)) : new Date(E[1], N, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, K);
1202
1202
  }
1203
1203
  }
1204
1204
  return new Date(b);
1205
- }(l), this.init();
1205
+ }(c), this.init();
1206
1206
  }, L.init = function() {
1207
- var l = this.$d;
1208
- this.$y = l.getFullYear(), this.$M = l.getMonth(), this.$D = l.getDate(), this.$W = l.getDay(), this.$H = l.getHours(), this.$m = l.getMinutes(), this.$s = l.getSeconds(), this.$ms = l.getMilliseconds();
1207
+ var c = this.$d;
1208
+ this.$y = c.getFullYear(), this.$M = c.getMonth(), this.$D = c.getDate(), this.$W = c.getDay(), this.$H = c.getHours(), this.$m = c.getMinutes(), this.$s = c.getSeconds(), this.$ms = c.getMilliseconds();
1209
1209
  }, L.$utils = function() {
1210
1210
  return x;
1211
1211
  }, L.isValid = function() {
1212
1212
  return this.$d.toString() !== v;
1213
- }, L.isSame = function(l, $) {
1214
- var b = F(l);
1213
+ }, L.isSame = function(c, $) {
1214
+ var b = F(c);
1215
1215
  return this.startOf($) <= b && b <= this.endOf($);
1216
- }, L.isAfter = function(l, $) {
1217
- return F(l) < this.startOf($);
1218
- }, L.isBefore = function(l, $) {
1219
- return this.endOf($) < F(l);
1220
- }, L.$g = function(l, $, b) {
1221
- return x.u(l) ? this[$] : this.set(b, l);
1216
+ }, L.isAfter = function(c, $) {
1217
+ return F(c) < this.startOf($);
1218
+ }, L.isBefore = function(c, $) {
1219
+ return this.endOf($) < F(c);
1220
+ }, L.$g = function(c, $, b) {
1221
+ return x.u(c) ? this[$] : this.set(b, c);
1222
1222
  }, L.unix = function() {
1223
1223
  return Math.floor(this.valueOf() / 1e3);
1224
1224
  }, L.valueOf = function() {
1225
1225
  return this.$d.getTime();
1226
- }, L.startOf = function(l, $) {
1227
- var b = this, D = !!x.u($) || $, E = x.p(l), A = function(pe, de) {
1226
+ }, L.startOf = function(c, $) {
1227
+ var b = this, D = !!x.u($) || $, E = x.p(c), N = function(pe, de) {
1228
1228
  var Se = x.w(b.$u ? Date.UTC(b.$y, de, pe) : new Date(b.$y, de, pe), b);
1229
1229
  return D ? Se : Se.endOf(u);
1230
1230
  }, K = function(pe, de) {
@@ -1232,16 +1232,16 @@ var on = { exports: {} };
1232
1232
  }, R = this.$W, W = this.$M, ee = this.$D, z = "set" + (this.$u ? "UTC" : "");
1233
1233
  switch (E) {
1234
1234
  case f:
1235
- return D ? A(1, 0) : A(31, 11);
1235
+ return D ? N(1, 0) : N(31, 11);
1236
1236
  case m:
1237
- return D ? A(1, W) : A(0, W + 1);
1237
+ return D ? N(1, W) : N(0, W + 1);
1238
1238
  case B:
1239
1239
  var X = this.$locale().weekStart || 0, ae = (R < X ? R + 7 : R) - X;
1240
- return A(D ? ee - ae : ee + (6 - ae), W);
1240
+ return N(D ? ee - ae : ee + (6 - ae), W);
1241
1241
  case u:
1242
1242
  case _:
1243
1243
  return K(z + "Hours", 0);
1244
- case c:
1244
+ case l:
1245
1245
  return K(z + "Minutes", 1);
1246
1246
  case i:
1247
1247
  return K(z + "Seconds", 2);
@@ -1250,41 +1250,41 @@ var on = { exports: {} };
1250
1250
  default:
1251
1251
  return this.clone();
1252
1252
  }
1253
- }, L.endOf = function(l) {
1254
- return this.startOf(l, !1);
1255
- }, L.$set = function(l, $) {
1256
- var b, D = x.p(l), E = "set" + (this.$u ? "UTC" : ""), A = (b = {}, b[u] = E + "Date", b[_] = E + "Date", b[m] = E + "Month", b[f] = E + "FullYear", b[c] = E + "Hours", b[i] = E + "Minutes", b[a] = E + "Seconds", b[s] = E + "Milliseconds", b)[D], K = D === u ? this.$D + ($ - this.$W) : $;
1253
+ }, L.endOf = function(c) {
1254
+ return this.startOf(c, !1);
1255
+ }, L.$set = function(c, $) {
1256
+ var b, D = x.p(c), E = "set" + (this.$u ? "UTC" : ""), N = (b = {}, b[u] = E + "Date", b[_] = E + "Date", b[m] = E + "Month", b[f] = E + "FullYear", b[l] = E + "Hours", b[i] = E + "Minutes", b[a] = E + "Seconds", b[s] = E + "Milliseconds", b)[D], K = D === u ? this.$D + ($ - this.$W) : $;
1257
1257
  if (D === m || D === f) {
1258
1258
  var R = this.clone().set(_, 1);
1259
- R.$d[A](K), R.init(), this.$d = R.set(_, Math.min(this.$D, R.daysInMonth())).$d;
1260
- } else A && this.$d[A](K);
1259
+ R.$d[N](K), R.init(), this.$d = R.set(_, Math.min(this.$D, R.daysInMonth())).$d;
1260
+ } else N && this.$d[N](K);
1261
1261
  return this.init(), this;
1262
- }, L.set = function(l, $) {
1263
- return this.clone().$set(l, $);
1264
- }, L.get = function(l) {
1265
- return this[x.p(l)]();
1266
- }, L.add = function(l, $) {
1262
+ }, L.set = function(c, $) {
1263
+ return this.clone().$set(c, $);
1264
+ }, L.get = function(c) {
1265
+ return this[x.p(c)]();
1266
+ }, L.add = function(c, $) {
1267
1267
  var b, D = this;
1268
- l = Number(l);
1269
- var E = x.p($), A = function(W) {
1268
+ c = Number(c);
1269
+ var E = x.p($), N = function(W) {
1270
1270
  var ee = F(D);
1271
- return x.w(ee.date(ee.date() + Math.round(W * l)), D);
1271
+ return x.w(ee.date(ee.date() + Math.round(W * c)), D);
1272
1272
  };
1273
- if (E === m) return this.set(m, this.$M + l);
1274
- if (E === f) return this.set(f, this.$y + l);
1275
- if (E === u) return A(1);
1276
- if (E === B) return A(7);
1277
- var K = (b = {}, b[i] = o, b[c] = r, b[a] = n, b)[E] || 1, R = this.$d.getTime() + l * K;
1273
+ if (E === m) return this.set(m, this.$M + c);
1274
+ if (E === f) return this.set(f, this.$y + c);
1275
+ if (E === u) return N(1);
1276
+ if (E === B) return N(7);
1277
+ var K = (b = {}, b[i] = o, b[l] = r, b[a] = n, b)[E] || 1, R = this.$d.getTime() + c * K;
1278
1278
  return x.w(R, this);
1279
- }, L.subtract = function(l, $) {
1280
- return this.add(-1 * l, $);
1281
- }, L.format = function(l) {
1279
+ }, L.subtract = function(c, $) {
1280
+ return this.add(-1 * c, $);
1281
+ }, L.format = function(c) {
1282
1282
  var $ = this, b = this.$locale();
1283
1283
  if (!this.isValid()) return b.invalidDate || v;
1284
- var D = l || "YYYY-MM-DDTHH:mm:ssZ", E = x.z(this), A = this.$H, K = this.$m, R = this.$M, W = b.weekdays, ee = b.months, z = b.meridiem, X = function(de, Se, Oe, Ie) {
1284
+ var D = c || "YYYY-MM-DDTHH:mm:ssZ", E = x.z(this), N = this.$H, K = this.$m, R = this.$M, W = b.weekdays, ee = b.months, z = b.meridiem, X = function(de, Se, Oe, Ie) {
1285
1285
  return de && (de[Se] || de($, D)) || Oe[Se].slice(0, Ie);
1286
1286
  }, ae = function(de) {
1287
- return x.s(A % 12 || 12, de, "0");
1287
+ return x.s(N % 12 || 12, de, "0");
1288
1288
  }, pe = z || function(de, Se, Oe) {
1289
1289
  var Ie = de < 12 ? "AM" : "PM";
1290
1290
  return Oe ? Ie.toLowerCase() : Ie;
@@ -1317,17 +1317,17 @@ var on = { exports: {} };
1317
1317
  case "dddd":
1318
1318
  return W[$.$W];
1319
1319
  case "H":
1320
- return String(A);
1320
+ return String(N);
1321
1321
  case "HH":
1322
- return x.s(A, 2, "0");
1322
+ return x.s(N, 2, "0");
1323
1323
  case "h":
1324
1324
  return ae(1);
1325
1325
  case "hh":
1326
1326
  return ae(2);
1327
1327
  case "a":
1328
- return pe(A, K, !0);
1328
+ return pe(N, K, !0);
1329
1329
  case "A":
1330
- return pe(A, K, !1);
1330
+ return pe(N, K, !1);
1331
1331
  case "m":
1332
1332
  return String(K);
1333
1333
  case "mm":
@@ -1346,11 +1346,11 @@ var on = { exports: {} };
1346
1346
  });
1347
1347
  }, L.utcOffset = function() {
1348
1348
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1349
- }, L.diff = function(l, $, b) {
1350
- var D, E = this, A = x.p($), K = F(l), R = (K.utcOffset() - this.utcOffset()) * o, W = this - K, ee = function() {
1349
+ }, L.diff = function(c, $, b) {
1350
+ var D, E = this, N = x.p($), K = F(c), R = (K.utcOffset() - this.utcOffset()) * o, W = this - K, ee = function() {
1351
1351
  return x.m(E, K);
1352
1352
  };
1353
- switch (A) {
1353
+ switch (N) {
1354
1354
  case f:
1355
1355
  D = ee() / 12;
1356
1356
  break;
@@ -1366,7 +1366,7 @@ var on = { exports: {} };
1366
1366
  case u:
1367
1367
  D = (W - R) / 864e5;
1368
1368
  break;
1369
- case c:
1369
+ case l:
1370
1370
  D = W / r;
1371
1371
  break;
1372
1372
  case i:
@@ -1383,9 +1383,9 @@ var on = { exports: {} };
1383
1383
  return this.endOf(m).$D;
1384
1384
  }, L.$locale = function() {
1385
1385
  return g[this.$L];
1386
- }, L.locale = function(l, $) {
1387
- if (!l) return this.$L;
1388
- var b = this.clone(), D = T(l, $, !0);
1386
+ }, L.locale = function(c, $) {
1387
+ if (!c) return this.$L;
1388
+ var b = this.clone(), D = T(c, $, !0);
1389
1389
  return D && (b.$L = D), b;
1390
1390
  }, L.clone = function() {
1391
1391
  return x.w(this.$d, this);
@@ -1397,27 +1397,27 @@ var on = { exports: {} };
1397
1397
  return this.$d.toISOString();
1398
1398
  }, L.toString = function() {
1399
1399
  return this.$d.toUTCString();
1400
- }, N;
1400
+ }, A;
1401
1401
  }(), q = ne.prototype;
1402
- return F.prototype = q, [["$ms", s], ["$s", a], ["$m", i], ["$H", c], ["$W", u], ["$M", m], ["$y", f], ["$D", _]].forEach(function(N) {
1403
- q[N[1]] = function(L) {
1404
- return this.$g(L, N[0], N[1]);
1402
+ return F.prototype = q, [["$ms", s], ["$s", a], ["$m", i], ["$H", l], ["$W", u], ["$M", m], ["$y", f], ["$D", _]].forEach(function(A) {
1403
+ q[A[1]] = function(L) {
1404
+ return this.$g(L, A[0], A[1]);
1405
1405
  };
1406
- }), F.extend = function(N, L) {
1407
- return N.$i || (N(L, ne, F), N.$i = !0), F;
1408
- }, F.locale = T, F.isDayjs = w, F.unix = function(N) {
1409
- return F(1e3 * N);
1406
+ }), F.extend = function(A, L) {
1407
+ return A.$i || (A(L, ne, F), A.$i = !0), F;
1408
+ }, F.locale = T, F.isDayjs = w, F.unix = function(A) {
1409
+ return F(1e3 * A);
1410
1410
  }, F.en = g[O], F.Ls = g, F.p = {}, F;
1411
1411
  });
1412
- })(on);
1413
- var xo = on.exports;
1414
- const It = /* @__PURE__ */ st(xo);
1415
- var rn = { exports: {} };
1412
+ })(rn);
1413
+ var qo = rn.exports;
1414
+ const _t = /* @__PURE__ */ st(qo);
1415
+ var an = { exports: {} };
1416
1416
  (function(e, t) {
1417
1417
  (function(n, o) {
1418
1418
  e.exports = o();
1419
1419
  })(at, function() {
1420
- var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, s = /\d\d/, a = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, c = {}, u = function(I) {
1420
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, s = /\d\d/, a = /\d\d?/, i = /\d*[^-_:/,()\s\d]+/, l = {}, u = function(I) {
1421
1421
  return (I = +I) + (I > 68 ? 1900 : 2e3);
1422
1422
  }, B = function(I) {
1423
1423
  return function(C) {
@@ -1430,10 +1430,10 @@ var rn = { exports: {} };
1430
1430
  return S === 0 ? 0 : P[0] === "+" ? -S : S;
1431
1431
  }(I);
1432
1432
  }], y = function(I) {
1433
- var C = c[I];
1433
+ var C = l[I];
1434
1434
  return C && (C.indexOf ? C : C.s.concat(C.f));
1435
1435
  }, f = function(I, C) {
1436
- var P, S = c.meridiem;
1436
+ var P, S = l.meridiem;
1437
1437
  if (S) {
1438
1438
  for (var h = 1; h <= 24; h += 1) if (I.indexOf(S(h, 0, C)) > -1) {
1439
1439
  P = h > 12;
@@ -1454,7 +1454,7 @@ var rn = { exports: {} };
1454
1454
  }], SSS: [/\d{3}/, function(I) {
1455
1455
  this.milliseconds = +I;
1456
1456
  }], s: [a, B("seconds")], ss: [a, B("seconds")], m: [a, B("minutes")], mm: [a, B("minutes")], H: [a, B("hours")], h: [a, B("hours")], HH: [a, B("hours")], hh: [a, B("hours")], D: [a, B("day")], DD: [s, B("day")], Do: [i, function(I) {
1457
- var C = c.ordinal, P = I.match(/\d+/);
1457
+ var C = l.ordinal, P = I.match(/\d+/);
1458
1458
  if (this.day = P[0], C) for (var S = 1; S <= 31; S += 1) C(S).replace(/\[|\]/g, "") === I && (this.day = S);
1459
1459
  }], w: [a, B("week")], ww: [s, B("week")], M: [a, B("month")], MM: [s, B("month")], MMM: [i, function(I) {
1460
1460
  var C = y("months"), P = (y("monthsShort") || C.map(function(S) {
@@ -1471,11 +1471,11 @@ var rn = { exports: {} };
1471
1471
  }], YYYY: [/\d{4}/, B("year")], Z: m, ZZ: m };
1472
1472
  function v(I) {
1473
1473
  var C, P;
1474
- C = I, P = c && c.formats;
1474
+ C = I, P = l && l.formats;
1475
1475
  for (var S = (I = C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, x, ne) {
1476
1476
  var q = ne && ne.toUpperCase();
1477
- return x || P[ne] || n[ne] || P[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, L, l) {
1478
- return L || l.slice(1);
1477
+ return x || P[ne] || n[ne] || P[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(A, L, c) {
1478
+ return L || c.slice(1);
1479
1479
  });
1480
1480
  })).match(o), h = S.length, O = 0; O < h; O += 1) {
1481
1481
  var g = S[O], j = _[g], w = j && j[0], T = j && j[1];
@@ -1483,18 +1483,18 @@ var rn = { exports: {} };
1483
1483
  }
1484
1484
  return function(F) {
1485
1485
  for (var x = {}, ne = 0, q = 0; ne < h; ne += 1) {
1486
- var N = S[ne];
1487
- if (typeof N == "string") q += N.length;
1486
+ var A = S[ne];
1487
+ if (typeof A == "string") q += A.length;
1488
1488
  else {
1489
- var L = N.regex, l = N.parser, $ = F.slice(q), b = L.exec($)[0];
1490
- l.call(x, b), F = F.replace(b, "");
1489
+ var L = A.regex, c = A.parser, $ = F.slice(q), b = L.exec($)[0];
1490
+ c.call(x, b), F = F.replace(b, "");
1491
1491
  }
1492
1492
  }
1493
1493
  return function(D) {
1494
1494
  var E = D.afternoon;
1495
1495
  if (E !== void 0) {
1496
- var A = D.hours;
1497
- E ? A < 12 && (D.hours += 12) : A === 12 && (D.hours = 0), delete D.afternoon;
1496
+ var N = D.hours;
1497
+ E ? N < 12 && (D.hours += 12) : N === 12 && (D.hours = 0), delete D.afternoon;
1498
1498
  }
1499
1499
  }(x), x;
1500
1500
  };
@@ -1508,41 +1508,41 @@ var rn = { exports: {} };
1508
1508
  var T = w[1];
1509
1509
  if (typeof T == "string") {
1510
1510
  var F = w[2] === !0, x = w[3] === !0, ne = F || x, q = w[2];
1511
- x && (q = w[2]), c = this.$locale(), !F && q && (c = P.Ls[q]), this.$d = function($, b, D, E) {
1511
+ x && (q = w[2]), l = this.$locale(), !F && q && (l = P.Ls[q]), this.$d = function($, b, D, E) {
1512
1512
  try {
1513
1513
  if (["x", "X"].indexOf(b) > -1) return new Date((b === "X" ? 1e3 : 1) * $);
1514
- var A = v(b)($), K = A.year, R = A.month, W = A.day, ee = A.hours, z = A.minutes, X = A.seconds, ae = A.milliseconds, pe = A.zone, de = A.week, Se = /* @__PURE__ */ new Date(), Oe = W || (K || R ? 1 : Se.getDate()), Ie = K || Se.getFullYear(), xe = 0;
1514
+ var N = v(b)($), K = N.year, R = N.month, W = N.day, ee = N.hours, z = N.minutes, X = N.seconds, ae = N.milliseconds, pe = N.zone, de = N.week, Se = /* @__PURE__ */ new Date(), Oe = W || (K || R ? 1 : Se.getDate()), Ie = K || Se.getFullYear(), xe = 0;
1515
1515
  K && !R || (xe = R > 0 ? R - 1 : Se.getMonth());
1516
1516
  var Re, et = ee || 0, qe = z || 0, p = X || 0, d = ae || 0;
1517
1517
  return pe ? new Date(Date.UTC(Ie, xe, Oe, et, qe, p, d + 60 * pe.offset * 1e3)) : D ? new Date(Date.UTC(Ie, xe, Oe, et, qe, p, d)) : (Re = new Date(Ie, xe, Oe, et, qe, p, d), de && (Re = E(Re).week(de).toDate()), Re);
1518
1518
  } catch {
1519
1519
  return /* @__PURE__ */ new Date("");
1520
1520
  }
1521
- }(g, T, j, P), this.init(), q && q !== !0 && (this.$L = this.locale(q).$L), ne && g != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), c = {};
1522
- } else if (T instanceof Array) for (var N = T.length, L = 1; L <= N; L += 1) {
1521
+ }(g, T, j, P), this.init(), q && q !== !0 && (this.$L = this.locale(q).$L), ne && g != this.format(T) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
1522
+ } else if (T instanceof Array) for (var A = T.length, L = 1; L <= A; L += 1) {
1523
1523
  w[1] = T[L - 1];
1524
- var l = P.apply(this, w);
1525
- if (l.isValid()) {
1526
- this.$d = l.$d, this.$L = l.$L, this.init();
1524
+ var c = P.apply(this, w);
1525
+ if (c.isValid()) {
1526
+ this.$d = c.$d, this.$L = c.$L, this.init();
1527
1527
  break;
1528
1528
  }
1529
- L === N && (this.$d = /* @__PURE__ */ new Date(""));
1529
+ L === A && (this.$d = /* @__PURE__ */ new Date(""));
1530
1530
  }
1531
1531
  else h.call(this, O);
1532
1532
  };
1533
1533
  };
1534
1534
  });
1535
- })(rn);
1536
- var Ro = rn.exports;
1537
- const qo = /* @__PURE__ */ st(Ro);
1538
- var an = { exports: {} };
1535
+ })(an);
1536
+ var Ko = an.exports;
1537
+ const Go = /* @__PURE__ */ st(Ko);
1538
+ var sn = { exports: {} };
1539
1539
  (function(e, t) {
1540
1540
  (function(n, o) {
1541
1541
  e.exports = o();
1542
1542
  })(at, function() {
1543
1543
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1544
1544
  return function(r, s, a) {
1545
- var i, c = function(y, f, _) {
1545
+ var i, l = function(y, f, _) {
1546
1546
  _ === void 0 && (_ = {});
1547
1547
  var v = new Date(y), I = function(C, P) {
1548
1548
  P === void 0 && (P = {});
@@ -1551,7 +1551,7 @@ var an = { exports: {} };
1551
1551
  }(f, _);
1552
1552
  return I.formatToParts(v);
1553
1553
  }, u = function(y, f) {
1554
- for (var _ = c(y, f), v = [], I = 0; I < _.length; I += 1) {
1554
+ for (var _ = l(y, f), v = [], I = 0; I < _.length; I += 1) {
1555
1555
  var C = _[I], P = C.type, S = C.value, h = n[P];
1556
1556
  h >= 0 && (v[h] = parseInt(S, 10));
1557
1557
  }
@@ -1568,7 +1568,7 @@ var an = { exports: {} };
1568
1568
  }
1569
1569
  return _.$x.$timezone = y, _;
1570
1570
  }, B.offsetName = function(y) {
1571
- var f = this.$x.$timezone || a.tz.guess(), _ = c(this.valueOf(), f, { timeZoneName: y }).find(function(v) {
1571
+ var f = this.$x.$timezone || a.tz.guess(), _ = l(this.valueOf(), f, { timeZoneName: y }).find(function(v) {
1572
1572
  return v.type.toLowerCase() === "timezonename";
1573
1573
  });
1574
1574
  return _ && _.value;
@@ -1595,39 +1595,39 @@ var an = { exports: {} };
1595
1595
  };
1596
1596
  };
1597
1597
  });
1598
- })(an);
1599
- var Ko = an.exports;
1600
- const Go = /* @__PURE__ */ st(Ko);
1601
- var sn = { exports: {} };
1598
+ })(sn);
1599
+ var Yo = sn.exports;
1600
+ const Ho = /* @__PURE__ */ st(Yo);
1601
+ var ln = { exports: {} };
1602
1602
  (function(e, t) {
1603
1603
  (function(n, o) {
1604
1604
  e.exports = o();
1605
1605
  })(at, function() {
1606
1606
  var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1607
1607
  return function(s, a, i) {
1608
- var c = a.prototype;
1608
+ var l = a.prototype;
1609
1609
  i.utc = function(v) {
1610
1610
  var I = { date: v, utc: !0, args: arguments };
1611
1611
  return new a(I);
1612
- }, c.utc = function(v) {
1612
+ }, l.utc = function(v) {
1613
1613
  var I = i(this.toDate(), { locale: this.$L, utc: !0 });
1614
1614
  return v ? I.add(this.utcOffset(), n) : I;
1615
- }, c.local = function() {
1615
+ }, l.local = function() {
1616
1616
  return i(this.toDate(), { locale: this.$L, utc: !1 });
1617
1617
  };
1618
- var u = c.parse;
1619
- c.parse = function(v) {
1618
+ var u = l.parse;
1619
+ l.parse = function(v) {
1620
1620
  v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), u.call(this, v);
1621
1621
  };
1622
- var B = c.init;
1623
- c.init = function() {
1622
+ var B = l.init;
1623
+ l.init = function() {
1624
1624
  if (this.$u) {
1625
1625
  var v = this.$d;
1626
1626
  this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
1627
1627
  } else B.call(this);
1628
1628
  };
1629
- var m = c.utcOffset;
1630
- c.utcOffset = function(v, I) {
1629
+ var m = l.utcOffset;
1630
+ l.utcOffset = function(v, I) {
1631
1631
  var C = this.$utils().u;
1632
1632
  if (C(v)) return this.$u ? 0 : C(this.$offset) ? m.call(this) : this.$offset;
1633
1633
  if (typeof v == "string" && (v = function(O) {
@@ -1644,38 +1644,38 @@ var sn = { exports: {} };
1644
1644
  var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1645
1645
  return (S = this.local().add(P + h, n)).$offset = P, S.$x.$localOffset = h, S;
1646
1646
  };
1647
- var y = c.format;
1648
- c.format = function(v) {
1647
+ var y = l.format;
1648
+ l.format = function(v) {
1649
1649
  var I = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1650
1650
  return y.call(this, I);
1651
- }, c.valueOf = function() {
1651
+ }, l.valueOf = function() {
1652
1652
  var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1653
1653
  return this.$d.valueOf() - 6e4 * v;
1654
- }, c.isUTC = function() {
1654
+ }, l.isUTC = function() {
1655
1655
  return !!this.$u;
1656
- }, c.toISOString = function() {
1656
+ }, l.toISOString = function() {
1657
1657
  return this.toDate().toISOString();
1658
- }, c.toString = function() {
1658
+ }, l.toString = function() {
1659
1659
  return this.toDate().toUTCString();
1660
1660
  };
1661
- var f = c.toDate;
1662
- c.toDate = function(v) {
1661
+ var f = l.toDate;
1662
+ l.toDate = function(v) {
1663
1663
  return v === "s" && this.$offset ? i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : f.call(this);
1664
1664
  };
1665
- var _ = c.diff;
1666
- c.diff = function(v, I, C) {
1665
+ var _ = l.diff;
1666
+ l.diff = function(v, I, C) {
1667
1667
  if (v && this.$u === v.$u) return _.call(this, v, I, C);
1668
1668
  var P = this.local(), S = i(v).local();
1669
1669
  return _.call(P, S, I, C);
1670
1670
  };
1671
1671
  };
1672
1672
  });
1673
- })(sn);
1674
- var Yo = sn.exports;
1675
- const Ho = /* @__PURE__ */ st(Yo);
1676
- It.extend(Ho);
1677
- It.extend(Go);
1678
- It.extend(qo);
1673
+ })(ln);
1674
+ var Uo = ln.exports;
1675
+ const Jo = /* @__PURE__ */ st(Uo);
1676
+ _t.extend(Jo);
1677
+ _t.extend(Ho);
1678
+ _t.extend(Go);
1679
1679
  const ht = /\$\{([^}]+)\}/g;
1680
1680
  function ze(e) {
1681
1681
  if (!e)
@@ -1684,9 +1684,9 @@ function ze(e) {
1684
1684
  return (e.cascadeDependFields ?? []).forEach((n) => {
1685
1685
  const o = String(n ?? "").trim();
1686
1686
  o && t.add(o);
1687
- }), Uo(e.interface).forEach((n) => t.add(n)), [...t];
1687
+ }), Wo(e.interface).forEach((n) => t.add(n)), [...t];
1688
1688
  }
1689
- function Uo(e) {
1689
+ function Wo(e) {
1690
1690
  if (!e || typeof e != "object")
1691
1691
  return [];
1692
1692
  const t = e.params;
@@ -1712,11 +1712,11 @@ function yt(e, t) {
1712
1712
  !e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
1713
1713
  }
1714
1714
  function Qe(e) {
1715
- return Bt(e.type || e.fieldType || e.frontInputType) || Bt(e.renderType) || "text";
1716
- }
1717
- function _t(e) {
1718
1715
  return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
1719
1716
  }
1717
+ function $t(e) {
1718
+ return Et(e.type || e.fieldType || e.frontInputType) || Et(e.renderType) || "text";
1719
+ }
1720
1720
  function Ce(e) {
1721
1721
  if (e == null) return !0;
1722
1722
  if (typeof e == "string") return e.trim() === "";
@@ -1729,42 +1729,42 @@ function Ce(e) {
1729
1729
  }
1730
1730
  return !1;
1731
1731
  }
1732
- function ln(e) {
1732
+ function cn(e) {
1733
1733
  if (e instanceof Error) return !0;
1734
1734
  if (!e || typeof e != "object") return !1;
1735
1735
  const t = e;
1736
1736
  return typeof t.message == "string" && (typeof t.stack == "string" || t.name === "Error");
1737
1737
  }
1738
- function cn(e, t, n = "-") {
1739
- const o = _t(e);
1740
- return o === "empty" || Ce(t) ? n : ln(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? or(e, t, n) : o === "switch" ? un(t) ? "是" : "否" : o === "file" ? rr(t, n) : o === "multi-row" ? ar(t, n) : String(t);
1738
+ function un(e, t, n = "-") {
1739
+ const o = $t(e);
1740
+ return o === "empty" || Ce(t) ? n : cn(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? ar(e, t, n) : o === "switch" ? dn(t) ? "是" : "否" : o === "file" ? sr(t, n) : o === "multi-row" ? ir(t, n) : String(t);
1741
1741
  }
1742
1742
  function it(e, t) {
1743
1743
  return Array.isArray(t) ? t : ct(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [t] : [t];
1744
1744
  }
1745
- function Jo(e, t) {
1745
+ function Zo(e, t) {
1746
1746
  return ct(e) ? it(e, t) : t;
1747
1747
  }
1748
- function Wo(e, t) {
1748
+ function Qo(e, t) {
1749
1749
  return !ct(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
1750
1750
  }
1751
- function un(e) {
1751
+ function dn(e) {
1752
1752
  if (typeof e == "boolean") return e;
1753
1753
  if (typeof e == "number") return e !== 0;
1754
1754
  const t = String(e ?? "").trim().toLowerCase();
1755
1755
  return ["true", "1", "y", "yes", "t", "是"].includes(t);
1756
1756
  }
1757
1757
  function lt(e, t, n, o = {}) {
1758
- const r = er(o);
1759
- return e.filter((s) => s.visible ? !tr(s, t, n, r, o.rows) : !1);
1760
- }
1761
- function Dt(e) {
1762
- return fn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
1758
+ const r = nr(o);
1759
+ return e.filter((s) => s.visible ? !or(s, t, n, r, o.rows) : !1);
1763
1760
  }
1764
1761
  function Ft(e) {
1765
- return fn(e).includes("seqno");
1762
+ return pn(e).some((n) => ["序号", "index", "idx", "seq", "seqno", "serial", "order", "rownum", "row_no"].includes(n));
1766
1763
  }
1767
- function Zo(e) {
1764
+ function Bt(e) {
1765
+ return pn(e).includes("seqno");
1766
+ }
1767
+ function Xo(e) {
1768
1768
  return [
1769
1769
  e.type,
1770
1770
  e.fieldType,
@@ -1772,12 +1772,12 @@ function Zo(e) {
1772
1772
  e.raw?.type,
1773
1773
  e.raw?.fieldType,
1774
1774
  e.raw?.frontInputType
1775
- ].some((t) => pn(t) === "attach");
1775
+ ].some((t) => mn(t) === "attach");
1776
1776
  }
1777
- function dn(e, t, n = "-") {
1778
- return !Zo(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, s) => Qo(r, s, n)).filter((r) => !!r);
1777
+ function fn(e, t, n = "-") {
1778
+ return !Xo(e) || Ce(t) ? [] : (Array.isArray(t) ? t : [t]).map((r, s) => er(r, s, n)).filter((r) => !!r);
1779
1779
  }
1780
- function Qo(e, t, n) {
1780
+ function er(e, t, n) {
1781
1781
  if (Ce(e)) return null;
1782
1782
  if (typeof e == "string") {
1783
1783
  const o = e.trim();
@@ -1796,10 +1796,10 @@ function Qo(e, t, n) {
1796
1796
  text: e.name || n
1797
1797
  };
1798
1798
  if (e && typeof e == "object") {
1799
- const o = e, r = Xo(o, n), s = De(o.url);
1799
+ const o = e, r = tr(o, n), s = De(o.url);
1800
1800
  if (s) {
1801
- const i = { url: s }, c = De(o.name), u = De(o.mimeType), B = De(o.extension);
1802
- return c && (i.name = c), u && (i.mimeType = u), B && (i.extension = B), {
1801
+ const i = { url: s }, l = De(o.name), u = De(o.mimeType), B = De(o.extension);
1802
+ return l && (i.name = l), u && (i.mimeType = u), B && (i.extension = B), {
1803
1803
  key: String(t),
1804
1804
  text: r,
1805
1805
  action: {
@@ -1828,24 +1828,24 @@ function Qo(e, t, n) {
1828
1828
  text: String(e).trim() || n
1829
1829
  };
1830
1830
  }
1831
- function Xo(e, t) {
1831
+ function tr(e, t) {
1832
1832
  return De(e.name) || De(e.fileName) || De(e.filename) || De(e.url) || De(e.fileId) || t;
1833
1833
  }
1834
1834
  function De(e) {
1835
1835
  return String(e ?? "").trim();
1836
1836
  }
1837
- function Bt(e) {
1837
+ function Lt(e) {
1838
1838
  const t = String(e ?? "").toLowerCase();
1839
1839
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" ? "select" : t === "text" || t === "textarea" || t === "select" || t === "select_remote" || t === "date" || t === "number" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : "";
1840
1840
  }
1841
- function Lt(e) {
1841
+ function Et(e) {
1842
1842
  const t = String(e ?? "").toLowerCase();
1843
1843
  return t === "upload" || t === "attachment" || t === "attach" ? "file" : t === "radio" || t === "checkbox" || t === "select_remote" ? "select" : t === "select" || t === "switch" || t === "file" || t === "html" || t === "code" || t === "multi-row" || t === "empty" ? t : t === "textarea" || t === "date" || t === "number" || t === "text" ? "text" : "";
1844
1844
  }
1845
- function er(e) {
1845
+ function nr(e) {
1846
1846
  return e.rows?.length ? e.rows : [e.values ?? {}];
1847
1847
  }
1848
- function tr(e, t, n, o, r) {
1848
+ function or(e, t, n, o, r) {
1849
1849
  const s = n?.hiddenRule;
1850
1850
  return s ? o.some((a) => {
1851
1851
  try {
@@ -1864,8 +1864,8 @@ function tr(e, t, n, o, r) {
1864
1864
  }
1865
1865
  }) : !1;
1866
1866
  }
1867
- function fn(e) {
1868
- return nr([
1867
+ function pn(e) {
1868
+ return rr([
1869
1869
  e.id,
1870
1870
  e.key,
1871
1871
  e.code,
@@ -1874,34 +1874,34 @@ function fn(e) {
1874
1874
  e.prop
1875
1875
  ]);
1876
1876
  }
1877
- function nr(e) {
1878
- return Array.from(new Set(e.map((t) => pn(t)).filter(Boolean)));
1877
+ function rr(e) {
1878
+ return Array.from(new Set(e.map((t) => mn(t)).filter(Boolean)));
1879
1879
  }
1880
- function pn(e) {
1880
+ function mn(e) {
1881
1881
  return String(e ?? "").trim().toLowerCase();
1882
1882
  }
1883
- function or(e, t, n) {
1883
+ function ar(e, t, n) {
1884
1884
  const o = ct(e);
1885
1885
  if (Array.isArray(t) || o) {
1886
- const r = it(e, t).map((a) => Et(e, a) || String(a ?? "").trim()).filter(Boolean), s = o ? "," : "、";
1886
+ const r = it(e, t).map((a) => Vt(e, a) || String(a ?? "").trim()).filter(Boolean), s = o ? "," : "、";
1887
1887
  return r.length > 0 ? r.join(s) : n;
1888
1888
  }
1889
- return Et(e, t) || String(t).trim() || n;
1889
+ return Vt(e, t) || String(t).trim() || n;
1890
1890
  }
1891
1891
  function ct(e) {
1892
- return !!e.props?.multiple && (Qe(e) === "select" || _t(e) === "select");
1892
+ return !!e.props?.multiple && (Qe(e) === "select" || $t(e) === "select");
1893
1893
  }
1894
- function Et(e, t) {
1894
+ function Vt(e, t) {
1895
1895
  return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
1896
1896
  }
1897
- function rr(e, t) {
1897
+ function sr(e, t) {
1898
1898
  if (Array.isArray(e)) {
1899
- const n = e.map((o) => Vt(o)).filter(Boolean);
1899
+ const n = e.map((o) => Pt(o)).filter(Boolean);
1900
1900
  return n.length > 0 ? n.join("、") : t;
1901
1901
  }
1902
- return Vt(e) || t;
1902
+ return Pt(e) || t;
1903
1903
  }
1904
- function Vt(e) {
1904
+ function Pt(e) {
1905
1905
  if (typeof File < "u" && e instanceof File) return e.name;
1906
1906
  if (e && typeof e == "object") {
1907
1907
  const t = e;
@@ -1909,11 +1909,11 @@ function Vt(e) {
1909
1909
  }
1910
1910
  return String(e ?? "").trim();
1911
1911
  }
1912
- function ar(e, t) {
1913
- return Array.isArray(e) ? e.map((o) => ln(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Ce(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
1912
+ function ir(e, t) {
1913
+ return Array.isArray(e) ? e.map((o) => cn(o) ? (console.error("[globalInfo] multi-row field item render failed", o), "") : Ce(o) ? "" : o && typeof o == "object" ? JSON.stringify(o) : String(o).trim()).filter(Boolean).join(`
1914
1914
  `) || t : String(e).trim() || t;
1915
1915
  }
1916
- function sr(e = null) {
1916
+ function lr(e = null) {
1917
1917
  return {
1918
1918
  scheme: null,
1919
1919
  node: null,
@@ -1926,23 +1926,23 @@ function sr(e = null) {
1926
1926
  raw: e
1927
1927
  };
1928
1928
  }
1929
- function Pt(e) {
1930
- const t = bn(e), n = yn(t), o = gr(t).flatMap((r) => gn(r, n));
1929
+ function At(e) {
1930
+ const t = wn(e), n = Sn(t), o = br(t).flatMap((r) => bn(r, n));
1931
1931
  return {
1932
- ...sr(e),
1932
+ ...lr(e),
1933
1933
  scheme: n,
1934
1934
  topNodes: o,
1935
1935
  treeNodes: o
1936
1936
  };
1937
1937
  }
1938
- function mn(e, t, n) {
1938
+ function vn(e, t, n) {
1939
1939
  return e.map((o) => o.key === t || o.tagId === t || o.id === t ? { ...o, children: n, loaded: !0 } : {
1940
1940
  ...o,
1941
- children: mn(o.children, t, n)
1941
+ children: vn(o.children, t, n)
1942
1942
  });
1943
1943
  }
1944
- function ir(e, t = {}, n = null) {
1945
- const o = bn(e), r = yn(o, t), s = ur(o, t, n), a = Object.fromEntries(s.map((i) => [i.key, i]));
1944
+ function cr(e, t = {}, n = null) {
1945
+ const o = wn(e), r = Sn(o, t), s = fr(o, t, n), a = Object.fromEntries(s.map((i) => [i.key, i]));
1946
1946
  return {
1947
1947
  scheme: r,
1948
1948
  node: n,
@@ -1955,11 +1955,11 @@ function ir(e, t = {}, n = null) {
1955
1955
  raw: e
1956
1956
  };
1957
1957
  }
1958
- function lr(e) {
1958
+ function ur(e) {
1959
1959
  return e.multRow || e.htmlDisplay === "T" ? "table" : "form";
1960
1960
  }
1961
- function cr(e, t = {}) {
1962
- const n = e.renderType === "table" ? e.rows.map(bt) : [bt(e.model)], o = se(e.operationInfo), r = se(o.editInfoSet), s = se(r.params), a = se(o.queryInfoSet), i = se(a.params);
1961
+ function dr(e, t = {}) {
1962
+ const n = e.renderType === "table" ? e.rows.map((l) => bt(St(l))) : [bt(St(e.model))], o = se(e.operationInfo), r = se(o.editInfoSet), s = se(r.params), a = se(o.queryInfoSet), i = se(a.params);
1963
1963
  return {
1964
1964
  ...t,
1965
1965
  infSchmId: t.infSchmId ?? le(e.raw.infSchmId),
@@ -1975,12 +1975,20 @@ function cr(e, t = {}) {
1975
1975
  section: e
1976
1976
  };
1977
1977
  }
1978
- function Ea(e) {
1978
+ function bt(e) {
1979
+ return Object.fromEntries(
1980
+ Object.entries(e).map(([t, n]) => [t, hn(n)])
1981
+ );
1982
+ }
1983
+ function hn(e) {
1984
+ return e === "" ? null : Array.isArray(e) ? e.map(hn) : e && typeof e == "object" ? bt(e) : e;
1985
+ }
1986
+ function Pa(e) {
1979
1987
  const t = e;
1980
1988
  return !!(t && typeof t == "object" && typeof t.key == "string" && typeof t.tagId == "string");
1981
1989
  }
1982
- function vn(e) {
1983
- const t = Sn(e);
1990
+ function gn(e) {
1991
+ const t = In(e);
1984
1992
  return (Array.isArray(t) ? t : Je(se(t), ["options", "list", "records", "data"])).map((o) => {
1985
1993
  const r = se(o), s = r.fieldvalue ?? r.fieldValue;
1986
1994
  return {
@@ -1993,12 +2001,12 @@ function vn(e) {
1993
2001
  };
1994
2002
  });
1995
2003
  }
1996
- function ur(e, t, n) {
2004
+ function fr(e, t, n) {
1997
2005
  const o = Je(e, ["sections", "sets", "list"]);
1998
2006
  return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
1999
2007
  }
2000
2008
  function Nt(e, t, n, o) {
2001
- const r = se(e), s = dr(r.infSetMark ?? r), a = fr(r.infSetFields ?? r.fields ?? []), i = mr(r.infSetValues ?? r.rows ?? r.data, a), c = i[0] ? bt(i[0]) : hn(a), u = se(r.tag), B = Z(
2009
+ const r = se(e), s = pr(r.infSetMark ?? r), a = mr(r.infSetFields ?? r.fields ?? []), i = hr(r.infSetValues ?? r.rows ?? r.data, a), l = i[0] ? St(i[0]) : yn(a), u = se(r.tag), B = Z(
2002
2010
  r.tagId ?? r.infTagId ?? u.tagId ?? u.infTagId ?? s.raw.tagId ?? s.raw.infTagId
2003
2011
  ), m = Z(t.tagId ?? n?.tagId), y = Z(n?.key), f = o ? t.infSetId ?? n?.infSetId : void 0, _ = o ? t.setId : void 0, v = o ? n?.code : void 0, I = s.setId || Z(r.setId), C = Z(r.infSetId) || I || Z(f), P = I || Z(_ ?? C), S = s.code || Z(r.code ?? v ?? P), h = P || S || C || B, O = {
2004
2012
  key: h,
@@ -2010,17 +2018,17 @@ function Nt(e, t, n, o) {
2010
2018
  ownerNodeKey: y || void 0,
2011
2019
  infSetId: C,
2012
2020
  title: s.name || Z(r.name ?? n?.tagName ?? h),
2013
- renderType: lr(s),
2021
+ renderType: ur(s),
2014
2022
  mark: s,
2015
2023
  fields: a,
2016
- model: c,
2024
+ model: l,
2017
2025
  rows: i,
2018
2026
  operationInfo: ut(t.operationInfo ?? r.operationInfo),
2019
2027
  raw: r
2020
2028
  };
2021
- return O.renderType === "form" && i.length === 0 && (O.rows = [{ ...c, __rowKey: `${h}-0` }]), O;
2029
+ return O.renderType === "form" && i.length === 0 && (O.rows = [{ ...l, __rowKey: `${h}-0` }]), O;
2022
2030
  }
2023
- function dr(e) {
2031
+ function pr(e) {
2024
2032
  const t = se(e), n = Z(t.htmlDisplay || "F");
2025
2033
  return {
2026
2034
  name: Z(t.name ?? t.title),
@@ -2035,21 +2043,21 @@ function dr(e) {
2035
2043
  raw: t
2036
2044
  };
2037
2045
  }
2038
- function fr(e) {
2039
- return (Array.isArray(e) ? e : []).map((n, o) => pr(n, o));
2046
+ function mr(e) {
2047
+ return (Array.isArray(e) ? e : []).map((n, o) => vr(n, o));
2040
2048
  }
2041
- function pr(e, t) {
2042
- const n = se(e), o = Z(n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`), r = Z(n.label ?? n.name ?? n.tagName ?? o), s = wn(n.interface ?? n.interfaceField), a = At(n.cascadeDependFields);
2049
+ function vr(e, t) {
2050
+ const n = se(e), o = Z(n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`), r = Z(n.label ?? n.name ?? n.tagName ?? o), s = _n(n.interface ?? n.interfaceField), a = jt(n.cascadeDependFields);
2043
2051
  return {
2044
2052
  id: Z(n.id ?? n.key ?? n.prop ?? o),
2045
2053
  key: Z(n.key ?? n.prop ?? o),
2046
2054
  code: o,
2047
2055
  label: r,
2048
2056
  value: n.value ?? n.defaultValue ?? "",
2049
- type: Sr(n),
2057
+ type: Ir(n),
2050
2058
  fieldType: le(n.fieldType),
2051
2059
  frontInputType: le(n.frontInputType),
2052
- renderType: br(n),
2060
+ renderType: wr(n),
2053
2061
  required: $e(n.required ?? n.isRequired),
2054
2062
  readonly: $e(n.readonly ?? n.disabled),
2055
2063
  visible: n.visible === void 0 ? $e(n.visibled ?? !0) : $e(n.visible),
@@ -2057,39 +2065,39 @@ function pr(e, t) {
2057
2065
  multRow: $e(n.multRow),
2058
2066
  isRequired: $e(n.isRequired),
2059
2067
  disabled: n.disabled === void 0 ? void 0 : $e(n.disabled),
2060
- span: $n(n.span ?? n.colSpan),
2061
- width: jt(n.width),
2062
- minWidth: jt(n.minWidth),
2068
+ span: kn(n.span ?? n.colSpan),
2069
+ width: zt(n.width),
2070
+ minWidth: zt(n.minWidth),
2063
2071
  placeholder: le(n.placeholder),
2064
- options: vn(n.options),
2072
+ options: gn(n.options),
2065
2073
  interface: s,
2066
- cascadeClearFields: At(n.cascadeClearFields),
2074
+ cascadeClearFields: jt(n.cascadeClearFields),
2067
2075
  cascadeDependFields: ze({
2068
2076
  cascadeDependFields: a,
2069
2077
  interface: s
2070
2078
  }),
2071
- props: wr(n),
2072
- formItemProps: In(n.formItemProps),
2079
+ props: _r(n),
2080
+ formItemProps: $n(n.formItemProps),
2073
2081
  raw: n
2074
2082
  };
2075
2083
  }
2076
- function mr(e, t) {
2084
+ function hr(e, t) {
2077
2085
  if (Array.isArray(e) && e.some((r) => {
2078
2086
  const s = se(r);
2079
2087
  return t.some((a) => s[a.code] !== void 0 || s[a.key] !== void 0);
2080
2088
  }))
2081
2089
  return e.map((r, s) => ({ ...se(r), __rowKey: Z(se(r).__rowKey ?? se(r).key ?? s) }));
2082
- const n = hn(t);
2090
+ const n = yn(t);
2083
2091
  return Object.keys(n).length ? [{ ...n, __rowKey: "0" }] : [];
2084
2092
  }
2085
- function hn(e) {
2093
+ function yn(e) {
2086
2094
  return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
2087
2095
  }
2088
- function gn(e, t, n = "") {
2089
- const o = se(e), r = Je(o, ["children", "list", "tags"]).flatMap((a) => gn(a, t, Z(o.tagId ?? o.id ?? o.key))), s = yr(o.infSetList);
2090
- return r.length === 0 && s.length > 0 ? s.map((a, i) => hr(o, a, t, n, i)) : [vr(o, t, n, r)];
2096
+ function bn(e, t, n = "") {
2097
+ const o = se(e), r = Je(o, ["children", "list", "tags"]).flatMap((a) => bn(a, t, Z(o.tagId ?? o.id ?? o.key))), s = Sr(o.infSetList);
2098
+ return r.length === 0 && s.length > 0 ? s.map((a, i) => yr(o, a, t, n, i)) : [gr(o, t, n, r)];
2091
2099
  }
2092
- function vr(e, t, n, o) {
2100
+ function gr(e, t, n, o) {
2093
2101
  const r = Z(e.tagId ?? e.id ?? e.key), s = Z(e.tagName ?? e.name ?? e.label ?? r);
2094
2102
  return {
2095
2103
  key: Z(e.key ?? r),
@@ -2098,7 +2106,7 @@ function vr(e, t, n, o) {
2098
2106
  tagName: s,
2099
2107
  label: s,
2100
2108
  tagLevel: le(e.tagLevel ?? e.level) ?? null,
2101
- level: _n(e.tagLevel ?? e.level),
2109
+ level: Cn(e.tagLevel ?? e.level),
2102
2110
  parentTagId: le(e.parentTagId ?? e.parentId ?? n),
2103
2111
  parentId: le(e.parentTagId ?? e.parentId ?? n) ?? null,
2104
2112
  infSchmId: le(e.infSchmId ?? t?.infSchmId),
@@ -2113,8 +2121,8 @@ function vr(e, t, n, o) {
2113
2121
  raw: e
2114
2122
  };
2115
2123
  }
2116
- function hr(e, t, n, o, r) {
2117
- const s = Z(e.tagId ?? e.id ?? e.key), a = Z(e.tagName ?? e.name ?? e.label ?? s), i = t.infSetId || Z(t.setId), c = t.setId || i, u = i || `${s}-${r}`;
2124
+ function yr(e, t, n, o, r) {
2125
+ const s = Z(e.tagId ?? e.id ?? e.key), a = Z(e.tagName ?? e.name ?? e.label ?? s), i = t.infSetId || Z(t.setId), l = t.setId || i, u = i || `${s}-${r}`;
2118
2126
  return {
2119
2127
  key: u,
2120
2128
  id: u,
@@ -2122,13 +2130,13 @@ function hr(e, t, n, o, r) {
2122
2130
  tagName: a,
2123
2131
  label: a,
2124
2132
  tagLevel: le(e.tagLevel ?? e.level) ?? null,
2125
- level: _n(e.tagLevel ?? e.level),
2133
+ level: Cn(e.tagLevel ?? e.level),
2126
2134
  parentTagId: le(e.parentTagId ?? e.parentId ?? o),
2127
2135
  parentId: le(e.parentTagId ?? e.parentId ?? o) ?? null,
2128
2136
  infSchmId: le(e.infSchmId ?? n?.infSchmId),
2129
2137
  schemeId: Z(e.infSchmId ?? n?.infSchmId),
2130
2138
  infSetId: i,
2131
- setId: c,
2139
+ setId: l,
2132
2140
  code: le(e.code ?? i),
2133
2141
  children: [],
2134
2142
  infSetList: [t],
@@ -2137,12 +2145,12 @@ function hr(e, t, n, o, r) {
2137
2145
  raw: {
2138
2146
  ...e,
2139
2147
  infSetId: i,
2140
- setId: c,
2148
+ setId: l,
2141
2149
  infSetList: [t.raw]
2142
2150
  }
2143
2151
  };
2144
2152
  }
2145
- function yn(e, t = {}) {
2153
+ function Sn(e, t = {}) {
2146
2154
  const n = se(e.globalInfoSchmMark ?? e.scheme ?? e), o = Z(n.infSchmId ?? t.infSchmId), r = Z(n.emplid ?? t.emplid);
2147
2155
  return !o && !r && Object.keys(n).length === 0 ? null : {
2148
2156
  infSchmId: o,
@@ -2153,13 +2161,13 @@ function yn(e, t = {}) {
2153
2161
  raw: n
2154
2162
  };
2155
2163
  }
2156
- function gr(e) {
2164
+ function br(e) {
2157
2165
  if (Array.isArray(e.globalInfoSchmConfig))
2158
2166
  return e.globalInfoSchmConfig;
2159
2167
  const t = se(e.globalInfoSchmConfig), n = Je(t, ["children", "tree", "list", "tags"]);
2160
2168
  return n.length ? n : Je(e, ["children", "tree", "list", "tags", "records"]);
2161
2169
  }
2162
- function yr(e) {
2170
+ function Sr(e) {
2163
2171
  return Array.isArray(e) ? e.map((t) => {
2164
2172
  const n = se(t);
2165
2173
  return {
@@ -2170,10 +2178,10 @@ function yr(e) {
2170
2178
  };
2171
2179
  }) : [];
2172
2180
  }
2173
- function bn(e) {
2174
- return se(Sn(e));
2181
+ function wn(e) {
2182
+ return se(In(e));
2175
2183
  }
2176
- function Sn(e) {
2184
+ function In(e) {
2177
2185
  const t = se(e);
2178
2186
  return t.data ?? t.result ?? e;
2179
2187
  }
@@ -2185,54 +2193,54 @@ function Je(e, t) {
2185
2193
  }
2186
2194
  return [];
2187
2195
  }
2188
- function bt(e) {
2196
+ function St(e) {
2189
2197
  const t = { ...e };
2190
2198
  return delete t.__rowKey, delete t.fields, t;
2191
2199
  }
2192
- function wn(e) {
2200
+ function _n(e) {
2193
2201
  const t = se(e);
2194
2202
  if (!(!t.method && !t.url && !t.params))
2195
2203
  return {
2196
2204
  ...t,
2197
2205
  method: le(t.method),
2198
2206
  url: le(t.url),
2199
- params: In(t.params)
2207
+ params: $n(t.params)
2200
2208
  };
2201
2209
  }
2202
2210
  function ut(e) {
2203
2211
  const t = se(e);
2204
2212
  if (Object.keys(t).length !== 0)
2205
2213
  return Object.fromEntries(
2206
- Object.entries(t).map(([n, o]) => [n, wn(o) ?? o])
2214
+ Object.entries(t).map(([n, o]) => [n, _n(o) ?? o])
2207
2215
  );
2208
2216
  }
2209
- function At(e) {
2217
+ function jt(e) {
2210
2218
  if (!Array.isArray(e))
2211
2219
  return;
2212
2220
  const t = e.map((n) => Z(n)).filter(Boolean);
2213
2221
  return t.length ? t : void 0;
2214
2222
  }
2215
- function br(e) {
2223
+ function wr(e) {
2216
2224
  if ($e(e.htmlDisplay)) return "html";
2217
2225
  if ($e(e.multRow)) return "multi-row";
2218
2226
  const t = Z(e.renderType).toLowerCase();
2219
2227
  return t === "code" || t === "empty" ? t : "text";
2220
2228
  }
2221
- function Sr(e) {
2229
+ function Ir(e) {
2222
2230
  const t = Z(e.fieldType ?? e.type ?? e.frontInputType ?? e.renderType).toLowerCase();
2223
2231
  return t === "dtpicker" || t.includes("date") ? "date" : t === "select_remote" ? "select_remote" : t.includes("select") || t.includes("enum") || t.includes("radio") || t.includes("checkbox") ? "select" : t.includes("number") || t.includes("int") ? "number" : t.includes("bool") || t.includes("switch") ? "switch" : t.includes("file") || t.includes("upload") || t.includes("attachment") || t === "attach" ? "file" : t.includes("textarea") || t.includes("text_area") ? "textarea" : "text";
2224
2232
  }
2225
- function In(e) {
2233
+ function $n(e) {
2226
2234
  const t = se(e);
2227
2235
  return Object.keys(t).length ? t : void 0;
2228
2236
  }
2229
- function wr(e) {
2237
+ function _r(e) {
2230
2238
  const t = {
2231
2239
  ...se(e.props)
2232
2240
  };
2233
2241
  return e.multiple !== void 0 && (t.multiple = $e(e.multiple)), Object.keys(t).length ? t : void 0;
2234
2242
  }
2235
- function jt(e) {
2243
+ function zt(e) {
2236
2244
  return typeof e == "string" || typeof e == "number" ? e : void 0;
2237
2245
  }
2238
2246
  function se(e) {
@@ -2244,11 +2252,11 @@ function Z(e) {
2244
2252
  function le(e) {
2245
2253
  return Z(e) || void 0;
2246
2254
  }
2247
- function _n(e) {
2248
- const t = $n(e);
2255
+ function Cn(e) {
2256
+ const t = kn(e);
2249
2257
  return t === void 0 ? null : t;
2250
2258
  }
2251
- function $n(e) {
2259
+ function kn(e) {
2252
2260
  if (e == null || e === "") return;
2253
2261
  const t = Number(e);
2254
2262
  return Number.isFinite(t) ? t : void 0;
@@ -2256,7 +2264,7 @@ function $n(e) {
2256
2264
  function $e(e) {
2257
2265
  return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
2258
2266
  }
2259
- const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Ir = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Ir).filter(Boolean))), Ge = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
2267
+ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, $r = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map($r).filter(Boolean))), Ge = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
2260
2268
  e?.key,
2261
2269
  e?.id,
2262
2270
  e?.setId,
@@ -2265,7 +2273,7 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Ir = (e) => Str
2265
2273
  e?.code,
2266
2274
  ...(e?.infSetList ?? []).map((t) => t.infSetId),
2267
2275
  ...(e?.infSetList ?? []).map((t) => t.setId)
2268
- ]), _r = (e) => Xe([
2276
+ ]), Cr = (e) => Xe([
2269
2277
  e.key,
2270
2278
  e.id,
2271
2279
  e.setId,
@@ -2273,18 +2281,18 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Ir = (e) => Str
2273
2281
  e.tagId,
2274
2282
  e.code
2275
2283
  ]);
2276
- function Cn(e, t, n) {
2277
- const o = _r(e), r = Xe([n, ...We(t)]);
2284
+ function Mn(e, t, n) {
2285
+ const o = Cr(e), r = Xe([n, ...We(t)]);
2278
2286
  return r.length === 0 ? !1 : r.some((s) => o.includes(s));
2279
2287
  }
2280
- function $r(e, t, n) {
2281
- return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Cn(r, t, n));
2288
+ function kr(e, t, n) {
2289
+ return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Mn(r, t, n));
2282
2290
  }
2283
- function Cr(e, t, n = {}) {
2284
- const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), s = typeof t == "string" ? e.fields.find((c) => Ve(c) === r || c.code === r) : t, i = ze(s).some((c) => {
2285
- if (c === "searchText" && Object.prototype.hasOwnProperty.call(o, c) || c !== "searchText" && !Mr(e, c))
2291
+ function Mr(e, t, n = {}) {
2292
+ const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), s = typeof t == "string" ? e.fields.find((l) => Ve(l) === r || l.code === r) : t, i = ze(s).some((l) => {
2293
+ if (l === "searchText" && Object.prototype.hasOwnProperty.call(o, l) || l !== "searchText" && !Or(e, l))
2286
2294
  return !1;
2287
- const u = o[c];
2295
+ const u = o[l];
2288
2296
  return u == null || u === "";
2289
2297
  });
2290
2298
  return {
@@ -2295,35 +2303,35 @@ function Cr(e, t, n = {}) {
2295
2303
  missingDependField: i
2296
2304
  };
2297
2305
  }
2298
- function kr(e) {
2306
+ function Tr(e) {
2299
2307
  return !!(e && e.type !== "select_remote" && ze(e).length === 0 && (e.options ?? []).length > 0);
2300
2308
  }
2301
- function Mr(e, t) {
2309
+ function Or(e, t) {
2302
2310
  return e.fields.some((n) => n.code === t || n.key === t || n.id === t || Ve(n) === t);
2303
2311
  }
2304
- function Tr(e) {
2305
- return vn(e);
2312
+ function Dr(e) {
2313
+ return gn(e);
2306
2314
  }
2307
2315
  const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, nt = (e) => {
2308
2316
  const t = Te(e);
2309
2317
  return !!(t.url || t.method || t.params);
2310
2318
  };
2311
- function Or(e) {
2319
+ function Fr(e) {
2312
2320
  const t = Te(e.operationInfo).openTag;
2313
2321
  return nt(t) ? t : void 0;
2314
2322
  }
2315
- function Dr(e, t, n) {
2323
+ function Br(e, t, n) {
2316
2324
  const o = Te(e?.operationInfo).queryInfoSet;
2317
2325
  if (nt(o))
2318
2326
  return o;
2319
2327
  const r = t?.infSetList.find((a) => a.infSetId === n), s = Te(r?.operationInfo).queryInfoSet;
2320
2328
  return nt(s) ? s : void 0;
2321
2329
  }
2322
- function Fr(e) {
2330
+ function Lr(e) {
2323
2331
  const t = Te(e.operationInfo).editInfoSet;
2324
2332
  return nt(t) ? t : void 0;
2325
2333
  }
2326
- async function kn(e) {
2334
+ async function Tn(e) {
2327
2335
  const t = e.params === void 0 ? void 0 : Te(e.params);
2328
2336
  return !e.formatter || e.requestSource !== "inner" ? t : e.formatter({
2329
2337
  operation: e.operation,
@@ -2347,10 +2355,10 @@ async function kn(e) {
2347
2355
  params: t
2348
2356
  });
2349
2357
  }
2350
- async function Br(e) {
2358
+ async function Er(e) {
2351
2359
  if (!e.service.requestOperation)
2352
2360
  throw new Error("[GlobalInfo] service.requestOperation is required for operationInfo");
2353
- const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = e.context?.params === void 0 ? t : Te(e.context.params), o = await kn({
2361
+ const t = e.operation.params === void 0 ? void 0 : Te(e.operation.params), n = e.context?.params === void 0 ? t : Te(e.context.params), o = await Tn({
2354
2362
  formatter: e.formatter,
2355
2363
  params: n,
2356
2364
  operation: e.operation,
@@ -2389,11 +2397,11 @@ function He(e = {}) {
2389
2397
  ...e
2390
2398
  };
2391
2399
  }
2392
- function Lr(e) {
2393
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, s = $r(e.nextViewModel.sections, e.node, e.targetKey), a = Xe([e.targetKey, ...We(e.node)]).length > 0, i = s.find((c) => Cn(c, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? s[0] ?? e.activeSection ?? null);
2394
- return s.forEach((c) => {
2395
- const u = ke(c);
2396
- t[u] = c, o.includes(u) || o.push(u), r[u] = He({
2400
+ function Vr(e) {
2401
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, s = kr(e.nextViewModel.sections, e.node, e.targetKey), a = Xe([e.targetKey, ...We(e.node)]).length > 0, i = s.find((l) => Mn(l, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? s[0] ?? e.activeSection ?? null);
2402
+ return s.forEach((l) => {
2403
+ const u = ke(l);
2404
+ t[u] = l, o.includes(u) || o.push(u), r[u] = He({
2397
2405
  ...r[u],
2398
2406
  loaded: !0,
2399
2407
  loading: !1,
@@ -2415,16 +2423,16 @@ function Lr(e) {
2415
2423
  targetSections: s
2416
2424
  };
2417
2425
  }
2418
- const je = (e) => new Error(`[GlobalInfo] ${e}`), Er = (e) => [
2426
+ const je = (e) => new Error(`[GlobalInfo] ${e}`), Pr = (e) => [
2419
2427
  String(e.method ?? "").toLowerCase(),
2420
2428
  String(e.url ?? ""),
2421
- St(Te(e.params))
2429
+ wt(Te(e.params))
2422
2430
  ].join("::");
2423
- function St(e) {
2424
- return Array.isArray(e) ? `[${e.map((t) => St(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${St(o)}`).join(",")}}` : JSON.stringify(e);
2431
+ function wt(e) {
2432
+ return Array.isArray(e) ? `[${e.map((t) => wt(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${wt(o)}`).join(",")}}` : JSON.stringify(e);
2425
2433
  }
2426
- const Vr = (e) => {
2427
- const t = me(!1), n = me(!1), o = me(!1), r = Pe(null), s = Pe([]), a = Pe(null), i = Pe(null), c = Pe(null), u = Pe({}), B = Pe({}), m = me([]), y = Pe({}), f = me([]), _ = V(
2434
+ const Ar = (e) => {
2435
+ const t = me(!1), n = me(!1), o = me(!1), r = Pe(null), s = Pe([]), a = Pe(null), i = Pe(null), l = Pe(null), u = Pe({}), B = Pe({}), m = me([]), y = Pe({}), f = me([]), _ = V(
2428
2436
  () => {
2429
2437
  const p = m.value.map((M) => u.value[M]).filter((M) => !!M), d = Object.entries(u.value).filter(([M]) => !m.value.includes(M)).map(([, M]) => M);
2430
2438
  return [...p, ...d];
@@ -2472,7 +2480,7 @@ const Vr = (e) => {
2472
2480
  tagLevel: p.tagLevel,
2473
2481
  // parentTagId 保留父子关系上下文。
2474
2482
  parentTagId: p.parentTagId
2475
- }), P = (p = i.value, d = c.value) => ({
2483
+ }), P = (p = i.value, d = l.value) => ({
2476
2484
  // 详情接口同样需要基础人员和场景参数。
2477
2485
  ...I(),
2478
2486
  // 当前节点所属模板方案。
@@ -2483,7 +2491,7 @@ const Vr = (e) => {
2483
2491
  infSetId: d?.infSetId ?? p?.infSetId,
2484
2492
  // setId 同样优先取 section,避免保存时拿错节点 setId。
2485
2493
  setId: d?.setId ?? p?.setId
2486
- }), S = async (p, d) => Br({
2494
+ }), S = async (p, d) => Er({
2487
2495
  service: e.service,
2488
2496
  formatter: e.formatOperationParams,
2489
2497
  operation: p,
@@ -2491,16 +2499,16 @@ const Vr = (e) => {
2491
2499
  viewModel: a.value,
2492
2500
  sections: _.value,
2493
2501
  activeNode: i.value,
2494
- activeSection: c.value
2495
- }), h = zo(
2502
+ activeSection: l.value
2503
+ }), h = Ro(
2496
2504
  async (p, d) => {
2497
2505
  if (!e.service.requestOperation)
2498
2506
  throw je("service.requestOperation is required");
2499
2507
  return e.service.requestOperation(p, d);
2500
2508
  },
2501
- (p) => Er(p)
2509
+ (p) => Pr(p)
2502
2510
  ), O = async (p, d) => {
2503
- const M = await kn({
2511
+ const M = await Tn({
2504
2512
  formatter: e.formatOperationParams,
2505
2513
  params: d?.params,
2506
2514
  operation: p,
@@ -2515,7 +2523,7 @@ const Vr = (e) => {
2515
2523
  viewModel: a.value,
2516
2524
  sections: _.value,
2517
2525
  activeNode: i.value,
2518
- activeSection: c.value,
2526
+ activeSection: l.value,
2519
2527
  searchText: d?.searchText
2520
2528
  }), G = { ...p, params: M }, J = d && { ...d, params: M };
2521
2529
  return h(G, J);
@@ -2530,23 +2538,23 @@ const Vr = (e) => {
2530
2538
  return G;
2531
2539
  }
2532
2540
  return null;
2533
- }, j = (p = c.value) => {
2541
+ }, j = (p = l.value) => {
2534
2542
  if (p)
2535
2543
  return typeof p == "string" ? p : Ge(p) ? F(p) : ke(p);
2536
- }, w = (p = c.value) => {
2544
+ }, w = (p = l.value) => {
2537
2545
  const d = j(p);
2538
2546
  if (!d)
2539
2547
  return null;
2540
2548
  const M = B.value[d] ?? d;
2541
2549
  return u.value[M] ?? null;
2542
- }, T = (p = c.value) => {
2550
+ }, T = (p = l.value) => {
2543
2551
  const d = j(p);
2544
2552
  if (d)
2545
2553
  return B.value[d] ?? d;
2546
- }, F = (p = c.value) => {
2554
+ }, F = (p = l.value) => {
2547
2555
  if (p)
2548
2556
  return typeof p == "string" ? p : Ge(p) ? p.setId ?? p.infSetId ?? p.key : ke(p);
2549
- }, x = (p = c.value) => {
2557
+ }, x = (p = l.value) => {
2550
2558
  if (Ge(p))
2551
2559
  return p;
2552
2560
  if (typeof p == "string") {
@@ -2557,7 +2565,7 @@ const Vr = (e) => {
2557
2565
  return M?.ownerNodeKey ? g(s.value, M.ownerNodeKey) ?? i.value : M || i.value && We(i.value).includes(p) ? i.value : null;
2558
2566
  }
2559
2567
  return p?.ownerNodeKey ? g(s.value, p.ownerNodeKey) ?? i.value : i.value;
2560
- }, ne = (p = c.value) => !p || Ge(p) ? null : w(p), q = (p = c.value) => {
2568
+ }, ne = (p = l.value) => !p || Ge(p) ? null : w(p), q = (p = l.value) => {
2561
2569
  const d = F(p);
2562
2570
  if (!d)
2563
2571
  return He();
@@ -2570,7 +2578,7 @@ const Vr = (e) => {
2570
2578
  M
2571
2579
  )
2572
2580
  });
2573
- }, N = (p, d) => {
2581
+ }, A = (p, d) => {
2574
2582
  const M = F(p);
2575
2583
  M && (y.value = {
2576
2584
  ...y.value,
@@ -2584,9 +2592,9 @@ const Vr = (e) => {
2584
2592
  })
2585
2593
  });
2586
2594
  }, L = (p = a.value?.raw ?? null, d = i.value) => {
2587
- const M = _.value, G = c.value && M.find(
2588
- (J) => ke(J) === ke(c.value)
2589
- ) ? c.value : null;
2595
+ const M = _.value, G = l.value && M.find(
2596
+ (J) => ke(J) === ke(l.value)
2597
+ ) ? l.value : null;
2590
2598
  a.value = {
2591
2599
  // 保留原 scheme。
2592
2600
  scheme: a.value?.scheme ?? null,
@@ -2605,9 +2613,9 @@ const Vr = (e) => {
2605
2613
  sectionMap: u.value,
2606
2614
  // 保留原始接口数据。
2607
2615
  raw: p
2608
- }, c.value = G;
2609
- }, l = (p, d = i.value, M) => {
2610
- const G = Lr({
2616
+ }, l.value = G;
2617
+ }, c = (p, d = i.value, M) => {
2618
+ const G = Vr({
2611
2619
  currentMap: u.value,
2612
2620
  currentAliasMap: B.value,
2613
2621
  currentOrder: m.value,
@@ -2616,7 +2624,7 @@ const Vr = (e) => {
2616
2624
  nextViewModel: p,
2617
2625
  node: d,
2618
2626
  targetKey: M,
2619
- activeSection: c.value
2627
+ activeSection: l.value
2620
2628
  });
2621
2629
  return u.value = G.sectionMap, B.value = G.sectionAliasMap, m.value = G.sectionOrder, y.value = G.sectionStatusMap, a.value = {
2622
2630
  ...p,
@@ -2627,7 +2635,7 @@ const Vr = (e) => {
2627
2635
  activeSection: G.matchedSection,
2628
2636
  sections: G.targetSections,
2629
2637
  sectionMap: u.value
2630
- }, c.value = G.matchedSection, G.matchedSection;
2638
+ }, l.value = G.matchedSection, G.matchedSection;
2631
2639
  }, $ = (p, d) => {
2632
2640
  const M = T(p), G = M ? u.value[M] : null;
2633
2641
  if (!M || !G)
@@ -2636,20 +2644,20 @@ const Vr = (e) => {
2636
2644
  u.value = {
2637
2645
  ...u.value,
2638
2646
  [M]: J
2639
- }, c.value = ke(c.value ?? J) === M ? J : c.value, L();
2640
- }, b = async (p = c.value ?? i.value) => {
2647
+ }, l.value = ke(l.value ?? J) === M ? J : l.value, L();
2648
+ }, b = async (p = l.value ?? i.value) => {
2641
2649
  const d = ne(p), M = x(p) ?? i.value, G = F(p);
2642
2650
  if (!M)
2643
2651
  return null;
2644
2652
  if (!e.service.requestOperation)
2645
2653
  throw je("service.requestOperation is required");
2646
- n.value = !0, r.value = null, N(G ?? M, { loading: !0, error: null });
2654
+ n.value = !0, r.value = null, A(G ?? M, { loading: !0, error: null });
2647
2655
  try {
2648
2656
  const J = d ? [{ infSetId: d.infSetId, setId: d.setId, operationInfo: d.operationInfo, raw: d.raw }] : M.infSetList;
2649
2657
  if (J.length === 0)
2650
2658
  throw je("node.infSetList is required");
2651
2659
  const _e = await Promise.all(J.map(async (ie) => {
2652
- const ye = Dr(d, M, ie.infSetId), Ne = {
2660
+ const ye = Br(d, M, ie.infSetId), Ae = {
2653
2661
  ...P(M, d),
2654
2662
  infSetId: ie.infSetId,
2655
2663
  setId: ie.setId,
@@ -2662,9 +2670,9 @@ const Vr = (e) => {
2662
2670
  tagId: d?.requestTagId ?? d?.tagId ?? M.tagId,
2663
2671
  node: M,
2664
2672
  section: d,
2665
- params: Ne
2673
+ params: Ae
2666
2674
  });
2667
- return ir(dt, Ne, M);
2675
+ return cr(dt, Ae, M);
2668
2676
  }
2669
2677
  throw je("infoSet.operationInfo.queryInfoSet is required");
2670
2678
  })), he = {
@@ -2672,21 +2680,21 @@ const Vr = (e) => {
2672
2680
  sections: _e.flatMap((ie) => ie.sections),
2673
2681
  sectionMap: Object.fromEntries(_e.flatMap((ie) => ie.sections).map((ie) => [ie.key, ie]))
2674
2682
  };
2675
- return l(he, M, G);
2683
+ return c(he, M, G);
2676
2684
  } catch (J) {
2677
- throw r.value = J, N(G ?? M, { loading: !1, error: J }), J;
2685
+ throw r.value = J, A(G ?? M, { loading: !1, error: J }), J;
2678
2686
  } finally {
2679
- n.value = !1, N(G ?? M, { loading: !1 });
2687
+ n.value = !1, A(G ?? M, { loading: !1 });
2680
2688
  }
2681
- }, D = (p = c.value) => b(p), E = (p = c.value) => {
2689
+ }, D = (p = l.value) => b(p), E = (p = l.value) => {
2682
2690
  if (!p)
2683
2691
  return null;
2684
2692
  if (!Ge(p) && typeof p != "string")
2685
2693
  return w(p);
2686
2694
  const d = F(p);
2687
2695
  return d ? u.value[B.value[d] ?? d] ?? null : null;
2688
- }, A = async (p = i.value) => p ? (await b(p), a.value) : (a.value = null, c.value = null, u.value = {}, B.value = {}, m.value = [], y.value = {}, null), K = async (p) => {
2689
- const d = Or(p);
2696
+ }, N = async (p = i.value) => p ? (await b(p), a.value) : (a.value = null, l.value = null, u.value = {}, B.value = {}, m.value = [], y.value = {}, null), K = async (p) => {
2697
+ const d = Fr(p);
2690
2698
  if (!d)
2691
2699
  return p.children;
2692
2700
  const M = C(p), G = await S(d, {
@@ -2696,22 +2704,22 @@ const Vr = (e) => {
2696
2704
  node: p,
2697
2705
  params: M
2698
2706
  });
2699
- return Pt(G).treeNodes;
2707
+ return At(G).treeNodes;
2700
2708
  }, R = async (p) => {
2701
2709
  if (p.loaded)
2702
2710
  return p.children;
2703
2711
  const d = await K(p);
2704
- return d.length > 0 && (s.value = mn(s.value, p.key, d)), d;
2712
+ return d.length > 0 && (s.value = vn(s.value, p.key, d)), d;
2705
2713
  }, W = async (p) => {
2706
2714
  const d = typeof p == "string" ? g(s.value, p) : p;
2707
- return d ? (i.value = d, c.value = null, f.value = [], await R(d), L(a.value?.raw, d), d) : null;
2715
+ return d ? (i.value = d, l.value = null, f.value = [], await R(d), L(a.value?.raw, d), d) : null;
2708
2716
  }, ee = async () => {
2709
2717
  const p = e.service.templateTree;
2710
2718
  if (!p)
2711
2719
  throw je("service.templateTree is required");
2712
2720
  t.value = !0, r.value = null;
2713
2721
  try {
2714
- const d = await p(I()), M = Pt(d), G = await Promise.all(
2722
+ const d = await p(I()), M = At(d), G = await Promise.all(
2715
2723
  M.treeNodes.map(async (_e) => {
2716
2724
  const he = await K(_e);
2717
2725
  return {
@@ -2721,7 +2729,7 @@ const Vr = (e) => {
2721
2729
  };
2722
2730
  })
2723
2731
  );
2724
- s.value = G, c.value = null, u.value = {}, B.value = {}, m.value = [], y.value = {}, f.value = [];
2732
+ s.value = G, l.value = null, u.value = {}, B.value = {}, m.value = [], y.value = {}, f.value = [];
2725
2733
  const J = g(G, e.initialActiveNodeKey) ?? g(G);
2726
2734
  return i.value = J, a.value = {
2727
2735
  ...M,
@@ -2737,22 +2745,22 @@ const Vr = (e) => {
2737
2745
  }
2738
2746
  }, z = async () => {
2739
2747
  const p = j();
2740
- await D(c.value ?? i.value);
2748
+ await D(l.value ?? i.value);
2741
2749
  const d = _.value.find(
2742
2750
  (M) => ke(M) === p
2743
2751
  );
2744
- return d && (c.value = d), L(), a.value;
2745
- }, X = (p = c.value) => {
2752
+ return d && (l.value = d), L(), a.value;
2753
+ }, X = (p = l.value) => {
2746
2754
  const d = T(p);
2747
2755
  return !!(d && f.value.includes(d));
2748
- }, ae = (p = c.value) => {
2756
+ }, ae = (p = l.value) => {
2749
2757
  const d = T(p);
2750
- !d || X(d) || (f.value = [...f.value, d], N(d, { editing: !0 }));
2751
- }, pe = (p = c.value) => {
2758
+ !d || X(d) || (f.value = [...f.value, d], A(d, { editing: !0 }));
2759
+ }, pe = (p = l.value) => {
2752
2760
  const d = T(p);
2753
2761
  d && (f.value = f.value.filter(
2754
2762
  (M) => M !== d
2755
- ), N(d, { editing: !1 }));
2763
+ ), A(d, { editing: !1 }));
2756
2764
  }, de = (p, d, M) => {
2757
2765
  const G = typeof d == "string" ? d : Ve(d);
2758
2766
  $(p, (J) => {
@@ -2771,8 +2779,8 @@ const Vr = (e) => {
2771
2779
  rows: J.renderType === "form" ? [{ ...J.rows[0], ...ie }] : J.rows,
2772
2780
  // 同步 fields.value,保证只读 renderer 立即显示新值。
2773
2781
  fields: J.fields.map((ye) => {
2774
- const Ne = Ve(ye);
2775
- return Ne === G || ye.code === G ? { ...ye, value: M } : he.includes(Ne) || he.includes(ye.code) ? { ...ye, value: "" } : ye;
2782
+ const Ae = Ve(ye);
2783
+ return Ae === G || ye.code === G ? { ...ye, value: M } : he.includes(Ae) || he.includes(ye.code) ? { ...ye, value: "" } : ye;
2776
2784
  })
2777
2785
  };
2778
2786
  });
@@ -2787,12 +2795,12 @@ const Vr = (e) => {
2787
2795
  fieldKey: he,
2788
2796
  currentField: ie,
2789
2797
  sourceModel: ye,
2790
- sourceRow: Ne,
2798
+ sourceRow: Ae,
2791
2799
  missingDependField: dt
2792
- } = Cr(J, d, _e), ft = ie?.interface;
2800
+ } = Mr(J, d, _e), ft = ie?.interface;
2793
2801
  if (!ie || !ft)
2794
2802
  return ie?.options ?? [];
2795
- if (kr(ie))
2803
+ if (Tr(ie))
2796
2804
  return ie.options ?? [];
2797
2805
  if (dt)
2798
2806
  return $(J, (Ke) => ({
@@ -2801,7 +2809,7 @@ const Vr = (e) => {
2801
2809
  (Ee) => Ve(Ee) === he || Ee.code === he ? { ...Ee, options: [] } : Ee
2802
2810
  )
2803
2811
  })), [];
2804
- const En = await O(
2812
+ const Pn = await O(
2805
2813
  {
2806
2814
  ...ft
2807
2815
  },
@@ -2815,16 +2823,16 @@ const Vr = (e) => {
2815
2823
  params: Te(ft.params),
2816
2824
  // searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
2817
2825
  model: ye,
2818
- row: Ne,
2826
+ row: Ae,
2819
2827
  searchText: G.searchText
2820
2828
  }
2821
- ), $t = Tr(En);
2829
+ ), Ct = Dr(Pn);
2822
2830
  return $(J, (Ke) => ({
2823
2831
  ...Ke,
2824
2832
  fields: Ke.fields.map(
2825
- (Ee) => Ve(Ee) === he || Ee.code === he ? { ...Ee, options: $t } : Ee
2833
+ (Ee) => Ve(Ee) === he || Ee.code === he ? { ...Ee, options: Ct } : Ee
2826
2834
  )
2827
- })), $t;
2835
+ })), Ct;
2828
2836
  }, Oe = (p, d) => {
2829
2837
  if (Array.isArray(d)) {
2830
2838
  Ie(p, d);
@@ -2854,7 +2862,7 @@ const Vr = (e) => {
2854
2862
  // 选中树节点。
2855
2863
  selectNode: W,
2856
2864
  // 加载当前节点详情。
2857
- loadDetail: A,
2865
+ loadDetail: N,
2858
2866
  // 刷新当前详情。
2859
2867
  reloadActiveSection: z,
2860
2868
  // 加载指定节点或 section。
@@ -2890,19 +2898,19 @@ const Vr = (e) => {
2890
2898
  Ie(p, J);
2891
2899
  },
2892
2900
  // 调用接口保存 section。
2893
- saveSection: async (p = c.value) => {
2901
+ saveSection: async (p = l.value) => {
2894
2902
  const d = j(p), M = w(p);
2895
2903
  if (!M)
2896
2904
  return null;
2897
- const G = Fr(M);
2905
+ const G = Lr(M);
2898
2906
  if (!G)
2899
2907
  throw je("section.operationInfo.editInfoSet is required");
2900
- o.value = !0, r.value = null, d && d !== ke(M) && N(d, { saving: !0, error: null }), N(M, { saving: !0, error: null });
2908
+ o.value = !0, r.value = null, d && d !== ke(M) && A(d, { saving: !0, error: null }), A(M, { saving: !0, error: null });
2901
2909
  try {
2902
2910
  const {
2903
2911
  tagId: J,
2904
2912
  ..._e
2905
- } = P(i.value, M), he = cr(M, _e), ie = await S(
2913
+ } = P(i.value, M), he = dr(M, _e), ie = await S(
2906
2914
  // 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
2907
2915
  G,
2908
2916
  {
@@ -2917,9 +2925,9 @@ const Vr = (e) => {
2917
2925
  );
2918
2926
  return pe(M), await D(M), ie;
2919
2927
  } catch (J) {
2920
- throw r.value = J, d && d !== ke(M) && N(d, { saving: !1, error: J }), N(M, { saving: !1, error: J }), J;
2928
+ throw r.value = J, d && d !== ke(M) && A(d, { saving: !1, error: J }), A(M, { saving: !1, error: J }), J;
2921
2929
  } finally {
2922
- o.value = !1, d && d !== ke(M) && N(d, { saving: !1 }), N(M, { saving: !1 });
2930
+ o.value = !1, d && d !== ke(M) && A(d, { saving: !1 }), A(M, { saving: !1 });
2923
2931
  }
2924
2932
  },
2925
2933
  // 判断编辑态。
@@ -2931,7 +2939,7 @@ const Vr = (e) => {
2931
2939
  () => {
2932
2940
  (e.autoLoad ?? !0) && ee();
2933
2941
  }
2934
- ), qt(() => {
2942
+ ), Kt(() => {
2935
2943
  (e.autoLoad ?? !0) && ee();
2936
2944
  }), {
2937
2945
  // 当前 viewModel。
@@ -2947,13 +2955,13 @@ const Vr = (e) => {
2947
2955
  // 当前激活节点。
2948
2956
  activeNode: i,
2949
2957
  // 当前激活 section。
2950
- activeSection: c,
2958
+ activeSection: l,
2951
2959
  // 给页面消费的状态快照。
2952
2960
  state: v,
2953
2961
  // 给页面消费的操作集合。
2954
2962
  actions: qe
2955
2963
  };
2956
- }, Va = /* @__PURE__ */ ce({
2964
+ }, Aa = /* @__PURE__ */ ce({
2957
2965
  name: "GlobalInfoProvider",
2958
2966
  __name: "GlobalInfoProvider",
2959
2967
  props: {
@@ -2966,44 +2974,44 @@ const Vr = (e) => {
2966
2974
  formatOperationParams: {}
2967
2975
  },
2968
2976
  setup(e) {
2969
- const t = e, n = Vr(t), { viewModel: o, nodes: r, sections: s, activeNode: a, activeSection: i, state: c, actions: u } = n;
2977
+ const t = e, n = Ar(t), { viewModel: o, nodes: r, sections: s, activeNode: a, activeSection: i, state: l, actions: u } = n;
2970
2978
  return (B, m) => Q(B.$slots, "default", Me(Fe({
2971
2979
  viewModel: re(o),
2972
2980
  nodes: re(r),
2973
2981
  sections: re(s),
2974
2982
  activeNode: re(a),
2975
2983
  activeSection: re(i),
2976
- state: re(c),
2984
+ state: re(l),
2977
2985
  actions: re(u),
2978
2986
  renderConfig: t.renderConfig
2979
2987
  })));
2980
2988
  }
2981
2989
  });
2982
- function Mn(e) {
2990
+ function On(e) {
2983
2991
  if (e.action) {
2984
2992
  if (e.action.type === "direct") {
2985
- kt(e.action.options);
2993
+ Mt(e.action.options);
2986
2994
  return;
2987
2995
  }
2988
- kt.openByParams(e.action.params);
2996
+ Mt.openByParams(e.action.params);
2989
2997
  }
2990
2998
  }
2991
- const Pr = ["disabled", "accept", "multiple"], Nr = {
2999
+ const Nr = ["disabled", "accept", "multiple"], jr = {
2992
3000
  key: 0,
2993
3001
  class: "global-info-field-control__file-preview-list"
2994
- }, Ar = ["onClick"], jr = {
3002
+ }, zr = ["onClick"], xr = {
2995
3003
  key: 1,
2996
3004
  class: "global-info-field-control__file-text"
2997
- }, zr = {
3005
+ }, Rr = {
2998
3006
  key: 2,
2999
3007
  class: "global-info-field-control__file-separator"
3000
- }, xr = {
3008
+ }, qr = {
3001
3009
  key: 1,
3002
3010
  class: "global-info-field-control__file-text"
3003
- }, Rr = {
3011
+ }, Kr = {
3004
3012
  key: 2,
3005
3013
  class: "global-info-field-control__file-upload"
3006
- }, qr = /* @__PURE__ */ ce({
3014
+ }, Gr = /* @__PURE__ */ ce({
3007
3015
  name: "GlobalInfoFieldControl",
3008
3016
  __name: "GlobalInfoFieldControl",
3009
3017
  props: {
@@ -3013,14 +3021,14 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3013
3021
  },
3014
3022
  emits: ["update:modelValue", "change", "loadOptions"],
3015
3023
  setup(e, { emit: t }) {
3016
- const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], s = me(null), a = V(() => Qe(n.field)), i = V(() => a.value === "select_remote"), c = V(() => n.disabled || n.field.disabled || n.field.readonly), u = V(() => !!n.field.props?.multiple), B = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), m = V(() => r.includes(a.value) ? n.field.props?.resize ?? "vertical" : void 0), y = V(() => {
3024
+ const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], s = me(null), a = V(() => Qe(n.field)), i = V(() => a.value === "select_remote"), l = V(() => n.disabled || n.field.disabled || n.field.readonly), u = V(() => !!n.field.props?.multiple), B = V(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), m = V(() => r.includes(a.value) ? n.field.props?.resize ?? "vertical" : void 0), y = V(() => {
3017
3025
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
3018
3026
  const q = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3019
3027
  return Number.isFinite(q) ? q : void 0;
3020
- }), f = V(() => Jo(n.field, n.modelValue)), _ = V(() => {
3021
- const q = n.field.props?.activeValue ?? n.field.props?.["active-value"], N = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3022
- return q !== void 0 || N !== void 0 ? n.modelValue ?? N ?? !1 : un(n.modelValue);
3023
- }), v = V(() => a.value === "code" ? 5 : 1), I = V(() => a.value === "file" && !Ce(n.modelValue)), C = V(() => cn(n.field, n.modelValue, "请选择文件")), P = V(() => dn(n.field, n.modelValue, "请选择文件")), S = V(() => n.field.placeholder ? n.field.placeholder : a.value === "select_remote" ? "请输入关键词" : a.value === "select" ? "请选择" : a.value === "date" ? "请选择日期" : a.value === "file" ? "请选择文件" : "请输入");
3028
+ }), f = V(() => Zo(n.field, n.modelValue)), _ = V(() => {
3029
+ const q = n.field.props?.activeValue ?? n.field.props?.["active-value"], A = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3030
+ return q !== void 0 || A !== void 0 ? n.modelValue ?? A ?? !1 : dn(n.modelValue);
3031
+ }), v = V(() => a.value === "code" ? 5 : 1), I = V(() => a.value === "file" && !Ce(n.modelValue)), C = V(() => un(n.field, n.modelValue, "请选择文件")), P = V(() => fn(n.field, n.modelValue, "请选择文件")), S = V(() => n.field.placeholder ? n.field.placeholder : a.value === "select_remote" ? "请输入关键词" : a.value === "select" ? "请选择" : a.value === "date" ? "请选择日期" : a.value === "file" ? "请选择文件" : "请输入");
3024
3032
  let h;
3025
3033
  function O(q) {
3026
3034
  o("update:modelValue", j(q));
@@ -3029,7 +3037,7 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3029
3037
  o("change", j(q));
3030
3038
  }
3031
3039
  function j(q) {
3032
- return a.value === "select" || a.value === "select_remote" ? Wo(n.field, q) : q;
3040
+ return a.value === "select" || a.value === "select_remote" ? Qo(n.field, q) : q;
3033
3041
  }
3034
3042
  function w(q) {
3035
3043
  q && o("loadOptions", i.value ? { searchText: "" } : void 0);
@@ -3040,27 +3048,27 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3040
3048
  }, 300));
3041
3049
  }
3042
3050
  function F() {
3043
- c.value || s.value?.click();
3051
+ l.value || s.value?.click();
3044
3052
  }
3045
3053
  function x(q) {
3046
- Mn(q);
3054
+ On(q);
3047
3055
  }
3048
- zn(() => {
3056
+ Rn(() => {
3049
3057
  h && clearTimeout(h);
3050
3058
  });
3051
3059
  function ne(q) {
3052
- const N = q.target, L = Array.from(N.files ?? []), l = n.field.props?.multiple ? L : L[0] ?? null;
3053
- O(l), g(l);
3060
+ const A = q.target, L = Array.from(A.files ?? []), c = n.field.props?.multiple ? L : L[0] ?? null;
3061
+ O(c), g(c);
3054
3062
  }
3055
- return (q, N) => {
3056
- const L = Ut, l = Ht, $ = Gt, b = Yn, D = Hn, E = Yt;
3057
- return a.value === "select" || a.value === "select_remote" ? (k(), H(l, oe({
3063
+ return (q, A) => {
3064
+ const L = Jt, c = Ut, $ = Yt, b = Un, D = Jn, E = Ht;
3065
+ return a.value === "select" || a.value === "select_remote" ? (k(), H(c, oe({
3058
3066
  key: 0,
3059
3067
  class: "global-info-field-control"
3060
3068
  }, q.field.props, {
3061
3069
  "model-value": f.value,
3062
3070
  placeholder: S.value,
3063
- disabled: c.value,
3071
+ disabled: l.value,
3064
3072
  "collapse-tags": u.value,
3065
3073
  "collapse-tags-tooltip": u.value,
3066
3074
  "max-collapse-tags": 1,
@@ -3073,10 +3081,10 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3073
3081
  onChange: g
3074
3082
  }), {
3075
3083
  default: U(() => [
3076
- (k(!0), Y(be, null, ve(q.field.options || [], (A) => (k(), H(L, {
3077
- key: String(A.value),
3078
- label: A.label,
3079
- value: A.value
3084
+ (k(!0), Y(be, null, ve(q.field.options || [], (N) => (k(), H(L, {
3085
+ key: String(N.value),
3086
+ label: N.label,
3087
+ value: N.value
3080
3088
  }, null, 8, ["label", "value"]))), 128))
3081
3089
  ]),
3082
3090
  _: 1
@@ -3086,7 +3094,7 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3086
3094
  }, q.field.props, {
3087
3095
  "model-value": q.modelValue,
3088
3096
  placeholder: S.value,
3089
- disabled: c.value,
3097
+ disabled: l.value,
3090
3098
  type: "date",
3091
3099
  "value-format": "YYYY-MM-DD",
3092
3100
  "onUpdate:modelValue": O,
@@ -3097,7 +3105,7 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3097
3105
  }, q.field.props, {
3098
3106
  "model-value": y.value,
3099
3107
  placeholder: S.value,
3100
- disabled: c.value,
3108
+ disabled: l.value,
3101
3109
  "controls-position": "right",
3102
3110
  "onUpdate:modelValue": O,
3103
3111
  onChange: g
@@ -3106,13 +3114,13 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3106
3114
  class: "global-info-field-control global-info-field-control--switch"
3107
3115
  }, q.field.props, {
3108
3116
  "model-value": _.value,
3109
- disabled: c.value,
3117
+ disabled: l.value,
3110
3118
  "onUpdate:modelValue": O,
3111
3119
  onChange: g
3112
3120
  }), null, 16, ["model-value", "disabled"])) : a.value === "file" ? (k(), Y("div", {
3113
3121
  key: 4,
3114
3122
  class: Ue(["global-info-field-control global-info-field-control--file", {
3115
- "is-disabled": c.value,
3123
+ "is-disabled": l.value,
3116
3124
  "is-empty": !I.value,
3117
3125
  "is-filled": I.value
3118
3126
  }]),
@@ -3123,24 +3131,24 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3123
3131
  ref: s,
3124
3132
  class: "global-info-field-control__file-input",
3125
3133
  type: "file",
3126
- disabled: c.value,
3134
+ disabled: l.value,
3127
3135
  accept: String(q.field.props?.accept ?? ""),
3128
3136
  multiple: !!q.field.props?.multiple,
3129
3137
  onChange: ne
3130
- }, null, 40, Pr),
3131
- P.value.length ? (k(), Y("span", Nr, [
3132
- (k(!0), Y(be, null, ve(P.value, (A, K) => (k(), Y(be, {
3133
- key: A.key
3138
+ }, null, 40, Nr),
3139
+ P.value.length ? (k(), Y("span", jr, [
3140
+ (k(!0), Y(be, null, ve(P.value, (N, K) => (k(), Y(be, {
3141
+ key: N.key
3134
3142
  }, [
3135
- A.action ? (k(), Y("button", {
3143
+ N.action ? (k(), Y("button", {
3136
3144
  key: 0,
3137
3145
  class: "global-info-field-control__file-preview",
3138
3146
  type: "button",
3139
- onClick: Rt((R) => x(A), ["stop", "prevent"])
3140
- }, fe(A.text), 9, Ar)) : (k(), Y("span", jr, fe(A.text), 1)),
3141
- K < P.value.length - 1 ? (k(), Y("span", zr, "、")) : ue("", !0)
3147
+ onClick: qt((R) => x(N), ["stop", "prevent"])
3148
+ }, fe(N.text), 9, zr)) : (k(), Y("span", xr, fe(N.text), 1)),
3149
+ K < P.value.length - 1 ? (k(), Y("span", Rr, "、")) : ue("", !0)
3142
3150
  ], 64))), 128))
3143
- ])) : I.value ? (k(), Y("span", xr, fe(C.value), 1)) : (k(), Y("span", Rr, "上 传"))
3151
+ ])) : I.value ? (k(), Y("span", qr, fe(C.value), 1)) : (k(), Y("span", Kr, "上 传"))
3144
3152
  ], 2)) : a.value === "empty" ? (k(), H(E, {
3145
3153
  key: 5,
3146
3154
  class: "global-info-field-control",
@@ -3156,7 +3164,7 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3156
3164
  }, q.field.props, {
3157
3165
  "model-value": B.value,
3158
3166
  placeholder: S.value,
3159
- disabled: c.value,
3167
+ disabled: l.value,
3160
3168
  type: r.includes(a.value) ? "textarea" : "text",
3161
3169
  rows: r.includes(a.value) ? v.value : void 0,
3162
3170
  resize: m.value,
@@ -3165,13 +3173,13 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3165
3173
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3166
3174
  };
3167
3175
  }
3168
- }), Tn = /* @__PURE__ */ ge(qr, [["__scopeId", "data-v-bf873a89"]]), Kr = ["innerHTML"], Gr = {
3176
+ }), Dn = /* @__PURE__ */ ge(Gr, [["__scopeId", "data-v-bf873a89"]]), Yr = ["innerHTML"], Hr = {
3169
3177
  key: 1,
3170
3178
  class: "global-info-field-value global-info-field-value--code"
3171
- }, Yr = {
3179
+ }, Ur = {
3172
3180
  key: 2,
3173
3181
  class: "global-info-field-value global-info-field-value--file"
3174
- }, Hr = ["onClick"], Ur = { key: 1 }, Jr = { key: 2 }, Wr = /* @__PURE__ */ ce({
3182
+ }, Jr = ["onClick"], Wr = { key: 1 }, Zr = { key: 2 }, Qr = /* @__PURE__ */ ce({
3175
3183
  name: "GlobalInfoFieldValue",
3176
3184
  __name: "GlobalInfoFieldValue",
3177
3185
  props: {
@@ -3180,15 +3188,15 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3180
3188
  emptyText: { default: "-" }
3181
3189
  },
3182
3190
  setup(e) {
3183
- const t = e, n = V(() => _t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => cn(t.field, t.value, t.emptyText)), s = V(() => dn(t.field, t.value, t.emptyText));
3191
+ const t = e, n = V(() => $t(t.field)), o = V(() => n.value === "empty" || Ce(t.value)), r = V(() => un(t.field, t.value, t.emptyText)), s = V(() => fn(t.field, t.value, t.emptyText));
3184
3192
  function a(i) {
3185
- Mn(i);
3193
+ On(i);
3186
3194
  }
3187
- return (i, c) => n.value === "html" && !o.value ? (k(), Y("span", {
3195
+ return (i, l) => n.value === "html" && !o.value ? (k(), Y("span", {
3188
3196
  key: 0,
3189
3197
  class: "global-info-field-value global-info-field-value--html",
3190
3198
  innerHTML: r.value
3191
- }, null, 8, Kr)) : n.value === "code" && !o.value ? (k(), Y("pre", Gr, fe(r.value), 1)) : s.value.length ? (k(), Y("span", Yr, [
3199
+ }, null, 8, Yr)) : n.value === "code" && !o.value ? (k(), Y("pre", Hr, fe(r.value), 1)) : s.value.length ? (k(), Y("span", Ur, [
3192
3200
  (k(!0), Y(be, null, ve(s.value, (u, B) => (k(), Y(be, {
3193
3201
  key: u.key
3194
3202
  }, [
@@ -3197,8 +3205,8 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3197
3205
  class: "global-info-field-value__attachment-preview",
3198
3206
  type: "button",
3199
3207
  onClick: (m) => a(u)
3200
- }, fe(u.text), 9, Hr)) : (k(), Y("span", Ur, fe(u.text), 1)),
3201
- B < s.value.length - 1 ? (k(), Y("span", Jr, "、")) : ue("", !0)
3208
+ }, fe(u.text), 9, Jr)) : (k(), Y("span", Wr, fe(u.text), 1)),
3209
+ B < s.value.length - 1 ? (k(), Y("span", Zr, "、")) : ue("", !0)
3202
3210
  ], 64))), 128))
3203
3211
  ])) : (k(), Y("span", {
3204
3212
  key: 3,
@@ -3208,8 +3216,8 @@ const Pr = ["disabled", "accept", "multiple"], Nr = {
3208
3216
  }])
3209
3217
  }, fe(r.value), 3));
3210
3218
  }
3211
- }), On = /* @__PURE__ */ ge(Wr, [["__scopeId", "data-v-79688203"]]);
3212
- function Zr(e) {
3219
+ }), Fn = /* @__PURE__ */ ge(Qr, [["__scopeId", "data-v-79688203"]]);
3220
+ function Xr(e) {
3213
3221
  const t = Qe(e);
3214
3222
  return (t === "select" || t === "select_remote") && !!e.interface;
3215
3223
  }
@@ -3220,28 +3228,28 @@ function ot(e, t, n = {}, o = "") {
3220
3228
  function rt(e, t, n) {
3221
3229
  return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && ze(e).length === 0 : !1;
3222
3230
  }
3223
- function Dn(e = {}) {
3231
+ function Bn(e = {}) {
3224
3232
  return Object.prototype.hasOwnProperty.call(e, "searchText");
3225
3233
  }
3226
- function Fn(e, t) {
3234
+ function Ln(e, t) {
3227
3235
  const n = new Set(
3228
3236
  [t.key, t.id, t.code].map((o) => String(o ?? "").trim()).filter(Boolean)
3229
3237
  );
3230
3238
  return n.size === 0 ? !1 : ze(e).some((o) => n.has(o));
3231
3239
  }
3232
- function Bn(e, t, n) {
3240
+ function En(e, t, n) {
3233
3241
  const o = Qe(e);
3234
- return Zr(e) ? n ? !0 : !Ce(t) : !1;
3242
+ return Xr(e) ? n ? !0 : !Ce(t) : !1;
3235
3243
  }
3236
- function Ln(e, t) {
3244
+ function Vn(e, t) {
3237
3245
  return Qe(e) !== "select_remote" ? {} : {
3238
3246
  searchText: t == null ? "" : String(t)
3239
3247
  };
3240
3248
  }
3241
- const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3249
+ const ea = { class: "global-info-form-renderer__label" }, ta = {
3242
3250
  key: 0,
3243
3251
  class: "global-info-form-renderer__required"
3244
- }, ea = /* @__PURE__ */ ce({
3252
+ }, na = /* @__PURE__ */ ce({
3245
3253
  name: "GlobalInfoFormRenderer",
3246
3254
  __name: "GlobalInfoFormRenderer",
3247
3255
  props: {
@@ -3260,7 +3268,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3260
3268
  t.section,
3261
3269
  t.renderConfig,
3262
3270
  { values: o.value }
3263
- )), a = nn(
3271
+ )), a = on(
3264
3272
  async (h, O, g) => t.actions.loadFieldOptions(t.section, h, O, g),
3265
3273
  (h) => `${t.section.key}:${C(h)}`
3266
3274
  );
@@ -3268,9 +3276,9 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3268
3276
  const g = { ...o.value, [h.code]: O };
3269
3277
  (h.cascadeClearFields ?? []).forEach((j) => {
3270
3278
  g[j] = "";
3271
- }), t.onUpdateModel?.(g), t.onUpdateModel || t.actions.updateField(t.section, h, O), c(h, O, g), f(g, h);
3279
+ }), t.onUpdateModel?.(g), t.onUpdateModel || t.actions.updateField(t.section, h, O), l(h, O, g), f(g, h);
3272
3280
  }
3273
- function c(h, O, g) {
3281
+ function l(h, O, g) {
3274
3282
  const j = t.renderConfig?.onFieldBusinessChange;
3275
3283
  if (j)
3276
3284
  try {
@@ -3311,7 +3319,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3311
3319
  }
3312
3320
  async function y(h, O = {}, g = o.value) {
3313
3321
  const j = g, w = C(h), T = ot(t.section.key, h, j), F = r.get(w);
3314
- if (!Dn(O) && rt(h, F, T)) {
3322
+ if (!Bn(O) && rt(h, F, T)) {
3315
3323
  r.set(w, T);
3316
3324
  return;
3317
3325
  }
@@ -3327,7 +3335,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3327
3335
  }
3328
3336
  async function f(h = o.value, O) {
3329
3337
  for (const g of s.value) {
3330
- if (O && !Fn(g, O)) continue;
3338
+ if (O && !Ln(g, O)) continue;
3331
3339
  const j = h[g.code];
3332
3340
  if (!P(g, j)) continue;
3333
3341
  const w = ot(t.section.key, g, h), T = C(g), F = r.get(T);
@@ -3335,7 +3343,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3335
3343
  r.set(T, w);
3336
3344
  continue;
3337
3345
  }
3338
- F !== w && await y(g, Ln(g, j), h);
3346
+ F !== w && await y(g, Vn(g, j), h);
3339
3347
  }
3340
3348
  }
3341
3349
  Be(
@@ -3378,13 +3386,13 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3378
3386
  return h.key || h.id || h.code;
3379
3387
  }
3380
3388
  function P(h, O) {
3381
- return Bn(h, O, t.editing);
3389
+ return En(h, O, t.editing);
3382
3390
  }
3383
3391
  function S(h) {
3384
3392
  return h.required || h.isRequired;
3385
3393
  }
3386
3394
  return (h, O) => {
3387
- const g = Jt, j = Jn, w = Un, T = Wt;
3395
+ const g = Wt, j = Zn, w = Wn, T = Zt;
3388
3396
  return k(), H(T, {
3389
3397
  class: "global-info-form-renderer",
3390
3398
  model: o.value,
@@ -3403,8 +3411,8 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3403
3411
  ref_for: !0
3404
3412
  }, F.formItemProps), {
3405
3413
  label: U(() => [
3406
- te("span", Qr, [
3407
- S(F) ? (k(), Y("span", Xr, "*")) : ue("", !0),
3414
+ te("span", ea, [
3415
+ S(F) ? (k(), Y("span", ta, "*")) : ue("", !0),
3408
3416
  Ye(" " + fe(F.label), 1)
3409
3417
  ])
3410
3418
  ]),
@@ -3412,14 +3420,14 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3412
3420
  v(F) ? Q(h.$slots, v(F), oe({
3413
3421
  key: 0,
3414
3422
  ref_for: !0
3415
- }, _(F)), void 0, !0) : h.editing && !F.readonly ? (k(), H(Tn, {
3423
+ }, _(F)), void 0, !0) : h.editing && !F.readonly ? (k(), H(Dn, {
3416
3424
  key: 1,
3417
3425
  field: F,
3418
3426
  "model-value": o.value[F.code],
3419
3427
  section: h.section,
3420
3428
  onLoadOptions: (x) => y(F, x),
3421
3429
  "onUpdate:modelValue": (x) => i(F, x)
3422
- }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(On, {
3430
+ }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(Fn, {
3423
3431
  key: 2,
3424
3432
  field: F,
3425
3433
  value: o.value[F.code],
@@ -3439,7 +3447,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3439
3447
  }, 8, ["model"]);
3440
3448
  };
3441
3449
  }
3442
- }), ta = /* @__PURE__ */ ge(ea, [["__scopeId", "data-v-f49cc422"]]), na = /* @__PURE__ */ ce({
3450
+ }), oa = /* @__PURE__ */ ge(na, [["__scopeId", "data-v-f49cc422"]]), ra = /* @__PURE__ */ ce({
3443
3451
  name: "GlobalInfoDeleteConfirm",
3444
3452
  __name: "GlobalInfoDeleteConfirm",
3445
3453
  props: {
@@ -3450,7 +3458,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3450
3458
  emits: ["confirm", "cancel"],
3451
3459
  setup(e) {
3452
3460
  return (t, n) => {
3453
- const o = Wn;
3461
+ const o = Qn;
3454
3462
  return k(), H(o, {
3455
3463
  title: t.title,
3456
3464
  "confirm-button-text": t.confirmText,
@@ -3467,10 +3475,10 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3467
3475
  }, 8, ["title", "confirm-button-text", "cancel-button-text"]);
3468
3476
  };
3469
3477
  }
3470
- }), oa = { class: "global-info-table-renderer__table-scroll" }, ra = { class: "global-info-table-renderer__header" }, aa = {
3478
+ }), aa = { class: "global-info-table-renderer__table-scroll" }, sa = { class: "global-info-table-renderer__header" }, ia = {
3471
3479
  key: 0,
3472
3480
  class: "global-info-table-renderer__required"
3473
- }, sa = /* @__PURE__ */ ce({
3481
+ }, la = /* @__PURE__ */ ce({
3474
3482
  name: "GlobalInfoTableRenderer",
3475
3483
  __name: "GlobalInfoTableRenderer",
3476
3484
  props: {
@@ -3484,42 +3492,42 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3484
3492
  renderConfig: {}
3485
3493
  },
3486
3494
  setup(e) {
3487
- const t = e, n = Le(), o = V(() => t.section.fields.some((l) => Ft(l))), r = V(() => o.value), s = V(() => t.renderConfig?.sequenceLabel ?? "序号"), a = V(() => t.renderConfig?.sequenceWidth ?? 56), i = V(() => {
3488
- const l = t.renderConfig?.sequenceStart;
3489
- return typeof l == "number" && Number.isFinite(l) ? l : 1;
3490
- }), c = V(() => {
3491
- const l = lt(
3495
+ const t = e, n = Le(), o = V(() => t.section.fields.some((c) => Bt(c))), r = V(() => o.value), s = V(() => t.renderConfig?.sequenceLabel ?? "序号"), a = V(() => t.renderConfig?.sequenceWidth ?? 56), i = V(() => {
3496
+ const c = t.renderConfig?.sequenceStart;
3497
+ return typeof c == "number" && Number.isFinite(c) ? c : 1;
3498
+ }), l = V(() => {
3499
+ const c = lt(
3492
3500
  t.section.fields,
3493
3501
  t.section,
3494
3502
  t.renderConfig,
3495
3503
  { rows: t.section.rows, values: t.section.model }
3496
3504
  );
3497
- return r.value ? l.filter(($) => !x($)) : l;
3498
- }), u = /* @__PURE__ */ new Map(), B = nn(
3499
- async (l, $, b) => t.actions.loadFieldOptions(t.section, l, $, b),
3500
- (l, $) => `${t.section.key}:${N($)}:${T(l)}`
3505
+ return r.value ? c.filter(($) => !x($)) : c;
3506
+ }), u = /* @__PURE__ */ new Map(), B = on(
3507
+ async (c, $, b) => t.actions.loadFieldOptions(t.section, c, $, b),
3508
+ (c, $) => `${t.section.key}:${A($)}:${T(c)}`
3501
3509
  );
3502
- function m(l) {
3503
- t.actions.deleteRow(t.section, l);
3510
+ function m(c) {
3511
+ t.actions.deleteRow(t.section, c);
3504
3512
  }
3505
- function y(l, $, b, D) {
3506
- const E = t.section.rows.slice(), A = b.cascadeClearFields ?? [], K = {
3507
- ...l,
3508
- __rowKey: N(l),
3513
+ function y(c, $, b, D) {
3514
+ const E = t.section.rows.slice(), N = b.cascadeClearFields ?? [], K = {
3515
+ ...c,
3516
+ __rowKey: A(c),
3509
3517
  [b.code]: D
3510
3518
  };
3511
- A.forEach((R) => {
3519
+ N.forEach((R) => {
3512
3520
  K[R] = "";
3513
3521
  }), E[$] = {
3514
3522
  ...K
3515
3523
  }, t.actions.updateTableRows(t.section, E), f(b, D, K, $, E), P(b, K);
3516
3524
  }
3517
- function f(l, $, b, D, E) {
3518
- const A = t.renderConfig?.onFieldBusinessChange;
3519
- if (A)
3525
+ function f(c, $, b, D, E) {
3526
+ const N = t.renderConfig?.onFieldBusinessChange;
3527
+ if (N)
3520
3528
  try {
3521
- const K = _(l, $), R = { ...t.section.model, ...b }, W = {
3522
- field: l,
3529
+ const K = _(c, $), R = { ...t.section.model, ...b }, W = {
3530
+ field: c,
3523
3531
  value: $,
3524
3532
  section: t.section,
3525
3533
  model: R,
@@ -3535,64 +3543,64 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3535
3543
  selectedOption: K[0],
3536
3544
  selectedOptions: K
3537
3545
  };
3538
- Promise.resolve(A(W)).catch((ee) => {
3546
+ Promise.resolve(N(W)).catch((ee) => {
3539
3547
  console.error("[GlobalInfoTableRenderer] field business change failed", ee);
3540
3548
  });
3541
3549
  } catch (K) {
3542
3550
  console.error("[GlobalInfoTableRenderer] field business change failed", K);
3543
3551
  }
3544
3552
  }
3545
- function _(l, $) {
3546
- const b = it(l, $);
3547
- return (l.options ?? []).filter((D) => b.some((E) => D.value === E || String(D.value) === String(E)));
3553
+ function _(c, $) {
3554
+ const b = it(c, $);
3555
+ return (c.options ?? []).filter((D) => b.some((E) => D.value === E || String(D.value) === String(E)));
3548
3556
  }
3549
3557
  function v() {
3550
3558
  return Object.values(t.state.sectionMap);
3551
3559
  }
3552
- function I(l, $) {
3560
+ function I(c, $) {
3553
3561
  const D = v().flatMap((E) => {
3554
- const A = E.key === l.key ? $ : E.renderType === "table" ? E.rows : E.model;
3555
- return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((K) => [String(K), A]);
3562
+ const N = E.key === c.key ? $ : E.renderType === "table" ? E.rows : E.model;
3563
+ return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((K) => [String(K), N]);
3556
3564
  });
3557
3565
  return Object.fromEntries(D);
3558
3566
  }
3559
- async function C(l, $, b = {}, D = $) {
3560
- const E = N(D), A = `${E}:${T(l)}`, K = ot(t.section.key, l, D, E), R = u.get(A);
3561
- if (!Dn(b) && rt(l, R, K)) {
3562
- u.set(A, K);
3567
+ async function C(c, $, b = {}, D = $) {
3568
+ const E = A(D), N = `${E}:${T(c)}`, K = ot(t.section.key, c, D, E), R = u.get(N);
3569
+ if (!Bn(b) && rt(c, R, K)) {
3570
+ u.set(N, K);
3563
3571
  return;
3564
3572
  }
3565
3573
  try {
3566
3574
  if (b.searchText !== void 0) {
3567
- await B(l, D, b);
3575
+ await B(c, D, b);
3568
3576
  return;
3569
3577
  }
3570
- await t.actions.loadFieldOptions(t.section, l, D, b), u.set(A, K);
3578
+ await t.actions.loadFieldOptions(t.section, c, D, b), u.set(N, K);
3571
3579
  } catch (ee) {
3572
3580
  console.error("[GlobalInfoTableRenderer] load field options failed", ee);
3573
3581
  }
3574
3582
  }
3575
- async function P(l, $) {
3583
+ async function P(c, $) {
3576
3584
  const b = $ ? [$] : t.section.rows;
3577
3585
  for (const D of b) {
3578
- const E = N(D);
3579
- for (const A of c.value) {
3580
- if (l && !Fn(A, l)) continue;
3581
- const K = D[A.code];
3582
- if (!g(A, K)) continue;
3583
- const R = ot(t.section.key, A, D, E), W = `${E}:${T(A)}`, ee = u.get(W);
3584
- if (rt(A, ee, R)) {
3586
+ const E = A(D);
3587
+ for (const N of l.value) {
3588
+ if (c && !Ln(N, c)) continue;
3589
+ const K = D[N.code];
3590
+ if (!g(N, K)) continue;
3591
+ const R = ot(t.section.key, N, D, E), W = `${E}:${T(N)}`, ee = u.get(W);
3592
+ if (rt(N, ee, R)) {
3585
3593
  u.set(W, R);
3586
3594
  continue;
3587
3595
  }
3588
- ee !== R && await C(A, D, Ln(A, K));
3596
+ ee !== R && await C(N, D, Vn(N, K));
3589
3597
  }
3590
3598
  }
3591
3599
  }
3592
- function S(l, $, b) {
3593
- const D = $[l.code];
3600
+ function S(c, $, b) {
3601
+ const D = $[c.code];
3594
3602
  return {
3595
- field: l,
3603
+ field: c,
3596
3604
  section: t.section,
3597
3605
  sectionView: t.section,
3598
3606
  node: t.node,
@@ -3603,50 +3611,50 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3603
3611
  value: D,
3604
3612
  state: t.state,
3605
3613
  actions: t.actions,
3606
- updateModelValue: (E) => y($, b, l, E)
3614
+ updateModelValue: (E) => y($, b, c, E)
3607
3615
  };
3608
3616
  }
3609
- function h(l) {
3610
- const $ = String(l.id || l.key || l.code || "").trim(), b = $ ? `field-${$}` : "";
3617
+ function h(c) {
3618
+ const $ = String(c.id || c.key || c.code || "").trim(), b = $ ? `field-${$}` : "";
3611
3619
  if (b && n[b]) return b;
3612
3620
  const D = b.toLowerCase();
3613
3621
  return D !== b && n[D] ? D : "";
3614
3622
  }
3615
- function O(l) {
3616
- return !l.readonly && !l.disabled;
3623
+ function O(c) {
3624
+ return !c.readonly && !c.disabled;
3617
3625
  }
3618
- function g(l, $) {
3619
- return Bn(l, $, t.editing);
3626
+ function g(c, $) {
3627
+ return En(c, $, t.editing);
3620
3628
  }
3621
- function j(l) {
3622
- return l.width ?? (Dt(l) ? 56 : void 0);
3629
+ function j(c) {
3630
+ return c.width ?? (Ft(c) ? 56 : void 0);
3623
3631
  }
3624
- function w(l) {
3625
- if (!l.width)
3626
- return l.minWidth ?? (Dt(l) ? 56 : void 0);
3632
+ function w(c) {
3633
+ if (!c.width)
3634
+ return c.minWidth ?? (Ft(c) ? 56 : void 0);
3627
3635
  }
3628
- function T(l) {
3629
- return l.key || l.id || l.code;
3636
+ function T(c) {
3637
+ return c.key || c.id || c.code;
3630
3638
  }
3631
- function F(l) {
3632
- return i.value + l;
3639
+ function F(c) {
3640
+ return i.value + c;
3633
3641
  }
3634
- function x(l) {
3635
- return Ft(l);
3642
+ function x(c) {
3643
+ return Bt(c);
3636
3644
  }
3637
3645
  let ne = 0;
3638
3646
  const q = /* @__PURE__ */ new WeakMap();
3639
- function N(l) {
3640
- const $ = l.__rowKey ?? l.key ?? l.id ?? l.setId ?? l.infSetId;
3647
+ function A(c) {
3648
+ const $ = c.__rowKey ?? c.key ?? c.id ?? c.setId ?? c.infSetId;
3641
3649
  if ($ != null && $ !== "") return String($);
3642
- const b = l, D = q.get(b);
3650
+ const b = c, D = q.get(b);
3643
3651
  if (D) return D;
3644
3652
  ne += 1;
3645
3653
  const E = `local-${ne}`;
3646
3654
  return q.set(b, E), E;
3647
3655
  }
3648
- function L(l) {
3649
- return l.required || l.isRequired;
3656
+ function L(c) {
3657
+ return c.required || c.isRequired;
3650
3658
  }
3651
3659
  return Be(
3652
3660
  () => t.section.key,
@@ -3659,18 +3667,18 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3659
3667
  P();
3660
3668
  },
3661
3669
  { immediate: !0 }
3662
- ), (l, $) => {
3663
- const b = Qt, D = xn("Delete"), E = Kt, A = wt, K = Zt;
3670
+ ), (c, $) => {
3671
+ const b = Xt, D = qn("Delete"), E = Gt, N = It, K = Qt;
3664
3672
  return k(), Y("div", {
3665
- class: Ue(["global-info-table-renderer", { "global-info-table-renderer--editing": l.editing }])
3673
+ class: Ue(["global-info-table-renderer", { "global-info-table-renderer--editing": c.editing }])
3666
3674
  }, [
3667
- te("div", oa, [
3675
+ te("div", aa, [
3668
3676
  we(K, {
3669
3677
  class: "global-info-table-renderer__table",
3670
- data: l.section.rows,
3678
+ data: c.section.rows,
3671
3679
  fit: !0,
3672
3680
  "table-layout": "auto",
3673
- "row-key": N
3681
+ "row-key": A
3674
3682
  }, {
3675
3683
  default: U(() => [
3676
3684
  r.value ? (k(), H(b, {
@@ -3680,7 +3688,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3680
3688
  width: a.value,
3681
3689
  index: F
3682
3690
  }, null, 8, ["label", "width"])) : ue("", !0),
3683
- (k(!0), Y(be, null, ve(c.value, (R) => (k(), H(b, {
3691
+ (k(!0), Y(be, null, ve(l.value, (R) => (k(), H(b, {
3684
3692
  key: T(R),
3685
3693
  prop: R.code,
3686
3694
  label: R.label,
@@ -3688,48 +3696,48 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3688
3696
  "min-width": w(R)
3689
3697
  }, {
3690
3698
  header: U(() => [
3691
- te("span", ra, [
3692
- L(R) ? (k(), Y("span", aa, "*")) : ue("", !0),
3699
+ te("span", sa, [
3700
+ L(R) ? (k(), Y("span", ia, "*")) : ue("", !0),
3693
3701
  te("span", null, fe(R.label), 1)
3694
3702
  ])
3695
3703
  ]),
3696
3704
  default: U(({ row: W, $index: ee }) => [
3697
- h(R) ? Q(l.$slots, h(R), oe({
3705
+ h(R) ? Q(c.$slots, h(R), oe({
3698
3706
  key: 0,
3699
3707
  ref_for: !0
3700
- }, S(R, W, ee)), void 0, !0) : l.editing && O(R) ? (k(), H(Tn, {
3708
+ }, S(R, W, ee)), void 0, !0) : c.editing && O(R) ? (k(), H(Dn, {
3701
3709
  key: 1,
3702
3710
  field: R,
3703
3711
  "model-value": W[R.code],
3704
- section: l.section,
3712
+ section: c.section,
3705
3713
  row: W,
3706
3714
  "row-index": ee,
3707
3715
  onLoadOptions: (z) => C(R, W, z),
3708
3716
  "onUpdate:modelValue": (z) => y(W, ee, R, z)
3709
- }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(On, {
3717
+ }, null, 8, ["field", "model-value", "section", "row", "row-index", "onLoadOptions", "onUpdate:modelValue"])) : (k(), H(Fn, {
3710
3718
  key: 2,
3711
3719
  field: R,
3712
3720
  value: W[R.code],
3713
- section: l.section,
3721
+ section: c.section,
3714
3722
  row: W,
3715
3723
  "row-index": ee
3716
3724
  }, null, 8, ["field", "value", "section", "row", "row-index"]))
3717
3725
  ]),
3718
3726
  _: 2
3719
3727
  }, 1032, ["prop", "label", "width", "min-width"]))), 128)),
3720
- l.editing ? (k(), H(b, {
3728
+ c.editing ? (k(), H(b, {
3721
3729
  key: 1,
3722
3730
  label: "操作",
3723
3731
  width: "104",
3724
3732
  fixed: "right"
3725
3733
  }, {
3726
3734
  default: U(({ $index: R }) => [
3727
- l.showDelete ? (k(), H(na, {
3735
+ c.showDelete ? (k(), H(ra, {
3728
3736
  key: 0,
3729
3737
  onConfirm: (W) => m(R)
3730
3738
  }, {
3731
3739
  default: U(() => [
3732
- we(A, {
3740
+ we(N, {
3733
3741
  class: "global-info-table-renderer__delete",
3734
3742
  link: "",
3735
3743
  type: "danger"
@@ -3758,7 +3766,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3758
3766
  ], 2);
3759
3767
  };
3760
3768
  }
3761
- }), ia = /* @__PURE__ */ ge(sa, [["__scopeId", "data-v-23432790"]]), la = /* @__PURE__ */ ce({
3769
+ }), ca = /* @__PURE__ */ ge(la, [["__scopeId", "data-v-23432790"]]), ua = /* @__PURE__ */ ce({
3762
3770
  name: "GlobalInfoAutoRenderer",
3763
3771
  __name: "GlobalInfoAutoRenderer",
3764
3772
  props: {
@@ -3770,7 +3778,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3770
3778
  renderConfig: {}
3771
3779
  },
3772
3780
  setup(e) {
3773
- return (t, n) => t.section.renderType === "table" ? (k(), H(ia, {
3781
+ return (t, n) => t.section.renderType === "table" ? (k(), H(ca, {
3774
3782
  key: 0,
3775
3783
  section: t.section,
3776
3784
  node: t.node,
@@ -3778,7 +3786,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3778
3786
  state: t.state,
3779
3787
  actions: t.actions,
3780
3788
  "render-config": t.renderConfig
3781
- }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(ta, {
3789
+ }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"])) : (k(), H(oa, {
3782
3790
  key: 1,
3783
3791
  section: t.section,
3784
3792
  node: t.node,
@@ -3788,7 +3796,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3788
3796
  "render-config": t.renderConfig
3789
3797
  }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
3790
3798
  }
3791
- }), ca = /* @__PURE__ */ ce({
3799
+ }), da = /* @__PURE__ */ ce({
3792
3800
  name: "GlobalInfoSectionOutlet",
3793
3801
  __name: "GlobalInfoSectionOutlet",
3794
3802
  props: {
@@ -3809,7 +3817,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3809
3817
  rows: t.section.renderType === "table" ? t.section.rows : void 0
3810
3818
  }
3811
3819
  )), r = V(() => t.editing ?? t.actions.isEditing(t.section)), s = V(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), a = V(() => {
3812
- const u = i(t.section.id || t.section.key), B = c(t.section.renderType);
3820
+ const u = i(t.section.id || t.section.key), B = l(t.section.renderType);
3813
3821
  return [
3814
3822
  u,
3815
3823
  B,
@@ -3820,7 +3828,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3820
3828
  const B = String(u ?? "").trim();
3821
3829
  return B ? `section-${B}` : "";
3822
3830
  }
3823
- function c(u) {
3831
+ function l(u) {
3824
3832
  return u === "form" || u === "table" ? u : "";
3825
3833
  }
3826
3834
  return (u, B) => a.value ? Q(u.$slots, a.value, {
@@ -3835,7 +3843,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3835
3843
  renderConfig: u.renderConfig,
3836
3844
  state: u.state,
3837
3845
  actions: u.actions
3838
- }) : (k(), H(la, {
3846
+ }) : (k(), H(ua, {
3839
3847
  key: 1,
3840
3848
  section: u.section,
3841
3849
  node: u.node,
@@ -3845,7 +3853,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3845
3853
  "render-config": u.renderConfig
3846
3854
  }, null, 8, ["section", "node", "editing", "state", "actions", "render-config"]));
3847
3855
  }
3848
- }), ua = ce({
3856
+ }), fa = ce({
3849
3857
  name: "GlobalInfoSlotErrorBoundary",
3850
3858
  props: {
3851
3859
  boundaryKey: {
@@ -3867,7 +3875,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3867
3875
  () => {
3868
3876
  o.value = !1;
3869
3877
  }
3870
- ), Rn((s) => (r(s), !1));
3878
+ ), Kn((s) => (r(s), !1));
3871
3879
  function r(s) {
3872
3880
  o.value = !0, console.error(`[GlobalInfoSlotErrorBoundary] ${e.label || "section"} slot render failed`, s), t("error", s);
3873
3881
  }
@@ -3881,13 +3889,13 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3881
3889
  }
3882
3890
  };
3883
3891
  }
3884
- }), da = { class: "global-info-section-block" }, fa = {
3892
+ }), pa = { class: "global-info-section-block" }, ma = {
3885
3893
  key: 0,
3886
3894
  class: "global-info-section-block__header"
3887
- }, pa = { class: "global-info-section-block__title-wrap" }, ma = { class: "global-info-section-block__title" }, va = {
3895
+ }, va = { class: "global-info-section-block__title-wrap" }, ha = { class: "global-info-section-block__title" }, ga = {
3888
3896
  key: 0,
3889
3897
  class: "global-info-section-block__actions"
3890
- }, ha = { class: "global-info-section-block__body" }, ga = /* @__PURE__ */ ce({
3898
+ }, ya = { class: "global-info-section-block__body" }, ba = /* @__PURE__ */ ce({
3891
3899
  name: "GlobalInfoSectionBlock",
3892
3900
  __name: "GlobalInfoSectionBlock",
3893
3901
  props: {
@@ -3901,19 +3909,19 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3901
3909
  onSave: { type: Function }
3902
3910
  },
3903
3911
  setup(e) {
3904
- const t = e, n = Le(), o = me(!1), r = me(null), s = me(null), a = V(() => !!t.hideHeader), i = V(() => t.actions.getSectionStatus(t.node)), c = V(() => t.actions.getSection(t.node) ?? s.value), u = V(() => {
3905
- const w = c.value;
3912
+ const t = e, n = Le(), o = me(!1), r = me(null), s = me(null), a = V(() => !!t.hideHeader), i = V(() => t.actions.getSectionStatus(t.node)), l = V(() => t.actions.getSection(t.node) ?? s.value), u = V(() => {
3913
+ const w = l.value;
3906
3914
  return w ? lt(w.fields, w, t.renderConfig, {
3907
3915
  values: w.model,
3908
3916
  rows: w.renderType === "table" ? w.rows : void 0
3909
3917
  }) : [];
3910
- }), B = V(() => c.value?.title || t.node.tagName || t.node.label || "-"), m = V(() => !!(c.value && t.actions.isEditing(c.value))), y = V(() => c.value?.renderType === "table"), f = V(() => o.value || i.value.loading), _ = V(() => C(r.value || i.value.error)), v = V(() => {
3911
- const w = c.value;
3918
+ }), B = V(() => l.value?.title || t.node.tagName || t.node.label || "-"), m = V(() => !!(l.value && t.actions.isEditing(l.value))), y = V(() => l.value?.renderType === "table"), f = V(() => o.value || i.value.loading), _ = V(() => C(r.value || i.value.error)), v = V(() => {
3919
+ const w = l.value;
3912
3920
  return w ? w.renderType === "table" && w.rows.length === 0 || u.value.length === 0 : !0;
3913
3921
  }), I = V(() => ({
3914
3922
  node: t.node,
3915
- section: c.value,
3916
- sectionView: c.value,
3923
+ section: l.value,
3924
+ sectionView: l.value,
3917
3925
  fields: u.value,
3918
3926
  renderConfig: t.renderConfig,
3919
3927
  title: B.value,
@@ -3936,21 +3944,21 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3936
3944
  return w ? w instanceof Error ? w.message : String(w) : "";
3937
3945
  }
3938
3946
  async function P() {
3939
- const w = c.value;
3947
+ const w = l.value;
3940
3948
  w && (await t.onEdit?.(w, t.node), t.onEdit || t.actions.startEdit(w));
3941
3949
  }
3942
3950
  async function S() {
3943
- const w = c.value;
3951
+ const w = l.value;
3944
3952
  w && (await t.onCancel?.(w, t.node), t.onCancel || t.actions.cancelEdit(w));
3945
3953
  }
3946
3954
  function h() {
3947
- const w = c.value;
3955
+ const w = l.value;
3948
3956
  if (!w) return;
3949
3957
  const T = w.fields.reduce((F, x) => (F[x.code] = x.value ?? "", F), { __rowKey: `new-${Date.now()}` });
3950
3958
  t.actions.saveRow(w, T, -1);
3951
3959
  }
3952
3960
  async function O() {
3953
- const w = c.value;
3961
+ const w = l.value;
3954
3962
  if (w)
3955
3963
  try {
3956
3964
  if (t.onSave) {
@@ -3975,7 +3983,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3975
3983
  o.value = !1;
3976
3984
  }
3977
3985
  }
3978
- return qt(() => {
3986
+ return Kt(() => {
3979
3987
  j();
3980
3988
  }), Be(
3981
3989
  () => t.node.key,
@@ -3983,16 +3991,16 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
3983
3991
  j();
3984
3992
  }
3985
3993
  ), (w, T) => {
3986
- const F = wt;
3987
- return k(), Y("section", da, [
3988
- a.value ? ue("", !0) : (k(), Y("header", fa, [
3994
+ const F = It;
3995
+ return k(), Y("section", pa, [
3996
+ a.value ? ue("", !0) : (k(), Y("header", ma, [
3989
3997
  Q(w.$slots, "header", Me(Fe(I.value)), () => [
3990
- te("div", pa, [
3998
+ te("div", va, [
3991
3999
  T[0] || (T[0] = te("span", { class: "global-info-section-block__marker" }, null, -1)),
3992
- te("h3", ma, fe(B.value), 1)
4000
+ te("h3", ha, fe(B.value), 1)
3993
4001
  ]),
3994
4002
  Q(w.$slots, "actions", Me(Fe(I.value)), () => [
3995
- c.value ? (k(), Y("div", va, [
4003
+ l.value ? (k(), Y("div", ga, [
3996
4004
  m.value ? (k(), Y(be, { key: 1 }, [
3997
4005
  we(F, {
3998
4006
  class: "global-info-section-block__cancel",
@@ -4051,12 +4059,12 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4051
4059
  ], !0)
4052
4060
  ], !0)
4053
4061
  ])),
4054
- te("div", ha, [
4062
+ te("div", ya, [
4055
4063
  f.value ? Q(w.$slots, "loading", Me(oe({ key: 0 }, I.value)), () => [
4056
4064
  T[4] || (T[4] = te("div", { class: "global-info-section-block__status" }, "加载中...", -1))
4057
- ], !0) : !c.value || v.value ? Q(w.$slots, "empty", Me(oe({ key: 1 }, I.value)), () => [
4065
+ ], !0) : !l.value || v.value ? Q(w.$slots, "empty", Me(oe({ key: 1 }, I.value)), () => [
4058
4066
  T[5] || (T[5] = te("div", { class: "global-info-section-block__status" }, "暂无数据", -1))
4059
- ], !0) : (k(), H(ua, {
4067
+ ], !0) : (k(), H(fa, {
4060
4068
  key: 2,
4061
4069
  "boundary-key": w.node.key,
4062
4070
  label: B.value,
@@ -4068,14 +4076,14 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4068
4076
  ], !0)
4069
4077
  ]),
4070
4078
  default: U(() => [
4071
- we(ca, {
4072
- section: c.value,
4079
+ we(da, {
4080
+ section: l.value,
4073
4081
  node: w.node,
4074
4082
  editing: m.value,
4075
4083
  state: w.state,
4076
4084
  actions: w.actions,
4077
4085
  "render-config": w.renderConfig
4078
- }, Ae({ _: 2 }, [
4086
+ }, Ne({ _: 2 }, [
4079
4087
  ve(re(n), (x, ne) => ({
4080
4088
  name: ne,
4081
4089
  fn: U((q) => [
@@ -4090,7 +4098,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4090
4098
  ]);
4091
4099
  };
4092
4100
  }
4093
- }), ya = /* @__PURE__ */ ge(ga, [["__scopeId", "data-v-77980d16"]]), ba = { class: "global-info-group" }, Sa = { class: "global-info-group__header" }, wa = { class: "global-info-group__title" }, Ia = { class: "global-info-group__body" }, _a = ["id"], $a = /* @__PURE__ */ ce({
4101
+ }), Sa = /* @__PURE__ */ ge(ba, [["__scopeId", "data-v-77980d16"]]), wa = { class: "global-info-group" }, Ia = { class: "global-info-group__header" }, _a = { class: "global-info-group__title" }, $a = { class: "global-info-group__body" }, Ca = ["id"], ka = /* @__PURE__ */ ce({
4094
4102
  name: "GlobalInfoGroup",
4095
4103
  __name: "GlobalInfoGroup",
4096
4104
  props: {
@@ -4124,7 +4132,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4124
4132
  };
4125
4133
  }
4126
4134
  function a(m) {
4127
- return i("section", c(m));
4135
+ return i("section", l(m));
4128
4136
  }
4129
4137
  function i(m, y) {
4130
4138
  if (!y) return "";
@@ -4133,7 +4141,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4133
4141
  const _ = f.toLowerCase();
4134
4142
  return _ !== f && n[_] ? _ : "";
4135
4143
  }
4136
- function c(m) {
4144
+ function l(m) {
4137
4145
  return String(m.id || m.infSetId || m.tagId || m.key || m.code || "").trim();
4138
4146
  }
4139
4147
  function u(m, y) {
@@ -4142,7 +4150,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4142
4150
  function B(m) {
4143
4151
  return `global-info-section-${u(m, 0)}`;
4144
4152
  }
4145
- return (m, y) => (k(), Y("section", ba, [
4153
+ return (m, y) => (k(), Y("section", wa, [
4146
4154
  Q(m.$slots, "header", {
4147
4155
  group: m.group,
4148
4156
  children: m.children,
@@ -4153,12 +4161,12 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4153
4161
  index: m.index,
4154
4162
  isEmpty: m.children.length === 0
4155
4163
  }, () => [
4156
- te("header", Sa, [
4164
+ te("header", Ia, [
4157
4165
  y[0] || (y[0] = te("span", { class: "global-info-group__marker" }, null, -1)),
4158
- te("h2", wa, fe(o.value), 1)
4166
+ te("h2", _a, fe(o.value), 1)
4159
4167
  ])
4160
4168
  ], !0),
4161
- te("div", Ia, [
4169
+ te("div", $a, [
4162
4170
  re(n).default ? Q(m.$slots, "default", {
4163
4171
  key: 0,
4164
4172
  group: m.group,
@@ -4180,14 +4188,14 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4180
4188
  }, s(f, _)), void 0, !0) : re(n).section ? Q(m.$slots, "section", oe({
4181
4189
  key: 1,
4182
4190
  ref_for: !0
4183
- }, s(f, _)), void 0, !0) : (k(), H(ya, {
4191
+ }, s(f, _)), void 0, !0) : (k(), H(Sa, {
4184
4192
  key: 2,
4185
4193
  node: f,
4186
4194
  state: m.state,
4187
4195
  actions: m.actions,
4188
4196
  "hide-header": r.value,
4189
4197
  "render-config": m.renderConfig
4190
- }, Ae({ _: 2 }, [
4198
+ }, Ne({ _: 2 }, [
4191
4199
  ve(re(n), (v, I) => ({
4192
4200
  name: I,
4193
4201
  fn: U((C) => [
@@ -4195,7 +4203,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4195
4203
  ])
4196
4204
  }))
4197
4205
  ]), 1032, ["node", "state", "actions", "hide-header", "render-config"]))
4198
- ], 8, _a))), 128)),
4206
+ ], 8, Ca))), 128)),
4199
4207
  m.children.length === 0 ? Q(m.$slots, "empty", {
4200
4208
  key: 0,
4201
4209
  node: null,
@@ -4212,7 +4220,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4212
4220
  ])
4213
4221
  ]));
4214
4222
  }
4215
- }), Ca = /* @__PURE__ */ ge($a, [["__scopeId", "data-v-c90b8de0"]]), ka = { class: "global-info-sections" }, Ma = /* @__PURE__ */ ce({
4223
+ }), Ma = /* @__PURE__ */ ge(ka, [["__scopeId", "data-v-c90b8de0"]]), Ta = { class: "global-info-sections" }, Oa = /* @__PURE__ */ ce({
4216
4224
  name: "GlobalInfoSections",
4217
4225
  __name: "GlobalInfoSections",
4218
4226
  props: {
@@ -4236,7 +4244,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4236
4244
  return !String(y.parentId || y.parentTagId || "").trim();
4237
4245
  }
4238
4246
  function a(y) {
4239
- return i("group", c(y));
4247
+ return i("group", l(y));
4240
4248
  }
4241
4249
  function i(y, f) {
4242
4250
  if (!f) return "";
@@ -4245,7 +4253,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4245
4253
  const v = _.toLowerCase();
4246
4254
  return v !== _ && n[v] ? v : "";
4247
4255
  }
4248
- function c(y) {
4256
+ function l(y) {
4249
4257
  return String(y.id || y.tagId || y.key || y.code || "").trim();
4250
4258
  }
4251
4259
  function u(y, f) {
@@ -4273,7 +4281,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4273
4281
  children: _
4274
4282
  }));
4275
4283
  }
4276
- return (y, f) => (k(), Y("div", ka, [
4284
+ return (y, f) => (k(), Y("div", Ta, [
4277
4285
  (k(!0), Y(be, null, ve(o.value, (_, v) => (k(), Y(be, {
4278
4286
  key: u(_.group, v)
4279
4287
  }, [
@@ -4295,7 +4303,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4295
4303
  renderConfig: y.renderConfig,
4296
4304
  index: v,
4297
4305
  isEmpty: _.children.length === 0
4298
- }, void 0, !0) : (k(), H(Ca, {
4306
+ }, void 0, !0) : (k(), H(Ma, {
4299
4307
  key: 2,
4300
4308
  group: _.group,
4301
4309
  children: _.children,
@@ -4303,7 +4311,7 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4303
4311
  actions: y.actions,
4304
4312
  "render-config": y.renderConfig,
4305
4313
  index: v
4306
- }, Ae({ _: 2 }, [
4314
+ }, Ne({ _: 2 }, [
4307
4315
  ve(re(n), (I, C) => ({
4308
4316
  name: C,
4309
4317
  fn: U((P) => [
@@ -4314,39 +4322,39 @@ const Qr = { class: "global-info-form-renderer__label" }, Xr = {
4314
4322
  ], 64))), 128))
4315
4323
  ]));
4316
4324
  }
4317
- }), Pa = /* @__PURE__ */ ge(Ma, [["__scopeId", "data-v-c0d12f5e"]]);
4325
+ }), Na = /* @__PURE__ */ ge(Oa, [["__scopeId", "data-v-c0d12f5e"]]);
4318
4326
  export {
4319
- la as GlobalInfoAutoRenderer,
4320
- na as GlobalInfoDeleteConfirm,
4321
- Tn as GlobalInfoFieldControl,
4322
- On as GlobalInfoFieldValue,
4323
- ta as GlobalInfoFormRenderer,
4324
- Ca as GlobalInfoGroup,
4325
- Va as GlobalInfoProvider,
4326
- ya as GlobalInfoSectionBlock,
4327
- ca as GlobalInfoSectionOutlet,
4328
- Pa as GlobalInfoSections,
4329
- ia as GlobalInfoTableRenderer,
4330
- kt as JtAttachmentPreview,
4331
- ja as JtAttachmentPreviewByParams,
4327
+ ua as GlobalInfoAutoRenderer,
4328
+ ra as GlobalInfoDeleteConfirm,
4329
+ Dn as GlobalInfoFieldControl,
4330
+ Fn as GlobalInfoFieldValue,
4331
+ oa as GlobalInfoFormRenderer,
4332
+ Ma as GlobalInfoGroup,
4333
+ Aa as GlobalInfoProvider,
4334
+ Sa as GlobalInfoSectionBlock,
4335
+ da as GlobalInfoSectionOutlet,
4336
+ Na as GlobalInfoSections,
4337
+ ca as GlobalInfoTableRenderer,
4338
+ Mt as JtAttachmentPreview,
4339
+ xa as JtAttachmentPreviewByParams,
4332
4340
  tt as JtButton,
4333
- ro as JtCascader,
4334
- Ba as JtCrudTable,
4335
- so as JtDatePicker,
4336
- _o as JtFilterBar,
4337
- po as JtFormItems,
4341
+ so as JtCascader,
4342
+ Ea as JtCrudTable,
4343
+ lo as JtDatePicker,
4344
+ Co as JtFilterBar,
4345
+ vo as JtFormItems,
4338
4346
  mt as JtInput,
4339
- La as JtPageHeader,
4340
- Bo as JtPagination,
4341
- co as JtSelect,
4342
- To as JtTable,
4343
- cr as buildGlobalInfoUpdatePayload,
4344
- sr as createEmptyGlobalInfoViewModel,
4345
- Ea as isGlobalInfoNode,
4346
- mn as mergeGlobalInfoChildren,
4347
- ir as normalizeGlobalInfoDetail,
4348
- Pt as normalizeGlobalInfoTree,
4349
- lr as resolveGlobalInfoRenderType,
4350
- za as setupJtAttachmentPreview,
4351
- Vr as useGlobalInfoController
4347
+ Va as JtPageHeader,
4348
+ Eo as JtPagination,
4349
+ fo as JtSelect,
4350
+ Do as JtTable,
4351
+ dr as buildGlobalInfoUpdatePayload,
4352
+ lr as createEmptyGlobalInfoViewModel,
4353
+ Pa as isGlobalInfoNode,
4354
+ vn as mergeGlobalInfoChildren,
4355
+ cr as normalizeGlobalInfoDetail,
4356
+ At as normalizeGlobalInfoTree,
4357
+ ur as resolveGlobalInfoRenderType,
4358
+ Ra as setupJtAttachmentPreview,
4359
+ Ar as useGlobalInfoController
4352
4360
  };