@cntrl-site/components 1.0.19-alpha.3 → 1.0.19-alpha.5

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 (3) hide show
  1. package/dist/index.js +17 -17
  2. package/dist/index.mjs +436 -427
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { createPortal as Wo, flushSync as rs } from "react-dom";
6
6
  function Mg(t) {
7
7
  return t.type === "object" && t.version === 1;
8
8
  }
9
- const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__hoverArrow___A-dOH", ss = "ControlSlider-module__sliderItem___QQSkR", cs = "ControlSlider-module__sliderImage___9hRl-", ds = "ControlSlider-module__arrow___05ghY", us = "ControlSlider-module__arrowVertical___tBfVN", ps = "ControlSlider-module__nextArrow___-30Yc", ms = "ControlSlider-module__arrowInner___aEra3", gs = "ControlSlider-module__arrowIcon___S4ztF", hs = "ControlSlider-module__arrowImg___2dwJW", fs = "ControlSlider-module__mirror___brd6U", ys = "ControlSlider-module__pagination___bicLF", vs = "ControlSlider-module__paginationInner___bT-P-", bs = "ControlSlider-module__paginationVertical___zYqKw", xs = "ControlSlider-module__paginationItem___nTRbk", ws = "ControlSlider-module__dot___p1Qun", $s = "ControlSlider-module__activeDot___LHFaj", Ss = "ControlSlider-module__paginationInsideBottom___R3FWn", Cs = "ControlSlider-module__paginationInsideTop___V-qb-", Ts = "ControlSlider-module__paginationOutsideBottom___14w8D", Ls = "ControlSlider-module__paginationOutsideTop___SCLqB", Es = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ps = "ControlSlider-module__paginationInsideRight___Rtt3o", Is = "ControlSlider-module__paginationOutsideLeft___lahaw", As = "ControlSlider-module__paginationOutsideRight___EtuQa", _s = "ControlSlider-module__imgWrapper___UjEgB", Ws = "ControlSlider-module__captionBlock___dJ6-j", ks = "ControlSlider-module__captionTextWrapper___HFlpf", Rs = "ControlSlider-module__captionText___uGBVc", Ms = "ControlSlider-module__active___WZK4G", Fs = "ControlSlider-module__withPointerEvents___t-18M", Ns = "ControlSlider-module__topLeftAlignment___zjnGM", Hs = "ControlSlider-module__topCenterAlignment___gD1xW", Os = "ControlSlider-module__topRightAlignment___NMapS", Bs = "ControlSlider-module__middleLeftAlignment___OnUrY", zs = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ds = "ControlSlider-module__middleRightAlignment___wEbfX", Vs = "ControlSlider-module__bottomLeftAlignment___cTP2-", qs = "ControlSlider-module__bottomCenterAlignment___c54fB", js = "ControlSlider-module__bottomRightAlignment___kEwrz", Ks = "ControlSlider-module__clickOverlay___DZA28", Us = "ControlSlider-module__contain___pLyq7", Gs = "ControlSlider-module__cover___KdDat", At = {
9
+ const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__hoverArrow___A-dOH", ss = "ControlSlider-module__sliderItem___QQSkR", cs = "ControlSlider-module__sliderImage___9hRl-", ds = "ControlSlider-module__arrow___05ghY", us = "ControlSlider-module__arrowVertical___tBfVN", ps = "ControlSlider-module__nextArrow___-30Yc", ms = "ControlSlider-module__arrowInner___aEra3", gs = "ControlSlider-module__arrowIcon___S4ztF", hs = "ControlSlider-module__arrowImg___2dwJW", fs = "ControlSlider-module__mirror___brd6U", ys = "ControlSlider-module__pagination___bicLF", vs = "ControlSlider-module__paginationInner___bT-P-", bs = "ControlSlider-module__paginationVertical___zYqKw", xs = "ControlSlider-module__paginationItem___nTRbk", ws = "ControlSlider-module__dot___p1Qun", $s = "ControlSlider-module__activeDot___LHFaj", Ss = "ControlSlider-module__paginationInsideBottom___R3FWn", Cs = "ControlSlider-module__paginationInsideTop___V-qb-", Ts = "ControlSlider-module__paginationOutsideBottom___14w8D", Ls = "ControlSlider-module__paginationOutsideTop___SCLqB", Es = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ps = "ControlSlider-module__paginationInsideRight___Rtt3o", Is = "ControlSlider-module__paginationOutsideLeft___lahaw", _s = "ControlSlider-module__paginationOutsideRight___EtuQa", As = "ControlSlider-module__imgWrapper___UjEgB", Ws = "ControlSlider-module__captionBlock___dJ6-j", ks = "ControlSlider-module__captionTextWrapper___HFlpf", Rs = "ControlSlider-module__captionText___uGBVc", Ms = "ControlSlider-module__active___WZK4G", Fs = "ControlSlider-module__withPointerEvents___t-18M", Ns = "ControlSlider-module__topLeftAlignment___zjnGM", Hs = "ControlSlider-module__topCenterAlignment___gD1xW", Os = "ControlSlider-module__topRightAlignment___NMapS", Bs = "ControlSlider-module__middleLeftAlignment___OnUrY", zs = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ds = "ControlSlider-module__middleRightAlignment___wEbfX", Vs = "ControlSlider-module__bottomLeftAlignment___cTP2-", qs = "ControlSlider-module__bottomCenterAlignment___c54fB", js = "ControlSlider-module__bottomRightAlignment___kEwrz", Ks = "ControlSlider-module__clickOverlay___DZA28", Us = "ControlSlider-module__contain___pLyq7", Gs = "ControlSlider-module__cover___KdDat", _t = {
10
10
  wrapper: as,
11
11
  hoverArrow: ls,
12
12
  sliderItem: ss,
@@ -31,8 +31,8 @@ const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__
31
31
  paginationInsideLeft: Es,
32
32
  paginationInsideRight: Ps,
33
33
  paginationOutsideLeft: Is,
34
- paginationOutsideRight: As,
35
- imgWrapper: _s,
34
+ paginationOutsideRight: _s,
35
+ imgWrapper: As,
36
36
  captionBlock: Ws,
37
37
  captionTextWrapper: ks,
38
38
  captionText: Rs,
