@cntrl-site/components 1.0.1-alpha.15 → 1.0.1-alpha.16

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
@@ -6,7 +6,7 @@ import { createPortal as gr } from "react-dom";
6
6
  function zl(t) {
7
7
  return t.type === "object" && t.version === 1;
8
8
  }
9
- const fr = "ControlSlider-module__wrapper___sHEkd", mr = "ControlSlider-module__hoverArrow___A-dOH", yr = "ControlSlider-module__sliderItem___QQSkR", hr = "ControlSlider-module__sliderImage___9hRl-", vr = "ControlSlider-module__arrow___05ghY", br = "ControlSlider-module__arrowVertical___tBfVN", Sr = "ControlSlider-module__nextArrow___-30Yc", Cr = "ControlSlider-module__arrowInner___aEra3", xr = "ControlSlider-module__arrowIcon___S4ztF", $r = "ControlSlider-module__arrowImg___2dwJW", _r = "ControlSlider-module__mirror___brd6U", wr = "ControlSlider-module__pagination___bicLF", Tr = "ControlSlider-module__paginationInner___bT-P-", Lr = "ControlSlider-module__paginationVertical___zYqKw", Er = "ControlSlider-module__paginationItem___nTRbk", Ar = "ControlSlider-module__dot___p1Qun", Ir = "ControlSlider-module__activeDot___LHFaj", kr = "ControlSlider-module__paginationInsideBottom___R3FWn", Fr = "ControlSlider-module__paginationInsideTop___V-qb-", Rr = "ControlSlider-module__paginationOutsideBottom___14w8D", Pr = "ControlSlider-module__paginationOutsideTop___SCLqB", Br = "ControlSlider-module__paginationInsideLeft___yOBRZ", Or = "ControlSlider-module__paginationInsideRight___Rtt3o", Nr = "ControlSlider-module__paginationOutsideLeft___lahaw", Wr = "ControlSlider-module__paginationOutsideRight___EtuQa", zr = "ControlSlider-module__imgWrapper___UjEgB", Vr = "ControlSlider-module__captionBlock___dJ6-j", Mr = "ControlSlider-module__captionTextWrapper___HFlpf", Dr = "ControlSlider-module__captionText___uGBVc", Hr = "ControlSlider-module__active___WZK4G", jr = "ControlSlider-module__withPointerEvents___t-18M", Ur = "ControlSlider-module__topLeftAlignment___zjnGM", Yr = "ControlSlider-module__topCenterAlignment___gD1xW", Gr = "ControlSlider-module__topRightAlignment___NMapS", qr = "ControlSlider-module__middleLeftAlignment___OnUrY", Xr = "ControlSlider-module__middleCenterAlignment___Tdkl0", Kr = "ControlSlider-module__middleRightAlignment___wEbfX", Jr = "ControlSlider-module__bottomLeftAlignment___cTP2-", Zr = "ControlSlider-module__bottomCenterAlignment___c54fB", Qr = "ControlSlider-module__bottomRightAlignment___kEwrz", ti = "ControlSlider-module__clickOverlay___DZA28", ei = "ControlSlider-module__contain___pLyq7", ni = "ControlSlider-module__cover___KdDat", U = {
9
+ const fr = "ControlSlider-module__wrapper___sHEkd", mr = "ControlSlider-module__hoverArrow___A-dOH", yr = "ControlSlider-module__sliderItem___QQSkR", hr = "ControlSlider-module__sliderImage___9hRl-", vr = "ControlSlider-module__arrow___05ghY", br = "ControlSlider-module__arrowVertical___tBfVN", Sr = "ControlSlider-module__nextArrow___-30Yc", Cr = "ControlSlider-module__arrowInner___aEra3", xr = "ControlSlider-module__arrowIcon___S4ztF", _r = "ControlSlider-module__arrowImg___2dwJW", $r = "ControlSlider-module__mirror___brd6U", wr = "ControlSlider-module__pagination___bicLF", Tr = "ControlSlider-module__paginationInner___bT-P-", Lr = "ControlSlider-module__paginationVertical___zYqKw", Er = "ControlSlider-module__paginationItem___nTRbk", Ar = "ControlSlider-module__dot___p1Qun", Ir = "ControlSlider-module__activeDot___LHFaj", kr = "ControlSlider-module__paginationInsideBottom___R3FWn", Fr = "ControlSlider-module__paginationInsideTop___V-qb-", Rr = "ControlSlider-module__paginationOutsideBottom___14w8D", Pr = "ControlSlider-module__paginationOutsideTop___SCLqB", Br = "ControlSlider-module__paginationInsideLeft___yOBRZ", Or = "ControlSlider-module__paginationInsideRight___Rtt3o", Nr = "ControlSlider-module__paginationOutsideLeft___lahaw", Wr = "ControlSlider-module__paginationOutsideRight___EtuQa", zr = "ControlSlider-module__imgWrapper___UjEgB", Vr = "ControlSlider-module__captionBlock___dJ6-j", Mr = "ControlSlider-module__captionTextWrapper___HFlpf", Dr = "ControlSlider-module__captionText___uGBVc", Hr = "ControlSlider-module__active___WZK4G", jr = "ControlSlider-module__withPointerEvents___t-18M", Ur = "ControlSlider-module__topLeftAlignment___zjnGM", Yr = "ControlSlider-module__topCenterAlignment___gD1xW", Gr = "ControlSlider-module__topRightAlignment___NMapS", qr = "ControlSlider-module__middleLeftAlignment___OnUrY", Xr = "ControlSlider-module__middleCenterAlignment___Tdkl0", Kr = "ControlSlider-module__middleRightAlignment___wEbfX", Jr = "ControlSlider-module__bottomLeftAlignment___cTP2-", Zr = "ControlSlider-module__bottomCenterAlignment___c54fB", Qr = "ControlSlider-module__bottomRightAlignment___kEwrz", ti = "ControlSlider-module__clickOverlay___DZA28", ei = "ControlSlider-module__contain___pLyq7", ni = "ControlSlider-module__cover___KdDat", U = {
10
10
  wrapper: fr,
11
11
  hoverArrow: mr,
12
12
  sliderItem: yr,
@@ -16,8 +16,8 @@ const fr = "ControlSlider-module__wrapper___sHEkd", mr = "ControlSlider-module__
16
16
  nextArrow: Sr,
17
17
  arrowInner: Cr,
18
18
  arrowIcon: xr,
19
- arrowImg: $r,
20
- mirror: _r,
19
+ arrowImg: _r,
20
+ mirror: $r,
21
21
  pagination: wr,
22
22
  paginationInner: Tr,
23
23
  paginationVertical: Lr,
@@ -78,7 +78,7 @@ function Qt(t, e, n) {
78
78
  function ut(t) {
79
79
  return t.bind.apply(t, [null].concat(Qt(arguments, 1)));
80
80
  }
81
- var $o = setTimeout, Sn = function() {
81
+ var _o = setTimeout, Sn = function() {
82
82
  };
83
83
  function Zn(t) {
84
84
  return requestAnimationFrame(t);
@@ -89,7 +89,7 @@ function en(t, e) {
89
89
  function Le(t) {
90
90
  return !In(t) && en("object", t);
91
91
  }
92
- var An = Array.isArray, _o = ut(en, "function"), Jt = ut(en, "string"), Be = ut(en, "undefined");
92
+ var An = Array.isArray, $o = ut(en, "function"), Jt = ut(en, "string"), Be = ut(en, "undefined");
93
93
  function In(t) {
94
94
  return t === null;
95
95
  }
@@ -233,13 +233,13 @@ function ne(t) {
233
233
  return Jt(t) ? t : t ? t + "px" : "";
234
234
  }
235
235
  var ze = "splide", Pn = "data-" + ze;
236
- function $e(t, e) {
236
+ function _e(t, e) {
237
237
  if (!t)
238
238
  throw new Error("[" + ze + "] " + (e || ""));
239
239
  }
240
- var Zt = Math.min, Je = Math.max, Ze = Math.floor, Fe = Math.ceil, $t = Math.abs;
240
+ var Zt = Math.min, Je = Math.max, Ze = Math.floor, Fe = Math.ceil, _t = Math.abs;
241
241
  function Io(t, e, n) {
242
- return $t(t - e) < n;
242
+ return _t(t - e) < n;
243
243
  }
244
244
  function Ge(t, e, n, o) {
245
245
  var r = Zt(e, n), a = Je(e, n);
@@ -252,7 +252,7 @@ function de(t, e, n) {
252
252
  function xn(t) {
253
253
  return +(t > 0) - +(t < 0);
254
254
  }
255
- function $n(t, e) {
255
+ function _n(t, e) {
256
256
  return At(e, function(n) {
257
257
  t = t.replace("%s", "" + n);
258
258
  }), t;
@@ -308,7 +308,7 @@ function ko() {
308
308
  destroy: a
309
309
  };
310
310
  }
311
- var te = "mounted", _n = "ready", Ut = "move", Ce = "moved", On = "click", Fo = "active", Ro = "inactive", Po = "visible", Bo = "hidden", ht = "refresh", Ct = "updated", ve = "resize", nn = "resized", Oo = "drag", No = "dragging", Wo = "dragged", on = "scroll", le = "scrolled", si = "overflow", Nn = "destroy", zo = "arrows:mounted", Vo = "arrows:updated", Mo = "pagination:mounted", Do = "pagination:updated", Wn = "navigation:mounted", zn = "autoplay:play", Ho = "autoplay:playing", Vn = "autoplay:pause", Mn = "lazyload:loaded", jo = "sk", Uo = "sh", Qe = "ei";
311
+ var te = "mounted", $n = "ready", Ut = "move", Ce = "moved", On = "click", Fo = "active", Ro = "inactive", Po = "visible", Bo = "hidden", ht = "refresh", Ct = "updated", ve = "resize", nn = "resized", Oo = "drag", No = "dragging", Wo = "dragged", on = "scroll", le = "scrolled", si = "overflow", Nn = "destroy", zo = "arrows:mounted", Vo = "arrows:updated", Mo = "pagination:mounted", Do = "pagination:updated", Wn = "navigation:mounted", zn = "autoplay:play", Ho = "autoplay:playing", Vn = "autoplay:pause", Mn = "lazyload:loaded", jo = "sk", Uo = "sh", Qe = "ei";
312
312
  function gt(t) {
313
313
  var e = t ? t.event.bus : document.createDocumentFragment(), n = ko();
314
314
  function o(a, i) {
@@ -444,7 +444,7 @@ function di(t, e, n) {
444
444
  orient: r
445
445
  };
446
446
  }
447
- var Ht = "role", ye = "tabindex", gi = "disabled", Pt = "aria-", Ve = Pt + "controls", qo = Pt + "current", oo = Pt + "selected", Et = Pt + "label", Dn = Pt + "labelledby", Xo = Pt + "hidden", Hn = Pt + "orientation", Re = Pt + "roledescription", ro = Pt + "live", io = Pt + "busy", ao = Pt + "atomic", jn = [Ht, ye, gi, Ve, qo, Et, Dn, Xo, Hn, Re], Nt = ze + "__", ee = "is-", fn = ze, lo = Nt + "track", fi = Nt + "list", un = Nt + "slide", Ko = un + "--clone", mi = un + "__container", Un = Nt + "arrows", pn = Nt + "arrow", Jo = pn + "--prev", Zo = pn + "--next", dn = Nt + "pagination", Qo = dn + "__page", yi = Nt + "progress", hi = yi + "__bar", vi = Nt + "toggle", bi = Nt + "spinner", Si = Nt + "sr", Ci = ee + "initialized", ae = ee + "active", tr = ee + "prev", er = ee + "next", wn = ee + "visible", Tn = ee + "loading", nr = ee + "focus-in", or = ee + "overflow", xi = [ae, wn, tr, er, Tn, nr, or], $i = {
447
+ var Ht = "role", ye = "tabindex", gi = "disabled", Pt = "aria-", Ve = Pt + "controls", qo = Pt + "current", oo = Pt + "selected", Et = Pt + "label", Dn = Pt + "labelledby", Xo = Pt + "hidden", Hn = Pt + "orientation", Re = Pt + "roledescription", ro = Pt + "live", io = Pt + "busy", ao = Pt + "atomic", jn = [Ht, ye, gi, Ve, qo, Et, Dn, Xo, Hn, Re], Nt = ze + "__", ee = "is-", fn = ze, lo = Nt + "track", fi = Nt + "list", un = Nt + "slide", Ko = un + "--clone", mi = un + "__container", Un = Nt + "arrows", pn = Nt + "arrow", Jo = pn + "--prev", Zo = pn + "--next", dn = Nt + "pagination", Qo = dn + "__page", yi = Nt + "progress", hi = yi + "__bar", vi = Nt + "toggle", bi = Nt + "spinner", Si = Nt + "sr", Ci = ee + "initialized", ae = ee + "active", tr = ee + "prev", er = ee + "next", wn = ee + "visible", Tn = ee + "loading", nr = ee + "focus-in", or = ee + "overflow", xi = [ae, wn, tr, er, Tn, nr, or], _i = {
448
448
  slide: un,
449
449
  clone: Ko,
450
450
  arrows: Un,
@@ -455,8 +455,8 @@ var Ht = "role", ye = "tabindex", gi = "disabled", Pt = "aria-", Ve = Pt + "cont
455
455
  page: Qo,
456
456
  spinner: bi
457
457
  };
458
- function _i(t, e) {
459
- if (_o(t.closest))
458
+ function $i(t, e) {
459
+ if ($o(t.closest))
460
460
  return t.closest(e);
461
461
  for (var n = t; n && n.nodeType === 1 && !Ee(n, e); )
462
462
  n = n.parentElement;
@@ -485,7 +485,7 @@ function Ti(t, e, n) {
485
485
  Dt(i, u), Dt(h, C), u = L(fn), C = L(lo), Bt(i, u), Bt(h, C), Q(i, Et, n.label), Q(i, Dn, n.labelledby);
486
486
  }
487
487
  function x() {
488
- h = N("." + lo), g = We(h, "." + fi), $e(h && g, "A track/list element is missing."), Ye(p, To(g, "." + un + ":not(." + Ko + ")")), re({
488
+ h = N("." + lo), g = We(h, "." + fi), _e(h && g, "A track/list element is missing."), Ye(p, To(g, "." + un + ":not(." + Ko + ")")), re({
489
489
  arrows: Un,
490
490
  pagination: dn,
491
491
  prev: Jo,
@@ -507,7 +507,7 @@ function Ti(t, e, n) {
507
507
  }
508
508
  function N(v) {
509
509
  var T = Ao(i, v);
510
- return T && _i(T, "." + fn) === i ? T : void 0;
510
+ return T && $i(T, "." + fn) === i ? T : void 0;
511
511
  }
512
512
  function L(v) {
513
513
  return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v === fn && ae];
@@ -522,59 +522,59 @@ var be = "slide", xe = "loop", Me = "fade";
522
522
  function Li(t, e, n, o) {
523
523
  var r = gt(t), a = r.on, i = r.emit, c = r.bind, s = t.Components, p = t.root, u = t.options, C = u.isNavigation, h = u.updateOnMove, g = u.i18n, l = u.pagination, d = u.slideFocus, w = s.Direction.resolve, b = Rt(o, "style"), y = Rt(o, Et), x = n > -1, V = We(o, "." + mi), N;
524
524
  function L() {
525
- x || (o.id = p.id + "-slide" + Bn(e + 1), Q(o, Ht, l ? "tabpanel" : "group"), Q(o, Re, g.slide), Q(o, Et, y || $n(g.slideLabel, [e + 1, t.length]))), v();
525
+ x || (o.id = p.id + "-slide" + Bn(e + 1), Q(o, Ht, l ? "tabpanel" : "group"), Q(o, Re, g.slide), Q(o, Et, y || _n(g.slideLabel, [e + 1, t.length]))), v();
526
526
  }
527
527
  function v() {
528
- c(o, "click", ut(i, On, $)), c(o, "keydown", ut(i, jo, $)), a([Ce, Uo, le], A), a(Wn, k), h && a(Ut, z);
528
+ c(o, "click", ut(i, On, _)), c(o, "keydown", ut(i, jo, _)), a([Ce, Uo, le], A), a(Wn, k), h && a(Ut, z);
529
529
  }
530
530
  function T() {
531
531
  N = !0, r.destroy(), Dt(o, xi), Ot(o, jn), Q(o, "style", b), Q(o, Et, y || "");
532
532
  }
533
533
  function k() {
534
- var _ = t.splides.map(function(S) {
534
+ var $ = t.splides.map(function(S) {
535
535
  var O = S.splide.Components.Slides.getAt(e);
536
536
  return O ? O.slide.id : "";
537
537
  }).join(" ");
538
- Q(o, Et, $n(g.slideX, (x ? n : e) + 1)), Q(o, Ve, _), Q(o, Ht, d ? "button" : ""), d && Ot(o, Re);
538
+ Q(o, Et, _n(g.slideX, (x ? n : e) + 1)), Q(o, Ve, $), Q(o, Ht, d ? "button" : ""), d && Ot(o, Re);
539
539
  }
540
540
  function z() {
541
541
  N || A();
542
542
  }
543
543
  function A() {
544
544
  if (!N) {
545
- var _ = t.index;
546
- R(), B(), Mt(o, tr, e === _ - 1), Mt(o, er, e === _ + 1);
545
+ var $ = t.index;
546
+ R(), B(), Mt(o, tr, e === $ - 1), Mt(o, er, e === $ + 1);
547
547
  }
548
548
  }
549
549
  function R() {
550
- var _ = H();
551
- _ !== to(o, ae) && (Mt(o, ae, _), Q(o, qo, C && _ || ""), i(_ ? Fo : Ro, $));
550
+ var $ = H();
551
+ $ !== to(o, ae) && (Mt(o, ae, $), Q(o, qo, C && $ || ""), i($ ? Fo : Ro, _));
552
552
  }
553
553
  function B() {
554
- var _ = m(), S = !_ && (!H() || x);
555
- if (t.state.is([Se, Pe]) || Q(o, Xo, S || ""), Q(Rn(o, u.focusableNodes || ""), ye, S ? -1 : ""), d && Q(o, ye, S ? -1 : 0), _ !== to(o, wn) && (Mt(o, wn, _), i(_ ? Po : Bo, $)), !_ && document.activeElement === o) {
554
+ var $ = m(), S = !$ && (!H() || x);
555
+ if (t.state.is([Se, Pe]) || Q(o, Xo, S || ""), Q(Rn(o, u.focusableNodes || ""), ye, S ? -1 : ""), d && Q(o, ye, S ? -1 : 0), $ !== to(o, wn) && (Mt(o, wn, $), i($ ? Po : Bo, _)), !$ && document.activeElement === o) {
556
556
  var O = s.Slides.getAt(t.index);
557
557
  O && Lo(O.slide);
558
558
  }
559
559
  }
560
- function j(_, S, O) {
561
- Ft(O && V || o, _, S);
560
+ function j($, S, O) {
561
+ Ft(O && V || o, $, S);
562
562
  }
563
563
  function H() {
564
- var _ = t.index;
565
- return _ === e || u.cloneStatus && _ === n;
564
+ var $ = t.index;
565
+ return $ === e || u.cloneStatus && $ === n;
566
566
  }
567
567
  function m() {
568
568
  if (t.is(Me))
569
569
  return H();
570
- var _ = Lt(s.Elements.track), S = Lt(o), O = w("left", !0), G = w("right", !0);
571
- return Ze(_[O]) <= Fe(S[O]) && Ze(S[G]) <= Fe(_[G]);
570
+ var $ = Lt(s.Elements.track), S = Lt(o), O = w("left", !0), G = w("right", !0);
571
+ return Ze($[O]) <= Fe(S[O]) && Ze(S[G]) <= Fe($[G]);
572
572
  }
573
- function I(_, S) {
574
- var O = $t(_ - e);
573
+ function I($, S) {
574
+ var O = _t($ - e);
575
575
  return !x && (u.rewind || t.is(xe)) && (O = Zt(O, t.length - O)), O <= S;
576
576
  }
577
- var $ = {
577
+ var _ = {
578
578
  index: e,
579
579
  slideIndex: n,
580
580
  slide: o,
@@ -586,7 +586,7 @@ function Li(t, e, n, o) {
586
586
  style: j,
587
587
  isWithin: I
588
588
  };
589
- return $;
589
+ return _;
590
590
  }
591
591
  function Ei(t, e, n) {
592
592
  var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Elements, s = c.slides, p = c.list, u = [];
@@ -645,7 +645,7 @@ function Ei(t, e, n) {
645
645
  w(R).forEach(A);
646
646
  }
647
647
  function L(A) {
648
- return u.filter(_o(A) ? A : function(R) {
648
+ return u.filter($o(A) ? A : function(R) {
649
649
  return Jt(A) ? Ee(R.slide, A) : kn(Oe(A), R.index);
650
650
  });
651
651
  }
@@ -693,17 +693,17 @@ function Ai(t, e, n) {
693
693
  function x() {
694
694
  d = n.direction === cn, Ft(u, "maxWidth", ne(n.width)), Ft(C, s("paddingLeft"), N(!1)), Ft(C, s("paddingRight"), N(!0)), V(!0);
695
695
  }
696
- function V($) {
697
- var _ = Lt(u);
698
- ($ || w.width !== _.width || w.height !== _.height) && (Ft(C, "height", L()), l(s("marginRight"), ne(n.gap)), l("width", T()), l("height", k(), !0), w = _, i(nn), b !== (b = I()) && (Mt(u, or, b), i(si, b)));
696
+ function V(_) {
697
+ var $ = Lt(u);
698
+ (_ || w.width !== $.width || w.height !== $.height) && (Ft(C, "height", L()), l(s("marginRight"), ne(n.gap)), l("width", T()), l("height", k(), !0), w = $, i(nn), b !== (b = I()) && (Mt(u, or, b), i(si, b)));
699
699
  }
700
- function N($) {
701
- var _ = n.padding, S = s($ ? "right" : "left");
702
- return _ && ne(_[S] || (Le(_) ? 0 : _)) || "0px";
700
+ function N(_) {
701
+ var $ = n.padding, S = s(_ ? "right" : "left");
702
+ return $ && ne($[S] || (Le($) ? 0 : $)) || "0px";
703
703
  }
704
704
  function L() {
705
- var $ = "";
706
- return d && ($ = v(), $e($, "height or heightRatio is missing."), $ = "calc(" + $ + " - " + N(!1) + " - " + N(!0) + ")"), $;
705
+ var _ = "";
706
+ return d && (_ = v(), _e(_, "height or heightRatio is missing."), _ = "calc(" + _ + " - " + N(!1) + " - " + N(!0) + ")"), _;
707
707
  }
708
708
  function v() {
709
709
  return ne(n.height || Lt(h).width * n.heightRatio);
@@ -715,33 +715,33 @@ function Ai(t, e, n) {
715
715
  return ne(n.fixedHeight) || (d ? n.autoHeight ? null : z() : v());
716
716
  }
717
717
  function z() {
718
- var $ = ne(n.gap);
719
- return "calc((100%" + ($ && " + " + $) + ")/" + (n.perPage || 1) + ($ && " - " + $) + ")";
718
+ var _ = ne(n.gap);
719
+ return "calc((100%" + (_ && " + " + _) + ")/" + (n.perPage || 1) + (_ && " - " + _) + ")";
720
720
  }
721
721
  function A() {
722
722
  return Lt(h)[s("width")];
723
723
  }
724
- function R($, _) {
725
- var S = g($ || 0);
726
- return S ? Lt(S.slide)[s("width")] + (_ ? 0 : H()) : 0;
724
+ function R(_, $) {
725
+ var S = g(_ || 0);
726
+ return S ? Lt(S.slide)[s("width")] + ($ ? 0 : H()) : 0;
727
727
  }
728
- function B($, _) {
729
- var S = g($);
728
+ function B(_, $) {
729
+ var S = g(_);
730
730
  if (S) {
731
731
  var O = Lt(S.slide)[s("right")], G = Lt(h)[s("left")];
732
- return $t(O - G) + (_ ? 0 : H());
732
+ return _t(O - G) + ($ ? 0 : H());
733
733
  }
734
734
  return 0;
735
735
  }
736
- function j($) {
737
- return B(t.length - 1) - B(0) + R(0, $);
736
+ function j(_) {
737
+ return B(t.length - 1) - B(0) + R(0, _);
738
738
  }
739
739
  function H() {
740
- var $ = g(0);
741
- return $ && parseFloat(Ft($.slide, s("marginRight"))) || 0;
740
+ var _ = g(0);
741
+ return _ && parseFloat(Ft(_.slide, s("marginRight"))) || 0;
742
742
  }
743
- function m($) {
744
- return parseFloat(Ft(C, s("padding" + ($ ? "Right" : "Left")))) || 0;
743
+ function m(_) {
744
+ return parseFloat(Ft(C, s("padding" + (_ ? "Right" : "Left")))) || 0;
745
745
  }
746
746
  function I() {
747
747
  return t.is(Me) || j(!0) > A();
@@ -812,7 +812,7 @@ function Fi(t, e, n) {
812
812
  e.Controller.isBusy() || (e.Scroll.cancel(), v(t.index), e.Slides.update());
813
813
  }
814
814
  function L(S, O, G, nt) {
815
- S !== O && $(S > G) && (A(), T(z(j(), S > G), !0)), i(Se), a(Ut, O, G, S), x.start(O, function() {
815
+ S !== O && _(S > G) && (A(), T(z(j(), S > G), !0)), i(Se), a(Ut, O, G, S), x.start(O, function() {
816
816
  i(he), a(Ce, O, G, S), nt && nt();
817
817
  });
818
818
  }
@@ -834,14 +834,14 @@ function Fi(t, e, n) {
834
834
  }
835
835
  function z(S, O) {
836
836
  var G = S - I(O), nt = h();
837
- return S -= d(nt * (Fe($t(G) / nt) || 1)) * (O ? 1 : -1), S;
837
+ return S -= d(nt * (Fe(_t(G) / nt) || 1)) * (O ? 1 : -1), S;
838
838
  }
839
839
  function A() {
840
840
  T(j(), !0), x.cancel();
841
841
  }
842
842
  function R(S) {
843
843
  for (var O = e.Slides.get(), G = 0, nt = 1 / 0, tt = 0; tt < O.length; tt++) {
844
- var lt = O[tt].index, E = $t(B(lt, !0) - S);
844
+ var lt = O[tt].index, E = _t(B(lt, !0) - S);
845
845
  if (E <= nt)
846
846
  nt = E, G = lt;
847
847
  else
@@ -867,11 +867,11 @@ function Fi(t, e, n) {
867
867
  function I(S) {
868
868
  return B(S ? e.Controller.getEnd() : 0, !!n.trimSpace);
869
869
  }
870
- function $(S) {
870
+ function _(S) {
871
871
  var O = d(z(j(), S));
872
872
  return S ? O >= 0 : O <= b[l("scrollWidth")] - Lt(y)[l("width")];
873
873
  }
874
- function _(S, O) {
874
+ function $(S, O) {
875
875
  O = Be(O) ? j() : O;
876
876
  var G = S !== !0 && d(O) < d(I(!1)), nt = S !== !1 && d(O) > d(I(!0));
877
877
  return G || nt;
@@ -887,7 +887,7 @@ function Fi(t, e, n) {
887
887
  toPosition: B,
888
888
  getPosition: j,
889
889
  getLimit: I,
890
- exceededLimit: _,
890
+ exceededLimit: $,
891
891
  reposition: N
892
892
  };
893
893
  }
@@ -897,12 +897,12 @@ function Ri(t, e, n) {
897
897
  k(), r([Ct, ht, Qe], k), r(nn, z);
898
898
  }
899
899
  function k() {
900
- N = h(!0), L = n.perMove, v = n.perPage, x = $();
900
+ N = h(!0), L = n.perMove, v = n.perPage, x = _();
901
901
  var E = de(y, 0, g ? x : N - 1);
902
902
  E !== y && (y = E, i.reposition());
903
903
  }
904
904
  function z() {
905
- x !== $() && a(Qe);
905
+ x !== _() && a(Qe);
906
906
  }
907
907
  function A(E, K, yt) {
908
908
  if (!lt()) {
@@ -920,7 +920,7 @@ function Ri(t, e, n) {
920
920
  var K = y;
921
921
  if (Jt(E)) {
922
922
  var yt = E.match(/([+\-<>])(\d+)?/) || [], it = yt[1], mt = yt[2];
923
- it === "+" || it === "-" ? K = H(y + +("" + it + (+mt || 1)), y) : it === ">" ? K = mt ? _(+mt) : w(!0) : it === "<" && (K = b(!0));
923
+ it === "+" || it === "-" ? K = H(y + +("" + it + (+mt || 1)), y) : it === ">" ? K = mt ? $(+mt) : w(!0) : it === "<" && (K = b(!0));
924
924
  } else
925
925
  K = l ? E : de(E, 0, x);
926
926
  return K;
@@ -932,7 +932,7 @@ function Ri(t, e, n) {
932
932
  function H(E, K, yt) {
933
933
  if (C() || tt()) {
934
934
  var it = m(E);
935
- it !== E && (K = E, E = it, yt = !1), E < 0 || E > x ? !L && (Ge(0, E, K, !0) || Ge(x, K, E, !0)) ? E = _(S(E)) : l ? E = yt ? E < 0 ? -(N % v || v) : N : E : n.rewind ? E = E < 0 ? x : 0 : E = -1 : yt && E !== K && (E = _(S(K) + (E < K ? -1 : 1)));
935
+ it !== E && (K = E, E = it, yt = !1), E < 0 || E > x ? !L && (Ge(0, E, K, !0) || Ge(x, K, E, !0)) ? E = $(S(E)) : l ? E = yt ? E < 0 ? -(N % v || v) : N : E : n.rewind ? E = E < 0 ? x : 0 : E = -1 : yt && E !== K && (E = $(S(K) + (E < K ? -1 : 1)));
936
936
  } else
937
937
  E = -1;
938
938
  return E;
@@ -946,7 +946,7 @@ function Ri(t, e, n) {
946
946
  function I(E) {
947
947
  return l ? (E + N) % N || 0 : E;
948
948
  }
949
- function $() {
949
+ function _() {
950
950
  for (var E = N - (tt() || l && L ? 1 : v); g && E-- > 0; )
951
951
  if (p(N - 1, !0) !== p(E, !0)) {
952
952
  E++;
@@ -954,7 +954,7 @@ function Ri(t, e, n) {
954
954
  }
955
955
  return de(E, 0, N - 1);
956
956
  }
957
- function _(E) {
957
+ function $(E) {
958
958
  return de(tt() ? E : v * E, 0, x);
959
959
  }
960
960
  function S(E) {
@@ -983,10 +983,10 @@ function Ri(t, e, n) {
983
983
  getNext: w,
984
984
  getPrev: b,
985
985
  getAdjacent: j,
986
- getEnd: $,
986
+ getEnd: _,
987
987
  setIndex: G,
988
988
  getIndex: nt,
989
- toIndex: _,
989
+ toIndex: $,
990
990
  toPage: S,
991
991
  toDest: O,
992
992
  hasFocus: tt,
@@ -1109,18 +1109,18 @@ function Ui(t, e, n) {
1109
1109
  function b(v, T, k, z, A) {
1110
1110
  var R = s();
1111
1111
  if (V(), k && (!h || !u())) {
1112
- var B = e.Layout.sliderSize(), j = xn(v) * B * Ze($t(v) / B) || 0;
1112
+ var B = e.Layout.sliderSize(), j = xn(v) * B * Ze(_t(v) / B) || 0;
1113
1113
  v = c.toPosition(e.Controller.toDest(v % B)) + j;
1114
1114
  }
1115
1115
  var H = Io(R, v, 1);
1116
- d = 1, T = H ? 0 : T || Je($t(v - R) / Hi, ji), l = z, g = rn(T, y, ut(x, R, v, A), 1), i(Pe), a(on), g.start();
1116
+ d = 1, T = H ? 0 : T || Je(_t(v - R) / Hi, ji), l = z, g = rn(T, y, ut(x, R, v, A), 1), i(Pe), a(on), g.start();
1117
1117
  }
1118
1118
  function y() {
1119
1119
  i(he), l && l(), a(le);
1120
1120
  }
1121
1121
  function x(v, T, k, z) {
1122
1122
  var A = s(), R = v + (T - v) * L(z), B = (R - A) * d;
1123
- C(A + B), h && !k && u() && (d *= Di, $t(B) < Vi && b(p(u(!0)), Mi, !1, l, !0));
1123
+ C(A + B), h && !k && u() && (d *= Di, _t(B) < Vi && b(p(u(!0)), Mi, !1, l, !0));
1124
1124
  }
1125
1125
  function V() {
1126
1126
  g && g.cancel();
@@ -1157,7 +1157,7 @@ function Yi(t, e, n) {
1157
1157
  function j(M) {
1158
1158
  if (k = !1, !z) {
1159
1159
  var f = mt(M);
1160
- it(M.target) && (f || !M.button) && (C.isBusy() ? Vt(M, !0) : (A = f ? h : window, v = s.is([Se, Pe]), N = null, i(A, mn, H, ge), i(A, yn, m, ge), p.cancel(), u.cancel(), $(M)));
1160
+ it(M.target) && (f || !M.button) && (C.isBusy() ? Vt(M, !0) : (A = f ? h : window, v = s.is([Se, Pe]), N = null, i(A, mn, H, ge), i(A, yn, m, ge), p.cancel(), u.cancel(), _(M)));
1161
1161
  }
1162
1162
  }
1163
1163
  function H(M) {
@@ -1165,28 +1165,28 @@ function Yi(t, e, n) {
1165
1165
  if (v) {
1166
1166
  p.translate(x + yt(tt(M)));
1167
1167
  var f = lt(M) > so, D = T !== (T = y());
1168
- (f || D) && $(M), k = !0, a(No), Vt(M);
1168
+ (f || D) && _(M), k = !0, a(No), Vt(M);
1169
1169
  } else O(M) && (v = S(M), Vt(M));
1170
1170
  }
1171
1171
  function m(M) {
1172
- s.is(Ue) && (s.set(he), a(Wo)), v && (_(M), Vt(M)), c(A, mn, H), c(A, yn, m), v = !1;
1172
+ s.is(Ue) && (s.set(he), a(Wo)), v && ($(M), Vt(M)), c(A, mn, H), c(A, yn, m), v = !1;
1173
1173
  }
1174
1174
  function I(M) {
1175
1175
  !z && k && Vt(M, !0);
1176
1176
  }
1177
- function $(M) {
1177
+ function _(M) {
1178
1178
  N = V, V = M, x = b();
1179
1179
  }
1180
- function _(M) {
1180
+ function $(M) {
1181
1181
  var f = G(M), D = nt(f), q = n.rewind && n.rewindByDrag;
1182
1182
  g(!1), L ? C.scroll(D, 0, n.snap) : t.is(Me) ? C.go(w(xn(f)) < 0 ? q ? "<" : "-" : q ? ">" : "+") : t.is(be) && T && q ? C.go(y(!0) ? ">" : "<") : C.go(C.toDest(D), !0), g(!0);
1183
1183
  }
1184
1184
  function S(M) {
1185
1185
  var f = n.dragMinThreshold, D = Le(f), q = D && f.mouse || 0, Y = (D ? f.touch : +f) || 10;
1186
- return $t(tt(M)) > (mt(M) ? Y : q);
1186
+ return _t(tt(M)) > (mt(M) ? Y : q);
1187
1187
  }
1188
1188
  function O(M) {
1189
- return $t(tt(M)) > $t(tt(M, !0));
1189
+ return _t(tt(M)) > _t(tt(M, !0));
1190
1190
  }
1191
1191
  function G(M) {
1192
1192
  if (t.is(xe) || !T) {
@@ -1197,7 +1197,7 @@ function Yi(t, e, n) {
1197
1197
  return 0;
1198
1198
  }
1199
1199
  function nt(M) {
1200
- return b() + xn(M) * Zt($t(M) * (n.flickPower || 600), L ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
1200
+ return b() + xn(M) * Zt(_t(M) * (n.flickPower || 600), L ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
1201
1201
  }
1202
1202
  function tt(M, f) {
1203
1203
  return K(M, f) - K(E(M), f);
@@ -1261,7 +1261,7 @@ function qi(t, e, n) {
1261
1261
  }
1262
1262
  function d() {
1263
1263
  var b = u;
1264
- u = !0, $o(function() {
1264
+ u = !0, _o(function() {
1265
1265
  u = b;
1266
1266
  });
1267
1267
  }
@@ -1277,7 +1277,7 @@ function qi(t, e, n) {
1277
1277
  disable: l
1278
1278
  };
1279
1279
  }
1280
- var _e = Pn + "-lazy", qe = _e + "-srcset", Xi = "[" + _e + "], [" + qe + "]";
1280
+ var $e = Pn + "-lazy", qe = $e + "-srcset", Xi = "[" + $e + "], [" + qe + "]";
1281
1281
  function Ki(t, e, n) {
1282
1282
  var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, s = n.lazyLoad === "sequential", p = [Ce, le], u = [];
1283
1283
  function C() {
@@ -1289,7 +1289,7 @@ function Ki(t, e, n) {
1289
1289
  function g() {
1290
1290
  e.Slides.forEach(function(y) {
1291
1291
  Rn(y.slide, Xi).forEach(function(x) {
1292
- var V = Rt(x, _e), N = Rt(x, qe);
1292
+ var V = Rt(x, $e), N = Rt(x, qe);
1293
1293
  if (V !== x.src || N !== x.srcset) {
1294
1294
  var L = n.classes.spinner, v = x.parentElement, T = We(v, "." + L) || me("span", L, v);
1295
1295
  u.push([x, y, T]), x.src || ke(x, "none");
@@ -1305,7 +1305,7 @@ function Ki(t, e, n) {
1305
1305
  }
1306
1306
  function d(y) {
1307
1307
  var x = y[0];
1308
- Bt(y[1].slide, Tn), i(x, "load error", ut(w, y)), Q(x, "src", Rt(x, _e)), Q(x, "srcset", Rt(x, qe)), Ot(x, _e), Ot(x, qe);
1308
+ Bt(y[1].slide, Tn), i(x, "load error", ut(w, y)), Q(x, "src", Rt(x, $e)), Q(x, "srcset", Rt(x, qe)), Ot(x, $e), Ot(x, qe);
1309
1309
  }
1310
1310
  function w(y, x) {
1311
1311
  var V = y[0], N = y[1];
@@ -1340,10 +1340,10 @@ function Ji(t, e, n) {
1340
1340
  var m = me("li", null, w), I = me("button", {
1341
1341
  class: A.page,
1342
1342
  type: "button"
1343
- }, m), $ = c.getIn(H).map(function(S) {
1343
+ }, m), _ = c.getIn(H).map(function(S) {
1344
1344
  return S.slide.id;
1345
- }), _ = !u() && B > 1 ? R.pageX : R.slideX;
1346
- i(I, "click", ut(N, H)), n.paginationKeyboard && i(I, "keydown", ut(L, H)), Q(m, Ht, "presentation"), Q(I, Ht, "tab"), Q(I, Ve, $.join(" ")), Q(I, Et, $n(_, H + 1)), Q(I, ye, -1), d.push({
1345
+ }), $ = !u() && B > 1 ? R.pageX : R.slideX;
1346
+ i(I, "click", ut(N, H)), n.paginationKeyboard && i(I, "keydown", ut(L, H)), Q(m, Ht, "presentation"), Q(I, Ht, "tab"), Q(I, Ve, _.join(" ")), Q(I, Et, _n($, H + 1)), Q(I, ye, -1), d.push({
1347
1347
  li: m,
1348
1348
  button: I,
1349
1349
  page: H
@@ -1440,7 +1440,7 @@ function ta(t, e, n) {
1440
1440
  function c(p) {
1441
1441
  if (p.cancelable) {
1442
1442
  var u = p.deltaY, C = u < 0, h = Cn(p), g = n.wheelMinThreshold || 0, l = n.wheelSleep || 0;
1443
- $t(u) > g && h - a > l && (t.go(C ? "<" : ">"), a = h), s(C) && Vt(p);
1443
+ _t(u) > g && h - a > l && (t.go(C ? "<" : ">"), a = h), s(C) && Vt(p);
1444
1444
  }
1445
1445
  }
1446
1446
  function s(p) {
@@ -1524,7 +1524,7 @@ var oa = /* @__PURE__ */ Object.freeze({
1524
1524
  trimSpace: !0,
1525
1525
  focusableNodes: "a, button, textarea, input, select, iframe",
1526
1526
  live: !0,
1527
- classes: $i,
1527
+ classes: _i,
1528
1528
  i18n: ra,
1529
1529
  reducedMotion: {
1530
1530
  speed: 0,
@@ -1543,7 +1543,7 @@ function aa(t, e, n) {
1543
1543
  });
1544
1544
  }
1545
1545
  function i(c, s) {
1546
- o.style("transition", "opacity " + n.speed + "ms " + n.easing), $o(s);
1546
+ o.style("transition", "opacity " + n.speed + "ms " + n.easing), _o(s);
1547
1547
  }
1548
1548
  return {
1549
1549
  mount: r,
@@ -1560,7 +1560,7 @@ function la(t, e, n) {
1560
1560
  }
1561
1561
  function u(g, l) {
1562
1562
  var d = o.toPosition(g, !0), w = o.getPosition(), b = h(g);
1563
- $t(d - w) >= 1 && b >= 1 ? n.useScroll ? a.scroll(d, b, !1, l) : (c("transform " + b + "ms " + n.easing), o.translate(d, !0), s = l) : (o.jump(g), l());
1563
+ _t(d - w) >= 1 && b >= 1 ? n.useScroll ? a.scroll(d, b, !1, l) : (c("transform " + b + "ms " + n.easing), o.translate(d, !0), s = l) : (o.jump(g), l());
1564
1564
  }
1565
1565
  function C() {
1566
1566
  c(""), a.cancel();
@@ -1584,21 +1584,21 @@ var sa = /* @__PURE__ */ (function() {
1584
1584
  function t(n, o) {
1585
1585
  this.event = gt(), this.Components = {}, this.state = ci(fe), this.splides = [], this._o = {}, this._E = {};
1586
1586
  var r = Jt(n) ? Ao(document, n) : n;
1587
- $e(r, r + " is invalid."), this.root = r, o = Kt({
1587
+ _e(r, r + " is invalid."), this.root = r, o = Kt({
1588
1588
  label: Rt(r, Et) || "",
1589
1589
  labelledby: Rt(r, Dn) || ""
1590
1590
  }, ia, t.defaults, o || {});
1591
1591
  try {
1592
1592
  Kt(o, JSON.parse(Rt(r, Pn)));
1593
1593
  } catch {
1594
- $e(!1, "Invalid JSON");
1594
+ _e(!1, "Invalid JSON");
1595
1595
  }
1596
1596
  this._o = Object.create(Kt({}, o));
1597
1597
  }
1598
1598
  var e = t.prototype;
1599
1599
  return e.mount = function(o, r) {
1600
1600
  var a = this, i = this.state, c = this.Components;
1601
- $e(i.is([fe, Ke]), "Already mounted!"), i.set(fe), this._C = c, this._T = r || this._T || (this.is(Me) ? aa : la), this._E = o || this._E;
1601
+ _e(i.is([fe, Ke]), "Already mounted!"), i.set(fe), this._C = c, this._T = r || this._T || (this.is(Me) ? aa : la), this._E = o || this._E;
1602
1602
  var s = Ie({}, oa, this._E, {
1603
1603
  Transition: this._T
1604
1604
  });
@@ -1607,7 +1607,7 @@ var sa = /* @__PURE__ */ (function() {
1607
1607
  c[u] = C, C.setup && C.setup();
1608
1608
  }), re(c, function(p) {
1609
1609
  p.mount && p.mount();
1610
- }), this.emit(te), Bt(this.root, Ci), i.set(he), this.emit(_n), this;
1610
+ }), this.emit(te), Bt(this.root, Ci), i.set(he), this.emit($n), this;
1611
1611
  }, e.sync = function(o) {
1612
1612
  return this.splides.push({
1613
1613
  splide: o
@@ -1635,7 +1635,7 @@ var sa = /* @__PURE__ */ (function() {
1635
1635
  }, e.destroy = function(o) {
1636
1636
  o === void 0 && (o = !0);
1637
1637
  var r = this.event, a = this.state;
1638
- return a.is(fe) ? gt(this).on(_n, this.destroy.bind(this, o)) : (re(this._C, function(i) {
1638
+ return a.is(fe) ? gt(this).on($n, this.destroy.bind(this, o)) : (re(this._C, function(i) {
1639
1639
  i.destroy && i.destroy(o);
1640
1640
  }, !0), r.emit(Nn), r.destroy(), o && jt(this.splides), a.set(Ke)), this;
1641
1641
  }, ri(t, [{
@@ -1662,7 +1662,7 @@ Gn.defaults = {};
1662
1662
  Gn.STATES = ai;
1663
1663
  var uo = [
1664
1664
  [te, "onMounted"],
1665
- [_n, "onReady"],
1665
+ [$n, "onReady"],
1666
1666
  [Ut, "onMove"],
1667
1667
  [Ce, "onMoved"],
1668
1668
  [On, "onClick"],
@@ -1860,10 +1860,10 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
1860
1860
  if (!w) return;
1861
1861
  const m = new ResizeObserver((I) => {
1862
1862
  if (!r) return;
1863
- const [$] = I;
1863
+ const [_] = I;
1864
1864
  d({
1865
- width: Math.round($.contentRect.width),
1866
- height: Math.round($.contentRect.height)
1865
+ width: Math.round(_.contentRect.width),
1866
+ height: Math.round(_.contentRect.height)
1867
1867
  });
1868
1868
  });
1869
1869
  return m.observe(w), () => m.unobserve(w);
@@ -2722,11 +2722,11 @@ const ba = {
2722
2722
  },
2723
2723
  required: ["settings", "content", "styles"]
2724
2724
  }
2725
- }, Sa = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Ca = "ImageRevealSlider-module__image___Qjt-e", xa = "ImageRevealSlider-module__link___N-iLG", $a = "ImageRevealSlider-module__cursor___2U03d", ue = {
2725
+ }, Sa = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Ca = "ImageRevealSlider-module__image___Qjt-e", xa = "ImageRevealSlider-module__link___N-iLG", _a = "ImageRevealSlider-module__cursor___2U03d", ue = {
2726
2726
  imageRevealSlider: Sa,
2727
2727
  image: Ca,
2728
2728
  link: xa,
2729
- cursor: $a
2729
+ cursor: _a
2730
2730
  };
2731
2731
  function fo(t, e, n) {
2732
2732
  for (const o of n) {
@@ -2746,7 +2746,7 @@ function hn(t) {
2746
2746
  };
2747
2747
  });
2748
2748
  }
2749
- async function _a(t, e, n, o) {
2749
+ async function $a(t, e, n, o) {
2750
2750
  let r, a;
2751
2751
  if (e === "custom") {
2752
2752
  r = n;
@@ -2766,8 +2766,8 @@ function wa({ settings: t, content: e, isEditor: n }) {
2766
2766
  const [o, r] = ct(null), [a, i] = ct([]), [c, s] = ct(0), p = wt(0), [u, C] = ct({ x: 0, y: 0 }), [h, g] = ct(1), [l, d] = ct("none"), w = wt({ x: 0, y: 0 }), [b, y] = ct(!1), { sizeType: x, imageWidth: V, randomRangeImageWidth: N } = t.imageSize, { revealPosition: L, visible: v } = t.position, { cursorType: T, target: k, defaultCursorScale: z, defaultCursor: A, hoverCursorScale: R, hoverCursor: B } = t.cursor;
2767
2767
  bt(() => {
2768
2768
  if (!o) return;
2769
- const m = (_, S) => {
2770
- const O = o.getBoundingClientRect(), G = _ - O.left, nt = S - O.top;
2769
+ const m = ($, S) => {
2770
+ const O = o.getBoundingClientRect(), G = $ - O.left, nt = S - O.top;
2771
2771
  if (C({ x: G, y: nt }), T === "system") {
2772
2772
  d("none"), g(1);
2773
2773
  return;
@@ -2779,13 +2779,13 @@ function wa({ settings: t, content: e, isEditor: n }) {
2779
2779
  }
2780
2780
  const K = fo(tt, lt, a) || k === "area" ? { img: B ?? "none", scale: R } : { img: A ?? "none", scale: z };
2781
2781
  d(K.img), g(K.scale);
2782
- }, I = (_) => {
2783
- _.stopPropagation(), w.current = { x: _.clientX, y: _.clientY }, m(_.clientX, _.clientY);
2784
- }, $ = () => {
2782
+ }, I = ($) => {
2783
+ $.stopPropagation(), w.current = { x: $.clientX, y: $.clientY }, m($.clientX, $.clientY);
2784
+ }, _ = () => {
2785
2785
  b && m(w.current.x, w.current.y);
2786
2786
  };
2787
- return o.addEventListener("mousemove", I), window.addEventListener("scroll", $, !0), () => {
2788
- o.removeEventListener("mousemove", I), window.removeEventListener("scroll", $, !0);
2787
+ return o.addEventListener("mousemove", I), window.addEventListener("scroll", _, !0), () => {
2788
+ o.removeEventListener("mousemove", I), window.removeEventListener("scroll", _, !0);
2789
2789
  };
2790
2790
  }, [
2791
2791
  o,
@@ -2801,16 +2801,16 @@ function wa({ settings: t, content: e, isEditor: n }) {
2801
2801
  ]), bt(() => {
2802
2802
  b || (d("none"), g(0));
2803
2803
  }, [b]);
2804
- const j = async (m, I, $, _ = {}) => {
2805
- const { width: S, height: O, finalWidth: G } = await _a(
2804
+ const j = async (m, I, _, $ = {}) => {
2805
+ const { width: S, height: O, finalWidth: G } = await $a(
2806
2806
  m.image.url,
2807
2807
  x,
2808
2808
  V,
2809
2809
  N
2810
2810
  );
2811
2811
  let nt = 0, tt = 0;
2812
- L === "same" ? (nt = I / 2, tt = $ / 2) : (nt = _.x ?? Math.random() * I, tt = _.y ?? Math.random() * $);
2813
- const lt = Math.min(Math.max(nt, S / 2), I - S / 2), E = Math.min(Math.max(tt, O / 2), $ - O / 2);
2812
+ L === "same" ? (nt = I / 2, tt = _ / 2) : (nt = $.x ?? Math.random() * I, tt = $.y ?? Math.random() * _);
2813
+ const lt = Math.min(Math.max(nt, S / 2), I - S / 2), E = Math.min(Math.max(tt, O / 2), _ - O / 2);
2814
2814
  return {
2815
2815
  id: p.current++,
2816
2816
  url: m.image.url,
@@ -2823,10 +2823,10 @@ function wa({ settings: t, content: e, isEditor: n }) {
2823
2823
  };
2824
2824
  return bt(() => {
2825
2825
  if (!o || e.length === 0) return;
2826
- const m = o.getBoundingClientRect(), I = m.width, $ = m.height, _ = [];
2826
+ const m = o.getBoundingClientRect(), I = m.width, _ = m.height, $ = [];
2827
2827
  (async () => {
2828
- const O = e[0], G = await j(O, I, $);
2829
- _.push(G), i(_), s(1);
2828
+ const O = e[0], G = await j(O, I, _);
2829
+ $.push(G), i($), s(1);
2830
2830
  })();
2831
2831
  }, [x, V, N, L, o]), bt(() => {
2832
2832
  v === "last One" && i((m) => m.length > 0 ? [m[m.length - 1]] : []);
@@ -2836,10 +2836,10 @@ function wa({ settings: t, content: e, isEditor: n }) {
2836
2836
  ref: r,
2837
2837
  onClick: async (m) => {
2838
2838
  if (!o) return;
2839
- const I = o.getBoundingClientRect(), $ = m.clientX - I.left, _ = m.clientY - I.top;
2840
- if (k === "image" && !fo($, _, a)) return;
2839
+ const I = o.getBoundingClientRect(), _ = m.clientX - I.left, $ = m.clientY - I.top;
2840
+ if (k === "image" && !fo(_, $, a)) return;
2841
2841
  let S = 0, O = 0;
2842
- L === "on Click" ? (S = $, O = _) : L === "same" ? (S = I.width / 2, O = I.height / 2) : (S = Math.random() * I.width, O = Math.random() * I.height);
2842
+ L === "on Click" ? (S = _, O = $) : L === "same" ? (S = I.width / 2, O = I.height / 2) : (S = Math.random() * I.width, O = Math.random() * I.height);
2843
2843
  const G = e[c], nt = await j(G, I.width, I.height, { x: S, y: O });
2844
2844
  i((tt) => v === "all" ? [...tt, nt] : [nt]), s((tt) => tt >= e.length - 1 ? 0 : tt + 1);
2845
2845
  },
@@ -3398,7 +3398,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3398
3398
  ] });
3399
3399
  }, gl = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
3400
3400
  var M;
3401
- const [s, p] = ct(0), [u, C] = ct(0), [h, g] = ct(!1), [l, d] = ct(!1), [w, b] = ct({}), y = wt(null), x = wt(null), V = wt(null), N = wt(!1), L = wt(null), v = wt(null), T = wt(null), k = wt(null), z = wt(!1), A = wt(null), [R, B] = ct(!1), { appear: j, triggers: H, slider: m, thumbnail: I, controls: $, area: _, caption: S, layout: O } = r.lightboxBlock, { appearClass: G, backdropAppearClass: nt, backdropDisappearClass: tt, disappearClass: lt } = pl(j.type, j.direction), E = (c == null ? void 0 : c.itemId) ?? null;
3401
+ const [s, p] = ct(0), [u, C] = ct(0), [h, g] = ct(!1), [l, d] = ct(!1), [w, b] = ct({}), y = wt(null), x = wt(null), V = wt(null), N = wt(!1), L = wt(null), v = wt(null), T = wt(null), k = wt(null), z = wt(!1), A = wt(null), [R, B] = ct(!1), { appear: j, triggers: H, slider: m, thumbnail: I, controls: _, area: $, caption: S, layout: O } = r.lightboxBlock, { appearClass: G, backdropAppearClass: nt, backdropDisappearClass: tt, disappearClass: lt } = pl(j.type, j.direction), E = (c == null ? void 0 : c.itemId) ?? null;
3402
3402
  bt(() => {
3403
3403
  const f = () => {
3404
3404
  setTimeout(() => {
@@ -3426,13 +3426,13 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3426
3426
  return q.observe(f), () => q.disconnect();
3427
3427
  }, [t, I.isActive, n.length, w, m.direction]);
3428
3428
  const K = dr(() => {
3429
- const f = window.matchMedia("(max-width: 768px)").matches, D = ho(_.color);
3429
+ const f = window.matchMedia("(max-width: 768px)").matches, D = ho($.color);
3430
3430
  f && !i && D > 0.9 && (document.body.style.backgroundColor = ""), g(!0), N.current = !0;
3431
3431
  const q = (Y) => {
3432
3432
  Y.target === L.current && Y.animationName && (L.current && v.current && L.current.removeEventListener("animationend", v.current), v.current = null, N.current && (N.current = !1, e()), g(!1));
3433
3433
  };
3434
3434
  L.current && (v.current = q, L.current.addEventListener("animationend", q));
3435
- }, [e, _.color, i]), yt = (f, D, q) => {
3435
+ }, [e, $.color, i]), yt = (f, D, q) => {
3436
3436
  var Y, et;
3437
3437
  if (f) {
3438
3438
  if (H.type === "click" && H.switch === "image")
@@ -3503,10 +3503,10 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3503
3503
  x.current !== null && x.current !== m.type && C((f) => f + 1), x.current = m.type;
3504
3504
  }, [m.type]), bt(() => {
3505
3505
  if (!t) return;
3506
- const f = document.body.style.overflow, D = window.matchMedia("(max-width: 768px)").matches, q = ho(_.color);
3506
+ const f = document.body.style.overflow, D = window.matchMedia("(max-width: 768px)").matches, q = ho($.color);
3507
3507
  document.body.style.overflow = "hidden", d(!1);
3508
3508
  const Y = (J) => {
3509
- J.target === L.current && !N.current && J.animationName && (D && !i && q > 0.9 && (document.body.style.backgroundColor = _.color), d(!0), L.current && T.current && L.current.removeEventListener("animationend", T.current), T.current = null);
3509
+ J.target === L.current && !N.current && J.animationName && (D && !i && q > 0.9 && (document.body.style.backgroundColor = $.color), d(!0), L.current && T.current && L.current.removeEventListener("animationend", T.current), T.current = null);
3510
3510
  };
3511
3511
  L.current && (T.current = Y, L.current.addEventListener("animationend", Y));
3512
3512
  const et = (J) => {
@@ -3516,7 +3516,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3516
3516
  return document.addEventListener("touchmove", et, { passive: !1 }), () => {
3517
3517
  document.body.style.overflow = f, document.removeEventListener("touchmove", et), L.current && T.current && (L.current.removeEventListener("animationend", T.current), T.current = null), d(!1);
3518
3518
  };
3519
- }, [t, i, _.color, m.type]), bt(() => {
3519
+ }, [t, i, $.color, m.type]), bt(() => {
3520
3520
  if (!t) return;
3521
3521
  const f = (D) => {
3522
3522
  var Y, et;
@@ -3600,8 +3600,8 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3600
3600
  };
3601
3601
  }, [t, Wt, u]);
3602
3602
  const zt = {
3603
- backgroundColor: _.color,
3604
- backdropFilter: `blur(${_.blur}px)`,
3603
+ backgroundColor: $.color,
3604
+ backdropFilter: `blur(${$.blur}px)`,
3605
3605
  animationDuration: `${parseInt(j.duration)}ms`,
3606
3606
  animationTimingFunction: "ease",
3607
3607
  animationFillMode: "both"
@@ -3681,33 +3681,33 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3681
3681
  },
3682
3682
  u
3683
3683
  ),
3684
- $.isActive && /* @__PURE__ */ St(Te, { children: [
3684
+ _.isActive && /* @__PURE__ */ St(Te, { children: [
3685
3685
  /* @__PURE__ */ P(
3686
3686
  "div",
3687
3687
  {
3688
3688
  className: dt(W.arrow, { [W.arrowVertical]: m.direction === "vert" }),
3689
- style: { color: $.color, "--arrow-hover-color": $.hover },
3689
+ style: { color: _.color, "--arrow-hover-color": _.hover },
3690
3690
  children: /* @__PURE__ */ St(
3691
3691
  "button",
3692
3692
  {
3693
3693
  className: W.arrowInner,
3694
- style: { transform: `translate(${F($.offset.x, i)}, ${F($.offset.y * (m.direction === "horiz" ? 1 : -1), i)}) scale(${$.scale}) rotate(${m.direction === "horiz" ? "0deg" : "90deg"})` },
3694
+ style: { transform: `translate(${F(_.offset.x, i)}, ${F(_.offset.y * (m.direction === "horiz" ? 1 : -1), i)}) scale(${_.scale}) rotate(${m.direction === "horiz" ? "0deg" : "90deg"})` },
3695
3695
  onClick: () => {
3696
3696
  var f;
3697
3697
  return (f = y.current) == null ? void 0 : f.go("-1");
3698
3698
  },
3699
3699
  "aria-label": "Previous",
3700
3700
  children: [
3701
- $.arrowsImgUrl && /* @__PURE__ */ P(
3701
+ _.arrowsImgUrl && /* @__PURE__ */ P(
3702
3702
  we,
3703
3703
  {
3704
- url: $.arrowsImgUrl,
3705
- fill: $.color,
3706
- hoverFill: $.hover,
3704
+ url: _.arrowsImgUrl,
3705
+ fill: _.color,
3706
+ hoverFill: _.hover,
3707
3707
  className: dt(W.arrowImg, W.mirror)
3708
3708
  }
3709
3709
  ),
3710
- !$.arrowsImgUrl && /* @__PURE__ */ P(vo, { color: $.color, className: dt(W.arrowIcon, W.arrowImg, W.mirror) })
3710
+ !_.arrowsImgUrl && /* @__PURE__ */ P(vo, { color: _.color, className: dt(W.arrowIcon, W.arrowImg, W.mirror) })
3711
3711
  ]
3712
3712
  }
3713
3713
  )
@@ -3717,37 +3717,37 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3717
3717
  "div",
3718
3718
  {
3719
3719
  className: dt(W.arrow, W.nextArrow, { [W.arrowVertical]: m.direction === "vert" }),
3720
- style: { color: $.color, "--arrow-hover-color": $.hover },
3720
+ style: { color: _.color, "--arrow-hover-color": _.hover },
3721
3721
  children: /* @__PURE__ */ St(
3722
3722
  "button",
3723
3723
  {
3724
3724
  className: W.arrowInner,
3725
- style: { transform: `translate(${F($.offset.x * (m.direction === "horiz" ? -1 : 1), i)}, ${F($.offset.y, i)}) scale(${$.scale}) rotate(${m.direction === "horiz" ? "0deg" : "90deg"})` },
3725
+ style: { transform: `translate(${F(_.offset.x * (m.direction === "horiz" ? -1 : 1), i)}, ${F(_.offset.y, i)}) scale(${_.scale}) rotate(${m.direction === "horiz" ? "0deg" : "90deg"})` },
3726
3726
  onClick: () => {
3727
3727
  var f;
3728
3728
  return (f = y.current) == null ? void 0 : f.go("+1");
3729
3729
  },
3730
3730
  "aria-label": "Next",
3731
3731
  children: [
3732
- $.arrowsImgUrl && /* @__PURE__ */ P(
3732
+ _.arrowsImgUrl && /* @__PURE__ */ P(
3733
3733
  we,
3734
3734
  {
3735
- url: $.arrowsImgUrl,
3736
- fill: $.color,
3737
- hoverFill: $.hover,
3735
+ url: _.arrowsImgUrl,
3736
+ fill: _.color,
3737
+ hoverFill: _.hover,
3738
3738
  className: W.arrowImg
3739
3739
  }
3740
3740
  ),
3741
- !$.arrowsImgUrl && /* @__PURE__ */ P(vo, { color: $.color, className: dt(W.arrowIcon, W.arrowImg) })
3741
+ !_.arrowsImgUrl && /* @__PURE__ */ P(vo, { color: _.color, className: dt(W.arrowIcon, W.arrowImg) })
3742
3742
  ]
3743
3743
  }
3744
3744
  )
3745
3745
  }
3746
3746
  )
3747
3747
  ] }),
3748
- _.closeIconUrl && (() => {
3749
- const f = He(_.closeIconAlign, _.closeIconOffset, i), D = `scale(${_.closeIconScale})`, q = f.transform ? `${f.transform} ${D}` : D;
3750
- return /* @__PURE__ */ P("button", { className: W.closeButton, style: { ...f, transform: q }, onClick: K, "aria-label": "Close lightbox", children: /* @__PURE__ */ P(we, { url: _.closeIconUrl, fill: _.closeIconColor ?? "#000000", hoverFill: _.closeIconHover ?? "#cccccc" }) });
3748
+ $.closeIconUrl && (() => {
3749
+ const f = He($.closeIconAlign, $.closeIconOffset, i), D = `scale(${$.closeIconScale})`, q = f.transform ? `${f.transform} ${D}` : D;
3750
+ return /* @__PURE__ */ P("button", { className: W.closeButton, style: { ...f, transform: q }, onClick: K, "aria-label": "Close lightbox", children: /* @__PURE__ */ P(we, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
3751
3751
  })(),
3752
3752
  S && S.isActive && o.imageCaption && ((M = n[s]) == null ? void 0 : M.imageCaption) && (() => {
3753
3753
  const { widthSettings: f, fontSettings: D, letterSpacing: q, textAlign: Y, wordSpacing: et, fontSizeLineHeight: J, textAppearance: X, color: at } = o.imageCaption;
@@ -5152,8 +5152,8 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5152
5152
  inputLineHeight: H,
5153
5153
  inputLetterSpacing: m,
5154
5154
  inputWordSpacing: I,
5155
- inputTextAppearance: $,
5156
- buttonFontSettings: _,
5155
+ inputTextAppearance: _,
5156
+ buttonFontSettings: $,
5157
5157
  buttonFontSize: S,
5158
5158
  buttonLineHeight: O,
5159
5159
  buttonLetterSpacing: G,
@@ -5178,7 +5178,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5178
5178
  lineHeight: H,
5179
5179
  letterSpacing: m ?? 0,
5180
5180
  wordSpacing: I ?? 0,
5181
- textAppearance: $
5181
+ textAppearance: _
5182
5182
  }, Y = vn(q, e), et = F(w ?? 0, e), J = {
5183
5183
  ...Y,
5184
5184
  borderStyle: "solid",
@@ -5195,8 +5195,8 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5195
5195
  }, X = {
5196
5196
  fontSettings: {
5197
5197
  fontFamily: R,
5198
- fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
5199
- fontStyle: (_ == null ? void 0 : _.fontStyle) ?? "normal"
5198
+ fontWeight: ($ == null ? void 0 : $.fontWeight) ?? 400,
5199
+ fontStyle: ($ == null ? void 0 : $.fontStyle) ?? "normal"
5200
5200
  },
5201
5201
  fontSize: S ?? 0.01,
5202
5202
  lineHeight: O,
@@ -5227,7 +5227,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5227
5227
  errorColor: A
5228
5228
  }, hl, vl, M), [Z, st] = ct(
5229
5229
  () => Object.fromEntries(D.map((pt) => [pt.name, ""]))
5230
- ), [xt, It] = ct("idle"), [vt, Gt] = ct(null), qt = o === "success" ? "success" : o === "error" ? "error" : xt, _t = o === "error" ? zt : vt, Tt = o === "filled" ? Object.fromEntries(D.map((pt) => [pt.name, "Filled"])) : Z, cr = qt === "error" ? Xe(D, Tt) : null, ur = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), Xn = n == null ? void 0 : n.submitUrl, Kn = (pt, se) => {
5230
+ ), [xt, It] = ct("idle"), [vt, Gt] = ct(null), qt = o === "success" ? "success" : o === "error" ? "error" : xt, $t = o === "error" ? zt : vt, Tt = o === "filled" ? Object.fromEntries(D.map((pt) => [pt.name, "Filled"])) : Z, cr = qt === "error" ? Xe(D, Tt) : null, ur = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), Xn = n == null ? void 0 : n.submitUrl, Kn = (pt, se) => {
5231
5231
  st((Xt) => ({ ...Xt, [pt]: se }));
5232
5232
  }, pr = async (pt) => {
5233
5233
  pt.preventDefault();
@@ -5260,7 +5260,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5260
5260
  }
5261
5261
  };
5262
5262
  return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${ur}`.trim(), style: Yt, children: [
5263
- /* @__PURE__ */ P("style", { children: ml(r) }),
5263
+ /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: ml(r) } }),
5264
5264
  /* @__PURE__ */ St(
5265
5265
  "form",
5266
5266
  {
@@ -5359,7 +5359,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5359
5359
  className: `${r}-error`,
5360
5360
  style: { ...Y, lineHeight: Y == null ? void 0 : Y.fontSize },
5361
5361
  role: "alert",
5362
- children: cr ?? _t ?? zt
5362
+ children: cr ?? $t ?? zt
5363
5363
  }
5364
5364
  )
5365
5365
  ] });
@@ -5733,7 +5733,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5733
5733
 
5734
5734
  return (
5735
5735
  <div className={\`\${P}-wrapper \${P}-type-\${type} \${wrapperStateClasses}\`.trim()} style={colorVars}>
5736
- <style>{getCSS(P)}</style>
5736
+ <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
5737
5737
  <form
5738
5738
  onSubmit={handleSubmit}
5739
5739
  className={\`\${P}-form\`}
@@ -6526,7 +6526,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
6526
6526
  },
6527
6527
  allowedPlugins: ["newsletter"],
6528
6528
  states: ["default", "hover", "focus", "filled", "success", "error"]
6529
- }, $l = {
6529
+ }, _l = {
6530
6530
  element: yl,
6531
6531
  id: "form",
6532
6532
  name: "Newsletter Stacked",
@@ -6545,7 +6545,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
6545
6545
  function je(t) {
6546
6546
  return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
6547
6547
  }
6548
- function _l(t) {
6548
+ function $l(t) {
6549
6549
  return `
6550
6550
  .${t}-wrapper {
6551
6551
  display: flex;
@@ -6742,9 +6742,9 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6742
6742
  buttonPadding: H,
6743
6743
  successMessage: m = "Thanks for subscribing!",
6744
6744
  errorMessage: I = "Please, fill all required fields."
6745
- } = t, $ = a.slice(0, Math.min(u, a.length)), [_, S] = ct(
6746
- () => Object.fromEntries($.map((vt) => [vt.name, ""]))
6747
- ), [O, G] = ct("idle"), [nt, tt] = ct(null), lt = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : nt, K = o === "filled" ? Object.fromEntries($.map((vt) => [vt.name, "Filled"])) : _, yt = lt === "error" ? Xe($, K) : null, it = o && o !== "default" ? `${r}-state-${o}` : "", mt = $.some((vt) => (K[vt.name] ?? "").trim().length > 0), Wt = it !== `${r}-state-filled` && mt ? `${r}-state-filled` : "", zt = `${it} ${Wt}`.trim(), M = n == null ? void 0 : n.submitUrl, f = i, D = (f == null ? void 0 : f.mode) === "Icon" || (f == null ? void 0 : f.mode) === "Label" ? f.mode : c === "Icon" ? "Icon" : "Label", q = f === void 0 ? s : f.label !== void 0 ? f.label : s, Y = f === void 0 ? p : f.icon !== void 0 ? f.icon : p, et = q ?? "", J = Y ?? "", X = D === "Icon", at = et || "Submit", ft = l || d !== void 0 || w !== void 0 || b !== void 0 || y !== void 0 || x !== void 0 ? {
6745
+ } = t, _ = a.slice(0, Math.min(u, a.length)), [$, S] = ct(
6746
+ () => Object.fromEntries(_.map((vt) => [vt.name, ""]))
6747
+ ), [O, G] = ct("idle"), [nt, tt] = ct(null), lt = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : nt, K = o === "filled" ? Object.fromEntries(_.map((vt) => [vt.name, "Filled"])) : $, yt = lt === "error" ? Xe(_, K) : null, it = o && o !== "default" ? `${r}-state-${o}` : "", mt = _.some((vt) => (K[vt.name] ?? "").trim().length > 0), Wt = it !== `${r}-state-filled` && mt ? `${r}-state-filled` : "", zt = `${it} ${Wt}`.trim(), M = n == null ? void 0 : n.submitUrl, f = i, D = (f == null ? void 0 : f.mode) === "Icon" || (f == null ? void 0 : f.mode) === "Label" ? f.mode : c === "Icon" ? "Icon" : "Label", q = f === void 0 ? s : f.label !== void 0 ? f.label : s, Y = f === void 0 ? p : f.icon !== void 0 ? f.icon : p, et = q ?? "", J = Y ?? "", X = D === "Icon", at = et || "Submit", ft = l || d !== void 0 || w !== void 0 || b !== void 0 || y !== void 0 || x !== void 0 ? {
6748
6748
  fontSettings: {
6749
6749
  fontFamily: C,
6750
6750
  fontWeight: (l == null ? void 0 : l.fontWeight) ?? 400,
@@ -6798,35 +6798,35 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6798
6798
  }, xt = { borderLeftWidth: F(R, e) }, It = async (vt) => {
6799
6799
  vt.preventDefault();
6800
6800
  const Gt = Object.fromEntries(
6801
- $.map((_t) => {
6801
+ _.map(($t) => {
6802
6802
  var Tt;
6803
- return [_t.name, ((Tt = _[_t.name]) == null ? void 0 : Tt.trim()) ?? ""];
6804
- }).filter(([, _t]) => _t)
6803
+ return [$t.name, ((Tt = $[$t.name]) == null ? void 0 : Tt.trim()) ?? ""];
6804
+ }).filter(([, $t]) => $t)
6805
6805
  );
6806
6806
  if (!M || Object.keys(Gt).length === 0) return;
6807
- const qt = Xe($, _);
6807
+ const qt = Xe(_, $);
6808
6808
  if (qt) {
6809
6809
  G("error"), tt(qt);
6810
6810
  return;
6811
6811
  }
6812
6812
  G("submitting"), tt(null);
6813
6813
  try {
6814
- const _t = await fetch(M, {
6814
+ const $t = await fetch(M, {
6815
6815
  method: "POST",
6816
6816
  headers: { "Content-Type": "application/json" },
6817
6817
  body: JSON.stringify(Gt)
6818
6818
  });
6819
- if (!_t.ok) {
6820
- const Tt = await _t.text();
6821
- throw new Error(Tt || `Request failed: ${_t.status}`);
6819
+ if (!$t.ok) {
6820
+ const Tt = await $t.text();
6821
+ throw new Error(Tt || `Request failed: ${$t.status}`);
6822
6822
  }
6823
- G("success"), S(Object.fromEntries($.map((Tt) => [Tt.name, ""])));
6824
- } catch (_t) {
6825
- G("error"), tt(_t instanceof Error ? _t.message : "Something went wrong");
6823
+ G("success"), S(Object.fromEntries(_.map((Tt) => [Tt.name, ""])));
6824
+ } catch ($t) {
6825
+ G("error"), tt($t instanceof Error ? $t.message : "Something went wrong");
6826
6826
  }
6827
6827
  };
6828
6828
  return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${zt}`.trim(), style: Z, children: [
6829
- /* @__PURE__ */ P("style", { children: _l(r) }),
6829
+ /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: $l(r) } }),
6830
6830
  /* @__PURE__ */ St(
6831
6831
  "form",
6832
6832
  {
@@ -6843,7 +6843,7 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6843
6843
  {
6844
6844
  className: `${r}-inputWrap ${r}-overlayAnchor`,
6845
6845
  style: { flex: 1, minWidth: 0 },
6846
- children: $.map((vt) => /* @__PURE__ */ P(
6846
+ children: _.map((vt) => /* @__PURE__ */ P(
6847
6847
  "input",
6848
6848
  {
6849
6849
  type: vt.type === "email" ? "email" : vt.type === "phone" ? "tel" : "text",
@@ -7309,7 +7309,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
7309
7309
 
7310
7310
  return (
7311
7311
  <div className={\`\${P}-wrapper \${wrapperStateClasses}\`.trim()} style={colorVars}>
7312
- <style>{getCSS(P)}</style>
7312
+ <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
7313
7313
  <form
7314
7314
  onSubmit={handleSubmit}
7315
7315
  className={\`\${P}-form\`}
@@ -7918,7 +7918,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
7918
7918
  ba,
7919
7919
  Ta,
7920
7920
  fl,
7921
- $l,
7921
+ _l,
7922
7922
  Fl
7923
7923
  ];
7924
7924
  export {