bi-components-library 1.2.94 → 1.2.95
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 +758 -758
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -554,11 +554,11 @@ const { Option: cd } = nl, dd = ({
|
|
|
554
554
|
externalParams: s = {},
|
|
555
555
|
...o
|
|
556
556
|
}) => {
|
|
557
|
-
const [c, d] = re([]), [h, f] = re(!1), [E,
|
|
557
|
+
const [c, d] = re([]), [h, f] = re(!1), [E, v] = re({
|
|
558
558
|
current: 1,
|
|
559
559
|
pageSize: r,
|
|
560
560
|
total: 0
|
|
561
|
-
}), [m, y] = re({}), [
|
|
561
|
+
}), [m, y] = re({}), [g, b] = re({}), [A] = gl.useForm(), T = Z(E);
|
|
562
562
|
T.current = E;
|
|
563
563
|
const C = Z(s);
|
|
564
564
|
C.current = s;
|
|
@@ -576,12 +576,12 @@ const { Option: cd } = nl, dd = ({
|
|
|
576
576
|
const x = {
|
|
577
577
|
page: T.current.current,
|
|
578
578
|
pageSize: T.current.pageSize,
|
|
579
|
-
sortField:
|
|
580
|
-
sortOrder:
|
|
579
|
+
sortField: g.field,
|
|
580
|
+
sortOrder: g.order,
|
|
581
581
|
searchParams: { ...m, ...C.current },
|
|
582
582
|
...I
|
|
583
583
|
}, L = await t(x);
|
|
584
|
-
L.success && (d(L.data),
|
|
584
|
+
L.success && (d(L.data), v(($) => ({
|
|
585
585
|
...$,
|
|
586
586
|
total: L.total,
|
|
587
587
|
current: x.page || $.current
|
|
@@ -592,10 +592,10 @@ const { Option: cd } = nl, dd = ({
|
|
|
592
592
|
f(!1);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
}, [t,
|
|
596
|
-
y(I),
|
|
595
|
+
}, [t, g, m]), O = ue((I) => {
|
|
596
|
+
y(I), v((x) => ({ ...x, current: 1 }));
|
|
597
597
|
}, []), D = ue(() => {
|
|
598
|
-
A.resetFields(), y({}),
|
|
598
|
+
A.resetFields(), y({}), v((I) => ({ ...I, current: 1 }));
|
|
599
599
|
}, [A]), F = ue(() => {
|
|
600
600
|
w();
|
|
601
601
|
}, [w]), M = ue((I, x, L) => {
|
|
@@ -607,7 +607,7 @@ const { Option: cd } = nl, dd = ({
|
|
|
607
607
|
field: L?.field,
|
|
608
608
|
order: L?.order
|
|
609
609
|
};
|
|
610
|
-
|
|
610
|
+
v($), b(R);
|
|
611
611
|
}, [r]);
|
|
612
612
|
return ne(() => {
|
|
613
613
|
const I = Object.keys(s).length > 0;
|
|
@@ -750,10 +750,10 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
750
750
|
return m ? typeof m.label == "string" ? m.label : String(m.label ?? s) : String(s);
|
|
751
751
|
}
|
|
752
752
|
return l || "请选择";
|
|
753
|
-
}, [s, u, l]),
|
|
753
|
+
}, [s, u, l]), v = Le.useCallback(() => {
|
|
754
754
|
const m = h.current;
|
|
755
755
|
if (!m) return;
|
|
756
|
-
const y = m.querySelector(".ant-select-selection-item"),
|
|
756
|
+
const y = m.querySelector(".ant-select-selection-item"), g = m.querySelector(".ant-select-selection-placeholder"), b = y || g, A = (b?.textContent || "").trim() || E(), T = m.querySelector(".ant-select-selector"), C = b || T || m, _ = window.getComputedStyle(C), k = b ? _.fontSize : "16px", w = _.fontFamily || "sans-serif", O = _.fontWeight || "400", F = `${_.fontStyle || "normal"} ${O} ${k} ${w}`, I = document.createElement("canvas").getContext("2d"), x = I ? Math.ceil((I.font = F, I.measureText(A).width || 0)) : 0;
|
|
757
757
|
let L = 0;
|
|
758
758
|
if (T) {
|
|
759
759
|
const z = window.getComputedStyle(T);
|
|
@@ -770,24 +770,24 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
770
770
|
}, [E]);
|
|
771
771
|
return Ye(() => {
|
|
772
772
|
const m = window.requestAnimationFrame(() => {
|
|
773
|
-
|
|
773
|
+
v();
|
|
774
774
|
}), y = window.setTimeout(() => {
|
|
775
|
-
|
|
775
|
+
v();
|
|
776
776
|
}, 60);
|
|
777
777
|
return () => {
|
|
778
778
|
window.cancelAnimationFrame(m), window.clearTimeout(y);
|
|
779
779
|
};
|
|
780
|
-
}, [
|
|
780
|
+
}, [v]), ne(() => {
|
|
781
781
|
if (!("fonts" in document)) return;
|
|
782
782
|
let m = !1;
|
|
783
783
|
const y = document.fonts;
|
|
784
784
|
if (y?.ready)
|
|
785
785
|
return y.ready.then(() => {
|
|
786
|
-
m ||
|
|
786
|
+
m || v();
|
|
787
787
|
}), () => {
|
|
788
788
|
m = !0;
|
|
789
789
|
};
|
|
790
|
-
}, [
|
|
790
|
+
}, [v]), Lt(
|
|
791
791
|
/* @__PURE__ */ G(
|
|
792
792
|
"div",
|
|
793
793
|
{
|
|
@@ -873,10 +873,10 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
873
873
|
} catch {
|
|
874
874
|
return [];
|
|
875
875
|
}
|
|
876
|
-
}, [n]), [s, o] = re(i || void 0), [c, d] = re(""), [h, f] = re(null), [E,
|
|
876
|
+
}, [n]), [s, o] = re(i || void 0), [c, d] = re(""), [h, f] = re(null), [E, v] = re(64), m = Z(null), y = It(() => {
|
|
877
877
|
const w = [...u];
|
|
878
878
|
return h && !u.some((O) => O.value === h) && w.unshift({ label: h, value: h }), w;
|
|
879
|
-
}, [u, h]),
|
|
879
|
+
}, [u, h]), g = It(() => {
|
|
880
880
|
const w = c.trim();
|
|
881
881
|
if (!w) return y;
|
|
882
882
|
const O = w.toLowerCase(), D = y.filter(
|
|
@@ -926,7 +926,7 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
926
926
|
xe.display !== "none" && xe.visibility !== "hidden" && (de = Math.ceil(te.getBoundingClientRect().width));
|
|
927
927
|
}
|
|
928
928
|
const be = Math.min(240, Math.max(80, q + V + j + de + 4));
|
|
929
|
-
|
|
929
|
+
v((xe) => xe === be ? xe : be);
|
|
930
930
|
}, [_]);
|
|
931
931
|
return Ye(() => {
|
|
932
932
|
const w = window.requestAnimationFrame(() => {
|
|
@@ -968,7 +968,7 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
968
968
|
filterOption: !1,
|
|
969
969
|
placeholder: l || "搜索或输入",
|
|
970
970
|
style: { width: "100%" },
|
|
971
|
-
options:
|
|
971
|
+
options: g,
|
|
972
972
|
allowClear: !r,
|
|
973
973
|
size: "small",
|
|
974
974
|
popupClassName: "rte-searchable-select-dropdown",
|
|
@@ -1040,11 +1040,11 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
1040
1040
|
} catch {
|
|
1041
1041
|
return [];
|
|
1042
1042
|
}
|
|
1043
|
-
}, [n]), u = Le.useCallback((C) => C ? C.split("-") : [], []), [s, o] = re(() => u(r)), [c, d] = re(100), [h, f] = re(0), E = Z(u(r)),
|
|
1043
|
+
}, [n]), u = Le.useCallback((C) => C ? C.split("-") : [], []), [s, o] = re(() => u(r)), [c, d] = re(100), [h, f] = re(0), E = Z(u(r)), v = Z(null), m = s.length >= 2, y = (C) => {
|
|
1044
1044
|
o(C), E.current = C;
|
|
1045
1045
|
const _ = C.join("-");
|
|
1046
1046
|
e.setAttribute("data-value", _), t(a, _);
|
|
1047
|
-
},
|
|
1047
|
+
}, g = (C) => {
|
|
1048
1048
|
if (!C || C.length === 0) {
|
|
1049
1049
|
y([]);
|
|
1050
1050
|
return;
|
|
@@ -1057,7 +1057,7 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
1057
1057
|
o(u(r));
|
|
1058
1058
|
}, [r, u]);
|
|
1059
1059
|
const A = Le.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), T = Le.useCallback(() => {
|
|
1060
|
-
const C =
|
|
1060
|
+
const C = v.current;
|
|
1061
1061
|
if (!C) return;
|
|
1062
1062
|
const _ = A(), k = C.querySelector(".ant-select-selector"), w = C.querySelector(".ant-select-selection-item") || C.querySelector(".ant-select-selection-placeholder"), O = w || k || C, D = window.getComputedStyle(O), F = w ? D.fontSize : "16px", M = D.fontFamily || "sans-serif", I = D.fontWeight || "400", L = `${D.fontStyle || "normal"} ${I} ${F} ${M}`, R = document.createElement("canvas").getContext("2d"), H = R ? Math.ceil((R.font = L, R.measureText(_).width || 0)) : 0;
|
|
1063
1063
|
let N = 0;
|
|
@@ -1093,14 +1093,14 @@ const Ke = (e) => e === "multi-variable" || e === "multi-variable-select", fd =
|
|
|
1093
1093
|
{
|
|
1094
1094
|
className: "rte-cascader-wrapper",
|
|
1095
1095
|
contentEditable: !1,
|
|
1096
|
-
ref:
|
|
1096
|
+
ref: v,
|
|
1097
1097
|
"data-has-value": m ? "true" : "false",
|
|
1098
1098
|
style: { display: "inline-block", width: c },
|
|
1099
1099
|
children: /* @__PURE__ */ G(
|
|
1100
1100
|
Mc,
|
|
1101
1101
|
{
|
|
1102
1102
|
value: m ? s : void 0,
|
|
1103
|
-
onChange:
|
|
1103
|
+
onChange: g,
|
|
1104
1104
|
onDropdownVisibleChange: b,
|
|
1105
1105
|
options: i,
|
|
1106
1106
|
placeholder: l || "请选择省市区",
|
|
@@ -1210,7 +1210,7 @@ const Td = ({ host: e, onChange: t }) => {
|
|
|
1210
1210
|
const a = e.dataset.key || "", l = e.dataset.placeholder || "", n = e.dataset.tooltip || "", r = e.dataset.allowNewline !== "0", i = It(() => gd(e.dataset.value || ""), [e]), [u, s] = re(i), o = Z(i), c = It(() => {
|
|
1211
1211
|
const T = Number.parseFloat(e.dataset.estimatedWidth || "");
|
|
1212
1212
|
return Number.isFinite(T) && T > 0 ? T : 64;
|
|
1213
|
-
}, [e]), [d, h] = re(c), f = Z(null), E = (u || "").trim().length > 0,
|
|
1213
|
+
}, [e]), [d, h] = re(c), f = Z(null), E = (u || "").trim().length > 0, v = !!n && !E, [m, y] = re(!1);
|
|
1214
1214
|
ne(() => {
|
|
1215
1215
|
s(i), o.current = i;
|
|
1216
1216
|
}, [i]), ne(() => {
|
|
@@ -1218,7 +1218,7 @@ const Td = ({ host: e, onChange: t }) => {
|
|
|
1218
1218
|
}, [u]), ne(() => {
|
|
1219
1219
|
e.classList.toggle("rte-variable-multiline", m);
|
|
1220
1220
|
}, [e, m]);
|
|
1221
|
-
const
|
|
1221
|
+
const g = Le.useCallback(() => {
|
|
1222
1222
|
const T = f.current;
|
|
1223
1223
|
if (!T) return;
|
|
1224
1224
|
const C = T.querySelector("textarea");
|
|
@@ -1243,33 +1243,33 @@ const Td = ({ host: e, onChange: t }) => {
|
|
|
1243
1243
|
};
|
|
1244
1244
|
}, [a, t]), Ye(() => {
|
|
1245
1245
|
const T = window.requestAnimationFrame(() => {
|
|
1246
|
-
|
|
1246
|
+
g();
|
|
1247
1247
|
});
|
|
1248
1248
|
return () => {
|
|
1249
1249
|
window.cancelAnimationFrame(T);
|
|
1250
1250
|
};
|
|
1251
|
-
}, [
|
|
1251
|
+
}, [g]), ne(() => {
|
|
1252
1252
|
if (typeof ResizeObserver > "u") return;
|
|
1253
1253
|
const T = e.closest(".rte-editor");
|
|
1254
1254
|
if (!T) return;
|
|
1255
1255
|
let C = 0;
|
|
1256
1256
|
const _ = new ResizeObserver(() => {
|
|
1257
|
-
C && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(() =>
|
|
1257
|
+
C && window.cancelAnimationFrame(C), C = window.requestAnimationFrame(() => g());
|
|
1258
1258
|
});
|
|
1259
1259
|
return _.observe(T), () => {
|
|
1260
1260
|
C && window.cancelAnimationFrame(C), _.disconnect();
|
|
1261
1261
|
};
|
|
1262
|
-
}, [e,
|
|
1262
|
+
}, [e, g]), ne(() => {
|
|
1263
1263
|
if (!("fonts" in document)) return;
|
|
1264
1264
|
let T = !1;
|
|
1265
1265
|
const C = document.fonts;
|
|
1266
1266
|
if (C?.ready)
|
|
1267
1267
|
return C.ready.then(() => {
|
|
1268
|
-
T ||
|
|
1268
|
+
T || g();
|
|
1269
1269
|
}), () => {
|
|
1270
1270
|
T = !0;
|
|
1271
1271
|
};
|
|
1272
|
-
}, [
|
|
1272
|
+
}, [g]);
|
|
1273
1273
|
const b = (T) => {
|
|
1274
1274
|
const C = T.target.value ?? "";
|
|
1275
1275
|
s(C), e.setAttribute("data-value", Ed(C)), t(a, C);
|
|
@@ -1280,7 +1280,7 @@ const Td = ({ host: e, onChange: t }) => {
|
|
|
1280
1280
|
/* @__PURE__ */ pe(
|
|
1281
1281
|
"div",
|
|
1282
1282
|
{
|
|
1283
|
-
className: `rte-variable-v2-wrapper ${
|
|
1283
|
+
className: `rte-variable-v2-wrapper ${v ? "rte-variable-v2-with-icon" : ""}`,
|
|
1284
1284
|
contentEditable: !1,
|
|
1285
1285
|
ref: f,
|
|
1286
1286
|
"data-placeholder": l,
|
|
@@ -1303,7 +1303,7 @@ const Td = ({ host: e, onChange: t }) => {
|
|
|
1303
1303
|
{
|
|
1304
1304
|
contentEditable: !1,
|
|
1305
1305
|
style: { fontWeight: 100 },
|
|
1306
|
-
className: `iconfont icon-tishi variable-info-icon ${
|
|
1306
|
+
className: `iconfont icon-tishi variable-info-icon ${v ? "" : "hidden"}`,
|
|
1307
1307
|
"data-variable-key": a,
|
|
1308
1308
|
"data-tooltip": n
|
|
1309
1309
|
}
|
|
@@ -1381,12 +1381,12 @@ function wd(e, t) {
|
|
|
1381
1381
|
`);
|
|
1382
1382
|
let d = 0;
|
|
1383
1383
|
for (const E of c) {
|
|
1384
|
-
const
|
|
1385
|
-
d = Math.max(d,
|
|
1384
|
+
const v = l.measureText(E || " ").width || 0;
|
|
1385
|
+
d = Math.max(d, v);
|
|
1386
1386
|
}
|
|
1387
1387
|
const h = Number.parseFloat(n.letterSpacing || ""), f = Number.isFinite(h) ? h : 0;
|
|
1388
1388
|
if (f > 0) {
|
|
1389
|
-
const E = c.reduce((
|
|
1389
|
+
const E = c.reduce((v, m) => v.length >= m.length ? v : m, "");
|
|
1390
1390
|
d += f * Math.max(0, E.length - 1);
|
|
1391
1391
|
}
|
|
1392
1392
|
return Math.ceil(d);
|
|
@@ -1402,8 +1402,8 @@ function pa(e, t) {
|
|
|
1402
1402
|
}), n.replace(/\u200B/g, "").trim().length === 0) {
|
|
1403
1403
|
const f = l.querySelector(".variable-info-icon, .rte-tutorial-btn"), E = typeof window < "u" ? window.getSelection() : null;
|
|
1404
1404
|
if (!!(E && (E.anchorNode && l.contains(E.anchorNode) || E.focusNode && l.contains(E.focusNode))) && !0)
|
|
1405
|
-
Array.from(l.childNodes).forEach((
|
|
1406
|
-
|
|
1405
|
+
Array.from(l.childNodes).forEach((g) => {
|
|
1406
|
+
g.nodeType === Node.ELEMENT_NODE && g.tagName === "BR" && l.removeChild(g);
|
|
1407
1407
|
});
|
|
1408
1408
|
else {
|
|
1409
1409
|
Array.from(l.childNodes).forEach((b) => {
|
|
@@ -1413,8 +1413,8 @@ function pa(e, t) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
b.nodeType === Node.ELEMENT_NODE && b.tagName === "BR" && l.removeChild(b);
|
|
1415
1415
|
});
|
|
1416
|
-
const
|
|
1417
|
-
f && f.parentNode === l ? l.insertBefore(
|
|
1416
|
+
const g = document.createTextNode("");
|
|
1417
|
+
f && f.parentNode === l ? l.insertBefore(g, f) : l.firstChild ? l.insertBefore(g, l.firstChild) : l.appendChild(g);
|
|
1418
1418
|
}
|
|
1419
1419
|
l.classList.add("show-placeholder");
|
|
1420
1420
|
const y = l.dataset.placeholder || "";
|
|
@@ -1500,7 +1500,7 @@ function Sd(e, t = []) {
|
|
|
1500
1500
|
Ye(() => {
|
|
1501
1501
|
if (!e.current) return;
|
|
1502
1502
|
const a = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), n = (d) => {
|
|
1503
|
-
const h = d.value || d.placeholder || "", f = window.getComputedStyle(d), E = Number.parseFloat(f.paddingLeft) || 0,
|
|
1503
|
+
const h = d.value || d.placeholder || "", f = window.getComputedStyle(d), E = Number.parseFloat(f.paddingLeft) || 0, v = Number.parseFloat(f.paddingRight) || 0, m = document.createElement("span");
|
|
1504
1504
|
m.style.cssText = `
|
|
1505
1505
|
position: absolute;
|
|
1506
1506
|
visibility: hidden;
|
|
@@ -1510,10 +1510,10 @@ function Sd(e, t = []) {
|
|
|
1510
1510
|
font-weight: ${f.fontWeight || "inherit"};
|
|
1511
1511
|
letter-spacing: ${f.letterSpacing || "normal"};
|
|
1512
1512
|
padding-left: ${E}px;
|
|
1513
|
-
padding-right: ${
|
|
1513
|
+
padding-right: ${v}px;
|
|
1514
1514
|
`, m.textContent = h || "0", document.body.appendChild(m);
|
|
1515
|
-
const
|
|
1516
|
-
return document.body.removeChild(m),
|
|
1515
|
+
const g = Math.max(24, Math.min(600, Math.ceil(m.offsetWidth) + 2));
|
|
1516
|
+
return document.body.removeChild(m), g;
|
|
1517
1517
|
}, r = (d) => {
|
|
1518
1518
|
const h = d.target;
|
|
1519
1519
|
if (!h) return;
|
|
@@ -1521,13 +1521,13 @@ function Sd(e, t = []) {
|
|
|
1521
1521
|
f = f.replace(/[^\d.]/g, "");
|
|
1522
1522
|
const E = f.indexOf(".");
|
|
1523
1523
|
E !== -1 && (f = f.slice(0, E + 1) + f.slice(E + 1).replace(/\./g, "")), E !== -1 && f.length - E - 1 > 2 && (f = f.slice(0, E + 3));
|
|
1524
|
-
const
|
|
1525
|
-
if (f !== "" && !
|
|
1524
|
+
const v = f.endsWith(".") || E !== -1 && f.length - E - 1 < 2 && f.length - E - 1 > 0;
|
|
1525
|
+
if (f !== "" && !v) {
|
|
1526
1526
|
const y = parseFloat(f);
|
|
1527
1527
|
if (Number.isNaN(y))
|
|
1528
1528
|
h.value = "";
|
|
1529
1529
|
else {
|
|
1530
|
-
const
|
|
1530
|
+
const g = h.getAttribute("min"), b = h.getAttribute("max"), A = g !== null ? parseFloat(g) : 0, T = b !== null ? parseFloat(b) : 1 / 0;
|
|
1531
1531
|
if (y === 0 && 0 < A)
|
|
1532
1532
|
h.value = "";
|
|
1533
1533
|
else {
|
|
@@ -1547,8 +1547,8 @@ function Sd(e, t = []) {
|
|
|
1547
1547
|
e.current.querySelectorAll('[data-type="number-input"]').forEach((h) => {
|
|
1548
1548
|
const f = h.closest(".rte-number-input-wrap");
|
|
1549
1549
|
f && (f.dataset.hasValue = h.value ? "1" : "0", f.dataset.placeholder === void 0 && (f.dataset.placeholder = h.placeholder || ""));
|
|
1550
|
-
const E = document.activeElement === h,
|
|
1551
|
-
h.dataset.rteWidthInited === "1" ? !E && (!y ||
|
|
1550
|
+
const E = document.activeElement === h, v = n(h), m = Number.parseFloat(h.style.width || ""), y = Number.isFinite(m), g = y ? Math.abs(m - v) : 1 / 0;
|
|
1551
|
+
h.dataset.rteWidthInited === "1" ? !E && (!y || g > 8) && (h.style.width = `${v}px`) : (h.dataset.rteWidthInited = "1", !E && (!y || g > 2) && (h.style.width = `${v}px`)), a.has(h) || (h.addEventListener("input", r, !1), h.addEventListener("keydown", i, !1), a.set(h, r), l.set(h, i));
|
|
1552
1552
|
});
|
|
1553
1553
|
};
|
|
1554
1554
|
u();
|
|
@@ -1562,8 +1562,8 @@ function Sd(e, t = []) {
|
|
|
1562
1562
|
d.forEach((f) => {
|
|
1563
1563
|
f.type === "childList" && f.addedNodes.forEach((E) => {
|
|
1564
1564
|
if (E.nodeType === Node.ELEMENT_NODE) {
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1565
|
+
const v = E;
|
|
1566
|
+
v.matches && (v.matches('[data-type="number-input"]') || v.querySelector('[data-type="number-input"]')) && (h = !0);
|
|
1567
1567
|
}
|
|
1568
1568
|
});
|
|
1569
1569
|
}), h && o();
|
|
@@ -1651,7 +1651,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1651
1651
|
onViewReport: n,
|
|
1652
1652
|
hideCurrentSessionReport: r
|
|
1653
1653
|
}) => {
|
|
1654
|
-
const i = e.dataset.key || "", u = e.dataset.nodeType || "report-url", [s, o] = re(!1), [c, d] = re(!1), [h, f] = re(null), [E,
|
|
1654
|
+
const i = e.dataset.key || "", u = e.dataset.nodeType || "report-url", [s, o] = re(!1), [c, d] = re(!1), [h, f] = re(null), [E, v] = re(""), [m, y] = re("bottomLeft"), [g, b] = re(0), A = Z(0), T = ue(
|
|
1655
1655
|
() => e.closest('[data-type="variable"]'),
|
|
1656
1656
|
[e]
|
|
1657
1657
|
), C = ue(() => {
|
|
@@ -1711,7 +1711,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1711
1711
|
), o(!0), d(!0);
|
|
1712
1712
|
try {
|
|
1713
1713
|
const q = await t({ nodeKey: i, nodeType: u }), V = r ? q.tabs.filter((j) => j.key !== "currentConversationReports") : q.tabs, K = { ...q, tabs: V };
|
|
1714
|
-
f(K), V.length > 0 &&
|
|
1714
|
+
f(K), V.length > 0 && v(V[0].key);
|
|
1715
1715
|
} catch {
|
|
1716
1716
|
} finally {
|
|
1717
1717
|
d(!1);
|
|
@@ -1805,7 +1805,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1805
1805
|
[n]
|
|
1806
1806
|
), $ = D && h && h.tabs.find((q) => F(q.items).length > 0)?.key || "";
|
|
1807
1807
|
ne(() => {
|
|
1808
|
-
!s || !$ ||
|
|
1808
|
+
!s || !$ || v((q) => q === $ ? q : $);
|
|
1809
1809
|
}, [s, $, _.signature]);
|
|
1810
1810
|
const R = h?.tabs.find((q) => q.key === E), H = R ? F(R.items) : [], N = Z(null), Y = ue((q) => {
|
|
1811
1811
|
const V = q.currentTarget;
|
|
@@ -1814,16 +1814,16 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1814
1814
|
}, 300);
|
|
1815
1815
|
}, []), z = It(
|
|
1816
1816
|
() => ({
|
|
1817
|
-
offset: [
|
|
1817
|
+
offset: [g, m === "bottomLeft" ? 4 : -4],
|
|
1818
1818
|
overflow: { adjustX: !1, adjustY: !1 }
|
|
1819
1819
|
}),
|
|
1820
|
-
[
|
|
1820
|
+
[g, m]
|
|
1821
1821
|
), S = /* @__PURE__ */ G("div", { className: "rte-report-dropdown-panel", onMouseDown: (q) => q.preventDefault(), children: c ? /* @__PURE__ */ G("div", { className: "rte-report-dropdown-loading", children: /* @__PURE__ */ G(Gu, { size: "small" }) }) : h ? /* @__PURE__ */ pe(ll, { children: [
|
|
1822
1822
|
h.tabs.length > 1 && /* @__PURE__ */ G("div", { className: "rte-report-dropdown-tab-outer", children: /* @__PURE__ */ G("div", { className: "rte-report-dropdown-tab-inner", children: h.tabs.map((q) => /* @__PURE__ */ G(
|
|
1823
1823
|
"div",
|
|
1824
1824
|
{
|
|
1825
1825
|
className: `rte-report-dropdown-tab-item${E === q.key ? " active" : ""}`,
|
|
1826
|
-
onMouseDown: () =>
|
|
1826
|
+
onMouseDown: () => v(q.key),
|
|
1827
1827
|
children: q.label
|
|
1828
1828
|
},
|
|
1829
1829
|
q.key
|
|
@@ -1911,13 +1911,13 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1911
1911
|
}, Ld = (e, t, a, l, n, r, i) => {
|
|
1912
1912
|
const [u, s] = re([]), o = Z(t), c = Z(a), d = Z(l), h = Z(n), f = Z(i);
|
|
1913
1913
|
o.current = t, c.current = a, d.current = l, h.current = n, f.current = i;
|
|
1914
|
-
const E = Z(/* @__PURE__ */ new WeakSet()),
|
|
1914
|
+
const E = Z(/* @__PURE__ */ new WeakSet()), v = ue(() => {
|
|
1915
1915
|
const m = e.current;
|
|
1916
1916
|
if (!m || !o.current) {
|
|
1917
1917
|
s([]);
|
|
1918
1918
|
return;
|
|
1919
1919
|
}
|
|
1920
|
-
const y = m.querySelectorAll(".rte-report-dropdown-host"),
|
|
1920
|
+
const y = m.querySelectorAll(".rte-report-dropdown-host"), g = [];
|
|
1921
1921
|
y.forEach((b) => {
|
|
1922
1922
|
const A = b, T = A.getAttribute("data-key");
|
|
1923
1923
|
if (T) {
|
|
@@ -1925,7 +1925,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1925
1925
|
for (; A.firstChild; ) A.removeChild(A.firstChild);
|
|
1926
1926
|
E.current.add(A);
|
|
1927
1927
|
}
|
|
1928
|
-
|
|
1928
|
+
g.push(
|
|
1929
1929
|
/* @__PURE__ */ G(
|
|
1930
1930
|
Id,
|
|
1931
1931
|
{
|
|
@@ -1940,15 +1940,15 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1940
1940
|
)
|
|
1941
1941
|
);
|
|
1942
1942
|
}
|
|
1943
|
-
}), s(
|
|
1943
|
+
}), s(g);
|
|
1944
1944
|
}, [e]);
|
|
1945
1945
|
return ne(() => {
|
|
1946
1946
|
if (!t) return;
|
|
1947
1947
|
const m = e.current;
|
|
1948
1948
|
if (!m) return;
|
|
1949
|
-
const y = new MutationObserver((
|
|
1949
|
+
const y = new MutationObserver((g) => {
|
|
1950
1950
|
let b = !1;
|
|
1951
|
-
for (const A of
|
|
1951
|
+
for (const A of g)
|
|
1952
1952
|
if (A.type === "childList") {
|
|
1953
1953
|
let T = !1;
|
|
1954
1954
|
if (A.addedNodes.forEach((C) => {
|
|
@@ -1966,16 +1966,16 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1966
1966
|
break;
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
b &&
|
|
1969
|
+
b && v();
|
|
1970
1970
|
});
|
|
1971
1971
|
return y.observe(m, { childList: !0, subtree: !0 }), () => y.disconnect();
|
|
1972
|
-
}, [e, t,
|
|
1972
|
+
}, [e, t, v]), ne(() => {
|
|
1973
1973
|
if (!t) return;
|
|
1974
1974
|
const m = requestAnimationFrame(() => {
|
|
1975
|
-
|
|
1975
|
+
v();
|
|
1976
1976
|
});
|
|
1977
1977
|
return () => cancelAnimationFrame(m);
|
|
1978
|
-
}, [t,
|
|
1978
|
+
}, [t, v, r]), u;
|
|
1979
1979
|
}, Od = ({ host: e, onClear: t }) => {
|
|
1980
1980
|
const a = ue(
|
|
1981
1981
|
(l) => {
|
|
@@ -2016,7 +2016,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
2016
2016
|
for (; f.firstChild; ) f.removeChild(f.firstChild);
|
|
2017
2017
|
u.current.add(f);
|
|
2018
2018
|
}
|
|
2019
|
-
const E = f.getAttribute("data-key") || "",
|
|
2019
|
+
const E = f.getAttribute("data-key") || "", v = f.getAttribute("data-node-type") || "", m = f.getAttribute("data-multi-key") || "";
|
|
2020
2020
|
d.push(
|
|
2021
2021
|
/* @__PURE__ */ G(
|
|
2022
2022
|
Od,
|
|
@@ -2024,7 +2024,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
2024
2024
|
host: f,
|
|
2025
2025
|
onClear: i
|
|
2026
2026
|
},
|
|
2027
|
-
`report-clear-${m ? `${m}:` : ""}${E}-${
|
|
2027
|
+
`report-clear-${m ? `${m}:` : ""}${E}-${v}`
|
|
2028
2028
|
)
|
|
2029
2029
|
);
|
|
2030
2030
|
}), n(d);
|
|
@@ -2036,15 +2036,15 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
2036
2036
|
let h = !1;
|
|
2037
2037
|
for (const f of d) {
|
|
2038
2038
|
if (f.type !== "childList") continue;
|
|
2039
|
-
const E = (
|
|
2040
|
-
if (
|
|
2041
|
-
const m =
|
|
2039
|
+
const E = (v) => {
|
|
2040
|
+
if (v.nodeType !== Node.ELEMENT_NODE) return !1;
|
|
2041
|
+
const m = v;
|
|
2042
2042
|
return m.classList?.contains("rte-report-chip-clear-host") || !!m.querySelector?.(".rte-report-chip-clear-host");
|
|
2043
2043
|
};
|
|
2044
|
-
if (f.addedNodes.forEach((
|
|
2045
|
-
E(
|
|
2046
|
-
}), f.removedNodes.forEach((
|
|
2047
|
-
E(
|
|
2044
|
+
if (f.addedNodes.forEach((v) => {
|
|
2045
|
+
E(v) && (h = !0);
|
|
2046
|
+
}), f.removedNodes.forEach((v) => {
|
|
2047
|
+
E(v) && (h = !0);
|
|
2048
2048
|
}), h) break;
|
|
2049
2049
|
}
|
|
2050
2050
|
h && s();
|
|
@@ -2180,13 +2180,13 @@ const hi = (e, t = Date.now()) => {
|
|
|
2180
2180
|
return;
|
|
2181
2181
|
}
|
|
2182
2182
|
if (a && d.target.files && d.target.files.length > 0) {
|
|
2183
|
-
const h = a, f = e.find((y) => y.type === "upload" && y.key === h), E = Array.from(d.target.files),
|
|
2184
|
-
if (E.length -
|
|
2185
|
-
const y = f.maxCount,
|
|
2183
|
+
const h = a, f = e.find((y) => y.type === "upload" && y.key === h), E = Array.from(d.target.files), v = E.filter((y) => !Pl(y));
|
|
2184
|
+
if (E.length - v.length > 0 && hi(t), v.length > 0 && f && typeof f.maxCount == "number" && typeof f.minCount == "number") {
|
|
2185
|
+
const y = f.maxCount, g = typeof n == "number" ? n : 0;
|
|
2186
2186
|
s((b) => {
|
|
2187
2187
|
const A = { ...b };
|
|
2188
|
-
let T = Math.min(Math.max(
|
|
2189
|
-
for (const C of
|
|
2188
|
+
let T = Math.min(Math.max(g, 0), y - 1);
|
|
2189
|
+
for (const C of v) {
|
|
2190
2190
|
for (; T < y && A[`${h}-${T}`] != null; )
|
|
2191
2191
|
T += 1;
|
|
2192
2192
|
if (T >= y) break;
|
|
@@ -2315,10 +2315,10 @@ function Gd(e, t, a, l, n = []) {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
})), !f.thumbnail && f.videoUrl) {
|
|
2317
2317
|
const E = `/api/download-report-pdf?url=${encodeURIComponent(f.videoUrl)}`;
|
|
2318
|
-
Vd(E).then((
|
|
2319
|
-
|
|
2318
|
+
Vd(E).then((v) => {
|
|
2319
|
+
v && l((m) => {
|
|
2320
2320
|
const y = m[u];
|
|
2321
|
-
return !y || y.status !== "success" ? m : { ...m, [u]: { ...y, thumbnail:
|
|
2321
|
+
return !y || y.status !== "success" ? m : { ...m, [u]: { ...y, thumbnail: v } };
|
|
2322
2322
|
});
|
|
2323
2323
|
});
|
|
2324
2324
|
}
|
|
@@ -2460,15 +2460,15 @@ const jd = ({
|
|
|
2460
2460
|
nodeValues: h,
|
|
2461
2461
|
resolvedReportNamesRef: f
|
|
2462
2462
|
}) => {
|
|
2463
|
-
const E = Z({}),
|
|
2463
|
+
const E = Z({}), v = Z({}), m = Z({}), y = Z(i), g = Z(s), b = Z(c), A = ue((_) => _.find((w) => w.type === "tag")?.text || null, []), T = Z(e), C = Z(null);
|
|
2464
2464
|
ne(() => {
|
|
2465
|
-
|
|
2465
|
+
v.current = a;
|
|
2466
2466
|
}, [a]), ne(() => {
|
|
2467
2467
|
m.current = n;
|
|
2468
2468
|
}, [n]), ne(() => {
|
|
2469
2469
|
y.current = i;
|
|
2470
2470
|
}, [i]), ne(() => {
|
|
2471
|
-
|
|
2471
|
+
g.current = s;
|
|
2472
2472
|
}, [s]), ne(() => {
|
|
2473
2473
|
b.current = c;
|
|
2474
2474
|
}, [c]), ne(() => {
|
|
@@ -2515,10 +2515,10 @@ const jd = ({
|
|
|
2515
2515
|
}
|
|
2516
2516
|
}), E.current[_] = {
|
|
2517
2517
|
variableValues: w,
|
|
2518
|
-
files: { ...
|
|
2518
|
+
files: { ...v.current },
|
|
2519
2519
|
multiVariableCounts: { ...m.current },
|
|
2520
2520
|
reportAnalyzeState: { ...y.current },
|
|
2521
|
-
markdownAnalyzeState: { ...
|
|
2521
|
+
markdownAnalyzeState: { ...g.current },
|
|
2522
2522
|
markdownNameAnalyzeState: { ...b.current },
|
|
2523
2523
|
resolvedReportNames: f?.current ? { ...f.current } : {}
|
|
2524
2524
|
};
|
|
@@ -2632,24 +2632,24 @@ const jd = ({
|
|
|
2632
2632
|
markdownNameAnalyzeRef: h,
|
|
2633
2633
|
markdownAnalyzeStateRef: f,
|
|
2634
2634
|
markdownNameAnalyzeStateRef: E,
|
|
2635
|
-
reportNameResolve:
|
|
2635
|
+
reportNameResolve: v,
|
|
2636
2636
|
applyReportNameChipRef: m
|
|
2637
2637
|
}) => {
|
|
2638
|
-
const y = ue(() => Kd(o), [o]),
|
|
2638
|
+
const y = ue(() => Kd(o), [o]), g = Z(/* @__PURE__ */ new Map()), b = Z(0), A = ue((M) => {
|
|
2639
2639
|
b.current += 1;
|
|
2640
2640
|
const I = b.current;
|
|
2641
|
-
return
|
|
2642
|
-
}, []), T = ue((M, I) =>
|
|
2641
|
+
return g.current.set(M, I), I;
|
|
2642
|
+
}, []), T = ue((M, I) => g.current.get(M) === I, []);
|
|
2643
2643
|
ne(() => {
|
|
2644
2644
|
const M = (I) => {
|
|
2645
2645
|
const x = I.detail;
|
|
2646
2646
|
if (x) {
|
|
2647
2647
|
if ("clearAll" in x && x.clearAll) {
|
|
2648
|
-
|
|
2648
|
+
g.current.clear();
|
|
2649
2649
|
return;
|
|
2650
2650
|
}
|
|
2651
2651
|
if ("keys" in x)
|
|
2652
|
-
for (const L of x.keys)
|
|
2652
|
+
for (const L of x.keys) g.current.delete(L);
|
|
2653
2653
|
}
|
|
2654
2654
|
};
|
|
2655
2655
|
return document.addEventListener(Yn, M), () => document.removeEventListener(Yn, M);
|
|
@@ -2665,11 +2665,11 @@ const jd = ({
|
|
|
2665
2665
|
}));
|
|
2666
2666
|
return;
|
|
2667
2667
|
}
|
|
2668
|
-
if (
|
|
2668
|
+
if (v && m && !(o.current?.querySelector(
|
|
2669
2669
|
`[data-type="variable"][data-key="${M}"]`
|
|
2670
2670
|
)?.getAttribute("data-report-url") === x)) {
|
|
2671
2671
|
const Y = A(M);
|
|
2672
|
-
|
|
2672
|
+
v({ url: x, nodeKey: M, nodeType: "report-url" }).then(({ name: z, url: S }) => {
|
|
2673
2673
|
T(M, Y) && m.current(M, z, S || x);
|
|
2674
2674
|
}).catch(() => {
|
|
2675
2675
|
});
|
|
@@ -2720,7 +2720,7 @@ const jd = ({
|
|
|
2720
2720
|
}));
|
|
2721
2721
|
});
|
|
2722
2722
|
},
|
|
2723
|
-
[y, o, e, l, n,
|
|
2723
|
+
[y, o, e, l, n, v, m, A, T]
|
|
2724
2724
|
), _ = ue(
|
|
2725
2725
|
(M, I) => {
|
|
2726
2726
|
const x = (I || "").trim();
|
|
@@ -2866,16 +2866,16 @@ const jd = ({
|
|
|
2866
2866
|
}, [h]), F = ue(
|
|
2867
2867
|
(M, I, x = "multi-variable") => {
|
|
2868
2868
|
const L = (I || "").trim();
|
|
2869
|
-
if (!L || !
|
|
2869
|
+
if (!L || !v || !m || !/^https?:\/\//i.test(L)) return;
|
|
2870
2870
|
const $ = A(M);
|
|
2871
|
-
|
|
2871
|
+
v({ url: L, nodeKey: M, nodeType: x }).then(({ name: R, url: H }) => {
|
|
2872
2872
|
if (!T(M, $)) return;
|
|
2873
2873
|
const N = H || L;
|
|
2874
2874
|
m.current(M, R, N), x === "multi-variable-select" && c.current(M, N);
|
|
2875
2875
|
}).catch(() => {
|
|
2876
2876
|
});
|
|
2877
2877
|
},
|
|
2878
|
-
[
|
|
2878
|
+
[v, m, c, A, T]
|
|
2879
2879
|
);
|
|
2880
2880
|
return { handleReportUrlBlur: w, handleMarkdownBlur: O, handleMarkdownNameBlur: D, handleMultiVariableNameResolve: F };
|
|
2881
2881
|
}, Qd = ({
|
|
@@ -2895,16 +2895,16 @@ const jd = ({
|
|
|
2895
2895
|
datePickerPortalsLength: f,
|
|
2896
2896
|
variablePortalsLength: E
|
|
2897
2897
|
}) => {
|
|
2898
|
-
const
|
|
2899
|
-
const
|
|
2900
|
-
if (!
|
|
2901
|
-
const b = Math.max(0, Math.ceil(
|
|
2898
|
+
const v = Z(""), m = ue(() => {
|
|
2899
|
+
const g = l.current;
|
|
2900
|
+
if (!g) return;
|
|
2901
|
+
const b = Math.max(0, Math.ceil(g.scrollHeight || 0));
|
|
2902
2902
|
!Number.isFinite(b) || b <= 0 || u((A) => A === b ? A : b);
|
|
2903
2903
|
}, [l, u]);
|
|
2904
2904
|
Ye(() => {
|
|
2905
2905
|
if (!e) return;
|
|
2906
|
-
const
|
|
2907
|
-
if (!(!
|
|
2906
|
+
const g = a.current, b = n.current;
|
|
2907
|
+
if (!(!g || !b))
|
|
2908
2908
|
try {
|
|
2909
2909
|
const A = b.getBoundingClientRect(), T = document.createRange();
|
|
2910
2910
|
T.selectNodeContents(b);
|
|
@@ -2937,16 +2937,16 @@ const jd = ({
|
|
|
2937
2937
|
i
|
|
2938
2938
|
]), Ye(() => {
|
|
2939
2939
|
if (!e) return;
|
|
2940
|
-
const
|
|
2941
|
-
if (!
|
|
2940
|
+
const g = a.current, b = l.current, A = n.current;
|
|
2941
|
+
if (!g) return;
|
|
2942
2942
|
const T = () => {
|
|
2943
|
-
|
|
2943
|
+
g.scrollTop = 0, g.scrollLeft = 0, b && (b.scrollTop = 0, b.scrollLeft = 0), A && (A.scrollTop = 0, A.scrollLeft = 0);
|
|
2944
2944
|
}, _ = (typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260) + 220;
|
|
2945
2945
|
T();
|
|
2946
2946
|
const k = (M) => {
|
|
2947
2947
|
M.preventDefault(), M.stopPropagation(), T();
|
|
2948
2948
|
};
|
|
2949
|
-
|
|
2949
|
+
g.addEventListener("wheel", k, { passive: !1 }), g.addEventListener("touchmove", k, { passive: !1 }), b && (b.addEventListener("wheel", k, { passive: !1 }), b.addEventListener("touchmove", k, { passive: !1 }));
|
|
2950
2950
|
const w = performance.now();
|
|
2951
2951
|
let O = 0;
|
|
2952
2952
|
const D = (M) => {
|
|
@@ -2957,13 +2957,13 @@ const jd = ({
|
|
|
2957
2957
|
T();
|
|
2958
2958
|
}, _);
|
|
2959
2959
|
return () => {
|
|
2960
|
-
|
|
2960
|
+
g.removeEventListener("wheel", k), g.removeEventListener("touchmove", k), b && (b.removeEventListener("wheel", k), b.removeEventListener("touchmove", k)), window.cancelAnimationFrame(O), window.clearTimeout(F);
|
|
2961
2961
|
};
|
|
2962
2962
|
}, [e, t, l, a, r, n]);
|
|
2963
|
-
const y = o.filter((
|
|
2964
|
-
return y !== "" &&
|
|
2963
|
+
const y = o.filter((g) => g.key && g.type !== "report-module" && g.type !== "markdown-module").map((g) => `${g.type}:${g.key}`).join("|");
|
|
2964
|
+
return y !== "" && v.current !== y && (e || u(9999)), v.current = y, ne(() => {
|
|
2965
2965
|
if (e) return;
|
|
2966
|
-
const
|
|
2966
|
+
const g = window.requestAnimationFrame(() => {
|
|
2967
2967
|
m();
|
|
2968
2968
|
const b = window.setTimeout(() => {
|
|
2969
2969
|
m();
|
|
@@ -2971,7 +2971,7 @@ const jd = ({
|
|
|
2971
2971
|
window.__rteSecondMeasureTimer = b;
|
|
2972
2972
|
});
|
|
2973
2973
|
return () => {
|
|
2974
|
-
window.cancelAnimationFrame(
|
|
2974
|
+
window.cancelAnimationFrame(g);
|
|
2975
2975
|
const b = window.__rteSecondMeasureTimer;
|
|
2976
2976
|
b && window.clearTimeout(b);
|
|
2977
2977
|
};
|
|
@@ -2985,13 +2985,13 @@ const jd = ({
|
|
|
2985
2985
|
E,
|
|
2986
2986
|
m
|
|
2987
2987
|
]), ne(() => {
|
|
2988
|
-
const
|
|
2989
|
-
if (
|
|
2988
|
+
const g = typeof t == "number" && Number.isFinite(t) && t >= 0 ? t : 260;
|
|
2989
|
+
if (g <= 0) {
|
|
2990
2990
|
s(!1);
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
2993
|
s(!0);
|
|
2994
|
-
const b = window.setTimeout(() => s(!1),
|
|
2994
|
+
const b = window.setTimeout(() => s(!1), g);
|
|
2995
2995
|
return () => window.clearTimeout(b);
|
|
2996
2996
|
}, [e, t, s]), { measureExpandedContentHeight: m };
|
|
2997
2997
|
}, Jd = ({
|
|
@@ -3157,42 +3157,42 @@ const jd = ({
|
|
|
3157
3157
|
}, [e, a, l, t]);
|
|
3158
3158
|
function Ka(e, t, a, l) {
|
|
3159
3159
|
if (!e.current) return;
|
|
3160
|
-
const n = (
|
|
3161
|
-
|
|
3162
|
-
}, r = (
|
|
3163
|
-
if (!
|
|
3164
|
-
if (
|
|
3165
|
-
n(
|
|
3160
|
+
const n = (v) => {
|
|
3161
|
+
v.classList.contains("rte-richtext-host-expanded") && (v.style.setProperty("display", "flex", "important"), v.style.setProperty("flex-direction", "column", "important"), v.style.setProperty("flex", "1 1 auto", "important"), v.style.setProperty("min-height", "0", "important"), v.style.setProperty("width", "100%", "important"), v.style.setProperty("align-self", "stretch", "important"));
|
|
3162
|
+
}, r = (v) => {
|
|
3163
|
+
if (!v.closest('[data-rte-force-hidden="1"]')) {
|
|
3164
|
+
if (v.classList.contains("rte-richtext-host-expanded")) {
|
|
3165
|
+
n(v);
|
|
3166
3166
|
return;
|
|
3167
3167
|
}
|
|
3168
|
-
if (
|
|
3169
|
-
|
|
3168
|
+
if (v.classList.contains("required-upload-group")) {
|
|
3169
|
+
v.style.setProperty("display", "inline-flex", "important");
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
3172
|
-
if (
|
|
3173
|
-
|
|
3172
|
+
if (v.classList.contains("exclusion-wrapper")) {
|
|
3173
|
+
v.classList.contains("rte-exclusion-force-block") ? v.style.setProperty("display", "block", "important") : v.style.setProperty("display", "inline-block", "important");
|
|
3174
3174
|
return;
|
|
3175
3175
|
}
|
|
3176
|
-
|
|
3176
|
+
v.style.setProperty("display", "inline-block", "important");
|
|
3177
3177
|
}
|
|
3178
|
-
}, i = (
|
|
3179
|
-
|
|
3180
|
-
}, u = t.some((
|
|
3178
|
+
}, i = (v) => {
|
|
3179
|
+
v.closest('[data-rte-force-hidden="1"]') || (v.style.display = "none", v.style.setProperty("display", "none", "important"));
|
|
3180
|
+
}, u = t.some((v) => v.exclusionGroup === "separator");
|
|
3181
3181
|
if (u) {
|
|
3182
|
-
const
|
|
3182
|
+
const v = [];
|
|
3183
3183
|
let m = [];
|
|
3184
3184
|
for (const w of t) {
|
|
3185
3185
|
if (w.exclusionGroup === "separator") {
|
|
3186
|
-
m.length &&
|
|
3186
|
+
m.length && v.push(m), m = [];
|
|
3187
3187
|
continue;
|
|
3188
3188
|
}
|
|
3189
3189
|
!w.exclusionGroup || w.exclusionGroup === "separator" || (w.type === "upload" && w.key ? m.push({ type: "upload", key: w.key }) : (w.type === "video-url" || w.type === "video-upload") && w.key ? m.push({ type: w.type, key: w.key }) : (w.type === "variable" || w.type === "multi-variable" || w.type === "multi-variable-select" || w.type === "markdown" || w.type === "markdown-name" || w.type === "markdown-module") && w.key ? m.push({ type: Ke(w.type) ? "multi-variable" : "variable", key: w.key }) : m.push({ type: "other", nodeType: w.type }));
|
|
3190
3190
|
}
|
|
3191
|
-
m.length &&
|
|
3191
|
+
m.length && v.push(m);
|
|
3192
3192
|
const y = (w) => {
|
|
3193
3193
|
const O = t.find((D) => D.type === "upload" && D.key === w);
|
|
3194
3194
|
return O ? typeof O.maxCount == "number" && O.maxCount > 1 ? O.maxCount : 1 : 0;
|
|
3195
|
-
},
|
|
3195
|
+
}, g = v.map((w) => {
|
|
3196
3196
|
for (const O of w)
|
|
3197
3197
|
if (O.type !== "other") {
|
|
3198
3198
|
if (O.type === "video-url" || O.type === "video-upload") {
|
|
@@ -3260,10 +3260,10 @@ function Ka(e, t, a, l) {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
}
|
|
3262
3262
|
return !1;
|
|
3263
|
-
}), b =
|
|
3263
|
+
}), b = g.some(Boolean), A = b ? g.findIndex(Boolean) : -1, T = (w) => e.current.querySelector(
|
|
3264
3264
|
`[data-type="video-url"][data-key="${w}"], [data-type="video-upload"][data-key="${w}"], [data-type="variable"][data-node-type="video-url"][data-key="${w}"]`
|
|
3265
3265
|
), C = (w) => {
|
|
3266
|
-
for (const O of
|
|
3266
|
+
for (const O of v[w] || [])
|
|
3267
3267
|
if (O.type !== "other") {
|
|
3268
3268
|
if (O.type === "video-url" || O.type === "video-upload") {
|
|
3269
3269
|
const D = T(O.key);
|
|
@@ -3296,7 +3296,7 @@ function Ka(e, t, a, l) {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
}
|
|
3298
3298
|
}, _ = (w) => {
|
|
3299
|
-
for (const O of
|
|
3299
|
+
for (const O of v[w] || [])
|
|
3300
3300
|
if (O.type !== "other") {
|
|
3301
3301
|
if (O.type === "video-url" || O.type === "video-upload") {
|
|
3302
3302
|
const D = T(O.key);
|
|
@@ -3326,7 +3326,7 @@ function Ka(e, t, a, l) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
}
|
|
3328
3328
|
};
|
|
3329
|
-
for (let w = 0; w <
|
|
3329
|
+
for (let w = 0; w < v.length; w++)
|
|
3330
3330
|
!b || w === A ? C(w) : _(w);
|
|
3331
3331
|
e.current.querySelectorAll('[data-group="separator"]').forEach((w) => {
|
|
3332
3332
|
w.closest('[data-rte-force-hidden="1"]') || (b ? i(w) : w.style.setProperty("display", "inline-flex", "important"));
|
|
@@ -3334,62 +3334,62 @@ function Ka(e, t, a, l) {
|
|
|
3334
3334
|
return;
|
|
3335
3335
|
}
|
|
3336
3336
|
const s = /* @__PURE__ */ new Set(), o = {};
|
|
3337
|
-
for (const
|
|
3338
|
-
|
|
3339
|
-
type:
|
|
3340
|
-
key:
|
|
3341
|
-
exclusionGroup:
|
|
3337
|
+
for (const v of t)
|
|
3338
|
+
v.exclusionGroup && v.exclusionGroup !== "separator" && (s.add(v.exclusionGroup), o[v.exclusionGroup] || (o[v.exclusionGroup] = []), o[v.exclusionGroup].push({
|
|
3339
|
+
type: v.type,
|
|
3340
|
+
key: v.key,
|
|
3341
|
+
exclusionGroup: v.exclusionGroup
|
|
3342
3342
|
}));
|
|
3343
3343
|
const c = {};
|
|
3344
|
-
for (const
|
|
3345
|
-
c[
|
|
3346
|
-
for (const m of o[
|
|
3344
|
+
for (const v of s) {
|
|
3345
|
+
c[v] = !1;
|
|
3346
|
+
for (const m of o[v])
|
|
3347
3347
|
if ((m.type === "video-url" || m.type === "video-upload") && m.key) {
|
|
3348
3348
|
const y = l?.[m.key];
|
|
3349
3349
|
if (y?.status === "success" && y.videoUrl || y?.status === "loading") {
|
|
3350
|
-
c[
|
|
3350
|
+
c[v] = !0;
|
|
3351
3351
|
break;
|
|
3352
3352
|
}
|
|
3353
3353
|
if (m.type === "video-url") {
|
|
3354
|
-
const
|
|
3354
|
+
const g = e.current.querySelector(
|
|
3355
3355
|
`[data-type="variable"][data-node-type="video-url"][data-key="${m.key}"]`
|
|
3356
3356
|
);
|
|
3357
|
-
if (
|
|
3358
|
-
c[
|
|
3357
|
+
if (g && !g.classList.contains("show-placeholder") && g.innerText.replace(/[\u200B\n]/g, "").trim().length > 0) {
|
|
3358
|
+
c[v] = !0;
|
|
3359
3359
|
break;
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
} else if (m.type === "upload" && m.key) {
|
|
3363
3363
|
if (a[m.key] !== null && a[m.key] !== void 0) {
|
|
3364
|
-
c[
|
|
3364
|
+
c[v] = !0;
|
|
3365
3365
|
break;
|
|
3366
3366
|
}
|
|
3367
|
-
const y = t.find((
|
|
3367
|
+
const y = t.find((g) => g.type === "upload" && g.key === m.key);
|
|
3368
3368
|
if (y && typeof y.maxCount == "number")
|
|
3369
|
-
for (let
|
|
3370
|
-
const b = `${m.key}-${
|
|
3369
|
+
for (let g = 0; g < y.maxCount; g++) {
|
|
3370
|
+
const b = `${m.key}-${g}`;
|
|
3371
3371
|
if (a[b] !== null && a[b] !== void 0) {
|
|
3372
|
-
c[
|
|
3372
|
+
c[v] = !0;
|
|
3373
3373
|
break;
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
|
-
if (c[
|
|
3376
|
+
if (c[v])
|
|
3377
3377
|
break;
|
|
3378
3378
|
} else if ((m.type === "variable" || m.type === "multi-variable" || m.type === "multi-variable-select" || m.type === "markdown" || m.type === "markdown-name") && m.key) {
|
|
3379
3379
|
if (e.current.querySelector(
|
|
3380
3380
|
`[data-node-type="markdown-module"][data-key="${m.key}"]`
|
|
3381
3381
|
)) {
|
|
3382
|
-
c[
|
|
3382
|
+
c[v] = !0;
|
|
3383
3383
|
break;
|
|
3384
3384
|
}
|
|
3385
|
-
const
|
|
3385
|
+
const g = Ke(m.type) ? e.current.querySelectorAll(
|
|
3386
3386
|
`[data-type="variable"][data-multi-key="${m.key}"]`
|
|
3387
3387
|
) : [e.current.querySelector(`[data-type="variable"][data-key="${m.key}"]`)].filter(
|
|
3388
3388
|
Boolean
|
|
3389
3389
|
);
|
|
3390
|
-
for (const b of
|
|
3390
|
+
for (const b of g) {
|
|
3391
3391
|
if (b.getAttribute("data-report-url")) {
|
|
3392
|
-
c[
|
|
3392
|
+
c[v] = !0;
|
|
3393
3393
|
break;
|
|
3394
3394
|
}
|
|
3395
3395
|
if (b.dataset.variableRender === "antd-textarea") {
|
|
@@ -3401,35 +3401,35 @@ function Ka(e, t, a, l) {
|
|
|
3401
3401
|
T = A;
|
|
3402
3402
|
}
|
|
3403
3403
|
if (T.trim().length > 0) {
|
|
3404
|
-
c[
|
|
3404
|
+
c[v] = !0;
|
|
3405
3405
|
break;
|
|
3406
3406
|
}
|
|
3407
3407
|
continue;
|
|
3408
3408
|
}
|
|
3409
3409
|
if (!b.classList.contains("show-placeholder") && b.innerText.replace(/[\u200B\n]/g, "").trim().length > 0) {
|
|
3410
|
-
c[
|
|
3410
|
+
c[v] = !0;
|
|
3411
3411
|
break;
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
3414
|
-
if (c[
|
|
3414
|
+
if (c[v])
|
|
3415
3415
|
break;
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
|
-
const h = Object.keys(c).filter((
|
|
3418
|
+
const h = Object.keys(c).filter((v) => c[v]).length > 0;
|
|
3419
3419
|
let f = null;
|
|
3420
3420
|
if (h && u) {
|
|
3421
|
-
for (const
|
|
3422
|
-
if (
|
|
3423
|
-
f =
|
|
3421
|
+
for (const v of t)
|
|
3422
|
+
if (v.exclusionGroup && v.exclusionGroup !== "separator" && c[v.exclusionGroup]) {
|
|
3423
|
+
f = v.exclusionGroup;
|
|
3424
3424
|
break;
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
|
-
for (const
|
|
3428
|
-
const m = e.current.querySelectorAll(`[data-group="${
|
|
3429
|
-
u && h && f ?
|
|
3427
|
+
for (const v of s) {
|
|
3428
|
+
const m = e.current.querySelectorAll(`[data-group="${v}"]`);
|
|
3429
|
+
u && h && f ? v === f ? m.forEach(r) : m.forEach(i) : m.forEach(r);
|
|
3430
3430
|
}
|
|
3431
|
-
e.current.querySelectorAll('[data-group="separator"]').forEach((
|
|
3432
|
-
|
|
3431
|
+
e.current.querySelectorAll('[data-group="separator"]').forEach((v) => {
|
|
3432
|
+
v.closest('[data-rte-force-hidden="1"]') || (h ? i(v) : v.style.setProperty("display", "inline-flex", "important"));
|
|
3433
3433
|
});
|
|
3434
3434
|
}
|
|
3435
3435
|
function vr(e, t, a, l, n, r) {
|
|
@@ -3437,11 +3437,11 @@ function vr(e, t, a, l, n, r) {
|
|
|
3437
3437
|
l(!1);
|
|
3438
3438
|
return;
|
|
3439
3439
|
}
|
|
3440
|
-
const i = (
|
|
3441
|
-
const b =
|
|
3440
|
+
const i = (g) => {
|
|
3441
|
+
const b = g.getAttribute("data-node-type") || "";
|
|
3442
3442
|
if (b !== "report-module" && b !== "markdown-module")
|
|
3443
|
-
return (
|
|
3444
|
-
const A = (
|
|
3443
|
+
return (g.textContent || "").replace(/[\u200B]/g, "").trim();
|
|
3444
|
+
const A = (g.textContent || "").replace(/[\u200B]/g, "").trim(), T = Array.from(g.querySelectorAll(":scope > div"));
|
|
3445
3445
|
if (T.length === 0)
|
|
3446
3446
|
return A;
|
|
3447
3447
|
let C = -1;
|
|
@@ -3452,18 +3452,18 @@ function vr(e, t, a, l, n, r) {
|
|
|
3452
3452
|
}
|
|
3453
3453
|
return T.filter((w, O) => O !== C).map((w) => (w.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
|
|
3454
3454
|
`).trim() || A;
|
|
3455
|
-
}, u = (
|
|
3456
|
-
const b = (
|
|
3457
|
-
return
|
|
3458
|
-
}, o = (
|
|
3455
|
+
}, u = (g) => g ? !!g.closest('[data-rte-force-hidden="1"]') : !1, s = (g) => {
|
|
3456
|
+
const b = (g.innerText || "").replace(/[\u200B\n]/g, "").trim();
|
|
3457
|
+
return g.dataset.nodeType === "report-url" ? (g.getAttribute("data-report-url") || b).trim() : b;
|
|
3458
|
+
}, o = (g, b) => {
|
|
3459
3459
|
if (!r?.requireReportUrlAnalyze) return !0;
|
|
3460
|
-
const A = r.reportAnalyzeState?.[
|
|
3460
|
+
const A = r.reportAnalyzeState?.[g];
|
|
3461
3461
|
if (A?.status !== "success" || !A.modules || A.modules.length === 0) return !1;
|
|
3462
3462
|
const T = (A.lastParsedUrl || "").trim();
|
|
3463
3463
|
return !T || T === b;
|
|
3464
3464
|
}, c = [];
|
|
3465
|
-
for (let
|
|
3466
|
-
const b = t[
|
|
3465
|
+
for (let g = 0; g < t.length; g++) {
|
|
3466
|
+
const b = t[g];
|
|
3467
3467
|
if ((b.type === "variable" || b.type === "report-url" || b.type === "markdown" || b.type === "markdown-name" || b.type === "upload" || b.type === "multi-variable" || b.type === "multi-variable-select" || b.type === "select" || b.type === "textarea" || b.type === "richtext" || b.type === "report-module" || b.type === "markdown-module" || b.type === "datepicker" || b.type === "number-input" || b.type === "video-url" || b.type === "video-upload") && b.required && b.key) {
|
|
3468
3468
|
c.push({
|
|
3469
3469
|
exclusionGroup: b.exclusionGroup || "",
|
|
@@ -3472,13 +3472,13 @@ function vr(e, t, a, l, n, r) {
|
|
|
3472
3472
|
isMultiVariable: Ke(b.type),
|
|
3473
3473
|
minCount: Ke(b.type) || b.type === "upload" && typeof b.minCount == "number" ? b.minCount : void 0,
|
|
3474
3474
|
moduleIndex: b.type === "report-module" || b.type === "markdown-module" ? b.moduleIndex : void 0,
|
|
3475
|
-
__index:
|
|
3475
|
+
__index: g
|
|
3476
3476
|
});
|
|
3477
3477
|
continue;
|
|
3478
3478
|
}
|
|
3479
3479
|
if (b.type === "text" && b.className?.includes("rte-text-required"))
|
|
3480
3480
|
if (b.exclusionGroup)
|
|
3481
|
-
for (let A =
|
|
3481
|
+
for (let A = g + 1; A < t.length; A++) {
|
|
3482
3482
|
const T = t[A];
|
|
3483
3483
|
if (T.exclusionGroup === b.exclusionGroup && (T.type === "variable" || T.type === "markdown" || T.type === "upload" || T.type === "select" || T.type === "textarea" || T.type === "richtext" || T.type === "datepicker" || T.type === "number-input") && T.key) {
|
|
3484
3484
|
c.push({
|
|
@@ -3491,7 +3491,7 @@ function vr(e, t, a, l, n, r) {
|
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
3493
3493
|
else
|
|
3494
|
-
for (let A =
|
|
3494
|
+
for (let A = g + 1; A < t.length; A++) {
|
|
3495
3495
|
const T = t[A];
|
|
3496
3496
|
if ((T.type === "variable" || T.type === "markdown" || T.type === "upload" || T.type === "select" || T.type === "textarea" || T.type === "richtext" || T.type === "datepicker" || T.type === "number-input") && T.key) {
|
|
3497
3497
|
c.push({
|
|
@@ -3504,13 +3504,13 @@ function vr(e, t, a, l, n, r) {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
|
-
const d = t.some((
|
|
3507
|
+
const d = t.some((g) => g.exclusionGroup === "separator"), h = [];
|
|
3508
3508
|
if (d && c.length > 1) {
|
|
3509
|
-
const
|
|
3509
|
+
const g = [];
|
|
3510
3510
|
t.forEach((b, A) => {
|
|
3511
|
-
b.exclusionGroup === "separator" &&
|
|
3511
|
+
b.exclusionGroup === "separator" && g.push(A);
|
|
3512
3512
|
});
|
|
3513
|
-
for (const b of
|
|
3513
|
+
for (const b of g) {
|
|
3514
3514
|
const T = c.filter((k) => typeof k.__index == "number" && k.__index < b).sort((k, w) => (w.__index ?? 0) - (k.__index ?? 0))[0], _ = c.filter((k) => typeof k.__index == "number" && k.__index > b).sort((k, w) => (k.__index ?? 0) - (w.__index ?? 0))[0];
|
|
3515
3515
|
T && _ && h.push([T, _]);
|
|
3516
3516
|
}
|
|
@@ -3521,34 +3521,34 @@ function vr(e, t, a, l, n, r) {
|
|
|
3521
3521
|
l(!1);
|
|
3522
3522
|
return;
|
|
3523
3523
|
}
|
|
3524
|
-
const
|
|
3525
|
-
l(
|
|
3524
|
+
const g = e.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
|
|
3525
|
+
l(g.length > 0);
|
|
3526
3526
|
return;
|
|
3527
3527
|
}
|
|
3528
3528
|
l(!0);
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
|
-
const f = c.filter((
|
|
3531
|
+
const f = c.filter((g) => {
|
|
3532
3532
|
if (!e.current) return !1;
|
|
3533
|
-
if (
|
|
3533
|
+
if (g.exclusionGroup) {
|
|
3534
3534
|
const b = e.current.querySelectorAll(
|
|
3535
|
-
`[data-group="${
|
|
3535
|
+
`[data-group="${g.exclusionGroup}"]`
|
|
3536
3536
|
);
|
|
3537
3537
|
if (b.length > 0) {
|
|
3538
3538
|
const A = b[0];
|
|
3539
3539
|
return u(A) ? !0 : A.style.display !== "none";
|
|
3540
3540
|
}
|
|
3541
3541
|
}
|
|
3542
|
-
if (
|
|
3543
|
-
const b = e.current.querySelector(`[data-type="upload"][data-key="${
|
|
3542
|
+
if (g.type === "upload" && g.key) {
|
|
3543
|
+
const b = e.current.querySelector(`[data-type="upload"][data-key="${g.key}"]`) || e.current.querySelector(`[data-type="upload"][data-batch-key="${g.key}"]`);
|
|
3544
3544
|
if (b) {
|
|
3545
3545
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3546
3546
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3547
3547
|
}
|
|
3548
|
-
} else if (
|
|
3549
|
-
if (
|
|
3548
|
+
} else if (g.type === "variable" && g.key)
|
|
3549
|
+
if (g.isMultiVariable) {
|
|
3550
3550
|
const b = e.current.querySelectorAll(
|
|
3551
|
-
`[data-type="variable"][data-multi-key="${
|
|
3551
|
+
`[data-type="variable"][data-multi-key="${g.key}"]`
|
|
3552
3552
|
);
|
|
3553
3553
|
if (b.length > 0) {
|
|
3554
3554
|
const A = b[0], T = A.closest("[data-group]") || A.parentElement;
|
|
@@ -3556,52 +3556,52 @@ function vr(e, t, a, l, n, r) {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
} else {
|
|
3558
3558
|
const b = e.current.querySelector(
|
|
3559
|
-
`[data-type="variable"][data-key="${
|
|
3559
|
+
`[data-type="variable"][data-key="${g.key}"]`
|
|
3560
3560
|
);
|
|
3561
3561
|
if (b) {
|
|
3562
3562
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3563
3563
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
|
-
else if (
|
|
3567
|
-
const b = e.current.querySelector(`[data-type="select"][data-key="${
|
|
3566
|
+
else if (g.type === "select" && g.key) {
|
|
3567
|
+
const b = e.current.querySelector(`[data-type="select"][data-key="${g.key}"]`);
|
|
3568
3568
|
if (b) {
|
|
3569
3569
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3570
3570
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3571
3571
|
}
|
|
3572
|
-
} else if (
|
|
3572
|
+
} else if (g.type === "textarea" && g.key) {
|
|
3573
3573
|
const b = e.current.querySelector(
|
|
3574
|
-
`[data-type="textarea"][data-key="${
|
|
3574
|
+
`[data-type="textarea"][data-key="${g.key}"]`
|
|
3575
3575
|
);
|
|
3576
3576
|
if (b) {
|
|
3577
3577
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3578
3578
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3579
3579
|
}
|
|
3580
|
-
} else if (
|
|
3581
|
-
const b = typeof
|
|
3580
|
+
} else if (g.type === "richtext" && g.key) {
|
|
3581
|
+
const b = typeof g.moduleIndex == "number" ? `[data-type="richtext"][data-node-type="report-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"]` : `[data-type="richtext"][data-key="${g.key}"]`, A = e.current.querySelector(b);
|
|
3582
3582
|
if (A) {
|
|
3583
3583
|
const T = A.closest("[data-group]") || A.parentElement;
|
|
3584
3584
|
return u(T) ? !0 : T ? T.style.display !== "none" : !0;
|
|
3585
3585
|
}
|
|
3586
|
-
} else if (
|
|
3586
|
+
} else if (g.type === "datepicker" && g.key) {
|
|
3587
3587
|
const b = e.current.querySelector(
|
|
3588
|
-
`[data-type="datepicker"][data-key="${
|
|
3588
|
+
`[data-type="datepicker"][data-key="${g.key}"]`
|
|
3589
3589
|
);
|
|
3590
3590
|
if (b) {
|
|
3591
3591
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3592
3592
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3593
3593
|
}
|
|
3594
|
-
} else if (
|
|
3594
|
+
} else if (g.type === "number-input" && g.key) {
|
|
3595
3595
|
const b = e.current.querySelector(
|
|
3596
|
-
`[data-type="number-input"][data-key="${
|
|
3596
|
+
`[data-type="number-input"][data-key="${g.key}"]`
|
|
3597
3597
|
);
|
|
3598
3598
|
if (b) {
|
|
3599
3599
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
3600
3600
|
return u(A) ? !0 : A ? A.style.display !== "none" : !0;
|
|
3601
3601
|
}
|
|
3602
|
-
} else if ((
|
|
3602
|
+
} else if ((g.type === "video-url" || g.type === "video-upload") && g.key) {
|
|
3603
3603
|
const b = e.current.querySelector(
|
|
3604
|
-
`[data-type="${
|
|
3604
|
+
`[data-type="${g.type}"][data-key="${g.key}"], [data-type="variable"][data-key="${g.key}"][data-node-type="video-url"]`
|
|
3605
3605
|
);
|
|
3606
3606
|
if (b) {
|
|
3607
3607
|
const A = b.closest("[data-group]") || b.parentElement;
|
|
@@ -3615,17 +3615,17 @@ function vr(e, t, a, l, n, r) {
|
|
|
3615
3615
|
return;
|
|
3616
3616
|
}
|
|
3617
3617
|
const E = /* @__PURE__ */ new Set();
|
|
3618
|
-
h.forEach((
|
|
3619
|
-
|
|
3618
|
+
h.forEach((g) => {
|
|
3619
|
+
g.forEach((b) => {
|
|
3620
3620
|
b.key && E.add(b.key);
|
|
3621
3621
|
});
|
|
3622
3622
|
});
|
|
3623
|
-
const
|
|
3624
|
-
(
|
|
3623
|
+
const v = f.filter(
|
|
3624
|
+
(g) => !g.key || !E.has(g.key)
|
|
3625
3625
|
);
|
|
3626
3626
|
let m = (h.length === 0, !0);
|
|
3627
|
-
for (const
|
|
3628
|
-
const b =
|
|
3627
|
+
for (const g of h) {
|
|
3628
|
+
const b = g.filter((T) => {
|
|
3629
3629
|
if (!e.current) return !1;
|
|
3630
3630
|
if (T.exclusionGroup) {
|
|
3631
3631
|
const C = e.current.querySelectorAll(
|
|
@@ -3745,12 +3745,12 @@ function vr(e, t, a, l, n, r) {
|
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
let y = !0;
|
|
3748
|
-
for (const
|
|
3749
|
-
if (
|
|
3750
|
-
if (
|
|
3748
|
+
for (const g of v)
|
|
3749
|
+
if (g.type === "upload" && g.key) {
|
|
3750
|
+
if (g.minCount && g.minCount > 0) {
|
|
3751
3751
|
let b = 0;
|
|
3752
3752
|
const A = e.current.querySelectorAll(
|
|
3753
|
-
`[data-type="upload"][data-batch-key="${
|
|
3753
|
+
`[data-type="upload"][data-batch-key="${g.key}"]`
|
|
3754
3754
|
);
|
|
3755
3755
|
if (A.length === 0) {
|
|
3756
3756
|
y = !1;
|
|
@@ -3760,18 +3760,18 @@ function vr(e, t, a, l, n, r) {
|
|
|
3760
3760
|
const _ = A[T].dataset.key;
|
|
3761
3761
|
_ && a[_] != null && (b += 1);
|
|
3762
3762
|
}
|
|
3763
|
-
if (b <
|
|
3763
|
+
if (b < g.minCount) {
|
|
3764
3764
|
y = !1;
|
|
3765
3765
|
break;
|
|
3766
3766
|
}
|
|
3767
|
-
} else if (a[
|
|
3767
|
+
} else if (a[g.key] === null || a[g.key] === void 0) {
|
|
3768
3768
|
y = !1;
|
|
3769
3769
|
break;
|
|
3770
3770
|
}
|
|
3771
|
-
} else if (
|
|
3772
|
-
if (
|
|
3771
|
+
} else if (g.type === "variable" && g.key)
|
|
3772
|
+
if (g.isMultiVariable) {
|
|
3773
3773
|
const b = e.current.querySelectorAll(
|
|
3774
|
-
`[data-type="variable"][data-multi-key="${
|
|
3774
|
+
`[data-type="variable"][data-multi-key="${g.key}"]`
|
|
3775
3775
|
);
|
|
3776
3776
|
let A = 0;
|
|
3777
3777
|
for (const C of Array.from(b)) {
|
|
@@ -3779,13 +3779,13 @@ function vr(e, t, a, l, n, r) {
|
|
|
3779
3779
|
continue;
|
|
3780
3780
|
C.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && (A += 1);
|
|
3781
3781
|
}
|
|
3782
|
-
const T =
|
|
3782
|
+
const T = g.minCount && g.minCount > 0 ? g.minCount : 1;
|
|
3783
3783
|
if (A < T) {
|
|
3784
3784
|
y = !1;
|
|
3785
3785
|
break;
|
|
3786
3786
|
}
|
|
3787
3787
|
} else {
|
|
3788
|
-
const b = e.current.querySelector(`[data-type="variable"][data-key="${
|
|
3788
|
+
const b = e.current.querySelector(`[data-type="variable"][data-key="${g.key}"]`);
|
|
3789
3789
|
if (!b) {
|
|
3790
3790
|
y = !1;
|
|
3791
3791
|
break;
|
|
@@ -3800,33 +3800,33 @@ function vr(e, t, a, l, n, r) {
|
|
|
3800
3800
|
break;
|
|
3801
3801
|
}
|
|
3802
3802
|
const T = b.dataset.nodeType;
|
|
3803
|
-
if (T === "report-url" && !o(
|
|
3803
|
+
if (T === "report-url" && !o(g.key, A)) {
|
|
3804
3804
|
y = !1;
|
|
3805
3805
|
break;
|
|
3806
3806
|
}
|
|
3807
3807
|
if ((T === "markdown" || T === "markdown-name") && !!!e.current.querySelector(
|
|
3808
|
-
`[data-node-type="markdown-module"][data-key="${
|
|
3808
|
+
`[data-node-type="markdown-module"][data-key="${g.key}"]`
|
|
3809
3809
|
)) {
|
|
3810
3810
|
y = !1;
|
|
3811
3811
|
break;
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
|
-
else if (
|
|
3815
|
-
const b = e.current.querySelector(`[data-type="select"][data-key="${
|
|
3814
|
+
else if (g.type === "select" && g.key) {
|
|
3815
|
+
const b = e.current.querySelector(`[data-type="select"][data-key="${g.key}"]`);
|
|
3816
3816
|
if (!b || (b.getAttribute("data-value") || "").trim().length === 0) {
|
|
3817
3817
|
y = !1;
|
|
3818
3818
|
break;
|
|
3819
3819
|
}
|
|
3820
|
-
} else if (
|
|
3820
|
+
} else if (g.type === "textarea" && g.key) {
|
|
3821
3821
|
const b = e.current.querySelector(
|
|
3822
|
-
`[data-type="textarea"][data-key="${
|
|
3822
|
+
`[data-type="textarea"][data-key="${g.key}"]`
|
|
3823
3823
|
);
|
|
3824
3824
|
if (!b || (b.value || "").trim().length === 0) {
|
|
3825
3825
|
y = !1;
|
|
3826
3826
|
break;
|
|
3827
3827
|
}
|
|
3828
|
-
} else if (
|
|
3829
|
-
const b = typeof
|
|
3828
|
+
} else if (g.type === "richtext" && g.key) {
|
|
3829
|
+
const b = typeof g.moduleIndex == "number" ? `[data-type="richtext"][data-node-type="report-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"], [data-type="richtext"][data-node-type="markdown-module"][data-key="${g.key}"][data-module-index="${g.moduleIndex}"]` : `[data-type="richtext"][data-key="${g.key}"]`, A = e.current.querySelector(b);
|
|
3830
3830
|
if (A && A.getAttribute("data-is-placeholder") === "true") {
|
|
3831
3831
|
y = !1;
|
|
3832
3832
|
break;
|
|
@@ -3835,21 +3835,21 @@ function vr(e, t, a, l, n, r) {
|
|
|
3835
3835
|
y = !1;
|
|
3836
3836
|
break;
|
|
3837
3837
|
}
|
|
3838
|
-
} else if (
|
|
3839
|
-
const b = e.current.querySelector(`[data-type="datepicker"][data-key="${
|
|
3838
|
+
} else if (g.type === "datepicker" && g.key) {
|
|
3839
|
+
const b = e.current.querySelector(`[data-type="datepicker"][data-key="${g.key}"]`);
|
|
3840
3840
|
if (!b || (b.getAttribute("data-value") || "").trim().length === 0) {
|
|
3841
3841
|
y = !1;
|
|
3842
3842
|
break;
|
|
3843
3843
|
}
|
|
3844
|
-
} else if (
|
|
3844
|
+
} else if (g.type === "number-input" && g.key) {
|
|
3845
3845
|
const b = e.current.querySelector(
|
|
3846
|
-
`[data-type="number-input"][data-key="${
|
|
3846
|
+
`[data-type="number-input"][data-key="${g.key}"]`
|
|
3847
3847
|
);
|
|
3848
3848
|
if (!b || (b.value || "").trim().length === 0) {
|
|
3849
3849
|
y = !1;
|
|
3850
3850
|
break;
|
|
3851
3851
|
}
|
|
3852
|
-
} else if ((
|
|
3852
|
+
} else if ((g.type === "video-url" || g.type === "video-upload") && g.key && n?.[g.key]?.status !== "success") {
|
|
3853
3853
|
y = !1;
|
|
3854
3854
|
break;
|
|
3855
3855
|
}
|
|
@@ -3870,13 +3870,13 @@ const ef = ({
|
|
|
3870
3870
|
Ye(() => {
|
|
3871
3871
|
const c = l.current;
|
|
3872
3872
|
if (!c) return;
|
|
3873
|
-
const d = /* @__PURE__ */ new Map(), h = (
|
|
3874
|
-
const m =
|
|
3873
|
+
const d = /* @__PURE__ */ new Map(), h = (v) => {
|
|
3874
|
+
const m = v.target, y = v.relatedTarget;
|
|
3875
3875
|
!m || !l.current || !l.current.contains(m) || y && l.current.contains(y) || setTimeout(() => {
|
|
3876
3876
|
if (l.current) {
|
|
3877
3877
|
if (e.length === 0) {
|
|
3878
|
-
const
|
|
3879
|
-
n(
|
|
3878
|
+
const g = l.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
|
|
3879
|
+
n(g.length > 0);
|
|
3880
3880
|
return;
|
|
3881
3881
|
}
|
|
3882
3882
|
pa(l), Ka(l, t, a, u), vr(l, t, a, n, u, {
|
|
@@ -3889,24 +3889,24 @@ const ef = ({
|
|
|
3889
3889
|
c.addEventListener("blur", h, !0);
|
|
3890
3890
|
const f = () => {
|
|
3891
3891
|
if (!l.current) return;
|
|
3892
|
-
d.forEach((y,
|
|
3893
|
-
|
|
3892
|
+
d.forEach((y, g) => {
|
|
3893
|
+
g.removeEventListener("blur", y, !1);
|
|
3894
3894
|
}), d.clear();
|
|
3895
|
-
const
|
|
3895
|
+
const v = l.current.querySelectorAll(
|
|
3896
3896
|
'[data-type="variable"][data-multi-key]'
|
|
3897
3897
|
), m = (y) => {
|
|
3898
3898
|
y.stopPropagation(), y.stopImmediatePropagation();
|
|
3899
|
-
const
|
|
3900
|
-
if (!
|
|
3899
|
+
const g = y.target;
|
|
3900
|
+
if (!g || !l.current || !l.current.contains(g))
|
|
3901
3901
|
return;
|
|
3902
|
-
const b =
|
|
3902
|
+
const b = g.closest(
|
|
3903
3903
|
'[data-type="variable"][data-multi-key]'
|
|
3904
3904
|
);
|
|
3905
3905
|
if (!b || !l.current.contains(b))
|
|
3906
3906
|
return;
|
|
3907
3907
|
let A = !1;
|
|
3908
3908
|
if (d.forEach((F, M) => {
|
|
3909
|
-
(M === b || M.contains(
|
|
3909
|
+
(M === b || M.contains(g)) && (A = !0);
|
|
3910
3910
|
}), !A)
|
|
3911
3911
|
return;
|
|
3912
3912
|
const T = b.dataset.multiKey, C = b.dataset.key, _ = b.dataset.index;
|
|
@@ -3952,15 +3952,15 @@ const ef = ({
|
|
|
3952
3952
|
}
|
|
3953
3953
|
}
|
|
3954
3954
|
};
|
|
3955
|
-
|
|
3955
|
+
v.forEach((y) => {
|
|
3956
3956
|
y.addEventListener("blur", m, !1), d.set(y, m);
|
|
3957
3957
|
});
|
|
3958
3958
|
}, E = setTimeout(() => {
|
|
3959
3959
|
f();
|
|
3960
3960
|
}, 0);
|
|
3961
3961
|
return () => {
|
|
3962
|
-
clearTimeout(E), c.removeEventListener("blur", h, !0), d.forEach((
|
|
3963
|
-
m.removeEventListener("blur",
|
|
3962
|
+
clearTimeout(E), c.removeEventListener("blur", h, !0), d.forEach((v, m) => {
|
|
3963
|
+
m.removeEventListener("blur", v, !1);
|
|
3964
3964
|
}), d.clear();
|
|
3965
3965
|
};
|
|
3966
3966
|
}, [
|
|
@@ -3991,10 +3991,10 @@ const ef = ({
|
|
|
3991
3991
|
setActiveBatchKey: h,
|
|
3992
3992
|
setActiveBatchStartIndex: f,
|
|
3993
3993
|
setActiveFileKey: E,
|
|
3994
|
-
isDraggingRef:
|
|
3994
|
+
isDraggingRef: v,
|
|
3995
3995
|
richtextPrevScrollTopRef: m,
|
|
3996
3996
|
videoState: y,
|
|
3997
|
-
setVideoState:
|
|
3997
|
+
setVideoState: g,
|
|
3998
3998
|
videoFileInputRef: b,
|
|
3999
3999
|
activeVideoKeyRef: A,
|
|
4000
4000
|
onImagePreview: T
|
|
@@ -4115,7 +4115,7 @@ const ef = ({
|
|
|
4115
4115
|
}
|
|
4116
4116
|
const L = w.closest('[data-type="variable"]');
|
|
4117
4117
|
if (L) {
|
|
4118
|
-
if (
|
|
4118
|
+
if (v.current || L.getAttribute("data-report-url"))
|
|
4119
4119
|
return;
|
|
4120
4120
|
if (L.dataset.variableRender !== "antd-textarea") {
|
|
4121
4121
|
const z = !!w.closest(".variable-info-icon"), S = L.classList.contains("show-placeholder") || (L.innerText || "").replace(/[\u200B\n]/g, "").trim().length === 0;
|
|
@@ -4152,7 +4152,7 @@ const ef = ({
|
|
|
4152
4152
|
if ($) {
|
|
4153
4153
|
k.preventDefault(), k.stopPropagation();
|
|
4154
4154
|
const S = $.closest('[data-type="video-url"], [data-type="video-upload"]')?.dataset.key;
|
|
4155
|
-
S &&
|
|
4155
|
+
S && g && g((q) => {
|
|
4156
4156
|
const V = { ...q };
|
|
4157
4157
|
return delete V[S], V;
|
|
4158
4158
|
});
|
|
@@ -4240,7 +4240,7 @@ const ef = ({
|
|
|
4240
4240
|
s,
|
|
4241
4241
|
o,
|
|
4242
4242
|
d,
|
|
4243
|
-
|
|
4243
|
+
v,
|
|
4244
4244
|
n,
|
|
4245
4245
|
a,
|
|
4246
4246
|
m,
|
|
@@ -4248,7 +4248,7 @@ const ef = ({
|
|
|
4248
4248
|
f,
|
|
4249
4249
|
E,
|
|
4250
4250
|
c,
|
|
4251
|
-
|
|
4251
|
+
g,
|
|
4252
4252
|
b,
|
|
4253
4253
|
A,
|
|
4254
4254
|
T
|
|
@@ -4270,7 +4270,7 @@ const ef = ({
|
|
|
4270
4270
|
setMultiVariableCounts: h,
|
|
4271
4271
|
savedCursorRef: f,
|
|
4272
4272
|
videoState: E,
|
|
4273
|
-
resolvedReportNamesRef:
|
|
4273
|
+
resolvedReportNamesRef: v,
|
|
4274
4274
|
reportAnalyzeState: m,
|
|
4275
4275
|
requireReportUrlAnalyze: y
|
|
4276
4276
|
}) => ue(() => {
|
|
@@ -4430,11 +4430,11 @@ const ef = ({
|
|
|
4430
4430
|
const I = [...F];
|
|
4431
4431
|
for (let H = O; H < I.length - 1; H++)
|
|
4432
4432
|
I[H] = I[H + 1];
|
|
4433
|
-
if (I.pop(),
|
|
4433
|
+
if (I.pop(), v?.current) {
|
|
4434
4434
|
for (let H = 0; H < T; H++)
|
|
4435
|
-
delete
|
|
4435
|
+
delete v.current[`${b.key}_${H}`];
|
|
4436
4436
|
I.forEach((H, N) => {
|
|
4437
|
-
H && (
|
|
4437
|
+
H && (v.current[`${b.key}_${N}`] = H);
|
|
4438
4438
|
});
|
|
4439
4439
|
}
|
|
4440
4440
|
const x = {};
|
|
@@ -4505,7 +4505,7 @@ const ef = ({
|
|
|
4505
4505
|
i,
|
|
4506
4506
|
h,
|
|
4507
4507
|
n,
|
|
4508
|
-
|
|
4508
|
+
v,
|
|
4509
4509
|
m,
|
|
4510
4510
|
y,
|
|
4511
4511
|
E
|
|
@@ -4562,18 +4562,18 @@ const ef = ({
|
|
|
4562
4562
|
"F12"
|
|
4563
4563
|
].includes(u.key) && !u.ctrlKey && !u.metaKey && !u.altKey) {
|
|
4564
4564
|
u.preventDefault();
|
|
4565
|
-
const E = h,
|
|
4565
|
+
const E = h, v = E.dataset.key || "", m = E.getAttribute("data-node-type") || "", y = E.dataset.multiKey || "";
|
|
4566
4566
|
E.removeAttribute("data-report-url"), E.removeAttribute("data-report-name"), E.classList.remove("rte-report-name-chip"), E.contentEditable = "true";
|
|
4567
|
-
const
|
|
4568
|
-
|
|
4567
|
+
const g = E.querySelector(".rte-report-dropdown-host");
|
|
4568
|
+
g?.parentNode && g.parentNode.removeChild(g);
|
|
4569
4569
|
const b = E.querySelector(".rte-report-chip-clear-host");
|
|
4570
|
-
if (b?.parentNode && b.parentNode.removeChild(b), E.textContent = "", E.classList.add("show-placeholder"),
|
|
4571
|
-
|
|
4570
|
+
if (b?.parentNode && b.parentNode.removeChild(b), E.textContent = "", E.classList.add("show-placeholder"), g)
|
|
4571
|
+
g.classList.remove("hidden"), g.style.display = "", E.appendChild(g);
|
|
4572
4572
|
else {
|
|
4573
4573
|
const A = document.createElement("span");
|
|
4574
|
-
A.contentEditable = "false", A.className = "rte-report-dropdown-host", A.dataset.key =
|
|
4574
|
+
A.contentEditable = "false", A.className = "rte-report-dropdown-host", A.dataset.key = v, A.dataset.nodeType = m, y && (A.dataset.multiKey = y), E.appendChild(A);
|
|
4575
4575
|
}
|
|
4576
|
-
E.classList.add("rte-variable-with-icon"), i?.(
|
|
4576
|
+
E.classList.add("rte-variable-with-icon"), i?.(v, m), E.focus(), u.key.length === 1 && (document.execCommand("insertText", !1, u.key), E.classList.remove("show-placeholder")), n();
|
|
4577
4577
|
return;
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
@@ -4593,8 +4593,8 @@ const ef = ({
|
|
|
4593
4593
|
const y = d.dataset.multiKey;
|
|
4594
4594
|
if (y)
|
|
4595
4595
|
return a.find((T) => Ke(T.type) && T.key === y)?.allowNewline !== !1;
|
|
4596
|
-
const
|
|
4597
|
-
return a.find((A) => A.type === "variable" && A.key ===
|
|
4596
|
+
const g = d.dataset.key;
|
|
4597
|
+
return a.find((A) => A.type === "variable" && A.key === g)?.allowNewline !== !1;
|
|
4598
4598
|
})()) {
|
|
4599
4599
|
u.preventDefault();
|
|
4600
4600
|
return;
|
|
@@ -4604,10 +4604,10 @@ const ef = ({
|
|
|
4604
4604
|
if (m && m.rangeCount > 0) {
|
|
4605
4605
|
const y = m.getRangeAt(0);
|
|
4606
4606
|
y.deleteContents();
|
|
4607
|
-
const
|
|
4608
|
-
y.insertNode(
|
|
4607
|
+
const g = document.createElement("br");
|
|
4608
|
+
y.insertNode(g);
|
|
4609
4609
|
const b = document.createTextNode("");
|
|
4610
|
-
|
|
4610
|
+
g.parentNode?.insertBefore(b, g.nextSibling), y.setStart(b, 0), y.collapse(!0), m.removeAllRanges(), m.addRange(y);
|
|
4611
4611
|
}
|
|
4612
4612
|
n();
|
|
4613
4613
|
return;
|
|
@@ -4656,8 +4656,8 @@ const ef = ({
|
|
|
4656
4656
|
if (c && c.rangeCount > 0) {
|
|
4657
4657
|
const d = c.getRangeAt(0), h = c.anchorNode;
|
|
4658
4658
|
if (t) {
|
|
4659
|
-
let E = null,
|
|
4660
|
-
if (h && (h.nodeType === Node.ELEMENT_NODE ? (E = h.closest(".tag-node"),
|
|
4659
|
+
let E = null, v = null;
|
|
4660
|
+
if (h && (h.nodeType === Node.ELEMENT_NODE ? (E = h.closest(".tag-node"), v = h.closest('[data-type="text"]')) : h.nodeType === Node.TEXT_NODE && h.parentElement && (E = h.parentElement.closest(".tag-node"), v = h.parentElement.closest('[data-type="text"]'))), (E || v) && d.collapsed && d.startOffset === 0) {
|
|
4661
4661
|
u.preventDefault();
|
|
4662
4662
|
return;
|
|
4663
4663
|
}
|
|
@@ -4666,7 +4666,7 @@ const ef = ({
|
|
|
4666
4666
|
if (h && (h.nodeType === Node.ELEMENT_NODE ? f = h.closest('[data-type="variable"]') : h.nodeType === Node.TEXT_NODE && h.parentElement && (f = h.parentElement.closest('[data-type="variable"]'))), f) {
|
|
4667
4667
|
if (f.getAttribute("data-report-url")) {
|
|
4668
4668
|
u.preventDefault();
|
|
4669
|
-
const y = f.dataset.key || "",
|
|
4669
|
+
const y = f.dataset.key || "", g = f.getAttribute("data-node-type") || "", b = f.dataset.multiKey || "";
|
|
4670
4670
|
f.removeAttribute("data-report-url"), f.removeAttribute("data-report-name"), f.classList.remove("rte-report-name-chip"), f.contentEditable = "true";
|
|
4671
4671
|
const A = f.querySelector(".rte-report-dropdown-host");
|
|
4672
4672
|
A?.parentNode && A.parentNode.removeChild(A);
|
|
@@ -4675,9 +4675,9 @@ const ef = ({
|
|
|
4675
4675
|
A.classList.remove("hidden"), A.style.display = "", f.appendChild(A);
|
|
4676
4676
|
else {
|
|
4677
4677
|
const C = document.createElement("span");
|
|
4678
|
-
C.contentEditable = "false", C.className = "rte-report-dropdown-host", C.dataset.key = y, C.dataset.nodeType =
|
|
4678
|
+
C.contentEditable = "false", C.className = "rte-report-dropdown-host", C.dataset.key = y, C.dataset.nodeType = g, b && (C.dataset.multiKey = b), f.appendChild(C);
|
|
4679
4679
|
}
|
|
4680
|
-
f.classList.add("rte-variable-with-icon"), i?.(y,
|
|
4680
|
+
f.classList.add("rte-variable-with-icon"), i?.(y, g), f.focus(), n();
|
|
4681
4681
|
return;
|
|
4682
4682
|
}
|
|
4683
4683
|
if (!d.collapsed)
|
|
@@ -4691,7 +4691,7 @@ const ef = ({
|
|
|
4691
4691
|
try {
|
|
4692
4692
|
const y = document.createRange();
|
|
4693
4693
|
y.selectNodeContents(f), y.setEnd(d.startContainer, d.startOffset);
|
|
4694
|
-
const
|
|
4694
|
+
const g = y.cloneContents(), b = document.createTreeWalker(g, NodeFilter.SHOW_ALL);
|
|
4695
4695
|
for (; b.nextNode(); ) {
|
|
4696
4696
|
const A = b.currentNode;
|
|
4697
4697
|
if (A.nodeType === Node.ELEMENT_NODE) {
|
|
@@ -4763,35 +4763,35 @@ const ef = ({
|
|
|
4763
4763
|
const m = f.closest(".tag-node"), y = f.closest('[data-type="text"]');
|
|
4764
4764
|
if (m || y) {
|
|
4765
4765
|
h.preventDefault(), h.stopPropagation();
|
|
4766
|
-
const
|
|
4767
|
-
|
|
4766
|
+
const g = window.getSelection();
|
|
4767
|
+
g && g.removeAllRanges();
|
|
4768
4768
|
return;
|
|
4769
4769
|
}
|
|
4770
4770
|
}
|
|
4771
|
-
const
|
|
4772
|
-
if (
|
|
4771
|
+
const v = f.closest('[data-type="variable"]');
|
|
4772
|
+
if (v) {
|
|
4773
4773
|
if (i("mousedown on variable", {
|
|
4774
|
-
key:
|
|
4775
|
-
multiKey:
|
|
4776
|
-
nodeType:
|
|
4777
|
-
render:
|
|
4778
|
-
classes:
|
|
4779
|
-
}),
|
|
4774
|
+
key: v.dataset.key,
|
|
4775
|
+
multiKey: v.dataset.multiKey,
|
|
4776
|
+
nodeType: v.getAttribute("data-node-type") || "",
|
|
4777
|
+
render: v.dataset.variableRender || "v1",
|
|
4778
|
+
classes: v.className
|
|
4779
|
+
}), v.dataset.variableRender === "antd-textarea")
|
|
4780
4780
|
return;
|
|
4781
|
-
if (
|
|
4782
|
-
h.preventDefault(),
|
|
4781
|
+
if (v.getAttribute("data-report-url")) {
|
|
4782
|
+
h.preventDefault(), v.hasAttribute("tabindex") || v.setAttribute("tabindex", "-1"), v.focus(), window.getSelection()?.removeAllRanges();
|
|
4783
4783
|
return;
|
|
4784
4784
|
}
|
|
4785
|
-
const m = !!f.closest(".variable-info-icon"), y =
|
|
4786
|
-
if (i("v1 variable mousedown", { isPlaceholder: y, isOnIcon: m, innerText:
|
|
4785
|
+
const m = !!f.closest(".variable-info-icon"), y = v.classList.contains("show-placeholder") || (v.innerText || "").replace(/[\u200B\n]/g, "").trim().length === 0;
|
|
4786
|
+
if (i("v1 variable mousedown", { isPlaceholder: y, isOnIcon: m, innerText: v.innerText }), y && !m) {
|
|
4787
4787
|
h.preventDefault(), window.requestAnimationFrame(() => {
|
|
4788
4788
|
u("raf before setRange (mousedown)");
|
|
4789
|
-
const
|
|
4790
|
-
if (!
|
|
4791
|
-
const b =
|
|
4789
|
+
const g = window.getSelection();
|
|
4790
|
+
if (!g) return;
|
|
4791
|
+
const b = v;
|
|
4792
4792
|
b.focus();
|
|
4793
4793
|
const A = document.createTreeWalker(b, NodeFilter.SHOW_TEXT), T = A.nextNode() ? A.currentNode : null, C = document.createRange();
|
|
4794
|
-
T ? (C.setStart(T, 0), C.collapse(!0)) : (C.selectNodeContents(b), C.collapse(!0)),
|
|
4794
|
+
T ? (C.setStart(T, 0), C.collapse(!0)) : (C.selectNodeContents(b), C.collapse(!0)), g.removeAllRanges(), g.addRange(C), u("raf after setRange (mousedown)");
|
|
4795
4795
|
});
|
|
4796
4796
|
return;
|
|
4797
4797
|
}
|
|
@@ -4800,8 +4800,8 @@ const ef = ({
|
|
|
4800
4800
|
r.current = { x: h.clientX, y: h.clientY }, n.current = !1, f.closest(".file-remove-btn") && (h.preventDefault(), h.stopPropagation());
|
|
4801
4801
|
}, [a, n, e, r, t, l]), o = ue((h) => {
|
|
4802
4802
|
if (!h.target.closest('[data-type="variable"]') && r.current) {
|
|
4803
|
-
const
|
|
4804
|
-
(
|
|
4803
|
+
const v = Math.abs(h.clientX - r.current.x), m = Math.abs(h.clientY - r.current.y);
|
|
4804
|
+
(v > 3 || m > 3) && (n.current = !0);
|
|
4805
4805
|
}
|
|
4806
4806
|
}, [n, r]), c = ue((h) => {
|
|
4807
4807
|
const f = h.target;
|
|
@@ -4813,20 +4813,20 @@ const ef = ({
|
|
|
4813
4813
|
return;
|
|
4814
4814
|
}
|
|
4815
4815
|
if (E.dataset.variableRender !== "antd-textarea") {
|
|
4816
|
-
const
|
|
4816
|
+
const v = !!f.closest(".variable-info-icon"), m = E.classList.contains("show-placeholder") || (E.innerText || "").replace(/[\u200B\n]/g, "").trim().length === 0;
|
|
4817
4817
|
i("v1 variable mouseup", {
|
|
4818
4818
|
key: E.dataset.key,
|
|
4819
4819
|
isPlaceholder: m,
|
|
4820
|
-
isOnIcon:
|
|
4820
|
+
isOnIcon: v,
|
|
4821
4821
|
classes: E.className
|
|
4822
|
-
}), m && !
|
|
4822
|
+
}), m && !v && (h.preventDefault(), window.requestAnimationFrame(() => {
|
|
4823
4823
|
u("raf before setRange (mouseup)");
|
|
4824
4824
|
const y = window.getSelection();
|
|
4825
4825
|
if (!y) return;
|
|
4826
|
-
const
|
|
4827
|
-
|
|
4828
|
-
const b = document.createTreeWalker(
|
|
4829
|
-
A ? (T.setStart(A, 0), T.collapse(!0)) : (T.selectNodeContents(
|
|
4826
|
+
const g = E;
|
|
4827
|
+
g.focus();
|
|
4828
|
+
const b = document.createTreeWalker(g, NodeFilter.SHOW_TEXT), A = b.nextNode() ? b.currentNode : null, T = document.createRange();
|
|
4829
|
+
A ? (T.setStart(A, 0), T.collapse(!0)) : (T.selectNodeContents(g), T.collapse(!0)), y.removeAllRanges(), y.addRange(T), u("raf after setRange (mouseup)");
|
|
4830
4830
|
}));
|
|
4831
4831
|
}
|
|
4832
4832
|
r.current = null, n.current = !1;
|
|
@@ -4836,8 +4836,8 @@ const ef = ({
|
|
|
4836
4836
|
}, [n, r]), d = ue((h) => {
|
|
4837
4837
|
const E = h.target.closest('[data-type="variable"]');
|
|
4838
4838
|
if (E) {
|
|
4839
|
-
const
|
|
4840
|
-
if (
|
|
4839
|
+
const v = window.getSelection();
|
|
4840
|
+
if (v) {
|
|
4841
4841
|
const m = document.createRange(), y = E.textContent || "";
|
|
4842
4842
|
if (y.replace(/\u200B/g, "")) {
|
|
4843
4843
|
let b = 0, A = y.length;
|
|
@@ -4846,7 +4846,7 @@ const ef = ({
|
|
|
4846
4846
|
T && T.nodeType === Node.TEXT_NODE ? (m.setStart(T, b), m.setEnd(T, A)) : m.selectNodeContents(E);
|
|
4847
4847
|
} else
|
|
4848
4848
|
m.selectNodeContents(E), m.collapse(!0);
|
|
4849
|
-
|
|
4849
|
+
v.removeAllRanges(), v.addRange(m);
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
4852
|
}, []);
|
|
@@ -4867,10 +4867,10 @@ const ef = ({
|
|
|
4867
4867
|
setFooterFiles: h,
|
|
4868
4868
|
footerFiles: f,
|
|
4869
4869
|
messageApi: E,
|
|
4870
|
-
onPasteUnsupported:
|
|
4870
|
+
onPasteUnsupported: v
|
|
4871
4871
|
}) => ue(
|
|
4872
4872
|
(m) => {
|
|
4873
|
-
const y = m.target,
|
|
4873
|
+
const y = m.target, g = y?.closest?.('[data-type="variable"]') || null, b = g?.querySelector(".rte-report-dropdown-host") && g.dataset.key ? g.dataset.key : void 0;
|
|
4874
4874
|
document.dispatchEvent(
|
|
4875
4875
|
new CustomEvent("rte-report-dropdown-force-close", {
|
|
4876
4876
|
detail: b ? { exceptKey: b } : void 0
|
|
@@ -4949,7 +4949,7 @@ const ef = ({
|
|
|
4949
4949
|
const L = (x.name || "").split(".").pop()?.toLowerCase() || "";
|
|
4950
4950
|
F.includes(L) ? M.push(x) : I = !0;
|
|
4951
4951
|
}
|
|
4952
|
-
if (I &&
|
|
4952
|
+
if (I && v?.(), M.length > 0) {
|
|
4953
4953
|
const L = f.reduce((H, N) => H + N.size, 0), $ = [];
|
|
4954
4954
|
let R = L;
|
|
4955
4955
|
for (const H of M) {
|
|
@@ -5118,7 +5118,7 @@ const ef = ({
|
|
|
5118
5118
|
o,
|
|
5119
5119
|
c,
|
|
5120
5120
|
a,
|
|
5121
|
-
|
|
5121
|
+
v,
|
|
5122
5122
|
u,
|
|
5123
5123
|
h,
|
|
5124
5124
|
f,
|
|
@@ -5156,15 +5156,15 @@ const uf = ({
|
|
|
5156
5156
|
}) => ue(() => {
|
|
5157
5157
|
if (r || i || u || !s || !o.current) return;
|
|
5158
5158
|
if (e.length === 0) {
|
|
5159
|
-
const
|
|
5160
|
-
if (!
|
|
5159
|
+
const g = o.current.textContent?.replace(/[\u200B\n]/g, "").trim() || "";
|
|
5160
|
+
if (!g && a.length === 0) return;
|
|
5161
5161
|
if (a.length > 0) {
|
|
5162
5162
|
const b = new FormData();
|
|
5163
|
-
b.append("fullPrompt",
|
|
5163
|
+
b.append("fullPrompt", g), a.forEach((A) => {
|
|
5164
5164
|
b.append("fileUrls", A);
|
|
5165
|
-
}), n(b,
|
|
5165
|
+
}), n(b, g), l();
|
|
5166
5166
|
} else
|
|
5167
|
-
n(
|
|
5167
|
+
n(g, g);
|
|
5168
5168
|
if (o.current) {
|
|
5169
5169
|
o.current.textContent = "";
|
|
5170
5170
|
const b = new Event("input", { bubbles: !0 });
|
|
@@ -5174,12 +5174,12 @@ const uf = ({
|
|
|
5174
5174
|
}
|
|
5175
5175
|
const f = o.current;
|
|
5176
5176
|
let E = "";
|
|
5177
|
-
const
|
|
5178
|
-
if (!(
|
|
5179
|
-
if (
|
|
5180
|
-
E += (
|
|
5181
|
-
else if (
|
|
5182
|
-
const b =
|
|
5177
|
+
const v = {}, m = (g) => {
|
|
5178
|
+
if (!(g.nodeType === Node.ELEMENT_NODE && g.style.display === "none")) {
|
|
5179
|
+
if (g.nodeType === Node.TEXT_NODE)
|
|
5180
|
+
E += (g.textContent || "").replace(/\u200B/g, "");
|
|
5181
|
+
else if (g.nodeType === Node.ELEMENT_NODE) {
|
|
5182
|
+
const b = g, A = b.dataset.type, T = b.dataset.key;
|
|
5183
5183
|
if (A === "variable" && T) {
|
|
5184
5184
|
let C = "";
|
|
5185
5185
|
const _ = document.createTreeWalker(
|
|
@@ -5198,60 +5198,60 @@ const uf = ({
|
|
|
5198
5198
|
if (w) {
|
|
5199
5199
|
const O = b.dataset.multiKey;
|
|
5200
5200
|
if (O) {
|
|
5201
|
-
(!
|
|
5202
|
-
const D =
|
|
5201
|
+
(!v[O] || !Array.isArray(v[O])) && (v[O] = []);
|
|
5202
|
+
const D = v[O];
|
|
5203
5203
|
D.push(w), D.length > 1 && (E += " "), E += w;
|
|
5204
5204
|
} else
|
|
5205
|
-
|
|
5205
|
+
v[T] = w, E += w;
|
|
5206
5206
|
if (b.dataset.nodeType === "report-url")
|
|
5207
|
-
if (
|
|
5208
|
-
|
|
5207
|
+
if (v.url === void 0)
|
|
5208
|
+
v.url = w;
|
|
5209
5209
|
else {
|
|
5210
|
-
const D =
|
|
5211
|
-
Array.isArray(D) ? D.push(w) :
|
|
5210
|
+
const D = v.url;
|
|
5211
|
+
Array.isArray(D) ? D.push(w) : v.url = [String(D), w];
|
|
5212
5212
|
}
|
|
5213
5213
|
if (b.dataset.nodeType === "markdown-name") {
|
|
5214
5214
|
const D = `${T}__sourceText`;
|
|
5215
|
-
|
|
5215
|
+
v[D] === void 0 && (v[D] = w);
|
|
5216
5216
|
}
|
|
5217
5217
|
if (b.dataset.nodeType === "markdown") {
|
|
5218
5218
|
const D = b.dataset.sourceTextKey || `${T}__sourceText`;
|
|
5219
|
-
if (
|
|
5220
|
-
|
|
5219
|
+
if (v[D] === void 0)
|
|
5220
|
+
v[D] = w;
|
|
5221
5221
|
else {
|
|
5222
|
-
const M =
|
|
5223
|
-
Array.isArray(M) ? M.push(w) :
|
|
5222
|
+
const M = v[D];
|
|
5223
|
+
Array.isArray(M) ? M.push(w) : v[D] = [String(M), w];
|
|
5224
5224
|
}
|
|
5225
5225
|
const F = `${T}__markdown`;
|
|
5226
|
-
|
|
5226
|
+
v[F] === void 0 && (v[F] = [Yu(w)]);
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
5229
5229
|
} else if ((A === "select" || A === "searchable-select" || A === "cascader") && T) {
|
|
5230
5230
|
const C = (b.getAttribute("data-value") || "").trim();
|
|
5231
|
-
C && (
|
|
5231
|
+
C && (v[T] = C, E += C);
|
|
5232
5232
|
} else if (A === "textarea" && T) {
|
|
5233
5233
|
const _ = (b.value || "").replace(/\u200B/g, "").trim();
|
|
5234
|
-
_ && (
|
|
5234
|
+
_ && (v[T] = _, E += _);
|
|
5235
5235
|
} else if (A === "richtext" && T) {
|
|
5236
5236
|
const C = b, _ = C.dataset.nodeType, k = (C.textContent || "").replace(/\u200B/g, "").trim();
|
|
5237
5237
|
if (k)
|
|
5238
5238
|
if (_ === "report-module" || _ === "markdown-module") {
|
|
5239
|
-
(!
|
|
5240
|
-
const w =
|
|
5239
|
+
(!v[T] || !Array.isArray(v[T])) && (v[T] = []);
|
|
5240
|
+
const w = v[T];
|
|
5241
5241
|
w.push(k), w.length > 1 && (E += " "), E += k;
|
|
5242
5242
|
} else
|
|
5243
|
-
|
|
5243
|
+
v[T] = k, E += k;
|
|
5244
5244
|
} else if (A === "datepicker" && T) {
|
|
5245
5245
|
const _ = (b.getAttribute("data-value") || "").trim();
|
|
5246
5246
|
if (_)
|
|
5247
5247
|
if (_.includes(",")) {
|
|
5248
5248
|
const k = _.split(",");
|
|
5249
|
-
k.length === 2 ? (
|
|
5249
|
+
k.length === 2 ? (v[T] = k, E += `[${k[0]}, ${k[1]}]`) : (v[T] = _, E += _);
|
|
5250
5250
|
} else
|
|
5251
|
-
|
|
5251
|
+
v[T] = _, E += _;
|
|
5252
5252
|
} else if (A === "number-input" && T) {
|
|
5253
5253
|
const _ = (b.value || "").trim();
|
|
5254
|
-
_ && (
|
|
5254
|
+
_ && (v[T] = _, E += _);
|
|
5255
5255
|
} else if (A === "upload" && T) {
|
|
5256
5256
|
const C = b.dataset.batchKey;
|
|
5257
5257
|
if (C) {
|
|
@@ -5262,19 +5262,19 @@ const uf = ({
|
|
|
5262
5262
|
const O = `${C}-${w}`, D = t[O];
|
|
5263
5263
|
D && k.push(D);
|
|
5264
5264
|
}
|
|
5265
|
-
|
|
5266
|
-
} else if (
|
|
5265
|
+
v[C] || (v[C] = k.length > 0 ? k : null, k.length > 0 && (E += ` [附带${k.length}个文件: ${k.map((w) => typeof w == "string" ? w.split("/").pop() || "file" : w.name).join(", ")}] `));
|
|
5266
|
+
} else if (v[T] = t[T] ?? null, t[T]) {
|
|
5267
5267
|
const k = t[T];
|
|
5268
5268
|
E += ` [附带文件: ${typeof k == "string" ? k.split("/").pop() || "file" : k.name}] `;
|
|
5269
5269
|
}
|
|
5270
|
-
} else if (
|
|
5270
|
+
} else if (v[T] = t[T] ?? null, t[T]) {
|
|
5271
5271
|
const _ = t[T];
|
|
5272
5272
|
E += ` [附带文件: ${typeof _ == "string" ? _.split("/").pop() || "file" : _.name}] `;
|
|
5273
5273
|
}
|
|
5274
5274
|
} else if ((A === "video-url" || A === "video-upload") && T) {
|
|
5275
5275
|
const C = h?.[T];
|
|
5276
5276
|
if (C?.status === "success" && C.videoUrl) {
|
|
5277
|
-
|
|
5277
|
+
v[T] = C.videoUrl, C.file && (v[`${T}__file`] = C.file);
|
|
5278
5278
|
const _ = C.fileName || "视频";
|
|
5279
5279
|
E += ` [附带视频: ${_}] `;
|
|
5280
5280
|
}
|
|
@@ -5286,23 +5286,23 @@ const uf = ({
|
|
|
5286
5286
|
}
|
|
5287
5287
|
};
|
|
5288
5288
|
if (f.childNodes.forEach(m), E = E.trim(), !E) return;
|
|
5289
|
-
Object.keys(c).forEach((
|
|
5290
|
-
const b = c[
|
|
5289
|
+
Object.keys(c).forEach((g) => {
|
|
5290
|
+
const b = c[g];
|
|
5291
5291
|
if (!b || !b.modules || b.modules.length === 0) return;
|
|
5292
5292
|
const A = b.modules.map((T) => (T?.markdown || "").trim()).filter((T) => T.length > 0);
|
|
5293
|
-
A.length !== 0 && (
|
|
5294
|
-
}), Object.keys(d).forEach((
|
|
5295
|
-
const b = d[
|
|
5293
|
+
A.length !== 0 && (v[`${g}__markdown`] = A);
|
|
5294
|
+
}), Object.keys(d).forEach((g) => {
|
|
5295
|
+
const b = d[g];
|
|
5296
5296
|
if (!b || !b.modules || b.modules.length === 0) return;
|
|
5297
5297
|
const A = b.modules.map((T) => (T?.markdown || "").trim()).filter((T) => T.length > 0);
|
|
5298
|
-
A.length !== 0 && (
|
|
5298
|
+
A.length !== 0 && (v[`${g}__markdown`] = A);
|
|
5299
5299
|
}), (async () => {
|
|
5300
|
-
for (const b of Object.keys(
|
|
5301
|
-
const A =
|
|
5300
|
+
for (const b of Object.keys(v)) {
|
|
5301
|
+
const A = v[b];
|
|
5302
5302
|
if (typeof A == "string" && A.startsWith("http")) {
|
|
5303
5303
|
if (e.find((C) => C.type === "upload" && C.key === b)) {
|
|
5304
5304
|
const C = await bi(A);
|
|
5305
|
-
C && (
|
|
5305
|
+
C && (v[b] = C);
|
|
5306
5306
|
}
|
|
5307
5307
|
} else if (Array.isArray(A) && e.find((C) => C.type === "upload" && C.key === b)) {
|
|
5308
5308
|
for (let C = 0; C < A.length; C++)
|
|
@@ -5312,12 +5312,12 @@ const uf = ({
|
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
|
-
const
|
|
5316
|
-
|
|
5317
|
-
const A =
|
|
5315
|
+
const g = new FormData();
|
|
5316
|
+
g.append("fullPrompt", E), Object.keys(v).forEach((b) => {
|
|
5317
|
+
const A = v[b];
|
|
5318
5318
|
if (A != null)
|
|
5319
5319
|
if (A instanceof File)
|
|
5320
|
-
|
|
5320
|
+
g.append(b, A);
|
|
5321
5321
|
else if (Array.isArray(A)) {
|
|
5322
5322
|
const T = e.some(
|
|
5323
5323
|
(w) => Ke(w.type) && w.key === b
|
|
@@ -5325,14 +5325,14 @@ const uf = ({
|
|
|
5325
5325
|
(w) => w.type === "report-url" && w.key === b
|
|
5326
5326
|
), _ = b.endsWith("__markdown");
|
|
5327
5327
|
T || C || _ || b === "url" ? A.forEach((w) => {
|
|
5328
|
-
w != null && w !== "" &&
|
|
5328
|
+
w != null && w !== "" && g.append(b, String(w));
|
|
5329
5329
|
}) : A.forEach((w, O) => {
|
|
5330
|
-
w != null && (w instanceof File ?
|
|
5330
|
+
w != null && (w instanceof File ? g.append(`${b}[${O}]`, w) : typeof w == "string" ? g.append(`${b}[${O}]`, w) : g.append(`${b}[${O}]`, String(w)));
|
|
5331
5331
|
});
|
|
5332
|
-
} else typeof A == "string" ?
|
|
5332
|
+
} else typeof A == "string" ? g.append(b, A) : g.append(b, String(A));
|
|
5333
5333
|
}), a.length > 0 && a.forEach((b) => {
|
|
5334
|
-
|
|
5335
|
-
}), n(
|
|
5334
|
+
g.append("fileUrls", b);
|
|
5335
|
+
}), n(g, E), a.length > 0 && l();
|
|
5336
5336
|
})();
|
|
5337
5337
|
}, [
|
|
5338
5338
|
e,
|
|
@@ -5709,11 +5709,11 @@ function xf({
|
|
|
5709
5709
|
} = e;
|
|
5710
5710
|
let f = d, E = h;
|
|
5711
5711
|
c.forEach(({
|
|
5712
|
-
contentBoxSize:
|
|
5712
|
+
contentBoxSize: v,
|
|
5713
5713
|
contentRect: m,
|
|
5714
5714
|
target: y
|
|
5715
5715
|
}) => {
|
|
5716
|
-
y && y !== e.el || (f = m ? m.width : (
|
|
5716
|
+
y && y !== e.el || (f = m ? m.width : (v[0] || v).inlineSize, E = m ? m.height : (v[0] || v).blockSize);
|
|
5717
5717
|
}), (f !== d || E !== h) && i();
|
|
5718
5718
|
});
|
|
5719
5719
|
}), n.observe(e.el));
|
|
@@ -5854,15 +5854,15 @@ function Sf() {
|
|
|
5854
5854
|
const h = [], f = [];
|
|
5855
5855
|
let E = a.slidesOffsetBefore;
|
|
5856
5856
|
typeof E == "function" && (E = a.slidesOffsetBefore.call(e));
|
|
5857
|
-
let
|
|
5858
|
-
typeof
|
|
5859
|
-
const m = e.snapGrid.length, y = e.slidesGrid.length,
|
|
5857
|
+
let v = a.slidesOffsetAfter;
|
|
5858
|
+
typeof v == "function" && (v = a.slidesOffsetAfter.call(e));
|
|
5859
|
+
const m = e.snapGrid.length, y = e.slidesGrid.length, g = e.size - E - v;
|
|
5860
5860
|
let b = a.spaceBetween, A = -E, T = 0, C = 0;
|
|
5861
|
-
if (typeof
|
|
5861
|
+
if (typeof g > "u")
|
|
5862
5862
|
return;
|
|
5863
|
-
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 *
|
|
5863
|
+
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * g : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - E - v, o.forEach((O) => {
|
|
5864
5864
|
r ? O.style.marginLeft = "" : O.style.marginRight = "", O.style.marginBottom = "", O.style.marginTop = "";
|
|
5865
|
-
}), a.centeredSlides && a.cssMode && (ra(l, "--swiper-centered-offset-before", ""), ra(l, "--swiper-centered-offset-after", "")), a.cssMode && (ra(l, "--swiper-slides-offset-before", `${E}px`), ra(l, "--swiper-slides-offset-after", `${
|
|
5865
|
+
}), a.centeredSlides && a.cssMode && (ra(l, "--swiper-centered-offset-before", ""), ra(l, "--swiper-centered-offset-after", "")), a.cssMode && (ra(l, "--swiper-slides-offset-before", `${E}px`), ra(l, "--swiper-slides-offset-after", `${v}px`));
|
|
5866
5866
|
const _ = a.grid && a.grid.rows > 1 && e.grid;
|
|
5867
5867
|
_ ? e.grid.initSlides(o) : e.grid && e.grid.unsetSlides();
|
|
5868
5868
|
let k;
|
|
@@ -5892,11 +5892,11 @@ function Sf() {
|
|
|
5892
5892
|
}
|
|
5893
5893
|
M && (D.style.transform = M), I && (D.style.webkitTransform = I), a.roundLengths && (k = Math.floor(k));
|
|
5894
5894
|
} else
|
|
5895
|
-
k = (
|
|
5896
|
-
D && (D.swiperSlideSize = k), f.push(k), a.centeredSlides ? (A = A + k / 2 + T / 2 + b, T === 0 && O !== 0 && (A = A -
|
|
5895
|
+
k = (g - (a.slidesPerView - 1) * b) / a.slidesPerView, a.roundLengths && (k = Math.floor(k)), D && (D.style[e.getDirectionLabel("width")] = `${k}px`);
|
|
5896
|
+
D && (D.swiperSlideSize = k), f.push(k), a.centeredSlides ? (A = A + k / 2 + T / 2 + b, T === 0 && O !== 0 && (A = A - g / 2 - b), O === 0 && (A = A - g / 2 - b), Math.abs(A) < 1 / 1e3 && (A = 0), a.roundLengths && (A = Math.floor(A)), C % a.slidesPerGroup === 0 && d.push(A), h.push(A)) : (a.roundLengths && (A = Math.floor(A)), (C - Math.min(e.params.slidesPerGroupSkip, C)) % e.params.slidesPerGroup === 0 && d.push(A), h.push(A), A = A + k + b), e.virtualSize += k + b, T = k, C += 1;
|
|
5897
5897
|
}
|
|
5898
5898
|
}
|
|
5899
|
-
if (e.virtualSize = Math.max(e.virtualSize,
|
|
5899
|
+
if (e.virtualSize = Math.max(e.virtualSize, g) + v, r && i && (a.effect === "slide" || a.effect === "coverflow") && (l.style.width = `${e.virtualSize + b}px`), a.setWrapperSize && (l.style[e.getDirectionLabel("width")] = `${e.virtualSize + b}px`), _ && e.grid.updateWrapperSize(k, d), !a.centeredSlides) {
|
|
5900
5900
|
const O = a.slidesPerView !== "auto" && a.slidesPerView % 1 !== 0, D = a.snapToSlideEdge && !a.loop && (a.slidesPerView === "auto" || O);
|
|
5901
5901
|
let F = d.length;
|
|
5902
5902
|
if (D) {
|
|
@@ -5904,7 +5904,7 @@ function Sf() {
|
|
|
5904
5904
|
if (a.slidesPerView === "auto") {
|
|
5905
5905
|
I = 1;
|
|
5906
5906
|
let x = 0;
|
|
5907
|
-
for (let L = f.length - 1; L >= 0 && (x += f[L] + (L < f.length - 1 ? b : 0), x <=
|
|
5907
|
+
for (let L = f.length - 1; L >= 0 && (x += f[L] + (L < f.length - 1 ? b : 0), x <= g); L -= 1)
|
|
5908
5908
|
I = f.length - L;
|
|
5909
5909
|
} else
|
|
5910
5910
|
I = Math.floor(a.slidesPerView);
|
|
@@ -5913,9 +5913,9 @@ function Sf() {
|
|
|
5913
5913
|
const M = [];
|
|
5914
5914
|
for (let I = 0; I < d.length; I += 1) {
|
|
5915
5915
|
let x = d[I];
|
|
5916
|
-
a.roundLengths && (x = Math.floor(x)), D ? I <= F && M.push(x) : d[I] <= e.virtualSize -
|
|
5916
|
+
a.roundLengths && (x = Math.floor(x)), D ? I <= F && M.push(x) : d[I] <= e.virtualSize - g && M.push(x);
|
|
5917
5917
|
}
|
|
5918
|
-
d = M, Math.floor(e.virtualSize -
|
|
5918
|
+
d = M, Math.floor(e.virtualSize - g) - Math.floor(d[d.length - 1]) > 1 && (D || d.push(e.virtualSize - g));
|
|
5919
5919
|
}
|
|
5920
5920
|
if (u && a.loop) {
|
|
5921
5921
|
const O = f[0] + b;
|
|
@@ -5938,17 +5938,17 @@ function Sf() {
|
|
|
5938
5938
|
f.forEach((F) => {
|
|
5939
5939
|
O += F + (b || 0);
|
|
5940
5940
|
}), O -= b;
|
|
5941
|
-
const D = O >
|
|
5942
|
-
d = d.map((F) => F <= 0 ? -E : F > D ? D +
|
|
5941
|
+
const D = O > g ? O - g : 0;
|
|
5942
|
+
d = d.map((F) => F <= 0 ? -E : F > D ? D + v : F);
|
|
5943
5943
|
}
|
|
5944
5944
|
if (a.centerInsufficientSlides) {
|
|
5945
5945
|
let O = 0;
|
|
5946
5946
|
f.forEach((F) => {
|
|
5947
5947
|
O += F + (b || 0);
|
|
5948
5948
|
}), O -= b;
|
|
5949
|
-
const D = (E || 0) + (
|
|
5950
|
-
if (O + D <
|
|
5951
|
-
const F = (
|
|
5949
|
+
const D = (E || 0) + (v || 0);
|
|
5950
|
+
if (O + D < g) {
|
|
5951
|
+
const F = (g - O - D) / 2;
|
|
5952
5952
|
d.forEach((M, I) => {
|
|
5953
5953
|
d[I] = M - F;
|
|
5954
5954
|
}), h.forEach((M, I) => {
|
|
@@ -6020,8 +6020,8 @@ function Nf(e = this && this.translate || 0) {
|
|
|
6020
6020
|
const o = l[s];
|
|
6021
6021
|
let c = o.swiperSlideOffset;
|
|
6022
6022
|
a.cssMode && a.centeredSlides && (c -= l[0].swiperSlideOffset);
|
|
6023
|
-
const d = (i + (a.centeredSlides ? t.minTranslate() : 0) - c) / (o.swiperSlideSize + u), h = (i - r[0] + (a.centeredSlides ? t.minTranslate() : 0) - c) / (o.swiperSlideSize + u), f = -(i - c), E = f + t.slidesSizesGrid[s],
|
|
6024
|
-
m && (t.visibleSlides.push(o), t.visibleSlidesIndexes.push(s)), Ei(o, m, a.slideVisibleClass), Ei(o,
|
|
6023
|
+
const d = (i + (a.centeredSlides ? t.minTranslate() : 0) - c) / (o.swiperSlideSize + u), h = (i - r[0] + (a.centeredSlides ? t.minTranslate() : 0) - c) / (o.swiperSlideSize + u), f = -(i - c), E = f + t.slidesSizesGrid[s], v = f >= 0 && f <= t.size - t.slidesSizesGrid[s], m = f >= 0 && f < t.size - 1 || E > 1 && E <= t.size || f <= 0 && E >= t.size;
|
|
6024
|
+
m && (t.visibleSlides.push(o), t.visibleSlidesIndexes.push(s)), Ei(o, m, a.slideVisibleClass), Ei(o, v, a.slideFullyVisibleClass), o.progress = n ? -d : d, o.originalProgress = n ? -h : h;
|
|
6025
6025
|
}
|
|
6026
6026
|
}
|
|
6027
6027
|
function If(e) {
|
|
@@ -6046,8 +6046,8 @@ function If(e) {
|
|
|
6046
6046
|
r = c || n <= 0, i = d || n >= 1, c && (n = 0), d && (n = 1);
|
|
6047
6047
|
}
|
|
6048
6048
|
if (a.loop) {
|
|
6049
|
-
const c = t.getSlideIndexByData(0), d = t.getSlideIndexByData(t.slides.length - 1), h = t.slidesGrid[c], f = t.slidesGrid[d], E = t.slidesGrid[t.slidesGrid.length - 1],
|
|
6050
|
-
|
|
6049
|
+
const c = t.getSlideIndexByData(0), d = t.getSlideIndexByData(t.slides.length - 1), h = t.slidesGrid[c], f = t.slidesGrid[d], E = t.slidesGrid[t.slidesGrid.length - 1], v = Math.abs(e);
|
|
6050
|
+
v >= h ? u = (v - h) / E : u = (v + E - f) / E, u > 1 && (u -= 1);
|
|
6051
6051
|
}
|
|
6052
6052
|
Object.assign(t, {
|
|
6053
6053
|
progress: n,
|
|
@@ -6160,7 +6160,7 @@ function Df(e) {
|
|
|
6160
6160
|
if (t.virtual && n.virtual.enabled)
|
|
6161
6161
|
n.loop ? h = c(s) : h = s;
|
|
6162
6162
|
else if (d) {
|
|
6163
|
-
const f = t.slides.find((
|
|
6163
|
+
const f = t.slides.find((v) => v.column === s);
|
|
6164
6164
|
let E = parseInt(f.getAttribute("data-swiper-slide-index"), 10);
|
|
6165
6165
|
Number.isNaN(E) && (E = Math.max(t.slides.indexOf(f), 0)), h = Math.floor(E / n.grid.rows);
|
|
6166
6166
|
} else if (t.slides[s]) {
|
|
@@ -6344,8 +6344,8 @@ function Yf(e = 0, t, a = !0, l, n) {
|
|
|
6344
6344
|
if (!E && !l && !n || r.destroyed || r.animating && u.preventInteractionOnTransition)
|
|
6345
6345
|
return !1;
|
|
6346
6346
|
typeof t > "u" && (t = r.params.speed);
|
|
6347
|
-
const
|
|
6348
|
-
let m =
|
|
6347
|
+
const v = Math.min(r.params.slidesPerGroupSkip, i);
|
|
6348
|
+
let m = v + Math.floor((i - v) / r.params.slidesPerGroup);
|
|
6349
6349
|
m >= s.length && (m = s.length - 1);
|
|
6350
6350
|
const y = -s[m];
|
|
6351
6351
|
if (u.normalizeSlideIndex)
|
|
@@ -6356,11 +6356,11 @@ function Yf(e = 0, t, a = !0, l, n) {
|
|
|
6356
6356
|
if (r.initialized && i !== d && (!r.allowSlideNext && (h ? y > r.translate && y > r.minTranslate() : y < r.translate && y < r.minTranslate()) || !r.allowSlidePrev && y > r.translate && y > r.maxTranslate() && (d || 0) !== i))
|
|
6357
6357
|
return !1;
|
|
6358
6358
|
i !== (c || 0) && a && r.emit("beforeSlideChangeStart"), r.updateProgress(y);
|
|
6359
|
-
let
|
|
6360
|
-
i > d ?
|
|
6359
|
+
let g;
|
|
6360
|
+
i > d ? g = "next" : i < d ? g = "prev" : g = "reset";
|
|
6361
6361
|
const b = r.virtual && r.params.virtual.enabled;
|
|
6362
6362
|
if (!(b && n) && (h && -y === r.translate || !h && y === r.translate))
|
|
6363
|
-
return r.updateActiveIndex(i), u.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), u.effect !== "slide" && r.setTranslate(y),
|
|
6363
|
+
return r.updateActiveIndex(i), u.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), u.effect !== "slide" && r.setTranslate(y), g !== "reset" && (r.transitionStart(a, g), r.transitionEnd(a, g)), !1;
|
|
6364
6364
|
if (u.cssMode) {
|
|
6365
6365
|
const _ = r.isHorizontal(), k = h ? y : -y;
|
|
6366
6366
|
if (t === 0)
|
|
@@ -6384,8 +6384,8 @@ function Yf(e = 0, t, a = !0, l, n) {
|
|
|
6384
6384
|
return !0;
|
|
6385
6385
|
}
|
|
6386
6386
|
const C = es().isSafari;
|
|
6387
|
-
return b && !n && C && r.isElement && r.virtual.update(!1, !1, i), r.setTransition(t), r.setTranslate(y), r.updateActiveIndex(i), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, l), r.transitionStart(a,
|
|
6388
|
-
!r || r.destroyed || k.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(a,
|
|
6387
|
+
return b && !n && C && r.isElement && r.virtual.update(!1, !1, i), r.setTransition(t), r.setTranslate(y), r.updateActiveIndex(i), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, l), r.transitionStart(a, g), t === 0 ? r.transitionEnd(a, g) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(k) {
|
|
6388
|
+
!r || r.destroyed || k.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(a, g));
|
|
6389
6389
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
6390
6390
|
}
|
|
6391
6391
|
function Wf(e = 0, t, a = !0, l) {
|
|
@@ -6401,8 +6401,8 @@ function Wf(e = 0, t, a = !0, l) {
|
|
|
6401
6401
|
else {
|
|
6402
6402
|
let u;
|
|
6403
6403
|
if (r) {
|
|
6404
|
-
const
|
|
6405
|
-
u = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 ===
|
|
6404
|
+
const v = i * n.params.grid.rows;
|
|
6405
|
+
u = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === v).column;
|
|
6406
6406
|
} else
|
|
6407
6407
|
u = n.getSlideIndexByData(i);
|
|
6408
6408
|
const s = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
|
|
@@ -6414,17 +6414,17 @@ function Wf(e = 0, t, a = !0, l) {
|
|
|
6414
6414
|
f === "auto" ? f = n.slidesPerViewDynamic() : (f = Math.ceil(parseFloat(n.params.slidesPerView, 10)), h && f % 2 === 0 && (f = f + 1));
|
|
6415
6415
|
let E = s - u < f;
|
|
6416
6416
|
if (h && (E = E || u < Math.ceil(f / 2)), l && h && n.params.slidesPerView !== "auto" && !r && (E = !1), E) {
|
|
6417
|
-
const
|
|
6417
|
+
const v = h ? u < n.activeIndex ? "prev" : "next" : u - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
|
|
6418
6418
|
n.loopFix({
|
|
6419
|
-
direction:
|
|
6419
|
+
direction: v,
|
|
6420
6420
|
slideTo: !0,
|
|
6421
|
-
activeSlideIndex:
|
|
6422
|
-
slideRealIndex:
|
|
6421
|
+
activeSlideIndex: v === "next" ? u + 1 : u - s + 1,
|
|
6422
|
+
slideRealIndex: v === "next" ? n.realIndex : void 0
|
|
6423
6423
|
});
|
|
6424
6424
|
}
|
|
6425
6425
|
if (r) {
|
|
6426
|
-
const
|
|
6427
|
-
i = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 ===
|
|
6426
|
+
const v = i * n.params.grid.rows;
|
|
6427
|
+
i = n.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === v).column;
|
|
6428
6428
|
} else
|
|
6429
6429
|
i = n.getSlideIndexByData(i);
|
|
6430
6430
|
}
|
|
@@ -6473,21 +6473,21 @@ function Kf(e, t = !0, a) {
|
|
|
6473
6473
|
}), l._clientLeft = l.wrapperEl.clientLeft;
|
|
6474
6474
|
}
|
|
6475
6475
|
const d = u ? l.translate : -l.translate;
|
|
6476
|
-
function h(
|
|
6477
|
-
return
|
|
6476
|
+
function h(g) {
|
|
6477
|
+
return g < 0 ? -Math.floor(Math.abs(g)) : Math.floor(g);
|
|
6478
6478
|
}
|
|
6479
|
-
const f = h(d), E = r.map((
|
|
6479
|
+
const f = h(d), E = r.map((g) => h(g)), v = n.freeMode && n.freeMode.enabled;
|
|
6480
6480
|
let m = r[E.indexOf(f) - 1];
|
|
6481
|
-
if (typeof m > "u" && (n.cssMode ||
|
|
6482
|
-
let
|
|
6481
|
+
if (typeof m > "u" && (n.cssMode || v)) {
|
|
6482
|
+
let g;
|
|
6483
6483
|
r.forEach((b, A) => {
|
|
6484
|
-
f >= b && (
|
|
6485
|
-
}), typeof
|
|
6484
|
+
f >= b && (g = A);
|
|
6485
|
+
}), typeof g < "u" && (m = v ? r[g] : r[g > 0 ? g - 1 : g]);
|
|
6486
6486
|
}
|
|
6487
6487
|
let y = 0;
|
|
6488
6488
|
if (typeof m < "u" && (y = i.indexOf(m), y < 0 && (y = l.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (y = y - l.slidesPerViewDynamic("previous", !0) + 1, y = Math.max(y, 0))), n.rewind && l.isBeginning) {
|
|
6489
|
-
const
|
|
6490
|
-
return l.slideTo(
|
|
6489
|
+
const g = l.params.virtual && l.params.virtual.enabled && l.virtual ? l.virtual.slides.length - 1 : l.slides.length - 1;
|
|
6490
|
+
return l.slideTo(g, e, t, a);
|
|
6491
6491
|
} else if (n.loop && l.activeIndex === 0 && n.cssMode)
|
|
6492
6492
|
return requestAnimationFrame(() => {
|
|
6493
6493
|
l.slideTo(y, e, t, a);
|
|
@@ -6547,8 +6547,8 @@ function ep(e, t) {
|
|
|
6547
6547
|
} = a;
|
|
6548
6548
|
if (!l.loop || a.virtual && a.params.virtual.enabled) return;
|
|
6549
6549
|
const r = () => {
|
|
6550
|
-
yt(n, `.${l.slideClass}, swiper-slide`).forEach((E,
|
|
6551
|
-
E.setAttribute("data-swiper-slide-index",
|
|
6550
|
+
yt(n, `.${l.slideClass}, swiper-slide`).forEach((E, v) => {
|
|
6551
|
+
E.setAttribute("data-swiper-slide-index", v);
|
|
6552
6552
|
});
|
|
6553
6553
|
}, i = () => {
|
|
6554
6554
|
const f = yt(n, `.${l.slideBlankClass}`);
|
|
@@ -6559,8 +6559,8 @@ function ep(e, t) {
|
|
|
6559
6559
|
l.loopAddBlankSlides && (l.slidesPerGroup > 1 || u) && i();
|
|
6560
6560
|
const s = l.slidesPerGroup * (u ? l.grid.rows : 1), o = a.slides.length % s !== 0, c = u && a.slides.length % l.grid.rows !== 0, d = (f) => {
|
|
6561
6561
|
for (let E = 0; E < f; E += 1) {
|
|
6562
|
-
const
|
|
6563
|
-
a.slidesEl.append(
|
|
6562
|
+
const v = a.isElement ? Bl("swiper-slide", [l.slideBlankClass]) : Bl("div", [l.slideClass, l.slideBlankClass]);
|
|
6563
|
+
a.slidesEl.append(v);
|
|
6564
6564
|
}
|
|
6565
6565
|
};
|
|
6566
6566
|
if (o) {
|
|
@@ -6607,27 +6607,27 @@ function tp({
|
|
|
6607
6607
|
params: f
|
|
6608
6608
|
} = s, {
|
|
6609
6609
|
centeredSlides: E,
|
|
6610
|
-
slidesOffsetBefore:
|
|
6610
|
+
slidesOffsetBefore: v,
|
|
6611
6611
|
slidesOffsetAfter: m,
|
|
6612
6612
|
initialSlide: y
|
|
6613
|
-
} = f,
|
|
6613
|
+
} = f, g = E || !!v || !!m;
|
|
6614
6614
|
if (s.allowSlidePrev = !0, s.allowSlideNext = !0, s.virtual && f.virtual.enabled) {
|
|
6615
|
-
t && (!
|
|
6615
|
+
t && (!g && s.snapIndex === 0 ? s.slideTo(s.virtual.slides.length, 0, !1, !0) : g && s.snapIndex < f.slidesPerView ? s.slideTo(s.virtual.slides.length + s.snapIndex, 0, !1, !0) : s.snapIndex === s.snapGrid.length - 1 && s.slideTo(s.virtual.slidesBefore, 0, !1, !0)), s.allowSlidePrev = c, s.allowSlideNext = d, s.emit("loopFix");
|
|
6616
6616
|
return;
|
|
6617
6617
|
}
|
|
6618
6618
|
let b = f.slidesPerView;
|
|
6619
|
-
b === "auto" ? b = s.slidesPerViewDynamic() : (b = Math.ceil(parseFloat(f.slidesPerView, 10)),
|
|
6619
|
+
b === "auto" ? b = s.slidesPerViewDynamic() : (b = Math.ceil(parseFloat(f.slidesPerView, 10)), g && b % 2 === 0 && (b = b + 1));
|
|
6620
6620
|
const A = f.slidesPerGroupAuto ? b : f.slidesPerGroup;
|
|
6621
|
-
let T =
|
|
6621
|
+
let T = g ? Math.max(A, Math.ceil(b / 2)) : A;
|
|
6622
6622
|
T % A !== 0 && (T += A - T % A), T += f.loopAdditionalSlides, s.loopedSlides = T;
|
|
6623
6623
|
const C = s.grid && f.grid && f.grid.rows > 1;
|
|
6624
6624
|
o.length < b + T || s.params.effect === "cards" && o.length < b + T * 2 ? Rl("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : C && f.grid.fill === "row" && Rl("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
6625
|
-
const _ = [], k = [], w = C ? Math.ceil(o.length / f.grid.rows) : o.length, O = r && w - y < b && !
|
|
6625
|
+
const _ = [], k = [], w = C ? Math.ceil(o.length / f.grid.rows) : o.length, O = r && w - y < b && !g;
|
|
6626
6626
|
let D = O ? y : s.activeIndex;
|
|
6627
6627
|
typeof n > "u" ? n = s.getSlideIndex(o.find((R) => R.classList.contains(f.slideActiveClass))) : D = n;
|
|
6628
6628
|
const F = a === "next" || !a, M = a === "prev" || !a;
|
|
6629
6629
|
let I = 0, x = 0;
|
|
6630
|
-
const $ = (C ? o[n].column : n) + (
|
|
6630
|
+
const $ = (C ? o[n].column : n) + (g && typeof l > "u" ? -b / 2 + 0.5 : 0);
|
|
6631
6631
|
if ($ < T) {
|
|
6632
6632
|
I = Math.max(T - $, A);
|
|
6633
6633
|
for (let R = 0; R < T - $; R += 1) {
|
|
@@ -6793,9 +6793,9 @@ function sp(e) {
|
|
|
6793
6793
|
isScrolling: void 0,
|
|
6794
6794
|
startMoving: void 0
|
|
6795
6795
|
}), i.startX = f, i.startY = E, n.touchStartTime = Ml(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
|
|
6796
|
-
let
|
|
6797
|
-
s.matches(n.focusableElements) && (
|
|
6798
|
-
const m =
|
|
6796
|
+
let v = !0;
|
|
6797
|
+
s.matches(n.focusableElements) && (v = !1, s.nodeName === "SELECT" && (n.isTouched = !1)), a.activeElement && a.activeElement.matches(n.focusableElements) && a.activeElement !== s && (l.pointerType === "mouse" || l.pointerType !== "mouse" && !s.matches(n.focusableElements)) && a.activeElement.blur();
|
|
6798
|
+
const m = v && t.allowTouchMove && r.touchStartPreventDefault;
|
|
6799
6799
|
(r.touchStartForcePreventDefault || m) && !s.isContentEditable && l.preventDefault(), r.freeMode && r.freeMode.enabled && t.freeMode && t.animating && !r.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", l);
|
|
6800
6800
|
}
|
|
6801
6801
|
function op(e) {
|
|
@@ -6862,13 +6862,13 @@ function op(e) {
|
|
|
6862
6862
|
if (!l.startMoving)
|
|
6863
6863
|
return;
|
|
6864
6864
|
a.allowClick = !1, !n.cssMode && s.cancelable && s.preventDefault(), n.touchMoveStopPropagation && !n.nested && s.stopPropagation();
|
|
6865
|
-
let E = a.isHorizontal() ? h : f,
|
|
6866
|
-
n.oneWayMovement && (E = Math.abs(E) * (i ? 1 : -1),
|
|
6865
|
+
let E = a.isHorizontal() ? h : f, v = a.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
6866
|
+
n.oneWayMovement && (E = Math.abs(E) * (i ? 1 : -1), v = Math.abs(v) * (i ? 1 : -1)), r.diff = E, E *= n.touchRatio, i && (E = -E, v = -v);
|
|
6867
6867
|
const m = a.touchesDirection;
|
|
6868
|
-
a.swipeDirection = E > 0 ? "prev" : "next", a.touchesDirection =
|
|
6869
|
-
const y = a.params.loop && !n.cssMode,
|
|
6868
|
+
a.swipeDirection = E > 0 ? "prev" : "next", a.touchesDirection = v > 0 ? "prev" : "next";
|
|
6869
|
+
const y = a.params.loop && !n.cssMode, g = a.touchesDirection === "next" && a.allowSlideNext || a.touchesDirection === "prev" && a.allowSlidePrev;
|
|
6870
6870
|
if (!l.isMoved) {
|
|
6871
|
-
if (y &&
|
|
6871
|
+
if (y && g && a.loopFix({
|
|
6872
6872
|
direction: a.swipeDirection
|
|
6873
6873
|
}), l.startTranslate = a.getTranslate(), a.setTransition(0), a.animating) {
|
|
6874
6874
|
const T = new window.CustomEvent("transitionend", {
|
|
@@ -6882,7 +6882,7 @@ function op(e) {
|
|
|
6882
6882
|
}
|
|
6883
6883
|
l.allowMomentumBounce = !1, n.grabCursor && (a.allowSlideNext === !0 || a.allowSlidePrev === !0) && a.setGrabCursor(!0), a.emit("sliderFirstMove", s);
|
|
6884
6884
|
}
|
|
6885
|
-
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && l.isMoved && l.allowThresholdMove && m !== a.touchesDirection && y &&
|
|
6885
|
+
if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && l.isMoved && l.allowThresholdMove && m !== a.touchesDirection && y && g && Math.abs(E) >= 1) {
|
|
6886
6886
|
Object.assign(r, {
|
|
6887
6887
|
startX: c,
|
|
6888
6888
|
startY: d,
|
|
@@ -6894,11 +6894,11 @@ function op(e) {
|
|
|
6894
6894
|
}
|
|
6895
6895
|
a.emit("sliderMove", s), l.isMoved = !0, l.currentTranslate = E + l.startTranslate;
|
|
6896
6896
|
let b = !0, A = n.resistanceRatio;
|
|
6897
|
-
if (n.touchReleaseOnEdges && (A = 0), E > 0 ? (y &&
|
|
6897
|
+
if (n.touchReleaseOnEdges && (A = 0), E > 0 ? (y && g && l.allowThresholdMove && l.currentTranslate > (n.centeredSlides ? a.minTranslate() - a.slidesSizesGrid[a.activeIndex + 1] - (n.slidesPerView !== "auto" && a.slides.length - n.slidesPerView >= 2 ? a.slidesSizesGrid[a.activeIndex + 1] + a.params.spaceBetween : 0) - a.params.spaceBetween : a.minTranslate()) && a.loopFix({
|
|
6898
6898
|
direction: "prev",
|
|
6899
6899
|
setTranslate: !0,
|
|
6900
6900
|
activeSlideIndex: 0
|
|
6901
|
-
}), l.currentTranslate > a.minTranslate() && (b = !1, n.resistance && (l.currentTranslate = a.minTranslate() - 1 + (-a.minTranslate() + l.startTranslate + E) ** A))) : E < 0 && (y &&
|
|
6901
|
+
}), l.currentTranslate > a.minTranslate() && (b = !1, n.resistance && (l.currentTranslate = a.minTranslate() - 1 + (-a.minTranslate() + l.startTranslate + E) ** A))) : E < 0 && (y && g && l.allowThresholdMove && l.currentTranslate < (n.centeredSlides ? a.maxTranslate() + a.slidesSizesGrid[a.slidesSizesGrid.length - 1] + a.params.spaceBetween + (n.slidesPerView !== "auto" && a.slides.length - n.slidesPerView >= 2 ? a.slidesSizesGrid[a.slidesSizesGrid.length - 1] + a.params.spaceBetween : 0) : a.maxTranslate()) && a.loopFix({
|
|
6902
6902
|
direction: "next",
|
|
6903
6903
|
setTranslate: !0,
|
|
6904
6904
|
activeSlideIndex: a.slides.length - (n.slidesPerView === "auto" ? a.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
|
|
@@ -6963,26 +6963,26 @@ function cp(e) {
|
|
|
6963
6963
|
return;
|
|
6964
6964
|
}
|
|
6965
6965
|
const E = f >= -t.maxTranslate() && !t.params.loop;
|
|
6966
|
-
let
|
|
6966
|
+
let v = 0, m = t.slidesSizesGrid[0];
|
|
6967
6967
|
for (let T = 0; T < o.length; T += T < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
|
|
6968
6968
|
const C = T < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
6969
|
-
typeof o[T + C] < "u" ? (E || f >= o[T] && f < o[T + C]) && (
|
|
6969
|
+
typeof o[T + C] < "u" ? (E || f >= o[T] && f < o[T + C]) && (v = T, m = o[T + C] - o[T]) : (E || f >= o[T]) && (v = T, m = o[o.length - 1] - o[o.length - 2]);
|
|
6970
6970
|
}
|
|
6971
|
-
let y = null,
|
|
6972
|
-
i.rewind && (t.isBeginning ?
|
|
6973
|
-
const b = (f - o[
|
|
6971
|
+
let y = null, g = null;
|
|
6972
|
+
i.rewind && (t.isBeginning ? g = i.virtual && i.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (y = 0));
|
|
6973
|
+
const b = (f - o[v]) / m, A = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
|
|
6974
6974
|
if (h > i.longSwipesMs) {
|
|
6975
6975
|
if (!i.longSwipes) {
|
|
6976
6976
|
t.slideTo(t.activeIndex);
|
|
6977
6977
|
return;
|
|
6978
6978
|
}
|
|
6979
|
-
t.swipeDirection === "next" && (b >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? y :
|
|
6979
|
+
t.swipeDirection === "next" && (b >= i.longSwipesRatio ? t.slideTo(i.rewind && t.isEnd ? y : v + A) : t.slideTo(v)), t.swipeDirection === "prev" && (b > 1 - i.longSwipesRatio ? t.slideTo(v + A) : g !== null && b < 0 && Math.abs(b) > i.longSwipesRatio ? t.slideTo(g) : t.slideTo(v));
|
|
6980
6980
|
} else {
|
|
6981
6981
|
if (!i.shortSwipes) {
|
|
6982
6982
|
t.slideTo(t.activeIndex);
|
|
6983
6983
|
return;
|
|
6984
6984
|
}
|
|
6985
|
-
t.navigation && (l.target === t.navigation.nextEl || l.target === t.navigation.prevEl) ? l.target === t.navigation.nextEl ? t.slideTo(
|
|
6985
|
+
t.navigation && (l.target === t.navigation.nextEl || l.target === t.navigation.prevEl) ? l.target === t.navigation.nextEl ? t.slideTo(v + A) : t.slideTo(v) : (t.swipeDirection === "next" && t.slideTo(y !== null ? y : v + A), t.swipeDirection === "prev" && t.slideTo(g !== null ? g : v));
|
|
6986
6986
|
}
|
|
6987
6987
|
}
|
|
6988
6988
|
function Ti() {
|
|
@@ -7089,20 +7089,20 @@ function gp() {
|
|
|
7089
7089
|
if (!r || r && Object.keys(r).length === 0) return;
|
|
7090
7090
|
const i = ta(), u = l.breakpointsBase === "window" || !l.breakpointsBase ? l.breakpointsBase : "container", s = ["window", "container"].includes(l.breakpointsBase) || !l.breakpointsBase ? e.el : i.querySelector(l.breakpointsBase), o = e.getBreakpoint(r, u, s);
|
|
7091
7091
|
if (!o || e.currentBreakpoint === o) return;
|
|
7092
|
-
const d = (o in r ? r[o] : void 0) || e.originalParams, h = xi(e, l), f = xi(e, d), E = e.params.grabCursor,
|
|
7093
|
-
h && !f ? (n.classList.remove(`${l.containerModifierClass}grid`, `${l.containerModifierClass}grid-column`), e.emitContainerClasses()) : !h && f && (n.classList.add(`${l.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && l.grid.fill === "column") && n.classList.add(`${l.containerModifierClass}grid-column`), e.emitContainerClasses()), E && !
|
|
7092
|
+
const d = (o in r ? r[o] : void 0) || e.originalParams, h = xi(e, l), f = xi(e, d), E = e.params.grabCursor, v = d.grabCursor, m = l.enabled;
|
|
7093
|
+
h && !f ? (n.classList.remove(`${l.containerModifierClass}grid`, `${l.containerModifierClass}grid-column`), e.emitContainerClasses()) : !h && f && (n.classList.add(`${l.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && l.grid.fill === "column") && n.classList.add(`${l.containerModifierClass}grid-column`), e.emitContainerClasses()), E && !v ? e.unsetGrabCursor() : !E && v && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
|
|
7094
7094
|
if (typeof d[C] > "u") return;
|
|
7095
7095
|
const _ = l[C] && l[C].enabled, k = d[C] && d[C].enabled;
|
|
7096
7096
|
_ && !k && e[C].disable(), !_ && k && e[C].enable();
|
|
7097
7097
|
});
|
|
7098
|
-
const y = d.direction && d.direction !== l.direction,
|
|
7098
|
+
const y = d.direction && d.direction !== l.direction, g = l.loop && (d.slidesPerView !== l.slidesPerView || y), b = l.loop;
|
|
7099
7099
|
y && a && e.changeDirection(), rt(e.params, d);
|
|
7100
7100
|
const A = e.params.enabled, T = e.params.loop;
|
|
7101
7101
|
Object.assign(e, {
|
|
7102
7102
|
allowTouchMove: e.params.allowTouchMove,
|
|
7103
7103
|
allowSlideNext: e.params.allowSlideNext,
|
|
7104
7104
|
allowSlidePrev: e.params.allowSlidePrev
|
|
7105
|
-
}), m && !A ? e.disable() : !m && A && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", d), a && (
|
|
7105
|
+
}), m && !A ? e.disable() : !m && A && e.enable(), e.currentBreakpoint = o, e.emit("_beforeBreakpoint", d), a && (g ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !b && T ? (e.loopCreate(t), e.updateSlides()) : b && !T && e.loopDestroy()), e.emit("breakpoint", d);
|
|
7106
7106
|
}
|
|
7107
7107
|
function Ep(e, t = "window", a) {
|
|
7108
7108
|
if (!e || t === "container" && !a) return;
|
|
@@ -7824,8 +7824,8 @@ function Np({
|
|
|
7824
7824
|
virtual: f,
|
|
7825
7825
|
thumbs: E
|
|
7826
7826
|
} = e;
|
|
7827
|
-
let
|
|
7828
|
-
l.includes("thumbs") && a.thumbs && a.thumbs.swiper && !a.thumbs.swiper.destroyed && o.thumbs && (!o.thumbs.swiper || o.thumbs.swiper.destroyed) && (
|
|
7827
|
+
let v, m, y, g, b, A, T, C;
|
|
7828
|
+
l.includes("thumbs") && a.thumbs && a.thumbs.swiper && !a.thumbs.swiper.destroyed && o.thumbs && (!o.thumbs.swiper || o.thumbs.swiper.destroyed) && (v = !0), l.includes("controller") && a.controller && a.controller.control && o.controller && !o.controller.control && (m = !0), l.includes("pagination") && a.pagination && (a.pagination.el || u) && (o.pagination || o.pagination === !1) && c && !c.el && (y = !0), l.includes("scrollbar") && a.scrollbar && (a.scrollbar.el || i) && (o.scrollbar || o.scrollbar === !1) && h && !h.el && (g = !0), l.includes("navigation") && a.navigation && (a.navigation.prevEl || r) && (a.navigation.nextEl || n) && (o.navigation || o.navigation === !1) && d && !d.prevEl && !d.nextEl && (b = !0);
|
|
7829
7829
|
const _ = (k) => {
|
|
7830
7830
|
e[k] && (e[k].destroy(), k === "navigation" ? (e.isElement && (e[k].prevEl.remove(), e[k].nextEl.remove()), o[k].prevEl = void 0, o[k].nextEl = void 0, e[k].prevEl = void 0, e[k].nextEl = void 0) : (e.isElement && e[k].el.remove(), o[k].el = void 0, e[k].el = void 0));
|
|
7831
7831
|
};
|
|
@@ -7836,7 +7836,7 @@ function Np({
|
|
|
7836
7836
|
const w = a[k];
|
|
7837
7837
|
(w === !0 || w === !1) && (k === "navigation" || k === "pagination" || k === "scrollbar") ? w === !1 && _(k) : o[k] = a[k];
|
|
7838
7838
|
}
|
|
7839
|
-
}), s.includes("controller") && !m && e.controller && e.controller.control && o.controller && o.controller.control && (e.controller.control = o.controller.control), l.includes("children") && t && f && o.virtual.enabled ? (f.slides = t, f.update(!0)) : l.includes("virtual") && f && o.virtual.enabled && (t && (f.slides = t), f.update(!0)), l.includes("children") && t && o.loop && (C = !0),
|
|
7839
|
+
}), s.includes("controller") && !m && e.controller && e.controller.control && o.controller && o.controller.control && (e.controller.control = o.controller.control), l.includes("children") && t && f && o.virtual.enabled ? (f.slides = t, f.update(!0)) : l.includes("virtual") && f && o.virtual.enabled && (t && (f.slides = t), f.update(!0)), l.includes("children") && t && o.loop && (C = !0), v && E.init() && E.update(!0), m && (e.controller.control = o.controller.control), y && (e.isElement && (!u || typeof u == "string") && (u = document.createElement("div"), u.classList.add("swiper-pagination"), u.part.add("pagination"), e.el.appendChild(u)), u && (o.pagination.el = u), c.init(), c.render(), c.update()), g && (e.isElement && (!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-scrollbar"), i.part.add("scrollbar"), e.el.appendChild(i)), i && (o.scrollbar.el = i), h.init(), h.updateSize(), h.setTranslate()), b && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), Wn(n, e.navigation.arrowSvg), n.part.add("button-next"), e.el.appendChild(n)), (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-prev"), Wn(r, e.navigation.arrowSvg), r.part.add("button-prev"), e.el.appendChild(r))), n && (o.navigation.nextEl = n), r && (o.navigation.prevEl = r), d.init(), d.update()), l.includes("allowSlideNext") && (e.allowSlideNext = a.allowSlideNext), l.includes("allowSlidePrev") && (e.allowSlidePrev = a.allowSlidePrev), l.includes("direction") && e.changeDirection(a.direction, !1), (A || C) && e.loopDestroy(), (T || C) && e.loopCreate(), e.update();
|
|
7840
7840
|
}
|
|
7841
7841
|
function Ip(e = {}, t = !0) {
|
|
7842
7842
|
const a = {
|
|
@@ -7964,7 +7964,7 @@ const Ai = /* @__PURE__ */ Vu(null), Rp = /* @__PURE__ */ Vu(null), cs = /* @__P
|
|
|
7964
7964
|
...r
|
|
7965
7965
|
} = {}, i) => {
|
|
7966
7966
|
let u = !1;
|
|
7967
|
-
const [s, o] = re("swiper"), [c, d] = re(null), [h, f] = re(!1), E = Z(!1),
|
|
7967
|
+
const [s, o] = re("swiper"), [c, d] = re(null), [h, f] = re(!1), E = Z(!1), v = Z(null), m = Z(null), y = Z(null), g = Z(null), b = Z(null), A = Z(null), T = Z(null), C = Z(null), {
|
|
7968
7968
|
params: _,
|
|
7969
7969
|
passedParams: k,
|
|
7970
7970
|
rest: w,
|
|
@@ -7996,7 +7996,7 @@ const Ai = /* @__PURE__ */ Vu(null), Rp = /* @__PURE__ */ Vu(null), cs = /* @__P
|
|
|
7996
7996
|
ca(m.current.params.virtual, H), ca(m.current.originalParams.virtual, H);
|
|
7997
7997
|
}
|
|
7998
7998
|
};
|
|
7999
|
-
|
|
7999
|
+
v.current || I(), m.current && m.current.on("_beforeBreakpoint", M);
|
|
8000
8000
|
const x = () => {
|
|
8001
8001
|
u || !O || !m.current || Object.keys(O).forEach((R) => {
|
|
8002
8002
|
m.current.on(R, O[R]);
|
|
@@ -8011,9 +8011,9 @@ const Ai = /* @__PURE__ */ Vu(null), Rp = /* @__PURE__ */ Vu(null), cs = /* @__P
|
|
|
8011
8011
|
}), ne(() => {
|
|
8012
8012
|
!E.current && m.current && (m.current.emitSlidesClasses(), E.current = !0);
|
|
8013
8013
|
}), $a(() => {
|
|
8014
|
-
if (i && (i.current =
|
|
8014
|
+
if (i && (i.current = v.current), !!v.current)
|
|
8015
8015
|
return m.current.destroyed && I(), Lp({
|
|
8016
|
-
el:
|
|
8016
|
+
el: v.current,
|
|
8017
8017
|
nextEl: b.current,
|
|
8018
8018
|
prevEl: A.current,
|
|
8019
8019
|
paginationEl: T.current,
|
|
@@ -8024,8 +8024,8 @@ const Ai = /* @__PURE__ */ Vu(null), Rp = /* @__PURE__ */ Vu(null), cs = /* @__P
|
|
|
8024
8024
|
};
|
|
8025
8025
|
}, []), $a(() => {
|
|
8026
8026
|
x();
|
|
8027
|
-
const R = Op(k, y.current, D,
|
|
8028
|
-
return y.current = k,
|
|
8027
|
+
const R = Op(k, y.current, D, g.current, (H) => H.key);
|
|
8028
|
+
return y.current = k, g.current = D, R.length && m.current && !m.current.destroyed && Np({
|
|
8029
8029
|
swiper: m.current,
|
|
8030
8030
|
slides: D,
|
|
8031
8031
|
passedParams: k,
|
|
@@ -8047,7 +8047,7 @@ const Ai = /* @__PURE__ */ Vu(null), Rp = /* @__PURE__ */ Vu(null), cs = /* @__P
|
|
|
8047
8047
|
}));
|
|
8048
8048
|
}
|
|
8049
8049
|
return /* @__PURE__ */ Le.createElement(t, Fl({
|
|
8050
|
-
ref:
|
|
8050
|
+
ref: v,
|
|
8051
8051
|
className: us(`${s}${e ? ` ${e}` : ""}`)
|
|
8052
8052
|
}, w), /* @__PURE__ */ Le.createElement(Rp.Provider, {
|
|
8053
8053
|
value: m.current
|
|
@@ -8080,7 +8080,7 @@ const ds = /* @__PURE__ */ zu(({
|
|
|
8080
8080
|
...s
|
|
8081
8081
|
} = {}, o) => {
|
|
8082
8082
|
const c = Z(null), [d, h] = re("swiper-slide"), [f, E] = re(!1);
|
|
8083
|
-
function
|
|
8083
|
+
function v(b, A, T) {
|
|
8084
8084
|
A === c.current && h(T);
|
|
8085
8085
|
}
|
|
8086
8086
|
$a(() => {
|
|
@@ -8089,8 +8089,8 @@ const ds = /* @__PURE__ */ zu(({
|
|
|
8089
8089
|
d !== "swiper-slide" && h("swiper-slide");
|
|
8090
8090
|
return;
|
|
8091
8091
|
}
|
|
8092
|
-
return l.on("_slideClass",
|
|
8093
|
-
l && l.off("_slideClass",
|
|
8092
|
+
return l.on("_slideClass", v), () => {
|
|
8093
|
+
l && l.off("_slideClass", v);
|
|
8094
8094
|
};
|
|
8095
8095
|
}
|
|
8096
8096
|
}), $a(() => {
|
|
@@ -8101,14 +8101,14 @@ const ds = /* @__PURE__ */ zu(({
|
|
|
8101
8101
|
isVisible: d.indexOf("swiper-slide-visible") >= 0,
|
|
8102
8102
|
isPrev: d.indexOf("swiper-slide-prev") >= 0,
|
|
8103
8103
|
isNext: d.indexOf("swiper-slide-next") >= 0
|
|
8104
|
-
}, y = () => typeof t == "function" ? t(m) : t,
|
|
8104
|
+
}, y = () => typeof t == "function" ? t(m) : t, g = () => {
|
|
8105
8105
|
E(!0);
|
|
8106
8106
|
};
|
|
8107
8107
|
return /* @__PURE__ */ Le.createElement(e, Fl({
|
|
8108
8108
|
ref: c,
|
|
8109
8109
|
className: us(`${d}${a ? ` ${a}` : ""}`),
|
|
8110
8110
|
"data-swiper-slide-index": i,
|
|
8111
|
-
onLoad:
|
|
8111
|
+
onLoad: g
|
|
8112
8112
|
}, s), n && /* @__PURE__ */ Le.createElement(Ai.Provider, {
|
|
8113
8113
|
value: m
|
|
8114
8114
|
}, /* @__PURE__ */ Le.createElement("div", {
|
|
@@ -8165,9 +8165,9 @@ function Fp({
|
|
|
8165
8165
|
return f && typeof f == "string" && e.isElement && (E = e.el.querySelector(f) || e.hostEl.querySelector(f), E) ? E : (f && (typeof f == "string" && (E = [...document.querySelectorAll(f)]), e.params.uniqueNavElements && typeof f == "string" && E && E.length > 1 && e.el.querySelectorAll(f).length === 1 ? E = e.el.querySelector(f) : E && E.length === 1 && (E = E[0])), f && !E ? f : E);
|
|
8166
8166
|
}
|
|
8167
8167
|
function r(f, E) {
|
|
8168
|
-
const
|
|
8168
|
+
const v = e.params.navigation;
|
|
8169
8169
|
f = St(f), f.forEach((m) => {
|
|
8170
|
-
m && (m.classList[E ? "add" : "remove"](...
|
|
8170
|
+
m && (m.classList[E ? "add" : "remove"](...v.disabledClass.split(" ")), m.tagName === "BUTTON" && (m.disabled = E), e.params.watchOverflow && e.enabled && m.classList[e.isLocked ? "add" : "remove"](v.lockClass));
|
|
8171
8171
|
});
|
|
8172
8172
|
}
|
|
8173
8173
|
function i() {
|
|
@@ -8193,22 +8193,22 @@ function Fp({
|
|
|
8193
8193
|
nextEl: "swiper-button-next",
|
|
8194
8194
|
prevEl: "swiper-button-prev"
|
|
8195
8195
|
}), !(f.nextEl || f.prevEl)) return;
|
|
8196
|
-
let E = n(f.nextEl),
|
|
8196
|
+
let E = n(f.nextEl), v = n(f.prevEl);
|
|
8197
8197
|
Object.assign(e.navigation, {
|
|
8198
8198
|
nextEl: E,
|
|
8199
|
-
prevEl:
|
|
8200
|
-
}), E = St(E),
|
|
8201
|
-
const m = (y,
|
|
8199
|
+
prevEl: v
|
|
8200
|
+
}), E = St(E), v = St(v);
|
|
8201
|
+
const m = (y, g) => {
|
|
8202
8202
|
if (y) {
|
|
8203
8203
|
if (f.addIcons && y.matches(".swiper-button-next,.swiper-button-prev") && !y.querySelector("svg")) {
|
|
8204
8204
|
const b = document.createElement("div");
|
|
8205
8205
|
Wn(b, wi), y.appendChild(b.querySelector("svg")), b.remove();
|
|
8206
8206
|
}
|
|
8207
|
-
y.addEventListener("click",
|
|
8207
|
+
y.addEventListener("click", g === "next" ? s : u);
|
|
8208
8208
|
}
|
|
8209
8209
|
!e.enabled && y && y.classList.add(...f.lockClass.split(" "));
|
|
8210
8210
|
};
|
|
8211
|
-
E.forEach((y) => m(y, "next")),
|
|
8211
|
+
E.forEach((y) => m(y, "next")), v.forEach((y) => m(y, "prev"));
|
|
8212
8212
|
}
|
|
8213
8213
|
function c() {
|
|
8214
8214
|
let {
|
|
@@ -8216,10 +8216,10 @@ function Fp({
|
|
|
8216
8216
|
prevEl: E
|
|
8217
8217
|
} = e.navigation;
|
|
8218
8218
|
f = St(f), E = St(E);
|
|
8219
|
-
const
|
|
8219
|
+
const v = (m, y) => {
|
|
8220
8220
|
m.removeEventListener("click", y === "next" ? s : u), m.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
8221
8221
|
};
|
|
8222
|
-
f.forEach((m) =>
|
|
8222
|
+
f.forEach((m) => v(m, "next")), E.forEach((m) => v(m, "prev"));
|
|
8223
8223
|
}
|
|
8224
8224
|
a("init", () => {
|
|
8225
8225
|
e.params.navigation.enabled === !1 ? h() : (o(), i());
|
|
@@ -8236,23 +8236,23 @@ function Fp({
|
|
|
8236
8236
|
i();
|
|
8237
8237
|
return;
|
|
8238
8238
|
}
|
|
8239
|
-
[...f, ...E].filter((
|
|
8239
|
+
[...f, ...E].filter((v) => !!v).forEach((v) => v.classList.add(e.params.navigation.lockClass));
|
|
8240
8240
|
}), a("click", (f, E) => {
|
|
8241
8241
|
let {
|
|
8242
|
-
nextEl:
|
|
8242
|
+
nextEl: v,
|
|
8243
8243
|
prevEl: m
|
|
8244
8244
|
} = e.navigation;
|
|
8245
|
-
|
|
8245
|
+
v = St(v), m = St(m);
|
|
8246
8246
|
const y = E.target;
|
|
8247
|
-
let
|
|
8248
|
-
if (e.isElement && !
|
|
8247
|
+
let g = m.includes(y) || v.includes(y);
|
|
8248
|
+
if (e.isElement && !g) {
|
|
8249
8249
|
const b = E.path || E.composedPath && E.composedPath();
|
|
8250
|
-
b && (
|
|
8250
|
+
b && (g = b.find((A) => v.includes(A) || m.includes(A)));
|
|
8251
8251
|
}
|
|
8252
|
-
if (e.params.navigation.hideOnClick && !
|
|
8252
|
+
if (e.params.navigation.hideOnClick && !g) {
|
|
8253
8253
|
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === y || e.pagination.el.contains(y))) return;
|
|
8254
8254
|
let b;
|
|
8255
|
-
|
|
8255
|
+
v.length ? b = v[0].classList.contains(e.params.navigation.hiddenClass) : m.length && (b = m[0].classList.contains(e.params.navigation.hiddenClass)), l(b === !0 ? "navigationShow" : "navigationHide"), [...v, ...m].filter((A) => !!A).forEach((A) => A.classList.toggle(e.params.navigation.hiddenClass));
|
|
8256
8256
|
}
|
|
8257
8257
|
});
|
|
8258
8258
|
const d = () => {
|
|
@@ -9479,28 +9479,28 @@ function Jp() {
|
|
|
9479
9479
|
throw new TypeError("First argument must be a string");
|
|
9480
9480
|
if (!m) return [];
|
|
9481
9481
|
y = y || {};
|
|
9482
|
-
var
|
|
9482
|
+
var g = 1, b = 1;
|
|
9483
9483
|
function A(I) {
|
|
9484
9484
|
var x = I.match(t);
|
|
9485
|
-
x && (
|
|
9485
|
+
x && (g += x.length);
|
|
9486
9486
|
var L = I.lastIndexOf(s);
|
|
9487
9487
|
b = ~L ? I.length - L : b + I.length;
|
|
9488
9488
|
}
|
|
9489
9489
|
function T() {
|
|
9490
|
-
var I = { line:
|
|
9490
|
+
var I = { line: g, column: b };
|
|
9491
9491
|
return function(x) {
|
|
9492
9492
|
return x.position = new C(I), w(), x;
|
|
9493
9493
|
};
|
|
9494
9494
|
}
|
|
9495
9495
|
function C(I) {
|
|
9496
|
-
this.start = I, this.end = { line:
|
|
9496
|
+
this.start = I, this.end = { line: g, column: b }, this.source = y.source;
|
|
9497
9497
|
}
|
|
9498
9498
|
C.prototype.content = m;
|
|
9499
9499
|
function _(I) {
|
|
9500
9500
|
var x = new Error(
|
|
9501
|
-
y.source + ":" +
|
|
9501
|
+
y.source + ":" + g + ":" + b + ": " + I
|
|
9502
9502
|
);
|
|
9503
|
-
if (x.reason = I, x.filename = y.source, x.line =
|
|
9503
|
+
if (x.reason = I, x.filename = y.source, x.line = g, x.column = b, x.source = m, !y.silent) throw x;
|
|
9504
9504
|
}
|
|
9505
9505
|
function k(I) {
|
|
9506
9506
|
var x = I.exec(m);
|
|
@@ -9538,8 +9538,8 @@ function Jp() {
|
|
|
9538
9538
|
if (D(), !k(n)) return _("property missing ':'");
|
|
9539
9539
|
var L = k(r), $ = I({
|
|
9540
9540
|
type: f,
|
|
9541
|
-
property:
|
|
9542
|
-
value: L ?
|
|
9541
|
+
property: v(x[0].replace(e, d)),
|
|
9542
|
+
value: L ? v(L[0].replace(e, d)) : d
|
|
9543
9543
|
});
|
|
9544
9544
|
return k(i), $;
|
|
9545
9545
|
}
|
|
@@ -9553,7 +9553,7 @@ function Jp() {
|
|
|
9553
9553
|
}
|
|
9554
9554
|
return w(), M();
|
|
9555
9555
|
}
|
|
9556
|
-
function
|
|
9556
|
+
function v(m) {
|
|
9557
9557
|
return m ? m.replace(u, d) : d;
|
|
9558
9558
|
}
|
|
9559
9559
|
return Tn = E, Tn;
|
|
@@ -10237,7 +10237,7 @@ function Rh(e) {
|
|
|
10237
10237
|
}
|
|
10238
10238
|
function s(b) {
|
|
10239
10239
|
if (l++, t.containerState._closeFlow) {
|
|
10240
|
-
t.containerState._closeFlow = void 0, n &&
|
|
10240
|
+
t.containerState._closeFlow = void 0, n && g();
|
|
10241
10241
|
const A = t.events.length;
|
|
10242
10242
|
let T = A, C;
|
|
10243
10243
|
for (; T--; )
|
|
@@ -10266,7 +10266,7 @@ function Rh(e) {
|
|
|
10266
10266
|
return t.containerState = {}, e.check($i, c, d)(b);
|
|
10267
10267
|
}
|
|
10268
10268
|
function c(b) {
|
|
10269
|
-
return n &&
|
|
10269
|
+
return n && g(), y(l), h(b);
|
|
10270
10270
|
}
|
|
10271
10271
|
function d(b) {
|
|
10272
10272
|
return t.parser.lazy[t.now().line] = l !== a.length, i = t.now().offset, E(b);
|
|
@@ -10279,21 +10279,21 @@ function Rh(e) {
|
|
|
10279
10279
|
}
|
|
10280
10280
|
function E(b) {
|
|
10281
10281
|
if (b === null) {
|
|
10282
|
-
n &&
|
|
10282
|
+
n && g(), y(0), e.consume(b);
|
|
10283
10283
|
return;
|
|
10284
10284
|
}
|
|
10285
10285
|
return n = n || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
10286
10286
|
_tokenizer: n,
|
|
10287
10287
|
contentType: "flow",
|
|
10288
10288
|
previous: r
|
|
10289
|
-
}),
|
|
10289
|
+
}), v(b);
|
|
10290
10290
|
}
|
|
10291
|
-
function
|
|
10291
|
+
function v(b) {
|
|
10292
10292
|
if (b === null) {
|
|
10293
10293
|
m(e.exit("chunkFlow"), !0), y(0), e.consume(b);
|
|
10294
10294
|
return;
|
|
10295
10295
|
}
|
|
10296
|
-
return fe(b) ? (e.consume(b), m(e.exit("chunkFlow")), l = 0, t.interrupt = void 0, u) : (e.consume(b),
|
|
10296
|
+
return fe(b) ? (e.consume(b), m(e.exit("chunkFlow")), l = 0, t.interrupt = void 0, u) : (e.consume(b), v);
|
|
10297
10297
|
}
|
|
10298
10298
|
function m(b, A) {
|
|
10299
10299
|
const T = t.sliceStream(b);
|
|
@@ -10332,7 +10332,7 @@ function Rh(e) {
|
|
|
10332
10332
|
}
|
|
10333
10333
|
a.length = b;
|
|
10334
10334
|
}
|
|
10335
|
-
function
|
|
10335
|
+
function g() {
|
|
10336
10336
|
n.write([null]), r = void 0, n = void 0, t.containerState._closeFlow = void 0;
|
|
10337
10337
|
}
|
|
10338
10338
|
}
|
|
@@ -10584,7 +10584,7 @@ function jh(e, t, a) {
|
|
|
10584
10584
|
return C === u ? (i++, e.consume(C), c) : i < 3 ? a(C) : (e.exit("codeFencedFenceSequence"), _e(C) ? ke(e, d, "whitespace")(C) : d(C));
|
|
10585
10585
|
}
|
|
10586
10586
|
function d(C) {
|
|
10587
|
-
return C === null || fe(C) ? (e.exit("codeFencedFence"), l.interrupt ? t(C) : e.check(zi,
|
|
10587
|
+
return C === null || fe(C) ? (e.exit("codeFencedFence"), l.interrupt ? t(C) : e.check(zi, v, A)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
10588
10588
|
contentType: "string"
|
|
10589
10589
|
}), h(C));
|
|
10590
10590
|
}
|
|
@@ -10599,20 +10599,20 @@ function jh(e, t, a) {
|
|
|
10599
10599
|
function E(C) {
|
|
10600
10600
|
return C === null || fe(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(C)) : C === 96 && C === u ? a(C) : (e.consume(C), E);
|
|
10601
10601
|
}
|
|
10602
|
-
function
|
|
10602
|
+
function v(C) {
|
|
10603
10603
|
return e.attempt(n, A, m)(C);
|
|
10604
10604
|
}
|
|
10605
10605
|
function m(C) {
|
|
10606
10606
|
return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), y;
|
|
10607
10607
|
}
|
|
10608
10608
|
function y(C) {
|
|
10609
|
-
return r > 0 && _e(C) ? ke(e,
|
|
10609
|
+
return r > 0 && _e(C) ? ke(e, g, "linePrefix", r + 1)(C) : g(C);
|
|
10610
10610
|
}
|
|
10611
|
-
function
|
|
10612
|
-
return C === null || fe(C) ? e.check(zi,
|
|
10611
|
+
function g(C) {
|
|
10612
|
+
return C === null || fe(C) ? e.check(zi, v, A)(C) : (e.enter("codeFlowValue"), b(C));
|
|
10613
10613
|
}
|
|
10614
10614
|
function b(C) {
|
|
10615
|
-
return C === null || fe(C) ? (e.exit("codeFlowValue"),
|
|
10615
|
+
return C === null || fe(C) ? (e.exit("codeFlowValue"), g(C)) : (e.consume(C), b);
|
|
10616
10616
|
}
|
|
10617
10617
|
function A(C) {
|
|
10618
10618
|
return e.exit("codeFenced"), t(C);
|
|
@@ -10929,8 +10929,8 @@ function nb(e, t) {
|
|
|
10929
10929
|
let i = a._tokenizer;
|
|
10930
10930
|
i || (i = l.parser[a.contentType](a.start), a._contentTypeTextTrailing && (i._contentTypeTextTrailing = !0));
|
|
10931
10931
|
const u = i.events, s = [], o = {};
|
|
10932
|
-
let c, d, h = -1, f = a, E = 0,
|
|
10933
|
-
const m = [
|
|
10932
|
+
let c, d, h = -1, f = a, E = 0, v = 0;
|
|
10933
|
+
const m = [v];
|
|
10934
10934
|
for (; f; ) {
|
|
10935
10935
|
for (; e.get(++n)[1] !== f; )
|
|
10936
10936
|
;
|
|
@@ -10938,10 +10938,10 @@ function nb(e, t) {
|
|
|
10938
10938
|
}
|
|
10939
10939
|
for (f = a; ++h < u.length; )
|
|
10940
10940
|
// Find a void token that includes a break.
|
|
10941
|
-
u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (
|
|
10941
|
+
u[h][0] === "exit" && u[h - 1][0] === "enter" && u[h][1].type === u[h - 1][1].type && u[h][1].start.line !== u[h][1].end.line && (v = h + 1, m.push(v), f._tokenizer = void 0, f.previous = void 0, f = f.next);
|
|
10942
10942
|
for (i.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : m.pop(), h = m.length; h--; ) {
|
|
10943
|
-
const y = u.slice(m[h], m[h + 1]),
|
|
10944
|
-
s.push([
|
|
10943
|
+
const y = u.slice(m[h], m[h + 1]), g = r.pop();
|
|
10944
|
+
s.push([g, g + y.length - 1]), e.splice(g, 2, y);
|
|
10945
10945
|
}
|
|
10946
10946
|
for (s.reverse(), h = -1; ++h < s.length; )
|
|
10947
10947
|
o[E + s[h][0]] = E + s[h][1], E += s[h][1] - s[h][0] - 1;
|
|
@@ -10998,7 +10998,7 @@ function Ds(e, t, a, l, n, r, i, u, s) {
|
|
|
10998
10998
|
function d(y) {
|
|
10999
10999
|
return y === 60 ? (e.enter(l), e.enter(n), e.enter(r), e.consume(y), e.exit(r), h) : y === null || y === 32 || y === 41 || Zn(y) ? a(y) : (e.enter(l), e.enter(i), e.enter(u), e.enter("chunkString", {
|
|
11000
11000
|
contentType: "string"
|
|
11001
|
-
}),
|
|
11001
|
+
}), v(y));
|
|
11002
11002
|
}
|
|
11003
11003
|
function h(y) {
|
|
11004
11004
|
return y === 62 ? (e.enter(r), e.consume(y), e.exit(r), e.exit(n), e.exit(l), t) : (e.enter(u), e.enter("chunkString", {
|
|
@@ -11011,11 +11011,11 @@ function Ds(e, t, a, l, n, r, i, u, s) {
|
|
|
11011
11011
|
function E(y) {
|
|
11012
11012
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), f) : f(y);
|
|
11013
11013
|
}
|
|
11014
|
-
function
|
|
11015
|
-
return !c && (y === null || y === 41 || $e(y)) ? (e.exit("chunkString"), e.exit(u), e.exit(i), e.exit(l), t(y)) : c < o && y === 40 ? (e.consume(y), c++,
|
|
11014
|
+
function v(y) {
|
|
11015
|
+
return !c && (y === null || y === 41 || $e(y)) ? (e.exit("chunkString"), e.exit(u), e.exit(i), e.exit(l), t(y)) : c < o && y === 40 ? (e.consume(y), c++, v) : y === 41 ? (e.consume(y), c--, v) : y === null || y === 32 || y === 40 || Zn(y) ? a(y) : (e.consume(y), y === 92 ? m : v);
|
|
11016
11016
|
}
|
|
11017
11017
|
function m(y) {
|
|
11018
|
-
return y === 40 || y === 41 || y === 92 ? (e.consume(y),
|
|
11018
|
+
return y === 40 || y === 41 || y === 92 ? (e.consume(y), v) : v(y);
|
|
11019
11019
|
}
|
|
11020
11020
|
}
|
|
11021
11021
|
function Ps(e, t, a, l, n, r) {
|
|
@@ -11285,7 +11285,7 @@ function wb(e, t, a) {
|
|
|
11285
11285
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), d;
|
|
11286
11286
|
}
|
|
11287
11287
|
function d(S) {
|
|
11288
|
-
return S === 33 ? (e.consume(S), h) : S === 47 ? (e.consume(S), r = !0,
|
|
11288
|
+
return S === 33 ? (e.consume(S), h) : S === 47 ? (e.consume(S), r = !0, v) : S === 63 ? (e.consume(S), n = 3, l.interrupt ? t : N) : Et(S) ? (e.consume(S), i = String.fromCharCode(S), m) : a(S);
|
|
11289
11289
|
}
|
|
11290
11290
|
function h(S) {
|
|
11291
11291
|
return S === 45 ? (e.consume(S), n = 2, f) : S === 91 ? (e.consume(S), n = 5, u = 0, E) : Et(S) ? (e.consume(S), n = 4, l.interrupt ? t : N) : a(S);
|
|
@@ -11297,21 +11297,21 @@ function wb(e, t, a) {
|
|
|
11297
11297
|
const q = "CDATA[";
|
|
11298
11298
|
return S === q.charCodeAt(u++) ? (e.consume(S), u === q.length ? l.interrupt ? t : F : E) : a(S);
|
|
11299
11299
|
}
|
|
11300
|
-
function
|
|
11300
|
+
function v(S) {
|
|
11301
11301
|
return Et(S) ? (e.consume(S), i = String.fromCharCode(S), m) : a(S);
|
|
11302
11302
|
}
|
|
11303
11303
|
function m(S) {
|
|
11304
11304
|
if (S === null || S === 47 || S === 62 || $e(S)) {
|
|
11305
11305
|
const q = S === 47, V = i.toLowerCase();
|
|
11306
|
-
return !q && !r && Gi.includes(V) ? (n = 1, l.interrupt ? t(S) : F(S)) : Eb.includes(i.toLowerCase()) ? (n = 6, q ? (e.consume(S), y) : l.interrupt ? t(S) : F(S)) : (n = 7, l.interrupt && !l.parser.lazy[l.now().line] ? a(S) : r ?
|
|
11306
|
+
return !q && !r && Gi.includes(V) ? (n = 1, l.interrupt ? t(S) : F(S)) : Eb.includes(i.toLowerCase()) ? (n = 6, q ? (e.consume(S), y) : l.interrupt ? t(S) : F(S)) : (n = 7, l.interrupt && !l.parser.lazy[l.now().line] ? a(S) : r ? g(S) : b(S));
|
|
11307
11307
|
}
|
|
11308
11308
|
return S === 45 || it(S) ? (e.consume(S), i += String.fromCharCode(S), m) : a(S);
|
|
11309
11309
|
}
|
|
11310
11310
|
function y(S) {
|
|
11311
11311
|
return S === 62 ? (e.consume(S), l.interrupt ? t : F) : a(S);
|
|
11312
11312
|
}
|
|
11313
|
-
function
|
|
11314
|
-
return _e(S) ? (e.consume(S),
|
|
11313
|
+
function g(S) {
|
|
11314
|
+
return _e(S) ? (e.consume(S), g) : O(S);
|
|
11315
11315
|
}
|
|
11316
11316
|
function b(S) {
|
|
11317
11317
|
return S === 47 ? (e.consume(S), O) : S === 58 || S === 95 || Et(S) ? (e.consume(S), A) : _e(S) ? (e.consume(S), b) : O(S);
|
|
@@ -11409,7 +11409,7 @@ function kb(e, t, a) {
|
|
|
11409
11409
|
return N === 33 ? (e.consume(N), o) : N === 47 ? (e.consume(N), T) : N === 63 ? (e.consume(N), b) : Et(N) ? (e.consume(N), k) : a(N);
|
|
11410
11410
|
}
|
|
11411
11411
|
function o(N) {
|
|
11412
|
-
return N === 45 ? (e.consume(N), c) : N === 91 ? (e.consume(N), r = 0, E) : Et(N) ? (e.consume(N),
|
|
11412
|
+
return N === 45 ? (e.consume(N), c) : N === 91 ? (e.consume(N), r = 0, E) : Et(N) ? (e.consume(N), g) : a(N);
|
|
11413
11413
|
}
|
|
11414
11414
|
function c(N) {
|
|
11415
11415
|
return N === 45 ? (e.consume(N), f) : a(N);
|
|
@@ -11425,19 +11425,19 @@ function kb(e, t, a) {
|
|
|
11425
11425
|
}
|
|
11426
11426
|
function E(N) {
|
|
11427
11427
|
const Y = "CDATA[";
|
|
11428
|
-
return N === Y.charCodeAt(r++) ? (e.consume(N), r === Y.length ?
|
|
11428
|
+
return N === Y.charCodeAt(r++) ? (e.consume(N), r === Y.length ? v : E) : a(N);
|
|
11429
11429
|
}
|
|
11430
|
-
function
|
|
11431
|
-
return N === null ? a(N) : N === 93 ? (e.consume(N), m) : fe(N) ? (i =
|
|
11430
|
+
function v(N) {
|
|
11431
|
+
return N === null ? a(N) : N === 93 ? (e.consume(N), m) : fe(N) ? (i = v, $(N)) : (e.consume(N), v);
|
|
11432
11432
|
}
|
|
11433
11433
|
function m(N) {
|
|
11434
|
-
return N === 93 ? (e.consume(N), y) :
|
|
11434
|
+
return N === 93 ? (e.consume(N), y) : v(N);
|
|
11435
11435
|
}
|
|
11436
11436
|
function y(N) {
|
|
11437
|
-
return N === 62 ? L(N) : N === 93 ? (e.consume(N), y) :
|
|
11437
|
+
return N === 62 ? L(N) : N === 93 ? (e.consume(N), y) : v(N);
|
|
11438
11438
|
}
|
|
11439
|
-
function
|
|
11440
|
-
return N === null || N === 62 ? L(N) : fe(N) ? (i =
|
|
11439
|
+
function g(N) {
|
|
11440
|
+
return N === null || N === 62 ? L(N) : fe(N) ? (i = g, $(N)) : (e.consume(N), g);
|
|
11441
11441
|
}
|
|
11442
11442
|
function b(N) {
|
|
11443
11443
|
return N === null ? a(N) : N === 63 ? (e.consume(N), A) : fe(N) ? (i = b, $(N)) : (e.consume(N), b);
|
|
@@ -12024,7 +12024,7 @@ function bm(e, t, a) {
|
|
|
12024
12024
|
const s = {
|
|
12025
12025
|
attempt: _(T),
|
|
12026
12026
|
check: _(C),
|
|
12027
|
-
consume:
|
|
12027
|
+
consume: g,
|
|
12028
12028
|
enter: b,
|
|
12029
12029
|
exit: A,
|
|
12030
12030
|
interrupt: _(C, {
|
|
@@ -12033,7 +12033,7 @@ function bm(e, t, a) {
|
|
|
12033
12033
|
}, o = {
|
|
12034
12034
|
code: null,
|
|
12035
12035
|
containerState: {},
|
|
12036
|
-
defineSkip:
|
|
12036
|
+
defineSkip: v,
|
|
12037
12037
|
events: [],
|
|
12038
12038
|
now: E,
|
|
12039
12039
|
parser: e,
|
|
@@ -12069,7 +12069,7 @@ function bm(e, t, a) {
|
|
|
12069
12069
|
offset: x
|
|
12070
12070
|
};
|
|
12071
12071
|
}
|
|
12072
|
-
function
|
|
12072
|
+
function v(D) {
|
|
12073
12073
|
n[D.line] = D.column, O();
|
|
12074
12074
|
}
|
|
12075
12075
|
function m() {
|
|
@@ -12086,7 +12086,7 @@ function bm(e, t, a) {
|
|
|
12086
12086
|
function y(D) {
|
|
12087
12087
|
c = c(D);
|
|
12088
12088
|
}
|
|
12089
|
-
function
|
|
12089
|
+
function g(D) {
|
|
12090
12090
|
fe(D) ? (l.line++, l.column = 1, l.offset += D === -3 ? 2 : 1, O()) : D !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
12091
12091
|
// strings.
|
|
12092
12092
|
/** @type {string} */
|
|
@@ -12368,7 +12368,7 @@ function Cm(e) {
|
|
|
12368
12368
|
characterReferenceValue: K,
|
|
12369
12369
|
characterReference: j,
|
|
12370
12370
|
codeFenced: s(m),
|
|
12371
|
-
codeFencedFence:
|
|
12371
|
+
codeFencedFence: v,
|
|
12372
12372
|
codeFencedFenceInfo: f,
|
|
12373
12373
|
codeFencedFenceMeta: E,
|
|
12374
12374
|
codeFlowValue: O,
|
|
@@ -12378,7 +12378,7 @@ function Cm(e) {
|
|
|
12378
12378
|
data: O,
|
|
12379
12379
|
definition: s(),
|
|
12380
12380
|
definitionDestinationString: A,
|
|
12381
|
-
definitionLabelString:
|
|
12381
|
+
definitionLabelString: g,
|
|
12382
12382
|
definitionTitleString: b,
|
|
12383
12383
|
emphasis: s(),
|
|
12384
12384
|
hardBreakEscape: s(F),
|
|
@@ -12564,7 +12564,7 @@ function Cm(e) {
|
|
|
12564
12564
|
const J = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
12565
12565
|
ie.meta = J;
|
|
12566
12566
|
}
|
|
12567
|
-
function
|
|
12567
|
+
function v() {
|
|
12568
12568
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
12569
12569
|
}
|
|
12570
12570
|
function m() {
|
|
@@ -12575,7 +12575,7 @@ function Cm(e) {
|
|
|
12575
12575
|
const J = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
12576
12576
|
ie.value = J.replace(/(\r?\n|\r)$/g, "");
|
|
12577
12577
|
}
|
|
12578
|
-
function
|
|
12578
|
+
function g(J) {
|
|
12579
12579
|
const ie = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
12580
12580
|
Te.label = ie, Te.identifier = fa(this.sliceSerialize(J)).toLowerCase();
|
|
12581
12581
|
}
|
|
@@ -13425,11 +13425,11 @@ function i0(e) {
|
|
|
13425
13425
|
continue;
|
|
13426
13426
|
const c = e.all(o), d = String(o.identifier).toUpperCase(), h = ma(d.toLowerCase());
|
|
13427
13427
|
let f = 0;
|
|
13428
|
-
const E = [],
|
|
13429
|
-
for (;
|
|
13428
|
+
const E = [], v = e.footnoteCounts.get(d);
|
|
13429
|
+
for (; v !== void 0 && ++f <= v; ) {
|
|
13430
13430
|
E.length > 0 && E.push({ type: "text", value: " " });
|
|
13431
|
-
let
|
|
13432
|
-
typeof
|
|
13431
|
+
let g = typeof a == "string" ? a : a(s, f);
|
|
13432
|
+
typeof g == "string" && (g = { type: "text", value: g }), E.push({
|
|
13433
13433
|
type: "element",
|
|
13434
13434
|
tagName: "a",
|
|
13435
13435
|
properties: {
|
|
@@ -13438,13 +13438,13 @@ function i0(e) {
|
|
|
13438
13438
|
ariaLabel: typeof l == "string" ? l : l(s, f),
|
|
13439
13439
|
className: ["data-footnote-backref"]
|
|
13440
13440
|
},
|
|
13441
|
-
children: Array.isArray(
|
|
13441
|
+
children: Array.isArray(g) ? g : [g]
|
|
13442
13442
|
});
|
|
13443
13443
|
}
|
|
13444
13444
|
const m = c[c.length - 1];
|
|
13445
13445
|
if (m && m.type === "element" && m.tagName === "p") {
|
|
13446
|
-
const
|
|
13447
|
-
|
|
13446
|
+
const g = m.children[m.children.length - 1];
|
|
13447
|
+
g && g.type === "text" ? g.value += " " : m.children.push({ type: "text", value: " " }), m.children.push(...E);
|
|
13448
13448
|
} else
|
|
13449
13449
|
c.push(...E);
|
|
13450
13450
|
const y = {
|
|
@@ -13596,7 +13596,7 @@ function Ws(e, t, a, l) {
|
|
|
13596
13596
|
}
|
|
13597
13597
|
return h;
|
|
13598
13598
|
function h() {
|
|
13599
|
-
let f = Ys, E,
|
|
13599
|
+
let f = Ys, E, v, m;
|
|
13600
13600
|
if ((!t || r(s, o, c[c.length - 1] || void 0)) && (f = h0(a(s, c)), f[0] === tu))
|
|
13601
13601
|
return f;
|
|
13602
13602
|
if ("children" in s && s.children) {
|
|
@@ -13605,11 +13605,11 @@ function Ws(e, t, a, l) {
|
|
|
13605
13605
|
s
|
|
13606
13606
|
);
|
|
13607
13607
|
if (y.children && f[0] !== p0)
|
|
13608
|
-
for (
|
|
13609
|
-
const
|
|
13610
|
-
if (E = u(
|
|
13608
|
+
for (v = (l ? y.children.length : -1) + i, m = c.concat(y); v > -1 && v < y.children.length; ) {
|
|
13609
|
+
const g = y.children[v];
|
|
13610
|
+
if (E = u(g, v, m)(), E[0] === tu)
|
|
13611
13611
|
return E;
|
|
13612
|
-
|
|
13612
|
+
v = typeof E[1] == "number" ? E[1] : v + i;
|
|
13613
13613
|
}
|
|
13614
13614
|
}
|
|
13615
13615
|
return f;
|
|
@@ -13654,7 +13654,7 @@ function m0(e, t) {
|
|
|
13654
13654
|
return f(u, c, d);
|
|
13655
13655
|
if (u.options.passThrough && u.options.passThrough.includes(h)) {
|
|
13656
13656
|
if ("children" in c) {
|
|
13657
|
-
const { children:
|
|
13657
|
+
const { children: v, ...m } = c, y = ea(m);
|
|
13658
13658
|
return y.children = u.all(c), y;
|
|
13659
13659
|
}
|
|
13660
13660
|
return ea(c);
|
|
@@ -13670,8 +13670,8 @@ function m0(e, t) {
|
|
|
13670
13670
|
const E = u.one(h[f], c);
|
|
13671
13671
|
if (E) {
|
|
13672
13672
|
if (f && h[f - 1].type === "break" && (!Array.isArray(E) && E.type === "text" && (E.value = au(E.value)), !Array.isArray(E) && E.type === "element")) {
|
|
13673
|
-
const
|
|
13674
|
-
|
|
13673
|
+
const v = E.children[0];
|
|
13674
|
+
v && v.type === "text" && (v.value = au(v.value));
|
|
13675
13675
|
}
|
|
13676
13676
|
Array.isArray(E) ? d.push(...E) : d.push(E);
|
|
13677
13677
|
}
|
|
@@ -13778,12 +13778,12 @@ function x0() {
|
|
|
13778
13778
|
return o[c];
|
|
13779
13779
|
};
|
|
13780
13780
|
return Cn = function s() {
|
|
13781
|
-
var o, c, d, h, f, E,
|
|
13782
|
-
for (typeof
|
|
13781
|
+
var o, c, d, h, f, E, v = arguments[0], m = 1, y = arguments.length, g = !1;
|
|
13782
|
+
for (typeof v == "boolean" && (g = v, v = arguments[1] || {}, m = 2), (v == null || typeof v != "object" && typeof v != "function") && (v = {}); m < y; ++m)
|
|
13783
13783
|
if (o = arguments[m], o != null)
|
|
13784
13784
|
for (c in o)
|
|
13785
|
-
d = u(
|
|
13786
|
-
return
|
|
13785
|
+
d = u(v, c), h = u(o, c), v !== h && (g && h && (r(h) || (f = n(h))) ? (f ? (f = !1, E = d && n(d) ? d : []) : E = d && r(d) ? d : {}, i(v, { name: c, newValue: s(g, E, h) })) : typeof h < "u" && i(v, { name: c, newValue: h }));
|
|
13786
|
+
return v;
|
|
13787
13787
|
}, Cn;
|
|
13788
13788
|
}
|
|
13789
13789
|
var A0 = x0();
|
|
@@ -14898,8 +14898,8 @@ class Lr extends B0 {
|
|
|
14898
14898
|
l.push([o, ...c]);
|
|
14899
14899
|
else if (c.length > 0) {
|
|
14900
14900
|
let [f, ...E] = c;
|
|
14901
|
-
const
|
|
14902
|
-
lr(
|
|
14901
|
+
const v = l[h][1];
|
|
14902
|
+
lr(v) && lr(f) && (f = Sn(!0, v, f)), l[h] = [o, f, ...E];
|
|
14903
14903
|
}
|
|
14904
14904
|
}
|
|
14905
14905
|
}
|
|
@@ -15007,8 +15007,8 @@ function K0(e, t) {
|
|
|
15007
15007
|
let f;
|
|
15008
15008
|
for (f in xn)
|
|
15009
15009
|
if (Object.hasOwn(xn, f) && Object.hasOwn(c.properties, f)) {
|
|
15010
|
-
const E = c.properties[f],
|
|
15011
|
-
(
|
|
15010
|
+
const E = c.properties[f], v = xn[f];
|
|
15011
|
+
(v === null || v.includes(c.tagName)) && (c.properties[f] = s(String(E || ""), f, c));
|
|
15012
15012
|
}
|
|
15013
15013
|
}
|
|
15014
15014
|
if (c.type === "element") {
|
|
@@ -21928,8 +21928,8 @@ function Fr(e, t) {
|
|
|
21928
21928
|
u += String.fromCharCode(f), d++;
|
|
21929
21929
|
continue;
|
|
21930
21930
|
}
|
|
21931
|
-
const
|
|
21932
|
-
let b =
|
|
21931
|
+
const g = r + 1;
|
|
21932
|
+
let b = g, A = g, T;
|
|
21933
21933
|
if (y === 35) {
|
|
21934
21934
|
A = ++b;
|
|
21935
21935
|
const M = e.charCodeAt(A);
|
|
@@ -21950,49 +21950,49 @@ function Fr(e, t) {
|
|
|
21950
21950
|
const M = T === "named" ? Ja(k) : !1;
|
|
21951
21951
|
M && (C = k, _ = M);
|
|
21952
21952
|
}
|
|
21953
|
-
let D = 1 + A -
|
|
21953
|
+
let D = 1 + A - g, F = "";
|
|
21954
21954
|
if (!(!O && a.nonTerminated === !1)) if (!k)
|
|
21955
|
-
T !== "named" &&
|
|
21955
|
+
T !== "named" && v(4, D);
|
|
21956
21956
|
else if (T === "named") {
|
|
21957
21957
|
if (O && !_)
|
|
21958
|
-
|
|
21958
|
+
v(5, 1);
|
|
21959
21959
|
else if (C !== k && (A = b + C.length, D = 1 + A - b, O = !1), !O) {
|
|
21960
21960
|
const M = C ? 1 : 3;
|
|
21961
21961
|
if (a.attribute) {
|
|
21962
21962
|
const I = e.charCodeAt(A);
|
|
21963
|
-
I === 61 ? (
|
|
21963
|
+
I === 61 ? (v(M, D), _ = "") : Du(I) ? _ = "" : v(M, D);
|
|
21964
21964
|
} else
|
|
21965
|
-
|
|
21965
|
+
v(M, D);
|
|
21966
21966
|
}
|
|
21967
21967
|
F = _;
|
|
21968
21968
|
} else {
|
|
21969
|
-
O ||
|
|
21969
|
+
O || v(2, D);
|
|
21970
21970
|
let M = Number.parseInt(
|
|
21971
21971
|
k,
|
|
21972
21972
|
T === "hexadecimal" ? 16 : 10
|
|
21973
21973
|
);
|
|
21974
21974
|
if (A1(M))
|
|
21975
|
-
|
|
21975
|
+
v(7, D), F = "�";
|
|
21976
21976
|
else if (M in Ou)
|
|
21977
|
-
|
|
21977
|
+
v(6, D), F = Ou[M];
|
|
21978
21978
|
else {
|
|
21979
21979
|
let I = "";
|
|
21980
|
-
w1(M) &&
|
|
21980
|
+
w1(M) && v(6, D), M > 65535 && (M -= 65536, I += String.fromCharCode(
|
|
21981
21981
|
M >>> 10 | 55296
|
|
21982
21982
|
), M = 56320 | M & 1023), F = I + String.fromCharCode(M);
|
|
21983
21983
|
}
|
|
21984
21984
|
}
|
|
21985
21985
|
if (F) {
|
|
21986
|
-
m(), h = E(), r = A - 1, d += A -
|
|
21986
|
+
m(), h = E(), r = A - 1, d += A - g + 1, n.push(F);
|
|
21987
21987
|
const M = E();
|
|
21988
21988
|
M.offset++, a.reference && a.reference.call(
|
|
21989
21989
|
a.referenceContext || void 0,
|
|
21990
21990
|
F,
|
|
21991
21991
|
{ start: h, end: M },
|
|
21992
|
-
e.slice(
|
|
21992
|
+
e.slice(g - 1, A)
|
|
21993
21993
|
), h = M;
|
|
21994
21994
|
} else
|
|
21995
|
-
k = e.slice(
|
|
21995
|
+
k = e.slice(g - 1, A), u += k, d += k.length, r = A - 1;
|
|
21996
21996
|
} else
|
|
21997
21997
|
f === 10 && (c++, i++, d = 0), Number.isNaN(f) ? m() : (u += String.fromCharCode(f), d++);
|
|
21998
21998
|
return n.join("");
|
|
@@ -22003,9 +22003,9 @@ function Fr(e, t) {
|
|
|
22003
22003
|
offset: r + ((s ? s.offset : 0) || 0)
|
|
22004
22004
|
};
|
|
22005
22005
|
}
|
|
22006
|
-
function
|
|
22006
|
+
function v(y, g) {
|
|
22007
22007
|
let b;
|
|
22008
|
-
a.warning && (b = E(), b.column +=
|
|
22008
|
+
a.warning && (b = E(), b.column += g, b.offset += g, a.warning.call(
|
|
22009
22009
|
a.warningContext || void 0,
|
|
22010
22010
|
x1[y],
|
|
22011
22011
|
b,
|
|
@@ -22147,7 +22147,7 @@ function F1(e) {
|
|
|
22147
22147
|
} else
|
|
22148
22148
|
f = r;
|
|
22149
22149
|
if (f && f.children && f.children.length > 0) {
|
|
22150
|
-
const E = u.enter("label"),
|
|
22150
|
+
const E = u.enter("label"), v = `${r.type}Label`, m = u.enter(v);
|
|
22151
22151
|
h += o.move("["), h += o.move(
|
|
22152
22152
|
u.containerPhrasing(f, {
|
|
22153
22153
|
...o.current(),
|
|
@@ -22158,9 +22158,9 @@ function F1(e) {
|
|
|
22158
22158
|
}
|
|
22159
22159
|
if (h += o.move(l(r, u)), r.type === "containerDirective") {
|
|
22160
22160
|
const E = (r.children || [])[0];
|
|
22161
|
-
let
|
|
22162
|
-
Ru(E) && (
|
|
22163
|
-
`), h += o.move(u.containerFlow(
|
|
22161
|
+
let v = r;
|
|
22162
|
+
Ru(E) && (v = Object.assign({}, r, { children: r.children.slice(1) })), v && v.children && v.children.length > 0 && (h += o.move(`
|
|
22163
|
+
`), h += o.move(u.containerFlow(v, o.current()))), h += o.move(`
|
|
22164
22164
|
` + c);
|
|
22165
22165
|
}
|
|
22166
22166
|
return d(), h;
|
|
@@ -22174,11 +22174,11 @@ function F1(e) {
|
|
|
22174
22174
|
if (h === "id")
|
|
22175
22175
|
d = t.preferShortcut !== !1 && Mu.test(f) ? "#" + f : n("id", f, r, i);
|
|
22176
22176
|
else if (h === "class") {
|
|
22177
|
-
const E = f.split(/[\t\n\r ]+/g),
|
|
22177
|
+
const E = f.split(/[\t\n\r ]+/g), v = [], m = [];
|
|
22178
22178
|
let y = -1;
|
|
22179
22179
|
for (; ++y < E.length; )
|
|
22180
|
-
(t.preferShortcut !== !1 && Mu.test(E[y]) ? m :
|
|
22181
|
-
o =
|
|
22180
|
+
(t.preferShortcut !== !1 && Mu.test(E[y]) ? m : v).push(E[y]);
|
|
22181
|
+
o = v.length > 0 ? n("class", v.join(" "), r, i) : "", c = m.length > 0 ? "." + m.join(".") : "";
|
|
22182
22182
|
} else
|
|
22183
22183
|
s.push(n(h, f, r, i));
|
|
22184
22184
|
}
|
|
@@ -22274,27 +22274,27 @@ function G1(e) {
|
|
|
22274
22274
|
}), t += 3) : e.type === "leafDirective" ? t = 2 : t = 1, ":".repeat(t);
|
|
22275
22275
|
}
|
|
22276
22276
|
function $r(e, t, a, l, n, r, i, u, s, o, c, d, h, f, E) {
|
|
22277
|
-
let
|
|
22277
|
+
let v, m;
|
|
22278
22278
|
return y;
|
|
22279
22279
|
function y(x) {
|
|
22280
|
-
return e.enter(l), e.enter(n), e.consume(x), e.exit(n),
|
|
22280
|
+
return e.enter(l), e.enter(n), e.consume(x), e.exit(n), g;
|
|
22281
22281
|
}
|
|
22282
|
-
function
|
|
22283
|
-
return x === 35 ? (
|
|
22282
|
+
function g(x) {
|
|
22283
|
+
return x === 35 ? (v = i, b(x)) : x === 46 ? (v = u, b(x)) : E && _e(x) ? ke(e, g, "whitespace")(x) : !E && $e(x) ? Nt(e, g)(x) : x === null || fe(x) || el(x) || Za(x) && x !== 45 && x !== 95 ? I(x) : (e.enter(r), e.enter(s), e.consume(x), C);
|
|
22284
22284
|
}
|
|
22285
22285
|
function b(x) {
|
|
22286
22286
|
const L = (
|
|
22287
22287
|
/** @type {TokenType} */
|
|
22288
|
-
|
|
22288
|
+
v + "Marker"
|
|
22289
22289
|
);
|
|
22290
|
-
return e.enter(r), e.enter(
|
|
22290
|
+
return e.enter(r), e.enter(v), e.enter(L), e.consume(x), e.exit(L), A;
|
|
22291
22291
|
}
|
|
22292
22292
|
function A(x) {
|
|
22293
22293
|
if (x === null || x === 34 || x === 35 || x === 39 || x === 46 || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || $e(x))
|
|
22294
22294
|
return a(x);
|
|
22295
22295
|
const L = (
|
|
22296
22296
|
/** @type {TokenType} */
|
|
22297
|
-
|
|
22297
|
+
v + "Value"
|
|
22298
22298
|
);
|
|
22299
22299
|
return e.enter(L), e.consume(x), T;
|
|
22300
22300
|
}
|
|
@@ -22304,9 +22304,9 @@ function $r(e, t, a, l, n, r, i, u, s, o, c, d, h, f, E) {
|
|
|
22304
22304
|
if (x === 35 || x === 46 || x === 125 || $e(x)) {
|
|
22305
22305
|
const L = (
|
|
22306
22306
|
/** @type {TokenType} */
|
|
22307
|
-
|
|
22307
|
+
v + "Value"
|
|
22308
22308
|
);
|
|
22309
|
-
return e.exit(L), e.exit(
|
|
22309
|
+
return e.exit(L), e.exit(v), e.exit(r), g(x);
|
|
22310
22310
|
}
|
|
22311
22311
|
return e.consume(x), T;
|
|
22312
22312
|
}
|
|
@@ -22314,13 +22314,13 @@ function $r(e, t, a, l, n, r, i, u, s, o, c, d, h, f, E) {
|
|
|
22314
22314
|
return x === null || fe(x) || el(x) || Za(x) && x !== 45 && x !== 46 && x !== 58 && x !== 95 ? (e.exit(s), E && _e(x) ? ke(e, _, "whitespace")(x) : !E && $e(x) ? Nt(e, _)(x) : _(x)) : (e.consume(x), C);
|
|
22315
22315
|
}
|
|
22316
22316
|
function _(x) {
|
|
22317
|
-
return x === 61 ? (e.enter(o), e.consume(x), e.exit(o), k) : (e.exit(r),
|
|
22317
|
+
return x === 61 ? (e.enter(o), e.consume(x), e.exit(o), k) : (e.exit(r), g(x));
|
|
22318
22318
|
}
|
|
22319
22319
|
function k(x) {
|
|
22320
22320
|
return x === null || x === 60 || x === 61 || x === 62 || x === 96 || x === 125 || E && fe(x) ? a(x) : x === 34 || x === 39 ? (e.enter(c), e.enter(h), e.consume(x), e.exit(h), m = x, O) : E && _e(x) ? ke(e, k, "whitespace")(x) : !E && $e(x) ? Nt(e, k)(x) : (e.enter(d), e.enter(f), e.consume(x), m = void 0, w);
|
|
22321
22321
|
}
|
|
22322
22322
|
function w(x) {
|
|
22323
|
-
return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96 ? a(x) : x === 125 || $e(x) ? (e.exit(f), e.exit(d), e.exit(r),
|
|
22323
|
+
return x === null || x === 34 || x === 39 || x === 60 || x === 61 || x === 62 || x === 96 ? a(x) : x === 125 || $e(x) ? (e.exit(f), e.exit(d), e.exit(r), g(x)) : (e.consume(x), w);
|
|
22324
22324
|
}
|
|
22325
22325
|
function O(x) {
|
|
22326
22326
|
return x === m ? (e.enter(h), e.consume(x), e.exit(h), e.exit(c), e.exit(r), M) : (e.enter(d), D(x));
|
|
@@ -22332,7 +22332,7 @@ function $r(e, t, a, l, n, r, i, u, s, o, c, d, h, f, E) {
|
|
|
22332
22332
|
return x === m || x === null || fe(x) ? (e.exit(f), D(x)) : (e.consume(x), F);
|
|
22333
22333
|
}
|
|
22334
22334
|
function M(x) {
|
|
22335
|
-
return x === 125 || $e(x) ?
|
|
22335
|
+
return x === 125 || $e(x) ? g(x) : I(x);
|
|
22336
22336
|
}
|
|
22337
22337
|
function I(x) {
|
|
22338
22338
|
return x === 125 ? (e.enter(n), e.consume(x), e.exit(n), e.exit(l), t) : a(x);
|
|
@@ -22349,7 +22349,7 @@ function Ur(e, t, a, l, n, r, i) {
|
|
|
22349
22349
|
}
|
|
22350
22350
|
function h(m) {
|
|
22351
22351
|
if (m === 93 && !s)
|
|
22352
|
-
return
|
|
22352
|
+
return v(m);
|
|
22353
22353
|
const y = e.enter("chunkText", {
|
|
22354
22354
|
_contentTypeTextTrailing: !0,
|
|
22355
22355
|
contentType: "text",
|
|
@@ -22358,12 +22358,12 @@ function Ur(e, t, a, l, n, r, i) {
|
|
|
22358
22358
|
return o && (o.next = y), o = y, f(m);
|
|
22359
22359
|
}
|
|
22360
22360
|
function f(m) {
|
|
22361
|
-
return m === null || u > 999 || m === 91 && ++s > 32 ? a(m) : m === 93 && !s-- ? (e.exit("chunkText"),
|
|
22361
|
+
return m === null || u > 999 || m === 91 && ++s > 32 ? a(m) : m === 93 && !s-- ? (e.exit("chunkText"), v(m)) : fe(m) ? i ? a(m) : (e.consume(m), e.exit("chunkText"), h) : (e.consume(m), m === 92 ? E : f);
|
|
22362
22362
|
}
|
|
22363
22363
|
function E(m) {
|
|
22364
22364
|
return m === 91 || m === 92 || m === 93 ? (e.consume(m), u++, f) : f(m);
|
|
22365
22365
|
}
|
|
22366
|
-
function
|
|
22366
|
+
function v(m) {
|
|
22367
22367
|
return e.exit(r), e.enter(n), e.consume(m), e.exit(n), e.exit(l), t;
|
|
22368
22368
|
}
|
|
22369
22369
|
}
|
|
@@ -22413,16 +22413,16 @@ function K1(e, t, a) {
|
|
|
22413
22413
|
return e.exit("directiveContainerFence"), w === null ? _(w) : fe(w) ? l.interrupt ? t(w) : e.attempt(wl, E, _)(w) : a(w);
|
|
22414
22414
|
}
|
|
22415
22415
|
function E(w) {
|
|
22416
|
-
return w === null ? _(w) : fe(w) ? e.check(wl, b, _)(w) : (e.enter("directiveContainerContent"),
|
|
22416
|
+
return w === null ? _(w) : fe(w) ? e.check(wl, b, _)(w) : (e.enter("directiveContainerContent"), v(w));
|
|
22417
22417
|
}
|
|
22418
|
-
function
|
|
22418
|
+
function v(w) {
|
|
22419
22419
|
return e.attempt({
|
|
22420
22420
|
tokenize: k,
|
|
22421
22421
|
partial: !0
|
|
22422
22422
|
}, C, r ? ke(e, m, "linePrefix", r + 1) : m)(w);
|
|
22423
22423
|
}
|
|
22424
22424
|
function m(w) {
|
|
22425
|
-
return w === null ? C(w) : fe(w) ? e.check(wl,
|
|
22425
|
+
return w === null ? C(w) : fe(w) ? e.check(wl, g, C)(w) : g(w);
|
|
22426
22426
|
}
|
|
22427
22427
|
function y(w) {
|
|
22428
22428
|
if (w === null) {
|
|
@@ -22431,7 +22431,7 @@ function K1(e, t, a) {
|
|
|
22431
22431
|
}
|
|
22432
22432
|
return fe(w) ? e.check(wl, A, T)(w) : (e.consume(w), y);
|
|
22433
22433
|
}
|
|
22434
|
-
function
|
|
22434
|
+
function g(w) {
|
|
22435
22435
|
const O = e.enter("chunkDocument", {
|
|
22436
22436
|
contentType: "document",
|
|
22437
22437
|
previous: u
|
|
@@ -22439,12 +22439,12 @@ function K1(e, t, a) {
|
|
|
22439
22439
|
return u && (u.next = O), u = O, y(w);
|
|
22440
22440
|
}
|
|
22441
22441
|
function b(w) {
|
|
22442
|
-
return e.enter("directiveContainerContent"),
|
|
22442
|
+
return e.enter("directiveContainerContent"), v(w);
|
|
22443
22443
|
}
|
|
22444
22444
|
function A(w) {
|
|
22445
22445
|
e.consume(w);
|
|
22446
22446
|
const O = e.exit("chunkDocument");
|
|
22447
|
-
return l.parser.lazy[O.start.line] = !1,
|
|
22447
|
+
return l.parser.lazy[O.start.line] = !1, v;
|
|
22448
22448
|
}
|
|
22449
22449
|
function T(w) {
|
|
22450
22450
|
const O = e.exit("chunkDocument");
|
|
@@ -22654,7 +22654,7 @@ const hy = {
|
|
|
22654
22654
|
onStepChange: r,
|
|
22655
22655
|
renderRichText: i
|
|
22656
22656
|
}) => {
|
|
22657
|
-
const u = e[t], s = u?.images || [], o = u?.stepDescriptions || [], c = Math.min(s.length, o.length), d = Math.min(Math.max(a, 0), Math.max(0, c - 1)), h = s[d], f = o[d] || "", E = e.length > 1, [
|
|
22657
|
+
const u = e[t], s = u?.images || [], o = u?.stepDescriptions || [], c = Math.min(s.length, o.length), d = Math.min(Math.max(a, 0), Math.max(0, c - 1)), h = s[d], f = o[d] || "", E = e.length > 1, [v, m] = re(void 0), y = Z(null), g = ue((b) => {
|
|
22658
22658
|
if (y.current && (y.current.disconnect(), y.current = null), !b) return;
|
|
22659
22659
|
const A = new ResizeObserver((T) => {
|
|
22660
22660
|
for (const C of T) {
|
|
@@ -22711,7 +22711,7 @@ const hy = {
|
|
|
22711
22711
|
h ? /* @__PURE__ */ G(
|
|
22712
22712
|
"img",
|
|
22713
22713
|
{
|
|
22714
|
-
ref:
|
|
22714
|
+
ref: g,
|
|
22715
22715
|
className: "rte-steps-preview-image",
|
|
22716
22716
|
src: h,
|
|
22717
22717
|
alt: `step-${d + 1}`
|
|
@@ -22743,7 +22743,7 @@ const hy = {
|
|
|
22743
22743
|
"div",
|
|
22744
22744
|
{
|
|
22745
22745
|
className: "rte-steps-preview-step-card",
|
|
22746
|
-
style:
|
|
22746
|
+
style: v ? { width: v } : void 0,
|
|
22747
22747
|
children: [
|
|
22748
22748
|
/* @__PURE__ */ pe("div", { className: "rte-steps-preview-step-badge", children: [
|
|
22749
22749
|
/* @__PURE__ */ G("span", { className: "rte-steps-preview-step-badge-label", children: "步骤" }),
|
|
@@ -22768,11 +22768,11 @@ const hy = {
|
|
|
22768
22768
|
debugTooltipSticky: a = !1,
|
|
22769
22769
|
videoState: l
|
|
22770
22770
|
}) => {
|
|
22771
|
-
const [n, r] = re(null), [i, u] = re(!1), [s, o] = re(0), c = Z(null), d = Z(null), h = Z(null), f = Z(null), E = 200,
|
|
22771
|
+
const [n, r] = re(null), [i, u] = re(!1), [s, o] = re(0), c = Z(null), d = Z(null), h = Z(null), f = Z(null), E = 200, v = 200, m = ue(() => {
|
|
22772
22772
|
d.current && (window.clearTimeout(d.current), d.current = null), h.current && (window.clearTimeout(h.current), h.current = null), f.current !== null && (window.cancelAnimationFrame(f.current), f.current = null);
|
|
22773
22773
|
}, []), y = ue(() => {
|
|
22774
22774
|
m(), u(!0);
|
|
22775
|
-
}, [m]),
|
|
22775
|
+
}, [m]), g = ue(
|
|
22776
22776
|
(L) => {
|
|
22777
22777
|
if (m(), L) {
|
|
22778
22778
|
r(L), u(!1), f.current = window.requestAnimationFrame(() => {
|
|
@@ -22783,7 +22783,7 @@ const hy = {
|
|
|
22783
22783
|
d.current = window.setTimeout(() => {
|
|
22784
22784
|
d.current = null, u(!1), h.current = window.setTimeout(() => {
|
|
22785
22785
|
r(null), h.current = null;
|
|
22786
|
-
},
|
|
22786
|
+
}, v);
|
|
22787
22787
|
}, E);
|
|
22788
22788
|
},
|
|
22789
22789
|
[m]
|
|
@@ -22808,7 +22808,7 @@ const hy = {
|
|
|
22808
22808
|
const N = () => {
|
|
22809
22809
|
const Y = L.getBoundingClientRect();
|
|
22810
22810
|
if (Y.bottom <= 0 || Y.top >= window.innerHeight || Y.right <= 0 || Y.left >= window.innerWidth) {
|
|
22811
|
-
|
|
22811
|
+
g(null);
|
|
22812
22812
|
return;
|
|
22813
22813
|
}
|
|
22814
22814
|
o((S) => S + 1);
|
|
@@ -22882,10 +22882,10 @@ const hy = {
|
|
|
22882
22882
|
]), ne(() => {
|
|
22883
22883
|
if (!a) return;
|
|
22884
22884
|
const L = ($) => {
|
|
22885
|
-
$.key === "Escape" &&
|
|
22885
|
+
$.key === "Escape" && g(null);
|
|
22886
22886
|
};
|
|
22887
22887
|
return window.addEventListener("keydown", L, !0), () => window.removeEventListener("keydown", L, !0);
|
|
22888
|
-
}, [a,
|
|
22888
|
+
}, [a, g]), { tooltipPortal: n?.anchorEl ? (() => {
|
|
22889
22889
|
if (!document.body.contains(n.anchorEl))
|
|
22890
22890
|
return null;
|
|
22891
22891
|
let L = "", $ = {
|
|
@@ -22916,7 +22916,7 @@ const hy = {
|
|
|
22916
22916
|
style: D ? { width: `${D}px` } : void 0,
|
|
22917
22917
|
onMouseEnter: () => y(),
|
|
22918
22918
|
onMouseLeave: () => {
|
|
22919
|
-
!a && !C &&
|
|
22919
|
+
!a && !C && g(null);
|
|
22920
22920
|
},
|
|
22921
22921
|
onClick: (De) => {
|
|
22922
22922
|
De.preventDefault(), De.stopPropagation();
|
|
@@ -23033,7 +23033,7 @@ const hy = {
|
|
|
23033
23033
|
platformIndex: te,
|
|
23034
23034
|
stepIndex: Ie,
|
|
23035
23035
|
onClose: () => {
|
|
23036
|
-
_(!1), a ||
|
|
23036
|
+
_(!1), a || g(null);
|
|
23037
23037
|
},
|
|
23038
23038
|
onSwitchPlatform: (De) => {
|
|
23039
23039
|
De !== te && (w(De), A(0), T.current?.slideTo(0));
|
|
@@ -23130,7 +23130,7 @@ const hy = {
|
|
|
23130
23130
|
{
|
|
23131
23131
|
onMouseEnter: () => y(),
|
|
23132
23132
|
onMouseLeave: () => {
|
|
23133
|
-
a ||
|
|
23133
|
+
a || g(null);
|
|
23134
23134
|
},
|
|
23135
23135
|
onClick: (S) => {
|
|
23136
23136
|
S.preventDefault(), S.stopPropagation();
|
|
@@ -23143,7 +23143,7 @@ const hy = {
|
|
|
23143
23143
|
style: { maxWidth: "200px", fontSize: "12px", color: Y },
|
|
23144
23144
|
onMouseEnter: () => y(),
|
|
23145
23145
|
onMouseLeave: () => {
|
|
23146
|
-
a ||
|
|
23146
|
+
a || g(null);
|
|
23147
23147
|
},
|
|
23148
23148
|
onClick: (S) => {
|
|
23149
23149
|
S.preventDefault(), S.stopPropagation();
|
|
@@ -23174,7 +23174,7 @@ const hy = {
|
|
|
23174
23174
|
),
|
|
23175
23175
|
document.body
|
|
23176
23176
|
);
|
|
23177
|
-
})() : null, setPopoverVisible:
|
|
23177
|
+
})() : null, setPopoverVisible: g };
|
|
23178
23178
|
}, Sy = (e, t) => {
|
|
23179
23179
|
const a = t.hideButtons === "hideTagClose", l = t.lockStructure || a ? "" : '<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>', n = t.lockStructure ? ' data-locked="true"' : "", r = ot(e.tooltip), i = r ? ` data-tooltip="${me(r)}" data-tag-key="${e.key || ""}"` : "";
|
|
23180
23180
|
return `<span contenteditable="false" class="tag-node group"${n}${i}><span class="tag-label">${e.text}</span>${l}</span>`;
|
|
@@ -23184,10 +23184,10 @@ const hy = {
|
|
|
23184
23184
|
}, ky = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Ro = (e, t) => {
|
|
23185
23185
|
const l = (e.key ? t[e.key] : void 0) || e.text || "", n = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", r = ot(e.tooltip), i = r ? ` data-tooltip="${me(r)}" data-variable-key="${e.key || ""}"` : "";
|
|
23186
23186
|
if (e.useAntd === !0) {
|
|
23187
|
-
const h = l ? encodeURIComponent(l) : "", f = me(e.placeholder || ""), E = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"',
|
|
23187
|
+
const h = l ? encodeURIComponent(l) : "", f = me(e.placeholder || ""), E = e.allowNewline === !1 ? ' data-allow-newline="0"' : ' data-allow-newline="1"', v = Dl(l || e.placeholder || ""), m = r && !l ? 18 : 0;
|
|
23188
23188
|
return `<span contenteditable="false" data-type="variable" data-variable-render="antd-textarea" data-key="${e.key}" data-value="${h}" data-placeholder="${f}" data-estimated-width="${Math.min(
|
|
23189
23189
|
600,
|
|
23190
|
-
|
|
23190
|
+
v + m
|
|
23191
23191
|
)}"${E}${n}${i} class="rte-variable-host-v2"></span>`;
|
|
23192
23192
|
}
|
|
23193
23193
|
const u = !l, s = u ? "" : me(l).replace(/\n/g, "<br/>"), o = u ? "show-placeholder" : "", c = r && u ? "rte-variable-with-icon" : "", d = r && u ? "" : "hidden";
|
|
@@ -23225,8 +23225,8 @@ const Ly = (e, t, a, l) => {
|
|
|
23225
23225
|
}
|
|
23226
23226
|
return [...n, ...r].slice(0, l);
|
|
23227
23227
|
}, Bo = (e, t) => {
|
|
23228
|
-
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = ot(e.tooltip), n = l ? ` data-tooltip="${me(l)}"` : "", { hasFile: r, fileName: i, uploadIcon: u } = fr(t[e.key], e.text), s = r ? "" : "hidden", o = l && !r ? "" : "hidden", c = r ? "has-file" : "", d = (r ? i : e.text || e.placeholder) || "", h = d ? ` data-file-name="${d.replace(/"/g, """)}"` : "", f = (e.text || "").trim(),
|
|
23229
|
-
return { uploadHtml: `<span contenteditable="false" data-type="upload" data-key="${e.key}"${n} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${u}</span><span class="upload-label"${h}>${i || e.text}</span>${y}${
|
|
23228
|
+
const a = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", l = ot(e.tooltip), n = l ? ` data-tooltip="${me(l)}"` : "", { hasFile: r, fileName: i, uploadIcon: u } = fr(t[e.key], e.text), s = r ? "" : "hidden", o = l && !r ? "" : "hidden", c = r ? "has-file" : "", d = (r ? i : e.text || e.placeholder) || "", h = d ? ` data-file-name="${d.replace(/"/g, """)}"` : "", f = (e.text || "").trim(), v = r && f.length >= 12 ? `<span ${a} contenteditable="false" class="exclusion-wrapper upload-hint">${f}</span>` : "", m = cr(l), y = m ? dr(e.key, l, r) : "", g = l && !m ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${o}" data-upload-key="${e.key}" data-tooltip="${me(l)}" ></i>` : "";
|
|
23229
|
+
return { uploadHtml: `<span contenteditable="false" data-type="upload" data-key="${e.key}"${n} class="upload-chip"><span class="upload-inner-wrapper ${c}"><span class="upload-icon">${u}</span><span class="upload-label"${h}>${i || e.text}</span>${y}${g}<span class="file-remove-btn ${s}" title="移除文件">×</span></span></span>`, hintHtml: v };
|
|
23230
23230
|
}, Fo = (e, t, a) => {
|
|
23231
23231
|
const l = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "";
|
|
23232
23232
|
if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
|
|
@@ -23245,7 +23245,7 @@ const Ly = (e, t, a, l) => {
|
|
|
23245
23245
|
}
|
|
23246
23246
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Bu}<span class="rte-upload-batch-chips">${M}${a}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${M}${a}</span>`;
|
|
23247
23247
|
}
|
|
23248
|
-
const r = ot(e.tooltip), i = r ? ` data-tooltip="${me(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = fr(t[e.key], e.text), c = u ? "" : "hidden", d = r && !u ? "" : "hidden", h = u ? "has-file" : "", f = (u ? s : e.text || e.placeholder) || "", E = f ? ` data-file-name="${f.replace(/"/g, """)}"` : "",
|
|
23248
|
+
const r = ot(e.tooltip), i = r ? ` data-tooltip="${me(r)}"` : "", { hasFile: u, fileName: s, uploadIcon: o } = fr(t[e.key], e.text), c = u ? "" : "hidden", d = r && !u ? "" : "hidden", h = u ? "has-file" : "", f = (u ? s : e.text || e.placeholder) || "", E = f ? ` data-file-name="${f.replace(/"/g, """)}"` : "", v = (e.text || "").trim(), y = u && e.showHint === !0 && v.length >= 12 ? `<span ${l} contenteditable="false" class="exclusion-wrapper upload-hint">${v}</span>` : "", g = cr(r), b = g ? dr(e.key, r, u) : "", A = r && !g ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${d}" data-upload-key="${e.key}" data-tooltip="${me(r)}" ></i>` : "", T = `<span contenteditable="false" data-type="upload" data-key="${e.key}"${i} class="upload-chip"><span class="upload-inner-wrapper ${h}"><span class="upload-icon">${o}</span><span class="upload-label"${E}>${s || e.text}</span>${b}${A}<span class="file-remove-btn ${c}" title="移除文件">×</span></span></span>`;
|
|
23249
23249
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Bu}${T}${a}</span>${y}` : T + a + y;
|
|
23250
23250
|
}, Oy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Dy = (e, t) => {
|
|
23251
23251
|
const a = t[e.key] || e.defaultValue || "", l = encodeURIComponent(JSON.stringify(e.options || [])), n = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", r = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", i = e.required ? ' data-required="true"' : "", u = `<span data-type="select" data-key="${e.key}" data-value="${a}" data-options="${l}"${n}${r}${i} class="rte-select-host"></span>`;
|
|
@@ -23257,29 +23257,29 @@ const Ly = (e, t, a, l) => {
|
|
|
23257
23257
|
const l = t[e.key] || e.text || "", n = typeof e.minHeight == "number" ? e.minHeight : 40, r = typeof e.maxHeight == "number" ? e.maxHeight : 160, i = Math.max(r, n), u = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", s = e.expandable !== !1, o = l, c = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${u} style="min-height:${n}px;max-height:${i}px;overflow:auto;">${o}</div>`, d = s ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", h = `<div class="rte-richtext-wrapper${s ? " rte-richtext-toggleable" : ""}" data-key="${e.key}">${c}${d}</div>`, f = `<div class="rte-richtext-container" data-key="${e.key}">${h}</div>`;
|
|
23258
23258
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23259
23259
|
}, By = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Fy = (e, t, a) => {
|
|
23260
|
-
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = ot(e.tooltip), f = h ? ` data-tooltip="${me(h)}" data-variable-key="${e.key || ""}"` : "", E = s ? "" : "hidden",
|
|
23260
|
+
const l = `${e.key}__url`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : void 0, i = e.key ? t[e.key] : void 0, u = r ?? i ?? e.text ?? "", s = !u, o = s ? "" : u, c = s ? "show-placeholder" : "", d = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", h = ot(e.tooltip), f = h ? ` data-tooltip="${me(h)}" data-variable-key="${e.key || ""}"` : "", E = s ? "" : "hidden", v = !!a, m = (v || h) && s ? "rte-variable-with-icon" : "";
|
|
23261
23261
|
let y = "";
|
|
23262
|
-
|
|
23263
|
-
const
|
|
23262
|
+
v ? y = `<span contenteditable="false" class="rte-report-dropdown-host ${E}" data-key="${e.key}" data-node-type="report-url"></span>` : h && (y = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${me(h)}" ></i>`);
|
|
23263
|
+
const g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${me(
|
|
23264
23264
|
e.placeholder || ""
|
|
23265
23265
|
)}"${d}${f} class="variable-chip rte-report-url ${c}${m ? ` ${m}` : ""}">${o}${y}</span>`;
|
|
23266
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${By}${
|
|
23266
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${By}${g}</span>` : g;
|
|
23267
23267
|
}, Hy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, $y = (e, t) => {
|
|
23268
|
-
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = ot(e.tooltip), h = d ? ` data-tooltip="${me(d)}" data-variable-key="${e.key || ""}"` : "", f = d && u ? "rte-variable-with-icon" : "", E = d && u ? "" : "hidden",
|
|
23268
|
+
const a = `${e.key}__name`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = ot(e.tooltip), h = d ? ` data-tooltip="${me(d)}" data-variable-key="${e.key || ""}"` : "", f = d && u ? "rte-variable-with-icon" : "", E = d && u ? "" : "hidden", v = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown-name" data-placeholder="${me(
|
|
23269
23269
|
e.placeholder || ""
|
|
23270
23270
|
)}"${c}${h} class="variable-chip rte-markdown-name ${o}${f ? ` ${f}` : ""}">${s}${d ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${E}" data-variable-key="${e.key}" data-tooltip="${me(d)}" ></i>` : ""}</span>`;
|
|
23271
|
-
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Hy}${
|
|
23271
|
+
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Hy}${v}</span>` : v;
|
|
23272
23272
|
}, Uy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, qy = (e, t) => {
|
|
23273
|
-
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${me(e.sourceTextKey)}"` : "", h = ot(e.tooltip), f = h ? ` data-tooltip="${me(h)}" data-variable-key="${e.key || ""}"` : "", E = h && u ? "rte-variable-with-icon" : "",
|
|
23273
|
+
const a = e.sourceTextKey || `${e.key}__sourceText`, n = Object.prototype.hasOwnProperty.call(t, a) ? t[a] : void 0, r = e.key ? t[e.key] : void 0, i = n ?? r ?? e.text ?? "", u = !i, s = u ? "" : i, o = u ? "show-placeholder" : "", c = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", d = e.sourceTextKey ? ` data-source-text-key="${me(e.sourceTextKey)}"` : "", h = ot(e.tooltip), f = h ? ` data-tooltip="${me(h)}" data-variable-key="${e.key || ""}"` : "", E = h && u ? "rte-variable-with-icon" : "", v = h && u ? "" : "hidden", m = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${me(
|
|
23274
23274
|
e.placeholder || ""
|
|
23275
|
-
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${
|
|
23275
|
+
)}"${c}${d}${f} class="variable-chip rte-markdown-input ${o}${E ? ` ${E}` : ""}">${s}${h ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${v}" data-variable-key="${e.key}" data-tooltip="${me(h)}" ></i>` : ""}</span>`;
|
|
23276
23276
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Uy}${m}</span>` : m;
|
|
23277
23277
|
}, zy = (e, t) => {
|
|
23278
23278
|
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${me(e.placeholder)}"` : "", c = r, d = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${a}" class="rte-richtext rte-report-module"${o} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, h = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${d}</div>`, f = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${h}</div>`;
|
|
23279
23279
|
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${f}</div>` : f;
|
|
23280
23280
|
}, Vy = (e, t) => {
|
|
23281
|
-
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${me(e.placeholder)}"` : "", c = r, h = typeof c == "string" && c.startsWith("请补充:") ? ' data-is-placeholder="true"' : "", f = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${a}" class="rte-richtext rte-markdown-module"${o}${h} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, E = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`,
|
|
23282
|
-
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${
|
|
23281
|
+
const a = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, l = `${e.key}__module_${a}`, r = Object.prototype.hasOwnProperty.call(t, l) ? t[l] : e.text || "", i = typeof e.minHeight == "number" ? e.minHeight : 80, u = typeof e.maxHeight == "number" ? e.maxHeight : 240, s = Math.max(u, i), o = e.placeholder ? ` data-placeholder="${me(e.placeholder)}"` : "", c = r, h = typeof c == "string" && c.startsWith("请补充:") ? ' data-is-placeholder="true"' : "", f = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${a}" class="rte-richtext rte-markdown-module"${o}${h} style="min-height:${i}px;max-height:${s}px;overflow:auto;">${c}</div>`, E = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${f}</div>`, v = `<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${E}</div>`;
|
|
23282
|
+
return e.required ? `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${v}</div>` : v;
|
|
23283
23283
|
}, Gy = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, Yy = (e, t) => {
|
|
23284
23284
|
const a = t[e.key] || "", l = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", n = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", r = e.disableFuture ? ' data-disable-future="true"' : "", i = `<div data-type="datepicker" data-key="${e.key}" data-value="${a}" class="rte-datepicker-host"${l}${n}${r}></div>`;
|
|
23285
23285
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">${Gy}${i}</span>` : i;
|
|
@@ -23292,10 +23292,10 @@ const Ly = (e, t, a, l) => {
|
|
|
23292
23292
|
const o = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", c = ot(e.tooltip);
|
|
23293
23293
|
let d = "";
|
|
23294
23294
|
for (let h = 0; h < i; h++) {
|
|
23295
|
-
const f = `${e.key}_${h}`, E = t[f] || "",
|
|
23295
|
+
const f = `${e.key}_${h}`, E = t[f] || "", v = !E, m = v ? "" : me(E).replace(/\n/g, "<br/>"), y = v ? "show-placeholder" : "", g = c && v ? "rte-variable-with-icon" : "", b = c ? ` data-tooltip="${me(c)}" data-variable-key="${e.key || ""}"` : "", A = c && v ? "" : "hidden", T = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", C = l && c;
|
|
23296
23296
|
let _ = "";
|
|
23297
23297
|
C ? _ = `<span contenteditable="false" class="rte-report-dropdown-host ${A}" data-key="${f}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : c && (_ = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${A}" data-variable-key="${e.key}" data-tooltip="${me(c)}" ></i>`);
|
|
23298
|
-
const k = `<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${h}" data-placeholder="${e.placeholder || ""}"${T}${b} class="variable-chip ${y}${
|
|
23298
|
+
const k = `<span contenteditable="true" data-type="variable" data-key="${f}" data-multi-key="${e.key}" data-index="${h}" data-placeholder="${e.placeholder || ""}"${T}${b} class="variable-chip ${y}${g ? ` ${g}` : ""}">${m}${_}</span>`;
|
|
23299
23299
|
h === 0 ? d += `<span ${o} class="exclusion-wrapper required-upload-group required-multi-first">${Ky}${k}</span>` : d += k;
|
|
23300
23300
|
}
|
|
23301
23301
|
return d;
|
|
@@ -23303,10 +23303,10 @@ const Ly = (e, t, a, l) => {
|
|
|
23303
23303
|
const u = ot(e.tooltip);
|
|
23304
23304
|
let s = "";
|
|
23305
23305
|
for (let o = 0; o < i; o++) {
|
|
23306
|
-
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" : me(d).replace(/\n/g, "<br/>"), E = h ? "show-placeholder" : "",
|
|
23306
|
+
const c = `${e.key}_${o}`, d = t[c] || "", h = !d, f = h ? "" : me(d).replace(/\n/g, "<br/>"), E = h ? "show-placeholder" : "", v = u && h ? "rte-variable-with-icon" : "", m = u ? ` data-tooltip="${me(u)}" data-variable-key="${e.key || ""}"` : "", y = u && h ? "" : "hidden", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", b = l && u;
|
|
23307
23307
|
let A = "";
|
|
23308
23308
|
b ? A = `<span contenteditable="false" class="rte-report-dropdown-host ${y}" data-key="${c}" data-multi-key="${e.key}" data-node-type="multi-variable"></span>` : u && (A = `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${y}" data-variable-key="${e.key}" data-tooltip="${me(u)}" ></i>`);
|
|
23309
|
-
const T = `<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder || ""}"${
|
|
23309
|
+
const T = `<span contenteditable="true" data-type="variable" data-key="${c}" data-multi-key="${e.key}" data-index="${o}" data-placeholder="${e.placeholder || ""}"${g}${m} class="variable-chip ${E}${v ? ` ${v}` : ""}">${f}${A}</span>`;
|
|
23310
23310
|
s += T;
|
|
23311
23311
|
}
|
|
23312
23312
|
return s;
|
|
@@ -29223,15 +29223,15 @@ function nT(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29223
29223
|
const y = (m ?? "").trim();
|
|
29224
29224
|
return y.length === 1 && c.test(y);
|
|
29225
29225
|
}, h = (m) => {
|
|
29226
|
-
const y = m ?? "",
|
|
29227
|
-
if (!
|
|
29228
|
-
const b =
|
|
29226
|
+
const y = m ?? "", g = y.match(new RegExp(`^\\s*(${c.source})`));
|
|
29227
|
+
if (!g) return null;
|
|
29228
|
+
const b = g[1], A = y.replace(new RegExp(`^\\s*${c.source}`), "");
|
|
29229
29229
|
return { punct: b, rest: A };
|
|
29230
29230
|
}, f = (m) => `<span data-type="text" class="rte-inline-punct" contenteditable="false">${m}</span>`, E = [];
|
|
29231
|
-
let
|
|
29232
|
-
for (;
|
|
29233
|
-
const m = t[
|
|
29234
|
-
let
|
|
29231
|
+
let v = 0;
|
|
29232
|
+
for (; v < t.length; ) {
|
|
29233
|
+
const m = t[v], y = v + 1 < t.length ? t[v + 1] : null;
|
|
29234
|
+
let g = !1;
|
|
29235
29235
|
if (m.type === "text" && (m.text?.includes("icon-bitian") || m.className === "rte-text-required") && y) {
|
|
29236
29236
|
const w = y.type === "upload" && y.exclusionGroup === "fileInput" && m.exclusionGroup === "fileInput" && m.exclusionGroup === y.exclusionGroup, O = y.type === "variable" && y.exclusionGroup === "textInput" && m.exclusionGroup === "textInput" && m.exclusionGroup === y.exclusionGroup;
|
|
29237
29237
|
if (w) {
|
|
@@ -29239,7 +29239,7 @@ function nT(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29239
29239
|
let I = "";
|
|
29240
29240
|
m.className ? I = `<span class="${m.className}">${m.text ?? ""}</span>` : I = m.text ?? "";
|
|
29241
29241
|
const x = y, { uploadHtml: L, hintHtml: $ } = Bo(x, a);
|
|
29242
|
-
E.push(F + I + L + M + $),
|
|
29242
|
+
E.push(F + I + L + M + $), v += 2;
|
|
29243
29243
|
continue;
|
|
29244
29244
|
}
|
|
29245
29245
|
if (O) {
|
|
@@ -29247,7 +29247,7 @@ function nT(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29247
29247
|
let I = "";
|
|
29248
29248
|
m.className ? I = `<span class="${m.className}">${m.text ?? ""}</span>` : I = m.text ?? "";
|
|
29249
29249
|
const L = Ro(y, n);
|
|
29250
|
-
E.push(F + I + L + M),
|
|
29250
|
+
E.push(F + I + L + M), v += 2;
|
|
29251
29251
|
continue;
|
|
29252
29252
|
}
|
|
29253
29253
|
}
|
|
@@ -29267,13 +29267,13 @@ function nT(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29267
29267
|
_ = qy(m, n);
|
|
29268
29268
|
else if (m.type === "upload" && m.key) {
|
|
29269
29269
|
const w = !!y && y.type === "text" && !y.className && !y.exclusionGroup && d(y.text), O = w ? (y.text ?? "").trim() : "", D = O ? f(O) : "";
|
|
29270
|
-
w && (
|
|
29270
|
+
w && (g = !0), _ = Fo(m, a, D);
|
|
29271
29271
|
} else m.type === "select" && m.key ? _ = Dy(m, n) : m.type === "textarea" && m.key ? _ = My(m, n) : m.type === "richtext" && m.key ? _ = Ry(m, n) : m.type === "report-module" && m.key ? _ = zy(m, n) : m.type === "markdown-module" && m.key ? _ = Vy(m, n) : m.type === "datepicker" && m.key ? _ = Yy(m, n) : m.type === "number-input" && m.key ? _ = jy(m, n) : m.type === "multi-variable" && m.key ? _ = Ho(m, n, r, !1) : m.type === "multi-variable-select" && m.key ? _ = Xy(m, n, r) : m.type === "video-url" && m.key ? _ = $o(m, s || {}) : m.type === "video-upload" && m.key ? _ = Uo(m, s || {}) : m.type === "searchable-select" && m.key ? _ = eT(m, n) : m.type === "cascader" && m.key && (_ = lT(m, n));
|
|
29272
29272
|
const k = T + _ + C;
|
|
29273
29273
|
if (m.type === "text" && !m.className && !m.exclusionGroup) {
|
|
29274
29274
|
if (d(m.text) && E.length > 0) {
|
|
29275
29275
|
const O = E[E.length - 1], D = (m.text ?? "").trim();
|
|
29276
|
-
E[E.length - 1] = `<span class="rte-inline-group">${O}${f(D)}</span>`,
|
|
29276
|
+
E[E.length - 1] = `<span class="rte-inline-group">${O}${f(D)}</span>`, v++;
|
|
29277
29277
|
continue;
|
|
29278
29278
|
}
|
|
29279
29279
|
const w = h(m.text);
|
|
@@ -29285,11 +29285,11 @@ function nT(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29285
29285
|
const F = D.replace(/\n/g, "<br/>");
|
|
29286
29286
|
E.push(`<span data-type="text" contenteditable="false">${F}</span>`);
|
|
29287
29287
|
}
|
|
29288
|
-
|
|
29288
|
+
v++;
|
|
29289
29289
|
continue;
|
|
29290
29290
|
}
|
|
29291
29291
|
}
|
|
29292
|
-
E.push(k),
|
|
29292
|
+
E.push(k), v += g ? 2 : 1;
|
|
29293
29293
|
}
|
|
29294
29294
|
e.current && (e.current.innerHTML = E.join(""), setTimeout(() => {
|
|
29295
29295
|
if (!e.current) return;
|
|
@@ -29352,8 +29352,8 @@ const qo = (e, t) => e.some((a) => {
|
|
|
29352
29352
|
return m + y;
|
|
29353
29353
|
})() : i, d = rT(c), h = d.find((m) => m.matches('[data-type="upload"]')) || d.find((m) => m.querySelector('[data-type="upload"]'))?.querySelector(
|
|
29354
29354
|
'[data-type="upload"]'
|
|
29355
|
-
) || null, f = d.find((m) => m.matches(".upload-hint")) || d.find((m) => m.querySelector(".upload-hint"))?.querySelector(".upload-hint") || null, E = s || u,
|
|
29356
|
-
u && h && u.replaceWith(h),
|
|
29355
|
+
) || null, f = d.find((m) => m.matches(".upload-hint")) || d.find((m) => m.querySelector(".upload-hint"))?.querySelector(".upload-hint") || null, E = s || u, v = E?.nextElementSibling?.classList.contains("upload-hint") ? E.nextElementSibling : null;
|
|
29356
|
+
u && h && u.replaceWith(h), v && f ? v.replaceWith(f) : v ? v.remove() : f && (s || h || u)?.insertAdjacentElement("afterend", f);
|
|
29357
29357
|
return;
|
|
29358
29358
|
}
|
|
29359
29359
|
if (n.type === "video-url") {
|
|
@@ -29369,7 +29369,7 @@ const qo = (e, t) => e.some((a) => {
|
|
|
29369
29369
|
});
|
|
29370
29370
|
};
|
|
29371
29371
|
function sT(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
29372
|
-
const f = Z(/* @__PURE__ */ new Set()), E = Z(""),
|
|
29372
|
+
const f = Z(/* @__PURE__ */ new Set()), E = Z(""), v = Z(!1), m = Z(""), y = Z({}), g = ue(() => {
|
|
29373
29373
|
if (!e.current) return;
|
|
29374
29374
|
if (t.length === 0) {
|
|
29375
29375
|
e.current.innerHTML = "", m.current = "";
|
|
@@ -29391,8 +29391,8 @@ function sT(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29391
29391
|
return;
|
|
29392
29392
|
}
|
|
29393
29393
|
const C = (t.find((I) => I.type === "tag")?.text || "") + "||" + t.filter((I) => I.key && I.type !== "report-module" && I.type !== "markdown-module").map((I) => `${I.type}:${I.key}`).join("|");
|
|
29394
|
-
E.current !== C && (E.current = C, f.current = /* @__PURE__ */ new Set(),
|
|
29395
|
-
const _ =
|
|
29394
|
+
E.current !== C && (E.current = C, f.current = /* @__PURE__ */ new Set(), v.current = !0);
|
|
29395
|
+
const _ = v.current;
|
|
29396
29396
|
let k = {};
|
|
29397
29397
|
const w = {}, O = /* @__PURE__ */ new Set(), D = !!e.current?.__tempVariableValues;
|
|
29398
29398
|
if (e.current && !_) {
|
|
@@ -29562,7 +29562,7 @@ function sT(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29562
29562
|
const H = [document.createTextNode(x)];
|
|
29563
29563
|
R && H.push(R), $.setAttribute("data-report-url", L), $.setAttribute("data-report-name", x), $.removeAttribute("data-tooltip"), $.contentEditable = "false", $.classList.add("rte-report-name-chip"), $.classList.remove("show-placeholder", "rte-variable-with-icon"), $.replaceChildren(...H), Gn($);
|
|
29564
29564
|
}
|
|
29565
|
-
if (_ && (
|
|
29565
|
+
if (_ && (v.current = !1), setTimeout(() => {
|
|
29566
29566
|
if (pa(e), h?.current)
|
|
29567
29567
|
for (const [I, x] of Object.entries(h.current))
|
|
29568
29568
|
w[I] || (w[I] = x);
|
|
@@ -29642,8 +29642,8 @@ function sT(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29642
29642
|
}
|
|
29643
29643
|
}, [t, a, l, e, n, r, i, u, s, o, c, d]);
|
|
29644
29644
|
ne(() => {
|
|
29645
|
-
|
|
29646
|
-
}, [
|
|
29645
|
+
g();
|
|
29646
|
+
}, [g]);
|
|
29647
29647
|
}
|
|
29648
29648
|
function oT(e, t, a, l, n) {
|
|
29649
29649
|
ne(() => {
|
|
@@ -29670,24 +29670,24 @@ function oT(e, t, a, l, n) {
|
|
|
29670
29670
|
}
|
|
29671
29671
|
}, s = (y) => {
|
|
29672
29672
|
if (n) return;
|
|
29673
|
-
const
|
|
29674
|
-
if (
|
|
29673
|
+
const g = y.relatedTarget;
|
|
29674
|
+
if (g?.closest?.(".rte-tooltip-overlay") || y.target?.closest(".rte-tutorial-btn")) return;
|
|
29675
29675
|
const A = y.target?.closest(".upload-info-icon");
|
|
29676
29676
|
if (A && A.classList.contains("upload-info-icon")) {
|
|
29677
29677
|
const C = A.closest('[data-type="upload"], [data-type="video-upload"]');
|
|
29678
|
-
if (
|
|
29678
|
+
if (g && C && C.contains(g))
|
|
29679
29679
|
return;
|
|
29680
|
-
if (!
|
|
29680
|
+
if (!g || !r.contains(g))
|
|
29681
29681
|
l(null);
|
|
29682
29682
|
else {
|
|
29683
|
-
const _ =
|
|
29683
|
+
const _ = g.closest('[data-type="upload"], [data-type="video-upload"]');
|
|
29684
29684
|
(!_ || _ !== C) && l(null);
|
|
29685
29685
|
}
|
|
29686
29686
|
return;
|
|
29687
29687
|
}
|
|
29688
29688
|
const T = y.target?.closest('[data-type="upload"], [data-type="video-upload"]');
|
|
29689
29689
|
if (T) {
|
|
29690
|
-
const C =
|
|
29690
|
+
const C = g;
|
|
29691
29691
|
if (C?.closest?.(".rte-tooltip-overlay") || C && T.contains(C))
|
|
29692
29692
|
return;
|
|
29693
29693
|
l(null);
|
|
@@ -29695,17 +29695,17 @@ function oT(e, t, a, l, n) {
|
|
|
29695
29695
|
};
|
|
29696
29696
|
r.addEventListener("mouseover", u, !0), r.addEventListener("mouseout", s, !0);
|
|
29697
29697
|
const o = (y) => {
|
|
29698
|
-
const
|
|
29698
|
+
const g = y.currentTarget, b = g.dataset.uploadKey;
|
|
29699
29699
|
if (b) {
|
|
29700
|
-
const A =
|
|
29701
|
-
l({ key: b, anchorEl: A ||
|
|
29700
|
+
const A = g.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29701
|
+
l({ key: b, anchorEl: A || g, type: "upload" });
|
|
29702
29702
|
}
|
|
29703
29703
|
}, c = (y) => {
|
|
29704
29704
|
if (n) return;
|
|
29705
|
-
const
|
|
29706
|
-
if (
|
|
29705
|
+
const g = y.relatedTarget;
|
|
29706
|
+
if (g?.closest?.(".rte-tooltip-overlay")) return;
|
|
29707
29707
|
const A = y.currentTarget.closest('[data-type="upload"], [data-node-type="video-url"]');
|
|
29708
|
-
|
|
29708
|
+
g && A?.contains(g) || l(null);
|
|
29709
29709
|
}, d = /* @__PURE__ */ new WeakSet(), h = () => {
|
|
29710
29710
|
r.querySelectorAll(".rte-tutorial-btn").forEach((y) => {
|
|
29711
29711
|
d.has(y) || (d.add(y), y.addEventListener("mouseenter", o), y.addEventListener("mouseleave", c));
|
|
@@ -29714,18 +29714,18 @@ function oT(e, t, a, l, n) {
|
|
|
29714
29714
|
let f = requestAnimationFrame(() => {
|
|
29715
29715
|
f = requestAnimationFrame(h);
|
|
29716
29716
|
}), E = 0;
|
|
29717
|
-
const
|
|
29717
|
+
const v = () => {
|
|
29718
29718
|
E || (E = requestAnimationFrame(() => {
|
|
29719
29719
|
E = 0, h();
|
|
29720
29720
|
}));
|
|
29721
29721
|
}, m = new MutationObserver((y) => {
|
|
29722
|
-
for (const
|
|
29723
|
-
if (!(
|
|
29724
|
-
for (const b of
|
|
29722
|
+
for (const g of y)
|
|
29723
|
+
if (!(g.type !== "childList" || g.addedNodes.length === 0))
|
|
29724
|
+
for (const b of g.addedNodes) {
|
|
29725
29725
|
if (b.nodeType !== Node.ELEMENT_NODE) continue;
|
|
29726
29726
|
const A = b;
|
|
29727
29727
|
if (A.matches?.(".rte-tutorial-btn") || A.querySelector?.(".rte-tutorial-btn")) {
|
|
29728
|
-
|
|
29728
|
+
v();
|
|
29729
29729
|
return;
|
|
29730
29730
|
}
|
|
29731
29731
|
}
|
|
@@ -29801,12 +29801,12 @@ function fT(e, t, a, l, n) {
|
|
|
29801
29801
|
const r = e.current;
|
|
29802
29802
|
if (!r) return;
|
|
29803
29803
|
const i = (d) => typeof d == "string" ? /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i.test(d) : d.type?.startsWith("image/") ? !0 : /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(d.name || ""), u = (d) => {
|
|
29804
|
-
const h = d.currentTarget, f = h.dataset.fileName, E = h.closest('[data-type="upload"]'),
|
|
29804
|
+
const h = d.currentTarget, f = h.dataset.fileName, E = h.closest('[data-type="upload"]'), v = E?.dataset.key || "", m = v ? a[v] : null;
|
|
29805
29805
|
if (m && i(m)) {
|
|
29806
|
-
l({ key:
|
|
29806
|
+
l({ key: v, anchorEl: E || h, type: "upload-preview" });
|
|
29807
29807
|
return;
|
|
29808
29808
|
}
|
|
29809
|
-
f && l({ key:
|
|
29809
|
+
f && l({ key: v, anchorEl: E || h, type: "upload-label" });
|
|
29810
29810
|
}, s = (d) => {
|
|
29811
29811
|
n || d.relatedTarget?.closest?.(".rte-tooltip-overlay") || l(null);
|
|
29812
29812
|
};
|
|
@@ -29843,8 +29843,8 @@ function hT(e, t) {
|
|
|
29843
29843
|
ne(() => {
|
|
29844
29844
|
if (!e.current) return;
|
|
29845
29845
|
let n = !1, r = 0;
|
|
29846
|
-
const i = (
|
|
29847
|
-
n = !0, i(
|
|
29846
|
+
const i = (g) => g instanceof HTMLElement ? !!(g.closest(".rte-datepicker-wrapper") || g.closest(".rte-datepicker-host") || g.closest(".ant-picker") || g.closest(".ant-picker-dropdown")) : !1, u = (g) => g instanceof HTMLElement ? !!(g.closest(".rte-select-wrapper") || g.closest(".rte-select-host") || g.closest(".ant-select") || g.closest(".ant-select-dropdown")) : !1, s = (g) => {
|
|
29847
|
+
n = !0, i(g.target) && (a.current = Date.now()), u(g.target) && (l.current = Date.now());
|
|
29848
29848
|
}, o = () => {
|
|
29849
29849
|
n = !1, r = Date.now();
|
|
29850
29850
|
};
|
|
@@ -29855,14 +29855,14 @@ function hT(e, t) {
|
|
|
29855
29855
|
c = !1, d = Date.now();
|
|
29856
29856
|
}, E = () => {
|
|
29857
29857
|
d = Date.now();
|
|
29858
|
-
},
|
|
29859
|
-
i(
|
|
29858
|
+
}, v = (g) => {
|
|
29859
|
+
i(g.target) && (a.current = Date.now()), u(g.target) && (l.current = Date.now());
|
|
29860
29860
|
}, m = () => {
|
|
29861
29861
|
if (Date.now() - a.current < 800 || Date.now() - l.current < 800)
|
|
29862
29862
|
return;
|
|
29863
|
-
const
|
|
29864
|
-
if (
|
|
29865
|
-
|
|
29863
|
+
const g = document.activeElement;
|
|
29864
|
+
if (g && (g.closest(".rte-datepicker-wrapper") || g.closest(".rte-datepicker-host") || g.closest(".ant-picker-dropdown") || // Antd dropdown
|
|
29865
|
+
g.tagName === "INPUT" && g.closest(".ant-picker") || g.closest(".rte-select-wrapper") || g.closest(".rte-select-host") || g.closest(".ant-select") || g.closest(".ant-select-dropdown")) || !e.current) return;
|
|
29866
29866
|
const b = window.getSelection();
|
|
29867
29867
|
if (!b || b.rangeCount === 0 || t.current || n || c || Date.now() - d < 500)
|
|
29868
29868
|
return;
|
|
@@ -29903,8 +29903,8 @@ function hT(e, t) {
|
|
|
29903
29903
|
b.removeAllRanges();
|
|
29904
29904
|
}
|
|
29905
29905
|
}, y = e.current;
|
|
29906
|
-
return y && (y.addEventListener("compositionstart", h), y.addEventListener("compositionend", f), y.addEventListener("input", E)), document.addEventListener("mousedown", s), document.addEventListener("mouseup", o), document.addEventListener("focusin",
|
|
29907
|
-
y && (y.removeEventListener("compositionstart", h), y.removeEventListener("compositionend", f), y.removeEventListener("input", E)), document.removeEventListener("mousedown", s), document.removeEventListener("mouseup", o), document.removeEventListener("focusin",
|
|
29906
|
+
return y && (y.addEventListener("compositionstart", h), y.addEventListener("compositionend", f), y.addEventListener("input", E)), document.addEventListener("mousedown", s), document.addEventListener("mouseup", o), document.addEventListener("focusin", v), document.addEventListener("selectionchange", m), () => {
|
|
29907
|
+
y && (y.removeEventListener("compositionstart", h), y.removeEventListener("compositionend", f), y.removeEventListener("input", E)), document.removeEventListener("mousedown", s), document.removeEventListener("mouseup", o), document.removeEventListener("focusin", v), document.removeEventListener("selectionchange", m);
|
|
29908
29908
|
};
|
|
29909
29909
|
}, [e, t]);
|
|
29910
29910
|
}
|
|
@@ -29914,7 +29914,7 @@ function Vo() {
|
|
|
29914
29914
|
(function(a, l) {
|
|
29915
29915
|
e.exports = l();
|
|
29916
29916
|
})(bT, function() {
|
|
29917
|
-
var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", i = "second", u = "minute", s = "hour", o = "day", c = "week", d = "month", h = "quarter", f = "year", E = "date",
|
|
29917
|
+
var a = 1e3, l = 6e4, n = 36e5, r = "millisecond", i = "second", u = "minute", s = "hour", o = "day", c = "week", d = "month", h = "quarter", f = "year", E = "date", v = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, g = { 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(I) {
|
|
29918
29918
|
var x = ["th", "st", "nd", "rd"], L = I % 100;
|
|
29919
29919
|
return "[" + I + (x[(L - 20) % 10] || x[L] || x[0]) + "]";
|
|
29920
29920
|
} }, b = function(I, x, L) {
|
|
@@ -29934,7 +29934,7 @@ function Vo() {
|
|
|
29934
29934
|
}, u: function(I) {
|
|
29935
29935
|
return I === void 0;
|
|
29936
29936
|
} }, T = "en", C = {};
|
|
29937
|
-
C[T] =
|
|
29937
|
+
C[T] = g;
|
|
29938
29938
|
var _ = "$isDayjsObject", k = function(I) {
|
|
29939
29939
|
return I instanceof F || !(!I || !I[_]);
|
|
29940
29940
|
}, w = function I(x, L, $) {
|
|
@@ -29984,7 +29984,7 @@ function Vo() {
|
|
|
29984
29984
|
}, x.$utils = function() {
|
|
29985
29985
|
return D;
|
|
29986
29986
|
}, x.isValid = function() {
|
|
29987
|
-
return this.$d.toString() !==
|
|
29987
|
+
return this.$d.toString() !== v;
|
|
29988
29988
|
}, x.isSame = function(L, $) {
|
|
29989
29989
|
var R = O(L);
|
|
29990
29990
|
return this.startOf($) <= R && R <= this.endOf($);
|
|
@@ -30055,7 +30055,7 @@ function Vo() {
|
|
|
30055
30055
|
return this.add(-1 * L, $);
|
|
30056
30056
|
}, x.format = function(L) {
|
|
30057
30057
|
var $ = this, R = this.$locale();
|
|
30058
|
-
if (!this.isValid()) return R.invalidDate ||
|
|
30058
|
+
if (!this.isValid()) return R.invalidDate || v;
|
|
30059
30059
|
var H = L || "YYYY-MM-DDTHH:mm:ssZ", N = D.z(this), Y = this.$H, z = this.$m, S = this.$M, q = R.weekdays, V = R.months, K = R.meridiem, j = function(be, xe, Fe, Ie) {
|
|
30060
30060
|
return be && (be[xe] || be($, H)) || Fe[xe].slice(0, Ie);
|
|
30061
30061
|
}, te = function(be) {
|
|
@@ -30315,8 +30315,8 @@ Ll.locale("zh-cn");
|
|
|
30315
30315
|
const { RangePicker: CT } = Fc, ST = ({ host: e, onChange: t }) => {
|
|
30316
30316
|
const a = e.dataset.key, l = e.dataset.value, n = e.dataset.placeholder, r = e.dataset.limitRange ? parseInt(e.dataset.limitRange, 10) : void 0, i = e.dataset.disableFuture === "true", [u, s] = re(() => {
|
|
30317
30317
|
if (!l) return null;
|
|
30318
|
-
const
|
|
30319
|
-
return
|
|
30318
|
+
const v = l.split(",");
|
|
30319
|
+
return v.length === 2 && v[0] && v[1] ? [Ll(v[0]), Ll(v[1])] : null;
|
|
30320
30320
|
}), [o, c] = re(null);
|
|
30321
30321
|
return Lt(
|
|
30322
30322
|
/* @__PURE__ */ G(
|
|
@@ -30338,19 +30338,19 @@ const { RangePicker: CT } = Fc, ST = ({ host: e, onChange: t }) => {
|
|
|
30338
30338
|
CT,
|
|
30339
30339
|
{
|
|
30340
30340
|
value: u,
|
|
30341
|
-
disabledDate: (
|
|
30342
|
-
onCalendarChange: (
|
|
30343
|
-
c(
|
|
30341
|
+
disabledDate: (v) => v ? i && v.isAfter(Ll(), "day") ? !0 : !r || !o || !o[0] ? !1 : Math.abs(v.diff(o[0], "days")) > r : !1,
|
|
30342
|
+
onCalendarChange: (v) => {
|
|
30343
|
+
c(v);
|
|
30344
30344
|
},
|
|
30345
|
-
onChange: (
|
|
30346
|
-
if (s(
|
|
30347
|
-
const m = `${
|
|
30345
|
+
onChange: (v) => {
|
|
30346
|
+
if (s(v), c(null), v && v[0] && v[1]) {
|
|
30347
|
+
const m = `${v[0].format("YYYY-MM-DD")},${v[1].format("YYYY-MM-DD")}`;
|
|
30348
30348
|
e.setAttribute("data-value", m), t(a, m);
|
|
30349
30349
|
} else
|
|
30350
30350
|
e.setAttribute("data-value", ""), t(a, "");
|
|
30351
30351
|
},
|
|
30352
|
-
onOpenChange: (
|
|
30353
|
-
c(
|
|
30352
|
+
onOpenChange: (v) => {
|
|
30353
|
+
c(v ? u : null);
|
|
30354
30354
|
},
|
|
30355
30355
|
placeholder: [n || "开始日期", n || "结束日期"],
|
|
30356
30356
|
style: { width: "100%" },
|
|
@@ -30432,10 +30432,10 @@ const { RangePicker: CT } = Fc, ST = ({ host: e, onChange: t }) => {
|
|
|
30432
30432
|
background: h = "transparent",
|
|
30433
30433
|
hideButtons: f,
|
|
30434
30434
|
maxHeight: E,
|
|
30435
|
-
minHeight:
|
|
30435
|
+
minHeight: v,
|
|
30436
30436
|
editorMinHeight: m,
|
|
30437
30437
|
editorPadding: y,
|
|
30438
|
-
footerPadding:
|
|
30438
|
+
footerPadding: g,
|
|
30439
30439
|
collapsed: b = !1,
|
|
30440
30440
|
reportAnalyze: A,
|
|
30441
30441
|
markdownAnalyze: T,
|
|
@@ -31045,7 +31045,7 @@ const { RangePicker: CT } = Fc, ST = ({ host: e, onChange: t }) => {
|
|
|
31045
31045
|
...d ? { border: d } : {},
|
|
31046
31046
|
...h ? { background: h } : {},
|
|
31047
31047
|
...E ? { maxHeight: typeof E == "number" ? `${E}px` : E } : {},
|
|
31048
|
-
...
|
|
31048
|
+
...v && !b ? { minHeight: typeof v == "number" ? `${v}px` : v } : {},
|
|
31049
31049
|
...We.length > 0 ? { minHeight: "220px" } : {},
|
|
31050
31050
|
...E ? {
|
|
31051
31051
|
"--rte-richtext-fullscreen-height": typeof E == "number" ? `${E}px` : E
|
|
@@ -31054,7 +31054,7 @@ const { RangePicker: CT } = Fc, ST = ({ host: e, onChange: t }) => {
|
|
|
31054
31054
|
"--rte-editor-min-height": typeof m == "number" ? `${m}px` : m
|
|
31055
31055
|
} : {},
|
|
31056
31056
|
...y ? { "--rte-editor-padding": y } : {},
|
|
31057
|
-
...
|
|
31057
|
+
...g ? { "--rte-footer-padding": g } : {}
|
|
31058
31058
|
}, Sc = typeof k == "number" && Number.isFinite(k) && k >= 0 ? k : 260, _c = {
|
|
31059
31059
|
overflow: "hidden"
|
|
31060
31060
|
}, ui = xa != null ? `${xa}px` : b ? `${Wr}px` : `${Math.max(nc, Wr)}px`, kc = e.length === 0 && Gr && !b, Nc = xa != null || b || an || kc ? "hidden" : uc ? "auto" : "hidden", si = Z(b), oi = si.current !== b;
|
|
@@ -31473,7 +31473,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31473
31473
|
onStartAutoLoad: c,
|
|
31474
31474
|
onStopLoading: d
|
|
31475
31475
|
}) => {
|
|
31476
|
-
const [h, f] = re(5), E = Math.ceil(l / a),
|
|
31476
|
+
const [h, f] = re(5), E = Math.ceil(l / a), v = It(() => n.length >= E, [n, E]), m = () => Array.from(
|
|
31477
31477
|
{ length: E },
|
|
31478
31478
|
(b, A) => A + 1
|
|
31479
31479
|
).filter((b) => !n.includes(b)).slice(0, h);
|
|
@@ -31492,7 +31492,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31492
31492
|
l,
|
|
31493
31493
|
"条数据"
|
|
31494
31494
|
] }),
|
|
31495
|
-
!
|
|
31495
|
+
!v && /* @__PURE__ */ G(
|
|
31496
31496
|
IT,
|
|
31497
31497
|
{
|
|
31498
31498
|
loadIcon: t || void 0,
|
|
@@ -31503,8 +31503,8 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31503
31503
|
onBatchSizeChange: f,
|
|
31504
31504
|
onLoadNextPage: () => o?.(),
|
|
31505
31505
|
onStartAutoLoad: () => {
|
|
31506
|
-
const
|
|
31507
|
-
c?.(
|
|
31506
|
+
const g = m();
|
|
31507
|
+
c?.(g);
|
|
31508
31508
|
},
|
|
31509
31509
|
onStopLoad: () => d?.()
|
|
31510
31510
|
}
|
|
@@ -31516,22 +31516,22 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31516
31516
|
current: e,
|
|
31517
31517
|
pageSize: a,
|
|
31518
31518
|
total: l,
|
|
31519
|
-
onChange: (
|
|
31519
|
+
onChange: (g) => s(g),
|
|
31520
31520
|
showSizeChanger: !1,
|
|
31521
31521
|
showQuickJumper: !1,
|
|
31522
31522
|
showTotal: () => "",
|
|
31523
|
-
itemRender: (
|
|
31524
|
-
const T = n.includes(
|
|
31523
|
+
itemRender: (g, b, A) => {
|
|
31524
|
+
const T = n.includes(g);
|
|
31525
31525
|
return b === "prev" || b === "next" || b === "jump-prev" || b === "jump-next" ? /* @__PURE__ */ G("div", { className: "pageBox", children: A }) : /* @__PURE__ */ pe(
|
|
31526
31526
|
"div",
|
|
31527
31527
|
{
|
|
31528
31528
|
className: "pageBox",
|
|
31529
31529
|
style: {
|
|
31530
|
-
backgroundColor: e ===
|
|
31531
|
-
color: e ===
|
|
31530
|
+
backgroundColor: e === g ? "#2563EB" : "#f5f5f5",
|
|
31531
|
+
color: e === g ? "#fff" : T ? "#171717" : "#a3a3a3"
|
|
31532
31532
|
},
|
|
31533
31533
|
children: [
|
|
31534
|
-
|
|
31534
|
+
g,
|
|
31535
31535
|
!T && /* @__PURE__ */ G("span", { className: "unload_spot" })
|
|
31536
31536
|
]
|
|
31537
31537
|
}
|
|
@@ -31556,9 +31556,9 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31556
31556
|
onStartAutoLoad: h,
|
|
31557
31557
|
onStopLoading: f,
|
|
31558
31558
|
...E
|
|
31559
|
-
} = e,
|
|
31559
|
+
} = e, v = Z(null), m = ue(
|
|
31560
31560
|
(y) => {
|
|
31561
|
-
c(y), o.includes(y) &&
|
|
31561
|
+
c(y), o.includes(y) && v.current?.scrollTo({
|
|
31562
31562
|
key: `${(y - 1) * s + 1}`
|
|
31563
31563
|
});
|
|
31564
31564
|
},
|
|
@@ -31568,7 +31568,7 @@ const qu = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAA
|
|
|
31568
31568
|
/* @__PURE__ */ G(
|
|
31569
31569
|
br,
|
|
31570
31570
|
{
|
|
31571
|
-
ref:
|
|
31571
|
+
ref: v,
|
|
31572
31572
|
...E,
|
|
31573
31573
|
columns: n,
|
|
31574
31574
|
dataSource: r,
|
|
@@ -31711,7 +31711,7 @@ const DT = ({
|
|
|
31711
31711
|
onChange: r,
|
|
31712
31712
|
...i
|
|
31713
31713
|
}) => {
|
|
31714
|
-
const [u, s] = re(""), [o, c] = re(0), [d, h] = re(!1), [f, E] = re(!1), [
|
|
31714
|
+
const [u, s] = re(""), [o, c] = re(0), [d, h] = re(!1), [f, E] = re(!1), [v, m] = re(!1), y = Z(void 0), g = Z(void 0), b = Z(e), A = Z(o), T = Z(f), C = Z(u);
|
|
31715
31715
|
ne(() => {
|
|
31716
31716
|
b.current = e, A.current = o, T.current = f, C.current = u;
|
|
31717
31717
|
});
|
|
@@ -31719,13 +31719,13 @@ const DT = ({
|
|
|
31719
31719
|
let L = 0;
|
|
31720
31720
|
m(!0);
|
|
31721
31721
|
const $ = () => {
|
|
31722
|
-
L < I.length ? (s(I.slice(0, L + 1)), L++,
|
|
31722
|
+
L < I.length ? (s(I.slice(0, L + 1)), L++, g.current = window.setTimeout($, a)) : (m(!1), x?.());
|
|
31723
31723
|
};
|
|
31724
31724
|
$();
|
|
31725
31725
|
}, [a]), k = ue((I) => {
|
|
31726
31726
|
let x = C.current.length;
|
|
31727
31727
|
const L = () => {
|
|
31728
|
-
x > 0 ? (s(C.current.slice(0, x - 1)), x--,
|
|
31728
|
+
x > 0 ? (s(C.current.slice(0, x - 1)), x--, g.current = window.setTimeout(L, a / 2)) : I?.();
|
|
31729
31729
|
};
|
|
31730
31730
|
L();
|
|
31731
31731
|
}, [a]), w = ue(() => {
|
|
@@ -31745,7 +31745,7 @@ const DT = ({
|
|
|
31745
31745
|
});
|
|
31746
31746
|
}, [k, _]);
|
|
31747
31747
|
return ne(() => (l && e.length > 0 && !f && w(), () => {
|
|
31748
|
-
y.current && window.clearTimeout(y.current),
|
|
31748
|
+
y.current && window.clearTimeout(y.current), g.current && window.clearTimeout(g.current);
|
|
31749
31749
|
}), [o, f, l, e.length, w]), ne(() => {
|
|
31750
31750
|
!d && l && e.length > 0 && !f && w();
|
|
31751
31751
|
}, [o, d, l, e.length, f, w]), /* @__PURE__ */ pe("div", { style: { position: "relative" }, children: [
|
|
@@ -31758,7 +31758,7 @@ const DT = ({
|
|
|
31758
31758
|
r?.(I.target.value), i.onChange?.(I);
|
|
31759
31759
|
},
|
|
31760
31760
|
onFocus: (I) => {
|
|
31761
|
-
E(!0), y.current && window.clearTimeout(y.current),
|
|
31761
|
+
E(!0), y.current && window.clearTimeout(y.current), g.current && window.clearTimeout(g.current), h(!1), m(!1), i.onFocus?.(I);
|
|
31762
31762
|
},
|
|
31763
31763
|
onBlur: (I) => {
|
|
31764
31764
|
E(!1), !n && e.length > 0 && (s(""), c(0)), i.onBlur?.(I);
|
|
@@ -31793,7 +31793,7 @@ const DT = ({
|
|
|
31793
31793
|
},
|
|
31794
31794
|
children: [
|
|
31795
31795
|
/* @__PURE__ */ G("span", { children: u }),
|
|
31796
|
-
|
|
31796
|
+
v && /* @__PURE__ */ G(
|
|
31797
31797
|
"span",
|
|
31798
31798
|
{
|
|
31799
31799
|
style: {
|
|
@@ -31892,7 +31892,7 @@ const PT = ({
|
|
|
31892
31892
|
...f
|
|
31893
31893
|
// 其他原生属性
|
|
31894
31894
|
}) => {
|
|
31895
|
-
const [E,
|
|
31895
|
+
const [E, v] = re(""), [m, y] = re(0), [g, b] = re(!1), [A, T] = re(!1), [C, _] = re(!1), [k, w] = re(n || ""), O = Z(void 0), D = Z(void 0), F = Z(e), M = Z(m), I = Z(A), x = Z(E), L = Z(null);
|
|
31896
31896
|
ne(() => {
|
|
31897
31897
|
F.current = e, M.current = m, I.current = A, x.current = E;
|
|
31898
31898
|
});
|
|
@@ -31900,13 +31900,13 @@ const PT = ({
|
|
|
31900
31900
|
let de = 0;
|
|
31901
31901
|
_(!0);
|
|
31902
31902
|
const be = () => {
|
|
31903
|
-
de < j.length ? (
|
|
31903
|
+
de < j.length ? (v(j.slice(0, de + 1)), de++, D.current = window.setTimeout(be, a)) : (_(!1), te?.());
|
|
31904
31904
|
};
|
|
31905
31905
|
be();
|
|
31906
31906
|
}, [a]), R = ue((j) => {
|
|
31907
31907
|
let te = x.current.length;
|
|
31908
31908
|
const de = () => {
|
|
31909
|
-
te > 0 ? (
|
|
31909
|
+
te > 0 ? (v(x.current.slice(0, te - 1)), te--, D.current = window.setTimeout(de, a / 2)) : j?.();
|
|
31910
31910
|
};
|
|
31911
31911
|
de();
|
|
31912
31912
|
}, [a]), H = ue(() => {
|
|
@@ -31928,12 +31928,12 @@ const PT = ({
|
|
|
31928
31928
|
ne(() => (l && e.length > 0 && !A && H(), () => {
|
|
31929
31929
|
O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current);
|
|
31930
31930
|
}), [m, A, l, e.length, H]), ne(() => {
|
|
31931
|
-
!
|
|
31932
|
-
}, [m,
|
|
31931
|
+
!g && l && e.length > 0 && !A && H();
|
|
31932
|
+
}, [m, g, l, e.length, A, H]);
|
|
31933
31933
|
const N = (j) => {
|
|
31934
31934
|
T(!0), O.current && window.clearTimeout(O.current), D.current && window.clearTimeout(D.current), b(!1), _(!1), f.onFocus?.(j);
|
|
31935
31935
|
}, Y = (j) => {
|
|
31936
|
-
T(!1), !n && e.length > 0 && (
|
|
31936
|
+
T(!1), !n && e.length > 0 && (v(""), y(0)), f.onBlur?.(j);
|
|
31937
31937
|
}, z = (j) => {
|
|
31938
31938
|
const te = j.target.value;
|
|
31939
31939
|
u && te.length > u || (r ? r(te) : w(te), f.onChange?.(j));
|
|
@@ -32180,12 +32180,12 @@ const Yo = ({
|
|
|
32180
32180
|
onVideoEnded: h,
|
|
32181
32181
|
className: f,
|
|
32182
32182
|
style: E,
|
|
32183
|
-
...
|
|
32183
|
+
...v
|
|
32184
32184
|
}) => {
|
|
32185
|
-
const m = Z(null), [y,
|
|
32186
|
-
m.current && (m.current.play(),
|
|
32185
|
+
const m = Z(null), [y, g] = re(!1), [b, A] = re(!1), [T, C] = re(!1), _ = ue(() => {
|
|
32186
|
+
m.current && (m.current.play(), g(!0), c?.());
|
|
32187
32187
|
}, [c]), k = ue(() => {
|
|
32188
|
-
m.current && (m.current.pause(),
|
|
32188
|
+
m.current && (m.current.pause(), g(!1), d?.());
|
|
32189
32189
|
}, [d]), w = ue(($) => {
|
|
32190
32190
|
$.stopPropagation(), y ? k() : _();
|
|
32191
32191
|
}, [y, _, k]), O = ue(() => {
|
|
@@ -32195,18 +32195,18 @@ const Yo = ({
|
|
|
32195
32195
|
}, [u, y, k]), F = ue(() => {
|
|
32196
32196
|
C(!0), o?.();
|
|
32197
32197
|
}, [o]), M = ue(() => {
|
|
32198
|
-
|
|
32198
|
+
g(!0), c?.();
|
|
32199
32199
|
}, [c]), I = ue(() => {
|
|
32200
|
-
|
|
32200
|
+
g(!1), d?.();
|
|
32201
32201
|
}, [d]), x = ue(() => {
|
|
32202
|
-
|
|
32202
|
+
g(!1), h?.();
|
|
32203
32203
|
}, [h]), L = ue(($) => {
|
|
32204
32204
|
s?.($);
|
|
32205
32205
|
}, [s]);
|
|
32206
32206
|
return /* @__PURE__ */ G(
|
|
32207
32207
|
hr,
|
|
32208
32208
|
{
|
|
32209
|
-
...
|
|
32209
|
+
...v,
|
|
32210
32210
|
className: `video-card ${f || ""}`,
|
|
32211
32211
|
style: {
|
|
32212
32212
|
width: a,
|
|
@@ -32401,7 +32401,7 @@ const MT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32401
32401
|
}, [e, o, f]);
|
|
32402
32402
|
const E = ue(() => {
|
|
32403
32403
|
f();
|
|
32404
|
-
}, [f]),
|
|
32404
|
+
}, [f]), v = ue((m) => {
|
|
32405
32405
|
u && u(m), m.onClick?.(m);
|
|
32406
32406
|
}, [u]);
|
|
32407
32407
|
return /* @__PURE__ */ G(
|
|
@@ -32415,12 +32415,12 @@ const MT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32415
32415
|
...i
|
|
32416
32416
|
},
|
|
32417
32417
|
children: e.map((m, y) => {
|
|
32418
|
-
const
|
|
32418
|
+
const g = m.id || y, b = RT(m);
|
|
32419
32419
|
return /* @__PURE__ */ G(
|
|
32420
32420
|
"div",
|
|
32421
32421
|
{
|
|
32422
32422
|
ref: (A) => {
|
|
32423
|
-
A ? d.current.set(
|
|
32423
|
+
A ? d.current.set(g, A) : d.current.delete(g);
|
|
32424
32424
|
},
|
|
32425
32425
|
className: "waterfall-item",
|
|
32426
32426
|
children: b === "video" ? /* @__PURE__ */ G("div", { style: {
|
|
@@ -32435,7 +32435,7 @@ const MT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32435
32435
|
poster: m.poster,
|
|
32436
32436
|
width: "100%",
|
|
32437
32437
|
height: "100%",
|
|
32438
|
-
onClick: () =>
|
|
32438
|
+
onClick: () => v(m),
|
|
32439
32439
|
onVideoLoaded: E,
|
|
32440
32440
|
autoPlayOnHover: !0,
|
|
32441
32441
|
showPlayButton: !1
|
|
@@ -32444,7 +32444,7 @@ const MT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32444
32444
|
"div",
|
|
32445
32445
|
{
|
|
32446
32446
|
className: "waterfall-image-wrapper",
|
|
32447
|
-
onClick: () =>
|
|
32447
|
+
onClick: () => v(m),
|
|
32448
32448
|
style: { cursor: u || m.onClick ? "pointer" : "default" },
|
|
32449
32449
|
children: /* @__PURE__ */ G(
|
|
32450
32450
|
"img",
|
|
@@ -32460,7 +32460,7 @@ const MT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32460
32460
|
}
|
|
32461
32461
|
)
|
|
32462
32462
|
},
|
|
32463
|
-
|
|
32463
|
+
g
|
|
32464
32464
|
);
|
|
32465
32465
|
})
|
|
32466
32466
|
}
|
|
@@ -32674,8 +32674,8 @@ const Cl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32674
32674
|
if (l.length === 0)
|
|
32675
32675
|
return { markdown: "", jsonData: [] };
|
|
32676
32676
|
const n = t.split(a).filter((y) => y.trim() !== ""), r = n.length > 0 ? $T(n[0]) : [], i = r.length >= 2, u = i ? r : FT, s = i || n.length > 0 && n[0].includes("展现量") ? 1 : 0, o = u.filter((y) => y !== "日期"), c = o.length, d = [];
|
|
32677
|
-
l.forEach((y,
|
|
32678
|
-
const b =
|
|
32677
|
+
l.forEach((y, g) => {
|
|
32678
|
+
const b = g + s;
|
|
32679
32679
|
if (b >= n.length) return;
|
|
32680
32680
|
const A = n[b];
|
|
32681
32681
|
let T = A.split(/[\r\n]+/).map((k) => k.trim()).filter((k) => k !== "");
|
|
@@ -32687,17 +32687,17 @@ const Cl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32687
32687
|
}), d.push(_);
|
|
32688
32688
|
});
|
|
32689
32689
|
const h = u.filter((y) => {
|
|
32690
|
-
const
|
|
32690
|
+
const g = Fa(y);
|
|
32691
32691
|
return d.some((b) => {
|
|
32692
|
-
const A = b[
|
|
32692
|
+
const A = b[g];
|
|
32693
32693
|
return A !== void 0 && String(A).trim() !== "";
|
|
32694
32694
|
});
|
|
32695
|
-
}), f = `| ${h.join(" | ")} |`, E = `| ${h.map(() => "---").join(" | ")} |`,
|
|
32695
|
+
}), f = `| ${h.join(" | ")} |`, E = `| ${h.map(() => "---").join(" | ")} |`, v = d.map((y) => `| ${h.map((b) => {
|
|
32696
32696
|
const A = Fa(b);
|
|
32697
32697
|
return y[A] ?? "-";
|
|
32698
32698
|
}).join(" | ")} |`);
|
|
32699
32699
|
return {
|
|
32700
|
-
markdown: [f, E, ...
|
|
32700
|
+
markdown: [f, E, ...v].join(`
|
|
32701
32701
|
`),
|
|
32702
32702
|
jsonData: d
|
|
32703
32703
|
};
|