@@ -106,7 +106,7 @@ function ji(t) {
106
106
  function rn(t, e) {
107
107
  ji(t).forEach(e);
108
108
  }
109
- function Ar(t, e) {
109
+ function _r(t, e) {
110
110
  return t.indexOf(e) > -1;
111
111
  }
112
112
  function fo(t, e) {
@@ -123,7 +123,7 @@ function hn(t, e) {
123
123
  function Ki(t, e) {
124
124
  rn(e, t.appendChild.bind(t));
125
125
  }
126
- function _r(t, e) {
126
+ function Ar(t, e) {
127
127
  rn(t, function(n) {
128
128
  var i = (e || n).parentNode;
129
129
  i && i.insertBefore(n, e);
@@ -308,7 +308,7 @@ function fl() {
308
308
  destroy: a
309
309
  };
310
310
  }
311
- var jn = "mounted", xr = "ready", Pn = "move", Li = "moved", Mr = "click", yl = "active", vl = "inactive", bl = "visible", xl = "hidden", Me = "refresh", Xe = "updated", vi = "resize", Ro = "resized", wl = "drag", $l = "dragging", Sl = "dragged", Mo = "scroll", ri = "scrolled", tc = "overflow", Fr = "destroy", Cl = "arrows:mounted", Tl = "arrows:updated", Ll = "pagination:mounted", El = "pagination:updated", Nr = "navigation:mounted", Hr = "autoplay:play", Pl = "autoplay:playing", Or = "autoplay:pause", Br = "lazyload:loaded", Il = "sk", Al = "sh", Po = "ei";
311
+ var jn = "mounted", xr = "ready", Pn = "move", Li = "moved", Mr = "click", yl = "active", vl = "inactive", bl = "visible", xl = "hidden", Me = "refresh", Xe = "updated", vi = "resize", Ro = "resized", wl = "drag", $l = "dragging", Sl = "dragged", Mo = "scroll", ri = "scrolled", tc = "overflow", Fr = "destroy", Cl = "arrows:mounted", Tl = "arrows:updated", Ll = "pagination:mounted", El = "pagination:updated", Nr = "navigation:mounted", Hr = "autoplay:play", Pl = "autoplay:playing", Or = "autoplay:pause", Br = "lazyload:loaded", Il = "sk", _l = "sh", Po = "ei";
312
312
  function Ee(t) {
313
313
  var e = t ? t.event.bus : document.createDocumentFragment(), n = fl();
314
314
  function i(a, r) {
@@ -368,7 +368,7 @@ function ec(t) {
368
368
  e = o;
369
369
  }
370
370
  function i(o) {
371
- return Ar(ji(o), e);
371
+ return _r(ji(o), e);
372
372
  }
373
373
  return {
374
374
  set: n,
@@ -417,14 +417,14 @@ function ic(t, e, n) {
417
417
  set: y
418
418
  };
419
419
  }
420
- var No = "Arrow", Ho = No + "Left", Oo = No + "Right", _l = No + "Up", Wl = No + "Down", ca = "rtl", Bo = "ttb", Zo = {
420
+ var No = "Arrow", Ho = No + "Left", Oo = No + "Right", Al = No + "Up", Wl = No + "Down", ca = "rtl", Bo = "ttb", Zo = {
421
421
  width: ["height"],
422
422
  left: ["top", "right"],
423
423
  right: ["bottom", "left"],
424
424
  x: ["y"],
425
425
  X: ["Y"],
426
426
  Y: ["X"],
427
- ArrowLeft: [_l, Oo],
427
+ ArrowLeft: [Al, Oo],
428
428
  ArrowRight: [Wl, Ho]
429
429
  };
430
430
  function oc(t, e, n) {
@@ -478,8 +478,8 @@ function vc(t, e, n) {
478
478
  });
479
479
  }
480
480
  function $(v) {
481
- var A = Vr.concat("style");
482
- En(u), Sn(r, d), Sn(b, x), fn([b, y], A), fn(r, v ? A : ["style", Hi]);
481
+ var _ = Vr.concat("style");
482
+ En(u), Sn(r, d), Sn(b, x), fn([b, y], _), fn(r, v ? _ : ["style", Hi]);
483
483
  }
484
484
  function C() {
485
485
  Sn(r, d), Sn(b, x), d = R(Qo), x = R(ga), hn(r, d), hn(b, x), Ut(r, en, n.label), Ut(r, zr, n.labelledby);
@@ -492,8 +492,8 @@ function vc(t, e, n) {
492
492
  next: Nl,
493
493
  bar: cc,
494
494
  toggle: dc
495
- }, function(v, A) {
496
- l[A] = E("." + v);
495
+ }, function(v, _) {
496
+ l[_] = E("." + v);
497
497
  }), Mi(l, {
498
498
  root: r,
499
499
  track: b,
@@ -502,12 +502,12 @@ function vc(t, e, n) {
502
502
  });
503
503
  }
504
504
  function k() {
505
- var v = r.id || Qs(Gi), A = n.role;
506
- r.id = v, b.id = b.id || v + "-track", y.id = y.id || v + "-list", !sn(r, Cn) && r.tagName !== "SECTION" && A && Ut(r, Cn, A), Ut(r, Hi, c.carousel), Ut(y, Cn, "presentation");
505
+ var v = r.id || Qs(Gi), _ = n.role;
506
+ r.id = v, b.id = b.id || v + "-track", y.id = y.id || v + "-list", !sn(r, Cn) && r.tagName !== "SECTION" && _ && Ut(r, Cn, _), Ut(r, Hi, c.carousel), Ut(y, Cn, "presentation");
507
507
  }
508
508
  function E(v) {
509
- var A = gl(r, v);
510
- return A && fc(A, "." + Qo) === r ? A : void 0;
509
+ var _ = gl(r, v);
510
+ return _ && fc(_, "." + Qo) === r ? _ : void 0;
511
511
  }
512
512
  function R(v) {
513
513
  return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v === Qo && oi];
@@ -525,9 +525,9 @@ function bc(t, e, n, i) {
525
525
  w || (i.id = u.id + "-slide" + Rr(e + 1), Ut(i, Cn, p ? "tabpanel" : "group"), Ut(i, Hi, y.slide), Ut(i, en, C || br(y.slideLabel, [e + 1, t.length]))), v();
526
526
  }
527
527
  function v() {
528
- c(i, "click", we(r, Mr, X)), c(i, "keydown", we(r, Il, X)), a([Li, Al, ri], T), a(Nr, V), b && a(Pn, m);
528
+ c(i, "click", we(r, Mr, X)), c(i, "keydown", we(r, Il, X)), a([Li, _l, ri], T), a(Nr, V), b && a(Pn, m);
529
529
  }
530
- function A() {
530
+ function _() {
531
531
  E = !0, o.destroy(), Sn(i, gc), fn(i, Vr), Ut(i, "style", $), Ut(i, en, C || "");
532
532
  }
533
533
  function V() {
@@ -570,7 +570,7 @@ function bc(t, e, n, i) {
570
570
  var j = tn(l.Elements.track), H = tn(i), Y = L("left", !0), it = L("right", !0);
571
571
  return Eo(j[Y]) <= Ni(H[Y]) && Eo(H[it]) <= Ni(j[it]);
572
572
  }
573
- function _(j, H) {
573
+ function A(j, H) {
574
574
  var Y = Je(j - e);
575
575
  return !w && (d.rewind || t.is(Ei)) && (Y = Dn(Y, t.length - Y)), Y <= H;
576
576
  }
@@ -581,10 +581,10 @@ function bc(t, e, n, i) {
581
581
  container: k,
582
582
  isClone: w,
583
583
  mount: R,
584
- destroy: A,
584
+ destroy: _,
585
585
  update: T,
586
586
  style: U,
587
- isWithin: _
587
+ isWithin: A
588
588
  };
589
589
  return X;
590
590
  }
@@ -632,7 +632,7 @@ function xc(t, e, n) {
632
632
  rn(T, function(N) {
633
633
  if (zn(N) && (N = ml(N)), dl(N)) {
634
634
  var U = l[I];
635
- U ? _r(N, U) : Ki(u, N), hn(N, n.classes.slide), A(N, we(a, vi));
635
+ U ? Ar(N, U) : Ki(u, N), hn(N, n.classes.slide), _(N, we(a, vi));
636
636
  }
637
637
  }), a(Me);
638
638
  }
@@ -646,7 +646,7 @@ function xc(t, e, n) {
646
646
  }
647
647
  function R(T) {
648
648
  return d.filter(cl(T) ? T : function(I) {
649
- return zn(T) ? ki(I.slide, T) : Ar(ji(T), I.index);
649
+ return zn(T) ? ki(I.slide, T) : _r(ji(T), I.index);
650
650
  });
651
651
  }
652
652
  function v(T, I, N) {
@@ -654,7 +654,7 @@ function xc(t, e, n) {
654
654
  U.style(T, I, N);
655
655
  });
656
656
  }
657
- function A(T, I) {
657
+ function _(T, I) {
658
658
  var N = Wr(T, "img"), U = N.length;
659
659
  U ? N.forEach(function(st) {
660
660
  r(st, "load error", function() {
@@ -695,7 +695,7 @@ function wc(t, e, n) {
695
695
  }
696
696
  function k(X) {
697
697
  var j = tn(d);
698
- (X || L.width !== j.width || L.height !== j.height) && (ln(x, "height", R()), p(l("marginRight"), Yn(n.gap)), p("width", A()), p("height", V(), !0), L = j, r(Ro), $ !== ($ = _()) && ($n(d, Dl, $), r(tc, $)));
698
+ (X || L.width !== j.width || L.height !== j.height) && (ln(x, "height", R()), p(l("marginRight"), Yn(n.gap)), p("width", _()), p("height", V(), !0), L = j, r(Ro), $ !== ($ = A()) && ($n(d, Dl, $), r(tc, $)));
699
699
  }
700
700
  function E(X) {
701
701
  var j = n.padding, H = l(X ? "right" : "left");
@@ -708,7 +708,7 @@ function wc(t, e, n) {
708
708
  function v() {
709
709
  return Yn(n.height || tn(b).width * n.heightRatio);
710
710
  }
711
- function A() {
711
+ function _() {
712
712
  return n.autoWidth ? null : Yn(n.fixedWidth) || (f ? "" : m());
713
713
  }
714
714
  function V() {
@@ -743,7 +743,7 @@ function wc(t, e, n) {
743
743
  function B(X) {
744
744
  return parseFloat(ln(x, l("padding" + (X ? "Right" : "Left")))) || 0;
745
745
  }
746
- function _() {
746
+ function A() {
747
747
  return t.is(Yi) || U(!0) > T();
748
748
  }
749
749
  return {
@@ -754,7 +754,7 @@ function wc(t, e, n) {
754
754
  sliderSize: U,
755
755
  totalSize: N,
756
756
  getPadding: B,
757
- isOverflow: _
757
+ isOverflow: A
758
758
  };
759
759
  }
760
760
  var $c = 2;
@@ -780,7 +780,7 @@ function Sc(t, e, n) {
780
780
  fo(C, C);
781
781
  fo(C.slice(-$), C.slice(0, $)).forEach(function(k, E) {
782
782
  var R = E < $, v = f(k.slide, E);
783
- R ? _r(v, C[0].slide) : Ki(a.list, v), fo(l, v), r.register(v, E - $ + (R ? 0 : w), k.index);
783
+ R ? Ar(v, C[0].slide) : Ki(a.list, v), fo(l, v), r.register(v, E - $ + (R ? 0 : w), k.index);
784
784
  });
785
785
  }
786
786
  }
@@ -812,17 +812,17 @@ function Cc(t, e, n) {
812
812
  e.Controller.isBusy() || (e.Scroll.cancel(), v(t.index), e.Slides.update());
813
813
  }
814
814
  function R(H, Y, it, rt) {
815
- H !== Y && X(H > it) && (T(), A(m(U(), H > it), !0)), r(Ti), a(Pn, Y, it, H), w.start(Y, function() {
815
+ H !== Y && X(H > it) && (T(), _(m(U(), H > it), !0)), r(Ti), a(Pn, Y, it, H), w.start(Y, function() {
816
816
  r(yi), a(Li, Y, it, H), rt && rt();
817
817
  });
818
818
  }
819
819
  function v(H) {
820
- A(N(H, !0));
820
+ _(N(H, !0));
821
821
  }
822
- function A(H, Y) {
822
+ function _(H, Y) {
823
823
  if (!t.is(Yi)) {
824
824
  var it = Y ? H : V(H);
825
- ln($, "transform", "translate" + p("X") + "(" + it + "px)"), H !== it && a(Al);
825
+ ln($, "transform", "translate" + p("X") + "(" + it + "px)"), H !== it && a(_l);
826
826
  }
827
827
  }
828
828
  function V(H) {
@@ -833,11 +833,11 @@ function Cc(t, e, n) {
833
833
  return H;
834
834
  }
835
835
  function m(H, Y) {
836
- var it = H - _(Y), rt = b();
836
+ var it = H - A(Y), rt = b();
837
837
  return H -= f(rt * (Ni(Je(it) / rt) || 1)) * (Y ? 1 : -1), H;
838
838
  }
839
839
  function T() {
840
- A(U(), !0), w.cancel();
840
+ _(U(), !0), w.cancel();
841
841
  }
842
842
  function I(H) {
843
843
  for (var Y = e.Slides.get(), it = 0, rt = 1 / 0, M = 0; M < Y.length; M++) {
@@ -864,7 +864,7 @@ function Cc(t, e, n) {
864
864
  var Y = n.focus;
865
865
  return Y === "center" ? (x() - l(H, !0)) / 2 : +Y * l(H) || 0;
866
866
  }
867
- function _(H) {
867
+ function A(H) {
868
868
  return N(H ? e.Controller.getEnd() : 0, !!n.trimSpace);
869
869
  }
870
870
  function X(H) {
@@ -873,27 +873,27 @@ function Cc(t, e, n) {
873
873
  }
874
874
  function j(H, Y) {
875
875
  Y = qi(Y) ? U() : Y;
876
- var it = H !== !0 && f(Y) < f(_(!1)), rt = H !== !1 && f(Y) > f(_(!0));
876
+ var it = H !== !0 && f(Y) < f(A(!1)), rt = H !== !1 && f(Y) > f(A(!0));
877
877
  return it || rt;
878
878
  }
879
879
  return {
880
880
  mount: k,
881
881
  move: R,
882
882
  jump: v,
883
- translate: A,
883
+ translate: _,
884
884
  shift: m,
885
885
  cancel: T,
886
886
  toIndex: I,
887
887
  toPosition: N,
888
888
  getPosition: U,
889
- getLimit: _,
889
+ getLimit: A,
890
890
  exceededLimit: j,
891
891
  reposition: E
892
892
  };
893
893
  }
894
894
  function Tc(t, e, n) {
895
895
  var i = Ee(t), o = i.on, a = i.emit, r = e.Move, c = r.getPosition, l = r.getLimit, u = r.toPosition, d = e.Slides, x = d.isEnough, b = d.getLength, y = n.omitEnd, p = t.is(Ei), f = t.is(bi), L = we(U, !1), $ = we(U, !0), C = n.start || 0, w, k = C, E, R, v;
896
- function A() {
896
+ function _() {
897
897
  V(), o([Xe, Me, Po], V), o(Ro, m);
898
898
  }
899
899
  function V() {
@@ -906,13 +906,13 @@ function Tc(t, e, n) {
906
906
  }
907
907
  function T(h, ot, yt) {
908
908
  if (!at()) {
909
- var vt = N(h), Bt = _(vt);
909
+ var vt = N(h), Bt = A(vt);
910
910
  Bt > -1 && (ot || Bt !== C) && (it(Bt), r.move(vt, Bt, k, yt));
911
911
  }
912
912
  }
913
913
  function I(h, ot, yt, vt) {
914
914
  e.Scroll.scroll(h, ot, yt, function() {
915
- var Bt = _(r.toIndex(c()));
915
+ var Bt = A(r.toIndex(c()));
916
916
  it(y ? Dn(Bt, w) : Bt), vt && vt();
917
917
  });
918
918
  }
@@ -927,7 +927,7 @@ function Tc(t, e, n) {
927
927
  }
928
928
  function U(h, ot) {
929
929
  var yt = R || (M() ? 1 : v), vt = st(C + yt * (h ? -1 : 1), C, !(R || M()));
930
- return vt === -1 && f && !hl(c(), l(!h), 1) ? h ? 0 : w : ot ? vt : _(vt);
930
+ return vt === -1 && f && !hl(c(), l(!h), 1) ? h ? 0 : w : ot ? vt : A(vt);
931
931
  }
932
932
  function st(h, ot, yt) {
933
933
  if (x() || M()) {
@@ -943,7 +943,7 @@ function Tc(t, e, n) {
943
943
  h < C ? --h : ++h;
944
944
  return h;
945
945
  }
946
- function _(h) {
946
+ function A(h) {
947
947
  return p ? (h + E) % E || 0 : h;
948
948
  }
949
949
  function X() {
@@ -977,7 +977,7 @@ function Tc(t, e, n) {
977
977
  return t.state.is([Ti, Vi]) && !!n.waitForTransition;
978
978
  }
979
979
  return {
980
- mount: A,
980
+ mount: _,
981
981
  go: T,
982
982
  scroll: I,
983
983
  getNext: L,
@@ -1013,13 +1013,13 @@ function Pc(t, e, n) {
1013
1013
  i.destroy(), Sn(y, $), L ? (ii(x ? [p, f] : y), p = f = null) : fn([p, f], Vr);
1014
1014
  }
1015
1015
  function v() {
1016
- o([jn, Li, Me, ri, Po], T), a(f, "click", we(A, ">")), a(p, "click", we(A, "<"));
1016
+ o([jn, Li, Me, ri, Po], T), a(f, "click", we(_, ">")), a(p, "click", we(_, "<"));
1017
1017
  }
1018
- function A(I) {
1018
+ function _(I) {
1019
1019
  d.go(I, !0);
1020
1020
  }
1021
1021
  function V() {
1022
- y = x || gi("div", c.arrows), p = m(!0), f = m(!1), L = !0, Ki(y, [p, f]), !x && _r(y, b);
1022
+ y = x || gi("div", c.arrows), p = m(!0), f = m(!1), L = !0, Ki(y, [p, f]), !x && Ar(y, b);
1023
1023
  }
1024
1024
  function m(I) {
1025
1025
  var N = '<button class="' + c.arrow + " " + (I ? c.prev : c.next) + '" type="button"><svg xmlns="' + Lc + '" viewBox="0 0 ' + eo + " " + eo + '" width="' + eo + '" height="' + eo + '" focusable="false"><path d="' + (n.arrowPath || Ec) + '" />';
@@ -1039,7 +1039,7 @@ function Pc(t, e, n) {
1039
1039
  };
1040
1040
  }
1041
1041
  var Ic = kr + "-interval";
1042
- function Ac(t, e, n) {
1042
+ function _c(t, e, n) {
1043
1043
  var i = Ee(t), o = i.on, a = i.bind, r = i.emit, c = Fo(n.interval, t.go.bind(t, ">"), v), l = c.isPaused, u = e.Elements, d = e.Elements, x = d.root, b = d.toggle, y = n.autoplay, p, f, L = y === "pause";
1044
1044
  function $() {
1045
1045
  y && (C(), b && Ut(b, Xi, u.track.id), L || w(), R());
@@ -1051,7 +1051,7 @@ function Ac(t, e, n) {
1051
1051
  f = V.type === "focusin", E();
1052
1052
  }), b && a(b, "click", function() {
1053
1053
  L ? w() : k(!0);
1054
- }), o([Pn, Mo, Me], c.rewind), o(Pn, A);
1054
+ }), o([Pn, Mo, Me], c.rewind), o(Pn, _);
1055
1055
  }
1056
1056
  function w() {
1057
1057
  l() && e.Slides.isEnough() && (c.start(!n.resetProgress), f = p = L = !1, R(), r(Hr));
@@ -1069,7 +1069,7 @@ function Ac(t, e, n) {
1069
1069
  var m = u.bar;
1070
1070
  m && ln(m, "width", V * 100 + "%"), r(Pl, V);
1071
1071
  }
1072
- function A(V) {
1072
+ function _(V) {
1073
1073
  var m = e.Slides.getAt(V);
1074
1074
  c.set(m && +sn(m.slide, Ic) || n.interval);
1075
1075
  }
@@ -1081,7 +1081,7 @@ function Ac(t, e, n) {
1081
1081
  isPaused: l
1082
1082
  };
1083
1083
  }
1084
- function _c(t, e, n) {
1084
+ function Ac(t, e, n) {
1085
1085
  var i = Ee(t), o = i.on;
1086
1086
  function a() {
1087
1087
  n.cover && (o(Br, we(c, !0)), o([jn, Xe, Me], we(r, !0)));
@@ -1106,20 +1106,20 @@ function Nc(t, e, n) {
1106
1106
  function L() {
1107
1107
  o(Pn, k), o([Xe, Me], E);
1108
1108
  }
1109
- function $(v, A, V, m, T) {
1109
+ function $(v, _, V, m, T) {
1110
1110
  var I = l();
1111
1111
  if (k(), V && (!b || !d())) {
1112
1112
  var N = e.Layout.sliderSize(), U = vr(v) * N * Eo(Je(v) / N) || 0;
1113
1113
  v = c.toPosition(e.Controller.toDest(v % N)) + U;
1114
1114
  }
1115
1115
  var st = hl(I, v, 1);
1116
- f = 1, A = st ? 0 : A || Lo(Je(v - I) / Mc, Fc), p = m, y = Fo(A, C, we(w, I, v, T), 1), r(Vi), a(Mo), y.start();
1116
+ f = 1, _ = st ? 0 : _ || Lo(Je(v - I) / Mc, Fc), p = m, y = Fo(_, C, we(w, I, v, T), 1), r(Vi), a(Mo), y.start();
1117
1117
  }
1118
1118
  function C() {
1119
1119
  r(yi), p && p(), a(ri);
1120
1120
  }
1121
- function w(v, A, V, m) {
1122
- var T = l(), I = v + (A - v) * R(m), N = (I - T) * f;
1121
+ function w(v, _, V, m) {
1122
+ var T = l(), I = v + (_ - v) * R(m), N = (I - T) * f;
1123
1123
  x(T + N), b && !V && d() && (f *= Rc, Je(N) < Wc && $(u(d(!0)), kc, !1, p, !0));
1124
1124
  }
1125
1125
  function k() {
@@ -1129,8 +1129,8 @@ function Nc(t, e, n) {
1129
1129
  y && !y.isPaused() && (k(), C());
1130
1130
  }
1131
1131
  function R(v) {
1132
- var A = n.easingFunc;
1133
- return A ? A(v) : 1 - Math.pow(1 - v, 4);
1132
+ var _ = n.easingFunc;
1133
+ return _ ? _(v) : 1 - Math.pow(1 - v, 4);
1134
1134
  }
1135
1135
  return {
1136
1136
  mount: L,
@@ -1144,9 +1144,9 @@ var ui = {
1144
1144
  capture: !0
1145
1145
  };
1146
1146
  function Hc(t, e, n) {
1147
- var i = Ee(t), o = i.on, a = i.emit, r = i.bind, c = i.unbind, l = t.state, u = e.Move, d = e.Scroll, x = e.Controller, b = e.Elements.track, y = e.Media.reduce, p = e.Direction, f = p.resolve, L = p.orient, $ = u.getPosition, C = u.exceededLimit, w, k, E, R, v, A = !1, V, m, T;
1147
+ var i = Ee(t), o = i.on, a = i.emit, r = i.bind, c = i.unbind, l = t.state, u = e.Move, d = e.Scroll, x = e.Controller, b = e.Elements.track, y = e.Media.reduce, p = e.Direction, f = p.resolve, L = p.orient, $ = u.getPosition, C = u.exceededLimit, w, k, E, R, v, _ = !1, V, m, T;
1148
1148
  function I() {
1149
- r(b, tr, fr, ui), r(b, er, fr, ui), r(b, Vl, U, ui), r(b, "click", _, {
1149
+ r(b, tr, fr, ui), r(b, er, fr, ui), r(b, Vl, U, ui), r(b, "click", A, {
1150
1150
  capture: !0
1151
1151
  }), r(b, "dragstart", wn), o([jn, Xe], N);
1152
1152
  }
@@ -1164,14 +1164,14 @@ function Hc(t, e, n) {
1164
1164
  if (l.is(ho) || (l.set(ho), a(wl)), G.cancelable)
1165
1165
  if (v) {
1166
1166
  u.translate(w + yt(M(G)));
1167
- var O = at(G) > ha, F = A !== (A = C());
1167
+ var O = at(G) > ha, F = _ !== (_ = C());
1168
1168
  (O || F) && X(G), V = !0, a($l), wn(G);
1169
1169
  } else Y(G) && (v = H(G), wn(G));
1170
1170
  }
1171
1171
  function B(G) {
1172
1172
  l.is(ho) && (l.set(yi), a(Sl)), v && (j(G), wn(G)), c(T, tr, st), c(T, er, B), v = !1;
1173
1173
  }
1174
- function _(G) {
1174
+ function A(G) {
1175
1175
  !m && V && wn(G, !0);
1176
1176
  }
1177
1177
  function X(G) {
@@ -1179,7 +1179,7 @@ function Hc(t, e, n) {
1179
1179
  }
1180
1180
  function j(G) {
1181
1181
  var O = it(G), F = rt(O), ht = n.rewind && n.rewindByDrag;
1182
- y(!1), R ? x.scroll(F, 0, n.snap) : t.is(Yi) ? x.go(L(vr(O)) < 0 ? ht ? "<" : "-" : ht ? ">" : "+") : t.is(bi) && A && ht ? x.go(C(!0) ? ">" : "<") : x.go(x.toDest(F), !0), y(!0);
1182
+ y(!1), R ? x.scroll(F, 0, n.snap) : t.is(Yi) ? x.go(L(vr(O)) < 0 ? ht ? "<" : "-" : ht ? ">" : "+") : t.is(bi) && _ && ht ? x.go(C(!0) ? ">" : "<") : x.go(x.toDest(F), !0), y(!0);
1183
1183
  }
1184
1184
  function H(G) {
1185
1185
  var O = n.dragMinThreshold, F = Wi(O), ht = F && O.mouse || 0, Lt = (F ? O.touch : +O) || 10;
@@ -1189,7 +1189,7 @@ function Hc(t, e, n) {
1189
1189
  return Je(M(G)) > Je(M(G, !0));
1190
1190
  }
1191
1191
  function it(G) {
1192
- if (t.is(Ei) || !A) {
1192
+ if (t.is(Ei) || !_) {
1193
1193
  var O = at(G);
1194
1194
  if (O && O < ha)
1195
1195
  return M(G) / O;
@@ -1212,7 +1212,7 @@ function Hc(t, e, n) {
1212
1212
  return (Bt(G) ? G.changedTouches[0] : G)["page" + f(O ? "Y" : "X")];
1213
1213
  }
1214
1214
  function yt(G) {
1215
- return G / (A && t.is(bi) ? yc : 1);
1215
+ return G / (_ && t.is(bi) ? yc : 1);
1216
1216
  }
1217
1217
  function vt(G) {
1218
1218
  var O = n.noDrag;
@@ -1237,7 +1237,7 @@ var Oc = {
1237
1237
  Spacebar: " ",
1238
1238
  Right: Oo,
1239
1239
  Left: Ho,
1240
- Up: _l,
1240
+ Up: Al,
1241
1241
  Down: Wl
1242
1242
  };
1243
1243
  function jr(t) {
@@ -1277,7 +1277,7 @@ function Bc(t, e, n) {
1277
1277
  disable: p
1278
1278
  };
1279
1279
  }
1280
- var Ai = kr + "-lazy", vo = Ai + "-srcset", zc = "[" + Ai + "], [" + vo + "]";
1280
+ var _i = kr + "-lazy", vo = _i + "-srcset", zc = "[" + _i + "], [" + vo + "]";
1281
1281
  function Dc(t, e, n) {
1282
1282
  var i = Ee(t), o = i.on, a = i.off, r = i.bind, c = i.emit, l = n.lazyLoad === "sequential", u = [Li, ri], d = [];
1283
1283
  function x() {
@@ -1289,10 +1289,10 @@ function Dc(t, e, n) {
1289
1289
  function y() {
1290
1290
  e.Slides.forEach(function(C) {
1291
1291
  Wr(C.slide, zc).forEach(function(w) {
1292
- var k = sn(w, Ai), E = sn(w, vo);
1292
+ var k = sn(w, _i), E = sn(w, vo);
1293
1293
  if (k !== w.src || E !== w.srcset) {
1294
- var R = n.classes.spinner, v = w.parentElement, A = Ui(v, "." + R) || gi("span", R, v);
1295
- d.push([w, C, A]), w.src || Fi(w, "none");
1294
+ var R = n.classes.spinner, v = w.parentElement, _ = Ui(v, "." + R) || gi("span", R, v);
1295
+ d.push([w, C, _]), w.src || Fi(w, "none");
1296
1296
  }
1297
1297
  });
1298
1298
  });
@@ -1305,7 +1305,7 @@ function Dc(t, e, n) {
1305
1305
  }
1306
1306
  function f(C) {
1307
1307
  var w = C[0];
1308
- hn(C[1].slide, $r), r(w, "load error", we(L, C)), Ut(w, "src", sn(w, Ai)), Ut(w, "srcset", sn(w, vo)), fn(w, Ai), fn(w, vo);
1308
+ hn(C[1].slide, $r), r(w, "load error", we(L, C)), Ut(w, "src", sn(w, _i)), Ut(w, "srcset", sn(w, vo)), fn(w, _i), fn(w, vo);
1309
1309
  }
1310
1310
  function L(C, w) {
1311
1311
  var k = C[0], E = C[1];
@@ -1328,7 +1328,7 @@ function Vc(t, e, n) {
1328
1328
  p && Fi(p, m ? "" : "none"), m && (o([Pn, Mo, ri], V), k(), V(), a(Ll, {
1329
1329
  list: L,
1330
1330
  items: f
1331
- }, A(t.index)));
1331
+ }, _(t.index)));
1332
1332
  }
1333
1333
  function w() {
1334
1334
  L && (ii(p ? qn(L.children) : L), Sn(L, $), En(f), L = null), i.destroy();
@@ -1337,15 +1337,15 @@ function Vc(t, e, n) {
1337
1337
  var m = t.length, T = n.classes, I = n.i18n, N = n.perPage, U = d() ? u.getEnd() + 1 : Ni(m / N);
1338
1338
  L = p || gi("ul", T.pagination, l.track.parentElement), hn(L, $ = Vo + "--" + v()), Ut(L, Cn, "tablist"), Ut(L, en, I.select), Ut(L, Dr, v() === Bo ? "vertical" : "");
1339
1339
  for (var st = 0; st < U; st++) {
1340
- var B = gi("li", null, L), _ = gi("button", {
1340
+ var B = gi("li", null, L), A = gi("button", {
1341
1341
  class: T.page,
1342
1342
  type: "button"
1343
1343
  }, B), X = c.getIn(st).map(function(H) {
1344
1344
  return H.slide.id;
1345
1345
  }), j = !d() && N > 1 ? I.pageX : I.slideX;
1346
- r(_, "click", we(E, st)), n.paginationKeyboard && r(_, "keydown", we(R, st)), Ut(B, Cn, "presentation"), Ut(_, Cn, "tab"), Ut(_, Xi, X.join(" ")), Ut(_, en, br(j, st + 1)), Ut(_, hi, -1), f.push({
1346
+ r(A, "click", we(E, st)), n.paginationKeyboard && r(A, "keydown", we(R, st)), Ut(B, Cn, "presentation"), Ut(A, Cn, "tab"), Ut(A, Xi, X.join(" ")), Ut(A, en, br(j, st + 1)), Ut(A, hi, -1), f.push({
1347
1347
  li: B,
1348
- button: _,
1348
+ button: A,
1349
1349
  page: st
1350
1350
  });
1351
1351
  }
@@ -1362,11 +1362,11 @@ function Vc(t, e, n) {
1362
1362
  function v() {
1363
1363
  return n.paginationDirection || n.direction;
1364
1364
  }
1365
- function A(m) {
1365
+ function _(m) {
1366
1366
  return f[u.toPage(m)];
1367
1367
  }
1368
1368
  function V() {
1369
- var m = A(x(!0)), T = A(x());
1369
+ var m = _(x(!0)), T = _(x());
1370
1370
  if (m) {
1371
1371
  var I = m.button;
1372
1372
  Sn(I, oi), fn(I, da), Ut(I, hi, -1);
@@ -1384,7 +1384,7 @@ function Vc(t, e, n) {
1384
1384
  items: f,
1385
1385
  mount: C,
1386
1386
  destroy: w,
1387
- getAt: A,
1387
+ getAt: _,
1388
1388
  update: V
1389
1389
  };
1390
1390
  }
@@ -1421,7 +1421,7 @@ function jc(t, e, n) {
1421
1421
  t.go(p.index);
1422
1422
  }
1423
1423
  function y(p, f) {
1424
- Ar(qc, jr(f)) && (b(p), wn(f));
1424
+ _r(qc, jr(f)) && (b(p), wn(f));
1425
1425
  }
1426
1426
  return {
1427
1427
  setup: we(e.Media.set, {
@@ -1482,8 +1482,8 @@ var Xc = /* @__PURE__ */ Object.freeze({
1482
1482
  Move: Cc,
1483
1483
  Controller: Tc,
1484
1484
  Arrows: Pc,
1485
- Autoplay: Ac,
1486
- Cover: _c,
1485
+ Autoplay: _c,
1486
+ Cover: Ac,
1487
1487
  Scroll: Nc,
1488
1488
  Drag: Hc,
1489
1489
  Keyboard: Bc,
@@ -1872,25 +1872,25 @@ const sd = "SvgImage-module__svg___q3xE-", cd = "SvgImage-module__img___VsTm-",
1872
1872
  }
1873
1873
  );
1874
1874
  }, pd = {
1875
- "top-left": At.topLeftAlignment,
1876
- "top-center": At.topCenterAlignment,
1877
- "top-right": At.topRightAlignment,
1878
- "middle-left": At.middleLeftAlignment,
1879
- "middle-center": At.middleCenterAlignment,
1880
- "middle-right": At.middleRightAlignment,
1881
- "bottom-left": At.bottomLeftAlignment,
1882
- "bottom-center": At.bottomCenterAlignment,
1883
- "bottom-right": At.bottomRightAlignment
1875
+ "top-left": _t.topLeftAlignment,
1876
+ "top-center": _t.topCenterAlignment,
1877
+ "top-right": _t.topRightAlignment,
1878
+ "middle-left": _t.middleLeftAlignment,
1879
+ "middle-center": _t.middleCenterAlignment,
1880
+ "middle-right": _t.middleRightAlignment,
1881
+ "bottom-left": _t.bottomLeftAlignment,
1882
+ "bottom-center": _t.bottomCenterAlignment,
1883
+ "bottom-right": _t.bottomRightAlignment
1884
1884
  };
1885
1885
  function md({ settings: t, content: e, styles: n, isEditor: i }) {
1886
- const [o, a] = gt(null), { widthSettings: r, fontSettings: c, letterSpacing: l, textAlign: u, wordSpacing: d, fontSizeLineHeight: x, textAppearance: b, color: y } = n.imageCaption ?? {}, [p, f] = gt(void 0), [L, $] = gt(null), [C, w] = gt(0), [k, E] = gt(0), { direction: R, transition: v, controls: A, pagination: V, imageCaption: m, triggers: T } = t, I = mt(v.type), { x: N, y: U } = t.controls.offset, st = (B) => {
1886
+ const [o, a] = gt(null), { widthSettings: r, fontSettings: c, letterSpacing: l, textAlign: u, wordSpacing: d, fontSizeLineHeight: x, textAppearance: b, color: y } = n.imageCaption ?? {}, [p, f] = gt(void 0), [L, $] = gt(null), [C, w] = gt(0), [k, E] = gt(0), { direction: R, transition: v, controls: _, pagination: V, imageCaption: m, triggers: T } = t, I = mt(v.type), { x: N, y: U } = t.controls.offset, st = (B) => {
1887
1887
  o && o.go(B);
1888
1888
  };
1889
1889
  return Ot(() => {
1890
1890
  if (!L) return;
1891
- const B = new ResizeObserver((_) => {
1891
+ const B = new ResizeObserver((A) => {
1892
1892
  if (!o) return;
1893
- const [X] = _;
1893
+ const [X] = A;
1894
1894
  f({
1895
1895
  width: Math.round(X.contentRect.width),
1896
1896
  height: Math.round(X.contentRect.height)
@@ -1899,10 +1899,10 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
1899
1899
  return B.observe(L), () => B.unobserve(L);
1900
1900
  }, [L]), Ot(() => {
1901
1901
  !o || I.current === v.type || (E((B) => B + 1), I.current = v.type);
1902
- }, [v.type]), /* @__PURE__ */ s("div", { className: Qt(At.wrapper, { [At.editor]: i }), ref: $, children: /* @__PURE__ */ z(
1902
+ }, [v.type]), /* @__PURE__ */ s("div", { className: Qt(_t.wrapper, { [_t.editor]: i }), ref: $, children: /* @__PURE__ */ z(
1903
1903
  "div",
1904
1904
  {
1905
- className: At.sliderInner,
1905
+ className: _t.sliderInner,
1906
1906
  style: {
1907
1907
  width: p ? p.width : "100%",
1908
1908
  height: p ? p.height : "100%",
@@ -1912,17 +1912,17 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
1912
1912
  t.imageCaption.isActive && /* @__PURE__ */ s(
1913
1913
  "div",
1914
1914
  {
1915
- className: Qt(At.captionBlock),
1915
+ className: Qt(_t.captionBlock),
1916
1916
  children: /* @__PURE__ */ s(
1917
1917
  "div",
1918
1918
  {
1919
- className: At.captionTextWrapper,
1920
- children: e.map((B, _) => /* @__PURE__ */ s(
1919
+ className: _t.captionTextWrapper,
1920
+ children: e.map((B, A) => /* @__PURE__ */ s(
1921
1921
  "div",
1922
1922
  {
1923
- className: Qt(At.captionText, pd[m.alignment], {
1924
- [At.withPointerEvents]: _ === C && i,
1925
- [At.active]: _ === C
1923
+ className: Qt(_t.captionText, pd[m.alignment], {
1924
+ [_t.withPointerEvents]: A === C && i,
1925
+ [_t.active]: A === C
1926
1926
  }),
1927
1927
  style: {
1928
1928
  fontFamily: qo(c.fontFamily),
@@ -1944,7 +1944,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
1944
1944
  "div",
1945
1945
  {
1946
1946
  "data-styles": "imageCaption",
1947
- className: At.captionTextInner,
1947
+ className: _t.captionTextInner,
1948
1948
  style: {
1949
1949
  "--link-hover-color": m.linkHoverColor,
1950
1950
  "--link-color": m.linkColor,
@@ -1956,7 +1956,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
1956
1956
  }
1957
1957
  )
1958
1958
  },
1959
- _
1959
+ A
1960
1960
  ))
1961
1961
  }
1962
1962
  )
@@ -1985,20 +1985,20 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
1985
1985
  type: v.type === "fade in" ? "fade" : "loop",
1986
1986
  rewind: !0
1987
1987
  },
1988
- children: e.map((B, _) => /* @__PURE__ */ s(Xr, { children: /* @__PURE__ */ s(
1988
+ children: e.map((B, A) => /* @__PURE__ */ s(Xr, { children: /* @__PURE__ */ s(
1989
1989
  "div",
1990
1990
  {
1991
- className: At.sliderItem,
1991
+ className: _t.sliderItem,
1992
1992
  children: /* @__PURE__ */ s(
1993
1993
  "div",
1994
1994
  {
1995
- className: At.imgWrapper,
1995
+ className: _t.imgWrapper,
1996
1996
  children: /* @__PURE__ */ s(
1997
1997
  "img",
1998
1998
  {
1999
- className: Qt(At.sliderImage, {
2000
- [At.contain]: B.image.objectFit === "contain",
2001
- [At.cover]: B.image.objectFit === "cover"
1999
+ className: Qt(_t.sliderImage, {
2000
+ [_t.contain]: B.image.objectFit === "contain",
2001
+ [_t.cover]: B.image.objectFit === "cover"
2002
2002
  }),
2003
2003
  src: B.image.url,
2004
2004
  alt: B.image.name ?? ""
@@ -2007,21 +2007,21 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
2007
2007
  }
2008
2008
  )
2009
2009
  }
2010
- ) }, _))
2010
+ ) }, A))
2011
2011
  },
2012
2012
  k
2013
2013
  ),
2014
- A.isActive && /* @__PURE__ */ z(ie, { children: [
2014
+ _.isActive && /* @__PURE__ */ z(ie, { children: [
2015
2015
  /* @__PURE__ */ s(
2016
2016
  "div",
2017
2017
  {
2018
- className: Qt(At.arrow, {
2019
- [At.arrowVertical]: R === "vert",
2020
- [At.hoverArrow]: A.show === "on hover"
2018
+ className: Qt(_t.arrow, {
2019
+ [_t.arrowVertical]: R === "vert",
2020
+ [_t.hoverArrow]: _.show === "on hover"
2021
2021
  }),
2022
2022
  style: {
2023
- color: A.color,
2024
- "--arrow-hover-color": A.hover
2023
+ color: _.color,
2024
+ "--arrow-hover-color": _.hover
2025
2025
  },
2026
2026
  children: /* @__PURE__ */ z(
2027
2027
  "button",
@@ -2029,21 +2029,21 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
2029
2029
  onClick: () => {
2030
2030
  st("-1");
2031
2031
  },
2032
- className: At.arrowInner,
2032
+ className: _t.arrowInner,
2033
2033
  style: {
2034
2034
  transform: `translate(${W(N, i)}, ${W(U * (R === "horiz" ? 1 : -1), i)}) scale(${t.controls.scale / 100}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
2035
2035
  },
2036
2036
  children: [
2037
- A.arrowsImgUrl && /* @__PURE__ */ s(
2037
+ _.arrowsImgUrl && /* @__PURE__ */ s(
2038
2038
  cn,
2039
2039
  {
2040
- url: A.arrowsImgUrl,
2041
- fill: A.color,
2042
- hoverFill: A.hover,
2043
- className: Qt(At.arrowImg, At.mirror)
2040
+ url: _.arrowsImgUrl,
2041
+ fill: _.color,
2042
+ hoverFill: _.hover,
2043
+ className: Qt(_t.arrowImg, _t.mirror)
2044
2044
  }
2045
2045
  ),
2046
- !A.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: A.color, className: Qt(At.arrowIcon, At.arrowImg, At.mirror) })
2046
+ !_.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: _.color, className: Qt(_t.arrowIcon, _t.arrowImg, _t.mirror) })
2047
2047
  ]
2048
2048
  }
2049
2049
  )
@@ -2052,33 +2052,33 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
2052
2052
  /* @__PURE__ */ s(
2053
2053
  "div",
2054
2054
  {
2055
- className: Qt(At.arrow, At.nextArrow, {
2056
- [At.arrowVertical]: R === "vert",
2057
- [At.hoverArrow]: A.show === "on hover"
2055
+ className: Qt(_t.arrow, _t.nextArrow, {
2056
+ [_t.arrowVertical]: R === "vert",
2057
+ [_t.hoverArrow]: _.show === "on hover"
2058
2058
  }),
2059
2059
  style: {
2060
- color: A.color,
2061
- "--arrow-hover-color": A.hover
2060
+ color: _.color,
2061
+ "--arrow-hover-color": _.hover
2062
2062
  },
2063
2063
  children: /* @__PURE__ */ z(
2064
2064
  "button",
2065
2065
  {
2066
- className: At.arrowInner,
2066
+ className: _t.arrowInner,
2067
2067
  onClick: () => st("+1"),
2068
2068
  style: {
2069
2069
  transform: `translate(${W(N * (R === "horiz" ? -1 : 1), i)}, ${W(U, i)}) scale(${t.controls.scale / 100}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
2070
2070
  },
2071
2071
  children: [
2072
- A.arrowsImgUrl && /* @__PURE__ */ s(
2072
+ _.arrowsImgUrl && /* @__PURE__ */ s(
2073
2073
  cn,
2074
2074
  {
2075
- url: A.arrowsImgUrl,
2076
- fill: A.color,
2077
- hoverFill: A.hover,
2078
- className: At.arrowImg
2075
+ url: _.arrowsImgUrl,
2076
+ fill: _.color,
2077
+ hoverFill: _.hover,
2078
+ className: _t.arrowImg
2079
2079
  }
2080
2080
  ),
2081
- !A.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: A.color, className: Qt(At.arrowIcon, At.arrowImg) })
2081
+ !_.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: _.color, className: Qt(_t.arrowIcon, _t.arrowImg) })
2082
2082
  ]
2083
2083
  }
2084
2084
  )
@@ -2088,7 +2088,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
2088
2088
  T.triggersList.click && /* @__PURE__ */ s(
2089
2089
  "div",
2090
2090
  {
2091
- className: At.clickOverlay,
2091
+ className: _t.clickOverlay,
2092
2092
  onClick: () => {
2093
2093
  o && o.go("+1");
2094
2094
  }
@@ -2097,46 +2097,46 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
2097
2097
  V.isActive && /* @__PURE__ */ s(
2098
2098
  "div",
2099
2099
  {
2100
- className: Qt(At.pagination, {
2101
- [At.paginationInsideBottom]: V.position === "inside-1" && R === "horiz",
2102
- [At.paginationInsideTop]: V.position === "inside-2" && R === "horiz",
2103
- [At.paginationOutsideBottom]: V.position === "outside-1" && R === "horiz",
2104
- [At.paginationOutsideTop]: V.position === "outside-2" && R === "horiz",
2105
- [At.paginationInsideLeft]: V.position === "inside-1" && R === "vert",
2106
- [At.paginationInsideRight]: V.position === "inside-2" && R === "vert",
2107
- [At.paginationOutsideLeft]: V.position === "outside-1" && R === "vert",
2108
- [At.paginationOutsideRight]: V.position === "outside-2" && R === "vert",
2109
- [At.paginationVertical]: R === "vert"
2100
+ className: Qt(_t.pagination, {
2101
+ [_t.paginationInsideBottom]: V.position === "inside-1" && R === "horiz",
2102
+ [_t.paginationInsideTop]: V.position === "inside-2" && R === "horiz",
2103
+ [_t.paginationOutsideBottom]: V.position === "outside-1" && R === "horiz",
2104
+ [_t.paginationOutsideTop]: V.position === "outside-2" && R === "horiz",
2105
+ [_t.paginationInsideLeft]: V.position === "inside-1" && R === "vert",
2106
+ [_t.paginationInsideRight]: V.position === "inside-2" && R === "vert",
2107
+ [_t.paginationOutsideLeft]: V.position === "outside-1" && R === "vert",
2108
+ [_t.paginationOutsideRight]: V.position === "outside-2" && R === "vert",
2109
+ [_t.paginationVertical]: R === "vert"
2110
2110
  }),
2111
2111
  children: /* @__PURE__ */ s(
2112
2112
  "div",
2113
2113
  {
2114
- className: At.paginationInner,
2114
+ className: _t.paginationInner,
2115
2115
  style: {
2116
2116
  backgroundColor: V.colors[2],
2117
2117
  transform: `scale(${V.scale / 100}) translate(${W(V.offset.x, i)}, ${W(V.offset.y, i)}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
2118
2118
  },
2119
- children: e.map((B, _) => /* @__PURE__ */ s(
2119
+ children: e.map((B, A) => /* @__PURE__ */ s(
2120
2120
  "button",
2121
2121
  {
2122
2122
  onClick: () => {
2123
- o && o.go(_);
2123
+ o && o.go(A);
2124
2124
  },
2125
- className: Qt(At.paginationItem),
2125
+ className: Qt(_t.paginationItem),
2126
2126
  children: /* @__PURE__ */ s(
2127
2127
  "div",
2128
2128
  {
2129
- className: Qt(At.dot, {
2130
- [At.activeDot]: _ === C
2129
+ className: Qt(_t.dot, {
2130
+ [_t.activeDot]: A === C
2131
2131
  }),
2132
2132
  style: {
2133
- backgroundColor: _ === C ? V.colors[0] : V.colors[1],
2133
+ backgroundColor: A === C ? V.colors[0] : V.colors[1],
2134
2134
  "--pagination-hover-color": V.hover
2135
2135
  }
2136
2136
  }
2137
2137
  )
2138
2138
  },
2139
- _
2139
+ A
2140
2140
  ))
2141
2141
  }
2142
2142
  )
@@ -2803,12 +2803,12 @@ async function bd(t, e, n, i) {
2803
2803
  return { width: o, height: a, finalWidth: `${o}px` };
2804
2804
  }
2805
2805
  function xd({ settings: t, content: e, isEditor: n }) {
2806
- const [i, o] = gt(null), [a, r] = gt([]), [c, l] = gt(0), u = mt(0), [d, x] = gt({ x: 0, y: 0 }), [b, y] = gt(1), [p, f] = gt("none"), L = mt({ x: 0, y: 0 }), [$, C] = gt(!1), { sizeType: w, imageWidth: k, randomRangeImageWidth: E } = t.imageSize, { revealPosition: R, visible: v } = t.position, { cursorType: A, target: V, defaultCursorScale: m, defaultCursor: T, hoverCursorScale: I, hoverCursor: N } = t.cursor;
2806
+ const [i, o] = gt(null), [a, r] = gt([]), [c, l] = gt(0), u = mt(0), [d, x] = gt({ x: 0, y: 0 }), [b, y] = gt(1), [p, f] = gt("none"), L = mt({ x: 0, y: 0 }), [$, C] = gt(!1), { sizeType: w, imageWidth: k, randomRangeImageWidth: E } = t.imageSize, { revealPosition: R, visible: v } = t.position, { cursorType: _, target: V, defaultCursorScale: m, defaultCursor: T, hoverCursorScale: I, hoverCursor: N } = t.cursor;
2807
2807
  Ot(() => {
2808
2808
  if (!i) return;
2809
2809
  const B = (j, H) => {
2810
2810
  const Y = i.getBoundingClientRect(), it = j - Y.left, rt = H - Y.top;
2811
- if (x({ x: it, y: rt }), A === "system") {
2811
+ if (x({ x: it, y: rt }), _ === "system") {
2812
2812
  f("none"), y(1);
2813
2813
  return;
2814
2814
  }
@@ -2819,19 +2819,19 @@ function xd({ settings: t, content: e, isEditor: n }) {
2819
2819
  }
2820
2820
  const ot = xa(M, at, a) || V === "area" ? { img: N ?? "none", scale: I } : { img: T ?? "none", scale: m };
2821
2821
  f(ot.img), y(ot.scale);
2822
- }, _ = (j) => {
2822
+ }, A = (j) => {
2823
2823
  j.stopPropagation(), L.current = { x: j.clientX, y: j.clientY }, B(j.clientX, j.clientY);
2824
2824
  }, X = () => {
2825
2825
  $ && B(L.current.x, L.current.y);
2826
2826
  };
2827
- return i.addEventListener("mousemove", _), window.addEventListener("scroll", X, !0), () => {
2828
- i.removeEventListener("mousemove", _), window.removeEventListener("scroll", X, !0);
2827
+ return i.addEventListener("mousemove", A), window.addEventListener("scroll", X, !0), () => {
2828
+ i.removeEventListener("mousemove", A), window.removeEventListener("scroll", X, !0);
2829
2829
  };
2830
2830
  }, [
2831
2831
  i,
2832
2832
  $,
2833
2833
  d,
2834
- A,
2834
+ _,
2835
2835
  V,
2836
2836
  N,
2837
2837
  T,
@@ -2841,7 +2841,7 @@ function xd({ settings: t, content: e, isEditor: n }) {
2841
2841
  ]), Ot(() => {
2842
2842
  $ || (f("none"), y(0));
2843
2843
  }, [$]);
2844
- const U = async (B, _, X, j = {}) => {
2844
+ const U = async (B, A, X, j = {}) => {
2845
2845
  const { width: H, height: Y, finalWidth: it } = await bd(
2846
2846
  B.image.url,
2847
2847
  w,
@@ -2849,8 +2849,8 @@ function xd({ settings: t, content: e, isEditor: n }) {
2849
2849
  E
2850
2850
  );
2851
2851
  let rt = 0, M = 0;
2852
- R === "same" ? (rt = _ / 2, M = X / 2) : (rt = j.x ?? Math.random() * _, M = j.y ?? Math.random() * X);
2853
- const at = Math.min(Math.max(rt, H / 2), _ - H / 2), h = Math.min(Math.max(M, Y / 2), X - Y / 2);
2852
+ R === "same" ? (rt = A / 2, M = X / 2) : (rt = j.x ?? Math.random() * A, M = j.y ?? Math.random() * X);
2853
+ const at = Math.min(Math.max(rt, H / 2), A - H / 2), h = Math.min(Math.max(M, Y / 2), X - Y / 2);
2854
2854
  return {
2855
2855
  id: u.current++,
2856
2856
  url: B.image.url,
@@ -2863,9 +2863,9 @@ function xd({ settings: t, content: e, isEditor: n }) {
2863
2863
  };
2864
2864
  return Ot(() => {
2865
2865
  if (!i || e.length === 0) return;
2866
- const B = i.getBoundingClientRect(), _ = B.width, X = B.height, j = [];
2866
+ const B = i.getBoundingClientRect(), A = B.width, X = B.height, j = [];
2867
2867
  (async () => {
2868
- const Y = e[0], it = await U(Y, _, X);
2868
+ const Y = e[0], it = await U(Y, A, X);
2869
2869
  j.push(it), r(j), l(1);
2870
2870
  })();
2871
2871
  }, [w, k, E, R, i]), Ot(() => {
@@ -2876,11 +2876,11 @@ function xd({ settings: t, content: e, isEditor: n }) {
2876
2876
  ref: o,
2877
2877
  onClick: async (B) => {
2878
2878
  if (!i) return;
2879
- const _ = i.getBoundingClientRect(), X = B.clientX - _.left, j = B.clientY - _.top;
2879
+ const A = i.getBoundingClientRect(), X = B.clientX - A.left, j = B.clientY - A.top;
2880
2880
  if (V === "image" && !xa(X, j, a)) return;
2881
2881
  let H = 0, Y = 0;
2882
- R === "on Click" ? (H = X, Y = j) : R === "same" ? (H = _.width / 2, Y = _.height / 2) : (H = Math.random() * _.width, Y = Math.random() * _.height);
2883
- const it = e[c], rt = await U(it, _.width, _.height, { x: H, y: Y });
2882
+ R === "on Click" ? (H = X, Y = j) : R === "same" ? (H = A.width / 2, Y = A.height / 2) : (H = Math.random() * A.width, Y = Math.random() * A.height);
2883
+ const it = e[c], rt = await U(it, A.width, A.height, { x: H, y: Y });
2884
2884
  r((M) => v === "all" ? [...M, rt] : [rt]), l((M) => M >= e.length - 1 ? 0 : M + 1);
2885
2885
  },
2886
2886
  onMouseEnter: () => C(!0),
@@ -3265,7 +3265,7 @@ const wd = {
3265
3265
  }
3266
3266
  }
3267
3267
  }
3268
- }, $d = "LightBox-module__hidden___9s-9x", Sd = "LightBox-module__heroImage___sTxNF", Cd = "LightBox-module__background___rm9ml", Td = "LightBox-module__editor___4ACaY", Ld = "LightBox-module__contentStyle___Bgnsq", Ed = "LightBox-module__imageStyle___tLIlB", Pd = "LightBox-module__imgWrapper___LuFUp", Id = "LightBox-module__contain___8-yaS", Ad = "LightBox-module__cover___hNvOG", _d = "LightBox-module__caption___b6L2I", Wd = "LightBox-module__captionTextInner___rCGNH", kd = "LightBox-module__lightboxSplide___XFuWC", Rd = "LightBox-module__arrow___iz38X", Md = "LightBox-module__arrowVertical___Zfz81", Fd = "LightBox-module__nextArrow___zkAQN", Nd = "LightBox-module__arrowInner___p48sW", Hd = "LightBox-module__arrowIcon___3VaFf", Od = "LightBox-module__arrowImg___pNV88", Bd = "LightBox-module__mirror___pjeXc", zd = "LightBox-module__thumbsWrapper___GB-nU", Dd = "LightBox-module__thumbsContainerVertical___wttk5", Vd = "LightBox-module__thumbsContainer___osSma", qd = "LightBox-module__thumbsAlignStart___MO6tY", jd = "LightBox-module__thumbsAlignCenter___Q4sUx", Kd = "LightBox-module__thumbsAlignEnd___p4y9R", Ud = "LightBox-module__thumbItem___HvnF3", Gd = "LightBox-module__closeButton___g2khP", Xd = "LightBox-module__fadeIn___0m5GW", Yd = "LightBox-module__slideInLeft___gPYwC", Jd = "LightBox-module__slideInRight___S-pPp", Zd = "LightBox-module__slideInTop___DFdAj", Qd = "LightBox-module__slideInBottom___m27kZ", tu = "LightBox-module__fadeOut___55qBR", eu = "LightBox-module__slideOutLeft___NvU7P", nu = "LightBox-module__slideOutRight___SK7eC", iu = "LightBox-module__slideOutTop___Vgg0z", ou = "LightBox-module__slideOutBottom___nJ0Ef", ru = "LightBox-module__scaleSlide___vZriG", pt = {
3268
+ }, $d = "LightBox-module__hidden___9s-9x", Sd = "LightBox-module__heroImage___sTxNF", Cd = "LightBox-module__background___rm9ml", Td = "LightBox-module__editor___4ACaY", Ld = "LightBox-module__contentStyle___Bgnsq", Ed = "LightBox-module__imageStyle___tLIlB", Pd = "LightBox-module__imgWrapper___LuFUp", Id = "LightBox-module__contain___8-yaS", _d = "LightBox-module__cover___hNvOG", Ad = "LightBox-module__caption___b6L2I", Wd = "LightBox-module__captionTextInner___rCGNH", kd = "LightBox-module__lightboxSplide___XFuWC", Rd = "LightBox-module__arrow___iz38X", Md = "LightBox-module__arrowVertical___Zfz81", Fd = "LightBox-module__nextArrow___zkAQN", Nd = "LightBox-module__arrowInner___p48sW", Hd = "LightBox-module__arrowIcon___3VaFf", Od = "LightBox-module__arrowImg___pNV88", Bd = "LightBox-module__mirror___pjeXc", zd = "LightBox-module__thumbsWrapper___GB-nU", Dd = "LightBox-module__thumbsContainerVertical___wttk5", Vd = "LightBox-module__thumbsContainer___osSma", qd = "LightBox-module__thumbsAlignStart___MO6tY", jd = "LightBox-module__thumbsAlignCenter___Q4sUx", Kd = "LightBox-module__thumbsAlignEnd___p4y9R", Ud = "LightBox-module__thumbItem___HvnF3", Gd = "LightBox-module__closeButton___g2khP", Xd = "LightBox-module__fadeIn___0m5GW", Yd = "LightBox-module__slideInLeft___gPYwC", Jd = "LightBox-module__slideInRight___S-pPp", Zd = "LightBox-module__slideInTop___DFdAj", Qd = "LightBox-module__slideInBottom___m27kZ", tu = "LightBox-module__fadeOut___55qBR", eu = "LightBox-module__slideOutLeft___NvU7P", nu = "LightBox-module__slideOutRight___SK7eC", iu = "LightBox-module__slideOutTop___Vgg0z", ou = "LightBox-module__slideOutBottom___nJ0Ef", ru = "LightBox-module__scaleSlide___vZriG", pt = {
3269
3269
  hidden: $d,
3270
3270
  heroImage: Sd,
3271
3271
  background: Cd,
@@ -3274,8 +3274,8 @@ const wd = {
3274
3274
  imageStyle: Ed,
3275
3275
  imgWrapper: Pd,
3276
3276
  contain: Id,
3277
- cover: Ad,
3278
- caption: _d,
3277
+ cover: _d,
3278
+ caption: Ad,
3279
3279
  captionTextInner: Wd,
3280
3280
  lightboxSplide: kd,
3281
3281
  arrow: Rd,
@@ -3448,7 +3448,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3448
3448
  ] });
3449
3449
  }, su = ({ isOpen: t, onClose: e, content: n, lightboxStyles: i, settings: o, portalId: a, isEditor: r, metadata: c }) => {
3450
3450
  var Dt;
3451
- const { widthSettings: l, fontSettings: u, letterSpacing: d, textAlign: x, wordSpacing: b, fontSizeLineHeight: y, textAppearance: p, color: f } = i.imageCaption ?? {}, [L, $] = gt(0), [C, w] = gt(0), [k, E] = gt(!1), [R, v] = gt(!1), [A, V] = gt({}), m = mt(null), T = mt(null), I = mt(null), N = mt(!1), U = mt(null), st = mt(null), B = mt(null), _ = mt(null), X = mt(!1), j = mt(null), [H, Y] = gt(!1), { appear: it, triggers: rt, slider: M, thumbnail: at, controls: h, area: ot, caption: yt, layout: vt } = o.lightboxBlock, { appearClass: Bt, backdropAppearClass: Z, backdropDisappearClass: ct, disappearClass: G } = au(it.type, it.direction), O = (c == null ? void 0 : c.itemId) ?? null;
3451
+ const { widthSettings: l, fontSettings: u, letterSpacing: d, textAlign: x, wordSpacing: b, fontSizeLineHeight: y, textAppearance: p, color: f } = i.imageCaption ?? {}, [L, $] = gt(0), [C, w] = gt(0), [k, E] = gt(!1), [R, v] = gt(!1), [_, V] = gt({}), m = mt(null), T = mt(null), I = mt(null), N = mt(!1), U = mt(null), st = mt(null), B = mt(null), A = mt(null), X = mt(!1), j = mt(null), [H, Y] = gt(!1), { appear: it, triggers: rt, slider: M, thumbnail: at, controls: h, area: ot, caption: yt, layout: vt } = o.lightboxBlock, { appearClass: Bt, backdropAppearClass: Z, backdropDisappearClass: ct, disappearClass: G } = au(it.type, it.direction), O = (c == null ? void 0 : c.itemId) ?? null;
3452
3452
  Ot(() => {
3453
3453
  const D = () => {
3454
3454
  setTimeout(() => {
@@ -3474,7 +3474,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3474
3474
  ut();
3475
3475
  const P = new ResizeObserver(ut);
3476
3476
  return P.observe(D), () => P.disconnect();
3477
- }, [t, at.isActive, n.length, A, M.direction]);
3477
+ }, [t, at.isActive, n.length, _, M.direction]);
3478
3478
  const F = Wt(() => {
3479
3479
  const D = window.matchMedia("(max-width: 768px)").matches, ut = Sa(ot.color);
3480
3480
  D && !r && ut > 0.9 && (document.body.style.backgroundColor = ""), E(!0), N.current = !0;
@@ -3488,9 +3488,9 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3488
3488
  if (rt.type === "click" && rt.switch === "image")
3489
3489
  rt.repeat === "close" && L === n.length - 1 ? F() : (J = m.current) == null || J.go("+1");
3490
3490
  else if (rt.type === "click" && rt.switch === "50/50") {
3491
- const tt = D.getBoundingClientRect(), ft = ut - tt.left, St = P - tt.top, Xt = tt.width, _t = tt.height;
3491
+ const tt = D.getBoundingClientRect(), ft = ut - tt.left, St = P - tt.top, Xt = tt.width, At = tt.height;
3492
3492
  let Mt;
3493
- M.direction === "horiz" ? Mt = ft < Xt / 2 ? "-1" : "+1" : Mt = St < _t / 2 ? "-1" : "+1", (q = m.current) == null || q.go(Mt);
3493
+ M.direction === "horiz" ? Mt = ft < Xt / 2 ? "-1" : "+1" : Mt = St < At / 2 ? "-1" : "+1", (q = m.current) == null || q.go(Mt);
3494
3494
  }
3495
3495
  }
3496
3496
  }, Lt = (D) => {
@@ -3589,19 +3589,19 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3589
3589
  const tt = n[L], ft = (tt == null ? void 0 : tt.image.objectFit) === "cover", St = ut.changedTouches[0];
3590
3590
  let Xt;
3591
3591
  if (ft && I.current) {
3592
- const _t = $a(I.current);
3593
- Xt = St.clientX >= _t.left && St.clientX <= _t.right && St.clientY >= _t.top && St.clientY <= _t.bottom;
3592
+ const At = $a(I.current);
3593
+ Xt = St.clientX >= At.left && St.clientX <= At.right && St.clientY >= At.top && St.clientY <= At.bottom;
3594
3594
  } else {
3595
- const _t = I.current ? wa(I.current) : null;
3596
- if (!_t) return;
3597
- Xt = St.clientX >= _t.x && St.clientX <= _t.x + _t.width && St.clientY >= _t.y && St.clientY <= _t.y + _t.height;
3595
+ const At = I.current ? wa(I.current) : null;
3596
+ if (!At) return;
3597
+ Xt = St.clientX >= At.x && St.clientX <= At.x + At.width && St.clientY >= At.y && St.clientY <= At.y + At.height;
3598
3598
  }
3599
3599
  if (!Xt) {
3600
3600
  ut.stopPropagation(), N.current = !0;
3601
- const _t = (Mt) => {
3602
- Mt.stopPropagation(), Mt.preventDefault(), document.removeEventListener("click", _t, !0);
3601
+ const At = (Mt) => {
3602
+ Mt.stopPropagation(), Mt.preventDefault(), document.removeEventListener("click", At, !0);
3603
3603
  };
3604
- document.addEventListener("click", _t, !0), F();
3604
+ document.addEventListener("click", At, !0), F();
3605
3605
  }
3606
3606
  }
3607
3607
  }
@@ -3615,25 +3615,25 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3615
3615
  var Mt, Jt;
3616
3616
  if (!t || !Rt || !((Jt = (Mt = m.current) == null ? void 0 : Mt.splide) != null && Jt.root)) return;
3617
3617
  const D = m.current.splide.root, ut = 30, P = (dt, Nt) => {
3618
- if (_.current) {
3619
- const Gt = Math.abs(dt - _.current.x), Pt = Math.abs(Nt - _.current.y);
3618
+ if (A.current) {
3619
+ const Gt = Math.abs(dt - A.current.x), Pt = Math.abs(Nt - A.current.y);
3620
3620
  (Gt > 0 || Pt > 0) && (X.current = !0);
3621
3621
  }
3622
3622
  }, J = (dt) => {
3623
- _.current && (dt.preventDefault(), P(dt.clientX, dt.clientY));
3623
+ A.current && (dt.preventDefault(), P(dt.clientX, dt.clientY));
3624
3624
  }, q = (dt) => {
3625
- _.current && dt.touches.length > 0 && (dt.preventDefault(), P(dt.touches[0].clientX, dt.touches[0].clientY));
3625
+ A.current && dt.touches.length > 0 && (dt.preventDefault(), P(dt.touches[0].clientX, dt.touches[0].clientY));
3626
3626
  }, tt = (dt, Nt) => {
3627
- if (!_.current || !m.current) {
3628
- _.current = null;
3627
+ if (!A.current || !m.current) {
3628
+ A.current = null;
3629
3629
  return;
3630
3630
  }
3631
- const Gt = Math.abs(dt - _.current.x), Pt = Math.abs(Nt - _.current.y);
3632
- Pt > ut && Pt > Gt && m.current.go(Nt < _.current.y ? "+1" : "-1"), _.current = null;
3631
+ const Gt = Math.abs(dt - A.current.x), Pt = Math.abs(Nt - A.current.y);
3632
+ Pt > ut && Pt > Gt && m.current.go(Nt < A.current.y ? "+1" : "-1"), A.current = null;
3633
3633
  }, ft = (dt) => {
3634
- _.current && tt(dt.clientX, dt.clientY), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("pointermove", J);
3634
+ A.current && tt(dt.clientX, dt.clientY), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("pointermove", J);
3635
3635
  }, St = (dt) => {
3636
- if (_.current) {
3636
+ if (A.current) {
3637
3637
  if (dt.changedTouches.length > 0) {
3638
3638
  const Nt = dt.changedTouches[0];
3639
3639
  tt(Nt.clientX, Nt.clientY);
@@ -3641,12 +3641,12 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3641
3641
  document.removeEventListener("touchend", St), document.removeEventListener("touchcancel", St), document.removeEventListener("touchmove", q);
3642
3642
  }
3643
3643
  }, Xt = (dt) => {
3644
- _.current = { x: dt.clientX, y: dt.clientY }, X.current = !1, document.addEventListener("pointermove", J, { passive: !1 }), document.addEventListener("pointerup", ft), document.addEventListener("pointercancel", ft);
3645
- }, _t = (dt) => {
3646
- dt.touches.length > 0 && (_.current = { x: dt.touches[0].clientX, y: dt.touches[0].clientY }, X.current = !1, document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("touchend", St), document.addEventListener("touchcancel", St));
3644
+ A.current = { x: dt.clientX, y: dt.clientY }, X.current = !1, document.addEventListener("pointermove", J, { passive: !1 }), document.addEventListener("pointerup", ft), document.addEventListener("pointercancel", ft);
3645
+ }, At = (dt) => {
3646
+ dt.touches.length > 0 && (A.current = { x: dt.touches[0].clientX, y: dt.touches[0].clientY }, X.current = !1, document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("touchend", St), document.addEventListener("touchcancel", St));
3647
3647
  };
3648
- return D.addEventListener("pointerdown", Xt), D.addEventListener("touchstart", _t), () => {
3649
- D.removeEventListener("pointerdown", Xt), D.removeEventListener("touchstart", _t), document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("touchmove", q), document.removeEventListener("touchend", St), document.removeEventListener("touchcancel", St), _.current = null, X.current = !1;
3648
+ return D.addEventListener("pointerdown", Xt), D.addEventListener("touchstart", At), () => {
3649
+ D.removeEventListener("pointerdown", Xt), D.removeEventListener("touchstart", At), document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("touchmove", q), document.removeEventListener("touchend", St), document.removeEventListener("touchcancel", St), A.current = null, X.current = !1;
3650
3650
  };
3651
3651
  }, [t, Rt, C]);
3652
3652
  const Et = {
@@ -3881,7 +3881,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
3881
3881
  justifyContent: H ? "flex-start" : q()
3882
3882
  },
3883
3883
  children: n.map((tt, ft) => {
3884
- const St = ft === L, Xt = A[ft], Mt = at.grid.size * (St ? at.activeState.scale : 1), Jt = () => {
3884
+ const St = ft === L, Xt = _[ft], Mt = at.grid.size * (St ? at.activeState.scale : 1), Jt = () => {
3885
3885
  if (at.fit !== "fit") return {};
3886
3886
  if (!Xt)
3887
3887
  return M.direction === "horiz" ? { height: W(Mt, r) } : { width: W(Mt, r) };
@@ -5215,7 +5215,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5215
5215
  inputPadding: E,
5216
5216
  inputColor: R,
5217
5217
  inputTextColor: v,
5218
- inputBorderColor: A,
5218
+ inputBorderColor: _,
5219
5219
  placeholderColor: V,
5220
5220
  buttonColor: m,
5221
5221
  buttonTextColor: T,
@@ -5224,7 +5224,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5224
5224
  successColor: U,
5225
5225
  errorColor: st,
5226
5226
  fontFamily: B,
5227
- inputFontSettings: _,
5227
+ inputFontSettings: A,
5228
5228
  inputFontSize: X,
5229
5229
  inputLineHeight: j,
5230
5230
  inputLetterSpacing: H,
@@ -5254,8 +5254,8 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5254
5254
  } = t, P = u === "B", J = x.slice(0, Math.min(d, x.length)), q = {
5255
5255
  fontSettings: {
5256
5256
  fontFamily: B,
5257
- fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
5258
- fontStyle: (_ == null ? void 0 : _.fontStyle) ?? "normal"
5257
+ fontWeight: (A == null ? void 0 : A.fontWeight) ?? 400,
5258
+ fontStyle: (A == null ? void 0 : A.fontStyle) ?? "normal"
5259
5259
  },
5260
5260
  fontSize: X ?? 0.01,
5261
5261
  lineHeight: j,
@@ -5282,7 +5282,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5282
5282
  paddingLeft: W((E == null ? void 0 : E.left) ?? 0, e),
5283
5283
  height: St,
5284
5284
  minHeight: St
5285
- }, _t = {
5285
+ }, At = {
5286
5286
  fontSettings: {
5287
5287
  fontFamily: B,
5288
5288
  fontWeight: (rt == null ? void 0 : rt.fontWeight) ?? 400,
@@ -5294,7 +5294,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5294
5294
  wordSpacing: ot ?? 0,
5295
5295
  textAppearance: yt,
5296
5296
  color: T
5297
- }, Mt = nn(Be(_t, e)), Jt = W(L ?? 0, e), dt = {
5297
+ }, Mt = nn(Be(At, e)), Jt = W(L ?? 0, e), dt = {
5298
5298
  fontSettings: {
5299
5299
  fontFamily: B,
5300
5300
  fontWeight: (vt == null ? void 0 : vt.fontWeight) ?? 400,
@@ -5321,7 +5321,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5321
5321
  }, Pt = nn(Be(Gt, e)), pe = Di(l, {
5322
5322
  inputColor: R,
5323
5323
  inputTextColor: v,
5324
- inputBorderColor: A,
5324
+ inputBorderColor: _,
5325
5325
  placeholderColor: V != null && V.trim() ? V : "#cccccc",
5326
5326
  buttonColor: m,
5327
5327
  buttonTextColor: T,
@@ -5334,14 +5334,14 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5334
5334
  ), [Yt, ve] = gt("idle"), [ke, Fe] = gt(null), Ne = a === "success" ? "success" : a === "error" ? "error" : Yt, xt = a === "error" ? D : ke, Vt = a === "filled", Zt = kt(() => {
5335
5335
  if (!Vt) return le;
5336
5336
  let qt = null;
5337
- for (const _e of J)
5338
- (le[_e.name] ?? "").trim().length > 0 || (qt = qt ?? { ...le }, qt[_e.name] = "Filled");
5337
+ for (const Ae of J)
5338
+ (le[Ae.name] ?? "").trim().length > 0 || (qt = qt ?? { ...le }, qt[Ae.name] = "Filled");
5339
5339
  return qt ?? le;
5340
- }, [le, Vt, J]), se = Ne === "error" ? Co(J, Zt) : null, je = `${a && a !== "default" ? `${l}-state-${a}` : ""}`.trim(), ze = o == null ? void 0 : o.submitUrl, Ze = (qt, _e) => {
5341
- Le((Te) => ({ ...Te, [qt]: _e }));
5340
+ }, [le, Vt, J]), se = Ne === "error" ? Co(J, Zt) : null, je = `${a && a !== "default" ? `${l}-state-${a}` : ""}`.trim(), ze = o == null ? void 0 : o.submitUrl, Ze = (qt, Ae) => {
5341
+ Le((Te) => ({ ...Te, [qt]: Ae }));
5342
5342
  }, un = async (qt) => {
5343
5343
  if (qt.preventDefault(), !c) return;
5344
- const _e = Object.fromEntries(
5344
+ const Ae = Object.fromEntries(
5345
5345
  J.map((ce) => {
5346
5346
  var $e;
5347
5347
  return [ce.name, (($e = le[ce.name]) == null ? void 0 : $e.trim()) ?? ""];
@@ -5351,7 +5351,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5351
5351
  ve("error"), Fe("No integrations were found for this form.");
5352
5352
  return;
5353
5353
  }
5354
- if (Object.keys(_e).length === 0) return;
5354
+ if (Object.keys(Ae).length === 0) return;
5355
5355
  const Te = Co(J, le);
5356
5356
  if (Te) {
5357
5357
  ve("error"), Fe(Te);
@@ -5362,7 +5362,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5362
5362
  const ce = await fetch(ze, {
5363
5363
  method: "POST",
5364
5364
  headers: { "Content-Type": "application/json" },
5365
- body: JSON.stringify(_e)
5365
+ body: JSON.stringify(Ae)
5366
5366
  });
5367
5367
  if (!ce.ok) {
5368
5368
  const $e = await ce.text();
@@ -5381,8 +5381,8 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5381
5381
  onSubmit: un,
5382
5382
  className: `${l}-form`,
5383
5383
  children: [
5384
- /* @__PURE__ */ s("div", { className: `${l}-fields`, children: J.map((qt, _e) => /* @__PURE__ */ z(On.Fragment, { children: [
5385
- _e > 0 && /* @__PURE__ */ s(
5384
+ /* @__PURE__ */ s("div", { className: `${l}-fields`, children: J.map((qt, Ae) => /* @__PURE__ */ z(On.Fragment, { children: [
5385
+ Ae > 0 && /* @__PURE__ */ s(
5386
5386
  "div",
5387
5387
  {
5388
5388
  "data-controls": r ? "fieldsGap" : void 0,
@@ -5422,7 +5422,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
5422
5422
  }
5423
5423
  )
5424
5424
  ] })
5425
- ] }, _e)) }),
5425
+ ] }, Ae)) }),
5426
5426
  /* @__PURE__ */ s(
5427
5427
  "div",
5428
5428
  {
@@ -6990,7 +6990,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
6990
6990
  buttonLetterSpacing: E,
6991
6991
  buttonWordSpacing: R,
6992
6992
  buttonTextAppearance: v,
6993
- statusFontSettings: A,
6993
+ statusFontSettings: _,
6994
6994
  statusFontSize: V,
6995
6995
  statusLineHeight: m,
6996
6996
  statusLetterSpacing: T,
@@ -6999,7 +6999,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
6999
6999
  iconMaxWidth: U,
7000
7000
  minHeight: st,
7001
7001
  corners: B,
7002
- stroke: _,
7002
+ stroke: A,
7003
7003
  stateOverrides: X,
7004
7004
  inputPadding: j,
7005
7005
  buttonPadding: H,
@@ -7040,8 +7040,8 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
7040
7040
  }, q = {
7041
7041
  fontSettings: {
7042
7042
  fontFamily: x,
7043
- fontWeight: (A == null ? void 0 : A.fontWeight) ?? 400,
7044
- fontStyle: (A == null ? void 0 : A.fontStyle) ?? "normal"
7043
+ fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
7044
+ fontStyle: (_ == null ? void 0 : _.fontStyle) ?? "normal"
7045
7045
  },
7046
7046
  fontSize: V ?? 0.01,
7047
7047
  lineHeight: m,
@@ -7058,11 +7058,11 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
7058
7058
  errorColor: t.errorColor,
7059
7059
  inputTextColor: t.inputTextColor ?? (P == null ? void 0 : P.color) ?? "#111111",
7060
7060
  buttonTextColor: t.buttonTextColor ?? (J == null ? void 0 : J.color) ?? "#ffffff"
7061
- }, wu, $u, X), _t = {
7061
+ }, wu, $u, X), At = {
7062
7062
  borderRadius: W(B, e),
7063
- borderWidth: W(_, e),
7063
+ borderWidth: W(A, e),
7064
7064
  borderStyle: "solid"
7065
- }, Mt = { borderLeftWidth: W(_, e) }, Jt = async (dt) => {
7065
+ }, Mt = { borderLeftWidth: W(A, e) }, Jt = async (dt) => {
7066
7066
  if (dt.preventDefault(), !r) return;
7067
7067
  const Nt = Object.fromEntries(
7068
7068
  rt.map((Pt) => {
@@ -7104,7 +7104,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
7104
7104
  onSubmit: Jt,
7105
7105
  className: `${a}-form`,
7106
7106
  style: {
7107
- ..._t,
7107
+ ...At,
7108
7108
  height: W(st, e),
7109
7109
  minHeight: W(st, e)
7110
7110
  },
@@ -8425,7 +8425,7 @@ function Iu(t) {
8425
8425
  }
8426
8426
  `;
8427
8427
  }
8428
- const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e }, () => t).flat(), Ru = (t, e) => {
8428
+ const _u = 30, Au = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e }, () => t).flat(), Ru = (t, e) => {
8429
8429
  const n = e.getBoundingClientRect(), i = t.getBoundingClientRect();
8430
8430
  return i.right > n.left && i.left < n.right;
8431
8431
  }, Mu = (t, e) => {
@@ -8442,7 +8442,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8442
8442
  scaled: c,
8443
8443
  onFirstSetImageDone: l
8444
8444
  }) => {
8445
- var v, A, V;
8445
+ var v, _, V;
8446
8446
  const u = mt(null);
8447
8447
  Oe(() => {
8448
8448
  if (!r) return;
@@ -8452,7 +8452,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8452
8452
  const d = n.display === "cover", x = n.ratioValue ?? "1:1", b = n.reversed ?? !1, [y, p] = x.split(":").map(Number), $ = (b ? p : y) / (b ? y : p);
8453
8453
  let C = i, w = C / $;
8454
8454
  w > o && (w = o, C = w * $);
8455
- const k = c(C), E = c(w), R = ((A = t.image) == null ? void 0 : A.url) && /* @__PURE__ */ s(
8455
+ const k = c(C), E = c(w), R = ((_ = t.image) == null ? void 0 : _.url) && /* @__PURE__ */ s(
8456
8456
  "img",
8457
8457
  {
8458
8458
  ref: u,
@@ -8516,8 +8516,8 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8516
8516
  }
8517
8517
  );
8518
8518
  }, Nu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
8519
- const { prefix: a } = yn(), r = kt(() => Iu(a), [a]), { speed: c, direction: l, pauseOnHover: u, gap: d, imageMaxWidth: x, imageMaxHeight: b, imageFit: y, hoverEffect: p } = t, f = !!o, L = !n || !!i, $ = L && p !== "off" && p !== "randomize" ? `${a}-image-hover-${p}` : void 0, C = n ? !!i : !0, k = ((e == null ? void 0 : e.length) ?? 0) > 0 && (C || !!n), E = Math.max(0, c) * Au, R = (O) => W(O, n ?? !1), v = mt(null), A = mt(null), V = mt(null), [m, T] = gt(0), [I, N] = gt(0), U = C && u === "on", [st, B] = gt(!1), [_, X] = gt({}), j = mt(_);
8520
- j.current = _;
8519
+ const { prefix: a } = yn(), r = kt(() => Iu(a), [a]), { speed: c, direction: l, pauseOnHover: u, gap: d, imageMaxWidth: x, imageMaxHeight: b, imageFit: y, hoverEffect: p } = t, f = !!o, L = !n || !!i, $ = L && p !== "off" && p !== "randomize" ? `${a}-image-hover-${p}` : void 0, C = n ? !!i : !0, k = ((e == null ? void 0 : e.length) ?? 0) > 0 && (C || !!n), E = Math.max(0, c) * _u, R = (O) => W(O, n ?? !1), v = mt(null), _ = mt(null), V = mt(null), [m, T] = gt(0), [I, N] = gt(0), U = C && u === "on", [st, B] = gt(!1), [A, X] = gt({}), j = mt(A);
8520
+ j.current = A;
8521
8521
  const H = mt(null), Y = mt(0), it = mt(null), rt = kt(() => (e ?? []).map((O) => {
8522
8522
  var F;
8523
8523
  return ((F = O.image) == null ? void 0 : F.url) ?? "";
@@ -8552,7 +8552,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8552
8552
  }
8553
8553
  Et.size > 0 && F(Et);
8554
8554
  }, { root: O, threshold: 0 });
8555
- Object.keys(_).forEach((Rt) => {
8555
+ Object.keys(A).forEach((Rt) => {
8556
8556
  const Et = Number(Rt);
8557
8557
  O.querySelectorAll(`[data-marquee-item-index="${Et}"]`).forEach((Dt) => ht.observe(Dt));
8558
8558
  });
@@ -8564,7 +8564,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8564
8564
  return Object.keys(j.current).length > 0 && (Lt = requestAnimationFrame(jt)), () => {
8565
8565
  cancelAnimationFrame(Lt), ht.disconnect();
8566
8566
  };
8567
- }, [p, _, L]), Oe(() => {
8567
+ }, [p, A, L]), Oe(() => {
8568
8568
  if (!k) return;
8569
8569
  const O = v.current, F = V.current;
8570
8570
  if (!O || !F) return;
@@ -8598,7 +8598,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8598
8598
  it.current = null, cancelAnimationFrame(ht), Rt.disconnect();
8599
8599
  };
8600
8600
  }, [C, k, m, rt, M]), Oe(() => {
8601
- const O = A.current;
8601
+ const O = _.current;
8602
8602
  if (!k || !O) return;
8603
8603
  const F = m > 0 ? m : 0, ht = F > 0 && E > 0 ? F / E * 1e3 : 0, Lt = `${Math.max(0, ht) / 1e3}s`;
8604
8604
  O.style.setProperty("--marquee-distance", `${F}px`), O.style.setProperty("--marquee-duration", Lt);
@@ -8611,7 +8611,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8611
8611
  N(0);
8612
8612
  return;
8613
8613
  }
8614
- const O = A.current;
8614
+ const O = _.current;
8615
8615
  if (!O) return;
8616
8616
  const F = () => {
8617
8617
  const Lt = O.getBoundingClientRect().height;
@@ -8620,7 +8620,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8620
8620
  F();
8621
8621
  const ht = new ResizeObserver(F);
8622
8622
  return ht.observe(O), () => ht.disconnect();
8623
- }, [k, yt, h, n, d, x, b, m, y, _]);
8623
+ }, [k, yt, h, n, d, x, b, m, y, A]);
8624
8624
  const vt = () => {
8625
8625
  U && B(!0);
8626
8626
  }, Bt = () => {
@@ -8639,7 +8639,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8639
8639
  return { ...ht, [O]: Rt };
8640
8640
  });
8641
8641
  }, [e]), G = (O, F, ht, Lt) => {
8642
- const jt = L && p === "randomize" && y.display === "cover" ? _[ht] ?? O : O, Rt = `max(${R(d)}, ${_u}px)`, Et = `calc(-0.5 * (${Rt} + ${R(d)}))`;
8642
+ const jt = L && p === "randomize" && y.display === "cover" ? A[ht] ?? O : O, Rt = `max(${R(d)}, ${Au}px)`, Et = `calc(-0.5 * (${Rt} + ${R(d)}))`;
8643
8643
  return /* @__PURE__ */ z(
8644
8644
  "div",
8645
8645
  {
@@ -8696,7 +8696,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
8696
8696
  /* @__PURE__ */ s(
8697
8697
  "div",
8698
8698
  {
8699
- ref: A,
8699
+ ref: _,
8700
8700
  className: `${a}-marquee-track`,
8701
8701
  "data-direction": l,
8702
8702
  onMouseEnter: vt,
@@ -9516,6 +9516,7 @@ type MarqueeProps = {
9516
9516
  type: "object",
9517
9517
  label: "Image",
9518
9518
  display: {
9519
+ isObjectFitEditable: !1,
9519
9520
  type: "media-input"
9520
9521
  }
9521
9522
  },
@@ -9688,7 +9689,7 @@ function Ta(t) {
9688
9689
  `;
9689
9690
  }
9690
9691
  const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
9691
- const { prefix: a } = yn(), { align: r, speed: c, direction: l, pauseOnHover: u, gap: d, cardWidth: x, corners: b, stroke: y, strokeColor: p, bgColor: f, padding: L, logoMarginTop: $, logoWidth: C, logoHeight: w, captionMarginTop: k } = t, E = !!o, R = ((e == null ? void 0 : e.length) ?? 0) > 0, v = c > 0 && (!n || i), A = R && (v || n), V = Math.max(0, c) * zu, m = (P) => W(P, n ?? !1), T = mt(null), I = mt(null), N = mt(null), [U, st] = gt(0), [B, _] = gt(0), [X, j] = gt(0), H = v && u === "on", [Y, it] = gt(!1), rt = mt(null), [M, at] = gt(0), [h, ot] = gt(0), yt = mt(null), vt = (P) => {
9692
+ const { prefix: a } = yn(), { align: r, speed: c, direction: l, pauseOnHover: u, gap: d, cardWidth: x, corners: b, stroke: y, strokeColor: p, bgColor: f, padding: L, logoMarginTop: $, logoWidth: C, logoHeight: w, captionMarginTop: k } = t, E = !!o, R = ((e == null ? void 0 : e.length) ?? 0) > 0, v = c > 0 && (!n || i), _ = R && (v || n), V = Math.max(0, c) * zu, m = (P) => W(P, n ?? !1), T = mt(null), I = mt(null), N = mt(null), [U, st] = gt(0), [B, A] = gt(0), [X, j] = gt(0), H = v && u === "on", [Y, it] = gt(!1), rt = mt(null), [M, at] = gt(0), [h, ot] = gt(0), yt = mt(null), vt = (P) => {
9692
9693
  var q, tt, ft, St, Xt;
9693
9694
  return {
9694
9695
  fontSettings: {
@@ -9713,19 +9714,19 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
9713
9714
  return (((J = P.text) == null ? void 0 : J.length) ?? 0) > 0 || (((q = P.caption) == null ? void 0 : q.length) ?? 0) > 0;
9714
9715
  }),
9715
9716
  [e]
9716
- ), G = kt(() => !A || (e == null ? void 0 : e.length) === 0 ? 1 : B <= 0 || U <= 0 ? La : Math.max(La, Math.ceil(U / B) + 1), [A, e == null ? void 0 : e.length, B, U]);
9717
+ ), G = kt(() => !_ || (e == null ? void 0 : e.length) === 0 ? 1 : B <= 0 || U <= 0 ? La : Math.max(La, Math.ceil(U / B) + 1), [_, e == null ? void 0 : e.length, B, U]);
9717
9718
  Oe(() => {
9718
- if (!A) return;
9719
+ if (!_) return;
9719
9720
  const P = T.current, J = N.current;
9720
9721
  if (!P || !J) return;
9721
9722
  let q = 0;
9722
9723
  const tt = () => {
9723
- const Xt = P.getBoundingClientRect().width, _t = J.getBoundingClientRect().width, Mt = yt.current, Jt = typeof Mt == "number" && Math.abs(Mt - _t) <= 0.25;
9724
- if (yt.current = _t, st(Xt), typeof _t == "number" && _t > 0 && B <= 0) {
9725
- _(_t);
9724
+ const Xt = P.getBoundingClientRect().width, At = J.getBoundingClientRect().width, Mt = yt.current, Jt = typeof Mt == "number" && Math.abs(Mt - At) <= 0.25;
9725
+ if (yt.current = At, st(Xt), typeof At == "number" && At > 0 && B <= 0) {
9726
+ A(At);
9726
9727
  return;
9727
9728
  }
9728
- Jt && _t !== B ? _(_t) : !Jt && B <= 0 && (cancelAnimationFrame(q), q = requestAnimationFrame(tt));
9729
+ Jt && At !== B ? A(At) : !Jt && B <= 0 && (cancelAnimationFrame(q), q = requestAnimationFrame(tt));
9729
9730
  }, ft = () => {
9730
9731
  cancelAnimationFrame(q), q = requestAnimationFrame(tt);
9731
9732
  };
@@ -9734,13 +9735,13 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
9734
9735
  return St.observe(P), St.observe(J), () => {
9735
9736
  cancelAnimationFrame(q), St.disconnect();
9736
9737
  };
9737
- }, [v, A, B]), Oe(() => {
9738
+ }, [v, _, B]), Oe(() => {
9738
9739
  const P = I.current;
9739
- if (!A || !P) return;
9740
+ if (!_ || !P) return;
9740
9741
  const J = B > 0 ? B : 0, q = J > 0 && V > 0 ? J / V * 1e3 : 0, tt = `${Math.max(0, q) / 1e3}s`;
9741
9742
  P.style.setProperty("--marquee-distance", `${J}px`), P.style.setProperty("--marquee-duration", tt);
9742
- }, [v, A, V, B]), Oe(() => {
9743
- if (!A) {
9743
+ }, [v, _, V, B]), Oe(() => {
9744
+ if (!_) {
9744
9745
  j(0);
9745
9746
  return;
9746
9747
  }
@@ -9749,8 +9750,8 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
9749
9750
  const q = () => {
9750
9751
  let ft = 0;
9751
9752
  for (let St = 0; St < P.children.length; St++) {
9752
- const _t = P.children[St].firstElementChild;
9753
- _t && (ft = Math.max(ft, _t.offsetHeight));
9753
+ const At = P.children[St].firstElementChild;
9754
+ At && (ft = Math.max(ft, At.offsetHeight));
9754
9755
  }
9755
9756
  ft <= 0 && (ft = J.offsetHeight), j(ft > 0 ? ft : 0);
9756
9757
  };
@@ -9759,7 +9760,7 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
9759
9760
  return tt.observe(P), tt.observe(J), () => {
9760
9761
  tt.disconnect();
9761
9762
  };
9762
- }, [A, G, e, n, d, x, L, y, b, C, w, M, h]);
9763
+ }, [_, G, e, n, d, x, L, y, b, C, w, M, h]);
9763
9764
  const O = () => {
9764
9765
  H && it(!0);
9765
9766
  }, F = () => {
@@ -9986,7 +9987,7 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
9986
9987
  },
9987
9988
  J
9988
9989
  );
9989
- if (A) {
9990
+ if (_) {
9990
9991
  const P = v ? H && Y ? "paused" : "running" : "paused";
9991
9992
  return /* @__PURE__ */ z(
9992
9993
  "div",
@@ -11295,7 +11296,7 @@ function Ku(t) {
11295
11296
  `;
11296
11297
  }
11297
11298
  const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
11298
- const { prefix: a } = yn(), r = e || [], { speed: c, align: l, width: u, imageMarginTop: d, textMarginTop: x, captionMarginTop: b, imageWidth: y, imageHeight: p, controlsWidth: f, controlsColor: L, controlsHoverColor: $ } = t, C = c > 0 && (!n || !!i), [w, k] = gt(0), [E, R] = gt(null), [v, A] = gt(!1), V = mt(null), m = kt(() => {
11299
+ const { prefix: a } = yn(), r = e || [], { speed: c, align: l, width: u, imageMarginTop: d, textMarginTop: x, captionMarginTop: b, imageWidth: y, imageHeight: p, controlsWidth: f, controlsColor: L, controlsHoverColor: $ } = t, C = c > 0 && (!n || !!i), [w, k] = gt(0), [E, R] = gt(null), [v, _] = gt(!1), V = mt(null), m = kt(() => {
11299
11300
  switch (l) {
11300
11301
  case "center":
11301
11302
  return "center";
@@ -11317,7 +11318,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
11317
11318
  }
11318
11319
  }, [l]);
11319
11320
  Ot(() => {
11320
- k(0), R(null), A(!1);
11321
+ k(0), R(null), _(!1);
11321
11322
  }, [r.length]);
11322
11323
  const I = r[w], N = E === null ? null : r[E], U = (Z) => {
11323
11324
  var G, O, F, ht, Lt;
@@ -11338,11 +11339,11 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
11338
11339
  wordSpacing: (t == null ? void 0 : t[`${Z}WordSpacing`]) ?? 0,
11339
11340
  color: (t == null ? void 0 : t[`${Z}Color`]) ?? "#000000"
11340
11341
  };
11341
- }, st = U("text"), B = U("caption"), _ = r.length > 1 && r.some((Z) => {
11342
+ }, st = U("text"), B = U("caption"), A = r.length > 1 && r.some((Z) => {
11342
11343
  var ct, G;
11343
11344
  return (((ct = Z.text) == null ? void 0 : ct.length) ?? 0) > 0 || (((G = Z.caption) == null ? void 0 : G.length) ?? 0) > 0;
11344
- }), X = mt(null), [j, H] = gt(0), [Y, it] = gt(0), rt = t.controls ?? { mode: "Off", icon: null }, M = r.length > 1, at = Wt((Z, ct) => !M || ct === Z ? Z : (V.current && window.clearTimeout(V.current), R(Z), A(!0), V.current = window.setTimeout(() => {
11345
- R(null), A(!1), V.current = null;
11345
+ }), X = mt(null), [j, H] = gt(0), [Y, it] = gt(0), rt = t.controls ?? { mode: "Off", icon: null }, M = r.length > 1, at = Wt((Z, ct) => !M || ct === Z ? Z : (V.current && window.clearTimeout(V.current), R(Z), _(!0), V.current = window.setTimeout(() => {
11346
+ R(null), _(!1), V.current = null;
11346
11347
  }, 300), ct), [M]), h = Wt(() => {
11347
11348
  M && k((Z) => at(Z, (Z - 1 + r.length) % r.length));
11348
11349
  }, [M, at, r.length]), ot = Wt(() => {
@@ -11433,7 +11434,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
11433
11434
  H(Z.maxTextPx), it(Z.maxCaptionPx);
11434
11435
  }, []);
11435
11436
  if (Oe(() => {
11436
- if (!_) {
11437
+ if (!A) {
11437
11438
  vt({ maxTextPx: 0, maxCaptionPx: 0 });
11438
11439
  return;
11439
11440
  }
@@ -11447,8 +11448,8 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
11447
11448
  return G.observe(Z), () => {
11448
11449
  G.disconnect();
11449
11450
  };
11450
- }, [_, vt, e]), !I) return /* @__PURE__ */ s(ie, {});
11451
- const Bt = _ ? { textMinHeightPx: j, captionMinHeightPx: Y } : void 0;
11451
+ }, [A, vt, e]), !I) return /* @__PURE__ */ s(ie, {});
11452
+ const Bt = A ? { textMinHeightPx: j, captionMinHeightPx: Y } : void 0;
11452
11453
  return /* @__PURE__ */ s(ie, { children: /* @__PURE__ */ z("div", { className: `${a}-container`, children: [
11453
11454
  /* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Ku(a) } }),
11454
11455
  /* @__PURE__ */ z(
@@ -11457,7 +11458,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
11457
11458
  className: `${a}-wrapper`,
11458
11459
  style: { width: W(u ?? 0, n ?? !1), alignItems: m },
11459
11460
  children: [
11460
- _ && /* @__PURE__ */ s(
11461
+ A && /* @__PURE__ */ s(
11461
11462
  "div",
11462
11463
  {
11463
11464
  ref: X,
@@ -12723,7 +12724,7 @@ const xn = 500, ep = 750, Mn = "cubic-bezier(0.22, 1, 0.36, 1)";
12723
12724
  function Hn(t) {
12724
12725
  return t.type === "video" ? !0 : t.type === "image" ? !1 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t.url);
12725
12726
  }
12726
- function Aa({
12727
+ function _a({
12727
12728
  media: t,
12728
12729
  className: e,
12729
12730
  style: n,
@@ -12761,12 +12762,12 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
12761
12762
  p({ width: N, height: U, left: I.left, top: I.top });
12762
12763
  return;
12763
12764
  }
12764
- const _ = st / B, X = N / U;
12765
- if (_ > X) {
12766
- const j = N / _;
12765
+ const A = st / B, X = N / U;
12766
+ if (A > X) {
12767
+ const j = N / A;
12767
12768
  p({ width: N, height: j, left: I.left, top: I.top + (U - j) / 2 });
12768
12769
  } else {
12769
- const j = U * _;
12770
+ const j = U * A;
12770
12771
  p({ width: j, height: U, left: I.left + (N - j) / 2, top: I.top });
12771
12772
  }
12772
12773
  }, [n]);
@@ -12792,7 +12793,7 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
12792
12793
  }, [f]);
12793
12794
  const E = () => {
12794
12795
  f !== "closing" && L("closing");
12795
- }, R = f === "open", v = f === "closing", A = v && o && !!i, V = f === "opening" ? i ?? y : A ? i : y;
12796
+ }, R = f === "open", v = f === "closing", _ = v && o && !!i, V = f === "opening" ? i ?? y : _ ? i : y;
12796
12797
  return /* @__PURE__ */ z(
12797
12798
  "div",
12798
12799
  {
@@ -12908,8 +12909,8 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
12908
12909
  width: V.width,
12909
12910
  height: V.height,
12910
12911
  objectFit: n === "cover" ? "cover" : "contain",
12911
- opacity: v && !A ? 0 : 1,
12912
- transition: v && !A ? `opacity ${xn}ms ${Mn}` : A || $ ? `top ${xn}ms ${Mn}, left ${xn}ms ${Mn}, width ${xn}ms ${Mn}, height ${xn}ms ${Mn}` : "none",
12912
+ opacity: v && !_ ? 0 : 1,
12913
+ transition: v && !_ ? `opacity ${xn}ms ${Mn}` : _ || $ ? `top ${xn}ms ${Mn}, left ${xn}ms ${Mn}, width ${xn}ms ${Mn}, height ${xn}ms ${Mn}` : "none",
12913
12914
  pointerEvents: "none",
12914
12915
  zIndex: 9998
12915
12916
  }
@@ -12975,7 +12976,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
12975
12976
  titleMarginTop: E,
12976
12977
  subtitleMarginTop: R,
12977
12978
  titleColor: v,
12978
- subtitleColor: A,
12979
+ subtitleColor: _,
12979
12980
  lightboxCounterColor: V,
12980
12981
  titleFontFamily: m,
12981
12982
  titleFontSettings: T,
@@ -12984,7 +12985,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
12984
12985
  titleLetterSpacing: U,
12985
12986
  titleWordSpacing: st,
12986
12987
  titleTextAppearance: B,
12987
- subtitleFontFamily: _,
12988
+ subtitleFontFamily: A,
12988
12989
  subtitleFontSettings: X,
12989
12990
  subtitleFontSize: j,
12990
12991
  subtitleLineHeight: H,
@@ -13016,7 +13017,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13016
13017
  ...nn(Be(G, n))
13017
13018
  }, ht = {
13018
13019
  fontSettings: {
13019
- fontFamily: _,
13020
+ fontFamily: A,
13020
13021
  fontWeight: (X == null ? void 0 : X.fontWeight) ?? 400,
13021
13022
  fontStyle: (X == null ? void 0 : X.fontStyle) ?? "normal"
13022
13023
  },
@@ -13025,7 +13026,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13025
13026
  letterSpacing: Y ?? 0,
13026
13027
  wordSpacing: it ?? 0,
13027
13028
  textAppearance: rt,
13028
- color: A
13029
+ color: _
13029
13030
  }, jt = {
13030
13031
  ...nn(Be(ht, n))
13031
13032
  }, Rt = {
@@ -13060,9 +13061,9 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13060
13061
  `${l}-text-tight-leading`
13061
13062
  ), tt = Di(l, {
13062
13063
  titleColor: v,
13063
- subtitleColor: A,
13064
+ subtitleColor: _,
13064
13065
  lightboxCounterColor: V
13065
- }, rp, ap), Xt = `${r && r !== "default" ? `${l}-state-${r}` : ""}${Z === "on hover" && (!n || i) ? ` ${l}-show-text-hover` : ""}`.trim(), _t = y === 0 ? 1 / 0 : y, Mt = (e ?? []).slice(0, _t), Jt = d.entryWidth ?? 0.2, dt = (f == null ? void 0 : f.display) === "cover", Nt = (f == null ? void 0 : f.ratioValue) ?? "1:1", Gt = (f == null ? void 0 : f.reversed) ?? !1, [Pt, pe] = Nt.split(":").map(Number), Yt = `${Gt ? pe : Pt} / ${Gt ? Pt : pe}`, ve = W(Jt ?? 0, n), ke = !dt && $ !== "off", Fe = {
13066
+ }, rp, ap), Xt = `${r && r !== "default" ? `${l}-state-${r}` : ""}${Z === "on hover" && (!n || i) ? ` ${l}-show-text-hover` : ""}`.trim(), At = y === 0 ? 1 / 0 : y, Mt = (e ?? []).slice(0, At), Jt = d.entryWidth ?? 0.2, dt = (f == null ? void 0 : f.display) === "cover", Nt = (f == null ? void 0 : f.ratioValue) ?? "1:1", Gt = (f == null ? void 0 : f.reversed) ?? !1, [Pt, pe] = Nt.split(":").map(Number), Yt = `${Gt ? pe : Pt} / ${Gt ? Pt : pe}`, ve = W(Jt ?? 0, n), ke = !dt && $ !== "off", Fe = {
13066
13067
  width: ve,
13067
13068
  ...dt ? { aspectRatio: Yt, height: "auto", overflow: "hidden" } : { height: "auto" }
13068
13069
  }, Ne = `${l}-item-image-wrapper${ke ? ` ${l}-item-image-wrapper-fit-slider` : ""}`.trim(), xt = u === "c", Vt = xt && ct === "on", Zt = `calc(${W(Jt ?? 0, n)} * (${x} / 100))`, se = W(Jt * x / 100, n), Ce = dt ? {
@@ -13086,7 +13087,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13086
13087
  });
13087
13088
  return he.observe(Ht), () => he.disconnect();
13088
13089
  }, []);
13089
- const _e = (() => {
13090
+ const Ae = (() => {
13090
13091
  const Ht = { ...tt }, he = qt.current ? getComputedStyle(qt.current).getPropertyValue("--cntrl-article-width").trim() : "";
13091
13092
  return he && (Ht["--cntrl-article-width"] = he), Ht;
13092
13093
  })(), [Te, ce] = gt(!1), [$e, Ke] = gt([]), [bn, Ve] = gt(0), [In, re] = gt(null), Ue = (Ht, he, He) => {
@@ -13178,14 +13179,14 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13178
13179
  te,
13179
13180
  ae
13180
13181
  ] }), We = /* @__PURE__ */ s("div", { className: Ne, style: Fe, children: (((Ie = Ht.image) == null ? void 0 : Ie.length) ?? 0) === 0 ? null : $ === "off" ? (() => {
13181
- const zt = Ht.image[0], fe = Ht.image.filter((Ae) => !Hn(Ae)).map((Ae) => Ae.url);
13182
+ const zt = Ht.image[0], fe = Ht.image.filter((_e) => !Hn(_e)).map((_e) => _e.url);
13182
13183
  return /* @__PURE__ */ s(
13183
- Aa,
13184
+ _a,
13184
13185
  {
13185
13186
  media: zt,
13186
13187
  className: `${l}-item-${Hn(zt) ? "video" : "image"}`.trim(),
13187
13188
  style: Ce,
13188
- onImageClick: Hn(zt) ? void 0 : (Ae) => Ue(Ae, fe, 0)
13189
+ onImageClick: Hn(zt) ? void 0 : (_e) => Ue(_e, fe, 0)
13189
13190
  }
13190
13191
  );
13191
13192
  })() : /* @__PURE__ */ z(ie, { children: [
@@ -13218,14 +13219,14 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13218
13219
  }, 0);
13219
13220
  },
13220
13221
  children: Ht.image.map((zt, de) => {
13221
- const fe = Ht.image.filter((me) => !Hn(me)), Ae = fe.map((me) => me.url), mn = fe.findIndex((me) => me.url === zt.url);
13222
+ const fe = Ht.image.filter((me) => !Hn(me)), _e = fe.map((me) => me.url), mn = fe.findIndex((me) => me.url === zt.url);
13222
13223
  return /* @__PURE__ */ s(Xr, { children: /* @__PURE__ */ s(
13223
- Aa,
13224
+ _a,
13224
13225
  {
13225
13226
  media: zt,
13226
13227
  className: `${l}-item-${Hn(zt) ? "video" : "image"}`.trim(),
13227
13228
  style: Ce,
13228
- onImageClick: Hn(zt) ? void 0 : (me) => Ue(me, Ae, mn)
13229
+ onImageClick: Hn(zt) ? void 0 : (me) => Ue(me, _e, mn)
13229
13230
  }
13230
13231
  ) }, de);
13231
13232
  })
@@ -13298,7 +13299,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
13298
13299
  }
13299
13300
  ) }),
13300
13301
  (!n || i) && Te && typeof document < "u" && p === "on" && Wo(
13301
- /* @__PURE__ */ s("div", { style: _e, "data-selection": "none", children: /* @__PURE__ */ s(
13302
+ /* @__PURE__ */ s("div", { style: Ae, "data-selection": "none", children: /* @__PURE__ */ s(
13302
13303
  np,
13303
13304
  {
13304
13305
  images: $e,
@@ -15201,12 +15202,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
15201
15202
  },
15202
15203
  schema: cp,
15203
15204
  sourceCode: lp
15204
- }, _a = 12;
15205
+ }, Aa = 12;
15205
15206
  function up(t, e = "50%") {
15206
15207
  const n = {
15207
15208
  position: "absolute",
15208
- width: _a,
15209
- height: _a,
15209
+ width: Aa,
15210
+ height: Aa,
15210
15211
  pointerEvents: "auto"
15211
15212
  };
15212
15213
  return t === "left-y" ? { ...n, left: 20, top: "50%", transform: "translateY(-50%)" } : t === "center-x" ? {
@@ -15874,7 +15875,7 @@ const Ip = {
15874
15875
  EColumn: "E",
15875
15876
  cutLabel: "CUT"
15876
15877
  };
15877
- function Ap(t) {
15878
+ function _p(t) {
15878
15879
  return [
15879
15880
  ne(t, "textFontFamily"),
15880
15881
  ne(t, "textFontSettings"),
@@ -15892,19 +15893,19 @@ function Ap(t) {
15892
15893
  `${t}VerticalAlign`
15893
15894
  ];
15894
15895
  }
15895
- function _p() {
15896
+ function Ap() {
15896
15897
  return {
15897
15898
  type: "tab",
15898
15899
  id: "listColumnTextStyle",
15899
15900
  tabs: Object.fromEntries(
15900
15901
  Jr.map((t) => [
15901
15902
  Ip[t],
15902
- Ap(t)
15903
+ _p(t)
15903
15904
  ])
15904
15905
  )
15905
15906
  };
15906
15907
  }
15907
- function Ao(t, e) {
15908
+ function _o(t, e) {
15908
15909
  const n = (i) => {
15909
15910
  const o = ne(e, i);
15910
15911
  return t[o];
@@ -15943,11 +15944,11 @@ function Na(t, e) {
15943
15944
  return nn(Be(n, e));
15944
15945
  }
15945
15946
  function Ha(t, e, n, i) {
15946
- const o = Ao(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
15947
+ const o = _o(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
15947
15948
  return r !== void 0 && r < a ? `${n} ${i}` : n;
15948
15949
  }
15949
15950
  function Oa(t, e, n, i) {
15950
- const o = Ao(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
15951
+ const o = _o(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
15951
15952
  return r === void 0 || r >= a ? {} : {
15952
15953
  [`--${n}-title-leading-gap`]: W((a - r) / 2, i)
15953
15954
  };
@@ -16014,7 +16015,7 @@ const Xl = {
16014
16015
  DColumnWidth: 0.02,
16015
16016
  EColumnWidth: 0.02
16016
16017
  };
16017
- function _i(t) {
16018
+ function Ai(t) {
16018
16019
  const e = typeof t.wrapperWidth == "number" ? t.wrapperWidth : 1;
16019
16020
  return Math.max(0, e);
16020
16021
  }
@@ -16140,7 +16141,7 @@ function Dp(t, e) {
16140
16141
  const n = t.columns, i = e.columns;
16141
16142
  if (typeof n != "number" || n === i)
16142
16143
  return t;
16143
- const o = _i(t), a = t.type === "b" || t.type === void 0 && e.type === "b", r = {
16144
+ const o = Ai(t), a = t.type === "b" || t.type === void 0 && e.type === "b", r = {
16144
16145
  ...t,
16145
16146
  ...Mp(n, o),
16146
16147
  ...Fp()
@@ -16155,10 +16156,10 @@ function Dp(t, e) {
16155
16156
  function Vp(t, e, n) {
16156
16157
  const i = wp(t);
16157
16158
  i && (t = { ...t, ...i });
16158
- const o = Gl(n == null ? void 0 : n.designWidth), a = t.columns, r = e.columns, c = _i(t), l = _i(e), u = t.type === "b" || t.type === void 0 && e.type === "b", d = typeof a == "number" ? a : typeof r == "number" ? r : Vn.length, x = (w) => {
16159
+ const o = Gl(n == null ? void 0 : n.designWidth), a = t.columns, r = e.columns, c = Ai(t), l = Ai(e), u = t.type === "b" || t.type === void 0 && e.type === "b", d = typeof a == "number" ? a : typeof r == "number" ? r : Vn.length, x = (w) => {
16159
16160
  if (u)
16160
16161
  return w;
16161
- const k = ao({ ...e, ...w }), E = _i(w), R = xo(d, E, k), v = Hp(d, R, {
16162
+ const k = ao({ ...e, ...w }), E = Ai(w), R = xo(d, E, k), v = Hp(d, R, {
16162
16163
  ...e,
16163
16164
  ...w
16164
16165
  });
@@ -16261,7 +16262,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16261
16262
  imageSize: E,
16262
16263
  imageOnHover: R,
16263
16264
  entryHoverEffect: v,
16264
- entryHoverShowOption: A,
16265
+ entryHoverShowOption: _,
16265
16266
  rowPaddingTop: V,
16266
16267
  rowPaddingBottom: m,
16267
16268
  rowPaddingTopB: T,
@@ -16270,7 +16271,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16270
16271
  textColor: U,
16271
16272
  backgroundColor: st,
16272
16273
  dividerColor: B,
16273
- textHoverColor: _,
16274
+ textHoverColor: A,
16274
16275
  backgroundHoverColor: X,
16275
16276
  dividerHoverColor: j
16276
16277
  } = t, [H, Y] = gt(void 0), [it, rt] = gt(null), M = R === "on" && (!n || i), at = ($ ?? 0) > 0, h = x === "b", ot = mt(null), yt = mt(null), [vt, Bt] = gt(null), [Z, ct] = gt(Bi), G = Gl(Z), O = Math.max(0, ((b ?? 0) - G) / 2), F = Math.min(N ?? 0, O), ht = Math.max(F, pi), Lt = ((b ?? 0) + G) / 2;
@@ -16301,7 +16302,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16301
16302
  textColor: U,
16302
16303
  backgroundColor: st,
16303
16304
  dividerColor: B,
16304
- textHoverColor: _,
16305
+ textHoverColor: A,
16305
16306
  backgroundHoverColor: X,
16306
16307
  dividerHoverColor: j
16307
16308
  }, Wp, kp), Rt = a && a !== "default" ? `${l}-state-${a}` : "", Dt = `${!n || i ? v === "default" ? `${l}-entry-hover-default` : v === "blinds" ? `${l}-entry-hover-blinds` : v === "reveal" ? `${l}-entry-hover-reveal` : "" : ""} ${Rt}`.trim(), D = v === "reveal" && (!n || i), ut = (L == null ? void 0 : L[0]) ?? !1, P = (L == null ? void 0 : L[1]) ?? !1, J = mt(t), q = mt(r);
@@ -16364,17 +16365,17 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16364
16365
  t.DColumnPaddingBottom,
16365
16366
  t.EColumnPaddingBottom
16366
16367
  ]
16367
- ), _t = kt(() => Array.isArray(I) && I.length > 0 ? I : [...Vn], [I]), Mt = kt(
16368
+ ), At = kt(() => Array.isArray(I) && I.length > 0 ? I : [...Vn], [I]), Mt = kt(
16368
16369
  () => Up(
16369
- _t,
16370
+ At,
16370
16371
  d,
16371
16372
  tt,
16372
16373
  ft,
16373
16374
  St,
16374
16375
  Xt
16375
16376
  ),
16376
- [_t, d, tt, ft, St, Xt]
16377
- ), Jt = _i(t), dt = kt(
16377
+ [At, d, tt, ft, St, Xt]
16378
+ ), Jt = Ai(t), dt = kt(
16378
16379
  () => on.slice(0, d).map((et) => tt[et]),
16379
16380
  [d, tt]
16380
16381
  ), Nt = kt(
@@ -16419,7 +16420,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16419
16420
  Yt,
16420
16421
  f ?? 0,
16421
16422
  n ?? !1
16422
- ).borderTopWidth, Ze = vt != null ? `${vt}px` : `calc(${ze} + ${xt(Ce)})`, un = h ? "rowPaddingTopB" : "rowPaddingTop", qt = Mt[0], _e = Mt[Mt.length - 1], Te = Pt[0], ce = Pt[Pt.length - 1], $e = qt && Te ? Math.max(Te.paddingLeft, pi) : 0, Ke = _e && ce ? Math.max(ce.paddingRight, pi) : 0, bn = Jt, Ve = (et) => {
16423
+ ).borderTopWidth, Ze = vt != null ? `${vt}px` : `calc(${ze} + ${xt(Ce)})`, un = h ? "rowPaddingTopB" : "rowPaddingTop", qt = Mt[0], Ae = Mt[Mt.length - 1], Te = Pt[0], ce = Pt[Pt.length - 1], $e = qt && Te ? Math.max(Te.paddingLeft, pi) : 0, Ke = Ae && ce ? Math.max(ce.paddingRight, pi) : 0, bn = Jt, Ve = (et) => {
16423
16424
  const Ct = ot.current;
16424
16425
  if (!Ct)
16425
16426
  return { x: 0, y: 0 };
@@ -16534,14 +16535,14 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16534
16535
  de.style.transform = "";
16535
16536
  const fe = de.querySelector(`.${Pe}`);
16536
16537
  fe && (fe.style.minHeight = "", fe.style.height = "");
16537
- const Ae = de.querySelector(`.${l}-list-col-title`);
16538
- Ae && (Ae.style.transform = "");
16538
+ const _e = de.querySelector(`.${l}-list-col-title`);
16539
+ _e && (_e.style.transform = "");
16539
16540
  });
16540
16541
  }), Se.forEach((zt) => {
16541
16542
  const de = Array.from(zt.querySelectorAll("[data-list-col]"));
16542
16543
  Lp(zt, de, Pe);
16543
16544
  }), et.offsetHeight, Se.forEach((zt) => {
16544
- const de = Array.from(zt.querySelectorAll("[data-list-col]")), fe = zt.getBoundingClientRect().top, Ae = /* @__PURE__ */ new Map(), mn = de.map((oe) => {
16545
+ const de = Array.from(zt.querySelectorAll("[data-list-col]")), fe = zt.getBoundingClientRect().top, _e = /* @__PURE__ */ new Map(), mn = de.map((oe) => {
16545
16546
  const qe = oe.querySelector(`.${l}-list-col-title`), Ge = {
16546
16547
  el: oe,
16547
16548
  titleEl: qe,
@@ -16549,12 +16550,12 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16549
16550
  kind: oe.getAttribute("data-valign") ?? "top",
16550
16551
  anchor: oe.getAttribute("data-valign-anchor")
16551
16552
  };
16552
- return Ae.set(Ge.letter, Ge), Ge;
16553
+ return _e.set(Ge.letter, Ge), Ge;
16553
16554
  }), me = /* @__PURE__ */ new Map(), an = (oe, qe) => {
16554
16555
  const Ge = me.get(oe.letter);
16555
16556
  if (Ge !== void 0) return Ge;
16556
- const An = oe.anchor ? Ae.get(oe.anchor) : void 0;
16557
- if (oe.kind !== "baseline" || !An || qe.has(oe.letter)) {
16557
+ const _n = oe.anchor ? _e.get(oe.anchor) : void 0;
16558
+ if (oe.kind !== "baseline" || !_n || qe.has(oe.letter)) {
16558
16559
  const Wn = sr(
16559
16560
  oe,
16560
16561
  fe,
@@ -16564,15 +16565,15 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16564
16565
  return me.set(oe.letter, Wn), Wn;
16565
16566
  }
16566
16567
  qe.add(oe.letter);
16567
- const Un = an(An, qe);
16568
+ const Un = an(_n, qe);
16568
16569
  qe.delete(oe.letter);
16569
16570
  const Gn = sr(
16570
16571
  oe,
16571
16572
  fe,
16572
16573
  Pe,
16573
16574
  Ie
16574
- ), _n = Un - Gn;
16575
- Ep(oe.titleEl, _n);
16575
+ ), An = Un - Gn;
16576
+ Ep(oe.titleEl, An);
16576
16577
  const ai = sr(
16577
16578
  oe,
16578
16579
  fe,
@@ -16641,14 +16642,14 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16641
16642
  ref: Ct === 0 ? (It) => {
16642
16643
  yt.current = It;
16643
16644
  } : void 0,
16644
- className: `${l}-list-item${Ft || A === "always" ? ` ${l}-list-item-has-link` : ""}`,
16645
+ className: `${l}-list-item${Ft || _ === "always" ? ` ${l}-list-item-has-link` : ""}`,
16645
16646
  ...Ft ? { href: et.link, target: "_blank" } : {},
16646
16647
  style: te,
16647
16648
  onMouseEnter: (It) => {
16648
- D && (Ft || A === "always") && Wa(It, l), M && In(et, It);
16649
+ D && (Ft || _ === "always") && Wa(It, l), M && In(et, It);
16649
16650
  },
16650
16651
  onMouseLeave: (It) => {
16651
- D && (Ft || A === "always") && ka(It, l);
16652
+ D && (Ft || _ === "always") && ka(It, l);
16652
16653
  },
16653
16654
  children: [
16654
16655
  Vt > 0 && /* @__PURE__ */ s(
@@ -16666,7 +16667,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16666
16667
  style: h ? void 0 : { minHeight: xt(se) },
16667
16668
  children: [
16668
16669
  Mt.map((It, We) => {
16669
- const Se = We === Mt.length - 1, Pe = Pt[We], Ie = It.paddingBottom, zt = gp(et.cells[It.key]), de = h && zt && Ie > 0, fe = h ? { minHeight: xt(se) } : { width: xt(Gt[We]) }, Ae = h ? {
16670
+ const Se = We === Mt.length - 1, Pe = Pt[We], Ie = It.paddingBottom, zt = gp(et.cells[It.key]), de = h && zt && Ie > 0, fe = h ? { minHeight: xt(se) } : { width: xt(Gt[We]) }, _e = h ? {
16670
16671
  paddingLeft: xt(F),
16671
16672
  paddingRight: xt(F)
16672
16673
  } : {
@@ -16695,7 +16696,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16695
16696
  {
16696
16697
  className: `${l}-list-col${Se ? ` ${l}-list-col-last` : ""}`,
16697
16698
  style: {
16698
- ...Ae,
16699
+ ..._e,
16699
16700
  ...fe,
16700
16701
  ...h ? { justifyContent: Fa(me.kind) } : {}
16701
16702
  },
@@ -16710,7 +16711,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16710
16711
  `${l}-text-tight-leading`
16711
16712
  ),
16712
16713
  style: {
16713
- ...Na(Ao(t, It.textPrefix), n),
16714
+ ...Na(_o(t, It.textPrefix), n),
16714
16715
  ...Oa(t, It.textPrefix, l, n),
16715
16716
  ...h ? {} : $p(me.kind)
16716
16717
  },
@@ -16855,7 +16856,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16855
16856
  }
16856
16857
  }
16857
16858
  ) }, "row-padding-handles"),
16858
- u && !h && qt && _e && /* @__PURE__ */ z("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
16859
+ u && !h && qt && Ae && /* @__PURE__ */ z("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
16859
16860
  /* @__PURE__ */ s(
16860
16861
  De,
16861
16862
  {
@@ -16883,7 +16884,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16883
16884
  De,
16884
16885
  {
16885
16886
  centerXHitTop: `var(--${l}-first-entry-handle-top, 50%)`,
16886
- "data-controls": _e.paddingRightKey,
16887
+ "data-controls": Ae.paddingRightKey,
16887
16888
  "data-controls-static-handle": "",
16888
16889
  "data-controls-axis": "x",
16889
16890
  "data-controls-variant": "column-padding",
@@ -16992,7 +16993,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
16992
16993
  })
16993
16994
  ] }),
16994
16995
  Yt && (() => {
16995
- const et = Ao(t, Tn), Ct = Sp(t.cutLabelVerticalAlign), Ft = et.textTextAlign === "justify" || h;
16996
+ const et = _o(t, Tn), Ct = Sp(t.cutLabelVerticalAlign), Ft = et.textTextAlign === "justify" || h;
16996
16997
  return /* @__PURE__ */ s(
16997
16998
  "button",
16998
16999
  {
@@ -20237,7 +20238,7 @@ function wo(t = {}, e) {
20237
20238
  {}
20238
20239
  );
20239
20240
  }
20240
- const om = wo(), rm = _p();
20241
+ const om = wo(), rm = Ap();
20241
20242
  function Zl(t) {
20242
20243
  return [
20243
20244
  ne(t, "textFontFamily"),
@@ -21101,7 +21102,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21101
21102
  iconColor: E = "#000000",
21102
21103
  questionHoverColor: R = "#666666",
21103
21104
  iconHoverColor: v = "#666666",
21104
- iconActiveColor: A = "#000000",
21105
+ iconActiveColor: _ = "#000000",
21105
21106
  dividerHoverColor: V = "#000000",
21106
21107
  questionFontFamily: m,
21107
21108
  questionFontSettings: T,
@@ -21110,7 +21111,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21110
21111
  questionLetterSpacing: U,
21111
21112
  questionWordSpacing: st,
21112
21113
  questionTextAppearance: B,
21113
- answerFontFamily: _,
21114
+ answerFontFamily: A,
21114
21115
  answerFontSettings: X,
21115
21116
  answerFontSize: j,
21116
21117
  answerLineHeight: H,
@@ -21130,7 +21131,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21130
21131
  }, [y]), Ot(() => {
21131
21132
  n && !o && !i && G(/* @__PURE__ */ new Set());
21132
21133
  }, [n, o, i]);
21133
- const F = (xt) => W(xt, n ?? !1), ht = Math.max(M, Fn), Lt = Math.max(at, Fn), jt = Math.max(h, Fn), Rt = Math.max(ot, Fn), Et = Math.max(yt, Fn), Dt = Math.max(vt, Fn), D = Math.max(Bt, Fn), ut = Math.max(0, (l ?? 1) - L - f), P = Math.max(0, (l ?? 1) - yt), J = Math.max(0, (l ?? 1) - ot), q = Math.max(L, Fn), tt = Math.max(0, (l ?? 1) - M - f), ft = kt(() => ct.size === 0 ? 0 : Math.min(...ct), [ct]), St = Wt((xt) => ct.has(xt), [ct]), Xt = O && b === "default" ? `${r}-entry-hover-default` : "", _t = p ?? "", Mt = _t !== "", Jt = $.replace(/^rotate /, ""), dt = `${r}-icon-anim-${Jt}`, Nt = nn(Be(
21134
+ const F = (xt) => W(xt, n ?? !1), ht = Math.max(M, Fn), Lt = Math.max(at, Fn), jt = Math.max(h, Fn), Rt = Math.max(ot, Fn), Et = Math.max(yt, Fn), Dt = Math.max(vt, Fn), D = Math.max(Bt, Fn), ut = Math.max(0, (l ?? 1) - L - f), P = Math.max(0, (l ?? 1) - yt), J = Math.max(0, (l ?? 1) - ot), q = Math.max(L, Fn), tt = Math.max(0, (l ?? 1) - M - f), ft = kt(() => ct.size === 0 ? 0 : Math.min(...ct), [ct]), St = Wt((xt) => ct.has(xt), [ct]), Xt = O && b === "default" ? `${r}-entry-hover-default` : "", At = p ?? "", Mt = At !== "", Jt = $.replace(/^rotate /, ""), dt = `${r}-icon-anim-${Jt}`, Nt = nn(Be(
21134
21135
  Ga(
21135
21136
  m,
21136
21137
  T,
@@ -21144,7 +21145,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21144
21145
  n
21145
21146
  )), Gt = nn(Be(
21146
21147
  Ga(
21147
- _,
21148
+ A,
21148
21149
  X,
21149
21150
  j,
21150
21151
  H,
@@ -21171,7 +21172,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21171
21172
  iconColor: E,
21172
21173
  questionHoverColor: R,
21173
21174
  iconHoverColor: v,
21174
- iconActiveColor: A,
21175
+ iconActiveColor: _,
21175
21176
  dividerHoverColor: V
21176
21177
  }, mm, gm), ve = a && a !== "default" ? `${r}-state-${a}` : "", ke = Wt((xt) => {
21177
21178
  O && G((Vt) => {
@@ -21309,7 +21310,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
21309
21310
  je && (Mt ? /* @__PURE__ */ s("span", { className: `${r}-icon ${r}-icon-custom ${dt}`, "aria-hidden": "true", children: /* @__PURE__ */ s(
21310
21311
  cn,
21311
21312
  {
21312
- url: _t,
21313
+ url: At,
21313
21314
  fill: E,
21314
21315
  hoverFill: v,
21315
21316
  className: `${r}-icon-image`
@@ -22856,12 +22857,12 @@ const Xa = {
22856
22857
  w(m);
22857
22858
  }, [w]), E = Wt((m) => {
22858
22859
  w(m);
22859
- }, [w]), R = o > 0, v = r ? `transform ${n}ms ease` : "none", A = r ? `opacity ${n}ms ease` : "none", V = o > 0 || r;
22860
+ }, [w]), R = o > 0, v = r ? `transform ${n}ms ease` : "none", _ = r ? `opacity ${n}ms ease` : "none", V = o > 0 || r;
22860
22861
  return {
22861
22862
  isSwipeDragging: R,
22862
22863
  backdropStyle: {
22863
22864
  opacity: x(o),
22864
- transition: A
22865
+ transition: _
22865
22866
  },
22866
22867
  mediaAreaStyle: {
22867
22868
  transform: y(o),
@@ -22871,7 +22872,7 @@ const Xa = {
22871
22872
  },
22872
22873
  overlayContentStyle: V ? {
22873
22874
  opacity: b(o),
22874
- transition: A
22875
+ transition: _
22875
22876
  } : void 0,
22876
22877
  swipeHandlers: t ? {
22877
22878
  onPointerDown: $,
@@ -22921,7 +22922,7 @@ const Xa = {
22921
22922
  }, i + 64), () => {
22922
22923
  d || (d = !0, b(), u(r - Lm(e), !1));
22923
22924
  };
22924
- }, fi = 300, Pm = 900, Im = 1500, Am = "cubic-bezier(0.16, 1, 0.3, 1)", _m = 3e3, $o = 50, Wm = 2, km = 16, Rm = 0.05, Mm = 1, Za = 0.5, Fm = 20, si = 4e-3, Ji = ["title1", "title2", "title3"], Nm = {
22925
+ }, fi = 300, Pm = 900, Im = 1500, _m = "cubic-bezier(0.16, 1, 0.3, 1)", Am = 3e3, $o = 50, Wm = 2, km = 16, Rm = 0.05, Mm = 1, Za = 0.5, Fm = 20, si = 4e-3, Ji = ["title1", "title2", "title3"], Nm = {
22925
22926
  title1: "1",
22926
22927
  title2: "2",
22927
22928
  title3: "3"
@@ -23101,13 +23102,13 @@ const Xa = {
23101
23102
  title2Width: E,
23102
23103
  title3Width: R,
23103
23104
  title1MarginLeft: v = 0,
23104
- title2MarginLeft: A = 0,
23105
+ title2MarginLeft: _ = 0,
23105
23106
  title3MarginLeft: V = 0,
23106
23107
  titleRowMarginBottom: m = 0,
23107
23108
  titleHeaderLayout: T = "desktop",
23108
23109
  contentMarginTop: I,
23109
23110
  iconMarginLeft: N
23110
- } = n, U = (g) => W(g, i ?? !1), st = U(l), B = U(u ?? 0.02), _ = U(d ?? 0), X = U(I ?? 0), j = U(N ?? 0), { title1: H, title2: Y, title3: it } = zm(e), rt = mr("title1", pr(n, "title1"), i), M = mr("title2", pr(n, "title2"), i), at = mr("title3", pr(n, "title3"), i), h = T === "mobile", ot = !o && (!i || a), yt = ot, vt = ot, Bt = ot, Z = Ln($), ct = Z ? { "--image-aspect-ratio": Ko($) } : void 0, G = !!(H || Y || it), O = kt(
23111
+ } = n, U = (g) => W(g, i ?? !1), st = U(l), B = U(u ?? 0.02), A = U(d ?? 0), X = U(I ?? 0), j = U(N ?? 0), { title1: H, title2: Y, title3: it } = zm(e), rt = mr("title1", pr(n, "title1"), i), M = mr("title2", pr(n, "title2"), i), at = mr("title3", pr(n, "title3"), i), h = T === "mobile", ot = !o && (!i || a), yt = ot, vt = ot, Bt = ot, Z = Ln($), ct = Z ? { "--image-aspect-ratio": Ko($) } : void 0, G = !!(H || Y || it), O = kt(
23111
23112
  () => qm(t, H, Y, it, rt, M, at),
23112
23113
  [t, H, Y, it, rt, M, at]
23113
23114
  ), F = kt(() => ({ title1Width: k, title2Width: E, title3Width: R }), [k, E, R]), ht = kt(() => O.map((g) => F[g.widthKey]), [O, F]), Lt = kt(() => ea(O.length, ht), [O.length, ht]), jt = kt(() => es(O.length, ht), [O.length, ht]), Rt = kt(() => O.filter((g) => g.prefix === "title1"), [O]), Et = kt(() => O.filter((g) => g.prefix === "title2" || g.prefix === "title3"), [O]), Dt = kt(() => Qa(Rt, F), [Rt, F]), D = kt(() => Qa(Et, F), [Et, F]), ut = Wt((g, K) => {
@@ -23147,10 +23148,10 @@ const Xa = {
23147
23148
  ), J = P(m ?? 0), q = kt(
23148
23149
  () => ({
23149
23150
  title1MarginLeft: v,
23150
- title2MarginLeft: A,
23151
+ title2MarginLeft: _,
23151
23152
  title3MarginLeft: V
23152
23153
  }),
23153
- [v, A, V]
23154
+ [v, _, V]
23154
23155
  ), tt = Wt(
23155
23156
  (g) => O.slice(0, g + 1).reduce(
23156
23157
  (K, Q, lt) => K + (Q != null && Q.marginLeftKey ? q[Q.marginLeftKey] ?? 0 : 0) + (Lt[lt] ?? 0),
@@ -23172,7 +23173,7 @@ const Xa = {
23172
23173
  return St(g) + (K.marginLeftKey ? q[K.marginLeftKey] ?? 0 : 0) + (D.resolved[g] ?? 0);
23173
23174
  },
23174
23175
  [Et, D.resolved, St, q]
23175
- ), _t = (g, K) => {
23176
+ ), At = (g, K) => {
23176
23177
  const Q = g.marginLeftKey ? q[g.marginLeftKey] ?? 0 : 0, { effectiveWidth: lt, resolvedWidth: bt, maxWidth: ue } = ut(g, K), Re = o && K === "two-row-top";
23177
23178
  return /* @__PURE__ */ z(
23178
23179
  "div",
@@ -23346,14 +23347,14 @@ const Xa = {
23346
23347
  }), ve = mt(null), ke = mt(null), Fe = mt(0), Ne = mt("forward"), xt = mt(0), Vt = mt(null), Zt = mt(!1), se = mt(null), Ce = e.length > 1 && (!o || !!a), je = Ce ? 3 : 1, ze = kt(
23347
23348
  () => Array.from({ length: je }, () => e).flat(),
23348
23349
  [e, je]
23349
- ), [Ze, un] = gt(!1), [qt, _e] = gt(!1), [Te, ce] = gt(!0), [$e, Ke] = gt(0), bn = mt($e);
23350
+ ), [Ze, un] = gt(!1), [qt, Ae] = gt(!1), [Te, ce] = gt(!0), [$e, Ke] = gt(0), bn = mt($e);
23350
23351
  bn.current = $e;
23351
23352
  const Ve = mt(null), In = mt(!1), re = mt(null), Ue = mt(null), pn = yt && !Te, Ht = Wt(() => {
23352
23353
  yt && (ce(!0), Ue.current && clearTimeout(Ue.current), Ue.current = setTimeout(() => {
23353
23354
  Yt.current.isActive || ce(!1);
23354
- }, _m));
23355
+ }, Am));
23355
23356
  }, [yt]), he = Wt(() => {
23356
- o || In.current || (In.current = !0, _e(!1), re.current = setTimeout(() => {
23357
+ o || In.current || (In.current = !0, Ae(!1), re.current = setTimeout(() => {
23357
23358
  r();
23358
23359
  }, fi));
23359
23360
  }, [o, r]), He = () => /* @__PURE__ */ z(
@@ -23424,12 +23425,12 @@ const Xa = {
23424
23425
  return /* @__PURE__ */ z(ie, { children: [
23425
23426
  /* @__PURE__ */ z("div", { className: `${t}-header-row-top`, children: [
23426
23427
  (v ?? 0) > 0 || o ? et() : null,
23427
- g && _t(g, "two-row-top"),
23428
+ g && At(g, "two-row-top"),
23428
23429
  x && He()
23429
23430
  ] }),
23430
23431
  Q ? /* @__PURE__ */ z("div", { className: `${t}-header-row-bottom-wrap`, children: [
23431
23432
  K.length > 0 ? /* @__PURE__ */ z("div", { className: `${t}-header-row-bottom`, children: [
23432
- K.map((lt) => _t(lt, "two-row-bottom")),
23433
+ K.map((lt) => At(lt, "two-row-bottom")),
23433
23434
  o && /* @__PURE__ */ z(ie, { children: [
23434
23435
  dt(),
23435
23436
  Nt()
@@ -23454,7 +23455,7 @@ const Xa = {
23454
23455
  ] });
23455
23456
  }, Ft = () => /* @__PURE__ */ z(ie, { children: [
23456
23457
  (v ?? 0) > 0 || o ? et("single-row") : null,
23457
- O.map((g) => _t(g, "single-row")),
23458
+ O.map((g) => At(g, "single-row")),
23458
23459
  o ? /* @__PURE__ */ z(ie, { children: [
23459
23460
  Mt(),
23460
23461
  Jt()
@@ -23497,7 +23498,7 @@ const Xa = {
23497
23498
  }, fe = (g) => {
23498
23499
  const K = Pt.current;
23499
23500
  return !g || !K ? !1 : g.offsetWidth > K.clientWidth + 1;
23500
- }, Ae = (g) => {
23501
+ }, _e = (g) => {
23501
23502
  Pt.current && le.current.forEach((K) => {
23502
23503
  K && (K.style.scrollSnapAlign = fe(K) && g === "backward" ? "end" : "start");
23503
23504
  });
@@ -23521,7 +23522,7 @@ const Xa = {
23521
23522
  (g = ke.current) == null || g.call(ke), ke.current = null;
23522
23523
  }, Ge = () => {
23523
23524
  Vt.current !== null && (cancelAnimationFrame(Vt.current), Vt.current = null), Zt.current = !1;
23524
- }, An = () => {
23525
+ }, _n = () => {
23525
23526
  const g = Pt.current;
23526
23527
  if (!g) {
23527
23528
  Vt.current = null, Zt.current = !1;
@@ -23532,7 +23533,7 @@ const Xa = {
23532
23533
  g.scrollLeft = xt.current, zt(), me(), Vt.current = null, Zt.current = !1;
23533
23534
  return;
23534
23535
  }
23535
- g.scrollLeft += K * Rm, zt(), me(), Ht(), Vt.current = requestAnimationFrame(An);
23536
+ g.scrollLeft += K * Rm, zt(), me(), Ht(), Vt.current = requestAnimationFrame(_n);
23536
23537
  }, Un = () => {
23537
23538
  const g = pe.current;
23538
23539
  g && (g.style.transition = "", g.style.transform = "", g.style.willChange = "");
@@ -23541,7 +23542,7 @@ const Xa = {
23541
23542
  const bt = Q ?? de() % e.length, ue = de() % e.length;
23542
23543
  fetch("http://127.0.0.1:7916/ingest/05b80f60-0d98-4176-9acb-551465211f52", { method: "POST", headers: { "Content-Type": "application/json", "X-Debug-Session-Id": "8d1a00" }, body: JSON.stringify({ sessionId: "8d1a00", runId: "pre-fix-2", hypothesisId: "K", location: "LightboxOverlay.tsx:finishStripScroll", message: "scroll settled", data: { targetLeft: K, scrollLeft: g.scrollLeft, intendedIndex: bt, actualIndex: ue, indexMismatch: bt !== ue }, timestamp: Date.now() }) }).catch(() => {
23543
23544
  }), oe(!0), lt == null || lt();
23544
- }, _n = (g, { behavior: K = "smooth", activeIndex: Q, onComplete: lt } = {}) => {
23545
+ }, An = (g, { behavior: K = "smooth", activeIndex: Q, onComplete: lt } = {}) => {
23545
23546
  const bt = Pt.current, ue = pe.current;
23546
23547
  if (!bt || !ue) return;
23547
23548
  if (Ge(), qe(), oe(!1), K === "auto") {
@@ -23556,7 +23557,7 @@ const Xa = {
23556
23557
  );
23557
23558
  ke.current = Em(bt, ue, g, {
23558
23559
  duration: S,
23559
- easing: Am,
23560
+ easing: _m,
23560
23561
  onComplete: () => {
23561
23562
  ke.current = null, Gn(bt, g, Q, lt);
23562
23563
  }
@@ -23564,7 +23565,7 @@ const Xa = {
23564
23565
  }, ai = (g = "smooth") => {
23565
23566
  if (!Pt.current || e.length === 0) return;
23566
23567
  const Q = de(), lt = le.current[Q];
23567
- lt && _n(lt.offsetLeft, { behavior: g, activeIndex: Q % e.length });
23568
+ lt && An(lt.offsetLeft, { behavior: g, activeIndex: Q % e.length });
23568
23569
  }, Wn = (g, K = "smooth") => {
23569
23570
  const Q = Pt.current;
23570
23571
  if (!Q || e.length === 0) return;
@@ -23580,14 +23581,14 @@ const Xa = {
23580
23581
  }
23581
23582
  const ge = lt < 0 && fe(wt) ? wt.offsetLeft + wt.offsetWidth - Q.clientWidth : wt.offsetLeft, ye = Tt % e.length, ee = de(Q.scrollLeft);
23582
23583
  fetch("http://127.0.0.1:7916/ingest/05b80f60-0d98-4176-9acb-551465211f52", { method: "POST", headers: { "Content-Type": "application/json", "X-Debug-Session-Id": "8d1a00" }, body: JSON.stringify({ sessionId: "8d1a00", runId: "pre-fix-2", hypothesisId: "B_J", location: "LightboxOverlay.tsx:snapAfterDrag", message: "drag snap decision", data: { startScrollLeft: g, scrollLeft: Q.scrollLeft, scrollDelta: lt, startFlatIndex: bt, endFlatIndex: ee, scrollAdjustment: nt, targetFlatIndex: Tt, startIndex: bt % e.length, endIndex: ee % e.length, targetIndex: ye, indexDelta: ye - bt % e.length, endMinusStart: ee - bt }, timestamp: Date.now() }) }).catch(() => {
23583
- }), K === "smooth" && (Ve.current = ye), Ke(ye), _n(ge, {
23584
+ }), K === "smooth" && (Ve.current = ye), Ke(ye), An(ge, {
23584
23585
  behavior: K,
23585
23586
  activeIndex: ye,
23586
23587
  onComplete: K === "smooth" ? an : void 0
23587
23588
  });
23588
23589
  }, kn = (g, K = "smooth") => {
23589
23590
  const Q = Pt.current, lt = Ce ? e.length + g : g, bt = le.current[lt];
23590
- !Q || !bt || (K === "smooth" ? Ve.current = g : Ve.current = null, Ke(g), _n(bt.offsetLeft, {
23591
+ !Q || !bt || (K === "smooth" ? Ve.current = g : Ve.current = null, Ke(g), An(bt.offsetLeft, {
23591
23592
  behavior: K,
23592
23593
  activeIndex: g,
23593
23594
  onComplete: K === "smooth" ? an : void 0
@@ -23648,7 +23649,7 @@ const Xa = {
23648
23649
  !vt || g.pointerType !== "mouse" || gn(g.pointerId);
23649
23650
  };
23650
23651
  return ts(), Ot(() => {
23651
- const g = requestAnimationFrame(() => _e(!0));
23652
+ const g = requestAnimationFrame(() => Ae(!0));
23652
23653
  return () => {
23653
23654
  cancelAnimationFrame(g), qe(), Rn(), re.current && clearTimeout(re.current), Ue.current && clearTimeout(Ue.current);
23654
23655
  };
@@ -23671,9 +23672,9 @@ const Xa = {
23671
23672
  return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
23672
23673
  }, [he]), Oe(() => {
23673
23674
  Ie();
23674
- }, [_, e.length, Ce]), Oe(() => {
23675
+ }, [A, e.length, Ce]), Oe(() => {
23675
23676
  o || kn(bn.current, "auto");
23676
- }, [_, o]), Oe(() => {
23677
+ }, [A, o]), Oe(() => {
23677
23678
  kn(0, "auto");
23678
23679
  }, [e.length, Ce]), Ot(() => {
23679
23680
  const g = Pt.current;
@@ -23686,7 +23687,7 @@ const Xa = {
23686
23687
  const ue = g.scrollWidth - g.clientWidth;
23687
23688
  xt.current = Math.max(0, Math.min(ue, xt.current));
23688
23689
  }
23689
- Ht(), Vt.current === null && (Vt.current = requestAnimationFrame(An));
23690
+ Ht(), Vt.current === null && (Vt.current = requestAnimationFrame(_n));
23690
23691
  }
23691
23692
  };
23692
23693
  return g.addEventListener("wheel", K, { passive: !1 }), () => {
@@ -23702,13 +23703,13 @@ const Xa = {
23702
23703
  const ue = Le.current > 0 ? Le.current * 0.5 : 1 / 0;
23703
23704
  if (bt !== 0 && Math.abs(bt) < ue) {
23704
23705
  const Re = bt > 0 ? "forward" : "backward";
23705
- Re !== Ne.current && (Ne.current = Re, Ae(Re));
23706
+ Re !== Ne.current && (Ne.current = Re, _e(Re));
23706
23707
  }
23707
23708
  me();
23708
23709
  };
23709
23710
  g.addEventListener("scroll", K, { passive: !0 });
23710
23711
  const Q = new ResizeObserver(() => {
23711
- Ie(), zt(Yt.current.isActive), Ae(Ne.current), me();
23712
+ Ie(), zt(Yt.current.isActive), _e(Ne.current), me();
23712
23713
  });
23713
23714
  return Q.observe(g), () => {
23714
23715
  qe(), g.removeEventListener("scroll", K), Q.disconnect();
@@ -23757,8 +23758,8 @@ const Xa = {
23757
23758
  onPointerUp: Qi,
23758
23759
  onPointerCancel: Qi,
23759
23760
  onLostPointerCapture: Jo,
23760
- children: /* @__PURE__ */ s("div", { ref: pe, className: `${t}-lightbox-strip-track`, style: { gap: _ }, children: ze.map((g, K) => {
23761
- const Q = g.image.objectFit ?? "contain", lt = K % e.length, bt = Math.floor(K / e.length), ue = ur(_), Re = `calc(-0.5 * (${ue} + ${_}))`;
23761
+ children: /* @__PURE__ */ s("div", { ref: pe, className: `${t}-lightbox-strip-track`, style: { gap: A }, children: ze.map((g, K) => {
23762
+ const Q = g.image.objectFit ?? "contain", lt = K % e.length, bt = Math.floor(K / e.length), ue = ur(A), Re = `calc(-0.5 * (${ue} + ${A}))`;
23762
23763
  return /* @__PURE__ */ z(
23763
23764
  "div",
23764
23765
  {
@@ -25259,17 +25260,17 @@ const tg = Vm(), eg = {
25259
25260
  }
25260
25261
  },
25261
25262
  defaults: {
25262
- cover: "https://cdn.cntrl.site/component-assets/LightboxJournal_1.jpg",
25263
+ cover: "https://cdn.cntrl.site/component-assets/lightbox_strip_1.jpg",
25263
25264
  coverFit: {
25264
- display: "cover",
25265
- ratioValue: "16:9",
25265
+ display: "fit",
25266
+ ratioValue: "1:1",
25266
25267
  reversed: !1
25267
25268
  },
25268
25269
  closeIcon: Ym,
25269
25270
  closeIconColor: "#ffffff",
25270
25271
  closeIconHoverColor: "#cccccc",
25271
25272
  thumbnailObjectFit: {
25272
- display: "Fit",
25273
+ display: "fit",
25273
25274
  ratioValue: "16:9",
25274
25275
  reversed: !1
25275
25276
  },
@@ -25314,7 +25315,7 @@ const tg = Vm(), eg = {
25314
25315
  thumbnailGap: 0.02,
25315
25316
  thumbnailMarginBottom: 7e-3,
25316
25317
  imageGap: 5e-3,
25317
- title1Width: 0.13,
25318
+ title1Width: 0.3,
25318
25319
  title2Width: 0.13,
25319
25320
  title3Width: 0.14,
25320
25321
  title1MarginLeft: 0.02,
@@ -25399,6 +25400,7 @@ const tg = Vm(), eg = {
25399
25400
  type: "object",
25400
25401
  label: "Image",
25401
25402
  display: {
25403
+ isObjectFitEditable: !1,
25402
25404
  type: "media-input",
25403
25405
  supportsMainImage: !0
25404
25406
  }
@@ -25426,38 +25428,45 @@ const tg = Vm(), eg = {
25426
25428
  default: [
25427
25429
  {
25428
25430
  image: {
25429
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_1.jpg",
25431
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_2.jpg",
25430
25432
  name: "",
25431
25433
  objectFit: "contain"
25432
25434
  },
25433
- title1: "Ethan Parker",
25434
- title2: "Midnight Atlas",
25435
- title3: "Portland, OR"
25435
+ title1: "Giovanni Andrea Vavassore",
25436
+ title2: "ESEMPLA",
25437
+ title3: "Venice, 1500"
25436
25438
  },
25437
25439
  {
25438
25440
  image: {
25439
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_2.jpg",
25441
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_3.jpg",
25440
25442
  name: "",
25441
25443
  objectFit: "contain"
25442
25444
  }
25443
25445
  },
25444
25446
  {
25445
25447
  image: {
25446
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_3.jpg",
25448
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_4.jpg",
25447
25449
  name: "",
25448
25450
  objectFit: "contain"
25449
25451
  }
25450
25452
  },
25451
25453
  {
25452
25454
  image: {
25453
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_4.jpg",
25455
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_5.jpg",
25454
25456
  name: "",
25455
25457
  objectFit: "contain"
25456
25458
  }
25457
25459
  },
25458
25460
  {
25459
25461
  image: {
25460
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_5.jpg",
25462
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_6.jpg",
25463
+ name: "",
25464
+ objectFit: "contain"
25465
+ }
25466
+ },
25467
+ {
25468
+ image: {
25469
+ url: "https://cdn.cntrl.site/component-assets/lightbox_strip_7.jpg",
25461
25470
  name: "",
25462
25471
  objectFit: "contain"
25463
25472
  }
@@ -25601,7 +25610,7 @@ const tg = Vm(), eg = {
25601
25610
  style: o,
25602
25611
  text: e.title3
25603
25612
  }), a;
25604
- }, _o = (t, e) => {
25613
+ }, Ao = (t, e) => {
25605
25614
  if (t <= 0)
25606
25615
  return [];
25607
25616
  const n = e.slice(0, t), i = n.reduce((a, r) => a + r, 0);
@@ -25620,13 +25629,13 @@ const tg = Vm(), eg = {
25620
25629
  { overflow: i - 1, widths: [] }
25621
25630
  );
25622
25631
  return o;
25623
- }, Er = (t, e) => _o(t, e), ti = (t, e) => {
25632
+ }, Er = (t, e) => Ao(t, e), ti = (t, e) => {
25624
25633
  const n = e.filter((i, o) => o !== t).reduce((i, o) => i + o, 0);
25625
25634
  return Math.max(1 - n, 0);
25626
25635
  }, po = (t, e) => {
25627
25636
  const n = t.map((i) => e[i.widthKey] ?? 0);
25628
25637
  return {
25629
- resolved: _o(t.length, n),
25638
+ resolved: Ao(t.length, n),
25630
25639
  effective: Er(t.length, n)
25631
25640
  };
25632
25641
  }, pg = (t, e, n, i) => t.slice(0, i).reduce(
@@ -25736,7 +25745,7 @@ const tg = Vm(), eg = {
25736
25745
  title1MarginLeft: E = 0,
25737
25746
  title2MarginLeft: R = 0,
25738
25747
  title3MarginLeft: v = 0,
25739
- titleRowMarginBottom: A = 0,
25748
+ titleRowMarginBottom: _ = 0,
25740
25749
  titleHeaderLayout: V = "single-row",
25741
25750
  countCloseGap: m = 0,
25742
25751
  closeIcon: T,
@@ -25745,7 +25754,7 @@ const tg = Vm(), eg = {
25745
25754
  closeIconHoverColor: U,
25746
25755
  contentMarginTop: st = 0,
25747
25756
  iconMarginRight: B = 0
25748
- } = n, _ = Wt((S) => W(S, i ?? !1), [i]), X = _(p ?? 0), j = `${f}%`, H = `${L}%`, Y = _(m), it = _(st), rt = _(B), M = go("title1", mo(n, "title1"), i), at = go("title2", mo(n, "title2"), i), h = go("title3", mo(n, "title3"), i), ot = go("count", mo(n, "count"), i), yt = V === "mobile", vt = !i || !!a, Bt = !o && (!i || !!a), Z = kt(() => So(e, x), [e, x]), [ct, G] = gt(r), O = Z[ct], F = O == null ? void 0 : O.entry, [ht, Lt] = gt(!1), [jt, Rt] = gt(null), [Et, Dt] = gt(!1), [D, ut] = gt(null), [P, J] = gt(!1), [q, tt] = gt(0), [ft, St] = gt(), [Xt, _t] = gt(), [Mt, Jt] = gt(null), dt = mt(null), Nt = mt(0), Gt = mt(0), Pt = mt(0), pe = mt(!1), le = mt(null), Le = mt(null), Yt = mt(null), ve = mt(null), ke = mt(null), Fe = mt(null), Ne = mt(null), xt = Wt(() => {
25757
+ } = n, A = Wt((S) => W(S, i ?? !1), [i]), X = A(p ?? 0), j = `${f}%`, H = `${L}%`, Y = A(m), it = A(st), rt = A(B), M = go("title1", mo(n, "title1"), i), at = go("title2", mo(n, "title2"), i), h = go("title3", mo(n, "title3"), i), ot = go("count", mo(n, "count"), i), yt = V === "mobile", vt = !i || !!a, Bt = !o && (!i || !!a), Z = kt(() => So(e, x), [e, x]), [ct, G] = gt(r), O = Z[ct], F = O == null ? void 0 : O.entry, [ht, Lt] = gt(!1), [jt, Rt] = gt(null), [Et, Dt] = gt(!1), [D, ut] = gt(null), [P, J] = gt(!1), [q, tt] = gt(0), [ft, St] = gt(), [Xt, At] = gt(), [Mt, Jt] = gt(null), dt = mt(null), Nt = mt(0), Gt = mt(0), Pt = mt(0), pe = mt(!1), le = mt(null), Le = mt(null), Yt = mt(null), ve = mt(null), ke = mt(null), Fe = mt(null), Ne = mt(null), xt = Wt(() => {
25749
25758
  const S = Le.current;
25750
25759
  if (!S) return;
25751
25760
  const nt = S.closest(`.${t}-lightbox-content-area`);
@@ -25766,7 +25775,7 @@ const tg = Vm(), eg = {
25766
25775
  mediaAreaStyle: Ze,
25767
25776
  overlayContentStyle: un,
25768
25777
  swipeHandlers: qt,
25769
- dismissAreaStyle: _e
25778
+ dismissAreaStyle: Ae
25770
25779
  } = Ql({
25771
25780
  enabled: Bt,
25772
25781
  onClose: se,
@@ -25794,9 +25803,9 @@ const tg = Vm(), eg = {
25794
25803
  ye ?? 0,
25795
25804
  (ee == null ? void 0 : ee.measuredIncomingTitlesHeight) ?? 0
25796
25805
  ) || void 0;
25797
- tt($t), ut(ct), J(!0), G(nt), Te(nt), Pt.current = nt, ge ? (Vt(), Ye && St(Ye), ee != null && ee.incomingTitlesMeasureWidth && _t(ee.incomingTitlesMeasureWidth), Rt((Tt == null ? void 0 : Tt.entryIndex) ?? null), Dt(!0), Gt.current = wt.entryIndex, dt.current = setTimeout(() => {
25798
- Rt(null), Dt(!1), St(void 0), _t(void 0), Jt(null), dt.current = null;
25799
- }, 400)) : (Vt(), Rt(null), Dt(!1), St(void 0), _t(void 0), Jt(null), Gt.current = wt.entryIndex);
25806
+ tt($t), ut(ct), J(!0), G(nt), Te(nt), Pt.current = nt, ge ? (Vt(), Ye && St(Ye), ee != null && ee.incomingTitlesMeasureWidth && At(ee.incomingTitlesMeasureWidth), Rt((Tt == null ? void 0 : Tt.entryIndex) ?? null), Dt(!0), Gt.current = wt.entryIndex, dt.current = setTimeout(() => {
25807
+ Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), dt.current = null;
25808
+ }, 400)) : (Vt(), Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), Gt.current = wt.entryIndex);
25800
25809
  }, [ct, Vt, xt, ce, Z, Te, $]), Ke = Wt(() => {
25801
25810
  Ne.current = null;
25802
25811
  }, []), bn = Wt((S) => {
@@ -25840,7 +25849,7 @@ const tg = Vm(), eg = {
25840
25849
  };
25841
25850
  }, []), Ot(() => {
25842
25851
  var S;
25843
- $ !== "fade" && (Gt.current = ((S = Z[ct]) == null ? void 0 : S.entryIndex) ?? 0, Vt(), Rt(null), Dt(!1), St(void 0), _t(void 0));
25852
+ $ !== "fade" && (Gt.current = ((S = Z[ct]) == null ? void 0 : S.entryIndex) ?? 0, Vt(), Rt(null), Dt(!1), St(void 0), At(void 0));
25844
25853
  }, [ct, Vt, Z, $]), Ot(() => {
25845
25854
  const S = (nt) => {
25846
25855
  if (nt.key === "Escape") {
@@ -25868,7 +25877,7 @@ const tg = Vm(), eg = {
25868
25877
  };
25869
25878
  return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
25870
25879
  }, [$e, se, ct, Z.length]), Oe(() => {
25871
- Vt(), Nt.current = 0, tt(0), ut(null), J(!1), Rt(null), Dt(!1), St(void 0), _t(void 0), Jt(null), G((S) => {
25880
+ Vt(), Nt.current = 0, tt(0), ut(null), J(!1), Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), G((S) => {
25872
25881
  const nt = Math.max(0, Z.length - 1);
25873
25882
  return Math.min(S, nt);
25874
25883
  });
@@ -25877,7 +25886,7 @@ const tg = Vm(), eg = {
25877
25886
  const S = Math.max(0, Z.length - 1), nt = Math.min(Math.max(0, r), S);
25878
25887
  Pt.current = nt, Gt.current = ((Tt = Z[nt]) == null ? void 0 : Tt.entryIndex) ?? 0, G(nt);
25879
25888
  }, [r]);
25880
- const re = jt !== null ? e[jt] : null, Ue = D !== null ? Z[D] : null, pn = (F == null ? void 0 : F.title1) || (F == null ? void 0 : F.title2) || (F == null ? void 0 : F.title3) || (re == null ? void 0 : re.title1) || (re == null ? void 0 : re.title2) || (re == null ? void 0 : re.title3), Ht = ug(x, Z, e), he = T !== null, He = pn || Ht || he, et = Ht && he ? { gap: Y } : void 0, Ct = `${t}-titles-stack${yt ? ` ${t}-titles-stack-stacked` : ""}`, Ft = `${t}-titles-layer-out${yt ? ` ${t}-titles-layer-out-stacked` : ""}`, Kt = _(A), te = kt(
25889
+ const re = jt !== null ? e[jt] : null, Ue = D !== null ? Z[D] : null, pn = (F == null ? void 0 : F.title1) || (F == null ? void 0 : F.title2) || (F == null ? void 0 : F.title3) || (re == null ? void 0 : re.title1) || (re == null ? void 0 : re.title2) || (re == null ? void 0 : re.title3), Ht = ug(x, Z, e), he = T !== null, He = pn || Ht || he, et = Ht && he ? { gap: Y } : void 0, Ct = `${t}-titles-stack${yt ? ` ${t}-titles-stack-stacked` : ""}`, Ft = `${t}-titles-layer-out${yt ? ` ${t}-titles-layer-out-stacked` : ""}`, Kt = A(_), te = kt(
25881
25890
  () => ({
25882
25891
  title1Width: C ?? hr.title1Width,
25883
25892
  title2Width: w ?? hr.title2Width,
@@ -25894,7 +25903,7 @@ const tg = Vm(), eg = {
25894
25903
  () => It.map((S) => te[S.widthKey]),
25895
25904
  [It, te]
25896
25905
  ), Se = kt(
25897
- () => _o(It.length, We),
25906
+ () => Ao(It.length, We),
25898
25907
  [It.length, We]
25899
25908
  ), Pe = kt(
25900
25909
  () => Er(It.length, We),
@@ -25911,7 +25920,7 @@ const tg = Vm(), eg = {
25911
25920
  ), fe = kt(
25912
25921
  () => po(zt, te),
25913
25922
  [zt, te]
25914
- ), Ae = Wt((S, nt) => {
25923
+ ), _e = Wt((S, nt) => {
25915
25924
  const Tt = It.findIndex(($t) => $t.prefix === S.prefix);
25916
25925
  if (!yt || nt === "single-row")
25917
25926
  return {
@@ -25967,7 +25976,7 @@ const tg = Vm(), eg = {
25967
25976
  [zt, fe.resolved, an, ae]
25968
25977
  ), qe = Wt((S, nt, Tt) => {
25969
25978
  if (!yt || Tt === "single-row") {
25970
- const ee = S.findIndex((Xn) => Xn.prefix === nt.prefix), Ye = S.map((Xn) => te[Xn.widthKey]), Qe = _o(S.length, Ye);
25979
+ const ee = S.findIndex((Xn) => Xn.prefix === nt.prefix), Ye = S.map((Xn) => te[Xn.widthKey]), Qe = Ao(S.length, Ye);
25971
25980
  return {
25972
25981
  effectiveWidth: Er(S.length, Ye)[ee] ?? 0,
25973
25982
  resolvedWidth: Qe[ee] ?? 0,
@@ -25993,15 +26002,15 @@ const tg = Vm(), eg = {
25993
26002
  effectiveWidth: $t,
25994
26003
  resolvedWidth: ge,
25995
26004
  maxWidth: ye
25996
- } = Tt ?? Ae(S, nt), ee = Math.max(wt, co), Ye = o && nt === "two-row-top";
26005
+ } = Tt ?? _e(S, nt), ee = Math.max(wt, co), Ye = o && nt === "two-row-top";
25997
26006
  return /* @__PURE__ */ z(
25998
26007
  "div",
25999
26008
  {
26000
26009
  className: `${t}-title-cell`,
26001
26010
  "data-title": S.prefix,
26002
26011
  style: {
26003
- width: _($t),
26004
- ...wt > 0 ? { marginLeft: _(wt) } : {}
26012
+ width: A($t),
26013
+ ...wt > 0 ? { marginLeft: A(wt) } : {}
26005
26014
  },
26006
26015
  children: [
26007
26016
  /* @__PURE__ */ s("p", { className: S.className, style: S.style, children: S.text }),
@@ -26015,8 +26024,8 @@ const tg = Vm(), eg = {
26015
26024
  style: {
26016
26025
  position: "absolute",
26017
26026
  top: 0,
26018
- left: _(-wt),
26019
- width: _(ee),
26027
+ left: A(-wt),
26028
+ width: A(ee),
26020
26029
  height: "100%",
26021
26030
  pointerEvents: "auto"
26022
26031
  }
@@ -26033,8 +26042,8 @@ const tg = Vm(), eg = {
26033
26042
  style: {
26034
26043
  position: "absolute",
26035
26044
  top: 0,
26036
- right: _(-ci / 2),
26037
- width: _(ci),
26045
+ right: A(-ci / 2),
26046
+ width: A(ci),
26038
26047
  height: "100%",
26039
26048
  pointerEvents: "auto"
26040
26049
  }
@@ -26044,7 +26053,7 @@ const tg = Vm(), eg = {
26044
26053
  },
26045
26054
  S.className
26046
26055
  );
26047
- }, An = () => /* @__PURE__ */ s(
26056
+ }, _n = () => /* @__PURE__ */ s(
26048
26057
  "div",
26049
26058
  {
26050
26059
  ...o ? {
@@ -26052,7 +26061,7 @@ const tg = Vm(), eg = {
26052
26061
  "data-controls-axis": "x"
26053
26062
  } : {},
26054
26063
  style: {
26055
- width: _(E ?? 0),
26064
+ width: A(E ?? 0),
26056
26065
  flexShrink: 0,
26057
26066
  alignSelf: "stretch",
26058
26067
  ...o ? { pointerEvents: "auto" } : {}
@@ -26135,14 +26144,14 @@ const tg = Vm(), eg = {
26135
26144
  )
26136
26145
  ]
26137
26146
  }
26138
- ), _n = () => !Ht && !he ? null : /* @__PURE__ */ z("div", { className: `${t}-titles-row-top-controls`, style: et, children: [
26147
+ ), An = () => !Ht && !he ? null : /* @__PURE__ */ z("div", { className: `${t}-titles-row-top-controls`, style: et, children: [
26139
26148
  Ht ? Un() : null,
26140
26149
  he ? Gn() : null
26141
26150
  ] }), ai = (S) => {
26142
26151
  if (!S) return null;
26143
26152
  const nt = uo(t, S, M, at, h);
26144
26153
  return /* @__PURE__ */ z(ie, { children: [
26145
- E > 0 || o ? An() : null,
26154
+ E > 0 || o ? _n() : null,
26146
26155
  nt.map((Tt) => Ge(
26147
26156
  Tt,
26148
26157
  "single-row",
@@ -26153,7 +26162,7 @@ const tg = Vm(), eg = {
26153
26162
  if (!S) return null;
26154
26163
  const nt = uo(t, S, M, at, h), Tt = nt.find((wt) => wt.prefix === "title1");
26155
26164
  return !Tt && !(E > 0 || o) ? null : /* @__PURE__ */ z(ie, { children: [
26156
- E > 0 || o ? An() : null,
26165
+ E > 0 || o ? _n() : null,
26157
26166
  Tt ? Ge(
26158
26167
  Tt,
26159
26168
  "two-row-top",
@@ -26162,7 +26171,7 @@ const tg = Vm(), eg = {
26162
26171
  ] });
26163
26172
  }, kn = (S, nt = !1) => {
26164
26173
  const Tt = S ? uo(t, S, M, at, h) : [], wt = Tt.filter((ye) => ye.prefix === "title2" || ye.prefix === "title3"), $t = o && nt;
26165
- return wt.length > 0 || $t || (A ?? 0) > 0 ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom-wrap`, children: [
26174
+ return wt.length > 0 || $t || (_ ?? 0) > 0 ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom-wrap`, children: [
26166
26175
  wt.length > 0 ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom`, children: [
26167
26176
  wt.map((ye) => Ge(
26168
26177
  ye,
@@ -26174,7 +26183,7 @@ const tg = Vm(), eg = {
26174
26183
  Jo()
26175
26184
  ] }) : null
26176
26185
  ] }) : null,
26177
- (A ?? 0) > 0 || $t ? /* @__PURE__ */ s(
26186
+ (_ ?? 0) > 0 || $t ? /* @__PURE__ */ s(
26178
26187
  "div",
26179
26188
  {
26180
26189
  "data-controls": $t ? "titleRowMarginBottom" : void 0,
@@ -26193,7 +26202,7 @@ const tg = Vm(), eg = {
26193
26202
  }, Rn = (S, nt = !1) => /* @__PURE__ */ z(ie, { children: [
26194
26203
  /* @__PURE__ */ z("div", { className: `${t}-titles-row-top`, children: [
26195
26204
  Wn(S),
26196
- _n()
26205
+ An()
26197
26206
  ] }),
26198
26207
  kn(S, nt)
26199
26208
  ] }), gn = (S) => yt ? /* @__PURE__ */ s("div", { className: `${t}-titles-row-two-row`, style: { width: "100%" }, children: Rn(S) }) : S ? /* @__PURE__ */ s("div", { className: `${t}-titles-row`, style: { width: "100%" }, children: ai(S) }) : null, Xo = () => {
@@ -26210,7 +26219,7 @@ const tg = Vm(), eg = {
26210
26219
  position: "absolute",
26211
26220
  top: 0,
26212
26221
  left: 0,
26213
- width: _($t),
26222
+ width: A($t),
26214
26223
  height: "100%",
26215
26224
  pointerEvents: "auto"
26216
26225
  }
@@ -26235,8 +26244,8 @@ const tg = Vm(), eg = {
26235
26244
  style: {
26236
26245
  position: "absolute",
26237
26246
  top: 0,
26238
- left: _(ye),
26239
- width: _(ee),
26247
+ left: A(ye),
26248
+ width: A(ee),
26240
26249
  height: "100%",
26241
26250
  pointerEvents: "auto"
26242
26251
  }
@@ -26258,8 +26267,8 @@ const tg = Vm(), eg = {
26258
26267
  style: {
26259
26268
  position: "absolute",
26260
26269
  top: 0,
26261
- left: _($t),
26262
- width: _(ci),
26270
+ left: A($t),
26271
+ width: A(ci),
26263
26272
  height: "100%",
26264
26273
  pointerEvents: "auto"
26265
26274
  }
@@ -26267,7 +26276,7 @@ const tg = Vm(), eg = {
26267
26276
  ) }, `${S.widthKey}-junction`);
26268
26277
  }), Qi = () => zt.flatMap((S, nt) => {
26269
26278
  if (!S.marginLeftKey) return [];
26270
- const Tt = ae[S.marginLeftKey] ?? 0, wt = an(nt), $t = Math.max(Tt, co), { resolvedWidth: ge } = Ae(S, "two-row-bottom");
26279
+ const Tt = ae[S.marginLeftKey] ?? 0, wt = an(nt), $t = Math.max(Tt, co), { resolvedWidth: ge } = _e(S, "two-row-bottom");
26271
26280
  return /* @__PURE__ */ s(
26272
26281
  "div",
26273
26282
  {
@@ -26278,8 +26287,8 @@ const tg = Vm(), eg = {
26278
26287
  style: {
26279
26288
  position: "absolute",
26280
26289
  top: 0,
26281
- left: _(wt),
26282
- width: _($t),
26290
+ left: A(wt),
26291
+ width: A($t),
26283
26292
  height: "100%",
26284
26293
  pointerEvents: "auto"
26285
26294
  }
@@ -26287,7 +26296,7 @@ const tg = Vm(), eg = {
26287
26296
  S.marginLeftKey
26288
26297
  );
26289
26298
  }), Jo = () => zt.map((S, nt) => {
26290
- const { maxWidth: Tt } = Ae(S, "two-row-bottom"), $t = oe(nt) - ci / 2;
26299
+ const { maxWidth: Tt } = _e(S, "two-row-bottom"), $t = oe(nt) - ci / 2;
26291
26300
  return /* @__PURE__ */ s("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ s(
26292
26301
  "div",
26293
26302
  {
@@ -26299,8 +26308,8 @@ const tg = Vm(), eg = {
26299
26308
  style: {
26300
26309
  position: "absolute",
26301
26310
  top: 0,
26302
- left: _($t),
26303
- width: _(ci),
26311
+ left: A($t),
26312
+ width: A(ci),
26304
26313
  height: "100%",
26305
26314
  pointerEvents: "auto"
26306
26315
  }
@@ -26363,7 +26372,7 @@ const tg = Vm(), eg = {
26363
26372
  ] }, `${$t.url}-${ge}`))
26364
26373
  }
26365
26374
  );
26366
- }, bt = !!(F != null && F.title2 || F != null && F.title3 || re != null && re.title2 || re != null && re.title3 || (A ?? 0) > 0 || o), ue = () => /* @__PURE__ */ z(
26375
+ }, bt = !!(F != null && F.title2 || F != null && F.title3 || re != null && re.title2 || re != null && re.title3 || (_ ?? 0) > 0 || o), ue = () => /* @__PURE__ */ z(
26367
26376
  "div",
26368
26377
  {
26369
26378
  style: {
@@ -26424,7 +26433,7 @@ const tg = Vm(), eg = {
26424
26433
  ]
26425
26434
  }
26426
26435
  ),
26427
- _n()
26436
+ An()
26428
26437
  ] }),
26429
26438
  bt ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom-area`, children: [
26430
26439
  re && Et ? /* @__PURE__ */ s("div", { className: `${Ft} ${t}-titles-layer-out-bottom ${t}-titles-fade-out`, children: kn(re) }) : null,
@@ -26497,7 +26506,7 @@ const tg = Vm(), eg = {
26497
26506
  position: "relative",
26498
26507
  width: "100%",
26499
26508
  height: "100%",
26500
- ..._e
26509
+ ...Ae
26501
26510
  },
26502
26511
  ...qt,
26503
26512
  children: [
@@ -27135,7 +27144,7 @@ const wg = ({ settings: t, content: e, isEditor: n, isEditMode: i, isPreviewMode
27135
27144
  [e]
27136
27145
  ), E = y && k.length > 0, R = !n, v = Wt(() => {
27137
27146
  R && (w.current = !0, rg(C.current, l), C.current = !1);
27138
- }, [R, l]), A = (m = 0) => {
27147
+ }, [R, l]), _ = (m = 0) => {
27139
27148
  if (k.length === 0 || n && !i && !o) return;
27140
27149
  const T = So(k, x), I = Math.max(0, Math.min(m, T.length - 1));
27141
27150
  if (L(I), R) {
@@ -27183,7 +27192,7 @@ const wg = ({ settings: t, content: e, isEditor: n, isEditMode: i, isPreviewMode
27183
27192
  {
27184
27193
  type: "button",
27185
27194
  className: `${c}-cover ${Ln(d) ? `${c}-ratio-wrapper-cover` : `${c}-ratio-wrapper-fit`}`,
27186
- onClick: () => A(),
27195
+ onClick: () => _(),
27187
27196
  style: {
27188
27197
  display: "block",
27189
27198
  padding: 0,
@@ -28297,10 +28306,10 @@ const Eg = fg(), Pg = {
28297
28306
  }
28298
28307
  },
28299
28308
  defaults: {
28300
- cover: "https://cdn.cntrl.site/component-assets/LightboxJournal_1.jpg",
28309
+ cover: "https://cdn.cntrl.site/component-assets/lightbox_journal_1.jpg",
28301
28310
  coverFit: {
28302
- display: "cover",
28303
- ratioValue: "16:9",
28311
+ display: "fit",
28312
+ ratioValue: "1:1",
28304
28313
  reversed: !1
28305
28314
  },
28306
28315
  closeIcon: Sg,
@@ -28468,12 +28477,12 @@ const Eg = fg(), Pg = {
28468
28477
  title3: "July 1978",
28469
28478
  image: [
28470
28479
  {
28471
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_1.jpg",
28480
+ url: "https://cdn.cntrl.site/component-assets/lightbox_journal_2.jpg",
28472
28481
  name: "",
28473
28482
  objectFit: "contain"
28474
28483
  },
28475
28484
  {
28476
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_2.jpg",
28485
+ url: "https://cdn.cntrl.site/component-assets/lightbox_journal_3.jpg",
28477
28486
  name: "",
28478
28487
  objectFit: "contain"
28479
28488
  }
@@ -28485,12 +28494,12 @@ const Eg = fg(), Pg = {
28485
28494
  title3: "March 1979",
28486
28495
  image: [
28487
28496
  {
28488
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_3.jpg",
28497
+ url: "https://cdn.cntrl.site/component-assets/lightbox_journal_4.jpg",
28489
28498
  name: "",
28490
28499
  objectFit: "contain"
28491
28500
  },
28492
28501
  {
28493
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_4.jpg",
28502
+ url: "https://cdn.cntrl.site/component-assets/lightbox_journal_5.jpg",
28494
28503
  name: "",
28495
28504
  objectFit: "contain"
28496
28505
  }
@@ -28502,7 +28511,7 @@ const Eg = fg(), Pg = {
28502
28511
  title3: "January 1980",
28503
28512
  image: [
28504
28513
  {
28505
- url: "https://cdn.cntrl.site/component-assets/LightboxStrip_5.jpg",
28514
+ url: "https://cdn.cntrl.site/component-assets/lightbox_journal_6.jpg",
28506
28515
  name: "",
28507
28516
  objectFit: "contain"
28508
28517
  }