bi-components-library 1.2.47 → 1.2.48

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,5 +1,5 @@
1
1
  import { jsx as q, jsxs as be, Fragment as Bl } from "react/jsx-runtime";
2
- import Ie, { useState as le, useRef as Q, useMemo as Pt, useCallback as ie, useEffect as re, useLayoutEffect as Je, forwardRef as Mu, createContext as Ru } from "react";
2
+ import Ie, { useState as le, useRef as Q, useMemo as Pt, useCallback as ie, useEffect as ne, useLayoutEffect as Je, forwardRef as Mu, createContext as Ru } from "react";
3
3
  import { Button as zt, Card as pr, Modal as mc, Table as hr, Flex as si, Spin as Bu, Empty as vc, Select as Ka, Form as dl, Input as br, Space as gc, Cascader as Ec, Popover as yc, Tooltip as Tc, Image as wl, DatePicker as xc, message as Cc, Dropdown as Ac, Progress as Sc, Pagination as wc, theme as _c } from "antd";
4
4
  import { createFromIconfontCN as kc, LeftOutlined as Nc, SearchOutlined as Ic, ReloadOutlined as Lc, CloseCircleFilled as Oc, InfoCircleOutlined as Dc, SendOutlined as Pc, PauseCircleOutlined as Mc, PlayCircleOutlined as Rc } from "@ant-design/icons";
5
5
  import { createPortal as Mt } from "react-dom";
@@ -609,7 +609,7 @@ const { Option: Yc } = Ka, Wc = ({
609
609
  };
610
610
  b(B), y(F);
611
611
  }, [r]);
