cd-form 2.0.19 → 2.0.20

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/cd-form.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as Ge, computed as me, resolveComponent as M, createBlock as Y, openBlock as l, normalizeClass as Ve, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as H, normalizeStyle as Qe, toDisplayString as V, createTextVNode as U, withModifiers as Ze, Fragment as fe, renderList as _e, ref as z, watch as ze, nextTick as na, createVNode as s, withDirectives as ha, withKeys as Fa, vModelText as Ca, vShow as Cl, createSlots as ya, useCssVars as Ol, onMounted as za, onUnmounted as gl, Teleport as vl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as fl, resolveDynamicComponent as Tl, mergeProps as Aa, provide as wa, watchEffect as xl, h as ml, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
1
+ import { defineComponent as Ge, computed as me, resolveComponent as F, createBlock as Y, openBlock as l, normalizeClass as Ve, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as H, normalizeStyle as Qe, toDisplayString as V, createTextVNode as U, withModifiers as Ze, Fragment as fe, renderList as _e, ref as z, watch as ze, nextTick as na, createVNode as s, withDirectives as ha, withKeys as Fa, vModelText as Ca, vShow as Cl, createSlots as ya, useCssVars as Ol, onMounted as za, onUnmounted as gl, Teleport as vl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as fl, resolveDynamicComponent as Tl, mergeProps as Aa, provide as wa, watchEffect as xl, h as ml, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
2
2
  import { MessagePlugin as Te, DialogPlugin as Ll } from "tdesign-vue-next";
3
3
  import ja from "vxe-table";
4
- const Da = /* @__PURE__ */ Ge({
4
+ const Ma = /* @__PURE__ */ Ge({
5
5
  __name: "CdFormCol",
6
6
  props: {
7
7
  span: { default: 12 },
@@ -13,7 +13,7 @@ const Da = /* @__PURE__ */ Ge({
13
13
  setup(a) {
14
14
  const ae = a, n = me(() => Math.max(1, Math.min(24, ae.span)));
15
15
  return (y, u) => {
16
- const c = M("t-col");
16
+ const c = F("t-col");
17
17
  return l(), Y(c, {
18
18
  span: n.value,
19
19
  offset: a.offset,
@@ -138,7 +138,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
138
138
  return A[Math.abs(Q) % A.length];
139
139
  });
140
140
  return (A, L) => {
141
- const Q = M("t-button"), B = M("t-tag");
141
+ const Q = F("t-button"), B = F("t-tag");
142
142
  return l(), o("div", {
143
143
  class: Ve(["cd-usercard", [`cd-usercard--${a.size}`, { "cd-usercard--clickable": a.clickable }]]),
144
144
  onClick: c
@@ -328,16 +328,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
328
328
  left: `${I.value.left}px`,
329
329
  top: `${I.value.top}px`
330
330
  })), P = me(() => {
331
- const { x: _, y: F, width: ue, height: se } = w.value;
331
+ const { x: _, y: M, width: ue, height: se } = w.value;
332
332
  return {
333
333
  clipPath: `polygon(
334
334
  0% 0%,
335
335
  0% 100%,
336
336
  ${_}px 100%,
337
- ${_}px ${F}px,
338
- ${_ + ue}px ${F}px,
339
- ${_ + ue}px ${F + se}px,
340
- ${_}px ${F + se}px,
337
+ ${_}px ${M}px,
338
+ ${_ + ue}px ${M}px,
339
+ ${_ + ue}px ${M + se}px,
340
+ ${_}px ${M + se}px,
341
341
  ${_}px 100%,
342
342
  100% 100%,
343
343
  100% 0%
@@ -345,9 +345,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
345
345
  };
346
346
  }), j = () => {
347
347
  if (!c.value || !v.value) return;
348
- const _ = c.value, F = v.value, ue = F.offsetWidth, se = F.offsetHeight, te = _.naturalWidth / _.naturalHeight, D = ue / se;
348
+ const _ = c.value, M = v.value, ue = M.offsetWidth, se = M.offsetHeight, te = _.naturalWidth / _.naturalHeight, S = ue / se;
349
349
  let T, b;
350
- te > D ? (T = ue, b = ue / te) : (b = se, T = se * te), d.value = {
350
+ te > S ? (T = ue, b = ue / te) : (b = se, T = se * te), d.value = {
351
351
  width: T,
352
352
  height: b,
353
353
  naturalWidth: _.naturalWidth,
@@ -365,31 +365,31 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
365
365
  width: _,
366
366
  height: _
367
367
  }, de();
368
- }, S = (_) => {
368
+ }, D = (_) => {
369
369
  A.value = !0, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
370
370
  }, g = (_) => {
371
371
  if (A.value) {
372
- const F = _.clientX - B.value.x, ue = _.clientY - B.value.y;
373
- let se = G.value.x + F, te = G.value.y + ue;
372
+ const M = _.clientX - B.value.x, ue = _.clientY - B.value.y;
373
+ let se = G.value.x + M, te = G.value.y + ue;
374
374
  se = Math.max(0, Math.min(se, d.value.width - w.value.width)), te = Math.max(0, Math.min(te, d.value.height - w.value.height)), w.value.x = se, w.value.y = te, de();
375
375
  } else L.value && re(_);
376
376
  }, E = () => {
377
377
  A.value = !1, L.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", E);
378
- }, O = (_, F) => {
379
- L.value = !0, Q.value = F, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
378
+ }, O = (_, M) => {
379
+ L.value = !0, Q.value = M, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
380
380
  }, re = (_) => {
381
- const F = _.clientX - B.value.x, ue = _.clientY - B.value.y, se = Q.value;
381
+ const M = _.clientX - B.value.x, ue = _.clientY - B.value.y, se = Q.value;
382
382
  let te = { ...G.value };
383
- const D = Math.max(Math.abs(F), Math.abs(ue)) * (F < 0 || ue < 0 ? -1 : 1);
384
- se.includes("n") && (te.y = G.value.y + D, te.height = G.value.height - D), se.includes("s") && (te.height = G.value.height + D), se.includes("w") && (te.x = G.value.x + D, te.width = G.value.width - D), se.includes("e") && (te.width = G.value.width + D);
383
+ const S = Math.max(Math.abs(M), Math.abs(ue)) * (M < 0 || ue < 0 ? -1 : 1);
384
+ se.includes("n") && (te.y = G.value.y + S, te.height = G.value.height - S), se.includes("s") && (te.height = G.value.height + S), se.includes("w") && (te.x = G.value.x + S, te.width = G.value.width - S), se.includes("e") && (te.width = G.value.width + S);
385
385
  const T = Math.max(50, Math.min(te.width, te.height));
386
386
  se.includes("n") && (te.y = G.value.y + G.value.height - T), se.includes("w") && (te.x = G.value.x + G.value.width - T), te.width = T, te.height = T, te.x = Math.max(0, Math.min(te.x, d.value.width - te.width)), te.y = Math.max(0, Math.min(te.y, d.value.height - te.height)), w.value = te, de();
387
387
  }, de = () => {
388
388
  if (!k.value || !c.value) return;
389
- const F = k.value.getContext("2d");
390
- if (!F) return;
389
+ const M = k.value.getContext("2d");
390
+ if (!M) return;
391
391
  const ue = d.value.naturalWidth / d.value.width;
392
- F.clearRect(0, 0, 80, 80), F.drawImage(
392
+ M.clearRect(0, 0, 80, 80), M.drawImage(
393
393
  c.value,
394
394
  w.value.x * ue,
395
395
  w.value.y * ue,
@@ -402,8 +402,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
402
402
  );
403
403
  }, W = () => {
404
404
  if (!c.value) return;
405
- const _ = document.createElement("canvas"), F = 300;
406
- _.width = F, _.height = F;
405
+ const _ = document.createElement("canvas"), M = 300;
406
+ _.width = M, _.height = M;
407
407
  const ue = _.getContext("2d");
408
408
  if (!ue) return;
409
409
  const se = d.value.naturalWidth / d.value.width;
@@ -415,19 +415,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
415
415
  w.value.height * se,
416
416
  0,
417
417
  0,
418
- F,
419
- F
418
+ M,
419
+ M
420
420
  ), _.toBlob((te) => {
421
421
  te && (y("confirm", te), u.value = !1);
422
422
  }, "image/jpeg", 0.9);
423
423
  }, x = () => {
424
424
  y("cancel");
425
425
  };
426
- return (_, F) => {
427
- const ue = M("t-button"), se = M("t-dialog");
426
+ return (_, M) => {
427
+ const ue = F("t-button"), se = F("t-dialog");
428
428
  return l(), Y(se, {
429
429
  visible: u.value,
430
- "onUpdate:visible": F[10] || (F[10] = (te) => u.value = te),
430
+ "onUpdate:visible": M[10] || (M[10] = (te) => u.value = te),
431
431
  header: "裁剪头像",
432
432
  width: 500,
433
433
  footer: !1,
@@ -453,9 +453,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
453
453
  class: "crop-image",
454
454
  draggable: "false",
455
455
  onLoad: j,
456
- onDragstart: F[0] || (F[0] = Ze(() => {
456
+ onDragstart: M[0] || (M[0] = Ze(() => {
457
457
  }, ["prevent"])),
458
- onContextmenu: F[1] || (F[1] = Ze(() => {
458
+ onContextmenu: M[1] || (M[1] = Ze(() => {
459
459
  }, ["prevent"]))
460
460
  }, null, 40, kt),
461
461
  e("div", {
@@ -465,10 +465,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
465
465
  e("div", {
466
466
  class: "crop-box",
467
467
  style: Qe(he.value),
468
- onMousedown: S
468
+ onMousedown: D
469
469
  }, [
470
- F[11] || (F[11] = e("div", { class: "crop-box-border" }, null, -1)),
471
- F[12] || (F[12] = e("div", { class: "crop-box-grid" }, [
470
+ M[11] || (M[11] = e("div", { class: "crop-box-border" }, null, -1)),
471
+ M[12] || (M[12] = e("div", { class: "crop-box-grid" }, [
472
472
  e("div", {
473
473
  class: "grid-line grid-line-h",
474
474
  style: { top: "33.33%" }
@@ -488,41 +488,41 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
488
488
  ], -1)),
489
489
  e("div", {
490
490
  class: "resize-handle handle-nw",
491
- onMousedown: F[2] || (F[2] = Ze((te) => O(te, "nw"), ["stop"]))
491
+ onMousedown: M[2] || (M[2] = Ze((te) => O(te, "nw"), ["stop"]))
492
492
  }, null, 32),
493
493
  e("div", {
494
494
  class: "resize-handle handle-n",
495
- onMousedown: F[3] || (F[3] = Ze((te) => O(te, "n"), ["stop"]))
495
+ onMousedown: M[3] || (M[3] = Ze((te) => O(te, "n"), ["stop"]))
496
496
  }, null, 32),
497
497
  e("div", {
498
498
  class: "resize-handle handle-ne",
499
- onMousedown: F[4] || (F[4] = Ze((te) => O(te, "ne"), ["stop"]))
499
+ onMousedown: M[4] || (M[4] = Ze((te) => O(te, "ne"), ["stop"]))
500
500
  }, null, 32),
501
501
  e("div", {
502
502
  class: "resize-handle handle-e",
503
- onMousedown: F[5] || (F[5] = Ze((te) => O(te, "e"), ["stop"]))
503
+ onMousedown: M[5] || (M[5] = Ze((te) => O(te, "e"), ["stop"]))
504
504
  }, null, 32),
505
505
  e("div", {
506
506
  class: "resize-handle handle-se",
507
- onMousedown: F[6] || (F[6] = Ze((te) => O(te, "se"), ["stop"]))
507
+ onMousedown: M[6] || (M[6] = Ze((te) => O(te, "se"), ["stop"]))
508
508
  }, null, 32),
509
509
  e("div", {
510
510
  class: "resize-handle handle-s",
511
- onMousedown: F[7] || (F[7] = Ze((te) => O(te, "s"), ["stop"]))
511
+ onMousedown: M[7] || (M[7] = Ze((te) => O(te, "s"), ["stop"]))
512
512
  }, null, 32),
513
513
  e("div", {
514
514
  class: "resize-handle handle-sw",
515
- onMousedown: F[8] || (F[8] = Ze((te) => O(te, "sw"), ["stop"]))
515
+ onMousedown: M[8] || (M[8] = Ze((te) => O(te, "sw"), ["stop"]))
516
516
  }, null, 32),
517
517
  e("div", {
518
518
  class: "resize-handle handle-w",
519
- onMousedown: F[9] || (F[9] = Ze((te) => O(te, "w"), ["stop"]))
519
+ onMousedown: M[9] || (M[9] = Ze((te) => O(te, "w"), ["stop"]))
520
520
  }, null, 32)
521
521
  ], 36)
522
522
  ], 4)
523
523
  ], 512),
524
524
  e("div", Ct, [
525
- F[13] || (F[13] = e("div", { class: "preview-title" }, "预览", -1)),
525
+ M[13] || (M[13] = e("div", { class: "preview-title" }, "预览", -1)),
526
526
  e("canvas", {
527
527
  ref_key: "previewCanvasRef",
528
528
  ref: k,
@@ -537,7 +537,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
537
537
  variant: "outline",
538
538
  onClick: x
539
539
  }, {
540
- default: i(() => [...F[14] || (F[14] = [
540
+ default: i(() => [...M[14] || (M[14] = [
541
541
  U("取消", -1)
542
542
  ])]),
543
543
  _: 1
@@ -546,7 +546,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
546
546
  theme: "primary",
547
547
  onClick: W
548
548
  }, {
549
- default: i(() => [...F[15] || (F[15] = [
549
+ default: i(() => [...M[15] || (M[15] = [
550
550
  U("确认", -1)
551
551
  ])]),
552
552
  _: 1
@@ -558,7 +558,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
558
558
  }, 8, ["visible"]);
559
559
  };
560
560
  }
561
- }), $t = /* @__PURE__ */ aa(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Mt = { class: "profile__header" }, Ft = { class: "profile__avatar-wrapper" }, Dt = ["src"], zt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
561
+ }), $t = /* @__PURE__ */ aa(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Dt = { class: "profile__header" }, Ft = { class: "profile__avatar-wrapper" }, Mt = ["src"], zt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
562
562
  key: 0,
563
563
  class: "profile__alias editable"
564
564
  }, Rt = {
@@ -595,8 +595,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
595
595
  setup(a, { emit: ae }) {
596
596
  const n = a, y = ae, u = z(null), c = z(""), v = z(null), R = z(null), k = z(!1), w = z(""), d = (j, r) => {
597
597
  u.value = j, c.value = r, na(() => {
598
- var S;
599
- return (S = v.value) == null ? void 0 : S.focus();
598
+ var D;
599
+ return (D = v.value) == null ? void 0 : D.focus();
600
600
  });
601
601
  }, I = () => {
602
602
  if (u.value) {
@@ -609,13 +609,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
609
609
  (j = R.value) == null || j.click();
610
610
  }, L = (j) => {
611
611
  var g;
612
- const r = j.target, S = (g = r.files) == null ? void 0 : g[0];
613
- if (S) {
612
+ const r = j.target, D = (g = r.files) == null ? void 0 : g[0];
613
+ if (D) {
614
614
  const E = new FileReader();
615
615
  E.onload = (O) => {
616
616
  var re;
617
617
  w.value = (re = O.target) == null ? void 0 : re.result, k.value = !0;
618
- }, E.readAsDataURL(S), r.value = "";
618
+ }, E.readAsDataURL(D), r.value = "";
619
619
  }
620
620
  }, Q = (j) => {
621
621
  const r = new File([j], "avatar.jpg", { type: "image/jpeg" });
@@ -631,14 +631,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
631
631
  "#eb2f96",
632
632
  "#fa8c16"
633
633
  ], r = n.modelValue.displayName || "";
634
- let S = 0;
634
+ let D = 0;
635
635
  for (let g = 0; g < r.length; g++)
636
- S = r.charCodeAt(g) + ((S << 5) - S);
637
- return j[Math.abs(S) % j.length];
636
+ D = r.charCodeAt(g) + ((D << 5) - D);
637
+ return j[Math.abs(D) % j.length];
638
638
  });
639
639
  return (j, r) => {
640
640
  var E;
641
- const S = M("t-tag"), g = M("t-button");
641
+ const D = F("t-tag"), g = F("t-button");
642
642
  return l(), o(fe, null, [
643
643
  e("div", Vt, [
644
644
  e("h3", null, [
@@ -646,14 +646,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
646
646
  U(" " + V(a.title), 1)
647
647
  ]),
648
648
  e("div", St, [
649
- e("div", Mt, [
649
+ e("div", Dt, [
650
650
  e("div", Ft, [
651
651
  a.modelValue.avatar ? (l(), o("img", {
652
652
  key: 0,
653
653
  class: "profile__avatar",
654
654
  src: a.modelValue.avatar,
655
655
  alt: "avatar"
656
- }, null, 8, Dt)) : (l(), o("div", {
656
+ }, null, 8, Mt)) : (l(), o("div", {
657
657
  key: 1,
658
658
  class: "profile__avatar profile__avatar-placeholder",
659
659
  style: Qe({ backgroundColor: P.value })
@@ -701,7 +701,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
701
701
  r[17] || (r[17] = e("i", { class: "ri-edit-line edit-icon" }, null, -1))
702
702
  ]))
703
703
  ], 64)) : a.modelValue.alias ? (l(), o("span", Rt, "(" + V(a.modelValue.alias) + ")", 1)) : H("", !0),
704
- s(S, {
704
+ s(D, {
705
705
  size: "small",
706
706
  theme: B.value,
707
707
  variant: "light"
@@ -850,7 +850,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
850
850
  U(" 标签")
851
851
  ], -1)),
852
852
  (E = a.modelValue.tags) != null && E.length ? (l(), o("div", Qt, [
853
- (l(!0), o(fe, null, _e(a.modelValue.tags, (O) => (l(), Y(S, {
853
+ (l(!0), o(fe, null, _e(a.modelValue.tags, (O) => (l(), Y(D, {
854
854
  key: O,
855
855
  size: "small",
856
856
  variant: "light"
@@ -918,7 +918,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
918
918
  y("logout");
919
919
  };
920
920
  return (I, A) => {
921
- const L = M("t-dialog");
921
+ const L = F("t-dialog");
922
922
  return l(), Y(L, {
923
923
  visible: u.value,
924
924
  "onUpdate:visible": A[1] || (A[1] = (Q) => u.value = Q),
@@ -1025,11 +1025,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1025
1025
  y("edit");
1026
1026
  }, r = (g, E) => {
1027
1027
  y("field-change", g, E);
1028
- }, S = () => {
1028
+ }, D = () => {
1029
1029
  u.value = !1, y("logout");
1030
1030
  };
1031
1031
  return (g, E) => {
1032
- const O = M("t-popup");
1032
+ const O = F("t-popup");
1033
1033
  return l(), o(fe, null, [
1034
1034
  s(O, {
1035
1035
  modelValue: u.value,
@@ -1112,7 +1112,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1112
1112
  a.showLogout ? (l(), o("div", kn, [
1113
1113
  e("div", {
1114
1114
  class: "cd-usercard-menu-item cd-usercard-logout-item",
1115
- onClick: S
1115
+ onClick: D
1116
1116
  }, [...E[10] || (E[10] = [
1117
1117
  e("i", { class: "ri-logout-box-line" }, null, -1),
1118
1118
  e("span", null, "退出登录", -1)
@@ -1165,13 +1165,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1165
1165
  }), $n = /* @__PURE__ */ aa(xn, [["__scopeId", "data-v-42962883"]]), Vn = { class: "cd-ps-container" }, Sn = {
1166
1166
  key: 0,
1167
1167
  class: "cd-ps-tips"
1168
- }, Mn = {
1168
+ }, Dn = {
1169
1169
  key: 1,
1170
1170
  class: "cd-ps-search"
1171
1171
  }, Fn = {
1172
1172
  key: 0,
1173
1173
  class: "cd-ps-org-select"
1174
- }, Dn = { class: "cd-ps-search-input" }, zn = { class: "cd-ps-content" }, An = { class: "cd-ps-left" }, Un = {
1174
+ }, Mn = { class: "cd-ps-search-input" }, zn = { class: "cd-ps-content" }, An = { class: "cd-ps-left" }, Un = {
1175
1175
  key: 0,
1176
1176
  class: "cd-ps-search-results"
1177
1177
  }, Rn = { class: "cd-ps-search-header" }, En = {
@@ -1214,7 +1214,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1214
1214
  emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
1215
1215
  setup(a, { expose: ae, emit: n }) {
1216
1216
  var y, u;
1217
- const c = a, v = n, R = z(c.visible), k = z(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = z(null), d = z(""), I = z([]), A = z(/* @__PURE__ */ new Map()), L = z({}), Q = z(!1), B = z(!1), G = z([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), S = me(() => c.dialogWidth), g = z({});
1217
+ const c = a, v = n, R = z(c.visible), k = z(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = z(null), d = z(""), I = z([]), A = z(/* @__PURE__ */ new Map()), L = z({}), Q = z(!1), B = z(!1), G = z([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), D = me(() => c.dialogWidth), g = z({});
1218
1218
  ze(() => c.tabs, (ce) => {
1219
1219
  if (ce && ce.length > 0) {
1220
1220
  const N = {};
@@ -1261,7 +1261,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1261
1261
  }
1262
1262
  const _ = () => {
1263
1263
  d.value = "";
1264
- }, F = (ce) => {
1264
+ }, M = (ce) => {
1265
1265
  const N = {};
1266
1266
  c.tabs.forEach((h) => {
1267
1267
  N[h.key] = [];
@@ -1270,7 +1270,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1270
1270
  let ue = null;
1271
1271
  const se = () => {
1272
1272
  if (ue && clearTimeout(ue), !d.value.trim()) {
1273
- D();
1273
+ S();
1274
1274
  return;
1275
1275
  }
1276
1276
  Q.value = !0, B.value = !0, ue = setTimeout(() => te(), 300);
@@ -1280,7 +1280,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1280
1280
  G.value = N.map((h) => ({ ...h, isUser: !0 })), B.value = !1;
1281
1281
  };
1282
1282
  v("search", { keyword: d.value, orgId: w.value || void 0, callback: ce });
1283
- }, D = () => {
1283
+ }, S = () => {
1284
1284
  ue && (clearTimeout(ue), ue = null), Q.value = !1, d.value = "", G.value = [], B.value = !1;
1285
1285
  }, T = (ce) => {
1286
1286
  I.value.indexOf(ce.id) > -1 ? x(ce.id) : (c.multiple || (I.value = [], A.value.clear()), W(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId: w.value }), c.multiple || ge());
@@ -1300,8 +1300,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1300
1300
  if (Ue !== void 0) {
1301
1301
  if (Ye.checked) {
1302
1302
  c.multiple || (I.value = [], A.value.clear());
1303
- const Be = c.tabs.find((Ee) => Ee.key === k.value), Me = Be ? Be.name.replace(/^按/, "") : "";
1304
- W(Ue, { ...Ye.data, typeName: Me, orgId: w.value }), !c.multiple && (Fe = Ye.data) != null && Fe.isUser && ge();
1303
+ const Be = c.tabs.find((Ee) => Ee.key === k.value), De = Be ? Be.name.replace(/^按/, "") : "";
1304
+ W(Ue, { ...Ye.data, typeName: De, orgId: w.value }), !c.multiple && (Fe = Ye.data) != null && Fe.isUser && ge();
1305
1305
  } else
1306
1306
  x(Ue);
1307
1307
  return;
@@ -1324,8 +1324,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1324
1324
  v("load-users", { tabKey: N, nodeId: h, node: ce, callback: async (Ye) => {
1325
1325
  if (Ye.length > 0) {
1326
1326
  const ke = Ye.map((ee) => {
1327
- const { id: Ue, name: Be, ...Me } = ee;
1328
- return { ...Me, id: Ue, name: ee.displayName || Be, isUser: !0 };
1327
+ const { id: Ue, name: Be, ...De } = ee;
1328
+ return { ...De, id: Ue, name: ee.displayName || Be, isUser: !0 };
1329
1329
  }), X = g.value[N];
1330
1330
  if (X && ie(X, h, ke), Fe) {
1331
1331
  Fe.appendTo(h, ke), ce.data.loaded = !0, await na();
@@ -1366,12 +1366,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1366
1366
  }
1367
1367
  }
1368
1368
  }), (ce, N) => {
1369
- const h = M("t-icon"), Fe = M("t-option"), Ye = M("t-select"), ke = M("t-input"), X = M("t-button"), ee = M("t-loading"), Ue = M("t-checkbox"), Be = M("t-tree"), Me = M("t-tab-panel"), Ee = M("t-tabs"), ra = M("t-dialog");
1369
+ const h = F("t-icon"), Fe = F("t-option"), Ye = F("t-select"), ke = F("t-input"), X = F("t-button"), ee = F("t-loading"), Ue = F("t-checkbox"), Be = F("t-tree"), De = F("t-tab-panel"), Ee = F("t-tabs"), ra = F("t-dialog");
1370
1370
  return l(), Y(ra, {
1371
1371
  visible: R.value,
1372
1372
  "onUpdate:visible": N[4] || (N[4] = (oe) => R.value = oe),
1373
1373
  header: "选择人员",
1374
- width: S.value,
1374
+ width: D.value,
1375
1375
  footer: !0,
1376
1376
  placement: "center",
1377
1377
  "destroy-on-close": "",
@@ -1384,14 +1384,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1384
1384
  s(h, { name: "info-circle" }),
1385
1385
  e("span", null, V(P.value), 1)
1386
1386
  ])) : H("", !0),
1387
- j.value ? (l(), o("div", Mn, [
1387
+ j.value ? (l(), o("div", Dn, [
1388
1388
  r.value && J.value.length > 0 ? (l(), o("div", Fn, [
1389
1389
  s(Ye, {
1390
1390
  modelValue: w.value,
1391
1391
  "onUpdate:modelValue": N[0] || (N[0] = (oe) => w.value = oe),
1392
1392
  placeholder: "选择组织",
1393
1393
  style: { width: "200px" },
1394
- onChange: F
1394
+ onChange: M
1395
1395
  }, {
1396
1396
  default: i(() => [
1397
1397
  (l(!0), o(fe, null, _e(J.value, (oe) => (l(), Y(Fe, {
@@ -1403,14 +1403,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1403
1403
  _: 1
1404
1404
  }, 8, ["modelValue"])
1405
1405
  ])) : H("", !0),
1406
- e("div", Dn, [
1406
+ e("div", Mn, [
1407
1407
  s(ke, {
1408
1408
  modelValue: d.value,
1409
1409
  "onUpdate:modelValue": N[1] || (N[1] = (oe) => d.value = oe),
1410
1410
  placeholder: "输入手机号/工号/姓名/部门/职位搜索",
1411
1411
  clearable: "",
1412
1412
  onInput: se,
1413
- onClear: D
1413
+ onClear: S
1414
1414
  }, {
1415
1415
  "prefix-icon": i(() => [
1416
1416
  s(h, { name: "search" })
@@ -1427,7 +1427,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1427
1427
  s(X, {
1428
1428
  size: "small",
1429
1429
  variant: "text",
1430
- onClick: D
1430
+ onClick: S
1431
1431
  }, {
1432
1432
  default: i(() => [...N[5] || (N[5] = [
1433
1433
  U("返回", -1)
@@ -1476,7 +1476,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1476
1476
  onChange: _
1477
1477
  }, {
1478
1478
  default: i(() => [
1479
- (l(!0), o(fe, null, _e(he.value, (oe) => (l(), Y(Me, {
1479
+ (l(!0), o(fe, null, _e(he.value, (oe) => (l(), Y(De, {
1480
1480
  key: oe.key,
1481
1481
  value: oe.key,
1482
1482
  label: oe.name
@@ -1488,7 +1488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1488
1488
  ((ia = g.value[oe.key]) == null ? void 0 : ia.length) > 0 ? (l(), Y(Be, {
1489
1489
  key: 0,
1490
1490
  ref_for: !0,
1491
- ref: (De) => O(oe.key, De),
1491
+ ref: (Me) => O(oe.key, Me),
1492
1492
  data: g.value[oe.key],
1493
1493
  keys: { value: "id", label: "name", children: "children" },
1494
1494
  hover: "",
@@ -1497,26 +1497,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1497
1497
  value: I.value,
1498
1498
  onChange: q
1499
1499
  }, {
1500
- label: i(({ node: De }) => {
1500
+ label: i(({ node: Me }) => {
1501
1501
  var sa;
1502
1502
  return [
1503
1503
  e("div", {
1504
- class: Ve(["cd-ps-node", { "cd-ps-node-user": De.data.isUser }])
1504
+ class: Ve(["cd-ps-node", { "cd-ps-node-user": Me.data.isUser }])
1505
1505
  }, [
1506
1506
  s(h, {
1507
- name: De.data.isUser ? "user" : oe.icon || "folder"
1507
+ name: Me.data.isUser ? "user" : oe.icon || "folder"
1508
1508
  }, null, 8, ["name"]),
1509
1509
  e("span", Hn, [
1510
- U(V(De.label) + " ", 1),
1511
- De.data.isUser && De.data.position ? (l(), o("span", Jn, V(De.data.position), 1)) : H("", !0)
1510
+ U(V(Me.label) + " ", 1),
1511
+ Me.data.isUser && Me.data.position ? (l(), o("span", Jn, V(Me.data.position), 1)) : H("", !0)
1512
1512
  ]),
1513
- De.data.userCount && !De.data.isUser ? (l(), o("span", Kn, "(" + V(De.data.userCount) + ")", 1)) : H("", !0),
1514
- !De.data.isUser && !((sa = De.data.children) != null && sa.length) && !De.data.loaded ? (l(), Y(X, {
1513
+ Me.data.userCount && !Me.data.isUser ? (l(), o("span", Kn, "(" + V(Me.data.userCount) + ")", 1)) : H("", !0),
1514
+ !Me.data.isUser && !((sa = Me.data.children) != null && sa.length) && !Me.data.loaded ? (l(), Y(X, {
1515
1515
  key: 1,
1516
1516
  size: "small",
1517
1517
  variant: "text",
1518
1518
  class: "cd-ps-load-btn",
1519
- onClick: Ze((Le) => be(De, oe.key), ["stop"])
1519
+ onClick: Ze((Le) => be(Me, oe.key), ["stop"])
1520
1520
  }, {
1521
1521
  default: i(() => [...N[9] || (N[9] = [
1522
1522
  U("显示人员", -1)
@@ -1618,7 +1618,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1618
1618
  for (const [y, u] of ae)
1619
1619
  n[y] = u;
1620
1620
  return n;
1621
- }, Ml = /* @__PURE__ */ Sl(fo, [["__scopeId", "data-v-1e0585c3"]]), mo = { class: "cd-input-select" }, vo = { class: "cd-input-select__option-content" }, po = {
1621
+ }, Dl = /* @__PURE__ */ Sl(fo, [["__scopeId", "data-v-1e0585c3"]]), mo = { class: "cd-input-select" }, vo = { class: "cd-input-select__option-content" }, po = {
1622
1622
  key: 0,
1623
1623
  class: "cd-input-select__option-avatar"
1624
1624
  }, go = ["src", "alt"], ho = { class: "cd-input-select__option-info" }, bo = { class: "cd-input-select__option-name" }, yo = {
@@ -1714,7 +1714,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1714
1714
  R.value = !1;
1715
1715
  }, r = (g) => {
1716
1716
  y("load-users", g);
1717
- }, S = (g) => {
1717
+ }, D = (g) => {
1718
1718
  y("search", {
1719
1719
  keyword: g.keyword,
1720
1720
  callback: g.callback
@@ -1723,7 +1723,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1723
1723
  return ze(() => n.modelValue, (g) => {
1724
1724
  n.multiple ? v.value = g.map((E) => E.id) : v.value = g.length > 0 ? g[0].id : void 0, k.value = g.map((E) => E.id), w.value = g;
1725
1725
  }, { immediate: !0, deep: !0 }), (g, E) => {
1726
- const O = M("t-icon"), re = M("t-tag"), de = M("t-option"), W = M("t-select");
1726
+ const O = F("t-icon"), re = F("t-tag"), de = F("t-option"), W = F("t-select");
1727
1727
  return l(), o("div", mo, [
1728
1728
  s(W, {
1729
1729
  ref: "selectRef",
@@ -1815,7 +1815,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1815
1815
  key: "1"
1816
1816
  } : void 0
1817
1817
  ]), 1032, ["modelValue", "multiple", "placeholder", "loading", "popup-visible"]),
1818
- a.tabs && a.tabs.length > 0 && R.value ? (l(), Y(Ml, {
1818
+ a.tabs && a.tabs.length > 0 && R.value ? (l(), Y(Dl, {
1819
1819
  key: 0,
1820
1820
  visible: R.value,
1821
1821
  "onUpdate:visible": E[2] || (E[2] = (x) => R.value = x),
@@ -1829,7 +1829,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1829
1829
  tips: "选择要添加的人员",
1830
1830
  onConfirm: j,
1831
1831
  onLoadUsers: r,
1832
- onSearch: S
1832
+ onSearch: D
1833
1833
  }, null, 8, ["visible", "modelValue", "tabs", "organizations", "multiple"])) : H("", !0)
1834
1834
  ]);
1835
1835
  };
@@ -1840,7 +1840,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1840
1840
  }, So = {
1841
1841
  key: 0,
1842
1842
  class: "cd-users-list-dialog"
1843
- }, Mo = { class: "cd-users-list-dialog__header" }, Fo = ["src", "alt"], Do = { class: "cd-users-list-dialog__name" }, zo = { class: "cd-users-list-dialog__actions" }, Ao = { class: "cd-users-list-dialog__details" }, Uo = {
1843
+ }, Do = { class: "cd-users-list-dialog__header" }, Fo = ["src", "alt"], Mo = { class: "cd-users-list-dialog__name" }, zo = { class: "cd-users-list-dialog__actions" }, Ao = { class: "cd-users-list-dialog__details" }, Uo = {
1844
1844
  key: 0,
1845
1845
  class: "cd-users-list-dialog__item"
1846
1846
  }, Ro = { class: "cd-users-list-dialog__value" }, Eo = {
@@ -1915,7 +1915,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1915
1915
  overflow: "auto",
1916
1916
  zIndex: 9999
1917
1917
  }, u.value = !0, y("user-click", T);
1918
- }, S = (T) => {
1918
+ }, D = (T) => {
1919
1919
  c.value && (y("action", T, c.value), u.value = !1, k.value = !1);
1920
1920
  }, g = () => {
1921
1921
  var T;
@@ -1957,7 +1957,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1957
1957
  overflow: "auto",
1958
1958
  zIndex: 9999
1959
1959
  }, I.value = !0, y("dept-click", T);
1960
- }, F = () => {
1960
+ }, M = () => {
1961
1961
  I.value = !1, Q.value = [];
1962
1962
  }, ue = () => {
1963
1963
  w.value = !0;
@@ -1965,7 +1965,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1965
1965
  y("person-select", T), w.value = !1;
1966
1966
  }, te = (T) => {
1967
1967
  y("load-users", T);
1968
- }, D = (T) => {
1968
+ }, S = (T) => {
1969
1969
  y("search", T);
1970
1970
  };
1971
1971
  return ze(() => n.deptMembersData, (T) => {
@@ -1975,7 +1975,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1975
1975
  }), gl(() => {
1976
1976
  document.removeEventListener("click", x);
1977
1977
  }), (T, b) => {
1978
- const q = M("t-tooltip"), ie = M("t-dropdown-item"), be = M("t-dropdown-menu"), we = M("t-dropdown"), Ce = M("t-tag");
1978
+ const q = F("t-tooltip"), ie = F("t-dropdown-item"), be = F("t-dropdown-menu"), we = F("t-dropdown"), Ce = F("t-tag");
1979
1979
  return l(), o("div", Co, [
1980
1980
  s(q, {
1981
1981
  content: j.value,
@@ -2076,7 +2076,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2076
2076
  s(be, null, {
2077
2077
  default: i(() => [
2078
2078
  s(ie, {
2079
- onClick: b[0] || (b[0] = (ge) => S("share"))
2079
+ onClick: b[0] || (b[0] = (ge) => D("share"))
2080
2080
  }, {
2081
2081
  default: i(() => [...b[10] || (b[10] = [
2082
2082
  e("i", { class: "ri-share-line" }, null, -1),
@@ -2085,7 +2085,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2085
2085
  _: 1
2086
2086
  }),
2087
2087
  s(ie, {
2088
- onClick: b[1] || (b[1] = (ge) => S("star"))
2088
+ onClick: b[1] || (b[1] = (ge) => D("star"))
2089
2089
  }, {
2090
2090
  default: i(() => [...b[11] || (b[11] = [
2091
2091
  e("i", { class: "ri-star-line" }, null, -1),
@@ -2094,7 +2094,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2094
2094
  _: 1
2095
2095
  }),
2096
2096
  s(ie, {
2097
- onClick: b[2] || (b[2] = (ge) => S("report"))
2097
+ onClick: b[2] || (b[2] = (ge) => D("report"))
2098
2098
  }, {
2099
2099
  default: i(() => [...b[12] || (b[12] = [
2100
2100
  e("i", { class: "ri-error-warning-line" }, null, -1),
@@ -2108,7 +2108,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2108
2108
  ]),
2109
2109
  _: 1
2110
2110
  }),
2111
- e("div", Mo, [
2111
+ e("div", Do, [
2112
2112
  c.value.avatar ? (l(), o("img", {
2113
2113
  key: 0,
2114
2114
  src: c.value.avatar,
@@ -2119,26 +2119,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2119
2119
  class: "cd-users-list-dialog__avatar cd-users-list-dialog__avatar--placeholder",
2120
2120
  style: Qe({ backgroundColor: W(c.value.name) })
2121
2121
  }, V(de(c.value.name)), 5)),
2122
- e("h3", Do, V(c.value.name), 1)
2122
+ e("h3", Mo, V(c.value.name), 1)
2123
2123
  ]),
2124
2124
  e("div", zo, [
2125
2125
  e("div", {
2126
2126
  class: "cd-users-list-dialog__action-btn",
2127
- onClick: b[3] || (b[3] = (ge) => S("message"))
2127
+ onClick: b[3] || (b[3] = (ge) => D("message"))
2128
2128
  }, [...b[14] || (b[14] = [
2129
2129
  e("i", { class: "ri-message-3-line" }, null, -1),
2130
2130
  e("span", null, "消息", -1)
2131
2131
  ])]),
2132
2132
  e("div", {
2133
2133
  class: "cd-users-list-dialog__action-btn",
2134
- onClick: b[4] || (b[4] = (ge) => S("voice"))
2134
+ onClick: b[4] || (b[4] = (ge) => D("voice"))
2135
2135
  }, [...b[15] || (b[15] = [
2136
2136
  e("i", { class: "ri-phone-line" }, null, -1),
2137
2137
  e("span", null, "语音", -1)
2138
2138
  ])]),
2139
2139
  e("div", {
2140
2140
  class: "cd-users-list-dialog__action-btn",
2141
- onClick: b[5] || (b[5] = (ge) => S("video"))
2141
+ onClick: b[5] || (b[5] = (ge) => D("video"))
2142
2142
  }, [...b[16] || (b[16] = [
2143
2143
  e("i", { class: "ri-vidicon-line" }, null, -1),
2144
2144
  e("span", null, "视频", -1)
@@ -2220,7 +2220,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2220
2220
  I.value ? (l(), o("div", {
2221
2221
  key: 0,
2222
2222
  class: "cd-users-list-overlay",
2223
- onClick: F
2223
+ onClick: M
2224
2224
  }, [
2225
2225
  e("div", {
2226
2226
  class: "cd-users-list-popup-wrapper",
@@ -2268,7 +2268,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2268
2268
  _: 1
2269
2269
  })
2270
2270
  ])),
2271
- (a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && w.value ? (l(), Y(ca(Ml), {
2271
+ (a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && w.value ? (l(), Y(ca(Dl), {
2272
2272
  key: 0,
2273
2273
  visible: w.value,
2274
2274
  "onUpdate:visible": b[8] || (b[8] = (ge) => w.value = ge),
@@ -2281,7 +2281,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2281
2281
  tips: "选择要添加的人员",
2282
2282
  onConfirm: se,
2283
2283
  onLoadUsers: te,
2284
- onSearch: D
2284
+ onSearch: S
2285
2285
  }, null, 8, ["visible", "modelValue", "tabs", "organizations"])) : H("", !0)
2286
2286
  ]);
2287
2287
  };
@@ -2450,7 +2450,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2450
2450
  });
2451
2451
  };
2452
2452
  return (I, A) => {
2453
- const L = M("t-input"), Q = M("t-button"), B = M("t-dialog");
2453
+ const L = F("t-input"), Q = F("t-button"), B = F("t-dialog");
2454
2454
  return l(), Y(B, {
2455
2455
  visible: u.value,
2456
2456
  "onUpdate:visible": A[9] || (A[9] = (G) => u.value = G),
@@ -2589,10 +2589,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2589
2589
  }, 8, ["visible", "header"]);
2590
2590
  };
2591
2591
  }
2592
- }), Si = /* @__PURE__ */ aa(Vi, [["__scopeId", "data-v-dcb0708e"]]), Mi = { class: "token-dialog-content" }, Fi = {
2592
+ }), Si = /* @__PURE__ */ aa(Vi, [["__scopeId", "data-v-dcb0708e"]]), Di = { class: "token-dialog-content" }, Fi = {
2593
2593
  key: 0,
2594
2594
  class: "enable-section"
2595
- }, Di = { class: "qrcode-section" }, zi = { class: "qrcode-box" }, Ai = ["src"], Ui = {
2595
+ }, Mi = { class: "qrcode-section" }, zi = { class: "qrcode-box" }, Ai = ["src"], Ui = {
2596
2596
  key: 1,
2597
2597
  class: "qrcode-placeholder"
2598
2598
  }, Ri = { class: "form-item" }, Ei = { class: "dialog-actions" }, Pi = {
@@ -2639,7 +2639,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2639
2639
  y("disable", c.value);
2640
2640
  };
2641
2641
  return (w, d) => {
2642
- const I = M("t-input"), A = M("t-button"), L = M("t-dialog");
2642
+ const I = F("t-input"), A = F("t-button"), L = F("t-dialog");
2643
2643
  return l(), Y(L, {
2644
2644
  visible: u.value,
2645
2645
  "onUpdate:visible": d[2] || (d[2] = (Q) => u.value = Q),
@@ -2651,7 +2651,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2651
2651
  onClose: v
2652
2652
  }, {
2653
2653
  default: i(() => [
2654
- e("div", Mi, [
2654
+ e("div", Di, [
2655
2655
  a.isEnabled ? (l(), o("div", Pi, [
2656
2656
  d[15] || (d[15] = e("div", { class: "warning-box" }, [
2657
2657
  e("i", { class: "ri-error-warning-line" }),
@@ -2699,7 +2699,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2699
2699
  e("div", { class: "info-desc" }, "动态口令是一种基于时间的一次性密码(TOTP),可以为您的账号提供额外的安全保护。启用后,登录时需要输入动态口令进行二次验证。")
2700
2700
  ])
2701
2701
  ], -1)),
2702
- e("div", Di, [
2702
+ e("div", Mi, [
2703
2703
  d[4] || (d[4] = e("div", { class: "qrcode-title" }, "扫描二维码绑定", -1)),
2704
2704
  e("div", zi, [
2705
2705
  a.qrcodeUrl ? (l(), o("img", {
@@ -2781,7 +2781,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2781
2781
  }), u.value = !1;
2782
2782
  };
2783
2783
  return (w, d) => {
2784
- const I = M("t-radio"), A = M("t-radio-group"), L = M("t-checkbox"), Q = M("t-checkbox-group"), B = M("t-button"), G = M("t-dialog");
2784
+ const I = F("t-radio"), A = F("t-radio-group"), L = F("t-checkbox"), Q = F("t-checkbox-group"), B = F("t-button"), G = F("t-dialog");
2785
2785
  return l(), Y(G, {
2786
2786
  visible: u.value,
2787
2787
  "onUpdate:visible": d[2] || (d[2] = (he) => u.value = he),
@@ -2941,7 +2941,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2941
2941
  y("submit", v.value), y("update", n.shortcutData.label, v.value), u.value = !1;
2942
2942
  };
2943
2943
  return (Q, B) => {
2944
- const G = M("t-input"), he = M("t-button"), J = M("t-dialog");
2944
+ const G = F("t-input"), he = F("t-button"), J = F("t-dialog");
2945
2945
  return l(), Y(J, {
2946
2946
  visible: u.value,
2947
2947
  "onUpdate:visible": B[0] || (B[0] = (P) => u.value = P),
@@ -3046,7 +3046,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3046
3046
  n("item-click", v);
3047
3047
  };
3048
3048
  return (v, R) => {
3049
- const k = M("t-tag"), w = M("t-button");
3049
+ const k = F("t-tag"), w = F("t-button");
3050
3050
  return l(), o("div", ls, [
3051
3051
  e("h3", null, [
3052
3052
  R[0] || (R[0] = e("i", { class: "ri-calendar-line" }, null, -1)),
@@ -3112,13 +3112,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3112
3112
  }, _s = { class: "tasks__list" }, ks = ["onClick"], Cs = { class: "task__checkbox" }, ws = { class: "task__main" }, xs = { class: "task__header" }, $s = { class: "task__left" }, Vs = { class: "task__right" }, Ss = {
3113
3113
  key: 0,
3114
3114
  class: "due"
3115
- }, Ms = {
3115
+ }, Ds = {
3116
3116
  key: 0,
3117
3117
  class: "task__progress"
3118
3118
  }, Fs = {
3119
3119
  key: 0,
3120
3120
  class: "tasks__empty"
3121
- }, Ds = /* @__PURE__ */ Ge({
3121
+ }, Ms = /* @__PURE__ */ Ge({
3122
3122
  name: "CdTasksPanel",
3123
3123
  __name: "TasksPanel",
3124
3124
  props: {
@@ -3135,7 +3135,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3135
3135
  y("toggle", A);
3136
3136
  }, I = (A) => A >= 100 ? "#52c41a" : A >= 50 ? "#1890ff" : "#faad14";
3137
3137
  return (A, L) => {
3138
- const Q = M("t-radio-button"), B = M("t-radio-group"), G = M("t-checkbox"), he = M("t-tag"), J = M("t-progress");
3138
+ const Q = F("t-radio-button"), B = F("t-radio-group"), G = F("t-checkbox"), he = F("t-tag"), J = F("t-progress");
3139
3139
  return l(), o("div", hs, [
3140
3140
  e("h3", null, [
3141
3141
  L[1] || (L[1] = e("i", { class: "ri-task-line" }, null, -1)),
@@ -3221,7 +3221,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3221
3221
  ], 2)) : H("", !0)
3222
3222
  ])
3223
3223
  ]),
3224
- a.showProgress && P.progress !== void 0 ? (l(), o("div", Ms, [
3224
+ a.showProgress && P.progress !== void 0 ? (l(), o("div", Ds, [
3225
3225
  s(J, {
3226
3226
  percentage: P.progress,
3227
3227
  size: "small",
@@ -3239,7 +3239,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3239
3239
  ]);
3240
3240
  };
3241
3241
  }
3242
- }), zs = /* @__PURE__ */ aa(Ds, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
3242
+ }), zs = /* @__PURE__ */ aa(Ms, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
3243
3243
  key: 0,
3244
3244
  class: "favorites-tabs"
3245
3245
  }, Rs = ["onClick"], Es = { class: "favorites-list" }, Ps = ["onClick"], Is = { class: "item-info" }, Os = { class: "item-title" }, Ts = { class: "item-desc" }, Ns = { class: "item-time" }, Bs = ["onClick"], qs = {
@@ -3389,7 +3389,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3389
3389
  }, yr = { class: "account-info" }, _r = { class: "account-name" }, kr = { class: "account-email" }, Cr = ["onClick"], wr = ["src"], xr = {
3390
3390
  key: 1,
3391
3391
  class: "ri-user-line"
3392
- }, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Mr = /* @__PURE__ */ Ge({
3392
+ }, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Dr = /* @__PURE__ */ Ge({
3393
3393
  name: "CdAccountsPanel",
3394
3394
  __name: "AccountsPanel",
3395
3395
  props: {
@@ -3488,7 +3488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3488
3488
  ]);
3489
3489
  };
3490
3490
  }
3491
- }), Fr = /* @__PURE__ */ aa(Mr, [["__scopeId", "data-v-36d182f7"]]), Dr = { class: "cd-usercard-panel settings-panel" }, zr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
3491
+ }), Fr = /* @__PURE__ */ aa(Dr, [["__scopeId", "data-v-36d182f7"]]), Mr = { class: "cd-usercard-panel settings-panel" }, zr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
3492
3492
  key: 0,
3493
3493
  class: "setting-desc"
3494
3494
  }, Er = ["value", "onChange"], Pr = ["value"], Ir = {
@@ -3510,7 +3510,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3510
3510
  const n = a, y = ae, u = (c, v) => {
3511
3511
  y("update:modelValue", { ...n.modelValue, [c]: v }), y("change", c, v);
3512
3512
  };
3513
- return (c, v) => (l(), o("div", Dr, [
3513
+ return (c, v) => (l(), o("div", Mr, [
3514
3514
  e("h3", null, [
3515
3515
  v[0] || (v[0] = e("i", { class: "ri-settings-3-line" }, null, -1)),
3516
3516
  U(V(a.title), 1)
@@ -3738,10 +3738,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3738
3738
  ]);
3739
3739
  };
3740
3740
  }
3741
- }), _d = /* @__PURE__ */ aa(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Md = { class: "info-value" }, Fd = {
3741
+ }), _d = /* @__PURE__ */ aa(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Dd = { class: "info-value" }, Fd = {
3742
3742
  key: 0,
3743
3743
  class: "info-item"
3744
- }, Dd = { class: "info-value" }, zd = {
3744
+ }, Md = { class: "info-value" }, zd = {
3745
3745
  key: 1,
3746
3746
  class: "info-item"
3747
3747
  }, Ad = { class: "info-value" }, Ud = {
@@ -3783,11 +3783,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3783
3783
  e("div", Vd, [
3784
3784
  e("div", Sd, [
3785
3785
  n[1] || (n[1] = e("span", { class: "info-label" }, "版本号", -1)),
3786
- e("span", Md, V(a.data.version), 1)
3786
+ e("span", Dd, V(a.data.version), 1)
3787
3787
  ]),
3788
3788
  a.data.updateDate ? (l(), o("div", Fd, [
3789
3789
  n[2] || (n[2] = e("span", { class: "info-label" }, "更新日期", -1)),
3790
- e("span", Dd, V(a.data.updateDate), 1)
3790
+ e("span", Md, V(a.data.updateDate), 1)
3791
3791
  ])) : H("", !0),
3792
3792
  a.data.team ? (l(), o("div", zd, [
3793
3793
  n[3] || (n[3] = e("span", { class: "info-label" }, "开发团队", -1)),
@@ -3863,13 +3863,23 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3863
3863
  },
3864
3864
  emits: ["update:value", "change", "search", "dialog-search", "dialog-page-change", "advanced-select", "row-select"],
3865
3865
  setup(a, { emit: ae }) {
3866
- const n = a, y = ae, u = z(""), c = z([]), v = z([]), R = z(!1), k = z(null), w = () => {
3867
- var D;
3868
- (D = k.value) == null || D.focus();
3866
+ const n = a, y = ae, u = z(""), c = z([]), v = z([]), R = z(!1), k = z(null);
3867
+ ze(() => n.cdFormConfig, (S) => {
3868
+ console.log("[RelationForm] cdFormConfig prop 变化:", {
3869
+ hasCdFormConfig: !!S,
3870
+ hasFormData: !!(S != null && S.formData),
3871
+ hasColumnData: !!(S != null && S.columnData),
3872
+ formDataKeys: S != null && S.formData ? Object.keys(S.formData).slice(0, 5) : [],
3873
+ columnDataKeys: S != null && S.columnData ? Object.keys(S.columnData).slice(0, 5) : []
3874
+ });
3875
+ }, { immediate: !0, deep: !0 });
3876
+ const w = () => {
3877
+ var S;
3878
+ (S = k.value) == null || S.focus();
3869
3879
  }, d = () => {
3870
- S(u.value);
3871
- }, I = (D) => {
3872
- c.value.splice(D, 1), v.value.splice(D, 1), u.value = "", E();
3880
+ D(u.value);
3881
+ }, I = (S) => {
3882
+ c.value.splice(S, 1), v.value.splice(S, 1), u.value = "", E();
3873
3883
  }, A = z(!1), L = z([]), Q = z([]);
3874
3884
  let B = null;
3875
3885
  const G = me(() => !n.formType || !["basic", "tree", "form", "workflow"].includes(n.formType) ? n.searchFields || [] : n.formType === "basic" || n.formType === "tree" ? ["fnumber", "fname"] : n.formType === "form" || n.formType === "workflow" ? ["fbillno"] : []), he = me(() => {
@@ -3880,16 +3890,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3880
3890
  return "fbillno";
3881
3891
  const T = (n.searchFields || []).find((ie) => /name|fname/i.test(ie));
3882
3892
  return T || (n.columnOptions && n.columnOptions.length > 1 ? n.columnOptions[1].value : ((q = (b = n.columnOptions) == null ? void 0 : b[0]) == null ? void 0 : q.value) || "fname");
3883
- }), J = (D) => {
3893
+ }), J = (S) => {
3884
3894
  const T = he.value;
3885
- return String(D[T] || D[T == null ? void 0 : T.toUpperCase()] || D.FNAME || D.fname || D.fid || D.id || "");
3895
+ return String(S[T] || S[T == null ? void 0 : T.toUpperCase()] || S.FNAME || S.fname || S.fid || S.id || "");
3886
3896
  }, P = me(() => {
3887
3897
  if (!n.columnOptions || n.columnOptions.length === 0)
3888
3898
  return [];
3889
- const D = G.value;
3890
- if (D && D.length > 0) {
3899
+ const S = G.value;
3900
+ if (S && S.length > 0) {
3891
3901
  const T = n.columnOptions.filter(
3892
- (b) => D.includes(b.value)
3902
+ (b) => S.includes(b.value)
3893
3903
  );
3894
3904
  if (T.length > 0)
3895
3905
  return T.map((b) => ({
@@ -3903,18 +3913,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3903
3913
  title: T.label,
3904
3914
  ellipsis: !0
3905
3915
  }));
3906
- }), j = me(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((D) => {
3916
+ }), j = me(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((S) => {
3907
3917
  const T = {};
3908
- for (const b of Object.keys(D)) {
3909
- T[b] = D[b];
3918
+ for (const b of Object.keys(S)) {
3919
+ T[b] = S[b];
3910
3920
  const q = b.toLowerCase();
3911
- q !== b && T[q] === void 0 && (T[q] = D[b]);
3921
+ q !== b && T[q] === void 0 && (T[q] = S[b]);
3912
3922
  }
3913
3923
  return T;
3914
3924
  })), r = z({});
3915
- ze(() => n.searchResults, (D) => {
3916
- if (!(!D || D.length === 0)) {
3917
- for (const T of D) {
3925
+ ze(() => n.searchResults, (S) => {
3926
+ if (!(!S || S.length === 0)) {
3927
+ for (const T of S) {
3918
3928
  const b = String(T.fid ?? T.id ?? ""), q = J(T);
3919
3929
  b && (r.value[b] = q);
3920
3930
  }
@@ -3923,70 +3933,70 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3923
3933
  v.value = T, u.value = T.join(", ");
3924
3934
  }
3925
3935
  }
3926
- }, { deep: !0 }), ze(() => n.value, (D) => {
3936
+ }, { deep: !0 }), ze(() => n.value, (S) => {
3927
3937
  var T, b, q, ie;
3928
- if (D != null && D !== "") {
3929
- if (typeof D == "number") {
3930
- const be = String(D);
3938
+ if (S != null && S !== "") {
3939
+ if (typeof S == "number") {
3940
+ const be = String(S);
3931
3941
  if (c.value = [be], n.releaseId) {
3932
3942
  const we = r.value[be] && r.value[be].trim() ? r.value[be] : be;
3933
3943
  v.value = [we], u.value = we, r.value[be] || y("search", { keyword: "", searchFields: G.value });
3934
3944
  } else
3935
3945
  v.value = [be], u.value = be;
3936
- } else if (typeof D == "string") {
3937
- const be = D.split(",").map((Ce) => Ce.trim()).filter((Ce) => Ce);
3946
+ } else if (typeof S == "string") {
3947
+ const be = S.split(",").map((Ce) => Ce.trim()).filter((Ce) => Ce);
3938
3948
  if (c.value = be, be.some((Ce) => /^\d+$/.test(Ce)) && n.releaseId) {
3939
3949
  const Ce = be.map((Ae) => r.value[Ae] && r.value[Ae].trim() ? r.value[Ae] : Ae);
3940
3950
  v.value = Ce, u.value = Ce.join(", "), be.some((Ae) => /^\d+$/.test(Ae) && !r.value[Ae]) && y("search", { keyword: "", searchFields: G.value });
3941
3951
  } else
3942
3952
  v.value = be, u.value = be.join(", ");
3943
- } else if (Array.isArray(D)) {
3953
+ } else if (Array.isArray(S)) {
3944
3954
  const be = n.relationField || "fid", we = ((b = (T = n.columnOptions) == null ? void 0 : T[0]) == null ? void 0 : b.value) || "fname";
3945
- c.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), v.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = v.value.join(", ");
3946
- } else if (typeof D == "object") {
3947
- const be = n.relationField || "fid", we = ((ie = (q = n.columnOptions) == null ? void 0 : q[0]) == null ? void 0 : ie.value) || "fname", Ce = String(D[be] ?? D.fid ?? ""), ge = D[we] || Ce;
3955
+ c.value = S.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), v.value = S.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = v.value.join(", ");
3956
+ } else if (typeof S == "object") {
3957
+ const be = n.relationField || "fid", we = ((ie = (q = n.columnOptions) == null ? void 0 : q[0]) == null ? void 0 : ie.value) || "fname", Ce = String(S[be] ?? S.fid ?? ""), ge = S[we] || Ce;
3948
3958
  c.value = [Ce], v.value = [ge], u.value = ge;
3949
3959
  }
3950
3960
  } else
3951
3961
  u.value = "", c.value = [], v.value = [];
3952
3962
  }, { immediate: !0 });
3953
- const S = (D) => {
3963
+ const D = (S) => {
3954
3964
  B && clearTimeout(B), B = setTimeout(() => {
3955
- D ? (R.value = !0, y("search", { keyword: D, searchFields: G.value })) : R.value = !1;
3965
+ S ? (R.value = !0, y("search", { keyword: S, searchFields: G.value })) : R.value = !1;
3956
3966
  }, 300);
3957
3967
  }, g = () => {
3958
3968
  R.value = !0, y("search", { keyword: "", searchFields: G.value });
3959
3969
  }, E = () => {
3960
- const D = c.value.length > 0 ? c.value.join(",") : void 0;
3961
- console.log("[RelationForm] updateValue:", { result: D, selectedIds: [...c.value], selectedLabels: [...v.value] }), y("update:value", D), y("change", D);
3970
+ const S = c.value.length > 0 ? c.value.join(",") : void 0;
3971
+ console.log("[RelationForm] updateValue:", { result: S, selectedIds: [...c.value], selectedLabels: [...v.value] }), y("update:value", S), y("change", S);
3962
3972
  }, O = () => {
3963
3973
  y("advanced-select"), na(() => {
3964
3974
  A.value = !0, L.value = [], Q.value = [];
3965
3975
  });
3966
- }, re = ({ row: D }) => {
3967
- const T = String(D.fid ?? D.id ?? ""), b = J(D);
3968
- console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: D.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), v.value.push(b)), u.value = "") : (c.value = [T], v.value = [b], u.value = b), E(), y("row-select", D), R.value = !1;
3969
- }, de = (D) => {
3970
- y("dialog-search", D);
3976
+ }, re = ({ row: S }) => {
3977
+ const T = String(S.fid ?? S.id ?? ""), b = J(S);
3978
+ console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: S.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), v.value.push(b)), u.value = "") : (c.value = [T], v.value = [b], u.value = b), E(), y("row-select", S), R.value = !1;
3979
+ }, de = (S) => {
3980
+ y("dialog-search", S);
3971
3981
  }, W = () => {
3972
3982
  y("dialog-search", {});
3973
- }, x = (D) => {
3974
- n.multiple || (Q.value = [D]);
3975
- }, _ = (D) => {
3976
- n.multiple || (Q.value = [D], se());
3977
- }, F = (D) => {
3978
- Q.value = D;
3979
- }, ue = (D) => {
3980
- y("dialog-page-change", D);
3983
+ }, x = (S) => {
3984
+ n.multiple || (Q.value = [S]);
3985
+ }, _ = (S) => {
3986
+ n.multiple || (Q.value = [S], se());
3987
+ }, M = (S) => {
3988
+ Q.value = S;
3989
+ }, ue = (S) => {
3990
+ y("dialog-page-change", S);
3981
3991
  }, se = () => {
3982
3992
  if (Q.value.length > 0) {
3983
3993
  if (n.multiple)
3984
- c.value = Q.value.map((D) => String(D.fid ?? D.id ?? "")), v.value = Q.value.map((D) => J(D)), Q.value.forEach((D) => {
3985
- const T = String(D.fid ?? D.id ?? ""), b = J(D);
3994
+ c.value = Q.value.map((S) => String(S.fid ?? S.id ?? "")), v.value = Q.value.map((S) => J(S)), Q.value.forEach((S) => {
3995
+ const T = String(S.fid ?? S.id ?? ""), b = J(S);
3986
3996
  T && (r.value[T] = b);
3987
3997
  }), u.value = "";
3988
3998
  else {
3989
- const D = Q.value[0], T = String(D.fid ?? D.id ?? ""), b = J(D);
3999
+ const S = Q.value[0], T = String(S.fid ?? S.id ?? ""), b = J(S);
3990
4000
  c.value = [T], v.value = [b], T && (r.value[T] = b);
3991
4001
  }
3992
4002
  u.value = v.value.join(", "), E(), A.value = !1;
@@ -3994,8 +4004,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3994
4004
  }, te = () => {
3995
4005
  L.value = [], Q.value = [], A.value = !1;
3996
4006
  };
3997
- return (D, T) => {
3998
- const b = M("t-tag"), q = M("t-input"), ie = M("t-table"), be = M("t-popup"), we = M("t-button"), Ce = M("t-dialog");
4007
+ return (S, T) => {
4008
+ const b = F("t-tag"), q = F("t-input"), ie = F("t-table"), be = F("t-popup"), we = F("t-button"), Ce = F("t-dialog");
3999
4009
  return l(), o("div", Td, [
4000
4010
  s(be, {
4001
4011
  modelValue: R.value,
@@ -4066,7 +4076,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4066
4076
  loading: a.searchLoading,
4067
4077
  disabled: a.disabled,
4068
4078
  class: "relation-input",
4069
- onInput: S,
4079
+ onInput: D,
4070
4080
  onFocus: g
4071
4081
  }, null, 8, ["modelValue", "placeholder", "loading", "disabled"])),
4072
4082
  e("i", {
@@ -4132,7 +4142,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4132
4142
  onFilterReset: W,
4133
4143
  onRowClick: x,
4134
4144
  onRowDblclick: _,
4135
- onSelectionChange: F
4145
+ onSelectionChange: M
4136
4146
  }, null, 8, ["form-data", "column-data", "data", "loading", "page-config", "selection-mode"])) : H("", !0)
4137
4147
  ])
4138
4148
  ]),
@@ -4143,7 +4153,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4143
4153
  ]);
4144
4154
  };
4145
4155
  }
4146
- }), Dl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-bb814976"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4156
+ }), Ml = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-2258bbb8"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4147
4157
  key: 0,
4148
4158
  class: "more-tip"
4149
4159
  }, Qd = { class: "preview-table" }, Zd = {
@@ -4194,36 +4204,36 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4194
4204
  const O = E.map((re) => re.trim()).filter((re) => re !== "");
4195
4205
  O.length > 0 && P.push(O);
4196
4206
  }), P.length === 0) return [];
4197
- const r = Math.max(...P.map((g) => g.length)), S = [];
4207
+ const r = Math.max(...P.map((g) => g.length)), D = [];
4198
4208
  for (let g = 0; g < r; g++) {
4199
4209
  const E = [];
4200
4210
  P.forEach((O) => {
4201
4211
  O[g] !== void 0 && E.push(O[g]);
4202
- }), S.push(E);
4212
+ }), D.push(E);
4203
4213
  }
4204
- return S;
4214
+ return D;
4205
4215
  }), L = me(() => {
4206
4216
  const J = A.value;
4207
4217
  if (J.length === 0) return [];
4208
4218
  const P = Math.max(...J.map((r) => r.length)), j = [];
4209
4219
  for (let r = 0; r < P; r++) {
4210
- const S = {
4220
+ const D = {
4211
4221
  _X_ROW_KEY: `row_${Date.now()}_${r}_${Math.random().toString(36).substr(2, 9)}`
4212
4222
  };
4213
4223
  J.forEach((g, E) => {
4214
4224
  const O = w.value[E];
4215
- O && g[r] !== void 0 && (S[O] = g[r]);
4216
- }), j.push(S);
4225
+ O && g[r] !== void 0 && (D[O] = g[r]);
4226
+ }), j.push(D);
4217
4227
  }
4218
4228
  return j;
4219
4229
  }), Q = me(() => {
4220
4230
  const J = [];
4221
4231
  return A.value.forEach((P, j) => {
4222
4232
  var g;
4223
- const r = w.value[j], S = r ? ((g = I.value.find((E) => E.value === r)) == null ? void 0 : g.label) || r : `第 ${j + 1} 列`;
4233
+ const r = w.value[j], D = r ? ((g = I.value.find((E) => E.value === r)) == null ? void 0 : g.label) || r : `第 ${j + 1} 列`;
4224
4234
  J.push({
4225
4235
  colKey: r || `col_${j}`,
4226
- title: S,
4236
+ title: D,
4227
4237
  width: 150,
4228
4238
  ellipsis: !0
4229
4239
  });
@@ -4249,25 +4259,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4249
4259
  const j = { ...P };
4250
4260
  return n.fieldConfigs.forEach((r) => {
4251
4261
  var g;
4252
- const S = r.__vModel__ || r.field;
4253
- if (S && j[S] === void 0)
4262
+ const D = r.__vModel__ || r.field;
4263
+ if (D && j[D] === void 0)
4254
4264
  switch ((g = r.__config__) == null ? void 0 : g.cdkey) {
4255
4265
  case "input":
4256
4266
  case "textarea":
4257
- j[S] = "";
4267
+ j[D] = "";
4258
4268
  break;
4259
4269
  case "number":
4260
- j[S] = 0;
4270
+ j[D] = 0;
4261
4271
  break;
4262
4272
  case "switch":
4263
- j[S] = !1;
4273
+ j[D] = !1;
4264
4274
  break;
4265
4275
  case "checkbox":
4266
4276
  case "select":
4267
- j[S] = r.multiple ? [] : null;
4277
+ j[D] = r.multiple ? [] : null;
4268
4278
  break;
4269
4279
  default:
4270
- j[S] = null;
4280
+ j[D] = null;
4271
4281
  }
4272
4282
  }), j;
4273
4283
  });
@@ -4284,7 +4294,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4284
4294
  return ze(u, (J) => {
4285
4295
  J || (v.value = "", R.value = "", w.value = [], d.value = !1, c.value = ["ai"]);
4286
4296
  }), (J, P) => {
4287
- const j = M("t-textarea"), r = M("t-form-item"), S = M("t-form"), g = M("t-button"), E = M("t-space"), O = M("t-collapse-panel"), re = M("t-radio"), de = M("t-radio-group"), W = M("t-select"), x = M("t-tag"), _ = M("t-table"), F = M("t-collapse"), ue = M("t-dialog");
4297
+ const j = F("t-textarea"), r = F("t-form-item"), D = F("t-form"), g = F("t-button"), E = F("t-space"), O = F("t-collapse-panel"), re = F("t-radio"), de = F("t-radio-group"), W = F("t-select"), x = F("t-tag"), _ = F("t-table"), M = F("t-collapse"), ue = F("t-dialog");
4288
4298
  return l(), Y(ue, {
4289
4299
  visible: u.value,
4290
4300
  "onUpdate:visible": P[5] || (P[5] = (se) => u.value = se),
@@ -4296,7 +4306,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4296
4306
  }, {
4297
4307
  default: i(() => [
4298
4308
  e("div", Yd, [
4299
- s(F, {
4309
+ s(M, {
4300
4310
  modelValue: c.value,
4301
4311
  "onUpdate:modelValue": P[3] || (P[3] = (se) => c.value = se),
4302
4312
  "default-value": ["ai"]
@@ -4307,7 +4317,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4307
4317
  header: "AI 智能解析"
4308
4318
  }, {
4309
4319
  default: i(() => [
4310
- s(S, { "label-width": 100 }, {
4320
+ s(D, { "label-width": 100 }, {
4311
4321
  default: i(() => [
4312
4322
  s(r, { label: "描述输入" }, {
4313
4323
  default: i(() => [
@@ -4354,7 +4364,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4354
4364
  header: "智能识别(批量添加)"
4355
4365
  }, {
4356
4366
  default: i(() => [
4357
- s(S, { "label-width": 100 }, {
4367
+ s(D, { "label-width": 100 }, {
4358
4368
  default: i(() => [
4359
4369
  s(r, { label: "数据输入" }, {
4360
4370
  default: i(() => [
@@ -4436,20 +4446,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4436
4446
  e("div", Kd, "第 " + V(te + 1) + " 列", 1),
4437
4447
  s(W, {
4438
4448
  modelValue: w.value[te],
4439
- "onUpdate:modelValue": (D) => w.value[te] = D,
4449
+ "onUpdate:modelValue": (S) => w.value[te] = S,
4440
4450
  placeholder: "请选择字段",
4441
4451
  options: I.value,
4442
4452
  clearable: ""
4443
4453
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
4444
4454
  e("div", Gd, [
4445
- (l(!0), o(fe, null, _e(se.slice(0, 3), (D, T) => (l(), Y(x, {
4455
+ (l(!0), o(fe, null, _e(se.slice(0, 3), (S, T) => (l(), Y(x, {
4446
4456
  key: T,
4447
4457
  theme: "default",
4448
4458
  variant: "light",
4449
4459
  size: "small"
4450
4460
  }, {
4451
4461
  default: i(() => [
4452
- U(V(D), 1)
4462
+ U(V(S), 1)
4453
4463
  ]),
4454
4464
  _: 2
4455
4465
  }, 1024))), 128)),
@@ -4553,7 +4563,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4553
4563
  }, Cu = { class: "sub-table-label" }, wu = {
4554
4564
  name: "RenderFormItem",
4555
4565
  components: {
4556
- RelationFormInternal: Dl
4566
+ RelationFormInternal: Ml
4557
4567
  }
4558
4568
  }, xu = /* @__PURE__ */ Ge({
4559
4569
  ...wu,
@@ -4566,8 +4576,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4566
4576
  },
4567
4577
  emits: ["change", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
4568
4578
  setup(a, { emit: ae }) {
4569
- var De, sa, Le, je, da;
4570
- const n = a, y = z(((De = n.field.__config__) == null ? void 0 : De.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = z(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = z(), v = z(!1), R = me(() => {
4579
+ var Me, sa, Le, je, da;
4580
+ const n = a, y = z(((Me = n.field.__config__) == null ? void 0 : Me.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = z(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = z(), v = z(!1), R = me(() => {
4571
4581
  var le;
4572
4582
  if (_.value !== "vxeSubGrid") return [];
4573
4583
  const p = n.field.btnsList || ((le = n.field.__config__) == null ? void 0 : le.btnsList) || [];
@@ -4792,7 +4802,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4792
4802
  break;
4793
4803
  case "delete":
4794
4804
  case "remove":
4795
- S();
4805
+ D();
4796
4806
  break;
4797
4807
  case "copy":
4798
4808
  g();
@@ -4840,7 +4850,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4840
4850
  le[ea] = null;
4841
4851
  }
4842
4852
  }), m.push(le), x("change", p, m);
4843
- }, S = async () => {
4853
+ }, D = async () => {
4844
4854
  if (!c.value) return;
4845
4855
  const p = c.value.getCheckboxRecords();
4846
4856
  if (!p || p.length === 0)
@@ -4889,7 +4899,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4889
4899
  return m;
4890
4900
  }
4891
4901
  return p.cdkey;
4892
- }), F = me({
4902
+ }), M = me({
4893
4903
  get() {
4894
4904
  const p = n.field.__vModel__, m = p ? n.formModel[p] : null;
4895
4905
  return _.value === "tag" ? Array.isArray(m) ? m : m == null || m === "" ? [] : [m] : (_.value === "select" || _.value === "checkbox") && n.field.multiple ? Array.isArray(m) ? m : m == null || m === "" ? [] : [m] : m;
@@ -4965,10 +4975,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4965
4975
  }, te = () => {
4966
4976
  const p = n.field.__vModel__;
4967
4977
  if (p) {
4968
- const m = F.value;
4978
+ const m = M.value;
4969
4979
  x("change", p, m);
4970
4980
  }
4971
- }, D = (p) => {
4981
+ }, S = (p) => {
4972
4982
  var le;
4973
4983
  console.log("[RenderFormItem handleChange] 收到变化:", {
4974
4984
  vModel: n.field.__vModel__,
@@ -4981,7 +4991,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4981
4991
  const m = n.field.__vModel__ || "";
4982
4992
  x("change", m, p);
4983
4993
  }, T = (p) => {
4984
- const m = n.field.__vModel__ || "", le = F.value;
4994
+ const m = n.field.__vModel__ || "", le = M.value;
4985
4995
  x("change", m, le);
4986
4996
  }, b = () => {
4987
4997
  const p = n.field.__vModel__ || "";
@@ -4990,7 +5000,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4990
5000
  const p = n.field.__vModel__ || "";
4991
5001
  x("i18n-click", {
4992
5002
  field: p,
4993
- value: F.value,
5003
+ value: M.value,
4994
5004
  i18nValue: n.field.i18nValue || ""
4995
5005
  });
4996
5006
  }, ie = (p) => {
@@ -5065,7 +5075,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5065
5075
  }, Be = (p, m) => {
5066
5076
  const le = { field: p.__vModel__, releaseId: p.releaseId, pagination: m };
5067
5077
  h != null && h.pageChange ? h.pageChange(le) : x("relation-form-page-change", le);
5068
- }, Me = () => {
5078
+ }, De = () => {
5069
5079
  if (!n.field.__vModel__) return;
5070
5080
  const m = {};
5071
5081
  (n.field.__config__.children || []).forEach((Ne) => {
@@ -5108,7 +5118,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5108
5118
  p.value === "batchRemove" && (I.value = []), x("change", `__btn_${p.value}__`, { btn: p, data: I.value });
5109
5119
  };
5110
5120
  return (p, m) => {
5111
- const le = M("t-input"), Ne = M("t-textarea"), Re = M("t-input-number"), ea = M("t-select"), He = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
5121
+ const le = F("t-input"), Ne = F("t-textarea"), Re = F("t-input-number"), ea = F("t-select"), He = F("t-date-picker"), la = F("t-date-range-picker"), oa = F("t-time-picker"), _a = F("t-time-range-picker"), Wa = F("t-switch"), Ya = F("vxe-rate"), Ha = F("t-radio"), Ja = F("t-radio-group"), xa = F("t-checkbox"), Ka = F("t-checkbox-group"), Ra = F("t-cascader"), Ga = F("t-tree-select"), Xa = F("t-auto-complete"), Ea = F("t-upload"), ma = F("t-button"), Qa = F("t-color-picker"), Pa = F("t-slider"), Za = F("t-progress"), el = F("t-alert"), ka = F("t-link"), al = F("t-tag-input"), ll = F("t-dropdown-item"), tl = F("t-dropdown-menu"), nl = F("t-dropdown"), ol = F("vxe-grid"), ba = F("render-form-item", !0), $a = F("t-row"), il = F("t-divider"), sl = F("t-tab-panel"), rl = F("t-tabs"), Ia = F("t-collapse-panel"), dl = F("t-collapse"), Oa = F("t-popconfirm"), Ta = F("t-space"), ul = F("t-table");
5112
5122
  return a.field.__config__.layout === "colFormItem" ? (l(), Y(Tl(a.tableMode ? "div" : "t-form-item"), Aa({
5113
5123
  key: 0,
5114
5124
  class: a.tableMode ? "table-cell-editor" : ""
@@ -5122,8 +5132,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5122
5132
  return [
5123
5133
  _.value === "input" && !((xe = a.field.__config__) != null && xe.i18n) ? (l(), Y(le, {
5124
5134
  key: 0,
5125
- modelValue: F.value,
5126
- "onUpdate:modelValue": m[0] || (m[0] = (ve) => F.value = ve),
5135
+ modelValue: M.value,
5136
+ "onUpdate:modelValue": m[0] || (m[0] = (ve) => M.value = ve),
5127
5137
  placeholder: a.field.placeholder,
5128
5138
  disabled: W.value,
5129
5139
  clearable: a.field.clearable !== !1,
@@ -5132,11 +5142,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5132
5142
  onBlur: te,
5133
5143
  onInput: T,
5134
5144
  onClear: b,
5135
- onChange: D
5145
+ onChange: S
5136
5146
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "input" && ((Ie = a.field.__config__) != null && Ie.i18n) ? (l(), Y(le, {
5137
5147
  key: 1,
5138
- modelValue: F.value,
5139
- "onUpdate:modelValue": m[1] || (m[1] = (ve) => F.value = ve),
5148
+ modelValue: M.value,
5149
+ "onUpdate:modelValue": m[1] || (m[1] = (ve) => M.value = ve),
5140
5150
  placeholder: a.field.placeholder,
5141
5151
  disabled: W.value,
5142
5152
  clearable: a.field.clearable !== !1,
@@ -5145,7 +5155,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5145
5155
  onBlur: te,
5146
5156
  onInput: T,
5147
5157
  onClear: b,
5148
- onChange: D,
5158
+ onChange: S,
5149
5159
  onFocus: m[2] || (m[2] = () => {
5150
5160
  var ve;
5151
5161
  return console.log("[RenderFormItem] i18n input focused, field:", a.field.__vModel__, "i18n:", (ve = a.field.__config__) == null ? void 0 : ve.i18n);
@@ -5162,8 +5172,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5162
5172
  _: 1
5163
5173
  }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "textarea" ? (l(), Y(Ne, {
5164
5174
  key: 2,
5165
- modelValue: F.value,
5166
- "onUpdate:modelValue": m[3] || (m[3] = (ve) => F.value = ve),
5175
+ modelValue: M.value,
5176
+ "onUpdate:modelValue": m[3] || (m[3] = (ve) => M.value = ve),
5167
5177
  placeholder: a.field.placeholder,
5168
5178
  disabled: W.value,
5169
5179
  readonly: a.field.readonly,
@@ -5172,21 +5182,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5172
5182
  onBlur: te,
5173
5183
  onInput: T,
5174
5184
  onClear: b,
5175
- onChange: D
5185
+ onChange: S
5176
5186
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : _.value === "number" ? (l(), Y(Re, {
5177
5187
  key: 3,
5178
- modelValue: F.value,
5179
- "onUpdate:modelValue": m[4] || (m[4] = (ve) => F.value = ve),
5188
+ modelValue: M.value,
5189
+ "onUpdate:modelValue": m[4] || (m[4] = (ve) => M.value = ve),
5180
5190
  placeholder: a.field.placeholder,
5181
5191
  disabled: W.value,
5182
5192
  min: a.field.min,
5183
5193
  max: a.field.max,
5184
5194
  step: a.field.step || 1,
5185
- onChange: D
5195
+ onChange: S
5186
5196
  }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : _.value === "select" ? (l(), Y(ea, {
5187
5197
  key: 4,
5188
- modelValue: F.value,
5189
- "onUpdate:modelValue": m[5] || (m[5] = (ve) => F.value = ve),
5198
+ modelValue: M.value,
5199
+ "onUpdate:modelValue": m[5] || (m[5] = (ve) => M.value = ve),
5190
5200
  placeholder: a.field.placeholder,
5191
5201
  disabled: W.value,
5192
5202
  clearable: a.field.clearable !== !1,
@@ -5194,22 +5204,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5194
5204
  multiple: a.field.multiple,
5195
5205
  options: Array.isArray(a.field.options) ? a.field.options : [],
5196
5206
  keys: a.field.props || { label: "label", value: "value" },
5197
- onChange: D
5207
+ onChange: S
5198
5208
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : _.value === "date" ? (l(), Y(He, {
5199
5209
  key: 5,
5200
- modelValue: F.value,
5201
- "onUpdate:modelValue": m[6] || (m[6] = (ve) => F.value = ve),
5210
+ modelValue: M.value,
5211
+ "onUpdate:modelValue": m[6] || (m[6] = (ve) => M.value = ve),
5202
5212
  placeholder: a.field.placeholder,
5203
5213
  disabled: W.value,
5204
5214
  clearable: a.field.clearable !== !1,
5205
5215
  mode: a.field.type === "datetime" ? "date" : a.field.type || "date",
5206
5216
  "enable-time-picker": a.field.type === "datetime",
5207
5217
  format: se(a.field.type),
5208
- onChange: D
5218
+ onChange: S
5209
5219
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : _.value === "dateRange" ? (l(), Y(la, {
5210
5220
  key: 6,
5211
- modelValue: F.value,
5212
- "onUpdate:modelValue": m[7] || (m[7] = (ve) => F.value = ve),
5221
+ modelValue: M.value,
5222
+ "onUpdate:modelValue": m[7] || (m[7] = (ve) => M.value = ve),
5213
5223
  placeholder: a.field.placeholder || ["开始日期", "结束日期"],
5214
5224
  disabled: W.value,
5215
5225
  clearable: a.field.clearable !== !1,
@@ -5218,40 +5228,40 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5218
5228
  onChange: Ce
5219
5229
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : _.value === "time" ? (l(), Y(oa, {
5220
5230
  key: 7,
5221
- modelValue: F.value,
5222
- "onUpdate:modelValue": m[8] || (m[8] = (ve) => F.value = ve),
5231
+ modelValue: M.value,
5232
+ "onUpdate:modelValue": m[8] || (m[8] = (ve) => M.value = ve),
5223
5233
  placeholder: a.field.placeholder,
5224
5234
  disabled: W.value,
5225
5235
  clearable: a.field.clearable !== !1,
5226
- onChange: D
5236
+ onChange: S
5227
5237
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "rangeTime" ? (l(), Y(_a, {
5228
5238
  key: 8,
5229
- modelValue: F.value,
5230
- "onUpdate:modelValue": m[9] || (m[9] = (ve) => F.value = ve),
5239
+ modelValue: M.value,
5240
+ "onUpdate:modelValue": m[9] || (m[9] = (ve) => M.value = ve),
5231
5241
  placeholder: a.field.placeholder || ["开始时间", "结束时间"],
5232
5242
  disabled: W.value,
5233
5243
  clearable: a.field.clearable !== !1,
5234
5244
  onChange: Ce
5235
5245
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "switch" ? (l(), Y(Wa, {
5236
5246
  key: 9,
5237
- modelValue: F.value,
5238
- "onUpdate:modelValue": m[10] || (m[10] = (ve) => F.value = ve),
5247
+ modelValue: M.value,
5248
+ "onUpdate:modelValue": m[10] || (m[10] = (ve) => M.value = ve),
5239
5249
  disabled: W.value,
5240
- onChange: D
5250
+ onChange: S
5241
5251
  }, null, 8, ["modelValue", "disabled"])) : _.value === "rate" ? (l(), Y(Ya, {
5242
5252
  key: 10,
5243
- modelValue: F.value,
5244
- "onUpdate:modelValue": m[11] || (m[11] = (ve) => F.value = ve),
5253
+ modelValue: M.value,
5254
+ "onUpdate:modelValue": m[11] || (m[11] = (ve) => M.value = ve),
5245
5255
  disabled: W.value,
5246
5256
  max: a.field.max || 5,
5247
5257
  half: a.field.allowHalf,
5248
- onChange: D
5258
+ onChange: S
5249
5259
  }, null, 8, ["modelValue", "disabled", "max", "half"])) : _.value === "radio" ? (l(), Y(Ja, {
5250
5260
  key: 11,
5251
- modelValue: F.value,
5252
- "onUpdate:modelValue": m[12] || (m[12] = (ve) => F.value = ve),
5261
+ modelValue: M.value,
5262
+ "onUpdate:modelValue": m[12] || (m[12] = (ve) => M.value = ve),
5253
5263
  disabled: W.value,
5254
- onChange: D
5264
+ onChange: S
5255
5265
  }, {
5256
5266
  default: i(() => [
5257
5267
  (l(!0), o(fe, null, _e(Array.isArray(a.field.options) ? a.field.options : [], (ve) => (l(), Y(Ha, {
@@ -5267,10 +5277,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5267
5277
  _: 1
5268
5278
  }, 8, ["modelValue", "disabled"])) : _.value === "checkbox" ? (l(), Y(Ka, {
5269
5279
  key: 12,
5270
- modelValue: F.value,
5271
- "onUpdate:modelValue": m[13] || (m[13] = (ve) => F.value = ve),
5280
+ modelValue: M.value,
5281
+ "onUpdate:modelValue": m[13] || (m[13] = (ve) => M.value = ve),
5272
5282
  disabled: W.value,
5273
- onChange: D
5283
+ onChange: S
5274
5284
  }, {
5275
5285
  default: i(() => [
5276
5286
  (l(!0), o(fe, null, _e(Array.isArray(a.field.options) ? a.field.options : [], (ve) => (l(), Y(xa, {
@@ -5286,18 +5296,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5286
5296
  _: 1
5287
5297
  }, 8, ["modelValue", "disabled"])) : _.value === "cascader" ? (l(), Y(Ra, {
5288
5298
  key: 13,
5289
- modelValue: F.value,
5290
- "onUpdate:modelValue": m[14] || (m[14] = (ve) => F.value = ve),
5299
+ modelValue: M.value,
5300
+ "onUpdate:modelValue": m[14] || (m[14] = (ve) => M.value = ve),
5291
5301
  placeholder: a.field.placeholder,
5292
5302
  disabled: W.value,
5293
5303
  clearable: a.field.clearable !== !1,
5294
5304
  options: Array.isArray(a.field.options) ? a.field.options : [],
5295
5305
  keys: a.field.props || { label: "label", value: "value", children: "children" },
5296
- onChange: D
5306
+ onChange: S
5297
5307
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : _.value === "treeSelect" ? (l(), Y(Ga, {
5298
5308
  key: 14,
5299
- modelValue: F.value,
5300
- "onUpdate:modelValue": m[15] || (m[15] = (ve) => F.value = ve),
5309
+ modelValue: M.value,
5310
+ "onUpdate:modelValue": m[15] || (m[15] = (ve) => M.value = ve),
5301
5311
  placeholder: a.field.placeholder,
5302
5312
  disabled: W.value,
5303
5313
  clearable: a.field.clearable !== !1,
@@ -5305,20 +5315,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5305
5315
  multiple: a.field.multiple,
5306
5316
  data: Ye(a.field),
5307
5317
  "tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
5308
- onChange: D
5318
+ onChange: S
5309
5319
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : _.value === "autoComplete" ? (l(), Y(Xa, {
5310
5320
  key: 15,
5311
- modelValue: F.value,
5312
- "onUpdate:modelValue": m[16] || (m[16] = (ve) => F.value = ve),
5321
+ modelValue: M.value,
5322
+ "onUpdate:modelValue": m[16] || (m[16] = (ve) => M.value = ve),
5313
5323
  placeholder: a.field.placeholder,
5314
5324
  disabled: W.value,
5315
5325
  clearable: a.field.clearable !== !1,
5316
5326
  options: Array.isArray(a.field.options) ? a.field.options : [],
5317
- onChange: D
5327
+ onChange: S
5318
5328
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : _.value === "uploadImg" ? (l(), Y(Ea, {
5319
5329
  key: 16,
5320
- modelValue: F.value,
5321
- "onUpdate:modelValue": m[17] || (m[17] = (ve) => F.value = ve),
5330
+ modelValue: M.value,
5331
+ "onUpdate:modelValue": m[17] || (m[17] = (ve) => M.value = ve),
5322
5332
  disabled: W.value,
5323
5333
  max: a.field.limit || 1,
5324
5334
  accept: a.field.accept || "image/*",
@@ -5332,16 +5342,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5332
5342
  image: "请选择图片"
5333
5343
  }
5334
5344
  },
5335
- onChange: D
5345
+ onChange: S
5336
5346
  }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : _.value === "upload" ? (l(), Y(Ea, {
5337
5347
  key: 17,
5338
- modelValue: F.value,
5339
- "onUpdate:modelValue": m[18] || (m[18] = (ve) => F.value = ve),
5348
+ modelValue: M.value,
5349
+ "onUpdate:modelValue": m[18] || (m[18] = (ve) => M.value = ve),
5340
5350
  disabled: W.value,
5341
5351
  max: a.field.limit || 1,
5342
5352
  accept: a.field.accept,
5343
5353
  "size-limit": { size: a.field.fileSize || 10, unit: a.field.sizeUnit || "MB" },
5344
- onChange: D
5354
+ onChange: S
5345
5355
  }, {
5346
5356
  default: i(() => [
5347
5357
  s(ma, { disabled: a.disabled }, {
@@ -5357,22 +5367,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5357
5367
  _: 1
5358
5368
  }, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : _.value === "colorPicker" ? (l(), Y(Qa, {
5359
5369
  key: 18,
5360
- modelValue: F.value,
5361
- "onUpdate:modelValue": m[19] || (m[19] = (ve) => F.value = ve),
5370
+ modelValue: M.value,
5371
+ "onUpdate:modelValue": m[19] || (m[19] = (ve) => M.value = ve),
5362
5372
  disabled: W.value,
5363
- onChange: D
5373
+ onChange: S
5364
5374
  }, null, 8, ["modelValue", "disabled"])) : _.value === "slider" ? (l(), Y(Pa, {
5365
5375
  key: 19,
5366
- modelValue: F.value,
5367
- "onUpdate:modelValue": m[20] || (m[20] = (ve) => F.value = ve),
5376
+ modelValue: M.value,
5377
+ "onUpdate:modelValue": m[20] || (m[20] = (ve) => M.value = ve),
5368
5378
  disabled: W.value,
5369
5379
  min: a.field.min || 0,
5370
5380
  max: a.field.max || 100,
5371
5381
  step: a.field.step || 1,
5372
- onChange: D
5382
+ onChange: S
5373
5383
  }, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : _.value === "progress" ? (l(), Y(Za, {
5374
5384
  key: 20,
5375
- percentage: F.value || a.field.defaultValue || 0,
5385
+ percentage: M.value || a.field.defaultValue || 0,
5376
5386
  status: a.field.status,
5377
5387
  "stroke-width": a.field.strokeWidth,
5378
5388
  color: a.field.color,
@@ -5423,9 +5433,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5423
5433
  class: "sign-inline",
5424
5434
  onClick: be
5425
5435
  }, [
5426
- F.value ? (l(), o("img", {
5436
+ M.value ? (l(), o("img", {
5427
5437
  key: 0,
5428
- src: F.value,
5438
+ src: M.value,
5429
5439
  class: "sign-img"
5430
5440
  }, null, 8, iu)) : (l(), o("div", su, [...m[40] || (m[40] = [
5431
5441
  e("i", { class: "ri-edit-box-line" }, null, -1),
@@ -5436,9 +5446,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5436
5446
  class: "signature-inline",
5437
5447
  onClick: we
5438
5448
  }, [
5439
- F.value ? (l(), o("img", {
5449
+ M.value ? (l(), o("img", {
5440
5450
  key: 0,
5441
- src: F.value,
5451
+ src: M.value,
5442
5452
  class: "signature-img"
5443
5453
  }, null, 8, ru)) : (l(), o("div", du, [...m[41] || (m[41] = [
5444
5454
  e("i", { class: "ri-stamp-line" }, null, -1),
@@ -5446,27 +5456,27 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5446
5456
  ])]))
5447
5457
  ])) : _.value === "tag" ? (l(), Y(al, {
5448
5458
  key: 27,
5449
- modelValue: F.value,
5450
- "onUpdate:modelValue": m[22] || (m[22] = (ve) => F.value = ve),
5459
+ modelValue: M.value,
5460
+ "onUpdate:modelValue": m[22] || (m[22] = (ve) => M.value = ve),
5451
5461
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5452
5462
  disabled: W.value,
5453
5463
  clearable: a.field.clearable !== !1,
5454
5464
  max: a.field.max,
5455
5465
  "min-collapsed-num": a.field.minCollapsedNum,
5456
- onChange: D
5466
+ onChange: S
5457
5467
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : _.value === "billno" ? (l(), o(fe, { key: 28 }, [
5458
5468
  W.value ? (l(), o("div", uu, [
5459
- e("span", cu, V(F.value), 1)
5469
+ e("span", cu, V(M.value), 1)
5460
5470
  ])) : (l(), Y(le, {
5461
5471
  key: 1,
5462
- modelValue: F.value,
5463
- "onUpdate:modelValue": m[23] || (m[23] = (ve) => F.value = ve),
5472
+ modelValue: M.value,
5473
+ "onUpdate:modelValue": m[23] || (m[23] = (ve) => M.value = ve),
5464
5474
  placeholder: a.field.placeholder || "请输入单据编号",
5465
5475
  clearable: a.field.clearable !== !1,
5466
5476
  onBlur: te,
5467
5477
  onInput: T,
5468
5478
  onClear: b,
5469
- onChange: D
5479
+ onChange: S
5470
5480
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5471
5481
  ], 64)) : _.value === "relationFormAttr" ? (l(), Y(le, {
5472
5482
  key: 29,
@@ -5484,10 +5494,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5484
5494
  fontWeight: a.field.fontWeight,
5485
5495
  textAlign: a.field.textAlign
5486
5496
  })
5487
- }, V(a.field.defaultValue || F.value), 5)) : _.value === "relationForm" ? (l(), Y(Dl, {
5497
+ }, V(a.field.defaultValue || M.value), 5)) : _.value === "relationForm" ? (l(), Y(Ml, {
5488
5498
  key: 31,
5489
- value: F.value,
5490
- "onUpdate:value": m[25] || (m[25] = (ve) => F.value = ve),
5499
+ value: M.value,
5500
+ "onUpdate:value": m[25] || (m[25] = (ve) => M.value = ve),
5491
5501
  "release-id": a.field.releaseId,
5492
5502
  "relation-field": a.field.relationField,
5493
5503
  "search-fields": a.field.searchFields,
@@ -5507,16 +5517,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5507
5517
  "dialog-loading": ke.value.dialogLoading,
5508
5518
  "dialog-pagination": ke.value.dialogPagination,
5509
5519
  "cd-form-config": ke.value.cdFormConfig,
5510
- onChange: D,
5520
+ onChange: S,
5511
5521
  onSearch: m[26] || (m[26] = (ve) => X(a.field, ve.keyword)),
5512
5522
  onAdvancedSelect: m[27] || (m[27] = (ve) => ee(a.field)),
5513
5523
  onDialogSearch: m[28] || (m[28] = (ve) => Ue(a.field, ve)),
5514
5524
  onDialogPageChange: m[29] || (m[29] = (ve) => Be(a.field, ve))
5515
5525
  }, null, 8, ["value", "release-id", "relation-field", "search-fields", "form-type", "column-options", "has-page", "page-size", "multiple", "popup-type", "popup-title", "popup-width", "placeholder", "disabled", "clearable", "search-results", "dialog-table-data", "dialog-loading", "dialog-pagination", "cd-form-config"])) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "popupSelect", "popupTableSelect"].includes(_.value) ? (l(), o(fe, { key: 32 }, [
5516
5526
  W.value ? (l(), o("div", fu, [
5517
- _.value === "userSelect" && F.value ? (l(), Y(ca(Od), {
5527
+ _.value === "userSelect" && M.value ? (l(), Y(ca(Od), {
5518
5528
  key: 0,
5519
- "user-id": F.value,
5529
+ "user-id": M.value,
5520
5530
  name: ge(),
5521
5531
  "show-avatar": "",
5522
5532
  clickable: ""
@@ -5530,7 +5540,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5530
5540
  clearable: a.field.clearable !== !1,
5531
5541
  onClear: ce,
5532
5542
  onInput: T,
5533
- onChange: D
5543
+ onChange: S
5534
5544
  }, {
5535
5545
  "suffix-icon": i(() => [
5536
5546
  e("i", {
@@ -5542,15 +5552,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5542
5552
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]))
5543
5553
  ], 64)) : (l(), Y(le, {
5544
5554
  key: 33,
5545
- modelValue: F.value,
5546
- "onUpdate:modelValue": m[30] || (m[30] = (ve) => F.value = ve),
5555
+ modelValue: M.value,
5556
+ "onUpdate:modelValue": m[30] || (m[30] = (ve) => M.value = ve),
5547
5557
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5548
5558
  disabled: W.value,
5549
5559
  clearable: a.field.clearable !== !1,
5550
5560
  onBlur: te,
5551
5561
  onInput: T,
5552
5562
  onClear: b,
5553
- onChange: D
5563
+ onChange: S
5554
5564
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"]))
5555
5565
  ];
5556
5566
  }),
@@ -5651,7 +5661,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5651
5661
  (l(!0), o(fe, null, _e(a.field.__config__.children, (xe) => (l(), o(fe, {
5652
5662
  key: xe.__config__.formId
5653
5663
  }, [
5654
- xe.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5664
+ xe.__config__.noShow ? H("", !0) : (l(), Y(Ma, {
5655
5665
  key: 0,
5656
5666
  span: xe.__config__.span,
5657
5667
  class: Ve(xe.__config__.className)
@@ -5709,7 +5719,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5709
5719
  (l(!0), o(fe, null, _e(xe.__config__.children, (Ie) => (l(), o(fe, {
5710
5720
  key: Ie.__config__.formId
5711
5721
  }, [
5712
- Ie.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5722
+ Ie.__config__.noShow ? H("", !0) : (l(), Y(Ma, {
5713
5723
  key: 0,
5714
5724
  span: Ie.__config__.span,
5715
5725
  class: Ve(Ie.__config__.className)
@@ -5794,7 +5804,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5794
5804
  (l(!0), o(fe, null, _e(xe.__config__.children, (Ie) => (l(), o(fe, {
5795
5805
  key: Ie.__config__.formId
5796
5806
  }, [
5797
- Ie.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5807
+ Ie.__config__.noShow ? H("", !0) : (l(), Y(Ma, {
5798
5808
  key: 0,
5799
5809
  span: Ie.__config__.span,
5800
5810
  class: Ve(Ie.__config__.className)
@@ -5835,7 +5845,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5835
5845
  theme: xe.btnType || "primary",
5836
5846
  variant: "outline",
5837
5847
  size: "small",
5838
- onClick: Me
5848
+ onClick: De
5839
5849
  }, {
5840
5850
  icon: i(() => [
5841
5851
  e("i", {
@@ -5996,18 +6006,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5996
6006
  x[_] !== void 0 && (R[_] = { ...R[_] || {}, ...x[_] });
5997
6007
  });
5998
6008
  });
5999
- const k = pa({}), w = (x) => x ? x.startsWith("t-") ? x.toLowerCase() : "t-" + x.replace(/([A-Z])/g, (F, ue, se) => se > 0 ? "-" + ue.toLowerCase() : ue.toLowerCase()) : "", d = (x, _) => {
6000
- !x || !Array.isArray(x) || x.forEach((F) => {
6001
- const ue = F.__config__, se = ue.cdkey;
6002
- ue.layout === "colFormItem" && F.__vModel__ ? _(F) : ue.layout === "rowFormItem" && ue.children && Array.isArray(ue.children) ? d(ue.children, _) : se === "tab" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((te) => {
6003
- var D;
6004
- (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
6009
+ const k = pa({}), w = (x) => x ? x.startsWith("t-") ? x.toLowerCase() : "t-" + x.replace(/([A-Z])/g, (M, ue, se) => se > 0 ? "-" + ue.toLowerCase() : ue.toLowerCase()) : "", d = (x, _) => {
6010
+ !x || !Array.isArray(x) || x.forEach((M) => {
6011
+ const ue = M.__config__, se = ue.cdkey;
6012
+ ue.layout === "colFormItem" && M.__vModel__ ? _(M) : ue.layout === "rowFormItem" && ue.children && Array.isArray(ue.children) ? d(ue.children, _) : se === "tab" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((te) => {
6013
+ var S;
6014
+ (S = te.__config__) != null && S.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
6005
6015
  }) : se === "collapse" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((te) => {
6006
- var D;
6007
- (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
6016
+ var S;
6017
+ (S = te.__config__) != null && S.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
6008
6018
  }) : se === "tableGrid" && ue.children && Array.isArray(ue.children) && ue.children.forEach((te) => {
6009
- var D;
6010
- (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && te.__config__.children.forEach((T) => {
6019
+ var S;
6020
+ (S = te.__config__) != null && S.children && Array.isArray(te.__config__.children) && te.__config__.children.forEach((T) => {
6011
6021
  var b;
6012
6022
  (b = T.__config__) != null && b.children && Array.isArray(T.__config__.children) && d(T.__config__.children, _);
6013
6023
  });
@@ -6016,30 +6026,30 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6016
6026
  }, I = me(() => {
6017
6027
  const x = {};
6018
6028
  return d(y.fields, (_) => {
6019
- const F = _.__config__, ue = _.__vModel__;
6029
+ const M = _.__config__, ue = _.__vModel__;
6020
6030
  if (!ue) return;
6021
6031
  const se = [];
6022
- F.required && se.push({
6032
+ M.required && se.push({
6023
6033
  required: !0,
6024
- message: `请输入${F.label}`,
6025
- trigger: F.trigger || "blur"
6034
+ message: `请输入${M.label}`,
6035
+ trigger: M.trigger || "blur"
6026
6036
  }), _.__config__.regList && _.__config__.regList.length > 0 && _.__config__.regList.forEach((te) => {
6027
6037
  se.push({
6028
6038
  pattern: new RegExp(te.pattern),
6029
6039
  message: te.message,
6030
- trigger: F.trigger || "blur"
6040
+ trigger: M.trigger || "blur"
6031
6041
  });
6032
6042
  }), se.length > 0 && (x[ue] = se);
6033
6043
  }), x;
6034
6044
  }), A = (x) => !x.__config__.noShow, L = (x) => {
6035
6045
  let _;
6036
- return d(y.fields, (F) => {
6037
- F.__vModel__ === x && (_ = F);
6046
+ return d(y.fields, (M) => {
6047
+ M.__vModel__ === x && (_ = M);
6038
6048
  }), _;
6039
6049
  }, Q = (x, _) => {
6040
6050
  var ue;
6041
- const F = L(x);
6042
- if (F && ((ue = F.__config__) == null ? void 0 : ue.cdkey) === "relationForm")
6051
+ const M = L(x);
6052
+ if (M && ((ue = M.__config__) == null ? void 0 : ue.cdkey) === "relationForm")
6043
6053
  if (_ && typeof _ == "object" && _ !== null) {
6044
6054
  let se = _.id || _.fid || _.ID || _.FID;
6045
6055
  k[x] = se, k[x + "_data"] = _, G(x, _);
@@ -6047,49 +6057,49 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6047
6057
  k[x] = _, k[x + "_data"] = null, G(x, null);
6048
6058
  else
6049
6059
  k[x] = _;
6050
- u("update:modelValue", { ...k }), u("field-change", x, _), S(x, "change", _);
6060
+ u("update:modelValue", { ...k }), u("field-change", x, _), D(x, "change", _);
6051
6061
  }, B = (x) => {
6052
6062
  u("i18n-click", x);
6053
6063
  }, G = (x, _) => {
6054
- d(y.fields, (F) => {
6064
+ d(y.fields, (M) => {
6055
6065
  var ue;
6056
- if (((ue = F.__config__) == null ? void 0 : ue.cdkey) === "relationFormAttr" && F.relationField === x) {
6057
- const se = F.__vModel__, te = F.showField;
6066
+ if (((ue = M.__config__) == null ? void 0 : ue.cdkey) === "relationFormAttr" && M.relationField === x) {
6067
+ const se = M.__vModel__, te = M.showField;
6058
6068
  if (!se || !te) return;
6059
- if (F.saveRelationData === !1 || F.saveRelationData === 0) {
6069
+ if (M.saveRelationData === !1 || M.saveRelationData === 0) {
6060
6070
  k[se] = null;
6061
6071
  return;
6062
6072
  }
6063
6073
  if (_ && typeof _ == "object") {
6064
- let D = null;
6074
+ let S = null;
6065
6075
  if (Array.isArray(_)) {
6066
6076
  const T = _.map((b) => typeof b == "object" && b !== null ? b[te] : b).filter((b) => b != null);
6067
- if (F.aggregation) {
6077
+ if (M.aggregation) {
6068
6078
  const b = T.map((q) => parseFloat(q)).filter((q) => !isNaN(q));
6069
- switch (F.aggregation) {
6079
+ switch (M.aggregation) {
6070
6080
  case "sum":
6071
- D = b.reduce((q, ie) => q + ie, 0);
6081
+ S = b.reduce((q, ie) => q + ie, 0);
6072
6082
  break;
6073
6083
  case "average":
6074
- D = b.length > 0 ? b.reduce((q, ie) => q + ie, 0) / b.length : null;
6084
+ S = b.length > 0 ? b.reduce((q, ie) => q + ie, 0) / b.length : null;
6075
6085
  break;
6076
6086
  case "round":
6077
- D = b.length > 0 ? Math.round(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6087
+ S = b.length > 0 ? Math.round(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6078
6088
  break;
6079
6089
  case "floor":
6080
- D = b.length > 0 ? Math.floor(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6090
+ S = b.length > 0 ? Math.floor(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6081
6091
  break;
6082
6092
  case "ceiling":
6083
- D = b.length > 0 ? Math.ceil(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6093
+ S = b.length > 0 ? Math.ceil(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6084
6094
  break;
6085
6095
  default:
6086
- D = T.join(", ");
6096
+ S = T.join(", ");
6087
6097
  }
6088
6098
  } else
6089
- D = T.join(", ");
6099
+ S = T.join(", ");
6090
6100
  } else
6091
- D = _[te];
6092
- k[se] = D;
6101
+ S = _[te];
6102
+ k[se] = S;
6093
6103
  } else
6094
6104
  k[se] = null;
6095
6105
  }
@@ -6104,15 +6114,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6104
6114
  u("relation-form-dialog-search", x);
6105
6115
  }, r = (x) => {
6106
6116
  u("relation-form-page-change", x);
6107
- }, S = (x, _, F) => {
6117
+ }, D = (x, _, M) => {
6108
6118
  var te;
6109
- const ue = y.fields.find((D) => D.__vModel__ === x);
6119
+ const ue = y.fields.find((S) => S.__vModel__ === x);
6110
6120
  if (!ue) return;
6111
6121
  const se = (te = ue.on) == null ? void 0 : te[_];
6112
6122
  if (se && typeof se == "string")
6113
6123
  try {
6114
- const D = {
6115
- data: F,
6124
+ const S = {
6125
+ data: M,
6116
6126
  formData: k,
6117
6127
  setFormData: (b) => Object.assign(k, b),
6118
6128
  setShowOrHide: (b, q) => {
@@ -6126,41 +6136,41 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6126
6136
  new Function("context", `
6127
6137
  const { data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
6128
6138
  ${se}
6129
- `)(D);
6130
- } catch (D) {
6131
- console.error(`执行字段 ${x} 的 ${_} 事件脚本出错:`, D);
6139
+ `)(S);
6140
+ } catch (S) {
6141
+ console.error(`执行字段 ${x} 的 ${_} 事件脚本出错:`, S);
6132
6142
  }
6133
6143
  }, g = (x) => {
6134
6144
  Object.keys(k).forEach((_) => {
6135
6145
  delete k[_];
6136
6146
  }), d(y.fields, (_) => {
6137
- const F = _.__vModel__;
6138
- if (!F) return;
6147
+ const M = _.__vModel__;
6148
+ if (!M) return;
6139
6149
  const ue = _.__config__;
6140
- if (x && F in x)
6141
- k[F] = x[F];
6150
+ if (x && M in x)
6151
+ k[M] = x[M];
6142
6152
  else if ("defaultValue" in ue && ue.defaultValue !== void 0)
6143
- k[F] = ue.defaultValue;
6153
+ k[M] = ue.defaultValue;
6144
6154
  else
6145
6155
  switch (w(ue.tag)) {
6146
6156
  case "t-input":
6147
6157
  case "t-textarea":
6148
- k[F] = "";
6158
+ k[M] = "";
6149
6159
  break;
6150
6160
  case "t-input-number":
6151
- k[F] = 0;
6161
+ k[M] = 0;
6152
6162
  break;
6153
6163
  case "t-switch":
6154
- k[F] = !1;
6164
+ k[M] = !1;
6155
6165
  break;
6156
6166
  case "t-rate":
6157
- k[F] = 0;
6167
+ k[M] = 0;
6158
6168
  break;
6159
6169
  case "t-checkbox-group":
6160
- k[F] = [];
6170
+ k[M] = [];
6161
6171
  break;
6162
6172
  default:
6163
- k[F] = null;
6173
+ k[M] = null;
6164
6174
  }
6165
6175
  }), u("update:modelValue", { ...k });
6166
6176
  }, E = async () => {
@@ -6190,7 +6200,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6190
6200
  if (((T = _.__config__) == null ? void 0 : T.cdkey) !== "treeSelect") return;
6191
6201
  const ue = _.releaseId;
6192
6202
  if (!ue || Array.isArray(_.options) && _.options.length > 0) return;
6193
- const se = _.parentField || "FPARENTID", te = _.valueField || "fid", D = _.labelField || "FNAME";
6203
+ const se = _.parentField || "FPARENTID", te = _.valueField || "fid", S = _.labelField || "FNAME";
6194
6204
  try {
6195
6205
  const be = ((b = (await (await fetch(`/api/visualdev/OnlineDev/list/${ue}`, {
6196
6206
  method: "POST",
@@ -6200,7 +6210,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6200
6210
  for (const Ae of be) {
6201
6211
  const ce = {
6202
6212
  value: Ae[te],
6203
- label: Ae[D] || Ae[te],
6213
+ label: Ae[S] || Ae[te],
6204
6214
  children: [],
6205
6215
  _parentId: Ae[se]
6206
6216
  };
@@ -6252,7 +6262,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6252
6262
  setFormData: de,
6253
6263
  initFormData: g
6254
6264
  }), wa("formModel", k), wa("formConf", y.formConf), (x, _) => {
6255
- const F = M("t-row"), ue = M("t-form");
6265
+ const M = F("t-row"), ue = F("t-form");
6256
6266
  return l(), Y(ue, {
6257
6267
  ref_key: "formRef",
6258
6268
  ref: c,
@@ -6265,17 +6275,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6265
6275
  disabled: a.formConf.disabled
6266
6276
  }, {
6267
6277
  default: i(() => [
6268
- s(F, {
6278
+ s(M, {
6269
6279
  gutter: 0,
6270
6280
  class: "cd-row"
6271
6281
  }, {
6272
6282
  default: i(() => [
6273
6283
  (l(!0), o(fe, null, _e(a.fields, (se, te) => {
6274
- var D;
6284
+ var S;
6275
6285
  return l(), o(fe, {
6276
- key: ((D = se.__config__) == null ? void 0 : D.formId) || se.__vModel__ || te
6286
+ key: ((S = se.__config__) == null ? void 0 : S.formId) || se.__vModel__ || te
6277
6287
  }, [
6278
- !se.__config__.noShow && A(se) ? (l(), Y(Da, {
6288
+ !se.__config__.noShow && A(se) ? (l(), Y(Ma, {
6279
6289
  key: 0,
6280
6290
  span: se.__config__.span,
6281
6291
  class: Ve(se.__config__.className)
@@ -11834,7 +11844,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11834
11844
  }
11835
11845
  ]
11836
11846
  }
11837
- ], Su = { class: "filter-component" }, Mu = /* @__PURE__ */ Ge({
11847
+ ], Su = { class: "filter-component" }, Du = /* @__PURE__ */ Ge({
11838
11848
  __name: "FilterComponent",
11839
11849
  props: {
11840
11850
  fieldOptions: {},
@@ -12007,7 +12017,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12007
12017
  P && j && (d.filterCondition.operator = "eq", d.filterCondition.value = null);
12008
12018
  }), (P, j) => {
12009
12019
  var r;
12010
- const S = M("t-option"), g = M("t-select"), E = M("t-input"), O = M("t-date-picker"), re = M("t-cascader");
12020
+ const D = F("t-option"), g = F("t-select"), E = F("t-input"), O = F("t-date-picker"), re = F("t-cascader");
12011
12021
  return l(), o("div", Su, [
12012
12022
  s(g, {
12013
12023
  modelValue: d.filterCondition.field,
@@ -12019,7 +12029,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12019
12029
  filterable: ""
12020
12030
  }, {
12021
12031
  default: i(() => [
12022
- (l(!0), o(fe, null, _e(d.fieldOptions, (de) => (l(), Y(S, {
12032
+ (l(!0), o(fe, null, _e(d.fieldOptions, (de) => (l(), Y(D, {
12023
12033
  key: de.key,
12024
12034
  label: de.key,
12025
12035
  value: de.value
@@ -12037,7 +12047,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12037
12047
  onChange: B
12038
12048
  }, {
12039
12049
  default: i(() => [
12040
- (l(!0), o(fe, null, _e(he.value, (de) => (l(), Y(S, {
12050
+ (l(!0), o(fe, null, _e(he.value, (de) => (l(), Y(D, {
12041
12051
  key: de.key,
12042
12052
  label: de.label,
12043
12053
  value: de.value
@@ -12132,7 +12142,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12132
12142
  for (const [y, u] of ae)
12133
12143
  n[y] = u;
12134
12144
  return n;
12135
- }, Ul = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-d96560aa"]]), Fu = { class: "save-plan-content" }, Du = {
12145
+ }, Ul = /* @__PURE__ */ Ua(Du, [["__scopeId", "data-v-d96560aa"]]), Fu = { class: "save-plan-content" }, Mu = {
12136
12146
  __name: "SavePlanDialog",
12137
12147
  props: {
12138
12148
  visible: {
@@ -12238,7 +12248,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12238
12248
  y("close"), y("update:visible", !1);
12239
12249
  };
12240
12250
  return (B, G) => {
12241
- const he = M("t-input"), J = M("t-form-item"), P = M("t-radio"), j = M("t-tooltip"), r = M("t-radio-group"), S = M("t-form"), g = M("t-button"), E = M("t-dialog");
12251
+ const he = F("t-input"), J = F("t-form-item"), P = F("t-radio"), j = F("t-tooltip"), r = F("t-radio-group"), D = F("t-form"), g = F("t-button"), E = F("t-dialog");
12242
12252
  return l(), Y(E, {
12243
12253
  header: a.isEditing ? "编辑筛选方案" : "保存筛选方案",
12244
12254
  visible: a.visible,
@@ -12250,7 +12260,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12250
12260
  }, {
12251
12261
  body: i(() => [
12252
12262
  e("div", Fu, [
12253
- s(S, {
12263
+ s(D, {
12254
12264
  data: u.value,
12255
12265
  "label-align": "left",
12256
12266
  "label-width": "100px"
@@ -12387,7 +12397,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12387
12397
  }, 8, ["header", "visible"]);
12388
12398
  };
12389
12399
  }
12390
- }, zu = /* @__PURE__ */ Ua(Du, [["__scopeId", "data-v-7fd313f0"]]), Au = { class: "filter-dialog-content" }, Uu = { class: "leader-line-container" }, Ru = {
12400
+ }, zu = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-7fd313f0"]]), Au = { class: "filter-dialog-content" }, Uu = { class: "leader-line-container" }, Ru = {
12391
12401
  class: "filter-scroll-wrapper",
12392
12402
  id: "filter-scroll-wrapper"
12393
12403
  }, Eu = {
@@ -12497,11 +12507,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12497
12507
  }
12498
12508
  }, r = (X) => X.map((ee) => {
12499
12509
  const Ue = ee.conditions.filter((Be) => Be.field && Be.field.trim() !== "").map((Be) => {
12500
- let Me = "";
12501
- return Be.value !== null && Be.value !== void 0 && (Array.isArray(Be.value) ? Me = Be.value.join("/") : Me = String(Be.value)), {
12510
+ let De = "";
12511
+ return Be.value !== null && Be.value !== void 0 && (Array.isArray(Be.value) ? De = Be.value.join("/") : De = String(Be.value)), {
12502
12512
  field: Be.field.trim(),
12503
12513
  operator: Be.operator || "eq",
12504
- value: Me
12514
+ value: De
12505
12515
  };
12506
12516
  });
12507
12517
  return {
@@ -12509,9 +12519,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12509
12519
  connector: ee.connector || "and",
12510
12520
  conditions: Ue.length > 0 ? Ue : [{ field: "", operator: "eq", value: "" }]
12511
12521
  };
12512
- }).filter((ee) => ee.conditions.length > 0 && ee.conditions[0].field !== ""), S = (X) => {
12522
+ }).filter((ee) => ee.conditions.length > 0 && ee.conditions[0].field !== ""), D = (X) => {
12513
12523
  if (X.value !== "empty" && (v.value = X, y("plan-click", X), X.precepts && (u.value = JSON.parse(JSON.stringify(X.precepts))), X.sqlConnectType && (c.value = X.sqlConnectType), X.columns && X.columns.length > 0)) {
12514
- b.value = {}, q.value = {}, D.value = X.columns.filter((Ee) => Ee.show !== !1).map((Ee) => Ee.value), X.columns.forEach((Ee) => {
12524
+ b.value = {}, q.value = {}, S.value = X.columns.filter((Ee) => Ee.show !== !1).map((Ee) => Ee.value), X.columns.forEach((Ee) => {
12515
12525
  Ee.width && (b.value[Ee.value] = parseInt(Ee.width)), Ee.fixed ? q.value[Ee.value] = Ee.fixed : q.value[Ee.value] = "none";
12516
12526
  });
12517
12527
  const ee = X.columns.map((Ee) => Ee.value), Ue = ee.map(
@@ -12519,21 +12529,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12519
12529
  ).filter(Boolean), Be = n.fieldOptions.filter(
12520
12530
  (Ee) => !ee.includes(Ee.value)
12521
12531
  );
12522
- ie.value = [...Ue, ...Be], T.value = D.value.length === n.fieldOptions.length;
12523
- const Me = X.columns.filter((Ee) => Ee.show !== !1);
12524
- y("column-change", Me);
12532
+ ie.value = [...Ue, ...Be], T.value = S.value.length === n.fieldOptions.length;
12533
+ const De = X.columns.filter((Ee) => Ee.show !== !1);
12534
+ y("column-change", De);
12525
12535
  }
12526
12536
  }, g = () => {
12527
12537
  d.value = !1, B.value = null, I.value = "", A.value = "none", L.value = "specific", Q.value = [], R.value = !0;
12528
12538
  }, E = (X) => {
12529
12539
  const ee = ie.value.map((Ue) => {
12530
- const Be = b.value[Ue.value], Me = q.value[Ue.value] || "none";
12540
+ const Be = b.value[Ue.value], De = q.value[Ue.value] || "none";
12531
12541
  return {
12532
12542
  value: Ue.value,
12533
- show: D.value.includes(Ue.value),
12543
+ show: S.value.includes(Ue.value),
12534
12544
  // 是否显示
12535
12545
  width: Be ? `${Be}px` : "120px",
12536
- fixed: Me
12546
+ fixed: De
12537
12547
  // 冻结状态
12538
12548
  };
12539
12549
  });
@@ -12576,8 +12586,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12576
12586
  type1: c.value
12577
12587
  });
12578
12588
  } else w.value === "column" && ke();
12579
- F();
12580
- }, F = () => {
12589
+ M();
12590
+ }, M = () => {
12581
12591
  y("update:visible", !1);
12582
12592
  }, ue = (X) => {
12583
12593
  y("load-users", X);
@@ -12587,30 +12597,30 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12587
12597
  y("dept-click", { dept: X, callback: (ee) => {
12588
12598
  k.value = ee;
12589
12599
  } });
12590
- }, D = z([]), T = z(!1), b = z({}), q = z({}), ie = z([]), be = z(null), we = z(null);
12600
+ }, S = z([]), T = z(!1), b = z({}), q = z({}), ie = z([]), be = z(null), we = z(null);
12591
12601
  ze(() => n.visibleColumns, (X) => {
12592
12602
  if (b.value = {}, q.value = {}, X && X.length > 0) {
12593
12603
  if (typeof X[0] == "object") {
12594
- D.value = X.filter((Me) => Me.show !== !1).map((Me) => Me.value), X.forEach((Me) => {
12595
- Me.width && (b.value[Me.value] = parseInt(Me.width)), Me.fixed ? q.value[Me.value] = Me.fixed : q.value[Me.value] = "none";
12604
+ S.value = X.filter((De) => De.show !== !1).map((De) => De.value), X.forEach((De) => {
12605
+ De.width && (b.value[De.value] = parseInt(De.width)), De.fixed ? q.value[De.value] = De.fixed : q.value[De.value] = "none";
12596
12606
  });
12597
- const ee = X.map((Me) => Me.value), Ue = ee.map(
12598
- (Me) => n.fieldOptions.find((Ee) => Ee.value === Me)
12607
+ const ee = X.map((De) => De.value), Ue = ee.map(
12608
+ (De) => n.fieldOptions.find((Ee) => Ee.value === De)
12599
12609
  ).filter(Boolean), Be = n.fieldOptions.filter(
12600
- (Me) => !ee.includes(Me.value)
12610
+ (De) => !ee.includes(De.value)
12601
12611
  );
12602
12612
  ie.value = [...Ue, ...Be];
12603
12613
  } else {
12604
- D.value = [...X];
12614
+ S.value = [...X];
12605
12615
  const ee = X.map(
12606
- (Be) => n.fieldOptions.find((Me) => Me.value === Be)
12616
+ (Be) => n.fieldOptions.find((De) => De.value === Be)
12607
12617
  ).filter(Boolean), Ue = n.fieldOptions.filter(
12608
12618
  (Be) => !X.includes(Be.value)
12609
12619
  );
12610
12620
  ie.value = [...ee, ...Ue];
12611
12621
  }
12612
- T.value = D.value.length === n.fieldOptions.length;
12613
- } else n.fieldOptions.length > 0 && (D.value = n.fieldOptions.map((ee) => ee.value), ie.value = [...n.fieldOptions], T.value = !0);
12622
+ T.value = S.value.length === n.fieldOptions.length;
12623
+ } else n.fieldOptions.length > 0 && (S.value = n.fieldOptions.map((ee) => ee.value), ie.value = [...n.fieldOptions], T.value = !0);
12614
12624
  n.fieldOptions.forEach((ee) => {
12615
12625
  q.value[ee.value] || (q.value[ee.value] = "none");
12616
12626
  });
@@ -12619,14 +12629,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12619
12629
  }, { immediate: !0 });
12620
12630
  const Ce = (X, ee) => {
12621
12631
  if (ee)
12622
- D.value.includes(X) || D.value.push(X);
12632
+ S.value.includes(X) || S.value.push(X);
12623
12633
  else {
12624
- const Ue = D.value.indexOf(X);
12625
- Ue > -1 && D.value.splice(Ue, 1);
12634
+ const Ue = S.value.indexOf(X);
12635
+ Ue > -1 && S.value.splice(Ue, 1);
12626
12636
  }
12627
- T.value = D.value.length === n.fieldOptions.length;
12637
+ T.value = S.value.length === n.fieldOptions.length;
12628
12638
  }, ge = (X) => {
12629
- X ? D.value = ie.value.map((ee) => ee.value) : D.value = [];
12639
+ X ? S.value = ie.value.map((ee) => ee.value) : S.value = [];
12630
12640
  }, Ae = (X) => {
12631
12641
  if (X > 0) {
12632
12642
  const ee = ie.value[X];
@@ -12648,10 +12658,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12648
12658
  const Ue = be.value;
12649
12659
  if (Ue === null || Ue === X)
12650
12660
  return;
12651
- const Be = [...ie.value], Me = Be[Ue];
12652
- Be.splice(Ue, 1), Be.splice(X, 0, Me), ie.value = Be, be.value = null, we.value = null;
12661
+ const Be = [...ie.value], De = Be[Ue];
12662
+ Be.splice(Ue, 1), Be.splice(X, 0, De), ie.value = Be, be.value = null, we.value = null;
12653
12663
  }, ke = () => {
12654
- const X = ie.value.filter((ee) => D.value.includes(ee.value)).map((ee) => {
12664
+ const X = ie.value.filter((ee) => S.value.includes(ee.value)).map((ee) => {
12655
12665
  const Ue = b.value[ee.value], Be = q.value[ee.value] || "none";
12656
12666
  return {
12657
12667
  value: ee.value,
@@ -12666,7 +12676,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12666
12676
  y("column-change", X);
12667
12677
  };
12668
12678
  return (X, ee) => {
12669
- const Ue = M("t-radio-button"), Be = M("t-radio-group"), Me = M("t-icon"), Ee = M("t-button"), ra = M("t-tab-panel"), oe = M("t-checkbox"), ia = M("t-option"), De = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12679
+ const Ue = F("t-radio-button"), Be = F("t-radio-group"), De = F("t-icon"), Ee = F("t-button"), ra = F("t-tab-panel"), oe = F("t-checkbox"), ia = F("t-option"), Me = F("t-select"), sa = F("t-input-number"), Le = F("t-tabs"), je = F("t-tooltip"), da = F("t-dialog");
12670
12680
  return l(), o(fe, null, [
12671
12681
  s(da, {
12672
12682
  header: "方案设置",
@@ -12676,7 +12686,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12676
12686
  width: a.width,
12677
12687
  "z-index": 999,
12678
12688
  footer: !0,
12679
- onClose: F,
12689
+ onClose: M,
12680
12690
  id: "leader-line-clip-container"
12681
12691
  }, {
12682
12692
  body: i(() => [
@@ -12761,7 +12771,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12761
12771
  disabled: u.value.length === 1
12762
12772
  }, {
12763
12773
  icon: i(() => [
12764
- s(Me, { name: "close" })
12774
+ s(De, { name: "close" })
12765
12775
  ]),
12766
12776
  _: 1
12767
12777
  }, 8, ["size", "onClick", "disabled"])
@@ -12785,7 +12795,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12785
12795
  disabled: p.conditions.length === 1
12786
12796
  }, {
12787
12797
  icon: i(() => [
12788
- s(Me, { name: "minus" })
12798
+ s(De, { name: "minus" })
12789
12799
  ]),
12790
12800
  _: 1
12791
12801
  }, 8, ["size", "onClick", "disabled"])
@@ -12797,7 +12807,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12797
12807
  onClick: (le) => P(m)
12798
12808
  }, {
12799
12809
  icon: i(() => [
12800
- s(Me, { name: "add" })
12810
+ s(De, { name: "add" })
12801
12811
  ]),
12802
12812
  default: i(() => [
12803
12813
  ee[10] || (ee[10] = U(" 添加条件 ", -1))
@@ -12812,7 +12822,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12812
12822
  onClick: he
12813
12823
  }, [
12814
12824
  e("div", Wu, [
12815
- s(Me, { name: "add" }),
12825
+ s(De, { name: "add" }),
12816
12826
  ee[11] || (ee[11] = e("span", null, "增加筛选卡片", -1))
12817
12827
  ])
12818
12828
  ])
@@ -12852,7 +12862,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12852
12862
  onDrop: (le) => Ye(m, le)
12853
12863
  }, [
12854
12864
  e("div", Xu, [
12855
- s(Me, {
12865
+ s(De, {
12856
12866
  name: "move",
12857
12867
  style: { cursor: "move", color: "#999", "margin-right": "8px" }
12858
12868
  }),
@@ -12860,12 +12870,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12860
12870
  ]),
12861
12871
  e("div", Qu, [
12862
12872
  s(oe, {
12863
- checked: D.value.includes(p.value),
12873
+ checked: S.value.includes(p.value),
12864
12874
  onChange: (le) => Ce(p.value, le)
12865
12875
  }, null, 8, ["checked", "onChange"])
12866
12876
  ]),
12867
12877
  e("div", Zu, [
12868
- s(De, {
12878
+ s(Me, {
12869
12879
  modelValue: q.value[p.value],
12870
12880
  "onUpdate:modelValue": (le) => q.value[p.value] = le,
12871
12881
  size: "small",
@@ -12909,7 +12919,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12909
12919
  disabled: m === 0
12910
12920
  }, {
12911
12921
  icon: i(() => [
12912
- s(Me, {
12922
+ s(De, {
12913
12923
  name: "chevron-up",
12914
12924
  style: { color: "#f60" }
12915
12925
  })
@@ -12924,7 +12934,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12924
12934
  disabled: m === ie.value.length - 1
12925
12935
  }, {
12926
12936
  icon: i(() => [
12927
- s(Me, {
12937
+ s(De, {
12928
12938
  name: "chevron-down",
12929
12939
  style: { color: "#f60" }
12930
12940
  })
@@ -12950,9 +12960,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12950
12960
  return l(), o("div", {
12951
12961
  key: p.value,
12952
12962
  class: Ve(["filter-plan-item", { active: ((m = v.value) == null ? void 0 : m.value) === p.value }]),
12953
- onClick: (le) => S(p)
12963
+ onClick: (le) => D(p)
12954
12964
  }, [
12955
- s(Me, {
12965
+ s(De, {
12956
12966
  name: "file-text",
12957
12967
  class: "plan-icon"
12958
12968
  }),
@@ -12975,7 +12985,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12975
12985
  disabled: !p.value || p.value === "empty"
12976
12986
  }, {
12977
12987
  icon: i(() => [
12978
- s(Me, {
12988
+ s(De, {
12979
12989
  name: "edit",
12980
12990
  style: { color: "#0052d9" }
12981
12991
  })
@@ -12998,7 +13008,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12998
13008
  disabled: !p.value || p.value === "empty"
12999
13009
  }, {
13000
13010
  icon: i(() => [
13001
- s(Me, {
13011
+ s(De, {
13002
13012
  name: p.isDefault ? "check-circle-filled" : "check-circle",
13003
13013
  style: Qe({ color: p.isDefault ? "#0052d9" : "#bbb" })
13004
13014
  }, null, 8, ["name", "style"])
@@ -13021,7 +13031,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13021
13031
  disabled: !p.value || p.value === "empty"
13022
13032
  }, {
13023
13033
  icon: i(() => [
13024
- s(Me, {
13034
+ s(De, {
13025
13035
  name: "file-copy",
13026
13036
  style: { color: "#ff9800" }
13027
13037
  })
@@ -13044,7 +13054,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13044
13054
  disabled: !p.value || p.value === "empty"
13045
13055
  }, {
13046
13056
  icon: i(() => [
13047
- s(Me, {
13057
+ s(De, {
13048
13058
  name: "delete",
13049
13059
  style: { color: "#0052d9" }
13050
13060
  })
@@ -13072,7 +13082,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13072
13082
  onClick: g
13073
13083
  }, {
13074
13084
  icon: i(() => [
13075
- s(Me, { name: "save" })
13085
+ s(De, { name: "save" })
13076
13086
  ]),
13077
13087
  default: i(() => [
13078
13088
  ee[18] || (ee[18] = U(" 保存方案 ", -1))
@@ -13247,7 +13257,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13247
13257
  }), y("smart-colors-change", B.value);
13248
13258
  };
13249
13259
  return (he, J) => {
13250
- const P = M("t-button"), j = M("t-checkbox"), r = M("t-popup"), S = M("t-radio-button"), g = M("t-radio-group"), E = M("t-select"), O = M("t-input"), re = M("t-icon"), de = M("t-dialog");
13260
+ const P = F("t-button"), j = F("t-checkbox"), r = F("t-popup"), D = F("t-radio-button"), g = F("t-radio-group"), E = F("t-select"), O = F("t-input"), re = F("t-icon"), de = F("t-dialog");
13251
13261
  return l(), Y(de, {
13252
13262
  visible: u.value,
13253
13263
  "onUpdate:visible": J[0] || (J[0] = (W) => u.value = W),
@@ -13297,7 +13307,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13297
13307
  key: _,
13298
13308
  class: Ve(["preset-color-item", { active: W.backgroundColor === _ }]),
13299
13309
  style: Qe({ backgroundColor: _ }),
13300
- onClick: (F) => w(x, _)
13310
+ onClick: (M) => w(x, _)
13301
13311
  }, null, 14, _c)), 64))
13302
13312
  ]),
13303
13313
  e("div", kc, [
@@ -13334,19 +13344,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13334
13344
  variant: "default-filled"
13335
13345
  }, {
13336
13346
  default: i(() => [
13337
- s(S, { value: "cell" }, {
13347
+ s(D, { value: "cell" }, {
13338
13348
  default: i(() => [...J[5] || (J[5] = [
13339
13349
  U("单元格", -1)
13340
13350
  ])]),
13341
13351
  _: 1
13342
13352
  }),
13343
- s(S, { value: "row" }, {
13353
+ s(D, { value: "row" }, {
13344
13354
  default: i(() => [...J[6] || (J[6] = [
13345
13355
  U("整行", -1)
13346
13356
  ])]),
13347
13357
  _: 1
13348
13358
  }),
13349
- s(S, { value: "column" }, {
13359
+ s(D, { value: "column" }, {
13350
13360
  default: i(() => [...J[7] || (J[7] = [
13351
13361
  U("整列", -1)
13352
13362
  ])]),
@@ -13453,13 +13463,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13453
13463
  }, 8, ["visible"]);
13454
13464
  };
13455
13465
  }
13456
- }, Vc = /* @__PURE__ */ Ua($c, [["__scopeId", "data-v-822b291e"]]), Sc = { class: "cd-filter-bar" }, Mc = {
13466
+ }, Vc = /* @__PURE__ */ Ua($c, [["__scopeId", "data-v-822b291e"]]), Sc = { class: "cd-filter-bar" }, Dc = {
13457
13467
  key: 0,
13458
13468
  class: "inline-filter-toolbar"
13459
13469
  }, Fc = {
13460
13470
  key: 1,
13461
13471
  class: "plan-radio-group"
13462
- }, Dc = { class: "filter-action-buttons" }, zc = { class: "save-plan-content" }, Ac = {
13472
+ }, Mc = { class: "filter-action-buttons" }, zc = { class: "save-plan-content" }, Ac = {
13463
13473
  __name: "cd-filter-bar",
13464
13474
  props: {
13465
13475
  fieldOptions: { type: Array, required: !0 },
@@ -13589,7 +13599,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13589
13599
  }
13590
13600
  };
13591
13601
  }
13592
- const S = () => {
13602
+ const D = () => {
13593
13603
  re.value = !1;
13594
13604
  }, g = () => {
13595
13605
  v(), I.value = null, A.value = "", d.value = [
@@ -13625,7 +13635,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13625
13635
  // 包含当前列配置
13626
13636
  });
13627
13637
  }
13628
- S();
13638
+ D();
13629
13639
  }, O = (b) => {
13630
13640
  const q = r(b.filterCards, b.type1);
13631
13641
  if (y("confirm", q), n.filterCount > 0) {
@@ -13635,7 +13645,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13635
13645
  P();
13636
13646
  }, re = z(!1), de = z({ name: "" }), W = z(!1), x = z([]), _ = () => {
13637
13647
  W.value = !0;
13638
- }, F = (b) => {
13648
+ }, M = (b) => {
13639
13649
  x.value = b, y("color-filter-change", b);
13640
13650
  }, ue = () => {
13641
13651
  x.value = [], y("color-filter-clear");
@@ -13643,7 +13653,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13643
13653
  z("");
13644
13654
  const se = (b) => {
13645
13655
  y("smart-colors-change", b);
13646
- }, te = me(() => x.value.filter((b) => b.field && b.operator && b.value).length), D = me(() => {
13656
+ }, te = me(() => x.value.filter((b) => b.field && b.operator && b.value).length), S = me(() => {
13647
13657
  const b = x.value.filter((q) => q.field && q.operator && q.value);
13648
13658
  return b.length === 0 ? "颜色筛选" : `
13649
13659
  ${b.map((q) => {
@@ -13662,9 +13672,9 @@ ${b.map((q) => {
13662
13672
  notContains: "不包含"
13663
13673
  })[b] || b;
13664
13674
  return (b, q) => {
13665
- const ie = M("t-radio-button"), be = M("t-radio-group"), we = M("t-icon"), Ce = M("t-button"), ge = M("t-badge"), Ae = M("t-tooltip"), ce = M("t-dropdown"), N = M("t-input"), h = M("t-form-item"), Fe = M("t-form"), Ye = M("t-dialog");
13675
+ const ie = F("t-radio-button"), be = F("t-radio-group"), we = F("t-icon"), Ce = F("t-button"), ge = F("t-badge"), Ae = F("t-tooltip"), ce = F("t-dropdown"), N = F("t-input"), h = F("t-form-item"), Fe = F("t-form"), Ye = F("t-dialog");
13666
13676
  return l(), o("div", Sc, [
13667
- a.filterCount > 0 ? (l(), o("div", Mc, [
13677
+ a.filterCount > 0 ? (l(), o("div", Dc, [
13668
13678
  (l(!0), o(fe, null, _e(u.value, (ke, X) => (l(), Y(Ul, {
13669
13679
  key: X,
13670
13680
  "field-options": a.fieldOptions,
@@ -13709,7 +13719,7 @@ ${b.map((q) => {
13709
13719
  _: 1
13710
13720
  }, 8, ["size"])
13711
13721
  ])) : H("", !0),
13712
- e("div", Dc, [
13722
+ e("div", Mc, [
13713
13723
  a.filterCount > 0 ? (l(), Y(Ce, {
13714
13724
  key: 0,
13715
13725
  theme: "primary",
@@ -13724,7 +13734,7 @@ ${b.map((q) => {
13724
13734
  }, 8, ["size"])) : H("", !0),
13725
13735
  a.filterCount > 0 ? (l(), Y(Ae, {
13726
13736
  key: 1,
13727
- content: D.value,
13737
+ content: S.value,
13728
13738
  placement: "top"
13729
13739
  }, {
13730
13740
  default: i(() => [
@@ -13801,7 +13811,7 @@ ${b.map((q) => {
13801
13811
  header: R.value,
13802
13812
  visible: re.value,
13803
13813
  width: "600px",
13804
- onClose: S
13814
+ onClose: D
13805
13815
  }, {
13806
13816
  body: i(() => [
13807
13817
  e("div", zc, [
@@ -13831,7 +13841,7 @@ ${b.map((q) => {
13831
13841
  footer: i(() => [
13832
13842
  s(Ce, {
13833
13843
  theme: "default",
13834
- onClick: S
13844
+ onClick: D
13835
13845
  }, {
13836
13846
  default: i(() => [...q[15] || (q[15] = [
13837
13847
  U("取消", -1)
@@ -13856,7 +13866,7 @@ ${b.map((q) => {
13856
13866
  "field-options": a.fieldOptions,
13857
13867
  size: a.size,
13858
13868
  "initial-rules": x.value,
13859
- onConfirm: F,
13869
+ onConfirm: M,
13860
13870
  onClear: ue,
13861
13871
  onSmartColorsChange: se
13862
13872
  }, null, 8, ["visible", "field-options", "size", "initial-rules"])
@@ -13898,7 +13908,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13898
13908
  }, Vf = {
13899
13909
  key: 0,
13900
13910
  class: "cd-collaborator-item-permission-text"
13901
- }, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], Ff = { class: "cd-qrcode-url" }, Df = { class: "cd-encrypt-content" }, zf = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Ge({
13911
+ }, Sf = { class: "cd-qrcode-content" }, Df = ["src"], Ff = { class: "cd-qrcode-url" }, Mf = { class: "cd-encrypt-content" }, zf = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Ge({
13902
13912
  name: "CdShareDialog",
13903
13913
  __name: "ShareDialog",
13904
13914
  props: {
@@ -13936,11 +13946,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13936
13946
  group: "分享范围",
13937
13947
  children: Ye
13938
13948
  }];
13939
- }), S = [
13949
+ }), D = [
13940
13950
  { label: "可阅读", value: "read" },
13941
13951
  { label: "可编辑", value: "edit" },
13942
13952
  { label: "可管理", value: "manage" }
13943
- ], g = me(() => O.value === "manage" ? S : O.value === "edit" ? S.filter((N) => N.value !== "manage") : []), E = [
13953
+ ], g = me(() => O.value === "manage" ? D : O.value === "edit" ? D.filter((N) => N.value !== "manage") : []), E = [
13944
13954
  { label: "所有人", value: "all" },
13945
13955
  { label: "可编辑及以上", value: "edit" },
13946
13956
  { label: "可管理", value: "manage" },
@@ -13965,7 +13975,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13965
13975
  R.value = [], w.value = ((N = y.organizations[0]) == null ? void 0 : N.id) || 1, Q.value = "", d.value = "read", I.value = !0, A.value = !1, L.value = "", k.value = !1;
13966
13976
  }, _ = () => {
13967
13977
  k.value = !1;
13968
- }, F = () => {
13978
+ }, M = () => {
13969
13979
  _();
13970
13980
  }, ue = () => {
13971
13981
  if (O.value === "read") {
@@ -13989,7 +13999,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13989
13999
  }
13990
14000
  }, te = () => {
13991
14001
  y.helpUrl && window.open(y.helpUrl, "_blank");
13992
- }, D = (N) => {
14002
+ }, S = (N) => {
13993
14003
  u("search", N);
13994
14004
  }, T = (N) => {
13995
14005
  u("load-users", N);
@@ -14060,11 +14070,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14060
14070
  return ze(J, (N) => {
14061
14071
  N && !P.value && ge();
14062
14072
  }), (N, h) => {
14063
- const Fe = M("t-icon"), Ye = M("t-tooltip"), ke = M("t-button"), X = M("t-avatar"), ee = M("t-select"), Ue = M("t-checkbox"), Be = M("t-input"), Me = M("t-textarea"), Ee = M("t-dialog"), ra = M("t-switch"), oe = M("t-radio"), ia = M("t-radio-group");
14073
+ const Fe = F("t-icon"), Ye = F("t-tooltip"), ke = F("t-button"), X = F("t-avatar"), ee = F("t-select"), Ue = F("t-checkbox"), Be = F("t-input"), De = F("t-textarea"), Ee = F("t-dialog"), ra = F("t-switch"), oe = F("t-radio"), ia = F("t-radio-group");
14064
14074
  return l(), o(fe, null, [
14065
14075
  s(Ee, {
14066
14076
  visible: c.value,
14067
- "onUpdate:visible": h[13] || (h[13] = (De) => c.value = De),
14077
+ "onUpdate:visible": h[13] || (h[13] = (Me) => c.value = Me),
14068
14078
  width: "500",
14069
14079
  footer: !1,
14070
14080
  placement: "center",
@@ -14119,7 +14129,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14119
14129
  key: 1,
14120
14130
  variant: "text",
14121
14131
  size: "small",
14122
- onClick: h[0] || (h[0] = (De) => B.value = !0)
14132
+ onClick: h[0] || (h[0] = (Me) => B.value = !0)
14123
14133
  }, {
14124
14134
  icon: i(() => [
14125
14135
  s(Fe, {
@@ -14137,7 +14147,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14137
14147
  ])
14138
14148
  ]),
14139
14149
  default: i(() => {
14140
- var De, sa;
14150
+ var Me, sa;
14141
14151
  return [
14142
14152
  k.value ? (l(), o("div", Qc, [
14143
14153
  e("div", Zc, [
@@ -14171,7 +14181,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14171
14181
  "person-organizations": a.organizations,
14172
14182
  onPersonSelect: be,
14173
14183
  onLoadUsers: T,
14174
- onSearch: D,
14184
+ onSearch: S,
14175
14185
  onUserClick: ie
14176
14186
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14177
14187
  s(Fe, {
@@ -14192,7 +14202,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14192
14202
  tabs: a.tabs,
14193
14203
  organizations: a.organizations,
14194
14204
  "show-selector": !1,
14195
- onSearch: D,
14205
+ onSearch: S,
14196
14206
  onLoadUsers: T
14197
14207
  }, null, 8, ["modelValue", "tabs", "organizations"])
14198
14208
  ])
@@ -14226,7 +14236,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14226
14236
  style: { width: "200px", "margin-left": "10px" }
14227
14237
  }, null, 8, ["modelValue"])) : H("", !0)
14228
14238
  ]),
14229
- s(Me, {
14239
+ s(De, {
14230
14240
  modelValue: Q.value,
14231
14241
  "onUpdate:modelValue": h[12] || (h[12] = (Le) => Q.value = Le),
14232
14242
  placeholder: "添加分享备注",
@@ -14236,7 +14246,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14236
14246
  e("div", of, [
14237
14247
  s(ke, {
14238
14248
  variant: "outline",
14239
- onClick: F
14249
+ onClick: M
14240
14250
  }, {
14241
14251
  default: i(() => [...h[39] || (h[39] = [
14242
14252
  U("取消", -1)
@@ -14258,7 +14268,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14258
14268
  h[30] || (h[30] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14259
14269
  e("div", Tc, [
14260
14270
  e("div", Nc, [
14261
- (De = a.owner) != null && De.avatar ? (l(), Y(X, {
14271
+ (Me = a.owner) != null && Me.avatar ? (l(), Y(X, {
14262
14272
  key: 0,
14263
14273
  image: a.owner.avatar,
14264
14274
  size: "medium"
@@ -14285,7 +14295,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14285
14295
  "person-organizations": a.organizations,
14286
14296
  onPersonSelect: be,
14287
14297
  onLoadUsers: T,
14288
- onSearch: D,
14298
+ onSearch: S,
14289
14299
  onUserClick: ie
14290
14300
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14291
14301
  s(Fe, {
@@ -14306,7 +14316,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14306
14316
  tabs: a.tabs,
14307
14317
  organizations: a.organizations,
14308
14318
  "show-selector": !1,
14309
- onSearch: D,
14319
+ onSearch: S,
14310
14320
  onLoadUsers: T
14311
14321
  }, null, 8, ["modelValue", "tabs", "organizations"])
14312
14322
  ])
@@ -14346,7 +14356,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14346
14356
  s(ee, {
14347
14357
  modelValue: d.value,
14348
14358
  "onUpdate:modelValue": h[4] || (h[4] = (Le) => d.value = Le),
14349
- options: S,
14359
+ options: D,
14350
14360
  disabled: O.value === "read",
14351
14361
  style: { width: "auto" },
14352
14362
  autoWidth: "",
@@ -14410,7 +14420,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14410
14420
  }, 8, ["visible"]),
14411
14421
  s(Ee, {
14412
14422
  visible: B.value,
14413
- "onUpdate:visible": h[21] || (h[21] = (De) => B.value = De),
14423
+ "onUpdate:visible": h[21] || (h[21] = (Me) => B.value = Me),
14414
14424
  header: "权限设置",
14415
14425
  width: "600px",
14416
14426
  footer: !1,
@@ -14425,7 +14435,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14425
14435
  h[41] || (h[41] = e("div", { class: "cd-permission-item-label" }, "允许内容被分享到组织外", -1)),
14426
14436
  s(ra, {
14427
14437
  modelValue: j.value.allowExternalShare,
14428
- "onUpdate:modelValue": h[14] || (h[14] = (De) => j.value.allowExternalShare = De),
14438
+ "onUpdate:modelValue": h[14] || (h[14] = (Me) => j.value.allowExternalShare = Me),
14429
14439
  disabled: O.value !== "manage"
14430
14440
  }, null, 8, ["modelValue", "disabled"])
14431
14441
  ]),
@@ -14435,7 +14445,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14435
14445
  h[46] || (h[46] = e("div", { class: "cd-permission-section-title" }, "谁可以查看、添加、移除协作者", -1)),
14436
14446
  s(ia, {
14437
14447
  modelValue: j.value.collaboratorManagement,
14438
- "onUpdate:modelValue": h[15] || (h[15] = (De) => j.value.collaboratorManagement = De),
14448
+ "onUpdate:modelValue": h[15] || (h[15] = (Me) => j.value.collaboratorManagement = Me),
14439
14449
  disabled: O.value !== "manage"
14440
14450
  }, {
14441
14451
  default: i(() => [
@@ -14461,7 +14471,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14461
14471
  h[47] || (h[47] = e("div", { class: "cd-permission-item-label" }, "谁可以复制内容", -1)),
14462
14472
  s(ee, {
14463
14473
  modelValue: j.value.copyPermission,
14464
- "onUpdate:modelValue": h[16] || (h[16] = (De) => j.value.copyPermission = De),
14474
+ "onUpdate:modelValue": h[16] || (h[16] = (Me) => j.value.copyPermission = Me),
14465
14475
  options: E,
14466
14476
  disabled: O.value !== "manage",
14467
14477
  style: { width: "200px" }
@@ -14471,7 +14481,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14471
14481
  h[48] || (h[48] = e("div", { class: "cd-permission-item-label" }, "谁可以创建副本、打印和下载", -1)),
14472
14482
  s(ee, {
14473
14483
  modelValue: j.value.downloadPermission,
14474
- "onUpdate:modelValue": h[17] || (h[17] = (De) => j.value.downloadPermission = De),
14484
+ "onUpdate:modelValue": h[17] || (h[17] = (Me) => j.value.downloadPermission = Me),
14475
14485
  options: E,
14476
14486
  disabled: O.value !== "manage",
14477
14487
  style: { width: "200px" }
@@ -14481,7 +14491,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14481
14491
  h[49] || (h[49] = e("div", { class: "cd-permission-item-label" }, "谁可以评论", -1)),
14482
14492
  s(ee, {
14483
14493
  modelValue: j.value.commentPermission,
14484
- "onUpdate:modelValue": h[18] || (h[18] = (De) => j.value.commentPermission = De),
14494
+ "onUpdate:modelValue": h[18] || (h[18] = (Me) => j.value.commentPermission = Me),
14485
14495
  options: E,
14486
14496
  disabled: O.value !== "manage",
14487
14497
  style: { width: "200px" }
@@ -14494,7 +14504,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14494
14504
  h[51] || (h[51] = e("div", { class: "cd-permission-item-label" }, "谁可以查看访问者头像和点赞者头像", -1)),
14495
14505
  s(ee, {
14496
14506
  modelValue: j.value.viewerAvatarsPermission,
14497
- "onUpdate:modelValue": h[19] || (h[19] = (De) => j.value.viewerAvatarsPermission = De),
14507
+ "onUpdate:modelValue": h[19] || (h[19] = (Me) => j.value.viewerAvatarsPermission = Me),
14498
14508
  options: E,
14499
14509
  disabled: O.value !== "manage",
14500
14510
  style: { width: "200px" }
@@ -14504,7 +14514,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14504
14514
  e("div", hf, [
14505
14515
  s(ke, {
14506
14516
  variant: "outline",
14507
- onClick: h[20] || (h[20] = (De) => B.value = !1)
14517
+ onClick: h[20] || (h[20] = (Me) => B.value = !1)
14508
14518
  }, {
14509
14519
  default: i(() => [...h[53] || (h[53] = [
14510
14520
  U("取消", -1)
@@ -14528,7 +14538,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14528
14538
  }, 8, ["visible"]),
14529
14539
  s(Ee, {
14530
14540
  visible: G.value,
14531
- "onUpdate:visible": h[22] || (h[22] = (De) => G.value = De),
14541
+ "onUpdate:visible": h[22] || (h[22] = (Me) => G.value = Me),
14532
14542
  header: "协作者权限管理",
14533
14543
  width: "500px",
14534
14544
  footer: !1,
@@ -14536,12 +14546,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14536
14546
  class: "cd-collaborator-list-dialog"
14537
14547
  }, {
14538
14548
  default: i(() => {
14539
- var De, sa, Le;
14549
+ var Me, sa, Le;
14540
14550
  return [
14541
14551
  e("div", bf, [
14542
14552
  e("div", yf, [
14543
14553
  e("div", _f, [
14544
- (De = a.owner) != null && De.avatar ? (l(), Y(X, {
14554
+ (Me = a.owner) != null && Me.avatar ? (l(), Y(X, {
14545
14555
  key: 0,
14546
14556
  image: a.owner.avatar,
14547
14557
  size: "small"
@@ -14584,7 +14594,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14584
14594
  e("span", wf, V(je.displayName || je.name), 1)
14585
14595
  ]),
14586
14596
  e("div", xf, [
14587
- O.value === "read" ? (l(), o("div", $f, V(((da = S.find((p) => p.value === je.permission)) == null ? void 0 : da.label) || "可阅读"), 1)) : O.value === "edit" ? (l(), o(fe, { key: 1 }, [
14597
+ O.value === "read" ? (l(), o("div", $f, V(((da = D.find((p) => p.value === je.permission)) == null ? void 0 : da.label) || "可阅读"), 1)) : O.value === "edit" ? (l(), o(fe, { key: 1 }, [
14588
14598
  je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), Y(ee, {
14589
14599
  key: 1,
14590
14600
  value: je.permission,
@@ -14626,7 +14636,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14626
14636
  }, 8, ["visible"]),
14627
14637
  s(Ee, {
14628
14638
  visible: he.value,
14629
- "onUpdate:visible": h[23] || (h[23] = (De) => he.value = De),
14639
+ "onUpdate:visible": h[23] || (h[23] = (Me) => he.value = Me),
14630
14640
  header: "分享二维码",
14631
14641
  width: "400px",
14632
14642
  footer: !1,
@@ -14640,7 +14650,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14640
14650
  src: de.value,
14641
14651
  alt: "分享二维码",
14642
14652
  class: "cd-qrcode-image"
14643
- }, null, 8, Mf)) : H("", !0),
14653
+ }, null, 8, Df)) : H("", !0),
14644
14654
  e("div", Ff, V(v.value), 1),
14645
14655
  h[56] || (h[56] = e("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
14646
14656
  ])
@@ -14649,7 +14659,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14649
14659
  }, 8, ["visible"]),
14650
14660
  s(Ee, {
14651
14661
  visible: J.value,
14652
- "onUpdate:visible": h[26] || (h[26] = (De) => J.value = De),
14662
+ "onUpdate:visible": h[26] || (h[26] = (Me) => J.value = Me),
14653
14663
  header: "设置链接密码",
14654
14664
  width: "450px",
14655
14665
  footer: !1,
@@ -14657,12 +14667,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14657
14667
  class: "cd-encrypt-dialog"
14658
14668
  }, {
14659
14669
  default: i(() => [
14660
- e("div", Df, [
14670
+ e("div", Mf, [
14661
14671
  e("div", zf, [
14662
14672
  h[58] || (h[58] = e("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
14663
14673
  s(Be, {
14664
14674
  modelValue: P.value,
14665
- "onUpdate:modelValue": h[24] || (h[24] = (De) => P.value = De),
14675
+ "onUpdate:modelValue": h[24] || (h[24] = (Me) => P.value = Me),
14666
14676
  placeholder: "6位数字和字母组合",
14667
14677
  maxlength: "6",
14668
14678
  disabled: O.value === "read",
@@ -14709,7 +14719,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14709
14719
  h[63] || (h[63] = e("div", { style: { flex: "1" } }, null, -1)),
14710
14720
  s(ke, {
14711
14721
  variant: "outline",
14712
- onClick: h[25] || (h[25] = (De) => J.value = !1)
14722
+ onClick: h[25] || (h[25] = (Me) => J.value = !1)
14713
14723
  }, {
14714
14724
  default: i(() => [...h[61] || (h[61] = [
14715
14725
  U("取消", -1)
@@ -14935,9 +14945,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14935
14945
  mode: "cell",
14936
14946
  showStatus: !0
14937
14947
  };
14938
- }), he = z(!1), J = z(/* @__PURE__ */ new Map()), P = z(/* @__PURE__ */ new Map()), j = z(/* @__PURE__ */ new Set()), r = z(((bl = v.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = z(((yl = v.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = z(!1), E = z([]), O = z(!0), re = z(!1), de = z(""), W = z("add"), x = z(null);
14948
+ }), he = z(!1), J = z(/* @__PURE__ */ new Map()), P = z(/* @__PURE__ */ new Map()), j = z(/* @__PURE__ */ new Set()), r = z(((bl = v.pageConfig) == null ? void 0 : bl.currentPage) || 1), D = z(((yl = v.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = z(!1), E = z([]), O = z(!0), re = z(!1), de = z(""), W = z("add"), x = z(null);
14939
14949
  let _ = pa({});
14940
- const F = me(() => {
14950
+ const M = me(() => {
14941
14951
  var Pe, Oe;
14942
14952
  const t = ((Pe = v.formData) == null ? void 0 : Pe.fields) || [], f = k.value.treeConfig;
14943
14953
  if (!(f != null && f.enabled)) return t;
@@ -14996,7 +15006,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14996
15006
  return We(Je), Je;
14997
15007
  })()
14998
15008
  }, ...t];
14999
- }), ue = z(!1), se = z(null), te = z([]), D = z(/* @__PURE__ */ new Map()), T = z(!1), b = z([]), q = z(!1), ie = (t, f) => {
15009
+ }), ue = z(!1), se = z(null), te = z([]), S = z(/* @__PURE__ */ new Map()), T = z(!1), b = z([]), q = z(!1), ie = (t, f) => {
15000
15010
  const $ = t[f.field];
15001
15011
  switch (f.operator) {
15002
15012
  case "contains":
@@ -15071,7 +15081,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15071
15081
  if (k.value.groupField || ((f = k.value.treeConfig) == null ? void 0 : f.enabled) === !0)
15072
15082
  return t;
15073
15083
  if (($ = v.pageConfig) != null && $.enabled && !v.enableVirtualScroll) {
15074
- const C = (r.value - 1) * S.value, K = C + S.value;
15084
+ const C = (r.value - 1) * D.value, K = C + D.value;
15075
15085
  t = t.slice(C, K);
15076
15086
  }
15077
15087
  if (B.value) {
@@ -15087,7 +15097,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15087
15097
  return t;
15088
15098
  });
15089
15099
  ze(() => v.pageConfig, (t) => {
15090
- t && (r.value = t.currentPage || 1, S.value = t.pageSize || 20);
15100
+ t && (r.value = t.currentPage || 1, D.value = t.pageSize || 20);
15091
15101
  }, { deep: !0 }), ze(() => k.value.groupField, (t) => {
15092
15102
  if (t) {
15093
15103
  const f = Array.isArray(t) ? t : [t];
@@ -15156,12 +15166,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15156
15166
  value: $.__vModel__
15157
15167
  });
15158
15168
  }), t;
15159
- }), Me = (t, f = !1) => {
15169
+ }), De = (t, f = !1) => {
15160
15170
  var Se, Pe, Oe, qe;
15161
15171
  const $ = t.__config__, C = $.cdkey, K = t.__vModel__;
15162
15172
  if (!K || $.noShow)
15163
15173
  return null;
15164
- const Z = D.value.get(K), ne = {
15174
+ const Z = S.value.get(K), ne = {
15165
15175
  field: K,
15166
15176
  title: $.label,
15167
15177
  minwidth: 150,
@@ -15412,7 +15422,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15412
15422
  if (pe.children.forEach((Oe) => {
15413
15423
  const qe = Oe.__config__;
15414
15424
  if (qe.layout === "colFormItem" && Oe.__vModel__ && !qe.noShow) {
15415
- const Je = Me(Oe, !0);
15425
+ const Je = De(Oe, !0);
15416
15426
  Je && Pe.push(Je);
15417
15427
  }
15418
15428
  }), Pe.length > 0)
@@ -15422,7 +15432,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15422
15432
  children: Pe
15423
15433
  };
15424
15434
  } else if (pe.layout === "colFormItem" && Z.__vModel__) {
15425
- const Pe = Me(Z, !1);
15435
+ const Pe = De(Z, !1);
15426
15436
  if (Pe)
15427
15437
  return Pe;
15428
15438
  }
@@ -15614,7 +15624,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15614
15624
  }
15615
15625
  }), Z.toFixed($);
15616
15626
  }
15617
- }, De = () => {
15627
+ }, Me = () => {
15618
15628
  const t = [], f = {
15619
15629
  enabled: !1,
15620
15630
  operations: []
@@ -15637,7 +15647,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15637
15647
  }, sa = (t) => {
15638
15648
  if (!t || t.length === 0)
15639
15649
  return [];
15640
- const { numericFields: f, summaryConfig: $ } = De();
15650
+ const { numericFields: f, summaryConfig: $ } = Me();
15641
15651
  if (!$.enabled || f.length === 0)
15642
15652
  return [];
15643
15653
  const C = [];
@@ -15913,7 +15923,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15913
15923
  }, Xa = (t) => {
15914
15924
  w("page-change", {
15915
15925
  currentPage: t.current,
15916
- pageSize: S.value
15926
+ pageSize: D.value
15917
15927
  });
15918
15928
  }, Ea = (t) => {
15919
15929
  r.value = 1, w("page-change", {
@@ -15965,7 +15975,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15965
15975
  w("dept-click", t);
15966
15976
  }, $a = (t) => {
15967
15977
  t && t.length > 0 && (t.forEach((f) => {
15968
- D.value.set(f.value, {
15978
+ S.value.set(f.value, {
15969
15979
  width: f.width ? parseInt(f.width) : void 0,
15970
15980
  fixed: f.fixed && f.fixed !== "none" ? f.fixed : void 0,
15971
15981
  show: f.show
@@ -16137,7 +16147,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16137
16147
  }
16138
16148
  }), (t, f) => {
16139
16149
  var Va, Sa, Ba, qa, La;
16140
- const $ = M("t-button"), C = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), ne = M("t-select"), pe = M("t-switch"), Se = M("t-dialog"), Pe = M("t-radio"), Oe = M("t-radio-group"), qe = M("t-upload"), Je = M("t-tag"), We = M("vxe-grid"), $e = M("t-pagination"), Xe = M("t-space"), ga = M("t-drawer");
16150
+ const $ = F("t-button"), C = F("t-dropdown-item"), K = F("t-dropdown-menu"), Z = F("t-dropdown"), ne = F("t-select"), pe = F("t-switch"), Se = F("t-dialog"), Pe = F("t-radio"), Oe = F("t-radio-group"), qe = F("t-upload"), Je = F("t-tag"), We = F("vxe-grid"), $e = F("t-pagination"), Xe = F("t-space"), ga = F("t-drawer");
16141
16151
  return l(), o("div", Pf, [
16142
16152
  e("div", If, [
16143
16153
  e("div", Of, [
@@ -16478,7 +16488,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16478
16488
  variant: "text",
16479
16489
  size: "small",
16480
16490
  disabled: !Ke[ye.vModel] || Ke[ye.vModel].length === 0,
16481
- onClick: (Ma) => cl(Ke, ye.vModel)
16491
+ onClick: (Da) => cl(Ke, ye.vModel)
16482
16492
  }, {
16483
16493
  icon: i(() => [
16484
16494
  e("i", {
@@ -16486,9 +16496,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16486
16496
  }, null, 2)
16487
16497
  ]),
16488
16498
  default: i(() => {
16489
- var Ma;
16499
+ var Da;
16490
16500
  return [
16491
- U(" " + V(((Ma = Ke[ye.vModel]) == null ? void 0 : Ma.length) || 0) + " 条 ", 1)
16501
+ U(" " + V(((Da = Ke[ye.vModel]) == null ? void 0 : Da.length) || 0) + " 条 ", 1)
16492
16502
  ];
16493
16503
  }),
16494
16504
  _: 2
@@ -16497,8 +16507,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16497
16507
  })),
16498
16508
  _e(t.$slots, (ye, Ke) => ({
16499
16509
  name: Ke,
16500
- fn: i((Ma) => [
16501
- fa(t.$slots, Ke, Nl(Bl(Ma)), void 0, !0)
16510
+ fn: i((Da) => [
16511
+ fa(t.$slots, Ke, Nl(Bl(Da)), void 0, !0)
16502
16512
  ])
16503
16513
  }))
16504
16514
  ]), 1040, ["edit-config"])
@@ -16507,8 +16517,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16507
16517
  s($e, {
16508
16518
  modelValue: r.value,
16509
16519
  "onUpdate:modelValue": f[10] || (f[10] = (ye) => r.value = ye),
16510
- pageSize: S.value,
16511
- "onUpdate:pageSize": f[11] || (f[11] = (ye) => S.value = ye),
16520
+ pageSize: D.value,
16521
+ "onUpdate:pageSize": f[11] || (f[11] = (ye) => D.value = ye),
16512
16522
  total: v.pageConfig.total || 0,
16513
16523
  "page-size-options": v.pageConfig.pageSizes || [10, 20, 50, 100, 200],
16514
16524
  "show-jumper": "",
@@ -16536,7 +16546,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16536
16546
  ref_key: "formRenderRef",
16537
16547
  ref: I,
16538
16548
  "form-conf": a.formData,
16539
- fields: F.value,
16549
+ fields: M.value,
16540
16550
  modelValue: ca(_),
16541
16551
  "onUpdate:modelValue": f[12] || (f[12] = (ye) => ql(_) ? _.value = ye : _ = ye),
16542
16552
  mode: W.value,
@@ -16706,7 +16716,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16706
16716
  mode: "cell",
16707
16717
  showStatus: !0
16708
16718
  }, d = () => {
16709
- const r = Math.max(...c.value.map((g) => g.id), 0) + 1, S = {
16719
+ const r = Math.max(...c.value.map((g) => g.id), 0) + 1, D = {
16710
16720
  id: r,
16711
16721
  fieldName: `field_${r}`,
16712
16722
  label: `新字段${r}`,
@@ -16716,9 +16726,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16716
16726
  span: 12,
16717
16727
  options: []
16718
16728
  };
16719
- c.value.push(S), Te.success("字段已添加");
16729
+ c.value.push(D), Te.success("字段已添加");
16720
16730
  }, I = (r) => {
16721
- const S = {
16731
+ const D = {
16722
16732
  __config__: {
16723
16733
  formId: r.id,
16724
16734
  visibility: ["pc", "app"],
@@ -16752,13 +16762,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16752
16762
  switch (r.type) {
16753
16763
  case "textarea":
16754
16764
  return {
16755
- ...S,
16765
+ ...D,
16756
16766
  rows: 3,
16757
16767
  autosize: !0
16758
16768
  };
16759
16769
  case "number":
16760
16770
  return {
16761
- ...S,
16771
+ ...D,
16762
16772
  min: 0,
16763
16773
  max: 999999,
16764
16774
  step: 1
@@ -16767,9 +16777,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16767
16777
  case "radio":
16768
16778
  case "checkbox":
16769
16779
  return {
16770
- ...S,
16780
+ ...D,
16771
16781
  __config__: {
16772
- ...S.__config__,
16782
+ ...D.__config__,
16773
16783
  dataType: "static"
16774
16784
  },
16775
16785
  options: r.options || [],
@@ -16782,29 +16792,29 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16782
16792
  };
16783
16793
  case "date":
16784
16794
  return {
16785
- ...S,
16795
+ ...D,
16786
16796
  type: "date",
16787
16797
  format: "YYYY-MM-DD"
16788
16798
  };
16789
16799
  case "datetime":
16790
16800
  return {
16791
- ...S,
16801
+ ...D,
16792
16802
  type: "datetime",
16793
16803
  format: "YYYY-MM-DD HH:mm:ss"
16794
16804
  };
16795
16805
  case "switch":
16796
16806
  return {
16797
- ...S,
16807
+ ...D,
16798
16808
  __config__: {
16799
- ...S.__config__,
16809
+ ...D.__config__,
16800
16810
  defaultValue: !1
16801
16811
  }
16802
16812
  };
16803
16813
  case "rate":
16804
16814
  return {
16805
- ...S,
16815
+ ...D,
16806
16816
  __config__: {
16807
- ...S.__config__,
16817
+ ...D.__config__,
16808
16818
  defaultValue: 0
16809
16819
  },
16810
16820
  max: 5,
@@ -16814,14 +16824,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16814
16824
  };
16815
16825
  case "uploadImg":
16816
16826
  return {
16817
- ...S,
16827
+ ...D,
16818
16828
  action: "/api/upload",
16819
16829
  listType: "image-card",
16820
16830
  multiple: !1,
16821
16831
  limit: 1
16822
16832
  };
16823
16833
  default:
16824
- return S;
16834
+ return D;
16825
16835
  }
16826
16836
  }, A = (r) => ({
16827
16837
  input: "Input",
@@ -16842,27 +16852,27 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16842
16852
  c.value.splice(r, 1), Te.success("字段已删除");
16843
16853
  }, Q = (r) => {
16844
16854
  if (r > 0) {
16845
- const S = c.value[r];
16846
- c.value[r] = c.value[r - 1], c.value[r - 1] = S;
16855
+ const D = c.value[r];
16856
+ c.value[r] = c.value[r - 1], c.value[r - 1] = D;
16847
16857
  }
16848
16858
  }, B = (r) => {
16849
16859
  if (r < c.value.length - 1) {
16850
- const S = c.value[r];
16851
- c.value[r] = c.value[r + 1], c.value[r + 1] = S;
16860
+ const D = c.value[r];
16861
+ c.value[r] = c.value[r + 1], c.value[r + 1] = D;
16852
16862
  }
16853
16863
  }, G = () => {
16854
16864
  }, he = () => {
16855
- const r = c.value.map((S) => S._originalConfig ? {
16856
- ...S._originalConfig,
16865
+ const r = c.value.map((D) => D._originalConfig ? {
16866
+ ...D._originalConfig,
16857
16867
  __config__: {
16858
- ...S._originalConfig.__config__,
16859
- label: S.label,
16860
- required: S.required,
16861
- span: S.span || 12
16868
+ ...D._originalConfig.__config__,
16869
+ label: D.label,
16870
+ required: D.required,
16871
+ span: D.span || 12
16862
16872
  },
16863
- __vModel__: S.fieldName,
16864
- placeholder: S.placeholder || `请输入${S.label}`
16865
- } : I(S));
16873
+ __vModel__: D.fieldName,
16874
+ placeholder: D.placeholder || `请输入${D.label}`
16875
+ } : I(D));
16866
16876
  y("save", r), u.value = !1, Te.success("字段配置已保存");
16867
16877
  }, J = () => {
16868
16878
  u.value = !1;
@@ -16871,11 +16881,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16871
16881
  }, j = () => {
16872
16882
  y("advanced-design");
16873
16883
  };
16874
- return (r, S) => {
16875
- const g = M("t-button"), E = M("t-space"), O = M("t-select"), re = M("t-switch"), de = M("vxe-grid"), W = M("t-dialog");
16884
+ return (r, D) => {
16885
+ const g = F("t-button"), E = F("t-space"), O = F("t-select"), re = F("t-switch"), de = F("vxe-grid"), W = F("t-dialog");
16876
16886
  return l(), Y(W, {
16877
16887
  visible: u.value,
16878
- "onUpdate:visible": S[0] || (S[0] = (x) => u.value = x),
16888
+ "onUpdate:visible": D[0] || (D[0] = (x) => u.value = x),
16879
16889
  header: "字段管理",
16880
16890
  width: "1200px",
16881
16891
  placement: "center",
@@ -16885,18 +16895,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16885
16895
  }, {
16886
16896
  header: i(() => [
16887
16897
  e("div", Qf, [
16888
- S[3] || (S[3] = e("span", null, "字段管理", -1)),
16898
+ D[3] || (D[3] = e("span", null, "字段管理", -1)),
16889
16899
  s(g, {
16890
16900
  theme: "primary",
16891
16901
  variant: "outline",
16892
16902
  size: "small",
16893
16903
  onClick: P
16894
16904
  }, {
16895
- icon: i(() => [...S[1] || (S[1] = [
16905
+ icon: i(() => [...D[1] || (D[1] = [
16896
16906
  e("i", { class: "ri-code-box-line" }, null, -1)
16897
16907
  ])]),
16898
16908
  default: i(() => [
16899
- S[2] || (S[2] = U(" 高级编辑 ", -1))
16909
+ D[2] || (D[2] = U(" 高级编辑 ", -1))
16900
16910
  ]),
16901
16911
  _: 1
16902
16912
  })
@@ -16910,11 +16920,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16910
16920
  onClick: d,
16911
16921
  size: "small"
16912
16922
  }, {
16913
- icon: i(() => [...S[4] || (S[4] = [
16923
+ icon: i(() => [...D[4] || (D[4] = [
16914
16924
  e("i", { class: "ri-add-line" }, null, -1)
16915
16925
  ])]),
16916
16926
  default: i(() => [
16917
- S[5] || (S[5] = U(" 添加字段 ", -1))
16927
+ D[5] || (D[5] = U(" 添加字段 ", -1))
16918
16928
  ]),
16919
16929
  _: 1
16920
16930
  }),
@@ -16925,11 +16935,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16925
16935
  theme: "warning",
16926
16936
  size: "small"
16927
16937
  }, {
16928
- icon: i(() => [...S[6] || (S[6] = [
16938
+ icon: i(() => [...D[6] || (D[6] = [
16929
16939
  e("i", { class: "ri-save-line" }, null, -1)
16930
16940
  ])]),
16931
16941
  default: i(() => [
16932
- S[7] || (S[7] = U(" 高级设计 ", -1))
16942
+ D[7] || (D[7] = U(" 高级设计 ", -1))
16933
16943
  ]),
16934
16944
  _: 1
16935
16945
  }),
@@ -16937,11 +16947,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16937
16947
  onClick: he,
16938
16948
  size: "small"
16939
16949
  }, {
16940
- icon: i(() => [...S[8] || (S[8] = [
16950
+ icon: i(() => [...D[8] || (D[8] = [
16941
16951
  e("i", { class: "ri-save-line" }, null, -1)
16942
16952
  ])]),
16943
16953
  default: i(() => [
16944
- S[9] || (S[9] = U(" 保存 ", -1))
16954
+ D[9] || (D[9] = U(" 保存 ", -1))
16945
16955
  ]),
16946
16956
  _: 1
16947
16957
  }),
@@ -16950,7 +16960,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16950
16960
  onClick: J,
16951
16961
  size: "small"
16952
16962
  }, {
16953
- default: i(() => [...S[10] || (S[10] = [
16963
+ default: i(() => [...D[10] || (D[10] = [
16954
16964
  U(" 取消 ", -1)
16955
16965
  ])]),
16956
16966
  _: 1
@@ -16991,7 +17001,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16991
17001
  onClick: (_) => Q(x),
16992
17002
  disabled: x === 0
16993
17003
  }, {
16994
- icon: i(() => [...S[11] || (S[11] = [
17004
+ icon: i(() => [...D[11] || (D[11] = [
16995
17005
  e("i", { class: "ri-arrow-up-line" }, null, -1)
16996
17006
  ])]),
16997
17007
  _: 1
@@ -17003,7 +17013,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
17003
17013
  onClick: (_) => B(x),
17004
17014
  disabled: x === c.value.length - 1
17005
17015
  }, {
17006
- icon: i(() => [...S[12] || (S[12] = [
17016
+ icon: i(() => [...D[12] || (D[12] = [
17007
17017
  e("i", { class: "ri-arrow-down-line" }, null, -1)
17008
17018
  ])]),
17009
17019
  _: 1
@@ -17014,7 +17024,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
17014
17024
  theme: "danger",
17015
17025
  onClick: (_) => L(x)
17016
17026
  }, {
17017
- icon: i(() => [...S[13] || (S[13] = [
17027
+ icon: i(() => [...D[13] || (D[13] = [
17018
17028
  e("i", { class: "ri-delete-bin-line" }, null, -1)
17019
17029
  ])]),
17020
17030
  _: 1
@@ -17044,21 +17054,21 @@ function sm(a) {
17044
17054
  onClose: k,
17045
17055
  onSave: w,
17046
17056
  httpClient: d
17047
- } = a, I = /* @__PURE__ */ new Map(), A = (r, S) => {
17057
+ } = a, I = /* @__PURE__ */ new Map(), A = (r, D) => {
17048
17058
  !r || !Array.isArray(r) || r.forEach((g) => {
17049
17059
  var O;
17050
17060
  const E = g.__vModel__;
17051
17061
  if (E) {
17052
- const re = S ? `${S}.${E}` : E;
17062
+ const re = D ? `${D}.${E}` : E;
17053
17063
  I.set(re, g);
17054
17064
  }
17055
17065
  (O = g.__config__) != null && O.children && A(g.__config__.children, E);
17056
17066
  });
17057
17067
  };
17058
17068
  return A(y), {
17059
- field: (r, S) => {
17060
- if (S !== void 0)
17061
- return ae[r] = S, S;
17069
+ field: (r, D) => {
17070
+ if (D !== void 0)
17071
+ return ae[r] = D, D;
17062
17072
  const g = I.get(r);
17063
17073
  return {
17064
17074
  value: () => ae[r],
@@ -17088,12 +17098,12 @@ function sm(a) {
17088
17098
  success: (r) => Te.success(r),
17089
17099
  warning: (r) => Te.warning(r),
17090
17100
  error: (r) => Te.error(r),
17091
- confirm: (r, S) => new Promise((g) => {
17101
+ confirm: (r, D) => new Promise((g) => {
17092
17102
  const E = Ll.confirm({
17093
- header: (S == null ? void 0 : S.title) || "确认",
17103
+ header: (D == null ? void 0 : D.title) || "确认",
17094
17104
  body: r,
17095
- confirmBtn: (S == null ? void 0 : S.yes) || "确定",
17096
- cancelBtn: (S == null ? void 0 : S.no) || "取消",
17105
+ confirmBtn: (D == null ? void 0 : D.yes) || "确定",
17106
+ cancelBtn: (D == null ? void 0 : D.no) || "取消",
17097
17107
  onConfirm: () => {
17098
17108
  E.destroy(), g(!0);
17099
17109
  },
@@ -17121,23 +17131,23 @@ function sm(a) {
17121
17131
  save: () => w == null ? void 0 : w(),
17122
17132
  // 子表操作
17123
17133
  entry_row_count: (r) => {
17124
- const S = ae[r];
17125
- return Array.isArray(S) ? S.length : 0;
17134
+ const D = ae[r];
17135
+ return Array.isArray(D) ? D.length : 0;
17126
17136
  },
17127
- entry_value: (r, S) => {
17128
- const g = S.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : S, re = E ? ae[E] : ae;
17137
+ entry_value: (r, D) => {
17138
+ const g = D.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : D, re = E ? ae[E] : ae;
17129
17139
  if (Array.isArray(re) && re[r])
17130
17140
  return re[r][O];
17131
17141
  },
17132
- entry_field_set: (r, S, g) => {
17133
- const E = S.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : S, de = O ? ae[O] : ae;
17142
+ entry_field_set: (r, D, g) => {
17143
+ const E = D.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : D, de = O ? ae[O] : ae;
17134
17144
  Array.isArray(de) && de[r] && (de[r][re] = g);
17135
17145
  },
17136
17146
  entry_add_row: (r) => {
17137
17147
  ae[r] || (ae[r] = []), ae[r].push({});
17138
17148
  },
17139
- entry_delete_row: (r, S) => {
17140
- Array.isArray(ae[r]) && ae[r].splice(S, 1);
17149
+ entry_delete_row: (r, D) => {
17150
+ Array.isArray(ae[r]) && ae[r].splice(D, 1);
17141
17151
  },
17142
17152
  entry_clear: (r) => {
17143
17153
  ae[r] = [];
@@ -17153,7 +17163,7 @@ function sm(a) {
17153
17163
  const r = /* @__PURE__ */ new Date();
17154
17164
  return `${r.getFullYear()}-${String(r.getMonth() + 1).padStart(2, "0")}-${String(r.getDate()).padStart(2, "0")} ${String(r.getHours()).padStart(2, "0")}:${String(r.getMinutes()).padStart(2, "0")}:${String(r.getSeconds()).padStart(2, "0")}`;
17155
17165
  },
17156
- format: (r, S) => {
17166
+ format: (r, D) => {
17157
17167
  const g = new Date(r), E = {
17158
17168
  YYYY: g.getFullYear(),
17159
17169
  MM: g.getMonth() + 1,
@@ -17162,33 +17172,33 @@ function sm(a) {
17162
17172
  mm: g.getMinutes(),
17163
17173
  ss: g.getSeconds()
17164
17174
  };
17165
- return S.replace(/YYYY|MM|DD|HH|mm|ss/g, (O) => String(E[O]).padStart(2, "0"));
17175
+ return D.replace(/YYYY|MM|DD|HH|mm|ss/g, (O) => String(E[O]).padStart(2, "0"));
17166
17176
  }
17167
17177
  },
17168
17178
  util: {
17169
17179
  uuid: () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (r) => {
17170
- const S = Math.random() * 16 | 0;
17171
- return (r === "x" ? S : S & 3 | 8).toString(16);
17180
+ const D = Math.random() * 16 | 0;
17181
+ return (r === "x" ? D : D & 3 | 8).toString(16);
17172
17182
  }),
17173
- format: (r, S) => {
17174
- const g = (S.split(".")[1] || "").length;
17183
+ format: (r, D) => {
17184
+ const g = (D.split(".")[1] || "").length;
17175
17185
  return r.toFixed(g);
17176
17186
  },
17177
17187
  toChineseMoney: (r) => {
17178
- const S = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], g = ["", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿"];
17188
+ const D = ["零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"], g = ["", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿"];
17179
17189
  if (r === 0) return "零元整";
17180
17190
  const E = Math.floor(r), O = Math.round((r - E) * 100);
17181
17191
  let re = "";
17182
17192
  const de = E.toString();
17183
17193
  for (let W = 0; W < de.length; W++) {
17184
17194
  const x = parseInt(de[W]), _ = g[de.length - 1 - W];
17185
- x !== 0 ? re += S[x] + _ : re.endsWith("零") || (re += "零");
17195
+ x !== 0 ? re += D[x] + _ : re.endsWith("零") || (re += "零");
17186
17196
  }
17187
17197
  if (re = re.replace(/零+$/, "") + "元", O === 0)
17188
17198
  re += "整";
17189
17199
  else {
17190
17200
  const W = Math.floor(O / 10), x = O % 10;
17191
- W > 0 && (re += S[W] + "角"), x > 0 && (re += S[x] + "分");
17201
+ W > 0 && (re += D[W] + "角"), x > 0 && (re += D[x] + "分");
17192
17202
  }
17193
17203
  return re;
17194
17204
  }
@@ -17200,49 +17210,49 @@ function sm(a) {
17200
17210
  }
17201
17211
  },
17202
17212
  db: {
17203
- query: async (r, S) => {
17213
+ query: async (r, D) => {
17204
17214
  if (!d)
17205
17215
  return console.warn("db.query: httpClient not configured"), [];
17206
17216
  try {
17207
- return (await d.post("/api/script/query", { sql: r, params: S })).data;
17217
+ return (await d.post("/api/script/query", { sql: r, params: D })).data;
17208
17218
  } catch (g) {
17209
17219
  return console.error("db.query error:", g), [];
17210
17220
  }
17211
17221
  },
17212
- execute: async (r, S) => {
17222
+ execute: async (r, D) => {
17213
17223
  if (!d)
17214
17224
  return console.warn("db.execute: httpClient not configured"), { affected: 0 };
17215
17225
  try {
17216
- return (await d.post("/api/script/execute", { sql: r, params: S })).data;
17226
+ return (await d.post("/api/script/execute", { sql: r, params: D })).data;
17217
17227
  } catch (g) {
17218
17228
  return console.error("db.execute error:", g), { affected: 0 };
17219
17229
  }
17220
17230
  }
17221
17231
  },
17222
17232
  api: {
17223
- call: async (r, S) => {
17233
+ call: async (r, D) => {
17224
17234
  if (!d)
17225
17235
  return console.warn("api.call: httpClient not configured"), null;
17226
17236
  try {
17227
- return (await d.post(`/api/script/call/${r}`, S)).data;
17237
+ return (await d.post(`/api/script/call/${r}`, D)).data;
17228
17238
  } catch (g) {
17229
17239
  return console.error("api.call error:", g), null;
17230
17240
  }
17231
17241
  },
17232
- get: async (r, S) => {
17242
+ get: async (r, D) => {
17233
17243
  if (!d)
17234
17244
  return console.warn("api.get: httpClient not configured"), null;
17235
17245
  try {
17236
- return (await d.get(r, { params: S })).data;
17246
+ return (await d.get(r, { params: D })).data;
17237
17247
  } catch (g) {
17238
17248
  return console.error("api.get error:", g), null;
17239
17249
  }
17240
17250
  },
17241
- post: async (r, S) => {
17251
+ post: async (r, D) => {
17242
17252
  if (!d)
17243
17253
  return console.warn("api.post: httpClient not configured"), null;
17244
17254
  try {
17245
- return (await d.post(r, S)).data;
17255
+ return (await d.post(r, D)).data;
17246
17256
  } catch (g) {
17247
17257
  return console.error("api.post error:", g), null;
17248
17258
  }
@@ -17287,12 +17297,12 @@ async function rm(a, ae, n) {
17287
17297
  }
17288
17298
  const dm = {
17289
17299
  install(a) {
17290
- a.component("CdForm", El), a.component("CdFormCol", Da), a.component("FormRender", Al), a.component("ShareDialog", Rl), a.component("FieldManageDialog", lm);
17300
+ a.component("CdForm", El), a.component("CdFormCol", Ma), a.component("FormRender", Al), a.component("ShareDialog", Rl), a.component("FieldManageDialog", lm);
17291
17301
  }
17292
17302
  };
17293
17303
  export {
17294
17304
  El as CdForm,
17295
- Da as CdFormCol,
17305
+ Ma as CdFormCol,
17296
17306
  lm as FieldManageDialog,
17297
17307
  Al as FormRender,
17298
17308
  Rl as ShareDialog,