bi-components-library 1.0.32 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as $, jsxs as Z, Fragment as st } from "react/jsx-runtime";
2
- import { useState as ne, useRef as Q, useMemo as Ze, useCallback as ae, useEffect as de, useLayoutEffect as je } from "react";
3
- import { Button as $e, Card as Re, Modal as lt, Table as Ge, Flex as We, Spin as it, Empty as ct, Select as Fe, Form as De, Input as et, Space as ut, DatePicker as dt, Dropdown as pt, Tooltip as ft, Progress as yt, Pagination as mt, theme as ht } from "antd";
2
+ import { useState as ne, useRef as Q, useMemo as Ze, useCallback as re, useEffect as de, useLayoutEffect as je } from "react";
3
+ import { Button as $e, Card as Ge, Modal as lt, Table as Re, Flex as We, Spin as it, Empty as ct, Select as Fe, Form as De, Input as et, Space as ut, DatePicker as dt, Dropdown as pt, Tooltip as ft, Progress as yt, Pagination as mt, theme as ht } from "antd";
4
4
  import { createFromIconfontCN as gt, LeftOutlined as vt, SearchOutlined as bt, ReloadOutlined as xt, InfoCircleOutlined as kt, SendOutlined as wt, PauseCircleOutlined as Et, PlayCircleOutlined as $t } from "@ant-design/icons";
5
5
  import { createPortal as tt } from "react-dom";
