@cntrl-site/components 1.0.17-1 → 1.0.17-2
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.js +6 -2
- package/dist/index.mjs +336 -294
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as l, Fragment as Ge, jsxs as re } from "react/jsx-runtime";
|
|
2
|
-
import Jt, { useState as ce, useEffect as
|
|
2
|
+
import Jt, { useState as ce, useEffect as Ae, useRef as Te, useCallback as yt, useMemo as Oe, useLayoutEffect as vt } from "react";
|
|
3
3
|
import Fe from "classnames";
|
|
4
4
|
import { s as L, u as on, b as Jn, g as Lr, r as zi } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
5
|
import { createPortal as Vi } from "react-dom";
|
|
6
6
|
function ap(e) {
|
|
7
7
|
return e.type === "object" && e.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__hoverArrow___A-dOH", Ba = "ControlSlider-module__sliderItem___QQSkR", Da = "ControlSlider-module__sliderImage___9hRl-", za = "ControlSlider-module__arrow___05ghY", Va = "ControlSlider-module__arrowVertical___tBfVN", qa = "ControlSlider-module__nextArrow___-30Yc",
|
|
9
|
+
const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__hoverArrow___A-dOH", Ba = "ControlSlider-module__sliderItem___QQSkR", Da = "ControlSlider-module__sliderImage___9hRl-", za = "ControlSlider-module__arrow___05ghY", Va = "ControlSlider-module__arrowVertical___tBfVN", qa = "ControlSlider-module__nextArrow___-30Yc", ja = "ControlSlider-module__arrowInner___aEra3", Ka = "ControlSlider-module__arrowIcon___S4ztF", Ua = "ControlSlider-module__arrowImg___2dwJW", Ga = "ControlSlider-module__mirror___brd6U", Ya = "ControlSlider-module__pagination___bicLF", Xa = "ControlSlider-module__paginationInner___bT-P-", Qa = "ControlSlider-module__paginationVertical___zYqKw", Za = "ControlSlider-module__paginationItem___nTRbk", Ja = "ControlSlider-module__dot___p1Qun", es = "ControlSlider-module__activeDot___LHFaj", ts = "ControlSlider-module__paginationInsideBottom___R3FWn", ns = "ControlSlider-module__paginationInsideTop___V-qb-", rs = "ControlSlider-module__paginationOutsideBottom___14w8D", os = "ControlSlider-module__paginationOutsideTop___SCLqB", is = "ControlSlider-module__paginationInsideLeft___yOBRZ", as = "ControlSlider-module__paginationInsideRight___Rtt3o", ss = "ControlSlider-module__paginationOutsideLeft___lahaw", ls = "ControlSlider-module__paginationOutsideRight___EtuQa", cs = "ControlSlider-module__imgWrapper___UjEgB", ds = "ControlSlider-module__captionBlock___dJ6-j", us = "ControlSlider-module__captionTextWrapper___HFlpf", ps = "ControlSlider-module__captionText___uGBVc", ms = "ControlSlider-module__active___WZK4G", gs = "ControlSlider-module__withPointerEvents___t-18M", hs = "ControlSlider-module__topLeftAlignment___zjnGM", fs = "ControlSlider-module__topCenterAlignment___gD1xW", ys = "ControlSlider-module__topRightAlignment___NMapS", vs = "ControlSlider-module__middleLeftAlignment___OnUrY", bs = "ControlSlider-module__middleCenterAlignment___Tdkl0", xs = "ControlSlider-module__middleRightAlignment___wEbfX", Cs = "ControlSlider-module__bottomLeftAlignment___cTP2-", $s = "ControlSlider-module__bottomCenterAlignment___c54fB", Ss = "ControlSlider-module__bottomRightAlignment___kEwrz", ws = "ControlSlider-module__clickOverlay___DZA28", Ts = "ControlSlider-module__contain___pLyq7", Ls = "ControlSlider-module__cover___KdDat", de = {
|
|
10
10
|
wrapper: Ha,
|
|
11
11
|
hoverArrow: Oa,
|
|
12
12
|
sliderItem: Ba,
|
|
@@ -14,8 +14,8 @@ const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__
|
|
|
14
14
|
arrow: za,
|
|
15
15
|
arrowVertical: Va,
|
|
16
16
|
nextArrow: qa,
|
|
17
|
-
arrowInner:
|
|
18
|
-
arrowIcon:
|
|
17
|
+
arrowInner: ja,
|
|
18
|
+
arrowIcon: Ka,
|
|
19
19
|
arrowImg: Ua,
|
|
20
20
|
mirror: Ga,
|
|
21
21
|
pagination: Ya,
|
|
@@ -69,7 +69,7 @@ var Yo = "(prefers-reduced-motion: reduce)", Tn = 1, _s = 2, En = 3, Fn = 4, er
|
|
|
69
69
|
DRAGGING: br,
|
|
70
70
|
DESTROYED: Pr
|
|
71
71
|
};
|
|
72
|
-
function
|
|
72
|
+
function jt(e) {
|
|
73
73
|
e.length = 0;
|
|
74
74
|
}
|
|
75
75
|
function an(e, t, n) {
|
|
@@ -89,11 +89,11 @@ function Wr(e, t) {
|
|
|
89
89
|
function Vn(e) {
|
|
90
90
|
return !xo(e) && Wr("object", e);
|
|
91
91
|
}
|
|
92
|
-
var bo = Array.isArray,
|
|
92
|
+
var bo = Array.isArray, ji = De(Wr, "function"), tn = De(Wr, "string"), tr = De(Wr, "undefined");
|
|
93
93
|
function xo(e) {
|
|
94
94
|
return e === null;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ki(e) {
|
|
97
97
|
try {
|
|
98
98
|
return e instanceof (e.ownerDocument.defaultView || window).HTMLElement;
|
|
99
99
|
} catch {
|
|
@@ -130,7 +130,7 @@ function $o(e, t) {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
function qn(e, t) {
|
|
133
|
-
return
|
|
133
|
+
return Ki(e) && (e.msMatchesSelector || e.matches).call(e, t);
|
|
134
134
|
}
|
|
135
135
|
function Ui(e, t) {
|
|
136
136
|
var n = e ? an(e.children) : [];
|
|
@@ -141,13 +141,13 @@ function Ui(e, t) {
|
|
|
141
141
|
function or(e, t) {
|
|
142
142
|
return t ? Ui(e, t)[0] : e.firstElementChild;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
144
|
+
var jn = Object.keys;
|
|
145
145
|
function pn(e, t, n) {
|
|
146
|
-
return e && (n ?
|
|
146
|
+
return e && (n ? jn(e).reverse() : jn(e)).forEach(function(r) {
|
|
147
147
|
r !== "__proto__" && t(e[r], r);
|
|
148
148
|
}), e;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Kn(e) {
|
|
151
151
|
return an(arguments, 1).forEach(function(t) {
|
|
152
152
|
pn(t, function(n, r) {
|
|
153
153
|
e[r] = t[r];
|
|
@@ -162,7 +162,7 @@ function en(e) {
|
|
|
162
162
|
}), e;
|
|
163
163
|
}
|
|
164
164
|
function Qo(e, t) {
|
|
165
|
-
Lt(t ||
|
|
165
|
+
Lt(t || jn(e), function(n) {
|
|
166
166
|
delete e[n];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -299,7 +299,7 @@ function Zi() {
|
|
|
299
299
|
function s() {
|
|
300
300
|
e.forEach(function(o) {
|
|
301
301
|
o[4]();
|
|
302
|
-
}),
|
|
302
|
+
}), jt(e);
|
|
303
303
|
}
|
|
304
304
|
return {
|
|
305
305
|
bind: t,
|
|
@@ -308,7 +308,7 @@ function Zi() {
|
|
|
308
308
|
destroy: s
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var sn = "mounted", mo = "ready",
|
|
311
|
+
var sn = "mounted", mo = "ready", Kt = "move", Mn = "moved", Lo = "click", Ji = "active", ea = "inactive", ta = "visible", na = "hidden", Qe = "refresh", at = "updated", _n = "resize", Rr = "resized", ra = "drag", oa = "dragging", ia = "dragged", Fr = "scroll", hn = "scrolled", ks = "overflow", Po = "destroy", aa = "arrows:mounted", sa = "arrows:updated", la = "pagination:mounted", ca = "pagination:updated", Eo = "navigation:mounted", _o = "autoplay:play", da = "autoplay:playing", Ao = "autoplay:pause", Io = "lazyload:loaded", ua = "sk", pa = "sh", Ar = "ei";
|
|
312
312
|
function Ve(e) {
|
|
313
313
|
var t = e ? e.event.bus : document.createDocumentFragment(), n = Zi();
|
|
314
314
|
function r(s, o) {
|
|
@@ -319,7 +319,7 @@ function Ve(e) {
|
|
|
319
319
|
function i(s) {
|
|
320
320
|
n.dispatch(t, s, an(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return e && e.event.on(Po, n.destroy),
|
|
322
|
+
return e && e.event.on(Po, n.destroy), Kn(n, {
|
|
323
323
|
bus: t,
|
|
324
324
|
on: r,
|
|
325
325
|
off: De(n.unbind, t),
|
|
@@ -385,7 +385,7 @@ function Fs(e, t, n) {
|
|
|
385
385
|
var r = e.state, i = n.breakpoints || {}, s = n.reducedMotion || {}, o = Zi(), c = [];
|
|
386
386
|
function a() {
|
|
387
387
|
var p = n.mediaQuery === "min";
|
|
388
|
-
|
|
388
|
+
jn(i).sort(function(m, b) {
|
|
389
389
|
return p ? +m - +b : +b - +m;
|
|
390
390
|
}).forEach(function(m) {
|
|
391
391
|
d(i[m], "(" + (p ? "min" : "max") + "-width:" + m + "px)");
|
|
@@ -405,7 +405,7 @@ function Fs(e, t, n) {
|
|
|
405
405
|
Qo(n), h(b), n.destroy ? e.destroy(n.destroy === "completely") : p ? (u(!0), e.mount()) : m !== n.direction && e.refresh();
|
|
406
406
|
}
|
|
407
407
|
function v(p) {
|
|
408
|
-
matchMedia(Yo).matches && (p ? en(n, s) : Qo(n,
|
|
408
|
+
matchMedia(Yo).matches && (p ? en(n, s) : Qo(n, jn(s)));
|
|
409
409
|
}
|
|
410
410
|
function h(p, m, b) {
|
|
411
411
|
en(n, p), m && en(Object.getPrototypeOf(n), p), (b || !r.is(Tn)) && e.emit(at, n);
|
|
@@ -444,7 +444,7 @@ function Ms(e, t, n) {
|
|
|
444
444
|
orient: i
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var zt = "role", Pn = "tabindex", Ns = "disabled", At = "aria-", ar = At + "controls", ha = At + "current", ti = At + "selected", St = At + "label", ko = At + "labelledby", fa = At + "hidden", Wo = At + "orientation", Yn = At + "roledescription", ni = At + "live", ri = At + "busy", oi = At + "atomic", Ro = [zt, Pn, Ns, ar, ha, St, ko, fa, Wo, Yn], Ft = ir + "__", ln = "is-", Xr = ir, ii = Ft + "track", Hs = Ft + "list", Dr = Ft + "slide", ya = Dr + "--clone", Os = Dr + "__container", Fo = Ft + "arrows", zr = Ft + "arrow", va = zr + "--prev", ba = zr + "--next", Vr = Ft + "pagination", xa = Vr + "__page", Bs = Ft + "progress", Ds = Bs + "__bar", zs = Ft + "toggle", Vs = Ft + "spinner", qs = Ft + "sr",
|
|
447
|
+
var zt = "role", Pn = "tabindex", Ns = "disabled", At = "aria-", ar = At + "controls", ha = At + "current", ti = At + "selected", St = At + "label", ko = At + "labelledby", fa = At + "hidden", Wo = At + "orientation", Yn = At + "roledescription", ni = At + "live", ri = At + "busy", oi = At + "atomic", Ro = [zt, Pn, Ns, ar, ha, St, ko, fa, Wo, Yn], Ft = ir + "__", ln = "is-", Xr = ir, ii = Ft + "track", Hs = Ft + "list", Dr = Ft + "slide", ya = Dr + "--clone", Os = Dr + "__container", Fo = Ft + "arrows", zr = Ft + "arrow", va = zr + "--prev", ba = zr + "--next", Vr = Ft + "pagination", xa = Vr + "__page", Bs = Ft + "progress", Ds = Bs + "__bar", zs = Ft + "toggle", Vs = Ft + "spinner", qs = Ft + "sr", js = ln + "initialized", gn = ln + "active", Ca = ln + "prev", $a = ln + "next", go = ln + "visible", ho = ln + "loading", Sa = ln + "focus-in", wa = ln + "overflow", Ks = [gn, go, Ca, $a, ho, Sa, wa], Us = {
|
|
448
448
|
slide: Dr,
|
|
449
449
|
clone: ya,
|
|
450
450
|
arrows: Fo,
|
|
@@ -456,7 +456,7 @@ var zt = "role", Pn = "tabindex", Ns = "disabled", At = "aria-", ar = At + "cont
|
|
|
456
456
|
spinner: Vs
|
|
457
457
|
};
|
|
458
458
|
function Gs(e, t) {
|
|
459
|
-
if (
|
|
459
|
+
if (ji(e.closest))
|
|
460
460
|
return e.closest(t);
|
|
461
461
|
for (var n = e; n && n.nodeType === 1 && !qn(n, t); )
|
|
462
462
|
n = n.parentElement;
|
|
@@ -479,7 +479,7 @@ function Xs(e, t, n) {
|
|
|
479
479
|
}
|
|
480
480
|
function $(y) {
|
|
481
481
|
var T = Ro.concat("style");
|
|
482
|
-
|
|
482
|
+
jt(u), Dt(o, d), Dt(v, S), Rt([v, h], T), Rt(o, y ? T : ["style", Yn]);
|
|
483
483
|
}
|
|
484
484
|
function x() {
|
|
485
485
|
Dt(o, d), Dt(v, S), d = M(Xr), S = M(ii), Wt(o, d), Wt(v, S), $e(o, St, n.label), $e(o, ko, n.labelledby);
|
|
@@ -494,7 +494,7 @@ function Xs(e, t, n) {
|
|
|
494
494
|
toggle: zs
|
|
495
495
|
}, function(y, T) {
|
|
496
496
|
a[T] = w("." + y);
|
|
497
|
-
}),
|
|
497
|
+
}), Kn(a, {
|
|
498
498
|
root: o,
|
|
499
499
|
track: v,
|
|
500
500
|
list: h,
|
|
@@ -512,7 +512,7 @@ function Xs(e, t, n) {
|
|
|
512
512
|
function M(y) {
|
|
513
513
|
return [y + "--" + n.type, y + "--" + n.direction, n.drag && y + "--draggable", n.isNavigation && y + "--nav", y === Xr && gn];
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return Kn(a, {
|
|
516
516
|
setup: m,
|
|
517
517
|
mount: b,
|
|
518
518
|
destroy: $
|
|
@@ -525,15 +525,15 @@ function Qs(e, t, n, r) {
|
|
|
525
525
|
f || (r.id = u.id + "-slide" + To(t + 1), $e(r, zt, p ? "tabpanel" : "group"), $e(r, Yn, h.slide), $e(r, St, x || po(h.slideLabel, [t + 1, e.length]))), y();
|
|
526
526
|
}
|
|
527
527
|
function y() {
|
|
528
|
-
c(r, "click", De(o, Lo, D)), c(r, "keydown", De(o, ua, D)), s([Mn, pa, hn], P), s(Eo, O), v && s(
|
|
528
|
+
c(r, "click", De(o, Lo, D)), c(r, "keydown", De(o, ua, D)), s([Mn, pa, hn], P), s(Eo, O), v && s(Kt, C);
|
|
529
529
|
}
|
|
530
530
|
function T() {
|
|
531
|
-
w = !0, i.destroy(), Dt(r,
|
|
531
|
+
w = !0, i.destroy(), Dt(r, Ks), Rt(r, Ro), $e(r, "style", $), $e(r, St, x || "");
|
|
532
532
|
}
|
|
533
533
|
function O() {
|
|
534
534
|
var N = e.splides.map(function(A) {
|
|
535
|
-
var
|
|
536
|
-
return
|
|
535
|
+
var j = A.splide.Components.Slides.getAt(t);
|
|
536
|
+
return j ? j.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
538
|
$e(r, St, po(h.slideX, (f ? n : t) + 1)), $e(r, ar, N), $e(r, zt, m ? "button" : ""), m && Rt(r, Yn);
|
|
539
539
|
}
|
|
@@ -553,12 +553,12 @@ function Qs(e, t, n, r) {
|
|
|
553
553
|
function W() {
|
|
554
554
|
var N = k(), A = !N && (!ee() || f);
|
|
555
555
|
if (e.state.is([Fn, er]) || $e(r, fa, A || ""), $e(So(r, d.focusableNodes || ""), Pn, A ? -1 : ""), m && $e(r, Pn, A ? -1 : 0), N !== Zo(r, go) && (Bt(r, go, N), o(N ? ta : na, D)), !N && document.activeElement === r) {
|
|
556
|
-
var
|
|
557
|
-
|
|
556
|
+
var j = a.Slides.getAt(e.index);
|
|
557
|
+
j && Gi(j.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function V(N, A,
|
|
561
|
-
Et(
|
|
560
|
+
function V(N, A, j) {
|
|
561
|
+
Et(j && F || r, N, A);
|
|
562
562
|
}
|
|
563
563
|
function ee() {
|
|
564
564
|
var N = e.index;
|
|
@@ -567,12 +567,12 @@ function Qs(e, t, n, r) {
|
|
|
567
567
|
function k() {
|
|
568
568
|
if (e.is(sr))
|
|
569
569
|
return ee();
|
|
570
|
-
var N = $t(a.Elements.track), A = $t(r),
|
|
571
|
-
return _r(N[
|
|
570
|
+
var N = $t(a.Elements.track), A = $t(r), j = b("left", !0), X = b("right", !0);
|
|
571
|
+
return _r(N[j]) <= Gn(A[j]) && _r(A[X]) <= Gn(N[X]);
|
|
572
572
|
}
|
|
573
573
|
function R(N, A) {
|
|
574
|
-
var
|
|
575
|
-
return !f && (d.rewind || e.is(Nn)) && (
|
|
574
|
+
var j = dt(N - t);
|
|
575
|
+
return !f && (d.rewind || e.is(Nn)) && (j = nn(j, e.length - j)), j <= A;
|
|
576
576
|
}
|
|
577
577
|
var D = {
|
|
578
578
|
index: t,
|
|
@@ -601,7 +601,7 @@ function Zs(e, t, n) {
|
|
|
601
601
|
function h() {
|
|
602
602
|
w(function(P) {
|
|
603
603
|
P.destroy();
|
|
604
|
-
}),
|
|
604
|
+
}), jt(d);
|
|
605
605
|
}
|
|
606
606
|
function p() {
|
|
607
607
|
w(function(P) {
|
|
@@ -630,7 +630,7 @@ function Zs(e, t, n) {
|
|
|
630
630
|
}
|
|
631
631
|
function f(P, _) {
|
|
632
632
|
Lt(P, function(W) {
|
|
633
|
-
if (tn(W) && (W = Yi(W)),
|
|
633
|
+
if (tn(W) && (W = Yi(W)), Ki(W)) {
|
|
634
634
|
var V = a[_];
|
|
635
635
|
V ? $o(W, V) : rr(u, W), Wt(W, n.classes.slide), T(W, De(s, _n));
|
|
636
636
|
}
|
|
@@ -645,7 +645,7 @@ function Zs(e, t, n) {
|
|
|
645
645
|
b(_).forEach(P);
|
|
646
646
|
}
|
|
647
647
|
function M(P) {
|
|
648
|
-
return d.filter(
|
|
648
|
+
return d.filter(ji(P) ? P : function(_) {
|
|
649
649
|
return tn(P) ? qn(_.slide, P) : Co(nr(P), _.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
@@ -728,8 +728,8 @@ function Js(e, t, n) {
|
|
|
728
728
|
function W(D, N) {
|
|
729
729
|
var A = h(D);
|
|
730
730
|
if (A) {
|
|
731
|
-
var
|
|
732
|
-
return dt(
|
|
731
|
+
var j = $t(A.slide)[a("right")], X = $t(v)[a("left")];
|
|
732
|
+
return dt(j - X) + (N ? 0 : ee());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
@@ -767,7 +767,7 @@ function tl(e, t, n) {
|
|
|
767
767
|
v(), d();
|
|
768
768
|
}
|
|
769
769
|
function v() {
|
|
770
|
-
mn(a),
|
|
770
|
+
mn(a), jt(a), r.destroy();
|
|
771
771
|
}
|
|
772
772
|
function h() {
|
|
773
773
|
var $ = b();
|
|
@@ -811,37 +811,37 @@ function nl(e, t, n) {
|
|
|
811
811
|
function w() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), y(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
|
-
function M(A,
|
|
815
|
-
A !==
|
|
816
|
-
o(En), s(Mn,
|
|
814
|
+
function M(A, j, X, Q) {
|
|
815
|
+
A !== j && D(A > X) && (P(), T(C(V(), A > X), !0)), o(Fn), s(Kt, j, X, A), f.start(j, function() {
|
|
816
|
+
o(En), s(Mn, j, X, A), Q && Q();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function y(A) {
|
|
820
820
|
T(W(A, !0));
|
|
821
821
|
}
|
|
822
|
-
function T(A,
|
|
822
|
+
function T(A, j) {
|
|
823
823
|
if (!e.is(sr)) {
|
|
824
|
-
var X =
|
|
824
|
+
var X = j ? A : O(A);
|
|
825
825
|
Et($, "transform", "translate" + p("X") + "(" + X + "px)"), A !== X && s(pa);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function O(A) {
|
|
829
829
|
if (e.is(Nn)) {
|
|
830
|
-
var
|
|
830
|
+
var j = _(A), X = j > t.Controller.getEnd(), Q = j < 0;
|
|
831
831
|
(Q || X) && (A = C(A, X));
|
|
832
832
|
}
|
|
833
833
|
return A;
|
|
834
834
|
}
|
|
835
|
-
function C(A,
|
|
836
|
-
var X = A - R(
|
|
837
|
-
return A -= m(Q * (Gn(dt(X) / Q) || 1)) * (
|
|
835
|
+
function C(A, j) {
|
|
836
|
+
var X = A - R(j), Q = v();
|
|
837
|
+
return A -= m(Q * (Gn(dt(X) / Q) || 1)) * (j ? 1 : -1), A;
|
|
838
838
|
}
|
|
839
839
|
function P() {
|
|
840
840
|
T(V(), !0), f.cancel();
|
|
841
841
|
}
|
|
842
842
|
function _(A) {
|
|
843
|
-
for (var
|
|
844
|
-
var te =
|
|
843
|
+
for (var j = t.Slides.get(), X = 0, Q = 1 / 0, I = 0; I < j.length; I++) {
|
|
844
|
+
var te = j[I].index, g = dt(W(te, !0) - A);
|
|
845
845
|
if (g <= Q)
|
|
846
846
|
Q = g, X = te;
|
|
847
847
|
else
|
|
@@ -849,9 +849,9 @@ function nl(e, t, n) {
|
|
|
849
849
|
}
|
|
850
850
|
return X;
|
|
851
851
|
}
|
|
852
|
-
function W(A,
|
|
852
|
+
function W(A, j) {
|
|
853
853
|
var X = m(d(A - 1) - k(A));
|
|
854
|
-
return
|
|
854
|
+
return j ? ee(X) : X;
|
|
855
855
|
}
|
|
856
856
|
function V() {
|
|
857
857
|
var A = p("left");
|
|
@@ -861,19 +861,19 @@ function nl(e, t, n) {
|
|
|
861
861
|
return n.trimSpace && e.is(An) && (A = $n(A, 0, m(v(!0) - S()))), A;
|
|
862
862
|
}
|
|
863
863
|
function k(A) {
|
|
864
|
-
var
|
|
865
|
-
return
|
|
864
|
+
var j = n.focus;
|
|
865
|
+
return j === "center" ? (S() - a(A, !0)) / 2 : +j * a(A) || 0;
|
|
866
866
|
}
|
|
867
867
|
function R(A) {
|
|
868
868
|
return W(A ? t.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
870
|
function D(A) {
|
|
871
|
-
var
|
|
872
|
-
return A ?
|
|
871
|
+
var j = m(C(V(), A));
|
|
872
|
+
return A ? j >= 0 : j <= $[p("scrollWidth")] - $t(x)[p("width")];
|
|
873
873
|
}
|
|
874
|
-
function N(A,
|
|
875
|
-
|
|
876
|
-
var X = A !== !0 && m(
|
|
874
|
+
function N(A, j) {
|
|
875
|
+
j = tr(j) ? V() : j;
|
|
876
|
+
var X = A !== !0 && m(j) < m(R(!1)), Q = A !== !1 && m(j) > m(R(!0));
|
|
877
877
|
return X || Q;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
@@ -960,7 +960,7 @@ function rl(e, t, n) {
|
|
|
960
960
|
function A(g) {
|
|
961
961
|
return I() ? nn(g, f) : _r((g >= f ? w - 1 : g) / y);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function j(g) {
|
|
964
964
|
var J = o.toIndex(g);
|
|
965
965
|
return m ? $n(J, 0, f) : J;
|
|
966
966
|
}
|
|
@@ -988,7 +988,7 @@ function rl(e, t, n) {
|
|
|
988
988
|
getIndex: Q,
|
|
989
989
|
toIndex: N,
|
|
990
990
|
toPage: A,
|
|
991
|
-
toDest:
|
|
991
|
+
toDest: j,
|
|
992
992
|
hasFocus: I,
|
|
993
993
|
isBusy: te
|
|
994
994
|
};
|
|
@@ -1004,7 +1004,7 @@ function al(e, t, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function w() {
|
|
1006
1006
|
var _ = n.arrows;
|
|
1007
|
-
_ && !(p && m) && O(), p && m && (
|
|
1007
|
+
_ && !(p && m) && O(), p && m && (Kn(x, {
|
|
1008
1008
|
prev: p,
|
|
1009
1009
|
next: m
|
|
1010
1010
|
}), Un(h, _ ? "" : "none"), Wt(h, $ = Fo + "--" + n.direction), _ && (y(), P(), $e([p, m], ar, v.id), o(aa, p, m)));
|
|
@@ -1051,7 +1051,7 @@ function ll(e, t, n) {
|
|
|
1051
1051
|
m = O.type === "focusin", w();
|
|
1052
1052
|
}), v && s(v, "click", function() {
|
|
1053
1053
|
b ? f() : F(!0);
|
|
1054
|
-
}), i([
|
|
1054
|
+
}), i([Kt, Fr, Qe], c.rewind), i(Kt, T);
|
|
1055
1055
|
}
|
|
1056
1056
|
function f() {
|
|
1057
1057
|
a() && t.Slides.isEnough() && (c.start(!n.resetProgress), m = p = b = !1, M(), o(_o));
|
|
@@ -1104,7 +1104,7 @@ var dl = 10, ul = 600, pl = 0.6, ml = 1.5, gl = 800;
|
|
|
1104
1104
|
function hl(e, t, n) {
|
|
1105
1105
|
var r = Ve(e), i = r.on, s = r.emit, o = e.state.set, c = t.Move, a = c.getPosition, u = c.getLimit, d = c.exceededLimit, S = c.translate, v = e.is(An), h, p, m = 1;
|
|
1106
1106
|
function b() {
|
|
1107
|
-
i(
|
|
1107
|
+
i(Kt, F), i([at, Qe], w);
|
|
1108
1108
|
}
|
|
1109
1109
|
function $(y, T, O, C, P) {
|
|
1110
1110
|
var _ = a();
|
|
@@ -1156,17 +1156,17 @@ function fl(e, t, n) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
function V(B) {
|
|
1158
1158
|
if (O = !1, !C) {
|
|
1159
|
-
var
|
|
1160
|
-
le(B.target) && (
|
|
1159
|
+
var K = xe(B);
|
|
1160
|
+
le(B.target) && (K || !B.button) && (S.isBusy() ? Ot(B, !0) : (P = K ? v : window, y = a.is([Fn, er]), w = null, o(P, Qr, ee, Sn), o(P, Zr, k, Sn), u.cancel(), d.cancel(), D(B)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function ee(B) {
|
|
1164
1164
|
if (a.is(br) || (a.set(br), s(ra)), B.cancelable)
|
|
1165
1165
|
if (y) {
|
|
1166
1166
|
u.translate(f + he(I(B)));
|
|
1167
|
-
var
|
|
1168
|
-
(
|
|
1169
|
-
} else
|
|
1167
|
+
var K = te(B) > ai, U = T !== (T = x());
|
|
1168
|
+
(K || U) && D(B), O = !0, s(oa), Ot(B);
|
|
1169
|
+
} else j(B) && (y = A(B), Ot(B));
|
|
1170
1170
|
}
|
|
1171
1171
|
function k(B) {
|
|
1172
1172
|
a.is(br) && (a.set(En), s(ia)), y && (N(B), Ot(B)), c(P, Qr, ee), c(P, Zr, k), y = !1;
|
|
@@ -1178,29 +1178,29 @@ function fl(e, t, n) {
|
|
|
1178
1178
|
w = F, F = B, f = $();
|
|
1179
1179
|
}
|
|
1180
1180
|
function N(B) {
|
|
1181
|
-
var
|
|
1182
|
-
h(!1), M ? S.scroll(U, 0, n.snap) : e.is(sr) ? S.go(b(uo(
|
|
1181
|
+
var K = X(B), U = Q(K), se = n.rewind && n.rewindByDrag;
|
|
1182
|
+
h(!1), M ? S.scroll(U, 0, n.snap) : e.is(sr) ? S.go(b(uo(K)) < 0 ? se ? "<" : "-" : se ? ">" : "+") : e.is(An) && T && se ? S.go(x(!0) ? ">" : "<") : S.go(S.toDest(U), !0), h(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function A(B) {
|
|
1185
|
-
var
|
|
1185
|
+
var K = n.dragMinThreshold, U = Vn(K), se = U && K.mouse || 0, ye = (U ? K.touch : +K) || 10;
|
|
1186
1186
|
return dt(I(B)) > (xe(B) ? ye : se);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function j(B) {
|
|
1189
1189
|
return dt(I(B)) > dt(I(B, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function X(B) {
|
|
1192
1192
|
if (e.is(Nn) || !T) {
|
|
1193
|
-
var
|
|
1194
|
-
if (
|
|
1195
|
-
return I(B) /
|
|
1193
|
+
var K = te(B);
|
|
1194
|
+
if (K && K < ai)
|
|
1195
|
+
return I(B) / K;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function Q(B) {
|
|
1200
1200
|
return $() + uo(B) * nn(dt(B) * (n.flickPower || 600), M ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
|
-
function I(B,
|
|
1203
|
-
return J(B,
|
|
1202
|
+
function I(B, K) {
|
|
1203
|
+
return J(B, K) - J(g(B), K);
|
|
1204
1204
|
}
|
|
1205
1205
|
function te(B) {
|
|
1206
1206
|
return co(B) - co(g(B));
|
|
@@ -1208,15 +1208,15 @@ function fl(e, t, n) {
|
|
|
1208
1208
|
function g(B) {
|
|
1209
1209
|
return F === B && w || F;
|
|
1210
1210
|
}
|
|
1211
|
-
function J(B,
|
|
1212
|
-
return (xe(B) ? B.changedTouches[0] : B)["page" + m(
|
|
1211
|
+
function J(B, K) {
|
|
1212
|
+
return (xe(B) ? B.changedTouches[0] : B)["page" + m(K ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function he(B) {
|
|
1215
1215
|
return B / (T && e.is(An) ? Ys : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function le(B) {
|
|
1218
|
-
var
|
|
1219
|
-
return !qn(B, "." + xa + ", ." + zr) && (!
|
|
1218
|
+
var K = n.noDrag;
|
|
1219
|
+
return !qn(B, "." + xa + ", ." + zr) && (!K || !qn(B, K));
|
|
1220
1220
|
}
|
|
1221
1221
|
function xe(B) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && B instanceof TouchEvent;
|
|
@@ -1247,7 +1247,7 @@ var si = "keydown";
|
|
|
1247
1247
|
function vl(e, t, n) {
|
|
1248
1248
|
var r = Ve(e), i = r.on, s = r.bind, o = r.unbind, c = e.root, a = t.Direction.resolve, u, d;
|
|
1249
1249
|
function S() {
|
|
1250
|
-
v(), i(at, h), i(at, v), i(
|
|
1250
|
+
v(), i(at, h), i(at, v), i(Kt, m);
|
|
1251
1251
|
}
|
|
1252
1252
|
function v() {
|
|
1253
1253
|
var $ = n.keyboard;
|
|
@@ -1284,7 +1284,7 @@ function xl(e, t, n) {
|
|
|
1284
1284
|
n.lazyLoad && (v(), i(Qe, v));
|
|
1285
1285
|
}
|
|
1286
1286
|
function v() {
|
|
1287
|
-
|
|
1287
|
+
jt(d), h(), a ? $() : (s(u), i(u, p), p());
|
|
1288
1288
|
}
|
|
1289
1289
|
function h() {
|
|
1290
1290
|
t.Slides.forEach(function(x) {
|
|
@@ -1316,7 +1316,7 @@ function xl(e, t, n) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return {
|
|
1318
1318
|
mount: S,
|
|
1319
|
-
destroy: De(
|
|
1319
|
+
destroy: De(jt, d),
|
|
1320
1320
|
check: p
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
@@ -1325,13 +1325,13 @@ function Cl(e, t, n) {
|
|
|
1325
1325
|
function x() {
|
|
1326
1326
|
f(), i([at, Qe, Ar], x);
|
|
1327
1327
|
var C = n.pagination;
|
|
1328
|
-
p && Un(p, C ? "" : "none"), C && (i([
|
|
1328
|
+
p && Un(p, C ? "" : "none"), C && (i([Kt, Fr, hn], O), F(), O(), s(la, {
|
|
1329
1329
|
list: b,
|
|
1330
1330
|
items: m
|
|
1331
1331
|
}, T(e.index)));
|
|
1332
1332
|
}
|
|
1333
1333
|
function f() {
|
|
1334
|
-
b && (mn(p ? an(b.children) : b), Dt(b, $),
|
|
1334
|
+
b && (mn(p ? an(b.children) : b), Dt(b, $), jt(m), b = null), r.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function F() {
|
|
1337
1337
|
var C = e.length, P = n.classes, _ = n.i18n, W = n.perPage, V = d() ? u.getEnd() + 1 : Gn(C / W);
|
|
@@ -1399,14 +1399,14 @@ function Sl(e, t, n) {
|
|
|
1399
1399
|
function c() {
|
|
1400
1400
|
s.forEach(function(p) {
|
|
1401
1401
|
p.destroy();
|
|
1402
|
-
}),
|
|
1402
|
+
}), jt(s);
|
|
1403
1403
|
}
|
|
1404
1404
|
function a() {
|
|
1405
1405
|
c(), o();
|
|
1406
1406
|
}
|
|
1407
1407
|
function u(p, m) {
|
|
1408
1408
|
var b = Ve(p);
|
|
1409
|
-
b.on(
|
|
1409
|
+
b.on(Kt, function($, x, f) {
|
|
1410
1410
|
m.go(m.is(Nn) ? f : $);
|
|
1411
1411
|
}), s.push(b);
|
|
1412
1412
|
}
|
|
@@ -1599,7 +1599,7 @@ var kl = /* @__PURE__ */ (function() {
|
|
|
1599
1599
|
return t.mount = function(r, i) {
|
|
1600
1600
|
var s = this, o = this.state, c = this.Components;
|
|
1601
1601
|
Bn(o.is([Tn, Pr]), "Already mounted!"), o.set(Tn), this._C = c, this._T = i || this._T || (this.is(sr) ? Al : Il), this._E = r || this._E;
|
|
1602
|
-
var a =
|
|
1602
|
+
var a = Kn({}, Pl, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
1605
|
return pn(a, function(u, d) {
|
|
@@ -1607,7 +1607,7 @@ var kl = /* @__PURE__ */ (function() {
|
|
|
1607
1607
|
c[d] = S, S.setup && S.setup();
|
|
1608
1608
|
}), pn(c, function(u) {
|
|
1609
1609
|
u.mount && u.mount();
|
|
1610
|
-
}), this.emit(sn), Wt(this.root,
|
|
1610
|
+
}), this.emit(sn), Wt(this.root, js), o.set(En), this.emit(mo), this;
|
|
1611
1611
|
}, t.sync = function(r) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: r
|
|
@@ -1637,7 +1637,7 @@ var kl = /* @__PURE__ */ (function() {
|
|
|
1637
1637
|
var i = this.event, s = this.state;
|
|
1638
1638
|
return s.is(Tn) ? Ve(this).on(mo, this.destroy.bind(this, r)) : (pn(this._C, function(o) {
|
|
1639
1639
|
o.destroy && o.destroy(r);
|
|
1640
|
-
}, !0), i.emit(Po), i.destroy(), r &&
|
|
1640
|
+
}, !0), i.emit(Po), i.destroy(), r && jt(this.splides), s.set(Pr)), this;
|
|
1641
1641
|
}, Es(e, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
@@ -1663,7 +1663,7 @@ No.STATES = As;
|
|
|
1663
1663
|
var li = [
|
|
1664
1664
|
[sn, "onMounted"],
|
|
1665
1665
|
[mo, "onReady"],
|
|
1666
|
-
[
|
|
1666
|
+
[Kt, "onMove"],
|
|
1667
1667
|
[Mn, "onMoved"],
|
|
1668
1668
|
[Lo, "onClick"],
|
|
1669
1669
|
[Ji, "onActive"],
|
|
@@ -1853,7 +1853,7 @@ const Bl = "SvgImage-module__svg___q3xE-", Dl = "SvgImage-module__img___VsTm-",
|
|
|
1853
1853
|
return t.startsWith("data:image/svg+xml") ? !0 : (t.split(/[?#]/)[0] ?? t).endsWith(".svg");
|
|
1854
1854
|
}, Vl = (e) => `url("${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, Vt = ({ url: e, fill: t = "#000000", hoverFill: n = "#CCCCCC", className: r = "", style: i }) => {
|
|
1855
1855
|
const [s, o] = ce(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1856
|
-
return
|
|
1856
|
+
return Ae(() => {
|
|
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
|
o(c);
|
|
@@ -1882,11 +1882,11 @@ const Bl = "SvgImage-module__svg___q3xE-", Dl = "SvgImage-module__img___VsTm-",
|
|
|
1882
1882
|
"bottom-center": de.bottomCenterAlignment,
|
|
1883
1883
|
"bottom-right": de.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
|
-
function
|
|
1885
|
+
function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
1886
1886
|
const [i, s] = ce(null), { widthSettings: o, fontSettings: c, letterSpacing: a, textAlign: u, wordSpacing: d, fontSizeLineHeight: S, textAppearance: v, color: h } = n.imageCaption ?? {}, [p, m] = ce(void 0), [b, $] = ce(null), [x, f] = ce(0), [F, w] = ce(0), { direction: M, transition: y, controls: T, pagination: O, imageCaption: C, triggers: P } = e, _ = Te(y.type), { x: W, y: V } = e.controls.offset, ee = (k) => {
|
|
1887
1887
|
i && i.go(k);
|
|
1888
1888
|
};
|
|
1889
|
-
return
|
|
1889
|
+
return Ae(() => {
|
|
1890
1890
|
if (!b) return;
|
|
1891
1891
|
const k = new ResizeObserver((R) => {
|
|
1892
1892
|
if (!i) return;
|
|
@@ -1897,7 +1897,7 @@ function Kl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
1899
|
return k.observe(b), () => k.unobserve(b);
|
|
1900
|
-
}, [b]),
|
|
1900
|
+
}, [b]), Ae(() => {
|
|
1901
1901
|
!i || _.current === y.type || (w((k) => k + 1), _.current = y.type);
|
|
1902
1902
|
}, [y.type]), /* @__PURE__ */ l("div", { className: Fe(de.wrapper, { [de.editor]: r }), ref: $, children: /* @__PURE__ */ re(
|
|
1903
1903
|
"div",
|
|
@@ -2149,8 +2149,8 @@ function Kl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2149
2149
|
function di({ color: e, className: t }) {
|
|
2150
2150
|
return /* @__PURE__ */ l("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ l("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ l("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
2151
2151
|
}
|
|
2152
|
-
const
|
|
2153
|
-
element:
|
|
2152
|
+
const Kl = {
|
|
2153
|
+
element: jl,
|
|
2154
2154
|
id: "control-slider",
|
|
2155
2155
|
name: "Slider",
|
|
2156
2156
|
preview: {
|
|
@@ -2804,15 +2804,15 @@ async function Ql(e, t, n, r) {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
function Zl({ settings: e, content: t, isEditor: n }) {
|
|
2806
2806
|
const [r, i] = ce(null), [s, o] = ce([]), [c, a] = ce(0), u = Te(0), [d, S] = ce({ x: 0, y: 0 }), [v, h] = ce(1), [p, m] = ce("none"), b = Te({ x: 0, y: 0 }), [$, x] = ce(!1), { sizeType: f, imageWidth: F, randomRangeImageWidth: w } = e.imageSize, { revealPosition: M, visible: y } = e.position, { cursorType: T, target: O, defaultCursorScale: C, defaultCursor: P, hoverCursorScale: _, hoverCursor: W } = e.cursor;
|
|
2807
|
-
|
|
2807
|
+
Ae(() => {
|
|
2808
2808
|
if (!r) return;
|
|
2809
2809
|
const k = (N, A) => {
|
|
2810
|
-
const
|
|
2810
|
+
const j = r.getBoundingClientRect(), X = N - j.left, Q = A - j.top;
|
|
2811
2811
|
if (S({ x: X, y: Q }), T === "system") {
|
|
2812
2812
|
m("none"), h(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
|
-
const I = X, te = Q, g = document.elementFromPoint(
|
|
2815
|
+
const I = X, te = Q, g = document.elementFromPoint(j.left + I, j.top + te);
|
|
2816
2816
|
if (g && g.closest("a")) {
|
|
2817
2817
|
m("none"), h(1);
|
|
2818
2818
|
return;
|
|
@@ -2838,11 +2838,11 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2838
2838
|
_,
|
|
2839
2839
|
C,
|
|
2840
2840
|
s
|
|
2841
|
-
]),
|
|
2841
|
+
]), Ae(() => {
|
|
2842
2842
|
$ || (m("none"), h(0));
|
|
2843
2843
|
}, [$]);
|
|
2844
2844
|
const V = async (k, R, D, N = {}) => {
|
|
2845
|
-
const { width: A, height:
|
|
2845
|
+
const { width: A, height: j, finalWidth: X } = await Ql(
|
|
2846
2846
|
k.image.url,
|
|
2847
2847
|
f,
|
|
2848
2848
|
F,
|
|
@@ -2850,7 +2850,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2850
2850
|
);
|
|
2851
2851
|
let Q = 0, I = 0;
|
|
2852
2852
|
M === "same" ? (Q = R / 2, I = D / 2) : (Q = N.x ?? Math.random() * R, I = N.y ?? Math.random() * D);
|
|
2853
|
-
const te = Math.min(Math.max(Q, A / 2), R - A / 2), g = Math.min(Math.max(I,
|
|
2853
|
+
const te = Math.min(Math.max(Q, A / 2), R - A / 2), g = Math.min(Math.max(I, j / 2), D - j / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: u.current++,
|
|
2856
2856
|
url: k.image.url,
|
|
@@ -2861,14 +2861,14 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2861
2861
|
width: X
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
2864
|
-
return
|
|
2864
|
+
return Ae(() => {
|
|
2865
2865
|
if (!r || t.length === 0) return;
|
|
2866
2866
|
const k = r.getBoundingClientRect(), R = k.width, D = k.height, N = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const
|
|
2868
|
+
const j = t[0], X = await V(j, R, D);
|
|
2869
2869
|
N.push(X), o(N), a(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [f, F, w, M, r]),
|
|
2871
|
+
}, [f, F, w, M, r]), Ae(() => {
|
|
2872
2872
|
y === "last One" && o((k) => k.length > 0 ? [k[k.length - 1]] : []);
|
|
2873
2873
|
}, [y]), /* @__PURE__ */ re(
|
|
2874
2874
|
"div",
|
|
@@ -2878,9 +2878,9 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2878
2878
|
if (!r) return;
|
|
2879
2879
|
const R = r.getBoundingClientRect(), D = k.clientX - R.left, N = k.clientY - R.top;
|
|
2880
2880
|
if (O === "image" && !ui(D, N, s)) return;
|
|
2881
|
-
let A = 0,
|
|
2882
|
-
M === "on Click" ? (A = D,
|
|
2883
|
-
const X = t[c], Q = await V(X, R.width, R.height, { x: A, y:
|
|
2881
|
+
let A = 0, j = 0;
|
|
2882
|
+
M === "on Click" ? (A = D, j = N) : M === "same" ? (A = R.width / 2, j = R.height / 2) : (A = Math.random() * R.width, j = Math.random() * R.height);
|
|
2883
|
+
const X = t[c], Q = await V(X, R.width, R.height, { x: A, y: j });
|
|
2884
2884
|
o((I) => y === "all" ? [...I, Q] : [Q]), a((I) => I >= t.length - 1 ? 0 : I + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => x(!0),
|
|
@@ -3421,7 +3421,7 @@ function Hc(e, t) {
|
|
|
3421
3421
|
}
|
|
3422
3422
|
const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, isEditor: s, isPreviewMode: o }) => {
|
|
3423
3423
|
const [c, a] = ce(!1), { url: u } = e.thumbnailBlock.cover;
|
|
3424
|
-
return
|
|
3424
|
+
return Ae(() => {
|
|
3425
3425
|
i === "close" && a(!1), i === "open" && a(!0);
|
|
3426
3426
|
}, [i]), /* @__PURE__ */ re(Ge, { children: [
|
|
3427
3427
|
/* @__PURE__ */ l(
|
|
@@ -3447,9 +3447,9 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3447
3447
|
)
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, Bc = ({ isOpen: e, onClose: t, content: n, lightboxStyles: r, settings: i, portalId: s, isEditor: o, metadata: c }) => {
|
|
3450
|
-
var
|
|
3451
|
-
const { widthSettings: a, fontSettings: u, letterSpacing: d, textAlign: S, wordSpacing: v, fontSizeLineHeight: h, textAppearance: p, color: m } = r.imageCaption ?? {}, [b, $] = ce(0), [x, f] = ce(0), [F, w] = ce(!1), [M, y] = ce(!1), [T, O] = ce({}), C = Te(null), P = Te(null), _ = Te(null), W = Te(!1), V = Te(null), ee = Te(null), k = Te(null), R = Te(null), D = Te(!1), N = Te(null), [A,
|
|
3452
|
-
|
|
3450
|
+
var Ie;
|
|
3451
|
+
const { widthSettings: a, fontSettings: u, letterSpacing: d, textAlign: S, wordSpacing: v, fontSizeLineHeight: h, textAppearance: p, color: m } = r.imageCaption ?? {}, [b, $] = ce(0), [x, f] = ce(0), [F, w] = ce(!1), [M, y] = ce(!1), [T, O] = ce({}), C = Te(null), P = Te(null), _ = Te(null), W = Te(!1), V = Te(null), ee = Te(null), k = Te(null), R = Te(null), D = Te(!1), N = Te(null), [A, j] = ce(!1), { appear: X, triggers: Q, slider: I, thumbnail: te, controls: g, area: J, caption: he, layout: le } = i.lightboxBlock, { appearClass: xe, backdropAppearClass: ne, backdropDisappearClass: ue, disappearClass: B } = Hc(X.type, X.direction), K = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
|
+
Ae(() => {
|
|
3453
3453
|
const H = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
3455
3455
|
var E, z;
|
|
@@ -3461,15 +3461,15 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3461
3461
|
return window.addEventListener("ArticleEditor.Layout:change", H), window.addEventListener("ArticleEditor.ComponentContent:change", oe), () => {
|
|
3462
3462
|
window.removeEventListener("ArticleEditor.Layout:change", H), window.removeEventListener("ArticleEditor.ComponentContent:change", oe);
|
|
3463
3463
|
};
|
|
3464
|
-
}, []),
|
|
3464
|
+
}, []), Ae(() => {
|
|
3465
3465
|
if (!e || !te.isActive) {
|
|
3466
|
-
|
|
3466
|
+
j(!1);
|
|
3467
3467
|
return;
|
|
3468
3468
|
}
|
|
3469
3469
|
const H = N.current;
|
|
3470
3470
|
if (!H) return;
|
|
3471
3471
|
const oe = () => {
|
|
3472
|
-
I.direction === "horiz" ?
|
|
3472
|
+
I.direction === "horiz" ? j(H.scrollWidth > H.clientWidth) : j(H.scrollHeight > H.clientHeight);
|
|
3473
3473
|
};
|
|
3474
3474
|
oe();
|
|
3475
3475
|
const E = new ResizeObserver(oe);
|
|
@@ -3523,7 +3523,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3523
3523
|
const oe = H.target;
|
|
3524
3524
|
(oe.classList.contains(Z.thumbsWrapper) || oe.classList.contains(Z.thumbsContainer)) && ye(H);
|
|
3525
3525
|
};
|
|
3526
|
-
|
|
3526
|
+
Ae(() => {
|
|
3527
3527
|
if (!e) return;
|
|
3528
3528
|
const H = (oe) => {
|
|
3529
3529
|
var E, z;
|
|
@@ -3540,18 +3540,18 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3540
3540
|
return window.addEventListener("keydown", H), () => {
|
|
3541
3541
|
window.removeEventListener("keydown", H);
|
|
3542
3542
|
};
|
|
3543
|
-
}, [e, U, n.length]),
|
|
3543
|
+
}, [e, U, n.length]), Ae(() => {
|
|
3544
3544
|
if (e) {
|
|
3545
|
-
if ($(0), f((oe) => oe + 1), W.current = !1, w(!1), y(!1), O({}), !
|
|
3546
|
-
const H = new CustomEvent("page-overlay", { detail: { itemId:
|
|
3545
|
+
if ($(0), f((oe) => oe + 1), W.current = !1, w(!1), y(!1), O({}), !K) return;
|
|
3546
|
+
const H = new CustomEvent("page-overlay", { detail: { itemId: K } });
|
|
3547
3547
|
window.dispatchEvent(H);
|
|
3548
3548
|
}
|
|
3549
3549
|
return () => {
|
|
3550
3550
|
V.current && ee.current && (V.current.removeEventListener("animationend", ee.current), ee.current = null), y(!1);
|
|
3551
3551
|
};
|
|
3552
|
-
}, [e,
|
|
3552
|
+
}, [e, K]), Ae(() => {
|
|
3553
3553
|
P.current !== null && P.current !== I.type && f((H) => H + 1), P.current = I.type;
|
|
3554
|
-
}, [I.type]),
|
|
3554
|
+
}, [I.type]), Ae(() => {
|
|
3555
3555
|
if (!e) return;
|
|
3556
3556
|
const H = document.body.style.overflow, oe = window.matchMedia("(max-width: 768px)").matches, E = gi(J.color);
|
|
3557
3557
|
document.body.style.overflow = "hidden", y(!1);
|
|
@@ -3566,7 +3566,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3566
3566
|
return document.addEventListener("touchmove", q, { passive: !1 }), () => {
|
|
3567
3567
|
document.body.style.overflow = H, document.removeEventListener("touchmove", q), V.current && k.current && (V.current.removeEventListener("animationend", k.current), k.current = null), y(!1);
|
|
3568
3568
|
};
|
|
3569
|
-
}, [e, o, J.color, I.type]),
|
|
3569
|
+
}, [e, o, J.color, I.type]), Ae(() => {
|
|
3570
3570
|
if (!e) return;
|
|
3571
3571
|
const H = (oe) => {
|
|
3572
3572
|
var z, q;
|
|
@@ -3611,7 +3611,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3611
3611
|
};
|
|
3612
3612
|
}, [e, U, b, n]);
|
|
3613
3613
|
const Se = (I.type === "scale" || I.type === "fade") && I.direction === "vert" && Q.type === "drag";
|
|
3614
|
-
|
|
3614
|
+
Ae(() => {
|
|
3615
3615
|
var be, He;
|
|
3616
3616
|
if (!e || !Se || !((He = (be = C.current) == null ? void 0 : be.splide) != null && He.root)) return;
|
|
3617
3617
|
const H = C.current.splide.root, oe = 30, E = (ae, Ce) => {
|
|
@@ -3799,7 +3799,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3799
3799
|
const H = mr(J.closeIconAlign, J.closeIconOffset, o), oe = `scale(${J.closeIconScale})`, E = H.transform ? `${H.transform} ${oe}` : oe;
|
|
3800
3800
|
return /* @__PURE__ */ l("button", { className: Z.closeButton, style: { ...H, transform: E }, onClick: U, "aria-label": "Close lightbox", children: /* @__PURE__ */ l(Vt, { url: J.closeIconUrl, fill: J.closeIconColor ?? "#000000", hoverFill: J.closeIconHover ?? "#cccccc" }) });
|
|
3801
3801
|
})(),
|
|
3802
|
-
he && he.isActive && r.imageCaption && ((
|
|
3802
|
+
he && he.isActive && r.imageCaption && ((Ie = n[b]) == null ? void 0 : Ie.imageCaption) && /* @__PURE__ */ l(
|
|
3803
3803
|
"div",
|
|
3804
3804
|
{
|
|
3805
3805
|
className: Z.caption,
|
|
@@ -5228,7 +5228,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5228
5228
|
inputFontSize: D,
|
|
5229
5229
|
inputLineHeight: N,
|
|
5230
5230
|
inputLetterSpacing: A,
|
|
5231
|
-
inputWordSpacing:
|
|
5231
|
+
inputWordSpacing: j,
|
|
5232
5232
|
inputTextAppearance: X,
|
|
5233
5233
|
buttonFontSettings: Q,
|
|
5234
5234
|
buttonFontSize: I,
|
|
@@ -5241,14 +5241,14 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5241
5241
|
labelLineHeight: ne,
|
|
5242
5242
|
labelLetterSpacing: ue,
|
|
5243
5243
|
labelWordSpacing: B,
|
|
5244
|
-
labelTextAppearance:
|
|
5244
|
+
labelTextAppearance: K,
|
|
5245
5245
|
statusFontSettings: U,
|
|
5246
5246
|
statusFontSize: se,
|
|
5247
5247
|
statusLineHeight: ye,
|
|
5248
5248
|
statusLetterSpacing: Pe,
|
|
5249
5249
|
statusWordSpacing: Se,
|
|
5250
5250
|
statusTextAppearance: Ee,
|
|
5251
|
-
successMessage:
|
|
5251
|
+
successMessage: Ie,
|
|
5252
5252
|
errorMessage: H,
|
|
5253
5253
|
stateOverrides: oe
|
|
5254
5254
|
} = e, E = u === "B", z = S.slice(0, Math.min(d, S.length)), q = {
|
|
@@ -5260,7 +5260,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5260
5260
|
fontSize: D ?? 0.01,
|
|
5261
5261
|
lineHeight: N,
|
|
5262
5262
|
letterSpacing: A ?? 0,
|
|
5263
|
-
wordSpacing:
|
|
5263
|
+
wordSpacing: j ?? 0,
|
|
5264
5264
|
textAppearance: X,
|
|
5265
5265
|
color: y
|
|
5266
5266
|
}, G = wt(ot(q, t)), ie = L(F ?? 0, t), me = L(
|
|
@@ -5304,7 +5304,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5304
5304
|
lineHeight: ne,
|
|
5305
5305
|
letterSpacing: ue ?? 0,
|
|
5306
5306
|
wordSpacing: B ?? 0,
|
|
5307
|
-
textAppearance:
|
|
5307
|
+
textAppearance: K,
|
|
5308
5308
|
color: W
|
|
5309
5309
|
}, Ce = ot(ae, t), We = {
|
|
5310
5310
|
fontSettings: {
|
|
@@ -5318,7 +5318,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5318
5318
|
wordSpacing: Se ?? 0,
|
|
5319
5319
|
textAppearance: Ee,
|
|
5320
5320
|
color: V
|
|
5321
|
-
}, Ne = wt(ot(We, t)),
|
|
5321
|
+
}, Ne = wt(ot(We, t)), je = Jn(a, {
|
|
5322
5322
|
inputColor: M,
|
|
5323
5323
|
inputTextColor: y,
|
|
5324
5324
|
inputBorderColor: T,
|
|
@@ -5329,7 +5329,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5329
5329
|
labelTextColor: W,
|
|
5330
5330
|
successColor: V,
|
|
5331
5331
|
errorColor: ee
|
|
5332
|
-
}, qc,
|
|
5332
|
+
}, qc, jc, oe), [st, bt] = ce(
|
|
5333
5333
|
() => Object.fromEntries(z.map((we) => [we.name, ""]))
|
|
5334
5334
|
), [xt, Pt] = ce("idle"), [Mt, Ct] = ce(null), Ye = s === "success" ? "success" : s === "error" ? "error" : xt, ge = s === "error" ? H : Mt, ze = s === "filled", qe = Oe(() => {
|
|
5335
5335
|
if (!ze) return st;
|
|
@@ -5342,10 +5342,10 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5342
5342
|
}, On = async (we) => {
|
|
5343
5343
|
if (we.preventDefault(), !c) return;
|
|
5344
5344
|
const rt = Object.fromEntries(
|
|
5345
|
-
z.map((
|
|
5345
|
+
z.map((Ke) => {
|
|
5346
5346
|
var ut;
|
|
5347
|
-
return [
|
|
5348
|
-
}).filter(([,
|
|
5347
|
+
return [Ke.name, ((ut = st[Ke.name]) == null ? void 0 : ut.trim()) ?? ""];
|
|
5348
|
+
}).filter(([, Ke]) => Ke)
|
|
5349
5349
|
);
|
|
5350
5350
|
if (!kt) {
|
|
5351
5351
|
Pt("error"), Ct("No integrations were found for this form.");
|
|
@@ -5359,21 +5359,21 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5359
5359
|
}
|
|
5360
5360
|
Pt("submitting"), Ct(null);
|
|
5361
5361
|
try {
|
|
5362
|
-
const
|
|
5362
|
+
const Ke = await fetch(kt, {
|
|
5363
5363
|
method: "POST",
|
|
5364
5364
|
headers: { "Content-Type": "application/json" },
|
|
5365
5365
|
body: JSON.stringify(rt)
|
|
5366
5366
|
});
|
|
5367
|
-
if (!
|
|
5368
|
-
const ut = await
|
|
5369
|
-
throw new Error(ut || `Request failed: ${
|
|
5367
|
+
if (!Ke.ok) {
|
|
5368
|
+
const ut = await Ke.text();
|
|
5369
|
+
throw new Error(ut || `Request failed: ${Ke.status}`);
|
|
5370
5370
|
}
|
|
5371
5371
|
Pt("success"), bt(Object.fromEntries(z.map((ut) => [ut.name, ""])));
|
|
5372
|
-
} catch (
|
|
5373
|
-
Pt("error"), Ct(
|
|
5372
|
+
} catch (Ke) {
|
|
5373
|
+
Pt("error"), Ct(Ke instanceof Error ? Ke.message : "Something went wrong");
|
|
5374
5374
|
}
|
|
5375
5375
|
};
|
|
5376
|
-
return /* @__PURE__ */ re("div", { className: `${a}-wrapper ${a}-type-${u} ${It}`.trim(), style:
|
|
5376
|
+
return /* @__PURE__ */ re("div", { className: `${a}-wrapper ${a}-type-${u} ${It}`.trim(), style: je, children: [
|
|
5377
5377
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: zc(a) } }),
|
|
5378
5378
|
/* @__PURE__ */ re(
|
|
5379
5379
|
"form",
|
|
@@ -5475,7 +5475,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5475
5475
|
{
|
|
5476
5476
|
className: `${a}-success`,
|
|
5477
5477
|
style: { ...Ne },
|
|
5478
|
-
children:
|
|
5478
|
+
children: Ie
|
|
5479
5479
|
}
|
|
5480
5480
|
),
|
|
5481
5481
|
Ye === "error" && /* @__PURE__ */ l(
|
|
@@ -5500,7 +5500,7 @@ const qc = {
|
|
|
5500
5500
|
labelTextColor: "label-text-color",
|
|
5501
5501
|
successColor: "success-color",
|
|
5502
5502
|
errorColor: "error-color"
|
|
5503
|
-
},
|
|
5503
|
+
}, jc = ["hover", "focus", "filled", "success", "error"], Kc = `import React, { useMemo, useState } from 'react';
|
|
5504
5504
|
import { CommonComponentProps } from '../props';
|
|
5505
5505
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
5506
5506
|
import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
|
|
@@ -6772,7 +6772,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6772
6772
|
}
|
|
6773
6773
|
},
|
|
6774
6774
|
schema: Yc,
|
|
6775
|
-
sourceCode:
|
|
6775
|
+
sourceCode: Kc
|
|
6776
6776
|
};
|
|
6777
6777
|
function fr(e) {
|
|
6778
6778
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
@@ -7003,7 +7003,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7003
7003
|
stateOverrides: D,
|
|
7004
7004
|
inputPadding: N,
|
|
7005
7005
|
buttonPadding: A,
|
|
7006
|
-
successMessage:
|
|
7006
|
+
successMessage: j = "Thanks for subscribing!",
|
|
7007
7007
|
errorMessage: X = "Please, fill all required fields."
|
|
7008
7008
|
} = e, Q = c.slice(0, Math.min(d, c.length)), [I, te] = ce(
|
|
7009
7009
|
() => Object.fromEntries(Q.map((ae) => [ae.name, ""]))
|
|
@@ -7013,7 +7013,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7013
7013
|
for (const Ce of Q)
|
|
7014
7014
|
(I[Ce.name] ?? "").trim().length > 0 || (ae = ae ?? { ...I }, ae[Ce.name] = "Filled");
|
|
7015
7015
|
return ae ?? I;
|
|
7016
|
-
}, [ue, I, Q]),
|
|
7016
|
+
}, [ue, I, Q]), K = xe === "error" ? Lr(Q, B) : null, U = i && i !== "default" ? `${s}-state-${i}` : "", se = Q.some((ae) => (B[ae.name] ?? "").trim().length > 0), ye = U !== `${s}-state-filled` && se ? `${s}-state-filled` : "", Pe = `${U} ${ye}`.trim(), Se = r == null ? void 0 : r.submitUrl, Ee = u ?? "", Ie = (a == null ? void 0 : a.icon) ?? "", H = (a == null ? void 0 : a.mode) === "On", oe = Ee || "Submit", E = {
|
|
7017
7017
|
fontSettings: {
|
|
7018
7018
|
fontFamily: S,
|
|
7019
7019
|
fontWeight: (v == null ? void 0 : v.fontWeight) ?? 400,
|
|
@@ -7066,8 +7066,8 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7066
7066
|
if (ae.preventDefault(), !o) return;
|
|
7067
7067
|
const Ce = Object.fromEntries(
|
|
7068
7068
|
Q.map((Ne) => {
|
|
7069
|
-
var
|
|
7070
|
-
return [Ne.name, ((
|
|
7069
|
+
var je;
|
|
7070
|
+
return [Ne.name, ((je = I[Ne.name]) == null ? void 0 : je.trim()) ?? ""];
|
|
7071
7071
|
}).filter(([, Ne]) => Ne)
|
|
7072
7072
|
);
|
|
7073
7073
|
if (!Se) {
|
|
@@ -7088,10 +7088,10 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7088
7088
|
body: JSON.stringify(Ce)
|
|
7089
7089
|
});
|
|
7090
7090
|
if (!Ne.ok) {
|
|
7091
|
-
const
|
|
7092
|
-
throw new Error(
|
|
7091
|
+
const je = await Ne.text();
|
|
7092
|
+
throw new Error(je || `Request failed: ${Ne.status}`);
|
|
7093
7093
|
}
|
|
7094
|
-
J("success"), te(Object.fromEntries(Q.map((
|
|
7094
|
+
J("success"), te(Object.fromEntries(Q.map((je) => [je.name, ""])));
|
|
7095
7095
|
} catch (Ne) {
|
|
7096
7096
|
J("error"), le(Ne instanceof Error ? Ne.message : "Something went wrong");
|
|
7097
7097
|
}
|
|
@@ -7152,10 +7152,10 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7152
7152
|
paddingBottom: L(A.bottom, t),
|
|
7153
7153
|
pointerEvents: o ? "auto" : void 0
|
|
7154
7154
|
},
|
|
7155
|
-
children: g === "submitting" ? "..." : H ?
|
|
7155
|
+
children: g === "submitting" ? "..." : H ? Ie && /* @__PURE__ */ l(
|
|
7156
7156
|
Vt,
|
|
7157
7157
|
{
|
|
7158
|
-
url:
|
|
7158
|
+
url: Ie,
|
|
7159
7159
|
className: `${s}-submitBtnIcon`,
|
|
7160
7160
|
style: { maxWidth: L(V ?? 0, t) },
|
|
7161
7161
|
fill: `var(--${s}-button-text-color)`,
|
|
@@ -7172,7 +7172,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7172
7172
|
{
|
|
7173
7173
|
className: `${s}-success`,
|
|
7174
7174
|
style: { ...me },
|
|
7175
|
-
children:
|
|
7175
|
+
children: j
|
|
7176
7176
|
}
|
|
7177
7177
|
),
|
|
7178
7178
|
xe === "error" && /* @__PURE__ */ l(
|
|
@@ -7181,7 +7181,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7181
7181
|
className: `${s}-error`,
|
|
7182
7182
|
style: { ...me },
|
|
7183
7183
|
role: "alert",
|
|
7184
|
-
children:
|
|
7184
|
+
children: K ?? ne ?? X
|
|
7185
7185
|
}
|
|
7186
7186
|
)
|
|
7187
7187
|
] });
|
|
@@ -8516,45 +8516,45 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8516
8516
|
}
|
|
8517
8517
|
);
|
|
8518
8518
|
}, hd = ({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i }) => {
|
|
8519
|
-
const { prefix: s } = on(), o = Oe(() => sd(s), [s]), { speed: c, direction: a, pauseOnHover: u, gap: d, imageMaxWidth: S, imageMaxHeight: v, imageFit: h, hoverEffect: p } = e, m = !!i, b = !n || !!r, $ = b && p !== "off" && p !== "randomize" ? `${s}-image-hover-${p}` : void 0, x = n ? !!r : !0, F = ((t == null ? void 0 : t.length) ?? 0) > 0 && (x || !!n), w = Math.max(0, c) * ld, M = (
|
|
8519
|
+
const { prefix: s } = on(), o = Oe(() => sd(s), [s]), { speed: c, direction: a, pauseOnHover: u, gap: d, imageMaxWidth: S, imageMaxHeight: v, imageFit: h, hoverEffect: p } = e, m = !!i, b = !n || !!r, $ = b && p !== "off" && p !== "randomize" ? `${s}-image-hover-${p}` : void 0, x = n ? !!r : !0, F = ((t == null ? void 0 : t.length) ?? 0) > 0 && (x || !!n), w = Math.max(0, c) * ld, M = (K) => L(K, n ?? !1), y = Te(null), T = Te(null), O = Te(null), [C, P] = ce(0), [_, W] = ce(0), V = x && u === "on", [ee, k] = ce(!1), [R, D] = ce({}), N = Te(R);
|
|
8520
8520
|
N.current = R;
|
|
8521
|
-
const A = Te(null),
|
|
8521
|
+
const A = Te(null), j = Te(0), X = Te(null), Q = Oe(() => (t ?? []).map((K) => {
|
|
8522
8522
|
var U;
|
|
8523
|
-
return ((U =
|
|
8523
|
+
return ((U = K.image) == null ? void 0 : U.url) ?? "";
|
|
8524
8524
|
}).join("\0"), [t]), [I, te] = ce(to), g = Oe(() => {
|
|
8525
|
-
const
|
|
8526
|
-
return !x ||
|
|
8525
|
+
const K = t ?? [];
|
|
8526
|
+
return !x || K.length === 0 ? K : ud(K, I);
|
|
8527
8527
|
}, [t, x, I]), J = Oe(
|
|
8528
|
-
() => g.filter((
|
|
8528
|
+
() => g.filter((K) => {
|
|
8529
8529
|
var U;
|
|
8530
|
-
return !!((U =
|
|
8530
|
+
return !!((U = K.image) != null && U.url);
|
|
8531
8531
|
}).length,
|
|
8532
8532
|
[g]
|
|
8533
8533
|
), he = F ? dd : 1;
|
|
8534
8534
|
vt(() => {
|
|
8535
|
-
|
|
8536
|
-
}, [Q]),
|
|
8535
|
+
j.current = 0, D({}), A.current = null, te(to), P(0);
|
|
8536
|
+
}, [Q]), Ae(() => {
|
|
8537
8537
|
if (!b || p !== "randomize") return;
|
|
8538
|
-
const
|
|
8539
|
-
if (!
|
|
8538
|
+
const K = y.current;
|
|
8539
|
+
if (!K) return;
|
|
8540
8540
|
const U = (Se) => {
|
|
8541
8541
|
D((Ee) => {
|
|
8542
|
-
let
|
|
8542
|
+
let Ie = null;
|
|
8543
8543
|
for (const H of Se)
|
|
8544
|
-
H in Ee && (md(
|
|
8545
|
-
return
|
|
8544
|
+
H in Ee && (md(K, H) || (Ie || (Ie = { ...Ee }), delete Ie[H]));
|
|
8545
|
+
return Ie ?? Ee;
|
|
8546
8546
|
});
|
|
8547
8547
|
}, se = new IntersectionObserver((Se) => {
|
|
8548
8548
|
const Ee = /* @__PURE__ */ new Set();
|
|
8549
|
-
for (const
|
|
8550
|
-
const H =
|
|
8549
|
+
for (const Ie of Se) {
|
|
8550
|
+
const H = Ie.target.dataset.marqueeItemIndex, oe = H !== void 0 ? Number(H) : NaN;
|
|
8551
8551
|
Number.isNaN(oe) || Ee.add(oe);
|
|
8552
8552
|
}
|
|
8553
8553
|
Ee.size > 0 && U(Ee);
|
|
8554
|
-
}, { root:
|
|
8554
|
+
}, { root: K, threshold: 0 });
|
|
8555
8555
|
Object.keys(R).forEach((Se) => {
|
|
8556
8556
|
const Ee = Number(Se);
|
|
8557
|
-
|
|
8557
|
+
K.querySelectorAll(`[data-marquee-item-index="${Ee}"]`).forEach((Ie) => se.observe(Ie));
|
|
8558
8558
|
});
|
|
8559
8559
|
let ye = 0;
|
|
8560
8560
|
const Pe = () => {
|
|
@@ -8566,13 +8566,13 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8566
8566
|
};
|
|
8567
8567
|
}, [p, R, b]), vt(() => {
|
|
8568
8568
|
if (!F) return;
|
|
8569
|
-
const
|
|
8570
|
-
if (!
|
|
8569
|
+
const K = y.current, U = O.current;
|
|
8570
|
+
if (!K || !U) return;
|
|
8571
8571
|
let se = 0;
|
|
8572
8572
|
const ye = () => {
|
|
8573
|
-
const Ee =
|
|
8574
|
-
if (A.current =
|
|
8575
|
-
const E =
|
|
8573
|
+
const Ee = K.getBoundingClientRect().width, Ie = U.getBoundingClientRect().width, H = A.current, oe = typeof H == "number" && Math.abs(H - Ie) <= 0.25;
|
|
8574
|
+
if (A.current = Ie, x && Ie > 0 && I > 0) {
|
|
8575
|
+
const E = Ie / I;
|
|
8576
8576
|
if (E > 0 && Ee > 0) {
|
|
8577
8577
|
const z = Math.max(
|
|
8578
8578
|
to,
|
|
@@ -8584,24 +8584,24 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8584
8584
|
}
|
|
8585
8585
|
}
|
|
8586
8586
|
}
|
|
8587
|
-
if (
|
|
8588
|
-
P(
|
|
8587
|
+
if (Ie > 0 && C <= 0) {
|
|
8588
|
+
P(Ie);
|
|
8589
8589
|
return;
|
|
8590
8590
|
}
|
|
8591
|
-
oe &&
|
|
8591
|
+
oe && Ie !== C ? P(Ie) : !oe && C <= 0 && (cancelAnimationFrame(se), se = requestAnimationFrame(ye));
|
|
8592
8592
|
}, Pe = () => {
|
|
8593
8593
|
cancelAnimationFrame(se), se = requestAnimationFrame(ye);
|
|
8594
8594
|
};
|
|
8595
8595
|
X.current = Pe, Pe();
|
|
8596
8596
|
const Se = new ResizeObserver(Pe);
|
|
8597
|
-
return Se.observe(
|
|
8597
|
+
return Se.observe(K), Se.observe(U), () => {
|
|
8598
8598
|
X.current = null, cancelAnimationFrame(se), Se.disconnect();
|
|
8599
8599
|
};
|
|
8600
8600
|
}, [x, F, C, Q, I]), vt(() => {
|
|
8601
|
-
const
|
|
8602
|
-
if (!F || !
|
|
8601
|
+
const K = T.current;
|
|
8602
|
+
if (!F || !K) return;
|
|
8603
8603
|
const U = C > 0 ? C : 0, se = U > 0 && w > 0 ? U / w * 1e3 : 0, ye = `${Math.max(0, se) / 1e3}s`;
|
|
8604
|
-
|
|
8604
|
+
K.style.setProperty("--marquee-distance", `${U}px`), K.style.setProperty("--marquee-duration", ye);
|
|
8605
8605
|
}, [x, F, w, C]), vt(() => {
|
|
8606
8606
|
if (!F) {
|
|
8607
8607
|
W(0);
|
|
@@ -8611,41 +8611,41 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8611
8611
|
W(0);
|
|
8612
8612
|
return;
|
|
8613
8613
|
}
|
|
8614
|
-
const
|
|
8615
|
-
if (!
|
|
8614
|
+
const K = T.current;
|
|
8615
|
+
if (!K) return;
|
|
8616
8616
|
const U = () => {
|
|
8617
|
-
const ye =
|
|
8617
|
+
const ye = K.getBoundingClientRect().height;
|
|
8618
8618
|
W(ye > 0 ? ye : 0);
|
|
8619
8619
|
};
|
|
8620
8620
|
U();
|
|
8621
8621
|
const se = new ResizeObserver(U);
|
|
8622
|
-
return se.observe(
|
|
8622
|
+
return se.observe(K), () => se.disconnect();
|
|
8623
8623
|
}, [F, he, g, n, d, S, v, C, h, R]);
|
|
8624
8624
|
const le = () => {
|
|
8625
8625
|
V && k(!0);
|
|
8626
8626
|
}, xe = () => {
|
|
8627
8627
|
V && k(!1);
|
|
8628
8628
|
}, ne = yt(() => {
|
|
8629
|
-
var
|
|
8630
|
-
|
|
8629
|
+
var K;
|
|
8630
|
+
j.current = Math.min(
|
|
8631
8631
|
J,
|
|
8632
|
-
|
|
8633
|
-
), (
|
|
8634
|
-
}, [J]), ue = yt((
|
|
8632
|
+
j.current + 1
|
|
8633
|
+
), (K = X.current) == null || K.call(X);
|
|
8634
|
+
}, [J]), ue = yt((K, U) => {
|
|
8635
8635
|
D((se) => {
|
|
8636
|
-
const ye = se[
|
|
8636
|
+
const ye = se[K] ?? U, Pe = (t ?? []).filter((Ee) => Ee !== ye);
|
|
8637
8637
|
if (Pe.length === 0) return se;
|
|
8638
8638
|
const Se = Pe[Math.floor(Math.random() * Pe.length)];
|
|
8639
|
-
return { ...se, [
|
|
8639
|
+
return { ...se, [K]: Se };
|
|
8640
8640
|
});
|
|
8641
|
-
}, [t]), B = (
|
|
8642
|
-
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ??
|
|
8641
|
+
}, [t]), B = (K, U, se, ye) => {
|
|
8642
|
+
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ?? K : K, Se = `max(${M(d)}, ${cd}px)`, Ee = `calc(-0.5 * (${Se} + ${M(d)}))`;
|
|
8643
8643
|
return /* @__PURE__ */ re(
|
|
8644
8644
|
"div",
|
|
8645
8645
|
{
|
|
8646
8646
|
className: `${s}-marquee-card`,
|
|
8647
8647
|
"data-marquee-item-index": se,
|
|
8648
|
-
onMouseEnter: b && p === "randomize" && h.display === "Cover" ? () => ue(se,
|
|
8648
|
+
onMouseEnter: b && p === "randomize" && h.display === "Cover" ? () => ue(se, K) : void 0,
|
|
8649
8649
|
children: [
|
|
8650
8650
|
/* @__PURE__ */ l(
|
|
8651
8651
|
gd,
|
|
@@ -8683,7 +8683,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8683
8683
|
);
|
|
8684
8684
|
};
|
|
8685
8685
|
if (F) {
|
|
8686
|
-
const
|
|
8686
|
+
const K = x ? V && ee ? "paused" : "running" : "paused";
|
|
8687
8687
|
return /* @__PURE__ */ re(
|
|
8688
8688
|
"div",
|
|
8689
8689
|
{
|
|
@@ -8701,7 +8701,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8701
8701
|
"data-direction": a,
|
|
8702
8702
|
onMouseEnter: le,
|
|
8703
8703
|
onMouseLeave: xe,
|
|
8704
|
-
style: { "--marquee-play-state":
|
|
8704
|
+
style: { "--marquee-play-state": K },
|
|
8705
8705
|
children: Array.from({ length: he }, (U, se) => /* @__PURE__ */ l(
|
|
8706
8706
|
"div",
|
|
8707
8707
|
{
|
|
@@ -8734,7 +8734,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8734
8734
|
style: { gap: M(d), transform: "none" },
|
|
8735
8735
|
"aria-label": "Marquee",
|
|
8736
8736
|
children: t == null ? void 0 : t.map(
|
|
8737
|
-
(
|
|
8737
|
+
(K, U) => B(K, 0, U)
|
|
8738
8738
|
)
|
|
8739
8739
|
},
|
|
8740
8740
|
"marquee-static"
|
|
@@ -9688,7 +9688,7 @@ function fi(e) {
|
|
|
9688
9688
|
`;
|
|
9689
9689
|
}
|
|
9690
9690
|
const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i }) => {
|
|
9691
|
-
const { prefix: s } = on(), { align: o, speed: c, direction: a, pauseOnHover: u, gap: d, cardWidth: S, corners: v, stroke: h, strokeColor: p, bgColor: m, padding: b, logoMarginTop: $, logoWidth: x, logoHeight: f, captionMarginTop: F } = e, w = !!i, M = ((t == null ? void 0 : t.length) ?? 0) > 0, y = c > 0 && (!n || r), T = M && (y || n), O = Math.max(0, c) * bd, C = (E) => L(E, n ?? !1), P = Te(null), _ = Te(null), W = Te(null), [V, ee] = ce(0), [k, R] = ce(0), [D, N] = ce(0), A = y && u === "on", [
|
|
9691
|
+
const { prefix: s } = on(), { align: o, speed: c, direction: a, pauseOnHover: u, gap: d, cardWidth: S, corners: v, stroke: h, strokeColor: p, bgColor: m, padding: b, logoMarginTop: $, logoWidth: x, logoHeight: f, captionMarginTop: F } = e, w = !!i, M = ((t == null ? void 0 : t.length) ?? 0) > 0, y = c > 0 && (!n || r), T = M && (y || n), O = Math.max(0, c) * bd, C = (E) => L(E, n ?? !1), P = Te(null), _ = Te(null), W = Te(null), [V, ee] = ce(0), [k, R] = ce(0), [D, N] = ce(0), A = y && u === "on", [j, X] = ce(!1), Q = Te(null), [I, te] = ce(0), [g, J] = ce(0), he = Te(null), le = (E) => {
|
|
9692
9692
|
var q, G, ie, me, Me;
|
|
9693
9693
|
return {
|
|
9694
9694
|
fontSettings: {
|
|
@@ -9760,7 +9760,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9760
9760
|
G.disconnect();
|
|
9761
9761
|
};
|
|
9762
9762
|
}, [T, B, t, n, d, S, b, h, v, x, f, I, g]);
|
|
9763
|
-
const
|
|
9763
|
+
const K = () => {
|
|
9764
9764
|
A && X(!0);
|
|
9765
9765
|
}, U = () => {
|
|
9766
9766
|
A && X(!1);
|
|
@@ -9936,7 +9936,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9936
9936
|
q.disconnect();
|
|
9937
9937
|
};
|
|
9938
9938
|
}, [ue, Ee, t, Se]);
|
|
9939
|
-
const
|
|
9939
|
+
const Ie = ue ? { textMinHeightPx: I, captionMinHeightPx: g } : void 0, H = ue ? /* @__PURE__ */ l(
|
|
9940
9940
|
"div",
|
|
9941
9941
|
{
|
|
9942
9942
|
ref: Q,
|
|
@@ -9965,7 +9965,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9965
9965
|
willChange: "transform"
|
|
9966
9966
|
},
|
|
9967
9967
|
children: [
|
|
9968
|
-
Se(E, `card-${z}`,
|
|
9968
|
+
Se(E, `card-${z}`, Ie),
|
|
9969
9969
|
w && /* @__PURE__ */ l(
|
|
9970
9970
|
"div",
|
|
9971
9971
|
{
|
|
@@ -9987,7 +9987,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9987
9987
|
z
|
|
9988
9988
|
);
|
|
9989
9989
|
if (T) {
|
|
9990
|
-
const E = y ? A &&
|
|
9990
|
+
const E = y ? A && j ? "paused" : "running" : "paused";
|
|
9991
9991
|
return /* @__PURE__ */ re(
|
|
9992
9992
|
"div",
|
|
9993
9993
|
{
|
|
@@ -10008,7 +10008,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10008
10008
|
ref: _,
|
|
10009
10009
|
className: `${s}-marquee-track`,
|
|
10010
10010
|
"data-direction": a,
|
|
10011
|
-
onMouseEnter:
|
|
10011
|
+
onMouseEnter: K,
|
|
10012
10012
|
onMouseLeave: U,
|
|
10013
10013
|
style: {
|
|
10014
10014
|
display: "flex",
|
|
@@ -11316,16 +11316,16 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11316
11316
|
return "left";
|
|
11317
11317
|
}
|
|
11318
11318
|
}, [a]);
|
|
11319
|
-
|
|
11319
|
+
Ae(() => {
|
|
11320
11320
|
F(0), M(null), T(!1);
|
|
11321
11321
|
}, [o.length]);
|
|
11322
11322
|
const _ = o[f], W = w === null ? null : o[w], V = (ne) => {
|
|
11323
|
-
var B,
|
|
11323
|
+
var B, K, U, se, ye;
|
|
11324
11324
|
return {
|
|
11325
11325
|
fontSettings: {
|
|
11326
11326
|
fontFamily: (e == null ? void 0 : e[`${ne}FontFamily`]) ?? "Arial",
|
|
11327
11327
|
fontWeight: ((B = e == null ? void 0 : e[`${ne}FontSettings`]) == null ? void 0 : B.fontWeight) ?? 400,
|
|
11328
|
-
fontStyle: ((
|
|
11328
|
+
fontStyle: ((K = e == null ? void 0 : e[`${ne}FontSettings`]) == null ? void 0 : K.fontStyle) ?? "normal"
|
|
11329
11329
|
},
|
|
11330
11330
|
textAppearance: {
|
|
11331
11331
|
textTransform: ((U = e == null ? void 0 : e[`${ne}TextAppearance`]) == null ? void 0 : U.textTransform) ?? "none",
|
|
@@ -11341,14 +11341,14 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11341
11341
|
}, ee = V("text"), k = V("caption"), R = o.length > 1 && o.some((ne) => {
|
|
11342
11342
|
var ue, B;
|
|
11343
11343
|
return (((ue = ne.text) == null ? void 0 : ue.length) ?? 0) > 0 || (((B = ne.caption) == null ? void 0 : B.length) ?? 0) > 0;
|
|
11344
|
-
}), D = Te(null), [N, A] = ce(0), [
|
|
11344
|
+
}), D = Te(null), [N, A] = ce(0), [j, X] = ce(0), Q = e.controls ?? { mode: "Off", icon: null }, I = o.length > 1, te = yt((ne, ue) => !I || ue === ne ? ne : (O.current && window.clearTimeout(O.current), M(ne), T(!0), O.current = window.setTimeout(() => {
|
|
11345
11345
|
M(null), T(!1), O.current = null;
|
|
11346
11346
|
}, 300), ue), [I]), g = yt(() => {
|
|
11347
11347
|
I && F((ne) => te(ne, (ne - 1 + o.length) % o.length));
|
|
11348
11348
|
}, [I, te, o.length]), J = yt(() => {
|
|
11349
11349
|
I && F((ne) => te(ne, (ne + 1) % o.length));
|
|
11350
11350
|
}, [I, te, o.length]);
|
|
11351
|
-
|
|
11351
|
+
Ae(() => {
|
|
11352
11352
|
if (!x || !I) return;
|
|
11353
11353
|
const ne = Math.max(300, Td / c), ue = window.setInterval(() => {
|
|
11354
11354
|
F((B) => te(B, (B + 1) % o.length));
|
|
@@ -11356,12 +11356,12 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11356
11356
|
return () => {
|
|
11357
11357
|
window.clearInterval(ue);
|
|
11358
11358
|
};
|
|
11359
|
-
}, [x, I, te, o.length, c]),
|
|
11359
|
+
}, [x, I, te, o.length, c]), Ae(() => () => {
|
|
11360
11360
|
O.current && window.clearTimeout(O.current);
|
|
11361
11361
|
}, []);
|
|
11362
11362
|
const he = (ne, ue) => {
|
|
11363
11363
|
var ye, Pe, Se, Ee;
|
|
11364
|
-
const B = ue == null ? void 0 : ue.textMinHeightPx,
|
|
11364
|
+
const B = ue == null ? void 0 : ue.textMinHeightPx, K = ue == null ? void 0 : ue.captionMinHeightPx, U = ue == null ? void 0 : ue.dataMeasureAttrs, se = i && !(ue != null && ue.dataMeasureAttrs) && !(ue != null && ue.hideControls);
|
|
11365
11365
|
return /* @__PURE__ */ re(Ge, { children: [
|
|
11366
11366
|
ne.text && /* @__PURE__ */ re("div", { style: { display: "flex", flexDirection: "column", alignItems: C, width: "100%" }, children: [
|
|
11367
11367
|
/* @__PURE__ */ l(
|
|
@@ -11420,7 +11420,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11420
11420
|
...U ? { "data-testimonial-measure": "caption" } : {},
|
|
11421
11421
|
style: {
|
|
11422
11422
|
...ot(k, n),
|
|
11423
|
-
...
|
|
11423
|
+
...K && K > 0 ? { minHeight: K } : {},
|
|
11424
11424
|
textAlign: P,
|
|
11425
11425
|
pointerEvents: "auto"
|
|
11426
11426
|
},
|
|
@@ -11448,7 +11448,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11448
11448
|
B.disconnect();
|
|
11449
11449
|
};
|
|
11450
11450
|
}, [R, le, t]), !_) return /* @__PURE__ */ l(Ge, {});
|
|
11451
|
-
const xe = R ? { textMinHeightPx: N, captionMinHeightPx:
|
|
11451
|
+
const xe = R ? { textMinHeightPx: N, captionMinHeightPx: j } : void 0;
|
|
11452
11452
|
return /* @__PURE__ */ l(Ge, { children: /* @__PURE__ */ re("div", { className: `${s}-container`, children: [
|
|
11453
11453
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: wd(s) } }),
|
|
11454
11454
|
/* @__PURE__ */ re(
|
|
@@ -12770,21 +12770,21 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12770
12770
|
p({ width: N, height: V, left: _.left + (W - N) / 2, top: _.top });
|
|
12771
12771
|
}
|
|
12772
12772
|
}, [n]);
|
|
12773
|
-
|
|
12773
|
+
Ae(() => {
|
|
12774
12774
|
F();
|
|
12775
12775
|
const C = S.current;
|
|
12776
12776
|
if (!C) return;
|
|
12777
12777
|
const P = new ResizeObserver(() => F());
|
|
12778
12778
|
return P.observe(C), () => P.disconnect();
|
|
12779
|
-
}, [F, t]),
|
|
12779
|
+
}, [F, t]), Ae(() => {
|
|
12780
12780
|
m === "opening" && h && b("open");
|
|
12781
|
-
}, [m, h]),
|
|
12781
|
+
}, [m, h]), Ae(() => {
|
|
12782
12782
|
if (m !== "closing") return;
|
|
12783
12783
|
const C = setTimeout(() => s(), Nt);
|
|
12784
12784
|
return () => clearTimeout(C);
|
|
12785
|
-
}, [m, s]),
|
|
12785
|
+
}, [m, s]), Ae(() => {
|
|
12786
12786
|
f.current !== t && x(!1), f.current = t;
|
|
12787
|
-
}, [t]),
|
|
12787
|
+
}, [t]), Ae(() => {
|
|
12788
12788
|
const C = (P) => {
|
|
12789
12789
|
P.key === "Escape" && (P.preventDefault(), P.stopPropagation(), m !== "closing" && b("closing"));
|
|
12790
12790
|
};
|
|
@@ -12988,7 +12988,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
12988
12988
|
subtitleFontSettings: D,
|
|
12989
12989
|
subtitleFontSize: N,
|
|
12990
12990
|
subtitleLineHeight: A,
|
|
12991
|
-
subtitleLetterSpacing:
|
|
12991
|
+
subtitleLetterSpacing: j,
|
|
12992
12992
|
subtitleWordSpacing: X,
|
|
12993
12993
|
subtitleTextAppearance: Q,
|
|
12994
12994
|
lightboxCounterFontFamily: I,
|
|
@@ -13022,7 +13022,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13022
13022
|
},
|
|
13023
13023
|
fontSize: N ?? 0.01,
|
|
13024
13024
|
lineHeight: A,
|
|
13025
|
-
letterSpacing:
|
|
13025
|
+
letterSpacing: j ?? 0,
|
|
13026
13026
|
wordSpacing: X ?? 0,
|
|
13027
13027
|
textAppearance: Q,
|
|
13028
13028
|
color: T
|
|
@@ -13040,7 +13040,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13040
13040
|
wordSpacing: le ?? 0,
|
|
13041
13041
|
textAppearance: xe,
|
|
13042
13042
|
color: O
|
|
13043
|
-
},
|
|
13043
|
+
}, Ie = {
|
|
13044
13044
|
...wt(ot(Se, n)),
|
|
13045
13045
|
...ro(g, J, a, n)
|
|
13046
13046
|
}, H = no(
|
|
@@ -13062,7 +13062,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13062
13062
|
titleColor: y,
|
|
13063
13063
|
subtitleColor: T,
|
|
13064
13064
|
lightboxCounterColor: O
|
|
13065
|
-
}, Nd, Hd), Me = `${o && o !== "default" ? `${a}-state-${o}` : ""}${ne === "on hover" && (!n || r) ? ` ${a}-show-text-hover` : ""}`.trim(), ve = h === 0 ? 1 / 0 : h, be = (t ?? []).slice(0, ve), He = d.entryWidth ?? 0.2, ae = (m == null ? void 0 : m.display) === "cover", Ce = (m == null ? void 0 : m.ratioValue) ?? "1:1", We = (m == null ? void 0 : m.reversed) ?? !1, [Ne,
|
|
13065
|
+
}, Nd, Hd), Me = `${o && o !== "default" ? `${a}-state-${o}` : ""}${ne === "on hover" && (!n || r) ? ` ${a}-show-text-hover` : ""}`.trim(), ve = h === 0 ? 1 / 0 : h, be = (t ?? []).slice(0, ve), He = d.entryWidth ?? 0.2, ae = (m == null ? void 0 : m.display) === "cover", Ce = (m == null ? void 0 : m.ratioValue) ?? "1:1", We = (m == null ? void 0 : m.reversed) ?? !1, [Ne, je] = Ce.split(":").map(Number), xt = `${We ? je : Ne} / ${We ? Ne : je}`, Pt = L(He ?? 0, n), Mt = !ae && $ !== "off", Ct = {
|
|
13066
13066
|
width: Pt,
|
|
13067
13067
|
...ae ? { aspectRatio: xt, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13068
13068
|
}, Ye = `${a}-item-image-wrapper${Mt ? ` ${a}-item-image-wrapper-fit-slider` : ""}`.trim(), ge = u === "c", ze = ge && ue === "on", qe = `calc(${L(He ?? 0, n)} * (${S} / 100))`, Ze = L(He * S / 100, n), Ut = ae ? {
|
|
@@ -13078,7 +13078,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13078
13078
|
height: "auto",
|
|
13079
13079
|
maxWidth: "100%"
|
|
13080
13080
|
}, [It, kt] = ce("ltr"), [fn, On] = ce(0), we = Te(null);
|
|
13081
|
-
|
|
13081
|
+
Ae(() => {
|
|
13082
13082
|
const Re = we.current;
|
|
13083
13083
|
if (!Re) return;
|
|
13084
13084
|
const pt = new ResizeObserver((mt) => {
|
|
@@ -13089,19 +13089,19 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13089
13089
|
const rt = (() => {
|
|
13090
13090
|
const Re = { ...G }, pt = we.current ? getComputedStyle(we.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
13091
13091
|
return pt && (Re["--cntrl-article-width"] = pt), Re;
|
|
13092
|
-
})(), [Je,
|
|
13092
|
+
})(), [Je, Ke] = ce(!1), [ut, lr] = ce([]), [Kr, yn] = ce(0), [Ur, cr] = ce(null), dr = (Re, pt, mt) => {
|
|
13093
13093
|
if (n && !r || p === "off") return;
|
|
13094
13094
|
const Y = Re.currentTarget.getBoundingClientRect();
|
|
13095
|
-
cr({ top: Y.top, left: Y.left, width: Y.width, height: Y.height }), lr(pt), yn(mt),
|
|
13095
|
+
cr({ top: Y.top, left: Y.left, width: Y.width, height: Y.height }), lr(pt), yn(mt), Ke(!0);
|
|
13096
13096
|
};
|
|
13097
|
-
|
|
13097
|
+
Ae(() => {
|
|
13098
13098
|
if (!Je || p !== "on" || typeof document > "u") return;
|
|
13099
13099
|
const Re = document.body.style.overflow;
|
|
13100
13100
|
return document.body.style.overflow = "hidden", () => {
|
|
13101
13101
|
document.body.style.overflow = Re;
|
|
13102
13102
|
};
|
|
13103
|
-
}, [Je, p]),
|
|
13104
|
-
!n || r || (
|
|
13103
|
+
}, [Je, p]), Ae(() => {
|
|
13104
|
+
!n || r || (Ke(!1), cr(null));
|
|
13105
13105
|
}, [n, r]);
|
|
13106
13106
|
const Gr = Oe(() => kd(a), [a]);
|
|
13107
13107
|
return /* @__PURE__ */ re(Ge, { children: [
|
|
@@ -13302,15 +13302,15 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13302
13302
|
Rd,
|
|
13303
13303
|
{
|
|
13304
13304
|
images: ut,
|
|
13305
|
-
index:
|
|
13305
|
+
index: Kr,
|
|
13306
13306
|
imageDisplay: Fd(b),
|
|
13307
13307
|
originRect: Ur,
|
|
13308
13308
|
reverseClose: $ === "off",
|
|
13309
|
-
onClose: () =>
|
|
13309
|
+
onClose: () => Ke(!1),
|
|
13310
13310
|
onPrev: () => yn((Re) => (Re - 1 + ut.length) % ut.length),
|
|
13311
13311
|
onNext: () => yn((Re) => (Re + 1) % ut.length),
|
|
13312
13312
|
counterClassName: q,
|
|
13313
|
-
counterStyle:
|
|
13313
|
+
counterStyle: Ie
|
|
13314
13314
|
}
|
|
13315
13315
|
) }),
|
|
13316
13316
|
document.body
|
|
@@ -15214,7 +15214,7 @@ function qd({
|
|
|
15214
15214
|
style: n
|
|
15215
15215
|
}) {
|
|
15216
15216
|
const r = Te(null);
|
|
15217
|
-
return
|
|
15217
|
+
return Ae(() => {
|
|
15218
15218
|
if (!e.isVideo) return;
|
|
15219
15219
|
const i = r.current;
|
|
15220
15220
|
if (!i) return;
|
|
@@ -15247,7 +15247,7 @@ function qd({
|
|
|
15247
15247
|
function Sr(e) {
|
|
15248
15248
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
15249
15249
|
}
|
|
15250
|
-
function
|
|
15250
|
+
function jd(e) {
|
|
15251
15251
|
return String(e ?? "").trim().length > 0;
|
|
15252
15252
|
}
|
|
15253
15253
|
function $i(e, t) {
|
|
@@ -15262,7 +15262,7 @@ function wi(e, t, n, r, i, s, o) {
|
|
|
15262
15262
|
const c = L(s, o), a = L(0, o), u = e === 0, d = e === t - 1 && !i;
|
|
15263
15263
|
return { borderTopWidth: u && n ? c : a, borderBottomWidth: !d || r ? c : a };
|
|
15264
15264
|
}
|
|
15265
|
-
function
|
|
15265
|
+
function Kd(e, t, n) {
|
|
15266
15266
|
const r = L(t, n), i = L(0, n);
|
|
15267
15267
|
return {
|
|
15268
15268
|
borderTopWidth: i,
|
|
@@ -15719,7 +15719,7 @@ const rn = [
|
|
|
15719
15719
|
], qt = "cutLabel", zo = [
|
|
15720
15720
|
...Do,
|
|
15721
15721
|
qt
|
|
15722
|
-
],
|
|
15722
|
+
], jr = ["A", "B", "C", "D", "E"];
|
|
15723
15723
|
function Pa(e) {
|
|
15724
15724
|
return `${e}ColumnVerticalAlign`;
|
|
15725
15725
|
}
|
|
@@ -15728,7 +15728,7 @@ function Vo(e) {
|
|
|
15728
15728
|
const t = String(e ?? "Top").trim();
|
|
15729
15729
|
if (t.toLowerCase().startsWith("baseline")) {
|
|
15730
15730
|
const r = t.slice(-1).toUpperCase();
|
|
15731
|
-
return
|
|
15731
|
+
return jr.includes(r) ? `Baseline ${r}` : "Top";
|
|
15732
15732
|
}
|
|
15733
15733
|
const n = t.toLowerCase();
|
|
15734
15734
|
return n === "center" ? "Center" : n === "bottom" ? "Bottom" : n === "top" ? "Top" : t;
|
|
@@ -15742,7 +15742,7 @@ function Yd(e) {
|
|
|
15742
15742
|
if (!t.toLowerCase().startsWith("baseline"))
|
|
15743
15743
|
return null;
|
|
15744
15744
|
const n = t.slice(-1).toUpperCase();
|
|
15745
|
-
return
|
|
15745
|
+
return jr.includes(n) ? n : null;
|
|
15746
15746
|
}
|
|
15747
15747
|
function Ea(e, t, n) {
|
|
15748
15748
|
const r = Yd(e);
|
|
@@ -15752,7 +15752,7 @@ function Xn(e) {
|
|
|
15752
15752
|
const t = Vo(e);
|
|
15753
15753
|
if (t.toLowerCase().startsWith("baseline")) {
|
|
15754
15754
|
const n = t.slice(-1).toUpperCase();
|
|
15755
|
-
return
|
|
15755
|
+
return jr.includes(n) ? { kind: "baseline", anchorLetter: n } : { kind: "top" };
|
|
15756
15756
|
}
|
|
15757
15757
|
return t === "Center" ? { kind: "center" } : t === "Bottom" ? { kind: "bottom" } : { kind: "top" };
|
|
15758
15758
|
}
|
|
@@ -15772,7 +15772,7 @@ function _a(e, t, n) {
|
|
|
15772
15772
|
function Zd(e) {
|
|
15773
15773
|
const t = {};
|
|
15774
15774
|
let n = !1;
|
|
15775
|
-
for (const r of
|
|
15775
|
+
for (const r of jr) {
|
|
15776
15776
|
const i = Pa(r), s = e[i];
|
|
15777
15777
|
if (e.type === "b") {
|
|
15778
15778
|
const o = String(s ?? "Top").trim();
|
|
@@ -16056,7 +16056,7 @@ function ka(e, t, n) {
|
|
|
16056
16056
|
};
|
|
16057
16057
|
}
|
|
16058
16058
|
function wr(e, t, n) {
|
|
16059
|
-
const r =
|
|
16059
|
+
const r = jo(e, t, n);
|
|
16060
16060
|
if (e <= 0)
|
|
16061
16061
|
return [];
|
|
16062
16062
|
const i = r.slice(0, e - 1).reduce((s, o) => s + o, 0);
|
|
@@ -16077,7 +16077,7 @@ function fu(e, t, n) {
|
|
|
16077
16077
|
}
|
|
16078
16078
|
return r;
|
|
16079
16079
|
}
|
|
16080
|
-
function
|
|
16080
|
+
function jo(e, t, n) {
|
|
16081
16081
|
if (e <= 0)
|
|
16082
16082
|
return [];
|
|
16083
16083
|
const r = Tt.slice(0, e).map(
|
|
@@ -16102,7 +16102,7 @@ function Ko(e, t, n) {
|
|
|
16102
16102
|
function yu(e, t, n) {
|
|
16103
16103
|
if (e <= 1)
|
|
16104
16104
|
return {};
|
|
16105
|
-
const r =
|
|
16105
|
+
const r = jo(e, t, n), i = {};
|
|
16106
16106
|
for (let s = 0; s < e - 1; s += 1) {
|
|
16107
16107
|
const o = Tt[s];
|
|
16108
16108
|
r[s] !== n[o] && (i[o] = r[s]);
|
|
@@ -16273,7 +16273,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16273
16273
|
textHoverColor: R,
|
|
16274
16274
|
backgroundHoverColor: D,
|
|
16275
16275
|
dividerHoverColor: N
|
|
16276
|
-
} = e, [A,
|
|
16276
|
+
} = e, [A, j] = ce(void 0), [X, Q] = ce(null), I = M === "on" && (!n || r), te = ($ ?? 0) > 0, g = S === "b", J = Te(null), he = Te(null), [le, xe] = ce(null), [ne, ue] = ce(Qn), B = Aa(ne), K = Math.max(0, ((v ?? 0) - B) / 2), U = Math.min(W ?? 0, K), se = Math.max(U, wn), ye = ((v ?? 0) + B) / 2;
|
|
16277
16277
|
vt(() => {
|
|
16278
16278
|
if (!n) {
|
|
16279
16279
|
ue(Qn);
|
|
@@ -16292,10 +16292,10 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16292
16292
|
for (; Le && !Le.style.getPropertyValue("--cntrl-article-width"); )
|
|
16293
16293
|
Le = Le.parentElement;
|
|
16294
16294
|
return Le && fe.observe(Le), () => fe.disconnect();
|
|
16295
|
-
}, [n, o]),
|
|
16296
|
-
|
|
16297
|
-
}, [$, x, t, h]),
|
|
16298
|
-
n && !r &&
|
|
16295
|
+
}, [n, o]), Ae(() => {
|
|
16296
|
+
j(void 0);
|
|
16297
|
+
}, [$, x, t, h]), Ae(() => {
|
|
16298
|
+
n && !r && j(void 0);
|
|
16299
16299
|
}, [n, r]);
|
|
16300
16300
|
const Pe = Jn(a, {
|
|
16301
16301
|
textColor: V,
|
|
@@ -16304,8 +16304,8 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16304
16304
|
textHoverColor: R,
|
|
16305
16305
|
backgroundHoverColor: D,
|
|
16306
16306
|
dividerHoverColor: N
|
|
16307
|
-
}, cu, du), Se = s && s !== "default" ? `${a}-state-${s}` : "",
|
|
16308
|
-
|
|
16307
|
+
}, cu, du), Se = s && s !== "default" ? `${a}-state-${s}` : "", Ie = `${!n || r ? y === "default" ? `${a}-entry-hover-default` : y === "blinds" ? `${a}-entry-hover-blinds` : y === "reveal" ? `${a}-entry-hover-reveal` : "" : ""} ${Se}`.trim(), H = y === "reveal" && (!n || r), oe = (b == null ? void 0 : b[0]) ?? !1, E = (b == null ? void 0 : b[1]) ?? !1, z = Te(e), q = Te(o);
|
|
16308
|
+
Ae(() => {
|
|
16309
16309
|
if (!c || !n) {
|
|
16310
16310
|
z.current = e, q.current = o;
|
|
16311
16311
|
return;
|
|
@@ -16378,7 +16378,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16378
16378
|
() => Tt.slice(0, d).map((Y) => G[Y]),
|
|
16379
16379
|
[d, G]
|
|
16380
16380
|
), Ce = Oe(
|
|
16381
|
-
() =>
|
|
16381
|
+
() => jo(d, He, G),
|
|
16382
16382
|
[d, He, G]
|
|
16383
16383
|
), We = Oe(
|
|
16384
16384
|
() => wr(d, He, G),
|
|
@@ -16390,7 +16390,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16390
16390
|
Y.paddingRight
|
|
16391
16391
|
)),
|
|
16392
16392
|
[be, We]
|
|
16393
|
-
),
|
|
16393
|
+
), je = Oe(() => {
|
|
16394
16394
|
const Y = h === 0 ? 1 / 0 : h;
|
|
16395
16395
|
return (t ?? []).slice(0, Y).map((fe, Le) => ({
|
|
16396
16396
|
id: Le,
|
|
@@ -16400,17 +16400,17 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16400
16400
|
image: fe.image,
|
|
16401
16401
|
link: fe.link
|
|
16402
16402
|
}));
|
|
16403
|
-
}, [t, h]), st = te ? A ?? $ :
|
|
16403
|
+
}, [t, h]), st = te ? A ?? $ : je.length, bt = Oe(() => te ? je.slice(0, st) : je, [je, te, st]), xt = te && st < je.length, Pt = bt.length > 1 || xt, Mt = [
|
|
16404
16404
|
oe ? `${a}-divider-top` : "",
|
|
16405
16405
|
E || Pt ? `${a}-divider-bottom` : ""
|
|
16406
16406
|
].filter(Boolean).join(" "), Ct = !n || r, Ye = () => {
|
|
16407
16407
|
if (!Ct) return;
|
|
16408
16408
|
const Y = A ?? $;
|
|
16409
16409
|
if (!x) {
|
|
16410
|
-
|
|
16410
|
+
j(je.length);
|
|
16411
16411
|
return;
|
|
16412
16412
|
}
|
|
16413
|
-
|
|
16413
|
+
j(Math.min(Y + x, je.length));
|
|
16414
16414
|
}, ge = (Y) => L(Y, n ?? !1), ze = g ? P ?? 0 : O ?? 0, qe = C ?? 0, Ze = p ?? 0, Ut = ze + Ze / 2, It = Math.max(qe, ao), kt = wi(
|
|
16415
16415
|
0,
|
|
16416
16416
|
bt.length,
|
|
@@ -16419,7 +16419,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16419
16419
|
xt,
|
|
16420
16420
|
m ?? 0,
|
|
16421
16421
|
n ?? !1
|
|
16422
|
-
).borderTopWidth, fn = le != null ? `${le}px` : `calc(${kt} + ${ge(Ut)})`, On = g ? "rowPaddingTopB" : "rowPaddingTop", we = be[0], rt = be[be.length - 1], Je = Ne[0],
|
|
16422
|
+
).borderTopWidth, fn = le != null ? `${le}px` : `calc(${kt} + ${ge(Ut)})`, On = g ? "rowPaddingTopB" : "rowPaddingTop", we = be[0], rt = be[be.length - 1], Je = Ne[0], Ke = Ne[Ne.length - 1], ut = we && Je ? Math.max(Je.paddingLeft, wn) : 0, lr = rt && Ke ? Math.max(Ke.paddingRight, wn) : 0, Kr = He, yn = (Y) => {
|
|
16423
16423
|
const pe = J.current;
|
|
16424
16424
|
if (!pe)
|
|
16425
16425
|
return { x: 0, y: 0 };
|
|
@@ -16553,8 +16553,8 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16553
16553
|
}), nt = /* @__PURE__ */ new Map(), ur = (Ue, bn) => {
|
|
16554
16554
|
const xn = nt.get(Ue.letter);
|
|
16555
16555
|
if (xn !== void 0) return xn;
|
|
16556
|
-
const
|
|
16557
|
-
if (Ue.kind !== "baseline" || !
|
|
16556
|
+
const Ko = Ue.anchor ? it.get(Ue.anchor) : void 0;
|
|
16557
|
+
if (Ue.kind !== "baseline" || !Ko || bn.has(Ue.letter)) {
|
|
16558
16558
|
const Go = io(
|
|
16559
16559
|
Ue,
|
|
16560
16560
|
ct,
|
|
@@ -16564,7 +16564,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16564
16564
|
return nt.set(Ue.letter, Go), Go;
|
|
16565
16565
|
}
|
|
16566
16566
|
bn.add(Ue.letter);
|
|
16567
|
-
const Fa = ur(
|
|
16567
|
+
const Fa = ur(Ko, bn);
|
|
16568
16568
|
bn.delete(Ue.letter);
|
|
16569
16569
|
const Ma = io(
|
|
16570
16570
|
Ue,
|
|
@@ -16615,7 +16615,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16615
16615
|
"div",
|
|
16616
16616
|
{
|
|
16617
16617
|
ref: J,
|
|
16618
|
-
className: `${a}-wrapper ${
|
|
16618
|
+
className: `${a}-wrapper ${Ie}${Mt ? ` ${Mt}` : ""}${g ? ` ${a}-type-b` : ""}`.trim(),
|
|
16619
16619
|
style: {
|
|
16620
16620
|
width: L(v ?? 0, n),
|
|
16621
16621
|
...!g && u ? { [`--${a}-first-entry-handle-top`]: fn } : {}
|
|
@@ -16666,7 +16666,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16666
16666
|
style: g ? void 0 : { minHeight: ge(Ze) },
|
|
16667
16667
|
children: [
|
|
16668
16668
|
be.map((_e, gt) => {
|
|
16669
|
-
const ht = gt === be.length - 1, tt = Ne[gt], ft = _e.paddingBottom, Be =
|
|
16669
|
+
const ht = gt === be.length - 1, tt = Ne[gt], ft = _e.paddingBottom, Be = jd(Y.cells[_e.key]), lt = g && Be && ft > 0, ct = g ? { minHeight: ge(Ze) } : { width: ge(We[gt]) }, it = g ? {
|
|
16670
16670
|
paddingLeft: ge(U),
|
|
16671
16671
|
paddingRight: ge(U)
|
|
16672
16672
|
} : {
|
|
@@ -16890,14 +16890,14 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16890
16890
|
"data-controls-reverse": "",
|
|
16891
16891
|
"data-controls-min": "0",
|
|
16892
16892
|
"data-controls-max-fraction": String(
|
|
16893
|
-
We[be.length - 1] - ((
|
|
16893
|
+
We[be.length - 1] - ((Ke == null ? void 0 : Ke.paddingLeft) ?? 0)
|
|
16894
16894
|
),
|
|
16895
16895
|
className: `${a}-padding-control-handle`,
|
|
16896
16896
|
hitPlacement: "center-x",
|
|
16897
16897
|
areaStyle: {
|
|
16898
16898
|
position: "absolute",
|
|
16899
16899
|
top: 0,
|
|
16900
|
-
left: ge(
|
|
16900
|
+
left: ge(Kr - lr),
|
|
16901
16901
|
width: ge(lr),
|
|
16902
16902
|
height: "100%"
|
|
16903
16903
|
}
|
|
@@ -17001,7 +17001,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
17001
17001
|
style: {
|
|
17002
17002
|
minHeight: ge(f ?? 0),
|
|
17003
17003
|
cursor: Ct ? "pointer" : "default",
|
|
17004
|
-
...
|
|
17004
|
+
...Kd(
|
|
17005
17005
|
E,
|
|
17006
17006
|
m ?? 0,
|
|
17007
17007
|
n ?? !1
|
|
@@ -20906,7 +20906,7 @@ const Bu = [
|
|
|
20906
20906
|
schema: Vu,
|
|
20907
20907
|
sourceCode: Pu
|
|
20908
20908
|
}, Mi = 300, Yt = 4e-3, Ni = 12;
|
|
20909
|
-
function
|
|
20909
|
+
function ju(e) {
|
|
20910
20910
|
const t = {
|
|
20911
20911
|
position: "absolute",
|
|
20912
20912
|
width: Ni,
|
|
@@ -20928,11 +20928,11 @@ function Xt({
|
|
|
20928
20928
|
style: { ...t, pointerEvents: "none" },
|
|
20929
20929
|
"data-controls-center-only-drag": "",
|
|
20930
20930
|
...r,
|
|
20931
|
-
children: /* @__PURE__ */ l("div", { style:
|
|
20931
|
+
children: /* @__PURE__ */ l("div", { style: ju(n) })
|
|
20932
20932
|
}
|
|
20933
20933
|
);
|
|
20934
20934
|
}
|
|
20935
|
-
const
|
|
20935
|
+
const Ku = {
|
|
20936
20936
|
questionColor: "question-color",
|
|
20937
20937
|
answerColor: "answer-color",
|
|
20938
20938
|
dividerColor: "divider-color",
|
|
@@ -21190,7 +21190,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21190
21190
|
answerFontSettings: D,
|
|
21191
21191
|
answerFontSize: N,
|
|
21192
21192
|
answerLineHeight: A,
|
|
21193
|
-
answerLetterSpacing:
|
|
21193
|
+
answerLetterSpacing: j,
|
|
21194
21194
|
answerWordSpacing: X,
|
|
21195
21195
|
answerTextAppearance: Q,
|
|
21196
21196
|
questionPaddingLeft: I = 0,
|
|
@@ -21200,11 +21200,13 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21200
21200
|
answerPaddingRight: he = 0,
|
|
21201
21201
|
answerPaddingTop: le = 0,
|
|
21202
21202
|
answerPaddingBottom: xe = 0
|
|
21203
|
-
} = e, ne = t ?? [], [ue, B] = ce(() => /* @__PURE__ */ new Set()),
|
|
21204
|
-
|
|
21203
|
+
} = e, ne = t ?? [], [ue, B] = ce(() => /* @__PURE__ */ new Set()), K = !n || r;
|
|
21204
|
+
Ae(() => {
|
|
21205
21205
|
r || B(/* @__PURE__ */ new Set());
|
|
21206
|
-
}, [r])
|
|
21207
|
-
|
|
21206
|
+
}, [r]), Ae(() => {
|
|
21207
|
+
B(/* @__PURE__ */ new Set());
|
|
21208
|
+
}, [h]);
|
|
21209
|
+
const U = (Ye) => L(Ye, n ?? !1), se = Math.max(I, Yt), ye = Math.max(te, Yt), Pe = Math.max(g, Yt), Se = Math.max(J, Yt), Ee = Math.max(he, Yt), Ie = Math.max(le, Yt), H = Math.max(xe, Yt), oe = Math.max(0, (a ?? 1) - b - m), E = Math.max(0, (a ?? 1) - he), z = Math.max(0, (a ?? 1) - J), q = Math.max(b, Yt), G = Math.max(0, (a ?? 1) - I - m), ie = yt((Ye) => c ? Ye === 0 : ue.has(Ye), [ue, c]), me = K && v === "default" ? `${o}-entry-hover-default` : "", Me = p ?? "", ve = Me !== "", be = $.replace(/^rotate /, ""), He = `${o}-icon-anim-${be}`, ae = wt(ot(
|
|
21208
21210
|
Bi(
|
|
21209
21211
|
C,
|
|
21210
21212
|
P,
|
|
@@ -21222,7 +21224,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21222
21224
|
D,
|
|
21223
21225
|
N,
|
|
21224
21226
|
A,
|
|
21225
|
-
|
|
21227
|
+
j,
|
|
21226
21228
|
X,
|
|
21227
21229
|
Q,
|
|
21228
21230
|
f
|
|
@@ -21238,7 +21240,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21238
21240
|
A,
|
|
21239
21241
|
`${o}-answer-text`,
|
|
21240
21242
|
`${o}-text-tight-leading`
|
|
21241
|
-
),
|
|
21243
|
+
), je = Oi(_, W, o, n), st = Oi(N, A, o, n), bt = Jn(o, {
|
|
21242
21244
|
questionColor: x,
|
|
21243
21245
|
answerColor: f,
|
|
21244
21246
|
dividerColor: F,
|
|
@@ -21247,8 +21249,8 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21247
21249
|
iconHoverColor: y,
|
|
21248
21250
|
iconActiveColor: T,
|
|
21249
21251
|
dividerHoverColor: O
|
|
21250
|
-
},
|
|
21251
|
-
|
|
21252
|
+
}, Ku, Uu), xt = s && s !== "default" ? `${o}-state-${s}` : "", Pt = yt((Ye) => {
|
|
21253
|
+
K && B((ge) => {
|
|
21252
21254
|
if (ge.has(Ye)) {
|
|
21253
21255
|
const qe = new Set(ge);
|
|
21254
21256
|
return qe.delete(Ye), qe;
|
|
@@ -21258,7 +21260,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21258
21260
|
const ze = new Set(ge);
|
|
21259
21261
|
return ze.add(Ye), ze;
|
|
21260
21262
|
});
|
|
21261
|
-
}, [
|
|
21263
|
+
}, [K, h]), Mt = Oe(() => Yu(o), [o]), Ct = {
|
|
21262
21264
|
[`--${o}-divider-width`]: L(d, n ?? !1),
|
|
21263
21265
|
[`--${o}-divider-style`]: S,
|
|
21264
21266
|
[`--${o}-icon-max-width`]: L(m, n ?? !1),
|
|
@@ -21359,7 +21361,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21359
21361
|
"aria-expanded": ze,
|
|
21360
21362
|
style: {
|
|
21361
21363
|
...ae,
|
|
21362
|
-
...
|
|
21364
|
+
...je,
|
|
21363
21365
|
paddingLeft: U(I),
|
|
21364
21366
|
paddingRight: U(b)
|
|
21365
21367
|
},
|
|
@@ -21436,7 +21438,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21436
21438
|
top: 0,
|
|
21437
21439
|
left: 0,
|
|
21438
21440
|
width: "100%",
|
|
21439
|
-
height: U(
|
|
21441
|
+
height: U(Ie),
|
|
21440
21442
|
zIndex: 2
|
|
21441
21443
|
}
|
|
21442
21444
|
}
|
|
@@ -21985,6 +21987,10 @@ export function FAQ({ settings, content, isEditor, isPreviewMode, isEditMode, ac
|
|
|
21985
21987
|
setOpenIndices(new Set());
|
|
21986
21988
|
}
|
|
21987
21989
|
}, [isPreviewMode]);
|
|
21990
|
+
|
|
21991
|
+
useEffect(() => {
|
|
21992
|
+
setOpenIndices(new Set());
|
|
21993
|
+
}, [autoclose]);
|
|
21988
21994
|
const scaled = (value: number) => scalingValue(value, isEditor ?? false);
|
|
21989
21995
|
const questionPaddingLeftWidth = Math.max(questionPaddingLeft, PADDING_HANDLE_SIZE);
|
|
21990
21996
|
const questionPaddingTopHeight = Math.max(questionPaddingTop, PADDING_HANDLE_SIZE);
|
|
@@ -22428,29 +22434,65 @@ const Di = {
|
|
|
22428
22434
|
},
|
|
22429
22435
|
default: [
|
|
22430
22436
|
{
|
|
22431
|
-
question: "What is
|
|
22437
|
+
question: "1. What is this product used for?",
|
|
22438
|
+
answer: [
|
|
22439
|
+
{
|
|
22440
|
+
type: "paragraph",
|
|
22441
|
+
children: [{ text: "Our product helps you organize, manage, and improve your workflow with simple digital tools designed to save time and reduce manual work. It brings important tasks, information, and collaboration into one place so you can stay focused and work more efficiently." }]
|
|
22442
|
+
}
|
|
22443
|
+
]
|
|
22444
|
+
},
|
|
22445
|
+
{
|
|
22446
|
+
question: "2. Do I need technical knowledge to use it?",
|
|
22447
|
+
answer: [
|
|
22448
|
+
{
|
|
22449
|
+
type: "paragraph",
|
|
22450
|
+
children: [{ text: "No. The product is designed to be easy to use, with a clear interface and guided setup so you can get started quickly. You do not need coding skills or special training to use the core features." }]
|
|
22451
|
+
}
|
|
22452
|
+
]
|
|
22453
|
+
},
|
|
22454
|
+
{
|
|
22455
|
+
question: "3. Is there a free trial?",
|
|
22456
|
+
answer: [
|
|
22457
|
+
{
|
|
22458
|
+
type: "paragraph",
|
|
22459
|
+
children: [{ text: "Yes, you can try the product before choosing a paid plan. The trial gives you access to the main features so you can explore how it works, test it with your own workflow, and decide whether it is the right fit for your needs." }]
|
|
22460
|
+
}
|
|
22461
|
+
]
|
|
22462
|
+
},
|
|
22463
|
+
{
|
|
22464
|
+
question: "4. Can I cancel my subscription anytime?",
|
|
22465
|
+
answer: [
|
|
22466
|
+
{
|
|
22467
|
+
type: "paragraph",
|
|
22468
|
+
children: [{ text: "Yes. You can cancel your subscription at any time from your account settings. Your access will remain active until the end of your current billing period, and you will not be charged again after cancellation." }]
|
|
22469
|
+
}
|
|
22470
|
+
]
|
|
22471
|
+
},
|
|
22472
|
+
{
|
|
22473
|
+
question: "5. Is my data secure?",
|
|
22432
22474
|
answer: [
|
|
22433
22475
|
{
|
|
22434
22476
|
type: "paragraph",
|
|
22435
|
-
children: [{ text: "
|
|
22477
|
+
children: [{ text: "Yes. We use modern security practices to protect your data, including encrypted connections and secure account access. We also follow responsible data handling practices so your information stays private and protected." }]
|
|
22436
22478
|
}
|
|
22437
22479
|
]
|
|
22438
22480
|
},
|
|
22439
22481
|
{
|
|
22440
|
-
question: "
|
|
22482
|
+
question: "6. Can I use the product with my team?",
|
|
22441
22483
|
answer: [
|
|
22442
22484
|
{
|
|
22443
22485
|
type: "paragraph",
|
|
22444
|
-
children: [{ text: "
|
|
22486
|
+
children: [{ text: "Yes. Team plans allow multiple users to collaborate, manage shared projects, assign responsibilities, and keep work organized in one place. This makes it easier for everyone to stay aligned and see the latest updates." }]
|
|
22445
22487
|
}
|
|
22446
22488
|
]
|
|
22447
22489
|
},
|
|
22448
22490
|
{
|
|
22449
|
-
question: "
|
|
22491
|
+
question: "7. How do I get support?",
|
|
22450
22492
|
answer: [
|
|
22451
22493
|
{
|
|
22452
22494
|
type: "paragraph",
|
|
22453
|
-
children: [{ text: "
|
|
22495
|
+
children: [{ text: "You can contact our support team through the help center or by email. We’ll help you with setup, troubleshooting, billing questions, and product guidance so you can get the most out of the platform." }]
|
|
22454
22496
|
}
|
|
22455
22497
|
]
|
|
22456
22498
|
}
|
|
@@ -22821,7 +22863,7 @@ const Di = {
|
|
|
22821
22863
|
layoutMode: "structured",
|
|
22822
22864
|
preview: {
|
|
22823
22865
|
type: "image",
|
|
22824
|
-
url: ""
|
|
22866
|
+
url: "https://cdn.cntrl.site/component-assets/FAQ_List.png"
|
|
22825
22867
|
},
|
|
22826
22868
|
version: 1,
|
|
22827
22869
|
defaultSize: {
|
|
@@ -22837,7 +22879,7 @@ const Di = {
|
|
|
22837
22879
|
schema: Ju,
|
|
22838
22880
|
sourceCode: Qu
|
|
22839
22881
|
}, sp = [
|
|
22840
|
-
|
|
22882
|
+
Kl,
|
|
22841
22883
|
Jl,
|
|
22842
22884
|
Dc,
|
|
22843
22885
|
Xc,
|