@cntrl-site/components 1.0.75 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +35 -26
  2. package/dist/index.mjs +367 -352
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -482,7 +482,7 @@ function dm(e, t, n) {
482
482
  Kn(d), qn(a, u), qn(y, b), Dn([y, m], $), Dn(a, H ? $ : ["style", Uo]);
483
483
  }
484
484
  function f() {
485
- qn(a, u), qn(y, b), u = X(Ia), b = X(Rl), On(a, u), On(y, b), Et(a, Ln, n.label), Et(a, Us, n.labelledby);
485
+ qn(a, u), qn(y, b), u = q(Ia), b = q(Rl), On(a, u), On(y, b), Et(a, Ln, n.label), Et(a, Us, n.labelledby);
486
486
  }
487
487
  function x() {
488
488
  y = W("." + Rl), m = rr(y, "." + Jp), Ho(y && m, "A track/list element is missing."), Dr(d, hd(m, "." + ga + ":not(." + Od + ")")), Ai({
@@ -509,7 +509,7 @@ function dm(e, t, n) {
509
509
  var $ = vd(a, H);
510
510
  return $ && lm($, "." + Ia) === a ? $ : void 0;
511
511
  }
512
- function X(H) {
512
+ function q(H) {
513
513
  return [H + "--" + n.type, H + "--" + n.direction, n.drag && H + "--draggable", n.isNavigation && H + "--nav", H === Ia && _i];
514
514
  }
515
515
  return Go(s, {
@@ -521,7 +521,7 @@ function dm(e, t, n) {
521
521
  var lo = "slide", $o = "loop", lr = "fade";
522
522
  function um(e, t, n, i) {
523
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, y = u.updateOnMove, m = u.i18n, g = u.pagination, h = u.slideFocus, v = s.Direction.resolve, w = En(i, "style"), f = En(i, Ln), x = n > -1, N = rr(i, "." + Qp), W;
524
- function X() {
524
+ function q() {
525
525
  x || (i.id = d.id + "-slide" + zs(t + 1), Et(i, Xn, g ? "tabpanel" : "group"), Et(i, Uo, m.slide), Et(i, Ln, f || us(m.slideLabel, [t + 1, e.length]))), H();
526
526
  }
527
527
  function H() {
@@ -580,7 +580,7 @@ function um(e, t, n, i) {
580
580
  slide: i,
581
581
  container: N,
582
582
  isClone: x,
583
- mount: X,
583
+ mount: q,
584
584
  destroy: $,
585
585
  update: L,
586
586
  style: p,
@@ -615,18 +615,18 @@ function pm(e, t, n) {
615
615
  });
616
616
  }
617
617
  function v(L) {
618
- return L ? X(function(E) {
618
+ return L ? q(function(E) {
619
619
  return !E.isClone;
620
620
  }) : u;
621
621
  }
622
622
  function w(L) {
623
623
  var E = t.Controller, C = E.toIndex(L), p = E.hasFocus() ? 1 : n.perPage;
624
- return X(function(M) {
624
+ return q(function(M) {
625
625
  return zr(M.index, C, C + p - 1);
626
626
  });
627
627
  }
628
628
  function f(L) {
629
- return X(L)[0];
629
+ return q(L)[0];
630
630
  }
631
631
  function x(L, E) {
632
632
  Rn(L, function(C) {
@@ -637,14 +637,14 @@ function pm(e, t, n) {
637
637
  }), r(sn);
638
638
  }
639
639
  function N(L) {
640
- Fi(X(L).map(function(E) {
640
+ Fi(q(L).map(function(E) {
641
641
  return E.slide;
642
642
  })), r(sn);
643
643
  }
644
644
  function W(L, E) {
645
645
  v(E).forEach(L);
646
646
  }
647
- function X(L) {
647
+ function q(L) {
648
648
  return u.filter(md(L) ? L : function(E) {
649
649
  return ci(L) ? Vo(E.slide, L) : Ns(ir(L), E.index);
650
650
  });
@@ -679,7 +679,7 @@ function pm(e, t, n) {
679
679
  add: x,
680
680
  remove: N,
681
681
  forEach: W,
682
- filter: X,
682
+ filter: q,
683
683
  style: H,
684
684
  getLength: B,
685
685
  isEnough: S
@@ -695,13 +695,13 @@ function mm(e, t, n) {
695
695
  }
696
696
  function N(oe) {
697
697
  var I = Cn(u);
698
- (oe || v.width !== I.width || v.height !== I.height) && (Mn(b, "height", X()), g(s("marginRight"), wi(n.gap)), g("width", $()), g("height", B(), !0), v = I, a(sa), w !== (w = D()) && (Gn(u, qd, w), a(qp, w)));
698
+ (oe || v.width !== I.width || v.height !== I.height) && (Mn(b, "height", q()), g(s("marginRight"), wi(n.gap)), g("width", $()), g("height", B(), !0), v = I, a(sa), w !== (w = D()) && (Gn(u, qd, w), a(qp, w)));
699
699
  }
700
700
  function W(oe) {
701
701
  var I = n.padding, _ = s(oe ? "right" : "left");
702
702
  return I && wi(I[_] || (Bo(I) ? 0 : I)) || "0px";
703
703
  }
704
- function X() {
704
+ function q() {
705
705
  var oe = "";
706
706
  return h && (oe = H(), Ho(oe, "height or heightRatio is missing."), oe = "calc(" + oe + " - " + W(!1) + " - " + W(!0) + ")"), oe;
707
707
  }
@@ -779,8 +779,8 @@ function hm(e, t, n) {
779
779
  for (; f.length < w; )
780
780
  Dr(f, f);
781
781
  Dr(f.slice(-w), f.slice(0, w)).forEach(function(N, W) {
782
- var X = W < w, H = h(N.slide, W);
783
- X ? Hs(H, f[0].slide) : or(r.list, H), Dr(s, H), a.register(H, W - w + (X ? 0 : x), N.index);
782
+ var q = W < w, H = h(N.slide, W);
783
+ q ? Hs(H, f[0].slide) : or(r.list, H), Dr(s, H), a.register(H, W - w + (q ? 0 : x), N.index);
784
784
  });
785
785
  }
786
786
  }
@@ -811,7 +811,7 @@ function fm(e, t, n) {
811
811
  function W() {
812
812
  t.Controller.isBusy() || (t.Scroll.cancel(), H(e.index), t.Slides.update());
813
813
  }
814
- function X(_, Y, le, pe) {
814
+ function q(_, Y, le, pe) {
815
815
  _ !== Y && oe(_ > le) && (L(), $(S(p(), _ > le), !0)), a(wo), r(Zn, Y, le, _), x.start(Y, function() {
816
816
  a(ao), r(So, Y, le, _), pe && pe();
817
817
  });
@@ -878,7 +878,7 @@ function fm(e, t, n) {
878
878
  }
879
879
  return {
880
880
  mount: N,
881
- move: X,
881
+ move: q,
882
882
  jump: H,
883
883
  translate: $,
884
884
  shift: S,
@@ -892,12 +892,12 @@ function fm(e, t, n) {
892
892
  };
893
893
  }
894
894
  function ym(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, y = u.getLength, m = n.omitEnd, g = e.is($o), h = e.is(lo), v = tn(p, !1), w = tn(p, !0), f = n.start || 0, x, N = f, W, X, 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, y = u.getLength, m = n.omitEnd, g = e.is($o), h = e.is(lo), v = tn(p, !1), w = tn(p, !0), f = n.start || 0, x, N = f, W, q, H;
896
896
  function $() {
897
897
  B(), o([yn, sn, Kr], B), o(sa, S);
898
898
  }
899
899
  function B() {
900
- W = y(!0), X = n.perMove, H = n.perPage, x = oe();
900
+ W = y(!0), q = n.perMove, H = n.perPage, x = oe();
901
901
  var j = Xi(f, 0, m ? x : W - 1);
902
902
  j !== f && (f = j, a.reposition());
903
903
  }
@@ -926,13 +926,13 @@ function ym(e, t, n) {
926
926
  return ue;
927
927
  }
928
928
  function p(j, ue) {
929
- var Q = X || (A() ? 1 : H), $e = M(f + Q * (j ? -1 : 1), f, !(X || A()));
929
+ var Q = q || (A() ? 1 : H), $e = M(f + Q * (j ? -1 : 1), f, !(q || A()));
930
930
  return $e === -1 && h && !bd(l(), s(!j), 1) ? j ? 0 : x : ue ? $e : D($e);
931
931
  }
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 ? !X && (zr(0, j, ue, !0) || zr(x, ue, j, !0)) ? j = I(_(j)) : g ? j = Q ? j < 0 ? -(W % H || H) : W : j : n.rewind ? j = j < 0 ? x : 0 : j = -1 : Q && j !== ue && (j = I(_(ue) + (j < ue ? -1 : 1)));
935
+ $e !== j && (ue = j, j = $e, Q = !1), j < 0 || j > x ? !q && (zr(0, j, ue, !0) || zr(x, ue, j, !0)) ? j = I(_(j)) : g ? j = Q ? j < 0 ? -(W % H || H) : W : j : n.rewind ? j = j < 0 ? x : 0 : j = -1 : Q && j !== ue && (j = I(_(ue) + (j < ue ? -1 : 1)));
936
936
  } else
937
937
  j = -1;
938
938
  return j;
@@ -947,7 +947,7 @@ function ym(e, t, n) {
947
947
  return g ? (j + W) % W || 0 : j;
948
948
  }
949
949
  function oe() {
950
- for (var j = W - (A() || g && X ? 1 : H); m && j-- > 0; )
950
+ for (var j = W - (A() || g && q ? 1 : H); m && j-- > 0; )
951
951
  if (d(W - 1, !0) !== d(j, !0)) {
952
952
  j++;
953
953
  break;
@@ -1000,7 +1000,7 @@ function xm(e, t, n) {
1000
1000
  W(), o(yn, N);
1001
1001
  }
1002
1002
  function N() {
1003
- X(), x();
1003
+ q(), x();
1004
1004
  }
1005
1005
  function W() {
1006
1006
  var E = n.arrows;
@@ -1009,7 +1009,7 @@ function xm(e, t, n) {
1009
1009
  next: h
1010
1010
  }), qo(m, E ? "" : "none"), On(m, w = Zs + "--" + n.direction), E && (H(), L(), Et([g, h], sr, y.id), a(Rd, g, h)));
1011
1011
  }
1012
- function X() {
1012
+ function q() {
1013
1013
  i.destroy(), qn(m, w), v ? (Fi(b ? [g, h] : m), g = h = null) : Dn([g, h], Ks);
1014
1014
  }
1015
1015
  function H() {
@@ -1034,7 +1034,7 @@ function xm(e, t, n) {
1034
1034
  return {
1035
1035
  arrows: f,
1036
1036
  mount: x,
1037
- destroy: X,
1037
+ destroy: q,
1038
1038
  update: L
1039
1039
  };
1040
1040
  }
@@ -1042,7 +1042,7 @@ var wm = Ds + "-interval";
1042
1042
  function Sm(e, t, n) {
1043
1043
  var i = on(e), o = i.on, r = i.bind, a = i.emit, l = ca(n.interval, e.go.bind(e, ">"), H), s = l.isPaused, d = t.Elements, u = t.Elements, b = u.root, y = u.toggle, m = n.autoplay, g, h, v = m === "pause";
1044
1044
  function w() {
1045
- m && (f(), y && Et(y, sr, d.track.id), v || x(), X());
1045
+ m && (f(), y && Et(y, sr, d.track.id), v || x(), q());
1046
1046
  }
1047
1047
  function f() {
1048
1048
  n.pauseOnHover && r(b, "mouseenter mouseleave", function(B) {
@@ -1054,15 +1054,15 @@ function Sm(e, t, n) {
1054
1054
  }), o([Zn, la, sn], l.rewind), o(Zn, $);
1055
1055
  }
1056
1056
  function x() {
1057
- s() && t.Slides.isEnough() && (l.start(!n.resetProgress), h = g = v = !1, X(), a(Gs));
1057
+ s() && t.Slides.isEnough() && (l.start(!n.resetProgress), h = g = v = !1, q(), a(Gs));
1058
1058
  }
1059
1059
  function N(B) {
1060
- B === void 0 && (B = !0), v = !!B, X(), s() || (l.pause(), a(qs));
1060
+ B === void 0 && (B = !0), v = !!B, q(), s() || (l.pause(), a(qs));
1061
1061
  }
1062
1062
  function W() {
1063
1063
  v || (g || h ? N(!1) : x());
1064
1064
  }
1065
- function X() {
1065
+ function q() {
1066
1066
  y && (Gn(y, _i, !v), Et(y, Ln, n.i18n[v ? "play" : "pause"]));
1067
1067
  }
1068
1068
  function H(B) {
@@ -1119,7 +1119,7 @@ function Pm(e, t, n) {
1119
1119
  a(ao), g && g(), r(Hi);
1120
1120
  }
1121
1121
  function x(H, $, B, S) {
1122
- var L = s(), E = H + ($ - H) * X(S), C = (E - L) * h;
1122
+ var L = s(), E = H + ($ - H) * q(S), C = (E - L) * h;
1123
1123
  b(L + C), y && !B && u() && (h *= Lm, bn(C) < Cm && w(d(u(!0)), Tm, !1, g, !0));
1124
1124
  }
1125
1125
  function N() {
@@ -1128,7 +1128,7 @@ function Pm(e, t, n) {
1128
1128
  function W() {
1129
1129
  m && !m.isPaused() && (N(), f());
1130
1130
  }
1131
- function X(H) {
1131
+ function q(H) {
1132
1132
  var $ = n.easingFunc;
1133
1133
  return $ ? $(H) : 1 - Math.pow(1 - H, 4);
1134
1134
  }
@@ -1144,7 +1144,7 @@ var Ui = {
1144
1144
  capture: !0
1145
1145
  };
1146
1146
  function Mm(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, y = t.Elements.track, m = t.Media.reduce, g = t.Direction, h = g.resolve, v = g.orient, w = d.getPosition, f = d.exceededLimit, x, N, W, X, H, $ = !1, B, S, L;
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, y = t.Elements.track, m = t.Media.reduce, g = t.Direction, h = g.resolve, v = g.orient, w = d.getPosition, f = d.exceededLimit, x, N, W, q, H, $ = !1, B, S, L;
1148
1148
  function E() {
1149
1149
  a(y, Ra, ls, Ui), a(y, Pa, ls, Ui), a(y, Xd, p, Ui), a(y, "click", D, {
1150
1150
  capture: !0
@@ -1152,7 +1152,7 @@ function Mm(e, t, n) {
1152
1152
  }
1153
1153
  function C() {
1154
1154
  var ee = n.drag;
1155
- de(!ee), X = ee === "free";
1155
+ de(!ee), q = ee === "free";
1156
1156
  }
1157
1157
  function p(ee) {
1158
1158
  if (B = !1, !S) {
@@ -1179,7 +1179,7 @@ function Mm(e, t, n) {
1179
1179
  }
1180
1180
  function I(ee) {
1181
1181
  var me = le(ee), ae = pe(me), Oe = n.rewind && n.rewindByDrag;
1182
- m(!1), X ? b.scroll(ae, 0, n.snap) : e.is(lr) ? b.go(v(ds(me)) < 0 ? Oe ? "<" : "-" : Oe ? ">" : "+") : e.is(lo) && $ && Oe ? b.go(f(!0) ? ">" : "<") : b.go(b.toDest(ae), !0), m(!0);
1182
+ m(!1), q ? b.scroll(ae, 0, n.snap) : e.is(lr) ? b.go(v(ds(me)) < 0 ? Oe ? "<" : "-" : Oe ? ">" : "+") : e.is(lo) && $ && Oe ? b.go(f(!0) ? ">" : "<") : b.go(b.toDest(ae), !0), m(!0);
1183
1183
  }
1184
1184
  function _(ee) {
1185
1185
  var me = n.dragMinThreshold, ae = Bo(me), Oe = ae && me.mouse || 0, Ie = (ae ? me.touch : +me) || 10;
@@ -1197,7 +1197,7 @@ function Mm(e, t, n) {
1197
1197
  return 0;
1198
1198
  }
1199
1199
  function pe(ee) {
1200
- return w() + ds(ee) * di(bn(ee) * (n.flickPower || 600), X ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
1200
+ return w() + ds(ee) * di(bn(ee) * (n.flickPower || 600), q ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
1201
1201
  }
1202
1202
  function A(ee, me) {
1203
1203
  return ue(ee, me) - ue(j(ee), me);
@@ -1291,7 +1291,7 @@ function Fm(e, t, n) {
1291
1291
  Os(f.slide, km).forEach(function(x) {
1292
1292
  var N = En(x, Oo), W = En(x, Br);
1293
1293
  if (N !== x.src || W !== x.srcset) {
1294
- var X = n.classes.spinner, H = x.parentElement, $ = rr(H, "." + X) || to("span", X, H);
1294
+ var q = n.classes.spinner, H = x.parentElement, $ = rr(H, "." + q) || to("span", q, H);
1295
1295
  u.push([x, f, $]), x.src || qo(x, "none");
1296
1296
  }
1297
1297
  });
@@ -1343,7 +1343,7 @@ function _m(e, t, n) {
1343
1343
  }, R), oe = l.getIn(M).map(function(_) {
1344
1344
  return _.slide.id;
1345
1345
  }), I = !u() && C > 1 ? E.pageX : E.slideX;
1346
- a(D, "click", tn(W, M)), n.paginationKeyboard && a(D, "keydown", tn(X, M)), Et(R, Xn, "presentation"), Et(D, Xn, "tab"), Et(D, sr, oe.join(" ")), Et(D, Ln, us(I, M + 1)), Et(D, no, -1), h.push({
1346
+ a(D, "click", tn(W, M)), n.paginationKeyboard && a(D, "keydown", tn(q, M)), Et(R, Xn, "presentation"), Et(D, Xn, "tab"), Et(D, sr, oe.join(" ")), Et(D, Ln, us(I, M + 1)), Et(D, no, -1), h.push({
1347
1347
  li: R,
1348
1348
  button: D,
1349
1349
  page: M
@@ -1353,7 +1353,7 @@ function _m(e, t, n) {
1353
1353
  function W(S) {
1354
1354
  y(">" + S, !0);
1355
1355
  }
1356
- function X(S, L) {
1356
+ function q(S, L) {
1357
1357
  var E = h.length, C = Js(L), p = H(), M = -1;
1358
1358
  C === m(pa, !1, p) ? M = ++S % E : C === m(ua, !1, p) ? M = (--S + E) % E : C === "Home" ? M = 0 : C === "End" && (M = E - 1);
1359
1359
  var R = h[M];
@@ -1883,7 +1883,7 @@ const eg = "SvgImage-module__svg___q3xE-", tg = "SvgImage-module__img___VsTm-",
1883
1883
  "bottom-right": wt.bottomRightAlignment
1884
1884
  };
1885
1885
  function rg({ 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: y, color: m } = n.imageCaption ?? {}, [g, h] = ie(void 0), [v, w] = ie(null), [f, x] = ie(0), [N, W] = ie(0), { direction: X, transition: H, controls: $, pagination: B, imageCaption: S, triggers: L } = e, E = U(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: y, color: m } = n.imageCaption ?? {}, [g, h] = ie(void 0), [v, w] = ie(null), [f, x] = ie(0), [N, W] = ie(0), { direction: q, transition: H, controls: $, pagination: B, imageCaption: S, triggers: L } = e, E = U(H.type), { x: C, y: p } = e.controls.offset, M = (R) => {
1887
1887
  o && o.go(R);
1888
1888
  };
1889
1889
  return Ae(() => {
@@ -1976,7 +1976,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
1976
1976
  ...L.autoPlay !== null && {
1977
1977
  interval: parseInt(L.autoPlay) * 1e3
1978
1978
  },
1979
- direction: X === "horiz" || H.type === "fade in" ? "ltr" : "ttb",
1979
+ direction: q === "horiz" || H.type === "fade in" ? "ltr" : "ttb",
1980
1980
  pagination: !1,
1981
1981
  drag: L.triggersList.drag,
1982
1982
  perPage: 1,
@@ -2016,7 +2016,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2016
2016
  "div",
2017
2017
  {
2018
2018
  className: $t(wt.arrow, {
2019
- [wt.arrowVertical]: X === "vert",
2019
+ [wt.arrowVertical]: q === "vert",
2020
2020
  [wt.hoverArrow]: $.show === "on hover"
2021
2021
  }),
2022
2022
  style: {
@@ -2031,7 +2031,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2031
2031
  },
2032
2032
  className: wt.arrowInner,
2033
2033
  style: {
2034
- transform: `translate(${Z(C, i)}, ${Z(p * (X === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${X === "horiz" ? "0deg" : "90deg"})`
2034
+ transform: `translate(${Z(C, i)}, ${Z(p * (q === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${q === "horiz" ? "0deg" : "90deg"})`
2035
2035
  },
2036
2036
  children: [
2037
2037
  $.arrowsImgUrl && /* @__PURE__ */ c(
@@ -2053,7 +2053,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2053
2053
  "div",
2054
2054
  {
2055
2055
  className: $t(wt.arrow, wt.nextArrow, {
2056
- [wt.arrowVertical]: X === "vert",
2056
+ [wt.arrowVertical]: q === "vert",
2057
2057
  [wt.hoverArrow]: $.show === "on hover"
2058
2058
  }),
2059
2059
  style: {
@@ -2066,7 +2066,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2066
2066
  className: wt.arrowInner,
2067
2067
  onClick: () => M("+1"),
2068
2068
  style: {
2069
- transform: `translate(${Z(C * (X === "horiz" ? -1 : 1), i)}, ${Z(p, i)}) scale(${e.controls.scale / 100}) rotate(${X === "horiz" ? "0deg" : "90deg"})`
2069
+ transform: `translate(${Z(C * (q === "horiz" ? -1 : 1), i)}, ${Z(p, i)}) scale(${e.controls.scale / 100}) rotate(${q === "horiz" ? "0deg" : "90deg"})`
2070
2070
  },
2071
2071
  children: [
2072
2072
  $.arrowsImgUrl && /* @__PURE__ */ c(
@@ -2098,15 +2098,15 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2098
2098
  "div",
2099
2099
  {
2100
2100
  className: $t(wt.pagination, {
2101
- [wt.paginationInsideBottom]: B.position === "inside-1" && X === "horiz",
2102
- [wt.paginationInsideTop]: B.position === "inside-2" && X === "horiz",
2103
- [wt.paginationOutsideBottom]: B.position === "outside-1" && X === "horiz",
2104
- [wt.paginationOutsideTop]: B.position === "outside-2" && X === "horiz",
2105
- [wt.paginationInsideLeft]: B.position === "inside-1" && X === "vert",
2106
- [wt.paginationInsideRight]: B.position === "inside-2" && X === "vert",
2107
- [wt.paginationOutsideLeft]: B.position === "outside-1" && X === "vert",
2108
- [wt.paginationOutsideRight]: B.position === "outside-2" && X === "vert",
2109
- [wt.paginationVertical]: X === "vert"
2101
+ [wt.paginationInsideBottom]: B.position === "inside-1" && q === "horiz",
2102
+ [wt.paginationInsideTop]: B.position === "inside-2" && q === "horiz",
2103
+ [wt.paginationOutsideBottom]: B.position === "outside-1" && q === "horiz",
2104
+ [wt.paginationOutsideTop]: B.position === "outside-2" && q === "horiz",
2105
+ [wt.paginationInsideLeft]: B.position === "inside-1" && q === "vert",
2106
+ [wt.paginationInsideRight]: B.position === "inside-2" && q === "vert",
2107
+ [wt.paginationOutsideLeft]: B.position === "outside-1" && q === "vert",
2108
+ [wt.paginationOutsideRight]: B.position === "outside-2" && q === "vert",
2109
+ [wt.paginationVertical]: q === "vert"
2110
2110
  }),
2111
2111
  children: /* @__PURE__ */ c(
2112
2112
  "div",
@@ -2114,7 +2114,7 @@ function rg({ settings: e, content: t, styles: n, isEditor: i }) {
2114
2114
  className: wt.paginationInner,
2115
2115
  style: {
2116
2116
  backgroundColor: B.colors[2],
2117
- transform: `scale(${B.scale / 100}) translate(${Z(B.offset.x, i)}, ${Z(B.offset.y, i)}) rotate(${X === "horiz" ? "0deg" : "90deg"})`
2117
+ transform: `scale(${B.scale / 100}) translate(${Z(B.offset.x, i)}, ${Z(B.offset.y, i)}) rotate(${q === "horiz" ? "0deg" : "90deg"})`
2118
2118
  },
2119
2119
  children: t.map((R, D) => /* @__PURE__ */ c(
2120
2120
  "button",
@@ -2803,7 +2803,7 @@ async function ug(e, t, n, i) {
2803
2803
  return { width: o, height: r, finalWidth: `${o}px` };
2804
2804
  }
2805
2805
  function pg({ settings: e, content: t, isEditor: n }) {
2806
- const [i, o] = ie(null), [r, a] = ie([]), [l, s] = ie(0), d = U(0), [u, b] = ie({ x: 0, y: 0 }), [y, m] = ie(1), [g, h] = ie("none"), v = U({ x: 0, y: 0 }), [w, f] = ie(!1), { sizeType: x, imageWidth: N, randomRangeImageWidth: W } = e.imageSize, { revealPosition: X, visible: H } = e.position, { cursorType: $, target: B, defaultCursorScale: S, defaultCursor: L, hoverCursorScale: E, hoverCursor: C } = e.cursor;
2806
+ const [i, o] = ie(null), [r, a] = ie([]), [l, s] = ie(0), d = U(0), [u, b] = ie({ x: 0, y: 0 }), [y, m] = ie(1), [g, h] = ie("none"), v = U({ x: 0, y: 0 }), [w, f] = ie(!1), { sizeType: x, imageWidth: N, randomRangeImageWidth: W } = e.imageSize, { revealPosition: q, visible: H } = e.position, { cursorType: $, target: B, defaultCursorScale: S, defaultCursor: L, hoverCursorScale: E, hoverCursor: C } = e.cursor;
2807
2807
  Ae(() => {
2808
2808
  if (!i) return;
2809
2809
  const R = (I, _) => {
@@ -2849,7 +2849,7 @@ function pg({ settings: e, content: t, isEditor: n }) {
2849
2849
  W
2850
2850
  );
2851
2851
  let pe = 0, A = 0;
2852
- X === "same" ? (pe = D / 2, A = oe / 2) : (pe = I.x ?? Math.random() * D, A = I.y ?? Math.random() * oe);
2852
+ q === "same" ? (pe = D / 2, A = oe / 2) : (pe = I.x ?? Math.random() * D, A = I.y ?? Math.random() * oe);
2853
2853
  const ye = Math.min(Math.max(pe, _ / 2), D - _ / 2), j = Math.min(Math.max(A, Y / 2), oe - Y / 2);
2854
2854
  return {
2855
2855
  id: d.current++,
@@ -2868,7 +2868,7 @@ function pg({ settings: e, content: t, isEditor: n }) {
2868
2868
  const Y = t[0], le = await p(Y, D, oe);
2869
2869
  I.push(le), a(I), s(1);
2870
2870
  })();
2871
- }, [x, N, W, X, i]), Ae(() => {
2871
+ }, [x, N, W, q, i]), Ae(() => {
2872
2872
  H === "last One" && a((R) => R.length > 0 ? [R[R.length - 1]] : []);
2873
2873
  }, [H]), /* @__PURE__ */ te(
2874
2874
  "div",
@@ -2879,7 +2879,7 @@ function pg({ settings: e, content: t, isEditor: n }) {
2879
2879
  const D = i.getBoundingClientRect(), oe = R.clientX - D.left, I = R.clientY - D.top;
2880
2880
  if (B === "image" && !Fl(oe, I, r)) return;
2881
2881
  let _ = 0, Y = 0;
2882
- X === "on Click" ? (_ = oe, Y = I) : X === "same" ? (_ = D.width / 2, Y = D.height / 2) : (_ = Math.random() * D.width, Y = Math.random() * D.height);
2882
+ q === "on Click" ? (_ = oe, Y = I) : q === "same" ? (_ = D.width / 2, Y = D.height / 2) : (_ = Math.random() * D.width, Y = Math.random() * D.height);
2883
2883
  const le = t[l], pe = await p(le, D.width, D.height, { x: _, y: Y });
2884
2884
  a((A) => H === "all" ? [...A, pe] : [pe]), s((A) => A >= t.length - 1 ? 0 : A + 1);
2885
2885
  },
@@ -3522,7 +3522,7 @@ const ih = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3522
3522
  ] });
3523
3523
  }, oh = ({ 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: y, fontSizeLineHeight: m, textAppearance: g, color: h } = i.imageCaption ?? {}, [v, w] = ie(0), [f, x] = ie(0), [N, W] = ie(!1), [X, H] = ie(!1), [$, B] = ie({}), S = U(null), L = U(null), E = U(null), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(null), oe = U(!1), I = U(null), [_, Y] = ie(!1), { appear: le, triggers: pe, slider: A, thumbnail: ye, controls: j, area: ue, caption: Q, layout: $e } = o.lightboxBlock, { appearClass: Ve, backdropAppearClass: we, backdropDisappearClass: de, disappearClass: ee } = nh(le.type, le.direction), me = (l == null ? void 0 : l.itemId) ?? null;
3525
+ const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: b, wordSpacing: y, fontSizeLineHeight: m, textAppearance: g, color: h } = i.imageCaption ?? {}, [v, w] = ie(0), [f, x] = ie(0), [N, W] = ie(!1), [q, H] = ie(!1), [$, B] = ie({}), S = U(null), L = U(null), E = U(null), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(null), oe = U(!1), I = U(null), [_, Y] = ie(!1), { appear: le, triggers: pe, slider: A, thumbnail: ye, controls: j, area: ue, caption: Q, layout: $e } = o.lightboxBlock, { appearClass: Ve, backdropAppearClass: we, backdropDisappearClass: de, disappearClass: ee } = nh(le.type, le.direction), me = (l == null ? void 0 : l.itemId) ?? null;
3526
3526
  Ae(() => {
3527
3527
  const O = () => {
3528
3528
  setTimeout(() => {
@@ -3684,10 +3684,10 @@ const ih = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3684
3684
  document.removeEventListener("touchend", O);
3685
3685
  };
3686
3686
  }, [e, ae, v, n]);
3687
- const q = (A.type === "scale" || A.type === "fade") && A.direction === "vert" && pe.type === "drag";
3687
+ const X = (A.type === "scale" || A.type === "fade") && A.direction === "vert" && pe.type === "drag";
3688
3688
  Ae(() => {
3689
3689
  var he, Ge;
3690
- if (!e || !q || !((Ge = (he = S.current) == null ? void 0 : he.splide) != null && Ge.root)) return;
3690
+ if (!e || !X || !((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
3693
  const Fe = Math.abs(fe - D.current.x), De = Math.abs(V - D.current.y);
@@ -3722,7 +3722,7 @@ const ih = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3722
3722
  return O.addEventListener("pointerdown", ge), O.addEventListener("touchstart", K), () => {
3723
3723
  O.removeEventListener("pointerdown", ge), O.removeEventListener("touchstart", K), document.removeEventListener("pointermove", ne), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k), document.removeEventListener("touchmove", Le), document.removeEventListener("touchend", xe), document.removeEventListener("touchcancel", xe), D.current = null, oe.current = !1;
3724
3724
  };
3725
- }, [e, q, f]);
3725
+ }, [e, X, f]);
3726
3726
  const G = {
3727
3727
  backgroundColor: ue.color,
3728
3728
  backdropFilter: `blur(${ue.blur}px)`,
@@ -3739,7 +3739,7 @@ const ih = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3739
3739
  className: $t(rt.background, N ? de : we, { [rt.editor]: a }, { [rt.hidden]: !e }),
3740
3740
  style: {
3741
3741
  ...G,
3742
- ...X && !a && !N ? { position: "absolute" } : {}
3742
+ ...q && !a && !N ? { position: "absolute" } : {}
3743
3743
  }
3744
3744
  }
3745
3745
  ),
@@ -3766,7 +3766,7 @@ const ih = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3766
3766
  direction: A.direction === "horiz" || A.type === "fade" || A.type === "scale" ? "ltr" : "ttb",
3767
3767
  pagination: !1,
3768
3768
  // Disable Splide's drag when we need custom vertical drag handling
3769
- drag: pe.type === "drag" && !q,
3769
+ drag: pe.type === "drag" && !X,
3770
3770
  perPage: 1,
3771
3771
  width: "100%",
3772
3772
  height: "100%",
@@ -5287,7 +5287,7 @@ function sh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5287
5287
  inputCorners: x,
5288
5288
  inputStroke: N,
5289
5289
  inputPadding: W,
5290
- inputColor: X,
5290
+ inputColor: q,
5291
5291
  inputTextColor: H,
5292
5292
  inputBorderColor: $,
5293
5293
  placeholderColor: B,
@@ -5320,7 +5320,7 @@ function sh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5320
5320
  statusFontSize: Oe,
5321
5321
  statusLineHeight: Ie,
5322
5322
  statusLetterSpacing: P,
5323
- statusWordSpacing: q,
5323
+ statusWordSpacing: X,
5324
5324
  statusTextAppearance: G,
5325
5325
  successMessage: re,
5326
5326
  errorMessage: O,
@@ -5389,11 +5389,11 @@ function sh({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5389
5389
  fontSize: Oe ?? 0.01,
5390
5390
  lineHeight: Ie,
5391
5391
  letterSpacing: P ?? 0,
5392
- wordSpacing: q ?? 0,
5392
+ wordSpacing: X ?? 0,
5393
5393
  textAppearance: G,
5394
5394
  color: p
5395
5395
  }, De = hn(nn(Fe, t)), dt = Ni(s, {
5396
- inputColor: X,
5396
+ inputColor: q,
5397
5397
  inputTextColor: H,
5398
5398
  inputBorderColor: $,
5399
5399
  placeholderColor: B != null && B.trim() ? B : "#cccccc",
@@ -7093,7 +7093,7 @@ const fh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7093
7093
  buttonFontSize: x,
7094
7094
  buttonLineHeight: N,
7095
7095
  buttonLetterSpacing: W,
7096
- buttonWordSpacing: X,
7096
+ buttonWordSpacing: q,
7097
7097
  buttonTextAppearance: H,
7098
7098
  statusFontSettings: $,
7099
7099
  statusFontSize: B,
@@ -7118,7 +7118,7 @@ const fh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7118
7118
  for (const V of pe)
7119
7119
  (A[V.name] ?? "").trim().length > 0 || (fe = fe ?? { ...A }, fe[V.name] = "Filled");
7120
7120
  return fe ?? A;
7121
- }, [de, A, pe]), me = Ve === "error" ? qr(pe, ee) : null, ae = o && o !== "default" ? `${r}-state-${o}` : "", Oe = pe.some((fe) => (ee[fe.name] ?? "").trim().length > 0), Ie = ae !== `${r}-state-filled` && Oe ? `${r}-state-filled` : "", P = `${ae} ${Ie}`.trim(), q = i == null ? void 0 : i.submitUrl, G = d ?? "", re = (s == null ? void 0 : s.icon) ?? "", O = (s == null ? void 0 : s.mode) === "On", z = G || "Submit", J = {
7121
+ }, [de, A, pe]), me = Ve === "error" ? qr(pe, ee) : null, ae = o && o !== "default" ? `${r}-state-${o}` : "", Oe = pe.some((fe) => (ee[fe.name] ?? "").trim().length > 0), Ie = ae !== `${r}-state-filled` && Oe ? `${r}-state-filled` : "", P = `${ae} ${Ie}`.trim(), X = i == null ? void 0 : i.submitUrl, G = d ?? "", re = (s == null ? void 0 : s.icon) ?? "", O = (s == null ? void 0 : s.mode) === "On", z = G || "Submit", J = {
7122
7122
  fontSettings: {
7123
7123
  fontFamily: b,
7124
7124
  fontWeight: (y == null ? void 0 : y.fontWeight) ?? 400,
@@ -7139,7 +7139,7 @@ const fh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7139
7139
  fontSize: x ?? 0.01,
7140
7140
  lineHeight: N,
7141
7141
  letterSpacing: W ?? 0,
7142
- wordSpacing: X ?? 0,
7142
+ wordSpacing: q ?? 0,
7143
7143
  textAppearance: H,
7144
7144
  color: e.buttonTextColor ?? "#ffffff"
7145
7145
  }, Le = {
@@ -7175,7 +7175,7 @@ const fh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7175
7175
  return [De.name, ((dt = A[De.name]) == null ? void 0 : dt.trim()) ?? ""];
7176
7176
  }).filter(([, De]) => De)
7177
7177
  );
7178
- if (!q) {
7178
+ if (!X) {
7179
7179
  ue("error"), $e("No integrations were found for this form.");
7180
7180
  return;
7181
7181
  }
@@ -7187,7 +7187,7 @@ const fh = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7187
7187
  }
7188
7188
  ue("submitting"), $e(null);
7189
7189
  try {
7190
- const De = await fetch(q, {
7190
+ const De = await fetch(X, {
7191
7191
  method: "POST",
7192
7192
  headers: { "Content-Type": "application/json" },
7193
7193
  body: JSON.stringify(V)
@@ -8611,7 +8611,7 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8611
8611
  Pt(() => {
8612
8612
  l && Hh(u.current) && (d == null || d());
8613
8613
  }, [l, (C = e.image) == null ? void 0 : C.url, d]);
8614
- const y = 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, X = N > o ? o * x : i, H = s(X), $ = s(W), B = {
8614
+ const y = 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, q = N > o ? o * x : i, H = s(q), $ = s(W), B = {
8615
8615
  borderRadius: s(r)
8616
8616
  }, S = y ? {
8617
8617
  pointerEvents: "auto",
@@ -8703,7 +8703,7 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8703
8703
  imageMaxHeight: h,
8704
8704
  hoverEffect: v,
8705
8705
  cornerRadius: w = 0
8706
- } = e, f = He(() => kh(e.imageFit), [e.imageFit]), x = (t == null ? void 0 : t.length) ?? 0, N = !!o, W = !n || !!i, X = 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) * Lh, L = (Ie) => Z(Ie, n ?? !1), E = U(null), C = U(null), p = U(null), [M, R] = ie(0), D = H && y === "on", [oe, I] = ie(!1), [_, Y] = ie({}), le = U(_);
8706
+ } = e, f = He(() => kh(e.imageFit), [e.imageFit]), x = (t == null ? void 0 : t.length) ?? 0, N = !!o, W = !n || !!i, q = 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) * Lh, L = (Ie) => Z(Ie, n ?? !1), E = U(null), C = U(null), p = U(null), [M, R] = ie(0), D = H && y === "on", [oe, I] = ie(!1), [_, Y] = ie({}), le = U(_);
8707
8707
  le.current = _;
8708
8708
  const pe = U(null), A = U(0), ye = U(null), j = He(() => (t ?? []).map((Ie) => {
8709
8709
  var P;
@@ -8735,7 +8735,7 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8735
8735
  delete ne[Le];
8736
8736
  }), ne;
8737
8737
  });
8738
- }, q = new IntersectionObserver((O) => {
8738
+ }, X = new IntersectionObserver((O) => {
8739
8739
  const z = /* @__PURE__ */ new Set();
8740
8740
  for (const J of O) {
8741
8741
  const ne = J.target.dataset.marqueeItemIndex, Le = ne !== void 0 ? Number(ne) : NaN;
@@ -8745,20 +8745,20 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8745
8745
  }, { root: Ie, threshold: 0 });
8746
8746
  Object.keys(_).forEach((O) => {
8747
8747
  const z = Number(O);
8748
- Ie.querySelectorAll(`[data-marquee-item-index="${z}"]`).forEach((J) => q.observe(J));
8748
+ Ie.querySelectorAll(`[data-marquee-item-index="${z}"]`).forEach((J) => X.observe(J));
8749
8749
  });
8750
8750
  const G = { current: 0 }, re = () => {
8751
8751
  const O = Object.keys(le.current);
8752
8752
  O.length !== 0 && (P(O.map(Number)), G.current = requestAnimationFrame(re));
8753
8753
  };
8754
8754
  return Object.keys(le.current).length > 0 && (G.current = requestAnimationFrame(re)), () => {
8755
- cancelAnimationFrame(G.current), q.disconnect();
8755
+ cancelAnimationFrame(G.current), X.disconnect();
8756
8756
  };
8757
8757
  }, [v, _, W]), Pt(() => {
8758
8758
  if (!B) return;
8759
8759
  const Ie = E.current, P = p.current;
8760
8760
  if (!Ie || !P) return;
8761
- const q = { current: 0 }, G = () => {
8761
+ const X = { current: 0 }, G = () => {
8762
8762
  const z = Ie.getBoundingClientRect().width || Ie.offsetWidth, J = Fh(P), ne = pe.current, Le = typeof ne == "number" && Math.abs(ne - J) <= 0.25;
8763
8763
  pe.current = J;
8764
8764
  let be = ue, k = 0;
@@ -8780,14 +8780,14 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8780
8780
  const K = Hl(P, x);
8781
8781
  return K > 0 ? K * be : 0;
8782
8782
  })();
8783
- ge > 0 ? l((K) => K <= 0 ? ge : !Le || Math.round(K) === Math.round(ge) ? K : ge) : !Le && a <= 0 && (cancelAnimationFrame(q.current), q.current = requestAnimationFrame(G));
8783
+ ge > 0 ? l((K) => K <= 0 ? ge : !Le || Math.round(K) === Math.round(ge) ? K : ge) : !Le && a <= 0 && (cancelAnimationFrame(X.current), X.current = requestAnimationFrame(G));
8784
8784
  }, re = () => {
8785
- cancelAnimationFrame(q.current), q.current = requestAnimationFrame(G);
8785
+ cancelAnimationFrame(X.current), X.current = requestAnimationFrame(G);
8786
8786
  };
8787
8787
  ye.current = re, re();
8788
8788
  const O = new ResizeObserver(re);
8789
8789
  return O.observe(Ie), O.observe(P), () => {
8790
- ye.current = null, cancelAnimationFrame(q.current), O.disconnect();
8790
+ ye.current = null, cancelAnimationFrame(X.current), O.disconnect();
8791
8791
  };
8792
8792
  }, [H, B, a, j, ue, x, n]), Pt(() => {
8793
8793
  if (!B || s <= 0) return;
@@ -8800,15 +8800,15 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8800
8800
  }
8801
8801
  const Ie = C.current, P = p.current;
8802
8802
  if (!Ie || !P) return;
8803
- const q = () => {
8803
+ const X = () => {
8804
8804
  const re = Ie.offsetHeight || Ie.getBoundingClientRect().height, O = Array.from(P.children).reduce(
8805
8805
  (J, ne) => Math.max(J, ne.offsetHeight || ne.getBoundingClientRect().height),
8806
8806
  0
8807
8807
  ), z = re > 0 ? re : O;
8808
8808
  R(z > 0 ? z : 0);
8809
8809
  };
8810
- q();
8811
- const G = new ResizeObserver(q);
8810
+ X();
8811
+ const G = new ResizeObserver(X);
8812
8812
  return G.observe(Ie), G.observe(P), () => G.disconnect();
8813
8813
  }, [B, we, $e, n, m, g, h, a, f, _]), Pt(() => {
8814
8814
  if (!n || !N || !B || typeof window > "u") return;
@@ -8828,20 +8828,20 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8828
8828
  A.current + 1
8829
8829
  ), (Ie = ye.current) == null || Ie.call(ye);
8830
8830
  }, [Ve]), ae = Se((Ie, P) => {
8831
- Y((q) => {
8832
- const G = q[Ie] ?? P, re = (t ?? []).filter((z) => z !== G);
8833
- if (re.length === 0) return q;
8831
+ Y((X) => {
8832
+ const G = X[Ie] ?? P, re = (t ?? []).filter((z) => z !== G);
8833
+ if (re.length === 0) return X;
8834
8834
  const O = re[Math.floor(Math.random() * re.length)];
8835
- return { ...q, [Ie]: O };
8835
+ return { ...X, [Ie]: O };
8836
8836
  });
8837
- }, [t]), Oe = (Ie, P, q, G) => {
8838
- const re = W && v === "randomize" && f.display === "cover" ? _[q] ?? Ie : Ie, O = `max(${L(m)}, ${Ih}px)`, z = `calc(-0.5 * (${O} + ${L(m)}))`;
8837
+ }, [t]), Oe = (Ie, P, X, G) => {
8838
+ const re = W && v === "randomize" && f.display === "cover" ? _[X] ?? Ie : Ie, O = `max(${L(m)}, ${Ih}px)`, z = `calc(-0.5 * (${O} + ${L(m)}))`;
8839
8839
  return /* @__PURE__ */ te(
8840
8840
  "div",
8841
8841
  {
8842
8842
  className: `${r}-marquee-card`,
8843
- "data-marquee-item-index": q,
8844
- onMouseEnter: W && v === "randomize" && f.display === "cover" ? () => ae(q, Ie) : void 0,
8843
+ "data-marquee-item-index": X,
8844
+ onMouseEnter: W && v === "randomize" && f.display === "cover" ? () => ae(X, Ie) : void 0,
8845
8845
  children: [
8846
8846
  /* @__PURE__ */ c(
8847
8847
  Oh,
@@ -8852,7 +8852,7 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8852
8852
  imageMaxWidth: g,
8853
8853
  imageMaxHeight: h,
8854
8854
  cornerRadius: w,
8855
- imageHoverClass: X,
8855
+ imageHoverClass: q,
8856
8856
  isEditor: n,
8857
8857
  isFirstSet: G,
8858
8858
  scaled: L,
@@ -8876,11 +8876,11 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8876
8876
  )
8877
8877
  ]
8878
8878
  },
8879
- `${P}-${q}`
8879
+ `${P}-${X}`
8880
8880
  );
8881
8881
  };
8882
8882
  if (B) {
8883
- const Ie = H ? D && oe ? "paused" : "running" : "paused", P = s > 0 && S > 0 ? s / S * 1e3 : 0, q = `${Math.max(0, P) / 1e3}s`;
8883
+ const Ie = H ? D && oe ? "paused" : "running" : "paused", P = s > 0 && S > 0 ? s / S * 1e3 : 0, X = `${Math.max(0, P) / 1e3}s`;
8884
8884
  return /* @__PURE__ */ te(
8885
8885
  "div",
8886
8886
  {
@@ -8899,8 +8899,8 @@ const Lh = 30, Ih = 20, Aa = 3, Rh = 12, Ph = 32, Mh = 3, Eh = (e) => {
8899
8899
  onMouseEnter: de,
8900
8900
  onMouseLeave: ee,
8901
8901
  style: {
8902
- WebkitAnimationDuration: q,
8903
- animationDuration: q,
8902
+ WebkitAnimationDuration: X,
8903
+ animationDuration: X,
8904
8904
  WebkitAnimationPlayState: Ie,
8905
8905
  animationPlayState: Ie
8906
8906
  },
@@ -10171,8 +10171,8 @@ const Gh = 30, ka = 3, qh = 12, Xh = 96, Ol = 3, ys = 0.72, Uh = 100, Yh = 10, K
10171
10171
  return n * (o * e.wavelength + l[d] + (l[u] - l[d]) * y);
10172
10172
  }, sf = (e, t, n, i, o = 0) => {
10173
10173
  const r = Math.max(0, n), a = e > 0 ? 2 * Math.PI * r / e : 0, l = (g) => i + t * Math.sin(a * g), s = (g) => t * a * Math.cos(a * g), d = -o, b = e + o - d, y = Math.max(4, Math.ceil(r * 4 * (b / Math.max(e, 1)))), m = Array.from({ length: y }, (g, h) => {
10174
- const v = d + h / y * b, w = d + (h + 1) / y * b, f = w - v, x = l(v), N = l(w), W = v + f / 3, X = x + s(v) * f / 3, H = w - f / 3, $ = N - s(w) * f / 3;
10175
- return `C${W.toFixed(2)} ${X.toFixed(2)} ${H.toFixed(2)} ${$.toFixed(2)} ${w.toFixed(2)} ${N.toFixed(2)}`;
10174
+ const v = d + h / y * b, w = d + (h + 1) / y * b, f = w - v, x = l(v), N = l(w), W = v + f / 3, q = x + s(v) * f / 3, H = w - f / 3, $ = N - s(w) * f / 3;
10175
+ return `C${W.toFixed(2)} ${q.toFixed(2)} ${H.toFixed(2)} ${$.toFixed(2)} ${w.toFixed(2)} ${N.toFixed(2)}`;
10176
10176
  });
10177
10177
  return [`M${d.toFixed(2)} ${l(d).toFixed(2)}`, ...m].join(" ");
10178
10178
  }, lf = ({ item: e, prefix: t, textCss: n, capHeightPx: i, opticalOffsetY: o, imageGapPx: r, isCurve: a }) => {
@@ -10206,7 +10206,7 @@ const Gh = 30, ka = 3, qh = 12, Xh = 96, Ol = 3, ys = 0.72, Uh = 100, Yh = 10, K
10206
10206
  textLetterSpacing: x,
10207
10207
  textWordSpacing: N,
10208
10208
  textTextAppearance: W,
10209
- textColor: X,
10209
+ textColor: q,
10210
10210
  backgroundColor: H,
10211
10211
  ribbonWidth: $
10212
10212
  } = e, B = $ ?? f, S = y === "curve", L = Kh(m), E = Zh(g), C = He(() => jh(o, l, S), [o, l, S]), p = He(() => nn({
@@ -10220,10 +10220,10 @@ const Gh = 30, ka = 3, qh = 12, Xh = 96, Ol = 3, ys = 0.72, Uh = 100, Yh = 10, K
10220
10220
  fontSize: w,
10221
10221
  lineHeight: f,
10222
10222
  textAppearance: W,
10223
- color: X
10224
- }, n), [h, v, x, N, w, f, W, X, n]), M = (Me) => Z(Me, n ?? !1), R = ((t == null ? void 0 : t.length) ?? 0) > 0, D = n ? !!i : !0, oe = R && (D || !!n), I = Math.max(0, s) * Gh, _ = D && u === "on", [Y, le] = ie(!1), pe = D ? _ && Y ? "paused" : "running" : "paused", A = pe === "running" && I > 0 && l > 0, ye = l > 0 && I > 0 ? l / I * 1e3 : 0, j = U(null), ue = U(null), Q = U(null), $e = U(null), Ve = U(null), we = U(null), de = U(A), ee = U(null), me = U(null), ae = U(L), Oe = U(E);
10223
+ color: q
10224
+ }, n), [h, v, x, N, w, f, W, q, n]), M = (Me) => Z(Me, n ?? !1), R = ((t == null ? void 0 : t.length) ?? 0) > 0, D = n ? !!i : !0, oe = R && (D || !!n), I = Math.max(0, s) * Gh, _ = D && u === "on", [Y, le] = ie(!1), pe = D ? _ && Y ? "paused" : "running" : "paused", A = pe === "running" && I > 0 && l > 0, ye = l > 0 && I > 0 ? l / I * 1e3 : 0, j = U(null), ue = U(null), Q = U(null), $e = U(null), Ve = U(null), we = U(null), de = U(A), ee = U(null), me = U(null), ae = U(L), Oe = U(E);
10225
10225
  de.current = A, ae.current = L, Oe.current = E;
10226
- const [Ie, P] = ie(0), [q, G] = ie(0), [re, O] = ie(0), [z, J] = ie(0), [ne, Le] = ie(0), be = He(
10226
+ const [Ie, P] = ie(0), [X, G] = ie(0), [re, O] = ie(0), [z, J] = ie(0), [ne, Le] = ie(0), be = He(
10227
10227
  () => (t ?? []).map((Me) => {
10228
10228
  var _e;
10229
10229
  return `${Me.text}\0${((_e = Me.image) == null ? void 0 : _e.url) ?? ""}\0${Me.link ?? ""}`;
@@ -10450,7 +10450,7 @@ const Gh = 30, ka = 3, qh = 12, Xh = 96, Ol = 3, ys = 0.72, Uh = 100, Yh = 10, K
10450
10450
  prefix: o,
10451
10451
  textCss: p,
10452
10452
  capHeightPx: Ie,
10453
- opticalOffsetY: q,
10453
+ opticalOffsetY: X,
10454
10454
  imageGapPx: M(b),
10455
10455
  isCurve: S
10456
10456
  },
@@ -11829,7 +11829,7 @@ function gf(e, t) {
11829
11829
  const hf = 30, zl = 2, ff = (e) => {
11830
11830
  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");
11831
11831
  }, yf = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
11832
- const { prefix: r } = ln(), { align: a, speed: l, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: y, stroke: m, strokeColor: g, bgColor: h, padding: v, logoMarginTop: w, logoWidth: f, logoHeight: x, captionMarginTop: N } = e, W = !!o, X = ((t == null ? void 0 : t.length) ?? 0) > 0, H = l > 0 && (!n || i), $ = X && (H || n), B = Math.max(0, l) * hf, S = (k) => Z(k, n ?? !1), L = U(null), E = U(null), C = U(null), [p, M] = ie(0), [R, D] = ie(0), oe = R > 0 ? R : 0, I = He(() => gf(r, oe), [r, oe]), [_, Y] = ie(0), le = H && d === "on", [pe, A] = ie(!1), ye = U(null), [j, ue] = ie(0), [Q, $e] = ie(0), Ve = U(null), we = (k) => {
11832
+ const { prefix: r } = ln(), { align: a, speed: l, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: y, stroke: m, strokeColor: g, bgColor: h, padding: v, logoMarginTop: w, logoWidth: f, logoHeight: x, captionMarginTop: N } = e, W = !!o, q = ((t == null ? void 0 : t.length) ?? 0) > 0, H = l > 0 && (!n || i), $ = q && (H || n), B = Math.max(0, l) * hf, S = (k) => Z(k, n ?? !1), L = U(null), E = U(null), C = U(null), [p, M] = ie(0), [R, D] = ie(0), oe = R > 0 ? R : 0, I = He(() => gf(r, oe), [r, oe]), [_, Y] = ie(0), le = H && d === "on", [pe, A] = ie(!1), ye = U(null), [j, ue] = ie(0), [Q, $e] = ie(0), Ve = U(null), we = (k) => {
11833
11833
  var ge, K, he, Ge, fe;
11834
11834
  return {
11835
11835
  fontSettings: {
@@ -11904,7 +11904,7 @@ const hf = 30, zl = 2, ff = (e) => {
11904
11904
  }, [$, ae, t, n, u, b, v, m, y, f, x, j, Q]);
11905
11905
  const P = () => {
11906
11906
  le && A(!0);
11907
- }, q = () => {
11907
+ }, X = () => {
11908
11908
  le && A(!1);
11909
11909
  }, G = He(() => {
11910
11910
  switch (a) {
@@ -12151,7 +12151,7 @@ const hf = 30, zl = 2, ff = (e) => {
12151
12151
  className: `${r}-marquee-track`,
12152
12152
  "data-direction": s,
12153
12153
  onMouseEnter: P,
12154
- onMouseLeave: q,
12154
+ onMouseLeave: X,
12155
12155
  style: {
12156
12156
  display: "flex",
12157
12157
  flexDirection: "row",
@@ -13476,7 +13476,7 @@ function wf(e) {
13476
13476
  `;
13477
13477
  }
13478
13478
  const Sf = 3e3, $f = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
13479
- const { prefix: r } = ln(), a = t || [], { speed: l, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: y, imageWidth: m, imageHeight: g, controlsWidth: h, controlsColor: v, controlsHoverColor: w } = e, f = l > 0 && (!n || !!i), [x, N] = ie(0), [W, X] = ie(null), [H, $] = ie(!1), B = U(null), S = He(() => {
13479
+ const { prefix: r } = ln(), a = t || [], { speed: l, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: y, imageWidth: m, imageHeight: g, controlsWidth: h, controlsColor: v, controlsHoverColor: w } = e, f = l > 0 && (!n || !!i), [x, N] = ie(0), [W, q] = ie(null), [H, $] = ie(!1), B = U(null), S = He(() => {
13480
13480
  switch (s) {
13481
13481
  case "center":
13482
13482
  return "center";
@@ -13498,7 +13498,7 @@ const Sf = 3e3, $f = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13498
13498
  }
13499
13499
  }, [s]);
13500
13500
  Ae(() => {
13501
- N(0), X(null), $(!1);
13501
+ N(0), q(null), $(!1);
13502
13502
  }, [a.length]);
13503
13503
  const E = a[x], C = W === null ? null : a[W], p = (we) => {
13504
13504
  var ee, me, ae, Oe, Ie;
@@ -13522,8 +13522,8 @@ const Sf = 3e3, $f = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13522
13522
  }, M = p("text"), R = p("caption"), D = a.length > 1 && a.some((we) => {
13523
13523
  var de, ee;
13524
13524
  return (((de = we.text) == null ? void 0 : de.length) ?? 0) > 0 || (((ee = we.caption) == null ? void 0 : ee.length) ?? 0) > 0;
13525
- }), oe = U(null), [I, _] = 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), X(we), $(!0), B.current = window.setTimeout(() => {
13526
- X(null), $(!1), B.current = null;
13525
+ }), oe = U(null), [I, _] = 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), q(we), $(!0), B.current = window.setTimeout(() => {
13526
+ q(null), $(!1), B.current = null;
13527
13527
  }, 300), de), [A]), j = Se(() => {
13528
13528
  A && N((we) => ye(we, (we - 1 + a.length) % a.length));
13529
13529
  }, [A, ye, a.length]), ue = Se(() => {
@@ -13541,7 +13541,7 @@ const Sf = 3e3, $f = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13541
13541
  B.current && window.clearTimeout(B.current);
13542
13542
  }, []);
13543
13543
  const Q = (we, de) => {
13544
- var Ie, P, q, G;
13544
+ var Ie, P, X, G;
13545
13545
  const ee = de == null ? void 0 : de.textMinHeightPx, me = de == null ? void 0 : de.captionMinHeightPx, ae = de == null ? void 0 : de.dataMeasureAttrs, Oe = o && !(de != null && de.dataMeasureAttrs) && !(de != null && de.hideControls);
13546
13546
  return /* @__PURE__ */ te(pt, { children: [
13547
13547
  we.text && /* @__PURE__ */ te("div", { style: { display: "flex", flexDirection: "column", alignItems: S, width: "100%" }, children: [
@@ -13580,7 +13580,7 @@ const Sf = 3e3, $f = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
13580
13580
  "img",
13581
13581
  {
13582
13582
  src: (P = we.image) == null ? void 0 : P.url,
13583
- alt: ((q = we.image) == null ? void 0 : q.name) ?? "",
13583
+ alt: ((X = we.image) == null ? void 0 : X.name) ?? "",
13584
13584
  className: `${r}-icon`,
13585
13585
  style: { objectFit: ((G = we.image) == null ? void 0 : G.objectFit) || "contain" }
13586
13586
  }
@@ -15232,7 +15232,7 @@ function Vf({
15232
15232
  );
15233
15233
  }
15234
15234
  function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: l, counterClassName: s, counterStyle: d }) {
15235
- const u = i === "cover", b = U(null), y = U(null), m = U(null), g = U(null), h = U(0), v = U(0), w = U("none"), f = U(!1), x = U(!1), N = U(null), W = U(0), X = U(null), H = U(!1), $ = U(null), B = U(null), S = U(null), L = U(() => {
15235
+ const u = i === "cover", b = U(null), y = U(null), m = U(null), g = U(null), h = U(0), v = U(0), w = U("none"), f = U(!1), x = U(!1), N = U(null), W = U(0), q = U(null), H = U(!1), $ = U(null), B = U(null), S = U(null), L = U(() => {
15236
15236
  }), [E, C] = ie(null), [p, M] = ie(null), [R, D] = ie("opening"), [oe, I] = ie(0), [_, Y] = ie(0), [le, pe] = ie(null), [A, ye] = ie(!1), [j, ue] = ie(!1), [Q, $e] = ie(!1), [Ve, we] = ie(null), de = U(n), ee = U(void 0), me = t[n], ae = me ? ki(me) : !1, Oe = _ !== 0 || A, Ie = le !== null, P = Se((Pe) => {
15237
15237
  const Ye = Pe.currentTarget, ce = Ye instanceof HTMLVideoElement ? { width: Ye.videoWidth, height: Ye.videoHeight } : { width: Ye.naturalWidth, height: Ye.naturalHeight };
15238
15238
  !ce.width || !ce.height || we(ce);
@@ -15247,21 +15247,21 @@ function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15247
15247
  const ce = new ResizeObserver(Ye);
15248
15248
  return ce.observe(Pe), () => ce.disconnect();
15249
15249
  }, []);
15250
- const q = Se(() => {
15250
+ const X = Se(() => {
15251
15251
  $.current !== null && (window.clearTimeout($.current), $.current = null);
15252
15252
  }, []), G = Se(() => {
15253
15253
  const Pe = B.current;
15254
- B.current = null, q(), X.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0, ue(!1), f.current = !1, v.current = 0, w.current = "none", Pe === 1 ? l() : Pe === -1 && a();
15255
- }, [q, l, a]), re = Se(() => {
15256
- q(), B.current = null, X.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0;
15257
- }, [q]), O = Se(() => {
15258
- q(), $.current = window.setTimeout(() => {
15254
+ B.current = null, X(), q.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0, ue(!1), f.current = !1, v.current = 0, w.current = "none", Pe === 1 ? l() : Pe === -1 && a();
15255
+ }, [X, l, a]), re = Se(() => {
15256
+ X(), B.current = null, q.current = null, H.current = !1, pe(null), ye(!1), Y(0), W.current = 0;
15257
+ }, [X]), O = Se(() => {
15258
+ X(), $.current = window.setTimeout(() => {
15259
15259
  B.current !== null && G();
15260
15260
  }, Pn + 32);
15261
- }, [q, G]), z = Se((Pe, Ye) => {
15261
+ }, [X, G]), z = Se((Pe, Ye) => {
15262
15262
  var Re;
15263
15263
  const ce = ((Re = N.current) == null ? void 0 : Re.width) ?? 0;
15264
- if (q(), X.current = Pe, pe(Pe), H.current = !0, ye(!0), Ye) {
15264
+ if (X(), q.current = Pe, pe(Pe), H.current = !0, ye(!0), Ye) {
15265
15265
  B.current = Pe;
15266
15266
  const Je = -Pe * ce;
15267
15267
  W.current = Je, Y(Je), O();
@@ -15270,7 +15270,7 @@ function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15270
15270
  W.current = 0, Y(0), $.current = window.setTimeout(() => {
15271
15271
  $.current = null, re();
15272
15272
  }, Pn + 32);
15273
- }, [q, re, O]), J = Se((Pe) => {
15273
+ }, [X, re, O]), J = Se((Pe) => {
15274
15274
  if (!(t.length <= 1)) {
15275
15275
  if (H.current) {
15276
15276
  if (B.current === Pe) {
@@ -15279,13 +15279,13 @@ function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15279
15279
  }
15280
15280
  re();
15281
15281
  }
15282
- q(), X.current = Pe, pe(Pe), H.current = !1, ye(!1), W.current = 0, Y(0), requestAnimationFrame(() => {
15282
+ X(), q.current = Pe, pe(Pe), H.current = !1, ye(!1), W.current = 0, Y(0), requestAnimationFrame(() => {
15283
15283
  requestAnimationFrame(() => {
15284
15284
  z(Pe, !0);
15285
15285
  });
15286
15286
  });
15287
15287
  }
15288
- }, [t.length, z, G, re, q]);
15288
+ }, [t.length, z, G, re, X]);
15289
15289
  L.current = J;
15290
15290
  const ne = Se((Pe) => {
15291
15291
  Pe.propertyName !== "transform" || !H.current || B.current !== null && G();
@@ -15308,10 +15308,10 @@ function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15308
15308
  const Pe = setTimeout(() => r(), Pn);
15309
15309
  return () => clearTimeout(Pe);
15310
15310
  }, [R, r]), Ae(() => () => {
15311
- q();
15312
- }, [q]), Pt(() => {
15313
- de.current === n && ee.current === (me == null ? void 0 : me.url) || (q(), B.current = null, pe(null), I(0), Y(0), ye(!1), $e(!1), ue(!1), we(null), h.current = 0, v.current = 0, w.current = "none", f.current = !1, H.current = !1, W.current = 0, X.current = null, g.current = null, x.current = !1, de.current = n, ee.current = me == null ? void 0 : me.url);
15314
- }, [n, me == null ? void 0 : me.url, q]), Pt(() => {
15311
+ X();
15312
+ }, [X]), Pt(() => {
15313
+ de.current === n && ee.current === (me == null ? void 0 : me.url) || (X(), B.current = null, pe(null), I(0), Y(0), ye(!1), $e(!1), ue(!1), we(null), h.current = 0, v.current = 0, w.current = "none", f.current = !1, H.current = !1, W.current = 0, q.current = null, g.current = null, x.current = !1, de.current = n, ee.current = me == null ? void 0 : me.url);
15314
+ }, [n, me == null ? void 0 : me.url, X]), Pt(() => {
15315
15315
  const Pe = S.current;
15316
15316
  Pe !== null && (S.current = null, requestAnimationFrame(() => {
15317
15317
  L.current(Pe);
@@ -15352,7 +15352,7 @@ function jf({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
15352
15352
  if (w.current === "horizontal") {
15353
15353
  f.current = !0, ue(!0), v.current = tt;
15354
15354
  const ot = tt < 0 ? 1 : -1;
15355
- X.current !== ot && (X.current = ot, pe(ot)), W.current = tt, Y(tt), _e.preventDefault();
15355
+ q.current !== ot && (q.current = ot, pe(ot)), W.current = tt, Y(tt), _e.preventDefault();
15356
15356
  return;
15357
15357
  }
15358
15358
  w.current === "vertical" && (f.current = !0, ue(!0), h.current = je, I(je), _e.preventDefault());
@@ -15649,7 +15649,7 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15649
15649
  slider: x,
15650
15650
  sliderTiming: N,
15651
15651
  direction: W,
15652
- transition: X,
15652
+ transition: q,
15653
15653
  titleMarginTop: H,
15654
15654
  subtitleMarginTop: $,
15655
15655
  titleColor: B,
@@ -15693,7 +15693,7 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15693
15693
  color: B
15694
15694
  }, P = {
15695
15695
  ...hn(nn(Oe, n))
15696
- }, q = {
15696
+ }, X = {
15697
15697
  fontSettings: {
15698
15698
  fontFamily: I,
15699
15699
  fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
@@ -15706,7 +15706,7 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15706
15706
  textAppearance: ye,
15707
15707
  color: S
15708
15708
  }, re = {
15709
- ...hn(nn(q, n))
15709
+ ...hn(nn(X, n))
15710
15710
  }, O = {
15711
15711
  fontSettings: {
15712
15712
  fontFamily: j,
@@ -15762,7 +15762,7 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15762
15762
  height: "auto",
15763
15763
  maxWidth: "100%",
15764
15764
  ..._e ? { borderRadius: _e } : {}
15765
- }, [_t, At] = ie(0), yt = U(null), St = X === "fade" || W === "horizontal" ? "ltr" : W === "vertical" ? "ttb" : "ltr";
15765
+ }, [_t, At] = ie(0), yt = U(null), St = q === "fade" || W === "horizontal" ? "ltr" : W === "vertical" ? "ttb" : "ltr";
15766
15766
  Ae(() => {
15767
15767
  const vt = yt.current;
15768
15768
  if (!vt) return;
@@ -15910,14 +15910,14 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15910
15910
  width: "100%",
15911
15911
  height: "100%",
15912
15912
  speed: kf,
15913
- type: X === "fade" ? "fade" : "loop",
15914
- rewind: X === "fade",
15913
+ type: q === "fade" ? "fade" : "loop",
15914
+ rewind: q === "fade",
15915
15915
  pauseOnHover: !1,
15916
15916
  pauseOnFocus: !1,
15917
15917
  direction: St
15918
15918
  },
15919
15919
  onMoved: (Mt) => {
15920
- W !== "random" || X === "fade" || Af(Mt);
15920
+ W !== "random" || q === "fade" || Af(Mt);
15921
15921
  },
15922
15922
  children: Qt.map(({ displayMedia: Mt, lightboxMedia: F }, Ee) => {
15923
15923
  const Be = F ? en.findIndex((Ke) => Ke.url === F.url) : -1;
@@ -15932,7 +15932,7 @@ function qf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
15932
15932
  ) }, Ee);
15933
15933
  })
15934
15934
  },
15935
- `${X}-${De}-${W}-${N}-${_t}-${l}`
15935
+ `${q}-${De}-${W}-${N}-${_t}-${l}`
15936
15936
  )
15937
15937
  ] }) }), Ut = je ? null : /* @__PURE__ */ te(pt, { children: [
15938
15938
  /* @__PURE__ */ c(
@@ -19175,7 +19175,7 @@ function au({
19175
19175
  closeIconMaxWidth: f = 0,
19176
19176
  closeIconColor: x = "#000000",
19177
19177
  closeIconHoverColor: N = "#cccccc"
19178
- } = n, W = Z(h, i), X = Z(v, i), H = Z(m, i), $ = g === "mobile", B = Mi("title1", Pi(n, "title1"), i), S = Mi("title2", Pi(n, "title2"), i), L = Mi("title3", Pi(n, "title3"), i), E = He(
19178
+ } = n, W = Z(h, i), q = Z(v, i), H = Z(m, i), $ = g === "mobile", B = Mi("title1", Pi(n, "title1"), i), S = Mi("title2", Pi(n, "title2"), i), L = Mi("title3", Pi(n, "title3"), i), E = He(
19179
19179
  () => ({
19180
19180
  title1Width: l ?? io.title1Width,
19181
19181
  title2Width: s ?? io.title2Width,
@@ -19401,7 +19401,7 @@ function au({
19401
19401
  style: {
19402
19402
  width: Z(f ?? 0, i),
19403
19403
  height: Z(f ?? 0, i),
19404
- marginRight: X,
19404
+ marginRight: q,
19405
19405
  "--close-icon-hover-color": N
19406
19406
  },
19407
19407
  children: [
@@ -19436,7 +19436,7 @@ function au({
19436
19436
  position: "absolute",
19437
19437
  top: 0,
19438
19438
  left: "100%",
19439
- width: X,
19439
+ width: q,
19440
19440
  height: "100%",
19441
19441
  pointerEvents: "auto"
19442
19442
  }
@@ -19444,11 +19444,11 @@ function au({
19444
19444
  )
19445
19445
  ]
19446
19446
  }
19447
- ), q = () => pe ? /* @__PURE__ */ c("div", { className: `${e}-titles-row-header-controls`, children: P() }) : null, G = (K) => /* @__PURE__ */ c("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ c("div", { className: `${e}-titles-stack`, children: K }) }), re = (K) => /* @__PURE__ */ te("div", { className: `${e}-titles-row-top`, children: [
19447
+ ), X = () => pe ? /* @__PURE__ */ c("div", { className: `${e}-titles-row-header-controls`, children: P() }) : null, G = (K) => /* @__PURE__ */ c("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ c("div", { className: `${e}-titles-stack`, children: K }) }), re = (K) => /* @__PURE__ */ te("div", { className: `${e}-titles-row-top`, children: [
19448
19448
  pe || le ? me() : null,
19449
19449
  ye ? ee("two-row") : null,
19450
19450
  G(K),
19451
- q()
19451
+ X()
19452
19452
  ] }), O = (K, he = !1) => /* @__PURE__ */ te(pt, { children: [
19453
19453
  re(Oe(K)),
19454
19454
  Ie(K, he)
@@ -19574,7 +19574,7 @@ function au({
19574
19574
  pe || le ? me() : null,
19575
19575
  ye ? ee("single-row") : null,
19576
19576
  le ? G(ae(t)) : /* @__PURE__ */ c("div", { className: `${e}-titles-row-titles`, "aria-hidden": "true" }),
19577
- q(),
19577
+ X(),
19578
19578
  be()
19579
19579
  ]
19580
19580
  }
@@ -20336,8 +20336,8 @@ function Fy({
20336
20336
  onPrev: h,
20337
20337
  onNext: v
20338
20338
  }) {
20339
- const w = U(null), f = U(null), x = U(null), N = U(/* @__PURE__ */ new Map()), [W, X] = ie(0), H = U(null), $ = U(0), B = U(0), S = U("none"), L = U(!1), E = U(!1), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(() => {
20340
- }), oe = U(null), I = U(null), _ = U(null), Y = U(!1), [le, pe] = ie(null), [A, ye] = ie(Ha), [j, ue] = ie(0), [Q, $e] = ie("opening"), [Ve, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Oe, Ie] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Le, be] = ie(!1), k = U(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = U(n), fe = U(void 0), V = t[n], Fe = V ? To(V) : !1, De = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, lt = Se((F, Ee) => t.length <= 1 ? null : t[(F + Ee + t.length) % t.length] ?? null, [t]), qe = ut ? _o(d, u, -1) : lt(n, -1), Te = ut ? _o(d, u, 1) : lt(n, 1), ze = Oe === -1 && De ? ut && P !== null ? _o(d, P, -1) : G !== null ? lt(G, -1) : null : null, Ue = Oe === 1 && De ? ut && P !== null ? _o(d, P, 1) : G !== null ? lt(G, 1) : null : null, nt = ze && ze.url !== (qe == null ? void 0 : qe.url) ? ze : null, Pe = Ue && Ue.url !== (Te == null ? void 0 : Te.url) ? Ue : null, Ye = qe && it ? (() => {
20339
+ const w = U(null), f = U(null), x = U(null), N = U(/* @__PURE__ */ new Map()), [W, q] = ie(0), H = U(null), $ = U(0), B = U(0), S = U("none"), L = U(!1), E = U(!1), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(() => {
20340
+ }), oe = U(null), I = U(null), _ = U(null), Y = U(!1), [le, pe] = ie(null), [A, ye] = ie(Ha), [j, ue] = ie(0), [Q, $e] = ie("opening"), [Ve, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Oe, Ie] = ie(null), [P, X] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Le, be] = ie(!1), k = U(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = U(n), fe = U(void 0), V = t[n], Fe = V ? To(V) : !1, De = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, lt = Se((F, Ee) => t.length <= 1 ? null : t[(F + Ee + t.length) % t.length] ?? null, [t]), qe = ut ? _o(d, u, -1) : lt(n, -1), Te = ut ? _o(d, u, 1) : lt(n, 1), ze = Oe === -1 && De ? ut && P !== null ? _o(d, P, -1) : G !== null ? lt(G, -1) : null : null, Ue = Oe === 1 && De ? ut && P !== null ? _o(d, P, 1) : G !== null ? lt(G, 1) : null : null, nt = ze && ze.url !== (qe == null ? void 0 : qe.url) ? ze : null, Pe = Ue && Ue.url !== (Te == null ? void 0 : Te.url) ? Ue : null, Ye = qe && it ? (() => {
20341
20341
  const F = ut ? Ql(d, u, -1) : t.length > 2 ? lt((n - 1 + t.length) % t.length, -1) : null;
20342
20342
  return F && F.url !== qe.url ? F : null;
20343
20343
  })() : null, ce = Te && it ? (() => {
@@ -20346,7 +20346,7 @@ function Fy({
20346
20346
  })() : null, Re = nt ?? Ye, Je = Pe ?? ce, Xe = Se((F, Ee, Be) => {
20347
20347
  if (!F || !Ee || !Be) return;
20348
20348
  const Ke = N.current, ft = Ke.get(F);
20349
- (ft == null ? void 0 : ft.width) === Ee && (ft == null ? void 0 : ft.height) === Be || (Ke.set(F, { width: Ee, height: Be }), X((zt) => zt + 1));
20349
+ (ft == null ? void 0 : ft.width) === Ee && (ft == null ? void 0 : ft.height) === Be || (Ke.set(F, { width: Ee, height: Be }), q((zt) => zt + 1));
20350
20350
  }, []), Me = Se((F) => {
20351
20351
  if (!(F != null && F.url)) return null;
20352
20352
  const Ee = N.current.get(F.url);
@@ -20363,10 +20363,10 @@ function Fy({
20363
20363
  }, [V, Me]), Ne = Se((F) => {
20364
20364
  if (ut) {
20365
20365
  const Ee = d.length;
20366
- q((u + F + Ee) % Ee), re(null);
20366
+ X((u + F + Ee) % Ee), re(null);
20367
20367
  return;
20368
20368
  }
20369
- t.length > 1 && (re((n + F + t.length) % t.length), q(null));
20369
+ t.length > 1 && (re((n + F + t.length) % t.length), X(null));
20370
20370
  }, [ut, d.length, u, t.length, n]), tt = Se((F) => {
20371
20371
  C.current = F, ae(F);
20372
20372
  }, []), je = Se(() => {
@@ -20416,13 +20416,13 @@ function Fy({
20416
20416
  Me
20417
20417
  ]), Tt = Se(() => {
20418
20418
  const F = M.current;
20419
- M.current = null, je(), tt(!1), Ie(null), q(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none", F === -1 ? h() : F === 1 && v();
20419
+ M.current = null, je(), tt(!1), Ie(null), X(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none", F === -1 ? h() : F === 1 && v();
20420
20420
  }, [je, tt, h, v]), _t = Se(() => {
20421
20421
  je(), p.current = window.setTimeout(() => {
20422
20422
  M.current !== null && Tt();
20423
20423
  }, Ro + 32);
20424
20424
  }, [je, Tt]), At = Se(() => {
20425
- je(), M.current = null, tt(!1), Ie(null), q(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none";
20425
+ je(), M.current = null, tt(!1), Ie(null), X(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none";
20426
20426
  }, [je, tt]), yt = Se((F) => {
20427
20427
  if (!(!it || !le)) {
20428
20428
  if (C.current) {
@@ -20531,7 +20531,7 @@ function Fy({
20531
20531
  }, [Q, g]), Ae(() => () => {
20532
20532
  je();
20533
20533
  }, [je]), Pt(() => {
20534
- Ge.current === n && fe.current === (V == null ? void 0 : V.url) || (je(), M.current = null, Ie(null), q(null), re(null), we(0), ee(0), tt(!1), he(!1), ge(!1), $.current = 0, B.current = 0, S.current = "none", L.current = !1, H.current = null, E.current = !1, x.current = null, _e(), Ge.current = n, fe.current = V == null ? void 0 : V.url);
20534
+ Ge.current === n && fe.current === (V == null ? void 0 : V.url) || (je(), M.current = null, Ie(null), X(null), re(null), we(0), ee(0), tt(!1), he(!1), ge(!1), $.current = 0, B.current = 0, S.current = "none", L.current = !1, H.current = null, E.current = !1, x.current = null, _e(), Ge.current = n, fe.current = V == null ? void 0 : V.url);
20535
20535
  }, [n, V == null ? void 0 : V.url, tt, je, _e]), Pt(() => {
20536
20536
  const F = R.current;
20537
20537
  F !== null && (R.current = null, requestAnimationFrame(() => {
@@ -20569,7 +20569,7 @@ function Fy({
20569
20569
  Ee(gt);
20570
20570
  return;
20571
20571
  }
20572
- M.current = null, Ie(null), q(null), re(null), tt(!0), ee(0), ot();
20572
+ M.current = null, Ie(null), X(null), re(null), tt(!0), ee(0), ot();
20573
20573
  }, Ke = (gt) => {
20574
20574
  if (gt.touches.length !== 1 || C.current) return;
20575
20575
  const It = gt.touches[0];
@@ -20908,7 +20908,7 @@ function _y({
20908
20908
  layoutId: r,
20909
20909
  portalId: a
20910
20910
  }) {
20911
- const { prefix: l } = ln(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, y = (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, X = Z(N, n), H = Z(s.horizontalGap ?? 0, n), $ = X, B = X, S = {
20911
+ const { prefix: l } = ln(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, y = (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, q = Z(N, n), H = Z(s.horizontalGap ?? 0, n), $ = q, B = q, S = {
20912
20912
  width: $,
20913
20913
  ...y ? { aspectRatio: x, height: "auto", overflow: "hidden" } : { height: "auto" }
20914
20914
  }, L = y ? {
@@ -20952,7 +20952,7 @@ function _y({
20952
20952
  return;
20953
20953
  }
20954
20954
  oe((re) => (re + G + M.length) % M.length);
20955
- }, [ee, I, D, M.length]), q = ee.length > 1 || M.length > 1;
20955
+ }, [ee, I, D, M.length]), X = ee.length > 1 || M.length > 1;
20956
20956
  return Ae(() => {
20957
20957
  if (!C || typeof document > "u") return;
20958
20958
  const G = document.body.style.overflow;
@@ -20970,7 +20970,7 @@ function _y({
20970
20970
  ref: E,
20971
20971
  className: `${l}-wrapper ${l}-align-entries ${l}-image-align-${u}`.trim(),
20972
20972
  style: {
20973
- gridTemplateColumns: `repeat(${W}, ${X})`,
20973
+ gridTemplateColumns: `repeat(${W}, ${q})`,
20974
20974
  rowGap: 0,
20975
20975
  columnGap: H,
20976
20976
  width: Z(s.wrapperWidth ?? 0, n),
@@ -20999,7 +20999,7 @@ function _y({
20999
20999
  ne ? `${l}-item-inner-last-row` : ""
21000
21000
  ].filter(Boolean).join(" "),
21001
21001
  style: {
21002
- width: X,
21002
+ width: q,
21003
21003
  ...Le ? { gridColumn: Le } : {}
21004
21004
  },
21005
21005
  children: [
@@ -21026,7 +21026,7 @@ function _y({
21026
21026
  isEditor: n,
21027
21027
  isEditMode: o,
21028
21028
  isPreviewMode: i,
21029
- canNavigate: q,
21029
+ canNavigate: X,
21030
21030
  lightboxEntries: ee,
21031
21031
  entryIdx: I,
21032
21032
  layoutId: r,
@@ -24951,7 +24951,7 @@ function Lv(e, t, n) {
24951
24951
  const o = gu(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) => {
24952
24952
  if (d)
24953
24953
  return x;
24954
- const N = $r({ ...t, ...x }), W = Do(x), X = jr(u, W, N), H = wv(u, X, {
24954
+ const N = $r({ ...t, ...x }), W = Do(x), q = jr(u, W, N), H = wv(u, q, {
24955
24955
  ...t,
24956
24956
  ...x
24957
24957
  });
@@ -25052,7 +25052,7 @@ function Ev({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25052
25052
  cutCellMinHeight: x,
25053
25053
  cutLabel: N,
25054
25054
  imageSize: W,
25055
- imageOnHover: X,
25055
+ imageOnHover: q,
25056
25056
  imagePosition: H = "cursor",
25057
25057
  imageInterpolation: $ = "on",
25058
25058
  entryHoverEffect: B,
@@ -25068,10 +25068,10 @@ function Ev({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25068
25068
  textHoverColor: I,
25069
25069
  backgroundHoverColor: _,
25070
25070
  dividerHoverColor: Y
25071
- } = e, [le, pe] = ie(void 0), [A, ye] = ie(null), j = U(null), ue = X === "on" && (!n || i), Q = H === "cursor", $e = Q && $ === "on", { anchorRef: Ve, onShow: we, onCursorMove: de, exit: ee } = Jy(
25071
+ } = e, [le, pe] = ie(void 0), [A, ye] = ie(null), j = U(null), ue = q === "on" && (!n || i), Q = H === "cursor", $e = Q && $ === "on", { anchorRef: Ve, onShow: we, onCursorMove: de, exit: ee } = Jy(
25072
25072
  !!(ue && A !== null),
25073
25073
  $e
25074
- ), me = (w ?? 0) > 0, ae = b === "b", Oe = U(null), Ie = U(null), [P, q] = ie(null), [G, re] = ie(Jo), O = gu(G), z = Math.max(0, ((y ?? 0) - O) / 2), J = Math.min(M ?? 0, z), ne = Math.max(J, Yi), Le = ((y ?? 0) + O) / 2;
25074
+ ), me = (w ?? 0) > 0, ae = b === "b", Oe = U(null), Ie = U(null), [P, X] = ie(null), [G, re] = ie(Jo), O = gu(G), z = Math.max(0, ((y ?? 0) - O) / 2), J = Math.min(M ?? 0, z), ne = Math.max(J, Yi), Le = ((y ?? 0) + O) / 2;
25075
25075
  Pt(() => {
25076
25076
  if (!n) {
25077
25077
  re(Jo);
@@ -25258,22 +25258,22 @@ function Ev({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
25258
25258
  j.current = null, we(ke, Ze);
25259
25259
  }, [A == null ? void 0 : A.rowId, A == null ? void 0 : A.url, we]), Pt(() => {
25260
25260
  if (!d || ae) {
25261
- q(null);
25261
+ X(null);
25262
25262
  return;
25263
25263
  }
25264
25264
  const ke = Ie.current, Ze = ke == null ? void 0 : ke.parentElement;
25265
25265
  if (!ke || !Ze) {
25266
- q(null);
25266
+ X(null);
25267
25267
  return;
25268
25268
  }
25269
25269
  const mt = () => {
25270
25270
  const Ct = ke.querySelector("[data-list-row]");
25271
25271
  if (!Ct) {
25272
- q(null);
25272
+ X(null);
25273
25273
  return;
25274
25274
  }
25275
25275
  const Nt = Ze.getBoundingClientRect(), xt = Ct.getBoundingClientRect();
25276
- q(xt.top - Nt.top + xt.height / 2);
25276
+ X(xt.top - Nt.top + xt.height / 2);
25277
25277
  };
25278
25278
  mt();
25279
25279
  const bt = new ResizeObserver(mt);
@@ -30013,7 +30013,7 @@ function e0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30013
30013
  answerColor: x = "#000000",
30014
30014
  dividerColor: N = "#0000001F",
30015
30015
  iconColor: W = "#000000",
30016
- questionHoverColor: X = "#666666",
30016
+ questionHoverColor: q = "#666666",
30017
30017
  iconHoverColor: H = "#666666",
30018
30018
  iconActiveColor: $ = "#000000",
30019
30019
  dividerHoverColor: B = "#000000",
@@ -30044,7 +30044,7 @@ function e0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30044
30044
  }, [m]), Ae(() => {
30045
30045
  n && !o && !i && ee(/* @__PURE__ */ new Set());
30046
30046
  }, [n, o, i]);
30047
- const ae = (nt) => Z(nt, n ?? !1), Oe = Math.max(A, Qn), Ie = Math.max(ye, Qn), P = Math.max(j, Qn), q = Math.max(ue, Qn), G = Math.max(Q, Qn), re = Math.max($e, Qn), O = Math.max(Ve, Qn), z = Math.max(0, (s ?? 1) - v - h), J = Math.max(0, (s ?? 1) - Q), ne = Math.max(0, (s ?? 1) - ue), Le = Math.max(v, Qn), be = Math.max(0, (s ?? 1) - A - h), k = He(() => de.size === 0 ? 0 : Math.min(...de), [de]), xe = Se((nt) => de.has(nt), [de]), ge = me && y === "default" ? `${a}-entry-hover-default` : "", K = g ?? "", he = K !== "", Ge = w.replace(/^rotate /, ""), fe = `${a}-icon-anim-${Ge}`, V = hn(nn(
30047
+ const ae = (nt) => Z(nt, n ?? !1), Oe = Math.max(A, Qn), Ie = Math.max(ye, Qn), P = Math.max(j, Qn), X = Math.max(ue, Qn), G = Math.max(Q, Qn), re = Math.max($e, Qn), O = Math.max(Ve, Qn), z = Math.max(0, (s ?? 1) - v - h), J = Math.max(0, (s ?? 1) - Q), ne = Math.max(0, (s ?? 1) - ue), Le = Math.max(v, Qn), be = Math.max(0, (s ?? 1) - A - h), k = He(() => de.size === 0 ? 0 : Math.min(...de), [de]), xe = Se((nt) => de.has(nt), [de]), ge = me && y === "default" ? `${a}-entry-hover-default` : "", K = g ?? "", he = K !== "", Ge = w.replace(/^rotate /, ""), fe = `${a}-icon-anim-${Ge}`, V = hn(nn(
30048
30048
  vc(
30049
30049
  S,
30050
30050
  L,
@@ -30083,7 +30083,7 @@ function e0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30083
30083
  answerColor: x,
30084
30084
  dividerColor: N,
30085
30085
  iconColor: W,
30086
- questionHoverColor: X,
30086
+ questionHoverColor: q,
30087
30087
  iconHoverColor: H,
30088
30088
  iconActiveColor: $,
30089
30089
  dividerHoverColor: B
@@ -30287,7 +30287,7 @@ function e0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
30287
30287
  style: {
30288
30288
  top: 0,
30289
30289
  left: 0,
30290
- width: ae(q),
30290
+ width: ae(X),
30291
30291
  height: "100%"
30292
30292
  }
30293
30293
  }
@@ -31708,9 +31708,9 @@ const bc = {
31708
31708
  x(S);
31709
31709
  }, [x]), W = Se((S) => {
31710
31710
  x(S);
31711
- }, [x]), X = o > 0, H = a ? `transform ${n}ms ease` : "none", $ = a ? `opacity ${n}ms ease` : "none", B = o > 0 || a;
31711
+ }, [x]), q = o > 0, H = a ? `transform ${n}ms ease` : "none", $ = a ? `opacity ${n}ms ease` : "none", B = o > 0 || a;
31712
31712
  return {
31713
- isSwipeDragging: X,
31713
+ isSwipeDragging: q,
31714
31714
  backdropStyle: {
31715
31715
  opacity: b(o),
31716
31716
  transition: $
@@ -31718,8 +31718,8 @@ const bc = {
31718
31718
  mediaAreaStyle: {
31719
31719
  transform: m(o),
31720
31720
  transition: H,
31721
- touchAction: X ? "none" : void 0,
31722
- willChange: X ? "transform" : void 0
31721
+ touchAction: q ? "none" : void 0,
31722
+ willChange: q ? "transform" : void 0
31723
31723
  },
31724
31724
  overlayContentStyle: B ? {
31725
31725
  opacity: y(o),
@@ -31732,7 +31732,7 @@ const bc = {
31732
31732
  onPointerCancel: W
31733
31733
  } : {},
31734
31734
  dismissAreaStyle: e ? {
31735
- touchAction: X ? "none" : "pan-x"
31735
+ touchAction: q ? "none" : "pan-x"
31736
31736
  } : void 0
31737
31737
  };
31738
31738
  }, a0 = "[data-lightbox-scrollable]", xu = () => {
@@ -31948,7 +31948,7 @@ const bc = {
31948
31948
  thumbnailActive: x,
31949
31949
  thumbnailActiveColor: N,
31950
31950
  title1Width: W,
31951
- title2Width: X,
31951
+ title2Width: q,
31952
31952
  title3Width: H,
31953
31953
  title1MarginLeft: $ = 0,
31954
31954
  title2MarginLeft: B = 0,
@@ -31959,10 +31959,10 @@ const bc = {
31959
31959
  iconMarginLeft: p
31960
31960
  } = n, M = (T) => Z(T, i ?? !1), R = s ?? n.thumnailSize ?? 0.03, D = M(R), oe = M(d), I = M(u ?? 0.02), _ = M(b ?? 0), Y = M(C ?? 0), le = Lr(Y), pe = M(p ?? 0), [A, ye] = ie(0), j = U(A);
31961
31961
  j.current = A;
31962
- const ue = t[A], { title1: Q, title2: $e, title3: Ve } = T0(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), Oe = ae, Ie = ae, P = ae, q = Yn(f), G = q ? { "--image-aspect-ratio": xa(f) } : void 0, re = !!(Q || $e || Ve), O = He(
31962
+ const ue = t[A], { title1: Q, title2: $e, title3: Ve } = T0(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), Oe = ae, Ie = ae, P = ae, X = Yn(f), G = X ? { "--image-aspect-ratio": xa(f) } : void 0, re = !!(Q || $e || Ve), O = He(
31963
31963
  () => R0(e, Q, $e, Ve, we, de, ee),
31964
31964
  [e, A, Q, $e, Ve, we, de, ee]
31965
- ), z = He(() => ({ title1Width: W, title2Width: X, title3Width: H }), [W, X, H]), J = He(() => O.map((T) => z[T.widthKey]), [O, z]), ne = He(() => ml(O.length, J), [O.length, J]), Le = He(() => wu(O.length, J), [O.length, J]), be = He(() => O.filter((T) => T.prefix === "title1"), [O]), k = He(() => O.filter((T) => T.prefix === "title2" || T.prefix === "title3"), [O]), xe = He(() => Sc(be, z), [be, z]), ge = He(() => Sc(k, z), [k, z]), K = Se((T, se) => {
31965
+ ), z = He(() => ({ title1Width: W, title2Width: q, title3Width: H }), [W, q, H]), J = He(() => O.map((T) => z[T.widthKey]), [O, z]), ne = He(() => ml(O.length, J), [O.length, J]), Le = He(() => wu(O.length, J), [O.length, J]), be = He(() => O.filter((T) => T.prefix === "title1"), [O]), k = He(() => O.filter((T) => T.prefix === "title2" || T.prefix === "title3"), [O]), xe = He(() => Sc(be, z), [be, z]), ge = He(() => Sc(k, z), [k, z]), K = Se((T, se) => {
31966
31966
  const ve = O.indexOf(T);
31967
31967
  if (!me || se === "single-row")
31968
31968
  return {
@@ -32798,7 +32798,7 @@ const bc = {
32798
32798
  children: /* @__PURE__ */ c(
32799
32799
  "img",
32800
32800
  {
32801
- className: `${e}-thumb-image${q ? ` ${e}-thumb-image-cover` : ""}`,
32801
+ className: `${e}-thumb-image${X ? ` ${e}-thumb-image-cover` : ""}`,
32802
32802
  src: ve.image.url,
32803
32803
  alt: "",
32804
32804
  draggable: !1,
@@ -34518,7 +34518,7 @@ const H0 = I0(), O0 = {
34518
34518
  title2Width: x,
34519
34519
  title3Width: N,
34520
34520
  title1MarginLeft: W = 0,
34521
- title2MarginLeft: X = 0,
34521
+ title2MarginLeft: q = 0,
34522
34522
  title3MarginLeft: H = 0,
34523
34523
  titleRowMarginBottom: $ = 0,
34524
34524
  titleHeaderLayout: B = "single-row",
@@ -34529,7 +34529,7 @@ const H0 = I0(), O0 = {
34529
34529
  closeIconHoverColor: p,
34530
34530
  contentMarginTop: M = 0,
34531
34531
  iconMarginRight: R = 0
34532
- } = n, D = Se((Ce) => Z(Ce, i ?? !1), [i]), oe = D(g ?? 0), I = `${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, Ve = !o && (!i || !!r), we = He(() => Vr(t, b), [t, b]), [de, ee] = ie(a), me = we[de], ae = me == null ? void 0 : me.entry, [Oe, Ie] = ie(!1), [P, q] = ie(null), [G, re] = ie(!1), [O, z] = ie(null), [J, ne] = ie(!1), [Le, be] = ie(0), [k, xe] = ie(), [ge, K] = ie(), [he, Ge] = ie(null), fe = U(null), V = U(0), Fe = U(0), De = U(0), dt = U(!1), it = U(null), ut = U(null), lt = U(null), qe = U(null), Te = U(null), ze = U(null), Ue = U(null), nt = Se(() => {
34532
+ } = n, D = Se((Ce) => Z(Ce, i ?? !1), [i]), oe = D(g ?? 0), I = `${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, Ve = !o && (!i || !!r), we = He(() => Vr(t, b), [t, b]), [de, ee] = ie(a), me = we[de], ae = me == null ? void 0 : me.entry, [Oe, Ie] = ie(!1), [P, X] = ie(null), [G, re] = ie(!1), [O, z] = ie(null), [J, ne] = ie(!1), [Le, be] = ie(0), [k, xe] = ie(), [ge, K] = ie(), [he, Ge] = ie(null), fe = U(null), V = U(0), Fe = U(0), De = U(0), dt = U(!1), it = U(null), ut = U(null), lt = U(null), qe = U(null), Te = U(null), ze = U(null), Ue = U(null), nt = Se(() => {
34533
34533
  const Ce = ut.current;
34534
34534
  if (!Ce) return;
34535
34535
  const et = Ce.closest(`.${e}-lightbox-content-area`);
@@ -34578,9 +34578,9 @@ const H0 = I0(), O0 = {
34578
34578
  Qe ?? 0,
34579
34579
  (ct == null ? void 0 : ct.measuredIncomingTitlesHeight) ?? 0
34580
34580
  ) || void 0;
34581
- be(ve), z(de), ne(!0), ee(et), je(et), De.current = et, We ? (Pe(), Rt && xe(Rt), ct != null && ct.incomingTitlesMeasureWidth && K(ct.incomingTitlesMeasureWidth), q((T == null ? void 0 : T.entryIndex) ?? null), re(!0), Fe.current = se.entryIndex, fe.current = setTimeout(() => {
34582
- q(null), re(!1), xe(void 0), K(void 0), Ge(null), fe.current = null;
34583
- }, 400)) : (Pe(), q(null), re(!1), xe(void 0), K(void 0), Ge(null), Fe.current = se.entryIndex);
34581
+ be(ve), z(de), ne(!0), ee(et), je(et), De.current = et, We ? (Pe(), Rt && xe(Rt), ct != null && ct.incomingTitlesMeasureWidth && K(ct.incomingTitlesMeasureWidth), X((T == null ? void 0 : T.entryIndex) ?? null), re(!0), Fe.current = se.entryIndex, fe.current = setTimeout(() => {
34582
+ X(null), re(!1), xe(void 0), K(void 0), Ge(null), fe.current = null;
34583
+ }, 400)) : (Pe(), X(null), re(!1), xe(void 0), K(void 0), Ge(null), Fe.current = se.entryIndex);
34584
34584
  }, [de, Pe, nt, ot, we, je, w]), st = Se(() => {
34585
34585
  Ue.current = null;
34586
34586
  }, []), Tt = Se((Ce) => {
@@ -34624,7 +34624,7 @@ const H0 = I0(), O0 = {
34624
34624
  };
34625
34625
  }, []), Ae(() => {
34626
34626
  var Ce;
34627
- w !== "fade" && (Fe.current = ((Ce = we[de]) == null ? void 0 : Ce.entryIndex) ?? 0, Pe(), q(null), re(!1), xe(void 0), K(void 0));
34627
+ w !== "fade" && (Fe.current = ((Ce = we[de]) == null ? void 0 : Ce.entryIndex) ?? 0, Pe(), X(null), re(!1), xe(void 0), K(void 0));
34628
34628
  }, [de, Pe, we, w]), Ae(() => {
34629
34629
  const Ce = (et) => {
34630
34630
  if (et.key === "Escape") {
@@ -34652,7 +34652,7 @@ const H0 = I0(), O0 = {
34652
34652
  };
34653
34653
  return window.addEventListener("keydown", Ce), () => window.removeEventListener("keydown", Ce);
34654
34654
  }, [at, ce, de, we.length]), Pt(() => {
34655
- Pe(), V.current = 0, be(0), z(null), ne(!1), q(null), re(!1), xe(void 0), K(void 0), Ge(null), ee((Ce) => {
34655
+ Pe(), V.current = 0, be(0), z(null), ne(!1), X(null), re(!1), xe(void 0), K(void 0), Ge(null), ee((Ce) => {
34656
34656
  const et = Math.max(0, we.length - 1);
34657
34657
  return Math.min(Ce, et);
34658
34658
  });
@@ -34669,9 +34669,9 @@ const H0 = I0(), O0 = {
34669
34669
  }),
34670
34670
  [f, x, N]
34671
34671
  ), ke = He(() => ({
34672
- title2MarginLeft: X,
34672
+ title2MarginLeft: q,
34673
34673
  title3MarginLeft: H
34674
- }), [X, H]), Ze = He(
34674
+ }), [q, H]), Ze = He(
34675
34675
  () => ae ? ai(e, ae, A, ye, j) : [],
34676
34676
  [e, ae, A, ye, j]
34677
34677
  ), mt = He(
@@ -35993,12 +35993,12 @@ const V0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
35993
35993
  const { prefix: l } = ln(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: b } = e, y = U(null), [m, g] = ie(!1), [h, v] = ie(0), w = U(!1), f = U(!1), x = U(!1), N = He(
35994
35994
  () => (t ?? []).filter((S) => co(S).length > 0),
35995
35995
  [t]
35996
- ), W = m && N.length > 0, X = !n, H = Se(() => {
35997
- X && (x.current = !0, ty(f.current, s), f.current = !1);
35998
- }, [X, s]), $ = (S = 0) => {
35996
+ ), W = m && N.length > 0, q = !n, H = Se(() => {
35997
+ q && (x.current = !0, ty(f.current, s), f.current = !1);
35998
+ }, [q, s]), $ = (S = 0) => {
35999
35999
  if (N.length === 0 || n && !i && !o) return;
36000
36000
  const L = Vr(N, b), E = Math.max(0, Math.min(S, L.length - 1));
36001
- if (v(E), X) {
36001
+ if (v(E), q) {
36002
36002
  const C = nu();
36003
36003
  tu(E + 1, s, C), f.current = !C;
36004
36004
  }
@@ -36009,14 +36009,20 @@ const V0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
36009
36009
  return Ae(() => {
36010
36010
  !n || i || o || g(!1);
36011
36011
  }, [n, i, o]), Ae(() => {
36012
- if (!X || w.current) return;
36012
+ if (!q || typeof window > "u") return;
36013
+ const S = window.history.scrollRestoration;
36014
+ return window.history.scrollRestoration = "manual", () => {
36015
+ window.history.scrollRestoration = S;
36016
+ };
36017
+ }, [q]), Ae(() => {
36018
+ if (!q || w.current) return;
36013
36019
  w.current = !0;
36014
36020
  const S = Yl(s);
36015
36021
  if (!S) return;
36016
36022
  const L = Kl(S, Vr(N, b).length);
36017
36023
  L < 0 || (v(L), g(!0));
36018
- }, [N, s, X, b]), Ae(() => {
36019
- if (!X) return;
36024
+ }, [N, s, q, b]), Ae(() => {
36025
+ if (!q) return;
36020
36026
  const S = () => {
36021
36027
  if (x.current) {
36022
36028
  x.current = !1, g(!1);
@@ -36035,7 +36041,7 @@ const V0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
36035
36041
  f.current = !1, v(E), g(!0);
36036
36042
  };
36037
36043
  return window.addEventListener("popstate", S), () => window.removeEventListener("popstate", S);
36038
- }, [N, s, X, b]), /* @__PURE__ */ te(pt, { children: [
36044
+ }, [N, s, q, b]), /* @__PURE__ */ te(pt, { children: [
36039
36045
  /* @__PURE__ */ te("div", { ref: y, className: `${l}-wrapper`, children: [
36040
36046
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: B0(l) } }),
36041
36047
  d ? /* @__PURE__ */ c(
@@ -36077,7 +36083,7 @@ const V0 = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
36077
36083
  isEditMode: i,
36078
36084
  isPreviewMode: o,
36079
36085
  initialSlideIndex: h,
36080
- enableUrlSync: X,
36086
+ enableUrlSync: q,
36081
36087
  journalItemId: s,
36082
36088
  onBeforeClose: H,
36083
36089
  onClose: B
@@ -36692,6 +36698,15 @@ export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPre
36692
36698
  setLightboxOpen(false);
36693
36699
  }, [isEditor, isEditMode, isPreviewMode]);
36694
36700
 
36701
+ useEffect(() => {
36702
+ if (!shouldSyncUrl || typeof window === 'undefined') return;
36703
+ const originalScrollRestoration = window.history.scrollRestoration;
36704
+ window.history.scrollRestoration = 'manual';
36705
+ return () => {
36706
+ window.history.scrollRestoration = originalScrollRestoration;
36707
+ };
36708
+ }, [shouldSyncUrl]);
36709
+
36695
36710
  useEffect(() => {
36696
36711
  if (!shouldSyncUrl || didApplyInitialUrlRef.current) return;
36697
36712
  didApplyInitialUrlRef.current = true;
@@ -37561,7 +37576,7 @@ async function nb(e) {
37561
37576
  function ib({ settings: e, content: t = [], isEditor: n }) {
37562
37577
  const { prefix: i } = ln(), [o, r] = ie(null), [a, l] = ie([]), [s, d] = ie(0), u = U(0), [b, y] = ie({ x: 0, y: 0 }), [m, g] = ie("none"), h = U({ x: 0, y: 0 }), [v, w] = ie(!1), [f, x] = ie(!1), N = U(/* @__PURE__ */ new Map()), {
37563
37578
  imageSize: W = J0,
37564
- cursor: X = "system",
37579
+ cursor: q = "system",
37565
37580
  target: H = "area",
37566
37581
  position: $ = "random",
37567
37582
  visible: B = "all",
@@ -37576,9 +37591,9 @@ function ib({ settings: e, content: t = [], isEditor: n }) {
37576
37591
  if (!o) return;
37577
37592
  const le = o.getBoundingClientRect(), pe = I - le.left, A = _ - le.top;
37578
37593
  y({ x: pe, y: A }), g(
37579
- Q0(pe, A, Y, o, X, H, L, S)
37594
+ Q0(pe, A, Y, o, q, H, L, S)
37580
37595
  );
37581
- }, [o, a, X, H, L, S]);
37596
+ }, [o, a, q, H, L, S]);
37582
37597
  Ae(() => {
37583
37598
  const I = [
37584
37599
  ...E.map((Y) => Y.image.url),
@@ -37671,7 +37686,7 @@ function ib({ settings: e, content: t = [], isEditor: n }) {
37671
37686
  if (!j) return;
37672
37687
  const ue = B === "all" ? [...a, j] : [j];
37673
37688
  l(ue), d((Q) => (Q + 1) % E.length), p(I.clientX, I.clientY, ue);
37674
- }, oe = X === "custom" && m !== "none";
37689
+ }, oe = q === "custom" && m !== "none";
37675
37690
  return /* @__PURE__ */ te(pt, { children: [
37676
37691
  /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: C } }),
37677
37692
  /* @__PURE__ */ te(
@@ -38694,7 +38709,7 @@ function hb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38694
38709
  maxHeight: s,
38695
38710
  transition: d = 1e3,
38696
38711
  bgImage: u = "greyscale"
38697
- } = e, b = t ?? [], y = Tc(b.length), [m, g] = ie(y.activeIndex), [h, v] = ie(y.backgroundIndex), [w, f] = ie(!1), [x, N] = ie(!1), [W, X] = ie(null), [H, $] = ie(null), [B, S] = ie(0), [L, E] = ie(1), [C, p] = ie("none"), [M, R] = ie("next"), [D, oe] = ie({}), [I, _] = ie({ width: 0, height: 0 }), Y = U(null), le = U(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) => {
38712
+ } = e, b = t ?? [], y = Tc(b.length), [m, g] = ie(y.activeIndex), [h, v] = ie(y.backgroundIndex), [w, f] = ie(!1), [x, N] = ie(!1), [W, q] = ie(null), [H, $] = ie(null), [B, S] = ie(0), [L, E] = ie(1), [C, p] = ie("none"), [M, R] = ie("next"), [D, oe] = ie({}), [I, _] = ie({ width: 0, height: 0 }), Y = U(null), le = U(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) => {
38698
38713
  const xe = pb(k ? D[k] : void 0);
38699
38714
  return mb(
38700
38715
  I.width,
@@ -38725,7 +38740,7 @@ function hb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38725
38740
  });
38726
38741
  }, [t]), Ae(() => {
38727
38742
  const { backgroundIndex: k, activeIndex: xe } = Tc(b.length);
38728
- g(xe), v(k), f(!1), N(!1), X(null), $(null), S(0), E(1), p("none"), R("next");
38743
+ g(xe), v(k), f(!1), N(!1), q(null), $(null), S(0), E(1), p("none"), R("next");
38729
38744
  }, [b.length, t]), Ae(() => () => {
38730
38745
  Y.current && clearTimeout(Y.current);
38731
38746
  }, []);
@@ -38733,12 +38748,12 @@ function hb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38733
38748
  var fe, V, Fe, De;
38734
38749
  if (!pe || w || b.length <= 1) return;
38735
38750
  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((De = (Fe = b[xe]) == null ? void 0 : Fe.image) == null ? void 0 : De.url), he = Lc(I.width, I.height, ge), Ge = Lc(I.width, I.height, K);
38736
- Y.current && clearTimeout(Y.current), R(k), N(!0), f(!0), k === "next" ? (X(m), $(xe), S(0), E(1), p(Mo(u, 0, 1))) : (v(ub(xe, b.length)), X(xe), $(m), S(1), E(Ge), p(Mo(u, 1, Ge))), requestAnimationFrame(() => {
38751
+ Y.current && clearTimeout(Y.current), R(k), N(!0), f(!0), k === "next" ? (q(m), $(xe), S(0), E(1), p(Mo(u, 0, 1))) : (v(ub(xe, b.length)), q(xe), $(m), S(1), E(Ge), p(Mo(u, 1, Ge))), requestAnimationFrame(() => {
38737
38752
  N(!1), requestAnimationFrame(() => {
38738
38753
  k === "next" ? (S(1), E(he), p(Mo(u, 1, he))) : (S(0), E(1), p(Mo(u, 0, 1)));
38739
38754
  });
38740
38755
  }), Y.current = setTimeout(() => {
38741
- k === "next" && v(m), g(xe), X(null), $(null), f(!1);
38756
+ k === "next" && v(m), g(xe), q(null), $(null), f(!1);
38742
38757
  }, ue);
38743
38758
  }, [
38744
38759
  m,
@@ -38750,7 +38765,7 @@ function hb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38750
38765
  pe,
38751
38766
  b,
38752
38767
  ue
38753
- ]), 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, Oe = b.length <= 1 ? 0 : (m + 1) % b.length, Ie = $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 = {
38768
+ ]), 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, Oe = b.length <= 1 ? 0 : (m + 1) % b.length, Ie = $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), X = $e((z = me == null ? void 0 : me.image) == null ? void 0 : z.url), G = {
38754
38769
  [`--${o}-transition-ms`]: `${ue}ms`
38755
38770
  };
38756
38771
  return /* @__PURE__ */ te(pt, { children: [
@@ -38801,7 +38816,7 @@ function hb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
38801
38816
  `${o}-incoming`,
38802
38817
  `${o}-incoming-${M}`
38803
38818
  ),
38804
- style: Ic(q, B, o),
38819
+ style: Ic(X, B, o),
38805
38820
  "aria-hidden": "true",
38806
38821
  children: /* @__PURE__ */ c(
38807
38822
  "img",
@@ -39850,7 +39865,7 @@ function Cb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
39850
39865
  boxShadow: x = { top: 0, left: 0, right: 0, bottom: 0 },
39851
39866
  boxShadowColor: N = "rgba(0, 0, 0, 0)",
39852
39867
  innerBoxShadow: W = { top: 0, left: 0, right: 0, bottom: 0 },
39853
- innerBoxShadowColor: X = "rgba(0, 0, 0, 0)",
39868
+ innerBoxShadowColor: q = "rgba(0, 0, 0, 0)",
39854
39869
  stroke: H = 0,
39855
39870
  blur: $ = 0,
39856
39871
  backgroundColor: B = "#000000",
@@ -39876,7 +39891,7 @@ function Cb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
39876
39891
  borderColor: L,
39877
39892
  iconColor: E,
39878
39893
  boxShadowColor: N,
39879
- innerBoxShadowColor: X
39894
+ innerBoxShadowColor: q
39880
39895
  }, bb, xb, Y), ue = i && i !== "default" ? `${r}-state-${i}` : "", Q = t && !n ? `${r}-editing` : "", $e = C !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${C}` : "", Ve = C === "reveal" || C === "swipe", we = C === "content-roll", de = C === "reveal" && (!t || n), ee = v === !0, ae = l === "a" ? b ?? u : u, Oe = l === "c", Ie = l !== "b", P = {
39881
39896
  fontSettings: {
39882
39897
  fontFamily: p,
@@ -41742,8 +41757,8 @@ function Yb({
41742
41757
  onPrev: h,
41743
41758
  onNext: v
41744
41759
  }) {
41745
- const w = U(null), f = U(null), x = U(null), N = U(/* @__PURE__ */ new Map()), [W, X] = ie(0), H = U(null), $ = U(0), B = U(0), S = U("none"), L = U(!1), E = U(!1), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(() => {
41746
- }), oe = U(null), I = U(null), _ = U(null), Y = U(!1), [le, pe] = ie(null), [A, ye] = ie(Za), [j, ue] = ie(0), [Q, $e] = ie("opening"), [Ve, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Oe, Ie] = ie(null), [P, q] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Le, be] = ie(!1), k = U(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = U(n), fe = U(void 0), V = t[n], Fe = V ? wa(V) : !1, De = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, lt = Se((F, Ee) => t.length <= 1 ? null : t[(F + Ee + t.length) % t.length] ?? null, [t]), qe = ut ? Wo(d, u, -1) : lt(n, -1), Te = ut ? Wo(d, u, 1) : lt(n, 1), ze = Oe === -1 && De ? ut && P !== null ? Wo(d, P, -1) : G !== null ? lt(G, -1) : null : null, Ue = Oe === 1 && De ? ut && P !== null ? Wo(d, P, 1) : G !== null ? lt(G, 1) : null : null, nt = ze && ze.url !== (qe == null ? void 0 : qe.url) ? ze : null, Pe = Ue && Ue.url !== (Te == null ? void 0 : Te.url) ? Ue : null, Ye = qe && it ? (() => {
41760
+ const w = U(null), f = U(null), x = U(null), N = U(/* @__PURE__ */ new Map()), [W, q] = ie(0), H = U(null), $ = U(0), B = U(0), S = U("none"), L = U(!1), E = U(!1), C = U(!1), p = U(null), M = U(null), R = U(null), D = U(() => {
41761
+ }), oe = U(null), I = U(null), _ = U(null), Y = U(!1), [le, pe] = ie(null), [A, ye] = ie(Za), [j, ue] = ie(0), [Q, $e] = ie("opening"), [Ve, we] = ie(0), [de, ee] = ie(0), [me, ae] = ie(!1), [Oe, Ie] = ie(null), [P, X] = ie(null), [G, re] = ie(null), [O, z] = ie(!1), [J, ne] = ie(null), [Le, be] = ie(!1), k = U(!1), [xe, ge] = ie(!1), [K, he] = ie(!1), Ge = U(n), fe = U(void 0), V = t[n], Fe = V ? wa(V) : !1, De = de !== 0 || me, dt = !a && (!r || !!l), it = s && !a, ut = d.length > 1, lt = Se((F, Ee) => t.length <= 1 ? null : t[(F + Ee + t.length) % t.length] ?? null, [t]), qe = ut ? Wo(d, u, -1) : lt(n, -1), Te = ut ? Wo(d, u, 1) : lt(n, 1), ze = Oe === -1 && De ? ut && P !== null ? Wo(d, P, -1) : G !== null ? lt(G, -1) : null : null, Ue = Oe === 1 && De ? ut && P !== null ? Wo(d, P, 1) : G !== null ? lt(G, 1) : null : null, nt = ze && ze.url !== (qe == null ? void 0 : qe.url) ? ze : null, Pe = Ue && Ue.url !== (Te == null ? void 0 : Te.url) ? Ue : null, Ye = qe && it ? (() => {
41747
41762
  const F = ut ? Pc(d, u, -1) : t.length > 2 ? lt((n - 1 + t.length) % t.length, -1) : null;
41748
41763
  return F && F.url !== qe.url ? F : null;
41749
41764
  })() : null, ce = Te && it ? (() => {
@@ -41752,7 +41767,7 @@ function Yb({
41752
41767
  })() : null, Re = nt ?? Ye, Je = Pe ?? ce, Xe = Se((F, Ee, Be) => {
41753
41768
  if (!F || !Ee || !Be) return;
41754
41769
  const Ke = N.current, ft = Ke.get(F);
41755
- (ft == null ? void 0 : ft.width) === Ee && (ft == null ? void 0 : ft.height) === Be || (Ke.set(F, { width: Ee, height: Be }), X((zt) => zt + 1));
41770
+ (ft == null ? void 0 : ft.width) === Ee && (ft == null ? void 0 : ft.height) === Be || (Ke.set(F, { width: Ee, height: Be }), q((zt) => zt + 1));
41756
41771
  }, []), Me = Se((F) => {
41757
41772
  if (!(F != null && F.url)) return null;
41758
41773
  const Ee = N.current.get(F.url);
@@ -41769,10 +41784,10 @@ function Yb({
41769
41784
  }, [V, Me]), Ne = Se((F) => {
41770
41785
  if (ut) {
41771
41786
  const Ee = d.length;
41772
- q((u + F + Ee) % Ee), re(null);
41787
+ X((u + F + Ee) % Ee), re(null);
41773
41788
  return;
41774
41789
  }
41775
- t.length > 1 && (re((n + F + t.length) % t.length), q(null));
41790
+ t.length > 1 && (re((n + F + t.length) % t.length), X(null));
41776
41791
  }, [ut, d.length, u, t.length, n]), tt = Se((F) => {
41777
41792
  C.current = F, ae(F);
41778
41793
  }, []), je = Se(() => {
@@ -41822,13 +41837,13 @@ function Yb({
41822
41837
  Me
41823
41838
  ]), Tt = Se(() => {
41824
41839
  const F = M.current;
41825
- M.current = null, je(), tt(!1), Ie(null), q(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none", F === -1 ? h() : F === 1 && v();
41840
+ M.current = null, je(), tt(!1), Ie(null), X(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none", F === -1 ? h() : F === 1 && v();
41826
41841
  }, [je, tt, h, v]), _t = Se(() => {
41827
41842
  je(), p.current = window.setTimeout(() => {
41828
41843
  M.current !== null && Tt();
41829
41844
  }, Eo + 32);
41830
41845
  }, [je, Tt]), At = Se(() => {
41831
- je(), M.current = null, tt(!1), Ie(null), q(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none";
41846
+ je(), M.current = null, tt(!1), Ie(null), X(null), re(null), ee(0), ge(!1), L.current = !1, B.current = 0, S.current = "none";
41832
41847
  }, [je, tt]), yt = Se((F) => {
41833
41848
  if (!(!it || !le)) {
41834
41849
  if (C.current) {
@@ -41937,7 +41952,7 @@ function Yb({
41937
41952
  }, [Q, g]), Ae(() => () => {
41938
41953
  je();
41939
41954
  }, [je]), Pt(() => {
41940
- Ge.current === n && fe.current === (V == null ? void 0 : V.url) || (je(), M.current = null, Ie(null), q(null), re(null), we(0), ee(0), tt(!1), he(!1), ge(!1), $.current = 0, B.current = 0, S.current = "none", L.current = !1, H.current = null, E.current = !1, x.current = null, _e(), Ge.current = n, fe.current = V == null ? void 0 : V.url);
41955
+ Ge.current === n && fe.current === (V == null ? void 0 : V.url) || (je(), M.current = null, Ie(null), X(null), re(null), we(0), ee(0), tt(!1), he(!1), ge(!1), $.current = 0, B.current = 0, S.current = "none", L.current = !1, H.current = null, E.current = !1, x.current = null, _e(), Ge.current = n, fe.current = V == null ? void 0 : V.url);
41941
41956
  }, [n, V == null ? void 0 : V.url, tt, je, _e]), Pt(() => {
41942
41957
  const F = R.current;
41943
41958
  F !== null && (R.current = null, requestAnimationFrame(() => {
@@ -41975,7 +41990,7 @@ function Yb({
41975
41990
  Ee(gt);
41976
41991
  return;
41977
41992
  }
41978
- M.current = null, Ie(null), q(null), re(null), tt(!0), ee(0), ot();
41993
+ M.current = null, Ie(null), X(null), re(null), tt(!0), ee(0), ot();
41979
41994
  }, Ke = (gt) => {
41980
41995
  if (gt.touches.length !== 1 || C.current) return;
41981
41996
  const It = gt.touches[0];
@@ -42464,7 +42479,7 @@ function rx({
42464
42479
  layoutId: r,
42465
42480
  portalId: a
42466
42481
  }) {
42467
- const { prefix: l } = ln(), s = He(() => Jb(l), [l]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = Z(y, n ?? !1), g = `max(${m}, ${Kb}px)`, { objectFitMode: h, imageStyle: v } = ix(e), w = nx(e, n), f = U(null), [x, N] = ie(!1), [W, X] = ie([]), [H, $] = ie(0), [B, S] = ie(0), [L, 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, I = (R.value ?? 120) / 100, _ = Se((de) => {
42482
+ const { prefix: l } = ln(), s = He(() => Jb(l), [l]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = Z(y, n ?? !1), g = `max(${m}, ${Kb}px)`, { objectFitMode: h, imageStyle: v } = ix(e), w = nx(e, n), f = U(null), [x, N] = ie(!1), [W, q] = ie([]), [H, $] = ie(0), [B, S] = ie(0), [L, 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, I = (R.value ?? 120) / 100, _ = Se((de) => {
42468
42483
  !de || D !== "scale" || (de.style.transformOrigin = th(de));
42469
42484
  }, [D]), Y = Se((de) => {
42470
42485
  if (de) {
@@ -42490,7 +42505,7 @@ function rx({
42490
42505
  const me = ye.findIndex((Oe) => Oe.gridIndex === de);
42491
42506
  if (me < 0) return;
42492
42507
  const ae = ye[me];
42493
- S(me), X(ae.items), $(0), p(ae.entry), E(ee ?? null), N(!0);
42508
+ S(me), q(ae.items), $(0), p(ae.entry), E(ee ?? null), N(!0);
42494
42509
  }, Q = Se(() => {
42495
42510
  N(!1), E(null);
42496
42511
  }, []), $e = Se(() => {
@@ -42499,7 +42514,7 @@ function rx({
42499
42514
  }, [ye, B, L, h]), Ve = Se((de) => {
42500
42515
  if (ye.length > 1) {
42501
42516
  const ee = ye.length, me = (B + de + ee) % ee, ae = ye[me];
42502
- S(me), X(ae.items), $(0), p(ae.entry);
42517
+ S(me), q(ae.items), $(0), p(ae.entry);
42503
42518
  return;
42504
42519
  }
42505
42520
  $((ee) => (ee + de + W.length) % W.length);
@@ -44218,11 +44233,11 @@ function Ix(e, t) {
44218
44233
  `;
44219
44234
  }
44220
44235
  function Rx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
44221
- const { prefix: r } = ln(), a = Sx(e, n), l = t ?? [], s = l.length, d = (e == null ? void 0 : e.trigger) ?? Ac, u = d.sizeType ?? "drag", b = d.value ?? Ac.value, y = (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 = xx[h], w = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, f = (Te) => Z(Te * 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, X = 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) ?? Ec.color, B = (e == null ? void 0 : e.controlsHoverColor) ?? Ec.hover, S = (e == null ? void 0 : e.navColor) ?? Ao.colors.inactive, L = (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 = y === "horizontal", R = u === "click", D = u === "drag", oe = u === "auto" && (!n || !!i), I = !n, _ = m === "slide", Y = g === "classic", le = x !== "never" && W > 0, pe = x === "on hover", A = Z(W, n), ye = {
44236
+ const { prefix: r } = ln(), a = Sx(e, n), l = t ?? [], s = l.length, d = (e == null ? void 0 : e.trigger) ?? Ac, u = d.sizeType ?? "drag", b = d.value ?? Ac.value, y = (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 = xx[h], w = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, f = (Te) => Z(Te * 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, q = 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) ?? Ec.color, B = (e == null ? void 0 : e.controlsHoverColor) ?? Ec.hover, S = (e == null ? void 0 : e.navColor) ?? Ao.colors.inactive, L = (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 = y === "horizontal", R = u === "click", D = u === "drag", oe = u === "auto" && (!n || !!i), I = !n, _ = m === "slide", Y = g === "classic", le = x !== "never" && W > 0, pe = x === "on hover", A = Z(W, n), ye = {
44222
44237
  width: A,
44223
44238
  height: A,
44224
44239
  maxWidth: A
44225
- }, j = _ && s > 1, [ue, Q] = ie(0), [$e, Ve] = ie(j ? 1 : 0), [we, de] = ie(!1), [ee, me] = ie(!1), [ae, Oe] = ie(!1), [Ie, P] = ie(0), [q, G] = ie(!1), [re, O] = ie(!1), z = U(!1), J = U($e);
44240
+ }, j = _ && s > 1, [ue, Q] = ie(0), [$e, Ve] = ie(j ? 1 : 0), [we, de] = ie(!1), [ee, me] = ie(!1), [ae, Oe] = ie(!1), [Ie, P] = ie(0), [X, G] = ie(!1), [re, O] = ie(!1), z = U(!1), J = U($e);
44226
44241
  J.current = $e;
44227
44242
  const ne = U(null), Le = U(0), be = U(null), k = U(null), xe = U(null), ge = U(null), K = Se((Te) => {
44228
44243
  z.current = Te, de(Te);
@@ -44304,10 +44319,10 @@ function Rx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44304
44319
  const Te = s > 0 ? Math.min(ue, s - 1) : 0;
44305
44320
  xe.current = null, ge.current = null, Oe(!1), P(0), Q(Te), me(!0), Ve(Te + (j ? 1 : 0));
44306
44321
  }, [ue, s, j, V]), Ae(() => {
44307
- if (!q) return;
44322
+ if (!X) return;
44308
44323
  const Te = window.setTimeout(() => G(!1), hx);
44309
44324
  return () => window.clearTimeout(Te);
44310
- }, [q, ue]), Ae(() => {
44325
+ }, [X, ue]), Ae(() => {
44311
44326
  if (!oe || s < 2) return;
44312
44327
  const Te = Math.max(b, 0.1) * 1e3, ze = window.setInterval(() => {
44313
44328
  I && re || Ge(1);
@@ -44486,7 +44501,7 @@ function Rx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44486
44501
  },
44487
44502
  className: `${r}-arrow-inner`,
44488
44503
  style: {
44489
- transform: `translate(${Z(X, n)}, ${Z(H * (M ? 1 : -1), n)}) rotate(${M ? "0deg" : "90deg"})`
44504
+ transform: `translate(${Z(q, n)}, ${Z(H * (M ? 1 : -1), n)}) rotate(${M ? "0deg" : "90deg"})`
44490
44505
  },
44491
44506
  children: [
44492
44507
  N && /* @__PURE__ */ c(
@@ -44532,7 +44547,7 @@ function Rx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44532
44547
  Te.stopPropagation(), Ge(1);
44533
44548
  },
44534
44549
  style: {
44535
- transform: `translate(${Z(X * (M ? -1 : 1), n)}, ${Z(H, n)}) rotate(${M ? "0deg" : "90deg"})`
44550
+ transform: `translate(${Z(q * (M ? -1 : 1), n)}, ${Z(H, n)}) rotate(${M ? "0deg" : "90deg"})`
44536
44551
  },
44537
44552
  children: [
44538
44553
  N && /* @__PURE__ */ c(
@@ -44572,7 +44587,7 @@ function Rx({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
44572
44587
  {
44573
44588
  className: $t(`${r}-pagination-inner`, {
44574
44589
  [`${r}-pagination-vertical`]: !M,
44575
- [`${r}-animate-dots`]: q
44590
+ [`${r}-animate-dots`]: X
44576
44591
  }),
44577
44592
  style: {
44578
44593
  backgroundColor: E,
@@ -46679,8 +46694,8 @@ function Zx({
46679
46694
  counterStyle: d,
46680
46695
  backgroundColor: u
46681
46696
  }) {
46682
- const b = i === "cover", y = U(null), m = U(null), g = U(null), h = U(0), v = U(0), w = U("none"), f = U(!1), x = U(!1), N = U(!1), W = U(null), [X, H] = ie(null), [$, B] = ie("opening"), [S, L] = ie(0), [E, C] = ie(0), [p, M] = ie(!1), [R, D] = ie(!1), [oe, I] = ie(!1), _ = U(n), Y = t[n], le = Y ? $s(Y) : !1, pe = E !== 0 || p, A = Se((q) => {
46683
- N.current = q, M(q);
46697
+ const b = i === "cover", y = U(null), m = U(null), g = U(null), h = U(0), v = U(0), w = U("none"), f = U(!1), x = U(!1), N = U(!1), W = U(null), [q, H] = ie(null), [$, B] = ie("opening"), [S, L] = ie(0), [E, C] = ie(0), [p, M] = ie(!1), [R, D] = ie(!1), [oe, I] = ie(!1), _ = U(n), Y = t[n], le = Y ? $s(Y) : !1, pe = E !== 0 || p, A = Se((X) => {
46698
+ N.current = X, M(X);
46684
46699
  }, []), ye = Se(() => {
46685
46700
  W.current !== null && (window.clearTimeout(W.current), W.current = null);
46686
46701
  }, []), j = Se(() => {
@@ -46688,21 +46703,21 @@ function Zx({
46688
46703
  ye(), A(!1);
46689
46704
  }, Vn + 32);
46690
46705
  }, [ye, A]), ue = Se(() => {
46691
- const q = y.current, G = m.current;
46692
- if (!q) return;
46693
- const re = q.getBoundingClientRect(), O = re.width, z = re.height;
46706
+ const X = y.current, G = m.current;
46707
+ if (!X) return;
46708
+ const re = X.getBoundingClientRect(), O = re.width, z = re.height;
46694
46709
  if (!O || !z) return;
46695
46710
  if (i === "cover") {
46696
46711
  H({ width: O, height: z, left: re.left, top: re.top });
46697
46712
  return;
46698
46713
  }
46699
46714
  if (!G) {
46700
- H(Er(q));
46715
+ H(Er(X));
46701
46716
  return;
46702
46717
  }
46703
46718
  const { width: J, height: ne } = Gx(G);
46704
46719
  if (!J || !ne) {
46705
- H(Er(q));
46720
+ H(Er(X));
46706
46721
  return;
46707
46722
  }
46708
46723
  const Le = J / ne, be = O / z;
@@ -46716,32 +46731,32 @@ function Zx({
46716
46731
  }, [i]);
46717
46732
  Ae(() => {
46718
46733
  ue();
46719
- const q = y.current;
46720
- if (!q) return;
46734
+ const X = y.current;
46735
+ if (!X) return;
46721
46736
  const G = new ResizeObserver(() => ue());
46722
- return G.observe(q), () => G.disconnect();
46737
+ return G.observe(X), () => G.disconnect();
46723
46738
  }, [ue, n]), Ae(() => {
46724
- $ === "opening" && X && B("open");
46725
- }, [$, X]), Ae(() => {
46739
+ $ === "opening" && q && B("open");
46740
+ }, [$, q]), Ae(() => {
46726
46741
  if ($ !== "closing") return;
46727
- const q = setTimeout(() => r(), Vn);
46728
- return () => clearTimeout(q);
46742
+ const X = setTimeout(() => r(), Vn);
46743
+ return () => clearTimeout(X);
46729
46744
  }, [$, r]), Ae(() => () => {
46730
46745
  ye();
46731
46746
  }, [ye]), Pt(() => {
46732
46747
  if (_.current === n) return;
46733
46748
  ye(), L(0), C(0), A(!1), I(!1), D(!1), h.current = 0, v.current = 0, w.current = "none", f.current = !1, g.current = null, x.current = !1;
46734
- const q = y.current;
46735
- q && H(Er(q)), _.current = n;
46749
+ const X = y.current;
46750
+ X && H(Er(X)), _.current = n;
46736
46751
  }, [n, A, ye]), Ae(() => {
46737
46752
  if ($ !== "open") return;
46738
- let q = null;
46753
+ let X = null;
46739
46754
  const G = () => {
46740
- q && (document.removeEventListener("click", q, !0), q = null);
46755
+ X && (document.removeEventListener("click", X, !0), X = null);
46741
46756
  }, re = () => {
46742
- G(), q = (be) => {
46757
+ G(), X = (be) => {
46743
46758
  be.stopPropagation(), be.preventDefault(), G();
46744
- }, document.addEventListener("click", q, !0);
46759
+ }, document.addEventListener("click", X, !0);
46745
46760
  }, O = (be) => {
46746
46761
  ye(), N.current = !1, M(!1), C(0), D(!1), f.current = !1, v.current = 0, w.current = "none";
46747
46762
  const k = y.current;
@@ -46792,43 +46807,43 @@ function Zx({
46792
46807
  document.removeEventListener("touchstart", J), document.removeEventListener("touchmove", ne), document.removeEventListener("touchend", Le), document.removeEventListener("touchcancel", Le), G();
46793
46808
  };
46794
46809
  }, [$, t.length, l, a, A, j, ye]), Ae(() => {
46795
- const q = (G) => {
46810
+ const X = (G) => {
46796
46811
  G.key === "Escape" && (G.preventDefault(), G.stopPropagation(), $ !== "closing" && B("closing"));
46797
46812
  };
46798
- return window.addEventListener("keydown", q, !0), () => window.removeEventListener("keydown", q, !0);
46813
+ return window.addEventListener("keydown", X, !0), () => window.removeEventListener("keydown", X, !0);
46799
46814
  }, [$]);
46800
46815
  const Q = () => {
46801
46816
  $ !== "closing" && B("closing");
46802
- }, $e = $ === "open", Ve = $ === "closing", we = S > 0 ? Math.max(0, 1 - S / 500) : 1, de = S > 0 ? Math.max(0.35, 1 - S / 500) : 1, ee = (q) => {
46803
- if (q.stopPropagation(), x.current) {
46817
+ }, $e = $ === "open", Ve = $ === "closing", we = S > 0 ? Math.max(0, 1 - S / 500) : 1, de = S > 0 ? Math.max(0.35, 1 - S / 500) : 1, ee = (X) => {
46818
+ if (X.stopPropagation(), x.current) {
46804
46819
  x.current = !1;
46805
46820
  return;
46806
46821
  }
46807
46822
  if (t.length <= 1) return;
46808
- const G = q.currentTarget.getBoundingClientRect(), re = q.clientY - G.top, O = Math.min(52, G.height * 0.2);
46823
+ const G = X.currentTarget.getBoundingClientRect(), re = X.clientY - G.top, O = Math.min(52, G.height * 0.2);
46809
46824
  if (!(re > G.height - O)) {
46810
- if (q.clientX - G.left < G.width / 2) {
46825
+ if (X.clientX - G.left < G.width / 2) {
46811
46826
  a();
46812
46827
  return;
46813
46828
  }
46814
46829
  l();
46815
46830
  }
46816
- }, me = (q) => {
46831
+ }, me = (X) => {
46817
46832
  if (t.length <= 1) return;
46818
- const G = q.currentTarget.getBoundingClientRect(), re = q.clientX - G.left, O = q.clientY - G.top, z = Math.min(52, G.height * 0.2);
46833
+ const G = X.currentTarget.getBoundingClientRect(), re = X.clientX - G.left, O = X.clientY - G.top, z = Math.min(52, G.height * 0.2);
46819
46834
  if (O > G.height - z) {
46820
- q.currentTarget.style.cursor = "default";
46835
+ X.currentTarget.style.cursor = "default";
46821
46836
  return;
46822
46837
  }
46823
- q.currentTarget.style.cursor = re < G.width / 2 ? "w-resize" : "e-resize";
46824
- }, ae = Se((q) => {
46825
- q.propertyName !== "transform" || !N.current || (ye(), A(!1));
46838
+ X.currentTarget.style.cursor = re < G.width / 2 ? "w-resize" : "e-resize";
46839
+ }, ae = Se((X) => {
46840
+ X.propertyName !== "transform" || !N.current || (ye(), A(!1));
46826
46841
  }, [ye, A]), Oe = pe ? `translateX(${E}px)` : S > 0 ? `translateY(${S}px)` : void 0, Ie = {
46827
46842
  position: "fixed",
46828
- top: X == null ? void 0 : X.top,
46829
- left: X == null ? void 0 : X.left,
46830
- width: X == null ? void 0 : X.width,
46831
- height: X == null ? void 0 : X.height,
46843
+ top: q == null ? void 0 : q.top,
46844
+ left: q == null ? void 0 : q.left,
46845
+ width: q == null ? void 0 : q.width,
46846
+ height: q == null ? void 0 : q.height,
46832
46847
  objectFit: i === "cover" ? "cover" : "contain",
46833
46848
  transform: Oe,
46834
46849
  opacity: S > 0 ? de : $ === "opening" || Ve ? 0 : 1,
@@ -46836,11 +46851,11 @@ function Zx({
46836
46851
  pointerEvents: le && $e && !pe ? "auto" : "none",
46837
46852
  touchAction: le && $e ? "none" : void 0,
46838
46853
  zIndex: 9998
46839
- }, P = X ? {
46854
+ }, P = q ? {
46840
46855
  position: "fixed",
46841
- top: X.top,
46842
- height: X.height,
46843
- width: X.width / 2,
46856
+ top: q.top,
46857
+ height: q.height,
46858
+ width: q.width / 2,
46844
46859
  zIndex: 9999
46845
46860
  } : null;
46846
46861
  return /* @__PURE__ */ te(
@@ -46944,7 +46959,7 @@ function Zx({
46944
46959
  ] })
46945
46960
  }
46946
46961
  ),
46947
- X && Y && (le ? /* @__PURE__ */ c(
46962
+ q && Y && (le ? /* @__PURE__ */ c(
46948
46963
  Kx,
46949
46964
  {
46950
46965
  src: Y.url,
@@ -46975,16 +46990,16 @@ function Zx({
46975
46990
  {
46976
46991
  style: {
46977
46992
  ...P,
46978
- left: X.left,
46993
+ left: q.left,
46979
46994
  cursor: "w-resize",
46980
46995
  pointerEvents: pe ? "none" : "auto"
46981
46996
  },
46982
- onClick: (q) => {
46997
+ onClick: (X) => {
46983
46998
  if (x.current) {
46984
46999
  x.current = !1;
46985
47000
  return;
46986
47001
  }
46987
- q.stopPropagation(), a();
47002
+ X.stopPropagation(), a();
46988
47003
  }
46989
47004
  }
46990
47005
  ),
@@ -46993,16 +47008,16 @@ function Zx({
46993
47008
  {
46994
47009
  style: {
46995
47010
  ...P,
46996
- left: X.left + X.width / 2,
47011
+ left: q.left + q.width / 2,
46997
47012
  cursor: "e-resize",
46998
47013
  pointerEvents: pe ? "none" : "auto"
46999
47014
  },
47000
- onClick: (q) => {
47015
+ onClick: (X) => {
47001
47016
  if (x.current) {
47002
47017
  x.current = !1;
47003
47018
  return;
47004
47019
  }
47005
- q.stopPropagation(), l();
47020
+ X.stopPropagation(), l();
47006
47021
  }
47007
47022
  }
47008
47023
  )
@@ -47049,7 +47064,7 @@ function Wc({
47049
47064
  onClick: u ? ($) => {
47050
47065
  $.stopPropagation(), u();
47051
47066
  } : void 0
47052
- }, X = Math.max(l, Ri), H = $s(t) ? /* @__PURE__ */ c(
47067
+ }, q = Math.max(l, Ri), H = $s(t) ? /* @__PURE__ */ c(
47053
47068
  "video",
47054
47069
  {
47055
47070
  ...W,
@@ -47089,7 +47104,7 @@ function Wc({
47089
47104
  bottom: 0,
47090
47105
  left: 0,
47091
47106
  width: "100%",
47092
- height: g(X)
47107
+ height: g(q)
47093
47108
  }
47094
47109
  }
47095
47110
  )
@@ -47383,12 +47398,12 @@ function rw({
47383
47398
  portalId: r
47384
47399
  }) {
47385
47400
  var ot;
47386
- const { prefix: a } = ln(), l = He(() => Fx(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, y = (e == null ? void 0 : e.titleWidth) ?? qx, m = Xx(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? Ax, h = (e == null ? void 0 : e.position) ?? "center", v = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleLeftPadding) ?? 0, f = (e == null ? void 0 : e.titleRightPadding) ?? 0, x = Qx(e == null ? void 0 : e.transition), N = (e == null ? void 0 : e.lightbox) ?? "on", W = u === "b", X = x === "fade" || x === "retype", { setTitleRef: H, dominantIndex: $ } = iw(s.length, X, h), B = ((ot = s[$]) == null ? void 0 : ot.title) ?? "", S = ow(B, x === "retype"), L = 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, I = (at) => Z(at, n ?? !1), Y = {
47401
+ const { prefix: a } = ln(), l = He(() => Fx(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, y = (e == null ? void 0 : e.titleWidth) ?? qx, m = Xx(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? Ax, h = (e == null ? void 0 : e.position) ?? "center", v = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleLeftPadding) ?? 0, f = (e == null ? void 0 : e.titleRightPadding) ?? 0, x = Qx(e == null ? void 0 : e.transition), N = (e == null ? void 0 : e.lightbox) ?? "on", W = u === "b", q = x === "fade" || x === "retype", { setTitleRef: H, dominantIndex: $ } = iw(s.length, q, h), B = ((ot = s[$]) == null ? void 0 : ot.title) ?? "", S = ow(B, x === "retype"), L = 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, I = (at) => Z(at, n ?? !1), Y = {
47387
47402
  width: I(y)
47388
47403
  }, le = u === "a" ? R : D, pe = W ? { width: "100%" } : {
47389
47404
  width: `calc(100% - ${I(b)} - ${I(le)})`,
47390
47405
  ...u === "c" ? { marginLeft: "auto" } : {}
47391
- }, 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(f, Ri), Ve = 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, Oe = W ? void 0 : I((u === "c" ? D : R) + (b ?? Ki)), Ie = u === "c" && Oe ? { left: Oe } : void 0, P = u === "a" && Oe ? { right: Oe } : void 0, q = W ? { left: 0, width: "100%" } : u === "a" ? { right: I(R), width: I(b) } : { left: I(D), width: I(b) }, {
47406
+ }, 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(f, Ri), Ve = 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, Oe = W ? void 0 : I((u === "c" ? D : R) + (b ?? Ki)), Ie = u === "c" && Oe ? { left: Oe } : void 0, P = u === "a" && Oe ? { right: Oe } : void 0, X = W ? { left: 0, width: "100%" } : u === "a" ? { right: I(R), width: I(b) } : { left: I(D), width: I(b) }, {
47392
47407
  titleColor: G,
47393
47408
  titleFontFamily: re,
47394
47409
  titleFontSettings: O,
@@ -47560,7 +47575,7 @@ function rw({
47560
47575
  style: {
47561
47576
  bottom: 0,
47562
47577
  height: I(j),
47563
- ...q
47578
+ ...X
47564
47579
  }
47565
47580
  }
47566
47581
  ),
@@ -50538,12 +50553,12 @@ function Bw({
50538
50553
  const { prefix: o } = ln(), r = U(null), a = ns(
50539
50554
  (e == null ? void 0 : e.width) ?? (e == null ? void 0 : e.spread) ?? (e == null ? void 0 : e.wrapperWidth),
50540
50555
  pw
50541
- ), l = ns(e == null ? void 0 : e.imageWidth, mw), s = ns(e == null ? void 0 : e.turnHeight, gw), d = Bc(e == null ? void 0 : e.itemsPerTurn, hw, 3, 40), u = Bc(e == null ? void 0 : e.turns, fw, 1, 30), b = Math.min(bw, Math.max(0, yw)), y = Math.min(1, Math.max(0, vw)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? Ru), 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", f = He(() => Lw(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), x = f.display === "cover", N = (pe) => Z(pe, n ?? !1), W = He(() => Pw(b), [b]), X = He(
50556
+ ), l = ns(e == null ? void 0 : e.imageWidth, mw), s = ns(e == null ? void 0 : e.turnHeight, gw), d = Bc(e == null ? void 0 : e.itemsPerTurn, hw, 3, 40), u = Bc(e == null ? void 0 : e.turns, fw, 1, 30), b = Math.min(bw, Math.max(0, yw)), y = Math.min(1, Math.max(0, vw)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? Ru), 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", f = He(() => Lw(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), x = f.display === "cover", N = (pe) => Z(pe, n ?? !1), W = He(() => Pw(b), [b]), q = He(
50542
50557
  () => Ew(a, l, x, y),
50543
50558
  [a, l, x, y]
50544
50559
  ), H = He(
50545
- () => Tw(o, Ww(o, N, a, X, b, W, x, w)),
50546
- [o, a, X, b, W, x, w, n]
50560
+ () => Tw(o, Ww(o, N, a, q, b, W, x, w)),
50561
+ [o, a, q, b, W, x, w, n]
50547
50562
  ), $ = He(
50548
50563
  () => (t ?? []).filter((pe) => {
50549
50564
  var A;
@@ -50582,7 +50597,7 @@ function Bw({
50582
50597
  marginInline: "auto"
50583
50598
  },
50584
50599
  children: Array.from({ length: C }, (pe, A) => {
50585
- const ye = A - E, ue = $[Nu(ye, $.length)].image, Q = gl(ye, d), $e = Nw(ye, d), Ve = D ? Hu($e + Y) : $e, we = Ow(ye, d, s, B), de = y === 0 ? 0 : (Vc(Q + 7.3) - 0.5) * y * B, ee = x ? 1 : 1 + (Vc(Q + 3.1) - 0.5) * 2 * Pu * (0.35 + y), me = Ve * Math.PI * 2, { offset: ae, scale: Oe } = Eu(b, W, me), Ie = l * ee, P = kw(Ie, Oe), q = Au(a, X, ae), G = {
50600
+ const ye = A - E, ue = $[Nu(ye, $.length)].image, Q = gl(ye, d), $e = Nw(ye, d), Ve = D ? Hu($e + Y) : $e, we = Ow(ye, d, s, B), de = y === 0 ? 0 : (Vc(Q + 7.3) - 0.5) * y * B, ee = x ? 1 : 1 + (Vc(Q + 3.1) - 0.5) * 2 * Pu * (0.35 + y), me = Ve * Math.PI * 2, { offset: ae, scale: Oe } = Eu(b, W, me), Ie = l * ee, P = kw(Ie, Oe), X = Au(a, q, ae), G = {
50586
50601
  "--helix-base-w": N(Ie),
50587
50602
  ...x ? { "--helix-base-h": N(S) } : {}
50588
50603
  }, re = {
@@ -50594,7 +50609,7 @@ function Bw({
50594
50609
  animationDelay: Dw($e, le, g),
50595
50610
  animationDirection: g === "left" ? "reverse" : "normal"
50596
50611
  } : {
50597
- left: Aw(N, q, P),
50612
+ left: Aw(N, X, P),
50598
50613
  width: N(P),
50599
50614
  ...x ? { height: N(S * Oe) } : {},
50600
50615
  zIndex: ku(Oe),
@@ -51665,8 +51680,8 @@ function mS(e, t, n, i, o, r, a) {
51665
51680
  const oe = Math.sqrt(v);
51666
51681
  l *= oe, s *= oe;
51667
51682
  }
51668
- const w = o === r ? -1 : 1, f = l * l * h * h + s * s * g * g, x = Math.max(0, l * l * s * s - f), N = f === 0 ? 0 : w * Math.sqrt(x / f), W = N * l * h / s, X = -N * s * g / l, H = u * W - b * X + (e.x + a.x) / 2, $ = b * W + u * X + (e.y + a.y) / 2, B = Math.atan2((h - X) / s, (g - W) / l);
51669
- let L = Math.atan2((-h - X) / s, (-g - W) / l) - B;
51683
+ const w = o === r ? -1 : 1, f = l * l * h * h + s * s * g * g, x = Math.max(0, l * l * s * s - f), N = f === 0 ? 0 : w * Math.sqrt(x / f), W = N * l * h / s, q = -N * s * g / l, H = u * W - b * q + (e.x + a.x) / 2, $ = b * W + u * q + (e.y + a.y) / 2, B = Math.atan2((h - q) / s, (g - W) / l);
51684
+ let L = Math.atan2((-h - q) / s, (-g - W) / l) - B;
51670
51685
  !r && L > 0 && (L -= Math.PI * 2), r && L < 0 && (L += Math.PI * 2);
51671
51686
  const E = Math.max(1, Math.ceil(Math.abs(L) / (Math.PI / 2))), C = L / E, p = 4 / 3 * Math.tan(C / 4), M = (oe, I) => ({
51672
51687
  x: H + u * l * oe - b * s * I,
@@ -52071,9 +52086,9 @@ function MS(e, t, n, i, o, r, a) {
52071
52086
  const y = Math.atan2(u, d), m = Math.round(y / Uc) * Uc;
52072
52087
  let g = o ? m : null, h = !1;
52073
52088
  if (!o) {
52074
- const X = [];
52075
- n && X.push({ angle: Math.atan2(n.y, n.x), smooth: !0 }), X.push({ angle: m, smooth: !1 });
52076
- for (const H of X) {
52089
+ const q = [];
52090
+ n && q.push({ angle: Math.atan2(n.y, n.x), smooth: !0 }), q.push({ angle: m, smooth: !1 });
52091
+ for (const H of q) {
52077
52092
  const $ = LS(H.angle - y);
52078
52093
  if (!(Math.abs($) > aS) && !(Math.abs(Math.sin($)) * b > rS)) {
52079
52094
  g = H.angle, h = H.smooth;
@@ -52183,7 +52198,7 @@ function kS({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52183
52198
  startY: D,
52184
52199
  moved: !1
52185
52200
  }, (pe = m.current) == null || pe.setPointerCapture(C.pointerId));
52186
- }, X = (C) => {
52201
+ }, q = (C) => {
52187
52202
  if (!i) return;
52188
52203
  const p = v.current;
52189
52204
  if (p && C.pointerId === p.pointerId) {
@@ -52256,7 +52271,7 @@ function kS({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
52256
52271
  viewBox: `0 0 ${t.width} ${t.height}`,
52257
52272
  tabIndex: 0,
52258
52273
  onKeyDown: $,
52259
- onPointerMove: X,
52274
+ onPointerMove: q,
52260
52275
  onPointerUp: H,
52261
52276
  onPointerCancel: H,
52262
52277
  onLostPointerCapture: H,
@@ -52357,8 +52372,8 @@ const FS = 36, ko = 7, _S = 4, Fo = 9, WS = 3.5, ad = 1.08, NS = 0.05, _r = 14,
52357
52372
  function OS({ 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 }) {
52358
52373
  const y = U(null), m = U(null), g = U(i);
52359
52374
  g.current = i;
52360
- const h = U(null), v = U(null), w = U(null), f = U(null), [x, N] = ie([]), [W, X] = ie(Qi), H = Se((P) => {
52361
- X((q) => TS(q, P) ? q : P);
52375
+ const h = U(null), v = U(null), w = U(null), f = U(null), [x, N] = ie([]), [W, q] = ie(Qi), H = Se((P) => {
52376
+ q((X) => TS(X, P) ? X : P);
52362
52377
  }, []), $ = l === "shape";
52363
52378
  Ae(() => {
52364
52379
  var P;
@@ -52382,12 +52397,12 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52382
52397
  } : {
52383
52398
  x: n.x + P.x,
52384
52399
  y: n.y + P.y
52385
- }, [r, n, C, p, M, R]), I = He(() => oe({ x: t.width / 2, y: t.height / 2 }), [oe, t.width, t.height]), _ = Se((P, q) => {
52400
+ }, [r, n, C, p, M, R]), I = He(() => oe({ x: t.width / 2, y: t.height / 2 }), [oe, t.width, t.height]), _ = Se((P, X) => {
52386
52401
  var re;
52387
52402
  const G = (re = y.current) == null ? void 0 : re.getBoundingClientRect();
52388
52403
  if (!G || G.width <= 0 || G.height <= 0) return { x: 0, y: 0 };
52389
52404
  if (r) {
52390
- const O = (P - G.left) / G.width * t.width, z = (q - G.top) / G.height * t.height;
52405
+ const O = (P - G.left) / G.width * t.width, z = (X - G.top) / G.height * t.height;
52391
52406
  return {
52392
52407
  x: n.x + (C > 0 ? (O - M) / C : 0),
52393
52408
  y: n.y + (p > 0 ? (z - R) / p : 0)
@@ -52395,17 +52410,17 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52395
52410
  }
52396
52411
  return {
52397
52412
  x: n.x + (P - G.left),
52398
- y: n.y + (q - G.top)
52413
+ y: n.y + (X - G.top)
52399
52414
  };
52400
- }, [r, n, t.width, t.height, C, p, M, R]), Y = Se((P, q) => {
52415
+ }, [r, n, t.width, t.height, C, p, M, R]), Y = Se((P, X) => {
52401
52416
  var re;
52402
52417
  const G = (re = y.current) == null ? void 0 : re.getBoundingClientRect();
52403
52418
  return !G || G.width <= 0 || G.height <= 0 ? { x: 0, y: 0 } : {
52404
52419
  x: (P - G.left) / G.width * t.width,
52405
- y: (q - G.top) / G.height * t.height
52420
+ y: (X - G.top) / G.height * t.height
52406
52421
  };
52407
- }, [t.width, t.height]), le = Se((P, q) => {
52408
- const G = a && !(q != null && q.preserveShape) ? hS(
52422
+ }, [t.width, t.height]), le = Se((P, X) => {
52423
+ const G = a && !(X != null && X.preserveShape) ? hS(
52409
52424
  P,
52410
52425
  n,
52411
52426
  t,
@@ -52414,10 +52429,10 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52414
52429
  C,
52415
52430
  p
52416
52431
  ) : P;
52417
- b(G, q);
52432
+ b(G, X);
52418
52433
  }, [b, a, n, t, M, R, C, p]), pe = (P) => {
52419
52434
  var Ge;
52420
- const q = P.metaKey || P.ctrlKey, G = w.current;
52435
+ const X = P.metaKey || P.ctrlKey, G = w.current;
52421
52436
  if (G && P.pointerId === G.pointerId) {
52422
52437
  if (P.stopPropagation(), P.preventDefault(), G.startDistance <= 0) return;
52423
52438
  const fe = _(P.clientX, P.clientY), V = Math.hypot(fe.x - G.origin.x, fe.y - G.origin.y), Fe = Math.max(NS, V / G.startDistance);
@@ -52441,7 +52456,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52441
52456
  ut = ce - Te, lt = Re - ze;
52442
52457
  }
52443
52458
  const qe = [];
52444
- if (!q && isFinite(Fe) && isFinite(De)) {
52459
+ if (!X && isFinite(Fe) && isFinite(De)) {
52445
52460
  const Te = D({ x: V.minX + Fe / 2 + ut, y: V.minY + De / 2 + lt }), ze = { x: t.width / 2, y: t.height / 2 };
52446
52461
  Math.abs(Te.x - ze.x) <= _r && (ut = I.x - V.minX - Fe / 2, qe.push(Ms(ze.x, "x", t))), Math.abs(Te.y - ze.y) <= _r && (lt = I.y - V.minY - De / 2, qe.push(Ms(ze.y, "y", t)));
52447
52462
  }
@@ -52469,7 +52484,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52469
52484
  const fe = {
52470
52485
  x: z.anchor.x + (J.x - z.origin.x),
52471
52486
  y: z.anchor.y + (J.y - z.origin.y)
52472
- }, V = q ? [] : CS(g.current, { contour: z.contour, node: z.node }), Fe = q || !z.center ? [] : [z.center], De = nd(td(V, Fe.map((ut) => ut.x), "x"), fe, "x", D, _r), dt = nd(td(V, Fe.map((ut) => ut.y), "y"), fe, "y", D, _r), it = q ? fe : {
52487
+ }, V = X ? [] : CS(g.current, { contour: z.contour, node: z.node }), Fe = X || !z.center ? [] : [z.center], De = nd(td(V, Fe.map((ut) => ut.x), "x"), fe, "x", D, _r), dt = nd(td(V, Fe.map((ut) => ut.y), "y"), fe, "y", D, _r), it = X ? fe : {
52473
52488
  x: (De == null ? void 0 : De.value) ?? Ar(fe.x, o),
52474
52489
  y: (dt == null ? void 0 : dt.value) ?? Ar(fe.y, o)
52475
52490
  };
@@ -52477,23 +52492,23 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52477
52492
  z.moved = !0, H(RS(it, De, dt, t, D)), u(yS(g.current, z.contour, z.node, it));
52478
52493
  return;
52479
52494
  }
52480
- const ne = (Ge = g.current[z.contour]) == null ? void 0 : Ge.nodes[z.node], Le = z.mirror && !P.altKey, be = Le || q ? null : z.kind === "in" ? ne == null ? void 0 : ne.out : ne == null ? void 0 : ne.in, k = ne ? D(ne.p) : null, xe = be ? D(be) : null, ge = ne && (!q || P.shiftKey) ? MS(
52495
+ const ne = (Ge = g.current[z.contour]) == null ? void 0 : Ge.nodes[z.node], Le = z.mirror && !P.altKey, be = Le || X ? null : z.kind === "in" ? ne == null ? void 0 : ne.out : ne == null ? void 0 : ne.in, k = ne ? D(ne.p) : null, xe = be ? D(be) : null, ge = ne && (!X || P.shiftKey) ? MS(
52481
52496
  J,
52482
52497
  ne.p,
52483
- Le || q ? null : PS(g.current[z.contour], z.node, z.kind, D),
52498
+ Le || X ? null : PS(g.current[z.contour], z.node, z.kind, D),
52484
52499
  k && xe ? Math.hypot(xe.x - k.x, xe.y - k.y) : null,
52485
52500
  P.shiftKey,
52486
52501
  D,
52487
52502
  oe
52488
- ) : { point: J, guides: Qi }, K = ge.guides.length ? ge.point : q ? J : { x: Ar(J.x, o), y: Ar(J.y, o) }, he = z.kind === "in" ? ne == null ? void 0 : ne.in : ne == null ? void 0 : ne.out;
52503
+ ) : { point: J, guides: Qi }, K = ge.guides.length ? ge.point : X ? J : { x: Ar(J.x, o), y: Ar(J.y, o) }, he = z.kind === "in" ? ne == null ? void 0 : ne.in : ne == null ? void 0 : ne.out;
52489
52504
  !z.moved && he && K.x === he.x && K.y === he.y || (z.moved = !0, H(ge.guides), u(bS(g.current, z.contour, z.node, z.kind, K, Le)));
52490
52505
  }, A = (P) => {
52491
52506
  H(Qi);
52492
- const q = w.current;
52493
- if (q && P.pointerId === q.pointerId) {
52507
+ const X = w.current;
52508
+ if (X && P.pointerId === X.pointerId) {
52494
52509
  w.current = null, P.stopPropagation();
52495
52510
  const be = y.current;
52496
- be != null && be.hasPointerCapture(q.pointerId) && be.releasePointerCapture(q.pointerId), q.moved && le(g.current, { preserveShape: !0 });
52511
+ be != null && be.hasPointerCapture(X.pointerId) && be.releasePointerCapture(X.pointerId), X.moved && le(g.current, { preserveShape: !0 });
52497
52512
  return;
52498
52513
  }
52499
52514
  const G = v.current;
@@ -52526,43 +52541,43 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52526
52541
  }, ye = (P) => {
52527
52542
  P.stopPropagation();
52528
52543
  }, j = (P) => {
52529
- var q, G;
52530
- P.stopPropagation(), P.preventDefault(), (q = y.current) == null || q.focus({ preventScroll: !0 }), v.current = {
52544
+ var X, G;
52545
+ P.stopPropagation(), P.preventDefault(), (X = y.current) == null || X.focus({ preventScroll: !0 }), v.current = {
52531
52546
  pointerId: P.pointerId,
52532
52547
  origin: _(P.clientX, P.clientY),
52533
52548
  startContours: Hn(i),
52534
52549
  bbox: li(i),
52535
52550
  moved: !1
52536
52551
  }, (G = y.current) == null || G.setPointerCapture(P.pointerId);
52537
- }, ue = (P, q) => {
52552
+ }, ue = (P, X) => {
52538
52553
  var J, ne;
52539
52554
  P.stopPropagation(), P.preventDefault(), (J = y.current) == null || J.focus({ preventScroll: !0 }), N([]), s("shape");
52540
- const G = li(i), re = ra(G, qu(q)), O = ks(G, q), z = Math.hypot(O.x - re.x, O.y - re.y);
52555
+ const G = li(i), re = ra(G, qu(X)), O = ks(G, X), z = Math.hypot(O.x - re.x, O.y - re.y);
52541
52556
  !isFinite(z) || z <= 0 || (w.current = {
52542
52557
  pointerId: P.pointerId,
52543
- corner: q,
52558
+ corner: X,
52544
52559
  origin: re,
52545
52560
  startDistance: z,
52546
52561
  startContours: Hn(i),
52547
52562
  moved: !1
52548
52563
  }, (ne = y.current) == null || ne.setPointerCapture(P.pointerId));
52549
- }, Q = (P, q, G, re) => {
52564
+ }, Q = (P, X, G, re) => {
52550
52565
  var J, ne, Le, be;
52551
52566
  P.stopPropagation(), P.preventDefault(), (J = y.current) == null || J.focus({ preventScroll: !0 });
52552
52567
  const O = (ne = i[G]) == null ? void 0 : ne.nodes[re];
52553
52568
  if (!O) return;
52554
52569
  if (P.altKey) {
52555
- const k = q === "anchor" ? Gu(i, G, re) : xS(i, G, re, q);
52570
+ const k = X === "anchor" ? Gu(i, G, re) : xS(i, G, re, X);
52556
52571
  if (k === i) return;
52557
- N(q === "anchor" ? [] : [{ contour: G, node: re }]), u(k), le(k);
52572
+ N(X === "anchor" ? [] : [{ contour: G, node: re }]), u(k), le(k);
52558
52573
  return;
52559
52574
  }
52560
52575
  const z = P.metaKey || P.ctrlKey;
52561
- if (q === "anchor" && P.shiftKey && !z) {
52576
+ if (X === "anchor" && P.shiftKey && !z) {
52562
52577
  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 }]);
52563
52578
  return;
52564
52579
  }
52565
- if (q === "anchor" && !z && x.length > 1 && x.some((k) => k.contour === G && k.node === re)) {
52580
+ if (X === "anchor" && !z && x.length > 1 && x.some((k) => k.contour === G && k.node === re)) {
52566
52581
  f.current = {
52567
52582
  pointerId: P.pointerId,
52568
52583
  origin: _(P.clientX, P.clientY),
@@ -52573,7 +52588,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52573
52588
  return;
52574
52589
  }
52575
52590
  N([{ contour: G, node: re }]), h.current = {
52576
- kind: q,
52591
+ kind: X,
52577
52592
  contour: G,
52578
52593
  node: re,
52579
52594
  pointerId: P.pointerId,
@@ -52581,13 +52596,13 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52581
52596
  clientOrigin: { x: P.clientX, y: P.clientY },
52582
52597
  anchor: O.p,
52583
52598
  center: gS(i),
52584
- mirror: q !== "anchor" && !!(O.in && O.out),
52599
+ mirror: X !== "anchor" && !!(O.in && O.out),
52585
52600
  toggleOnRelease: z,
52586
52601
  moved: !1
52587
52602
  }, (be = y.current) == null || be.setPointerCapture(P.pointerId);
52588
52603
  }, $e = (P) => {
52589
52604
  P.stopPropagation(), P.preventDefault();
52590
- const q = gn(i, D), G = $S(q, Y(P.clientX, P.clientY));
52605
+ const X = gn(i, D), G = $S(X, Y(P.clientX, P.clientY));
52591
52606
  if (!G || G.distance > FS) return;
52592
52607
  const { contours: re, nodeIndex: O } = wS(i, G.contour, G.segment, G.t);
52593
52608
  O < 0 || (N([{ contour: G.contour, node: O }]), u(re), le(re));
@@ -52612,7 +52627,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52612
52627
  N([]), u(z), le(z);
52613
52628
  return;
52614
52629
  }
52615
- const q = o > 0 ? o : HS, G = P.shiftKey ? q * 10 : q, re = { ArrowLeft: [-G, 0], ArrowRight: [G, 0], ArrowUp: [0, -G], ArrowDown: [0, G] }[P.key];
52630
+ const X = o > 0 ? o : HS, G = P.shiftKey ? X * 10 : X, re = { ArrowLeft: [-G, 0], ArrowRight: [G, 0], ArrowUp: [0, -G], ArrowDown: [0, G] }[P.key];
52616
52631
  if (!re) return;
52617
52632
  P.preventDefault(), P.stopPropagation();
52618
52633
  const O = Qc(i, x, re[0], re[1]);
@@ -52659,7 +52674,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52659
52674
  ),
52660
52675
  Ie && /* @__PURE__ */ c("path", { className: `${e}-editor-hit`, d: we, onClick: $e }),
52661
52676
  Ie && /* @__PURE__ */ c("path", { className: `${e}-editor-outline`, d: we }),
52662
- Ie && W.map((P, q) => /* @__PURE__ */ c(
52677
+ Ie && W.map((P, X) => /* @__PURE__ */ c(
52663
52678
  "line",
52664
52679
  {
52665
52680
  className: `${e}-editor-snap ${e}-editor-snap-${P.kind}`,
@@ -52668,7 +52683,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52668
52683
  x2: P.b.x,
52669
52684
  y2: P.b.y
52670
52685
  },
52671
- `${P.kind}-${q}`
52686
+ `${P.kind}-${X}`
52672
52687
  )),
52673
52688
  /* @__PURE__ */ c(
52674
52689
  "path",
@@ -52681,8 +52696,8 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52681
52696
  onClick: $e
52682
52697
  }
52683
52698
  ),
52684
- Ie && i.map((P, q) => P.nodes.map((G, re) => {
52685
- const O = x.some((J) => J.contour === q && J.node === re), z = D(G.p);
52699
+ Ie && i.map((P, X) => P.nodes.map((G, re) => {
52700
+ const O = x.some((J) => J.contour === X && J.node === re), z = D(G.p);
52686
52701
  return /* @__PURE__ */ te("g", { children: [
52687
52702
  O && x.length === 1 && ["in", "out"].map((J) => {
52688
52703
  const ne = G[J];
@@ -52698,7 +52713,7 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52698
52713
  cx: Le.x,
52699
52714
  cy: Le.y,
52700
52715
  r: Fo,
52701
- onPointerDown: (be) => Q(be, J, q, re),
52716
+ onPointerDown: (be) => Q(be, J, X, re),
52702
52717
  onClick: ye
52703
52718
  }
52704
52719
  )
@@ -52723,16 +52738,16 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52723
52738
  y: z.y - Fo,
52724
52739
  width: Fo * 2,
52725
52740
  height: Fo * 2,
52726
- onPointerDown: (J) => Q(J, "anchor", q, re),
52741
+ onPointerDown: (J) => Q(J, "anchor", X, re),
52727
52742
  onClick: ye,
52728
52743
  onDoubleClick: (J) => {
52729
52744
  J.stopPropagation(), J.preventDefault();
52730
- const ne = ed(i, q, re);
52745
+ const ne = ed(i, X, re);
52731
52746
  u(ne), le(ne);
52732
52747
  }
52733
52748
  }
52734
52749
  )
52735
- ] }, `${q}-${re}`);
52750
+ ] }, `${X}-${re}`);
52736
52751
  })),
52737
52752
  ae && /* @__PURE__ */ te("g", { children: [
52738
52753
  /* @__PURE__ */ c(
@@ -52746,14 +52761,14 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52746
52761
  }
52747
52762
  ),
52748
52763
  ["nw", "ne", "se", "sw"].map((P) => {
52749
- const q = D(ks(de, P)), G = P === "ne" || P === "sw";
52764
+ const X = D(ks(de, P)), G = P === "ne" || P === "sw";
52750
52765
  return /* @__PURE__ */ te("g", { children: [
52751
52766
  /* @__PURE__ */ c(
52752
52767
  "rect",
52753
52768
  {
52754
52769
  className: `${e}-editor-scale`,
52755
- x: q.x - Nr / 2,
52756
- y: q.y - Nr / 2,
52770
+ x: X.x - Nr / 2,
52771
+ y: X.y - Nr / 2,
52757
52772
  width: Nr,
52758
52773
  height: Nr
52759
52774
  }
@@ -52762,8 +52777,8 @@ function OS({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
52762
52777
  "rect",
52763
52778
  {
52764
52779
  className: `${e}-editor-scale-grab${G ? ` ${e}-editor-scale-grab-nesw` : ""}`,
52765
- x: q.x - Wr / 2,
52766
- y: q.y - Wr / 2,
52780
+ x: X.x - Wr / 2,
52781
+ y: X.y - Wr / 2,
52767
52782
  width: Wr,
52768
52783
  height: Wr,
52769
52784
  onPointerDown: (re) => ue(re, P),
@@ -52847,7 +52862,7 @@ function ld(e) {
52847
52862
  if (!t.length || l <= 0 || y <= 0)
52848
52863
  return { segments: g, placed: 0, height: 0, capLeft: 0, capTop: 0 };
52849
52864
  const h = Math.max(1, m * 0.5), v = y * Xw;
52850
- let w = 0, f = 0, x = 0, N = t[0].para, W = 0, X = 0, H = null;
52865
+ let w = 0, f = 0, x = 0, N = t[0].para, W = 0, q = 0, H = null;
52851
52866
  for (; w < t.length && x < DS; ) {
52852
52867
  const $ = f + y > s;
52853
52868
  if ($ && !d) break;
@@ -52857,7 +52872,7 @@ function ld(e) {
52857
52872
  continue;
52858
52873
  }
52859
52874
  let S = $ ? [{ x0: 0, x1: l }] : tS(i, (f + v) / s, (f + y - v) / s, o).map((E) => ({ x0: E.x0 * l, x1: E.x1 * l }));
52860
- u > 0 && b > 0 && !$ && S.length && (H === null && (H = x, W = S[0].x0, X = f), x - H < b && (S = eS(S, { x0: W, x1: W + u })));
52875
+ u > 0 && b > 0 && !$ && S.length && (H === null && (H = x, W = S[0].x0, q = f), x - H < b && (S = eS(S, { x0: W, x1: W + u })));
52861
52876
  const L = S.reduce((E, C) => Math.max(E, C.x1 - C.x0), 0);
52862
52877
  for (const E of S) {
52863
52878
  const C = E.x1 - E.x0;
@@ -52886,7 +52901,7 @@ function ld(e) {
52886
52901
  }
52887
52902
  N = B, f += y, x += 1;
52888
52903
  }
52889
- return { segments: g, placed: w, height: g.length ? f : 0, capLeft: W, capTop: X };
52904
+ return { segments: g, placed: w, height: g.length ? f : 0, capLeft: W, capTop: q };
52890
52905
  }
52891
52906
  const GS = 0.12, qS = 2, XS = 10, as = 0.25, US = (e) => {
52892
52907
  const t = e.getBoundingClientRect();
@@ -52939,7 +52954,7 @@ function JS({
52939
52954
  imageScale: x,
52940
52955
  imageCustomPath: N,
52941
52956
  pathDragActive: W,
52942
- pathCarryImage: X,
52957
+ pathCarryImage: q,
52943
52958
  onCarryImageConsumed: H,
52944
52959
  pathEditor: $,
52945
52960
  imageEditor: B
@@ -53004,7 +53019,7 @@ function JS({
53004
53019
  if (!de || p.width <= 0 || p.height <= 0) return Oe;
53005
53020
  const ce = ee ?? p, Re = r.width / ce.width, Je = r.height / ce.height;
53006
53021
  return Oe.map((Xe) => Xe.map((Me) => ({ x: Me.x * Re, y: Me.y * Je })));
53007
- }, [Oe, de, ee, r.width, r.height, p.width, p.height]), P = U(null), q = U(!1);
53022
+ }, [Oe, de, ee, r.width, r.height, p.width, p.height]), P = U(null), X = U(!1);
53008
53023
  Ae(() => {
53009
53024
  if (!(!Ve || p.width <= 0 || p.height <= 0)) {
53010
53025
  if (de) {
@@ -53018,7 +53033,7 @@ function JS({
53018
53033
  P.current = xo(Re), Ve(Re);
53019
53034
  return;
53020
53035
  }
53021
- !we || !$e.length || q.current || (q.current = !0, Ve(gn(Bu($e), (ce) => ({ x: ce.x * oa, y: ce.y * oa }))));
53036
+ !we || !$e.length || X.current || (X.current = !0, Ve(gn(Bu($e), (ce) => ({ x: ce.x * oa, y: ce.y * oa }))));
53022
53037
  }
53023
53038
  }, [
53024
53039
  we,
@@ -53127,7 +53142,7 @@ function JS({
53127
53142
  [v, Ie, p.width, p.height]
53128
53143
  ), V = U(null), Fe = (() => {
53129
53144
  const ce = V.current;
53130
- return X || !B || !le || !fe || !ce || N === ce.customPath || ce.shape !== n && n !== "custom" ? null : AS(
53145
+ return q || !B || !le || !fe || !ce || N === ce.customPath || ce.shape !== n && n !== "custom" ? null : AS(
53131
53146
  ce.bounds,
53132
53147
  fe,
53133
53148
  le,
@@ -53139,7 +53154,7 @@ function JS({
53139
53154
  Hr(() => {
53140
53155
  if (W || !B || !le || !fe) return;
53141
53156
  const ce = V.current, Re = !!(ce && N !== ce.customPath);
53142
- Re && Fe && B.onCommit(Fe), Re && X && (H == null || H()), V.current = {
53157
+ Re && Fe && B.onCommit(Fe), Re && q && (H == null || H()), V.current = {
53143
53158
  rings: Ie,
53144
53159
  bounds: fe,
53145
53160
  focalX: (Fe == null ? void 0 : Fe.focalX) ?? w,
@@ -53150,7 +53165,7 @@ function JS({
53150
53165
  };
53151
53166
  }, [
53152
53167
  W,
53153
- X,
53168
+ q,
53154
53169
  N,
53155
53170
  n,
53156
53171
  Ie,
@@ -53163,7 +53178,7 @@ function JS({
53163
53178
  Fe,
53164
53179
  H
53165
53180
  ]);
53166
- const De = V.current, dt = !!(W && !X && De && !Fe), it = dt && De ? De.focalX : (Fe == null ? void 0 : Fe.focalX) ?? w, ut = dt && De ? De.focalY : (Fe == null ? void 0 : Fe.focalY) ?? f, lt = dt && De ? De.scale : (Fe == null ? void 0 : Fe.scale) ?? x, qe = dt && De ? De.bounds : fe, Te = He(() => {
53181
+ const De = V.current, dt = !!(W && !q && De && !Fe), it = dt && De ? De.focalX : (Fe == null ? void 0 : Fe.focalX) ?? w, ut = dt && De ? De.focalY : (Fe == null ? void 0 : Fe.focalY) ?? f, lt = dt && De ? De.scale : (Fe == null ? void 0 : Fe.scale) ?? x, qe = dt && De ? De.bounds : fe, Te = He(() => {
53167
53182
  if (!(p.width > 0) || !(p.height > 0)) return "";
53168
53183
  let ce = Yc(i, Q, o, r, n, p);
53169
53184
  if (de) {
@@ -53585,7 +53600,7 @@ function i$({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
53585
53600
  const { prefix: l } = ln(), s = He(() => t$(l), [l]), d = n ?? !1, u = !!r || !!o, b = He(
53586
53601
  () => Array.isArray(t) ? t[0] ?? {} : {},
53587
53602
  [t]
53588
- ), y = (e == null ? void 0 : e.shape) ?? "custom", m = (e == null ? void 0 : e.customPath) ?? "", g = (e == null ? void 0 : e.pathFit) ?? "stretch", h = He(() => e$(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", f = ((e == null ? void 0 : e.overflowMode) ?? "clip") === "visible", x = ((e == null ? void 0 : e.fitText) ?? "off") === "on", N = (e == null ? void 0 : e.dropCapSize) ?? n$, W = Math.max(1, Math.round((e == null ? void 0 : e.dropCapLines) ?? N)), X = d && u && !i, [H, $] = ie(!1);
53603
+ ), y = (e == null ? void 0 : e.shape) ?? "custom", m = (e == null ? void 0 : e.customPath) ?? "", g = (e == null ? void 0 : e.pathFit) ?? "stretch", h = He(() => e$(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", f = ((e == null ? void 0 : e.overflowMode) ?? "clip") === "visible", x = ((e == null ? void 0 : e.fitText) ?? "off") === "on", N = (e == null ? void 0 : e.dropCapSize) ?? n$, W = Math.max(1, Math.round((e == null ? void 0 : e.dropCapLines) ?? N)), q = d && u && !i, [H, $] = ie(!1);
53589
53604
  Ae(() => {
53590
53605
  if (!d || !u) {
53591
53606
  $(!1);
@@ -53696,7 +53711,7 @@ function i$({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
53696
53711
  Ae(() => {
53697
53712
  Ve && Math.abs(Ve.focalX - $e.focalX) < 1e-9 && Math.abs(Ve.focalY - $e.focalY) < 1e-9 && Math.abs(Ve.scale - $e.scale) < 1e-9 && we(null);
53698
53713
  }, [Ve, $e]);
53699
- const ae = He(() => !B || !Q ? null : { onChange: ee, onCommit: me }, [B, Q, ee, me]), [Oe, Ie] = ie(void 0), P = U(void 0), q = Se((J) => {
53714
+ const ae = He(() => !B || !Q ? null : { onChange: ee, onCommit: me }, [B, Q, ee, me]), [Oe, Ie] = ie(void 0), P = U(void 0), X = Se((J) => {
53700
53715
  const ne = P.current;
53701
53716
  ne !== void 0 && Math.abs(ne - J) < 5e-3 || (P.current = J, Ie(J));
53702
53717
  }, []), G = He(() => x && typeof Oe == "number" ? Oe : 1, [Oe, x]), re = (J) => `calc(${J} * var(--${l}-fit, 1))`, O = He(() => {
@@ -53742,10 +53757,10 @@ function i$({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
53742
53757
  allowOverflow: f,
53743
53758
  fitEnabled: x,
53744
53759
  scale: G,
53745
- onFitScale: q,
53760
+ onFitScale: X,
53746
53761
  dropCapLines: W,
53747
53762
  dropCapSize: N,
53748
- showGuides: (X || B) && S,
53763
+ showGuides: (q || B) && S,
53749
53764
  typography: O,
53750
53765
  imageUrl: v === "avoid" ? e == null ? void 0 : e.image : null,
53751
53766
  imageFocalX: de.focalX,