@cntrl-site/components 1.0.101 → 1.0.102
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/README.md +25 -1
- package/dist/Burger-C6jI6C1c.js +661 -0
- package/dist/Burger-EMSn7TPB.mjs +1807 -0
- package/dist/ClickGallerie-D_O1XhAO.mjs +270 -0
- package/dist/ClickGallerie-M9xdGR1G.js +36 -0
- package/dist/Components/Burger/BurgerComponent.d.ts +0 -1
- package/dist/Components/ClickGallerie/ClickGallerieComponent.d.ts +0 -1
- package/dist/Components/FAQ/FAQComponent.d.ts +0 -1
- package/dist/Components/Form/FormComponent.d.ts +0 -1
- package/dist/Components/Grid/GridComponent.d.ts +0 -1
- package/dist/Components/Helix/HelixComponent.d.ts +0 -1
- package/dist/Components/Hive/HiveComponent.d.ts +0 -1
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +0 -1
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +0 -1
- package/dist/Components/List/ListComponent.d.ts +0 -1
- package/dist/Components/Marquee/MarqueeComponent.d.ts +0 -1
- package/dist/Components/MarqueeText/MarqueeTextComponent.d.ts +0 -1
- package/dist/Components/Mercury/MercuryComponent.d.ts +0 -1
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +0 -1
- package/dist/Components/Pretext/PretextComponent.d.ts +0 -1
- package/dist/Components/Scale/ScaleComponent.d.ts +0 -1
- package/dist/Components/SimpleButton/SimpleButtonComponent.d.ts +0 -1
- package/dist/Components/Slider20/Slider20Component.d.ts +0 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +0 -1
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +0 -1
- package/dist/Components/Waterfall/WaterfallComponent.d.ts +0 -1
- package/dist/ControlSlider-SiOt22l_.js +1 -0
- package/dist/ControlSlider-pZv7H6BU.mjs +334 -0
- package/dist/FAQ-C7823fyi.js +166 -0
- package/dist/FAQ-CZ39u4m8.mjs +588 -0
- package/dist/Form-BX5_41nb.mjs +472 -0
- package/dist/Form-Dn-6A1He.js +153 -0
- package/dist/Grid-CemGhf3F.js +374 -0
- package/dist/Grid-cfQsXW3b.mjs +1553 -0
- package/dist/Helix-2Vr-9WBa.js +43 -0
- package/dist/Helix-BmkAKT1G.mjs +315 -0
- package/dist/Hive-BC6zQBsv.js +321 -0
- package/dist/Hive-BGMWinrW.mjs +1425 -0
- package/dist/HiveLightboxTitles-DhEeFKWs.mjs +507 -0
- package/dist/HiveLightboxTitles-DlyptAaK.js +1 -0
- package/dist/ImageRevealSlider-BBWtFjUF.js +1 -0
- package/dist/ImageRevealSlider-BdFGyVEP.mjs +184 -0
- package/dist/Lightbox-CIss_nOG.js +1 -0
- package/dist/Lightbox-eP9qAZzL.mjs +665 -0
- package/dist/LightboxJournal-D59ex6wH.mjs +1613 -0
- package/dist/LightboxJournal-DAEZOPDi.js +523 -0
- package/dist/LightboxStrip-BDjI1jyH.js +386 -0
- package/dist/LightboxStrip-YspzBP8N.mjs +1574 -0
- package/dist/List-C32WImI3.js +377 -0
- package/dist/List-DW7fyJbf.mjs +1891 -0
- package/dist/Marquee-BYClHHws.mjs +551 -0
- package/dist/Marquee-vmHaTGIP.js +133 -0
- package/dist/MarqueeText-4Rip_sQX.mjs +515 -0
- package/dist/MarqueeText-E6OubMOG.js +132 -0
- package/dist/Mercury-BwF_XW2w.js +267 -0
- package/dist/Mercury-DuKJQ1Zo.mjs +1701 -0
- package/dist/OnelinerForm-BEu7_sho.mjs +434 -0
- package/dist/OnelinerForm-C2Y_XMCY.js +194 -0
- package/dist/Pretext-10CcyP1E.mjs +2762 -0
- package/dist/Pretext-DvQ3xsni.js +231 -0
- package/dist/PretextComponent-C3YFICy8.js +1 -0
- package/dist/PretextComponent-Ct0newmn.mjs +11624 -0
- package/dist/RichTextRenderer-B6WtTYlR.mjs +32 -0
- package/dist/RichTextRenderer-CIy6yI8U.js +1 -0
- package/dist/Scale-976sjO8e.js +111 -0
- package/dist/Scale-rLNT4KAk.mjs +345 -0
- package/dist/SimpleButton-C-o2W9bS.mjs +451 -0
- package/dist/SimpleButton-nGEcO2gB.js +243 -0
- package/dist/Slider20-C9o2REDl.js +272 -0
- package/dist/Slider20-Dm8BeCli.mjs +851 -0
- package/dist/SvgImage-B5mR9y6q.mjs +51 -0
- package/dist/SvgImage-DFlmxAoL.js +1 -0
- package/dist/TestimonialGrid-CPu4qQ6B.mjs +492 -0
- package/dist/TestimonialGrid-D4ieiz9e.js +90 -0
- package/dist/TestimonialSingle-CVu15ZtV.js +125 -0
- package/dist/TestimonialSingle-DLdnAVF7.mjs +391 -0
- package/dist/Waterfall-A0FjM2my.mjs +1400 -0
- package/dist/Waterfall-DnPDHbCL.js +287 -0
- package/dist/buildColorVars-CE2D5cQV.js +1 -0
- package/dist/buildColorVars-CLyWQm5K.mjs +21 -0
- package/dist/components-OE3ac1dr.js +1 -0
- package/dist/components-w-jHX-2U.mjs +2053 -0
- package/dist/components.css +1 -1
- package/dist/elements.d.ts +7 -0
- package/dist/elements.js +1 -0
- package/dist/elements.mjs +63 -0
- package/dist/elements.node.d.ts +6 -0
- package/dist/elements.node.js +1 -0
- package/dist/elements.node.mjs +21 -0
- package/dist/forking.d.ts +1 -0
- package/dist/formFieldValidation-DZl2KVaF.js +1 -0
- package/dist/formFieldValidation-DvihFrq5.mjs +21 -0
- package/dist/getColorAlpha-BVBY0N5x.mjs +39 -0
- package/dist/getColorAlpha-CoSseoCn.js +1 -0
- package/dist/getImageRect-BQhQXvT8.js +1 -0
- package/dist/getImageRect-CBMhFNHM.mjs +109 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -28862
- package/dist/index.mjs +16 -62473
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
- package/dist/panelAvailability-D179wwJx.mjs +27 -0
- package/dist/panelAvailability-DnOe0rQ4.js +1 -0
- package/dist/react-splide.esm-CabaEmHi.js +6 -0
- package/dist/react-splide.esm-DQqds4PL.mjs +1750 -0
- package/dist/readTestimonialTextMeasure-BIXpGFEt.mjs +13 -0
- package/dist/readTestimonialTextMeasure-CEPaB4Sy.js +1 -0
- package/dist/scalingValue-C9JH5L6O.mjs +6 -0
- package/dist/scalingValue-CSHYgTZl.js +1 -0
- package/dist/sources.d.ts +1 -0
- package/dist/sources.js +23753 -0
- package/dist/sources.mjs +23779 -0
- package/dist/textStylesToCss-05Mn6I_2.mjs +32 -0
- package/dist/textStylesToCss-CNN3zZTV.js +1 -0
- package/dist/types/Component.d.ts +0 -1
- package/dist/useLightboxScrollLock-Hf16Eq4g.js +1 -0
- package/dist/useLightboxScrollLock-VQ07s7EJ.mjs +18 -0
- package/dist/useLightboxSwipeDismiss-Br9uE5G0.js +1 -0
- package/dist/useLightboxSwipeDismiss-SGv6Ra33.mjs +95 -0
- package/dist/useScopedStyles-Bf6yohVQ.js +1 -0
- package/dist/useScopedStyles-DhBG3557.mjs +11 -0
- package/dist/utils-033j3qNL.js +1 -0
- package/dist/utils-FxC9rcxw.mjs +247 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +17 -11
- package/package.json +31 -2
- package/dist/index-2JTNRDR1.js +0 -1
- package/dist/index-DA8t6EZ4.mjs +0 -255
- package/dist/panelAvailability-CgSic84c.mjs +0 -126
- package/dist/panelAvailability-D8c7cdbu.js +0 -1
|
@@ -0,0 +1,1891 @@
|
|
|
1
|
+
import { jsxs as Y, Fragment as Ee, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { useState as zt, useRef as q, useLayoutEffect as Ut, useEffect as Ct, useMemo as E, useCallback as Z } from "react";
|
|
3
|
+
import { createPortal as Mo } from "react-dom";
|
|
4
|
+
import { s as ot } from "./scalingValue-C9JH5L6O.mjs";
|
|
5
|
+
import { b as Oo } from "./buildColorVars-CLyWQm5K.mjs";
|
|
6
|
+
import { u as _o } from "./useScopedStyles-DhBG3557.mjs";
|
|
7
|
+
import { o as Ho, t as Fo } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
+
function No(t) {
|
|
9
|
+
if (t.type === "video") return !0;
|
|
10
|
+
if (t.type === "image") return !1;
|
|
11
|
+
const e = t.name ?? "";
|
|
12
|
+
return /\.(mp4|webm|ogg|mov)(\?|$)/i.test(e) ? !0 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t.assetId);
|
|
13
|
+
}
|
|
14
|
+
function Do({
|
|
15
|
+
media: t,
|
|
16
|
+
className: e,
|
|
17
|
+
style: o
|
|
18
|
+
}) {
|
|
19
|
+
const r = q(null);
|
|
20
|
+
return Ct(() => {
|
|
21
|
+
if (!t.isVideo) return;
|
|
22
|
+
const n = r.current;
|
|
23
|
+
if (!n) return;
|
|
24
|
+
const a = n.play();
|
|
25
|
+
a && a.catch(() => {
|
|
26
|
+
});
|
|
27
|
+
}, [t.isVideo, t.assetId]), t.isVideo ? /* @__PURE__ */ b(
|
|
28
|
+
"video",
|
|
29
|
+
{
|
|
30
|
+
ref: r,
|
|
31
|
+
className: e,
|
|
32
|
+
src: t.assetId,
|
|
33
|
+
style: o,
|
|
34
|
+
muted: !0,
|
|
35
|
+
loop: !0,
|
|
36
|
+
autoPlay: !0,
|
|
37
|
+
playsInline: !0,
|
|
38
|
+
preload: "auto"
|
|
39
|
+
}
|
|
40
|
+
) : /* @__PURE__ */ b(
|
|
41
|
+
"img",
|
|
42
|
+
{
|
|
43
|
+
className: e,
|
|
44
|
+
src: t.assetId,
|
|
45
|
+
alt: "",
|
|
46
|
+
style: o
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function ie(t) {
|
|
51
|
+
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
52
|
+
}
|
|
53
|
+
function Vo(t) {
|
|
54
|
+
return String(t ?? "").trim().length > 0;
|
|
55
|
+
}
|
|
56
|
+
function Se(t, e) {
|
|
57
|
+
const o = t.currentTarget, r = o.getBoundingClientRect(), n = t.clientY - r.top > r.height / 2;
|
|
58
|
+
o.classList.toggle(`${e}-reveal-from-bottom`, n);
|
|
59
|
+
}
|
|
60
|
+
function Me(t, e) {
|
|
61
|
+
const o = t.currentTarget, r = o.getBoundingClientRect(), n = t.clientY < r.top + r.height / 2;
|
|
62
|
+
o.classList.toggle(`${e}-reveal-from-bottom`, n);
|
|
63
|
+
}
|
|
64
|
+
function Oe(t, e, o, r, n, a, s) {
|
|
65
|
+
const u = ot(a, s), m = ot(0, s), i = t === 0, f = t === e - 1 && !n;
|
|
66
|
+
return { borderTopWidth: i && o ? u : m, borderBottomWidth: !f || r ? u : m };
|
|
67
|
+
}
|
|
68
|
+
function Io(t, e, o) {
|
|
69
|
+
const r = ot(e, o), n = ot(0, o);
|
|
70
|
+
return {
|
|
71
|
+
borderTopWidth: n,
|
|
72
|
+
borderBottomWidth: t ? r : n
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
const _e = 10, He = 10, bt = {
|
|
76
|
+
positionEase: 0.14,
|
|
77
|
+
rotationEase: 0.09,
|
|
78
|
+
rotationFactor: 2.5,
|
|
79
|
+
maxRotation: 20
|
|
80
|
+
};
|
|
81
|
+
function Ko(t, e, o) {
|
|
82
|
+
return Math.max(e, Math.min(o, t));
|
|
83
|
+
}
|
|
84
|
+
function ae(t, e, o) {
|
|
85
|
+
return t + (e - t) * o;
|
|
86
|
+
}
|
|
87
|
+
function zo(t, e, o, r) {
|
|
88
|
+
if (!e)
|
|
89
|
+
return { x: 0, y: 0 };
|
|
90
|
+
const n = e.getBoundingClientRect(), a = n.top + n.height / 2;
|
|
91
|
+
if (t === "cursor" && o)
|
|
92
|
+
return {
|
|
93
|
+
x: o.clientX + _e,
|
|
94
|
+
y: o.clientY + _e
|
|
95
|
+
};
|
|
96
|
+
switch (t) {
|
|
97
|
+
case "left":
|
|
98
|
+
return { x: n.left + He + r / 2, y: a };
|
|
99
|
+
case "center":
|
|
100
|
+
return { x: n.left + n.width / 2, y: a };
|
|
101
|
+
case "right":
|
|
102
|
+
return { x: n.right - He - r / 2, y: a };
|
|
103
|
+
default:
|
|
104
|
+
return { x: n.left + n.width / 2, y: a };
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function Uo(t, e) {
|
|
108
|
+
const o = q(null), r = q({
|
|
109
|
+
x: 0,
|
|
110
|
+
y: 0,
|
|
111
|
+
rotation: 0,
|
|
112
|
+
targetX: 0,
|
|
113
|
+
targetY: 0,
|
|
114
|
+
targetRotation: 0,
|
|
115
|
+
lastX: 0,
|
|
116
|
+
hasLastX: !1
|
|
117
|
+
}), n = q(null), a = Z(() => {
|
|
118
|
+
const c = o.current, R = r.current;
|
|
119
|
+
c && (c.style.transform = `translate3d(${R.x}px, ${R.y}px, 0) translate(-50%, -50%) rotate(${R.rotation.toFixed(3)}deg)`);
|
|
120
|
+
}, []), s = Z(() => {
|
|
121
|
+
n.current !== null && (cancelAnimationFrame(n.current), n.current = null);
|
|
122
|
+
}, []), u = Z(() => {
|
|
123
|
+
const c = r.current;
|
|
124
|
+
e ? (c.x = ae(c.x, c.targetX, bt.positionEase), c.y = ae(c.y, c.targetY, bt.positionEase), c.rotation = ae(c.rotation, c.targetRotation, bt.rotationEase)) : (c.x = c.targetX, c.y = c.targetY, c.rotation = c.targetRotation), a();
|
|
125
|
+
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
|
+
!R || !v ? n.current = requestAnimationFrame(u) : n.current = null;
|
|
127
|
+
}, [a, e]), m = Z(() => {
|
|
128
|
+
n.current === null && (n.current = requestAnimationFrame(u));
|
|
129
|
+
}, [u]), i = Z((c, R) => {
|
|
130
|
+
const v = r.current;
|
|
131
|
+
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]), f = Z((c, R) => {
|
|
133
|
+
if (!t) return;
|
|
134
|
+
const v = r.current;
|
|
135
|
+
if (e && v.hasLastX) {
|
|
136
|
+
const N = c - v.lastX;
|
|
137
|
+
v.targetRotation = Ko(
|
|
138
|
+
N * bt.rotationFactor,
|
|
139
|
+
-20,
|
|
140
|
+
bt.maxRotation
|
|
141
|
+
);
|
|
142
|
+
} else
|
|
143
|
+
v.targetRotation = 0;
|
|
144
|
+
if (v.lastX = c, v.hasLastX = !0, v.targetX = c, v.targetY = R, e) {
|
|
145
|
+
m();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
v.x = c, v.y = R, v.rotation = v.targetRotation, a();
|
|
149
|
+
}, [t, a, e, m]), L = Z((c) => {
|
|
150
|
+
s(), r.current.hasLastX = !1, c == null || c();
|
|
151
|
+
}, [s]), O = Z(() => {
|
|
152
|
+
s(), r.current = {
|
|
153
|
+
x: 0,
|
|
154
|
+
y: 0,
|
|
155
|
+
rotation: 0,
|
|
156
|
+
targetX: 0,
|
|
157
|
+
targetY: 0,
|
|
158
|
+
targetRotation: 0,
|
|
159
|
+
lastX: 0,
|
|
160
|
+
hasLastX: !1
|
|
161
|
+
}, o.current && (o.current.style.transform = "");
|
|
162
|
+
}, [s]);
|
|
163
|
+
return Ct(() => (t || O(), s), [t, O, s]), { anchorRef: o, onShow: i, onCursorMove: f, exit: L, reset: O };
|
|
164
|
+
}
|
|
165
|
+
function Xo(t) {
|
|
166
|
+
return `
|
|
167
|
+
.${t}-wrapper {
|
|
168
|
+
display: grid;
|
|
169
|
+
align-items: start;
|
|
170
|
+
min-height: ${ie(48)};
|
|
171
|
+
position: relative;
|
|
172
|
+
overflow: visible;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.${t}-hover-media-anchor {
|
|
177
|
+
position: fixed;
|
|
178
|
+
left: 0;
|
|
179
|
+
top: 0;
|
|
180
|
+
z-index: 9997;
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
will-change: transform;
|
|
183
|
+
transform-origin: center center;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.${t}-hover-image,
|
|
187
|
+
.${t}-hover-video {
|
|
188
|
+
position: relative;
|
|
189
|
+
display: block;
|
|
190
|
+
pointer-events: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.${t}-list-item {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-direction: column;
|
|
196
|
+
align-items: stretch;
|
|
197
|
+
width: 100%;
|
|
198
|
+
overflow: visible;
|
|
199
|
+
position: relative;
|
|
200
|
+
box-sizing: content-box;
|
|
201
|
+
user-select: none;
|
|
202
|
+
background: var(--${t}-background-color);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.${t}-wrapper.${t}-divider-top .${t}-list-item {
|
|
206
|
+
border-top-style: solid;
|
|
207
|
+
border-top-color: var(--${t}-divider-color);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.${t}-wrapper.${t}-divider-bottom .${t}-list-item {
|
|
211
|
+
border-bottom-style: solid;
|
|
212
|
+
border-bottom-color: var(--${t}-divider-color);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.${t}-list-cols-row {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: start;
|
|
218
|
+
width: 100%;
|
|
219
|
+
box-sizing: border-box;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.${t}-list-cols-row-h {
|
|
223
|
+
align-items: stretch;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.${t}-list-cols-row-h [data-list-col] {
|
|
227
|
+
display: grid;
|
|
228
|
+
grid-template-rows: minmax(0, 1fr);
|
|
229
|
+
align-self: stretch;
|
|
230
|
+
min-height: min-content;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.${t}-list-cols-row-h .${t}-list-col {
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
align-items: flex-start;
|
|
237
|
+
justify-content: flex-start;
|
|
238
|
+
width: 100%;
|
|
239
|
+
min-height: 0;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.${t}-list-cols-row-h .${t}-list-col-title {
|
|
243
|
+
display: block;
|
|
244
|
+
flex: 0 0 auto;
|
|
245
|
+
align-self: stretch;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.${t}-text-tight-leading {
|
|
249
|
+
display: block;
|
|
250
|
+
flex-shrink: 0;
|
|
251
|
+
padding-top: var(--${t}-title-leading-gap, 0);
|
|
252
|
+
padding-bottom: var(--${t}-title-leading-gap, 0);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.${t}-wrapper.${t}-type-b .${t}-list-cols-row {
|
|
256
|
+
flex-direction: column;
|
|
257
|
+
align-items: stretch;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.${t}-wrapper.${t}-type-b .${t}-list-col {
|
|
261
|
+
width: 100%;
|
|
262
|
+
min-width: 0;
|
|
263
|
+
flex-direction: column;
|
|
264
|
+
justify-content: flex-start;
|
|
265
|
+
align-items: flex-start;
|
|
266
|
+
min-height: min-content;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.${t}-wrapper.${t}-type-b .${t}-list-col-title {
|
|
270
|
+
display: block;
|
|
271
|
+
flex: 0 0 auto;
|
|
272
|
+
align-self: stretch;
|
|
273
|
+
text-align: center;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.${t}-wrapper.${t}-type-b .${t}-cut-item .${t}-list-cols-row {
|
|
277
|
+
flex-direction: row;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.${t}-wrapper.${t}-type-b .${t}-cut-label {
|
|
281
|
+
box-sizing: border-box;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.${t}-wrapper.${t}-type-b .${t}-list-col-last {
|
|
285
|
+
flex: 0 0 auto;
|
|
286
|
+
min-width: 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
a.${t}-list-item {
|
|
290
|
+
text-decoration: none;
|
|
291
|
+
color: inherit;
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.${t}-list-col {
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
overflow: visible;
|
|
298
|
+
box-sizing: border-box;
|
|
299
|
+
min-width: ${ie(50)};
|
|
300
|
+
position: relative;
|
|
301
|
+
display: flex;
|
|
302
|
+
align-items: flex-start;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.${t}-list-col-last {
|
|
306
|
+
flex: 1 1 auto;
|
|
307
|
+
min-width: ${ie(50)};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.${t}-list-col-title {
|
|
311
|
+
color: var(--${t}-text-color);
|
|
312
|
+
white-space: pre-wrap;
|
|
313
|
+
overflow-wrap: anywhere;
|
|
314
|
+
word-break: break-word;
|
|
315
|
+
flex: 1;
|
|
316
|
+
min-width: 0;
|
|
317
|
+
width: 100%;
|
|
318
|
+
box-sizing: border-box;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.${t}-baseline-probe {
|
|
322
|
+
display: inline-block;
|
|
323
|
+
width: 0;
|
|
324
|
+
height: 0;
|
|
325
|
+
overflow: hidden;
|
|
326
|
+
vertical-align: baseline;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.${t}-col-resize-handle,
|
|
330
|
+
.${t}-control-anchor {
|
|
331
|
+
background: transparent;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.${t}-control-anchor {
|
|
335
|
+
position: absolute;
|
|
336
|
+
pointer-events: none;
|
|
337
|
+
z-index: 2;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.${t}-row-padding-handle {
|
|
341
|
+
width: 100%;
|
|
342
|
+
flex-shrink: 0;
|
|
343
|
+
background: transparent;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.${t}-list-col-wrap {
|
|
347
|
+
position: relative;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.${t}-list-cols-row-controls {
|
|
351
|
+
position: relative;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-list-item-has-link,
|
|
355
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-item-has-link,
|
|
356
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link,
|
|
357
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-cut-item,
|
|
358
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-item,
|
|
359
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item {
|
|
360
|
+
transition: background-color 250ms, border-color 250ms;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-list-item-has-link .${t}-list-col-title,
|
|
364
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-item-has-link .${t}-list-col-title,
|
|
365
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link .${t}-list-col-title,
|
|
366
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-cut-label,
|
|
367
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-label,
|
|
368
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-label {
|
|
369
|
+
transition: color 250ms;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-list-item-has-link:hover,
|
|
373
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-list-item-has-link,
|
|
374
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-cut-item:hover,
|
|
375
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-cut-item {
|
|
376
|
+
background: var(--${t}-background-hover-color);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default .${t}-list-item-has-link:hover,
|
|
380
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default .${t}-list-item:has(+ .${t}-list-item-has-link:hover),
|
|
381
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default:has(.${t}-cut-item:hover) .${t}-list-item-before-cut,
|
|
382
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default.${t}-state-hover .${t}-list-item-has-link,
|
|
383
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default .${t}-cut-item:hover,
|
|
384
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-default.${t}-state-hover .${t}-cut-item,
|
|
385
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds .${t}-list-item-has-link:hover,
|
|
386
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds .${t}-list-item:has(+ .${t}-list-item-has-link:hover),
|
|
387
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds:has(.${t}-cut-item:hover) .${t}-list-item-before-cut,
|
|
388
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds.${t}-state-hover .${t}-list-item-has-link,
|
|
389
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds .${t}-cut-item:hover,
|
|
390
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-blinds.${t}-state-hover .${t}-cut-item,
|
|
391
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal .${t}-list-item-has-link:hover,
|
|
392
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal .${t}-list-item:has(+ .${t}-list-item-has-link:hover),
|
|
393
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal:has(.${t}-cut-item:hover) .${t}-list-item-before-cut,
|
|
394
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal.${t}-state-hover .${t}-list-item-has-link,
|
|
395
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal .${t}-cut-item:hover,
|
|
396
|
+
.${t}-wrapper.${t}-divider-bottom.${t}-entry-hover-reveal.${t}-state-hover .${t}-cut-item {
|
|
397
|
+
border-bottom-color: var(--${t}-divider-hover-color);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-default .${t}-list-item-has-link:hover:first-child,
|
|
401
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-default.${t}-state-hover .${t}-list-item-has-link:first-child,
|
|
402
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-blinds .${t}-list-item-has-link:hover:first-child,
|
|
403
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-blinds.${t}-state-hover .${t}-list-item-has-link:first-child,
|
|
404
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-reveal .${t}-list-item-has-link:hover:first-child,
|
|
405
|
+
.${t}-wrapper.${t}-divider-top:not(.${t}-divider-bottom).${t}-entry-hover-reveal.${t}-state-hover .${t}-list-item-has-link:first-child {
|
|
406
|
+
border-top-color: var(--${t}-divider-hover-color);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-default .${t}-list-item-has-link:hover:first-child,
|
|
410
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-default.${t}-state-hover .${t}-list-item-has-link:first-child,
|
|
411
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-blinds .${t}-list-item-has-link:hover:first-child,
|
|
412
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-blinds.${t}-state-hover .${t}-list-item-has-link:first-child,
|
|
413
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-reveal .${t}-list-item-has-link:hover:first-child,
|
|
414
|
+
.${t}-wrapper.${t}-divider-top.${t}-divider-bottom.${t}-entry-hover-reveal.${t}-state-hover .${t}-list-item-has-link:first-child {
|
|
415
|
+
border-top-color: var(--${t}-divider-hover-color);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-list-item-has-link:hover .${t}-list-col-title,
|
|
419
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-list-item-has-link .${t}-list-col-title,
|
|
420
|
+
.${t}-wrapper.${t}-entry-hover-default .${t}-cut-item:hover .${t}-cut-label,
|
|
421
|
+
.${t}-wrapper.${t}-entry-hover-default.${t}-state-hover .${t}-cut-item .${t}-cut-label,
|
|
422
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-item-has-link:hover .${t}-list-col-title,
|
|
423
|
+
.${t}-wrapper.${t}-entry-hover-blinds.${t}-state-hover .${t}-list-item-has-link .${t}-list-col-title,
|
|
424
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-item:hover .${t}-cut-label,
|
|
425
|
+
.${t}-wrapper.${t}-entry-hover-blinds.${t}-state-hover .${t}-cut-item .${t}-cut-label,
|
|
426
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link:hover .${t}-list-col-title,
|
|
427
|
+
.${t}-wrapper.${t}-entry-hover-reveal.${t}-state-hover .${t}-list-item-has-link .${t}-list-col-title,
|
|
428
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item:hover .${t}-cut-label,
|
|
429
|
+
.${t}-wrapper.${t}-entry-hover-reveal.${t}-state-hover .${t}-cut-item .${t}-cut-label {
|
|
430
|
+
color: var(--${t}-text-hover-color);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-item-has-link::before,
|
|
434
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-item::before {
|
|
435
|
+
content: '';
|
|
436
|
+
position: absolute;
|
|
437
|
+
inset: 0;
|
|
438
|
+
background: var(--${t}-background-hover-color);
|
|
439
|
+
transform: scaleY(0);
|
|
440
|
+
transform-origin: center center;
|
|
441
|
+
opacity: 0;
|
|
442
|
+
transition: opacity 150ms, transform 0s 250ms;
|
|
443
|
+
z-index: 0;
|
|
444
|
+
pointer-events: none;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-col,
|
|
448
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-label {
|
|
449
|
+
position: relative;
|
|
450
|
+
z-index: 1;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-list-item-has-link:hover::before,
|
|
454
|
+
.${t}-wrapper.${t}-entry-hover-blinds.${t}-state-hover .${t}-list-item-has-link::before,
|
|
455
|
+
.${t}-wrapper.${t}-entry-hover-blinds .${t}-cut-item:hover::before,
|
|
456
|
+
.${t}-wrapper.${t}-entry-hover-blinds.${t}-state-hover .${t}-cut-item::before {
|
|
457
|
+
transform: scaleY(1);
|
|
458
|
+
opacity: 1;
|
|
459
|
+
transition: transform 250ms, opacity 250ms;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link::before,
|
|
463
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item::before {
|
|
464
|
+
content: '';
|
|
465
|
+
position: absolute;
|
|
466
|
+
inset: 0;
|
|
467
|
+
background: var(--${t}-background-hover-color);
|
|
468
|
+
transform: scaleY(0);
|
|
469
|
+
transform-origin: bottom center;
|
|
470
|
+
transition: transform 120ms;
|
|
471
|
+
z-index: 0;
|
|
472
|
+
pointer-events: none;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-col,
|
|
476
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-label {
|
|
477
|
+
position: relative;
|
|
478
|
+
z-index: 1;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link:hover::before,
|
|
482
|
+
.${t}-wrapper.${t}-entry-hover-reveal.${t}-state-hover .${t}-list-item-has-link::before,
|
|
483
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item:hover::before,
|
|
484
|
+
.${t}-wrapper.${t}-entry-hover-reveal.${t}-state-hover .${t}-cut-item::before {
|
|
485
|
+
transform: scaleY(1);
|
|
486
|
+
transform-origin: top center;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link.${t}-reveal-from-bottom::before,
|
|
490
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item.${t}-reveal-from-bottom::before {
|
|
491
|
+
transform-origin: top center;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link.${t}-reveal-from-bottom:hover::before,
|
|
495
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-list-item-has-link.${t}-reveal-from-bottom.${t}-state-hover::before,
|
|
496
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item.${t}-reveal-from-bottom:hover::before,
|
|
497
|
+
.${t}-wrapper.${t}-entry-hover-reveal .${t}-cut-item.${t}-reveal-from-bottom.${t}-state-hover::before {
|
|
498
|
+
transform-origin: bottom center;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.${t}-cut-item {
|
|
502
|
+
display: flex;
|
|
503
|
+
align-items: stretch;
|
|
504
|
+
width: 100%;
|
|
505
|
+
overflow: visible;
|
|
506
|
+
position: relative;
|
|
507
|
+
z-index: 3;
|
|
508
|
+
box-sizing: border-box;
|
|
509
|
+
user-select: none;
|
|
510
|
+
background: var(--${t}-background-color);
|
|
511
|
+
cursor: pointer;
|
|
512
|
+
padding: 0;
|
|
513
|
+
border: none;
|
|
514
|
+
font: inherit;
|
|
515
|
+
text-align: inherit;
|
|
516
|
+
appearance: none;
|
|
517
|
+
-webkit-appearance: none;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.${t}-cut-item .${t}-list-cols-row {
|
|
521
|
+
flex: 1;
|
|
522
|
+
min-height: 100%;
|
|
523
|
+
width: 100%;
|
|
524
|
+
display: flex;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.${t}-wrapper.${t}-divider-bottom .${t}-cut-item {
|
|
528
|
+
border-bottom-style: solid;
|
|
529
|
+
border-bottom-color: var(--${t}-divider-color);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.${t}-cut-label {
|
|
533
|
+
display: block;
|
|
534
|
+
position: relative;
|
|
535
|
+
z-index: 1;
|
|
536
|
+
margin: 0;
|
|
537
|
+
color: var(--${t}-text-color);
|
|
538
|
+
white-space: pre-wrap;
|
|
539
|
+
overflow-wrap: anywhere;
|
|
540
|
+
word-break: break-word;
|
|
541
|
+
}
|
|
542
|
+
`;
|
|
543
|
+
}
|
|
544
|
+
const jt = [
|
|
545
|
+
"AColumn",
|
|
546
|
+
"BColumnWidth",
|
|
547
|
+
"CColumnWidth",
|
|
548
|
+
"DColumnWidth",
|
|
549
|
+
"EColumnWidth"
|
|
550
|
+
], ze = [
|
|
551
|
+
"AColumn",
|
|
552
|
+
"BColumn",
|
|
553
|
+
"CColumn",
|
|
554
|
+
"DColumn",
|
|
555
|
+
"EColumn"
|
|
556
|
+
], wt = "cutLabel", Yo = [
|
|
557
|
+
...ze,
|
|
558
|
+
wt
|
|
559
|
+
], Gt = ["A", "B", "C", "D", "E"];
|
|
560
|
+
function Ue(t) {
|
|
561
|
+
return `${t}ColumnVerticalAlign`;
|
|
562
|
+
}
|
|
563
|
+
const Br = ["Top", "Center", "Bottom"];
|
|
564
|
+
function Xe(t) {
|
|
565
|
+
const e = String(t ?? "Top").trim();
|
|
566
|
+
if (e.toLowerCase().startsWith("baseline")) {
|
|
567
|
+
const r = e.slice(-1).toUpperCase();
|
|
568
|
+
return Gt.includes(r) ? `Baseline ${r}` : "Top";
|
|
569
|
+
}
|
|
570
|
+
const o = e.toLowerCase();
|
|
571
|
+
return o === "center" ? "Center" : o === "bottom" ? "Bottom" : o === "top" ? "Top" : e;
|
|
572
|
+
}
|
|
573
|
+
function jo(t) {
|
|
574
|
+
const e = Xe(t);
|
|
575
|
+
return e.toLowerCase().startsWith("baseline") ? !1 : e === "Top" || e === "Center" || e === "Bottom";
|
|
576
|
+
}
|
|
577
|
+
function qo(t) {
|
|
578
|
+
const e = String(t ?? "").trim();
|
|
579
|
+
if (!e.toLowerCase().startsWith("baseline"))
|
|
580
|
+
return null;
|
|
581
|
+
const o = e.slice(-1).toUpperCase();
|
|
582
|
+
return Gt.includes(o) ? o : null;
|
|
583
|
+
}
|
|
584
|
+
function Ye(t, e, o) {
|
|
585
|
+
const r = qo(t);
|
|
586
|
+
return r ? r === e ? !1 : jo(o[Ue(r)]) : !0;
|
|
587
|
+
}
|
|
588
|
+
function Lt(t) {
|
|
589
|
+
const e = Xe(t);
|
|
590
|
+
if (e.toLowerCase().startsWith("baseline")) {
|
|
591
|
+
const o = e.slice(-1).toUpperCase();
|
|
592
|
+
return Gt.includes(o) ? { kind: "baseline", anchorLetter: o } : { kind: "top" };
|
|
593
|
+
}
|
|
594
|
+
return e === "Center" ? { kind: "center" } : e === "Bottom" ? { kind: "bottom" } : { kind: "top" };
|
|
595
|
+
}
|
|
596
|
+
function Go(t, e, o) {
|
|
597
|
+
if (je(t, e, o))
|
|
598
|
+
return Lt(t);
|
|
599
|
+
const r = Lt(t);
|
|
600
|
+
return r.kind === "baseline" ? { kind: "top" } : r;
|
|
601
|
+
}
|
|
602
|
+
function Jo(t) {
|
|
603
|
+
const e = Lt(t);
|
|
604
|
+
return e.kind === "baseline" ? { kind: "top" } : e;
|
|
605
|
+
}
|
|
606
|
+
function je(t, e, o) {
|
|
607
|
+
return Ye(t, o, e) ? Lt(t).kind === "baseline" : !1;
|
|
608
|
+
}
|
|
609
|
+
function Zo(t) {
|
|
610
|
+
const e = {};
|
|
611
|
+
let o = !1;
|
|
612
|
+
for (const r of Gt) {
|
|
613
|
+
const n = Ue(r), a = t[n];
|
|
614
|
+
if (t.type === "b") {
|
|
615
|
+
const s = String(a ?? "Top").trim();
|
|
616
|
+
s !== "Top" && s !== "Center" && s !== "Bottom" && (e[n] = "Top", o = !0);
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
619
|
+
Ye(a, r, t) || (e[n] = "Top", o = !0);
|
|
620
|
+
}
|
|
621
|
+
return o ? e : null;
|
|
622
|
+
}
|
|
623
|
+
function Qo(t) {
|
|
624
|
+
return t === "center" ? { flex: "0 0 auto", marginTop: "auto", marginBottom: "auto" } : t === "bottom" ? { flex: "0 0 auto", marginTop: "auto" } : {};
|
|
625
|
+
}
|
|
626
|
+
function Po(t) {
|
|
627
|
+
const e = Lt(t).kind;
|
|
628
|
+
return e === "baseline" ? "center" : e;
|
|
629
|
+
}
|
|
630
|
+
function tr(t) {
|
|
631
|
+
return t === "right" ? "flex-end" : t === "center" ? "center" : "flex-start";
|
|
632
|
+
}
|
|
633
|
+
function Fe(t) {
|
|
634
|
+
return t === "center" ? "center" : t === "bottom" ? "flex-end" : "flex-start";
|
|
635
|
+
}
|
|
636
|
+
function er(t, e) {
|
|
637
|
+
const o = document.createElement("i");
|
|
638
|
+
o.className = e, o.setAttribute("aria-hidden", "true"), t.prepend(o);
|
|
639
|
+
const { top: r } = t.getBoundingClientRect(), { bottom: n } = o.getBoundingClientRect(), a = n - r;
|
|
640
|
+
return o.remove(), a;
|
|
641
|
+
}
|
|
642
|
+
function le(t, e, o, r) {
|
|
643
|
+
const n = t.titleEl;
|
|
644
|
+
if (!n) return 0;
|
|
645
|
+
const a = n.closest(`.${o}`);
|
|
646
|
+
if (!a) return 0;
|
|
647
|
+
const s = er(n, r);
|
|
648
|
+
if (t.kind === "baseline")
|
|
649
|
+
return n.getBoundingClientRect().top - e + s;
|
|
650
|
+
const u = a.getBoundingClientRect(), m = n.getBoundingClientRect().height;
|
|
651
|
+
let i = 0;
|
|
652
|
+
return t.kind === "center" ? i = (u.height - m) / 2 : t.kind === "bottom" && (i = u.height - m), u.top - e + i + s;
|
|
653
|
+
}
|
|
654
|
+
function or(t, e, o) {
|
|
655
|
+
const r = t.getBoundingClientRect().height;
|
|
656
|
+
return r <= 0 ? 0 : (e.forEach((n) => {
|
|
657
|
+
const a = n.querySelector(`.${o}`);
|
|
658
|
+
a && (a.style.minHeight = `${r}px`, a.style.height = `${r}px`);
|
|
659
|
+
}), r);
|
|
660
|
+
}
|
|
661
|
+
function rr(t, e) {
|
|
662
|
+
return !t || !e ? (t && (t.style.transform = ""), 0) : (t.style.transform = `translateY(${e}px)`, e);
|
|
663
|
+
}
|
|
664
|
+
const nr = {
|
|
665
|
+
AColumn: "AColumn",
|
|
666
|
+
BColumnWidth: "BColumn",
|
|
667
|
+
CColumnWidth: "CColumn",
|
|
668
|
+
DColumnWidth: "DColumn",
|
|
669
|
+
EColumnWidth: "EColumn"
|
|
670
|
+
};
|
|
671
|
+
function j(t, e) {
|
|
672
|
+
return `${t}${e.replace(/^text/, "Text")}`;
|
|
673
|
+
}
|
|
674
|
+
const ir = {
|
|
675
|
+
AColumn: "A",
|
|
676
|
+
BColumn: "B",
|
|
677
|
+
CColumn: "C",
|
|
678
|
+
DColumn: "D",
|
|
679
|
+
EColumn: "E",
|
|
680
|
+
cutLabel: "CUT"
|
|
681
|
+
};
|
|
682
|
+
function ar(t) {
|
|
683
|
+
return [
|
|
684
|
+
j(t, "textFontFamily"),
|
|
685
|
+
j(t, "textFontSettings"),
|
|
686
|
+
{
|
|
687
|
+
type: "row",
|
|
688
|
+
items: [
|
|
689
|
+
j(t, "textFontSize"),
|
|
690
|
+
j(t, "textLineHeight"),
|
|
691
|
+
j(t, "textLetterSpacing"),
|
|
692
|
+
j(t, "textWordSpacing")
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
j(t, "textTextAlign"),
|
|
696
|
+
j(t, "textTextAppearance"),
|
|
697
|
+
`${t}VerticalAlign`
|
|
698
|
+
];
|
|
699
|
+
}
|
|
700
|
+
function Er() {
|
|
701
|
+
return {
|
|
702
|
+
type: "tab",
|
|
703
|
+
id: "listColumnTextStyle",
|
|
704
|
+
tabs: Object.fromEntries(
|
|
705
|
+
Yo.map((t) => [
|
|
706
|
+
ir[t],
|
|
707
|
+
ar(t)
|
|
708
|
+
])
|
|
709
|
+
)
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
function qt(t, e) {
|
|
713
|
+
const o = (r) => {
|
|
714
|
+
const n = j(e, r);
|
|
715
|
+
return t[n];
|
|
716
|
+
};
|
|
717
|
+
return {
|
|
718
|
+
textFontFamily: o("textFontFamily") ?? "Arial",
|
|
719
|
+
textFontSettings: o("textFontSettings") ?? {
|
|
720
|
+
fontWeight: 400,
|
|
721
|
+
fontStyle: "normal"
|
|
722
|
+
},
|
|
723
|
+
textFontSize: o("textFontSize"),
|
|
724
|
+
textLineHeight: o("textLineHeight"),
|
|
725
|
+
textLetterSpacing: o("textLetterSpacing") ?? 0,
|
|
726
|
+
textWordSpacing: o("textWordSpacing") ?? 0,
|
|
727
|
+
textTextAlign: o("textTextAlign") ?? (e === wt ? "center" : "left"),
|
|
728
|
+
textTextAppearance: o("textTextAppearance"),
|
|
729
|
+
textColor: t.textColor
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
function Ne(t, e) {
|
|
733
|
+
var r, n;
|
|
734
|
+
const o = {
|
|
735
|
+
fontSettings: {
|
|
736
|
+
fontFamily: t.textFontFamily,
|
|
737
|
+
fontWeight: ((r = t.textFontSettings) == null ? void 0 : r.fontWeight) ?? 400,
|
|
738
|
+
fontStyle: ((n = t.textFontSettings) == null ? void 0 : n.fontStyle) ?? "normal"
|
|
739
|
+
},
|
|
740
|
+
fontSize: t.textFontSize ?? 0.01,
|
|
741
|
+
lineHeight: t.textLineHeight,
|
|
742
|
+
letterSpacing: t.textLetterSpacing,
|
|
743
|
+
wordSpacing: t.textWordSpacing,
|
|
744
|
+
textAlign: t.textTextAlign,
|
|
745
|
+
textAppearance: t.textTextAppearance,
|
|
746
|
+
color: t.textColor ?? "#767676"
|
|
747
|
+
};
|
|
748
|
+
return Ho(Fo(o, e));
|
|
749
|
+
}
|
|
750
|
+
function De(t, e, o, r) {
|
|
751
|
+
const n = qt(t, e), a = n.textFontSize ?? 0.01, s = n.textLineHeight;
|
|
752
|
+
return s !== void 0 && s < a ? `${o} ${r}` : o;
|
|
753
|
+
}
|
|
754
|
+
function Ve(t, e, o, r) {
|
|
755
|
+
const n = qt(t, e), a = n.textFontSize ?? 0.01, s = n.textLineHeight;
|
|
756
|
+
return s === void 0 || s >= a ? {} : {
|
|
757
|
+
[`--${o}-title-leading-gap`]: ot((a - s) / 2, r)
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
const M = [
|
|
761
|
+
"AColumnWidth",
|
|
762
|
+
"BColumnWidth",
|
|
763
|
+
"CColumnWidth",
|
|
764
|
+
"DColumnWidth",
|
|
765
|
+
"EColumnWidth"
|
|
766
|
+
], dt = [
|
|
767
|
+
"AColumnPaddingLeft",
|
|
768
|
+
"BColumnPaddingLeft",
|
|
769
|
+
"CColumnPaddingLeft",
|
|
770
|
+
"DColumnPaddingLeft",
|
|
771
|
+
"EColumnPaddingLeft"
|
|
772
|
+
], ut = [
|
|
773
|
+
"AColumnPaddingRight",
|
|
774
|
+
"BColumnPaddingRight",
|
|
775
|
+
"CColumnPaddingRight",
|
|
776
|
+
"DColumnPaddingRight",
|
|
777
|
+
"EColumnPaddingRight"
|
|
778
|
+
], ht = [
|
|
779
|
+
"AColumnPaddingBottom",
|
|
780
|
+
"BColumnPaddingBottom",
|
|
781
|
+
"CColumnPaddingBottom",
|
|
782
|
+
"DColumnPaddingBottom",
|
|
783
|
+
"EColumnPaddingBottom"
|
|
784
|
+
], lr = {
|
|
785
|
+
textColor: "text-color",
|
|
786
|
+
backgroundColor: "background-color",
|
|
787
|
+
dividerColor: "divider-color",
|
|
788
|
+
textHoverColor: "text-hover-color",
|
|
789
|
+
backgroundHoverColor: "background-hover-color",
|
|
790
|
+
dividerHoverColor: "divider-hover-color"
|
|
791
|
+
}, sr = ["hover", "focus", "filled", "success", "error"], Ie = 4e-3, ct = 4e-3, se = ct, de = 50, Rt = 1440, Tt = de / Rt;
|
|
792
|
+
function qe(t) {
|
|
793
|
+
const e = typeof t == "number" && t > 0 ? t : Rt;
|
|
794
|
+
return de / e;
|
|
795
|
+
}
|
|
796
|
+
function cr(t) {
|
|
797
|
+
let e = t ?? null;
|
|
798
|
+
for (; e; ) {
|
|
799
|
+
const o = e.style.getPropertyValue("--cntrl-article-width").trim();
|
|
800
|
+
if (o) {
|
|
801
|
+
const n = parseFloat(o);
|
|
802
|
+
if (Number.isFinite(n) && n > 0)
|
|
803
|
+
return n;
|
|
804
|
+
}
|
|
805
|
+
const r = getComputedStyle(e).getPropertyValue("--cntrl-article-width").trim();
|
|
806
|
+
if (r) {
|
|
807
|
+
const n = parseFloat(r);
|
|
808
|
+
if (Number.isFinite(n) && n > 0)
|
|
809
|
+
return n;
|
|
810
|
+
}
|
|
811
|
+
e = e.parentElement;
|
|
812
|
+
}
|
|
813
|
+
return Rt;
|
|
814
|
+
}
|
|
815
|
+
const Ge = {
|
|
816
|
+
AColumnWidth: 0.02,
|
|
817
|
+
BColumnWidth: 0.02,
|
|
818
|
+
CColumnWidth: 0.02,
|
|
819
|
+
DColumnWidth: 0.02,
|
|
820
|
+
EColumnWidth: 0.02
|
|
821
|
+
};
|
|
822
|
+
function xt(t) {
|
|
823
|
+
const e = typeof t.wrapperWidth == "number" ? t.wrapperWidth : 1;
|
|
824
|
+
return Math.max(0, e);
|
|
825
|
+
}
|
|
826
|
+
function dr(t, e = 1) {
|
|
827
|
+
const o = e / t;
|
|
828
|
+
return Object.fromEntries(
|
|
829
|
+
M.map((r) => [r, o])
|
|
830
|
+
);
|
|
831
|
+
}
|
|
832
|
+
function ur() {
|
|
833
|
+
return Object.fromEntries([
|
|
834
|
+
...dt.map((t) => [t, 0]),
|
|
835
|
+
...ut.map((t) => [t, 0])
|
|
836
|
+
]);
|
|
837
|
+
}
|
|
838
|
+
function hr() {
|
|
839
|
+
return Object.fromEntries(
|
|
840
|
+
ht.map((t) => [t, 0])
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
function Xt(t) {
|
|
844
|
+
return Object.fromEntries(
|
|
845
|
+
M.map((e) => [
|
|
846
|
+
e,
|
|
847
|
+
typeof t[e] == "number" ? t[e] : Ge[e]
|
|
848
|
+
])
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
function Je(t, e, o) {
|
|
852
|
+
const r = t - Tt, n = e + o;
|
|
853
|
+
if (n <= 0 || n <= r)
|
|
854
|
+
return { paddingLeft: e, paddingRight: o };
|
|
855
|
+
if (r <= 0)
|
|
856
|
+
return { paddingLeft: 0, paddingRight: 0 };
|
|
857
|
+
const a = r / n;
|
|
858
|
+
return {
|
|
859
|
+
paddingLeft: e * a,
|
|
860
|
+
paddingRight: o * a
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
function Yt(t, e, o) {
|
|
864
|
+
const r = ue(t, e, o);
|
|
865
|
+
if (t <= 0)
|
|
866
|
+
return [];
|
|
867
|
+
const n = r.slice(0, t - 1).reduce((a, s) => a + s, 0);
|
|
868
|
+
return [
|
|
869
|
+
...r.slice(0, t - 1),
|
|
870
|
+
Math.max(0, e - n)
|
|
871
|
+
];
|
|
872
|
+
}
|
|
873
|
+
function mr(t, e, o) {
|
|
874
|
+
const r = {};
|
|
875
|
+
for (let n = 0; n < t; n += 1) {
|
|
876
|
+
const a = dt[n], s = ut[n], u = typeof o[a] == "number" ? o[a] : 0, m = typeof o[s] == "number" ? o[s] : 0, i = Je(
|
|
877
|
+
e[n] ?? 0,
|
|
878
|
+
u,
|
|
879
|
+
m
|
|
880
|
+
);
|
|
881
|
+
i.paddingLeft !== u && (r[a] = i.paddingLeft), i.paddingRight !== m && (r[s] = i.paddingRight);
|
|
882
|
+
}
|
|
883
|
+
return r;
|
|
884
|
+
}
|
|
885
|
+
function ue(t, e, o) {
|
|
886
|
+
if (t <= 0)
|
|
887
|
+
return [];
|
|
888
|
+
const r = M.slice(0, t).map(
|
|
889
|
+
(i) => o[i]
|
|
890
|
+
);
|
|
891
|
+
if (t === 1)
|
|
892
|
+
return r;
|
|
893
|
+
const n = r.slice(0, t - 1), s = n.reduce((i, f) => i + f, 0) + Tt;
|
|
894
|
+
if (e >= s)
|
|
895
|
+
return r;
|
|
896
|
+
const u = [...n];
|
|
897
|
+
let m = s - e;
|
|
898
|
+
for (let i = u.length - 1; i >= 0 && m > 0; i -= 1) {
|
|
899
|
+
const f = u[i] - Tt;
|
|
900
|
+
if (f <= 0)
|
|
901
|
+
continue;
|
|
902
|
+
const L = Math.min(m, f);
|
|
903
|
+
u[i] -= L, m -= L;
|
|
904
|
+
}
|
|
905
|
+
return [...u, r[t - 1]];
|
|
906
|
+
}
|
|
907
|
+
function pr(t, e, o) {
|
|
908
|
+
if (t <= 1)
|
|
909
|
+
return {};
|
|
910
|
+
const r = ue(t, e, o), n = {};
|
|
911
|
+
for (let a = 0; a < t - 1; a += 1) {
|
|
912
|
+
const s = M[a];
|
|
913
|
+
r[a] !== o[s] && (n[s] = r[a]);
|
|
914
|
+
}
|
|
915
|
+
return n;
|
|
916
|
+
}
|
|
917
|
+
function Ke(t) {
|
|
918
|
+
return Array.isArray(t.columnsOrder) && t.columnsOrder.length > 0 ? t.columnsOrder : [...jt];
|
|
919
|
+
}
|
|
920
|
+
function fr(t, e) {
|
|
921
|
+
return t.length !== e.length ? !1 : t.every((o, r) => o === e[r]);
|
|
922
|
+
}
|
|
923
|
+
function $r(t, e, o, r) {
|
|
924
|
+
const n = Math.min(r, t.length, M.length), a = {};
|
|
925
|
+
for (let s = 0; s < n; s += 1) {
|
|
926
|
+
const u = t[s], m = e.indexOf(u);
|
|
927
|
+
if (m === -1)
|
|
928
|
+
continue;
|
|
929
|
+
const i = M[m], f = dt[m], L = ut[m], O = ht[m], c = M[s], R = dt[s], v = ut[s], N = ht[s], _ = o[i], D = o[f], C = o[L], A = o[O];
|
|
930
|
+
typeof _ == "number" && (a[c] = _), typeof D == "number" && (a[R] = D), typeof C == "number" && (a[v] = C), typeof A == "number" && (a[N] = A);
|
|
931
|
+
}
|
|
932
|
+
return a;
|
|
933
|
+
}
|
|
934
|
+
function Ze(t, e) {
|
|
935
|
+
const o = /* @__PURE__ */ new Set([
|
|
936
|
+
...Object.keys(t),
|
|
937
|
+
...Object.keys(e)
|
|
938
|
+
]);
|
|
939
|
+
for (const r of o)
|
|
940
|
+
if (t[r] !== e[r])
|
|
941
|
+
return !0;
|
|
942
|
+
return !1;
|
|
943
|
+
}
|
|
944
|
+
function Sr(t, e) {
|
|
945
|
+
const o = t.columns, r = e.columns;
|
|
946
|
+
if (typeof o != "number" || o === r)
|
|
947
|
+
return t;
|
|
948
|
+
const n = xt(t), a = t.type === "b" || t.type === void 0 && e.type === "b", s = {
|
|
949
|
+
...t,
|
|
950
|
+
...dr(o, n),
|
|
951
|
+
...ur()
|
|
952
|
+
};
|
|
953
|
+
if (a)
|
|
954
|
+
for (const u of ht)
|
|
955
|
+
typeof e[u] == "number" && (s[u] = e[u]);
|
|
956
|
+
else
|
|
957
|
+
Object.assign(s, hr());
|
|
958
|
+
return Ze(t, s) ? s : t;
|
|
959
|
+
}
|
|
960
|
+
function vr(t, e, o) {
|
|
961
|
+
const r = Zo(t);
|
|
962
|
+
r && (t = { ...t, ...r });
|
|
963
|
+
const n = qe(o == null ? void 0 : o.designWidth), a = t.columns, s = e.columns, u = xt(t), m = xt(e), i = t.type === "b" || t.type === void 0 && e.type === "b", f = typeof a == "number" ? a : typeof s == "number" ? s : jt.length, L = (C) => {
|
|
964
|
+
if (i)
|
|
965
|
+
return C;
|
|
966
|
+
const A = Xt({ ...e, ...C }), rt = xt(C), G = Yt(f, rt, A), Wt = mr(f, G, {
|
|
967
|
+
...e,
|
|
968
|
+
...C
|
|
969
|
+
});
|
|
970
|
+
return Object.keys(Wt).length === 0 ? C : {
|
|
971
|
+
...C,
|
|
972
|
+
...Wt
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
if (typeof a == "number" && a !== s)
|
|
976
|
+
return t;
|
|
977
|
+
const O = Ke(t), c = Ke(e);
|
|
978
|
+
if (!fr(O, c))
|
|
979
|
+
return L({
|
|
980
|
+
...t,
|
|
981
|
+
...$r(O, c, e, f)
|
|
982
|
+
});
|
|
983
|
+
if (u < m && typeof f == "number" && !i) {
|
|
984
|
+
const C = Xt({ ...e, ...t });
|
|
985
|
+
return L({
|
|
986
|
+
...t,
|
|
987
|
+
...pr(f, u, C)
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
if (i) {
|
|
991
|
+
const C = typeof t.textPaddingLR == "number" ? t.textPaddingLR : 0, A = Math.max(0, (u - n) / 2);
|
|
992
|
+
return C > A ? { ...t, textPaddingLR: A } : t;
|
|
993
|
+
}
|
|
994
|
+
const R = Xt({ ...e, ...t }), v = Yt(
|
|
995
|
+
f,
|
|
996
|
+
m,
|
|
997
|
+
Xt(e)
|
|
998
|
+
), _ = Yt(
|
|
999
|
+
f,
|
|
1000
|
+
u,
|
|
1001
|
+
R
|
|
1002
|
+
).some(
|
|
1003
|
+
(C, A) => C < (v[A] ?? C)
|
|
1004
|
+
), D = M.some((C) => {
|
|
1005
|
+
const A = t[C], rt = e[C];
|
|
1006
|
+
return typeof A == "number" && typeof rt == "number" && A !== rt;
|
|
1007
|
+
});
|
|
1008
|
+
return _ || D ? L(t) : t;
|
|
1009
|
+
}
|
|
1010
|
+
function gr(t, e, o, r) {
|
|
1011
|
+
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
|
+
return Math.max(
|
|
1013
|
+
Tt,
|
|
1014
|
+
r - n - a - Tt
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1017
|
+
function yr(t, e) {
|
|
1018
|
+
return Math.random() * (e - t) + t;
|
|
1019
|
+
}
|
|
1020
|
+
function br(t) {
|
|
1021
|
+
return Object.fromEntries(
|
|
1022
|
+
M.map((e) => [
|
|
1023
|
+
e,
|
|
1024
|
+
typeof t[e] == "number" ? t[e] : Ge[e]
|
|
1025
|
+
])
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
function ce(t, e, o = 0) {
|
|
1029
|
+
return Object.fromEntries(
|
|
1030
|
+
e.map((r) => [
|
|
1031
|
+
r,
|
|
1032
|
+
typeof t[r] == "number" ? t[r] : o
|
|
1033
|
+
])
|
|
1034
|
+
);
|
|
1035
|
+
}
|
|
1036
|
+
function Cr(t, e, o, r, n, a) {
|
|
1037
|
+
return t.slice(0, e).map((s, u) => {
|
|
1038
|
+
const m = dt[u], i = ut[u], f = ht[u];
|
|
1039
|
+
return {
|
|
1040
|
+
key: s,
|
|
1041
|
+
textPrefix: nr[s],
|
|
1042
|
+
widthKey: M[u],
|
|
1043
|
+
width: o[M[u]],
|
|
1044
|
+
paddingLeftKey: m,
|
|
1045
|
+
paddingRightKey: i,
|
|
1046
|
+
paddingBottomKey: f,
|
|
1047
|
+
paddingLeft: r[m],
|
|
1048
|
+
paddingRight: n[i],
|
|
1049
|
+
paddingBottom: a[f]
|
|
1050
|
+
};
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
function Mr({ settings: t, content: e, isEditor: o, isPreviewMode: r, isEditMode: n, activeEvent: a, layoutId: s, portalId: u, onUpdateSettings: m }) {
|
|
1054
|
+
const { prefix: i } = _o(), f = !!n, {
|
|
1055
|
+
columns: L,
|
|
1056
|
+
type: O,
|
|
1057
|
+
wrapperWidth: c,
|
|
1058
|
+
entriesCount: R,
|
|
1059
|
+
cellMinHeight: v,
|
|
1060
|
+
dividerWidth: N,
|
|
1061
|
+
showVisibility: _,
|
|
1062
|
+
cut: D,
|
|
1063
|
+
showCut: C,
|
|
1064
|
+
cutCellMinHeight: A,
|
|
1065
|
+
cutLabel: rt,
|
|
1066
|
+
imageSize: G,
|
|
1067
|
+
imageOnHover: Wt,
|
|
1068
|
+
imagePosition: he = "cursor",
|
|
1069
|
+
imageInterpolation: Qe = "on",
|
|
1070
|
+
entryHoverEffect: At,
|
|
1071
|
+
entryHoverShowOption: Jt,
|
|
1072
|
+
rowPaddingTop: Pe,
|
|
1073
|
+
rowPaddingBottom: to,
|
|
1074
|
+
rowPaddingTopB: eo,
|
|
1075
|
+
columnsOrder: kt,
|
|
1076
|
+
textPaddingLR: oo,
|
|
1077
|
+
textColor: ro,
|
|
1078
|
+
backgroundColor: no,
|
|
1079
|
+
dividerColor: io,
|
|
1080
|
+
textHoverColor: ao,
|
|
1081
|
+
backgroundHoverColor: lo,
|
|
1082
|
+
dividerHoverColor: so
|
|
1083
|
+
} = t, [me, Bt] = zt(void 0), [w, Et] = zt(null), St = q(null), V = Wt === "on" && (!o || r), Mt = he === "cursor", co = Mt && Qe === "on", { anchorRef: uo, onShow: pe, onCursorMove: fe, exit: Zt } = Uo(
|
|
1084
|
+
!!(V && w !== null),
|
|
1085
|
+
co
|
|
1086
|
+
), Ot = (D ?? 0) > 0, $ = O === "b", mt = q(null), $e = q(null), [_t, Ht] = zt(null), [pt, ve] = zt(Rt), ge = qe(pt), ho = Math.max(0, ((c ?? 0) - ge) / 2), ft = Math.min(oo ?? 0, ho), Ft = Math.max(ft, ct), ye = ((c ?? 0) + ge) / 2;
|
|
1087
|
+
Ut(() => {
|
|
1088
|
+
if (!o) {
|
|
1089
|
+
ve(Rt);
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
const l = () => {
|
|
1093
|
+
ve(cr(mt.current));
|
|
1094
|
+
};
|
|
1095
|
+
l();
|
|
1096
|
+
const d = mt.current;
|
|
1097
|
+
if (!d)
|
|
1098
|
+
return;
|
|
1099
|
+
const h = new ResizeObserver(l);
|
|
1100
|
+
h.observe(d);
|
|
1101
|
+
let y = d;
|
|
1102
|
+
for (; y && !y.style.getPropertyValue("--cntrl-article-width"); )
|
|
1103
|
+
y = y.parentElement;
|
|
1104
|
+
return y && h.observe(y), () => h.disconnect();
|
|
1105
|
+
}, [o, s]), Ct(() => {
|
|
1106
|
+
Bt(void 0);
|
|
1107
|
+
}, [D, C, e, R]), Ct(() => {
|
|
1108
|
+
o && !r && Bt(void 0);
|
|
1109
|
+
}, [o, r]);
|
|
1110
|
+
const mo = Oo(i, {
|
|
1111
|
+
textColor: ro,
|
|
1112
|
+
backgroundColor: no,
|
|
1113
|
+
dividerColor: io,
|
|
1114
|
+
textHoverColor: ao,
|
|
1115
|
+
backgroundHoverColor: lo,
|
|
1116
|
+
dividerHoverColor: so
|
|
1117
|
+
}, lr, sr), po = a && a !== "default" ? `${i}-state-${a}` : "", fo = `${!o || r ? At === "default" ? `${i}-entry-hover-default` : At === "blinds" ? `${i}-entry-hover-blinds` : At === "reveal" ? `${i}-entry-hover-reveal` : "" : ""} ${po}`.trim(), nt = At === "reveal" && (!o || r), Nt = (_ == null ? void 0 : _[0]) ?? !1, $t = (_ == null ? void 0 : _[1]) ?? !1, vt = q(t), Qt = q(s);
|
|
1118
|
+
Ct(() => {
|
|
1119
|
+
if (!m || !o) {
|
|
1120
|
+
vt.current = t, Qt.current = s;
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1123
|
+
if (Qt.current !== s) {
|
|
1124
|
+
vt.current = t, Qt.current = s;
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
const l = vt.current;
|
|
1128
|
+
if (!(l !== t))
|
|
1129
|
+
return;
|
|
1130
|
+
if (typeof l.columns == "number" && typeof t.columns == "number" && l.columns !== t.columns) {
|
|
1131
|
+
vt.current = t;
|
|
1132
|
+
return;
|
|
1133
|
+
}
|
|
1134
|
+
const h = vr(
|
|
1135
|
+
t,
|
|
1136
|
+
l,
|
|
1137
|
+
{ designWidth: pt }
|
|
1138
|
+
);
|
|
1139
|
+
vt.current = t, Ze(t, h) && m(h);
|
|
1140
|
+
}, [t, m, o, s, pt]);
|
|
1141
|
+
const J = E(
|
|
1142
|
+
() => br(t),
|
|
1143
|
+
[
|
|
1144
|
+
t.AColumnWidth,
|
|
1145
|
+
t.BColumnWidth,
|
|
1146
|
+
t.CColumnWidth,
|
|
1147
|
+
t.DColumnWidth,
|
|
1148
|
+
t.EColumnWidth
|
|
1149
|
+
]
|
|
1150
|
+
), be = E(
|
|
1151
|
+
() => ce(t, dt),
|
|
1152
|
+
[
|
|
1153
|
+
t.AColumnPaddingLeft,
|
|
1154
|
+
t.BColumnPaddingLeft,
|
|
1155
|
+
t.CColumnPaddingLeft,
|
|
1156
|
+
t.DColumnPaddingLeft,
|
|
1157
|
+
t.EColumnPaddingLeft
|
|
1158
|
+
]
|
|
1159
|
+
), Ce = E(
|
|
1160
|
+
() => ce(t, ut),
|
|
1161
|
+
[
|
|
1162
|
+
t.AColumnPaddingRight,
|
|
1163
|
+
t.BColumnPaddingRight,
|
|
1164
|
+
t.CColumnPaddingRight,
|
|
1165
|
+
t.DColumnPaddingRight,
|
|
1166
|
+
t.EColumnPaddingRight
|
|
1167
|
+
]
|
|
1168
|
+
), we = E(
|
|
1169
|
+
() => ce(t, ht),
|
|
1170
|
+
[
|
|
1171
|
+
t.AColumnPaddingBottom,
|
|
1172
|
+
t.BColumnPaddingBottom,
|
|
1173
|
+
t.CColumnPaddingBottom,
|
|
1174
|
+
t.DColumnPaddingBottom,
|
|
1175
|
+
t.EColumnPaddingBottom
|
|
1176
|
+
]
|
|
1177
|
+
), xe = E(() => Array.isArray(kt) && kt.length > 0 ? kt : [...jt], [kt]), S = E(
|
|
1178
|
+
() => Cr(
|
|
1179
|
+
xe,
|
|
1180
|
+
L,
|
|
1181
|
+
J,
|
|
1182
|
+
be,
|
|
1183
|
+
Ce,
|
|
1184
|
+
we
|
|
1185
|
+
),
|
|
1186
|
+
[xe, L, J, be, Ce, we]
|
|
1187
|
+
), Q = xt(t), $o = E(
|
|
1188
|
+
() => M.slice(0, L).map((l) => J[l]),
|
|
1189
|
+
[L, J]
|
|
1190
|
+
), Pt = E(
|
|
1191
|
+
() => ue(L, Q, J),
|
|
1192
|
+
[L, Q, J]
|
|
1193
|
+
), I = E(
|
|
1194
|
+
() => Yt(L, Q, J),
|
|
1195
|
+
[L, Q, J]
|
|
1196
|
+
), it = E(
|
|
1197
|
+
() => S.map((l, d) => Je(
|
|
1198
|
+
I[d] ?? 0,
|
|
1199
|
+
l.paddingLeft,
|
|
1200
|
+
l.paddingRight
|
|
1201
|
+
)),
|
|
1202
|
+
[S, I]
|
|
1203
|
+
), P = E(() => {
|
|
1204
|
+
const l = R === 0 ? 1 / 0 : R;
|
|
1205
|
+
return (e ?? []).slice(0, l).map((h, y) => ({
|
|
1206
|
+
id: y,
|
|
1207
|
+
cells: Object.fromEntries(
|
|
1208
|
+
jt.map((T) => [T, h[T] ?? ""])
|
|
1209
|
+
),
|
|
1210
|
+
image: h.image,
|
|
1211
|
+
link: h.link
|
|
1212
|
+
}));
|
|
1213
|
+
}, [e, R]), te = Ot ? me ?? D : P.length, tt = E(() => Ot ? P.slice(0, te) : P, [P, Ot, te]), at = Ot && te < P.length, vo = tt.length > 1 || at, Le = [
|
|
1214
|
+
Nt ? `${i}-divider-top` : "",
|
|
1215
|
+
$t || vo ? `${i}-divider-bottom` : ""
|
|
1216
|
+
].filter(Boolean).join(" "), ee = !o || r, go = () => {
|
|
1217
|
+
if (!ee) return;
|
|
1218
|
+
const l = me ?? D;
|
|
1219
|
+
if (!C) {
|
|
1220
|
+
Bt(P.length);
|
|
1221
|
+
return;
|
|
1222
|
+
}
|
|
1223
|
+
Bt(Math.min(l + C, P.length));
|
|
1224
|
+
}, g = (l) => ot(l, o ?? !1), Dt = $ ? eo ?? 0 : Pe ?? 0, Vt = to ?? 0, oe = v ?? 0, yo = Math.max(Vt, se), bo = Oe(
|
|
1225
|
+
0,
|
|
1226
|
+
tt.length,
|
|
1227
|
+
Nt,
|
|
1228
|
+
$t,
|
|
1229
|
+
at,
|
|
1230
|
+
N ?? 0,
|
|
1231
|
+
o ?? !1
|
|
1232
|
+
).borderTopWidth, Co = $ ? "rowPaddingTopB" : "rowPaddingTop", re = S[0], ne = S[S.length - 1], gt = it[0], yt = it[it.length - 1], wo = re && gt ? Math.max(gt.paddingLeft, ct) : 0, Re = ne && yt ? Math.max(yt.paddingRight, ct) : 0, xo = Q, Te = (l, d) => zo(
|
|
1233
|
+
he,
|
|
1234
|
+
mt.current,
|
|
1235
|
+
Mt ? l : null,
|
|
1236
|
+
d
|
|
1237
|
+
), Lo = (l, d) => {
|
|
1238
|
+
if (!V) return;
|
|
1239
|
+
const h = l.image;
|
|
1240
|
+
if (!(h != null && h.assetId)) {
|
|
1241
|
+
Zt(() => Et(null));
|
|
1242
|
+
return;
|
|
1243
|
+
}
|
|
1244
|
+
const y = (G == null ? void 0 : G.min) ?? 80, T = (G == null ? void 0 : G.max) ?? 320, W = (w == null ? void 0 : w.rowId) === l.id, p = W ? w.widthPx : yr(y, T), { x: H, y: k } = Te(d, p);
|
|
1245
|
+
if (W && Mt) {
|
|
1246
|
+
fe(H, k);
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
Et({
|
|
1250
|
+
rowId: l.id,
|
|
1251
|
+
assetId: h.assetId,
|
|
1252
|
+
objectFit: "contain",
|
|
1253
|
+
isVideo: No(h),
|
|
1254
|
+
widthPx: p
|
|
1255
|
+
}), St.current = { x: H, y: k };
|
|
1256
|
+
}, Ro = (l) => {
|
|
1257
|
+
if (!V || !w || !Mt) return;
|
|
1258
|
+
const { x: d, y: h } = Te(l, w.widthPx);
|
|
1259
|
+
fe(d, h);
|
|
1260
|
+
}, To = () => {
|
|
1261
|
+
w && Zt(() => Et(null));
|
|
1262
|
+
}, Wo = (l) => {
|
|
1263
|
+
nt && Se(l, i), !(!V || !w) && Zt(() => Et(null));
|
|
1264
|
+
}, Ao = (l) => {
|
|
1265
|
+
nt && Me(l, i);
|
|
1266
|
+
};
|
|
1267
|
+
Ut(() => {
|
|
1268
|
+
if (!w || !St.current) return;
|
|
1269
|
+
const { x: l, y: d } = St.current;
|
|
1270
|
+
St.current = null, pe(l, d);
|
|
1271
|
+
}, [w == null ? void 0 : w.rowId, w == null ? void 0 : w.assetId, pe]), Ut(() => {
|
|
1272
|
+
if (!f || $) {
|
|
1273
|
+
Ht(null);
|
|
1274
|
+
return;
|
|
1275
|
+
}
|
|
1276
|
+
const l = $e.current, d = l == null ? void 0 : l.parentElement;
|
|
1277
|
+
if (!l || !d) {
|
|
1278
|
+
Ht(null);
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1281
|
+
const h = () => {
|
|
1282
|
+
const T = l.querySelector("[data-list-row]");
|
|
1283
|
+
if (!T) {
|
|
1284
|
+
Ht(null);
|
|
1285
|
+
return;
|
|
1286
|
+
}
|
|
1287
|
+
const W = d.getBoundingClientRect(), p = T.getBoundingClientRect();
|
|
1288
|
+
Ht(p.top - W.top + p.height / 2);
|
|
1289
|
+
};
|
|
1290
|
+
h();
|
|
1291
|
+
const y = new ResizeObserver(h);
|
|
1292
|
+
return y.observe(l), y.observe(d), () => y.disconnect();
|
|
1293
|
+
}, [
|
|
1294
|
+
f,
|
|
1295
|
+
$,
|
|
1296
|
+
tt,
|
|
1297
|
+
Dt,
|
|
1298
|
+
Vt,
|
|
1299
|
+
oe,
|
|
1300
|
+
e,
|
|
1301
|
+
t,
|
|
1302
|
+
S,
|
|
1303
|
+
I,
|
|
1304
|
+
pt,
|
|
1305
|
+
N,
|
|
1306
|
+
Nt,
|
|
1307
|
+
$t,
|
|
1308
|
+
at
|
|
1309
|
+
]);
|
|
1310
|
+
const We = E(
|
|
1311
|
+
() => !$ && ze.some((l) => {
|
|
1312
|
+
const d = l.charAt(0), h = t[`${l}VerticalAlign`];
|
|
1313
|
+
return je(h, t, d);
|
|
1314
|
+
}),
|
|
1315
|
+
[
|
|
1316
|
+
$,
|
|
1317
|
+
t,
|
|
1318
|
+
t.AColumnVerticalAlign,
|
|
1319
|
+
t.BColumnVerticalAlign,
|
|
1320
|
+
t.CColumnVerticalAlign,
|
|
1321
|
+
t.DColumnVerticalAlign,
|
|
1322
|
+
t.EColumnVerticalAlign
|
|
1323
|
+
]
|
|
1324
|
+
);
|
|
1325
|
+
Ut(() => {
|
|
1326
|
+
var H;
|
|
1327
|
+
const l = mt.current;
|
|
1328
|
+
if (!l) return;
|
|
1329
|
+
const d = () => {
|
|
1330
|
+
l.querySelectorAll("[data-list-col]").forEach((k) => {
|
|
1331
|
+
k.style.transform = "";
|
|
1332
|
+
const B = k.querySelector(`.${i}-list-col`);
|
|
1333
|
+
B && (B.style.minHeight = "", B.style.height = "");
|
|
1334
|
+
const F = k.querySelector(`.${i}-list-col-title`);
|
|
1335
|
+
F && (F.style.transform = "");
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
if ($ || !We) {
|
|
1339
|
+
d();
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
const h = () => {
|
|
1343
|
+
const k = Array.from(l.querySelectorAll("[data-list-row]")), B = `${i}-list-col`, F = `${i}-baseline-probe`;
|
|
1344
|
+
k.forEach((K) => {
|
|
1345
|
+
K.querySelectorAll("[data-list-col]").forEach((z) => {
|
|
1346
|
+
z.style.transform = "";
|
|
1347
|
+
const U = z.querySelector(`.${B}`);
|
|
1348
|
+
U && (U.style.minHeight = "", U.style.height = "");
|
|
1349
|
+
const et = z.querySelector(`.${i}-list-col-title`);
|
|
1350
|
+
et && (et.style.transform = "");
|
|
1351
|
+
});
|
|
1352
|
+
}), k.forEach((K) => {
|
|
1353
|
+
const z = Array.from(K.querySelectorAll("[data-list-col]"));
|
|
1354
|
+
or(K, z, B);
|
|
1355
|
+
}), l.offsetHeight, k.forEach((K) => {
|
|
1356
|
+
const z = Array.from(K.querySelectorAll("[data-list-col]")), U = K.getBoundingClientRect().top, et = /* @__PURE__ */ new Map(), It = z.map((x) => {
|
|
1357
|
+
const lt = x.querySelector(`.${i}-list-col-title`), st = {
|
|
1358
|
+
el: x,
|
|
1359
|
+
titleEl: lt,
|
|
1360
|
+
letter: x.getAttribute("data-col-letter") ?? "",
|
|
1361
|
+
kind: x.getAttribute("data-valign") ?? "top",
|
|
1362
|
+
anchor: x.getAttribute("data-valign-anchor")
|
|
1363
|
+
};
|
|
1364
|
+
return et.set(st.letter, st), st;
|
|
1365
|
+
}), X = /* @__PURE__ */ new Map(), Kt = (x, lt) => {
|
|
1366
|
+
const st = X.get(x.letter);
|
|
1367
|
+
if (st !== void 0) return st;
|
|
1368
|
+
const Ae = x.anchor ? et.get(x.anchor) : void 0;
|
|
1369
|
+
if (x.kind !== "baseline" || !Ae || lt.has(x.letter)) {
|
|
1370
|
+
const Be = le(
|
|
1371
|
+
x,
|
|
1372
|
+
U,
|
|
1373
|
+
B,
|
|
1374
|
+
F
|
|
1375
|
+
);
|
|
1376
|
+
return X.set(x.letter, Be), Be;
|
|
1377
|
+
}
|
|
1378
|
+
lt.add(x.letter);
|
|
1379
|
+
const Bo = Kt(Ae, lt);
|
|
1380
|
+
lt.delete(x.letter);
|
|
1381
|
+
const Eo = le(
|
|
1382
|
+
x,
|
|
1383
|
+
U,
|
|
1384
|
+
B,
|
|
1385
|
+
F
|
|
1386
|
+
), So = Bo - Eo;
|
|
1387
|
+
rr(x.titleEl, So);
|
|
1388
|
+
const ke = le(
|
|
1389
|
+
x,
|
|
1390
|
+
U,
|
|
1391
|
+
B,
|
|
1392
|
+
F
|
|
1393
|
+
);
|
|
1394
|
+
return X.set(x.letter, ke), ke;
|
|
1395
|
+
};
|
|
1396
|
+
It.forEach((x) => Kt(x, /* @__PURE__ */ new Set()));
|
|
1397
|
+
});
|
|
1398
|
+
};
|
|
1399
|
+
let y = null;
|
|
1400
|
+
const T = () => {
|
|
1401
|
+
y === null && (y = requestAnimationFrame(() => {
|
|
1402
|
+
y = null, h();
|
|
1403
|
+
}));
|
|
1404
|
+
};
|
|
1405
|
+
h();
|
|
1406
|
+
const W = new ResizeObserver(() => T());
|
|
1407
|
+
W.observe(l);
|
|
1408
|
+
let p = !1;
|
|
1409
|
+
return typeof document < "u" && ((H = document.fonts) != null && H.ready) && document.fonts.ready.then(() => {
|
|
1410
|
+
p || T();
|
|
1411
|
+
}), () => {
|
|
1412
|
+
p = !0, y !== null && (cancelAnimationFrame(y), y = null), W.disconnect(), d();
|
|
1413
|
+
};
|
|
1414
|
+
}, [
|
|
1415
|
+
We,
|
|
1416
|
+
$,
|
|
1417
|
+
t,
|
|
1418
|
+
e,
|
|
1419
|
+
pt,
|
|
1420
|
+
tt,
|
|
1421
|
+
I
|
|
1422
|
+
]);
|
|
1423
|
+
const ko = E(() => Xo(i), [i]);
|
|
1424
|
+
return /* @__PURE__ */ Y(Ee, { children: [
|
|
1425
|
+
/* @__PURE__ */ b("style", { dangerouslySetInnerHTML: { __html: ko } }),
|
|
1426
|
+
/* @__PURE__ */ b("div", { style: mo, children: /* @__PURE__ */ Y(
|
|
1427
|
+
"div",
|
|
1428
|
+
{
|
|
1429
|
+
ref: mt,
|
|
1430
|
+
className: `${i}-wrapper ${fo}${Le ? ` ${Le}` : ""}${$ ? ` ${i}-type-b` : ""}`.trim(),
|
|
1431
|
+
style: {
|
|
1432
|
+
width: ot(c ?? 0, o)
|
|
1433
|
+
},
|
|
1434
|
+
onMouseMove: V ? Ro : void 0,
|
|
1435
|
+
onMouseLeave: V ? To : void 0,
|
|
1436
|
+
children: [
|
|
1437
|
+
/* @__PURE__ */ Y("div", { style: { width: "100%", position: "relative" }, children: [
|
|
1438
|
+
tt.map((l, d) => {
|
|
1439
|
+
var W;
|
|
1440
|
+
const h = (((W = l.link) == null ? void 0 : W.length) ?? 0) > 0, y = h && (!o || r) ? "a" : "div", T = Oe(
|
|
1441
|
+
d,
|
|
1442
|
+
tt.length,
|
|
1443
|
+
Nt,
|
|
1444
|
+
$t,
|
|
1445
|
+
at,
|
|
1446
|
+
N ?? 0,
|
|
1447
|
+
o ?? !1
|
|
1448
|
+
);
|
|
1449
|
+
return /* @__PURE__ */ Y(
|
|
1450
|
+
y,
|
|
1451
|
+
{
|
|
1452
|
+
ref: d === 0 ? (p) => {
|
|
1453
|
+
$e.current = p;
|
|
1454
|
+
} : void 0,
|
|
1455
|
+
className: `${i}-list-item${h || Jt === "always" ? ` ${i}-list-item-has-link` : ""}${at && d === tt.length - 1 ? ` ${i}-list-item-before-cut` : ""}`,
|
|
1456
|
+
...h ? { href: l.link, target: "_blank" } : {},
|
|
1457
|
+
style: T,
|
|
1458
|
+
onMouseEnter: (p) => {
|
|
1459
|
+
nt && (h || Jt === "always") && Se(p, i), V && Lo(l, p);
|
|
1460
|
+
},
|
|
1461
|
+
onMouseLeave: (p) => {
|
|
1462
|
+
nt && (h || Jt === "always") && Me(p, i);
|
|
1463
|
+
},
|
|
1464
|
+
children: [
|
|
1465
|
+
Dt > 0 && /* @__PURE__ */ b(
|
|
1466
|
+
"div",
|
|
1467
|
+
{
|
|
1468
|
+
className: `${i}-row-padding-handle`,
|
|
1469
|
+
style: { height: g(Dt) }
|
|
1470
|
+
}
|
|
1471
|
+
),
|
|
1472
|
+
/* @__PURE__ */ Y(
|
|
1473
|
+
"div",
|
|
1474
|
+
{
|
|
1475
|
+
className: `${i}-list-cols-row${$ ? "" : ` ${i}-list-cols-row-h`}${f && d === 0 && $ ? ` ${i}-list-cols-row-controls` : ""}`,
|
|
1476
|
+
...$ ? {} : { "data-list-row": "" },
|
|
1477
|
+
style: $ ? void 0 : { minHeight: g(oe) },
|
|
1478
|
+
children: [
|
|
1479
|
+
S.map((p, H) => {
|
|
1480
|
+
const k = H === S.length - 1, B = it[H], F = p.paddingBottom, K = Vo(l.cells[p.key]), z = $ && F > 0, U = $ ? { minHeight: g(oe) } : { width: g(I[H]) }, et = $ ? {
|
|
1481
|
+
paddingLeft: g(ft),
|
|
1482
|
+
paddingRight: g(ft)
|
|
1483
|
+
} : {
|
|
1484
|
+
paddingLeft: g(B.paddingLeft),
|
|
1485
|
+
paddingRight: g(B.paddingRight)
|
|
1486
|
+
}, It = p.textPrefix.charAt(0), X = $ ? Jo(
|
|
1487
|
+
t[`${p.textPrefix}VerticalAlign`]
|
|
1488
|
+
) : Go(
|
|
1489
|
+
t[`${p.textPrefix}VerticalAlign`],
|
|
1490
|
+
t,
|
|
1491
|
+
It
|
|
1492
|
+
), Kt = $ && f && d === 0;
|
|
1493
|
+
return /* @__PURE__ */ Y(
|
|
1494
|
+
"div",
|
|
1495
|
+
{
|
|
1496
|
+
className: $ ? `${i}-list-col-wrap` : void 0,
|
|
1497
|
+
...$ ? {} : {
|
|
1498
|
+
"data-list-col": "",
|
|
1499
|
+
"data-col-letter": It,
|
|
1500
|
+
"data-valign": X.kind,
|
|
1501
|
+
...X.kind === "baseline" ? { "data-valign-anchor": X.anchorLetter } : {}
|
|
1502
|
+
},
|
|
1503
|
+
children: [
|
|
1504
|
+
/* @__PURE__ */ b(
|
|
1505
|
+
"div",
|
|
1506
|
+
{
|
|
1507
|
+
className: `${i}-list-col${k ? ` ${i}-list-col-last` : ""}`,
|
|
1508
|
+
style: {
|
|
1509
|
+
...et,
|
|
1510
|
+
...U,
|
|
1511
|
+
...$ ? { justifyContent: Fe(X.kind) } : {}
|
|
1512
|
+
},
|
|
1513
|
+
"data-test": p.width,
|
|
1514
|
+
children: /* @__PURE__ */ b(
|
|
1515
|
+
"span",
|
|
1516
|
+
{
|
|
1517
|
+
className: De(
|
|
1518
|
+
t,
|
|
1519
|
+
p.textPrefix,
|
|
1520
|
+
`${i}-list-col-title`,
|
|
1521
|
+
`${i}-text-tight-leading`
|
|
1522
|
+
),
|
|
1523
|
+
style: {
|
|
1524
|
+
...Ne(qt(t, p.textPrefix), o),
|
|
1525
|
+
...Ve(t, p.textPrefix, i, o),
|
|
1526
|
+
...$ ? {} : Qo(X.kind)
|
|
1527
|
+
},
|
|
1528
|
+
children: K ? l.cells[p.key] ?? null : $ ? " " : null
|
|
1529
|
+
}
|
|
1530
|
+
)
|
|
1531
|
+
}
|
|
1532
|
+
),
|
|
1533
|
+
z && /* @__PURE__ */ b(
|
|
1534
|
+
"div",
|
|
1535
|
+
{
|
|
1536
|
+
className: `${i}-row-padding-handle`,
|
|
1537
|
+
style: { height: g(F) }
|
|
1538
|
+
}
|
|
1539
|
+
),
|
|
1540
|
+
Kt && /* @__PURE__ */ b(
|
|
1541
|
+
"div",
|
|
1542
|
+
{
|
|
1543
|
+
"data-controls": p.paddingBottomKey,
|
|
1544
|
+
"data-controls-axis": "y",
|
|
1545
|
+
"data-controls-variant": "column-padding",
|
|
1546
|
+
"data-controls-min": "0",
|
|
1547
|
+
"data-controls-center-only-drag": "",
|
|
1548
|
+
"data-controls-hit-placement": "center",
|
|
1549
|
+
className: `${i}-control-anchor`,
|
|
1550
|
+
style: {
|
|
1551
|
+
bottom: 0,
|
|
1552
|
+
left: 0,
|
|
1553
|
+
width: "100%",
|
|
1554
|
+
height: g(Math.max(F, se))
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
)
|
|
1558
|
+
]
|
|
1559
|
+
},
|
|
1560
|
+
p.key
|
|
1561
|
+
);
|
|
1562
|
+
}),
|
|
1563
|
+
f && d === 0 && $ && /* @__PURE__ */ Y(Ee, { children: [
|
|
1564
|
+
/* @__PURE__ */ b(
|
|
1565
|
+
"div",
|
|
1566
|
+
{
|
|
1567
|
+
"data-controls": "textPaddingLR",
|
|
1568
|
+
"data-controls-paired": "",
|
|
1569
|
+
"data-controls-axis": "x",
|
|
1570
|
+
"data-controls-variant": "column-padding",
|
|
1571
|
+
"data-controls-min": "0",
|
|
1572
|
+
"data-controls-max-fraction": String(ye),
|
|
1573
|
+
"data-controls-center-only-drag": "",
|
|
1574
|
+
"data-controls-hit-placement": "center",
|
|
1575
|
+
className: `${i}-control-anchor`,
|
|
1576
|
+
style: {
|
|
1577
|
+
top: 0,
|
|
1578
|
+
left: 0,
|
|
1579
|
+
width: g(Ft),
|
|
1580
|
+
height: "100%"
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
),
|
|
1584
|
+
/* @__PURE__ */ b(
|
|
1585
|
+
"div",
|
|
1586
|
+
{
|
|
1587
|
+
"data-controls": "textPaddingLR",
|
|
1588
|
+
"data-controls-paired": "",
|
|
1589
|
+
"data-controls-axis": "x",
|
|
1590
|
+
"data-controls-variant": "column-padding",
|
|
1591
|
+
"data-controls-reverse": "",
|
|
1592
|
+
"data-controls-min": "0",
|
|
1593
|
+
"data-controls-max-fraction": String(ye),
|
|
1594
|
+
"data-controls-center-only-drag": "",
|
|
1595
|
+
"data-controls-hit-placement": "center",
|
|
1596
|
+
className: `${i}-control-anchor`,
|
|
1597
|
+
style: {
|
|
1598
|
+
top: 0,
|
|
1599
|
+
left: g(Math.max(Ft, Q - Ft)),
|
|
1600
|
+
width: g(Ft),
|
|
1601
|
+
height: "100%"
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
)
|
|
1605
|
+
] })
|
|
1606
|
+
]
|
|
1607
|
+
}
|
|
1608
|
+
),
|
|
1609
|
+
!$ && Vt > 0 && /* @__PURE__ */ b(
|
|
1610
|
+
"div",
|
|
1611
|
+
{
|
|
1612
|
+
className: `${i}-row-padding-handle`,
|
|
1613
|
+
style: { height: g(Vt) }
|
|
1614
|
+
}
|
|
1615
|
+
),
|
|
1616
|
+
f && d === 0 && !$ && /* @__PURE__ */ b(
|
|
1617
|
+
"div",
|
|
1618
|
+
{
|
|
1619
|
+
"data-controls": "rowPaddingBottom",
|
|
1620
|
+
"data-controls-axis": "y",
|
|
1621
|
+
"data-controls-variant": "row-padding",
|
|
1622
|
+
"data-controls-min": "0",
|
|
1623
|
+
"data-controls-center-only-drag": "",
|
|
1624
|
+
"data-controls-hit-placement": "left-y",
|
|
1625
|
+
className: `${i}-control-anchor`,
|
|
1626
|
+
style: {
|
|
1627
|
+
bottom: 0,
|
|
1628
|
+
left: 0,
|
|
1629
|
+
width: "100%",
|
|
1630
|
+
height: g(yo)
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
)
|
|
1634
|
+
]
|
|
1635
|
+
},
|
|
1636
|
+
l.id
|
|
1637
|
+
);
|
|
1638
|
+
}),
|
|
1639
|
+
f && /* @__PURE__ */ b("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ b(
|
|
1640
|
+
"div",
|
|
1641
|
+
{
|
|
1642
|
+
"data-controls": Co,
|
|
1643
|
+
"data-controls-axis": "y",
|
|
1644
|
+
"data-controls-variant": "row-padding",
|
|
1645
|
+
"data-controls-min": "0",
|
|
1646
|
+
"data-controls-center-only-drag": "",
|
|
1647
|
+
"data-controls-hit-placement": $ ? "center" : "left-y",
|
|
1648
|
+
className: `${i}-control-anchor`,
|
|
1649
|
+
style: {
|
|
1650
|
+
top: bo,
|
|
1651
|
+
left: 0,
|
|
1652
|
+
width: "100%",
|
|
1653
|
+
height: g(Math.max(Dt, se))
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
) }, "row-padding-handles"),
|
|
1657
|
+
f && !$ && re && ne && /* @__PURE__ */ Y("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
1658
|
+
/* @__PURE__ */ b(
|
|
1659
|
+
"div",
|
|
1660
|
+
{
|
|
1661
|
+
"data-controls": re.paddingLeftKey,
|
|
1662
|
+
"data-controls-axis": "x",
|
|
1663
|
+
"data-controls-variant": "column-padding",
|
|
1664
|
+
"data-controls-min": "0",
|
|
1665
|
+
"data-controls-max-fraction": String(
|
|
1666
|
+
I[0] - ((gt == null ? void 0 : gt.paddingRight) ?? 0)
|
|
1667
|
+
),
|
|
1668
|
+
"data-controls-center-only-drag": "",
|
|
1669
|
+
"data-controls-hit-placement": "center-x",
|
|
1670
|
+
"data-controls-hit-top": _t ?? void 0,
|
|
1671
|
+
className: `${i}-control-anchor`,
|
|
1672
|
+
style: {
|
|
1673
|
+
top: 0,
|
|
1674
|
+
left: 0,
|
|
1675
|
+
width: g(wo),
|
|
1676
|
+
height: "100%"
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
),
|
|
1680
|
+
/* @__PURE__ */ b(
|
|
1681
|
+
"div",
|
|
1682
|
+
{
|
|
1683
|
+
"data-controls": ne.paddingRightKey,
|
|
1684
|
+
"data-controls-axis": "x",
|
|
1685
|
+
"data-controls-variant": "column-padding",
|
|
1686
|
+
"data-controls-reverse": "",
|
|
1687
|
+
"data-controls-min": "0",
|
|
1688
|
+
"data-controls-max-fraction": String(
|
|
1689
|
+
I[S.length - 1] - ((yt == null ? void 0 : yt.paddingLeft) ?? 0)
|
|
1690
|
+
),
|
|
1691
|
+
"data-controls-center-only-drag": "",
|
|
1692
|
+
"data-controls-hit-placement": "center-x",
|
|
1693
|
+
"data-controls-hit-top": _t ?? void 0,
|
|
1694
|
+
className: `${i}-control-anchor`,
|
|
1695
|
+
style: {
|
|
1696
|
+
top: 0,
|
|
1697
|
+
left: g(xo - Re),
|
|
1698
|
+
width: g(Re),
|
|
1699
|
+
height: "100%"
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
)
|
|
1703
|
+
] }, "column-edge-padding-handles"),
|
|
1704
|
+
f && !$ && S.slice(0, -1).map((l, d) => {
|
|
1705
|
+
const h = S[d + 1], y = Pt.slice(0, d + 1).reduce((k, B) => k + B, 0), T = it[d], W = it[d + 1], p = Math.max(
|
|
1706
|
+
T.paddingRight,
|
|
1707
|
+
ct
|
|
1708
|
+
), H = Math.max(
|
|
1709
|
+
W.paddingLeft,
|
|
1710
|
+
ct
|
|
1711
|
+
);
|
|
1712
|
+
return /* @__PURE__ */ Y("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
1713
|
+
/* @__PURE__ */ b(
|
|
1714
|
+
"div",
|
|
1715
|
+
{
|
|
1716
|
+
"data-controls": l.paddingRightKey,
|
|
1717
|
+
"data-controls-axis": "x",
|
|
1718
|
+
"data-controls-variant": "column-padding",
|
|
1719
|
+
"data-controls-reverse": "",
|
|
1720
|
+
"data-controls-min": "0",
|
|
1721
|
+
"data-controls-max-fraction": String(
|
|
1722
|
+
I[d] - T.paddingLeft
|
|
1723
|
+
),
|
|
1724
|
+
"data-controls-center-only-drag": "",
|
|
1725
|
+
"data-controls-hit-placement": "center-x",
|
|
1726
|
+
"data-controls-hit-top": _t ?? void 0,
|
|
1727
|
+
className: `${i}-control-anchor`,
|
|
1728
|
+
style: {
|
|
1729
|
+
top: 0,
|
|
1730
|
+
left: g(y - p),
|
|
1731
|
+
width: g(p),
|
|
1732
|
+
height: "100%"
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
),
|
|
1736
|
+
/* @__PURE__ */ b(
|
|
1737
|
+
"div",
|
|
1738
|
+
{
|
|
1739
|
+
"data-controls": h.paddingLeftKey,
|
|
1740
|
+
"data-controls-axis": "x",
|
|
1741
|
+
"data-controls-variant": "column-padding",
|
|
1742
|
+
"data-controls-min": "0",
|
|
1743
|
+
"data-controls-max-fraction": String(
|
|
1744
|
+
I[d + 1] - W.paddingRight
|
|
1745
|
+
),
|
|
1746
|
+
"data-controls-center-only-drag": "",
|
|
1747
|
+
"data-controls-hit-placement": "center-x",
|
|
1748
|
+
"data-controls-hit-top": _t ?? void 0,
|
|
1749
|
+
className: `${i}-control-anchor`,
|
|
1750
|
+
style: {
|
|
1751
|
+
top: 0,
|
|
1752
|
+
left: g(y),
|
|
1753
|
+
width: g(H),
|
|
1754
|
+
height: "100%"
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
)
|
|
1758
|
+
] }, `${l.paddingRightKey}-padding`);
|
|
1759
|
+
}),
|
|
1760
|
+
f && !$ && S.slice(0, -1).map((l, d) => {
|
|
1761
|
+
const h = gr(
|
|
1762
|
+
d,
|
|
1763
|
+
Pt,
|
|
1764
|
+
$o,
|
|
1765
|
+
Q
|
|
1766
|
+
), T = Pt.slice(0, d + 1).reduce((W, p) => W + p, 0) - Ie / 2;
|
|
1767
|
+
return /* @__PURE__ */ b("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ b(
|
|
1768
|
+
"div",
|
|
1769
|
+
{
|
|
1770
|
+
"data-controls": l.widthKey,
|
|
1771
|
+
"data-controls-axis": "x",
|
|
1772
|
+
"data-controls-min": String(de),
|
|
1773
|
+
"data-controls-max-fraction": String(h),
|
|
1774
|
+
"data-controls-variant": "column-width",
|
|
1775
|
+
className: `${i}-col-resize-handle`,
|
|
1776
|
+
style: {
|
|
1777
|
+
position: "absolute",
|
|
1778
|
+
top: "0px",
|
|
1779
|
+
left: g(T),
|
|
1780
|
+
width: g(Ie),
|
|
1781
|
+
height: "calc(100%)",
|
|
1782
|
+
pointerEvents: "auto"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
) }, `${l.widthKey}-junction`);
|
|
1786
|
+
})
|
|
1787
|
+
] }),
|
|
1788
|
+
at && (() => {
|
|
1789
|
+
const l = qt(t, wt), d = Po(t.cutLabelVerticalAlign), h = l.textTextAlign === "justify" || $;
|
|
1790
|
+
return /* @__PURE__ */ b(
|
|
1791
|
+
"button",
|
|
1792
|
+
{
|
|
1793
|
+
type: "button",
|
|
1794
|
+
className: `${i}-cut-item`,
|
|
1795
|
+
style: {
|
|
1796
|
+
minHeight: g(A ?? 0),
|
|
1797
|
+
cursor: ee ? "pointer" : "default",
|
|
1798
|
+
...Io(
|
|
1799
|
+
$t,
|
|
1800
|
+
N ?? 0,
|
|
1801
|
+
o ?? !1
|
|
1802
|
+
)
|
|
1803
|
+
},
|
|
1804
|
+
onClick: ee ? go : void 0,
|
|
1805
|
+
onMouseEnter: nt || V ? Wo : void 0,
|
|
1806
|
+
onMouseLeave: nt ? Ao : void 0,
|
|
1807
|
+
children: /* @__PURE__ */ b(
|
|
1808
|
+
"div",
|
|
1809
|
+
{
|
|
1810
|
+
className: `${i}-list-cols-row`,
|
|
1811
|
+
style: {
|
|
1812
|
+
...$ ? {
|
|
1813
|
+
paddingLeft: g(ft),
|
|
1814
|
+
paddingRight: g(ft)
|
|
1815
|
+
} : {},
|
|
1816
|
+
justifyContent: tr(l.textTextAlign),
|
|
1817
|
+
alignItems: Fe(d)
|
|
1818
|
+
},
|
|
1819
|
+
children: /* @__PURE__ */ b(
|
|
1820
|
+
"span",
|
|
1821
|
+
{
|
|
1822
|
+
className: De(
|
|
1823
|
+
t,
|
|
1824
|
+
wt,
|
|
1825
|
+
`${i}-cut-label`,
|
|
1826
|
+
`${i}-text-tight-leading`
|
|
1827
|
+
),
|
|
1828
|
+
style: {
|
|
1829
|
+
...Ne(l, o),
|
|
1830
|
+
...Ve(t, wt, i, o),
|
|
1831
|
+
...h ? { width: "100%" } : {}
|
|
1832
|
+
},
|
|
1833
|
+
children: rt
|
|
1834
|
+
}
|
|
1835
|
+
)
|
|
1836
|
+
}
|
|
1837
|
+
)
|
|
1838
|
+
}
|
|
1839
|
+
);
|
|
1840
|
+
})(),
|
|
1841
|
+
V && w && typeof document < "u" && (() => {
|
|
1842
|
+
const l = `${w.widthPx}px`, d = {
|
|
1843
|
+
width: l,
|
|
1844
|
+
height: "auto",
|
|
1845
|
+
maxHeight: l,
|
|
1846
|
+
objectFit: "contain"
|
|
1847
|
+
}, h = (u ? document.getElementById(u) : null) ?? document.body;
|
|
1848
|
+
return Mo(
|
|
1849
|
+
/* @__PURE__ */ b("div", { ref: uo, className: `${i}-hover-media-anchor`, "data-selection": "none", children: /* @__PURE__ */ b(
|
|
1850
|
+
Do,
|
|
1851
|
+
{
|
|
1852
|
+
media: w,
|
|
1853
|
+
className: w.isVideo ? `${i}-hover-video` : `${i}-hover-image`,
|
|
1854
|
+
style: d
|
|
1855
|
+
},
|
|
1856
|
+
`${w.rowId}-${w.assetId}`
|
|
1857
|
+
) }),
|
|
1858
|
+
h
|
|
1859
|
+
);
|
|
1860
|
+
})()
|
|
1861
|
+
]
|
|
1862
|
+
}
|
|
1863
|
+
) })
|
|
1864
|
+
] });
|
|
1865
|
+
}
|
|
1866
|
+
export {
|
|
1867
|
+
jt as COLUMN_CONTENT_KEYS,
|
|
1868
|
+
ze as COLUMN_TEXT_PREFIXES,
|
|
1869
|
+
Br as COLUMN_VALIGN_BASIC_OPTIONS,
|
|
1870
|
+
wt as CUT_LABEL_TEXT_PREFIX,
|
|
1871
|
+
Gt as LIST_COLUMN_LETTERS,
|
|
1872
|
+
Yo as LIST_TEXT_STYLE_PREFIXES,
|
|
1873
|
+
ir as LIST_TEXT_STYLE_TAB_LABELS,
|
|
1874
|
+
Mr as List,
|
|
1875
|
+
Sr as applyListColumnCountChange,
|
|
1876
|
+
vr as applyListSettingsChange,
|
|
1877
|
+
Er as createListTextStylePanelTab,
|
|
1878
|
+
ar as createListTextStyleTabContentItems,
|
|
1879
|
+
Yt as getEffectiveListColumnWidths,
|
|
1880
|
+
dr as getEqualListColumnWidthUpdates,
|
|
1881
|
+
j as getListColumnTextSettingKey,
|
|
1882
|
+
Ue as getListColumnVerticalAlignSettingKey,
|
|
1883
|
+
xt as getListEffectiveContentWidth,
|
|
1884
|
+
qe as getListMinColumnWidth,
|
|
1885
|
+
jo as isBaselineAnchorColumnVerticalAlign,
|
|
1886
|
+
Ye as isValidColumnBaselineVAlign,
|
|
1887
|
+
Xe as normalizeListColumnVerticalAlign,
|
|
1888
|
+
qo as parseBaselineAnchorLetter,
|
|
1889
|
+
Je as resolveListColumnPadding,
|
|
1890
|
+
ue as resolveListColumnWidths
|
|
1891
|
+
};
|