bi-components-library 1.0.64 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as I, jsxs as ie, Fragment as zt } from "react/jsx-runtime";
2
- import Yt, { useState as se, useRef as ne, useMemo as ot, useCallback as ce, useEffect as fe, useLayoutEffect as bt } from "react";
3
- import { Button as Le, Card as st, Modal as jt, Table as lt, Flex as xt, Spin as Wt, Empty as Ut, Select as Ue, Form as Fe, Input as St, Space as Kt, DatePicker as Xt, message as Jt, Dropdown as Qt, Tooltip as Zt, Progress as en, Pagination as tn, theme as nn } from "antd";
2
+ import jt, { useState as se, useRef as ne, useMemo as ot, useCallback as ce, useEffect as fe, useLayoutEffect as bt } from "react";
3
+ import { Button as Le, Card as st, Modal as Yt, Table as lt, Flex as xt, Spin as Wt, Empty as Ut, Select as Ue, Form as Fe, Input as St, Space as Kt, DatePicker as Xt, message as Jt, Dropdown as Qt, Tooltip as Zt, Progress as en, Pagination as tn, theme as nn } from "antd";
4
4
  import { createFromIconfontCN as rn, LeftOutlined as an, SearchOutlined as on, ReloadOutlined as sn, InfoCircleOutlined as ln, SendOutlined as cn, PauseCircleOutlined as un, PlayCircleOutlined as dn } from "@ant-design/icons";
5
5
  import { createPortal as it } from "react-dom";
