@cntrl-site/components 1.0.116 → 1.0.118-alpha.0

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.
Files changed (62) hide show
  1. package/dist/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
  2. package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
  3. package/dist/{ChroniclesComponent-0ZWBPdbh.mjs → ChroniclesComponent-DVoJ0kdT.mjs} +12 -12
  4. package/dist/{ChroniclesComponent-D4_6w8f7.js → ChroniclesComponent-Nm_yIRmr.js} +1 -1
  5. package/dist/Components/PopupMenu/PopupMenu.d.ts +73 -0
  6. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +594 -0
  7. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +203 -0
  8. package/dist/Components/PopupMenu/popupMenuSnap.d.ts +61 -0
  9. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
  10. package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
  11. package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
  12. package/dist/{FAQ-DLh63Utr.js → FAQ-7HEkaoU6.js} +1 -1
  13. package/dist/{FAQ-CJHCMSBa.mjs → FAQ-GmiwRdFq.mjs} +1 -1
  14. package/dist/{Grid-t07NDMzY.mjs → Grid-BuRdth9A.mjs} +201 -196
  15. package/dist/{Grid-OvzWvUW9.js → Grid-tqSSYh2-.js} +14 -9
  16. package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
  17. package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
  18. package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
  19. package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
  20. package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
  21. package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
  22. package/dist/{LightboxJournal-Bmw2zm4t.js → LightboxJournal-B-vul_be.js} +14 -8
  23. package/dist/{LightboxJournal-gePVKQJ4.mjs → LightboxJournal-DisD2DLv.mjs} +340 -334
  24. package/dist/{LightboxStrip-CTxRwLYk.js → LightboxStrip-YDyEPEb6.js} +14 -8
  25. package/dist/{LightboxStrip-BPQiQhd3.mjs → LightboxStrip-wCHUhAqN.mjs} +258 -252
  26. package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
  27. package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
  28. package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
  29. package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
  30. package/dist/PopupMenu-CYdDyzEt.mjs +1372 -0
  31. package/dist/PopupMenu-Di1fHgho.js +409 -0
  32. package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
  33. package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
  34. package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
  35. package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
  36. package/dist/SvgImage-CwRq9-ec.mjs +56 -0
  37. package/dist/SvgImage-_QN8ngad.js +1 -0
  38. package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
  39. package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
  40. package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
  41. package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
  42. package/dist/components-BYoTPJk3.js +1 -0
  43. package/dist/{components-BQjon_-7.mjs → components-eK82xypT.mjs} +653 -29
  44. package/dist/elements.js +1 -1
  45. package/dist/elements.mjs +23 -22
  46. package/dist/elements.node.js +1 -1
  47. package/dist/elements.node.mjs +1 -1
  48. package/dist/index.d.ts +3 -1
  49. package/dist/index.js +1 -1
  50. package/dist/index.mjs +63 -36
  51. package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
  52. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
  53. package/dist/sources.js +30 -16
  54. package/dist/sources.mjs +30 -16
  55. package/dist/types/Component.d.ts +7 -0
  56. package/dist/types/SchemaV1.d.ts +3 -0
  57. package/package.json +1 -1
  58. package/dist/SvgImage-B5mR9y6q.mjs +0 -51
  59. package/dist/SvgImage-DFlmxAoL.js +0 -1
  60. package/dist/components-B8MjlzLL.js +0 -1
  61. package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
  62. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +0 -20