612
- return re(() => {
612
+ return ne(() => {
613
613
  const k = Object.keys(s).length > 0;
614
614
  (u && !D.current || k) && (C(), D.current = !0);
615
615
  }, [u, s, C]), /* @__PURE__ */ be("div", { children: [
@@ -741,7 +741,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
741
741
  }, [n]), [s, o] = le(i || void 0), [c, d] = le(64), m = Q(null), f = (h) => {
742
742
  o(h), e.setAttribute("data-value", h), t(a, h);
743
743
  };
744
- re(() => {
744
+ ne(() => {
745
745
  o(i || void 0);
746
746
  }, [i]);
747
747
  const E = Ie.useCallback(() => {
@@ -777,7 +777,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
777
777
  return () => {
778
778
  window.cancelAnimationFrame(h), window.clearTimeout(v);
779
779
  };
780
- }, [b]), re(() => {
780
+ }, [b]), ne(() => {
781
781
  if (!("fonts" in document)) return;
782
782
  let h = !1;
783
783
  const v = document.fonts;
@@ -817,7 +817,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
817
817
  );
818
818
  }, Xc = (e) => {
819
819
  const [t, a] = le([]);
820
- return re(() => {
820
+ return ne(() => {
821
821
  const l = e.current;
822
822
  if (!l) return;
823
823
  const n = () => {
@@ -901,7 +901,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
901
901
  }, S = () => {
902
902
  f(null), o(void 0), d(""), e.setAttribute("data-value", ""), t(a, "");
903
903
  };
904
- re(() => {
904
+ ne(() => {
905
905
  o(i || void 0);
906
906
  }, [i]);
907
907
  const D = Ie.useCallback(() => {
@@ -919,11 +919,11 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
919
919
  const me = window.getComputedStyle(k);
920
920
  ue = (Number.parseFloat(me.paddingLeft) || 0) + (Number.parseFloat(me.paddingRight) || 0);
921
921
  }
922
- const ae = C.querySelector(".ant-select-arrow"), Y = ae ? Math.ceil(ae.getBoundingClientRect().width) : 12, ne = C.querySelector(".ant-select-clear");
922
+ const ae = C.querySelector(".ant-select-arrow"), Y = ae ? Math.ceil(ae.getBoundingClientRect().width) : 12, re = C.querySelector(".ant-select-clear");
923
923
  let pe = 0;
924
- if (ne) {
925
- const me = window.getComputedStyle(ne);
926
- me.display !== "none" && me.visibility !== "hidden" && (pe = Math.ceil(ne.getBoundingClientRect().width));
924
+ if (re) {
925
+ const me = window.getComputedStyle(re);
926
+ me.display !== "none" && me.visibility !== "hidden" && (pe = Math.ceil(re.getBoundingClientRect().width));
927
927
  }
928
928
  const Ee = Math.min(240, Math.max(80, j + ue + Y + pe + 4));
929
929
  b((me) => me === Ee ? me : Ee);
@@ -937,7 +937,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
937
937
  return () => {
938
938
  window.cancelAnimationFrame(C), window.clearTimeout(_);
939
939
  };
940
- }, [L]), re(() => {
940
+ }, [L]), ne(() => {
941
941
  if (!("fonts" in document)) return;
942
942
  let C = !1;
943
943
  const _ = document.fonts;
@@ -984,7 +984,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
984
984
  );
985
985
  }, Qc = (e) => {
986
986
  const [t, a] = le([]);
987
- return re(() => {
987
+ return ne(() => {
988
988
  const l = e.current;
989
989
  if (!l) return;
990
990
  const n = () => {
@@ -1053,7 +1053,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
1053
1053
  }, y = (S) => {
1054
1054
  S || (o(E.current), f((D) => D + 1));
1055
1055
  };
1056
- re(() => {
1056
+ ne(() => {
1057
1057
  o(u(r));
1058
1058
  }, [r, u]);
1059
1059
  const A = Ie.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), w = Ie.useCallback(() => {
@@ -1077,7 +1077,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
1077
1077
  return () => {
1078
1078
  window.cancelAnimationFrame(S), window.clearTimeout(D);
1079
1079
  };
1080
- }, [w]), re(() => {
1080
+ }, [w]), ne(() => {
1081
1081
  if (!("fonts" in document)) return;
1082
1082
  let S = !1;
1083
1083
  const D = document.fonts;
@@ -1126,7 +1126,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", jc =
1126
1126
  );
1127
1127
  }, Zc = (e) => {
1128
1128
  const [t, a] = le([]);
1129
- return re(() => {
1129
+ return ne(() => {
1130
1130
  const l = e.current;
1131
1131
  if (!l) return;
1132
1132
  const n = () => {
@@ -1212,11 +1212,11 @@ const ld = ({ host: e, onChange: t }) => {
1212
1212
  return Number.isFinite(A) && A > 0 ? A : 64;
1213
1213
  }, [e]), [d, m] = le(c), f = Q(null), E = (u || "").trim().length > 0, b = !!n && !E, h = (u || "").includes(`
1214
1214
  `);
1215
- re(() => {
1215
+ ne(() => {
1216
1216
  s(i), o.current = i;
1217
- }, [i]), re(() => {
1217
+ }, [i]), ne(() => {
1218
1218
  o.current = u;
1219
- }, [u]), re(() => {
1219
+ }, [u]), ne(() => {
1220
1220
  e.classList.toggle("rte-variable-multiline", h);
1221
1221
  }, [e, h]);
1222
1222
  const v = Ie.useCallback(() => {
@@ -1227,7 +1227,7 @@ const ld = ({ host: e, onChange: t }) => {
1227
1227
  const S = window.getComputedStyle(w), D = S.fontStyle || "normal", L = S.fontWeight || "400", C = S.fontSize || "16px", _ = S.fontFamily || "sans-serif", x = `${D} ${L} ${C} ${_}`, I = Number.parseFloat(S.paddingLeft) || 0, N = Number.parseFloat(S.paddingRight) || 0, k = (u && u.length > 0 ? u : l) || " ", T = ad(k, x, S.letterSpacing || "0", I, N), B = Math.max(24, Math.min(600, T + 2));
1228
1228
  m((F) => F === B ? F : B);
1229
1229
  }, [l, u]);
1230
- re(() => {
1230
+ ne(() => {
1231
1231
  const A = f.current;
1232
1232
  if (!A || typeof ResizeObserver > "u") return;
1233
1233
  let w = 0;
@@ -1246,7 +1246,7 @@ const ld = ({ host: e, onChange: t }) => {
1246
1246
  return () => {
1247
1247
  window.cancelAnimationFrame(A);
1248
1248
  };
1249
- }, [v]), re(() => {
1249
+ }, [v]), ne(() => {
1250
1250
  if (!("fonts" in document)) return;
1251
1251
  let A = !1;
1252
1252
  const w = document.fonts;
@@ -1302,7 +1302,7 @@ const ld = ({ host: e, onChange: t }) => {
1302
1302
  );
1303
1303
  }, nd = (e) => {
1304
1304
  const [t, a] = le([]);
1305
- return re(() => {
1305
+ return ne(() => {
1306
1306
  const l = e.current;
1307
1307
  if (!l) return;
1308
1308
  const n = () => {
@@ -1468,29 +1468,42 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1468
1468
  hideCurrentSessionReport: r
1469
1469
  }) => {
1470
1470
  const i = e.dataset.key || "", u = e.dataset.nodeType || "report-url", [s, o] = le(!1), [c, d] = le(!1), [m, f] = le(null), [E, b] = le(""), [h, v] = le("bottomLeft"), [g, y] = le(0), A = ie(async () => {
1471
- console.log("[RTE-REPORT] openDropdown entered", { key: i, nodeType: u });
1471
+ if (console.log("[RTE-REPORT] openDropdown entered", { key: i, nodeType: u }), !document.body.contains(e)) {
1472
+ console.log("[RTE-REPORT] openDropdown skip: host detached");
1473
+ return;
1474
+ }
1475
+ if (e.classList.contains("hidden")) {
1476
+ console.log("[RTE-REPORT] openDropdown skip: host display:none");
1477
+ return;
1478
+ }
1472
1479
  const x = e.closest('[data-type="variable"]');
1473
- if (x) {
1474
- const I = x.getBoundingClientRect(), N = e.getBoundingClientRect();
1475
- y(I.left - N.left);
1476
- const k = 240, T = window.innerHeight - I.bottom;
1477
- v(T < k ? "topLeft" : "bottomLeft");
1480
+ if (!x || !document.body.contains(x)) {
1481
+ console.log("[RTE-REPORT] openDropdown skip: chip detached");
1482
+ return;
1478
1483
  }
1479
- document.dispatchEvent(
1484
+ const I = x.getBoundingClientRect();
1485
+ if (I.width === 0 && I.height === 0) {
1486
+ console.log("[RTE-REPORT] openDropdown skip: chip zero rect");
1487
+ return;
1488
+ }
1489
+ const N = e.getBoundingClientRect();
1490
+ y(I.left - N.left);
1491
+ const k = 240, T = window.innerHeight - I.bottom;
1492
+ v(T < k ? "topLeft" : "bottomLeft"), document.dispatchEvent(
1480
1493
  new CustomEvent("rte-report-dropdown-opening", { detail: e })
1481
1494
  ), o(!0), d(!0), console.log("[RTE-REPORT] before fetch", { key: i, nodeType: u });
1482
1495
  try {
1483
- const I = await t({ nodeKey: i, nodeType: u });
1484
- console.log("[RTE-REPORT] after fetch", { key: i, tabs: I?.tabs?.length });
1485
- const N = r ? I.tabs.filter((T) => T.key !== "currentConversationReports") : I.tabs, k = { ...I, tabs: N };
1486
- f(k), N.length > 0 && b(N[0].key);
1487
- } catch (I) {
1488
- console.warn("[RTE-REPORT] fetch threw", I);
1496
+ const R = await t({ nodeKey: i, nodeType: u });
1497
+ console.log("[RTE-REPORT] after fetch", { key: i, tabs: R?.tabs?.length });
1498
+ const B = r ? R.tabs.filter((U) => U.key !== "currentConversationReports") : R.tabs, F = { ...R, tabs: B };
1499
+ f(F), B.length > 0 && b(B[0].key);
1500
+ } catch (R) {
1501
+ console.warn("[RTE-REPORT] fetch threw", R);
1489
1502
  } finally {
1490
1503
  console.log("[RTE-REPORT] fetch finally", { key: i }), d(!1);
1491
1504
  }
1492
1505
  }, [e, i, u, t, r]);
1493
- re(() => {
1506
+ ne(() => {
1494
1507
  const x = e.closest('[data-type="variable"]');
1495
1508
  if (console.log("[RTE-REPORT] attach", {
1496
1509
  key: i,
@@ -1522,18 +1535,26 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1522
1535
  hostInDom: document.body.contains(e)
1523
1536
  }), x.removeEventListener("mousedown", I, !0);
1524
1537
  };
1525
- }, [e, s, A, i]), re(() => {
1538
+ }, [e, s, A, i]), ne(() => {
1526
1539
  const x = (I) => {
1527
1540
  I.detail !== e && o(!1);
1528
1541
  };
1529
1542
  return document.addEventListener("rte-report-dropdown-opening", x), () => document.removeEventListener("rte-report-dropdown-opening", x);
1530
- }, [e]), re(() => {
1543
+ }, [e]), ne(() => {
1544
+ if (!s) return;
1545
+ const x = () => {
1546
+ (!document.body.contains(e) || e.classList.contains("hidden")) && o(!1);
1547
+ };
1548
+ x();
1549
+ const I = window.setInterval(x, 200);
1550
+ return () => window.clearInterval(I);
1551
+ }, [s, e]), ne(() => {
1531
1552
  const x = (I) => {
1532
1553
  const N = I.detail;
1533
1554
  (!N || !N.key || N.key === i) && o(!1);
1534
1555
  };
1535
1556
  return document.addEventListener("rte-report-dropdown-force-close", x), () => document.removeEventListener("rte-report-dropdown-force-close", x);
1536
- }, [i]), re(() => {
1557
+ }, [i]), ne(() => {
1537
1558
  if (!s) return;
1538
1559
  const x = (I) => {
1539
1560
  const N = I.target;
@@ -1693,7 +1714,7 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1693
1714
  }
1694
1715
  }), s(g);
1695
1716
  }, [e]);
1696
- return re(() => {
1717
+ return ne(() => {
1697
1718
  if (!t) return;
1698
1719
  const h = e.current;
1699
1720
  if (!h) return;
@@ -1720,7 +1741,7 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1720
1741
  y && b();
1721
1742
  });
1722
1743
  return v.observe(h, { childList: !0, subtree: !0 }), () => v.disconnect();
1723
- }, [e, t, b]), re(() => {
1744
+ }, [e, t, b]), ne(() => {
1724
1745
  if (!t) return;
1725
1746
  const h = requestAnimationFrame(() => {
1726
1747
  b();
@@ -1780,7 +1801,7 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1780
1801
  );
1781
1802
  }), n(d);
1782
1803
  }, [e, i]);
1783
- return re(() => {
1804
+ return ne(() => {
1784
1805
  const o = e.current;
1785
1806
  if (!o) return;
1786
1807
  const c = new MutationObserver((d) => {
@@ -1801,7 +1822,7 @@ const ud = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
1801
1822
  m && s();
1802
1823
  });
1803
1824
  return c.observe(o, { childList: !0, subtree: !0 }), () => c.disconnect();
1804
- }, [e, s]), re(() => {
1825
+ }, [e, s]), ne(() => {
1805
1826
  const o = requestAnimationFrame(() => {
1806
1827
  s();
1807
1828
  });
@@ -1838,9 +1859,9 @@ function Oa(e) {
1838
1859
  }
1839
1860
  function pd(e, t, a = []) {
1840
1861
  const l = Q(t);
1841
- re(() => {
1862
+ ne(() => {
1842
1863
  l.current = t;
1843
- }, [t]), re(() => {
1864
+ }, [t]), ne(() => {
1844
1865
  const n = e.current;
1845
1866
  if (!n) return;
1846
1867
  const r = (i) => {
@@ -2081,7 +2102,7 @@ function yd(e, t, a, l, n = []) {
2081
2102
  },
2082
2103
  [t, l, e]
2083
2104
  );
2084
- re(() => {
2105
+ ne(() => {
2085
2106
  const u = e.current;
2086
2107
  if (!u || !t) return;
2087
2108
  const s = (c) => {
@@ -2158,7 +2179,7 @@ function Td(e, t, a) {
2158
2179
  );
2159
2180
  }
2160
2181
  function xd(e, t, a, l) {
2161
- re(() => {
2182
+ ne(() => {
2162
2183
  const n = e.current;
2163
2184
  if (!n) return;
2164
2185
  const r = (u) => {
@@ -2229,17 +2250,17 @@ const Cd = (e) => {
2229
2250
  resolvedReportNamesRef: f
2230
2251
  }) => {
2231
2252
  const E = Q({}), b = Q({}), h = Q({}), v = Q(i), g = Q(s), y = Q(c), A = ie((D) => D.find((C) => C.type === "tag")?.text || null, []), w = Q(e), S = Q(null);
2232
- re(() => {
2253
+ ne(() => {
2233
2254
  b.current = a;
2234
- }, [a]), re(() => {
2255
+ }, [a]), ne(() => {
2235
2256
  h.current = n;
2236
- }, [n]), re(() => {
2257
+ }, [n]), ne(() => {
2237
2258
  v.current = i;
2238
- }, [i]), re(() => {
2259
+ }, [i]), ne(() => {
2239
2260
  g.current = s;
2240
- }, [s]), re(() => {
2261
+ }, [s]), ne(() => {
2241
2262
  y.current = c;
2242
- }, [c]), re(() => {
2263
+ }, [c]), ne(() => {
2243
2264
  const D = A(w.current), L = A(e);
2244
2265
  if (D && D !== L && t.current) {
2245
2266
  const C = {};
@@ -2400,7 +2421,7 @@ const Cd = (e) => {
2400
2421
  const k = y.current;
2401
2422
  return g.current.set(N, k), k;
2402
2423
  }, []), w = ie((N, k) => g.current.get(N) === k, []);
2403
- re(() => {
2424
+ ne(() => {
2404
2425
  const N = (k) => {
2405
2426
  const T = k.detail;
2406
2427
  if (T) {
@@ -2523,8 +2544,8 @@ const Cd = (e) => {
2523
2544
  setTimeout(() => {
2524
2545
  if (o.current) {
2525
2546
  const ae = v();
2526
- M.forEach((Y, ne) => {
2527
- ae[`${N}__module_${ne}`] = Y.content;
2547
+ M.forEach((Y, re) => {
2548
+ ae[`${N}__module_${re}`] = Y.content;
2528
2549
  }), o.current.__tempVariableValues = ae;
2529
2550
  }
2530
2551
  i((ae) => ({
@@ -2579,8 +2600,8 @@ const Cd = (e) => {
2579
2600
  setTimeout(() => {
2580
2601
  if (o.current) {
2581
2602
  const ae = v();
2582
- M.forEach((Y, ne) => {
2583
- ae[`${N}__module_${ne}`] = Y.content;
2603
+ M.forEach((Y, re) => {
2604
+ ae[`${N}__module_${re}`] = Y.content;
2584
2605
  }), o.current.__tempVariableValues = ae;
2585
2606
  }
2586
2607
  s((ae) => ({
@@ -2610,9 +2631,9 @@ const Cd = (e) => {
2610
2631
  s
2611
2632
  ]
2612
2633
  );
2613
- re(() => {
2634
+ ne(() => {
2614
2635
  c.current = S;
2615
- }, [c, S]), re(() => {
2636
+ }, [c, S]), ne(() => {
2616
2637
  d.current = D;
2617
2638
  }, [d, D]), Je(() => {
2618
2639
  m.current = L;
@@ -2735,7 +2756,7 @@ const Cd = (e) => {
2735
2756
  };
2736
2757
  }, [e, t, l, a, r, n]);
2737
2758
  const v = o.filter((g) => g.key && g.type !== "report-module" && g.type !== "markdown-module").map((g) => `${g.type}:${g.key}`).join("|");
2738
- return v !== "" && b.current !== v && (e || u(9999)), b.current = v, re(() => {
2759
+ return v !== "" && b.current !== v && (e || u(9999)), b.current = v, ne(() => {
2739
2760
  if (e) return;
2740
2761
  const g = window.requestAnimationFrame(() => {
2741
2762
  h();
@@ -2758,7 +2779,7 @@ const Cd = (e) => {
2758
2779
  f,
2759
2780
  E,
2760
2781
  h
2761
- ]), re(() => {
2782
+ ]), ne(() => {
2762
2783
  const g = typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260;
2763
2784
  if (g <= 0) {
2764
2785
  s(!1);
@@ -2774,7 +2795,7 @@ const Cd = (e) => {
2774
2795
  setIsEmpty: a,
2775
2796
  setIsFormValid: l
2776
2797
  }) => {
2777
- re(() => {
2798
+ ne(() => {
2778
2799
  if (e.length > 0) {
2779
2800
  a(!1);
2780
2801
  return;
@@ -3907,8 +3928,8 @@ const Od = ({
3907
3928
  if (k) {
3908
3929
  L.preventDefault(), L.stopPropagation();
3909
3930
  const z = k.closest(".rte-richtext-wrapper"), G = z?.querySelector('[data-type="richtext"]'), j = !(k.getAttribute("data-expanded") === "true");
3910
- ((ne, pe) => {
3911
- ne.setAttribute("data-expanded", String(pe)), ne.innerHTML = pe ? '<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>';
3931
+ ((re, pe) => {
3932
+ re.setAttribute("data-expanded", String(pe)), re.innerHTML = pe ? '<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>';
3912
3933
  })(k, j);
3913
3934
  const ae = z?.closest(".rte-richtext-required");
3914
3935
  ae ? ae.classList.toggle("rte-richtext-expanded", j) : z && z.classList.toggle("rte-richtext-expanded", j);
@@ -3916,10 +3937,10 @@ const Od = ({
3916
3937
  if (G && (j ? (G.style.height = "100%", G.style.overflow = "auto") : (G.style.height = "", G.style.overflow = "")), Y && (Y.classList.toggle("rte-richtext-host-expanded", j), I(Y, j)), r.current) {
3917
3938
  if (r.current.classList.toggle("rte-richtext-fullscreen-active", j), i.current?.classList.toggle("rte-richtext-container-expanded", j), i.current)
3918
3939
  if (j) {
3919
- const ne = Math.ceil(i.current.getBoundingClientRect().height || 0);
3920
- ne > 0 && i.current.style.setProperty(
3940
+ const re = Math.ceil(i.current.getBoundingClientRect().height || 0);
3941
+ re > 0 && i.current.style.setProperty(
3921
3942
  "--rte-richtext-fullscreen-height",
3922
- `${ne}px`
3943
+ `${re}px`
3923
3944
  );
3924
3945
  } else
3925
3946
  i.current.style.removeProperty("--rte-richtext-fullscreen-height");
@@ -3928,9 +3949,9 @@ const Od = ({
3928
3949
  r.current && (r.current.scrollTop = 0, r.current.scrollLeft = 0);
3929
3950
  }, 0);
3930
3951
  else {
3931
- const ne = h.current || 0;
3952
+ const re = h.current || 0;
3932
3953
  setTimeout(() => {
3933
- r.current && (r.current.scrollTop = ne);
3954
+ r.current && (r.current.scrollTop = re);
3934
3955
  }, 0);
3935
3956
  }
3936
3957
  }
@@ -4012,14 +4033,14 @@ const Od = ({
4012
4033
  if (j && typeof j.maxCount == "number" && typeof j.minCount == "number") {
4013
4034
  const ue = j.maxCount;
4014
4035
  c((ae) => {
4015
- const Y = { ...ae }, ne = [];
4036
+ const Y = { ...ae }, re = [];
4016
4037
  for (let pe = 0; pe < ue; pe++) {
4017
4038
  const Ee = `${M}-${pe}`, me = Y[Ee];
4018
- me != null && Ee !== G && ne.push(me);
4039
+ me != null && Ee !== G && re.push(me);
4019
4040
  }
4020
4041
  for (let pe = 0; pe < ue; pe++)
4021
4042
  delete Y[`${M}-${pe}`];
4022
- return ne.forEach((pe, Ee) => {
4043
+ return re.forEach((pe, Ee) => {
4023
4044
  Y[`${M}-${Ee}`] = pe;
4024
4045
  }), Y;
4025
4046
  });
@@ -4036,23 +4057,23 @@ const Od = ({
4036
4057
  const j = o[z];
4037
4058
  if (j && w && (typeof j == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(j) : j.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(j.name || ""))) {
4038
4059
  L.preventDefault(), L.stopPropagation();
4039
- const ne = typeof j == "string" ? j : URL.createObjectURL(j);
4040
- w(ne);
4060
+ const re = typeof j == "string" ? j : URL.createObjectURL(j);
4061
+ w(re);
4041
4062
  return;
4042
4063
  }
4043
4064
  const ue = G || z, ae = l.find((Y) => Y.type === "upload" && Y.key === ue);
4044
4065
  if (u.current && (ae?.accept ? u.current.accept = ae.accept : ae?.acceptType === "image" ? u.current.accept = "image/*" : ae?.acceptType === "file" ? u.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : u.current.accept = ""), G) {
4045
- const Y = l.find((ne) => ne.type === "upload" && ne.key === G);
4066
+ const Y = l.find((re) => re.type === "upload" && re.key === G);
4046
4067
  if (Y && typeof Y.maxCount == "number" && typeof Y.minCount == "number") {
4047
- const ne = Y.maxCount, pe = o[z] != null, Ee = M != null ? Number.parseInt(M, 10) : NaN;
4068
+ const re = Y.maxCount, pe = o[z] != null, Ee = M != null ? Number.parseInt(M, 10) : NaN;
4048
4069
  if (pe) {
4049
4070
  u.current && (u.current.multiple = !1), m(null), f(null), E(z), s?.(), u.current?.click();
4050
4071
  return;
4051
4072
  }
4052
4073
  let me = 0;
4053
- for (let ze = 0; ze < ne; ze++)
4074
+ for (let ze = 0; ze < re; ze++)
4054
4075
  o[`${G}-${ze}`] != null && (me += 1);
4055
- me < ne && u.current ? (u.current.multiple = !0, m(G), f(Number.isFinite(Ee) ? Ee : null), E(null), s?.(), u.current.click()) : (u.current && (u.current.multiple = !1), m(null), f(null), E(z), s?.(), u.current?.click());
4076
+ me < re && u.current ? (u.current.multiple = !0, m(G), f(Number.isFinite(Ee) ? Ee : null), E(null), s?.(), u.current.click()) : (u.current && (u.current.multiple = !1), m(null), f(null), E(z), s?.(), u.current?.click());
4056
4077
  } else
4057
4078
  u.current && (u.current.multiple = !1), m(null), f(null), E(z), s?.(), u.current?.click();
4058
4079
  } else
@@ -4805,11 +4826,11 @@ const Od = ({
4805
4826
  }));
4806
4827
  const z = [];
4807
4828
  for (let ae = 0; ae < U; ae++) {
4808
- const Y = `${I}_${ae}`, ne = n.current.querySelector(
4829
+ const Y = `${I}_${ae}`, re = n.current.querySelector(
4809
4830
  `[data-type="variable"][data-key="${Y}"][data-multi-key="${I}"]`
4810
4831
  );
4811
- if (ne) {
4812
- const pe = ne.innerText.replace(/[\u200B\n]/g, "").trim();
4832
+ if (re) {
4833
+ const pe = re.innerText.replace(/[\u200B\n]/g, "").trim();
4813
4834
  z.push(pe);
4814
4835
  }
4815
4836
  }
@@ -4826,8 +4847,8 @@ const Od = ({
4826
4847
  }), n.current.querySelectorAll(
4827
4848
  '[data-type="variable"]'
4828
4849
  ).forEach((ae) => {
4829
- const Y = ae.dataset.key, ne = ae.dataset.multiKey;
4830
- if (Y && ne !== I) {
4850
+ const Y = ae.dataset.key, re = ae.dataset.multiKey;
4851
+ if (Y && re !== I) {
4831
4852
  const pe = ae.innerText.replace(/[\u200B\n]/g, "").trim();
4832
4853
  pe && (j[Y] = pe);
4833
4854
  }
@@ -4882,10 +4903,7 @@ const Od = ({
4882
4903
  [N]: { ...k[N], status: "loading", error: void 0 }
4883
4904
  }));
4884
4905
  else if (I === "report-url" && N) {
4885
- document.execCommand("insertText", !1, w), r(), setTimeout(() => {
4886
- const k = x.innerText.replace(/[\u200B\n]/g, "").trim();
4887
- u.current(N, k);
4888
- }, 0);
4906
+ document.execCommand("insertText", !1, w), r();
4889
4907
  return;
4890
4908
  } else if (I === "markdown-name" && N) {
4891
4909
  document.execCommand("insertText", !1, w), r(), setTimeout(() => {
@@ -7756,7 +7774,7 @@ function fp(e, t, a) {
7756
7774
  }));
7757
7775
  }
7758
7776
  function Da(e, t) {
7759
- return typeof window > "u" ? re(e, t) : Je(e, t);
7777
+ return typeof window > "u" ? ne(e, t) : Je(e, t);
7760
7778
  }
7761
7779
  const bi = /* @__PURE__ */ Ru(null), pp = /* @__PURE__ */ Ru(null), as = /* @__PURE__ */ Mu(({
7762
7780
  className: e,
@@ -7809,9 +7827,9 @@ const bi = /* @__PURE__ */ Ru(null), pp = /* @__PURE__ */ Ru(null), as = /* @__P
7809
7827
  h.current.off(F, _[F]);
7810
7828
  });
7811
7829
  };
7812
- re(() => () => {
7830
+ ne(() => () => {
7813
7831
  h.current && h.current.off("_beforeBreakpoint", N);
7814
- }), re(() => {
7832
+ }), ne(() => {
7815
7833
  !E.current && h.current && (h.current.emitSlidesClasses(), E.current = !0);
7816
7834
  }), Da(() => {
7817
7835
  if (i && (i.current = b.current), !!b.current)
@@ -12148,14 +12166,14 @@ function Yb(e, t, a) {
12148
12166
  ) : z(k);
12149
12167
  function z(ae) {
12150
12168
  return Y;
12151
- function Y(ne) {
12152
- const pe = ne !== null && ae[ne], Ee = ne !== null && ae.null, me = [
12169
+ function Y(re) {
12170
+ const pe = re !== null && ae[re], Ee = re !== null && ae.null, me = [
12153
12171
  // To do: add more extension tests.
12154
12172
  /* c8 ignore next 2 */
12155
12173
  ...Array.isArray(pe) ? pe : pe ? [pe] : [],
12156
12174
  ...Array.isArray(Ee) ? Ee : Ee ? [Ee] : []
12157
12175
  ];
12158
- return G(me)(ne);
12176
+ return G(me)(re);
12159
12177
  }
12160
12178
  }
12161
12179
  function G(ae) {
@@ -12163,7 +12181,7 @@ function Yb(e, t, a) {
12163
12181
  }
12164
12182
  function M(ae) {
12165
12183
  return Y;
12166
- function Y(ne) {
12184
+ function Y(re) {
12167
12185
  return O = C(), U = ae, ae.partial || (o.currentConstruct = ae), ae.name && o.parser.constructs.disable.null.includes(ae.name) ? ue() : ae.tokenize.call(
12168
12186
  // If we do have fields, create an object w/ `context` as its
12169
12187
  // prototype.
@@ -12172,7 +12190,7 @@ function Yb(e, t, a) {
12172
12190
  s,
12173
12191
  j,
12174
12192
  ue
12175
- )(ne);
12193
+ )(re);
12176
12194
  }
12177
12195
  }
12178
12196
  function j(ae) {
@@ -12386,7 +12404,7 @@ function am(e) {
12386
12404
  atxHeadingSequence: w,
12387
12405
  autolink: s(),
12388
12406
  autolinkEmail: pe,
12389
- autolinkProtocol: ne,
12407
+ autolinkProtocol: re,
12390
12408
  blockQuote: s(),
12391
12409
  characterEscapeValue: _,
12392
12410
  characterReferenceMarkerHexadecimal: ue,
@@ -12729,7 +12747,7 @@ function am(e) {
12729
12747
  const te = this.stack.pop();
12730
12748
  te.position.end = kt(X.end);
12731
12749
  }
12732
- function ne(X) {
12750
+ function re(X) {
12733
12751
  _.call(this, X);
12734
12752
  const te = this.stack[this.stack.length - 1];
12735
12753
  te.url = this.sliceSerialize(X);
@@ -22660,13 +22678,13 @@ const Vn = {
22660
22678
  },
22661
22679
  [f]
22662
22680
  );
22663
- re(() => () => {
22681
+ ne(() => () => {
22664
22682
  f();
22665
22683
  }, [f]);
22666
22684
  const [h, v] = le(0), g = Q(null), [y, A] = le(!1), w = Q(/* @__PURE__ */ new Map()), [S, D] = le(357), [L, C] = le("bottom");
22667
- return re(() => {
22685
+ return ne(() => {
22668
22686
  v(0), A(!1), C("bottom");
22669
- }, [n?.key, n?.type]), re(() => {
22687
+ }, [n?.key, n?.type]), ne(() => {
22670
22688
  const x = w.current, I = /* @__PURE__ */ new Set(), N = (k) => {
22671
22689
  if (!k || I.has(k) || x.has(k)) return;
22672
22690
  I.add(k);
@@ -22707,10 +22725,10 @@ const Vn = {
22707
22725
  D(Math.min(Math.max(z, G), M));
22708
22726
  const j = n?.anchorEl;
22709
22727
  if (j) {
22710
- const ue = j.getBoundingClientRect(), ae = I.getBoundingClientRect(), Y = Math.ceil(ae.height || 0), ne = Math.max(
22728
+ const ue = j.getBoundingClientRect(), ae = I.getBoundingClientRect(), Y = Math.ceil(ae.height || 0), re = Math.max(
22711
22729
  0,
22712
22730
  Math.floor(window.innerHeight - ue.bottom)
22713
- ), pe = Math.max(0, Math.floor(ue.top)), me = ne < Y + 12 && pe > ne;
22731
+ ), pe = Math.max(0, Math.floor(ue.top)), me = re < Y + 12 && pe > re;
22714
22732
  C(me ? "top" : "bottom");
22715
22733
  }
22716
22734
  });
@@ -22721,7 +22739,7 @@ const Vn = {
22721
22739
  n?.type,
22722
22740
  h,
22723
22741
  n?.anchorEl
22724
- ]), re(() => {
22742
+ ]), ne(() => {
22725
22743
  if (!a) return;
22726
22744
  const x = (I) => {
22727
22745
  I.key === "Escape" && b(null);
@@ -22794,8 +22812,8 @@ const Vn = {
22794
22812
  current: z,
22795
22813
  onVisibleChange: (Y) => A(Y),
22796
22814
  onChange: (Y) => {
22797
- const ne = Math.min(Math.max(Y, 0), O - 1);
22798
- v(ne), g.current?.slideTo(ne);
22815
+ const re = Math.min(Math.max(Y, 0), O - 1);
22816
+ v(re), g.current?.slideTo(re);
22799
22817
  }
22800
22818
  },
22801
22819
  children: /* @__PURE__ */ q(
@@ -22810,12 +22828,12 @@ const Vn = {
22810
22828
  g.current = Y;
22811
22829
  },
22812
22830
  onSlideChange: (Y) => v(Y.activeIndex),
22813
- children: U.images.map((Y, ne) => /* @__PURE__ */ q(ls, { children: /* @__PURE__ */ q(
22831
+ children: U.images.map((Y, re) => /* @__PURE__ */ q(ls, { children: /* @__PURE__ */ q(
22814
22832
  wl,
22815
22833
  {
22816
22834
  className: "rte-steps-tooltip-img",
22817
22835
  src: Y,
22818
- alt: `step-${ne + 1}`,
22836
+ alt: `step-${re + 1}`,
22819
22837
  width: "100%",
22820
22838
  style: { width: "100%", display: "block" },
22821
22839
  imgStyle: {
@@ -22826,10 +22844,10 @@ const Vn = {
22826
22844
  },
22827
22845
  preview: { mask: null },
22828
22846
  onClick: () => {
22829
- v(ne), g.current?.slideTo(ne), A(!0);
22847
+ v(re), g.current?.slideTo(re), A(!0);
22830
22848
  }
22831
22849
  }
22832
- ) }, `${Y}-${ne}`))
22850
+ ) }, `${Y}-${re}`))
22833
22851
  },
22834
22852
  `${n.key}-${n.type}`
22835
22853
  )
@@ -29357,12 +29375,12 @@ function Cy(e, t, a, l, n = {}, r, i, u, s, o, c, d, m) {
29357
29375
  }, 0);
29358
29376
  }
29359
29377
  }, [t, a, l, e, n, r, i, u, s, o, c, d]);
29360
- re(() => {
29378
+ ne(() => {
29361
29379
  v();
29362
29380
  }, [v]);
29363
29381
  }
29364
29382
  function Ay(e, t, a, l, n) {
29365
- re(() => {
29383
+ ne(() => {
29366
29384
  const r = e.current;
29367
29385
  if (!r) return;
29368
29386
  const i = (o) => typeof o == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(o) : o.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(o.name || ""), u = (o) => {
@@ -29426,7 +29444,7 @@ function Ay(e, t, a, l, n) {
29426
29444
  }, [t, a, e, l, n]);
29427
29445
  }
29428
29446
  function Sy(e, t, a, l, n) {
29429
- re(() => {
29447
+ ne(() => {
29430
29448
  const r = e.current;
29431
29449
  if (!r) return;
29432
29450
  const i = (c) => {
@@ -29455,7 +29473,7 @@ function Sy(e, t, a, l, n) {
29455
29473
  }, [t, e, a, l, n]);
29456
29474
  }
29457
29475
  function wy(e, t, a, l) {
29458
- re(() => {
29476
+ ne(() => {
29459
29477
  const n = e.current;
29460
29478
  if (!n) return;
29461
29479
  const r = (u) => {
@@ -29485,7 +29503,7 @@ function wy(e, t, a, l) {
29485
29503
  }, [t, e, a, l]);
29486
29504
  }
29487
29505
  function _y(e, t, a, l, n) {
29488
- re(() => {
29506
+ ne(() => {
29489
29507
  const r = e.current;
29490
29508
  if (!r) return;
29491
29509
  const i = (d) => typeof d == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(d) : d.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(d.name || ""), u = (d) => {
@@ -29516,7 +29534,7 @@ function _y(e, t, a, l, n) {
29516
29534
  }, [t, a, e, l, n]);
29517
29535
  }
29518
29536
  function ky(e, t, a, l, n, r) {
29519
- re(() => {
29537
+ ne(() => {
29520
29538
  const i = setTimeout(() => {
29521
29539
  Hl(e, t, a, n), mr(e, t, a, l, n);
29522
29540
  }, 0);
@@ -29525,7 +29543,7 @@ function ky(e, t, a, l, n, r) {
29525
29543
  }
29526
29544
  function Ny(e, t) {
29527
29545
  const a = Q(0), l = Q(0);
29528
- re(() => {
29546
+ ne(() => {
29529
29547
  if (!e.current) return;
29530
29548
  let n = !1, r = 0;
29531
29549
  const i = (g) => g instanceof HTMLElement ? !!(g.closest(".rte-datepicker-wrapper") || g.closest(".rte-datepicker-host") || g.closest(".ant-picker") || g.closest(".ant-picker-dropdown")) : !1, u = (g) => g instanceof HTMLElement ? !!(g.closest(".rte-select-wrapper") || g.closest(".rte-select-host") || g.closest(".ant-select") || g.closest(".ant-select-dropdown")) : !1, s = (g) => {
@@ -29696,8 +29714,8 @@ function Lo() {
29696
29714
  case d:
29697
29715
  return U ? z(1, j) : z(0, j + 1);
29698
29716
  case c:
29699
- var Y = this.$locale().weekStart || 0, ne = (M < Y ? M + 7 : M) - Y;
29700
- return z(U ? ue - ne : ue + (6 - ne), j);
29717
+ var Y = this.$locale().weekStart || 0, re = (M < Y ? M + 7 : M) - Y;
29718
+ return z(U ? ue - re : ue + (6 - re), j);
29701
29719
  case o:
29702
29720
  case E:
29703
29721
  return G(ae + "Hours", 0);
@@ -29743,7 +29761,7 @@ function Lo() {
29743
29761
  if (!this.isValid()) return F.invalidDate || b;
29744
29762
  var U = R || "YYYY-MM-DDTHH:mm:ssZ", O = x.z(this), z = this.$H, G = this.$m, M = this.$M, j = F.weekdays, ue = F.months, ae = F.meridiem, Y = function(Ee, me, ze, Ve) {
29745
29763
  return Ee && (Ee[me] || Ee(B, U)) || ze[me].slice(0, Ve);
29746
- }, ne = function(Ee) {
29764
+ }, re = function(Ee) {
29747
29765
  return x.s(z % 12 || 12, Ee, "0");
29748
29766
  }, pe = ae || function(Ee, me, ze) {
29749
29767
  var Ve = Ee < 12 ? "AM" : "PM";
@@ -29781,9 +29799,9 @@ function Lo() {
29781
29799
  case "HH":
29782
29800
  return x.s(z, 2, "0");
29783
29801
  case "h":
29784
- return ne(1);
29802
+ return re(1);
29785
29803
  case "hh":
29786
- return ne(2);
29804
+ return re(2);
29787
29805
  case "a":
29788
29806
  return pe(z, G, !0);
29789
29807
  case "A":
@@ -30052,7 +30070,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30052
30070
  );
30053
30071
  }, qy = (e) => {
30054
30072
  const [t, a] = le([]);
30055
- return re(() => {
30073
+ return ne(() => {
30056
30074
  const l = e.current;
30057
30075
  if (!l) return;
30058
30076
  const n = () => {
@@ -30141,17 +30159,17 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30141
30159
  hideCurrentSessionReport: O,
30142
30160
  reportNameResolve: z
30143
30161
  }) => {
30144
- const [G, M] = Cc.useMessage(), j = Q(null), ue = Q(null), ae = Q(null), Y = Q(null), ne = Q(null), pe = Q(null), Ee = Q("");
30162
+ const [G, M] = Cc.useMessage(), j = Q(null), ue = Q(null), ae = Q(null), Y = Q(null), re = Q(null), pe = Q(null), Ee = Q("");
30145
30163
  if (!Ee.current) {
30146
30164
  const K = Math.random().toString(36).slice(2, 8);
30147
30165
  Ee.current = `rte_${K}`;
30148
30166
  }
30149
30167
  const [me, ze] = le({});
30150
- re(() => {
30168
+ ne(() => {
30151
30169
  x?.(me);
30152
30170
  }, [me, x]);
30153
30171
  const [Ve, St] = le([]), Kt = Q(!1);
30154
- re(() => {
30172
+ ne(() => {
30155
30173
  if (!k) return;
30156
30174
  if (!(k.length === Ve.length && k.every((se, oe) => {
30157
30175
  const Te = Ve[oe];
@@ -30167,7 +30185,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30167
30185
  G.error("文件总大小不能超过 50MB"), St(Te);
30168
30186
  } else
30169
30187
  Kt.current = !0, St(k);
30170
- }, [k]), re(() => {
30188
+ }, [k]), ne(() => {
30171
30189
  if (Kt.current) {
30172
30190
  Kt.current = !1;
30173
30191
  return;
@@ -30237,12 +30255,12 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30237
30255
  }, 50);
30238
30256
  }, []), [Ht, ol] = le({}), Wr = Q(() => {
30239
30257
  }), jo = Q({}), ln = Q(Ht);
30240
- re(() => {
30258
+ ne(() => {
30241
30259
  ln.current = Ht;
30242
30260
  }, [Ht]);
30243
30261
  const [$t, nn] = le({}), jr = Q(() => {
30244
30262
  }), Xr = Q($t);
30245
- re(() => {
30263
+ ne(() => {
30246
30264
  Xr.current = $t;
30247
30265
  }, [$t]);
30248
30266
  const [Tt, Ea] = le(() => {
@@ -30306,7 +30324,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30306
30324
  reportNameResolve: z,
30307
30325
  applyReportNameChipRef: cl
30308
30326
  });
30309
- id(Y, Xo, [De]), pd(Y, Qo, [De]), hd(Y, Ko, [De]), re(() => {
30327
+ id(Y, Xo, [De]), pd(Y, Qo, [De]), hd(Y, Ko, [De]), ne(() => {
30310
30328
  const K = Y.current;
30311
30329
  if (!K || !z) return;
30312
30330
  const se = (oe) => {
@@ -30381,7 +30399,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30381
30399
  );
30382
30400
  Cy(Y, De, me, r, Tt, zr, void 0, f, void 0, _, st, !!B, Ft);
30383
30401
  const rn = Q(/* @__PURE__ */ new Set()), Jr = Q(De), Zr = Q(_);
30384
- (Jr.current !== De || Zr.current !== _) && (Jr.current = De, Zr.current = _, rn.current = /* @__PURE__ */ new Set()), re(() => {
30402
+ (Jr.current !== De || Zr.current !== _) && (Jr.current = De, Zr.current = _, rn.current = /* @__PURE__ */ new Set()), ne(() => {
30385
30403
  if (!_ || !De || De.length === 0) return;
30386
30404
  const K = De.filter((ve) => ve.type === "upload" && ve.key);
30387
30405
  if (K.length === 0) return;
@@ -30465,7 +30483,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30465
30483
  };
30466
30484
  }, [_, De]);
30467
30485
  const ya = Q(/* @__PURE__ */ new Set()), ei = Q(""), ti = (e || []).filter((K) => K.key && K.type !== "report-module" && K.type !== "markdown-module").map((K) => `${K.type}:${K.key}`).join("|");
30468
- ei.current !== ti && (ei.current = ti, ya.current = /* @__PURE__ */ new Set()), re(() => {
30486
+ ei.current !== ti && (ei.current = ti, ya.current = /* @__PURE__ */ new Set()), ne(() => {
30469
30487
  if (!_ || !e || e.length === 0) return;
30470
30488
  const K = e.filter((oe) => oe.type === "report-url" && oe.key), se = e.filter((oe) => oe.type === "multi-variable-select" && oe.key);
30471
30489
  if (!(K.length === 0 && se.length === 0)) {
@@ -30495,7 +30513,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30495
30513
  const ec = Td(R, ha, Y);
30496
30514
  xd(Y, st, He, C), Ny(Y, Zl);
30497
30515
  const ai = Xc(Y), tc = Qc(Y), ac = Zc(Y), li = nd(Y);
30498
- re(() => {
30516
+ ne(() => {
30499
30517
  if (!Y.current) return;
30500
30518
  Y.current.querySelectorAll(".rte-richtext-toggle").forEach((se) => {
30501
30519
  const oe = se.getAttribute("data-expanded") === "true";
@@ -30525,14 +30543,14 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30525
30543
  const se = Math.ceil(K.getBoundingClientRect().height || 0);
30526
30544
  se > 0 && en(se), ba.current = !0, ma.current = !1, pt.current && (window.clearTimeout(pt.current), pt.current = null);
30527
30545
  };
30528
- re(() => {
30546
+ ne(() => {
30529
30547
  const K = () => {
30530
30548
  ba.current && (ma.current = !0, pt.current && window.clearTimeout(pt.current), pt.current = window.setTimeout(() => {
30531
30549
  pt.current = null, ba.current = !1, ma.current = !1, en(null), window.requestAnimationFrame(() => Ta());
30532
30550
  }, 450));
30533
30551
  };
30534
30552
  return window.addEventListener("focus", K), () => window.removeEventListener("focus", K);
30535
- }, [Ta]), re(() => {
30553
+ }, [Ta]), ne(() => {
30536
30554
  !ba.current || !ma.current || (pt.current && (window.clearTimeout(pt.current), pt.current = null), window.requestAnimationFrame(() => {
30537
30555
  window.requestAnimationFrame(() => {
30538
30556
  en(null), Ta(), ba.current = !1, ma.current = !1;
@@ -30552,7 +30570,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30552
30570
  lockStructure: r,
30553
30571
  editorRef: Y,
30554
30572
  containerRef: j,
30555
- fileInputRef: ne,
30573
+ fileInputRef: re,
30556
30574
  onBeforeFilePickerOpen: lc,
30557
30575
  files: me,
30558
30576
  setFiles: ze,
@@ -30792,7 +30810,7 @@ const { RangePicker: $y } = xc, Uy = ({ host: e, onChange: t }) => {
30792
30810
  "input",
30793
30811
  {
30794
30812
  type: "file",
30795
- ref: ne,
30813
+ ref: re,
30796
30814
  className: "rte-file-input",
30797
30815
  accept: ".csv,.xlsx,.xls,.txt,.pdf,image/*",
30798
30816
  onChange: yt
@@ -31279,7 +31297,7 @@ const jy = ({
31279
31297
  ...i
31280
31298
  }) => {
31281
31299
  const [u, s] = le(""), [o, c] = le(0), [d, m] = le(!1), [f, E] = le(!1), [b, h] = le(!1), v = Q(void 0), g = Q(void 0), y = Q(e), A = Q(o), w = Q(f), S = Q(u);
31282
- re(() => {
31300
+ ne(() => {
31283
31301
  y.current = e, A.current = o, w.current = f, S.current = u;
31284
31302
  });
31285
31303
  const D = ie((k, T) => {
@@ -31311,9 +31329,9 @@ const jy = ({
31311
31329
  }, 2e3);
31312
31330
  });
31313
31331
  }, [L, D]);
31314
- return re(() => (l && e.length > 0 && !f && C(), () => {
31332
+ return ne(() => (l && e.length > 0 && !f && C(), () => {
31315
31333
  v.current && window.clearTimeout(v.current), g.current && window.clearTimeout(g.current);
31316
- }), [o, f, l, e.length, C]), re(() => {
31334
+ }), [o, f, l, e.length, C]), ne(() => {
31317
31335
  !d && l && e.length > 0 && !f && C();
31318
31336
  }, [o, d, l, e.length, f, C]), /* @__PURE__ */ be("div", { style: { position: "relative" }, children: [
31319
31337
  /* @__PURE__ */ q(
@@ -31460,20 +31478,20 @@ const Xy = ({
31460
31478
  // 其他原生属性
31461
31479
  }) => {
31462
31480
  const [E, b] = le(""), [h, v] = le(0), [g, y] = le(!1), [A, w] = le(!1), [S, D] = le(!1), [L, C] = le(n || ""), _ = Q(void 0), x = Q(void 0), I = Q(e), N = Q(h), k = Q(A), T = Q(E), R = Q(null);
31463
- re(() => {
31481
+ ne(() => {
31464
31482
  I.current = e, N.current = h, k.current = A, T.current = E;
31465
31483
  });
31466
- const B = ie((Y, ne) => {
31484
+ const B = ie((Y, re) => {
31467
31485
  let pe = 0;
31468
31486
  D(!0);
31469
31487
  const Ee = () => {
31470
- pe < Y.length ? (b(Y.slice(0, pe + 1)), pe++, x.current = window.setTimeout(Ee, a)) : (D(!1), ne?.());
31488
+ pe < Y.length ? (b(Y.slice(0, pe + 1)), pe++, x.current = window.setTimeout(Ee, a)) : (D(!1), re?.());
31471
31489
  };
31472
31490
  Ee();
31473
31491
  }, [a]), F = ie((Y) => {
31474
- let ne = T.current.length;
31492
+ let re = T.current.length;
31475
31493
  const pe = () => {
31476
- ne > 0 ? (b(T.current.slice(0, ne - 1)), ne--, x.current = window.setTimeout(pe, a / 2)) : Y?.();
31494
+ re > 0 ? (b(T.current.slice(0, re - 1)), re--, x.current = window.setTimeout(pe, a / 2)) : Y?.();
31477
31495
  };
31478
31496
  pe();
31479
31497
  }, [a]), U = ie(() => {
@@ -31483,18 +31501,18 @@ const Xy = ({
31483
31501
  T.current ? F(() => {
31484
31502
  B(Y, () => {
31485
31503
  _.current = window.setTimeout(() => {
31486
- v((ne) => (ne + 1) % I.current.length), y(!1);
31504
+ v((re) => (re + 1) % I.current.length), y(!1);
31487
31505
  }, 2e3);
31488
31506
  });
31489
31507
  }) : B(Y, () => {
31490
31508
  _.current = window.setTimeout(() => {
31491
- v((ne) => (ne + 1) % I.current.length), y(!1);
31509
+ v((re) => (re + 1) % I.current.length), y(!1);
31492
31510
  }, 2e3);
31493
31511
  });
31494
31512
  }, [F, B]);
31495
- re(() => (l && e.length > 0 && !A && U(), () => {
31513
+ ne(() => (l && e.length > 0 && !A && U(), () => {
31496
31514
  _.current && window.clearTimeout(_.current), x.current && window.clearTimeout(x.current);
31497
- }), [h, A, l, e.length, U]), re(() => {
31515
+ }), [h, A, l, e.length, U]), ne(() => {
31498
31516
  !g && l && e.length > 0 && !A && U();
31499
31517
  }, [h, g, l, e.length, A, U]);
31500
31518
  const O = (Y) => {
@@ -31502,8 +31520,8 @@ const Xy = ({
31502
31520
  }, z = (Y) => {
31503
31521
  w(!1), !n && e.length > 0 && (b(""), v(0)), f.onBlur?.(Y);
31504
31522
  }, G = (Y) => {
31505
- const ne = Y.target.value;
31506
- u && ne.length > u || (r ? r(ne) : C(ne), f.onChange?.(Y));
31523
+ const re = Y.target.value;
31524
+ u && re.length > u || (r ? r(re) : C(re), f.onChange?.(Y));
31507
31525
  }, M = () => {
31508
31526
  const Y = r ? n : L;
31509
31527
  Y.trim() && !c && (i?.(Y), r || C(""));
@@ -31953,14 +31971,14 @@ const Ky = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
31953
31971
  const w = Math.max(...A);
31954
31972
  v.style.height = `${w}px`;
31955
31973
  }, [e, o, a]);
31956
- re(() => {
31974
+ ne(() => {
31957
31975
  const h = () => {
31958
31976
  const v = m();
31959
31977
  v !== o && c(v);
31960
31978
  };
31961
31979
  if (l)
31962
31980
  return window.addEventListener("resize", h), h(), () => window.removeEventListener("resize", h);
31963
- }, [l, m, o]), re(() => {
31981
+ }, [l, m, o]), ne(() => {
31964
31982
  const h = setTimeout(() => {
31965
31983
  f();
31966
31984
  }, 100);