6
6
  const pn = ({
@@ -82,7 +82,7 @@ const fn = ({
82
82
  children: m,
83
83
  bordered: i = !0,
84
84
  hoverable: s = !1,
85
- size: h = "default",
85
+ size: y = "default",
86
86
  ...T
87
87
  }) => /* @__PURE__ */ I(
88
88
  st,
@@ -91,7 +91,7 @@ const fn = ({
91
91
  title: t,
92
92
  bordered: i,
93
93
  hoverable: s,
94
- size: h,
94
+ size: y,
95
95
  children: m
96
96
  }
97
97
  );
@@ -150,12 +150,12 @@ const mn = ({
150
150
  showDefaultFooter: t = !0,
151
151
  ...m
152
152
  }) => {
153
- const i = m.footer !== void 0 ? m.footer : t ? (s, { OkBtn: h, CancelBtn: T }) => /* @__PURE__ */ ie(zt, { children: [
154
- /* @__PURE__ */ I(h, {}),
153
+ const i = m.footer !== void 0 ? m.footer : t ? (s, { OkBtn: y, CancelBtn: T }) => /* @__PURE__ */ ie(zt, { children: [
154
+ /* @__PURE__ */ I(y, {}),
155
155
  /* @__PURE__ */ I(T, {})
156
156
  ] }) : null;
157
157
  return /* @__PURE__ */ I(
158
- jt,
158
+ Yt,
159
159
  {
160
160
  ...m,
161
161
  footer: i
@@ -302,7 +302,7 @@ const hn = rn({
302
302
  size: m,
303
303
  color: i,
304
304
  style: s,
305
- ...h
305
+ ...y
306
306
  }) => {
307
307
  const T = {
308
308
  fontSize: m,
@@ -312,7 +312,7 @@ const hn = rn({
312
312
  return /* @__PURE__ */ I(
313
313
  hn,
314
314
  {
315
- ...h,
315
+ ...y,
316
316
  type: t,
317
317
  style: T
318
318
  }
@@ -359,7 +359,7 @@ const vn = ({
359
359
  description: m = "暂无数据",
360
360
  className: i,
361
361
  emptyChildren: s,
362
- loadingText: h,
362
+ loadingText: y,
363
363
  emptyImage: T
364
364
  }) => t ? /* @__PURE__ */ ie(
365
365
  xt,
@@ -370,7 +370,7 @@ const vn = ({
370
370
  vertical: !0,
371
371
  children: [
372
372
  /* @__PURE__ */ I(Wt, { size: "large" }),
373
- h && /* @__PURE__ */ I("div", { className: "mt-4 text-gray-500", children: h })
373
+ y && /* @__PURE__ */ I("div", { className: "mt-4 text-gray-500", children: y })
374
374
  ]
375
375
  }
376
376
  ) : /* @__PURE__ */ I(
@@ -438,12 +438,12 @@ const bn = ({
438
438
  showText: m = !1,
439
439
  className: i,
440
440
  size: s = "small",
441
- type: h = "default"
441
+ type: y = "default"
442
442
  }) => /* @__PURE__ */ I(
443
443
  Le,
444
444
  {
445
445
  size: s,
446
- type: h,
446
+ type: y,
447
447
  icon: /* @__PURE__ */ I(an, {}),
448
448
  className: `cursor-pointer ${i || ""}`,
449
449
  onClick: t,
@@ -547,7 +547,7 @@ const { Option: wn } = Ue, kn = ({
547
547
  request: m,
548
548
  searchFields: i = [],
549
549
  showSearch: s = !0,
550
- showRefresh: h = !0,
550
+ showRefresh: y = !0,
551
551
  defaultPageSize: T = 10,
552
552
  pageSizeOptions: D = ["10", "20", "50", "100"],
553
553
  autoLoad: q = !0,
@@ -558,11 +558,11 @@ const { Option: wn } = Ue, kn = ({
558
558
  current: 1,
559
559
  pageSize: T,
560
560
  total: 0
561
- }), [a, u] = se({}), [c, M] = se({}), [E] = Fe.useForm(), Y = ne(e);
562
- Y.current = e;
561
+ }), [a, u] = se({}), [c, M] = se({}), [E] = Fe.useForm(), j = ne(e);
562
+ j.current = e;
563
563
  const W = ne($);
564
564
  W.current = $;
565
- const j = ne(!1), z = ot(() => t.map((d) => {
565
+ const Y = ne(!1), z = ot(() => t.map((d) => {
566
566
  const { sortable: n, render: f, ...x } = d;
567
567
  return {
568
568
  ...x,
@@ -574,8 +574,8 @@ const { Option: wn } = Ue, kn = ({
574
574
  k(!0);
575
575
  try {
576
576
  const n = {
577
- page: Y.current.current,
578
- pageSize: Y.current.pageSize,
577
+ page: j.current.current,
578
+ pageSize: j.current.pageSize,
579
579
  sortField: c.field,
580
580
  sortOrder: c.order,
581
581
  searchParams: { ...a, ...W.current },
@@ -611,7 +611,7 @@ const { Option: wn } = Ue, kn = ({
611
611
  }, [T]);
612
612
  return fe(() => {
613
613
  const d = Object.keys($).length > 0;
614
- (q && !j.current || d) && (V(), j.current = !0);
614
+ (q && !Y.current || d) && (V(), Y.current = !0);
615
615
  }, [q, $, V]), /* @__PURE__ */ ie("div", { children: [
616
616
  s && i.length > 0 && /* @__PURE__ */ I(st, { size: "small", style: { marginBottom: 16 }, children: /* @__PURE__ */ ie(
617
617
  Fe,
@@ -639,7 +639,7 @@ const { Option: wn } = Ue, kn = ({
639
639
  /* @__PURE__ */ I(Fe.Item, { children: /* @__PURE__ */ ie(Kt, { children: [
640
640
  /* @__PURE__ */ I(Le, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ I(on, {}), children: "查询" }),
641
641
  /* @__PURE__ */ I(Le, { onClick: B, children: "重置" }),
642
- h && /* @__PURE__ */ I(Le, { icon: /* @__PURE__ */ I(sn, {}), onClick: H, children: "刷新" })
642
+ y && /* @__PURE__ */ I(Le, { icon: /* @__PURE__ */ I(sn, {}), onClick: H, children: "刷新" })
643
643
  ] }) })
644
644
  ]
645
645
  }
@@ -733,9 +733,9 @@ kn.__docgenInfo = {
733
733
  };
734
734
  function rt(t, m, i) {
735
735
  if (!t.current) return;
736
- const s = /* @__PURE__ */ new Set(), h = {};
736
+ const s = /* @__PURE__ */ new Set(), y = {};
737
737
  for (const w of m)
738
- w.exclusionGroup && w.exclusionGroup !== "separator" && (s.add(w.exclusionGroup), h[w.exclusionGroup] || (h[w.exclusionGroup] = []), h[w.exclusionGroup].push({
738
+ w.exclusionGroup && w.exclusionGroup !== "separator" && (s.add(w.exclusionGroup), y[w.exclusionGroup] || (y[w.exclusionGroup] = []), y[w.exclusionGroup].push({
739
739
  type: w.type,
740
740
  key: w.key,
741
741
  exclusionGroup: w.exclusionGroup
@@ -743,7 +743,7 @@ function rt(t, m, i) {
743
743
  const T = {};
744
744
  for (const w of s) {
745
745
  T[w] = !1;
746
- for (const P of h[w])
746
+ for (const P of y[w])
747
747
  if (P.type === "upload" && P.key) {
748
748
  if (i[P.key] !== null && i[P.key] !== void 0) {
749
749
  T[w] = !0;
@@ -798,19 +798,19 @@ function at(t, m, i, s) {
798
798
  s(!1);
799
799
  return;
800
800
  }
801
- const h = (e) => {
801
+ const y = (e) => {
802
802
  if ((e.getAttribute("data-node-type") || "") !== "report-module")
803
803
  return (e.textContent || "").replace(/[\u200B]/g, "").trim();
804
804
  const a = (e.textContent || "").replace(/[\u200B]/g, "").trim(), u = Array.from(e.querySelectorAll(":scope > div"));
805
805
  if (u.length === 0)
806
806
  return a;
807
807
  let c = -1;
808
- for (let Y = 0; Y < u.length; Y++)
809
- if ((u[Y].textContent || "").replace(/[\u200B]/g, "").trim().length > 0) {
810
- c = Y;
808
+ for (let j = 0; j < u.length; j++)
809
+ if ((u[j].textContent || "").replace(/[\u200B]/g, "").trim().length > 0) {
810
+ c = j;
811
811
  break;
812
812
  }
813
- return u.filter((Y, W) => W !== c).map((Y) => (Y.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
813
+ return u.filter((j, W) => W !== c).map((j) => (j.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
814
814
  `).trim() || a;
815
815
  }, T = (e) => e ? !!e.closest('[data-rte-force-hidden="1"]') : !1, D = [];
816
816
  for (let e = 0; e < m.length; e++) {
@@ -861,7 +861,7 @@ function at(t, m, i, s) {
861
861
  r.exclusionGroup === "separator" && e.push(a);
862
862
  });
863
863
  for (const r of e) {
864
- const u = D.filter((E) => typeof E.__index == "number" && E.__index < r).sort((E, Y) => (Y.__index ?? 0) - (E.__index ?? 0))[0], M = D.filter((E) => typeof E.__index == "number" && E.__index > r).sort((E, Y) => (E.__index ?? 0) - (Y.__index ?? 0))[0];
864
+ const u = D.filter((E) => typeof E.__index == "number" && E.__index < r).sort((E, j) => (j.__index ?? 0) - (E.__index ?? 0))[0], M = D.filter((E) => typeof E.__index == "number" && E.__index > r).sort((E, j) => (E.__index ?? 0) - (j.__index ?? 0))[0];
865
865
  u && M && $.push([u, M]);
866
866
  }
867
867
  }
@@ -1006,10 +1006,10 @@ function at(t, m, i, s) {
1006
1006
  `[data-type="variable"][data-multi-key="${u.key}"]`
1007
1007
  );
1008
1008
  let M = 0;
1009
- for (const Y of Array.from(c)) {
1010
- if (Y.classList.contains("show-placeholder"))
1009
+ for (const j of Array.from(c)) {
1010
+ if (j.classList.contains("show-placeholder"))
1011
1011
  continue;
1012
- Y.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (M += 1);
1012
+ j.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (M += 1);
1013
1013
  }
1014
1014
  const E = u.minCount && u.minCount > 0 ? u.minCount : 1;
1015
1015
  if (M >= E) {
@@ -1049,7 +1049,7 @@ function at(t, m, i, s) {
1049
1049
  const c = t.current.querySelector(
1050
1050
  `[data-type="richtext"][data-key="${u.key}"]`
1051
1051
  );
1052
- if (c && h(c).length > 0) {
1052
+ if (c && y(c).length > 0) {
1053
1053
  a = !0;
1054
1054
  break;
1055
1055
  }
@@ -1144,7 +1144,7 @@ function at(t, m, i, s) {
1144
1144
  const r = t.current.querySelector(
1145
1145
  `[data-type="richtext"][data-key="${e.key}"]`
1146
1146
  );
1147
- if (!r || h(r).length === 0) {
1147
+ if (!r || y(r).length === 0) {
1148
1148
  k = !1;
1149
1149
  break;
1150
1150
  }
@@ -1162,18 +1162,18 @@ function at(t, m, i, s) {
1162
1162
  function nt(t, m) {
1163
1163
  if (!t.current) return;
1164
1164
  t.current.querySelectorAll('[data-type="variable"]').forEach((s) => {
1165
- const h = s.innerText;
1166
- h.replace(/\u200B/g, "").trim().length === 0 ? (h !== "​" && (s.innerText = "​"), s.classList.add("show-placeholder")) : s.classList.remove("show-placeholder");
1165
+ const y = s.innerText;
1166
+ y.replace(/\u200B/g, "").trim().length === 0 ? (y !== "​" && (s.innerText = "​"), s.classList.add("show-placeholder")) : s.classList.remove("show-placeholder");
1167
1167
  });
1168
1168
  }
1169
1169
  const $n = ({ host: t, onChange: m }) => {
1170
- const i = t.dataset.key, s = t.dataset.placeholder, h = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", T = t.dataset.required === "true", D = t.dataset.value || "", q = Yt.useMemo(() => {
1170
+ const i = t.dataset.key, s = t.dataset.placeholder, y = t.dataset.options ? decodeURIComponent(t.dataset.options) : "[]", T = t.dataset.required === "true", D = t.dataset.value || "", q = jt.useMemo(() => {
1171
1171
  try {
1172
- return JSON.parse(h);
1172
+ return JSON.parse(y);
1173
1173
  } catch {
1174
1174
  return [];
1175
1175
  }
1176
- }, [h]), [$, C] = se(D || void 0), [N, w] = se(80), P = (e) => {
1176
+ }, [y]), [$, C] = se(D || void 0), [N, w] = se(80), P = (e) => {
1177
1177
  const a = document.createElement("canvas").getContext("2d");
1178
1178
  return a ? (a.font = '14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif', a.measureText(e).width) : e.length * 14;
1179
1179
  };
@@ -1218,7 +1218,7 @@ const $n = ({ host: t, onChange: m }) => {
1218
1218
  return fe(() => {
1219
1219
  const s = t.current;
1220
1220
  if (!s) return;
1221
- const h = () => {
1221
+ const y = () => {
1222
1222
  const D = s.querySelectorAll(".rte-select-host"), q = [];
1223
1223
  D.forEach(($) => {
1224
1224
  const C = $.getAttribute("data-key");
@@ -1239,7 +1239,7 @@ const $n = ({ host: t, onChange: m }) => {
1239
1239
  );
1240
1240
  }), i(q);
1241
1241
  };
1242
- h();
1242
+ y();
1243
1243
  const T = new MutationObserver((D) => {
1244
1244
  let q = !1;
1245
1245
  for (const $ of D)
@@ -1260,12 +1260,12 @@ const $n = ({ host: t, onChange: m }) => {
1260
1260
  break;
1261
1261
  }
1262
1262
  }
1263
- q && h();
1263
+ q && y();
1264
1264
  });
1265
1265
  return T.observe(s, { childList: !0, subtree: !0 }), () => T.disconnect();
1266
1266
  }, [t]), m;
1267
1267
  }, ze = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1268
- function Cn(t, m, i, s, h, T = {}, D, q) {
1268
+ function Cn(t, m, i, s, y, T = {}, D, q) {
1269
1269
  if (!t.current) return;
1270
1270
  const $ = /[;;,,。.!!??::、]/, C = (e) => {
1271
1271
  const r = (e ?? "").trim();
@@ -1280,7 +1280,7 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1280
1280
  for (; k < m.length; ) {
1281
1281
  const e = m[k], r = k + 1 < m.length ? m[k + 1] : null;
1282
1282
  if (e.type === "text" && (e.text?.includes("icon-bitian") || e.className === "rte-text-required") && r) {
1283
- const W = r.type === "upload" && r.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === r.exclusionGroup, j = r.type === "variable" && r.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === r.exclusionGroup;
1283
+ const W = r.type === "upload" && r.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === r.exclusionGroup, Y = r.type === "variable" && r.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === r.exclusionGroup;
1284
1284
  if (W) {
1285
1285
  const z = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", V = `<span ${z} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1286
1286
  let B = "";
@@ -1292,11 +1292,11 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1292
1292
  P.push(V + B + de + G + Z), k += 2;
1293
1293
  continue;
1294
1294
  }
1295
- if (j) {
1295
+ if (Y) {
1296
1296
  const V = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, G = "</span>";
1297
1297
  let B = "";
1298
1298
  e.className ? B = `<span class="${e.className}">${e.text ?? ""}</span>` : B = e.text ?? "";
1299
- const H = r, d = (H.key ? h[H.key] : void 0) || H.text || "", n = !d, f = n ? "​" : d, x = n ? "show-placeholder" : "", L = H.exclusionGroup ? ` data-group="${H.exclusionGroup}"` : "", U = H.tooltip ? ` data-tooltip="${H.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${H.key || ""}"` : "", K = H.tooltip && n ? "" : "hidden", ee = `<span contenteditable="true" data-type="variable" data-key="${H.key}" data-placeholder="${H.placeholder || ""}"${L}${U} class="variable-chip ${x}">${f}${H.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${K}" data-variable-key="${H.key}" data-tooltip="${H.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1299
+ const H = r, d = (H.key ? y[H.key] : void 0) || H.text || "", n = !d, f = n ? "​" : d, x = n ? "show-placeholder" : "", L = H.exclusionGroup ? ` data-group="${H.exclusionGroup}"` : "", U = H.tooltip ? ` data-tooltip="${H.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${H.key || ""}"` : "", K = H.tooltip && n ? "" : "hidden", ee = `<span contenteditable="true" data-type="variable" data-key="${H.key}" data-placeholder="${H.placeholder || ""}"${L}${U} class="variable-chip ${x}">${f}${H.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${K}" data-variable-key="${H.key}" data-tooltip="${H.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1300
1300
  P.push(V + B + ee + G), k += 2;
1301
1301
  continue;
1302
1302
  }
@@ -1304,20 +1304,20 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1304
1304
  const u = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", c = e.exclusionGroup ? `<span ${u} class="exclusion-wrapper">` : "", M = e.exclusionGroup ? "</span>" : "";
1305
1305
  let E = "";
1306
1306
  if (e.type === "tag") {
1307
- const j = s || D === "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>', z = s ? ' data-locked="true"' : "", V = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1308
- E = `<span contenteditable="false" class="tag-node group"${z}${V}><span class="tag-label">${e.text}</span>${j}</span>`;
1307
+ const Y = s || D === "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>', z = s ? ' data-locked="true"' : "", V = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1308
+ E = `<span contenteditable="false" class="tag-node group"${z}${V}><span class="tag-label">${e.text}</span>${Y}</span>`;
1309
1309
  } else if (e.type === "text") {
1310
1310
  const W = s ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', z = (e.text ?? "").replace(/\n/g, "<br/>");
1311
1311
  e.className ? E = `<span data-type="text" class="${e.className}"${W}>${z}</span>` : E = s ? `<span data-type="text"${W}>${z}</span>` : `<span data-type="text" contenteditable="false">${z}</span>`;
1312
1312
  } else if (e.type === "variable" && e.key) {
1313
- const j = h[e.key] || e.text || "", z = !j, V = z ? "​" : j, G = z ? "show-placeholder" : "", B = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", H = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && z ? "" : "hidden", d = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${B}${H} 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 = y[e.key] || e.text || "", z = !Y, V = z ? "​" : Y, G = z ? "show-placeholder" : "", B = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", H = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && z ? "" : "hidden", d = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${B}${H} 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>`;
1314
1314
  e.required ? E = `<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>` : E = d;
1315
1315
  } else if (e.type === "report-url" && e.key) {
1316
- const j = h[e.key] || e.text || "", z = !j, V = z ? "​" : j, G = z ? "show-placeholder" : "", B = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", H = e.tooltip ? ` data-tooltip="${ze(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && z ? "" : "hidden", d = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${ze(e.placeholder || "")}"${B}${H} 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="${ze(e.tooltip)}" ></i>` : ""}</span>`;
1316
+ const Y = y[e.key] || e.text || "", z = !Y, V = z ? "​" : Y, G = z ? "show-placeholder" : "", B = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", H = e.tooltip ? ` data-tooltip="${ze(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", J = e.tooltip && z ? "" : "hidden", d = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${ze(e.placeholder || "")}"${B}${H} 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="${ze(e.tooltip)}" ></i>` : ""}</span>`;
1317
1317
  e.required ? E = `<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>` : E = d;
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, z = e.maxCount || 3;
1320
+ const Y = e.minCount || 1, z = e.maxCount || 3;
1321
1321
  let V = 0;
1322
1322
  for (let H = 0; H < z; H++) {
1323
1323
  const J = `${e.key}-${H}`;
@@ -1325,7 +1325,7 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1325
1325
  }
1326
1326
  const G = Math.min(
1327
1327
  z,
1328
- Math.max(j, V + (V < z ? 1 : 0))
1328
+ Math.max(Y, V + (V < z ? 1 : 0))
1329
1329
  );
1330
1330
  let B = "";
1331
1331
  for (let H = 0; H < G; H++) {
@@ -1337,57 +1337,57 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1337
1337
  }
1338
1338
  e.required ? E = `<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">${B}</span></span>` : E = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${B}</span>`;
1339
1339
  } else {
1340
- const j = i[e.key] !== null && i[e.key] !== void 0, z = j ? i[e.key] : null, V = j ? i[e.key]?.name : e.text, G = j ? "" : "hidden", B = e.tooltip && !j ? "" : "hidden", H = j ? "has-file" : "", J = j && V ? ` data-file-name="${V.replace(/"/g, "&quot;")}"` : "";
1340
+ const Y = i[e.key] !== null && i[e.key] !== void 0, z = Y ? i[e.key] : null, V = Y ? i[e.key]?.name : e.text, G = Y ? "" : "hidden", B = e.tooltip && !Y ? "" : "hidden", H = Y ? "has-file" : "", J = Y && V ? ` data-file-name="${V.replace(/"/g, "&quot;")}"` : "";
1341
1341
  let d = "";
1342
- j && z ? z.type?.startsWith("image/") ? d = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(z)}" alt="preview" />` : d = "<i class='iconfont icon-exlwenjian'></i>" : d = "<i class='iconfont icon-shangchuan1'></i>";
1343
- const n = (e.text || "").trim(), x = j && e.showHint === !0 && n.length >= 12 ? `<span ${u} contenteditable="false" class="exclusion-wrapper upload-hint">${n}</span>` : "", L = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${H}"><span class="upload-icon">${d}</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 ${B}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${G}" title="移除文件">×</span></span></span>`;
1342
+ Y && z ? z.type?.startsWith("image/") ? d = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(z)}" alt="preview" />` : d = "<i class='iconfont icon-exlwenjian'></i>" : d = "<i class='iconfont icon-shangchuan1'></i>";
1343
+ const n = (e.text || "").trim(), x = Y && e.showHint === !0 && n.length >= 12 ? `<span ${u} contenteditable="false" class="exclusion-wrapper upload-hint">${n}</span>` : "", L = `<span contenteditable="false" data-type="upload" data-key="${e.key}" class="upload-chip"><span class="upload-inner-wrapper ${H}"><span class="upload-icon">${d}</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 ${B}" data-upload-key="${e.key}" data-tooltip="${e.tooltip}" ></i>` : ""}<span class="file-remove-btn ${G}" title="移除文件">×</span></span></span>`;
1344
1344
  e.required ? E = `<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>${L}</span>${x}` : E = L + x;
1345
1345
  }
1346
1346
  else if (e.type === "select" && e.key) {
1347
- const W = h[e.key] || e.defaultValue || "", j = encodeURIComponent(JSON.stringify(e.options || [])), z = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", V = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", G = e.required ? ' data-required="true"' : "", B = `<div data-type="select" data-key="${e.key}" data-value="${W}" data-options="${j}"${z}${V}${G} class="rte-select-host"></div>`;
1347
+ const W = y[e.key] || e.defaultValue || "", Y = encodeURIComponent(JSON.stringify(e.options || [])), z = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", V = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", G = e.required ? ' data-required="true"' : "", B = `<div data-type="select" data-key="${e.key}" data-value="${W}" data-options="${Y}"${z}${V}${G} class="rte-select-host"></div>`;
1348
1348
  e.required ? E = `<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>${B}</span>` : E = B;
1349
1349
  } else if (e.type === "textarea" && e.key) {
1350
- const W = h[e.key] || "", j = typeof e.maxHeight == "number" ? e.maxHeight : q?.textarea?.maxHeight ?? 252, z = 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}>${W}</textarea>`, B = z ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", H = `<div class="rte-textarea-wrapper" data-key="${e.key}">${G}${B}</div>`;
1350
+ const W = y[e.key] || "", Y = typeof e.maxHeight == "number" ? e.maxHeight : q?.textarea?.maxHeight ?? 252, z = 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="${Y}" style="max-height:${Y}px;"${V}>${W}</textarea>`, B = z ? `<button type="button" class="rte-textarea-toggle" data-key="${e.key}" data-expanded="false">展开</button>` : "", H = `<div class="rte-textarea-wrapper" data-key="${e.key}">${G}${B}</div>`;
1351
1351
  e.required ? E = `<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>${H}</span>` : E = H;
1352
1352
  } else if (e.type === "richtext" && e.key) {
1353
- const W = h[e.key] || e.text || "", j = typeof e.minHeight == "number" ? e.minHeight : q?.richtext?.minHeight ?? 40, z = typeof e.maxHeight == "number" ? e.maxHeight : q?.richtext?.maxHeight ?? 160, V = Math.max(z, j), G = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", B = typeof e.expandable == "boolean" ? e.expandable : q?.richtext?.expandable ?? !0, H = W, 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;">${H}</div>`, d = B ? `<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>` : "", n = `<div class="rte-richtext-wrapper" data-key="${e.key}">${J}${d}</div>`, f = `<div class="rte-richtext-container" data-key="${e.key}">${n}</div>`;
1353
+ const W = y[e.key] || e.text || "", Y = typeof e.minHeight == "number" ? e.minHeight : q?.richtext?.minHeight ?? 40, z = typeof e.maxHeight == "number" ? e.maxHeight : q?.richtext?.maxHeight ?? 160, V = Math.max(z, Y), G = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", B = typeof e.expandable == "boolean" ? e.expandable : q?.richtext?.expandable ?? !0, H = W, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${G} style="min-height:${Y}px;max-height:${V}px;overflow:auto;">${H}</div>`, d = B ? `<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>` : "", n = `<div class="rte-richtext-wrapper" data-key="${e.key}">${J}${d}</div>`, f = `<div class="rte-richtext-container" data-key="${e.key}">${n}</div>`;
1354
1354
  e.required ? E = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : E = f;
1355
1355
  } else if (e.type === "report-module" && e.key) {
1356
- const W = h[e.key] || e.text || "", j = typeof e.minHeight == "number" ? e.minHeight : 80, z = typeof e.maxHeight == "number" ? e.maxHeight : 240, V = Math.max(z, j), G = e.placeholder ? ` data-placeholder="${ze(e.placeholder)}"` : "", B = W, H = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" class="rte-richtext rte-report-module"${G} style="min-height:${j}px;max-height:${V}px;overflow:auto;">${B}</div>`, J = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${H}</div>`, d = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${J}</div>`;
1357
- e.required ? E = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${d}</div>` : E = d;
1356
+ const Y = Object.prototype.hasOwnProperty.call(y, e.key) ? y[e.key] : e.text || "", z = typeof e.minHeight == "number" ? e.minHeight : 80, V = typeof e.maxHeight == "number" ? e.maxHeight : 240, G = Math.max(V, z), B = e.placeholder ? ` data-placeholder="${ze(e.placeholder)}"` : "", H = Y, J = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" class="rte-richtext rte-report-module"${B} style="min-height:${z}px;max-height:${G}px;overflow:auto;">${H}</div>`, d = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${J}</div>`, n = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${d}</div>`;
1357
+ e.required ? E = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${n}</div>` : E = n;
1358
1358
  } else if (e.type === "datepicker" && e.key) {
1359
- const W = h[e.key] || "", j = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", z = 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="${W}" class="rte-datepicker-host"${j}${z}${V}></div>`;
1359
+ const W = y[e.key] || "", Y = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", z = 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="${W}" class="rte-datepicker-host"${Y}${z}${V}></div>`;
1360
1360
  e.required ? E = `<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>` : E = G;
1361
1361
  } else if (e.type === "multi-variable" && e.key) {
1362
- const W = e.maxCount || 9, j = T[e.key] || 1, z = Math.min(j, W);
1362
+ const W = e.maxCount || 9, Y = T[e.key] || 1, z = Math.min(Y, W);
1363
1363
  if (e.required) {
1364
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}"` : "";
1365
1365
  let B = "";
1366
1366
  for (let H = 0; H < z; H++) {
1367
- const J = `${e.key}_${H}`, d = h[J] || "", n = !d, f = n ? "​" : d, x = n ? "show-placeholder" : "", L = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", U = e.tooltip && n ? "" : "hidden", K = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", ee = `<span contenteditable="true" data-type="variable" data-key="${J}" data-multi-key="${e.key}" data-index="${H}" data-placeholder="${e.placeholder || ""}"${K}${L} class="variable-chip ${x}">${f}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${U}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1367
+ const J = `${e.key}_${H}`, d = y[J] || "", n = !d, f = n ? "​" : d, x = n ? "show-placeholder" : "", L = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", U = e.tooltip && n ? "" : "hidden", K = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", ee = `<span contenteditable="true" data-type="variable" data-key="${J}" data-multi-key="${e.key}" data-index="${H}" data-placeholder="${e.placeholder || ""}"${K}${L} class="variable-chip ${x}">${f}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${U}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1368
1368
  H === 0 ? B += `<span ${G} class="exclusion-wrapper required-upload-group required-multi-first">${V}${ee}</span>` : B += ee;
1369
1369
  }
1370
1370
  E = B;
1371
1371
  } else {
1372
1372
  let V = "";
1373
1373
  for (let G = 0; G < z; G++) {
1374
- const B = `${e.key}_${G}`, H = h[B] || "", J = !H, d = J ? "​" : H, n = J ? "show-placeholder" : "", f = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", x = e.tooltip && J ? "" : "hidden", L = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", U = `<span contenteditable="true" data-type="variable" data-key="${B}" data-multi-key="${e.key}" data-index="${G}" data-placeholder="${e.placeholder || ""}"${L}${f} class="variable-chip ${n}">${d}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${x}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1374
+ const B = `${e.key}_${G}`, H = y[B] || "", J = !H, d = J ? "​" : H, n = J ? "show-placeholder" : "", f = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", x = e.tooltip && J ? "" : "hidden", L = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", U = `<span contenteditable="true" data-type="variable" data-key="${B}" data-multi-key="${e.key}" data-index="${G}" data-placeholder="${e.placeholder || ""}"${L}${f} class="variable-chip ${n}">${d}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${x}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1375
1375
  V += U;
1376
1376
  }
1377
1377
  E = V;
1378
1378
  }
1379
1379
  }
1380
- const Y = c + E + M;
1380
+ const j = c + E + M;
1381
1381
  if (e.type === "text" && !e.className && !e.exclusionGroup) {
1382
1382
  if (C(e.text) && P.length > 0) {
1383
- const j = P[P.length - 1], z = (e.text ?? "").trim();
1384
- P[P.length - 1] = `<span class="rte-inline-group">${j}${w(z)}</span>`, k++;
1383
+ const Y = P[P.length - 1], z = (e.text ?? "").trim();
1384
+ P[P.length - 1] = `<span class="rte-inline-group">${Y}${w(z)}</span>`, k++;
1385
1385
  continue;
1386
1386
  }
1387
1387
  const W = N(e.text);
1388
1388
  if (W && P.length > 0) {
1389
- const j = P[P.length - 1];
1390
- P[P.length - 1] = `<span class="rte-inline-group">${j}${w(W.punct)}</span>`;
1389
+ const Y = P[P.length - 1];
1390
+ P[P.length - 1] = `<span class="rte-inline-group">${Y}${w(W.punct)}</span>`;
1391
1391
  const z = W.rest;
1392
1392
  if (z) {
1393
1393
  const V = z.replace(/\n/g, "<br/>");
@@ -1397,7 +1397,7 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1397
1397
  continue;
1398
1398
  }
1399
1399
  }
1400
- P.push(Y), k++;
1400
+ P.push(j), k++;
1401
1401
  }
1402
1402
  t.current && (t.current.innerHTML = P.join(""), setTimeout(() => {
1403
1403
  if (!t.current) return;
@@ -1407,7 +1407,7 @@ function Cn(t, m, i, s, h, T = {}, D, q) {
1407
1407
  });
1408
1408
  }, 0));
1409
1409
  }
1410
- function Sn(t, m, i, s, h = {}, T, D, q, $) {
1410
+ function Sn(t, m, i, s, y = {}, T, D, q, $) {
1411
1411
  const C = ce(() => {
1412
1412
  if (!t.current) return;
1413
1413
  if (m.length === 0) {
@@ -1442,8 +1442,8 @@ function Sn(t, m, i, s, h = {}, T, D, q, $) {
1442
1442
  }), t.current.querySelectorAll('[data-type="richtext"]').forEach((c) => {
1443
1443
  const M = c.dataset.key;
1444
1444
  if (M) {
1445
- const Y = (c.getAttribute("data-node-type") || "") === "report-module" ? (c.innerHTML || "").replace(/[\u200B]/g, "").trim() : (c.textContent || "").replace(/[\u200B]/g, "").trim();
1446
- Y && (N[M] = Y);
1445
+ const E = c.getAttribute("data-node-type") || "", j = E === "report-module" ? (c.innerHTML || "").replace(/[\u200B]/g, "").trim() : (c.textContent || "").replace(/[\u200B]/g, "").trim();
1446
+ (E === "report-module" || j) && (N[M] = j);
1447
1447
  }
1448
1448
  }), t.current.querySelectorAll('[data-type="datepicker"]').forEach((c) => {
1449
1449
  const M = c.dataset.key;
@@ -1457,7 +1457,7 @@ function Sn(t, m, i, s, h = {}, T, D, q, $) {
1457
1457
  i,
1458
1458
  s,
1459
1459
  N,
1460
- h,
1460
+ y,
1461
1461
  q,
1462
1462
  $
1463
1463
  ), T?.current) {
@@ -1476,21 +1476,21 @@ function Sn(t, m, i, s, h = {}, T, D, q, $) {
1476
1476
  );
1477
1477
  let c = 0, M = null, E = 0;
1478
1478
  for (; u.nextNode(); ) {
1479
- const Y = u.currentNode, W = Y.textContent?.length || 0;
1479
+ const j = u.currentNode, W = j.textContent?.length || 0;
1480
1480
  if (c + W >= e) {
1481
- M = Y, E = e - c;
1481
+ M = j, E = e - c;
1482
1482
  break;
1483
1483
  }
1484
1484
  c += W;
1485
1485
  }
1486
1486
  if (M) {
1487
1487
  a.setStart(M, Math.min(E, M.textContent?.length || 0)), a.collapse(!0);
1488
- const Y = window.getSelection();
1489
- Y && (Y.removeAllRanges(), Y.addRange(a), r.focus());
1488
+ const j = window.getSelection();
1489
+ j && (j.removeAllRanges(), j.addRange(a), r.focus());
1490
1490
  } else {
1491
1491
  a.selectNodeContents(r), a.collapse(!1);
1492
- const Y = window.getSelection();
1493
- Y && (Y.removeAllRanges(), Y.addRange(a), r.focus());
1492
+ const j = window.getSelection();
1493
+ j && (j.removeAllRanges(), j.addRange(a), r.focus());
1494
1494
  }
1495
1495
  } catch {
1496
1496
  const a = document.createRange();
@@ -1502,15 +1502,15 @@ function Sn(t, m, i, s, h = {}, T, D, q, $) {
1502
1502
  }
1503
1503
  }, 0);
1504
1504
  }
1505
- }, [m, i, s, t, h, T, D, q, $]);
1505
+ }, [m, i, s, t, y, T, D, q, $]);
1506
1506
  fe(() => {
1507
1507
  C();
1508
1508
  }, [C]);
1509
1509
  }
1510
1510
  function Tn(t, m, i, s) {
1511
1511
  fe(() => {
1512
- const h = t.current;
1513
- if (!h) return;
1512
+ const y = t.current;
1513
+ if (!y) return;
1514
1514
  const T = ($) => $.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test($.name || ""), D = ($) => {
1515
1515
  const C = $.target?.closest(".upload-info-icon");
1516
1516
  if (C && C.classList.contains("upload-info-icon")) {
@@ -1535,7 +1535,7 @@ function Tn(t, m, i, s) {
1535
1535
  const P = C.closest('[data-type="upload"]');
1536
1536
  if (N && P && P.contains(N))
1537
1537
  return;
1538
- if (!N || !h.contains(N))
1538
+ if (!N || !y.contains(N))
1539
1539
  s(null);
1540
1540
  else {
1541
1541
  const k = N.closest('[data-type="upload"]');
@@ -1551,15 +1551,15 @@ function Tn(t, m, i, s) {
1551
1551
  s(null);
1552
1552
  }
1553
1553
  };
1554
- return h.addEventListener("mouseover", D, !0), h.addEventListener("mouseout", q, !0), () => {
1555
- h.removeEventListener("mouseover", D, !0), h.removeEventListener("mouseout", q, !0);
1554
+ return y.addEventListener("mouseover", D, !0), y.addEventListener("mouseout", q, !0), () => {
1555
+ y.removeEventListener("mouseover", D, !0), y.removeEventListener("mouseout", q, !0);
1556
1556
  };
1557
1557
  }, [m, i, t, s]);
1558
1558
  }
1559
1559
  function qn(t, m, i, s) {
1560
1560
  fe(() => {
1561
1561
  if (!t.current) return;
1562
- const h = ($) => {
1562
+ const y = ($) => {
1563
1563
  if (s === "hideTagClose")
1564
1564
  return;
1565
1565
  const C = $.currentTarget, N = C.dataset.tooltip, w = C.dataset.tagKey || "";
@@ -1573,7 +1573,7 @@ function qn(t, m, i, s) {
1573
1573
  t.current.querySelectorAll(
1574
1574
  ".tag-node[data-tooltip]"
1575
1575
  ).forEach((C) => {
1576
- C.addEventListener("mouseenter", h), C.addEventListener("mouseleave", T);
1576
+ C.addEventListener("mouseenter", y), C.addEventListener("mouseleave", T);
1577
1577
  });
1578
1578
  };
1579
1579
  return D = requestAnimationFrame(() => {
@@ -1582,7 +1582,7 @@ function qn(t, m, i, s) {
1582
1582
  cancelAnimationFrame(D), t.current && t.current.querySelectorAll(
1583
1583
  ".tag-node[data-tooltip]"
1584
1584
  ).forEach((C) => {
1585
- C.removeEventListener("mouseenter", h), C.removeEventListener("mouseleave", T);
1585
+ C.removeEventListener("mouseenter", y), C.removeEventListener("mouseleave", T);
1586
1586
  });
1587
1587
  };
1588
1588
  }, [m, t, i, s]);
@@ -1591,7 +1591,7 @@ function Nn(t, m, i) {
1591
1591
  fe(() => {
1592
1592
  const s = t.current;
1593
1593
  if (!s) return;
1594
- const h = (D) => {
1594
+ const y = (D) => {
1595
1595
  const q = D.target?.closest(".variable-info-icon");
1596
1596
  if (q && q.classList.contains("variable-info-icon")) {
1597
1597
  const $ = q.dataset.variableKey;
@@ -1601,17 +1601,17 @@ function Nn(t, m, i) {
1601
1601
  const q = D.target?.closest(".variable-info-icon"), $ = D.relatedTarget;
1602
1602
  q && q.classList.contains("variable-info-icon") && (!$ || !s.contains($) ? i(null) : $.closest(".variable-info-icon") || i(null));
1603
1603
  };
1604
- return s.addEventListener("mouseover", h, !0), s.addEventListener("mouseout", T, !0), () => {
1605
- s.removeEventListener("mouseover", h, !0), s.removeEventListener("mouseout", T, !0);
1604
+ return s.addEventListener("mouseover", y, !0), s.addEventListener("mouseout", T, !0), () => {
1605
+ s.removeEventListener("mouseover", y, !0), s.removeEventListener("mouseout", T, !0);
1606
1606
  };
1607
1607
  }, [m, t, i]);
1608
1608
  }
1609
1609
  function An(t, m, i, s) {
1610
1610
  fe(() => {
1611
1611
  if (!t.current) return;
1612
- const h = (C) => C.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(C.name || ""), T = (C) => {
1612
+ const y = (C) => C.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(C.name || ""), T = (C) => {
1613
1613
  const N = C.currentTarget, w = N.dataset.fileName, P = N.closest('[data-type="upload"]'), k = P?.dataset.key || "", e = k ? i[k] : null;
1614
- if (e && h(e)) {
1614
+ if (e && y(e)) {
1615
1615
  s({ key: k, anchorEl: P || N, type: "upload-preview" });
1616
1616
  return;
1617
1617
  }
@@ -1641,21 +1641,21 @@ function An(t, m, i, s) {
1641
1641
  }
1642
1642
  function _n(t, m, i, s) {
1643
1643
  fe(() => {
1644
- const h = setTimeout(() => {
1644
+ const y = setTimeout(() => {
1645
1645
  rt(t, m, i), at(t, m, i, s);
1646
1646
  }, 0);
1647
- return () => clearTimeout(h);
1647
+ return () => clearTimeout(y);
1648
1648
  }, [i, m, t, s]);
1649
1649
  }
1650
1650
  function Ln(t, m) {
1651
1651
  const i = ne(0), s = ne(0);
1652
1652
  fe(() => {
1653
1653
  if (!t.current) return;
1654
- let h = !1, T = 0;
1654
+ let y = !1, T = 0;
1655
1655
  const D = (c) => c instanceof HTMLElement ? !!(c.closest(".rte-datepicker-wrapper") || c.closest(".rte-datepicker-host") || c.closest(".ant-picker") || c.closest(".ant-picker-dropdown")) : !1, q = (c) => c instanceof HTMLElement ? !!(c.closest(".rte-select-wrapper") || c.closest(".rte-select-host") || c.closest(".ant-select") || c.closest(".ant-select-dropdown")) : !1, $ = (c) => {
1656
- h = !0, D(c.target) && (i.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), q(c.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1656
+ y = !0, D(c.target) && (i.current = Date.now(), console.log("[SelectionCtrl] mousedown on datepicker target")), q(c.target) && (s.current = Date.now(), console.log("[SelectionCtrl] mousedown on select target"));
1657
1657
  }, C = () => {
1658
- h = !1, T = Date.now();
1658
+ y = !1, T = Date.now();
1659
1659
  };
1660
1660
  let N = !1, w = 0;
1661
1661
  const P = () => {
@@ -1679,26 +1679,26 @@ function Ln(t, m) {
1679
1679
  }
1680
1680
  if (!t.current) return;
1681
1681
  const M = window.getSelection();
1682
- if (!M || M.rangeCount === 0 || m.current || h || N || Date.now() - w < 500)
1682
+ if (!M || M.rangeCount === 0 || m.current || y || N || Date.now() - w < 500)
1683
1683
  return;
1684
1684
  const E = M.getRangeAt(0);
1685
1685
  if (!E.collapsed)
1686
1686
  return t.current.contains(E.commonAncestorContainer), void 0;
1687
- const Y = M.anchorNode;
1688
- if (!Y || !t.current.contains(Y))
1687
+ const j = M.anchorNode;
1688
+ if (!j || !t.current.contains(j))
1689
1689
  return;
1690
- let W = !1, j = !1;
1691
- if (Y.nodeType === Node.ELEMENT_NODE) {
1692
- const V = Y;
1693
- (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (W = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (j = !0);
1694
- } else if (Y.parentElement) {
1695
- const V = Y.parentElement;
1696
- (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (W = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (j = !0);
1690
+ let W = !1, Y = !1;
1691
+ if (j.nodeType === Node.ELEMENT_NODE) {
1692
+ const V = j;
1693
+ (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (W = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (Y = !0);
1694
+ } else if (j.parentElement) {
1695
+ const V = j.parentElement;
1696
+ (V.closest('[data-type="datepicker"]') || V.closest(".rte-datepicker-wrapper") || V.closest(".rte-datepicker-host")) && (W = !0), (V.closest('[data-type="select"]') || V.closest(".rte-select-wrapper") || V.closest(".rte-select-host")) && (Y = !0);
1697
1697
  }
1698
- if (W || j)
1698
+ if (W || Y)
1699
1699
  return;
1700
1700
  let z = null;
1701
- if (Y.nodeType === Node.ELEMENT_NODE ? z = Y.closest('[data-type="variable"]') : Y.nodeType === Node.TEXT_NODE && Y.parentElement && (z = Y.parentElement.closest('[data-type="variable"]')), !z) {
1701
+ if (j.nodeType === Node.ELEMENT_NODE ? z = j.closest('[data-type="variable"]') : j.nodeType === Node.TEXT_NODE && j.parentElement && (z = j.parentElement.closest('[data-type="variable"]')), !z) {
1702
1702
  if (Date.now() - T > 500)
1703
1703
  return;
1704
1704
  const V = t.current.querySelectorAll('[data-type="variable"]');
@@ -1727,13 +1727,13 @@ function Ln(t, m) {
1727
1727
  function Mn(t) {
1728
1728
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1729
1729
  }
1730
- var Ye = { exports: {} }, In = Ye.exports, wt;
1730
+ var je = { exports: {} }, In = je.exports, wt;
1731
1731
  function Tt() {
1732
1732
  return wt || (wt = 1, function(t, m) {
1733
1733
  (function(i, s) {
1734
1734
  t.exports = s();
1735
1735
  })(In, function() {
1736
- var i = 1e3, s = 6e4, h = 36e5, T = "millisecond", D = "second", q = "minute", $ = "hour", C = "day", N = "week", w = "month", P = "quarter", k = "year", e = "date", r = "Invalid Date", a = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, u = /\[([^\]]+)]|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, c = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(d) {
1736
+ var i = 1e3, s = 6e4, y = 36e5, T = "millisecond", D = "second", q = "minute", $ = "hour", C = "day", N = "week", w = "month", P = "quarter", k = "year", e = "date", r = "Invalid Date", a = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, u = /\[([^\]]+)]|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, c = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(d) {
1737
1737
  var n = ["th", "st", "nd", "rd"], f = d % 100;
1738
1738
  return "[" + d + (n[(f - 20) % 10] || n[f] || n[0]) + "]";
1739
1739
  } }, M = function(d, n, f) {
@@ -1752,13 +1752,13 @@ function Tt() {
1752
1752
  return { M: w, y: k, w: N, d: C, D: e, h: $, m: q, s: D, ms: T, Q: P }[d] || String(d || "").toLowerCase().replace(/s$/, "");
1753
1753
  }, u: function(d) {
1754
1754
  return d === void 0;
1755
- } }, Y = "en", W = {};
1756
- W[Y] = c;
1757
- var j = "$isDayjsObject", z = function(d) {
1758
- return d instanceof H || !(!d || !d[j]);
1755
+ } }, j = "en", W = {};
1756
+ W[j] = c;
1757
+ var Y = "$isDayjsObject", z = function(d) {
1758
+ return d instanceof H || !(!d || !d[Y]);
1759
1759
  }, V = function d(n, f, x) {
1760
1760
  var L;
1761
- if (!n) return Y;
1761
+ if (!n) return j;
1762
1762
  if (typeof n == "string") {
1763
1763
  var U = n.toLowerCase();
1764
1764
  W[U] && (L = U), f && (W[U] = f, L = U);
@@ -1768,7 +1768,7 @@ function Tt() {
1768
1768
  var ee = n.name;
1769
1769
  W[ee] = n, L = ee;
1770
1770
  }
1771
- return !x && L && (Y = L), L || !x && Y;
1771
+ return !x && L && (j = L), L || !x && j;
1772
1772
  }, G = function(d, n) {
1773
1773
  if (z(d)) return d.clone();
1774
1774
  var f = typeof n == "object" ? n : {};
@@ -1779,7 +1779,7 @@ function Tt() {
1779
1779
  };
1780
1780
  var H = function() {
1781
1781
  function d(f) {
1782
- this.$L = V(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[j] = !0;
1782
+ this.$L = V(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[Y] = !0;
1783
1783
  }
1784
1784
  var n = d.prototype;
1785
1785
  return n.parse = function(f) {
@@ -1868,7 +1868,7 @@ function Tt() {
1868
1868
  if (K === k) return this.set(k, this.$y + f);
1869
1869
  if (K === C) return ee(1);
1870
1870
  if (K === N) return ee(7);
1871
- var ue = (L = {}, L[q] = s, L[$] = h, L[D] = i, L)[K] || 1, Z = this.$d.getTime() + f * ue;
1871
+ var ue = (L = {}, L[q] = s, L[$] = y, L[D] = i, L)[K] || 1, Z = this.$d.getTime() + f * ue;
1872
1872
  return B.w(Z, this);
1873
1873
  }, n.subtract = function(f, x) {
1874
1874
  return this.add(-1 * f, x);
@@ -1961,7 +1961,7 @@ function Tt() {
1961
1961
  U = (de - Z) / 864e5;
1962
1962
  break;
1963
1963
  case $:
1964
- U = de / h;
1964
+ U = de / y;
1965
1965
  break;
1966
1966
  case q:
1967
1967
  U = de / s;
@@ -2001,12 +2001,12 @@ function Tt() {
2001
2001
  return d.$i || (d(n, H, G), d.$i = !0), G;
2002
2002
  }, G.locale = V, G.isDayjs = z, G.unix = function(d) {
2003
2003
  return G(1e3 * d);
2004
- }, G.en = W[Y], G.Ls = W, G.p = {}, G;
2004
+ }, G.en = W[j], G.Ls = W, G.p = {}, G;
2005
2005
  });
2006
- }(Ye)), Ye.exports;
2006
+ }(je)), je.exports;
2007
2007
  }
2008
2008
  var Dn = Tt();
2009
- const je = /* @__PURE__ */ Mn(Dn);
2009
+ const Ye = /* @__PURE__ */ Mn(Dn);
2010
2010
  var We = { exports: {} }, Bn = We.exports, kt;
2011
2011
  function Pn() {
2012
2012
  return kt || (kt = 1, function(t, m) {
@@ -2016,13 +2016,13 @@ function Pn() {
2016
2016
  function s(D) {
2017
2017
  return D && typeof D == "object" && "default" in D ? D : { default: D };
2018
2018
  }
2019
- var h = s(i), 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(D, q) {
2019
+ var y = s(i), 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(D, q) {
2020
2020
  return q === "W" ? D + "周" : D + "日";
2021
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(D, q) {
2022
2022
  var $ = 100 * D + q;
2023
2023
  return $ < 600 ? "凌晨" : $ < 900 ? "早上" : $ < 1100 ? "上午" : $ < 1300 ? "中午" : $ < 1800 ? "下午" : "晚上";
2024
2024
  } };
2025
- return h.default.locale(T, null, !0), T;
2025
+ return y.default.locale(T, null, !0), T;
2026
2026
  });
2027
2027
  }(We)), We.exports;
2028
2028
  }
@@ -2061,8 +2061,8 @@ function $t(t, m) {
2061
2061
  var i = Object.keys(t);
2062
2062
  if (Object.getOwnPropertySymbols) {
2063
2063
  var s = Object.getOwnPropertySymbols(t);
2064
- m && (s = s.filter(function(h) {
2065
- return Object.getOwnPropertyDescriptor(t, h).enumerable;
2064
+ m && (s = s.filter(function(y) {
2065
+ return Object.getOwnPropertyDescriptor(t, y).enumerable;
2066
2066
  })), i.push.apply(i, s);
2067
2067
  }
2068
2068
  return i;
@@ -2130,19 +2130,19 @@ const Fn = {
2130
2130
  timePickerLocale: Object.assign({}, Fn)
2131
2131
  };
2132
2132
  qt.lang.ok = "确定";
2133
- je.locale("zh-cn");
2134
- const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2135
- const i = t.dataset.key, s = t.dataset.value, h = t.dataset.placeholder, T = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, D = t.dataset.disableFuture === "true", [q, $] = se(() => {
2133
+ Ye.locale("zh-cn");
2134
+ const { RangePicker: zn } = Xt, jn = ({ host: t, onChange: m }) => {
2135
+ const i = t.dataset.key, s = t.dataset.value, y = t.dataset.placeholder, T = t.dataset.limitRange ? parseInt(t.dataset.limitRange, 10) : void 0, D = t.dataset.disableFuture === "true", [q, $] = se(() => {
2136
2136
  if (!s) return null;
2137
2137
  const r = s.split(",");
2138
- return r.length === 2 && r[0] && r[1] ? [je(r[0]), je(r[1])] : null;
2138
+ return r.length === 2 && r[0] && r[1] ? [Ye(r[0]), Ye(r[1])] : null;
2139
2139
  }), [C, N] = se(null);
2140
2140
  return it(
2141
2141
  /* @__PURE__ */ I("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__ */ I(
2142
2142
  zn,
2143
2143
  {
2144
2144
  value: q,
2145
- disabledDate: (r) => r ? D && r.isAfter(je(), "day") ? !0 : !T || !C || !C[0] ? !1 : Math.abs(r.diff(C[0], "days")) > T : !1,
2145
+ disabledDate: (r) => r ? D && r.isAfter(Ye(), "day") ? !0 : !T || !C || !C[0] ? !1 : Math.abs(r.diff(C[0], "days")) > T : !1,
2146
2146
  onCalendarChange: (r) => {
2147
2147
  console.log("[DatePicker] onCalendarChange", r?.map((a) => a?.format("YYYY-MM-DD") || null)), N(r);
2148
2148
  },
@@ -2156,7 +2156,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2156
2156
  onOpenChange: (r) => {
2157
2157
  console.log("[DatePicker] onOpenChange", r), N(r ? q : null);
2158
2158
  },
2159
- placeholder: [h || "开始日期", h || "结束日期"],
2159
+ placeholder: [y || "开始日期", y || "结束日期"],
2160
2160
  style: { width: "100%" },
2161
2161
  size: "small",
2162
2162
  allowClear: !0,
@@ -2167,18 +2167,18 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2167
2167
  ) }),
2168
2168
  t
2169
2169
  );
2170
- }, jn = (t) => {
2170
+ }, Yn = (t) => {
2171
2171
  const [m, i] = se([]);
2172
2172
  return fe(() => {
2173
2173
  const s = t.current;
2174
2174
  if (!s) return;
2175
- const h = () => {
2175
+ const y = () => {
2176
2176
  const D = s.querySelectorAll(".rte-datepicker-host"), q = [];
2177
2177
  D.forEach(($) => {
2178
2178
  const C = $.getAttribute("data-key");
2179
2179
  C && q.push(
2180
2180
  /* @__PURE__ */ I(
2181
- Yn,
2181
+ jn,
2182
2182
  {
2183
2183
  host: $,
2184
2184
  onChange: () => {
@@ -2193,7 +2193,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2193
2193
  );
2194
2194
  }), i(q);
2195
2195
  };
2196
- h();
2196
+ y();
2197
2197
  const T = new MutationObserver((D) => {
2198
2198
  let q = !1;
2199
2199
  for (const $ of D)
@@ -2214,7 +2214,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2214
2214
  break;
2215
2215
  }
2216
2216
  }
2217
- q && h();
2217
+ q && y();
2218
2218
  });
2219
2219
  return T.observe(s, { childList: !0, subtree: !0 }), () => T.disconnect();
2220
2220
  }, [t]), m;
@@ -2223,7 +2223,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2223
2223
  onSend: m,
2224
2224
  isProcessing: i = !1,
2225
2225
  disabled: s = !1,
2226
- width: h,
2226
+ width: y,
2227
2227
  lockStructure: T = !1,
2228
2228
  agentOptions: D = [],
2229
2229
  onAgentSelect: q,
@@ -2240,9 +2240,9 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2240
2240
  scrollCollapseThreshold: c,
2241
2241
  scrollContainer: M,
2242
2242
  scrollCollapseAnchor: E = "top",
2243
- scrollCollapseHysteresis: Y = 0,
2243
+ scrollCollapseHysteresis: j = 0,
2244
2244
  scrollCollapseCooldownMs: W = 0,
2245
- scrollCollapseIntentWindowMs: j,
2245
+ scrollCollapseIntentWindowMs: Y,
2246
2246
  scrollCollapseLayoutLockMs: z,
2247
2247
  onScrollCollapseChange: V,
2248
2248
  reportAnalyze: G,
@@ -2306,7 +2306,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2306
2306
  return;
2307
2307
  const o = M ? typeof M == "string" ? document.querySelector(M) : M.current || null : document.querySelector("main");
2308
2308
  if (!o) return;
2309
- const p = j ?? (E === "bottom" ? 1200 : 0), A = z ?? (E === "bottom" ? 200 : 0), y = () => {
2309
+ const p = Y ?? (E === "bottom" ? 1200 : 0), A = z ?? (E === "bottom" ? 200 : 0), h = () => {
2310
2310
  p <= 0 || (Xe.current = Date.now() + p);
2311
2311
  }, _ = !0;
2312
2312
  let v = !1;
@@ -2328,7 +2328,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2328
2328
  v = !1;
2329
2329
  return;
2330
2330
  }
2331
- const te = E === "bottom" ? Math.max(0, o.scrollHeight - o.clientHeight - b) : b, le = Math.max(0, Y || 0), pe = c + le, ve = Math.max(0, c - le), qe = (() => {
2331
+ const te = E === "bottom" ? Math.max(0, o.scrollHeight - o.clientHeight - b) : b, le = Math.max(0, j || 0), pe = c + le, ve = Math.max(0, c - le), qe = (() => {
2332
2332
  if (E === "bottom") {
2333
2333
  const Se = te, De = Se <= c, Me = Se <= ve;
2334
2334
  return S === null ? !De : S ? !Me : R < 0 && !De ? !0 : Se > pe;
@@ -2346,16 +2346,16 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2346
2346
  v = !1;
2347
2347
  }));
2348
2348
  };
2349
- return o.addEventListener("wheel", y, { passive: !0, capture: _ }), o.addEventListener("touchstart", y, { passive: !0, capture: _ }), o.addEventListener("touchmove", y, { passive: !0, capture: _ }), o.addEventListener("pointerdown", y, { passive: !0, capture: _ }), o.addEventListener("scroll", g, { passive: !0 }), He.current = o.scrollTop || 0, Oe.current = o.scrollHeight || 0, g(), () => {
2350
- o.removeEventListener("scroll", g), o.removeEventListener("wheel", y, _), o.removeEventListener("touchstart", y, _), o.removeEventListener("touchmove", y, _), o.removeEventListener("pointerdown", y, _);
2349
+ return o.addEventListener("wheel", h, { passive: !0, capture: _ }), o.addEventListener("touchstart", h, { passive: !0, capture: _ }), o.addEventListener("touchmove", h, { passive: !0, capture: _ }), o.addEventListener("pointerdown", h, { passive: !0, capture: _ }), o.addEventListener("scroll", g, { passive: !0 }), He.current = o.scrollTop || 0, Oe.current = o.scrollHeight || 0, g(), () => {
2350
+ o.removeEventListener("scroll", g), o.removeEventListener("wheel", h, _), o.removeEventListener("touchstart", h, _), o.removeEventListener("touchmove", h, _), o.removeEventListener("pointerdown", h, _);
2351
2351
  };
2352
2352
  }, [
2353
2353
  c,
2354
2354
  M,
2355
2355
  E,
2356
- Y,
2357
- W,
2358
2356
  j,
2357
+ W,
2358
+ Y,
2359
2359
  z,
2360
2360
  V
2361
2361
  ]), bt(() => {
@@ -2368,13 +2368,13 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2368
2368
  const l = [], o = (p) => p.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
2369
2369
  for (const p of t) {
2370
2370
  if (l.push(p), p.type !== "report-url" || !p.key) continue;
2371
- const A = ge[p.key], y = A?.status ?? "idle", _ = A?.modules ?? [];
2372
- y === "loading" && l.push({
2371
+ const A = ge[p.key], h = A?.status ?? "idle", _ = A?.modules ?? [];
2372
+ h === "loading" && l.push({
2373
2373
  type: "text",
2374
2374
  className: "rte-report-parsing",
2375
2375
  text: `解析中...
2376
2376
  `
2377
- }), y === "error" && A?.error && l.push({
2377
+ }), h === "error" && A?.error && l.push({
2378
2378
  type: "text",
2379
2379
  className: "rte-report-error",
2380
2380
  text: `解析失败:${o(A.error)}
@@ -2413,7 +2413,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2413
2413
  o.innerHTML = p ? '<i class="iconfont icon-shouqi1"></i><span class="rte-richtext-toggle-label">收起</span>' : '<i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span>';
2414
2414
  });
2415
2415
  }, [t, n]);
2416
- const Lt = jn(n), et = ce((l) => {
2416
+ const Lt = Yn(n), et = ce((l) => {
2417
2417
  const o = l.trim();
2418
2418
  if (!o) return { url: "" };
2419
2419
  let p = null;
@@ -2426,7 +2426,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2426
2426
  return { url: o };
2427
2427
  }
2428
2428
  }
2429
- const A = p.pathname.split("/").filter(Boolean), y = A.findIndex((O) => O === "report"), _ = y >= 0 ? A[y + 1] : void 0, v = A[0] && A[0].length <= 5 ? A[0] : void 0, g = p.searchParams.get("agentId") || void 0;
2429
+ const A = p.pathname.split("/").filter(Boolean), h = A.findIndex((O) => O === "report"), _ = h >= 0 ? A[h + 1] : void 0, v = A[0] && A[0].length <= 5 ? A[0] : void 0, g = p.searchParams.get("agentId") || void 0;
2430
2430
  return { url: o, reportId: _, agentId: g, lang: v };
2431
2431
  }, []), mt = ce(() => {
2432
2432
  const l = {};
@@ -2460,8 +2460,8 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2460
2460
  }), l;
2461
2461
  }, []), yt = ce(
2462
2462
  (l) => (l?.modules || []).map((p, A) => {
2463
- const y = (p?.title || `模块${A + 1}`).trim() || `模块${A + 1}`, _ = (p?.content || "").trim(), v = _.length > 0 ? _ : `请补充:${y}`;
2464
- return { title: y, content: v };
2463
+ const h = (p?.title || `模块${A + 1}`).trim() || `模块${A + 1}`, _ = (p?.content || "").trim(), v = _.length > 0 ? _ : `请补充:${h}`;
2464
+ return { title: h, content: v };
2465
2465
  }),
2466
2466
  []
2467
2467
  ), ht = ce(
@@ -2499,7 +2499,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2499
2499
  lastParsedUrl: p
2500
2500
  }
2501
2501
  }));
2502
- const y = et(p);
2502
+ const h = et(p);
2503
2503
  (G || (async (v) => ({
2504
2504
  modules: [
2505
2505
  {
@@ -2512,7 +2512,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2512
2512
  content: "左侧:杂乱堆放、难清理;右侧:分区收纳、拿取方便。文案≤15字,绑定人群+场景+需求。"
2513
2513
  }
2514
2514
  ]
2515
- })))(y).then((v) => {
2515
+ })))(h).then((v) => {
2516
2516
  const g = yt(v);
2517
2517
  if (n.current) {
2518
2518
  const O = mt();
@@ -2555,11 +2555,11 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2555
2555
  Ve(!0);
2556
2556
  return;
2557
2557
  }
2558
- const p = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", A = n.current.querySelectorAll('[data-type="variable"]'), y = n.current.querySelectorAll('[data-type="upload"]');
2558
+ const p = n.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "", A = n.current.querySelectorAll('[data-type="variable"]'), h = n.current.querySelectorAll('[data-type="upload"]');
2559
2559
  let _ = !1;
2560
2560
  A.forEach((g) => {
2561
2561
  (g.textContent?.replace(/[\u200B\n]/g, "").trim() || "") && (_ = !0);
2562
- }), y.forEach((g) => {
2562
+ }), h.forEach((g) => {
2563
2563
  g.querySelector(".upload-inner-wrapper.has-file") && (_ = !0);
2564
2564
  });
2565
2565
  const v = !p && !_;
@@ -2585,13 +2585,13 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2585
2585
  if (p && p.rangeCount > 0) {
2586
2586
  const A = p.anchorNode;
2587
2587
  if (A) {
2588
- let y = null;
2589
- if (A.nodeType === Node.ELEMENT_NODE ? y = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (y = A.parentElement.closest('[data-type="variable"]')), y) {
2590
- const _ = y.dataset.multiKey;
2588
+ let h = null;
2589
+ if (A.nodeType === Node.ELEMENT_NODE ? h = A.closest('[data-type="variable"]') : A.nodeType === Node.TEXT_NODE && A.parentElement && (h = A.parentElement.closest('[data-type="variable"]')), h) {
2590
+ const _ = h.dataset.multiKey;
2591
2591
  if (_) {
2592
2592
  const v = /[、,,\s\n\r\t]+/, g = o.split(v).map((O) => O.trim()).filter((O) => O.length > 0);
2593
2593
  if (console.log("[Paste Event] 粘贴的内容:", o), console.log("[Paste Event] 拆分后的值:", g), g.length > 1) {
2594
- const O = parseInt(y.dataset.index || "0", 10), b = t.find((le) => le.type === "multi-variable" && le.key === _)?.maxCount || 9, ae = Ae[_] || 1, R = Math.min(O + g.length, b);
2594
+ const O = parseInt(h.dataset.index || "0", 10), b = t.find((le) => le.type === "multi-variable" && le.key === _)?.maxCount || 9, ae = Ae[_] || 1, R = Math.min(O + g.length, b);
2595
2595
  R > ae && Te((te) => ({
2596
2596
  ...te,
2597
2597
  [_]: R
@@ -2633,10 +2633,10 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2633
2633
  document.execCommand("insertText", !1, o), vt(), setTimeout(() => {
2634
2634
  const A = window.getSelection();
2635
2635
  if (A && A.rangeCount > 0) {
2636
- const y = A.anchorNode;
2637
- if (y) {
2636
+ const h = A.anchorNode;
2637
+ if (h) {
2638
2638
  let _ = null;
2639
- if (y.nodeType === Node.ELEMENT_NODE ? _ = y.closest('[data-type="variable"][data-multi-key]') : y.nodeType === Node.TEXT_NODE && y.parentElement && (_ = y.parentElement.closest('[data-type="variable"][data-multi-key]')), _) {
2639
+ if (h.nodeType === Node.ELEMENT_NODE ? _ = h.closest('[data-type="variable"][data-multi-key]') : h.nodeType === Node.TEXT_NODE && h.parentElement && (_ = h.parentElement.closest('[data-type="variable"][data-multi-key]')), _) {
2640
2640
  const v = _.innerText.replace(/[\u200B\n]/g, "").trim();
2641
2641
  /[、,,\s]+/.test(v) && (console.log("[Paste Event] 粘贴后检测到分隔符,内容:", v), console.log("[Paste Event] 提示:失去焦点后将自动拆分"));
2642
2642
  }
@@ -2648,27 +2648,27 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2648
2648
  l.target && (l.target.value = ""), K(null), ue(null);
2649
2649
  return;
2650
2650
  }
2651
- const o = 10 * 1024 * 1024, p = (y) => y.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(y.name || ""), A = (y) => p(y) && y.size > o;
2651
+ const o = 10 * 1024 * 1024, p = (h) => h.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(h.name || ""), A = (h) => p(h) && h.size > o;
2652
2652
  if (ee && l.target.files && l.target.files.length > 0) {
2653
- const y = ee, _ = t.find((b) => b.type === "upload" && b.key === y), v = Array.from(l.target.files), g = v.filter((b) => !A(b)), O = v.length - g.length;
2653
+ const h = ee, _ = t.find((b) => b.type === "upload" && b.key === h), v = Array.from(l.target.files), g = v.filter((b) => !A(b)), O = v.length - g.length;
2654
2654
  if (O > 0 && H.error(`已自动过滤 ${O} 张超过 10MB 的图片,仅允许上传 10MB 以内图片`), _ && typeof _.maxCount == "number" && typeof _.minCount == "number") {
2655
2655
  const b = _.maxCount;
2656
2656
  let ae = 0;
2657
2657
  L((R) => {
2658
2658
  for (let Q = 0; Q < b; Q++) {
2659
- const oe = `${y}-${Q}`;
2659
+ const oe = `${h}-${Q}`;
2660
2660
  R[oe] && (ae = Q + 1);
2661
2661
  }
2662
2662
  const F = b - ae, X = g.slice(0, F), S = { ...R };
2663
2663
  return X.forEach((Q, oe) => {
2664
- const te = `${y}-${ae + oe}`;
2664
+ const te = `${h}-${ae + oe}`;
2665
2665
  S[te] = Q;
2666
2666
  }), S;
2667
2667
  });
2668
2668
  }
2669
2669
  } else if (U && l.target.files[0]) {
2670
- const y = l.target.files[0], _ = U;
2671
- A(y) ? H.error("图片大小不能超过 10MB(仅允许上传 10MB 以内图片)") : L((v) => ({ ...v, [_]: y }));
2670
+ const h = l.target.files[0], _ = U;
2671
+ A(h) ? H.error("图片大小不能超过 10MB(仅允许上传 10MB 以内图片)") : L((v) => ({ ...v, [_]: h }));
2672
2672
  }
2673
2673
  l.target && (l.target.value = ""), K(null), ue(null);
2674
2674
  }, gt = (l) => {
@@ -2687,8 +2687,8 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2687
2687
  return;
2688
2688
  }
2689
2689
  if (T) {
2690
- const y = o.closest(".tag-node"), _ = o.closest('[data-type="text"]');
2691
- if (y || _) {
2690
+ const h = o.closest(".tag-node"), _ = o.closest('[data-type="text"]');
2691
+ if (h || _) {
2692
2692
  l.preventDefault(), l.stopPropagation();
2693
2693
  const v = window.getSelection();
2694
2694
  v && v.removeAllRanges();
@@ -2698,8 +2698,8 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2698
2698
  o.closest('[data-type="variable"]') || (be.current = { x: l.clientX, y: l.clientY }, me.current = !1, o.closest(".file-remove-btn") && (l.preventDefault(), l.stopPropagation()));
2699
2699
  }, Bt = (l) => {
2700
2700
  if (!l.target.closest('[data-type="variable"]') && be.current) {
2701
- const A = Math.abs(l.clientX - be.current.x), y = Math.abs(l.clientY - be.current.y);
2702
- (A > 3 || y > 3) && (me.current = !0);
2701
+ const A = Math.abs(l.clientX - be.current.x), h = Math.abs(l.clientY - be.current.y);
2702
+ (A > 3 || h > 3) && (me.current = !0);
2703
2703
  }
2704
2704
  }, Pt = (l) => {
2705
2705
  if (l.target.closest('[data-type="variable"]')) {
@@ -2719,7 +2719,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2719
2719
  }
2720
2720
  if (t.length === 0)
2721
2721
  return;
2722
- const y = (R, F) => {
2722
+ const h = (R, F) => {
2723
2723
  if (!n.current) return;
2724
2724
  Array.from(n.current.children).forEach((S) => {
2725
2725
  if (S !== R)
@@ -2761,7 +2761,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2761
2761
  const oe = R?.closest(".rte-richtext-required");
2762
2762
  oe ? oe.classList.toggle("rte-richtext-expanded", S) : R && R.classList.toggle("rte-richtext-expanded", S);
2763
2763
  const te = R?.closest(".exclusion-wrapper") || R?.parentElement;
2764
- if (F && (S ? (F.style.height = "100%", F.style.overflow = "auto") : (F.style.height = "", F.style.overflow = "")), te && (te.classList.toggle("rte-richtext-host-expanded", S), y(te, S)), n.current)
2764
+ if (F && (S ? (F.style.height = "100%", F.style.overflow = "auto") : (F.style.height = "", F.style.overflow = "")), te && (te.classList.toggle("rte-richtext-host-expanded", S), h(te, S)), n.current)
2765
2765
  if (n.current.classList.toggle("rte-richtext-fullscreen-active", S), d.current?.classList.toggle("rte-richtext-container-expanded", S), S)
2766
2766
  ct.current = n.current.scrollTop || 0, setTimeout(() => {
2767
2767
  n.current && (n.current.scrollTop = 0, n.current.scrollLeft = 0);
@@ -2845,15 +2845,15 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2845
2845
  if (p) {
2846
2846
  const A = window.getSelection();
2847
2847
  if (A) {
2848
- const y = document.createRange(), _ = p.textContent || "";
2848
+ const h = document.createRange(), _ = p.textContent || "";
2849
2849
  if (_.replace(/\u200B/g, "")) {
2850
2850
  let g = 0, O = _.length;
2851
2851
  _.startsWith("​") && (g = 1), _.endsWith("​") && _.length > 1 && (O = _.length - 1);
2852
2852
  const b = p.firstChild;
2853
- b && b.nodeType === Node.TEXT_NODE ? (y.setStart(b, g), y.setEnd(b, O)) : y.selectNodeContents(p);
2853
+ b && b.nodeType === Node.TEXT_NODE ? (h.setStart(b, g), h.setEnd(b, O)) : h.selectNodeContents(p);
2854
2854
  } else
2855
- y.selectNodeContents(p), y.collapse(!0);
2856
- A.removeAllRanges(), A.addRange(y);
2855
+ h.selectNodeContents(p), h.collapse(!0);
2856
+ A.removeAllRanges(), A.addRange(h);
2857
2857
  }
2858
2858
  }
2859
2859
  }, vt = () => {
@@ -2873,19 +2873,19 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2873
2873
  ) : p.nodeType === Node.TEXT_NODE && p.parentElement && (A = p.parentElement.closest(
2874
2874
  '[data-type="variable"][data-node-type="report-url"]'
2875
2875
  ))), A) {
2876
- const y = A.dataset.key;
2877
- if (y) {
2876
+ const h = A.dataset.key;
2877
+ if (h) {
2878
2878
  const _ = A.innerText.replace(/[\u200B\n]/g, "").trim();
2879
2879
  if (_) {
2880
- if (!et(_).reportId || Ce.current[y] === _) return;
2881
- Ce.current[y] = _;
2882
- const g = ke.current[y];
2883
- g && window.clearTimeout(g), ke.current[y] = window.setTimeout(() => {
2884
- we.current(y, _);
2880
+ if (!et(_).reportId || Ce.current[h] === _) return;
2881
+ Ce.current[h] = _;
2882
+ const g = ke.current[h];
2883
+ g && window.clearTimeout(g), ke.current[h] = window.setTimeout(() => {
2884
+ we.current(h, _);
2885
2885
  }, 400);
2886
2886
  } else {
2887
- const v = ke.current[y];
2888
- v && window.clearTimeout(v), delete ke.current[y], Ce.current[y] = "", we.current(y, "");
2887
+ const v = ke.current[h];
2888
+ v && window.clearTimeout(v), delete ke.current[h], Ce.current[h] = "", we.current(h, "");
2889
2889
  }
2890
2890
  }
2891
2891
  }
@@ -2894,7 +2894,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2894
2894
  if (n.current && n.current.querySelectorAll('[data-type="variable"]').forEach((p) => {
2895
2895
  const A = p.querySelector(".variable-info-icon");
2896
2896
  if (A) {
2897
- let y = !1;
2897
+ let h = !1;
2898
2898
  const _ = document.createTreeWalker(
2899
2899
  p,
2900
2900
  NodeFilter.SHOW_TEXT,
@@ -2904,28 +2904,28 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2904
2904
  );
2905
2905
  for (; _.nextNode(); )
2906
2906
  if (_.currentNode.textContent?.replace(/[\u200B\n]/g, "").trim()) {
2907
- y = !0;
2907
+ h = !0;
2908
2908
  break;
2909
2909
  }
2910
- y ? A.classList.add("hidden") : A.classList.remove("hidden");
2910
+ h ? A.classList.add("hidden") : A.classList.remove("hidden");
2911
2911
  }
2912
2912
  }), rt(n, t, x), at(n, xe, x, ye), !n.current) return;
2913
2913
  t.filter((o) => o.type === "multi-variable" && o.key).forEach((o) => {
2914
2914
  if (!o.key) return;
2915
- const p = o.maxCount || 9, A = Ae[o.key] || 1, y = [];
2915
+ const p = o.maxCount || 9, A = Ae[o.key] || 1, h = [];
2916
2916
  for (let b = 0; b < A; b++) {
2917
2917
  const ae = `${o.key}_${b}`, R = n.current.querySelector(
2918
2918
  `[data-type="variable"][data-key="${ae}"][data-multi-key="${o.key}"]`
2919
2919
  );
2920
2920
  if (R) {
2921
2921
  const F = R.innerText.replace(/[\u200B\n]/g, "").trim();
2922
- y.push(F);
2922
+ h.push(F);
2923
2923
  }
2924
2924
  }
2925
- const v = (y[y.length - 1] || "") === "";
2925
+ const v = (h[h.length - 1] || "") === "";
2926
2926
  let g = !1, O = -1;
2927
- for (let b = 0; b < y.length - 1; b++)
2928
- if (y[b] === "") {
2927
+ for (let b = 0; b < h.length - 1; b++)
2928
+ if (h[b] === "") {
2929
2929
  g = !0, O = b;
2930
2930
  break;
2931
2931
  }
@@ -2943,7 +2943,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
2943
2943
  }
2944
2944
  }
2945
2945
  }
2946
- const ae = [...y];
2946
+ const ae = [...h];
2947
2947
  for (let S = O; S < ae.length - 1; S++)
2948
2948
  ae[S] = ae[S + 1];
2949
2949
  ae.pop();
@@ -3084,11 +3084,11 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3084
3084
  _.forEach((g) => {
3085
3085
  g.addEventListener("blur", v, !1), o.set(g, v);
3086
3086
  });
3087
- }, y = setTimeout(() => {
3087
+ }, h = setTimeout(() => {
3088
3088
  A();
3089
3089
  }, 0);
3090
3090
  return () => {
3091
- clearTimeout(y), l.removeEventListener("blur", p, !0), o.forEach((_, v) => {
3091
+ clearTimeout(h), l.removeEventListener("blur", p, !0), o.forEach((_, v) => {
3092
3092
  v.removeEventListener("blur", _, !1);
3093
3093
  }), o.clear();
3094
3094
  };
@@ -3108,10 +3108,10 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3108
3108
  let A = null;
3109
3109
  if (p && (p.nodeType === Node.ELEMENT_NODE ? A = p.closest('[data-type="text"]') : p.nodeType === Node.TEXT_NODE && p.parentElement && (A = p.parentElement.closest('[data-type="text"]'))), A) {
3110
3110
  if (l.preventDefault(), l.stopPropagation(), n.current) {
3111
- const y = n.current.querySelector(
3111
+ const h = n.current.querySelector(
3112
3112
  '[data-type="variable"], [data-type="upload"]'
3113
3113
  );
3114
- y && y.focus();
3114
+ h && h.focus();
3115
3115
  }
3116
3116
  return;
3117
3117
  }
@@ -3121,10 +3121,10 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3121
3121
  let A = null;
3122
3122
  if (p && (p.nodeType === Node.ELEMENT_NODE ? A = p.closest(".tag-node") : p.nodeType === Node.TEXT_NODE && p.parentElement && (A = p.parentElement.closest(".tag-node"))), A) {
3123
3123
  if (l.preventDefault(), l.stopPropagation(), n.current) {
3124
- const y = n.current.querySelector(
3124
+ const h = n.current.querySelector(
3125
3125
  '[data-type="variable"], [data-type="upload"]'
3126
3126
  );
3127
- y && y.focus();
3127
+ h && h.focus();
3128
3128
  }
3129
3129
  return;
3130
3130
  }
@@ -3139,18 +3139,18 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3139
3139
  if (l.key === "Backspace") {
3140
3140
  const p = window.getSelection();
3141
3141
  if (p && p.rangeCount > 0) {
3142
- const A = p.getRangeAt(0), y = p.anchorNode;
3142
+ const A = p.getRangeAt(0), h = p.anchorNode;
3143
3143
  if (T) {
3144
3144
  let v = null, g = null;
3145
- if (y && (y.nodeType === Node.ELEMENT_NODE ? (v = y.closest(".tag-node"), g = y.closest('[data-type="text"]')) : y.nodeType === Node.TEXT_NODE && y.parentElement && (v = y.parentElement.closest(".tag-node"), g = y.parentElement.closest('[data-type="text"]'))), (v || g) && A.collapsed && A.startOffset === 0) {
3145
+ if (h && (h.nodeType === Node.ELEMENT_NODE ? (v = h.closest(".tag-node"), g = h.closest('[data-type="text"]')) : h.nodeType === Node.TEXT_NODE && h.parentElement && (v = h.parentElement.closest(".tag-node"), g = h.parentElement.closest('[data-type="text"]'))), (v || g) && A.collapsed && A.startOffset === 0) {
3146
3146
  l.preventDefault();
3147
3147
  return;
3148
3148
  }
3149
3149
  }
3150
3150
  let _ = null;
3151
- if (y && (y.nodeType === Node.ELEMENT_NODE ? _ = y.closest(
3151
+ if (h && (h.nodeType === Node.ELEMENT_NODE ? _ = h.closest(
3152
3152
  '[data-type="variable"]'
3153
- ) : y.nodeType === Node.TEXT_NODE && y.parentElement && (_ = y.parentElement.closest(
3153
+ ) : h.nodeType === Node.TEXT_NODE && h.parentElement && (_ = h.parentElement.closest(
3154
3154
  '[data-type="variable"]'
3155
3155
  ))), _) {
3156
3156
  if (!A.collapsed)
@@ -3185,7 +3185,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3185
3185
  }
3186
3186
  const l = n.current;
3187
3187
  let o = "";
3188
- const p = {}, A = /* @__PURE__ */ new Set(), y = (v) => {
3188
+ const p = {}, A = /* @__PURE__ */ new Set(), h = (v) => {
3189
3189
  if (!(v.nodeType === Node.ELEMENT_NODE && v.style.display === "none")) {
3190
3190
  if (v.nodeType === Node.TEXT_NODE)
3191
3191
  o += (v.textContent || "").replace(/\u200B/g, "");
@@ -3254,12 +3254,12 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3254
3254
  p[b] = x[b] ?? null, x[b] && (o += ` [附带文件: ${x[b]?.name}] `);
3255
3255
  } else {
3256
3256
  if (g.classList.contains("tag-close-btn") || g.classList.contains("file-remove-btn")) return;
3257
- g.getAttribute("contenteditable") === "false" && !O && g.classList.contains("tag-node") ? o += g.innerText : g.childNodes.forEach(y);
3257
+ g.getAttribute("contenteditable") === "false" && !O && g.classList.contains("tag-node") ? o += g.innerText : g.childNodes.forEach(h);
3258
3258
  }
3259
3259
  }
3260
3260
  }
3261
3261
  };
3262
- if (l.childNodes.forEach(y), o = o.trim(), !o) return;
3262
+ if (l.childNodes.forEach(h), o = o.trim(), !o) return;
3263
3263
  const _ = new FormData();
3264
3264
  _.append("fullPrompt", o), Object.keys(p).forEach((v) => {
3265
3265
  const g = p[v];
@@ -3272,7 +3272,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3272
3272
  }) : typeof g == "string" ? _.append(v, g) : _.append(v, String(g)));
3273
3273
  }), m(_, o);
3274
3274
  }, Gt = {
3275
- ...h ? { width: typeof h == "number" ? `${h}px` : h } : {},
3275
+ ...y ? { width: typeof y == "number" ? `${y}px` : y } : {},
3276
3276
  ...w ? { border: w } : {},
3277
3277
  ...P ? { background: P } : {},
3278
3278
  ...e ? { maxHeight: typeof e == "number" ? `${e}px` : e } : {},
@@ -3413,7 +3413,7 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3413
3413
  };
3414
3414
  if (Z.type === "upload")
3415
3415
  l = t.find(
3416
- (y) => y.type === "upload" && y.key === Z.key
3416
+ (h) => h.type === "upload" && h.key === Z.key
3417
3417
  )?.tooltip || "";
3418
3418
  else if (Z.type === "tag")
3419
3419
  l = Z.anchorEl.dataset.tooltip || "";
@@ -3422,8 +3422,8 @@ const { RangePicker: zn } = Xt, Yn = ({ host: t, onChange: m }) => {
3422
3422
  else if (Z.type === "variable")
3423
3423
  l = Z.anchorEl.dataset.tooltip || "";
3424
3424
  else if (Z.type === "upload-preview") {
3425
- const A = x[Z.key], y = !!A && (A.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(A.name || ""));
3426
- if (A && y) {
3425
+ const A = x[Z.key], h = !!A && (A.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(A.name || ""));
3426
+ if (A && h) {
3427
3427
  const _ = URL.createObjectURL(A);
3428
3428
  l = /* @__PURE__ */ I("div", { className: "rte-upload-preview", children: /* @__PURE__ */ I("img", { className: "rte-upload-preview-img", src: _, alt: A.name }) }), o = {
3429
3429
  background: "#fff",
@@ -3514,7 +3514,7 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3514
3514
  batchSize: m,
3515
3515
  loadingProgress: i,
3516
3516
  loadIcon: s,
3517
- onBatchSizeChange: h,
3517
+ onBatchSizeChange: y,
3518
3518
  onLoadNextPage: T,
3519
3519
  onStartAutoLoad: D,
3520
3520
  onStopLoad: q
@@ -3571,7 +3571,7 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3571
3571
  Ue,
3572
3572
  {
3573
3573
  value: m,
3574
- onChange: h,
3574
+ onChange: y,
3575
3575
  options: Un,
3576
3576
  disabled: t,
3577
3577
  size: "small",
@@ -3587,7 +3587,7 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3587
3587
  loadIcon: m,
3588
3588
  pageSize: i,
3589
3589
  total: s,
3590
- cachedPages: h,
3590
+ cachedPages: y,
3591
3591
  loadedCount: T,
3592
3592
  autoLoading: D = !1,
3593
3593
  loadingProgress: q,
@@ -3596,10 +3596,10 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3596
3596
  onStartAutoLoad: N,
3597
3597
  onStopLoading: w
3598
3598
  }) => {
3599
- const [P, k] = se(5), e = Math.ceil(s / i), r = ot(() => h.length >= e, [h, e]), a = () => Array.from(
3599
+ const [P, k] = se(5), e = Math.ceil(s / i), r = ot(() => y.length >= e, [y, e]), a = () => Array.from(
3600
3600
  { length: e },
3601
3601
  (M, E) => E + 1
3602
- ).filter((M) => !h.includes(M)).slice(0, P);
3602
+ ).filter((M) => !y.includes(M)).slice(0, P);
3603
3603
  return /* @__PURE__ */ ie("div", { className: "pagination_footer", children: [
3604
3604
  /* @__PURE__ */ ie("div", { className: "pagination_leftWrap", children: [
3605
3605
  /* @__PURE__ */ ie("span", { className: "pagination_total", children: [
@@ -3644,18 +3644,18 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3644
3644
  showQuickJumper: !1,
3645
3645
  showTotal: (c, M) => "",
3646
3646
  itemRender: (c, M, E) => {
3647
- const Y = h.includes(c);
3647
+ const j = y.includes(c);
3648
3648
  return M === "prev" || M === "next" || M === "jump-prev" || M === "jump-next" ? /* @__PURE__ */ I("div", { className: "pageBox", children: E }) : /* @__PURE__ */ ie(
3649
3649
  "div",
3650
3650
  {
3651
3651
  className: "pageBox",
3652
3652
  style: {
3653
3653
  backgroundColor: t === c ? "#2563EB" : "#f5f5f5",
3654
- color: t === c ? "#fff" : Y ? "#171717" : "#a3a3a3"
3654
+ color: t === c ? "#fff" : j ? "#171717" : "#a3a3a3"
3655
3655
  },
3656
3656
  children: [
3657
3657
  c,
3658
- !Y && /* @__PURE__ */ I("span", { className: "unload_spot" })
3658
+ !j && /* @__PURE__ */ I("span", { className: "unload_spot" })
3659
3659
  ]
3660
3660
  }
3661
3661
  );
@@ -3668,7 +3668,7 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3668
3668
  loading: m,
3669
3669
  autoLoading: i,
3670
3670
  loadingProgress: s,
3671
- columns: h = [],
3671
+ columns: y = [],
3672
3672
  dataSource: T = [],
3673
3673
  total: D,
3674
3674
  current: q,
@@ -3693,7 +3693,7 @@ const Ct = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
3693
3693
  {
3694
3694
  ref: r,
3695
3695
  ...e,
3696
- columns: h,
3696
+ columns: y,
3697
3697
  dataSource: T,
3698
3698
  pagination: !1,
3699
3699
  virtual: !0
@@ -3830,15 +3830,15 @@ const Qn = ({
3830
3830
  placeholder: m = "请输入内容",
3831
3831
  animationSpeed: i = 100,
3832
3832
  autoPlay: s = !0,
3833
- value: h,
3833
+ value: y,
3834
3834
  onChange: T,
3835
3835
  ...D
3836
3836
  }) => {
3837
- const [q, $] = se(""), [C, N] = se(0), [w, P] = se(!1), [k, e] = se(!1), [r, a] = se(!1), u = ne(void 0), c = ne(void 0), M = ne(t), E = ne(C), Y = ne(k), W = ne(q);
3837
+ const [q, $] = se(""), [C, N] = se(0), [w, P] = se(!1), [k, e] = se(!1), [r, a] = se(!1), u = ne(void 0), c = ne(void 0), M = ne(t), E = ne(C), j = ne(k), W = ne(q);
3838
3838
  fe(() => {
3839
- M.current = t, E.current = C, Y.current = k, W.current = q;
3839
+ M.current = t, E.current = C, j.current = k, W.current = q;
3840
3840
  });
3841
- const j = ce((d, n) => {
3841
+ const Y = ce((d, n) => {
3842
3842
  let f = 0;
3843
3843
  a(!0);
3844
3844
  const x = () => {
@@ -3852,21 +3852,21 @@ const Qn = ({
3852
3852
  };
3853
3853
  f();
3854
3854
  }, [i]), V = ce(() => {
3855
- if (M.current.length === 0 || Y.current) return;
3855
+ if (M.current.length === 0 || j.current) return;
3856
3856
  P(!0);
3857
3857
  const d = M.current[E.current];
3858
3858
  W.current ? z(() => {
3859
- j(d, () => {
3859
+ Y(d, () => {
3860
3860
  u.current = window.setTimeout(() => {
3861
3861
  N((n) => (n + 1) % M.current.length), P(!1);
3862
3862
  }, 2e3);
3863
3863
  });
3864
- }) : j(d, () => {
3864
+ }) : Y(d, () => {
3865
3865
  u.current = window.setTimeout(() => {
3866
3866
  N((n) => (n + 1) % M.current.length), P(!1);
3867
3867
  }, 2e3);
3868
3868
  });
3869
- }, [z, j]);
3869
+ }, [z, Y]);
3870
3870
  return fe(() => (s && t.length > 0 && !k && V(), () => {
3871
3871
  u.current && window.clearTimeout(u.current), c.current && window.clearTimeout(c.current);
3872
3872
  }), [C, k, s, t.length, V]), fe(() => {
@@ -3876,7 +3876,7 @@ const Qn = ({
3876
3876
  St,
3877
3877
  {
3878
3878
  ...D,
3879
- value: h,
3879
+ value: y,
3880
3880
  onChange: (d) => {
3881
3881
  T?.(d.target.value), D.onChange?.(d);
3882
3882
  },
@@ -3884,9 +3884,9 @@ const Qn = ({
3884
3884
  e(!0), u.current && window.clearTimeout(u.current), c.current && window.clearTimeout(c.current), P(!1), a(!1), D.onFocus?.(d);
3885
3885
  },
3886
3886
  onBlur: (d) => {
3887
- e(!1), !h && t.length > 0 && ($(""), N(0)), D.onBlur?.(d);
3887
+ e(!1), !y && t.length > 0 && ($(""), N(0)), D.onBlur?.(d);
3888
3888
  },
3889
- placeholder: k || h ? m : q || m,
3889
+ placeholder: k || y ? m : q || m,
3890
3890
  style: {
3891
3891
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3892
3892
  ...D.style,
@@ -3895,7 +3895,7 @@ const Qn = ({
3895
3895
  }
3896
3896
  }
3897
3897
  ),
3898
- !k && !h && q && /* @__PURE__ */ ie(
3898
+ !k && !y && q && /* @__PURE__ */ ie(
3899
3899
  "div",
3900
3900
  {
3901
3901
  style: {
@@ -3994,7 +3994,7 @@ const Zn = ({
3994
3994
  // 打字机动画速度,毫秒
3995
3995
  autoPlay: s = !0,
3996
3996
  // 是否自动播放动画
3997
- value: h = "",
3997
+ value: y = "",
3998
3998
  // 受控模式的值
3999
3999
  onChange: T,
4000
4000
  // 受控模式的变化回调
@@ -4015,15 +4015,15 @@ const Zn = ({
4015
4015
  ...k
4016
4016
  // 其他原生属性
4017
4017
  }) => {
4018
- const [e, r] = se(""), [a, u] = se(0), [c, M] = se(!1), [E, Y] = se(!1), [W, j] = se(!1), [z, V] = se(h || ""), G = ne(void 0), B = ne(void 0), H = ne(t), J = ne(a), d = ne(E), n = ne(e), f = ne(null);
4018
+ const [e, r] = se(""), [a, u] = se(0), [c, M] = se(!1), [E, j] = se(!1), [W, Y] = se(!1), [z, V] = se(y || ""), G = ne(void 0), B = ne(void 0), H = ne(t), J = ne(a), d = ne(E), n = ne(e), f = ne(null);
4019
4019
  fe(() => {
4020
4020
  H.current = t, J.current = a, d.current = E, n.current = e;
4021
4021
  });
4022
4022
  const x = ce((re, ye) => {
4023
4023
  let ge = 0;
4024
- j(!0);
4024
+ Y(!0);
4025
4025
  const he = () => {
4026
- ge < re.length ? (r(re.slice(0, ge + 1)), ge++, B.current = window.setTimeout(he, i)) : (j(!1), ye?.());
4026
+ ge < re.length ? (r(re.slice(0, ge + 1)), ge++, B.current = window.setTimeout(he, i)) : (Y(!1), ye?.());
4027
4027
  };
4028
4028
  he();
4029
4029
  }, [i]), L = ce((re) => {
@@ -4054,25 +4054,25 @@ const Zn = ({
4054
4054
  !c && s && t.length > 0 && !E && U();
4055
4055
  }, [a, c, s, t.length, E, U]);
4056
4056
  const K = (re) => {
4057
- Y(!0), G.current && window.clearTimeout(G.current), B.current && window.clearTimeout(B.current), M(!1), j(!1), k.onFocus?.(re);
4057
+ j(!0), G.current && window.clearTimeout(G.current), B.current && window.clearTimeout(B.current), M(!1), Y(!1), k.onFocus?.(re);
4058
4058
  }, ee = (re) => {
4059
- Y(!1), !h && t.length > 0 && (r(""), u(0)), k.onBlur?.(re);
4059
+ j(!1), !y && t.length > 0 && (r(""), u(0)), k.onBlur?.(re);
4060
4060
  }, ue = (re) => {
4061
4061
  const ye = re.target.value;
4062
4062
  q && ye.length > q || (T ? T(ye) : V(ye), k.onChange?.(re));
4063
4063
  }, Z = () => {
4064
- const re = T ? h : z;
4064
+ const re = T ? y : z;
4065
4065
  re.trim() && !N && (D?.(re), T || V(""));
4066
4066
  }, de = (re) => {
4067
4067
  (re.ctrlKey || re.metaKey) && re.key === "Enter" && (re.preventDefault(), Z()), k.onKeyDown?.(re);
4068
- }, me = T ? h : z, be = N || !me.trim() || (q ? me.length > q : !1);
4068
+ }, me = T ? y : z, be = N || !me.trim() || (q ? me.length > q : !1);
4069
4069
  return /* @__PURE__ */ ie("div", { style: { position: "relative", ...P }, children: [
4070
4070
  /* @__PURE__ */ ie("div", { style: { position: "relative" }, children: [
4071
4071
  /* @__PURE__ */ I(
4072
4072
  "textarea",
4073
4073
  {
4074
4074
  ref: f,
4075
- value: T ? h : z,
4075
+ value: T ? y : z,
4076
4076
  onChange: ue,
4077
4077
  onFocus: (re) => {
4078
4078
  re.target.style.borderColor = "#1890ff", re.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", K(re);
@@ -4290,7 +4290,7 @@ const Nt = ({
4290
4290
  poster: m,
4291
4291
  width: i = 300,
4292
4292
  height: s,
4293
- videoWidth: h,
4293
+ videoWidth: y,
4294
4294
  // 参数保留但不使用,由CSS控制
4295
4295
  videoHeight: T,
4296
4296
  // 参数保留但不使用,由CSS控制
@@ -4305,15 +4305,15 @@ const Nt = ({
4305
4305
  style: e,
4306
4306
  ...r
4307
4307
  }) => {
4308
- const a = ne(null), [u, c] = se(!1), [M, E] = se(!1), [Y, W] = se(!1), j = ce(() => {
4308
+ const a = ne(null), [u, c] = se(!1), [M, E] = se(!1), [j, W] = se(!1), Y = ce(() => {
4309
4309
  a.current && (a.current.play(), c(!0), N?.());
4310
4310
  }, [N]), z = ce(() => {
4311
4311
  a.current && (a.current.pause(), c(!1), w?.());
4312
4312
  }, [w]), V = ce((x) => {
4313
- x.stopPropagation(), u ? z() : j();
4314
- }, [u, j, z]), G = ce(() => {
4315
- E(!0), q && !u && j();
4316
- }, [q, u, j]), B = ce(() => {
4313
+ x.stopPropagation(), u ? z() : Y();
4314
+ }, [u, Y, z]), G = ce(() => {
4315
+ E(!0), q && !u && Y();
4316
+ }, [q, u, Y]), B = ce(() => {
4317
4317
  E(!1), q && u && z();
4318
4318
  }, [q, u, z]), H = ce(() => {
4319
4319
  W(!0), C?.();
@@ -4369,7 +4369,7 @@ const Nt = ({
4369
4369
  children: u ? /* @__PURE__ */ I(un, { className: "play-icon" }) : /* @__PURE__ */ I(dn, { className: "play-icon" })
4370
4370
  }
4371
4371
  ),
4372
- !Y && /* @__PURE__ */ I("div", { className: "video-loading-mask", children: /* @__PURE__ */ I("div", { className: "loading-spinner" }) })
4372
+ !j && /* @__PURE__ */ I("div", { className: "video-loading-mask", children: /* @__PURE__ */ I("div", { className: "loading-spinner" }) })
4373
4373
  ] })
4374
4374
  }
4375
4375
  );
@@ -4480,7 +4480,7 @@ const er = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4480
4480
  columns: m,
4481
4481
  gap: i = 0,
4482
4482
  responsive: s = !0,
4483
- breakpoints: h = {
4483
+ breakpoints: y = {
4484
4484
  xs: 1,
4485
4485
  sm: 2,
4486
4486
  md: 3,
@@ -4492,22 +4492,22 @@ const er = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4492
4492
  style: D,
4493
4493
  onClick: q
4494
4494
  }) => {
4495
- const $ = ne(null), [C, N] = se(m || h.md || 3), w = ne(/* @__PURE__ */ new Map()), P = ce(() => {
4495
+ const $ = ne(null), [C, N] = se(m || y.md || 3), w = ne(/* @__PURE__ */ new Map()), P = ce(() => {
4496
4496
  if (!s || m)
4497
- return m || h.md || 3;
4497
+ return m || y.md || 3;
4498
4498
  const a = window.innerWidth;
4499
- return a < 576 ? h.xs || 1 : a < 768 ? h.sm || 2 : a < 992 ? h.md || 3 : a < 1200 ? h.lg || 4 : a < 1600 ? h.xl || 5 : h.xxl || 6;
4500
- }, [s, m, h]), k = ce(() => {
4499
+ return a < 576 ? y.xs || 1 : a < 768 ? y.sm || 2 : a < 992 ? y.md || 3 : a < 1200 ? y.lg || 4 : a < 1600 ? y.xl || 5 : y.xxl || 6;
4500
+ }, [s, m, y]), k = ce(() => {
4501
4501
  if (!$.current) return;
4502
4502
  const a = C, u = $.current, M = (u.offsetWidth - i * (a - 1)) / a, E = new Array(a).fill(0);
4503
- t.forEach((W, j) => {
4504
- const z = W.id || j, V = w.current.get(z);
4503
+ t.forEach((W, Y) => {
4504
+ const z = W.id || Y, V = w.current.get(z);
4505
4505
  if (!V) return;
4506
4506
  const G = Math.min(...E), B = E.indexOf(G), H = B * (M + i), J = E[B];
4507
4507
  V.style.position = "absolute", V.style.left = `${H}px`, V.style.top = `${J}px`, V.style.width = `${M}px`, E[B] += V.offsetHeight + i;
4508
4508
  });
4509
- const Y = Math.max(...E);
4510
- u.style.height = `${Y}px`;
4509
+ const j = Math.max(...E);
4510
+ u.style.height = `${j}px`;
4511
4511
  }, [t, C, i]);
4512
4512
  fe(() => {
4513
4513
  const a = () => {