@cntrl-site/components 1.0.115 → 1.0.116
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/Chronicles-BNvvaFYY.mjs +744 -0
- package/dist/Chronicles-Dj1gvNjE.js +196 -0
- package/dist/{ChroniclesComponent-D-yEbs9w.mjs → ChroniclesComponent-0ZWBPdbh.mjs} +542 -491
- package/dist/ChroniclesComponent-D4_6w8f7.js +1 -0
- package/dist/Components/Chronicles/Chronicles.d.ts +7 -1
- package/dist/Components/Chronicles/ChroniclesComponent.d.ts +26 -2
- package/dist/Components/LightboxJournal/LightboxJournal.d.ts +1 -0
- package/dist/Components/LightboxStrip/LightboxStrip.d.ts +1 -0
- package/dist/LightboxJournal-Bmw2zm4t.js +549 -0
- package/dist/{LightboxJournal-D59ex6wH.mjs → LightboxJournal-gePVKQJ4.mjs} +429 -403
- package/dist/{LightboxStrip-YspzBP8N.mjs → LightboxStrip-BPQiQhd3.mjs} +461 -435
- package/dist/LightboxStrip-CTxRwLYk.js +412 -0
- package/dist/{components-D4ZrIo2M.js → components-B8MjlzLL.js} +1 -1
- package/dist/{components-Ds6rhj3U.mjs → components-BQjon_-7.mjs} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +3 -3
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +36 -32
- package/dist/sources.js +124 -25
- package/dist/sources.mjs +131 -32
- package/dist/types/SchemaV1.d.ts +3 -0
- package/package.json +1 -1
- package/dist/Chronicles-Cy2h3jlZ.mjs +0 -724
- package/dist/Chronicles-D0ojQzOP.js +0 -196
- package/dist/ChroniclesComponent-Os_r2IYg.js +0 -1
- package/dist/LightboxJournal-DAEZOPDi.js +0 -523
- package/dist/LightboxStrip-BDjI1jyH.js +0 -386
|
@@ -1,297 +1,297 @@
|
|
|
1
1
|
import { jsxs as a, jsx as l, Fragment as ft } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as p, useMemo as
|
|
3
|
-
import { flushSync as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { s as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import { j as
|
|
10
|
-
const
|
|
2
|
+
import { useCallback as p, useMemo as L, useState as H, useRef as b, useEffect as nt, useLayoutEffect as Xe } from "react";
|
|
3
|
+
import { flushSync as Ki, createPortal as Oi } from "react-dom";
|
|
4
|
+
import { u as ji } from "./useScopedStyles-DhBG3557.mjs";
|
|
5
|
+
import { u as Ai, i as Tt, g as ti } from "./useLightboxSwipeDismiss-SGv6Ra33.mjs";
|
|
6
|
+
import { s as be } from "./scalingValue-C9JH5L6O.mjs";
|
|
7
|
+
import { S as Fi } from "./SvgImage-B5mR9y6q.mjs";
|
|
8
|
+
import { u as _i } from "./useLightboxScrollLock-VQ07s7EJ.mjs";
|
|
9
|
+
import { j as Dt, r as Gt, i as Et, s as ei, k as Ye, S as Di, l as Ee, m as Gi, D as Te, b as Jt, a as qe, g as Ze, c as Ut, e as it, h as Ji, n as Se, f as ht, d as Ui, T as Vt, o as Vi, p as Xi, q as Yi, t as Qe, u as Pe, v as Ei } from "./utils-FxC9rcxw.mjs";
|
|
10
|
+
const qi = ({
|
|
11
11
|
prefix: t,
|
|
12
|
-
entries:
|
|
12
|
+
entries: _,
|
|
13
13
|
settings: W,
|
|
14
|
-
isEditor:
|
|
14
|
+
isEditor: w,
|
|
15
15
|
isEditMode: f,
|
|
16
|
-
isPreviewMode:
|
|
16
|
+
isPreviewMode: ot,
|
|
17
17
|
initialSlideIndex: Y = 0,
|
|
18
18
|
enableUrlSync: N = !1,
|
|
19
|
-
journalItemId:
|
|
20
|
-
onBeforeClose:
|
|
21
|
-
onClose:
|
|
19
|
+
journalItemId: M = null,
|
|
20
|
+
onBeforeClose: E,
|
|
21
|
+
onClose: q
|
|
22
22
|
}) => {
|
|
23
23
|
const {
|
|
24
|
-
type:
|
|
25
|
-
coverFit:
|
|
26
|
-
backgroundColor:
|
|
27
|
-
imageGap:
|
|
28
|
-
maxWidth:
|
|
29
|
-
maxHeight:
|
|
30
|
-
textTransition:
|
|
31
|
-
title1Width:
|
|
32
|
-
title2Width:
|
|
33
|
-
title3Width:
|
|
34
|
-
title1MarginLeft:
|
|
35
|
-
title2MarginLeft:
|
|
36
|
-
title3MarginLeft:
|
|
37
|
-
titleRowMarginBottom:
|
|
38
|
-
titleHeaderLayout:
|
|
39
|
-
countCloseGap:
|
|
40
|
-
closeIcon:
|
|
41
|
-
closeIconMaxWidth:
|
|
42
|
-
closeIconColor:
|
|
43
|
-
closeIconHoverColor:
|
|
44
|
-
contentMarginTop:
|
|
45
|
-
iconMarginRight:
|
|
46
|
-
} = W, u = p((e) =>
|
|
47
|
-
const e =
|
|
24
|
+
type: z,
|
|
25
|
+
coverFit: lt,
|
|
26
|
+
backgroundColor: qt,
|
|
27
|
+
imageGap: Zt,
|
|
28
|
+
maxWidth: Qt,
|
|
29
|
+
maxHeight: K,
|
|
30
|
+
textTransition: D,
|
|
31
|
+
title1Width: rt,
|
|
32
|
+
title2Width: ut,
|
|
33
|
+
title3Width: Z,
|
|
34
|
+
title1MarginLeft: R = 0,
|
|
35
|
+
title2MarginLeft: B = 0,
|
|
36
|
+
title3MarginLeft: St = 0,
|
|
37
|
+
titleRowMarginBottom: T = 0,
|
|
38
|
+
titleHeaderLayout: Pt = "single-row",
|
|
39
|
+
countCloseGap: te = 0,
|
|
40
|
+
closeIcon: It,
|
|
41
|
+
closeIconMaxWidth: y,
|
|
42
|
+
closeIconColor: O,
|
|
43
|
+
closeIconHoverColor: G,
|
|
44
|
+
contentMarginTop: Wt = 0,
|
|
45
|
+
iconMarginRight: ni = 0
|
|
46
|
+
} = W, u = p((e) => be(e, w ?? !1), [w]), ee = u(Zt ?? 0), oi = `${Qt}%`, li = `${K}%`, Nt = u(te), ri = u(Wt), Ie = u(ni), st = Dt("title1", Gt(W, "title1"), w), mt = Dt("title2", Gt(W, "title2"), w), gt = Dt("title3", Gt(W, "title3"), w), si = Dt("count", Gt(W, "count"), w), x = Pt === "mobile", J = !w || !!ot, ai = !f && (!w || !!ot), d = L(() => Et(_, z), [_, z]), [$, ie] = H(Y), pt = d[$], h = pt == null ? void 0 : pt.entry, [We, Ne] = H(!1), [Re, xt] = H(null), [S, vt] = H(!1), [ke, ne] = H(null), [Ce, oe] = H(!1), [le, Le] = H(0), [at, wt] = H(), [Rt, $t] = H(), [kt, Ct] = H(null), Q = b(null), Lt = b(0), Ht = b(0), He = b(0), Me = b(!1), re = b(null), se = b(null), U = b(null), V = b(null), ae = b(null), ze = b(null), Mt = b(null), Be = p(() => {
|
|
47
|
+
const e = se.current;
|
|
48
48
|
if (!e) return;
|
|
49
49
|
const i = e.closest(`.${t}-lightbox-content-area`);
|
|
50
50
|
if (!i) return e.getBoundingClientRect().width;
|
|
51
51
|
const r = Array.from(i.children).reduce((n, o) => !(o instanceof HTMLElement) || o.contains(e) ? n : n + o.getBoundingClientRect().width, 0);
|
|
52
52
|
return i.getBoundingClientRect().width - r;
|
|
53
|
-
}, [t]),
|
|
54
|
-
|
|
55
|
-
}, []),
|
|
56
|
-
e === Lt.current && (
|
|
57
|
-
}, []),
|
|
58
|
-
f ||
|
|
59
|
-
|
|
53
|
+
}, [t]), P = p(() => {
|
|
54
|
+
Q.current && (clearTimeout(Q.current), Q.current = null);
|
|
55
|
+
}, []), ci = p((e) => {
|
|
56
|
+
e === Lt.current && (ne(null), oe(!1));
|
|
57
|
+
}, []), yt = p(() => {
|
|
58
|
+
f || Me.current || (Me.current = !0, E == null || E(), Ne(!1), re.current = setTimeout(() => {
|
|
59
|
+
q();
|
|
60
60
|
}, 300));
|
|
61
|
-
}, [f,
|
|
62
|
-
isSwipeDragging:
|
|
63
|
-
backdropStyle:
|
|
64
|
-
mediaAreaStyle:
|
|
65
|
-
overlayContentStyle:
|
|
66
|
-
swipeHandlers:
|
|
67
|
-
dismissAreaStyle:
|
|
68
|
-
} =
|
|
69
|
-
enabled:
|
|
70
|
-
onClose:
|
|
61
|
+
}, [f, E, q]), di = p((e) => !!(e.closest("[data-controls]") || e.closest(`.${t}-close-icon`)), [t]), {
|
|
62
|
+
isSwipeDragging: ce,
|
|
63
|
+
backdropStyle: hi,
|
|
64
|
+
mediaAreaStyle: fi,
|
|
65
|
+
overlayContentStyle: ui,
|
|
66
|
+
swipeHandlers: mi,
|
|
67
|
+
dismissAreaStyle: gi
|
|
68
|
+
} = Ai({
|
|
69
|
+
enabled: ai,
|
|
70
|
+
onClose: yt,
|
|
71
71
|
animMs: 300,
|
|
72
|
-
isBlockedTarget:
|
|
73
|
-
}),
|
|
74
|
-
N &&
|
|
75
|
-
}, [N,
|
|
72
|
+
isBlockedTarget: di
|
|
73
|
+
}), Ke = p((e) => {
|
|
74
|
+
N && ei(e + 1, M, !0);
|
|
75
|
+
}, [N, M]), de = p((e) => {
|
|
76
76
|
if (e)
|
|
77
77
|
return e.getBoundingClientRect().height;
|
|
78
78
|
}, []), ct = p((e) => {
|
|
79
79
|
if (d.length === 0) return;
|
|
80
80
|
const i = (e % d.length + d.length) % d.length;
|
|
81
|
-
if (i ===
|
|
82
|
-
const r = d[
|
|
81
|
+
if (i === $) return;
|
|
82
|
+
const r = d[$], n = d[i];
|
|
83
83
|
Lt.current += 1;
|
|
84
|
-
const o = Lt.current, c =
|
|
85
|
-
const
|
|
86
|
-
|
|
84
|
+
const o = Lt.current, c = D === "fade" && Ye(r == null ? void 0 : r.entry) !== Ye(n == null ? void 0 : n.entry), g = de(U.current), s = c ? (() => {
|
|
85
|
+
const C = Be();
|
|
86
|
+
Ki(() => {
|
|
87
87
|
Ct(n.entry);
|
|
88
|
-
}), U.current &&
|
|
89
|
-
const
|
|
90
|
-
return U.current && (U.current.style.width = ""), { measuredIncomingTitlesHeight:
|
|
91
|
-
})() : void 0,
|
|
88
|
+
}), U.current && C && (U.current.style.width = `${C}px`);
|
|
89
|
+
const _t = de(U.current);
|
|
90
|
+
return U.current && (U.current.style.width = ""), { measuredIncomingTitlesHeight: _t, incomingTitlesMeasureWidth: C };
|
|
91
|
+
})() : void 0, I = Math.max(
|
|
92
92
|
g ?? 0,
|
|
93
93
|
(s == null ? void 0 : s.measuredIncomingTitlesHeight) ?? 0
|
|
94
94
|
) || void 0;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, 400)) : (
|
|
98
|
-
}, [
|
|
95
|
+
Le(o), ne($), oe(!0), ie(i), Ke(i), He.current = i, c ? (P(), I && wt(I), s != null && s.incomingTitlesMeasureWidth && $t(s.incomingTitlesMeasureWidth), xt((r == null ? void 0 : r.entryIndex) ?? null), vt(!0), Ht.current = n.entryIndex, Q.current = setTimeout(() => {
|
|
96
|
+
xt(null), vt(!1), wt(void 0), $t(void 0), Ct(null), Q.current = null;
|
|
97
|
+
}, 400)) : (P(), xt(null), vt(!1), wt(void 0), $t(void 0), Ct(null), Ht.current = n.entryIndex);
|
|
98
|
+
}, [$, P, Be, de, d, Ke, D]), bt = p(() => {
|
|
99
99
|
Mt.current = null;
|
|
100
|
-
}, []),
|
|
101
|
-
!
|
|
100
|
+
}, []), pi = p((e) => {
|
|
101
|
+
!J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0 || e.target.closest("[data-controls]") || (Mt.current = {
|
|
102
102
|
startX: e.clientX,
|
|
103
103
|
startY: e.clientY,
|
|
104
104
|
pointerId: e.pointerId
|
|
105
105
|
});
|
|
106
|
-
}, [
|
|
107
|
-
var
|
|
108
|
-
if (!
|
|
109
|
-
if (
|
|
110
|
-
|
|
106
|
+
}, [J, d.length]), xi = p((e) => {
|
|
107
|
+
var C;
|
|
108
|
+
if (!J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0) return;
|
|
109
|
+
if (ce) {
|
|
110
|
+
bt();
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
const i = Mt.current;
|
|
114
|
-
if (!i || i.pointerId !== e.pointerId || (
|
|
114
|
+
if (!i || i.pointerId !== e.pointerId || (bt(), e.target.closest("[data-controls]"))) return;
|
|
115
115
|
const n = e.clientX - i.startX, o = e.clientY - i.startY, c = Math.abs(n), g = Math.abs(o);
|
|
116
|
-
if (c >=
|
|
117
|
-
ct(n > 0 ?
|
|
116
|
+
if (c >= Di && c > g) {
|
|
117
|
+
ct(n > 0 ? $ - 1 : $ + 1);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
if (c >
|
|
121
|
-
const s = (
|
|
122
|
-
ct(e.clientX <
|
|
123
|
-
}, [
|
|
120
|
+
if (c > Ee || g > Ee) return;
|
|
121
|
+
const s = (C = V.current) == null ? void 0 : C.getBoundingClientRect(), I = s ? s.left + s.width / 2 : window.innerWidth / 2;
|
|
122
|
+
ct(e.clientX < I ? $ - 1 : $ + 1);
|
|
123
|
+
}, [$, J, ct, ce, bt, d.length]), vi = p((e) => {
|
|
124
124
|
const i = Mt.current;
|
|
125
|
-
(i == null ? void 0 : i.pointerId) === e.pointerId &&
|
|
126
|
-
}, [
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
(i == null ? void 0 : i.pointerId) === e.pointerId && bt();
|
|
126
|
+
}, [bt]);
|
|
127
|
+
_i(), nt(() => {
|
|
128
|
+
ze.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
129
129
|
const e = requestAnimationFrame(() => {
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
Ne(!0), requestAnimationFrame(() => {
|
|
131
|
+
ae.current ? ae.current.focus() : V.current && V.current.focus();
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
return () => {
|
|
135
|
-
cancelAnimationFrame(e),
|
|
136
|
-
const i =
|
|
135
|
+
cancelAnimationFrame(e), re.current && clearTimeout(re.current), Q.current && clearTimeout(Q.current);
|
|
136
|
+
const i = ze.current;
|
|
137
137
|
i && document.contains(i) && i.focus({ preventScroll: !0 });
|
|
138
138
|
};
|
|
139
|
-
}, []),
|
|
139
|
+
}, []), nt(() => {
|
|
140
140
|
var e;
|
|
141
|
-
|
|
142
|
-
}, [
|
|
141
|
+
D !== "fade" && (Ht.current = ((e = d[$]) == null ? void 0 : e.entryIndex) ?? 0, P(), xt(null), vt(!1), wt(void 0), $t(void 0));
|
|
142
|
+
}, [$, P, d, D]), nt(() => {
|
|
143
143
|
const e = (i) => {
|
|
144
144
|
if (i.key === "Escape") {
|
|
145
|
-
|
|
145
|
+
yt();
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
if (i.key === "ArrowLeft" && d.length > 1) {
|
|
149
|
-
ct(
|
|
149
|
+
ct($ - 1);
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
if (i.key === "ArrowRight" && d.length > 1) {
|
|
153
|
-
ct(
|
|
153
|
+
ct($ + 1);
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
if (i.key === "Tab" &&
|
|
157
|
-
const r =
|
|
156
|
+
if (i.key === "Tab" && V.current) {
|
|
157
|
+
const r = V.current.querySelectorAll(
|
|
158
158
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
159
159
|
), n = Array.from(r).filter(
|
|
160
160
|
(s) => !s.closest('[aria-hidden="true"]')
|
|
161
161
|
);
|
|
162
162
|
if (n.length === 0) return;
|
|
163
163
|
const o = n[0], c = n[n.length - 1], g = document.activeElement;
|
|
164
|
-
i.shiftKey ? (g === o || !
|
|
164
|
+
i.shiftKey ? (g === o || !V.current.contains(g)) && (i.preventDefault(), c.focus()) : (g === c || !V.current.contains(g)) && (i.preventDefault(), o.focus());
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
168
|
-
}, [ct,
|
|
169
|
-
|
|
168
|
+
}, [ct, yt, $, d.length]), Xe(() => {
|
|
169
|
+
P(), Lt.current = 0, Le(0), ne(null), oe(!1), xt(null), vt(!1), wt(void 0), $t(void 0), Ct(null), ie((e) => {
|
|
170
170
|
const i = Math.max(0, d.length - 1);
|
|
171
171
|
return Math.min(e, i);
|
|
172
172
|
});
|
|
173
|
-
}, [
|
|
173
|
+
}, [P, _.length, z, d.length]), Xe(() => {
|
|
174
174
|
var r;
|
|
175
175
|
const e = Math.max(0, d.length - 1), i = Math.min(Math.max(0, Y), e);
|
|
176
|
-
|
|
176
|
+
He.current = i, Ht.current = ((r = d[i]) == null ? void 0 : r.entryIndex) ?? 0, ie(i);
|
|
177
177
|
}, [Y]);
|
|
178
|
-
const m =
|
|
178
|
+
const m = Re !== null ? _[Re] : null, Oe = ke !== null ? d[ke] : null, zt = (h == null ? void 0 : h.title1) || (h == null ? void 0 : h.title2) || (h == null ? void 0 : h.title3) || (m == null ? void 0 : m.title1) || (m == null ? void 0 : m.title2) || (m == null ? void 0 : m.title3), tt = Gi(z, d, _), dt = It !== null, wi = zt || tt || dt, $i = tt && dt ? { gap: Nt } : void 0, Bt = `${t}-titles-stack${x ? ` ${t}-titles-stack-stacked` : ""}`, je = `${t}-titles-layer-out${x ? ` ${t}-titles-layer-out-stacked` : ""}`, yi = `${t}-titles-layer-out`, he = (R ?? 0) > 0 || f, bi = u(T), k = L(
|
|
179
179
|
() => ({
|
|
180
|
-
title1Width:
|
|
181
|
-
title2Width:
|
|
182
|
-
title3Width:
|
|
180
|
+
title1Width: rt ?? Te.title1Width,
|
|
181
|
+
title2Width: ut ?? Te.title2Width,
|
|
182
|
+
title3Width: Z ?? Te.title3Width
|
|
183
183
|
}),
|
|
184
|
-
[
|
|
185
|
-
),
|
|
186
|
-
title2MarginLeft:
|
|
187
|
-
title3MarginLeft:
|
|
188
|
-
}), [
|
|
189
|
-
() => h ?
|
|
190
|
-
[t, h, st,
|
|
191
|
-
), Kt =
|
|
192
|
-
() =>
|
|
193
|
-
[
|
|
194
|
-
),
|
|
195
|
-
() =>
|
|
196
|
-
[
|
|
197
|
-
),
|
|
198
|
-
() =>
|
|
199
|
-
[
|
|
200
|
-
),
|
|
201
|
-
() =>
|
|
202
|
-
[
|
|
203
|
-
),
|
|
204
|
-
() =>
|
|
205
|
-
[
|
|
206
|
-
),
|
|
207
|
-
() => Ut(
|
|
208
|
-
[
|
|
209
|
-
),
|
|
210
|
-
() => Ut(
|
|
211
|
-
[
|
|
212
|
-
),
|
|
213
|
-
const r =
|
|
184
|
+
[rt, ut, Z]
|
|
185
|
+
), j = L(() => ({
|
|
186
|
+
title2MarginLeft: B,
|
|
187
|
+
title3MarginLeft: St
|
|
188
|
+
}), [B, St]), v = L(
|
|
189
|
+
() => h ? Jt(t, h, st, mt, gt) : [],
|
|
190
|
+
[t, h, st, mt, gt]
|
|
191
|
+
), Kt = L(
|
|
192
|
+
() => v.map((e) => k[e.widthKey]),
|
|
193
|
+
[v, k]
|
|
194
|
+
), A = L(
|
|
195
|
+
() => qe(v.length, Kt),
|
|
196
|
+
[v.length, Kt]
|
|
197
|
+
), Ae = L(
|
|
198
|
+
() => Ze(v.length, Kt),
|
|
199
|
+
[v.length, Kt]
|
|
200
|
+
), Ot = L(
|
|
201
|
+
() => v.filter((e) => e.prefix === "title1"),
|
|
202
|
+
[v]
|
|
203
|
+
), F = L(
|
|
204
|
+
() => v.filter((e) => e.prefix === "title2" || e.prefix === "title3"),
|
|
205
|
+
[v]
|
|
206
|
+
), jt = L(
|
|
207
|
+
() => Ut(Ot, k),
|
|
208
|
+
[Ot, k]
|
|
209
|
+
), X = L(
|
|
210
|
+
() => Ut(F, k),
|
|
211
|
+
[F, k]
|
|
212
|
+
), fe = p((e, i) => {
|
|
213
|
+
const r = v.findIndex((o) => o.prefix === e.prefix);
|
|
214
214
|
if (!x || i === "single-row")
|
|
215
215
|
return {
|
|
216
|
-
effectiveWidth:
|
|
217
|
-
resolvedWidth:
|
|
218
|
-
maxWidth:
|
|
216
|
+
effectiveWidth: Ae[r] ?? 0,
|
|
217
|
+
resolvedWidth: A[r] ?? 0,
|
|
218
|
+
maxWidth: it(r, A)
|
|
219
219
|
};
|
|
220
220
|
if (i === "two-row-top") {
|
|
221
|
-
const o =
|
|
221
|
+
const o = Ot.findIndex((c) => c.prefix === e.prefix);
|
|
222
222
|
return {
|
|
223
|
-
effectiveWidth:
|
|
224
|
-
resolvedWidth:
|
|
225
|
-
maxWidth:
|
|
223
|
+
effectiveWidth: jt.effective[o] ?? 0,
|
|
224
|
+
resolvedWidth: jt.resolved[o] ?? 0,
|
|
225
|
+
maxWidth: it(o, jt.resolved)
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
const n =
|
|
228
|
+
const n = F.findIndex((o) => o.prefix === e.prefix);
|
|
229
229
|
return {
|
|
230
|
-
effectiveWidth:
|
|
231
|
-
resolvedWidth:
|
|
232
|
-
maxWidth:
|
|
230
|
+
effectiveWidth: X.effective[n] ?? 0,
|
|
231
|
+
resolvedWidth: X.resolved[n] ?? 0,
|
|
232
|
+
maxWidth: it(n, X.resolved)
|
|
233
233
|
};
|
|
234
234
|
}, [
|
|
235
|
-
|
|
236
|
-
O,
|
|
237
|
-
V,
|
|
238
|
-
Ke,
|
|
235
|
+
v,
|
|
239
236
|
F,
|
|
237
|
+
X,
|
|
238
|
+
Ae,
|
|
239
|
+
A,
|
|
240
|
+
Ot,
|
|
240
241
|
jt,
|
|
241
|
-
At,
|
|
242
242
|
x
|
|
243
|
-
]),
|
|
244
|
-
(e) =>
|
|
245
|
-
|
|
246
|
-
F,
|
|
243
|
+
]), Ti = p(
|
|
244
|
+
(e) => Ji(
|
|
245
|
+
v,
|
|
247
246
|
A,
|
|
247
|
+
j,
|
|
248
248
|
e
|
|
249
|
-
) + (x ? 0 :
|
|
250
|
-
[
|
|
251
|
-
),
|
|
252
|
-
() => x ? 0 :
|
|
253
|
-
[x,
|
|
254
|
-
),
|
|
255
|
-
(e) =>
|
|
256
|
-
(i, r, n) => i + (r.marginLeftKey ?
|
|
249
|
+
) + (x ? 0 : R ?? 0),
|
|
250
|
+
[v, A, j, x, R]
|
|
251
|
+
), Si = p(
|
|
252
|
+
() => x ? 0 : R ?? 0,
|
|
253
|
+
[x, R]
|
|
254
|
+
), ue = p(
|
|
255
|
+
(e) => F.slice(0, e).reduce(
|
|
256
|
+
(i, r, n) => i + (r.marginLeftKey ? j[r.marginLeftKey] ?? 0 : 0) + (X.resolved[n] ?? 0),
|
|
257
257
|
0
|
|
258
258
|
),
|
|
259
|
-
[
|
|
260
|
-
),
|
|
259
|
+
[F, X.resolved, j]
|
|
260
|
+
), Ii = p(
|
|
261
261
|
(e) => {
|
|
262
|
-
const i =
|
|
263
|
-
return
|
|
262
|
+
const i = F[e];
|
|
263
|
+
return ue(e) + (i.marginLeftKey ? j[i.marginLeftKey] ?? 0 : 0) + (X.resolved[e] ?? 0);
|
|
264
264
|
},
|
|
265
|
-
[
|
|
266
|
-
),
|
|
265
|
+
[F, X.resolved, ue, j]
|
|
266
|
+
), me = p((e, i, r) => {
|
|
267
267
|
if (!x || r === "single-row") {
|
|
268
|
-
const s = e.findIndex((
|
|
268
|
+
const s = e.findIndex((et) => et.prefix === i.prefix), I = e.map((et) => k[et.widthKey]), C = qe(e.length, I);
|
|
269
269
|
return {
|
|
270
|
-
effectiveWidth:
|
|
271
|
-
resolvedWidth:
|
|
272
|
-
maxWidth:
|
|
270
|
+
effectiveWidth: Ze(e.length, I)[s] ?? 0,
|
|
271
|
+
resolvedWidth: C[s] ?? 0,
|
|
272
|
+
maxWidth: it(s, C)
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
if (r === "two-row-top") {
|
|
276
|
-
const s = e.filter((
|
|
276
|
+
const s = e.filter((et) => et.prefix === "title1"), I = s.findIndex((et) => et.prefix === i.prefix), { resolved: C, effective: _t } = Ut(s, k);
|
|
277
277
|
return {
|
|
278
|
-
effectiveWidth:
|
|
279
|
-
resolvedWidth:
|
|
280
|
-
maxWidth:
|
|
278
|
+
effectiveWidth: _t[I] ?? 0,
|
|
279
|
+
resolvedWidth: C[I] ?? 0,
|
|
280
|
+
maxWidth: it(I, C)
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
283
|
const n = e.filter((s) => s.prefix === "title2" || s.prefix === "title3"), o = n.findIndex((s) => s.prefix === i.prefix), { resolved: c, effective: g } = Ut(n, k);
|
|
284
284
|
return {
|
|
285
285
|
effectiveWidth: g[o] ?? 0,
|
|
286
286
|
resolvedWidth: c[o] ?? 0,
|
|
287
|
-
maxWidth:
|
|
287
|
+
maxWidth: it(o, c)
|
|
288
288
|
};
|
|
289
|
-
}, [k, x]),
|
|
290
|
-
const n = e.marginLeftKey ?
|
|
289
|
+
}, [k, x]), ge = (e, i, r) => {
|
|
290
|
+
const n = e.marginLeftKey ? j[e.marginLeftKey] ?? 0 : 0, {
|
|
291
291
|
effectiveWidth: o,
|
|
292
292
|
resolvedWidth: c,
|
|
293
293
|
maxWidth: g
|
|
294
|
-
} = r ??
|
|
294
|
+
} = r ?? fe(e, i), s = Math.max(n, Vt), I = f && i === "two-row-top";
|
|
295
295
|
return /* @__PURE__ */ a(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
@@ -303,7 +303,7 @@ const Vi = ({
|
|
|
303
303
|
},
|
|
304
304
|
children: [
|
|
305
305
|
/* @__PURE__ */ l("p", { className: e.className, style: e.style, children: e.text }),
|
|
306
|
-
|
|
306
|
+
I && e.marginLeftKey ? /* @__PURE__ */ l(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
309
309
|
"data-controls": e.marginLeftKey,
|
|
@@ -320,7 +320,7 @@ const Vi = ({
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
) : null,
|
|
323
|
-
|
|
323
|
+
I ? /* @__PURE__ */ l(
|
|
324
324
|
"div",
|
|
325
325
|
{
|
|
326
326
|
"data-controls": e.widthKey,
|
|
@@ -342,8 +342,8 @@ const Vi = ({
|
|
|
342
342
|
},
|
|
343
343
|
e.className
|
|
344
344
|
);
|
|
345
|
-
},
|
|
346
|
-
const i =
|
|
345
|
+
}, pe = (e = "two-row") => {
|
|
346
|
+
const i = v.findIndex((o) => o.prefix === "title1"), r = i >= 0 ? A[i] : k.title1Width, n = e === "two-row" && f;
|
|
347
347
|
return /* @__PURE__ */ l(
|
|
348
348
|
"div",
|
|
349
349
|
{
|
|
@@ -354,14 +354,14 @@ const Vi = ({
|
|
|
354
354
|
"data-controls-max-fraction": String(r)
|
|
355
355
|
} : {},
|
|
356
356
|
style: {
|
|
357
|
-
width: u(
|
|
357
|
+
width: u(R ?? 0),
|
|
358
358
|
flexShrink: 0,
|
|
359
359
|
alignSelf: "stretch",
|
|
360
360
|
...n ? { pointerEvents: "auto" } : {}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
);
|
|
364
|
-
},
|
|
364
|
+
}, xe = () => /* @__PURE__ */ l(
|
|
365
365
|
"span",
|
|
366
366
|
{
|
|
367
367
|
className: `${t}-titles-baseline-strut`,
|
|
@@ -369,17 +369,17 @@ const Vi = ({
|
|
|
369
369
|
"aria-hidden": "true",
|
|
370
370
|
children: " "
|
|
371
371
|
}
|
|
372
|
-
),
|
|
372
|
+
), Fe = () => /* @__PURE__ */ l(
|
|
373
373
|
"span",
|
|
374
374
|
{
|
|
375
375
|
className: `${t}-entry-counter`,
|
|
376
|
-
style:
|
|
376
|
+
style: si,
|
|
377
377
|
"aria-live": "polite",
|
|
378
378
|
"aria-atomic": "true",
|
|
379
|
-
children:
|
|
379
|
+
children: Vi(d, $, z, _)
|
|
380
380
|
}
|
|
381
|
-
),
|
|
382
|
-
|
|
381
|
+
), Wi = () => tt ? f && dt ? /* @__PURE__ */ a("div", { className: `${t}-text-bar-cell`, style: { flexShrink: 0 }, children: [
|
|
382
|
+
Fe(),
|
|
383
383
|
/* @__PURE__ */ l(
|
|
384
384
|
"div",
|
|
385
385
|
{
|
|
@@ -389,25 +389,25 @@ const Vi = ({
|
|
|
389
389
|
style: {
|
|
390
390
|
position: "absolute",
|
|
391
391
|
top: 0,
|
|
392
|
-
right: `calc(-0.5 * (${
|
|
393
|
-
width:
|
|
392
|
+
right: `calc(-0.5 * (${Se(Nt)} + ${Nt}))`,
|
|
393
|
+
width: Se(Nt),
|
|
394
394
|
height: "100%",
|
|
395
395
|
pointerEvents: "auto",
|
|
396
396
|
zIndex: 3
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
)
|
|
400
|
-
] }) :
|
|
400
|
+
] }) : Fe() : null, ve = () => !tt && !dt ? null : /* @__PURE__ */ a(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
className: `${t}-titles-row-header-controls`,
|
|
404
|
-
style:
|
|
404
|
+
style: $i,
|
|
405
405
|
children: [
|
|
406
|
-
|
|
407
|
-
dt ?
|
|
406
|
+
Wi(),
|
|
407
|
+
dt ? ki() : null
|
|
408
408
|
]
|
|
409
409
|
}
|
|
410
|
-
),
|
|
410
|
+
), Ni = () => /* @__PURE__ */ a(
|
|
411
411
|
"div",
|
|
412
412
|
{
|
|
413
413
|
className: `${t}-titles-row ${t}-titles-row-header`,
|
|
@@ -416,33 +416,33 @@ const Vi = ({
|
|
|
416
416
|
position: "relative"
|
|
417
417
|
},
|
|
418
418
|
children: [
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
419
|
+
tt || zt ? xe() : null,
|
|
420
|
+
he ? pe("single-row") : null,
|
|
421
|
+
De(h),
|
|
422
422
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
ve(),
|
|
424
|
+
ye()
|
|
425
425
|
]
|
|
426
426
|
}
|
|
427
|
-
),
|
|
427
|
+
), Ri = () => /* @__PURE__ */ a(
|
|
428
428
|
"div",
|
|
429
429
|
{
|
|
430
430
|
className: `${t}-titles-row ${t}-titles-row-header`,
|
|
431
431
|
style: { width: "100%", position: "relative" },
|
|
432
432
|
children: [
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
tt || zt ? xe() : null,
|
|
434
|
+
he ? pe("single-row") : null,
|
|
435
435
|
/* @__PURE__ */ a(
|
|
436
436
|
"div",
|
|
437
437
|
{
|
|
438
438
|
className: `${t}-titles-row-titles`,
|
|
439
|
-
style:
|
|
439
|
+
style: S && at ? { minHeight: at } : void 0,
|
|
440
440
|
children: [
|
|
441
441
|
/* @__PURE__ */ l(
|
|
442
442
|
"div",
|
|
443
443
|
{
|
|
444
444
|
ref: U,
|
|
445
|
-
className:
|
|
445
|
+
className: Bt,
|
|
446
446
|
style: {
|
|
447
447
|
position: "absolute",
|
|
448
448
|
visibility: "hidden",
|
|
@@ -454,58 +454,58 @@ const Vi = ({
|
|
|
454
454
|
height: "auto"
|
|
455
455
|
},
|
|
456
456
|
"aria-hidden": "true",
|
|
457
|
-
children:
|
|
457
|
+
children: Ft(kt || h)
|
|
458
458
|
}
|
|
459
459
|
),
|
|
460
460
|
/* @__PURE__ */ a(
|
|
461
461
|
"div",
|
|
462
462
|
{
|
|
463
|
-
ref:
|
|
464
|
-
className:
|
|
463
|
+
ref: se,
|
|
464
|
+
className: Bt,
|
|
465
465
|
style: {
|
|
466
|
-
position:
|
|
467
|
-
inset:
|
|
466
|
+
position: S ? "absolute" : "relative",
|
|
467
|
+
inset: S ? 0 : void 0,
|
|
468
468
|
width: "100%",
|
|
469
|
-
...
|
|
469
|
+
...S && Rt ? { width: Rt, maxWidth: "100%" } : void 0
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
|
-
m &&
|
|
473
|
-
/* @__PURE__ */ l("div", { className: `${t}-titles-layer-in${
|
|
472
|
+
m && S ? /* @__PURE__ */ l("div", { className: `${je} ${t}-titles-fade-out`, children: Ft(m) }) : null,
|
|
473
|
+
/* @__PURE__ */ l("div", { className: `${t}-titles-layer-in${S ? ` ${t}-titles-layer-in-fading ${t}-titles-fade-in` : ""}`, children: Ft(h) })
|
|
474
474
|
]
|
|
475
475
|
}
|
|
476
476
|
)
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
),
|
|
480
|
-
|
|
481
|
-
|
|
480
|
+
ve(),
|
|
481
|
+
ye()
|
|
482
482
|
]
|
|
483
483
|
}
|
|
484
|
-
),
|
|
484
|
+
), ki = () => /* @__PURE__ */ a(
|
|
485
485
|
"div",
|
|
486
486
|
{
|
|
487
487
|
className: `${t}-close-icon`,
|
|
488
488
|
style: {
|
|
489
|
-
width:
|
|
490
|
-
height:
|
|
491
|
-
marginRight:
|
|
492
|
-
"--close-icon-hover-color":
|
|
489
|
+
width: be(y ?? 0, w),
|
|
490
|
+
height: be(y ?? 0, w),
|
|
491
|
+
marginRight: Ie,
|
|
492
|
+
"--close-icon-hover-color": G
|
|
493
493
|
},
|
|
494
494
|
children: [
|
|
495
495
|
/* @__PURE__ */ l(
|
|
496
496
|
"button",
|
|
497
497
|
{
|
|
498
|
-
ref:
|
|
498
|
+
ref: ae,
|
|
499
499
|
type: "button",
|
|
500
500
|
className: `${t}-close-icon-inner`,
|
|
501
|
-
onClick:
|
|
501
|
+
onClick: yt,
|
|
502
502
|
"aria-label": "Close",
|
|
503
503
|
children: /* @__PURE__ */ l(
|
|
504
|
-
|
|
504
|
+
Fi,
|
|
505
505
|
{
|
|
506
|
-
url:
|
|
507
|
-
fill:
|
|
508
|
-
hoverFill:
|
|
506
|
+
url: It ?? "",
|
|
507
|
+
fill: O,
|
|
508
|
+
hoverFill: w && !ot ? O : G,
|
|
509
509
|
className: `${t}-close-icon-img`
|
|
510
510
|
}
|
|
511
511
|
)
|
|
@@ -522,7 +522,7 @@ const Vi = ({
|
|
|
522
522
|
position: "absolute",
|
|
523
523
|
top: 0,
|
|
524
524
|
left: "100%",
|
|
525
|
-
width:
|
|
525
|
+
width: Ie,
|
|
526
526
|
height: "100%",
|
|
527
527
|
pointerEvents: "auto"
|
|
528
528
|
}
|
|
@@ -530,13 +530,13 @@ const Vi = ({
|
|
|
530
530
|
)
|
|
531
531
|
]
|
|
532
532
|
}
|
|
533
|
-
),
|
|
533
|
+
), _e = (e, i) => /* @__PURE__ */ a(
|
|
534
534
|
"div",
|
|
535
535
|
{
|
|
536
536
|
className: `${t}-titles-row-top`,
|
|
537
537
|
children: [
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
tt || zt ? xe() : null,
|
|
539
|
+
he ? pe("two-row") : null,
|
|
540
540
|
i !== void 0 ? /* @__PURE__ */ l(
|
|
541
541
|
"div",
|
|
542
542
|
{
|
|
@@ -553,40 +553,40 @@ const Vi = ({
|
|
|
553
553
|
e,
|
|
554
554
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
|
|
555
555
|
] }),
|
|
556
|
-
|
|
556
|
+
ve()
|
|
557
557
|
]
|
|
558
558
|
}
|
|
559
|
-
),
|
|
559
|
+
), De = (e) => {
|
|
560
560
|
if (!e) return null;
|
|
561
|
-
const i =
|
|
562
|
-
return /* @__PURE__ */ l(ft, { children: i.map((r) =>
|
|
561
|
+
const i = Jt(t, e, st, mt, gt);
|
|
562
|
+
return /* @__PURE__ */ l(ft, { children: i.map((r) => ge(
|
|
563
563
|
r,
|
|
564
564
|
"single-row",
|
|
565
|
-
|
|
565
|
+
me(i, r, "single-row")
|
|
566
566
|
)) });
|
|
567
|
-
},
|
|
567
|
+
}, we = (e) => {
|
|
568
568
|
if (!e) return null;
|
|
569
|
-
const i =
|
|
570
|
-
return r ?
|
|
569
|
+
const i = Jt(t, e, st, mt, gt), r = i.find((n) => n.prefix === "title1");
|
|
570
|
+
return r ? ge(
|
|
571
571
|
r,
|
|
572
572
|
"two-row-top",
|
|
573
|
-
|
|
573
|
+
me(i, r, "two-row-top")
|
|
574
574
|
) : null;
|
|
575
|
-
},
|
|
576
|
-
const r = e ?
|
|
577
|
-
return n.length > 0 || o || (
|
|
575
|
+
}, $e = (e, i = !1) => {
|
|
576
|
+
const r = e ? Jt(t, e, st, mt, gt) : [], n = r.filter((g) => g.prefix === "title2" || g.prefix === "title3"), o = f && i;
|
|
577
|
+
return n.length > 0 || o || (T ?? 0) > 0 ? /* @__PURE__ */ a("div", { className: `${t}-titles-row-bottom-wrap`, children: [
|
|
578
578
|
n.length > 0 ? /* @__PURE__ */ a("div", { className: `${t}-titles-row-bottom`, children: [
|
|
579
|
-
n.map((g) =>
|
|
579
|
+
n.map((g) => ge(
|
|
580
580
|
g,
|
|
581
581
|
"two-row-bottom",
|
|
582
|
-
|
|
582
|
+
me(r, g, "two-row-bottom")
|
|
583
583
|
)),
|
|
584
584
|
i && f ? /* @__PURE__ */ a(ft, { children: [
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
Hi(),
|
|
586
|
+
Mi()
|
|
587
587
|
] }) : null
|
|
588
588
|
] }) : null,
|
|
589
|
-
(
|
|
589
|
+
(T ?? 0) > 0 || o ? /* @__PURE__ */ l(
|
|
590
590
|
"div",
|
|
591
591
|
{
|
|
592
592
|
"data-controls": o ? "titleRowMarginBottom" : void 0,
|
|
@@ -594,7 +594,7 @@ const Vi = ({
|
|
|
594
594
|
"data-controls-reverse": o ? "" : void 0,
|
|
595
595
|
className: o ? `${t}-control` : void 0,
|
|
596
596
|
style: {
|
|
597
|
-
height:
|
|
597
|
+
height: bi,
|
|
598
598
|
width: "100%",
|
|
599
599
|
flexShrink: 0,
|
|
600
600
|
pointerEvents: o ? "auto" : "none"
|
|
@@ -602,12 +602,12 @@ const Vi = ({
|
|
|
602
602
|
}
|
|
603
603
|
) : null
|
|
604
604
|
] }) : null;
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
] }),
|
|
609
|
-
const e = x ? -1 :
|
|
610
|
-
const n =
|
|
605
|
+
}, At = (e, i = !1) => /* @__PURE__ */ a(ft, { children: [
|
|
606
|
+
_e(we(e)),
|
|
607
|
+
$e(e, i)
|
|
608
|
+
] }), Ft = (e) => x ? /* @__PURE__ */ l("div", { className: `${t}-titles-row-two-row`, children: At(e) }) : e ? /* @__PURE__ */ l("div", { className: `${t}-titles-row`, style: { width: "100%" }, children: De(e) }) : null, Ci = () => {
|
|
609
|
+
const e = x ? -1 : v.findIndex((n) => n.prefix === "title1"), i = !x && (f || (R ?? 0) > 0) ? (() => {
|
|
610
|
+
const n = R ?? 0, o = e >= 0 ? A[e] : k.title1Width, c = Math.max(n, Vt);
|
|
611
611
|
return /* @__PURE__ */ l(
|
|
612
612
|
"div",
|
|
613
613
|
{
|
|
@@ -626,21 +626,21 @@ const Vi = ({
|
|
|
626
626
|
},
|
|
627
627
|
"title1MarginLeft"
|
|
628
628
|
);
|
|
629
|
-
})() : null, r =
|
|
629
|
+
})() : null, r = v.flatMap((n, o) => {
|
|
630
630
|
if (!n.marginLeftKey) return [];
|
|
631
|
-
const c =
|
|
632
|
-
|
|
633
|
-
F,
|
|
631
|
+
const c = j[n.marginLeftKey] ?? 0, g = Ui(
|
|
632
|
+
v,
|
|
634
633
|
A,
|
|
634
|
+
j,
|
|
635
635
|
o
|
|
636
|
-
) +
|
|
636
|
+
) + Si(), s = Math.max(c, Vt);
|
|
637
637
|
return /* @__PURE__ */ l(
|
|
638
638
|
"div",
|
|
639
639
|
{
|
|
640
640
|
"data-controls": n.marginLeftKey,
|
|
641
641
|
"data-controls-axis": "x",
|
|
642
642
|
"data-controls-min": "0",
|
|
643
|
-
"data-controls-max-fraction": String(
|
|
643
|
+
"data-controls-max-fraction": String(A[o]),
|
|
644
644
|
style: {
|
|
645
645
|
position: "absolute",
|
|
646
646
|
top: 0,
|
|
@@ -654,8 +654,8 @@ const Vi = ({
|
|
|
654
654
|
);
|
|
655
655
|
});
|
|
656
656
|
return i ? [i, ...r] : r;
|
|
657
|
-
},
|
|
658
|
-
const r =
|
|
657
|
+
}, Li = () => v.map((e, i) => {
|
|
658
|
+
const r = it(i, A), o = Ti(i) - ht / 2;
|
|
659
659
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
660
660
|
"div",
|
|
661
661
|
{
|
|
@@ -674,9 +674,9 @@ const Vi = ({
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
) }, `${e.widthKey}-junction`);
|
|
677
|
-
}),
|
|
677
|
+
}), Hi = () => F.flatMap((e, i) => {
|
|
678
678
|
if (!e.marginLeftKey) return [];
|
|
679
|
-
const r =
|
|
679
|
+
const r = j[e.marginLeftKey] ?? 0, n = ue(i), o = Math.max(r, Vt), { resolvedWidth: c } = fe(e, "two-row-bottom");
|
|
680
680
|
return /* @__PURE__ */ l(
|
|
681
681
|
"div",
|
|
682
682
|
{
|
|
@@ -695,8 +695,8 @@ const Vi = ({
|
|
|
695
695
|
},
|
|
696
696
|
e.marginLeftKey
|
|
697
697
|
);
|
|
698
|
-
}),
|
|
699
|
-
const { maxWidth: r } =
|
|
698
|
+
}), Mi = () => F.map((e, i) => {
|
|
699
|
+
const { maxWidth: r } = fe(e, "two-row-bottom"), o = Ii(i) - ht / 2;
|
|
700
700
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
701
701
|
"div",
|
|
702
702
|
{
|
|
@@ -715,39 +715,39 @@ const Vi = ({
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
) }, `${e.widthKey}-junction`);
|
|
718
|
-
}),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
] }),
|
|
722
|
-
const i = !e.objectFit &&
|
|
718
|
+
}), ye = () => !f || x ? null : /* @__PURE__ */ a(ft, { children: [
|
|
719
|
+
Ci(),
|
|
720
|
+
Li()
|
|
721
|
+
] }), Ge = (e) => {
|
|
722
|
+
const i = !e.objectFit && Tt(lt);
|
|
723
723
|
return {
|
|
724
724
|
className: `${t}-slide-image-cell${i ? ` ${t}-slide-image-cell-cover` : ""}`,
|
|
725
725
|
style: {
|
|
726
|
-
maxWidth:
|
|
727
|
-
maxHeight:
|
|
728
|
-
...i ? { "--image-aspect-ratio":
|
|
726
|
+
maxWidth: oi,
|
|
727
|
+
maxHeight: li,
|
|
728
|
+
...i ? { "--image-aspect-ratio": ti(lt) } : {}
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
},
|
|
731
|
+
}, Je = (e) => e.objectFit ? {
|
|
732
732
|
className: `${t}-slide-image ${t}-slide-image-custom`,
|
|
733
733
|
style: { "--image-object-fit": e.objectFit }
|
|
734
|
-
} :
|
|
734
|
+
} : Tt(lt) ? { className: `${t}-slide-image ${t}-slide-image-cover` } : { className: `${t}-slide-image ${t}-slide-image-fit` }, Ue = (e) => {
|
|
735
735
|
if (e.length === 0) return null;
|
|
736
|
-
const i = e.length > 1, r =
|
|
736
|
+
const i = e.length > 1, r = Se(ee), n = `calc(-0.5 * (${r} + ${ee}))`;
|
|
737
737
|
if (e.length === 1) {
|
|
738
738
|
const o = e[0];
|
|
739
|
-
return /* @__PURE__ */ l("div", { ...
|
|
739
|
+
return /* @__PURE__ */ l("div", { ...Ge(o), children: /* @__PURE__ */ l("img", { ...Je(o), src: o.assetId, alt: o.name ?? "", draggable: !1 }) });
|
|
740
740
|
}
|
|
741
741
|
return /* @__PURE__ */ l(
|
|
742
742
|
"div",
|
|
743
743
|
{
|
|
744
744
|
className: `${t}-slide-inner`,
|
|
745
|
-
style: i ? { gap:
|
|
746
|
-
children: e.map((o, c) => /* @__PURE__ */ a("div", { ...
|
|
745
|
+
style: i ? { gap: ee } : void 0,
|
|
746
|
+
children: e.map((o, c) => /* @__PURE__ */ a("div", { ...Ge(o), children: [
|
|
747
747
|
/* @__PURE__ */ l(
|
|
748
748
|
"img",
|
|
749
749
|
{
|
|
750
|
-
...
|
|
750
|
+
...Je(o),
|
|
751
751
|
src: o.assetId,
|
|
752
752
|
alt: o.name ?? "",
|
|
753
753
|
draggable: !1
|
|
@@ -772,7 +772,7 @@ const Vi = ({
|
|
|
772
772
|
] }, `${o.assetId}-${c}`))
|
|
773
773
|
}
|
|
774
774
|
);
|
|
775
|
-
},
|
|
775
|
+
}, Ve = !!(h != null && h.title2 || h != null && h.title3 || m != null && m.title2 || m != null && m.title3 || (T ?? 0) > 0 || f), zi = () => /* @__PURE__ */ a(
|
|
776
776
|
"div",
|
|
777
777
|
{
|
|
778
778
|
style: {
|
|
@@ -790,7 +790,7 @@ const Vi = ({
|
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
792
|
ref: U,
|
|
793
|
-
className:
|
|
793
|
+
className: Bt,
|
|
794
794
|
style: {
|
|
795
795
|
position: "absolute",
|
|
796
796
|
visibility: "hidden",
|
|
@@ -802,50 +802,50 @@ const Vi = ({
|
|
|
802
802
|
height: "auto"
|
|
803
803
|
},
|
|
804
804
|
"aria-hidden": "true",
|
|
805
|
-
children:
|
|
805
|
+
children: At(kt || h)
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
808
|
/* @__PURE__ */ a(
|
|
809
809
|
"div",
|
|
810
810
|
{
|
|
811
|
-
ref:
|
|
811
|
+
ref: se,
|
|
812
812
|
className: `${t}-titles-row-two-row`,
|
|
813
813
|
style: {
|
|
814
|
-
...
|
|
815
|
-
...
|
|
814
|
+
...S && at ? { minHeight: at } : void 0,
|
|
815
|
+
...S && Rt ? { width: Rt, maxWidth: "100%" } : void 0
|
|
816
816
|
},
|
|
817
817
|
children: [
|
|
818
|
-
|
|
818
|
+
_e(
|
|
819
819
|
/* @__PURE__ */ a(
|
|
820
820
|
"div",
|
|
821
821
|
{
|
|
822
|
-
className:
|
|
822
|
+
className: Bt,
|
|
823
823
|
style: {
|
|
824
|
-
position:
|
|
825
|
-
inset:
|
|
824
|
+
position: S ? "absolute" : "relative",
|
|
825
|
+
inset: S ? 0 : void 0,
|
|
826
826
|
width: "100%"
|
|
827
827
|
},
|
|
828
828
|
children: [
|
|
829
|
-
m &&
|
|
829
|
+
m && S ? /* @__PURE__ */ l("div", { className: `${yi} ${t}-titles-fade-out`, children: we(m) }) : null,
|
|
830
830
|
/* @__PURE__ */ l(
|
|
831
831
|
"div",
|
|
832
832
|
{
|
|
833
|
-
className: `${t}-titles-layer-in${
|
|
834
|
-
children:
|
|
833
|
+
className: `${t}-titles-layer-in${S ? ` ${t}-titles-layer-in-fading ${t}-titles-fade-in` : ""}`,
|
|
834
|
+
children: we(h)
|
|
835
835
|
}
|
|
836
836
|
)
|
|
837
837
|
]
|
|
838
838
|
}
|
|
839
839
|
),
|
|
840
|
-
|
|
840
|
+
S && at ? at : void 0
|
|
841
841
|
),
|
|
842
|
-
|
|
843
|
-
m &&
|
|
842
|
+
Ve ? /* @__PURE__ */ a("div", { className: `${t}-titles-row-bottom-area`, children: [
|
|
843
|
+
m && S ? /* @__PURE__ */ l("div", { className: `${je} ${t}-titles-layer-out-bottom ${t}-titles-fade-out`, children: $e(m) }) : null,
|
|
844
844
|
/* @__PURE__ */ l(
|
|
845
845
|
"div",
|
|
846
846
|
{
|
|
847
|
-
className: `${t}-titles-layer-in${
|
|
848
|
-
children:
|
|
847
|
+
className: `${t}-titles-layer-in${S ? ` ${t}-titles-layer-in-fading ${t}-titles-fade-in` : ""}${x ? ` ${t}-titles-layer-in-stacked` : ""}`,
|
|
848
|
+
children: $e(h, !0)
|
|
849
849
|
}
|
|
850
850
|
)
|
|
851
851
|
] }) : null
|
|
@@ -854,8 +854,8 @@ const Vi = ({
|
|
|
854
854
|
)
|
|
855
855
|
]
|
|
856
856
|
}
|
|
857
|
-
),
|
|
858
|
-
const e =
|
|
857
|
+
), Bi = () => {
|
|
858
|
+
const e = Ve;
|
|
859
859
|
return /* @__PURE__ */ a(
|
|
860
860
|
"div",
|
|
861
861
|
{
|
|
@@ -874,10 +874,10 @@ const Vi = ({
|
|
|
874
874
|
{
|
|
875
875
|
className: `${t}-titles-row-two-row`,
|
|
876
876
|
style: e ? void 0 : { flex: "0 0 auto", height: "auto" },
|
|
877
|
-
children:
|
|
877
|
+
children: At(h, !0)
|
|
878
878
|
}
|
|
879
879
|
),
|
|
880
|
-
|
|
880
|
+
ye()
|
|
881
881
|
]
|
|
882
882
|
}
|
|
883
883
|
);
|
|
@@ -885,76 +885,76 @@ const Vi = ({
|
|
|
885
885
|
return /* @__PURE__ */ a(
|
|
886
886
|
"div",
|
|
887
887
|
{
|
|
888
|
-
ref:
|
|
888
|
+
ref: V,
|
|
889
889
|
"data-selection": "none",
|
|
890
|
-
className: `${t}-lightbox${
|
|
890
|
+
className: `${t}-lightbox${w ? ` ${t}-lightbox-editor` : ""}${f ? ` ${t}-lightbox-edit-mode` : ""}`,
|
|
891
891
|
onClick: () => {
|
|
892
|
-
|
|
892
|
+
ce || yt();
|
|
893
893
|
},
|
|
894
894
|
role: "dialog",
|
|
895
895
|
"aria-modal": "true",
|
|
896
896
|
"aria-label": "Journal gallery",
|
|
897
897
|
tabIndex: dt ? void 0 : -1,
|
|
898
898
|
style: {
|
|
899
|
-
opacity:
|
|
899
|
+
opacity: We ? 1 : 0,
|
|
900
900
|
transition: "opacity 300ms ease",
|
|
901
|
-
pointerEvents:
|
|
901
|
+
pointerEvents: We ? "auto" : "none"
|
|
902
902
|
},
|
|
903
903
|
children: [
|
|
904
|
-
/* @__PURE__ */ l("div", { className: `${t}-lightbox-backdrop`, style: { backgroundColor:
|
|
904
|
+
/* @__PURE__ */ l("div", { className: `${t}-lightbox-backdrop`, style: { backgroundColor: qt, ...hi } }),
|
|
905
905
|
/* @__PURE__ */ a(
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
908
|
className: `${t}-lightbox-dismiss-area`,
|
|
909
|
-
style:
|
|
910
|
-
...
|
|
909
|
+
style: gi,
|
|
910
|
+
...mi,
|
|
911
911
|
children: [
|
|
912
912
|
/* @__PURE__ */ l(
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
className: `${t}-lightbox-content`,
|
|
916
|
-
style:
|
|
916
|
+
style: fi,
|
|
917
917
|
onClick: (e) => e.stopPropagation(),
|
|
918
918
|
children: /* @__PURE__ */ l(
|
|
919
919
|
"div",
|
|
920
920
|
{
|
|
921
921
|
className: `${t}-lightbox-strip`,
|
|
922
|
-
"data-desktop-nav":
|
|
923
|
-
onPointerDown:
|
|
924
|
-
onPointerUp:
|
|
925
|
-
onPointerCancel:
|
|
922
|
+
"data-desktop-nav": J && d.length > 1 ? "true" : "false",
|
|
923
|
+
onPointerDown: J ? pi : void 0,
|
|
924
|
+
onPointerUp: J ? xi : void 0,
|
|
925
|
+
onPointerCancel: J ? vi : void 0,
|
|
926
926
|
children: /* @__PURE__ */ a("div", { className: `${t}-slide-stack`, children: [
|
|
927
|
-
|
|
927
|
+
Oe && Ce ? /* @__PURE__ */ l(
|
|
928
928
|
"div",
|
|
929
929
|
{
|
|
930
930
|
className: `${t}-slide-layer-out ${t}-slide-fade-out`,
|
|
931
931
|
onAnimationEnd: (e) => {
|
|
932
|
-
e.target === e.currentTarget &&
|
|
932
|
+
e.target === e.currentTarget && ci(le);
|
|
933
933
|
},
|
|
934
|
-
children: /* @__PURE__ */ l("div", { className: `${t}-slide-area`, children:
|
|
934
|
+
children: /* @__PURE__ */ l("div", { className: `${t}-slide-area`, children: Ue(Oe.images) })
|
|
935
935
|
},
|
|
936
|
-
`slide-out-${
|
|
936
|
+
`slide-out-${le}`
|
|
937
937
|
) : null,
|
|
938
938
|
/* @__PURE__ */ l(
|
|
939
939
|
"div",
|
|
940
940
|
{
|
|
941
|
-
className: `${t}-slide-layer-in${
|
|
942
|
-
children: /* @__PURE__ */ l("div", { className: `${t}-slide-area`, children:
|
|
941
|
+
className: `${t}-slide-layer-in${Ce ? ` ${t}-slide-fade-in` : ""}`,
|
|
942
|
+
children: /* @__PURE__ */ l("div", { className: `${t}-slide-area`, children: pt ? Ue(pt.images) : null })
|
|
943
943
|
},
|
|
944
|
-
`slide-in-${
|
|
944
|
+
`slide-in-${le}-${$}`
|
|
945
945
|
)
|
|
946
946
|
] })
|
|
947
947
|
}
|
|
948
948
|
)
|
|
949
949
|
}
|
|
950
950
|
),
|
|
951
|
-
/* @__PURE__ */ a("div", { className: `${t}-lightbox-overlay-content`, style:
|
|
951
|
+
/* @__PURE__ */ a("div", { className: `${t}-lightbox-overlay-content`, style: ui, children: [
|
|
952
952
|
/* @__PURE__ */ l(
|
|
953
953
|
"div",
|
|
954
954
|
{
|
|
955
955
|
"data-controls": f ? "contentMarginTop" : void 0,
|
|
956
956
|
className: f ? `${t}-control` : void 0,
|
|
957
|
-
style: { height:
|
|
957
|
+
style: { height: ri, width: "100%" }
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
960
|
/* @__PURE__ */ l("div", { style: {
|
|
@@ -962,12 +962,12 @@ const Vi = ({
|
|
|
962
962
|
flexDirection: "row",
|
|
963
963
|
width: "100%",
|
|
964
964
|
...x ? { flex: 1, minHeight: 0 } : {}
|
|
965
|
-
}, children: /* @__PURE__ */ l("div", { className: `${t}-lightbox-content-area${x ? ` ${t}-lightbox-content-area-stacked` : ""}`, children:
|
|
965
|
+
}, children: /* @__PURE__ */ l("div", { className: `${t}-lightbox-content-area${x ? ` ${t}-lightbox-content-area-stacked` : ""}`, children: wi && /* @__PURE__ */ l(
|
|
966
966
|
"div",
|
|
967
967
|
{
|
|
968
968
|
className: `${t}-text-bar-cell${x ? ` ${t}-text-bar-cell-stacked` : ""}`,
|
|
969
969
|
style: x ? void 0 : { flex: 1, minWidth: 0, width: "100%" },
|
|
970
|
-
children: x ?
|
|
970
|
+
children: x ? D === "fade" ? zi() : Bi() : D === "fade" ? Ri() : Ni()
|
|
971
971
|
}
|
|
972
972
|
) }) })
|
|
973
973
|
] })
|
|
@@ -977,8 +977,8 @@ const Vi = ({
|
|
|
977
977
|
]
|
|
978
978
|
}
|
|
979
979
|
);
|
|
980
|
-
}
|
|
981
|
-
function
|
|
980
|
+
}, Xt = 400, Yt = "cubic-bezier(0.25, 0.1, 0.25, 1)", ii = 1.1, Zi = `${((1 - 1 / ii) / 2 * 100).toFixed(4)}%`;
|
|
981
|
+
function Qi(t) {
|
|
982
982
|
return `
|
|
983
983
|
.${t}-wrapper {
|
|
984
984
|
position: relative;
|
|
@@ -1024,6 +1024,32 @@ function Yi(t) {
|
|
|
1024
1024
|
max-width: 100%;
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
|
+
.${t}-hover-zoom-in .${t}-cover-image {
|
|
1028
|
+
clip-path: inset(0);
|
|
1029
|
+
transition: transform ${Xt}ms ${Yt}, clip-path ${Xt}ms ${Yt};
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
.${t}-hover-scale-down .${t}-cover-image {
|
|
1033
|
+
transition: transform ${Xt}ms ${Yt};
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.${t}-hover-greyscale .${t}-cover-image {
|
|
1037
|
+
transition: filter ${Xt}ms ${Yt};
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
@media (hover: hover) {
|
|
1041
|
+
.${t}-hover-zoom-in .${t}-cover:hover .${t}-cover-image {
|
|
1042
|
+
transform: scale(${ii});
|
|
1043
|
+
clip-path: inset(${Zi});
|
|
1044
|
+
}
|
|
1045
|
+
.${t}-hover-scale-down .${t}-cover:hover .${t}-cover-image {
|
|
1046
|
+
transform: scale(0.9);
|
|
1047
|
+
}
|
|
1048
|
+
.${t}-hover-greyscale .${t}-cover:hover .${t}-cover-image {
|
|
1049
|
+
filter: grayscale(1);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1027
1053
|
.${t}-lightbox {
|
|
1028
1054
|
position: fixed;
|
|
1029
1055
|
inset: 0;
|
|
@@ -1503,111 +1529,111 @@ function Yi(t) {
|
|
|
1503
1529
|
}
|
|
1504
1530
|
`;
|
|
1505
1531
|
}
|
|
1506
|
-
const
|
|
1507
|
-
const { prefix: N } =
|
|
1508
|
-
() => (
|
|
1509
|
-
[
|
|
1510
|
-
),
|
|
1511
|
-
|
|
1512
|
-
}, [
|
|
1513
|
-
if (B.length === 0 || W && !
|
|
1514
|
-
const
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1532
|
+
const cn = ({ settings: t, content: _, isEditor: W, isEditMode: w, isPreviewMode: f, portalId: ot, metadata: Y }) => {
|
|
1533
|
+
const { prefix: N } = ji(), M = (Y == null ? void 0 : Y.itemId) ?? null, { cover: E, coverFit: q, type: z, hover: lt = "none" } = t, qt = lt !== "none" && (!W || f) ? ` ${N}-hover-${lt}` : "", Zt = b(null), [Qt, K] = H(!1), [D, rt] = H(0), ut = b(!1), Z = b(!1), R = b(!1), B = L(
|
|
1534
|
+
() => (_ ?? []).filter((y) => Xi(y).length > 0),
|
|
1535
|
+
[_]
|
|
1536
|
+
), St = Qt && B.length > 0, T = !W, Pt = p(() => {
|
|
1537
|
+
T && (R.current = !0, Yi(Z.current, M), Z.current = !1);
|
|
1538
|
+
}, [T, M]), te = (y = 0) => {
|
|
1539
|
+
if (B.length === 0 || W && !w && !f) return;
|
|
1540
|
+
const O = Et(B, z), G = Math.max(0, Math.min(y, O.length - 1));
|
|
1541
|
+
if (rt(G), T) {
|
|
1542
|
+
const Wt = Ei();
|
|
1543
|
+
ei(G + 1, M, Wt), Z.current = !Wt;
|
|
1518
1544
|
}
|
|
1519
|
-
|
|
1520
|
-
},
|
|
1521
|
-
|
|
1545
|
+
K(!0);
|
|
1546
|
+
}, It = p(() => {
|
|
1547
|
+
K(!1), R.current = !1;
|
|
1522
1548
|
}, []);
|
|
1523
|
-
return
|
|
1524
|
-
!W ||
|
|
1525
|
-
}, [W,
|
|
1526
|
-
if (!
|
|
1527
|
-
const
|
|
1549
|
+
return nt(() => {
|
|
1550
|
+
!W || w || f || K(!1);
|
|
1551
|
+
}, [W, w, f]), nt(() => {
|
|
1552
|
+
if (!T || typeof window > "u") return;
|
|
1553
|
+
const y = window.history.scrollRestoration;
|
|
1528
1554
|
return window.history.scrollRestoration = "manual", () => {
|
|
1529
|
-
window.history.scrollRestoration =
|
|
1555
|
+
window.history.scrollRestoration = y;
|
|
1530
1556
|
};
|
|
1531
|
-
}, [
|
|
1532
|
-
if (!
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
if (!
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
}, [B,
|
|
1539
|
-
if (!
|
|
1540
|
-
const
|
|
1541
|
-
if (
|
|
1542
|
-
|
|
1557
|
+
}, [T]), nt(() => {
|
|
1558
|
+
if (!T || ut.current) return;
|
|
1559
|
+
ut.current = !0;
|
|
1560
|
+
const y = Qe(M);
|
|
1561
|
+
if (!y) return;
|
|
1562
|
+
const O = Pe(y, Et(B, z).length);
|
|
1563
|
+
O < 0 || (rt(O), K(!0));
|
|
1564
|
+
}, [B, M, T, z]), nt(() => {
|
|
1565
|
+
if (!T) return;
|
|
1566
|
+
const y = () => {
|
|
1567
|
+
if (R.current) {
|
|
1568
|
+
R.current = !1, K(!1);
|
|
1543
1569
|
return;
|
|
1544
1570
|
}
|
|
1545
|
-
const
|
|
1546
|
-
if (!
|
|
1547
|
-
|
|
1571
|
+
const O = Qe(M);
|
|
1572
|
+
if (!O) {
|
|
1573
|
+
K(!1);
|
|
1548
1574
|
return;
|
|
1549
1575
|
}
|
|
1550
|
-
const
|
|
1551
|
-
if (
|
|
1552
|
-
|
|
1576
|
+
const G = Pe(O, Et(B, z).length);
|
|
1577
|
+
if (G < 0) {
|
|
1578
|
+
K(!1);
|
|
1553
1579
|
return;
|
|
1554
1580
|
}
|
|
1555
|
-
|
|
1581
|
+
Z.current = !1, rt(G), K(!0);
|
|
1556
1582
|
};
|
|
1557
|
-
return window.addEventListener("popstate",
|
|
1558
|
-
}, [B,
|
|
1559
|
-
/* @__PURE__ */ a("div", { ref:
|
|
1560
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
1561
|
-
|
|
1583
|
+
return window.addEventListener("popstate", y), () => window.removeEventListener("popstate", y);
|
|
1584
|
+
}, [B, M, T, z]), /* @__PURE__ */ a(ft, { children: [
|
|
1585
|
+
/* @__PURE__ */ a("div", { ref: Zt, className: `${N}-wrapper${qt}`, children: [
|
|
1586
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Qi(N) } }),
|
|
1587
|
+
E ? /* @__PURE__ */ l(
|
|
1562
1588
|
"button",
|
|
1563
1589
|
{
|
|
1564
1590
|
type: "button",
|
|
1565
|
-
className: `${N}-cover ${
|
|
1566
|
-
onClick: () =>
|
|
1591
|
+
className: `${N}-cover ${Tt(q) ? `${N}-ratio-wrapper-cover` : `${N}-ratio-wrapper-fit`}`,
|
|
1592
|
+
onClick: () => te(),
|
|
1567
1593
|
style: {
|
|
1568
1594
|
display: "block",
|
|
1569
1595
|
padding: 0,
|
|
1570
1596
|
border: "none",
|
|
1571
1597
|
background: "transparent",
|
|
1572
|
-
pointerEvents: W && !
|
|
1573
|
-
...
|
|
1598
|
+
pointerEvents: W && !w && !f ? "none" : void 0,
|
|
1599
|
+
...Tt(q) ? { "--image-aspect-ratio": ti(q) } : {}
|
|
1574
1600
|
},
|
|
1575
1601
|
"aria-label": "Open journal gallery",
|
|
1576
1602
|
children: /* @__PURE__ */ l(
|
|
1577
1603
|
"img",
|
|
1578
1604
|
{
|
|
1579
|
-
className: `${N}-cover-image ${
|
|
1580
|
-
src:
|
|
1605
|
+
className: `${N}-cover-image ${Tt(q) ? `${N}-cover-image-cover` : `${N}-cover-image-fit`}`,
|
|
1606
|
+
src: E,
|
|
1581
1607
|
alt: "cover"
|
|
1582
1608
|
}
|
|
1583
1609
|
)
|
|
1584
1610
|
}
|
|
1585
1611
|
) : null
|
|
1586
1612
|
] }),
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1589
|
-
return
|
|
1613
|
+
St && typeof document < "u" && (() => {
|
|
1614
|
+
const y = (ot ? document.getElementById(ot) : null) ?? document.body;
|
|
1615
|
+
return Oi(
|
|
1590
1616
|
/* @__PURE__ */ l(
|
|
1591
|
-
|
|
1617
|
+
qi,
|
|
1592
1618
|
{
|
|
1593
1619
|
prefix: N,
|
|
1594
1620
|
entries: B,
|
|
1595
1621
|
settings: t,
|
|
1596
1622
|
isEditor: W,
|
|
1597
|
-
isEditMode:
|
|
1623
|
+
isEditMode: w,
|
|
1598
1624
|
isPreviewMode: f,
|
|
1599
|
-
initialSlideIndex:
|
|
1600
|
-
enableUrlSync:
|
|
1601
|
-
journalItemId:
|
|
1602
|
-
onBeforeClose:
|
|
1603
|
-
onClose:
|
|
1625
|
+
initialSlideIndex: D,
|
|
1626
|
+
enableUrlSync: T,
|
|
1627
|
+
journalItemId: M,
|
|
1628
|
+
onBeforeClose: Pt,
|
|
1629
|
+
onClose: It
|
|
1604
1630
|
}
|
|
1605
1631
|
),
|
|
1606
|
-
|
|
1632
|
+
y
|
|
1607
1633
|
);
|
|
1608
1634
|
})()
|
|
1609
1635
|
] });
|
|
1610
1636
|
};
|
|
1611
1637
|
export {
|
|
1612
|
-
|
|
1638
|
+
cn as LightboxJournal
|
|
1613
1639
|
};
|