@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,40 +1,40 @@
1
1
  import { jsxs as y, Fragment as q, jsx as n } from "react/jsx-runtime";
2
- import { S as ui, a as hi } from "./react-splide.esm-DQqds4PL.mjs";
2
+ import { S as mi, a as ui } from "./react-splide.esm-DQqds4PL.mjs";
3
3
  /* empty css */
4
4
  import { s as p } from "./scalingValue-C9JH5L6O.mjs";
5
- import { b as gi } from "./buildColorVars-CLyWQm5K.mjs";
6
- import { u as pi } from "./useScopedStyles-DhBG3557.mjs";
7
- import { u as Zt } from "./useLazyVideos-CxXyEjRQ.mjs";
5
+ import { b as hi } from "./buildColorVars-CLyWQm5K.mjs";
6
+ import { u as gi } from "./useScopedStyles-DhBG3557.mjs";
7
+ import { u as Yt } from "./useLazyVideos-CxXyEjRQ.mjs";
8
8
  import { L as ht } from "./LinkWrapper-5kQHiGJQ.mjs";
9
- import { i as We, g as Jt, E as Qt, a as fi } from "./EmbedMediaFrame-DwHeOAy5.mjs";
10
- import { useMemo as qt, useState as I, useRef as $, useEffect as j, useCallback as oe, useLayoutEffect as Xt } from "react";
11
- import { createPortal as $i } from "react-dom";
12
- import { o as _t, t as Nt } from "./textStylesToCss-05Mn6I_2.mjs";
13
- import { S as yi } from "./SvgImage-B5mR9y6q.mjs";
14
- import { L as Pt } from "./LazyVideo-CdAWymKO.mjs";
15
- function vi(e) {
9
+ import { i as Me, g as Kt, E as Zt, a as pi } from "./EmbedMediaFrame-DwHeOAy5.mjs";
10
+ import { useMemo as Gt, useState as I, useRef as $, useEffect as j, useCallback as oe, useLayoutEffect as Et } from "react";
11
+ import { createPortal as fi } from "react-dom";
12
+ import { o as Tt, t as Lt } from "./textStylesToCss-05Mn6I_2.mjs";
13
+ import { S as $i } from "./SvgImage-CwRq9-ec.mjs";
14
+ import { L as Jt } from "./LazyVideo-CdAWymKO.mjs";
15
+ function yi(e) {
16
16
  return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
17
17
  }
18
- function Ut(e) {
18
+ function qt(e) {
19
19
  return ((e == null ? void 0 : e.trim().length) ?? 0) > 0;
20
20
  }
21
- function zt(e, t, i, s) {
21
+ function _t(e, t, i, s) {
22
22
  return t !== void 0 && t < (e ?? 0.01) ? `${i} ${s}` : i;
23
23
  }
24
- function At(e, t, i, s) {
24
+ function Nt(e, t, i, s) {
25
25
  const o = e ?? 0.01;
26
26
  return t === void 0 || t >= o ? {} : {
27
27
  [`--${i}-title-leading-gap`]: p((o - t) / 2, s)
28
28
  };
29
29
  }
30
- const gt = 400, pt = "cubic-bezier(0.25, 0.1, 0.25, 1)", Ot = 1.1, wi = `${((1 - 1 / Ot) / 2 * 100).toFixed(4)}%`, Ft = "--grid-media-radius";
31
- function xi(e) {
30
+ const zt = 400, At = "cubic-bezier(0.25, 0.1, 0.25, 1)", vi = 1.1, Qt = "--grid-media-radius";
31
+ function wi(e) {
32
32
  return `
33
33
  .${e}-wrapper {
34
34
  display: grid;
35
35
  align-items: start;
36
36
  justify-content: center;
37
- min-height: ${vi(48)};
37
+ min-height: ${yi(48)};
38
38
  }
39
39
  .${e}-item {
40
40
  display: flex;
@@ -171,22 +171,27 @@ function xi(e) {
171
171
  .${e}-show-text-hover .${e}-item-inner-hidden:hover .${e}-item-subtitle {
172
172
  opacity: 1;
173
173
  }
174
+ @property --${e}-hover-zoom {
175
+ syntax: '<number>';
176
+ inherits: false;
177
+ initial-value: 1;
178
+ }
174
179
  .${e}-hover-zoom-in .${e}-item-image,
175
180
  .${e}-hover-zoom-in .${e}-item-video {
176
- clip-path: inset(0 round var(${Ft}, 0px));
177
- transition: transform ${gt}ms ${pt}, clip-path ${gt}ms ${pt};
181
+ transform: scale(var(--${e}-hover-zoom));
182
+ clip-path: inset(calc(50% - 50% / var(--${e}-hover-zoom)) round calc(var(${Qt}, 0px) / var(--${e}-hover-zoom)));
183
+ transition: --${e}-hover-zoom ${zt}ms ${At};
178
184
  }
179
185
  .${e}-hover-scale-down .${e}-item-image,
180
186
  .${e}-hover-scale-down .${e}-item-video {
181
- transition: transform ${gt}ms ${pt};
187
+ transition: transform ${zt}ms ${At};
182
188
  }
183
189
  .${e}-hover-greyscale .${e}-item-image-wrapper {
184
- transition: filter ${gt}ms ${pt};
190
+ transition: filter ${zt}ms ${At};
185
191
  }
186
192
  @media (hover: hover) {
187
193
  .${e}-hover-zoom-in .${e}-item-image-wrapper:has(.${e}-item-image:hover, .${e}-item-video:hover) :is(.${e}-item-image, .${e}-item-video) {
188
- transform: scale(${Ot});
189
- clip-path: inset(${wi} round calc(var(${Ft}, 0px) / ${Ot}));
194
+ --${e}-hover-zoom: ${vi};
190
195
  }
191
196
  .${e}-hover-scale-down .${e}-item-image-wrapper:hover .${e}-item-image,
192
197
  .${e}-hover-scale-down .${e}-item-image-wrapper:hover .${e}-item-video {
@@ -433,40 +438,40 @@ function xi(e) {
433
438
  }
434
439
  `;
435
440
  }
436
- function bi() {
441
+ function xi() {
437
442
  return Math.random() < 0.5 ? "ltr" : "ttb";
438
443
  }
439
- function Si(e) {
444
+ function bi(e) {
440
445
  const t = e.Components.Autoplay;
441
446
  t && (t.pause(!1), t.play());
442
447
  }
443
- function Ii(e) {
444
- const t = bi();
448
+ function Si(e) {
449
+ const t = xi();
445
450
  e.options.direction !== t && (e.options = { ...e.options, direction: t }), requestAnimationFrame(() => {
446
451
  requestAnimationFrame(() => {
447
- Si(e);
452
+ bi(e);
448
453
  });
449
454
  });
450
455
  }
451
- const G = 500, Ci = 750, me = "cubic-bezier(0.22, 1, 0.36, 1)", ki = 72, Ti = 50;
452
- function Li(e) {
456
+ const E = 500, Ii = 750, me = "cubic-bezier(0.22, 1, 0.36, 1)", Ci = 72, ki = 50;
457
+ function Ti(e) {
453
458
  if (!Array.isArray(e) || e.length === 0) return !1;
454
459
  const t = e[0];
455
460
  return t !== null && typeof t == "object" && "media" in t && Array.isArray(t.media);
456
461
  }
457
- function _i(e) {
462
+ function Li(e) {
458
463
  const [t, i] = e.media;
459
464
  return i != null && i.assetId ? i : t != null && t.assetId ? t : null;
460
465
  }
461
- function Ni(e) {
466
+ function _i(e) {
462
467
  const [t] = e.media;
463
468
  return t != null && t.assetId ? t : null;
464
469
  }
465
- function ei(e) {
466
- return !Array.isArray(e) || e.length === 0 ? [] : Li(e) ? e.flatMap((t) => {
467
- const i = _i(t);
470
+ function Pt(e) {
471
+ return !Array.isArray(e) || e.length === 0 ? [] : Ti(e) ? e.flatMap((t) => {
472
+ const i = Li(t);
468
473
  if (!i) return [];
469
- const s = Ni(t);
474
+ const s = _i(t);
470
475
  return [{
471
476
  displayMedia: i,
472
477
  lightboxMedia: s != null && s.assetId ? s : null
@@ -477,12 +482,12 @@ function ei(e) {
477
482
  }));
478
483
  }
479
484
  function Se(e) {
480
- return !We(e) && e.type === "video";
485
+ return !Me(e) && e.type === "video";
481
486
  }
482
- function zi(e) {
487
+ function Ni(e) {
483
488
  const t = /* @__PURE__ */ new Set(), i = [];
484
489
  for (const s of e) {
485
- const o = ei(s.gallery);
490
+ const o = Pt(s.gallery);
486
491
  for (const w of o) {
487
492
  const v = w.lightboxMedia;
488
493
  v != null && v.assetId && !t.has(v.assetId) && (t.add(v.assetId), i.push(v));
@@ -490,10 +495,10 @@ function zi(e) {
490
495
  }
491
496
  return i;
492
497
  }
493
- function Ai({ mediaList: e }) {
498
+ function zi({ mediaList: e }) {
494
499
  const [t, i] = I(null);
495
- Zt(t, { preload: "metadata" });
496
- const s = e.filter((o) => !We(o));
500
+ Yt(t, { preload: "metadata" });
501
+ const s = e.filter((o) => !Me(o));
497
502
  return s.length === 0 ? null : /* @__PURE__ */ n(
498
503
  "div",
499
504
  {
@@ -527,11 +532,11 @@ function Ai({ mediaList: e }) {
527
532
  }
528
533
  );
529
534
  }
530
- function Oi(e) {
535
+ function Ai(e) {
531
536
  e.pause(), e.removeAttribute("src"), e.load();
532
537
  }
533
- const Fi = ".splide__slide video";
534
- function Mi(e) {
538
+ const Oi = ".splide__slide video";
539
+ function Fi(e) {
535
540
  var o;
536
541
  if (e.closest(".splide--fade, .splide__slide.is-active:not(.splide__slide--clone), .splide__slide.is-next")) return !0;
537
542
  const t = e.closest(".splide__slide");
@@ -539,7 +544,7 @@ function Mi(e) {
539
544
  const i = t.dataset.slideIndex, s = (o = t.parentElement) == null ? void 0 : o.querySelector(".splide__slide.is-next");
540
545
  return i !== void 0 && (s == null ? void 0 : s.dataset.slideIndex) === i;
541
546
  }
542
- function Yt({
547
+ function Xt({
543
548
  media: e,
544
549
  className: t,
545
550
  style: i,
@@ -547,9 +552,9 @@ function Yt({
547
552
  isSplideSlide: o = !1,
548
553
  onMediaClick: w
549
554
  }) {
550
- if (We(e))
555
+ if (Me(e))
551
556
  return /* @__PURE__ */ n(
552
- Qt,
557
+ Zt,
553
558
  {
554
559
  media: e,
555
560
  fit: i.objectFit === "contain" ? "contain" : "cover",
@@ -575,7 +580,7 @@ function Yt({
575
580
  playsInline: !0,
576
581
  onClick: w
577
582
  };
578
- return o ? /* @__PURE__ */ n("video", { ...v, preload: "none" }) : /* @__PURE__ */ n(Pt, { ...v, autoPlay: !0 });
583
+ return o ? /* @__PURE__ */ n("video", { ...v, preload: "none" }) : /* @__PURE__ */ n(Jt, { ...v, autoPlay: !0 });
579
584
  }
580
585
  return /* @__PURE__ */ n(
581
586
  "img",
@@ -597,13 +602,13 @@ function Wi({
597
602
  children: i
598
603
  }) {
599
604
  const [s, o] = I(null);
600
- return Zt(s, { autoPlay: !0, selector: Fi, shouldPlay: Mi }), /* @__PURE__ */ n("div", { ref: o, className: e, style: t, children: i });
605
+ return Yt(s, { autoPlay: !0, selector: Oi, shouldPlay: Fi }), /* @__PURE__ */ n("div", { ref: o, className: e, style: t, children: i });
601
606
  }
602
- function Kt(e) {
607
+ function Ut(e) {
603
608
  const t = e.getBoundingClientRect();
604
609
  return { width: t.width, height: t.height, left: t.left, top: t.top };
605
610
  }
606
- function Ri(e, t) {
611
+ function Mi(e, t) {
607
612
  if (!t || !t.width || !t.height || !e.width || !e.height) return e;
608
613
  const i = t.width / t.height, s = e.width / e.height;
609
614
  if (i > s) {
@@ -613,7 +618,7 @@ function Ri(e, t) {
613
618
  const o = e.height * i;
614
619
  return { width: o, height: e.height, left: e.left + (e.width - o) / 2, top: e.top };
615
620
  }
616
- function Di({
621
+ function Ri({
617
622
  src: e,
618
623
  mediaRef: t,
619
624
  mediaStyle: i,
@@ -623,7 +628,7 @@ function Di({
623
628
  const o = t.current;
624
629
  if (o)
625
630
  return () => {
626
- Oi(o);
631
+ Ai(o);
627
632
  };
628
633
  }, [e, t]), /* @__PURE__ */ n(
629
634
  "video",
@@ -640,10 +645,10 @@ function Di({
640
645
  }
641
646
  );
642
647
  }
643
- const ji = "https://cdn.cntrl.site/component-assets/defaultCloseIcon.svg", Hi = 4e-3;
644
- function Vi({
648
+ const Di = "https://cdn.cntrl.site/component-assets/defaultCloseIcon.svg", ji = 4e-3;
649
+ function Hi({
645
650
  prefix: e,
646
- closeIcon: t = ji,
651
+ closeIcon: t = Di,
647
652
  closeIconMaxWidth: i = 0.0125,
648
653
  closeIconColor: s = "#FFFFFF",
649
654
  closeIconHoverColor: o = "#999999",
@@ -656,7 +661,7 @@ function Vi({
656
661
  onClose: P
657
662
  }) {
658
663
  if (!t) return null;
659
- const ee = p(i, X), he = p(w, X), Ie = p(v, X), C = p(Math.max(v, Hi), X);
664
+ const ee = p(i, X), he = p(w, X), Ie = p(v, X), C = p(Math.max(v, ji), X);
660
665
  return /* @__PURE__ */ y(
661
666
  "div",
662
667
  {
@@ -724,7 +729,7 @@ function Vi({
724
729
  k.stopPropagation(), P();
725
730
  },
726
731
  children: /* @__PURE__ */ n(
727
- yi,
732
+ $i,
728
733
  {
729
734
  url: t,
730
735
  fill: s,
@@ -758,7 +763,7 @@ function Vi({
758
763
  }
759
764
  );
760
765
  }
761
- function Bi({
766
+ function Vi({
762
767
  prefix: e,
763
768
  items: t,
764
769
  index: i,
@@ -779,7 +784,7 @@ function Bi({
779
784
  contentMarginTop: Ze
780
785
  }) {
781
786
  const Ce = s === "cover", Re = $(null), ge = $(null), pe = $(null), z = $(null), U = $(0), A = $(0), O = $("none"), Y = $(!1), te = $(!1), Je = $(null), _ = $(0), H = $(null), F = $(!1), le = $(null), K = $(null), De = $(null), Qe = $(() => {
782
- }), [m, je] = I(null), [a, ft] = I(null), [b, ke] = I("opening"), [ie, V] = I(0), [fe, B] = I(0), [He, se] = I(null), [Ve, $e] = I(!1), [Te, ye] = I(!1), [$t, Pe] = I(!1), [yt, et] = I(null), Be = $(i), tt = $(void 0), c = t[i], vt = c ? Se(c) : !1, it = c ? We(c) : !1, Le = He !== null, nt = oe((l) => {
787
+ }), [m, je] = I(null), [a, gt] = I(null), [b, ke] = I("opening"), [ie, V] = I(0), [fe, B] = I(0), [He, se] = I(null), [Ve, $e] = I(!1), [Te, ye] = I(!1), [pt, Pe] = I(!1), [ft, et] = I(null), Be = $(i), tt = $(void 0), c = t[i], $t = c ? Se(c) : !1, it = c ? Me(c) : !1, Le = He !== null, nt = oe((l) => {
783
788
  const d = l.currentTarget, L = d instanceof HTMLVideoElement ? { width: d.videoWidth, height: d.videoHeight } : { width: d.naturalWidth, height: d.naturalHeight };
784
789
  !L.width || !L.height || et(L);
785
790
  }, []);
@@ -788,7 +793,7 @@ function Bi({
788
793
  }, [a]), j(() => {
789
794
  const l = Re.current;
790
795
  if (!l) return;
791
- const d = () => ft(Kt(l));
796
+ const d = () => gt(Ut(l));
792
797
  d();
793
798
  const L = new ResizeObserver(d);
794
799
  return L.observe(l), () => L.disconnect();
@@ -800,23 +805,23 @@ function Bi({
800
805
  K.current = null, T(), H.current = null, F.current = !1, se(null), $e(!1), B(0), _.current = 0, ye(!1), Y.current = !1, A.current = 0, O.current = "none", l === 1 ? r() : l === -1 && ue();
801
806
  }, [T, r, ue]), _e = oe(() => {
802
807
  T(), K.current = null, H.current = null, F.current = !1, se(null), $e(!1), B(0), _.current = 0;
803
- }, [T]), wt = oe(() => {
808
+ }, [T]), yt = oe(() => {
804
809
  T(), le.current = window.setTimeout(() => {
805
810
  K.current !== null && Z();
806
- }, G + 32);
811
+ }, E + 32);
807
812
  }, [T, Z]), ve = oe((l, d) => {
808
813
  var ne;
809
814
  const L = ((ne = Je.current) == null ? void 0 : ne.width) ?? 0;
810
815
  if (T(), H.current = l, se(l), F.current = !0, $e(!0), d) {
811
816
  K.current = l;
812
817
  const ce = -l * L;
813
- _.current = ce, B(ce), wt();
818
+ _.current = ce, B(ce), yt();
814
819
  return;
815
820
  }
816
821
  _.current = 0, B(0), le.current = window.setTimeout(() => {
817
822
  le.current = null, _e();
818
- }, G + 32);
819
- }, [T, _e, wt]), we = oe((l) => {
823
+ }, E + 32);
824
+ }, [T, _e, yt]), we = oe((l) => {
820
825
  if (!(t.length <= 1)) {
821
826
  if (F.current) {
822
827
  if (K.current === l) {
@@ -838,7 +843,7 @@ function Bi({
838
843
  }, [Z]), xe = oe(() => {
839
844
  const l = ge.current;
840
845
  if (!l) return;
841
- const d = Kt(l);
846
+ const d = Ut(l);
842
847
  !d.width || !d.height || je(d);
843
848
  }, []);
844
849
  j(() => {
@@ -851,13 +856,13 @@ function Bi({
851
856
  b === "opening" && m && ke("open");
852
857
  }, [b, m]), j(() => {
853
858
  if (b !== "closing") return;
854
- const l = setTimeout(() => X(), G);
859
+ const l = setTimeout(() => X(), E);
855
860
  return () => clearTimeout(l);
856
861
  }, [b, X]), j(() => () => {
857
862
  T();
858
- }, [T]), Xt(() => {
863
+ }, [T]), Et(() => {
859
864
  Be.current === i && tt.current === (c == null ? void 0 : c.assetId) || (T(), K.current = null, se(null), V(0), B(0), $e(!1), Pe(!1), ye(!1), et(null), U.current = 0, A.current = 0, O.current = "none", Y.current = !1, F.current = !1, _.current = 0, H.current = null, z.current = null, te.current = !1, Be.current = i, tt.current = c == null ? void 0 : c.assetId);
860
- }, [i, c == null ? void 0 : c.assetId, T]), Xt(() => {
865
+ }, [i, c == null ? void 0 : c.assetId, T]), Et(() => {
861
866
  const l = De.current;
862
867
  l !== null && (De.current = null, requestAnimationFrame(() => {
863
868
  Qe.current(l);
@@ -872,19 +877,19 @@ function Bi({
872
877
  h.stopPropagation(), h.preventDefault(), d();
873
878
  }, document.addEventListener("click", l, !0);
874
879
  }, ne = (h) => {
875
- const M = h < 0 ? 1 : -1;
876
- if (Math.abs(h) > Ti && t.length > 1) {
877
- ve(M, !0);
880
+ const W = h < 0 ? 1 : -1;
881
+ if (Math.abs(h) > ki && t.length > 1) {
882
+ ve(W, !0);
878
883
  return;
879
884
  }
880
- ve(M, !1);
885
+ ve(W, !1);
881
886
  }, ce = (h) => {
882
887
  if (h.touches.length !== 1 || F.current) return;
883
- const M = h.touches[0];
884
- te.current = !0, z.current = { x: M.clientX, y: M.clientY }, O.current = "none", A.current = 0, Y.current = !1;
888
+ const W = h.touches[0];
889
+ te.current = !0, z.current = { x: W.clientX, y: W.clientY }, O.current = "none", A.current = 0, Y.current = !1;
885
890
  }, Xe = (h) => {
886
891
  if (!z.current || h.touches.length !== 1 || F.current) return;
887
- const M = h.touches[0], re = M.clientX - z.current.x, x = M.clientY - z.current.y;
892
+ const W = h.touches[0], re = W.clientX - z.current.x, x = W.clientY - z.current.y;
888
893
  if (O.current === "none") {
889
894
  if (Math.abs(re) < 10 && Math.abs(x) < 10) return;
890
895
  if (Math.abs(re) > Math.abs(x)) {
@@ -897,18 +902,18 @@ function Bi({
897
902
  }
898
903
  if (O.current === "horizontal") {
899
904
  Y.current = !0, ye(!0), A.current = re;
900
- const W = re < 0 ? 1 : -1;
901
- H.current !== W && (H.current = W, se(W)), _.current = re, B(re), h.preventDefault();
905
+ const M = re < 0 ? 1 : -1;
906
+ H.current !== M && (H.current = M, se(M)), _.current = re, B(re), h.preventDefault();
902
907
  return;
903
908
  }
904
909
  O.current === "vertical" && (Y.current = !0, ye(!0), U.current = x, V(x), h.preventDefault());
905
910
  }, Oe = () => {
906
911
  if (!z.current) return;
907
- const h = O.current, M = Y.current;
908
- if (M && h === "horizontal")
912
+ const h = O.current, W = Y.current;
913
+ if (W && h === "horizontal")
909
914
  ne(A.current), L();
910
- else if (M && h === "vertical")
911
- if (U.current > ki) {
915
+ else if (W && h === "vertical")
916
+ if (U.current > Ci) {
912
917
  const x = window.innerHeight;
913
918
  U.current = x, Pe(!0), V(x), ke("closing");
914
919
  } else
@@ -927,17 +932,17 @@ function Bi({
927
932
  }, [b]);
928
933
  const ze = () => {
929
934
  b !== "closing" && ke("closing");
930
- }, be = b === "open", Ee = b === "closing", xt = ie > 0 ? Math.max(0, 1 - ie / 500) : 1, bt = ie > 0 ? Math.max(0.35, 1 - ie / 500) : 1, St = it && c ? { width: Jt(c), height: 1 } : yt, u = m ? Ce ? m : Ri(m, St) : null, rt = {
935
+ }, be = b === "open", Ge = b === "closing", vt = ie > 0 ? Math.max(0, 1 - ie / 500) : 1, wt = ie > 0 ? Math.max(0.35, 1 - ie / 500) : 1, xt = it && c ? { width: Kt(c), height: 1 } : ft, u = m ? Ce ? m : Mi(m, xt) : null, rt = {
931
936
  position: "fixed",
932
937
  top: a == null ? void 0 : a.top,
933
938
  left: a == null ? void 0 : a.left,
934
939
  width: a == null ? void 0 : a.width,
935
940
  height: a == null ? void 0 : a.height,
936
941
  zIndex: 9998
937
- }, J = Ce ? "cover" : "contain", It = fe !== 0 || ie > 0 ? `translate(${fe}px, ${ie}px)` : void 0, Ae = Te && !Ve ? "none" : Ve ? `transform ${G}ms ${me}` : $t ? `transform ${G}ms ${me}, opacity ${G}ms ${me}` : b === "opening" || Ee ? `opacity ${G}ms ${me}` : "none", Ge = {
942
+ }, J = Ce ? "cover" : "contain", bt = fe !== 0 || ie > 0 ? `translate(${fe}px, ${ie}px)` : void 0, Ae = Te && !Ve ? "none" : Ve ? `transform ${E}ms ${me}` : pt ? `transform ${E}ms ${me}, opacity ${E}ms ${me}` : b === "opening" || Ge ? `opacity ${E}ms ${me}` : "none", Ee = {
938
943
  ...rt,
939
- transform: It,
940
- opacity: ie > 0 ? bt : b === "opening" || Ee ? 0 : 1,
944
+ transform: bt,
945
+ opacity: ie > 0 ? wt : b === "opening" || Ge ? 0 : 1,
941
946
  transition: Ae,
942
947
  pointerEvents: "none"
943
948
  }, qe = {
@@ -948,11 +953,11 @@ function Bi({
948
953
  height: u == null ? void 0 : u.height,
949
954
  objectFit: J,
950
955
  pointerEvents: "none"
951
- }, ot = (a == null ? void 0 : a.width) ?? 0, ae = Le ? (i + He + t.length) % t.length : null, N = ae !== null ? t[ae] : null, Mt = {
956
+ }, ot = (a == null ? void 0 : a.width) ?? 0, ae = Le ? (i + He + t.length) % t.length : null, N = ae !== null ? t[ae] : null, Ot = {
952
957
  ...rt,
953
958
  transform: Le ? `translateX(${He * ot + fe}px)` : void 0,
954
959
  opacity: 1,
955
- transition: Ve ? `transform ${G}ms ${me}` : "none",
960
+ transition: Ve ? `transform ${E}ms ${me}` : "none",
956
961
  pointerEvents: "none"
957
962
  }, lt = {
958
963
  position: "absolute",
@@ -962,10 +967,10 @@ function Bi({
962
967
  height: m == null ? void 0 : m.height,
963
968
  objectFit: J,
964
969
  pointerEvents: "none"
965
- }, Ct = it && c && fi(c).controls && u ? Math.min(52, u.height * 0.2) : 0, E = u ? {
970
+ }, St = it && c && pi(c).controls && u ? Math.min(52, u.height * 0.2) : 0, G = u ? {
966
971
  position: "fixed",
967
972
  top: u.top,
968
- height: u.height - Ct,
973
+ height: u.height - St,
969
974
  width: u.width / 2,
970
975
  zIndex: 9999
971
976
  } : null;
@@ -989,8 +994,8 @@ function Bi({
989
994
  position: "absolute",
990
995
  inset: 0,
991
996
  background: "rgba(28,31,34,0.9)",
992
- opacity: be ? xt : 0,
993
- transition: Te ? "none" : `opacity ${G}ms ${me}`,
997
+ opacity: be ? vt : 0,
998
+ transition: Te ? "none" : `opacity ${E}ms ${me}`,
994
999
  pointerEvents: "none"
995
1000
  }
996
1001
  }
@@ -1023,7 +1028,7 @@ function Bi({
1023
1028
  alignItems: "center",
1024
1029
  height: "10%",
1025
1030
  opacity: be ? 1 : 0,
1026
- transition: `opacity ${G}ms ${me}`,
1031
+ transition: `opacity ${E}ms ${me}`,
1027
1032
  pointerEvents: "none",
1028
1033
  zIndex: 9999
1029
1034
  },
@@ -1059,7 +1064,7 @@ function Bi({
1059
1064
  alignItems: "center",
1060
1065
  height: "10%",
1061
1066
  opacity: be ? 1 : 0,
1062
- transition: `opacity ${G}ms ${me}`
1067
+ transition: `opacity ${E}ms ${me}`
1063
1068
  },
1064
1069
  children: t.length > 1 && /* @__PURE__ */ y("p", { className: R, style: P, children: [
1065
1070
  i + 1,
@@ -1071,7 +1076,7 @@ function Bi({
1071
1076
  ] })
1072
1077
  }
1073
1078
  ),
1074
- m && a && N && /* @__PURE__ */ n("div", { style: Mt, onTransitionEnd: Ne, children: We(N) ? /* @__PURE__ */ n(
1079
+ m && a && N && /* @__PURE__ */ n("div", { style: Ot, onTransitionEnd: Ne, children: Me(N) ? /* @__PURE__ */ n(
1075
1080
  "img",
1076
1081
  {
1077
1082
  src: N.thumbnail,
@@ -1100,8 +1105,8 @@ function Bi({
1100
1105
  },
1101
1106
  `neighbor-${ae}-${N.assetId}`
1102
1107
  ) }),
1103
- m && a && c && /* @__PURE__ */ n("div", { style: Ge, onTransitionEnd: Ne, children: it ? /* @__PURE__ */ n(
1104
- Qt,
1108
+ m && a && c && /* @__PURE__ */ n("div", { style: Ee, onTransitionEnd: Ne, children: it ? /* @__PURE__ */ n(
1109
+ Zt,
1105
1110
  {
1106
1111
  media: c,
1107
1112
  fit: Ce ? "cover" : "contain",
@@ -1110,8 +1115,8 @@ function Bi({
1110
1115
  style: qe
1111
1116
  },
1112
1117
  `${i}-${c.assetId}`
1113
- ) : vt ? /* @__PURE__ */ n(
1114
- Di,
1118
+ ) : $t ? /* @__PURE__ */ n(
1119
+ Ri,
1115
1120
  {
1116
1121
  src: c.assetId,
1117
1122
  mediaRef: pe,
@@ -1130,12 +1135,12 @@ function Bi({
1130
1135
  },
1131
1136
  `${i}-${c.assetId}`
1132
1137
  ) }),
1133
- be && E && t.length > 1 && /* @__PURE__ */ y(q, { children: [
1138
+ be && G && t.length > 1 && /* @__PURE__ */ y(q, { children: [
1134
1139
  /* @__PURE__ */ n(
1135
1140
  "div",
1136
1141
  {
1137
1142
  style: {
1138
- ...E,
1143
+ ...G,
1139
1144
  left: u.left,
1140
1145
  cursor: "w-resize",
1141
1146
  pointerEvents: Te ? "none" : "auto"
@@ -1153,7 +1158,7 @@ function Bi({
1153
1158
  "div",
1154
1159
  {
1155
1160
  style: {
1156
- ...E,
1161
+ ...G,
1157
1162
  left: u.left + u.width / 2,
1158
1163
  cursor: "e-resize",
1159
1164
  pointerEvents: Te ? "none" : "auto"
@@ -1169,7 +1174,7 @@ function Bi({
1169
1174
  )
1170
1175
  ] }),
1171
1176
  /* @__PURE__ */ n(
1172
- Vi,
1177
+ Hi,
1173
1178
  {
1174
1179
  prefix: e,
1175
1180
  closeIcon: ee,
@@ -1189,11 +1194,11 @@ function Bi({
1189
1194
  }
1190
1195
  );
1191
1196
  }
1192
- function Ei(e) {
1197
+ function Bi(e) {
1193
1198
  return typeof e == "string" ? e === "cover" ? "cover" : "fit" : (e == null ? void 0 : e.display) === "cover" ? "cover" : "fit";
1194
1199
  }
1195
- function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode: o, metadata: w, activeEvent: v, layoutId: X, portalId: ue }) {
1196
- const { prefix: r } = pi(), {
1200
+ function ln({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode: o, metadata: w, activeEvent: v, layoutId: X, portalId: ue }) {
1201
+ const { prefix: r } = gi(), {
1197
1202
  type: R = "a",
1198
1203
  gridLayout: P,
1199
1204
  textBoxWidth: ee = 100,
@@ -1223,7 +1228,7 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1223
1228
  subtitleFontSettings: m,
1224
1229
  subtitleFontSize: je,
1225
1230
  subtitleLineHeight: a,
1226
- subtitleLetterSpacing: ft,
1231
+ subtitleLetterSpacing: gt,
1227
1232
  subtitleWordSpacing: b,
1228
1233
  subtitleTextAppearance: ke,
1229
1234
  lightboxCounterFontFamily: ie,
@@ -1236,14 +1241,14 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1236
1241
  closeIcon: $e,
1237
1242
  closeIconMaxWidth: Te,
1238
1243
  closeIconColor: ye,
1239
- closeIconHoverColor: $t,
1244
+ closeIconHoverColor: pt,
1240
1245
  iconMarginRight: Pe,
1241
- contentMarginTop: yt,
1246
+ contentMarginTop: ft,
1242
1247
  showText: et = "always",
1243
1248
  hover: Be = "none",
1244
1249
  alignEntries: tt = "off",
1245
1250
  align: c = "top"
1246
- } = e, vt = {
1251
+ } = e, $t = {
1247
1252
  fontSettings: {
1248
1253
  fontFamily: Je,
1249
1254
  fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
@@ -1256,7 +1261,7 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1256
1261
  textAppearance: De,
1257
1262
  color: O
1258
1263
  }, Le = {
1259
- ..._t(Nt(vt, i))
1264
+ ...Tt(Lt($t, i))
1260
1265
  }, nt = {
1261
1266
  fontSettings: {
1262
1267
  fontFamily: Qe,
@@ -1265,12 +1270,12 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1265
1270
  },
1266
1271
  fontSize: je ?? 0.01,
1267
1272
  lineHeight: a,
1268
- letterSpacing: ft ?? 0,
1273
+ letterSpacing: gt ?? 0,
1269
1274
  wordSpacing: b ?? 0,
1270
1275
  textAppearance: ke,
1271
1276
  color: Y
1272
1277
  }, Z = {
1273
- ..._t(Nt(nt, i))
1278
+ ...Tt(Lt(nt, i))
1274
1279
  }, _e = {
1275
1280
  fontSettings: {
1276
1281
  fontFamily: ie,
@@ -1284,91 +1289,91 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1284
1289
  textAppearance: Ve,
1285
1290
  color: te
1286
1291
  }, ve = {
1287
- ..._t(Nt(_e, i)),
1288
- ...At(fe, B, r, i)
1289
- }, we = zt(
1292
+ ...Tt(Lt(_e, i)),
1293
+ ...Nt(fe, B, r, i)
1294
+ }, we = _t(
1290
1295
  H,
1291
1296
  F,
1292
1297
  `${r}-item-title`,
1293
1298
  `${r}-text-tight-leading`
1294
- ), Ne = zt(
1299
+ ), Ne = _t(
1295
1300
  je,
1296
1301
  a,
1297
1302
  `${r}-item-subtitle`,
1298
1303
  `${r}-text-tight-leading`
1299
- ), xe = At(H, F, r, i), ze = At(je, a, r, i), be = zt(
1304
+ ), xe = Nt(H, F, r, i), ze = Nt(je, a, r, i), be = _t(
1300
1305
  fe,
1301
1306
  B,
1302
1307
  `${r}-lightbox-counter`,
1303
1308
  `${r}-text-tight-leading`
1304
- ), Ee = gi(r, {
1309
+ ), Ge = hi(r, {
1305
1310
  titleColor: O,
1306
1311
  subtitleColor: Y,
1307
1312
  lightboxCounterColor: te
1308
- }, Gi, qi), xt = v && v !== "default" ? `${r}-state-${v}` : "", bt = et === "on hover" && (!i || s), St = Be !== "none" && (!i || s) ? ` ${r}-hover-${Be}` : "", u = `${xt}${bt ? ` ${r}-show-text-hover` : ""}${St}`.trim(), rt = Ie === 0 ? 1 / 0 : Ie, J = (t ?? []).slice(0, rt), It = qt(
1309
- () => C === "on" ? zi(J) : [],
1313
+ }, Gi, Ei), vt = v && v !== "default" ? `${r}-state-${v}` : "", wt = et === "on hover" && (!i || s), xt = Be !== "none" && (!i || s) ? ` ${r}-hover-${Be}` : "", u = `${vt}${wt ? ` ${r}-show-text-hover` : ""}${xt}`.trim(), rt = Ie === 0 ? 1 / 0 : Ie, J = (t ?? []).slice(0, rt), bt = Gt(
1314
+ () => C === "on" ? Ni(J) : [],
1310
1315
  [J, C]
1311
- ), Ae = P.entryWidth ?? 0.2, Ge = (k == null ? void 0 : k.display) === "cover", qe = (k == null ? void 0 : k.ratioValue) ?? "1:1", ot = (k == null ? void 0 : k.reversed) ?? !1, [ae, N] = qe.split(":").map(Number), Ct = `${ot ? N : ae} / ${ot ? ae : N}`, E = P.columnsCount, l = p(Ae ?? 0, i), d = l, L = !Ge && Re !== "off", ne = J.length % E || E, ce = ne < E && J.length > 0, Xe = J.length - ne, Oe = ce ? Math.floor((E - ne) / 2) + 1 : 1, h = Ze ? p(Ze, i) : void 0, M = {
1316
+ ), Ae = P.entryWidth ?? 0.2, Ee = (k == null ? void 0 : k.display) === "cover", qe = (k == null ? void 0 : k.ratioValue) ?? "1:1", ot = (k == null ? void 0 : k.reversed) ?? !1, [ae, N] = qe.split(":").map(Number), St = `${ot ? N : ae} / ${ot ? ae : N}`, G = P.columnsCount, l = p(Ae ?? 0, i), d = l, L = !Ee && Re !== "off", ne = J.length % G || G, ce = ne < G && J.length > 0, Xe = J.length - ne, Oe = ce ? Math.floor((G - ne) / 2) + 1 : 1, h = Ze ? p(Ze, i) : void 0, W = {
1312
1317
  width: d,
1313
- ...Ge ? { aspectRatio: Ct, height: "auto", overflow: "hidden" } : { height: "auto" },
1318
+ ...Ee ? { aspectRatio: St, height: "auto", overflow: "hidden" } : { height: "auto" },
1314
1319
  ...h ? { borderRadius: h, overflow: "hidden" } : {}
1315
- }, re = `${r}-item-image-wrapper${L ? ` ${r}-item-image-wrapper-fit-slider` : ""}`.trim(), x = R === "d" || R === "e" || R === "f", W = tt === "on", Fe = `calc(${p(Ae ?? 0, i)} * (${ee} / 100))`, de = p(Ae * ee / 100, i), Wt = h ? { borderRadius: h, [Ft]: h } : {}, Rt = Ge ? {
1320
+ }, re = `${r}-item-image-wrapper${L ? ` ${r}-item-image-wrapper-fit-slider` : ""}`.trim(), x = R === "d" || R === "e" || R === "f", M = tt === "on", Fe = `calc(${p(Ae ?? 0, i)} * (${ee} / 100))`, de = p(Ae * ee / 100, i), Ft = h ? { borderRadius: h, [Qt]: h } : {}, Wt = Ee ? {
1316
1321
  objectFit: "cover",
1317
1322
  pointerEvents: "auto",
1318
1323
  width: "100%",
1319
1324
  height: "100%",
1320
1325
  maxWidth: "100%",
1321
- ...Wt
1326
+ ...Ft
1322
1327
  } : {
1323
1328
  objectFit: "contain",
1324
1329
  pointerEvents: "auto",
1325
1330
  width: "auto",
1326
1331
  height: "auto",
1327
1332
  maxWidth: "100%",
1328
- ...Wt
1329
- }, [ti, ii] = I(0), st = $(null), ni = z === "fade" || pe === "horizontal" ? "ltr" : pe === "vertical" ? "ttb" : "ltr";
1333
+ ...Ft
1334
+ }, [ei, ti] = I(0), st = $(null), ii = z === "fade" || pe === "horizontal" ? "ltr" : pe === "vertical" ? "ttb" : "ltr";
1330
1335
  j(() => {
1331
1336
  const g = st.current;
1332
1337
  if (!g) return;
1333
1338
  const S = new ResizeObserver((D) => {
1334
- ii(Math.round(D[0].contentRect.width));
1339
+ ti(Math.round(D[0].contentRect.width));
1335
1340
  });
1336
1341
  return S.observe(g), () => S.disconnect();
1337
1342
  }, []);
1338
- const ri = (() => {
1339
- const g = { ...Ee }, S = st.current ? getComputedStyle(st.current).getPropertyValue("--cntrl-article-width").trim() : "";
1343
+ const ni = (() => {
1344
+ const g = { ...Ge }, S = st.current ? getComputedStyle(st.current).getPropertyValue("--cntrl-article-width").trim() : "";
1340
1345
  return S && (g["--cntrl-article-width"] = S), g;
1341
- })(), [kt, Tt] = I(!1), [at, oi] = I([]), [li, Lt] = I(0), Dt = C === "on" && (!i || s), jt = (g, S) => {
1342
- i && !s || C !== "off" && (oi(g), Lt(S), Tt(!0));
1346
+ })(), [It, Ct] = I(!1), [at, ri] = I([]), [oi, kt] = I(0), Mt = C === "on" && (!i || s), Rt = (g, S) => {
1347
+ i && !s || C !== "off" && (ri(g), kt(S), Ct(!0));
1343
1348
  };
1344
1349
  j(() => {
1345
- if (!kt || C !== "on" || typeof document > "u") return;
1350
+ if (!It || C !== "on" || typeof document > "u") return;
1346
1351
  const g = document.body.style.overflow;
1347
1352
  return document.body.style.overflow = "hidden", () => {
1348
1353
  document.body.style.overflow = g;
1349
1354
  };
1350
- }, [kt, C]), j(() => {
1351
- !i || s || Tt(!1);
1355
+ }, [It, C]), j(() => {
1356
+ !i || s || Ct(!1);
1352
1357
  }, [i, s]);
1353
- const si = qt(() => xi(r), [r]);
1358
+ const li = Gt(() => wi(r), [r]);
1354
1359
  return /* @__PURE__ */ y(q, { children: [
1355
- /* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: si } }),
1356
- C === "on" && /* @__PURE__ */ n(Ai, { mediaList: It }),
1357
- /* @__PURE__ */ n("div", { style: Ee, children: /* @__PURE__ */ n(
1360
+ /* @__PURE__ */ n("style", { dangerouslySetInnerHTML: { __html: li } }),
1361
+ C === "on" && /* @__PURE__ */ n(zi, { mediaList: bt }),
1362
+ /* @__PURE__ */ n("div", { style: Ge, children: /* @__PURE__ */ n(
1358
1363
  "div",
1359
1364
  {
1360
1365
  ref: st,
1361
- className: `${r}-wrapper ${r}-type-${R}${W ? ` ${r}-align-entries` : ""} ${r}-image-align-${c} ${u}`.trim(),
1366
+ className: `${r}-wrapper ${r}-type-${R}${M ? ` ${r}-align-entries` : ""} ${r}-image-align-${c} ${u}`.trim(),
1362
1367
  style: {
1363
- gridTemplateColumns: `repeat(${E}, ${l})`,
1364
- rowGap: W ? 0 : p(he ?? 0, i),
1368
+ gridTemplateColumns: `repeat(${G}, ${l})`,
1369
+ rowGap: M ? 0 : p(he ?? 0, i),
1365
1370
  columnGap: p(P.horizontalGap ?? 0, i),
1366
1371
  width: p(P.wrapperWidth ?? 0, i),
1367
- ...W ? { [`--${r}-align-entries-row-gap`]: p(he ?? 0, i) } : {}
1372
+ ...M ? { [`--${r}-align-entries-row-gap`]: p(he ?? 0, i) } : {}
1368
1373
  },
1369
1374
  children: J.map((g, S) => {
1370
- var Gt;
1371
- const D = Ut(g.title), Q = Ut(g.subtitle), Me = C === "off" && ((Gt = g.link) != null && Gt.value) ? g.link : void 0, ai = Math.floor(S / E) === Math.ceil(J.length / E) - 1, ct = ce && S >= Xe ? `${Oe + (S - Xe)}` : void 0, Ht = x ? /* @__PURE__ */ y("div", { className: `${r}-item-text-block`, children: [
1375
+ var Bt;
1376
+ const D = qt(g.title), Q = qt(g.subtitle), We = C === "off" && ((Bt = g.link) != null && Bt.value) ? g.link : void 0, si = Math.floor(S / G) === Math.ceil(J.length / G) - 1, ct = ce && S >= Xe ? `${Oe + (S - Xe)}` : void 0, Dt = x ? /* @__PURE__ */ y("div", { className: `${r}-item-text-block`, children: [
1372
1377
  D && /* @__PURE__ */ n("p", { className: we, style: { width: Fe, ...Le, ...xe }, children: g.title }),
1373
1378
  D && /* @__PURE__ */ n(
1374
1379
  "div",
@@ -1393,7 +1398,7 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1393
1398
  }
1394
1399
  }
1395
1400
  )
1396
- ] }) : null, ci = W ? /* @__PURE__ */ y("div", { className: `${r}-item-title-row`, children: [
1401
+ ] }) : null, ai = M ? /* @__PURE__ */ y("div", { className: `${r}-item-title-row`, children: [
1397
1402
  !x && /* @__PURE__ */ n(
1398
1403
  "div",
1399
1404
  {
@@ -1417,7 +1422,7 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1417
1422
  }
1418
1423
  }
1419
1424
  )
1420
- ] }) : null, di = W ? /* @__PURE__ */ y("div", { className: `${r}-item-subtitle-row`, children: [
1425
+ ] }) : null, ci = M ? /* @__PURE__ */ y("div", { className: `${r}-item-subtitle-row`, children: [
1421
1426
  !x && /* @__PURE__ */ n(
1422
1427
  "div",
1423
1428
  {
@@ -1441,25 +1446,25 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1441
1446
  }
1442
1447
  }
1443
1448
  )
1444
- ] }) : null, Vt = /* @__PURE__ */ y(ht, { link: Me, className: `${r}-item-text-link`, children: [
1445
- ci,
1446
- di
1447
- ] }), Ue = ei(g.gallery), dt = Ue.filter((f) => f.lightboxMedia).map((f) => f.lightboxMedia), mt = /* @__PURE__ */ n(Wi, { className: re, style: M, children: Ue.length === 0 ? null : Re === "off" ? (() => {
1449
+ ] }) : null, jt = /* @__PURE__ */ y(ht, { link: We, className: `${r}-item-text-link`, children: [
1450
+ ai,
1451
+ ci
1452
+ ] }), Ue = Pt(g.gallery), dt = Ue.filter((f) => f.lightboxMedia).map((f) => f.lightboxMedia), mt = /* @__PURE__ */ n(Wi, { className: re, style: W, children: Ue.length === 0 ? null : Re === "off" ? (() => {
1448
1453
  const { displayMedia: f, lightboxMedia: Ye } = Ue[0], Ke = Ye ? dt.findIndex((ut) => ut.assetId === Ye.assetId) : -1;
1449
1454
  return /* @__PURE__ */ n(
1450
- Yt,
1455
+ Xt,
1451
1456
  {
1452
1457
  media: f,
1453
1458
  className: `${r}-item-${Se(f) ? "video" : "image"}`.trim(),
1454
- style: Rt,
1459
+ style: Wt,
1455
1460
  hasLightbox: C === "on",
1456
- onMediaClick: Dt && Ke >= 0 ? () => jt(dt, Ke) : void 0
1461
+ onMediaClick: Mt && Ke >= 0 ? () => Rt(dt, Ke) : void 0
1457
1462
  }
1458
1463
  );
1459
1464
  })() : /* @__PURE__ */ y(q, { children: [
1460
- L && /* @__PURE__ */ n("div", { className: `${r}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Ue.map(({ displayMedia: f }) => We(f) ? /* @__PURE__ */ n("div", { style: { aspectRatio: `${Jt(f)}` } }, `sizer-${f.assetId}`) : Se(f) ? /* @__PURE__ */ n(Pt, { src: f.assetId, nearPreload: "metadata", muted: !0, playsInline: !0 }, `sizer-${f.assetId}`) : /* @__PURE__ */ n("img", { src: f.assetId, alt: "" }, `sizer-${f.assetId}`)) }),
1465
+ L && /* @__PURE__ */ n("div", { className: `${r}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Ue.map(({ displayMedia: f }) => Me(f) ? /* @__PURE__ */ n("div", { style: { aspectRatio: `${Kt(f)}` } }, `sizer-${f.assetId}`) : Se(f) ? /* @__PURE__ */ n(Jt, { src: f.assetId, nearPreload: "metadata", muted: !0, playsInline: !0 }, `sizer-${f.assetId}`) : /* @__PURE__ */ n("img", { src: f.assetId, alt: "" }, `sizer-${f.assetId}`)) }),
1461
1466
  /* @__PURE__ */ n(
1462
- ui,
1467
+ mi,
1463
1468
  {
1464
1469
  className: `${r}-item-slider`,
1465
1470
  options: {
@@ -1471,34 +1476,34 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1471
1476
  interval: ge * 1e3,
1472
1477
  width: "100%",
1473
1478
  height: "100%",
1474
- speed: Ci,
1479
+ speed: Ii,
1475
1480
  type: z === "fade" ? "fade" : "loop",
1476
1481
  rewind: z === "fade",
1477
1482
  pauseOnHover: !1,
1478
1483
  pauseOnFocus: !1,
1479
- direction: ni
1484
+ direction: ii
1480
1485
  },
1481
1486
  onMoved: (f) => {
1482
- pe !== "random" || z === "fade" || Ii(f);
1487
+ pe !== "random" || z === "fade" || Si(f);
1483
1488
  },
1484
1489
  children: Ue.map(({ displayMedia: f, lightboxMedia: Ye }, Ke) => {
1485
- const ut = Ye ? dt.findIndex((mi) => mi.assetId === Ye.assetId) : -1;
1486
- return /* @__PURE__ */ n(hi, { "data-slide-index": Ke, children: /* @__PURE__ */ n(
1487
- Yt,
1490
+ const ut = Ye ? dt.findIndex((di) => di.assetId === Ye.assetId) : -1;
1491
+ return /* @__PURE__ */ n(ui, { "data-slide-index": Ke, children: /* @__PURE__ */ n(
1492
+ Xt,
1488
1493
  {
1489
1494
  media: f,
1490
1495
  className: `${r}-item-${Se(f) ? "video" : "image"}`.trim(),
1491
- style: Rt,
1496
+ style: Wt,
1492
1497
  hasLightbox: C === "on",
1493
1498
  isSplideSlide: !0,
1494
- onMediaClick: Dt && ut >= 0 ? () => jt(dt, ut) : void 0
1499
+ onMediaClick: Mt && ut >= 0 ? () => Rt(dt, ut) : void 0
1495
1500
  }
1496
1501
  ) }, Ke);
1497
1502
  })
1498
1503
  },
1499
- `${z}-${Ae}-${pe}-${ge}-${ti}-${X}`
1504
+ `${z}-${Ae}-${pe}-${ge}-${ei}-${X}`
1500
1505
  )
1501
- ] }) }), Bt = x ? null : /* @__PURE__ */ y(q, { children: [
1506
+ ] }) }), Ht = x ? null : /* @__PURE__ */ y(q, { children: [
1502
1507
  /* @__PURE__ */ n(
1503
1508
  "div",
1504
1509
  {
@@ -1537,36 +1542,36 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1537
1542
  children: g.subtitle
1538
1543
  }
1539
1544
  )
1540
- ] }), Et = Me ? /* @__PURE__ */ n(ht, { link: Me, className: `${r}-item-image-link`, children: mt }) : /* @__PURE__ */ n("a", { className: `${r}-item-image-link`, children: mt });
1545
+ ] }), Vt = We ? /* @__PURE__ */ n(ht, { link: We, className: `${r}-item-image-link`, children: mt }) : /* @__PURE__ */ n("a", { className: `${r}-item-image-link`, children: mt });
1541
1546
  return /* @__PURE__ */ n(
1542
1547
  "div",
1543
1548
  {
1544
1549
  className: `${r}-item`.trim(),
1545
- style: ct && !W ? { gridColumn: ct } : void 0,
1550
+ style: ct && !M ? { gridColumn: ct } : void 0,
1546
1551
  children: /* @__PURE__ */ n(
1547
1552
  "div",
1548
1553
  {
1549
- className: `${o ? `${r}-item-inner` : `${r}-item-inner-hidden`}${W && ai ? ` ${r}-item-inner-last-row` : ""}`.trim(),
1554
+ className: `${o ? `${r}-item-inner` : `${r}-item-inner-hidden`}${M && si ? ` ${r}-item-inner-last-row` : ""}`.trim(),
1550
1555
  style: {
1551
1556
  width: (ee ?? 0) > 100 ? `calc(${l} * (${ee} / 100))` : l,
1552
- ...ct && W ? { gridColumn: ct } : {}
1557
+ ...ct && M ? { gridColumn: ct } : {}
1553
1558
  },
1554
- children: W ? /* @__PURE__ */ n(q, { children: x ? /* @__PURE__ */ y(q, { children: [
1555
- Vt,
1556
- Et
1557
- ] }) : /* @__PURE__ */ y(q, { children: [
1558
- Et,
1559
+ children: M ? /* @__PURE__ */ n(q, { children: x ? /* @__PURE__ */ y(q, { children: [
1560
+ jt,
1559
1561
  Vt
1560
- ] }) }) : Me ? /* @__PURE__ */ y(q, { children: [
1561
- /* @__PURE__ */ y(ht, { link: Me, className: `${r}-item-image-link`, children: [
1562
- Ht,
1562
+ ] }) : /* @__PURE__ */ y(q, { children: [
1563
+ Vt,
1564
+ jt
1565
+ ] }) }) : We ? /* @__PURE__ */ y(q, { children: [
1566
+ /* @__PURE__ */ y(ht, { link: We, className: `${r}-item-image-link`, children: [
1567
+ Dt,
1563
1568
  mt
1564
1569
  ] }),
1565
- !x && /* @__PURE__ */ n(ht, { link: Me, className: `${r}-item-text-link`, children: Bt })
1570
+ !x && /* @__PURE__ */ n(ht, { link: We, className: `${r}-item-text-link`, children: Ht })
1566
1571
  ] }) : /* @__PURE__ */ y(q, { children: [
1567
- Ht,
1572
+ Dt,
1568
1573
  mt,
1569
- Bt
1574
+ Ht
1570
1575
  ] })
1571
1576
  }
1572
1577
  )
@@ -1576,28 +1581,28 @@ function sn({ settings: e, content: t, isEditor: i, isPreviewMode: s, isEditMode
1576
1581
  })
1577
1582
  }
1578
1583
  ) }),
1579
- (!i || s) && kt && typeof document < "u" && C === "on" && (() => {
1584
+ (!i || s) && It && typeof document < "u" && C === "on" && (() => {
1580
1585
  const g = (ue ? document.getElementById(ue) : null) ?? document.body;
1581
- return $i(
1582
- /* @__PURE__ */ n("div", { style: ri, "data-selection": "none", children: /* @__PURE__ */ n(
1583
- Bi,
1586
+ return fi(
1587
+ /* @__PURE__ */ n("div", { style: ni, "data-selection": "none", children: /* @__PURE__ */ n(
1588
+ Vi,
1584
1589
  {
1585
1590
  prefix: r,
1586
1591
  items: at,
1587
- index: li,
1588
- imageDisplay: Ei(Ce),
1592
+ index: oi,
1593
+ imageDisplay: Bi(Ce),
1589
1594
  isEditor: i,
1590
1595
  isPreviewMode: s,
1591
1596
  isEditMode: o,
1592
1597
  closeIcon: $e,
1593
1598
  closeIconMaxWidth: Te,
1594
1599
  closeIconColor: ye,
1595
- closeIconHoverColor: $t,
1600
+ closeIconHoverColor: pt,
1596
1601
  iconMarginRight: Pe,
1597
- contentMarginTop: yt,
1598
- onClose: () => Tt(!1),
1599
- onPrev: () => Lt((S) => (S - 1 + at.length) % at.length),
1600
- onNext: () => Lt((S) => (S + 1) % at.length),
1602
+ contentMarginTop: ft,
1603
+ onClose: () => Ct(!1),
1604
+ onPrev: () => kt((S) => (S - 1 + at.length) % at.length),
1605
+ onNext: () => kt((S) => (S + 1) % at.length),
1601
1606
  counterClassName: be,
1602
1607
  counterStyle: ve
1603
1608
  }
@@ -1611,7 +1616,7 @@ const Gi = {
1611
1616
  titleColor: "title-color",
1612
1617
  subtitleColor: "subtitle-color",
1613
1618
  lightboxCounterColor: "lightbox-counter-color"
1614
- }, qi = ["hover", "focus", "filled", "success", "error"];
1619
+ }, Ei = ["hover", "focus", "filled", "success", "error"];
1615
1620
  export {
1616
- sn as Grid
1621
+ ln as Grid
1617
1622
  };