@cntrl-site/components 1.0.116-alpha.0 → 1.0.117
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/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
- package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
- package/dist/Chronicles-BNvvaFYY.mjs +744 -0
- package/dist/Chronicles-Dj1gvNjE.js +196 -0
- package/dist/ChroniclesComponent-CoOgQZx2.js +1 -0
- package/dist/{ChroniclesComponent-jh4v7wp6.mjs → ChroniclesComponent-Szt0H-op.mjs} +542 -491
- 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/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
- package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
- package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
- package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
- package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
- package/dist/{Grid-BzarI5Mc.js → Grid-C4hO8KCr.js} +14 -9
- package/dist/{Grid-Z2JZyUdC.mjs → Grid-Dud7PLS9.mjs} +201 -196
- package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
- package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
- package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
- package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
- package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
- package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-BDUs6T0B.mjs} +466 -434
- package/dist/LightboxJournal-Bf_rZzmz.js +555 -0
- package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-Cuhb2fIR.mjs} +459 -427
- package/dist/LightboxStrip-RA4ABUC-.js +418 -0
- package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
- package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
- package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
- package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
- package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
- package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
- package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
- package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
- package/dist/SvgImage-B5mR9y6q.mjs +51 -0
- package/dist/SvgImage-DFlmxAoL.js +1 -0
- package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
- package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
- package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
- package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
- package/dist/{components-C9Fu28pp.mjs → components-DSHc15vW.mjs} +29 -653
- package/dist/components-iORMB3kt.js +1 -0
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +23 -24
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +38 -61
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
- package/dist/sources.js +143 -30
- package/dist/sources.mjs +150 -37
- package/dist/types/Component.d.ts +0 -7
- package/dist/types/SchemaV1.d.ts +3 -3
- package/package.json +1 -1
- package/dist/Chronicles-Cy2h3jlZ.mjs +0 -724
- package/dist/Chronicles-D0ojQzOP.js +0 -196
- package/dist/ChroniclesComponent-DYPJBI3d.js +0 -1
- package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -73
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -594
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -203
- package/dist/Components/PopupMenu/popupMenuSnap.d.ts +0 -61
- package/dist/LightboxJournal-BFF5aKRz.js +0 -523
- package/dist/LightboxStrip-CC2e0_9A.js +0 -386
- package/dist/PopupMenu-CYdDyzEt.mjs +0 -1372
- package/dist/PopupMenu-Di1fHgho.js +0 -409
- package/dist/SvgImage-CwRq9-ec.mjs +0 -56
- package/dist/SvgImage-_QN8ngad.js +0 -1
- package/dist/components-6QFLq5OI.js +0 -1
- package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
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
|
|
1
|
+
import { jsxs as a, jsx as r, Fragment as ft } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as p, useMemo as L, useState as H, useRef as b, useEffect as nt, useLayoutEffect as Ve } from "react";
|
|
3
|
+
import { flushSync as Bi, createPortal as Ki } from "react-dom";
|
|
4
|
+
import { u as ji } from "./useScopedStyles-DhBG3557.mjs";
|
|
5
|
+
import { u as Oi, i as Tt, g as ti } from "./useLightboxSwipeDismiss-SGv6Ra33.mjs";
|
|
6
|
+
import { s as ye } from "./scalingValue-C9JH5L6O.mjs";
|
|
7
|
+
import { S as Ai } from "./SvgImage-B5mR9y6q.mjs";
|
|
8
|
+
import { u as Fi } from "./useLightboxScrollLock-VQ07s7EJ.mjs";
|
|
9
|
+
import { j as Dt, r as Gt, i as Vt, s as ei, k as Ye, S as _i, l as qe, m as Di, D as $e, b as Jt, a as Ee, g as Ze, c as Ut, e as it, h as Gi, n as be, f as ht, d as Ji, T as Xt, o as Ui, p as Xi, q as Vi, t as Qe, u as Pe, v as Yi } 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:
|
|
19
|
+
journalItemId: z = null,
|
|
20
20
|
onBeforeClose: q,
|
|
21
|
-
onClose:
|
|
21
|
+
onClose: E
|
|
22
22
|
}) => {
|
|
23
23
|
const {
|
|
24
24
|
type: M,
|
|
25
|
-
coverFit:
|
|
25
|
+
coverFit: rt,
|
|
26
26
|
backgroundColor: Yt,
|
|
27
|
-
imageGap:
|
|
28
|
-
maxWidth:
|
|
29
|
-
maxHeight:
|
|
30
|
-
textTransition:
|
|
31
|
-
title1Width:
|
|
32
|
-
title2Width:
|
|
33
|
-
title3Width:
|
|
34
|
-
title1MarginLeft:
|
|
35
|
-
title2MarginLeft:
|
|
36
|
-
title3MarginLeft:
|
|
37
|
-
titleRowMarginBottom:
|
|
27
|
+
imageGap: qt,
|
|
28
|
+
maxWidth: Et,
|
|
29
|
+
maxHeight: K,
|
|
30
|
+
textTransition: D,
|
|
31
|
+
title1Width: lt,
|
|
32
|
+
title2Width: ut,
|
|
33
|
+
title3Width: Z,
|
|
34
|
+
title1MarginLeft: k = 0,
|
|
35
|
+
title2MarginLeft: B = 0,
|
|
36
|
+
title3MarginLeft: St = 0,
|
|
37
|
+
titleRowMarginBottom: T = 0,
|
|
38
38
|
titleHeaderLayout: Zt = "single-row",
|
|
39
|
-
countCloseGap:
|
|
40
|
-
closeIcon:
|
|
41
|
-
closeIconMaxWidth:
|
|
42
|
-
closeIconColor:
|
|
43
|
-
closeIconHoverColor:
|
|
44
|
-
contentMarginTop:
|
|
45
|
-
iconMarginRight:
|
|
46
|
-
} = W, u = p((e) =>
|
|
47
|
-
const e =
|
|
39
|
+
countCloseGap: Qt = 0,
|
|
40
|
+
closeIcon: It,
|
|
41
|
+
closeIconMaxWidth: $,
|
|
42
|
+
closeIconColor: j,
|
|
43
|
+
closeIconHoverColor: G,
|
|
44
|
+
contentMarginTop: Wt = 0,
|
|
45
|
+
iconMarginRight: ii = 0
|
|
46
|
+
} = W, u = p((e) => ye(e, w ?? !1), [w]), Pt = u(qt ?? 0), ni = `${Et}%`, oi = `${K}%`, Nt = u(Qt), ri = u(Wt), Ie = u(ii), st = Dt("title1", Gt(W, "title1"), w), mt = Dt("title2", Gt(W, "title2"), w), gt = Dt("title3", Gt(W, "title3"), w), li = Dt("count", Gt(W, "count"), w), x = Zt === "mobile", J = !w || !!ot, si = !f && (!w || !!ot), d = L(() => Vt(_, M), [_, M]), [y, te] = H(Y), pt = d[y], h = pt == null ? void 0 : pt.entry, [We, Ne] = H(!1), [ke, xt] = H(null), [S, vt] = H(!1), [Re, ee] = H(null), [Ce, ie] = H(!1), [ne, Le] = H(0), [at, wt] = H(), [kt, yt] = H(), [Rt, Ct] = H(null), Q = b(null), Lt = b(0), Ht = b(0), He = b(0), ze = b(!1), oe = b(null), re = b(null), U = b(null), X = b(null), le = b(null), Me = b(null), zt = b(null), Be = p(() => {
|
|
47
|
+
const e = re.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
|
-
const
|
|
52
|
-
return i.getBoundingClientRect().width -
|
|
53
|
-
}, [t]),
|
|
54
|
-
|
|
55
|
-
}, []),
|
|
56
|
-
e === Lt.current && (
|
|
57
|
-
}, []),
|
|
58
|
-
f ||
|
|
59
|
-
|
|
51
|
+
const l = Array.from(i.children).reduce((n, o) => !(o instanceof HTMLElement) || o.contains(e) ? n : n + o.getBoundingClientRect().width, 0);
|
|
52
|
+
return i.getBoundingClientRect().width - l;
|
|
53
|
+
}, [t]), P = p(() => {
|
|
54
|
+
Q.current && (clearTimeout(Q.current), Q.current = null);
|
|
55
|
+
}, []), ai = p((e) => {
|
|
56
|
+
e === Lt.current && (ee(null), ie(!1));
|
|
57
|
+
}, []), $t = p(() => {
|
|
58
|
+
f || ze.current || (ze.current = !0, q == null || q(), Ne(!1), oe.current = setTimeout(() => {
|
|
59
|
+
E();
|
|
60
60
|
}, 300));
|
|
61
|
-
}, [f, q,
|
|
62
|
-
isSwipeDragging:
|
|
63
|
-
backdropStyle:
|
|
64
|
-
mediaAreaStyle:
|
|
65
|
-
overlayContentStyle:
|
|
66
|
-
swipeHandlers:
|
|
67
|
-
dismissAreaStyle:
|
|
68
|
-
} =
|
|
69
|
-
enabled:
|
|
70
|
-
onClose:
|
|
61
|
+
}, [f, q, E]), ci = p((e) => !!(e.closest("[data-controls]") || e.closest(`.${t}-close-icon`)), [t]), {
|
|
62
|
+
isSwipeDragging: se,
|
|
63
|
+
backdropStyle: di,
|
|
64
|
+
mediaAreaStyle: hi,
|
|
65
|
+
overlayContentStyle: fi,
|
|
66
|
+
swipeHandlers: ui,
|
|
67
|
+
dismissAreaStyle: mi
|
|
68
|
+
} = Oi({
|
|
69
|
+
enabled: si,
|
|
70
|
+
onClose: $t,
|
|
71
71
|
animMs: 300,
|
|
72
|
-
isBlockedTarget:
|
|
73
|
-
}),
|
|
74
|
-
N &&
|
|
75
|
-
}, [N,
|
|
72
|
+
isBlockedTarget: ci
|
|
73
|
+
}), Ke = p((e) => {
|
|
74
|
+
N && ei(e + 1, z, !0);
|
|
75
|
+
}, [N, z]), ae = 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
81
|
if (i === y) return;
|
|
82
|
-
const
|
|
82
|
+
const l = d[y], 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(l == null ? void 0 : l.entry) !== Ye(n == null ? void 0 : n.entry), g = ae(U.current), s = c ? (() => {
|
|
85
|
+
const C = Be();
|
|
86
|
+
Bi(() => {
|
|
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 = ae(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
|
-
}, [y,
|
|
99
|
-
|
|
100
|
-
}, []),
|
|
101
|
-
!
|
|
95
|
+
Le(o), ee(y), ie(!0), te(i), Ke(i), He.current = i, c ? (P(), I && wt(I), s != null && s.incomingTitlesMeasureWidth && yt(s.incomingTitlesMeasureWidth), xt((l == null ? void 0 : l.entryIndex) ?? null), vt(!0), Ht.current = n.entryIndex, Q.current = setTimeout(() => {
|
|
96
|
+
xt(null), vt(!1), wt(void 0), yt(void 0), Ct(null), Q.current = null;
|
|
97
|
+
}, 400)) : (P(), xt(null), vt(!1), wt(void 0), yt(void 0), Ct(null), Ht.current = n.entryIndex);
|
|
98
|
+
}, [y, P, Be, ae, d, Ke, D]), bt = p(() => {
|
|
99
|
+
zt.current = null;
|
|
100
|
+
}, []), gi = p((e) => {
|
|
101
|
+
!J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0 || e.target.closest("[data-controls]") || (zt.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]), pi = p((e) => {
|
|
107
|
+
var C;
|
|
108
|
+
if (!J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0) return;
|
|
109
|
+
if (se) {
|
|
110
|
+
bt();
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
|
-
const i =
|
|
114
|
-
if (!i || i.pointerId !== e.pointerId || (
|
|
113
|
+
const i = zt.current;
|
|
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 >=
|
|
116
|
+
if (c >= _i && c > g) {
|
|
117
117
|
ct(n > 0 ? y - 1 : y + 1);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
if (c >
|
|
121
|
-
const s = (
|
|
122
|
-
ct(e.clientX <
|
|
123
|
-
}, [y,
|
|
124
|
-
const i =
|
|
125
|
-
(i == null ? void 0 : i.pointerId) === e.pointerId &&
|
|
126
|
-
}, [
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
if (c > qe || g > qe) return;
|
|
121
|
+
const s = (C = X.current) == null ? void 0 : C.getBoundingClientRect(), I = s ? s.left + s.width / 2 : window.innerWidth / 2;
|
|
122
|
+
ct(e.clientX < I ? y - 1 : y + 1);
|
|
123
|
+
}, [y, J, ct, se, bt, d.length]), xi = p((e) => {
|
|
124
|
+
const i = zt.current;
|
|
125
|
+
(i == null ? void 0 : i.pointerId) === e.pointerId && bt();
|
|
126
|
+
}, [bt]);
|
|
127
|
+
Fi(), nt(() => {
|
|
128
|
+
Me.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
129
129
|
const e = requestAnimationFrame(() => {
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
Ne(!0), requestAnimationFrame(() => {
|
|
131
|
+
le.current ? le.current.focus() : X.current && X.current.focus();
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
return () => {
|
|
135
|
-
cancelAnimationFrame(e),
|
|
136
|
-
const i =
|
|
135
|
+
cancelAnimationFrame(e), oe.current && clearTimeout(oe.current), Q.current && clearTimeout(Q.current);
|
|
136
|
+
const i = Me.current;
|
|
137
137
|
i && document.contains(i) && i.focus({ preventScroll: !0 });
|
|
138
138
|
};
|
|
139
|
-
}, []),
|
|
139
|
+
}, []), nt(() => {
|
|
140
140
|
var e;
|
|
141
|
-
|
|
142
|
-
}, [y,
|
|
141
|
+
D !== "fade" && (Ht.current = ((e = d[y]) == null ? void 0 : e.entryIndex) ?? 0, P(), xt(null), vt(!1), wt(void 0), yt(void 0));
|
|
142
|
+
}, [y, P, d, D]), nt(() => {
|
|
143
143
|
const e = (i) => {
|
|
144
144
|
if (i.key === "Escape") {
|
|
145
|
-
|
|
145
|
+
$t();
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
148
148
|
if (i.key === "ArrowLeft" && d.length > 1) {
|
|
@@ -154,9 +154,9 @@ const Vi = ({
|
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
156
|
if (i.key === "Tab" && X.current) {
|
|
157
|
-
const
|
|
157
|
+
const l = X.current.querySelectorAll(
|
|
158
158
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
159
|
-
), n = Array.from(
|
|
159
|
+
), n = Array.from(l).filter(
|
|
160
160
|
(s) => !s.closest('[aria-hidden="true"]')
|
|
161
161
|
);
|
|
162
162
|
if (n.length === 0) return;
|
|
@@ -165,133 +165,133 @@ const Vi = ({
|
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
168
|
-
}, [ct,
|
|
169
|
-
|
|
168
|
+
}, [ct, $t, y, d.length]), Ve(() => {
|
|
169
|
+
P(), Lt.current = 0, Le(0), ee(null), ie(!1), xt(null), vt(!1), wt(void 0), yt(void 0), Ct(null), te((e) => {
|
|
170
170
|
const i = Math.max(0, d.length - 1);
|
|
171
171
|
return Math.min(e, i);
|
|
172
172
|
});
|
|
173
|
-
}, [
|
|
174
|
-
var
|
|
173
|
+
}, [P, _.length, M, d.length]), Ve(() => {
|
|
174
|
+
var l;
|
|
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 = ((l = d[i]) == null ? void 0 : l.entryIndex) ?? 0, te(i);
|
|
177
177
|
}, [Y]);
|
|
178
|
-
const m =
|
|
178
|
+
const m = ke !== null ? _[ke] : null, je = Re !== null ? d[Re] : null, Mt = (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 = Di(M, d, _), dt = It !== null, vi = Mt || tt || dt, wi = tt && dt ? { gap: Nt } : void 0, Bt = `${t}-titles-stack${x ? ` ${t}-titles-stack-stacked` : ""}`, Oe = `${t}-titles-layer-out${x ? ` ${t}-titles-layer-out-stacked` : ""}`, yi = `${t}-titles-layer-out`, ce = (k ?? 0) > 0 || f, $i = u(T), R = L(
|
|
179
179
|
() => ({
|
|
180
|
-
title1Width:
|
|
181
|
-
title2Width:
|
|
182
|
-
title3Width:
|
|
180
|
+
title1Width: lt ?? $e.title1Width,
|
|
181
|
+
title2Width: ut ?? $e.title2Width,
|
|
182
|
+
title3Width: Z ?? $e.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
|
-
), jt =
|
|
201
|
-
() =>
|
|
202
|
-
[
|
|
203
|
-
),
|
|
204
|
-
() =>
|
|
205
|
-
[
|
|
206
|
-
),
|
|
207
|
-
() => Ut(jt,
|
|
208
|
-
[jt,
|
|
209
|
-
), V =
|
|
210
|
-
() => Ut(
|
|
211
|
-
[
|
|
212
|
-
),
|
|
213
|
-
const
|
|
184
|
+
[lt, ut, Z]
|
|
185
|
+
), O = 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) => R[e.widthKey]),
|
|
193
|
+
[v, R]
|
|
194
|
+
), A = L(
|
|
195
|
+
() => Ee(v.length, Kt),
|
|
196
|
+
[v.length, Kt]
|
|
197
|
+
), Ae = L(
|
|
198
|
+
() => Ze(v.length, Kt),
|
|
199
|
+
[v.length, Kt]
|
|
200
|
+
), jt = 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
|
+
), Ot = L(
|
|
207
|
+
() => Ut(jt, R),
|
|
208
|
+
[jt, R]
|
|
209
|
+
), V = L(
|
|
210
|
+
() => Ut(F, R),
|
|
211
|
+
[F, R]
|
|
212
|
+
), de = p((e, i) => {
|
|
213
|
+
const l = 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[l] ?? 0,
|
|
217
|
+
resolvedWidth: A[l] ?? 0,
|
|
218
|
+
maxWidth: it(l, A)
|
|
219
219
|
};
|
|
220
220
|
if (i === "two-row-top") {
|
|
221
221
|
const o = jt.findIndex((c) => c.prefix === e.prefix);
|
|
222
222
|
return {
|
|
223
|
-
effectiveWidth:
|
|
224
|
-
resolvedWidth:
|
|
225
|
-
maxWidth:
|
|
223
|
+
effectiveWidth: Ot.effective[o] ?? 0,
|
|
224
|
+
resolvedWidth: Ot.resolved[o] ?? 0,
|
|
225
|
+
maxWidth: it(o, Ot.resolved)
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
const n =
|
|
228
|
+
const n = F.findIndex((o) => o.prefix === e.prefix);
|
|
229
229
|
return {
|
|
230
230
|
effectiveWidth: V.effective[n] ?? 0,
|
|
231
231
|
resolvedWidth: V.resolved[n] ?? 0,
|
|
232
|
-
maxWidth:
|
|
232
|
+
maxWidth: it(n, V.resolved)
|
|
233
233
|
};
|
|
234
234
|
}, [
|
|
235
|
-
|
|
236
|
-
O,
|
|
237
|
-
V,
|
|
238
|
-
Ke,
|
|
235
|
+
v,
|
|
239
236
|
F,
|
|
237
|
+
V,
|
|
238
|
+
Ae,
|
|
239
|
+
A,
|
|
240
240
|
jt,
|
|
241
|
-
|
|
241
|
+
Ot,
|
|
242
242
|
x
|
|
243
|
-
]),
|
|
244
|
-
(e) =>
|
|
245
|
-
|
|
246
|
-
F,
|
|
243
|
+
]), bi = p(
|
|
244
|
+
(e) => Gi(
|
|
245
|
+
v,
|
|
247
246
|
A,
|
|
247
|
+
O,
|
|
248
248
|
e
|
|
249
|
-
) + (x ? 0 :
|
|
250
|
-
[
|
|
251
|
-
),
|
|
252
|
-
() => x ? 0 :
|
|
253
|
-
[x,
|
|
254
|
-
),
|
|
255
|
-
(e) =>
|
|
256
|
-
(i,
|
|
249
|
+
) + (x ? 0 : k ?? 0),
|
|
250
|
+
[v, A, O, x, k]
|
|
251
|
+
), Ti = p(
|
|
252
|
+
() => x ? 0 : k ?? 0,
|
|
253
|
+
[x, k]
|
|
254
|
+
), he = p(
|
|
255
|
+
(e) => F.slice(0, e).reduce(
|
|
256
|
+
(i, l, n) => i + (l.marginLeftKey ? O[l.marginLeftKey] ?? 0 : 0) + (V.resolved[n] ?? 0),
|
|
257
257
|
0
|
|
258
258
|
),
|
|
259
|
-
[
|
|
260
|
-
),
|
|
259
|
+
[F, V.resolved, O]
|
|
260
|
+
), Si = p(
|
|
261
261
|
(e) => {
|
|
262
|
-
const i =
|
|
263
|
-
return
|
|
262
|
+
const i = F[e];
|
|
263
|
+
return he(e) + (i.marginLeftKey ? O[i.marginLeftKey] ?? 0 : 0) + (V.resolved[e] ?? 0);
|
|
264
264
|
},
|
|
265
|
-
[
|
|
266
|
-
),
|
|
267
|
-
if (!x ||
|
|
268
|
-
const s = e.findIndex((
|
|
265
|
+
[F, V.resolved, he, O]
|
|
266
|
+
), fe = p((e, i, l) => {
|
|
267
|
+
if (!x || l === "single-row") {
|
|
268
|
+
const s = e.findIndex((et) => et.prefix === i.prefix), I = e.map((et) => R[et.widthKey]), C = Ee(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
|
-
if (
|
|
276
|
-
const s = e.filter((
|
|
275
|
+
if (l === "two-row-top") {
|
|
276
|
+
const s = e.filter((et) => et.prefix === "title1"), I = s.findIndex((et) => et.prefix === i.prefix), { resolved: C, effective: _t } = Ut(s, R);
|
|
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
|
-
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,
|
|
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, R);
|
|
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
|
-
}, [
|
|
290
|
-
const n = e.marginLeftKey ?
|
|
289
|
+
}, [R, x]), ue = (e, i, l) => {
|
|
290
|
+
const n = e.marginLeftKey ? O[e.marginLeftKey] ?? 0 : 0, {
|
|
291
291
|
effectiveWidth: o,
|
|
292
292
|
resolvedWidth: c,
|
|
293
293
|
maxWidth: g
|
|
294
|
-
} =
|
|
294
|
+
} = l ?? de(e, i), s = Math.max(n, Xt), I = f && i === "two-row-top";
|
|
295
295
|
return /* @__PURE__ */ a(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
@@ -302,8 +302,8 @@ const Vi = ({
|
|
|
302
302
|
...n > 0 ? { marginLeft: u(n) } : {}
|
|
303
303
|
},
|
|
304
304
|
children: [
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
|
|
305
|
+
/* @__PURE__ */ r("p", { className: e.className, style: e.style, children: e.text }),
|
|
306
|
+
I && e.marginLeftKey ? /* @__PURE__ */ r(
|
|
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__ */ r(
|
|
324
324
|
"div",
|
|
325
325
|
{
|
|
326
326
|
"data-controls": e.widthKey,
|
|
@@ -342,26 +342,26 @@ const Vi = ({
|
|
|
342
342
|
},
|
|
343
343
|
e.className
|
|
344
344
|
);
|
|
345
|
-
},
|
|
346
|
-
const i =
|
|
347
|
-
return /* @__PURE__ */
|
|
345
|
+
}, me = (e = "two-row") => {
|
|
346
|
+
const i = v.findIndex((o) => o.prefix === "title1"), l = i >= 0 ? A[i] : R.title1Width, n = e === "two-row" && f;
|
|
347
|
+
return /* @__PURE__ */ r(
|
|
348
348
|
"div",
|
|
349
349
|
{
|
|
350
350
|
...n ? {
|
|
351
351
|
"data-controls": "title1MarginLeft",
|
|
352
352
|
"data-controls-axis": "x",
|
|
353
353
|
"data-controls-min": "0",
|
|
354
|
-
"data-controls-max-fraction": String(
|
|
354
|
+
"data-controls-max-fraction": String(l)
|
|
355
355
|
} : {},
|
|
356
356
|
style: {
|
|
357
|
-
width: u(
|
|
357
|
+
width: u(k ?? 0),
|
|
358
358
|
flexShrink: 0,
|
|
359
359
|
alignSelf: "stretch",
|
|
360
360
|
...n ? { pointerEvents: "auto" } : {}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
);
|
|
364
|
-
},
|
|
364
|
+
}, ge = () => /* @__PURE__ */ r(
|
|
365
365
|
"span",
|
|
366
366
|
{
|
|
367
367
|
className: `${t}-titles-baseline-strut`,
|
|
@@ -369,18 +369,18 @@ const Vi = ({
|
|
|
369
369
|
"aria-hidden": "true",
|
|
370
370
|
children: " "
|
|
371
371
|
}
|
|
372
|
-
),
|
|
372
|
+
), Fe = () => /* @__PURE__ */ r(
|
|
373
373
|
"span",
|
|
374
374
|
{
|
|
375
375
|
className: `${t}-entry-counter`,
|
|
376
|
-
style:
|
|
376
|
+
style: li,
|
|
377
377
|
"aria-live": "polite",
|
|
378
378
|
"aria-atomic": "true",
|
|
379
|
-
children:
|
|
379
|
+
children: Ui(d, y, M, _)
|
|
380
380
|
}
|
|
381
|
-
),
|
|
382
|
-
|
|
383
|
-
/* @__PURE__ */
|
|
381
|
+
), Ii = () => tt ? f && dt ? /* @__PURE__ */ a("div", { className: `${t}-text-bar-cell`, style: { flexShrink: 0 }, children: [
|
|
382
|
+
Fe(),
|
|
383
|
+
/* @__PURE__ */ r(
|
|
384
384
|
"div",
|
|
385
385
|
{
|
|
386
386
|
"data-controls": "countCloseGap",
|
|
@@ -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 * (${be(Nt)} + ${Nt}))`,
|
|
393
|
+
width: be(Nt),
|
|
394
394
|
height: "100%",
|
|
395
395
|
pointerEvents: "auto",
|
|
396
396
|
zIndex: 3
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
)
|
|
400
|
-
] }) :
|
|
400
|
+
] }) : Fe() : null, pe = () => !tt && !dt ? null : /* @__PURE__ */ a(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
className: `${t}-titles-row-header-controls`,
|
|
404
|
-
style:
|
|
404
|
+
style: wi,
|
|
405
405
|
children: [
|
|
406
|
-
|
|
407
|
-
dt ?
|
|
406
|
+
Ii(),
|
|
407
|
+
dt ? ki() : null
|
|
408
408
|
]
|
|
409
409
|
}
|
|
410
|
-
),
|
|
410
|
+
), Wi = () => /* @__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
|
-
|
|
422
|
-
/* @__PURE__ */
|
|
423
|
-
|
|
424
|
-
|
|
419
|
+
tt || Mt ? ge() : null,
|
|
420
|
+
ce ? me("single-row") : null,
|
|
421
|
+
De(h),
|
|
422
|
+
/* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
|
|
423
|
+
pe(),
|
|
424
|
+
we()
|
|
425
425
|
]
|
|
426
426
|
}
|
|
427
|
-
),
|
|
427
|
+
), Ni = () => /* @__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 || Mt ? ge() : null,
|
|
434
|
+
ce ? me("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
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ r(
|
|
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,64 +454,64 @@ const Vi = ({
|
|
|
454
454
|
height: "auto"
|
|
455
455
|
},
|
|
456
456
|
"aria-hidden": "true",
|
|
457
|
-
children:
|
|
457
|
+
children: Ft(Rt || h)
|
|
458
458
|
}
|
|
459
459
|
),
|
|
460
460
|
/* @__PURE__ */ a(
|
|
461
461
|
"div",
|
|
462
462
|
{
|
|
463
|
-
ref:
|
|
464
|
-
className:
|
|
463
|
+
ref: re,
|
|
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 && kt ? { width: kt, maxWidth: "100%" } : void 0
|
|
470
470
|
},
|
|
471
471
|
children: [
|
|
472
|
-
m &&
|
|
473
|
-
/* @__PURE__ */
|
|
472
|
+
m && S ? /* @__PURE__ */ r("div", { className: `${Oe} ${t}-titles-fade-out`, children: Ft(m) }) : null,
|
|
473
|
+
/* @__PURE__ */ r("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
|
+
pe(),
|
|
481
|
+
we()
|
|
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: ye($ ?? 0, w),
|
|
490
|
+
height: ye($ ?? 0, w),
|
|
491
|
+
marginRight: Ie,
|
|
492
|
+
"--close-icon-hover-color": G
|
|
493
493
|
},
|
|
494
494
|
children: [
|
|
495
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ r(
|
|
496
496
|
"button",
|
|
497
497
|
{
|
|
498
|
-
ref:
|
|
498
|
+
ref: le,
|
|
499
499
|
type: "button",
|
|
500
500
|
className: `${t}-close-icon-inner`,
|
|
501
|
-
onClick:
|
|
501
|
+
onClick: $t,
|
|
502
502
|
"aria-label": "Close",
|
|
503
|
-
children: /* @__PURE__ */
|
|
504
|
-
|
|
503
|
+
children: /* @__PURE__ */ r(
|
|
504
|
+
Ai,
|
|
505
505
|
{
|
|
506
|
-
url:
|
|
507
|
-
fill:
|
|
508
|
-
hoverFill:
|
|
506
|
+
url: It ?? "",
|
|
507
|
+
fill: j,
|
|
508
|
+
hoverFill: w && !ot ? j : G,
|
|
509
509
|
className: `${t}-close-icon-img`
|
|
510
510
|
}
|
|
511
511
|
)
|
|
512
512
|
}
|
|
513
513
|
),
|
|
514
|
-
f && /* @__PURE__ */
|
|
514
|
+
f && /* @__PURE__ */ r(
|
|
515
515
|
"div",
|
|
516
516
|
{
|
|
517
517
|
"data-controls": "iconMarginRight",
|
|
@@ -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,14 +530,14 @@ 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
|
-
|
|
540
|
-
i !== void 0 ? /* @__PURE__ */
|
|
538
|
+
tt || Mt ? ge() : null,
|
|
539
|
+
ce ? me("two-row") : null,
|
|
540
|
+
i !== void 0 ? /* @__PURE__ */ r(
|
|
541
541
|
"div",
|
|
542
542
|
{
|
|
543
543
|
className: `${t}-titles-row-titles`,
|
|
@@ -551,42 +551,42 @@ const Vi = ({
|
|
|
551
551
|
}
|
|
552
552
|
) : /* @__PURE__ */ a(ft, { children: [
|
|
553
553
|
e,
|
|
554
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
|
|
555
555
|
] }),
|
|
556
|
-
|
|
556
|
+
pe()
|
|
557
557
|
]
|
|
558
558
|
}
|
|
559
|
-
),
|
|
559
|
+
), De = (e) => {
|
|
560
560
|
if (!e) return null;
|
|
561
|
-
const i =
|
|
562
|
-
return /* @__PURE__ */
|
|
563
|
-
|
|
561
|
+
const i = Jt(t, e, st, mt, gt);
|
|
562
|
+
return /* @__PURE__ */ r(ft, { children: i.map((l) => ue(
|
|
563
|
+
l,
|
|
564
564
|
"single-row",
|
|
565
|
-
|
|
565
|
+
fe(i, l, "single-row")
|
|
566
566
|
)) });
|
|
567
|
-
},
|
|
567
|
+
}, xe = (e) => {
|
|
568
568
|
if (!e) return null;
|
|
569
|
-
const i =
|
|
570
|
-
return
|
|
571
|
-
|
|
569
|
+
const i = Jt(t, e, st, mt, gt), l = i.find((n) => n.prefix === "title1");
|
|
570
|
+
return l ? ue(
|
|
571
|
+
l,
|
|
572
572
|
"two-row-top",
|
|
573
|
-
|
|
573
|
+
fe(i, l, "two-row-top")
|
|
574
574
|
) : null;
|
|
575
|
-
},
|
|
576
|
-
const
|
|
577
|
-
return n.length > 0 || o || (
|
|
575
|
+
}, ve = (e, i = !1) => {
|
|
576
|
+
const l = e ? Jt(t, e, st, mt, gt) : [], n = l.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) => ue(
|
|
580
580
|
g,
|
|
581
581
|
"two-row-bottom",
|
|
582
|
-
|
|
582
|
+
fe(l, g, "two-row-bottom")
|
|
583
583
|
)),
|
|
584
584
|
i && f ? /* @__PURE__ */ a(ft, { children: [
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
Li(),
|
|
586
|
+
Hi()
|
|
587
587
|
] }) : null
|
|
588
588
|
] }) : null,
|
|
589
|
-
(
|
|
589
|
+
(T ?? 0) > 0 || o ? /* @__PURE__ */ r(
|
|
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: $i,
|
|
598
598
|
width: "100%",
|
|
599
599
|
flexShrink: 0,
|
|
600
600
|
pointerEvents: o ? "auto" : "none"
|
|
@@ -602,13 +602,13 @@ const Vi = ({
|
|
|
602
602
|
}
|
|
603
603
|
) : null
|
|
604
604
|
] }) : null;
|
|
605
|
-
},
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
] }),
|
|
609
|
-
const e = x ? -1 :
|
|
610
|
-
const n =
|
|
611
|
-
return /* @__PURE__ */
|
|
605
|
+
}, At = (e, i = !1) => /* @__PURE__ */ a(ft, { children: [
|
|
606
|
+
_e(xe(e)),
|
|
607
|
+
ve(e, i)
|
|
608
|
+
] }), Ft = (e) => x ? /* @__PURE__ */ r("div", { className: `${t}-titles-row-two-row`, children: At(e) }) : e ? /* @__PURE__ */ r("div", { className: `${t}-titles-row`, style: { width: "100%" }, children: De(e) }) : null, Ri = () => {
|
|
609
|
+
const e = x ? -1 : v.findIndex((n) => n.prefix === "title1"), i = !x && (f || (k ?? 0) > 0) ? (() => {
|
|
610
|
+
const n = k ?? 0, o = e >= 0 ? A[e] : R.title1Width, c = Math.max(n, Xt);
|
|
611
|
+
return /* @__PURE__ */ r(
|
|
612
612
|
"div",
|
|
613
613
|
{
|
|
614
614
|
"data-controls": "title1MarginLeft",
|
|
@@ -626,21 +626,21 @@ const Vi = ({
|
|
|
626
626
|
},
|
|
627
627
|
"title1MarginLeft"
|
|
628
628
|
);
|
|
629
|
-
})() : null,
|
|
629
|
+
})() : null, l = v.flatMap((n, o) => {
|
|
630
630
|
if (!n.marginLeftKey) return [];
|
|
631
|
-
const c =
|
|
632
|
-
|
|
633
|
-
F,
|
|
631
|
+
const c = O[n.marginLeftKey] ?? 0, g = Ji(
|
|
632
|
+
v,
|
|
634
633
|
A,
|
|
634
|
+
O,
|
|
635
635
|
o
|
|
636
|
-
) +
|
|
637
|
-
return /* @__PURE__ */
|
|
636
|
+
) + Ti(), s = Math.max(c, Xt);
|
|
637
|
+
return /* @__PURE__ */ r(
|
|
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,
|
|
@@ -653,15 +653,15 @@ const Vi = ({
|
|
|
653
653
|
n.marginLeftKey
|
|
654
654
|
);
|
|
655
655
|
});
|
|
656
|
-
return i ? [i, ...
|
|
657
|
-
},
|
|
658
|
-
const
|
|
659
|
-
return /* @__PURE__ */
|
|
656
|
+
return i ? [i, ...l] : l;
|
|
657
|
+
}, Ci = () => v.map((e, i) => {
|
|
658
|
+
const l = it(i, A), o = bi(i) - ht / 2;
|
|
659
|
+
return /* @__PURE__ */ r("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ r(
|
|
660
660
|
"div",
|
|
661
661
|
{
|
|
662
662
|
"data-controls": e.widthKey,
|
|
663
663
|
"data-controls-axis": "x",
|
|
664
|
-
"data-controls-max-fraction": String(
|
|
664
|
+
"data-controls-max-fraction": String(l),
|
|
665
665
|
"data-controls-variant": "column-width",
|
|
666
666
|
className: `${t}-title-resize-handle`,
|
|
667
667
|
style: {
|
|
@@ -674,10 +674,10 @@ const Vi = ({
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
) }, `${e.widthKey}-junction`);
|
|
677
|
-
}),
|
|
677
|
+
}), Li = () => F.flatMap((e, i) => {
|
|
678
678
|
if (!e.marginLeftKey) return [];
|
|
679
|
-
const
|
|
680
|
-
return /* @__PURE__ */
|
|
679
|
+
const l = O[e.marginLeftKey] ?? 0, n = he(i), o = Math.max(l, Xt), { resolvedWidth: c } = de(e, "two-row-bottom");
|
|
680
|
+
return /* @__PURE__ */ r(
|
|
681
681
|
"div",
|
|
682
682
|
{
|
|
683
683
|
"data-controls": e.marginLeftKey,
|
|
@@ -695,14 +695,14 @@ const Vi = ({
|
|
|
695
695
|
},
|
|
696
696
|
e.marginLeftKey
|
|
697
697
|
);
|
|
698
|
-
}),
|
|
699
|
-
const { maxWidth:
|
|
700
|
-
return /* @__PURE__ */
|
|
698
|
+
}), Hi = () => F.map((e, i) => {
|
|
699
|
+
const { maxWidth: l } = de(e, "two-row-bottom"), o = Si(i) - ht / 2;
|
|
700
|
+
return /* @__PURE__ */ r("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ r(
|
|
701
701
|
"div",
|
|
702
702
|
{
|
|
703
703
|
"data-controls": e.widthKey,
|
|
704
704
|
"data-controls-axis": "x",
|
|
705
|
-
"data-controls-max-fraction": String(
|
|
705
|
+
"data-controls-max-fraction": String(l),
|
|
706
706
|
"data-controls-variant": "column-width",
|
|
707
707
|
className: `${t}-title-resize-handle`,
|
|
708
708
|
style: {
|
|
@@ -715,45 +715,45 @@ const Vi = ({
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
) }, `${e.widthKey}-junction`);
|
|
718
|
-
}),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
] }),
|
|
722
|
-
const i = !e.objectFit &&
|
|
718
|
+
}), we = () => !f || x ? null : /* @__PURE__ */ a(ft, { children: [
|
|
719
|
+
Ri(),
|
|
720
|
+
Ci()
|
|
721
|
+
] }), Ge = (e) => {
|
|
722
|
+
const i = !e.objectFit && Tt(rt);
|
|
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: ni,
|
|
727
|
+
maxHeight: oi,
|
|
728
|
+
...i ? { "--image-aspect-ratio": ti(rt) } : {}
|
|
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(rt) ? { 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,
|
|
736
|
+
const i = e.length > 1, l = be(Pt), n = `calc(-0.5 * (${l} + ${Pt}))`;
|
|
737
737
|
if (e.length === 1) {
|
|
738
738
|
const o = e[0];
|
|
739
|
-
return /* @__PURE__ */
|
|
739
|
+
return /* @__PURE__ */ r("div", { ...Ge(o), children: /* @__PURE__ */ r("img", { ...Je(o), src: o.assetId, alt: o.name ?? "", draggable: !1 }) });
|
|
740
740
|
}
|
|
741
|
-
return /* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ r(
|
|
742
742
|
"div",
|
|
743
743
|
{
|
|
744
744
|
className: `${t}-slide-inner`,
|
|
745
|
-
style: i ? { gap:
|
|
746
|
-
children: e.map((o, c) => /* @__PURE__ */ a("div", { ...
|
|
747
|
-
/* @__PURE__ */
|
|
745
|
+
style: i ? { gap: Pt } : void 0,
|
|
746
|
+
children: e.map((o, c) => /* @__PURE__ */ a("div", { ...Ge(o), children: [
|
|
747
|
+
/* @__PURE__ */ r(
|
|
748
748
|
"img",
|
|
749
749
|
{
|
|
750
|
-
...
|
|
750
|
+
...Je(o),
|
|
751
751
|
src: o.assetId,
|
|
752
752
|
alt: o.name ?? "",
|
|
753
753
|
draggable: !1
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
|
-
f && i && c < e.length - 1 && /* @__PURE__ */
|
|
756
|
+
f && i && c < e.length - 1 && /* @__PURE__ */ r(
|
|
757
757
|
"div",
|
|
758
758
|
{
|
|
759
759
|
"data-controls": "imageGap",
|
|
@@ -762,7 +762,7 @@ const Vi = ({
|
|
|
762
762
|
position: "absolute",
|
|
763
763
|
top: 0,
|
|
764
764
|
right: n,
|
|
765
|
-
width:
|
|
765
|
+
width: l,
|
|
766
766
|
height: "100%",
|
|
767
767
|
pointerEvents: "auto",
|
|
768
768
|
zIndex: 3
|
|
@@ -772,7 +772,7 @@ const Vi = ({
|
|
|
772
772
|
] }, `${o.assetId}-${c}`))
|
|
773
773
|
}
|
|
774
774
|
);
|
|
775
|
-
},
|
|
775
|
+
}, Xe = !!(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: {
|
|
@@ -786,11 +786,11 @@ const Vi = ({
|
|
|
786
786
|
height: "100%"
|
|
787
787
|
},
|
|
788
788
|
children: [
|
|
789
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ r(
|
|
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(Rt || h)
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
808
|
/* @__PURE__ */ a(
|
|
809
809
|
"div",
|
|
810
810
|
{
|
|
811
|
-
ref:
|
|
811
|
+
ref: re,
|
|
812
812
|
className: `${t}-titles-row-two-row`,
|
|
813
813
|
style: {
|
|
814
|
-
...
|
|
815
|
-
...
|
|
814
|
+
...S && at ? { minHeight: at } : void 0,
|
|
815
|
+
...S && kt ? { width: kt, 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 &&
|
|
830
|
-
/* @__PURE__ */
|
|
829
|
+
m && S ? /* @__PURE__ */ r("div", { className: `${yi} ${t}-titles-fade-out`, children: xe(m) }) : null,
|
|
830
|
+
/* @__PURE__ */ r(
|
|
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: xe(h)
|
|
835
835
|
}
|
|
836
836
|
)
|
|
837
837
|
]
|
|
838
838
|
}
|
|
839
839
|
),
|
|
840
|
-
|
|
840
|
+
S && at ? at : void 0
|
|
841
841
|
),
|
|
842
|
-
|
|
843
|
-
m &&
|
|
844
|
-
/* @__PURE__ */
|
|
842
|
+
Xe ? /* @__PURE__ */ a("div", { className: `${t}-titles-row-bottom-area`, children: [
|
|
843
|
+
m && S ? /* @__PURE__ */ r("div", { className: `${Oe} ${t}-titles-layer-out-bottom ${t}-titles-fade-out`, children: ve(m) }) : null,
|
|
844
|
+
/* @__PURE__ */ r(
|
|
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: ve(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
|
+
), Mi = () => {
|
|
858
|
+
const e = Xe;
|
|
859
859
|
return /* @__PURE__ */ a(
|
|
860
860
|
"div",
|
|
861
861
|
{
|
|
@@ -869,15 +869,15 @@ const Vi = ({
|
|
|
869
869
|
...e ? { flex: 1, height: "100%" } : {}
|
|
870
870
|
},
|
|
871
871
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ r(
|
|
873
873
|
"div",
|
|
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
|
+
we()
|
|
881
881
|
]
|
|
882
882
|
}
|
|
883
883
|
);
|
|
@@ -887,87 +887,87 @@ const Vi = ({
|
|
|
887
887
|
{
|
|
888
888
|
ref: X,
|
|
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
|
+
se || $t();
|
|
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__ */
|
|
904
|
+
/* @__PURE__ */ r("div", { className: `${t}-lightbox-backdrop`, style: { backgroundColor: Yt, ...di } }),
|
|
905
905
|
/* @__PURE__ */ a(
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
908
|
className: `${t}-lightbox-dismiss-area`,
|
|
909
|
-
style:
|
|
910
|
-
...
|
|
909
|
+
style: mi,
|
|
910
|
+
...ui,
|
|
911
911
|
children: [
|
|
912
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ r(
|
|
913
913
|
"div",
|
|
914
914
|
{
|
|
915
915
|
className: `${t}-lightbox-content`,
|
|
916
|
-
style:
|
|
916
|
+
style: hi,
|
|
917
917
|
onClick: (e) => e.stopPropagation(),
|
|
918
|
-
children: /* @__PURE__ */
|
|
918
|
+
children: /* @__PURE__ */ r(
|
|
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 ? gi : void 0,
|
|
924
|
+
onPointerUp: J ? pi : void 0,
|
|
925
|
+
onPointerCancel: J ? xi : void 0,
|
|
926
926
|
children: /* @__PURE__ */ a("div", { className: `${t}-slide-stack`, children: [
|
|
927
|
-
|
|
927
|
+
je && Ce ? /* @__PURE__ */ r(
|
|
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 && ai(ne);
|
|
933
933
|
},
|
|
934
|
-
children: /* @__PURE__ */
|
|
934
|
+
children: /* @__PURE__ */ r("div", { className: `${t}-slide-area`, children: Ue(je.images) })
|
|
935
935
|
},
|
|
936
|
-
`slide-out-${
|
|
936
|
+
`slide-out-${ne}`
|
|
937
937
|
) : null,
|
|
938
|
-
/* @__PURE__ */
|
|
938
|
+
/* @__PURE__ */ r(
|
|
939
939
|
"div",
|
|
940
940
|
{
|
|
941
|
-
className: `${t}-slide-layer-in${
|
|
942
|
-
children: /* @__PURE__ */
|
|
941
|
+
className: `${t}-slide-layer-in${Ce ? ` ${t}-slide-fade-in` : ""}`,
|
|
942
|
+
children: /* @__PURE__ */ r("div", { className: `${t}-slide-area`, children: pt ? Ue(pt.images) : null })
|
|
943
943
|
},
|
|
944
|
-
`slide-in-${
|
|
944
|
+
`slide-in-${ne}-${y}`
|
|
945
945
|
)
|
|
946
946
|
] })
|
|
947
947
|
}
|
|
948
948
|
)
|
|
949
949
|
}
|
|
950
950
|
),
|
|
951
|
-
/* @__PURE__ */ a("div", { className: `${t}-lightbox-overlay-content`, style:
|
|
952
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ a("div", { className: `${t}-lightbox-overlay-content`, style: fi, children: [
|
|
952
|
+
/* @__PURE__ */ r(
|
|
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
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ r("div", { style: {
|
|
961
961
|
display: "flex",
|
|
962
962
|
flexDirection: "row",
|
|
963
963
|
width: "100%",
|
|
964
964
|
...x ? { flex: 1, minHeight: 0 } : {}
|
|
965
|
-
}, children: /* @__PURE__ */
|
|
965
|
+
}, children: /* @__PURE__ */ r("div", { className: `${t}-lightbox-content-area${x ? ` ${t}-lightbox-content-area-stacked` : ""}`, children: vi && /* @__PURE__ */ r(
|
|
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() : Mi() : D === "fade" ? Ni() : Wi()
|
|
971
971
|
}
|
|
972
972
|
) }) })
|
|
973
973
|
] })
|
|
@@ -977,8 +977,8 @@ const Vi = ({
|
|
|
977
977
|
]
|
|
978
978
|
}
|
|
979
979
|
);
|
|
980
|
-
};
|
|
981
|
-
function
|
|
980
|
+
}, Te = 400, Se = "cubic-bezier(0.25, 0.1, 0.25, 1)", Ei = 1.1;
|
|
981
|
+
function Zi(t) {
|
|
982
982
|
return `
|
|
983
983
|
.${t}-wrapper {
|
|
984
984
|
position: relative;
|
|
@@ -1024,6 +1024,38 @@ function Yi(t) {
|
|
|
1024
1024
|
max-width: 100%;
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
|
+
@property --${t}-hover-zoom {
|
|
1028
|
+
syntax: '<number>';
|
|
1029
|
+
inherits: false;
|
|
1030
|
+
initial-value: 1;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
.${t}-hover-zoom-in .${t}-cover-image {
|
|
1034
|
+
transform: scale(var(--${t}-hover-zoom));
|
|
1035
|
+
clip-path: inset(calc(50% - 50% / var(--${t}-hover-zoom)));
|
|
1036
|
+
transition: --${t}-hover-zoom ${Te}ms ${Se};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.${t}-hover-scale-down .${t}-cover-image {
|
|
1040
|
+
transition: transform ${Te}ms ${Se};
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.${t}-hover-greyscale .${t}-cover-image {
|
|
1044
|
+
transition: filter ${Te}ms ${Se};
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
@media (hover: hover) {
|
|
1048
|
+
.${t}-hover-zoom-in .${t}-cover:hover .${t}-cover-image {
|
|
1049
|
+
--${t}-hover-zoom: ${Ei};
|
|
1050
|
+
}
|
|
1051
|
+
.${t}-hover-scale-down .${t}-cover:hover .${t}-cover-image {
|
|
1052
|
+
transform: scale(0.9);
|
|
1053
|
+
}
|
|
1054
|
+
.${t}-hover-greyscale .${t}-cover:hover .${t}-cover-image {
|
|
1055
|
+
filter: grayscale(1);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1027
1059
|
.${t}-lightbox {
|
|
1028
1060
|
position: fixed;
|
|
1029
1061
|
inset: 0;
|
|
@@ -1503,80 +1535,80 @@ function Yi(t) {
|
|
|
1503
1535
|
}
|
|
1504
1536
|
`;
|
|
1505
1537
|
}
|
|
1506
|
-
const
|
|
1507
|
-
const { prefix: N } =
|
|
1508
|
-
() => (
|
|
1509
|
-
[
|
|
1510
|
-
),
|
|
1511
|
-
|
|
1512
|
-
}, [
|
|
1513
|
-
if (B.length === 0 || W && !
|
|
1514
|
-
const j = Vt(B, M),
|
|
1515
|
-
if (
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1538
|
+
const an = ({ settings: t, content: _, isEditor: W, isEditMode: w, isPreviewMode: f, portalId: ot, metadata: Y }) => {
|
|
1539
|
+
const { prefix: N } = ji(), z = (Y == null ? void 0 : Y.itemId) ?? null, { cover: q, coverFit: E, type: M, hover: rt = "none" } = t, Yt = rt !== "none" && (!W || f) ? ` ${N}-hover-${rt}` : "", qt = b(null), [Et, K] = H(!1), [D, lt] = H(0), ut = b(!1), Z = b(!1), k = b(!1), B = L(
|
|
1540
|
+
() => (_ ?? []).filter(($) => Xi($).length > 0),
|
|
1541
|
+
[_]
|
|
1542
|
+
), St = Et && B.length > 0, T = !W, Zt = p(() => {
|
|
1543
|
+
T && (k.current = !0, Vi(Z.current, z), Z.current = !1);
|
|
1544
|
+
}, [T, z]), Qt = ($ = 0) => {
|
|
1545
|
+
if (B.length === 0 || W && !w && !f) return;
|
|
1546
|
+
const j = Vt(B, M), G = Math.max(0, Math.min($, j.length - 1));
|
|
1547
|
+
if (lt(G), T) {
|
|
1548
|
+
const Wt = Yi();
|
|
1549
|
+
ei(G + 1, z, Wt), Z.current = !Wt;
|
|
1518
1550
|
}
|
|
1519
|
-
|
|
1520
|
-
},
|
|
1521
|
-
|
|
1551
|
+
K(!0);
|
|
1552
|
+
}, It = p(() => {
|
|
1553
|
+
K(!1), k.current = !1;
|
|
1522
1554
|
}, []);
|
|
1523
|
-
return
|
|
1524
|
-
!W ||
|
|
1525
|
-
}, [W,
|
|
1526
|
-
if (!
|
|
1527
|
-
const
|
|
1555
|
+
return nt(() => {
|
|
1556
|
+
!W || w || f || K(!1);
|
|
1557
|
+
}, [W, w, f]), nt(() => {
|
|
1558
|
+
if (!T || typeof window > "u") return;
|
|
1559
|
+
const $ = window.history.scrollRestoration;
|
|
1528
1560
|
return window.history.scrollRestoration = "manual", () => {
|
|
1529
|
-
window.history.scrollRestoration =
|
|
1561
|
+
window.history.scrollRestoration = $;
|
|
1530
1562
|
};
|
|
1531
|
-
}, [
|
|
1532
|
-
if (!
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
if (
|
|
1536
|
-
const j =
|
|
1537
|
-
j < 0 || (
|
|
1538
|
-
}, [B,
|
|
1539
|
-
if (!
|
|
1540
|
-
const
|
|
1541
|
-
if (
|
|
1542
|
-
|
|
1563
|
+
}, [T]), nt(() => {
|
|
1564
|
+
if (!T || ut.current) return;
|
|
1565
|
+
ut.current = !0;
|
|
1566
|
+
const $ = Qe(z);
|
|
1567
|
+
if (!$) return;
|
|
1568
|
+
const j = Pe($, Vt(B, M).length);
|
|
1569
|
+
j < 0 || (lt(j), K(!0));
|
|
1570
|
+
}, [B, z, T, M]), nt(() => {
|
|
1571
|
+
if (!T) return;
|
|
1572
|
+
const $ = () => {
|
|
1573
|
+
if (k.current) {
|
|
1574
|
+
k.current = !1, K(!1);
|
|
1543
1575
|
return;
|
|
1544
1576
|
}
|
|
1545
|
-
const j =
|
|
1577
|
+
const j = Qe(z);
|
|
1546
1578
|
if (!j) {
|
|
1547
|
-
|
|
1579
|
+
K(!1);
|
|
1548
1580
|
return;
|
|
1549
1581
|
}
|
|
1550
|
-
const
|
|
1551
|
-
if (
|
|
1552
|
-
|
|
1582
|
+
const G = Pe(j, Vt(B, M).length);
|
|
1583
|
+
if (G < 0) {
|
|
1584
|
+
K(!1);
|
|
1553
1585
|
return;
|
|
1554
1586
|
}
|
|
1555
|
-
|
|
1587
|
+
Z.current = !1, lt(G), K(!0);
|
|
1556
1588
|
};
|
|
1557
|
-
return window.addEventListener("popstate",
|
|
1558
|
-
}, [B,
|
|
1559
|
-
/* @__PURE__ */ a("div", { ref:
|
|
1560
|
-
/* @__PURE__ */
|
|
1561
|
-
q ? /* @__PURE__ */
|
|
1589
|
+
return window.addEventListener("popstate", $), () => window.removeEventListener("popstate", $);
|
|
1590
|
+
}, [B, z, T, M]), /* @__PURE__ */ a(ft, { children: [
|
|
1591
|
+
/* @__PURE__ */ a("div", { ref: qt, className: `${N}-wrapper${Yt}`, children: [
|
|
1592
|
+
/* @__PURE__ */ r("style", { dangerouslySetInnerHTML: { __html: Zi(N) } }),
|
|
1593
|
+
q ? /* @__PURE__ */ r(
|
|
1562
1594
|
"button",
|
|
1563
1595
|
{
|
|
1564
1596
|
type: "button",
|
|
1565
|
-
className: `${N}-cover ${
|
|
1566
|
-
onClick: () =>
|
|
1597
|
+
className: `${N}-cover ${Tt(E) ? `${N}-ratio-wrapper-cover` : `${N}-ratio-wrapper-fit`}`,
|
|
1598
|
+
onClick: () => Qt(),
|
|
1567
1599
|
style: {
|
|
1568
1600
|
display: "block",
|
|
1569
1601
|
padding: 0,
|
|
1570
1602
|
border: "none",
|
|
1571
1603
|
background: "transparent",
|
|
1572
|
-
pointerEvents: W && !
|
|
1573
|
-
...
|
|
1604
|
+
pointerEvents: W && !w && !f ? "none" : void 0,
|
|
1605
|
+
...Tt(E) ? { "--image-aspect-ratio": ti(E) } : {}
|
|
1574
1606
|
},
|
|
1575
1607
|
"aria-label": "Open journal gallery",
|
|
1576
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ r(
|
|
1577
1609
|
"img",
|
|
1578
1610
|
{
|
|
1579
|
-
className: `${N}-cover-image ${
|
|
1611
|
+
className: `${N}-cover-image ${Tt(E) ? `${N}-cover-image-cover` : `${N}-cover-image-fit`}`,
|
|
1580
1612
|
src: q,
|
|
1581
1613
|
alt: "cover"
|
|
1582
1614
|
}
|
|
@@ -1584,30 +1616,30 @@ const ln = ({ settings: t, content: D, isEditor: W, isEditMode: v, isPreviewMode
|
|
|
1584
1616
|
}
|
|
1585
1617
|
) : null
|
|
1586
1618
|
] }),
|
|
1587
|
-
|
|
1588
|
-
const
|
|
1589
|
-
return
|
|
1590
|
-
/* @__PURE__ */
|
|
1591
|
-
|
|
1619
|
+
St && typeof document < "u" && (() => {
|
|
1620
|
+
const $ = (ot ? document.getElementById(ot) : null) ?? document.body;
|
|
1621
|
+
return Ki(
|
|
1622
|
+
/* @__PURE__ */ r(
|
|
1623
|
+
qi,
|
|
1592
1624
|
{
|
|
1593
1625
|
prefix: N,
|
|
1594
1626
|
entries: B,
|
|
1595
1627
|
settings: t,
|
|
1596
1628
|
isEditor: W,
|
|
1597
|
-
isEditMode:
|
|
1629
|
+
isEditMode: w,
|
|
1598
1630
|
isPreviewMode: f,
|
|
1599
|
-
initialSlideIndex:
|
|
1600
|
-
enableUrlSync:
|
|
1601
|
-
journalItemId:
|
|
1602
|
-
onBeforeClose:
|
|
1603
|
-
onClose:
|
|
1631
|
+
initialSlideIndex: D,
|
|
1632
|
+
enableUrlSync: T,
|
|
1633
|
+
journalItemId: z,
|
|
1634
|
+
onBeforeClose: Zt,
|
|
1635
|
+
onClose: It
|
|
1604
1636
|
}
|
|
1605
1637
|
),
|
|
1606
|
-
|
|
1638
|
+
$
|
|
1607
1639
|
);
|
|
1608
1640
|
})()
|
|
1609
1641
|
] });
|
|
1610
1642
|
};
|
|
1611
1643
|
export {
|
|
1612
|
-
|
|
1644
|
+
an as LightboxJournal
|
|
1613
1645
|
};
|