@cntrl-site/components 1.0.60-alpha.3 → 1.0.60-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as l, Fragment as at, jsxs as U } from "react/jsx-runtime";
2
- import Yn, { useState as ee, useEffect as Me, useRef as q, useCallback as ve, useMemo as je, useLayoutEffect as Ot } from "react";
2
+ import Yn, { useState as ee, useEffect as Pe, useRef as q, useCallback as ve, useMemo as je, useLayoutEffect as Ot } from "react";
3
3
  import yt from "classnames";
4
4
  import { s as F, u as un, b as Li, g as yr, r as js } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
5
5
  import { createPortal as Ii, flushSync as vd } from "react-dom";
6
6
  function qb(e) {
7
7
  return e.type === "object" && e.version === 1;
8
8
  }
9
- const bd = "ControlSlider-module__wrapper___sHEkd", xd = "ControlSlider-module__hoverArrow___A-dOH", wd = "ControlSlider-module__sliderItem___QQSkR", Sd = "ControlSlider-module__sliderImage___9hRl-", $d = "ControlSlider-module__arrow___05ghY", Cd = "ControlSlider-module__arrowVertical___tBfVN", Td = "ControlSlider-module__nextArrow___-30Yc", Ld = "ControlSlider-module__arrowInner___aEra3", Id = "ControlSlider-module__arrowIcon___S4ztF", Rd = "ControlSlider-module__arrowImg___2dwJW", Md = "ControlSlider-module__mirror___brd6U", Pd = "ControlSlider-module__pagination___bicLF", Ed = "ControlSlider-module__paginationInner___bT-P-", Ad = "ControlSlider-module__paginationVertical___zYqKw", kd = "ControlSlider-module__paginationItem___nTRbk", Fd = "ControlSlider-module__dot___p1Qun", Wd = "ControlSlider-module__activeDot___LHFaj", _d = "ControlSlider-module__paginationInsideBottom___R3FWn", Nd = "ControlSlider-module__paginationInsideTop___V-qb-", Hd = "ControlSlider-module__paginationOutsideBottom___14w8D", Od = "ControlSlider-module__paginationOutsideTop___SCLqB", Dd = "ControlSlider-module__paginationInsideLeft___yOBRZ", zd = "ControlSlider-module__paginationInsideRight___Rtt3o", Bd = "ControlSlider-module__paginationOutsideLeft___lahaw", Vd = "ControlSlider-module__paginationOutsideRight___EtuQa", jd = "ControlSlider-module__imgWrapper___UjEgB", Gd = "ControlSlider-module__captionBlock___dJ6-j", Ud = "ControlSlider-module__captionTextWrapper___HFlpf", qd = "ControlSlider-module__captionText___uGBVc", Kd = "ControlSlider-module__active___WZK4G", Xd = "ControlSlider-module__withPointerEvents___t-18M", Yd = "ControlSlider-module__topLeftAlignment___zjnGM", Zd = "ControlSlider-module__topCenterAlignment___gD1xW", Jd = "ControlSlider-module__topRightAlignment___NMapS", Qd = "ControlSlider-module__middleLeftAlignment___OnUrY", eu = "ControlSlider-module__middleCenterAlignment___Tdkl0", tu = "ControlSlider-module__middleRightAlignment___wEbfX", nu = "ControlSlider-module__bottomLeftAlignment___cTP2-", iu = "ControlSlider-module__bottomCenterAlignment___c54fB", ou = "ControlSlider-module__bottomRightAlignment___kEwrz", ru = "ControlSlider-module__clickOverlay___DZA28", au = "ControlSlider-module__contain___pLyq7", lu = "ControlSlider-module__cover___KdDat", ut = {
9
+ const bd = "ControlSlider-module__wrapper___sHEkd", xd = "ControlSlider-module__hoverArrow___A-dOH", wd = "ControlSlider-module__sliderItem___QQSkR", Sd = "ControlSlider-module__sliderImage___9hRl-", $d = "ControlSlider-module__arrow___05ghY", Cd = "ControlSlider-module__arrowVertical___tBfVN", Td = "ControlSlider-module__nextArrow___-30Yc", Ld = "ControlSlider-module__arrowInner___aEra3", Id = "ControlSlider-module__arrowIcon___S4ztF", Rd = "ControlSlider-module__arrowImg___2dwJW", Pd = "ControlSlider-module__mirror___brd6U", Md = "ControlSlider-module__pagination___bicLF", Ed = "ControlSlider-module__paginationInner___bT-P-", Ad = "ControlSlider-module__paginationVertical___zYqKw", kd = "ControlSlider-module__paginationItem___nTRbk", Fd = "ControlSlider-module__dot___p1Qun", Wd = "ControlSlider-module__activeDot___LHFaj", _d = "ControlSlider-module__paginationInsideBottom___R3FWn", Nd = "ControlSlider-module__paginationInsideTop___V-qb-", Hd = "ControlSlider-module__paginationOutsideBottom___14w8D", Od = "ControlSlider-module__paginationOutsideTop___SCLqB", Dd = "ControlSlider-module__paginationInsideLeft___yOBRZ", zd = "ControlSlider-module__paginationInsideRight___Rtt3o", Bd = "ControlSlider-module__paginationOutsideLeft___lahaw", Vd = "ControlSlider-module__paginationOutsideRight___EtuQa", jd = "ControlSlider-module__imgWrapper___UjEgB", Gd = "ControlSlider-module__captionBlock___dJ6-j", Ud = "ControlSlider-module__captionTextWrapper___HFlpf", qd = "ControlSlider-module__captionText___uGBVc", Kd = "ControlSlider-module__active___WZK4G", Xd = "ControlSlider-module__withPointerEvents___t-18M", Yd = "ControlSlider-module__topLeftAlignment___zjnGM", Zd = "ControlSlider-module__topCenterAlignment___gD1xW", Jd = "ControlSlider-module__topRightAlignment___NMapS", Qd = "ControlSlider-module__middleLeftAlignment___OnUrY", eu = "ControlSlider-module__middleCenterAlignment___Tdkl0", tu = "ControlSlider-module__middleRightAlignment___wEbfX", nu = "ControlSlider-module__bottomLeftAlignment___cTP2-", iu = "ControlSlider-module__bottomCenterAlignment___c54fB", ou = "ControlSlider-module__bottomRightAlignment___kEwrz", ru = "ControlSlider-module__clickOverlay___DZA28", au = "ControlSlider-module__contain___pLyq7", lu = "ControlSlider-module__cover___KdDat", ut = {
10
10
  wrapper: bd,
11
11
  hoverArrow: xd,
12
12
  sliderItem: wd,
@@ -17,8 +17,8 @@ const bd = "ControlSlider-module__wrapper___sHEkd", xd = "ControlSlider-module__
17
17
  arrowInner: Ld,
18
18
  arrowIcon: Id,
19
19
  arrowImg: Rd,
20
- mirror: Md,
21
- pagination: Pd,
20
+ mirror: Pd,
21
+ pagination: Md,
22
22
  paginationInner: Ed,
23
23
  paginationVertical: Ad,
24
24
  paginationItem: kd,
@@ -308,7 +308,7 @@ function Qs() {
308
308
  destroy: r
309
309
  };
310
310
  }
311
- var ai = "mounted", Ra = "ready", jn = "move", ro = "moved", qa = "click", ec = "active", tc = "inactive", nc = "visible", ic = "hidden", sn = "refresh", gn = "updated", Ui = "resize", Mr = "resized", oc = "drag", rc = "dragging", ac = "dragged", Pr = "scroll", Ri = "scrolled", mu = "overflow", Ka = "destroy", lc = "arrows:mounted", sc = "arrows:updated", cc = "pagination:mounted", dc = "pagination:updated", Xa = "navigation:mounted", Ya = "autoplay:play", uc = "autoplay:playing", Za = "autoplay:pause", Ja = "lazyload:loaded", pc = "sk", mc = "sh", wr = "ei";
311
+ var ai = "mounted", Ra = "ready", jn = "move", ro = "moved", qa = "click", ec = "active", tc = "inactive", nc = "visible", ic = "hidden", sn = "refresh", gn = "updated", Ui = "resize", Pr = "resized", oc = "drag", rc = "dragging", ac = "dragged", Mr = "scroll", Ri = "scrolled", mu = "overflow", Ka = "destroy", lc = "arrows:mounted", sc = "arrows:updated", cc = "pagination:mounted", dc = "pagination:updated", Xa = "navigation:mounted", Ya = "autoplay:play", uc = "autoplay:playing", Za = "autoplay:pause", Ja = "lazyload:loaded", pc = "sk", mc = "sh", wr = "ei";
312
312
  function Jt(e) {
313
313
  var t = e ? e.event.bus : document.createDocumentFragment(), n = Qs();
314
314
  function i(r, a) {
@@ -444,7 +444,7 @@ function yu(e, t, n) {
444
444
  orient: o
445
445
  };
446
446
  }
447
- var Dn = "role", Bi = "tabindex", vu = "disabled", Mn = "aria-", Do = Mn + "controls", fc = Mn + "current", Il = Mn + "selected", $n = Mn + "label", Qa = Mn + "labelledby", yc = Mn + "hidden", el = Mn + "orientation", Ro = Mn + "roledescription", Rl = Mn + "live", Ml = Mn + "busy", Pl = Mn + "atomic", tl = [Dn, Bi, vu, Do, fc, $n, Qa, yc, el, Ro], Wn = Oo + "__", li = "is-", Yr = Oo, El = Wn + "track", bu = Wn + "list", _r = Wn + "slide", vc = _r + "--clone", xu = _r + "__container", nl = Wn + "arrows", Nr = Wn + "arrow", bc = Nr + "--prev", xc = Nr + "--next", Hr = Wn + "pagination", wc = Hr + "__page", wu = Wn + "progress", Su = wu + "__bar", $u = Wn + "toggle", Cu = Wn + "spinner", Tu = Wn + "sr", Lu = li + "initialized", Ci = li + "active", Sc = li + "prev", $c = li + "next", Ma = li + "visible", Pa = li + "loading", Cc = li + "focus-in", Tc = li + "overflow", Iu = [Ci, Ma, Sc, $c, Pa, Cc, Tc], Ru = {
447
+ var Dn = "role", Bi = "tabindex", vu = "disabled", Pn = "aria-", Do = Pn + "controls", fc = Pn + "current", Il = Pn + "selected", $n = Pn + "label", Qa = Pn + "labelledby", yc = Pn + "hidden", el = Pn + "orientation", Ro = Pn + "roledescription", Rl = Pn + "live", Pl = Pn + "busy", Ml = Pn + "atomic", tl = [Dn, Bi, vu, Do, fc, $n, Qa, yc, el, Ro], Wn = Oo + "__", li = "is-", Yr = Oo, El = Wn + "track", bu = Wn + "list", _r = Wn + "slide", vc = _r + "--clone", xu = _r + "__container", nl = Wn + "arrows", Nr = Wn + "arrow", bc = Nr + "--prev", xc = Nr + "--next", Hr = Wn + "pagination", wc = Hr + "__page", wu = Wn + "progress", Su = wu + "__bar", $u = Wn + "toggle", Cu = Wn + "spinner", Tu = Wn + "sr", Lu = li + "initialized", Ci = li + "active", Sc = li + "prev", $c = li + "next", Pa = li + "visible", Ma = li + "loading", Cc = li + "focus-in", Tc = li + "overflow", Iu = [Ci, Pa, Sc, $c, Ma, Cc, Tc], Ru = {
448
448
  slide: _r,
449
449
  clone: vc,
450
450
  arrows: nl,
@@ -455,31 +455,31 @@ var Dn = "role", Bi = "tabindex", vu = "disabled", Mn = "aria-", Do = Mn + "cont
455
455
  page: wc,
456
456
  spinner: Cu
457
457
  };
458
- function Mu(e, t) {
458
+ function Pu(e, t) {
459
459
  if (Us(e.closest))
460
460
  return e.closest(t);
461
461
  for (var n = e; n && n.nodeType === 1 && !$o(n, t); )
462
462
  n = n.parentElement;
463
463
  return n;
464
464
  }
465
- var Pu = 5, Al = 200, Lc = "touchstart mousedown", Zr = "touchmove mousemove", Jr = "touchend touchcancel mouseup click";
465
+ var Mu = 5, Al = 200, Lc = "touchstart mousedown", Zr = "touchmove mousemove", Jr = "touchend touchcancel mouseup click";
466
466
  function Eu(e, t, n) {
467
467
  var i = Jt(e), o = i.on, r = i.bind, a = e.root, c = n.i18n, s = {}, d = [], u = [], f = [], y, C, g;
468
468
  function m() {
469
469
  S(), G(), T();
470
470
  }
471
471
  function h() {
472
- o(sn, I), o(sn, m), o(gn, T), r(document, Lc + " keydown", function(P) {
473
- g = P.type === "keydown";
472
+ o(sn, I), o(sn, m), o(gn, T), r(document, Lc + " keydown", function(M) {
473
+ g = M.type === "keydown";
474
474
  }, {
475
475
  capture: !0
476
476
  }), r(a, "focusin", function() {
477
477
  Hn(a, Cc, !!g);
478
478
  });
479
479
  }
480
- function I(P) {
480
+ function I(M) {
481
481
  var $ = tl.concat("style");
482
- Vn(d), On(a, u), On(y, f), Fn([y, C], $), Fn(a, P ? $ : ["style", Ro]);
482
+ Vn(d), On(a, u), On(y, f), Fn([y, C], $), Fn(a, M ? $ : ["style", Ro]);
483
483
  }
484
484
  function T() {
485
485
  On(a, u), On(y, f), u = B(Yr), f = B(El), kn(a, u), kn(y, f), It(a, $n, n.label), It(a, Qa, n.labelledby);
@@ -492,8 +492,8 @@ function Eu(e, t, n) {
492
492
  next: xc,
493
493
  bar: Su,
494
494
  toggle: $u
495
- }, function(P, $) {
496
- s[$] = E("." + P);
495
+ }, function(M, $) {
496
+ s[$] = E("." + M);
497
497
  }), To(s, {
498
498
  root: a,
499
499
  track: y,
@@ -502,15 +502,15 @@ function Eu(e, t, n) {
502
502
  });
503
503
  }
504
504
  function G() {
505
- var P = a.id || pu(Oo), $ = n.role;
506
- a.id = P, y.id = y.id || P + "-track", C.id = C.id || P + "-list", !Rn(a, Dn) && a.tagName !== "SECTION" && $ && It(a, Dn, $), It(a, Ro, c.carousel), It(C, Dn, "presentation");
505
+ var M = a.id || pu(Oo), $ = n.role;
506
+ a.id = M, y.id = y.id || M + "-track", C.id = C.id || M + "-list", !Rn(a, Dn) && a.tagName !== "SECTION" && $ && It(a, Dn, $), It(a, Ro, c.carousel), It(C, Dn, "presentation");
507
507
  }
508
- function E(P) {
509
- var $ = Zs(a, P);
510
- return $ && Mu($, "." + Yr) === a ? $ : void 0;
508
+ function E(M) {
509
+ var $ = Zs(a, M);
510
+ return $ && Pu($, "." + Yr) === a ? $ : void 0;
511
511
  }
512
- function B(P) {
513
- return [P + "--" + n.type, P + "--" + n.direction, n.drag && P + "--draggable", n.isNavigation && P + "--nav", P === Yr && Ci];
512
+ function B(M) {
513
+ return [M + "--" + n.type, M + "--" + n.direction, n.drag && M + "--draggable", n.isNavigation && M + "--nav", M === Yr && Ci];
514
514
  }
515
515
  return To(s, {
516
516
  setup: m,
@@ -522,9 +522,9 @@ var qi = "slide", ao = "loop", zo = "fade";
522
522
  function Au(e, t, n, i) {
523
523
  var o = Jt(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, u = e.options, f = u.isNavigation, y = u.updateOnMove, C = u.i18n, g = u.pagination, m = u.slideFocus, h = s.Direction.resolve, I = Rn(i, "style"), T = Rn(i, $n), S = n > -1, G = Ho(i, "." + xu), E;
524
524
  function B() {
525
- S || (i.id = d.id + "-slide" + Ua(t + 1), It(i, Dn, g ? "tabpanel" : "group"), It(i, Ro, C.slide), It(i, $n, T || Ia(C.slideLabel, [t + 1, e.length]))), P();
525
+ S || (i.id = d.id + "-slide" + Ua(t + 1), It(i, Dn, g ? "tabpanel" : "group"), It(i, Ro, C.slide), It(i, $n, T || Ia(C.slideLabel, [t + 1, e.length]))), M();
526
526
  }
527
- function P() {
527
+ function M() {
528
528
  c(i, "click", qt(a, qa, ae)), c(i, "keydown", qt(a, pc, ae)), r([ro, mc, Ri], k), r(Xa, z), y && r(jn, v);
529
529
  }
530
530
  function $() {
@@ -552,7 +552,7 @@ function Au(e, t, n, i) {
552
552
  }
553
553
  function Q() {
554
554
  var w = j(), R = !w && (!Y() || S);
555
- if (e.state.is([oo, Fo]) || It(i, yc, R || ""), It(ja(i, u.focusableNodes || ""), Bi, R ? -1 : ""), m && It(i, Bi, R ? -1 : 0), w !== Cl(i, Ma) && (Hn(i, Ma, w), a(w ? nc : ic, ae)), !w && document.activeElement === i) {
555
+ if (e.state.is([oo, Fo]) || It(i, yc, R || ""), It(ja(i, u.focusableNodes || ""), Bi, R ? -1 : ""), m && It(i, Bi, R ? -1 : 0), w !== Cl(i, Pa) && (Hn(i, Pa, w), a(w ? nc : ic, ae)), !w && document.activeElement === i) {
556
556
  var _ = s.Slides.getAt(e.index);
557
557
  _ && Xs(_.slide);
558
558
  }
@@ -649,7 +649,7 @@ function ku(e, t, n) {
649
649
  return ti(k) ? $o(L.slide, k) : Ba(_o(k), L.index);
650
650
  });
651
651
  }
652
- function P(k, L, Q) {
652
+ function M(k, L, Q) {
653
653
  E(function(A) {
654
654
  A.style(k, L, Q);
655
655
  });
@@ -680,7 +680,7 @@ function ku(e, t, n) {
680
680
  remove: G,
681
681
  forEach: E,
682
682
  filter: B,
683
- style: P,
683
+ style: M,
684
684
  getLength: z,
685
685
  isEnough: v
686
686
  };
@@ -695,7 +695,7 @@ function Fu(e, t, n) {
695
695
  }
696
696
  function G(ae) {
697
697
  var w = wn(u);
698
- (ae || h.width !== w.width || h.height !== w.height) && (In(f, "height", B()), g(s("marginRight"), ui(n.gap)), g("width", $()), g("height", z(), !0), h = w, a(Mr), I !== (I = V()) && (Hn(u, Tc, I), a(mu, I)));
698
+ (ae || h.width !== w.width || h.height !== w.height) && (In(f, "height", B()), g(s("marginRight"), ui(n.gap)), g("width", $()), g("height", z(), !0), h = w, a(Pr), I !== (I = V()) && (Hn(u, Tc, I), a(mu, I)));
699
699
  }
700
700
  function E(ae) {
701
701
  var w = n.padding, R = s(ae ? "right" : "left");
@@ -703,16 +703,16 @@ function Fu(e, t, n) {
703
703
  }
704
704
  function B() {
705
705
  var ae = "";
706
- return m && (ae = P(), vo(ae, "height or heightRatio is missing."), ae = "calc(" + ae + " - " + E(!1) + " - " + E(!0) + ")"), ae;
706
+ return m && (ae = M(), vo(ae, "height or heightRatio is missing."), ae = "calc(" + ae + " - " + E(!1) + " - " + E(!0) + ")"), ae;
707
707
  }
708
- function P() {
708
+ function M() {
709
709
  return ui(n.height || wn(y).width * n.heightRatio);
710
710
  }
711
711
  function $() {
712
712
  return n.autoWidth ? null : ui(n.fixedWidth) || (m ? "" : v());
713
713
  }
714
714
  function z() {
715
- return ui(n.fixedHeight) || (m ? n.autoHeight ? null : v() : P());
715
+ return ui(n.fixedHeight) || (m ? n.autoHeight ? null : v() : M());
716
716
  }
717
717
  function v() {
718
718
  var ae = ui(n.gap);
@@ -779,8 +779,8 @@ function _u(e, t, n) {
779
779
  for (; T.length < I; )
780
780
  ur(T, T);
781
781
  ur(T.slice(-I), T.slice(0, I)).forEach(function(G, E) {
782
- var B = E < I, P = m(G.slide, E);
783
- B ? Va(P, T[0].slide) : No(r.list, P), ur(s, P), a.register(P, E - I + (B ? 0 : S), G.index);
782
+ var B = E < I, M = m(G.slide, E);
783
+ B ? Va(M, T[0].slide) : No(r.list, M), ur(s, M), a.register(M, E - I + (B ? 0 : S), G.index);
784
784
  });
785
785
  }
786
786
  }
@@ -806,17 +806,17 @@ function _u(e, t, n) {
806
806
  function Nu(e, t, n) {
807
807
  var i = Jt(e), o = i.on, r = i.emit, a = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, u = c.totalSize, f = c.listSize, y = c.sliderSize, C = t.Direction, g = C.resolve, m = C.orient, h = t.Elements, I = h.list, T = h.track, S;
808
808
  function G() {
809
- S = t.Transition, o([ai, Mr, gn, sn], E);
809
+ S = t.Transition, o([ai, Pr, gn, sn], E);
810
810
  }
811
811
  function E() {
812
- t.Controller.isBusy() || (t.Scroll.cancel(), P(e.index), t.Slides.update());
812
+ t.Controller.isBusy() || (t.Scroll.cancel(), M(e.index), t.Slides.update());
813
813
  }
814
814
  function B(R, _, ne, ie) {
815
815
  R !== _ && ae(R > ne) && (k(), $(v(A(), R > ne), !0)), a(oo), r(jn, _, ne, R), S.start(_, function() {
816
816
  a(Gi), r(ro, _, ne, R), ie && ie();
817
817
  });
818
818
  }
819
- function P(R) {
819
+ function M(R) {
820
820
  $(Q(R, !0));
821
821
  }
822
822
  function $(R, _) {
@@ -840,8 +840,8 @@ function Nu(e, t, n) {
840
840
  $(A(), !0), S.cancel();
841
841
  }
842
842
  function L(R) {
843
- for (var _ = t.Slides.get(), ne = 0, ie = 1 / 0, M = 0; M < _.length; M++) {
844
- var se = _[M].index, b = fn(Q(se, !0) - R);
843
+ for (var _ = t.Slides.get(), ne = 0, ie = 1 / 0, P = 0; P < _.length; P++) {
844
+ var se = _[P].index, b = fn(Q(se, !0) - R);
845
845
  if (b <= ie)
846
846
  ie = b, ne = se;
847
847
  else
@@ -879,7 +879,7 @@ function Nu(e, t, n) {
879
879
  return {
880
880
  mount: G,
881
881
  move: B,
882
- jump: P,
882
+ jump: M,
883
883
  translate: $,
884
884
  shift: v,
885
885
  cancel: k,
@@ -892,12 +892,12 @@ function Nu(e, t, n) {
892
892
  };
893
893
  }
894
894
  function Hu(e, t, n) {
895
- var i = Jt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, f = u.isEnough, y = u.getLength, C = n.omitEnd, g = e.is(ao), m = e.is(qi), h = qt(A, !1), I = qt(A, !0), T = n.start || 0, S, G = T, E, B, P;
895
+ var i = Jt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, f = u.isEnough, y = u.getLength, C = n.omitEnd, g = e.is(ao), m = e.is(qi), h = qt(A, !1), I = qt(A, !0), T = n.start || 0, S, G = T, E, B, M;
896
896
  function $() {
897
- z(), o([gn, sn, wr], z), o(Mr, v);
897
+ z(), o([gn, sn, wr], z), o(Pr, v);
898
898
  }
899
899
  function z() {
900
- E = y(!0), B = n.perMove, P = n.perPage, S = ae();
900
+ E = y(!0), B = n.perMove, M = n.perPage, S = ae();
901
901
  var b = _i(T, 0, C ? S : E - 1);
902
902
  b !== T && (T = b, a.reposition());
903
903
  }
@@ -926,13 +926,13 @@ function Hu(e, t, n) {
926
926
  return oe;
927
927
  }
928
928
  function A(b, oe) {
929
- var Z = B || (M() ? 1 : P), be = Y(T + Z * (b ? -1 : 1), T, !(B || M()));
929
+ var Z = B || (P() ? 1 : M), be = Y(T + Z * (b ? -1 : 1), T, !(B || P()));
930
930
  return be === -1 && m && !Js(c(), s(!b), 1) ? b ? 0 : S : oe ? be : V(be);
931
931
  }
932
932
  function Y(b, oe, Z) {
933
- if (f() || M()) {
933
+ if (f() || P()) {
934
934
  var be = j(b);
935
- be !== b && (oe = b, b = be, Z = !1), b < 0 || b > S ? !B && (pr(0, b, oe, !0) || pr(S, oe, b, !0)) ? b = w(R(b)) : g ? b = Z ? b < 0 ? -(E % P || P) : E : b : n.rewind ? b = b < 0 ? S : 0 : b = -1 : Z && b !== oe && (b = w(R(oe) + (b < oe ? -1 : 1)));
935
+ be !== b && (oe = b, b = be, Z = !1), b < 0 || b > S ? !B && (pr(0, b, oe, !0) || pr(S, oe, b, !0)) ? b = w(R(b)) : g ? b = Z ? b < 0 ? -(E % M || M) : E : b : n.rewind ? b = b < 0 ? S : 0 : b = -1 : Z && b !== oe && (b = w(R(oe) + (b < oe ? -1 : 1)));
936
936
  } else
937
937
  b = -1;
938
938
  return b;
@@ -947,7 +947,7 @@ function Hu(e, t, n) {
947
947
  return g ? (b + E) % E || 0 : b;
948
948
  }
949
949
  function ae() {
950
- for (var b = E - (M() || g && B ? 1 : P); C && b-- > 0; )
950
+ for (var b = E - (P() || g && B ? 1 : M); C && b-- > 0; )
951
951
  if (d(E - 1, !0) !== d(b, !0)) {
952
952
  b++;
953
953
  break;
@@ -955,10 +955,10 @@ function Hu(e, t, n) {
955
955
  return _i(b, 0, E - 1);
956
956
  }
957
957
  function w(b) {
958
- return _i(M() ? b : P * b, 0, S);
958
+ return _i(P() ? b : M * b, 0, S);
959
959
  }
960
960
  function R(b) {
961
- return M() ? ni(b, S) : xr((b >= S ? E - 1 : b) / P);
961
+ return P() ? ni(b, S) : xr((b >= S ? E - 1 : b) / M);
962
962
  }
963
963
  function _(b) {
964
964
  var oe = a.toIndex(b);
@@ -970,7 +970,7 @@ function Hu(e, t, n) {
970
970
  function ie(b) {
971
971
  return b ? G : T;
972
972
  }
973
- function M() {
973
+ function P() {
974
974
  return !Wo(n.focus) || n.isNavigation;
975
975
  }
976
976
  function se() {
@@ -989,7 +989,7 @@ function Hu(e, t, n) {
989
989
  toIndex: w,
990
990
  toPage: R,
991
991
  toDest: _,
992
- hasFocus: M,
992
+ hasFocus: P,
993
993
  isBusy: se
994
994
  };
995
995
  }
@@ -1007,12 +1007,12 @@ function zu(e, t, n) {
1007
1007
  L && !(g && m) && z(), g && m && (To(T, {
1008
1008
  prev: g,
1009
1009
  next: m
1010
- }), Lo(C, L ? "" : "none"), kn(C, I = nl + "--" + n.direction), L && (P(), k(), It([g, m], Do, y.id), a(lc, g, m)));
1010
+ }), Lo(C, L ? "" : "none"), kn(C, I = nl + "--" + n.direction), L && (M(), k(), It([g, m], Do, y.id), a(lc, g, m)));
1011
1011
  }
1012
1012
  function B() {
1013
1013
  i.destroy(), On(C, I), h ? ($i(f ? [g, m] : C), g = m = null) : Fn([g, m], tl);
1014
1014
  }
1015
- function P() {
1015
+ function M() {
1016
1016
  o([ai, ro, sn, Ri, wr], k), r(m, "click", qt($, ">")), r(g, "click", qt($, "<"));
1017
1017
  }
1018
1018
  function $(L) {
@@ -1040,7 +1040,7 @@ function zu(e, t, n) {
1040
1040
  }
1041
1041
  var Bu = Ga + "-interval";
1042
1042
  function Vu(e, t, n) {
1043
- var i = Jt(e), o = i.on, r = i.bind, a = i.emit, c = Er(n.interval, e.go.bind(e, ">"), P), s = c.isPaused, d = t.Elements, u = t.Elements, f = u.root, y = u.toggle, C = n.autoplay, g, m, h = C === "pause";
1043
+ var i = Jt(e), o = i.on, r = i.bind, a = i.emit, c = Er(n.interval, e.go.bind(e, ">"), M), s = c.isPaused, d = t.Elements, u = t.Elements, f = u.root, y = u.toggle, C = n.autoplay, g, m, h = C === "pause";
1044
1044
  function I() {
1045
1045
  C && (T(), y && It(y, Do, d.track.id), h || S(), B());
1046
1046
  }
@@ -1051,7 +1051,7 @@ function Vu(e, t, n) {
1051
1051
  m = z.type === "focusin", E();
1052
1052
  }), y && r(y, "click", function() {
1053
1053
  h ? S() : G(!0);
1054
- }), o([jn, Pr, sn], c.rewind), o(jn, $);
1054
+ }), o([jn, Mr, sn], c.rewind), o(jn, $);
1055
1055
  }
1056
1056
  function S() {
1057
1057
  s() && t.Slides.isEnough() && (c.start(!n.resetProgress), m = g = h = !1, B(), a(Ya));
@@ -1065,7 +1065,7 @@ function Vu(e, t, n) {
1065
1065
  function B() {
1066
1066
  y && (Hn(y, Ci, !h), It(y, $n, n.i18n[h ? "play" : "pause"]));
1067
1067
  }
1068
- function P(z) {
1068
+ function M(z) {
1069
1069
  var v = d.bar;
1070
1070
  v && In(v, "width", z * 100 + "%"), a(uc, z);
1071
1071
  }
@@ -1106,20 +1106,20 @@ function Yu(e, t, n) {
1106
1106
  function h() {
1107
1107
  o(jn, G), o([gn, sn], E);
1108
1108
  }
1109
- function I(P, $, z, v, k) {
1109
+ function I(M, $, z, v, k) {
1110
1110
  var L = s();
1111
1111
  if (G(), z && (!y || !u())) {
1112
- var Q = t.Layout.sliderSize(), A = La(P) * Q * xr(fn(P) / Q) || 0;
1113
- P = c.toPosition(t.Controller.toDest(P % Q)) + A;
1112
+ var Q = t.Layout.sliderSize(), A = La(M) * Q * xr(fn(M) / Q) || 0;
1113
+ M = c.toPosition(t.Controller.toDest(M % Q)) + A;
1114
1114
  }
1115
- var Y = Js(L, P, 1);
1116
- m = 1, $ = Y ? 0 : $ || br(fn(P - L) / Ku, Xu), g = v, C = Er($, T, qt(S, L, P, k), 1), a(Fo), r(Pr), C.start();
1115
+ var Y = Js(L, M, 1);
1116
+ m = 1, $ = Y ? 0 : $ || br(fn(M - L) / Ku, Xu), g = v, C = Er($, T, qt(S, L, M, k), 1), a(Fo), r(Mr), C.start();
1117
1117
  }
1118
1118
  function T() {
1119
1119
  a(Gi), g && g(), r(Ri);
1120
1120
  }
1121
- function S(P, $, z, v) {
1122
- var k = s(), L = P + ($ - P) * B(v), Q = (L - k) * m;
1121
+ function S(M, $, z, v) {
1122
+ var k = s(), L = M + ($ - M) * B(v), Q = (L - k) * m;
1123
1123
  f(k + Q), y && !z && u() && (m *= qu, fn(Q) < Gu && I(d(u(!0)), Uu, !1, g, !0));
1124
1124
  }
1125
1125
  function G() {
@@ -1128,9 +1128,9 @@ function Yu(e, t, n) {
1128
1128
  function E() {
1129
1129
  C && !C.isPaused() && (G(), T());
1130
1130
  }
1131
- function B(P) {
1131
+ function B(M) {
1132
1132
  var $ = n.easingFunc;
1133
- return $ ? $(P) : 1 - Math.pow(1 - P, 4);
1133
+ return $ ? $(M) : 1 - Math.pow(1 - M, 4);
1134
1134
  }
1135
1135
  return {
1136
1136
  mount: h,
@@ -1144,7 +1144,7 @@ var Ni = {
1144
1144
  capture: !0
1145
1145
  };
1146
1146
  function Zu(e, t, n) {
1147
- var i = Jt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, f = t.Controller, y = t.Elements.track, C = t.Media.reduce, g = t.Direction, m = g.resolve, h = g.orient, I = d.getPosition, T = d.exceededLimit, S, G, E, B, P, $ = !1, z, v, k;
1147
+ var i = Jt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, f = t.Controller, y = t.Elements.track, C = t.Media.reduce, g = t.Direction, m = g.resolve, h = g.orient, I = d.getPosition, T = d.exceededLimit, S, G, E, B, M, $ = !1, z, v, k;
1148
1148
  function L() {
1149
1149
  a(y, Zr, Ca, Ni), a(y, Jr, Ca, Ni), a(y, Lc, A, Ni), a(y, "click", V, {
1150
1150
  capture: !0
@@ -1157,19 +1157,19 @@ function Zu(e, t, n) {
1157
1157
  function A(K) {
1158
1158
  if (z = !1, !v) {
1159
1159
  var te = Ee(K);
1160
- be(K.target) && (te || !K.button) && (f.isBusy() ? Nn(K, !0) : (k = te ? y : window, P = s.is([oo, Fo]), E = null, a(k, Zr, Y, Ni), a(k, Jr, j, Ni), d.cancel(), u.cancel(), ae(K)));
1160
+ be(K.target) && (te || !K.button) && (f.isBusy() ? Nn(K, !0) : (k = te ? y : window, M = s.is([oo, Fo]), E = null, a(k, Zr, Y, Ni), a(k, Jr, j, Ni), d.cancel(), u.cancel(), ae(K)));
1161
1161
  }
1162
1162
  }
1163
1163
  function Y(K) {
1164
1164
  if (s.is(dr) || (s.set(dr), r(oc)), K.cancelable)
1165
- if (P) {
1166
- d.translate(S + Z(M(K)));
1165
+ if (M) {
1166
+ d.translate(S + Z(P(K)));
1167
1167
  var te = se(K) > Al, ge = $ !== ($ = T());
1168
1168
  (te || ge) && ae(K), z = !0, r(rc), Nn(K);
1169
- } else _(K) && (P = R(K), Nn(K));
1169
+ } else _(K) && (M = R(K), Nn(K));
1170
1170
  }
1171
1171
  function j(K) {
1172
- s.is(dr) && (s.set(Gi), r(ac)), P && (w(K), Nn(K)), c(k, Zr, Y), c(k, Jr, j), P = !1;
1172
+ s.is(dr) && (s.set(Gi), r(ac)), M && (w(K), Nn(K)), c(k, Zr, Y), c(k, Jr, j), M = !1;
1173
1173
  }
1174
1174
  function V(K) {
1175
1175
  !v && z && Nn(K, !0);
@@ -1183,23 +1183,23 @@ function Zu(e, t, n) {
1183
1183
  }
1184
1184
  function R(K) {
1185
1185
  var te = n.dragMinThreshold, ge = So(te), _e = ge && te.mouse || 0, Le = (ge ? te.touch : +te) || 10;
1186
- return fn(M(K)) > (Ee(K) ? Le : _e);
1186
+ return fn(P(K)) > (Ee(K) ? Le : _e);
1187
1187
  }
1188
1188
  function _(K) {
1189
- return fn(M(K)) > fn(M(K, !0));
1189
+ return fn(P(K)) > fn(P(K, !0));
1190
1190
  }
1191
1191
  function ne(K) {
1192
1192
  if (e.is(ao) || !$) {
1193
1193
  var te = se(K);
1194
1194
  if (te && te < Al)
1195
- return M(K) / te;
1195
+ return P(K) / te;
1196
1196
  }
1197
1197
  return 0;
1198
1198
  }
1199
1199
  function ie(K) {
1200
1200
  return I() + La(K) * ni(fn(K) * (n.flickPower || 600), B ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
1201
1201
  }
1202
- function M(K, te) {
1202
+ function P(K, te) {
1203
1203
  return oe(K, te) - oe(b(K), te);
1204
1204
  }
1205
1205
  function se(K) {
@@ -1212,7 +1212,7 @@ function Zu(e, t, n) {
1212
1212
  return (Ee(K) ? K.changedTouches[0] : K)["page" + m(te ? "Y" : "X")];
1213
1213
  }
1214
1214
  function Z(K) {
1215
- return K / ($ && e.is(qi) ? Pu : 1);
1215
+ return K / ($ && e.is(qi) ? Mu : 1);
1216
1216
  }
1217
1217
  function be(K) {
1218
1218
  var te = n.noDrag;
@@ -1222,7 +1222,7 @@ function Zu(e, t, n) {
1222
1222
  return typeof TouchEvent < "u" && K instanceof TouchEvent;
1223
1223
  }
1224
1224
  function pe() {
1225
- return P;
1225
+ return M;
1226
1226
  }
1227
1227
  function de(K) {
1228
1228
  v = K;
@@ -1291,7 +1291,7 @@ function tp(e, t, n) {
1291
1291
  ja(T.slide, ep).forEach(function(S) {
1292
1292
  var G = Rn(S, bo), E = Rn(S, mr);
1293
1293
  if (G !== S.src || E !== S.srcset) {
1294
- var B = n.classes.spinner, P = S.parentElement, $ = Ho(P, "." + B) || zi("span", B, P);
1294
+ var B = n.classes.spinner, M = S.parentElement, $ = Ho(M, "." + B) || zi("span", B, M);
1295
1295
  u.push([S, T, $]), S.src || Lo(S, "none");
1296
1296
  }
1297
1297
  });
@@ -1305,11 +1305,11 @@ function tp(e, t, n) {
1305
1305
  }
1306
1306
  function m(T) {
1307
1307
  var S = T[0];
1308
- kn(T[1].slide, Pa), a(S, "load error", qt(h, T)), It(S, "src", Rn(S, bo)), It(S, "srcset", Rn(S, mr)), Fn(S, bo), Fn(S, mr);
1308
+ kn(T[1].slide, Ma), a(S, "load error", qt(h, T)), It(S, "src", Rn(S, bo)), It(S, "srcset", Rn(S, mr)), Fn(S, bo), Fn(S, mr);
1309
1309
  }
1310
1310
  function h(T, S) {
1311
1311
  var G = T[0], E = T[1];
1312
- On(E.slide, Pa), S.type !== "error" && ($i(T[2]), Lo(G, ""), c(Ja, G, E), c(Ui)), s && I();
1312
+ On(E.slide, Ma), S.type !== "error" && ($i(T[2]), Lo(G, ""), c(Ja, G, E), c(Ui)), s && I();
1313
1313
  }
1314
1314
  function I() {
1315
1315
  u.length && m(u.shift());
@@ -1325,7 +1325,7 @@ function np(e, t, n) {
1325
1325
  function T() {
1326
1326
  S(), o([gn, sn, wr], T);
1327
1327
  var v = n.pagination;
1328
- g && Lo(g, v ? "" : "none"), v && (o([jn, Pr, Ri], z), G(), z(), r(cc, {
1328
+ g && Lo(g, v ? "" : "none"), v && (o([jn, Mr, Ri], z), G(), z(), r(cc, {
1329
1329
  list: h,
1330
1330
  items: m
1331
1331
  }, $(e.index)));
@@ -1335,7 +1335,7 @@ function np(e, t, n) {
1335
1335
  }
1336
1336
  function G() {
1337
1337
  var v = e.length, k = n.classes, L = n.i18n, Q = n.perPage, A = u() ? d.getEnd() + 1 : Io(v / Q);
1338
- h = g || zi("ul", k.pagination, s.track.parentElement), kn(h, I = Hr + "--" + P()), It(h, Dn, "tablist"), It(h, $n, L.select), It(h, el, P() === Wr ? "vertical" : "");
1338
+ h = g || zi("ul", k.pagination, s.track.parentElement), kn(h, I = Hr + "--" + M()), It(h, Dn, "tablist"), It(h, $n, L.select), It(h, el, M() === Wr ? "vertical" : "");
1339
1339
  for (var Y = 0; Y < A; Y++) {
1340
1340
  var j = zi("li", null, h), V = zi("button", {
1341
1341
  class: k.page,
@@ -1354,12 +1354,12 @@ function np(e, t, n) {
1354
1354
  y(">" + v, !0);
1355
1355
  }
1356
1356
  function B(v, k) {
1357
- var L = m.length, Q = il(k), A = P(), Y = -1;
1357
+ var L = m.length, Q = il(k), A = M(), Y = -1;
1358
1358
  Q === C(Fr, !1, A) ? Y = ++v % L : Q === C(kr, !1, A) ? Y = (--v + L) % L : Q === "Home" ? Y = 0 : Q === "End" && (Y = L - 1);
1359
1359
  var j = m[Y];
1360
1360
  j && (Xs(j.button), y(">" + Y), Nn(k, !0));
1361
1361
  }
1362
- function P() {
1362
+ function M() {
1363
1363
  return n.paginationDirection || n.direction;
1364
1364
  }
1365
1365
  function $(v) {
@@ -1454,13 +1454,13 @@ var ap = 90;
1454
1454
  function lp(e, t, n) {
1455
1455
  var i = Jt(e), o = i.on, r = t.Elements.track, a = n.live && !n.isNavigation, c = zi("span", Tu), s = Er(ap, qt(u, !1));
1456
1456
  function d() {
1457
- a && (y(!t.Autoplay.isPaused()), It(r, Pl, !0), c.textContent = "…", o(Ya, qt(y, !0)), o(Za, qt(y, !1)), o([ro, Ri], qt(u, !0)));
1457
+ a && (y(!t.Autoplay.isPaused()), It(r, Ml, !0), c.textContent = "…", o(Ya, qt(y, !0)), o(Za, qt(y, !1)), o([ro, Ri], qt(u, !0)));
1458
1458
  }
1459
1459
  function u(C) {
1460
- It(r, Ml, C), C ? (No(r, c), s.start()) : ($i(c), s.cancel());
1460
+ It(r, Pl, C), C ? (No(r, c), s.start()) : ($i(c), s.cancel());
1461
1461
  }
1462
1462
  function f() {
1463
- Fn(r, [Rl, Pl, Ml]), $i(c);
1463
+ Fn(r, [Rl, Ml, Pl]), $i(c);
1464
1464
  }
1465
1465
  function y(C) {
1466
1466
  a && It(r, Rl, C ? "off" : "polite");
@@ -1673,11 +1673,11 @@ var Fl = [
1673
1673
  [sn, "onRefresh"],
1674
1674
  [gn, "onUpdated"],
1675
1675
  [Ui, "onResize"],
1676
- [Mr, "onResized"],
1676
+ [Pr, "onResized"],
1677
1677
  [oc, "onDrag"],
1678
1678
  [rc, "onDragging"],
1679
1679
  [ac, "onDragged"],
1680
- [Pr, "onScroll"],
1680
+ [Mr, "onScroll"],
1681
1681
  [Ri, "onScrolled"],
1682
1682
  [Ka, "onDestroy"],
1683
1683
  [lc, "onArrowsMounted"],
@@ -1853,7 +1853,7 @@ const wp = "SvgImage-module__svg___q3xE-", Sp = "SvgImage-module__img___VsTm-",
1853
1853
  return t.startsWith("data:image/svg+xml") ? !0 : (t.split(/[?#]/)[0] ?? t).endsWith(".svg");
1854
1854
  }, Cp = (e) => `url("${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, mn = ({ url: e, fill: t = "#000000", hoverFill: n = "#CCCCCC", className: i = "", style: o }) => {
1855
1855
  const [r, a] = ee(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
1856
- return Me(() => {
1856
+ return Pe(() => {
1857
1857
  if (typeof window < "u" && window.CSS) {
1858
1858
  const c = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
1859
1859
  a(c);
@@ -1883,10 +1883,10 @@ const wp = "SvgImage-module__svg___q3xE-", Sp = "SvgImage-module__img___VsTm-",
1883
1883
  "bottom-right": ut.bottomRightAlignment
1884
1884
  };
1885
1885
  function Lp({ settings: e, content: t, styles: n, isEditor: i }) {
1886
- const [o, r] = ee(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: f, textAppearance: y, color: C } = n.imageCaption ?? {}, [g, m] = ee(void 0), [h, I] = ee(null), [T, S] = ee(0), [G, E] = ee(0), { direction: B, transition: P, controls: $, pagination: z, imageCaption: v, triggers: k } = e, L = q(P.type), { x: Q, y: A } = e.controls.offset, Y = (j) => {
1886
+ const [o, r] = ee(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: f, textAppearance: y, color: C } = n.imageCaption ?? {}, [g, m] = ee(void 0), [h, I] = ee(null), [T, S] = ee(0), [G, E] = ee(0), { direction: B, transition: M, controls: $, pagination: z, imageCaption: v, triggers: k } = e, L = q(M.type), { x: Q, y: A } = e.controls.offset, Y = (j) => {
1887
1887
  o && o.go(j);
1888
1888
  };
1889
- return Me(() => {
1889
+ return Pe(() => {
1890
1890
  if (!h) return;
1891
1891
  const j = new ResizeObserver((V) => {
1892
1892
  if (!o) return;
@@ -1897,16 +1897,16 @@ function Lp({ settings: e, content: t, styles: n, isEditor: i }) {
1897
1897
  });
1898
1898
  });
1899
1899
  return j.observe(h), () => j.unobserve(h);
1900
- }, [h]), Me(() => {
1901
- !o || L.current === P.type || (E((j) => j + 1), L.current = P.type);
1902
- }, [P.type]), /* @__PURE__ */ l("div", { className: yt(ut.wrapper, { [ut.editor]: i }), ref: I, children: /* @__PURE__ */ U(
1900
+ }, [h]), Pe(() => {
1901
+ !o || L.current === M.type || (E((j) => j + 1), L.current = M.type);
1902
+ }, [M.type]), /* @__PURE__ */ l("div", { className: yt(ut.wrapper, { [ut.editor]: i }), ref: I, children: /* @__PURE__ */ U(
1903
1903
  "div",
1904
1904
  {
1905
1905
  className: ut.sliderInner,
1906
1906
  style: {
1907
1907
  width: g ? g.width : "100%",
1908
1908
  height: g ? g.height : "100%",
1909
- backgroundColor: P.backgroundColor && P.type === "fade in" ? P.backgroundColor : "transparent"
1909
+ backgroundColor: M.backgroundColor && M.type === "fade in" ? M.backgroundColor : "transparent"
1910
1910
  },
1911
1911
  children: [
1912
1912
  e.imageCaption.isActive && /* @__PURE__ */ l(
@@ -1938,7 +1938,7 @@ function Lp({ settings: e, content: t, styles: n, isEditor: i }) {
1938
1938
  textDecoration: y.textDecoration ?? "none",
1939
1939
  fontVariant: y.fontVariant ?? "normal",
1940
1940
  color: C,
1941
- transitionDuration: P.duration ? `${Math.round(parseInt(P.duration) / 2)}ms` : "500ms"
1941
+ transitionDuration: M.duration ? `${Math.round(parseInt(M.duration) / 2)}ms` : "500ms"
1942
1942
  },
1943
1943
  children: /* @__PURE__ */ l(
1944
1944
  "div",
@@ -1971,18 +1971,18 @@ function Lp({ settings: e, content: t, styles: n, isEditor: i }) {
1971
1971
  ref: r,
1972
1972
  options: {
1973
1973
  arrows: !1,
1974
- speed: P.duration ? parseInt(P.duration) : 500,
1974
+ speed: M.duration ? parseInt(M.duration) : 500,
1975
1975
  autoplay: k.autoPlay !== null,
1976
1976
  ...k.autoPlay !== null && {
1977
1977
  interval: parseInt(k.autoPlay) * 1e3
1978
1978
  },
1979
- direction: B === "horiz" || P.type === "fade in" ? "ltr" : "ttb",
1979
+ direction: B === "horiz" || M.type === "fade in" ? "ltr" : "ttb",
1980
1980
  pagination: !1,
1981
1981
  drag: k.triggersList.drag,
1982
1982
  perPage: 1,
1983
1983
  width: g ? g.width : "100%",
1984
1984
  height: g ? g.height : "100%",
1985
- type: P.type === "fade in" ? "fade" : "loop",
1985
+ type: M.type === "fade in" ? "fade" : "loop",
1986
1986
  rewind: !0
1987
1987
  },
1988
1988
  children: t.map((j, V) => /* @__PURE__ */ l(ll, { children: /* @__PURE__ */ l(
@@ -2762,10 +2762,10 @@ const Ip = {
2762
2762
  },
2763
2763
  required: ["settings", "content", "styles"]
2764
2764
  }
2765
- }, Rp = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Mp = "ImageRevealSlider-module__image___Qjt-e", Pp = "ImageRevealSlider-module__link___N-iLG", Ep = "ImageRevealSlider-module__cursor___2U03d", Ei = {
2765
+ }, Rp = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Pp = "ImageRevealSlider-module__image___Qjt-e", Mp = "ImageRevealSlider-module__link___N-iLG", Ep = "ImageRevealSlider-module__cursor___2U03d", Ei = {
2766
2766
  imageRevealSlider: Rp,
2767
- image: Mp,
2768
- link: Pp,
2767
+ image: Pp,
2768
+ link: Mp,
2769
2769
  cursor: Ep
2770
2770
  };
2771
2771
  function Nl(e, t, n) {
@@ -2803,8 +2803,8 @@ async function Ap(e, t, n, i) {
2803
2803
  return { width: o, height: r, finalWidth: `${o}px` };
2804
2804
  }
2805
2805
  function kp({ settings: e, content: t, isEditor: n }) {
2806
- const [i, o] = ee(null), [r, a] = ee([]), [c, s] = ee(0), d = q(0), [u, f] = ee({ x: 0, y: 0 }), [y, C] = ee(1), [g, m] = ee("none"), h = q({ x: 0, y: 0 }), [I, T] = ee(!1), { sizeType: S, imageWidth: G, randomRangeImageWidth: E } = e.imageSize, { revealPosition: B, visible: P } = e.position, { cursorType: $, target: z, defaultCursorScale: v, defaultCursor: k, hoverCursorScale: L, hoverCursor: Q } = e.cursor;
2807
- Me(() => {
2806
+ const [i, o] = ee(null), [r, a] = ee([]), [c, s] = ee(0), d = q(0), [u, f] = ee({ x: 0, y: 0 }), [y, C] = ee(1), [g, m] = ee("none"), h = q({ x: 0, y: 0 }), [I, T] = ee(!1), { sizeType: S, imageWidth: G, randomRangeImageWidth: E } = e.imageSize, { revealPosition: B, visible: M } = e.position, { cursorType: $, target: z, defaultCursorScale: v, defaultCursor: k, hoverCursorScale: L, hoverCursor: Q } = e.cursor;
2807
+ Pe(() => {
2808
2808
  if (!i) return;
2809
2809
  const j = (w, R) => {
2810
2810
  const _ = i.getBoundingClientRect(), ne = w - _.left, ie = R - _.top;
@@ -2812,12 +2812,12 @@ function kp({ settings: e, content: t, isEditor: n }) {
2812
2812
  m("none"), C(1);
2813
2813
  return;
2814
2814
  }
2815
- const M = ne, se = ie, b = document.elementFromPoint(_.left + M, _.top + se);
2815
+ const P = ne, se = ie, b = document.elementFromPoint(_.left + P, _.top + se);
2816
2816
  if (b && b.closest("a")) {
2817
2817
  m("none"), C(1);
2818
2818
  return;
2819
2819
  }
2820
- const oe = Nl(M, se, r) || z === "area" ? { img: Q ?? "none", scale: L } : { img: k ?? "none", scale: v };
2820
+ const oe = Nl(P, se, r) || z === "area" ? { img: Q ?? "none", scale: L } : { img: k ?? "none", scale: v };
2821
2821
  m(oe.img), C(oe.scale);
2822
2822
  }, V = (w) => {
2823
2823
  w.stopPropagation(), h.current = { x: w.clientX, y: w.clientY }, j(w.clientX, w.clientY);
@@ -2838,7 +2838,7 @@ function kp({ settings: e, content: t, isEditor: n }) {
2838
2838
  L,
2839
2839
  v,
2840
2840
  r
2841
- ]), Me(() => {
2841
+ ]), Pe(() => {
2842
2842
  I || (m("none"), C(0));
2843
2843
  }, [I]);
2844
2844
  const A = async (j, V, ae, w = {}) => {
@@ -2848,9 +2848,9 @@ function kp({ settings: e, content: t, isEditor: n }) {
2848
2848
  G,
2849
2849
  E
2850
2850
  );
2851
- let ie = 0, M = 0;
2852
- B === "same" ? (ie = V / 2, M = ae / 2) : (ie = w.x ?? Math.random() * V, M = w.y ?? Math.random() * ae);
2853
- const se = Math.min(Math.max(ie, R / 2), V - R / 2), b = Math.min(Math.max(M, _ / 2), ae - _ / 2);
2851
+ let ie = 0, P = 0;
2852
+ B === "same" ? (ie = V / 2, P = ae / 2) : (ie = w.x ?? Math.random() * V, P = w.y ?? Math.random() * ae);
2853
+ const se = Math.min(Math.max(ie, R / 2), V - R / 2), b = Math.min(Math.max(P, _ / 2), ae - _ / 2);
2854
2854
  return {
2855
2855
  id: d.current++,
2856
2856
  url: j.image.url,
@@ -2861,16 +2861,16 @@ function kp({ settings: e, content: t, isEditor: n }) {
2861
2861
  width: ne
2862
2862
  };
2863
2863
  };
2864
- return Me(() => {
2864
+ return Pe(() => {
2865
2865
  if (!i || t.length === 0) return;
2866
2866
  const j = i.getBoundingClientRect(), V = j.width, ae = j.height, w = [];
2867
2867
  (async () => {
2868
2868
  const _ = t[0], ne = await A(_, V, ae);
2869
2869
  w.push(ne), a(w), s(1);
2870
2870
  })();
2871
- }, [S, G, E, B, i]), Me(() => {
2872
- P === "last One" && a((j) => j.length > 0 ? [j[j.length - 1]] : []);
2873
- }, [P]), /* @__PURE__ */ U(
2871
+ }, [S, G, E, B, i]), Pe(() => {
2872
+ M === "last One" && a((j) => j.length > 0 ? [j[j.length - 1]] : []);
2873
+ }, [M]), /* @__PURE__ */ U(
2874
2874
  "div",
2875
2875
  {
2876
2876
  ref: o,
@@ -2881,7 +2881,7 @@ function kp({ settings: e, content: t, isEditor: n }) {
2881
2881
  let R = 0, _ = 0;
2882
2882
  B === "on Click" ? (R = ae, _ = w) : B === "same" ? (R = V.width / 2, _ = V.height / 2) : (R = Math.random() * V.width, _ = Math.random() * V.height);
2883
2883
  const ne = t[c], ie = await A(ne, V.width, V.height, { x: R, y: _ });
2884
- a((M) => P === "all" ? [...M, ie] : [ie]), s((M) => M >= t.length - 1 ? 0 : M + 1);
2884
+ a((P) => M === "all" ? [...P, ie] : [ie]), s((P) => P >= t.length - 1 ? 0 : P + 1);
2885
2885
  },
2886
2886
  onMouseEnter: () => T(!0),
2887
2887
  onMouseLeave: () => T(!1),
@@ -3365,7 +3365,7 @@ function xm(e, t, n, i) {
3365
3365
  const a = e;
3366
3366
  return { renderedW: a, renderedH: a / r };
3367
3367
  }
3368
- function Mc(e, t, n, i, o) {
3368
+ function Pc(e, t, n, i, o) {
3369
3369
  const { x: r, y: a } = bm(o);
3370
3370
  return {
3371
3371
  offsetX: r * (e - n),
@@ -3376,7 +3376,7 @@ function wm(e) {
3376
3376
  const t = e.getBoundingClientRect(), n = t.width, i = t.height;
3377
3377
  if (!n || !i)
3378
3378
  return "center center";
3379
- const o = e instanceof HTMLVideoElement ? e.videoWidth : e.naturalWidth, r = e instanceof HTMLVideoElement ? e.videoHeight : e.naturalHeight, { objectFit: a, objectPosition: c } = window.getComputedStyle(e), s = a === "cover" ? xm : Rc, { renderedW: d, renderedH: u } = s(n, i, o, r), { offsetX: f, offsetY: y } = Mc(
3379
+ const o = e instanceof HTMLVideoElement ? e.videoWidth : e.naturalWidth, r = e instanceof HTMLVideoElement ? e.videoHeight : e.naturalHeight, { objectFit: a, objectPosition: c } = window.getComputedStyle(e), s = a === "cover" ? xm : Rc, { renderedW: d, renderedH: u } = s(n, i, o, r), { offsetX: f, offsetY: y } = Pc(
3380
3380
  n,
3381
3381
  i,
3382
3382
  d,
@@ -3389,7 +3389,7 @@ function Sm(e) {
3389
3389
  return wm(e);
3390
3390
  }
3391
3391
  function $r(e) {
3392
- const t = e.getBoundingClientRect(), n = Ic(e), i = Math.max(0, t.width - n.left - n.right), o = Math.max(0, t.height - n.top - n.bottom), r = e.naturalWidth, a = e.naturalHeight, { renderedW: c, renderedH: s } = Rc(i, o, r, a), d = window.getComputedStyle(e).objectPosition, { offsetX: u, offsetY: f } = Mc(
3392
+ const t = e.getBoundingClientRect(), n = Ic(e), i = Math.max(0, t.width - n.left - n.right), o = Math.max(0, t.height - n.top - n.bottom), r = e.naturalWidth, a = e.naturalHeight, { renderedW: c, renderedH: s } = Rc(i, o, r, a), d = window.getComputedStyle(e).objectPosition, { offsetX: u, offsetY: f } = Pc(
3393
3393
  i,
3394
3394
  o,
3395
3395
  c,
@@ -3495,7 +3495,7 @@ function $m(e, t) {
3495
3495
  }
3496
3496
  const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, isEditor: r, isPreviewMode: a }) => {
3497
3497
  const [c, s] = ee(!1), { url: d } = e.thumbnailBlock.cover;
3498
- return Me(() => {
3498
+ return Pe(() => {
3499
3499
  o === "close" && s(!1), o === "open" && s(!0);
3500
3500
  }, [o]), /* @__PURE__ */ U(at, { children: [
3501
3501
  /* @__PURE__ */ l(
@@ -3522,8 +3522,8 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3522
3522
  ] });
3523
3523
  }, Tm = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: c }) => {
3524
3524
  var $e;
3525
- const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: f, wordSpacing: y, fontSizeLineHeight: C, textAppearance: g, color: m } = i.imageCaption ?? {}, [h, I] = ee(0), [T, S] = ee(0), [G, E] = ee(!1), [B, P] = ee(!1), [$, z] = ee({}), v = q(null), k = q(null), L = q(null), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(null), ae = q(!1), w = q(null), [R, _] = ee(!1), { appear: ne, triggers: ie, slider: M, thumbnail: se, controls: b, area: oe, caption: Z, layout: be } = o.lightboxBlock, { appearClass: Ee, backdropAppearClass: pe, backdropDisappearClass: de, disappearClass: K } = $m(ne.type, ne.direction), te = (c == null ? void 0 : c.itemId) ?? null;
3526
- Me(() => {
3525
+ const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: f, wordSpacing: y, fontSizeLineHeight: C, textAppearance: g, color: m } = i.imageCaption ?? {}, [h, I] = ee(0), [T, S] = ee(0), [G, E] = ee(!1), [B, M] = ee(!1), [$, z] = ee({}), v = q(null), k = q(null), L = q(null), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(null), ae = q(!1), w = q(null), [R, _] = ee(!1), { appear: ne, triggers: ie, slider: P, thumbnail: se, controls: b, area: oe, caption: Z, layout: be } = o.lightboxBlock, { appearClass: Ee, backdropAppearClass: pe, backdropDisappearClass: de, disappearClass: K } = $m(ne.type, ne.direction), te = (c == null ? void 0 : c.itemId) ?? null;
3526
+ Pe(() => {
3527
3527
  const O = () => {
3528
3528
  setTimeout(() => {
3529
3529
  var fe, Se;
@@ -3535,7 +3535,7 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3535
3535
  return window.addEventListener("ArticleEditor.Layout:change", O), window.addEventListener("ArticleEditor.ComponentContent:change", le), () => {
3536
3536
  window.removeEventListener("ArticleEditor.Layout:change", O), window.removeEventListener("ArticleEditor.ComponentContent:change", le);
3537
3537
  };
3538
- }, []), Me(() => {
3538
+ }, []), Pe(() => {
3539
3539
  if (!e || !se.isActive) {
3540
3540
  _(!1);
3541
3541
  return;
@@ -3543,12 +3543,12 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3543
3543
  const O = w.current;
3544
3544
  if (!O) return;
3545
3545
  const le = () => {
3546
- M.direction === "horiz" ? _(O.scrollWidth > O.clientWidth) : _(O.scrollHeight > O.clientHeight);
3546
+ P.direction === "horiz" ? _(O.scrollWidth > O.clientWidth) : _(O.scrollHeight > O.clientHeight);
3547
3547
  };
3548
3548
  le();
3549
3549
  const fe = new ResizeObserver(le);
3550
3550
  return fe.observe(O), () => fe.disconnect();
3551
- }, [e, se.isActive, n.length, $, M.direction]);
3551
+ }, [e, se.isActive, n.length, $, P.direction]);
3552
3552
  const ge = ve(() => {
3553
3553
  const O = window.matchMedia("(max-width: 768px)").matches, le = Ol(oe.color);
3554
3554
  O && !a && le > 0.9 && (document.body.style.backgroundColor = ""), E(!0), Q.current = !0;
@@ -3557,14 +3557,14 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3557
3557
  };
3558
3558
  A.current && (Y.current = fe, A.current.addEventListener("animationend", fe));
3559
3559
  }, [t, oe.color, a]), _e = (O, le, fe) => {
3560
- var Se, Pe;
3560
+ var Se, Me;
3561
3561
  if (O) {
3562
3562
  if (ie.type === "click" && ie.switch === "image")
3563
3563
  ie.repeat === "close" && h === n.length - 1 ? ge() : (Se = v.current) == null || Se.go("+1");
3564
3564
  else if (ie.type === "click" && ie.switch === "50/50") {
3565
3565
  const Ce = O.getBoundingClientRect(), W = le - Ce.left, he = fe - Ce.top, re = Ce.width, N = Ce.height;
3566
3566
  let X;
3567
- M.direction === "horiz" ? X = W < re / 2 ? "-1" : "+1" : X = he < N / 2 ? "-1" : "+1", (Pe = v.current) == null || Pe.go(X);
3567
+ P.direction === "horiz" ? X = W < re / 2 ? "-1" : "+1" : X = he < N / 2 ? "-1" : "+1", (Me = v.current) == null || Me.go(X);
3568
3568
  }
3569
3569
  }
3570
3570
  }, Le = (O) => {
@@ -3573,31 +3573,31 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3573
3573
  return;
3574
3574
  }
3575
3575
  const le = n[h], fe = (le == null ? void 0 : le.image.objectFit) === "cover";
3576
- let Se, Pe;
3576
+ let Se, Me;
3577
3577
  if ("changedTouches" in O && O.changedTouches.length > 0)
3578
- Se = O.changedTouches[0].clientX, Pe = O.changedTouches[0].clientY;
3578
+ Se = O.changedTouches[0].clientX, Me = O.changedTouches[0].clientY;
3579
3579
  else if ("clientX" in O)
3580
- Se = O.clientX, Pe = O.clientY;
3580
+ Se = O.clientX, Me = O.clientY;
3581
3581
  else
3582
3582
  return;
3583
3583
  let Ce;
3584
3584
  if (fe && L.current) {
3585
3585
  const W = Hl(L.current);
3586
- Ce = Se >= W.left && Se <= W.right && Pe >= W.top && Pe <= W.bottom;
3586
+ Ce = Se >= W.left && Se <= W.right && Me >= W.top && Me <= W.bottom;
3587
3587
  } else {
3588
3588
  const W = L.current ? $r(L.current) : null;
3589
3589
  if (!W) {
3590
3590
  O.target === O.currentTarget && ge();
3591
3591
  return;
3592
3592
  }
3593
- Ce = Se >= W.x && Se <= W.x + W.width && Pe >= W.y && Pe <= W.y + W.height;
3593
+ Ce = Se >= W.x && Se <= W.x + W.width && Me >= W.y && Me <= W.y + W.height;
3594
3594
  }
3595
- Ce ? _e(L.current, Se, Pe) : ge();
3595
+ Ce ? _e(L.current, Se, Me) : ge();
3596
3596
  }, Fe = (O) => {
3597
3597
  const le = O.target;
3598
3598
  (le.classList.contains(Ke.thumbsWrapper) || le.classList.contains(Ke.thumbsContainer)) && Le(O);
3599
3599
  };
3600
- Me(() => {
3600
+ Pe(() => {
3601
3601
  if (!e) return;
3602
3602
  const O = (le) => {
3603
3603
  var fe, Se;
@@ -3606,44 +3606,44 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3606
3606
  return;
3607
3607
  }
3608
3608
  if (le.key === "ArrowRight") {
3609
- I((Pe) => (Pe + 1) % Math.max(n.length, 1)), (fe = v.current) == null || fe.go("+1");
3609
+ I((Me) => (Me + 1) % Math.max(n.length, 1)), (fe = v.current) == null || fe.go("+1");
3610
3610
  return;
3611
3611
  }
3612
- le.key === "ArrowLeft" && (I((Pe) => (Pe - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (Se = v.current) == null || Se.go("-1"));
3612
+ le.key === "ArrowLeft" && (I((Me) => (Me - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (Se = v.current) == null || Se.go("-1"));
3613
3613
  };
3614
3614
  return window.addEventListener("keydown", O), () => {
3615
3615
  window.removeEventListener("keydown", O);
3616
3616
  };
3617
- }, [e, ge, n.length]), Me(() => {
3617
+ }, [e, ge, n.length]), Pe(() => {
3618
3618
  if (e) {
3619
- if (I(0), S((le) => le + 1), Q.current = !1, E(!1), P(!1), z({}), !te) return;
3619
+ if (I(0), S((le) => le + 1), Q.current = !1, E(!1), M(!1), z({}), !te) return;
3620
3620
  const O = new CustomEvent("page-overlay", { detail: { itemId: te } });
3621
3621
  window.dispatchEvent(O);
3622
3622
  }
3623
3623
  return () => {
3624
- A.current && Y.current && (A.current.removeEventListener("animationend", Y.current), Y.current = null), P(!1);
3624
+ A.current && Y.current && (A.current.removeEventListener("animationend", Y.current), Y.current = null), M(!1);
3625
3625
  };
3626
- }, [e, te]), Me(() => {
3627
- k.current !== null && k.current !== M.type && S((O) => O + 1), k.current = M.type;
3628
- }, [M.type]), Me(() => {
3626
+ }, [e, te]), Pe(() => {
3627
+ k.current !== null && k.current !== P.type && S((O) => O + 1), k.current = P.type;
3628
+ }, [P.type]), Pe(() => {
3629
3629
  if (!e) return;
3630
3630
  const O = document.body.style.overflow, le = window.matchMedia("(max-width: 768px)").matches, fe = Ol(oe.color);
3631
- document.body.style.overflow = "hidden", P(!1);
3631
+ document.body.style.overflow = "hidden", M(!1);
3632
3632
  const Se = (Ce) => {
3633
- Ce.target === A.current && !Q.current && Ce.animationName && (le && !a && fe > 0.9 && (document.body.style.backgroundColor = oe.color), P(!0), A.current && j.current && A.current.removeEventListener("animationend", j.current), j.current = null);
3633
+ Ce.target === A.current && !Q.current && Ce.animationName && (le && !a && fe > 0.9 && (document.body.style.backgroundColor = oe.color), M(!0), A.current && j.current && A.current.removeEventListener("animationend", j.current), j.current = null);
3634
3634
  };
3635
3635
  A.current && (j.current = Se, A.current.addEventListener("animationend", Se));
3636
- const Pe = (Ce) => {
3636
+ const Me = (Ce) => {
3637
3637
  const W = Ce.target;
3638
- W && (W.closest(`.${Ke.thumbsWrapper}`) || W.closest(`.${Ke.thumbsContainer}`)) || M.type !== "slide" && Ce.preventDefault();
3638
+ W && (W.closest(`.${Ke.thumbsWrapper}`) || W.closest(`.${Ke.thumbsContainer}`)) || P.type !== "slide" && Ce.preventDefault();
3639
3639
  };
3640
- return document.addEventListener("touchmove", Pe, { passive: !1 }), () => {
3641
- document.body.style.overflow = O, document.removeEventListener("touchmove", Pe), A.current && j.current && (A.current.removeEventListener("animationend", j.current), j.current = null), P(!1);
3640
+ return document.addEventListener("touchmove", Me, { passive: !1 }), () => {
3641
+ document.body.style.overflow = O, document.removeEventListener("touchmove", Me), A.current && j.current && (A.current.removeEventListener("animationend", j.current), j.current = null), M(!1);
3642
3642
  };
3643
- }, [e, a, oe.color, M.type]), Me(() => {
3643
+ }, [e, a, oe.color, P.type]), Pe(() => {
3644
3644
  if (!e) return;
3645
3645
  const O = (le) => {
3646
- var Se, Pe;
3646
+ var Se, Me;
3647
3647
  if (Q.current) {
3648
3648
  le.stopPropagation();
3649
3649
  return;
@@ -3654,7 +3654,7 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3654
3654
  }
3655
3655
  const fe = le.target;
3656
3656
  if (!(fe && (fe.closest(`.${Ke.thumbsContainer}`) || fe.closest(`.${Ke.thumbItem}`) || fe.closest(`.${Ke.arrow}`) || fe.closest(`.${Ke.closeButton}`) || fe.closest(`.${Ke.caption}`)))) {
3657
- if (M.type === "slide" && ie.type === "drag" && ((Pe = (Se = v.current) == null ? void 0 : Se.splide) != null && Pe.root)) {
3657
+ if (P.type === "slide" && ie.type === "drag" && ((Me = (Se = v.current) == null ? void 0 : Se.splide) != null && Me.root)) {
3658
3658
  const Ce = v.current.splide.root;
3659
3659
  if (fe && (Ce.contains(fe) || Ce === fe))
3660
3660
  return;
@@ -3684,8 +3684,8 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3684
3684
  document.removeEventListener("touchend", O);
3685
3685
  };
3686
3686
  }, [e, ge, h, n]);
3687
- const me = (M.type === "scale" || M.type === "fade") && M.direction === "vert" && ie.type === "drag";
3688
- Me(() => {
3687
+ const me = (P.type === "scale" || P.type === "fade") && P.direction === "vert" && ie.type === "drag";
3688
+ Pe(() => {
3689
3689
  var X, Ae;
3690
3690
  if (!e || !me || !((Ae = (X = v.current) == null ? void 0 : X.splide) != null && Ae.root)) return;
3691
3691
  const O = v.current.splide.root, le = 30, fe = (ue, D) => {
@@ -3695,7 +3695,7 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3695
3695
  }
3696
3696
  }, Se = (ue) => {
3697
3697
  V.current && (ue.preventDefault(), fe(ue.clientX, ue.clientY));
3698
- }, Pe = (ue) => {
3698
+ }, Me = (ue) => {
3699
3699
  V.current && ue.touches.length > 0 && (ue.preventDefault(), fe(ue.touches[0].clientX, ue.touches[0].clientY));
3700
3700
  }, Ce = (ue, D) => {
3701
3701
  if (!V.current || !v.current) {
@@ -3712,15 +3712,15 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3712
3712
  const D = ue.changedTouches[0];
3713
3713
  Ce(D.clientX, D.clientY);
3714
3714
  }
3715
- document.removeEventListener("touchend", he), document.removeEventListener("touchcancel", he), document.removeEventListener("touchmove", Pe);
3715
+ document.removeEventListener("touchend", he), document.removeEventListener("touchcancel", he), document.removeEventListener("touchmove", Me);
3716
3716
  }
3717
3717
  }, re = (ue) => {
3718
3718
  V.current = { x: ue.clientX, y: ue.clientY }, ae.current = !1, document.addEventListener("pointermove", Se, { passive: !1 }), document.addEventListener("pointerup", W), document.addEventListener("pointercancel", W);
3719
3719
  }, N = (ue) => {
3720
- ue.touches.length > 0 && (V.current = { x: ue.touches[0].clientX, y: ue.touches[0].clientY }, ae.current = !1, document.addEventListener("touchmove", Pe, { passive: !1 }), document.addEventListener("touchend", he), document.addEventListener("touchcancel", he));
3720
+ ue.touches.length > 0 && (V.current = { x: ue.touches[0].clientX, y: ue.touches[0].clientY }, ae.current = !1, document.addEventListener("touchmove", Me, { passive: !1 }), document.addEventListener("touchend", he), document.addEventListener("touchcancel", he));
3721
3721
  };
3722
3722
  return O.addEventListener("pointerdown", re), O.addEventListener("touchstart", N), () => {
3723
- O.removeEventListener("pointerdown", re), O.removeEventListener("touchstart", N), document.removeEventListener("pointermove", Se), document.removeEventListener("pointerup", W), document.removeEventListener("pointercancel", W), document.removeEventListener("touchmove", Pe), document.removeEventListener("touchend", he), document.removeEventListener("touchcancel", he), V.current = null, ae.current = !1;
3723
+ O.removeEventListener("pointerdown", re), O.removeEventListener("touchstart", N), document.removeEventListener("pointermove", Se), document.removeEventListener("pointerup", W), document.removeEventListener("pointercancel", W), document.removeEventListener("touchmove", Me), document.removeEventListener("touchend", he), document.removeEventListener("touchcancel", he), V.current = null, ae.current = !1;
3724
3724
  };
3725
3725
  }, [e, me, T]);
3726
3726
  const ye = {
@@ -3762,22 +3762,22 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3762
3762
  className: Ke.lightboxSplide,
3763
3763
  options: {
3764
3764
  arrows: !1,
3765
- speed: M.duration ? parseInt(M.duration) : 500,
3766
- direction: M.direction === "horiz" || M.type === "fade" || M.type === "scale" ? "ltr" : "ttb",
3765
+ speed: P.duration ? parseInt(P.duration) : 500,
3766
+ direction: P.direction === "horiz" || P.type === "fade" || P.type === "scale" ? "ltr" : "ttb",
3767
3767
  pagination: !1,
3768
3768
  // Disable Splide's drag when we need custom vertical drag handling
3769
3769
  drag: ie.type === "drag" && !me,
3770
3770
  perPage: 1,
3771
3771
  width: "100%",
3772
3772
  height: "100%",
3773
- type: M.type === "fade" || M.type === "scale" ? "fade" : "loop",
3773
+ type: P.type === "fade" || P.type === "scale" ? "fade" : "loop",
3774
3774
  padding: 0,
3775
3775
  rewind: ie.repeat !== "close",
3776
3776
  start: 0
3777
3777
  },
3778
- style: { "--splide-speed": M.duration },
3778
+ style: { "--splide-speed": P.duration },
3779
3779
  children: n.map((O, le) => {
3780
- const fe = Xo(be.position, be.offset, a), Se = `${F(be.padding.top, a)} ${F(be.padding.right, a)} ${F(be.padding.bottom, a)} ${F(be.padding.left, a)}`, Pe = M.type === "scale" ? (() => {
3780
+ const fe = Xo(be.position, be.offset, a), Se = `${F(be.padding.top, a)} ${F(be.padding.right, a)} ${F(be.padding.bottom, a)} ${F(be.padding.left, a)}`, Me = P.type === "scale" ? (() => {
3781
3781
  const { transform: Ce, ...W } = fe;
3782
3782
  return {
3783
3783
  ...W,
@@ -3794,11 +3794,11 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3794
3794
  className: yt(Ke.imageStyle, {
3795
3795
  [Ke.contain]: O.image.objectFit === "contain",
3796
3796
  [Ke.cover]: O.image.objectFit === "cover",
3797
- [Ke.scaleSlide]: M.type === "scale"
3797
+ [Ke.scaleSlide]: P.type === "scale"
3798
3798
  }),
3799
3799
  src: O.image.url,
3800
3800
  alt: O.image.name ?? "",
3801
- style: { ...Pe, pointerEvents: O.image.objectFit === "contain" ? "none" : "auto" }
3801
+ style: { ...Me, pointerEvents: O.image.objectFit === "contain" ? "none" : "auto" }
3802
3802
  }
3803
3803
  ) }) }, le);
3804
3804
  })
@@ -3809,13 +3809,13 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3809
3809
  /* @__PURE__ */ l(
3810
3810
  "div",
3811
3811
  {
3812
- className: yt(Ke.arrow, { [Ke.arrowVertical]: M.direction === "vert" }),
3812
+ className: yt(Ke.arrow, { [Ke.arrowVertical]: P.direction === "vert" }),
3813
3813
  style: { color: b.color, "--arrow-hover-color": b.hover },
3814
3814
  children: /* @__PURE__ */ U(
3815
3815
  "button",
3816
3816
  {
3817
3817
  className: Ke.arrowInner,
3818
- style: { transform: `translate(${F(b.offset.x, a)}, ${F(b.offset.y * (M.direction === "horiz" ? 1 : -1), a)}) scale(${b.scale}) rotate(${M.direction === "horiz" ? "0deg" : "90deg"})` },
3818
+ style: { transform: `translate(${F(b.offset.x, a)}, ${F(b.offset.y * (P.direction === "horiz" ? 1 : -1), a)}) scale(${b.scale}) rotate(${P.direction === "horiz" ? "0deg" : "90deg"})` },
3819
3819
  onClick: () => {
3820
3820
  var O;
3821
3821
  return (O = v.current) == null ? void 0 : O.go("-1");
@@ -3840,13 +3840,13 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3840
3840
  /* @__PURE__ */ l(
3841
3841
  "div",
3842
3842
  {
3843
- className: yt(Ke.arrow, Ke.nextArrow, { [Ke.arrowVertical]: M.direction === "vert" }),
3843
+ className: yt(Ke.arrow, Ke.nextArrow, { [Ke.arrowVertical]: P.direction === "vert" }),
3844
3844
  style: { color: b.color, "--arrow-hover-color": b.hover },
3845
3845
  children: /* @__PURE__ */ U(
3846
3846
  "button",
3847
3847
  {
3848
3848
  className: Ke.arrowInner,
3849
- style: { transform: `translate(${F(b.offset.x * (M.direction === "horiz" ? -1 : 1), a)}, ${F(b.offset.y, a)}) scale(${b.scale}) rotate(${M.direction === "horiz" ? "0deg" : "90deg"})` },
3849
+ style: { transform: `translate(${F(b.offset.x * (P.direction === "horiz" ? -1 : 1), a)}, ${F(b.offset.y, a)}) scale(${b.scale}) rotate(${P.direction === "horiz" ? "0deg" : "90deg"})` },
3850
3850
  onClick: () => {
3851
3851
  var O;
3852
3852
  return (O = v.current) == null ? void 0 : O.go("+1");
@@ -3909,8 +3909,8 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3909
3909
  }
3910
3910
  ),
3911
3911
  se.isActive && (() => {
3912
- const [O, le] = se.position.split("-"), fe = M.direction === "horiz" ? `${O}-left` : se.position, Se = Xo(fe, se.offset, a), Pe = () => {
3913
- if (M.direction === "horiz") {
3912
+ const [O, le] = se.position.split("-"), fe = P.direction === "horiz" ? `${O}-left` : se.position, Se = Xo(fe, se.offset, a), Me = () => {
3913
+ if (P.direction === "horiz") {
3914
3914
  if (le === "left") return "flex-start";
3915
3915
  if (le === "center") return "center";
3916
3916
  if (le === "right") return "flex-end";
@@ -3930,7 +3930,7 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3930
3930
  style: {
3931
3931
  position: a ? "absolute" : "fixed",
3932
3932
  ...Se,
3933
- ...M.direction === "horiz" ? {
3933
+ ...P.direction === "horiz" ? {
3934
3934
  maxWidth: "100vw",
3935
3935
  width: "100%",
3936
3936
  overflowX: "auto",
@@ -3945,22 +3945,22 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3945
3945
  "div",
3946
3946
  {
3947
3947
  className: yt(Ke.thumbsContainer, {
3948
- [Ke.thumbsContainerVertical]: M.direction === "vert",
3948
+ [Ke.thumbsContainerVertical]: P.direction === "vert",
3949
3949
  [Ke.thumbsAlignStart]: se.align === "start",
3950
3950
  [Ke.thumbsAlignCenter]: se.align === "center",
3951
3951
  [Ke.thumbsAlignEnd]: se.align === "end"
3952
3952
  }),
3953
3953
  style: {
3954
3954
  gap: F(se.grid.gap, a),
3955
- justifyContent: R ? "flex-start" : Pe()
3955
+ justifyContent: R ? "flex-start" : Me()
3956
3956
  },
3957
3957
  children: n.map((Ce, W) => {
3958
3958
  const he = W === h, re = $[W], X = se.grid.size * (he ? se.activeState.scale : 1), Ae = () => {
3959
3959
  if (se.fit !== "fit") return {};
3960
3960
  if (!re)
3961
- return M.direction === "horiz" ? { height: F(X, a) } : { width: F(X, a) };
3961
+ return P.direction === "horiz" ? { height: F(X, a) } : { width: F(X, a) };
3962
3962
  const ue = re.width / re.height;
3963
- if (M.direction === "horiz") {
3963
+ if (P.direction === "horiz") {
3964
3964
  const D = X, qe = D * ue;
3965
3965
  return {
3966
3966
  width: F(qe, a),
@@ -3979,8 +3979,8 @@ const Cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
3979
3979
  {
3980
3980
  className: Ke.thumbItem,
3981
3981
  style: {
3982
- ...M.direction === "horiz" && se.fit !== "fit" ? { height: F(X, a) } : {},
3983
- ...M.direction === "vert" && se.fit !== "fit" ? { width: F(X, a) } : {},
3982
+ ...P.direction === "horiz" && se.fit !== "fit" ? { height: F(X, a) } : {},
3983
+ ...P.direction === "vert" && se.fit !== "fit" ? { width: F(X, a) } : {},
3984
3984
  ...se.fit === "cover" ? { width: F(X, a), height: F(X, a) } : {},
3985
3985
  ...Ae(),
3986
3986
  transition: he ? "all 0.25s ease-out" : "none",
@@ -5288,7 +5288,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5288
5288
  inputStroke: G,
5289
5289
  inputPadding: E,
5290
5290
  inputColor: B,
5291
- inputTextColor: P,
5291
+ inputTextColor: M,
5292
5292
  inputBorderColor: $,
5293
5293
  placeholderColor: z,
5294
5294
  buttonColor: v,
@@ -5305,7 +5305,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5305
5305
  inputWordSpacing: _,
5306
5306
  inputTextAppearance: ne,
5307
5307
  buttonFontSettings: ie,
5308
- buttonFontSize: M,
5308
+ buttonFontSize: P,
5309
5309
  buttonLineHeight: se,
5310
5310
  buttonLetterSpacing: b,
5311
5311
  buttonWordSpacing: oe,
@@ -5325,7 +5325,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5325
5325
  successMessage: $e,
5326
5326
  errorMessage: O,
5327
5327
  stateOverrides: le
5328
- } = e, fe = d === "B", Se = f.slice(0, Math.min(u, f.length)), Pe = {
5328
+ } = e, fe = d === "B", Se = f.slice(0, Math.min(u, f.length)), Me = {
5329
5329
  fontSettings: {
5330
5330
  fontFamily: j,
5331
5331
  fontWeight: (V == null ? void 0 : V.fontWeight) ?? 400,
@@ -5336,8 +5336,8 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5336
5336
  letterSpacing: R ?? 0,
5337
5337
  wordSpacing: _ ?? 0,
5338
5338
  textAppearance: ne,
5339
- color: P
5340
- }, Ce = pn(Zt(Pe, t)), W = F(G ?? 0, t), he = F(
5339
+ color: M
5340
+ }, Ce = pn(Zt(Me, t)), W = F(G ?? 0, t), he = F(
5341
5341
  (w ?? ae ?? 0.01) + ((E == null ? void 0 : E.top) ?? 0) + ((E == null ? void 0 : E.bottom) ?? 0) + (d === "C" ? G ?? 0 : (G ?? 0) * 2),
5342
5342
  t
5343
5343
  ), re = {
@@ -5362,7 +5362,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5362
5362
  fontWeight: (ie == null ? void 0 : ie.fontWeight) ?? 400,
5363
5363
  fontStyle: (ie == null ? void 0 : ie.fontStyle) ?? "normal"
5364
5364
  },
5365
- fontSize: M ?? 0.01,
5365
+ fontSize: P ?? 0.01,
5366
5366
  lineHeight: se,
5367
5367
  letterSpacing: b ?? 0,
5368
5368
  wordSpacing: oe ?? 0,
@@ -5394,7 +5394,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5394
5394
  color: A
5395
5395
  }, He = pn(Zt(qe, t)), dt = Li(s, {
5396
5396
  inputColor: B,
5397
- inputTextColor: P,
5397
+ inputTextColor: M,
5398
5398
  inputBorderColor: $,
5399
5399
  placeholderColor: z != null && z.trim() ? z : "#cccccc",
5400
5400
  buttonColor: v,
@@ -5403,7 +5403,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5403
5403
  labelTextColor: Q,
5404
5404
  successColor: A,
5405
5405
  errorColor: Y
5406
- }, Mm, Pm, le), [lt, pt] = ee(
5406
+ }, Pm, Mm, le), [lt, pt] = ee(
5407
5407
  () => Object.fromEntries(Se.map((Je) => [Je.name, ""]))
5408
5408
  ), [$t, Xe] = ee("idle"), [xe, ke] = ee(null), Ue = r === "success" ? "success" : r === "error" ? "error" : $t, We = r === "error" ? O : xe, Ie = r === "filled", De = je(() => {
5409
5409
  if (!Ie) return lt;
@@ -5563,7 +5563,7 @@ function Rm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
5563
5563
  )
5564
5564
  ] });
5565
5565
  }
5566
- const Mm = {
5566
+ const Pm = {
5567
5567
  inputColor: "input-color",
5568
5568
  inputTextColor: "input-text-color",
5569
5569
  inputBorderColor: "input-border-color",
@@ -5574,7 +5574,7 @@ const Mm = {
5574
5574
  labelTextColor: "label-text-color",
5575
5575
  successColor: "success-color",
5576
5576
  errorColor: "error-color"
5577
- }, Pm = ["hover", "focus", "filled", "success", "error"], Em = `import React, { useMemo, useState } from 'react';
5577
+ }, Mm = ["hover", "focus", "filled", "success", "error"], Em = `import React, { useMemo, useState } from 'react';
5578
5578
  import { CommonComponentProps } from '../props';
5579
5579
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
5580
5580
  import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
@@ -7092,7 +7092,7 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7092
7092
  buttonLineHeight: G,
7093
7093
  buttonLetterSpacing: E,
7094
7094
  buttonWordSpacing: B,
7095
- buttonTextAppearance: P,
7095
+ buttonTextAppearance: M,
7096
7096
  statusFontSettings: $,
7097
7097
  statusFontSize: z,
7098
7098
  statusLineHeight: v,
@@ -7108,15 +7108,15 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7108
7108
  buttonPadding: R,
7109
7109
  successMessage: _ = "Thanks for subscribing!",
7110
7110
  errorMessage: ne = "Please, fill all required fields."
7111
- } = e, ie = c.slice(0, Math.min(u, c.length)), [M, se] = ee(
7111
+ } = e, ie = c.slice(0, Math.min(u, c.length)), [P, se] = ee(
7112
7112
  () => Object.fromEntries(ie.map((ue) => [ue.name, ""]))
7113
7113
  ), [b, oe] = ee("idle"), [Z, be] = ee(null), Ee = o === "success" ? "success" : o === "error" ? "error" : b, pe = o === "error" ? ne : Z, de = o === "filled", K = je(() => {
7114
- if (!de) return M;
7114
+ if (!de) return P;
7115
7115
  let ue = null;
7116
7116
  for (const D of ie)
7117
- (M[D.name] ?? "").trim().length > 0 || (ue = ue ?? { ...M }, ue[D.name] = "Filled");
7118
- return ue ?? M;
7119
- }, [de, M, ie]), te = Ee === "error" ? yr(ie, K) : null, ge = o && o !== "default" ? `${r}-state-${o}` : "", _e = ie.some((ue) => (K[ue.name] ?? "").trim().length > 0), Le = ge !== `${r}-state-filled` && _e ? `${r}-state-filled` : "", Fe = `${ge} ${Le}`.trim(), me = i == null ? void 0 : i.submitUrl, ye = d ?? "", $e = (s == null ? void 0 : s.icon) ?? "", O = (s == null ? void 0 : s.mode) === "On", le = ye || "Submit", fe = {
7117
+ (P[D.name] ?? "").trim().length > 0 || (ue = ue ?? { ...P }, ue[D.name] = "Filled");
7118
+ return ue ?? P;
7119
+ }, [de, P, ie]), te = Ee === "error" ? yr(ie, K) : null, ge = o && o !== "default" ? `${r}-state-${o}` : "", _e = ie.some((ue) => (K[ue.name] ?? "").trim().length > 0), Le = ge !== `${r}-state-filled` && _e ? `${r}-state-filled` : "", Fe = `${ge} ${Le}`.trim(), me = i == null ? void 0 : i.submitUrl, ye = d ?? "", $e = (s == null ? void 0 : s.icon) ?? "", O = (s == null ? void 0 : s.mode) === "On", le = ye || "Submit", fe = {
7120
7120
  fontSettings: {
7121
7121
  fontFamily: f,
7122
7122
  fontWeight: (y == null ? void 0 : y.fontWeight) ?? 400,
@@ -7138,9 +7138,9 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7138
7138
  lineHeight: G,
7139
7139
  letterSpacing: E ?? 0,
7140
7140
  wordSpacing: B ?? 0,
7141
- textAppearance: P,
7141
+ textAppearance: M,
7142
7142
  color: e.buttonTextColor ?? "#ffffff"
7143
- }, Pe = {
7143
+ }, Me = {
7144
7144
  fontSettings: {
7145
7145
  fontFamily: f,
7146
7146
  fontWeight: ($ == null ? void 0 : $.fontWeight) ?? 400,
@@ -7152,7 +7152,7 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7152
7152
  wordSpacing: L ?? 0,
7153
7153
  textAppearance: Q,
7154
7154
  color: e.successColor ?? "#22c55e"
7155
- }, Ce = pn(Zt(fe, t)), W = pn(Zt(Se, t)), he = pn(Zt(Pe, t)), re = Li(r, {
7155
+ }, Ce = pn(Zt(fe, t)), W = pn(Zt(Se, t)), he = pn(Zt(Me, t)), re = Li(r, {
7156
7156
  strokeColor: e.strokeColor,
7157
7157
  inputColor: e.inputColor,
7158
7158
  placeholderColor: e.placeholderColor,
@@ -7170,7 +7170,7 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7170
7170
  const D = Object.fromEntries(
7171
7171
  ie.map((He) => {
7172
7172
  var dt;
7173
- return [He.name, ((dt = M[He.name]) == null ? void 0 : dt.trim()) ?? ""];
7173
+ return [He.name, ((dt = P[He.name]) == null ? void 0 : dt.trim()) ?? ""];
7174
7174
  }).filter(([, He]) => He)
7175
7175
  );
7176
7176
  if (!me) {
@@ -7178,7 +7178,7 @@ const Nm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
7178
7178
  return;
7179
7179
  }
7180
7180
  if (Object.keys(D).length === 0) return;
7181
- const qe = yr(ie, M);
7181
+ const qe = yr(ie, P);
7182
7182
  if (qe) {
7183
7183
  oe("error"), be(qe);
7184
7184
  return;
@@ -8559,7 +8559,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8559
8559
  display: (typeof (e == null ? void 0 : e.display) == "string" ? e.display.toLowerCase() : "") === "cover" ? "cover" : "fit",
8560
8560
  ratioValue: (e == null ? void 0 : e.ratioValue) ?? "16:9",
8561
8561
  reversed: (e == null ? void 0 : e.reversed) ?? !1
8562
- }, Pc = (e) => e.reduce(
8562
+ }, Mc = (e) => e.reduce(
8563
8563
  (t, n) => t + (n.offsetWidth || n.getBoundingClientRect().width),
8564
8564
  0
8565
8565
  ), zl = (e, t) => {
@@ -8568,14 +8568,14 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8568
8568
  if (!n || !i) return 0;
8569
8569
  const o = getComputedStyle(e), r = Number.parseFloat(o.columnGap || o.gap || "0") || 0, a = i.getBoundingClientRect().right - n.getBoundingClientRect().left;
8570
8570
  if (a > 0) return a;
8571
- const c = Array.from({ length: t }, (d, u) => e.children[u]), s = Pc(c);
8571
+ const c = Array.from({ length: t }, (d, u) => e.children[u]), s = Mc(c);
8572
8572
  return s <= 0 ? 0 : s + r * Math.max(0, t - 1);
8573
8573
  }, tg = (e) => {
8574
8574
  const t = e.getBoundingClientRect().width;
8575
8575
  if (t > 0) return t;
8576
8576
  const n = e.offsetWidth;
8577
8577
  if (n > 0) return n;
8578
- const i = Pc(Array.from(e.children));
8578
+ const i = Mc(Array.from(e.children));
8579
8579
  if (i <= 0) return 0;
8580
8580
  const o = getComputedStyle(e), r = Number.parseFloat(o.columnGap || o.gap || "0") || 0, a = Number.parseFloat(o.paddingRight) || 0;
8581
8581
  return i + r * Math.max(0, e.children.length - 1) + a;
@@ -8607,7 +8607,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8607
8607
  Ot(() => {
8608
8608
  c && rg(u.current) && (d == null || d());
8609
8609
  }, [c, (Q = e.image) == null ? void 0 : Q.url, d]);
8610
- const y = n.display === "cover", C = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [m, h] = C.split(":").map(Number), S = (g ? h : m) / (g ? m : h), G = i / S, E = G > o ? o : G, B = G > o ? o * S : i, P = s(B), $ = s(E), z = {
8610
+ const y = n.display === "cover", C = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [m, h] = C.split(":").map(Number), S = (g ? h : m) / (g ? m : h), G = i / S, E = G > o ? o : G, B = G > o ? o * S : i, M = s(B), $ = s(E), z = {
8611
8611
  borderRadius: s(r)
8612
8612
  }, v = y ? {
8613
8613
  pointerEvents: "auto",
@@ -8661,7 +8661,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8661
8661
  display: "flex",
8662
8662
  flexDirection: "column",
8663
8663
  alignItems: "start",
8664
- ...y ? { width: P } : { width: "max-content", maxWidth: s(i), minWidth: 0 }
8664
+ ...y ? { width: M } : { width: "max-content", maxWidth: s(i), minWidth: 0 }
8665
8665
  },
8666
8666
  children: /* @__PURE__ */ l(
8667
8667
  "div",
@@ -8674,7 +8674,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8674
8674
  alignItems: "center",
8675
8675
  flexShrink: 0,
8676
8676
  ...y ? {
8677
- width: P,
8677
+ width: M,
8678
8678
  height: $,
8679
8679
  overflow: "hidden",
8680
8680
  ...z
@@ -8699,15 +8699,15 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8699
8699
  imageMaxHeight: m,
8700
8700
  hoverEffect: h,
8701
8701
  cornerRadius: I = 0
8702
- } = e, T = je(() => eg(e.imageFit), [e.imageFit]), S = (t == null ? void 0 : t.length) ?? 0, G = !!o, E = !n || !!i, B = E && h !== "off" && h !== "randomize" ? `${r}-image-hover-${h}` : void 0, P = n ? !!i : !0, z = ((t == null ? void 0 : t.length) ?? 0) > 0 && (P || !!n), v = Math.max(0, u) * qm, k = (Le) => F(Le, n ?? !1), L = q(null), Q = q(null), A = q(null), [Y, j] = ee(0), V = P && y === "on", [ae, w] = ee(!1), [R, _] = ee({}), ne = q(R);
8702
+ } = e, T = je(() => eg(e.imageFit), [e.imageFit]), S = (t == null ? void 0 : t.length) ?? 0, G = !!o, E = !n || !!i, B = E && h !== "off" && h !== "randomize" ? `${r}-image-hover-${h}` : void 0, M = n ? !!i : !0, z = ((t == null ? void 0 : t.length) ?? 0) > 0 && (M || !!n), v = Math.max(0, u) * qm, k = (Le) => F(Le, n ?? !1), L = q(null), Q = q(null), A = q(null), [Y, j] = ee(0), V = M && y === "on", [ae, w] = ee(!1), [R, _] = ee({}), ne = q(R);
8703
8703
  ne.current = R;
8704
- const ie = q(null), M = q(0), se = q(null), b = je(() => (t ?? []).map((Le) => {
8704
+ const ie = q(null), P = q(0), se = q(null), b = je(() => (t ?? []).map((Le) => {
8705
8705
  var Fe;
8706
8706
  return ((Fe = Le.image) == null ? void 0 : Fe.url) ?? "";
8707
8707
  }).join("\0"), [t]), [oe, Z] = ee(ta), be = je(() => {
8708
8708
  const Le = t ?? [];
8709
- return Le.length === 0 || !(P || !!n) ? Le : Qm(Le, oe);
8710
- }, [t, P, oe, n]), Ee = je(
8709
+ return Le.length === 0 || !(M || !!n) ? Le : Qm(Le, oe);
8710
+ }, [t, M, oe, n]), Ee = je(
8711
8711
  () => (t ?? []).filter((Le) => {
8712
8712
  var Fe;
8713
8713
  return !!((Fe = Le.image) != null && Fe.url);
@@ -8715,27 +8715,27 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8715
8715
  [t]
8716
8716
  ), pe = z ? Zm : 1;
8717
8717
  Ot(() => {
8718
- M.current = 0, _({}), ie.current = null, Z(ta), c(0);
8719
- }, [b]), Me(() => {
8718
+ P.current = 0, _({}), ie.current = null, Z(ta), c(0);
8719
+ }, [b]), Pe(() => {
8720
8720
  if (!E || h !== "randomize") return;
8721
8721
  const Le = L.current;
8722
8722
  if (!Le) return;
8723
8723
  const Fe = (O) => {
8724
8724
  _((le) => {
8725
8725
  const fe = Array.from(O).filter(
8726
- (Pe) => Pe in le && !ig(Le, Pe)
8726
+ (Me) => Me in le && !ig(Le, Me)
8727
8727
  );
8728
8728
  if (fe.length === 0) return le;
8729
8729
  const Se = { ...le };
8730
- return fe.forEach((Pe) => {
8731
- delete Se[Pe];
8730
+ return fe.forEach((Me) => {
8731
+ delete Se[Me];
8732
8732
  }), Se;
8733
8733
  });
8734
8734
  }, me = new IntersectionObserver((O) => {
8735
8735
  const le = /* @__PURE__ */ new Set();
8736
8736
  for (const fe of O) {
8737
- const Se = fe.target.dataset.marqueeItemIndex, Pe = Se !== void 0 ? Number(Se) : NaN;
8738
- Number.isNaN(Pe) || le.add(Pe);
8737
+ const Se = fe.target.dataset.marqueeItemIndex, Me = Se !== void 0 ? Number(Se) : NaN;
8738
+ Number.isNaN(Me) || le.add(Me);
8739
8739
  }
8740
8740
  le.size > 0 && Fe(le);
8741
8741
  }, { root: Le, threshold: 0 });
@@ -8755,10 +8755,10 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8755
8755
  const Le = L.current, Fe = A.current;
8756
8756
  if (!Le || !Fe) return;
8757
8757
  const me = { current: 0 }, ye = () => {
8758
- const le = Le.getBoundingClientRect().width || Le.offsetWidth, fe = tg(Fe), Se = ie.current, Pe = typeof Se == "number" && Math.abs(Se - fe) <= 0.25;
8758
+ const le = Le.getBoundingClientRect().width || Le.offsetWidth, fe = tg(Fe), Se = ie.current, Me = typeof Se == "number" && Math.abs(Se - fe) <= 0.25;
8759
8759
  ie.current = fe;
8760
8760
  let Ce = oe, W = 0;
8761
- if ((P || n) && S > 0 && le > 0) {
8761
+ if ((M || n) && S > 0 && le > 0) {
8762
8762
  const N = zl(Fe, S);
8763
8763
  if (N >= Ym) {
8764
8764
  W = N;
@@ -8776,7 +8776,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8776
8776
  const N = zl(Fe, S);
8777
8777
  return N > 0 ? N * Ce : 0;
8778
8778
  })();
8779
- re > 0 ? c((N) => N <= 0 ? re : !Pe || Math.round(N) === Math.round(re) ? N : re) : !Pe && a <= 0 && (cancelAnimationFrame(me.current), me.current = requestAnimationFrame(ye));
8779
+ re > 0 ? c((N) => N <= 0 ? re : !Me || Math.round(N) === Math.round(re) ? N : re) : !Me && a <= 0 && (cancelAnimationFrame(me.current), me.current = requestAnimationFrame(ye));
8780
8780
  }, $e = () => {
8781
8781
  cancelAnimationFrame(me.current), me.current = requestAnimationFrame(ye);
8782
8782
  };
@@ -8785,7 +8785,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8785
8785
  return O.observe(Le), O.observe(Fe), () => {
8786
8786
  se.current = null, cancelAnimationFrame(me.current), O.disconnect();
8787
8787
  };
8788
- }, [P, z, a, b, oe, S, n]), Ot(() => {
8788
+ }, [M, z, a, b, oe, S, n]), Ot(() => {
8789
8789
  if (!z || s <= 0) return;
8790
8790
  const Le = Q.current;
8791
8791
  Le && Jm(Le);
@@ -8819,9 +8819,9 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8819
8819
  V && w(!1);
8820
8820
  }, te = ve(() => {
8821
8821
  var Le;
8822
- M.current = Math.min(
8822
+ P.current = Math.min(
8823
8823
  Ee,
8824
- M.current + 1
8824
+ P.current + 1
8825
8825
  ), (Le = se.current) == null || Le.call(se);
8826
8826
  }, [Ee]), ge = ve((Le, Fe) => {
8827
8827
  _((me) => {
@@ -8876,7 +8876,7 @@ const qm = 30, Km = 20, ta = 3, Xm = 12, Ym = 32, Zm = 3, Jm = (e) => {
8876
8876
  );
8877
8877
  };
8878
8878
  if (z) {
8879
- const Le = P ? V && ae ? "paused" : "running" : "paused", Fe = s > 0 && v > 0 ? s / v * 1e3 : 0, me = `${Math.max(0, Fe) / 1e3}s`;
8879
+ const Le = M ? V && ae ? "paused" : "running" : "paused", Fe = s > 0 && v > 0 ? s / v * 1e3 : 0, me = `${Math.max(0, Fe) / 1e3}s`;
8880
8880
  return /* @__PURE__ */ U(
8881
8881
  "div",
8882
8882
  {
@@ -10090,7 +10090,7 @@ function ug(e, t) {
10090
10090
  const pg = 30, Bl = 2, mg = (e) => {
10091
10091
  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");
10092
10092
  }, gg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
10093
- const { prefix: r } = un(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: f, corners: y, stroke: C, strokeColor: g, bgColor: m, padding: h, logoMarginTop: I, logoWidth: T, logoHeight: S, captionMarginTop: G } = e, E = !!o, B = ((t == null ? void 0 : t.length) ?? 0) > 0, P = c > 0 && (!n || i), $ = B && (P || n), z = Math.max(0, c) * pg, v = (W) => F(W, n ?? !1), k = q(null), L = q(null), Q = q(null), [A, Y] = ee(0), [j, V] = ee(0), ae = j > 0 ? j : 0, w = je(() => ug(r, ae), [r, ae]), [R, _] = ee(0), ne = P && d === "on", [ie, M] = ee(!1), se = q(null), [b, oe] = ee(0), [Z, be] = ee(0), Ee = q(null), pe = (W) => {
10093
+ const { prefix: r } = un(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: f, corners: y, stroke: C, strokeColor: g, bgColor: m, padding: h, logoMarginTop: I, logoWidth: T, logoHeight: S, captionMarginTop: G } = e, E = !!o, B = ((t == null ? void 0 : t.length) ?? 0) > 0, M = c > 0 && (!n || i), $ = B && (M || n), z = Math.max(0, c) * pg, v = (W) => F(W, n ?? !1), k = q(null), L = q(null), Q = q(null), [A, Y] = ee(0), [j, V] = ee(0), ae = j > 0 ? j : 0, w = je(() => ug(r, ae), [r, ae]), [R, _] = ee(0), ne = M && d === "on", [ie, P] = ee(!1), se = q(null), [b, oe] = ee(0), [Z, be] = ee(0), Ee = q(null), pe = (W) => {
10094
10094
  var re, N, X, Ae, ue;
10095
10095
  return {
10096
10096
  fontSettings: {
@@ -10136,7 +10136,7 @@ const pg = 30, Bl = 2, mg = (e) => {
10136
10136
  return Ae.observe(W), Ae.observe(he), () => {
10137
10137
  cancelAnimationFrame(re), Ae.disconnect();
10138
10138
  };
10139
- }, [P, $, j]);
10139
+ }, [M, $, j]);
10140
10140
  const _e = ae > 0 && z > 0 ? ae / z * 1e3 : 0, Le = `${Math.max(0, _e) / 1e3}s`;
10141
10141
  Ot(() => {
10142
10142
  if (!$ || ae <= 0) return;
@@ -10164,9 +10164,9 @@ const pg = 30, Bl = 2, mg = (e) => {
10164
10164
  };
10165
10165
  }, [$, ge, t, n, u, f, h, C, y, T, S, b, Z]);
10166
10166
  const Fe = () => {
10167
- ne && M(!0);
10167
+ ne && P(!0);
10168
10168
  }, me = () => {
10169
- ne && M(!1);
10169
+ ne && P(!1);
10170
10170
  }, ye = je(() => {
10171
10171
  switch (a) {
10172
10172
  case "center":
@@ -10339,7 +10339,7 @@ const pg = 30, Bl = 2, mg = (e) => {
10339
10339
  re.disconnect();
10340
10340
  };
10341
10341
  }, [te, fe, t, le]);
10342
- const Se = te ? { textMinHeightPx: b, captionMinHeightPx: Z } : void 0, Pe = te ? /* @__PURE__ */ l(
10342
+ const Se = te ? { textMinHeightPx: b, captionMinHeightPx: Z } : void 0, Me = te ? /* @__PURE__ */ l(
10343
10343
  "div",
10344
10344
  {
10345
10345
  ref: se,
@@ -10390,7 +10390,7 @@ const pg = 30, Bl = 2, mg = (e) => {
10390
10390
  he
10391
10391
  );
10392
10392
  if ($) {
10393
- const W = P ? ne && ie ? "paused" : "running" : "paused";
10393
+ const W = M ? ne && ie ? "paused" : "running" : "paused";
10394
10394
  return /* @__PURE__ */ U(
10395
10395
  "div",
10396
10396
  {
@@ -10404,7 +10404,7 @@ const pg = 30, Bl = 2, mg = (e) => {
10404
10404
  },
10405
10405
  children: [
10406
10406
  /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: w } }),
10407
- Pe,
10407
+ Me,
10408
10408
  /* @__PURE__ */ l(
10409
10409
  "div",
10410
10410
  {
@@ -10456,7 +10456,7 @@ const pg = 30, Bl = 2, mg = (e) => {
10456
10456
  }
10457
10457
  return /* @__PURE__ */ U("div", { className: `${r}-wrapper`, children: [
10458
10458
  /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: w } }),
10459
- Pe,
10459
+ Me,
10460
10460
  /* @__PURE__ */ l(
10461
10461
  "div",
10462
10462
  {
@@ -11737,7 +11737,7 @@ function vg(e) {
11737
11737
  `;
11738
11738
  }
11739
11739
  const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
11740
- const { prefix: r } = un(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: f, captionMarginTop: y, imageWidth: C, imageHeight: g, controlsWidth: m, controlsColor: h, controlsHoverColor: I } = e, T = c > 0 && (!n || !!i), [S, G] = ee(0), [E, B] = ee(null), [P, $] = ee(!1), z = q(null), v = je(() => {
11740
+ const { prefix: r } = un(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: f, captionMarginTop: y, imageWidth: C, imageHeight: g, controlsWidth: m, controlsColor: h, controlsHoverColor: I } = e, T = c > 0 && (!n || !!i), [S, G] = ee(0), [E, B] = ee(null), [M, $] = ee(!1), z = q(null), v = je(() => {
11741
11741
  switch (s) {
11742
11742
  case "center":
11743
11743
  return "center";
@@ -11758,7 +11758,7 @@ const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
11758
11758
  return "left";
11759
11759
  }
11760
11760
  }, [s]);
11761
- Me(() => {
11761
+ Pe(() => {
11762
11762
  G(0), B(null), $(!1);
11763
11763
  }, [a.length]);
11764
11764
  const L = a[S], Q = E === null ? null : a[E], A = (pe) => {
@@ -11783,22 +11783,22 @@ const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
11783
11783
  }, Y = A("text"), j = A("caption"), V = a.length > 1 && a.some((pe) => {
11784
11784
  var de, K;
11785
11785
  return (((de = pe.text) == null ? void 0 : de.length) ?? 0) > 0 || (((K = pe.caption) == null ? void 0 : K.length) ?? 0) > 0;
11786
- }), ae = q(null), [w, R] = ee(0), [_, ne] = ee(0), ie = e.controls ?? { mode: "Off", icon: null }, M = a.length > 1, se = ve((pe, de) => !M || de === pe ? pe : (z.current && window.clearTimeout(z.current), B(pe), $(!0), z.current = window.setTimeout(() => {
11786
+ }), ae = q(null), [w, R] = ee(0), [_, ne] = ee(0), ie = e.controls ?? { mode: "Off", icon: null }, P = a.length > 1, se = ve((pe, de) => !P || de === pe ? pe : (z.current && window.clearTimeout(z.current), B(pe), $(!0), z.current = window.setTimeout(() => {
11787
11787
  B(null), $(!1), z.current = null;
11788
- }, 300), de), [M]), b = ve(() => {
11789
- M && G((pe) => se(pe, (pe - 1 + a.length) % a.length));
11790
- }, [M, se, a.length]), oe = ve(() => {
11791
- M && G((pe) => se(pe, (pe + 1) % a.length));
11792
- }, [M, se, a.length]);
11793
- Me(() => {
11794
- if (!T || !M) return;
11788
+ }, 300), de), [P]), b = ve(() => {
11789
+ P && G((pe) => se(pe, (pe - 1 + a.length) % a.length));
11790
+ }, [P, se, a.length]), oe = ve(() => {
11791
+ P && G((pe) => se(pe, (pe + 1) % a.length));
11792
+ }, [P, se, a.length]);
11793
+ Pe(() => {
11794
+ if (!T || !P) return;
11795
11795
  const pe = Math.max(300, bg / c), de = window.setInterval(() => {
11796
11796
  G((K) => se(K, (K + 1) % a.length));
11797
11797
  }, pe);
11798
11798
  return () => {
11799
11799
  window.clearInterval(de);
11800
11800
  };
11801
- }, [T, M, se, a.length, c]), Me(() => () => {
11801
+ }, [T, P, se, a.length, c]), Pe(() => () => {
11802
11802
  z.current && window.clearTimeout(z.current);
11803
11803
  }, []);
11804
11804
  const Z = (pe, de) => {
@@ -11918,8 +11918,8 @@ const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
11918
11918
  }
11919
11919
  ),
11920
11920
  /* @__PURE__ */ U("div", { className: `${r}-fade-stack`, children: [
11921
- Q && P && /* @__PURE__ */ l("div", { className: yt(`${r}-fade-item-prev`, `${r}-fade-out`), children: Z(Q, { ...Ee, hideControls: !0 }) }),
11922
- /* @__PURE__ */ l("div", { className: yt(`${r}-fade-item-current`, P ? `${r}-fade-in` : void 0), children: Z(L, Ee) })
11921
+ Q && M && /* @__PURE__ */ l("div", { className: yt(`${r}-fade-item-prev`, `${r}-fade-out`), children: Z(Q, { ...Ee, hideControls: !0 }) }),
11922
+ /* @__PURE__ */ l("div", { className: yt(`${r}-fade-item-current`, M ? `${r}-fade-in` : void 0), children: Z(L, Ee) })
11923
11923
  ] })
11924
11924
  ]
11925
11925
  }
@@ -11940,7 +11940,7 @@ const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
11940
11940
  type: "button",
11941
11941
  className: `${r}-arrow-inner`,
11942
11942
  onClick: b,
11943
- disabled: !M,
11943
+ disabled: !P,
11944
11944
  "aria-label": "Previous testimonial",
11945
11945
  children: ie.icon && /* @__PURE__ */ l(
11946
11946
  mn,
@@ -11970,7 +11970,7 @@ const bg = 3e3, xg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
11970
11970
  type: "button",
11971
11971
  className: `${r}-arrow-inner`,
11972
11972
  onClick: oe,
11973
- disabled: !M,
11973
+ disabled: !P,
11974
11974
  "aria-label": "Next testimonial",
11975
11975
  children: ie.icon && /* @__PURE__ */ l(
11976
11976
  mn,
@@ -13327,7 +13327,7 @@ function Rg(e) {
13327
13327
  const t = e.Components.Autoplay;
13328
13328
  t && (t.pause(!1), t.play());
13329
13329
  }
13330
- function Mg(e) {
13330
+ function Pg(e) {
13331
13331
  const t = Ig();
13332
13332
  e.options.direction !== t && (e.options = { ...e.options, direction: t }), requestAnimationFrame(() => {
13333
13333
  requestAnimationFrame(() => {
@@ -13335,7 +13335,7 @@ function Mg(e) {
13335
13335
  });
13336
13336
  });
13337
13337
  }
13338
- const Ln = 500, Pg = 750, Gn = "cubic-bezier(0.22, 1, 0.36, 1)", Eg = 72, Ag = 50;
13338
+ const Ln = 500, Mg = 750, Gn = "cubic-bezier(0.22, 1, 0.36, 1)", Eg = 72, Ag = 50;
13339
13339
  function kg(e) {
13340
13340
  if (!Array.isArray(e) || e.length === 0) return !1;
13341
13341
  const t = e[0];
@@ -13471,7 +13471,7 @@ function Dg({
13471
13471
  onClick: r,
13472
13472
  onMouseMove: a
13473
13473
  }) {
13474
- return Me(() => {
13474
+ return Pe(() => {
13475
13475
  const c = n.current;
13476
13476
  if (c)
13477
13477
  return () => {
@@ -13493,14 +13493,14 @@ function Dg({
13493
13493
  );
13494
13494
  }
13495
13495
  function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: c, counterClassName: s, counterStyle: d }) {
13496
- const u = i === "cover", f = q(null), y = q(null), C = q(null), g = q(null), m = q(0), h = q(0), I = q("none"), T = q(!1), S = q(!1), G = q(null), E = q(0), B = q(null), P = q(!1), $ = q(null), z = q(null), v = q(null), k = q(() => {
13497
- }), [L, Q] = ee(null), [A, Y] = ee(null), [j, V] = ee("opening"), [ae, w] = ee(0), [R, _] = ee(0), [ne, ie] = ee(null), [M, se] = ee(!1), [b, oe] = ee(!1), [Z, be] = ee(!1), [Ee, pe] = ee(null), de = q(n), K = q(void 0), te = t[n], ge = te ? Si(te) : !1, _e = R !== 0 || M, Le = ne !== null, Fe = ve((Ie) => {
13496
+ const u = i === "cover", f = q(null), y = q(null), C = q(null), g = q(null), m = q(0), h = q(0), I = q("none"), T = q(!1), S = q(!1), G = q(null), E = q(0), B = q(null), M = q(!1), $ = q(null), z = q(null), v = q(null), k = q(() => {
13497
+ }), [L, Q] = ee(null), [A, Y] = ee(null), [j, V] = ee("opening"), [ae, w] = ee(0), [R, _] = ee(0), [ne, ie] = ee(null), [P, se] = ee(!1), [b, oe] = ee(!1), [Z, be] = ee(!1), [Ee, pe] = ee(null), de = q(n), K = q(void 0), te = t[n], ge = te ? Si(te) : !1, _e = R !== 0 || P, Le = ne !== null, Fe = ve((Ie) => {
13498
13498
  const De = Ie.currentTarget, Ge = De instanceof HTMLVideoElement ? { width: De.videoWidth, height: De.videoHeight } : { width: De.naturalWidth, height: De.naturalHeight };
13499
13499
  !Ge.width || !Ge.height || pe(Ge);
13500
13500
  }, []);
13501
- Me(() => {
13501
+ Pe(() => {
13502
13502
  G.current = A;
13503
- }, [A]), Me(() => {
13503
+ }, [A]), Pe(() => {
13504
13504
  const Ie = f.current;
13505
13505
  if (!Ie) return;
13506
13506
  const De = () => Y(ql(Ie));
@@ -13512,9 +13512,9 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13512
13512
  $.current !== null && (window.clearTimeout($.current), $.current = null);
13513
13513
  }, []), ye = ve(() => {
13514
13514
  const Ie = z.current;
13515
- z.current = null, me(), B.current = null, P.current = !1, ie(null), se(!1), _(0), E.current = 0, oe(!1), T.current = !1, h.current = 0, I.current = "none", Ie === 1 ? c() : Ie === -1 && a();
13515
+ z.current = null, me(), B.current = null, M.current = !1, ie(null), se(!1), _(0), E.current = 0, oe(!1), T.current = !1, h.current = 0, I.current = "none", Ie === 1 ? c() : Ie === -1 && a();
13516
13516
  }, [me, c, a]), $e = ve(() => {
13517
- me(), z.current = null, B.current = null, P.current = !1, ie(null), se(!1), _(0), E.current = 0;
13517
+ me(), z.current = null, B.current = null, M.current = !1, ie(null), se(!1), _(0), E.current = 0;
13518
13518
  }, [me]), O = ve(() => {
13519
13519
  me(), $.current = window.setTimeout(() => {
13520
13520
  z.current !== null && ye();
@@ -13522,7 +13522,7 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13522
13522
  }, [me, ye]), le = ve((Ie, De) => {
13523
13523
  var st;
13524
13524
  const Ge = ((st = G.current) == null ? void 0 : st.width) ?? 0;
13525
- if (me(), B.current = Ie, ie(Ie), P.current = !0, se(!0), De) {
13525
+ if (me(), B.current = Ie, ie(Ie), M.current = !0, se(!0), De) {
13526
13526
  z.current = Ie;
13527
13527
  const vt = -Ie * Ge;
13528
13528
  E.current = vt, _(vt), O();
@@ -13533,14 +13533,14 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13533
13533
  }, Ln + 32);
13534
13534
  }, [me, $e, O]), fe = ve((Ie) => {
13535
13535
  if (!(t.length <= 1)) {
13536
- if (P.current) {
13536
+ if (M.current) {
13537
13537
  if (z.current === Ie) {
13538
13538
  v.current = Ie, ye();
13539
13539
  return;
13540
13540
  }
13541
13541
  $e();
13542
13542
  }
13543
- me(), B.current = Ie, ie(Ie), P.current = !1, se(!1), E.current = 0, _(0), requestAnimationFrame(() => {
13543
+ me(), B.current = Ie, ie(Ie), M.current = !1, se(!1), E.current = 0, _(0), requestAnimationFrame(() => {
13544
13544
  requestAnimationFrame(() => {
13545
13545
  le(Ie, !0);
13546
13546
  });
@@ -13549,35 +13549,35 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13549
13549
  }, [t.length, le, ye, $e, me]);
13550
13550
  k.current = fe;
13551
13551
  const Se = ve((Ie) => {
13552
- Ie.propertyName !== "transform" || !P.current || z.current !== null && ye();
13553
- }, [ye]), Pe = ve(() => {
13552
+ Ie.propertyName !== "transform" || !M.current || z.current !== null && ye();
13553
+ }, [ye]), Me = ve(() => {
13554
13554
  const Ie = y.current;
13555
13555
  if (!Ie) return;
13556
13556
  const De = ql(Ie);
13557
13557
  !De.width || !De.height || Q(De);
13558
13558
  }, []);
13559
- Me(() => {
13560
- Pe();
13559
+ Pe(() => {
13560
+ Me();
13561
13561
  const Ie = y.current;
13562
13562
  if (!Ie) return;
13563
- const De = new ResizeObserver(() => Pe());
13563
+ const De = new ResizeObserver(() => Me());
13564
13564
  return De.observe(Ie), () => De.disconnect();
13565
- }, [Pe]), Me(() => {
13565
+ }, [Me]), Pe(() => {
13566
13566
  j === "opening" && L && V("open");
13567
- }, [j, L]), Me(() => {
13567
+ }, [j, L]), Pe(() => {
13568
13568
  if (j !== "closing") return;
13569
13569
  const Ie = setTimeout(() => r(), Ln);
13570
13570
  return () => clearTimeout(Ie);
13571
- }, [j, r]), Me(() => () => {
13571
+ }, [j, r]), Pe(() => () => {
13572
13572
  me();
13573
13573
  }, [me]), Ot(() => {
13574
- de.current === n && K.current === (te == null ? void 0 : te.url) || (me(), z.current = null, ie(null), w(0), _(0), se(!1), be(!1), oe(!1), pe(null), m.current = 0, h.current = 0, I.current = "none", T.current = !1, P.current = !1, E.current = 0, B.current = null, g.current = null, S.current = !1, de.current = n, K.current = te == null ? void 0 : te.url);
13574
+ de.current === n && K.current === (te == null ? void 0 : te.url) || (me(), z.current = null, ie(null), w(0), _(0), se(!1), be(!1), oe(!1), pe(null), m.current = 0, h.current = 0, I.current = "none", T.current = !1, M.current = !1, E.current = 0, B.current = null, g.current = null, S.current = !1, de.current = n, K.current = te == null ? void 0 : te.url);
13575
13575
  }, [n, te == null ? void 0 : te.url, me]), Ot(() => {
13576
13576
  const Ie = v.current;
13577
13577
  Ie !== null && (v.current = null, requestAnimationFrame(() => {
13578
13578
  k.current(Ie);
13579
13579
  }));
13580
- }, [n, te == null ? void 0 : te.url]), Me(() => {
13580
+ }, [n, te == null ? void 0 : te.url]), Pe(() => {
13581
13581
  if (j !== "open") return;
13582
13582
  let Ie = null;
13583
13583
  const De = () => {
@@ -13594,11 +13594,11 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13594
13594
  }
13595
13595
  le(Je, !1);
13596
13596
  }, vt = (ht) => {
13597
- if (ht.touches.length !== 1 || P.current) return;
13597
+ if (ht.touches.length !== 1 || M.current) return;
13598
13598
  const Je = ht.touches[0];
13599
13599
  S.current = !0, g.current = { x: Je.clientX, y: Je.clientY }, I.current = "none", h.current = 0, T.current = !1;
13600
13600
  }, ot = (ht) => {
13601
- if (!g.current || ht.touches.length !== 1 || P.current) return;
13601
+ if (!g.current || ht.touches.length !== 1 || M.current) return;
13602
13602
  const Je = ht.touches[0], Qe = Je.clientX - g.current.x, Ve = Je.clientY - g.current.y;
13603
13603
  if (I.current === "none") {
13604
13604
  if (Math.abs(Qe) < 10 && Math.abs(Ve) < 10) return;
@@ -13634,7 +13634,7 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13634
13634
  return document.addEventListener("touchstart", vt, { passive: !0 }), document.addEventListener("touchmove", ot, { passive: !1 }), document.addEventListener("touchend", Rt), document.addEventListener("touchcancel", Rt), () => {
13635
13635
  document.removeEventListener("touchstart", vt), document.removeEventListener("touchmove", ot), document.removeEventListener("touchend", Rt), document.removeEventListener("touchcancel", Rt), De();
13636
13636
  };
13637
- }, [j, t.length, le]), Me(() => {
13637
+ }, [j, t.length, le]), Pe(() => {
13638
13638
  const Ie = (De) => {
13639
13639
  De.key === "Escape" && (De.preventDefault(), De.stopPropagation(), j !== "closing" && V("closing"));
13640
13640
  };
@@ -13671,7 +13671,7 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13671
13671
  width: A == null ? void 0 : A.width,
13672
13672
  height: A == null ? void 0 : A.height,
13673
13673
  zIndex: 9998
13674
- }, qe = u ? "cover" : "contain", He = R !== 0 || ae > 0 ? `translate(${R}px, ${ae}px)` : void 0, dt = b && !M ? "none" : M ? `transform ${Ln}ms ${Gn}` : Z ? `transform ${Ln}ms ${Gn}, opacity ${Ln}ms ${Gn}` : j === "opening" || he ? `opacity ${Ln}ms ${Gn}` : "none", lt = {
13674
+ }, qe = u ? "cover" : "contain", He = R !== 0 || ae > 0 ? `translate(${R}px, ${ae}px)` : void 0, dt = b && !P ? "none" : P ? `transform ${Ln}ms ${Gn}` : Z ? `transform ${Ln}ms ${Gn}, opacity ${Ln}ms ${Gn}` : j === "opening" || he ? `opacity ${Ln}ms ${Gn}` : "none", lt = {
13675
13675
  ...D,
13676
13676
  transform: He,
13677
13677
  opacity: ae > 0 ? N : j === "opening" || he ? 0 : 1,
@@ -13690,7 +13690,7 @@ function zg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
13690
13690
  ...D,
13691
13691
  transform: Le ? `translateX(${ne * $t + R}px)` : void 0,
13692
13692
  opacity: 1,
13693
- transition: M ? `transform ${Ln}ms ${Gn}` : "none",
13693
+ transition: P ? `transform ${Ln}ms ${Gn}` : "none",
13694
13694
  pointerEvents: "none"
13695
13695
  }, Ue = {
13696
13696
  position: "absolute",
@@ -13911,7 +13911,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
13911
13911
  sliderTiming: G,
13912
13912
  direction: E,
13913
13913
  transition: B,
13914
- titleMarginTop: P,
13914
+ titleMarginTop: M,
13915
13915
  subtitleMarginTop: $,
13916
13916
  titleColor: z,
13917
13917
  subtitleColor: v,
@@ -13928,7 +13928,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
13928
13928
  subtitleFontSize: _,
13929
13929
  subtitleLineHeight: ne,
13930
13930
  subtitleLetterSpacing: ie,
13931
- subtitleWordSpacing: M,
13931
+ subtitleWordSpacing: P,
13932
13932
  subtitleTextAppearance: se,
13933
13933
  lightboxCounterFontFamily: b,
13934
13934
  lightboxCounterFontSettings: oe,
@@ -13963,7 +13963,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
13963
13963
  fontSize: _ ?? 0.01,
13964
13964
  lineHeight: ne,
13965
13965
  letterSpacing: ie ?? 0,
13966
- wordSpacing: M ?? 0,
13966
+ wordSpacing: P ?? 0,
13967
13967
  textAppearance: se,
13968
13968
  color: v
13969
13969
  }, $e = {
@@ -13988,7 +13988,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
13988
13988
  Y,
13989
13989
  `${d}-item-title`,
13990
13990
  `${d}-text-tight-leading`
13991
- ), Pe = na(
13991
+ ), Me = na(
13992
13992
  _,
13993
13993
  ne,
13994
13994
  `${d}-item-subtitle`,
@@ -14023,9 +14023,9 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14023
14023
  height: "auto",
14024
14024
  maxWidth: "100%",
14025
14025
  ...ht ? { borderRadius: ht } : {}
14026
- }, [rn, cn] = ee(0), Mt = q(null), Et = B === "fade" || E === "horizontal" ? "ltr" : E === "vertical" ? "ttb" : "ltr";
14027
- Me(() => {
14028
- const nt = Mt.current;
14026
+ }, [rn, cn] = ee(0), Pt = q(null), Et = B === "fade" || E === "horizontal" ? "ltr" : E === "vertical" ? "ttb" : "ltr";
14027
+ Pe(() => {
14028
+ const nt = Pt.current;
14029
14029
  if (!nt) return;
14030
14030
  const it = new ResizeObserver((mt) => {
14031
14031
  cn(Math.round(mt[0].contentRect.width));
@@ -14033,18 +14033,18 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14033
14033
  return it.observe(nt), () => it.disconnect();
14034
14034
  }, []);
14035
14035
  const Gt = (() => {
14036
- const nt = { ...re }, it = Mt.current ? getComputedStyle(Mt.current).getPropertyValue("--cntrl-article-width").trim() : "";
14036
+ const nt = { ...re }, it = Pt.current ? getComputedStyle(Pt.current).getPropertyValue("--cntrl-article-width").trim() : "";
14037
14037
  return it && (nt["--cntrl-article-width"] = it), nt;
14038
14038
  })(), [Bt, Re] = ee(!1), [Ye, et] = ee([]), [ft, Nt] = ee(0), wt = m === "on" && (!n || i), ct = (nt, it) => {
14039
14039
  n && !i || m !== "off" && (et(nt), Nt(it), Re(!0));
14040
14040
  };
14041
- Me(() => {
14041
+ Pe(() => {
14042
14042
  if (!Bt || m !== "on" || typeof document > "u") return;
14043
14043
  const nt = document.body.style.overflow;
14044
14044
  return document.body.style.overflow = "hidden", () => {
14045
14045
  document.body.style.overflow = nt;
14046
14046
  };
14047
- }, [Bt, m]), Me(() => {
14047
+ }, [Bt, m]), Pe(() => {
14048
14048
  !n || i || Re(!1);
14049
14049
  }, [n, i]);
14050
14050
  const tn = je(() => Lg(d), [d]);
@@ -14054,7 +14054,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14054
14054
  /* @__PURE__ */ l("div", { style: re, children: /* @__PURE__ */ l(
14055
14055
  "div",
14056
14056
  {
14057
- ref: Mt,
14057
+ ref: Pt,
14058
14058
  className: `${d}-wrapper ${d}-type-${u}${St ? ` ${d}-align-entries` : ""} ${d}-image-align-${ge} ${Ae}`.trim(),
14059
14059
  style: {
14060
14060
  gridTemplateColumns: `repeat(${We}, ${Ie})`,
@@ -14073,12 +14073,12 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14073
14073
  "data-controls": o ? "titleMarginTop" : void 0,
14074
14074
  className: o ? `${d}-control` : void 0,
14075
14075
  style: {
14076
- height: F(P ?? 0, n),
14076
+ height: F(M ?? 0, n),
14077
14077
  width: xt
14078
14078
  }
14079
14079
  }
14080
14080
  ),
14081
- Wt && /* @__PURE__ */ l("p", { className: Pe, style: { width: bt, ...$e, ...W }, children: nt.subtitle }),
14081
+ Wt && /* @__PURE__ */ l("p", { className: Me, style: { width: bt, ...$e, ...W }, children: nt.subtitle }),
14082
14082
  Wt && /* @__PURE__ */ l(
14083
14083
  "div",
14084
14084
  {
@@ -14097,7 +14097,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14097
14097
  "data-controls": o && mt ? "titleMarginTop" : void 0,
14098
14098
  className: o && mt ? `${d}-control` : void 0,
14099
14099
  style: {
14100
- height: mt ? F(P ?? 0, n) : 0,
14100
+ height: mt ? F(M ?? 0, n) : 0,
14101
14101
  width: xt
14102
14102
  }
14103
14103
  }
@@ -14109,7 +14109,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14109
14109
  "data-controls": o ? "titleMarginTop" : void 0,
14110
14110
  className: o ? `${d}-control` : void 0,
14111
14111
  style: {
14112
- height: F(P ?? 0, n),
14112
+ height: F(M ?? 0, n),
14113
14113
  width: xt
14114
14114
  }
14115
14115
  }
@@ -14126,7 +14126,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14126
14126
  }
14127
14127
  }
14128
14128
  ),
14129
- Wt && /* @__PURE__ */ l("p", { className: Pe, style: { width: bt, ...$e, ...W }, children: nt.subtitle }),
14129
+ Wt && /* @__PURE__ */ l("p", { className: Me, style: { width: bt, ...$e, ...W }, children: nt.subtitle }),
14130
14130
  Ve && Wt && /* @__PURE__ */ l(
14131
14131
  "div",
14132
14132
  {
@@ -14138,7 +14138,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14138
14138
  }
14139
14139
  }
14140
14140
  )
14141
- ] }) : null, Pt = _t ? /* @__PURE__ */ U("a", { href: _t, target: "_blank", className: `${d}-item-text-link`, children: [
14141
+ ] }) : null, Mt = _t ? /* @__PURE__ */ U("a", { href: _t, target: "_blank", className: `${d}-item-text-link`, children: [
14142
14142
  Kt,
14143
14143
  Qt
14144
14144
  ] }) : /* @__PURE__ */ U(at, { children: [
@@ -14170,7 +14170,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14170
14170
  interval: G * 1e3,
14171
14171
  width: "100%",
14172
14172
  height: "100%",
14173
- speed: Pg,
14173
+ speed: Mg,
14174
14174
  type: B === "fade" ? "fade" : "loop",
14175
14175
  rewind: B === "fade",
14176
14176
  pauseOnHover: !1,
@@ -14178,7 +14178,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14178
14178
  direction: Et
14179
14179
  },
14180
14180
  onMoved: (At) => {
14181
- E !== "random" || B === "fade" || Mg(At);
14181
+ E !== "random" || B === "fade" || Pg(At);
14182
14182
  },
14183
14183
  children: en.map(({ displayMedia: At, lightboxMedia: x }, we) => {
14184
14184
  const Oe = x ? nn.findIndex((ze) => ze.url === x.url) : -1;
@@ -14202,7 +14202,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14202
14202
  "data-controls": o && mt ? "titleMarginTop" : void 0,
14203
14203
  className: o && mt ? `${d}-control` : void 0,
14204
14204
  style: {
14205
- height: mt ? F(P ?? 0, n) : 0,
14205
+ height: mt ? F(M ?? 0, n) : 0,
14206
14206
  width: xt
14207
14207
  }
14208
14208
  }
@@ -14229,7 +14229,7 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14229
14229
  /* @__PURE__ */ l(
14230
14230
  "p",
14231
14231
  {
14232
- className: Pe,
14232
+ className: Me,
14233
14233
  style: { width: bt, ...$e, ...W },
14234
14234
  children: nt.subtitle
14235
14235
  }
@@ -14249,11 +14249,11 @@ function Vg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
14249
14249
  ...Vt && St ? { gridColumn: Vt } : {}
14250
14250
  },
14251
14251
  children: St ? /* @__PURE__ */ l(at, { children: Ve ? /* @__PURE__ */ U(at, { children: [
14252
- Pt,
14252
+ Mt,
14253
14253
  /* @__PURE__ */ l("a", { href: _t, target: "_blank", className: `${d}-item-image-link`, children: on })
14254
14254
  ] }) : /* @__PURE__ */ U(at, { children: [
14255
14255
  /* @__PURE__ */ l("a", { href: _t, target: "_blank", className: `${d}-item-image-link`, children: on }),
14256
- Pt
14256
+ Mt
14257
14257
  ] }) }) : _t ? /* @__PURE__ */ U(at, { children: [
14258
14258
  /* @__PURE__ */ U("a", { href: _t, target: "_blank", className: `${d}-item-image-link`, children: [
14259
14259
  Xt,
@@ -17322,14 +17322,14 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
17322
17322
  { overflow: i - 1, widths: [] }
17323
17323
  );
17324
17324
  return o;
17325
- }, Mo = (e, t) => Xi(e, t), hn = (e, t) => {
17325
+ }, Po = (e, t) => Xi(e, t), hn = (e, t) => {
17326
17326
  const n = t.filter((i, o) => o !== e).reduce((i, o) => i + o, 0);
17327
17327
  return Math.max(1 - n, 0);
17328
17328
  }, ei = (e, t) => {
17329
17329
  const n = e.map((i) => t[i.widthKey] ?? 0);
17330
17330
  return {
17331
17331
  resolved: Xi(e.length, n),
17332
- effective: Mo(e.length, n)
17332
+ effective: Po(e.length, n)
17333
17333
  };
17334
17334
  }, Wc = (e, t, n, i) => e.slice(0, i).reduce(
17335
17335
  (o, r, a) => o + (r != null && r.marginLeftKey ? n[r.marginLeftKey] ?? 0 : 0) + (t[a] ?? 0),
@@ -17436,7 +17436,7 @@ function Nc({
17436
17436
  closeIconMaxWidth: T = 0,
17437
17437
  closeIconColor: S = "#000000",
17438
17438
  closeIconHoverColor: G = "#cccccc"
17439
- } = n, E = F(m, i), B = F(h, i), P = F(C, i), $ = g === "mobile", z = xi("title1", bi(n, "title1"), i), v = xi("title2", bi(n, "title2"), i), k = xi("title3", bi(n, "title3"), i), L = je(
17439
+ } = n, E = F(m, i), B = F(h, i), M = F(C, i), $ = g === "mobile", z = xi("title1", bi(n, "title1"), i), v = xi("title2", bi(n, "title2"), i), k = xi("title3", bi(n, "title3"), i), L = je(
17440
17440
  () => ({
17441
17441
  title1Width: c ?? Vi.title1Width,
17442
17442
  title2Width: s ?? Vi.title2Width,
@@ -17456,7 +17456,7 @@ function Nc({
17456
17456
  () => Xi(A.length, Y),
17457
17457
  [A.length, Y]
17458
17458
  ), V = je(
17459
- () => Mo(A.length, Y),
17459
+ () => Po(A.length, Y),
17460
17460
  [A.length, Y]
17461
17461
  ), ae = je(
17462
17462
  () => A.filter((N) => N.prefix === "title1"),
@@ -17498,7 +17498,7 @@ function Nc({
17498
17498
  if (!$ || Ae === "single-row") {
17499
17499
  const dt = N.findIndex((Xe) => Xe.prefix === X.prefix), lt = N.map((Xe) => L[Xe.widthKey]), pt = Xi(N.length, lt);
17500
17500
  return {
17501
- effectiveWidth: Mo(N.length, lt)[dt] ?? 0,
17501
+ effectiveWidth: Po(N.length, lt)[dt] ?? 0,
17502
17502
  resolvedWidth: pt[dt] ?? 0,
17503
17503
  maxWidth: hn(dt, pt)
17504
17504
  };
@@ -17636,7 +17636,7 @@ function Nc({
17636
17636
  )) }),
17637
17637
  X && o ? /* @__PURE__ */ U(at, { children: [
17638
17638
  Se(),
17639
- Pe()
17639
+ Me()
17640
17640
  ] }) : null
17641
17641
  ] }) : null,
17642
17642
  (C ?? 0) > 0 || D ? /* @__PURE__ */ l(
@@ -17647,7 +17647,7 @@ function Nc({
17647
17647
  "data-controls-reverse": D ? "" : void 0,
17648
17648
  className: D ? `${e}-control` : void 0,
17649
17649
  style: {
17650
- height: P,
17650
+ height: M,
17651
17651
  width: "100%",
17652
17652
  flexShrink: 0,
17653
17653
  pointerEvents: D ? "auto" : "none"
@@ -17803,7 +17803,7 @@ function Nc({
17803
17803
  },
17804
17804
  N.marginLeftKey
17805
17805
  );
17806
- }), Pe = () => w.map((N, X) => {
17806
+ }), Me = () => w.map((N, X) => {
17807
17807
  const { maxWidth: Ae } = b(N, "two-row-bottom"), D = pe(X) - Sn / 2;
17808
17808
  return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
17809
17809
  "div",
@@ -18475,7 +18475,7 @@ function ml(e) {
18475
18475
  function lo(e) {
18476
18476
  return e.type === "video" ? !0 : /\.(mp4|webm|ogg|mov)(\?|#|$)/i.test(e.url);
18477
18477
  }
18478
- function Mh({
18478
+ function Ph({
18479
18479
  media: e,
18480
18480
  className: t,
18481
18481
  style: n,
@@ -18514,7 +18514,7 @@ function Mh({
18514
18514
  }
18515
18515
  );
18516
18516
  }
18517
- function Ph({
18517
+ function Mh({
18518
18518
  src: e,
18519
18519
  phase: t,
18520
18520
  onMediaElement: n,
@@ -18524,7 +18524,7 @@ function Ph({
18524
18524
  onTransitionEnd: a
18525
18525
  }) {
18526
18526
  const c = q(null);
18527
- return Me(() => {
18527
+ return Pe(() => {
18528
18528
  const s = c.current;
18529
18529
  return n == null || n(s ?? null), () => {
18530
18530
  s == null || s.pause(), n == null || n(null);
@@ -18597,8 +18597,8 @@ function Eh({
18597
18597
  onPrev: m,
18598
18598
  onNext: h
18599
18599
  }) {
18600
- const I = q(null), T = q(null), S = q(null), G = q(/* @__PURE__ */ new Map()), [E, B] = ee(0), P = q(null), $ = q(0), z = q(0), v = q("none"), k = q(!1), L = q(!1), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(() => {
18601
- }), ae = q(null), w = q(null), R = q(null), _ = q(!1), [ne, ie] = ee(null), [M, se] = ee(aa), [b, oe] = ee(0), [Z, be] = ee("opening"), [Ee, pe] = ee(0), [de, K] = ee(0), [te, ge] = ee(!1), [_e, Le] = ee(null), [Fe, me] = ee(null), [ye, $e] = ee(null), [O, le] = ee(!1), [fe, Se] = ee(null), [Pe, Ce] = ee(!1), W = q(!1), [he, re] = ee(!1), [N, X] = ee(!1), Ae = q(n), ue = q(void 0), D = t[n], qe = D ? lo(D) : !1, He = de !== 0 || te, dt = !a && (!r || !!c), lt = s && !a, pt = d.length > 1, $t = ve((x, we) => t.length <= 1 ? null : t[(x + we + t.length) % t.length] ?? null, [t]), Xe = pt ? ho(d, u, -1) : $t(n, -1), xe = pt ? ho(d, u, 1) : $t(n, 1), ke = _e === -1 && He ? pt && Fe !== null ? ho(d, Fe, -1) : ye !== null ? $t(ye, -1) : null : null, Ue = _e === 1 && He ? pt && Fe !== null ? ho(d, Fe, 1) : ye !== null ? $t(ye, 1) : null : null, We = ke && ke.url !== (Xe == null ? void 0 : Xe.url) ? ke : null, Ie = Ue && Ue.url !== (xe == null ? void 0 : xe.url) ? Ue : null, De = Xe && lt ? (() => {
18600
+ const I = q(null), T = q(null), S = q(null), G = q(/* @__PURE__ */ new Map()), [E, B] = ee(0), M = q(null), $ = q(0), z = q(0), v = q("none"), k = q(!1), L = q(!1), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(() => {
18601
+ }), ae = q(null), w = q(null), R = q(null), _ = q(!1), [ne, ie] = ee(null), [P, se] = ee(aa), [b, oe] = ee(0), [Z, be] = ee("opening"), [Ee, pe] = ee(0), [de, K] = ee(0), [te, ge] = ee(!1), [_e, Le] = ee(null), [Fe, me] = ee(null), [ye, $e] = ee(null), [O, le] = ee(!1), [fe, Se] = ee(null), [Me, Ce] = ee(!1), W = q(!1), [he, re] = ee(!1), [N, X] = ee(!1), Ae = q(n), ue = q(void 0), D = t[n], qe = D ? lo(D) : !1, He = de !== 0 || te, dt = !a && (!r || !!c), lt = s && !a, pt = d.length > 1, $t = ve((x, we) => t.length <= 1 ? null : t[(x + we + t.length) % t.length] ?? null, [t]), Xe = pt ? ho(d, u, -1) : $t(n, -1), xe = pt ? ho(d, u, 1) : $t(n, 1), ke = _e === -1 && He ? pt && Fe !== null ? ho(d, Fe, -1) : ye !== null ? $t(ye, -1) : null : null, Ue = _e === 1 && He ? pt && Fe !== null ? ho(d, Fe, 1) : ye !== null ? $t(ye, 1) : null : null, We = ke && ke.url !== (Xe == null ? void 0 : Xe.url) ? ke : null, Ie = Ue && Ue.url !== (xe == null ? void 0 : xe.url) ? Ue : null, De = Xe && lt ? (() => {
18602
18602
  const x = pt ? es(d, u, -1) : t.length > 2 ? $t((n - 1 + t.length) % t.length, -1) : null;
18603
18603
  return x && x.url !== Xe.url ? x : null;
18604
18604
  })() : null, Ge = xe && lt ? (() => {
@@ -18661,7 +18661,7 @@ function Eh({
18661
18661
  if (te && _e !== null) {
18662
18662
  const Oe = Rt(x);
18663
18663
  if (!Oe) return;
18664
- const { x: ze, y: gt } = Th(Oe, we, _e, M);
18664
+ const { x: ze, y: gt } = Th(Oe, we, _e, P);
18665
18665
  return `translate(${ze}px, ${gt}px)`;
18666
18666
  }
18667
18667
  if (te)
@@ -18673,7 +18673,7 @@ function Eh({
18673
18673
  te,
18674
18674
  de,
18675
18675
  _e,
18676
- M,
18676
+ P,
18677
18677
  Rt
18678
18678
  ]), Dt = ve(() => {
18679
18679
  const x = Y.current;
@@ -18684,7 +18684,7 @@ function Eh({
18684
18684
  }, uo + 32);
18685
18685
  }, [Ve, Dt]), cn = ve(() => {
18686
18686
  Ve(), Y.current = null, Qe(!1), Le(null), me(null), $e(null), K(0), re(!1), k.current = !1, z.current = 0, v.current = "none";
18687
- }, [Ve, Qe]), Mt = ve((x) => {
18687
+ }, [Ve, Qe]), Pt = ve((x) => {
18688
18688
  if (!(!lt || !ne)) {
18689
18689
  if (Q.current) {
18690
18690
  if (Y.current === x) {
@@ -18705,7 +18705,7 @@ function Eh({
18705
18705
  Qe,
18706
18706
  rn
18707
18707
  ]);
18708
- V.current = Mt;
18708
+ V.current = Pt;
18709
18709
  const Et = ve(() => {
18710
18710
  ae.current = null, _.current = !1, w.current !== null && (window.clearInterval(w.current), w.current = null), R.current !== null && (window.clearTimeout(R.current), R.current = null);
18711
18711
  }, []), Gt = ve((x) => {
@@ -18747,7 +18747,7 @@ function Eh({
18747
18747
  }, [Re]), et = ve(() => {
18748
18748
  bt(), Re(), oe((x) => x + 1);
18749
18749
  }, [bt, Re]);
18750
- Me(() => {
18750
+ Pe(() => {
18751
18751
  et();
18752
18752
  const x = T.current, we = I.current, Oe = new ResizeObserver(() => et());
18753
18753
  return x && Oe.observe(x), we && Oe.observe(we), window.addEventListener("resize", et), () => {
@@ -18763,16 +18763,16 @@ function Eh({
18763
18763
  }
18764
18764
  x instanceof HTMLVideoElement && x.readyState >= 1 && x.videoWidth > 0 && Re();
18765
18765
  }
18766
- }, [D == null ? void 0 : D.url, n, Re]), Me(() => {
18766
+ }, [D == null ? void 0 : D.url, n, Re]), Pe(() => {
18767
18767
  ht();
18768
- }, [ht, E]), Me(() => {
18768
+ }, [ht, E]), Pe(() => {
18769
18769
  const x = /* @__PURE__ */ new Set(), we = [], Oe = (ze) => {
18770
18770
  !(ze != null && ze.url) || x.has(ze.url) || (x.add(ze.url), we.push(ze));
18771
18771
  };
18772
18772
  t.forEach(Oe), d.forEach((ze) => ze.items.forEach(Oe)), we.forEach((ze) => {
18773
18773
  G.current.has(ze.url) || wh(ze, ot);
18774
18774
  });
18775
- }, [t, d, ot]), Me(() => {
18775
+ }, [t, d, ot]), Pe(() => {
18776
18776
  if (Z !== "opening" || !ne) return;
18777
18777
  if (!y) {
18778
18778
  be("open");
@@ -18785,14 +18785,14 @@ function Eh({
18785
18785
  });
18786
18786
  });
18787
18787
  return () => cancelAnimationFrame(x);
18788
- }, [Z, ne, y]), Me(() => {
18788
+ }, [Z, ne, y]), Pe(() => {
18789
18789
  if (Z !== "closing") return;
18790
18790
  const x = setTimeout(() => g(), En);
18791
18791
  return () => clearTimeout(x);
18792
- }, [Z, g]), Me(() => () => {
18792
+ }, [Z, g]), Pe(() => () => {
18793
18793
  Ve();
18794
18794
  }, [Ve]), Ot(() => {
18795
- Ae.current === n && ue.current === (D == null ? void 0 : D.url) || (Ve(), Y.current = null, Le(null), me(null), $e(null), pe(0), K(0), Qe(!1), X(!1), re(!1), $.current = 0, z.current = 0, v.current = "none", k.current = !1, P.current = null, L.current = !1, S.current = null, ht(), Ae.current = n, ue.current = D == null ? void 0 : D.url);
18795
+ Ae.current === n && ue.current === (D == null ? void 0 : D.url) || (Ve(), Y.current = null, Le(null), me(null), $e(null), pe(0), K(0), Qe(!1), X(!1), re(!1), $.current = 0, z.current = 0, v.current = "none", k.current = !1, M.current = null, L.current = !1, S.current = null, ht(), Ae.current = n, ue.current = D == null ? void 0 : D.url);
18796
18796
  }, [n, D == null ? void 0 : D.url, Qe, Ve, ht]), Ot(() => {
18797
18797
  const x = j.current;
18798
18798
  x !== null && (j.current = null, requestAnimationFrame(() => {
@@ -18815,7 +18815,7 @@ function Eh({
18815
18815
  });
18816
18816
  });
18817
18817
  return () => cancelAnimationFrame(x);
18818
- }, [Z, Xe == null ? void 0 : Xe.url, xe == null ? void 0 : xe.url]), Me(() => {
18818
+ }, [Z, Xe == null ? void 0 : Xe.url, xe == null ? void 0 : xe.url]), Pe(() => {
18819
18819
  if (Z !== "open") return;
18820
18820
  const x = () => {
18821
18821
  const rt = (Ct) => {
@@ -18834,10 +18834,10 @@ function Eh({
18834
18834
  }, ze = (rt) => {
18835
18835
  if (rt.touches.length !== 1 || Q.current) return;
18836
18836
  const Ct = rt.touches[0];
18837
- L.current = !0, P.current = { x: Ct.clientX, y: Ct.clientY }, v.current = "none", z.current = 0, k.current = !1;
18837
+ L.current = !0, M.current = { x: Ct.clientX, y: Ct.clientY }, v.current = "none", z.current = 0, k.current = !1;
18838
18838
  }, gt = (rt) => {
18839
- if (!P.current || rt.touches.length !== 1 || Q.current) return;
18840
- const Ct = rt.touches[0], Ut = Ct.clientX - P.current.x, Ht = Ct.clientY - P.current.y;
18839
+ if (!M.current || rt.touches.length !== 1 || Q.current) return;
18840
+ const Ct = rt.touches[0], Ut = Ct.clientX - M.current.x, Ht = Ct.clientY - M.current.y;
18841
18841
  if (v.current === "none") {
18842
18842
  if (Math.abs(Ut) < 10 && Math.abs(Ht) < 10) return;
18843
18843
  if (Math.abs(Ut) > Math.abs(Ht)) {
@@ -18855,7 +18855,7 @@ function Eh({
18855
18855
  }
18856
18856
  v.current === "vertical" && (k.current = !0, re(!0), $.current = Ht, pe(Ht), rt.preventDefault());
18857
18857
  }, zt = () => {
18858
- if (!P.current) return;
18858
+ if (!M.current) return;
18859
18859
  const rt = v.current, Ct = k.current;
18860
18860
  if (Ct && rt === "horizontal")
18861
18861
  Oe(z.current), x();
@@ -18868,7 +18868,7 @@ function Eh({
18868
18868
  $.current = 0, pe(0);
18869
18869
  x();
18870
18870
  } else rt === "horizontal" && Math.abs(z.current) > 0 && (Oe(z.current), x());
18871
- P.current = null, v.current = "none", z.current = 0, k.current = !1, re(!1);
18871
+ M.current = null, v.current = "none", z.current = 0, k.current = !1, re(!1);
18872
18872
  };
18873
18873
  return document.addEventListener("touchstart", ze, { passive: !0 }), document.addEventListener("touchmove", gt, { passive: !1 }), document.addEventListener("touchend", zt), document.addEventListener("touchcancel", zt), () => {
18874
18874
  document.removeEventListener("touchstart", ze), document.removeEventListener("touchmove", gt), document.removeEventListener("touchend", zt), document.removeEventListener("touchcancel", zt);
@@ -18878,7 +18878,7 @@ function Eh({
18878
18878
  const x = (C == null ? void 0 : C()) ?? y ?? null;
18879
18879
  x && ne && (Se(x), le(!0)), be("closing");
18880
18880
  }, [C, y, ne]);
18881
- Me(() => {
18881
+ Pe(() => {
18882
18882
  const x = (ze) => {
18883
18883
  if (ze.key === "Escape") {
18884
18884
  if (r && c || Z === "closing") return;
@@ -18907,7 +18907,7 @@ function Eh({
18907
18907
  lt,
18908
18908
  Bt,
18909
18909
  Et
18910
- ]), Me(() => {
18910
+ ]), Pe(() => {
18911
18911
  Z !== "open" && Et();
18912
18912
  }, [Z, Et]);
18913
18913
  const Nt = () => {
@@ -18920,7 +18920,7 @@ function Eh({
18920
18920
  }
18921
18921
  Ve(), Qe(!1);
18922
18922
  }
18923
- }, [Ve, Qe, Dt]), mt = Z === "closing" ? fe ?? y : y, Wt = mt && ne && (Z === "opening" || ct) ? hh(mt, ne) : void 0, _t = He && D ? xt(D, "center") : Ee > 0 ? `translateY(${Ee}px)` : Wt, Lt = ne ? Qo(ne, M) : null, Vt = !!(mt && ne), Xt = Vt && (Z === "closing" || Z === "open" && O), Kt = {
18923
+ }, [Ve, Qe, Dt]), mt = Z === "closing" ? fe ?? y : y, Wt = mt && ne && (Z === "opening" || ct) ? hh(mt, ne) : void 0, _t = He && D ? xt(D, "center") : Ee > 0 ? `translateY(${Ee}px)` : Wt, Lt = ne ? Qo(ne, P) : null, Vt = !!(mt && ne), Xt = Vt && (Z === "closing" || Z === "open" && O), Kt = {
18924
18924
  position: "absolute",
18925
18925
  top: Lt == null ? void 0 : Lt.top,
18926
18926
  left: Lt == null ? void 0 : Lt.left,
@@ -18941,12 +18941,12 @@ function Eh({
18941
18941
  display: "block",
18942
18942
  objectFit: "contain",
18943
18943
  pointerEvents: wt && !He ? "auto" : "none"
18944
- }, Pt = (x, we, Oe = "adjacent") => {
18944
+ }, Mt = (x, we, Oe = "adjacent") => {
18945
18945
  const ze = Rt(x);
18946
18946
  if (!ze) return { display: "none" };
18947
- const gt = Oe === "far" ? we === "left" ? "far-left" : "far-right" : we === "left" ? "left-adjacent" : "right-adjacent", { start: zt } = _e !== null ? Dc(ze, gt, _e, M) : {
18948
- start: Oe === "far" ? Cr(ze, we, M) : Yi(ze, we, M)
18949
- }, rt = Qo(zt, M), Ct = xt(x, gt), Ut = !He && Oe === "adjacent" && wt && !Pe ? Lh(ze, we, M) : null, Ht = Oe === "far" && He && _e === (we === "left" ? -1 : 1), yn = he && !te ? !1 : te, vn = Oe === "adjacent" && wt && Pe && !He;
18947
+ const gt = Oe === "far" ? we === "left" ? "far-left" : "far-right" : we === "left" ? "left-adjacent" : "right-adjacent", { start: zt } = _e !== null ? Dc(ze, gt, _e, P) : {
18948
+ start: Oe === "far" ? Cr(ze, we, P) : Yi(ze, we, P)
18949
+ }, rt = Qo(zt, P), Ct = xt(x, gt), Ut = !He && Oe === "adjacent" && wt && !Me ? Lh(ze, we, P) : null, Ht = Oe === "far" && He && _e === (we === "left" ? -1 : 1), yn = he && !te ? !1 : te, vn = Oe === "adjacent" && wt && Me && !He;
18950
18950
  return {
18951
18951
  position: "absolute",
18952
18952
  top: rt.top,
@@ -18962,16 +18962,16 @@ function Eh({
18962
18962
  };
18963
18963
  }, en = (x, we) => {
18964
18964
  const Oe = Rt(x);
18965
- return Oe ? Ch(Yi(Oe, we, M), we, M) : null;
18965
+ return Oe ? Ch(Yi(Oe, we, P), we, P) : null;
18966
18966
  }, nn = (x) => (we) => {
18967
18967
  if (!a) {
18968
18968
  if (L.current) {
18969
18969
  L.current = !1;
18970
18970
  return;
18971
18971
  }
18972
- we.stopPropagation(), Mt(x);
18972
+ we.stopPropagation(), Pt(x);
18973
18973
  }
18974
- }, on = Xe ? en(Xe, "left") : null, an = xe ? en(xe, "right") : null, Yt = on ? Qo(on, M) : null, At = an ? Qo(an, M) : null;
18974
+ }, on = Xe ? en(Xe, "left") : null, an = xe ? en(xe, "right") : null, Yt = on ? Qo(on, P) : null, At = an ? Qo(an, P) : null;
18975
18975
  return /* @__PURE__ */ U(
18976
18976
  "div",
18977
18977
  {
@@ -19060,7 +19060,7 @@ function Eh({
19060
19060
  er,
19061
19061
  {
19062
19062
  media: st,
19063
- style: Pt(st, "left", "far"),
19063
+ style: Mt(st, "left", "far"),
19064
19064
  onMeasure: ot,
19065
19065
  onTransitionEnd: it
19066
19066
  },
@@ -19071,7 +19071,7 @@ function Eh({
19071
19071
  er,
19072
19072
  {
19073
19073
  media: Xe,
19074
- style: Pt(Xe, "left"),
19074
+ style: Mt(Xe, "left"),
19075
19075
  onMeasure: ot,
19076
19076
  onTransitionEnd: it
19077
19077
  },
@@ -19099,7 +19099,7 @@ function Eh({
19099
19099
  er,
19100
19100
  {
19101
19101
  media: xe,
19102
- style: Pt(xe, "right"),
19102
+ style: Mt(xe, "right"),
19103
19103
  onMeasure: ot,
19104
19104
  onTransitionEnd: it
19105
19105
  },
@@ -19126,14 +19126,14 @@ function Eh({
19126
19126
  er,
19127
19127
  {
19128
19128
  media: vt,
19129
- style: Pt(vt, "right", "far"),
19129
+ style: Mt(vt, "right", "far"),
19130
19130
  onMeasure: ot,
19131
19131
  onTransitionEnd: it
19132
19132
  },
19133
19133
  `far-next-${vt.url}`
19134
19134
  ),
19135
19135
  ne && D && (qe ? /* @__PURE__ */ l(
19136
- Ph,
19136
+ Mh,
19137
19137
  {
19138
19138
  src: D.url,
19139
19139
  phase: Z,
@@ -19169,7 +19169,7 @@ function Ah({
19169
19169
  layoutId: r,
19170
19170
  portalId: a
19171
19171
  }) {
19172
- const { prefix: c } = un(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: f } = e, y = (f == null ? void 0 : f.display) === "cover", C = (f == null ? void 0 : f.ratioValue) ?? "1:1", g = (f == null ? void 0 : f.reversed) ?? !1, [m, h] = C.split(":").map(Number), S = `${g ? h : m} / ${g ? m : h}`, G = s.entryWidth ?? 0.2, E = s.columnsCount, B = F(G, n), P = F(s.horizontalGap ?? 0, n), $ = B, z = B, v = {
19172
+ const { prefix: c } = un(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: f } = e, y = (f == null ? void 0 : f.display) === "cover", C = (f == null ? void 0 : f.ratioValue) ?? "1:1", g = (f == null ? void 0 : f.reversed) ?? !1, [m, h] = C.split(":").map(Number), S = `${g ? h : m} / ${g ? m : h}`, G = s.entryWidth ?? 0.2, E = s.columnsCount, B = F(G, n), M = F(s.horizontalGap ?? 0, n), $ = B, z = B, v = {
19173
19173
  width: $,
19174
19174
  ...y ? { aspectRatio: S, height: "auto", overflow: "hidden" } : { height: "auto" }
19175
19175
  }, k = y ? {
@@ -19184,7 +19184,7 @@ function Ah({
19184
19184
  width: "auto",
19185
19185
  height: "auto",
19186
19186
  maxWidth: "100%"
19187
- }, L = q(null), [Q, A] = ee(!1), [Y, j] = ee([]), [V, ae] = ee(0), [w, R] = ee(0), [_, ne] = ee(null), [ie, M] = ee({
19187
+ }, L = q(null), [Q, A] = ee(!1), [Y, j] = ee([]), [V, ae] = ee(0), [w, R] = ee(0), [_, ne] = ee(null), [ie, P] = ee({
19188
19188
  title1: "",
19189
19189
  title2: "",
19190
19190
  title3: ""
@@ -19196,7 +19196,7 @@ function Ah({
19196
19196
  const le = K.findIndex((Se) => Se.gridIndex === ye);
19197
19197
  if (le < 0) return;
19198
19198
  const fe = K[le];
19199
- R(le), j(fe.items), ae($e), M(fe.entry), ne(O ?? null), A(!0);
19199
+ R(le), j(fe.items), ae($e), P(fe.entry), ne(O ?? null), A(!0);
19200
19200
  }, _e = ve(() => {
19201
19201
  A(!1), ne(null);
19202
19202
  }, []), Le = ve(() => {
@@ -19209,18 +19209,18 @@ function Ah({
19209
19209
  }, [K, w, _, y]), Fe = ve((ye) => {
19210
19210
  if (K.length > 1) {
19211
19211
  const $e = K.length, O = (w + ye + $e) % $e, le = K[O], fe = Math.min(V, le.items.length - 1);
19212
- R(O), j(le.items), ae(fe), M(le.entry);
19212
+ R(O), j(le.items), ae(fe), P(le.entry);
19213
19213
  return;
19214
19214
  }
19215
19215
  ae(($e) => ($e + ye + Y.length) % Y.length);
19216
19216
  }, [K, w, V, Y.length]), me = K.length > 1 || Y.length > 1;
19217
- return Me(() => {
19217
+ return Pe(() => {
19218
19218
  if (!Q || typeof document > "u") return;
19219
19219
  const ye = document.body.style.overflow;
19220
19220
  return document.body.style.overflow = "hidden", () => {
19221
19221
  document.body.style.overflow = ye;
19222
19222
  };
19223
- }, [Q]), Me(() => {
19223
+ }, [Q]), Pe(() => {
19224
19224
  !n || o || i || A(!1);
19225
19225
  }, [n, o, i]), /* @__PURE__ */ U(at, { children: [
19226
19226
  /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: oe } }),
@@ -19233,13 +19233,13 @@ function Ah({
19233
19233
  style: {
19234
19234
  gridTemplateColumns: `repeat(${E}, ${B})`,
19235
19235
  rowGap: 0,
19236
- columnGap: P,
19236
+ columnGap: M,
19237
19237
  width: F(s.wrapperWidth ?? 0, n),
19238
19238
  [`--${c}-align-entries-row-gap`]: F(d ?? 0, n)
19239
19239
  },
19240
19240
  children: Z.map((ye, $e) => {
19241
- const O = pl(ye.gallery), le = ml(O), fe = le.filter((re) => re.lightboxMedia).map((re) => re.lightboxMedia), Se = Math.floor($e / E) === Math.ceil(Z.length / E) - 1, Pe = Ee && $e >= pe ? `${de + ($e - pe)}` : void 0, Ce = le[0], W = Ce != null && Ce.lightboxMedia ? fe.findIndex((re) => re.url === Ce.lightboxMedia.url) : -1, he = /* @__PURE__ */ l("div", { className: `${c}-item-image-wrapper`, style: v, children: le.length > 0 && /* @__PURE__ */ l(
19242
- Mh,
19241
+ const O = pl(ye.gallery), le = ml(O), fe = le.filter((re) => re.lightboxMedia).map((re) => re.lightboxMedia), Se = Math.floor($e / E) === Math.ceil(Z.length / E) - 1, Me = Ee && $e >= pe ? `${de + ($e - pe)}` : void 0, Ce = le[0], W = Ce != null && Ce.lightboxMedia ? fe.findIndex((re) => re.url === Ce.lightboxMedia.url) : -1, he = /* @__PURE__ */ l("div", { className: `${c}-item-image-wrapper`, style: v, children: le.length > 0 && /* @__PURE__ */ l(
19242
+ Ph,
19243
19243
  {
19244
19244
  media: Ce.displayMedia,
19245
19245
  gridIndex: $e,
@@ -19261,7 +19261,7 @@ function Ah({
19261
19261
  ].filter(Boolean).join(" "),
19262
19262
  style: {
19263
19263
  width: B,
19264
- ...Pe ? { gridColumn: Pe } : {}
19264
+ ...Me ? { gridColumn: Me } : {}
19265
19265
  },
19266
19266
  children: [
19267
19267
  /* @__PURE__ */ l("div", { className: `${c}-item-title-row`, children: /* @__PURE__ */ l("div", { style: { height: 0, width: z } }) }),
@@ -22264,7 +22264,7 @@ function jh({
22264
22264
  style: n
22265
22265
  }) {
22266
22266
  const i = q(null);
22267
- return Me(() => {
22267
+ return Pe(() => {
22268
22268
  if (!e.isVideo) return;
22269
22269
  const o = i.current;
22270
22270
  if (!o) return;
@@ -22704,7 +22704,7 @@ const oi = [
22704
22704
  "CColumn",
22705
22705
  "DColumn",
22706
22706
  "EColumn"
22707
- ], zn = "cutLabel", Po = [
22707
+ ], zn = "cutLabel", Mo = [
22708
22708
  ...gl,
22709
22709
  zn
22710
22710
  ], Br = ["A", "B", "C", "D", "E"];
@@ -22853,7 +22853,7 @@ function cf() {
22853
22853
  type: "tab",
22854
22854
  id: "listColumnTextStyle",
22855
22855
  tabs: Object.fromEntries(
22856
- Po.map((e) => [
22856
+ Mo.map((e) => [
22857
22857
  lf[e],
22858
22858
  sf(e)
22859
22859
  ])
@@ -23114,13 +23114,13 @@ function wf(e, t, n) {
23114
23114
  const o = Gc(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, c = xo(e), s = xo(t), d = e.type === "b" || e.type === void 0 && t.type === "b", u = typeof r == "number" ? r : typeof a == "number" ? a : oi.length, f = (S) => {
23115
23115
  if (d)
23116
23116
  return S;
23117
- const G = tr({ ...t, ...S }), E = xo(S), B = hr(u, E, G), P = ff(u, B, {
23117
+ const G = tr({ ...t, ...S }), E = xo(S), B = hr(u, E, G), M = ff(u, B, {
23118
23118
  ...t,
23119
23119
  ...S
23120
23120
  });
23121
- return Object.keys(P).length === 0 ? S : {
23121
+ return Object.keys(M).length === 0 ? S : {
23122
23122
  ...S,
23123
- ...P
23123
+ ...M
23124
23124
  };
23125
23125
  };
23126
23126
  if (typeof r == "number" && r !== a)
@@ -23216,7 +23216,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23216
23216
  cutLabel: G,
23217
23217
  imageSize: E,
23218
23218
  imageOnHover: B,
23219
- entryHoverEffect: P,
23219
+ entryHoverEffect: M,
23220
23220
  entryHoverShowOption: $,
23221
23221
  rowPaddingTop: z,
23222
23222
  rowPaddingBottom: v,
@@ -23229,7 +23229,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23229
23229
  textHoverColor: V,
23230
23230
  backgroundHoverColor: ae,
23231
23231
  dividerHoverColor: w
23232
- } = e, [R, _] = ee(void 0), [ne, ie] = ee(null), M = B === "on" && (!n || i), se = (I ?? 0) > 0, b = f === "b", oe = q(null), Z = q(null), [be, Ee] = ee(null), [pe, de] = ee(Ao), K = Gc(pe), te = Math.max(0, ((y ?? 0) - K) / 2), ge = Math.min(Q ?? 0, te), _e = Math.max(ge, Hi), Le = ((y ?? 0) + K) / 2;
23232
+ } = e, [R, _] = ee(void 0), [ne, ie] = ee(null), P = B === "on" && (!n || i), se = (I ?? 0) > 0, b = f === "b", oe = q(null), Z = q(null), [be, Ee] = ee(null), [pe, de] = ee(Ao), K = Gc(pe), te = Math.max(0, ((y ?? 0) - K) / 2), ge = Math.min(Q ?? 0, te), _e = Math.max(ge, Hi), Le = ((y ?? 0) + K) / 2;
23233
23233
  Ot(() => {
23234
23234
  if (!n) {
23235
23235
  de(Ao);
@@ -23248,9 +23248,9 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23248
23248
  for (; ft && !ft.style.getPropertyValue("--cntrl-article-width"); )
23249
23249
  ft = ft.parentElement;
23250
23250
  return ft && et.observe(ft), () => et.disconnect();
23251
- }, [n, a]), Me(() => {
23251
+ }, [n, a]), Pe(() => {
23252
23252
  _(void 0);
23253
- }, [I, T, t, C]), Me(() => {
23253
+ }, [I, T, t, C]), Pe(() => {
23254
23254
  n && !i && _(void 0);
23255
23255
  }, [n, i]);
23256
23256
  const Fe = Li(s, {
@@ -23260,14 +23260,14 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23260
23260
  textHoverColor: V,
23261
23261
  backgroundHoverColor: ae,
23262
23262
  dividerHoverColor: w
23263
- }, df, uf), me = r && r !== "default" ? `${s}-state-${r}` : "", $e = `${!n || i ? P === "default" ? `${s}-entry-hover-default` : P === "blinds" ? `${s}-entry-hover-blinds` : P === "reveal" ? `${s}-entry-hover-reveal` : "" : ""} ${me}`.trim(), O = P === "reveal" && (!n || i), le = (h == null ? void 0 : h[0]) ?? !1, fe = (h == null ? void 0 : h[1]) ?? !1, Se = q(e), Pe = q(a);
23264
- Me(() => {
23263
+ }, df, uf), me = r && r !== "default" ? `${s}-state-${r}` : "", $e = `${!n || i ? M === "default" ? `${s}-entry-hover-default` : M === "blinds" ? `${s}-entry-hover-blinds` : M === "reveal" ? `${s}-entry-hover-reveal` : "" : ""} ${me}`.trim(), O = M === "reveal" && (!n || i), le = (h == null ? void 0 : h[0]) ?? !1, fe = (h == null ? void 0 : h[1]) ?? !1, Se = q(e), Me = q(a);
23264
+ Pe(() => {
23265
23265
  if (!c || !n) {
23266
- Se.current = e, Pe.current = a;
23266
+ Se.current = e, Me.current = a;
23267
23267
  return;
23268
23268
  }
23269
- if (Pe.current !== a) {
23270
- Se.current = e, Pe.current = a;
23269
+ if (Me.current !== a) {
23270
+ Se.current = e, Me.current = a;
23271
23271
  return;
23272
23272
  }
23273
23273
  const Re = Se.current;
@@ -23385,7 +23385,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23385
23385
  y: Re.clientY - et.top + rs
23386
23386
  };
23387
23387
  }, Dt = (Re, Ye) => {
23388
- if (!M) return;
23388
+ if (!P) return;
23389
23389
  const et = Re.image;
23390
23390
  if (!(et != null && et.url)) {
23391
23391
  ie(null);
@@ -23402,13 +23402,13 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23402
23402
  y: Nt
23403
23403
  });
23404
23404
  }, rn = (Re) => {
23405
- if (!M || !ne) return;
23405
+ if (!P || !ne) return;
23406
23406
  const { x: Ye, y: et } = xt(Re);
23407
23407
  ie((ft) => !ft || ft.x === Ye && ft.y === et ? ft : { ...ft, x: Ye, y: et });
23408
23408
  }, cn = () => {
23409
23409
  ie(null);
23410
- }, Mt = (Re) => {
23411
- O && ns(Re, s), M && ie(null);
23410
+ }, Pt = (Re) => {
23411
+ O && ns(Re, s), P && ie(null);
23412
23412
  }, Et = (Re) => {
23413
23413
  O && is(Re, s);
23414
23414
  };
@@ -23497,47 +23497,47 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23497
23497
  const _t = Array.from(Wt.querySelectorAll("[data-list-col]"));
23498
23498
  of(Wt, _t, it);
23499
23499
  }), Re.offsetHeight, nt.forEach((Wt) => {
23500
- const _t = Array.from(Wt.querySelectorAll("[data-list-col]")), Lt = Wt.getBoundingClientRect().top, Vt = /* @__PURE__ */ new Map(), Xt = _t.map((Pt) => {
23501
- const en = Pt.querySelector(`.${s}-list-col-title`), nn = {
23502
- el: Pt,
23500
+ const _t = Array.from(Wt.querySelectorAll("[data-list-col]")), Lt = Wt.getBoundingClientRect().top, Vt = /* @__PURE__ */ new Map(), Xt = _t.map((Mt) => {
23501
+ const en = Mt.querySelector(`.${s}-list-col-title`), nn = {
23502
+ el: Mt,
23503
23503
  titleEl: en,
23504
- letter: Pt.getAttribute("data-col-letter") ?? "",
23505
- kind: Pt.getAttribute("data-valign") ?? "top",
23506
- anchor: Pt.getAttribute("data-valign-anchor")
23504
+ letter: Mt.getAttribute("data-col-letter") ?? "",
23505
+ kind: Mt.getAttribute("data-valign") ?? "top",
23506
+ anchor: Mt.getAttribute("data-valign-anchor")
23507
23507
  };
23508
23508
  return Vt.set(nn.letter, nn), nn;
23509
- }), Kt = /* @__PURE__ */ new Map(), Qt = (Pt, en) => {
23510
- const nn = Kt.get(Pt.letter);
23509
+ }), Kt = /* @__PURE__ */ new Map(), Qt = (Mt, en) => {
23510
+ const nn = Kt.get(Mt.letter);
23511
23511
  if (nn !== void 0) return nn;
23512
- const on = Pt.anchor ? Vt.get(Pt.anchor) : void 0;
23513
- if (Pt.kind !== "baseline" || !on || en.has(Pt.letter)) {
23512
+ const on = Mt.anchor ? Vt.get(Mt.anchor) : void 0;
23513
+ if (Mt.kind !== "baseline" || !on || en.has(Mt.letter)) {
23514
23514
  const we = ca(
23515
- Pt,
23515
+ Mt,
23516
23516
  Lt,
23517
23517
  it,
23518
23518
  mt
23519
23519
  );
23520
- return Kt.set(Pt.letter, we), we;
23520
+ return Kt.set(Mt.letter, we), we;
23521
23521
  }
23522
- en.add(Pt.letter);
23522
+ en.add(Mt.letter);
23523
23523
  const an = Qt(on, en);
23524
- en.delete(Pt.letter);
23524
+ en.delete(Mt.letter);
23525
23525
  const Yt = ca(
23526
- Pt,
23526
+ Mt,
23527
23527
  Lt,
23528
23528
  it,
23529
23529
  mt
23530
23530
  ), At = an - Yt;
23531
- rf(Pt.titleEl, At);
23531
+ rf(Mt.titleEl, At);
23532
23532
  const x = ca(
23533
- Pt,
23533
+ Mt,
23534
23534
  Lt,
23535
23535
  it,
23536
23536
  mt
23537
23537
  );
23538
- return Kt.set(Pt.letter, x), x;
23538
+ return Kt.set(Mt.letter, x), x;
23539
23539
  };
23540
- Xt.forEach((Pt) => Qt(Pt, /* @__PURE__ */ new Set()));
23540
+ Xt.forEach((Mt) => Qt(Mt, /* @__PURE__ */ new Set()));
23541
23541
  });
23542
23542
  };
23543
23543
  let ft = null;
@@ -23575,8 +23575,8 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23575
23575
  style: {
23576
23576
  width: F(y ?? 0, n)
23577
23577
  },
23578
- onMouseMove: M ? rn : void 0,
23579
- onMouseLeave: M ? cn : void 0,
23578
+ onMouseMove: P ? rn : void 0,
23579
+ onMouseLeave: P ? cn : void 0,
23580
23580
  children: [
23581
23581
  /* @__PURE__ */ U("div", { style: { width: "100%", position: "relative" }, children: [
23582
23582
  pt.map((Re, Ye) => {
@@ -23600,7 +23600,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23600
23600
  ...et ? { href: Re.link, target: "_blank" } : {},
23601
23601
  style: Nt,
23602
23602
  onMouseEnter: (ct) => {
23603
- O && (et || $ === "always") && ns(ct, s), M && Dt(Re, ct);
23603
+ O && (et || $ === "always") && ns(ct, s), P && Dt(Re, ct);
23604
23604
  },
23605
23605
  onMouseLeave: (ct) => {
23606
23606
  O && (et || $ === "always") && is(ct, s);
@@ -23946,7 +23946,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23946
23946
  )
23947
23947
  },
23948
23948
  onClick: ke ? Ue : void 0,
23949
- onMouseEnter: O || M ? Mt : void 0,
23949
+ onMouseEnter: O || P ? Pt : void 0,
23950
23950
  onMouseLeave: O ? Et : void 0,
23951
23951
  children: /* @__PURE__ */ l(
23952
23952
  "div",
@@ -23982,7 +23982,7 @@ function Lf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
23982
23982
  }
23983
23983
  );
23984
23984
  })(),
23985
- M && ne && (() => {
23985
+ P && ne && (() => {
23986
23986
  const Re = `${ne.widthPx}px`, Ye = {
23987
23987
  width: Re,
23988
23988
  height: "auto",
@@ -26946,7 +26946,7 @@ function nr(e) {
26946
26946
  display: { type: "range-control" }
26947
26947
  };
26948
26948
  }
26949
- function Mf() {
26949
+ function Pf() {
26950
26950
  return Object.fromEntries(
26951
26951
  so.map((e, t) => {
26952
26952
  const n = oi[t], i = `${e} column`;
@@ -26954,7 +26954,7 @@ function Mf() {
26954
26954
  })
26955
26955
  );
26956
26956
  }
26957
- function Pf() {
26957
+ function Mf() {
26958
26958
  const e = {};
26959
26959
  for (const t of so)
26960
26960
  e[`${t}ColumnWidth`] = nr(`${t} column width`), e[`${t}ColumnPaddingLeft`] = nr(`${t} column padding left`), e[`${t}ColumnPaddingRight`] = nr(`${t} column padding right`), e[`${t}ColumnPaddingBottom`] = nr(`${t} column padding bottom`);
@@ -27042,7 +27042,7 @@ function Ef(e) {
27042
27042
  display: { type: "text-appearance" }
27043
27043
  }, t;
27044
27044
  }
27045
- const Af = Po.reduce(
27045
+ const Af = Mo.reduce(
27046
27046
  (e, t) => ({
27047
27047
  ...e,
27048
27048
  ...Ef(t)
@@ -27084,7 +27084,7 @@ function Wf(e, t, n) {
27084
27084
  return i("verticalAlign") && t.verticalAlign !== void 0 && (o[`${e}VerticalAlign`] = hl(t.verticalAlign)), i("textFontFamily") && t.textFontFamily !== void 0 && (o[Ft(e, "textFontFamily")] = t.textFontFamily), i("textFontSettings") && t.textFontSettings !== void 0 && (o[Ft(e, "textFontSettings")] = t.textFontSettings), i("textFontSize") && t.textFontSize !== void 0 && (o[Ft(e, "textFontSize")] = t.textFontSize), i("textLineHeight") && t.textLineHeight !== void 0 && (o[Ft(e, "textLineHeight")] = t.textLineHeight), i("textLetterSpacing") && t.textLetterSpacing !== void 0 && (o[Ft(e, "textLetterSpacing")] = t.textLetterSpacing), i("textWordSpacing") && t.textWordSpacing !== void 0 && (o[Ft(e, "textWordSpacing")] = t.textWordSpacing), i("textTextAlign") && t.textTextAlign !== void 0 && (o[Ft(e, "textTextAlign")] = t.textTextAlign), i("textTextAppearance") && t.textTextAppearance !== void 0 && (o[Ft(e, "textTextAppearance")] = t.textTextAppearance), o;
27085
27085
  }
27086
27086
  function fr(e = {}, t) {
27087
- return Po.reduce(
27087
+ return Mo.reduce(
27088
27088
  (n, i) => ({
27089
27089
  ...n,
27090
27090
  ...Wf(i, Ff(i, e), t)
@@ -27268,7 +27268,7 @@ const Df = [
27268
27268
  items: {
27269
27269
  type: "object",
27270
27270
  properties: {
27271
- ...Mf(),
27271
+ ...Pf(),
27272
27272
  image: {
27273
27273
  type: "object",
27274
27274
  label: "Image",
@@ -27446,7 +27446,7 @@ const Df = [
27446
27446
  max: 100,
27447
27447
  display: { type: "range-control" }
27448
27448
  },
27449
- ...Pf(),
27449
+ ...Mf(),
27450
27450
  columnsOrder: {
27451
27451
  type: "array",
27452
27452
  scope: "layout",
@@ -27706,10 +27706,10 @@ const Df = [
27706
27706
  },
27707
27707
  fontSettingsPaths: {
27708
27708
  content: [],
27709
- parameters: [...Po.map((e) => ({ path: `${Ft(e, "textFontFamily")}` }))]
27709
+ parameters: [...Mo.map((e) => ({ path: `${Ft(e, "textFontFamily")}` }))]
27710
27710
  },
27711
27711
  fontRelations: {
27712
- ...Po.reduce((e, t) => ({
27712
+ ...Mo.reduce((e, t) => ({
27713
27713
  ...e,
27714
27714
  [`${t}TextFontSettings`]: `${Ft(t, "textFontFamily")}`
27715
27715
  }), {})
@@ -27936,7 +27936,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
27936
27936
  dividerColor: G = "#0000001F",
27937
27937
  iconColor: E = "#000000",
27938
27938
  questionHoverColor: B = "#666666",
27939
- iconHoverColor: P = "#666666",
27939
+ iconHoverColor: M = "#666666",
27940
27940
  iconActiveColor: $ = "#000000",
27941
27941
  dividerHoverColor: z = "#000000",
27942
27942
  questionFontFamily: v,
@@ -27953,7 +27953,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
27953
27953
  answerLetterSpacing: _,
27954
27954
  answerWordSpacing: ne,
27955
27955
  answerTextAppearance: ie,
27956
- questionPaddingLeft: M = 0,
27956
+ questionPaddingLeft: P = 0,
27957
27957
  questionPaddingTop: se = 0,
27958
27958
  questionPaddingBottom: b = 0,
27959
27959
  answerPaddingLeft: oe = 0,
@@ -27961,12 +27961,12 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
27961
27961
  answerPaddingTop: be = 0,
27962
27962
  answerPaddingBottom: Ee = 0
27963
27963
  } = e, pe = t ?? [], [de, K] = ee(() => /* @__PURE__ */ new Set()), te = !n || i;
27964
- Me(() => {
27964
+ Pe(() => {
27965
27965
  K(/* @__PURE__ */ new Set());
27966
- }, [C]), Me(() => {
27966
+ }, [C]), Pe(() => {
27967
27967
  n && !o && !i && K(/* @__PURE__ */ new Set());
27968
27968
  }, [n, o, i]);
27969
- const ge = (We) => F(We, n ?? !1), _e = Math.max(M, Un), Le = Math.max(se, Un), Fe = Math.max(b, Un), me = Math.max(oe, Un), ye = Math.max(Z, Un), $e = Math.max(be, Un), O = Math.max(Ee, Un), le = Math.max(0, (s ?? 1) - h - m), fe = Math.max(0, (s ?? 1) - Z), Se = Math.max(0, (s ?? 1) - oe), Pe = Math.max(h, Un), Ce = Math.max(0, (s ?? 1) - M - m), W = je(() => de.size === 0 ? 0 : Math.min(...de), [de]), he = ve((We) => de.has(We), [de]), re = te && y === "default" ? `${a}-entry-hover-default` : "", N = g ?? "", X = N !== "", Ae = I.replace(/^rotate /, ""), ue = `${a}-icon-anim-${Ae}`, D = pn(Zt(
27969
+ const ge = (We) => F(We, n ?? !1), _e = Math.max(P, Un), Le = Math.max(se, Un), Fe = Math.max(b, Un), me = Math.max(oe, Un), ye = Math.max(Z, Un), $e = Math.max(be, Un), O = Math.max(Ee, Un), le = Math.max(0, (s ?? 1) - h - m), fe = Math.max(0, (s ?? 1) - Z), Se = Math.max(0, (s ?? 1) - oe), Me = Math.max(h, Un), Ce = Math.max(0, (s ?? 1) - P - m), W = je(() => de.size === 0 ? 0 : Math.min(...de), [de]), he = ve((We) => de.has(We), [de]), re = te && y === "default" ? `${a}-entry-hover-default` : "", N = g ?? "", X = N !== "", Ae = I.replace(/^rotate /, ""), ue = `${a}-icon-anim-${Ae}`, D = pn(Zt(
27970
27970
  vs(
27971
27971
  v,
27972
27972
  k,
@@ -28006,7 +28006,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
28006
28006
  dividerColor: G,
28007
28007
  iconColor: E,
28008
28008
  questionHoverColor: B,
28009
- iconHoverColor: P,
28009
+ iconHoverColor: M,
28010
28010
  iconActiveColor: $,
28011
28011
  dividerHoverColor: z
28012
28012
  }, Gf, Uf), Xe = r && r !== "default" ? `${a}-state-${r}` : "", xe = ve((We) => {
@@ -28105,7 +28105,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
28105
28105
  style: {
28106
28106
  top: 0,
28107
28107
  right: 0,
28108
- width: ge(Pe),
28108
+ width: ge(Me),
28109
28109
  height: "100%"
28110
28110
  }
28111
28111
  }
@@ -28120,7 +28120,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
28120
28120
  style: {
28121
28121
  ...D,
28122
28122
  ...lt,
28123
- paddingLeft: ge(M),
28123
+ paddingLeft: ge(P),
28124
28124
  paddingRight: ge(h)
28125
28125
  },
28126
28126
  onClick: () => xe(Ie),
@@ -28140,7 +28140,7 @@ function Xf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
28140
28140
  {
28141
28141
  url: N,
28142
28142
  fill: E,
28143
- hoverFill: P,
28143
+ hoverFill: M,
28144
28144
  className: `${a}-icon-image`
28145
28145
  }
28146
28146
  ) }) : /* @__PURE__ */ l("span", { className: `${a}-icon ${a}-icon-default ${ue}`, "aria-hidden": "true" }))
@@ -29628,7 +29628,7 @@ const bs = {
29628
29628
  S(v);
29629
29629
  }, [S]), E = ve((v) => {
29630
29630
  S(v);
29631
- }, [S]), B = o > 0, P = a ? `transform ${n}ms ease` : "none", $ = a ? `opacity ${n}ms ease` : "none", z = o > 0 || a;
29631
+ }, [S]), B = o > 0, M = a ? `transform ${n}ms ease` : "none", $ = a ? `opacity ${n}ms ease` : "none", z = o > 0 || a;
29632
29632
  return {
29633
29633
  isSwipeDragging: B,
29634
29634
  backdropStyle: {
@@ -29637,7 +29637,7 @@ const bs = {
29637
29637
  },
29638
29638
  mediaAreaStyle: {
29639
29639
  transform: C(o),
29640
- transition: P,
29640
+ transition: M,
29641
29641
  touchAction: B ? "none" : void 0,
29642
29642
  willChange: B ? "transform" : void 0
29643
29643
  },
@@ -29656,7 +29656,7 @@ const bs = {
29656
29656
  } : void 0
29657
29657
  };
29658
29658
  }, ty = "[data-lightbox-scrollable]", Zc = () => {
29659
- Me(() => {
29659
+ Pe(() => {
29660
29660
  const e = window.scrollY, t = document.body.style.overflow, n = document.body.style.position, i = document.body.style.top, o = document.body.style.width, r = document.documentElement.style.overflow;
29661
29661
  document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.top = `-${e}px`, document.body.style.width = "100%", document.documentElement.style.overflow = "hidden";
29662
29662
  const a = (c) => {
@@ -29869,7 +29869,7 @@ const bs = {
29869
29869
  thumbnailActiveColor: G,
29870
29870
  title1Width: E,
29871
29871
  title2Width: B,
29872
- title3Width: P,
29872
+ title3Width: M,
29873
29873
  title1MarginLeft: $ = 0,
29874
29874
  title2MarginLeft: z = 0,
29875
29875
  title3MarginLeft: v = 0,
@@ -29877,16 +29877,16 @@ const bs = {
29877
29877
  titleHeaderLayout: L = "desktop",
29878
29878
  contentMarginTop: Q,
29879
29879
  iconMarginLeft: A
29880
- } = n, Y = (p) => F(p, i ?? !1), j = s ?? n.thumnailSize ?? 0.03, V = Y(j), ae = Y(d), w = Y(u ?? 0.02), R = Y(f ?? 0), _ = Y(Q ?? 0), ne = or(_), ie = Y(A ?? 0), [M, se] = ee(0), b = q(M);
29881
- b.current = M;
29882
- const oe = t[M], { title1: Z, title2: be, title3: Ee } = xy(oe), pe = ma("title1", pa(n, "title1"), i), de = ma("title2", pa(n, "title2"), i), K = ma("title3", pa(n, "title3"), i), te = L === "mobile", ge = !o && (!i || r), _e = ge, Le = ge, Fe = ge, me = Bn(T), ye = me ? { "--image-aspect-ratio": Vr(T) } : void 0, $e = !!(Z || be || Ee), O = je(
29880
+ } = n, Y = (p) => F(p, i ?? !1), j = s ?? n.thumnailSize ?? 0.03, V = Y(j), ae = Y(d), w = Y(u ?? 0.02), R = Y(f ?? 0), _ = Y(Q ?? 0), ne = or(_), ie = Y(A ?? 0), [P, se] = ee(0), b = q(P);
29881
+ b.current = P;
29882
+ const oe = t[P], { title1: Z, title2: be, title3: Ee } = xy(oe), pe = ma("title1", pa(n, "title1"), i), de = ma("title2", pa(n, "title2"), i), K = ma("title3", pa(n, "title3"), i), te = L === "mobile", ge = !o && (!i || r), _e = ge, Le = ge, Fe = ge, me = Bn(T), ye = me ? { "--image-aspect-ratio": Vr(T) } : void 0, $e = !!(Z || be || Ee), O = je(
29883
29883
  () => $y(e, Z, be, Ee, pe, de, K),
29884
- [e, M, Z, be, Ee, pe, de, K]
29885
- ), le = je(() => ({ title1Width: E, title2Width: B, title3Width: P }), [E, B, P]), fe = je(() => O.map((p) => le[p.widthKey]), [O, le]), Se = je(() => vl(O.length, fe), [O.length, fe]), Pe = je(() => Jc(O.length, fe), [O.length, fe]), Ce = je(() => O.filter((p) => p.prefix === "title1"), [O]), W = je(() => O.filter((p) => p.prefix === "title2" || p.prefix === "title3"), [O]), he = je(() => Ss(Ce, le), [Ce, le]), re = je(() => Ss(W, le), [W, le]), N = ve((p, H) => {
29884
+ [e, P, Z, be, Ee, pe, de, K]
29885
+ ), le = je(() => ({ title1Width: E, title2Width: B, title3Width: M }), [E, B, M]), fe = je(() => O.map((p) => le[p.widthKey]), [O, le]), Se = je(() => vl(O.length, fe), [O.length, fe]), Me = je(() => Jc(O.length, fe), [O.length, fe]), Ce = je(() => O.filter((p) => p.prefix === "title1"), [O]), W = je(() => O.filter((p) => p.prefix === "title2" || p.prefix === "title3"), [O]), he = je(() => Ss(Ce, le), [Ce, le]), re = je(() => Ss(W, le), [W, le]), N = ve((p, H) => {
29886
29886
  const J = O.indexOf(p);
29887
29887
  if (!te || H === "single-row")
29888
29888
  return {
29889
- effectiveWidth: Pe[J] ?? 0,
29889
+ effectiveWidth: Me[J] ?? 0,
29890
29890
  resolvedWidth: Se[J] ?? 0,
29891
29891
  maxWidth: rr(J, Se)
29892
29892
  };
@@ -29907,7 +29907,7 @@ const bs = {
29907
29907
  }, [
29908
29908
  W,
29909
29909
  re,
29910
- Pe,
29910
+ Me,
29911
29911
  Se,
29912
29912
  O,
29913
29913
  Ce,
@@ -30119,7 +30119,7 @@ const bs = {
30119
30119
  }), Rt = q(null), ht = q(null), Je = q(0), Qe = q("forward"), Ve = q(0), St = q(null), bt = q(!1), xt = t.length > 1 && (!o || !!r), Dt = xt ? 3 : 1, rn = je(
30120
30120
  () => Array.from({ length: Dt }, () => t).flat(),
30121
30121
  [t, Dt]
30122
- ), [cn, Mt] = ee(!1), [Et, Gt] = ee(!1), [Bt, Re] = ee(!0), Ye = q(null), et = q(null), ft = q(!1), Nt = q(!1), wt = q(null), ct = q(null), tn = _e && !Bt, nt = ve(() => {
30122
+ ), [cn, Pt] = ee(!1), [Et, Gt] = ee(!1), [Bt, Re] = ee(!0), Ye = q(null), et = q(null), ft = q(!1), Nt = q(!1), wt = q(null), ct = q(null), tn = _e && !Bt, nt = ve(() => {
30123
30123
  _e && (Re(!0), ct.current && clearTimeout(ct.current), ct.current = setTimeout(() => {
30124
30124
  ot.current.isActive || Re(!1);
30125
30125
  }, cy));
@@ -30235,7 +30235,7 @@ const bs = {
30235
30235
  isSwipeDragging: Xt,
30236
30236
  backdropStyle: Kt,
30237
30237
  mediaAreaStyle: Qt,
30238
- overlayContentStyle: Pt,
30238
+ overlayContentStyle: Mt,
30239
30239
  swipeHandlers: en,
30240
30240
  dismissAreaStyle: nn
30241
30241
  } = Yc({
@@ -30303,7 +30303,7 @@ const bs = {
30303
30303
  const dn = H.scrollWidth - H.clientWidth;
30304
30304
  let ln = Ne;
30305
30305
  if (!p && Ye.current === null) {
30306
- const Pi = De.current[J - 1], co = De.current[J + 1], qo = Pi ? Te.offsetLeft - Pi.offsetLeft : co ? co.offsetLeft - Te.offsetLeft : Te.offsetWidth;
30306
+ const Mi = De.current[J - 1], co = De.current[J + 1], qo = Mi ? Te.offsetLeft - Mi.offsetLeft : co ? co.offsetLeft - Te.offsetLeft : Te.offsetWidth;
30307
30307
  kt > Ze ? ln += qo : Tt < Ne && (ln -= qo);
30308
30308
  } else kt > Ze ? ln = kt - H.clientWidth : ln = Tt;
30309
30309
  H.scrollLeft = Math.max(0, Math.min(dn, ln));
@@ -30390,7 +30390,7 @@ const bs = {
30390
30390
  p,
30391
30391
  fd
30392
30392
  );
30393
- Pn(yd, H);
30393
+ Mn(yd, H);
30394
30394
  return;
30395
30395
  }
30396
30396
  const co = Te ?? Ne.scrollLeft, qo = we(co), xl = Ge.current[qo];
@@ -30399,7 +30399,7 @@ const bs = {
30399
30399
  return;
30400
30400
  }
30401
30401
  Gr("auto");
30402
- }, Pn = (p, H = "smooth") => {
30402
+ }, Mn = (p, H = "smooth") => {
30403
30403
  const J = Ue.current;
30404
30404
  if (!J || t.length === 0) return;
30405
30405
  const Te = Yt(p, J.scrollLeft), Ne = Ge.current[Te];
@@ -30408,16 +30408,16 @@ const bs = {
30408
30408
  activeIndex: p,
30409
30409
  onComplete: H === "smooth" ? Ut : void 0
30410
30410
  }));
30411
- }, Mi = () => {
30411
+ }, Pi = () => {
30412
30412
  Rt.current && (window.removeEventListener("pointerup", Rt.current), window.removeEventListener("pointercancel", Rt.current), Rt.current = null);
30413
30413
  }, Go = (p, H, J, Te, Ne) => {
30414
30414
  const Ze = J - p, Tt = Te - H, kt = Math.abs(Ze), dn = Math.abs(Tt);
30415
30415
  if (kt < gy || kt <= dn) return !1;
30416
- const ln = Ze < 0 ? 1 : -1, Pi = xt ? (Ne + ln + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Ne + ln));
30417
- return Pi === Ne ? !1 : (Pn(Pi), !0);
30416
+ const ln = Ze < 0 ? 1 : -1, Mi = xt ? (Ne + ln + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Ne + ln));
30417
+ return Mi === Ne ? !1 : (Mn(Mi), !0);
30418
30418
  }, di = (p) => {
30419
30419
  if (!ot.current.isActive) return;
30420
- Mi();
30420
+ Pi();
30421
30421
  const H = Ue.current;
30422
30422
  if (!H) return;
30423
30423
  const { scrollLeft: J, startActiveIndex: Te, hasMoved: Ne } = ot.current, Ze = H.scrollLeft;
@@ -30427,7 +30427,7 @@ const bs = {
30427
30427
  scrollLeft: 0,
30428
30428
  startActiveIndex: 0,
30429
30429
  hasMoved: !1
30430
- }, Mt(!1), p !== void 0 && H.hasPointerCapture(p) && H.releasePointerCapture(p), Ne ? Ur(J, "smooth", Te, Ze) : (Ht(!0), Ct()), nt();
30430
+ }, Pt(!1), p !== void 0 && H.hasPointerCapture(p) && H.releasePointerCapture(p), Ne ? Ur(J, "smooth", Te, Ze) : (Ht(!0), Ct()), nt();
30431
30431
  }, Uo = (p, H) => {
30432
30432
  const J = vt.current;
30433
30433
  vt.current = null, J && (Go(
@@ -30457,7 +30457,7 @@ const bs = {
30457
30457
  scrollLeft: H.scrollLeft,
30458
30458
  startActiveIndex: b.current,
30459
30459
  hasMoved: !1
30460
- }, Ht(!1), nt(), H.setPointerCapture(p.pointerId), Mi();
30460
+ }, Ht(!1), nt(), H.setPointerCapture(p.pointerId), Pi();
30461
30461
  const J = (Te) => {
30462
30462
  Te.pointerType === "mouse" && di(Te.pointerId);
30463
30463
  };
@@ -30471,7 +30471,7 @@ const bs = {
30471
30471
  return;
30472
30472
  }
30473
30473
  const J = p.clientX - ot.current.startX;
30474
- Math.abs(J) > my && (ot.current.hasMoved = !0, Mt(!0)), ot.current.hasMoved && (p.preventDefault(), H.scrollLeft = ot.current.scrollLeft - J, an(!0), Ct(), nt());
30474
+ Math.abs(J) > my && (ot.current.hasMoved = !0, Pt(!0)), ot.current.hasMoved && (p.preventDefault(), H.scrollLeft = ot.current.scrollLeft - J, an(!0), Ct(), nt());
30475
30475
  }, ce = (p) => {
30476
30476
  if (Le) {
30477
30477
  if (p.pointerType === "touch") {
@@ -30483,12 +30483,12 @@ const bs = {
30483
30483
  }, Be = (p) => {
30484
30484
  !Le || p.pointerType !== "mouse" || di(p.pointerId);
30485
30485
  };
30486
- return Zc(), Me(() => {
30486
+ return Zc(), Pe(() => {
30487
30487
  const p = requestAnimationFrame(() => Gt(!0));
30488
30488
  return () => {
30489
- cancelAnimationFrame(p), yn(), Mi(), et.current !== null && (cancelAnimationFrame(et.current), et.current = null), wt.current && clearTimeout(wt.current), ct.current && clearTimeout(ct.current);
30489
+ cancelAnimationFrame(p), yn(), Pi(), et.current !== null && (cancelAnimationFrame(et.current), et.current = null), wt.current && clearTimeout(wt.current), ct.current && clearTimeout(ct.current);
30490
30490
  };
30491
- }, []), Me(() => {
30491
+ }, []), Pe(() => {
30492
30492
  if (!_e) {
30493
30493
  Re(!0);
30494
30494
  return;
@@ -30500,7 +30500,7 @@ const bs = {
30500
30500
  return p.addEventListener("pointermove", H), p.addEventListener("pointerdown", H), () => {
30501
30501
  p.removeEventListener("pointermove", H), p.removeEventListener("pointerdown", H), ct.current && clearTimeout(ct.current);
30502
30502
  };
30503
- }, [_e, nt]), Me(() => {
30503
+ }, [_e, nt]), Pe(() => {
30504
30504
  const p = (H) => {
30505
30505
  H.key === "Escape" && it();
30506
30506
  };
@@ -30508,10 +30508,10 @@ const bs = {
30508
30508
  }, [it]), Ot(() => {
30509
30509
  on();
30510
30510
  }, [R, t.length, xt]), Ot(() => {
30511
- o || Pn(b.current, "auto");
30511
+ o || Mn(b.current, "auto");
30512
30512
  }, [R, o]), Ot(() => {
30513
- Pn(0, "auto");
30514
- }, [t.length, xt]), Me(() => {
30513
+ Mn(0, "auto");
30514
+ }, [t.length, xt]), Pe(() => {
30515
30515
  const p = Ue.current;
30516
30516
  if (!p || o || !ge) return;
30517
30517
  const H = (J) => {
@@ -30528,7 +30528,7 @@ const bs = {
30528
30528
  return p.addEventListener("wheel", H, { passive: !1 }), () => {
30529
30529
  p.removeEventListener("wheel", H), vn();
30530
30530
  };
30531
- }, [o, ge, xt]), Me(() => {
30531
+ }, [o, ge, xt]), Pe(() => {
30532
30532
  const p = Ue.current;
30533
30533
  if (!p) return;
30534
30534
  const H = () => {
@@ -30638,7 +30638,7 @@ const bs = {
30638
30638
  {
30639
30639
  className: `${e}-lightbox-content-inner`,
30640
30640
  "data-overlay-content-hidden": tn ? "true" : "false",
30641
- style: Pt,
30641
+ style: Mt,
30642
30642
  children: [
30643
30643
  /* @__PURE__ */ l(
30644
30644
  "div",
@@ -30712,11 +30712,11 @@ const bs = {
30712
30712
  {
30713
30713
  type: "button",
30714
30714
  className: `${e}-thumb`,
30715
- "data-active": M === Te ? "true" : "false",
30716
- onClick: () => ge && h === "click" && Pn(Te),
30717
- onMouseEnter: () => Fe && h === "hover" && Pn(Te),
30715
+ "data-active": P === Te ? "true" : "false",
30716
+ onClick: () => ge && h === "click" && Mn(Te),
30717
+ onMouseEnter: () => Fe && h === "hover" && Mn(Te),
30718
30718
  "aria-label": J.image.name ? `View ${J.image.name}` : `View image ${Te + 1}`,
30719
- "aria-current": M === Te ? "true" : void 0,
30719
+ "aria-current": P === Te ? "true" : void 0,
30720
30720
  children: /* @__PURE__ */ l(
30721
30721
  "img",
30722
30722
  {
@@ -31181,7 +31181,7 @@ const Iy = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
31181
31181
  const { prefix: a } = un(), { cover: c, coverFit: s } = e, d = q(null), [u, f] = ee(!1), y = t ?? [], C = u && y.length > 0, g = () => {
31182
31182
  y.length !== 0 && f(!0);
31183
31183
  };
31184
- return Me(() => {
31184
+ return Pe(() => {
31185
31185
  !n || i || o || f(!1);
31186
31186
  }, [n, i, o]), /* @__PURE__ */ U(at, { children: [
31187
31187
  /* @__PURE__ */ U("div", { ref: d, className: `${a}-wrapper`, children: [
@@ -31769,7 +31769,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
31769
31769
  </>
31770
31770
  );
31771
31771
  };
31772
- `, My = "data:image/svg+xml," + encodeURIComponent(
31772
+ `, Py = "data:image/svg+xml," + encodeURIComponent(
31773
31773
  '<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.959 0.40332L0.402635 15.9597" stroke="#000000" stroke-width="1.14"/><path d="M15.959 15.9594L0.402635 0.403002" stroke="#000000" stroke-width="1.14"/></svg>'
31774
31774
  ), hi = {
31775
31775
  fontSettings: {
@@ -31811,7 +31811,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
31811
31811
  }
31812
31812
  }
31813
31813
  };
31814
- function Py(e) {
31814
+ function My(e) {
31815
31815
  const t = {};
31816
31816
  return t[jt(e, "fontFamily")] = {
31817
31817
  type: "string",
@@ -31858,7 +31858,7 @@ function Py(e) {
31858
31858
  const Ey = to.reduce(
31859
31859
  (e, t) => ({
31860
31860
  ...e,
31861
- ...Py(t)
31861
+ ...My(t)
31862
31862
  }),
31863
31863
  {}
31864
31864
  ), Ay = to.reduce(
@@ -32116,7 +32116,7 @@ const ky = Sy(), Fy = {
32116
32116
  ratioValue: "1:1",
32117
32117
  reversed: !1
32118
32118
  },
32119
- closeIcon: My,
32119
+ closeIcon: Py,
32120
32120
  thumbnailObjectFit: {
32121
32121
  display: "fit",
32122
32122
  ratioValue: "16:9",
@@ -32441,7 +32441,7 @@ const ky = Sy(), Fy = {
32441
32441
  title3Width: G,
32442
32442
  title1MarginLeft: E = 0,
32443
32443
  title2MarginLeft: B = 0,
32444
- title3MarginLeft: P = 0,
32444
+ title3MarginLeft: M = 0,
32445
32445
  titleRowMarginBottom: $ = 0,
32446
32446
  titleHeaderLayout: z = "single-row",
32447
32447
  countCloseGap: v = 0,
@@ -32451,7 +32451,7 @@ const ky = Sy(), Fy = {
32451
32451
  closeIconHoverColor: A,
32452
32452
  contentMarginTop: Y = 0,
32453
32453
  iconMarginRight: j = 0
32454
- } = n, V = ve((ce) => F(ce, i ?? !1), [i]), ae = V(g ?? 0), w = `${m}%`, R = `${h}%`, _ = V(v), ne = V(Y), ie = V(j), M = xi("title1", bi(n, "title1"), i), se = xi("title2", bi(n, "title2"), i), b = xi("title3", bi(n, "title3"), i), oe = xi("count", bi(n, "count"), i), Z = z === "mobile", be = !i || !!r, Ee = !o && (!i || !!r), pe = je(() => gr(t, f), [t, f]), [de, K] = ee(a), te = pe[de], ge = te == null ? void 0 : te.entry, [_e, Le] = ee(!1), [Fe, me] = ee(null), [ye, $e] = ee(!1), [O, le] = ee(null), [fe, Se] = ee(!1), [Pe, Ce] = ee(0), [W, he] = ee(), [re, N] = ee(), [X, Ae] = ee(null), ue = q(null), D = q(0), qe = q(0), He = q(0), dt = q(!1), lt = q(null), pt = q(null), $t = q(null), Xe = q(null), xe = q(null), ke = q(null), Ue = q(null), We = ve(() => {
32454
+ } = n, V = ve((ce) => F(ce, i ?? !1), [i]), ae = V(g ?? 0), w = `${m}%`, R = `${h}%`, _ = V(v), ne = V(Y), ie = V(j), P = xi("title1", bi(n, "title1"), i), se = xi("title2", bi(n, "title2"), i), b = xi("title3", bi(n, "title3"), i), oe = xi("count", bi(n, "count"), i), Z = z === "mobile", be = !i || !!r, Ee = !o && (!i || !!r), pe = je(() => gr(t, f), [t, f]), [de, K] = ee(a), te = pe[de], ge = te == null ? void 0 : te.entry, [_e, Le] = ee(!1), [Fe, me] = ee(null), [ye, $e] = ee(!1), [O, le] = ee(null), [fe, Se] = ee(!1), [Me, Ce] = ee(0), [W, he] = ee(), [re, N] = ee(), [X, Ae] = ee(null), ue = q(null), D = q(0), qe = q(0), He = q(0), dt = q(!1), lt = q(null), pt = q(null), $t = q(null), Xe = q(null), xe = q(null), ke = q(null), Ue = q(null), We = ve(() => {
32455
32455
  const ce = pt.current;
32456
32456
  if (!ce) return;
32457
32457
  const Be = ce.closest(`.${e}-lightbox-content-area`);
@@ -32532,7 +32532,7 @@ const ky = Sy(), Fy = {
32532
32532
  const Be = Ue.current;
32533
32533
  (Be == null ? void 0 : Be.pointerId) === ce.pointerId && xt();
32534
32534
  }, [xt]);
32535
- Zc(), Me(() => {
32535
+ Zc(), Pe(() => {
32536
32536
  ke.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
32537
32537
  const ce = requestAnimationFrame(() => {
32538
32538
  Le(!0), requestAnimationFrame(() => {
@@ -32544,10 +32544,10 @@ const ky = Sy(), Fy = {
32544
32544
  const Be = ke.current;
32545
32545
  Be && document.contains(Be) && Be.focus({ preventScroll: !0 });
32546
32546
  };
32547
- }, []), Me(() => {
32547
+ }, []), Pe(() => {
32548
32548
  var ce;
32549
32549
  I !== "fade" && (qe.current = ((ce = pe[de]) == null ? void 0 : ce.entryIndex) ?? 0, Ie(), me(null), $e(!1), he(void 0), N(void 0));
32550
- }, [de, Ie, pe, I]), Me(() => {
32550
+ }, [de, Ie, pe, I]), Pe(() => {
32551
32551
  const ce = (Be) => {
32552
32552
  if (Be.key === "Escape") {
32553
32553
  Ge();
@@ -32583,7 +32583,7 @@ const ky = Sy(), Fy = {
32583
32583
  const ce = Math.max(0, pe.length - 1), Be = Math.min(Math.max(0, a), ce);
32584
32584
  He.current = Be, qe.current = ((p = pe[Be]) == null ? void 0 : p.entryIndex) ?? 0, K(Be);
32585
32585
  }, [a]);
32586
- const Mt = Fe !== null ? t[Fe] : null, Et = O !== null ? pe[O] : null, Gt = (ge == null ? void 0 : ge.title1) || (ge == null ? void 0 : ge.title2) || (ge == null ? void 0 : ge.title3) || (Mt == null ? void 0 : Mt.title1) || (Mt == null ? void 0 : Mt.title2) || (Mt == null ? void 0 : Mt.title3), Bt = oh(f, pe, t), Re = k !== null, Ye = Gt || Bt || Re, et = Bt && Re ? { gap: _ } : void 0, ft = `${e}-titles-stack${Z ? ` ${e}-titles-stack-stacked` : ""}`, Nt = `${e}-titles-layer-out${Z ? ` ${e}-titles-layer-out-stacked` : ""}`, wt = `${e}-titles-layer-out`, ct = (E ?? 0) > 0 || o, tn = V($), nt = je(
32586
+ const Pt = Fe !== null ? t[Fe] : null, Et = O !== null ? pe[O] : null, Gt = (ge == null ? void 0 : ge.title1) || (ge == null ? void 0 : ge.title2) || (ge == null ? void 0 : ge.title3) || (Pt == null ? void 0 : Pt.title1) || (Pt == null ? void 0 : Pt.title2) || (Pt == null ? void 0 : Pt.title3), Bt = oh(f, pe, t), Re = k !== null, Ye = Gt || Bt || Re, et = Bt && Re ? { gap: _ } : void 0, ft = `${e}-titles-stack${Z ? ` ${e}-titles-stack-stacked` : ""}`, Nt = `${e}-titles-layer-out${Z ? ` ${e}-titles-layer-out-stacked` : ""}`, wt = `${e}-titles-layer-out`, ct = (E ?? 0) > 0 || o, tn = V($), nt = je(
32587
32587
  () => ({
32588
32588
  title1Width: T ?? Vi.title1Width,
32589
32589
  title2Width: S ?? Vi.title2Width,
@@ -32592,10 +32592,10 @@ const ky = Sy(), Fy = {
32592
32592
  [T, S, G]
32593
32593
  ), it = je(() => ({
32594
32594
  title2MarginLeft: B,
32595
- title3MarginLeft: P
32596
- }), [B, P]), mt = je(
32597
- () => ge ? Qn(e, ge, M, se, b) : [],
32598
- [e, ge, M, se, b]
32595
+ title3MarginLeft: M
32596
+ }), [B, M]), mt = je(
32597
+ () => ge ? Qn(e, ge, P, se, b) : [],
32598
+ [e, ge, P, se, b]
32599
32599
  ), Wt = je(
32600
32600
  () => mt.map((ce) => nt[ce.widthKey]),
32601
32601
  [mt, nt]
@@ -32603,7 +32603,7 @@ const ky = Sy(), Fy = {
32603
32603
  () => Xi(mt.length, Wt),
32604
32604
  [mt.length, Wt]
32605
32605
  ), Lt = je(
32606
- () => Mo(mt.length, Wt),
32606
+ () => Po(mt.length, Wt),
32607
32607
  [mt.length, Wt]
32608
32608
  ), Vt = je(
32609
32609
  () => mt.filter((ce) => ce.prefix === "title1"),
@@ -32617,7 +32617,7 @@ const ky = Sy(), Fy = {
32617
32617
  ), Qt = je(
32618
32618
  () => ei(Xt, nt),
32619
32619
  [Xt, nt]
32620
- ), Pt = ve((ce, Be) => {
32620
+ ), Mt = ve((ce, Be) => {
32621
32621
  const p = mt.findIndex((J) => J.prefix === ce.prefix);
32622
32622
  if (!Z || Be === "single-row")
32623
32623
  return {
@@ -32675,7 +32675,7 @@ const ky = Sy(), Fy = {
32675
32675
  if (!Z || p === "single-row") {
32676
32676
  const Ze = ce.findIndex((ln) => ln.prefix === Be.prefix), Tt = ce.map((ln) => nt[ln.widthKey]), kt = Xi(ce.length, Tt);
32677
32677
  return {
32678
- effectiveWidth: Mo(ce.length, Tt)[Ze] ?? 0,
32678
+ effectiveWidth: Po(ce.length, Tt)[Ze] ?? 0,
32679
32679
  resolvedWidth: kt[Ze] ?? 0,
32680
32680
  maxWidth: hn(Ze, kt)
32681
32681
  };
@@ -32699,7 +32699,7 @@ const ky = Sy(), Fy = {
32699
32699
  effectiveWidth: J,
32700
32700
  resolvedWidth: Te,
32701
32701
  maxWidth: Ne
32702
- } = p ?? Pt(ce, Be), Ze = Math.max(H, Jn), Tt = o && Be === "two-row-top";
32702
+ } = p ?? Mt(ce, Be), Ze = Math.max(H, Jn), Tt = o && Be === "two-row-top";
32703
32703
  return /* @__PURE__ */ U(
32704
32704
  "div",
32705
32705
  {
@@ -32773,7 +32773,7 @@ const ky = Sy(), Fy = {
32773
32773
  "span",
32774
32774
  {
32775
32775
  className: `${e}-titles-baseline-strut`,
32776
- style: M,
32776
+ style: P,
32777
32777
  "aria-hidden": "true",
32778
32778
  children: " "
32779
32779
  }
@@ -32829,7 +32829,7 @@ const ky = Sy(), Fy = {
32829
32829
  Ht(ge),
32830
32830
  /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
32831
32831
  gt(),
32832
- Pn()
32832
+ Mn()
32833
32833
  ]
32834
32834
  }
32835
32835
  ), rt = () => /* @__PURE__ */ U(
@@ -32877,7 +32877,7 @@ const ky = Sy(), Fy = {
32877
32877
  ...ye && re ? { width: re, maxWidth: "100%" } : void 0
32878
32878
  },
32879
32879
  children: [
32880
- Mt && ye ? /* @__PURE__ */ l("div", { className: `${Nt} ${e}-titles-fade-out`, children: ci(Mt) }) : null,
32880
+ Pt && ye ? /* @__PURE__ */ l("div", { className: `${Nt} ${e}-titles-fade-out`, children: ci(Pt) }) : null,
32881
32881
  /* @__PURE__ */ l("div", { className: `${e}-titles-layer-in${ye ? ` ${e}-titles-layer-in-fading ${e}-titles-fade-in` : ""}`, children: ci(ge) })
32882
32882
  ]
32883
32883
  }
@@ -32886,7 +32886,7 @@ const ky = Sy(), Fy = {
32886
32886
  }
32887
32887
  ),
32888
32888
  gt(),
32889
- Pn()
32889
+ Mn()
32890
32890
  ]
32891
32891
  }
32892
32892
  ), Ct = () => /* @__PURE__ */ U(
@@ -32966,7 +32966,7 @@ const ky = Sy(), Fy = {
32966
32966
  }
32967
32967
  ), Ht = (ce) => {
32968
32968
  if (!ce) return null;
32969
- const Be = Qn(e, ce, M, se, b);
32969
+ const Be = Qn(e, ce, P, se, b);
32970
32970
  return /* @__PURE__ */ l(at, { children: Be.map((p) => At(
32971
32971
  p,
32972
32972
  "single-row",
@@ -32974,14 +32974,14 @@ const ky = Sy(), Fy = {
32974
32974
  )) });
32975
32975
  }, yn = (ce) => {
32976
32976
  if (!ce) return null;
32977
- const Be = Qn(e, ce, M, se, b), p = Be.find((H) => H.prefix === "title1");
32977
+ const Be = Qn(e, ce, P, se, b), p = Be.find((H) => H.prefix === "title1");
32978
32978
  return p ? At(
32979
32979
  p,
32980
32980
  "two-row-top",
32981
32981
  Yt(Be, p, "two-row-top")
32982
32982
  ) : null;
32983
32983
  }, vn = (ce, Be = !1) => {
32984
- const p = ce ? Qn(e, ce, M, se, b) : [], H = p.filter((Ne) => Ne.prefix === "title2" || Ne.prefix === "title3"), J = o && Be;
32984
+ const p = ce ? Qn(e, ce, P, se, b) : [], H = p.filter((Ne) => Ne.prefix === "title2" || Ne.prefix === "title3"), J = o && Be;
32985
32985
  return H.length > 0 || J || ($ ?? 0) > 0 ? /* @__PURE__ */ U("div", { className: `${e}-titles-row-bottom-wrap`, children: [
32986
32986
  H.length > 0 ? /* @__PURE__ */ U("div", { className: `${e}-titles-row-bottom`, children: [
32987
32987
  H.map((Ne) => At(
@@ -33084,7 +33084,7 @@ const ky = Sy(), Fy = {
33084
33084
  ) }, `${ce.widthKey}-junction`);
33085
33085
  }), Gr = () => Xt.flatMap((ce, Be) => {
33086
33086
  if (!ce.marginLeftKey) return [];
33087
- const p = it[ce.marginLeftKey] ?? 0, H = on(Be), J = Math.max(p, Jn), { resolvedWidth: Te } = Pt(ce, "two-row-bottom");
33087
+ const p = it[ce.marginLeftKey] ?? 0, H = on(Be), J = Math.max(p, Jn), { resolvedWidth: Te } = Mt(ce, "two-row-bottom");
33088
33088
  return /* @__PURE__ */ l(
33089
33089
  "div",
33090
33090
  {
@@ -33104,7 +33104,7 @@ const ky = Sy(), Fy = {
33104
33104
  ce.marginLeftKey
33105
33105
  );
33106
33106
  }), Ur = () => Xt.map((ce, Be) => {
33107
- const { maxWidth: p } = Pt(ce, "two-row-bottom"), J = an(Be) - Sn / 2;
33107
+ const { maxWidth: p } = Mt(ce, "two-row-bottom"), J = an(Be) - Sn / 2;
33108
33108
  return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
33109
33109
  "div",
33110
33110
  {
@@ -33123,10 +33123,10 @@ const ky = Sy(), Fy = {
33123
33123
  }
33124
33124
  }
33125
33125
  ) }, `${ce.widthKey}-junction`);
33126
- }), Pn = () => !o || Z ? null : /* @__PURE__ */ U(at, { children: [
33126
+ }), Mn = () => !o || Z ? null : /* @__PURE__ */ U(at, { children: [
33127
33127
  Vo(),
33128
33128
  jo()
33129
- ] }), Mi = (ce) => {
33129
+ ] }), Pi = (ce) => {
33130
33130
  const Be = !ce.objectFit && Bn(y);
33131
33131
  return {
33132
33132
  className: `${e}-slide-image-cell${Be ? ` ${e}-slide-image-cell-cover` : ""}`,
@@ -33144,14 +33144,14 @@ const ky = Sy(), Fy = {
33144
33144
  const Be = ce.length > 1, p = ra(ae), H = `calc(-0.5 * (${p} + ${ae}))`;
33145
33145
  if (ce.length === 1) {
33146
33146
  const J = ce[0];
33147
- return /* @__PURE__ */ l("div", { ...Mi(J), children: /* @__PURE__ */ l("img", { ...Go(J), src: J.url, alt: J.name ?? "", draggable: !1 }) });
33147
+ return /* @__PURE__ */ l("div", { ...Pi(J), children: /* @__PURE__ */ l("img", { ...Go(J), src: J.url, alt: J.name ?? "", draggable: !1 }) });
33148
33148
  }
33149
33149
  return /* @__PURE__ */ l(
33150
33150
  "div",
33151
33151
  {
33152
33152
  className: `${e}-slide-inner`,
33153
33153
  style: Be ? { gap: ae } : void 0,
33154
- children: ce.map((J, Te) => /* @__PURE__ */ U("div", { ...Mi(J), children: [
33154
+ children: ce.map((J, Te) => /* @__PURE__ */ U("div", { ...Pi(J), children: [
33155
33155
  /* @__PURE__ */ l(
33156
33156
  "img",
33157
33157
  {
@@ -33180,7 +33180,7 @@ const ky = Sy(), Fy = {
33180
33180
  ] }, `${J.url}-${Te}`))
33181
33181
  }
33182
33182
  );
33183
- }, Uo = !!(ge != null && ge.title2 || ge != null && ge.title3 || Mt != null && Mt.title2 || Mt != null && Mt.title3 || ($ ?? 0) > 0 || o), qr = () => /* @__PURE__ */ U(
33183
+ }, Uo = !!(ge != null && ge.title2 || ge != null && ge.title3 || Pt != null && Pt.title2 || Pt != null && Pt.title3 || ($ ?? 0) > 0 || o), qr = () => /* @__PURE__ */ U(
33184
33184
  "div",
33185
33185
  {
33186
33186
  style: {
@@ -33234,7 +33234,7 @@ const ky = Sy(), Fy = {
33234
33234
  width: "100%"
33235
33235
  },
33236
33236
  children: [
33237
- Mt && ye ? /* @__PURE__ */ l("div", { className: `${wt} ${e}-titles-fade-out`, children: yn(Mt) }) : null,
33237
+ Pt && ye ? /* @__PURE__ */ l("div", { className: `${wt} ${e}-titles-fade-out`, children: yn(Pt) }) : null,
33238
33238
  /* @__PURE__ */ l(
33239
33239
  "div",
33240
33240
  {
@@ -33248,7 +33248,7 @@ const ky = Sy(), Fy = {
33248
33248
  ye && W ? W : void 0
33249
33249
  ),
33250
33250
  Uo ? /* @__PURE__ */ U("div", { className: `${e}-titles-row-bottom-area`, children: [
33251
- Mt && ye ? /* @__PURE__ */ l("div", { className: `${Nt} ${e}-titles-layer-out-bottom ${e}-titles-fade-out`, children: vn(Mt) }) : null,
33251
+ Pt && ye ? /* @__PURE__ */ l("div", { className: `${Nt} ${e}-titles-layer-out-bottom ${e}-titles-fade-out`, children: vn(Pt) }) : null,
33252
33252
  /* @__PURE__ */ l(
33253
33253
  "div",
33254
33254
  {
@@ -33285,7 +33285,7 @@ const ky = Sy(), Fy = {
33285
33285
  children: si(ge, !0)
33286
33286
  }
33287
33287
  ),
33288
- Pn()
33288
+ Mn()
33289
33289
  ]
33290
33290
  }
33291
33291
  );
@@ -33337,11 +33337,11 @@ const ky = Sy(), Fy = {
33337
33337
  {
33338
33338
  className: `${e}-slide-layer-out ${e}-slide-fade-out`,
33339
33339
  onAnimationEnd: (ce) => {
33340
- ce.target === ce.currentTarget && De(Pe);
33340
+ ce.target === ce.currentTarget && De(Me);
33341
33341
  },
33342
33342
  children: /* @__PURE__ */ l("div", { className: `${e}-slide-area`, children: di(Et.images) })
33343
33343
  },
33344
- `slide-out-${Pe}`
33344
+ `slide-out-${Me}`
33345
33345
  ) : null,
33346
33346
  /* @__PURE__ */ l(
33347
33347
  "div",
@@ -33349,7 +33349,7 @@ const ky = Sy(), Fy = {
33349
33349
  className: `${e}-slide-layer-in${fe ? ` ${e}-slide-fade-in` : ""}`,
33350
33350
  children: /* @__PURE__ */ l("div", { className: `${e}-slide-area`, children: te ? di(te.images) : null })
33351
33351
  },
33352
- `slide-in-${Pe}-${de}`
33352
+ `slide-in-${Me}-${de}`
33353
33353
  )
33354
33354
  ] })
33355
33355
  }
@@ -33915,7 +33915,7 @@ const Hy = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
33915
33915
  const { prefix: c } = un(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: f } = e, y = q(null), [C, g] = ee(!1), [m, h] = ee(0), I = q(!1), T = q(!1), S = q(!1), G = je(
33916
33916
  () => (t ?? []).filter((v) => Ki(v).length > 0),
33917
33917
  [t]
33918
- ), E = C && G.length > 0, B = !n, P = ve(() => {
33918
+ ), E = C && G.length > 0, B = !n, M = ve(() => {
33919
33919
  B && (S.current = !0, Jg(T.current, s), T.current = !1);
33920
33920
  }, [B, s]), $ = (v = 0) => {
33921
33921
  if (G.length === 0 || n && !i && !o) return;
@@ -33928,16 +33928,16 @@ const Hy = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
33928
33928
  }, z = ve(() => {
33929
33929
  g(!1), S.current = !1;
33930
33930
  }, []);
33931
- return Me(() => {
33931
+ return Pe(() => {
33932
33932
  !n || i || o || g(!1);
33933
- }, [n, i, o]), Me(() => {
33933
+ }, [n, i, o]), Pe(() => {
33934
33934
  if (!B || I.current) return;
33935
33935
  I.current = !0;
33936
33936
  const v = Yl(s);
33937
33937
  if (!v) return;
33938
33938
  const k = Zl(v, gr(G, f).length);
33939
33939
  k < 0 || (h(k), g(!0));
33940
- }, [G, s, B, f]), Me(() => {
33940
+ }, [G, s, B, f]), Pe(() => {
33941
33941
  if (!B) return;
33942
33942
  const v = () => {
33943
33943
  if (S.current) {
@@ -34001,7 +34001,7 @@ const Hy = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
34001
34001
  initialSlideIndex: m,
34002
34002
  enableUrlSync: B,
34003
34003
  journalItemId: s,
34004
- onBeforeClose: P,
34004
+ onBeforeClose: M,
34005
34005
  onClose: z
34006
34006
  }
34007
34007
  ),
@@ -35484,7 +35484,7 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35484
35484
  const { prefix: i } = un(), [o, r] = ee(null), [a, c] = ee([]), [s, d] = ee(0), u = q(0), [f, y] = ee({ x: 0, y: 0 }), [C, g] = ee("none"), m = q({ x: 0, y: 0 }), [h, I] = ee(!1), [T, S] = ee(!1), G = q(/* @__PURE__ */ new Map()), {
35485
35485
  imageSize: E = qy,
35486
35486
  cursor: B = "system",
35487
- target: P = "area",
35487
+ target: M = "area",
35488
35488
  position: $ = "random",
35489
35489
  visible: z = "all",
35490
35490
  defaultCursor: v = null,
@@ -35496,12 +35496,12 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35496
35496
  }
35497
35497
  ), Q = je(() => Xy(i), [i]), A = ve((w, R, _ = a) => {
35498
35498
  if (!o) return;
35499
- const ne = o.getBoundingClientRect(), ie = w - ne.left, M = R - ne.top;
35500
- y({ x: ie, y: M }), g(
35501
- Ky(ie, M, _, o, B, P, k, v)
35499
+ const ne = o.getBoundingClientRect(), ie = w - ne.left, P = R - ne.top;
35500
+ y({ x: ie, y: P }), g(
35501
+ Ky(ie, P, _, o, B, M, k, v)
35502
35502
  );
35503
- }, [o, a, B, P, k, v]);
35504
- Me(() => {
35503
+ }, [o, a, B, M, k, v]);
35504
+ Pe(() => {
35505
35505
  const w = [
35506
35506
  ...L.map((_) => _.image.url),
35507
35507
  v,
@@ -35517,7 +35517,7 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35517
35517
  }), () => {
35518
35518
  R = !0;
35519
35519
  };
35520
- }, [t, v, k]), Me(() => {
35520
+ }, [t, v, k]), Pe(() => {
35521
35521
  if (!o) return;
35522
35522
  const w = (_) => {
35523
35523
  _.stopPropagation(), m.current = { x: _.clientX, y: _.clientY }, A(_.clientX, _.clientY);
@@ -35527,17 +35527,17 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35527
35527
  return o.addEventListener("mousemove", w), window.addEventListener("scroll", R, !0), () => {
35528
35528
  o.removeEventListener("mousemove", w), window.removeEventListener("scroll", R, !0);
35529
35529
  };
35530
- }, [o, h, A]), Me(() => {
35530
+ }, [o, h, A]), Pe(() => {
35531
35531
  !o || !h || A(m.current.x, m.current.y);
35532
- }, [a, o, h, A]), Me(() => {
35532
+ }, [a, o, h, A]), Pe(() => {
35533
35533
  h || g("none");
35534
35534
  }, [h]);
35535
35535
  const Y = (w, R, _, ne = {}) => {
35536
35536
  var Z, be;
35537
35537
  if (!((Z = w == null ? void 0 : w.image) != null && Z.url)) return null;
35538
- const ie = ((be = G.current.get(w.image.url)) == null ? void 0 : be.aspectRatio) ?? 1, M = Cs(w.image.url, E, G.current), { heightPx: se } = Lr(M, ie);
35538
+ const ie = ((be = G.current.get(w.image.url)) == null ? void 0 : be.aspectRatio) ?? 1, P = Cs(w.image.url, E, G.current), { heightPx: se } = Lr(P, ie);
35539
35539
  let b = 0, oe = 0;
35540
- return $ === "same" ? { x: b, y: oe } = $s(R, _, M, ie) : (b = ne.x ?? Math.random() * R, oe = ne.y ?? Math.random() * _, { x: b, y: oe } = _a(b, oe, R, _, M, se)), {
35540
+ return $ === "same" ? { x: b, y: oe } = $s(R, _, P, ie) : (b = ne.x ?? Math.random() * R, oe = ne.y ?? Math.random() * _, { x: b, y: oe } = _a(b, oe, R, _, P, se)), {
35541
35541
  id: u.current++,
35542
35542
  url: w.image.url,
35543
35543
  link: w.link,
@@ -35547,49 +35547,49 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35547
35547
  xRatio: b / R,
35548
35548
  yRatio: oe / _,
35549
35549
  aspectRatio: ie,
35550
- widthPx: M
35550
+ widthPx: P
35551
35551
  };
35552
35552
  }, j = () => {
35553
35553
  if (!o) return;
35554
35554
  const w = o.getBoundingClientRect(), R = w.width, _ = w.height;
35555
35555
  R === 0 || _ === 0 || c((ne) => ne.length === 0 ? ne : ne.map((ie) => {
35556
- const M = E.sizeType === "random" ? ie.widthPx : Cs(ie.url, E, G.current), { heightPx: se } = Lr(M, ie.aspectRatio);
35556
+ const P = E.sizeType === "random" ? ie.widthPx : Cs(ie.url, E, G.current), { heightPx: se } = Lr(P, ie.aspectRatio);
35557
35557
  if ($ === "same") {
35558
- const { x: Z, y: be } = $s(R, _, M, ie.aspectRatio);
35559
- return { ...ie, x: Z, y: be, widthPx: M };
35558
+ const { x: Z, y: be } = $s(R, _, P, ie.aspectRatio);
35559
+ return { ...ie, x: Z, y: be, widthPx: P };
35560
35560
  }
35561
35561
  const { x: b, y: oe } = _a(
35562
35562
  ie.xRatio * R,
35563
35563
  ie.yRatio * _,
35564
35564
  R,
35565
35565
  _,
35566
- M,
35566
+ P,
35567
35567
  se
35568
35568
  );
35569
- return { ...ie, x: b, y: oe, widthPx: M };
35569
+ return { ...ie, x: b, y: oe, widthPx: P };
35570
35570
  }));
35571
35571
  };
35572
- Me(() => {
35572
+ Pe(() => {
35573
35573
  if (!o || L.length === 0 || !T) return;
35574
35574
  const w = o.getBoundingClientRect(), R = w.width, _ = w.height, ne = Y(L[0], R, _);
35575
35575
  ne && (c([ne]), d(L.length > 1 ? 1 : 0));
35576
- }, [E, $, o, t, T]), Me(() => {
35576
+ }, [E, $, o, t, T]), Pe(() => {
35577
35577
  if (!o) return;
35578
35578
  j();
35579
35579
  const w = new ResizeObserver(j);
35580
35580
  return w.observe(o), window.addEventListener("resize", j), () => {
35581
35581
  w.disconnect(), window.removeEventListener("resize", j);
35582
35582
  };
35583
- }, [o, $, E, a.length]), Me(() => {
35583
+ }, [o, $, E, a.length]), Pe(() => {
35584
35584
  z === "last One" && c((w) => w.length > 0 ? [w[w.length - 1]] : []);
35585
35585
  }, [z]);
35586
35586
  const V = (w) => {
35587
35587
  if (!o || L.length === 0 || !T) return;
35588
35588
  const R = o.getBoundingClientRect(), _ = w.clientX - R.left, ne = w.clientY - R.top;
35589
- if (P === "image" && !Qc(_, ne, a)) return;
35590
- let ie = 0, M = 0;
35591
- $ === "on Click" ? (ie = _, M = ne) : $ === "same" ? (ie = R.width / 2, M = R.height / 2) : (ie = Math.random() * R.width, M = Math.random() * R.height);
35592
- const se = L[s % L.length], b = Y(se, R.width, R.height, { x: ie, y: M });
35589
+ if (M === "image" && !Qc(_, ne, a)) return;
35590
+ let ie = 0, P = 0;
35591
+ $ === "on Click" ? (ie = _, P = ne) : $ === "same" ? (ie = R.width / 2, P = R.height / 2) : (ie = Math.random() * R.width, P = Math.random() * R.height);
35592
+ const se = L[s % L.length], b = Y(se, R.width, R.height, { x: ie, y: P });
35593
35593
  if (!b) return;
35594
35594
  const oe = z === "all" ? [...a, b] : [b];
35595
35595
  c(oe), d((Z) => (Z + 1) % L.length), A(w.clientX, w.clientY, oe);
@@ -35616,7 +35616,7 @@ function Jy({ settings: e, content: t = [], isEditor: n }) {
35616
35616
  width: `${w.widthPx}px`,
35617
35617
  cursor: ae ? "none" : "default"
35618
35618
  },
35619
- children: P === "area" && w.link ? /* @__PURE__ */ l("a", { href: w.link, target: "_blank", rel: "noreferrer", className: `${i}-link`, children: /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` }) }) : /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` })
35619
+ children: M === "area" && w.link ? /* @__PURE__ */ l("a", { href: w.link, target: "_blank", rel: "noreferrer", className: `${i}-link`, children: /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` }) }) : /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` })
35620
35620
  },
35621
35621
  w.id
35622
35622
  )),
@@ -36609,14 +36609,14 @@ function cv(e, t) {
36609
36609
  });
36610
36610
  }
36611
36611
  function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36612
- var $e, O, le, fe, Se, Pe, Ce;
36612
+ var $e, O, le, fe, Se, Me, Ce;
36613
36613
  const { prefix: o } = un(), r = je(() => ov(o), [o]), {
36614
36614
  imageSize: a,
36615
36615
  maxWidth: c,
36616
36616
  maxHeight: s,
36617
36617
  transition: d = 1e3,
36618
36618
  bgImage: u = "greyscale"
36619
- } = e, f = t ?? [], y = Ts(f.length), [C, g] = ee(y.activeIndex), [m, h] = ee(y.backgroundIndex), [I, T] = ee(!1), [S, G] = ee(!1), [E, B] = ee(null), [P, $] = ee(null), [z, v] = ee(0), [k, L] = ee(1), [Q, A] = ee("none"), [Y, j] = ee("next"), [V, ae] = ee({}), [w, R] = ee({ width: 0, height: 0 }), _ = q(null), ne = q(null), ie = !n || !!i, M = a ?? 60, se = Math.max(10, Math.min(100, c ?? M)), b = Math.max(10, Math.min(100, s ?? M)), oe = Math.max(100, d), Z = po(u), be = ve((W) => {
36619
+ } = e, f = t ?? [], y = Ts(f.length), [C, g] = ee(y.activeIndex), [m, h] = ee(y.backgroundIndex), [I, T] = ee(!1), [S, G] = ee(!1), [E, B] = ee(null), [M, $] = ee(null), [z, v] = ee(0), [k, L] = ee(1), [Q, A] = ee("none"), [Y, j] = ee("next"), [V, ae] = ee({}), [w, R] = ee({ width: 0, height: 0 }), _ = q(null), ne = q(null), ie = !n || !!i, P = a ?? 60, se = Math.max(10, Math.min(100, c ?? P)), b = Math.max(10, Math.min(100, s ?? P)), oe = Math.max(100, d), Z = po(u), be = ve((W) => {
36620
36620
  const he = lv(W ? V[W] : void 0);
36621
36621
  return sv(
36622
36622
  w.width,
@@ -36626,7 +36626,7 @@ function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36626
36626
  b
36627
36627
  );
36628
36628
  }, [w.height, w.width, V, b, se]);
36629
- Me(() => {
36629
+ Pe(() => {
36630
36630
  const W = ne.current;
36631
36631
  if (!W) return;
36632
36632
  const he = new ResizeObserver(([re]) => {
@@ -36634,7 +36634,7 @@ function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36634
36634
  R({ width: N, height: X });
36635
36635
  });
36636
36636
  return he.observe(W), () => he.disconnect();
36637
- }, []), Me(() => {
36637
+ }, []), Pe(() => {
36638
36638
  const W = (t ?? []).map((he) => {
36639
36639
  var re;
36640
36640
  return (re = he.image) == null ? void 0 : re.url;
@@ -36645,10 +36645,10 @@ function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36645
36645
  return ((X = N[he]) == null ? void 0 : X.width) === re.width && ((Ae = N[he]) == null ? void 0 : Ae.height) === re.height ? N : { ...N, [he]: re };
36646
36646
  });
36647
36647
  });
36648
- }, [t]), Me(() => {
36648
+ }, [t]), Pe(() => {
36649
36649
  const { backgroundIndex: W, activeIndex: he } = Ts(f.length);
36650
36650
  g(he), h(W), T(!1), G(!1), B(null), $(null), v(0), L(1), A("none"), j("next");
36651
- }, [f.length, t]), Me(() => () => {
36651
+ }, [f.length, t]), Pe(() => () => {
36652
36652
  _.current && clearTimeout(_.current);
36653
36653
  }, []);
36654
36654
  const Ee = ve((W) => {
@@ -36672,7 +36672,7 @@ function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36672
36672
  ie,
36673
36673
  f,
36674
36674
  oe
36675
- ]), pe = f[C], de = m !== null ? f[m] : null, K = E !== null ? f[E] : null, te = P !== null ? f[P] : null, ge = f.length <= 1 ? 0 : (C - 1 + f.length) % f.length, _e = f.length <= 1 ? 0 : (C + 1) % f.length, Le = be(($e = pe == null ? void 0 : pe.image) == null ? void 0 : $e.url), Fe = be((O = K == null ? void 0 : K.image) == null ? void 0 : O.url), me = be((le = te == null ? void 0 : te.image) == null ? void 0 : le.url), ye = {
36675
+ ]), pe = f[C], de = m !== null ? f[m] : null, K = E !== null ? f[E] : null, te = M !== null ? f[M] : null, ge = f.length <= 1 ? 0 : (C - 1 + f.length) % f.length, _e = f.length <= 1 ? 0 : (C + 1) % f.length, Le = be(($e = pe == null ? void 0 : pe.image) == null ? void 0 : $e.url), Fe = be((O = K == null ? void 0 : K.image) == null ? void 0 : O.url), me = be((le = te == null ? void 0 : te.image) == null ? void 0 : le.url), ye = {
36676
36676
  [`--${o}-transition-ms`]: `${oe}ms`
36677
36677
  };
36678
36678
  return /* @__PURE__ */ U(at, { children: [
@@ -36715,7 +36715,7 @@ function dv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
36715
36715
  )
36716
36716
  }
36717
36717
  ),
36718
- I && ((Pe = te == null ? void 0 : te.image) == null ? void 0 : Pe.url) && /* @__PURE__ */ l(
36718
+ I && ((Me = te == null ? void 0 : te.image) == null ? void 0 : Me.url) && /* @__PURE__ */ l(
36719
36719
  "div",
36720
36720
  {
36721
36721
  className: yt(
@@ -37771,7 +37771,7 @@ function bv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
37771
37771
  boxShadowColor: G = "rgba(0, 0, 0, 0)",
37772
37772
  innerBoxShadow: E = { top: 0, left: 0, right: 0, bottom: 0 },
37773
37773
  innerBoxShadowColor: B = "rgba(0, 0, 0, 0)",
37774
- stroke: P = 0,
37774
+ stroke: M = 0,
37775
37775
  backgroundColor: $ = "#000000",
37776
37776
  textColor: z = "#ffffff",
37777
37777
  borderColor: v = "#ffffff",
@@ -37788,7 +37788,7 @@ function bv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
37788
37788
  minWidth: _ = 0,
37789
37789
  minHeight: ne = 0,
37790
37790
  width: ie = 0,
37791
- height: M = 0
37791
+ height: P = 0
37792
37792
  } = e, se = Li(r, {
37793
37793
  backgroundColor: $,
37794
37794
  textColor: z,
@@ -37823,7 +37823,7 @@ function bv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
37823
37823
  paddingBottom: F(I.bottom, t),
37824
37824
  paddingLeft: F(I.left, t),
37825
37825
  borderRadius: F(T, t),
37826
- borderWidth: F(P, t),
37826
+ borderWidth: F(M, t),
37827
37827
  ...ge ? {} : {
37828
37828
  justifyContent: fa[te],
37829
37829
  textAlign: te
@@ -37831,7 +37831,7 @@ function bv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
37831
37831
  ...ge && !Ee ? { gap: F(C, t) } : {},
37832
37832
  ...de ? {
37833
37833
  width: F(ie, t),
37834
- height: F(M, t)
37834
+ height: F(P, t)
37835
37835
  } : {
37836
37836
  minWidth: F(_, t),
37837
37837
  minHeight: F(ne, t),
@@ -37860,13 +37860,13 @@ function bv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
37860
37860
  style: { textAlign: te },
37861
37861
  children: s
37862
37862
  }
37863
- ), Pe = Rs(r, d, m > 0 ? "fixed" : "fill", 100, m, t);
37863
+ ), Me = Rs(r, d, m > 0 ? "fixed" : "fill", 100, m, t);
37864
37864
  return y === "icon-text" ? /* @__PURE__ */ U(at, { children: [
37865
- Pe,
37865
+ Me,
37866
37866
  Se
37867
37867
  ] }) : /* @__PURE__ */ U(at, { children: [
37868
37868
  Se,
37869
- Pe
37869
+ Me
37870
37870
  ] });
37871
37871
  };
37872
37872
  ye = Ee ? ya(r, fe, `${r}-icon-text-roll`, void 0, $e) : fe();
@@ -39345,7 +39345,7 @@ function Tv(e) {
39345
39345
  }
39346
39346
  `;
39347
39347
  }
39348
- const An = 500, mo = 650, xn = "cubic-bezier(0.22, 1, 0.36, 1)", Lv = 72, Iv = 50, Rv = 1e4, Mv = 650, Pv = 500;
39348
+ const An = 500, mo = 650, xn = "cubic-bezier(0.22, 1, 0.36, 1)", Lv = 72, Iv = 50, Rv = 1e4, Pv = 650, Mv = 500;
39349
39349
  function Ev(e, t) {
39350
39350
  const n = e.width / t.width, i = e.height / t.height, o = e.left - t.left, r = e.top - t.top;
39351
39351
  return `translate(${o}px, ${r}px) scale(${n}, ${i})`;
@@ -39382,7 +39382,7 @@ function fo(e, t, n) {
39382
39382
  const i = (t + n + e.length) % e.length;
39383
39383
  return ((o = e[i]) == null ? void 0 : o.items[0]) ?? null;
39384
39384
  }
39385
- function Ms(e, t, n) {
39385
+ function Ps(e, t, n) {
39386
39386
  if (e.length <= 2) return null;
39387
39387
  const i = (t + n + e.length) % e.length;
39388
39388
  return fo(e, i, n);
@@ -39405,7 +39405,7 @@ function ar(e, t) {
39405
39405
  height: e.height
39406
39406
  };
39407
39407
  }
39408
- function Ps(e) {
39408
+ function Ms(e) {
39409
39409
  const t = e.getBoundingClientRect();
39410
39410
  return { width: t.width, height: t.height, left: t.left, top: t.top };
39411
39411
  }
@@ -39568,7 +39568,7 @@ function Vv({
39568
39568
  onTransitionEnd: a
39569
39569
  }) {
39570
39570
  const c = q(null);
39571
- return Me(() => {
39571
+ return Pe(() => {
39572
39572
  const s = c.current;
39573
39573
  return n == null || n(s ?? null), () => {
39574
39574
  s == null || s.pause(), n == null || n(null);
@@ -39641,12 +39641,12 @@ function jv({
39641
39641
  onPrev: m,
39642
39642
  onNext: h
39643
39643
  }) {
39644
- const I = q(null), T = q(null), S = q(null), G = q(/* @__PURE__ */ new Map()), [E, B] = ee(0), P = q(null), $ = q(0), z = q(0), v = q("none"), k = q(!1), L = q(!1), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(() => {
39645
- }), ae = q(null), w = q(null), R = q(null), _ = q(!1), [ne, ie] = ee(null), [M, se] = ee(va), [b, oe] = ee(0), [Z, be] = ee("opening"), [Ee, pe] = ee(0), [de, K] = ee(0), [te, ge] = ee(!1), [_e, Le] = ee(null), [Fe, me] = ee(null), [ye, $e] = ee(null), [O, le] = ee(!1), [fe, Se] = ee(null), [Pe, Ce] = ee(!1), W = q(!1), [he, re] = ee(!1), [N, X] = ee(!1), Ae = q(n), ue = q(void 0), D = t[n], qe = D ? jr(D) : !1, He = de !== 0 || te, dt = !a && (!r || !!c), lt = s && !a, pt = d.length > 1, $t = ve((x, we) => t.length <= 1 ? null : t[(x + we + t.length) % t.length] ?? null, [t]), Xe = pt ? fo(d, u, -1) : $t(n, -1), xe = pt ? fo(d, u, 1) : $t(n, 1), ke = _e === -1 && He ? pt && Fe !== null ? fo(d, Fe, -1) : ye !== null ? $t(ye, -1) : null : null, Ue = _e === 1 && He ? pt && Fe !== null ? fo(d, Fe, 1) : ye !== null ? $t(ye, 1) : null : null, We = ke && ke.url !== (Xe == null ? void 0 : Xe.url) ? ke : null, Ie = Ue && Ue.url !== (xe == null ? void 0 : xe.url) ? Ue : null, De = Xe && lt ? (() => {
39646
- const x = pt ? Ms(d, u, -1) : t.length > 2 ? $t((n - 1 + t.length) % t.length, -1) : null;
39644
+ const I = q(null), T = q(null), S = q(null), G = q(/* @__PURE__ */ new Map()), [E, B] = ee(0), M = q(null), $ = q(0), z = q(0), v = q("none"), k = q(!1), L = q(!1), Q = q(!1), A = q(null), Y = q(null), j = q(null), V = q(() => {
39645
+ }), ae = q(null), w = q(null), R = q(null), _ = q(!1), [ne, ie] = ee(null), [P, se] = ee(va), [b, oe] = ee(0), [Z, be] = ee("opening"), [Ee, pe] = ee(0), [de, K] = ee(0), [te, ge] = ee(!1), [_e, Le] = ee(null), [Fe, me] = ee(null), [ye, $e] = ee(null), [O, le] = ee(!1), [fe, Se] = ee(null), [Me, Ce] = ee(!1), W = q(!1), [he, re] = ee(!1), [N, X] = ee(!1), Ae = q(n), ue = q(void 0), D = t[n], qe = D ? jr(D) : !1, He = de !== 0 || te, dt = !a && (!r || !!c), lt = s && !a, pt = d.length > 1, $t = ve((x, we) => t.length <= 1 ? null : t[(x + we + t.length) % t.length] ?? null, [t]), Xe = pt ? fo(d, u, -1) : $t(n, -1), xe = pt ? fo(d, u, 1) : $t(n, 1), ke = _e === -1 && He ? pt && Fe !== null ? fo(d, Fe, -1) : ye !== null ? $t(ye, -1) : null : null, Ue = _e === 1 && He ? pt && Fe !== null ? fo(d, Fe, 1) : ye !== null ? $t(ye, 1) : null : null, We = ke && ke.url !== (Xe == null ? void 0 : Xe.url) ? ke : null, Ie = Ue && Ue.url !== (xe == null ? void 0 : xe.url) ? Ue : null, De = Xe && lt ? (() => {
39646
+ const x = pt ? Ps(d, u, -1) : t.length > 2 ? $t((n - 1 + t.length) % t.length, -1) : null;
39647
39647
  return x && x.url !== Xe.url ? x : null;
39648
39648
  })() : null, Ge = xe && lt ? (() => {
39649
- const x = pt ? Ms(d, u, 1) : t.length > 2 ? $t((n + 1) % t.length, 1) : null;
39649
+ const x = pt ? Ps(d, u, 1) : t.length > 2 ? $t((n + 1) % t.length, 1) : null;
39650
39650
  return x && x.url !== xe.url ? x : null;
39651
39651
  })() : null, st = We ?? De, vt = Ie ?? Ge, ot = ve((x, we, Oe) => {
39652
39652
  if (!x || !we || !Oe) return;
@@ -39664,7 +39664,7 @@ function jv({
39664
39664
  return;
39665
39665
  }
39666
39666
  const we = T.current;
39667
- we && ie(Ps(we));
39667
+ we && ie(Ms(we));
39668
39668
  }, [D, Rt]), Je = ve((x) => {
39669
39669
  if (pt) {
39670
39670
  const we = d.length;
@@ -39705,7 +39705,7 @@ function jv({
39705
39705
  if (te && _e !== null) {
39706
39706
  const Oe = Rt(x);
39707
39707
  if (!Oe) return;
39708
- const { x: ze, y: gt } = zv(Oe, we, _e, M);
39708
+ const { x: ze, y: gt } = zv(Oe, we, _e, P);
39709
39709
  return `translate(${ze}px, ${gt}px)`;
39710
39710
  }
39711
39711
  if (te)
@@ -39717,7 +39717,7 @@ function jv({
39717
39717
  te,
39718
39718
  de,
39719
39719
  _e,
39720
- M,
39720
+ P,
39721
39721
  Rt
39722
39722
  ]), Dt = ve(() => {
39723
39723
  const x = Y.current;
@@ -39728,7 +39728,7 @@ function jv({
39728
39728
  }, mo + 32);
39729
39729
  }, [Ve, Dt]), cn = ve(() => {
39730
39730
  Ve(), Y.current = null, Qe(!1), Le(null), me(null), $e(null), K(0), re(!1), k.current = !1, z.current = 0, v.current = "none";
39731
- }, [Ve, Qe]), Mt = ve((x) => {
39731
+ }, [Ve, Qe]), Pt = ve((x) => {
39732
39732
  if (!(!lt || !ne)) {
39733
39733
  if (Q.current) {
39734
39734
  if (Y.current === x) {
@@ -39749,12 +39749,12 @@ function jv({
39749
39749
  Qe,
39750
39750
  rn
39751
39751
  ]);
39752
- V.current = Mt;
39752
+ V.current = Pt;
39753
39753
  const Et = ve(() => {
39754
39754
  ae.current = null, _.current = !1, w.current !== null && (window.clearInterval(w.current), w.current = null), R.current !== null && (window.clearTimeout(R.current), R.current = null);
39755
39755
  }, []), Gt = ve((x) => {
39756
39756
  w.current !== null && window.clearInterval(w.current);
39757
- const we = _.current ? Pv : Mv;
39757
+ const we = _.current ? Mv : Pv;
39758
39758
  w.current = window.setInterval(() => {
39759
39759
  V.current(x);
39760
39760
  }, we);
@@ -39778,7 +39778,7 @@ function jv({
39778
39778
  return;
39779
39779
  }
39780
39780
  }
39781
- const gt = Ps(x);
39781
+ const gt = Ms(x);
39782
39782
  !gt.width || !gt.height || ie(gt);
39783
39783
  }, [D == null ? void 0 : D.url, ot]), Ye = ve((x) => {
39784
39784
  if (S.current = x, !!x) {
@@ -39791,7 +39791,7 @@ function jv({
39791
39791
  }, [Re]), et = ve(() => {
39792
39792
  bt(), Re(), oe((x) => x + 1);
39793
39793
  }, [bt, Re]);
39794
- Me(() => {
39794
+ Pe(() => {
39795
39795
  et();
39796
39796
  const x = T.current, we = I.current, Oe = new ResizeObserver(() => et());
39797
39797
  return x && Oe.observe(x), we && Oe.observe(we), window.addEventListener("resize", et), () => {
@@ -39807,16 +39807,16 @@ function jv({
39807
39807
  }
39808
39808
  x instanceof HTMLVideoElement && x.readyState >= 1 && x.videoWidth > 0 && Re();
39809
39809
  }
39810
- }, [D == null ? void 0 : D.url, n, Re]), Me(() => {
39810
+ }, [D == null ? void 0 : D.url, n, Re]), Pe(() => {
39811
39811
  ht();
39812
- }, [ht, E]), Me(() => {
39812
+ }, [ht, E]), Pe(() => {
39813
39813
  const x = /* @__PURE__ */ new Set(), we = [], Oe = (ze) => {
39814
39814
  !(ze != null && ze.url) || x.has(ze.url) || (x.add(ze.url), we.push(ze));
39815
39815
  };
39816
39816
  t.forEach(Oe), d.forEach((ze) => ze.items.forEach(Oe)), we.forEach((ze) => {
39817
39817
  G.current.has(ze.url) || Nv(ze, ot);
39818
39818
  });
39819
- }, [t, d, ot]), Me(() => {
39819
+ }, [t, d, ot]), Pe(() => {
39820
39820
  if (Z !== "opening" || !ne) return;
39821
39821
  if (!y) {
39822
39822
  be("open");
@@ -39829,14 +39829,14 @@ function jv({
39829
39829
  });
39830
39830
  });
39831
39831
  return () => cancelAnimationFrame(x);
39832
- }, [Z, ne, y]), Me(() => {
39832
+ }, [Z, ne, y]), Pe(() => {
39833
39833
  if (Z !== "closing") return;
39834
39834
  const x = setTimeout(() => g(), An);
39835
39835
  return () => clearTimeout(x);
39836
- }, [Z, g]), Me(() => () => {
39836
+ }, [Z, g]), Pe(() => () => {
39837
39837
  Ve();
39838
39838
  }, [Ve]), Ot(() => {
39839
- Ae.current === n && ue.current === (D == null ? void 0 : D.url) || (Ve(), Y.current = null, Le(null), me(null), $e(null), pe(0), K(0), Qe(!1), X(!1), re(!1), $.current = 0, z.current = 0, v.current = "none", k.current = !1, P.current = null, L.current = !1, S.current = null, ht(), Ae.current = n, ue.current = D == null ? void 0 : D.url);
39839
+ Ae.current === n && ue.current === (D == null ? void 0 : D.url) || (Ve(), Y.current = null, Le(null), me(null), $e(null), pe(0), K(0), Qe(!1), X(!1), re(!1), $.current = 0, z.current = 0, v.current = "none", k.current = !1, M.current = null, L.current = !1, S.current = null, ht(), Ae.current = n, ue.current = D == null ? void 0 : D.url);
39840
39840
  }, [n, D == null ? void 0 : D.url, Qe, Ve, ht]), Ot(() => {
39841
39841
  const x = j.current;
39842
39842
  x !== null && (j.current = null, requestAnimationFrame(() => {
@@ -39859,7 +39859,7 @@ function jv({
39859
39859
  });
39860
39860
  });
39861
39861
  return () => cancelAnimationFrame(x);
39862
- }, [Z, Xe == null ? void 0 : Xe.url, xe == null ? void 0 : xe.url]), Me(() => {
39862
+ }, [Z, Xe == null ? void 0 : Xe.url, xe == null ? void 0 : xe.url]), Pe(() => {
39863
39863
  if (Z !== "open") return;
39864
39864
  const x = () => {
39865
39865
  const rt = (Ct) => {
@@ -39878,10 +39878,10 @@ function jv({
39878
39878
  }, ze = (rt) => {
39879
39879
  if (rt.touches.length !== 1 || Q.current) return;
39880
39880
  const Ct = rt.touches[0];
39881
- L.current = !0, P.current = { x: Ct.clientX, y: Ct.clientY }, v.current = "none", z.current = 0, k.current = !1;
39881
+ L.current = !0, M.current = { x: Ct.clientX, y: Ct.clientY }, v.current = "none", z.current = 0, k.current = !1;
39882
39882
  }, gt = (rt) => {
39883
- if (!P.current || rt.touches.length !== 1 || Q.current) return;
39884
- const Ct = rt.touches[0], Ut = Ct.clientX - P.current.x, Ht = Ct.clientY - P.current.y;
39883
+ if (!M.current || rt.touches.length !== 1 || Q.current) return;
39884
+ const Ct = rt.touches[0], Ut = Ct.clientX - M.current.x, Ht = Ct.clientY - M.current.y;
39885
39885
  if (v.current === "none") {
39886
39886
  if (Math.abs(Ut) < 10 && Math.abs(Ht) < 10) return;
39887
39887
  if (Math.abs(Ut) > Math.abs(Ht)) {
@@ -39899,7 +39899,7 @@ function jv({
39899
39899
  }
39900
39900
  v.current === "vertical" && (k.current = !0, re(!0), $.current = Ht, pe(Ht), rt.preventDefault());
39901
39901
  }, zt = () => {
39902
- if (!P.current) return;
39902
+ if (!M.current) return;
39903
39903
  const rt = v.current, Ct = k.current;
39904
39904
  if (Ct && rt === "horizontal")
39905
39905
  Oe(z.current), x();
@@ -39912,7 +39912,7 @@ function jv({
39912
39912
  $.current = 0, pe(0);
39913
39913
  x();
39914
39914
  } else rt === "horizontal" && Math.abs(z.current) > 0 && (Oe(z.current), x());
39915
- P.current = null, v.current = "none", z.current = 0, k.current = !1, re(!1);
39915
+ M.current = null, v.current = "none", z.current = 0, k.current = !1, re(!1);
39916
39916
  };
39917
39917
  return document.addEventListener("touchstart", ze, { passive: !0 }), document.addEventListener("touchmove", gt, { passive: !1 }), document.addEventListener("touchend", zt), document.addEventListener("touchcancel", zt), () => {
39918
39918
  document.removeEventListener("touchstart", ze), document.removeEventListener("touchmove", gt), document.removeEventListener("touchend", zt), document.removeEventListener("touchcancel", zt);
@@ -39922,7 +39922,7 @@ function jv({
39922
39922
  const x = (C == null ? void 0 : C()) ?? y ?? null;
39923
39923
  x && ne && (Se(x), le(!0)), be("closing");
39924
39924
  }, [C, y, ne]);
39925
- Me(() => {
39925
+ Pe(() => {
39926
39926
  const x = (ze) => {
39927
39927
  if (ze.key === "Escape") {
39928
39928
  if (r && c || Z === "closing") return;
@@ -39951,7 +39951,7 @@ function jv({
39951
39951
  lt,
39952
39952
  Bt,
39953
39953
  Et
39954
- ]), Me(() => {
39954
+ ]), Pe(() => {
39955
39955
  Z !== "open" && Et();
39956
39956
  }, [Z, Et]);
39957
39957
  const Nt = () => {
@@ -39964,7 +39964,7 @@ function jv({
39964
39964
  }
39965
39965
  Ve(), Qe(!1);
39966
39966
  }
39967
- }, [Ve, Qe, Dt]), mt = Z === "closing" ? fe ?? y : y, Wt = mt && ne && (Z === "opening" || ct) ? Ev(mt, ne) : void 0, _t = He && D ? xt(D, "center") : Ee > 0 ? `translateY(${Ee}px)` : Wt, Lt = ne ? ar(ne, M) : null, Vt = !!(mt && ne), Xt = Vt && (Z === "closing" || Z === "open" && O), Kt = {
39967
+ }, [Ve, Qe, Dt]), mt = Z === "closing" ? fe ?? y : y, Wt = mt && ne && (Z === "opening" || ct) ? Ev(mt, ne) : void 0, _t = He && D ? xt(D, "center") : Ee > 0 ? `translateY(${Ee}px)` : Wt, Lt = ne ? ar(ne, P) : null, Vt = !!(mt && ne), Xt = Vt && (Z === "closing" || Z === "open" && O), Kt = {
39968
39968
  position: "absolute",
39969
39969
  top: Lt == null ? void 0 : Lt.top,
39970
39970
  left: Lt == null ? void 0 : Lt.left,
@@ -39985,12 +39985,12 @@ function jv({
39985
39985
  display: "block",
39986
39986
  objectFit: "contain",
39987
39987
  pointerEvents: wt && !He ? "auto" : "none"
39988
- }, Pt = (x, we, Oe = "adjacent") => {
39988
+ }, Mt = (x, we, Oe = "adjacent") => {
39989
39989
  const ze = Rt(x);
39990
39990
  if (!ze) return { display: "none" };
39991
- const gt = Oe === "far" ? we === "left" ? "far-left" : "far-right" : we === "left" ? "left-adjacent" : "right-adjacent", { start: zt } = _e !== null ? id(ze, gt, _e, M) : {
39992
- start: Oe === "far" ? Ir(ze, we, M) : no(ze, we, M)
39993
- }, rt = ar(zt, M), Ct = xt(x, gt), Ut = !He && Oe === "adjacent" && wt && !Pe ? Bv(ze, we, M) : null, Ht = Oe === "far" && He && _e === (we === "left" ? -1 : 1), yn = he && !te ? !1 : te, vn = Oe === "adjacent" && wt && Pe && !He;
39991
+ const gt = Oe === "far" ? we === "left" ? "far-left" : "far-right" : we === "left" ? "left-adjacent" : "right-adjacent", { start: zt } = _e !== null ? id(ze, gt, _e, P) : {
39992
+ start: Oe === "far" ? Ir(ze, we, P) : no(ze, we, P)
39993
+ }, rt = ar(zt, P), Ct = xt(x, gt), Ut = !He && Oe === "adjacent" && wt && !Me ? Bv(ze, we, P) : null, Ht = Oe === "far" && He && _e === (we === "left" ? -1 : 1), yn = he && !te ? !1 : te, vn = Oe === "adjacent" && wt && Me && !He;
39994
39994
  return {
39995
39995
  position: "absolute",
39996
39996
  top: rt.top,
@@ -40006,16 +40006,16 @@ function jv({
40006
40006
  };
40007
40007
  }, en = (x, we) => {
40008
40008
  const Oe = Rt(x);
40009
- return Oe ? Dv(no(Oe, we, M), we, M) : null;
40009
+ return Oe ? Dv(no(Oe, we, P), we, P) : null;
40010
40010
  }, nn = (x) => (we) => {
40011
40011
  if (!a) {
40012
40012
  if (L.current) {
40013
40013
  L.current = !1;
40014
40014
  return;
40015
40015
  }
40016
- we.stopPropagation(), Mt(x);
40016
+ we.stopPropagation(), Pt(x);
40017
40017
  }
40018
- }, on = Xe ? en(Xe, "left") : null, an = xe ? en(xe, "right") : null, Yt = on ? ar(on, M) : null, At = an ? ar(an, M) : null;
40018
+ }, on = Xe ? en(Xe, "left") : null, an = xe ? en(xe, "right") : null, Yt = on ? ar(on, P) : null, At = an ? ar(an, P) : null;
40019
40019
  return /* @__PURE__ */ U(
40020
40020
  "div",
40021
40021
  {
@@ -40104,7 +40104,7 @@ function jv({
40104
40104
  lr,
40105
40105
  {
40106
40106
  media: st,
40107
- style: Pt(st, "left", "far"),
40107
+ style: Mt(st, "left", "far"),
40108
40108
  onMeasure: ot,
40109
40109
  onTransitionEnd: it
40110
40110
  },
@@ -40115,7 +40115,7 @@ function jv({
40115
40115
  lr,
40116
40116
  {
40117
40117
  media: Xe,
40118
- style: Pt(Xe, "left"),
40118
+ style: Mt(Xe, "left"),
40119
40119
  onMeasure: ot,
40120
40120
  onTransitionEnd: it
40121
40121
  },
@@ -40143,7 +40143,7 @@ function jv({
40143
40143
  lr,
40144
40144
  {
40145
40145
  media: xe,
40146
- style: Pt(xe, "right"),
40146
+ style: Mt(xe, "right"),
40147
40147
  onMeasure: ot,
40148
40148
  onTransitionEnd: it
40149
40149
  },
@@ -40170,7 +40170,7 @@ function jv({
40170
40170
  lr,
40171
40171
  {
40172
40172
  media: vt,
40173
- style: Pt(vt, "right", "far"),
40173
+ style: Mt(vt, "right", "far"),
40174
40174
  onMeasure: ot,
40175
40175
  onTransitionEnd: it
40176
40176
  },
@@ -40363,7 +40363,7 @@ function e0({
40363
40363
  layoutId: r,
40364
40364
  portalId: a
40365
40365
  }) {
40366
- const { prefix: c } = un(), s = je(() => qv(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", f = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, C = F(y, n ?? !1), g = `max(${C}, ${Gv}px)`, { objectFitMode: m, imageStyle: h } = Jv(e), I = Zv(e, n), T = q(null), [S, G] = ee(!1), [E, B] = ee([]), [P, $] = ee(0), [z, v] = ee(0), [k, L] = ee(null), [Q, A] = ee({ title1: "", title2: "", title3: "" }), Y = (!n || i) && !S, j = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, V = j.sizeType ?? "none", ae = Y && V !== "none" ? `${c}-item-image-hover-${V}` : void 0, w = (j.value ?? 120) / 100, R = ve((de) => {
40366
+ const { prefix: c } = un(), s = je(() => qv(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", f = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, C = F(y, n ?? !1), g = `max(${C}, ${Gv}px)`, { objectFitMode: m, imageStyle: h } = Jv(e), I = Zv(e, n), T = q(null), [S, G] = ee(!1), [E, B] = ee([]), [M, $] = ee(0), [z, v] = ee(0), [k, L] = ee(null), [Q, A] = ee({ title1: "", title2: "", title3: "" }), Y = (!n || i) && !S, j = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, V = j.sizeType ?? "none", ae = Y && V !== "none" ? `${c}-item-image-hover-${V}` : void 0, w = (j.value ?? 120) / 100, R = ve((de) => {
40367
40367
  !de || V !== "scale" || (de.style.transformOrigin = Sm(de));
40368
40368
  }, [V]), _ = ve((de) => {
40369
40369
  if (de) {
@@ -40384,7 +40384,7 @@ function e0({
40384
40384
  }, ie = (() => {
40385
40385
  const de = {}, K = T.current ? getComputedStyle(T.current).getPropertyValue("--cntrl-article-width").trim() : "";
40386
40386
  return K && (de["--cntrl-article-width"] = K), de;
40387
- })(), M = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), se = je(() => kv(d), [d]), b = je(() => Hv(d), [d]), oe = (de, K) => {
40387
+ })(), P = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), se = je(() => kv(d), [d]), b = je(() => Hv(d), [d]), oe = (de, K) => {
40388
40388
  if (((e == null ? void 0 : e.lightbox) ?? "on") === "off" || n && !o && !i) return;
40389
40389
  const te = se.findIndex((_e) => _e.gridIndex === de);
40390
40390
  if (te < 0) return;
@@ -40403,15 +40403,15 @@ function e0({
40403
40403
  }
40404
40404
  $((K) => (K + de + E.length) % E.length);
40405
40405
  }, [se, z, E.length]), pe = se.length > 1 || E.length > 1;
40406
- return Me(() => {
40406
+ return Pe(() => {
40407
40407
  if (!S || typeof document > "u") return;
40408
40408
  const de = document.body.style.overflow;
40409
40409
  return document.body.style.overflow = "hidden", () => {
40410
40410
  document.body.style.overflow = de;
40411
40411
  };
40412
- }, [S]), Me(() => {
40412
+ }, [S]), Pe(() => {
40413
40413
  !n || o || i || G(!1);
40414
- }, [n, o, i]), Me(() => {
40414
+ }, [n, o, i]), Pe(() => {
40415
40415
  ((e == null ? void 0 : e.lightbox) ?? "on") === "off" && G(!1);
40416
40416
  }, [e == null ? void 0 : e.lightbox]), /* @__PURE__ */ U(at, { children: [
40417
40417
  /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: s } }),
@@ -40419,7 +40419,7 @@ function e0({
40419
40419
  /* @__PURE__ */ l("div", { ref: T, className: `${c}-wrapper ${c}-type-${u}`, style: ne, children: d.map((de, K) => {
40420
40420
  var _e, Le;
40421
40421
  const te = !!((_e = de.image) != null && _e.url), ge = Qv(
40422
- !!M,
40422
+ !!P,
40423
40423
  te,
40424
40424
  K,
40425
40425
  c,
@@ -40511,7 +40511,7 @@ function e0({
40511
40511
  {
40512
40512
  prefix: c,
40513
40513
  items: E,
40514
- index: P,
40514
+ index: M,
40515
40515
  entry: Q,
40516
40516
  settings: e,
40517
40517
  isEditor: n,
@@ -42117,13 +42117,13 @@ function S0(e, t) {
42117
42117
  `;
42118
42118
  }
42119
42119
  function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
42120
- const { prefix: r } = un(), a = y0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? As, u = d.sizeType ?? "drag", f = d.value ?? As.value, y = (e == null ? void 0 : e.direction) ?? "horizontal", C = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", m = (e == null ? void 0 : e.navSize) ?? "m", h = h0[m], I = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = (xe) => F(xe * I, n), S = (e == null ? void 0 : e.show) ?? "always", G = (e == null ? void 0 : e.controls) ?? null, E = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, B = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, P = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, $ = (e == null ? void 0 : e.controlsColor) ?? Es.color, z = (e == null ? void 0 : e.controlsHoverColor) ?? Es.hover, v = (e == null ? void 0 : e.navColor) ?? go.colors.inactive, k = (e == null ? void 0 : e.navPaginationColor) ?? go.colors.pagination, L = (e == null ? void 0 : e.navBackgroundColor) ?? go.colors.background, Q = (e == null ? void 0 : e.linkColor) ?? xa.linkColor, A = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, Y = y === "horizontal", j = u === "click", V = u === "drag", ae = u === "auto" && (!n || !!i), w = !n, R = C === "slide", _ = g === "classic", ne = S !== "never", ie = S === "on hover", M = F(E, n), se = {
42121
- width: M,
42122
- height: M,
42123
- maxWidth: M
42120
+ const { prefix: r } = un(), a = y0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? As, u = d.sizeType ?? "drag", f = d.value ?? As.value, y = (e == null ? void 0 : e.direction) ?? "horizontal", C = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", m = (e == null ? void 0 : e.navSize) ?? "m", h = h0[m], I = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = (xe) => F(xe * I, n), S = (e == null ? void 0 : e.show) ?? "always", G = (e == null ? void 0 : e.controls) ?? null, E = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, B = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, M = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, $ = (e == null ? void 0 : e.controlsColor) ?? Es.color, z = (e == null ? void 0 : e.controlsHoverColor) ?? Es.hover, v = (e == null ? void 0 : e.navColor) ?? go.colors.inactive, k = (e == null ? void 0 : e.navPaginationColor) ?? go.colors.pagination, L = (e == null ? void 0 : e.navBackgroundColor) ?? go.colors.background, Q = (e == null ? void 0 : e.linkColor) ?? xa.linkColor, A = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, Y = y === "horizontal", j = u === "click", V = u === "drag", ae = u === "auto" && (!n || !!i), w = !n, R = C === "slide", _ = g === "classic", ne = S !== "never", ie = S === "on hover", P = F(E, n), se = {
42121
+ width: P,
42122
+ height: P,
42123
+ maxWidth: P
42124
42124
  }, b = R && s > 1, [oe, Z] = ee(0), [be, Ee] = ee(b ? 1 : 0), [pe, de] = ee(!1), [K, te] = ee(!1), [ge, _e] = ee(!1), [Le, Fe] = ee(0), [me, ye] = ee(!1), [$e, O] = ee(!1), le = q(!1), fe = q(be);
42125
42125
  fe.current = be;
42126
- const Se = q(null), Pe = q(0), Ce = q(null), W = q(null), he = q(null), re = q(null), N = ve((xe) => {
42126
+ const Se = q(null), Me = q(0), Ce = q(null), W = q(null), he = q(null), re = q(null), N = ve((xe) => {
42127
42127
  le.current = xe, de(xe);
42128
42128
  }, []), X = ve((xe) => {
42129
42129
  if (s < 2 || xe === 0) return;
@@ -42139,7 +42139,7 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42139
42139
  for (; Ge > 0; ) {
42140
42140
  const vt = v0(We, ke, s, b);
42141
42141
  if (We = vt.position, Ge -= 1, vt.hitBoundary) {
42142
- Pe.current = Ge * ke;
42142
+ Me.current = Ge * ke;
42143
42143
  break;
42144
42144
  }
42145
42145
  }
@@ -42160,10 +42160,10 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42160
42160
  const ke = yo(xe, s);
42161
42161
  if (!(ke === oe && !le.current) && (ye(!0), N(!0), Z(ke), R)) {
42162
42162
  const Ue = ke + (b ? 1 : 0);
42163
- Se.current = null, Pe.current = 0, fe.current = Ue, te(!1), Ee(Ue);
42163
+ Se.current = null, Me.current = 0, fe.current = Ue, te(!1), Ee(Ue);
42164
42164
  }
42165
42165
  }, [oe, s, b, R, N]);
42166
- Me(() => {
42166
+ Pe(() => {
42167
42167
  if (!pe) return;
42168
42168
  const xe = window.setTimeout(() => {
42169
42169
  if (b && (be === 0 || be === s + 1)) {
@@ -42173,15 +42173,15 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42173
42173
  N(!1);
42174
42174
  }, ji);
42175
42175
  return () => window.clearTimeout(xe);
42176
- }, [oe, s, b, pe, N, be]), Me(() => {
42176
+ }, [oe, s, b, pe, N, be]), Pe(() => {
42177
42177
  if (!K) return;
42178
42178
  let xe = 0;
42179
42179
  const ke = requestAnimationFrame(() => {
42180
42180
  xe = requestAnimationFrame(() => {
42181
42181
  const Ue = Se.current;
42182
42182
  Se.current = null;
42183
- const We = Pe.current;
42184
- if (Pe.current = 0, te(!1), Ue !== null) {
42183
+ const We = Me.current;
42184
+ if (Me.current = 0, te(!1), Ue !== null) {
42185
42185
  fe.current = Ue, Ee(Ue);
42186
42186
  return;
42187
42187
  }
@@ -42197,16 +42197,16 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42197
42197
  };
42198
42198
  }, [X, N, K]);
42199
42199
  const D = `${b}:${s}`, qe = q(D);
42200
- Me(() => {
42200
+ Pe(() => {
42201
42201
  if (qe.current === D) return;
42202
42202
  qe.current = D;
42203
42203
  const xe = s > 0 ? Math.min(oe, s - 1) : 0;
42204
42204
  he.current = null, re.current = null, _e(!1), Fe(0), Z(xe), te(!0), Ee(xe + (b ? 1 : 0));
42205
- }, [oe, s, b, D]), Me(() => {
42205
+ }, [oe, s, b, D]), Pe(() => {
42206
42206
  if (!me) return;
42207
42207
  const xe = window.setTimeout(() => ye(!1), d0);
42208
42208
  return () => window.clearTimeout(xe);
42209
- }, [me, oe]), Me(() => {
42209
+ }, [me, oe]), Pe(() => {
42210
42210
  if (!ae || s < 2) return;
42211
42211
  const xe = Math.max(f, 0.1) * 1e3, ke = window.setInterval(() => {
42212
42212
  w && $e || Ae(1);
@@ -42231,7 +42231,7 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42231
42231
  let st = 1;
42232
42232
  De && ke.size > 0 && (st = Math.max(1, Math.round(Math.abs(Ge) / ke.size))), Fe(0), X(Ge < 0 ? st : -st);
42233
42233
  }, [X, R]);
42234
- Me(() => {
42234
+ Pe(() => {
42235
42235
  const xe = (ke) => {
42236
42236
  re.current === null || ke.pointerId !== re.current || He(ke);
42237
42237
  };
@@ -42242,7 +42242,7 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42242
42242
  const dt = (xe) => {
42243
42243
  const ke = Ce.current;
42244
42244
  if (!V || s < 2 || !ke || xe.pointerType === "mouse" && xe.button !== 0) return;
42245
- Se.current = null, Pe.current = 0, le.current && N(!1);
42245
+ Se.current = null, Me.current = 0, le.current && N(!1);
42246
42246
  let Ue = 0;
42247
42247
  const We = W.current;
42248
42248
  if (R && We) {
@@ -42385,7 +42385,7 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42385
42385
  },
42386
42386
  className: `${r}-arrow-inner`,
42387
42387
  style: {
42388
- transform: `translate(${F(B, n)}, ${F(P * (Y ? 1 : -1), n)}) rotate(${Y ? "0deg" : "90deg"})`
42388
+ transform: `translate(${F(B, n)}, ${F(M * (Y ? 1 : -1), n)}) rotate(${Y ? "0deg" : "90deg"})`
42389
42389
  },
42390
42390
  children: [
42391
42391
  G && /* @__PURE__ */ l(
@@ -42431,7 +42431,7 @@ function $0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
42431
42431
  xe.stopPropagation(), Ae(1);
42432
42432
  },
42433
42433
  style: {
42434
- transform: `translate(${F(B * (Y ? -1 : 1), n)}, ${F(P, n)}) rotate(${Y ? "0deg" : "90deg"})`
42434
+ transform: `translate(${F(B * (Y ? -1 : 1), n)}, ${F(M, n)}) rotate(${Y ? "0deg" : "90deg"})`
42435
42435
  },
42436
42436
  children: [
42437
42437
  G && /* @__PURE__ */ l(
@@ -44244,7 +44244,7 @@ function Ws(e, t, n, i) {
44244
44244
  [`--${n}-title-leading-gap`]: F((o - t) / 2, i)
44245
44245
  };
44246
44246
  }
44247
- function M0(e) {
44247
+ function P0(e) {
44248
44248
  return `
44249
44249
  .${e}-wrapper {
44250
44250
  box-sizing: border-box;
@@ -44464,7 +44464,7 @@ function M0(e) {
44464
44464
  }
44465
44465
  `;
44466
44466
  }
44467
- const P0 = "rgba(28,31,34,0.9)", _n = 500, yi = "cubic-bezier(0.22, 1, 0.36, 1)", E0 = 72, A0 = 50, k0 = {
44467
+ const M0 = "rgba(28,31,34,0.9)", _n = 500, yi = "cubic-bezier(0.22, 1, 0.36, 1)", E0 = 72, A0 = 50, k0 = {
44468
44468
  titleColor: "title-color",
44469
44469
  lightboxCounterColor: "lightbox-counter-color"
44470
44470
  }, F0 = [];
@@ -44543,7 +44543,7 @@ function G0({
44543
44543
  onMouseMove: a,
44544
44544
  onTransitionEnd: c
44545
44545
  }) {
44546
- return Me(() => {
44546
+ return Pe(() => {
44547
44547
  const s = n.current;
44548
44548
  if (s)
44549
44549
  return () => {
@@ -44578,61 +44578,61 @@ function U0({
44578
44578
  counterStyle: d,
44579
44579
  backgroundColor: u
44580
44580
  }) {
44581
- const f = i === "cover", y = q(null), C = q(null), g = q(null), m = q(0), h = q(0), I = q("none"), T = q(!1), S = q(!1), G = q(!1), E = q(null), [B, P] = ee(null), [$, z] = ee("opening"), [v, k] = ee(0), [L, Q] = ee(0), [A, Y] = ee(!1), [j, V] = ee(!1), [ae, w] = ee(!1), R = q(n), _ = t[n], ne = _ ? Ha(_) : !1, ie = L !== 0 || A, M = ve((me) => {
44581
+ const f = i === "cover", y = q(null), C = q(null), g = q(null), m = q(0), h = q(0), I = q("none"), T = q(!1), S = q(!1), G = q(!1), E = q(null), [B, M] = ee(null), [$, z] = ee("opening"), [v, k] = ee(0), [L, Q] = ee(0), [A, Y] = ee(!1), [j, V] = ee(!1), [ae, w] = ee(!1), R = q(n), _ = t[n], ne = _ ? Ha(_) : !1, ie = L !== 0 || A, P = ve((me) => {
44582
44582
  G.current = me, Y(me);
44583
44583
  }, []), se = ve(() => {
44584
44584
  E.current !== null && (window.clearTimeout(E.current), E.current = null);
44585
44585
  }, []), b = ve(() => {
44586
44586
  se(), E.current = window.setTimeout(() => {
44587
- se(), M(!1);
44587
+ se(), P(!1);
44588
44588
  }, _n + 32);
44589
- }, [se, M]), oe = ve(() => {
44589
+ }, [se, P]), oe = ve(() => {
44590
44590
  const me = y.current, ye = C.current;
44591
44591
  if (!me) return;
44592
44592
  const $e = me.getBoundingClientRect(), O = $e.width, le = $e.height;
44593
44593
  if (!O || !le) return;
44594
44594
  if (i === "cover") {
44595
- P({ width: O, height: le, left: $e.left, top: $e.top });
44595
+ M({ width: O, height: le, left: $e.left, top: $e.top });
44596
44596
  return;
44597
44597
  }
44598
44598
  if (!ye) {
44599
- P(cr(me));
44599
+ M(cr(me));
44600
44600
  return;
44601
44601
  }
44602
44602
  const { width: fe, height: Se } = D0(ye);
44603
44603
  if (!fe || !Se) {
44604
- P(cr(me));
44604
+ M(cr(me));
44605
44605
  return;
44606
44606
  }
44607
- const Pe = fe / Se, Ce = O / le;
44608
- if (Pe > Ce) {
44609
- const W = O / Pe;
44610
- P({ width: O, height: W, left: $e.left, top: $e.top + (le - W) / 2 });
44607
+ const Me = fe / Se, Ce = O / le;
44608
+ if (Me > Ce) {
44609
+ const W = O / Me;
44610
+ M({ width: O, height: W, left: $e.left, top: $e.top + (le - W) / 2 });
44611
44611
  } else {
44612
- const W = le * Pe;
44613
- P({ width: W, height: le, left: $e.left + (O - W) / 2, top: $e.top });
44612
+ const W = le * Me;
44613
+ M({ width: W, height: le, left: $e.left + (O - W) / 2, top: $e.top });
44614
44614
  }
44615
44615
  }, [i]);
44616
- Me(() => {
44616
+ Pe(() => {
44617
44617
  oe();
44618
44618
  const me = y.current;
44619
44619
  if (!me) return;
44620
44620
  const ye = new ResizeObserver(() => oe());
44621
44621
  return ye.observe(me), () => ye.disconnect();
44622
- }, [oe, n]), Me(() => {
44622
+ }, [oe, n]), Pe(() => {
44623
44623
  $ === "opening" && B && z("open");
44624
- }, [$, B]), Me(() => {
44624
+ }, [$, B]), Pe(() => {
44625
44625
  if ($ !== "closing") return;
44626
44626
  const me = setTimeout(() => r(), _n);
44627
44627
  return () => clearTimeout(me);
44628
- }, [$, r]), Me(() => () => {
44628
+ }, [$, r]), Pe(() => () => {
44629
44629
  se();
44630
44630
  }, [se]), Ot(() => {
44631
44631
  if (R.current === n) return;
44632
- se(), k(0), Q(0), M(!1), w(!1), V(!1), m.current = 0, h.current = 0, I.current = "none", T.current = !1, g.current = null, S.current = !1;
44632
+ se(), k(0), Q(0), P(!1), w(!1), V(!1), m.current = 0, h.current = 0, I.current = "none", T.current = !1, g.current = null, S.current = !1;
44633
44633
  const me = y.current;
44634
- me && P(cr(me)), R.current = n;
44635
- }, [n, M, se]), Me(() => {
44634
+ me && M(cr(me)), R.current = n;
44635
+ }, [n, P, se]), Pe(() => {
44636
44636
  if ($ !== "open") return;
44637
44637
  let me = null;
44638
44638
  const ye = () => {
@@ -44644,13 +44644,13 @@ function U0({
44644
44644
  }, O = (Ce) => {
44645
44645
  se(), G.current = !1, Y(!1), Q(0), V(!1), T.current = !1, h.current = 0, I.current = "none";
44646
44646
  const W = y.current;
44647
- W && P(cr(W)), Ce < 0 ? c() : a();
44647
+ W && M(cr(W)), Ce < 0 ? c() : a();
44648
44648
  }, le = (Ce) => {
44649
44649
  if (Math.abs(Ce) > A0 && t.length > 1) {
44650
44650
  O(Ce);
44651
44651
  return;
44652
44652
  }
44653
- M(!0), Q(0), b();
44653
+ P(!0), Q(0), b();
44654
44654
  }, fe = (Ce) => {
44655
44655
  if (Ce.touches.length !== 1 || G.current) return;
44656
44656
  const W = Ce.touches[0];
@@ -44673,7 +44673,7 @@ function U0({
44673
44673
  return;
44674
44674
  }
44675
44675
  I.current === "vertical" && (T.current = !0, V(!0), m.current = re, k(re), Ce.preventDefault());
44676
- }, Pe = () => {
44676
+ }, Me = () => {
44677
44677
  if (!g.current) return;
44678
44678
  const Ce = I.current, W = T.current;
44679
44679
  if (W && Ce === "horizontal")
@@ -44687,10 +44687,10 @@ function U0({
44687
44687
  else Ce === "horizontal" && Math.abs(h.current) > 0 && (le(h.current), $e());
44688
44688
  g.current = null, I.current = "none", h.current = 0, T.current = !1, V(!1);
44689
44689
  };
44690
- return document.addEventListener("touchstart", fe, { passive: !0 }), document.addEventListener("touchmove", Se, { passive: !1 }), document.addEventListener("touchend", Pe), document.addEventListener("touchcancel", Pe), () => {
44691
- document.removeEventListener("touchstart", fe), document.removeEventListener("touchmove", Se), document.removeEventListener("touchend", Pe), document.removeEventListener("touchcancel", Pe), ye();
44690
+ return document.addEventListener("touchstart", fe, { passive: !0 }), document.addEventListener("touchmove", Se, { passive: !1 }), document.addEventListener("touchend", Me), document.addEventListener("touchcancel", Me), () => {
44691
+ document.removeEventListener("touchstart", fe), document.removeEventListener("touchmove", Se), document.removeEventListener("touchend", Me), document.removeEventListener("touchcancel", Me), ye();
44692
44692
  };
44693
- }, [$, t.length, c, a, M, b, se]), Me(() => {
44693
+ }, [$, t.length, c, a, P, b, se]), Pe(() => {
44694
44694
  const me = (ye) => {
44695
44695
  ye.key === "Escape" && (ye.preventDefault(), ye.stopPropagation(), $ !== "closing" && z("closing"));
44696
44696
  };
@@ -44721,8 +44721,8 @@ function U0({
44721
44721
  }
44722
44722
  me.currentTarget.style.cursor = $e < ye.width / 2 ? "w-resize" : "e-resize";
44723
44723
  }, ge = ve((me) => {
44724
- me.propertyName !== "transform" || !G.current || (se(), M(!1));
44725
- }, [se, M]), _e = ie ? `translateX(${L}px)` : v > 0 ? `translateY(${v}px)` : void 0, Le = {
44724
+ me.propertyName !== "transform" || !G.current || (se(), P(!1));
44725
+ }, [se, P]), _e = ie ? `translateX(${L}px)` : v > 0 ? `translateY(${v}px)` : void 0, Le = {
44726
44726
  position: "fixed",
44727
44727
  top: B == null ? void 0 : B.top,
44728
44728
  left: B == null ? void 0 : B.left,
@@ -44948,7 +44948,7 @@ function _s({
44948
44948
  onClick: u ? ($) => {
44949
44949
  $.stopPropagation(), u();
44950
44950
  } : void 0
44951
- }, B = Math.max(c, vi), P = Ha(t) ? /* @__PURE__ */ l(
44951
+ }, B = Math.max(c, vi), M = Ha(t) ? /* @__PURE__ */ l(
44952
44952
  "video",
44953
44953
  {
44954
44954
  ...E,
@@ -44967,7 +44967,7 @@ function _s({
44967
44967
  }
44968
44968
  );
44969
44969
  return /* @__PURE__ */ U("div", { className: `${e}-gallery-item`, children: [
44970
- y ? /* @__PURE__ */ l("div", { style: T, children: P }) : P,
44970
+ y ? /* @__PURE__ */ l("div", { style: T, children: M }) : M,
44971
44971
  s && c > 0 && /* @__PURE__ */ l(
44972
44972
  "div",
44973
44973
  {
@@ -45254,7 +45254,7 @@ function J0(e, t, n) {
45254
45254
  }
45255
45255
  function Q0(e, t) {
45256
45256
  const [n, i] = ee(e), o = q(e);
45257
- return Me(() => {
45257
+ return Pe(() => {
45258
45258
  if (!t) {
45259
45259
  o.current = e, i(e);
45260
45260
  return;
@@ -45282,19 +45282,19 @@ function eb({
45282
45282
  portalId: r
45283
45283
  }) {
45284
45284
  var St;
45285
- const { prefix: a } = un(), c = je(() => M0(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", f = (e == null ? void 0 : e.imgWidth) ?? Oi, y = (e == null ? void 0 : e.titleWidth) ?? z0, C = B0(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? I0, m = (e == null ? void 0 : e.position) ?? "center", h = (e == null ? void 0 : e.titleTopPadding) ?? 0, I = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, S = K0(e == null ? void 0 : e.transition), G = (e == null ? void 0 : e.lightbox) ?? "on", E = u === "b", B = S === "fade" || S === "retype", { setTitleRef: P, dominantIndex: $ } = J0(s.length, B, m), z = ((St = s[$]) == null ? void 0 : St.title) ?? "", v = Q0(z, S === "retype"), k = S === "fade" || S === "retype", L = S === "retype" ? v : z, Q = E ? void 0 : { width: F(f, n ?? !1) }, A = G === "on" && (!n || i || o), Y = o ?? !1, j = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, V = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, ae = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, w = (bt) => F(bt, n ?? !1), _ = {
45285
+ const { prefix: a } = un(), c = je(() => P0(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", f = (e == null ? void 0 : e.imgWidth) ?? Oi, y = (e == null ? void 0 : e.titleWidth) ?? z0, C = B0(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? I0, m = (e == null ? void 0 : e.position) ?? "center", h = (e == null ? void 0 : e.titleTopPadding) ?? 0, I = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, S = K0(e == null ? void 0 : e.transition), G = (e == null ? void 0 : e.lightbox) ?? "on", E = u === "b", B = S === "fade" || S === "retype", { setTitleRef: M, dominantIndex: $ } = J0(s.length, B, m), z = ((St = s[$]) == null ? void 0 : St.title) ?? "", v = Q0(z, S === "retype"), k = S === "fade" || S === "retype", L = S === "retype" ? v : z, Q = E ? void 0 : { width: F(f, n ?? !1) }, A = G === "on" && (!n || i || o), Y = o ?? !1, j = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, V = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, ae = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, w = (bt) => F(bt, n ?? !1), _ = {
45286
45286
  width: w(y)
45287
45287
  }, ne = u === "a" ? j : V, ie = E ? { width: "100%" } : {
45288
45288
  width: `calc(100% - ${w(f)} - ${w(ne)})`,
45289
45289
  ...u === "c" ? { marginLeft: "auto" } : {}
45290
- }, M = Math.max(j, vi), se = Math.max(V, vi), b = Math.max(ae, vi), oe = Math.max(h, vi), Z = Math.max(I, vi), be = Math.max(T, vi), Ee = Math.max(0, (d ?? 1) - (f ?? Oi)), pe = u === "a" ? Math.max(0, (d ?? 1) - (f ?? Oi) - j) : u === "c" ? Math.max(0, (d ?? 1) - (f ?? Oi) - V) : u === "b" ? d ?? 1 : 1, de = Y && (u === "a" || u === "b" || u === "c") && m === "top", K = Y && ((u === "a" || u === "b") && (m === "left" || m === "top") || u === "c" && (m === "left" || m === "top")), te = Y && ((u === "c" || u === "b") && m === "right" || u === "a" && m === "right"), ge = s.length > 1, _e = E ? void 0 : w((u === "c" ? V : j) + (f ?? Oi)), Le = u === "c" && _e ? { left: _e } : void 0, Fe = u === "a" && _e ? { right: _e } : void 0, me = E ? { left: 0, width: "100%" } : u === "a" ? { right: w(j), width: w(f) } : { left: w(V), width: w(f) }, {
45290
+ }, P = Math.max(j, vi), se = Math.max(V, vi), b = Math.max(ae, vi), oe = Math.max(h, vi), Z = Math.max(I, vi), be = Math.max(T, vi), Ee = Math.max(0, (d ?? 1) - (f ?? Oi)), pe = u === "a" ? Math.max(0, (d ?? 1) - (f ?? Oi) - j) : u === "c" ? Math.max(0, (d ?? 1) - (f ?? Oi) - V) : u === "b" ? d ?? 1 : 1, de = Y && (u === "a" || u === "b" || u === "c") && m === "top", K = Y && ((u === "a" || u === "b") && (m === "left" || m === "top") || u === "c" && (m === "left" || m === "top")), te = Y && ((u === "c" || u === "b") && m === "right" || u === "a" && m === "right"), ge = s.length > 1, _e = E ? void 0 : w((u === "c" ? V : j) + (f ?? Oi)), Le = u === "c" && _e ? { left: _e } : void 0, Fe = u === "a" && _e ? { right: _e } : void 0, me = E ? { left: 0, width: "100%" } : u === "a" ? { right: w(j), width: w(f) } : { left: w(V), width: w(f) }, {
45291
45291
  titleColor: ye,
45292
45292
  titleFontFamily: $e,
45293
45293
  titleFontSettings: O,
45294
45294
  titleFontSize: le,
45295
45295
  titleLineHeight: fe,
45296
45296
  titleLetterSpacing: Se,
45297
- titleWordSpacing: Pe,
45297
+ titleWordSpacing: Me,
45298
45298
  titleAlign: Ce,
45299
45299
  titleTextAppearance: W,
45300
45300
  lightboxCounterColor: he,
@@ -45314,7 +45314,7 @@ function eb({
45314
45314
  fontSize: le ?? 0.01,
45315
45315
  lineHeight: fe,
45316
45316
  letterSpacing: Se ?? 0,
45317
- wordSpacing: Pe ?? 0,
45317
+ wordSpacing: Me ?? 0,
45318
45318
  textAlign: Ce ?? "left",
45319
45319
  textAppearance: W,
45320
45320
  color: ye ?? "#000000"
@@ -45354,15 +45354,15 @@ function eb({
45354
45354
  const bt = { ...Ie }, xt = De.current ? getComputedStyle(De.current).getPropertyValue("--cntrl-article-width").trim() : "";
45355
45355
  return xt && (bt["--cntrl-article-width"] = xt), bt;
45356
45356
  }, [Ie, Ge]);
45357
- return Me(() => {
45357
+ return Pe(() => {
45358
45358
  if (!Ge || G !== "on" || typeof document > "u") return;
45359
45359
  const bt = document.body.style.overflow;
45360
45360
  return document.body.style.overflow = "hidden", () => {
45361
45361
  document.body.style.overflow = bt;
45362
45362
  };
45363
- }, [Ge, G]), Me(() => {
45363
+ }, [Ge, G]), Pe(() => {
45364
45364
  !n || o || i || st(!1);
45365
- }, [n, o, i]), Me(() => {
45365
+ }, [n, o, i]), Pe(() => {
45366
45366
  G === "off" && st(!1);
45367
45367
  }, [G]), /* @__PURE__ */ U(at, { children: [
45368
45368
  /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: c } }),
@@ -45403,10 +45403,10 @@ function eb({
45403
45403
  }
45404
45404
  ) }),
45405
45405
  s.map((bt, xt) => {
45406
- const Dt = H0(bt.gallery), rn = xt < s.length - 1, cn = Dt.filter((Et) => Et.lightboxMedia).map((Et) => Et.lightboxMedia), Mt = {
45406
+ const Dt = H0(bt.gallery), rn = xt < s.length - 1, cn = Dt.filter((Et) => Et.lightboxMedia).map((Et) => Et.lightboxMedia), Pt = {
45407
45407
  P: a,
45408
45408
  position: m,
45409
- titleRef: P(xt),
45409
+ titleRef: M(xt),
45410
45410
  titleClassName: Xe,
45411
45411
  titleContainerStyle: $t,
45412
45412
  titleTextBoxStyle: k ? { maxWidth: "100%" } : pt,
@@ -45486,7 +45486,7 @@ function eb({
45486
45486
  /* @__PURE__ */ l("div", { className: `${a}-title-layer`, children: /* @__PURE__ */ l(
45487
45487
  wa,
45488
45488
  {
45489
- ...Mt,
45489
+ ...Pt,
45490
45490
  title: k ? "" : bt.title
45491
45491
  }
45492
45492
  ) })
@@ -45494,7 +45494,7 @@ function eb({
45494
45494
  /* @__PURE__ */ l(
45495
45495
  wa,
45496
45496
  {
45497
- ...Mt,
45497
+ ...Pt,
45498
45498
  title: k ? "" : bt.title
45499
45499
  }
45500
45500
  ),
@@ -45506,7 +45506,7 @@ function eb({
45506
45506
  galleryWidthStyle: Q,
45507
45507
  galleryPaddingRight: j,
45508
45508
  galleryPaddingLeft: V,
45509
- galleryPaddingRightWidth: M,
45509
+ galleryPaddingRightWidth: P,
45510
45510
  galleryPaddingLeftWidth: se,
45511
45511
  galleryPaddingMaxFraction: Ee,
45512
45512
  showControls: Y,
@@ -45557,7 +45557,7 @@ function eb({
45557
45557
  onNext: () => ht((xt) => (xt + 1) % vt.length),
45558
45558
  counterClassName: We,
45559
45559
  counterStyle: Ue,
45560
- backgroundColor: e.backgroundColor ?? P0
45560
+ backgroundColor: e.backgroundColor ?? M0
45561
45561
  }
45562
45562
  ) }),
45563
45563
  bt
@@ -48372,16 +48372,16 @@ function ud(e, t, n) {
48372
48372
  function pd(e) {
48373
48373
  return ud(e, hb, fb);
48374
48374
  }
48375
- function Mb(e) {
48375
+ function Pb(e) {
48376
48376
  return ud(e, yb, vb);
48377
48377
  }
48378
48378
  function md(e, t) {
48379
48379
  if (!t) return "none";
48380
- const n = Mb(e);
48380
+ const n = Pb(e);
48381
48381
  return n <= 0 ? "none" : `blur(${n}px)`;
48382
48382
  }
48383
- function Pb(e, t, n, i, o, r, a, c) {
48384
- const { offset: s, scale: d } = sd(i, o, r * Math.PI * 2), u = r * Math.PI * 2, f = cd(t, n, s), y = Bo(d), C = `calc(${e(f)} - var(--spiral-base-w) * ${y} / 2)`, g = `calc(var(--spiral-base-w) * ${y})`, m = a ? `height: calc(var(--spiral-base-h) * ${y});` : "";
48383
+ function Mb(e, t, n, i, o, r, a, c) {
48384
+ const { offset: s, scale: d } = sd(i, o, r * Math.PI * 2), u = r * Math.PI * 2, f = cd(t, n, s), y = Bo(d), C = `calc(${e(f)} - var(--helix-base-w) * ${y} / 2)`, g = `calc(var(--helix-base-w) * ${y})`, m = a ? `height: calc(var(--helix-base-h) * ${y});` : "";
48385
48385
  return `left: ${C}; width: ${g}; ${m} z-index: ${dd(d)}; transform: translateY(-50%); opacity: ${pd(u)}; filter: ${md(u, c)};`;
48386
48386
  }
48387
48387
  function Eb(e, t, n, i, o, r, a, c) {
@@ -48389,7 +48389,7 @@ function Eb(e, t, n, i, o, r, a, c) {
48389
48389
  for (let d = 0; d <= zs; d += 1) {
48390
48390
  const u = d / zs;
48391
48391
  s.push(
48392
- ` ${Bo(u * 100)}% { ${Pb(t, n, i, o, r, u, a, c)} }`
48392
+ ` ${Bo(u * 100)}% { ${Mb(t, n, i, o, r, u, a, c)} }`
48393
48393
  );
48394
48394
  }
48395
48395
  return `@keyframes ${e}-orbit {
@@ -48440,36 +48440,36 @@ function Nb({
48440
48440
  ), c = $a(e == null ? void 0 : e.imageWidth, sb), s = $a(e == null ? void 0 : e.turnHeight, cb), d = Bs(e == null ? void 0 : e.itemsPerTurn, db, 3, 40), u = Bs(e == null ? void 0 : e.turns, ub, 1, 30), f = Math.min(gb, Math.max(0, pb)), y = Math.min(1, Math.max(0, mb)), C = Math.max(0, (e == null ? void 0 : e.speed) ?? rd), g = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", m = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", h = (e == null ? void 0 : e.cornerRadius) ?? 0, I = (e == null ? void 0 : e.blur) !== "off", T = je(() => wb(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), S = T.display === "cover", G = (ie) => F(ie, n ?? !1), E = je(() => Cb(f), [f]), B = je(
48441
48441
  () => Lb(a, c, S, y),
48442
48442
  [a, c, S, y]
48443
- ), P = je(
48443
+ ), M = je(
48444
48444
  () => xb(o, Eb(o, G, a, B, f, E, S, I)),
48445
48445
  [o, a, B, f, E, S, I, n]
48446
48446
  ), $ = je(
48447
48447
  () => (t ?? []).filter((ie) => {
48448
- var M;
48449
- return !!((M = ie.image) != null && M.url);
48448
+ var P;
48449
+ return !!((P = ie.image) != null && P.url);
48450
48450
  }),
48451
48451
  [t]
48452
48452
  ), z = s / d, v = c * Sb(T), k = Math.min(rb, u * d), L = ab * d, Q = k + L * 2, Y = Math.max(0, u - 1) * s + (d - 1) * z, j = C > 0, V = m === "scroll" && j, ae = m === "autoplay" && j && (n ? !!i : !0), [w, R] = ee(0);
48453
- Me(() => {
48453
+ Pe(() => {
48454
48454
  if (!V) return;
48455
48455
  const ie = r.current;
48456
48456
  if (!ie) return;
48457
- const M = () => {
48457
+ const P = () => {
48458
48458
  const b = ie.getBoundingClientRect(), oe = window.innerHeight || document.documentElement.clientHeight, Z = oe + b.height;
48459
48459
  Z <= 0 || R(Math.min(1, Math.max(0, (oe - b.top) / Z)));
48460
48460
  };
48461
- M(), window.addEventListener("scroll", M, { passive: !0 }), window.addEventListener("resize", M);
48462
- const se = new ResizeObserver(M);
48461
+ P(), window.addEventListener("scroll", P, { passive: !0 }), window.addEventListener("resize", P);
48462
+ const se = new ResizeObserver(P);
48463
48463
  return se.observe(ie), () => {
48464
- window.removeEventListener("scroll", M), window.removeEventListener("resize", M), se.disconnect();
48464
+ window.removeEventListener("scroll", P), window.removeEventListener("resize", P), se.disconnect();
48465
48465
  };
48466
48466
  }, [V]);
48467
48467
  const _ = V ? _b(w, C, g) : 0, ne = j && m === "autoplay" ? 360 / (C * ob) : 0;
48468
48468
  return $.length === 0 ? /* @__PURE__ */ U(at, { children: [
48469
- /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: P } }),
48469
+ /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: M } }),
48470
48470
  /* @__PURE__ */ l("div", { className: `${o}-wrapper`, style: { width: G(a), marginInline: "auto" } })
48471
48471
  ] }) : /* @__PURE__ */ U(at, { children: [
48472
- /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: P } }),
48472
+ /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: M } }),
48473
48473
  /* @__PURE__ */ l(
48474
48474
  "div",
48475
48475
  {
@@ -48480,10 +48480,10 @@ function Nb({
48480
48480
  height: G(Y),
48481
48481
  marginInline: "auto"
48482
48482
  },
48483
- children: Array.from({ length: Q }, (ie, M) => {
48484
- const se = M - L, oe = $[gd(se, $.length)].image, Z = bl(se, d), be = Ab(se, d), Ee = V ? hd(be + _) : be, pe = Fb(se, d, s, z), de = y === 0 ? 0 : (Vs(Z + 7.3) - 0.5) * y * z, K = S ? 1 : 1 + (Vs(Z + 3.1) - 0.5) * 2 * ad * (0.35 + y), te = Ee * Math.PI * 2, { offset: ge, scale: _e } = sd(f, E, te), Le = c * K, Fe = Rb(Le, _e), me = cd(a, B, ge), ye = {
48485
- "--spiral-base-w": G(Le),
48486
- ...S ? { "--spiral-base-h": G(v) } : {}
48483
+ children: Array.from({ length: Q }, (ie, P) => {
48484
+ const se = P - L, oe = $[gd(se, $.length)].image, Z = bl(se, d), be = Ab(se, d), Ee = V ? hd(be + _) : be, pe = Fb(se, d, s, z), de = y === 0 ? 0 : (Vs(Z + 7.3) - 0.5) * y * z, K = S ? 1 : 1 + (Vs(Z + 3.1) - 0.5) * 2 * ad * (0.35 + y), te = Ee * Math.PI * 2, { offset: ge, scale: _e } = sd(f, E, te), Le = c * K, Fe = Rb(Le, _e), me = cd(a, B, ge), ye = {
48485
+ "--helix-base-w": G(Le),
48486
+ ...S ? { "--helix-base-h": G(v) } : {}
48487
48487
  }, $e = {
48488
48488
  top: G(pe + de),
48489
48489
  transform: "translateY(-50%)",
@@ -48544,9 +48544,9 @@ function Nb({
48544
48544
  ] });
48545
48545
  }
48546
48546
  const Hb = `import { useEffect, useMemo, useRef, useState, type CSSProperties } from 'react';
48547
- import { CommonComponentProps } from '../../props';
48548
- import { scalingValue } from '../../utils/scalingValue';
48549
- import { useScopedStyles } from '../../utils/useScopedStyles';
48547
+ import { CommonComponentProps } from '../props';
48548
+ import { scalingValue } from '../utils/scalingValue';
48549
+ import { useScopedStyles } from '../utils/useScopedStyles';
48550
48550
 
48551
48551
  const ORBIT_STEPS = 48;
48552
48552
  const DEG_PER_SEC_PER_SPEED_UNIT = 10;
@@ -48618,17 +48618,17 @@ function getCSS(P: string, keyframes: string): string {
48618
48618
  \`;
48619
48619
  }
48620
48620
 
48621
- type SpiralMedia = {
48621
+ type HelixMedia = {
48622
48622
  url?: string;
48623
48623
  name?: string;
48624
48624
  type?: 'image' | 'video';
48625
48625
  };
48626
48626
 
48627
- export type SpiralListContentItem = {
48628
- image?: SpiralMedia;
48627
+ export type HelixContentItem = {
48628
+ image?: HelixMedia;
48629
48629
  };
48630
48630
 
48631
- export type SpiralListSettings = {
48631
+ export type HelixSettings = {
48632
48632
  width?: number;
48633
48633
  /** @deprecated use \`width\` */
48634
48634
  spread?: number;
@@ -48652,9 +48652,9 @@ export type SpiralListSettings = {
48652
48652
  } | string;
48653
48653
  };
48654
48654
 
48655
- type SpiralListProps = {
48656
- settings?: SpiralListSettings;
48657
- content?: SpiralListContentItem[];
48655
+ type HelixProps = {
48656
+ settings?: HelixSettings;
48657
+ content?: HelixContentItem[];
48658
48658
  isEditor?: boolean;
48659
48659
  isPreviewMode?: boolean;
48660
48660
  isEditMode?: boolean;
@@ -48702,7 +48702,7 @@ function resolveLayoutMetric(
48702
48702
  return Math.min(max, Math.max(min, resolved));
48703
48703
  }
48704
48704
 
48705
- function normalizeImageDisplay(raw: SpiralListSettings['imageDisplay']): ImageDisplay {
48705
+ function normalizeImageDisplay(raw: HelixSettings['imageDisplay']): ImageDisplay {
48706
48706
  if (typeof raw === 'string') {
48707
48707
  return {
48708
48708
  display: raw.toLowerCase() === 'cover' ? 'cover' : 'fit',
@@ -48725,7 +48725,7 @@ function getAspectHeightFactor(imageDisplay: ImageDisplay): number {
48725
48725
  return effectiveHeight / effectiveWidth;
48726
48726
  }
48727
48727
 
48728
- function isVideoMedia(media: SpiralMedia): boolean {
48728
+ function isVideoMedia(media: HelixMedia): boolean {
48729
48729
  if (media.type === 'video') return true;
48730
48730
  if (media.type === 'image') return false;
48731
48731
  return /\\.(mp4|webm|ogg|mov)(\\?|$)/i.test(media.name ?? '') || /\\.(mp4|webm|ogg|mov)(\\?|$)/i.test(media.url ?? '');
@@ -48826,9 +48826,9 @@ function getOrbitKeyframeStyles(
48826
48826
  const angle = progress * Math.PI * 2;
48827
48827
  const centerX = getOrbitCenterX(width, orbitRadius, offset);
48828
48828
  const layoutWidthFactor = round(scale);
48829
- const left = \`calc(\${scaled(centerX)} - var(--spiral-base-w) * \${layoutWidthFactor} / 2)\`;
48830
- const widthStyle = \`calc(var(--spiral-base-w) * \${layoutWidthFactor})\`;
48831
- const heightStyle = isCover ? \`height: calc(var(--spiral-base-h) * \${layoutWidthFactor});\` : '';
48829
+ const left = \`calc(\${scaled(centerX)} - var(--helix-base-w) * \${layoutWidthFactor} / 2)\`;
48830
+ const widthStyle = \`calc(var(--helix-base-w) * \${layoutWidthFactor})\`;
48831
+ const heightStyle = isCover ? \`height: calc(var(--helix-base-h) * \${layoutWidthFactor});\` : '';
48832
48832
  return \`left: \${left}; width: \${widthStyle}; \${heightStyle} z-index: \${getOrbitZIndex(scale)}; transform: translateY(-50%); opacity: \${getOrbitOpacity(angle)}; filter: \${getOrbitFilter(angle, blurEnabled)};\`;
48833
48833
  }
48834
48834
 
@@ -48893,12 +48893,12 @@ function getScrollOrbitProgress(scrollProgress: number, speed: number, direction
48893
48893
  return normalizePhase(signedProgress);
48894
48894
  }
48895
48895
 
48896
- export function SpiralList({
48896
+ export function Helix({
48897
48897
  settings,
48898
48898
  content,
48899
48899
  isEditor,
48900
48900
  isPreviewMode,
48901
- }: SpiralListProps) {
48901
+ }: HelixProps) {
48902
48902
  const { prefix: P } = useScopedStyles();
48903
48903
  const wrapperRef = useRef<HTMLDivElement>(null);
48904
48904
 
@@ -48941,8 +48941,8 @@ export function SpiralList({
48941
48941
  const visibleItems = Math.min(MAX_TOTAL_ITEMS, turns * itemsPerTurn);
48942
48942
  const overflowItems = OVERFLOW_TURNS * itemsPerTurn;
48943
48943
  const totalItems = visibleItems + overflowItems * 2;
48944
- const spiralSpan = Math.max(0, turns - 1) * turnHeight + (itemsPerTurn - 1) * verticalStep;
48945
- const wrapperHeight = spiralSpan;
48944
+ const helixSpan = Math.max(0, turns - 1) * turnHeight + (itemsPerTurn - 1) * verticalStep;
48945
+ const wrapperHeight = helixSpan;
48946
48946
 
48947
48947
  const motionEnabled = speed > 0;
48948
48948
  const useScrollMotion = playback === 'scroll' && motionEnabled;
@@ -49001,7 +49001,7 @@ export function SpiralList({
49001
49001
  {Array.from({ length: totalItems }, (_, index) => {
49002
49002
  const logicalIndex = index - overflowItems;
49003
49003
  const item = mediaItems[mod(logicalIndex, mediaItems.length)];
49004
- const media = item.image as SpiralMedia;
49004
+ const media = item.image as HelixMedia;
49005
49005
  const slotIndex = getOrbitSlotIndex(logicalIndex, itemsPerTurn);
49006
49006
  const phase = getOrbitPhase(logicalIndex, itemsPerTurn);
49007
49007
  const orbitPhase = useScrollMotion ? normalizePhase(phase + scrollOrbitProgress) : phase;
@@ -49016,8 +49016,8 @@ export function SpiralList({
49016
49016
  const layoutWidth = getOrbitLayoutWidth(itemWidth, scale);
49017
49017
  const centerX = getOrbitCenterX(width, orbitRadius, offset);
49018
49018
  const orbitCssVars = {
49019
- '--spiral-base-w': scaled(itemWidth),
49020
- ...(isCover ? { '--spiral-base-h': scaled(imageHeight) } : {}),
49019
+ '--helix-base-w': scaled(itemWidth),
49020
+ ...(isCover ? { '--helix-base-h': scaled(imageHeight) } : {}),
49021
49021
  } as CSSProperties;
49022
49022
 
49023
49023
  const itemStyle: CSSProperties = {
@@ -49093,22 +49093,11 @@ export function SpiralList({
49093
49093
  );
49094
49094
  }
49095
49095
  `, Ob = [
49096
- "https://cdn.cntrl.site/component-assets/Mercury-default-1.jpg",
49097
- "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
49098
- "https://cdn.cntrl.site/component-assets/Mercury-default-7.jpg",
49099
- "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
49100
- "https://cdn.cntrl.site/component-assets/Mercury-default-2.jpg",
49101
- "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
49102
- "https://cdn.cntrl.site/component-assets/Mercury-default-8.jpg",
49103
- "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
49104
- "https://cdn.cntrl.site/component-assets/Mercury-default-3.jpg",
49105
- "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
49106
- "https://cdn.cntrl.site/component-assets/Mercury-default-9.jpg",
49107
- "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
49108
- "https://cdn.cntrl.site/component-assets/Mercury-default-4.jpg",
49109
- "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
49110
- "https://cdn.cntrl.site/component-assets/Mercury-default-10.jpg",
49111
- "https://cdn.cntrl.site/component-assets/Mercury-default-5.jpg"
49096
+ "https://cdn.cntrl.site/component-assets/Helix-default-1.png",
49097
+ "https://cdn.cntrl.site/component-assets/Helix-default-2.png",
49098
+ "https://cdn.cntrl.site/component-assets/Helix-default-3.png",
49099
+ "https://cdn.cntrl.site/component-assets/Helix-default-4.png",
49100
+ "https://cdn.cntrl.site/component-assets/Helix-default-5.png"
49112
49101
  ], Db = {
49113
49102
  type: "object",
49114
49103
  version: 1,
@@ -49244,13 +49233,13 @@ export function SpiralList({
49244
49233
  }
49245
49234
  },
49246
49235
  defaults: {
49247
- itemsPerTurn: 13,
49248
- turns: 4,
49236
+ itemsPerTurn: 14,
49237
+ turns: 3,
49249
49238
  direction: "right",
49250
49239
  playback: "autoplay",
49251
- blur: "on",
49240
+ blur: "off",
49252
49241
  imageDisplay: {
49253
- display: "fit",
49242
+ display: "cover",
49254
49243
  ratioValue: "2:3",
49255
49244
  reversed: !1
49256
49245
  }
@@ -49258,17 +49247,17 @@ export function SpiralList({
49258
49247
  layoutDefaults: {
49259
49248
  d: {
49260
49249
  defaultPaddingTop: 30 / 1440,
49261
- width: 1120 / 1440,
49262
- imageWidth: 140 / 1440,
49263
- turnHeight: 550 / 1440,
49264
- speed: 2.8,
49250
+ width: 800 / 1440,
49251
+ imageWidth: 160 / 1440,
49252
+ turnHeight: 380 / 1440,
49253
+ speed: 2.2,
49265
49254
  cornerRadius: 0
49266
49255
  },
49267
49256
  m: {
49268
49257
  defaultPaddingTop: 10 / 375,
49269
49258
  width: 320 / 375,
49270
49259
  imageWidth: 75 / 375,
49271
- turnHeight: 300 / 375,
49260
+ turnHeight: 310 / 375,
49272
49261
  speed: 2.8,
49273
49262
  cornerRadius: 0
49274
49263
  },
@@ -49276,7 +49265,7 @@ export function SpiralList({
49276
49265
  defaultPaddingTop: 20 / 768,
49277
49266
  width: 620 / 768,
49278
49267
  imageWidth: 100 / 768,
49279
- turnHeight: 450 / 768,
49268
+ turnHeight: 280 / 768,
49280
49269
  speed: 2.8,
49281
49270
  cornerRadius: 0
49282
49271
  }
@@ -49315,10 +49304,14 @@ export function SpiralList({
49315
49304
  ]
49316
49305
  }, zb = {
49317
49306
  element: Nb,
49318
- id: "spiral-list",
49319
- name: "Spiral",
49307
+ id: "helix",
49308
+ name: "Helix",
49320
49309
  category: "lists",
49321
49310
  layoutMode: "structured",
49311
+ preview: {
49312
+ type: "image",
49313
+ url: "https://cdn.cntrl.site/component-assets/Helix.mp4"
49314
+ },
49322
49315
  version: 1,
49323
49316
  defaultSize: {
49324
49317
  d: {