bi-components-library 1.0.68 → 1.0.69

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,4 +1,4 @@
1
- import { jsx as L, jsxs as de, Fragment as tn } from "react/jsx-runtime";
1
+ import { jsx as L, jsxs as ue, Fragment as tn } from "react/jsx-runtime";
2
2
  import nn, { useState as le, useRef as se, useMemo as ut, useCallback as ce, useEffect as pe, useLayoutEffect as Ue } from "react";
3
3
  import { Button as qe, Card as dt, Modal as rn, Table as pt, Flex as St, Spin as an, Empty as on, Select as et, Form as Ke, Input as Lt, Space as sn, DatePicker as ln, message as cn, Dropdown as un, Tooltip as dn, Progress as pn, Pagination as fn, theme as mn } from "antd";
4
4
  import { createFromIconfontCN as yn, LeftOutlined as hn, SearchOutlined as gn, ReloadOutlined as bn, InfoCircleOutlined as vn, SendOutlined as xn, PauseCircleOutlined as wn, PlayCircleOutlined as kn } from "@ant-design/icons";
@@ -150,7 +150,7 @@ const Cn = ({
150
150
  showDefaultFooter: t = !0,
151
151
  ...m
152
152
  }) => {
153
- const s = m.footer !== void 0 ? m.footer : t ? (o, { OkBtn: g, CancelBtn: T }) => /* @__PURE__ */ de(tn, { children: [
153
+ const s = m.footer !== void 0 ? m.footer : t ? (o, { OkBtn: g, CancelBtn: T }) => /* @__PURE__ */ ue(tn, { children: [
154
154
  /* @__PURE__ */ L(g, {}),
155
155
  /* @__PURE__ */ L(T, {})
156
156
  ] }) : null;
@@ -361,7 +361,7 @@ const qn = ({
361
361
  emptyChildren: o,
362
362
  loadingText: g,
363
363
  emptyImage: T
364
- }) => t ? /* @__PURE__ */ de(
364
+ }) => t ? /* @__PURE__ */ ue(
365
365
  St,
366
366
  {
367
367
  className: `pt-10 w-full ${s || ""}`,
@@ -550,7 +550,7 @@ const { Option: Ln } = et, Mn = ({
550
550
  showRefresh: g = !0,
551
551
  defaultPageSize: T = 10,
552
552
  pageSizeOptions: M = ["10", "20", "50", "100"],
553
- autoLoad: q = !0,
553
+ autoLoad: A = !0,
554
554
  externalParams: E = {},
555
555
  ...C
556
556
  }) => {
@@ -560,16 +560,16 @@ const { Option: Ln } = et, Mn = ({
560
560
  total: 0
561
561
  }), [r, i] = le({}), [d, I] = le({}), [S] = Ke.useForm(), z = se(e);
562
562
  z.current = e;
563
- const U = se(E);
564
- U.current = E;
565
- const j = se(!1), F = ut(() => t.map((c) => {
563
+ const j = se(E);
564
+ j.current = E;
565
+ const Y = se(!1), F = ut(() => t.map((c) => {
566
566
  const { sortable: p, render: v, ...B } = c;
567
567
  return {
568
568
  ...B,
569
569
  sorter: p ? !0 : void 0,
570
570
  render: v || ((D) => D)
571
571
  };
572
- }), [t]), V = ce(async (c = {}) => {
572
+ }), [t]), O = ce(async (c = {}) => {
573
573
  if (m) {
574
574
  $(!0);
575
575
  try {
@@ -578,7 +578,7 @@ const { Option: Ln } = et, Mn = ({
578
578
  pageSize: z.current.pageSize,
579
579
  sortField: d.field,
580
580
  sortOrder: d.order,
581
- searchParams: { ...r, ...U.current },
581
+ searchParams: { ...r, ...j.current },
582
582
  ...c
583
583
  }, v = await m(p);
584
584
  v.success && (k(v.data), n((B) => ({
@@ -596,9 +596,9 @@ const { Option: Ln } = et, Mn = ({
596
596
  i(c), n((p) => ({ ...p, current: 1 }));
597
597
  }, []), _ = ce(() => {
598
598
  S.resetFields(), i({}), n((c) => ({ ...c, current: 1 }));
599
- }, [S]), O = ce(() => {
600
- V();
601
- }, [V]), J = ce((c, p, v) => {
599
+ }, [S]), R = ce(() => {
600
+ O();
601
+ }, [O]), J = ce((c, p, v) => {
602
602
  const B = {
603
603
  current: c.current || 1,
604
604
  pageSize: c.pageSize || T,
@@ -611,9 +611,9 @@ const { Option: Ln } = et, Mn = ({
611
611
  }, [T]);
612
612
  return pe(() => {
613
613
  const c = Object.keys(E).length > 0;
614
- (q && !j.current || c) && (V(), j.current = !0);
615
- }, [q, E, V]), /* @__PURE__ */ de("div", { children: [
616
- o && s.length > 0 && /* @__PURE__ */ L(dt, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ de(
614
+ (A && !Y.current || c) && (O(), Y.current = !0);
615
+ }, [A, E, O]), /* @__PURE__ */ ue("div", { children: [
616
+ o && s.length > 0 && /* @__PURE__ */ L(dt, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ ue(
617
617
  Ke,
618
618
  {
619
619
  form: S,
@@ -636,10 +636,10 @@ const { Option: Ln } = et, Mn = ({
636
636
  children: c.options?.map((p) => /* @__PURE__ */ L(Ln, { value: p.value, children: p.label }, p.value))
637
637
  }
638
638
  ) }, c.key)),
639
- /* @__PURE__ */ L(Ke.Item, { children: /* @__PURE__ */ de(sn, { children: [
639
+ /* @__PURE__ */ L(Ke.Item, { children: /* @__PURE__ */ ue(sn, { children: [
640
640
  /* @__PURE__ */ L(qe, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ L(gn, {}), children: "查询" }),
641
641
  /* @__PURE__ */ L(qe, { onClick: _, children: "重置" }),
642
- g && /* @__PURE__ */ L(qe, { icon: /* @__PURE__ */ L(bn, {}), onClick: O, children: "刷新" })
642
+ g && /* @__PURE__ */ L(qe, { icon: /* @__PURE__ */ L(bn, {}), onClick: R, children: "刷新" })
643
643
  ] }) })
644
644
  ]
645
645
  }
@@ -810,7 +810,7 @@ function ct(t, m, s, o) {
810
810
  d = z;
811
811
  break;
812
812
  }
813
- return i.filter((z, U) => U !== d).map((z) => (z.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
813
+ return i.filter((z, j) => j !== d).map((z) => (z.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
814
814
  `).trim() || r;
815
815
  }, T = (e) => e ? !!e.closest('[data-rte-force-hidden="1"]') : !1, M = [];
816
816
  for (let e = 0; e < m.length; e++) {
@@ -854,8 +854,8 @@ function ct(t, m, s, o) {
854
854
  }
855
855
  }
856
856
  }
857
- const q = m.some((e) => e.exclusionGroup === "separator"), E = [];
858
- if (q && M.length > 1) {
857
+ const A = m.some((e) => e.exclusionGroup === "separator"), E = [];
858
+ if (A && M.length > 1) {
859
859
  const e = [];
860
860
  m.forEach((n, r) => {
861
861
  n.exclusionGroup === "separator" && e.push(r);
@@ -989,8 +989,8 @@ function ct(t, m, s, o) {
989
989
  if (I.length === 0)
990
990
  continue;
991
991
  for (let S = 0; S < I.length; S++) {
992
- const U = I[S].dataset.key;
993
- U && s[U] != null && (d += 1);
992
+ const j = I[S].dataset.key;
993
+ j && s[j] != null && (d += 1);
994
994
  }
995
995
  if (d >= i.minCount) {
996
996
  r = !0;
@@ -1167,7 +1167,7 @@ function lt(t, m) {
1167
1167
  });
1168
1168
  }
1169
1169
  const In = ({ host: t, onChange: m }) => {
1170
- const s = t.dataset.key, o = t.dataset.placeholder, g = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", T = t.dataset.required === "true", M = t.dataset.value || "", q = nn.useMemo(() => {
1170
+ const s = t.dataset.key, o = t.dataset.placeholder, g = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", T = t.dataset.required === "true", M = t.dataset.value || "", A = nn.useMemo(() => {
1171
1171
  try {
1172
1172
  return JSON.parse(g);
1173
1173
  } catch {
@@ -1178,9 +1178,9 @@ const In = ({ host: t, onChange: m }) => {
1178
1178
  return r ? (r.font = '14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif', r.measureText(e).width) : e.length * 14;
1179
1179
  };
1180
1180
  pe(() => {
1181
- const e = E ? q.find((i) => i.value === E)?.label || E : o || "请选择", n = H(e), r = Math.max(64, Math.ceil(n + 40));
1181
+ const e = E ? A.find((i) => i.value === E)?.label || E : o || "请选择", n = H(e), r = Math.max(64, Math.ceil(n + 40));
1182
1182
  k(r);
1183
- }, [E, q, o]);
1183
+ }, [E, A, o]);
1184
1184
  const $ = (e) => {
1185
1185
  C(e), t.setAttribute("data-value", e), m(s, e);
1186
1186
  };
@@ -1200,7 +1200,7 @@ const In = ({ host: t, onChange: m }) => {
1200
1200
  onChange: $,
1201
1201
  placeholder: o || "请选择",
1202
1202
  style: { width: "100%", minWidth: N },
1203
- options: q,
1203
+ options: A,
1204
1204
  allowClear: !T,
1205
1205
  size: "small",
1206
1206
  dropdownClassName: "rte-select-dropdown",
@@ -1219,10 +1219,10 @@ const In = ({ host: t, onChange: m }) => {
1219
1219
  const o = t.current;
1220
1220
  if (!o) return;
1221
1221
  const g = () => {
1222
- const M = o.querySelectorAll(".rte-select-host"), q = [];
1222
+ const M = o.querySelectorAll(".rte-select-host"), A = [];
1223
1223
  M.forEach((E) => {
1224
1224
  const C = E.getAttribute("data-key");
1225
- C && q.push(
1225
+ C && A.push(
1226
1226
  /* @__PURE__ */ L(
1227
1227
  In,
1228
1228
  {
@@ -1237,11 +1237,11 @@ const In = ({ host: t, onChange: m }) => {
1237
1237
  `select-${C}`
1238
1238
  )
1239
1239
  );
1240
- }), s(q);
1240
+ }), s(A);
1241
1241
  };
1242
1242
  g();
1243
1243
  const T = new MutationObserver((M) => {
1244
- let q = !1;
1244
+ let A = !1;
1245
1245
  for (const E of M)
1246
1246
  if (E.type === "childList") {
1247
1247
  let C = !1;
@@ -1256,16 +1256,16 @@ const In = ({ host: t, onChange: m }) => {
1256
1256
  (k.classList?.contains("rte-select-host") || k.querySelector?.(".rte-select-host")) && (C = !0);
1257
1257
  }
1258
1258
  }), C) {
1259
- q = !0;
1259
+ A = !0;
1260
1260
  break;
1261
1261
  }
1262
1262
  }
1263
- q && g();
1263
+ A && g();
1264
1264
  });
1265
1265
  return T.observe(o, { childList: !0, subtree: !0 }), () => T.disconnect();
1266
1266
  }, [t]), m;
1267
1267
  }, Xe = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1268
- function Bn(t, m, s, o, g, T = {}, M, q) {
1268
+ function Bn(t, m, s, o, g, T = {}, M, A) {
1269
1269
  if (!t.current) return;
1270
1270
  const E = /[;;,,。.!!??::、]/, C = (e) => {
1271
1271
  const n = (e ?? "").trim();
@@ -1280,118 +1280,118 @@ function Bn(t, m, s, o, g, T = {}, M, q) {
1280
1280
  for (; $ < m.length; ) {
1281
1281
  const e = m[$], n = $ + 1 < m.length ? m[$ + 1] : null;
1282
1282
  if (e.type === "text" && (e.text?.includes("icon-bitian") || e.className === "rte-text-required") && n) {
1283
- const U = n.type === "upload" && n.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === n.exclusionGroup, j = n.type === "variable" && n.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === n.exclusionGroup;
1284
- if (U) {
1285
- const F = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", V = `<span ${F} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1283
+ const j = n.type === "upload" && n.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === n.exclusionGroup, Y = n.type === "variable" && n.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === n.exclusionGroup;
1284
+ if (j) {
1285
+ const F = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", O = `<span ${F} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1286
1286
  let _ = "";
1287
1287
  e.className ? _ = `<span class="${e.className}">${e.text ?? ""}</span>` : _ = e.text ?? "";
1288
- const O = n, J = s[O.key] !== null && s[O.key] !== void 0, c = J ? s[O.key] : null, p = J ? s[O.key]?.name : O.text, v = J ? "" : "hidden", B = O.tooltip && !J ? "" : "hidden", D = J ? "has-file" : "", W = J && p ? ` data-file-name="${p.replace(/"/g, "&quot;")}"` : "";
1288
+ const R = n, J = s[R.key] !== null && s[R.key] !== void 0, c = J ? s[R.key] : null, p = J ? s[R.key]?.name : R.text, v = J ? "" : "hidden", B = R.tooltip && !J ? "" : "hidden", D = J ? "has-file" : "", W = J && p ? ` data-file-name="${p.replace(/"/g, "&quot;")}"` : "";
1289
1289
  let u = "";
1290
1290
  J && c ? c.type?.startsWith("image/") ? u = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(c)}" alt="preview" />` : u = "<i class='iconfont icon-exlwenjian'></i>" : u = "<i class='iconfont icon-shangchuan1'></i>";
1291
- const K = (O.text || "").trim(), ie = J && K.length >= 12 ? `<span ${F} contenteditable="false" class="exclusion-wrapper upload-hint">${K}</span>` : "", me = `<span contenteditable="false" data-type="upload" data-key="${O.key}" class="upload-chip"><span class="upload-inner-wrapper ${D}"><span class="upload-icon">${u}</span><span class="upload-label"${W}>${p || O.text}</span>${O.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${O.key}" data-tooltip="${O.tooltip}"></i>` : ""}<span class="file-remove-btn ${v}" title="移除文件">×</span></span></span>`;
1292
- H.push(V + _ + me + G + ie), $ += 2;
1291
+ const U = (R.text || "").trim(), ie = J && U.length >= 12 ? `<span ${F} contenteditable="false" class="exclusion-wrapper upload-hint">${U}</span>` : "", me = `<span contenteditable="false" data-type="upload" data-key="${R.key}" class="upload-chip"><span class="upload-inner-wrapper ${D}"><span class="upload-icon">${u}</span><span class="upload-label"${W}>${p || R.text}</span>${R.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${B}" data-upload-key="${R.key}" data-tooltip="${R.tooltip}"></i>` : ""}<span class="file-remove-btn ${v}" title="移除文件">×</span></span></span>`;
1292
+ H.push(O + _ + me + G + ie), $ += 2;
1293
1293
  continue;
1294
1294
  }
1295
- if (j) {
1296
- const V = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1295
+ if (Y) {
1296
+ const O = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1297
1297
  let _ = "";
1298
1298
  e.className ? _ = `<span class="${e.className}">${e.text ?? ""}</span>` : _ = e.text ?? "";
1299
- const O = n, c = (O.key ? g[O.key] : void 0) || O.text || "", p = !c, v = p ? "​" : c, B = p ? "show-placeholder" : "", D = O.exclusionGroup ? ` data-group="${O.exclusionGroup}"` : "", W = O.tooltip ? ` data-tooltip="${O.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${O.key || ""}"` : "", u = O.tooltip && p ? "" : "hidden", K = `<span contenteditable="true" data-type="variable" data-key="${O.key}" data-placeholder="${O.placeholder || ""}"${D}${W} class="variable-chip ${B}">${v}${O.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${u}" data-variable-key="${O.key}" data-tooltip="${O.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1300
- H.push(V + _ + K + G), $ += 2;
1299
+ const R = n, c = (R.key ? g[R.key] : void 0) || R.text || "", p = !c, v = p ? "​" : c, B = p ? "show-placeholder" : "", D = R.exclusionGroup ? ` data-group="${R.exclusionGroup}"` : "", W = R.tooltip ? ` data-tooltip="${R.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${R.key || ""}"` : "", u = R.tooltip && p ? "" : "hidden", U = `<span contenteditable="true" data-type="variable" data-key="${R.key}" data-placeholder="${R.placeholder || ""}"${D}${W} class="variable-chip ${B}">${v}${R.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${u}" data-variable-key="${R.key}" data-tooltip="${R.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1300
+ H.push(O + _ + U + G), $ += 2;
1301
1301
  continue;
1302
1302
  }
1303
1303
  }
1304
1304
  const i = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", d = e.exclusionGroup ? `<span ${i} class="exclusion-wrapper">` : "", I = e.exclusionGroup ? "</span>" : "";
1305
1305
  let S = "";
1306
1306
  if (e.type === "tag") {
1307
- const j = o || M === "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>', F = o ? ' data-locked="true"' : "", V = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1308
- S = `<span contenteditable="false" class="tag-node group"${F}${V}><span class="tag-label">${e.text}</span>${j}</span>`;
1307
+ const Y = o || M === "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>', F = o ? ' data-locked="true"' : "", O = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1308
+ S = `<span contenteditable="false" class="tag-node group"${F}${O}><span class="tag-label">${e.text}</span>${Y}</span>`;
1309
1309
  } else if (e.type === "text") {
1310
- const U = o ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', F = (e.text ?? "").replace(/\n/g, "<br/>");
1311
- e.className ? S = `<span data-type="text" class="${e.className}"${U}>${F}</span>` : S = o ? `<span data-type="text"${U}>${F}</span>` : `<span data-type="text" contenteditable="false">${F}</span>`;
1310
+ const j = o ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', F = (e.text ?? "").replace(/\n/g, "<br/>");
1311
+ e.className ? S = `<span data-type="text" class="${e.className}"${j}>${F}</span>` : S = o ? `<span data-type="text"${j}>${F}</span>` : `<span data-type="text" contenteditable="false">${F}</span>`;
1312
1312
  } else if (e.type === "variable" && e.key) {
1313
- const j = g[e.key] || e.text || "", F = !j, V = F ? "​" : j, G = F ? "show-placeholder" : "", _ = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", O = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && F ? "" : "hidden", c = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${_}${O} class="variable-chip ${G}">${V}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${J}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1313
+ const Y = g[e.key] || e.text || "", F = !Y, O = F ? "​" : Y, G = F ? "show-placeholder" : "", _ = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", R = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && F ? "" : "hidden", c = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${_}${R} class="variable-chip ${G}">${O}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${J}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1314
1314
  e.required ? S = `<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>` : S = c;
1315
1315
  } else if (e.type === "report-url" && e.key) {
1316
- const j = g[e.key] || e.text || "", F = !j, V = F ? "​" : j, G = F ? "show-placeholder" : "", _ = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", O = e.tooltip ? ` data-tooltip="${Xe(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && F ? "" : "hidden", c = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${Xe(e.placeholder || "")}"${_}${O} class="variable-chip rte-report-url ${G}">${V}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${J}" data-variable-key="${e.key}" data-tooltip="${Xe(e.tooltip)}" ></i>` : ""}</span>`;
1316
+ const Y = g[e.key] || e.text || "", F = !Y, O = F ? "​" : Y, G = F ? "show-placeholder" : "", _ = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", R = e.tooltip ? ` data-tooltip="${Xe(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && F ? "" : "hidden", c = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${Xe(e.placeholder || "")}"${_}${R} class="variable-chip rte-report-url ${G}">${O}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${J}" data-variable-key="${e.key}" data-tooltip="${Xe(e.tooltip)}" ></i>` : ""}</span>`;
1317
1317
  e.required ? S = `<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>` : S = c;
1318
1318
  } else if (e.type === "upload" && e.key)
1319
1319
  if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
1320
- const j = e.minCount || 1, F = e.maxCount || 3;
1321
- let V = 0;
1322
- for (let O = 0; O < F; O++) {
1323
- const J = `${e.key}-${O}`;
1324
- s[J] != null && (V += 1);
1320
+ const Y = e.minCount || 1, F = e.maxCount || 3;
1321
+ let O = 0;
1322
+ for (let R = 0; R < F; R++) {
1323
+ const J = `${e.key}-${R}`;
1324
+ s[J] != null && (O += 1);
1325
1325
  }
1326
1326
  const G = Math.min(
1327
1327
  F,
1328
- Math.max(j, V + (V < F ? 1 : 0))
1328
+ Math.max(Y, O + (O < F ? 1 : 0))
1329
1329
  );
1330
1330
  let _ = "";
1331
- for (let O = 0; O < G; O++) {
1332
- const J = `${e.key}-${O}`, c = s[J] !== null && s[J] !== void 0, p = c ? s[J] : null, v = c ? s[J]?.name : e.text, B = c ? "" : "hidden", D = e.tooltip && !c ? "" : "hidden", W = c ? "has-file" : "", u = c && v ? ` data-file-name="${v.replace(/"/g, "&quot;")}"` : "";
1333
- let K = "";
1334
- c && p ? p.type?.startsWith("image/") ? K = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(p)}" alt="preview" />` : K = "<i class='iconfont icon-exlwenjian'></i>" : K = "<i class='iconfont icon-shangchuan1'></i>";
1335
- const Z = ` data-batch-key="${e.key}"`, ie = ` data-batch-index="${O}"`, me = `<span contenteditable="false" data-type="upload" data-key="${J}"${Z}${ie} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${W}"><span class="upload-icon">${K}</span><span class="upload-label"${u}>${v || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${D}" data-upload-key="${J}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${B}" title="移除文件">×</span></span></span>`;
1331
+ for (let R = 0; R < G; R++) {
1332
+ const J = `${e.key}-${R}`, c = s[J] !== null && s[J] !== void 0, p = c ? s[J] : null, v = c ? s[J]?.name : e.text, B = c ? "" : "hidden", D = e.tooltip && !c ? "" : "hidden", W = c ? "has-file" : "", u = c && v ? ` data-file-name="${v.replace(/"/g, "&quot;")}"` : "";
1333
+ let U = "";
1334
+ c && p ? p.type?.startsWith("image/") ? U = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(p)}" alt="preview" />` : U = "<i class='iconfont icon-exlwenjian'></i>" : U = "<i class='iconfont icon-shangchuan1'></i>";
1335
+ const ee = ` data-batch-key="${e.key}"`, ie = ` data-batch-index="${R}"`, me = `<span contenteditable="false" data-type="upload" data-key="${J}"${ee}${ie} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${W}"><span class="upload-icon">${U}</span><span class="upload-label"${u}>${v || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${D}" data-upload-key="${J}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${B}" title="移除文件">×</span></span></span>`;
1336
1336
  _ += me;
1337
1337
  }
1338
1338
  e.required ? S = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span><span class="rte-upload-batch-chips">${_}</span></span>` : S = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${_}</span>`;
1339
1339
  } else {
1340
- const j = s[e.key] !== null && s[e.key] !== void 0, F = j ? s[e.key] : null, V = j ? s[e.key]?.name : e.text, G = j ? "" : "hidden", _ = e.tooltip && !j ? "" : "hidden", O = j ? "has-file" : "", J = j && V ? ` data-file-name="${V.replace(/"/g, "&quot;")}"` : "";
1340
+ const Y = s[e.key] !== null && s[e.key] !== void 0, F = Y ? s[e.key] : null, O = Y ? s[e.key]?.name : e.text, G = Y ? "" : "hidden", _ = e.tooltip && !Y ? "" : "hidden", R = Y ? "has-file" : "", J = Y && O ? ` data-file-name="${O.replace(/"/g, "&quot;")}"` : "";
1341
1341
  let c = "";
1342
- j && F ? F.type?.startsWith("image/") ? c = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(F)}" alt="preview" />` : c = "<i class='iconfont icon-exlwenjian'></i>" : c = "<i class='iconfont icon-shangchuan1'></i>";
1343
- const p = (e.text || "").trim(), B = j && e.showHint === !0 && p.length >= 12 ? `<span ${i} contenteditable="false" class="exclusion-wrapper upload-hint">${p}</span>` : "", D = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${O}"><span class="upload-icon">${c}</span><span class="upload-label"${J}>${V || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${_}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${G}" title="移除文件">×</span></span></span>`;
1342
+ Y && F ? F.type?.startsWith("image/") ? c = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(F)}" alt="preview" />` : c = "<i class='iconfont icon-exlwenjian'></i>" : c = "<i class='iconfont icon-shangchuan1'></i>";
1343
+ const p = (e.text || "").trim(), B = Y && e.showHint === !0 && p.length >= 12 ? `<span ${i} contenteditable="false" class="exclusion-wrapper upload-hint">${p}</span>` : "", D = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${R}"><span class="upload-icon">${c}</span><span class="upload-label"${J}>${O || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${_}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${G}" title="移除文件">×</span></span></span>`;
1344
1344
  e.required ? S = `<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>${D}</span>${B}` : S = D + B;
1345
1345
  }
1346
1346
  else if (e.type === "select" && e.key) {
1347
- const U = g[e.key] || e.defaultValue || "", j = encodeURIComponent(JSON.stringify(e.options || [])), F = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", V = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", G = e.required ? ' data-required="true"' : "", _ = `<div data-type="select" data-key="${e.key}" data-value="${U}" data-options="${j}"${F}${V}${G} class="rte-select-host"></div>`;
1347
+ const j = g[e.key] || e.defaultValue || "", Y = encodeURIComponent(JSON.stringify(e.options || [])), F = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", O = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", G = e.required ? ' data-required="true"' : "", _ = `<div data-type="select" data-key="${e.key}" data-value="${j}" data-options="${Y}"${F}${O}${G} class="rte-select-host"></div>`;
1348
1348
  e.required ? S = `<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>${_}</span>` : S = _;
1349
1349
  } else if (e.type === "textarea" && e.key) {
1350
- const U = g[e.key] || "", j = typeof e.maxHeight == "number" ? e.maxHeight : q?.textarea?.maxHeight ?? 252, F = typeof e.expandable == "boolean" ? e.expandable : q?.textarea?.expandable ?? !0, V = e.placeholder ? ` placeholder="${e.placeholder}"` : "", G = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${j}" style="max-height:${j}px;"${V}>${U}</textarea>`, _ = F ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", O = `<div class="rte-textarea-wrapper" data-key="${e.key}">${G}${_}</div>`;
1351
- e.required ? S = `<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>${O}</span>` : S = O;
1350
+ const j = g[e.key] || "", Y = typeof e.maxHeight == "number" ? e.maxHeight : A?.textarea?.maxHeight ?? 252, F = typeof e.expandable == "boolean" ? e.expandable : A?.textarea?.expandable ?? !0, O = e.placeholder ? ` placeholder="${e.placeholder}"` : "", G = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" data-max-height="${Y}" style="max-height:${Y}px;"${O}>${j}</textarea>`, _ = F ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", R = `<div class="rte-textarea-wrapper" data-key="${e.key}">${G}${_}</div>`;
1351
+ e.required ? S = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${R}</span>` : S = R;
1352
1352
  } else if (e.type === "richtext" && e.key) {
1353
- const U = g[e.key] || e.text || "", j = typeof e.minHeight == "number" ? e.minHeight : q?.richtext?.minHeight ?? 40, F = typeof e.maxHeight == "number" ? e.maxHeight : q?.richtext?.maxHeight ?? 160, V = Math.max(F, j), G = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", _ = typeof e.expandable == "boolean" ? e.expandable : q?.richtext?.expandable ?? !0, O = U, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${G} style="min-height:${j}px;max-height:${V}px;overflow:auto;">${O}</div>`, c = _ ? `<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>` : "", p = `<div class="rte-richtext-wrapper" data-key="${e.key}">${J}${c}</div>`, v = `<div class="rte-richtext-container" data-key="${e.key}">${p}</div>`;
1353
+ const j = g[e.key] || e.text || "", Y = typeof e.minHeight == "number" ? e.minHeight : A?.richtext?.minHeight ?? 40, F = typeof e.maxHeight == "number" ? e.maxHeight : A?.richtext?.maxHeight ?? 160, O = Math.max(F, Y), G = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", _ = typeof e.expandable == "boolean" ? e.expandable : A?.richtext?.expandable ?? !0, R = j, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${G} style="min-height:${Y}px;max-height:${O}px;overflow:auto;">${R}</div>`, c = _ ? `<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>` : "", p = `<div class="rte-richtext-wrapper" data-key="${e.key}">${J}${c}</div>`, v = `<div class="rte-richtext-container" data-key="${e.key}">${p}</div>`;
1354
1354
  e.required ? S = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${v}</div>` : S = v;
1355
1355
  } else if (e.type === "report-module" && e.key) {
1356
- const j = Object.prototype.hasOwnProperty.call(g, e.key) ? g[e.key] : e.text || "", F = typeof e.minHeight == "number" ? e.minHeight : 80, V = typeof e.maxHeight == "number" ? e.maxHeight : 240, G = Math.max(V, F), _ = e.placeholder ? ` data-placeholder="${Xe(e.placeholder)}"` : "", O = j, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" class="rte-richtext rte-report-module"${_} style="min-height:${F}px;max-height:${G}px;overflow:auto;">${O}</div>`, c = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${J}</div>`, p = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${c}</div>`;
1356
+ const Y = Object.prototype.hasOwnProperty.call(g, e.key) ? g[e.key] : e.text || "", F = typeof e.minHeight == "number" ? e.minHeight : 80, O = typeof e.maxHeight == "number" ? e.maxHeight : 240, G = Math.max(O, F), _ = e.placeholder ? ` data-placeholder="${Xe(e.placeholder)}"` : "", R = Y, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" class="rte-richtext rte-report-module"${_} style="min-height:${F}px;max-height:${G}px;overflow:auto;">${R}</div>`, c = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${J}</div>`, p = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${c}</div>`;
1357
1357
  e.required ? S = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${p}</div>` : S = p;
1358
1358
  } else if (e.type === "datepicker" && e.key) {
1359
- const U = g[e.key] || "", j = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", F = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", V = e.disableFuture ? ' data-disable-future="true"' : "", G = `<div data-type="datepicker" data-key="${e.key}" data-value="${U}" class="rte-datepicker-host"${j}${F}${V}></div>`;
1359
+ const j = g[e.key] || "", Y = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", F = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", O = e.disableFuture ? ' data-disable-future="true"' : "", G = `<div data-type="datepicker" data-key="${e.key}" data-value="${j}" class="rte-datepicker-host"${Y}${F}${O}></div>`;
1360
1360
  e.required ? S = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${G}</span>` : S = G;
1361
1361
  } else if (e.type === "multi-variable" && e.key) {
1362
- const U = e.maxCount || 9, j = T[e.key] || 1, F = Math.min(j, U);
1362
+ const j = e.maxCount || 9, Y = T[e.key] || 1, F = Math.min(Y, j);
1363
1363
  if (e.required) {
1364
- const V = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, G = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "";
1364
+ const O = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, G = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "";
1365
1365
  let _ = "";
1366
- for (let O = 0; O < F; O++) {
1367
- const J = `${e.key}_${O}`, c = g[J] || "", p = !c, v = p ? "​" : c, B = p ? "show-placeholder" : "", D = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", W = e.tooltip && p ? "" : "hidden", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", K = `<span contenteditable="true" data-type="variable" data-key="${J}" data-multi-key="${e.key}" data-index="${O}" data-placeholder="${e.placeholder || ""}"${u}${D} class="variable-chip ${B}">${v}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${W}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1368
- O === 0 ? _ += `<span ${G} class="exclusion-wrapper required-upload-group required-multi-first">${V}${K}</span>` : _ += K;
1366
+ for (let R = 0; R < F; R++) {
1367
+ const J = `${e.key}_${R}`, c = g[J] || "", p = !c, v = p ? "​" : c, B = p ? "show-placeholder" : "", D = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", W = e.tooltip && p ? "" : "hidden", u = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", U = `<span contenteditable="true" data-type="variable" data-key="${J}" data-multi-key="${e.key}" data-index="${R}" data-placeholder="${e.placeholder || ""}"${u}${D} class="variable-chip ${B}">${v}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${W}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1368
+ R === 0 ? _ += `<span ${G} class="exclusion-wrapper required-upload-group required-multi-first">${O}${U}</span>` : _ += U;
1369
1369
  }
1370
1370
  S = _;
1371
1371
  } else {
1372
- let V = "";
1372
+ let O = "";
1373
1373
  for (let G = 0; G < F; G++) {
1374
- const _ = `${e.key}_${G}`, O = g[_] || "", J = !O, c = J ? "​" : O, p = J ? "show-placeholder" : "", v = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", B = e.tooltip && J ? "" : "hidden", D = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", W = `<span contenteditable="true" data-type="variable" data-key="${_}" data-multi-key="${e.key}" data-index="${G}" data-placeholder="${e.placeholder || ""}"${D}${v} class="variable-chip ${p}">${c}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${B}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1375
- V += W;
1374
+ const _ = `${e.key}_${G}`, R = g[_] || "", J = !R, c = J ? "​" : R, p = J ? "show-placeholder" : "", v = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", B = e.tooltip && J ? "" : "hidden", D = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", W = `<span contenteditable="true" data-type="variable" data-key="${_}" data-multi-key="${e.key}" data-index="${G}" data-placeholder="${e.placeholder || ""}"${D}${v} class="variable-chip ${p}">${c}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${B}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1375
+ O += W;
1376
1376
  }
1377
- S = V;
1377
+ S = O;
1378
1378
  }
1379
1379
  }
1380
1380
  const z = d + S + I;
1381
1381
  if (e.type === "text" && !e.className && !e.exclusionGroup) {
1382
1382
  if (C(e.text) && H.length > 0) {
1383
- const j = H[H.length - 1], F = (e.text ?? "").trim();
1384
- H[H.length - 1] = `<span class="rte-inline-group">${j}${k(F)}</span>`, $++;
1383
+ const Y = H[H.length - 1], F = (e.text ?? "").trim();
1384
+ H[H.length - 1] = `<span class="rte-inline-group">${Y}${k(F)}</span>`, $++;
1385
1385
  continue;
1386
1386
  }
1387
- const U = N(e.text);
1388
- if (U && H.length > 0) {
1389
- const j = H[H.length - 1];
1390
- H[H.length - 1] = `<span class="rte-inline-group">${j}${k(U.punct)}</span>`;
1391
- const F = U.rest;
1387
+ const j = N(e.text);
1388
+ if (j && H.length > 0) {
1389
+ const Y = H[H.length - 1];
1390
+ H[H.length - 1] = `<span class="rte-inline-group">${Y}${k(j.punct)}</span>`;
1391
+ const F = j.rest;
1392
1392
  if (F) {
1393
- const V = F.replace(/\n/g, "<br/>");
1394
- H.push(`<span data-type="text" contenteditable="false">${V}</span>`);
1393
+ const O = F.replace(/\n/g, "<br/>");
1394
+ H.push(`<span data-type="text" contenteditable="false">${O}</span>`);
1395
1395
  }
1396
1396
  $++;
1397
1397
  continue;
@@ -1407,7 +1407,7 @@ function Bn(t, m, s, o, g, T = {}, M, q) {
1407
1407
  });
1408
1408
  }, 0));
1409
1409
  }
1410
- function Hn(t, m, s, o, g = {}, T, M, q, E) {
1410
+ function Hn(t, m, s, o, g = {}, T, M, A, E) {
1411
1411
  const C = ce(() => {
1412
1412
  if (!t.current) return;
1413
1413
  if (m.length === 0) {
@@ -1458,7 +1458,7 @@ function Hn(t, m, s, o, g = {}, T, M, q, E) {
1458
1458
  o,
1459
1459
  N,
1460
1460
  g,
1461
- q,
1461
+ A,
1462
1462
  E
1463
1463
  ), T?.current) {
1464
1464
  const { key: $, offset: e } = T.current;
@@ -1476,12 +1476,12 @@ function Hn(t, m, s, o, g = {}, T, M, q, E) {
1476
1476
  );
1477
1477
  let d = 0, I = null, S = 0;
1478
1478
  for (; i.nextNode(); ) {
1479
- const z = i.currentNode, U = z.textContent?.length || 0;
1480
- if (d + U >= e) {
1479
+ const z = i.currentNode, j = z.textContent?.length || 0;
1480
+ if (d + j >= e) {
1481
1481
  I = z, S = e - d;
1482
1482
  break;
1483
1483
  }
1484
- d += U;
1484
+ d += j;
1485
1485
  }
1486
1486
  if (I) {
1487
1487
  r.setStart(I, Math.min(S, I.textContent?.length || 0)), r.collapse(!0);
@@ -1502,7 +1502,7 @@ function Hn(t, m, s, o, g = {}, T, M, q, E) {
1502
1502
  }
1503
1503
  }, 0);
1504
1504
  }
1505
- }, [m, s, o, t, g, T, M, q, E]);
1505
+ }, [m, s, o, t, g, T, M, A, E]);
1506
1506
  pe(() => {
1507
1507
  C();
1508
1508
  }, [C]);
@@ -1529,7 +1529,7 @@ function Pn(t, m, s, o) {
1529
1529
  H && T(H) && o({ key: k, anchorEl: N, type: "upload-preview" });
1530
1530
  }
1531
1531
  }
1532
- }, q = (E) => {
1532
+ }, A = (E) => {
1533
1533
  const C = E.target?.closest(".upload-info-icon"), N = E.relatedTarget;
1534
1534
  if (C && C.classList.contains("upload-info-icon")) {
1535
1535
  const H = C.closest('[data-type="upload"]');
@@ -1551,8 +1551,8 @@ function Pn(t, m, s, o) {
1551
1551
  o(null);
1552
1552
  }
1553
1553
  };
1554
- return g.addEventListener("mouseover", M, !0), g.addEventListener("mouseout", q, !0), () => {
1555
- g.removeEventListener("mouseover", M, !0), g.removeEventListener("mouseout", q, !0);
1554
+ return g.addEventListener("mouseover", M, !0), g.addEventListener("mouseout", A, !0), () => {
1555
+ g.removeEventListener("mouseover", M, !0), g.removeEventListener("mouseout", A, !0);
1556
1556
  };
1557
1557
  }, [m, s, t, o]);
1558
1558
  }
@@ -1568,7 +1568,7 @@ function Vn(t, m, s, o) {
1568
1568
  s(null);
1569
1569
  };
1570
1570
  let M;
1571
- const q = () => {
1571
+ const A = () => {
1572
1572
  if (!t.current) return;
1573
1573
  t.current.querySelectorAll(
1574
1574
  ".tag-node[data-tooltip]"
@@ -1577,7 +1577,7 @@ function Vn(t, m, s, o) {
1577
1577
  });
1578
1578
  };
1579
1579
  return M = requestAnimationFrame(() => {
1580
- M = requestAnimationFrame(q);
1580
+ M = requestAnimationFrame(A);
1581
1581
  }), () => {
1582
1582
  cancelAnimationFrame(M), t.current && t.current.querySelectorAll(
1583
1583
  ".tag-node[data-tooltip]"
@@ -1592,14 +1592,14 @@ function On(t, m, s) {
1592
1592
  const o = t.current;
1593
1593
  if (!o) return;
1594
1594
  const g = (M) => {
1595
- const q = M.target?.closest(".variable-info-icon");
1596
- if (q && q.classList.contains("variable-info-icon")) {
1597
- const E = q.dataset.variableKey;
1598
- E && s({ key: E, anchorEl: q, type: "variable" });
1595
+ const A = M.target?.closest(".variable-info-icon");
1596
+ if (A && A.classList.contains("variable-info-icon")) {
1597
+ const E = A.dataset.variableKey;
1598
+ E && s({ key: E, anchorEl: A, type: "variable" });
1599
1599
  }
1600
1600
  }, T = (M) => {
1601
- const q = M.target?.closest(".variable-info-icon"), E = M.relatedTarget;
1602
- q && q.classList.contains("variable-info-icon") && (!E || !o.contains(E) ? s(null) : E.closest(".variable-info-icon") || s(null));
1601
+ const A = M.target?.closest(".variable-info-icon"), E = M.relatedTarget;
1602
+ A && A.classList.contains("variable-info-icon") && (!E || !o.contains(E) ? s(null) : E.closest(".variable-info-icon") || s(null));
1603
1603
  };
1604
1604
  return o.addEventListener("mouseover", g, !0), o.addEventListener("mouseout", T, !0), () => {
1605
1605
  o.removeEventListener("mouseover", g, !0), o.removeEventListener("mouseout", T, !0);
@@ -1619,7 +1619,7 @@ function Rn(t, m, s, o) {
1619
1619
  }, M = () => {
1620
1620
  o(null);
1621
1621
  };
1622
- let q;
1622
+ let A;
1623
1623
  const E = () => {
1624
1624
  if (!t.current) return;
1625
1625
  t.current.querySelectorAll(
@@ -1628,10 +1628,10 @@ function Rn(t, m, s, o) {
1628
1628
  N.addEventListener("mouseenter", T), N.addEventListener("mouseleave", M);
1629
1629
  });
1630
1630
  };
1631
- return q = requestAnimationFrame(() => {
1632
- q = requestAnimationFrame(E);
1631
+ return A = requestAnimationFrame(() => {
1632
+ A = requestAnimationFrame(E);
1633
1633
  }), () => {
1634
- cancelAnimationFrame(q), t.current && t.current.querySelectorAll(
1634
+ cancelAnimationFrame(A), t.current && t.current.querySelectorAll(
1635
1635
  ".upload-label[data-file-name]"
1636
1636
  ).forEach((N) => {
1637
1637
  N.removeEventListener("mouseenter", T), N.removeEventListener("mouseleave", M);
@@ -1652,8 +1652,8 @@ function Fn(t, m) {
1652
1652
  pe(() => {
1653
1653
  if (!t.current) return;
1654
1654
  let g = !1, T = 0;
1655
- const M = (d) => d instanceof HTMLElement ? !!(d.closest(".rte-datepicker-wrapper") || d.closest(".rte-datepicker-host") || d.closest(".ant-picker") || d.closest(".ant-picker-dropdown")) : !1, q = (d) => d instanceof HTMLElement ? !!(d.closest(".rte-select-wrapper") || d.closest(".rte-select-host") || d.closest(".ant-select") || d.closest(".ant-select-dropdown")) : !1, E = (d) => {
1656
- g = !0, M(d.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), q(d.target) && (o.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1655
+ const M = (d) => d instanceof HTMLElement ? !!(d.closest(".rte-datepicker-wrapper") || d.closest(".rte-datepicker-host") || d.closest(".ant-picker") || d.closest(".ant-picker-dropdown")) : !1, A = (d) => d instanceof HTMLElement ? !!(d.closest(".rte-select-wrapper") || d.closest(".rte-select-host") || d.closest(".ant-select") || d.closest(".ant-select-dropdown")) : !1, E = (d) => {
1656
+ g = !0, M(d.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), A(d.target) && (o.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1657
1657
  }, C = () => {
1658
1658
  g = !1, T = Date.now();
1659
1659
  };
@@ -1665,7 +1665,7 @@ function Fn(t, m) {
1665
1665
  }, e = () => {
1666
1666
  k = Date.now();
1667
1667
  }, n = (d) => {
1668
- M(d.target) && (s.current = Date.now(), console.log("[SelectionCtrl] focusin datepicker target")), q(d.target) && (o.current = Date.now(), console.log("[SelectionCtrl] focusin select target"));
1668
+ M(d.target) && (s.current = Date.now(), console.log("[SelectionCtrl] focusin datepicker target")), A(d.target) && (o.current = Date.now(), console.log("[SelectionCtrl] focusin select target"));
1669
1669
  }, r = () => {
1670
1670
  if (Date.now() - s.current < 800 || Date.now() - o.current < 800) {
1671
1671
  console.log("[SelectionCtrl] skip selectionchange due to recent picker/select interaction");
@@ -1687,29 +1687,29 @@ function Fn(t, m) {
1687
1687
  const z = I.anchorNode;
1688
1688
  if (!z || !t.current.contains(z))
1689
1689
  return;
1690
- let U = !1, j = !1;
1690
+ let j = !1, Y = !1;
1691
1691
  if (z.nodeType === Node.ELEMENT_NODE) {
1692
- const V = z;
1693
- (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (U = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (j = !0);
1692
+ const O = z;
1693
+ (O.closest('[data-type="datepicker"]') || O.closest(".rte-datepicker-wrapper") || O.closest(".rte-datepicker-host")) && (j = !0), (O.closest('[data-type="select"]') || O.closest(".rte-select-wrapper") || O.closest(".rte-select-host")) && (Y = !0);
1694
1694
  } else if (z.parentElement) {
1695
- const V = z.parentElement;
1696
- (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (U = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (j = !0);
1695
+ const O = z.parentElement;
1696
+ (O.closest('[data-type="datepicker"]') || O.closest(".rte-datepicker-wrapper") || O.closest(".rte-datepicker-host")) && (j = !0), (O.closest('[data-type="select"]') || O.closest(".rte-select-wrapper") || O.closest(".rte-select-host")) && (Y = !0);
1697
1697
  }
1698
- if (U || j)
1698
+ if (j || Y)
1699
1699
  return;
1700
1700
  let F = null;
1701
1701
  if (z.nodeType === Node.ELEMENT_NODE ? F = z.closest('[data-type="variable"]') : z.nodeType === Node.TEXT_NODE && z.parentElement && (F = z.parentElement.closest('[data-type="variable"]')), !F) {
1702
1702
  if (Date.now() - T > 500)
1703
1703
  return;
1704
- const V = t.current.querySelectorAll('[data-type="variable"]');
1705
- if (V.length > 0) {
1704
+ const O = t.current.querySelectorAll('[data-type="variable"]');
1705
+ if (O.length > 0) {
1706
1706
  let G = null;
1707
- for (const _ of Array.from(V))
1707
+ for (const _ of Array.from(O))
1708
1708
  if (_.style.display !== "none") {
1709
1709
  G = _;
1710
1710
  break;
1711
1711
  }
1712
- if (!G && V.length > 0 && (G = V[0]), G) {
1712
+ if (!G && O.length > 0 && (G = O[0]), G) {
1713
1713
  const _ = document.createRange();
1714
1714
  _.selectNodeContents(G), _.collapse(!1), I.removeAllRanges(), I.addRange(_), G.focus();
1715
1715
  } else
@@ -1733,7 +1733,7 @@ function Mt() {
1733
1733
  (function(s, o) {
1734
1734
  t.exports = o();
1735
1735
  })(Yn, function() {
1736
- var s = 1e3, o = 6e4, g = 36e5, T = "millisecond", M = "second", q = "minute", E = "hour", C = "day", N = "week", k = "month", H = "quarter", $ = "year", e = "date", n = "Invalid Date", r = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, i = /\[([^\]]+)]|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, d = { 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(c) {
1736
+ var s = 1e3, o = 6e4, g = 36e5, T = "millisecond", M = "second", A = "minute", E = "hour", C = "day", N = "week", k = "month", H = "quarter", $ = "year", e = "date", n = "Invalid Date", r = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, i = /\[([^\]]+)]|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, d = { 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(c) {
1737
1737
  var p = ["th", "st", "nd", "rd"], v = c % 100;
1738
1738
  return "[" + c + (p[(v - 20) % 10] || p[v] || p[0]) + "]";
1739
1739
  } }, I = function(c, p, v) {
@@ -1749,37 +1749,37 @@ function Mt() {
1749
1749
  }, a: function(c) {
1750
1750
  return c < 0 ? Math.ceil(c) || 0 : Math.floor(c);
1751
1751
  }, p: function(c) {
1752
- return { M: k, y: $, w: N, d: C, D: e, h: E, m: q, s: M, ms: T, Q: H }[c] || String(c || "").toLowerCase().replace(/s$/, "");
1752
+ return { M: k, y: $, w: N, d: C, D: e, h: E, m: A, s: M, ms: T, Q: H }[c] || String(c || "").toLowerCase().replace(/s$/, "");
1753
1753
  }, u: function(c) {
1754
1754
  return c === void 0;
1755
- } }, z = "en", U = {};
1756
- U[z] = d;
1757
- var j = "$isDayjsObject", F = function(c) {
1758
- return c instanceof O || !(!c || !c[j]);
1759
- }, V = function c(p, v, B) {
1755
+ } }, z = "en", j = {};
1756
+ j[z] = d;
1757
+ var Y = "$isDayjsObject", F = function(c) {
1758
+ return c instanceof R || !(!c || !c[Y]);
1759
+ }, O = function c(p, v, B) {
1760
1760
  var D;
1761
1761
  if (!p) return z;
1762
1762
  if (typeof p == "string") {
1763
1763
  var W = p.toLowerCase();
1764
- U[W] && (D = W), v && (U[W] = v, D = W);
1764
+ j[W] && (D = W), v && (j[W] = v, D = W);
1765
1765
  var u = p.split("-");
1766
1766
  if (!D && u.length > 1) return c(u[0]);
1767
1767
  } else {
1768
- var K = p.name;
1769
- U[K] = p, D = K;
1768
+ var U = p.name;
1769
+ j[U] = p, D = U;
1770
1770
  }
1771
1771
  return !B && D && (z = D), D || !B && z;
1772
1772
  }, G = function(c, p) {
1773
1773
  if (F(c)) return c.clone();
1774
1774
  var v = typeof p == "object" ? p : {};
1775
- return v.date = c, v.args = arguments, new O(v);
1775
+ return v.date = c, v.args = arguments, new R(v);
1776
1776
  }, _ = S;
1777
- _.l = V, _.i = F, _.w = function(c, p) {
1777
+ _.l = O, _.i = F, _.w = function(c, p) {
1778
1778
  return G(c, { locale: p.$L, utc: p.$u, x: p.$x, $offset: p.$offset });
1779
1779
  };
1780
- var O = function() {
1780
+ var R = function() {
1781
1781
  function c(v) {
1782
- this.$L = V(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[j] = !0;
1782
+ this.$L = O(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[Y] = !0;
1783
1783
  }
1784
1784
  var p = c.prototype;
1785
1785
  return p.parse = function(v) {
@@ -1791,8 +1791,8 @@ function Mt() {
1791
1791
  if (typeof D == "string" && !/Z$/i.test(D)) {
1792
1792
  var u = D.match(r);
1793
1793
  if (u) {
1794
- var K = u[2] - 1 || 0, Z = (u[7] || "0").substring(0, 3);
1795
- return W ? new Date(Date.UTC(u[1], K, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, Z)) : new Date(u[1], K, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, Z);
1794
+ var U = u[2] - 1 || 0, ee = (u[7] || "0").substring(0, 3);
1795
+ return W ? new Date(Date.UTC(u[1], U, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, ee)) : new Date(u[1], U, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, ee);
1796
1796
  }
1797
1797
  }
1798
1798
  return new Date(D);
@@ -1818,40 +1818,40 @@ function Mt() {
1818
1818
  }, p.valueOf = function() {
1819
1819
  return this.$d.getTime();
1820
1820
  }, p.startOf = function(v, B) {
1821
- var D = this, W = !!_.u(B) || B, u = _.p(v), K = function(he, ye) {
1821
+ var D = this, W = !!_.u(B) || B, u = _.p(v), U = function(he, ye) {
1822
1822
  var be = _.w(D.$u ? Date.UTC(D.$y, ye, he) : new Date(D.$y, ye, he), D);
1823
1823
  return W ? be : be.endOf(C);
1824
- }, Z = function(he, ye) {
1824
+ }, ee = function(he, ye) {
1825
1825
  return _.w(D.toDate()[he].apply(D.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ye)), D);
1826
- }, ie = this.$W, me = this.$M, fe = this.$D, we = "set" + (this.$u ? "UTC" : "");
1826
+ }, ie = this.$W, me = this.$M, fe = this.$D, ke = "set" + (this.$u ? "UTC" : "");
1827
1827
  switch (u) {
1828
1828
  case $:
1829
- return W ? K(1, 0) : K(31, 11);
1829
+ return W ? U(1, 0) : U(31, 11);
1830
1830
  case k:
1831
- return W ? K(1, me) : K(0, me + 1);
1831
+ return W ? U(1, me) : U(0, me + 1);
1832
1832
  case N:
1833
- var ne = this.$locale().weekStart || 0, re = (ie < ne ? ie + 7 : ie) - ne;
1834
- return K(W ? fe - re : fe + (6 - re), me);
1833
+ var ne = this.$locale().weekStart || 0, ae = (ie < ne ? ie + 7 : ie) - ne;
1834
+ return U(W ? fe - ae : fe + (6 - ae), me);
1835
1835
  case C:
1836
1836
  case e:
1837
- return Z(we + "Hours", 0);
1837
+ return ee(ke + "Hours", 0);
1838
1838
  case E:
1839
- return Z(we + "Minutes", 1);
1840
- case q:
1841
- return Z(we + "Seconds", 2);
1839
+ return ee(ke + "Minutes", 1);
1840
+ case A:
1841
+ return ee(ke + "Seconds", 2);
1842
1842
  case M:
1843
- return Z(we + "Milliseconds", 3);
1843
+ return ee(ke + "Milliseconds", 3);
1844
1844
  default:
1845
1845
  return this.clone();
1846
1846
  }
1847
1847
  }, p.endOf = function(v) {
1848
1848
  return this.startOf(v, !1);
1849
1849
  }, p.$set = function(v, B) {
1850
- var D, W = _.p(v), u = "set" + (this.$u ? "UTC" : ""), K = (D = {}, D[C] = u + "Date", D[e] = u + "Date", D[k] = u + "Month", D[$] = u + "FullYear", D[E] = u + "Hours", D[q] = u + "Minutes", D[M] = u + "Seconds", D[T] = u + "Milliseconds", D)[W], Z = W === C ? this.$D + (B - this.$W) : B;
1850
+ var D, W = _.p(v), u = "set" + (this.$u ? "UTC" : ""), U = (D = {}, D[C] = u + "Date", D[e] = u + "Date", D[k] = u + "Month", D[$] = u + "FullYear", D[E] = u + "Hours", D[A] = u + "Minutes", D[M] = u + "Seconds", D[T] = u + "Milliseconds", D)[W], ee = W === C ? this.$D + (B - this.$W) : B;
1851
1851
  if (W === k || W === $) {
1852
1852
  var ie = this.clone().set(e, 1);
1853
- ie.$d[K](Z), ie.init(), this.$d = ie.set(e, Math.min(this.$D, ie.daysInMonth())).$d;
1854
- } else K && this.$d[K](Z);
1853
+ ie.$d[U](ee), ie.init(), this.$d = ie.set(e, Math.min(this.$D, ie.daysInMonth())).$d;
1854
+ } else U && this.$d[U](ee);
1855
1855
  return this.init(), this;
1856
1856
  }, p.set = function(v, B) {
1857
1857
  return this.clone().$set(v, B);
@@ -1860,28 +1860,28 @@ function Mt() {
1860
1860
  }, p.add = function(v, B) {
1861
1861
  var D, W = this;
1862
1862
  v = Number(v);
1863
- var u = _.p(B), K = function(me) {
1863
+ var u = _.p(B), U = function(me) {
1864
1864
  var fe = G(W);
1865
1865
  return _.w(fe.date(fe.date() + Math.round(me * v)), W);
1866
1866
  };
1867
1867
  if (u === k) return this.set(k, this.$M + v);
1868
1868
  if (u === $) return this.set($, this.$y + v);
1869
- if (u === C) return K(1);
1870
- if (u === N) return K(7);
1871
- var Z = (D = {}, D[q] = o, D[E] = g, D[M] = s, D)[u] || 1, ie = this.$d.getTime() + v * Z;
1869
+ if (u === C) return U(1);
1870
+ if (u === N) return U(7);
1871
+ var ee = (D = {}, D[A] = o, D[E] = g, D[M] = s, D)[u] || 1, ie = this.$d.getTime() + v * ee;
1872
1872
  return _.w(ie, this);
1873
1873
  }, p.subtract = function(v, B) {
1874
1874
  return this.add(-1 * v, B);
1875
1875
  }, p.format = function(v) {
1876
1876
  var B = this, D = this.$locale();
1877
1877
  if (!this.isValid()) return D.invalidDate || n;
1878
- var W = v || "YYYY-MM-DDTHH:mm:ssZ", u = _.z(this), K = this.$H, Z = this.$m, ie = this.$M, me = D.weekdays, fe = D.months, we = D.meridiem, ne = function(ye, be, Ee, ke) {
1879
- return ye && (ye[be] || ye(B, W)) || Ee[be].slice(0, ke);
1880
- }, re = function(ye) {
1881
- return _.s(K % 12 || 12, ye, "0");
1882
- }, he = we || function(ye, be, Ee) {
1883
- var ke = ye < 12 ? "AM" : "PM";
1884
- return Ee ? ke.toLowerCase() : ke;
1878
+ var W = v || "YYYY-MM-DDTHH:mm:ssZ", u = _.z(this), U = this.$H, ee = this.$m, ie = this.$M, me = D.weekdays, fe = D.months, ke = D.meridiem, ne = function(ye, be, Ee, $e) {
1879
+ return ye && (ye[be] || ye(B, W)) || Ee[be].slice(0, $e);
1880
+ }, ae = function(ye) {
1881
+ return _.s(U % 12 || 12, ye, "0");
1882
+ }, he = ke || function(ye, be, Ee) {
1883
+ var $e = ye < 12 ? "AM" : "PM";
1884
+ return Ee ? $e.toLowerCase() : $e;
1885
1885
  };
1886
1886
  return W.replace(i, function(ye, be) {
1887
1887
  return be || function(Ee) {
@@ -1911,21 +1911,21 @@ function Mt() {
1911
1911
  case "dddd":
1912
1912
  return me[B.$W];
1913
1913
  case "H":
1914
- return String(K);
1914
+ return String(U);
1915
1915
  case "HH":
1916
- return _.s(K, 2, "0");
1916
+ return _.s(U, 2, "0");
1917
1917
  case "h":
1918
- return re(1);
1918
+ return ae(1);
1919
1919
  case "hh":
1920
- return re(2);
1920
+ return ae(2);
1921
1921
  case "a":
1922
- return he(K, Z, !0);
1922
+ return he(U, ee, !0);
1923
1923
  case "A":
1924
- return he(K, Z, !1);
1924
+ return he(U, ee, !1);
1925
1925
  case "m":
1926
- return String(Z);
1926
+ return String(ee);
1927
1927
  case "mm":
1928
- return _.s(Z, 2, "0");
1928
+ return _.s(ee, 2, "0");
1929
1929
  case "s":
1930
1930
  return String(B.$s);
1931
1931
  case "ss":
@@ -1941,10 +1941,10 @@ function Mt() {
1941
1941
  }, p.utcOffset = function() {
1942
1942
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1943
1943
  }, p.diff = function(v, B, D) {
1944
- var W, u = this, K = _.p(B), Z = G(v), ie = (Z.utcOffset() - this.utcOffset()) * o, me = this - Z, fe = function() {
1945
- return _.m(u, Z);
1944
+ var W, u = this, U = _.p(B), ee = G(v), ie = (ee.utcOffset() - this.utcOffset()) * o, me = this - ee, fe = function() {
1945
+ return _.m(u, ee);
1946
1946
  };
1947
- switch (K) {
1947
+ switch (U) {
1948
1948
  case $:
1949
1949
  W = fe() / 12;
1950
1950
  break;
@@ -1963,7 +1963,7 @@ function Mt() {
1963
1963
  case E:
1964
1964
  W = me / g;
1965
1965
  break;
1966
- case q:
1966
+ case A:
1967
1967
  W = me / o;
1968
1968
  break;
1969
1969
  case M:
@@ -1976,10 +1976,10 @@ function Mt() {
1976
1976
  }, p.daysInMonth = function() {
1977
1977
  return this.endOf(k).$D;
1978
1978
  }, p.$locale = function() {
1979
- return U[this.$L];
1979
+ return j[this.$L];
1980
1980
  }, p.locale = function(v, B) {
1981
1981
  if (!v) return this.$L;
1982
- var D = this.clone(), W = V(v, B, !0);
1982
+ var D = this.clone(), W = O(v, B, !0);
1983
1983
  return W && (D.$L = W), D;
1984
1984
  }, p.clone = function() {
1985
1985
  return _.w(this.$d, this);
@@ -1992,16 +1992,16 @@ function Mt() {
1992
1992
  }, p.toString = function() {
1993
1993
  return this.$d.toUTCString();
1994
1994
  }, c;
1995
- }(), J = O.prototype;
1996
- return G.prototype = J, [["$ms", T], ["$s", M], ["$m", q], ["$H", E], ["$W", C], ["$M", k], ["$y", $], ["$D", e]].forEach(function(c) {
1995
+ }(), J = R.prototype;
1996
+ return G.prototype = J, [["$ms", T], ["$s", M], ["$m", A], ["$H", E], ["$W", C], ["$M", k], ["$y", $], ["$D", e]].forEach(function(c) {
1997
1997
  J[c[1]] = function(p) {
1998
1998
  return this.$g(p, c[0], c[1]);
1999
1999
  };
2000
2000
  }), G.extend = function(c, p) {
2001
- return c.$i || (c(p, O, G), c.$i = !0), G;
2002
- }, G.locale = V, G.isDayjs = F, G.unix = function(c) {
2001
+ return c.$i || (c(p, R, G), c.$i = !0), G;
2002
+ }, G.locale = O, G.isDayjs = F, G.unix = function(c) {
2003
2003
  return G(1e3 * c);
2004
- }, G.en = U[z], G.Ls = U, G.p = {}, G;
2004
+ }, G.en = j[z], G.Ls = j, G.p = {}, G;
2005
2005
  });
2006
2006
  }(Je)), Je.exports;
2007
2007
  }
@@ -2016,10 +2016,10 @@ function Un() {
2016
2016
  function o(M) {
2017
2017
  return M && typeof M == "object" && "default" in M ? M : { default: M };
2018
2018
  }
2019
- var g = o(s), T = { 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(M, q) {
2020
- return q === "W" ? M + "周" : M + "日";
2021
- }, 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(M, q) {
2022
- var E = 100 * M + q;
2019
+ var g = o(s), T = { 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(M, A) {
2020
+ return A === "W" ? M + "周" : M + "日";
2021
+ }, 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(M, A) {
2022
+ var E = 100 * M + A;
2023
2023
  return E < 600 ? "凌晨" : E < 900 ? "早上" : E < 1100 ? "上午" : E < 1300 ? "中午" : E < 1800 ? "下午" : "晚上";
2024
2024
  } };
2025
2025
  return g.default.locale(T, null, !0), T;
@@ -2132,7 +2132,7 @@ const er = {
2132
2132
  It.lang.ok = "确定";
2133
2133
  Qe.locale("zh-cn");
2134
2134
  const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2135
- const s = t.dataset.key, o = t.dataset.value, g = t.dataset.placeholder, T = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, M = t.dataset.disableFuture === "true", [q, E] = le(() => {
2135
+ const s = t.dataset.key, o = t.dataset.value, g = t.dataset.placeholder, T = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, M = t.dataset.disableFuture === "true", [A, E] = le(() => {
2136
2136
  if (!o) return null;
2137
2137
  const n = o.split(",");
2138
2138
  return n.length === 2 && n[0] && n[1] ? [Qe(n[0]), Qe(n[1])] : null;
@@ -2141,7 +2141,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2141
2141
  /* @__PURE__ */ L("div", { className: "rte-datepicker-wrapper", contentEditable: !1, style: { display: "inline-block", verticalAlign: "middle", width: "260px", marginLeft: "4px", marginRight: "4px", fontSize: "16px", height: "30px", lineHeight: "30px" }, children: /* @__PURE__ */ L(
2142
2142
  tr,
2143
2143
  {
2144
- value: q,
2144
+ value: A,
2145
2145
  disabledDate: (n) => n ? M && n.isAfter(Qe(), "day") ? !0 : !T || !C || !C[0] ? !1 : Math.abs(n.diff(C[0], "days")) > T : !1,
2146
2146
  onCalendarChange: (n) => {
2147
2147
  console.log("[DatePicker] onCalendarChange", n?.map((r) => r?.format("YYYY-MM-DD") || null)), N(n);
@@ -2154,7 +2154,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2154
2154
  t.setAttribute("data-value", ""), m(s, "");
2155
2155
  },
2156
2156
  onOpenChange: (n) => {
2157
- console.log("[DatePicker] onOpenChange", n), N(n ? q : null);
2157
+ console.log("[DatePicker] onOpenChange", n), N(n ? A : null);
2158
2158
  },
2159
2159
  placeholder: [g || "开始日期", g || "结束日期"],
2160
2160
  style: { width: "100%" },
@@ -2173,10 +2173,10 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2173
2173
  const o = t.current;
2174
2174
  if (!o) return;
2175
2175
  const g = () => {
2176
- const M = o.querySelectorAll(".rte-datepicker-host"), q = [];
2176
+ const M = o.querySelectorAll(".rte-datepicker-host"), A = [];
2177
2177
  M.forEach((E) => {
2178
2178
  const C = E.getAttribute("data-key");
2179
- C && q.push(
2179
+ C && A.push(
2180
2180
  /* @__PURE__ */ L(
2181
2181
  nr,
2182
2182
  {
@@ -2191,11 +2191,11 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2191
2191
  `datepicker-${C}`
2192
2192
  )
2193
2193
  );
2194
- }), s(q);
2194
+ }), s(A);
2195
2195
  };
2196
2196
  g();
2197
2197
  const T = new MutationObserver((M) => {
2198
- let q = !1;
2198
+ let A = !1;
2199
2199
  for (const E of M)
2200
2200
  if (E.type === "childList") {
2201
2201
  let C = !1;
@@ -2210,11 +2210,11 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2210
2210
  (k.classList?.contains("rte-datepicker-host") || k.querySelector?.(".rte-datepicker-host")) && (C = !0);
2211
2211
  }
2212
2212
  }), C) {
2213
- q = !0;
2213
+ A = !0;
2214
2214
  break;
2215
2215
  }
2216
2216
  }
2217
- q && g();
2217
+ A && g();
2218
2218
  });
2219
2219
  return T.observe(o, { childList: !0, subtree: !0 }), () => T.disconnect();
2220
2220
  }, [t]), m;
@@ -2226,7 +2226,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2226
2226
  width: g,
2227
2227
  lockStructure: T = !1,
2228
2228
  agentOptions: M = [],
2229
- onAgentSelect: q,
2229
+ onAgentSelect: A,
2230
2230
  onAgentExit: E,
2231
2231
  loading: C = !1,
2232
2232
  placeholder: N,
@@ -2241,20 +2241,20 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2241
2241
  scrollContainerRef: I,
2242
2242
  atBottomOffset: S = 10,
2243
2243
  atBottomExitOffset: z,
2244
- collapseOnScrollAtBottom: U = !1,
2245
- scrollEndDebounceMs: j = 120,
2244
+ collapseOnScrollAtBottom: j = !1,
2245
+ scrollEndDebounceMs: Y = 120,
2246
2246
  collapsedTotalHeight: F = 132,
2247
- toggleOnBlankClick: V,
2247
+ toggleOnBlankClick: O,
2248
2248
  scrollThrottleMs: G,
2249
2249
  collapsed: _,
2250
- defaultCollapsed: O,
2250
+ defaultCollapsed: R,
2251
2251
  onCollapsedChange: J,
2252
2252
  reportAnalyze: c,
2253
2253
  nodeDefaults: p
2254
2254
  }) => {
2255
- const [v, B] = cn.useMessage(), D = se(null), W = se(null), u = se(null), K = se(null), [Z, ie] = le({}), [me, fe] = le(null), [we, ne] = le(null), [re, he] = le(null), ye = se(!1), be = se(null), [Ee, ke] = le(!1), [He, Pe] = le({}), tt = se(() => {
2255
+ const [v, B] = cn.useMessage(), D = se(null), W = se(null), u = se(null), U = se(null), [ee, ie] = le({}), [me, fe] = le(null), [ke, ne] = le(null), [ae, he] = le(null), ye = se(!1), be = se(null), [Ee, $e] = le(!1), [He, Pe] = le({}), tt = se(() => {
2256
2256
  }), Ae = se({}), Ve = se({}), Oe = se(null), [Bt, Re] = le(!0), mt = se(null), [Ht, Pt] = le(0), Ge = typeof _ == "boolean", [Fe, Vt] = le(
2257
- O ?? !1
2257
+ R ?? !1
2258
2258
  ), [Ie, Ot] = le(!1), nt = se(!1), yt = se(Fe), De = ce(
2259
2259
  (a, l) => {
2260
2260
  (Ge ? _ : yt.current) !== a && (Ge || Vt(a), J?.(a, l));
@@ -2277,81 +2277,81 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2277
2277
  return f.observe(a), () => f.disconnect();
2278
2278
  }, []), pe(() => {
2279
2279
  if (!d) return;
2280
- const a = I?.current ?? null, f = ((Y) => {
2281
- let R = Y;
2282
- for (; R && R !== document.body; ) {
2283
- const te = window.getComputedStyle(R), ae = te.overflowY, oe = te.overflowX, ue = (ae === "auto" || ae === "scroll") && R.scrollHeight > R.clientHeight + 1, ge = (oe === "auto" || oe === "scroll") && R.scrollWidth > R.clientWidth + 1;
2284
- if (ue || ge) return R;
2285
- R = R.parentElement;
2280
+ const a = I?.current ?? null, f = ((V) => {
2281
+ let K = V;
2282
+ for (; K && K !== document.body; ) {
2283
+ const re = window.getComputedStyle(K), oe = re.overflowY, de = re.overflowX, ge = (oe === "auto" || oe === "scroll") && K.scrollHeight > K.clientHeight + 1, xe = (de === "auto" || de === "scroll") && K.scrollWidth > K.clientWidth + 1;
2284
+ if (ge || xe) return K;
2285
+ K = K.parentElement;
2286
2286
  }
2287
2287
  return null;
2288
2288
  })(D.current?.parentElement ?? null), x = a ?? f ?? window;
2289
- let b = 0, P = 0, w = null, y = -1;
2290
- const A = () => {
2289
+ let b = 0, P = 0, w = null, y = -1, q = "none";
2290
+ const h = () => {
2291
2291
  if (x === window) {
2292
- const R = document.documentElement;
2292
+ const K = document.documentElement;
2293
2293
  return {
2294
- scrollTop: R.scrollTop,
2295
- scrollHeight: R.scrollHeight,
2296
- clientHeight: R.clientHeight
2294
+ scrollTop: K.scrollTop,
2295
+ scrollHeight: K.scrollHeight,
2296
+ clientHeight: K.clientHeight
2297
2297
  };
2298
2298
  }
2299
- const Y = x;
2299
+ const V = x;
2300
2300
  return {
2301
- scrollTop: Y.scrollTop,
2302
- scrollHeight: Y.scrollHeight,
2303
- clientHeight: Y.clientHeight
2301
+ scrollTop: V.scrollTop,
2302
+ scrollHeight: V.scrollHeight,
2303
+ clientHeight: V.clientHeight
2304
2304
  };
2305
- }, h = () => {
2305
+ }, te = () => {
2306
2306
  if (x === window) {
2307
- const Y = document.documentElement;
2308
- Y.scrollTop = Y.scrollHeight;
2307
+ const V = document.documentElement;
2308
+ V.scrollTop = V.scrollHeight;
2309
2309
  } else {
2310
- const Y = x;
2311
- Y.scrollTop = Y.scrollHeight;
2310
+ const V = x;
2311
+ V.scrollTop = V.scrollHeight;
2312
2312
  }
2313
- }, ee = () => {
2314
- const Y = S, R = Math.max(
2315
- Y + 1,
2316
- typeof z == "number" ? z : Y + 16
2317
- ), te = nt.current;
2313
+ }, X = () => {
2314
+ const V = S, K = Math.max(
2315
+ V + 1,
2316
+ typeof z == "number" ? z : V + 16
2317
+ ), re = nt.current;
2318
2318
  if (x === window) {
2319
- const ue = document.documentElement;
2320
- if (ue.scrollHeight <= ue.clientHeight + S) return !1;
2321
- const ge = ue.scrollHeight - ue.scrollTop - ue.clientHeight;
2322
- return te ? ge <= R : ge <= Y;
2319
+ const ge = document.documentElement;
2320
+ if (ge.scrollHeight <= ge.clientHeight + S) return !1;
2321
+ const xe = ge.scrollHeight - ge.scrollTop - ge.clientHeight;
2322
+ return re ? xe <= K : xe <= V;
2323
2323
  }
2324
- const ae = x;
2325
- if (ae.scrollHeight <= ae.clientHeight + S) return !1;
2326
- const oe = ae.scrollHeight - ae.scrollTop - ae.clientHeight;
2327
- return te ? oe <= R : oe <= Y;
2328
- }, X = (Y = !1) => {
2329
- if (!Y && typeof G == "number" && G > 0) {
2330
- const te = Date.now();
2331
- if (te - P < G) return;
2332
- P = te;
2324
+ const oe = x;
2325
+ if (oe.scrollHeight <= oe.clientHeight + S) return !1;
2326
+ const de = oe.scrollHeight - oe.scrollTop - oe.clientHeight;
2327
+ return re ? de <= K : de <= V;
2328
+ }, Z = (V = !1) => {
2329
+ if (!V && typeof G == "number" && G > 0) {
2330
+ const re = Date.now();
2331
+ if (re - P < G) return;
2332
+ P = re;
2333
2333
  }
2334
- const R = ee();
2335
- if (Ot((te) => te === R ? te : R), R) {
2336
- De(!1, "bottom"), window.requestAnimationFrame(() => h());
2334
+ const K = X();
2335
+ if (Ot((re) => re === K ? re : K), K) {
2336
+ j && q === "up" || (De(!1, "bottom"), !j && q !== "up" && window.requestAnimationFrame(() => te()));
2337
2337
  return;
2338
2338
  }
2339
2339
  De(!0, "scroll");
2340
2340
  }, Q = () => {
2341
- if (U) {
2342
- const { scrollTop: Y } = A();
2343
- y >= 0 && nt.current && Y < y && De(!0, "scroll"), y = Y;
2341
+ {
2342
+ const { scrollTop: V } = h();
2343
+ y >= 0 && (V > y ? q = "down" : V < y && (q = "up")), j && y >= 0 && nt.current && V < y && De(!0, "scroll"), y = V;
2344
2344
  }
2345
2345
  b || (b = window.requestAnimationFrame(() => {
2346
- b = 0, X();
2347
- }), j && j > 0 && (w && window.clearTimeout(w), w = window.setTimeout(() => {
2348
- X(!0);
2349
- }, j)));
2346
+ b = 0, Z();
2347
+ }), Y && Y > 0 && (w && window.clearTimeout(w), w = window.setTimeout(() => {
2348
+ Z(!0);
2349
+ }, Y)));
2350
2350
  };
2351
- return x === window ? window.addEventListener("scroll", Q, { passive: !0 }) : x.addEventListener("scroll", Q, { passive: !0 }), y = A().scrollTop, X(!0), () => {
2351
+ return x === window ? window.addEventListener("scroll", Q, { passive: !0 }) : x.addEventListener("scroll", Q, { passive: !0 }), y = h().scrollTop, Z(!0), () => {
2352
2352
  x === window ? window.removeEventListener("scroll", Q) : x.removeEventListener("scroll", Q), w && window.clearTimeout(w), b && window.cancelAnimationFrame(b);
2353
2353
  };
2354
- }, [d, I, S, z, G, U, j, De]);
2354
+ }, [d, I, S, z, G, j, Y, De]);
2355
2355
  const [Te, Ce] = le(() => {
2356
2356
  const a = {};
2357
2357
  return t.forEach((l) => {
@@ -2359,8 +2359,8 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2359
2359
  }), a;
2360
2360
  }), rt = se({}), ht = se({}), gt = se({});
2361
2361
  pe(() => {
2362
- ht.current = Z;
2363
- }, [Z]), pe(() => {
2362
+ ht.current = ee;
2363
+ }, [ee]), pe(() => {
2364
2364
  gt.current = Te;
2365
2365
  }, [Te]);
2366
2366
  const at = ce((a) => a.find((f) => f.type === "tag")?.text || null, []), bt = se(t), Ne = se(null);
@@ -2371,20 +2371,20 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2371
2371
  u.current.querySelectorAll('[data-type="variable"]').forEach((w) => {
2372
2372
  const y = w.dataset.key;
2373
2373
  if (y) {
2374
- const A = w.innerText.replace(/[\u200B\n]/g, "").trim();
2375
- A && (f[y] = A);
2374
+ const q = w.innerText.replace(/[\u200B\n]/g, "").trim();
2375
+ q && (f[y] = q);
2376
2376
  }
2377
2377
  }), u.current.querySelectorAll('[data-type="select"]').forEach((w) => {
2378
2378
  const y = w.dataset.key;
2379
2379
  if (y) {
2380
- const A = (w.getAttribute("data-value") || "").trim();
2381
- A && (f[y] = A);
2380
+ const q = (w.getAttribute("data-value") || "").trim();
2381
+ q && (f[y] = q);
2382
2382
  }
2383
2383
  }), u.current.querySelectorAll('[data-type="textarea"]').forEach((w) => {
2384
2384
  const y = w.dataset.key;
2385
2385
  if (y) {
2386
- const A = w.value.replace(/[\u200B]/g, "").trim();
2387
- A && (f[y] = A);
2386
+ const q = w.value.replace(/[\u200B]/g, "").trim();
2387
+ q && (f[y] = q);
2388
2388
  }
2389
2389
  }), rt.current[a] = {
2390
2390
  variableValues: f,
@@ -2443,14 +2443,14 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2443
2443
  Hn(
2444
2444
  u,
2445
2445
  ve,
2446
- Z,
2446
+ ee,
2447
2447
  T,
2448
2448
  Te,
2449
2449
  Oe,
2450
2450
  void 0,
2451
2451
  $,
2452
2452
  p
2453
- ), Pn(u, ve, Z, he), Vn(u, ve, he, $), Rn(u, ve, Z, he), On(u, ve, he), Gn(u, ve, Z, ke), Fn(u, ye);
2453
+ ), Pn(u, ve, ee, he), Vn(u, ve, he, $), Rn(u, ve, ee, he), On(u, ve, he), Gn(u, ve, ee, $e), Fn(u, ye);
2454
2454
  const Rt = Dn(u), Gt = rr(u), ot = ce((a) => {
2455
2455
  const l = a.trim();
2456
2456
  if (!l) return { url: "" };
@@ -2464,37 +2464,37 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2464
2464
  return { url: l };
2465
2465
  }
2466
2466
  }
2467
- const x = f.pathname.split("/").filter(Boolean), b = x.findIndex((A) => A === "report"), P = b >= 0 ? x[b + 1] : void 0, w = x[0] && x[0].length <= 5 ? x[0] : void 0, y = f.searchParams.get("agentId") || void 0;
2467
+ const x = f.pathname.split("/").filter(Boolean), b = x.findIndex((q) => q === "report"), P = b >= 0 ? x[b + 1] : void 0, w = x[0] && x[0].length <= 5 ? x[0] : void 0, y = f.searchParams.get("agentId") || void 0;
2468
2468
  return { url: l, reportId: P, agentId: y, lang: w };
2469
2469
  }, []), vt = ce(() => {
2470
2470
  const a = {};
2471
2471
  if (!u.current) return a;
2472
2472
  const l = u.current;
2473
2473
  return l.querySelectorAll('[data-type="variable"]').forEach((y) => {
2474
- const A = y.dataset.key;
2475
- if (!A) return;
2474
+ const q = y.dataset.key;
2475
+ if (!q) return;
2476
2476
  const h = y.innerText.replace(/[\u200B\n]/g, "").trim();
2477
- h && (a[A] = h);
2477
+ h && (a[q] = h);
2478
2478
  }), l.querySelectorAll('[data-type="select"]').forEach((y) => {
2479
- const A = y.dataset.key;
2480
- if (!A) return;
2479
+ const q = y.dataset.key;
2480
+ if (!q) return;
2481
2481
  const h = (y.getAttribute("data-value") || "").trim();
2482
- h && (a[A] = h);
2482
+ h && (a[q] = h);
2483
2483
  }), l.querySelectorAll('[data-type="textarea"]').forEach((y) => {
2484
- const A = y.dataset.key;
2485
- if (!A) return;
2484
+ const q = y.dataset.key;
2485
+ if (!q) return;
2486
2486
  const h = y.value.replace(/[\u200B]/g, "").trim();
2487
- h && (a[A] = h);
2487
+ h && (a[q] = h);
2488
2488
  }), l.querySelectorAll('[data-type="richtext"]').forEach((y) => {
2489
- const A = y.dataset.key;
2490
- if (!A) return;
2489
+ const q = y.dataset.key;
2490
+ if (!q) return;
2491
2491
  const h = (y.textContent || "").replace(/[\u200B]/g, "").trim();
2492
- h && (a[A] = h);
2492
+ h && (a[q] = h);
2493
2493
  }), l.querySelectorAll('[data-type="datepicker"]').forEach((y) => {
2494
- const A = y.dataset.key;
2495
- if (!A) return;
2494
+ const q = y.dataset.key;
2495
+ if (!q) return;
2496
2496
  const h = (y.getAttribute("data-value") || "").trim();
2497
- h && (a[A] = h);
2497
+ h && (a[q] = h);
2498
2498
  }), a;
2499
2499
  }, []), xt = ce(
2500
2500
  (a) => (a?.modules || []).map((f, x) => {
@@ -2516,11 +2516,11 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2516
2516
  try {
2517
2517
  const w = window.getSelection();
2518
2518
  if (w && w.rangeCount > 0) {
2519
- const y = w.getRangeAt(0), A = y.startContainer, h = A.nodeType === Node.ELEMENT_NODE ? A.closest(`[data-type="variable"][data-key="${a}"]`) : A.parentElement?.closest(`[data-type="variable"][data-key="${a}"]`);
2519
+ const y = w.getRangeAt(0), q = y.startContainer, h = q.nodeType === Node.ELEMENT_NODE ? q.closest(`[data-type="variable"][data-key="${a}"]`) : q.parentElement?.closest(`[data-type="variable"][data-key="${a}"]`);
2520
2520
  if (h && u.current?.contains(h)) {
2521
- const ee = document.createRange();
2522
- ee.setStartBefore(h), ee.setEnd(y.startContainer, y.startOffset);
2523
- const X = ee.toString().length;
2521
+ const te = document.createRange();
2522
+ te.setStartBefore(h), te.setEnd(y.startContainer, y.startOffset);
2523
+ const X = te.toString().length;
2524
2524
  Oe.current = { key: a, offset: X };
2525
2525
  }
2526
2526
  }
@@ -2553,21 +2553,21 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2553
2553
  })))(b).then((w) => {
2554
2554
  const y = xt(w);
2555
2555
  if (u.current) {
2556
- const A = vt();
2557
- y.forEach((h, ee) => {
2558
- A[`${a}__module_${ee}`] = h.content;
2559
- }), u.current.__tempVariableValues = A;
2556
+ const q = vt();
2557
+ y.forEach((h, te) => {
2558
+ q[`${a}__module_${te}`] = h.content;
2559
+ }), u.current.__tempVariableValues = q;
2560
2560
  }
2561
- Pe((A) => ({
2562
- ...A,
2561
+ Pe((q) => ({
2562
+ ...q,
2563
2563
  [a]: { status: "success", error: void 0, lastParsedUrl: f, modules: y }
2564
2564
  }));
2565
2565
  }).catch((w) => {
2566
2566
  const y = w instanceof Error ? w.message : String(w);
2567
- Pe((A) => ({
2568
- ...A,
2567
+ Pe((q) => ({
2568
+ ...q,
2569
2569
  [a]: {
2570
- ...A[a] || { modules: [] },
2570
+ ...q[a] || { modules: [] },
2571
2571
  status: "error",
2572
2572
  error: y || "解析失败",
2573
2573
  lastParsedUrl: f,
@@ -2601,7 +2601,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2601
2601
  y.querySelector(".upload-inner-wrapper.has-file") && (P = !0);
2602
2602
  });
2603
2603
  const w = !f && !P;
2604
- Re(w), ve.length === 0 && ke(!w);
2604
+ Re(w), ve.length === 0 && $e(!w);
2605
2605
  };
2606
2606
  a();
2607
2607
  const l = new MutationObserver(a);
@@ -2627,41 +2627,41 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2627
2627
  if (x.nodeType === Node.ELEMENT_NODE ? b = x.closest('[data-type="variable"]') : x.nodeType === Node.TEXT_NODE && x.parentElement && (b = x.parentElement.closest('[data-type="variable"]')), b) {
2628
2628
  const P = b.dataset.multiKey;
2629
2629
  if (P) {
2630
- const w = /[、,,\s\n\r\t]+/, y = l.split(w).map((A) => A.trim()).filter((A) => A.length > 0);
2630
+ const w = /[、,,\s\n\r\t]+/, y = l.split(w).map((q) => q.trim()).filter((q) => q.length > 0);
2631
2631
  if (console.log("[Paste Event] 粘贴的内容:", l), console.log("[Paste Event] 拆分后的值:", y), y.length > 1) {
2632
- const A = parseInt(b.dataset.index || "0", 10), h = t.find((ue) => ue.type === "multi-variable" && ue.key === P)?.maxCount || 9, ee = Te[P] || 1, X = Math.min(A + y.length, h);
2633
- X > ee && Ce((oe) => ({
2632
+ const q = parseInt(b.dataset.index || "0", 10), h = t.find((de) => de.type === "multi-variable" && de.key === P)?.maxCount || 9, te = Te[P] || 1, X = Math.min(q + y.length, h);
2633
+ X > te && Ce((oe) => ({
2634
2634
  ...oe,
2635
2635
  [P]: X
2636
2636
  }));
2637
- const Q = [];
2638
- for (let oe = 0; oe < ee; oe++) {
2639
- const ue = `${P}_${oe}`, ge = u.current.querySelector(
2640
- `[data-type="variable"][data-key="${ue}"][data-multi-key="${P}"]`
2637
+ const Z = [];
2638
+ for (let oe = 0; oe < te; oe++) {
2639
+ const de = `${P}_${oe}`, ge = u.current.querySelector(
2640
+ `[data-type="variable"][data-key="${de}"][data-multi-key="${P}"]`
2641
2641
  );
2642
2642
  if (ge) {
2643
- const $e = ge.innerText.replace(/[\u200B\n]/g, "").trim();
2644
- Q.push($e);
2643
+ const xe = ge.innerText.replace(/[\u200B\n]/g, "").trim();
2644
+ Z.push(xe);
2645
2645
  }
2646
2646
  }
2647
- Q.splice(A, 1, ...y.slice(0, h - A));
2648
- const Y = Q.slice(0, h);
2649
- Y.length > 0 && Y[Y.length - 1] !== "" && Y.length < h && Y.push("");
2650
- const R = Math.max(Y.length, 1), te = {};
2651
- Y.forEach((oe, ue) => {
2652
- oe && (te[`${P}_${ue}`] = oe);
2647
+ Z.splice(q, 1, ...y.slice(0, h - q));
2648
+ const Q = Z.slice(0, h);
2649
+ Q.length > 0 && Q[Q.length - 1] !== "" && Q.length < h && Q.push("");
2650
+ const V = Math.max(Q.length, 1), K = {};
2651
+ Q.forEach((oe, de) => {
2652
+ oe && (K[`${P}_${de}`] = oe);
2653
2653
  }), u.current.querySelectorAll(
2654
2654
  '[data-type="variable"]'
2655
2655
  ).forEach((oe) => {
2656
- const ue = oe.dataset.key, ge = oe.dataset.multiKey;
2657
- if (ue && ge !== P) {
2658
- const $e = oe.innerText.replace(/[\u200B\n]/g, "").trim();
2659
- $e && (te[ue] = $e);
2656
+ const de = oe.dataset.key, ge = oe.dataset.multiKey;
2657
+ if (de && ge !== P) {
2658
+ const xe = oe.innerText.replace(/[\u200B\n]/g, "").trim();
2659
+ xe && (K[de] = xe);
2660
2660
  }
2661
- }), u.current.__tempVariableValues = te, Ce((oe) => ({
2661
+ }), u.current.__tempVariableValues = K, Ce((oe) => ({
2662
2662
  ...oe,
2663
- [P]: R
2664
- })), console.log("[Paste Event] 粘贴完成,已填充到多个输入框,值:", Y);
2663
+ [P]: V
2664
+ })), console.log("[Paste Event] 粘贴完成,已填充到多个输入框,值:", Q);
2665
2665
  return;
2666
2666
  } else y.length === 1 && console.log("[Paste Event] 粘贴单个值,将在失去焦点时检查是否需要拆分");
2667
2667
  }
@@ -2687,21 +2687,21 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2687
2687
  return;
2688
2688
  }
2689
2689
  const l = 10 * 1024 * 1024, f = (b) => b.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(b.name || ""), x = (b) => f(b) && b.size > l;
2690
- if (we && a.target.files && a.target.files.length > 0) {
2691
- const b = we, P = t.find((h) => h.type === "upload" && h.key === b), w = Array.from(a.target.files), y = w.filter((h) => !x(h)), A = w.length - y.length;
2692
- if (A > 0 && v.error(`已自动过滤 ${A} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`), P && typeof P.maxCount == "number" && typeof P.minCount == "number") {
2690
+ if (ke && a.target.files && a.target.files.length > 0) {
2691
+ const b = ke, P = t.find((h) => h.type === "upload" && h.key === b), w = Array.from(a.target.files), y = w.filter((h) => !x(h)), q = w.length - y.length;
2692
+ if (q > 0 && v.error(`已自动过滤 ${q} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`), P && typeof P.maxCount == "number" && typeof P.minCount == "number") {
2693
2693
  const h = P.maxCount;
2694
- let ee = 0;
2694
+ let te = 0;
2695
2695
  ie((X) => {
2696
- for (let te = 0; te < h; te++) {
2697
- const ae = `${b}-${te}`;
2698
- X[ae] && (ee = te + 1);
2696
+ for (let K = 0; K < h; K++) {
2697
+ const re = `${b}-${K}`;
2698
+ X[re] && (te = K + 1);
2699
2699
  }
2700
- const Q = h - ee, Y = y.slice(0, Q), R = { ...X };
2701
- return Y.forEach((te, ae) => {
2702
- const oe = `${b}-${ee + ae}`;
2703
- R[oe] = te;
2704
- }), R;
2700
+ const Z = h - te, Q = y.slice(0, Z), V = { ...X };
2701
+ return Q.forEach((K, re) => {
2702
+ const oe = `${b}-${te + re}`;
2703
+ V[oe] = K;
2704
+ }), V;
2705
2705
  });
2706
2706
  }
2707
2707
  } else if (me && a.target.files[0]) {
@@ -2759,8 +2759,8 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2759
2759
  return;
2760
2760
  if (l.closest('[data-type="text"]')) {
2761
2761
  a.preventDefault(), a.stopPropagation();
2762
- const A = window.getSelection();
2763
- A && A.removeAllRanges();
2762
+ const q = window.getSelection();
2763
+ q && q.removeAllRanges();
2764
2764
  return;
2765
2765
  }
2766
2766
  if (T && l.closest(".tag-node")) {
@@ -2773,31 +2773,31 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2773
2773
  if (ye.current)
2774
2774
  return;
2775
2775
  setTimeout(() => {
2776
- const A = window.getSelection();
2777
- A && !A.isCollapsed || lt(u);
2776
+ const q = window.getSelection();
2777
+ q && !q.isCollapsed || lt(u);
2778
2778
  }, 10);
2779
2779
  return;
2780
2780
  }
2781
2781
  const w = l.closest(".file-remove-btn");
2782
2782
  if (w) {
2783
2783
  a.preventDefault(), a.stopPropagation();
2784
- const A = w.closest('[data-type="upload"]'), h = A?.dataset.key, ee = A?.dataset.batchKey;
2784
+ const q = w.closest('[data-type="upload"]'), h = q?.dataset.key, te = q?.dataset.batchKey;
2785
2785
  if (h)
2786
- if (ee) {
2787
- const X = t.find((Q) => Q.type === "upload" && Q.key === ee);
2786
+ if (te) {
2787
+ const X = t.find((Z) => Z.type === "upload" && Z.key === te);
2788
2788
  if (X && typeof X.maxCount == "number" && typeof X.minCount == "number") {
2789
- const Q = X.maxCount;
2790
- ie((Y) => {
2791
- const R = { ...Y }, te = [];
2792
- for (let ae = 0; ae < Q; ae++) {
2793
- const oe = `${ee}-${ae}`, ue = R[oe];
2794
- ue != null && oe !== h && te.push(ue);
2789
+ const Z = X.maxCount;
2790
+ ie((Q) => {
2791
+ const V = { ...Q }, K = [];
2792
+ for (let re = 0; re < Z; re++) {
2793
+ const oe = `${te}-${re}`, de = V[oe];
2794
+ de != null && oe !== h && K.push(de);
2795
2795
  }
2796
- for (let ae = 0; ae < Q; ae++)
2797
- delete R[`${ee}-${ae}`];
2798
- return te.forEach((ae, oe) => {
2799
- R[`${ee}-${oe}`] = ae;
2800
- }), R;
2796
+ for (let re = 0; re < Z; re++)
2797
+ delete V[`${te}-${re}`];
2798
+ return K.forEach((re, oe) => {
2799
+ V[`${te}-${oe}`] = re;
2800
+ }), V;
2801
2801
  });
2802
2802
  } else
2803
2803
  kt(h);
@@ -2807,24 +2807,24 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2807
2807
  }
2808
2808
  const y = l.closest('[data-type="upload"]');
2809
2809
  if (y) {
2810
- const A = y.dataset.key, h = y.dataset.batchKey;
2811
- if (A)
2810
+ const q = y.dataset.key, h = y.dataset.batchKey;
2811
+ if (q)
2812
2812
  if (h) {
2813
- const ee = t.find((X) => X.type === "upload" && X.key === h);
2814
- if (ee && typeof ee.maxCount == "number" && typeof ee.minCount == "number") {
2815
- const X = ee.maxCount;
2816
- if (Z[A] != null) {
2817
- K.current && (K.current.multiple = !1), ne(null), fe(A), K.current?.click();
2813
+ const te = t.find((X) => X.type === "upload" && X.key === h);
2814
+ if (te && typeof te.maxCount == "number" && typeof te.minCount == "number") {
2815
+ const X = te.maxCount;
2816
+ if (ee[q] != null) {
2817
+ U.current && (U.current.multiple = !1), ne(null), fe(q), U.current?.click();
2818
2818
  return;
2819
2819
  }
2820
- let Y = 0;
2821
- for (let R = 0; R < X; R++)
2822
- Z[`${h}-${R}`] != null && (Y += 1);
2823
- Y < X && K.current ? (K.current.multiple = !0, ne(h), K.current.click()) : (K.current && (K.current.multiple = !1), fe(A), K.current?.click());
2820
+ let Q = 0;
2821
+ for (let V = 0; V < X; V++)
2822
+ ee[`${h}-${V}`] != null && (Q += 1);
2823
+ Q < X && U.current ? (U.current.multiple = !0, ne(h), U.current.click()) : (U.current && (U.current.multiple = !1), fe(q), U.current?.click());
2824
2824
  } else
2825
- K.current && (K.current.multiple = !1), fe(A), K.current?.click();
2825
+ U.current && (U.current.multiple = !1), fe(q), U.current?.click();
2826
2826
  } else
2827
- K.current && (K.current.multiple = !1), fe(A), K.current?.click();
2827
+ U.current && (U.current.multiple = !1), fe(q), U.current?.click();
2828
2828
  return;
2829
2829
  }
2830
2830
  }, Kt = (a) => {
@@ -2834,10 +2834,10 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2834
2834
  if (x) {
2835
2835
  const b = document.createRange(), P = f.textContent || "";
2836
2836
  if (P.replace(/\u200B/g, "")) {
2837
- let y = 0, A = P.length;
2838
- P.startsWith("​") && (y = 1), P.endsWith("​") && P.length > 1 && (A = P.length - 1);
2837
+ let y = 0, q = P.length;
2838
+ P.startsWith("​") && (y = 1), P.endsWith("​") && P.length > 1 && (q = P.length - 1);
2839
2839
  const h = f.firstChild;
2840
- h && h.nodeType === Node.TEXT_NODE ? (b.setStart(h, y), b.setEnd(h, A)) : b.selectNodeContents(f);
2840
+ h && h.nodeType === Node.TEXT_NODE ? (b.setStart(h, y), b.setEnd(h, q)) : b.selectNodeContents(f);
2841
2841
  } else
2842
2842
  b.selectNodeContents(f), b.collapse(!0);
2843
2843
  x.removeAllRanges(), x.addRange(b);
@@ -2847,7 +2847,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2847
2847
  if (t.length === 0) {
2848
2848
  if (u.current) {
2849
2849
  const f = !(u.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "");
2850
- Re(f), ke(!f);
2850
+ Re(f), $e(!f);
2851
2851
  }
2852
2852
  return;
2853
2853
  }
@@ -2896,83 +2896,83 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2896
2896
  }
2897
2897
  b ? x.classList.add("hidden") : x.classList.remove("hidden");
2898
2898
  }
2899
- }), it(u, t, Z), ct(u, ve, Z, ke), !u.current) return;
2899
+ }), it(u, t, ee), ct(u, ve, ee, $e), !u.current) return;
2900
2900
  t.filter((l) => l.type === "multi-variable" && l.key).forEach((l) => {
2901
2901
  if (!l.key) return;
2902
2902
  const f = l.maxCount || 9, x = Te[l.key] || 1, b = [];
2903
2903
  for (let h = 0; h < x; h++) {
2904
- const ee = `${l.key}_${h}`, X = u.current.querySelector(
2905
- `[data-type="variable"][data-key="${ee}"][data-multi-key="${l.key}"]`
2904
+ const te = `${l.key}_${h}`, X = u.current.querySelector(
2905
+ `[data-type="variable"][data-key="${te}"][data-multi-key="${l.key}"]`
2906
2906
  );
2907
2907
  if (X) {
2908
- const Q = X.innerText.replace(/[\u200B\n]/g, "").trim();
2909
- b.push(Q);
2908
+ const Z = X.innerText.replace(/[\u200B\n]/g, "").trim();
2909
+ b.push(Z);
2910
2910
  }
2911
2911
  }
2912
2912
  const w = (b[b.length - 1] || "") === "";
2913
- let y = !1, A = -1;
2913
+ let y = !1, q = -1;
2914
2914
  for (let h = 0; h < b.length - 1; h++)
2915
2915
  if (b[h] === "") {
2916
- y = !0, A = h;
2916
+ y = !0, q = h;
2917
2917
  break;
2918
2918
  }
2919
- if (y && A >= 0) {
2919
+ if (y && q >= 0) {
2920
2920
  const h = window.getSelection();
2921
2921
  if (h && h.rangeCount > 0) {
2922
- const R = h.getRangeAt(0), te = R.startContainer, ae = te.nodeType === Node.ELEMENT_NODE ? te.closest('[data-type="variable"][data-multi-key]') : te.parentElement?.closest('[data-type="variable"][data-multi-key]');
2923
- if (ae) {
2924
- const oe = ae.dataset.key;
2922
+ const V = h.getRangeAt(0), K = V.startContainer, re = K.nodeType === Node.ELEMENT_NODE ? K.closest('[data-type="variable"][data-multi-key]') : K.parentElement?.closest('[data-type="variable"][data-multi-key]');
2923
+ if (re) {
2924
+ const oe = re.dataset.key;
2925
2925
  if (oe) {
2926
- const ue = document.createRange();
2927
- ue.setStartBefore(ae), ue.setEnd(R.startContainer, R.startOffset);
2928
- const ge = ue.toString().length;
2926
+ const de = document.createRange();
2927
+ de.setStartBefore(re), de.setEnd(V.startContainer, V.startOffset);
2928
+ const ge = de.toString().length;
2929
2929
  Oe.current = { key: oe, offset: ge };
2930
2930
  }
2931
2931
  }
2932
2932
  }
2933
- const ee = [...b];
2934
- for (let R = A; R < ee.length - 1; R++)
2935
- ee[R] = ee[R + 1];
2936
- ee.pop();
2933
+ const te = [...b];
2934
+ for (let V = q; V < te.length - 1; V++)
2935
+ te[V] = te[V + 1];
2936
+ te.pop();
2937
2937
  const X = {};
2938
- ee.forEach((R, te) => {
2939
- R && (X[`${l.key}_${te}`] = R);
2938
+ te.forEach((V, K) => {
2939
+ V && (X[`${l.key}_${K}`] = V);
2940
2940
  });
2941
- const Q = Math.max(w ? ee.length : ee.length + 1, 1);
2941
+ const Z = Math.max(w ? te.length : te.length + 1, 1);
2942
2942
  u.current.querySelectorAll(
2943
2943
  '[data-type="variable"]'
2944
- ).forEach((R) => {
2945
- const te = R.dataset.key, ae = R.dataset.multiKey;
2946
- if (te && ae !== l.key) {
2947
- const oe = R.innerText.replace(/[\u200B\n]/g, "").trim();
2948
- oe && (X[te] = oe);
2944
+ ).forEach((V) => {
2945
+ const K = V.dataset.key, re = V.dataset.multiKey;
2946
+ if (K && re !== l.key) {
2947
+ const oe = V.innerText.replace(/[\u200B\n]/g, "").trim();
2948
+ oe && (X[K] = oe);
2949
2949
  }
2950
- }), u.current.__tempVariableValues = X, Ce((R) => ({
2951
- ...R,
2952
- [l.key]: Q
2950
+ }), u.current.__tempVariableValues = X, Ce((V) => ({
2951
+ ...V,
2952
+ [l.key]: Z
2953
2953
  }));
2954
2954
  return;
2955
2955
  }
2956
2956
  if (!w) {
2957
- const h = x - 1, ee = `${l.key}_${h}`, X = u.current.querySelector(
2958
- `[data-type="variable"][data-key="${ee}"][data-multi-key="${l.key}"]`
2957
+ const h = x - 1, te = `${l.key}_${h}`, X = u.current.querySelector(
2958
+ `[data-type="variable"][data-key="${te}"][data-multi-key="${l.key}"]`
2959
2959
  );
2960
2960
  if (X && X.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && x < f) {
2961
- const Y = window.getSelection();
2962
- if (Y && Y.rangeCount > 0) {
2963
- const R = Y.getRangeAt(0), te = R.startContainer, ae = te.nodeType === Node.ELEMENT_NODE ? te.closest('[data-type="variable"][data-multi-key]') : te.parentElement?.closest('[data-type="variable"][data-multi-key]');
2964
- if (ae) {
2965
- const oe = ae.dataset.key;
2961
+ const Q = window.getSelection();
2962
+ if (Q && Q.rangeCount > 0) {
2963
+ const V = Q.getRangeAt(0), K = V.startContainer, re = K.nodeType === Node.ELEMENT_NODE ? K.closest('[data-type="variable"][data-multi-key]') : K.parentElement?.closest('[data-type="variable"][data-multi-key]');
2964
+ if (re) {
2965
+ const oe = re.dataset.key;
2966
2966
  if (oe) {
2967
- const ue = document.createRange();
2968
- ue.setStartBefore(ae), ue.setEnd(R.startContainer, R.startOffset);
2969
- const ge = ue.toString().length;
2967
+ const de = document.createRange();
2968
+ de.setStartBefore(re), de.setEnd(V.startContainer, V.startOffset);
2969
+ const ge = de.toString().length;
2970
2970
  Oe.current = { key: oe, offset: ge };
2971
2971
  }
2972
2972
  }
2973
2973
  }
2974
- Ce((R) => ({
2975
- ...R,
2974
+ Ce((V) => ({
2975
+ ...V,
2976
2976
  [l.key]: x + 1
2977
2977
  }));
2978
2978
  }
@@ -2987,58 +2987,58 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
2987
2987
  !w || !u.current || !u.current.contains(w) || y && u.current.contains(y) || setTimeout(() => {
2988
2988
  if (u.current) {
2989
2989
  if (ve.length === 0) {
2990
- const A = u.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
2991
- ke(A.length > 0);
2990
+ const q = u.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
2991
+ $e(q.length > 0);
2992
2992
  return;
2993
2993
  }
2994
- lt(u), it(u, ve, Z), ct(u, ve, Z, ke);
2994
+ lt(u), it(u, ve, ee), ct(u, ve, ee, $e);
2995
2995
  }
2996
2996
  }, 0);
2997
2997
  };
2998
2998
  a.addEventListener("blur", f, !0);
2999
2999
  const x = () => {
3000
3000
  if (!u.current) return;
3001
- l.forEach((y, A) => {
3002
- A.removeEventListener("blur", y, !1);
3001
+ l.forEach((y, q) => {
3002
+ q.removeEventListener("blur", y, !1);
3003
3003
  }), l.clear();
3004
3004
  const P = u.current.querySelectorAll(
3005
3005
  '[data-type="variable"][data-multi-key]'
3006
3006
  ), w = (y) => {
3007
3007
  y.stopPropagation(), y.stopImmediatePropagation();
3008
- const A = y.target;
3009
- if (!A || !u.current || !u.current.contains(A))
3008
+ const q = y.target;
3009
+ if (!q || !u.current || !u.current.contains(q))
3010
3010
  return;
3011
- const h = A.closest('[data-type="variable"][data-multi-key]');
3011
+ const h = q.closest('[data-type="variable"][data-multi-key]');
3012
3012
  if (!h || !u.current.contains(h))
3013
3013
  return;
3014
- let ee = !1;
3015
- if (l.forEach((ue, ge) => {
3016
- (ge === h || ge.contains(A)) && (ee = !0);
3017
- }), !ee)
3014
+ let te = !1;
3015
+ if (l.forEach((de, ge) => {
3016
+ (ge === h || ge.contains(q)) && (te = !0);
3017
+ }), !te)
3018
3018
  return;
3019
- const X = h.dataset.multiKey, Q = h.dataset.key, Y = h.dataset.index;
3020
- if (!X || !Q || Y === void 0) return;
3021
- const R = y.relatedTarget;
3022
- if (!(!R || !u.current.contains(R)))
3019
+ const X = h.dataset.multiKey, Z = h.dataset.key, Q = h.dataset.index;
3020
+ if (!X || !Z || Q === void 0) return;
3021
+ const V = y.relatedTarget;
3022
+ if (!(!V || !u.current.contains(V)))
3023
3023
  return;
3024
- const ae = h.innerText.replace(/[\u200B\n]/g, "").trim();
3024
+ const re = h.innerText.replace(/[\u200B\n]/g, "").trim();
3025
3025
  console.log("[Blur Event] 失去焦点的 multi-variable 输入框:", {
3026
3026
  multiKey: X,
3027
- currentKey: Q,
3028
- index: Y,
3029
- content: ae
3027
+ currentKey: Z,
3028
+ index: Q,
3029
+ content: re
3030
3030
  });
3031
3031
  const oe = /[、,,\s]+/;
3032
- if (oe.test(ae)) {
3033
- const ue = ae.split(oe).map((Le) => Le.trim()).filter((Le) => Le.length > 0);
3034
- console.log("[Blur Event] 拆分前的内容:", ae), console.log("[Blur Event] 拆分后的部分:", ue);
3035
- const $e = ue.slice(0, 9);
3036
- if (console.log("[Blur Event] 有效的部分(最多9个):", $e), $e.length > 1) {
3032
+ if (oe.test(re)) {
3033
+ const de = re.split(oe).map((Le) => Le.trim()).filter((Le) => Le.length > 0);
3034
+ console.log("[Blur Event] 拆分前的内容:", re), console.log("[Blur Event] 拆分后的部分:", de);
3035
+ const xe = de.slice(0, 9);
3036
+ if (console.log("[Blur Event] 有效的部分(最多9个):", xe), xe.length > 1) {
3037
3037
  const Le = t.find((ze) => ze.type === "multi-variable" && ze.key === X);
3038
3038
  if (Le) {
3039
- const ze = Te[X] || 1, Et = parseInt(Y, 10), Ct = Le.maxCount || 9, Ye = [];
3040
- for (let xe = 0; xe < ze; xe++) {
3041
- const Me = `${X}_${xe}`, je = u.current.querySelector(
3039
+ const ze = Te[X] || 1, Et = parseInt(Q, 10), Ct = Le.maxCount || 9, Ye = [];
3040
+ for (let we = 0; we < ze; we++) {
3041
+ const Me = `${X}_${we}`, je = u.current.querySelector(
3042
3042
  `[data-type="variable"][data-key="${Me}"][data-multi-key="${X}"]`
3043
3043
  );
3044
3044
  if (je) {
@@ -3046,22 +3046,22 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3046
3046
  Ye.push(We);
3047
3047
  }
3048
3048
  }
3049
- console.log("[Blur Event] 拆分前的所有值:", Ye), console.log("[Blur Event] 当前索引:", Et), console.log("[Blur Event] 要插入的值:", $e), Ye.splice(Et, 1, ...$e);
3049
+ console.log("[Blur Event] 拆分前的所有值:", Ye), console.log("[Blur Event] 当前索引:", Et), console.log("[Blur Event] 要插入的值:", xe), Ye.splice(Et, 1, ...xe);
3050
3050
  const Se = Ye.slice(0, Ct);
3051
3051
  console.log("[Blur Event] 拆分后的所有值:", Se), Se.length > 0 && Se[Se.length - 1] !== "" && Se.length < Ct && Se.push("");
3052
3052
  const en = Math.max(Se.length, 1), st = {};
3053
- Se.forEach((xe, Me) => {
3054
- xe && (st[`${X}_${Me}`] = xe);
3053
+ Se.forEach((we, Me) => {
3054
+ we && (st[`${X}_${Me}`] = we);
3055
3055
  }), u.current.querySelectorAll(
3056
3056
  '[data-type="variable"]'
3057
- ).forEach((xe) => {
3058
- const Me = xe.dataset.key, je = xe.dataset.multiKey;
3057
+ ).forEach((we) => {
3058
+ const Me = we.dataset.key, je = we.dataset.multiKey;
3059
3059
  if (Me && je !== X) {
3060
- const We = xe.innerText.replace(/[\u200B\n]/g, "").trim();
3060
+ const We = we.innerText.replace(/[\u200B\n]/g, "").trim();
3061
3061
  We && (st[Me] = We);
3062
3062
  }
3063
- }), u.current.__tempVariableValues = st, Ce((xe) => ({
3064
- ...xe,
3063
+ }), u.current.__tempVariableValues = st, Ce((we) => ({
3064
+ ...we,
3065
3065
  [X]: en
3066
3066
  }));
3067
3067
  }
@@ -3079,7 +3079,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3079
3079
  w.removeEventListener("blur", P, !1);
3080
3080
  }), l.clear();
3081
3081
  };
3082
- }, [t, ve, Te, Z]);
3082
+ }, [t, ve, Te, ee]);
3083
3083
  const Xt = (a) => {
3084
3084
  if (o) {
3085
3085
  a.preventDefault();
@@ -3177,71 +3177,71 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3177
3177
  if (w.nodeType === Node.TEXT_NODE)
3178
3178
  l += (w.textContent || "").replace(/\u200B/g, "");
3179
3179
  else if (w.nodeType === Node.ELEMENT_NODE) {
3180
- const y = w, A = y.dataset.type, h = y.dataset.key, ee = y.getAttribute("data-node-type") || "";
3181
- if (A === "variable" && h) {
3180
+ const y = w, q = y.dataset.type, h = y.dataset.key, te = y.getAttribute("data-node-type") || "";
3181
+ if (q === "variable" && h) {
3182
3182
  let X = "";
3183
- const Q = document.createTreeWalker(
3183
+ const Z = document.createTreeWalker(
3184
3184
  y,
3185
3185
  NodeFilter.SHOW_TEXT,
3186
3186
  {
3187
- acceptNode: (R) => {
3188
- const te = y.querySelector(".variable-info-icon");
3189
- return te && te.contains(R) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
3187
+ acceptNode: (V) => {
3188
+ const K = y.querySelector(".variable-info-icon");
3189
+ return K && K.contains(V) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
3190
3190
  }
3191
3191
  }
3192
3192
  );
3193
- for (; Q.nextNode(); )
3194
- X += Q.currentNode.textContent || "";
3195
- const Y = X.replace(/[\u200B\n]/g, "").trim();
3196
- if (Y) {
3197
- const R = y.dataset.multiKey;
3198
- if (R) {
3199
- (!f[R] || !Array.isArray(f[R])) && (f[R] = []);
3200
- const te = f[R];
3201
- te.push(Y), te.length > 1 && (l += " "), l += Y;
3193
+ for (; Z.nextNode(); )
3194
+ X += Z.currentNode.textContent || "";
3195
+ const Q = X.replace(/[\u200B\n]/g, "").trim();
3196
+ if (Q) {
3197
+ const V = y.dataset.multiKey;
3198
+ if (V) {
3199
+ (!f[V] || !Array.isArray(f[V])) && (f[V] = []);
3200
+ const K = f[V];
3201
+ K.push(Q), K.length > 1 && (l += " "), l += Q;
3202
3202
  } else
3203
- ee === "report-url" ? (f[`${h}__sourceUrl`] = Y, l += Y) : (f[h] = Y, l += Y);
3203
+ te === "report-url" ? (f[`${h}__sourceUrl`] = Q, l += Q) : (f[h] = Q, l += Q);
3204
3204
  }
3205
- } else if (A === "select" && h) {
3205
+ } else if (q === "select" && h) {
3206
3206
  const X = (y.getAttribute("data-value") || "").trim();
3207
3207
  X && (f[h] = X, l += X);
3208
- } else if (A === "textarea" && h) {
3209
- const Q = (y.value || "").replace(/\u200B/g, "").trim();
3210
- Q && (f[h] = Q, l += Q);
3211
- } else if (A === "richtext" && h) {
3212
- const Q = (y.textContent || "").replace(/\u200B/g, "").trim();
3213
- if (Q)
3214
- if (ee === "report-module") {
3215
- const R = (h.match(/^(.*)__module_\d+$/)?.[1] || h).trim();
3216
- (!f[R] || !Array.isArray(f[R])) && (f[R] = []), f[R].push(Q), x.add(R), l += Q;
3208
+ } else if (q === "textarea" && h) {
3209
+ const Z = (y.value || "").replace(/\u200B/g, "").trim();
3210
+ Z && (f[h] = Z, l += Z);
3211
+ } else if (q === "richtext" && h) {
3212
+ const Z = (y.textContent || "").replace(/\u200B/g, "").trim();
3213
+ if (Z)
3214
+ if (te === "report-module") {
3215
+ const V = (h.match(/^(.*)__module_\d+$/)?.[1] || h).trim();
3216
+ (!f[V] || !Array.isArray(f[V])) && (f[V] = []), f[V].push(Z), x.add(V), l += Z;
3217
3217
  } else
3218
- f[h] = Q, l += Q;
3219
- } else if (A === "datepicker" && h) {
3220
- const Q = (y.getAttribute("data-value") || "").trim();
3221
- if (Q)
3222
- if (Q.includes(",")) {
3223
- const Y = Q.split(",");
3224
- Y.length === 2 ? (f[h] = Y, l += `[${Y[0]}, ${Y[1]}]`) : (f[h] = Q, l += Q);
3218
+ f[h] = Z, l += Z;
3219
+ } else if (q === "datepicker" && h) {
3220
+ const Z = (y.getAttribute("data-value") || "").trim();
3221
+ if (Z)
3222
+ if (Z.includes(",")) {
3223
+ const Q = Z.split(",");
3224
+ Q.length === 2 ? (f[h] = Q, l += `[${Q[0]}, ${Q[1]}]`) : (f[h] = Z, l += Z);
3225
3225
  } else
3226
- f[h] = Q, l += Q;
3227
- } else if (A === "upload" && h) {
3226
+ f[h] = Z, l += Z;
3227
+ } else if (q === "upload" && h) {
3228
3228
  const X = y.dataset.batchKey;
3229
3229
  if (X) {
3230
- const Q = t.find((Y) => Y.type === "upload" && Y.key === X);
3231
- if (Q && typeof Q.maxCount == "number" && typeof Q.minCount == "number") {
3232
- const Y = [];
3233
- for (let R = 0; R < Q.maxCount; R++) {
3234
- const te = `${X}-${R}`, ae = Z[te];
3235
- ae && Y.push(ae);
3230
+ const Z = t.find((Q) => Q.type === "upload" && Q.key === X);
3231
+ if (Z && typeof Z.maxCount == "number" && typeof Z.minCount == "number") {
3232
+ const Q = [];
3233
+ for (let V = 0; V < Z.maxCount; V++) {
3234
+ const K = `${X}-${V}`, re = ee[K];
3235
+ re && Q.push(re);
3236
3236
  }
3237
- f[X] || (f[X] = Y.length > 0 ? Y : null, Y.length > 0 && (l += ` [附带${Y.length}个文件: ${Y.map((R) => R.name).join(", ")}] `));
3237
+ f[X] || (f[X] = Q.length > 0 ? Q : null, Q.length > 0 && (l += ` [附带${Q.length}个文件: ${Q.map((V) => V.name).join(", ")}] `));
3238
3238
  } else
3239
- f[h] = Z[h] ?? null, Z[h] && (l += ` [附带文件: ${Z[h]?.name}] `);
3239
+ f[h] = ee[h] ?? null, ee[h] && (l += ` [附带文件: ${ee[h]?.name}] `);
3240
3240
  } else
3241
- f[h] = Z[h] ?? null, Z[h] && (l += ` [附带文件: ${Z[h]?.name}] `);
3241
+ f[h] = ee[h] ?? null, ee[h] && (l += ` [附带文件: ${ee[h]?.name}] `);
3242
3242
  } else {
3243
3243
  if (y.classList.contains("tag-close-btn") || y.classList.contains("file-remove-btn")) return;
3244
- y.getAttribute("contenteditable") === "false" && !A && y.classList.contains("tag-node") ? l += y.innerText : y.childNodes.forEach(b);
3244
+ y.getAttribute("contenteditable") === "false" && !q && y.classList.contains("tag-node") ? l += y.innerText : y.childNodes.forEach(b);
3245
3245
  }
3246
3246
  }
3247
3247
  }
@@ -3254,8 +3254,8 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3254
3254
  (h) => h.type === "multi-variable" && h.key === w
3255
3255
  ) || x.has(w) ? y.forEach((h) => {
3256
3256
  h != null && h !== "" && P.append(w, String(h));
3257
- }) : y.forEach((h, ee) => {
3258
- h != null && (h instanceof File ? P.append(`${w}[${ee}]`, h) : typeof h == "string" ? P.append(`${w}[${ee}]`, h) : P.append(`${w}[${ee}]`, String(h)));
3257
+ }) : y.forEach((h, te) => {
3258
+ h != null && (h instanceof File ? P.append(`${w}[${te}]`, h) : typeof h == "string" ? P.append(`${w}[${te}]`, h) : P.append(`${w}[${te}]`, String(h)));
3259
3259
  }) : typeof y == "string" ? P.append(w, y) : P.append(w, String(y)));
3260
3260
  }), m(P, l);
3261
3261
  }, _e = Ie ? !1 : Ge ? _ : Fe, Qt = Math.max(
@@ -3280,7 +3280,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3280
3280
  W.current && (W.current.scrollTop = 0, W.current.scrollLeft = 0);
3281
3281
  });
3282
3282
  return () => window.cancelAnimationFrame(l);
3283
- }, [_e]), /* @__PURE__ */ de(
3283
+ }, [_e]), /* @__PURE__ */ ue(
3284
3284
  "div",
3285
3285
  {
3286
3286
  className: `rich-text-editor${_e ? " rte-auto-collapsed" : ""}${r ? ` ${r}` : ""}`,
@@ -3289,7 +3289,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3289
3289
  ref: D,
3290
3290
  children: [
3291
3291
  B,
3292
- /* @__PURE__ */ de(
3292
+ /* @__PURE__ */ ue(
3293
3293
  "div",
3294
3294
  {
3295
3295
  className: "rich-text-editor-content",
@@ -3342,7 +3342,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3342
3342
  ].join(",");
3343
3343
  if (l.closest(x)) return;
3344
3344
  }
3345
- if (V || d && !Ie) {
3345
+ if (O || d && !Ie) {
3346
3346
  if (d && Ie) return;
3347
3347
  De(!_e, "click");
3348
3348
  }
@@ -3358,7 +3358,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3358
3358
  "input",
3359
3359
  {
3360
3360
  type: "file",
3361
- ref: K,
3361
+ ref: U,
3362
3362
  className: "rte-file-input",
3363
3363
  accept: ".csv,.xlsx,.xls,.txt,.pdf,image/*",
3364
3364
  onChange: zt
@@ -3367,9 +3367,9 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3367
3367
  ]
3368
3368
  }
3369
3369
  ),
3370
- /* @__PURE__ */ de("div", { className: "rich-text-editor-footer", ref: mt, children: [
3371
- /* @__PURE__ */ L("div", { className: "rich-text-editor-footer-left", children: /* @__PURE__ */ de("div", { className: "rich-text-editor-brand", children: [
3372
- /* @__PURE__ */ de("div", { className: "rte-brand-badge", children: [
3370
+ /* @__PURE__ */ ue("div", { className: "rich-text-editor-footer", ref: mt, children: [
3371
+ /* @__PURE__ */ L("div", { className: "rich-text-editor-footer-left", children: /* @__PURE__ */ ue("div", { className: "rich-text-editor-brand", children: [
3372
+ /* @__PURE__ */ ue("div", { className: "rte-brand-badge", children: [
3373
3373
  /* @__PURE__ */ L("img", { src: "https://oospublic.sealseek.cn/file/website/ball.png", alt: "" }),
3374
3374
  /* @__PURE__ */ L("span", { className: "rte-brand-text", children: "SealSeek 1.0" })
3375
3375
  ] }),
@@ -3380,33 +3380,33 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3380
3380
  menu: {
3381
3381
  items: M.filter((a) => a.isShowNew !== 1).map((a) => ({
3382
3382
  key: a.key,
3383
- label: /* @__PURE__ */ de("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3383
+ label: /* @__PURE__ */ ue("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3384
3384
  a.icon && /* @__PURE__ */ L("i", { className: a.icon }),
3385
3385
  /* @__PURE__ */ L("span", { children: a.label })
3386
3386
  ] }),
3387
3387
  onClick: () => {
3388
- q?.(a);
3388
+ A?.(a);
3389
3389
  }
3390
3390
  }))
3391
3391
  },
3392
3392
  trigger: ["click"],
3393
3393
  disabled: o || s,
3394
3394
  overlayClassName: "rte-agent-dropdown",
3395
- children: /* @__PURE__ */ de("div", { className: "rte-agent-badge", style: { cursor: M.length > 0 ? "pointer" : "default" }, children: [
3395
+ children: /* @__PURE__ */ ue("div", { className: "rte-agent-badge", style: { cursor: M.length > 0 ? "pointer" : "default" }, children: [
3396
3396
  /* @__PURE__ */ L("i", { className: "iconfont icon-zhinengti", style: { fontSize: "16px" } }),
3397
3397
  /* @__PURE__ */ L("span", { className: "rte-agent-text", children: "智能体" })
3398
3398
  ] })
3399
3399
  }
3400
3400
  )
3401
3401
  ] }) }),
3402
- /* @__PURE__ */ de("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3402
+ /* @__PURE__ */ ue("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3403
3403
  (() => {
3404
3404
  const a = t.find((f) => f.type === "tag");
3405
3405
  if (!a || !a.text) return null;
3406
3406
  const l = M.find((f) => f.label === a.text);
3407
- return !l || l.points === void 0 || l.points === null ? null : /* @__PURE__ */ de("div", { className: "rte-points-badge", children: [
3407
+ return !l || l.points === void 0 || l.points === null ? null : /* @__PURE__ */ ue("div", { className: "rte-points-badge", children: [
3408
3408
  /* @__PURE__ */ L("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
3409
- /* @__PURE__ */ de("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
3409
+ /* @__PURE__ */ ue("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
3410
3410
  "-",
3411
3411
  String(l.points)
3412
3412
  ] })
@@ -3424,24 +3424,24 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3424
3424
  )
3425
3425
  ] })
3426
3426
  ] }),
3427
- re?.anchorEl && (() => {
3428
- if (!document.body.contains(re.anchorEl))
3427
+ ae?.anchorEl && (() => {
3428
+ if (!document.body.contains(ae.anchorEl))
3429
3429
  return null;
3430
3430
  let a = "", l = {
3431
3431
  background: "var(--neutral-800, #262626)"
3432
3432
  };
3433
- if (re.type === "upload")
3433
+ if (ae.type === "upload")
3434
3434
  a = t.find(
3435
- (b) => b.type === "upload" && b.key === re.key
3435
+ (b) => b.type === "upload" && b.key === ae.key
3436
3436
  )?.tooltip || "";
3437
- else if (re.type === "tag")
3438
- a = re.anchorEl.dataset.tooltip || "";
3439
- else if (re.type === "upload-label")
3440
- a = re.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName || re.anchorEl.dataset.fileName || "";
3441
- else if (re.type === "variable")
3442
- a = re.anchorEl.dataset.tooltip || "";
3443
- else if (re.type === "upload-preview") {
3444
- const x = Z[re.key], b = !!x && (x.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(x.name || ""));
3437
+ else if (ae.type === "tag")
3438
+ a = ae.anchorEl.dataset.tooltip || "";
3439
+ else if (ae.type === "upload-label")
3440
+ a = ae.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName || ae.anchorEl.dataset.fileName || "";
3441
+ else if (ae.type === "variable")
3442
+ a = ae.anchorEl.dataset.tooltip || "";
3443
+ else if (ae.type === "upload-preview") {
3444
+ const x = ee[ae.key], b = !!x && (x.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(x.name || ""));
3445
3445
  if (x && b) {
3446
3446
  const P = URL.createObjectURL(x);
3447
3447
  a = /* @__PURE__ */ L("div", { className: "rte-upload-preview", children: /* @__PURE__ */ L("img", { className: "rte-upload-preview-img", src: P, alt: x.name }) }), l = {
@@ -3454,7 +3454,7 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3454
3454
  a = "";
3455
3455
  }
3456
3456
  if (!a) return null;
3457
- const f = re.type === "upload-preview" ? "#0A0A0A" : "#fff";
3457
+ const f = ae.type === "upload-preview" ? "#0A0A0A" : "#fff";
3458
3458
  return ft(
3459
3459
  /* @__PURE__ */ L(
3460
3460
  dn,
@@ -3462,12 +3462,12 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3462
3462
  arrow: !1,
3463
3463
  overlayClassName: [
3464
3464
  "rte-tooltip",
3465
- re.type === "upload-preview" ? "rte-tooltip-preview" : "",
3466
- re.type === "tag" ? "rte-tooltip-tag" : ""
3465
+ ae.type === "upload-preview" ? "rte-tooltip-preview" : "",
3466
+ ae.type === "tag" ? "rte-tooltip-tag" : ""
3467
3467
  ].filter(Boolean).join(" "),
3468
- title: re.type === "upload-preview" ? a : /* @__PURE__ */ L("div", { style: { maxWidth: "200px", fontSize: "12px", color: f }, children: a }),
3468
+ title: ae.type === "upload-preview" ? a : /* @__PURE__ */ L("div", { style: { maxWidth: "200px", fontSize: "12px", color: f }, children: a }),
3469
3469
  open: !0,
3470
- placement: re.type === "upload-preview" ? "topLeft" : "top",
3470
+ placement: ae.type === "upload-preview" ? "topLeft" : "top",
3471
3471
  getPopupContainer: () => document.body,
3472
3472
  overlayInnerStyle: l,
3473
3473
  children: /* @__PURE__ */ L(
@@ -3475,11 +3475,11 @@ const { RangePicker: tr } = ln, nr = ({ host: t, onChange: m }) => {
3475
3475
  {
3476
3476
  style: {
3477
3477
  position: "fixed",
3478
- left: `${re.anchorEl.getBoundingClientRect().left}px`,
3478
+ left: `${ae.anchorEl.getBoundingClientRect().left}px`,
3479
3479
  // 对于 upload-label 类型的 tooltip,向上移动 6px 以增加间距
3480
- top: `${re.anchorEl.getBoundingClientRect().top - (re.type === "upload-label" ? 4 : 0)}px`,
3481
- width: `${re.anchorEl.offsetWidth}px`,
3482
- height: `${re.anchorEl.offsetHeight}px`,
3480
+ top: `${ae.anchorEl.getBoundingClientRect().top - (ae.type === "upload-label" ? 4 : 0)}px`,
3481
+ width: `${ae.anchorEl.offsetWidth}px`,
3482
+ height: `${ae.anchorEl.offsetHeight}px`,
3483
3483
  pointerEvents: "none"
3484
3484
  }
3485
3485
  }
@@ -3536,10 +3536,10 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3536
3536
  onBatchSizeChange: g,
3537
3537
  onLoadNextPage: T,
3538
3538
  onStartAutoLoad: M,
3539
- onStopLoad: q
3540
- }) => t && s ? /* @__PURE__ */ de("div", { className: "auto_load_progress", children: [
3539
+ onStopLoad: A
3540
+ }) => t && s ? /* @__PURE__ */ ue("div", { className: "auto_load_progress", children: [
3541
3541
  o || /* @__PURE__ */ L("img", { src: _t, alt: "自动加载", width: 14, height: 14 }),
3542
- /* @__PURE__ */ de("span", { children: [
3542
+ /* @__PURE__ */ ue("span", { children: [
3543
3543
  "正在加载第",
3544
3544
  s.currentPage,
3545
3545
  "/",
@@ -3554,8 +3554,8 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3554
3554
  size: [160, 8]
3555
3555
  }
3556
3556
  ),
3557
- /* @__PURE__ */ L("span", { onClick: q, className: "auto_load_stop_btn", children: "停止加载" })
3558
- ] }) : /* @__PURE__ */ de("div", { className: "auto_load_container", children: [
3557
+ /* @__PURE__ */ L("span", { onClick: A, className: "auto_load_stop_btn", children: "停止加载" })
3558
+ ] }) : /* @__PURE__ */ ue("div", { className: "auto_load_container", children: [
3559
3559
  /* @__PURE__ */ L(
3560
3560
  "div",
3561
3561
  {
@@ -3567,7 +3567,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3567
3567
  children: "加载下一页"
3568
3568
  }
3569
3569
  ),
3570
- /* @__PURE__ */ de(
3570
+ /* @__PURE__ */ ue(
3571
3571
  "div",
3572
3572
  {
3573
3573
  className: "right_control_wrap",
@@ -3575,7 +3575,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3575
3575
  backgroundColor: t ? "#f5f5f5" : "#2563eb"
3576
3576
  },
3577
3577
  children: [
3578
- /* @__PURE__ */ de(
3578
+ /* @__PURE__ */ ue(
3579
3579
  "div",
3580
3580
  {
3581
3581
  className: "auto_load_btn",
@@ -3609,7 +3609,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3609
3609
  cachedPages: g,
3610
3610
  loadedCount: T,
3611
3611
  autoLoading: M = !1,
3612
- loadingProgress: q,
3612
+ loadingProgress: A,
3613
3613
  onChange: E,
3614
3614
  onLoadNextPage: C,
3615
3615
  onStartAutoLoad: N,
@@ -3619,9 +3619,9 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3619
3619
  { length: e },
3620
3620
  (I, S) => S + 1
3621
3621
  ).filter((I) => !g.includes(I)).slice(0, H);
3622
- return /* @__PURE__ */ de("div", { className: "pagination_footer", children: [
3623
- /* @__PURE__ */ de("div", { className: "pagination_leftWrap", children: [
3624
- /* @__PURE__ */ de("span", { className: "pagination_total", children: [
3622
+ return /* @__PURE__ */ ue("div", { className: "pagination_footer", children: [
3623
+ /* @__PURE__ */ ue("div", { className: "pagination_leftWrap", children: [
3624
+ /* @__PURE__ */ ue("span", { className: "pagination_total", children: [
3625
3625
  /* @__PURE__ */ L(
3626
3626
  vn,
3627
3627
  {
@@ -3640,7 +3640,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3640
3640
  loadIcon: m || void 0,
3641
3641
  autoLoading: M,
3642
3642
  batchSize: H,
3643
- loadingProgress: q,
3643
+ loadingProgress: A,
3644
3644
  disabled: !C || !N,
3645
3645
  onBatchSizeChange: $,
3646
3646
  onLoadNextPage: () => C?.(),
@@ -3664,7 +3664,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3664
3664
  showTotal: () => "",
3665
3665
  itemRender: (d, I, S) => {
3666
3666
  const z = g.includes(d);
3667
- return I === "prev" || I === "next" || I === "jump-prev" || I === "jump-next" ? /* @__PURE__ */ L("div", { className: "pageBox", children: S }) : /* @__PURE__ */ de(
3667
+ return I === "prev" || I === "next" || I === "jump-prev" || I === "jump-next" ? /* @__PURE__ */ L("div", { className: "pageBox", children: S }) : /* @__PURE__ */ ue(
3668
3668
  "div",
3669
3669
  {
3670
3670
  className: "pageBox",
@@ -3690,7 +3690,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3690
3690
  columns: g = [],
3691
3691
  dataSource: T = [],
3692
3692
  total: M,
3693
- current: q,
3693
+ current: A,
3694
3694
  pageSize: E,
3695
3695
  cachedPages: C,
3696
3696
  onChangePage: N,
@@ -3706,7 +3706,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3706
3706
  },
3707
3707
  [C, N, E]
3708
3708
  );
3709
- return /* @__PURE__ */ de("div", { className: "flex flex-col", children: [
3709
+ return /* @__PURE__ */ ue("div", { className: "flex flex-col", children: [
3710
3710
  /* @__PURE__ */ L(
3711
3711
  pt,
3712
3712
  {
@@ -3724,7 +3724,7 @@ const _t = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3724
3724
  loading: m,
3725
3725
  autoLoading: s,
3726
3726
  loadingProgress: o,
3727
- current: q,
3727
+ current: A,
3728
3728
  pageSize: E,
3729
3729
  total: M,
3730
3730
  loadedCount: T.length,
@@ -3853,11 +3853,11 @@ const cr = ({
3853
3853
  onChange: T,
3854
3854
  ...M
3855
3855
  }) => {
3856
- const [q, E] = le(""), [C, N] = le(0), [k, H] = le(!1), [$, e] = le(!1), [n, r] = le(!1), i = se(void 0), d = se(void 0), I = se(t), S = se(C), z = se($), U = se(q);
3856
+ const [A, E] = le(""), [C, N] = le(0), [k, H] = le(!1), [$, e] = le(!1), [n, r] = le(!1), i = se(void 0), d = se(void 0), I = se(t), S = se(C), z = se($), j = se(A);
3857
3857
  pe(() => {
3858
- I.current = t, S.current = C, z.current = $, U.current = q;
3858
+ I.current = t, S.current = C, z.current = $, j.current = A;
3859
3859
  });
3860
- const j = ce((c, p) => {
3860
+ const Y = ce((c, p) => {
3861
3861
  let v = 0;
3862
3862
  r(!0);
3863
3863
  const B = () => {
@@ -3865,32 +3865,32 @@ const cr = ({
3865
3865
  };
3866
3866
  B();
3867
3867
  }, [s]), F = ce((c) => {
3868
- let p = U.current.length;
3868
+ let p = j.current.length;
3869
3869
  const v = () => {
3870
- p > 0 ? (E(U.current.slice(0, p - 1)), p--, d.current = window.setTimeout(v, s / 2)) : c?.();
3870
+ p > 0 ? (E(j.current.slice(0, p - 1)), p--, d.current = window.setTimeout(v, s / 2)) : c?.();
3871
3871
  };
3872
3872
  v();
3873
- }, [s]), V = ce(() => {
3873
+ }, [s]), O = ce(() => {
3874
3874
  if (I.current.length === 0 || z.current) return;
3875
3875
  H(!0);
3876
3876
  const c = I.current[S.current];
3877
- U.current ? F(() => {
3878
- j(c, () => {
3877
+ j.current ? F(() => {
3878
+ Y(c, () => {
3879
3879
  i.current = window.setTimeout(() => {
3880
3880
  N((p) => (p + 1) % I.current.length), H(!1);
3881
3881
  }, 2e3);
3882
3882
  });
3883
- }) : j(c, () => {
3883
+ }) : Y(c, () => {
3884
3884
  i.current = window.setTimeout(() => {
3885
3885
  N((p) => (p + 1) % I.current.length), H(!1);
3886
3886
  }, 2e3);
3887
3887
  });
3888
- }, [F, j]);
3889
- return pe(() => (o && t.length > 0 && !$ && V(), () => {
3888
+ }, [F, Y]);
3889
+ return pe(() => (o && t.length > 0 && !$ && O(), () => {
3890
3890
  i.current && window.clearTimeout(i.current), d.current && window.clearTimeout(d.current);
3891
- }), [C, $, o, t.length, V]), pe(() => {
3892
- !k && o && t.length > 0 && !$ && V();
3893
- }, [C, k, o, t.length, $, V]), /* @__PURE__ */ de("div", { style: { position: "relative" }, children: [
3891
+ }), [C, $, o, t.length, O]), pe(() => {
3892
+ !k && o && t.length > 0 && !$ && O();
3893
+ }, [C, k, o, t.length, $, O]), /* @__PURE__ */ ue("div", { style: { position: "relative" }, children: [
3894
3894
  /* @__PURE__ */ L(
3895
3895
  Lt,
3896
3896
  {
@@ -3905,7 +3905,7 @@ const cr = ({
3905
3905
  onBlur: (c) => {
3906
3906
  e(!1), !g && t.length > 0 && (E(""), N(0)), M.onBlur?.(c);
3907
3907
  },
3908
- placeholder: $ || g ? m : q || m,
3908
+ placeholder: $ || g ? m : A || m,
3909
3909
  style: {
3910
3910
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3911
3911
  ...M.style,
@@ -3914,7 +3914,7 @@ const cr = ({
3914
3914
  }
3915
3915
  }
3916
3916
  ),
3917
- !$ && !g && q && /* @__PURE__ */ de(
3917
+ !$ && !g && A && /* @__PURE__ */ ue(
3918
3918
  "div",
3919
3919
  {
3920
3920
  style: {
@@ -3934,7 +3934,7 @@ const cr = ({
3934
3934
  fontFamily: "inherit"
3935
3935
  },
3936
3936
  children: [
3937
- /* @__PURE__ */ L("span", { children: q }),
3937
+ /* @__PURE__ */ L("span", { children: A }),
3938
3938
  n && /* @__PURE__ */ L(
3939
3939
  "span",
3940
3940
  {
@@ -4019,7 +4019,7 @@ const ur = ({
4019
4019
  // 受控模式的变化回调
4020
4020
  onSubmit: M,
4021
4021
  // 提交回调
4022
- maxLength: q = 500,
4022
+ maxLength: A = 500,
4023
4023
  // 最大字符数限制
4024
4024
  showCount: E = !0,
4025
4025
  // 是否显示字数统计
@@ -4034,36 +4034,36 @@ const ur = ({
4034
4034
  ...$
4035
4035
  // 其他原生属性
4036
4036
  }) => {
4037
- const [e, n] = le(""), [r, i] = le(0), [d, I] = le(!1), [S, z] = le(!1), [U, j] = le(!1), [F, V] = le(g || ""), G = se(void 0), _ = se(void 0), O = se(t), J = se(r), c = se(S), p = se(e), v = se(null);
4037
+ const [e, n] = le(""), [r, i] = le(0), [d, I] = le(!1), [S, z] = le(!1), [j, Y] = le(!1), [F, O] = le(g || ""), G = se(void 0), _ = se(void 0), R = se(t), J = se(r), c = se(S), p = se(e), v = se(null);
4038
4038
  pe(() => {
4039
- O.current = t, J.current = r, c.current = S, p.current = e;
4039
+ R.current = t, J.current = r, c.current = S, p.current = e;
4040
4040
  });
4041
- const B = ce((ne, re) => {
4041
+ const B = ce((ne, ae) => {
4042
4042
  let he = 0;
4043
- j(!0);
4043
+ Y(!0);
4044
4044
  const ye = () => {
4045
- he < ne.length ? (n(ne.slice(0, he + 1)), he++, _.current = window.setTimeout(ye, s)) : (j(!1), re?.());
4045
+ he < ne.length ? (n(ne.slice(0, he + 1)), he++, _.current = window.setTimeout(ye, s)) : (Y(!1), ae?.());
4046
4046
  };
4047
4047
  ye();
4048
4048
  }, [s]), D = ce((ne) => {
4049
- let re = p.current.length;
4049
+ let ae = p.current.length;
4050
4050
  const he = () => {
4051
- re > 0 ? (n(p.current.slice(0, re - 1)), re--, _.current = window.setTimeout(he, s / 2)) : ne?.();
4051
+ ae > 0 ? (n(p.current.slice(0, ae - 1)), ae--, _.current = window.setTimeout(he, s / 2)) : ne?.();
4052
4052
  };
4053
4053
  he();
4054
4054
  }, [s]), W = ce(() => {
4055
- if (O.current.length === 0 || c.current) return;
4055
+ if (R.current.length === 0 || c.current) return;
4056
4056
  I(!0);
4057
- const ne = O.current[J.current];
4057
+ const ne = R.current[J.current];
4058
4058
  p.current ? D(() => {
4059
4059
  B(ne, () => {
4060
4060
  G.current = window.setTimeout(() => {
4061
- i((re) => (re + 1) % O.current.length), I(!1);
4061
+ i((ae) => (ae + 1) % R.current.length), I(!1);
4062
4062
  }, 2e3);
4063
4063
  });
4064
4064
  }) : B(ne, () => {
4065
4065
  G.current = window.setTimeout(() => {
4066
- i((re) => (re + 1) % O.current.length), I(!1);
4066
+ i((ae) => (ae + 1) % R.current.length), I(!1);
4067
4067
  }, 2e3);
4068
4068
  });
4069
4069
  }, [D, B]);
@@ -4073,35 +4073,35 @@ const ur = ({
4073
4073
  !d && o && t.length > 0 && !S && W();
4074
4074
  }, [r, d, o, t.length, S, W]);
4075
4075
  const u = (ne) => {
4076
- z(!0), G.current && window.clearTimeout(G.current), _.current && window.clearTimeout(_.current), I(!1), j(!1), $.onFocus?.(ne);
4077
- }, K = (ne) => {
4076
+ z(!0), G.current && window.clearTimeout(G.current), _.current && window.clearTimeout(_.current), I(!1), Y(!1), $.onFocus?.(ne);
4077
+ }, U = (ne) => {
4078
4078
  z(!1), !g && t.length > 0 && (n(""), i(0)), $.onBlur?.(ne);
4079
- }, Z = (ne) => {
4080
- const re = ne.target.value;
4081
- q && re.length > q || (T ? T(re) : V(re), $.onChange?.(ne));
4079
+ }, ee = (ne) => {
4080
+ const ae = ne.target.value;
4081
+ A && ae.length > A || (T ? T(ae) : O(ae), $.onChange?.(ne));
4082
4082
  }, ie = () => {
4083
4083
  const ne = T ? g : F;
4084
- ne.trim() && !N && (M?.(ne), T || V(""));
4084
+ ne.trim() && !N && (M?.(ne), T || O(""));
4085
4085
  }, me = (ne) => {
4086
4086
  (ne.ctrlKey || ne.metaKey) && ne.key === "Enter" && (ne.preventDefault(), ie()), $.onKeyDown?.(ne);
4087
- }, fe = T ? g : F, we = N || !fe.trim() || (q ? fe.length > q : !1);
4088
- return /* @__PURE__ */ de("div", { style: { position: "relative", ...H }, children: [
4089
- /* @__PURE__ */ de("div", { style: { position: "relative" }, children: [
4087
+ }, fe = T ? g : F, ke = N || !fe.trim() || (A ? fe.length > A : !1);
4088
+ return /* @__PURE__ */ ue("div", { style: { position: "relative", ...H }, children: [
4089
+ /* @__PURE__ */ ue("div", { style: { position: "relative" }, children: [
4090
4090
  /* @__PURE__ */ L(
4091
4091
  "textarea",
4092
4092
  {
4093
4093
  ref: v,
4094
4094
  value: T ? g : F,
4095
- onChange: Z,
4095
+ onChange: ee,
4096
4096
  onFocus: (ne) => {
4097
4097
  ne.target.style.borderColor = "#1890ff", ne.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", u(ne);
4098
4098
  },
4099
4099
  onBlur: (ne) => {
4100
- ne.target.style.borderColor = "#d9d9d9", ne.target.style.boxShadow = "none", K(ne);
4100
+ ne.target.style.borderColor = "#d9d9d9", ne.target.style.boxShadow = "none", U(ne);
4101
4101
  },
4102
4102
  onKeyDown: me,
4103
4103
  placeholder: S || fe ? m : "",
4104
- maxLength: q,
4104
+ maxLength: A,
4105
4105
  rows: k,
4106
4106
  disabled: N,
4107
4107
  style: {
@@ -4124,7 +4124,7 @@ const ur = ({
4124
4124
  ...$
4125
4125
  }
4126
4126
  ),
4127
- !S && !fe && e && /* @__PURE__ */ de(
4127
+ !S && !fe && e && /* @__PURE__ */ ue(
4128
4128
  "div",
4129
4129
  {
4130
4130
  style: {
@@ -4147,7 +4147,7 @@ const ur = ({
4147
4147
  },
4148
4148
  children: [
4149
4149
  /* @__PURE__ */ L("span", { children: e }),
4150
- U && /* @__PURE__ */ L(
4150
+ j && /* @__PURE__ */ L(
4151
4151
  "span",
4152
4152
  {
4153
4153
  style: {
@@ -4179,7 +4179,7 @@ const ur = ({
4179
4179
  size: "small",
4180
4180
  icon: /* @__PURE__ */ L(xn, {}),
4181
4181
  onClick: ie,
4182
- disabled: we,
4182
+ disabled: ke,
4183
4183
  style: {
4184
4184
  borderRadius: 6,
4185
4185
  minWidth: 32,
@@ -4194,7 +4194,7 @@ const ur = ({
4194
4194
  }
4195
4195
  )
4196
4196
  ] }),
4197
- E && /* @__PURE__ */ de(
4197
+ E && /* @__PURE__ */ ue(
4198
4198
  "div",
4199
4199
  {
4200
4200
  style: {
@@ -4206,7 +4206,7 @@ const ur = ({
4206
4206
  children: [
4207
4207
  fe.length,
4208
4208
  "/",
4209
- q
4209
+ A
4210
4210
  ]
4211
4211
  }
4212
4212
  ),
@@ -4314,7 +4314,7 @@ const Dt = ({
4314
4314
  videoHeight: T,
4315
4315
  // 参数保留但不使用,由CSS控制
4316
4316
  showPlayButton: M = !0,
4317
- autoPlayOnHover: q = !0,
4317
+ autoPlayOnHover: A = !0,
4318
4318
  onClick: E,
4319
4319
  onVideoLoaded: C,
4320
4320
  onVideoPlay: N,
@@ -4324,18 +4324,18 @@ const Dt = ({
4324
4324
  style: e,
4325
4325
  ...n
4326
4326
  }) => {
4327
- const r = se(null), [i, d] = le(!1), [I, S] = le(!1), [z, U] = le(!1), j = ce(() => {
4327
+ const r = se(null), [i, d] = le(!1), [I, S] = le(!1), [z, j] = le(!1), Y = ce(() => {
4328
4328
  r.current && (r.current.play(), d(!0), N?.());
4329
4329
  }, [N]), F = ce(() => {
4330
4330
  r.current && (r.current.pause(), d(!1), k?.());
4331
- }, [k]), V = ce((B) => {
4332
- B.stopPropagation(), i ? F() : j();
4333
- }, [i, j, F]), G = ce(() => {
4334
- S(!0), q && !i && j();
4335
- }, [q, i, j]), _ = ce(() => {
4336
- S(!1), q && i && F();
4337
- }, [q, i, F]), O = ce(() => {
4338
- U(!0), C?.();
4331
+ }, [k]), O = ce((B) => {
4332
+ B.stopPropagation(), i ? F() : Y();
4333
+ }, [i, Y, F]), G = ce(() => {
4334
+ S(!0), A && !i && Y();
4335
+ }, [A, i, Y]), _ = ce(() => {
4336
+ S(!1), A && i && F();
4337
+ }, [A, i, F]), R = ce(() => {
4338
+ j(!0), C?.();
4339
4339
  }, [C]), J = ce(() => {
4340
4340
  d(!0), N?.();
4341
4341
  }, [N]), c = ce(() => {
@@ -4364,7 +4364,7 @@ const Dt = ({
4364
4364
  onMouseEnter: G,
4365
4365
  onMouseLeave: _,
4366
4366
  onClick: v,
4367
- children: /* @__PURE__ */ de("div", { className: "video-card-container", children: [
4367
+ children: /* @__PURE__ */ ue("div", { className: "video-card-container", children: [
4368
4368
  /* @__PURE__ */ L(
4369
4369
  "video",
4370
4370
  {
@@ -4372,7 +4372,7 @@ const Dt = ({
4372
4372
  src: t,
4373
4373
  poster: m,
4374
4374
  preload: "metadata",
4375
- onLoadedData: O,
4375
+ onLoadedData: R,
4376
4376
  onPlay: J,
4377
4377
  onPause: c,
4378
4378
  onEnded: p,
@@ -4384,7 +4384,7 @@ const Dt = ({
4384
4384
  "div",
4385
4385
  {
4386
4386
  className: `video-play-button ${I ? "hovered" : ""}`,
4387
- onClick: V,
4387
+ onClick: O,
4388
4388
  children: i ? /* @__PURE__ */ L(wn, { className: "play-icon" }) : /* @__PURE__ */ L(kn, { className: "play-icon" })
4389
4389
  }
4390
4390
  ),
@@ -4509,7 +4509,7 @@ const dr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4509
4509
  },
4510
4510
  className: T,
4511
4511
  style: M,
4512
- onClick: q
4512
+ onClick: A
4513
4513
  }) => {
4514
4514
  const E = se(null), [C, N] = le(m || g.md || 3), k = se(/* @__PURE__ */ new Map()), H = ce(() => {
4515
4515
  if (!o || m)
@@ -4519,11 +4519,11 @@ const dr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4519
4519
  }, [o, m, g]), $ = ce(() => {
4520
4520
  if (!E.current) return;
4521
4521
  const r = C, i = E.current, I = (i.offsetWidth - s * (r - 1)) / r, S = new Array(r).fill(0);
4522
- t.forEach((U, j) => {
4523
- const F = U.id || j, V = k.current.get(F);
4524
- if (!V) return;
4525
- const G = Math.min(...S), _ = S.indexOf(G), O = _ * (I + s), J = S[_];
4526
- V.style.position = "absolute", V.style.left = `${O}px`, V.style.top = `${J}px`, V.style.width = `${I}px`, S[_] += V.offsetHeight + s;
4522
+ t.forEach((j, Y) => {
4523
+ const F = j.id || Y, O = k.current.get(F);
4524
+ if (!O) return;
4525
+ const G = Math.min(...S), _ = S.indexOf(G), R = _ * (I + s), J = S[_];
4526
+ O.style.position = "absolute", O.style.left = `${R}px`, O.style.top = `${J}px`, O.style.width = `${I}px`, S[_] += O.offsetHeight + s;
4527
4527
  });
4528
4528
  const z = Math.max(...S);
4529
4529
  i.style.height = `${z}px`;
@@ -4544,8 +4544,8 @@ const dr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4544
4544
  const e = ce(() => {
4545
4545
  $();
4546
4546
  }, [$]), n = ce((r) => {
4547
- q && q(r), r.onClick?.(r);
4548
- }, [q]);
4547
+ A && A(r), r.onClick?.(r);
4548
+ }, [A]);
4549
4549
  return /* @__PURE__ */ L(
4550
4550
  "div",
4551
4551
  {
@@ -4569,7 +4569,7 @@ const dr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4569
4569
  width: "100%",
4570
4570
  position: "relative",
4571
4571
  paddingBottom: "56.25%",
4572
- cursor: q || r.onClick ? "pointer" : "default"
4572
+ cursor: A || r.onClick ? "pointer" : "default"
4573
4573
  }, children: /* @__PURE__ */ L("div", { style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, children: /* @__PURE__ */ L(
4574
4574
  Dt,
4575
4575
  {
@@ -4587,7 +4587,7 @@ const dr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4587
4587
  {
4588
4588
  className: "waterfall-image-wrapper",
4589
4589
  onClick: () => n(r),
4590
- style: { cursor: q || r.onClick ? "pointer" : "default" },
4590
+ style: { cursor: A || r.onClick ? "pointer" : "default" },
4591
4591
  children: /* @__PURE__ */ L(
4592
4592
  "img",
4593
4593
  {