@@ -1,12 +1,12 @@
1
- import { jsxs as a, jsx as l, 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 Xe } from "react";
3
- import { flushSync as Ki, createPortal as Oi } from "react-dom";
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
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";
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-CwRq9-ec.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
10
  const qi = ({
11
11
  prefix: t,
12
12
  entries: _,
@@ -16,282 +16,282 @@ const qi = ({
16
16
  isPreviewMode: ot,
17
17
  initialSlideIndex: Y = 0,
18
18
  enableUrlSync: N = !1,
19
- journalItemId: M = null,
20
- onBeforeClose: E,
21
- onClose: q
19
+ journalItemId: z = null,
20
+ onBeforeClose: q,
21
+ onClose: E
22
22
  }) => {
23
23
  const {
24
- type: z,
25
- coverFit: lt,
26
- backgroundColor: qt,
27
- imageGap: Zt,
28
- maxWidth: Qt,
24
+ type: M,
25
+ coverFit: rt,
26
+ backgroundColor: Yt,
27
+ imageGap: qt,
28
+ maxWidth: Et,
29
29
  maxHeight: K,
30
30
  textTransition: D,
31
- title1Width: rt,
31
+ title1Width: lt,
32
32
  title2Width: ut,
33
33
  title3Width: Z,
34
- title1MarginLeft: R = 0,
34
+ title1MarginLeft: k = 0,
35
35
  title2MarginLeft: B = 0,
36
36
  title3MarginLeft: St = 0,
37
37
  titleRowMarginBottom: T = 0,
38
- titleHeaderLayout: Pt = "single-row",
39
- countCloseGap: te = 0,
38
+ titleHeaderLayout: Zt = "single-row",
39
+ countCloseGap: Qt = 0,
40
40
  closeIcon: It,
41
- closeIconMaxWidth: y,
42
- closeIconColor: O,
41
+ closeIconMaxWidth: $,
42
+ closeIconColor: j,
43
43
  closeIconHoverColor: G,
44
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;
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 r = Array.from(i.children).reduce((n, o) => !(o instanceof HTMLElement) || o.contains(e) ? n : n + o.getBoundingClientRect().width, 0);
52
- return i.getBoundingClientRect().width - r;
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
53
  }, [t]), P = p(() => {
54
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();
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, 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,
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: di
72
+ isBlockedTarget: ci
73
73
  }), Ke = p((e) => {
74
- N && ei(e + 1, M, !0);
75
- }, [N, M]), de = 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
- if (i === $) return;
82
- const r = d[$], n = d[i];
81
+ if (i === y) return;
82
+ const l = d[y], n = d[i];
83
83
  Lt.current += 1;
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 ? (() => {
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
85
  const C = Be();
86
- Ki(() => {
86
+ Bi(() => {
87
87
  Ct(n.entry);
88
88
  }), U.current && C && (U.current.style.width = `${C}px`);
89
- const _t = de(U.current);
89
+ const _t = ae(U.current);
90
90
  return U.current && (U.current.style.width = ""), { measuredIncomingTitlesHeight: _t, incomingTitlesMeasureWidth: C };
91
91
  })() : void 0, I = Math.max(
92
92
  g ?? 0,
93
93
  (s == null ? void 0 : s.measuredIncomingTitlesHeight) ?? 0
94
94
  ) || void 0;
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
- Mt.current = null;
100
- }, []), pi = p((e) => {
101
- !J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0 || e.target.closest("[data-controls]") || (Mt.current = {
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
- }, [J, d.length]), xi = p((e) => {
106
+ }, [J, d.length]), pi = p((e) => {
107
107
  var C;
108
108
  if (!J || d.length <= 1 || e.pointerType === "mouse" && e.button !== 0) return;
109
- if (ce) {
109
+ if (se) {
110
110
  bt();
111
111
  return;
112
112
  }
113
- const i = Mt.current;
113
+ const i = zt.current;
114
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 >= Di && c > g) {
117
- ct(n > 0 ? $ - 1 : $ + 1);
116
+ if (c >= _i && c > g) {
117
+ ct(n > 0 ? y - 1 : y + 1);
118
118
  return;
119
119
  }
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
- const i = Mt.current;
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
125
  (i == null ? void 0 : i.pointerId) === e.pointerId && bt();
126
126
  }, [bt]);
127
- _i(), nt(() => {
128
- ze.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
127
+ Fi(), nt(() => {
128
+ Me.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
129
129
  const e = requestAnimationFrame(() => {
130
130
  Ne(!0), requestAnimationFrame(() => {
131
- ae.current ? ae.current.focus() : V.current && V.current.focus();
131
+ le.current ? le.current.focus() : X.current && X.current.focus();
132
132
  });
133
133
  });
134
134
  return () => {
135
- cancelAnimationFrame(e), re.current && clearTimeout(re.current), Q.current && clearTimeout(Q.current);
136
- const i = ze.current;
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
- 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(() => {
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
- yt();
145
+ $t();
146
146
  return;
147
147
  }
148
148
  if (i.key === "ArrowLeft" && d.length > 1) {
149
- ct($ - 1);
149
+ ct(y - 1);
150
150
  return;
151
151
  }
152
152
  if (i.key === "ArrowRight" && d.length > 1) {
153
- ct($ + 1);
153
+ ct(y + 1);
154
154
  return;
155
155
  }
156
- if (i.key === "Tab" && V.current) {
157
- const r = V.current.querySelectorAll(
156
+ if (i.key === "Tab" && X.current) {
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(r).filter(
159
+ ), n = Array.from(l).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 || !V.current.contains(g)) && (i.preventDefault(), c.focus()) : (g === c || !V.current.contains(g)) && (i.preventDefault(), o.focus());
164
+ i.shiftKey ? (g === o || !X.current.contains(g)) && (i.preventDefault(), c.focus()) : (g === c || !X.current.contains(g)) && (i.preventDefault(), o.focus());
165
165
  }
166
166
  };
167
167
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
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) => {
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
- }, [P, _.length, z, d.length]), Xe(() => {
174
- var r;
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
- He.current = i, Ht.current = ((r = d[i]) == null ? void 0 : r.entryIndex) ?? 0, ie(i);
176
+ He.current = i, Ht.current = ((l = d[i]) == null ? void 0 : l.entryIndex) ?? 0, te(i);
177
177
  }, [Y]);
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(
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: rt ?? Te.title1Width,
181
- title2Width: ut ?? Te.title2Width,
182
- title3Width: Z ?? Te.title3Width
180
+ title1Width: lt ?? $e.title1Width,
181
+ title2Width: ut ?? $e.title2Width,
182
+ title3Width: Z ?? $e.title3Width
183
183
  }),
184
- [rt, ut, Z]
185
- ), j = L(() => ({
184
+ [lt, ut, Z]
185
+ ), O = L(() => ({
186
186
  title2MarginLeft: B,
187
187
  title3MarginLeft: St
188
188
  }), [B, St]), v = L(
189
189
  () => h ? Jt(t, h, st, mt, gt) : [],
190
190
  [t, h, st, mt, gt]
191
191
  ), Kt = L(
192
- () => v.map((e) => k[e.widthKey]),
193
- [v, k]
192
+ () => v.map((e) => R[e.widthKey]),
193
+ [v, R]
194
194
  ), A = L(
195
- () => qe(v.length, Kt),
195
+ () => Ee(v.length, Kt),
196
196
  [v.length, Kt]
197
197
  ), Ae = L(
198
198
  () => Ze(v.length, Kt),
199
199
  [v.length, Kt]
200
- ), Ot = L(
200
+ ), jt = L(
201
201
  () => v.filter((e) => e.prefix === "title1"),
202
202
  [v]
203
203
  ), F = L(
204
204
  () => v.filter((e) => e.prefix === "title2" || e.prefix === "title3"),
205
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);
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: Ae[r] ?? 0,
217
- resolvedWidth: A[r] ?? 0,
218
- maxWidth: it(r, A)
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
- const o = Ot.findIndex((c) => c.prefix === e.prefix);
221
+ const o = jt.findIndex((c) => c.prefix === e.prefix);
222
222
  return {
223
- effectiveWidth: jt.effective[o] ?? 0,
224
- resolvedWidth: jt.resolved[o] ?? 0,
225
- maxWidth: it(o, jt.resolved)
223
+ effectiveWidth: Ot.effective[o] ?? 0,
224
+ resolvedWidth: Ot.resolved[o] ?? 0,
225
+ maxWidth: it(o, Ot.resolved)
226
226
  };
227
227
  }
228
228
  const n = F.findIndex((o) => o.prefix === e.prefix);
229
229
  return {
230
- effectiveWidth: X.effective[n] ?? 0,
231
- resolvedWidth: X.resolved[n] ?? 0,
232
- maxWidth: it(n, X.resolved)
230
+ effectiveWidth: V.effective[n] ?? 0,
231
+ resolvedWidth: V.resolved[n] ?? 0,
232
+ maxWidth: it(n, V.resolved)
233
233
  };
234
234
  }, [
235
235
  v,
236
236
  F,
237
- X,
237
+ V,
238
238
  Ae,
239
239
  A,
240
- Ot,
241
240
  jt,
241
+ Ot,
242
242
  x
243
- ]), Ti = p(
244
- (e) => Ji(
243
+ ]), bi = p(
244
+ (e) => Gi(
245
245
  v,
246
246
  A,
247
- j,
247
+ O,
248
248
  e
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(
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
255
  (e) => F.slice(0, e).reduce(
256
- (i, r, n) => i + (r.marginLeftKey ? j[r.marginLeftKey] ?? 0 : 0) + (X.resolved[n] ?? 0),
256
+ (i, l, n) => i + (l.marginLeftKey ? O[l.marginLeftKey] ?? 0 : 0) + (V.resolved[n] ?? 0),
257
257
  0
258
258
  ),
259
- [F, X.resolved, j]
260
- ), Ii = p(
259
+ [F, V.resolved, O]
260
+ ), Si = p(
261
261
  (e) => {
262
262
  const i = F[e];
263
- return ue(e) + (i.marginLeftKey ? j[i.marginLeftKey] ?? 0 : 0) + (X.resolved[e] ?? 0);
263
+ return he(e) + (i.marginLeftKey ? O[i.marginLeftKey] ?? 0 : 0) + (V.resolved[e] ?? 0);
264
264
  },
265
- [F, X.resolved, ue, j]
266
- ), me = p((e, i, r) => {
267
- if (!x || r === "single-row") {
268
- const s = e.findIndex((et) => et.prefix === i.prefix), I = e.map((et) => k[et.widthKey]), C = qe(e.length, I);
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
270
  effectiveWidth: Ze(e.length, I)[s] ?? 0,
271
271
  resolvedWidth: C[s] ?? 0,
272
272
  maxWidth: it(s, C)
273
273
  };
274
274
  }
275
- if (r === "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, k);
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
278
  effectiveWidth: _t[I] ?? 0,
279
279
  resolvedWidth: C[I] ?? 0,
280
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, k);
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
287
  maxWidth: it(o, c)
288
288
  };
289
- }, [k, x]), ge = (e, i, r) => {
290
- const n = e.marginLeftKey ? j[e.marginLeftKey] ?? 0 : 0, {
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
- } = r ?? fe(e, i), s = Math.max(n, Vt), I = f && i === "two-row-top";
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 qi = ({
302
302
  ...n > 0 ? { marginLeft: u(n) } : {}
303
303
  },
304
304
  children: [
305
- /* @__PURE__ */ l("p", { className: e.className, style: e.style, children: e.text }),
306
- I && e.marginLeftKey ? /* @__PURE__ */ l(
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 qi = ({
320
320
  }
321
321
  }
322
322
  ) : null,
323
- I ? /* @__PURE__ */ l(
323
+ I ? /* @__PURE__ */ r(
324
324
  "div",
325
325
  {
326
326
  "data-controls": e.widthKey,
@@ -342,26 +342,26 @@ const qi = ({
342
342
  },
343
343
  e.className
344
344
  );
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
- return /* @__PURE__ */ l(
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(r)
354
+ "data-controls-max-fraction": String(l)
355
355
  } : {},
356
356
  style: {
357
- width: u(R ?? 0),
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
- }, xe = () => /* @__PURE__ */ l(
364
+ }, ge = () => /* @__PURE__ */ r(
365
365
  "span",
366
366
  {
367
367
  className: `${t}-titles-baseline-strut`,
@@ -369,18 +369,18 @@ const qi = ({
369
369
  "aria-hidden": "true",
370
370
  children: " "
371
371
  }
372
- ), Fe = () => /* @__PURE__ */ l(
372
+ ), Fe = () => /* @__PURE__ */ r(
373
373
  "span",
374
374
  {
375
375
  className: `${t}-entry-counter`,
376
- style: si,
376
+ style: li,
377
377
  "aria-live": "polite",
378
378
  "aria-atomic": "true",
379
- children: Vi(d, $, z, _)
379
+ children: Ui(d, y, M, _)
380
380
  }
381
- ), Wi = () => tt ? f && dt ? /* @__PURE__ */ a("div", { className: `${t}-text-bar-cell`, style: { flexShrink: 0 }, children: [
381
+ ), Ii = () => tt ? f && dt ? /* @__PURE__ */ a("div", { className: `${t}-text-bar-cell`, style: { flexShrink: 0 }, children: [
382
382
  Fe(),
383
- /* @__PURE__ */ l(
383
+ /* @__PURE__ */ r(
384
384
  "div",
385
385
  {
386
386
  "data-controls": "countCloseGap",
@@ -389,25 +389,25 @@ const qi = ({
389
389
  style: {
390
390
  position: "absolute",
391
391
  top: 0,
392
- right: `calc(-0.5 * (${Se(Nt)} + ${Nt}))`,
393
- width: Se(Nt),
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
- ] }) : Fe() : null, ve = () => !tt && !dt ? null : /* @__PURE__ */ a(
400
+ ] }) : Fe() : null, pe = () => !tt && !dt ? null : /* @__PURE__ */ a(
401
401
  "div",
402
402
  {
403
403
  className: `${t}-titles-row-header-controls`,
404
- style: $i,
404
+ style: wi,
405
405
  children: [
406
- Wi(),
406
+ Ii(),
407
407
  dt ? ki() : null
408
408
  ]
409
409
  }
410
- ), Ni = () => /* @__PURE__ */ a(
410
+ ), Wi = () => /* @__PURE__ */ a(
411
411
  "div",
412
412
  {
413
413
  className: `${t}-titles-row ${t}-titles-row-header`,
@@ -416,29 +416,29 @@ const qi = ({
416
416
  position: "relative"
417
417
  },
418
418
  children: [
419
- tt || zt ? xe() : null,
420
- he ? pe("single-row") : null,
419
+ tt || Mt ? ge() : null,
420
+ ce ? me("single-row") : null,
421
421
  De(h),
422
- /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
423
- ve(),
424
- ye()
422
+ /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
423
+ pe(),
424
+ we()
425
425
  ]
426
426
  }
427
- ), Ri = () => /* @__PURE__ */ a(
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
- tt || zt ? xe() : null,
434
- he ? pe("single-row") : null,
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
439
  style: S && at ? { minHeight: at } : void 0,
440
440
  children: [
441
- /* @__PURE__ */ l(
441
+ /* @__PURE__ */ r(
442
442
  "div",
443
443
  {
444
444
  ref: U,
@@ -454,31 +454,31 @@ const qi = ({
454
454
  height: "auto"
455
455
  },
456
456
  "aria-hidden": "true",
457
- children: Ft(kt || h)
457
+ children: Ft(Rt || h)
458
458
  }
459
459
  ),
460
460
  /* @__PURE__ */ a(
461
461
  "div",
462
462
  {
463
- ref: se,
463
+ ref: re,
464
464
  className: Bt,
465
465
  style: {
466
466
  position: S ? "absolute" : "relative",
467
467
  inset: S ? 0 : void 0,
468
468
  width: "100%",
469
- ...S && Rt ? { width: Rt, maxWidth: "100%" } : void 0
469
+ ...S && kt ? { width: kt, maxWidth: "100%" } : void 0
470
470
  },
471
471
  children: [
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) })
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
- ve(),
481
- ye()
480
+ pe(),
481
+ we()
482
482
  ]
483
483
  }
484
484
  ), ki = () => /* @__PURE__ */ a(
@@ -486,32 +486,32 @@ const qi = ({
486
486
  {
487
487
  className: `${t}-close-icon`,
488
488
  style: {
489
- width: be(y ?? 0, w),
490
- height: be(y ?? 0, w),
489
+ width: ye($ ?? 0, w),
490
+ height: ye($ ?? 0, w),
491
491
  marginRight: Ie,
492
492
  "--close-icon-hover-color": G
493
493
  },
494
494
  children: [
495
- /* @__PURE__ */ l(
495
+ /* @__PURE__ */ r(
496
496
  "button",
497
497
  {
498
- ref: ae,
498
+ ref: le,
499
499
  type: "button",
500
500
  className: `${t}-close-icon-inner`,
501
- onClick: yt,
501
+ onClick: $t,
502
502
  "aria-label": "Close",
503
- children: /* @__PURE__ */ l(
504
- Fi,
503
+ children: /* @__PURE__ */ r(
504
+ Ai,
505
505
  {
506
506
  url: It ?? "",
507
- fill: O,
508
- hoverFill: w && !ot ? O : G,
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__ */ l(
514
+ f && /* @__PURE__ */ r(
515
515
  "div",
516
516
  {
517
517
  "data-controls": "iconMarginRight",
@@ -535,9 +535,9 @@ const qi = ({
535
535
  {
536
536
  className: `${t}-titles-row-top`,
537
537
  children: [
538
- tt || zt ? xe() : null,
539
- he ? pe("two-row") : null,
540
- i !== void 0 ? /* @__PURE__ */ l(
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 qi = ({
551
551
  }
552
552
  ) : /* @__PURE__ */ a(ft, { children: [
553
553
  e,
554
- /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
554
+ /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
555
555
  ] }),
556
- ve()
556
+ pe()
557
557
  ]
558
558
  }
559
559
  ), De = (e) => {
560
560
  if (!e) return null;
561
561
  const i = Jt(t, e, st, mt, gt);
562
- return /* @__PURE__ */ l(ft, { children: i.map((r) => ge(
563
- r,
562
+ return /* @__PURE__ */ r(ft, { children: i.map((l) => ue(
563
+ l,
564
564
  "single-row",
565
- me(i, r, "single-row")
565
+ fe(i, l, "single-row")
566
566
  )) });
567
- }, we = (e) => {
567
+ }, xe = (e) => {
568
568
  if (!e) return null;
569
- const i = Jt(t, e, st, mt, gt), r = i.find((n) => n.prefix === "title1");
570
- return r ? ge(
571
- r,
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
- me(i, r, "two-row-top")
573
+ fe(i, l, "two-row-top")
574
574
  ) : null;
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;
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
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) => ge(
579
+ n.map((g) => ue(
580
580
  g,
581
581
  "two-row-bottom",
582
- me(r, g, "two-row-bottom")
582
+ fe(l, g, "two-row-bottom")
583
583
  )),
584
584
  i && f ? /* @__PURE__ */ a(ft, { children: [
585
- Hi(),
586
- Mi()
585
+ Li(),
586
+ Hi()
587
587
  ] }) : null
588
588
  ] }) : null,
589
- (T ?? 0) > 0 || o ? /* @__PURE__ */ l(
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 qi = ({
594
594
  "data-controls-reverse": o ? "" : void 0,
595
595
  className: o ? `${t}-control` : void 0,
596
596
  style: {
597
- height: bi,
597
+ height: $i,
598
598
  width: "100%",
599
599
  flexShrink: 0,
600
600
  pointerEvents: o ? "auto" : "none"
@@ -603,12 +603,12 @@ const qi = ({
603
603
  ) : null
604
604
  ] }) : null;
605
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
- return /* @__PURE__ */ l(
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,15 +626,15 @@ const qi = ({
626
626
  },
627
627
  "title1MarginLeft"
628
628
  );
629
- })() : null, r = v.flatMap((n, o) => {
629
+ })() : null, l = v.flatMap((n, o) => {
630
630
  if (!n.marginLeftKey) return [];
631
- const c = j[n.marginLeftKey] ?? 0, g = Ui(
631
+ const c = O[n.marginLeftKey] ?? 0, g = Ji(
632
632
  v,
633
633
  A,
634
- j,
634
+ O,
635
635
  o
636
- ) + Si(), s = Math.max(c, Vt);
637
- return /* @__PURE__ */ l(
636
+ ) + Ti(), s = Math.max(c, Xt);
637
+ return /* @__PURE__ */ r(
638
638
  "div",
639
639
  {
640
640
  "data-controls": n.marginLeftKey,
@@ -653,15 +653,15 @@ const qi = ({
653
653
  n.marginLeftKey
654
654
  );
655
655
  });
656
- return i ? [i, ...r] : r;
657
- }, Li = () => v.map((e, i) => {
658
- const r = it(i, A), o = Ti(i) - ht / 2;
659
- return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
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(r),
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 qi = ({
674
674
  }
675
675
  }
676
676
  ) }, `${e.widthKey}-junction`);
677
- }), Hi = () => F.flatMap((e, i) => {
677
+ }), Li = () => F.flatMap((e, i) => {
678
678
  if (!e.marginLeftKey) return [];
679
- const r = j[e.marginLeftKey] ?? 0, n = ue(i), o = Math.max(r, Vt), { resolvedWidth: c } = fe(e, "two-row-bottom");
680
- return /* @__PURE__ */ l(
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 qi = ({
695
695
  },
696
696
  e.marginLeftKey
697
697
  );
698
- }), Mi = () => F.map((e, i) => {
699
- const { maxWidth: r } = fe(e, "two-row-bottom"), o = Ii(i) - ht / 2;
700
- return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
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(r),
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,36 +715,36 @@ const qi = ({
715
715
  }
716
716
  }
717
717
  ) }, `${e.widthKey}-junction`);
718
- }), ye = () => !f || x ? null : /* @__PURE__ */ a(ft, { children: [
719
- Ci(),
720
- Li()
718
+ }), we = () => !f || x ? null : /* @__PURE__ */ a(ft, { children: [
719
+ Ri(),
720
+ Ci()
721
721
  ] }), Ge = (e) => {
722
- const i = !e.objectFit && Tt(lt);
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: oi,
727
- maxHeight: li,
728
- ...i ? { "--image-aspect-ratio": ti(lt) } : {}
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
- } : Tt(lt) ? { className: `${t}-slide-image ${t}-slide-image-cover` } : { className: `${t}-slide-image ${t}-slide-image-fit` }, Ue = (e) => {
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, r = Se(ee), n = `calc(-0.5 * (${r} + ${ee}))`;
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__ */ l("div", { ...Ge(o), children: /* @__PURE__ */ l("img", { ...Je(o), src: o.assetId, alt: o.name ?? "", draggable: !1 }) });
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__ */ l(
741
+ return /* @__PURE__ */ r(
742
742
  "div",
743
743
  {
744
744
  className: `${t}-slide-inner`,
745
- style: i ? { gap: ee } : void 0,
745
+ style: i ? { gap: Pt } : void 0,
746
746
  children: e.map((o, c) => /* @__PURE__ */ a("div", { ...Ge(o), children: [
747
- /* @__PURE__ */ l(
747
+ /* @__PURE__ */ r(
748
748
  "img",
749
749
  {
750
750
  ...Je(o),
@@ -753,7 +753,7 @@ const qi = ({
753
753
  draggable: !1
754
754
  }
755
755
  ),
756
- f && i && c < e.length - 1 && /* @__PURE__ */ l(
756
+ f && i && c < e.length - 1 && /* @__PURE__ */ r(
757
757
  "div",
758
758
  {
759
759
  "data-controls": "imageGap",
@@ -762,7 +762,7 @@ const qi = ({
762
762
  position: "absolute",
763
763
  top: 0,
764
764
  right: n,
765
- width: r,
765
+ width: l,
766
766
  height: "100%",
767
767
  pointerEvents: "auto",
768
768
  zIndex: 3
@@ -772,7 +772,7 @@ const qi = ({
772
772
  ] }, `${o.assetId}-${c}`))
773
773
  }
774
774
  );
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(
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,7 +786,7 @@ const qi = ({
786
786
  height: "100%"
787
787
  },
788
788
  children: [
789
- /* @__PURE__ */ l(
789
+ /* @__PURE__ */ r(
790
790
  "div",
791
791
  {
792
792
  ref: U,
@@ -802,17 +802,17 @@ const qi = ({
802
802
  height: "auto"
803
803
  },
804
804
  "aria-hidden": "true",
805
- children: At(kt || h)
805
+ children: At(Rt || h)
806
806
  }
807
807
  ),
808
808
  /* @__PURE__ */ a(
809
809
  "div",
810
810
  {
811
- ref: se,
811
+ ref: re,
812
812
  className: `${t}-titles-row-two-row`,
813
813
  style: {
814
814
  ...S && at ? { minHeight: at } : void 0,
815
- ...S && Rt ? { width: Rt, maxWidth: "100%" } : void 0
815
+ ...S && kt ? { width: kt, maxWidth: "100%" } : void 0
816
816
  },
817
817
  children: [
818
818
  _e(
@@ -826,12 +826,12 @@ const qi = ({
826
826
  width: "100%"
827
827
  },
828
828
  children: [
829
- m && S ? /* @__PURE__ */ l("div", { className: `${yi} ${t}-titles-fade-out`, children: we(m) }) : null,
830
- /* @__PURE__ */ l(
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
833
  className: `${t}-titles-layer-in${S ? ` ${t}-titles-layer-in-fading ${t}-titles-fade-in` : ""}`,
834
- children: we(h)
834
+ children: xe(h)
835
835
  }
836
836
  )
837
837
  ]
@@ -839,13 +839,13 @@ const qi = ({
839
839
  ),
840
840
  S && at ? at : void 0
841
841
  ),
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
- /* @__PURE__ */ l(
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
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)
848
+ children: ve(h, !0)
849
849
  }
850
850
  )
851
851
  ] }) : null
@@ -854,8 +854,8 @@ const qi = ({
854
854
  )
855
855
  ]
856
856
  }
857
- ), Bi = () => {
858
- const e = Ve;
857
+ ), Mi = () => {
858
+ const e = Xe;
859
859
  return /* @__PURE__ */ a(
860
860
  "div",
861
861
  {
@@ -869,7 +869,7 @@ const qi = ({
869
869
  ...e ? { flex: 1, height: "100%" } : {}
870
870
  },
871
871
  children: [
872
- /* @__PURE__ */ l(
872
+ /* @__PURE__ */ r(
873
873
  "div",
874
874
  {
875
875
  className: `${t}-titles-row-two-row`,
@@ -877,7 +877,7 @@ const qi = ({
877
877
  children: At(h, !0)
878
878
  }
879
879
  ),
880
- ye()
880
+ we()
881
881
  ]
882
882
  }
883
883
  );
@@ -885,11 +885,11 @@ const qi = ({
885
885
  return /* @__PURE__ */ a(
886
886
  "div",
887
887
  {
888
- ref: V,
888
+ ref: X,
889
889
  "data-selection": "none",
890
890
  className: `${t}-lightbox${w ? ` ${t}-lightbox-editor` : ""}${f ? ` ${t}-lightbox-edit-mode` : ""}`,
891
891
  onClick: () => {
892
- ce || yt();
892
+ se || $t();
893
893
  },
894
894
  role: "dialog",
895
895
  "aria-modal": "true",
@@ -901,55 +901,55 @@ const qi = ({
901
901
  pointerEvents: We ? "auto" : "none"
902
902
  },
903
903
  children: [
904
- /* @__PURE__ */ l("div", { className: `${t}-lightbox-backdrop`, style: { backgroundColor: qt, ...hi } }),
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: gi,
910
- ...mi,
909
+ style: mi,
910
+ ...ui,
911
911
  children: [
912
- /* @__PURE__ */ l(
912
+ /* @__PURE__ */ r(
913
913
  "div",
914
914
  {
915
915
  className: `${t}-lightbox-content`,
916
- style: fi,
916
+ style: hi,
917
917
  onClick: (e) => e.stopPropagation(),
918
- children: /* @__PURE__ */ l(
918
+ children: /* @__PURE__ */ r(
919
919
  "div",
920
920
  {
921
921
  className: `${t}-lightbox-strip`,
922
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,
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
- Oe && Ce ? /* @__PURE__ */ l(
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 && ci(le);
932
+ e.target === e.currentTarget && ai(ne);
933
933
  },
934
- children: /* @__PURE__ */ l("div", { className: `${t}-slide-area`, children: Ue(Oe.images) })
934
+ children: /* @__PURE__ */ r("div", { className: `${t}-slide-area`, children: Ue(je.images) })
935
935
  },
936
- `slide-out-${le}`
936
+ `slide-out-${ne}`
937
937
  ) : null,
938
- /* @__PURE__ */ l(
938
+ /* @__PURE__ */ r(
939
939
  "div",
940
940
  {
941
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 })
942
+ children: /* @__PURE__ */ r("div", { className: `${t}-slide-area`, children: pt ? Ue(pt.images) : null })
943
943
  },
944
- `slide-in-${le}-${$}`
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: ui, children: [
952
- /* @__PURE__ */ l(
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,
@@ -957,17 +957,17 @@ const qi = ({
957
957
  style: { height: ri, width: "100%" }
958
958
  }
959
959
  ),
960
- /* @__PURE__ */ l("div", { style: {
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__ */ l("div", { className: `${t}-lightbox-content-area${x ? ` ${t}-lightbox-content-area-stacked` : ""}`, children: wi && /* @__PURE__ */ l(
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 ? D === "fade" ? zi() : Bi() : D === "fade" ? Ri() : Ni()
970
+ children: x ? D === "fade" ? zi() : Mi() : D === "fade" ? Ni() : Wi()
971
971
  }
972
972
  ) }) })
973
973
  ] })
@@ -977,8 +977,8 @@ const qi = ({
977
977
  ]
978
978
  }
979
979
  );
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) {
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,23 +1024,29 @@ function Qi(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
+
1027
1033
  .${t}-hover-zoom-in .${t}-cover-image {
1028
- clip-path: inset(0);
1029
- transition: transform ${Xt}ms ${Yt}, clip-path ${Xt}ms ${Yt};
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};
1030
1037
  }
1031
1038
 
1032
1039
  .${t}-hover-scale-down .${t}-cover-image {
1033
- transition: transform ${Xt}ms ${Yt};
1040
+ transition: transform ${Te}ms ${Se};
1034
1041
  }
1035
1042
 
1036
1043
  .${t}-hover-greyscale .${t}-cover-image {
1037
- transition: filter ${Xt}ms ${Yt};
1044
+ transition: filter ${Te}ms ${Se};
1038
1045
  }
1039
1046
 
1040
1047
  @media (hover: hover) {
1041
1048
  .${t}-hover-zoom-in .${t}-cover:hover .${t}-cover-image {
1042
- transform: scale(${ii});
1043
- clip-path: inset(${Zi});
1049
+ --${t}-hover-zoom: ${Ei};
1044
1050
  }
1045
1051
  .${t}-hover-scale-down .${t}-cover:hover .${t}-cover-image {
1046
1052
  transform: scale(0.9);
@@ -1529,81 +1535,81 @@ function Qi(t) {
1529
1535
  }
1530
1536
  `;
1531
1537
  }
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),
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),
1535
1541
  [_]
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) => {
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) => {
1539
1545
  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;
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;
1544
1550
  }
1545
1551
  K(!0);
1546
1552
  }, It = p(() => {
1547
- K(!1), R.current = !1;
1553
+ K(!1), k.current = !1;
1548
1554
  }, []);
1549
1555
  return nt(() => {
1550
1556
  !W || w || f || K(!1);
1551
1557
  }, [W, w, f]), nt(() => {
1552
1558
  if (!T || typeof window > "u") return;
1553
- const y = window.history.scrollRestoration;
1559
+ const $ = window.history.scrollRestoration;
1554
1560
  return window.history.scrollRestoration = "manual", () => {
1555
- window.history.scrollRestoration = y;
1561
+ window.history.scrollRestoration = $;
1556
1562
  };
1557
1563
  }, [T]), nt(() => {
1558
1564
  if (!T || ut.current) return;
1559
1565
  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(() => {
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(() => {
1565
1571
  if (!T) return;
1566
- const y = () => {
1567
- if (R.current) {
1568
- R.current = !1, K(!1);
1572
+ const $ = () => {
1573
+ if (k.current) {
1574
+ k.current = !1, K(!1);
1569
1575
  return;
1570
1576
  }
1571
- const O = Qe(M);
1572
- if (!O) {
1577
+ const j = Qe(z);
1578
+ if (!j) {
1573
1579
  K(!1);
1574
1580
  return;
1575
1581
  }
1576
- const G = Pe(O, Et(B, z).length);
1582
+ const G = Pe(j, Vt(B, M).length);
1577
1583
  if (G < 0) {
1578
1584
  K(!1);
1579
1585
  return;
1580
1586
  }
1581
- Z.current = !1, rt(G), K(!0);
1587
+ Z.current = !1, lt(G), K(!0);
1582
1588
  };
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(
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(
1588
1594
  "button",
1589
1595
  {
1590
1596
  type: "button",
1591
- className: `${N}-cover ${Tt(q) ? `${N}-ratio-wrapper-cover` : `${N}-ratio-wrapper-fit`}`,
1592
- onClick: () => te(),
1597
+ className: `${N}-cover ${Tt(E) ? `${N}-ratio-wrapper-cover` : `${N}-ratio-wrapper-fit`}`,
1598
+ onClick: () => Qt(),
1593
1599
  style: {
1594
1600
  display: "block",
1595
1601
  padding: 0,
1596
1602
  border: "none",
1597
1603
  background: "transparent",
1598
1604
  pointerEvents: W && !w && !f ? "none" : void 0,
1599
- ...Tt(q) ? { "--image-aspect-ratio": ti(q) } : {}
1605
+ ...Tt(E) ? { "--image-aspect-ratio": ti(E) } : {}
1600
1606
  },
1601
1607
  "aria-label": "Open journal gallery",
1602
- children: /* @__PURE__ */ l(
1608
+ children: /* @__PURE__ */ r(
1603
1609
  "img",
1604
1610
  {
1605
- className: `${N}-cover-image ${Tt(q) ? `${N}-cover-image-cover` : `${N}-cover-image-fit`}`,
1606
- src: E,
1611
+ className: `${N}-cover-image ${Tt(E) ? `${N}-cover-image-cover` : `${N}-cover-image-fit`}`,
1612
+ src: q,
1607
1613
  alt: "cover"
1608
1614
  }
1609
1615
  )
@@ -1611,9 +1617,9 @@ const cn = ({ settings: t, content: _, isEditor: W, isEditMode: w, isPreviewMode
1611
1617
  ) : null
1612
1618
  ] }),
1613
1619
  St && typeof document < "u" && (() => {
1614
- const y = (ot ? document.getElementById(ot) : null) ?? document.body;
1615
- return Oi(
1616
- /* @__PURE__ */ l(
1620
+ const $ = (ot ? document.getElementById(ot) : null) ?? document.body;
1621
+ return Ki(
1622
+ /* @__PURE__ */ r(
1617
1623
  qi,
1618
1624
  {
1619
1625
  prefix: N,
@@ -1624,16 +1630,16 @@ const cn = ({ settings: t, content: _, isEditor: W, isEditMode: w, isPreviewMode
1624
1630
  isPreviewMode: f,
1625
1631
  initialSlideIndex: D,
1626
1632
  enableUrlSync: T,
1627
- journalItemId: M,
1628
- onBeforeClose: Pt,
1633
+ journalItemId: z,
1634
+ onBeforeClose: Zt,
1629
1635
  onClose: It
1630
1636
  }
1631
1637
  ),
1632
- y
1638
+ $
1633
1639
  );
1634
1640
  })()
1635
1641
  ] });
1636
1642
  };
1637
1643
  export {
1638
- cn as LightboxJournal
1644
+ an as LightboxJournal
1639
1645
  };