bi-components-library 1.0.35 → 1.0.38

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 ee, Fragment as lt } from "react/jsx-runtime";
2
- import it, { useState as J, useRef as Q, useMemo as et, useCallback as re, useEffect as ce, useLayoutEffect as je } from "react";
3
- import { Button as Ce, Card as Re, Modal as ct, Table as Fe, Flex as Ue, Spin as ut, Empty as dt, Select as Ve, Form as De, Input as tt, Space as pt, DatePicker as ft, Dropdown as yt, Tooltip as mt, Progress as ht, Pagination as gt, theme as vt } from "antd";
2
+ import it, { useState as J, useRef as Q, useMemo as et, useCallback as re, useEffect as le, useLayoutEffect as je } from "react";
3
+ import { Button as $e, Card as Re, Modal as ct, Table as Fe, Flex as Ue, Spin as ut, Empty as dt, Select as Ve, Form as De, Input as tt, Space as pt, DatePicker as ft, Dropdown as yt, Tooltip as mt, Progress as ht, Pagination as gt, theme as vt } from "antd";
4
4
  import { createFromIconfontCN as bt, LeftOutlined as xt, SearchOutlined as wt, ReloadOutlined as kt, InfoCircleOutlined as Et, SendOutlined as $t, PauseCircleOutlined as Ct, PlayCircleOutlined as St } from "@ant-design/icons";
5
5
  import { createPortal as ze } from "react-dom";
