@cntrl-site/components 1.0.73 → 1.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -466,7 +466,7 @@ var am = 5, Pl = 200, qd = "touchstart mousedown", Ra = "touchmove mousemove", P
466
466
  function sm(e, t, n) {
467
467
  var i = on(e), o = i.on, r = i.bind, a = e.root, l = n.i18n, s = {}, d = [], u = [], b = [], f, m, g;
468
468
  function h() {
469
- x(), N(), y();
469
+ x(), W(), y();
470
470
  }
471
471
  function v() {
472
472
  o(sn, w), o(sn, h), o(yn, y), r(document, qd + " keydown", function(H) {
@@ -485,7 +485,7 @@ function sm(e, t, n) {
485
485
  qn(a, u), qn(f, b), u = U(Ia), b = U(Rl), On(a, u), On(f, b), At(a, Ln, n.label), At(a, Us, n.labelledby);
486
486
  }
487
487
  function x() {
488
- f = W("." + Rl), m = rr(f, "." + Yp), Ho(f && m, "A track/list element is missing."), Dr(d, gd(m, "." + ga + ":not(." + Hd + ")")), Ai({
488
+ f = N("." + Rl), m = rr(f, "." + Yp), Ho(f && m, "A track/list element is missing."), Dr(d, gd(m, "." + ga + ":not(." + Hd + ")")), Ai({
489
489
  arrows: Zs,
490
490
  pagination: fa,
491
491
  prev: Od,
@@ -493,7 +493,7 @@ function sm(e, t, n) {
493
493
  bar: Jp,
494
494
  toggle: Qp
495
495
  }, function(H, $) {
496
- s[$] = W("." + H);
496
+ s[$] = N("." + H);
497
497
  }), Go(s, {
498
498
  root: a,
499
499
  track: f,
@@ -501,11 +501,11 @@ function sm(e, t, n) {
501
501
  slides: d
502
502
  });
503
503
  }
504
- function N() {
504
+ function W() {
505
505
  var H = a.id || Bp(ar), $ = n.role;
506
506
  a.id = H, f.id = f.id || H + "-track", m.id = m.id || H + "-list", !En(a, Xn) && a.tagName !== "SECTION" && $ && At(a, Xn, $), At(a, Uo, l.carousel), At(m, Xn, "presentation");
507
507
  }
508
- function W(H) {
508
+ function N(H) {
509
509
  var $ = yd(a, H);
510
510
  return $ && rm($, "." + Ia) === a ? $ : void 0;
511
511
  }
@@ -520,7 +520,7 @@ function sm(e, t, n) {
520
520
  }
521
521
  var lo = "slide", $o = "loop", lr = "fade";
522
522
  function lm(e, t, n, i) {
523
- var o = on(e), r = o.on, a = o.emit, l = o.bind, s = e.Components, d = e.root, u = e.options, b = u.isNavigation, f = u.updateOnMove, m = u.i18n, g = u.pagination, h = u.slideFocus, v = s.Direction.resolve, w = En(i, "style"), y = En(i, Ln), x = n > -1, N = rr(i, "." + Kp), W;
523
+ var o = on(e), r = o.on, a = o.emit, l = o.bind, s = e.Components, d = e.root, u = e.options, b = u.isNavigation, f = u.updateOnMove, m = u.i18n, g = u.pagination, h = u.slideFocus, v = s.Direction.resolve, w = En(i, "style"), y = En(i, Ln), x = n > -1, W = rr(i, "." + Kp), N;
524
524
  function U() {
525
525
  x || (i.id = d.id + "-slide" + zs(t + 1), At(i, Xn, g ? "tabpanel" : "group"), At(i, Uo, m.slide), At(i, Ln, y || us(m.slideLabel, [t + 1, e.length]))), H();
526
526
  }
@@ -528,7 +528,7 @@ function lm(e, t, n, i) {
528
528
  l(i, "click", tn(a, Bs, oe)), l(i, "keydown", tn(a, Ad, oe)), r([So, kd, Hi], I), r(js, B), f && r(Zn, S);
529
529
  }
530
530
  function $() {
531
- W = !0, o.destroy(), qn(i, im), Dn(i, Ks), At(i, "style", w), At(i, Ln, y || "");
531
+ N = !0, o.destroy(), qn(i, im), Dn(i, Ks), At(i, "style", w), At(i, Ln, y || "");
532
532
  }
533
533
  function B() {
534
534
  var L = e.splides.map(function(_) {
@@ -538,10 +538,10 @@ function lm(e, t, n, i) {
538
538
  At(i, Ln, us(m.slideX, (x ? n : t) + 1)), At(i, sr, L), At(i, Xn, h ? "button" : ""), h && Dn(i, Uo);
539
539
  }
540
540
  function S() {
541
- W || I();
541
+ N || I();
542
542
  }
543
543
  function I() {
544
- if (!W) {
544
+ if (!N) {
545
545
  var L = e.index;
546
546
  E(), C(), Gn(i, Bd, t === L - 1), Gn(i, Vd, t === L + 1);
547
547
  }
@@ -558,7 +558,7 @@ function lm(e, t, n, i) {
558
558
  }
559
559
  }
560
560
  function p(L, _, Y) {
561
- Mn(Y && N || i, L, _);
561
+ Mn(Y && W || i, L, _);
562
562
  }
563
563
  function M() {
564
564
  var L = e.index;
@@ -578,7 +578,7 @@ function lm(e, t, n, i) {
578
578
  index: t,
579
579
  slideIndex: n,
580
580
  slide: i,
581
- container: N,
581
+ container: W,
582
582
  isClone: x,
583
583
  mount: U,
584
584
  destroy: $,
@@ -599,12 +599,12 @@ function cm(e, t, n) {
599
599
  });
600
600
  }
601
601
  function m() {
602
- W(function(I) {
602
+ N(function(I) {
603
603
  I.destroy();
604
604
  }), Kn(u);
605
605
  }
606
606
  function g() {
607
- W(function(I) {
607
+ N(function(I) {
608
608
  I.update();
609
609
  });
610
610
  }
@@ -636,12 +636,12 @@ function cm(e, t, n) {
636
636
  }
637
637
  }), r(sn);
638
638
  }
639
- function N(I) {
639
+ function W(I) {
640
640
  Fi(U(I).map(function(E) {
641
641
  return E.slide;
642
642
  })), r(sn);
643
643
  }
644
- function W(I, E) {
644
+ function N(I, E) {
645
645
  v(E).forEach(I);
646
646
  }
647
647
  function U(I) {
@@ -650,7 +650,7 @@ function cm(e, t, n) {
650
650
  });
651
651
  }
652
652
  function H(I, E, C) {
653
- W(function(p) {
653
+ N(function(p) {
654
654
  p.style(I, E, C);
655
655
  });
656
656
  }
@@ -677,8 +677,8 @@ function cm(e, t, n) {
677
677
  getIn: w,
678
678
  getAt: y,
679
679
  add: x,
680
- remove: N,
681
- forEach: W,
680
+ remove: W,
681
+ forEach: N,
682
682
  filter: U,
683
683
  style: H,
684
684
  getLength: B,
@@ -688,22 +688,22 @@ function cm(e, t, n) {
688
688
  function dm(e, t, n) {
689
689
  var i = on(e), o = i.on, r = i.bind, a = i.emit, l = t.Slides, s = t.Direction.resolve, d = t.Elements, u = d.root, b = d.track, f = d.list, m = l.getAt, g = l.style, h, v, w;
690
690
  function y() {
691
- x(), r(window, "resize load", Gp(tn(a, so))), o([yn, sn], x), o(so, N);
691
+ x(), r(window, "resize load", Gp(tn(a, so))), o([yn, sn], x), o(so, W);
692
692
  }
693
693
  function x() {
694
- h = n.direction === ma, Mn(u, "maxWidth", wi(n.width)), Mn(b, s("paddingLeft"), W(!1)), Mn(b, s("paddingRight"), W(!0)), N(!0);
694
+ h = n.direction === ma, Mn(u, "maxWidth", wi(n.width)), Mn(b, s("paddingLeft"), N(!1)), Mn(b, s("paddingRight"), N(!0)), W(!0);
695
695
  }
696
- function N(oe) {
696
+ function W(oe) {
697
697
  var L = Cn(u);
698
698
  (oe || v.width !== L.width || v.height !== L.height) && (Mn(b, "height", U()), g(s("marginRight"), wi(n.gap)), g("width", $()), g("height", B(), !0), v = L, a(sa), w !== (w = D()) && (Gn(u, Gd, w), a(Vp, w)));
699
699
  }
700
- function W(oe) {
700
+ function N(oe) {
701
701
  var L = n.padding, _ = s(oe ? "right" : "left");
702
702
  return L && wi(L[_] || (Bo(L) ? 0 : L)) || "0px";
703
703
  }
704
704
  function U() {
705
705
  var oe = "";
706
- return h && (oe = H(), Ho(oe, "height or heightRatio is missing."), oe = "calc(" + oe + " - " + W(!1) + " - " + W(!0) + ")"), oe;
706
+ return h && (oe = H(), Ho(oe, "height or heightRatio is missing."), oe = "calc(" + oe + " - " + N(!1) + " - " + N(!0) + ")"), oe;
707
707
  }
708
708
  function H() {
709
709
  return wi(n.height || Cn(f).width * n.heightRatio);
@@ -748,7 +748,7 @@ function dm(e, t, n) {
748
748
  }
749
749
  return {
750
750
  mount: y,
751
- resize: N,
751
+ resize: W,
752
752
  listSize: I,
753
753
  slideSize: E,
754
754
  sliderSize: p,
@@ -778,9 +778,9 @@ function pm(e, t, n) {
778
778
  if (x) {
779
779
  for (; y.length < w; )
780
780
  Dr(y, y);
781
- Dr(y.slice(-w), y.slice(0, w)).forEach(function(N, W) {
782
- var U = W < w, H = h(N.slide, W);
783
- U ? Hs(H, y[0].slide) : or(r.list, H), Dr(s, H), a.register(H, W - w + (U ? 0 : x), N.index);
781
+ Dr(y.slice(-w), y.slice(0, w)).forEach(function(W, N) {
782
+ var U = N < w, H = h(W.slide, N);
783
+ U ? Hs(H, y[0].slide) : or(r.list, H), Dr(s, H), a.register(H, N - w + (U ? 0 : x), W.index);
784
784
  });
785
785
  }
786
786
  }
@@ -805,10 +805,10 @@ function pm(e, t, n) {
805
805
  }
806
806
  function mm(e, t, n) {
807
807
  var i = on(e), o = i.on, r = i.emit, a = e.state.set, l = t.Layout, s = l.slideSize, d = l.getPadding, u = l.totalSize, b = l.listSize, f = l.sliderSize, m = t.Direction, g = m.resolve, h = m.orient, v = t.Elements, w = v.list, y = v.track, x;
808
- function N() {
809
- x = t.Transition, o([fi, sa, yn, sn], W);
810
- }
811
808
  function W() {
809
+ x = t.Transition, o([fi, sa, yn, sn], N);
810
+ }
811
+ function N() {
812
812
  t.Controller.isBusy() || (t.Scroll.cancel(), H(e.index), t.Slides.update());
813
813
  }
814
814
  function U(_, Y, le, pe) {
@@ -877,7 +877,7 @@ function mm(e, t, n) {
877
877
  return le || pe;
878
878
  }
879
879
  return {
880
- mount: N,
880
+ mount: W,
881
881
  move: U,
882
882
  jump: H,
883
883
  translate: $,
@@ -888,17 +888,17 @@ function mm(e, t, n) {
888
888
  getPosition: p,
889
889
  getLimit: D,
890
890
  exceededLimit: L,
891
- reposition: W
891
+ reposition: N
892
892
  };
893
893
  }
894
894
  function gm(e, t, n) {
895
- var i = on(e), o = i.on, r = i.emit, a = t.Move, l = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, b = u.isEnough, f = u.getLength, m = n.omitEnd, g = e.is($o), h = e.is(lo), v = tn(p, !1), w = tn(p, !0), y = n.start || 0, x, N = y, W, U, H;
895
+ var i = on(e), o = i.on, r = i.emit, a = t.Move, l = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, b = u.isEnough, f = u.getLength, m = n.omitEnd, g = e.is($o), h = e.is(lo), v = tn(p, !1), w = tn(p, !0), y = n.start || 0, x, W = y, N, U, H;
896
896
  function $() {
897
897
  B(), o([yn, sn, Kr], B), o(sa, S);
898
898
  }
899
899
  function B() {
900
- W = f(!0), U = n.perMove, H = n.perPage, x = oe();
901
- var j = Xi(y, 0, m ? x : W - 1);
900
+ N = f(!0), U = n.perMove, H = n.perPage, x = oe();
901
+ var j = Xi(y, 0, m ? x : N - 1);
902
902
  j !== y && (y = j, a.reposition());
903
903
  }
904
904
  function S() {
@@ -907,7 +907,7 @@ function gm(e, t, n) {
907
907
  function I(j, ue, Q) {
908
908
  if (!ye()) {
909
909
  var $e = C(j), ze = D($e);
910
- ze > -1 && (ue || ze !== y) && (le(ze), a.move($e, ze, N, Q));
910
+ ze > -1 && (ue || ze !== y) && (le(ze), a.move($e, ze, W, Q));
911
911
  }
912
912
  }
913
913
  function E(j, ue, Q, $e) {
@@ -932,7 +932,7 @@ function gm(e, t, n) {
932
932
  function M(j, ue, Q) {
933
933
  if (b() || A()) {
934
934
  var $e = R(j);
935
- $e !== j && (ue = j, j = $e, Q = !1), j < 0 || j > x ? !U && (zr(0, j, ue, !0) || zr(x, ue, j, !0)) ? j = L(_(j)) : g ? j = Q ? j < 0 ? -(W % H || H) : W : j : n.rewind ? j = j < 0 ? x : 0 : j = -1 : Q && j !== ue && (j = L(_(ue) + (j < ue ? -1 : 1)));
935
+ $e !== j && (ue = j, j = $e, Q = !1), j < 0 || j > x ? !U && (zr(0, j, ue, !0) || zr(x, ue, j, !0)) ? j = L(_(j)) : g ? j = Q ? j < 0 ? -(N % H || H) : N : j : n.rewind ? j = j < 0 ? x : 0 : j = -1 : Q && j !== ue && (j = L(_(ue) + (j < ue ? -1 : 1)));
936
936
  } else
937
937
  j = -1;
938
938
  return j;
@@ -944,31 +944,31 @@ function gm(e, t, n) {
944
944
  return j;
945
945
  }
946
946
  function D(j) {
947
- return g ? (j + W) % W || 0 : j;
947
+ return g ? (j + N) % N || 0 : j;
948
948
  }
949
949
  function oe() {
950
- for (var j = W - (A() || g && U ? 1 : H); m && j-- > 0; )
951
- if (d(W - 1, !0) !== d(j, !0)) {
950
+ for (var j = N - (A() || g && U ? 1 : H); m && j-- > 0; )
951
+ if (d(N - 1, !0) !== d(j, !0)) {
952
952
  j++;
953
953
  break;
954
954
  }
955
- return Xi(j, 0, W - 1);
955
+ return Xi(j, 0, N - 1);
956
956
  }
957
957
  function L(j) {
958
958
  return Xi(A() ? j : H * j, 0, x);
959
959
  }
960
960
  function _(j) {
961
- return A() ? di(j, x) : Yr((j >= x ? W - 1 : j) / H);
961
+ return A() ? di(j, x) : Yr((j >= x ? N - 1 : j) / H);
962
962
  }
963
963
  function Y(j) {
964
964
  var ue = a.toIndex(j);
965
965
  return h ? Xi(ue, 0, x) : ue;
966
966
  }
967
967
  function le(j) {
968
- j !== y && (N = y, y = j);
968
+ j !== y && (W = y, y = j);
969
969
  }
970
970
  function pe(j) {
971
- return j ? N : y;
971
+ return j ? W : y;
972
972
  }
973
973
  function A() {
974
974
  return !nr(n.focus) || n.isNavigation;
@@ -997,12 +997,12 @@ var hm = "http://www.w3.org/2000/svg", fm = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5
997
997
  function ym(e, t, n) {
998
998
  var i = on(e), o = i.on, r = i.bind, a = i.emit, l = n.classes, s = n.i18n, d = t.Elements, u = t.Controller, b = d.arrows, f = d.track, m = b, g = d.prev, h = d.next, v, w, y = {};
999
999
  function x() {
1000
- W(), o(yn, N);
1000
+ N(), o(yn, W);
1001
1001
  }
1002
- function N() {
1002
+ function W() {
1003
1003
  U(), x();
1004
1004
  }
1005
- function W() {
1005
+ function N() {
1006
1006
  var E = n.arrows;
1007
1007
  E && !(g && h) && B(), g && h && (Go(y, {
1008
1008
  prev: g,
@@ -1046,21 +1046,21 @@ function bm(e, t, n) {
1046
1046
  }
1047
1047
  function y() {
1048
1048
  n.pauseOnHover && r(b, "mouseenter mouseleave", function(B) {
1049
- g = B.type === "mouseenter", W();
1049
+ g = B.type === "mouseenter", N();
1050
1050
  }), n.pauseOnFocus && r(b, "focusin focusout", function(B) {
1051
- h = B.type === "focusin", W();
1051
+ h = B.type === "focusin", N();
1052
1052
  }), f && r(f, "click", function() {
1053
- v ? x() : N(!0);
1053
+ v ? x() : W(!0);
1054
1054
  }), o([Zn, la, sn], l.rewind), o(Zn, $);
1055
1055
  }
1056
1056
  function x() {
1057
1057
  s() && t.Slides.isEnough() && (l.start(!n.resetProgress), h = g = v = !1, U(), a(Gs));
1058
1058
  }
1059
- function N(B) {
1059
+ function W(B) {
1060
1060
  B === void 0 && (B = !0), v = !!B, U(), s() || (l.pause(), a(qs));
1061
1061
  }
1062
- function W() {
1063
- v || (g || h ? N(!1) : x());
1062
+ function N() {
1063
+ v || (g || h ? W(!1) : x());
1064
1064
  }
1065
1065
  function U() {
1066
1066
  f && (Gn(f, _i, !v), At(f, Ln, n.i18n[v ? "play" : "pause"]));
@@ -1077,7 +1077,7 @@ function bm(e, t, n) {
1077
1077
  mount: w,
1078
1078
  destroy: l.cancel,
1079
1079
  play: x,
1080
- pause: N,
1080
+ pause: W,
1081
1081
  isPaused: s
1082
1082
  };
1083
1083
  }
@@ -1104,11 +1104,11 @@ var wm = 10, Sm = 600, $m = 0.6, Cm = 1.5, Tm = 800;
1104
1104
  function Lm(e, t, n) {
1105
1105
  var i = on(e), o = i.on, r = i.emit, a = e.state.set, l = t.Move, s = l.getPosition, d = l.getLimit, u = l.exceededLimit, b = l.translate, f = e.is(lo), m, g, h = 1;
1106
1106
  function v() {
1107
- o(Zn, N), o([yn, sn], W);
1107
+ o(Zn, W), o([yn, sn], N);
1108
1108
  }
1109
1109
  function w(H, $, B, S, I) {
1110
1110
  var E = s();
1111
- if (N(), B && (!f || !u())) {
1111
+ if (W(), B && (!f || !u())) {
1112
1112
  var C = t.Layout.sliderSize(), p = ds(H) * C * Yr(bn(H) / C) || 0;
1113
1113
  H = l.toPosition(t.Controller.toDest(H % C)) + p;
1114
1114
  }
@@ -1122,11 +1122,11 @@ function Lm(e, t, n) {
1122
1122
  var I = s(), E = H + ($ - H) * U(S), C = (E - I) * h;
1123
1123
  b(I + C), f && !B && u() && (h *= $m, bn(C) < wm && w(d(u(!0)), Sm, !1, g, !0));
1124
1124
  }
1125
- function N() {
1125
+ function W() {
1126
1126
  m && m.cancel();
1127
1127
  }
1128
- function W() {
1129
- m && !m.isPaused() && (N(), y());
1128
+ function N() {
1129
+ m && !m.isPaused() && (W(), y());
1130
1130
  }
1131
1131
  function U(H) {
1132
1132
  var $ = n.easingFunc;
@@ -1134,9 +1134,9 @@ function Lm(e, t, n) {
1134
1134
  }
1135
1135
  return {
1136
1136
  mount: v,
1137
- destroy: N,
1137
+ destroy: W,
1138
1138
  scroll: w,
1139
- cancel: W
1139
+ cancel: N
1140
1140
  };
1141
1141
  }
1142
1142
  var Ui = {
@@ -1144,7 +1144,7 @@ var Ui = {
1144
1144
  capture: !0
1145
1145
  };
1146
1146
  function Im(e, t, n) {
1147
- var i = on(e), o = i.on, r = i.emit, a = i.bind, l = i.unbind, s = e.state, d = t.Move, u = t.Scroll, b = t.Controller, f = t.Elements.track, m = t.Media.reduce, g = t.Direction, h = g.resolve, v = g.orient, w = d.getPosition, y = d.exceededLimit, x, N, W, U, H, $ = !1, B, S, I;
1147
+ var i = on(e), o = i.on, r = i.emit, a = i.bind, l = i.unbind, s = e.state, d = t.Move, u = t.Scroll, b = t.Controller, f = t.Elements.track, m = t.Media.reduce, g = t.Direction, h = g.resolve, v = g.orient, w = d.getPosition, y = d.exceededLimit, x, W, N, U, H, $ = !1, B, S, I;
1148
1148
  function E() {
1149
1149
  a(f, Ra, ls, Ui), a(f, Pa, ls, Ui), a(f, qd, p, Ui), a(f, "click", D, {
1150
1150
  capture: !0
@@ -1157,7 +1157,7 @@ function Im(e, t, n) {
1157
1157
  function p(ee) {
1158
1158
  if (B = !1, !S) {
1159
1159
  var me = ze(ee);
1160
- $e(ee.target) && (me || !ee.button) && (b.isBusy() ? jn(ee, !0) : (I = me ? f : window, H = s.is([wo, tr]), W = null, a(I, Ra, M, Ui), a(I, Pa, R, Ui), d.cancel(), u.cancel(), oe(ee)));
1160
+ $e(ee.target) && (me || !ee.button) && (b.isBusy() ? jn(ee, !0) : (I = me ? f : window, H = s.is([wo, tr]), N = null, a(I, Ra, M, Ui), a(I, Pa, R, Ui), d.cancel(), u.cancel(), oe(ee)));
1161
1161
  }
1162
1162
  }
1163
1163
  function M(ee) {
@@ -1175,7 +1175,7 @@ function Im(e, t, n) {
1175
1175
  !S && B && jn(ee, !0);
1176
1176
  }
1177
1177
  function oe(ee) {
1178
- W = N, N = ee, x = w();
1178
+ N = W, W = ee, x = w();
1179
1179
  }
1180
1180
  function L(ee) {
1181
1181
  var me = le(ee), ae = pe(me), Be = n.rewind && n.rewindByDrag;
@@ -1206,7 +1206,7 @@ function Im(e, t, n) {
1206
1206
  return cs(ee) - cs(j(ee));
1207
1207
  }
1208
1208
  function j(ee) {
1209
- return N === ee && W || N;
1209
+ return W === ee && N || W;
1210
1210
  }
1211
1211
  function ue(ee, me) {
1212
1212
  return (ze(ee) ? ee.changedTouches[0] : ee)["page" + h(me ? "Y" : "X")];
@@ -1289,8 +1289,8 @@ function Em(e, t, n) {
1289
1289
  function m() {
1290
1290
  t.Slides.forEach(function(y) {
1291
1291
  Os(y.slide, Mm).forEach(function(x) {
1292
- var N = En(x, Oo), W = En(x, Br);
1293
- if (N !== x.src || W !== x.srcset) {
1292
+ var W = En(x, Oo), N = En(x, Br);
1293
+ if (W !== x.src || N !== x.srcset) {
1294
1294
  var U = n.classes.spinner, H = x.parentElement, $ = rr(H, "." + U) || to("span", U, H);
1295
1295
  u.push([x, y, $]), x.src || qo(x, "none");
1296
1296
  }
@@ -1308,8 +1308,8 @@ function Em(e, t, n) {
1308
1308
  On(y[1].slide, gs), a(x, "load error", tn(v, y)), At(x, "src", En(x, Oo)), At(x, "srcset", En(x, Br)), Dn(x, Oo), Dn(x, Br);
1309
1309
  }
1310
1310
  function v(y, x) {
1311
- var N = y[0], W = y[1];
1312
- qn(W.slide, gs), x.type !== "error" && (Fi(y[2]), qo(N, ""), l(Xs, N, W), l(so)), s && w();
1311
+ var W = y[0], N = y[1];
1312
+ qn(N.slide, gs), x.type !== "error" && (Fi(y[2]), qo(W, ""), l(Xs, W, N), l(so)), s && w();
1313
1313
  }
1314
1314
  function w() {
1315
1315
  u.length && h(u.shift());
@@ -1325,7 +1325,7 @@ function Am(e, t, n) {
1325
1325
  function y() {
1326
1326
  x(), o([yn, sn, Kr], y);
1327
1327
  var S = n.pagination;
1328
- g && qo(g, S ? "" : "none"), S && (o([Zn, la, Hi], B), N(), B(), r(Pd, {
1328
+ g && qo(g, S ? "" : "none"), S && (o([Zn, la, Hi], B), W(), B(), r(Pd, {
1329
1329
  list: v,
1330
1330
  items: h
1331
1331
  }, $(e.index)));
@@ -1333,7 +1333,7 @@ function Am(e, t, n) {
1333
1333
  function x() {
1334
1334
  v && (Fi(g ? hi(v.children) : v), qn(v, w), Kn(h), v = null), i.destroy();
1335
1335
  }
1336
- function N() {
1336
+ function W() {
1337
1337
  var S = e.length, I = n.classes, E = n.i18n, C = n.perPage, p = u() ? d.getEnd() + 1 : Xo(S / C);
1338
1338
  v = g || to("ul", I.pagination, s.track.parentElement), On(v, w = fa + "--" + H()), At(v, Xn, "tablist"), At(v, Ln, E.select), At(v, Ys, H() === ma ? "vertical" : "");
1339
1339
  for (var M = 0; M < p; M++) {
@@ -1343,14 +1343,14 @@ function Am(e, t, n) {
1343
1343
  }, R), oe = l.getIn(M).map(function(_) {
1344
1344
  return _.slide.id;
1345
1345
  }), L = !u() && C > 1 ? E.pageX : E.slideX;
1346
- a(D, "click", tn(W, M)), n.paginationKeyboard && a(D, "keydown", tn(U, M)), At(R, Xn, "presentation"), At(D, Xn, "tab"), At(D, sr, oe.join(" ")), At(D, Ln, us(L, M + 1)), At(D, no, -1), h.push({
1346
+ a(D, "click", tn(N, M)), n.paginationKeyboard && a(D, "keydown", tn(U, M)), At(R, Xn, "presentation"), At(D, Xn, "tab"), At(D, sr, oe.join(" ")), At(D, Ln, us(L, M + 1)), At(D, no, -1), h.push({
1347
1347
  li: R,
1348
1348
  button: D,
1349
1349
  page: M
1350
1350
  });
1351
1351
  }
1352
1352
  }
1353
- function W(S) {
1353
+ function N(S) {
1354
1354
  f(">" + S, !0);
1355
1355
  }
1356
1356
  function U(S, I) {
@@ -1883,7 +1883,7 @@ const Zm = "SvgImage-module__svg___q3xE-", Jm = "SvgImage-module__img___VsTm-",
1883
1883
  "bottom-right": bt.bottomRightAlignment
1884
1884
  };
1885
1885
  function ng({ settings: e, content: t, styles: n, isEditor: i }) {
1886
- const [o, r] = ie(null), { widthSettings: a, fontSettings: l, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: b, textAppearance: f, color: m } = n.imageCaption ?? {}, [g, h] = ie(void 0), [v, w] = ie(null), [y, x] = ie(0), [N, W] = ie(0), { direction: U, transition: H, controls: $, pagination: B, imageCaption: S, triggers: I } = e, E = X(H.type), { x: C, y: p } = e.controls.offset, M = (R) => {
1886
+ const [o, r] = ie(null), { widthSettings: a, fontSettings: l, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: b, textAppearance: f, color: m } = n.imageCaption ?? {}, [g, h] = ie(void 0), [v, w] = ie(null), [y, x] = ie(0), [W, N] = ie(0), { direction: U, transition: H, controls: $, pagination: B, imageCaption: S, triggers: I } = e, E = X(H.type), { x: C, y: p } = e.controls.offset, M = (R) => {
1887
1887
  o && o.go(R);
1888
1888
  };
1889
1889
  return ke(() => {
@@ -1898,7 +1898,7 @@ function ng({ settings: e, content: t, styles: n, isEditor: i }) {
1898
1898
  });
1899
1899
  return R.observe(v), () => R.unobserve(v);
1900
1900
  }, [v]), ke(() => {
1901
- !o || E.current === H.type || (W((R) => R + 1), E.current = H.type);
1901
+ !o || E.current === H.type || (N((R) => R + 1), E.current = H.type);
1902
1902
  }, [H.type]), /* @__PURE__ */ c("div", { className: wt(bt.wrapper, { [bt.editor]: i }), ref: w, children: /* @__PURE__ */ te(
1903
1903
  "div",
1904
1904
  {
@@ -2009,7 +2009,7 @@ function ng({ settings: e, content: t, styles: n, isEditor: i }) {
2009
2009
  }
2010
2010
  ) }, D))
2011
2011
  },
2012
- N
2012
+ W
2013
2013
  ),
2014
2014
  $.isActive && /* @__PURE__ */ te(pt, { children: [
2015
2015
  /* @__PURE__ */ c(
@@ -2803,7 +2803,7 @@ async function lg(e, t, n, i) {
2803
2803
  return { width: o, height: r, finalWidth: `${o}px` };
2804
2804
  }
2805
2805
  function cg({ settings: e, content: t, isEditor: n }) {
2806
- const [i, o] = ie(null), [r, a] = ie([]), [l, s] = ie(0), d = X(0), [u, b] = ie({ x: 0, y: 0 }), [f, m] = ie(1), [g, h] = ie("none"), v = X({ x: 0, y: 0 }), [w, y] = ie(!1), { sizeType: x, imageWidth: N, randomRangeImageWidth: W } = e.imageSize, { revealPosition: U, visible: H } = e.position, { cursorType: $, target: B, defaultCursorScale: S, defaultCursor: I, hoverCursorScale: E, hoverCursor: C } = e.cursor;
2806
+ const [i, o] = ie(null), [r, a] = ie([]), [l, s] = ie(0), d = X(0), [u, b] = ie({ x: 0, y: 0 }), [f, m] = ie(1), [g, h] = ie("none"), v = X({ x: 0, y: 0 }), [w, y] = ie(!1), { sizeType: x, imageWidth: W, randomRangeImageWidth: N } = e.imageSize, { revealPosition: U, visible: H } = e.position, { cursorType: $, target: B, defaultCursorScale: S, defaultCursor: I, hoverCursorScale: E, hoverCursor: C } = e.cursor;
2807
2807
  ke(() => {
2808
2808
  if (!i) return;
2809
2809
  const R = (L, _) => {
@@ -2845,8 +2845,8 @@ function cg({ settings: e, content: t, isEditor: n }) {
2845
2845
  const { width: _, height: Y, finalWidth: le } = await lg(
2846
2846
  R.image.url,
2847
2847
  x,
2848
- N,
2849
- W
2848
+ W,
2849
+ N
2850
2850
  );
2851
2851
  let pe = 0, A = 0;
2852
2852
  U === "same" ? (pe = D / 2, A = oe / 2) : (pe = L.x ?? Math.random() * D, A = L.y ?? Math.random() * oe);
@@ -2868,7 +2868,7 @@ function cg({ settings: e, content: t, isEditor: n }) {
2868
2868
  const Y = t[0], le = await p(Y, D, oe);
2869
2869
  L.push(le), a(L), s(1);
2870
2870
  })();
2871
- }, [x, N, W, U, i]), ke(() => {
2871
+ }, [x, W, N, U, i]), ke(() => {
2872
2872
  H === "last One" && a((R) => R.length > 0 ? [R[R.length - 1]] : []);
2873
2873
  }, [H]), /* @__PURE__ */ te(
2874
2874
  "div",
@@ -3522,7 +3522,7 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3522
3522
  ] });
3523
3523
  }, th = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: l }) => {
3524
3524
  var re;
3525
- const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: b, wordSpacing: f, fontSizeLineHeight: m, textAppearance: g, color: h } = i.imageCaption ?? {}, [v, w] = ie(0), [y, x] = ie(0), [N, W] = ie(!1), [U, H] = ie(!1), [$, B] = ie({}), S = X(null), I = X(null), E = X(null), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(null), oe = X(!1), L = X(null), [_, Y] = ie(!1), { appear: le, triggers: pe, slider: A, thumbnail: ye, controls: j, area: ue, caption: Q, layout: $e } = o.lightboxBlock, { appearClass: ze, backdropAppearClass: we, backdropDisappearClass: de, disappearClass: ee } = Qg(le.type, le.direction), me = (l == null ? void 0 : l.itemId) ?? null;
3525
+ const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: b, wordSpacing: f, fontSizeLineHeight: m, textAppearance: g, color: h } = i.imageCaption ?? {}, [v, w] = ie(0), [y, x] = ie(0), [W, N] = ie(!1), [U, H] = ie(!1), [$, B] = ie({}), S = X(null), I = X(null), E = X(null), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(null), oe = X(!1), L = X(null), [_, Y] = ie(!1), { appear: le, triggers: pe, slider: A, thumbnail: ye, controls: j, area: ue, caption: Q, layout: $e } = o.lightboxBlock, { appearClass: ze, backdropAppearClass: we, backdropDisappearClass: de, disappearClass: ee } = Qg(le.type, le.direction), me = (l == null ? void 0 : l.itemId) ?? null;
3526
3526
  ke(() => {
3527
3527
  const O = () => {
3528
3528
  setTimeout(() => {
@@ -3551,9 +3551,9 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3551
3551
  }, [e, ye.isActive, n.length, $, A.direction]);
3552
3552
  const ae = Se(() => {
3553
3553
  const O = window.matchMedia("(max-width: 768px)").matches, z = Wl(ue.color);
3554
- O && !a && z > 0.9 && (document.body.style.backgroundColor = ""), W(!0), C.current = !0;
3554
+ O && !a && z > 0.9 && (document.body.style.backgroundColor = ""), N(!0), C.current = !0;
3555
3555
  const J = (ne) => {
3556
- ne.target === p.current && ne.animationName && (p.current && M.current && p.current.removeEventListener("animationend", M.current), M.current = null, C.current && (C.current = !1, t()), W(!1));
3556
+ ne.target === p.current && ne.animationName && (p.current && M.current && p.current.removeEventListener("animationend", M.current), M.current = null, C.current && (C.current = !1, t()), N(!1));
3557
3557
  };
3558
3558
  p.current && (M.current = J, p.current.addEventListener("animationend", J));
3559
3559
  }, [t, ue.color, a]), Be = (O, z, J) => {
@@ -3616,7 +3616,7 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3616
3616
  };
3617
3617
  }, [e, ae, n.length]), ke(() => {
3618
3618
  if (e) {
3619
- if (w(0), x((z) => z + 1), C.current = !1, W(!1), H(!1), B({}), !me) return;
3619
+ if (w(0), x((z) => z + 1), C.current = !1, N(!1), H(!1), B({}), !me) return;
3620
3620
  const O = new CustomEvent("page-overlay", { detail: { itemId: me } });
3621
3621
  window.dispatchEvent(O);
3622
3622
  }
@@ -3690,8 +3690,8 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3690
3690
  if (!e || !q || !((Ge = (he = S.current) == null ? void 0 : he.splide) != null && Ge.root)) return;
3691
3691
  const O = S.current.splide.root, z = 30, J = (fe, V) => {
3692
3692
  if (D.current) {
3693
- const We = Math.abs(fe - D.current.x), Oe = Math.abs(V - D.current.y);
3694
- (We > 0 || Oe > 0) && (oe.current = !0);
3693
+ const Fe = Math.abs(fe - D.current.x), Oe = Math.abs(V - D.current.y);
3694
+ (Fe > 0 || Oe > 0) && (oe.current = !0);
3695
3695
  }
3696
3696
  }, ne = (fe) => {
3697
3697
  D.current && (fe.preventDefault(), J(fe.clientX, fe.clientY));
@@ -3702,8 +3702,8 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3702
3702
  D.current = null;
3703
3703
  return;
3704
3704
  }
3705
- const We = Math.abs(fe - D.current.x), Oe = Math.abs(V - D.current.y);
3706
- Oe > z && Oe > We && S.current.go(V < D.current.y ? "+1" : "-1"), D.current = null;
3705
+ const Fe = Math.abs(fe - D.current.x), Oe = Math.abs(V - D.current.y);
3706
+ Oe > z && Oe > Fe && S.current.go(V < D.current.y ? "+1" : "-1"), D.current = null;
3707
3707
  }, k = (fe) => {
3708
3708
  D.current && be(fe.clientX, fe.clientY), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k), document.removeEventListener("pointermove", ne);
3709
3709
  }, xe = (fe) => {
@@ -3736,10 +3736,10 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3736
3736
  "div",
3737
3737
  {
3738
3738
  ref: a ? null : p,
3739
- className: wt(rt.background, N ? de : we, { [rt.editor]: a }, { [rt.hidden]: !e }),
3739
+ className: wt(rt.background, W ? de : we, { [rt.editor]: a }, { [rt.hidden]: !e }),
3740
3740
  style: {
3741
3741
  ...G,
3742
- ...U && !a && !N ? { position: "absolute" } : {}
3742
+ ...U && !a && !W ? { position: "absolute" } : {}
3743
3743
  }
3744
3744
  }
3745
3745
  ),
@@ -3747,7 +3747,7 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3747
3747
  "div",
3748
3748
  {
3749
3749
  ref: a ? p : null,
3750
- className: wt(rt.contentStyle, N ? ee : ze, { [rt.editor]: a }, { [rt.hidden]: !e }),
3750
+ className: wt(rt.contentStyle, W ? ee : ze, { [rt.editor]: a }, { [rt.hidden]: !e }),
3751
3751
  style: {
3752
3752
  animationDuration: `${parseInt(le.duration)}ms`,
3753
3753
  animationTimingFunction: "ease",
@@ -3961,16 +3961,16 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3961
3961
  return A.direction === "horiz" ? { height: Z(he, a) } : { width: Z(he, a) };
3962
3962
  const fe = ge.width / ge.height;
3963
3963
  if (A.direction === "horiz") {
3964
- const V = he, We = V * fe;
3964
+ const V = he, Fe = V * fe;
3965
3965
  return {
3966
- width: Z(We, a),
3966
+ width: Z(Fe, a),
3967
3967
  height: Z(V, a)
3968
3968
  };
3969
3969
  } else {
3970
- const V = he, We = V / fe;
3970
+ const V = he, Fe = V / fe;
3971
3971
  return {
3972
3972
  width: Z(V, a),
3973
- height: Z(We, a)
3973
+ height: Z(Fe, a)
3974
3974
  };
3975
3975
  }
3976
3976
  };
@@ -4002,8 +4002,8 @@ const eh = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
4002
4002
  alt: be.image.name ?? "",
4003
4003
  onLoad: (fe) => {
4004
4004
  const V = fe.currentTarget;
4005
- V.naturalWidth && V.naturalHeight && B((We) => ({
4006
- ...We,
4005
+ V.naturalWidth && V.naturalHeight && B((Fe) => ({
4006
+ ...Fe,
4007
4007
  [k]: { width: V.naturalWidth, height: V.naturalHeight }
4008
4008
  }));
4009
4009
  },
@@ -5285,8 +5285,8 @@ function oh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5285
5285
  buttonPadding: w,
5286
5286
  isButtonFullWidth: y,
5287
5287
  inputCorners: x,
5288
- inputStroke: N,
5289
- inputPadding: W,
5288
+ inputStroke: W,
5289
+ inputPadding: N,
5290
5290
  inputColor: U,
5291
5291
  inputTextColor: H,
5292
5292
  inputBorderColor: $,
@@ -5337,8 +5337,8 @@ function oh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5337
5337
  wordSpacing: Y ?? 0,
5338
5338
  textAppearance: le,
5339
5339
  color: H
5340
- }, be = hn(nn(Ie, t)), k = Z(N ?? 0, t), xe = Z(
5341
- (L ?? oe ?? 0.01) + ((W == null ? void 0 : W.top) ?? 0) + ((W == null ? void 0 : W.bottom) ?? 0) + (d === "C" ? N ?? 0 : (N ?? 0) * 2),
5340
+ }, be = hn(nn(Ie, t)), k = Z(W ?? 0, t), xe = Z(
5341
+ (L ?? oe ?? 0.01) + ((N == null ? void 0 : N.top) ?? 0) + ((N == null ? void 0 : N.bottom) ?? 0) + (d === "C" ? W ?? 0 : (W ?? 0) * 2),
5342
5342
  t
5343
5343
  ), ge = {
5344
5344
  ...be,
@@ -5350,10 +5350,10 @@ function oh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5350
5350
  borderBottomWidth: k,
5351
5351
  borderLeftWidth: 0
5352
5352
  } : { borderWidth: k },
5353
- paddingTop: Z((W == null ? void 0 : W.top) ?? 0, t),
5354
- paddingRight: Z((W == null ? void 0 : W.right) ?? 0, t),
5355
- paddingBottom: Z((W == null ? void 0 : W.bottom) ?? 0, t),
5356
- paddingLeft: Z((W == null ? void 0 : W.left) ?? 0, t),
5353
+ paddingTop: Z((N == null ? void 0 : N.top) ?? 0, t),
5354
+ paddingRight: Z((N == null ? void 0 : N.right) ?? 0, t),
5355
+ paddingBottom: Z((N == null ? void 0 : N.bottom) ?? 0, t),
5356
+ paddingLeft: Z((N == null ? void 0 : N.left) ?? 0, t),
5357
5357
  height: xe,
5358
5358
  minHeight: xe
5359
5359
  }, K = {
@@ -5380,7 +5380,7 @@ function oh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5380
5380
  wordSpacing: ee ?? 0,
5381
5381
  textAppearance: me,
5382
5382
  color: C
5383
- }, V = nn(fe, t), We = {
5383
+ }, V = nn(fe, t), Fe = {
5384
5384
  fontSettings: {
5385
5385
  fontFamily: R,
5386
5386
  fontWeight: (ae == null ? void 0 : ae.fontWeight) ?? 400,
@@ -5392,7 +5392,7 @@ function oh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5392
5392
  wordSpacing: q ?? 0,
5393
5393
  textAppearance: G,
5394
5394
  color: p
5395
- }, Oe = hn(nn(We, t)), dt = Ni(s, {
5395
+ }, Oe = hn(nn(Fe, t)), dt = Ni(s, {
5396
5396
  inputColor: U,
5397
5397
  inputTextColor: H,
5398
5398
  inputBorderColor: $,
@@ -7091,8 +7091,8 @@ const mh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7091
7091
  inputTextAppearance: w,
7092
7092
  buttonFontSettings: y,
7093
7093
  buttonFontSize: x,
7094
- buttonLineHeight: N,
7095
- buttonLetterSpacing: W,
7094
+ buttonLineHeight: W,
7095
+ buttonLetterSpacing: N,
7096
7096
  buttonWordSpacing: U,
7097
7097
  buttonTextAppearance: H,
7098
7098
  statusFontSettings: $,
@@ -7137,8 +7137,8 @@ const mh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7137
7137
  fontStyle: (y == null ? void 0 : y.fontStyle) ?? "normal"
7138
7138
  },
7139
7139
  fontSize: x ?? 0.01,
7140
- lineHeight: N,
7141
- letterSpacing: W ?? 0,
7140
+ lineHeight: W,
7141
+ letterSpacing: N ?? 0,
7142
7142
  wordSpacing: U ?? 0,
7143
7143
  textAppearance: H,
7144
7144
  color: e.buttonTextColor ?? "#ffffff"
@@ -7180,9 +7180,9 @@ const mh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7180
7180
  return;
7181
7181
  }
7182
7182
  if (Object.keys(V).length === 0) return;
7183
- const We = qr(pe, A);
7184
- if (We) {
7185
- ue("error"), $e(We);
7183
+ const Fe = qr(pe, A);
7184
+ if (Fe) {
7185
+ ue("error"), $e(Fe);
7186
7186
  return;
7187
7187
  }
7188
7188
  ue("submitting"), $e(null);
@@ -7226,7 +7226,7 @@ const mh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7226
7226
  name: fe.name,
7227
7227
  autoComplete: "off",
7228
7228
  value: ee[fe.name] ?? "",
7229
- onChange: (V) => ye((We) => ({ ...We, [fe.name]: V.target.value })),
7229
+ onChange: (V) => ye((Fe) => ({ ...Fe, [fe.name]: V.target.value })),
7230
7230
  placeholder: fe.placeholder,
7231
7231
  required: fe.isRequired ?? fe.type === "email",
7232
7232
  className: `${r}-input`,
@@ -8611,7 +8611,7 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8611
8611
  Pt(() => {
8612
8612
  l && _h(u.current) && (d == null || d());
8613
8613
  }, [l, (C = e.image) == null ? void 0 : C.url, d]);
8614
- const f = n.display === "cover", m = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [h, v] = m.split(":").map(Number), x = (g ? v : h) / (g ? h : v), N = i / x, W = N > o ? o : N, U = N > o ? o * x : i, H = s(U), $ = s(W), B = {
8614
+ const f = n.display === "cover", m = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [h, v] = m.split(":").map(Number), x = (g ? v : h) / (g ? h : v), W = i / x, N = W > o ? o : W, U = W > o ? o * x : i, H = s(U), $ = s(N), B = {
8615
8615
  borderRadius: s(r)
8616
8616
  }, S = f ? {
8617
8617
  pointerEvents: "auto",
@@ -8703,7 +8703,7 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8703
8703
  imageMaxHeight: h,
8704
8704
  hoverEffect: v,
8705
8705
  cornerRadius: w = 0
8706
- } = e, y = Ne(() => Mh(e.imageFit), [e.imageFit]), x = (t == null ? void 0 : t.length) ?? 0, N = !!o, W = !n || !!i, U = W && v !== "off" && v !== "randomize" ? `${r}-image-hover-${v}` : void 0, H = n ? !!i : !0, B = ((t == null ? void 0 : t.length) ?? 0) > 0 && (H || !!n), S = Math.max(0, u) * $h, I = (Re) => Z(Re, n ?? !1), E = X(null), C = X(null), p = X(null), [M, R] = ie(0), D = H && f === "on", [oe, L] = ie(!1), [_, Y] = ie({}), le = X(_);
8706
+ } = e, y = Ne(() => Mh(e.imageFit), [e.imageFit]), x = (t == null ? void 0 : t.length) ?? 0, W = !!o, N = !n || !!i, U = N && v !== "off" && v !== "randomize" ? `${r}-image-hover-${v}` : void 0, H = n ? !!i : !0, B = ((t == null ? void 0 : t.length) ?? 0) > 0 && (H || !!n), S = Math.max(0, u) * $h, I = (Re) => Z(Re, n ?? !1), E = X(null), C = X(null), p = X(null), [M, R] = ie(0), D = H && f === "on", [oe, L] = ie(!1), [_, Y] = ie({}), le = X(_);
8707
8707
  le.current = _;
8708
8708
  const pe = X(null), A = X(0), ye = X(null), j = Ne(() => (t ?? []).map((Re) => {
8709
8709
  var P;
@@ -8721,7 +8721,7 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8721
8721
  Pt(() => {
8722
8722
  A.current = 0, Y({}), pe.current = null, Q(Aa), l(0);
8723
8723
  }, [j]), ke(() => {
8724
- if (!W || v !== "randomize") return;
8724
+ if (!N || v !== "randomize") return;
8725
8725
  const Re = E.current;
8726
8726
  if (!Re) return;
8727
8727
  const P = (O) => {
@@ -8754,7 +8754,7 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8754
8754
  return Object.keys(le.current).length > 0 && (G.current = requestAnimationFrame(re)), () => {
8755
8755
  cancelAnimationFrame(G.current), q.disconnect();
8756
8756
  };
8757
- }, [v, _, W]), Pt(() => {
8757
+ }, [v, _, N]), Pt(() => {
8758
8758
  if (!B) return;
8759
8759
  const Re = E.current, P = p.current;
8760
8760
  if (!Re || !P) return;
@@ -8811,12 +8811,12 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8811
8811
  const G = new ResizeObserver(q);
8812
8812
  return G.observe(Re), G.observe(P), () => G.disconnect();
8813
8813
  }, [B, we, $e, n, m, g, h, a, y, _]), Pt(() => {
8814
- if (!n || !N || !B || typeof window > "u") return;
8814
+ if (!n || !W || !B || typeof window > "u") return;
8815
8815
  const Re = requestAnimationFrame(() => {
8816
8816
  window.dispatchEvent(new Event("scroll"));
8817
8817
  });
8818
8818
  return () => cancelAnimationFrame(Re);
8819
- }, [n, N, B, b, a, M, m, $e]);
8819
+ }, [n, W, B, b, a, M, m, $e]);
8820
8820
  const de = () => {
8821
8821
  D && L(!0);
8822
8822
  }, ee = () => {
@@ -8835,13 +8835,13 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8835
8835
  return { ...q, [Re]: O };
8836
8836
  });
8837
8837
  }, [t]), Be = (Re, P, q, G) => {
8838
- const re = W && v === "randomize" && y.display === "cover" ? _[q] ?? Re : Re, O = `max(${I(m)}, ${Ch}px)`, z = `calc(-0.5 * (${O} + ${I(m)}))`;
8838
+ const re = N && v === "randomize" && y.display === "cover" ? _[q] ?? Re : Re, O = `max(${I(m)}, ${Ch}px)`, z = `calc(-0.5 * (${O} + ${I(m)}))`;
8839
8839
  return /* @__PURE__ */ te(
8840
8840
  "div",
8841
8841
  {
8842
8842
  className: `${r}-marquee-card`,
8843
8843
  "data-marquee-item-index": q,
8844
- onMouseEnter: W && v === "randomize" && y.display === "cover" ? () => ae(q, Re) : void 0,
8844
+ onMouseEnter: N && v === "randomize" && y.display === "cover" ? () => ae(q, Re) : void 0,
8845
8845
  children: [
8846
8846
  /* @__PURE__ */ c(
8847
8847
  Wh,
@@ -8859,7 +8859,7 @@ const $h = 30, Ch = 20, Aa = 3, Th = 12, Lh = 32, Ih = 3, Rh = (e) => {
8859
8859
  onFirstSetImageDone: me
8860
8860
  }
8861
8861
  ),
8862
- N && /* @__PURE__ */ c(
8862
+ W && /* @__PURE__ */ c(
8863
8863
  "div",
8864
8864
  {
8865
8865
  "data-controls": "gap",
@@ -10168,8 +10168,8 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10168
10168
  return n * (o * e.wavelength + l[d] + (l[u] - l[d]) * f);
10169
10169
  }, rf = (e, t, n, i) => {
10170
10170
  const o = Math.max(0, n), r = e > 0 ? 2 * Math.PI * o / e : 0, a = (u) => i + t * Math.sin(r * u), l = (u) => t * r * Math.cos(r * u), s = Math.max(4, Math.ceil(o * 4)), d = Array.from({ length: s }, (u, b) => {
10171
- const f = b / s * e, m = (b + 1) / s * e, g = m - f, h = a(f), v = a(m), w = f + g / 3, y = h + l(f) * g / 3, x = m - g / 3, N = v - l(m) * g / 3;
10172
- return `C${w.toFixed(2)} ${y.toFixed(2)} ${x.toFixed(2)} ${N.toFixed(2)} ${m.toFixed(2)} ${v.toFixed(2)}`;
10171
+ const f = b / s * e, m = (b + 1) / s * e, g = m - f, h = a(f), v = a(m), w = f + g / 3, y = h + l(f) * g / 3, x = m - g / 3, W = v - l(m) * g / 3;
10172
+ return `C${w.toFixed(2)} ${y.toFixed(2)} ${x.toFixed(2)} ${W.toFixed(2)} ${m.toFixed(2)} ${v.toFixed(2)}`;
10173
10173
  });
10174
10174
  return [`M0 ${a(0).toFixed(2)}`, ...d].join(" ");
10175
10175
  }, af = ({ item: e, prefix: t, textCss: n, capHeightPx: i, opticalOffsetY: o, imageGapPx: r, isCurve: a }) => {
@@ -10201,8 +10201,8 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10201
10201
  textFontSize: w,
10202
10202
  textLineHeight: y,
10203
10203
  textLetterSpacing: x,
10204
- textWordSpacing: N,
10205
- textTextAppearance: W,
10204
+ textWordSpacing: W,
10205
+ textTextAppearance: N,
10206
10206
  textColor: U,
10207
10207
  backgroundColor: H,
10208
10208
  ribbonWidth: $
@@ -10213,12 +10213,12 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10213
10213
  fontStyle: v.fontStyle
10214
10214
  },
10215
10215
  letterSpacing: x,
10216
- wordSpacing: N,
10216
+ wordSpacing: W,
10217
10217
  fontSize: w,
10218
10218
  lineHeight: y,
10219
- textAppearance: W,
10219
+ textAppearance: N,
10220
10220
  color: U
10221
- }, n), [h, v, x, N, w, y, W, U, n]), M = (Ce) => Z(Ce, n ?? !1), R = ((t == null ? void 0 : t.length) ?? 0) > 0, D = n ? !!i : !0, oe = R && (D || !!n), L = Math.max(0, s) * Bh, _ = D && u === "on", [Y, le] = ie(!1), pe = D ? _ && Y ? "paused" : "running" : "paused", A = pe === "running" && L > 0 && l > 0, ye = l > 0 && L > 0 ? l / L * 1e3 : 0, j = X(null), ue = X(null), Q = X(null), $e = X(null), ze = X(null), we = X(null), de = X(A), ee = X(null), me = X(null), ae = X(I), Be = X(E);
10221
+ }, n), [h, v, x, W, w, y, N, U, n]), M = (Ce) => Z(Ce, n ?? !1), R = ((t == null ? void 0 : t.length) ?? 0) > 0, D = n ? !!i : !0, oe = R && (D || !!n), L = Math.max(0, s) * Bh, _ = D && u === "on", [Y, le] = ie(!1), pe = D ? _ && Y ? "paused" : "running" : "paused", A = pe === "running" && L > 0 && l > 0, ye = l > 0 && L > 0 ? l / L * 1e3 : 0, j = X(null), ue = X(null), Q = X(null), $e = X(null), ze = X(null), we = X(null), de = X(A), ee = X(null), me = X(null), ae = X(I), Be = X(E);
10222
10222
  de.current = A, ae.current = I, Be.current = E;
10223
10223
  const [Re, P] = ie(0), [q, G] = ie(0), [re, O] = ie(0), [z, J] = ie(0), [ne, Ie] = ie(0), be = Ne(
10224
10224
  () => (t ?? []).map((Ce) => {
@@ -10368,8 +10368,8 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10368
10368
  continue;
10369
10369
  }
10370
10370
  for (const yt of Gt) {
10371
- const Fe = yt.layoutLocalX + Lt, Ke = Pe.lut ? of(Pe.lut, Fe) : Fe, mt = vt * Ke, xt = Ft * Math.sin(mt), Ct = Ft * vt * Math.cos(mt), _t = Math.atan(Ct) * (180 / Math.PI);
10372
- Jh(yt.inner, Ke - Fe, xt, _t);
10371
+ const _e = yt.layoutLocalX + Lt, Ke = Pe.lut ? of(Pe.lut, _e) : _e, mt = vt * Ke, xt = Ft * Math.sin(mt), Ct = Ft * vt * Math.cos(mt), _t = Math.atan(Ct) * (180 / Math.PI);
10372
+ Jh(yt.inner, Ke - _e, xt, _t);
10373
10373
  }
10374
10374
  }
10375
10375
  }, Ve = () => {
@@ -10401,7 +10401,7 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10401
10401
  _ && le(!0);
10402
10402
  }, Ge = () => {
10403
10403
  _ && le(!1);
10404
- }, fe = S ? Math.abs(I) * 100 : 0, V = M(B), We = {
10404
+ }, fe = S ? Math.abs(I) * 100 : 0, V = M(B), Fe = {
10405
10405
  minHeight: V,
10406
10406
  ...S ? { paddingTop: `${fe}%`, paddingBottom: `${fe}%` } : {}
10407
10407
  }, Oe = {
@@ -10484,7 +10484,7 @@ const Bh = 30, ka = 3, Vh = 12, jh = 3, ys = 0.72, Gh = 100, qh = 10, Xh = (e) =
10484
10484
  return /* @__PURE__ */ te("div", { ref: j, className: `${o}-wrapper`, "aria-label": "Marquee text", children: [
10485
10485
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: C } }),
10486
10486
  ce,
10487
- /* @__PURE__ */ te("div", { ref: ue, className: `${o}-marquee-wrapper`, style: We, children: [
10487
+ /* @__PURE__ */ te("div", { ref: ue, className: `${o}-marquee-wrapper`, style: Fe, children: [
10488
10488
  Ee,
10489
10489
  tt,
10490
10490
  Ze
@@ -11796,7 +11796,7 @@ function pf(e, t) {
11796
11796
  const mf = 30, Dl = 2, gf = (e) => {
11797
11797
  e.style.setProperty("animation-name", "none"), e.style.setProperty("-webkit-animation-name", "none"), e.offsetHeight, e.style.removeProperty("animation-name"), e.style.removeProperty("-webkit-animation-name");
11798
11798
  }, hf = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
11799
- const { prefix: r } = ln(), { align: a, speed: l, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: f, stroke: m, strokeColor: g, bgColor: h, padding: v, logoMarginTop: w, logoWidth: y, logoHeight: x, captionMarginTop: N } = e, W = !!o, U = ((t == null ? void 0 : t.length) ?? 0) > 0, H = l > 0 && (!n || i), $ = U && (H || n), B = Math.max(0, l) * mf, S = (k) => Z(k, n ?? !1), I = X(null), E = X(null), C = X(null), [p, M] = ie(0), [R, D] = ie(0), oe = R > 0 ? R : 0, L = Ne(() => pf(r, oe), [r, oe]), [_, Y] = ie(0), le = H && d === "on", [pe, A] = ie(!1), ye = X(null), [j, ue] = ie(0), [Q, $e] = ie(0), ze = X(null), we = (k) => {
11799
+ const { prefix: r } = ln(), { align: a, speed: l, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: f, stroke: m, strokeColor: g, bgColor: h, padding: v, logoMarginTop: w, logoWidth: y, logoHeight: x, captionMarginTop: W } = e, N = !!o, U = ((t == null ? void 0 : t.length) ?? 0) > 0, H = l > 0 && (!n || i), $ = U && (H || n), B = Math.max(0, l) * mf, S = (k) => Z(k, n ?? !1), I = X(null), E = X(null), C = X(null), [p, M] = ie(0), [R, D] = ie(0), oe = R > 0 ? R : 0, L = Ne(() => pf(r, oe), [r, oe]), [_, Y] = ie(0), le = H && d === "on", [pe, A] = ie(!1), ye = X(null), [j, ue] = ie(0), [Q, $e] = ie(0), ze = X(null), we = (k) => {
11800
11800
  var ge, K, he, Ge, fe;
11801
11801
  return {
11802
11802
  fontSettings: {
@@ -11828,7 +11828,7 @@ const mf = 30, Dl = 2, gf = (e) => {
11828
11828
  if (!k || !xe) return;
11829
11829
  let ge = 0;
11830
11830
  const K = () => {
11831
- const fe = k.getBoundingClientRect().width, V = xe.getBoundingClientRect().width, We = ze.current, Oe = typeof We == "number" && Math.abs(We - V) <= 0.25;
11831
+ const fe = k.getBoundingClientRect().width, V = xe.getBoundingClientRect().width, Fe = ze.current, Oe = typeof Fe == "number" && Math.abs(Fe - V) <= 0.25;
11832
11832
  if (ze.current = V, M(fe), typeof V == "number" && V > 0 && R <= 0) {
11833
11833
  D(V);
11834
11834
  return;
@@ -11907,9 +11907,9 @@ const mf = 30, Dl = 2, gf = (e) => {
11907
11907
  /* @__PURE__ */ c(
11908
11908
  "div",
11909
11909
  {
11910
- "data-controls": W ? K == null ? void 0 : K.controlsName : void 0,
11911
- "data-controls-axis": W ? "y" : void 0,
11912
- className: W ? `${r}-control` : void 0,
11910
+ "data-controls": N ? K == null ? void 0 : K.controlsName : void 0,
11911
+ "data-controls-axis": N ? "y" : void 0,
11912
+ className: N ? `${r}-control` : void 0,
11913
11913
  style: { height: S((K == null ? void 0 : K.marginTop) ?? 0) }
11914
11914
  }
11915
11915
  ),
@@ -11930,7 +11930,7 @@ const mf = 30, Dl = 2, gf = (e) => {
11930
11930
  },
11931
11931
  ge
11932
11932
  ),
11933
- [G, re, n, W, r, S]
11933
+ [G, re, n, N, r, S]
11934
11934
  ), z = Se(
11935
11935
  (k, xe, ge) => {
11936
11936
  var K, he, Ge;
@@ -11974,8 +11974,8 @@ const mf = 30, Dl = 2, gf = (e) => {
11974
11974
  /* @__PURE__ */ c(
11975
11975
  "div",
11976
11976
  {
11977
- "data-controls": W && !(ge != null && ge.dataMeasureAttrs) ? "logoMarginTop" : void 0,
11978
- className: W && !(ge != null && ge.dataMeasureAttrs) ? `${r}-control` : void 0,
11977
+ "data-controls": N && !(ge != null && ge.dataMeasureAttrs) ? "logoMarginTop" : void 0,
11978
+ className: N && !(ge != null && ge.dataMeasureAttrs) ? `${r}-control` : void 0,
11979
11979
  style: { height: S(w) }
11980
11980
  }
11981
11981
  ),
@@ -11992,7 +11992,7 @@ const mf = 30, Dl = 2, gf = (e) => {
11992
11992
  ),
11993
11993
  k.caption && O(ee, k.caption, "caption", {
11994
11994
  ...ge != null && ge.dataMeasureAttrs ? {} : { controlsName: "captionMarginTop" },
11995
- marginTop: N,
11995
+ marginTop: W,
11996
11996
  ...ge != null && ge.dataMeasureAttrs ? { dataMeasureKind: "caption" } : typeof (ge == null ? void 0 : ge.captionMinHeightPx) == "number" && ge.captionMinHeightPx > 0 ? { minHeightPx: ge.captionMinHeightPx } : {}
11997
11997
  })
11998
11998
  ]
@@ -12005,7 +12005,7 @@ const mf = 30, Dl = 2, gf = (e) => {
12005
12005
  },
12006
12006
  [
12007
12007
  h,
12008
- N,
12008
+ W,
12009
12009
  ee,
12010
12010
  b,
12011
12011
  f,
@@ -12023,7 +12023,7 @@ const mf = 30, Dl = 2, gf = (e) => {
12023
12023
  g,
12024
12024
  de,
12025
12025
  n,
12026
- W,
12026
+ N,
12027
12027
  r
12028
12028
  ]
12029
12029
  ), J = Se((k) => {
@@ -12075,7 +12075,7 @@ const mf = 30, Dl = 2, gf = (e) => {
12075
12075
  },
12076
12076
  children: [
12077
12077
  z(k, `card-${xe}`, ne),
12078
- W && /* @__PURE__ */ c(
12078
+ N && /* @__PURE__ */ c(
12079
12079
  "div",
12080
12080
  {
12081
12081
  "data-controls": "gap",
@@ -13443,7 +13443,7 @@ function bf(e) {
13443
13443
  `;
13444
13444
  }
13445
13445
  const xf = 3e3, wf = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
13446
- const { prefix: r } = ln(), a = t || [], { speed: l, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: f, imageWidth: m, imageHeight: g, controlsWidth: h, controlsColor: v, controlsHoverColor: w } = e, y = l > 0 && (!n || !!i), [x, N] = ie(0), [W, U] = ie(null), [H, $] = ie(!1), B = X(null), S = Ne(() => {
13446
+ const { prefix: r } = ln(), a = t || [], { speed: l, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: f, imageWidth: m, imageHeight: g, controlsWidth: h, controlsColor: v, controlsHoverColor: w } = e, y = l > 0 && (!n || !!i), [x, W] = ie(0), [N, U] = ie(null), [H, $] = ie(!1), B = X(null), S = Ne(() => {
13447
13447
  switch (s) {
13448
13448
  case "center":
13449
13449
  return "center";
@@ -13465,9 +13465,9 @@ const xf = 3e3, wf = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13465
13465
  }
13466
13466
  }, [s]);
13467
13467
  ke(() => {
13468
- N(0), U(null), $(!1);
13468
+ W(0), U(null), $(!1);
13469
13469
  }, [a.length]);
13470
- const E = a[x], C = W === null ? null : a[W], p = (we) => {
13470
+ const E = a[x], C = N === null ? null : a[N], p = (we) => {
13471
13471
  var ee, me, ae, Be, Re;
13472
13472
  return {
13473
13473
  fontSettings: {
@@ -13492,14 +13492,14 @@ const xf = 3e3, wf = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13492
13492
  }), oe = X(null), [L, _] = ie(0), [Y, le] = ie(0), pe = e.controls ?? { mode: "Off", icon: null }, A = a.length > 1, ye = Se((we, de) => !A || de === we ? we : (B.current && window.clearTimeout(B.current), U(we), $(!0), B.current = window.setTimeout(() => {
13493
13493
  U(null), $(!1), B.current = null;
13494
13494
  }, 300), de), [A]), j = Se(() => {
13495
- A && N((we) => ye(we, (we - 1 + a.length) % a.length));
13495
+ A && W((we) => ye(we, (we - 1 + a.length) % a.length));
13496
13496
  }, [A, ye, a.length]), ue = Se(() => {
13497
- A && N((we) => ye(we, (we + 1) % a.length));
13497
+ A && W((we) => ye(we, (we + 1) % a.length));
13498
13498
  }, [A, ye, a.length]);
13499
13499
  ke(() => {
13500
13500
  if (!y || !A) return;
13501
13501
  const we = Math.max(300, xf / l), de = window.setInterval(() => {
13502
- N((ee) => ye(ee, (ee + 1) % a.length));
13502
+ W((ee) => ye(ee, (ee + 1) % a.length));
13503
13503
  }, we);
13504
13504
  return () => {
13505
13505
  window.clearInterval(de);
@@ -15199,13 +15199,13 @@ function zf({
15199
15199
  );
15200
15200
  }
15201
15201
  function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: l, counterClassName: s, counterStyle: d }) {
15202
- const u = i === "cover", b = X(null), f = X(null), m = X(null), g = X(null), h = X(0), v = X(0), w = X("none"), y = X(!1), x = X(!1), N = X(null), W = X(0), U = X(null), H = X(!1), $ = X(null), B = X(null), S = X(null), I = X(() => {
15202
+ const u = i === "cover", b = X(null), f = X(null), m = X(null), g = X(null), h = X(0), v = X(0), w = X("none"), y = X(!1), x = X(!1), W = X(null), N = X(0), U = X(null), H = X(!1), $ = X(null), B = X(null), S = X(null), I = X(() => {
15203
15203
  }), [E, C] = ie(null), [p, M] = ie(null), [R, D] = ie("opening"), [oe, L] = ie(0), [_, Y] = ie(0), [le, pe] = ie(null), [A, ye] = ie(!1), [j, ue] = ie(!1), [Q, $e] = ie(!1), [ze, we] = ie(null), de = X(n), ee = X(void 0), me = t[n], ae = me ? ki(me) : !1, Be = _ !== 0 || A, Re = le !== null, P = Se((Ee) => {
15204
15204
  const Xe = Ee.currentTarget, ce = Xe instanceof HTMLVideoElement ? { width: Xe.videoWidth, height: Xe.videoHeight } : { width: Xe.naturalWidth, height: Xe.naturalHeight };
15205
15205
  !ce.width || !ce.height || we(ce);
15206
15206
  }, []);
15207
15207
  ke(() => {
15208
- N.current = p;
15208
+ W.current = p;
15209
15209
  }, [p]), ke(() => {
15210
15210
  const Ee = b.current;
15211
15211
  if (!Ee) return;
@@ -15218,23 +15218,23 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15218
15218
  $.current !== null && (window.clearTimeout($.current), $.current = null);
15219
15219
  }, []), G = Se(() => {
15220
15220
  const Ee = B.current;
15221
- B.current = null, q(), U.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0, ue(!1), y.current = !1, v.current = 0, w.current = "none", Ee === 1 ? l() : Ee === -1 && a();
15221
+ B.current = null, q(), U.current = null, H.current = !1, pe(null), ye(!1), Y(0), N.current = 0, ue(!1), y.current = !1, v.current = 0, w.current = "none", Ee === 1 ? l() : Ee === -1 && a();
15222
15222
  }, [q, l, a]), re = Se(() => {
15223
- q(), B.current = null, U.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0;
15223
+ q(), B.current = null, U.current = null, H.current = !1, pe(null), ye(!1), Y(0), N.current = 0;
15224
15224
  }, [q]), O = Se(() => {
15225
15225
  q(), $.current = window.setTimeout(() => {
15226
15226
  B.current !== null && G();
15227
15227
  }, Pn + 32);
15228
15228
  }, [q, G]), z = Se((Ee, Xe) => {
15229
15229
  var Me;
15230
- const ce = ((Me = N.current) == null ? void 0 : Me.width) ?? 0;
15230
+ const ce = ((Me = W.current) == null ? void 0 : Me.width) ?? 0;
15231
15231
  if (q(), U.current = Ee, pe(Ee), H.current = !0, ye(!0), Xe) {
15232
15232
  B.current = Ee;
15233
15233
  const Ze = -Ee * ce;
15234
- W.current = Ze, Y(Ze), O();
15234
+ N.current = Ze, Y(Ze), O();
15235
15235
  return;
15236
15236
  }
15237
- W.current = 0, Y(0), $.current = window.setTimeout(() => {
15237
+ N.current = 0, Y(0), $.current = window.setTimeout(() => {
15238
15238
  $.current = null, re();
15239
15239
  }, Pn + 32);
15240
15240
  }, [q, re, O]), J = Se((Ee) => {
@@ -15246,7 +15246,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15246
15246
  }
15247
15247
  re();
15248
15248
  }
15249
- q(), U.current = Ee, pe(Ee), H.current = !1, ye(!1), W.current = 0, Y(0), requestAnimationFrame(() => {
15249
+ q(), U.current = Ee, pe(Ee), H.current = !1, ye(!1), N.current = 0, Y(0), requestAnimationFrame(() => {
15250
15250
  requestAnimationFrame(() => {
15251
15251
  z(Ee, !0);
15252
15252
  });
@@ -15277,7 +15277,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15277
15277
  }, [R, r]), ke(() => () => {
15278
15278
  q();
15279
15279
  }, [q]), Pt(() => {
15280
- de.current === n && ee.current === (me == null ? void 0 : me.url) || (q(), B.current = null, pe(null), L(0), Y(0), ye(!1), $e(!1), ue(!1), we(null), h.current = 0, v.current = 0, w.current = "none", y.current = !1, H.current = !1, W.current = 0, U.current = null, g.current = null, x.current = !1, de.current = n, ee.current = me == null ? void 0 : me.url);
15280
+ de.current === n && ee.current === (me == null ? void 0 : me.url) || (q(), B.current = null, pe(null), L(0), Y(0), ye(!1), $e(!1), ue(!1), we(null), h.current = 0, v.current = 0, w.current = "none", y.current = !1, H.current = !1, N.current = 0, U.current = null, g.current = null, x.current = !1, de.current = n, ee.current = me == null ? void 0 : me.url);
15281
15281
  }, [n, me == null ? void 0 : me.url, q]), Pt(() => {
15282
15282
  const Ee = S.current;
15283
15283
  Ee !== null && (S.current = null, requestAnimationFrame(() => {
@@ -15319,7 +15319,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15319
15319
  if (w.current === "horizontal") {
15320
15320
  y.current = !0, ue(!0), v.current = Qe;
15321
15321
  const ot = Qe < 0 ? 1 : -1;
15322
- U.current !== ot && (U.current = ot, pe(ot)), W.current = Qe, Y(Qe), nt.preventDefault();
15322
+ U.current !== ot && (U.current = ot, pe(ot)), N.current = Qe, Y(Qe), nt.preventDefault();
15323
15323
  return;
15324
15324
  }
15325
15325
  w.current === "vertical" && (y.current = !0, ue(!0), h.current = Ve, L(Ve), nt.preventDefault());
@@ -15377,7 +15377,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15377
15377
  width: p == null ? void 0 : p.width,
15378
15378
  height: p == null ? void 0 : p.height,
15379
15379
  zIndex: 9998
15380
- }, We = u ? "cover" : "contain", Oe = _ !== 0 || oe > 0 ? `translate(${_}px, ${oe}px)` : void 0, dt = j && !A ? "none" : A ? `transform ${Pn}ms ${Jn}` : Q ? `transform ${Pn}ms ${Jn}, opacity ${Pn}ms ${Jn}` : R === "opening" || xe ? `opacity ${Pn}ms ${Jn}` : "none", it = {
15380
+ }, Fe = u ? "cover" : "contain", Oe = _ !== 0 || oe > 0 ? `translate(${_}px, ${oe}px)` : void 0, dt = j && !A ? "none" : A ? `transform ${Pn}ms ${Jn}` : Q ? `transform ${Pn}ms ${Jn}, opacity ${Pn}ms ${Jn}` : R === "opening" || xe ? `opacity ${Pn}ms ${Jn}` : "none", it = {
15381
15381
  ...V,
15382
15382
  transform: Oe,
15383
15383
  opacity: oe > 0 ? K : R === "opening" || xe ? 0 : 1,
@@ -15389,7 +15389,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15389
15389
  left: ((he == null ? void 0 : he.left) ?? 0) - ((p == null ? void 0 : p.left) ?? 0),
15390
15390
  width: he == null ? void 0 : he.width,
15391
15391
  height: he == null ? void 0 : he.height,
15392
- objectFit: We,
15392
+ objectFit: Fe,
15393
15393
  pointerEvents: ae && k && !Be ? "auto" : "none",
15394
15394
  touchAction: ae && k ? "none" : void 0
15395
15395
  }, st = (p == null ? void 0 : p.width) ?? 0, qe = Re ? (n + le + t.length) % t.length : null, Le = qe !== null ? t[qe] : null, He = {
@@ -15404,7 +15404,7 @@ function Bf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15404
15404
  left: ((E == null ? void 0 : E.left) ?? 0) - ((p == null ? void 0 : p.left) ?? 0),
15405
15405
  width: E == null ? void 0 : E.width,
15406
15406
  height: E == null ? void 0 : E.height,
15407
- objectFit: We,
15407
+ objectFit: Fe,
15408
15408
  pointerEvents: "none"
15409
15409
  }, tt = he ? {
15410
15410
  position: "fixed",
@@ -15614,8 +15614,8 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15614
15614
  imageCorners: w,
15615
15615
  lightboxImageDisplay: y,
15616
15616
  slider: x,
15617
- sliderTiming: N,
15618
- direction: W,
15617
+ sliderTiming: W,
15618
+ direction: N,
15619
15619
  transition: U,
15620
15620
  titleMarginTop: H,
15621
15621
  subtitleMarginTop: $,
@@ -15708,7 +15708,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15708
15708
  titleColor: B,
15709
15709
  subtitleColor: S,
15710
15710
  lightboxCounterColor: I
15711
- }, Gf, qf), Ge = `${a && a !== "default" ? `${d}-state-${a}` : ""}${ee === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), fe = g === 0 ? 1 / 0 : g, V = (t ?? []).slice(0, fe), We = Ne(
15711
+ }, Gf, qf), Ge = `${a && a !== "default" ? `${d}-state-${a}` : ""}${ee === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), fe = g === 0 ? 1 / 0 : g, V = (t ?? []).slice(0, fe), Fe = Ne(
15712
15712
  () => h === "on" ? Nf(V) : [],
15713
15713
  [V, h]
15714
15714
  ), Oe = b.entryWidth ?? 0.2, dt = (v == null ? void 0 : v.display) === "cover", it = (v == null ? void 0 : v.ratioValue) ?? "1:1", ut = (v == null ? void 0 : v.reversed) ?? !1, [st, qe] = it.split(":").map(Number), Ue = `${ut ? qe : st} / ${ut ? st : qe}`, tt = b.columnsCount, Ee = Z(Oe ?? 0, n), Xe = Ee, ce = !dt && x !== "off", Me = V.length % tt || tt, Ze = Me < tt && V.length > 0, Ce = V.length - Me, Pe = Ze ? Math.floor((tt - Me) / 2) + 1 : 1, nt = w ? Z(w, n) : void 0, je = {
@@ -15729,20 +15729,20 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15729
15729
  height: "auto",
15730
15730
  maxWidth: "100%",
15731
15731
  ...nt ? { borderRadius: nt } : {}
15732
- }, [Mt, Ft] = ie(0), $t = X(null), vt = U === "fade" || W === "horizontal" ? "ltr" : W === "vertical" ? "ttb" : "ltr";
15732
+ }, [Mt, Ft] = ie(0), $t = X(null), vt = U === "fade" || N === "horizontal" ? "ltr" : N === "vertical" ? "ttb" : "ltr";
15733
15733
  ke(() => {
15734
15734
  const yt = $t.current;
15735
15735
  if (!yt) return;
15736
- const Fe = new ResizeObserver((Ke) => {
15736
+ const _e = new ResizeObserver((Ke) => {
15737
15737
  Ft(Math.round(Ke[0].contentRect.width));
15738
15738
  });
15739
- return Fe.observe(yt), () => Fe.disconnect();
15739
+ return _e.observe(yt), () => _e.disconnect();
15740
15740
  }, []);
15741
15741
  const Ot = (() => {
15742
- const yt = { ...ge }, Fe = $t.current ? getComputedStyle($t.current).getPropertyValue("--cntrl-article-width").trim() : "";
15743
- return Fe && (yt["--cntrl-article-width"] = Fe), yt;
15744
- })(), [Vt, Lt] = ie(!1), [jt, Jt] = ie([]), [rn, cn] = ie(0), kt = h === "on" && (!n || i), Gt = (yt, Fe) => {
15745
- n && !i || h !== "off" && (Jt(yt), cn(Fe), Lt(!0));
15742
+ const yt = { ...ge }, _e = $t.current ? getComputedStyle($t.current).getPropertyValue("--cntrl-article-width").trim() : "";
15743
+ return _e && (yt["--cntrl-article-width"] = _e), yt;
15744
+ })(), [Vt, Lt] = ie(!1), [jt, Jt] = ie([]), [rn, cn] = ie(0), kt = h === "on" && (!n || i), Gt = (yt, _e) => {
15745
+ n && !i || h !== "off" && (Jt(yt), cn(_e), Lt(!0));
15746
15746
  };
15747
15747
  ke(() => {
15748
15748
  if (!Vt || h !== "on" || typeof document > "u") return;
@@ -15756,7 +15756,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15756
15756
  const un = Ne(() => If(d), [d]);
15757
15757
  return /* @__PURE__ */ te(pt, { children: [
15758
15758
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: un } }),
15759
- h === "on" && /* @__PURE__ */ c(Hf, { mediaList: We }),
15759
+ h === "on" && /* @__PURE__ */ c(Hf, { mediaList: Fe }),
15760
15760
  /* @__PURE__ */ c("div", { style: ge, children: /* @__PURE__ */ c(
15761
15761
  "div",
15762
15762
  {
@@ -15769,9 +15769,9 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15769
15769
  width: Z(b.wrapperWidth ?? 0, n),
15770
15770
  ...ot ? { [`--${d}-align-entries-row-gap`]: Z(m ?? 0, n) } : {}
15771
15771
  },
15772
- children: V.map((yt, Fe) => {
15772
+ children: V.map((yt, _e) => {
15773
15773
  var qt;
15774
- const Ke = Vl(yt.title), mt = Vl(yt.subtitle), xt = (((qt = yt.link) == null ? void 0 : qt.length) ?? 0) > 0 && h === "off" ? yt.link : void 0, Ct = Math.floor(Fe / tt) === Math.ceil(V.length / tt) - 1, _t = Ze && Fe >= Ce ? `${Pe + (Fe - Ce)}` : void 0, St = Ve ? /* @__PURE__ */ te("div", { className: `${d}-item-text-block`, children: [
15774
+ const Ke = Vl(yt.title), mt = Vl(yt.subtitle), xt = (((qt = yt.link) == null ? void 0 : qt.length) ?? 0) > 0 && h === "off" ? yt.link : void 0, Ct = Math.floor(_e / tt) === Math.ceil(V.length / tt) - 1, _t = Ze && _e >= Ce ? `${Pe + (_e - Ce)}` : void 0, St = Ve ? /* @__PURE__ */ te("div", { className: `${d}-item-text-block`, children: [
15775
15775
  Ke && /* @__PURE__ */ c("p", { className: ne, style: { width: lt, ...P, ...be }, children: yt.title }),
15776
15776
  Ke && /* @__PURE__ */ c(
15777
15777
  "div",
@@ -15873,7 +15873,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15873
15873
  drag: !1,
15874
15874
  perPage: 1,
15875
15875
  autoplay: !0,
15876
- interval: N * 1e3,
15876
+ interval: W * 1e3,
15877
15877
  width: "100%",
15878
15878
  height: "100%",
15879
15879
  speed: Ef,
@@ -15884,7 +15884,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15884
15884
  direction: vt
15885
15885
  },
15886
15886
  onMoved: (Et) => {
15887
- W !== "random" || U === "fade" || Mf(Et);
15887
+ N !== "random" || U === "fade" || Mf(Et);
15888
15888
  },
15889
15889
  children: Qt.map(({ displayMedia: Et, lightboxMedia: F }, Ae) => {
15890
15890
  const De = F ? en.findIndex((Ye) => Ye.url === F.url) : -1;
@@ -15899,7 +15899,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15899
15899
  ) }, Ae);
15900
15900
  })
15901
15901
  },
15902
- `${U}-${Oe}-${W}-${N}-${Mt}-${l}`
15902
+ `${U}-${Oe}-${N}-${W}-${Mt}-${l}`
15903
15903
  )
15904
15904
  ] }) }), Ut = Ve ? null : /* @__PURE__ */ te(pt, { children: [
15905
15905
  /* @__PURE__ */ c(
@@ -15974,7 +15974,7 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15974
15974
  }
15975
15975
  )
15976
15976
  },
15977
- Fe
15977
+ _e
15978
15978
  );
15979
15979
  })
15980
15980
  }
@@ -15991,8 +15991,8 @@ function jf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15991
15991
  imageDisplay: Vf(y),
15992
15992
  isEditor: n,
15993
15993
  onClose: () => Lt(!1),
15994
- onPrev: () => cn((Fe) => (Fe - 1 + jt.length) % jt.length),
15995
- onNext: () => cn((Fe) => (Fe + 1) % jt.length),
15994
+ onPrev: () => cn((_e) => (_e - 1 + jt.length) % jt.length),
15995
+ onNext: () => cn((_e) => (_e + 1) % jt.length),
15996
15996
  counterClassName: xe,
15997
15997
  counterStyle: J
15998
15998
  }
@@ -19141,8 +19141,8 @@ function iu({
19141
19141
  closeIcon: w = null,
19142
19142
  closeIconMaxWidth: y = 0,
19143
19143
  closeIconColor: x = "#000000",
19144
- closeIconHoverColor: N = "#cccccc"
19145
- } = n, W = Z(h, i), U = Z(v, i), H = Z(m, i), $ = g === "mobile", B = Mi("title1", Pi(n, "title1"), i), S = Mi("title2", Pi(n, "title2"), i), I = Mi("title3", Pi(n, "title3"), i), E = Ne(
19144
+ closeIconHoverColor: W = "#cccccc"
19145
+ } = n, N = Z(h, i), U = Z(v, i), H = Z(m, i), $ = g === "mobile", B = Mi("title1", Pi(n, "title1"), i), S = Mi("title2", Pi(n, "title2"), i), I = Mi("title3", Pi(n, "title3"), i), E = Ne(
19146
19146
  () => ({
19147
19147
  title1Width: l ?? io.title1Width,
19148
19148
  title2Width: s ?? io.title2Width,
@@ -19187,7 +19187,7 @@ function iu({
19187
19187
  maxWidth: vn(Ge, R)
19188
19188
  };
19189
19189
  if (he === "two-row-top") {
19190
- const V = oe.findIndex((We) => We.prefix === K.prefix);
19190
+ const V = oe.findIndex((Fe) => Fe.prefix === K.prefix);
19191
19191
  return {
19192
19192
  effectiveWidth: _.effective[V] ?? 0,
19193
19193
  resolvedWidth: _.resolved[V] ?? 0,
@@ -19217,11 +19217,11 @@ function iu({
19217
19217
  maxWidth: vn(it, ut)
19218
19218
  };
19219
19219
  }
19220
- const fe = K.filter((dt) => dt.prefix === "title2" || dt.prefix === "title3"), V = fe.findIndex((dt) => dt.prefix === he.prefix), { resolved: We, effective: Oe } = si(fe, E);
19220
+ const fe = K.filter((dt) => dt.prefix === "title2" || dt.prefix === "title3"), V = fe.findIndex((dt) => dt.prefix === he.prefix), { resolved: Fe, effective: Oe } = si(fe, E);
19221
19221
  return {
19222
19222
  effectiveWidth: Oe[V] ?? 0,
19223
- resolvedWidth: We[V] ?? 0,
19224
- maxWidth: vn(V, We)
19223
+ resolvedWidth: Fe[V] ?? 0,
19224
+ maxWidth: vn(V, Fe)
19225
19225
  };
19226
19226
  }, Q = (K) => nu(
19227
19227
  p,
@@ -19237,7 +19237,7 @@ function iu({
19237
19237
  }, de = (K, he, Ge) => {
19238
19238
  const fe = K.marginLeftKey ? C[K.marginLeftKey] ?? 0 : 0, {
19239
19239
  effectiveWidth: V,
19240
- resolvedWidth: We,
19240
+ resolvedWidth: Fe,
19241
19241
  maxWidth: Oe
19242
19242
  } = Ge ?? j(K, he), dt = Math.max(fe, ri), it = o && he === "two-row-top";
19243
19243
  return /* @__PURE__ */ te(
@@ -19257,7 +19257,7 @@ function iu({
19257
19257
  "data-controls": K.marginLeftKey,
19258
19258
  "data-controls-axis": "x",
19259
19259
  "data-controls-min": "0",
19260
- "data-controls-max-fraction": String(We),
19260
+ "data-controls-max-fraction": String(Fe),
19261
19261
  style: {
19262
19262
  position: "absolute",
19263
19263
  top: 0,
@@ -19369,7 +19369,7 @@ function iu({
19369
19369
  width: Z(y ?? 0, i),
19370
19370
  height: Z(y ?? 0, i),
19371
19371
  marginRight: U,
19372
- "--close-icon-hover-color": N
19372
+ "--close-icon-hover-color": W
19373
19373
  },
19374
19374
  children: [
19375
19375
  /* @__PURE__ */ c(
@@ -19386,7 +19386,7 @@ function iu({
19386
19386
  {
19387
19387
  url: w ?? "",
19388
19388
  fill: x,
19389
- hoverFill: i && !r ? x : N,
19389
+ hoverFill: i && !r ? x : W,
19390
19390
  className: `${e}-close-icon-img`
19391
19391
  }
19392
19392
  )
@@ -19421,7 +19421,7 @@ function iu({
19421
19421
  Re(K, he)
19422
19422
  ] }), z = () => {
19423
19423
  const K = $ ? -1 : p.findIndex((fe) => fe.prefix === "title1"), he = !$ && (o || (u ?? 0) > 0) ? (() => {
19424
- const fe = u ?? 0, V = K >= 0 ? R[K] : E.title1Width, We = Math.max(fe, ri);
19424
+ const fe = u ?? 0, V = K >= 0 ? R[K] : E.title1Width, Fe = Math.max(fe, ri);
19425
19425
  return /* @__PURE__ */ c(
19426
19426
  "div",
19427
19427
  {
@@ -19433,7 +19433,7 @@ function iu({
19433
19433
  position: "absolute",
19434
19434
  top: 0,
19435
19435
  left: 0,
19436
- width: Z(We, i),
19436
+ width: Z(Fe, i),
19437
19437
  height: "100%",
19438
19438
  pointerEvents: "auto"
19439
19439
  }
@@ -19442,12 +19442,12 @@ function iu({
19442
19442
  );
19443
19443
  })() : null, Ge = p.flatMap((fe, V) => {
19444
19444
  if (!fe.marginLeftKey) return [];
19445
- const We = C[fe.marginLeftKey] ?? 0, Oe = tu(
19445
+ const Fe = C[fe.marginLeftKey] ?? 0, Oe = tu(
19446
19446
  p,
19447
19447
  R,
19448
19448
  C,
19449
19449
  V
19450
- ) + $e(), dt = Math.max(We, ri);
19450
+ ) + $e(), dt = Math.max(Fe, ri);
19451
19451
  return /* @__PURE__ */ c(
19452
19452
  "div",
19453
19453
  {
@@ -19490,14 +19490,14 @@ function iu({
19490
19490
  ) }, `${K.widthKey}-junction`);
19491
19491
  }), ne = () => L.flatMap((K, he) => {
19492
19492
  if (!K.marginLeftKey) return [];
19493
- const Ge = C[K.marginLeftKey] ?? 0, fe = ze(he), V = Math.max(Ge, ri), { resolvedWidth: We } = j(K, "two-row-bottom");
19493
+ const Ge = C[K.marginLeftKey] ?? 0, fe = ze(he), V = Math.max(Ge, ri), { resolvedWidth: Fe } = j(K, "two-row-bottom");
19494
19494
  return /* @__PURE__ */ c(
19495
19495
  "div",
19496
19496
  {
19497
19497
  "data-controls": K.marginLeftKey,
19498
19498
  "data-controls-axis": "x",
19499
19499
  "data-controls-min": "0",
19500
- "data-controls-max-fraction": String(We),
19500
+ "data-controls-max-fraction": String(Fe),
19501
19501
  style: {
19502
19502
  position: "absolute",
19503
19503
  top: 0,
@@ -19576,7 +19576,7 @@ function iu({
19576
19576
  {
19577
19577
  "data-controls": o ? "contentMarginTop" : void 0,
19578
19578
  className: o ? `${e}-control` : void 0,
19579
- style: { height: W, width: "100%" }
19579
+ style: { height: N, width: "100%" }
19580
19580
  }
19581
19581
  ),
19582
19582
  /* @__PURE__ */ c("div", { style: {
@@ -20303,8 +20303,8 @@ function Ay({
20303
20303
  onPrev: h,
20304
20304
  onNext: v
20305
20305
  }) {
20306
- const w = X(null), y = X(null), x = X(null), N = X(/* @__PURE__ */ new Map()), [W, U] = ie(0), H = X(null), $ = X(0), B = X(0), S = X("none"), I = X(!1), E = X(!1), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(() => {
20307
- }), oe = X(null), L = X(null), _ = X(null), Y = X(!1), [le, pe] = ie(null), [A, ye] = ie(Ha), [j, ue] = ie(0), [Q, $e] = ie("opening"), [ze, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Be, Re] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Ie, be] = ie(!1), k = X(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = X(n), fe = X(void 0), V = t[n], We = V ? To(V) : !1, Oe = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, st = Se((F, Ae) => t.length <= 1 ? null : t[(F + Ae + t.length) % t.length] ?? null, [t]), qe = ut ? _o(d, u, -1) : st(n, -1), Le = ut ? _o(d, u, 1) : st(n, 1), He = Be === -1 && Oe ? ut && P !== null ? _o(d, P, -1) : G !== null ? st(G, -1) : null : null, Ue = Be === 1 && Oe ? ut && P !== null ? _o(d, P, 1) : G !== null ? st(G, 1) : null : null, tt = He && He.url !== (qe == null ? void 0 : qe.url) ? He : null, Ee = Ue && Ue.url !== (Le == null ? void 0 : Le.url) ? Ue : null, Xe = qe && it ? (() => {
20306
+ const w = X(null), y = X(null), x = X(null), W = X(/* @__PURE__ */ new Map()), [N, U] = ie(0), H = X(null), $ = X(0), B = X(0), S = X("none"), I = X(!1), E = X(!1), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(() => {
20307
+ }), oe = X(null), L = X(null), _ = X(null), Y = X(!1), [le, pe] = ie(null), [A, ye] = ie(Ha), [j, ue] = ie(0), [Q, $e] = ie("opening"), [ze, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Be, Re] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Ie, be] = ie(!1), k = X(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = X(n), fe = X(void 0), V = t[n], Fe = V ? To(V) : !1, Oe = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, st = Se((F, Ae) => t.length <= 1 ? null : t[(F + Ae + t.length) % t.length] ?? null, [t]), qe = ut ? _o(d, u, -1) : st(n, -1), Le = ut ? _o(d, u, 1) : st(n, 1), He = Be === -1 && Oe ? ut && P !== null ? _o(d, P, -1) : G !== null ? st(G, -1) : null : null, Ue = Be === 1 && Oe ? ut && P !== null ? _o(d, P, 1) : G !== null ? st(G, 1) : null : null, tt = He && He.url !== (qe == null ? void 0 : qe.url) ? He : null, Ee = Ue && Ue.url !== (Le == null ? void 0 : Le.url) ? Ue : null, Xe = qe && it ? (() => {
20308
20308
  const F = ut ? Jl(d, u, -1) : t.length > 2 ? st((n - 1 + t.length) % t.length, -1) : null;
20309
20309
  return F && F.url !== qe.url ? F : null;
20310
20310
  })() : null, ce = Le && it ? (() => {
@@ -20312,13 +20312,13 @@ function Ay({
20312
20312
  return F && F.url !== Le.url ? F : null;
20313
20313
  })() : null, Me = tt ?? Xe, Ze = Ee ?? ce, Ce = Se((F, Ae, De) => {
20314
20314
  if (!F || !Ae || !De) return;
20315
- const Ye = N.current, ft = Ye.get(F);
20315
+ const Ye = W.current, ft = Ye.get(F);
20316
20316
  (ft == null ? void 0 : ft.width) === Ae && (ft == null ? void 0 : ft.height) === De || (Ye.set(F, { width: Ae, height: De }), U((Dt) => Dt + 1));
20317
20317
  }, []), Pe = Se((F) => {
20318
20318
  if (!(F != null && F.url)) return null;
20319
- const Ae = N.current.get(F.url);
20319
+ const Ae = W.current.get(F.url);
20320
20320
  return wy(y.current, Ae);
20321
- }, [W, j]), nt = Se(() => {
20321
+ }, [N, j]), nt = Se(() => {
20322
20322
  if (!V) return;
20323
20323
  const F = Pe(V);
20324
20324
  if (F) {
@@ -20427,7 +20427,7 @@ function Ay({
20427
20427
  }, [vt, Ot]), Lt = Se(() => {
20428
20428
  const F = y.current;
20429
20429
  if (!F) return;
20430
- const Ae = V == null ? void 0 : V.url, De = Ae ? N.current.get(Ae) : void 0;
20430
+ const Ae = V == null ? void 0 : V.url, De = Ae ? W.current.get(Ae) : void 0;
20431
20431
  if (De != null && De.width && (De != null && De.height)) {
20432
20432
  pe(bs(F, De.width, De.height));
20433
20433
  return;
@@ -20471,12 +20471,12 @@ function Ay({
20471
20471
  }
20472
20472
  }, [V == null ? void 0 : V.url, n, Lt]), ke(() => {
20473
20473
  nt();
20474
- }, [nt, W]), ke(() => {
20474
+ }, [nt, N]), ke(() => {
20475
20475
  const F = /* @__PURE__ */ new Set(), Ae = [], De = (Ye) => {
20476
20476
  !(Ye != null && Ye.url) || F.has(Ye.url) || (F.add(Ye.url), Ae.push(Ye));
20477
20477
  };
20478
20478
  t.forEach(De), d.forEach((Ye) => Ye.items.forEach(De)), Ae.forEach((Ye) => {
20479
- N.current.has(Ye.url) || Sy(Ye, Ce);
20479
+ W.current.has(Ye.url) || Sy(Ye, Ce);
20480
20480
  });
20481
20481
  }, [t, d, Ce]), ke(() => {
20482
20482
  if (Q !== "opening" || !le) return;
@@ -20618,7 +20618,7 @@ function Ay({
20618
20618
  }, [Q, vt]);
20619
20619
  const cn = () => {
20620
20620
  Q === "closing" || a || rn();
20621
- }, kt = Q === "open", Gt = Q === "closing", un = ze > 0 ? Math.max(0, 1 - ze / 500) : 1, yt = ze > 0 ? Math.max(0.35, 1 - ze / 500) : 1, Fe = Se((F) => {
20621
+ }, kt = Q === "open", Gt = Q === "closing", un = ze > 0 ? Math.max(0, 1 - ze / 500) : 1, yt = ze > 0 ? Math.max(0.35, 1 - ze / 500) : 1, _e = Se((F) => {
20622
20622
  if (!(F.propertyName !== "transform" || !C.current)) {
20623
20623
  if (M.current !== null) {
20624
20624
  Rt();
@@ -20637,10 +20637,10 @@ function Ay({
20637
20637
  transform: xt,
20638
20638
  opacity: ze > 0 ? yt : _t ? 1 : Q === "opening" || Gt ? 0 : 1,
20639
20639
  transition: xe && !me ? "none" : me ? `transform ${Ro}ms ${wn}` : K ? `transform ${Fn}ms ${wn}, opacity ${Fn}ms ${wn}` : St ? `transform ${Fn}ms ${wn}` : Q === "opening" || Gt ? `opacity ${Fn}ms ${wn}` : "none",
20640
- pointerEvents: We && kt && !Oe ? "auto" : "none",
20641
- touchAction: We && kt ? "none" : void 0,
20640
+ pointerEvents: Fe && kt && !Oe ? "auto" : "none",
20641
+ touchAction: Fe && kt ? "none" : void 0,
20642
20642
  zIndex: 1,
20643
- overflow: We ? "hidden" : void 0
20643
+ overflow: Fe ? "hidden" : void 0
20644
20644
  }, Bt = {
20645
20645
  width: "100%",
20646
20646
  height: "100%",
@@ -20768,7 +20768,7 @@ function Ay({
20768
20768
  media: Me,
20769
20769
  style: zt(Me, "left", "far"),
20770
20770
  onMeasure: Ce,
20771
- onTransitionEnd: Fe
20771
+ onTransitionEnd: _e
20772
20772
  },
20773
20773
  `far-prev-${Me.url}`
20774
20774
  ),
@@ -20779,7 +20779,7 @@ function Ay({
20779
20779
  media: qe,
20780
20780
  style: zt(qe, "left"),
20781
20781
  onMeasure: Ce,
20782
- onTransitionEnd: Fe
20782
+ onTransitionEnd: _e
20783
20783
  },
20784
20784
  `prev-${qe.url}`
20785
20785
  ),
@@ -20807,7 +20807,7 @@ function Ay({
20807
20807
  media: Le,
20808
20808
  style: zt(Le, "right"),
20809
20809
  onMeasure: Ce,
20810
- onTransitionEnd: Fe
20810
+ onTransitionEnd: _e
20811
20811
  },
20812
20812
  `next-${Le.url}`
20813
20813
  ),
@@ -20834,11 +20834,11 @@ function Ay({
20834
20834
  media: Ze,
20835
20835
  style: zt(Ze, "right", "far"),
20836
20836
  onMeasure: Ce,
20837
- onTransitionEnd: Fe
20837
+ onTransitionEnd: _e
20838
20838
  },
20839
20839
  `far-next-${Ze.url}`
20840
20840
  ),
20841
- le && V && (We ? /* @__PURE__ */ c(
20841
+ le && V && (Fe ? /* @__PURE__ */ c(
20842
20842
  Ey,
20843
20843
  {
20844
20844
  src: V.url,
@@ -20847,7 +20847,7 @@ function Ay({
20847
20847
  wrapperStyle: Kt,
20848
20848
  videoStyle: Bt,
20849
20849
  onLoadedMetadata: Lt,
20850
- onTransitionEnd: Fe
20850
+ onTransitionEnd: _e
20851
20851
  },
20852
20852
  `${n}-${V.url}`
20853
20853
  ) : /* @__PURE__ */ c(
@@ -20857,7 +20857,7 @@ function Ay({
20857
20857
  src: V.url,
20858
20858
  alt: V.name,
20859
20859
  onLoad: Lt,
20860
- onTransitionEnd: Fe,
20860
+ onTransitionEnd: _e,
20861
20861
  style: Kt
20862
20862
  },
20863
20863
  `${n}-${V.url}`
@@ -20875,7 +20875,7 @@ function ky({
20875
20875
  layoutId: r,
20876
20876
  portalId: a
20877
20877
  }) {
20878
- const { prefix: l } = ln(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, f = (b == null ? void 0 : b.display) === "cover", m = (b == null ? void 0 : b.ratioValue) ?? "1:1", g = (b == null ? void 0 : b.reversed) ?? !1, [h, v] = m.split(":").map(Number), x = `${g ? v : h} / ${g ? h : v}`, N = s.entryWidth ?? 0.2, W = s.columnsCount, U = Z(N, n), H = Z(s.horizontalGap ?? 0, n), $ = U, B = U, S = {
20878
+ const { prefix: l } = ln(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, f = (b == null ? void 0 : b.display) === "cover", m = (b == null ? void 0 : b.ratioValue) ?? "1:1", g = (b == null ? void 0 : b.reversed) ?? !1, [h, v] = m.split(":").map(Number), x = `${g ? v : h} / ${g ? h : v}`, W = s.entryWidth ?? 0.2, N = s.columnsCount, U = Z(W, n), H = Z(s.horizontalGap ?? 0, n), $ = U, B = U, S = {
20879
20879
  width: $,
20880
20880
  ...f ? { aspectRatio: x, height: "auto", overflow: "hidden" } : { height: "auto" }
20881
20881
  }, I = f ? {
@@ -20897,7 +20897,7 @@ function ky({
20897
20897
  }), ye = (() => {
20898
20898
  const G = {}, re = E.current ? getComputedStyle(E.current).getPropertyValue("--cntrl-article-width").trim() : "";
20899
20899
  return re && (G["--cntrl-article-width"] = re), G;
20900
- })(), j = !n || i || o, ue = Ne(() => dy(l), [l]), Q = t ?? [], $e = Q.length % W || W, ze = $e < W && Q.length > 0, we = Q.length - $e, de = ze ? Math.floor((W - $e) / 2) + 1 : 1, ee = Ne(() => vy(Q), [Q]), me = Ne(() => $y(Q), [Q]), ae = (G, re, O) => {
20900
+ })(), j = !n || i || o, ue = Ne(() => dy(l), [l]), Q = t ?? [], $e = Q.length % N || N, ze = $e < N && Q.length > 0, we = Q.length - $e, de = ze ? Math.floor((N - $e) / 2) + 1 : 1, ee = Ne(() => vy(Q), [Q]), me = Ne(() => $y(Q), [Q]), ae = (G, re, O) => {
20901
20901
  if (n && !o && !i) return;
20902
20902
  const z = ee.findIndex((ne) => ne.gridIndex === G);
20903
20903
  if (z < 0) return;
@@ -20937,14 +20937,14 @@ function ky({
20937
20937
  ref: E,
20938
20938
  className: `${l}-wrapper ${l}-align-entries ${l}-image-align-${u}`.trim(),
20939
20939
  style: {
20940
- gridTemplateColumns: `repeat(${W}, ${U})`,
20940
+ gridTemplateColumns: `repeat(${N}, ${U})`,
20941
20941
  rowGap: 0,
20942
20942
  columnGap: H,
20943
20943
  width: Z(s.wrapperWidth ?? 0, n),
20944
20944
  [`--${l}-align-entries-row-gap`]: Z(d ?? 0, n)
20945
20945
  },
20946
20946
  children: Q.map((G, re) => {
20947
- const O = sl(G.gallery), z = ll(O), J = z.filter((ge) => ge.lightboxMedia).map((ge) => ge.lightboxMedia), ne = Math.floor(re / W) === Math.ceil(Q.length / W) - 1, Ie = ze && re >= we ? `${de + (re - we)}` : void 0, be = z[0], k = be != null && be.lightboxMedia ? J.findIndex((ge) => ge.url === be.lightboxMedia.url) : -1, xe = /* @__PURE__ */ c("div", { className: `${l}-item-image-wrapper`, style: S, children: z.length > 0 && /* @__PURE__ */ c(
20947
+ const O = sl(G.gallery), z = ll(O), J = z.filter((ge) => ge.lightboxMedia).map((ge) => ge.lightboxMedia), ne = Math.floor(re / N) === Math.ceil(Q.length / N) - 1, Ie = ze && re >= we ? `${de + (re - we)}` : void 0, be = z[0], k = be != null && be.lightboxMedia ? J.findIndex((ge) => ge.url === be.lightboxMedia.url) : -1, xe = /* @__PURE__ */ c("div", { className: `${l}-item-image-wrapper`, style: S, children: z.length > 0 && /* @__PURE__ */ c(
20948
20948
  My,
20949
20949
  {
20950
20950
  media: be.displayMedia,
@@ -24881,8 +24881,8 @@ function Sv(e, t, n, i) {
24881
24881
  const l = e[a], s = t.indexOf(l);
24882
24882
  if (s === -1)
24883
24883
  continue;
24884
- const d = In[s], u = go[s], b = ho[s], f = fo[s], m = In[a], g = go[a], h = ho[a], v = fo[a], w = n[d], y = n[u], x = n[b], N = n[f];
24885
- typeof w == "number" && (r[m] = w), typeof y == "number" && (r[g] = y), typeof x == "number" && (r[h] = x), typeof N == "number" && (r[v] = N);
24884
+ const d = In[s], u = go[s], b = ho[s], f = fo[s], m = In[a], g = go[a], h = ho[a], v = fo[a], w = n[d], y = n[u], x = n[b], W = n[f];
24885
+ typeof w == "number" && (r[m] = w), typeof y == "number" && (r[g] = y), typeof x == "number" && (r[h] = x), typeof W == "number" && (r[v] = W);
24886
24886
  }
24887
24887
  return r;
24888
24888
  }
@@ -24918,7 +24918,7 @@ function Cv(e, t, n) {
24918
24918
  const o = uu(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, l = Do(e), s = Do(t), d = e.type === "b" || e.type === void 0 && t.type === "b", u = typeof r == "number" ? r : typeof a == "number" ? a : pi.length, b = (x) => {
24919
24919
  if (d)
24920
24920
  return x;
24921
- const N = $r({ ...t, ...x }), W = Do(x), U = jr(u, W, N), H = bv(u, U, {
24921
+ const W = $r({ ...t, ...x }), N = Do(x), U = jr(u, N, W), H = bv(u, U, {
24922
24922
  ...t,
24923
24923
  ...x
24924
24924
  });
@@ -24943,8 +24943,8 @@ function Cv(e, t, n) {
24943
24943
  });
24944
24944
  }
24945
24945
  if (d) {
24946
- const x = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0, N = Math.max(0, (l - o) / 2);
24947
- return x > N ? { ...e, textPaddingLR: N } : e;
24946
+ const x = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0, W = Math.max(0, (l - o) / 2);
24947
+ return x > W ? { ...e, textPaddingLR: W } : e;
24948
24948
  }
24949
24949
  const g = $r({ ...t, ...e }), h = jr(
24950
24950
  u,
@@ -24955,10 +24955,10 @@ function Cv(e, t, n) {
24955
24955
  l,
24956
24956
  g
24957
24957
  ).some(
24958
- (x, N) => x < (h[N] ?? x)
24958
+ (x, W) => x < (h[W] ?? x)
24959
24959
  ), y = In.some((x) => {
24960
- const N = e[x], W = t[x];
24961
- return typeof N == "number" && typeof W == "number" && N !== W;
24960
+ const W = e[x], N = t[x];
24961
+ return typeof W == "number" && typeof N == "number" && W !== N;
24962
24962
  });
24963
24963
  return w || y ? b(e) : e;
24964
24964
  }
@@ -25017,8 +25017,8 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25017
25017
  cut: w,
25018
25018
  showCut: y,
25019
25019
  cutCellMinHeight: x,
25020
- cutLabel: N,
25021
- imageSize: W,
25020
+ cutLabel: W,
25021
+ imageSize: N,
25022
25022
  imageOnHover: U,
25023
25023
  imagePosition: H = "cursor",
25024
25024
  imageInterpolation: $ = "on",
@@ -25044,14 +25044,14 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25044
25044
  re(Jo);
25045
25045
  return;
25046
25046
  }
25047
- const Fe = () => {
25047
+ const _e = () => {
25048
25048
  re(hv(Be.current));
25049
25049
  };
25050
- Fe();
25050
+ _e();
25051
25051
  const Ke = Be.current;
25052
25052
  if (!Ke)
25053
25053
  return;
25054
- const mt = new ResizeObserver(Fe);
25054
+ const mt = new ResizeObserver(_e);
25055
25055
  mt.observe(Ke);
25056
25056
  let xt = Ke;
25057
25057
  for (; xt && !xt.style.getPropertyValue("--cntrl-article-width"); )
@@ -25079,21 +25079,21 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25079
25079
  fe.current = e, V.current = a;
25080
25080
  return;
25081
25081
  }
25082
- const Fe = fe.current;
25083
- if (!(Fe !== e))
25082
+ const _e = fe.current;
25083
+ if (!(_e !== e))
25084
25084
  return;
25085
- if (typeof Fe.columns == "number" && typeof e.columns == "number" && Fe.columns !== e.columns) {
25085
+ if (typeof _e.columns == "number" && typeof e.columns == "number" && _e.columns !== e.columns) {
25086
25086
  fe.current = e;
25087
25087
  return;
25088
25088
  }
25089
25089
  const mt = Cv(
25090
25090
  e,
25091
- Fe,
25091
+ _e,
25092
25092
  { designWidth: G }
25093
25093
  );
25094
25094
  fe.current = e, gu(e, mt) && l(mt);
25095
25095
  }, [e, l, n, a, G]);
25096
- const We = Ne(
25096
+ const Fe = Ne(
25097
25097
  () => Iv(e),
25098
25098
  [
25099
25099
  e.AColumnWidth,
@@ -25133,31 +25133,31 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25133
25133
  () => Rv(
25134
25134
  ut,
25135
25135
  u,
25136
- We,
25136
+ Fe,
25137
25137
  Oe,
25138
25138
  dt,
25139
25139
  it
25140
25140
  ),
25141
- [ut, u, We, Oe, dt, it]
25141
+ [ut, u, Fe, Oe, dt, it]
25142
25142
  ), qe = Do(e), Le = Ne(
25143
- () => In.slice(0, u).map((Fe) => We[Fe]),
25144
- [u, We]
25143
+ () => In.slice(0, u).map((_e) => Fe[_e]),
25144
+ [u, Fe]
25145
25145
  ), He = Ne(
25146
- () => pl(u, qe, We),
25147
- [u, qe, We]
25146
+ () => pl(u, qe, Fe),
25147
+ [u, qe, Fe]
25148
25148
  ), Ue = Ne(
25149
- () => jr(u, qe, We),
25150
- [u, qe, We]
25149
+ () => jr(u, qe, Fe),
25150
+ [u, qe, Fe]
25151
25151
  ), tt = Ne(
25152
- () => st.map((Fe, Ke) => mu(
25152
+ () => st.map((_e, Ke) => mu(
25153
25153
  Ue[Ke] ?? 0,
25154
- Fe.paddingLeft,
25155
- Fe.paddingRight
25154
+ _e.paddingLeft,
25155
+ _e.paddingRight
25156
25156
  )),
25157
25157
  [st, Ue]
25158
25158
  ), Ee = Ne(() => {
25159
- const Fe = m === 0 ? 1 / 0 : m;
25160
- return (t ?? []).slice(0, Fe).map((mt, xt) => ({
25159
+ const _e = m === 0 ? 1 / 0 : m;
25160
+ return (t ?? []).slice(0, _e).map((mt, xt) => ({
25161
25161
  id: xt,
25162
25162
  cells: Object.fromEntries(
25163
25163
  pi.map((Ct) => [Ct, mt[Ct] ?? ""])
@@ -25170,13 +25170,13 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25170
25170
  Ge || Ze ? `${s}-divider-bottom` : ""
25171
25171
  ].filter(Boolean).join(" "), Pe = !n || i, nt = () => {
25172
25172
  if (!Pe) return;
25173
- const Fe = le ?? w;
25173
+ const _e = le ?? w;
25174
25174
  if (!y) {
25175
25175
  pe(Ee.length);
25176
25176
  return;
25177
25177
  }
25178
- pe(Math.min(Fe + y, Ee.length));
25179
- }, je = (Fe) => Z(Fe, n ?? !1), Qe = ae ? C ?? 0 : I ?? 0, Ve = E ?? 0, ot = g ?? 0, lt = Math.max(Ve, Va), at = nc(
25178
+ pe(Math.min(_e + y, Ee.length));
25179
+ }, je = (_e) => Z(_e, n ?? !1), Qe = ae ? C ?? 0 : I ?? 0, Ve = E ?? 0, ot = g ?? 0, lt = Math.max(Ve, Va), at = nc(
25180
25180
  0,
25181
25181
  ce.length,
25182
25182
  he,
@@ -25184,57 +25184,57 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25184
25184
  Me,
25185
25185
  h ?? 0,
25186
25186
  n ?? !1
25187
- ).borderTopWidth, Rt = ae ? "rowPaddingTopB" : "rowPaddingTop", Mt = st[0], Ft = st[st.length - 1], $t = tt[0], vt = tt[tt.length - 1], Ot = Mt && $t ? Math.max($t.paddingLeft, Yi) : 0, Vt = Ft && vt ? Math.max(vt.paddingRight, Yi) : 0, Lt = qe, jt = (Fe, Ke) => Yy(
25187
+ ).borderTopWidth, Rt = ae ? "rowPaddingTopB" : "rowPaddingTop", Mt = st[0], Ft = st[st.length - 1], $t = tt[0], vt = tt[tt.length - 1], Ot = Mt && $t ? Math.max($t.paddingLeft, Yi) : 0, Vt = Ft && vt ? Math.max(vt.paddingRight, Yi) : 0, Lt = qe, jt = (_e, Ke) => Yy(
25188
25188
  H,
25189
25189
  Be.current,
25190
- Q ? Fe : null,
25190
+ Q ? _e : null,
25191
25191
  Ke
25192
- ), Jt = (Fe, Ke) => {
25192
+ ), Jt = (_e, Ke) => {
25193
25193
  if (!ue) return;
25194
- const mt = Fe.image;
25194
+ const mt = _e.image;
25195
25195
  if (!(mt != null && mt.url)) {
25196
25196
  ee(() => ye(null));
25197
25197
  return;
25198
25198
  }
25199
- const xt = (W == null ? void 0 : W.min) ?? 80, Ct = (W == null ? void 0 : W.max) ?? 320, _t = (A == null ? void 0 : A.rowId) === Fe.id, St = _t ? A.widthPx : Lv(xt, Ct), { x: Kt, y: Bt } = jt(Ke, St);
25199
+ const xt = (N == null ? void 0 : N.min) ?? 80, Ct = (N == null ? void 0 : N.max) ?? 320, _t = (A == null ? void 0 : A.rowId) === _e.id, St = _t ? A.widthPx : Lv(xt, Ct), { x: Kt, y: Bt } = jt(Ke, St);
25200
25200
  if (_t && Q) {
25201
25201
  de(Kt, Bt);
25202
25202
  return;
25203
25203
  }
25204
25204
  ye({
25205
- rowId: Fe.id,
25205
+ rowId: _e.id,
25206
25206
  url: mt.url,
25207
25207
  objectFit: "contain",
25208
25208
  isVideo: jy(mt),
25209
25209
  widthPx: St
25210
25210
  }), j.current = { x: Kt, y: Bt };
25211
- }, rn = (Fe) => {
25211
+ }, rn = (_e) => {
25212
25212
  if (!ue || !A || !Q) return;
25213
- const { x: Ke, y: mt } = jt(Fe, A.widthPx);
25213
+ const { x: Ke, y: mt } = jt(_e, A.widthPx);
25214
25214
  de(Ke, mt);
25215
25215
  }, cn = () => {
25216
25216
  A && ee(() => ye(null));
25217
- }, kt = (Fe) => {
25218
- K && ec(Fe, s), !(!ue || !A) && ee(() => ye(null));
25219
- }, Gt = (Fe) => {
25220
- K && tc(Fe, s);
25217
+ }, kt = (_e) => {
25218
+ K && ec(_e, s), !(!ue || !A) && ee(() => ye(null));
25219
+ }, Gt = (_e) => {
25220
+ K && tc(_e, s);
25221
25221
  };
25222
25222
  Pt(() => {
25223
25223
  if (!A || !j.current) return;
25224
- const { x: Fe, y: Ke } = j.current;
25225
- j.current = null, we(Fe, Ke);
25224
+ const { x: _e, y: Ke } = j.current;
25225
+ j.current = null, we(_e, Ke);
25226
25226
  }, [A == null ? void 0 : A.rowId, A == null ? void 0 : A.url, we]), Pt(() => {
25227
25227
  if (!d || ae) {
25228
25228
  q(null);
25229
25229
  return;
25230
25230
  }
25231
- const Fe = Re.current, Ke = Fe == null ? void 0 : Fe.parentElement;
25232
- if (!Fe || !Ke) {
25231
+ const _e = Re.current, Ke = _e == null ? void 0 : _e.parentElement;
25232
+ if (!_e || !Ke) {
25233
25233
  q(null);
25234
25234
  return;
25235
25235
  }
25236
25236
  const mt = () => {
25237
- const Ct = Fe.querySelector("[data-list-row]");
25237
+ const Ct = _e.querySelector("[data-list-row]");
25238
25238
  if (!Ct) {
25239
25239
  q(null);
25240
25240
  return;
@@ -25244,7 +25244,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25244
25244
  };
25245
25245
  mt();
25246
25246
  const xt = new ResizeObserver(mt);
25247
- return xt.observe(Fe), xt.observe(Ke), () => xt.disconnect();
25247
+ return xt.observe(_e), xt.observe(Ke), () => xt.disconnect();
25248
25248
  }, [
25249
25249
  d,
25250
25250
  ae,
@@ -25263,8 +25263,8 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25263
25263
  Me
25264
25264
  ]);
25265
25265
  const un = Ne(
25266
- () => !ae && cl.some((Fe) => {
25267
- const Ke = Fe.charAt(0), mt = e[`${Fe}VerticalAlign`];
25266
+ () => !ae && cl.some((_e) => {
25267
+ const Ke = _e.charAt(0), mt = e[`${_e}VerticalAlign`];
25268
25268
  return du(mt, e, Ke);
25269
25269
  }),
25270
25270
  [
@@ -25279,10 +25279,10 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25279
25279
  );
25280
25280
  Pt(() => {
25281
25281
  var Kt;
25282
- const Fe = Be.current;
25283
- if (!Fe) return;
25282
+ const _e = Be.current;
25283
+ if (!_e) return;
25284
25284
  const Ke = () => {
25285
- Fe.querySelectorAll("[data-list-col]").forEach((Bt) => {
25285
+ _e.querySelectorAll("[data-list-col]").forEach((Bt) => {
25286
25286
  Bt.style.transform = "";
25287
25287
  const zt = Bt.querySelector(`.${s}-list-col`);
25288
25288
  zt && (zt.style.minHeight = "", zt.style.height = "");
@@ -25295,7 +25295,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25295
25295
  return;
25296
25296
  }
25297
25297
  const mt = () => {
25298
- const Bt = Array.from(Fe.querySelectorAll("[data-list-row]")), zt = `${s}-list-col`, Qt = `${s}-baseline-probe`;
25298
+ const Bt = Array.from(_e.querySelectorAll("[data-list-row]")), zt = `${s}-list-col`, Qt = `${s}-baseline-probe`;
25299
25299
  Bt.forEach((en) => {
25300
25300
  en.querySelectorAll("[data-list-col]").forEach((Xt) => {
25301
25301
  Xt.style.transform = "";
@@ -25307,7 +25307,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25307
25307
  }), Bt.forEach((en) => {
25308
25308
  const Xt = Array.from(en.querySelectorAll("[data-list-col]"));
25309
25309
  sv(en, Xt, zt);
25310
- }), Fe.offsetHeight, Bt.forEach((en) => {
25310
+ }), _e.offsetHeight, Bt.forEach((en) => {
25311
25311
  const Xt = Array.from(en.querySelectorAll("[data-list-col]")), Ut = en.getBoundingClientRect().top, qt = /* @__PURE__ */ new Map(), Et = Xt.map((De) => {
25312
25312
  const Ye = De.querySelector(`.${s}-list-col-title`), ft = {
25313
25313
  el: De,
@@ -25359,7 +25359,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25359
25359
  };
25360
25360
  mt();
25361
25361
  const _t = new ResizeObserver(() => Ct());
25362
- _t.observe(Fe);
25362
+ _t.observe(_e);
25363
25363
  let St = !1;
25364
25364
  return typeof document < "u" && ((Kt = document.fonts) != null && Kt.ready) && document.fonts.ready.then(() => {
25365
25365
  St || Ct();
@@ -25390,9 +25390,9 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25390
25390
  onMouseLeave: ue ? cn : void 0,
25391
25391
  children: [
25392
25392
  /* @__PURE__ */ te("div", { style: { width: "100%", position: "relative" }, children: [
25393
- ce.map((Fe, Ke) => {
25393
+ ce.map((_e, Ke) => {
25394
25394
  var _t;
25395
- const mt = (((_t = Fe.link) == null ? void 0 : _t.length) ?? 0) > 0, xt = mt && (!n || i) ? "a" : "div", Ct = nc(
25395
+ const mt = (((_t = _e.link) == null ? void 0 : _t.length) ?? 0) > 0, xt = mt && (!n || i) ? "a" : "div", Ct = nc(
25396
25396
  Ke,
25397
25397
  ce.length,
25398
25398
  he,
@@ -25408,10 +25408,10 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25408
25408
  Re.current = St;
25409
25409
  } : void 0,
25410
25410
  className: `${s}-list-item${mt || S === "always" ? ` ${s}-list-item-has-link` : ""}${Me && Ke === ce.length - 1 ? ` ${s}-list-item-before-cut` : ""}`,
25411
- ...mt ? { href: Fe.link, target: "_blank" } : {},
25411
+ ...mt ? { href: _e.link, target: "_blank" } : {},
25412
25412
  style: Ct,
25413
25413
  onMouseEnter: (St) => {
25414
- K && (mt || S === "always") && ec(St, s), ue && Jt(Fe, St);
25414
+ K && (mt || S === "always") && ec(St, s), ue && Jt(_e, St);
25415
25415
  },
25416
25416
  onMouseLeave: (St) => {
25417
25417
  K && (mt || S === "always") && tc(St, s);
@@ -25432,7 +25432,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25432
25432
  style: ae ? void 0 : { minHeight: je(ot) },
25433
25433
  children: [
25434
25434
  st.map((St, Kt) => {
25435
- const Bt = Kt === st.length - 1, zt = tt[Kt], Qt = St.paddingBottom, en = qy(Fe.cells[St.key]), Xt = ae && en && Qt > 0, Ut = ae ? { minHeight: je(ot) } : { width: je(Ue[Kt]) }, qt = ae ? {
25435
+ const Bt = Kt === st.length - 1, zt = tt[Kt], Qt = St.paddingBottom, en = qy(_e.cells[St.key]), Xt = ae && en && Qt > 0, Ut = ae ? { minHeight: je(ot) } : { width: je(Ue[Kt]) }, qt = ae ? {
25436
25436
  paddingLeft: je(J),
25437
25437
  paddingRight: je(J)
25438
25438
  } : {
@@ -25480,7 +25480,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25480
25480
  ...lc(e, St.textPrefix, s, n),
25481
25481
  ...ae ? {} : iv(F.kind)
25482
25482
  },
25483
- children: Fe.cells[St.key] ?? null
25483
+ children: _e.cells[St.key] ?? null
25484
25484
  }
25485
25485
  )
25486
25486
  }
@@ -25588,7 +25588,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25588
25588
  )
25589
25589
  ]
25590
25590
  },
25591
- Fe.id
25591
+ _e.id
25592
25592
  );
25593
25593
  }),
25594
25594
  d && /* @__PURE__ */ c("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ c(
@@ -25656,7 +25656,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25656
25656
  }
25657
25657
  )
25658
25658
  ] }, "column-edge-padding-handles"),
25659
- d && !ae && st.slice(0, -1).map((Fe, Ke) => {
25659
+ d && !ae && st.slice(0, -1).map((_e, Ke) => {
25660
25660
  const mt = st[Ke + 1], xt = He.slice(0, Ke + 1).reduce((Bt, zt) => Bt + zt, 0), Ct = tt[Ke], _t = tt[Ke + 1], St = Math.max(
25661
25661
  Ct.paddingRight,
25662
25662
  Yi
@@ -25668,7 +25668,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25668
25668
  /* @__PURE__ */ c(
25669
25669
  "div",
25670
25670
  {
25671
- "data-controls": Fe.paddingRightKey,
25671
+ "data-controls": _e.paddingRightKey,
25672
25672
  "data-controls-axis": "x",
25673
25673
  "data-controls-variant": "column-padding",
25674
25674
  "data-controls-reverse": "",
@@ -25710,9 +25710,9 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25710
25710
  }
25711
25711
  }
25712
25712
  )
25713
- ] }, `${Fe.paddingRightKey}-padding`);
25713
+ ] }, `${_e.paddingRightKey}-padding`);
25714
25714
  }),
25715
- d && !ae && st.slice(0, -1).map((Fe, Ke) => {
25715
+ d && !ae && st.slice(0, -1).map((_e, Ke) => {
25716
25716
  const mt = Tv(
25717
25717
  Ke,
25718
25718
  He,
@@ -25722,7 +25722,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25722
25722
  return /* @__PURE__ */ c("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ c(
25723
25723
  "div",
25724
25724
  {
25725
- "data-controls": Fe.widthKey,
25725
+ "data-controls": _e.widthKey,
25726
25726
  "data-controls-axis": "x",
25727
25727
  "data-controls-min": String(ul),
25728
25728
  "data-controls-max-fraction": String(mt),
@@ -25737,11 +25737,11 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25737
25737
  pointerEvents: "auto"
25738
25738
  }
25739
25739
  }
25740
- ) }, `${Fe.widthKey}-junction`);
25740
+ ) }, `${_e.widthKey}-junction`);
25741
25741
  })
25742
25742
  ] }),
25743
25743
  Me && (() => {
25744
- const Fe = ea(e, Un), Ke = ov(e.cutLabelVerticalAlign), mt = Fe.textTextAlign === "justify" || ae;
25744
+ const _e = ea(e, Un), Ke = ov(e.cutLabelVerticalAlign), mt = _e.textTextAlign === "justify" || ae;
25745
25745
  return /* @__PURE__ */ c(
25746
25746
  "button",
25747
25747
  {
@@ -25768,7 +25768,7 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25768
25768
  paddingLeft: je(J),
25769
25769
  paddingRight: je(J)
25770
25770
  } : {},
25771
- justifyContent: rv(Fe.textTextAlign),
25771
+ justifyContent: rv(_e.textTextAlign),
25772
25772
  alignItems: rc(Ke)
25773
25773
  },
25774
25774
  children: /* @__PURE__ */ c(
@@ -25781,11 +25781,11 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25781
25781
  `${s}-text-tight-leading`
25782
25782
  ),
25783
25783
  style: {
25784
- ...ac(Fe, n),
25784
+ ...ac(_e, n),
25785
25785
  ...lc(e, Un, s, n),
25786
25786
  ...mt ? { width: "100%" } : {}
25787
25787
  },
25788
- children: N
25788
+ children: W
25789
25789
  }
25790
25790
  )
25791
25791
  }
@@ -25794,10 +25794,10 @@ function Pv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25794
25794
  );
25795
25795
  })(),
25796
25796
  ue && A && (() => {
25797
- const Fe = `${A.widthPx}px`, Ke = {
25798
- width: Fe,
25797
+ const _e = `${A.widthPx}px`, Ke = {
25798
+ width: _e,
25799
25799
  height: "auto",
25800
- maxHeight: Fe,
25800
+ maxHeight: _e,
25801
25801
  objectFit: "contain"
25802
25802
  };
25803
25803
  return /* @__PURE__ */ c("div", { ref: ze, className: `${s}-hover-media-anchor`, children: /* @__PURE__ */ c(
@@ -29978,8 +29978,8 @@ function Jv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
29978
29978
  iconAnimation: w = "rotate 45",
29979
29979
  questionColor: y = "#000000",
29980
29980
  answerColor: x = "#000000",
29981
- dividerColor: N = "#0000001F",
29982
- iconColor: W = "#000000",
29981
+ dividerColor: W = "#0000001F",
29982
+ iconColor: N = "#000000",
29983
29983
  questionHoverColor: U = "#666666",
29984
29984
  iconHoverColor: H = "#666666",
29985
29985
  iconActiveColor: $ = "#000000",
@@ -30023,7 +30023,7 @@ function Jv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30023
30023
  y
30024
30024
  ),
30025
30025
  n
30026
- )), We = hn(nn(
30026
+ )), Fe = hn(nn(
30027
30027
  yc(
30028
30028
  D,
30029
30029
  oe,
@@ -30048,8 +30048,8 @@ function Jv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30048
30048
  ), it = fc(E, C, a, n), ut = fc(L, _, a, n), st = Ni(a, {
30049
30049
  questionColor: y,
30050
30050
  answerColor: x,
30051
- dividerColor: N,
30052
- iconColor: W,
30051
+ dividerColor: W,
30052
+ iconColor: N,
30053
30053
  questionHoverColor: U,
30054
30054
  iconHoverColor: H,
30055
30055
  iconActiveColor: $,
@@ -30292,7 +30292,7 @@ function Jv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30292
30292
  {
30293
30293
  className: `${a}-answer`,
30294
30294
  style: {
30295
- ...We,
30295
+ ...Fe,
30296
30296
  ...ut,
30297
30297
  paddingLeft: ae(ue),
30298
30298
  paddingRight: ae(Q)
@@ -31671,9 +31671,9 @@ const vc = {
31671
31671
  return;
31672
31672
  }
31673
31673
  S.clientY - I.startY >= u ? v() : h();
31674
- }, [u, v, e, g, h]), N = Se((S) => {
31674
+ }, [u, v, e, g, h]), W = Se((S) => {
31675
31675
  x(S);
31676
- }, [x]), W = Se((S) => {
31676
+ }, [x]), N = Se((S) => {
31677
31677
  x(S);
31678
31678
  }, [x]), U = o > 0, H = a ? `transform ${n}ms ease` : "none", $ = a ? `opacity ${n}ms ease` : "none", B = o > 0 || a;
31679
31679
  return {
@@ -31695,8 +31695,8 @@ const vc = {
31695
31695
  swipeHandlers: e ? {
31696
31696
  onPointerDown: w,
31697
31697
  onPointerMove: y,
31698
- onPointerUp: N,
31699
- onPointerCancel: W
31698
+ onPointerUp: W,
31699
+ onPointerCancel: N
31700
31700
  } : {},
31701
31701
  dismissAreaStyle: e ? {
31702
31702
  touchAction: U ? "none" : "pan-x"
@@ -31913,8 +31913,8 @@ const vc = {
31913
31913
  thumbnailVisibility: w,
31914
31914
  thumbnailObjectFit: y,
31915
31915
  thumbnailActive: x,
31916
- thumbnailActiveColor: N,
31917
- title1Width: W,
31916
+ thumbnailActiveColor: W,
31917
+ title1Width: N,
31918
31918
  title2Width: U,
31919
31919
  title3Width: H,
31920
31920
  title1MarginLeft: $ = 0,
@@ -31929,7 +31929,7 @@ const vc = {
31929
31929
  const ue = t[A], { title1: Q, title2: $e, title3: ze } = $0(ue), we = qa("title1", Ga(n, "title1"), i), de = qa("title2", Ga(n, "title2"), i), ee = qa("title3", Ga(n, "title3"), i), me = E === "mobile", ae = !o && (!i || r), Be = ae, Re = ae, P = ae, q = Yn(y), G = q ? { "--image-aspect-ratio": xa(y) } : void 0, re = !!(Q || $e || ze), O = Ne(
31930
31930
  () => L0(e, Q, $e, ze, we, de, ee),
31931
31931
  [e, A, Q, $e, ze, we, de, ee]
31932
- ), z = Ne(() => ({ title1Width: W, title2Width: U, title3Width: H }), [W, U, H]), J = Ne(() => O.map((T) => z[T.widthKey]), [O, z]), ne = Ne(() => ml(O.length, J), [O.length, J]), Ie = Ne(() => vu(O.length, J), [O.length, J]), be = Ne(() => O.filter((T) => T.prefix === "title1"), [O]), k = Ne(() => O.filter((T) => T.prefix === "title2" || T.prefix === "title3"), [O]), xe = Ne(() => wc(be, z), [be, z]), ge = Ne(() => wc(k, z), [k, z]), K = Se((T, se) => {
31932
+ ), z = Ne(() => ({ title1Width: N, title2Width: U, title3Width: H }), [N, U, H]), J = Ne(() => O.map((T) => z[T.widthKey]), [O, z]), ne = Ne(() => ml(O.length, J), [O.length, J]), Ie = Ne(() => vu(O.length, J), [O.length, J]), be = Ne(() => O.filter((T) => T.prefix === "title1"), [O]), k = Ne(() => O.filter((T) => T.prefix === "title2" || T.prefix === "title3"), [O]), xe = Ne(() => wc(be, z), [be, z]), ge = Ne(() => wc(k, z), [k, z]), K = Se((T, se) => {
31933
31933
  const ve = O.indexOf(T);
31934
31934
  if (!me || se === "single-row")
31935
31935
  return {
@@ -31945,11 +31945,11 @@ const vc = {
31945
31945
  maxWidth: Ir(Je, xe.resolved)
31946
31946
  };
31947
31947
  }
31948
- const _e = k.indexOf(T);
31948
+ const We = k.indexOf(T);
31949
31949
  return {
31950
- effectiveWidth: ge.effective[_e] ?? 0,
31951
- resolvedWidth: ge.resolved[_e] ?? 0,
31952
- maxWidth: Ir(_e, ge.resolved)
31950
+ effectiveWidth: ge.effective[We] ?? 0,
31951
+ resolvedWidth: ge.resolved[We] ?? 0,
31952
+ maxWidth: Ir(We, ge.resolved)
31953
31953
  };
31954
31954
  }, [
31955
31955
  k,
@@ -31972,16 +31972,16 @@ const vc = {
31972
31972
  [$, B, S]
31973
31973
  ), V = Se(
31974
31974
  (T) => O.slice(0, T + 1).reduce(
31975
- (se, ve, _e) => se + (ve != null && ve.marginLeftKey ? fe[ve.marginLeftKey] ?? 0 : 0) + (ne[_e] ?? 0),
31975
+ (se, ve, We) => se + (ve != null && ve.marginLeftKey ? fe[ve.marginLeftKey] ?? 0 : 0) + (ne[We] ?? 0),
31976
31976
  0
31977
31977
  ) + (me ? 0 : $ ?? 0),
31978
31978
  [O, fe, ne, me, $]
31979
- ), We = Se(
31979
+ ), Fe = Se(
31980
31980
  () => me ? 0 : $ ?? 0,
31981
31981
  [me, $]
31982
31982
  ), Oe = Se(
31983
31983
  (T) => k.slice(0, T).reduce(
31984
- (se, ve, _e) => se + (ve.marginLeftKey ? fe[ve.marginLeftKey] ?? 0 : 0) + (ge.resolved[_e] ?? 0),
31984
+ (se, ve, We) => se + (ve.marginLeftKey ? fe[ve.marginLeftKey] ?? 0 : 0) + (ge.resolved[We] ?? 0),
31985
31985
  0
31986
31986
  ),
31987
31987
  [k, ge.resolved, fe]
@@ -31992,7 +31992,7 @@ const vc = {
31992
31992
  },
31993
31993
  [k, ge.resolved, Oe, fe]
31994
31994
  ), it = (T, se) => {
31995
- const ve = T.marginLeftKey ? fe[T.marginLeftKey] ?? 0 : 0, { effectiveWidth: _e, resolvedWidth: Je, maxWidth: ct } = K(T, se), It = o && se === "two-row-top";
31995
+ const ve = T.marginLeftKey ? fe[T.marginLeftKey] ?? 0 : 0, { effectiveWidth: We, resolvedWidth: Je, maxWidth: ct } = K(T, se), It = o && se === "two-row-top";
31996
31996
  return /* @__PURE__ */ te(
31997
31997
  "div",
31998
31998
  {
@@ -32000,7 +32000,7 @@ const vc = {
32000
32000
  "data-title": T.prefix,
32001
32001
  style: {
32002
32002
  ...se === "single-row" ? { gridArea: T.prefix } : {},
32003
- width: he(_e),
32003
+ width: he(We),
32004
32004
  ...ve > 0 ? { marginLeft: he(ve) } : {}
32005
32005
  },
32006
32006
  children: [
@@ -32045,8 +32045,8 @@ const vc = {
32045
32045
  T.className
32046
32046
  );
32047
32047
  }, ut = () => {
32048
- const T = me ? -1 : O.findIndex((_e) => _e.prefix === "title1"), se = !me && (o || ($ ?? 0) > 0) ? (() => {
32049
- const _e = $ ?? 0, Je = T >= 0 ? ne[T] : W ?? 0;
32048
+ const T = me ? -1 : O.findIndex((We) => We.prefix === "title1"), se = !me && (o || ($ ?? 0) > 0) ? (() => {
32049
+ const We = $ ?? 0, Je = T >= 0 ? ne[T] : N ?? 0;
32050
32050
  return /* @__PURE__ */ c(
32051
32051
  "div",
32052
32052
  {
@@ -32058,25 +32058,25 @@ const vc = {
32058
32058
  position: "absolute",
32059
32059
  top: 0,
32060
32060
  left: 0,
32061
- width: `max(${he(_e)}, 10px)`,
32061
+ width: `max(${he(We)}, 10px)`,
32062
32062
  height: "100%",
32063
32063
  pointerEvents: "auto"
32064
32064
  }
32065
32065
  },
32066
32066
  "title1MarginLeft"
32067
32067
  );
32068
- })() : null, ve = O.flatMap((_e, Je) => {
32069
- if (!_e.marginLeftKey) return [];
32070
- const ct = fe[_e.marginLeftKey] ?? 0, It = I0(
32068
+ })() : null, ve = O.flatMap((We, Je) => {
32069
+ if (!We.marginLeftKey) return [];
32070
+ const ct = fe[We.marginLeftKey] ?? 0, It = I0(
32071
32071
  O,
32072
32072
  ne,
32073
32073
  fe,
32074
32074
  Je
32075
- ) + We();
32075
+ ) + Fe();
32076
32076
  return /* @__PURE__ */ c(
32077
32077
  "div",
32078
32078
  {
32079
- "data-controls": _e.marginLeftKey,
32079
+ "data-controls": We.marginLeftKey,
32080
32080
  "data-controls-axis": "x",
32081
32081
  "data-controls-min": "0",
32082
32082
  "data-controls-max-fraction": String(ne[Je]),
@@ -32089,7 +32089,7 @@ const vc = {
32089
32089
  pointerEvents: "auto"
32090
32090
  }
32091
32091
  },
32092
- _e.marginLeftKey
32092
+ We.marginLeftKey
32093
32093
  );
32094
32094
  });
32095
32095
  return se ? [se, ...ve] : ve;
@@ -32118,7 +32118,7 @@ const vc = {
32118
32118
  ) }, `${T.widthKey}-junction`);
32119
32119
  }), qe = () => k.flatMap((T, se) => {
32120
32120
  if (!T.marginLeftKey) return [];
32121
- const ve = fe[T.marginLeftKey] ?? 0, _e = Oe(se), { resolvedWidth: Je } = K(T, "two-row-bottom");
32121
+ const ve = fe[T.marginLeftKey] ?? 0, We = Oe(se), { resolvedWidth: Je } = K(T, "two-row-bottom");
32122
32122
  return /* @__PURE__ */ c(
32123
32123
  "div",
32124
32124
  {
@@ -32129,7 +32129,7 @@ const vc = {
32129
32129
  style: {
32130
32130
  position: "absolute",
32131
32131
  top: 0,
32132
- left: he(_e),
32132
+ left: he(We),
32133
32133
  width: `max(${he(ve)}, 10px)`,
32134
32134
  height: "100%",
32135
32135
  pointerEvents: "auto"
@@ -32170,7 +32170,7 @@ const vc = {
32170
32170
  Be && (Lt(!0), Gt.current && clearTimeout(Gt.current), Gt.current = setTimeout(() => {
32171
32171
  Ce.current.isActive || Lt(!1);
32172
32172
  }, p0));
32173
- }, [Be]), Fe = Se(() => {
32173
+ }, [Be]), _e = Se(() => {
32174
32174
  o || cn.current || (cn.current = !0, Ot(!1), kt.current = setTimeout(() => {
32175
32175
  a();
32176
32176
  }, zo));
@@ -32191,7 +32191,7 @@ const vc = {
32191
32191
  {
32192
32192
  type: "button",
32193
32193
  className: `${e}-close-icon-inner`,
32194
- onClick: Fe,
32194
+ onClick: _e,
32195
32195
  "aria-label": "Close",
32196
32196
  children: /* @__PURE__ */ c(
32197
32197
  fn,
@@ -32238,7 +32238,7 @@ const vc = {
32238
32238
  }
32239
32239
  }
32240
32240
  ), xt = () => {
32241
- const T = O.find((_e) => _e.prefix === "title1"), se = O.filter((_e) => _e.prefix === "title2" || _e.prefix === "title3"), ve = se.length > 0 || o || (I ?? 0) > 0;
32241
+ const T = O.find((We) => We.prefix === "title1"), se = O.filter((We) => We.prefix === "title2" || We.prefix === "title3"), ve = se.length > 0 || o || (I ?? 0) > 0;
32242
32242
  return /* @__PURE__ */ te(pt, { children: [
32243
32243
  /* @__PURE__ */ te("div", { className: `${e}-header-row-top`, children: [
32244
32244
  ($ ?? 0) > 0 || o ? mt() : null,
@@ -32247,7 +32247,7 @@ const vc = {
32247
32247
  ] }),
32248
32248
  ve ? /* @__PURE__ */ te("div", { className: `${e}-header-row-bottom-wrap`, children: [
32249
32249
  se.length > 0 ? /* @__PURE__ */ te("div", { className: `${e}-header-row-bottom`, children: [
32250
- se.map((_e) => it(_e, "two-row-bottom")),
32250
+ se.map((We) => it(We, "two-row-bottom")),
32251
32251
  o && /* @__PURE__ */ te(pt, { children: [
32252
32252
  qe(),
32253
32253
  Le()
@@ -32287,7 +32287,7 @@ const vc = {
32287
32287
  dismissAreaStyle: en
32288
32288
  } = fu({
32289
32289
  enabled: ae ?? !1,
32290
- onClose: Fe,
32290
+ onClose: _e,
32291
32291
  animMs: zo,
32292
32292
  isBlockedTarget: _t
32293
32293
  }), Xt = () => {
@@ -32303,32 +32303,32 @@ const vc = {
32303
32303
  !se || ve <= 0 || ve < se.clientWidth * 0.25 || (se.scrollLeft <= 0 ? (se.scrollLeft += ve, T && (Ce.current.scrollLeft += ve), lt.current && (Ve.current += ve)) : se.scrollLeft >= ve * 2 && (se.scrollLeft -= ve, T && (Ce.current.scrollLeft -= ve), lt.current && (Ve.current -= ve)));
32304
32304
  }, qt = (T, se = ((ve) => (ve = Ue.current) == null ? void 0 : ve.scrollLeft)() ?? 0) => {
32305
32305
  if (!at) return T;
32306
- let _e = t.length + T, Je = 1 / 0;
32306
+ let We = t.length + T, Je = 1 / 0;
32307
32307
  for (let ct = 0; ct < Rt; ct++) {
32308
32308
  const It = ct * t.length + T, Nt = ce.current[It];
32309
32309
  if (!Nt) continue;
32310
32310
  const dn = Math.abs(Nt.offsetLeft - se);
32311
- dn < Je && (Je = dn, _e = It);
32311
+ dn < Je && (Je = dn, We = It);
32312
32312
  }
32313
- return _e;
32313
+ return We;
32314
32314
  }, Et = (T) => {
32315
32315
  const se = Ue.current;
32316
32316
  return !T || !se ? !1 : T.offsetWidth > se.clientWidth + 1;
32317
32317
  }, F = (T) => {
32318
32318
  const se = Ue.current;
32319
32319
  if (!T || !se || !Et(T)) return !1;
32320
- const ve = T.offsetLeft, _e = ve + T.offsetWidth;
32321
- return se.scrollLeft >= ve - 1 && se.scrollLeft + se.clientWidth <= _e + 1;
32320
+ const ve = T.offsetLeft, We = ve + T.offsetWidth;
32321
+ return se.scrollLeft >= ve - 1 && se.scrollLeft + se.clientWidth <= We + 1;
32322
32322
  }, Ae = (T = ((se) => (se = Ue.current) == null ? void 0 : se.scrollLeft)() ?? 0) => {
32323
- for (let _e = 0; _e < ce.current.length; _e += 1) {
32324
- const Je = ce.current[_e];
32323
+ for (let We = 0; We < ce.current.length; We += 1) {
32324
+ const Je = ce.current[We];
32325
32325
  if (Je && F(Je))
32326
- return _e;
32326
+ return We;
32327
32327
  }
32328
32328
  let ve = { flatIndex: 0, distance: 1 / 0 };
32329
- return ce.current.forEach((_e, Je) => {
32330
- if (!_e) return;
32331
- const ct = Math.abs(_e.offsetLeft - T);
32329
+ return ce.current.forEach((We, Je) => {
32330
+ if (!We) return;
32331
+ const ct = Math.abs(We.offsetLeft - T);
32332
32332
  ct < ve.distance && (ve = { flatIndex: Je, distance: ct });
32333
32333
  }), ve.flatIndex;
32334
32334
  }, De = (T) => {
@@ -32336,21 +32336,21 @@ const vc = {
32336
32336
  se && (se.style.scrollSnapAlign = Et(se) && T === "backward" ? "end" : "start");
32337
32337
  });
32338
32338
  }, Ye = (T, se, ve) => {
32339
- const _e = T - se, Je = Ae(se), ct = ce.current[Je];
32339
+ const We = T - se, Je = Ae(se), ct = ce.current[Je];
32340
32340
  if (F(ct))
32341
32341
  return Ae(T) % t.length;
32342
- const It = ce.current[Je + 1], Nt = ct ? It ? It.offsetLeft - ct.offsetLeft : ct.offsetWidth : 0, dn = Nt > 0 ? _e > Nt * Tr ? 1 : _e < -Nt * Tr ? -1 : 0 : 0;
32342
+ const It = ce.current[Je + 1], Nt = ct ? It ? It.offsetLeft - ct.offsetLeft : ct.offsetWidth : 0, dn = Nt > 0 ? We > Nt * Tr ? 1 : We < -Nt * Tr ? -1 : 0 : 0;
32343
32343
  return dn === 0 ? ve : at ? (ve + dn + t.length) % t.length : Math.max(0, Math.min(t.length - 1, ve + dn));
32344
32344
  }, ft = Se((T = !1) => {
32345
32345
  if (w !== "on" || o) return;
32346
- const se = Ee.current, ve = j.current, _e = Xe.current[ve];
32347
- if (!se || !_e || se.scrollWidth <= se.clientWidth) return;
32348
- const Je = se.scrollLeft, ct = Je + se.clientWidth, It = _e.offsetLeft, Nt = It + _e.offsetWidth;
32346
+ const se = Ee.current, ve = j.current, We = Xe.current[ve];
32347
+ if (!se || !We || se.scrollWidth <= se.clientWidth) return;
32348
+ const Je = se.scrollLeft, ct = Je + se.clientWidth, It = We.offsetLeft, Nt = It + We.offsetWidth;
32349
32349
  if (It >= Je && Nt <= ct) return;
32350
32350
  const dn = se.scrollWidth - se.clientWidth;
32351
32351
  let an = Je;
32352
32352
  if (!T && jt.current === null) {
32353
- const Di = Xe.current[ve - 1], Io = Xe.current[ve + 1], hr = Di ? _e.offsetLeft - Di.offsetLeft : Io ? Io.offsetLeft - _e.offsetLeft : _e.offsetWidth;
32353
+ const Di = Xe.current[ve - 1], Io = Xe.current[ve + 1], hr = Di ? We.offsetLeft - Di.offsetLeft : Io ? Io.offsetLeft - We.offsetLeft : We.offsetWidth;
32354
32354
  Nt > ct ? an += hr : It < Je && (an -= hr);
32355
32355
  } else Nt > ct ? an = Nt - se.clientWidth : an = It;
32356
32356
  se.scrollLeft = Math.max(0, Math.min(dn, an));
@@ -32364,8 +32364,8 @@ const vc = {
32364
32364
  if (T === j.current) return;
32365
32365
  const se = j.current;
32366
32366
  j.current = T;
32367
- const ve = Math.abs(T - se) > 1, _e = at && t.length > 1 && (se === t.length - 1 && T === 0 || se === 0 && T === t.length - 1);
32368
- ye(T), Dt(ve || _e);
32367
+ const ve = Math.abs(T - se) > 1, We = at && t.length > 1 && (se === t.length - 1 && T === 0 || se === 0 && T === t.length - 1);
32368
+ ye(T), Dt(ve || We);
32369
32369
  }, [t.length, at, Dt]), Tt = () => {
32370
32370
  if (!Ue.current || t.length === 0 || jt.current !== null || Ce.current.isActive && Ce.current.hasMoved) return;
32371
32371
  const T = Ue.current.scrollLeft, se = Ae(T) % t.length;
@@ -32395,13 +32395,13 @@ const vc = {
32395
32395
  }, bi = () => {
32396
32396
  const T = tt.current;
32397
32397
  T && (T.style.transition = "", T.style.transform = "", T.style.willChange = "");
32398
- }, ur = (T, se, ve, _e) => {
32399
- bi(), T.scrollLeft = se, je.current = T.scrollLeft, Ut(), ve !== void 0 ? (j.current = ve, ye(ve)) : Tt(), Wt(!0), _e == null || _e();
32400
- }, pr = (T, { behavior: se = "smooth", activeIndex: ve, onComplete: _e } = {}) => {
32398
+ }, ur = (T, se, ve, We) => {
32399
+ bi(), T.scrollLeft = se, je.current = T.scrollLeft, Ut(), ve !== void 0 ? (j.current = ve, ye(ve)) : Tt(), Wt(!0), We == null || We();
32400
+ }, pr = (T, { behavior: se = "smooth", activeIndex: ve, onComplete: We } = {}) => {
32401
32401
  const Je = Ue.current, ct = tt.current;
32402
32402
  if (!Je || !ct) return;
32403
32403
  if (xn(), pn(), Wt(!1), se === "auto") {
32404
- ur(Je, T, ve, _e);
32404
+ ur(Je, T, ve, We);
32405
32405
  return;
32406
32406
  }
32407
32407
  const It = Math.abs(T - Je.scrollLeft), Nt = r0(
@@ -32414,18 +32414,18 @@ const vc = {
32414
32414
  duration: Nt,
32415
32415
  easing: u0,
32416
32416
  onComplete: () => {
32417
- nt.current = null, ur(Je, T, ve, _e);
32417
+ nt.current = null, ur(Je, T, ve, We);
32418
32418
  }
32419
32419
  });
32420
32420
  }, Sa = (T = "smooth") => {
32421
32421
  const se = Ue.current;
32422
32422
  if (!se || t.length === 0) return;
32423
- const ve = Ae() % t.length, _e = qt(ve, se.scrollLeft), Je = ce.current[_e];
32423
+ const ve = Ae() % t.length, We = qt(ve, se.scrollLeft), Je = ce.current[We];
32424
32424
  Je && pr(Je.offsetLeft, { behavior: T, activeIndex: ve });
32425
- }, $a = (T, se = "smooth", ve, _e) => {
32425
+ }, $a = (T, se = "smooth", ve, We) => {
32426
32426
  const Je = Ue.current;
32427
32427
  if (!Je || t.length === 0) return;
32428
- const ct = (_e ?? Je.scrollLeft) - T, It = Ae(T), Nt = ce.current[It];
32428
+ const ct = (We ?? Je.scrollLeft) - T, It = Ae(T), Nt = ce.current[It];
32429
32429
  if (F(Nt)) {
32430
32430
  Wt(!0), Tt();
32431
32431
  return;
@@ -32433,14 +32433,14 @@ const vc = {
32433
32433
  const dn = ce.current[It + 1], an = Nt ? dn ? dn.offsetLeft - Nt.offsetLeft : Nt.offsetWidth : 0;
32434
32434
  if ((an > 0 ? ct > an * Tr ? 1 : ct < -an * Tr ? -1 : 0 : 0) !== 0) {
32435
32435
  const qu = ve ?? It % t.length, Xu = Ye(
32436
- _e ?? Je.scrollLeft,
32436
+ We ?? Je.scrollLeft,
32437
32437
  T,
32438
32438
  qu
32439
32439
  );
32440
32440
  kn(Xu, se);
32441
32441
  return;
32442
32442
  }
32443
- const Io = _e ?? Je.scrollLeft, hr = Ae(Io), yl = ce.current[hr];
32443
+ const Io = We ?? Je.scrollLeft, hr = Ae(Io), yl = ce.current[hr];
32444
32444
  if (yl && Math.abs(yl.offsetLeft - Io) < 1) {
32445
32445
  Wt(!0), Tt();
32446
32446
  return;
@@ -32449,7 +32449,7 @@ const vc = {
32449
32449
  }, kn = (T, se = "smooth") => {
32450
32450
  const ve = Ue.current;
32451
32451
  if (!ve || t.length === 0) return;
32452
- const _e = qt(T, ve.scrollLeft), Je = ce.current[_e];
32452
+ const We = qt(T, ve.scrollLeft), Je = ce.current[We];
32453
32453
  Je && (se === "smooth" ? jt.current = T : jt.current = null, j.current = T, ye(T), Dt(!0), pr(Je.offsetLeft, {
32454
32454
  behavior: se,
32455
32455
  activeIndex: T,
@@ -32457,8 +32457,8 @@ const vc = {
32457
32457
  }));
32458
32458
  }, Oi = () => {
32459
32459
  Pe.current && (window.removeEventListener("pointerup", Pe.current), window.removeEventListener("pointercancel", Pe.current), Pe.current = null);
32460
- }, mr = (T, se, ve, _e, Je) => {
32461
- const ct = ve - T, It = _e - se, Nt = Math.abs(ct), dn = Math.abs(It);
32460
+ }, mr = (T, se, ve, We, Je) => {
32461
+ const ct = ve - T, It = We - se, Nt = Math.abs(ct), dn = Math.abs(It);
32462
32462
  if (Nt < y0 || Nt <= dn) return !1;
32463
32463
  const an = ct < 0 ? 1 : -1, Di = at ? (Je + an + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Je + an));
32464
32464
  return Di === Je ? !1 : (kn(Di), !0);
@@ -32467,14 +32467,14 @@ const vc = {
32467
32467
  Oi();
32468
32468
  const se = Ue.current;
32469
32469
  if (!se) return;
32470
- const { scrollLeft: ve, startActiveIndex: _e, hasMoved: Je } = Ce.current, ct = se.scrollLeft;
32470
+ const { scrollLeft: ve, startActiveIndex: We, hasMoved: Je } = Ce.current, ct = se.scrollLeft;
32471
32471
  Ut(!0), Ce.current = {
32472
32472
  isActive: !1,
32473
32473
  startX: 0,
32474
32474
  scrollLeft: 0,
32475
32475
  startActiveIndex: 0,
32476
32476
  hasMoved: !1
32477
- }, $t(!1), T !== void 0 && se.hasPointerCapture(T) && se.releasePointerCapture(T), Je ? $a(ve, "smooth", _e, ct) : (Wt(!0), Tt()), yt();
32477
+ }, $t(!1), T !== void 0 && se.hasPointerCapture(T) && se.releasePointerCapture(T), Je ? $a(ve, "smooth", We, ct) : (Wt(!0), Tt()), yt();
32478
32478
  }, gr = (T, se) => {
32479
32479
  const ve = Ze.current;
32480
32480
  Ze.current = null, ve && (mr(
@@ -32505,8 +32505,8 @@ const vc = {
32505
32505
  startActiveIndex: j.current,
32506
32506
  hasMoved: !1
32507
32507
  }, Wt(!1), yt(), se.setPointerCapture(T.pointerId), Oi();
32508
- const ve = (_e) => {
32509
- _e.pointerType === "mouse" && xi(_e.pointerId);
32508
+ const ve = (We) => {
32509
+ We.pointerType === "mouse" && xi(We.pointerId);
32510
32510
  };
32511
32511
  Pe.current = ve, window.addEventListener("pointerup", ve), window.addEventListener("pointercancel", ve);
32512
32512
  }, Ta = (T) => {
@@ -32547,10 +32547,10 @@ const vc = {
32547
32547
  };
32548
32548
  }, [Be, yt]), ke(() => {
32549
32549
  const T = (se) => {
32550
- se.key === "Escape" && Fe();
32550
+ se.key === "Escape" && _e();
32551
32551
  };
32552
32552
  return window.addEventListener("keydown", T), () => window.removeEventListener("keydown", T);
32553
- }, [Fe]), Pt(() => {
32553
+ }, [_e]), Pt(() => {
32554
32554
  Xt();
32555
32555
  }, [_, t.length, at]), Pt(() => {
32556
32556
  o || kn(j.current, "auto");
@@ -32561,7 +32561,7 @@ const vc = {
32561
32561
  if (!T || o || !ae) return;
32562
32562
  const se = (ve) => {
32563
32563
  if (ve.preventDefault(), Math.abs(ve.deltaY) <= Math.abs(ve.deltaX)) return;
32564
- const _e = ve.deltaMode === 1 ? g0 : ve.deltaMode === 2 ? T.clientHeight : 1, Je = ve.deltaY * _e * m0;
32564
+ const We = ve.deltaMode === 1 ? g0 : ve.deltaMode === 2 ? T.clientHeight : 1, Je = ve.deltaY * We * m0;
32565
32565
  if (Je !== 0) {
32566
32566
  if (pn(), lt.current || (lt.current = !0, Ve.current = T.scrollLeft, jt.current = null, Wt(!1)), Ve.current += Je, !at) {
32567
32567
  const ct = T.scrollWidth - T.clientWidth;
@@ -32578,8 +32578,8 @@ const vc = {
32578
32578
  if (!T) return;
32579
32579
  const se = () => {
32580
32580
  Ut(Ce.current.isActive);
32581
- const _e = T.scrollLeft, Je = _e - je.current;
32582
- je.current = _e;
32581
+ const We = T.scrollLeft, Je = We - je.current;
32582
+ je.current = We;
32583
32583
  const ct = Me.current > 0 ? Me.current * 0.5 : 1 / 0;
32584
32584
  if (Je !== 0 && Math.abs(Je) < ct) {
32585
32585
  const It = Je > 0 ? "forward" : "backward";
@@ -32600,7 +32600,7 @@ const vc = {
32600
32600
  "data-selection": "none",
32601
32601
  className: `${e}-lightbox${i ? ` ${e}-lightbox-editor` : ""}${o ? ` ${e}-lightbox-edit-mode` : ""}`,
32602
32602
  onClick: () => {
32603
- St || Fe();
32603
+ St || _e();
32604
32604
  },
32605
32605
  role: "dialog",
32606
32606
  "aria-modal": "true",
@@ -32634,7 +32634,7 @@ const vc = {
32634
32634
  onPointerCancel: Te,
32635
32635
  onLostPointerCapture: et,
32636
32636
  children: /* @__PURE__ */ c("div", { ref: tt, className: `${e}-lightbox-strip-track`, style: { gap: _ }, children: Mt.map((T, se) => {
32637
- const ve = T.image.objectFit ?? "contain", _e = se % t.length, Je = Math.floor(se / t.length), ct = Lr(_), It = `calc(-0.5 * (${ct} + ${_}))`;
32637
+ const ve = T.image.objectFit ?? "contain", We = se % t.length, Je = Math.floor(se / t.length), ct = Lr(_), It = `calc(-0.5 * (${ct} + ${_}))`;
32638
32638
  return /* @__PURE__ */ te(
32639
32639
  "div",
32640
32640
  {
@@ -32655,7 +32655,7 @@ const vc = {
32655
32655
  }
32656
32656
  }
32657
32657
  ),
32658
- o && _e < t.length - 1 && Je === 0 && /* @__PURE__ */ c(
32658
+ o && We < t.length - 1 && Je === 0 && /* @__PURE__ */ c(
32659
32659
  "div",
32660
32660
  {
32661
32661
  "data-controls": "imageGap",
@@ -32673,7 +32673,7 @@ const vc = {
32673
32673
  )
32674
32674
  ]
32675
32675
  },
32676
- `${Je}-${T.image.url}-${_e}`
32676
+ `${Je}-${T.image.url}-${We}`
32677
32677
  );
32678
32678
  }) })
32679
32679
  }
@@ -32739,16 +32739,16 @@ const vc = {
32739
32739
  "data-thumbnail-active": x,
32740
32740
  style: {
32741
32741
  gap: oe,
32742
- "--thumbnail-active-color": N
32742
+ "--thumbnail-active-color": W
32743
32743
  },
32744
32744
  children: [
32745
- t.map((ve, _e) => {
32745
+ t.map((ve, We) => {
32746
32746
  const Je = Lr(oe), ct = `calc(-0.5 * (${Je} + ${oe}))`;
32747
32747
  return /* @__PURE__ */ te(
32748
32748
  "div",
32749
32749
  {
32750
32750
  ref: (It) => {
32751
- Xe.current[_e] = It;
32751
+ Xe.current[We] = It;
32752
32752
  },
32753
32753
  style: { position: "relative", flex: "0 0 auto" },
32754
32754
  children: [
@@ -32757,11 +32757,11 @@ const vc = {
32757
32757
  {
32758
32758
  type: "button",
32759
32759
  className: `${e}-thumb`,
32760
- "data-active": A === _e ? "true" : "false",
32761
- onClick: () => ae && v === "click" && kn(_e),
32762
- onMouseEnter: () => P && v === "hover" && kn(_e),
32763
- "aria-label": ve.image.name ? `View ${ve.image.name}` : `View image ${_e + 1}`,
32764
- "aria-current": A === _e ? "true" : void 0,
32760
+ "data-active": A === We ? "true" : "false",
32761
+ onClick: () => ae && v === "click" && kn(We),
32762
+ onMouseEnter: () => P && v === "hover" && kn(We),
32763
+ "aria-label": ve.image.name ? `View ${ve.image.name}` : `View image ${We + 1}`,
32764
+ "aria-current": A === We ? "true" : void 0,
32765
32765
  children: /* @__PURE__ */ c(
32766
32766
  "img",
32767
32767
  {
@@ -32781,7 +32781,7 @@ const vc = {
32781
32781
  )
32782
32782
  }
32783
32783
  ),
32784
- o && _e < t.length - 1 && /* @__PURE__ */ c(
32784
+ o && We < t.length - 1 && /* @__PURE__ */ c(
32785
32785
  "div",
32786
32786
  {
32787
32787
  "data-controls": "thumbnailGap",
@@ -32799,7 +32799,7 @@ const vc = {
32799
32799
  )
32800
32800
  ]
32801
32801
  },
32802
- `thumb-${ve.image.url}-${_e}`
32802
+ `thumb-${ve.image.url}-${We}`
32803
32803
  );
32804
32804
  }),
32805
32805
  o && /* @__PURE__ */ c(
@@ -34483,8 +34483,8 @@ const W0 = T0(), N0 = {
34483
34483
  textTransition: w,
34484
34484
  title1Width: y,
34485
34485
  title2Width: x,
34486
- title3Width: N,
34487
- title1MarginLeft: W = 0,
34486
+ title3Width: W,
34487
+ title1MarginLeft: N = 0,
34488
34488
  title2MarginLeft: U = 0,
34489
34489
  title3MarginLeft: H = 0,
34490
34490
  titleRowMarginBottom: $ = 0,
@@ -34496,7 +34496,7 @@ const W0 = T0(), N0 = {
34496
34496
  closeIconHoverColor: p,
34497
34497
  contentMarginTop: M = 0,
34498
34498
  iconMarginRight: R = 0
34499
- } = n, D = Se((Te) => Z(Te, i ?? !1), [i]), oe = D(g ?? 0), L = `${h}%`, _ = `${v}%`, Y = D(S), le = D(M), pe = D(R), A = Mi("title1", Pi(n, "title1"), i), ye = Mi("title2", Pi(n, "title2"), i), j = Mi("title3", Pi(n, "title3"), i), ue = Mi("count", Pi(n, "count"), i), Q = B === "mobile", $e = !i || !!r, ze = !o && (!i || !!r), we = Ne(() => Vr(t, b), [t, b]), [de, ee] = ie(a), me = we[de], ae = me == null ? void 0 : me.entry, [Be, Re] = ie(!1), [P, q] = ie(null), [G, re] = ie(!1), [O, z] = ie(null), [J, ne] = ie(!1), [Ie, be] = ie(0), [k, xe] = ie(), [ge, K] = ie(), [he, Ge] = ie(null), fe = X(null), V = X(0), We = X(0), Oe = X(0), dt = X(!1), it = X(null), ut = X(null), st = X(null), qe = X(null), Le = X(null), He = X(null), Ue = X(null), tt = Se(() => {
34499
+ } = n, D = Se((Te) => Z(Te, i ?? !1), [i]), oe = D(g ?? 0), L = `${h}%`, _ = `${v}%`, Y = D(S), le = D(M), pe = D(R), A = Mi("title1", Pi(n, "title1"), i), ye = Mi("title2", Pi(n, "title2"), i), j = Mi("title3", Pi(n, "title3"), i), ue = Mi("count", Pi(n, "count"), i), Q = B === "mobile", $e = !i || !!r, ze = !o && (!i || !!r), we = Ne(() => Vr(t, b), [t, b]), [de, ee] = ie(a), me = we[de], ae = me == null ? void 0 : me.entry, [Be, Re] = ie(!1), [P, q] = ie(null), [G, re] = ie(!1), [O, z] = ie(null), [J, ne] = ie(!1), [Ie, be] = ie(0), [k, xe] = ie(), [ge, K] = ie(), [he, Ge] = ie(null), fe = X(null), V = X(0), Fe = X(0), Oe = X(0), dt = X(!1), it = X(null), ut = X(null), st = X(null), qe = X(null), Le = X(null), He = X(null), Ue = X(null), tt = Se(() => {
34500
34500
  const Te = ut.current;
34501
34501
  if (!Te) return;
34502
34502
  const et = Te.closest(`.${e}-lightbox-content-area`);
@@ -34534,7 +34534,7 @@ const W0 = T0(), N0 = {
34534
34534
  if (et === de) return;
34535
34535
  const T = we[de], se = we[et];
34536
34536
  V.current += 1;
34537
- const ve = V.current, _e = w === "fade" && Kl(T == null ? void 0 : T.entry) !== Kl(se == null ? void 0 : se.entry), Je = ot(st.current), ct = _e ? (() => {
34537
+ const ve = V.current, We = w === "fade" && Kl(T == null ? void 0 : T.entry) !== Kl(se == null ? void 0 : se.entry), Je = ot(st.current), ct = We ? (() => {
34538
34538
  const Nt = tt();
34539
34539
  Uu(() => {
34540
34540
  Ge(se.entry);
@@ -34545,9 +34545,9 @@ const W0 = T0(), N0 = {
34545
34545
  Je ?? 0,
34546
34546
  (ct == null ? void 0 : ct.measuredIncomingTitlesHeight) ?? 0
34547
34547
  ) || void 0;
34548
- be(ve), z(de), ne(!0), ee(et), Ve(et), Oe.current = et, _e ? (Ee(), It && xe(It), ct != null && ct.incomingTitlesMeasureWidth && K(ct.incomingTitlesMeasureWidth), q((T == null ? void 0 : T.entryIndex) ?? null), re(!0), We.current = se.entryIndex, fe.current = setTimeout(() => {
34548
+ be(ve), z(de), ne(!0), ee(et), Ve(et), Oe.current = et, We ? (Ee(), It && xe(It), ct != null && ct.incomingTitlesMeasureWidth && K(ct.incomingTitlesMeasureWidth), q((T == null ? void 0 : T.entryIndex) ?? null), re(!0), Fe.current = se.entryIndex, fe.current = setTimeout(() => {
34549
34549
  q(null), re(!1), xe(void 0), K(void 0), Ge(null), fe.current = null;
34550
- }, 400)) : (Ee(), q(null), re(!1), xe(void 0), K(void 0), Ge(null), We.current = se.entryIndex);
34550
+ }, 400)) : (Ee(), q(null), re(!1), xe(void 0), K(void 0), Ge(null), Fe.current = se.entryIndex);
34551
34551
  }, [de, Ee, tt, ot, we, Ve, w]), at = Se(() => {
34552
34552
  Ue.current = null;
34553
34553
  }, []), Rt = Se((Te) => {
@@ -34565,12 +34565,12 @@ const W0 = T0(), N0 = {
34565
34565
  }
34566
34566
  const et = Ue.current;
34567
34567
  if (!et || et.pointerId !== Te.pointerId || (at(), Te.target.closest("[data-controls]"))) return;
34568
- const se = Te.clientX - et.startX, ve = Te.clientY - et.startY, _e = Math.abs(se), Je = Math.abs(ve);
34569
- if (_e >= Zf && _e > Je) {
34568
+ const se = Te.clientX - et.startX, ve = Te.clientY - et.startY, We = Math.abs(se), Je = Math.abs(ve);
34569
+ if (We >= Zf && We > Je) {
34570
34570
  lt(se > 0 ? de - 1 : de + 1);
34571
34571
  return;
34572
34572
  }
34573
- if (_e > ql || Je > ql) return;
34573
+ if (We > ql || Je > ql) return;
34574
34574
  const ct = (Nt = qe.current) == null ? void 0 : Nt.getBoundingClientRect(), It = ct ? ct.left + ct.width / 2 : window.innerWidth / 2;
34575
34575
  lt(Te.clientX < It ? de - 1 : de + 1);
34576
34576
  }, [de, $e, lt, Ze, at, we.length]), Ft = Se((Te) => {
@@ -34591,7 +34591,7 @@ const W0 = T0(), N0 = {
34591
34591
  };
34592
34592
  }, []), ke(() => {
34593
34593
  var Te;
34594
- w !== "fade" && (We.current = ((Te = we[de]) == null ? void 0 : Te.entryIndex) ?? 0, Ee(), q(null), re(!1), xe(void 0), K(void 0));
34594
+ w !== "fade" && (Fe.current = ((Te = we[de]) == null ? void 0 : Te.entryIndex) ?? 0, Ee(), q(null), re(!1), xe(void 0), K(void 0));
34595
34595
  }, [de, Ee, we, w]), ke(() => {
34596
34596
  const Te = (et) => {
34597
34597
  if (et.key === "Escape") {
@@ -34613,8 +34613,8 @@ const W0 = T0(), N0 = {
34613
34613
  (ct) => !ct.closest('[aria-hidden="true"]')
34614
34614
  );
34615
34615
  if (se.length === 0) return;
34616
- const ve = se[0], _e = se[se.length - 1], Je = document.activeElement;
34617
- et.shiftKey ? (Je === ve || !qe.current.contains(Je)) && (et.preventDefault(), _e.focus()) : (Je === _e || !qe.current.contains(Je)) && (et.preventDefault(), ve.focus());
34616
+ const ve = se[0], We = se[se.length - 1], Je = document.activeElement;
34617
+ et.shiftKey ? (Je === ve || !qe.current.contains(Je)) && (et.preventDefault(), We.focus()) : (Je === We || !qe.current.contains(Je)) && (et.preventDefault(), ve.focus());
34618
34618
  }
34619
34619
  };
34620
34620
  return window.addEventListener("keydown", Te), () => window.removeEventListener("keydown", Te);
@@ -34626,16 +34626,16 @@ const W0 = T0(), N0 = {
34626
34626
  }, [Ee, t.length, b, we.length]), Pt(() => {
34627
34627
  var T;
34628
34628
  const Te = Math.max(0, we.length - 1), et = Math.min(Math.max(0, a), Te);
34629
- Oe.current = et, We.current = ((T = we[et]) == null ? void 0 : T.entryIndex) ?? 0, ee(et);
34629
+ Oe.current = et, Fe.current = ((T = we[et]) == null ? void 0 : T.entryIndex) ?? 0, ee(et);
34630
34630
  }, [a]);
34631
- const $t = P !== null ? t[P] : null, vt = O !== null ? we[O] : null, Ot = (ae == null ? void 0 : ae.title1) || (ae == null ? void 0 : ae.title2) || (ae == null ? void 0 : ae.title3) || ($t == null ? void 0 : $t.title1) || ($t == null ? void 0 : $t.title2) || ($t == null ? void 0 : $t.title3), Vt = ry(b, we, t), Lt = I !== null, jt = Ot || Vt || Lt, Jt = Vt && Lt ? { gap: Y } : void 0, rn = `${e}-titles-stack${Q ? ` ${e}-titles-stack-stacked` : ""}`, cn = `${e}-titles-layer-out${Q ? ` ${e}-titles-layer-out-stacked` : ""}`, kt = `${e}-titles-layer-out`, Gt = (W ?? 0) > 0 || o, un = D($), yt = Ne(
34631
+ const $t = P !== null ? t[P] : null, vt = O !== null ? we[O] : null, Ot = (ae == null ? void 0 : ae.title1) || (ae == null ? void 0 : ae.title2) || (ae == null ? void 0 : ae.title3) || ($t == null ? void 0 : $t.title1) || ($t == null ? void 0 : $t.title2) || ($t == null ? void 0 : $t.title3), Vt = ry(b, we, t), Lt = I !== null, jt = Ot || Vt || Lt, Jt = Vt && Lt ? { gap: Y } : void 0, rn = `${e}-titles-stack${Q ? ` ${e}-titles-stack-stacked` : ""}`, cn = `${e}-titles-layer-out${Q ? ` ${e}-titles-layer-out-stacked` : ""}`, kt = `${e}-titles-layer-out`, Gt = (N ?? 0) > 0 || o, un = D($), yt = Ne(
34632
34632
  () => ({
34633
34633
  title1Width: y ?? io.title1Width,
34634
34634
  title2Width: x ?? io.title2Width,
34635
- title3Width: N ?? io.title3Width
34635
+ title3Width: W ?? io.title3Width
34636
34636
  }),
34637
- [y, x, N]
34638
- ), Fe = Ne(() => ({
34637
+ [y, x, W]
34638
+ ), _e = Ne(() => ({
34639
34639
  title2MarginLeft: U,
34640
34640
  title3MarginLeft: H
34641
34641
  }), [U, H]), Ke = Ne(
@@ -34671,7 +34671,7 @@ const W0 = T0(), N0 = {
34671
34671
  maxWidth: vn(T, xt)
34672
34672
  };
34673
34673
  if (et === "two-row-top") {
34674
- const ve = _t.findIndex((_e) => _e.prefix === Te.prefix);
34674
+ const ve = _t.findIndex((We) => We.prefix === Te.prefix);
34675
34675
  return {
34676
34676
  effectiveWidth: Kt.effective[ve] ?? 0,
34677
34677
  resolvedWidth: Kt.resolved[ve] ?? 0,
@@ -34697,25 +34697,25 @@ const W0 = T0(), N0 = {
34697
34697
  (Te) => nu(
34698
34698
  Ke,
34699
34699
  xt,
34700
- Fe,
34700
+ _e,
34701
34701
  Te
34702
- ) + (Q ? 0 : W ?? 0),
34703
- [Ke, xt, Fe, Q, W]
34702
+ ) + (Q ? 0 : N ?? 0),
34703
+ [Ke, xt, _e, Q, N]
34704
34704
  ), en = Se(
34705
- () => Q ? 0 : W ?? 0,
34706
- [Q, W]
34705
+ () => Q ? 0 : N ?? 0,
34706
+ [Q, N]
34707
34707
  ), Xt = Se(
34708
34708
  (Te) => St.slice(0, Te).reduce(
34709
- (et, T, se) => et + (T.marginLeftKey ? Fe[T.marginLeftKey] ?? 0 : 0) + (Bt.resolved[se] ?? 0),
34709
+ (et, T, se) => et + (T.marginLeftKey ? _e[T.marginLeftKey] ?? 0 : 0) + (Bt.resolved[se] ?? 0),
34710
34710
  0
34711
34711
  ),
34712
- [St, Bt.resolved, Fe]
34712
+ [St, Bt.resolved, _e]
34713
34713
  ), Ut = Se(
34714
34714
  (Te) => {
34715
34715
  const et = St[Te];
34716
- return Xt(Te) + (et.marginLeftKey ? Fe[et.marginLeftKey] ?? 0 : 0) + (Bt.resolved[Te] ?? 0);
34716
+ return Xt(Te) + (et.marginLeftKey ? _e[et.marginLeftKey] ?? 0 : 0) + (Bt.resolved[Te] ?? 0);
34717
34717
  },
34718
- [St, Bt.resolved, Xt, Fe]
34718
+ [St, Bt.resolved, Xt, _e]
34719
34719
  ), qt = Se((Te, et, T) => {
34720
34720
  if (!Q || T === "single-row") {
34721
34721
  const ct = Te.findIndex((an) => an.prefix === et.prefix), It = Te.map((an) => yt[an.widthKey]), Nt = uo(Te.length, It);
@@ -34733,16 +34733,16 @@ const W0 = T0(), N0 = {
34733
34733
  maxWidth: vn(It, Nt)
34734
34734
  };
34735
34735
  }
34736
- const se = Te.filter((ct) => ct.prefix === "title2" || ct.prefix === "title3"), ve = se.findIndex((ct) => ct.prefix === et.prefix), { resolved: _e, effective: Je } = si(se, yt);
34736
+ const se = Te.filter((ct) => ct.prefix === "title2" || ct.prefix === "title3"), ve = se.findIndex((ct) => ct.prefix === et.prefix), { resolved: We, effective: Je } = si(se, yt);
34737
34737
  return {
34738
34738
  effectiveWidth: Je[ve] ?? 0,
34739
- resolvedWidth: _e[ve] ?? 0,
34740
- maxWidth: vn(ve, _e)
34739
+ resolvedWidth: We[ve] ?? 0,
34740
+ maxWidth: vn(ve, We)
34741
34741
  };
34742
34742
  }, [yt, Q]), Et = (Te, et, T) => {
34743
- const se = Te.marginLeftKey ? Fe[Te.marginLeftKey] ?? 0 : 0, {
34743
+ const se = Te.marginLeftKey ? _e[Te.marginLeftKey] ?? 0 : 0, {
34744
34744
  effectiveWidth: ve,
34745
- resolvedWidth: _e,
34745
+ resolvedWidth: We,
34746
34746
  maxWidth: Je
34747
34747
  } = T ?? zt(Te, et), ct = Math.max(se, ri), It = o && et === "two-row-top";
34748
34748
  return /* @__PURE__ */ te(
@@ -34762,7 +34762,7 @@ const W0 = T0(), N0 = {
34762
34762
  "data-controls": Te.marginLeftKey,
34763
34763
  "data-controls-axis": "x",
34764
34764
  "data-controls-min": "0",
34765
- "data-controls-max-fraction": String(_e),
34765
+ "data-controls-max-fraction": String(We),
34766
34766
  style: {
34767
34767
  position: "absolute",
34768
34768
  top: 0,
@@ -34807,7 +34807,7 @@ const W0 = T0(), N0 = {
34807
34807
  "data-controls-max-fraction": String(T)
34808
34808
  } : {},
34809
34809
  style: {
34810
- width: D(W ?? 0),
34810
+ width: D(N ?? 0),
34811
34811
  flexShrink: 0,
34812
34812
  alignSelf: "stretch",
34813
34813
  ...se ? { pointerEvents: "auto" } : {}
@@ -35059,8 +35059,8 @@ const W0 = T0(), N0 = {
35059
35059
  Yt(pn(Te)),
35060
35060
  xn(Te, et)
35061
35061
  ] }), bi = (Te) => Q ? /* @__PURE__ */ c("div", { className: `${e}-titles-row-two-row`, children: vi(Te) }) : Te ? /* @__PURE__ */ c("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: Wt(Te) }) : null, ur = () => {
35062
- const Te = Q ? -1 : Ke.findIndex((se) => se.prefix === "title1"), et = !Q && (o || (W ?? 0) > 0) ? (() => {
35063
- const se = W ?? 0, ve = Te >= 0 ? xt[Te] : yt.title1Width, _e = Math.max(se, ri);
35062
+ const Te = Q ? -1 : Ke.findIndex((se) => se.prefix === "title1"), et = !Q && (o || (N ?? 0) > 0) ? (() => {
35063
+ const se = N ?? 0, ve = Te >= 0 ? xt[Te] : yt.title1Width, We = Math.max(se, ri);
35064
35064
  return /* @__PURE__ */ c(
35065
35065
  "div",
35066
35066
  {
@@ -35072,7 +35072,7 @@ const W0 = T0(), N0 = {
35072
35072
  position: "absolute",
35073
35073
  top: 0,
35074
35074
  left: 0,
35075
- width: D(_e),
35075
+ width: D(We),
35076
35076
  height: "100%",
35077
35077
  pointerEvents: "auto"
35078
35078
  }
@@ -35081,12 +35081,12 @@ const W0 = T0(), N0 = {
35081
35081
  );
35082
35082
  })() : null, T = Ke.flatMap((se, ve) => {
35083
35083
  if (!se.marginLeftKey) return [];
35084
- const _e = Fe[se.marginLeftKey] ?? 0, Je = tu(
35084
+ const We = _e[se.marginLeftKey] ?? 0, Je = tu(
35085
35085
  Ke,
35086
35086
  xt,
35087
- Fe,
35087
+ _e,
35088
35088
  ve
35089
- ) + en(), ct = Math.max(_e, ri);
35089
+ ) + en(), ct = Math.max(We, ri);
35090
35090
  return /* @__PURE__ */ c(
35091
35091
  "div",
35092
35092
  {
@@ -35129,14 +35129,14 @@ const W0 = T0(), N0 = {
35129
35129
  ) }, `${Te.widthKey}-junction`);
35130
35130
  }), Sa = () => St.flatMap((Te, et) => {
35131
35131
  if (!Te.marginLeftKey) return [];
35132
- const T = Fe[Te.marginLeftKey] ?? 0, se = Xt(et), ve = Math.max(T, ri), { resolvedWidth: _e } = zt(Te, "two-row-bottom");
35132
+ const T = _e[Te.marginLeftKey] ?? 0, se = Xt(et), ve = Math.max(T, ri), { resolvedWidth: We } = zt(Te, "two-row-bottom");
35133
35133
  return /* @__PURE__ */ c(
35134
35134
  "div",
35135
35135
  {
35136
35136
  "data-controls": Te.marginLeftKey,
35137
35137
  "data-controls-axis": "x",
35138
35138
  "data-controls-min": "0",
35139
- "data-controls-max-fraction": String(_e),
35139
+ "data-controls-max-fraction": String(We),
35140
35140
  style: {
35141
35141
  position: "absolute",
35142
35142
  top: 0,
@@ -35196,7 +35196,7 @@ const W0 = T0(), N0 = {
35196
35196
  {
35197
35197
  className: `${e}-slide-inner`,
35198
35198
  style: et ? { gap: oe } : void 0,
35199
- children: Te.map((ve, _e) => /* @__PURE__ */ te("div", { ...Oi(ve), children: [
35199
+ children: Te.map((ve, We) => /* @__PURE__ */ te("div", { ...Oi(ve), children: [
35200
35200
  /* @__PURE__ */ c(
35201
35201
  "img",
35202
35202
  {
@@ -35206,7 +35206,7 @@ const W0 = T0(), N0 = {
35206
35206
  draggable: !1
35207
35207
  }
35208
35208
  ),
35209
- o && et && _e < Te.length - 1 && /* @__PURE__ */ c(
35209
+ o && et && We < Te.length - 1 && /* @__PURE__ */ c(
35210
35210
  "div",
35211
35211
  {
35212
35212
  "data-controls": "imageGap",
@@ -35222,7 +35222,7 @@ const W0 = T0(), N0 = {
35222
35222
  }
35223
35223
  }
35224
35224
  )
35225
- ] }, `${ve.url}-${_e}`))
35225
+ ] }, `${ve.url}-${We}`))
35226
35226
  }
35227
35227
  );
35228
35228
  }, gr = !!(ae != null && ae.title2 || ae != null && ae.title3 || $t != null && $t.title2 || $t != null && $t.title3 || ($ ?? 0) > 0 || o), Ca = () => /* @__PURE__ */ te(
@@ -35957,14 +35957,14 @@ function D0(e) {
35957
35957
  `;
35958
35958
  }
35959
35959
  const z0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: r, metadata: a }) => {
35960
- const { prefix: l } = ln(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: b } = e, f = X(null), [m, g] = ie(!1), [h, v] = ie(0), w = X(!1), y = X(!1), x = X(!1), N = Ne(
35960
+ const { prefix: l } = ln(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: b } = e, f = X(null), [m, g] = ie(!1), [h, v] = ie(0), w = X(!1), y = X(!1), x = X(!1), W = Ne(
35961
35961
  () => (t ?? []).filter((S) => co(S).length > 0),
35962
35962
  [t]
35963
- ), W = m && N.length > 0, U = !n, H = Se(() => {
35963
+ ), N = m && W.length > 0, U = !n, H = Se(() => {
35964
35964
  U && (x.current = !0, Qf(y.current, s), y.current = !1);
35965
35965
  }, [U, s]), $ = (S = 0) => {
35966
- if (N.length === 0 || n && !i && !o) return;
35967
- const I = Vr(N, b), E = Math.max(0, Math.min(S, I.length - 1));
35966
+ if (W.length === 0 || n && !i && !o) return;
35967
+ const I = Vr(W, b), E = Math.max(0, Math.min(S, I.length - 1));
35968
35968
  if (v(E), U) {
35969
35969
  const C = Qd();
35970
35970
  Jd(E + 1, s, C), y.current = !C;
@@ -35980,9 +35980,9 @@ const z0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
35980
35980
  w.current = !0;
35981
35981
  const S = Ul(s);
35982
35982
  if (!S) return;
35983
- const I = Yl(S, Vr(N, b).length);
35983
+ const I = Yl(S, Vr(W, b).length);
35984
35984
  I < 0 || (v(I), g(!0));
35985
- }, [N, s, U, b]), ke(() => {
35985
+ }, [W, s, U, b]), ke(() => {
35986
35986
  if (!U) return;
35987
35987
  const S = () => {
35988
35988
  if (x.current) {
@@ -35994,7 +35994,7 @@ const z0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
35994
35994
  g(!1);
35995
35995
  return;
35996
35996
  }
35997
- const E = Yl(I, Vr(N, b).length);
35997
+ const E = Yl(I, Vr(W, b).length);
35998
35998
  if (E < 0) {
35999
35999
  g(!1);
36000
36000
  return;
@@ -36002,7 +36002,7 @@ const z0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
36002
36002
  y.current = !1, v(E), g(!0);
36003
36003
  };
36004
36004
  return window.addEventListener("popstate", S), () => window.removeEventListener("popstate", S);
36005
- }, [N, s, U, b]), /* @__PURE__ */ te(pt, { children: [
36005
+ }, [W, s, U, b]), /* @__PURE__ */ te(pt, { children: [
36006
36006
  /* @__PURE__ */ te("div", { ref: f, className: `${l}-wrapper`, children: [
36007
36007
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: D0(l) } }),
36008
36008
  d ? /* @__PURE__ */ c(
@@ -36031,14 +36031,14 @@ const z0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
36031
36031
  }
36032
36032
  ) : null
36033
36033
  ] }),
36034
- W && typeof document < "u" && (() => {
36034
+ N && typeof document < "u" && (() => {
36035
36035
  const S = (r ? document.getElementById(r) : null) ?? document.body;
36036
36036
  return gi(
36037
36037
  /* @__PURE__ */ c(
36038
36038
  O0,
36039
36039
  {
36040
36040
  prefix: l,
36041
- entries: N,
36041
+ entries: W,
36042
36042
  settings: e,
36043
36043
  isEditor: n,
36044
36044
  isEditMode: i,
@@ -37526,8 +37526,8 @@ async function eb(e) {
37526
37526
  return new Map(n);
37527
37527
  }
37528
37528
  function tb({ settings: e, content: t = [], isEditor: n }) {
37529
- const { prefix: i } = ln(), [o, r] = ie(null), [a, l] = ie([]), [s, d] = ie(0), u = X(0), [b, f] = ie({ x: 0, y: 0 }), [m, g] = ie("none"), h = X({ x: 0, y: 0 }), [v, w] = ie(!1), [y, x] = ie(!1), N = X(/* @__PURE__ */ new Map()), {
37530
- imageSize: W = K0,
37529
+ const { prefix: i } = ln(), [o, r] = ie(null), [a, l] = ie([]), [s, d] = ie(0), u = X(0), [b, f] = ie({ x: 0, y: 0 }), [m, g] = ie("none"), h = X({ x: 0, y: 0 }), [v, w] = ie(!1), [y, x] = ie(!1), W = X(/* @__PURE__ */ new Map()), {
37530
+ imageSize: N = K0,
37531
37531
  cursor: U = "system",
37532
37532
  target: H = "area",
37533
37533
  position: $ = "random",
@@ -37553,12 +37553,12 @@ function tb({ settings: e, content: t = [], isEditor: n }) {
37553
37553
  I
37554
37554
  ].filter((Y) => !!Y);
37555
37555
  if (L.length === 0) {
37556
- N.current = /* @__PURE__ */ new Map(), x(!0);
37556
+ W.current = /* @__PURE__ */ new Map(), x(!0);
37557
37557
  return;
37558
37558
  }
37559
37559
  let _ = !1;
37560
37560
  return x(!1), eb(L).then((Y) => {
37561
- _ || (N.current = Y, x(!0));
37561
+ _ || (W.current = Y, x(!0));
37562
37562
  }), () => {
37563
37563
  _ = !0;
37564
37564
  };
@@ -37580,7 +37580,7 @@ function tb({ settings: e, content: t = [], isEditor: n }) {
37580
37580
  const M = (L, _, Y, le = {}) => {
37581
37581
  var Q, $e;
37582
37582
  if (!((Q = L == null ? void 0 : L.image) != null && Q.url)) return null;
37583
- const pe = (($e = N.current.get(L.image.url)) == null ? void 0 : $e.aspectRatio) ?? 1, A = $c(L.image.url, W, N.current), { heightPx: ye } = ta(A, pe);
37583
+ const pe = (($e = W.current.get(L.image.url)) == null ? void 0 : $e.aspectRatio) ?? 1, A = $c(L.image.url, N, W.current), { heightPx: ye } = ta(A, pe);
37584
37584
  let j = 0, ue = 0;
37585
37585
  return $ === "same" ? { x: j, y: ue } = Sc(_, Y, A, pe) : (j = le.x ?? Math.random() * _, ue = le.y ?? Math.random() * Y, { x: j, y: ue } = ws(j, ue, _, Y, A, ye)), {
37586
37586
  id: u.current++,
@@ -37598,7 +37598,7 @@ function tb({ settings: e, content: t = [], isEditor: n }) {
37598
37598
  if (!o) return;
37599
37599
  const L = o.getBoundingClientRect(), _ = L.width, Y = L.height;
37600
37600
  _ === 0 || Y === 0 || l((le) => le.length === 0 ? le : le.map((pe) => {
37601
- const A = W.sizeType === "random" ? pe.widthPx : $c(pe.url, W, N.current), { heightPx: ye } = ta(A, pe.aspectRatio);
37601
+ const A = N.sizeType === "random" ? pe.widthPx : $c(pe.url, N, W.current), { heightPx: ye } = ta(A, pe.aspectRatio);
37602
37602
  if ($ === "same") {
37603
37603
  const { x: Q, y: $e } = Sc(_, Y, A, pe.aspectRatio);
37604
37604
  return { ...pe, x: Q, y: $e, widthPx: A };
@@ -37618,14 +37618,14 @@ function tb({ settings: e, content: t = [], isEditor: n }) {
37618
37618
  if (!o || E.length === 0 || !y) return;
37619
37619
  const L = o.getBoundingClientRect(), _ = L.width, Y = L.height, le = M(E[0], _, Y);
37620
37620
  le && (l([le]), d(E.length > 1 ? 1 : 0));
37621
- }, [W, $, o, t, y]), ke(() => {
37621
+ }, [N, $, o, t, y]), ke(() => {
37622
37622
  if (!o) return;
37623
37623
  R();
37624
37624
  const L = new ResizeObserver(R);
37625
37625
  return L.observe(o), window.addEventListener("resize", R), () => {
37626
37626
  L.disconnect(), window.removeEventListener("resize", R);
37627
37627
  };
37628
- }, [o, $, W, a.length]), ke(() => {
37628
+ }, [o, $, N, a.length]), ke(() => {
37629
37629
  B === "last One" && l((L) => L.length > 0 ? [L[L.length - 1]] : []);
37630
37630
  }, [B]);
37631
37631
  const D = (L) => {
@@ -38661,7 +38661,7 @@ function mb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38661
38661
  maxHeight: s,
38662
38662
  transition: d = 1e3,
38663
38663
  bgImage: u = "greyscale"
38664
- } = e, b = t ?? [], f = Cc(b.length), [m, g] = ie(f.activeIndex), [h, v] = ie(f.backgroundIndex), [w, y] = ie(!1), [x, N] = ie(!1), [W, U] = ie(null), [H, $] = ie(null), [B, S] = ie(0), [I, E] = ie(1), [C, p] = ie("none"), [M, R] = ie("next"), [D, oe] = ie({}), [L, _] = ie({ width: 0, height: 0 }), Y = X(null), le = X(null), pe = !n || !!i, A = a ?? 60, ye = Math.max(10, Math.min(100, l ?? A)), j = Math.max(10, Math.min(100, s ?? A)), ue = Math.max(100, d), Q = Mo(u), $e = Se((k) => {
38664
+ } = e, b = t ?? [], f = Cc(b.length), [m, g] = ie(f.activeIndex), [h, v] = ie(f.backgroundIndex), [w, y] = ie(!1), [x, W] = ie(!1), [N, U] = ie(null), [H, $] = ie(null), [B, S] = ie(0), [I, E] = ie(1), [C, p] = ie("none"), [M, R] = ie("next"), [D, oe] = ie({}), [L, _] = ie({ width: 0, height: 0 }), Y = X(null), le = X(null), pe = !n || !!i, A = a ?? 60, ye = Math.max(10, Math.min(100, l ?? A)), j = Math.max(10, Math.min(100, s ?? A)), ue = Math.max(100, d), Q = Mo(u), $e = Se((k) => {
38665
38665
  const xe = db(k ? D[k] : void 0);
38666
38666
  return ub(
38667
38667
  L.width,
@@ -38692,16 +38692,16 @@ function mb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38692
38692
  });
38693
38693
  }, [t]), ke(() => {
38694
38694
  const { backgroundIndex: k, activeIndex: xe } = Cc(b.length);
38695
- g(xe), v(k), y(!1), N(!1), U(null), $(null), S(0), E(1), p("none"), R("next");
38695
+ g(xe), v(k), y(!1), W(!1), U(null), $(null), S(0), E(1), p("none"), R("next");
38696
38696
  }, [b.length, t]), ke(() => () => {
38697
38697
  Y.current && clearTimeout(Y.current);
38698
38698
  }, []);
38699
38699
  const ze = Se((k) => {
38700
- var fe, V, We, Oe;
38700
+ var fe, V, Fe, Oe;
38701
38701
  if (!pe || w || b.length <= 1) return;
38702
- const xe = k === "next" ? (m + 1) % b.length : (m - 1 + b.length) % b.length, ge = $e((V = (fe = b[m]) == null ? void 0 : fe.image) == null ? void 0 : V.url), K = $e((Oe = (We = b[xe]) == null ? void 0 : We.image) == null ? void 0 : Oe.url), he = Tc(L.width, L.height, ge), Ge = Tc(L.width, L.height, K);
38703
- Y.current && clearTimeout(Y.current), R(k), N(!0), y(!0), k === "next" ? (U(m), $(xe), S(0), E(1), p(Mo(u, 0, 1))) : (v(cb(xe, b.length)), U(xe), $(m), S(1), E(Ge), p(Mo(u, 1, Ge))), requestAnimationFrame(() => {
38704
- N(!1), requestAnimationFrame(() => {
38702
+ const xe = k === "next" ? (m + 1) % b.length : (m - 1 + b.length) % b.length, ge = $e((V = (fe = b[m]) == null ? void 0 : fe.image) == null ? void 0 : V.url), K = $e((Oe = (Fe = b[xe]) == null ? void 0 : Fe.image) == null ? void 0 : Oe.url), he = Tc(L.width, L.height, ge), Ge = Tc(L.width, L.height, K);
38703
+ Y.current && clearTimeout(Y.current), R(k), W(!0), y(!0), k === "next" ? (U(m), $(xe), S(0), E(1), p(Mo(u, 0, 1))) : (v(cb(xe, b.length)), U(xe), $(m), S(1), E(Ge), p(Mo(u, 1, Ge))), requestAnimationFrame(() => {
38704
+ W(!1), requestAnimationFrame(() => {
38705
38705
  k === "next" ? (S(1), E(he), p(Mo(u, 1, he))) : (S(0), E(1), p(Mo(u, 0, 1)));
38706
38706
  });
38707
38707
  }), Y.current = setTimeout(() => {
@@ -38717,7 +38717,7 @@ function mb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38717
38717
  pe,
38718
38718
  b,
38719
38719
  ue
38720
- ]), we = b[m], de = h !== null ? b[h] : null, ee = W !== null ? b[W] : null, me = H !== null ? b[H] : null, ae = b.length <= 1 ? 0 : (m - 1 + b.length) % b.length, Be = b.length <= 1 ? 0 : (m + 1) % b.length, Re = $e((re = we == null ? void 0 : we.image) == null ? void 0 : re.url), P = $e((O = ee == null ? void 0 : ee.image) == null ? void 0 : O.url), q = $e((z = me == null ? void 0 : me.image) == null ? void 0 : z.url), G = {
38720
+ ]), we = b[m], de = h !== null ? b[h] : null, ee = N !== null ? b[N] : null, me = H !== null ? b[H] : null, ae = b.length <= 1 ? 0 : (m - 1 + b.length) % b.length, Be = b.length <= 1 ? 0 : (m + 1) % b.length, Re = $e((re = we == null ? void 0 : we.image) == null ? void 0 : re.url), P = $e((O = ee == null ? void 0 : ee.image) == null ? void 0 : O.url), q = $e((z = me == null ? void 0 : me.image) == null ? void 0 : z.url), G = {
38721
38721
  [`--${o}-transition-ms`]: `${ue}ms`
38722
38722
  };
38723
38723
  return /* @__PURE__ */ te(pt, { children: [
@@ -39815,8 +39815,8 @@ function Sb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
39815
39815
  padding: w = { top: 0, right: 0, bottom: 0, left: 0 },
39816
39816
  cornerRadius: y = 0,
39817
39817
  boxShadow: x = { top: 0, left: 0, right: 0, bottom: 0 },
39818
- boxShadowColor: N = "rgba(0, 0, 0, 0)",
39819
- innerBoxShadow: W = { top: 0, left: 0, right: 0, bottom: 0 },
39818
+ boxShadowColor: W = "rgba(0, 0, 0, 0)",
39819
+ innerBoxShadow: N = { top: 0, left: 0, right: 0, bottom: 0 },
39820
39820
  innerBoxShadowColor: U = "rgba(0, 0, 0, 0)",
39821
39821
  stroke: H = 0,
39822
39822
  blur: $ = 0,
@@ -39842,7 +39842,7 @@ function Sb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
39842
39842
  textColor: S,
39843
39843
  borderColor: I,
39844
39844
  iconColor: E,
39845
- boxShadowColor: N,
39845
+ boxShadowColor: W,
39846
39846
  innerBoxShadowColor: U
39847
39847
  }, yb, vb, Y), ue = i && i !== "default" ? `${r}-state-${i}` : "", Q = t && !n ? `${r}-editing` : "", $e = C !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${C}` : "", ze = C === "reveal" || C === "swipe", we = C === "content-roll", de = C === "reveal" && (!t || n), ee = v === !0, ae = l === "a" ? b ?? u : u, Be = l === "c", Re = l !== "b", P = {
39848
39848
  fontSettings: {
@@ -39862,10 +39862,10 @@ function Sb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
39862
39862
  [`--${r}-box-shadow-y`]: Z(x.top, t),
39863
39863
  [`--${r}-box-shadow-blur`]: Z(x.right, t),
39864
39864
  [`--${r}-box-shadow-spread`]: Z(x.bottom, t),
39865
- [`--${r}-inner-box-shadow-x`]: Z(W.left, t),
39866
- [`--${r}-inner-box-shadow-y`]: Z(W.top, t),
39867
- [`--${r}-inner-box-shadow-blur`]: Z(W.right, t),
39868
- [`--${r}-inner-box-shadow-spread`]: Z(W.bottom, t),
39865
+ [`--${r}-inner-box-shadow-x`]: Z(N.left, t),
39866
+ [`--${r}-inner-box-shadow-y`]: Z(N.top, t),
39867
+ [`--${r}-inner-box-shadow-blur`]: Z(N.right, t),
39868
+ [`--${r}-inner-box-shadow-spread`]: Z(N.bottom, t),
39869
39869
  [`--${r}-backdrop-blur`]: $ > 0 ? `blur(${Z($, t)})` : void 0,
39870
39870
  paddingTop: Z(w.top, t),
39871
39871
  paddingRight: Z(w.right, t),
@@ -41709,8 +41709,8 @@ function Xb({
41709
41709
  onPrev: h,
41710
41710
  onNext: v
41711
41711
  }) {
41712
- const w = X(null), y = X(null), x = X(null), N = X(/* @__PURE__ */ new Map()), [W, U] = ie(0), H = X(null), $ = X(0), B = X(0), S = X("none"), I = X(!1), E = X(!1), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(() => {
41713
- }), oe = X(null), L = X(null), _ = X(null), Y = X(!1), [le, pe] = ie(null), [A, ye] = ie(Za), [j, ue] = ie(0), [Q, $e] = ie("opening"), [ze, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Be, Re] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Ie, be] = ie(!1), k = X(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = X(n), fe = X(void 0), V = t[n], We = V ? wa(V) : !1, Oe = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, st = Se((F, Ae) => t.length <= 1 ? null : t[(F + Ae + t.length) % t.length] ?? null, [t]), qe = ut ? Wo(d, u, -1) : st(n, -1), Le = ut ? Wo(d, u, 1) : st(n, 1), He = Be === -1 && Oe ? ut && P !== null ? Wo(d, P, -1) : G !== null ? st(G, -1) : null : null, Ue = Be === 1 && Oe ? ut && P !== null ? Wo(d, P, 1) : G !== null ? st(G, 1) : null : null, tt = He && He.url !== (qe == null ? void 0 : qe.url) ? He : null, Ee = Ue && Ue.url !== (Le == null ? void 0 : Le.url) ? Ue : null, Xe = qe && it ? (() => {
41712
+ const w = X(null), y = X(null), x = X(null), W = X(/* @__PURE__ */ new Map()), [N, U] = ie(0), H = X(null), $ = X(0), B = X(0), S = X("none"), I = X(!1), E = X(!1), C = X(!1), p = X(null), M = X(null), R = X(null), D = X(() => {
41713
+ }), oe = X(null), L = X(null), _ = X(null), Y = X(!1), [le, pe] = ie(null), [A, ye] = ie(Za), [j, ue] = ie(0), [Q, $e] = ie("opening"), [ze, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Be, Re] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Ie, be] = ie(!1), k = X(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = X(n), fe = X(void 0), V = t[n], Fe = V ? wa(V) : !1, Oe = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, st = Se((F, Ae) => t.length <= 1 ? null : t[(F + Ae + t.length) % t.length] ?? null, [t]), qe = ut ? Wo(d, u, -1) : st(n, -1), Le = ut ? Wo(d, u, 1) : st(n, 1), He = Be === -1 && Oe ? ut && P !== null ? Wo(d, P, -1) : G !== null ? st(G, -1) : null : null, Ue = Be === 1 && Oe ? ut && P !== null ? Wo(d, P, 1) : G !== null ? st(G, 1) : null : null, tt = He && He.url !== (qe == null ? void 0 : qe.url) ? He : null, Ee = Ue && Ue.url !== (Le == null ? void 0 : Le.url) ? Ue : null, Xe = qe && it ? (() => {
41714
41714
  const F = ut ? Rc(d, u, -1) : t.length > 2 ? st((n - 1 + t.length) % t.length, -1) : null;
41715
41715
  return F && F.url !== qe.url ? F : null;
41716
41716
  })() : null, ce = Le && it ? (() => {
@@ -41718,13 +41718,13 @@ function Xb({
41718
41718
  return F && F.url !== Le.url ? F : null;
41719
41719
  })() : null, Me = tt ?? Xe, Ze = Ee ?? ce, Ce = Se((F, Ae, De) => {
41720
41720
  if (!F || !Ae || !De) return;
41721
- const Ye = N.current, ft = Ye.get(F);
41721
+ const Ye = W.current, ft = Ye.get(F);
41722
41722
  (ft == null ? void 0 : ft.width) === Ae && (ft == null ? void 0 : ft.height) === De || (Ye.set(F, { width: Ae, height: De }), U((Dt) => Dt + 1));
41723
41723
  }, []), Pe = Se((F) => {
41724
41724
  if (!(F != null && F.url)) return null;
41725
- const Ae = N.current.get(F.url);
41725
+ const Ae = W.current.get(F.url);
41726
41726
  return Ob(y.current, Ae);
41727
- }, [W, j]), nt = Se(() => {
41727
+ }, [N, j]), nt = Se(() => {
41728
41728
  if (!V) return;
41729
41729
  const F = Pe(V);
41730
41730
  if (F) {
@@ -41833,7 +41833,7 @@ function Xb({
41833
41833
  }, [vt, Ot]), Lt = Se(() => {
41834
41834
  const F = y.current;
41835
41835
  if (!F) return;
41836
- const Ae = V == null ? void 0 : V.url, De = Ae ? N.current.get(Ae) : void 0;
41836
+ const Ae = V == null ? void 0 : V.url, De = Ae ? W.current.get(Ae) : void 0;
41837
41837
  if (De != null && De.width && (De != null && De.height)) {
41838
41838
  pe(Ss(F, De.width, De.height));
41839
41839
  return;
@@ -41877,12 +41877,12 @@ function Xb({
41877
41877
  }
41878
41878
  }, [V == null ? void 0 : V.url, n, Lt]), ke(() => {
41879
41879
  nt();
41880
- }, [nt, W]), ke(() => {
41880
+ }, [nt, N]), ke(() => {
41881
41881
  const F = /* @__PURE__ */ new Set(), Ae = [], De = (Ye) => {
41882
41882
  !(Ye != null && Ye.url) || F.has(Ye.url) || (F.add(Ye.url), Ae.push(Ye));
41883
41883
  };
41884
41884
  t.forEach(De), d.forEach((Ye) => Ye.items.forEach(De)), Ae.forEach((Ye) => {
41885
- N.current.has(Ye.url) || Db(Ye, Ce);
41885
+ W.current.has(Ye.url) || Db(Ye, Ce);
41886
41886
  });
41887
41887
  }, [t, d, Ce]), ke(() => {
41888
41888
  if (Q !== "opening" || !le) return;
@@ -42024,7 +42024,7 @@ function Xb({
42024
42024
  }, [Q, vt]);
42025
42025
  const cn = () => {
42026
42026
  Q === "closing" || a || rn();
42027
- }, kt = Q === "open", Gt = Q === "closing", un = ze > 0 ? Math.max(0, 1 - ze / 500) : 1, yt = ze > 0 ? Math.max(0.35, 1 - ze / 500) : 1, Fe = Se((F) => {
42027
+ }, kt = Q === "open", Gt = Q === "closing", un = ze > 0 ? Math.max(0, 1 - ze / 500) : 1, yt = ze > 0 ? Math.max(0.35, 1 - ze / 500) : 1, _e = Se((F) => {
42028
42028
  if (!(F.propertyName !== "transform" || !C.current)) {
42029
42029
  if (M.current !== null) {
42030
42030
  Rt();
@@ -42043,10 +42043,10 @@ function Xb({
42043
42043
  transform: xt,
42044
42044
  opacity: ze > 0 ? yt : _t ? 1 : Q === "opening" || Gt ? 0 : 1,
42045
42045
  transition: xe && !me ? "none" : me ? `transform ${Eo}ms ${Sn}` : K ? `transform ${_n}ms ${Sn}, opacity ${_n}ms ${Sn}` : St ? `transform ${_n}ms ${Sn}` : Q === "opening" || Gt ? `opacity ${_n}ms ${Sn}` : "none",
42046
- pointerEvents: We && kt && !Oe ? "auto" : "none",
42047
- touchAction: We && kt ? "none" : void 0,
42046
+ pointerEvents: Fe && kt && !Oe ? "auto" : "none",
42047
+ touchAction: Fe && kt ? "none" : void 0,
42048
42048
  zIndex: 1,
42049
- overflow: We ? "hidden" : void 0
42049
+ overflow: Fe ? "hidden" : void 0
42050
42050
  }, Bt = {
42051
42051
  width: "100%",
42052
42052
  height: "100%",
@@ -42174,7 +42174,7 @@ function Xb({
42174
42174
  media: Me,
42175
42175
  style: zt(Me, "left", "far"),
42176
42176
  onMeasure: Ce,
42177
- onTransitionEnd: Fe
42177
+ onTransitionEnd: _e
42178
42178
  },
42179
42179
  `far-prev-${Me.url}`
42180
42180
  ),
@@ -42185,7 +42185,7 @@ function Xb({
42185
42185
  media: qe,
42186
42186
  style: zt(qe, "left"),
42187
42187
  onMeasure: Ce,
42188
- onTransitionEnd: Fe
42188
+ onTransitionEnd: _e
42189
42189
  },
42190
42190
  `prev-${qe.url}`
42191
42191
  ),
@@ -42213,7 +42213,7 @@ function Xb({
42213
42213
  media: Le,
42214
42214
  style: zt(Le, "right"),
42215
42215
  onMeasure: Ce,
42216
- onTransitionEnd: Fe
42216
+ onTransitionEnd: _e
42217
42217
  },
42218
42218
  `next-${Le.url}`
42219
42219
  ),
@@ -42240,11 +42240,11 @@ function Xb({
42240
42240
  media: Ze,
42241
42241
  style: zt(Ze, "right", "far"),
42242
42242
  onMeasure: Ce,
42243
- onTransitionEnd: Fe
42243
+ onTransitionEnd: _e
42244
42244
  },
42245
42245
  `far-next-${Ze.url}`
42246
42246
  ),
42247
- le && V && (We ? /* @__PURE__ */ c(
42247
+ le && V && (Fe ? /* @__PURE__ */ c(
42248
42248
  qb,
42249
42249
  {
42250
42250
  src: V.url,
@@ -42253,7 +42253,7 @@ function Xb({
42253
42253
  wrapperStyle: Kt,
42254
42254
  videoStyle: Bt,
42255
42255
  onLoadedMetadata: Lt,
42256
- onTransitionEnd: Fe
42256
+ onTransitionEnd: _e
42257
42257
  },
42258
42258
  `${n}-${V.url}`
42259
42259
  ) : /* @__PURE__ */ c(
@@ -42263,7 +42263,7 @@ function Xb({
42263
42263
  src: V.url,
42264
42264
  alt: V.name,
42265
42265
  onLoad: Lt,
42266
- onTransitionEnd: Fe,
42266
+ onTransitionEnd: _e,
42267
42267
  style: Kt
42268
42268
  },
42269
42269
  `${n}-${V.url}`
@@ -42431,7 +42431,7 @@ function ix({
42431
42431
  layoutId: r,
42432
42432
  portalId: a
42433
42433
  }) {
42434
- const { prefix: l } = ln(), s = Ne(() => Kb(l), [l]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, f = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = Z(f, n ?? !1), g = `max(${m}, ${Ub}px)`, { objectFitMode: h, imageStyle: v } = tx(e), w = ex(e, n), y = X(null), [x, N] = ie(!1), [W, U] = ie([]), [H, $] = ie(0), [B, S] = ie(0), [I, E] = ie(null), [C, p] = ie({ title1: "", title2: "", title3: "" }), M = (!n || i) && !x, R = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, D = R.sizeType ?? "none", oe = M && D !== "none" ? `${l}-item-image-hover-${D}` : void 0, L = (R.value ?? 120) / 100, _ = Se((de) => {
42434
+ const { prefix: l } = ln(), s = Ne(() => Kb(l), [l]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, f = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = Z(f, n ?? !1), g = `max(${m}, ${Ub}px)`, { objectFitMode: h, imageStyle: v } = tx(e), w = ex(e, n), y = X(null), [x, W] = ie(!1), [N, U] = ie([]), [H, $] = ie(0), [B, S] = ie(0), [I, E] = ie(null), [C, p] = ie({ title1: "", title2: "", title3: "" }), M = (!n || i) && !x, R = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, D = R.sizeType ?? "none", oe = M && D !== "none" ? `${l}-item-image-hover-${D}` : void 0, L = (R.value ?? 120) / 100, _ = Se((de) => {
42435
42435
  !de || D !== "scale" || (de.style.transformOrigin = Jg(de));
42436
42436
  }, [D]), Y = Se((de) => {
42437
42437
  if (de) {
@@ -42457,9 +42457,9 @@ function ix({
42457
42457
  const me = ye.findIndex((Be) => Be.gridIndex === de);
42458
42458
  if (me < 0) return;
42459
42459
  const ae = ye[me];
42460
- S(me), U(ae.items), $(0), p(ae.entry), E(ee ?? null), N(!0);
42460
+ S(me), U(ae.items), $(0), p(ae.entry), E(ee ?? null), W(!0);
42461
42461
  }, Q = Se(() => {
42462
- N(!1), E(null);
42462
+ W(!1), E(null);
42463
42463
  }, []), $e = Se(() => {
42464
42464
  const de = ye[B];
42465
42465
  return !de || !y.current ? I : _b(y.current, de.gridIndex, h) ?? I;
@@ -42469,8 +42469,8 @@ function ix({
42469
42469
  S(me), U(ae.items), $(0), p(ae.entry);
42470
42470
  return;
42471
42471
  }
42472
- $((ee) => (ee + de + W.length) % W.length);
42473
- }, [ye, B, W.length]), we = ye.length > 1 || W.length > 1;
42472
+ $((ee) => (ee + de + N.length) % N.length);
42473
+ }, [ye, B, N.length]), we = ye.length > 1 || N.length > 1;
42474
42474
  return ke(() => {
42475
42475
  if (!x || typeof document > "u") return;
42476
42476
  const de = document.body.style.overflow;
@@ -42478,9 +42478,9 @@ function ix({
42478
42478
  document.body.style.overflow = de;
42479
42479
  };
42480
42480
  }, [x]), ke(() => {
42481
- !n || o || i || N(!1);
42481
+ !n || o || i || W(!1);
42482
42482
  }, [n, o, i]), ke(() => {
42483
- ((e == null ? void 0 : e.lightbox) ?? "on") === "off" && N(!1);
42483
+ ((e == null ? void 0 : e.lightbox) ?? "on") === "off" && W(!1);
42484
42484
  }, [e == null ? void 0 : e.lightbox]), /* @__PURE__ */ te(pt, { children: [
42485
42485
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: s } }),
42486
42486
  /* @__PURE__ */ c(Bb, { mediaList: j }),
@@ -42578,7 +42578,7 @@ function ix({
42578
42578
  Xb,
42579
42579
  {
42580
42580
  prefix: l,
42581
- items: W,
42581
+ items: N,
42582
42582
  index: H,
42583
42583
  entry: C,
42584
42584
  settings: e,
@@ -44185,7 +44185,7 @@ function Tx(e, t) {
44185
44185
  `;
44186
44186
  }
44187
44187
  function Lx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
44188
- const { prefix: r } = ln(), a = xx(e, n), l = t ?? [], s = l.length, d = (e == null ? void 0 : e.trigger) ?? Ec, u = d.sizeType ?? "drag", b = d.value ?? Ec.value, f = (e == null ? void 0 : e.direction) ?? "horizontal", m = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", h = (e == null ? void 0 : e.navSize) ?? "m", v = vx[h], w = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, y = (Le) => Z(Le * w, n), x = (e == null ? void 0 : e.show) ?? "always", N = (e == null ? void 0 : e.controls) ?? null, W = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, U = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, H = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, $ = (e == null ? void 0 : e.controlsColor) ?? Mc.color, B = (e == null ? void 0 : e.controlsHoverColor) ?? Mc.hover, S = (e == null ? void 0 : e.navColor) ?? Ao.colors.inactive, I = (e == null ? void 0 : e.navPaginationColor) ?? Ao.colors.pagination, E = (e == null ? void 0 : e.navBackgroundColor) ?? Ao.colors.background, C = (e == null ? void 0 : e.linkColor) ?? Qa.linkColor, p = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, M = f === "horizontal", R = u === "click", D = u === "drag", oe = u === "auto" && (!n || !!i), L = !n, _ = m === "slide", Y = g === "classic", le = x !== "never" && W > 0, pe = x === "on hover", A = Z(W, n), ye = {
44188
+ const { prefix: r } = ln(), a = xx(e, n), l = t ?? [], s = l.length, d = (e == null ? void 0 : e.trigger) ?? Ec, u = d.sizeType ?? "drag", b = d.value ?? Ec.value, f = (e == null ? void 0 : e.direction) ?? "horizontal", m = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", h = (e == null ? void 0 : e.navSize) ?? "m", v = vx[h], w = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, y = (Le) => Z(Le * w, n), x = (e == null ? void 0 : e.show) ?? "always", W = (e == null ? void 0 : e.controls) ?? null, N = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, U = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, H = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, $ = (e == null ? void 0 : e.controlsColor) ?? Mc.color, B = (e == null ? void 0 : e.controlsHoverColor) ?? Mc.hover, S = (e == null ? void 0 : e.navColor) ?? Ao.colors.inactive, I = (e == null ? void 0 : e.navPaginationColor) ?? Ao.colors.pagination, E = (e == null ? void 0 : e.navBackgroundColor) ?? Ao.colors.background, C = (e == null ? void 0 : e.linkColor) ?? Qa.linkColor, p = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, M = f === "horizontal", R = u === "click", D = u === "drag", oe = u === "auto" && (!n || !!i), L = !n, _ = m === "slide", Y = g === "classic", le = x !== "never" && N > 0, pe = x === "on hover", A = Z(N, n), ye = {
44189
44189
  width: A,
44190
44190
  height: A,
44191
44191
  maxWidth: A
@@ -44264,10 +44264,10 @@ function Lx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44264
44264
  cancelAnimationFrame(He), cancelAnimationFrame(Le);
44265
44265
  };
44266
44266
  }, [he, K, ee]);
44267
- const V = `${j}:${s}`, We = X(V);
44267
+ const V = `${j}:${s}`, Fe = X(V);
44268
44268
  ke(() => {
44269
- if (We.current === V) return;
44270
- We.current = V;
44269
+ if (Fe.current === V) return;
44270
+ Fe.current = V;
44271
44271
  const Le = s > 0 ? Math.min(ue, s - 1) : 0;
44272
44272
  xe.current = null, ge.current = null, Be(!1), P(0), Q(Le), me(!0), ze(Le + (j ? 1 : 0));
44273
44273
  }, [ue, s, j, V]), ke(() => {
@@ -44456,17 +44456,17 @@ function Lx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44456
44456
  transform: `translate(${Z(U, n)}, ${Z(H * (M ? 1 : -1), n)}) rotate(${M ? "0deg" : "90deg"})`
44457
44457
  },
44458
44458
  children: [
44459
- N && /* @__PURE__ */ c(
44459
+ W && /* @__PURE__ */ c(
44460
44460
  fn,
44461
44461
  {
44462
- url: N,
44462
+ url: W,
44463
44463
  fill: $,
44464
44464
  hoverFill: B,
44465
44465
  className: wt(`${r}-arrow-img`, `${r}-mirror`),
44466
44466
  style: ye
44467
44467
  }
44468
44468
  ),
44469
- !N && /* @__PURE__ */ c(
44469
+ !W && /* @__PURE__ */ c(
44470
44470
  Ac,
44471
44471
  {
44472
44472
  color: $,
@@ -44502,17 +44502,17 @@ function Lx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44502
44502
  transform: `translate(${Z(U * (M ? -1 : 1), n)}, ${Z(H, n)}) rotate(${M ? "0deg" : "90deg"})`
44503
44503
  },
44504
44504
  children: [
44505
- N && /* @__PURE__ */ c(
44505
+ W && /* @__PURE__ */ c(
44506
44506
  fn,
44507
44507
  {
44508
- url: N,
44508
+ url: W,
44509
44509
  fill: $,
44510
44510
  hoverFill: B,
44511
44511
  className: `${r}-arrow-img`,
44512
44512
  style: ye
44513
44513
  }
44514
44514
  ),
44515
- !N && /* @__PURE__ */ c(Ac, { color: $, className: wt(`${r}-arrow-icon`, `${r}-arrow-img`) })
44515
+ !W && /* @__PURE__ */ c(Ac, { color: $, className: wt(`${r}-arrow-icon`, `${r}-arrow-img`) })
44516
44516
  ]
44517
44517
  }
44518
44518
  )
@@ -46646,12 +46646,12 @@ function Yx({
46646
46646
  counterStyle: d,
46647
46647
  backgroundColor: u
46648
46648
  }) {
46649
- const b = i === "cover", f = X(null), m = X(null), g = X(null), h = X(0), v = X(0), w = X("none"), y = X(!1), x = X(!1), N = X(!1), W = X(null), [U, H] = ie(null), [$, B] = ie("opening"), [S, I] = ie(0), [E, C] = ie(0), [p, M] = ie(!1), [R, D] = ie(!1), [oe, L] = ie(!1), _ = X(n), Y = t[n], le = Y ? $s(Y) : !1, pe = E !== 0 || p, A = Se((q) => {
46650
- N.current = q, M(q);
46649
+ const b = i === "cover", f = X(null), m = X(null), g = X(null), h = X(0), v = X(0), w = X("none"), y = X(!1), x = X(!1), W = X(!1), N = X(null), [U, H] = ie(null), [$, B] = ie("opening"), [S, I] = ie(0), [E, C] = ie(0), [p, M] = ie(!1), [R, D] = ie(!1), [oe, L] = ie(!1), _ = X(n), Y = t[n], le = Y ? $s(Y) : !1, pe = E !== 0 || p, A = Se((q) => {
46650
+ W.current = q, M(q);
46651
46651
  }, []), ye = Se(() => {
46652
- W.current !== null && (window.clearTimeout(W.current), W.current = null);
46652
+ N.current !== null && (window.clearTimeout(N.current), N.current = null);
46653
46653
  }, []), j = Se(() => {
46654
- ye(), W.current = window.setTimeout(() => {
46654
+ ye(), N.current = window.setTimeout(() => {
46655
46655
  ye(), A(!1);
46656
46656
  }, Vn + 32);
46657
46657
  }, [ye, A]), ue = Se(() => {
@@ -46710,7 +46710,7 @@ function Yx({
46710
46710
  be.stopPropagation(), be.preventDefault(), G();
46711
46711
  }, document.addEventListener("click", q, !0);
46712
46712
  }, O = (be) => {
46713
- ye(), N.current = !1, M(!1), C(0), D(!1), y.current = !1, v.current = 0, w.current = "none";
46713
+ ye(), W.current = !1, M(!1), C(0), D(!1), y.current = !1, v.current = 0, w.current = "none";
46714
46714
  const k = f.current;
46715
46715
  k && H(Er(k)), be < 0 ? l() : a();
46716
46716
  }, z = (be) => {
@@ -46720,11 +46720,11 @@ function Yx({
46720
46720
  }
46721
46721
  A(!0), C(0), j();
46722
46722
  }, J = (be) => {
46723
- if (be.touches.length !== 1 || N.current) return;
46723
+ if (be.touches.length !== 1 || W.current) return;
46724
46724
  const k = be.touches[0];
46725
46725
  x.current = !0, g.current = { x: k.clientX, y: k.clientY }, w.current = "none", v.current = 0, y.current = !1;
46726
46726
  }, ne = (be) => {
46727
- if (!g.current || be.touches.length !== 1 || N.current) return;
46727
+ if (!g.current || be.touches.length !== 1 || W.current) return;
46728
46728
  const k = be.touches[0], xe = k.clientX - g.current.x, ge = k.clientY - g.current.y;
46729
46729
  if (w.current === "none") {
46730
46730
  if (Math.abs(xe) < 10 && Math.abs(ge) < 10) return;
@@ -46789,7 +46789,7 @@ function Yx({
46789
46789
  }
46790
46790
  q.currentTarget.style.cursor = re < G.width / 2 ? "w-resize" : "e-resize";
46791
46791
  }, ae = Se((q) => {
46792
- q.propertyName !== "transform" || !N.current || (ye(), A(!1));
46792
+ q.propertyName !== "transform" || !W.current || (ye(), A(!1));
46793
46793
  }, [ye, A]), Be = pe ? `translateX(${E}px)` : S > 0 ? `translateY(${S}px)` : void 0, Re = {
46794
46794
  position: "fixed",
46795
46795
  top: U == null ? void 0 : U.top,
@@ -47010,7 +47010,7 @@ function _c({
47010
47010
  },
47011
47011
  ...u ? { cursor: "pointer", pointerEvents: "auto" } : {},
47012
47012
  ...f ? {} : w
47013
- }, W = {
47013
+ }, N = {
47014
47014
  className: b,
47015
47015
  style: x,
47016
47016
  onClick: u ? ($) => {
@@ -47019,7 +47019,7 @@ function _c({
47019
47019
  }, U = Math.max(l, Ri), H = $s(t) ? /* @__PURE__ */ c(
47020
47020
  "video",
47021
47021
  {
47022
- ...W,
47022
+ ...N,
47023
47023
  src: t.url,
47024
47024
  muted: !0,
47025
47025
  autoPlay: !0,
@@ -47029,7 +47029,7 @@ function _c({
47029
47029
  ) : /* @__PURE__ */ c(
47030
47030
  "img",
47031
47031
  {
47032
- ...W,
47032
+ ...N,
47033
47033
  src: t.url,
47034
47034
  alt: t.name ?? ""
47035
47035
  }
@@ -47350,12 +47350,12 @@ function iw({
47350
47350
  portalId: r
47351
47351
  }) {
47352
47352
  var ot;
47353
- const { prefix: a } = ln(), l = Ne(() => Ax(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", b = (e == null ? void 0 : e.imgWidth) ?? Ki, f = (e == null ? void 0 : e.titleWidth) ?? jx, m = Gx(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? Mx, h = (e == null ? void 0 : e.position) ?? "center", v = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleLeftPadding) ?? 0, y = (e == null ? void 0 : e.titleRightPadding) ?? 0, x = Zx(e == null ? void 0 : e.transition), N = (e == null ? void 0 : e.lightbox) ?? "on", W = u === "b", U = x === "fade" || x === "retype", { setTitleRef: H, dominantIndex: $ } = tw(s.length, U, h), B = ((ot = s[$]) == null ? void 0 : ot.title) ?? "", S = nw(B, x === "retype"), I = x === "fade" || x === "retype", E = x === "retype" ? S : B, C = W ? void 0 : { width: Z(b, n ?? !1) }, p = N === "on" && (!n || i || o), M = o ?? !1, R = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, D = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, oe = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, L = (lt) => Z(lt, n ?? !1), Y = {
47353
+ const { prefix: a } = ln(), l = Ne(() => Ax(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", b = (e == null ? void 0 : e.imgWidth) ?? Ki, f = (e == null ? void 0 : e.titleWidth) ?? jx, m = Gx(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? Mx, h = (e == null ? void 0 : e.position) ?? "center", v = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleLeftPadding) ?? 0, y = (e == null ? void 0 : e.titleRightPadding) ?? 0, x = Zx(e == null ? void 0 : e.transition), W = (e == null ? void 0 : e.lightbox) ?? "on", N = u === "b", U = x === "fade" || x === "retype", { setTitleRef: H, dominantIndex: $ } = tw(s.length, U, h), B = ((ot = s[$]) == null ? void 0 : ot.title) ?? "", S = nw(B, x === "retype"), I = x === "fade" || x === "retype", E = x === "retype" ? S : B, C = N ? void 0 : { width: Z(b, n ?? !1) }, p = W === "on" && (!n || i || o), M = o ?? !1, R = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, D = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, oe = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, L = (lt) => Z(lt, n ?? !1), Y = {
47354
47354
  width: L(f)
47355
- }, le = u === "a" ? R : D, pe = W ? { width: "100%" } : {
47355
+ }, le = u === "a" ? R : D, pe = N ? { width: "100%" } : {
47356
47356
  width: `calc(100% - ${L(b)} - ${L(le)})`,
47357
47357
  ...u === "c" ? { marginLeft: "auto" } : {}
47358
- }, A = Math.max(R, Ri), ye = Math.max(D, Ri), j = Math.max(oe, Ri), ue = Math.max(v, Ri), Q = Math.max(w, Ri), $e = Math.max(y, Ri), ze = Math.max(0, (d ?? 1) - (b ?? Ki)), we = u === "a" ? Math.max(0, (d ?? 1) - (b ?? Ki) - R) : u === "c" ? Math.max(0, (d ?? 1) - (b ?? Ki) - D) : u === "b" ? d ?? 1 : 1, de = M && (u === "a" || u === "b" || u === "c") && h === "top", ee = M && ((u === "a" || u === "b") && (h === "left" || h === "top") || u === "c" && (h === "left" || h === "top")), me = M && ((u === "c" || u === "b") && h === "right" || u === "a" && h === "right"), ae = s.length > 1, Be = W ? void 0 : L((u === "c" ? D : R) + (b ?? Ki)), Re = u === "c" && Be ? { left: Be } : void 0, P = u === "a" && Be ? { right: Be } : void 0, q = W ? { left: 0, width: "100%" } : u === "a" ? { right: L(R), width: L(b) } : { left: L(D), width: L(b) }, {
47358
+ }, A = Math.max(R, Ri), ye = Math.max(D, Ri), j = Math.max(oe, Ri), ue = Math.max(v, Ri), Q = Math.max(w, Ri), $e = Math.max(y, Ri), ze = Math.max(0, (d ?? 1) - (b ?? Ki)), we = u === "a" ? Math.max(0, (d ?? 1) - (b ?? Ki) - R) : u === "c" ? Math.max(0, (d ?? 1) - (b ?? Ki) - D) : u === "b" ? d ?? 1 : 1, de = M && (u === "a" || u === "b" || u === "c") && h === "top", ee = M && ((u === "a" || u === "b") && (h === "left" || h === "top") || u === "c" && (h === "left" || h === "top")), me = M && ((u === "c" || u === "b") && h === "right" || u === "a" && h === "right"), ae = s.length > 1, Be = N ? void 0 : L((u === "c" ? D : R) + (b ?? Ki)), Re = u === "c" && Be ? { left: Be } : void 0, P = u === "a" && Be ? { right: Be } : void 0, q = N ? { left: 0, width: "100%" } : u === "a" ? { right: L(R), width: L(b) } : { left: L(D), width: L(b) }, {
47359
47359
  titleColor: G,
47360
47360
  titleFontFamily: re,
47361
47361
  titleFontSettings: O,
@@ -47372,7 +47372,7 @@ function iw({
47372
47372
  lightboxCounterLineHeight: Ge,
47373
47373
  lightboxCounterLetterSpacing: fe,
47374
47374
  lightboxCounterWordSpacing: V,
47375
- lightboxCounterTextAppearance: We
47375
+ lightboxCounterTextAppearance: Fe
47376
47376
  } = e ?? {}, Oe = {
47377
47377
  fontSettings: {
47378
47378
  fontFamily: re,
@@ -47401,7 +47401,7 @@ function iw({
47401
47401
  lineHeight: Ge,
47402
47402
  letterSpacing: fe ?? 0,
47403
47403
  wordSpacing: V ?? 0,
47404
- textAppearance: We,
47404
+ textAppearance: Fe,
47405
47405
  color: xe ?? "#DEDDDD"
47406
47406
  }, Ue = {
47407
47407
  ...hn(nn(Le, n)),
@@ -47423,16 +47423,16 @@ function iw({
47423
47423
  return at && (lt["--cntrl-article-width"] = at), lt;
47424
47424
  }, [Ee, ce]);
47425
47425
  return ke(() => {
47426
- if (!ce || N !== "on" || typeof document > "u") return;
47426
+ if (!ce || W !== "on" || typeof document > "u") return;
47427
47427
  const lt = document.body.style.overflow;
47428
47428
  return document.body.style.overflow = "hidden", () => {
47429
47429
  document.body.style.overflow = lt;
47430
47430
  };
47431
- }, [ce, N]), ke(() => {
47431
+ }, [ce, W]), ke(() => {
47432
47432
  !n || o || i || Me(!1);
47433
47433
  }, [n, o, i]), ke(() => {
47434
- N === "off" && Me(!1);
47435
- }, [N]), /* @__PURE__ */ te(pt, { children: [
47434
+ W === "off" && Me(!1);
47435
+ }, [W]), /* @__PURE__ */ te(pt, { children: [
47436
47436
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: l } }),
47437
47437
  /* @__PURE__ */ c("div", { style: Ee, children: /* @__PURE__ */ te(
47438
47438
  "div",
@@ -47531,7 +47531,7 @@ function iw({
47531
47531
  }
47532
47532
  }
47533
47533
  ),
47534
- W ? /* @__PURE__ */ te("div", { className: `${a}-gallery`, children: [
47534
+ N ? /* @__PURE__ */ te("div", { className: `${a}-gallery`, children: [
47535
47535
  /* @__PURE__ */ c("div", { className: `${a}-gallery-media`, children: Rt.map(({ displayMedia: vt, lightboxMedia: Ot }, Vt) => {
47536
47536
  const Lt = Ot ? Ft.findIndex((jt) => jt.url === Ot.url) : -1;
47537
47537
  return /* @__PURE__ */ c(
@@ -47609,7 +47609,7 @@ function iw({
47609
47609
  ]
47610
47610
  }
47611
47611
  ) }),
47612
- ce && N === "on" && typeof document < "u" && e && (() => {
47612
+ ce && W === "on" && typeof document < "u" && e && (() => {
47613
47613
  const lt = (r ? document.getElementById(r) : null) ?? document.body;
47614
47614
  return gi(
47615
47615
  /* @__PURE__ */ c("div", { style: Ve, "data-selection": "none", children: /* @__PURE__ */ c(
@@ -50505,12 +50505,12 @@ function Dw({
50505
50505
  const { prefix: o } = ln(), r = X(null), a = ns(
50506
50506
  (e == null ? void 0 : e.width) ?? (e == null ? void 0 : e.spread) ?? (e == null ? void 0 : e.wrapperWidth),
50507
50507
  dw
50508
- ), l = ns(e == null ? void 0 : e.imageWidth, uw), s = ns(e == null ? void 0 : e.turnHeight, pw), d = zc(e == null ? void 0 : e.itemsPerTurn, mw, 3, 40), u = zc(e == null ? void 0 : e.turns, gw, 1, 30), b = Math.min(yw, Math.max(0, hw)), f = Math.min(1, Math.max(0, fw)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? Tu), g = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", h = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", v = (e == null ? void 0 : e.cornerRadius) ?? 0, w = (e == null ? void 0 : e.blur) !== "off", y = Ne(() => Cw(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), x = y.display === "cover", N = (pe) => Z(pe, n ?? !1), W = Ne(() => Iw(b), [b]), U = Ne(
50508
+ ), l = ns(e == null ? void 0 : e.imageWidth, uw), s = ns(e == null ? void 0 : e.turnHeight, pw), d = zc(e == null ? void 0 : e.itemsPerTurn, mw, 3, 40), u = zc(e == null ? void 0 : e.turns, gw, 1, 30), b = Math.min(yw, Math.max(0, hw)), f = Math.min(1, Math.max(0, fw)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? Tu), g = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", h = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", v = (e == null ? void 0 : e.cornerRadius) ?? 0, w = (e == null ? void 0 : e.blur) !== "off", y = Ne(() => Cw(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), x = y.display === "cover", W = (pe) => Z(pe, n ?? !1), N = Ne(() => Iw(b), [b]), U = Ne(
50509
50509
  () => Pw(a, l, x, f),
50510
50510
  [a, l, x, f]
50511
50511
  ), H = Ne(
50512
- () => $w(o, Fw(o, N, a, U, b, W, x, w)),
50513
- [o, a, U, b, W, x, w, n]
50512
+ () => $w(o, Fw(o, W, a, U, b, N, x, w)),
50513
+ [o, a, U, b, N, x, w, n]
50514
50514
  ), $ = Ne(
50515
50515
  () => (t ?? []).filter((pe) => {
50516
50516
  var A;
@@ -50535,7 +50535,7 @@ function Dw({
50535
50535
  const Y = D ? Ow(L, m, g) : 0, le = R && h === "autoplay" ? 360 / (m * sw) : 0;
50536
50536
  return $.length === 0 ? /* @__PURE__ */ te(pt, { children: [
50537
50537
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: H } }),
50538
- /* @__PURE__ */ c("div", { className: `${o}-wrapper`, style: { width: N(a), marginInline: "auto" } })
50538
+ /* @__PURE__ */ c("div", { className: `${o}-wrapper`, style: { width: W(a), marginInline: "auto" } })
50539
50539
  ] }) : /* @__PURE__ */ te(pt, { children: [
50540
50540
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: H } }),
50541
50541
  /* @__PURE__ */ c(
@@ -50544,16 +50544,16 @@ function Dw({
50544
50544
  ref: r,
50545
50545
  className: `${o}-wrapper`,
50546
50546
  style: {
50547
- width: N(a),
50548
- height: N(M),
50547
+ width: W(a),
50548
+ height: W(M),
50549
50549
  marginInline: "auto"
50550
50550
  },
50551
50551
  children: Array.from({ length: C }, (pe, A) => {
50552
- const ye = A - E, ue = $[Fu(ye, $.length)].image, Q = gl(ye, d), $e = _w(ye, d), ze = D ? _u($e + Y) : $e, we = Nw(ye, d, s, B), de = f === 0 ? 0 : (Bc(Q + 7.3) - 0.5) * f * B, ee = x ? 1 : 1 + (Bc(Q + 3.1) - 0.5) * 2 * Lu * (0.35 + f), me = ze * Math.PI * 2, { offset: ae, scale: Be } = Ru(b, W, me), Re = l * ee, P = Ew(Re, Be), q = Pu(a, U, ae), G = {
50553
- "--helix-base-w": N(Re),
50554
- ...x ? { "--helix-base-h": N(S) } : {}
50552
+ const ye = A - E, ue = $[Fu(ye, $.length)].image, Q = gl(ye, d), $e = _w(ye, d), ze = D ? _u($e + Y) : $e, we = Nw(ye, d, s, B), de = f === 0 ? 0 : (Bc(Q + 7.3) - 0.5) * f * B, ee = x ? 1 : 1 + (Bc(Q + 3.1) - 0.5) * 2 * Lu * (0.35 + f), me = ze * Math.PI * 2, { offset: ae, scale: Be } = Ru(b, N, me), Re = l * ee, P = Ew(Re, Be), q = Pu(a, U, ae), G = {
50553
+ "--helix-base-w": W(Re),
50554
+ ...x ? { "--helix-base-h": W(S) } : {}
50555
50555
  }, re = {
50556
- top: N(we + de),
50556
+ top: W(we + de),
50557
50557
  transform: "translateY(-50%)",
50558
50558
  ...G,
50559
50559
  ...oe ? {
@@ -50561,14 +50561,14 @@ function Dw({
50561
50561
  animationDelay: Hw($e, le, g),
50562
50562
  animationDirection: g === "left" ? "reverse" : "normal"
50563
50563
  } : {
50564
- left: Mw(N, q, P),
50565
- width: N(P),
50566
- ...x ? { height: N(S * Be) } : {},
50564
+ left: Mw(W, q, P),
50565
+ width: W(P),
50566
+ ...x ? { height: W(S * Be) } : {},
50567
50567
  zIndex: Mu(Be),
50568
50568
  opacity: Au(me),
50569
50569
  filter: ku(me, w)
50570
50570
  }
50571
- }, O = v > 0 ? { borderRadius: N(v) } : {}, z = x ? {
50571
+ }, O = v > 0 ? { borderRadius: W(v) } : {}, z = x ? {
50572
50572
  ...O,
50573
50573
  width: "100%",
50574
50574
  height: "100%",
@@ -51632,8 +51632,8 @@ function uS(e, t, n, i, o, r, a) {
51632
51632
  const oe = Math.sqrt(v);
51633
51633
  l *= oe, s *= oe;
51634
51634
  }
51635
- const w = o === r ? -1 : 1, y = l * l * h * h + s * s * g * g, x = Math.max(0, l * l * s * s - y), N = y === 0 ? 0 : w * Math.sqrt(x / y), W = N * l * h / s, U = -N * s * g / l, H = u * W - b * U + (e.x + a.x) / 2, $ = b * W + u * U + (e.y + a.y) / 2, B = Math.atan2((h - U) / s, (g - W) / l);
51636
- let I = Math.atan2((-h - U) / s, (-g - W) / l) - B;
51635
+ const w = o === r ? -1 : 1, y = l * l * h * h + s * s * g * g, x = Math.max(0, l * l * s * s - y), W = y === 0 ? 0 : w * Math.sqrt(x / y), N = W * l * h / s, U = -W * s * g / l, H = u * N - b * U + (e.x + a.x) / 2, $ = b * N + u * U + (e.y + a.y) / 2, B = Math.atan2((h - U) / s, (g - N) / l);
51636
+ let I = Math.atan2((-h - U) / s, (-g - N) / l) - B;
51637
51637
  !r && I > 0 && (I -= Math.PI * 2), r && I < 0 && (I += Math.PI * 2);
51638
51638
  const E = Math.max(1, Math.ceil(Math.abs(I) / (Math.PI / 2))), C = I / E, p = 4 / 3 * Math.tan(C / 4), M = (oe, L) => ({
51639
51639
  x: H + u * l * oe - b * s * L,
@@ -51691,31 +51691,31 @@ function mi(e) {
51691
51691
  l = null, s = null;
51692
51692
  } else if (g === "C") {
51693
51693
  for (let y = 0; y + 5 < v.length; y += 6) {
51694
- const x = w(y), N = w(y + 2), W = w(y + 4);
51695
- b(x), u(W, N), l = N;
51694
+ const x = w(y), W = w(y + 2), N = w(y + 4);
51695
+ b(x), u(N, W), l = W;
51696
51696
  }
51697
51697
  s = null;
51698
51698
  } else if (g === "S") {
51699
51699
  for (let y = 0; y + 3 < v.length; y += 4) {
51700
- const x = l ? Is(l, r) : mn(r), N = w(y), W = w(y + 2);
51701
- b(x), u(W, N), l = N;
51700
+ const x = l ? Is(l, r) : mn(r), W = w(y), N = w(y + 2);
51701
+ b(x), u(N, W), l = W;
51702
51702
  }
51703
51703
  s = null;
51704
51704
  } else if (g === "Q")
51705
51705
  for (let y = 0; y + 3 < v.length; y += 4) {
51706
- const x = w(y), N = w(y + 2);
51707
- b($n(r, x, 2 / 3)), u(N, $n(N, x, 2 / 3)), s = x, l = null;
51706
+ const x = w(y), W = w(y + 2);
51707
+ b($n(r, x, 2 / 3)), u(W, $n(W, x, 2 / 3)), s = x, l = null;
51708
51708
  }
51709
51709
  else if (g === "T")
51710
51710
  for (let y = 0; y + 1 < v.length; y += 2) {
51711
- const x = s ? Is(s, r) : mn(r), N = w(y);
51712
- b($n(r, x, 2 / 3)), u(N, $n(N, x, 2 / 3)), s = x, l = null;
51711
+ const x = s ? Is(s, r) : mn(r), W = w(y);
51712
+ b($n(r, x, 2 / 3)), u(W, $n(W, x, 2 / 3)), s = x, l = null;
51713
51713
  }
51714
51714
  else if (g === "A")
51715
51715
  for (let y = 0; y + 6 < v.length; y += 7) {
51716
51716
  const x = h ? { x: r.x + v[y + 5], y: r.y + v[y + 6] } : { x: v[y + 5], y: v[y + 6] };
51717
- for (const N of uS(r, v[y], v[y + 1], v[y + 2], v[y + 3] !== 0, v[y + 4] !== 0, x))
51718
- b(N.c1), u(N.p, N.c2);
51717
+ for (const W of uS(r, v[y], v[y + 1], v[y + 2], v[y + 3] !== 0, v[y + 4] !== 0, x))
51718
+ b(W.c1), u(W.p, W.c2);
51719
51719
  l = null, s = null;
51720
51720
  }
51721
51721
  f = os.exec(t);
@@ -52050,13 +52050,13 @@ function RS(e, t, n, i, o, r, a) {
52050
52050
  }
52051
52051
  const v = i !== null && i > 0 && Math.abs(b - i) <= rS;
52052
52052
  if (g === null && !v) return { point: e, guides: Qi };
52053
- const w = g ?? f, y = v ? i : b, x = { x: Math.cos(w), y: Math.sin(w) }, N = y + (g === null ? 0 : Ji), W = v ? y : h ? Ji : 0;
52053
+ const w = g ?? f, y = v ? i : b, x = { x: Math.cos(w), y: Math.sin(w) }, W = y + (g === null ? 0 : Ji), N = v ? y : h ? Ji : 0;
52054
52054
  return {
52055
52055
  point: a({ x: l.x + x.x * y, y: l.y + x.y * y }),
52056
52056
  guides: [{
52057
52057
  kind: "angle",
52058
- a: { x: l.x - x.x * W, y: l.y - x.y * W },
52059
- b: { x: l.x + x.x * N, y: l.y + x.y * N }
52058
+ a: { x: l.x - x.x * N, y: l.y - x.y * N },
52059
+ b: { x: l.x + x.x * W, y: l.y + x.y * W }
52060
52060
  }]
52061
52061
  };
52062
52062
  }
@@ -52091,17 +52091,19 @@ const Es = 0.1, As = 8, PS = 4, id = 10, ra = (e, t) => {
52091
52091
  }, Fs = (e, t) => !(t.width > 0) || !(t.height > 0) || !(e.width > 0) || !(e.height > 0) ? 1 : Math.max(e.width / t.width, e.height / t.height), Ei = (e, t, n) => {
52092
52092
  const i = Fs(e, t) * n;
52093
52093
  return { width: t.width * i, height: t.height * i };
52094
- }, Nn = (e, t, n) => (e - t) * n, eo = (e, t, n) => {
52095
- const i = e - t;
52096
- return Math.abs(i) < PS ? 0.5 : ia(n / i);
52094
+ }, Nn = (e, t, n) => (e - t) * n, eo = (e, t, n, i) => {
52095
+ const o = e - t;
52096
+ if (Math.abs(o) < 1e-6) return 0.5;
52097
+ const r = n / o;
52098
+ return (i == null ? void 0 : i.clamp) === !1 ? r : Math.abs(o) < PS ? 0.5 : ia(r);
52097
52099
  }, MS = (e, t, n, i, o, r) => {
52098
52100
  const a = Ei(e, n, r), l = e.x + Nn(e.width, a.width, i), s = e.y + Nn(e.height, a.height, o), d = Fs(e, n), u = Fs(t, n), b = Math.min(
52099
52101
  As,
52100
52102
  Math.max(Es, u > 0 ? r * (d / u) : r)
52101
52103
  ), f = Ei(t, n, b);
52102
52104
  return {
52103
- focalX: eo(t.width, f.width, l - t.x),
52104
- focalY: eo(t.height, f.height, s - t.y),
52105
+ focalX: eo(t.width, f.width, l - t.x, { clamp: !1 }),
52106
+ focalY: eo(t.height, f.height, s - t.y, { clamp: !1 }),
52105
52107
  scale: b
52106
52108
  };
52107
52109
  }, od = 1.08, kr = 14, Fr = 8;
@@ -52120,7 +52122,7 @@ function ES({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52120
52122
  x: (C - M.left) / M.width * t.width,
52121
52123
  y: (p - M.top) / M.height * t.height
52122
52124
  };
52123
- }, [t.width, t.height]), N = (C) => {
52125
+ }, [t.width, t.height]), W = (C) => {
52124
52126
  var M, R;
52125
52127
  if (!i) return;
52126
52128
  C.stopPropagation(), C.preventDefault(), (M = m.current) == null || M.focus({ preventScroll: !0 });
@@ -52134,7 +52136,7 @@ function ES({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52134
52136
  height: p.height,
52135
52137
  moved: !1
52136
52138
  }, (R = m.current) == null || R.setPointerCapture(C.pointerId);
52137
- }, W = (C, p) => {
52139
+ }, N = (C, p) => {
52138
52140
  var le, pe;
52139
52141
  if (!i) return;
52140
52142
  C.stopPropagation(), C.preventDefault(), (le = m.current) == null || le.focus({ preventScroll: !0 });
@@ -52284,7 +52286,7 @@ function ES({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52284
52286
  y: n.y,
52285
52287
  width: n.width,
52286
52288
  height: n.height,
52287
- onPointerDown: N
52289
+ onPointerDown: W
52288
52290
  }
52289
52291
  ),
52290
52292
  B.map((C) => {
@@ -52308,7 +52310,7 @@ function ES({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52308
52310
  y: p.y - kr / 2,
52309
52311
  width: kr,
52310
52312
  height: kr,
52311
- onPointerDown: (R) => W(R, C)
52313
+ onPointerDown: (R) => N(R, C)
52312
52314
  }
52313
52315
  )
52314
52316
  ] }, C);
@@ -52322,14 +52324,14 @@ const AS = 36, ko = 7, kS = 4, Fo = 9, FS = 3.5, rd = 1.08, _S = 0.05, _r = 14,
52322
52324
  function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, uniformStretch: a = !1, stage: l, onStageChange: s, onSelectionChange: d, onChange: u, onCommit: b }) {
52323
52325
  const f = X(null), m = X(null), g = X(i);
52324
52326
  g.current = i;
52325
- const h = X(null), v = X(null), w = X(null), y = X(null), [x, N] = ie([]), [W, U] = ie(Qi), H = Se((P) => {
52327
+ const h = X(null), v = X(null), w = X(null), y = X(null), [x, W] = ie([]), [N, U] = ie(Qi), H = Se((P) => {
52326
52328
  U((q) => $S(q, P) ? q : P);
52327
52329
  }, []), $ = l === "shape";
52328
52330
  ke(() => {
52329
52331
  var P;
52330
52332
  $ && ((P = f.current) == null || P.focus({ preventScroll: !0 }));
52331
52333
  }, [$]), ke(() => {
52332
- $ || N((P) => P.length ? [] : P);
52334
+ $ || W((P) => P.length ? [] : P);
52333
52335
  }, [$]);
52334
52336
  const B = x.length > 0;
52335
52337
  ke(() => {
@@ -52385,30 +52387,30 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52385
52387
  const q = P.metaKey || P.ctrlKey, G = w.current;
52386
52388
  if (G && P.pointerId === G.pointerId) {
52387
52389
  if (P.stopPropagation(), P.preventDefault(), G.startDistance <= 0) return;
52388
- const fe = _(P.clientX, P.clientY), V = Math.hypot(fe.x - G.origin.x, fe.y - G.origin.y), We = Math.max(_S, V / G.startDistance);
52389
- if (!G.moved && Math.abs(We - 1) < 1e-4) return;
52390
- G.moved = !0, u(Kc(G.startContours, G.origin, We));
52390
+ const fe = _(P.clientX, P.clientY), V = Math.hypot(fe.x - G.origin.x, fe.y - G.origin.y), Fe = Math.max(_S, V / G.startDistance);
52391
+ if (!G.moved && Math.abs(Fe - 1) < 1e-4) return;
52392
+ G.moved = !0, u(Kc(G.startContours, G.origin, Fe));
52391
52393
  return;
52392
52394
  }
52393
52395
  const re = v.current;
52394
52396
  if (re && P.pointerId === re.pointerId) {
52395
52397
  P.stopPropagation(), P.preventDefault();
52396
- const fe = _(P.clientX, P.clientY), { bbox: V } = re, We = V.maxX - V.minX, Oe = V.maxY - V.minY, dt = fe.x - re.origin.x, it = fe.y - re.origin.y;
52398
+ const fe = _(P.clientX, P.clientY), { bbox: V } = re, Fe = V.maxX - V.minX, Oe = V.maxY - V.minY, dt = fe.x - re.origin.x, it = fe.y - re.origin.y;
52397
52399
  let ut = dt, st = it;
52398
- if (isFinite(We) && isFinite(Oe))
52400
+ if (isFinite(Fe) && isFinite(Oe))
52399
52401
  if (r) {
52400
52402
  let Le = n.x, He = n.x + n.width, Ue = n.y, tt = n.y + n.height;
52401
52403
  a && (C > 0 && (Le = n.x + (0 - M) / C, He = n.x + (t.width - M) / C), p > 0 && (Ue = n.y + (0 - R) / p, tt = n.y + (t.height - R) / p));
52402
- const Ee = Math.min(Le, He - We), Xe = Math.max(Le, He - We), ce = Math.min(Ue, tt - Oe), Me = Math.max(Ue, tt - Oe), Ze = Math.min(Xe, Math.max(Ee, V.minX + dt)), Ce = Math.min(Me, Math.max(ce, V.minY + it));
52404
+ const Ee = Math.min(Le, He - Fe), Xe = Math.max(Le, He - Fe), ce = Math.min(Ue, tt - Oe), Me = Math.max(Ue, tt - Oe), Ze = Math.min(Xe, Math.max(Ee, V.minX + dt)), Ce = Math.min(Me, Math.max(ce, V.minY + it));
52403
52405
  ut = Ze - V.minX, st = Ce - V.minY;
52404
52406
  } else {
52405
- const Le = V.minX - n.x, He = V.minY - n.y, Ue = Math.min(0, t.width - We), tt = Math.max(0, t.width - We), Ee = Math.min(0, t.height - Oe), Xe = Math.max(0, t.height - Oe), ce = Math.min(tt, Math.max(Ue, Le + dt)), Me = Math.min(Xe, Math.max(Ee, He + it));
52407
+ const Le = V.minX - n.x, He = V.minY - n.y, Ue = Math.min(0, t.width - Fe), tt = Math.max(0, t.width - Fe), Ee = Math.min(0, t.height - Oe), Xe = Math.max(0, t.height - Oe), ce = Math.min(tt, Math.max(Ue, Le + dt)), Me = Math.min(Xe, Math.max(Ee, He + it));
52406
52408
  ut = ce - Le, st = Me - He;
52407
52409
  }
52408
52410
  const qe = [];
52409
- if (!q && isFinite(We) && isFinite(Oe)) {
52410
- const Le = D({ x: V.minX + We / 2 + ut, y: V.minY + Oe / 2 + st }), He = { x: t.width / 2, y: t.height / 2 };
52411
- Math.abs(Le.x - He.x) <= _r && (ut = L.x - V.minX - We / 2, qe.push(Ms(He.x, "x", t))), Math.abs(Le.y - He.y) <= _r && (st = L.y - V.minY - Oe / 2, qe.push(Ms(He.y, "y", t)));
52411
+ if (!q && isFinite(Fe) && isFinite(Oe)) {
52412
+ const Le = D({ x: V.minX + Fe / 2 + ut, y: V.minY + Oe / 2 + st }), He = { x: t.width / 2, y: t.height / 2 };
52413
+ Math.abs(Le.x - He.x) <= _r && (ut = L.x - V.minX - Fe / 2, qe.push(Ms(He.x, "x", t))), Math.abs(Le.y - He.y) <= _r && (st = L.y - V.minY - Oe / 2, qe.push(Ms(He.y, "y", t)));
52412
52414
  }
52413
52415
  if (!re.moved && ut === 0 && st === 0) return;
52414
52416
  re.moved = !0, H(qe.length ? qe : Qi), u(
@@ -52421,9 +52423,9 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52421
52423
  if (O && P.pointerId === O.pointerId) {
52422
52424
  P.stopPropagation(), P.preventDefault();
52423
52425
  const fe = _(P.clientX, P.clientY);
52424
- let V = fe.x - O.origin.x, We = fe.y - O.origin.y;
52425
- if (P.shiftKey && (Math.abs(V) > Math.abs(We) ? We = 0 : V = 0), !O.moved && V === 0 && We === 0) return;
52426
- O.moved = !0, u(Jc(O.startContours, O.selection, V, We));
52426
+ let V = fe.x - O.origin.x, Fe = fe.y - O.origin.y;
52427
+ if (P.shiftKey && (Math.abs(V) > Math.abs(Fe) ? Fe = 0 : V = 0), !O.moved && V === 0 && Fe === 0) return;
52428
+ O.moved = !0, u(Jc(O.startContours, O.selection, V, Fe));
52427
52429
  return;
52428
52430
  }
52429
52431
  const z = h.current;
@@ -52434,7 +52436,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52434
52436
  const fe = {
52435
52437
  x: z.anchor.x + (J.x - z.origin.x),
52436
52438
  y: z.anchor.y + (J.y - z.origin.y)
52437
- }, V = q ? [] : SS(g.current, { contour: z.contour, node: z.node }), We = q || !z.center ? [] : [z.center], Oe = td(ed(V, We.map((ut) => ut.x), "x"), fe, "x", D, _r), dt = td(ed(V, We.map((ut) => ut.y), "y"), fe, "y", D, _r), it = q ? fe : {
52439
+ }, V = q ? [] : SS(g.current, { contour: z.contour, node: z.node }), Fe = q || !z.center ? [] : [z.center], Oe = td(ed(V, Fe.map((ut) => ut.x), "x"), fe, "x", D, _r), dt = td(ed(V, Fe.map((ut) => ut.y), "y"), fe, "y", D, _r), it = q ? fe : {
52438
52440
  x: (Oe == null ? void 0 : Oe.value) ?? Ar(fe.x, o),
52439
52441
  y: (dt == null ? void 0 : dt.value) ?? Ar(fe.y, o)
52440
52442
  };
@@ -52465,7 +52467,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52465
52467
  if (G && P.pointerId === G.pointerId) {
52466
52468
  v.current = null, P.stopPropagation();
52467
52469
  const be = f.current;
52468
- be != null && be.hasPointerCapture(G.pointerId) && be.releasePointerCapture(G.pointerId), G.moved ? le(g.current, { preserveShape: !0 }) : N([]);
52470
+ be != null && be.hasPointerCapture(G.pointerId) && be.releasePointerCapture(G.pointerId), G.moved ? le(g.current, { preserveShape: !0 }) : W([]);
52469
52471
  return;
52470
52472
  }
52471
52473
  const re = y.current;
@@ -52501,7 +52503,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52501
52503
  }, (G = f.current) == null || G.setPointerCapture(P.pointerId);
52502
52504
  }, ue = (P, q) => {
52503
52505
  var J, ne;
52504
- P.stopPropagation(), P.preventDefault(), (J = f.current) == null || J.focus({ preventScroll: !0 }), N([]), s("shape");
52506
+ P.stopPropagation(), P.preventDefault(), (J = f.current) == null || J.focus({ preventScroll: !0 }), W([]), s("shape");
52505
52507
  const G = li(i), re = ra(G, Vu(q)), O = ks(G, q), z = Math.hypot(O.x - re.x, O.y - re.y);
52506
52508
  !isFinite(z) || z <= 0 || (w.current = {
52507
52509
  pointerId: P.pointerId,
@@ -52519,12 +52521,12 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52519
52521
  if (P.altKey) {
52520
52522
  const k = q === "anchor" ? Bu(i, G, re) : vS(i, G, re, q);
52521
52523
  if (k === i) return;
52522
- N(q === "anchor" ? [] : [{ contour: G, node: re }]), u(k), le(k);
52524
+ W(q === "anchor" ? [] : [{ contour: G, node: re }]), u(k), le(k);
52523
52525
  return;
52524
52526
  }
52525
52527
  const z = P.metaKey || P.ctrlKey;
52526
52528
  if (q === "anchor" && P.shiftKey && !z) {
52527
- N((k) => k.some((xe) => xe.contour === G && xe.node === re) ? k.filter((xe) => !(xe.contour === G && xe.node === re)) : [...k, { contour: G, node: re }]);
52529
+ W((k) => k.some((xe) => xe.contour === G && xe.node === re) ? k.filter((xe) => !(xe.contour === G && xe.node === re)) : [...k, { contour: G, node: re }]);
52528
52530
  return;
52529
52531
  }
52530
52532
  if (q === "anchor" && !z && x.length > 1 && x.some((k) => k.contour === G && k.node === re)) {
@@ -52537,7 +52539,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52537
52539
  }, (Ie = f.current) == null || Ie.setPointerCapture(P.pointerId);
52538
52540
  return;
52539
52541
  }
52540
- N([{ contour: G, node: re }]), h.current = {
52542
+ W([{ contour: G, node: re }]), h.current = {
52541
52543
  kind: q,
52542
52544
  contour: G,
52543
52545
  node: re,
@@ -52555,7 +52557,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52555
52557
  const q = gn(i, D), G = wS(q, Y(P.clientX, P.clientY));
52556
52558
  if (!G || G.distance > AS) return;
52557
52559
  const { contours: re, nodeIndex: O } = bS(i, G.contour, G.segment, G.t);
52558
- O < 0 || (N([{ contour: G.contour, node: O }]), u(re), le(re));
52560
+ O < 0 || (W([{ contour: G.contour, node: O }]), u(re), le(re));
52559
52561
  }, ze = (P) => {
52560
52562
  if (P.key === "=" || P.key === "+" || P.key === "-" || P.key === "_") {
52561
52563
  P.preventDefault(), P.stopPropagation();
@@ -52566,7 +52568,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52566
52568
  return;
52567
52569
  }
52568
52570
  if (P.key === "Escape") {
52569
- P.stopPropagation(), N([]), s("none");
52571
+ P.stopPropagation(), W([]), s("none");
52570
52572
  return;
52571
52573
  }
52572
52574
  if (!x.length) return;
@@ -52574,7 +52576,7 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52574
52576
  P.preventDefault(), P.stopPropagation();
52575
52577
  const z = fS(i, x);
52576
52578
  if (z === i) return;
52577
- N([]), u(z), le(z);
52579
+ W([]), u(z), le(z);
52578
52580
  return;
52579
52581
  }
52580
52582
  const q = o > 0 ? o : WS, G = P.shiftKey ? q * 10 : q, re = { ArrowLeft: [-G, 0], ArrowRight: [G, 0], ArrowUp: [0, -G], ArrowDown: [0, G] }[P.key];
@@ -52617,14 +52619,14 @@ function NS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52617
52619
  width: t.width,
52618
52620
  height: t.height,
52619
52621
  onPointerDown: () => {
52620
- N([]), s("none");
52622
+ W([]), s("none");
52621
52623
  },
52622
52624
  onClick: $e
52623
52625
  }
52624
52626
  ),
52625
52627
  Re && /* @__PURE__ */ c("path", { className: `${e}-editor-hit`, d: we, onClick: $e }),
52626
52628
  Re && /* @__PURE__ */ c("path", { className: `${e}-editor-outline`, d: we }),
52627
- Re && W.map((P, q) => /* @__PURE__ */ c(
52629
+ Re && N.map((P, q) => /* @__PURE__ */ c(
52628
52630
  "line",
52629
52631
  {
52630
52632
  className: `${e}-editor-snap ${e}-editor-snap-${P.kind}`,
@@ -52812,17 +52814,17 @@ function sd(e) {
52812
52814
  if (!t.length || l <= 0 || f <= 0)
52813
52815
  return { segments: g, placed: 0, height: 0, capLeft: 0, capTop: 0 };
52814
52816
  const h = Math.max(1, m * 0.5), v = f * Gw;
52815
- let w = 0, y = 0, x = 0, N = t[0].para, W = 0, U = 0, H = null;
52817
+ let w = 0, y = 0, x = 0, W = t[0].para, N = 0, U = 0, H = null;
52816
52818
  for (; w < t.length && x < HS; ) {
52817
52819
  const $ = y + f > s;
52818
52820
  if ($ && !d) break;
52819
52821
  const B = t[w].para;
52820
- if (B > N + 1) {
52821
- y += f * (B - N - 1), N = B - 1, x += 1;
52822
+ if (B > W + 1) {
52823
+ y += f * (B - W - 1), W = B - 1, x += 1;
52822
52824
  continue;
52823
52825
  }
52824
52826
  let S = $ ? [{ x0: 0, x1: l }] : Qw(i, (y + v) / s, (y + f - v) / s, o).map((E) => ({ x0: E.x0 * l, x1: E.x1 * l }));
52825
- u > 0 && b > 0 && !$ && S.length && (H === null && (H = x, W = S[0].x0, U = y), x - H < b && (S = Jw(S, { x0: W, x1: W + u })));
52827
+ u > 0 && b > 0 && !$ && S.length && (H === null && (H = x, N = S[0].x0, U = y), x - H < b && (S = Jw(S, { x0: N, x1: N + u })));
52826
52828
  const I = S.reduce((E, C) => Math.max(E, C.x1 - C.x0), 0);
52827
52829
  for (const E of S) {
52828
52830
  const C = E.x1 - E.x0;
@@ -52849,9 +52851,9 @@ function sd(e) {
52849
52851
  }
52850
52852
  if (w >= t.length || t[w].para !== B) break;
52851
52853
  }
52852
- N = B, y += f, x += 1;
52854
+ W = B, y += f, x += 1;
52853
52855
  }
52854
- return { segments: g, placed: w, height: g.length ? y : 0, capLeft: W, capTop: U };
52856
+ return { segments: g, placed: w, height: g.length ? y : 0, capLeft: N, capTop: U };
52855
52857
  }
52856
52858
  const VS = 0.12, jS = 2, GS = 10, as = 0.25, qS = (e) => {
52857
52859
  const t = e.getBoundingClientRect();
@@ -52902,8 +52904,8 @@ function KS({
52902
52904
  imageFocalX: w,
52903
52905
  imageFocalY: y,
52904
52906
  imageScale: x,
52905
- imageCustomPath: N,
52906
- pathDragActive: W,
52907
+ imageCustomPath: W,
52908
+ pathDragActive: N,
52907
52909
  pathCarryImage: U,
52908
52910
  onCarryImageConsumed: H,
52909
52911
  pathEditor: $,
@@ -52963,9 +52965,9 @@ function KS({
52963
52965
  return n === "circle" ? ss(Pe, p) : Pe;
52964
52966
  }
52965
52967
  }
52966
- const ce = N.trim(), Me = ce ? qc(ce, o, r) : null, Ze = Me && Me.length ? Me : Ls(n === "custom" ? "rectangle" : n);
52968
+ const ce = W.trim(), Me = ce ? qc(ce, o, r) : null, Ze = Me && Me.length ? Me : Ls(n === "custom" ? "rectangle" : n);
52967
52969
  return n === "circle" ? ss(Ze, p) : Ze;
52968
- }, [Q, n, N, o, r, p.width, p.height]), Re = Ne(() => {
52970
+ }, [Q, n, W, o, r, p.width, p.height]), Re = Ne(() => {
52969
52971
  if (!de || p.width <= 0 || p.height <= 0) return Be;
52970
52972
  const ce = ee ?? p, Me = r.width / ce.width, Ze = r.height / ce.height;
52971
52973
  return Be.map((Ce) => Ce.map((Pe) => ({ x: Pe.x * Me, y: Pe.y * Ze })));
@@ -53090,9 +53092,9 @@ function KS({
53090
53092
  const fe = Ne(
53091
53093
  () => v && p.width > 0 && p.height > 0 ? qw(Re, p) : null,
53092
53094
  [v, Re, p.width, p.height]
53093
- ), V = X(null), We = (() => {
53095
+ ), V = X(null), Fe = (() => {
53094
53096
  const ce = V.current;
53095
- return W || U || !B || !le || !fe || !ce || N === ce.customPath || ce.shape !== n && !(ce.shape === "circle" && n === "custom") ? null : MS(
53097
+ return U || !B || !le || !fe || !ce || W === ce.customPath || ce.shape !== n && n !== "custom" ? null : MS(
53096
53098
  ce.bounds,
53097
53099
  fe,
53098
53100
  le,
@@ -53102,21 +53104,21 @@ function KS({
53102
53104
  );
53103
53105
  })();
53104
53106
  Hr(() => {
53105
- if (W || !B || !le || !fe) return;
53106
- const ce = V.current, Me = !!(ce && N !== ce.customPath);
53107
- Me && We && B.onCommit(We), Me && U && (H == null || H()), V.current = {
53107
+ if (N || !B || !le || !fe) return;
53108
+ const ce = V.current, Me = !!(ce && W !== ce.customPath);
53109
+ Me && Fe && B.onCommit(Fe), Me && U && (H == null || H()), V.current = {
53108
53110
  rings: Re,
53109
53111
  bounds: fe,
53110
- focalX: (We == null ? void 0 : We.focalX) ?? w,
53111
- focalY: (We == null ? void 0 : We.focalY) ?? y,
53112
- scale: (We == null ? void 0 : We.scale) ?? x,
53113
- customPath: N,
53112
+ focalX: (Fe == null ? void 0 : Fe.focalX) ?? w,
53113
+ focalY: (Fe == null ? void 0 : Fe.focalY) ?? y,
53114
+ scale: (Fe == null ? void 0 : Fe.scale) ?? x,
53115
+ customPath: W,
53114
53116
  shape: n
53115
53117
  };
53116
53118
  }, [
53117
- W,
53118
- U,
53119
53119
  N,
53120
+ U,
53121
+ W,
53120
53122
  n,
53121
53123
  Re,
53122
53124
  fe,
@@ -53125,10 +53127,10 @@ function KS({
53125
53127
  w,
53126
53128
  y,
53127
53129
  x,
53128
- We,
53130
+ Fe,
53129
53131
  H
53130
53132
  ]);
53131
- const Oe = V.current, dt = !!(W && !U && Oe), it = dt && Oe ? Oe.focalX : (We == null ? void 0 : We.focalX) ?? w, ut = dt && Oe ? Oe.focalY : (We == null ? void 0 : We.focalY) ?? y, st = dt && Oe ? Oe.scale : (We == null ? void 0 : We.scale) ?? x, qe = dt && Oe ? Oe.bounds : fe, Le = Ne(() => {
53133
+ const Oe = V.current, dt = !!(N && !U && Oe && !Fe), it = dt && Oe ? Oe.focalX : (Fe == null ? void 0 : Fe.focalX) ?? w, ut = dt && Oe ? Oe.focalY : (Fe == null ? void 0 : Fe.focalY) ?? y, st = dt && Oe ? Oe.scale : (Fe == null ? void 0 : Fe.scale) ?? x, qe = dt && Oe ? Oe.bounds : fe, Le = Ne(() => {
53132
53134
  if (!(p.width > 0) || !(p.height > 0)) return "";
53133
53135
  let ce = Uc(i, Q, o, r, n, p);
53134
53136
  if (de) {
@@ -53149,7 +53151,7 @@ function KS({
53149
53151
  ae
53150
53152
  ]), He = Ne(() => {
53151
53153
  if (!v || !(p.width > 0) || !(p.height > 0)) return "";
53152
- let ce = Uc(N, Q, o, r, n, p);
53154
+ let ce = Uc(W, Q, o, r, n, p);
53153
53155
  if (de) {
53154
53156
  const Me = ee ?? p, Ze = r.width / Me.width, Ce = r.height / Me.height;
53155
53157
  ce = gn(ce, (Pe) => ({ x: Pe.x * Ze, y: Pe.y * Ce }));
@@ -53157,7 +53159,7 @@ function KS({
53157
53159
  return Yc(ce, p) || Gc(Re, p);
53158
53160
  }, [
53159
53161
  v,
53160
- N,
53162
+ W,
53161
53163
  Q,
53162
53164
  o,
53163
53165
  r,
@@ -53550,7 +53552,7 @@ function t$({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
53550
53552
  const { prefix: l } = ln(), s = Ne(() => QS(l), [l]), d = n ?? !1, u = !!r || !!o, b = Ne(
53551
53553
  () => Array.isArray(t) ? t[0] ?? {} : {},
53552
53554
  [t]
53553
- ), f = (e == null ? void 0 : e.shape) ?? "custom", m = (e == null ? void 0 : e.customPath) ?? "", g = (e == null ? void 0 : e.pathFit) ?? "stretch", h = Ne(() => JS(e == null ? void 0 : e.pathViewBox), [e == null ? void 0 : e.pathViewBox]), v = (e == null ? void 0 : e.shapeMode) === "B" ? "avoid" : "contain", w = (e == null ? void 0 : e.textAlign) ?? "left", y = ((e == null ? void 0 : e.overflowMode) ?? "clip") === "visible", x = ((e == null ? void 0 : e.fitText) ?? "off") === "on", N = (e == null ? void 0 : e.dropCapSize) ?? e$, W = Math.max(1, Math.round((e == null ? void 0 : e.dropCapLines) ?? N)), U = d && u && !i, [H, $] = ie(!1);
53555
+ ), f = (e == null ? void 0 : e.shape) ?? "custom", m = (e == null ? void 0 : e.customPath) ?? "", g = (e == null ? void 0 : e.pathFit) ?? "stretch", h = Ne(() => JS(e == null ? void 0 : e.pathViewBox), [e == null ? void 0 : e.pathViewBox]), v = (e == null ? void 0 : e.shapeMode) === "B" ? "avoid" : "contain", w = (e == null ? void 0 : e.textAlign) ?? "left", y = ((e == null ? void 0 : e.overflowMode) ?? "clip") === "visible", x = ((e == null ? void 0 : e.fitText) ?? "off") === "on", W = (e == null ? void 0 : e.dropCapSize) ?? e$, N = Math.max(1, Math.round((e == null ? void 0 : e.dropCapLines) ?? W)), U = d && u && !i, [H, $] = ie(!1);
53554
53556
  ke(() => {
53555
53557
  if (!d || !u) {
53556
53558
  $(!1);
@@ -53708,8 +53710,8 @@ function t$({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
53708
53710
  fitEnabled: x,
53709
53711
  scale: G,
53710
53712
  onFitScale: q,
53711
- dropCapLines: W,
53712
- dropCapSize: N,
53713
+ dropCapLines: N,
53714
+ dropCapSize: W,
53713
53715
  showGuides: (U || B) && S,
53714
53716
  typography: O,
53715
53717
  imageUrl: v === "avoid" ? e == null ? void 0 : e.image : null,