bi-components-library 1.2.61 → 1.2.63
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/bi-components-library.css +1 -1
- package/dist/index.es.js +460 -458
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -592,9 +592,9 @@ const { Option: ud } = el, sd = ({
|
|
|
592
592
|
f(!1);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
}, [t, m, v]),
|
|
595
|
+
}, [t, m, v]), I = ue((w) => {
|
|
596
596
|
g(w), E((T) => ({ ...T, current: 1 }));
|
|
597
|
-
}, []),
|
|
597
|
+
}, []), N = ue(() => {
|
|
598
598
|
x.resetFields(), g({}), E((w) => ({ ...w, current: 1 }));
|
|
599
599
|
}, [x]), P = ue(() => {
|
|
600
600
|
A();
|
|
@@ -618,7 +618,7 @@ const { Option: ud } = el, sd = ({
|
|
|
618
618
|
{
|
|
619
619
|
form: x,
|
|
620
620
|
layout: "inline",
|
|
621
|
-
onFinish:
|
|
621
|
+
onFinish: I,
|
|
622
622
|
initialValues: a.reduce((w, T) => (T.defaultValue !== void 0 && (w[T.key] = T.defaultValue), w), {}),
|
|
623
623
|
children: [
|
|
624
624
|
a.map((w) => /* @__PURE__ */ V(bl.Item, { name: w.key, label: w.label, children: w.type === "input" ? /* @__PURE__ */ V(
|
|
@@ -638,7 +638,7 @@ const { Option: ud } = el, sd = ({
|
|
|
638
638
|
) }, w.key)),
|
|
639
639
|
/* @__PURE__ */ V(bl.Item, { children: /* @__PURE__ */ he(Oc, { children: [
|
|
640
640
|
/* @__PURE__ */ V(Gt, { type: "primary", htmlType: "submit", icon: /* @__PURE__ */ V(Vc, {}), children: "查询" }),
|
|
641
|
-
/* @__PURE__ */ V(Gt, { onClick:
|
|
641
|
+
/* @__PURE__ */ V(Gt, { onClick: N, children: "重置" }),
|
|
642
642
|
n && /* @__PURE__ */ V(Gt, { icon: /* @__PURE__ */ V(Gc, {}), onClick: P, children: "刷新" })
|
|
643
643
|
] }) })
|
|
644
644
|
]
|
|
@@ -753,7 +753,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
753
753
|
}, [s, u, l]), E = Ie.useCallback(() => {
|
|
754
754
|
const v = h.current;
|
|
755
755
|
if (!v) return;
|
|
756
|
-
const g = v.querySelector(".ant-select-selection-item"), m = v.querySelector(".ant-select-selection-placeholder"), b = g || m, x = (b?.textContent || "").trim() || y(), C = v.querySelector(".ant-select-selector"), S = b || C || v, L = window.getComputedStyle(S), k = b ? L.fontSize : "16px", A = L.fontFamily || "sans-serif",
|
|
756
|
+
const g = v.querySelector(".ant-select-selection-item"), m = v.querySelector(".ant-select-selection-placeholder"), b = g || m, x = (b?.textContent || "").trim() || y(), C = v.querySelector(".ant-select-selector"), S = b || C || v, L = window.getComputedStyle(S), k = b ? L.fontSize : "16px", A = L.fontFamily || "sans-serif", I = L.fontWeight || "400", P = `${L.fontStyle || "normal"} ${I} ${k} ${A}`, w = document.createElement("canvas").getContext("2d"), T = w ? Math.ceil((w.font = P, w.measureText(x).width || 0)) : 0;
|
|
757
757
|
let M = 0;
|
|
758
758
|
if (C) {
|
|
759
759
|
const W = window.getComputedStyle(C);
|
|
@@ -875,28 +875,28 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
875
875
|
}
|
|
876
876
|
}, [n]), [s, o] = ie(i || void 0), [c, d] = ie(""), [h, f] = ie(null), [y, E] = ie(64), v = Z(null), g = wt(() => {
|
|
877
877
|
const A = [...u];
|
|
878
|
-
return h && !u.some((
|
|
878
|
+
return h && !u.some((I) => I.value === h) && A.unshift({ label: h, value: h }), A;
|
|
879
879
|
}, [u, h]), m = wt(() => {
|
|
880
880
|
const A = c.trim();
|
|
881
881
|
if (!A) return g;
|
|
882
|
-
const
|
|
883
|
-
(O) => O.label.toLowerCase().includes(
|
|
882
|
+
const I = A.toLowerCase(), N = g.filter(
|
|
883
|
+
(O) => O.label.toLowerCase().includes(I) || O.value.toLowerCase().includes(I)
|
|
884
884
|
);
|
|
885
885
|
return g.some(
|
|
886
886
|
(O) => O.label === A || O.value === A
|
|
887
|
-
) ?
|
|
887
|
+
) ? N : [{ label: A, value: A, isCustom: !0 }, ...N];
|
|
888
888
|
}, [g, c]), b = (A) => {
|
|
889
889
|
if (A == null) return;
|
|
890
|
-
u.some((
|
|
890
|
+
u.some((N) => N.value === A) ? h && f(null) : f(A), o(A), d(""), e.setAttribute("data-value", A), t(a, A);
|
|
891
891
|
}, x = (A) => {
|
|
892
892
|
d(A);
|
|
893
893
|
}, C = (A) => {
|
|
894
894
|
if (A.key === "Enter" && c.trim()) {
|
|
895
895
|
A.preventDefault(), A.stopPropagation();
|
|
896
|
-
const
|
|
897
|
-
(P) => P.label ===
|
|
896
|
+
const I = c.trim(), N = u.find(
|
|
897
|
+
(P) => P.label === I || P.value === I
|
|
898
898
|
);
|
|
899
|
-
|
|
899
|
+
N ? b(N.value) : (f(I), o(I), d(""), e.setAttribute("data-value", I), t(a, I));
|
|
900
900
|
}
|
|
901
901
|
}, S = () => {
|
|
902
902
|
f(null), o(void 0), d(""), e.setAttribute("data-value", ""), t(a, "");
|
|
@@ -906,14 +906,14 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
906
906
|
}, [i]);
|
|
907
907
|
const L = Ie.useCallback(() => {
|
|
908
908
|
if (s != null && s !== "") {
|
|
909
|
-
const A = g.find((
|
|
909
|
+
const A = g.find((I) => String(I.value) === String(s));
|
|
910
910
|
return A ? typeof A.label == "string" ? A.label : String(A.label ?? s) : String(s);
|
|
911
911
|
}
|
|
912
912
|
return l || "请选择";
|
|
913
913
|
}, [s, g, l]), k = Ie.useCallback(() => {
|
|
914
914
|
const A = v.current;
|
|
915
915
|
if (!A) return;
|
|
916
|
-
const
|
|
916
|
+
const I = A.querySelector(".ant-select-selection-item"), N = A.querySelector(".ant-select-selection-placeholder"), P = I || N, O = (P?.textContent || "").trim() || L(), w = A.querySelector(".ant-select-selector"), T = P || w || A, M = window.getComputedStyle(T), q = P ? M.fontSize : "16px", H = M.fontFamily || "sans-serif", F = M.fontWeight || "400", z = `${M.fontStyle || "normal"} ${F} ${q} ${H}`, D = document.createElement("canvas").getContext("2d"), $ = D ? Math.ceil((D.font = z, D.measureText(O).width || 0)) : 0;
|
|
917
917
|
let K = 0;
|
|
918
918
|
if (w) {
|
|
919
919
|
const ye = window.getComputedStyle(w);
|
|
@@ -931,18 +931,18 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
931
931
|
return Xe(() => {
|
|
932
932
|
const A = window.requestAnimationFrame(() => {
|
|
933
933
|
k();
|
|
934
|
-
}),
|
|
934
|
+
}), I = window.setTimeout(() => {
|
|
935
935
|
k();
|
|
936
936
|
}, 60);
|
|
937
937
|
return () => {
|
|
938
|
-
window.cancelAnimationFrame(A), window.clearTimeout(
|
|
938
|
+
window.cancelAnimationFrame(A), window.clearTimeout(I);
|
|
939
939
|
};
|
|
940
940
|
}, [k]), re(() => {
|
|
941
941
|
if (!("fonts" in document)) return;
|
|
942
942
|
let A = !1;
|
|
943
|
-
const
|
|
944
|
-
if (
|
|
945
|
-
return
|
|
943
|
+
const I = document.fonts;
|
|
944
|
+
if (I?.ready)
|
|
945
|
+
return I.ready.then(() => {
|
|
946
946
|
A || k();
|
|
947
947
|
}), () => {
|
|
948
948
|
A = !0;
|
|
@@ -1059,7 +1059,7 @@ const Ge = (e) => e === "multi-variable" || e === "multi-variable-select", od =
|
|
|
1059
1059
|
const x = Ie.useCallback(() => s.length >= 2 ? s.join("-") : l || "请选择省市区", [s, l]), C = Ie.useCallback(() => {
|
|
1060
1060
|
const S = E.current;
|
|
1061
1061
|
if (!S) return;
|
|
1062
|
-
const L = x(), k = S.querySelector(".ant-select-selector"), A = S.querySelector(".ant-select-selection-item") || S.querySelector(".ant-select-selection-placeholder"),
|
|
1062
|
+
const L = x(), k = S.querySelector(".ant-select-selector"), A = S.querySelector(".ant-select-selection-item") || S.querySelector(".ant-select-selection-placeholder"), I = A || k || S, N = window.getComputedStyle(I), P = A ? N.fontSize : "16px", O = N.fontFamily || "sans-serif", w = N.fontWeight || "400", M = `${N.fontStyle || "normal"} ${w} ${P} ${O}`, H = document.createElement("canvas").getContext("2d"), F = H ? Math.ceil((H.font = M, H.measureText(L).width || 0)) : 0;
|
|
1063
1063
|
let _ = 0;
|
|
1064
1064
|
if (k) {
|
|
1065
1065
|
const D = window.getComputedStyle(k);
|
|
@@ -1224,7 +1224,7 @@ const gd = ({ host: e, onChange: t }) => {
|
|
|
1224
1224
|
if (!x) return;
|
|
1225
1225
|
const C = x.querySelector("textarea");
|
|
1226
1226
|
if (!C) return;
|
|
1227
|
-
const S = window.getComputedStyle(C), L = S.fontStyle || "normal", k = S.fontWeight || "400", A = S.fontSize || "16px",
|
|
1227
|
+
const S = window.getComputedStyle(C), L = S.fontStyle || "normal", k = S.fontWeight || "400", A = S.fontSize || "16px", I = S.fontFamily || "sans-serif", N = `${L} ${k} ${A} ${I}`, P = Number.parseFloat(S.paddingLeft) || 0, O = Number.parseFloat(S.paddingRight) || 0, w = (u && u.length > 0 ? u : l) || " ", T = vd(w, N, S.letterSpacing || "0", P, O), q = Math.max(24, Math.min(600, T + 2));
|
|
1228
1228
|
h((H) => H === q ? H : q);
|
|
1229
1229
|
}, [l, u]);
|
|
1230
1230
|
re(() => {
|
|
@@ -1542,14 +1542,14 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1542
1542
|
), A = ue(() => {
|
|
1543
1543
|
const $ = S();
|
|
1544
1544
|
k((K) => K.signature === $.signature ? K : $);
|
|
1545
|
-
}, [S]),
|
|
1545
|
+
}, [S]), I = ue(($) => {
|
|
1546
1546
|
const K = $.trim();
|
|
1547
1547
|
if (!K) return "";
|
|
1548
1548
|
const J = Yu(K);
|
|
1549
1549
|
return J.reportId ? `report:${J.reportId}` : `url:${K}`;
|
|
1550
|
-
}, []),
|
|
1551
|
-
($) =>
|
|
1552
|
-
[
|
|
1550
|
+
}, []), N = L.mode === "precise" ? I(L.rawValue) : "", P = ue(
|
|
1551
|
+
($) => N ? $.filter((K) => I(K.url) === N) : $,
|
|
1552
|
+
[I, N]
|
|
1553
1553
|
), O = ue(() => {
|
|
1554
1554
|
if (!document.body.contains(e))
|
|
1555
1555
|
return console.log("[RTE-REPORT][anchor] skip: host detached"), !1;
|
|
@@ -1687,7 +1687,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1687
1687
|
$.stopPropagation(), n ? (n(K), o(!1)) : window.open(K.viewUrl || K.url, "_blank");
|
|
1688
1688
|
},
|
|
1689
1689
|
[n]
|
|
1690
|
-
), q =
|
|
1690
|
+
), q = N && h && h.tabs.find(($) => P($.items).length > 0)?.key || "";
|
|
1691
1691
|
re(() => {
|
|
1692
1692
|
!s || !q || E(($) => $ === q ? $ : q);
|
|
1693
1693
|
}, [s, q, L.signature]);
|
|
@@ -1715,7 +1715,7 @@ ${(e || "").replace(/\r\n/g, `
|
|
|
1715
1715
|
/* @__PURE__ */ V("div", { className: "rte-report-dropdown-list", onScroll: z, children: !H || F.length === 0 ? /* @__PURE__ */ he("div", { className: "rte-report-dropdown-empty", children: [
|
|
1716
1716
|
/* @__PURE__ */ V("img", { className: "rte-report-dropdown-empty-img", src: Ad, alt: "" }),
|
|
1717
1717
|
/* @__PURE__ */ he("div", { className: "rte-report-dropdown-empty-text", children: [
|
|
1718
|
-
/* @__PURE__ */ V("span", { className: "rte-report-dropdown-empty-label", children:
|
|
1718
|
+
/* @__PURE__ */ V("span", { className: "rte-report-dropdown-empty-label", children: N ? "未找到匹配的报告" : "暂无生成的报告" }),
|
|
1719
1719
|
H?.agentType != null && l && /* @__PURE__ */ V(
|
|
1720
1720
|
"span",
|
|
1721
1721
|
{
|
|
@@ -2380,10 +2380,10 @@ const Hd = ({
|
|
|
2380
2380
|
} else if (k) {
|
|
2381
2381
|
S.current = null;
|
|
2382
2382
|
const A = {};
|
|
2383
|
-
e.forEach((
|
|
2384
|
-
if (Ge(
|
|
2385
|
-
const
|
|
2386
|
-
Array.isArray(P) && P.length > 0 ? A[
|
|
2383
|
+
e.forEach((I) => {
|
|
2384
|
+
if (Ge(I.type) && I.key) {
|
|
2385
|
+
const N = h?.[I.key], P = Array.isArray(N) ? N.filter((O) => String(O ?? "").trim().length > 0) : N;
|
|
2386
|
+
Array.isArray(P) && P.length > 0 ? A[I.key] = Math.min(P.length + 1, I.maxCount ?? 9) : A[I.key] = 1;
|
|
2387
2387
|
}
|
|
2388
2388
|
}), r(A), l({}), u({}), o({}), d({}), f && (f.current = {}), Pa({ clearAll: !0 });
|
|
2389
2389
|
} else
|
|
@@ -2710,9 +2710,9 @@ const Hd = ({
|
|
|
2710
2710
|
}, [h, k]);
|
|
2711
2711
|
const A = ue((O, w) => {
|
|
2712
2712
|
c.current(O, w);
|
|
2713
|
-
}, [c]),
|
|
2713
|
+
}, [c]), I = ue((O, w) => {
|
|
2714
2714
|
d.current(O, w);
|
|
2715
|
-
}, [d]),
|
|
2715
|
+
}, [d]), N = ue((O, w) => {
|
|
2716
2716
|
h.current(O, w);
|
|
2717
2717
|
}, [h]), P = ue(
|
|
2718
2718
|
(O, w, T = "multi-variable") => {
|
|
@@ -2728,7 +2728,7 @@ const Hd = ({
|
|
|
2728
2728
|
},
|
|
2729
2729
|
[E, v, c, x, C]
|
|
2730
2730
|
);
|
|
2731
|
-
return { handleReportUrlBlur: A, handleMarkdownBlur:
|
|
2731
|
+
return { handleReportUrlBlur: A, handleMarkdownBlur: I, handleMarkdownNameBlur: N, handleMultiVariableNameResolve: P };
|
|
2732
2732
|
}, qd = ({
|
|
2733
2733
|
collapsed: e,
|
|
2734
2734
|
collapseTransitionMs: t,
|
|
@@ -2762,14 +2762,14 @@ const Hd = ({
|
|
|
2762
2762
|
const S = Array.from(C.getClientRects());
|
|
2763
2763
|
let L;
|
|
2764
2764
|
if (S.length > 0) {
|
|
2765
|
-
const k = Math.min(...S.map((
|
|
2766
|
-
let
|
|
2767
|
-
for (const
|
|
2768
|
-
Math.abs(
|
|
2769
|
-
L =
|
|
2765
|
+
const k = Math.min(...S.map((N) => N.top)), A = 2;
|
|
2766
|
+
let I = 0;
|
|
2767
|
+
for (const N of S)
|
|
2768
|
+
Math.abs(N.top - k) <= A && (I = Math.max(I, N.bottom));
|
|
2769
|
+
L = I > 0 ? Math.max(0, Math.ceil(I - x.top)) : 58;
|
|
2770
2770
|
} else {
|
|
2771
|
-
const k = window.getComputedStyle(b), A = Number.parseFloat(k.paddingTop) || 0,
|
|
2772
|
-
L = Math.max(0, Math.ceil(A +
|
|
2771
|
+
const k = window.getComputedStyle(b), A = Number.parseFloat(k.paddingTop) || 0, I = Number.parseFloat(k.lineHeight) || 34;
|
|
2772
|
+
L = Math.max(0, Math.ceil(A + I)) || 58;
|
|
2773
2773
|
}
|
|
2774
2774
|
if (!Number.isFinite(L) || L <= 0) return;
|
|
2775
2775
|
i((k) => k === L ? k : L);
|
|
@@ -2799,16 +2799,16 @@ const Hd = ({
|
|
|
2799
2799
|
};
|
|
2800
2800
|
m.addEventListener("wheel", k, { passive: !1 }), m.addEventListener("touchmove", k, { passive: !1 }), b && (b.addEventListener("wheel", k, { passive: !1 }), b.addEventListener("touchmove", k, { passive: !1 }));
|
|
2801
2801
|
const A = performance.now();
|
|
2802
|
-
let
|
|
2803
|
-
const
|
|
2804
|
-
C(), O - A < L && (
|
|
2802
|
+
let I = 0;
|
|
2803
|
+
const N = (O) => {
|
|
2804
|
+
C(), O - A < L && (I = window.requestAnimationFrame(N));
|
|
2805
2805
|
};
|
|
2806
|
-
|
|
2806
|
+
I = window.requestAnimationFrame(N);
|
|
2807
2807
|
const P = window.setTimeout(() => {
|
|
2808
2808
|
C();
|
|
2809
2809
|
}, L);
|
|
2810
2810
|
return () => {
|
|
2811
|
-
m.removeEventListener("wheel", k), m.removeEventListener("touchmove", k), b && (b.removeEventListener("wheel", k), b.removeEventListener("touchmove", k)), window.cancelAnimationFrame(
|
|
2811
|
+
m.removeEventListener("wheel", k), m.removeEventListener("touchmove", k), b && (b.removeEventListener("wheel", k), b.removeEventListener("touchmove", k)), window.cancelAnimationFrame(I), window.clearTimeout(P);
|
|
2812
2812
|
};
|
|
2813
2813
|
}, [e, t, l, a, r, n]);
|
|
2814
2814
|
const g = o.filter((m) => m.key && m.type !== "report-module" && m.type !== "markdown-module").map((m) => `${m.type}:${m.key}`).join("|");
|
|
@@ -3056,8 +3056,8 @@ function Va(e, t) {
|
|
|
3056
3056
|
try {
|
|
3057
3057
|
const A = Gd(g, l);
|
|
3058
3058
|
if (!A || !Number.isFinite(A)) {
|
|
3059
|
-
const
|
|
3060
|
-
return Math.max(0,
|
|
3059
|
+
const I = Ll(g);
|
|
3060
|
+
return Math.max(0, I - 22);
|
|
3061
3061
|
}
|
|
3062
3062
|
return A;
|
|
3063
3063
|
} catch {
|
|
@@ -3068,11 +3068,13 @@ function Va(e, t) {
|
|
|
3068
3068
|
if (!!!l.querySelector(
|
|
3069
3069
|
".variable-info-icon, .rte-report-dropdown-host"
|
|
3070
3070
|
)) return 0;
|
|
3071
|
+
const I = l.querySelector(".variable-info-icon.hidden");
|
|
3072
|
+
I && I.classList.remove("hidden");
|
|
3071
3073
|
const N = l.querySelector(".variable-info-icon:not(.hidden)");
|
|
3072
3074
|
if (!N) return 24;
|
|
3073
3075
|
try {
|
|
3074
|
-
const
|
|
3075
|
-
return Math.max(16, Math.min(120,
|
|
3076
|
+
const P = window.getComputedStyle(N), O = Math.ceil(N.getBoundingClientRect().width || 0) || 16, w = Math.ceil(Number.parseFloat(P.right || "0")) || 4;
|
|
3077
|
+
return Math.max(16, Math.min(120, O + w + 2));
|
|
3076
3078
|
} catch {
|
|
3077
3079
|
return 24;
|
|
3078
3080
|
}
|
|
@@ -3133,37 +3135,37 @@ function Ga(e, t, a, l) {
|
|
|
3133
3135
|
}
|
|
3134
3136
|
v.length && E.push(v);
|
|
3135
3137
|
const g = (A) => {
|
|
3136
|
-
const
|
|
3137
|
-
return
|
|
3138
|
+
const I = t.find((N) => N.type === "upload" && N.key === A);
|
|
3139
|
+
return I ? typeof I.maxCount == "number" && I.maxCount > 1 ? I.maxCount : 1 : 0;
|
|
3138
3140
|
}, m = E.map((A) => {
|
|
3139
|
-
for (const
|
|
3140
|
-
if (
|
|
3141
|
-
if (
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3144
|
-
if (
|
|
3141
|
+
for (const I of A)
|
|
3142
|
+
if (I.type !== "other") {
|
|
3143
|
+
if (I.type === "video-url" || I.type === "video-upload") {
|
|
3144
|
+
const N = l?.[I.key];
|
|
3145
|
+
if (N?.status === "success" && N.videoUrl || N?.status === "loading") return !0;
|
|
3146
|
+
if (I.type === "video-url") {
|
|
3145
3147
|
const P = e.current.querySelector(
|
|
3146
|
-
`[data-type="variable"][data-node-type="video-url"][data-key="${
|
|
3148
|
+
`[data-type="variable"][data-node-type="video-url"][data-key="${I.key}"]`
|
|
3147
3149
|
);
|
|
3148
3150
|
if (P && !P.classList.contains("show-placeholder") && P.innerText.replace(/[\u200B\n]/g, "").trim().length > 0)
|
|
3149
3151
|
return !0;
|
|
3150
3152
|
}
|
|
3151
3153
|
continue;
|
|
3152
3154
|
}
|
|
3153
|
-
if (
|
|
3154
|
-
if (a[
|
|
3155
|
-
const
|
|
3156
|
-
for (let P = 0; P <
|
|
3157
|
-
const O = `${
|
|
3155
|
+
if (I.type === "upload") {
|
|
3156
|
+
if (a[I.key] !== null && a[I.key] !== void 0) return !0;
|
|
3157
|
+
const N = g(I.key);
|
|
3158
|
+
for (let P = 0; P < N; P++) {
|
|
3159
|
+
const O = `${I.key}-${P}`;
|
|
3158
3160
|
if (a[O] !== null && a[O] !== void 0) return !0;
|
|
3159
3161
|
}
|
|
3160
3162
|
continue;
|
|
3161
3163
|
}
|
|
3162
|
-
if (
|
|
3163
|
-
const
|
|
3164
|
-
`[data-type="variable"][data-multi-key="${
|
|
3164
|
+
if (I.type === "multi-variable") {
|
|
3165
|
+
const N = e.current.querySelectorAll(
|
|
3166
|
+
`[data-type="variable"][data-multi-key="${I.key}"]`
|
|
3165
3167
|
);
|
|
3166
|
-
for (const P of
|
|
3168
|
+
for (const P of N) {
|
|
3167
3169
|
if (P.getAttribute("data-report-url")) return !0;
|
|
3168
3170
|
if (P.dataset.variableRender === "antd-textarea") {
|
|
3169
3171
|
const O = P.dataset.value || "";
|
|
@@ -3181,11 +3183,11 @@ function Ga(e, t, a, l) {
|
|
|
3181
3183
|
}
|
|
3182
3184
|
continue;
|
|
3183
3185
|
}
|
|
3184
|
-
if (
|
|
3186
|
+
if (I.type === "variable") {
|
|
3185
3187
|
if (e.current.querySelector(
|
|
3186
|
-
`[data-node-type="markdown-module"][data-key="${
|
|
3188
|
+
`[data-node-type="markdown-module"][data-key="${I.key}"]`
|
|
3187
3189
|
)) return !0;
|
|
3188
|
-
const P = e.current.querySelector(`[data-type="variable"][data-key="${
|
|
3190
|
+
const P = e.current.querySelector(`[data-type="variable"][data-key="${I.key}"]`);
|
|
3189
3191
|
if (!P) continue;
|
|
3190
3192
|
if (P.getAttribute("data-report-url")) return !0;
|
|
3191
3193
|
if (P.dataset.variableRender === "antd-textarea") {
|
|
@@ -3206,32 +3208,32 @@ function Ga(e, t, a, l) {
|
|
|
3206
3208
|
}), b = m.some(Boolean), x = b ? m.findIndex(Boolean) : -1, C = (A) => e.current.querySelector(
|
|
3207
3209
|
`[data-type="video-url"][data-key="${A}"], [data-type="video-upload"][data-key="${A}"], [data-type="variable"][data-node-type="video-url"][data-key="${A}"]`
|
|
3208
3210
|
), S = (A) => {
|
|
3209
|
-
for (const
|
|
3210
|
-
if (
|
|
3211
|
-
if (
|
|
3212
|
-
const
|
|
3213
|
-
|
|
3211
|
+
for (const I of E[A] || [])
|
|
3212
|
+
if (I.type !== "other") {
|
|
3213
|
+
if (I.type === "video-url" || I.type === "video-upload") {
|
|
3214
|
+
const N = C(I.key);
|
|
3215
|
+
N && r(N.closest(".exclusion-wrapper") || N);
|
|
3214
3216
|
continue;
|
|
3215
3217
|
}
|
|
3216
|
-
if (
|
|
3218
|
+
if (I.type === "upload") {
|
|
3217
3219
|
e.current.querySelectorAll(
|
|
3218
|
-
`[data-type="upload"][data-key="${
|
|
3220
|
+
`[data-type="upload"][data-key="${I.key}"], [data-type="upload"][data-key^="${I.key}-"]`
|
|
3219
3221
|
).forEach((P) => r(P.closest(".exclusion-wrapper") || P));
|
|
3220
3222
|
continue;
|
|
3221
3223
|
}
|
|
3222
|
-
if (
|
|
3224
|
+
if (I.type === "multi-variable") {
|
|
3223
3225
|
e.current.querySelectorAll(
|
|
3224
|
-
`[data-type="variable"][data-multi-key="${
|
|
3226
|
+
`[data-type="variable"][data-multi-key="${I.key}"]`
|
|
3225
3227
|
).forEach((P) => {
|
|
3226
3228
|
const O = P.closest(".exclusion-wrapper") || P;
|
|
3227
3229
|
r(O);
|
|
3228
3230
|
});
|
|
3229
3231
|
continue;
|
|
3230
3232
|
}
|
|
3231
|
-
if (
|
|
3232
|
-
const
|
|
3233
|
-
|
|
3234
|
-
`[data-node-type="markdown-module"][data-key="${
|
|
3233
|
+
if (I.type === "variable") {
|
|
3234
|
+
const N = e.current.querySelector(`[data-type="variable"][data-key="${I.key}"]`);
|
|
3235
|
+
N && r(N.closest(".exclusion-wrapper") || N), e.current.querySelectorAll(
|
|
3236
|
+
`[data-node-type="markdown-module"][data-key="${I.key}"]`
|
|
3235
3237
|
).forEach((O) => {
|
|
3236
3238
|
const w = O.closest(".exclusion-wrapper") || O.closest(".rte-markdown-module-container") || O;
|
|
3237
3239
|
r(w);
|
|
@@ -3239,29 +3241,29 @@ function Ga(e, t, a, l) {
|
|
|
3239
3241
|
}
|
|
3240
3242
|
}
|
|
3241
3243
|
}, L = (A) => {
|
|
3242
|
-
for (const
|
|
3243
|
-
if (
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3246
|
-
|
|
3244
|
+
for (const I of E[A] || [])
|
|
3245
|
+
if (I.type !== "other") {
|
|
3246
|
+
if (I.type === "video-url" || I.type === "video-upload") {
|
|
3247
|
+
const N = C(I.key);
|
|
3248
|
+
N && i(N.closest(".exclusion-wrapper") || N);
|
|
3247
3249
|
continue;
|
|
3248
3250
|
}
|
|
3249
|
-
if (
|
|
3251
|
+
if (I.type === "upload") {
|
|
3250
3252
|
e.current.querySelectorAll(
|
|
3251
|
-
`[data-type="upload"][data-key="${
|
|
3253
|
+
`[data-type="upload"][data-key="${I.key}"], [data-type="upload"][data-key^="${I.key}-"]`
|
|
3252
3254
|
).forEach((P) => i(P.closest(".exclusion-wrapper") || P));
|
|
3253
3255
|
continue;
|
|
3254
3256
|
}
|
|
3255
|
-
if (
|
|
3257
|
+
if (I.type === "multi-variable") {
|
|
3256
3258
|
e.current.querySelectorAll(
|
|
3257
|
-
`[data-type="variable"][data-multi-key="${
|
|
3259
|
+
`[data-type="variable"][data-multi-key="${I.key}"]`
|
|
3258
3260
|
).forEach((P) => i(P.closest(".exclusion-wrapper") || P));
|
|
3259
3261
|
continue;
|
|
3260
3262
|
}
|
|
3261
|
-
if (
|
|
3262
|
-
const
|
|
3263
|
-
|
|
3264
|
-
`[data-node-type="markdown-module"][data-key="${
|
|
3263
|
+
if (I.type === "variable") {
|
|
3264
|
+
const N = e.current.querySelector(`[data-type="variable"][data-key="${I.key}"]`);
|
|
3265
|
+
N && i(N.closest(".exclusion-wrapper") || N), e.current.querySelectorAll(
|
|
3266
|
+
`[data-node-type="markdown-module"][data-key="${I.key}"]`
|
|
3265
3267
|
).forEach((O) => {
|
|
3266
3268
|
const w = O.closest(".exclusion-wrapper") || O.closest(".rte-markdown-module-container") || O;
|
|
3267
3269
|
i(w);
|
|
@@ -3393,7 +3395,7 @@ function Tr(e, t, a, l, n, r) {
|
|
|
3393
3395
|
S = A;
|
|
3394
3396
|
break;
|
|
3395
3397
|
}
|
|
3396
|
-
return C.filter((A,
|
|
3398
|
+
return C.filter((A, I) => I !== S).map((A) => (A.textContent || "").replace(/[\u200B]/g, "").trim()).join(`
|
|
3397
3399
|
`).trim() || x;
|
|
3398
3400
|
}, u = (m) => m ? !!m.closest('[data-rte-force-hidden="1"]') : !1, s = (m) => {
|
|
3399
3401
|
const b = (m.innerText || "").replace(/[\u200B\n]/g, "").trim();
|
|
@@ -3594,8 +3596,8 @@ function Tr(e, t, a, l, n, r) {
|
|
|
3594
3596
|
if (L.length === 0)
|
|
3595
3597
|
continue;
|
|
3596
3598
|
for (let k = 0; k < L.length; k++) {
|
|
3597
|
-
const
|
|
3598
|
-
|
|
3599
|
+
const I = L[k].dataset.key;
|
|
3600
|
+
I && a[I] != null && (S += 1);
|
|
3599
3601
|
}
|
|
3600
3602
|
if (S >= C.minCount) {
|
|
3601
3603
|
x = !0;
|
|
@@ -3857,9 +3859,9 @@ const Yd = ({
|
|
|
3857
3859
|
const k = g.relatedTarget;
|
|
3858
3860
|
if (!(!k || !l.current.contains(k)))
|
|
3859
3861
|
return;
|
|
3860
|
-
const
|
|
3861
|
-
if (
|
|
3862
|
-
const w =
|
|
3862
|
+
const I = b.innerText.replace(/[\u200B\n]/g, "").trim(), N = /[、,,\s]+/;
|
|
3863
|
+
if (N.test(I)) {
|
|
3864
|
+
const w = I.split(N).map((T) => T.trim()).filter((T) => T.length > 0).slice(0, 9);
|
|
3863
3865
|
if (w.length > 1) {
|
|
3864
3866
|
const T = e.find((M) => Ge(M.type) && M.key === C);
|
|
3865
3867
|
if (T) {
|
|
@@ -3947,7 +3949,7 @@ const Yd = ({
|
|
|
3947
3949
|
try {
|
|
3948
3950
|
const A = window.getSelection();
|
|
3949
3951
|
if (!A) return S(k, "no selection");
|
|
3950
|
-
const
|
|
3952
|
+
const I = A.rangeCount > 0 ? A.getRangeAt(0) : null;
|
|
3951
3953
|
S(k, {
|
|
3952
3954
|
rangeCount: A.rangeCount,
|
|
3953
3955
|
isCollapsed: A.isCollapsed,
|
|
@@ -3955,11 +3957,11 @@ const Yd = ({
|
|
|
3955
3957
|
anchorOffset: A.anchorOffset,
|
|
3956
3958
|
focusNode: A.focusNode?.nodeType === Node.TEXT_NODE ? "TEXT" : A.focusNode?.nodeName,
|
|
3957
3959
|
focusOffset: A.focusOffset,
|
|
3958
|
-
range:
|
|
3959
|
-
startContainer:
|
|
3960
|
-
startOffset:
|
|
3961
|
-
endContainer:
|
|
3962
|
-
endOffset:
|
|
3960
|
+
range: I ? {
|
|
3961
|
+
startContainer: I.startContainer.nodeType === Node.TEXT_NODE ? "TEXT" : I.startContainer.nodeName,
|
|
3962
|
+
startOffset: I.startOffset,
|
|
3963
|
+
endContainer: I.endContainer.nodeType === Node.TEXT_NODE ? "TEXT" : I.endContainer.nodeName,
|
|
3964
|
+
endOffset: I.endOffset
|
|
3963
3965
|
} : null
|
|
3964
3966
|
});
|
|
3965
3967
|
} catch {
|
|
@@ -4284,10 +4286,10 @@ const Yd = ({
|
|
|
4284
4286
|
const C = x.innerText || "", S = !!x.querySelector("br") || C.includes(`
|
|
4285
4287
|
`), L = x.offsetHeight > 32, A = C.replace(/\u200B/g, "").trim().length > 0 && (S || L);
|
|
4286
4288
|
x.classList.toggle("rte-variable-multiline", A), x.classList.toggle("rte-variable-force-block", A);
|
|
4287
|
-
const
|
|
4288
|
-
|
|
4289
|
-
const
|
|
4290
|
-
|
|
4289
|
+
const I = x.closest(".rte-inline-group");
|
|
4290
|
+
I && I.classList.toggle("rte-inline-group-force-block", A);
|
|
4291
|
+
const N = x.closest(".required-upload-group, .required-multi-first");
|
|
4292
|
+
N && N.classList.toggle("rte-required-group-force-block", A);
|
|
4291
4293
|
const P = x.querySelector(".variable-info-icon");
|
|
4292
4294
|
let O = x.querySelector(".rte-report-dropdown-host");
|
|
4293
4295
|
if (!O && x.dataset.multiKey && x.dataset.key) {
|
|
@@ -4324,8 +4326,8 @@ const Yd = ({
|
|
|
4324
4326
|
e.filter((b) => Ge(b.type) && b.key).forEach((b) => {
|
|
4325
4327
|
if (!b.key) return;
|
|
4326
4328
|
const x = b.maxCount || 9, C = d[b.key] || 1, S = [];
|
|
4327
|
-
for (let
|
|
4328
|
-
const P = `${b.key}_${
|
|
4329
|
+
for (let N = 0; N < C; N++) {
|
|
4330
|
+
const P = `${b.key}_${N}`, O = t.current.querySelector(
|
|
4329
4331
|
`[data-type="variable"][data-key="${P}"][data-multi-key="${b.key}"]`
|
|
4330
4332
|
);
|
|
4331
4333
|
if (O) {
|
|
@@ -4335,16 +4337,16 @@ const Yd = ({
|
|
|
4335
4337
|
}
|
|
4336
4338
|
}
|
|
4337
4339
|
const k = (S[S.length - 1] || "") === "";
|
|
4338
|
-
let A = !1,
|
|
4339
|
-
for (let
|
|
4340
|
-
if (S[
|
|
4341
|
-
A = !0,
|
|
4340
|
+
let A = !1, I = -1;
|
|
4341
|
+
for (let N = 0; N < S.length - 1; N++)
|
|
4342
|
+
if (S[N] === "") {
|
|
4343
|
+
A = !0, I = N;
|
|
4342
4344
|
break;
|
|
4343
4345
|
}
|
|
4344
|
-
if (A &&
|
|
4345
|
-
const
|
|
4346
|
-
if (
|
|
4347
|
-
const F =
|
|
4346
|
+
if (A && I >= 0) {
|
|
4347
|
+
const N = window.getSelection();
|
|
4348
|
+
if (N && N.rangeCount > 0) {
|
|
4349
|
+
const F = N.getRangeAt(0), _ = F.startContainer, z = _.nodeType === Node.ELEMENT_NODE ? _.closest('[data-type="variable"][data-multi-key]') : _.parentElement?.closest('[data-type="variable"][data-multi-key]');
|
|
4348
4350
|
if (z) {
|
|
4349
4351
|
const W = z.dataset.key;
|
|
4350
4352
|
if (W) {
|
|
@@ -4363,11 +4365,11 @@ const Yd = ({
|
|
|
4363
4365
|
P.push(W && D ? { name: D, url: W } : null);
|
|
4364
4366
|
}
|
|
4365
4367
|
const O = [...S];
|
|
4366
|
-
for (let F =
|
|
4368
|
+
for (let F = I; F < O.length - 1; F++)
|
|
4367
4369
|
O[F] = O[F + 1];
|
|
4368
4370
|
O.pop();
|
|
4369
4371
|
const w = [...P];
|
|
4370
|
-
for (let F =
|
|
4372
|
+
for (let F = I; F < w.length - 1; F++)
|
|
4371
4373
|
w[F] = w[F + 1];
|
|
4372
4374
|
if (w.pop(), E?.current) {
|
|
4373
4375
|
for (let F = 0; F < C; F++)
|
|
@@ -4390,7 +4392,7 @@ const Yd = ({
|
|
|
4390
4392
|
}
|
|
4391
4393
|
}), t.current.__tempVariableValues = T;
|
|
4392
4394
|
const H = [];
|
|
4393
|
-
for (let F =
|
|
4395
|
+
for (let F = I; F < C; F++)
|
|
4394
4396
|
H.push(`${b.key}_${F}`);
|
|
4395
4397
|
Pa({ keys: H }), document.dispatchEvent(new CustomEvent("rte-report-dropdown-force-close")), h((F) => ({
|
|
4396
4398
|
...F,
|
|
@@ -4399,7 +4401,7 @@ const Yd = ({
|
|
|
4399
4401
|
return;
|
|
4400
4402
|
}
|
|
4401
4403
|
if (!k) {
|
|
4402
|
-
const
|
|
4404
|
+
const N = C - 1, P = `${b.key}_${N}`, O = t.current.querySelector(
|
|
4403
4405
|
`[data-type="variable"][data-key="${P}"][data-multi-key="${b.key}"]`
|
|
4404
4406
|
);
|
|
4405
4407
|
if (O && (O.innerText || "").replace(/\u200B/g, "").replace(/\r\n/g, `
|
|
@@ -4990,16 +4992,16 @@ const Yd = ({
|
|
|
4990
4992
|
}
|
|
4991
4993
|
}
|
|
4992
4994
|
}
|
|
4993
|
-
let A = !1,
|
|
4994
|
-
const
|
|
4995
|
-
if (
|
|
4996
|
-
const P =
|
|
4995
|
+
let A = !1, I = "";
|
|
4996
|
+
const N = window.getSelection();
|
|
4997
|
+
if (N && N.rangeCount > 0) {
|
|
4998
|
+
const P = N.anchorNode;
|
|
4997
4999
|
if (P) {
|
|
4998
5000
|
let O = null;
|
|
4999
5001
|
if (P.nodeType === Node.ELEMENT_NODE ? O = P.closest('[data-type="variable"]') : P.nodeType === Node.TEXT_NODE && P.parentElement && (O = P.parentElement.closest('[data-type="variable"]')), O) {
|
|
5000
5002
|
const w = O.getAttribute("data-node-type") || "", T = O.dataset.key;
|
|
5001
5003
|
if (w === "markdown" && T && /20\d{2}-\d{2}-\d{2}/.test(L))
|
|
5002
|
-
A = !0,
|
|
5004
|
+
A = !0, I = T, c.current[T] = L, d((M) => ({
|
|
5003
5005
|
...M,
|
|
5004
5006
|
[T]: { ...M[T], status: "loading", error: void 0 }
|
|
5005
5007
|
}));
|
|
@@ -5016,9 +5018,9 @@ const Yd = ({
|
|
|
5016
5018
|
}
|
|
5017
5019
|
}
|
|
5018
5020
|
}
|
|
5019
|
-
if (A &&
|
|
5021
|
+
if (A && I) {
|
|
5020
5022
|
setTimeout(() => {
|
|
5021
|
-
i.current(
|
|
5023
|
+
i.current(I, L);
|
|
5022
5024
|
}, 0);
|
|
5023
5025
|
return;
|
|
5024
5026
|
}
|
|
@@ -5108,9 +5110,9 @@ const Jd = ({
|
|
|
5108
5110
|
b,
|
|
5109
5111
|
NodeFilter.SHOW_TEXT,
|
|
5110
5112
|
{
|
|
5111
|
-
acceptNode: (
|
|
5112
|
-
const
|
|
5113
|
-
return
|
|
5113
|
+
acceptNode: (I) => {
|
|
5114
|
+
const N = b.querySelector(".variable-info-icon");
|
|
5115
|
+
return N && N.contains(I) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
|
|
5114
5116
|
}
|
|
5115
5117
|
}
|
|
5116
5118
|
);
|
|
@@ -5118,31 +5120,31 @@ const Jd = ({
|
|
|
5118
5120
|
S += L.currentNode.textContent || "";
|
|
5119
5121
|
const A = b.getAttribute("data-report-url") || S.replace(/[\u200B\n]/g, "").trim();
|
|
5120
5122
|
if (A) {
|
|
5121
|
-
const
|
|
5122
|
-
if (
|
|
5123
|
-
(!E[
|
|
5124
|
-
const
|
|
5125
|
-
|
|
5123
|
+
const I = b.dataset.multiKey;
|
|
5124
|
+
if (I) {
|
|
5125
|
+
(!E[I] || !Array.isArray(E[I])) && (E[I] = []);
|
|
5126
|
+
const N = E[I];
|
|
5127
|
+
N.push(A), N.length > 1 && (y += " "), y += A;
|
|
5126
5128
|
} else
|
|
5127
5129
|
E[C] = A, y += A;
|
|
5128
5130
|
if (b.dataset.nodeType === "report-url")
|
|
5129
5131
|
if (E.url === void 0)
|
|
5130
5132
|
E.url = A;
|
|
5131
5133
|
else {
|
|
5132
|
-
const
|
|
5133
|
-
Array.isArray(
|
|
5134
|
+
const N = E.url;
|
|
5135
|
+
Array.isArray(N) ? N.push(A) : E.url = [String(N), A];
|
|
5134
5136
|
}
|
|
5135
5137
|
if (b.dataset.nodeType === "markdown-name") {
|
|
5136
|
-
const
|
|
5137
|
-
E[
|
|
5138
|
+
const N = `${C}__sourceText`;
|
|
5139
|
+
E[N] === void 0 && (E[N] = A);
|
|
5138
5140
|
}
|
|
5139
5141
|
if (b.dataset.nodeType === "markdown") {
|
|
5140
|
-
const
|
|
5141
|
-
if (E[
|
|
5142
|
-
E[
|
|
5142
|
+
const N = b.dataset.sourceTextKey || `${C}__sourceText`;
|
|
5143
|
+
if (E[N] === void 0)
|
|
5144
|
+
E[N] = A;
|
|
5143
5145
|
else {
|
|
5144
|
-
const O = E[
|
|
5145
|
-
Array.isArray(O) ? O.push(A) : E[
|
|
5146
|
+
const O = E[N];
|
|
5147
|
+
Array.isArray(O) ? O.push(A) : E[N] = [String(O), A];
|
|
5146
5148
|
}
|
|
5147
5149
|
const P = `${C}__markdown`;
|
|
5148
5150
|
E[P] === void 0 && (E[P] = [Vu(A)]);
|
|
@@ -5181,8 +5183,8 @@ const Jd = ({
|
|
|
5181
5183
|
if (L && typeof L.maxCount == "number" && typeof L.minCount == "number") {
|
|
5182
5184
|
const k = [];
|
|
5183
5185
|
for (let A = 0; A < L.maxCount; A++) {
|
|
5184
|
-
const
|
|
5185
|
-
|
|
5186
|
+
const I = `${S}-${A}`, N = t[I];
|
|
5187
|
+
N && k.push(N);
|
|
5186
5188
|
}
|
|
5187
5189
|
E[S] || (E[S] = k.length > 0 ? k : null, k.length > 0 && (y += ` [附带${k.length}个文件: ${k.map((A) => typeof A == "string" ? A.split("/").pop() || "file" : A.name).join(", ")}] `));
|
|
5188
5190
|
} else if (E[C] = t[C] ?? null, t[C]) {
|
|
@@ -5248,8 +5250,8 @@ const Jd = ({
|
|
|
5248
5250
|
), L = b.endsWith("__markdown");
|
|
5249
5251
|
C || S || L || b === "url" ? x.forEach((A) => {
|
|
5250
5252
|
A != null && A !== "" && m.append(b, String(A));
|
|
5251
|
-
}) : x.forEach((A,
|
|
5252
|
-
A != null && (A instanceof File ? m.append(`${b}[${
|
|
5253
|
+
}) : x.forEach((A, I) => {
|
|
5254
|
+
A != null && (A instanceof File ? m.append(`${b}[${I}]`, A) : typeof A == "string" ? m.append(`${b}[${I}]`, A) : m.append(`${b}[${I}]`, String(A)));
|
|
5253
5255
|
});
|
|
5254
5256
|
} else typeof x == "string" ? m.append(b, x) : m.append(b, String(x));
|
|
5255
5257
|
}), a.length > 0 && a.forEach((b) => {
|
|
@@ -5763,8 +5765,8 @@ function mf() {
|
|
|
5763
5765
|
}
|
|
5764
5766
|
function vf() {
|
|
5765
5767
|
const e = this;
|
|
5766
|
-
function t(
|
|
5767
|
-
return parseFloat(
|
|
5768
|
+
function t(I, N) {
|
|
5769
|
+
return parseFloat(I.getPropertyValue(e.getDirectionLabel(N)) || 0);
|
|
5768
5770
|
}
|
|
5769
5771
|
const a = e.params, {
|
|
5770
5772
|
wrapperEl: l,
|
|
@@ -5782,24 +5784,24 @@ function vf() {
|
|
|
5782
5784
|
let b = a.spaceBetween, x = -y, C = 0, S = 0;
|
|
5783
5785
|
if (typeof m > "u")
|
|
5784
5786
|
return;
|
|
5785
|
-
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * m : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - y - E, o.forEach((
|
|
5786
|
-
r ?
|
|
5787
|
+
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * m : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - y - E, o.forEach((I) => {
|
|
5788
|
+
r ? I.style.marginLeft = "" : I.style.marginRight = "", I.style.marginBottom = "", I.style.marginTop = "";
|
|
5787
5789
|
}), a.centeredSlides && a.cssMode && (ea(l, "--swiper-centered-offset-before", ""), ea(l, "--swiper-centered-offset-after", "")), a.cssMode && (ea(l, "--swiper-slides-offset-before", `${y}px`), ea(l, "--swiper-slides-offset-after", `${E}px`));
|
|
5788
5790
|
const L = a.grid && a.grid.rows > 1 && e.grid;
|
|
5789
5791
|
L ? e.grid.initSlides(o) : e.grid && e.grid.unsetSlides();
|
|
5790
5792
|
let k;
|
|
5791
|
-
const A = a.slidesPerView === "auto" && a.breakpoints && Object.keys(a.breakpoints).filter((
|
|
5792
|
-
for (let
|
|
5793
|
+
const A = a.slidesPerView === "auto" && a.breakpoints && Object.keys(a.breakpoints).filter((I) => typeof a.breakpoints[I].slidesPerView < "u").length > 0;
|
|
5794
|
+
for (let I = 0; I < c; I += 1) {
|
|
5793
5795
|
k = 0;
|
|
5794
|
-
const
|
|
5795
|
-
if (!(
|
|
5796
|
+
const N = o[I];
|
|
5797
|
+
if (!(N && (L && e.grid.updateSlide(I, N, o), Ot(N, "display") === "none"))) {
|
|
5796
5798
|
if (u && a.slidesPerView === "auto")
|
|
5797
|
-
a.virtual.slidesPerViewAutoSlideSize && (k = a.virtual.slidesPerViewAutoSlideSize), k &&
|
|
5799
|
+
a.virtual.slidesPerViewAutoSlideSize && (k = a.virtual.slidesPerViewAutoSlideSize), k && N && (a.roundLengths && (k = Math.floor(k)), N.style[e.getDirectionLabel("width")] = `${k}px`);
|
|
5798
5800
|
else if (a.slidesPerView === "auto") {
|
|
5799
|
-
A && (
|
|
5800
|
-
const P = getComputedStyle(
|
|
5801
|
-
if (O && (
|
|
5802
|
-
k = e.isHorizontal() ? Zn(
|
|
5801
|
+
A && (N.style[e.getDirectionLabel("width")] = "");
|
|
5802
|
+
const P = getComputedStyle(N), O = N.style.transform, w = N.style.webkitTransform;
|
|
5803
|
+
if (O && (N.style.transform = "none"), w && (N.style.webkitTransform = "none"), a.roundLengths)
|
|
5804
|
+
k = e.isHorizontal() ? Zn(N, "width") : Zn(N, "height");
|
|
5803
5805
|
else {
|
|
5804
5806
|
const T = t(P, "width"), M = t(P, "padding-left"), q = t(P, "padding-right"), H = t(P, "margin-left"), F = t(P, "margin-right"), _ = P.getPropertyValue("box-sizing");
|
|
5805
5807
|
if (_ && _ === "border-box")
|
|
@@ -5808,20 +5810,20 @@ function vf() {
|
|
|
5808
5810
|
const {
|
|
5809
5811
|
clientWidth: z,
|
|
5810
5812
|
offsetWidth: W
|
|
5811
|
-
} =
|
|
5813
|
+
} = N;
|
|
5812
5814
|
k = T + M + q + H + F + (W - z);
|
|
5813
5815
|
}
|
|
5814
5816
|
}
|
|
5815
|
-
O && (
|
|
5817
|
+
O && (N.style.transform = O), w && (N.style.webkitTransform = w), a.roundLengths && (k = Math.floor(k));
|
|
5816
5818
|
} else
|
|
5817
|
-
k = (m - (a.slidesPerView - 1) * b) / a.slidesPerView, a.roundLengths && (k = Math.floor(k)),
|
|
5818
|
-
|
|
5819
|
+
k = (m - (a.slidesPerView - 1) * b) / a.slidesPerView, a.roundLengths && (k = Math.floor(k)), N && (N.style[e.getDirectionLabel("width")] = `${k}px`);
|
|
5820
|
+
N && (N.swiperSlideSize = k), f.push(k), a.centeredSlides ? (x = x + k / 2 + C / 2 + b, C === 0 && I !== 0 && (x = x - m / 2 - b), I === 0 && (x = x - m / 2 - b), Math.abs(x) < 1 / 1e3 && (x = 0), a.roundLengths && (x = Math.floor(x)), S % a.slidesPerGroup === 0 && d.push(x), h.push(x)) : (a.roundLengths && (x = Math.floor(x)), (S - Math.min(e.params.slidesPerGroupSkip, S)) % e.params.slidesPerGroup === 0 && d.push(x), h.push(x), x = x + k + b), e.virtualSize += k + b, C = k, S += 1;
|
|
5819
5821
|
}
|
|
5820
5822
|
}
|
|
5821
5823
|
if (e.virtualSize = Math.max(e.virtualSize, m) + E, 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`), L && e.grid.updateWrapperSize(k, d), !a.centeredSlides) {
|
|
5822
|
-
const
|
|
5824
|
+
const I = a.slidesPerView !== "auto" && a.slidesPerView % 1 !== 0, N = a.snapToSlideEdge && !a.loop && (a.slidesPerView === "auto" || I);
|
|
5823
5825
|
let P = d.length;
|
|
5824
|
-
if (
|
|
5826
|
+
if (N) {
|
|
5825
5827
|
let w;
|
|
5826
5828
|
if (a.slidesPerView === "auto") {
|
|
5827
5829
|
w = 1;
|
|
@@ -5835,42 +5837,42 @@ function vf() {
|
|
|
5835
5837
|
const O = [];
|
|
5836
5838
|
for (let w = 0; w < d.length; w += 1) {
|
|
5837
5839
|
let T = d[w];
|
|
5838
|
-
a.roundLengths && (T = Math.floor(T)),
|
|
5840
|
+
a.roundLengths && (T = Math.floor(T)), N ? w <= P && O.push(T) : d[w] <= e.virtualSize - m && O.push(T);
|
|
5839
5841
|
}
|
|
5840
|
-
d = O, Math.floor(e.virtualSize - m) - Math.floor(d[d.length - 1]) > 1 && (
|
|
5842
|
+
d = O, Math.floor(e.virtualSize - m) - Math.floor(d[d.length - 1]) > 1 && (N || d.push(e.virtualSize - m));
|
|
5841
5843
|
}
|
|
5842
5844
|
if (u && a.loop) {
|
|
5843
|
-
const
|
|
5845
|
+
const I = f[0] + b;
|
|
5844
5846
|
if (a.slidesPerGroup > 1) {
|
|
5845
|
-
const
|
|
5846
|
-
for (let O = 0; O <
|
|
5847
|
+
const N = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / a.slidesPerGroup), P = I * a.slidesPerGroup;
|
|
5848
|
+
for (let O = 0; O < N; O += 1)
|
|
5847
5849
|
d.push(d[d.length - 1] + P);
|
|
5848
5850
|
}
|
|
5849
|
-
for (let
|
|
5850
|
-
a.slidesPerGroup === 1 && d.push(d[d.length - 1] +
|
|
5851
|
+
for (let N = 0; N < e.virtual.slidesBefore + e.virtual.slidesAfter; N += 1)
|
|
5852
|
+
a.slidesPerGroup === 1 && d.push(d[d.length - 1] + I), h.push(h[h.length - 1] + I), e.virtualSize += I;
|
|
5851
5853
|
}
|
|
5852
5854
|
if (d.length === 0 && (d = [0]), b !== 0) {
|
|
5853
|
-
const
|
|
5854
|
-
o.filter((
|
|
5855
|
-
|
|
5855
|
+
const I = e.isHorizontal() && r ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
5856
|
+
o.filter((N, P) => !a.cssMode || a.loop ? !0 : P !== o.length - 1).forEach((N) => {
|
|
5857
|
+
N.style[I] = `${b}px`;
|
|
5856
5858
|
});
|
|
5857
5859
|
}
|
|
5858
5860
|
if (a.centeredSlides && a.centeredSlidesBounds) {
|
|
5859
|
-
let
|
|
5861
|
+
let I = 0;
|
|
5860
5862
|
f.forEach((P) => {
|
|
5861
|
-
|
|
5862
|
-
}),
|
|
5863
|
-
const
|
|
5864
|
-
d = d.map((P) => P <= 0 ? -y : P >
|
|
5863
|
+
I += P + (b || 0);
|
|
5864
|
+
}), I -= b;
|
|
5865
|
+
const N = I > m ? I - m : 0;
|
|
5866
|
+
d = d.map((P) => P <= 0 ? -y : P > N ? N + E : P);
|
|
5865
5867
|
}
|
|
5866
5868
|
if (a.centerInsufficientSlides) {
|
|
5867
|
-
let
|
|
5869
|
+
let I = 0;
|
|
5868
5870
|
f.forEach((P) => {
|
|
5869
|
-
|
|
5870
|
-
}),
|
|
5871
|
-
const
|
|
5872
|
-
if (
|
|
5873
|
-
const P = (m -
|
|
5871
|
+
I += P + (b || 0);
|
|
5872
|
+
}), I -= b;
|
|
5873
|
+
const N = (y || 0) + (E || 0);
|
|
5874
|
+
if (I + N < m) {
|
|
5875
|
+
const P = (m - I - N) / 2;
|
|
5874
5876
|
d.forEach((O, w) => {
|
|
5875
5877
|
d[w] = O - P;
|
|
5876
5878
|
}), h.forEach((O, w) => {
|
|
@@ -5885,12 +5887,12 @@ function vf() {
|
|
|
5885
5887
|
slidesSizesGrid: f
|
|
5886
5888
|
}), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) {
|
|
5887
5889
|
ea(l, "--swiper-centered-offset-before", `${-d[0]}px`), ea(l, "--swiper-centered-offset-after", `${e.size / 2 - f[f.length - 1] / 2}px`);
|
|
5888
|
-
const
|
|
5889
|
-
e.snapGrid = e.snapGrid.map((P) => P +
|
|
5890
|
+
const I = -e.snapGrid[0], N = -e.slidesGrid[0];
|
|
5891
|
+
e.snapGrid = e.snapGrid.map((P) => P + I), e.slidesGrid = e.slidesGrid.map((P) => P + N);
|
|
5890
5892
|
}
|
|
5891
5893
|
if (c !== s && e.emit("slidesLengthChange"), d.length !== v && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), h.length !== g && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !u && !a.cssMode && (a.effect === "slide" || a.effect === "fade")) {
|
|
5892
|
-
const
|
|
5893
|
-
c <= a.maxBackfaceHiddenSlides ?
|
|
5894
|
+
const I = `${a.containerModifierClass}backface-hidden`, N = e.el.classList.contains(I);
|
|
5895
|
+
c <= a.maxBackfaceHiddenSlides ? N || e.el.classList.add(I) : N && e.el.classList.remove(I);
|
|
5894
5896
|
}
|
|
5895
5897
|
}
|
|
5896
5898
|
function gf(e) {
|
|
@@ -6272,8 +6274,8 @@ function Bf(e = 0, t, a = !0, l, n) {
|
|
|
6272
6274
|
const g = -s[v];
|
|
6273
6275
|
if (u.normalizeSlideIndex)
|
|
6274
6276
|
for (let L = 0; L < o.length; L += 1) {
|
|
6275
|
-
const k = -Math.floor(g * 100), A = Math.floor(o[L] * 100),
|
|
6276
|
-
typeof o[L + 1] < "u" ? k >= A && k <
|
|
6277
|
+
const k = -Math.floor(g * 100), A = Math.floor(o[L] * 100), I = Math.floor(o[L + 1] * 100);
|
|
6278
|
+
typeof o[L + 1] < "u" ? k >= A && k < I - (I - A) / 2 ? i = L : k >= A && k < I && (i = L + 1) : k >= A && (i = L);
|
|
6277
6279
|
}
|
|
6278
6280
|
if (r.initialized && i !== d && (!r.allowSlideNext && (h ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (d || 0) !== i))
|
|
6279
6281
|
return !1;
|
|
@@ -6544,9 +6546,9 @@ function Yf({
|
|
|
6544
6546
|
C % x !== 0 && (C += x - C % x), C += f.loopAdditionalSlides, s.loopedSlides = C;
|
|
6545
6547
|
const S = s.grid && f.grid && f.grid.rows > 1;
|
|
6546
6548
|
o.length < b + C || s.params.effect === "cards" && o.length < b + C * 2 ? Dl("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") : S && f.grid.fill === "row" && Dl("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
6547
|
-
const L = [], k = [], A = S ? Math.ceil(o.length / f.grid.rows) : o.length,
|
|
6548
|
-
let
|
|
6549
|
-
typeof n > "u" ? n = s.getSlideIndex(o.find((H) => H.classList.contains(f.slideActiveClass))) :
|
|
6549
|
+
const L = [], k = [], A = S ? Math.ceil(o.length / f.grid.rows) : o.length, I = r && A - g < b && !m;
|
|
6550
|
+
let N = I ? g : s.activeIndex;
|
|
6551
|
+
typeof n > "u" ? n = s.getSlideIndex(o.find((H) => H.classList.contains(f.slideActiveClass))) : N = n;
|
|
6550
6552
|
const P = a === "next" || !a, O = a === "prev" || !a;
|
|
6551
6553
|
let w = 0, T = 0;
|
|
6552
6554
|
const q = (S ? o[n].column : n) + (m && typeof l > "u" ? -b / 2 + 0.5 : 0);
|
|
@@ -6562,7 +6564,7 @@ function Yf({
|
|
|
6562
6564
|
L.push(A - F - 1);
|
|
6563
6565
|
}
|
|
6564
6566
|
} else if (q + b > A - C) {
|
|
6565
|
-
T = Math.max(q - (A - C * 2), x),
|
|
6567
|
+
T = Math.max(q - (A - C * 2), x), I && (T = Math.max(T, b - A + g + 1));
|
|
6566
6568
|
for (let H = 0; H < T; H += 1) {
|
|
6567
6569
|
const F = H - Math.floor(H / A) * A;
|
|
6568
6570
|
S ? o.forEach((_, z) => {
|
|
@@ -6581,16 +6583,16 @@ function Yf({
|
|
|
6581
6583
|
}), f.watchSlidesProgress && s.updateSlidesOffset(), t) {
|
|
6582
6584
|
if (L.length > 0 && O) {
|
|
6583
6585
|
if (typeof e > "u") {
|
|
6584
|
-
const H = s.slidesGrid[
|
|
6585
|
-
u ? s.setTranslate(s.translate - _) : (s.slideTo(
|
|
6586
|
+
const H = s.slidesGrid[N], _ = s.slidesGrid[N + w] - H;
|
|
6587
|
+
u ? s.setTranslate(s.translate - _) : (s.slideTo(N + Math.ceil(w), 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6586
6588
|
} else if (l) {
|
|
6587
6589
|
const H = S ? L.length / f.grid.rows : L.length;
|
|
6588
6590
|
s.slideTo(s.activeIndex + H, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
|
|
6589
6591
|
}
|
|
6590
6592
|
} else if (k.length > 0 && P)
|
|
6591
6593
|
if (typeof e > "u") {
|
|
6592
|
-
const H = s.slidesGrid[
|
|
6593
|
-
u ? s.setTranslate(s.translate - _) : (s.slideTo(
|
|
6594
|
+
const H = s.slidesGrid[N], _ = s.slidesGrid[N - T] - H;
|
|
6595
|
+
u ? s.setTranslate(s.translate - _) : (s.slideTo(N - T, 0, !1, !0), l && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - _, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - _));
|
|
6594
6596
|
} else {
|
|
6595
6597
|
const H = S ? k.length / f.grid.rows : k.length;
|
|
6596
6598
|
s.slideTo(s.activeIndex - H, 0, !1, !0);
|
|
@@ -7890,9 +7892,9 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7890
7892
|
params: L,
|
|
7891
7893
|
passedParams: k,
|
|
7892
7894
|
rest: A,
|
|
7893
|
-
events:
|
|
7895
|
+
events: I
|
|
7894
7896
|
} = Tp(r), {
|
|
7895
|
-
slides:
|
|
7897
|
+
slides: N,
|
|
7896
7898
|
slots: P
|
|
7897
7899
|
} = Sp(l), O = () => {
|
|
7898
7900
|
f(!h);
|
|
@@ -7903,15 +7905,15 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7903
7905
|
}
|
|
7904
7906
|
});
|
|
7905
7907
|
const w = () => {
|
|
7906
|
-
Object.assign(L.on,
|
|
7908
|
+
Object.assign(L.on, I), u = !0;
|
|
7907
7909
|
const H = {
|
|
7908
7910
|
...L
|
|
7909
7911
|
};
|
|
7910
7912
|
if (delete H.wrapperClass, v.current = new Cr(H), v.current.virtual && v.current.params.virtual.enabled) {
|
|
7911
|
-
v.current.virtual.slides =
|
|
7913
|
+
v.current.virtual.slides = N;
|
|
7912
7914
|
const F = {
|
|
7913
7915
|
cache: !1,
|
|
7914
|
-
slides:
|
|
7916
|
+
slides: N,
|
|
7915
7917
|
renderExternal: d,
|
|
7916
7918
|
renderExternalUpdate: !1
|
|
7917
7919
|
};
|
|
@@ -7920,12 +7922,12 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7920
7922
|
};
|
|
7921
7923
|
E.current || w(), v.current && v.current.on("_beforeBreakpoint", O);
|
|
7922
7924
|
const T = () => {
|
|
7923
|
-
u || !
|
|
7924
|
-
v.current.on(H,
|
|
7925
|
+
u || !I || !v.current || Object.keys(I).forEach((H) => {
|
|
7926
|
+
v.current.on(H, I[H]);
|
|
7925
7927
|
});
|
|
7926
7928
|
}, M = () => {
|
|
7927
|
-
!
|
|
7928
|
-
v.current.off(H,
|
|
7929
|
+
!I || !v.current || Object.keys(I).forEach((H) => {
|
|
7930
|
+
v.current.off(H, I[H]);
|
|
7929
7931
|
});
|
|
7930
7932
|
};
|
|
7931
7933
|
re(() => () => {
|
|
@@ -7946,10 +7948,10 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7946
7948
|
};
|
|
7947
7949
|
}, []), Ma(() => {
|
|
7948
7950
|
T();
|
|
7949
|
-
const H = Cp(k, g.current,
|
|
7950
|
-
return g.current = k, m.current =
|
|
7951
|
+
const H = Cp(k, g.current, N, m.current, (F) => F.key);
|
|
7952
|
+
return g.current = k, m.current = N, H.length && v.current && !v.current.destroyed && yp({
|
|
7951
7953
|
swiper: v.current,
|
|
7952
|
-
slides:
|
|
7954
|
+
slides: N,
|
|
7953
7955
|
passedParams: k,
|
|
7954
7956
|
changedParams: H,
|
|
7955
7957
|
nextEl: b.current,
|
|
@@ -7963,7 +7965,7 @@ const Ti = /* @__PURE__ */ qu(null), _p = /* @__PURE__ */ qu(null), os = /* @__P
|
|
|
7963
7965
|
Ap(v.current);
|
|
7964
7966
|
}, [c]);
|
|
7965
7967
|
function q() {
|
|
7966
|
-
return L.virtual ? wp(v.current,
|
|
7968
|
+
return L.virtual ? wp(v.current, N, c) : N.map((H, F) => /* @__PURE__ */ Ie.cloneElement(H, {
|
|
7967
7969
|
swiper: v.current,
|
|
7968
7970
|
swiperSlideIndex: F
|
|
7969
7971
|
}));
|
|
@@ -8273,46 +8275,46 @@ function Np({
|
|
|
8273
8275
|
const S = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, L = e.params.loop ? Math.ceil(S / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
8274
8276
|
if (e.params.loop ? (C = e.previousRealIndex || 0, x = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (x = e.snapIndex, C = e.previousSnapIndex) : (C = e.previousIndex || 0, x = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
8275
8277
|
const k = e.pagination.bullets;
|
|
8276
|
-
let A,
|
|
8278
|
+
let A, I, N;
|
|
8277
8279
|
if (m.dynamicBullets && (r = Zn(k[0], e.isHorizontal() ? "width" : "height"), b.forEach((P) => {
|
|
8278
8280
|
P.style[e.isHorizontal() ? "width" : "height"] = `${r * (m.dynamicMainBullets + 4)}px`;
|
|
8279
|
-
}), m.dynamicMainBullets > 1 && C !== void 0 && (i += x - (C || 0), i > m.dynamicMainBullets - 1 ? i = m.dynamicMainBullets - 1 : i < 0 && (i = 0)), A = Math.max(x - i, 0),
|
|
8281
|
+
}), m.dynamicMainBullets > 1 && C !== void 0 && (i += x - (C || 0), i > m.dynamicMainBullets - 1 ? i = m.dynamicMainBullets - 1 : i < 0 && (i = 0)), A = Math.max(x - i, 0), I = A + (Math.min(k.length, m.dynamicMainBullets) - 1), N = (I + A) / 2), k.forEach((P) => {
|
|
8280
8282
|
const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((w) => `${m.bulletActiveClass}${w}`)].map((w) => typeof w == "string" && w.includes(" ") ? w.split(" ") : w).flat();
|
|
8281
8283
|
P.classList.remove(...O);
|
|
8282
8284
|
}), b.length > 1)
|
|
8283
8285
|
k.forEach((P) => {
|
|
8284
8286
|
const O = Ml(P);
|
|
8285
|
-
O === x ? P.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), m.dynamicBullets && (O >= A && O <=
|
|
8287
|
+
O === x ? P.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && P.setAttribute("part", "bullet"), m.dynamicBullets && (O >= A && O <= I && P.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), O === A && s(P, "prev"), O === I && s(P, "next"));
|
|
8286
8288
|
});
|
|
8287
8289
|
else {
|
|
8288
8290
|
const P = k[x];
|
|
8289
8291
|
if (P && P.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && k.forEach((O, w) => {
|
|
8290
8292
|
O.setAttribute("part", w === x ? "bullet-active" : "bullet");
|
|
8291
8293
|
}), m.dynamicBullets) {
|
|
8292
|
-
const O = k[A], w = k[
|
|
8293
|
-
for (let T = A; T <=
|
|
8294
|
+
const O = k[A], w = k[I];
|
|
8295
|
+
for (let T = A; T <= I; T += 1)
|
|
8294
8296
|
k[T] && k[T].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
|
|
8295
8297
|
s(O, "prev"), s(w, "next");
|
|
8296
8298
|
}
|
|
8297
8299
|
}
|
|
8298
8300
|
if (m.dynamicBullets) {
|
|
8299
|
-
const P = Math.min(k.length, m.dynamicMainBullets + 4), O = (r * P - r) / 2 -
|
|
8301
|
+
const P = Math.min(k.length, m.dynamicMainBullets + 4), O = (r * P - r) / 2 - N * r, w = g ? "right" : "left";
|
|
8300
8302
|
k.forEach((T) => {
|
|
8301
8303
|
T.style[e.isHorizontal() ? w : "top"] = `${O}px`;
|
|
8302
8304
|
});
|
|
8303
8305
|
}
|
|
8304
8306
|
}
|
|
8305
8307
|
b.forEach((k, A) => {
|
|
8306
|
-
if (m.type === "fraction" && (k.querySelectorAll(Sa(m.currentClass)).forEach((
|
|
8307
|
-
|
|
8308
|
-
}), k.querySelectorAll(Sa(m.totalClass)).forEach((
|
|
8309
|
-
|
|
8308
|
+
if (m.type === "fraction" && (k.querySelectorAll(Sa(m.currentClass)).forEach((I) => {
|
|
8309
|
+
I.textContent = m.formatFractionCurrent(x + 1);
|
|
8310
|
+
}), k.querySelectorAll(Sa(m.totalClass)).forEach((I) => {
|
|
8311
|
+
I.textContent = m.formatFractionTotal(L);
|
|
8310
8312
|
})), m.type === "progressbar") {
|
|
8311
|
-
let
|
|
8312
|
-
m.progressbarOpposite ?
|
|
8313
|
-
const
|
|
8313
|
+
let I;
|
|
8314
|
+
m.progressbarOpposite ? I = e.isHorizontal() ? "vertical" : "horizontal" : I = e.isHorizontal() ? "horizontal" : "vertical";
|
|
8315
|
+
const N = (x + 1) / L;
|
|
8314
8316
|
let P = 1, O = 1;
|
|
8315
|
-
|
|
8317
|
+
I === "horizontal" ? P = N : O = N, k.querySelectorAll(Sa(m.progressbarFillClass)).forEach((w) => {
|
|
8316
8318
|
w.style.transform = `translate3d(0,0,0) scaleX(${P}) scaleY(${O})`, w.style.transitionDuration = `${e.params.speed}ms`;
|
|
8317
8319
|
});
|
|
8318
8320
|
}
|
|
@@ -9657,13 +9659,13 @@ function zp() {
|
|
|
9657
9659
|
function A() {
|
|
9658
9660
|
k(a);
|
|
9659
9661
|
}
|
|
9660
|
-
function
|
|
9662
|
+
function I(w) {
|
|
9661
9663
|
var T;
|
|
9662
|
-
for (w = w || []; T =
|
|
9664
|
+
for (w = w || []; T = N(); )
|
|
9663
9665
|
T !== !1 && w.push(T);
|
|
9664
9666
|
return w;
|
|
9665
9667
|
}
|
|
9666
|
-
function
|
|
9668
|
+
function N() {
|
|
9667
9669
|
var w = C();
|
|
9668
9670
|
if (!(o != v.charAt(0) || c != v.charAt(1))) {
|
|
9669
9671
|
for (var T = 2; d != v.charAt(T) && (c != v.charAt(T) || o != v.charAt(T + 1)); )
|
|
@@ -9680,7 +9682,7 @@ function zp() {
|
|
|
9680
9682
|
function P() {
|
|
9681
9683
|
var w = C(), T = k(l);
|
|
9682
9684
|
if (T) {
|
|
9683
|
-
if (
|
|
9685
|
+
if (N(), !k(n)) return L("property missing ':'");
|
|
9684
9686
|
var M = k(r), q = w({
|
|
9685
9687
|
type: f,
|
|
9686
9688
|
property: E(T[0].replace(e, d)),
|
|
@@ -9691,9 +9693,9 @@ function zp() {
|
|
|
9691
9693
|
}
|
|
9692
9694
|
function O() {
|
|
9693
9695
|
var w = [];
|
|
9694
|
-
|
|
9696
|
+
I(w);
|
|
9695
9697
|
for (var T; T = P(); )
|
|
9696
|
-
T !== !1 && (w.push(T),
|
|
9698
|
+
T !== !1 && (w.push(T), I(w));
|
|
9697
9699
|
return w;
|
|
9698
9700
|
}
|
|
9699
9701
|
return A(), O();
|
|
@@ -10453,18 +10455,18 @@ function _h(e) {
|
|
|
10453
10455
|
)
|
|
10454
10456
|
return;
|
|
10455
10457
|
const L = t.events.length;
|
|
10456
|
-
let k = L, A,
|
|
10458
|
+
let k = L, A, I;
|
|
10457
10459
|
for (; k--; )
|
|
10458
10460
|
if (t.events[k][0] === "exit" && t.events[k][1].type === "chunkFlow") {
|
|
10459
10461
|
if (A) {
|
|
10460
|
-
|
|
10462
|
+
I = t.events[k][1].end;
|
|
10461
10463
|
break;
|
|
10462
10464
|
}
|
|
10463
10465
|
A = !0;
|
|
10464
10466
|
}
|
|
10465
10467
|
for (g(l), S = L; S < t.events.length; )
|
|
10466
10468
|
t.events[S][1].end = {
|
|
10467
|
-
...
|
|
10469
|
+
...I
|
|
10468
10470
|
}, S++;
|
|
10469
10471
|
vt(t.events, k + 1, 0, t.events.slice(L)), t.events.length = S;
|
|
10470
10472
|
}
|
|
@@ -10764,11 +10766,11 @@ function Hh(e, t, a) {
|
|
|
10764
10766
|
}
|
|
10765
10767
|
function C(S, L, k) {
|
|
10766
10768
|
let A = 0;
|
|
10767
|
-
return
|
|
10768
|
-
function N(T) {
|
|
10769
|
-
return S.enter("lineEnding"), S.consume(T), S.exit("lineEnding"), I;
|
|
10770
|
-
}
|
|
10769
|
+
return I;
|
|
10771
10770
|
function I(T) {
|
|
10771
|
+
return S.enter("lineEnding"), S.consume(T), S.exit("lineEnding"), N;
|
|
10772
|
+
}
|
|
10773
|
+
function N(T) {
|
|
10772
10774
|
return S.enter("codeFencedFence"), we(T) ? _e(S, P, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : P(T);
|
|
10773
10775
|
}
|
|
10774
10776
|
function P(T) {
|
|
@@ -11456,10 +11458,10 @@ function bb(e, t, a) {
|
|
|
11456
11458
|
return D === 62 ? (e.consume(D), l.interrupt ? t : P) : a(D);
|
|
11457
11459
|
}
|
|
11458
11460
|
function m(D) {
|
|
11459
|
-
return we(D) ? (e.consume(D), m) :
|
|
11461
|
+
return we(D) ? (e.consume(D), m) : I(D);
|
|
11460
11462
|
}
|
|
11461
11463
|
function b(D) {
|
|
11462
|
-
return D === 47 ? (e.consume(D),
|
|
11464
|
+
return D === 47 ? (e.consume(D), I) : D === 58 || D === 95 || bt(D) ? (e.consume(D), x) : we(D) ? (e.consume(D), b) : I(D);
|
|
11463
11465
|
}
|
|
11464
11466
|
function x(D) {
|
|
11465
11467
|
return D === 45 || D === 46 || D === 58 || D === 95 || lt(D) ? (e.consume(D), x) : C(D);
|
|
@@ -11479,11 +11481,11 @@ function bb(e, t, a) {
|
|
|
11479
11481
|
function A(D) {
|
|
11480
11482
|
return D === 47 || D === 62 || we(D) ? b(D) : a(D);
|
|
11481
11483
|
}
|
|
11482
|
-
function N(D) {
|
|
11483
|
-
return D === 62 ? (e.consume(D), I) : a(D);
|
|
11484
|
-
}
|
|
11485
11484
|
function I(D) {
|
|
11486
|
-
return D ===
|
|
11485
|
+
return D === 62 ? (e.consume(D), N) : a(D);
|
|
11486
|
+
}
|
|
11487
|
+
function N(D) {
|
|
11488
|
+
return D === null || ce(D) ? P(D) : we(D) ? (e.consume(D), N) : a(D);
|
|
11487
11489
|
}
|
|
11488
11490
|
function P(D) {
|
|
11489
11491
|
return D === 45 && n === 2 ? (e.consume(D), M) : D === 60 && n === 1 ? (e.consume(D), q) : D === 62 && n === 4 ? (e.consume(D), z) : D === 63 && n === 3 ? (e.consume(D), _) : D === 93 && n === 5 ? (e.consume(D), F) : ce(D) && (n === 6 || n === 7) ? (e.exit("htmlFlowData"), e.check(fb, W, O)(D)) : D === null || ce(D) ? (e.exit("htmlFlowData"), O(D)) : (e.consume(D), P);
|
|
@@ -11603,13 +11605,13 @@ function Eb(e, t, a) {
|
|
|
11603
11605
|
return _ === 45 || lt(_) ? (e.consume(_), k) : _ === 47 || _ === 62 || Re(_) ? A(_) : a(_);
|
|
11604
11606
|
}
|
|
11605
11607
|
function A(_) {
|
|
11606
|
-
return _ === 47 ? (e.consume(_), M) : _ === 58 || _ === 95 || bt(_) ? (e.consume(_),
|
|
11607
|
-
}
|
|
11608
|
-
function N(_) {
|
|
11609
|
-
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || lt(_) ? (e.consume(_), N) : I(_);
|
|
11608
|
+
return _ === 47 ? (e.consume(_), M) : _ === 58 || _ === 95 || bt(_) ? (e.consume(_), I) : ce(_) ? (i = A, q(_)) : we(_) ? (e.consume(_), A) : M(_);
|
|
11610
11609
|
}
|
|
11611
11610
|
function I(_) {
|
|
11612
|
-
return _ ===
|
|
11611
|
+
return _ === 45 || _ === 46 || _ === 58 || _ === 95 || lt(_) ? (e.consume(_), I) : N(_);
|
|
11612
|
+
}
|
|
11613
|
+
function N(_) {
|
|
11614
|
+
return _ === 61 ? (e.consume(_), P) : ce(_) ? (i = N, q(_)) : we(_) ? (e.consume(_), N) : A(_);
|
|
11613
11615
|
}
|
|
11614
11616
|
function P(_) {
|
|
11615
11617
|
return _ === null || _ === 60 || _ === 61 || _ === 62 || _ === 96 ? a(_) : _ === 34 || _ === 39 ? (e.consume(_), n = _, O) : ce(_) ? (i = P, q(_)) : we(_) ? (e.consume(_), P) : (e.consume(_), w);
|
|
@@ -12189,69 +12191,69 @@ function im(e, t, a) {
|
|
|
12189
12191
|
};
|
|
12190
12192
|
let c = t.tokenize.call(o, s);
|
|
12191
12193
|
return t.resolveAll && r.push(t), o;
|
|
12192
|
-
function d(
|
|
12193
|
-
return i = rt(i,
|
|
12194
|
+
function d(N) {
|
|
12195
|
+
return i = rt(i, N), v(), i[i.length - 1] !== null ? [] : (k(t, 0), o.events = Nr(r, o.events, o), o.events);
|
|
12194
12196
|
}
|
|
12195
|
-
function h(
|
|
12196
|
-
return sm(f(
|
|
12197
|
+
function h(N, P) {
|
|
12198
|
+
return sm(f(N), P);
|
|
12197
12199
|
}
|
|
12198
|
-
function f(
|
|
12199
|
-
return um(i,
|
|
12200
|
+
function f(N) {
|
|
12201
|
+
return um(i, N);
|
|
12200
12202
|
}
|
|
12201
12203
|
function y() {
|
|
12202
12204
|
const {
|
|
12203
|
-
_bufferIndex:
|
|
12205
|
+
_bufferIndex: N,
|
|
12204
12206
|
_index: P,
|
|
12205
12207
|
line: O,
|
|
12206
12208
|
column: w,
|
|
12207
12209
|
offset: T
|
|
12208
12210
|
} = l;
|
|
12209
12211
|
return {
|
|
12210
|
-
_bufferIndex:
|
|
12212
|
+
_bufferIndex: N,
|
|
12211
12213
|
_index: P,
|
|
12212
12214
|
line: O,
|
|
12213
12215
|
column: w,
|
|
12214
12216
|
offset: T
|
|
12215
12217
|
};
|
|
12216
12218
|
}
|
|
12217
|
-
function E(
|
|
12218
|
-
n[
|
|
12219
|
+
function E(N) {
|
|
12220
|
+
n[N.line] = N.column, I();
|
|
12219
12221
|
}
|
|
12220
12222
|
function v() {
|
|
12221
|
-
let
|
|
12223
|
+
let N;
|
|
12222
12224
|
for (; l._index < i.length; ) {
|
|
12223
12225
|
const P = i[l._index];
|
|
12224
12226
|
if (typeof P == "string")
|
|
12225
|
-
for (
|
|
12227
|
+
for (N = l._index, l._bufferIndex < 0 && (l._bufferIndex = 0); l._index === N && l._bufferIndex < P.length; )
|
|
12226
12228
|
g(P.charCodeAt(l._bufferIndex));
|
|
12227
12229
|
else
|
|
12228
12230
|
g(P);
|
|
12229
12231
|
}
|
|
12230
12232
|
}
|
|
12231
|
-
function g(
|
|
12232
|
-
c = c(
|
|
12233
|
+
function g(N) {
|
|
12234
|
+
c = c(N);
|
|
12233
12235
|
}
|
|
12234
|
-
function m(
|
|
12235
|
-
ce(
|
|
12236
|
+
function m(N) {
|
|
12237
|
+
ce(N) ? (l.line++, l.column = 1, l.offset += N === -3 ? 2 : 1, I()) : N !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
12236
12238
|
// strings.
|
|
12237
12239
|
/** @type {string} */
|
|
12238
|
-
i[l._index].length && (l._bufferIndex = -1, l._index++)), o.previous =
|
|
12240
|
+
i[l._index].length && (l._bufferIndex = -1, l._index++)), o.previous = N;
|
|
12239
12241
|
}
|
|
12240
|
-
function b(
|
|
12242
|
+
function b(N, P) {
|
|
12241
12243
|
const O = P || {};
|
|
12242
|
-
return O.type =
|
|
12244
|
+
return O.type = N, O.start = y(), o.events.push(["enter", O, o]), u.push(O), O;
|
|
12243
12245
|
}
|
|
12244
|
-
function x(
|
|
12246
|
+
function x(N) {
|
|
12245
12247
|
const P = u.pop();
|
|
12246
12248
|
return P.end = y(), o.events.push(["exit", P, o]), P;
|
|
12247
12249
|
}
|
|
12248
|
-
function C(
|
|
12249
|
-
k(
|
|
12250
|
+
function C(N, P) {
|
|
12251
|
+
k(N, P.from);
|
|
12250
12252
|
}
|
|
12251
|
-
function S(
|
|
12253
|
+
function S(N, P) {
|
|
12252
12254
|
P.restore();
|
|
12253
12255
|
}
|
|
12254
|
-
function L(
|
|
12256
|
+
function L(N, P) {
|
|
12255
12257
|
return O;
|
|
12256
12258
|
function O(w, T, M) {
|
|
12257
12259
|
let q, H, F, _;
|
|
@@ -12295,27 +12297,27 @@ function im(e, t, a) {
|
|
|
12295
12297
|
}
|
|
12296
12298
|
}
|
|
12297
12299
|
function $(J) {
|
|
12298
|
-
return
|
|
12300
|
+
return N(F, _), T;
|
|
12299
12301
|
}
|
|
12300
12302
|
function K(J) {
|
|
12301
12303
|
return _.restore(), ++H < q.length ? D(q[H]) : M;
|
|
12302
12304
|
}
|
|
12303
12305
|
}
|
|
12304
12306
|
}
|
|
12305
|
-
function k(
|
|
12306
|
-
|
|
12307
|
+
function k(N, P) {
|
|
12308
|
+
N.resolveAll && !r.includes(N) && r.push(N), N.resolve && vt(o.events, P, o.events.length - P, N.resolve(o.events.slice(P), o)), N.resolveTo && (o.events = N.resolveTo(o.events, o));
|
|
12307
12309
|
}
|
|
12308
12310
|
function A() {
|
|
12309
|
-
const
|
|
12311
|
+
const N = y(), P = o.previous, O = o.currentConstruct, w = o.events.length, T = Array.from(u);
|
|
12310
12312
|
return {
|
|
12311
12313
|
from: w,
|
|
12312
12314
|
restore: M
|
|
12313
12315
|
};
|
|
12314
12316
|
function M() {
|
|
12315
|
-
l =
|
|
12317
|
+
l = N, o.previous = P, o.currentConstruct = O, o.events.length = w, u = T, I();
|
|
12316
12318
|
}
|
|
12317
12319
|
}
|
|
12318
|
-
function
|
|
12320
|
+
function I() {
|
|
12319
12321
|
l.line in n && l.column < 2 && (l.column = n[l.line], l.offset += n[l.line] - 1);
|
|
12320
12322
|
}
|
|
12321
12323
|
}
|
|
@@ -12507,7 +12509,7 @@ function mm(e) {
|
|
|
12507
12509
|
autolinkEmail: de,
|
|
12508
12510
|
autolinkProtocol: le,
|
|
12509
12511
|
blockQuote: s(),
|
|
12510
|
-
characterEscapeValue:
|
|
12512
|
+
characterEscapeValue: I,
|
|
12511
12513
|
characterReferenceMarkerHexadecimal: K,
|
|
12512
12514
|
characterReferenceMarkerNumeric: K,
|
|
12513
12515
|
characterReferenceValue: J,
|
|
@@ -12516,11 +12518,11 @@ function mm(e) {
|
|
|
12516
12518
|
codeFencedFence: E,
|
|
12517
12519
|
codeFencedFenceInfo: f,
|
|
12518
12520
|
codeFencedFenceMeta: y,
|
|
12519
|
-
codeFlowValue:
|
|
12521
|
+
codeFlowValue: I,
|
|
12520
12522
|
codeIndented: s(g),
|
|
12521
12523
|
codeText: s(T),
|
|
12522
|
-
codeTextData:
|
|
12523
|
-
data:
|
|
12524
|
+
codeTextData: I,
|
|
12525
|
+
data: I,
|
|
12524
12526
|
definition: s(),
|
|
12525
12527
|
definitionDestinationString: x,
|
|
12526
12528
|
definitionLabelString: m,
|
|
@@ -12529,13 +12531,13 @@ function mm(e) {
|
|
|
12529
12531
|
hardBreakEscape: s(P),
|
|
12530
12532
|
hardBreakTrailing: s(P),
|
|
12531
12533
|
htmlFlow: s(O),
|
|
12532
|
-
htmlFlowData:
|
|
12534
|
+
htmlFlowData: I,
|
|
12533
12535
|
htmlText: s(w),
|
|
12534
|
-
htmlTextData:
|
|
12536
|
+
htmlTextData: I,
|
|
12535
12537
|
image: s(q),
|
|
12536
12538
|
label: F,
|
|
12537
12539
|
labelText: H,
|
|
12538
|
-
lineEnding:
|
|
12540
|
+
lineEnding: N,
|
|
12539
12541
|
link: s(M),
|
|
12540
12542
|
listItem: s(),
|
|
12541
12543
|
listOrdered: s(),
|
|
@@ -12758,18 +12760,18 @@ function mm(e) {
|
|
|
12758
12760
|
end: void 0
|
|
12759
12761
|
}, me.push(Ce)), this.stack.push(Ce);
|
|
12760
12762
|
}
|
|
12761
|
-
function
|
|
12763
|
+
function I(X) {
|
|
12762
12764
|
const ne = this.stack.pop();
|
|
12763
12765
|
ne.value += this.sliceSerialize(X), ne.position.end = kt(X.end);
|
|
12764
12766
|
}
|
|
12765
|
-
function
|
|
12767
|
+
function N(X) {
|
|
12766
12768
|
const ne = this.stack[this.stack.length - 1];
|
|
12767
12769
|
if (this.data.atHardBreak) {
|
|
12768
12770
|
const me = ne.children[ne.children.length - 1];
|
|
12769
12771
|
me.position.end = kt(X.end), this.data.atHardBreak = void 0;
|
|
12770
12772
|
return;
|
|
12771
12773
|
}
|
|
12772
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ne.type) && (A.call(this, X),
|
|
12774
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ne.type) && (A.call(this, X), I.call(this, X));
|
|
12773
12775
|
}
|
|
12774
12776
|
function P() {
|
|
12775
12777
|
this.data.atHardBreak = !0;
|
|
@@ -12849,12 +12851,12 @@ function mm(e) {
|
|
|
12849
12851
|
ne.position.end = kt(X.end);
|
|
12850
12852
|
}
|
|
12851
12853
|
function le(X) {
|
|
12852
|
-
|
|
12854
|
+
I.call(this, X);
|
|
12853
12855
|
const ne = this.stack[this.stack.length - 1];
|
|
12854
12856
|
ne.url = this.sliceSerialize(X);
|
|
12855
12857
|
}
|
|
12856
12858
|
function de(X) {
|
|
12857
|
-
|
|
12859
|
+
I.call(this, X);
|
|
12858
12860
|
const ne = this.stack[this.stack.length - 1];
|
|
12859
12861
|
ne.url = "mailto:" + this.sliceSerialize(X);
|
|
12860
12862
|
}
|
|
@@ -22089,40 +22091,40 @@ function qr(e, t) {
|
|
|
22089
22091
|
break;
|
|
22090
22092
|
k += String.fromCharCode(O), C === "named" && u1.includes(k) && (S = k, L = Ka(k));
|
|
22091
22093
|
}
|
|
22092
|
-
let
|
|
22093
|
-
if (
|
|
22094
|
+
let I = e.charCodeAt(x) === 59;
|
|
22095
|
+
if (I) {
|
|
22094
22096
|
x++;
|
|
22095
22097
|
const O = C === "named" ? Ka(k) : !1;
|
|
22096
22098
|
O && (S = k, L = O);
|
|
22097
22099
|
}
|
|
22098
|
-
let
|
|
22099
|
-
if (!(!
|
|
22100
|
-
C !== "named" && E(4,
|
|
22100
|
+
let N = 1 + x - m, P = "";
|
|
22101
|
+
if (!(!I && a.nonTerminated === !1)) if (!k)
|
|
22102
|
+
C !== "named" && E(4, N);
|
|
22101
22103
|
else if (C === "named") {
|
|
22102
|
-
if (
|
|
22104
|
+
if (I && !L)
|
|
22103
22105
|
E(5, 1);
|
|
22104
|
-
else if (S !== k && (x = b + S.length,
|
|
22106
|
+
else if (S !== k && (x = b + S.length, N = 1 + x - b, I = !1), !I) {
|
|
22105
22107
|
const O = S ? 1 : 3;
|
|
22106
22108
|
if (a.attribute) {
|
|
22107
22109
|
const w = e.charCodeAt(x);
|
|
22108
|
-
w === 61 ? (E(O,
|
|
22110
|
+
w === 61 ? (E(O, N), L = "") : Lu(w) ? L = "" : E(O, N);
|
|
22109
22111
|
} else
|
|
22110
|
-
E(O,
|
|
22112
|
+
E(O, N);
|
|
22111
22113
|
}
|
|
22112
22114
|
P = L;
|
|
22113
22115
|
} else {
|
|
22114
|
-
|
|
22116
|
+
I || E(2, N);
|
|
22115
22117
|
let O = Number.parseInt(
|
|
22116
22118
|
k,
|
|
22117
22119
|
C === "hexadecimal" ? 16 : 10
|
|
22118
22120
|
);
|
|
22119
22121
|
if (d1(O))
|
|
22120
|
-
E(7,
|
|
22122
|
+
E(7, N), P = "�";
|
|
22121
22123
|
else if (O in Iu)
|
|
22122
|
-
E(6,
|
|
22124
|
+
E(6, N), P = Iu[O];
|
|
22123
22125
|
else {
|
|
22124
22126
|
let w = "";
|
|
22125
|
-
f1(O) && E(6,
|
|
22127
|
+
f1(O) && E(6, N), O > 65535 && (O -= 65536, w += String.fromCharCode(
|
|
22126
22128
|
O >>> 10 | 55296
|
|
22127
22129
|
), O = 56320 | O & 1023), P = w + String.fromCharCode(O);
|
|
22128
22130
|
}
|
|
@@ -22462,19 +22464,19 @@ function Vr(e, t, a, l, n, r, i, u, s, o, c, d, h, f, y) {
|
|
|
22462
22464
|
return T === 61 ? (e.enter(o), e.consume(T), e.exit(o), k) : (e.exit(r), m(T));
|
|
22463
22465
|
}
|
|
22464
22466
|
function k(T) {
|
|
22465
|
-
return T === null || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || y && ce(T) ? a(T) : T === 34 || T === 39 ? (e.enter(c), e.enter(h), e.consume(T), e.exit(h), v = T,
|
|
22467
|
+
return T === null || T === 60 || T === 61 || T === 62 || T === 96 || T === 125 || y && ce(T) ? a(T) : T === 34 || T === 39 ? (e.enter(c), e.enter(h), e.consume(T), e.exit(h), v = T, I) : y && we(T) ? _e(e, k, "whitespace")(T) : !y && Re(T) ? St(e, k)(T) : (e.enter(d), e.enter(f), e.consume(T), v = void 0, A);
|
|
22466
22468
|
}
|
|
22467
22469
|
function A(T) {
|
|
22468
22470
|
return T === null || T === 34 || T === 39 || T === 60 || T === 61 || T === 62 || T === 96 ? a(T) : T === 125 || Re(T) ? (e.exit(f), e.exit(d), e.exit(r), m(T)) : (e.consume(T), A);
|
|
22469
22471
|
}
|
|
22470
|
-
function N(T) {
|
|
22471
|
-
return T === v ? (e.enter(h), e.consume(T), e.exit(h), e.exit(c), e.exit(r), O) : (e.enter(d), I(T));
|
|
22472
|
-
}
|
|
22473
22472
|
function I(T) {
|
|
22474
|
-
return T === v ? (e.
|
|
22473
|
+
return T === v ? (e.enter(h), e.consume(T), e.exit(h), e.exit(c), e.exit(r), O) : (e.enter(d), N(T));
|
|
22474
|
+
}
|
|
22475
|
+
function N(T) {
|
|
22476
|
+
return T === v ? (e.exit(d), I(T)) : T === null ? a(T) : ce(T) ? y ? a(T) : St(e, N)(T) : (e.enter(f), e.consume(T), P);
|
|
22475
22477
|
}
|
|
22476
22478
|
function P(T) {
|
|
22477
|
-
return T === v || T === null || ce(T) ? (e.exit(f),
|
|
22479
|
+
return T === v || T === null || ce(T) ? (e.exit(f), N(T)) : (e.consume(T), P);
|
|
22478
22480
|
}
|
|
22479
22481
|
function O(T) {
|
|
22480
22482
|
return T === 125 || Re(T) ? m(T) : w(T);
|
|
@@ -22571,29 +22573,29 @@ function B1(e, t, a) {
|
|
|
22571
22573
|
}
|
|
22572
22574
|
function g(A) {
|
|
22573
22575
|
if (A === null) {
|
|
22574
|
-
const
|
|
22575
|
-
return l.parser.lazy[
|
|
22576
|
+
const I = e.exit("chunkDocument");
|
|
22577
|
+
return l.parser.lazy[I.start.line] = !1, S(A);
|
|
22576
22578
|
}
|
|
22577
22579
|
return ce(A) ? e.check(Tl, x, C)(A) : (e.consume(A), g);
|
|
22578
22580
|
}
|
|
22579
22581
|
function m(A) {
|
|
22580
|
-
const
|
|
22582
|
+
const I = e.enter("chunkDocument", {
|
|
22581
22583
|
contentType: "document",
|
|
22582
22584
|
previous: u
|
|
22583
22585
|
});
|
|
22584
|
-
return u && (u.next =
|
|
22586
|
+
return u && (u.next = I), u = I, g(A);
|
|
22585
22587
|
}
|
|
22586
22588
|
function b(A) {
|
|
22587
22589
|
return e.enter("directiveContainerContent"), E(A);
|
|
22588
22590
|
}
|
|
22589
22591
|
function x(A) {
|
|
22590
22592
|
e.consume(A);
|
|
22591
|
-
const
|
|
22592
|
-
return l.parser.lazy[
|
|
22593
|
+
const I = e.exit("chunkDocument");
|
|
22594
|
+
return l.parser.lazy[I.start.line] = !1, E;
|
|
22593
22595
|
}
|
|
22594
22596
|
function C(A) {
|
|
22595
|
-
const
|
|
22596
|
-
return l.parser.lazy[
|
|
22597
|
+
const I = e.exit("chunkDocument");
|
|
22598
|
+
return l.parser.lazy[I.start.line] = !1, S(A);
|
|
22597
22599
|
}
|
|
22598
22600
|
function S(A) {
|
|
22599
22601
|
return e.exit("directiveContainerContent"), L(A);
|
|
@@ -22601,17 +22603,17 @@ function B1(e, t, a) {
|
|
|
22601
22603
|
function L(A) {
|
|
22602
22604
|
return e.exit("directiveContainer"), t(A);
|
|
22603
22605
|
}
|
|
22604
|
-
function k(A,
|
|
22606
|
+
function k(A, I, N) {
|
|
22605
22607
|
let P = 0;
|
|
22606
22608
|
return _e(A, O, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
22607
22609
|
function O(M) {
|
|
22608
22610
|
return A.enter("directiveContainerFence"), A.enter("directiveContainerSequence"), w(M);
|
|
22609
22611
|
}
|
|
22610
22612
|
function w(M) {
|
|
22611
|
-
return M === 58 ? (A.consume(M), P++, w) : P < i ?
|
|
22613
|
+
return M === 58 ? (A.consume(M), P++, w) : P < i ? N(M) : (A.exit("directiveContainerSequence"), _e(A, T, "whitespace")(M));
|
|
22612
22614
|
}
|
|
22613
22615
|
function T(M) {
|
|
22614
|
-
return M === null || ce(M) ? (A.exit("directiveContainerFence"),
|
|
22616
|
+
return M === null || ce(M) ? (A.exit("directiveContainerFence"), I(M)) : N(M);
|
|
22615
22617
|
}
|
|
22616
22618
|
}
|
|
22617
22619
|
}
|
|
@@ -22764,9 +22766,9 @@ const Wn = {
|
|
|
22764
22766
|
}, []), y = ue(() => {
|
|
22765
22767
|
f(), u(!0);
|
|
22766
22768
|
}, [f]), E = ue(
|
|
22767
|
-
(
|
|
22768
|
-
if (f(),
|
|
22769
|
-
r(
|
|
22769
|
+
(N) => {
|
|
22770
|
+
if (f(), N) {
|
|
22771
|
+
r(N), u(!1), c.current = window.requestAnimationFrame(() => {
|
|
22770
22772
|
c.current = null, u(!0);
|
|
22771
22773
|
});
|
|
22772
22774
|
return;
|
|
@@ -22786,13 +22788,13 @@ const Wn = {
|
|
|
22786
22788
|
return re(() => {
|
|
22787
22789
|
g(0), x(!1), A("bottom");
|
|
22788
22790
|
}, [n?.key, n?.type]), re(() => {
|
|
22789
|
-
const
|
|
22790
|
-
if (!w || P.has(w) ||
|
|
22791
|
+
const N = C.current, P = /* @__PURE__ */ new Set(), O = (w) => {
|
|
22792
|
+
if (!w || P.has(w) || N.has(w)) return;
|
|
22791
22793
|
P.add(w);
|
|
22792
22794
|
const T = new window.Image();
|
|
22793
22795
|
T.decoding = "async", T.onload = () => {
|
|
22794
22796
|
const M = T.naturalWidth || T.width || 0, q = T.naturalHeight || T.height || 0;
|
|
22795
|
-
M > 0 && q > 0 &&
|
|
22797
|
+
M > 0 && q > 0 && N.set(w, `${M} / ${q}`);
|
|
22796
22798
|
}, T.src = w;
|
|
22797
22799
|
};
|
|
22798
22800
|
e.forEach((w) => {
|
|
@@ -22817,7 +22819,7 @@ const Wn = {
|
|
|
22817
22819
|
L(null);
|
|
22818
22820
|
return;
|
|
22819
22821
|
}
|
|
22820
|
-
const
|
|
22822
|
+
const N = requestAnimationFrame(() => {
|
|
22821
22823
|
const P = document.querySelector(".rte-steps-tooltip"), O = document.querySelector(".rte-steps-tooltip-title"), w = document.querySelector(
|
|
22822
22824
|
".rte-steps-tooltip-step-badge"
|
|
22823
22825
|
);
|
|
@@ -22833,7 +22835,7 @@ const Wn = {
|
|
|
22833
22835
|
A(ye ? "top" : "bottom");
|
|
22834
22836
|
}
|
|
22835
22837
|
});
|
|
22836
|
-
return () => cancelAnimationFrame(
|
|
22838
|
+
return () => cancelAnimationFrame(N);
|
|
22837
22839
|
}, [
|
|
22838
22840
|
i,
|
|
22839
22841
|
n?.key,
|
|
@@ -22842,14 +22844,14 @@ const Wn = {
|
|
|
22842
22844
|
n?.anchorEl
|
|
22843
22845
|
]), re(() => {
|
|
22844
22846
|
if (!a) return;
|
|
22845
|
-
const
|
|
22847
|
+
const N = (P) => {
|
|
22846
22848
|
P.key === "Escape" && E(null);
|
|
22847
22849
|
};
|
|
22848
|
-
return window.addEventListener("keydown",
|
|
22850
|
+
return window.addEventListener("keydown", N, !0), () => window.removeEventListener("keydown", N, !0);
|
|
22849
22851
|
}, [a, E]), { tooltipPortal: n?.anchorEl ? (() => {
|
|
22850
22852
|
if (!document.body.contains(n.anchorEl))
|
|
22851
22853
|
return null;
|
|
22852
|
-
let
|
|
22854
|
+
let N = "", P = {
|
|
22853
22855
|
background: "#fff",
|
|
22854
22856
|
padding: 12,
|
|
22855
22857
|
borderRadius: 8,
|
|
@@ -22988,37 +22990,37 @@ const Wn = {
|
|
|
22988
22990
|
if (n.type === "upload") {
|
|
22989
22991
|
const q = n.anchorEl.dataset.tooltip, H = w(q);
|
|
22990
22992
|
if (H)
|
|
22991
|
-
|
|
22993
|
+
N = H.node, O = H.steps;
|
|
22992
22994
|
else {
|
|
22993
22995
|
const F = e.find(
|
|
22994
22996
|
(z) => z.type === "upload" && z.key === n.key
|
|
22995
22997
|
), _ = w(
|
|
22996
22998
|
typeof F?.tooltip == "string" ? F?.tooltip : F?.tooltip ? JSON.stringify(F.tooltip) : ""
|
|
22997
22999
|
);
|
|
22998
|
-
|
|
23000
|
+
N = _?.node || "", O = _?.steps || !1;
|
|
22999
23001
|
}
|
|
23000
23002
|
} else if (n.type === "tag") {
|
|
23001
23003
|
const q = n.anchorEl.dataset.tooltip, H = w(q);
|
|
23002
|
-
|
|
23004
|
+
N = H?.node || "", O = H?.steps || !1;
|
|
23003
23005
|
} else if (n.type === "upload-label")
|
|
23004
|
-
|
|
23006
|
+
N = n.anchorEl.querySelector(
|
|
23005
23007
|
".upload-label[data-file-name]"
|
|
23006
23008
|
)?.dataset.fileName || n.anchorEl.dataset.fileName || "";
|
|
23007
23009
|
else if (n.type === "variable") {
|
|
23008
23010
|
const q = n.anchorEl.dataset.tooltip, H = w(q);
|
|
23009
|
-
|
|
23011
|
+
N = H?.node || "", O = H?.steps || !1;
|
|
23010
23012
|
} else if (n.type === "upload-preview") {
|
|
23011
23013
|
const q = t[n.key];
|
|
23012
23014
|
let H = null, F = !1;
|
|
23013
|
-
typeof q == "string" ? H = q : q instanceof File && (q.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(q.name || "")) && (H = URL.createObjectURL(q), F = !0), H ? (
|
|
23015
|
+
typeof q == "string" ? H = q : q instanceof File && (q.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(q.name || "")) && (H = URL.createObjectURL(q), F = !0), H ? (N = /* @__PURE__ */ V("div", { className: "rte-upload-preview", children: /* @__PURE__ */ V("img", { className: "rte-upload-preview-img", src: H, alt: "preview" }) }), P = {
|
|
23014
23016
|
background: "#fff",
|
|
23015
23017
|
padding: 0,
|
|
23016
23018
|
borderRadius: 4,
|
|
23017
23019
|
boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
|
|
23018
|
-
}, F && setTimeout(() => URL.revokeObjectURL(H), 1e3)) :
|
|
23020
|
+
}, F && setTimeout(() => URL.revokeObjectURL(H), 1e3)) : N = "";
|
|
23019
23021
|
} else if (n.type === "video-preview") {
|
|
23020
23022
|
const q = l?.[n.key];
|
|
23021
|
-
q?.status === "success" && q.videoUrl ? (
|
|
23023
|
+
q?.status === "success" && q.videoUrl ? (N = /* @__PURE__ */ V("div", { className: "rte-video-preview", children: /* @__PURE__ */ V(
|
|
23022
23024
|
"video",
|
|
23023
23025
|
{
|
|
23024
23026
|
src: q.videoUrl,
|
|
@@ -23033,9 +23035,9 @@ const Wn = {
|
|
|
23033
23035
|
padding: 0,
|
|
23034
23036
|
borderRadius: 8,
|
|
23035
23037
|
boxShadow: "0 2px 12px 0 rgba(153, 153, 153, 0.25)"
|
|
23036
|
-
}) :
|
|
23038
|
+
}) : N = "";
|
|
23037
23039
|
}
|
|
23038
|
-
if (!
|
|
23040
|
+
if (!N) return null;
|
|
23039
23041
|
O && (P = {
|
|
23040
23042
|
background: "#fff",
|
|
23041
23043
|
padding: 0,
|
|
@@ -23067,9 +23069,9 @@ const Wn = {
|
|
|
23067
23069
|
onClick: (q) => {
|
|
23068
23070
|
q.preventDefault(), q.stopPropagation();
|
|
23069
23071
|
},
|
|
23070
|
-
children:
|
|
23072
|
+
children: N
|
|
23071
23073
|
}
|
|
23072
|
-
) : O ?
|
|
23074
|
+
) : O ? N : /* @__PURE__ */ V(
|
|
23073
23075
|
"div",
|
|
23074
23076
|
{
|
|
23075
23077
|
style: { maxWidth: "200px", fontSize: "12px", color: T },
|
|
@@ -23080,7 +23082,7 @@ const Wn = {
|
|
|
23080
23082
|
onClick: (q) => {
|
|
23081
23083
|
q.preventDefault(), q.stopPropagation();
|
|
23082
23084
|
},
|
|
23083
|
-
children:
|
|
23085
|
+
children: N
|
|
23084
23086
|
}
|
|
23085
23087
|
),
|
|
23086
23088
|
open: i,
|
|
@@ -23146,14 +23148,14 @@ const Bo = (e, t) => {
|
|
|
23146
23148
|
if (typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
|
|
23147
23149
|
const m = ut(e.tooltip), b = m ? ` data-tooltip="${pe(m)}"` : "", x = e.minCount || 1, C = e.maxCount || 3;
|
|
23148
23150
|
let S = 0;
|
|
23149
|
-
for (let
|
|
23150
|
-
const
|
|
23151
|
-
t[
|
|
23151
|
+
for (let I = 0; I < C; I++) {
|
|
23152
|
+
const N = `${e.key}-${I}`;
|
|
23153
|
+
t[N] != null && (S += 1);
|
|
23152
23154
|
}
|
|
23153
23155
|
const L = Math.min(C, Math.max(x, S + (S < C ? 1 : 0)));
|
|
23154
23156
|
let k = "";
|
|
23155
|
-
for (let
|
|
23156
|
-
const
|
|
23157
|
+
for (let I = 0; I < L; I++) {
|
|
23158
|
+
const N = `${e.key}-${I}`, { hasFile: P, fileName: O, uploadIcon: w } = mr(t[N], e.text), T = P ? "" : "hidden", M = m && !P ? "" : "hidden", q = P ? "has-file" : "", H = P && O ? ` data-file-name="${O.replace(/"/g, """)}"` : "", F = ` data-batch-key="${e.key}"`, _ = ` data-batch-index="${I}"`, z = `<span contenteditable="false" data-type="upload" data-key="${N}"${F}${_}${b} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${q}"><span class="upload-icon">${w}</span><span class="upload-label"${H}>${O || e.text}</span>${m ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${M}" data-upload-key="${N}" data-tooltip="${pe(m)}" ></i>` : ""}<span class="file-remove-btn ${T}" title="移除文件">×</span></span></span>`;
|
|
23157
23159
|
k += z;
|
|
23158
23160
|
}
|
|
23159
23161
|
return e.required ? `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch">${Mu}<span class="rte-upload-batch-chips">${k}${a}</span></span>` : `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${k}${a}</span>`;
|
|
@@ -29135,7 +29137,7 @@ function Oy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29135
29137
|
const v = t[E], g = E + 1 < t.length ? t[E + 1] : null;
|
|
29136
29138
|
let m = !1;
|
|
29137
29139
|
if (v.type === "text" && (v.text?.includes("icon-bitian") || v.className === "rte-text-required") && g) {
|
|
29138
|
-
const A = g.type === "upload" && g.exclusionGroup === "fileInput" && v.exclusionGroup === "fileInput" && v.exclusionGroup === g.exclusionGroup,
|
|
29140
|
+
const A = g.type === "upload" && g.exclusionGroup === "fileInput" && v.exclusionGroup === "fileInput" && v.exclusionGroup === g.exclusionGroup, I = g.type === "variable" && g.exclusionGroup === "textInput" && v.exclusionGroup === "textInput" && v.exclusionGroup === g.exclusionGroup;
|
|
29139
29141
|
if (A) {
|
|
29140
29142
|
const P = `<span ${v.exclusionGroup ? `data-group="${v.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
|
|
29141
29143
|
let w = "";
|
|
@@ -29144,7 +29146,7 @@ function Oy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29144
29146
|
y.push(P + w + M + O + q), E += 2;
|
|
29145
29147
|
continue;
|
|
29146
29148
|
}
|
|
29147
|
-
if (
|
|
29149
|
+
if (I) {
|
|
29148
29150
|
const P = `<span ${v.exclusionGroup ? `data-group="${v.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, O = "</span>";
|
|
29149
29151
|
let w = "";
|
|
29150
29152
|
v.className ? w = `<span class="${v.className}">${v.text ?? ""}</span>` : w = v.text ?? "";
|
|
@@ -29168,23 +29170,23 @@ function Oy(e, t, a, l, n, r = {}, i, u, s, o) {
|
|
|
29168
29170
|
else if (v.type === "markdown" && v.key)
|
|
29169
29171
|
L = gy(v, n);
|
|
29170
29172
|
else if (v.type === "upload" && v.key) {
|
|
29171
|
-
const A = !!g && g.type === "text" && !g.className && !g.exclusionGroup && d(g.text),
|
|
29172
|
-
A && (m = !0), L = Fo(v, a,
|
|
29173
|
+
const A = !!g && g.type === "text" && !g.className && !g.exclusionGroup && d(g.text), I = A ? (g.text ?? "").trim() : "", N = I ? f(I) : "";
|
|
29174
|
+
A && (m = !0), L = Fo(v, a, N);
|
|
29173
29175
|
} else v.type === "select" && v.key ? L = oy(v, n) : v.type === "textarea" && v.key ? L = dy(v, n) : v.type === "richtext" && v.key ? L = fy(v, n) : v.type === "report-module" && v.key ? L = Ey(v, n) : v.type === "markdown-module" && v.key ? L = yy(v, n) : v.type === "datepicker" && v.key ? L = xy(v, n) : v.type === "number-input" && v.key ? L = Ay(v, n) : v.type === "multi-variable" && v.key ? L = Ho(v, n, r, !1) : v.type === "multi-variable-select" && v.key ? L = wy(v, n, r) : v.type === "video-url" && v.key ? L = $o(v, s || {}) : v.type === "video-upload" && v.key ? L = Uo(v, s || {}) : v.type === "searchable-select" && v.key ? L = ky(v, n) : v.type === "cascader" && v.key && (L = Ly(v, n));
|
|
29174
29176
|
const k = C + L + S;
|
|
29175
29177
|
if (v.type === "text" && !v.className && !v.exclusionGroup) {
|
|
29176
29178
|
if (d(v.text) && y.length > 0) {
|
|
29177
|
-
const
|
|
29178
|
-
y[y.length - 1] = `<span class="rte-inline-group">${
|
|
29179
|
+
const I = y[y.length - 1], N = (v.text ?? "").trim();
|
|
29180
|
+
y[y.length - 1] = `<span class="rte-inline-group">${I}${f(N)}</span>`, E++;
|
|
29179
29181
|
continue;
|
|
29180
29182
|
}
|
|
29181
29183
|
const A = h(v.text);
|
|
29182
29184
|
if (A && y.length > 0) {
|
|
29183
|
-
const
|
|
29184
|
-
y[y.length - 1] = `<span class="rte-inline-group">${
|
|
29185
|
-
const
|
|
29186
|
-
if (
|
|
29187
|
-
const P =
|
|
29185
|
+
const I = y[y.length - 1];
|
|
29186
|
+
y[y.length - 1] = `<span class="rte-inline-group">${I}${f(A.punct)}</span>`;
|
|
29187
|
+
const N = A.rest;
|
|
29188
|
+
if (N) {
|
|
29189
|
+
const P = N.replace(/\n/g, "<br/>");
|
|
29188
29190
|
y.push(`<span data-type="text" contenteditable="false">${P}</span>`);
|
|
29189
29191
|
}
|
|
29190
29192
|
E++;
|
|
@@ -29323,11 +29325,11 @@ function Ry(e, t, a, l, n = {}, r, i, u, s, o, c, d, h) {
|
|
|
29323
29325
|
}
|
|
29324
29326
|
});
|
|
29325
29327
|
}
|
|
29326
|
-
const
|
|
29327
|
-
if (
|
|
29328
|
+
const N = e.current.__tempVariableValues;
|
|
29329
|
+
if (N ? (S = N, setTimeout(() => {
|
|
29328
29330
|
if (e.current) {
|
|
29329
29331
|
const P = e.current;
|
|
29330
|
-
P.__tempVariableValues ===
|
|
29332
|
+
P.__tempVariableValues === N && delete P.__tempVariableValues;
|
|
29331
29333
|
}
|
|
29332
29334
|
}, 100)) : C || (e.current.querySelectorAll('[data-type="variable"]').forEach((F) => {
|
|
29333
29335
|
const _ = F.dataset.key;
|
|
@@ -29754,15 +29756,15 @@ function qy(e, t) {
|
|
|
29754
29756
|
return;
|
|
29755
29757
|
const A = e.current.querySelectorAll('[data-type="variable"]');
|
|
29756
29758
|
if (A.length > 0) {
|
|
29757
|
-
let
|
|
29758
|
-
for (const
|
|
29759
|
-
if (
|
|
29760
|
-
|
|
29759
|
+
let I = null;
|
|
29760
|
+
for (const N of Array.from(A))
|
|
29761
|
+
if (N.style.display !== "none") {
|
|
29762
|
+
I = N;
|
|
29761
29763
|
break;
|
|
29762
29764
|
}
|
|
29763
|
-
if (!
|
|
29764
|
-
const
|
|
29765
|
-
|
|
29765
|
+
if (!I && A.length > 0 && (I = A[0]), I) {
|
|
29766
|
+
const N = document.createRange();
|
|
29767
|
+
N.selectNodeContents(I), N.collapse(!1), b.removeAllRanges(), b.addRange(N), I.focus();
|
|
29766
29768
|
} else
|
|
29767
29769
|
b.removeAllRanges();
|
|
29768
29770
|
} else
|
|
@@ -29816,13 +29818,13 @@ function zo() {
|
|
|
29816
29818
|
S[z] = T, H = z;
|
|
29817
29819
|
}
|
|
29818
29820
|
return !q && H && (C = H), H || !q && C;
|
|
29819
|
-
},
|
|
29821
|
+
}, I = function(w, T) {
|
|
29820
29822
|
if (k(w)) return w.clone();
|
|
29821
29823
|
var M = typeof T == "object" ? T : {};
|
|
29822
29824
|
return M.date = w, M.args = arguments, new P(M);
|
|
29823
|
-
},
|
|
29824
|
-
|
|
29825
|
-
return
|
|
29825
|
+
}, N = x;
|
|
29826
|
+
N.l = A, N.i = k, N.w = function(w, T) {
|
|
29827
|
+
return I(w, { locale: T.$L, utc: T.$u, x: T.$x, $offset: T.$offset });
|
|
29826
29828
|
};
|
|
29827
29829
|
var P = function() {
|
|
29828
29830
|
function w(M) {
|
|
@@ -29833,7 +29835,7 @@ function zo() {
|
|
|
29833
29835
|
this.$d = function(q) {
|
|
29834
29836
|
var H = q.date, F = q.utc;
|
|
29835
29837
|
if (H === null) return /* @__PURE__ */ new Date(NaN);
|
|
29836
|
-
if (
|
|
29838
|
+
if (N.u(H)) return /* @__PURE__ */ new Date();
|
|
29837
29839
|
if (H instanceof Date) return new Date(H);
|
|
29838
29840
|
if (typeof H == "string" && !/Z$/i.test(H)) {
|
|
29839
29841
|
var _ = H.match(v);
|
|
@@ -29848,28 +29850,28 @@ function zo() {
|
|
|
29848
29850
|
var M = this.$d;
|
|
29849
29851
|
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
|
29850
29852
|
}, T.$utils = function() {
|
|
29851
|
-
return
|
|
29853
|
+
return N;
|
|
29852
29854
|
}, T.isValid = function() {
|
|
29853
29855
|
return this.$d.toString() !== E;
|
|
29854
29856
|
}, T.isSame = function(M, q) {
|
|
29855
|
-
var H =
|
|
29857
|
+
var H = I(M);
|
|
29856
29858
|
return this.startOf(q) <= H && H <= this.endOf(q);
|
|
29857
29859
|
}, T.isAfter = function(M, q) {
|
|
29858
|
-
return
|
|
29860
|
+
return I(M) < this.startOf(q);
|
|
29859
29861
|
}, T.isBefore = function(M, q) {
|
|
29860
|
-
return this.endOf(q) <
|
|
29862
|
+
return this.endOf(q) < I(M);
|
|
29861
29863
|
}, T.$g = function(M, q, H) {
|
|
29862
|
-
return
|
|
29864
|
+
return N.u(M) ? this[q] : this.set(H, M);
|
|
29863
29865
|
}, T.unix = function() {
|
|
29864
29866
|
return Math.floor(this.valueOf() / 1e3);
|
|
29865
29867
|
}, T.valueOf = function() {
|
|
29866
29868
|
return this.$d.getTime();
|
|
29867
29869
|
}, T.startOf = function(M, q) {
|
|
29868
|
-
var H = this, F = !!
|
|
29869
|
-
var ye =
|
|
29870
|
+
var H = this, F = !!N.u(q) || q, _ = N.p(M), z = function(de, ve) {
|
|
29871
|
+
var ye = N.w(H.$u ? Date.UTC(H.$y, ve, de) : new Date(H.$y, ve, de), H);
|
|
29870
29872
|
return F ? ye : ye.endOf(o);
|
|
29871
29873
|
}, W = function(de, ve) {
|
|
29872
|
-
return
|
|
29874
|
+
return N.w(H.toDate()[de].apply(H.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), H);
|
|
29873
29875
|
}, D = this.$W, $ = this.$M, K = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
|
29874
29876
|
switch (_) {
|
|
29875
29877
|
case f:
|
|
@@ -29894,7 +29896,7 @@ function zo() {
|
|
|
29894
29896
|
}, T.endOf = function(M) {
|
|
29895
29897
|
return this.startOf(M, !1);
|
|
29896
29898
|
}, T.$set = function(M, q) {
|
|
29897
|
-
var H, F =
|
|
29899
|
+
var H, F = N.p(M), _ = "set" + (this.$u ? "UTC" : ""), z = (H = {}, H[o] = _ + "Date", H[y] = _ + "Date", H[d] = _ + "Month", H[f] = _ + "FullYear", H[s] = _ + "Hours", H[u] = _ + "Minutes", H[i] = _ + "Seconds", H[r] = _ + "Milliseconds", H)[F], W = F === o ? this.$D + (q - this.$W) : q;
|
|
29898
29900
|
if (F === d || F === f) {
|
|
29899
29901
|
var D = this.clone().set(y, 1);
|
|
29900
29902
|
D.$d[z](W), D.init(), this.$d = D.set(y, Math.min(this.$D, D.daysInMonth())).$d;
|
|
@@ -29903,29 +29905,29 @@ function zo() {
|
|
|
29903
29905
|
}, T.set = function(M, q) {
|
|
29904
29906
|
return this.clone().$set(M, q);
|
|
29905
29907
|
}, T.get = function(M) {
|
|
29906
|
-
return this[
|
|
29908
|
+
return this[N.p(M)]();
|
|
29907
29909
|
}, T.add = function(M, q) {
|
|
29908
29910
|
var H, F = this;
|
|
29909
29911
|
M = Number(M);
|
|
29910
|
-
var _ =
|
|
29911
|
-
var K =
|
|
29912
|
-
return
|
|
29912
|
+
var _ = N.p(q), z = function($) {
|
|
29913
|
+
var K = I(F);
|
|
29914
|
+
return N.w(K.date(K.date() + Math.round($ * M)), F);
|
|
29913
29915
|
};
|
|
29914
29916
|
if (_ === d) return this.set(d, this.$M + M);
|
|
29915
29917
|
if (_ === f) return this.set(f, this.$y + M);
|
|
29916
29918
|
if (_ === o) return z(1);
|
|
29917
29919
|
if (_ === c) return z(7);
|
|
29918
29920
|
var W = (H = {}, H[u] = l, H[s] = n, H[i] = a, H)[_] || 1, D = this.$d.getTime() + M * W;
|
|
29919
|
-
return
|
|
29921
|
+
return N.w(D, this);
|
|
29920
29922
|
}, T.subtract = function(M, q) {
|
|
29921
29923
|
return this.add(-1 * M, q);
|
|
29922
29924
|
}, T.format = function(M) {
|
|
29923
29925
|
var q = this, H = this.$locale();
|
|
29924
29926
|
if (!this.isValid()) return H.invalidDate || E;
|
|
29925
|
-
var F = M || "YYYY-MM-DDTHH:mm:ssZ", _ =
|
|
29927
|
+
var F = M || "YYYY-MM-DDTHH:mm:ssZ", _ = N.z(this), z = this.$H, W = this.$m, D = this.$M, $ = H.weekdays, K = H.months, J = H.meridiem, Y = function(ve, ye, je, Me) {
|
|
29926
29928
|
return ve && (ve[ye] || ve(q, F)) || je[ye].slice(0, Me);
|
|
29927
29929
|
}, le = function(ve) {
|
|
29928
|
-
return
|
|
29930
|
+
return N.s(z % 12 || 12, ve, "0");
|
|
29929
29931
|
}, de = J || function(ve, ye, je) {
|
|
29930
29932
|
var Me = ve < 12 ? "AM" : "PM";
|
|
29931
29933
|
return je ? Me.toLowerCase() : Me;
|
|
@@ -29936,11 +29938,11 @@ function zo() {
|
|
|
29936
29938
|
case "YY":
|
|
29937
29939
|
return String(q.$y).slice(-2);
|
|
29938
29940
|
case "YYYY":
|
|
29939
|
-
return
|
|
29941
|
+
return N.s(q.$y, 4, "0");
|
|
29940
29942
|
case "M":
|
|
29941
29943
|
return D + 1;
|
|
29942
29944
|
case "MM":
|
|
29943
|
-
return
|
|
29945
|
+
return N.s(D + 1, 2, "0");
|
|
29944
29946
|
case "MMM":
|
|
29945
29947
|
return Y(H.monthsShort, D, K, 3);
|
|
29946
29948
|
case "MMMM":
|
|
@@ -29948,7 +29950,7 @@ function zo() {
|
|
|
29948
29950
|
case "D":
|
|
29949
29951
|
return q.$D;
|
|
29950
29952
|
case "DD":
|
|
29951
|
-
return
|
|
29953
|
+
return N.s(q.$D, 2, "0");
|
|
29952
29954
|
case "d":
|
|
29953
29955
|
return String(q.$W);
|
|
29954
29956
|
case "dd":
|
|
@@ -29960,7 +29962,7 @@ function zo() {
|
|
|
29960
29962
|
case "H":
|
|
29961
29963
|
return String(z);
|
|
29962
29964
|
case "HH":
|
|
29963
|
-
return
|
|
29965
|
+
return N.s(z, 2, "0");
|
|
29964
29966
|
case "h":
|
|
29965
29967
|
return le(1);
|
|
29966
29968
|
case "hh":
|
|
@@ -29972,13 +29974,13 @@ function zo() {
|
|
|
29972
29974
|
case "m":
|
|
29973
29975
|
return String(W);
|
|
29974
29976
|
case "mm":
|
|
29975
|
-
return
|
|
29977
|
+
return N.s(W, 2, "0");
|
|
29976
29978
|
case "s":
|
|
29977
29979
|
return String(q.$s);
|
|
29978
29980
|
case "ss":
|
|
29979
|
-
return
|
|
29981
|
+
return N.s(q.$s, 2, "0");
|
|
29980
29982
|
case "SSS":
|
|
29981
|
-
return
|
|
29983
|
+
return N.s(q.$ms, 3, "0");
|
|
29982
29984
|
case "Z":
|
|
29983
29985
|
return _;
|
|
29984
29986
|
}
|
|
@@ -29988,8 +29990,8 @@ function zo() {
|
|
|
29988
29990
|
}, T.utcOffset = function() {
|
|
29989
29991
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
29990
29992
|
}, T.diff = function(M, q, H) {
|
|
29991
|
-
var F, _ = this, z =
|
|
29992
|
-
return
|
|
29993
|
+
var F, _ = this, z = N.p(q), W = I(M), D = (W.utcOffset() - this.utcOffset()) * l, $ = this - W, K = function() {
|
|
29994
|
+
return N.m(_, W);
|
|
29993
29995
|
};
|
|
29994
29996
|
switch (z) {
|
|
29995
29997
|
case f:
|
|
@@ -30019,7 +30021,7 @@ function zo() {
|
|
|
30019
30021
|
default:
|
|
30020
30022
|
F = $;
|
|
30021
30023
|
}
|
|
30022
|
-
return H ? F :
|
|
30024
|
+
return H ? F : N.a(F);
|
|
30023
30025
|
}, T.daysInMonth = function() {
|
|
30024
30026
|
return this.endOf(d).$D;
|
|
30025
30027
|
}, T.$locale = function() {
|
|
@@ -30029,7 +30031,7 @@ function zo() {
|
|
|
30029
30031
|
var H = this.clone(), F = A(M, q, !0);
|
|
30030
30032
|
return F && (H.$L = F), H;
|
|
30031
30033
|
}, T.clone = function() {
|
|
30032
|
-
return
|
|
30034
|
+
return N.w(this.$d, this);
|
|
30033
30035
|
}, T.toDate = function() {
|
|
30034
30036
|
return new Date(this.valueOf());
|
|
30035
30037
|
}, T.toJSON = function() {
|
|
@@ -30040,15 +30042,15 @@ function zo() {
|
|
|
30040
30042
|
return this.$d.toUTCString();
|
|
30041
30043
|
}, w;
|
|
30042
30044
|
}(), O = P.prototype;
|
|
30043
|
-
return
|
|
30045
|
+
return I.prototype = O, [["$ms", r], ["$s", i], ["$m", u], ["$H", s], ["$W", o], ["$M", d], ["$y", f], ["$D", y]].forEach(function(w) {
|
|
30044
30046
|
O[w[1]] = function(T) {
|
|
30045
30047
|
return this.$g(T, w[0], w[1]);
|
|
30046
30048
|
};
|
|
30047
|
-
}),
|
|
30048
|
-
return w.$i || (w(T, P,
|
|
30049
|
-
},
|
|
30050
|
-
return
|
|
30051
|
-
},
|
|
30049
|
+
}), I.extend = function(w, T) {
|
|
30050
|
+
return w.$i || (w(T, P, I), w.$i = !0), I;
|
|
30051
|
+
}, I.locale = A, I.isDayjs = k, I.unix = function(w) {
|
|
30052
|
+
return I(1e3 * w);
|
|
30053
|
+
}, I.en = S[C], I.Ls = S, I.p = {}, I;
|
|
30052
30054
|
});
|
|
30053
30055
|
}(_l)), _l.exports;
|
|
30054
30056
|
}
|
|
@@ -30309,8 +30311,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30309
30311
|
onCollapsedChange: L,
|
|
30310
30312
|
collapseTransitionMs: k = 260,
|
|
30311
30313
|
debugTooltipSticky: A = !1,
|
|
30312
|
-
nodeValues:
|
|
30313
|
-
onFilesChange:
|
|
30314
|
+
nodeValues: I,
|
|
30315
|
+
onFilesChange: N,
|
|
30314
30316
|
onFooterFilesChange: P,
|
|
30315
30317
|
showFooterUpload: O = !0,
|
|
30316
30318
|
footerFiles: w,
|
|
@@ -30329,8 +30331,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30329
30331
|
}
|
|
30330
30332
|
const [Me, Bt] = ie({});
|
|
30331
30333
|
re(() => {
|
|
30332
|
-
|
|
30333
|
-
}, [Me,
|
|
30334
|
+
N?.(Me);
|
|
30335
|
+
}, [Me, N]);
|
|
30334
30336
|
const [nt, Et] = ie([]), Jt = Z(!1);
|
|
30335
30337
|
re(() => {
|
|
30336
30338
|
if (!w) return;
|
|
@@ -30477,16 +30479,16 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30477
30479
|
setMarkdownAnalyzeState: pl,
|
|
30478
30480
|
markdownNameAnalyzeState: qt,
|
|
30479
30481
|
setMarkdownNameAnalyzeState: rn,
|
|
30480
|
-
nodeValues:
|
|
30482
|
+
nodeValues: I,
|
|
30481
30483
|
resolvedReportNamesRef: $t
|
|
30482
30484
|
});
|
|
30483
|
-
const ai = Z(
|
|
30484
|
-
if (
|
|
30485
|
+
const ai = Z(I);
|
|
30486
|
+
if (I !== ai.current && (ai.current = I, I)) {
|
|
30485
30487
|
const Q = {};
|
|
30486
30488
|
let se = !1;
|
|
30487
30489
|
e.forEach((oe) => {
|
|
30488
30490
|
if (Ge(oe.type) && oe.key) {
|
|
30489
|
-
const ge =
|
|
30491
|
+
const ge = I[oe.key], be = Array.isArray(ge) ? ge.filter((fe) => fe.trim().length > 0) : ge;
|
|
30490
30492
|
if (Array.isArray(be) && be.length > 0) {
|
|
30491
30493
|
const fe = oe.maxCount ?? 9, Ee = Math.min(be.length + 1, fe);
|
|
30492
30494
|
xt[oe.key] !== Ee && (Q[oe.key] = Ee, se = !0);
|
|
@@ -30597,10 +30599,10 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30597
30599
|
`${dc}::${JSON.stringify(xt)}`,
|
|
30598
30600
|
_
|
|
30599
30601
|
);
|
|
30600
|
-
Ry(Y, Oe, Me, r, xt, tn, void 0, f, void 0,
|
|
30601
|
-
const un = Z(/* @__PURE__ */ new Set()), ni = Z(Oe), ri = Z(
|
|
30602
|
-
(ni.current !== Oe || ri.current !==
|
|
30603
|
-
if (!
|
|
30602
|
+
Ry(Y, Oe, Me, r, xt, tn, void 0, f, void 0, I, st, !!q, $t);
|
|
30603
|
+
const un = Z(/* @__PURE__ */ new Set()), ni = Z(Oe), ri = Z(I);
|
|
30604
|
+
(ni.current !== Oe || ri.current !== I) && (ni.current = Oe, ri.current = I, un.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30605
|
+
if (!I || !Oe || Oe.length === 0) return;
|
|
30604
30606
|
const Q = Oe.filter((Ee) => Ee.type === "upload" && Ee.key);
|
|
30605
30607
|
if (Q.length === 0) return;
|
|
30606
30608
|
const se = {}, oe = (Ee, xe) => {
|
|
@@ -30609,7 +30611,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30609
30611
|
for (const Ee of Q) {
|
|
30610
30612
|
const xe = Ee.key;
|
|
30611
30613
|
if (un.current.has(xe)) continue;
|
|
30612
|
-
const Se =
|
|
30614
|
+
const Se = I[xe], Ne = typeof Ee.maxCount == "number" && Ee.maxCount > 1;
|
|
30613
30615
|
if (Array.isArray(Se) && Se.length > 0) {
|
|
30614
30616
|
Ne ? Se.forEach((De, ze) => oe(`${xe}-${ze}`, De)) : oe(xe, Se[0]);
|
|
30615
30617
|
continue;
|
|
@@ -30620,20 +30622,20 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30620
30622
|
}
|
|
30621
30623
|
if (Ne)
|
|
30622
30624
|
for (let De = 0; De < Ee.maxCount; De++) {
|
|
30623
|
-
const ze = `${xe}-${De}`, ct =
|
|
30625
|
+
const ze = `${xe}-${De}`, ct = I[ze];
|
|
30624
30626
|
if (!ct) break;
|
|
30625
30627
|
oe(ze, ct);
|
|
30626
30628
|
}
|
|
30627
30629
|
}
|
|
30628
30630
|
if (Object.keys(se).length === 0) return;
|
|
30629
30631
|
for (const Ee of Q)
|
|
30630
|
-
|
|
30632
|
+
I[Ee.key] !== void 0 && un.current.add(Ee.key);
|
|
30631
30633
|
Bt((Ee) => {
|
|
30632
30634
|
const xe = { ...Ee };
|
|
30633
30635
|
let Se = !1;
|
|
30634
30636
|
for (const Ne of Q) {
|
|
30635
30637
|
const De = Ne.key;
|
|
30636
|
-
if (
|
|
30638
|
+
if (I[De] === void 0) continue;
|
|
30637
30639
|
if (typeof Ne.maxCount == "number" && Ne.maxCount > 1)
|
|
30638
30640
|
for (let ct = 0; ct < Ne.maxCount; ct++) {
|
|
30639
30641
|
const dn = `${De}-${ct}`;
|
|
@@ -30681,16 +30683,16 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30681
30683
|
}), () => {
|
|
30682
30684
|
fe = !0;
|
|
30683
30685
|
};
|
|
30684
|
-
}, [
|
|
30686
|
+
}, [I, Oe]);
|
|
30685
30687
|
const xa = Z(/* @__PURE__ */ new Set()), ii = Z(""), ui = (e || []).filter((Q) => Q.key && Q.type !== "report-module" && Q.type !== "markdown-module").map((Q) => `${Q.type}:${Q.key}`).join("|");
|
|
30686
30688
|
ii.current !== ui && (ii.current = ui, xa.current = /* @__PURE__ */ new Set()), re(() => {
|
|
30687
|
-
if (!
|
|
30689
|
+
if (!I || !e || e.length === 0) return;
|
|
30688
30690
|
const Q = e.filter((oe) => oe.type === "report-url" && oe.key), se = e.filter((oe) => oe.type === "multi-variable-select" && oe.key);
|
|
30689
30691
|
if (!(Q.length === 0 && se.length === 0)) {
|
|
30690
30692
|
for (const oe of Q) {
|
|
30691
30693
|
const ge = oe.key;
|
|
30692
30694
|
if (xa.current.has(ge)) continue;
|
|
30693
|
-
const be =
|
|
30695
|
+
const be = I[ge] ?? I[`${ge}__url`];
|
|
30694
30696
|
if (!be || typeof be == "string" && !be.trim()) continue;
|
|
30695
30697
|
const fe = Array.isArray(be) ? be[0] : String(be);
|
|
30696
30698
|
fe && (xa.current.add(ge), setTimeout(() => {
|
|
@@ -30698,7 +30700,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30698
30700
|
}, 100));
|
|
30699
30701
|
}
|
|
30700
30702
|
for (const oe of se) {
|
|
30701
|
-
const ge = oe.key, be =
|
|
30703
|
+
const ge = oe.key, be = I[ge];
|
|
30702
30704
|
!Array.isArray(be) || be.length === 0 || be.forEach((fe, Ee) => {
|
|
30703
30705
|
const xe = typeof fe == "string" ? fe.trim() : "";
|
|
30704
30706
|
if (!xe) return;
|
|
@@ -30709,7 +30711,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30709
30711
|
});
|
|
30710
30712
|
}
|
|
30711
30713
|
}
|
|
30712
|
-
}, [
|
|
30714
|
+
}, [I, e, _t]), By(Y, Oe, Me, Ve, A), Fy(Y, Oe, Ve, f, A), $y(Y, Oe, Me, Ve, A), Hy(Y, Oe, Ve, A);
|
|
30713
30715
|
const sn = !!x;
|
|
30714
30716
|
Uy(
|
|
30715
30717
|
Y,
|
|
@@ -30717,7 +30719,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
|
|
|
30717
30719
|
Me,
|
|
30718
30720
|
cl,
|
|
30719
30721
|
st,
|
|
30720
|
-
|
|
30722
|
+
I,
|
|
30721
30723
|
Zt,
|
|
30722
30724
|
sn
|
|
30723
30725
|
), Rd(Y, T, st, ba, [Oe]);
|
|
@@ -31694,7 +31696,7 @@ const sT = ({
|
|
|
31694
31696
|
...f
|
|
31695
31697
|
// 其他原生属性
|
|
31696
31698
|
}) => {
|
|
31697
|
-
const [y, E] = ie(""), [v, g] = ie(0), [m, b] = ie(!1), [x, C] = ie(!1), [S, L] = ie(!1), [k, A] = ie(n || ""),
|
|
31699
|
+
const [y, E] = ie(""), [v, g] = ie(0), [m, b] = ie(!1), [x, C] = ie(!1), [S, L] = ie(!1), [k, A] = ie(n || ""), I = Z(void 0), N = Z(void 0), P = Z(e), O = Z(v), w = Z(x), T = Z(y), M = Z(null);
|
|
31698
31700
|
re(() => {
|
|
31699
31701
|
P.current = e, O.current = v, w.current = x, T.current = y;
|
|
31700
31702
|
});
|
|
@@ -31702,13 +31704,13 @@ const sT = ({
|
|
|
31702
31704
|
let de = 0;
|
|
31703
31705
|
L(!0);
|
|
31704
31706
|
const ve = () => {
|
|
31705
|
-
de < Y.length ? (E(Y.slice(0, de + 1)), de++,
|
|
31707
|
+
de < Y.length ? (E(Y.slice(0, de + 1)), de++, N.current = window.setTimeout(ve, a)) : (L(!1), le?.());
|
|
31706
31708
|
};
|
|
31707
31709
|
ve();
|
|
31708
31710
|
}, [a]), H = ue((Y) => {
|
|
31709
31711
|
let le = T.current.length;
|
|
31710
31712
|
const de = () => {
|
|
31711
|
-
le > 0 ? (E(T.current.slice(0, le - 1)), le--,
|
|
31713
|
+
le > 0 ? (E(T.current.slice(0, le - 1)), le--, N.current = window.setTimeout(de, a / 2)) : Y?.();
|
|
31712
31714
|
};
|
|
31713
31715
|
de();
|
|
31714
31716
|
}, [a]), F = ue(() => {
|
|
@@ -31717,23 +31719,23 @@ const sT = ({
|
|
|
31717
31719
|
const Y = P.current[O.current];
|
|
31718
31720
|
T.current ? H(() => {
|
|
31719
31721
|
q(Y, () => {
|
|
31720
|
-
|
|
31722
|
+
I.current = window.setTimeout(() => {
|
|
31721
31723
|
g((le) => (le + 1) % P.current.length), b(!1);
|
|
31722
31724
|
}, 2e3);
|
|
31723
31725
|
});
|
|
31724
31726
|
}) : q(Y, () => {
|
|
31725
|
-
|
|
31727
|
+
I.current = window.setTimeout(() => {
|
|
31726
31728
|
g((le) => (le + 1) % P.current.length), b(!1);
|
|
31727
31729
|
}, 2e3);
|
|
31728
31730
|
});
|
|
31729
31731
|
}, [H, q]);
|
|
31730
31732
|
re(() => (l && e.length > 0 && !x && F(), () => {
|
|
31731
|
-
|
|
31733
|
+
I.current && window.clearTimeout(I.current), N.current && window.clearTimeout(N.current);
|
|
31732
31734
|
}), [v, x, l, e.length, F]), re(() => {
|
|
31733
31735
|
!m && l && e.length > 0 && !x && F();
|
|
31734
31736
|
}, [v, m, l, e.length, x, F]);
|
|
31735
31737
|
const _ = (Y) => {
|
|
31736
|
-
C(!0),
|
|
31738
|
+
C(!0), I.current && window.clearTimeout(I.current), N.current && window.clearTimeout(N.current), b(!1), L(!1), f.onFocus?.(Y);
|
|
31737
31739
|
}, z = (Y) => {
|
|
31738
31740
|
C(!1), !n && e.length > 0 && (E(""), g(0)), f.onBlur?.(Y);
|
|
31739
31741
|
}, W = (Y) => {
|
|
@@ -31990,9 +31992,9 @@ const Go = ({
|
|
|
31990
31992
|
v.current && (v.current.pause(), m(!1), d?.());
|
|
31991
31993
|
}, [d]), A = ue((q) => {
|
|
31992
31994
|
q.stopPropagation(), g ? k() : L();
|
|
31993
|
-
}, [g, L, k]),
|
|
31995
|
+
}, [g, L, k]), I = ue(() => {
|
|
31994
31996
|
x(!0), u && !g && L();
|
|
31995
|
-
}, [u, g, L]),
|
|
31997
|
+
}, [u, g, L]), N = ue(() => {
|
|
31996
31998
|
x(!1), u && g && k();
|
|
31997
31999
|
}, [u, g, k]), P = ue(() => {
|
|
31998
32000
|
S(!0), o?.();
|
|
@@ -32021,8 +32023,8 @@ const Go = ({
|
|
|
32021
32023
|
...y
|
|
32022
32024
|
},
|
|
32023
32025
|
bordered: !1,
|
|
32024
|
-
onMouseEnter:
|
|
32025
|
-
onMouseLeave:
|
|
32026
|
+
onMouseEnter: I,
|
|
32027
|
+
onMouseLeave: N,
|
|
32026
32028
|
onClick: M,
|
|
32027
32029
|
children: /* @__PURE__ */ he("div", { className: "video-card-container", children: [
|
|
32028
32030
|
/* @__PURE__ */ V(
|
|
@@ -32182,8 +32184,8 @@ const oT = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
32182
32184
|
e.forEach((S, L) => {
|
|
32183
32185
|
const k = S.id || L, A = d.current.get(k);
|
|
32184
32186
|
if (!A) return;
|
|
32185
|
-
const
|
|
32186
|
-
A.style.position = "absolute", A.style.left = `${P}px`, A.style.top = `${O}px`, A.style.width = `${b}px`, x[
|
|
32187
|
+
const I = Math.min(...x), N = x.indexOf(I), P = N * (b + a), O = x[N];
|
|
32188
|
+
A.style.position = "absolute", A.style.left = `${P}px`, A.style.top = `${O}px`, A.style.width = `${b}px`, x[N] += A.offsetHeight + a;
|
|
32187
32189
|
});
|
|
32188
32190
|
const C = Math.max(...x);
|
|
32189
32191
|
g.style.height = `${C}px`;
|
|
@@ -32484,8 +32486,8 @@ const xl = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, "
|
|
|
32484
32486
|
C.length < c && (C = mT(x));
|
|
32485
32487
|
const S = (k) => C.length === c * 2 ? C[k * 2] ?? "" : C[k] ?? "", L = {};
|
|
32486
32488
|
L[Da("日期")] = g, o.forEach((k, A) => {
|
|
32487
|
-
const
|
|
32488
|
-
L[P] =
|
|
32489
|
+
const I = S(A), N = bT(I), P = Da(k);
|
|
32490
|
+
L[P] = N;
|
|
32489
32491
|
}), d.push(L);
|
|
32490
32492
|
});
|
|
32491
32493
|
const h = u.filter((g) => {
|