6
6
  const Ct = ({
@@ -82,16 +82,16 @@ const St = ({
82
82
  children: c,
83
83
  bordered: l = !0,
84
84
  hoverable: s = !1,
85
- size: u = "default",
85
+ size: d = "default",
86
86
  ...C
87
87
  }) => /* @__PURE__ */ $(
88
- Re,
88
+ Ge,
89
89
  {
90
90
  ...C,
91
91
  title: t,
92
92
  bordered: l,
93
93
  hoverable: s,
94
- size: u,
94
+ size: d,
95
95
  children: c
96
96
  }
97
97
  );
@@ -150,8 +150,8 @@ const Tt = ({
150
150
  showDefaultFooter: t = !0,
151
151
  ...c
152
152
  }) => {
153
- const l = c.footer !== void 0 ? c.footer : t ? (s, { OkBtn: u, CancelBtn: C }) => /* @__PURE__ */ Z(st, { children: [
154
- /* @__PURE__ */ $(u, {}),
153
+ const l = c.footer !== void 0 ? c.footer : t ? (s, { OkBtn: d, CancelBtn: C }) => /* @__PURE__ */ Z(st, { children: [
154
+ /* @__PURE__ */ $(d, {}),
155
155
  /* @__PURE__ */ $(C, {})
156
156
  ] }) : null;
157
157
  return /* @__PURE__ */ $(
@@ -229,7 +229,7 @@ const qt = ({
229
229
  defaultPageSize: l = 10,
230
230
  ...s
231
231
  }) => /* @__PURE__ */ $(
232
- Ge,
232
+ Re,
233
233
  {
234
234
  ...s,
235
235
  scroll: {
@@ -302,7 +302,7 @@ const Nt = gt({
302
302
  size: c,
303
303
  color: l,
304
304
  style: s,
305
- ...u
305
+ ...d
306
306
  }) => {
307
307
  const C = {
308
308
  fontSize: c,
@@ -312,7 +312,7 @@ const Nt = gt({
312
312
  return /* @__PURE__ */ $(
313
313
  Nt,
314
314
  {
315
- ...u,
315
+ ...d,
316
316
  type: t,
317
317
  style: C
318
318
  }
@@ -359,7 +359,7 @@ const _t = ({
359
359
  description: c = "暂无数据",
360
360
  className: l,
361
361
  emptyChildren: s,
362
- loadingText: u,
362
+ loadingText: d,
363
363
  emptyImage: C
364
364
  }) => t ? /* @__PURE__ */ Z(
365
365
  We,
@@ -370,7 +370,7 @@ const _t = ({
370
370
  vertical: !0,
371
371
  children: [
372
372
  /* @__PURE__ */ $(it, { size: "large" }),
373
- u && /* @__PURE__ */ $("div", { className: "mt-4 text-gray-500", children: u })
373
+ d && /* @__PURE__ */ $("div", { className: "mt-4 text-gray-500", children: d })
374
374
  ]
375
375
  }
376
376
  ) : /* @__PURE__ */ $(
@@ -438,12 +438,12 @@ const Lt = ({
438
438
  showText: c = !1,
439
439
  className: l,
440
440
  size: s = "small",
441
- type: u = "default"
441
+ type: d = "default"
442
442
  }) => /* @__PURE__ */ $(
443
443
  $e,
444
444
  {
445
445
  size: s,
446
- type: u,
446
+ type: d,
447
447
  icon: /* @__PURE__ */ $(vt, {}),
448
448
  className: `cursor-pointer ${l || ""}`,
449
449
  onClick: t,
@@ -547,7 +547,7 @@ const { Option: Mt } = Fe, It = ({
547
547
  request: c,
548
548
  searchFields: l = [],
549
549
  showSearch: s = !0,
550
- showRefresh: u = !0,
550
+ showRefresh: d = !0,
551
551
  defaultPageSize: C = 10,
552
552
  pageSizeOptions: T = ["10", "20", "50", "100"],
553
553
  autoLoad: w = !0,
@@ -562,47 +562,47 @@ const { Option: Mt } = Fe, It = ({
562
562
  V.current = n;
563
563
  const E = Q(k);
564
564
  E.current = k;
565
- const B = Q(!1), G = Ze(() => t.map((d) => {
566
- const { sortable: p, render: b, ...L } = d;
565
+ const B = Q(!1), R = Ze(() => t.map((p) => {
566
+ const { sortable: u, render: b, ...L } = p;
567
567
  return {
568
568
  ...L,
569
- sorter: p ? !0 : void 0,
569
+ sorter: u ? !0 : void 0,
570
570
  render: b || ((N) => N)
571
571
  };
572
- }), [t]), F = ae(async (d = {}) => {
572
+ }), [t]), F = re(async (p = {}) => {
573
573
  if (c) {
574
574
  r(!0);
575
575
  try {
576
- const p = {
576
+ const u = {
577
577
  page: V.current.current,
578
578
  pageSize: V.current.pageSize,
579
579
  sortField: m.field,
580
580
  sortOrder: m.order,
581
581
  searchParams: { ...a, ...E.current },
582
- ...d
583
- }, b = await c(p);
582
+ ...p
583
+ }, b = await c(u);
584
584
  b.success && (y(b.data), o((L) => ({
585
585
  ...L,
586
586
  total: b.total,
587
- current: p.page || L.current
587
+ current: u.page || L.current
588
588
  })));
589
- } catch (p) {
590
- console.error("加载数据失败:", p);
589
+ } catch (u) {
590
+ console.error("加载数据失败:", u);
591
591
  } finally {
592
592
  r(!1);
593
593
  }
594
594
  }
595
- }, [c, m, a]), W = ae((d) => {
596
- f(d), o((p) => ({ ...p, current: 1 }));
597
- }, []), H = ae(() => {
598
- x.resetFields(), f({}), o((d) => ({ ...d, current: 1 }));
599
- }, [x]), ee = ae(() => {
595
+ }, [c, m, a]), W = re((p) => {
596
+ f(p), o((u) => ({ ...u, current: 1 }));
597
+ }, []), H = re(() => {
598
+ x.resetFields(), f({}), o((p) => ({ ...p, current: 1 }));
599
+ }, [x]), ee = re(() => {
600
600
  F();
601
- }, [F]), re = ae((d, p, b) => {
601
+ }, [F]), ae = re((p, u, b) => {
602
602
  const L = {
603
- current: d.current || 1,
604
- pageSize: d.pageSize || C,
605
- total: d.total || 0
603
+ current: p.current || 1,
604
+ pageSize: p.pageSize || C,
605
+ total: p.total || 0
606
606
  }, N = {
607
607
  field: b?.field,
608
608
  order: b?.order
@@ -610,55 +610,55 @@ const { Option: Mt } = Fe, It = ({
610
610
  o(L), v(N);
611
611
  }, [C]);
612
612
  return de(() => {
613
- const d = Object.keys(k).length > 0;
614
- (w && !B.current || d) && (F(), B.current = !0);
613
+ const p = Object.keys(k).length > 0;
614
+ (w && !B.current || p) && (F(), B.current = !0);
615
615
  }, [w, k, F]), /* @__PURE__ */ Z("div", { children: [
616
- s && l.length > 0 && /* @__PURE__ */ $(Re, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ Z(
616
+ s && l.length > 0 && /* @__PURE__ */ $(Ge, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ Z(
617
617
  De,
618
618
  {
619
619
  form: x,
620
620
  layout: "inline",
621
621
  onFinish: W,
622
- initialValues: l.reduce((d, p) => (p.defaultValue !== void 0 && (d[p.key] = p.defaultValue), d), {}),
622
+ initialValues: l.reduce((p, u) => (u.defaultValue !== void 0 && (p[u.key] = u.defaultValue), p), {}),
623
623
  children: [
624
- l.map((d) => /* @__PURE__ */ $(De.Item, { name: d.key, label: d.label, children: d.type === "input" ? /* @__PURE__ */ $(
624
+ l.map((p) => /* @__PURE__ */ $(De.Item, { name: p.key, label: p.label, children: p.type === "input" ? /* @__PURE__ */ $(
625
625
  et,
626
626
  {
627
- placeholder: d.placeholder || `请输入${d.label}`,
627
+ placeholder: p.placeholder || `请输入${p.label}`,
628
628
  style: { width: 200 }
629
629
  }
630
630
  ) : /* @__PURE__ */ $(
631
631
  Fe,
632
632
  {
633
- placeholder: d.placeholder || `请选择${d.label}`,
633
+ placeholder: p.placeholder || `请选择${p.label}`,
634
634
  style: { width: 200 },
635
635
  allowClear: !0,
636
- children: d.options?.map((p) => /* @__PURE__ */ $(Mt, { value: p.value, children: p.label }, p.value))
636
+ children: p.options?.map((u) => /* @__PURE__ */ $(Mt, { value: u.value, children: u.label }, u.value))
637
637
  }
638
- ) }, d.key)),
638
+ ) }, p.key)),
639
639
  /* @__PURE__ */ $(De.Item, { children: /* @__PURE__ */ Z(ut, { children: [
640
640
  /* @__PURE__ */ $($e, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ $(bt, {}), children: "查询" }),
641
641
  /* @__PURE__ */ $($e, { onClick: H, children: "重置" }),
642
- u && /* @__PURE__ */ $($e, { icon: /* @__PURE__ */ $(xt, {}), onClick: ee, children: "刷新" })
642
+ d && /* @__PURE__ */ $($e, { icon: /* @__PURE__ */ $(xt, {}), onClick: ee, children: "刷新" })
643
643
  ] }) })
644
644
  ]
645
645
  }
646
646
  ) }),
647
647
  /* @__PURE__ */ $(
648
- Ge,
648
+ Re,
649
649
  {
650
650
  ...e,
651
- columns: G,
651
+ columns: R,
652
652
  dataSource: q,
653
653
  loading: i,
654
654
  pagination: {
655
655
  ...n,
656
656
  showSizeChanger: !0,
657
657
  showQuickJumper: !0,
658
- showTotal: (d, p) => `第 ${p[0]}-${p[1]} 条/共 ${d} 条`,
658
+ showTotal: (p, u) => `第 ${u[0]}-${u[1]} 条/共 ${p} 条`,
659
659
  pageSizeOptions: T
660
660
  },
661
- onChange: re,
661
+ onChange: ae,
662
662
  scroll: { x: "max-content", y: "50vh" }
663
663
  }
664
664
  )
@@ -733,9 +733,9 @@ It.__docgenInfo = {
733
733
  };
734
734
  function Oe(t, c, l) {
735
735
  if (!t.current) return;
736
- const s = /* @__PURE__ */ new Set(), u = {};
736
+ const s = /* @__PURE__ */ new Set(), d = {};
737
737
  for (const y of c)
738
- y.exclusionGroup && y.exclusionGroup !== "separator" && (s.add(y.exclusionGroup), u[y.exclusionGroup] || (u[y.exclusionGroup] = []), u[y.exclusionGroup].push({
738
+ y.exclusionGroup && y.exclusionGroup !== "separator" && (s.add(y.exclusionGroup), d[y.exclusionGroup] || (d[y.exclusionGroup] = []), d[y.exclusionGroup].push({
739
739
  type: y.type,
740
740
  key: y.key,
741
741
  exclusionGroup: y.exclusionGroup
@@ -743,20 +743,25 @@ function Oe(t, c, l) {
743
743
  const C = {};
744
744
  for (const y of s) {
745
745
  C[y] = !1;
746
- for (const i of u[y])
746
+ for (const i of d[y])
747
747
  if (i.type === "upload" && i.key) {
748
748
  if (l[i.key] !== null && l[i.key] !== void 0) {
749
749
  C[y] = !0;
750
750
  break;
751
751
  }
752
- } else if (i.type === "variable" && i.key) {
753
- const r = t.current.querySelector(
752
+ } else if ((i.type === "variable" || i.type === "multi-variable") && i.key) {
753
+ const r = i.type === "multi-variable" ? t.current.querySelectorAll(
754
+ `[data-type="variable"][data-multi-key="${i.key}"]`
755
+ ) : [t.current.querySelector(
754
756
  `[data-type="variable"][data-key="${i.key}"]`
755
- );
756
- if (r && r.innerText.replace(/[\u200B\n]/g, "").trim().length > 0) {
757
- C[y] = !0;
757
+ )].filter(Boolean);
758
+ for (const n of r)
759
+ if (!n.classList.contains("show-placeholder") && n.innerText.replace(/[\u200B\n]/g, "").trim().length > 0) {
760
+ C[y] = !0;
761
+ break;
762
+ }
763
+ if (C[y])
758
764
  break;
759
- }
760
765
  }
761
766
  }
762
767
  const T = c.some((y) => y.exclusionGroup === "separator"), k = Object.keys(C).filter(
@@ -793,11 +798,11 @@ function He(t, c, l, s) {
793
798
  s(!1);
794
799
  return;
795
800
  }
796
- const u = [];
801
+ const d = [];
797
802
  for (let i = 0; i < c.length; i++) {
798
803
  const r = c[i];
799
804
  if ((r.type === "variable" || r.type === "upload" || r.type === "multi-variable" || r.type === "select" || r.type === "textarea" || r.type === "richtext" || r.type === "datepicker") && r.required && r.key) {
800
- u.push({
805
+ d.push({
801
806
  exclusionGroup: r.exclusionGroup || "",
802
807
  key: r.key,
803
808
  type: r.type === "multi-variable" ? "variable" : r.type,
@@ -812,7 +817,7 @@ function He(t, c, l, s) {
812
817
  for (let n = i + 1; n < c.length; n++) {
813
818
  const o = c[n];
814
819
  if (o.exclusionGroup === r.exclusionGroup && (o.type === "variable" || o.type === "upload" || o.type === "select" || o.type === "textarea" || o.type === "richtext" || o.type === "datepicker") && o.key) {
815
- u.push({
820
+ d.push({
816
821
  exclusionGroup: r.exclusionGroup,
817
822
  key: o.key,
818
823
  type: o.type,
@@ -825,7 +830,7 @@ function He(t, c, l, s) {
825
830
  for (let n = i + 1; n < c.length; n++) {
826
831
  const o = c[n];
827
832
  if ((o.type === "variable" || o.type === "upload" || o.type === "select" || o.type === "textarea" || o.type === "richtext" || o.type === "datepicker") && o.key) {
828
- u.push({
833
+ d.push({
829
834
  exclusionGroup: o.exclusionGroup || "",
830
835
  key: o.key,
831
836
  type: o.type,
@@ -836,17 +841,17 @@ function He(t, c, l, s) {
836
841
  }
837
842
  }
838
843
  const C = c.some((i) => i.exclusionGroup === "separator"), T = [];
839
- if (C && u.length > 1) {
844
+ if (C && d.length > 1) {
840
845
  const i = [];
841
846
  c.forEach((r, n) => {
842
847
  r.exclusionGroup === "separator" && i.push(n);
843
848
  });
844
849
  for (const r of i) {
845
- const o = u.filter((m) => typeof m.__index == "number" && m.__index < r).sort((m, v) => (v.__index ?? 0) - (m.__index ?? 0))[0], f = u.filter((m) => typeof m.__index == "number" && m.__index > r).sort((m, v) => (m.__index ?? 0) - (v.__index ?? 0))[0];
850
+ const o = d.filter((m) => typeof m.__index == "number" && m.__index < r).sort((m, v) => (v.__index ?? 0) - (m.__index ?? 0))[0], f = d.filter((m) => typeof m.__index == "number" && m.__index > r).sort((m, v) => (m.__index ?? 0) - (v.__index ?? 0))[0];
846
851
  o && f && T.push([o, f]);
847
852
  }
848
853
  }
849
- if (u.length === 0) {
854
+ if (d.length === 0) {
850
855
  if (c.length === 0) {
851
856
  if (!t.current) {
852
857
  s(!1);
@@ -859,7 +864,7 @@ function He(t, c, l, s) {
859
864
  s(!0);
860
865
  return;
861
866
  }
862
- const w = u.filter((i) => {
867
+ const w = d.filter((i) => {
863
868
  if (!t.current) return !1;
864
869
  if (i.exclusionGroup) {
865
870
  const r = t.current.querySelectorAll(
@@ -1109,11 +1114,11 @@ function He(t, c, l, s) {
1109
1114
  function Be(t, c) {
1110
1115
  if (!t.current) return;
1111
1116
  t.current.querySelectorAll('[data-type="variable"]').forEach((s) => {
1112
- const u = s.innerText.replace(/\n/g, "");
1113
- u.replace(/\u200B/g, "") ? s.classList.remove("show-placeholder") : (u !== "​" && (s.innerText = "​"), s.classList.add("show-placeholder"));
1117
+ const d = s.innerText.replace(/\n/g, "");
1118
+ d.replace(/\u200B/g, "") ? s.classList.remove("show-placeholder") : (d !== "​" && (s.innerText = "​"), s.classList.add("show-placeholder"));
1114
1119
  });
1115
1120
  }
1116
- function Vt(t, c, l, s, u, C = {}, T) {
1121
+ function Vt(t, c, l, s, d, C = {}, T) {
1117
1122
  if (!t.current) return;
1118
1123
  let w = "", k = 0;
1119
1124
  for (; k < c.length; ) {
@@ -1124,19 +1129,19 @@ function Vt(t, c, l, s, u, C = {}, T) {
1124
1129
  const v = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, x = "</span>";
1125
1130
  let V = "";
1126
1131
  e.className ? V = `<span class="${e.className}">${e.text ?? ""}</span>` : V = e.text ?? "";
1127
- const E = q, B = l[E.key] !== null && l[E.key] !== void 0, G = B ? l[E.key] : null, F = B ? l[E.key]?.name : E.text, W = B ? "" : "hidden", H = E.tooltip && !B ? "" : "hidden", ee = B ? "has-file" : "", re = B && F ? ` data-file-name="${F.replace(/"/g, "&quot;")}"` : "";
1128
- let d = "";
1129
- B && G && (G.type?.startsWith("image/") ? d = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(G)}" alt="preview" />` : d = "<i class='iconfont icon-exlwenjian'></i>");
1130
- const p = `<span contenteditable="false" data-type="upload" data-key="${E.key}" class="upload-chip"><span class="upload-inner-wrapper ${ee}"><span class="upload-icon">${d}</span><span class="upload-label"${re}>${F || E.text}</span>${E.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${H}" data-upload-key="${E.key}" data-tooltip="${E.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${W}" title="移除文件">×</span></span></span>`;
1131
- w += v + V + p + x, k += 2;
1132
+ const E = q, B = l[E.key] !== null && l[E.key] !== void 0, R = B ? l[E.key] : null, F = B ? l[E.key]?.name : E.text, W = B ? "" : "hidden", H = E.tooltip && !B ? "" : "hidden", ee = B ? "has-file" : "", ae = B && F ? ` data-file-name="${F.replace(/"/g, "&quot;")}"` : "";
1133
+ let p = "";
1134
+ B && R && (R.type?.startsWith("image/") ? p = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(R)}" alt="preview" />` : p = "<i class='iconfont icon-exlwenjian'></i>");
1135
+ const u = `<span contenteditable="false" data-type="upload" data-key="${E.key}" class="upload-chip"><span class="upload-inner-wrapper ${ee}"><span class="upload-icon">${p}</span><span class="upload-label"${ae}>${F || E.text}</span>${E.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${H}" data-upload-key="${E.key}" data-tooltip="${E.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${W}" title="移除文件">×</span></span></span>`;
1136
+ w += v + V + u + x, k += 2;
1132
1137
  continue;
1133
1138
  }
1134
1139
  if (f) {
1135
1140
  const v = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, x = "</span>";
1136
1141
  let V = "";
1137
1142
  e.className ? V = `<span class="${e.className}">${e.text ?? ""}</span>` : V = e.text ?? "";
1138
- const E = q, G = (E.key ? u[E.key] : void 0) || E.text || "", F = !G, W = F ? "​" : G, H = F ? "show-placeholder" : "", ee = E.exclusionGroup ? ` data-group="${E.exclusionGroup}"` : "", re = E.tooltip ? ` data-tooltip="${E.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${E.key || ""}"` : "", d = E.tooltip && F ? "" : "hidden", p = `<span contenteditable="true" data-type="variable" data-key="${E.key}" data-placeholder="${E.placeholder || ""}"${ee}${re} class="variable-chip ${H}">${W}${E.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${d}" data-variable-key="${E.key}" data-tooltip="${E.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1139
- w += v + V + p + x, k += 2;
1143
+ const E = q, R = (E.key ? d[E.key] : void 0) || E.text || "", F = !R, W = F ? "​" : R, H = F ? "show-placeholder" : "", ee = E.exclusionGroup ? ` data-group="${E.exclusionGroup}"` : "", ae = E.tooltip ? ` data-tooltip="${E.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${E.key || ""}"` : "", p = E.tooltip && F ? "" : "hidden", u = `<span contenteditable="true" data-type="variable" data-key="${E.key}" data-placeholder="${E.placeholder || ""}"${ee}${ae} class="variable-chip ${H}">${W}${E.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${p}" data-variable-key="${E.key}" data-tooltip="${E.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1144
+ w += v + V + u + x, k += 2;
1140
1145
  continue;
1141
1146
  }
1142
1147
  }
@@ -1149,28 +1154,28 @@ function Vt(t, c, l, s, u, C = {}, T) {
1149
1154
  const a = s ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', m = (e.text ?? "").replace(/\n/g, "<br/>");
1150
1155
  e.className ? o = `<span class="${e.className}"${a}>${m}</span>` : o = s ? `<span${a}>${m}</span>` : `<span contenteditable="false">${m}</span>`;
1151
1156
  } else if (e.type === "variable" && e.key) {
1152
- const f = u[e.key] || e.text || "", m = !f, v = m ? "​" : f, x = m ? "show-placeholder" : "", V = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", E = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", B = e.tooltip && m ? "" : "hidden", G = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${V}${E} class="variable-chip ${x}">${v}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${B}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1153
- e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${G}</span>` : o = G;
1157
+ const f = d[e.key] || e.text || "", m = !f, v = m ? "​" : f, x = m ? "show-placeholder" : "", V = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", E = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", B = e.tooltip && m ? "" : "hidden", R = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${V}${E} class="variable-chip ${x}">${v}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${B}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1158
+ e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${R}</span>` : o = R;
1154
1159
  } else if (e.type === "upload" && e.key) {
1155
1160
  const a = l[e.key] !== null && l[e.key] !== void 0, f = a ? l[e.key] : null, m = a ? l[e.key]?.name : e.text, v = a ? "" : "hidden", x = e.tooltip && !a ? "" : "hidden", V = a ? "has-file" : "", E = a && m ? ` data-file-name="${m.replace(/"/g, "&quot;")}"` : "";
1156
1161
  let B = "";
1157
1162
  a && f && (f.type?.startsWith("image/") ? B = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(f)}" alt="preview" />` : B = "<i class='iconfont icon-exlwenjian'></i>");
1158
- const G = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${V}"><span class="upload-icon">${B}</span><span class="upload-label"${E}>${m || e.text}</span>${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${x}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${v}" title="移除文件">×</span></span></span>`;
1159
- e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${G}</span>` : o = G;
1163
+ const R = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${V}"><span class="upload-icon">${B}</span><span class="upload-label"${E}>${m || e.text}</span>${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${x}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${v}" title="移除文件">×</span></span></span>`;
1164
+ e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${R}</span>` : o = R;
1160
1165
  } else if (e.type === "select" && e.key) {
1161
- const a = u[e.key] || e.defaultValue || "", f = (e.options || []).map((x) => {
1166
+ const a = d[e.key] || e.defaultValue || "", f = (e.options || []).map((x) => {
1162
1167
  const V = a === x.value ? "selected" : "";
1163
1168
  return `<option value="${x.value}" ${V}>${x.label}</option>`;
1164
1169
  }).join(""), m = e.placeholder ? `<option value="" ${a ? "" : "selected"} disabled hidden>${e.placeholder}</option>` : "", v = `<select data-type="select" data-key="${e.key}" class="rte-select">${m}${f}</select>`;
1165
1170
  e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${v}</span>` : o = v;
1166
1171
  } else if (e.type === "textarea" && e.key) {
1167
- const a = u[e.key] || "", f = e.maxHeight || 252, m = e.expandable !== !1, v = e.placeholder ? ` placeholder="${e.placeholder}"` : "", x = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${f}" style="max-height:${f}px;"${v}>${a}</textarea>`, V = m ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", E = `<div class="rte-textarea-wrapper" data-key="${e.key}">${x}${V}</div>`;
1172
+ const a = d[e.key] || "", f = e.maxHeight || 252, m = e.expandable !== !1, v = e.placeholder ? ` placeholder="${e.placeholder}"` : "", x = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${f}" style="max-height:${f}px;"${v}>${a}</textarea>`, V = m ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", E = `<div class="rte-textarea-wrapper" data-key="${e.key}">${x}${V}</div>`;
1168
1173
  e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${E}</span>` : o = E;
1169
1174
  } else if (e.type === "richtext" && e.key) {
1170
- const a = u[e.key] || e.text || "", f = e.minHeight || 140, m = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", v = e.expandable !== !1, x = a, V = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${m} style="min-height:${f}px;">${x}</div>`, E = v ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", B = `<div class="rte-richtext-wrapper" data-key="${e.key}">${V}${E}</div>`, G = `<div class="rte-richtext-container" data-key="${e.key}">${B}</div>`;
1171
- e.required ? o = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-richtext-required"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${G}</div>` : o = G;
1175
+ const a = d[e.key] || e.text || "", f = e.minHeight || 140, m = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", v = e.expandable !== !1, x = a, V = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${m} style="min-height:${f}px;">${x}</div>`, E = v ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", B = `<div class="rte-richtext-wrapper" data-key="${e.key}">${V}${E}</div>`, R = `<div class="rte-richtext-container" data-key="${e.key}">${B}</div>`;
1176
+ e.required ? o = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-richtext-required"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${R}</div>` : o = R;
1172
1177
  } else if (e.type === "datepicker" && e.key) {
1173
- const a = u[e.key] || "", f = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", m = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", v = e.disableFuture ? ' data-disable-future="true"' : "", x = `<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${f}${m}${v}></div>`;
1178
+ const a = d[e.key] || "", f = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", m = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", v = e.disableFuture ? ' data-disable-future="true"' : "", x = `<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${f}${m}${v}></div>`;
1174
1179
  e.required ? o = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${x}</span>` : o = x;
1175
1180
  } else if (e.type === "multi-variable" && e.key) {
1176
1181
  const a = e.maxCount || 9, f = C[e.key] || 1, m = Math.min(f, a);
@@ -1178,15 +1183,15 @@ function Vt(t, c, l, s, u, C = {}, T) {
1178
1183
  const v = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, x = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "";
1179
1184
  let V = "";
1180
1185
  for (let E = 0; E < m; E++) {
1181
- const B = `${e.key}_${E}`, G = u[B] || "", F = !G, W = F ? "​" : G, H = F ? "show-placeholder" : "", ee = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", re = e.tooltip && F ? "" : "hidden", d = `<span contenteditable="true" data-type="variable" data-key="${B}" data-multi-key="${e.key}" data-index="${E}" data-placeholder="${e.placeholder || ""}"${ee} class="variable-chip ${H}">${W}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${re}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1182
- E === 0 ? V += `<span ${x} class="exclusion-wrapper required-upload-group required-multi-first">${v}${d}</span>` : V += d;
1186
+ const B = `${e.key}_${E}`, R = d[B] || "", F = !R, W = F ? "​" : R, H = F ? "show-placeholder" : "", ee = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", ae = e.tooltip && F ? "" : "hidden", p = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", u = `<span contenteditable="true" data-type="variable" data-key="${B}" data-multi-key="${e.key}" data-index="${E}" data-placeholder="${e.placeholder || ""}"${p}${ee} class="variable-chip ${H}">${W}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${ae}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1187
+ E === 0 ? V += `<span ${x} class="exclusion-wrapper required-upload-group required-multi-first">${v}${u}</span>` : V += u;
1183
1188
  }
1184
1189
  o = V;
1185
1190
  } else {
1186
1191
  let v = "";
1187
1192
  for (let x = 0; x < m; x++) {
1188
- const V = `${e.key}_${x}`, E = u[V] || "", B = !E, G = B ? "​" : E, F = B ? "show-placeholder" : "", W = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", H = e.tooltip && B ? "" : "hidden", ee = `<span contenteditable="true" data-type="variable" data-key="${V}" data-multi-key="${e.key}" data-index="${x}" data-placeholder="${e.placeholder || ""}"${W} class="variable-chip ${F}">${G}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${H}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1189
- v += ee;
1193
+ const V = `${e.key}_${x}`, E = d[V] || "", B = !E, R = B ? "​" : E, F = B ? "show-placeholder" : "", W = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", H = e.tooltip && B ? "" : "hidden", ee = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", ae = `<span contenteditable="true" data-type="variable" data-key="${V}" data-multi-key="${e.key}" data-index="${x}" data-placeholder="${e.placeholder || ""}"${ee}${W} class="variable-chip ${F}">${R}${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi variable-info-icon ${H}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" title="提示"></i>` : ""}</span>`;
1194
+ v += ae;
1190
1195
  }
1191
1196
  o = v;
1192
1197
  }
@@ -1201,8 +1206,8 @@ function Vt(t, c, l, s, u, C = {}, T) {
1201
1206
  });
1202
1207
  }, 0));
1203
1208
  }
1204
- function Pt(t, c, l, s, u = {}, C, T, w) {
1205
- const k = ae(() => {
1209
+ function Pt(t, c, l, s, d = {}, C, T, w) {
1210
+ const k = re(() => {
1206
1211
  if (!t.current) return;
1207
1212
  if (c.length === 0) {
1208
1213
  t.current.innerHTML = "";
@@ -1245,7 +1250,7 @@ function Pt(t, c, l, s, u = {}, C, T, w) {
1245
1250
  const v = (f.getAttribute("data-value") || "").trim();
1246
1251
  v && (e[m] = v);
1247
1252
  }
1248
- })), Vt(t, c, l, s, e, u, w), C?.current) {
1253
+ })), Vt(t, c, l, s, e, d, w), C?.current) {
1249
1254
  const { key: i, offset: r } = C.current;
1250
1255
  setTimeout(() => {
1251
1256
  if (!t.current) return;
@@ -1287,15 +1292,15 @@ function Pt(t, c, l, s, u = {}, C, T, w) {
1287
1292
  }
1288
1293
  }, 0);
1289
1294
  }
1290
- }, [c, l, s, t, u, C, T, w]);
1295
+ }, [c, l, s, t, d, C, T, w]);
1291
1296
  de(() => {
1292
1297
  k();
1293
1298
  }, [k]);
1294
1299
  }
1295
1300
  function Bt(t, c, l, s) {
1296
1301
  de(() => {
1297
- const u = t.current;
1298
- if (!u) return;
1302
+ const d = t.current;
1303
+ if (!d) return;
1299
1304
  const C = (w) => {
1300
1305
  const k = w.target?.closest(".upload-info-icon");
1301
1306
  if (k && k.classList.contains("upload-info-icon")) {
@@ -1314,7 +1319,7 @@ function Bt(t, c, l, s) {
1314
1319
  }, T = (w) => {
1315
1320
  const k = w.target?.closest(".upload-info-icon"), e = w.relatedTarget;
1316
1321
  if (k && k.classList.contains("upload-info-icon")) {
1317
- !e || !u.contains(e) ? s(null) : e.closest(".upload-info-icon") || s(null);
1322
+ !e || !d.contains(e) ? s(null) : e.closest(".upload-info-icon") || s(null);
1318
1323
  return;
1319
1324
  }
1320
1325
  const q = w.target?.closest('[data-type="upload"]');
@@ -1325,15 +1330,15 @@ function Bt(t, c, l, s) {
1325
1330
  s(null);
1326
1331
  }
1327
1332
  };
1328
- return u.addEventListener("mouseover", C, !0), u.addEventListener("mouseout", T, !0), () => {
1329
- u.removeEventListener("mouseover", C, !0), u.removeEventListener("mouseout", T, !0);
1333
+ return d.addEventListener("mouseover", C, !0), d.addEventListener("mouseout", T, !0), () => {
1334
+ d.removeEventListener("mouseover", C, !0), d.removeEventListener("mouseout", T, !0);
1330
1335
  };
1331
1336
  }, [c, l, t, s]);
1332
1337
  }
1333
1338
  function Ot(t, c, l, s) {
1334
1339
  de(() => {
1335
1340
  if (!t.current) return;
1336
- const u = (k) => {
1341
+ const d = (k) => {
1337
1342
  if (s === "hideTagClose")
1338
1343
  return;
1339
1344
  const e = k.currentTarget, q = e.dataset.tooltip, y = e.dataset.tagKey || "";
@@ -1347,7 +1352,7 @@ function Ot(t, c, l, s) {
1347
1352
  t.current.querySelectorAll(
1348
1353
  ".tag-node[data-tooltip]"
1349
1354
  ).forEach((e) => {
1350
- e.addEventListener("mouseenter", u), e.addEventListener("mouseleave", C);
1355
+ e.addEventListener("mouseenter", d), e.addEventListener("mouseleave", C);
1351
1356
  });
1352
1357
  };
1353
1358
  return T = requestAnimationFrame(() => {
@@ -1356,7 +1361,7 @@ function Ot(t, c, l, s) {
1356
1361
  cancelAnimationFrame(T), t.current && t.current.querySelectorAll(
1357
1362
  ".tag-node[data-tooltip]"
1358
1363
  ).forEach((e) => {
1359
- e.removeEventListener("mouseenter", u), e.removeEventListener("mouseleave", C);
1364
+ e.removeEventListener("mouseenter", d), e.removeEventListener("mouseleave", C);
1360
1365
  });
1361
1366
  };
1362
1367
  }, [c, t, l, s]);
@@ -1365,7 +1370,7 @@ function Ht(t, c, l) {
1365
1370
  de(() => {
1366
1371
  const s = t.current;
1367
1372
  if (!s) return;
1368
- const u = (T) => {
1373
+ const d = (T) => {
1369
1374
  const w = T.target?.closest(".variable-info-icon");
1370
1375
  if (w && w.classList.contains("variable-info-icon")) {
1371
1376
  const k = w.dataset.variableKey;
@@ -1375,15 +1380,15 @@ function Ht(t, c, l) {
1375
1380
  const w = T.target?.closest(".variable-info-icon"), k = T.relatedTarget;
1376
1381
  w && w.classList.contains("variable-info-icon") && (!k || !s.contains(k) ? l(null) : k.closest(".variable-info-icon") || l(null));
1377
1382
  };
1378
- return s.addEventListener("mouseover", u, !0), s.addEventListener("mouseout", C, !0), () => {
1379
- s.removeEventListener("mouseover", u, !0), s.removeEventListener("mouseout", C, !0);
1383
+ return s.addEventListener("mouseover", d, !0), s.addEventListener("mouseout", C, !0), () => {
1384
+ s.removeEventListener("mouseover", d, !0), s.removeEventListener("mouseout", C, !0);
1380
1385
  };
1381
1386
  }, [c, t, l]);
1382
1387
  }
1383
- function Rt(t, c, l, s) {
1388
+ function Gt(t, c, l, s) {
1384
1389
  de(() => {
1385
1390
  if (!t.current) return;
1386
- const u = (k) => {
1391
+ const d = (k) => {
1387
1392
  const e = k.currentTarget;
1388
1393
  e.dataset.fileName && s({ key: "", anchorEl: e, type: "upload-label" });
1389
1394
  }, C = () => {
@@ -1395,7 +1400,7 @@ function Rt(t, c, l, s) {
1395
1400
  t.current.querySelectorAll(
1396
1401
  ".upload-label[data-file-name]"
1397
1402
  ).forEach((e) => {
1398
- e.addEventListener("mouseenter", u), e.addEventListener("mouseleave", C);
1403
+ e.addEventListener("mouseenter", d), e.addEventListener("mouseleave", C);
1399
1404
  });
1400
1405
  };
1401
1406
  return T = requestAnimationFrame(() => {
@@ -1404,28 +1409,28 @@ function Rt(t, c, l, s) {
1404
1409
  cancelAnimationFrame(T), t.current && t.current.querySelectorAll(
1405
1410
  ".upload-label[data-file-name]"
1406
1411
  ).forEach((e) => {
1407
- e.removeEventListener("mouseenter", u), e.removeEventListener("mouseleave", C);
1412
+ e.removeEventListener("mouseenter", d), e.removeEventListener("mouseleave", C);
1408
1413
  });
1409
1414
  };
1410
1415
  }, [c, l, t, s]);
1411
1416
  }
1412
- function Gt(t, c, l, s) {
1417
+ function Rt(t, c, l, s) {
1413
1418
  de(() => {
1414
- const u = setTimeout(() => {
1419
+ const d = setTimeout(() => {
1415
1420
  Oe(t, c, l), He(t, c, l, s);
1416
1421
  }, 0);
1417
- return () => clearTimeout(u);
1422
+ return () => clearTimeout(d);
1418
1423
  }, [l, c, t, s]);
1419
1424
  }
1420
1425
  function Ft(t, c) {
1421
1426
  const l = Q(0);
1422
1427
  de(() => {
1423
1428
  if (!t.current) return;
1424
- let s = !1, u = 0;
1429
+ let s = !1, d = 0;
1425
1430
  const C = (a) => a instanceof HTMLElement ? !!(a.closest(".rte-datepicker-wrapper") || a.closest(".rte-datepicker-host") || a.closest(".ant-picker") || a.closest(".ant-picker-dropdown")) : !1, T = (a) => {
1426
1431
  s = !0, C(a.target) && (l.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target"));
1427
1432
  }, w = () => {
1428
- s = !1, u = Date.now();
1433
+ s = !1, d = Date.now();
1429
1434
  };
1430
1435
  let k = !1, e = 0;
1431
1436
  const q = () => {
@@ -1469,19 +1474,19 @@ function Ft(t, c) {
1469
1474
  return;
1470
1475
  let V = null;
1471
1476
  if (v.nodeType === Node.ELEMENT_NODE ? V = v.closest('[data-type="variable"]') : v.nodeType === Node.TEXT_NODE && v.parentElement && (V = v.parentElement.closest('[data-type="variable"]')), !V) {
1472
- if (Date.now() - u > 500)
1477
+ if (Date.now() - d > 500)
1473
1478
  return;
1474
1479
  const E = t.current.querySelectorAll('[data-type="variable"]');
1475
1480
  if (E.length > 0) {
1476
1481
  let B = null;
1477
- for (const G of Array.from(E))
1478
- if (G.style.display !== "none") {
1479
- B = G;
1482
+ for (const R of Array.from(E))
1483
+ if (R.style.display !== "none") {
1484
+ B = R;
1480
1485
  break;
1481
1486
  }
1482
1487
  if (!B && E.length > 0 && (B = E[0]), B) {
1483
- const G = document.createRange();
1484
- G.selectNodeContents(B), G.collapse(!1), f.removeAllRanges(), f.addRange(G), B.focus();
1488
+ const R = document.createRange();
1489
+ R.selectNodeContents(B), R.collapse(!1), f.removeAllRanges(), f.addRange(R), B.focus();
1485
1490
  } else
1486
1491
  f.removeAllRanges();
1487
1492
  } else
@@ -1503,56 +1508,56 @@ function nt() {
1503
1508
  (function(l, s) {
1504
1509
  t.exports = s();
1505
1510
  })(zt, function() {
1506
- var l = 1e3, s = 6e4, u = 36e5, C = "millisecond", T = "second", w = "minute", k = "hour", e = "day", q = "week", y = "month", i = "quarter", r = "year", n = "date", o = "Invalid Date", a = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, f = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(d) {
1507
- var p = ["th", "st", "nd", "rd"], b = d % 100;
1508
- return "[" + d + (p[(b - 20) % 10] || p[b] || p[0]) + "]";
1509
- } }, v = function(d, p, b) {
1510
- var L = String(d);
1511
- return !L || L.length >= p ? d : "" + Array(p + 1 - L.length).join(b) + d;
1512
- }, x = { s: v, z: function(d) {
1513
- var p = -d.utcOffset(), b = Math.abs(p), L = Math.floor(b / 60), N = b % 60;
1514
- return (p <= 0 ? "+" : "-") + v(L, 2, "0") + ":" + v(N, 2, "0");
1515
- }, m: function d(p, b) {
1516
- if (p.date() < b.date()) return -d(b, p);
1517
- var L = 12 * (b.year() - p.year()) + (b.month() - p.month()), N = p.clone().add(L, y), z = b - N < 0, Y = p.clone().add(L + (z ? -1 : 1), y);
1511
+ var l = 1e3, s = 6e4, d = 36e5, C = "millisecond", T = "second", w = "minute", k = "hour", e = "day", q = "week", y = "month", i = "quarter", r = "year", n = "date", o = "Invalid Date", a = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, f = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(p) {
1512
+ var u = ["th", "st", "nd", "rd"], b = p % 100;
1513
+ return "[" + p + (u[(b - 20) % 10] || u[b] || u[0]) + "]";
1514
+ } }, v = function(p, u, b) {
1515
+ var L = String(p);
1516
+ return !L || L.length >= u ? p : "" + Array(u + 1 - L.length).join(b) + p;
1517
+ }, x = { s: v, z: function(p) {
1518
+ var u = -p.utcOffset(), b = Math.abs(u), L = Math.floor(b / 60), N = b % 60;
1519
+ return (u <= 0 ? "+" : "-") + v(L, 2, "0") + ":" + v(N, 2, "0");
1520
+ }, m: function p(u, b) {
1521
+ if (u.date() < b.date()) return -p(b, u);
1522
+ var L = 12 * (b.year() - u.year()) + (b.month() - u.month()), N = u.clone().add(L, y), z = b - N < 0, Y = u.clone().add(L + (z ? -1 : 1), y);
1518
1523
  return +(-(L + (b - N) / (z ? N - Y : Y - N)) || 0);
1519
- }, a: function(d) {
1520
- return d < 0 ? Math.ceil(d) || 0 : Math.floor(d);
1521
- }, p: function(d) {
1522
- return { M: y, y: r, w: q, d: e, D: n, h: k, m: w, s: T, ms: C, Q: i }[d] || String(d || "").toLowerCase().replace(/s$/, "");
1523
- }, u: function(d) {
1524
- return d === void 0;
1524
+ }, a: function(p) {
1525
+ return p < 0 ? Math.ceil(p) || 0 : Math.floor(p);
1526
+ }, p: function(p) {
1527
+ return { M: y, y: r, w: q, d: e, D: n, h: k, m: w, s: T, ms: C, Q: i }[p] || String(p || "").toLowerCase().replace(/s$/, "");
1528
+ }, u: function(p) {
1529
+ return p === void 0;
1525
1530
  } }, V = "en", E = {};
1526
1531
  E[V] = m;
1527
- var B = "$isDayjsObject", G = function(d) {
1528
- return d instanceof ee || !(!d || !d[B]);
1529
- }, F = function d(p, b, L) {
1532
+ var B = "$isDayjsObject", R = function(p) {
1533
+ return p instanceof ee || !(!p || !p[B]);
1534
+ }, F = function p(u, b, L) {
1530
1535
  var N;
1531
- if (!p) return V;
1532
- if (typeof p == "string") {
1533
- var z = p.toLowerCase();
1536
+ if (!u) return V;
1537
+ if (typeof u == "string") {
1538
+ var z = u.toLowerCase();
1534
1539
  E[z] && (N = z), b && (E[z] = b, N = z);
1535
- var Y = p.split("-");
1536
- if (!N && Y.length > 1) return d(Y[0]);
1540
+ var Y = u.split("-");
1541
+ if (!N && Y.length > 1) return p(Y[0]);
1537
1542
  } else {
1538
- var te = p.name;
1539
- E[te] = p, N = te;
1543
+ var te = u.name;
1544
+ E[te] = u, N = te;
1540
1545
  }
1541
1546
  return !L && N && (V = N), N || !L && V;
1542
- }, W = function(d, p) {
1543
- if (G(d)) return d.clone();
1544
- var b = typeof p == "object" ? p : {};
1545
- return b.date = d, b.args = arguments, new ee(b);
1547
+ }, W = function(p, u) {
1548
+ if (R(p)) return p.clone();
1549
+ var b = typeof u == "object" ? u : {};
1550
+ return b.date = p, b.args = arguments, new ee(b);
1546
1551
  }, H = x;
1547
- H.l = F, H.i = G, H.w = function(d, p) {
1548
- return W(d, { locale: p.$L, utc: p.$u, x: p.$x, $offset: p.$offset });
1552
+ H.l = F, H.i = R, H.w = function(p, u) {
1553
+ return W(p, { locale: u.$L, utc: u.$u, x: u.$x, $offset: u.$offset });
1549
1554
  };
1550
1555
  var ee = function() {
1551
- function d(b) {
1556
+ function p(b) {
1552
1557
  this.$L = F(b.locale, null, !0), this.parse(b), this.$x = this.$x || b.x || {}, this[B] = !0;
1553
1558
  }
1554
- var p = d.prototype;
1555
- return p.parse = function(b) {
1559
+ var u = p.prototype;
1560
+ return u.parse = function(b) {
1556
1561
  this.$d = function(L) {
1557
1562
  var N = L.date, z = L.utc;
1558
1563
  if (N === null) return /* @__PURE__ */ new Date(NaN);
@@ -1567,27 +1572,27 @@ function nt() {
1567
1572
  }
1568
1573
  return new Date(N);
1569
1574
  }(b), this.init();
1570
- }, p.init = function() {
1575
+ }, u.init = function() {
1571
1576
  var b = this.$d;
1572
1577
  this.$y = b.getFullYear(), this.$M = b.getMonth(), this.$D = b.getDate(), this.$W = b.getDay(), this.$H = b.getHours(), this.$m = b.getMinutes(), this.$s = b.getSeconds(), this.$ms = b.getMilliseconds();
1573
- }, p.$utils = function() {
1578
+ }, u.$utils = function() {
1574
1579
  return H;
1575
- }, p.isValid = function() {
1580
+ }, u.isValid = function() {
1576
1581
  return this.$d.toString() !== o;
1577
- }, p.isSame = function(b, L) {
1582
+ }, u.isSame = function(b, L) {
1578
1583
  var N = W(b);
1579
1584
  return this.startOf(L) <= N && N <= this.endOf(L);
1580
- }, p.isAfter = function(b, L) {
1585
+ }, u.isAfter = function(b, L) {
1581
1586
  return W(b) < this.startOf(L);
1582
- }, p.isBefore = function(b, L) {
1587
+ }, u.isBefore = function(b, L) {
1583
1588
  return this.endOf(L) < W(b);
1584
- }, p.$g = function(b, L, N) {
1589
+ }, u.$g = function(b, L, N) {
1585
1590
  return H.u(b) ? this[L] : this.set(N, b);
1586
- }, p.unix = function() {
1591
+ }, u.unix = function() {
1587
1592
  return Math.floor(this.valueOf() / 1e3);
1588
- }, p.valueOf = function() {
1593
+ }, u.valueOf = function() {
1589
1594
  return this.$d.getTime();
1590
- }, p.startOf = function(b, L) {
1595
+ }, u.startOf = function(b, L) {
1591
1596
  var N = this, z = !!H.u(L) || L, Y = H.p(b), te = function(he, ye) {
1592
1597
  var xe = H.w(N.$u ? Date.UTC(N.$y, ye, he) : new Date(N.$y, ye, he), N);
1593
1598
  return z ? xe : xe.endOf(e);
@@ -1614,20 +1619,20 @@ function nt() {
1614
1619
  default:
1615
1620
  return this.clone();
1616
1621
  }
1617
- }, p.endOf = function(b) {
1622
+ }, u.endOf = function(b) {
1618
1623
  return this.startOf(b, !1);
1619
- }, p.$set = function(b, L) {
1624
+ }, u.$set = function(b, L) {
1620
1625
  var N, z = H.p(b), Y = "set" + (this.$u ? "UTC" : ""), te = (N = {}, N[e] = Y + "Date", N[n] = Y + "Date", N[y] = Y + "Month", N[r] = Y + "FullYear", N[k] = Y + "Hours", N[w] = Y + "Minutes", N[T] = Y + "Seconds", N[C] = Y + "Milliseconds", N)[z], se = z === e ? this.$D + (L - this.$W) : L;
1621
1626
  if (z === y || z === r) {
1622
1627
  var ce = this.clone().set(n, 1);
1623
1628
  ce.$d[te](se), ce.init(), this.$d = ce.set(n, Math.min(this.$D, ce.daysInMonth())).$d;
1624
1629
  } else te && this.$d[te](se);
1625
1630
  return this.init(), this;
1626
- }, p.set = function(b, L) {
1631
+ }, u.set = function(b, L) {
1627
1632
  return this.clone().$set(b, L);
1628
- }, p.get = function(b) {
1633
+ }, u.get = function(b) {
1629
1634
  return this[H.p(b)]();
1630
- }, p.add = function(b, L) {
1635
+ }, u.add = function(b, L) {
1631
1636
  var N, z = this;
1632
1637
  b = Number(b);
1633
1638
  var Y = H.p(L), te = function(pe) {
@@ -1638,11 +1643,11 @@ function nt() {
1638
1643
  if (Y === r) return this.set(r, this.$y + b);
1639
1644
  if (Y === e) return te(1);
1640
1645
  if (Y === q) return te(7);
1641
- var se = (N = {}, N[w] = s, N[k] = u, N[T] = l, N)[Y] || 1, ce = this.$d.getTime() + b * se;
1646
+ var se = (N = {}, N[w] = s, N[k] = d, N[T] = l, N)[Y] || 1, ce = this.$d.getTime() + b * se;
1642
1647
  return H.w(ce, this);
1643
- }, p.subtract = function(b, L) {
1648
+ }, u.subtract = function(b, L) {
1644
1649
  return this.add(-1 * b, L);
1645
- }, p.format = function(b) {
1650
+ }, u.format = function(b) {
1646
1651
  var L = this, N = this.$locale();
1647
1652
  if (!this.isValid()) return N.invalidDate || o;
1648
1653
  var z = b || "YYYY-MM-DDTHH:mm:ssZ", Y = H.z(this), te = this.$H, se = this.$m, ce = this.$M, pe = N.weekdays, fe = N.months, be = N.meridiem, X = function(ye, xe, we, Ce) {
@@ -1708,9 +1713,9 @@ function nt() {
1708
1713
  return null;
1709
1714
  }(ye) || Y.replace(":", "");
1710
1715
  });
1711
- }, p.utcOffset = function() {
1716
+ }, u.utcOffset = function() {
1712
1717
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1713
- }, p.diff = function(b, L, N) {
1718
+ }, u.diff = function(b, L, N) {
1714
1719
  var z, Y = this, te = H.p(L), se = W(b), ce = (se.utcOffset() - this.utcOffset()) * s, pe = this - se, fe = function() {
1715
1720
  return H.m(Y, se);
1716
1721
  };
@@ -1731,7 +1736,7 @@ function nt() {
1731
1736
  z = (pe - ce) / 864e5;
1732
1737
  break;
1733
1738
  case k:
1734
- z = pe / u;
1739
+ z = pe / d;
1735
1740
  break;
1736
1741
  case w:
1737
1742
  z = pe / s;
@@ -1743,34 +1748,34 @@ function nt() {
1743
1748
  z = pe;
1744
1749
  }
1745
1750
  return N ? z : H.a(z);
1746
- }, p.daysInMonth = function() {
1751
+ }, u.daysInMonth = function() {
1747
1752
  return this.endOf(y).$D;
1748
- }, p.$locale = function() {
1753
+ }, u.$locale = function() {
1749
1754
  return E[this.$L];
1750
- }, p.locale = function(b, L) {
1755
+ }, u.locale = function(b, L) {
1751
1756
  if (!b) return this.$L;
1752
1757
  var N = this.clone(), z = F(b, L, !0);
1753
1758
  return z && (N.$L = z), N;
1754
- }, p.clone = function() {
1759
+ }, u.clone = function() {
1755
1760
  return H.w(this.$d, this);
1756
- }, p.toDate = function() {
1761
+ }, u.toDate = function() {
1757
1762
  return new Date(this.valueOf());
1758
- }, p.toJSON = function() {
1763
+ }, u.toJSON = function() {
1759
1764
  return this.isValid() ? this.toISOString() : null;
1760
- }, p.toISOString = function() {
1765
+ }, u.toISOString = function() {
1761
1766
  return this.$d.toISOString();
1762
- }, p.toString = function() {
1767
+ }, u.toString = function() {
1763
1768
  return this.$d.toUTCString();
1764
- }, d;
1765
- }(), re = ee.prototype;
1766
- return W.prototype = re, [["$ms", C], ["$s", T], ["$m", w], ["$H", k], ["$W", e], ["$M", y], ["$y", r], ["$D", n]].forEach(function(d) {
1767
- re[d[1]] = function(p) {
1768
- return this.$g(p, d[0], d[1]);
1769
+ }, p;
1770
+ }(), ae = ee.prototype;
1771
+ return W.prototype = ae, [["$ms", C], ["$s", T], ["$m", w], ["$H", k], ["$W", e], ["$M", y], ["$y", r], ["$D", n]].forEach(function(p) {
1772
+ ae[p[1]] = function(u) {
1773
+ return this.$g(u, p[0], p[1]);
1769
1774
  };
1770
- }), W.extend = function(d, p) {
1771
- return d.$i || (d(p, ee, W), d.$i = !0), W;
1772
- }, W.locale = F, W.isDayjs = G, W.unix = function(d) {
1773
- return W(1e3 * d);
1775
+ }), W.extend = function(p, u) {
1776
+ return p.$i || (p(u, ee, W), p.$i = !0), W;
1777
+ }, W.locale = F, W.isDayjs = R, W.unix = function(p) {
1778
+ return W(1e3 * p);
1774
1779
  }, W.en = E[V], W.Ls = E, W.p = {}, W;
1775
1780
  });
1776
1781
  }(Me)), Me.exports;
@@ -1786,13 +1791,13 @@ function Ut() {
1786
1791
  function s(T) {
1787
1792
  return T && typeof T == "object" && "default" in T ? T : { default: T };
1788
1793
  }
1789
- var u = s(l), C = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(T, w) {
1794
+ var d = s(l), C = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(T, w) {
1790
1795
  return w === "W" ? T + "周" : T + "日";
1791
1796
  }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(T, w) {
1792
1797
  var k = 100 * T + w;
1793
1798
  return k < 600 ? "凌晨" : k < 900 ? "早上" : k < 1100 ? "上午" : k < 1300 ? "中午" : k < 1800 ? "下午" : "晚上";
1794
1799
  } };
1795
- return u.default.locale(C, null, !0), C;
1800
+ return d.default.locale(C, null, !0), C;
1796
1801
  });
1797
1802
  }(Ve)), Ve.exports;
1798
1803
  }
@@ -1831,8 +1836,8 @@ function Xe(t, c) {
1831
1836
  var l = Object.keys(t);
1832
1837
  if (Object.getOwnPropertySymbols) {
1833
1838
  var s = Object.getOwnPropertySymbols(t);
1834
- c && (s = s.filter(function(u) {
1835
- return Object.getOwnPropertyDescriptor(t, u).enumerable;
1839
+ c && (s = s.filter(function(d) {
1840
+ return Object.getOwnPropertyDescriptor(t, d).enumerable;
1836
1841
  })), l.push.apply(l, s);
1837
1842
  }
1838
1843
  return l;
@@ -1902,7 +1907,7 @@ const en = {
1902
1907
  at.lang.ok = "确定";
1903
1908
  Ie.locale("zh-cn");
1904
1909
  const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1905
- const l = t.dataset.key, s = t.dataset.value, u = t.dataset.placeholder, C = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, T = t.dataset.disableFuture === "true", [w, k] = ne(() => {
1910
+ const l = t.dataset.key, s = t.dataset.value, d = t.dataset.placeholder, C = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, T = t.dataset.disableFuture === "true", [w, k] = ne(() => {
1906
1911
  if (!s) return null;
1907
1912
  const o = s.split(",");
1908
1913
  return o.length === 2 && o[0] && o[1] ? [Ie(o[0]), Ie(o[1])] : null;
@@ -1926,7 +1931,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1926
1931
  onOpenChange: (o) => {
1927
1932
  console.log("[DatePicker] onOpenChange", o), q(o ? w : null);
1928
1933
  },
1929
- placeholder: [u || "开始日期", u || "结束日期"],
1934
+ placeholder: [d || "开始日期", d || "结束日期"],
1930
1935
  style: { width: "100%" },
1931
1936
  size: "small",
1932
1937
  allowClear: !0,
@@ -1942,7 +1947,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1942
1947
  return de(() => {
1943
1948
  const s = t.current;
1944
1949
  if (!s) return;
1945
- const u = () => {
1950
+ const d = () => {
1946
1951
  const T = s.querySelectorAll(".rte-datepicker-host"), w = [];
1947
1952
  T.forEach((k) => {
1948
1953
  const e = k.getAttribute("data-key");
@@ -1963,7 +1968,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1963
1968
  );
1964
1969
  }), l(w);
1965
1970
  };
1966
- u();
1971
+ d();
1967
1972
  const C = new MutationObserver((T) => {
1968
1973
  let w = !1;
1969
1974
  for (const k of T)
@@ -1984,7 +1989,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1984
1989
  break;
1985
1990
  }
1986
1991
  }
1987
- w && u();
1992
+ w && d();
1988
1993
  });
1989
1994
  return C.observe(s, { childList: !0, subtree: !0 }), () => C.disconnect();
1990
1995
  }, [t]), c;
@@ -1993,7 +1998,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
1993
1998
  onSend: c,
1994
1999
  isProcessing: l = !1,
1995
2000
  disabled: s = !1,
1996
- width: u,
2001
+ width: d,
1997
2002
  lockStructure: C = !1,
1998
2003
  agentOptions: T = [],
1999
2004
  onAgentSelect: w,
@@ -2004,63 +2009,63 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2004
2009
  background: i = "transparent",
2005
2010
  hideButtons: r
2006
2011
  }) => {
2007
- const n = Q(null), o = Q(null), [a, f] = ne({}), [m, v] = ne(null), [x, V] = ne(null), E = Q(!1), B = Q(null), [G, F] = ne(!1), W = Q(null), [H, ee] = ne(!0), [re, d] = ne(() => {
2012
+ const n = Q(null), o = Q(null), [a, f] = ne({}), [m, v] = ne(null), [x, V] = ne(null), E = Q(!1), B = Q(null), [R, F] = ne(!1), W = Q(null), [H, ee] = ne(!0), [ae, p] = ne(() => {
2008
2013
  const g = {};
2009
2014
  return t.forEach((h) => {
2010
2015
  h.type === "multi-variable" && h.key && (g[h.key] = 1);
2011
2016
  }), g;
2012
- }), p = Q({}), b = Q({}), L = Q({});
2017
+ }), u = Q({}), b = Q({}), L = Q({});
2013
2018
  de(() => {
2014
2019
  b.current = a;
2015
2020
  }, [a]), de(() => {
2016
- L.current = re;
2017
- }, [re]);
2018
- const N = ae((g) => g.find((S) => S.type === "tag")?.text || null, []), z = Q(t), Y = Q(null);
2021
+ L.current = ae;
2022
+ }, [ae]);
2023
+ const N = re((g) => g.find((S) => S.type === "tag")?.text || null, []), z = Q(t), Y = Q(null);
2019
2024
  de(() => {
2020
2025
  const g = N(z.current), h = N(t);
2021
2026
  if (g && g !== h && n.current) {
2022
2027
  const S = {};
2023
2028
  n.current.querySelectorAll('[data-type="variable"]').forEach((_) => {
2024
- const R = _.dataset.key;
2025
- if (R) {
2029
+ const G = _.dataset.key;
2030
+ if (G) {
2026
2031
  const M = _.innerText.replace(/[\u200B\n]/g, "").trim();
2027
- M && (S[R] = M);
2032
+ M && (S[G] = M);
2028
2033
  }
2029
2034
  }), n.current.querySelectorAll('[data-type="select"]').forEach((_) => {
2030
- const R = _.dataset.key;
2031
- if (R) {
2035
+ const G = _.dataset.key;
2036
+ if (G) {
2032
2037
  const M = _.value.trim();
2033
- M && (S[R] = M);
2038
+ M && (S[G] = M);
2034
2039
  }
2035
2040
  }), n.current.querySelectorAll('[data-type="textarea"]').forEach((_) => {
2036
- const R = _.dataset.key;
2037
- if (R) {
2041
+ const G = _.dataset.key;
2042
+ if (G) {
2038
2043
  const M = _.value.replace(/[\u200B]/g, "").trim();
2039
- M && (S[R] = M);
2044
+ M && (S[G] = M);
2040
2045
  }
2041
- }), p.current[g] = {
2046
+ }), u.current[g] = {
2042
2047
  variableValues: S,
2043
2048
  files: { ...b.current },
2044
2049
  multiVariableCounts: { ...L.current }
2045
2050
  };
2046
2051
  }
2047
- if (h && p.current[h]) {
2048
- const S = p.current[h];
2049
- Y.current = S, f(S.files), d(S.multiVariableCounts);
2052
+ if (h && u.current[h]) {
2053
+ const S = u.current[h];
2054
+ Y.current = S, f(S.files), p(S.multiVariableCounts);
2050
2055
  } else if (h) {
2051
2056
  Y.current = null;
2052
2057
  const S = {};
2053
2058
  t.forEach((I) => {
2054
2059
  I.type === "multi-variable" && I.key && (S[I.key] = 1);
2055
- }), d(S), f({});
2060
+ }), p(S), f({});
2056
2061
  } else
2057
- Y.current = null, d({}), f({});
2062
+ Y.current = null, p({}), f({});
2058
2063
  z.current = t;
2059
2064
  }, [t, N]), je(() => {
2060
2065
  Y.current && n.current && (n.current.__tempVariableValues = Y.current.variableValues, setTimeout(() => {
2061
2066
  Y.current && (Y.current = null);
2062
2067
  }, 0));
2063
- }), Pt(n, t, a, C, re, W, void 0, r), Bt(n, t, a, V), Ot(n, t, V, r), Rt(n, t, a, V), Ht(n, t, V), Gt(n, t, a, F), Ft(n, E);
2068
+ }), Pt(n, t, a, C, ae, W, void 0, r), Bt(n, t, a, V), Ot(n, t, V, r), Gt(n, t, a, V), Ht(n, t, V), Rt(n, t, a, F), Ft(n, E);
2064
2069
  const te = an(n);
2065
2070
  de(() => {
2066
2071
  if (t.length > 0) {
@@ -2074,10 +2079,10 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2074
2079
  }
2075
2080
  const S = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", I = n.current.querySelectorAll('[data-type="variable"]'), A = n.current.querySelectorAll('[data-type="upload"]');
2076
2081
  let D = !1;
2077
- I.forEach((R) => {
2078
- (R.textContent?.replace(/[\u200B\n]/g, "").trim() || "") && (D = !0);
2079
- }), A.forEach((R) => {
2080
- R.querySelector(".upload-inner-wrapper.has-file") && (D = !0);
2082
+ I.forEach((G) => {
2083
+ (G.textContent?.replace(/[\u200B\n]/g, "").trim() || "") && (D = !0);
2084
+ }), A.forEach((G) => {
2085
+ G.querySelector(".upload-inner-wrapper.has-file") && (D = !0);
2081
2086
  });
2082
2087
  const _ = !S && !D;
2083
2088
  ee(_), t.length === 0 && F(!_);
@@ -2106,10 +2111,10 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2106
2111
  if (I.nodeType === Node.ELEMENT_NODE ? A = I.closest('[data-type="variable"]') : I.nodeType === Node.TEXT_NODE && I.parentElement && (A = I.parentElement.closest('[data-type="variable"]')), A) {
2107
2112
  const D = A.dataset.multiKey;
2108
2113
  if (D) {
2109
- const _ = /[、,,\s\n\r\t]+/, R = h.split(_).map((M) => M.trim()).filter((M) => M.length > 0);
2110
- if (console.log("[Paste Event] 粘贴的内容:", h), console.log("[Paste Event] 拆分后的值:", R), R.length > 1) {
2111
- const M = parseInt(A.dataset.index || "0", 10), j = t.find((ie) => ie.type === "multi-variable" && ie.key === D)?.maxCount || 9, U = re[D] || 1, P = Math.min(M + R.length, j);
2112
- P > U && d((J) => ({
2114
+ const _ = /[、,,\s\n\r\t]+/, G = h.split(_).map((M) => M.trim()).filter((M) => M.length > 0);
2115
+ if (console.log("[Paste Event] 粘贴的内容:", h), console.log("[Paste Event] 拆分后的值:", G), G.length > 1) {
2116
+ const M = parseInt(A.dataset.index || "0", 10), j = t.find((ie) => ie.type === "multi-variable" && ie.key === D)?.maxCount || 9, U = ae[D] || 1, P = Math.min(M + G.length, j);
2117
+ P > U && p((J) => ({
2113
2118
  ...J,
2114
2119
  [D]: P
2115
2120
  }));
@@ -2123,7 +2128,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2123
2128
  K.push(ke);
2124
2129
  }
2125
2130
  }
2126
- K.splice(M, 1, ...R.slice(0, j - M));
2131
+ K.splice(M, 1, ...G.slice(0, j - M));
2127
2132
  const oe = K.slice(0, j);
2128
2133
  oe.length > 0 && oe[oe.length - 1] !== "" && oe.length < j && oe.push("");
2129
2134
  const O = Math.max(oe.length, 1), le = {};
@@ -2137,12 +2142,12 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2137
2142
  const ke = J.innerText.replace(/[\u200B\n]/g, "").trim();
2138
2143
  ke && (le[ie] = ke);
2139
2144
  }
2140
- }), n.current.__tempVariableValues = le, d((J) => ({
2145
+ }), n.current.__tempVariableValues = le, p((J) => ({
2141
2146
  ...J,
2142
2147
  [D]: O
2143
2148
  })), console.log("[Paste Event] 粘贴完成,已填充到多个输入框,值:", oe);
2144
2149
  return;
2145
- } else R.length === 1 && console.log("[Paste Event] 粘贴单个值,将在失去焦点时检查是否需要拆分");
2150
+ } else G.length === 1 && console.log("[Paste Event] 粘贴单个值,将在失去焦点时检查是否需要拆分");
2146
2151
  }
2147
2152
  }
2148
2153
  }
@@ -2297,10 +2302,10 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2297
2302
  if (I) {
2298
2303
  const A = document.createRange(), D = S.textContent || "";
2299
2304
  if (D.replace(/\u200B/g, "")) {
2300
- let R = 0, M = D.length;
2301
- D.startsWith("​") && (R = 1), D.endsWith("​") && D.length > 1 && (M = D.length - 1);
2305
+ let G = 0, M = D.length;
2306
+ D.startsWith("​") && (G = 1), D.endsWith("​") && D.length > 1 && (M = D.length - 1);
2302
2307
  const j = S.firstChild;
2303
- j && j.nodeType === Node.TEXT_NODE ? (A.setStart(j, R), A.setEnd(j, M)) : A.selectNodeContents(S);
2308
+ j && j.nodeType === Node.TEXT_NODE ? (A.setStart(j, G), A.setEnd(j, M)) : A.selectNodeContents(S);
2304
2309
  } else
2305
2310
  A.selectNodeContents(S), A.collapse(!0);
2306
2311
  I.removeAllRanges(), I.addRange(A);
@@ -2335,7 +2340,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2335
2340
  }), Oe(n, t, a), He(n, t, a, F), !n.current) return;
2336
2341
  t.filter((h) => h.type === "multi-variable" && h.key).forEach((h) => {
2337
2342
  if (!h.key) return;
2338
- const S = h.maxCount || 9, I = re[h.key] || 1, A = [];
2343
+ const S = h.maxCount || 9, I = ae[h.key] || 1, A = [];
2339
2344
  for (let j = 0; j < I; j++) {
2340
2345
  const U = `${h.key}_${j}`, P = n.current.querySelector(
2341
2346
  `[data-type="variable"][data-key="${U}"][data-multi-key="${h.key}"]`
@@ -2346,13 +2351,13 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2346
2351
  }
2347
2352
  }
2348
2353
  const _ = (A[A.length - 1] || "") === "";
2349
- let R = !1, M = -1;
2354
+ let G = !1, M = -1;
2350
2355
  for (let j = 0; j < A.length - 1; j++)
2351
2356
  if (A[j] === "") {
2352
- R = !0, M = j;
2357
+ G = !0, M = j;
2353
2358
  break;
2354
2359
  }
2355
- if (R && M >= 0) {
2360
+ if (G && M >= 0) {
2356
2361
  const j = window.getSelection();
2357
2362
  if (j && j.rangeCount > 0) {
2358
2363
  const O = j.getRangeAt(0), le = O.startContainer, me = le.nodeType === Node.ELEMENT_NODE ? le.closest('[data-type="variable"][data-multi-key]') : le.parentElement?.closest('[data-type="variable"][data-multi-key]');
@@ -2383,7 +2388,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2383
2388
  const J = O.innerText.replace(/[\u200B\n]/g, "").trim();
2384
2389
  J && (P[le] = J);
2385
2390
  }
2386
- }), n.current.__tempVariableValues = P, d((O) => ({
2391
+ }), n.current.__tempVariableValues = P, p((O) => ({
2387
2392
  ...O,
2388
2393
  [h.key]: K
2389
2394
  }));
@@ -2407,7 +2412,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2407
2412
  }
2408
2413
  }
2409
2414
  }
2410
- d((O) => ({
2415
+ p((O) => ({
2411
2416
  ...O,
2412
2417
  [h.key]: I + 1
2413
2418
  }));
@@ -2419,8 +2424,8 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2419
2424
  const g = n.current;
2420
2425
  if (!g) return;
2421
2426
  const h = /* @__PURE__ */ new Map(), S = (D) => {
2422
- const _ = D.target, R = D.relatedTarget;
2423
- !_ || !n.current || !n.current.contains(_) || R && n.current.contains(R) || setTimeout(() => {
2427
+ const _ = D.target, G = D.relatedTarget;
2428
+ !_ || !n.current || !n.current.contains(_) || G && n.current.contains(G) || setTimeout(() => {
2424
2429
  if (n.current) {
2425
2430
  if (t.length === 0) {
2426
2431
  const M = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
@@ -2434,14 +2439,14 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2434
2439
  g.addEventListener("blur", S, !0);
2435
2440
  const I = () => {
2436
2441
  if (!n.current) return;
2437
- h.forEach((R, M) => {
2438
- M.removeEventListener("blur", R, !1);
2442
+ h.forEach((G, M) => {
2443
+ M.removeEventListener("blur", G, !1);
2439
2444
  }), h.clear();
2440
2445
  const D = n.current.querySelectorAll(
2441
2446
  '[data-type="variable"][data-multi-key]'
2442
- ), _ = (R) => {
2443
- R.stopPropagation(), R.stopImmediatePropagation();
2444
- const M = R.target;
2447
+ ), _ = (G) => {
2448
+ G.stopPropagation(), G.stopImmediatePropagation();
2449
+ const M = G.target;
2445
2450
  if (!M || !n.current || !n.current.contains(M))
2446
2451
  return;
2447
2452
  const j = M.closest('[data-type="variable"][data-multi-key]');
@@ -2454,7 +2459,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2454
2459
  return;
2455
2460
  const P = j.dataset.multiKey, K = j.dataset.key, oe = j.dataset.index;
2456
2461
  if (!P || !K || oe === void 0) return;
2457
- const O = R.relatedTarget;
2462
+ const O = G.relatedTarget;
2458
2463
  if (!(!O || !n.current.contains(O)))
2459
2464
  return;
2460
2465
  const me = j.innerText.replace(/[\u200B\n]/g, "").trim();
@@ -2472,7 +2477,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2472
2477
  if (console.log("[Blur Event] 有效的部分(最多9个):", ke), ke.length > 1) {
2473
2478
  const Se = t.find((Ne) => Ne.type === "multi-variable" && Ne.key === P);
2474
2479
  if (Se) {
2475
- const Ne = re[P] || 1, Ye = parseInt(oe, 10), ze = Se.maxCount || 9, Ae = [];
2480
+ const Ne = ae[P] || 1, Ye = parseInt(oe, 10), ze = Se.maxCount || 9, Ae = [];
2476
2481
  for (let ve = 0; ve < Ne; ve++) {
2477
2482
  const Te = `${P}_${ve}`, _e = n.current.querySelector(
2478
2483
  `[data-type="variable"][data-key="${Te}"][data-multi-key="${P}"]`
@@ -2496,7 +2501,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2496
2501
  const Le = ve.innerText.replace(/[\u200B\n]/g, "").trim();
2497
2502
  Le && (Pe[Te] = Le);
2498
2503
  }
2499
- }), n.current.__tempVariableValues = Pe, d((ve) => ({
2504
+ }), n.current.__tempVariableValues = Pe, p((ve) => ({
2500
2505
  ...ve,
2501
2506
  [P]: ot
2502
2507
  }));
@@ -2504,8 +2509,8 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2504
2509
  }
2505
2510
  }
2506
2511
  };
2507
- D.forEach((R) => {
2508
- R.addEventListener("blur", _, !1), h.set(R, _);
2512
+ D.forEach((G) => {
2513
+ G.addEventListener("blur", _, !1), h.set(G, _);
2509
2514
  });
2510
2515
  }, A = setTimeout(() => {
2511
2516
  I();
@@ -2515,7 +2520,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2515
2520
  _.removeEventListener("blur", D, !1);
2516
2521
  }), h.clear();
2517
2522
  };
2518
- }, [t, re, a]);
2523
+ }, [t, ae, a]);
2519
2524
  const xe = (g) => {
2520
2525
  if (s) {
2521
2526
  g.preventDefault();
@@ -2560,8 +2565,8 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2560
2565
  if (S && S.rangeCount > 0) {
2561
2566
  const I = S.getRangeAt(0), A = S.anchorNode;
2562
2567
  if (C) {
2563
- let _ = null, R = null;
2564
- if (A && (A.nodeType === Node.ELEMENT_NODE ? (_ = A.closest(".tag-node"), R = A.closest('[data-type="text"]')) : A.nodeType === Node.TEXT_NODE && A.parentElement && (_ = A.parentElement.closest(".tag-node"), R = A.parentElement.closest('[data-type="text"]'))), (_ || R) && I.collapsed && I.startOffset === 0) {
2568
+ let _ = null, G = null;
2569
+ if (A && (A.nodeType === Node.ELEMENT_NODE ? (_ = A.closest(".tag-node"), G = A.closest('[data-type="text"]')) : A.nodeType === Node.TEXT_NODE && A.parentElement && (_ = A.parentElement.closest(".tag-node"), G = A.parentElement.closest('[data-type="text"]'))), (_ || G) && I.collapsed && I.startOffset === 0) {
2565
2570
  g.preventDefault();
2566
2571
  return;
2567
2572
  }
@@ -2591,7 +2596,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2591
2596
  }
2592
2597
  }
2593
2598
  }, we = () => {
2594
- if (l || s || e || !G || !n.current) return;
2599
+ if (l || s || e || !R || !n.current) return;
2595
2600
  if (t.length === 0) {
2596
2601
  const D = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
2597
2602
  if (!D) return;
@@ -2605,8 +2610,8 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2605
2610
  if (D.nodeType === Node.TEXT_NODE)
2606
2611
  h += (D.textContent || "").replace(/\u200B/g, "");
2607
2612
  else if (D.nodeType === Node.ELEMENT_NODE) {
2608
- const _ = D, R = _.dataset.type, M = _.dataset.key;
2609
- if (R === "variable" && M) {
2613
+ const _ = D, G = _.dataset.type, M = _.dataset.key;
2614
+ if (G === "variable" && M) {
2610
2615
  let j = "";
2611
2616
  const U = document.createTreeWalker(
2612
2617
  _,
@@ -2630,20 +2635,20 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2630
2635
  } else
2631
2636
  S[M] = P, h += P;
2632
2637
  }
2633
- } else if (R === "select" && M) {
2638
+ } else if (G === "select" && M) {
2634
2639
  const j = _, U = (j.value || "").trim();
2635
2640
  if (U) {
2636
2641
  S[M] = U;
2637
2642
  const P = j.selectedOptions?.[0];
2638
2643
  h += P?.textContent || U;
2639
2644
  }
2640
- } else if (R === "textarea" && M) {
2645
+ } else if (G === "textarea" && M) {
2641
2646
  const U = (_.value || "").replace(/\u200B/g, "").trim();
2642
2647
  U && (S[M] = U, h += U);
2643
- } else if (R === "richtext" && M) {
2648
+ } else if (G === "richtext" && M) {
2644
2649
  const U = (_.textContent || "").replace(/\u200B/g, "").trim();
2645
2650
  U && (S[M] = U, h += U);
2646
- } else if (R === "datepicker" && M) {
2651
+ } else if (G === "datepicker" && M) {
2647
2652
  const U = (_.getAttribute("data-value") || "").trim();
2648
2653
  if (U)
2649
2654
  if (U.includes(",")) {
@@ -2651,11 +2656,11 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2651
2656
  P.length === 2 ? (S[M] = P, h += `[${P[0]}, ${P[1]}]`) : (S[M] = U, h += U);
2652
2657
  } else
2653
2658
  S[M] = U, h += U;
2654
- } else if (R === "upload" && M)
2659
+ } else if (G === "upload" && M)
2655
2660
  S[M] = a[M] ?? null, a[M] && (h += ` [附带文件: ${a[M]?.name}] `);
2656
2661
  else {
2657
2662
  if (_.classList.contains("tag-close-btn") || _.classList.contains("file-remove-btn")) return;
2658
- _.getAttribute("contenteditable") === "false" && !R && _.classList.contains("tag-node") ? h += _.innerText : _.childNodes.forEach(I);
2663
+ _.getAttribute("contenteditable") === "false" && !G && _.classList.contains("tag-node") ? h += _.innerText : _.childNodes.forEach(I);
2659
2664
  }
2660
2665
  }
2661
2666
  }
@@ -2673,7 +2678,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2673
2678
  }) : typeof _ == "string" ? A.append(D, _) : A.append(D, String(_)));
2674
2679
  }), c(A, h);
2675
2680
  }, Ce = {
2676
- ...u ? { width: typeof u == "number" ? `${u}px` : u } : {},
2681
+ ...d ? { width: typeof d == "number" ? `${d}px` : d } : {},
2677
2682
  ...y ? { border: y } : {},
2678
2683
  ...i ? { background: i } : {}
2679
2684
  };
@@ -2761,7 +2766,7 @@ const { RangePicker: tn } = dt, nn = ({ host: t, onChange: c }) => {
2761
2766
  {
2762
2767
  type: "button",
2763
2768
  onClick: we,
2764
- disabled: l || s || e || !G,
2769
+ disabled: l || s || e || !R,
2765
2770
  className: "rich-text-editor-send-button",
2766
2771
  children: l || e ? /* @__PURE__ */ $("span", { className: "rte-send-spinner" }) : /* @__PURE__ */ $("i", { className: "iconfont icon-fasong" })
2767
2772
  }
@@ -2868,7 +2873,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2868
2873
  batchSize: c,
2869
2874
  loadingProgress: l,
2870
2875
  loadIcon: s,
2871
- onBatchSizeChange: u,
2876
+ onBatchSizeChange: d,
2872
2877
  onLoadNextPage: C,
2873
2878
  onStartAutoLoad: T,
2874
2879
  onStopLoad: w
@@ -2925,7 +2930,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2925
2930
  Fe,
2926
2931
  {
2927
2932
  value: c,
2928
- onChange: u,
2933
+ onChange: d,
2929
2934
  options: on,
2930
2935
  disabled: t,
2931
2936
  size: "small",
@@ -2941,7 +2946,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2941
2946
  loadIcon: c,
2942
2947
  pageSize: l,
2943
2948
  total: s,
2944
- cachedPages: u,
2949
+ cachedPages: d,
2945
2950
  loadedCount: C,
2946
2951
  autoLoading: T = !1,
2947
2952
  loadingProgress: w,
@@ -2950,10 +2955,10 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2950
2955
  onStartAutoLoad: q,
2951
2956
  onStopLoading: y
2952
2957
  }) => {
2953
- const [i, r] = ne(5), n = Math.ceil(s / l), o = Ze(() => u.length >= n, [u, n]), a = () => Array.from(
2958
+ const [i, r] = ne(5), n = Math.ceil(s / l), o = Ze(() => d.length >= n, [d, n]), a = () => Array.from(
2954
2959
  { length: n },
2955
2960
  (v, x) => x + 1
2956
- ).filter((v) => !u.includes(v)).slice(0, i);
2961
+ ).filter((v) => !d.includes(v)).slice(0, i);
2957
2962
  return /* @__PURE__ */ Z("div", { className: "pagination_footer", children: [
2958
2963
  /* @__PURE__ */ Z("div", { className: "pagination_leftWrap", children: [
2959
2964
  /* @__PURE__ */ Z("span", { className: "pagination_total", children: [
@@ -2998,7 +3003,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2998
3003
  showQuickJumper: !1,
2999
3004
  showTotal: (m, v) => "",
3000
3005
  itemRender: (m, v, x) => {
3001
- const V = u.includes(m);
3006
+ const V = d.includes(m);
3002
3007
  return v === "prev" || v === "next" || v === "jump-prev" || v === "jump-next" ? /* @__PURE__ */ $("div", { className: "pageBox", children: x }) : /* @__PURE__ */ Z(
3003
3008
  "div",
3004
3009
  {
@@ -3022,7 +3027,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3022
3027
  loading: c,
3023
3028
  autoLoading: l,
3024
3029
  loadingProgress: s,
3025
- columns: u = [],
3030
+ columns: d = [],
3026
3031
  dataSource: C = [],
3027
3032
  total: T,
3028
3033
  current: w,
@@ -3033,7 +3038,7 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3033
3038
  onStartAutoLoad: i,
3034
3039
  onStopLoading: r,
3035
3040
  ...n
3036
- } = t, o = Q(null), a = ae(
3041
+ } = t, o = Q(null), a = re(
3037
3042
  (f) => {
3038
3043
  q(f), e.includes(f) && o.current?.scrollTo({
3039
3044
  key: `${(f - 1) * k + 1}`
@@ -3043,11 +3048,11 @@ const Qe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3043
3048
  );
3044
3049
  return /* @__PURE__ */ Z("div", { className: "flex flex-col", children: [
3045
3050
  /* @__PURE__ */ $(
3046
- Ge,
3051
+ Re,
3047
3052
  {
3048
3053
  ref: o,
3049
3054
  ...n,
3050
- columns: u,
3055
+ columns: d,
3051
3056
  dataSource: C,
3052
3057
  pagination: !1,
3053
3058
  virtual: !0
@@ -3184,7 +3189,7 @@ const un = ({
3184
3189
  placeholder: c = "请输入内容",
3185
3190
  animationSpeed: l = 100,
3186
3191
  autoPlay: s = !0,
3187
- value: u,
3192
+ value: d,
3188
3193
  onChange: C,
3189
3194
  ...T
3190
3195
  }) => {
@@ -3192,35 +3197,35 @@ const un = ({
3192
3197
  de(() => {
3193
3198
  v.current = t, x.current = e, V.current = r, E.current = w;
3194
3199
  });
3195
- const B = ae((d, p) => {
3200
+ const B = re((p, u) => {
3196
3201
  let b = 0;
3197
3202
  a(!0);
3198
3203
  const L = () => {
3199
- b < d.length ? (k(d.slice(0, b + 1)), b++, m.current = window.setTimeout(L, l)) : (a(!1), p?.());
3204
+ b < p.length ? (k(p.slice(0, b + 1)), b++, m.current = window.setTimeout(L, l)) : (a(!1), u?.());
3200
3205
  };
3201
3206
  L();
3202
- }, [l]), G = ae((d) => {
3203
- let p = E.current.length;
3207
+ }, [l]), R = re((p) => {
3208
+ let u = E.current.length;
3204
3209
  const b = () => {
3205
- p > 0 ? (k(E.current.slice(0, p - 1)), p--, m.current = window.setTimeout(b, l / 2)) : d?.();
3210
+ u > 0 ? (k(E.current.slice(0, u - 1)), u--, m.current = window.setTimeout(b, l / 2)) : p?.();
3206
3211
  };
3207
3212
  b();
3208
- }, [l]), F = ae(() => {
3213
+ }, [l]), F = re(() => {
3209
3214
  if (v.current.length === 0 || V.current) return;
3210
3215
  i(!0);
3211
- const d = v.current[x.current];
3212
- E.current ? G(() => {
3213
- B(d, () => {
3216
+ const p = v.current[x.current];
3217
+ E.current ? R(() => {
3218
+ B(p, () => {
3214
3219
  f.current = window.setTimeout(() => {
3215
- q((p) => (p + 1) % v.current.length), i(!1);
3220
+ q((u) => (u + 1) % v.current.length), i(!1);
3216
3221
  }, 2e3);
3217
3222
  });
3218
- }) : B(d, () => {
3223
+ }) : B(p, () => {
3219
3224
  f.current = window.setTimeout(() => {
3220
- q((p) => (p + 1) % v.current.length), i(!1);
3225
+ q((u) => (u + 1) % v.current.length), i(!1);
3221
3226
  }, 2e3);
3222
3227
  });
3223
- }, [G, B]);
3228
+ }, [R, B]);
3224
3229
  return de(() => (s && t.length > 0 && !r && F(), () => {
3225
3230
  f.current && window.clearTimeout(f.current), m.current && window.clearTimeout(m.current);
3226
3231
  }), [e, r, s, t.length, F]), de(() => {
@@ -3230,17 +3235,17 @@ const un = ({
3230
3235
  et,
3231
3236
  {
3232
3237
  ...T,
3233
- value: u,
3234
- onChange: (d) => {
3235
- C?.(d.target.value), T.onChange?.(d);
3238
+ value: d,
3239
+ onChange: (p) => {
3240
+ C?.(p.target.value), T.onChange?.(p);
3236
3241
  },
3237
- onFocus: (d) => {
3238
- n(!0), f.current && window.clearTimeout(f.current), m.current && window.clearTimeout(m.current), i(!1), a(!1), T.onFocus?.(d);
3242
+ onFocus: (p) => {
3243
+ n(!0), f.current && window.clearTimeout(f.current), m.current && window.clearTimeout(m.current), i(!1), a(!1), T.onFocus?.(p);
3239
3244
  },
3240
- onBlur: (d) => {
3241
- n(!1), !u && t.length > 0 && (k(""), q(0)), T.onBlur?.(d);
3245
+ onBlur: (p) => {
3246
+ n(!1), !d && t.length > 0 && (k(""), q(0)), T.onBlur?.(p);
3242
3247
  },
3243
- placeholder: r || u ? c : w || c,
3248
+ placeholder: r || d ? c : w || c,
3244
3249
  style: {
3245
3250
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3246
3251
  ...T.style,
@@ -3249,7 +3254,7 @@ const un = ({
3249
3254
  }
3250
3255
  }
3251
3256
  ),
3252
- !r && !u && w && /* @__PURE__ */ Z(
3257
+ !r && !d && w && /* @__PURE__ */ Z(
3253
3258
  "div",
3254
3259
  {
3255
3260
  style: {
@@ -3348,7 +3353,7 @@ const dn = ({
3348
3353
  // 打字机动画速度,毫秒
3349
3354
  autoPlay: s = !0,
3350
3355
  // 是否自动播放动画
3351
- value: u = "",
3356
+ value: d = "",
3352
3357
  // 受控模式的值
3353
3358
  onChange: C,
3354
3359
  // 受控模式的变化回调
@@ -3369,28 +3374,28 @@ const dn = ({
3369
3374
  ...r
3370
3375
  // 其他原生属性
3371
3376
  }) => {
3372
- const [n, o] = ne(""), [a, f] = ne(0), [m, v] = ne(!1), [x, V] = ne(!1), [E, B] = ne(!1), [G, F] = ne(u || ""), W = Q(void 0), H = Q(void 0), ee = Q(t), re = Q(a), d = Q(x), p = Q(n), b = Q(null);
3377
+ const [n, o] = ne(""), [a, f] = ne(0), [m, v] = ne(!1), [x, V] = ne(!1), [E, B] = ne(!1), [R, F] = ne(d || ""), W = Q(void 0), H = Q(void 0), ee = Q(t), ae = Q(a), p = Q(x), u = Q(n), b = Q(null);
3373
3378
  de(() => {
3374
- ee.current = t, re.current = a, d.current = x, p.current = n;
3379
+ ee.current = t, ae.current = a, p.current = x, u.current = n;
3375
3380
  });
3376
- const L = ae((X, ue) => {
3381
+ const L = re((X, ue) => {
3377
3382
  let he = 0;
3378
3383
  B(!0);
3379
3384
  const ye = () => {
3380
3385
  he < X.length ? (o(X.slice(0, he + 1)), he++, H.current = window.setTimeout(ye, l)) : (B(!1), ue?.());
3381
3386
  };
3382
3387
  ye();
3383
- }, [l]), N = ae((X) => {
3384
- let ue = p.current.length;
3388
+ }, [l]), N = re((X) => {
3389
+ let ue = u.current.length;
3385
3390
  const he = () => {
3386
- ue > 0 ? (o(p.current.slice(0, ue - 1)), ue--, H.current = window.setTimeout(he, l / 2)) : X?.();
3391
+ ue > 0 ? (o(u.current.slice(0, ue - 1)), ue--, H.current = window.setTimeout(he, l / 2)) : X?.();
3387
3392
  };
3388
3393
  he();
3389
- }, [l]), z = ae(() => {
3390
- if (ee.current.length === 0 || d.current) return;
3394
+ }, [l]), z = re(() => {
3395
+ if (ee.current.length === 0 || p.current) return;
3391
3396
  v(!0);
3392
- const X = ee.current[re.current];
3393
- p.current ? N(() => {
3397
+ const X = ee.current[ae.current];
3398
+ u.current ? N(() => {
3394
3399
  L(X, () => {
3395
3400
  W.current = window.setTimeout(() => {
3396
3401
  f((ue) => (ue + 1) % ee.current.length), v(!1);
@@ -3410,23 +3415,23 @@ const dn = ({
3410
3415
  const Y = (X) => {
3411
3416
  V(!0), W.current && window.clearTimeout(W.current), H.current && window.clearTimeout(H.current), v(!1), B(!1), r.onFocus?.(X);
3412
3417
  }, te = (X) => {
3413
- V(!1), !u && t.length > 0 && (o(""), f(0)), r.onBlur?.(X);
3418
+ V(!1), !d && t.length > 0 && (o(""), f(0)), r.onBlur?.(X);
3414
3419
  }, se = (X) => {
3415
3420
  const ue = X.target.value;
3416
3421
  w && ue.length > w || (C ? C(ue) : F(ue), r.onChange?.(X));
3417
3422
  }, ce = () => {
3418
- const X = C ? u : G;
3423
+ const X = C ? d : R;
3419
3424
  X.trim() && !q && (T?.(X), C || F(""));
3420
3425
  }, pe = (X) => {
3421
3426
  (X.ctrlKey || X.metaKey) && X.key === "Enter" && (X.preventDefault(), ce()), r.onKeyDown?.(X);
3422
- }, fe = C ? u : G, be = q || !fe.trim() || (w ? fe.length > w : !1);
3427
+ }, fe = C ? d : R, be = q || !fe.trim() || (w ? fe.length > w : !1);
3423
3428
  return /* @__PURE__ */ Z("div", { style: { position: "relative", ...i }, children: [
3424
3429
  /* @__PURE__ */ Z("div", { style: { position: "relative" }, children: [
3425
3430
  /* @__PURE__ */ $(
3426
3431
  "textarea",
3427
3432
  {
3428
3433
  ref: b,
3429
- value: C ? u : G,
3434
+ value: C ? d : R,
3430
3435
  onChange: se,
3431
3436
  onFocus: (X) => {
3432
3437
  X.target.style.borderColor = "#1890ff", X.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", Y(X);
@@ -3644,7 +3649,7 @@ const rt = ({
3644
3649
  poster: c,
3645
3650
  width: l = 300,
3646
3651
  height: s,
3647
- videoWidth: u,
3652
+ videoWidth: d,
3648
3653
  // 参数保留但不使用,由CSS控制
3649
3654
  videoHeight: C,
3650
3655
  // 参数保留但不使用,由CSS控制
@@ -3659,29 +3664,29 @@ const rt = ({
3659
3664
  style: n,
3660
3665
  ...o
3661
3666
  }) => {
3662
- const a = Q(null), [f, m] = ne(!1), [v, x] = ne(!1), [V, E] = ne(!1), B = ae(() => {
3667
+ const a = Q(null), [f, m] = ne(!1), [v, x] = ne(!1), [V, E] = ne(!1), B = re(() => {
3663
3668
  a.current && (a.current.play(), m(!0), q?.());
3664
- }, [q]), G = ae(() => {
3669
+ }, [q]), R = re(() => {
3665
3670
  a.current && (a.current.pause(), m(!1), y?.());
3666
- }, [y]), F = ae((L) => {
3667
- L.stopPropagation(), f ? G() : B();
3668
- }, [f, B, G]), W = ae(() => {
3671
+ }, [y]), F = re((L) => {
3672
+ L.stopPropagation(), f ? R() : B();
3673
+ }, [f, B, R]), W = re(() => {
3669
3674
  x(!0), w && !f && B();
3670
- }, [w, f, B]), H = ae(() => {
3671
- x(!1), w && f && G();
3672
- }, [w, f, G]), ee = ae(() => {
3675
+ }, [w, f, B]), H = re(() => {
3676
+ x(!1), w && f && R();
3677
+ }, [w, f, R]), ee = re(() => {
3673
3678
  E(!0), e?.();
3674
- }, [e]), re = ae(() => {
3679
+ }, [e]), ae = re(() => {
3675
3680
  m(!0), q?.();
3676
- }, [q]), d = ae(() => {
3681
+ }, [q]), p = re(() => {
3677
3682
  m(!1), y?.();
3678
- }, [y]), p = ae(() => {
3683
+ }, [y]), u = re(() => {
3679
3684
  m(!1), i?.();
3680
- }, [i]), b = ae((L) => {
3685
+ }, [i]), b = re((L) => {
3681
3686
  k?.(L);
3682
3687
  }, [k]);
3683
3688
  return /* @__PURE__ */ $(
3684
- Re,
3689
+ Ge,
3685
3690
  {
3686
3691
  ...o,
3687
3692
  className: `video-card ${r || ""}`,
@@ -3708,9 +3713,9 @@ const rt = ({
3708
3713
  poster: c,
3709
3714
  preload: "metadata",
3710
3715
  onLoadedData: ee,
3711
- onPlay: re,
3712
- onPause: d,
3713
- onEnded: p,
3716
+ onPlay: ae,
3717
+ onPause: p,
3718
+ onEnded: u,
3714
3719
  muted: !0,
3715
3720
  loop: !0
3716
3721
  }
@@ -3834,7 +3839,7 @@ const pn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3834
3839
  columns: c,
3835
3840
  gap: l = 0,
3836
3841
  responsive: s = !0,
3837
- breakpoints: u = {
3842
+ breakpoints: d = {
3838
3843
  xs: 1,
3839
3844
  sm: 2,
3840
3845
  md: 3,
@@ -3846,19 +3851,19 @@ const pn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3846
3851
  style: T,
3847
3852
  onClick: w
3848
3853
  }) => {
3849
- const k = Q(null), [e, q] = ne(c || u.md || 3), y = Q(/* @__PURE__ */ new Map()), i = ae(() => {
3854
+ const k = Q(null), [e, q] = ne(c || d.md || 3), y = Q(/* @__PURE__ */ new Map()), i = re(() => {
3850
3855
  if (!s || c)
3851
- return c || u.md || 3;
3856
+ return c || d.md || 3;
3852
3857
  const a = window.innerWidth;
3853
- return a < 576 ? u.xs || 1 : a < 768 ? u.sm || 2 : a < 992 ? u.md || 3 : a < 1200 ? u.lg || 4 : a < 1600 ? u.xl || 5 : u.xxl || 6;
3854
- }, [s, c, u]), r = ae(() => {
3858
+ return a < 576 ? d.xs || 1 : a < 768 ? d.sm || 2 : a < 992 ? d.md || 3 : a < 1200 ? d.lg || 4 : a < 1600 ? d.xl || 5 : d.xxl || 6;
3859
+ }, [s, c, d]), r = re(() => {
3855
3860
  if (!k.current) return;
3856
3861
  const a = e, f = k.current, v = (f.offsetWidth - l * (a - 1)) / a, x = new Array(a).fill(0);
3857
3862
  t.forEach((E, B) => {
3858
- const G = E.id || B, F = y.current.get(G);
3863
+ const R = E.id || B, F = y.current.get(R);
3859
3864
  if (!F) return;
3860
- const W = Math.min(...x), H = x.indexOf(W), ee = H * (v + l), re = x[H];
3861
- F.style.position = "absolute", F.style.left = `${ee}px`, F.style.top = `${re}px`, F.style.width = `${v}px`, x[H] += F.offsetHeight + l;
3865
+ const W = Math.min(...x), H = x.indexOf(W), ee = H * (v + l), ae = x[H];
3866
+ F.style.position = "absolute", F.style.left = `${ee}px`, F.style.top = `${ae}px`, F.style.width = `${v}px`, x[H] += F.offsetHeight + l;
3862
3867
  });
3863
3868
  const V = Math.max(...x);
3864
3869
  f.style.height = `${V}px`;
@@ -3876,9 +3881,9 @@ const pn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3876
3881
  }, 100);
3877
3882
  return () => clearTimeout(a);
3878
3883
  }, [t, e, r]);
3879
- const n = ae(() => {
3884
+ const n = re(() => {
3880
3885
  r();
3881
- }, [r]), o = ae((a) => {
3886
+ }, [r]), o = re((a) => {
3882
3887
  w && w(a), a.onClick?.(a);
3883
3888
  }, [w]);
3884
3889
  return /* @__PURE__ */ $(