6
6
  const Tt = ({
@@ -9,7 +9,7 @@ const Tt = ({
9
9
  children: i,
10
10
  ...s
11
11
  }) => /* @__PURE__ */ $(
12
- Ce,
12
+ $e,
13
13
  {
14
14
  ...s,
15
15
  type: ((k) => {
@@ -440,7 +440,7 @@ const Mt = ({
440
440
  size: s = "small",
441
441
  type: d = "default"
442
442
  }) => /* @__PURE__ */ $(
443
- Ce,
443
+ $e,
444
444
  {
445
445
  size: s,
446
446
  type: d,
@@ -496,7 +496,7 @@ const It = ({
496
496
  }) => {
497
497
  const s = t ? `px-0 h-auto ${u || ""}` : u;
498
498
  return /* @__PURE__ */ $(
499
- Ce,
499
+ $e,
500
500
  {
501
501
  type: "link",
502
502
  ...i,
@@ -549,7 +549,7 @@ const { Option: Pt } = Ve, Vt = ({
549
549
  showSearch: s = !0,
550
550
  showRefresh: d = !0,
551
551
  defaultPageSize: k = 10,
552
- pageSizeOptions: S = ["10", "20", "50", "100"],
552
+ pageSizeOptions: T = ["10", "20", "50", "100"],
553
553
  autoLoad: v = !0,
554
554
  externalParams: m = {},
555
555
  ...e
@@ -558,7 +558,7 @@ const { Option: Pt } = Ve, Vt = ({
558
558
  current: 1,
559
559
  pageSize: k,
560
560
  total: 0
561
- }), [o, h] = J({}), [l, w] = J({}), [C] = De.useForm(), I = Q(n);
561
+ }), [o, g] = J({}), [l, w] = J({}), [C] = De.useForm(), I = Q(n);
562
562
  I.current = n;
563
563
  const q = Q(m);
564
564
  q.current = m;
@@ -593,9 +593,9 @@ const { Option: Pt } = Ve, Vt = ({
593
593
  }
594
594
  }
595
595
  }, [u, l, o]), R = re((y) => {
596
- h(y), r((f) => ({ ...f, current: 1 }));
596
+ g(y), r((f) => ({ ...f, current: 1 }));
597
597
  }, []), B = re(() => {
598
- C.resetFields(), h({}), r((y) => ({ ...y, current: 1 }));
598
+ C.resetFields(), g({}), r((y) => ({ ...y, current: 1 }));
599
599
  }, [C]), te = re(() => {
600
600
  D();
601
601
  }, [D]), ae = re((y, f, x) => {
@@ -609,7 +609,7 @@ const { Option: Pt } = Ve, Vt = ({
609
609
  };
610
610
  r(L), w(N);
611
611
  }, [k]);
612
- return ce(() => {
612
+ return le(() => {
613
613
  const y = Object.keys(m).length > 0;
614
614
  (v && !H.current || y) && (D(), H.current = !0);
615
615
  }, [v, m, D]), /* @__PURE__ */ ee("div", { children: [
@@ -637,9 +637,9 @@ const { Option: Pt } = Ve, Vt = ({
637
637
  }
638
638
  ) }, y.key)),
639
639
  /* @__PURE__ */ $(De.Item, { children: /* @__PURE__ */ ee(pt, { children: [
640
- /* @__PURE__ */ $(Ce, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ $(wt, {}), children: "查询" }),
641
- /* @__PURE__ */ $(Ce, { onClick: B, children: "重置" }),
642
- d && /* @__PURE__ */ $(Ce, { icon: /* @__PURE__ */ $(kt, {}), onClick: te, children: "刷新" })
640
+ /* @__PURE__ */ $($e, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ $(wt, {}), children: "查询" }),
641
+ /* @__PURE__ */ $($e, { onClick: B, children: "重置" }),
642
+ d && /* @__PURE__ */ $($e, { icon: /* @__PURE__ */ $(kt, {}), onClick: te, children: "刷新" })
643
643
  ] }) })
644
644
  ]
645
645
  }
@@ -656,7 +656,7 @@ const { Option: Pt } = Ve, Vt = ({
656
656
  showSizeChanger: !0,
657
657
  showQuickJumper: !0,
658
658
  showTotal: (y, f) => `第 ${f[0]}-${f[1]} 条/共 ${y} 条`,
659
- pageSizeOptions: S
659
+ pageSizeOptions: T
660
660
  },
661
661
  onChange: ae,
662
662
  scroll: { x: "max-content", y: "50vh" }
@@ -764,11 +764,11 @@ function He(t, u, i) {
764
764
  break;
765
765
  }
766
766
  }
767
- const S = u.some((p) => p.exclusionGroup === "separator"), m = Object.keys(k).filter(
767
+ const T = u.some((p) => p.exclusionGroup === "separator"), m = Object.keys(k).filter(
768
768
  (p) => k[p]
769
769
  ).length > 0;
770
770
  let e = null;
771
- if (m && S) {
771
+ if (m && T) {
772
772
  for (const p of u)
773
773
  if (p.exclusionGroup && p.exclusionGroup !== "separator" && k[p.exclusionGroup]) {
774
774
  e = p.exclusionGroup;
@@ -779,7 +779,7 @@ function He(t, u, i) {
779
779
  const c = t.current.querySelectorAll(
780
780
  `[data-group="${p}"]`
781
781
  );
782
- S && m && e ? p === e ? c.forEach((a) => {
782
+ T && m && e ? p === e ? c.forEach((a) => {
783
783
  a.classList.contains("required-upload-group") ? a.style.setProperty("display", "inline-flex", "important") : (a.classList.contains("exclusion-wrapper"), a.style.setProperty("display", "inline-block", "important"));
784
784
  }) : c.forEach((a) => {
785
785
  a.style.display = "none", a.style.setProperty("display", "none", "important");
@@ -840,15 +840,15 @@ function Ge(t, u, i, s) {
840
840
  }
841
841
  }
842
842
  }
843
- const k = u.some((c) => c.exclusionGroup === "separator"), S = [];
843
+ const k = u.some((c) => c.exclusionGroup === "separator"), T = [];
844
844
  if (k && d.length > 1) {
845
845
  const c = [];
846
846
  u.forEach((a, n) => {
847
847
  a.exclusionGroup === "separator" && c.push(n);
848
848
  });
849
849
  for (const a of c) {
850
- const r = d.filter((l) => typeof l.__index == "number" && l.__index < a).sort((l, w) => (w.__index ?? 0) - (l.__index ?? 0))[0], h = d.filter((l) => typeof l.__index == "number" && l.__index > a).sort((l, w) => (l.__index ?? 0) - (w.__index ?? 0))[0];
851
- r && h && S.push([r, h]);
850
+ const r = d.filter((l) => typeof l.__index == "number" && l.__index < a).sort((l, w) => (w.__index ?? 0) - (l.__index ?? 0))[0], g = d.filter((l) => typeof l.__index == "number" && l.__index > a).sort((l, w) => (l.__index ?? 0) - (w.__index ?? 0))[0];
851
+ r && g && T.push([r, g]);
852
852
  }
853
853
  }
854
854
  if (d.length === 0) {
@@ -939,7 +939,7 @@ function Ge(t, u, i, s) {
939
939
  return;
940
940
  }
941
941
  const m = /* @__PURE__ */ new Set();
942
- S.forEach((c) => {
942
+ T.forEach((c) => {
943
943
  c.forEach((a) => {
944
944
  a.key && m.add(a.key);
945
945
  });
@@ -947,8 +947,8 @@ function Ge(t, u, i, s) {
947
947
  const e = v.filter(
948
948
  (c) => !c.key || !m.has(c.key)
949
949
  );
950
- let E = (S.length === 0, !0);
951
- for (const c of S) {
950
+ let E = (T.length === 0, !0);
951
+ for (const c of T) {
952
952
  const a = c.filter((r) => {
953
953
  if (!t.current) return !1;
954
954
  if (r.exclusionGroup) {
@@ -974,14 +974,14 @@ function Ge(t, u, i, s) {
974
974
  const o = t.current.querySelectorAll(
975
975
  `[data-type="variable"][data-multi-key="${r.key}"]`
976
976
  );
977
- let h = 0;
977
+ let g = 0;
978
978
  for (const w of Array.from(o)) {
979
979
  if (w.classList.contains("show-placeholder"))
980
980
  continue;
981
- w.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (h += 1);
981
+ w.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (g += 1);
982
982
  }
983
983
  const l = r.minCount && r.minCount > 0 ? r.minCount : 1;
984
- if (h >= l) {
984
+ if (g >= l) {
985
985
  n = !0;
986
986
  break;
987
987
  }
@@ -1114,31 +1114,31 @@ function Ge(t, u, i, s) {
1114
1114
  function Oe(t, u) {
1115
1115
  if (!t.current) return;
1116
1116
  t.current.querySelectorAll('[data-type="variable"]').forEach((s) => {
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"));
1117
+ const d = s.innerText;
1118
+ d.replace(/\u200B/g, "").trim().length === 0 ? (d !== "​" && (s.innerText = "​"), s.classList.add("show-placeholder")) : s.classList.remove("show-placeholder");
1119
1119
  });
1120
1120
  }
1121
1121
  const Bt = ({ host: t, onChange: u }) => {
1122
- const i = t.dataset.key, s = t.dataset.placeholder, d = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", k = t.dataset.required === "true", S = t.dataset.value || "", v = it.useMemo(() => {
1122
+ const i = t.dataset.key, s = t.dataset.placeholder, d = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", k = t.dataset.required === "true", T = t.dataset.value || "", v = it.useMemo(() => {
1123
1123
  try {
1124
1124
  return JSON.parse(d);
1125
1125
  } catch {
1126
1126
  return [];
1127
1127
  }
1128
- }, [d]), [m, e] = J(S || void 0), [E, p] = J(80), c = (n) => {
1128
+ }, [d]), [m, e] = J(T || void 0), [E, p] = J(80), c = (n) => {
1129
1129
  const o = document.createElement("canvas").getContext("2d");
1130
1130
  return o ? (o.font = '14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif', o.measureText(n).width) : n.length * 14;
1131
1131
  };
1132
- ce(() => {
1133
- const n = m ? v.find((h) => h.value === m)?.label || m : s || "请选择", r = c(n), o = Math.max(64, Math.ceil(r + 40));
1132
+ le(() => {
1133
+ const n = m ? v.find((g) => g.value === m)?.label || m : s || "请选择", r = c(n), o = Math.max(64, Math.ceil(r + 40));
1134
1134
  p(o);
1135
1135
  }, [m, v, s]);
1136
1136
  const a = (n) => {
1137
1137
  e(n), t.setAttribute("data-value", n), u(i, n);
1138
1138
  };
1139
- return ce(() => {
1140
- e(S || void 0);
1141
- }, [S]), ze(
1139
+ return le(() => {
1140
+ e(T || void 0);
1141
+ }, [T]), ze(
1142
1142
  /* @__PURE__ */ $(
1143
1143
  "div",
1144
1144
  {
@@ -1167,12 +1167,12 @@ const Bt = ({ host: t, onChange: u }) => {
1167
1167
  );
1168
1168
  }, Ot = (t) => {
1169
1169
  const [u, i] = J([]);
1170
- return ce(() => {
1170
+ return le(() => {
1171
1171
  const s = t.current;
1172
1172
  if (!s) return;
1173
1173
  const d = () => {
1174
- const S = s.querySelectorAll(".rte-select-host"), v = [];
1175
- S.forEach((m) => {
1174
+ const T = s.querySelectorAll(".rte-select-host"), v = [];
1175
+ T.forEach((m) => {
1176
1176
  const e = m.getAttribute("data-key");
1177
1177
  e && v.push(
1178
1178
  /* @__PURE__ */ $(
@@ -1192,9 +1192,9 @@ const Bt = ({ host: t, onChange: u }) => {
1192
1192
  }), i(v);
1193
1193
  };
1194
1194
  d();
1195
- const k = new MutationObserver((S) => {
1195
+ const k = new MutationObserver((T) => {
1196
1196
  let v = !1;
1197
- for (const m of S)
1197
+ for (const m of T)
1198
1198
  if (m.type === "childList") {
1199
1199
  let e = !1;
1200
1200
  if (m.addedNodes.forEach((E) => {
@@ -1217,13 +1217,13 @@ const Bt = ({ host: t, onChange: u }) => {
1217
1217
  return k.observe(s, { childList: !0, subtree: !0 }), () => k.disconnect();
1218
1218
  }, [t]), u;
1219
1219
  };
1220
- function Ht(t, u, i, s, d, k = {}, S) {
1220
+ function Ht(t, u, i, s, d, k = {}, T) {
1221
1221
  if (!t.current) return;
1222
1222
  let v = "", m = 0;
1223
1223
  for (; m < u.length; ) {
1224
1224
  const e = u[m], E = m + 1 < u.length ? u[m + 1] : null;
1225
1225
  if (e.type === "text" && (e.text?.includes("icon-bitian") || e.className === "rte-text-required") && E) {
1226
- const o = E.type === "upload" && E.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === E.exclusionGroup, h = E.type === "variable" && E.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === E.exclusionGroup;
1226
+ const o = E.type === "upload" && E.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === E.exclusionGroup, g = E.type === "variable" && E.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === E.exclusionGroup;
1227
1227
  if (o) {
1228
1228
  const w = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, C = "</span>";
1229
1229
  let I = "";
@@ -1235,7 +1235,7 @@ function Ht(t, u, i, s, d, k = {}, S) {
1235
1235
  v += w + I + f + C, m += 2;
1236
1236
  continue;
1237
1237
  }
1238
- if (h) {
1238
+ if (g) {
1239
1239
  const w = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, C = "</span>";
1240
1240
  let I = "";
1241
1241
  e.className ? I = `<span class="${e.className}">${e.text ?? ""}</span>` : I = e.text ?? "";
@@ -1247,34 +1247,34 @@ function Ht(t, u, i, s, d, k = {}, S) {
1247
1247
  const c = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", a = e.exclusionGroup ? `<span ${c} class="exclusion-wrapper">` : "", n = e.exclusionGroup ? "</span>" : "";
1248
1248
  let r = "";
1249
1249
  if (e.type === "tag") {
1250
- const h = s || S === "hideTagClose" ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', l = s ? ' data-locked="true"' : "", w = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1251
- r = `<span contenteditable="false" class="tag-node group"${l}${w}><span class="tag-label">${e.text}</span>${h}</span>`;
1250
+ const g = s || T === "hideTagClose" ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', l = s ? ' data-locked="true"' : "", w = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1251
+ r = `<span contenteditable="false" class="tag-node group"${l}${w}><span class="tag-label">${e.text}</span>${g}</span>`;
1252
1252
  } else if (e.type === "text") {
1253
1253
  const o = s ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', l = (e.text ?? "").replace(/\n/g, "<br/>");
1254
1254
  e.className ? r = `<span data-type="text" class="${e.className}"${o}>${l}</span>` : r = s ? `<span data-type="text"${o}>${l}</span>` : `<span data-type="text" contenteditable="false">${l}</span>`;
1255
1255
  } else if (e.type === "variable" && e.key) {
1256
- const h = d[e.key] || e.text || "", l = !h, w = l ? "​" : h, C = l ? "show-placeholder" : "", I = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", q = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", H = e.tooltip && l ? "" : "hidden", j = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${I}${q} class="variable-chip ${C}">${w}${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>`;
1256
+ const g = d[e.key] || e.text || "", l = !g, w = l ? "​" : g, C = l ? "show-placeholder" : "", I = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", q = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", H = e.tooltip && l ? "" : "hidden", j = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${I}${q} class="variable-chip ${C}">${w}${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>`;
1257
1257
  e.required ? r = `<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>${j}</span>` : r = j;
1258
1258
  } else if (e.type === "upload" && e.key) {
1259
- const o = i[e.key] !== null && i[e.key] !== void 0, h = o ? i[e.key] : null, l = o ? i[e.key]?.name : e.text, w = o ? "" : "hidden", C = e.tooltip && !o ? "" : "hidden", I = o ? "has-file" : "", q = o && l ? ` data-file-name="${l.replace(/"/g, "&quot;")}"` : "";
1259
+ const o = i[e.key] !== null && i[e.key] !== void 0, g = o ? i[e.key] : null, l = o ? i[e.key]?.name : e.text, w = o ? "" : "hidden", C = e.tooltip && !o ? "" : "hidden", I = o ? "has-file" : "", q = o && l ? ` data-file-name="${l.replace(/"/g, "&quot;")}"` : "";
1260
1260
  let H = "";
1261
- o && h ? h.type?.startsWith("image/") ? H = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(h)}" alt="preview" />` : H = "<i class='iconfont icon-exlwenjian'></i>" : H = "<i class='iconfont icon-shangchuan1'></i>";
1261
+ o && g ? g.type?.startsWith("image/") ? H = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(g)}" alt="preview" />` : H = "<i class='iconfont icon-exlwenjian'></i>" : H = "<i class='iconfont icon-shangchuan1'></i>";
1262
1262
  const j = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${I}"><span class="upload-icon">${H}</span><span class="upload-label"${q}>${l || e.text}</span>${e.tooltip ? `<i contenteditable="false" class="iconfont icon-tishi upload-info-icon ${C}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" title="提示"></i>` : ""}<span class="file-remove-btn ${w}" title="移除文件">×</span></span></span>`;
1263
1263
  e.required ? r = `<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>${j}</span>` : r = j;
1264
1264
  } else if (e.type === "select" && e.key) {
1265
- const o = d[e.key] || e.defaultValue || "", h = encodeURIComponent(JSON.stringify(e.options || [])), l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", w = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = e.required ? ' data-required="true"' : "", I = `<div data-type="select" data-key="${e.key}" data-value="${o}" data-options="${h}"${l}${w}${C} class="rte-select-host"></div>`;
1265
+ const o = d[e.key] || e.defaultValue || "", g = encodeURIComponent(JSON.stringify(e.options || [])), l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", w = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = e.required ? ' data-required="true"' : "", I = `<div data-type="select" data-key="${e.key}" data-value="${o}" data-options="${g}"${l}${w}${C} class="rte-select-host"></div>`;
1266
1266
  e.required ? r = `<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>${I}</span>` : r = I;
1267
1267
  } else if (e.type === "textarea" && e.key) {
1268
- const o = d[e.key] || "", h = e.maxHeight || 252, l = e.expandable !== !1, w = e.placeholder ? ` placeholder="${e.placeholder}"` : "", C = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${h}" style="max-height:${h}px;"${w}>${o}</textarea>`, I = l ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", q = `<div class="rte-textarea-wrapper" data-key="${e.key}">${C}${I}</div>`;
1268
+ const o = d[e.key] || "", g = e.maxHeight || 252, l = e.expandable !== !1, w = e.placeholder ? ` placeholder="${e.placeholder}"` : "", C = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${g}" style="max-height:${g}px;"${w}>${o}</textarea>`, I = l ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", q = `<div class="rte-textarea-wrapper" data-key="${e.key}">${C}${I}</div>`;
1269
1269
  e.required ? r = `<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>${q}</span>` : r = q;
1270
1270
  } else if (e.type === "richtext" && e.key) {
1271
- const o = d[e.key] || e.text || "", h = e.minHeight || 140, l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", w = e.expandable !== !1, C = o, I = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${l} style="min-height:${h}px;">${C}</div>`, q = w ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", H = `<div class="rte-richtext-wrapper" data-key="${e.key}">${I}${q}</div>`, j = `<div class="rte-richtext-container" data-key="${e.key}">${H}</div>`;
1271
+ const o = d[e.key] || e.text || "", g = e.minHeight || 140, l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", w = e.expandable !== !1, C = o, I = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${l} style="min-height:${g}px;">${C}</div>`, q = w ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", H = `<div class="rte-richtext-wrapper" data-key="${e.key}">${I}${q}</div>`, j = `<div class="rte-richtext-container" data-key="${e.key}">${H}</div>`;
1272
1272
  e.required ? r = `<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>${j}</div>` : r = j;
1273
1273
  } else if (e.type === "datepicker" && e.key) {
1274
- const o = d[e.key] || "", h = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", l = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", w = e.disableFuture ? ' data-disable-future="true"' : "", C = `<div data-type="datepicker" data-key="${e.key}" data-value="${o}" class="rte-datepicker-host"${h}${l}${w}></div>`;
1274
+ const o = d[e.key] || "", g = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", l = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", w = e.disableFuture ? ' data-disable-future="true"' : "", C = `<div data-type="datepicker" data-key="${e.key}" data-value="${o}" class="rte-datepicker-host"${g}${l}${w}></div>`;
1275
1275
  e.required ? r = `<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>${C}</span>` : r = C;
1276
1276
  } else if (e.type === "multi-variable" && e.key) {
1277
- const o = e.maxCount || 9, h = k[e.key] || 1, l = Math.min(h, o);
1277
+ const o = e.maxCount || 9, g = k[e.key] || 1, l = Math.min(g, o);
1278
1278
  if (e.required) {
1279
1279
  const w = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, C = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "";
1280
1280
  let I = "";
@@ -1302,7 +1302,7 @@ function Ht(t, u, i, s, d, k = {}, S) {
1302
1302
  });
1303
1303
  }, 0));
1304
1304
  }
1305
- function Gt(t, u, i, s, d = {}, k, S, v) {
1305
+ function Gt(t, u, i, s, d = {}, k, T, v) {
1306
1306
  const m = re(() => {
1307
1307
  if (!t.current) return;
1308
1308
  if (u.length === 0) {
@@ -1316,34 +1316,34 @@ function Gt(t, u, i, s, d = {}, k, S, v) {
1316
1316
  const c = t.current;
1317
1317
  c.__tempVariableValues === p && delete c.__tempVariableValues;
1318
1318
  }
1319
- }, 100)) : (t.current.querySelectorAll('[data-type="variable"]').forEach((h) => {
1320
- const l = h.dataset.key;
1319
+ }, 100)) : (t.current.querySelectorAll('[data-type="variable"]').forEach((g) => {
1320
+ const l = g.dataset.key;
1321
1321
  if (l) {
1322
- const w = h.innerText.replace(/[\u200B\n]/g, "").trim();
1322
+ const w = g.innerText.replace(/[\u200B\n]/g, "").trim();
1323
1323
  w && (e[l] = w);
1324
1324
  }
1325
- }), t.current.querySelectorAll('[data-type="select"]').forEach((h) => {
1326
- const l = h.dataset.key;
1325
+ }), t.current.querySelectorAll('[data-type="select"]').forEach((g) => {
1326
+ const l = g.dataset.key;
1327
1327
  if (l) {
1328
- const w = (h.getAttribute("data-value") || "").trim();
1328
+ const w = (g.getAttribute("data-value") || "").trim();
1329
1329
  w && (e[l] = w);
1330
1330
  }
1331
- }), t.current.querySelectorAll('[data-type="textarea"]').forEach((h) => {
1332
- const l = h.dataset.key;
1331
+ }), t.current.querySelectorAll('[data-type="textarea"]').forEach((g) => {
1332
+ const l = g.dataset.key;
1333
1333
  if (l) {
1334
- const w = h.value.replace(/[\u200B]/g, "").trim();
1334
+ const w = g.value.replace(/[\u200B]/g, "").trim();
1335
1335
  w && (e[l] = w);
1336
1336
  }
1337
- }), t.current.querySelectorAll('[data-type="richtext"]').forEach((h) => {
1338
- const l = h.dataset.key;
1337
+ }), t.current.querySelectorAll('[data-type="richtext"]').forEach((g) => {
1338
+ const l = g.dataset.key;
1339
1339
  if (l) {
1340
- const w = (h.textContent || "").replace(/[\u200B]/g, "").trim();
1340
+ const w = (g.textContent || "").replace(/[\u200B]/g, "").trim();
1341
1341
  w && (e[l] = w);
1342
1342
  }
1343
- }), t.current.querySelectorAll('[data-type="datepicker"]').forEach((h) => {
1344
- const l = h.dataset.key;
1343
+ }), t.current.querySelectorAll('[data-type="datepicker"]').forEach((g) => {
1344
+ const l = g.dataset.key;
1345
1345
  if (l) {
1346
- const w = (h.getAttribute("data-value") || "").trim();
1346
+ const w = (g.getAttribute("data-value") || "").trim();
1347
1347
  w && (e[l] = w);
1348
1348
  }
1349
1349
  })), Ht(t, u, i, s, e, d, v), k?.current) {
@@ -1360,14 +1360,14 @@ function Gt(t, u, i, s, d = {}, k, S, v) {
1360
1360
  NodeFilter.SHOW_TEXT,
1361
1361
  null
1362
1362
  );
1363
- let h = 0, l = null, w = 0;
1363
+ let g = 0, l = null, w = 0;
1364
1364
  for (; o.nextNode(); ) {
1365
1365
  const C = o.currentNode, I = C.textContent?.length || 0;
1366
- if (h + I >= a) {
1367
- l = C, w = a - h;
1366
+ if (g + I >= a) {
1367
+ l = C, w = a - g;
1368
1368
  break;
1369
1369
  }
1370
- h += I;
1370
+ g += I;
1371
1371
  }
1372
1372
  if (l) {
1373
1373
  r.setStart(l, Math.min(w, l.textContent?.length || 0)), r.collapse(!0);
@@ -1388,13 +1388,13 @@ function Gt(t, u, i, s, d = {}, k, S, v) {
1388
1388
  }
1389
1389
  }, 0);
1390
1390
  }
1391
- }, [u, i, s, t, d, k, S, v]);
1392
- ce(() => {
1391
+ }, [u, i, s, t, d, k, T, v]);
1392
+ le(() => {
1393
1393
  m();
1394
1394
  }, [m]);
1395
1395
  }
1396
1396
  function Rt(t, u, i, s) {
1397
- ce(() => {
1397
+ le(() => {
1398
1398
  const d = t.current;
1399
1399
  if (!d) return;
1400
1400
  const k = (v) => {
@@ -1412,7 +1412,7 @@ function Rt(t, u, i, s) {
1412
1412
  p && p.type && p.type.startsWith("image/") && s({ key: E, anchorEl: e, type: "upload-preview" });
1413
1413
  }
1414
1414
  }
1415
- }, S = (v) => {
1415
+ }, T = (v) => {
1416
1416
  const m = v.target?.closest(".upload-info-icon"), e = v.relatedTarget;
1417
1417
  if (m && m.classList.contains("upload-info-icon")) {
1418
1418
  !e || !d.contains(e) ? s(null) : e.closest(".upload-info-icon") || s(null);
@@ -1426,13 +1426,13 @@ function Rt(t, u, i, s) {
1426
1426
  s(null);
1427
1427
  }
1428
1428
  };
1429
- return d.addEventListener("mouseover", k, !0), d.addEventListener("mouseout", S, !0), () => {
1430
- d.removeEventListener("mouseover", k, !0), d.removeEventListener("mouseout", S, !0);
1429
+ return d.addEventListener("mouseover", k, !0), d.addEventListener("mouseout", T, !0), () => {
1430
+ d.removeEventListener("mouseover", k, !0), d.removeEventListener("mouseout", T, !0);
1431
1431
  };
1432
1432
  }, [u, i, t, s]);
1433
1433
  }
1434
1434
  function Ft(t, u, i, s) {
1435
- ce(() => {
1435
+ le(() => {
1436
1436
  if (!t.current) return;
1437
1437
  const d = (m) => {
1438
1438
  if (s === "hideTagClose")
@@ -1442,7 +1442,7 @@ function Ft(t, u, i, s) {
1442
1442
  }, k = () => {
1443
1443
  i(null);
1444
1444
  };
1445
- let S;
1445
+ let T;
1446
1446
  const v = () => {
1447
1447
  if (!t.current) return;
1448
1448
  t.current.querySelectorAll(
@@ -1451,10 +1451,10 @@ function Ft(t, u, i, s) {
1451
1451
  e.addEventListener("mouseenter", d), e.addEventListener("mouseleave", k);
1452
1452
  });
1453
1453
  };
1454
- return S = requestAnimationFrame(() => {
1455
- S = requestAnimationFrame(v);
1454
+ return T = requestAnimationFrame(() => {
1455
+ T = requestAnimationFrame(v);
1456
1456
  }), () => {
1457
- cancelAnimationFrame(S), t.current && t.current.querySelectorAll(
1457
+ cancelAnimationFrame(T), t.current && t.current.querySelectorAll(
1458
1458
  ".tag-node[data-tooltip]"
1459
1459
  ).forEach((e) => {
1460
1460
  e.removeEventListener("mouseenter", d), e.removeEventListener("mouseleave", k);
@@ -1463,17 +1463,17 @@ function Ft(t, u, i, s) {
1463
1463
  }, [u, t, i, s]);
1464
1464
  }
1465
1465
  function zt(t, u, i) {
1466
- ce(() => {
1466
+ le(() => {
1467
1467
  const s = t.current;
1468
1468
  if (!s) return;
1469
- const d = (S) => {
1470
- const v = S.target?.closest(".variable-info-icon");
1469
+ const d = (T) => {
1470
+ const v = T.target?.closest(".variable-info-icon");
1471
1471
  if (v && v.classList.contains("variable-info-icon")) {
1472
1472
  const m = v.dataset.variableKey;
1473
1473
  m && i({ key: m, anchorEl: v, type: "variable" });
1474
1474
  }
1475
- }, k = (S) => {
1476
- const v = S.target?.closest(".variable-info-icon"), m = S.relatedTarget;
1475
+ }, k = (T) => {
1476
+ const v = T.target?.closest(".variable-info-icon"), m = T.relatedTarget;
1477
1477
  v && v.classList.contains("variable-info-icon") && (!m || !s.contains(m) ? i(null) : m.closest(".variable-info-icon") || i(null));
1478
1478
  };
1479
1479
  return s.addEventListener("mouseover", d, !0), s.addEventListener("mouseout", k, !0), () => {
@@ -1482,7 +1482,7 @@ function zt(t, u, i) {
1482
1482
  }, [u, t, i]);
1483
1483
  }
1484
1484
  function Yt(t, u, i, s) {
1485
- ce(() => {
1485
+ le(() => {
1486
1486
  if (!t.current) return;
1487
1487
  const d = (m) => {
1488
1488
  const e = m.currentTarget;
@@ -1490,7 +1490,7 @@ function Yt(t, u, i, s) {
1490
1490
  }, k = () => {
1491
1491
  s(null);
1492
1492
  };
1493
- let S;
1493
+ let T;
1494
1494
  const v = () => {
1495
1495
  if (!t.current) return;
1496
1496
  t.current.querySelectorAll(
@@ -1499,10 +1499,10 @@ function Yt(t, u, i, s) {
1499
1499
  e.addEventListener("mouseenter", d), e.addEventListener("mouseleave", k);
1500
1500
  });
1501
1501
  };
1502
- return S = requestAnimationFrame(() => {
1503
- S = requestAnimationFrame(v);
1502
+ return T = requestAnimationFrame(() => {
1503
+ T = requestAnimationFrame(v);
1504
1504
  }), () => {
1505
- cancelAnimationFrame(S), t.current && t.current.querySelectorAll(
1505
+ cancelAnimationFrame(T), t.current && t.current.querySelectorAll(
1506
1506
  ".upload-label[data-file-name]"
1507
1507
  ).forEach((e) => {
1508
1508
  e.removeEventListener("mouseenter", d), e.removeEventListener("mouseleave", k);
@@ -1511,7 +1511,7 @@ function Yt(t, u, i, s) {
1511
1511
  }, [u, i, t, s]);
1512
1512
  }
1513
1513
  function Wt(t, u, i, s) {
1514
- ce(() => {
1514
+ le(() => {
1515
1515
  const d = setTimeout(() => {
1516
1516
  He(t, u, i), Ge(t, u, i, s);
1517
1517
  }, 0);
@@ -1520,11 +1520,11 @@ function Wt(t, u, i, s) {
1520
1520
  }
1521
1521
  function jt(t, u) {
1522
1522
  const i = Q(0), s = Q(0);
1523
- ce(() => {
1523
+ le(() => {
1524
1524
  if (!t.current) return;
1525
1525
  let d = !1, k = 0;
1526
- const S = (l) => l instanceof HTMLElement ? !!(l.closest(".rte-datepicker-wrapper") || l.closest(".rte-datepicker-host") || l.closest(".ant-picker") || l.closest(".ant-picker-dropdown")) : !1, v = (l) => l instanceof HTMLElement ? !!(l.closest(".rte-select-wrapper") || l.closest(".rte-select-host") || l.closest(".ant-select") || l.closest(".ant-select-dropdown")) : !1, m = (l) => {
1527
- d = !0, S(l.target) && (i.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), v(l.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1526
+ const T = (l) => l instanceof HTMLElement ? !!(l.closest(".rte-datepicker-wrapper") || l.closest(".rte-datepicker-host") || l.closest(".ant-picker") || l.closest(".ant-picker-dropdown")) : !1, v = (l) => l instanceof HTMLElement ? !!(l.closest(".rte-select-wrapper") || l.closest(".rte-select-host") || l.closest(".ant-select") || l.closest(".ant-select-dropdown")) : !1, m = (l) => {
1527
+ d = !0, T(l.target) && (i.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), v(l.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1528
1528
  }, e = () => {
1529
1529
  d = !1, k = Date.now();
1530
1530
  };
@@ -1536,7 +1536,7 @@ function jt(t, u) {
1536
1536
  }, n = () => {
1537
1537
  p = Date.now();
1538
1538
  }, r = (l) => {
1539
- S(l.target) && (i.current = Date.now(), console.log("[SelectionCtrl] focusin datepicker target")), v(l.target) && (s.current = Date.now(), console.log("[SelectionCtrl] focusin select target"));
1539
+ T(l.target) && (i.current = Date.now(), console.log("[SelectionCtrl] focusin datepicker target")), v(l.target) && (s.current = Date.now(), console.log("[SelectionCtrl] focusin select target"));
1540
1540
  }, o = () => {
1541
1541
  if (Date.now() - i.current < 800 || Date.now() - s.current < 800) {
1542
1542
  console.log("[SelectionCtrl] skip selectionchange due to recent picker/select interaction");
@@ -1588,8 +1588,8 @@ function jt(t, u) {
1588
1588
  } else
1589
1589
  w.removeAllRanges();
1590
1590
  }
1591
- }, h = t.current;
1592
- return h && (h.addEventListener("compositionstart", c), h.addEventListener("compositionend", a), h.addEventListener("input", n)), document.addEventListener("mousedown", m), document.addEventListener("mouseup", e), document.addEventListener("focusin", r), document.addEventListener("selectionchange", o), () => {
1591
+ }, g = t.current;
1592
+ return g && (g.addEventListener("compositionstart", c), g.addEventListener("compositionend", a), g.addEventListener("input", n)), document.addEventListener("mousedown", m), document.addEventListener("mouseup", e), document.addEventListener("focusin", r), document.addEventListener("selectionchange", o), () => {
1593
1593
  const l = t.current;
1594
1594
  l && (l.removeEventListener("compositionstart", c), l.removeEventListener("compositionend", a), l.removeEventListener("input", n)), document.removeEventListener("mousedown", m), document.removeEventListener("mouseup", e), document.removeEventListener("focusin", r), document.removeEventListener("selectionchange", o);
1595
1595
  };
@@ -1604,7 +1604,7 @@ function nt() {
1604
1604
  (function(i, s) {
1605
1605
  t.exports = s();
1606
1606
  })(Kt, function() {
1607
- var i = 1e3, s = 6e4, d = 36e5, k = "millisecond", S = "second", v = "minute", m = "hour", e = "day", E = "week", p = "month", c = "quarter", a = "year", n = "date", r = "Invalid Date", o = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|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, l = { 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(y) {
1607
+ var i = 1e3, s = 6e4, d = 36e5, k = "millisecond", T = "second", v = "minute", m = "hour", e = "day", E = "week", p = "month", c = "quarter", a = "year", n = "date", r = "Invalid Date", o = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|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, l = { 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(y) {
1608
1608
  var f = ["th", "st", "nd", "rd"], x = y % 100;
1609
1609
  return "[" + y + (f[(x - 20) % 10] || f[x] || f[0]) + "]";
1610
1610
  } }, w = function(y, f, x) {
@@ -1620,7 +1620,7 @@ function nt() {
1620
1620
  }, a: function(y) {
1621
1621
  return y < 0 ? Math.ceil(y) || 0 : Math.floor(y);
1622
1622
  }, p: function(y) {
1623
- return { M: p, y: a, w: E, d: e, D: n, h: m, m: v, s: S, ms: k, Q: c }[y] || String(y || "").toLowerCase().replace(/s$/, "");
1623
+ return { M: p, y: a, w: E, d: e, D: n, h: m, m: v, s: T, ms: k, Q: c }[y] || String(y || "").toLowerCase().replace(/s$/, "");
1624
1624
  }, u: function(y) {
1625
1625
  return y === void 0;
1626
1626
  } }, I = "en", q = {};
@@ -1710,7 +1710,7 @@ function nt() {
1710
1710
  return se(xe + "Minutes", 1);
1711
1711
  case v:
1712
1712
  return se(xe + "Seconds", 2);
1713
- case S:
1713
+ case T:
1714
1714
  return se(xe + "Milliseconds", 3);
1715
1715
  default:
1716
1716
  return this.clone();
@@ -1718,7 +1718,7 @@ function nt() {
1718
1718
  }, f.endOf = function(x) {
1719
1719
  return this.startOf(x, !1);
1720
1720
  }, f.$set = function(x, L) {
1721
- var N, Y = B.p(x), z = "set" + (this.$u ? "UTC" : ""), ne = (N = {}, N[e] = z + "Date", N[n] = z + "Date", N[p] = z + "Month", N[a] = z + "FullYear", N[m] = z + "Hours", N[v] = z + "Minutes", N[S] = z + "Seconds", N[k] = z + "Milliseconds", N)[Y], se = Y === e ? this.$D + (L - this.$W) : L;
1721
+ var N, Y = B.p(x), z = "set" + (this.$u ? "UTC" : ""), ne = (N = {}, N[e] = z + "Date", N[n] = z + "Date", N[p] = z + "Month", N[a] = z + "FullYear", N[m] = z + "Hours", N[v] = z + "Minutes", N[T] = z + "Seconds", N[k] = z + "Milliseconds", N)[Y], se = Y === e ? this.$D + (L - this.$W) : L;
1722
1722
  if (Y === p || Y === a) {
1723
1723
  var ue = this.clone().set(n, 1);
1724
1724
  ue.$d[ne](se), ue.init(), this.$d = ue.set(n, Math.min(this.$D, ue.daysInMonth())).$d;
@@ -1739,22 +1739,22 @@ function nt() {
1739
1739
  if (z === a) return this.set(a, this.$y + x);
1740
1740
  if (z === e) return ne(1);
1741
1741
  if (z === E) return ne(7);
1742
- var se = (N = {}, N[v] = s, N[m] = d, N[S] = i, N)[z] || 1, ue = this.$d.getTime() + x * se;
1742
+ var se = (N = {}, N[v] = s, N[m] = d, N[T] = i, N)[z] || 1, ue = this.$d.getTime() + x * se;
1743
1743
  return B.w(ue, this);
1744
1744
  }, f.subtract = function(x, L) {
1745
1745
  return this.add(-1 * x, L);
1746
1746
  }, f.format = function(x) {
1747
1747
  var L = this, N = this.$locale();
1748
1748
  if (!this.isValid()) return N.invalidDate || r;
1749
- var Y = x || "YYYY-MM-DDTHH:mm:ssZ", z = B.z(this), ne = this.$H, se = this.$m, ue = this.$M, pe = N.weekdays, fe = N.months, xe = N.meridiem, K = function(me, be, Ee, $e) {
1750
- return me && (me[be] || me(L, Y)) || Ee[be].slice(0, $e);
1749
+ var Y = x || "YYYY-MM-DDTHH:mm:ssZ", z = B.z(this), ne = this.$H, se = this.$m, ue = this.$M, pe = N.weekdays, fe = N.months, xe = N.meridiem, K = function(me, be, Ee, Ce) {
1750
+ return me && (me[be] || me(L, Y)) || Ee[be].slice(0, Ce);
1751
1751
  }, de = function(me) {
1752
1752
  return B.s(ne % 12 || 12, me, "0");
1753
1753
  }, he = xe || function(me, be, Ee) {
1754
- var $e = me < 12 ? "AM" : "PM";
1755
- return Ee ? $e.toLowerCase() : $e;
1754
+ var Ce = me < 12 ? "AM" : "PM";
1755
+ return Ee ? Ce.toLowerCase() : Ce;
1756
1756
  };
1757
- return Y.replace(h, function(me, be) {
1757
+ return Y.replace(g, function(me, be) {
1758
1758
  return be || function(Ee) {
1759
1759
  switch (Ee) {
1760
1760
  case "YY":
@@ -1837,7 +1837,7 @@ function nt() {
1837
1837
  case v:
1838
1838
  Y = pe / s;
1839
1839
  break;
1840
- case S:
1840
+ case T:
1841
1841
  Y = pe / i;
1842
1842
  break;
1843
1843
  default:
@@ -1864,7 +1864,7 @@ function nt() {
1864
1864
  return this.$d.toUTCString();
1865
1865
  }, y;
1866
1866
  }(), ae = te.prototype;
1867
- return R.prototype = ae, [["$ms", k], ["$s", S], ["$m", v], ["$H", m], ["$W", e], ["$M", p], ["$y", a], ["$D", n]].forEach(function(y) {
1867
+ return R.prototype = ae, [["$ms", k], ["$s", T], ["$m", v], ["$H", m], ["$W", e], ["$M", p], ["$y", a], ["$D", n]].forEach(function(y) {
1868
1868
  ae[y[1]] = function(f) {
1869
1869
  return this.$g(f, y[0], y[1]);
1870
1870
  };
@@ -1884,13 +1884,13 @@ function Qt() {
1884
1884
  (function(i, s) {
1885
1885
  t.exports = s(nt());
1886
1886
  })(Jt, function(i) {
1887
- function s(S) {
1888
- return S && typeof S == "object" && "default" in S ? S : { default: S };
1887
+ function s(T) {
1888
+ return T && typeof T == "object" && "default" in T ? T : { default: T };
1889
1889
  }
1890
- var d = s(i), k = { 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(S, v) {
1891
- return v === "W" ? S + "周" : S + "日";
1892
- }, 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(S, v) {
1893
- var m = 100 * S + v;
1890
+ var d = s(i), k = { 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, v) {
1891
+ return v === "W" ? T + "周" : T + "日";
1892
+ }, 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, v) {
1893
+ var m = 100 * T + v;
1894
1894
  return m < 600 ? "凌晨" : m < 900 ? "早上" : m < 1100 ? "上午" : m < 1300 ? "中午" : m < 1800 ? "下午" : "晚上";
1895
1895
  } };
1896
1896
  return d.default.locale(k, null, !0), k;
@@ -2003,7 +2003,7 @@ const rn = {
2003
2003
  at.lang.ok = "确定";
2004
2004
  Ie.locale("zh-cn");
2005
2005
  const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2006
- const i = t.dataset.key, s = t.dataset.value, d = t.dataset.placeholder, k = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, S = t.dataset.disableFuture === "true", [v, m] = J(() => {
2006
+ const i = t.dataset.key, s = t.dataset.value, d = t.dataset.placeholder, k = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, T = t.dataset.disableFuture === "true", [v, m] = J(() => {
2007
2007
  if (!s) return null;
2008
2008
  const r = s.split(",");
2009
2009
  return r.length === 2 && r[0] && r[1] ? [Ie(r[0]), Ie(r[1])] : null;
@@ -2013,7 +2013,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2013
2013
  on,
2014
2014
  {
2015
2015
  value: v,
2016
- disabledDate: (r) => r ? S && r.isAfter(Ie(), "day") ? !0 : !k || !e || !e[0] ? !1 : Math.abs(r.diff(e[0], "days")) > k : !1,
2016
+ disabledDate: (r) => r ? T && r.isAfter(Ie(), "day") ? !0 : !k || !e || !e[0] ? !1 : Math.abs(r.diff(e[0], "days")) > k : !1,
2017
2017
  onCalendarChange: (r) => {
2018
2018
  console.log("[DatePicker] onCalendarChange", r?.map((o) => o?.format("YYYY-MM-DD") || null)), E(r);
2019
2019
  },
@@ -2040,12 +2040,12 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2040
2040
  );
2041
2041
  }, ln = (t) => {
2042
2042
  const [u, i] = J([]);
2043
- return ce(() => {
2043
+ return le(() => {
2044
2044
  const s = t.current;
2045
2045
  if (!s) return;
2046
2046
  const d = () => {
2047
- const S = s.querySelectorAll(".rte-datepicker-host"), v = [];
2048
- S.forEach((m) => {
2047
+ const T = s.querySelectorAll(".rte-datepicker-host"), v = [];
2048
+ T.forEach((m) => {
2049
2049
  const e = m.getAttribute("data-key");
2050
2050
  e && v.push(
2051
2051
  /* @__PURE__ */ $(
@@ -2065,9 +2065,9 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2065
2065
  }), i(v);
2066
2066
  };
2067
2067
  d();
2068
- const k = new MutationObserver((S) => {
2068
+ const k = new MutationObserver((T) => {
2069
2069
  let v = !1;
2070
- for (const m of S)
2070
+ for (const m of T)
2071
2071
  if (m.type === "childList") {
2072
2072
  let e = !1;
2073
2073
  if (m.addedNodes.forEach((E) => {
@@ -2096,7 +2096,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2096
2096
  disabled: s = !1,
2097
2097
  width: d,
2098
2098
  lockStructure: k = !1,
2099
- agentOptions: S = [],
2099
+ agentOptions: T = [],
2100
2100
  onAgentSelect: v,
2101
2101
  onAgentExit: m,
2102
2102
  loading: e = !1,
@@ -2105,65 +2105,73 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2105
2105
  background: c = "transparent",
2106
2106
  hideButtons: a
2107
2107
  }) => {
2108
- const n = Q(null), r = Q(null), [o, h] = J({}), [l, w] = J(null), [C, I] = J(null), q = Q(!1), H = Q(null), [j, D] = J(!1), R = Q(null), [B, te] = J(!0), [ae, y] = J(() => {
2108
+ const n = Q(null), r = Q(null), [o, g] = J({}), [l, w] = J(null), [C, I] = J(null), q = Q(!1), H = Q(null), [j, D] = J(!1), R = Q(null), [B, te] = J(!0), [ae, y] = J(() => {
2109
2109
  const b = {};
2110
- return t.forEach((g) => {
2111
- g.type === "multi-variable" && g.key && (b[g.key] = 1);
2110
+ return t.forEach((h) => {
2111
+ h.type === "multi-variable" && h.key && (b[h.key] = 1);
2112
2112
  }), b;
2113
2113
  }), f = Q({}), x = Q({}), L = Q({});
2114
- ce(() => {
2114
+ le(() => {
2115
2115
  x.current = o;
2116
- }, [o]), ce(() => {
2116
+ }, [o]), le(() => {
2117
2117
  L.current = ae;
2118
2118
  }, [ae]);
2119
- const N = re((b) => b.find((T) => T.type === "tag")?.text || null, []), Y = Q(t), z = Q(null);
2120
- ce(() => {
2121
- const b = N(Y.current), g = N(t);
2122
- if (b && b !== g && n.current) {
2123
- const T = {};
2119
+ const N = re((b) => b.find((S) => S.type === "tag")?.text || null, []), Y = Q(t), z = Q(null);
2120
+ le(() => {
2121
+ const b = N(Y.current), h = N(t);
2122
+ if (b && b !== h && n.current) {
2123
+ const S = {};
2124
2124
  n.current.querySelectorAll('[data-type="variable"]').forEach((_) => {
2125
2125
  const F = _.dataset.key;
2126
2126
  if (F) {
2127
2127
  const P = _.innerText.replace(/[\u200B\n]/g, "").trim();
2128
- P && (T[F] = P);
2128
+ P && (S[F] = P);
2129
2129
  }
2130
2130
  }), n.current.querySelectorAll('[data-type="select"]').forEach((_) => {
2131
2131
  const F = _.dataset.key;
2132
2132
  if (F) {
2133
2133
  const P = (_.getAttribute("data-value") || "").trim();
2134
- P && (T[F] = P);
2134
+ P && (S[F] = P);
2135
2135
  }
2136
2136
  }), n.current.querySelectorAll('[data-type="textarea"]').forEach((_) => {
2137
2137
  const F = _.dataset.key;
2138
2138
  if (F) {
2139
2139
  const P = _.value.replace(/[\u200B]/g, "").trim();
2140
- P && (T[F] = P);
2140
+ P && (S[F] = P);
2141
2141
  }
2142
2142
  }), f.current[b] = {
2143
- variableValues: T,
2143
+ variableValues: S,
2144
2144
  files: { ...x.current },
2145
2145
  multiVariableCounts: { ...L.current }
2146
2146
  };
2147
2147
  }
2148
- if (g && f.current[g]) {
2149
- const T = f.current[g];
2150
- z.current = T, h(T.files), y(T.multiVariableCounts);
2151
- } else if (g) {
2148
+ if (h && f.current[h]) {
2149
+ const S = f.current[h];
2150
+ z.current = S, g(S.files), y(S.multiVariableCounts);
2151
+ } else if (h) {
2152
2152
  z.current = null;
2153
- const T = {};
2153
+ const S = {};
2154
2154
  t.forEach((V) => {
2155
- V.type === "multi-variable" && V.key && (T[V.key] = 1);
2156
- }), y(T), h({});
2155
+ V.type === "multi-variable" && V.key && (S[V.key] = 1);
2156
+ }), y(S), g({});
2157
2157
  } else
2158
- z.current = null, y({}), h({});
2158
+ z.current = null, y({}), g({});
2159
2159
  Y.current = t;
2160
2160
  }, [t, N]), je(() => {
2161
2161
  z.current && n.current && (n.current.__tempVariableValues = z.current.variableValues, setTimeout(() => {
2162
2162
  z.current && (z.current = null);
2163
2163
  }, 0));
2164
2164
  }), Gt(n, t, o, k, ae, R, void 0, a), Rt(n, t, o, I), Ft(n, t, I, a), Yt(n, t, o, I), zt(n, t, I), Wt(n, t, o, D), jt(n, q);
2165
- const ne = Ot(n), se = ln(n);
2166
- ce(() => {
2165
+ const ne = Ot(n);
2166
+ le(() => {
2167
+ if (!n.current) return;
2168
+ n.current.querySelectorAll(".rte-richtext-toggle").forEach((h) => {
2169
+ const S = h.getAttribute("data-expanded") === "true";
2170
+ h.innerHTML = S ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
2171
+ });
2172
+ }, [t, n]);
2173
+ const se = ln(n);
2174
+ le(() => {
2167
2175
  if (t.length > 0) {
2168
2176
  te(!1);
2169
2177
  return;
@@ -2173,24 +2181,24 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2173
2181
  te(!0);
2174
2182
  return;
2175
2183
  }
2176
- const T = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", V = n.current.querySelectorAll('[data-type="variable"]'), A = n.current.querySelectorAll('[data-type="upload"]');
2184
+ const S = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", V = n.current.querySelectorAll('[data-type="variable"]'), A = n.current.querySelectorAll('[data-type="upload"]');
2177
2185
  let M = !1;
2178
2186
  V.forEach((F) => {
2179
2187
  (F.textContent?.replace(/[\u200B\n]/g, "").trim() || "") && (M = !0);
2180
2188
  }), A.forEach((F) => {
2181
2189
  F.querySelector(".upload-inner-wrapper.has-file") && (M = !0);
2182
2190
  });
2183
- const _ = !T && !M;
2191
+ const _ = !S && !M;
2184
2192
  te(_), t.length === 0 && D(!_);
2185
2193
  };
2186
2194
  b();
2187
- const g = new MutationObserver(b);
2188
- return n.current && g.observe(n.current, {
2195
+ const h = new MutationObserver(b);
2196
+ return n.current && h.observe(n.current, {
2189
2197
  childList: !0,
2190
2198
  subtree: !0,
2191
2199
  characterData: !0
2192
2200
  }), () => {
2193
- g.disconnect();
2201
+ h.disconnect();
2194
2202
  };
2195
2203
  }, [t]);
2196
2204
  const ue = (b) => {
@@ -2199,25 +2207,25 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2199
2207
  return;
2200
2208
  }
2201
2209
  b.preventDefault();
2202
- const g = b.clipboardData.getData("text/plain"), T = window.getSelection();
2203
- if (T && T.rangeCount > 0) {
2204
- const V = T.anchorNode;
2210
+ const h = b.clipboardData.getData("text/plain"), S = window.getSelection();
2211
+ if (S && S.rangeCount > 0) {
2212
+ const V = S.anchorNode;
2205
2213
  if (V) {
2206
2214
  let A = null;
2207
2215
  if (V.nodeType === Node.ELEMENT_NODE ? A = V.closest('[data-type="variable"]') : V.nodeType === Node.TEXT_NODE && V.parentElement && (A = V.parentElement.closest('[data-type="variable"]')), A) {
2208
2216
  const M = A.dataset.multiKey;
2209
2217
  if (M) {
2210
- const _ = /[、,,\s\n\r\t]+/, F = g.split(_).map((P) => P.trim()).filter((P) => P.length > 0);
2211
- if (console.log("[Paste Event] 粘贴的内容:", g), console.log("[Paste Event] 拆分后的值:", F), F.length > 1) {
2212
- const P = parseInt(A.dataset.index || "0", 10), W = t.find((ie) => ie.type === "multi-variable" && ie.key === M)?.maxCount || 9, X = ae[M] || 1, O = Math.min(P + F.length, W);
2218
+ const _ = /[、,,\s\n\r\t]+/, F = h.split(_).map((P) => P.trim()).filter((P) => P.length > 0);
2219
+ if (console.log("[Paste Event] 粘贴的内容:", h), console.log("[Paste Event] 拆分后的值:", F), F.length > 1) {
2220
+ const P = parseInt(A.dataset.index || "0", 10), W = t.find((ce) => ce.type === "multi-variable" && ce.key === M)?.maxCount || 9, X = ae[M] || 1, O = Math.min(P + F.length, W);
2213
2221
  O > X && y((Z) => ({
2214
2222
  ...Z,
2215
2223
  [M]: O
2216
2224
  }));
2217
2225
  const U = [];
2218
2226
  for (let Z = 0; Z < X; Z++) {
2219
- const ie = `${M}_${Z}`, ge = n.current.querySelector(
2220
- `[data-type="variable"][data-key="${ie}"][data-multi-key="${M}"]`
2227
+ const ce = `${M}_${Z}`, ge = n.current.querySelector(
2228
+ `[data-type="variable"][data-key="${ce}"][data-multi-key="${M}"]`
2221
2229
  );
2222
2230
  if (ge) {
2223
2231
  const we = ge.innerText.replace(/[\u200B\n]/g, "").trim();
@@ -2227,18 +2235,18 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2227
2235
  U.splice(P, 1, ...F.slice(0, W - P));
2228
2236
  const oe = U.slice(0, W);
2229
2237
  oe.length > 0 && oe[oe.length - 1] !== "" && oe.length < W && oe.push("");
2230
- const G = Math.max(oe.length, 1), le = {};
2231
- oe.forEach((Z, ie) => {
2232
- Z && (le[`${M}_${ie}`] = Z);
2238
+ const G = Math.max(oe.length, 1), ie = {};
2239
+ oe.forEach((Z, ce) => {
2240
+ Z && (ie[`${M}_${ce}`] = Z);
2233
2241
  }), n.current.querySelectorAll(
2234
2242
  '[data-type="variable"]'
2235
2243
  ).forEach((Z) => {
2236
- const ie = Z.dataset.key, ge = Z.dataset.multiKey;
2237
- if (ie && ge !== M) {
2244
+ const ce = Z.dataset.key, ge = Z.dataset.multiKey;
2245
+ if (ce && ge !== M) {
2238
2246
  const we = Z.innerText.replace(/[\u200B\n]/g, "").trim();
2239
- we && (le[ie] = we);
2247
+ we && (ie[ce] = we);
2240
2248
  }
2241
- }), n.current.__tempVariableValues = le, y((Z) => ({
2249
+ }), n.current.__tempVariableValues = ie, y((Z) => ({
2242
2250
  ...Z,
2243
2251
  [M]: G
2244
2252
  })), console.log("[Paste Event] 粘贴完成,已填充到多个输入框,值:", oe);
@@ -2248,7 +2256,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2248
2256
  }
2249
2257
  }
2250
2258
  }
2251
- document.execCommand("insertText", !1, g), be(), setTimeout(() => {
2259
+ document.execCommand("insertText", !1, h), be(), setTimeout(() => {
2252
2260
  const V = window.getSelection();
2253
2261
  if (V && V.rangeCount > 0) {
2254
2262
  const A = V.anchorNode;
@@ -2263,27 +2271,27 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2263
2271
  }, 0);
2264
2272
  }, pe = (b) => {
2265
2273
  if (b.target.files && b.target.files[0] && l) {
2266
- const g = b.target.files[0], T = l;
2267
- h((V) => ({ ...V, [T]: g }));
2274
+ const h = b.target.files[0], S = l;
2275
+ g((V) => ({ ...V, [S]: h }));
2268
2276
  }
2269
2277
  b.target && (b.target.value = ""), w(null);
2270
2278
  }, fe = (b) => {
2271
- h((g) => {
2272
- const T = { ...g };
2273
- return delete T[b], T;
2279
+ g((h) => {
2280
+ const S = { ...h };
2281
+ return delete S[b], S;
2274
2282
  });
2275
2283
  }, xe = (b) => {
2276
- const g = b.target;
2277
- if (g.closest(".rte-datepicker-wrapper") || g.closest(".rte-datepicker-host") || g.closest(".rte-select-wrapper") || g.closest(".rte-select-host") || g.closest(".ant-select-dropdown"))
2284
+ const h = b.target;
2285
+ if (h.closest(".rte-datepicker-wrapper") || h.closest(".rte-datepicker-host") || h.closest(".rte-select-wrapper") || h.closest(".rte-select-host") || h.closest(".ant-select-dropdown"))
2278
2286
  return;
2279
- if (g.closest(".tag-close-btn")) {
2287
+ if (h.closest(".tag-close-btn")) {
2280
2288
  if (b.preventDefault(), b.stopPropagation(), k)
2281
2289
  return;
2282
2290
  I(null), m ? m() : n.current && (n.current.innerHTML = "", n.current.focus());
2283
2291
  return;
2284
2292
  }
2285
2293
  if (k) {
2286
- const A = g.closest(".tag-node"), M = g.closest('[data-type="text"]');
2294
+ const A = h.closest(".tag-node"), M = h.closest('[data-type="text"]');
2287
2295
  if (A || M) {
2288
2296
  b.preventDefault(), b.stopPropagation();
2289
2297
  const _ = window.getSelection();
@@ -2291,7 +2299,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2291
2299
  return;
2292
2300
  }
2293
2301
  }
2294
- g.closest('[data-type="variable"]') || (H.current = { x: b.clientX, y: b.clientY }, q.current = !1, g.closest(".file-remove-btn") && (b.preventDefault(), b.stopPropagation()));
2302
+ h.closest('[data-type="variable"]') || (H.current = { x: b.clientX, y: b.clientY }, q.current = !1, h.closest(".file-remove-btn") && (b.preventDefault(), b.stopPropagation()));
2295
2303
  }, K = (b) => {
2296
2304
  if (!b.target.closest('[data-type="variable"]') && H.current) {
2297
2305
  const V = Math.abs(b.clientX - H.current.x), A = Math.abs(b.clientY - H.current.y);
@@ -2306,10 +2314,10 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2306
2314
  }, he = (b) => {
2307
2315
  if (s)
2308
2316
  return;
2309
- const g = b.target;
2310
- if (g.closest('[data-type="datepicker"]'))
2317
+ const h = b.target;
2318
+ if (h.closest('[data-type="datepicker"]'))
2311
2319
  return;
2312
- if (g.closest(".tag-close-btn")) {
2320
+ if (h.closest(".tag-close-btn")) {
2313
2321
  b.preventDefault(), b.stopPropagation();
2314
2322
  return;
2315
2323
  }
@@ -2322,18 +2330,18 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2322
2330
  if (U)
2323
2331
  G.dataset.prevDisplay === void 0 && (G.dataset.prevDisplay = G.style.display || ""), G.style.setProperty("display", "none", "important");
2324
2332
  else if (G.dataset.prevDisplay !== void 0) {
2325
- const le = G.dataset.prevDisplay;
2326
- le ? G.style.display = le : G.style.removeProperty("display"), delete G.dataset.prevDisplay;
2333
+ const ie = G.dataset.prevDisplay;
2334
+ ie ? G.style.display = ie : G.style.removeProperty("display"), delete G.dataset.prevDisplay;
2327
2335
  } else
2328
2336
  G.style.removeProperty("display");
2329
2337
  });
2330
- }, M = g.closest(".rte-textarea-toggle");
2338
+ }, M = h.closest(".rte-textarea-toggle");
2331
2339
  if (M) {
2332
2340
  b.preventDefault(), b.stopPropagation();
2333
2341
  const O = M.closest(".rte-textarea-wrapper"), U = O?.querySelector('[data-type="textarea"]'), G = !(M.getAttribute("data-expanded") === "true");
2334
2342
  M.setAttribute("data-expanded", String(G)), M.textContent = G ? "收起" : "展开", O && O.classList.toggle("rte-textarea-expanded", G);
2335
- const le = O?.closest(".rte-textarea-required");
2336
- if (le ? le.classList.toggle("rte-textarea-overlay", G) : O && O.classList.toggle("rte-textarea-overlay", G), U)
2343
+ const ie = O?.closest(".rte-textarea-required");
2344
+ if (ie ? ie.classList.toggle("rte-textarea-overlay", G) : O && O.classList.toggle("rte-textarea-overlay", G), U)
2337
2345
  if (G)
2338
2346
  U.classList.add("rte-textarea-expanded"), U.style.maxHeight = "none", U.style.height = "100%";
2339
2347
  else {
@@ -2344,12 +2352,12 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2344
2352
  n.current && (G ? n.current.classList.add("rte-overlay-active") : n.current.classList.remove("rte-overlay-active"));
2345
2353
  return;
2346
2354
  }
2347
- const _ = g.closest(".rte-richtext-toggle");
2355
+ const _ = h.closest(".rte-richtext-toggle");
2348
2356
  if (_) {
2349
2357
  b.preventDefault(), b.stopPropagation();
2350
2358
  const O = _.closest(".rte-richtext-wrapper"), U = O?.querySelector('[data-type="richtext"]'), G = !(_.getAttribute("data-expanded") === "true");
2351
- ((ie, ge) => {
2352
- ie.setAttribute("data-expanded", String(ge)), ie.innerHTML = ge ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
2359
+ ((ce, ge) => {
2360
+ ce.setAttribute("data-expanded", String(ge)), ce.innerHTML = ge ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
2353
2361
  })(_, G);
2354
2362
  const ye = O?.closest(".rte-richtext-required");
2355
2363
  ye ? ye.classList.toggle("rte-richtext-expanded", G) : O && O.classList.toggle("rte-richtext-expanded", G);
@@ -2357,19 +2365,19 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2357
2365
  U && (G ? (U.style.height = "100%", U.style.overflow = "auto") : (U.style.height = "", U.style.overflow = "")), Z && (Z.classList.toggle("rte-richtext-host-expanded", G), A(Z, G)), n.current && n.current.classList.toggle("rte-richtext-fullscreen-active", G);
2358
2366
  return;
2359
2367
  }
2360
- if (g.closest('[data-type="text"]')) {
2368
+ if (h.closest('[data-type="text"]')) {
2361
2369
  b.preventDefault(), b.stopPropagation();
2362
2370
  const O = window.getSelection();
2363
2371
  O && O.removeAllRanges();
2364
2372
  return;
2365
2373
  }
2366
- if (k && g.closest(".tag-node")) {
2374
+ if (k && h.closest(".tag-node")) {
2367
2375
  b.preventDefault(), b.stopPropagation();
2368
2376
  const U = window.getSelection();
2369
2377
  U && U.removeAllRanges();
2370
2378
  return;
2371
2379
  }
2372
- if (g.closest('[data-type="variable"]')) {
2380
+ if (h.closest('[data-type="variable"]')) {
2373
2381
  if (q.current)
2374
2382
  return;
2375
2383
  setTimeout(() => {
@@ -2378,49 +2386,49 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2378
2386
  }, 10);
2379
2387
  return;
2380
2388
  }
2381
- const W = g.closest(".file-remove-btn");
2389
+ const W = h.closest(".file-remove-btn");
2382
2390
  if (W) {
2383
2391
  b.preventDefault(), b.stopPropagation();
2384
2392
  const U = W.closest('[data-type="upload"]')?.dataset.key;
2385
2393
  U && fe(U);
2386
2394
  return;
2387
2395
  }
2388
- const X = g.closest('[data-type="upload"]');
2396
+ const X = h.closest('[data-type="upload"]');
2389
2397
  if (X) {
2390
2398
  const O = X.dataset.key;
2391
2399
  O && (w(O), r.current?.click());
2392
2400
  return;
2393
2401
  }
2394
2402
  }, me = (b) => {
2395
- const T = b.target.closest('[data-type="variable"]');
2396
- if (T) {
2403
+ const S = b.target.closest('[data-type="variable"]');
2404
+ if (S) {
2397
2405
  const V = window.getSelection();
2398
2406
  if (V) {
2399
- const A = document.createRange(), M = T.textContent || "";
2407
+ const A = document.createRange(), M = S.textContent || "";
2400
2408
  if (M.replace(/\u200B/g, "")) {
2401
2409
  let F = 0, P = M.length;
2402
2410
  M.startsWith("​") && (F = 1), M.endsWith("​") && M.length > 1 && (P = M.length - 1);
2403
- const W = T.firstChild;
2404
- W && W.nodeType === Node.TEXT_NODE ? (A.setStart(W, F), A.setEnd(W, P)) : A.selectNodeContents(T);
2411
+ const W = S.firstChild;
2412
+ W && W.nodeType === Node.TEXT_NODE ? (A.setStart(W, F), A.setEnd(W, P)) : A.selectNodeContents(S);
2405
2413
  } else
2406
- A.selectNodeContents(T), A.collapse(!0);
2414
+ A.selectNodeContents(S), A.collapse(!0);
2407
2415
  V.removeAllRanges(), V.addRange(A);
2408
2416
  }
2409
2417
  }
2410
2418
  }, be = () => {
2411
2419
  if (t.length === 0) {
2412
2420
  if (n.current) {
2413
- const T = !(n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "");
2414
- te(T), D(!T);
2421
+ const S = !(n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "");
2422
+ te(S), D(!S);
2415
2423
  }
2416
2424
  return;
2417
2425
  }
2418
- if (Oe(n), n.current && n.current.querySelectorAll('[data-type="variable"]').forEach((T) => {
2419
- const V = T.querySelector(".variable-info-icon");
2426
+ if (Oe(n), n.current && n.current.querySelectorAll('[data-type="variable"]').forEach((S) => {
2427
+ const V = S.querySelector(".variable-info-icon");
2420
2428
  if (V) {
2421
2429
  let A = !1;
2422
2430
  const M = document.createTreeWalker(
2423
- T,
2431
+ S,
2424
2432
  NodeFilter.SHOW_TEXT,
2425
2433
  {
2426
2434
  acceptNode: (_) => V.contains(_) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
@@ -2434,12 +2442,12 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2434
2442
  A ? V.classList.add("hidden") : V.classList.remove("hidden");
2435
2443
  }
2436
2444
  }), He(n, t, o), Ge(n, t, o, D), !n.current) return;
2437
- t.filter((g) => g.type === "multi-variable" && g.key).forEach((g) => {
2438
- if (!g.key) return;
2439
- const T = g.maxCount || 9, V = ae[g.key] || 1, A = [];
2445
+ t.filter((h) => h.type === "multi-variable" && h.key).forEach((h) => {
2446
+ if (!h.key) return;
2447
+ const S = h.maxCount || 9, V = ae[h.key] || 1, A = [];
2440
2448
  for (let W = 0; W < V; W++) {
2441
- const X = `${g.key}_${W}`, O = n.current.querySelector(
2442
- `[data-type="variable"][data-key="${X}"][data-multi-key="${g.key}"]`
2449
+ const X = `${h.key}_${W}`, O = n.current.querySelector(
2450
+ `[data-type="variable"][data-key="${X}"][data-multi-key="${h.key}"]`
2443
2451
  );
2444
2452
  if (O) {
2445
2453
  const U = O.innerText.replace(/[\u200B\n]/g, "").trim();
@@ -2456,13 +2464,13 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2456
2464
  if (F && P >= 0) {
2457
2465
  const W = window.getSelection();
2458
2466
  if (W && W.rangeCount > 0) {
2459
- const G = W.getRangeAt(0), le = G.startContainer, ye = le.nodeType === Node.ELEMENT_NODE ? le.closest('[data-type="variable"][data-multi-key]') : le.parentElement?.closest('[data-type="variable"][data-multi-key]');
2467
+ const G = W.getRangeAt(0), ie = G.startContainer, ye = ie.nodeType === Node.ELEMENT_NODE ? ie.closest('[data-type="variable"][data-multi-key]') : ie.parentElement?.closest('[data-type="variable"][data-multi-key]');
2460
2468
  if (ye) {
2461
2469
  const Z = ye.dataset.key;
2462
2470
  if (Z) {
2463
- const ie = document.createRange();
2464
- ie.setStartBefore(ye), ie.setEnd(G.startContainer, G.startOffset);
2465
- const ge = ie.toString().length;
2471
+ const ce = document.createRange();
2472
+ ce.setStartBefore(ye), ce.setEnd(G.startContainer, G.startOffset);
2473
+ const ge = ce.toString().length;
2466
2474
  R.current = { key: Z, offset: ge };
2467
2475
  }
2468
2476
  }
@@ -2472,45 +2480,45 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2472
2480
  X[G] = X[G + 1];
2473
2481
  X.pop();
2474
2482
  const O = {};
2475
- X.forEach((G, le) => {
2476
- G && (O[`${g.key}_${le}`] = G);
2483
+ X.forEach((G, ie) => {
2484
+ G && (O[`${h.key}_${ie}`] = G);
2477
2485
  });
2478
2486
  const U = Math.max(_ ? X.length : X.length + 1, 1);
2479
2487
  n.current.querySelectorAll(
2480
2488
  '[data-type="variable"]'
2481
2489
  ).forEach((G) => {
2482
- const le = G.dataset.key, ye = G.dataset.multiKey;
2483
- if (le && ye !== g.key) {
2490
+ const ie = G.dataset.key, ye = G.dataset.multiKey;
2491
+ if (ie && ye !== h.key) {
2484
2492
  const Z = G.innerText.replace(/[\u200B\n]/g, "").trim();
2485
- Z && (O[le] = Z);
2493
+ Z && (O[ie] = Z);
2486
2494
  }
2487
2495
  }), n.current.__tempVariableValues = O, y((G) => ({
2488
2496
  ...G,
2489
- [g.key]: U
2497
+ [h.key]: U
2490
2498
  }));
2491
2499
  return;
2492
2500
  }
2493
2501
  if (!_) {
2494
- const W = V - 1, X = `${g.key}_${W}`, O = n.current.querySelector(
2495
- `[data-type="variable"][data-key="${X}"][data-multi-key="${g.key}"]`
2502
+ const W = V - 1, X = `${h.key}_${W}`, O = n.current.querySelector(
2503
+ `[data-type="variable"][data-key="${X}"][data-multi-key="${h.key}"]`
2496
2504
  );
2497
- if (O && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && V < T) {
2505
+ if (O && O.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && V < S) {
2498
2506
  const oe = window.getSelection();
2499
2507
  if (oe && oe.rangeCount > 0) {
2500
- const G = oe.getRangeAt(0), le = G.startContainer, ye = le.nodeType === Node.ELEMENT_NODE ? le.closest('[data-type="variable"][data-multi-key]') : le.parentElement?.closest('[data-type="variable"][data-multi-key]');
2508
+ const G = oe.getRangeAt(0), ie = G.startContainer, ye = ie.nodeType === Node.ELEMENT_NODE ? ie.closest('[data-type="variable"][data-multi-key]') : ie.parentElement?.closest('[data-type="variable"][data-multi-key]');
2501
2509
  if (ye) {
2502
2510
  const Z = ye.dataset.key;
2503
2511
  if (Z) {
2504
- const ie = document.createRange();
2505
- ie.setStartBefore(ye), ie.setEnd(G.startContainer, G.startOffset);
2506
- const ge = ie.toString().length;
2512
+ const ce = document.createRange();
2513
+ ce.setStartBefore(ye), ce.setEnd(G.startContainer, G.startOffset);
2514
+ const ge = ce.toString().length;
2507
2515
  R.current = { key: Z, offset: ge };
2508
2516
  }
2509
2517
  }
2510
2518
  }
2511
2519
  y((G) => ({
2512
2520
  ...G,
2513
- [g.key]: V + 1
2521
+ [h.key]: V + 1
2514
2522
  }));
2515
2523
  }
2516
2524
  }
@@ -2519,7 +2527,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2519
2527
  je(() => {
2520
2528
  const b = n.current;
2521
2529
  if (!b) return;
2522
- const g = /* @__PURE__ */ new Map(), T = (M) => {
2530
+ const h = /* @__PURE__ */ new Map(), S = (M) => {
2523
2531
  const _ = M.target, F = M.relatedTarget;
2524
2532
  !_ || !n.current || !n.current.contains(_) || F && n.current.contains(F) || setTimeout(() => {
2525
2533
  if (n.current) {
@@ -2532,12 +2540,12 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2532
2540
  }
2533
2541
  }, 0);
2534
2542
  };
2535
- b.addEventListener("blur", T, !0);
2543
+ b.addEventListener("blur", S, !0);
2536
2544
  const V = () => {
2537
2545
  if (!n.current) return;
2538
- g.forEach((F, P) => {
2546
+ h.forEach((F, P) => {
2539
2547
  P.removeEventListener("blur", F, !1);
2540
- }), g.clear();
2548
+ }), h.clear();
2541
2549
  const M = n.current.querySelectorAll(
2542
2550
  '[data-type="variable"][data-multi-key]'
2543
2551
  ), _ = (F) => {
@@ -2549,7 +2557,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2549
2557
  if (!W || !n.current.contains(W))
2550
2558
  return;
2551
2559
  let X = !1;
2552
- if (g.forEach((ie, ge) => {
2560
+ if (h.forEach((ce, ge) => {
2553
2561
  (ge === W || ge.contains(P)) && (X = !0);
2554
2562
  }), !X)
2555
2563
  return;
@@ -2567,9 +2575,9 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2567
2575
  });
2568
2576
  const Z = /[、,,\s]+/;
2569
2577
  if (Z.test(ye)) {
2570
- const ie = ye.split(Z).map((Se) => Se.trim()).filter((Se) => Se.length > 0);
2571
- console.log("[Blur Event] 拆分前的内容:", ye), console.log("[Blur Event] 拆分后的部分:", ie);
2572
- const we = ie.slice(0, 9);
2578
+ const ce = ye.split(Z).map((Se) => Se.trim()).filter((Se) => Se.length > 0);
2579
+ console.log("[Blur Event] 拆分前的内容:", ye), console.log("[Blur Event] 拆分后的部分:", ce);
2580
+ const we = ce.slice(0, 9);
2573
2581
  if (console.log("[Blur Event] 有效的部分(最多9个):", we), we.length > 1) {
2574
2582
  const Se = t.find((Ne) => Ne.type === "multi-variable" && Ne.key === O);
2575
2583
  if (Se) {
@@ -2606,15 +2614,15 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2606
2614
  }
2607
2615
  };
2608
2616
  M.forEach((F) => {
2609
- F.addEventListener("blur", _, !1), g.set(F, _);
2617
+ F.addEventListener("blur", _, !1), h.set(F, _);
2610
2618
  });
2611
2619
  }, A = setTimeout(() => {
2612
2620
  V();
2613
2621
  }, 0);
2614
2622
  return () => {
2615
- clearTimeout(A), b.removeEventListener("blur", T, !0), g.forEach((M, _) => {
2623
+ clearTimeout(A), b.removeEventListener("blur", S, !0), h.forEach((M, _) => {
2616
2624
  _.removeEventListener("blur", M, !1);
2617
- }), g.clear();
2625
+ }), h.clear();
2618
2626
  };
2619
2627
  }, [t, ae, o]);
2620
2628
  const Ee = (b) => {
@@ -2622,11 +2630,15 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2622
2630
  b.preventDefault();
2623
2631
  return;
2624
2632
  }
2625
- const g = window.getSelection();
2626
- if (g && g.rangeCount > 0) {
2627
- const T = g.anchorNode;
2633
+ if (b.key === "Enter") {
2634
+ b.preventDefault();
2635
+ return;
2636
+ }
2637
+ const h = window.getSelection();
2638
+ if (h && h.rangeCount > 0) {
2639
+ const S = h.anchorNode;
2628
2640
  let V = null;
2629
- if (T && (T.nodeType === Node.ELEMENT_NODE ? V = T.closest('[data-type="text"]') : T.nodeType === Node.TEXT_NODE && T.parentElement && (V = T.parentElement.closest('[data-type="text"]'))), V) {
2641
+ if (S && (S.nodeType === Node.ELEMENT_NODE ? V = S.closest('[data-type="text"]') : S.nodeType === Node.TEXT_NODE && S.parentElement && (V = S.parentElement.closest('[data-type="text"]'))), V) {
2630
2642
  if (b.preventDefault(), b.stopPropagation(), n.current) {
2631
2643
  const A = n.current.querySelector(
2632
2644
  '[data-type="variable"], [data-type="upload"]'
@@ -2636,10 +2648,10 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2636
2648
  return;
2637
2649
  }
2638
2650
  }
2639
- if (k && g && g.rangeCount > 0) {
2640
- const T = g.anchorNode;
2651
+ if (k && h && h.rangeCount > 0) {
2652
+ const S = h.anchorNode;
2641
2653
  let V = null;
2642
- if (T && (T.nodeType === Node.ELEMENT_NODE ? V = T.closest(".tag-node") : T.nodeType === Node.TEXT_NODE && T.parentElement && (V = T.parentElement.closest(".tag-node"))), V) {
2654
+ if (S && (S.nodeType === Node.ELEMENT_NODE ? V = S.closest(".tag-node") : S.nodeType === Node.TEXT_NODE && S.parentElement && (V = S.parentElement.closest(".tag-node"))), V) {
2643
2655
  if (b.preventDefault(), b.stopPropagation(), n.current) {
2644
2656
  const A = n.current.querySelector(
2645
2657
  '[data-type="variable"], [data-type="upload"]'
@@ -2649,7 +2661,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2649
2661
  return;
2650
2662
  }
2651
2663
  }
2652
- if (b.key === "Enter" && !b.shiftKey && (b.preventDefault(), $e()), b.key === "Escape" && n.current) {
2664
+ if (b.key === "Escape" && n.current) {
2653
2665
  if (k) {
2654
2666
  b.preventDefault();
2655
2667
  return;
@@ -2657,9 +2669,9 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2657
2669
  n.current.innerHTML = "", n.current.focus();
2658
2670
  }
2659
2671
  if (b.key === "Backspace") {
2660
- const T = window.getSelection();
2661
- if (T && T.rangeCount > 0) {
2662
- const V = T.getRangeAt(0), A = T.anchorNode;
2672
+ const S = window.getSelection();
2673
+ if (S && S.rangeCount > 0) {
2674
+ const V = S.getRangeAt(0), A = S.anchorNode;
2663
2675
  if (k) {
2664
2676
  let _ = null, F = null;
2665
2677
  if (A && (A.nodeType === Node.ELEMENT_NODE ? (_ = A.closest(".tag-node"), F = A.closest('[data-type="text"]')) : A.nodeType === Node.TEXT_NODE && A.parentElement && (_ = A.parentElement.closest(".tag-node"), F = A.parentElement.closest('[data-type="text"]'))), (_ || F) && V.collapsed && V.startOffset === 0) {
@@ -2691,7 +2703,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2691
2703
  }
2692
2704
  }
2693
2705
  }
2694
- }, $e = () => {
2706
+ }, Ce = () => {
2695
2707
  if (i || s || e || !j || !n.current) return;
2696
2708
  if (t.length === 0) {
2697
2709
  const M = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
@@ -2700,11 +2712,11 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2700
2712
  return;
2701
2713
  }
2702
2714
  const b = n.current;
2703
- let g = "";
2704
- const T = {}, V = (M) => {
2715
+ let h = "";
2716
+ const S = {}, V = (M) => {
2705
2717
  if (!(M.nodeType === Node.ELEMENT_NODE && M.style.display === "none")) {
2706
2718
  if (M.nodeType === Node.TEXT_NODE)
2707
- g += (M.textContent || "").replace(/\u200B/g, "");
2719
+ h += (M.textContent || "").replace(/\u200B/g, "");
2708
2720
  else if (M.nodeType === Node.ELEMENT_NODE) {
2709
2721
  const _ = M, F = _.dataset.type, P = _.dataset.key;
2710
2722
  if (F === "variable" && P) {
@@ -2725,42 +2737,42 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2725
2737
  if (O) {
2726
2738
  const U = _.dataset.multiKey;
2727
2739
  if (U) {
2728
- (!T[U] || !Array.isArray(T[U])) && (T[U] = []);
2729
- const oe = T[U];
2730
- oe.push(O), oe.length > 1 && (g += " "), g += O;
2740
+ (!S[U] || !Array.isArray(S[U])) && (S[U] = []);
2741
+ const oe = S[U];
2742
+ oe.push(O), oe.length > 1 && (h += " "), h += O;
2731
2743
  } else
2732
- T[P] = O, g += O;
2744
+ S[P] = O, h += O;
2733
2745
  }
2734
2746
  } else if (F === "select" && P) {
2735
2747
  const W = (_.getAttribute("data-value") || "").trim();
2736
- W && (T[P] = W, g += W);
2748
+ W && (S[P] = W, h += W);
2737
2749
  } else if (F === "textarea" && P) {
2738
2750
  const X = (_.value || "").replace(/\u200B/g, "").trim();
2739
- X && (T[P] = X, g += X);
2751
+ X && (S[P] = X, h += X);
2740
2752
  } else if (F === "richtext" && P) {
2741
2753
  const X = (_.textContent || "").replace(/\u200B/g, "").trim();
2742
- X && (T[P] = X, g += X);
2754
+ X && (S[P] = X, h += X);
2743
2755
  } else if (F === "datepicker" && P) {
2744
2756
  const X = (_.getAttribute("data-value") || "").trim();
2745
2757
  if (X)
2746
2758
  if (X.includes(",")) {
2747
2759
  const O = X.split(",");
2748
- O.length === 2 ? (T[P] = O, g += `[${O[0]}, ${O[1]}]`) : (T[P] = X, g += X);
2760
+ O.length === 2 ? (S[P] = O, h += `[${O[0]}, ${O[1]}]`) : (S[P] = X, h += X);
2749
2761
  } else
2750
- T[P] = X, g += X;
2762
+ S[P] = X, h += X;
2751
2763
  } else if (F === "upload" && P)
2752
- T[P] = o[P] ?? null, o[P] && (g += ` [附带文件: ${o[P]?.name}] `);
2764
+ S[P] = o[P] ?? null, o[P] && (h += ` [附带文件: ${o[P]?.name}] `);
2753
2765
  else {
2754
2766
  if (_.classList.contains("tag-close-btn") || _.classList.contains("file-remove-btn")) return;
2755
- _.getAttribute("contenteditable") === "false" && !F && _.classList.contains("tag-node") ? g += _.innerText : _.childNodes.forEach(V);
2767
+ _.getAttribute("contenteditable") === "false" && !F && _.classList.contains("tag-node") ? h += _.innerText : _.childNodes.forEach(V);
2756
2768
  }
2757
2769
  }
2758
2770
  }
2759
2771
  };
2760
- if (b.childNodes.forEach(V), g = g.trim(), !g) return;
2772
+ if (b.childNodes.forEach(V), h = h.trim(), !h) return;
2761
2773
  const A = new FormData();
2762
- A.append("fullPrompt", g), Object.keys(T).forEach((M) => {
2763
- const _ = T[M];
2774
+ A.append("fullPrompt", h), Object.keys(S).forEach((M) => {
2775
+ const _ = S[M];
2764
2776
  _ != null && (_ instanceof File ? A.append(M, _) : Array.isArray(_) ? t.some(
2765
2777
  (P) => P.type === "multi-variable" && P.key === M
2766
2778
  ) ? _.forEach((P) => {
@@ -2768,7 +2780,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2768
2780
  }) : _.forEach((P, W) => {
2769
2781
  P != null && (P instanceof File ? A.append(`${M}[${W}]`, P) : typeof P == "string" ? A.append(`${M}[${W}]`, P) : A.append(`${M}[${W}]`, String(P)));
2770
2782
  }) : typeof _ == "string" ? A.append(M, _) : A.append(M, String(_)));
2771
- }), u(A, g);
2783
+ }), u(A, h);
2772
2784
  }, ot = {
2773
2785
  ...d ? { width: typeof d == "number" ? `${d}px` : d } : {},
2774
2786
  ...p ? { border: p } : {},
@@ -2820,7 +2832,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2820
2832
  {
2821
2833
  placement: "top",
2822
2834
  menu: {
2823
- items: S.filter((b) => b.isShowNew !== 1).map((b) => ({
2835
+ items: T.filter((b) => b.isShowNew !== 1).map((b) => ({
2824
2836
  key: b.key,
2825
2837
  label: /* @__PURE__ */ ee("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2826
2838
  b.icon && /* @__PURE__ */ $("i", { className: b.icon }),
@@ -2833,8 +2845,8 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2833
2845
  },
2834
2846
  trigger: ["click"],
2835
2847
  disabled: s || i,
2836
- children: /* @__PURE__ */ ee("div", { className: "rte-agent-badge", style: { cursor: S.length > 0 ? "pointer" : "default" }, children: [
2837
- /* @__PURE__ */ $("i", { className: "iconfont icon-zhinengti" }),
2848
+ children: /* @__PURE__ */ ee("div", { className: "rte-agent-badge", style: { cursor: T.length > 0 ? "pointer" : "default" }, children: [
2849
+ /* @__PURE__ */ $("i", { className: "iconfont icon-zhinengti", style: { fontSize: "16px" } }),
2838
2850
  /* @__PURE__ */ $("span", { className: "rte-agent-text", children: "智能体" })
2839
2851
  ] })
2840
2852
  }
@@ -2842,14 +2854,14 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2842
2854
  ] }) }),
2843
2855
  /* @__PURE__ */ ee("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2844
2856
  (() => {
2845
- const b = t.find((T) => T.type === "tag");
2857
+ const b = t.find((S) => S.type === "tag");
2846
2858
  if (!b || !b.text) return null;
2847
- const g = S.find((T) => T.label === b.text);
2848
- return !g || g.points === void 0 || g.points === null ? null : /* @__PURE__ */ ee("div", { className: "rte-points-badge", children: [
2859
+ const h = T.find((S) => S.label === b.text);
2860
+ return !h || h.points === void 0 || h.points === null ? null : /* @__PURE__ */ ee("div", { className: "rte-points-badge", children: [
2849
2861
  /* @__PURE__ */ $("i", { className: "iconfont icon-jifen", style: { marginRight: "4px" } }),
2850
2862
  /* @__PURE__ */ ee("span", { style: { fontSize: "16px" }, children: [
2851
2863
  "-",
2852
- String(g.points)
2864
+ String(h.points)
2853
2865
  ] })
2854
2866
  ] });
2855
2867
  })(),
@@ -2857,7 +2869,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2857
2869
  "button",
2858
2870
  {
2859
2871
  type: "button",
2860
- onClick: $e,
2872
+ onClick: Ce,
2861
2873
  disabled: i || s || e || !j,
2862
2874
  className: "rich-text-editor-send-button",
2863
2875
  children: i || e ? /* @__PURE__ */ $("span", { className: "rte-send-spinner" }) : /* @__PURE__ */ $("i", { className: "iconfont icon-fasong" })
@@ -2868,7 +2880,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2868
2880
  C?.anchorEl && (() => {
2869
2881
  if (!document.body.contains(C.anchorEl))
2870
2882
  return null;
2871
- let b = "", g = {
2883
+ let b = "", h = {
2872
2884
  background: "var(--neutral-800, #262626)"
2873
2885
  };
2874
2886
  if (C.type === "upload")
@@ -2885,7 +2897,7 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2885
2897
  const V = o[C.key];
2886
2898
  if (V && V.type && V.type.startsWith("image/")) {
2887
2899
  const A = URL.createObjectURL(V);
2888
- b = /* @__PURE__ */ $("div", { style: { width: 120, height: 120, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ $("img", { src: A, style: { maxWidth: 120, maxHeight: 120, objectFit: "contain" } }) }), g = {
2900
+ b = /* @__PURE__ */ $("div", { style: { width: 120, height: 120, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ $("img", { src: A, style: { maxWidth: 120, maxHeight: 120, objectFit: "contain" } }) }), h = {
2889
2901
  background: "#fff",
2890
2902
  padding: 4
2891
2903
  }, setTimeout(() => URL.revokeObjectURL(A), 1e3);
@@ -2893,17 +2905,17 @@ const { RangePicker: on } = ft, sn = ({ host: t, onChange: u }) => {
2893
2905
  b = "";
2894
2906
  }
2895
2907
  if (!b) return null;
2896
- const T = C.type === "upload-preview" ? "#0A0A0A" : "#fff";
2908
+ const S = C.type === "upload-preview" ? "#0A0A0A" : "#fff";
2897
2909
  return ze(
2898
2910
  /* @__PURE__ */ $(
2899
2911
  mt,
2900
2912
  {
2901
2913
  arrow: !1,
2902
- title: /* @__PURE__ */ $("div", { style: { maxWidth: "200px", fontSize: "12px", color: T }, children: b }),
2914
+ title: /* @__PURE__ */ $("div", { style: { maxWidth: "200px", fontSize: "12px", color: S }, children: b }),
2903
2915
  open: !0,
2904
2916
  placement: "top",
2905
2917
  getPopupContainer: () => document.body,
2906
- overlayInnerStyle: g,
2918
+ overlayInnerStyle: h,
2907
2919
  children: /* @__PURE__ */ $(
2908
2920
  "div",
2909
2921
  {
@@ -2968,7 +2980,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
2968
2980
  loadIcon: s,
2969
2981
  onBatchSizeChange: d,
2970
2982
  onLoadNextPage: k,
2971
- onStartAutoLoad: S,
2983
+ onStartAutoLoad: T,
2972
2984
  onStopLoad: v
2973
2985
  }) => t && i ? /* @__PURE__ */ ee("div", { className: "auto_load_progress", children: [
2974
2986
  s || /* @__PURE__ */ $("img", { src: Ze, alt: "自动加载", width: 14, height: 14 }),
@@ -3012,7 +3024,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3012
3024
  "div",
3013
3025
  {
3014
3026
  className: "auto_load_btn",
3015
- onClick: t ? void 0 : S,
3027
+ onClick: t ? void 0 : T,
3016
3028
  children: [
3017
3029
  s || /* @__PURE__ */ $("img", { src: Ze, alt: "自动加载", width: 14, height: 14 }),
3018
3030
  /* @__PURE__ */ $("span", { children: "自动加载" })
@@ -3041,7 +3053,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3041
3053
  total: s,
3042
3054
  cachedPages: d,
3043
3055
  loadedCount: k,
3044
- autoLoading: S = !1,
3056
+ autoLoading: T = !1,
3045
3057
  loadingProgress: v,
3046
3058
  onChange: m,
3047
3059
  onLoadNextPage: e,
@@ -3071,7 +3083,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3071
3083
  dn,
3072
3084
  {
3073
3085
  loadIcon: u || void 0,
3074
- autoLoading: S,
3086
+ autoLoading: T,
3075
3087
  batchSize: c,
3076
3088
  loadingProgress: v,
3077
3089
  disabled: !e || !E,
@@ -3122,7 +3134,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3122
3134
  loadingProgress: s,
3123
3135
  columns: d = [],
3124
3136
  dataSource: k = [],
3125
- total: S,
3137
+ total: T,
3126
3138
  current: v,
3127
3139
  pageSize: m,
3128
3140
  cachedPages: e,
@@ -3132,9 +3144,9 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3132
3144
  onStopLoading: a,
3133
3145
  ...n
3134
3146
  } = t, r = Q(null), o = re(
3135
- (h) => {
3136
- E(h), e.includes(h) && r.current?.scrollTo({
3137
- key: `${(h - 1) * m + 1}`
3147
+ (g) => {
3148
+ E(g), e.includes(g) && r.current?.scrollTo({
3149
+ key: `${(g - 1) * m + 1}`
3138
3150
  });
3139
3151
  },
3140
3152
  [v]
@@ -3159,7 +3171,7 @@ const Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3159
3171
  loadingProgress: s,
3160
3172
  current: v,
3161
3173
  pageSize: m,
3162
- total: S,
3174
+ total: T,
3163
3175
  loadedCount: k.length,
3164
3176
  cachedPages: e,
3165
3177
  onChange: o,
@@ -3284,10 +3296,10 @@ const yn = ({
3284
3296
  autoPlay: s = !0,
3285
3297
  value: d,
3286
3298
  onChange: k,
3287
- ...S
3299
+ ...T
3288
3300
  }) => {
3289
- const [v, m] = J(""), [e, E] = J(0), [p, c] = J(!1), [a, n] = J(!1), [r, o] = J(!1), h = Q(void 0), l = Q(void 0), w = Q(t), C = Q(e), I = Q(a), q = Q(v);
3290
- ce(() => {
3301
+ const [v, m] = J(""), [e, E] = J(0), [p, c] = J(!1), [a, n] = J(!1), [r, o] = J(!1), g = Q(void 0), l = Q(void 0), w = Q(t), C = Q(e), I = Q(a), q = Q(v);
3302
+ le(() => {
3291
3303
  w.current = t, C.current = e, I.current = a, q.current = v;
3292
3304
  });
3293
3305
  const H = re((y, f) => {
@@ -3309,39 +3321,39 @@ const yn = ({
3309
3321
  const y = w.current[C.current];
3310
3322
  q.current ? j(() => {
3311
3323
  H(y, () => {
3312
- h.current = window.setTimeout(() => {
3324
+ g.current = window.setTimeout(() => {
3313
3325
  E((f) => (f + 1) % w.current.length), c(!1);
3314
3326
  }, 2e3);
3315
3327
  });
3316
3328
  }) : H(y, () => {
3317
- h.current = window.setTimeout(() => {
3329
+ g.current = window.setTimeout(() => {
3318
3330
  E((f) => (f + 1) % w.current.length), c(!1);
3319
3331
  }, 2e3);
3320
3332
  });
3321
3333
  }, [j, H]);
3322
- return ce(() => (s && t.length > 0 && !a && D(), () => {
3323
- h.current && window.clearTimeout(h.current), l.current && window.clearTimeout(l.current);
3324
- }), [e, a, s, t.length, D]), ce(() => {
3334
+ return le(() => (s && t.length > 0 && !a && D(), () => {
3335
+ g.current && window.clearTimeout(g.current), l.current && window.clearTimeout(l.current);
3336
+ }), [e, a, s, t.length, D]), le(() => {
3325
3337
  !p && s && t.length > 0 && !a && D();
3326
3338
  }, [e, p, s, t.length, a, D]), /* @__PURE__ */ ee("div", { style: { position: "relative" }, children: [
3327
3339
  /* @__PURE__ */ $(
3328
3340
  tt,
3329
3341
  {
3330
- ...S,
3342
+ ...T,
3331
3343
  value: d,
3332
3344
  onChange: (y) => {
3333
- k?.(y.target.value), S.onChange?.(y);
3345
+ k?.(y.target.value), T.onChange?.(y);
3334
3346
  },
3335
3347
  onFocus: (y) => {
3336
- n(!0), h.current && window.clearTimeout(h.current), l.current && window.clearTimeout(l.current), c(!1), o(!1), S.onFocus?.(y);
3348
+ n(!0), g.current && window.clearTimeout(g.current), l.current && window.clearTimeout(l.current), c(!1), o(!1), T.onFocus?.(y);
3337
3349
  },
3338
3350
  onBlur: (y) => {
3339
- n(!1), !d && t.length > 0 && (m(""), E(0)), S.onBlur?.(y);
3351
+ n(!1), !d && t.length > 0 && (m(""), E(0)), T.onBlur?.(y);
3340
3352
  },
3341
3353
  placeholder: a || d ? u : v || u,
3342
3354
  style: {
3343
3355
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3344
- ...S.style,
3356
+ ...T.style,
3345
3357
  position: "relative",
3346
3358
  zIndex: 1
3347
3359
  }
@@ -3450,7 +3462,7 @@ const mn = ({
3450
3462
  // 受控模式的值
3451
3463
  onChange: k,
3452
3464
  // 受控模式的变化回调
3453
- onSubmit: S,
3465
+ onSubmit: T,
3454
3466
  // 提交回调
3455
3467
  maxLength: v = 500,
3456
3468
  // 最大字符数限制
@@ -3467,8 +3479,8 @@ const mn = ({
3467
3479
  ...a
3468
3480
  // 其他原生属性
3469
3481
  }) => {
3470
- const [n, r] = J(""), [o, h] = J(0), [l, w] = J(!1), [C, I] = J(!1), [q, H] = J(!1), [j, D] = J(d || ""), R = Q(void 0), B = Q(void 0), te = Q(t), ae = Q(o), y = Q(C), f = Q(n), x = Q(null);
3471
- ce(() => {
3482
+ const [n, r] = J(""), [o, g] = J(0), [l, w] = J(!1), [C, I] = J(!1), [q, H] = J(!1), [j, D] = J(d || ""), R = Q(void 0), B = Q(void 0), te = Q(t), ae = Q(o), y = Q(C), f = Q(n), x = Q(null);
3483
+ le(() => {
3472
3484
  te.current = t, ae.current = o, y.current = C, f.current = n;
3473
3485
  });
3474
3486
  const L = re((K, de) => {
@@ -3491,30 +3503,30 @@ const mn = ({
3491
3503
  f.current ? N(() => {
3492
3504
  L(K, () => {
3493
3505
  R.current = window.setTimeout(() => {
3494
- h((de) => (de + 1) % te.current.length), w(!1);
3506
+ g((de) => (de + 1) % te.current.length), w(!1);
3495
3507
  }, 2e3);
3496
3508
  });
3497
3509
  }) : L(K, () => {
3498
3510
  R.current = window.setTimeout(() => {
3499
- h((de) => (de + 1) % te.current.length), w(!1);
3511
+ g((de) => (de + 1) % te.current.length), w(!1);
3500
3512
  }, 2e3);
3501
3513
  });
3502
3514
  }, [N, L]);
3503
- ce(() => (s && t.length > 0 && !C && Y(), () => {
3515
+ le(() => (s && t.length > 0 && !C && Y(), () => {
3504
3516
  R.current && window.clearTimeout(R.current), B.current && window.clearTimeout(B.current);
3505
- }), [o, C, s, t.length, Y]), ce(() => {
3517
+ }), [o, C, s, t.length, Y]), le(() => {
3506
3518
  !l && s && t.length > 0 && !C && Y();
3507
3519
  }, [o, l, s, t.length, C, Y]);
3508
3520
  const z = (K) => {
3509
3521
  I(!0), R.current && window.clearTimeout(R.current), B.current && window.clearTimeout(B.current), w(!1), H(!1), a.onFocus?.(K);
3510
3522
  }, ne = (K) => {
3511
- I(!1), !d && t.length > 0 && (r(""), h(0)), a.onBlur?.(K);
3523
+ I(!1), !d && t.length > 0 && (r(""), g(0)), a.onBlur?.(K);
3512
3524
  }, se = (K) => {
3513
3525
  const de = K.target.value;
3514
3526
  v && de.length > v || (k ? k(de) : D(de), a.onChange?.(K));
3515
3527
  }, ue = () => {
3516
3528
  const K = k ? d : j;
3517
- K.trim() && !E && (S?.(K), k || D(""));
3529
+ K.trim() && !E && (T?.(K), k || D(""));
3518
3530
  }, pe = (K) => {
3519
3531
  (K.ctrlKey || K.metaKey) && K.key === "Enter" && (K.preventDefault(), ue()), a.onKeyDown?.(K);
3520
3532
  }, fe = k ? d : j, xe = E || !fe.trim() || (v ? fe.length > v : !1);
@@ -3606,7 +3618,7 @@ const mn = ({
3606
3618
  zIndex: 3
3607
3619
  },
3608
3620
  children: /* @__PURE__ */ $(
3609
- Ce,
3621
+ $e,
3610
3622
  {
3611
3623
  type: "primary",
3612
3624
  size: "small",
@@ -3746,7 +3758,7 @@ const rt = ({
3746
3758
  // 参数保留但不使用,由CSS控制
3747
3759
  videoHeight: k,
3748
3760
  // 参数保留但不使用,由CSS控制
3749
- showPlayButton: S = !0,
3761
+ showPlayButton: T = !0,
3750
3762
  autoPlayOnHover: v = !0,
3751
3763
  onClick: m,
3752
3764
  onVideoLoaded: e,
@@ -3757,17 +3769,17 @@ const rt = ({
3757
3769
  style: n,
3758
3770
  ...r
3759
3771
  }) => {
3760
- const o = Q(null), [h, l] = J(!1), [w, C] = J(!1), [I, q] = J(!1), H = re(() => {
3772
+ const o = Q(null), [g, l] = J(!1), [w, C] = J(!1), [I, q] = J(!1), H = re(() => {
3761
3773
  o.current && (o.current.play(), l(!0), E?.());
3762
3774
  }, [E]), j = re(() => {
3763
3775
  o.current && (o.current.pause(), l(!1), p?.());
3764
3776
  }, [p]), D = re((L) => {
3765
- L.stopPropagation(), h ? j() : H();
3766
- }, [h, H, j]), R = re(() => {
3767
- C(!0), v && !h && H();
3768
- }, [v, h, H]), B = re(() => {
3769
- C(!1), v && h && j();
3770
- }, [v, h, j]), te = re(() => {
3777
+ L.stopPropagation(), g ? j() : H();
3778
+ }, [g, H, j]), R = re(() => {
3779
+ C(!0), v && !g && H();
3780
+ }, [v, g, H]), B = re(() => {
3781
+ C(!1), v && g && j();
3782
+ }, [v, g, j]), te = re(() => {
3771
3783
  q(!0), e?.();
3772
3784
  }, [e]), ae = re(() => {
3773
3785
  l(!0), E?.();
@@ -3813,12 +3825,12 @@ const rt = ({
3813
3825
  loop: !0
3814
3826
  }
3815
3827
  ),
3816
- S && /* @__PURE__ */ $(
3828
+ T && /* @__PURE__ */ $(
3817
3829
  "div",
3818
3830
  {
3819
3831
  className: `video-play-button ${w ? "hovered" : ""}`,
3820
3832
  onClick: D,
3821
- children: h ? /* @__PURE__ */ $(Ct, { className: "play-icon" }) : /* @__PURE__ */ $(St, { className: "play-icon" })
3833
+ children: g ? /* @__PURE__ */ $(Ct, { className: "play-icon" }) : /* @__PURE__ */ $(St, { className: "play-icon" })
3822
3834
  }
3823
3835
  ),
3824
3836
  !I && /* @__PURE__ */ $("div", { className: "video-loading-mask", children: /* @__PURE__ */ $("div", { className: "loading-spinner" }) })
@@ -3941,7 +3953,7 @@ const hn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3941
3953
  xxl: 6
3942
3954
  },
3943
3955
  className: k,
3944
- style: S,
3956
+ style: T,
3945
3957
  onClick: v
3946
3958
  }) => {
3947
3959
  const m = Q(null), [e, E] = J(u || d.md || 3), p = Q(/* @__PURE__ */ new Map()), c = re(() => {
@@ -3951,7 +3963,7 @@ const hn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3951
3963
  return o < 576 ? d.xs || 1 : o < 768 ? d.sm || 2 : o < 992 ? d.md || 3 : o < 1200 ? d.lg || 4 : o < 1600 ? d.xl || 5 : d.xxl || 6;
3952
3964
  }, [s, u, d]), a = re(() => {
3953
3965
  if (!m.current) return;
3954
- const o = e, h = m.current, w = (h.offsetWidth - i * (o - 1)) / o, C = new Array(o).fill(0);
3966
+ const o = e, g = m.current, w = (g.offsetWidth - i * (o - 1)) / o, C = new Array(o).fill(0);
3955
3967
  t.forEach((q, H) => {
3956
3968
  const j = q.id || H, D = p.current.get(j);
3957
3969
  if (!D) return;
@@ -3959,16 +3971,16 @@ const hn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3959
3971
  D.style.position = "absolute", D.style.left = `${te}px`, D.style.top = `${ae}px`, D.style.width = `${w}px`, C[B] += D.offsetHeight + i;
3960
3972
  });
3961
3973
  const I = Math.max(...C);
3962
- h.style.height = `${I}px`;
3974
+ g.style.height = `${I}px`;
3963
3975
  }, [t, e, i]);
3964
- ce(() => {
3976
+ le(() => {
3965
3977
  const o = () => {
3966
- const h = c();
3967
- h !== e && E(h);
3978
+ const g = c();
3979
+ g !== e && E(g);
3968
3980
  };
3969
3981
  if (s)
3970
3982
  return window.addEventListener("resize", o), o(), () => window.removeEventListener("resize", o);
3971
- }, [s, c, e]), ce(() => {
3983
+ }, [s, c, e]), le(() => {
3972
3984
  const o = setTimeout(() => {
3973
3985
  a();
3974
3986
  }, 100);
@@ -3987,10 +3999,10 @@ const hn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
3987
3999
  style: {
3988
4000
  position: "relative",
3989
4001
  width: "100%",
3990
- ...S
4002
+ ...T
3991
4003
  },
3992
- children: t.map((o, h) => {
3993
- const l = o.id || h, w = gn(o);
4004
+ children: t.map((o, g) => {
4005
+ const l = o.id || g, w = gn(o);
3994
4006
  return /* @__PURE__ */ $(
3995
4007
  "div",
3996
4008
  {
@@ -4025,7 +4037,7 @@ const hn = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4025
4037
  "img",
4026
4038
  {
4027
4039
  src: o.url,
4028
- alt: `瀑布流图片 ${h + 1}`,
4040
+ alt: `瀑布流图片 ${g + 1}`,
4029
4041
  className: "waterfall-image",
4030
4042
  onLoad: n,
4031
4043
  onError: n,