@cntrl-site/components 1.0.104 → 1.0.106
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/ClickGallerie-CYQMgrIr.js +36 -0
- package/dist/ClickGallerie-o2U6oyOF.mjs +272 -0
- package/dist/Components/ClickGallerie/ClickGallerie.d.ts +2 -1
- package/dist/Components/Helix/Helix.d.ts +4 -1
- package/dist/Components/Hive/Hive.d.ts +4 -1
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +2 -1
- package/dist/Components/List/List.d.ts +6 -2
- package/dist/Components/Marquee/Marquee.d.ts +6 -2
- package/dist/Components/MarqueeText/MarqueeText.d.ts +2 -1
- package/dist/Components/Mercury/Mercury.d.ts +4 -1
- package/dist/Components/Waterfall/WaterfallLightbox.d.ts +4 -1
- package/dist/Components/utils/EmbedMediaFrame.d.ts +27 -0
- package/dist/Components/utils/LinkWrapper.d.ts +16 -0
- package/dist/Components/utils/embedMedia.d.ts +40 -0
- package/dist/Components/utils/index.d.ts +6 -0
- package/dist/Components/utils/observeIntersection.d.ts +4 -0
- package/dist/Components/utils/useLazyVideos.d.ts +0 -3
- package/dist/{ControlSlider-SiOt22l_.js → ControlSlider-Kkec-i14.js} +1 -1
- package/dist/{ControlSlider-pZv7H6BU.mjs → ControlSlider-LcZmviGX.mjs} +1 -1
- package/dist/EmbedMediaFrame-DsOTKE4i.js +1 -0
- package/dist/EmbedMediaFrame-DwHeOAy5.mjs +164 -0
- package/dist/{FAQ-C7823fyi.js → FAQ-BxhMo7T8.js} +1 -1
- package/dist/{FAQ-CZ39u4m8.mjs → FAQ-CdwSft5p.mjs} +1 -1
- package/dist/Grid-CFHTP3mb.js +378 -0
- package/dist/Grid-e-gLfsji.mjs +1590 -0
- package/dist/Helix-BpLo9FD3.js +43 -0
- package/dist/Helix-CidI3ucE.mjs +324 -0
- package/dist/{Hive-BusARSOi.mjs → Hive-BsmFHk2i.mjs} +505 -475
- package/dist/Hive-D1j6wZpV.js +321 -0
- package/dist/ImageRevealSlider-BuukTGAK.js +1 -0
- package/dist/{ImageRevealSlider-BdFGyVEP.mjs → ImageRevealSlider-Df9sygk9.mjs} +63 -70
- package/dist/{LazyVideo-D8eVYFyw.mjs → LazyVideo-CdAWymKO.mjs} +1 -1
- package/dist/{LazyVideo-Cn_vmMq8.js → LazyVideo-imbU18js.js} +1 -1
- package/dist/{Lightbox-eP9qAZzL.mjs → Lightbox-C_fXsfdz.mjs} +1 -1
- package/dist/{Lightbox-CIss_nOG.js → Lightbox-DaunVrkp.js} +1 -1
- package/dist/LinkWrapper-Ca84iPtg.js +1 -0
- package/dist/LinkWrapper-DZs9hlOn.mjs +13 -0
- package/dist/{List-DW7fyJbf.mjs → List-Bh_-l9vD.mjs} +532 -520
- package/dist/List-DVvpQ24J.js +377 -0
- package/dist/Marquee-DByooiWP.mjs +578 -0
- package/dist/Marquee-DfIP-tIN.js +133 -0
- package/dist/MarqueeText-D6FNCe6P.mjs +518 -0
- package/dist/MarqueeText-DsUiV6Zv.js +132 -0
- package/dist/Mercury-B-s2Kvuq.js +267 -0
- package/dist/Mercury-CCW0Es-s.mjs +1700 -0
- package/dist/PretextComponent-Dnbenstn.js +1 -0
- package/dist/{PretextComponent-s4DDfmzY.mjs → PretextComponent-OygSO3fr.mjs} +312 -269
- package/dist/{RichTextRenderer-B6WtTYlR.mjs → RichTextRenderer-BptwNpbJ.mjs} +10 -9
- package/dist/RichTextRenderer-K90Dd7pt.js +1 -0
- package/dist/{Slider20-Dm8BeCli.mjs → Slider20-CCzixTiN.mjs} +1 -1
- package/dist/{Slider20-C9o2REDl.js → Slider20-fMVeRfgx.js} +1 -1
- package/dist/{TestimonialGrid-CPu4qQ6B.mjs → TestimonialGrid-CbsVxSn9.mjs} +1 -1
- package/dist/{TestimonialGrid-D4ieiz9e.js → TestimonialGrid-CiCagfBU.js} +1 -1
- package/dist/{TestimonialSingle-DLdnAVF7.mjs → TestimonialSingle-BVm3Amrl.mjs} +1 -1
- package/dist/{TestimonialSingle-CVu15ZtV.js → TestimonialSingle-BWXynGjv.js} +1 -1
- package/dist/Waterfall-3kKioKh2.mjs +1432 -0
- package/dist/Waterfall-DII4-WV5.js +288 -0
- package/dist/{components-Yf9Zjska.mjs → components-BRmbflgg.mjs} +15 -15
- package/dist/components-nvbH4l0S.js +1 -0
- package/dist/content/postFieldBindings.d.ts +29 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +16 -16
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +52 -15
- package/dist/observeIntersection-B0f3L2iK.mjs +23 -0
- package/dist/observeIntersection-DxGj9Ctt.js +1 -0
- package/dist/sources.js +335 -223
- package/dist/sources.mjs +339 -227
- package/dist/types/SchemaV1.d.ts +53 -1
- package/dist/useLazyVideos-CdCbc2j0.js +1 -0
- package/dist/useLazyVideos-CxXyEjRQ.mjs +52 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +30 -20
- package/package.json +1 -1
- package/dist/ClickGallerie-D7g093HX.js +0 -36
- package/dist/ClickGallerie-QSOQjSdv.mjs +0 -271
- package/dist/Grid-B2_o1dvz.mjs +0 -1576
- package/dist/Grid-Bq6bk2AQ.js +0 -374
- package/dist/Helix-B7rxlvKq.js +0 -43
- package/dist/Helix-BrKQzGX5.mjs +0 -315
- package/dist/Hive-Dh5nKPGm.js +0 -321
- package/dist/ImageRevealSlider-BBWtFjUF.js +0 -1
- package/dist/List-C32WImI3.js +0 -377
- package/dist/Marquee-CdtAqhQE.mjs +0 -563
- package/dist/Marquee-DUN8wUax.js +0 -133
- package/dist/MarqueeText-4Rip_sQX.mjs +0 -515
- package/dist/MarqueeText-E6OubMOG.js +0 -132
- package/dist/Mercury-BRqlbk4i.mjs +0 -1702
- package/dist/Mercury-C-O2VGkK.js +0 -267
- package/dist/PretextComponent-D5P0AjnL.js +0 -1
- package/dist/RichTextRenderer-CIy6yI8U.js +0 -1
- package/dist/Waterfall-DKuh4bnv.mjs +0 -1404
- package/dist/Waterfall-fdiHR0Rc.js +0 -287
- package/dist/components-DzNixU7Q.js +0 -1
- package/dist/useLazyVideos-BbgdvELi.js +0 -1
- package/dist/useLazyVideos-CZLyNolX.mjs +0 -72
|
@@ -1,30 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { createPortal as
|
|
1
|
+
import { jsxs as U, Fragment as Ee, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as Kt, useRef as Y, useLayoutEffect as zt, useEffect as wt, useMemo as E, useCallback as Z } from "react";
|
|
3
|
+
import { createPortal as Oo } from "react-dom";
|
|
4
4
|
import { s as ot } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { b as _o } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
+
import { u as Fo } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
|
+
import { i as ze, E as Ho } from "./EmbedMediaFrame-DwHeOAy5.mjs";
|
|
8
|
+
import { o as No, t as Do } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
9
|
+
function Vo(t) {
|
|
10
|
+
if (ze(t)) return !1;
|
|
9
11
|
if (t.type === "video") return !0;
|
|
10
12
|
if (t.type === "image") return !1;
|
|
11
13
|
const e = t.name ?? "";
|
|
12
14
|
return /\.(mp4|webm|ogg|mov)(\?|$)/i.test(e) ? !0 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t.assetId);
|
|
13
15
|
}
|
|
14
|
-
function
|
|
16
|
+
function Io({
|
|
15
17
|
media: t,
|
|
16
18
|
className: e,
|
|
17
19
|
style: o
|
|
18
20
|
}) {
|
|
19
|
-
const r =
|
|
20
|
-
return
|
|
21
|
+
const r = Y(null);
|
|
22
|
+
return wt(() => {
|
|
21
23
|
if (!t.isVideo) return;
|
|
22
24
|
const n = r.current;
|
|
23
25
|
if (!n) return;
|
|
24
26
|
const a = n.play();
|
|
25
27
|
a && a.catch(() => {
|
|
26
28
|
});
|
|
27
|
-
}, [t.isVideo, t.assetId]), t.
|
|
29
|
+
}, [t.isVideo, t.assetId]), t.embed ? /* @__PURE__ */ C(
|
|
30
|
+
Ho,
|
|
31
|
+
{
|
|
32
|
+
media: t.embed,
|
|
33
|
+
startsAtOnce: !0,
|
|
34
|
+
fit: "contain",
|
|
35
|
+
className: e,
|
|
36
|
+
style: o
|
|
37
|
+
}
|
|
38
|
+
) : t.isVideo ? /* @__PURE__ */ C(
|
|
28
39
|
"video",
|
|
29
40
|
{
|
|
30
41
|
ref: r,
|
|
@@ -37,7 +48,7 @@ function Do({
|
|
|
37
48
|
playsInline: !0,
|
|
38
49
|
preload: "auto"
|
|
39
50
|
}
|
|
40
|
-
) : /* @__PURE__ */
|
|
51
|
+
) : /* @__PURE__ */ C(
|
|
41
52
|
"img",
|
|
42
53
|
{
|
|
43
54
|
className: e,
|
|
@@ -50,7 +61,7 @@ function Do({
|
|
|
50
61
|
function ie(t) {
|
|
51
62
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
52
63
|
}
|
|
53
|
-
function
|
|
64
|
+
function Ko(t) {
|
|
54
65
|
return String(t ?? "").trim().length > 0;
|
|
55
66
|
}
|
|
56
67
|
function Se(t, e) {
|
|
@@ -62,29 +73,29 @@ function Me(t, e) {
|
|
|
62
73
|
o.classList.toggle(`${e}-reveal-from-bottom`, n);
|
|
63
74
|
}
|
|
64
75
|
function Oe(t, e, o, r, n, a, s) {
|
|
65
|
-
const u = ot(a, s), m = ot(0, s), i = t === 0,
|
|
66
|
-
return { borderTopWidth: i && o ? u : m, borderBottomWidth: !
|
|
76
|
+
const u = ot(a, s), m = ot(0, s), i = t === 0, p = t === e - 1 && !n;
|
|
77
|
+
return { borderTopWidth: i && o ? u : m, borderBottomWidth: !p || r ? u : m };
|
|
67
78
|
}
|
|
68
|
-
function
|
|
79
|
+
function zo(t, e, o) {
|
|
69
80
|
const r = ot(e, o), n = ot(0, o);
|
|
70
81
|
return {
|
|
71
82
|
borderTopWidth: n,
|
|
72
83
|
borderBottomWidth: t ? r : n
|
|
73
84
|
};
|
|
74
85
|
}
|
|
75
|
-
const _e = 10,
|
|
86
|
+
const _e = 10, Fe = 10, Ct = {
|
|
76
87
|
positionEase: 0.14,
|
|
77
88
|
rotationEase: 0.09,
|
|
78
89
|
rotationFactor: 2.5,
|
|
79
90
|
maxRotation: 20
|
|
80
91
|
};
|
|
81
|
-
function
|
|
92
|
+
function Uo(t, e, o) {
|
|
82
93
|
return Math.max(e, Math.min(o, t));
|
|
83
94
|
}
|
|
84
95
|
function ae(t, e, o) {
|
|
85
96
|
return t + (e - t) * o;
|
|
86
97
|
}
|
|
87
|
-
function
|
|
98
|
+
function Xo(t, e, o, r) {
|
|
88
99
|
if (!e)
|
|
89
100
|
return { x: 0, y: 0 };
|
|
90
101
|
const n = e.getBoundingClientRect(), a = n.top + n.height / 2;
|
|
@@ -95,17 +106,17 @@ function zo(t, e, o, r) {
|
|
|
95
106
|
};
|
|
96
107
|
switch (t) {
|
|
97
108
|
case "left":
|
|
98
|
-
return { x: n.left +
|
|
109
|
+
return { x: n.left + Fe + r / 2, y: a };
|
|
99
110
|
case "center":
|
|
100
111
|
return { x: n.left + n.width / 2, y: a };
|
|
101
112
|
case "right":
|
|
102
|
-
return { x: n.right -
|
|
113
|
+
return { x: n.right - Fe - r / 2, y: a };
|
|
103
114
|
default:
|
|
104
115
|
return { x: n.left + n.width / 2, y: a };
|
|
105
116
|
}
|
|
106
117
|
}
|
|
107
|
-
function
|
|
108
|
-
const o =
|
|
118
|
+
function Yo(t, e) {
|
|
119
|
+
const o = Y(null), r = Y({
|
|
109
120
|
x: 0,
|
|
110
121
|
y: 0,
|
|
111
122
|
rotation: 0,
|
|
@@ -114,14 +125,14 @@ function Uo(t, e) {
|
|
|
114
125
|
targetRotation: 0,
|
|
115
126
|
lastX: 0,
|
|
116
127
|
hasLastX: !1
|
|
117
|
-
}), n =
|
|
128
|
+
}), n = Y(null), a = Z(() => {
|
|
118
129
|
const c = o.current, R = r.current;
|
|
119
130
|
c && (c.style.transform = `translate3d(${R.x}px, ${R.y}px, 0) translate(-50%, -50%) rotate(${R.rotation.toFixed(3)}deg)`);
|
|
120
131
|
}, []), s = Z(() => {
|
|
121
132
|
n.current !== null && (cancelAnimationFrame(n.current), n.current = null);
|
|
122
133
|
}, []), u = Z(() => {
|
|
123
134
|
const c = r.current;
|
|
124
|
-
e ? (c.x = ae(c.x, c.targetX,
|
|
135
|
+
e ? (c.x = ae(c.x, c.targetX, Ct.positionEase), c.y = ae(c.y, c.targetY, Ct.positionEase), c.rotation = ae(c.rotation, c.targetRotation, Ct.rotationEase)) : (c.x = c.targetX, c.y = c.targetY, c.rotation = c.targetRotation), a();
|
|
125
136
|
const R = Math.abs(c.x - c.targetX) < 0.4 && Math.abs(c.y - c.targetY) < 0.4, v = Math.abs(c.rotation - c.targetRotation) < 0.08;
|
|
126
137
|
!R || !v ? n.current = requestAnimationFrame(u) : n.current = null;
|
|
127
138
|
}, [a, e]), m = Z(() => {
|
|
@@ -129,15 +140,15 @@ function Uo(t, e) {
|
|
|
129
140
|
}, [u]), i = Z((c, R) => {
|
|
130
141
|
const v = r.current;
|
|
131
142
|
v.targetX = c, v.targetY = R, v.targetRotation = 0, v.x = c, v.y = R, v.rotation = 0, v.lastX = c, v.hasLastX = !0, a(), e && m();
|
|
132
|
-
}, [a, e, m]),
|
|
143
|
+
}, [a, e, m]), p = Z((c, R) => {
|
|
133
144
|
if (!t) return;
|
|
134
145
|
const v = r.current;
|
|
135
146
|
if (e && v.hasLastX) {
|
|
136
|
-
const
|
|
137
|
-
v.targetRotation =
|
|
138
|
-
|
|
147
|
+
const D = c - v.lastX;
|
|
148
|
+
v.targetRotation = Uo(
|
|
149
|
+
D * Ct.rotationFactor,
|
|
139
150
|
-20,
|
|
140
|
-
|
|
151
|
+
Ct.maxRotation
|
|
141
152
|
);
|
|
142
153
|
} else
|
|
143
154
|
v.targetRotation = 0;
|
|
@@ -160,9 +171,9 @@ function Uo(t, e) {
|
|
|
160
171
|
hasLastX: !1
|
|
161
172
|
}, o.current && (o.current.style.transform = "");
|
|
162
173
|
}, [s]);
|
|
163
|
-
return
|
|
174
|
+
return wt(() => (t || O(), s), [t, O, s]), { anchorRef: o, onShow: i, onCursorMove: p, exit: L, reset: O };
|
|
164
175
|
}
|
|
165
|
-
function
|
|
176
|
+
function jo(t) {
|
|
166
177
|
return `
|
|
167
178
|
.${t}-wrapper {
|
|
168
179
|
display: grid;
|
|
@@ -541,99 +552,99 @@ a.${t}-list-item {
|
|
|
541
552
|
}
|
|
542
553
|
`;
|
|
543
554
|
}
|
|
544
|
-
const
|
|
555
|
+
const Yt = [
|
|
545
556
|
"AColumn",
|
|
546
557
|
"BColumnWidth",
|
|
547
558
|
"CColumnWidth",
|
|
548
559
|
"DColumnWidth",
|
|
549
560
|
"EColumnWidth"
|
|
550
|
-
],
|
|
561
|
+
], Ue = [
|
|
551
562
|
"AColumn",
|
|
552
563
|
"BColumn",
|
|
553
564
|
"CColumn",
|
|
554
565
|
"DColumn",
|
|
555
566
|
"EColumn"
|
|
556
|
-
],
|
|
557
|
-
...
|
|
558
|
-
|
|
559
|
-
],
|
|
560
|
-
function
|
|
567
|
+
], xt = "cutLabel", qo = [
|
|
568
|
+
...Ue,
|
|
569
|
+
xt
|
|
570
|
+
], qt = ["A", "B", "C", "D", "E"];
|
|
571
|
+
function Xe(t) {
|
|
561
572
|
return `${t}ColumnVerticalAlign`;
|
|
562
573
|
}
|
|
563
|
-
const
|
|
564
|
-
function
|
|
574
|
+
const Mr = ["Top", "Center", "Bottom"];
|
|
575
|
+
function Ye(t) {
|
|
565
576
|
const e = String(t ?? "Top").trim();
|
|
566
577
|
if (e.toLowerCase().startsWith("baseline")) {
|
|
567
578
|
const r = e.slice(-1).toUpperCase();
|
|
568
|
-
return
|
|
579
|
+
return qt.includes(r) ? `Baseline ${r}` : "Top";
|
|
569
580
|
}
|
|
570
581
|
const o = e.toLowerCase();
|
|
571
582
|
return o === "center" ? "Center" : o === "bottom" ? "Bottom" : o === "top" ? "Top" : e;
|
|
572
583
|
}
|
|
573
|
-
function
|
|
574
|
-
const e =
|
|
584
|
+
function Go(t) {
|
|
585
|
+
const e = Ye(t);
|
|
575
586
|
return e.toLowerCase().startsWith("baseline") ? !1 : e === "Top" || e === "Center" || e === "Bottom";
|
|
576
587
|
}
|
|
577
|
-
function
|
|
588
|
+
function Jo(t) {
|
|
578
589
|
const e = String(t ?? "").trim();
|
|
579
590
|
if (!e.toLowerCase().startsWith("baseline"))
|
|
580
591
|
return null;
|
|
581
592
|
const o = e.slice(-1).toUpperCase();
|
|
582
|
-
return
|
|
593
|
+
return qt.includes(o) ? o : null;
|
|
583
594
|
}
|
|
584
|
-
function
|
|
585
|
-
const r =
|
|
586
|
-
return r ? r === e ? !1 :
|
|
595
|
+
function je(t, e, o) {
|
|
596
|
+
const r = Jo(t);
|
|
597
|
+
return r ? r === e ? !1 : Go(o[Xe(r)]) : !0;
|
|
587
598
|
}
|
|
588
|
-
function
|
|
589
|
-
const e =
|
|
599
|
+
function Rt(t) {
|
|
600
|
+
const e = Ye(t);
|
|
590
601
|
if (e.toLowerCase().startsWith("baseline")) {
|
|
591
602
|
const o = e.slice(-1).toUpperCase();
|
|
592
|
-
return
|
|
603
|
+
return qt.includes(o) ? { kind: "baseline", anchorLetter: o } : { kind: "top" };
|
|
593
604
|
}
|
|
594
605
|
return e === "Center" ? { kind: "center" } : e === "Bottom" ? { kind: "bottom" } : { kind: "top" };
|
|
595
606
|
}
|
|
596
|
-
function
|
|
597
|
-
if (
|
|
598
|
-
return
|
|
599
|
-
const r =
|
|
607
|
+
function Zo(t, e, o) {
|
|
608
|
+
if (qe(t, e, o))
|
|
609
|
+
return Rt(t);
|
|
610
|
+
const r = Rt(t);
|
|
600
611
|
return r.kind === "baseline" ? { kind: "top" } : r;
|
|
601
612
|
}
|
|
602
|
-
function
|
|
603
|
-
const e =
|
|
613
|
+
function Qo(t) {
|
|
614
|
+
const e = Rt(t);
|
|
604
615
|
return e.kind === "baseline" ? { kind: "top" } : e;
|
|
605
616
|
}
|
|
606
|
-
function
|
|
607
|
-
return
|
|
617
|
+
function qe(t, e, o) {
|
|
618
|
+
return je(t, o, e) ? Rt(t).kind === "baseline" : !1;
|
|
608
619
|
}
|
|
609
|
-
function
|
|
620
|
+
function Po(t) {
|
|
610
621
|
const e = {};
|
|
611
622
|
let o = !1;
|
|
612
|
-
for (const r of
|
|
613
|
-
const n =
|
|
623
|
+
for (const r of qt) {
|
|
624
|
+
const n = Xe(r), a = t[n];
|
|
614
625
|
if (t.type === "b") {
|
|
615
626
|
const s = String(a ?? "Top").trim();
|
|
616
627
|
s !== "Top" && s !== "Center" && s !== "Bottom" && (e[n] = "Top", o = !0);
|
|
617
628
|
continue;
|
|
618
629
|
}
|
|
619
|
-
|
|
630
|
+
je(a, r, t) || (e[n] = "Top", o = !0);
|
|
620
631
|
}
|
|
621
632
|
return o ? e : null;
|
|
622
633
|
}
|
|
623
|
-
function
|
|
634
|
+
function tr(t) {
|
|
624
635
|
return t === "center" ? { flex: "0 0 auto", marginTop: "auto", marginBottom: "auto" } : t === "bottom" ? { flex: "0 0 auto", marginTop: "auto" } : {};
|
|
625
636
|
}
|
|
626
|
-
function
|
|
627
|
-
const e =
|
|
637
|
+
function er(t) {
|
|
638
|
+
const e = Rt(t).kind;
|
|
628
639
|
return e === "baseline" ? "center" : e;
|
|
629
640
|
}
|
|
630
|
-
function
|
|
641
|
+
function or(t) {
|
|
631
642
|
return t === "right" ? "flex-end" : t === "center" ? "center" : "flex-start";
|
|
632
643
|
}
|
|
633
|
-
function
|
|
644
|
+
function He(t) {
|
|
634
645
|
return t === "center" ? "center" : t === "bottom" ? "flex-end" : "flex-start";
|
|
635
646
|
}
|
|
636
|
-
function
|
|
647
|
+
function rr(t, e) {
|
|
637
648
|
const o = document.createElement("i");
|
|
638
649
|
o.className = e, o.setAttribute("aria-hidden", "true"), t.prepend(o);
|
|
639
650
|
const { top: r } = t.getBoundingClientRect(), { bottom: n } = o.getBoundingClientRect(), a = n - r;
|
|
@@ -644,34 +655,34 @@ function le(t, e, o, r) {
|
|
|
644
655
|
if (!n) return 0;
|
|
645
656
|
const a = n.closest(`.${o}`);
|
|
646
657
|
if (!a) return 0;
|
|
647
|
-
const s =
|
|
658
|
+
const s = rr(n, r);
|
|
648
659
|
if (t.kind === "baseline")
|
|
649
660
|
return n.getBoundingClientRect().top - e + s;
|
|
650
661
|
const u = a.getBoundingClientRect(), m = n.getBoundingClientRect().height;
|
|
651
662
|
let i = 0;
|
|
652
663
|
return t.kind === "center" ? i = (u.height - m) / 2 : t.kind === "bottom" && (i = u.height - m), u.top - e + i + s;
|
|
653
664
|
}
|
|
654
|
-
function
|
|
665
|
+
function nr(t, e, o) {
|
|
655
666
|
const r = t.getBoundingClientRect().height;
|
|
656
667
|
return r <= 0 ? 0 : (e.forEach((n) => {
|
|
657
668
|
const a = n.querySelector(`.${o}`);
|
|
658
669
|
a && (a.style.minHeight = `${r}px`, a.style.height = `${r}px`);
|
|
659
670
|
}), r);
|
|
660
671
|
}
|
|
661
|
-
function
|
|
672
|
+
function ir(t, e) {
|
|
662
673
|
return !t || !e ? (t && (t.style.transform = ""), 0) : (t.style.transform = `translateY(${e}px)`, e);
|
|
663
674
|
}
|
|
664
|
-
const
|
|
675
|
+
const ar = {
|
|
665
676
|
AColumn: "AColumn",
|
|
666
677
|
BColumnWidth: "BColumn",
|
|
667
678
|
CColumnWidth: "CColumn",
|
|
668
679
|
DColumnWidth: "DColumn",
|
|
669
680
|
EColumnWidth: "EColumn"
|
|
670
681
|
};
|
|
671
|
-
function
|
|
682
|
+
function X(t, e) {
|
|
672
683
|
return `${t}${e.replace(/^text/, "Text")}`;
|
|
673
684
|
}
|
|
674
|
-
const
|
|
685
|
+
const lr = {
|
|
675
686
|
AColumn: "A",
|
|
676
687
|
BColumn: "B",
|
|
677
688
|
CColumn: "C",
|
|
@@ -679,39 +690,39 @@ const ir = {
|
|
|
679
690
|
EColumn: "E",
|
|
680
691
|
cutLabel: "CUT"
|
|
681
692
|
};
|
|
682
|
-
function
|
|
693
|
+
function sr(t) {
|
|
683
694
|
return [
|
|
684
|
-
|
|
685
|
-
|
|
695
|
+
X(t, "textFontFamily"),
|
|
696
|
+
X(t, "textFontSettings"),
|
|
686
697
|
{
|
|
687
698
|
type: "row",
|
|
688
699
|
items: [
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
700
|
+
X(t, "textFontSize"),
|
|
701
|
+
X(t, "textLineHeight"),
|
|
702
|
+
X(t, "textLetterSpacing"),
|
|
703
|
+
X(t, "textWordSpacing")
|
|
693
704
|
]
|
|
694
705
|
},
|
|
695
|
-
|
|
696
|
-
|
|
706
|
+
X(t, "textTextAlign"),
|
|
707
|
+
X(t, "textTextAppearance"),
|
|
697
708
|
`${t}VerticalAlign`
|
|
698
709
|
];
|
|
699
710
|
}
|
|
700
|
-
function
|
|
711
|
+
function Or() {
|
|
701
712
|
return {
|
|
702
713
|
type: "tab",
|
|
703
714
|
id: "listColumnTextStyle",
|
|
704
715
|
tabs: Object.fromEntries(
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
716
|
+
qo.map((t) => [
|
|
717
|
+
lr[t],
|
|
718
|
+
sr(t)
|
|
708
719
|
])
|
|
709
720
|
)
|
|
710
721
|
};
|
|
711
722
|
}
|
|
712
|
-
function
|
|
723
|
+
function jt(t, e) {
|
|
713
724
|
const o = (r) => {
|
|
714
|
-
const n =
|
|
725
|
+
const n = X(e, r);
|
|
715
726
|
return t[n];
|
|
716
727
|
};
|
|
717
728
|
return {
|
|
@@ -724,7 +735,7 @@ function qt(t, e) {
|
|
|
724
735
|
textLineHeight: o("textLineHeight"),
|
|
725
736
|
textLetterSpacing: o("textLetterSpacing") ?? 0,
|
|
726
737
|
textWordSpacing: o("textWordSpacing") ?? 0,
|
|
727
|
-
textTextAlign: o("textTextAlign") ?? (e ===
|
|
738
|
+
textTextAlign: o("textTextAlign") ?? (e === xt ? "center" : "left"),
|
|
728
739
|
textTextAppearance: o("textTextAppearance"),
|
|
729
740
|
textColor: t.textColor
|
|
730
741
|
};
|
|
@@ -745,14 +756,14 @@ function Ne(t, e) {
|
|
|
745
756
|
textAppearance: t.textTextAppearance,
|
|
746
757
|
color: t.textColor ?? "#767676"
|
|
747
758
|
};
|
|
748
|
-
return
|
|
759
|
+
return No(Do(o, e));
|
|
749
760
|
}
|
|
750
761
|
function De(t, e, o, r) {
|
|
751
|
-
const n =
|
|
762
|
+
const n = jt(t, e), a = n.textFontSize ?? 0.01, s = n.textLineHeight;
|
|
752
763
|
return s !== void 0 && s < a ? `${o} ${r}` : o;
|
|
753
764
|
}
|
|
754
765
|
function Ve(t, e, o, r) {
|
|
755
|
-
const n =
|
|
766
|
+
const n = jt(t, e), a = n.textFontSize ?? 0.01, s = n.textLineHeight;
|
|
756
767
|
return s === void 0 || s >= a ? {} : {
|
|
757
768
|
[`--${o}-title-leading-gap`]: ot((a - s) / 2, r)
|
|
758
769
|
};
|
|
@@ -763,37 +774,37 @@ const M = [
|
|
|
763
774
|
"CColumnWidth",
|
|
764
775
|
"DColumnWidth",
|
|
765
776
|
"EColumnWidth"
|
|
766
|
-
],
|
|
777
|
+
], ct = [
|
|
767
778
|
"AColumnPaddingLeft",
|
|
768
779
|
"BColumnPaddingLeft",
|
|
769
780
|
"CColumnPaddingLeft",
|
|
770
781
|
"DColumnPaddingLeft",
|
|
771
782
|
"EColumnPaddingLeft"
|
|
772
|
-
],
|
|
783
|
+
], dt = [
|
|
773
784
|
"AColumnPaddingRight",
|
|
774
785
|
"BColumnPaddingRight",
|
|
775
786
|
"CColumnPaddingRight",
|
|
776
787
|
"DColumnPaddingRight",
|
|
777
788
|
"EColumnPaddingRight"
|
|
778
|
-
],
|
|
789
|
+
], ut = [
|
|
779
790
|
"AColumnPaddingBottom",
|
|
780
791
|
"BColumnPaddingBottom",
|
|
781
792
|
"CColumnPaddingBottom",
|
|
782
793
|
"DColumnPaddingBottom",
|
|
783
794
|
"EColumnPaddingBottom"
|
|
784
|
-
],
|
|
795
|
+
], cr = {
|
|
785
796
|
textColor: "text-color",
|
|
786
797
|
backgroundColor: "background-color",
|
|
787
798
|
dividerColor: "divider-color",
|
|
788
799
|
textHoverColor: "text-hover-color",
|
|
789
800
|
backgroundHoverColor: "background-hover-color",
|
|
790
801
|
dividerHoverColor: "divider-hover-color"
|
|
791
|
-
},
|
|
792
|
-
function
|
|
793
|
-
const e = typeof t == "number" && t > 0 ? t :
|
|
802
|
+
}, dr = ["hover", "focus", "filled", "success", "error"], Ie = 4e-3, st = 4e-3, se = st, de = 50, Tt = 1440, Wt = de / Tt;
|
|
803
|
+
function Ge(t) {
|
|
804
|
+
const e = typeof t == "number" && t > 0 ? t : Tt;
|
|
794
805
|
return de / e;
|
|
795
806
|
}
|
|
796
|
-
function
|
|
807
|
+
function ur(t) {
|
|
797
808
|
let e = t ?? null;
|
|
798
809
|
for (; e; ) {
|
|
799
810
|
const o = e.style.getPropertyValue("--cntrl-article-width").trim();
|
|
@@ -810,46 +821,46 @@ function cr(t) {
|
|
|
810
821
|
}
|
|
811
822
|
e = e.parentElement;
|
|
812
823
|
}
|
|
813
|
-
return
|
|
824
|
+
return Tt;
|
|
814
825
|
}
|
|
815
|
-
const
|
|
826
|
+
const Je = {
|
|
816
827
|
AColumnWidth: 0.02,
|
|
817
828
|
BColumnWidth: 0.02,
|
|
818
829
|
CColumnWidth: 0.02,
|
|
819
830
|
DColumnWidth: 0.02,
|
|
820
831
|
EColumnWidth: 0.02
|
|
821
832
|
};
|
|
822
|
-
function
|
|
833
|
+
function Lt(t) {
|
|
823
834
|
const e = typeof t.wrapperWidth == "number" ? t.wrapperWidth : 1;
|
|
824
835
|
return Math.max(0, e);
|
|
825
836
|
}
|
|
826
|
-
function
|
|
837
|
+
function hr(t, e = 1) {
|
|
827
838
|
const o = e / t;
|
|
828
839
|
return Object.fromEntries(
|
|
829
840
|
M.map((r) => [r, o])
|
|
830
841
|
);
|
|
831
842
|
}
|
|
832
|
-
function
|
|
843
|
+
function mr() {
|
|
833
844
|
return Object.fromEntries([
|
|
834
|
-
...
|
|
835
|
-
...
|
|
845
|
+
...ct.map((t) => [t, 0]),
|
|
846
|
+
...dt.map((t) => [t, 0])
|
|
836
847
|
]);
|
|
837
848
|
}
|
|
838
|
-
function
|
|
849
|
+
function pr() {
|
|
839
850
|
return Object.fromEntries(
|
|
840
|
-
|
|
851
|
+
ut.map((t) => [t, 0])
|
|
841
852
|
);
|
|
842
853
|
}
|
|
843
|
-
function
|
|
854
|
+
function Ut(t) {
|
|
844
855
|
return Object.fromEntries(
|
|
845
856
|
M.map((e) => [
|
|
846
857
|
e,
|
|
847
|
-
typeof t[e] == "number" ? t[e] :
|
|
858
|
+
typeof t[e] == "number" ? t[e] : Je[e]
|
|
848
859
|
])
|
|
849
860
|
);
|
|
850
861
|
}
|
|
851
|
-
function
|
|
852
|
-
const r = t -
|
|
862
|
+
function Ze(t, e, o) {
|
|
863
|
+
const r = t - Wt, n = e + o;
|
|
853
864
|
if (n <= 0 || n <= r)
|
|
854
865
|
return { paddingLeft: e, paddingRight: o };
|
|
855
866
|
if (r <= 0)
|
|
@@ -860,7 +871,7 @@ function Je(t, e, o) {
|
|
|
860
871
|
paddingRight: o * a
|
|
861
872
|
};
|
|
862
873
|
}
|
|
863
|
-
function
|
|
874
|
+
function Xt(t, e, o) {
|
|
864
875
|
const r = ue(t, e, o);
|
|
865
876
|
if (t <= 0)
|
|
866
877
|
return [];
|
|
@@ -870,10 +881,10 @@ function Yt(t, e, o) {
|
|
|
870
881
|
Math.max(0, e - n)
|
|
871
882
|
];
|
|
872
883
|
}
|
|
873
|
-
function
|
|
884
|
+
function fr(t, e, o) {
|
|
874
885
|
const r = {};
|
|
875
886
|
for (let n = 0; n < t; n += 1) {
|
|
876
|
-
const a =
|
|
887
|
+
const a = ct[n], s = dt[n], u = typeof o[a] == "number" ? o[a] : 0, m = typeof o[s] == "number" ? o[s] : 0, i = Ze(
|
|
877
888
|
e[n] ?? 0,
|
|
878
889
|
u,
|
|
879
890
|
m
|
|
@@ -890,21 +901,21 @@ function ue(t, e, o) {
|
|
|
890
901
|
);
|
|
891
902
|
if (t === 1)
|
|
892
903
|
return r;
|
|
893
|
-
const n = r.slice(0, t - 1), s = n.reduce((i,
|
|
904
|
+
const n = r.slice(0, t - 1), s = n.reduce((i, p) => i + p, 0) + Wt;
|
|
894
905
|
if (e >= s)
|
|
895
906
|
return r;
|
|
896
907
|
const u = [...n];
|
|
897
908
|
let m = s - e;
|
|
898
909
|
for (let i = u.length - 1; i >= 0 && m > 0; i -= 1) {
|
|
899
|
-
const
|
|
900
|
-
if (
|
|
910
|
+
const p = u[i] - Wt;
|
|
911
|
+
if (p <= 0)
|
|
901
912
|
continue;
|
|
902
|
-
const L = Math.min(m,
|
|
913
|
+
const L = Math.min(m, p);
|
|
903
914
|
u[i] -= L, m -= L;
|
|
904
915
|
}
|
|
905
916
|
return [...u, r[t - 1]];
|
|
906
917
|
}
|
|
907
|
-
function
|
|
918
|
+
function $r(t, e, o) {
|
|
908
919
|
if (t <= 1)
|
|
909
920
|
return {};
|
|
910
921
|
const r = ue(t, e, o), n = {};
|
|
@@ -915,23 +926,23 @@ function pr(t, e, o) {
|
|
|
915
926
|
return n;
|
|
916
927
|
}
|
|
917
928
|
function Ke(t) {
|
|
918
|
-
return Array.isArray(t.columnsOrder) && t.columnsOrder.length > 0 ? t.columnsOrder : [...
|
|
929
|
+
return Array.isArray(t.columnsOrder) && t.columnsOrder.length > 0 ? t.columnsOrder : [...Yt];
|
|
919
930
|
}
|
|
920
|
-
function
|
|
931
|
+
function vr(t, e) {
|
|
921
932
|
return t.length !== e.length ? !1 : t.every((o, r) => o === e[r]);
|
|
922
933
|
}
|
|
923
|
-
function
|
|
934
|
+
function gr(t, e, o, r) {
|
|
924
935
|
const n = Math.min(r, t.length, M.length), a = {};
|
|
925
936
|
for (let s = 0; s < n; s += 1) {
|
|
926
937
|
const u = t[s], m = e.indexOf(u);
|
|
927
938
|
if (m === -1)
|
|
928
939
|
continue;
|
|
929
|
-
const i = M[m],
|
|
930
|
-
typeof _ == "number" && (a[c] = _), typeof
|
|
940
|
+
const i = M[m], p = ct[m], L = dt[m], O = ut[m], c = M[s], R = ct[s], v = dt[s], D = ut[s], _ = o[i], V = o[p], w = o[L], B = o[O];
|
|
941
|
+
typeof _ == "number" && (a[c] = _), typeof V == "number" && (a[R] = V), typeof w == "number" && (a[v] = w), typeof B == "number" && (a[D] = B);
|
|
931
942
|
}
|
|
932
943
|
return a;
|
|
933
944
|
}
|
|
934
|
-
function
|
|
945
|
+
function Qe(t, e) {
|
|
935
946
|
const o = /* @__PURE__ */ new Set([
|
|
936
947
|
...Object.keys(t),
|
|
937
948
|
...Object.keys(e)
|
|
@@ -941,87 +952,87 @@ function Ze(t, e) {
|
|
|
941
952
|
return !0;
|
|
942
953
|
return !1;
|
|
943
954
|
}
|
|
944
|
-
function
|
|
955
|
+
function _r(t, e) {
|
|
945
956
|
const o = t.columns, r = e.columns;
|
|
946
957
|
if (typeof o != "number" || o === r)
|
|
947
958
|
return t;
|
|
948
|
-
const n =
|
|
959
|
+
const n = Lt(t), a = t.type === "b" || t.type === void 0 && e.type === "b", s = {
|
|
949
960
|
...t,
|
|
950
|
-
...
|
|
951
|
-
...
|
|
961
|
+
...hr(o, n),
|
|
962
|
+
...mr()
|
|
952
963
|
};
|
|
953
964
|
if (a)
|
|
954
|
-
for (const u of
|
|
965
|
+
for (const u of ut)
|
|
955
966
|
typeof e[u] == "number" && (s[u] = e[u]);
|
|
956
967
|
else
|
|
957
|
-
Object.assign(s,
|
|
958
|
-
return
|
|
968
|
+
Object.assign(s, pr());
|
|
969
|
+
return Qe(t, s) ? s : t;
|
|
959
970
|
}
|
|
960
|
-
function
|
|
961
|
-
const r =
|
|
971
|
+
function yr(t, e, o) {
|
|
972
|
+
const r = Po(t);
|
|
962
973
|
r && (t = { ...t, ...r });
|
|
963
|
-
const n =
|
|
974
|
+
const n = Ge(o == null ? void 0 : o.designWidth), a = t.columns, s = e.columns, u = Lt(t), m = Lt(e), i = t.type === "b" || t.type === void 0 && e.type === "b", p = typeof a == "number" ? a : typeof s == "number" ? s : Yt.length, L = (w) => {
|
|
964
975
|
if (i)
|
|
965
|
-
return
|
|
966
|
-
const
|
|
976
|
+
return w;
|
|
977
|
+
const B = Ut({ ...e, ...w }), rt = Lt(w), j = Xt(p, rt, B), kt = fr(p, j, {
|
|
967
978
|
...e,
|
|
968
|
-
...
|
|
979
|
+
...w
|
|
969
980
|
});
|
|
970
|
-
return Object.keys(
|
|
971
|
-
...
|
|
972
|
-
...
|
|
981
|
+
return Object.keys(kt).length === 0 ? w : {
|
|
982
|
+
...w,
|
|
983
|
+
...kt
|
|
973
984
|
};
|
|
974
985
|
};
|
|
975
986
|
if (typeof a == "number" && a !== s)
|
|
976
987
|
return t;
|
|
977
988
|
const O = Ke(t), c = Ke(e);
|
|
978
|
-
if (!
|
|
989
|
+
if (!vr(O, c))
|
|
979
990
|
return L({
|
|
980
991
|
...t,
|
|
981
|
-
|
|
992
|
+
...gr(O, c, e, p)
|
|
982
993
|
});
|
|
983
|
-
if (u < m && typeof
|
|
984
|
-
const
|
|
994
|
+
if (u < m && typeof p == "number" && !i) {
|
|
995
|
+
const w = Ut({ ...e, ...t });
|
|
985
996
|
return L({
|
|
986
997
|
...t,
|
|
987
|
-
|
|
998
|
+
...$r(p, u, w)
|
|
988
999
|
});
|
|
989
1000
|
}
|
|
990
1001
|
if (i) {
|
|
991
|
-
const
|
|
992
|
-
return
|
|
1002
|
+
const w = typeof t.textPaddingLR == "number" ? t.textPaddingLR : 0, B = Math.max(0, (u - n) / 2);
|
|
1003
|
+
return w > B ? { ...t, textPaddingLR: B } : t;
|
|
993
1004
|
}
|
|
994
|
-
const R =
|
|
995
|
-
|
|
1005
|
+
const R = Ut({ ...e, ...t }), v = Xt(
|
|
1006
|
+
p,
|
|
996
1007
|
m,
|
|
997
|
-
|
|
998
|
-
), _ =
|
|
999
|
-
|
|
1008
|
+
Ut(e)
|
|
1009
|
+
), _ = Xt(
|
|
1010
|
+
p,
|
|
1000
1011
|
u,
|
|
1001
1012
|
R
|
|
1002
1013
|
).some(
|
|
1003
|
-
(
|
|
1004
|
-
),
|
|
1005
|
-
const
|
|
1006
|
-
return typeof
|
|
1014
|
+
(w, B) => w < (v[B] ?? w)
|
|
1015
|
+
), V = M.some((w) => {
|
|
1016
|
+
const B = t[w], rt = e[w];
|
|
1017
|
+
return typeof B == "number" && typeof rt == "number" && B !== rt;
|
|
1007
1018
|
});
|
|
1008
|
-
return _ ||
|
|
1019
|
+
return _ || V ? L(t) : t;
|
|
1009
1020
|
}
|
|
1010
|
-
function
|
|
1021
|
+
function br(t, e, o, r) {
|
|
1011
1022
|
const n = e.slice(0, t).reduce((s, u) => s + u, 0), a = o.slice(t + 1, e.length - 1).reduce((s, u) => s + u, 0);
|
|
1012
1023
|
return Math.max(
|
|
1013
|
-
|
|
1014
|
-
r - n - a -
|
|
1024
|
+
Wt,
|
|
1025
|
+
r - n - a - Wt
|
|
1015
1026
|
);
|
|
1016
1027
|
}
|
|
1017
|
-
function
|
|
1028
|
+
function Cr(t, e) {
|
|
1018
1029
|
return Math.random() * (e - t) + t;
|
|
1019
1030
|
}
|
|
1020
|
-
function
|
|
1031
|
+
function wr(t) {
|
|
1021
1032
|
return Object.fromEntries(
|
|
1022
1033
|
M.map((e) => [
|
|
1023
1034
|
e,
|
|
1024
|
-
typeof t[e] == "number" ? t[e] :
|
|
1035
|
+
typeof t[e] == "number" ? t[e] : Je[e]
|
|
1025
1036
|
])
|
|
1026
1037
|
);
|
|
1027
1038
|
}
|
|
@@ -1033,67 +1044,67 @@ function ce(t, e, o = 0) {
|
|
|
1033
1044
|
])
|
|
1034
1045
|
);
|
|
1035
1046
|
}
|
|
1036
|
-
function
|
|
1047
|
+
function xr(t, e, o, r, n, a) {
|
|
1037
1048
|
return t.slice(0, e).map((s, u) => {
|
|
1038
|
-
const m =
|
|
1049
|
+
const m = ct[u], i = dt[u], p = ut[u];
|
|
1039
1050
|
return {
|
|
1040
1051
|
key: s,
|
|
1041
|
-
textPrefix:
|
|
1052
|
+
textPrefix: ar[s],
|
|
1042
1053
|
widthKey: M[u],
|
|
1043
1054
|
width: o[M[u]],
|
|
1044
1055
|
paddingLeftKey: m,
|
|
1045
1056
|
paddingRightKey: i,
|
|
1046
|
-
paddingBottomKey:
|
|
1057
|
+
paddingBottomKey: p,
|
|
1047
1058
|
paddingLeft: r[m],
|
|
1048
1059
|
paddingRight: n[i],
|
|
1049
|
-
paddingBottom: a[
|
|
1060
|
+
paddingBottom: a[p]
|
|
1050
1061
|
};
|
|
1051
1062
|
});
|
|
1052
1063
|
}
|
|
1053
|
-
function
|
|
1054
|
-
const { prefix: i } =
|
|
1064
|
+
function Fr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode: n, activeEvent: a, layoutId: s, portalId: u, onUpdateSettings: m }) {
|
|
1065
|
+
const { prefix: i } = Fo(), p = !!n, {
|
|
1055
1066
|
columns: L,
|
|
1056
1067
|
type: O,
|
|
1057
1068
|
wrapperWidth: c,
|
|
1058
1069
|
entriesCount: R,
|
|
1059
1070
|
cellMinHeight: v,
|
|
1060
|
-
dividerWidth:
|
|
1071
|
+
dividerWidth: D,
|
|
1061
1072
|
showVisibility: _,
|
|
1062
|
-
cut:
|
|
1063
|
-
showCut:
|
|
1064
|
-
cutCellMinHeight:
|
|
1073
|
+
cut: V,
|
|
1074
|
+
showCut: w,
|
|
1075
|
+
cutCellMinHeight: B,
|
|
1065
1076
|
cutLabel: rt,
|
|
1066
|
-
imageSize:
|
|
1067
|
-
imageOnHover:
|
|
1077
|
+
imageSize: j,
|
|
1078
|
+
imageOnHover: kt,
|
|
1068
1079
|
imagePosition: he = "cursor",
|
|
1069
|
-
imageInterpolation:
|
|
1080
|
+
imageInterpolation: Pe = "on",
|
|
1070
1081
|
entryHoverEffect: At,
|
|
1071
|
-
entryHoverShowOption:
|
|
1072
|
-
rowPaddingTop:
|
|
1073
|
-
rowPaddingBottom:
|
|
1074
|
-
rowPaddingTopB:
|
|
1075
|
-
columnsOrder:
|
|
1076
|
-
textPaddingLR:
|
|
1077
|
-
textColor:
|
|
1078
|
-
backgroundColor:
|
|
1079
|
-
dividerColor:
|
|
1080
|
-
textHoverColor:
|
|
1081
|
-
backgroundHoverColor:
|
|
1082
|
-
dividerHoverColor:
|
|
1083
|
-
} = t, [me,
|
|
1084
|
-
!!(
|
|
1085
|
-
|
|
1086
|
-
),
|
|
1087
|
-
|
|
1082
|
+
entryHoverShowOption: Gt,
|
|
1083
|
+
rowPaddingTop: to,
|
|
1084
|
+
rowPaddingBottom: eo,
|
|
1085
|
+
rowPaddingTopB: oo,
|
|
1086
|
+
columnsOrder: Bt,
|
|
1087
|
+
textPaddingLR: ro,
|
|
1088
|
+
textColor: no,
|
|
1089
|
+
backgroundColor: io,
|
|
1090
|
+
dividerColor: ao,
|
|
1091
|
+
textHoverColor: lo,
|
|
1092
|
+
backgroundHoverColor: so,
|
|
1093
|
+
dividerHoverColor: co
|
|
1094
|
+
} = t, [me, Et] = Kt(void 0), [x, St] = Kt(null), Mt = Y(null), I = kt === "on" && (!o || r), Ot = he === "cursor", uo = Ot && Pe === "on", { anchorRef: ho, onShow: pe, onCursorMove: fe, exit: Jt } = Yo(
|
|
1095
|
+
!!(I && x !== null),
|
|
1096
|
+
uo
|
|
1097
|
+
), _t = (V ?? 0) > 0, f = O === "b", ht = Y(null), $e = Y(null), [Ft, Ht] = Kt(null), [mt, ve] = Kt(Tt), ge = Ge(mt), mo = Math.max(0, ((c ?? 0) - ge) / 2), pt = Math.min(ro ?? 0, mo), Nt = Math.max(pt, st), ye = ((c ?? 0) + ge) / 2;
|
|
1098
|
+
zt(() => {
|
|
1088
1099
|
if (!o) {
|
|
1089
|
-
ve(
|
|
1100
|
+
ve(Tt);
|
|
1090
1101
|
return;
|
|
1091
1102
|
}
|
|
1092
1103
|
const l = () => {
|
|
1093
|
-
ve(
|
|
1104
|
+
ve(ur(ht.current));
|
|
1094
1105
|
};
|
|
1095
1106
|
l();
|
|
1096
|
-
const d =
|
|
1107
|
+
const d = ht.current;
|
|
1097
1108
|
if (!d)
|
|
1098
1109
|
return;
|
|
1099
1110
|
const h = new ResizeObserver(l);
|
|
@@ -1102,44 +1113,44 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1102
1113
|
for (; y && !y.style.getPropertyValue("--cntrl-article-width"); )
|
|
1103
1114
|
y = y.parentElement;
|
|
1104
1115
|
return y && h.observe(y), () => h.disconnect();
|
|
1105
|
-
}, [o, s]),
|
|
1106
|
-
|
|
1107
|
-
}, [
|
|
1108
|
-
o && !r &&
|
|
1116
|
+
}, [o, s]), wt(() => {
|
|
1117
|
+
Et(void 0);
|
|
1118
|
+
}, [V, w, e, R]), wt(() => {
|
|
1119
|
+
o && !r && Et(void 0);
|
|
1109
1120
|
}, [o, r]);
|
|
1110
|
-
const
|
|
1111
|
-
textColor:
|
|
1112
|
-
backgroundColor:
|
|
1113
|
-
dividerColor:
|
|
1114
|
-
textHoverColor:
|
|
1115
|
-
backgroundHoverColor:
|
|
1116
|
-
dividerHoverColor:
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1121
|
+
const po = _o(i, {
|
|
1122
|
+
textColor: no,
|
|
1123
|
+
backgroundColor: io,
|
|
1124
|
+
dividerColor: ao,
|
|
1125
|
+
textHoverColor: lo,
|
|
1126
|
+
backgroundHoverColor: so,
|
|
1127
|
+
dividerHoverColor: co
|
|
1128
|
+
}, cr, dr), fo = a && a !== "default" ? `${i}-state-${a}` : "", $o = `${!o || r ? At === "default" ? `${i}-entry-hover-default` : At === "blinds" ? `${i}-entry-hover-blinds` : At === "reveal" ? `${i}-entry-hover-reveal` : "" : ""} ${fo}`.trim(), nt = At === "reveal" && (!o || r), Dt = (_ == null ? void 0 : _[0]) ?? !1, ft = (_ == null ? void 0 : _[1]) ?? !1, $t = Y(t), Zt = Y(s);
|
|
1129
|
+
wt(() => {
|
|
1119
1130
|
if (!m || !o) {
|
|
1120
|
-
|
|
1131
|
+
$t.current = t, Zt.current = s;
|
|
1121
1132
|
return;
|
|
1122
1133
|
}
|
|
1123
|
-
if (
|
|
1124
|
-
|
|
1134
|
+
if (Zt.current !== s) {
|
|
1135
|
+
$t.current = t, Zt.current = s;
|
|
1125
1136
|
return;
|
|
1126
1137
|
}
|
|
1127
|
-
const l =
|
|
1138
|
+
const l = $t.current;
|
|
1128
1139
|
if (!(l !== t))
|
|
1129
1140
|
return;
|
|
1130
1141
|
if (typeof l.columns == "number" && typeof t.columns == "number" && l.columns !== t.columns) {
|
|
1131
|
-
|
|
1142
|
+
$t.current = t;
|
|
1132
1143
|
return;
|
|
1133
1144
|
}
|
|
1134
|
-
const h =
|
|
1145
|
+
const h = yr(
|
|
1135
1146
|
t,
|
|
1136
1147
|
l,
|
|
1137
|
-
{ designWidth:
|
|
1148
|
+
{ designWidth: mt }
|
|
1138
1149
|
);
|
|
1139
|
-
|
|
1140
|
-
}, [t, m, o, s,
|
|
1141
|
-
const
|
|
1142
|
-
() =>
|
|
1150
|
+
$t.current = t, Qe(t, h) && m(h);
|
|
1151
|
+
}, [t, m, o, s, mt]);
|
|
1152
|
+
const q = E(
|
|
1153
|
+
() => wr(t),
|
|
1143
1154
|
[
|
|
1144
1155
|
t.AColumnWidth,
|
|
1145
1156
|
t.BColumnWidth,
|
|
@@ -1148,7 +1159,7 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1148
1159
|
t.EColumnWidth
|
|
1149
1160
|
]
|
|
1150
1161
|
), be = E(
|
|
1151
|
-
() => ce(t,
|
|
1162
|
+
() => ce(t, ct),
|
|
1152
1163
|
[
|
|
1153
1164
|
t.AColumnPaddingLeft,
|
|
1154
1165
|
t.BColumnPaddingLeft,
|
|
@@ -1157,7 +1168,7 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1157
1168
|
t.EColumnPaddingLeft
|
|
1158
1169
|
]
|
|
1159
1170
|
), Ce = E(
|
|
1160
|
-
() => ce(t,
|
|
1171
|
+
() => ce(t, dt),
|
|
1161
1172
|
[
|
|
1162
1173
|
t.AColumnPaddingRight,
|
|
1163
1174
|
t.BColumnPaddingRight,
|
|
@@ -1166,7 +1177,7 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1166
1177
|
t.EColumnPaddingRight
|
|
1167
1178
|
]
|
|
1168
1179
|
), we = E(
|
|
1169
|
-
() => ce(t,
|
|
1180
|
+
() => ce(t, ut),
|
|
1170
1181
|
[
|
|
1171
1182
|
t.AColumnPaddingBottom,
|
|
1172
1183
|
t.BColumnPaddingBottom,
|
|
@@ -1174,102 +1185,103 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1174
1185
|
t.DColumnPaddingBottom,
|
|
1175
1186
|
t.EColumnPaddingBottom
|
|
1176
1187
|
]
|
|
1177
|
-
), xe = E(() => Array.isArray(
|
|
1178
|
-
() =>
|
|
1188
|
+
), xe = E(() => Array.isArray(Bt) && Bt.length > 0 ? Bt : [...Yt], [Bt]), S = E(
|
|
1189
|
+
() => xr(
|
|
1179
1190
|
xe,
|
|
1180
1191
|
L,
|
|
1181
|
-
|
|
1192
|
+
q,
|
|
1182
1193
|
be,
|
|
1183
1194
|
Ce,
|
|
1184
1195
|
we
|
|
1185
1196
|
),
|
|
1186
|
-
[xe, L,
|
|
1187
|
-
), Q =
|
|
1188
|
-
() => M.slice(0, L).map((l) =>
|
|
1189
|
-
[L,
|
|
1190
|
-
),
|
|
1191
|
-
() => ue(L, Q,
|
|
1192
|
-
[L, Q,
|
|
1193
|
-
),
|
|
1194
|
-
() =>
|
|
1195
|
-
[L, Q,
|
|
1197
|
+
[xe, L, q, be, Ce, we]
|
|
1198
|
+
), Q = Lt(t), vo = E(
|
|
1199
|
+
() => M.slice(0, L).map((l) => q[l]),
|
|
1200
|
+
[L, q]
|
|
1201
|
+
), Qt = E(
|
|
1202
|
+
() => ue(L, Q, q),
|
|
1203
|
+
[L, Q, q]
|
|
1204
|
+
), K = E(
|
|
1205
|
+
() => Xt(L, Q, q),
|
|
1206
|
+
[L, Q, q]
|
|
1196
1207
|
), it = E(
|
|
1197
|
-
() => S.map((l, d) =>
|
|
1198
|
-
|
|
1208
|
+
() => S.map((l, d) => Ze(
|
|
1209
|
+
K[d] ?? 0,
|
|
1199
1210
|
l.paddingLeft,
|
|
1200
1211
|
l.paddingRight
|
|
1201
1212
|
)),
|
|
1202
|
-
[S,
|
|
1213
|
+
[S, K]
|
|
1203
1214
|
), P = E(() => {
|
|
1204
1215
|
const l = R === 0 ? 1 / 0 : R;
|
|
1205
1216
|
return (e ?? []).slice(0, l).map((h, y) => ({
|
|
1206
1217
|
id: y,
|
|
1207
1218
|
cells: Object.fromEntries(
|
|
1208
|
-
|
|
1219
|
+
Yt.map((T) => [T, h[T] ?? ""])
|
|
1209
1220
|
),
|
|
1210
1221
|
image: h.image,
|
|
1211
1222
|
link: h.link
|
|
1212
1223
|
}));
|
|
1213
|
-
}, [e, R]),
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
].filter(Boolean).join(" "),
|
|
1217
|
-
if (!
|
|
1218
|
-
const l = me ??
|
|
1219
|
-
if (!
|
|
1220
|
-
|
|
1224
|
+
}, [e, R]), Pt = _t ? me ?? V : P.length, tt = E(() => _t ? P.slice(0, Pt) : P, [P, _t, Pt]), at = _t && Pt < P.length, go = tt.length > 1 || at, Le = [
|
|
1225
|
+
Dt ? `${i}-divider-top` : "",
|
|
1226
|
+
ft || go ? `${i}-divider-bottom` : ""
|
|
1227
|
+
].filter(Boolean).join(" "), te = !o || r, yo = () => {
|
|
1228
|
+
if (!te) return;
|
|
1229
|
+
const l = me ?? V;
|
|
1230
|
+
if (!w) {
|
|
1231
|
+
Et(P.length);
|
|
1221
1232
|
return;
|
|
1222
1233
|
}
|
|
1223
|
-
|
|
1224
|
-
}, g = (l) => ot(l, o ?? !1),
|
|
1234
|
+
Et(Math.min(l + w, P.length));
|
|
1235
|
+
}, g = (l) => ot(l, o ?? !1), Vt = f ? oo ?? 0 : to ?? 0, It = eo ?? 0, ee = v ?? 0, bo = Math.max(It, se), Co = Oe(
|
|
1225
1236
|
0,
|
|
1226
1237
|
tt.length,
|
|
1227
|
-
|
|
1228
|
-
|
|
1238
|
+
Dt,
|
|
1239
|
+
ft,
|
|
1229
1240
|
at,
|
|
1230
|
-
|
|
1241
|
+
D ?? 0,
|
|
1231
1242
|
o ?? !1
|
|
1232
|
-
).borderTopWidth,
|
|
1243
|
+
).borderTopWidth, wo = f ? "rowPaddingTopB" : "rowPaddingTop", oe = S[0], re = S[S.length - 1], vt = it[0], gt = it[it.length - 1], xo = oe && vt ? Math.max(vt.paddingLeft, st) : 0, Re = re && gt ? Math.max(gt.paddingRight, st) : 0, Lo = Q, Te = (l, d) => Xo(
|
|
1233
1244
|
he,
|
|
1234
|
-
|
|
1235
|
-
|
|
1245
|
+
ht.current,
|
|
1246
|
+
Ot ? l : null,
|
|
1236
1247
|
d
|
|
1237
|
-
),
|
|
1238
|
-
if (!
|
|
1248
|
+
), Ro = (l, d) => {
|
|
1249
|
+
if (!I) return;
|
|
1239
1250
|
const h = l.image;
|
|
1240
1251
|
if (!(h != null && h.assetId)) {
|
|
1241
|
-
|
|
1252
|
+
Jt(() => St(null));
|
|
1242
1253
|
return;
|
|
1243
1254
|
}
|
|
1244
|
-
const y = (
|
|
1245
|
-
if (
|
|
1246
|
-
fe(H,
|
|
1255
|
+
const y = (j == null ? void 0 : j.min) ?? 80, T = (j == null ? void 0 : j.max) ?? 320, k = (x == null ? void 0 : x.rowId) === l.id, W = k ? x.widthPx : Cr(y, T), { x: H, y: $ } = Te(d, W);
|
|
1256
|
+
if (k && Ot) {
|
|
1257
|
+
fe(H, $);
|
|
1247
1258
|
return;
|
|
1248
1259
|
}
|
|
1249
|
-
|
|
1260
|
+
St({
|
|
1250
1261
|
rowId: l.id,
|
|
1251
1262
|
assetId: h.assetId,
|
|
1252
1263
|
objectFit: "contain",
|
|
1253
|
-
isVideo:
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1264
|
+
isVideo: Vo(h),
|
|
1265
|
+
embed: ze(h) ? h : void 0,
|
|
1266
|
+
widthPx: W
|
|
1267
|
+
}), Mt.current = { x: H, y: $ };
|
|
1268
|
+
}, To = (l) => {
|
|
1269
|
+
if (!I || !x || !Ot) return;
|
|
1270
|
+
const { x: d, y: h } = Te(l, x.widthPx);
|
|
1259
1271
|
fe(d, h);
|
|
1260
|
-
},
|
|
1261
|
-
|
|
1262
|
-
},
|
|
1263
|
-
nt && Se(l, i), !(!
|
|
1272
|
+
}, Wo = () => {
|
|
1273
|
+
x && Jt(() => St(null));
|
|
1274
|
+
}, ko = (l) => {
|
|
1275
|
+
nt && Se(l, i), !(!I || !x) && Jt(() => St(null));
|
|
1264
1276
|
}, Ao = (l) => {
|
|
1265
1277
|
nt && Me(l, i);
|
|
1266
1278
|
};
|
|
1267
|
-
|
|
1268
|
-
if (!
|
|
1269
|
-
const { x: l, y: d } =
|
|
1270
|
-
|
|
1271
|
-
}, [
|
|
1272
|
-
if (!
|
|
1279
|
+
zt(() => {
|
|
1280
|
+
if (!x || !Mt.current) return;
|
|
1281
|
+
const { x: l, y: d } = Mt.current;
|
|
1282
|
+
Mt.current = null, pe(l, d);
|
|
1283
|
+
}, [x == null ? void 0 : x.rowId, x == null ? void 0 : x.assetId, pe]), zt(() => {
|
|
1284
|
+
if (!p || f) {
|
|
1273
1285
|
Ht(null);
|
|
1274
1286
|
return;
|
|
1275
1287
|
}
|
|
@@ -1284,36 +1296,36 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1284
1296
|
Ht(null);
|
|
1285
1297
|
return;
|
|
1286
1298
|
}
|
|
1287
|
-
const
|
|
1288
|
-
Ht(
|
|
1299
|
+
const k = d.getBoundingClientRect(), W = T.getBoundingClientRect();
|
|
1300
|
+
Ht(W.top - k.top + W.height / 2);
|
|
1289
1301
|
};
|
|
1290
1302
|
h();
|
|
1291
1303
|
const y = new ResizeObserver(h);
|
|
1292
1304
|
return y.observe(l), y.observe(d), () => y.disconnect();
|
|
1293
1305
|
}, [
|
|
1306
|
+
p,
|
|
1294
1307
|
f,
|
|
1295
|
-
$,
|
|
1296
1308
|
tt,
|
|
1297
|
-
Dt,
|
|
1298
1309
|
Vt,
|
|
1299
|
-
|
|
1310
|
+
It,
|
|
1311
|
+
ee,
|
|
1300
1312
|
e,
|
|
1301
1313
|
t,
|
|
1302
1314
|
S,
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1315
|
+
K,
|
|
1316
|
+
mt,
|
|
1317
|
+
D,
|
|
1318
|
+
Dt,
|
|
1319
|
+
ft,
|
|
1308
1320
|
at
|
|
1309
1321
|
]);
|
|
1310
1322
|
const We = E(
|
|
1311
|
-
() =>
|
|
1323
|
+
() => !f && Ue.some((l) => {
|
|
1312
1324
|
const d = l.charAt(0), h = t[`${l}VerticalAlign`];
|
|
1313
|
-
return
|
|
1325
|
+
return qe(h, t, d);
|
|
1314
1326
|
}),
|
|
1315
1327
|
[
|
|
1316
|
-
|
|
1328
|
+
f,
|
|
1317
1329
|
t,
|
|
1318
1330
|
t.AColumnVerticalAlign,
|
|
1319
1331
|
t.BColumnVerticalAlign,
|
|
@@ -1322,78 +1334,78 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1322
1334
|
t.EColumnVerticalAlign
|
|
1323
1335
|
]
|
|
1324
1336
|
);
|
|
1325
|
-
|
|
1337
|
+
zt(() => {
|
|
1326
1338
|
var H;
|
|
1327
|
-
const l =
|
|
1339
|
+
const l = ht.current;
|
|
1328
1340
|
if (!l) return;
|
|
1329
1341
|
const d = () => {
|
|
1330
|
-
l.querySelectorAll("[data-list-col]").forEach((
|
|
1331
|
-
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1342
|
+
l.querySelectorAll("[data-list-col]").forEach(($) => {
|
|
1343
|
+
$.style.transform = "";
|
|
1344
|
+
const A = $.querySelector(`.${i}-list-col`);
|
|
1345
|
+
A && (A.style.minHeight = "", A.style.height = "");
|
|
1346
|
+
const G = $.querySelector(`.${i}-list-col-title`);
|
|
1347
|
+
G && (G.style.transform = "");
|
|
1336
1348
|
});
|
|
1337
1349
|
};
|
|
1338
|
-
if (
|
|
1350
|
+
if (f || !We) {
|
|
1339
1351
|
d();
|
|
1340
1352
|
return;
|
|
1341
1353
|
}
|
|
1342
1354
|
const h = () => {
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
const et =
|
|
1355
|
+
const $ = Array.from(l.querySelectorAll("[data-list-row]")), A = `${i}-list-col`, G = `${i}-baseline-probe`;
|
|
1356
|
+
$.forEach((N) => {
|
|
1357
|
+
N.querySelectorAll("[data-list-col]").forEach((F) => {
|
|
1358
|
+
F.style.transform = "";
|
|
1359
|
+
const z = F.querySelector(`.${A}`);
|
|
1360
|
+
z && (z.style.minHeight = "", z.style.height = "");
|
|
1361
|
+
const et = F.querySelector(`.${i}-list-col-title`);
|
|
1350
1362
|
et && (et.style.transform = "");
|
|
1351
1363
|
});
|
|
1352
|
-
}),
|
|
1353
|
-
const
|
|
1354
|
-
|
|
1355
|
-
}), l.offsetHeight,
|
|
1356
|
-
const
|
|
1357
|
-
const
|
|
1358
|
-
el:
|
|
1359
|
-
titleEl:
|
|
1360
|
-
letter:
|
|
1361
|
-
kind:
|
|
1362
|
-
anchor:
|
|
1364
|
+
}), $.forEach((N) => {
|
|
1365
|
+
const F = Array.from(N.querySelectorAll("[data-list-col]"));
|
|
1366
|
+
nr(N, F, A);
|
|
1367
|
+
}), l.offsetHeight, $.forEach((N) => {
|
|
1368
|
+
const F = Array.from(N.querySelectorAll("[data-list-col]")), z = N.getBoundingClientRect().top, et = /* @__PURE__ */ new Map(), ne = F.map((b) => {
|
|
1369
|
+
const J = b.querySelector(`.${i}-list-col-title`), lt = {
|
|
1370
|
+
el: b,
|
|
1371
|
+
titleEl: J,
|
|
1372
|
+
letter: b.getAttribute("data-col-letter") ?? "",
|
|
1373
|
+
kind: b.getAttribute("data-valign") ?? "top",
|
|
1374
|
+
anchor: b.getAttribute("data-valign-anchor")
|
|
1363
1375
|
};
|
|
1364
|
-
return et.set(
|
|
1365
|
-
}),
|
|
1366
|
-
const
|
|
1367
|
-
if (
|
|
1368
|
-
const
|
|
1369
|
-
if (
|
|
1376
|
+
return et.set(lt.letter, lt), lt;
|
|
1377
|
+
}), yt = /* @__PURE__ */ new Map(), bt = (b, J) => {
|
|
1378
|
+
const lt = yt.get(b.letter);
|
|
1379
|
+
if (lt !== void 0) return lt;
|
|
1380
|
+
const ke = b.anchor ? et.get(b.anchor) : void 0;
|
|
1381
|
+
if (b.kind !== "baseline" || !ke || J.has(b.letter)) {
|
|
1370
1382
|
const Be = le(
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1383
|
+
b,
|
|
1384
|
+
z,
|
|
1385
|
+
A,
|
|
1386
|
+
G
|
|
1375
1387
|
);
|
|
1376
|
-
return
|
|
1388
|
+
return yt.set(b.letter, Be), Be;
|
|
1377
1389
|
}
|
|
1378
|
-
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
),
|
|
1387
|
-
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1390
|
+
J.add(b.letter);
|
|
1391
|
+
const Eo = bt(ke, J);
|
|
1392
|
+
J.delete(b.letter);
|
|
1393
|
+
const So = le(
|
|
1394
|
+
b,
|
|
1395
|
+
z,
|
|
1396
|
+
A,
|
|
1397
|
+
G
|
|
1398
|
+
), Mo = Eo - So;
|
|
1399
|
+
ir(b.titleEl, Mo);
|
|
1400
|
+
const Ae = le(
|
|
1401
|
+
b,
|
|
1402
|
+
z,
|
|
1403
|
+
A,
|
|
1404
|
+
G
|
|
1393
1405
|
);
|
|
1394
|
-
return
|
|
1406
|
+
return yt.set(b.letter, Ae), Ae;
|
|
1395
1407
|
};
|
|
1396
|
-
|
|
1408
|
+
ne.forEach((b) => bt(b, /* @__PURE__ */ new Set()));
|
|
1397
1409
|
});
|
|
1398
1410
|
};
|
|
1399
1411
|
let y = null;
|
|
@@ -1403,144 +1415,144 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1403
1415
|
}));
|
|
1404
1416
|
};
|
|
1405
1417
|
h();
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1408
|
-
let
|
|
1418
|
+
const k = new ResizeObserver(() => T());
|
|
1419
|
+
k.observe(l);
|
|
1420
|
+
let W = !1;
|
|
1409
1421
|
return typeof document < "u" && ((H = document.fonts) != null && H.ready) && document.fonts.ready.then(() => {
|
|
1410
|
-
|
|
1422
|
+
W || T();
|
|
1411
1423
|
}), () => {
|
|
1412
|
-
|
|
1424
|
+
W = !0, y !== null && (cancelAnimationFrame(y), y = null), k.disconnect(), d();
|
|
1413
1425
|
};
|
|
1414
1426
|
}, [
|
|
1415
1427
|
We,
|
|
1416
|
-
|
|
1428
|
+
f,
|
|
1417
1429
|
t,
|
|
1418
1430
|
e,
|
|
1419
|
-
|
|
1431
|
+
mt,
|
|
1420
1432
|
tt,
|
|
1421
|
-
|
|
1433
|
+
K
|
|
1422
1434
|
]);
|
|
1423
|
-
const
|
|
1424
|
-
return /* @__PURE__ */
|
|
1425
|
-
/* @__PURE__ */
|
|
1426
|
-
/* @__PURE__ */
|
|
1435
|
+
const Bo = E(() => jo(i), [i]);
|
|
1436
|
+
return /* @__PURE__ */ U(Ee, { children: [
|
|
1437
|
+
/* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: Bo } }),
|
|
1438
|
+
/* @__PURE__ */ C("div", { style: po, children: /* @__PURE__ */ U(
|
|
1427
1439
|
"div",
|
|
1428
1440
|
{
|
|
1429
|
-
ref:
|
|
1430
|
-
className: `${i}-wrapper ${
|
|
1441
|
+
ref: ht,
|
|
1442
|
+
className: `${i}-wrapper ${$o}${Le ? ` ${Le}` : ""}${f ? ` ${i}-type-b` : ""}`.trim(),
|
|
1431
1443
|
style: {
|
|
1432
1444
|
width: ot(c ?? 0, o)
|
|
1433
1445
|
},
|
|
1434
|
-
onMouseMove:
|
|
1435
|
-
onMouseLeave:
|
|
1446
|
+
onMouseMove: I ? To : void 0,
|
|
1447
|
+
onMouseLeave: I ? Wo : void 0,
|
|
1436
1448
|
children: [
|
|
1437
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ U("div", { style: { width: "100%", position: "relative" }, children: [
|
|
1438
1450
|
tt.map((l, d) => {
|
|
1439
|
-
var W;
|
|
1440
|
-
const h = (((
|
|
1451
|
+
var k, W, H;
|
|
1452
|
+
const h = (((k = l.link) == null ? void 0 : k.value.length) ?? 0) > 0, y = h && (!o || r) ? "a" : "div", T = Oe(
|
|
1441
1453
|
d,
|
|
1442
1454
|
tt.length,
|
|
1443
|
-
|
|
1444
|
-
|
|
1455
|
+
Dt,
|
|
1456
|
+
ft,
|
|
1445
1457
|
at,
|
|
1446
|
-
|
|
1458
|
+
D ?? 0,
|
|
1447
1459
|
o ?? !1
|
|
1448
1460
|
);
|
|
1449
|
-
return /* @__PURE__ */
|
|
1461
|
+
return /* @__PURE__ */ U(
|
|
1450
1462
|
y,
|
|
1451
1463
|
{
|
|
1452
|
-
ref: d === 0 ? (
|
|
1453
|
-
$e.current =
|
|
1464
|
+
ref: d === 0 ? ($) => {
|
|
1465
|
+
$e.current = $;
|
|
1454
1466
|
} : void 0,
|
|
1455
|
-
className: `${i}-list-item${h ||
|
|
1456
|
-
...h ? { href: l.link, target: "_blank" } : {},
|
|
1467
|
+
className: `${i}-list-item${h || Gt === "always" ? ` ${i}-list-item-has-link` : ""}${at && d === tt.length - 1 ? ` ${i}-list-item-before-cut` : ""}`,
|
|
1468
|
+
...h ? { href: (W = l.link) == null ? void 0 : W.value, target: ((H = l.link) == null ? void 0 : H.target) === "blank" ? "_blank" : "_self" } : {},
|
|
1457
1469
|
style: T,
|
|
1458
|
-
onMouseEnter: (
|
|
1459
|
-
nt && (h ||
|
|
1470
|
+
onMouseEnter: ($) => {
|
|
1471
|
+
nt && (h || Gt === "always") && Se($, i), I && Ro(l, $);
|
|
1460
1472
|
},
|
|
1461
|
-
onMouseLeave: (
|
|
1462
|
-
nt && (h ||
|
|
1473
|
+
onMouseLeave: ($) => {
|
|
1474
|
+
nt && (h || Gt === "always") && Me($, i);
|
|
1463
1475
|
},
|
|
1464
1476
|
children: [
|
|
1465
|
-
|
|
1477
|
+
Vt > 0 && /* @__PURE__ */ C(
|
|
1466
1478
|
"div",
|
|
1467
1479
|
{
|
|
1468
1480
|
className: `${i}-row-padding-handle`,
|
|
1469
|
-
style: { height: g(
|
|
1481
|
+
style: { height: g(Vt) }
|
|
1470
1482
|
}
|
|
1471
1483
|
),
|
|
1472
|
-
/* @__PURE__ */
|
|
1484
|
+
/* @__PURE__ */ U(
|
|
1473
1485
|
"div",
|
|
1474
1486
|
{
|
|
1475
|
-
className: `${i}-list-cols-row${
|
|
1476
|
-
|
|
1477
|
-
style:
|
|
1487
|
+
className: `${i}-list-cols-row${f ? "" : ` ${i}-list-cols-row-h`}${p && d === 0 && f ? ` ${i}-list-cols-row-controls` : ""}`,
|
|
1488
|
+
...f ? {} : { "data-list-row": "" },
|
|
1489
|
+
style: f ? void 0 : { minHeight: g(ee) },
|
|
1478
1490
|
children: [
|
|
1479
|
-
S.map((
|
|
1480
|
-
const
|
|
1481
|
-
paddingLeft: g(
|
|
1482
|
-
paddingRight: g(
|
|
1491
|
+
S.map(($, A) => {
|
|
1492
|
+
const G = A === S.length - 1, N = it[A], F = $.paddingBottom, z = Ko(l.cells[$.key]), et = f && F > 0, ne = f ? { minHeight: g(ee) } : { width: g(K[A]) }, yt = f ? {
|
|
1493
|
+
paddingLeft: g(pt),
|
|
1494
|
+
paddingRight: g(pt)
|
|
1483
1495
|
} : {
|
|
1484
|
-
paddingLeft: g(
|
|
1485
|
-
paddingRight: g(
|
|
1486
|
-
},
|
|
1487
|
-
t[`${
|
|
1488
|
-
) :
|
|
1489
|
-
t[`${
|
|
1496
|
+
paddingLeft: g(N.paddingLeft),
|
|
1497
|
+
paddingRight: g(N.paddingRight)
|
|
1498
|
+
}, bt = $.textPrefix.charAt(0), b = f ? Qo(
|
|
1499
|
+
t[`${$.textPrefix}VerticalAlign`]
|
|
1500
|
+
) : Zo(
|
|
1501
|
+
t[`${$.textPrefix}VerticalAlign`],
|
|
1490
1502
|
t,
|
|
1491
|
-
|
|
1492
|
-
),
|
|
1493
|
-
return /* @__PURE__ */
|
|
1503
|
+
bt
|
|
1504
|
+
), J = f && p && d === 0;
|
|
1505
|
+
return /* @__PURE__ */ U(
|
|
1494
1506
|
"div",
|
|
1495
1507
|
{
|
|
1496
|
-
className:
|
|
1497
|
-
|
|
1508
|
+
className: f ? `${i}-list-col-wrap` : void 0,
|
|
1509
|
+
...f ? {} : {
|
|
1498
1510
|
"data-list-col": "",
|
|
1499
|
-
"data-col-letter":
|
|
1500
|
-
"data-valign":
|
|
1501
|
-
...
|
|
1511
|
+
"data-col-letter": bt,
|
|
1512
|
+
"data-valign": b.kind,
|
|
1513
|
+
...b.kind === "baseline" ? { "data-valign-anchor": b.anchorLetter } : {}
|
|
1502
1514
|
},
|
|
1503
1515
|
children: [
|
|
1504
|
-
/* @__PURE__ */
|
|
1516
|
+
/* @__PURE__ */ C(
|
|
1505
1517
|
"div",
|
|
1506
1518
|
{
|
|
1507
|
-
className: `${i}-list-col${
|
|
1519
|
+
className: `${i}-list-col${G ? ` ${i}-list-col-last` : ""}`,
|
|
1508
1520
|
style: {
|
|
1509
|
-
...
|
|
1510
|
-
...
|
|
1511
|
-
|
|
1521
|
+
...yt,
|
|
1522
|
+
...ne,
|
|
1523
|
+
...f ? { justifyContent: He(b.kind) } : {}
|
|
1512
1524
|
},
|
|
1513
|
-
"data-test":
|
|
1514
|
-
children: /* @__PURE__ */
|
|
1525
|
+
"data-test": $.width,
|
|
1526
|
+
children: /* @__PURE__ */ C(
|
|
1515
1527
|
"span",
|
|
1516
1528
|
{
|
|
1517
1529
|
className: De(
|
|
1518
1530
|
t,
|
|
1519
|
-
|
|
1531
|
+
$.textPrefix,
|
|
1520
1532
|
`${i}-list-col-title`,
|
|
1521
1533
|
`${i}-text-tight-leading`
|
|
1522
1534
|
),
|
|
1523
1535
|
style: {
|
|
1524
|
-
...Ne(
|
|
1525
|
-
...Ve(t,
|
|
1526
|
-
|
|
1536
|
+
...Ne(jt(t, $.textPrefix), o),
|
|
1537
|
+
...Ve(t, $.textPrefix, i, o),
|
|
1538
|
+
...f ? {} : tr(b.kind)
|
|
1527
1539
|
},
|
|
1528
|
-
children:
|
|
1540
|
+
children: z ? l.cells[$.key] ?? null : f ? " " : null
|
|
1529
1541
|
}
|
|
1530
1542
|
)
|
|
1531
1543
|
}
|
|
1532
1544
|
),
|
|
1533
|
-
|
|
1545
|
+
et && /* @__PURE__ */ C(
|
|
1534
1546
|
"div",
|
|
1535
1547
|
{
|
|
1536
1548
|
className: `${i}-row-padding-handle`,
|
|
1537
1549
|
style: { height: g(F) }
|
|
1538
1550
|
}
|
|
1539
1551
|
),
|
|
1540
|
-
|
|
1552
|
+
J && /* @__PURE__ */ C(
|
|
1541
1553
|
"div",
|
|
1542
1554
|
{
|
|
1543
|
-
"data-controls":
|
|
1555
|
+
"data-controls": $.paddingBottomKey,
|
|
1544
1556
|
"data-controls-axis": "y",
|
|
1545
1557
|
"data-controls-variant": "column-padding",
|
|
1546
1558
|
"data-controls-min": "0",
|
|
@@ -1557,11 +1569,11 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1557
1569
|
)
|
|
1558
1570
|
]
|
|
1559
1571
|
},
|
|
1560
|
-
|
|
1572
|
+
$.key
|
|
1561
1573
|
);
|
|
1562
1574
|
}),
|
|
1563
|
-
|
|
1564
|
-
/* @__PURE__ */
|
|
1575
|
+
p && d === 0 && f && /* @__PURE__ */ U(Ee, { children: [
|
|
1576
|
+
/* @__PURE__ */ C(
|
|
1565
1577
|
"div",
|
|
1566
1578
|
{
|
|
1567
1579
|
"data-controls": "textPaddingLR",
|
|
@@ -1576,12 +1588,12 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1576
1588
|
style: {
|
|
1577
1589
|
top: 0,
|
|
1578
1590
|
left: 0,
|
|
1579
|
-
width: g(
|
|
1591
|
+
width: g(Nt),
|
|
1580
1592
|
height: "100%"
|
|
1581
1593
|
}
|
|
1582
1594
|
}
|
|
1583
1595
|
),
|
|
1584
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ C(
|
|
1585
1597
|
"div",
|
|
1586
1598
|
{
|
|
1587
1599
|
"data-controls": "textPaddingLR",
|
|
@@ -1596,8 +1608,8 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1596
1608
|
className: `${i}-control-anchor`,
|
|
1597
1609
|
style: {
|
|
1598
1610
|
top: 0,
|
|
1599
|
-
left: g(Math.max(
|
|
1600
|
-
width: g(
|
|
1611
|
+
left: g(Math.max(Nt, Q - Nt)),
|
|
1612
|
+
width: g(Nt),
|
|
1601
1613
|
height: "100%"
|
|
1602
1614
|
}
|
|
1603
1615
|
}
|
|
@@ -1606,14 +1618,14 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1606
1618
|
]
|
|
1607
1619
|
}
|
|
1608
1620
|
),
|
|
1609
|
-
|
|
1621
|
+
!f && It > 0 && /* @__PURE__ */ C(
|
|
1610
1622
|
"div",
|
|
1611
1623
|
{
|
|
1612
1624
|
className: `${i}-row-padding-handle`,
|
|
1613
|
-
style: { height: g(
|
|
1625
|
+
style: { height: g(It) }
|
|
1614
1626
|
}
|
|
1615
1627
|
),
|
|
1616
|
-
|
|
1628
|
+
p && d === 0 && !f && /* @__PURE__ */ C(
|
|
1617
1629
|
"div",
|
|
1618
1630
|
{
|
|
1619
1631
|
"data-controls": "rowPaddingBottom",
|
|
@@ -1627,7 +1639,7 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1627
1639
|
bottom: 0,
|
|
1628
1640
|
left: 0,
|
|
1629
1641
|
width: "100%",
|
|
1630
|
-
height: g(
|
|
1642
|
+
height: g(bo)
|
|
1631
1643
|
}
|
|
1632
1644
|
}
|
|
1633
1645
|
)
|
|
@@ -1636,81 +1648,81 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1636
1648
|
l.id
|
|
1637
1649
|
);
|
|
1638
1650
|
}),
|
|
1639
|
-
|
|
1651
|
+
p && /* @__PURE__ */ C("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ C(
|
|
1640
1652
|
"div",
|
|
1641
1653
|
{
|
|
1642
|
-
"data-controls":
|
|
1654
|
+
"data-controls": wo,
|
|
1643
1655
|
"data-controls-axis": "y",
|
|
1644
1656
|
"data-controls-variant": "row-padding",
|
|
1645
1657
|
"data-controls-min": "0",
|
|
1646
1658
|
"data-controls-center-only-drag": "",
|
|
1647
|
-
"data-controls-hit-placement":
|
|
1659
|
+
"data-controls-hit-placement": f ? "center" : "left-y",
|
|
1648
1660
|
className: `${i}-control-anchor`,
|
|
1649
1661
|
style: {
|
|
1650
|
-
top:
|
|
1662
|
+
top: Co,
|
|
1651
1663
|
left: 0,
|
|
1652
1664
|
width: "100%",
|
|
1653
|
-
height: g(Math.max(
|
|
1665
|
+
height: g(Math.max(Vt, se))
|
|
1654
1666
|
}
|
|
1655
1667
|
}
|
|
1656
1668
|
) }, "row-padding-handles"),
|
|
1657
|
-
|
|
1658
|
-
/* @__PURE__ */
|
|
1669
|
+
p && !f && oe && re && /* @__PURE__ */ U("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
1670
|
+
/* @__PURE__ */ C(
|
|
1659
1671
|
"div",
|
|
1660
1672
|
{
|
|
1661
|
-
"data-controls":
|
|
1673
|
+
"data-controls": oe.paddingLeftKey,
|
|
1662
1674
|
"data-controls-axis": "x",
|
|
1663
1675
|
"data-controls-variant": "column-padding",
|
|
1664
1676
|
"data-controls-min": "0",
|
|
1665
1677
|
"data-controls-max-fraction": String(
|
|
1666
|
-
|
|
1678
|
+
K[0] - ((vt == null ? void 0 : vt.paddingRight) ?? 0)
|
|
1667
1679
|
),
|
|
1668
1680
|
"data-controls-center-only-drag": "",
|
|
1669
1681
|
"data-controls-hit-placement": "center-x",
|
|
1670
|
-
"data-controls-hit-top":
|
|
1682
|
+
"data-controls-hit-top": Ft ?? void 0,
|
|
1671
1683
|
className: `${i}-control-anchor`,
|
|
1672
1684
|
style: {
|
|
1673
1685
|
top: 0,
|
|
1674
1686
|
left: 0,
|
|
1675
|
-
width: g(
|
|
1687
|
+
width: g(xo),
|
|
1676
1688
|
height: "100%"
|
|
1677
1689
|
}
|
|
1678
1690
|
}
|
|
1679
1691
|
),
|
|
1680
|
-
/* @__PURE__ */
|
|
1692
|
+
/* @__PURE__ */ C(
|
|
1681
1693
|
"div",
|
|
1682
1694
|
{
|
|
1683
|
-
"data-controls":
|
|
1695
|
+
"data-controls": re.paddingRightKey,
|
|
1684
1696
|
"data-controls-axis": "x",
|
|
1685
1697
|
"data-controls-variant": "column-padding",
|
|
1686
1698
|
"data-controls-reverse": "",
|
|
1687
1699
|
"data-controls-min": "0",
|
|
1688
1700
|
"data-controls-max-fraction": String(
|
|
1689
|
-
|
|
1701
|
+
K[S.length - 1] - ((gt == null ? void 0 : gt.paddingLeft) ?? 0)
|
|
1690
1702
|
),
|
|
1691
1703
|
"data-controls-center-only-drag": "",
|
|
1692
1704
|
"data-controls-hit-placement": "center-x",
|
|
1693
|
-
"data-controls-hit-top":
|
|
1705
|
+
"data-controls-hit-top": Ft ?? void 0,
|
|
1694
1706
|
className: `${i}-control-anchor`,
|
|
1695
1707
|
style: {
|
|
1696
1708
|
top: 0,
|
|
1697
|
-
left: g(
|
|
1709
|
+
left: g(Lo - Re),
|
|
1698
1710
|
width: g(Re),
|
|
1699
1711
|
height: "100%"
|
|
1700
1712
|
}
|
|
1701
1713
|
}
|
|
1702
1714
|
)
|
|
1703
1715
|
] }, "column-edge-padding-handles"),
|
|
1704
|
-
|
|
1705
|
-
const h = S[d + 1], y =
|
|
1716
|
+
p && !f && S.slice(0, -1).map((l, d) => {
|
|
1717
|
+
const h = S[d + 1], y = Qt.slice(0, d + 1).reduce(($, A) => $ + A, 0), T = it[d], k = it[d + 1], W = Math.max(
|
|
1706
1718
|
T.paddingRight,
|
|
1707
|
-
|
|
1719
|
+
st
|
|
1708
1720
|
), H = Math.max(
|
|
1709
|
-
|
|
1710
|
-
|
|
1721
|
+
k.paddingLeft,
|
|
1722
|
+
st
|
|
1711
1723
|
);
|
|
1712
|
-
return /* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ U("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
1725
|
+
/* @__PURE__ */ C(
|
|
1714
1726
|
"div",
|
|
1715
1727
|
{
|
|
1716
1728
|
"data-controls": l.paddingRightKey,
|
|
@@ -1719,21 +1731,21 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1719
1731
|
"data-controls-reverse": "",
|
|
1720
1732
|
"data-controls-min": "0",
|
|
1721
1733
|
"data-controls-max-fraction": String(
|
|
1722
|
-
|
|
1734
|
+
K[d] - T.paddingLeft
|
|
1723
1735
|
),
|
|
1724
1736
|
"data-controls-center-only-drag": "",
|
|
1725
1737
|
"data-controls-hit-placement": "center-x",
|
|
1726
|
-
"data-controls-hit-top":
|
|
1738
|
+
"data-controls-hit-top": Ft ?? void 0,
|
|
1727
1739
|
className: `${i}-control-anchor`,
|
|
1728
1740
|
style: {
|
|
1729
1741
|
top: 0,
|
|
1730
|
-
left: g(y -
|
|
1731
|
-
width: g(
|
|
1742
|
+
left: g(y - W),
|
|
1743
|
+
width: g(W),
|
|
1732
1744
|
height: "100%"
|
|
1733
1745
|
}
|
|
1734
1746
|
}
|
|
1735
1747
|
),
|
|
1736
|
-
/* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ C(
|
|
1737
1749
|
"div",
|
|
1738
1750
|
{
|
|
1739
1751
|
"data-controls": h.paddingLeftKey,
|
|
@@ -1741,11 +1753,11 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1741
1753
|
"data-controls-variant": "column-padding",
|
|
1742
1754
|
"data-controls-min": "0",
|
|
1743
1755
|
"data-controls-max-fraction": String(
|
|
1744
|
-
|
|
1756
|
+
K[d + 1] - k.paddingRight
|
|
1745
1757
|
),
|
|
1746
1758
|
"data-controls-center-only-drag": "",
|
|
1747
1759
|
"data-controls-hit-placement": "center-x",
|
|
1748
|
-
"data-controls-hit-top":
|
|
1760
|
+
"data-controls-hit-top": Ft ?? void 0,
|
|
1749
1761
|
className: `${i}-control-anchor`,
|
|
1750
1762
|
style: {
|
|
1751
1763
|
top: 0,
|
|
@@ -1757,14 +1769,14 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1757
1769
|
)
|
|
1758
1770
|
] }, `${l.paddingRightKey}-padding`);
|
|
1759
1771
|
}),
|
|
1760
|
-
|
|
1761
|
-
const h =
|
|
1772
|
+
p && !f && S.slice(0, -1).map((l, d) => {
|
|
1773
|
+
const h = br(
|
|
1762
1774
|
d,
|
|
1763
|
-
|
|
1764
|
-
|
|
1775
|
+
Qt,
|
|
1776
|
+
vo,
|
|
1765
1777
|
Q
|
|
1766
|
-
), T =
|
|
1767
|
-
return /* @__PURE__ */
|
|
1778
|
+
), T = Qt.slice(0, d + 1).reduce((k, W) => k + W, 0) - Ie / 2;
|
|
1779
|
+
return /* @__PURE__ */ C("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ C(
|
|
1768
1780
|
"div",
|
|
1769
1781
|
{
|
|
1770
1782
|
"data-controls": l.widthKey,
|
|
@@ -1786,48 +1798,48 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1786
1798
|
})
|
|
1787
1799
|
] }),
|
|
1788
1800
|
at && (() => {
|
|
1789
|
-
const l =
|
|
1790
|
-
return /* @__PURE__ */
|
|
1801
|
+
const l = jt(t, xt), d = er(t.cutLabelVerticalAlign), h = l.textTextAlign === "justify" || f;
|
|
1802
|
+
return /* @__PURE__ */ C(
|
|
1791
1803
|
"button",
|
|
1792
1804
|
{
|
|
1793
1805
|
type: "button",
|
|
1794
1806
|
className: `${i}-cut-item`,
|
|
1795
1807
|
style: {
|
|
1796
|
-
minHeight: g(
|
|
1797
|
-
cursor:
|
|
1798
|
-
...
|
|
1799
|
-
|
|
1800
|
-
|
|
1808
|
+
minHeight: g(B ?? 0),
|
|
1809
|
+
cursor: te ? "pointer" : "default",
|
|
1810
|
+
...zo(
|
|
1811
|
+
ft,
|
|
1812
|
+
D ?? 0,
|
|
1801
1813
|
o ?? !1
|
|
1802
1814
|
)
|
|
1803
1815
|
},
|
|
1804
|
-
onClick:
|
|
1805
|
-
onMouseEnter: nt ||
|
|
1816
|
+
onClick: te ? yo : void 0,
|
|
1817
|
+
onMouseEnter: nt || I ? ko : void 0,
|
|
1806
1818
|
onMouseLeave: nt ? Ao : void 0,
|
|
1807
|
-
children: /* @__PURE__ */
|
|
1819
|
+
children: /* @__PURE__ */ C(
|
|
1808
1820
|
"div",
|
|
1809
1821
|
{
|
|
1810
1822
|
className: `${i}-list-cols-row`,
|
|
1811
1823
|
style: {
|
|
1812
|
-
|
|
1813
|
-
paddingLeft: g(
|
|
1814
|
-
paddingRight: g(
|
|
1824
|
+
...f ? {
|
|
1825
|
+
paddingLeft: g(pt),
|
|
1826
|
+
paddingRight: g(pt)
|
|
1815
1827
|
} : {},
|
|
1816
|
-
justifyContent:
|
|
1817
|
-
alignItems:
|
|
1828
|
+
justifyContent: or(l.textTextAlign),
|
|
1829
|
+
alignItems: He(d)
|
|
1818
1830
|
},
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1831
|
+
children: /* @__PURE__ */ C(
|
|
1820
1832
|
"span",
|
|
1821
1833
|
{
|
|
1822
1834
|
className: De(
|
|
1823
1835
|
t,
|
|
1824
|
-
|
|
1836
|
+
xt,
|
|
1825
1837
|
`${i}-cut-label`,
|
|
1826
1838
|
`${i}-text-tight-leading`
|
|
1827
1839
|
),
|
|
1828
1840
|
style: {
|
|
1829
1841
|
...Ne(l, o),
|
|
1830
|
-
...Ve(t,
|
|
1842
|
+
...Ve(t, xt, i, o),
|
|
1831
1843
|
...h ? { width: "100%" } : {}
|
|
1832
1844
|
},
|
|
1833
1845
|
children: rt
|
|
@@ -1838,22 +1850,22 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1838
1850
|
}
|
|
1839
1851
|
);
|
|
1840
1852
|
})(),
|
|
1841
|
-
|
|
1842
|
-
const l = `${
|
|
1853
|
+
I && x && typeof document < "u" && (() => {
|
|
1854
|
+
const l = `${x.widthPx}px`, d = {
|
|
1843
1855
|
width: l,
|
|
1844
1856
|
height: "auto",
|
|
1845
1857
|
maxHeight: l,
|
|
1846
1858
|
objectFit: "contain"
|
|
1847
1859
|
}, h = (u ? document.getElementById(u) : null) ?? document.body;
|
|
1848
|
-
return
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
|
|
1860
|
+
return Oo(
|
|
1861
|
+
/* @__PURE__ */ C("div", { ref: ho, className: `${i}-hover-media-anchor`, "data-selection": "none", children: /* @__PURE__ */ C(
|
|
1862
|
+
Io,
|
|
1851
1863
|
{
|
|
1852
|
-
media:
|
|
1853
|
-
className:
|
|
1864
|
+
media: x,
|
|
1865
|
+
className: x.isVideo ? `${i}-hover-video` : `${i}-hover-image`,
|
|
1854
1866
|
style: d
|
|
1855
1867
|
},
|
|
1856
|
-
`${
|
|
1868
|
+
`${x.rowId}-${x.assetId}`
|
|
1857
1869
|
) }),
|
|
1858
1870
|
h
|
|
1859
1871
|
);
|
|
@@ -1864,28 +1876,28 @@ function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode
|
|
|
1864
1876
|
] });
|
|
1865
1877
|
}
|
|
1866
1878
|
export {
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1879
|
+
Yt as COLUMN_CONTENT_KEYS,
|
|
1880
|
+
Ue as COLUMN_TEXT_PREFIXES,
|
|
1881
|
+
Mr as COLUMN_VALIGN_BASIC_OPTIONS,
|
|
1882
|
+
xt as CUT_LABEL_TEXT_PREFIX,
|
|
1883
|
+
qt as LIST_COLUMN_LETTERS,
|
|
1884
|
+
qo as LIST_TEXT_STYLE_PREFIXES,
|
|
1885
|
+
lr as LIST_TEXT_STYLE_TAB_LABELS,
|
|
1886
|
+
Fr as List,
|
|
1887
|
+
_r as applyListColumnCountChange,
|
|
1888
|
+
yr as applyListSettingsChange,
|
|
1889
|
+
Or as createListTextStylePanelTab,
|
|
1890
|
+
sr as createListTextStyleTabContentItems,
|
|
1891
|
+
Xt as getEffectiveListColumnWidths,
|
|
1892
|
+
hr as getEqualListColumnWidthUpdates,
|
|
1893
|
+
X as getListColumnTextSettingKey,
|
|
1894
|
+
Xe as getListColumnVerticalAlignSettingKey,
|
|
1895
|
+
Lt as getListEffectiveContentWidth,
|
|
1896
|
+
Ge as getListMinColumnWidth,
|
|
1897
|
+
Go as isBaselineAnchorColumnVerticalAlign,
|
|
1898
|
+
je as isValidColumnBaselineVAlign,
|
|
1899
|
+
Ye as normalizeListColumnVerticalAlign,
|
|
1900
|
+
Jo as parseBaselineAnchorLetter,
|
|
1901
|
+
Ze as resolveListColumnPadding,
|
|
1890
1902
|
ue as resolveListColumnWidths
|
|
1891
1903
|
};
|