@cntrl-site/components 1.0.66 → 1.0.67
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 +24 -24
- package/dist/index.mjs +838 -840
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, Fragment as lt, jsxs as K } from "react/jsx-runtime";
|
|
2
|
-
import Yn, { useState as Z, useEffect as Ae, useRef as
|
|
2
|
+
import Yn, { useState as Z, useEffect as Ae, useRef as B, useCallback as ye, useMemo as Ue, useLayoutEffect as Mt } from "react";
|
|
3
3
|
import yt from "classnames";
|
|
4
4
|
import { s as F, u as cn, b as Li, g as br, r as Ks } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
5
|
import { createPortal as Ii, flushSync as $d } from "react-dom";
|
|
@@ -466,7 +466,7 @@ var Wu = 5, _l = 200, Ec = "touchstart mousedown", Qr = "touchmove mousemove", e
|
|
|
466
466
|
function _u(e, t, n) {
|
|
467
467
|
var i = on(e), o = i.on, r = i.bind, a = e.root, c = n.i18n, s = {}, d = [], u = [], y = [], f, m, g;
|
|
468
468
|
function p() {
|
|
469
|
-
$(),
|
|
469
|
+
$(), G(), T();
|
|
470
470
|
}
|
|
471
471
|
function b() {
|
|
472
472
|
o(sn, L), o(sn, p), o(hn, T), r(document, Ec + " keydown", function(M) {
|
|
@@ -482,7 +482,7 @@ function _u(e, t, n) {
|
|
|
482
482
|
Vn(d), On(a, u), On(f, y), Fn([f, m], C), Fn(a, M ? C : ["style", Mo]);
|
|
483
483
|
}
|
|
484
484
|
function T() {
|
|
485
|
-
On(a, u), On(f, y), u =
|
|
485
|
+
On(a, u), On(f, y), u = j(Jr), y = j(Wl), kn(a, u), kn(f, y), Pt(a, $n, n.label), Pt(a, il, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function $() {
|
|
488
488
|
f = E("." + Wl), m = Do(f, "." + Cu), xo(f && m, "A track/list element is missing."), mr(d, Qs(m, "." + Nr + ":not(." + $c + ")")), wi({
|
|
@@ -501,7 +501,7 @@ function _u(e, t, n) {
|
|
|
501
501
|
slides: d
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function G() {
|
|
505
505
|
var M = a.id || yu(zo), C = n.role;
|
|
506
506
|
a.id = M, f.id = f.id || M + "-track", m.id = m.id || M + "-list", !Rn(a, Dn) && a.tagName !== "SECTION" && C && Pt(a, Dn, C), Pt(a, Mo, c.carousel), Pt(m, Dn, "presentation");
|
|
507
507
|
}
|
|
@@ -509,7 +509,7 @@ function _u(e, t, n) {
|
|
|
509
509
|
var C = nc(a, M);
|
|
510
510
|
return C && Fu(C, "." + Jr) === a ? C : void 0;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function j(M) {
|
|
513
513
|
return [M + "--" + n.type, M + "--" + n.direction, n.drag && M + "--draggable", n.isNavigation && M + "--nav", M === Jr && Ci];
|
|
514
514
|
}
|
|
515
515
|
return Io(s, {
|
|
@@ -520,8 +520,8 @@ function _u(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
var Xi = "slide", lo = "loop", Vo = "fade";
|
|
522
522
|
function Hu(e, t, n, i) {
|
|
523
|
-
var o = on(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, u = e.options, y = u.isNavigation, f = u.updateOnMove, m = u.i18n, g = u.pagination, p = u.slideFocus, b = s.Direction.resolve, L = Rn(i, "style"), T = Rn(i, $n), $ = n > -1,
|
|
524
|
-
function
|
|
523
|
+
var o = on(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, u = e.options, y = u.isNavigation, f = u.updateOnMove, m = u.i18n, g = u.pagination, p = u.slideFocus, b = s.Direction.resolve, L = Rn(i, "style"), T = Rn(i, $n), $ = n > -1, G = Do(i, "." + Tu), E;
|
|
524
|
+
function j() {
|
|
525
525
|
$ || (i.id = d.id + "-slide" + Ya(t + 1), Pt(i, Dn, g ? "tabpanel" : "group"), Pt(i, Mo, m.slide), Pt(i, $n, T || Ea(m.slideLabel, [t + 1, e.length]))), M();
|
|
526
526
|
}
|
|
527
527
|
function M() {
|
|
@@ -551,26 +551,26 @@ function Hu(e, t, n, i) {
|
|
|
551
551
|
w !== Rl(i, Ci) && (Nn(i, Ci, w), Pt(i, wc, y && w || ""), a(w ? rc : ac, re));
|
|
552
552
|
}
|
|
553
553
|
function J() {
|
|
554
|
-
var w =
|
|
554
|
+
var w = V(), I = !w && (!X() || $);
|
|
555
555
|
if (e.state.is([ro, _o]) || Pt(i, Sc, I || ""), Pt(Xa(i, u.focusableNodes || ""), Vi, I ? -1 : ""), p && Pt(i, Vi, I ? -1 : 0), w !== Rl(i, ka) && (Nn(i, ka, w), a(w ? lc : sc, re)), !w && document.activeElement === i) {
|
|
556
556
|
var N = s.Slides.getAt(e.index);
|
|
557
557
|
N && ec(N.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function A(w, I, N) {
|
|
561
|
-
In(N &&
|
|
561
|
+
In(N && G || i, w, I);
|
|
562
562
|
}
|
|
563
563
|
function X() {
|
|
564
564
|
var w = e.index;
|
|
565
565
|
return w === t || u.cloneStatus && w === n;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function V() {
|
|
568
568
|
if (e.is(Vo))
|
|
569
569
|
return X();
|
|
570
570
|
var w = wn(s.Elements.track), I = wn(i), N = b("left", !0), de = b("right", !0);
|
|
571
571
|
return Sr(w[N]) <= Po(I[N]) && Sr(I[de]) <= Po(w[de]);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function D(w, I) {
|
|
574
574
|
var N = yn(w - t);
|
|
575
575
|
return !$ && (u.rewind || e.is(lo)) && (N = ni(N, e.length - N)), N <= I;
|
|
576
576
|
}
|
|
@@ -578,13 +578,13 @@ function Hu(e, t, n, i) {
|
|
|
578
578
|
index: t,
|
|
579
579
|
slideIndex: n,
|
|
580
580
|
slide: i,
|
|
581
|
-
container:
|
|
581
|
+
container: G,
|
|
582
582
|
isClone: $,
|
|
583
|
-
mount:
|
|
583
|
+
mount: j,
|
|
584
584
|
destroy: C,
|
|
585
585
|
update: k,
|
|
586
586
|
style: A,
|
|
587
|
-
isWithin:
|
|
587
|
+
isWithin: D
|
|
588
588
|
};
|
|
589
589
|
return re;
|
|
590
590
|
}
|
|
@@ -610,23 +610,23 @@ function Nu(e, t, n) {
|
|
|
610
610
|
}
|
|
611
611
|
function p(k, R, J) {
|
|
612
612
|
var A = Hu(e, R, J, k);
|
|
613
|
-
A.mount(), u.push(A), u.sort(function(X,
|
|
614
|
-
return X.index -
|
|
613
|
+
A.mount(), u.push(A), u.sort(function(X, V) {
|
|
614
|
+
return X.index - V.index;
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function b(k) {
|
|
618
|
-
return k ?
|
|
618
|
+
return k ? j(function(R) {
|
|
619
619
|
return !R.isClone;
|
|
620
620
|
}) : u;
|
|
621
621
|
}
|
|
622
622
|
function L(k) {
|
|
623
623
|
var R = t.Controller, J = R.toIndex(k), A = R.hasFocus() ? 1 : n.perPage;
|
|
624
|
-
return
|
|
624
|
+
return j(function(X) {
|
|
625
625
|
return gr(X.index, J, J + A - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function T(k) {
|
|
629
|
-
return
|
|
629
|
+
return j(k)[0];
|
|
630
630
|
}
|
|
631
631
|
function $(k, R) {
|
|
632
632
|
Tn(k, function(J) {
|
|
@@ -636,15 +636,15 @@ function Nu(e, t, n) {
|
|
|
636
636
|
}
|
|
637
637
|
}), r(sn);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
$i(
|
|
639
|
+
function G(k) {
|
|
640
|
+
$i(j(k).map(function(R) {
|
|
641
641
|
return R.slide;
|
|
642
642
|
})), r(sn);
|
|
643
643
|
}
|
|
644
644
|
function E(k, R) {
|
|
645
645
|
b(R).forEach(k);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function j(k) {
|
|
648
648
|
return u.filter(Zs(k) ? k : function(R) {
|
|
649
649
|
return ti(k) ? To(R.slide, k) : qa(No(k), R.index);
|
|
650
650
|
});
|
|
@@ -677,9 +677,9 @@ function Nu(e, t, n) {
|
|
|
677
677
|
getIn: L,
|
|
678
678
|
getAt: T,
|
|
679
679
|
add: $,
|
|
680
|
-
remove:
|
|
680
|
+
remove: G,
|
|
681
681
|
forEach: E,
|
|
682
|
-
filter:
|
|
682
|
+
filter: j,
|
|
683
683
|
style: M,
|
|
684
684
|
getLength: O,
|
|
685
685
|
isEnough: v
|
|
@@ -688,20 +688,20 @@ function Nu(e, t, n) {
|
|
|
688
688
|
function Ou(e, t, n) {
|
|
689
689
|
var i = on(e), o = i.on, r = i.bind, a = i.emit, c = t.Slides, s = t.Direction.resolve, d = t.Elements, u = d.root, y = d.track, f = d.list, m = c.getAt, g = c.style, p, b, L;
|
|
690
690
|
function T() {
|
|
691
|
-
$(), r(window, "resize load", xu(Qt(a, Ui))), o([hn, sn], $), o(Ui,
|
|
691
|
+
$(), r(window, "resize load", xu(Qt(a, Ui))), o([hn, sn], $), o(Ui, G);
|
|
692
692
|
}
|
|
693
693
|
function $() {
|
|
694
|
-
p = n.direction === Hr, In(u, "maxWidth", ui(n.width)), In(y, s("paddingLeft"), E(!1)), In(y, s("paddingRight"), E(!0)),
|
|
694
|
+
p = n.direction === Hr, In(u, "maxWidth", ui(n.width)), In(y, s("paddingLeft"), E(!1)), In(y, s("paddingRight"), E(!0)), G(!0);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function G(re) {
|
|
697
697
|
var w = wn(u);
|
|
698
|
-
(re || b.width !== w.width || b.height !== w.height) && (In(y, "height",
|
|
698
|
+
(re || b.width !== w.width || b.height !== w.height) && (In(y, "height", j()), g(s("marginRight"), ui(n.gap)), g("width", C()), g("height", O(), !0), b = w, a(Er), L !== (L = D()) && (Nn(u, Mc, L), a(vu, L)));
|
|
699
699
|
}
|
|
700
700
|
function E(re) {
|
|
701
701
|
var w = n.padding, I = s(re ? "right" : "left");
|
|
702
702
|
return w && ui(w[I] || (Co(w) ? 0 : w)) || "0px";
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function j() {
|
|
705
705
|
var re = "";
|
|
706
706
|
return p && (re = M(), xo(re, "height or heightRatio is missing."), re = "calc(" + re + " - " + E(!1) + " - " + E(!0) + ")"), re;
|
|
707
707
|
}
|
|
@@ -740,21 +740,21 @@ function Ou(e, t, n) {
|
|
|
740
740
|
var re = m(0);
|
|
741
741
|
return re && parseFloat(In(re.slide, s("marginRight"))) || 0;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function V(re) {
|
|
744
744
|
return parseFloat(In(y, s("padding" + (re ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function D() {
|
|
747
747
|
return e.is(Vo) || A(!0) > k();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: T,
|
|
751
|
-
resize:
|
|
751
|
+
resize: G,
|
|
752
752
|
listSize: k,
|
|
753
753
|
slideSize: R,
|
|
754
754
|
sliderSize: A,
|
|
755
755
|
totalSize: J,
|
|
756
|
-
getPadding:
|
|
757
|
-
isOverflow:
|
|
756
|
+
getPadding: V,
|
|
757
|
+
isOverflow: D
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
var Du = 2;
|
|
@@ -778,9 +778,9 @@ function zu(e, t, n) {
|
|
|
778
778
|
if ($) {
|
|
779
779
|
for (; T.length < L; )
|
|
780
780
|
mr(T, T);
|
|
781
|
-
mr(T.slice(-L), T.slice(0, L)).forEach(function(
|
|
782
|
-
var
|
|
783
|
-
|
|
781
|
+
mr(T.slice(-L), T.slice(0, L)).forEach(function(G, E) {
|
|
782
|
+
var j = E < L, M = p(G.slide, E);
|
|
783
|
+
j ? Ua(M, T[0].slide) : Oo(r.list, M), mr(s, M), a.register(M, E - L + (j ? 0 : $), G.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -805,13 +805,13 @@ function zu(e, t, n) {
|
|
|
805
805
|
}
|
|
806
806
|
function Bu(e, t, n) {
|
|
807
807
|
var i = on(e), o = i.on, r = i.emit, a = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, u = c.totalSize, y = c.listSize, f = c.sliderSize, m = t.Direction, g = m.resolve, p = m.orient, b = t.Elements, L = b.list, T = b.track, $;
|
|
808
|
-
function
|
|
808
|
+
function G() {
|
|
809
809
|
$ = t.Transition, o([ai, Er, hn, sn], E);
|
|
810
810
|
}
|
|
811
811
|
function E() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), M(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function j(I, N, de, ae) {
|
|
815
815
|
I !== N && re(I > de) && (k(), C(v(A(), I > de), !0)), a(ro), r(jn, N, de, I), $.start(N, function() {
|
|
816
816
|
a(qi), r(ao, N, de, I), ae && ae();
|
|
817
817
|
});
|
|
@@ -833,7 +833,7 @@ function Bu(e, t, n) {
|
|
|
833
833
|
return I;
|
|
834
834
|
}
|
|
835
835
|
function v(I, N) {
|
|
836
|
-
var de = I -
|
|
836
|
+
var de = I - D(N), ae = f();
|
|
837
837
|
return I -= p(ae * (Po(yn(de) / ae) || 1)) * (N ? 1 : -1), I;
|
|
838
838
|
}
|
|
839
839
|
function k() {
|
|
@@ -850,7 +850,7 @@ function Bu(e, t, n) {
|
|
|
850
850
|
return de;
|
|
851
851
|
}
|
|
852
852
|
function J(I, N) {
|
|
853
|
-
var de = p(u(I - 1) -
|
|
853
|
+
var de = p(u(I - 1) - V(I));
|
|
854
854
|
return N ? X(de) : de;
|
|
855
855
|
}
|
|
856
856
|
function A() {
|
|
@@ -860,11 +860,11 @@ function Bu(e, t, n) {
|
|
|
860
860
|
function X(I) {
|
|
861
861
|
return n.trimSpace && e.is(Xi) && (I = Hi(I, 0, p(f(!0) - y()))), I;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function V(I) {
|
|
864
864
|
var N = n.focus;
|
|
865
865
|
return N === "center" ? (y() - s(I, !0)) / 2 : +N * s(I) || 0;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function D(I) {
|
|
868
868
|
return J(I ? t.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
870
|
function re(I) {
|
|
@@ -873,12 +873,12 @@ function Bu(e, t, n) {
|
|
|
873
873
|
}
|
|
874
874
|
function w(I, N) {
|
|
875
875
|
N = Ho(N) ? A() : N;
|
|
876
|
-
var de = I !== !0 && p(N) < p(
|
|
876
|
+
var de = I !== !0 && p(N) < p(D(!1)), ae = I !== !1 && p(N) > p(D(!0));
|
|
877
877
|
return de || ae;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
|
-
mount:
|
|
881
|
-
move:
|
|
880
|
+
mount: G,
|
|
881
|
+
move: j,
|
|
882
882
|
jump: M,
|
|
883
883
|
translate: C,
|
|
884
884
|
shift: v,
|
|
@@ -886,18 +886,18 @@ function Bu(e, t, n) {
|
|
|
886
886
|
toIndex: R,
|
|
887
887
|
toPosition: J,
|
|
888
888
|
getPosition: A,
|
|
889
|
-
getLimit:
|
|
889
|
+
getLimit: D,
|
|
890
890
|
exceededLimit: w,
|
|
891
891
|
reposition: E
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Vu(e, t, n) {
|
|
895
|
-
var i = on(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, y = u.isEnough, f = u.getLength, m = n.omitEnd, g = e.is(lo), p = e.is(Xi), b = Qt(A, !1), L = Qt(A, !0), T = n.start || 0, $,
|
|
895
|
+
var i = on(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, y = u.isEnough, f = u.getLength, m = n.omitEnd, g = e.is(lo), p = e.is(Xi), b = Qt(A, !1), L = Qt(A, !0), T = n.start || 0, $, G = T, E, j, M;
|
|
896
896
|
function C() {
|
|
897
897
|
O(), o([hn, sn, $r], O), o(Er, v);
|
|
898
898
|
}
|
|
899
899
|
function O() {
|
|
900
|
-
E = f(!0),
|
|
900
|
+
E = f(!0), j = n.perMove, M = n.perPage, $ = re();
|
|
901
901
|
var P = Hi(T, 0, m ? $ : E - 1);
|
|
902
902
|
P !== T && (T = P, a.reposition());
|
|
903
903
|
}
|
|
@@ -906,13 +906,13 @@ function Vu(e, t, n) {
|
|
|
906
906
|
}
|
|
907
907
|
function k(P, ie, Y) {
|
|
908
908
|
if (!se()) {
|
|
909
|
-
var Se = J(P), Ne =
|
|
910
|
-
Ne > -1 && (ie || Ne !== T) && (de(Ne), a.move(Se, Ne,
|
|
909
|
+
var Se = J(P), Ne = D(Se);
|
|
910
|
+
Ne > -1 && (ie || Ne !== T) && (de(Ne), a.move(Se, Ne, G, Y));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function R(P, ie, Y, Se) {
|
|
914
914
|
t.Scroll.scroll(P, ie, Y, function() {
|
|
915
|
-
var Ne =
|
|
915
|
+
var Ne = D(a.toIndex(c()));
|
|
916
916
|
de(m ? ni(Ne, $) : Ne), Se && Se();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
@@ -926,28 +926,28 @@ function Vu(e, t, n) {
|
|
|
926
926
|
return ie;
|
|
927
927
|
}
|
|
928
928
|
function A(P, ie) {
|
|
929
|
-
var Y =
|
|
930
|
-
return Se === -1 && p && !ic(c(), s(!P), 1) ? P ? 0 : $ : ie ? Se :
|
|
929
|
+
var Y = j || (S() ? 1 : M), Se = X(T + Y * (P ? -1 : 1), T, !(j || S()));
|
|
930
|
+
return Se === -1 && p && !ic(c(), s(!P), 1) ? P ? 0 : $ : ie ? Se : D(Se);
|
|
931
931
|
}
|
|
932
932
|
function X(P, ie, Y) {
|
|
933
933
|
if (y() || S()) {
|
|
934
|
-
var Se =
|
|
935
|
-
Se !== P && (ie = P, P = Se, Y = !1), P < 0 || P > $ ? !
|
|
934
|
+
var Se = V(P);
|
|
935
|
+
Se !== P && (ie = P, P = Se, Y = !1), P < 0 || P > $ ? !j && (gr(0, P, ie, !0) || gr($, ie, P, !0)) ? P = w(I(P)) : g ? P = Y ? P < 0 ? -(E % M || M) : E : P : n.rewind ? P = P < 0 ? $ : 0 : P = -1 : Y && P !== ie && (P = w(I(ie) + (P < ie ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
P = -1;
|
|
938
938
|
return P;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function V(P) {
|
|
941
941
|
if (p && n.trimSpace === "move" && P !== T)
|
|
942
942
|
for (var ie = c(); ie === d(P, !0) && gr(P, 0, e.length - 1, !n.rewind); )
|
|
943
943
|
P < T ? --P : ++P;
|
|
944
944
|
return P;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function D(P) {
|
|
947
947
|
return g ? (P + E) % E || 0 : P;
|
|
948
948
|
}
|
|
949
949
|
function re() {
|
|
950
|
-
for (var P = E - (S() || g &&
|
|
950
|
+
for (var P = E - (S() || g && j ? 1 : M); m && P-- > 0; )
|
|
951
951
|
if (d(E - 1, !0) !== d(P, !0)) {
|
|
952
952
|
P++;
|
|
953
953
|
break;
|
|
@@ -965,10 +965,10 @@ function Vu(e, t, n) {
|
|
|
965
965
|
return p ? Hi(ie, 0, $) : ie;
|
|
966
966
|
}
|
|
967
967
|
function de(P) {
|
|
968
|
-
P !== T && (
|
|
968
|
+
P !== T && (G = T, T = P);
|
|
969
969
|
}
|
|
970
970
|
function ae(P) {
|
|
971
|
-
return P ?
|
|
971
|
+
return P ? G : T;
|
|
972
972
|
}
|
|
973
973
|
function S() {
|
|
974
974
|
return !Ho(n.focus) || n.isNavigation;
|
|
@@ -997,10 +997,10 @@ var ju = "http://www.w3.org/2000/svg", Gu = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5
|
|
|
997
997
|
function qu(e, t, n) {
|
|
998
998
|
var i = on(e), o = i.on, r = i.bind, a = i.emit, c = n.classes, s = n.i18n, d = t.Elements, u = t.Controller, y = d.arrows, f = d.track, m = y, g = d.prev, p = d.next, b, L, T = {};
|
|
999
999
|
function $() {
|
|
1000
|
-
E(), o(hn,
|
|
1000
|
+
E(), o(hn, G);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1002
|
+
function G() {
|
|
1003
|
+
j(), $();
|
|
1004
1004
|
}
|
|
1005
1005
|
function E() {
|
|
1006
1006
|
var R = n.arrows;
|
|
@@ -1009,7 +1009,7 @@ function qu(e, t, n) {
|
|
|
1009
1009
|
next: p
|
|
1010
1010
|
}), Ro(m, R ? "" : "none"), kn(m, L = al + "--" + n.direction), R && (M(), k(), Pt([g, p], Bo, f.id), a(pc, g, p)));
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function j() {
|
|
1013
1013
|
i.destroy(), On(m, L), b ? ($i(y ? [g, p] : m), g = p = null) : Fn([g, p], rl);
|
|
1014
1014
|
}
|
|
1015
1015
|
function M() {
|
|
@@ -1027,14 +1027,14 @@ function qu(e, t, n) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
function k() {
|
|
1029
1029
|
if (g && p) {
|
|
1030
|
-
var R = e.index, J = u.getPrev(), A = u.getNext(), X = J > -1 && R < J ? s.last : s.prev,
|
|
1031
|
-
g.disabled = J < 0, p.disabled = A < 0, Pt(g, $n, X), Pt(p, $n,
|
|
1030
|
+
var R = e.index, J = u.getPrev(), A = u.getNext(), X = J > -1 && R < J ? s.last : s.prev, V = A > -1 && R > A ? s.first : s.next;
|
|
1031
|
+
g.disabled = J < 0, p.disabled = A < 0, Pt(g, $n, X), Pt(p, $n, V), a(mc, g, p, J, A);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
1035
1035
|
arrows: T,
|
|
1036
1036
|
mount: $,
|
|
1037
|
-
destroy:
|
|
1037
|
+
destroy: j,
|
|
1038
1038
|
update: k
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
@@ -1042,7 +1042,7 @@ var Uu = Ka + "-interval";
|
|
|
1042
1042
|
function Xu(e, t, n) {
|
|
1043
1043
|
var i = on(e), o = i.on, r = i.bind, a = i.emit, c = kr(n.interval, e.go.bind(e, ">"), M), s = c.isPaused, d = t.Elements, u = t.Elements, y = u.root, f = u.toggle, m = n.autoplay, g, p, b = m === "pause";
|
|
1044
1044
|
function L() {
|
|
1045
|
-
m && (T(), f && Pt(f, Bo, d.track.id), b || $(),
|
|
1045
|
+
m && (T(), f && Pt(f, Bo, d.track.id), b || $(), j());
|
|
1046
1046
|
}
|
|
1047
1047
|
function T() {
|
|
1048
1048
|
n.pauseOnHover && r(y, "mouseenter mouseleave", function(O) {
|
|
@@ -1050,19 +1050,19 @@ function Xu(e, t, n) {
|
|
|
1050
1050
|
}), n.pauseOnFocus && r(y, "focusin focusout", function(O) {
|
|
1051
1051
|
p = O.type === "focusin", E();
|
|
1052
1052
|
}), f && r(f, "click", function() {
|
|
1053
|
-
b ? $() :
|
|
1053
|
+
b ? $() : G(!0);
|
|
1054
1054
|
}), o([jn, Ar, sn], c.rewind), o(jn, C);
|
|
1055
1055
|
}
|
|
1056
1056
|
function $() {
|
|
1057
|
-
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), p = g = b = !1,
|
|
1057
|
+
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), p = g = b = !1, j(), a(el));
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
O === void 0 && (O = !0), b = !!O,
|
|
1059
|
+
function G(O) {
|
|
1060
|
+
O === void 0 && (O = !0), b = !!O, j(), s() || (c.pause(), a(tl));
|
|
1061
1061
|
}
|
|
1062
1062
|
function E() {
|
|
1063
|
-
b || (g || p ?
|
|
1063
|
+
b || (g || p ? G(!1) : $());
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function j() {
|
|
1066
1066
|
f && (Nn(f, Ci, !b), Pt(f, $n, n.i18n[b ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function M(O) {
|
|
@@ -1077,7 +1077,7 @@ function Xu(e, t, n) {
|
|
|
1077
1077
|
mount: L,
|
|
1078
1078
|
destroy: c.cancel,
|
|
1079
1079
|
play: $,
|
|
1080
|
-
pause:
|
|
1080
|
+
pause: G,
|
|
1081
1081
|
isPaused: s
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
@@ -1104,11 +1104,11 @@ var Yu = 10, Zu = 600, Ju = 0.6, Qu = 1.5, ep = 800;
|
|
|
1104
1104
|
function tp(e, t, n) {
|
|
1105
1105
|
var i = on(e), o = i.on, r = i.emit, a = e.state.set, c = t.Move, s = c.getPosition, d = c.getLimit, u = c.exceededLimit, y = c.translate, f = e.is(Xi), m, g, p = 1;
|
|
1106
1106
|
function b() {
|
|
1107
|
-
o(jn,
|
|
1107
|
+
o(jn, G), o([hn, sn], E);
|
|
1108
1108
|
}
|
|
1109
1109
|
function L(M, C, O, v, k) {
|
|
1110
1110
|
var R = s();
|
|
1111
|
-
if (
|
|
1111
|
+
if (G(), O && (!f || !u())) {
|
|
1112
1112
|
var J = t.Layout.sliderSize(), A = Ma(M) * J * Sr(yn(M) / J) || 0;
|
|
1113
1113
|
M = c.toPosition(t.Controller.toDest(M % J)) + A;
|
|
1114
1114
|
}
|
|
@@ -1119,22 +1119,22 @@ function tp(e, t, n) {
|
|
|
1119
1119
|
a(qi), g && g(), r(Ri);
|
|
1120
1120
|
}
|
|
1121
1121
|
function $(M, C, O, v) {
|
|
1122
|
-
var k = s(), R = M + (C - M) *
|
|
1122
|
+
var k = s(), R = M + (C - M) * j(v), J = (R - k) * p;
|
|
1123
1123
|
y(k + J), f && !O && u() && (p *= Ju, yn(J) < Yu && L(d(u(!0)), Zu, !1, g, !0));
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function G() {
|
|
1126
1126
|
m && m.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
function E() {
|
|
1129
|
-
m && !m.isPaused() && (
|
|
1129
|
+
m && !m.isPaused() && (G(), T());
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function j(M) {
|
|
1132
1132
|
var C = n.easingFunc;
|
|
1133
1133
|
return C ? C(M) : 1 - Math.pow(1 - M, 4);
|
|
1134
1134
|
}
|
|
1135
1135
|
return {
|
|
1136
1136
|
mount: b,
|
|
1137
|
-
destroy:
|
|
1137
|
+
destroy: G,
|
|
1138
1138
|
scroll: L,
|
|
1139
1139
|
cancel: E
|
|
1140
1140
|
};
|
|
@@ -1144,20 +1144,20 @@ var Ni = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function np(e, t, n) {
|
|
1147
|
-
var i = on(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, y = t.Controller, f = t.Elements.track, m = t.Media.reduce, g = t.Direction, p = g.resolve, b = g.orient, L = d.getPosition, T = d.exceededLimit, $,
|
|
1147
|
+
var i = on(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, y = t.Controller, f = t.Elements.track, m = t.Media.reduce, g = t.Direction, p = g.resolve, b = g.orient, L = d.getPosition, T = d.exceededLimit, $, G, E, j, M, C = !1, O, v, k;
|
|
1148
1148
|
function R() {
|
|
1149
|
-
a(f, Qr, Ra, Ni), a(f, ea, Ra, Ni), a(f, Ec, A, Ni), a(f, "click",
|
|
1149
|
+
a(f, Qr, Ra, Ni), a(f, ea, Ra, Ni), a(f, Ec, A, Ni), a(f, "click", D, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), a(f, "dragstart", Hn), o([ai, hn], J);
|
|
1152
1152
|
}
|
|
1153
1153
|
function J() {
|
|
1154
1154
|
var U = n.drag;
|
|
1155
|
-
ue(!U),
|
|
1155
|
+
ue(!U), j = U === "free";
|
|
1156
1156
|
}
|
|
1157
1157
|
function A(U) {
|
|
1158
1158
|
if (O = !1, !v) {
|
|
1159
1159
|
var ne = Ne(U);
|
|
1160
|
-
Se(U.target) && (ne || !U.button) && (y.isBusy() ? Hn(U, !0) : (k = ne ? f : window, M = s.is([ro, _o]), E = null, a(k, Qr, X, Ni), a(k, ea,
|
|
1160
|
+
Se(U.target) && (ne || !U.button) && (y.isBusy() ? Hn(U, !0) : (k = ne ? f : window, M = s.is([ro, _o]), E = null, a(k, Qr, X, Ni), a(k, ea, V, Ni), d.cancel(), u.cancel(), re(U)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function X(U) {
|
|
@@ -1168,18 +1168,18 @@ function np(e, t, n) {
|
|
|
1168
1168
|
(ne || Q) && re(U), O = !0, r(dc), Hn(U);
|
|
1169
1169
|
} else N(U) && (M = I(U), Hn(U));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
s.is(pr) && (s.set(qi), r(uc)), M && (w(U), Hn(U)), c(k, Qr, X), c(k, ea,
|
|
1171
|
+
function V(U) {
|
|
1172
|
+
s.is(pr) && (s.set(qi), r(uc)), M && (w(U), Hn(U)), c(k, Qr, X), c(k, ea, V), M = !1;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function D(U) {
|
|
1175
1175
|
!v && O && Hn(U, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function re(U) {
|
|
1178
|
-
E =
|
|
1178
|
+
E = G, G = U, $ = L();
|
|
1179
1179
|
}
|
|
1180
1180
|
function w(U) {
|
|
1181
1181
|
var ne = de(U), Q = ae(ne), We = n.rewind && n.rewindByDrag;
|
|
1182
|
-
m(!1),
|
|
1182
|
+
m(!1), j ? y.scroll(Q, 0, n.snap) : e.is(Vo) ? y.go(b(Ma(ne)) < 0 ? We ? "<" : "-" : We ? ">" : "+") : e.is(Xi) && C && We ? y.go(T(!0) ? ">" : "<") : y.go(y.toDest(Q), !0), m(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function I(U) {
|
|
1185
1185
|
var ne = n.dragMinThreshold, Q = Co(ne), We = Q && ne.mouse || 0, Le = (Q ? ne.touch : +ne) || 10;
|
|
@@ -1197,7 +1197,7 @@ function np(e, t, n) {
|
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function ae(U) {
|
|
1200
|
-
return L() + Ma(U) * ni(yn(U) * (n.flickPower || 600),
|
|
1200
|
+
return L() + Ma(U) * ni(yn(U) * (n.flickPower || 600), j ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function S(U, ne) {
|
|
1203
1203
|
return ie(U, ne) - ie(P(U), ne);
|
|
@@ -1206,7 +1206,7 @@ function np(e, t, n) {
|
|
|
1206
1206
|
return Pa(U) - Pa(P(U));
|
|
1207
1207
|
}
|
|
1208
1208
|
function P(U) {
|
|
1209
|
-
return
|
|
1209
|
+
return G === U && E || G;
|
|
1210
1210
|
}
|
|
1211
1211
|
function ie(U, ne) {
|
|
1212
1212
|
return (Ne(U) ? U.changedTouches[0] : U)["page" + p(ne ? "Y" : "X")];
|
|
@@ -1289,9 +1289,9 @@ function ap(e, t, n) {
|
|
|
1289
1289
|
function m() {
|
|
1290
1290
|
t.Slides.forEach(function(T) {
|
|
1291
1291
|
Xa(T.slide, rp).forEach(function($) {
|
|
1292
|
-
var
|
|
1293
|
-
if (
|
|
1294
|
-
var
|
|
1292
|
+
var G = Rn($, wo), E = Rn($, hr);
|
|
1293
|
+
if (G !== $.src || E !== $.srcset) {
|
|
1294
|
+
var j = n.classes.spinner, M = $.parentElement, C = Do(M, "." + j) || Bi("span", j, M);
|
|
1295
1295
|
u.push([$, T, C]), $.src || Ro($, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
@@ -1308,8 +1308,8 @@ function ap(e, t, n) {
|
|
|
1308
1308
|
kn(T[1].slide, Fa), a($, "load error", Qt(b, T)), Pt($, "src", Rn($, wo)), Pt($, "srcset", Rn($, hr)), Fn($, wo), Fn($, hr);
|
|
1309
1309
|
}
|
|
1310
1310
|
function b(T, $) {
|
|
1311
|
-
var
|
|
1312
|
-
On(E.slide, Fa), $.type !== "error" && ($i(T[2]), Ro(
|
|
1311
|
+
var G = T[0], E = T[1];
|
|
1312
|
+
On(E.slide, Fa), $.type !== "error" && ($i(T[2]), Ro(G, ""), c(nl, G, E), c(Ui)), s && L();
|
|
1313
1313
|
}
|
|
1314
1314
|
function L() {
|
|
1315
1315
|
u.length && p(u.shift());
|
|
@@ -1325,7 +1325,7 @@ function lp(e, t, n) {
|
|
|
1325
1325
|
function T() {
|
|
1326
1326
|
$(), o([hn, sn, $r], T);
|
|
1327
1327
|
var v = n.pagination;
|
|
1328
|
-
g && Ro(g, v ? "" : "none"), v && (o([jn, Ar, Ri], O),
|
|
1328
|
+
g && Ro(g, v ? "" : "none"), v && (o([jn, Ar, Ri], O), G(), O(), r(gc, {
|
|
1329
1329
|
list: b,
|
|
1330
1330
|
items: p
|
|
1331
1331
|
}, C(e.index)));
|
|
@@ -1333,19 +1333,19 @@ function lp(e, t, n) {
|
|
|
1333
1333
|
function $() {
|
|
1334
1334
|
b && ($i(g ? ri(b.children) : b), On(b, L), Vn(p), b = null), i.destroy();
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function G() {
|
|
1337
1337
|
var v = e.length, k = n.classes, R = n.i18n, J = n.perPage, A = u() ? d.getEnd() + 1 : Po(v / J);
|
|
1338
1338
|
b = g || Bi("ul", k.pagination, s.track.parentElement), kn(b, L = Dr + "--" + M()), Pt(b, Dn, "tablist"), Pt(b, $n, R.select), Pt(b, ol, M() === Hr ? "vertical" : "");
|
|
1339
1339
|
for (var X = 0; X < A; X++) {
|
|
1340
|
-
var
|
|
1340
|
+
var V = Bi("li", null, b), D = Bi("button", {
|
|
1341
1341
|
class: k.page,
|
|
1342
1342
|
type: "button"
|
|
1343
|
-
},
|
|
1343
|
+
}, V), re = c.getIn(X).map(function(I) {
|
|
1344
1344
|
return I.slide.id;
|
|
1345
1345
|
}), w = !u() && J > 1 ? R.pageX : R.slideX;
|
|
1346
|
-
a(
|
|
1347
|
-
li:
|
|
1348
|
-
button:
|
|
1346
|
+
a(D, "click", Qt(E, X)), n.paginationKeyboard && a(D, "keydown", Qt(j, X)), Pt(V, Dn, "presentation"), Pt(D, Dn, "tab"), Pt(D, Bo, re.join(" ")), Pt(D, $n, Ea(w, X + 1)), Pt(D, Vi, -1), p.push({
|
|
1347
|
+
li: V,
|
|
1348
|
+
button: D,
|
|
1349
1349
|
page: X
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
@@ -1353,11 +1353,11 @@ function lp(e, t, n) {
|
|
|
1353
1353
|
function E(v) {
|
|
1354
1354
|
f(">" + v, !0);
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function j(v, k) {
|
|
1357
1357
|
var R = p.length, J = ll(k), A = M(), X = -1;
|
|
1358
1358
|
J === m(_r, !1, A) ? X = ++v % R : J === m(Wr, !1, A) ? X = (--v + R) % R : J === "Home" ? X = 0 : J === "End" && (X = R - 1);
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1359
|
+
var V = p[X];
|
|
1360
|
+
V && (ec(V.button), f(">" + X), Hn(k, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function M() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1883,22 +1883,22 @@ const Lp = "SvgImage-module__svg___q3xE-", Ip = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": ht.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1886
|
-
const [o, r] = Z(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: y, textAppearance: f, color: m } = n.imageCaption ?? {}, [g, p] = Z(void 0), [b, L] = Z(null), [T, $] = Z(0), [
|
|
1887
|
-
o && o.go(
|
|
1886
|
+
const [o, r] = Z(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: y, textAppearance: f, color: m } = n.imageCaption ?? {}, [g, p] = Z(void 0), [b, L] = Z(null), [T, $] = Z(0), [G, E] = Z(0), { direction: j, transition: M, controls: C, pagination: O, imageCaption: v, triggers: k } = e, R = B(M.type), { x: J, y: A } = e.controls.offset, X = (V) => {
|
|
1887
|
+
o && o.go(V);
|
|
1888
1888
|
};
|
|
1889
1889
|
return Ae(() => {
|
|
1890
1890
|
if (!b) return;
|
|
1891
|
-
const
|
|
1891
|
+
const V = new ResizeObserver((D) => {
|
|
1892
1892
|
if (!o) return;
|
|
1893
|
-
const [re] =
|
|
1893
|
+
const [re] = D;
|
|
1894
1894
|
p({
|
|
1895
1895
|
width: Math.round(re.contentRect.width),
|
|
1896
1896
|
height: Math.round(re.contentRect.height)
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
|
-
return
|
|
1899
|
+
return V.observe(b), () => V.unobserve(b);
|
|
1900
1900
|
}, [b]), Ae(() => {
|
|
1901
|
-
!o || R.current === M.type || (E((
|
|
1901
|
+
!o || R.current === M.type || (E((V) => V + 1), R.current = M.type);
|
|
1902
1902
|
}, [M.type]), /* @__PURE__ */ l("div", { className: yt(ht.wrapper, { [ht.editor]: i }), ref: L, children: /* @__PURE__ */ K(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
@@ -1917,12 +1917,12 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1917
1917
|
"div",
|
|
1918
1918
|
{
|
|
1919
1919
|
className: ht.captionTextWrapper,
|
|
1920
|
-
children: t.map((
|
|
1920
|
+
children: t.map((V, D) => /* @__PURE__ */ l(
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
1923
|
className: yt(ht.captionText, Mp[v.alignment], {
|
|
1924
|
-
[ht.withPointerEvents]:
|
|
1925
|
-
[ht.active]:
|
|
1924
|
+
[ht.withPointerEvents]: D === T && i,
|
|
1925
|
+
[ht.active]: D === T
|
|
1926
1926
|
}),
|
|
1927
1927
|
style: {
|
|
1928
1928
|
fontFamily: zr(c.fontFamily),
|
|
@@ -1952,11 +1952,11 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1952
1952
|
top: F(v.offset.y, i),
|
|
1953
1953
|
left: F(v.offset.x, i)
|
|
1954
1954
|
},
|
|
1955
|
-
children: /* @__PURE__ */ l(Ti, { content:
|
|
1955
|
+
children: /* @__PURE__ */ l(Ti, { content: V.imageCaption })
|
|
1956
1956
|
}
|
|
1957
1957
|
)
|
|
1958
1958
|
},
|
|
1959
|
-
|
|
1959
|
+
D
|
|
1960
1960
|
))
|
|
1961
1961
|
}
|
|
1962
1962
|
)
|
|
@@ -1965,8 +1965,8 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1965
1965
|
/* @__PURE__ */ l(
|
|
1966
1966
|
dl,
|
|
1967
1967
|
{
|
|
1968
|
-
onMove: (
|
|
1969
|
-
$(
|
|
1968
|
+
onMove: (V) => {
|
|
1969
|
+
$(V.index);
|
|
1970
1970
|
},
|
|
1971
1971
|
ref: r,
|
|
1972
1972
|
options: {
|
|
@@ -1976,7 +1976,7 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1976
1976
|
...k.autoPlay !== null && {
|
|
1977
1977
|
interval: parseInt(k.autoPlay) * 1e3
|
|
1978
1978
|
},
|
|
1979
|
-
direction:
|
|
1979
|
+
direction: j === "horiz" || M.type === "fade in" ? "ltr" : "ttb",
|
|
1980
1980
|
pagination: !1,
|
|
1981
1981
|
drag: k.triggersList.drag,
|
|
1982
1982
|
perPage: 1,
|
|
@@ -1985,7 +1985,7 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1985
1985
|
type: M.type === "fade in" ? "fade" : "loop",
|
|
1986
1986
|
rewind: !0
|
|
1987
1987
|
},
|
|
1988
|
-
children: t.map((
|
|
1988
|
+
children: t.map((V, D) => /* @__PURE__ */ l(ul, { children: /* @__PURE__ */ l(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
1991
1991
|
className: ht.sliderItem,
|
|
@@ -1997,26 +1997,26 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1997
1997
|
"img",
|
|
1998
1998
|
{
|
|
1999
1999
|
className: yt(ht.sliderImage, {
|
|
2000
|
-
[ht.contain]:
|
|
2001
|
-
[ht.cover]:
|
|
2000
|
+
[ht.contain]: V.image.objectFit === "contain",
|
|
2001
|
+
[ht.cover]: V.image.objectFit === "cover"
|
|
2002
2002
|
}),
|
|
2003
|
-
src:
|
|
2004
|
-
alt:
|
|
2003
|
+
src: V.image.url,
|
|
2004
|
+
alt: V.image.name ?? ""
|
|
2005
2005
|
}
|
|
2006
2006
|
)
|
|
2007
2007
|
}
|
|
2008
2008
|
)
|
|
2009
2009
|
}
|
|
2010
|
-
) },
|
|
2010
|
+
) }, D))
|
|
2011
2011
|
},
|
|
2012
|
-
|
|
2012
|
+
G
|
|
2013
2013
|
),
|
|
2014
2014
|
C.isActive && /* @__PURE__ */ K(lt, { children: [
|
|
2015
2015
|
/* @__PURE__ */ l(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
2018
|
className: yt(ht.arrow, {
|
|
2019
|
-
[ht.arrowVertical]:
|
|
2019
|
+
[ht.arrowVertical]: j === "vert",
|
|
2020
2020
|
[ht.hoverArrow]: C.show === "on hover"
|
|
2021
2021
|
}),
|
|
2022
2022
|
style: {
|
|
@@ -2031,7 +2031,7 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
className: ht.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
|
-
transform: `translate(${F(J, i)}, ${F(A * (
|
|
2034
|
+
transform: `translate(${F(J, i)}, ${F(A * (j === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${j === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
2036
2036
|
children: [
|
|
2037
2037
|
C.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2053,7 +2053,7 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2053
2053
|
"div",
|
|
2054
2054
|
{
|
|
2055
2055
|
className: yt(ht.arrow, ht.nextArrow, {
|
|
2056
|
-
[ht.arrowVertical]:
|
|
2056
|
+
[ht.arrowVertical]: j === "vert",
|
|
2057
2057
|
[ht.hoverArrow]: C.show === "on hover"
|
|
2058
2058
|
}),
|
|
2059
2059
|
style: {
|
|
@@ -2066,7 +2066,7 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2066
2066
|
className: ht.arrowInner,
|
|
2067
2067
|
onClick: () => X("+1"),
|
|
2068
2068
|
style: {
|
|
2069
|
-
transform: `translate(${F(J * (
|
|
2069
|
+
transform: `translate(${F(J * (j === "horiz" ? -1 : 1), i)}, ${F(A, i)}) scale(${e.controls.scale / 100}) rotate(${j === "horiz" ? "0deg" : "90deg"})`
|
|
2070
2070
|
},
|
|
2071
2071
|
children: [
|
|
2072
2072
|
C.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2098,15 +2098,15 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2098
2098
|
"div",
|
|
2099
2099
|
{
|
|
2100
2100
|
className: yt(ht.pagination, {
|
|
2101
|
-
[ht.paginationInsideBottom]: O.position === "inside-1" &&
|
|
2102
|
-
[ht.paginationInsideTop]: O.position === "inside-2" &&
|
|
2103
|
-
[ht.paginationOutsideBottom]: O.position === "outside-1" &&
|
|
2104
|
-
[ht.paginationOutsideTop]: O.position === "outside-2" &&
|
|
2105
|
-
[ht.paginationInsideLeft]: O.position === "inside-1" &&
|
|
2106
|
-
[ht.paginationInsideRight]: O.position === "inside-2" &&
|
|
2107
|
-
[ht.paginationOutsideLeft]: O.position === "outside-1" &&
|
|
2108
|
-
[ht.paginationOutsideRight]: O.position === "outside-2" &&
|
|
2109
|
-
[ht.paginationVertical]:
|
|
2101
|
+
[ht.paginationInsideBottom]: O.position === "inside-1" && j === "horiz",
|
|
2102
|
+
[ht.paginationInsideTop]: O.position === "inside-2" && j === "horiz",
|
|
2103
|
+
[ht.paginationOutsideBottom]: O.position === "outside-1" && j === "horiz",
|
|
2104
|
+
[ht.paginationOutsideTop]: O.position === "outside-2" && j === "horiz",
|
|
2105
|
+
[ht.paginationInsideLeft]: O.position === "inside-1" && j === "vert",
|
|
2106
|
+
[ht.paginationInsideRight]: O.position === "inside-2" && j === "vert",
|
|
2107
|
+
[ht.paginationOutsideLeft]: O.position === "outside-1" && j === "vert",
|
|
2108
|
+
[ht.paginationOutsideRight]: O.position === "outside-2" && j === "vert",
|
|
2109
|
+
[ht.paginationVertical]: j === "vert"
|
|
2110
2110
|
}),
|
|
2111
2111
|
children: /* @__PURE__ */ l(
|
|
2112
2112
|
"div",
|
|
@@ -2114,29 +2114,29 @@ function Ep({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2114
2114
|
className: ht.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
backgroundColor: O.colors[2],
|
|
2117
|
-
transform: `scale(${O.scale / 100}) translate(${F(O.offset.x, i)}, ${F(O.offset.y, i)}) rotate(${
|
|
2117
|
+
transform: `scale(${O.scale / 100}) translate(${F(O.offset.x, i)}, ${F(O.offset.y, i)}) rotate(${j === "horiz" ? "0deg" : "90deg"})`
|
|
2118
2118
|
},
|
|
2119
|
-
children: t.map((
|
|
2119
|
+
children: t.map((V, D) => /* @__PURE__ */ l(
|
|
2120
2120
|
"button",
|
|
2121
2121
|
{
|
|
2122
2122
|
onClick: () => {
|
|
2123
|
-
o && o.go(
|
|
2123
|
+
o && o.go(D);
|
|
2124
2124
|
},
|
|
2125
2125
|
className: yt(ht.paginationItem),
|
|
2126
2126
|
children: /* @__PURE__ */ l(
|
|
2127
2127
|
"div",
|
|
2128
2128
|
{
|
|
2129
2129
|
className: yt(ht.dot, {
|
|
2130
|
-
[ht.activeDot]:
|
|
2130
|
+
[ht.activeDot]: D === T
|
|
2131
2131
|
}),
|
|
2132
2132
|
style: {
|
|
2133
|
-
backgroundColor:
|
|
2133
|
+
backgroundColor: D === T ? O.colors[0] : O.colors[1],
|
|
2134
2134
|
"--pagination-hover-color": O.hover
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
)
|
|
2138
2138
|
},
|
|
2139
|
-
|
|
2139
|
+
D
|
|
2140
2140
|
))
|
|
2141
2141
|
}
|
|
2142
2142
|
)
|
|
@@ -2803,10 +2803,10 @@ async function Hp(e, t, n, i) {
|
|
|
2803
2803
|
return { width: o, height: r, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function Np({ settings: e, content: t, isEditor: n }) {
|
|
2806
|
-
const [i, o] = Z(null), [r, a] = Z([]), [c, s] = Z(0), d =
|
|
2806
|
+
const [i, o] = Z(null), [r, a] = Z([]), [c, s] = Z(0), d = B(0), [u, y] = Z({ x: 0, y: 0 }), [f, m] = Z(1), [g, p] = Z("none"), b = B({ x: 0, y: 0 }), [L, T] = Z(!1), { sizeType: $, imageWidth: G, randomRangeImageWidth: E } = e.imageSize, { revealPosition: j, visible: M } = e.position, { cursorType: C, target: O, defaultCursorScale: v, defaultCursor: k, hoverCursorScale: R, hoverCursor: J } = e.cursor;
|
|
2807
2807
|
Ae(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
|
-
const
|
|
2809
|
+
const V = (w, I) => {
|
|
2810
2810
|
const N = i.getBoundingClientRect(), de = w - N.left, ae = I - N.top;
|
|
2811
2811
|
if (y({ x: de, y: ae }), C === "system") {
|
|
2812
2812
|
p("none"), m(1);
|
|
@@ -2819,13 +2819,13 @@ function Np({ settings: e, content: t, isEditor: n }) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
const ie = zl(S, se, r) || O === "area" ? { img: J ?? "none", scale: R } : { img: k ?? "none", scale: v };
|
|
2821
2821
|
p(ie.img), m(ie.scale);
|
|
2822
|
-
},
|
|
2823
|
-
w.stopPropagation(), b.current = { x: w.clientX, y: w.clientY },
|
|
2822
|
+
}, D = (w) => {
|
|
2823
|
+
w.stopPropagation(), b.current = { x: w.clientX, y: w.clientY }, V(w.clientX, w.clientY);
|
|
2824
2824
|
}, re = () => {
|
|
2825
|
-
L &&
|
|
2825
|
+
L && V(b.current.x, b.current.y);
|
|
2826
2826
|
};
|
|
2827
|
-
return i.addEventListener("mousemove",
|
|
2828
|
-
i.removeEventListener("mousemove",
|
|
2827
|
+
return i.addEventListener("mousemove", D), window.addEventListener("scroll", re, !0), () => {
|
|
2828
|
+
i.removeEventListener("mousemove", D), window.removeEventListener("scroll", re, !0);
|
|
2829
2829
|
};
|
|
2830
2830
|
}, [
|
|
2831
2831
|
i,
|
|
@@ -2841,21 +2841,21 @@ function Np({ settings: e, content: t, isEditor: n }) {
|
|
|
2841
2841
|
]), Ae(() => {
|
|
2842
2842
|
L || (p("none"), m(0));
|
|
2843
2843
|
}, [L]);
|
|
2844
|
-
const A = async (
|
|
2844
|
+
const A = async (V, D, re, w = {}) => {
|
|
2845
2845
|
const { width: I, height: N, finalWidth: de } = await Hp(
|
|
2846
|
-
|
|
2846
|
+
V.image.url,
|
|
2847
2847
|
$,
|
|
2848
|
-
|
|
2848
|
+
G,
|
|
2849
2849
|
E
|
|
2850
2850
|
);
|
|
2851
2851
|
let ae = 0, S = 0;
|
|
2852
|
-
|
|
2853
|
-
const se = Math.min(Math.max(ae, I / 2),
|
|
2852
|
+
j === "same" ? (ae = D / 2, S = re / 2) : (ae = w.x ?? Math.random() * D, S = w.y ?? Math.random() * re);
|
|
2853
|
+
const se = Math.min(Math.max(ae, I / 2), D - I / 2), P = Math.min(Math.max(S, N / 2), re - N / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: d.current++,
|
|
2856
|
-
url:
|
|
2857
|
-
link:
|
|
2858
|
-
name:
|
|
2856
|
+
url: V.image.url,
|
|
2857
|
+
link: V.link,
|
|
2858
|
+
name: V.image.name,
|
|
2859
2859
|
x: se,
|
|
2860
2860
|
y: P,
|
|
2861
2861
|
width: de
|
|
@@ -2863,24 +2863,24 @@ function Np({ settings: e, content: t, isEditor: n }) {
|
|
|
2863
2863
|
};
|
|
2864
2864
|
return Ae(() => {
|
|
2865
2865
|
if (!i || t.length === 0) return;
|
|
2866
|
-
const
|
|
2866
|
+
const V = i.getBoundingClientRect(), D = V.width, re = V.height, w = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const N = t[0], de = await A(N,
|
|
2868
|
+
const N = t[0], de = await A(N, D, re);
|
|
2869
2869
|
w.push(de), a(w), s(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [$,
|
|
2872
|
-
M === "last One" && a((
|
|
2871
|
+
}, [$, G, E, j, i]), Ae(() => {
|
|
2872
|
+
M === "last One" && a((V) => V.length > 0 ? [V[V.length - 1]] : []);
|
|
2873
2873
|
}, [M]), /* @__PURE__ */ K(
|
|
2874
2874
|
"div",
|
|
2875
2875
|
{
|
|
2876
2876
|
ref: o,
|
|
2877
|
-
onClick: async (
|
|
2877
|
+
onClick: async (V) => {
|
|
2878
2878
|
if (!i) return;
|
|
2879
|
-
const
|
|
2879
|
+
const D = i.getBoundingClientRect(), re = V.clientX - D.left, w = V.clientY - D.top;
|
|
2880
2880
|
if (O === "image" && !zl(re, w, r)) return;
|
|
2881
2881
|
let I = 0, N = 0;
|
|
2882
|
-
|
|
2883
|
-
const de = t[c], ae = await A(de,
|
|
2882
|
+
j === "on Click" ? (I = re, N = w) : j === "same" ? (I = D.width / 2, N = D.height / 2) : (I = Math.random() * D.width, N = Math.random() * D.height);
|
|
2883
|
+
const de = t[c], ae = await A(de, D.width, D.height, { x: I, y: N });
|
|
2884
2884
|
a((S) => M === "all" ? [...S, ae] : [ae]), s((S) => S >= t.length - 1 ? 0 : S + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => T(!0),
|
|
@@ -2888,38 +2888,38 @@ function Np({ settings: e, content: t, isEditor: n }) {
|
|
|
2888
2888
|
className: Ei.imageRevealSlider,
|
|
2889
2889
|
style: { cursor: g === "none" ? "default" : "none" },
|
|
2890
2890
|
children: [
|
|
2891
|
-
r.map((
|
|
2891
|
+
r.map((V) => /* @__PURE__ */ l(
|
|
2892
2892
|
"div",
|
|
2893
2893
|
{
|
|
2894
2894
|
className: Ei.wrapper,
|
|
2895
2895
|
style: {
|
|
2896
|
-
top: `${
|
|
2897
|
-
left: `${
|
|
2896
|
+
top: `${V.y}px`,
|
|
2897
|
+
left: `${V.x}px`,
|
|
2898
2898
|
position: "absolute",
|
|
2899
2899
|
transform: "translate(-50%, -50%)",
|
|
2900
|
-
width:
|
|
2900
|
+
width: V.width ?? "auto",
|
|
2901
2901
|
height: "auto",
|
|
2902
2902
|
cursor: g === "none" ? "default" : "none"
|
|
2903
2903
|
},
|
|
2904
|
-
children: O === "area" &&
|
|
2904
|
+
children: O === "area" && V.link ? /* @__PURE__ */ l("a", { href: V.link, target: "_blank", className: Ei.link, children: /* @__PURE__ */ l(
|
|
2905
2905
|
"img",
|
|
2906
2906
|
{
|
|
2907
|
-
src:
|
|
2908
|
-
alt:
|
|
2907
|
+
src: V.url,
|
|
2908
|
+
alt: V.name,
|
|
2909
2909
|
className: Ei.image
|
|
2910
2910
|
},
|
|
2911
|
-
|
|
2911
|
+
V.id
|
|
2912
2912
|
) }) : /* @__PURE__ */ l(
|
|
2913
2913
|
"img",
|
|
2914
2914
|
{
|
|
2915
|
-
src:
|
|
2916
|
-
alt:
|
|
2915
|
+
src: V.url,
|
|
2916
|
+
alt: V.name,
|
|
2917
2917
|
className: Ei.image
|
|
2918
2918
|
},
|
|
2919
|
-
|
|
2919
|
+
V.id
|
|
2920
2920
|
)
|
|
2921
2921
|
},
|
|
2922
|
-
|
|
2922
|
+
V.id
|
|
2923
2923
|
)),
|
|
2924
2924
|
L && /* @__PURE__ */ l(
|
|
2925
2925
|
"div",
|
|
@@ -3522,9 +3522,9 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3522
3522
|
] });
|
|
3523
3523
|
}, Mm = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: c }) => {
|
|
3524
3524
|
var Te;
|
|
3525
|
-
const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: y, wordSpacing: f, fontSizeLineHeight: m, textAppearance: g, color: p } = i.imageCaption ?? {}, [b, L] = Z(0), [T, $] = Z(0), [
|
|
3525
|
+
const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: y, wordSpacing: f, fontSizeLineHeight: m, textAppearance: g, color: p } = i.imageCaption ?? {}, [b, L] = Z(0), [T, $] = Z(0), [G, E] = Z(!1), [j, M] = Z(!1), [C, O] = Z({}), v = B(null), k = B(null), R = B(null), J = B(!1), A = B(null), X = B(null), V = B(null), D = B(null), re = B(!1), w = B(null), [I, N] = Z(!1), { appear: de, triggers: ae, slider: S, thumbnail: se, controls: P, area: ie, caption: Y, layout: Se } = o.lightboxBlock, { appearClass: Ne, backdropAppearClass: fe, backdropDisappearClass: ue, disappearClass: U } = Rm(de.type, de.direction), ne = (c == null ? void 0 : c.itemId) ?? null;
|
|
3526
3526
|
Ae(() => {
|
|
3527
|
-
const
|
|
3527
|
+
const z = () => {
|
|
3528
3528
|
setTimeout(() => {
|
|
3529
3529
|
var xe, we;
|
|
3530
3530
|
(we = (xe = v.current) == null ? void 0 : xe.splide) == null || we.refresh();
|
|
@@ -3532,52 +3532,52 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3532
3532
|
}, ce = () => {
|
|
3533
3533
|
$((xe) => xe + 1);
|
|
3534
3534
|
};
|
|
3535
|
-
return window.addEventListener("ArticleEditor.Layout:change",
|
|
3536
|
-
window.removeEventListener("ArticleEditor.Layout:change",
|
|
3535
|
+
return window.addEventListener("ArticleEditor.Layout:change", z), window.addEventListener("ArticleEditor.ComponentContent:change", ce), () => {
|
|
3536
|
+
window.removeEventListener("ArticleEditor.Layout:change", z), window.removeEventListener("ArticleEditor.ComponentContent:change", ce);
|
|
3537
3537
|
};
|
|
3538
3538
|
}, []), Ae(() => {
|
|
3539
3539
|
if (!e || !se.isActive) {
|
|
3540
3540
|
N(!1);
|
|
3541
3541
|
return;
|
|
3542
3542
|
}
|
|
3543
|
-
const
|
|
3544
|
-
if (!
|
|
3543
|
+
const z = w.current;
|
|
3544
|
+
if (!z) return;
|
|
3545
3545
|
const ce = () => {
|
|
3546
|
-
S.direction === "horiz" ? N(
|
|
3546
|
+
S.direction === "horiz" ? N(z.scrollWidth > z.clientWidth) : N(z.scrollHeight > z.clientHeight);
|
|
3547
3547
|
};
|
|
3548
3548
|
ce();
|
|
3549
3549
|
const xe = new ResizeObserver(ce);
|
|
3550
|
-
return xe.observe(
|
|
3550
|
+
return xe.observe(z), () => xe.disconnect();
|
|
3551
3551
|
}, [e, se.isActive, n.length, C, S.direction]);
|
|
3552
3552
|
const Q = ye(() => {
|
|
3553
|
-
const
|
|
3554
|
-
|
|
3553
|
+
const z = window.matchMedia("(max-width: 768px)").matches, ce = Vl(ie.color);
|
|
3554
|
+
z && !a && ce > 0.9 && (document.body.style.backgroundColor = ""), E(!0), J.current = !0;
|
|
3555
3555
|
const xe = (we) => {
|
|
3556
3556
|
we.target === A.current && we.animationName && (A.current && X.current && A.current.removeEventListener("animationend", X.current), X.current = null, J.current && (J.current = !1, t()), E(!1));
|
|
3557
3557
|
};
|
|
3558
3558
|
A.current && (X.current = xe, A.current.addEventListener("animationend", xe));
|
|
3559
|
-
}, [t, ie.color, a]), We = (
|
|
3559
|
+
}, [t, ie.color, a]), We = (z, ce, xe) => {
|
|
3560
3560
|
var we, Fe;
|
|
3561
|
-
if (
|
|
3561
|
+
if (z) {
|
|
3562
3562
|
if (ae.type === "click" && ae.switch === "image")
|
|
3563
3563
|
ae.repeat === "close" && b === n.length - 1 ? Q() : (we = v.current) == null || we.go("+1");
|
|
3564
3564
|
else if (ae.type === "click" && ae.switch === "50/50") {
|
|
3565
|
-
const Re =
|
|
3565
|
+
const Re = z.getBoundingClientRect(), _ = ce - Re.left, ve = xe - Re.top, le = Re.width, W = Re.height;
|
|
3566
3566
|
let te;
|
|
3567
3567
|
S.direction === "horiz" ? te = _ < le / 2 ? "-1" : "+1" : te = ve < W / 2 ? "-1" : "+1", (Fe = v.current) == null || Fe.go(te);
|
|
3568
3568
|
}
|
|
3569
3569
|
}
|
|
3570
|
-
}, Le = (
|
|
3570
|
+
}, Le = (z) => {
|
|
3571
3571
|
if (re.current) {
|
|
3572
3572
|
re.current = !1;
|
|
3573
3573
|
return;
|
|
3574
3574
|
}
|
|
3575
3575
|
const ce = n[b], xe = (ce == null ? void 0 : ce.image.objectFit) === "cover";
|
|
3576
3576
|
let we, Fe;
|
|
3577
|
-
if ("changedTouches" in
|
|
3578
|
-
we =
|
|
3579
|
-
else if ("clientX" in
|
|
3580
|
-
we =
|
|
3577
|
+
if ("changedTouches" in z && z.changedTouches.length > 0)
|
|
3578
|
+
we = z.changedTouches[0].clientX, Fe = z.changedTouches[0].clientY;
|
|
3579
|
+
else if ("clientX" in z)
|
|
3580
|
+
we = z.clientX, Fe = z.clientY;
|
|
3581
3581
|
else
|
|
3582
3582
|
return;
|
|
3583
3583
|
let Re;
|
|
@@ -3587,19 +3587,19 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3587
3587
|
} else {
|
|
3588
3588
|
const _ = R.current ? Tr(R.current) : null;
|
|
3589
3589
|
if (!_) {
|
|
3590
|
-
|
|
3590
|
+
z.target === z.currentTarget && Q();
|
|
3591
3591
|
return;
|
|
3592
3592
|
}
|
|
3593
3593
|
Re = we >= _.x && we <= _.x + _.width && Fe >= _.y && Fe <= _.y + _.height;
|
|
3594
3594
|
}
|
|
3595
3595
|
Re ? We(R.current, we, Fe) : Q();
|
|
3596
|
-
}, _e = (
|
|
3597
|
-
const ce =
|
|
3598
|
-
(ce.classList.contains(Qe.thumbsWrapper) || ce.classList.contains(Qe.thumbsContainer)) && Le(
|
|
3596
|
+
}, _e = (z) => {
|
|
3597
|
+
const ce = z.target;
|
|
3598
|
+
(ce.classList.contains(Qe.thumbsWrapper) || ce.classList.contains(Qe.thumbsContainer)) && Le(z);
|
|
3599
3599
|
};
|
|
3600
3600
|
Ae(() => {
|
|
3601
3601
|
if (!e) return;
|
|
3602
|
-
const
|
|
3602
|
+
const z = (ce) => {
|
|
3603
3603
|
var xe, we;
|
|
3604
3604
|
if (ce.key === "Escape") {
|
|
3605
3605
|
Q();
|
|
@@ -3611,38 +3611,38 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3611
3611
|
}
|
|
3612
3612
|
ce.key === "ArrowLeft" && (L((Fe) => (Fe - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (we = v.current) == null || we.go("-1"));
|
|
3613
3613
|
};
|
|
3614
|
-
return window.addEventListener("keydown",
|
|
3615
|
-
window.removeEventListener("keydown",
|
|
3614
|
+
return window.addEventListener("keydown", z), () => {
|
|
3615
|
+
window.removeEventListener("keydown", z);
|
|
3616
3616
|
};
|
|
3617
3617
|
}, [e, Q, n.length]), Ae(() => {
|
|
3618
3618
|
if (e) {
|
|
3619
3619
|
if (L(0), $((ce) => ce + 1), J.current = !1, E(!1), M(!1), O({}), !ne) return;
|
|
3620
|
-
const
|
|
3621
|
-
window.dispatchEvent(
|
|
3620
|
+
const z = new CustomEvent("page-overlay", { detail: { itemId: ne } });
|
|
3621
|
+
window.dispatchEvent(z);
|
|
3622
3622
|
}
|
|
3623
3623
|
return () => {
|
|
3624
3624
|
A.current && X.current && (A.current.removeEventListener("animationend", X.current), X.current = null), M(!1);
|
|
3625
3625
|
};
|
|
3626
3626
|
}, [e, ne]), Ae(() => {
|
|
3627
|
-
k.current !== null && k.current !== S.type && $((
|
|
3627
|
+
k.current !== null && k.current !== S.type && $((z) => z + 1), k.current = S.type;
|
|
3628
3628
|
}, [S.type]), Ae(() => {
|
|
3629
3629
|
if (!e) return;
|
|
3630
|
-
const
|
|
3630
|
+
const z = document.body.style.overflow, ce = window.matchMedia("(max-width: 768px)").matches, xe = Vl(ie.color);
|
|
3631
3631
|
document.body.style.overflow = "hidden", M(!1);
|
|
3632
3632
|
const we = (Re) => {
|
|
3633
|
-
Re.target === A.current && !J.current && Re.animationName && (ce && !a && xe > 0.9 && (document.body.style.backgroundColor = ie.color), M(!0), A.current &&
|
|
3633
|
+
Re.target === A.current && !J.current && Re.animationName && (ce && !a && xe > 0.9 && (document.body.style.backgroundColor = ie.color), M(!0), A.current && V.current && A.current.removeEventListener("animationend", V.current), V.current = null);
|
|
3634
3634
|
};
|
|
3635
|
-
A.current && (
|
|
3635
|
+
A.current && (V.current = we, A.current.addEventListener("animationend", we));
|
|
3636
3636
|
const Fe = (Re) => {
|
|
3637
3637
|
const _ = Re.target;
|
|
3638
3638
|
_ && (_.closest(`.${Qe.thumbsWrapper}`) || _.closest(`.${Qe.thumbsContainer}`)) || S.type !== "slide" && Re.preventDefault();
|
|
3639
3639
|
};
|
|
3640
3640
|
return document.addEventListener("touchmove", Fe, { passive: !1 }), () => {
|
|
3641
|
-
document.body.style.overflow =
|
|
3641
|
+
document.body.style.overflow = z, document.removeEventListener("touchmove", Fe), A.current && V.current && (A.current.removeEventListener("animationend", V.current), V.current = null), M(!1);
|
|
3642
3642
|
};
|
|
3643
3643
|
}, [e, a, ie.color, S.type]), Ae(() => {
|
|
3644
3644
|
if (!e) return;
|
|
3645
|
-
const
|
|
3645
|
+
const z = (ce) => {
|
|
3646
3646
|
var we, Fe;
|
|
3647
3647
|
if (J.current) {
|
|
3648
3648
|
ce.stopPropagation();
|
|
@@ -3680,34 +3680,34 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
3682
|
};
|
|
3683
|
-
return document.addEventListener("touchend",
|
|
3684
|
-
document.removeEventListener("touchend",
|
|
3683
|
+
return document.addEventListener("touchend", z, { passive: !0 }), () => {
|
|
3684
|
+
document.removeEventListener("touchend", z);
|
|
3685
3685
|
};
|
|
3686
3686
|
}, [e, Q, b, n]);
|
|
3687
3687
|
const me = (S.type === "scale" || S.type === "fade") && S.direction === "vert" && ae.type === "drag";
|
|
3688
3688
|
Ae(() => {
|
|
3689
3689
|
var te, He;
|
|
3690
3690
|
if (!e || !me || !((He = (te = v.current) == null ? void 0 : te.splide) != null && He.root)) return;
|
|
3691
|
-
const
|
|
3692
|
-
if (
|
|
3693
|
-
const Je = Math.abs(pe -
|
|
3691
|
+
const z = v.current.splide.root, ce = 30, xe = (pe, H) => {
|
|
3692
|
+
if (D.current) {
|
|
3693
|
+
const Je = Math.abs(pe - D.current.x), Ve = Math.abs(H - D.current.y);
|
|
3694
3694
|
(Je > 0 || Ve > 0) && (re.current = !0);
|
|
3695
3695
|
}
|
|
3696
3696
|
}, we = (pe) => {
|
|
3697
|
-
|
|
3697
|
+
D.current && (pe.preventDefault(), xe(pe.clientX, pe.clientY));
|
|
3698
3698
|
}, Fe = (pe) => {
|
|
3699
|
-
|
|
3699
|
+
D.current && pe.touches.length > 0 && (pe.preventDefault(), xe(pe.touches[0].clientX, pe.touches[0].clientY));
|
|
3700
3700
|
}, Re = (pe, H) => {
|
|
3701
|
-
if (!
|
|
3702
|
-
|
|
3701
|
+
if (!D.current || !v.current) {
|
|
3702
|
+
D.current = null;
|
|
3703
3703
|
return;
|
|
3704
3704
|
}
|
|
3705
|
-
const Je = Math.abs(pe -
|
|
3706
|
-
Ve > ce && Ve > Je && v.current.go(H <
|
|
3705
|
+
const Je = Math.abs(pe - D.current.x), Ve = Math.abs(H - D.current.y);
|
|
3706
|
+
Ve > ce && Ve > Je && v.current.go(H < D.current.y ? "+1" : "-1"), D.current = null;
|
|
3707
3707
|
}, _ = (pe) => {
|
|
3708
|
-
|
|
3708
|
+
D.current && Re(pe.clientX, pe.clientY), document.removeEventListener("pointerup", _), document.removeEventListener("pointercancel", _), document.removeEventListener("pointermove", we);
|
|
3709
3709
|
}, ve = (pe) => {
|
|
3710
|
-
if (
|
|
3710
|
+
if (D.current) {
|
|
3711
3711
|
if (pe.changedTouches.length > 0) {
|
|
3712
3712
|
const H = pe.changedTouches[0];
|
|
3713
3713
|
Re(H.clientX, H.clientY);
|
|
@@ -3715,12 +3715,12 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3715
3715
|
document.removeEventListener("touchend", ve), document.removeEventListener("touchcancel", ve), document.removeEventListener("touchmove", Fe);
|
|
3716
3716
|
}
|
|
3717
3717
|
}, le = (pe) => {
|
|
3718
|
-
|
|
3718
|
+
D.current = { x: pe.clientX, y: pe.clientY }, re.current = !1, document.addEventListener("pointermove", we, { passive: !1 }), document.addEventListener("pointerup", _), document.addEventListener("pointercancel", _);
|
|
3719
3719
|
}, W = (pe) => {
|
|
3720
|
-
pe.touches.length > 0 && (
|
|
3720
|
+
pe.touches.length > 0 && (D.current = { x: pe.touches[0].clientX, y: pe.touches[0].clientY }, re.current = !1, document.addEventListener("touchmove", Fe, { passive: !1 }), document.addEventListener("touchend", ve), document.addEventListener("touchcancel", ve));
|
|
3721
3721
|
};
|
|
3722
|
-
return
|
|
3723
|
-
|
|
3722
|
+
return z.addEventListener("pointerdown", le), z.addEventListener("touchstart", W), () => {
|
|
3723
|
+
z.removeEventListener("pointerdown", le), z.removeEventListener("touchstart", W), document.removeEventListener("pointermove", we), document.removeEventListener("pointerup", _), document.removeEventListener("pointercancel", _), document.removeEventListener("touchmove", Fe), document.removeEventListener("touchend", ve), document.removeEventListener("touchcancel", ve), D.current = null, re.current = !1;
|
|
3724
3724
|
};
|
|
3725
3725
|
}, [e, me, T]);
|
|
3726
3726
|
const be = {
|
|
@@ -3736,10 +3736,10 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
3738
|
ref: a ? null : A,
|
|
3739
|
-
className: yt(Qe.background,
|
|
3739
|
+
className: yt(Qe.background, G ? ue : fe, { [Qe.editor]: a }, { [Qe.hidden]: !e }),
|
|
3740
3740
|
style: {
|
|
3741
3741
|
...be,
|
|
3742
|
-
...
|
|
3742
|
+
...j && !a && !G ? { position: "absolute" } : {}
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
3745
|
),
|
|
@@ -3747,7 +3747,7 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3747
3747
|
"div",
|
|
3748
3748
|
{
|
|
3749
3749
|
ref: a ? A : null,
|
|
3750
|
-
className: yt(Qe.contentStyle,
|
|
3750
|
+
className: yt(Qe.contentStyle, G ? U : Ne, { [Qe.editor]: a }, { [Qe.hidden]: !e }),
|
|
3751
3751
|
style: {
|
|
3752
3752
|
animationDuration: `${parseInt(de.duration)}ms`,
|
|
3753
3753
|
animationTimingFunction: "ease",
|
|
@@ -3757,7 +3757,7 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3757
3757
|
/* @__PURE__ */ l(
|
|
3758
3758
|
dl,
|
|
3759
3759
|
{
|
|
3760
|
-
onMove: (
|
|
3760
|
+
onMove: (z) => L(z.index),
|
|
3761
3761
|
ref: v,
|
|
3762
3762
|
className: Qe.lightboxSplide,
|
|
3763
3763
|
options: {
|
|
@@ -3776,7 +3776,7 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3776
3776
|
start: 0
|
|
3777
3777
|
},
|
|
3778
3778
|
style: { "--splide-speed": S.duration },
|
|
3779
|
-
children: n.map((
|
|
3779
|
+
children: n.map((z, ce) => {
|
|
3780
3780
|
const xe = Zo(Se.position, Se.offset, a), we = `${F(Se.padding.top, a)} ${F(Se.padding.right, a)} ${F(Se.padding.bottom, a)} ${F(Se.padding.left, a)}`, Fe = S.type === "scale" ? (() => {
|
|
3781
3781
|
const { transform: Re, ..._ } = xe;
|
|
3782
3782
|
return {
|
|
@@ -3792,13 +3792,13 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3792
3792
|
{
|
|
3793
3793
|
ref: ce === b ? R : null,
|
|
3794
3794
|
className: yt(Qe.imageStyle, {
|
|
3795
|
-
[Qe.contain]:
|
|
3796
|
-
[Qe.cover]:
|
|
3795
|
+
[Qe.contain]: z.image.objectFit === "contain",
|
|
3796
|
+
[Qe.cover]: z.image.objectFit === "cover",
|
|
3797
3797
|
[Qe.scaleSlide]: S.type === "scale"
|
|
3798
3798
|
}),
|
|
3799
|
-
src:
|
|
3800
|
-
alt:
|
|
3801
|
-
style: { ...Fe, pointerEvents:
|
|
3799
|
+
src: z.image.url,
|
|
3800
|
+
alt: z.image.name ?? "",
|
|
3801
|
+
style: { ...Fe, pointerEvents: z.image.objectFit === "contain" ? "none" : "auto" }
|
|
3802
3802
|
}
|
|
3803
3803
|
) }) }, ce);
|
|
3804
3804
|
})
|
|
@@ -3817,8 +3817,8 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3817
3817
|
className: Qe.arrowInner,
|
|
3818
3818
|
style: { transform: `translate(${F(P.offset.x, a)}, ${F(P.offset.y * (S.direction === "horiz" ? 1 : -1), a)}) scale(${P.scale}) rotate(${S.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3819
3819
|
onClick: () => {
|
|
3820
|
-
var
|
|
3821
|
-
return (
|
|
3820
|
+
var z;
|
|
3821
|
+
return (z = v.current) == null ? void 0 : z.go("-1");
|
|
3822
3822
|
},
|
|
3823
3823
|
"aria-label": "Previous",
|
|
3824
3824
|
children: [
|
|
@@ -3848,8 +3848,8 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3848
3848
|
className: Qe.arrowInner,
|
|
3849
3849
|
style: { transform: `translate(${F(P.offset.x * (S.direction === "horiz" ? -1 : 1), a)}, ${F(P.offset.y, a)}) scale(${P.scale}) rotate(${S.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3850
3850
|
onClick: () => {
|
|
3851
|
-
var
|
|
3852
|
-
return (
|
|
3851
|
+
var z;
|
|
3852
|
+
return (z = v.current) == null ? void 0 : z.go("+1");
|
|
3853
3853
|
},
|
|
3854
3854
|
"aria-label": "Next",
|
|
3855
3855
|
children: [
|
|
@@ -3870,8 +3870,8 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3870
3870
|
)
|
|
3871
3871
|
] }),
|
|
3872
3872
|
ie.closeIconUrl && (() => {
|
|
3873
|
-
const
|
|
3874
|
-
return /* @__PURE__ */ l("button", { className: Qe.closeButton, style: { ...
|
|
3873
|
+
const z = Zo(ie.closeIconAlign, ie.closeIconOffset, a), ce = `scale(${ie.closeIconScale})`, xe = z.transform ? `${z.transform} ${ce}` : ce;
|
|
3874
|
+
return /* @__PURE__ */ l("button", { className: Qe.closeButton, style: { ...z, transform: xe }, onClick: Q, "aria-label": "Close lightbox", children: /* @__PURE__ */ l(gn, { url: ie.closeIconUrl, fill: ie.closeIconColor ?? "#000000", hoverFill: ie.closeIconHover ?? "#cccccc" }) });
|
|
3875
3875
|
})(),
|
|
3876
3876
|
Y && Y.isActive && i.imageCaption && ((Te = n[b]) == null ? void 0 : Te.imageCaption) && /* @__PURE__ */ l(
|
|
3877
3877
|
"div",
|
|
@@ -3893,7 +3893,7 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3893
3893
|
fontVariant: g.fontVariant ?? "normal",
|
|
3894
3894
|
color: p
|
|
3895
3895
|
},
|
|
3896
|
-
onClick: (
|
|
3896
|
+
onClick: (z) => z.stopPropagation(),
|
|
3897
3897
|
children: /* @__PURE__ */ l(
|
|
3898
3898
|
"div",
|
|
3899
3899
|
{
|
|
@@ -3909,15 +3909,15 @@ const Pm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3909
3909
|
}
|
|
3910
3910
|
),
|
|
3911
3911
|
se.isActive && (() => {
|
|
3912
|
-
const [
|
|
3912
|
+
const [z, ce] = se.position.split("-"), xe = S.direction === "horiz" ? `${z}-left` : se.position, we = Zo(xe, se.offset, a), Fe = () => {
|
|
3913
3913
|
if (S.direction === "horiz") {
|
|
3914
3914
|
if (ce === "left") return "flex-start";
|
|
3915
3915
|
if (ce === "center") return "center";
|
|
3916
3916
|
if (ce === "right") return "flex-end";
|
|
3917
3917
|
} else {
|
|
3918
|
-
if (
|
|
3919
|
-
if (
|
|
3920
|
-
if (
|
|
3918
|
+
if (z === "top") return "flex-start";
|
|
3919
|
+
if (z === "middle") return "center";
|
|
3920
|
+
if (z === "bottom") return "flex-end";
|
|
3921
3921
|
}
|
|
3922
3922
|
return "flex-start";
|
|
3923
3923
|
};
|
|
@@ -5285,9 +5285,9 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5285
5285
|
buttonPadding: L,
|
|
5286
5286
|
isButtonFullWidth: T,
|
|
5287
5287
|
inputCorners: $,
|
|
5288
|
-
inputStroke:
|
|
5288
|
+
inputStroke: G,
|
|
5289
5289
|
inputPadding: E,
|
|
5290
|
-
inputColor:
|
|
5290
|
+
inputColor: j,
|
|
5291
5291
|
inputTextColor: M,
|
|
5292
5292
|
inputBorderColor: C,
|
|
5293
5293
|
placeholderColor: O,
|
|
@@ -5297,8 +5297,8 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5297
5297
|
labelTextColor: J,
|
|
5298
5298
|
successColor: A,
|
|
5299
5299
|
errorColor: X,
|
|
5300
|
-
fontFamily:
|
|
5301
|
-
inputFontSettings:
|
|
5300
|
+
fontFamily: V,
|
|
5301
|
+
inputFontSettings: D,
|
|
5302
5302
|
inputFontSize: re,
|
|
5303
5303
|
inputLineHeight: w,
|
|
5304
5304
|
inputLetterSpacing: I,
|
|
@@ -5323,13 +5323,13 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5323
5323
|
statusWordSpacing: me,
|
|
5324
5324
|
statusTextAppearance: be,
|
|
5325
5325
|
successMessage: Te,
|
|
5326
|
-
errorMessage:
|
|
5326
|
+
errorMessage: z,
|
|
5327
5327
|
stateOverrides: ce
|
|
5328
5328
|
} = e, xe = d === "B", we = y.slice(0, Math.min(u, y.length)), Fe = {
|
|
5329
5329
|
fontSettings: {
|
|
5330
|
-
fontFamily:
|
|
5331
|
-
fontWeight: (
|
|
5332
|
-
fontStyle: (
|
|
5330
|
+
fontFamily: V,
|
|
5331
|
+
fontWeight: (D == null ? void 0 : D.fontWeight) ?? 400,
|
|
5332
|
+
fontStyle: (D == null ? void 0 : D.fontStyle) ?? "normal"
|
|
5333
5333
|
},
|
|
5334
5334
|
fontSize: re ?? 0.01,
|
|
5335
5335
|
lineHeight: w,
|
|
@@ -5337,8 +5337,8 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5337
5337
|
wordSpacing: N ?? 0,
|
|
5338
5338
|
textAppearance: de,
|
|
5339
5339
|
color: M
|
|
5340
|
-
}, Re = mn(tn(Fe, t)), _ = F(
|
|
5341
|
-
(w ?? re ?? 0.01) + ((E == null ? void 0 : E.top) ?? 0) + ((E == null ? void 0 : E.bottom) ?? 0) + (d === "C" ?
|
|
5340
|
+
}, Re = mn(tn(Fe, t)), _ = F(G ?? 0, t), ve = F(
|
|
5341
|
+
(w ?? re ?? 0.01) + ((E == null ? void 0 : E.top) ?? 0) + ((E == null ? void 0 : E.bottom) ?? 0) + (d === "C" ? G ?? 0 : (G ?? 0) * 2),
|
|
5342
5342
|
t
|
|
5343
5343
|
), le = {
|
|
5344
5344
|
...Re,
|
|
@@ -5358,7 +5358,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5358
5358
|
minHeight: ve
|
|
5359
5359
|
}, W = {
|
|
5360
5360
|
fontSettings: {
|
|
5361
|
-
fontFamily:
|
|
5361
|
+
fontFamily: V,
|
|
5362
5362
|
fontWeight: (ae == null ? void 0 : ae.fontWeight) ?? 400,
|
|
5363
5363
|
fontStyle: (ae == null ? void 0 : ae.fontStyle) ?? "normal"
|
|
5364
5364
|
},
|
|
@@ -5370,7 +5370,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5370
5370
|
color: k
|
|
5371
5371
|
}, te = mn(tn(W, t)), He = F(b ?? 0, t), pe = {
|
|
5372
5372
|
fontSettings: {
|
|
5373
|
-
fontFamily:
|
|
5373
|
+
fontFamily: V,
|
|
5374
5374
|
fontWeight: (Se == null ? void 0 : Se.fontWeight) ?? 400,
|
|
5375
5375
|
fontStyle: (Se == null ? void 0 : Se.fontStyle) ?? "normal"
|
|
5376
5376
|
},
|
|
@@ -5382,7 +5382,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5382
5382
|
color: J
|
|
5383
5383
|
}, H = tn(pe, t), Je = {
|
|
5384
5384
|
fontSettings: {
|
|
5385
|
-
fontFamily:
|
|
5385
|
+
fontFamily: V,
|
|
5386
5386
|
fontWeight: (Q == null ? void 0 : Q.fontWeight) ?? 400,
|
|
5387
5387
|
fontStyle: (Q == null ? void 0 : Q.fontStyle) ?? "normal"
|
|
5388
5388
|
},
|
|
@@ -5393,7 +5393,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5393
5393
|
textAppearance: be,
|
|
5394
5394
|
color: A
|
|
5395
5395
|
}, Ve = mn(tn(Je, t)), ft = Li(s, {
|
|
5396
|
-
inputColor:
|
|
5396
|
+
inputColor: j,
|
|
5397
5397
|
inputTextColor: M,
|
|
5398
5398
|
inputBorderColor: C,
|
|
5399
5399
|
placeholderColor: O != null && O.trim() ? O : "#cccccc",
|
|
@@ -5405,7 +5405,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5405
5405
|
errorColor: X
|
|
5406
5406
|
}, Fm, Wm, ce), [st, wt] = Z(
|
|
5407
5407
|
() => Object.fromEntries(we.map((ke) => [ke.name, ""]))
|
|
5408
|
-
), [mt, Xe] = Z("idle"), [$e, Oe] = Z(null), Ge = r === "success" ? "success" : r === "error" ? "error" : mt, et = r === "error" ?
|
|
5408
|
+
), [mt, Xe] = Z("idle"), [$e, Oe] = Z(null), Ge = r === "success" ? "success" : r === "error" ? "error" : mt, et = r === "error" ? z : $e, oe = r === "filled", he = Ue(() => {
|
|
5409
5409
|
if (!oe) return st;
|
|
5410
5410
|
let ke = null;
|
|
5411
5411
|
for (const Ze of we)
|
|
@@ -5558,7 +5558,7 @@ function km({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5558
5558
|
className: `${s}-error`,
|
|
5559
5559
|
style: { ...Ve },
|
|
5560
5560
|
role: "alert",
|
|
5561
|
-
children: Ee ?? et ??
|
|
5561
|
+
children: Ee ?? et ?? z
|
|
5562
5562
|
}
|
|
5563
5563
|
)
|
|
5564
5564
|
] });
|
|
@@ -7091,9 +7091,9 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7091
7091
|
inputTextAppearance: L,
|
|
7092
7092
|
buttonFontSettings: T,
|
|
7093
7093
|
buttonFontSize: $,
|
|
7094
|
-
buttonLineHeight:
|
|
7094
|
+
buttonLineHeight: G,
|
|
7095
7095
|
buttonLetterSpacing: E,
|
|
7096
|
-
buttonWordSpacing:
|
|
7096
|
+
buttonWordSpacing: j,
|
|
7097
7097
|
buttonTextAppearance: M,
|
|
7098
7098
|
statusFontSettings: C,
|
|
7099
7099
|
statusFontSize: O,
|
|
@@ -7103,8 +7103,8 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7103
7103
|
statusTextAppearance: J,
|
|
7104
7104
|
iconMaxWidth: A,
|
|
7105
7105
|
minHeight: X,
|
|
7106
|
-
corners:
|
|
7107
|
-
stroke:
|
|
7106
|
+
corners: V,
|
|
7107
|
+
stroke: D,
|
|
7108
7108
|
stateOverrides: re,
|
|
7109
7109
|
inputPadding: w,
|
|
7110
7110
|
buttonPadding: I,
|
|
@@ -7118,7 +7118,7 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7118
7118
|
for (const H of ae)
|
|
7119
7119
|
(S[H.name] ?? "").trim().length > 0 || (pe = pe ?? { ...S }, pe[H.name] = "Filled");
|
|
7120
7120
|
return pe ?? S;
|
|
7121
|
-
}, [ue, S, ae]), ne = Ne === "error" ? br(ae, U) : null, Q = o && o !== "default" ? `${r}-state-${o}` : "", We = ae.some((pe) => (U[pe.name] ?? "").trim().length > 0), Le = Q !== `${r}-state-filled` && We ? `${r}-state-filled` : "", _e = `${Q} ${Le}`.trim(), me = i == null ? void 0 : i.submitUrl, be = d ?? "", Te = (s == null ? void 0 : s.icon) ?? "",
|
|
7121
|
+
}, [ue, S, ae]), ne = Ne === "error" ? br(ae, U) : null, Q = o && o !== "default" ? `${r}-state-${o}` : "", We = ae.some((pe) => (U[pe.name] ?? "").trim().length > 0), Le = Q !== `${r}-state-filled` && We ? `${r}-state-filled` : "", _e = `${Q} ${Le}`.trim(), me = i == null ? void 0 : i.submitUrl, be = d ?? "", Te = (s == null ? void 0 : s.icon) ?? "", z = (s == null ? void 0 : s.mode) === "On", ce = be || "Submit", xe = {
|
|
7122
7122
|
fontSettings: {
|
|
7123
7123
|
fontFamily: y,
|
|
7124
7124
|
fontWeight: (f == null ? void 0 : f.fontWeight) ?? 400,
|
|
@@ -7137,9 +7137,9 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7137
7137
|
fontStyle: (T == null ? void 0 : T.fontStyle) ?? "normal"
|
|
7138
7138
|
},
|
|
7139
7139
|
fontSize: $ ?? 0.01,
|
|
7140
|
-
lineHeight:
|
|
7140
|
+
lineHeight: G,
|
|
7141
7141
|
letterSpacing: E ?? 0,
|
|
7142
|
-
wordSpacing:
|
|
7142
|
+
wordSpacing: j ?? 0,
|
|
7143
7143
|
textAppearance: M,
|
|
7144
7144
|
color: e.buttonTextColor ?? "#ffffff"
|
|
7145
7145
|
}, Fe = {
|
|
@@ -7164,10 +7164,10 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7164
7164
|
inputTextColor: e.inputTextColor ?? (xe == null ? void 0 : xe.color) ?? "#111111",
|
|
7165
7165
|
buttonTextColor: e.buttonTextColor ?? (we == null ? void 0 : we.color) ?? "#ffffff"
|
|
7166
7166
|
}, Vm, jm, re), W = {
|
|
7167
|
-
borderRadius: F(
|
|
7168
|
-
borderWidth: F(
|
|
7167
|
+
borderRadius: F(V, t),
|
|
7168
|
+
borderWidth: F(D, t),
|
|
7169
7169
|
borderStyle: "solid"
|
|
7170
|
-
}, te = { borderLeftWidth: F(
|
|
7170
|
+
}, te = { borderLeftWidth: F(D, t) }, He = async (pe) => {
|
|
7171
7171
|
if (pe.preventDefault(), !a) return;
|
|
7172
7172
|
const H = Object.fromEntries(
|
|
7173
7173
|
ae.map((Ve) => {
|
|
@@ -7257,7 +7257,7 @@ const Bm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7257
7257
|
paddingBottom: F(I.bottom, t),
|
|
7258
7258
|
pointerEvents: a ? "auto" : void 0
|
|
7259
7259
|
},
|
|
7260
|
-
children: P === "submitting" ? "..." :
|
|
7260
|
+
children: P === "submitting" ? "..." : z ? Te && /* @__PURE__ */ l(
|
|
7261
7261
|
gn,
|
|
7262
7262
|
{
|
|
7263
7263
|
url: Te,
|
|
@@ -8607,11 +8607,11 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8607
8607
|
onFirstSetImageDone: d
|
|
8608
8608
|
}) => {
|
|
8609
8609
|
var R, J, A, X;
|
|
8610
|
-
const u =
|
|
8610
|
+
const u = B(null), y = !!((R = e.image) != null && R.url && cg(e.image));
|
|
8611
8611
|
Mt(() => {
|
|
8612
8612
|
c && dg(u.current) && (d == null || d());
|
|
8613
8613
|
}, [c, (J = e.image) == null ? void 0 : J.url, d]);
|
|
8614
|
-
const f = n.display === "cover", m = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [p, b] = m.split(":").map(Number), $ = (g ? b : p) / (g ? p : b),
|
|
8614
|
+
const f = n.display === "cover", m = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [p, b] = m.split(":").map(Number), $ = (g ? b : p) / (g ? p : b), G = i / $, E = G > o ? o : G, j = G > o ? o * $ : i, M = s(j), C = s(E), O = {
|
|
8615
8615
|
borderRadius: s(r)
|
|
8616
8616
|
}, v = f ? {
|
|
8617
8617
|
pointerEvents: "auto",
|
|
@@ -8632,8 +8632,8 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8632
8632
|
}, k = ((A = e.image) == null ? void 0 : A.url) && (y ? /* @__PURE__ */ l(
|
|
8633
8633
|
"video",
|
|
8634
8634
|
{
|
|
8635
|
-
ref: (
|
|
8636
|
-
u.current =
|
|
8635
|
+
ref: (V) => {
|
|
8636
|
+
u.current = V;
|
|
8637
8637
|
},
|
|
8638
8638
|
src: e.image.url,
|
|
8639
8639
|
style: v,
|
|
@@ -8648,8 +8648,8 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8648
8648
|
) : /* @__PURE__ */ l(
|
|
8649
8649
|
"img",
|
|
8650
8650
|
{
|
|
8651
|
-
ref: (
|
|
8652
|
-
u.current =
|
|
8651
|
+
ref: (V) => {
|
|
8652
|
+
u.current = V;
|
|
8653
8653
|
},
|
|
8654
8654
|
src: e.image.url,
|
|
8655
8655
|
alt: ((X = e.image) == null ? void 0 : X.name) ?? "",
|
|
@@ -8703,9 +8703,9 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8703
8703
|
imageMaxHeight: p,
|
|
8704
8704
|
hoverEffect: b,
|
|
8705
8705
|
cornerRadius: L = 0
|
|
8706
|
-
} = e, T = Ue(() => rg(e.imageFit), [e.imageFit]), $ = (t == null ? void 0 : t.length) ?? 0,
|
|
8706
|
+
} = e, T = Ue(() => rg(e.imageFit), [e.imageFit]), $ = (t == null ? void 0 : t.length) ?? 0, G = !!o, E = !n || !!i, j = E && b !== "off" && b !== "randomize" ? `${r}-image-hover-${b}` : void 0, M = n ? !!i : !0, O = ((t == null ? void 0 : t.length) ?? 0) > 0 && (M || !!n), v = Math.max(0, u) * Jm, k = (Le) => F(Le, n ?? !1), R = B(null), J = B(null), A = B(null), [X, V] = Z(0), D = M && f === "on", [re, w] = Z(!1), [I, N] = Z({}), de = B(I);
|
|
8707
8707
|
de.current = I;
|
|
8708
|
-
const ae =
|
|
8708
|
+
const ae = B(null), S = B(0), se = B(null), P = Ue(() => (t ?? []).map((Le) => {
|
|
8709
8709
|
var _e;
|
|
8710
8710
|
return ((_e = Le.image) == null ? void 0 : _e.url) ?? "";
|
|
8711
8711
|
}).join("\0"), [t]), [ie, Y] = Z(ia), Se = Ue(() => {
|
|
@@ -8724,9 +8724,9 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8724
8724
|
if (!E || b !== "randomize") return;
|
|
8725
8725
|
const Le = R.current;
|
|
8726
8726
|
if (!Le) return;
|
|
8727
|
-
const _e = (
|
|
8727
|
+
const _e = (z) => {
|
|
8728
8728
|
N((ce) => {
|
|
8729
|
-
const xe = Array.from(
|
|
8729
|
+
const xe = Array.from(z).filter(
|
|
8730
8730
|
(Fe) => Fe in ce && !sg(Le, Fe)
|
|
8731
8731
|
);
|
|
8732
8732
|
if (xe.length === 0) return ce;
|
|
@@ -8735,21 +8735,21 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8735
8735
|
delete we[Fe];
|
|
8736
8736
|
}), we;
|
|
8737
8737
|
});
|
|
8738
|
-
}, me = new IntersectionObserver((
|
|
8738
|
+
}, me = new IntersectionObserver((z) => {
|
|
8739
8739
|
const ce = /* @__PURE__ */ new Set();
|
|
8740
|
-
for (const xe of
|
|
8740
|
+
for (const xe of z) {
|
|
8741
8741
|
const we = xe.target.dataset.marqueeItemIndex, Fe = we !== void 0 ? Number(we) : NaN;
|
|
8742
8742
|
Number.isNaN(Fe) || ce.add(Fe);
|
|
8743
8743
|
}
|
|
8744
8744
|
ce.size > 0 && _e(ce);
|
|
8745
8745
|
}, { root: Le, threshold: 0 });
|
|
8746
|
-
Object.keys(I).forEach((
|
|
8747
|
-
const ce = Number(
|
|
8746
|
+
Object.keys(I).forEach((z) => {
|
|
8747
|
+
const ce = Number(z);
|
|
8748
8748
|
Le.querySelectorAll(`[data-marquee-item-index="${ce}"]`).forEach((xe) => me.observe(xe));
|
|
8749
8749
|
});
|
|
8750
8750
|
const be = { current: 0 }, Te = () => {
|
|
8751
|
-
const
|
|
8752
|
-
|
|
8751
|
+
const z = Object.keys(de.current);
|
|
8752
|
+
z.length !== 0 && (_e(z.map(Number)), be.current = requestAnimationFrame(Te));
|
|
8753
8753
|
};
|
|
8754
8754
|
return Object.keys(de.current).length > 0 && (be.current = requestAnimationFrame(Te)), () => {
|
|
8755
8755
|
cancelAnimationFrame(be.current), me.disconnect();
|
|
@@ -8785,9 +8785,9 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8785
8785
|
cancelAnimationFrame(me.current), me.current = requestAnimationFrame(be);
|
|
8786
8786
|
};
|
|
8787
8787
|
se.current = Te, Te();
|
|
8788
|
-
const
|
|
8789
|
-
return
|
|
8790
|
-
se.current = null, cancelAnimationFrame(me.current),
|
|
8788
|
+
const z = new ResizeObserver(Te);
|
|
8789
|
+
return z.observe(Le), z.observe(_e), () => {
|
|
8790
|
+
se.current = null, cancelAnimationFrame(me.current), z.disconnect();
|
|
8791
8791
|
};
|
|
8792
8792
|
}, [M, O, a, P, ie, $, n]), Mt(() => {
|
|
8793
8793
|
if (!O || s <= 0) return;
|
|
@@ -8795,32 +8795,32 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8795
8795
|
Le && ig(Le);
|
|
8796
8796
|
}, [O, s, y, v]), Mt(() => {
|
|
8797
8797
|
if (!O || a <= 0) {
|
|
8798
|
-
|
|
8798
|
+
V(0);
|
|
8799
8799
|
return;
|
|
8800
8800
|
}
|
|
8801
8801
|
const Le = J.current, _e = A.current;
|
|
8802
8802
|
if (!Le || !_e) return;
|
|
8803
8803
|
const me = () => {
|
|
8804
|
-
const Te = Le.offsetHeight || Le.getBoundingClientRect().height,
|
|
8804
|
+
const Te = Le.offsetHeight || Le.getBoundingClientRect().height, z = Array.from(_e.children).reduce(
|
|
8805
8805
|
(xe, we) => Math.max(xe, we.offsetHeight || we.getBoundingClientRect().height),
|
|
8806
8806
|
0
|
|
8807
|
-
), ce = Te > 0 ? Te :
|
|
8808
|
-
|
|
8807
|
+
), ce = Te > 0 ? Te : z;
|
|
8808
|
+
V(ce > 0 ? ce : 0);
|
|
8809
8809
|
};
|
|
8810
8810
|
me();
|
|
8811
8811
|
const be = new ResizeObserver(me);
|
|
8812
8812
|
return be.observe(Le), be.observe(_e), () => be.disconnect();
|
|
8813
8813
|
}, [O, fe, Se, n, m, g, p, a, T, I]), Mt(() => {
|
|
8814
|
-
if (!n || !
|
|
8814
|
+
if (!n || !G || !O || typeof window > "u") return;
|
|
8815
8815
|
const Le = requestAnimationFrame(() => {
|
|
8816
8816
|
window.dispatchEvent(new Event("scroll"));
|
|
8817
8817
|
});
|
|
8818
8818
|
return () => cancelAnimationFrame(Le);
|
|
8819
|
-
}, [n,
|
|
8819
|
+
}, [n, G, O, y, a, X, m, Se]);
|
|
8820
8820
|
const ue = () => {
|
|
8821
|
-
|
|
8821
|
+
D && w(!0);
|
|
8822
8822
|
}, U = () => {
|
|
8823
|
-
|
|
8823
|
+
D && w(!1);
|
|
8824
8824
|
}, ne = ye(() => {
|
|
8825
8825
|
var Le;
|
|
8826
8826
|
S.current = Math.min(
|
|
@@ -8831,11 +8831,11 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8831
8831
|
N((me) => {
|
|
8832
8832
|
const be = me[Le] ?? _e, Te = (t ?? []).filter((ce) => ce !== be);
|
|
8833
8833
|
if (Te.length === 0) return me;
|
|
8834
|
-
const
|
|
8835
|
-
return { ...me, [Le]:
|
|
8834
|
+
const z = Te[Math.floor(Math.random() * Te.length)];
|
|
8835
|
+
return { ...me, [Le]: z };
|
|
8836
8836
|
});
|
|
8837
8837
|
}, [t]), We = (Le, _e, me, be) => {
|
|
8838
|
-
const Te = E && b === "randomize" && T.display === "cover" ? I[me] ?? Le : Le,
|
|
8838
|
+
const Te = E && b === "randomize" && T.display === "cover" ? I[me] ?? Le : Le, z = `max(${k(m)}, ${Qm}px)`, ce = `calc(-0.5 * (${z} + ${k(m)}))`;
|
|
8839
8839
|
return /* @__PURE__ */ K(
|
|
8840
8840
|
"div",
|
|
8841
8841
|
{
|
|
@@ -8852,14 +8852,14 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8852
8852
|
imageMaxWidth: g,
|
|
8853
8853
|
imageMaxHeight: p,
|
|
8854
8854
|
cornerRadius: L,
|
|
8855
|
-
imageHoverClass:
|
|
8855
|
+
imageHoverClass: j,
|
|
8856
8856
|
isEditor: n,
|
|
8857
8857
|
isFirstSet: be,
|
|
8858
8858
|
scaled: k,
|
|
8859
8859
|
onFirstSetImageDone: ne
|
|
8860
8860
|
}
|
|
8861
8861
|
),
|
|
8862
|
-
|
|
8862
|
+
G && /* @__PURE__ */ l(
|
|
8863
8863
|
"div",
|
|
8864
8864
|
{
|
|
8865
8865
|
"data-controls": "gap",
|
|
@@ -8869,7 +8869,7 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8869
8869
|
position: "absolute",
|
|
8870
8870
|
top: 0,
|
|
8871
8871
|
right: ce,
|
|
8872
|
-
width:
|
|
8872
|
+
width: z,
|
|
8873
8873
|
height: "100%"
|
|
8874
8874
|
}
|
|
8875
8875
|
}
|
|
@@ -8880,7 +8880,7 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8880
8880
|
);
|
|
8881
8881
|
};
|
|
8882
8882
|
if (O) {
|
|
8883
|
-
const Le = M ?
|
|
8883
|
+
const Le = M ? D && re ? "paused" : "running" : "paused", _e = s > 0 && v > 0 ? s / v * 1e3 : 0, me = `${Math.max(0, _e) / 1e3}s`;
|
|
8884
8884
|
return /* @__PURE__ */ K(
|
|
8885
8885
|
"div",
|
|
8886
8886
|
{
|
|
@@ -8915,8 +8915,8 @@ const Jm = 30, Qm = 20, ia = 3, eg = 12, tg = 32, ng = 3, ig = (e) => {
|
|
|
8915
8915
|
},
|
|
8916
8916
|
"aria-hidden": Te > 0,
|
|
8917
8917
|
children: Se.map(
|
|
8918
|
-
(
|
|
8919
|
-
|
|
8918
|
+
(z, ce) => We(
|
|
8919
|
+
z,
|
|
8920
8920
|
Te,
|
|
8921
8921
|
ce,
|
|
8922
8922
|
Te === 0 && ce < $
|
|
@@ -10168,8 +10168,8 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10168
10168
|
return n * (o * e.wavelength + c[d] + (c[u] - c[d]) * f);
|
|
10169
10169
|
}, Fg = (e, t, n, i) => {
|
|
10170
10170
|
const o = Math.max(0, n), r = e > 0 ? 2 * Math.PI * o / e : 0, a = (u) => i + t * Math.sin(r * u), c = (u) => t * r * Math.cos(r * u), s = Math.max(4, Math.ceil(o * 4)), d = Array.from({ length: s }, (u, y) => {
|
|
10171
|
-
const f = y / s * e, m = (y + 1) / s * e, g = m - f, p = a(f), b = a(m), L = f + g / 3, T = p + c(f) * g / 3, $ = m - g / 3,
|
|
10172
|
-
return `C${L.toFixed(2)} ${T.toFixed(2)} ${$.toFixed(2)} ${
|
|
10171
|
+
const f = y / s * e, m = (y + 1) / s * e, g = m - f, p = a(f), b = a(m), L = f + g / 3, T = p + c(f) * g / 3, $ = m - g / 3, G = b - c(m) * g / 3;
|
|
10172
|
+
return `C${L.toFixed(2)} ${T.toFixed(2)} ${$.toFixed(2)} ${G.toFixed(2)} ${m.toFixed(2)} ${b.toFixed(2)}`;
|
|
10173
10173
|
});
|
|
10174
10174
|
return [`M0 ${a(0).toFixed(2)}`, ...d].join(" ");
|
|
10175
10175
|
}, Wg = ({ item: e, prefix: t, textCss: n, capHeightPx: i, opticalOffsetY: o, imageGapPx: r, isCurve: a }) => {
|
|
@@ -10201,9 +10201,9 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10201
10201
|
textFontSize: L,
|
|
10202
10202
|
textLineHeight: T,
|
|
10203
10203
|
textLetterSpacing: $,
|
|
10204
|
-
textWordSpacing:
|
|
10204
|
+
textWordSpacing: G,
|
|
10205
10205
|
textTextAppearance: E,
|
|
10206
|
-
textColor:
|
|
10206
|
+
textColor: j,
|
|
10207
10207
|
backgroundColor: M,
|
|
10208
10208
|
ribbonWidth: C
|
|
10209
10209
|
} = e, O = C ?? T, v = f === "curve", k = Sg(m), R = $g(g), J = Ue(() => fg(o, c, v), [o, c, v]), A = Ue(() => tn({
|
|
@@ -10213,14 +10213,14 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10213
10213
|
fontStyle: b.fontStyle
|
|
10214
10214
|
},
|
|
10215
10215
|
letterSpacing: $,
|
|
10216
|
-
wordSpacing:
|
|
10216
|
+
wordSpacing: G,
|
|
10217
10217
|
fontSize: L,
|
|
10218
10218
|
lineHeight: T,
|
|
10219
10219
|
textAppearance: E,
|
|
10220
|
-
color:
|
|
10221
|
-
}, n), [p, b, $,
|
|
10220
|
+
color: j
|
|
10221
|
+
}, n), [p, b, $, G, L, T, E, j, n]), X = (oe) => F(oe, n ?? !1), V = ((t == null ? void 0 : t.length) ?? 0) > 0, D = n ? !!i : !0, re = V && (D || !!n), w = Math.max(0, s) * yg, I = D && u === "on", [N, de] = Z(!1), ae = D ? I && N ? "paused" : "running" : "paused", S = ae === "running" && w > 0 && c > 0, se = B(null), P = B(null), ie = B(null), Y = B(null), Se = B(null), Ne = B(null), fe = B(S), ue = B(null);
|
|
10222
10222
|
fe.current = S;
|
|
10223
|
-
const [U, ne] = Z(0), [Q, We] = Z(0), [Le, _e] = Z(0), [me, be] = Z(0), [Te,
|
|
10223
|
+
const [U, ne] = Z(0), [Q, We] = Z(0), [Le, _e] = Z(0), [me, be] = Z(0), [Te, z] = Z(0), ce = Ue(
|
|
10224
10224
|
() => (t ?? []).map((oe) => {
|
|
10225
10225
|
var he;
|
|
10226
10226
|
return `${oe.text}\0${((he = oe.image) == null ? void 0 : he.url) ?? ""}`;
|
|
@@ -10228,8 +10228,8 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10228
10228
|
[t]
|
|
10229
10229
|
), [xe, we] = Z(oa), Fe = Ue(() => {
|
|
10230
10230
|
const oe = t ?? [];
|
|
10231
|
-
return oe.length === 0 || !(
|
|
10232
|
-
}, [t,
|
|
10231
|
+
return oe.length === 0 || !(D || n) ? oe : Tg(oe, xe);
|
|
10232
|
+
}, [t, D, xe, n]), Re = re ? bg : 1;
|
|
10233
10233
|
Mt(() => {
|
|
10234
10234
|
we(oa), a(0);
|
|
10235
10235
|
}, [ce]), Mt(() => {
|
|
@@ -10262,7 +10262,7 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10262
10262
|
if (!oe || !he) return;
|
|
10263
10263
|
const Ee = { id: 0 }, Ye = () => {
|
|
10264
10264
|
const Ke = oe.offsetWidth || oe.getBoundingClientRect().width, pt = he.offsetWidth || he.getBoundingClientRect().width;
|
|
10265
|
-
if (
|
|
10265
|
+
if (V && Ke > 0 && pt > 0) {
|
|
10266
10266
|
const it = pt / xe;
|
|
10267
10267
|
if (it > 0) {
|
|
10268
10268
|
const ke = Math.min(
|
|
@@ -10284,12 +10284,12 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10284
10284
|
return nt.observe(oe), nt.observe(he), () => {
|
|
10285
10285
|
cancelAnimationFrame(Ee.id), nt.disconnect();
|
|
10286
10286
|
};
|
|
10287
|
-
}, [re, ce, xe,
|
|
10287
|
+
}, [re, ce, xe, V, U]), Mt(() => {
|
|
10288
10288
|
const oe = Se.current;
|
|
10289
10289
|
if (!oe) return;
|
|
10290
10290
|
const he = { id: 0 }, Ee = () => {
|
|
10291
10291
|
const nt = oe.offsetHeight;
|
|
10292
|
-
nt > 0 &&
|
|
10292
|
+
nt > 0 && z((Ke) => Math.abs(Ke - nt) > 0.5 ? nt : Ke);
|
|
10293
10293
|
};
|
|
10294
10294
|
he.id = requestAnimationFrame(Ee);
|
|
10295
10295
|
const Ye = new ResizeObserver(() => {
|
|
@@ -10321,7 +10321,7 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10321
10321
|
const oe = ie.current;
|
|
10322
10322
|
oe && Cg(oe);
|
|
10323
10323
|
}, [re, c, d, w]), Mt(() => {
|
|
10324
|
-
if (!v || !
|
|
10324
|
+
if (!v || !V) return;
|
|
10325
10325
|
const oe = se.current;
|
|
10326
10326
|
if (!oe) return;
|
|
10327
10327
|
const he = {
|
|
@@ -10378,7 +10378,7 @@ const yg = 30, oa = 3, vg = 12, bg = 3, Ha = 0.72, xg = 100, wg = 10, Sg = (e) =
|
|
|
10378
10378
|
return document.addEventListener("visibilitychange", it), () => {
|
|
10379
10379
|
he.cancelled = !0, ue.current = null, cancelAnimationFrame(he.raf), document.removeEventListener("visibilitychange", it), Ee();
|
|
10380
10380
|
};
|
|
10381
|
-
}, [v, k, R,
|
|
10381
|
+
}, [v, k, R, V, r, ce, xe, U]), Mt(() => {
|
|
10382
10382
|
var oe;
|
|
10383
10383
|
(oe = ue.current) == null || oe.call(ue);
|
|
10384
10384
|
}, [S]);
|
|
@@ -11716,7 +11716,7 @@ function zg(e, t) {
|
|
|
11716
11716
|
const Bg = 30, ql = 2, Vg = (e) => {
|
|
11717
11717
|
e.style.setProperty("animation-name", "none"), e.style.setProperty("-webkit-animation-name", "none"), e.offsetHeight, e.style.removeProperty("animation-name"), e.style.removeProperty("-webkit-animation-name");
|
|
11718
11718
|
}, jg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11719
|
-
const { prefix: r } = cn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: y, corners: f, stroke: m, strokeColor: g, bgColor: p, padding: b, logoMarginTop: L, logoWidth: T, logoHeight: $, captionMarginTop:
|
|
11719
|
+
const { prefix: r } = cn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: y, corners: f, stroke: m, strokeColor: g, bgColor: p, padding: b, logoMarginTop: L, logoWidth: T, logoHeight: $, captionMarginTop: G } = e, E = !!o, j = ((t == null ? void 0 : t.length) ?? 0) > 0, M = c > 0 && (!n || i), C = j && (M || n), O = Math.max(0, c) * Bg, v = (_) => F(_, n ?? !1), k = B(null), R = B(null), J = B(null), [A, X] = Z(0), [V, D] = Z(0), re = V > 0 ? V : 0, w = Ue(() => zg(r, re), [r, re]), [I, N] = Z(0), de = M && d === "on", [ae, S] = Z(!1), se = B(null), [P, ie] = Z(0), [Y, Se] = Z(0), Ne = B(null), fe = (_) => {
|
|
11720
11720
|
var le, W, te, He, pe;
|
|
11721
11721
|
return {
|
|
11722
11722
|
fontSettings: {
|
|
@@ -11741,7 +11741,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11741
11741
|
return (((ve = _.text) == null ? void 0 : ve.length) ?? 0) > 0 || (((le = _.caption) == null ? void 0 : le.length) ?? 0) > 0;
|
|
11742
11742
|
}),
|
|
11743
11743
|
[t]
|
|
11744
|
-
), Q = Ue(() => !C || (t == null ? void 0 : t.length) === 0 ? 1 :
|
|
11744
|
+
), Q = Ue(() => !C || (t == null ? void 0 : t.length) === 0 ? 1 : V <= 0 || A <= 0 ? ql : Math.max(ql, Math.ceil(A / V) + 1), [C, t == null ? void 0 : t.length, V, A]);
|
|
11745
11745
|
Mt(() => {
|
|
11746
11746
|
if (!C) return;
|
|
11747
11747
|
const _ = k.current, ve = J.current;
|
|
@@ -11749,11 +11749,11 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11749
11749
|
let le = 0;
|
|
11750
11750
|
const W = () => {
|
|
11751
11751
|
const pe = _.getBoundingClientRect().width, H = ve.getBoundingClientRect().width, Je = Ne.current, Ve = typeof Je == "number" && Math.abs(Je - H) <= 0.25;
|
|
11752
|
-
if (Ne.current = H, X(pe), typeof H == "number" && H > 0 &&
|
|
11753
|
-
|
|
11752
|
+
if (Ne.current = H, X(pe), typeof H == "number" && H > 0 && V <= 0) {
|
|
11753
|
+
D(H);
|
|
11754
11754
|
return;
|
|
11755
11755
|
}
|
|
11756
|
-
Ve && H !==
|
|
11756
|
+
Ve && H !== V ? D(H) : !Ve && V <= 0 && (cancelAnimationFrame(le), le = requestAnimationFrame(W));
|
|
11757
11757
|
}, te = () => {
|
|
11758
11758
|
cancelAnimationFrame(le), le = requestAnimationFrame(W);
|
|
11759
11759
|
};
|
|
@@ -11762,7 +11762,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11762
11762
|
return He.observe(_), He.observe(ve), () => {
|
|
11763
11763
|
cancelAnimationFrame(le), He.disconnect();
|
|
11764
11764
|
};
|
|
11765
|
-
}, [M, C,
|
|
11765
|
+
}, [M, C, V]);
|
|
11766
11766
|
const We = re > 0 && O > 0 ? re / O * 1e3 : 0, Le = `${Math.max(0, We) / 1e3}s`;
|
|
11767
11767
|
Mt(() => {
|
|
11768
11768
|
if (!C || re <= 0) return;
|
|
@@ -11813,7 +11813,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11813
11813
|
default:
|
|
11814
11814
|
return "left";
|
|
11815
11815
|
}
|
|
11816
|
-
}, [a]),
|
|
11816
|
+
}, [a]), z = ye(
|
|
11817
11817
|
(_, ve, le, W) => /* @__PURE__ */ K(
|
|
11818
11818
|
"div",
|
|
11819
11819
|
{
|
|
@@ -11875,7 +11875,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11875
11875
|
className: `${r}-elements-overlay`,
|
|
11876
11876
|
style: { alignItems: be, textAlign: Te },
|
|
11877
11877
|
children: [
|
|
11878
|
-
_.text &&
|
|
11878
|
+
_.text && z(
|
|
11879
11879
|
ue,
|
|
11880
11880
|
_.text,
|
|
11881
11881
|
"text",
|
|
@@ -11910,9 +11910,9 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11910
11910
|
]
|
|
11911
11911
|
}
|
|
11912
11912
|
),
|
|
11913
|
-
_.caption &&
|
|
11913
|
+
_.caption && z(U, _.caption, "caption", {
|
|
11914
11914
|
...le != null && le.dataMeasureAttrs ? {} : { controlsName: "captionMarginTop" },
|
|
11915
|
-
marginTop:
|
|
11915
|
+
marginTop: G,
|
|
11916
11916
|
...le != null && le.dataMeasureAttrs ? { dataMeasureKind: "caption" } : typeof (le == null ? void 0 : le.captionMinHeightPx) == "number" && le.captionMinHeightPx > 0 ? { minHeightPx: le.captionMinHeightPx } : {}
|
|
11917
11917
|
})
|
|
11918
11918
|
]
|
|
@@ -11925,7 +11925,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11925
11925
|
},
|
|
11926
11926
|
[
|
|
11927
11927
|
p,
|
|
11928
|
-
|
|
11928
|
+
G,
|
|
11929
11929
|
U,
|
|
11930
11930
|
y,
|
|
11931
11931
|
f,
|
|
@@ -11938,7 +11938,7 @@ const Bg = 30, ql = 2, Vg = (e) => {
|
|
|
11938
11938
|
b.left,
|
|
11939
11939
|
b.right,
|
|
11940
11940
|
b.top,
|
|
11941
|
-
|
|
11941
|
+
z,
|
|
11942
11942
|
m,
|
|
11943
11943
|
g,
|
|
11944
11944
|
ue,
|
|
@@ -13363,7 +13363,7 @@ function Xg(e) {
|
|
|
13363
13363
|
`;
|
|
13364
13364
|
}
|
|
13365
13365
|
const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
13366
|
-
const { prefix: r } = cn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: y, captionMarginTop: f, imageWidth: m, imageHeight: g, controlsWidth: p, controlsColor: b, controlsHoverColor: L } = e, T = c > 0 && (!n || !!i), [$,
|
|
13366
|
+
const { prefix: r } = cn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: y, captionMarginTop: f, imageWidth: m, imageHeight: g, controlsWidth: p, controlsColor: b, controlsHoverColor: L } = e, T = c > 0 && (!n || !!i), [$, G] = Z(0), [E, j] = Z(null), [M, C] = Z(!1), O = B(null), v = Ue(() => {
|
|
13367
13367
|
switch (s) {
|
|
13368
13368
|
case "center":
|
|
13369
13369
|
return "center";
|
|
@@ -13385,7 +13385,7 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13385
13385
|
}
|
|
13386
13386
|
}, [s]);
|
|
13387
13387
|
Ae(() => {
|
|
13388
|
-
|
|
13388
|
+
G(0), j(null), C(!1);
|
|
13389
13389
|
}, [a.length]);
|
|
13390
13390
|
const R = a[$], J = E === null ? null : a[E], A = (fe) => {
|
|
13391
13391
|
var U, ne, Q, We, Le;
|
|
@@ -13406,20 +13406,20 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13406
13406
|
wordSpacing: (e == null ? void 0 : e[`${fe}WordSpacing`]) ?? 0,
|
|
13407
13407
|
color: (e == null ? void 0 : e[`${fe}Color`]) ?? "#000000"
|
|
13408
13408
|
};
|
|
13409
|
-
}, X = A("text"),
|
|
13409
|
+
}, X = A("text"), V = A("caption"), D = a.length > 1 && a.some((fe) => {
|
|
13410
13410
|
var ue, U;
|
|
13411
13411
|
return (((ue = fe.text) == null ? void 0 : ue.length) ?? 0) > 0 || (((U = fe.caption) == null ? void 0 : U.length) ?? 0) > 0;
|
|
13412
|
-
}), re =
|
|
13413
|
-
|
|
13412
|
+
}), re = B(null), [w, I] = Z(0), [N, de] = Z(0), ae = e.controls ?? { mode: "Off", icon: null }, S = a.length > 1, se = ye((fe, ue) => !S || ue === fe ? fe : (O.current && window.clearTimeout(O.current), j(fe), C(!0), O.current = window.setTimeout(() => {
|
|
13413
|
+
j(null), C(!1), O.current = null;
|
|
13414
13414
|
}, 300), ue), [S]), P = ye(() => {
|
|
13415
|
-
S &&
|
|
13415
|
+
S && G((fe) => se(fe, (fe - 1 + a.length) % a.length));
|
|
13416
13416
|
}, [S, se, a.length]), ie = ye(() => {
|
|
13417
|
-
S &&
|
|
13417
|
+
S && G((fe) => se(fe, (fe + 1) % a.length));
|
|
13418
13418
|
}, [S, se, a.length]);
|
|
13419
13419
|
Ae(() => {
|
|
13420
13420
|
if (!T || !S) return;
|
|
13421
13421
|
const fe = Math.max(300, Kg / c), ue = window.setInterval(() => {
|
|
13422
|
-
|
|
13422
|
+
G((U) => se(U, (U + 1) % a.length));
|
|
13423
13423
|
}, fe);
|
|
13424
13424
|
return () => {
|
|
13425
13425
|
window.clearInterval(ue);
|
|
@@ -13487,7 +13487,7 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13487
13487
|
{
|
|
13488
13488
|
...Q ? { "data-testimonial-measure": "caption" } : {},
|
|
13489
13489
|
style: {
|
|
13490
|
-
...tn(
|
|
13490
|
+
...tn(V, n),
|
|
13491
13491
|
...ne && ne > 0 ? { minHeight: ne } : {},
|
|
13492
13492
|
textAlign: k,
|
|
13493
13493
|
pointerEvents: "auto"
|
|
@@ -13501,7 +13501,7 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13501
13501
|
I(fe.maxTextPx), de(fe.maxCaptionPx);
|
|
13502
13502
|
}, []);
|
|
13503
13503
|
if (Mt(() => {
|
|
13504
|
-
if (!
|
|
13504
|
+
if (!D) {
|
|
13505
13505
|
Se({ maxTextPx: 0, maxCaptionPx: 0 });
|
|
13506
13506
|
return;
|
|
13507
13507
|
}
|
|
@@ -13515,8 +13515,8 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13515
13515
|
return U.observe(fe), () => {
|
|
13516
13516
|
U.disconnect();
|
|
13517
13517
|
};
|
|
13518
|
-
}, [
|
|
13519
|
-
const Ne =
|
|
13518
|
+
}, [D, Se, t]), !R) return /* @__PURE__ */ l(lt, {});
|
|
13519
|
+
const Ne = D ? { textMinHeightPx: w, captionMinHeightPx: N } : void 0;
|
|
13520
13520
|
return /* @__PURE__ */ l(lt, { children: /* @__PURE__ */ K("div", { className: `${r}-container`, children: [
|
|
13521
13521
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Xg(r) } }),
|
|
13522
13522
|
/* @__PURE__ */ K(
|
|
@@ -13525,7 +13525,7 @@ const Kg = 3e3, Yg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13525
13525
|
className: `${r}-wrapper`,
|
|
13526
13526
|
style: { width: F(d ?? 0, n ?? !1), alignItems: v },
|
|
13527
13527
|
children: [
|
|
13528
|
-
|
|
13528
|
+
D && /* @__PURE__ */ l(
|
|
13529
13529
|
"div",
|
|
13530
13530
|
{
|
|
13531
13531
|
ref: re,
|
|
@@ -15119,13 +15119,13 @@ function fh({
|
|
|
15119
15119
|
);
|
|
15120
15120
|
}
|
|
15121
15121
|
function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: c, counterClassName: s, counterStyle: d }) {
|
|
15122
|
-
const u = i === "cover", y =
|
|
15123
|
-
}), [R, J] = Z(null), [A, X] = Z(null), [
|
|
15122
|
+
const u = i === "cover", y = B(null), f = B(null), m = B(null), g = B(null), p = B(0), b = B(0), L = B("none"), T = B(!1), $ = B(!1), G = B(null), E = B(0), j = B(null), M = B(!1), C = B(null), O = B(null), v = B(null), k = B(() => {
|
|
15123
|
+
}), [R, J] = Z(null), [A, X] = Z(null), [V, D] = Z("opening"), [re, w] = Z(0), [I, N] = Z(0), [de, ae] = Z(null), [S, se] = Z(!1), [P, ie] = Z(!1), [Y, Se] = Z(!1), [Ne, fe] = Z(null), ue = B(n), U = B(void 0), ne = t[n], Q = ne ? Si(ne) : !1, We = I !== 0 || S, Le = de !== null, _e = ye((oe) => {
|
|
15124
15124
|
const he = oe.currentTarget, Ee = he instanceof HTMLVideoElement ? { width: he.videoWidth, height: he.videoHeight } : { width: he.naturalWidth, height: he.naturalHeight };
|
|
15125
15125
|
!Ee.width || !Ee.height || fe(Ee);
|
|
15126
15126
|
}, []);
|
|
15127
15127
|
Ae(() => {
|
|
15128
|
-
|
|
15128
|
+
G.current = A;
|
|
15129
15129
|
}, [A]), Ae(() => {
|
|
15130
15130
|
const oe = y.current;
|
|
15131
15131
|
if (!oe) return;
|
|
@@ -15138,26 +15138,26 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15138
15138
|
C.current !== null && (window.clearTimeout(C.current), C.current = null);
|
|
15139
15139
|
}, []), be = ye(() => {
|
|
15140
15140
|
const oe = O.current;
|
|
15141
|
-
O.current = null, me(),
|
|
15141
|
+
O.current = null, me(), j.current = null, M.current = !1, ae(null), se(!1), N(0), E.current = 0, ie(!1), T.current = !1, b.current = 0, L.current = "none", oe === 1 ? c() : oe === -1 && a();
|
|
15142
15142
|
}, [me, c, a]), Te = ye(() => {
|
|
15143
|
-
me(), O.current = null,
|
|
15144
|
-
}, [me]),
|
|
15143
|
+
me(), O.current = null, j.current = null, M.current = !1, ae(null), se(!1), N(0), E.current = 0;
|
|
15144
|
+
}, [me]), z = ye(() => {
|
|
15145
15145
|
me(), C.current = window.setTimeout(() => {
|
|
15146
15146
|
O.current !== null && be();
|
|
15147
15147
|
}, Ln + 32);
|
|
15148
15148
|
}, [me, be]), ce = ye((oe, he) => {
|
|
15149
15149
|
var Ye;
|
|
15150
|
-
const Ee = ((Ye =
|
|
15151
|
-
if (me(),
|
|
15150
|
+
const Ee = ((Ye = G.current) == null ? void 0 : Ye.width) ?? 0;
|
|
15151
|
+
if (me(), j.current = oe, ae(oe), M.current = !0, se(!0), he) {
|
|
15152
15152
|
O.current = oe;
|
|
15153
15153
|
const nt = -oe * Ee;
|
|
15154
|
-
E.current = nt, N(nt),
|
|
15154
|
+
E.current = nt, N(nt), z();
|
|
15155
15155
|
return;
|
|
15156
15156
|
}
|
|
15157
15157
|
E.current = 0, N(0), C.current = window.setTimeout(() => {
|
|
15158
15158
|
C.current = null, Te();
|
|
15159
15159
|
}, Ln + 32);
|
|
15160
|
-
}, [me, Te,
|
|
15160
|
+
}, [me, Te, z]), xe = ye((oe) => {
|
|
15161
15161
|
if (!(t.length <= 1)) {
|
|
15162
15162
|
if (M.current) {
|
|
15163
15163
|
if (O.current === oe) {
|
|
@@ -15166,7 +15166,7 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15166
15166
|
}
|
|
15167
15167
|
Te();
|
|
15168
15168
|
}
|
|
15169
|
-
me(),
|
|
15169
|
+
me(), j.current = oe, ae(oe), M.current = !1, se(!1), E.current = 0, N(0), requestAnimationFrame(() => {
|
|
15170
15170
|
requestAnimationFrame(() => {
|
|
15171
15171
|
ce(oe, !0);
|
|
15172
15172
|
});
|
|
@@ -15189,22 +15189,22 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15189
15189
|
const he = new ResizeObserver(() => Fe());
|
|
15190
15190
|
return he.observe(oe), () => he.disconnect();
|
|
15191
15191
|
}, [Fe]), Ae(() => {
|
|
15192
|
-
|
|
15193
|
-
}, [
|
|
15194
|
-
if (
|
|
15192
|
+
V === "opening" && R && D("open");
|
|
15193
|
+
}, [V, R]), Ae(() => {
|
|
15194
|
+
if (V !== "closing") return;
|
|
15195
15195
|
const oe = setTimeout(() => r(), Ln);
|
|
15196
15196
|
return () => clearTimeout(oe);
|
|
15197
|
-
}, [
|
|
15197
|
+
}, [V, r]), Ae(() => () => {
|
|
15198
15198
|
me();
|
|
15199
15199
|
}, [me]), Mt(() => {
|
|
15200
|
-
ue.current === n && U.current === (ne == null ? void 0 : ne.url) || (me(), O.current = null, ae(null), w(0), N(0), se(!1), Se(!1), ie(!1), fe(null), p.current = 0, b.current = 0, L.current = "none", T.current = !1, M.current = !1, E.current = 0,
|
|
15200
|
+
ue.current === n && U.current === (ne == null ? void 0 : ne.url) || (me(), O.current = null, ae(null), w(0), N(0), se(!1), Se(!1), ie(!1), fe(null), p.current = 0, b.current = 0, L.current = "none", T.current = !1, M.current = !1, E.current = 0, j.current = null, g.current = null, $.current = !1, ue.current = n, U.current = ne == null ? void 0 : ne.url);
|
|
15201
15201
|
}, [n, ne == null ? void 0 : ne.url, me]), Mt(() => {
|
|
15202
15202
|
const oe = v.current;
|
|
15203
15203
|
oe !== null && (v.current = null, requestAnimationFrame(() => {
|
|
15204
15204
|
k.current(oe);
|
|
15205
15205
|
}));
|
|
15206
15206
|
}, [n, ne == null ? void 0 : ne.url]), Ae(() => {
|
|
15207
|
-
if (
|
|
15207
|
+
if (V !== "open") return;
|
|
15208
15208
|
let oe = null;
|
|
15209
15209
|
const he = () => {
|
|
15210
15210
|
oe && (document.removeEventListener("click", oe, !0), oe = null);
|
|
@@ -15239,7 +15239,7 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15239
15239
|
if (L.current === "horizontal") {
|
|
15240
15240
|
T.current = !0, ie(!0), b.current = Ze;
|
|
15241
15241
|
const at = Ze < 0 ? 1 : -1;
|
|
15242
|
-
|
|
15242
|
+
j.current !== at && (j.current = at, ae(at)), E.current = Ze, N(Ze), it.preventDefault();
|
|
15243
15243
|
return;
|
|
15244
15244
|
}
|
|
15245
15245
|
L.current === "vertical" && (T.current = !0, ie(!0), p.current = De, w(De), it.preventDefault());
|
|
@@ -15251,7 +15251,7 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15251
15251
|
else if (ke && it === "vertical")
|
|
15252
15252
|
if (p.current > lh) {
|
|
15253
15253
|
const De = window.innerHeight;
|
|
15254
|
-
p.current = De, Se(!0), w(De),
|
|
15254
|
+
p.current = De, Se(!0), w(De), D("closing");
|
|
15255
15255
|
} else
|
|
15256
15256
|
p.current = 0, w(0), Ee();
|
|
15257
15257
|
else it === "horizontal" && Math.abs(b.current) > 0 && (Ye(b.current), Ee());
|
|
@@ -15260,15 +15260,15 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15260
15260
|
return document.addEventListener("touchstart", nt, { passive: !0 }), document.addEventListener("touchmove", Ke, { passive: !1 }), document.addEventListener("touchend", pt), document.addEventListener("touchcancel", pt), () => {
|
|
15261
15261
|
document.removeEventListener("touchstart", nt), document.removeEventListener("touchmove", Ke), document.removeEventListener("touchend", pt), document.removeEventListener("touchcancel", pt), he();
|
|
15262
15262
|
};
|
|
15263
|
-
}, [
|
|
15263
|
+
}, [V, t.length, ce]), Ae(() => {
|
|
15264
15264
|
const oe = (he) => {
|
|
15265
|
-
he.key === "Escape" && (he.preventDefault(), he.stopPropagation(),
|
|
15265
|
+
he.key === "Escape" && (he.preventDefault(), he.stopPropagation(), V !== "closing" && D("closing"));
|
|
15266
15266
|
};
|
|
15267
15267
|
return window.addEventListener("keydown", oe, !0), () => window.removeEventListener("keydown", oe, !0);
|
|
15268
|
-
}, [
|
|
15268
|
+
}, [V]);
|
|
15269
15269
|
const Re = () => {
|
|
15270
|
-
|
|
15271
|
-
}, _ =
|
|
15270
|
+
V !== "closing" && D("closing");
|
|
15271
|
+
}, _ = V === "open", ve = V === "closing", le = re > 0 ? Math.max(0, 1 - re / 500) : 1, W = re > 0 ? Math.max(0.35, 1 - re / 500) : 1, te = R ? u ? R : hh(R, Ne) : null, He = (oe) => {
|
|
15272
15272
|
if (oe.stopPropagation(), $.current) {
|
|
15273
15273
|
$.current = !1;
|
|
15274
15274
|
return;
|
|
@@ -15297,10 +15297,10 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15297
15297
|
width: A == null ? void 0 : A.width,
|
|
15298
15298
|
height: A == null ? void 0 : A.height,
|
|
15299
15299
|
zIndex: 9998
|
|
15300
|
-
}, Je = u ? "cover" : "contain", Ve = I !== 0 || re > 0 ? `translate(${I}px, ${re}px)` : void 0, ft = P && !S ? "none" : S ? `transform ${Ln}ms ${Gn}` : Y ? `transform ${Ln}ms ${Gn}, opacity ${Ln}ms ${Gn}` :
|
|
15300
|
+
}, Je = u ? "cover" : "contain", Ve = I !== 0 || re > 0 ? `translate(${I}px, ${re}px)` : void 0, ft = P && !S ? "none" : S ? `transform ${Ln}ms ${Gn}` : Y ? `transform ${Ln}ms ${Gn}, opacity ${Ln}ms ${Gn}` : V === "opening" || ve ? `opacity ${Ln}ms ${Gn}` : "none", st = {
|
|
15301
15301
|
...H,
|
|
15302
15302
|
transform: Ve,
|
|
15303
|
-
opacity: re > 0 ? W :
|
|
15303
|
+
opacity: re > 0 ? W : V === "opening" || ve ? 0 : 1,
|
|
15304
15304
|
transition: ft,
|
|
15305
15305
|
pointerEvents: "none"
|
|
15306
15306
|
}, wt = {
|
|
@@ -15342,7 +15342,7 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15342
15342
|
o ? `${e}-lightbox-editor` : ""
|
|
15343
15343
|
].filter(Boolean).join(" "),
|
|
15344
15344
|
style: {
|
|
15345
|
-
touchAction:
|
|
15345
|
+
touchAction: V === "open" ? "none" : void 0
|
|
15346
15346
|
},
|
|
15347
15347
|
onClick: Re,
|
|
15348
15348
|
children: [
|
|
@@ -15458,7 +15458,7 @@ function yh({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15458
15458
|
fh,
|
|
15459
15459
|
{
|
|
15460
15460
|
src: ne.url,
|
|
15461
|
-
phase:
|
|
15461
|
+
phase: V,
|
|
15462
15462
|
mediaRef: m,
|
|
15463
15463
|
mediaStyle: wt,
|
|
15464
15464
|
onLoadedMetadata: _e,
|
|
@@ -15534,9 +15534,9 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15534
15534
|
imageCorners: L,
|
|
15535
15535
|
lightboxImageDisplay: T,
|
|
15536
15536
|
slider: $,
|
|
15537
|
-
sliderTiming:
|
|
15537
|
+
sliderTiming: G,
|
|
15538
15538
|
direction: E,
|
|
15539
|
-
transition:
|
|
15539
|
+
transition: j,
|
|
15540
15540
|
titleMarginTop: M,
|
|
15541
15541
|
subtitleMarginTop: C,
|
|
15542
15542
|
titleColor: O,
|
|
@@ -15546,8 +15546,8 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15546
15546
|
titleFontSettings: J,
|
|
15547
15547
|
titleFontSize: A,
|
|
15548
15548
|
titleLineHeight: X,
|
|
15549
|
-
titleLetterSpacing:
|
|
15550
|
-
titleWordSpacing:
|
|
15549
|
+
titleLetterSpacing: V,
|
|
15550
|
+
titleWordSpacing: D,
|
|
15551
15551
|
titleTextAppearance: re,
|
|
15552
15552
|
subtitleFontFamily: w,
|
|
15553
15553
|
subtitleFontSettings: I,
|
|
@@ -15574,8 +15574,8 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15574
15574
|
},
|
|
15575
15575
|
fontSize: A ?? 0.01,
|
|
15576
15576
|
lineHeight: X,
|
|
15577
|
-
letterSpacing:
|
|
15578
|
-
wordSpacing:
|
|
15577
|
+
letterSpacing: V ?? 0,
|
|
15578
|
+
wordSpacing: D ?? 0,
|
|
15579
15579
|
textAppearance: re,
|
|
15580
15580
|
color: O
|
|
15581
15581
|
}, _e = {
|
|
@@ -15594,7 +15594,7 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15594
15594
|
color: v
|
|
15595
15595
|
}, Te = {
|
|
15596
15596
|
...mn(tn(me, n))
|
|
15597
|
-
},
|
|
15597
|
+
}, z = {
|
|
15598
15598
|
fontSettings: {
|
|
15599
15599
|
fontFamily: P,
|
|
15600
15600
|
fontWeight: (ie == null ? void 0 : ie.fontWeight) ?? 400,
|
|
@@ -15607,7 +15607,7 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15607
15607
|
textAppearance: ue,
|
|
15608
15608
|
color: k
|
|
15609
15609
|
}, xe = {
|
|
15610
|
-
...mn(tn(
|
|
15610
|
+
...mn(tn(z, n)),
|
|
15611
15611
|
...aa(Y, Se, d, n)
|
|
15612
15612
|
}, we = ra(
|
|
15613
15613
|
A,
|
|
@@ -15649,7 +15649,7 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15649
15649
|
height: "auto",
|
|
15650
15650
|
maxWidth: "100%",
|
|
15651
15651
|
...it ? { borderRadius: it } : {}
|
|
15652
|
-
}, [en, rn] = Z(0), Tt =
|
|
15652
|
+
}, [en, rn] = Z(0), Tt = B(null), It = j === "fade" || E === "horizontal" ? "ltr" : E === "vertical" ? "ttb" : "ltr";
|
|
15653
15653
|
Ae(() => {
|
|
15654
15654
|
const bt = Tt.current;
|
|
15655
15655
|
if (!bt) return;
|
|
@@ -15793,18 +15793,18 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15793
15793
|
drag: !1,
|
|
15794
15794
|
perPage: 1,
|
|
15795
15795
|
autoplay: !0,
|
|
15796
|
-
interval:
|
|
15796
|
+
interval: G * 1e3,
|
|
15797
15797
|
width: "100%",
|
|
15798
15798
|
height: "100%",
|
|
15799
15799
|
speed: ah,
|
|
15800
|
-
type:
|
|
15801
|
-
rewind:
|
|
15800
|
+
type: j === "fade" ? "fade" : "loop",
|
|
15801
|
+
rewind: j === "fade",
|
|
15802
15802
|
pauseOnHover: !1,
|
|
15803
15803
|
pauseOnFocus: !1,
|
|
15804
15804
|
direction: It
|
|
15805
15805
|
},
|
|
15806
15806
|
onMoved: (Rt) => {
|
|
15807
|
-
E !== "random" ||
|
|
15807
|
+
E !== "random" || j === "fade" || rh(Rt);
|
|
15808
15808
|
},
|
|
15809
15809
|
children: Zt.map(({ displayMedia: Rt, lightboxMedia: x }, Ce) => {
|
|
15810
15810
|
const Me = x ? Jt.findIndex((ze) => ze.url === x.url) : -1;
|
|
@@ -15819,7 +15819,7 @@ function bh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15819
15819
|
) }, Ce);
|
|
15820
15820
|
})
|
|
15821
15821
|
},
|
|
15822
|
-
`${
|
|
15822
|
+
`${j}-${Ve}-${E}-${G}-${en}-${c}`
|
|
15823
15823
|
)
|
|
15824
15824
|
] }) }), qt = De ? null : /* @__PURE__ */ K(lt, { children: [
|
|
15825
15825
|
/* @__PURE__ */ l(
|
|
@@ -19061,8 +19061,8 @@ function Bc({
|
|
|
19061
19061
|
closeIcon: L = null,
|
|
19062
19062
|
closeIconMaxWidth: T = 0,
|
|
19063
19063
|
closeIconColor: $ = "#000000",
|
|
19064
|
-
closeIconHoverColor:
|
|
19065
|
-
} = n, E = F(p, i),
|
|
19064
|
+
closeIconHoverColor: G = "#cccccc"
|
|
19065
|
+
} = n, E = F(p, i), j = F(b, i), M = F(m, i), C = g === "mobile", O = xi("title1", bi(n, "title1"), i), v = xi("title2", bi(n, "title2"), i), k = xi("title3", bi(n, "title3"), i), R = Ue(
|
|
19066
19066
|
() => ({
|
|
19067
19067
|
title1Width: c ?? ji.title1Width,
|
|
19068
19068
|
title2Width: s ?? ji.title2Width,
|
|
@@ -19078,10 +19078,10 @@ function Bc({
|
|
|
19078
19078
|
), X = Ue(
|
|
19079
19079
|
() => A.map((W) => R[W.widthKey]),
|
|
19080
19080
|
[A, R]
|
|
19081
|
-
),
|
|
19081
|
+
), V = Ue(
|
|
19082
19082
|
() => Yi(A.length, X),
|
|
19083
19083
|
[A.length, X]
|
|
19084
|
-
),
|
|
19084
|
+
), D = Ue(
|
|
19085
19085
|
() => Eo(A.length, X),
|
|
19086
19086
|
[A.length, X]
|
|
19087
19087
|
), re = Ue(
|
|
@@ -19102,9 +19102,9 @@ function Bc({
|
|
|
19102
19102
|
const He = A.findIndex((H) => H.prefix === W.prefix);
|
|
19103
19103
|
if (!C || te === "single-row")
|
|
19104
19104
|
return {
|
|
19105
|
-
effectiveWidth:
|
|
19106
|
-
resolvedWidth:
|
|
19107
|
-
maxWidth: fn(He,
|
|
19105
|
+
effectiveWidth: D[He] ?? 0,
|
|
19106
|
+
resolvedWidth: V[He] ?? 0,
|
|
19107
|
+
maxWidth: fn(He, V)
|
|
19108
19108
|
};
|
|
19109
19109
|
if (te === "two-row-top") {
|
|
19110
19110
|
const H = re.findIndex((Je) => Je.prefix === W.prefix);
|
|
@@ -19145,7 +19145,7 @@ function Bc({
|
|
|
19145
19145
|
};
|
|
19146
19146
|
}, Y = (W) => zc(
|
|
19147
19147
|
A,
|
|
19148
|
-
|
|
19148
|
+
V,
|
|
19149
19149
|
J,
|
|
19150
19150
|
W
|
|
19151
19151
|
) + (C ? 0 : u ?? 0), Se = () => C ? 0 : u ?? 0, Ne = (W) => w.slice(0, W).reduce(
|
|
@@ -19211,7 +19211,7 @@ function Bc({
|
|
|
19211
19211
|
W.className
|
|
19212
19212
|
);
|
|
19213
19213
|
}, U = (W = "two-row") => {
|
|
19214
|
-
const te = A.findIndex((H) => H.prefix === "title1"), He = te >= 0 ?
|
|
19214
|
+
const te = A.findIndex((H) => H.prefix === "title1"), He = te >= 0 ? V[te] : R.title1Width, pe = W === "two-row" && o;
|
|
19215
19215
|
return /* @__PURE__ */ l(
|
|
19216
19216
|
"div",
|
|
19217
19217
|
{
|
|
@@ -19288,8 +19288,8 @@ function Bc({
|
|
|
19288
19288
|
style: {
|
|
19289
19289
|
width: F(T ?? 0, i),
|
|
19290
19290
|
height: F(T ?? 0, i),
|
|
19291
|
-
marginRight:
|
|
19292
|
-
"--close-icon-hover-color":
|
|
19291
|
+
marginRight: j,
|
|
19292
|
+
"--close-icon-hover-color": G
|
|
19293
19293
|
},
|
|
19294
19294
|
children: [
|
|
19295
19295
|
/* @__PURE__ */ l(
|
|
@@ -19306,7 +19306,7 @@ function Bc({
|
|
|
19306
19306
|
{
|
|
19307
19307
|
url: L ?? "",
|
|
19308
19308
|
fill: $,
|
|
19309
|
-
hoverFill: i && !r ? $ :
|
|
19309
|
+
hoverFill: i && !r ? $ : G,
|
|
19310
19310
|
className: `${e}-close-icon-img`
|
|
19311
19311
|
}
|
|
19312
19312
|
)
|
|
@@ -19323,7 +19323,7 @@ function Bc({
|
|
|
19323
19323
|
position: "absolute",
|
|
19324
19324
|
top: 0,
|
|
19325
19325
|
left: "100%",
|
|
19326
|
-
width:
|
|
19326
|
+
width: j,
|
|
19327
19327
|
height: "100%",
|
|
19328
19328
|
pointerEvents: "auto"
|
|
19329
19329
|
}
|
|
@@ -19336,12 +19336,12 @@ function Bc({
|
|
|
19336
19336
|
se ? U("two-row") : null,
|
|
19337
19337
|
be(W),
|
|
19338
19338
|
me()
|
|
19339
|
-
] }),
|
|
19339
|
+
] }), z = (W, te = !1) => /* @__PURE__ */ K(lt, { children: [
|
|
19340
19340
|
Te(We(W)),
|
|
19341
19341
|
Le(W, te)
|
|
19342
19342
|
] }), ce = () => {
|
|
19343
19343
|
const W = C ? -1 : A.findIndex((pe) => pe.prefix === "title1"), te = !C && (o || (u ?? 0) > 0) ? (() => {
|
|
19344
|
-
const pe = u ?? 0, H = W >= 0 ?
|
|
19344
|
+
const pe = u ?? 0, H = W >= 0 ? V[W] : R.title1Width, Je = Math.max(pe, Jn);
|
|
19345
19345
|
return /* @__PURE__ */ l(
|
|
19346
19346
|
"div",
|
|
19347
19347
|
{
|
|
@@ -19364,7 +19364,7 @@ function Bc({
|
|
|
19364
19364
|
if (!pe.marginLeftKey) return [];
|
|
19365
19365
|
const Je = J[pe.marginLeftKey] ?? 0, Ve = Dc(
|
|
19366
19366
|
A,
|
|
19367
|
-
|
|
19367
|
+
V,
|
|
19368
19368
|
J,
|
|
19369
19369
|
H
|
|
19370
19370
|
) + Se(), ft = Math.max(Je, Jn);
|
|
@@ -19374,7 +19374,7 @@ function Bc({
|
|
|
19374
19374
|
"data-controls": pe.marginLeftKey,
|
|
19375
19375
|
"data-controls-axis": "x",
|
|
19376
19376
|
"data-controls-min": "0",
|
|
19377
|
-
"data-controls-max-fraction": String(
|
|
19377
|
+
"data-controls-max-fraction": String(V[H]),
|
|
19378
19378
|
style: {
|
|
19379
19379
|
position: "absolute",
|
|
19380
19380
|
top: 0,
|
|
@@ -19389,7 +19389,7 @@ function Bc({
|
|
|
19389
19389
|
});
|
|
19390
19390
|
return te ? [te, ...He] : He;
|
|
19391
19391
|
}, xe = () => A.map((W, te) => {
|
|
19392
|
-
const He = fn(te,
|
|
19392
|
+
const He = fn(te, V), H = Y(te) - Sn / 2;
|
|
19393
19393
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
19394
19394
|
"div",
|
|
19395
19395
|
{
|
|
@@ -19483,7 +19483,7 @@ function Bc({
|
|
|
19483
19483
|
{
|
|
19484
19484
|
className: `${e}-titles-row-two-row`,
|
|
19485
19485
|
style: _ ? void 0 : { flex: "0 0 auto", height: "auto" },
|
|
19486
|
-
children:
|
|
19486
|
+
children: z(t, !0)
|
|
19487
19487
|
}
|
|
19488
19488
|
),
|
|
19489
19489
|
Re()
|
|
@@ -20149,7 +20149,7 @@ function lf({
|
|
|
20149
20149
|
onLoadedMetadata: r,
|
|
20150
20150
|
onTransitionEnd: a
|
|
20151
20151
|
}) {
|
|
20152
|
-
const c =
|
|
20152
|
+
const c = B(null);
|
|
20153
20153
|
return Ae(() => {
|
|
20154
20154
|
const s = c.current;
|
|
20155
20155
|
return n == null || n(s ?? null), () => {
|
|
@@ -20223,8 +20223,8 @@ function sf({
|
|
|
20223
20223
|
onPrev: p,
|
|
20224
20224
|
onNext: b
|
|
20225
20225
|
}) {
|
|
20226
|
-
const L =
|
|
20227
|
-
}), re =
|
|
20226
|
+
const L = B(null), T = B(null), $ = B(null), G = B(/* @__PURE__ */ new Map()), [E, j] = Z(0), M = B(null), C = B(0), O = B(0), v = B("none"), k = B(!1), R = B(!1), J = B(!1), A = B(null), X = B(null), V = B(null), D = B(() => {
|
|
20227
|
+
}), re = B(null), w = B(null), I = B(null), N = B(!1), [de, ae] = Z(null), [S, se] = Z(ca), [P, ie] = Z(0), [Y, Se] = Z("opening"), [Ne, fe] = Z(0), [ue, U] = Z(0), [ne, Q] = Z(!1), [We, Le] = Z(null), [_e, me] = Z(null), [be, Te] = Z(null), [z, ce] = Z(!1), [xe, we] = Z(null), [Fe, Re] = Z(!1), _ = B(!1), [ve, le] = Z(!1), [W, te] = Z(!1), He = B(n), pe = B(void 0), H = t[n], Je = H ? so(H) : !1, Ve = ue !== 0 || ne, ft = !a && (!r || !!c), st = s && !a, wt = d.length > 1, mt = ye((x, Ce) => t.length <= 1 ? null : t[(x + Ce + t.length) % t.length] ?? null, [t]), Xe = wt ? yo(d, u, -1) : mt(n, -1), $e = wt ? yo(d, u, 1) : mt(n, 1), Oe = We === -1 && Ve ? wt && _e !== null ? yo(d, _e, -1) : be !== null ? mt(be, -1) : null : null, Ge = We === 1 && Ve ? wt && _e !== null ? yo(d, _e, 1) : be !== null ? mt(be, 1) : null : null, et = Oe && Oe.url !== (Xe == null ? void 0 : Xe.url) ? Oe : null, oe = Ge && Ge.url !== ($e == null ? void 0 : $e.url) ? Ge : null, he = Xe && st ? (() => {
|
|
20228
20228
|
const x = wt ? os(d, u, -1) : t.length > 2 ? mt((n - 1 + t.length) % t.length, -1) : null;
|
|
20229
20229
|
return x && x.url !== Xe.url ? x : null;
|
|
20230
20230
|
})() : null, Ee = $e && st ? (() => {
|
|
@@ -20232,11 +20232,11 @@ function sf({
|
|
|
20232
20232
|
return x && x.url !== $e.url ? x : null;
|
|
20233
20233
|
})() : null, Ye = et ?? he, nt = oe ?? Ee, Ke = ye((x, Ce, Me) => {
|
|
20234
20234
|
if (!x || !Ce || !Me) return;
|
|
20235
|
-
const ze =
|
|
20236
|
-
(dt == null ? void 0 : dt.width) === Ce && (dt == null ? void 0 : dt.height) === Me || (ze.set(x, { width: Ce, height: Me }),
|
|
20235
|
+
const ze = G.current, dt = ze.get(x);
|
|
20236
|
+
(dt == null ? void 0 : dt.width) === Ce && (dt == null ? void 0 : dt.height) === Me || (ze.set(x, { width: Ce, height: Me }), j((Ht) => Ht + 1));
|
|
20237
20237
|
}, []), pt = ye((x) => {
|
|
20238
20238
|
if (!(x != null && x.url)) return null;
|
|
20239
|
-
const Ce =
|
|
20239
|
+
const Ce = G.current.get(x.url);
|
|
20240
20240
|
return Yh(T.current, Ce);
|
|
20241
20241
|
}, [E, P]), it = ye(() => {
|
|
20242
20242
|
if (!H) return;
|
|
@@ -20314,7 +20314,7 @@ function sf({
|
|
|
20314
20314
|
if (!(!st || !de)) {
|
|
20315
20315
|
if (J.current) {
|
|
20316
20316
|
if (X.current === x) {
|
|
20317
|
-
|
|
20317
|
+
V.current = x, At();
|
|
20318
20318
|
return;
|
|
20319
20319
|
}
|
|
20320
20320
|
rn();
|
|
@@ -20331,23 +20331,23 @@ function sf({
|
|
|
20331
20331
|
Ze,
|
|
20332
20332
|
en
|
|
20333
20333
|
]);
|
|
20334
|
-
|
|
20334
|
+
D.current = Tt;
|
|
20335
20335
|
const It = ye(() => {
|
|
20336
20336
|
re.current = null, N.current = !1, w.current !== null && (window.clearInterval(w.current), w.current = null), I.current !== null && (window.clearTimeout(I.current), I.current = null);
|
|
20337
20337
|
}, []), Xt = ye((x) => {
|
|
20338
20338
|
w.current !== null && window.clearInterval(w.current);
|
|
20339
20339
|
const Ce = N.current ? jh : Vh;
|
|
20340
20340
|
w.current = window.setInterval(() => {
|
|
20341
|
-
|
|
20341
|
+
D.current(x);
|
|
20342
20342
|
}, Ce);
|
|
20343
20343
|
}, []), Dt = ye((x) => {
|
|
20344
|
-
re.current !== x && (It(), re.current = x, N.current = !1,
|
|
20344
|
+
re.current !== x && (It(), re.current = x, N.current = !1, D.current(x), Xt(x), I.current = window.setTimeout(() => {
|
|
20345
20345
|
I.current = null, re.current === x && (N.current = !0, Xt(x));
|
|
20346
20346
|
}, Bh));
|
|
20347
20347
|
}, [It, Xt]), Ct = ye(() => {
|
|
20348
20348
|
const x = T.current;
|
|
20349
20349
|
if (!x) return;
|
|
20350
|
-
const Ce = H == null ? void 0 : H.url, Me = Ce ?
|
|
20350
|
+
const Ce = H == null ? void 0 : H.url, Me = Ce ? G.current.get(Ce) : void 0;
|
|
20351
20351
|
if (Me != null && Me.width && (Me != null && Me.height)) {
|
|
20352
20352
|
ae(Oa(x, Me.width, Me.height));
|
|
20353
20353
|
return;
|
|
@@ -20396,7 +20396,7 @@ function sf({
|
|
|
20396
20396
|
!(ze != null && ze.url) || x.has(ze.url) || (x.add(ze.url), Ce.push(ze));
|
|
20397
20397
|
};
|
|
20398
20398
|
t.forEach(Me), d.forEach((ze) => ze.items.forEach(Me)), Ce.forEach((ze) => {
|
|
20399
|
-
|
|
20399
|
+
G.current.has(ze.url) || Zh(ze, Ke);
|
|
20400
20400
|
});
|
|
20401
20401
|
}, [t, d, Ke]), Ae(() => {
|
|
20402
20402
|
if (Y !== "opening" || !de) return;
|
|
@@ -20420,9 +20420,9 @@ function sf({
|
|
|
20420
20420
|
}, [De]), Mt(() => {
|
|
20421
20421
|
He.current === n && pe.current === (H == null ? void 0 : H.url) || (De(), X.current = null, Le(null), me(null), Te(null), fe(0), U(0), Ze(!1), te(!1), le(!1), C.current = 0, O.current = 0, v.current = "none", k.current = !1, M.current = null, R.current = !1, $.current = null, it(), He.current = n, pe.current = H == null ? void 0 : H.url);
|
|
20422
20422
|
}, [n, H == null ? void 0 : H.url, Ze, De, it]), Mt(() => {
|
|
20423
|
-
const x =
|
|
20424
|
-
x !== null && (
|
|
20425
|
-
|
|
20423
|
+
const x = V.current;
|
|
20424
|
+
x !== null && (V.current = null, requestAnimationFrame(() => {
|
|
20425
|
+
D.current(x);
|
|
20426
20426
|
}));
|
|
20427
20427
|
}, [n, u, H == null ? void 0 : H.url]), Mt(() => {
|
|
20428
20428
|
if (Y === "opening") {
|
|
@@ -20546,7 +20546,7 @@ function sf({
|
|
|
20546
20546
|
}
|
|
20547
20547
|
De(), Ze(!1);
|
|
20548
20548
|
}
|
|
20549
|
-
}, [De, Ze, At]), je = Y === "closing" ? xe ?? f : f, ct = je && de && (Y === "opening" || jt) ? Gh(je, de) : void 0, xt = Ve && H ? gt(H, "center") : Ne > 0 ? `translateY(${Ne}px)` : ct, St = de ? tr(de, S) : null, Wt = !!(je && de), vt = Wt && (Y === "closing" || Y === "open" &&
|
|
20549
|
+
}, [De, Ze, At]), je = Y === "closing" ? xe ?? f : f, ct = je && de && (Y === "opening" || jt) ? Gh(je, de) : void 0, xt = Ve && H ? gt(H, "center") : Ne > 0 ? `translateY(${Ne}px)` : ct, St = de ? tr(de, S) : null, Wt = !!(je && de), vt = Wt && (Y === "closing" || Y === "open" && z), Kt = {
|
|
20550
20550
|
position: "absolute",
|
|
20551
20551
|
top: St == null ? void 0 : St.top,
|
|
20552
20552
|
left: St == null ? void 0 : St.left,
|
|
@@ -20795,7 +20795,7 @@ function cf({
|
|
|
20795
20795
|
layoutId: r,
|
|
20796
20796
|
portalId: a
|
|
20797
20797
|
}) {
|
|
20798
|
-
const { prefix: c } = cn(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: y } = e, f = (y == null ? void 0 : y.display) === "cover", m = (y == null ? void 0 : y.ratioValue) ?? "1:1", g = (y == null ? void 0 : y.reversed) ?? !1, [p, b] = m.split(":").map(Number), $ = `${g ? b : p} / ${g ? p : b}`,
|
|
20798
|
+
const { prefix: c } = cn(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: y } = e, f = (y == null ? void 0 : y.display) === "cover", m = (y == null ? void 0 : y.ratioValue) ?? "1:1", g = (y == null ? void 0 : y.reversed) ?? !1, [p, b] = m.split(":").map(Number), $ = `${g ? b : p} / ${g ? p : b}`, G = s.entryWidth ?? 0.2, E = s.columnsCount, j = F(G, n), M = F(s.horizontalGap ?? 0, n), C = j, O = j, v = {
|
|
20799
20799
|
width: C,
|
|
20800
20800
|
...f ? { aspectRatio: $, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
20801
20801
|
}, k = f ? {
|
|
@@ -20810,19 +20810,19 @@ function cf({
|
|
|
20810
20810
|
width: "auto",
|
|
20811
20811
|
height: "auto",
|
|
20812
20812
|
maxWidth: "100%"
|
|
20813
|
-
}, R =
|
|
20813
|
+
}, R = B(null), [J, A] = Z(!1), [X, V] = Z([]), [D, re] = Z(0), [w, I] = Z(0), [N, de] = Z(null), [ae, S] = Z({
|
|
20814
20814
|
title1: "",
|
|
20815
20815
|
title2: "",
|
|
20816
20816
|
title3: ""
|
|
20817
20817
|
}), se = (() => {
|
|
20818
20818
|
const be = {}, Te = R.current ? getComputedStyle(R.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
20819
20819
|
return Te && (be["--cntrl-article-width"] = Te), be;
|
|
20820
|
-
})(), P = !n || i || o, ie = Ue(() => Oh(c), [c]), Y = t ?? [], Se = Y.length % E || E, Ne = Se < E && Y.length > 0, fe = Y.length - Se, ue = Ne ? Math.floor((E - Se) / 2) + 1 : 1, U = Ue(() => Uh(Y), [Y]), ne = Ue(() => Jh(Y), [Y]), Q = (be, Te,
|
|
20820
|
+
})(), P = !n || i || o, ie = Ue(() => Oh(c), [c]), Y = t ?? [], Se = Y.length % E || E, Ne = Se < E && Y.length > 0, fe = Y.length - Se, ue = Ne ? Math.floor((E - Se) / 2) + 1 : 1, U = Ue(() => Uh(Y), [Y]), ne = Ue(() => Jh(Y), [Y]), Q = (be, Te, z) => {
|
|
20821
20821
|
if (n && !o && !i) return;
|
|
20822
20822
|
const ce = U.findIndex((we) => we.gridIndex === be);
|
|
20823
20823
|
if (ce < 0) return;
|
|
20824
20824
|
const xe = U[ce];
|
|
20825
|
-
I(ce),
|
|
20825
|
+
I(ce), V(xe.items), re(Te), S(xe.entry), de(z ?? null), A(!0);
|
|
20826
20826
|
}, We = ye(() => {
|
|
20827
20827
|
A(!1), de(null);
|
|
20828
20828
|
}, []), Le = ye(() => {
|
|
@@ -20834,12 +20834,12 @@ function cf({
|
|
|
20834
20834
|
) ?? N;
|
|
20835
20835
|
}, [U, w, N, f]), _e = ye((be) => {
|
|
20836
20836
|
if (U.length > 1) {
|
|
20837
|
-
const Te = U.length,
|
|
20838
|
-
I(
|
|
20837
|
+
const Te = U.length, z = (w + be + Te) % Te, ce = U[z], xe = Math.min(D, ce.items.length - 1);
|
|
20838
|
+
I(z), V(ce.items), re(xe), S(ce.entry);
|
|
20839
20839
|
return;
|
|
20840
20840
|
}
|
|
20841
20841
|
re((Te) => (Te + be + X.length) % X.length);
|
|
20842
|
-
}, [U, w,
|
|
20842
|
+
}, [U, w, D, X.length]), me = U.length > 1 || X.length > 1;
|
|
20843
20843
|
return Ae(() => {
|
|
20844
20844
|
if (!J || typeof document > "u") return;
|
|
20845
20845
|
const be = document.body.style.overflow;
|
|
@@ -20857,14 +20857,14 @@ function cf({
|
|
|
20857
20857
|
ref: R,
|
|
20858
20858
|
className: `${c}-wrapper ${c}-align-entries ${c}-image-align-${u}`.trim(),
|
|
20859
20859
|
style: {
|
|
20860
|
-
gridTemplateColumns: `repeat(${E}, ${
|
|
20860
|
+
gridTemplateColumns: `repeat(${E}, ${j})`,
|
|
20861
20861
|
rowGap: 0,
|
|
20862
20862
|
columnGap: M,
|
|
20863
20863
|
width: F(s.wrapperWidth ?? 0, n),
|
|
20864
20864
|
[`--${c}-align-entries-row-gap`]: F(d ?? 0, n)
|
|
20865
20865
|
},
|
|
20866
20866
|
children: Y.map((be, Te) => {
|
|
20867
|
-
const
|
|
20867
|
+
const z = fl(be.gallery), ce = yl(z), xe = ce.filter((le) => le.lightboxMedia).map((le) => le.lightboxMedia), we = Math.floor(Te / E) === Math.ceil(Y.length / E) - 1, Fe = Ne && Te >= fe ? `${ue + (Te - fe)}` : void 0, Re = ce[0], _ = Re != null && Re.lightboxMedia ? xe.findIndex((le) => le.url === Re.lightboxMedia.url) : -1, ve = /* @__PURE__ */ l("div", { className: `${c}-item-image-wrapper`, style: v, children: ce.length > 0 && /* @__PURE__ */ l(
|
|
20868
20868
|
af,
|
|
20869
20869
|
{
|
|
20870
20870
|
media: Re.displayMedia,
|
|
@@ -20886,7 +20886,7 @@ function cf({
|
|
|
20886
20886
|
we ? `${c}-item-inner-last-row` : ""
|
|
20887
20887
|
].filter(Boolean).join(" "),
|
|
20888
20888
|
style: {
|
|
20889
|
-
width:
|
|
20889
|
+
width: j,
|
|
20890
20890
|
...Fe ? { gridColumn: Fe } : {}
|
|
20891
20891
|
},
|
|
20892
20892
|
children: [
|
|
@@ -20907,7 +20907,7 @@ function cf({
|
|
|
20907
20907
|
{
|
|
20908
20908
|
prefix: c,
|
|
20909
20909
|
items: X,
|
|
20910
|
-
index:
|
|
20910
|
+
index: D,
|
|
20911
20911
|
entry: ae,
|
|
20912
20912
|
settings: e,
|
|
20913
20913
|
isEditor: n,
|
|
@@ -23889,7 +23889,7 @@ function wf({
|
|
|
23889
23889
|
className: t,
|
|
23890
23890
|
style: n
|
|
23891
23891
|
}) {
|
|
23892
|
-
const i =
|
|
23892
|
+
const i = B(null);
|
|
23893
23893
|
return Ae(() => {
|
|
23894
23894
|
if (!e.isVideo) return;
|
|
23895
23895
|
const o = i.current;
|
|
@@ -23980,7 +23980,7 @@ function Tf(e, t, n, i) {
|
|
|
23980
23980
|
}
|
|
23981
23981
|
}
|
|
23982
23982
|
function Lf(e, t) {
|
|
23983
|
-
const n =
|
|
23983
|
+
const n = B(null), i = B({
|
|
23984
23984
|
x: 0,
|
|
23985
23985
|
y: 0,
|
|
23986
23986
|
rotation: 0,
|
|
@@ -23989,7 +23989,7 @@ function Lf(e, t) {
|
|
|
23989
23989
|
targetRotation: 0,
|
|
23990
23990
|
lastX: 0,
|
|
23991
23991
|
hasLastX: !1
|
|
23992
|
-
}), o =
|
|
23992
|
+
}), o = B(null), r = ye(() => {
|
|
23993
23993
|
const m = n.current, g = i.current;
|
|
23994
23994
|
m && (m.style.transform = `translate3d(${g.x}px, ${g.y}px, 0) translate(-50%, -50%) rotate(${g.rotation.toFixed(3)}deg)`);
|
|
23995
23995
|
}, []), a = ye(() => {
|
|
@@ -24801,8 +24801,8 @@ function Jf(e, t, n, i) {
|
|
|
24801
24801
|
const c = e[a], s = t.indexOf(c);
|
|
24802
24802
|
if (s === -1)
|
|
24803
24803
|
continue;
|
|
24804
|
-
const d = Cn[s], u = Qi[s], y = eo[s], f = to[s], m = Cn[a], g = Qi[a], p = eo[a], b = to[a], L = n[d], T = n[u], $ = n[y],
|
|
24805
|
-
typeof L == "number" && (r[m] = L), typeof T == "number" && (r[g] = T), typeof $ == "number" && (r[p] = $), typeof
|
|
24804
|
+
const d = Cn[s], u = Qi[s], y = eo[s], f = to[s], m = Cn[a], g = Qi[a], p = eo[a], b = to[a], L = n[d], T = n[u], $ = n[y], G = n[f];
|
|
24805
|
+
typeof L == "number" && (r[m] = L), typeof T == "number" && (r[g] = T), typeof $ == "number" && (r[p] = $), typeof G == "number" && (r[b] = G);
|
|
24806
24806
|
}
|
|
24807
24807
|
return r;
|
|
24808
24808
|
}
|
|
@@ -24838,7 +24838,7 @@ function ey(e, t, n) {
|
|
|
24838
24838
|
const o = Yc(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, c = So(e), s = So(t), d = e.type === "b" || e.type === void 0 && t.type === "b", u = typeof r == "number" ? r : typeof a == "number" ? a : oi.length, y = ($) => {
|
|
24839
24839
|
if (d)
|
|
24840
24840
|
return $;
|
|
24841
|
-
const
|
|
24841
|
+
const G = ir({ ...t, ...$ }), E = So($), j = yr(u, E, G), M = Kf(u, j, {
|
|
24842
24842
|
...t,
|
|
24843
24843
|
...$
|
|
24844
24844
|
});
|
|
@@ -24863,8 +24863,8 @@ function ey(e, t, n) {
|
|
|
24863
24863
|
});
|
|
24864
24864
|
}
|
|
24865
24865
|
if (d) {
|
|
24866
|
-
const $ = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0,
|
|
24867
|
-
return $ >
|
|
24866
|
+
const $ = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0, G = Math.max(0, (c - o) / 2);
|
|
24867
|
+
return $ > G ? { ...e, textPaddingLR: G } : e;
|
|
24868
24868
|
}
|
|
24869
24869
|
const g = ir({ ...t, ...e }), p = yr(
|
|
24870
24870
|
u,
|
|
@@ -24875,10 +24875,10 @@ function ey(e, t, n) {
|
|
|
24875
24875
|
c,
|
|
24876
24876
|
g
|
|
24877
24877
|
).some(
|
|
24878
|
-
($,
|
|
24878
|
+
($, G) => $ < (p[G] ?? $)
|
|
24879
24879
|
), T = Cn.some(($) => {
|
|
24880
|
-
const
|
|
24881
|
-
return typeof
|
|
24880
|
+
const G = e[$], E = t[$];
|
|
24881
|
+
return typeof G == "number" && typeof E == "number" && G !== E;
|
|
24882
24882
|
});
|
|
24883
24883
|
return L || T ? y(e) : e;
|
|
24884
24884
|
}
|
|
@@ -24937,9 +24937,9 @@ function ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
24937
24937
|
cut: L,
|
|
24938
24938
|
showCut: T,
|
|
24939
24939
|
cutCellMinHeight: $,
|
|
24940
|
-
cutLabel:
|
|
24940
|
+
cutLabel: G,
|
|
24941
24941
|
imageSize: E,
|
|
24942
|
-
imageOnHover:
|
|
24942
|
+
imageOnHover: j,
|
|
24943
24943
|
imagePosition: M = "cursor",
|
|
24944
24944
|
imageInterpolation: C = "on",
|
|
24945
24945
|
entryHoverEffect: O,
|
|
@@ -24949,16 +24949,16 @@ function ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
24949
24949
|
rowPaddingTopB: J,
|
|
24950
24950
|
columnsOrder: A,
|
|
24951
24951
|
textPaddingLR: X,
|
|
24952
|
-
textColor:
|
|
24953
|
-
backgroundColor:
|
|
24952
|
+
textColor: V,
|
|
24953
|
+
backgroundColor: D,
|
|
24954
24954
|
dividerColor: re,
|
|
24955
24955
|
textHoverColor: w,
|
|
24956
24956
|
backgroundHoverColor: I,
|
|
24957
24957
|
dividerHoverColor: N
|
|
24958
|
-
} = e, [de, ae] = Z(void 0), [S, se] = Z(null), P =
|
|
24958
|
+
} = e, [de, ae] = Z(void 0), [S, se] = Z(null), P = B(null), ie = j === "on" && (!n || i), Y = M === "cursor", Se = Y && C === "on", { anchorRef: Ne, onShow: fe, onCursorMove: ue, exit: U } = Lf(
|
|
24959
24959
|
!!(ie && S !== null),
|
|
24960
24960
|
Se
|
|
24961
|
-
), ne = (L ?? 0) > 0, Q = y === "b", We =
|
|
24961
|
+
), ne = (L ?? 0) > 0, Q = y === "b", We = B(null), Le = B(null), [_e, me] = Z(null), [be, Te] = Z(Fo), z = Yc(be), ce = Math.max(0, ((f ?? 0) - z) / 2), xe = Math.min(X ?? 0, ce), we = Math.max(xe, Oi), Fe = ((f ?? 0) + z) / 2;
|
|
24962
24962
|
Mt(() => {
|
|
24963
24963
|
if (!n) {
|
|
24964
24964
|
Te(Fo);
|
|
@@ -24983,13 +24983,13 @@ function ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
24983
24983
|
n && !i && ae(void 0);
|
|
24984
24984
|
}, [n, i]);
|
|
24985
24985
|
const Re = Li(s, {
|
|
24986
|
-
textColor:
|
|
24987
|
-
backgroundColor:
|
|
24986
|
+
textColor: V,
|
|
24987
|
+
backgroundColor: D,
|
|
24988
24988
|
dividerColor: re,
|
|
24989
24989
|
textHoverColor: w,
|
|
24990
24990
|
backgroundHoverColor: I,
|
|
24991
24991
|
dividerHoverColor: N
|
|
24992
|
-
}, Vf, jf), _ = r && r !== "default" ? `${s}-state-${r}` : "", le = `${!n || i ? O === "default" ? `${s}-entry-hover-default` : O === "blinds" ? `${s}-entry-hover-blinds` : O === "reveal" ? `${s}-entry-hover-reveal` : "" : ""} ${_}`.trim(), W = O === "reveal" && (!n || i), te = (b == null ? void 0 : b[0]) ?? !1, He = (b == null ? void 0 : b[1]) ?? !1, pe =
|
|
24992
|
+
}, Vf, jf), _ = r && r !== "default" ? `${s}-state-${r}` : "", le = `${!n || i ? O === "default" ? `${s}-entry-hover-default` : O === "blinds" ? `${s}-entry-hover-blinds` : O === "reveal" ? `${s}-entry-hover-reveal` : "" : ""} ${_}`.trim(), W = O === "reveal" && (!n || i), te = (b == null ? void 0 : b[0]) ?? !1, He = (b == null ? void 0 : b[1]) ?? !1, pe = B(e), H = B(a);
|
|
24993
24993
|
Ae(() => {
|
|
24994
24994
|
if (!c || !n) {
|
|
24995
24995
|
pe.current = e, H.current = a;
|
|
@@ -25705,7 +25705,7 @@ function ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25705
25705
|
...gs(e, zn, s, n),
|
|
25706
25706
|
...ct ? { width: "100%" } : {}
|
|
25707
25707
|
},
|
|
25708
|
-
children:
|
|
25708
|
+
children: G
|
|
25709
25709
|
}
|
|
25710
25710
|
)
|
|
25711
25711
|
}
|
|
@@ -29898,9 +29898,9 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
29898
29898
|
iconAnimation: L = "rotate 45",
|
|
29899
29899
|
questionColor: T = "#000000",
|
|
29900
29900
|
answerColor: $ = "#000000",
|
|
29901
|
-
dividerColor:
|
|
29901
|
+
dividerColor: G = "#0000001F",
|
|
29902
29902
|
iconColor: E = "#000000",
|
|
29903
|
-
questionHoverColor:
|
|
29903
|
+
questionHoverColor: j = "#666666",
|
|
29904
29904
|
iconHoverColor: M = "#666666",
|
|
29905
29905
|
iconActiveColor: C = "#000000",
|
|
29906
29906
|
dividerHoverColor: O = "#000000",
|
|
@@ -29910,8 +29910,8 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
29910
29910
|
questionLineHeight: J,
|
|
29911
29911
|
questionLetterSpacing: A,
|
|
29912
29912
|
questionWordSpacing: X,
|
|
29913
|
-
questionTextAppearance:
|
|
29914
|
-
answerFontFamily:
|
|
29913
|
+
questionTextAppearance: V,
|
|
29914
|
+
answerFontFamily: D,
|
|
29915
29915
|
answerFontSettings: re,
|
|
29916
29916
|
answerFontSize: w,
|
|
29917
29917
|
answerLineHeight: I,
|
|
@@ -29931,7 +29931,7 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
29931
29931
|
}, [m]), Ae(() => {
|
|
29932
29932
|
n && !o && !i && U(/* @__PURE__ */ new Set());
|
|
29933
29933
|
}, [n, o, i]);
|
|
29934
|
-
const Q = (et) => F(et, n ?? !1), We = Math.max(S, qn), Le = Math.max(se, qn), _e = Math.max(P, qn), me = Math.max(ie, qn), be = Math.max(Y, qn), Te = Math.max(Se, qn),
|
|
29934
|
+
const Q = (et) => F(et, n ?? !1), We = Math.max(S, qn), Le = Math.max(se, qn), _e = Math.max(P, qn), me = Math.max(ie, qn), be = Math.max(Y, qn), Te = Math.max(Se, qn), z = Math.max(Ne, qn), ce = Math.max(0, (s ?? 1) - b - p), xe = Math.max(0, (s ?? 1) - Y), we = Math.max(0, (s ?? 1) - ie), Fe = Math.max(b, qn), Re = Math.max(0, (s ?? 1) - S - p), _ = Ue(() => ue.size === 0 ? 0 : Math.min(...ue), [ue]), ve = ye((et) => ue.has(et), [ue]), le = ne && f === "default" ? `${a}-entry-hover-default` : "", W = g ?? "", te = W !== "", He = L.replace(/^rotate /, ""), pe = `${a}-icon-anim-${He}`, H = mn(tn(
|
|
29935
29935
|
$s(
|
|
29936
29936
|
v,
|
|
29937
29937
|
k,
|
|
@@ -29939,13 +29939,13 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
29939
29939
|
J,
|
|
29940
29940
|
A,
|
|
29941
29941
|
X,
|
|
29942
|
-
|
|
29942
|
+
V,
|
|
29943
29943
|
T
|
|
29944
29944
|
),
|
|
29945
29945
|
n
|
|
29946
29946
|
)), Je = mn(tn(
|
|
29947
29947
|
$s(
|
|
29948
|
-
|
|
29948
|
+
D,
|
|
29949
29949
|
re,
|
|
29950
29950
|
w,
|
|
29951
29951
|
I,
|
|
@@ -29968,9 +29968,9 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
29968
29968
|
), st = Ss(R, J, a, n), wt = Ss(w, I, a, n), mt = Li(a, {
|
|
29969
29969
|
questionColor: T,
|
|
29970
29970
|
answerColor: $,
|
|
29971
|
-
dividerColor:
|
|
29971
|
+
dividerColor: G,
|
|
29972
29972
|
iconColor: E,
|
|
29973
|
-
questionHoverColor:
|
|
29973
|
+
questionHoverColor: j,
|
|
29974
29974
|
iconHoverColor: M,
|
|
29975
29975
|
iconActiveColor: C,
|
|
29976
29976
|
dividerHoverColor: O
|
|
@@ -30241,7 +30241,7 @@ function Ry({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30241
30241
|
bottom: 0,
|
|
30242
30242
|
left: 0,
|
|
30243
30243
|
width: "100%",
|
|
30244
|
-
height: Q(
|
|
30244
|
+
height: Q(z)
|
|
30245
30245
|
}
|
|
30246
30246
|
}
|
|
30247
30247
|
)
|
|
@@ -31543,7 +31543,7 @@ const Cs = {
|
|
|
31543
31543
|
animMs: n = 300,
|
|
31544
31544
|
isBlockedTarget: i
|
|
31545
31545
|
}) => {
|
|
31546
|
-
const [o, r] = Z(0), [a, c] = Z(!1), s =
|
|
31546
|
+
const [o, r] = Z(0), [a, c] = Z(!1), s = B(null), d = B(0);
|
|
31547
31547
|
d.current = o;
|
|
31548
31548
|
const u = Ue(() => typeof window > "u" ? Ts : Math.max(Ts, window.innerHeight * ky), []), y = ye((v) => Math.max(0, 1 - v / (u * 1.5)), [u]), f = ye((v) => Math.max(0, 1 - v / (u * 0.45)), [u]), m = ye((v) => {
|
|
31549
31549
|
const k = typeof window < "u" ? window.innerHeight : 800, R = Math.max(0.88, 1 - v / k * 0.12);
|
|
@@ -31591,13 +31591,13 @@ const Cs = {
|
|
|
31591
31591
|
return;
|
|
31592
31592
|
}
|
|
31593
31593
|
v.clientY - k.startY >= u ? b() : p();
|
|
31594
|
-
}, [u, b, e, g, p]),
|
|
31594
|
+
}, [u, b, e, g, p]), G = ye((v) => {
|
|
31595
31595
|
$(v);
|
|
31596
31596
|
}, [$]), E = ye((v) => {
|
|
31597
31597
|
$(v);
|
|
31598
|
-
}, [$]),
|
|
31598
|
+
}, [$]), j = o > 0, M = a ? `transform ${n}ms ease` : "none", C = a ? `opacity ${n}ms ease` : "none", O = o > 0 || a;
|
|
31599
31599
|
return {
|
|
31600
|
-
isSwipeDragging:
|
|
31600
|
+
isSwipeDragging: j,
|
|
31601
31601
|
backdropStyle: {
|
|
31602
31602
|
opacity: y(o),
|
|
31603
31603
|
transition: C
|
|
@@ -31605,8 +31605,8 @@ const Cs = {
|
|
|
31605
31605
|
mediaAreaStyle: {
|
|
31606
31606
|
transform: m(o),
|
|
31607
31607
|
transition: M,
|
|
31608
|
-
touchAction:
|
|
31609
|
-
willChange:
|
|
31608
|
+
touchAction: j ? "none" : void 0,
|
|
31609
|
+
willChange: j ? "transform" : void 0
|
|
31610
31610
|
},
|
|
31611
31611
|
overlayContentStyle: O ? {
|
|
31612
31612
|
opacity: f(o),
|
|
@@ -31615,11 +31615,11 @@ const Cs = {
|
|
|
31615
31615
|
swipeHandlers: e ? {
|
|
31616
31616
|
onPointerDown: L,
|
|
31617
31617
|
onPointerMove: T,
|
|
31618
|
-
onPointerUp:
|
|
31618
|
+
onPointerUp: G,
|
|
31619
31619
|
onPointerCancel: E
|
|
31620
31620
|
} : {},
|
|
31621
31621
|
dismissAreaStyle: e ? {
|
|
31622
|
-
touchAction:
|
|
31622
|
+
touchAction: j ? "none" : "pan-x"
|
|
31623
31623
|
} : void 0
|
|
31624
31624
|
};
|
|
31625
31625
|
}, Fy = "[data-lightbox-scrollable]", nd = () => {
|
|
@@ -31833,9 +31833,9 @@ const Cs = {
|
|
|
31833
31833
|
thumbnailVisibility: L,
|
|
31834
31834
|
thumbnailObjectFit: T,
|
|
31835
31835
|
thumbnailActive: $,
|
|
31836
|
-
thumbnailActiveColor:
|
|
31836
|
+
thumbnailActiveColor: G,
|
|
31837
31837
|
title1Width: E,
|
|
31838
|
-
title2Width:
|
|
31838
|
+
title2Width: j,
|
|
31839
31839
|
title3Width: M,
|
|
31840
31840
|
title1MarginLeft: C = 0,
|
|
31841
31841
|
title2MarginLeft: O = 0,
|
|
@@ -31844,20 +31844,20 @@ const Cs = {
|
|
|
31844
31844
|
titleHeaderLayout: R = "desktop",
|
|
31845
31845
|
contentMarginTop: J,
|
|
31846
31846
|
iconMarginLeft: A
|
|
31847
|
-
} = n, X = (h) => F(h, i ?? !1),
|
|
31847
|
+
} = n, X = (h) => F(h, i ?? !1), V = s ?? n.thumnailSize ?? 0.03, D = X(V), re = X(d), w = X(u ?? 0.02), I = X(y ?? 0), N = X(J ?? 0), de = ar(N), ae = X(A ?? 0), [S, se] = Z(0), P = B(S);
|
|
31848
31848
|
P.current = S;
|
|
31849
|
-
const ie = t[S], { title1: Y, title2: Se, title3: Ne } = Qy(ie), fe = ya("title1", fa(n, "title1"), i), ue = ya("title2", fa(n, "title2"), i), U = ya("title3", fa(n, "title3"), i), ne = R === "mobile", Q = !o && (!i || r), We = Q, Le = Q, _e = Q, me = Bn(T), be = me ? { "--image-aspect-ratio": Gr(T) } : void 0, Te = !!(Y || Se || Ne),
|
|
31849
|
+
const ie = t[S], { title1: Y, title2: Se, title3: Ne } = Qy(ie), fe = ya("title1", fa(n, "title1"), i), ue = ya("title2", fa(n, "title2"), i), U = ya("title3", fa(n, "title3"), i), ne = R === "mobile", Q = !o && (!i || r), We = Q, Le = Q, _e = Q, me = Bn(T), be = me ? { "--image-aspect-ratio": Gr(T) } : void 0, Te = !!(Y || Se || Ne), z = Ue(
|
|
31850
31850
|
() => nv(e, Y, Se, Ne, fe, ue, U),
|
|
31851
31851
|
[e, S, Y, Se, Ne, fe, ue, U]
|
|
31852
|
-
), ce = Ue(() => ({ title1Width: E, title2Width:
|
|
31853
|
-
const ee =
|
|
31854
|
-
if (!ne ||
|
|
31852
|
+
), ce = Ue(() => ({ title1Width: E, title2Width: j, title3Width: M }), [E, j, M]), xe = Ue(() => z.map((h) => ce[h.widthKey]), [z, ce]), we = Ue(() => Sl(z.length, xe), [z.length, xe]), Fe = Ue(() => id(z.length, xe), [z.length, xe]), Re = Ue(() => z.filter((h) => h.prefix === "title1"), [z]), _ = Ue(() => z.filter((h) => h.prefix === "title2" || h.prefix === "title3"), [z]), ve = Ue(() => Is(Re, ce), [Re, ce]), le = Ue(() => Is(_, ce), [_, ce]), W = ye((h, q) => {
|
|
31853
|
+
const ee = z.indexOf(h);
|
|
31854
|
+
if (!ne || q === "single-row")
|
|
31855
31855
|
return {
|
|
31856
31856
|
effectiveWidth: Fe[ee] ?? 0,
|
|
31857
31857
|
resolvedWidth: we[ee] ?? 0,
|
|
31858
31858
|
maxWidth: lr(ee, we)
|
|
31859
31859
|
};
|
|
31860
|
-
if (
|
|
31860
|
+
if (q === "two-row-top") {
|
|
31861
31861
|
const Be = Re.indexOf(h);
|
|
31862
31862
|
return {
|
|
31863
31863
|
effectiveWidth: ve.effective[Be] ?? 0,
|
|
@@ -31876,7 +31876,7 @@ const Cs = {
|
|
|
31876
31876
|
le,
|
|
31877
31877
|
Fe,
|
|
31878
31878
|
we,
|
|
31879
|
-
|
|
31879
|
+
z,
|
|
31880
31880
|
Re,
|
|
31881
31881
|
ve,
|
|
31882
31882
|
ne
|
|
@@ -31891,35 +31891,35 @@ const Cs = {
|
|
|
31891
31891
|
}),
|
|
31892
31892
|
[C, O, v]
|
|
31893
31893
|
), H = ye(
|
|
31894
|
-
(h) =>
|
|
31895
|
-
(
|
|
31894
|
+
(h) => z.slice(0, h + 1).reduce(
|
|
31895
|
+
(q, ee, Ie) => q + (ee != null && ee.marginLeftKey ? pe[ee.marginLeftKey] ?? 0 : 0) + (we[Ie] ?? 0),
|
|
31896
31896
|
0
|
|
31897
31897
|
) + (ne ? 0 : C ?? 0),
|
|
31898
|
-
[
|
|
31898
|
+
[z, pe, we, ne, C]
|
|
31899
31899
|
), Je = ye(
|
|
31900
31900
|
() => ne ? 0 : C ?? 0,
|
|
31901
31901
|
[ne, C]
|
|
31902
31902
|
), Ve = ye(
|
|
31903
31903
|
(h) => _.slice(0, h).reduce(
|
|
31904
|
-
(
|
|
31904
|
+
(q, ee, Ie) => q + (ee.marginLeftKey ? pe[ee.marginLeftKey] ?? 0 : 0) + (le.resolved[Ie] ?? 0),
|
|
31905
31905
|
0
|
|
31906
31906
|
),
|
|
31907
31907
|
[_, le.resolved, pe]
|
|
31908
31908
|
), ft = ye(
|
|
31909
31909
|
(h) => {
|
|
31910
|
-
const
|
|
31911
|
-
return Ve(h) + (
|
|
31910
|
+
const q = _[h];
|
|
31911
|
+
return Ve(h) + (q.marginLeftKey ? pe[q.marginLeftKey] ?? 0 : 0) + (le.resolved[h] ?? 0);
|
|
31912
31912
|
},
|
|
31913
31913
|
[_, le.resolved, Ve, pe]
|
|
31914
|
-
), st = (h,
|
|
31915
|
-
const ee = h.marginLeftKey ? pe[h.marginLeftKey] ?? 0 : 0, { effectiveWidth: Ie, resolvedWidth: Be, maxWidth: tt } = W(h,
|
|
31914
|
+
), st = (h, q) => {
|
|
31915
|
+
const ee = h.marginLeftKey ? pe[h.marginLeftKey] ?? 0 : 0, { effectiveWidth: Ie, resolvedWidth: Be, maxWidth: tt } = W(h, q), Lt = o && q === "two-row-top";
|
|
31916
31916
|
return /* @__PURE__ */ K(
|
|
31917
31917
|
"div",
|
|
31918
31918
|
{
|
|
31919
31919
|
className: `${e}-title-cell`,
|
|
31920
31920
|
"data-title": h.prefix,
|
|
31921
31921
|
style: {
|
|
31922
|
-
...
|
|
31922
|
+
...q === "single-row" ? { gridArea: h.prefix } : {},
|
|
31923
31923
|
width: te(Ie),
|
|
31924
31924
|
...ee > 0 ? { marginLeft: te(ee) } : {}
|
|
31925
31925
|
},
|
|
@@ -31965,7 +31965,7 @@ const Cs = {
|
|
|
31965
31965
|
h.className
|
|
31966
31966
|
);
|
|
31967
31967
|
}, wt = () => {
|
|
31968
|
-
const h = ne ? -1 :
|
|
31968
|
+
const h = ne ? -1 : z.findIndex((Ie) => Ie.prefix === "title1"), q = !ne && (o || (C ?? 0) > 0) ? (() => {
|
|
31969
31969
|
const Ie = C ?? 0, Be = h >= 0 ? we[h] : E ?? 0;
|
|
31970
31970
|
return /* @__PURE__ */ l(
|
|
31971
31971
|
"div",
|
|
@@ -31985,10 +31985,10 @@ const Cs = {
|
|
|
31985
31985
|
},
|
|
31986
31986
|
"title1MarginLeft"
|
|
31987
31987
|
);
|
|
31988
|
-
})() : null, ee =
|
|
31988
|
+
})() : null, ee = z.flatMap((Ie, Be) => {
|
|
31989
31989
|
if (!Ie.marginLeftKey) return [];
|
|
31990
31990
|
const tt = pe[Ie.marginLeftKey] ?? 0, Lt = iv(
|
|
31991
|
-
|
|
31991
|
+
z,
|
|
31992
31992
|
we,
|
|
31993
31993
|
pe,
|
|
31994
31994
|
Be
|
|
@@ -32012,12 +32012,12 @@ const Cs = {
|
|
|
32012
32012
|
Ie.marginLeftKey
|
|
32013
32013
|
);
|
|
32014
32014
|
});
|
|
32015
|
-
return
|
|
32016
|
-
}, mt = () =>
|
|
32015
|
+
return q ? [q, ...ee] : ee;
|
|
32016
|
+
}, mt = () => z.map((h, q) => {
|
|
32017
32017
|
const ee = lr(
|
|
32018
|
-
|
|
32018
|
+
q,
|
|
32019
32019
|
we
|
|
32020
|
-
), Be = H(
|
|
32020
|
+
), Be = H(q) - ki / 2;
|
|
32021
32021
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
32022
32022
|
"div",
|
|
32023
32023
|
{
|
|
@@ -32036,9 +32036,9 @@ const Cs = {
|
|
|
32036
32036
|
}
|
|
32037
32037
|
}
|
|
32038
32038
|
) }, `${h.widthKey}-junction`);
|
|
32039
|
-
}), Xe = () => _.flatMap((h,
|
|
32039
|
+
}), Xe = () => _.flatMap((h, q) => {
|
|
32040
32040
|
if (!h.marginLeftKey) return [];
|
|
32041
|
-
const ee = pe[h.marginLeftKey] ?? 0, Ie = Ve(
|
|
32041
|
+
const ee = pe[h.marginLeftKey] ?? 0, Ie = Ve(q), { resolvedWidth: Be } = W(h, "two-row-bottom");
|
|
32042
32042
|
return /* @__PURE__ */ l(
|
|
32043
32043
|
"div",
|
|
32044
32044
|
{
|
|
@@ -32057,8 +32057,8 @@ const Cs = {
|
|
|
32057
32057
|
},
|
|
32058
32058
|
h.marginLeftKey
|
|
32059
32059
|
);
|
|
32060
|
-
}), $e = () => _.map((h,
|
|
32061
|
-
const { maxWidth: ee } = W(h, "two-row-bottom"), Be = ft(
|
|
32060
|
+
}), $e = () => _.map((h, q) => {
|
|
32061
|
+
const { maxWidth: ee } = W(h, "two-row-bottom"), Be = ft(q) - ki / 2;
|
|
32062
32062
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
32063
32063
|
"div",
|
|
32064
32064
|
{
|
|
@@ -32077,16 +32077,16 @@ const Cs = {
|
|
|
32077
32077
|
}
|
|
32078
32078
|
}
|
|
32079
32079
|
) }, `${h.widthKey}-junction`);
|
|
32080
|
-
}), Oe =
|
|
32080
|
+
}), Oe = B(null), Ge = B(null), et = B(null), oe = B(null), he = B([]), Ee = B([]), Ye = B(0), nt = B(null), Ke = B({
|
|
32081
32081
|
isActive: !1,
|
|
32082
32082
|
startX: 0,
|
|
32083
32083
|
scrollLeft: 0,
|
|
32084
32084
|
startActiveIndex: 0,
|
|
32085
32085
|
hasMoved: !1
|
|
32086
|
-
}), pt =
|
|
32086
|
+
}), pt = B(null), it = B(null), ke = B(0), Ze = B("forward"), De = B(0), at = B(null), ut = B(!1), gt = t.length > 1 && (!o || !!r), At = gt ? 3 : 1, en = Ue(
|
|
32087
32087
|
() => Array.from({ length: At }, () => t).flat(),
|
|
32088
32088
|
[t, At]
|
|
32089
|
-
), [rn, Tt] = Z(!1), [It, Xt] = Z(!1), [Dt, Ct] = Z(!0), zt =
|
|
32089
|
+
), [rn, Tt] = Z(!1), [It, Xt] = Z(!1), [Dt, Ct] = Z(!0), zt = B(null), Vt = B(null), nn = B(!1), an = B(!1), Et = B(null), jt = B(null), pn = We && !Dt, bt = ye(() => {
|
|
32090
32090
|
We && (Ct(!0), jt.current && clearTimeout(jt.current), jt.current = setTimeout(() => {
|
|
32091
32091
|
Ke.current.isActive || Ct(!1);
|
|
32092
32092
|
}, By));
|
|
@@ -32158,7 +32158,7 @@ const Cs = {
|
|
|
32158
32158
|
}
|
|
32159
32159
|
}
|
|
32160
32160
|
), xt = () => {
|
|
32161
|
-
const h =
|
|
32161
|
+
const h = z.find((Ie) => Ie.prefix === "title1"), q = z.filter((Ie) => Ie.prefix === "title2" || Ie.prefix === "title3"), ee = q.length > 0 || o || (k ?? 0) > 0;
|
|
32162
32162
|
return /* @__PURE__ */ K(lt, { children: [
|
|
32163
32163
|
/* @__PURE__ */ K("div", { className: `${e}-header-row-top`, children: [
|
|
32164
32164
|
(C ?? 0) > 0 || o ? ct() : null,
|
|
@@ -32166,8 +32166,8 @@ const Cs = {
|
|
|
32166
32166
|
f && je()
|
|
32167
32167
|
] }),
|
|
32168
32168
|
ee ? /* @__PURE__ */ K("div", { className: `${e}-header-row-bottom-wrap`, children: [
|
|
32169
|
-
|
|
32170
|
-
|
|
32169
|
+
q.length > 0 ? /* @__PURE__ */ K("div", { className: `${e}-header-row-bottom`, children: [
|
|
32170
|
+
q.map((Ie) => st(Ie, "two-row-bottom")),
|
|
32171
32171
|
o && /* @__PURE__ */ K(lt, { children: [
|
|
32172
32172
|
Xe(),
|
|
32173
32173
|
$e()
|
|
@@ -32192,7 +32192,7 @@ const Cs = {
|
|
|
32192
32192
|
] });
|
|
32193
32193
|
}, St = () => /* @__PURE__ */ K(lt, { children: [
|
|
32194
32194
|
(C ?? 0) > 0 || o ? ct("single-row") : null,
|
|
32195
|
-
|
|
32195
|
+
z.map((h) => st(h, "single-row")),
|
|
32196
32196
|
o ? /* @__PURE__ */ K(lt, { children: [
|
|
32197
32197
|
wt(),
|
|
32198
32198
|
mt()
|
|
@@ -32213,33 +32213,33 @@ const Cs = {
|
|
|
32213
32213
|
}), Gt = () => {
|
|
32214
32214
|
if (!gt || t.length === 0)
|
|
32215
32215
|
return Ye.current = 0, 0;
|
|
32216
|
-
const h = Ee.current[0],
|
|
32217
|
-
if (!h || !
|
|
32218
|
-
const ee =
|
|
32216
|
+
const h = Ee.current[0], q = Ee.current[t.length];
|
|
32217
|
+
if (!h || !q) return Ye.current;
|
|
32218
|
+
const ee = q.offsetLeft - h.offsetLeft;
|
|
32219
32219
|
return ee > 0 && (Ye.current = ee), Ye.current;
|
|
32220
32220
|
}, qt = (h = !1) => {
|
|
32221
32221
|
if (!gt) return;
|
|
32222
|
-
const
|
|
32223
|
-
!
|
|
32224
|
-
}, Bt = (h,
|
|
32222
|
+
const q = Ge.current, ee = Gt();
|
|
32223
|
+
!q || ee <= 0 || ee < q.clientWidth * 0.25 || (q.scrollLeft <= 0 ? (q.scrollLeft += ee, h && (Ke.current.scrollLeft += ee), ut.current && (De.current += ee)) : q.scrollLeft >= ee * 2 && (q.scrollLeft -= ee, h && (Ke.current.scrollLeft -= ee), ut.current && (De.current -= ee)));
|
|
32224
|
+
}, Bt = (h, q = ((ee) => (ee = Ge.current) == null ? void 0 : ee.scrollLeft)() ?? 0) => {
|
|
32225
32225
|
if (!gt) return h;
|
|
32226
32226
|
let Ie = t.length + h, Be = 1 / 0;
|
|
32227
32227
|
for (let tt = 0; tt < At; tt++) {
|
|
32228
32228
|
const Lt = tt * t.length + h, Ft = Ee.current[Lt];
|
|
32229
32229
|
if (!Ft) continue;
|
|
32230
|
-
const dn = Math.abs(Ft.offsetLeft -
|
|
32230
|
+
const dn = Math.abs(Ft.offsetLeft - q);
|
|
32231
32231
|
dn < Be && (Be = dn, Ie = Lt);
|
|
32232
32232
|
}
|
|
32233
32233
|
return Ie;
|
|
32234
32234
|
}, Rt = (h) => {
|
|
32235
|
-
const
|
|
32236
|
-
return !h || !
|
|
32235
|
+
const q = Ge.current;
|
|
32236
|
+
return !h || !q ? !1 : h.offsetWidth > q.clientWidth + 1;
|
|
32237
32237
|
}, x = (h) => {
|
|
32238
|
-
const
|
|
32239
|
-
if (!h || !
|
|
32238
|
+
const q = Ge.current;
|
|
32239
|
+
if (!h || !q || !Rt(h)) return !1;
|
|
32240
32240
|
const ee = h.offsetLeft, Ie = ee + h.offsetWidth;
|
|
32241
|
-
return
|
|
32242
|
-
}, Ce = (h = ((
|
|
32241
|
+
return q.scrollLeft >= ee - 1 && q.scrollLeft + q.clientWidth <= Ie + 1;
|
|
32242
|
+
}, Ce = (h = ((q) => (q = Ge.current) == null ? void 0 : q.scrollLeft)() ?? 0) => {
|
|
32243
32243
|
for (let Ie = 0; Ie < Ee.current.length; Ie += 1) {
|
|
32244
32244
|
const Be = Ee.current[Ie];
|
|
32245
32245
|
if (Be && x(Be))
|
|
@@ -32252,49 +32252,49 @@ const Cs = {
|
|
|
32252
32252
|
tt < ee.distance && (ee = { flatIndex: Be, distance: tt });
|
|
32253
32253
|
}), ee.flatIndex;
|
|
32254
32254
|
}, Me = (h) => {
|
|
32255
|
-
Ge.current && Ee.current.forEach((
|
|
32256
|
-
|
|
32255
|
+
Ge.current && Ee.current.forEach((q) => {
|
|
32256
|
+
q && (q.style.scrollSnapAlign = Rt(q) && h === "backward" ? "end" : "start");
|
|
32257
32257
|
});
|
|
32258
|
-
}, ze = (h,
|
|
32259
|
-
const Ie = h -
|
|
32258
|
+
}, ze = (h, q, ee) => {
|
|
32259
|
+
const Ie = h - q, Be = Ce(q), tt = Ee.current[Be];
|
|
32260
32260
|
if (x(tt))
|
|
32261
32261
|
return Ce(h) % t.length;
|
|
32262
32262
|
const Lt = Ee.current[Be + 1], Ft = tt ? Lt ? Lt.offsetLeft - tt.offsetLeft : tt.offsetWidth : 0, dn = Ft > 0 ? Ie > Ft * rr ? 1 : Ie < -Ft * rr ? -1 : 0 : 0;
|
|
32263
32263
|
return dn === 0 ? ee : gt ? (ee + dn + t.length) % t.length : Math.max(0, Math.min(t.length - 1, ee + dn));
|
|
32264
32264
|
}, dt = ye((h = !1) => {
|
|
32265
32265
|
if (L !== "on" || o) return;
|
|
32266
|
-
const
|
|
32267
|
-
if (!
|
|
32268
|
-
const Be =
|
|
32266
|
+
const q = oe.current, ee = P.current, Ie = he.current[ee];
|
|
32267
|
+
if (!q || !Ie || q.scrollWidth <= q.clientWidth) return;
|
|
32268
|
+
const Be = q.scrollLeft, tt = Be + q.clientWidth, Lt = Ie.offsetLeft, Ft = Lt + Ie.offsetWidth;
|
|
32269
32269
|
if (Lt >= Be && Ft <= tt) return;
|
|
32270
|
-
const dn =
|
|
32270
|
+
const dn = q.scrollWidth - q.clientWidth;
|
|
32271
32271
|
let ln = Be;
|
|
32272
32272
|
if (!h && zt.current === null) {
|
|
32273
32273
|
const Mi = he.current[ee - 1], uo = he.current[ee + 1], Ko = Mi ? Ie.offsetLeft - Mi.offsetLeft : uo ? uo.offsetLeft - Ie.offsetLeft : Ie.offsetWidth;
|
|
32274
32274
|
Ft > tt ? ln += Ko : Lt < Be && (ln -= Ko);
|
|
32275
|
-
} else Ft > tt ? ln = Ft -
|
|
32276
|
-
|
|
32275
|
+
} else Ft > tt ? ln = Ft - q.clientWidth : ln = Lt;
|
|
32276
|
+
q.scrollLeft = Math.max(0, Math.min(dn, ln));
|
|
32277
32277
|
}, [o, L]), Ht = ye((h = !1) => {
|
|
32278
32278
|
h && (nn.current = !0), Vt.current === null && (Vt.current = requestAnimationFrame(() => {
|
|
32279
32279
|
Vt.current = null;
|
|
32280
|
-
const
|
|
32281
|
-
nn.current = !1, dt(
|
|
32280
|
+
const q = nn.current;
|
|
32281
|
+
nn.current = !1, dt(q);
|
|
32282
32282
|
}));
|
|
32283
32283
|
}, [dt]), ot = ye((h) => {
|
|
32284
32284
|
if (h === P.current) return;
|
|
32285
|
-
const
|
|
32285
|
+
const q = P.current;
|
|
32286
32286
|
P.current = h;
|
|
32287
|
-
const ee = Math.abs(h -
|
|
32287
|
+
const ee = Math.abs(h - q) > 1, Ie = gt && t.length > 1 && (q === t.length - 1 && h === 0 || q === 0 && h === t.length - 1);
|
|
32288
32288
|
se(h), Ht(ee || Ie);
|
|
32289
32289
|
}, [t.length, gt, Ht]), $t = () => {
|
|
32290
32290
|
if (!Ge.current || t.length === 0 || zt.current !== null || Ke.current.isActive && Ke.current.hasMoved) return;
|
|
32291
|
-
const h = Ge.current.scrollLeft,
|
|
32292
|
-
|
|
32291
|
+
const h = Ge.current.scrollLeft, q = Ce(h) % t.length;
|
|
32292
|
+
q !== P.current && ot(q);
|
|
32293
32293
|
}, Ut = () => {
|
|
32294
32294
|
zt.current = null;
|
|
32295
32295
|
}, kt = (h) => {
|
|
32296
|
-
const
|
|
32297
|
-
|
|
32296
|
+
const q = Ge.current;
|
|
32297
|
+
q && (q.style.scrollSnapType = h ? "" : "none");
|
|
32298
32298
|
}, un = () => {
|
|
32299
32299
|
var h;
|
|
32300
32300
|
(h = it.current) == null || h.call(it), it.current = null;
|
|
@@ -32306,21 +32306,21 @@ const Cs = {
|
|
|
32306
32306
|
at.current = null, ut.current = !1;
|
|
32307
32307
|
return;
|
|
32308
32308
|
}
|
|
32309
|
-
const
|
|
32310
|
-
if (Math.abs(
|
|
32309
|
+
const q = De.current - h.scrollLeft;
|
|
32310
|
+
if (Math.abs(q) < 0.5) {
|
|
32311
32311
|
h.scrollLeft = De.current, qt(), $t(), at.current = null, ut.current = !1;
|
|
32312
32312
|
return;
|
|
32313
32313
|
}
|
|
32314
|
-
h.scrollLeft +=
|
|
32314
|
+
h.scrollLeft += q * Gy, qt(), $t(), bt(), at.current = requestAnimationFrame(si);
|
|
32315
32315
|
}, ci = () => {
|
|
32316
32316
|
const h = et.current;
|
|
32317
32317
|
h && (h.style.transition = "", h.style.transform = "", h.style.willChange = "");
|
|
32318
|
-
}, Go = (h,
|
|
32319
|
-
ci(), h.scrollLeft =
|
|
32320
|
-
}, qo = (h, { behavior:
|
|
32318
|
+
}, Go = (h, q, ee, Ie) => {
|
|
32319
|
+
ci(), h.scrollLeft = q, ke.current = h.scrollLeft, qt(), ee !== void 0 ? (P.current = ee, se(ee)) : $t(), kt(!0), Ie == null || Ie();
|
|
32320
|
+
}, qo = (h, { behavior: q = "smooth", activeIndex: ee, onComplete: Ie } = {}) => {
|
|
32321
32321
|
const Be = Ge.current, tt = et.current;
|
|
32322
32322
|
if (!Be || !tt) return;
|
|
32323
|
-
if (vn(), un(), kt(!1),
|
|
32323
|
+
if (vn(), un(), kt(!1), q === "auto") {
|
|
32324
32324
|
Go(Be, h, ee, Ie);
|
|
32325
32325
|
return;
|
|
32326
32326
|
}
|
|
@@ -32338,11 +32338,11 @@ const Cs = {
|
|
|
32338
32338
|
}
|
|
32339
32339
|
});
|
|
32340
32340
|
}, Ur = (h = "smooth") => {
|
|
32341
|
-
const
|
|
32342
|
-
if (!
|
|
32343
|
-
const ee = Ce() % t.length, Ie = Bt(ee,
|
|
32341
|
+
const q = Ge.current;
|
|
32342
|
+
if (!q || t.length === 0) return;
|
|
32343
|
+
const ee = Ce() % t.length, Ie = Bt(ee, q.scrollLeft), Be = Ee.current[Ie];
|
|
32344
32344
|
Be && qo(Be.offsetLeft, { behavior: h, activeIndex: ee });
|
|
32345
|
-
}, Xr = (h,
|
|
32345
|
+
}, Xr = (h, q = "smooth", ee, Ie) => {
|
|
32346
32346
|
const Be = Ge.current;
|
|
32347
32347
|
if (!Be || t.length === 0) return;
|
|
32348
32348
|
const tt = (Ie ?? Be.scrollLeft) - h, Lt = Ce(h), Ft = Ee.current[Lt];
|
|
@@ -32357,7 +32357,7 @@ const Cs = {
|
|
|
32357
32357
|
h,
|
|
32358
32358
|
wd
|
|
32359
32359
|
);
|
|
32360
|
-
Mn(Sd,
|
|
32360
|
+
Mn(Sd, q);
|
|
32361
32361
|
return;
|
|
32362
32362
|
}
|
|
32363
32363
|
const uo = Ie ?? Be.scrollLeft, Ko = Ce(uo), Cl = Ee.current[Ko];
|
|
@@ -32366,42 +32366,42 @@ const Cs = {
|
|
|
32366
32366
|
return;
|
|
32367
32367
|
}
|
|
32368
32368
|
Ur("auto");
|
|
32369
|
-
}, Mn = (h,
|
|
32369
|
+
}, Mn = (h, q = "smooth") => {
|
|
32370
32370
|
const ee = Ge.current;
|
|
32371
32371
|
if (!ee || t.length === 0) return;
|
|
32372
32372
|
const Ie = Bt(h, ee.scrollLeft), Be = Ee.current[Ie];
|
|
32373
|
-
Be && (
|
|
32374
|
-
behavior:
|
|
32373
|
+
Be && (q === "smooth" ? zt.current = h : zt.current = null, P.current = h, se(h), Ht(!0), qo(Be.offsetLeft, {
|
|
32374
|
+
behavior: q,
|
|
32375
32375
|
activeIndex: h,
|
|
32376
|
-
onComplete:
|
|
32376
|
+
onComplete: q === "smooth" ? Ut : void 0
|
|
32377
32377
|
}));
|
|
32378
32378
|
}, Pi = () => {
|
|
32379
32379
|
pt.current && (window.removeEventListener("pointerup", pt.current), window.removeEventListener("pointercancel", pt.current), pt.current = null);
|
|
32380
|
-
}, Uo = (h,
|
|
32381
|
-
const tt = ee - h, Lt = Ie -
|
|
32380
|
+
}, Uo = (h, q, ee, Ie, Be) => {
|
|
32381
|
+
const tt = ee - h, Lt = Ie - q, Ft = Math.abs(tt), dn = Math.abs(Lt);
|
|
32382
32382
|
if (Ft < Uy || Ft <= dn) return !1;
|
|
32383
32383
|
const ln = tt < 0 ? 1 : -1, Mi = gt ? (Be + ln + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Be + ln));
|
|
32384
32384
|
return Mi === Be ? !1 : (Mn(Mi), !0);
|
|
32385
32385
|
}, di = (h) => {
|
|
32386
32386
|
if (!Ke.current.isActive) return;
|
|
32387
32387
|
Pi();
|
|
32388
|
-
const
|
|
32389
|
-
if (!
|
|
32390
|
-
const { scrollLeft: ee, startActiveIndex: Ie, hasMoved: Be } = Ke.current, tt =
|
|
32388
|
+
const q = Ge.current;
|
|
32389
|
+
if (!q) return;
|
|
32390
|
+
const { scrollLeft: ee, startActiveIndex: Ie, hasMoved: Be } = Ke.current, tt = q.scrollLeft;
|
|
32391
32391
|
qt(!0), Ke.current = {
|
|
32392
32392
|
isActive: !1,
|
|
32393
32393
|
startX: 0,
|
|
32394
32394
|
scrollLeft: 0,
|
|
32395
32395
|
startActiveIndex: 0,
|
|
32396
32396
|
hasMoved: !1
|
|
32397
|
-
}, Tt(!1), h !== void 0 &&
|
|
32398
|
-
}, Xo = (h,
|
|
32397
|
+
}, Tt(!1), h !== void 0 && q.hasPointerCapture(h) && q.releasePointerCapture(h), Be ? Xr(ee, "smooth", Ie, tt) : (kt(!0), $t()), bt();
|
|
32398
|
+
}, Xo = (h, q) => {
|
|
32399
32399
|
const ee = nt.current;
|
|
32400
32400
|
nt.current = null, ee && (Uo(
|
|
32401
32401
|
ee.startX,
|
|
32402
32402
|
ee.startY,
|
|
32403
32403
|
h,
|
|
32404
|
-
|
|
32404
|
+
q,
|
|
32405
32405
|
ee.startActiveIndex
|
|
32406
32406
|
), bt());
|
|
32407
32407
|
}, Kr = (h) => {
|
|
@@ -32416,29 +32416,29 @@ const Cs = {
|
|
|
32416
32416
|
return;
|
|
32417
32417
|
}
|
|
32418
32418
|
if (h.pointerType !== "mouse" || h.button !== 0 || Wt(h.target)) return;
|
|
32419
|
-
const
|
|
32420
|
-
if (!
|
|
32419
|
+
const q = Ge.current;
|
|
32420
|
+
if (!q) return;
|
|
32421
32421
|
vn(), un(), ci(), zt.current = null, Ke.current = {
|
|
32422
32422
|
isActive: !0,
|
|
32423
32423
|
startX: h.clientX,
|
|
32424
|
-
scrollLeft:
|
|
32424
|
+
scrollLeft: q.scrollLeft,
|
|
32425
32425
|
startActiveIndex: P.current,
|
|
32426
32426
|
hasMoved: !1
|
|
32427
|
-
}, kt(!1), bt(),
|
|
32427
|
+
}, kt(!1), bt(), q.setPointerCapture(h.pointerId), Pi();
|
|
32428
32428
|
const ee = (Ie) => {
|
|
32429
32429
|
Ie.pointerType === "mouse" && di(Ie.pointerId);
|
|
32430
32430
|
};
|
|
32431
32431
|
pt.current = ee, window.addEventListener("pointerup", ee), window.addEventListener("pointercancel", ee);
|
|
32432
32432
|
}, Yr = (h) => {
|
|
32433
32433
|
if (!Le || h.pointerType !== "mouse") return;
|
|
32434
|
-
const
|
|
32435
|
-
if (!
|
|
32434
|
+
const q = Ge.current;
|
|
32435
|
+
if (!q || !Ke.current.isActive) return;
|
|
32436
32436
|
if (h.buttons === 0) {
|
|
32437
32437
|
di(h.pointerId);
|
|
32438
32438
|
return;
|
|
32439
32439
|
}
|
|
32440
32440
|
const ee = h.clientX - Ke.current.startX;
|
|
32441
|
-
Math.abs(ee) > qy && (Ke.current.hasMoved = !0, Tt(!0)), Ke.current.hasMoved && (h.preventDefault(),
|
|
32441
|
+
Math.abs(ee) > qy && (Ke.current.hasMoved = !0, Tt(!0)), Ke.current.hasMoved && (h.preventDefault(), q.scrollLeft = Ke.current.scrollLeft - ee, qt(!0), $t(), bt());
|
|
32442
32442
|
}, ge = (h) => {
|
|
32443
32443
|
if (Le) {
|
|
32444
32444
|
if (h.pointerType === "touch") {
|
|
@@ -32461,15 +32461,13 @@ const Cs = {
|
|
|
32461
32461
|
return;
|
|
32462
32462
|
}
|
|
32463
32463
|
bt();
|
|
32464
|
-
const h =
|
|
32465
|
-
|
|
32466
|
-
|
|
32467
|
-
return h.addEventListener("pointermove", D), h.addEventListener("pointerdown", D), () => {
|
|
32468
|
-
h.removeEventListener("pointermove", D), h.removeEventListener("pointerdown", D), jt.current && clearTimeout(jt.current);
|
|
32464
|
+
const h = () => bt();
|
|
32465
|
+
return document.addEventListener("pointermove", h, { passive: !0 }), document.addEventListener("pointerdown", h, { passive: !0 }), () => {
|
|
32466
|
+
document.removeEventListener("pointermove", h), document.removeEventListener("pointerdown", h), jt.current && clearTimeout(jt.current);
|
|
32469
32467
|
};
|
|
32470
32468
|
}, [We, bt]), Ae(() => {
|
|
32471
|
-
const h = (
|
|
32472
|
-
|
|
32469
|
+
const h = (q) => {
|
|
32470
|
+
q.key === "Escape" && Pe();
|
|
32473
32471
|
};
|
|
32474
32472
|
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
32475
32473
|
}, [Pe]), Mt(() => {
|
|
@@ -32481,7 +32479,7 @@ const Cs = {
|
|
|
32481
32479
|
}, [t.length, gt]), Ae(() => {
|
|
32482
32480
|
const h = Ge.current;
|
|
32483
32481
|
if (!h || o || !Q) return;
|
|
32484
|
-
const
|
|
32482
|
+
const q = (ee) => {
|
|
32485
32483
|
if (ee.preventDefault(), Math.abs(ee.deltaY) <= Math.abs(ee.deltaX)) return;
|
|
32486
32484
|
const Ie = ee.deltaMode === 1 ? jy : ee.deltaMode === 2 ? h.clientHeight : 1, Be = ee.deltaY * Ie * Vy;
|
|
32487
32485
|
if (Be !== 0) {
|
|
@@ -32492,13 +32490,13 @@ const Cs = {
|
|
|
32492
32490
|
bt(), at.current === null && (at.current = requestAnimationFrame(si));
|
|
32493
32491
|
}
|
|
32494
32492
|
};
|
|
32495
|
-
return h.addEventListener("wheel",
|
|
32496
|
-
h.removeEventListener("wheel",
|
|
32493
|
+
return h.addEventListener("wheel", q, { passive: !1 }), () => {
|
|
32494
|
+
h.removeEventListener("wheel", q), vn();
|
|
32497
32495
|
};
|
|
32498
32496
|
}, [o, Q, gt]), Ae(() => {
|
|
32499
32497
|
const h = Ge.current;
|
|
32500
32498
|
if (!h) return;
|
|
32501
|
-
const
|
|
32499
|
+
const q = () => {
|
|
32502
32500
|
qt(Ke.current.isActive);
|
|
32503
32501
|
const Ie = h.scrollLeft, Be = Ie - ke.current;
|
|
32504
32502
|
ke.current = Ie;
|
|
@@ -32509,12 +32507,12 @@ const Cs = {
|
|
|
32509
32507
|
}
|
|
32510
32508
|
Ke.current.isActive && Ke.current.hasMoved || $t();
|
|
32511
32509
|
};
|
|
32512
|
-
h.addEventListener("scroll",
|
|
32510
|
+
h.addEventListener("scroll", q, { passive: !0 });
|
|
32513
32511
|
const ee = new ResizeObserver(() => {
|
|
32514
32512
|
Gt(), qt(Ke.current.isActive), Me(Ze.current), $t();
|
|
32515
32513
|
});
|
|
32516
32514
|
return ee.observe(h), () => {
|
|
32517
|
-
un(), h.removeEventListener("scroll",
|
|
32515
|
+
un(), h.removeEventListener("scroll", q), ee.disconnect();
|
|
32518
32516
|
};
|
|
32519
32517
|
}, [t.length, gt]), /* @__PURE__ */ K(
|
|
32520
32518
|
"div",
|
|
@@ -32555,12 +32553,12 @@ const Cs = {
|
|
|
32555
32553
|
onPointerUp: ge,
|
|
32556
32554
|
onPointerCancel: ge,
|
|
32557
32555
|
onLostPointerCapture: qe,
|
|
32558
|
-
children: /* @__PURE__ */ l("div", { ref: et, className: `${e}-lightbox-strip-track`, style: { gap: I }, children: en.map((h,
|
|
32559
|
-
const ee = h.image.objectFit ?? "contain", Ie =
|
|
32556
|
+
children: /* @__PURE__ */ l("div", { ref: et, className: `${e}-lightbox-strip-track`, style: { gap: I }, children: en.map((h, q) => {
|
|
32557
|
+
const ee = h.image.objectFit ?? "contain", Ie = q % t.length, Be = Math.floor(q / t.length), tt = ar(I), Lt = `calc(-0.5 * (${tt} + ${I}))`;
|
|
32560
32558
|
return /* @__PURE__ */ K(
|
|
32561
32559
|
"div",
|
|
32562
32560
|
{
|
|
32563
|
-
ref: (Ft) => Ee.current[
|
|
32561
|
+
ref: (Ft) => Ee.current[q] = Ft,
|
|
32564
32562
|
className: `${e}-strip-item`,
|
|
32565
32563
|
style: { height: R === "mobile" ? "calc(0.75 * var(--cntrl-viewport-height, 100vh))" : "100%" },
|
|
32566
32564
|
children: [
|
|
@@ -32641,7 +32639,7 @@ const Cs = {
|
|
|
32641
32639
|
}
|
|
32642
32640
|
),
|
|
32643
32641
|
t.length > 1 && L === "on" && (() => {
|
|
32644
|
-
const h = ar(w),
|
|
32642
|
+
const h = ar(w), q = `calc(-0.5 * (${w} + ${h}))`;
|
|
32645
32643
|
return /* @__PURE__ */ l(
|
|
32646
32644
|
"div",
|
|
32647
32645
|
{
|
|
@@ -32661,7 +32659,7 @@ const Cs = {
|
|
|
32661
32659
|
"data-thumbnail-active": $,
|
|
32662
32660
|
style: {
|
|
32663
32661
|
gap: re,
|
|
32664
|
-
"--thumbnail-active-color":
|
|
32662
|
+
"--thumbnail-active-color": G
|
|
32665
32663
|
},
|
|
32666
32664
|
children: [
|
|
32667
32665
|
t.map((ee, Ie) => {
|
|
@@ -32693,8 +32691,8 @@ const Cs = {
|
|
|
32693
32691
|
draggable: !1,
|
|
32694
32692
|
style: {
|
|
32695
32693
|
...be,
|
|
32696
|
-
maxWidth:
|
|
32697
|
-
maxHeight:
|
|
32694
|
+
maxWidth: D,
|
|
32695
|
+
maxHeight: D,
|
|
32698
32696
|
width: T.display === "cover" ? "auto" : "100%",
|
|
32699
32697
|
height: "auto",
|
|
32700
32698
|
objectFit: T.display === "cover" ? "cover" : "contain"
|
|
@@ -32734,7 +32732,7 @@ const Cs = {
|
|
|
32734
32732
|
position: "absolute",
|
|
32735
32733
|
left: 0,
|
|
32736
32734
|
right: 0,
|
|
32737
|
-
bottom:
|
|
32735
|
+
bottom: q,
|
|
32738
32736
|
height: h,
|
|
32739
32737
|
pointerEvents: "auto",
|
|
32740
32738
|
zIndex: 3
|
|
@@ -33145,7 +33143,7 @@ function rv(e) {
|
|
|
33145
33143
|
`;
|
|
33146
33144
|
}
|
|
33147
33145
|
const av = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: r }) => {
|
|
33148
|
-
const { prefix: a } = cn(), { cover: c, coverFit: s } = e, d =
|
|
33146
|
+
const { prefix: a } = cn(), { cover: c, coverFit: s } = e, d = B(null), [u, y] = Z(!1), f = t ?? [], m = u && f.length > 0, g = () => {
|
|
33149
33147
|
f.length !== 0 && y(!0);
|
|
33150
33148
|
};
|
|
33151
33149
|
return Ae(() => {
|
|
@@ -34405,9 +34403,9 @@ const pv = tv(), mv = {
|
|
|
34405
34403
|
textTransition: L,
|
|
34406
34404
|
title1Width: T,
|
|
34407
34405
|
title2Width: $,
|
|
34408
|
-
title3Width:
|
|
34406
|
+
title3Width: G,
|
|
34409
34407
|
title1MarginLeft: E = 0,
|
|
34410
|
-
title2MarginLeft:
|
|
34408
|
+
title2MarginLeft: j = 0,
|
|
34411
34409
|
title3MarginLeft: M = 0,
|
|
34412
34410
|
titleRowMarginBottom: C = 0,
|
|
34413
34411
|
titleHeaderLayout: O = "single-row",
|
|
@@ -34417,13 +34415,13 @@ const pv = tv(), mv = {
|
|
|
34417
34415
|
closeIconColor: J,
|
|
34418
34416
|
closeIconHoverColor: A,
|
|
34419
34417
|
contentMarginTop: X = 0,
|
|
34420
|
-
iconMarginRight:
|
|
34421
|
-
} = n,
|
|
34418
|
+
iconMarginRight: V = 0
|
|
34419
|
+
} = n, D = ye((ge) => F(ge, i ?? !1), [i]), re = D(g ?? 0), w = `${p}%`, I = `${b}%`, N = D(v), de = D(X), ae = D(V), S = xi("title1", bi(n, "title1"), i), se = xi("title2", bi(n, "title2"), i), P = xi("title3", bi(n, "title3"), i), ie = xi("count", bi(n, "count"), i), Y = O === "mobile", Se = !i || !!r, Ne = !o && (!i || !!r), fe = Ue(() => fr(t, y), [t, y]), [ue, U] = Z(a), ne = fe[ue], Q = ne == null ? void 0 : ne.entry, [We, Le] = Z(!1), [_e, me] = Z(null), [be, Te] = Z(!1), [z, ce] = Z(null), [xe, we] = Z(!1), [Fe, Re] = Z(0), [_, ve] = Z(), [le, W] = Z(), [te, He] = Z(null), pe = B(null), H = B(0), Je = B(0), Ve = B(0), ft = B(!1), st = B(null), wt = B(null), mt = B(null), Xe = B(null), $e = B(null), Oe = B(null), Ge = B(null), et = ye(() => {
|
|
34422
34420
|
const ge = wt.current;
|
|
34423
34421
|
if (!ge) return;
|
|
34424
34422
|
const qe = ge.closest(`.${e}-lightbox-content-area`);
|
|
34425
34423
|
if (!qe) return ge.getBoundingClientRect().width;
|
|
34426
|
-
const h = Array.from(qe.children).reduce((
|
|
34424
|
+
const h = Array.from(qe.children).reduce((q, ee) => !(ee instanceof HTMLElement) || ee.contains(ge) ? q : q + ee.getBoundingClientRect().width, 0);
|
|
34427
34425
|
return qe.getBoundingClientRect().width - h;
|
|
34428
34426
|
}, [e]), oe = ye(() => {
|
|
34429
34427
|
pe.current && (clearTimeout(pe.current), pe.current = null);
|
|
@@ -34454,12 +34452,12 @@ const pv = tv(), mv = {
|
|
|
34454
34452
|
if (fe.length === 0) return;
|
|
34455
34453
|
const qe = (ge % fe.length + fe.length) % fe.length;
|
|
34456
34454
|
if (qe === ue) return;
|
|
34457
|
-
const h = fe[ue],
|
|
34455
|
+
const h = fe[ue], q = fe[qe];
|
|
34458
34456
|
H.current += 1;
|
|
34459
|
-
const ee = H.current, Ie = L === "fade" && ns(h == null ? void 0 : h.entry) !== ns(
|
|
34457
|
+
const ee = H.current, Ie = L === "fade" && ns(h == null ? void 0 : h.entry) !== ns(q == null ? void 0 : q.entry), Be = at(mt.current), tt = Ie ? (() => {
|
|
34460
34458
|
const Ft = et();
|
|
34461
34459
|
$d(() => {
|
|
34462
|
-
He(
|
|
34460
|
+
He(q.entry);
|
|
34463
34461
|
}), mt.current && Ft && (mt.current.style.width = `${Ft}px`);
|
|
34464
34462
|
const dn = at(mt.current);
|
|
34465
34463
|
return mt.current && (mt.current.style.width = ""), { measuredIncomingTitlesHeight: dn, incomingTitlesMeasureWidth: Ft };
|
|
@@ -34467,9 +34465,9 @@ const pv = tv(), mv = {
|
|
|
34467
34465
|
Be ?? 0,
|
|
34468
34466
|
(tt == null ? void 0 : tt.measuredIncomingTitlesHeight) ?? 0
|
|
34469
34467
|
) || void 0;
|
|
34470
|
-
Re(ee), ce(ue), we(!0), U(qe), De(qe), Ve.current = qe, Ie ? (oe(), Lt && ve(Lt), tt != null && tt.incomingTitlesMeasureWidth && W(tt.incomingTitlesMeasureWidth), me((h == null ? void 0 : h.entryIndex) ?? null), Te(!0), Je.current =
|
|
34468
|
+
Re(ee), ce(ue), we(!0), U(qe), De(qe), Ve.current = qe, Ie ? (oe(), Lt && ve(Lt), tt != null && tt.incomingTitlesMeasureWidth && W(tt.incomingTitlesMeasureWidth), me((h == null ? void 0 : h.entryIndex) ?? null), Te(!0), Je.current = q.entryIndex, pe.current = setTimeout(() => {
|
|
34471
34469
|
me(null), Te(!1), ve(void 0), W(void 0), He(null), pe.current = null;
|
|
34472
|
-
}, 400)) : (oe(), me(null), Te(!1), ve(void 0), W(void 0), He(null), Je.current =
|
|
34470
|
+
}, 400)) : (oe(), me(null), Te(!1), ve(void 0), W(void 0), He(null), Je.current = q.entryIndex);
|
|
34473
34471
|
}, [ue, oe, et, at, fe, De, L]), gt = ye(() => {
|
|
34474
34472
|
Ge.current = null;
|
|
34475
34473
|
}, []), At = ye((ge) => {
|
|
@@ -34487,9 +34485,9 @@ const pv = tv(), mv = {
|
|
|
34487
34485
|
}
|
|
34488
34486
|
const qe = Ge.current;
|
|
34489
34487
|
if (!qe || qe.pointerId !== ge.pointerId || (gt(), ge.target.closest("[data-controls]"))) return;
|
|
34490
|
-
const
|
|
34488
|
+
const q = ge.clientX - qe.startX, ee = ge.clientY - qe.startY, Ie = Math.abs(q), Be = Math.abs(ee);
|
|
34491
34489
|
if (Ie >= Lh && Ie > Be) {
|
|
34492
|
-
ut(
|
|
34490
|
+
ut(q > 0 ? ue - 1 : ue + 1);
|
|
34493
34491
|
return;
|
|
34494
34492
|
}
|
|
34495
34493
|
if (Ie > Jl || Be > Jl) return;
|
|
@@ -34531,11 +34529,11 @@ const pv = tv(), mv = {
|
|
|
34531
34529
|
if (qe.key === "Tab" && Xe.current) {
|
|
34532
34530
|
const h = Xe.current.querySelectorAll(
|
|
34533
34531
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
34534
|
-
),
|
|
34532
|
+
), q = Array.from(h).filter(
|
|
34535
34533
|
(tt) => !tt.closest('[aria-hidden="true"]')
|
|
34536
34534
|
);
|
|
34537
|
-
if (
|
|
34538
|
-
const ee =
|
|
34535
|
+
if (q.length === 0) return;
|
|
34536
|
+
const ee = q[0], Ie = q[q.length - 1], Be = document.activeElement;
|
|
34539
34537
|
qe.shiftKey ? (Be === ee || !Xe.current.contains(Be)) && (qe.preventDefault(), Ie.focus()) : (Be === Ie || !Xe.current.contains(Be)) && (qe.preventDefault(), ee.focus());
|
|
34540
34538
|
}
|
|
34541
34539
|
};
|
|
@@ -34550,17 +34548,17 @@ const pv = tv(), mv = {
|
|
|
34550
34548
|
const ge = Math.max(0, fe.length - 1), qe = Math.min(Math.max(0, a), ge);
|
|
34551
34549
|
Ve.current = qe, Je.current = ((h = fe[qe]) == null ? void 0 : h.entryIndex) ?? 0, U(qe);
|
|
34552
34550
|
}, [a]);
|
|
34553
|
-
const Tt = _e !== null ? t[_e] : null, It =
|
|
34551
|
+
const Tt = _e !== null ? t[_e] : null, It = z !== null ? fe[z] : null, Xt = (Q == null ? void 0 : Q.title1) || (Q == null ? void 0 : Q.title2) || (Q == null ? void 0 : Q.title3) || (Tt == null ? void 0 : Tt.title1) || (Tt == null ? void 0 : Tt.title2) || (Tt == null ? void 0 : Tt.title3), Dt = Fh(y, fe, t), Ct = k !== null, zt = Xt || Dt || Ct, Vt = Dt && Ct ? { gap: N } : void 0, nn = `${e}-titles-stack${Y ? ` ${e}-titles-stack-stacked` : ""}`, an = `${e}-titles-layer-out${Y ? ` ${e}-titles-layer-out-stacked` : ""}`, Et = `${e}-titles-layer-out`, jt = (E ?? 0) > 0 || o, pn = D(C), bt = Ue(
|
|
34554
34552
|
() => ({
|
|
34555
34553
|
title1Width: T ?? ji.title1Width,
|
|
34556
34554
|
title2Width: $ ?? ji.title2Width,
|
|
34557
|
-
title3Width:
|
|
34555
|
+
title3Width: G ?? ji.title3Width
|
|
34558
34556
|
}),
|
|
34559
|
-
[T, $,
|
|
34557
|
+
[T, $, G]
|
|
34560
34558
|
), Pe = Ue(() => ({
|
|
34561
|
-
title2MarginLeft:
|
|
34559
|
+
title2MarginLeft: j,
|
|
34562
34560
|
title3MarginLeft: M
|
|
34563
|
-
}), [
|
|
34561
|
+
}), [j, M]), je = Ue(
|
|
34564
34562
|
() => Q ? Qn(e, Q, S, se, P) : [],
|
|
34565
34563
|
[e, Q, S, se, P]
|
|
34566
34564
|
), ct = Ue(
|
|
@@ -34600,11 +34598,11 @@ const pv = tv(), mv = {
|
|
|
34600
34598
|
maxWidth: fn(ee, Kt.resolved)
|
|
34601
34599
|
};
|
|
34602
34600
|
}
|
|
34603
|
-
const
|
|
34601
|
+
const q = vt.findIndex((ee) => ee.prefix === ge.prefix);
|
|
34604
34602
|
return {
|
|
34605
|
-
effectiveWidth: Ot.effective[
|
|
34606
|
-
resolvedWidth: Ot.resolved[
|
|
34607
|
-
maxWidth: fn(
|
|
34603
|
+
effectiveWidth: Ot.effective[q] ?? 0,
|
|
34604
|
+
resolvedWidth: Ot.resolved[q] ?? 0,
|
|
34605
|
+
maxWidth: fn(q, Ot.resolved)
|
|
34608
34606
|
};
|
|
34609
34607
|
}, [
|
|
34610
34608
|
je,
|
|
@@ -34628,7 +34626,7 @@ const pv = tv(), mv = {
|
|
|
34628
34626
|
[Y, E]
|
|
34629
34627
|
), Gt = ye(
|
|
34630
34628
|
(ge) => vt.slice(0, ge).reduce(
|
|
34631
|
-
(qe, h,
|
|
34629
|
+
(qe, h, q) => qe + (h.marginLeftKey ? Pe[h.marginLeftKey] ?? 0 : 0) + (Ot.resolved[q] ?? 0),
|
|
34632
34630
|
0
|
|
34633
34631
|
),
|
|
34634
34632
|
[vt, Ot.resolved, Pe]
|
|
@@ -34655,26 +34653,26 @@ const pv = tv(), mv = {
|
|
|
34655
34653
|
maxWidth: fn(Lt, Ft)
|
|
34656
34654
|
};
|
|
34657
34655
|
}
|
|
34658
|
-
const
|
|
34656
|
+
const q = ge.filter((tt) => tt.prefix === "title2" || tt.prefix === "title3"), ee = q.findIndex((tt) => tt.prefix === qe.prefix), { resolved: Ie, effective: Be } = ei(q, bt);
|
|
34659
34657
|
return {
|
|
34660
34658
|
effectiveWidth: Be[ee] ?? 0,
|
|
34661
34659
|
resolvedWidth: Ie[ee] ?? 0,
|
|
34662
34660
|
maxWidth: fn(ee, Ie)
|
|
34663
34661
|
};
|
|
34664
34662
|
}, [bt, Y]), Rt = (ge, qe, h) => {
|
|
34665
|
-
const
|
|
34663
|
+
const q = ge.marginLeftKey ? Pe[ge.marginLeftKey] ?? 0 : 0, {
|
|
34666
34664
|
effectiveWidth: ee,
|
|
34667
34665
|
resolvedWidth: Ie,
|
|
34668
34666
|
maxWidth: Be
|
|
34669
|
-
} = h ?? Nt(ge, qe), tt = Math.max(
|
|
34667
|
+
} = h ?? Nt(ge, qe), tt = Math.max(q, Jn), Lt = o && qe === "two-row-top";
|
|
34670
34668
|
return /* @__PURE__ */ K(
|
|
34671
34669
|
"div",
|
|
34672
34670
|
{
|
|
34673
34671
|
className: `${e}-title-cell`,
|
|
34674
34672
|
"data-title": ge.prefix,
|
|
34675
34673
|
style: {
|
|
34676
|
-
width:
|
|
34677
|
-
...
|
|
34674
|
+
width: D(ee),
|
|
34675
|
+
...q > 0 ? { marginLeft: D(q) } : {}
|
|
34678
34676
|
},
|
|
34679
34677
|
children: [
|
|
34680
34678
|
/* @__PURE__ */ l("p", { className: ge.className, style: ge.style, children: ge.text }),
|
|
@@ -34688,8 +34686,8 @@ const pv = tv(), mv = {
|
|
|
34688
34686
|
style: {
|
|
34689
34687
|
position: "absolute",
|
|
34690
34688
|
top: 0,
|
|
34691
|
-
left:
|
|
34692
|
-
width:
|
|
34689
|
+
left: D(-q),
|
|
34690
|
+
width: D(tt),
|
|
34693
34691
|
height: "100%",
|
|
34694
34692
|
pointerEvents: "auto"
|
|
34695
34693
|
}
|
|
@@ -34706,8 +34704,8 @@ const pv = tv(), mv = {
|
|
|
34706
34704
|
style: {
|
|
34707
34705
|
position: "absolute",
|
|
34708
34706
|
top: 0,
|
|
34709
|
-
right:
|
|
34710
|
-
width:
|
|
34707
|
+
right: D(-Sn / 2),
|
|
34708
|
+
width: D(Sn),
|
|
34711
34709
|
height: "100%",
|
|
34712
34710
|
pointerEvents: "auto"
|
|
34713
34711
|
}
|
|
@@ -34718,21 +34716,21 @@ const pv = tv(), mv = {
|
|
|
34718
34716
|
ge.className
|
|
34719
34717
|
);
|
|
34720
34718
|
}, x = (ge = "two-row") => {
|
|
34721
|
-
const qe = je.findIndex((ee) => ee.prefix === "title1"), h = qe >= 0 ? xt[qe] : bt.title1Width,
|
|
34719
|
+
const qe = je.findIndex((ee) => ee.prefix === "title1"), h = qe >= 0 ? xt[qe] : bt.title1Width, q = ge === "two-row" && o;
|
|
34722
34720
|
return /* @__PURE__ */ l(
|
|
34723
34721
|
"div",
|
|
34724
34722
|
{
|
|
34725
|
-
...
|
|
34723
|
+
...q ? {
|
|
34726
34724
|
"data-controls": "title1MarginLeft",
|
|
34727
34725
|
"data-controls-axis": "x",
|
|
34728
34726
|
"data-controls-min": "0",
|
|
34729
34727
|
"data-controls-max-fraction": String(h)
|
|
34730
34728
|
} : {},
|
|
34731
34729
|
style: {
|
|
34732
|
-
width:
|
|
34730
|
+
width: D(E ?? 0),
|
|
34733
34731
|
flexShrink: 0,
|
|
34734
34732
|
alignSelf: "stretch",
|
|
34735
|
-
...
|
|
34733
|
+
...q ? { pointerEvents: "auto" } : {}
|
|
34736
34734
|
}
|
|
34737
34735
|
}
|
|
34738
34736
|
);
|
|
@@ -34941,17 +34939,17 @@ const pv = tv(), mv = {
|
|
|
34941
34939
|
)) });
|
|
34942
34940
|
}, un = (ge) => {
|
|
34943
34941
|
if (!ge) return null;
|
|
34944
|
-
const qe = Qn(e, ge, S, se, P), h = qe.find((
|
|
34942
|
+
const qe = Qn(e, ge, S, se, P), h = qe.find((q) => q.prefix === "title1");
|
|
34945
34943
|
return h ? Rt(
|
|
34946
34944
|
h,
|
|
34947
34945
|
"two-row-top",
|
|
34948
34946
|
Bt(qe, h, "two-row-top")
|
|
34949
34947
|
) : null;
|
|
34950
34948
|
}, vn = (ge, qe = !1) => {
|
|
34951
|
-
const h = ge ? Qn(e, ge, S, se, P) : [],
|
|
34952
|
-
return
|
|
34953
|
-
|
|
34954
|
-
|
|
34949
|
+
const h = ge ? Qn(e, ge, S, se, P) : [], q = h.filter((Be) => Be.prefix === "title2" || Be.prefix === "title3"), ee = o && qe;
|
|
34950
|
+
return q.length > 0 || ee || (C ?? 0) > 0 ? /* @__PURE__ */ K("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
34951
|
+
q.length > 0 ? /* @__PURE__ */ K("div", { className: `${e}-titles-row-bottom`, children: [
|
|
34952
|
+
q.map((Be) => Rt(
|
|
34955
34953
|
Be,
|
|
34956
34954
|
"two-row-bottom",
|
|
34957
34955
|
Bt(h, Be, "two-row-bottom")
|
|
@@ -34981,8 +34979,8 @@ const pv = tv(), mv = {
|
|
|
34981
34979
|
Ut(un(ge)),
|
|
34982
34980
|
vn(ge, qe)
|
|
34983
34981
|
] }), ci = (ge) => Y ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-two-row`, children: si(ge) }) : ge ? /* @__PURE__ */ l("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: kt(ge) }) : null, Go = () => {
|
|
34984
|
-
const ge = Y ? -1 : je.findIndex((
|
|
34985
|
-
const
|
|
34982
|
+
const ge = Y ? -1 : je.findIndex((q) => q.prefix === "title1"), qe = !Y && (o || (E ?? 0) > 0) ? (() => {
|
|
34983
|
+
const q = E ?? 0, ee = ge >= 0 ? xt[ge] : bt.title1Width, Ie = Math.max(q, Jn);
|
|
34986
34984
|
return /* @__PURE__ */ l(
|
|
34987
34985
|
"div",
|
|
34988
34986
|
{
|
|
@@ -34994,16 +34992,16 @@ const pv = tv(), mv = {
|
|
|
34994
34992
|
position: "absolute",
|
|
34995
34993
|
top: 0,
|
|
34996
34994
|
left: 0,
|
|
34997
|
-
width:
|
|
34995
|
+
width: D(Ie),
|
|
34998
34996
|
height: "100%",
|
|
34999
34997
|
pointerEvents: "auto"
|
|
35000
34998
|
}
|
|
35001
34999
|
},
|
|
35002
35000
|
"title1MarginLeft"
|
|
35003
35001
|
);
|
|
35004
|
-
})() : null, h = je.flatMap((
|
|
35005
|
-
if (!
|
|
35006
|
-
const Ie = Pe[
|
|
35002
|
+
})() : null, h = je.flatMap((q, ee) => {
|
|
35003
|
+
if (!q.marginLeftKey) return [];
|
|
35004
|
+
const Ie = Pe[q.marginLeftKey] ?? 0, Be = Dc(
|
|
35007
35005
|
je,
|
|
35008
35006
|
xt,
|
|
35009
35007
|
Pe,
|
|
@@ -35012,20 +35010,20 @@ const pv = tv(), mv = {
|
|
|
35012
35010
|
return /* @__PURE__ */ l(
|
|
35013
35011
|
"div",
|
|
35014
35012
|
{
|
|
35015
|
-
"data-controls":
|
|
35013
|
+
"data-controls": q.marginLeftKey,
|
|
35016
35014
|
"data-controls-axis": "x",
|
|
35017
35015
|
"data-controls-min": "0",
|
|
35018
35016
|
"data-controls-max-fraction": String(xt[ee]),
|
|
35019
35017
|
style: {
|
|
35020
35018
|
position: "absolute",
|
|
35021
35019
|
top: 0,
|
|
35022
|
-
left:
|
|
35023
|
-
width:
|
|
35020
|
+
left: D(Be),
|
|
35021
|
+
width: D(tt),
|
|
35024
35022
|
height: "100%",
|
|
35025
35023
|
pointerEvents: "auto"
|
|
35026
35024
|
}
|
|
35027
35025
|
},
|
|
35028
|
-
|
|
35026
|
+
q.marginLeftKey
|
|
35029
35027
|
);
|
|
35030
35028
|
});
|
|
35031
35029
|
return qe ? [qe, ...h] : h;
|
|
@@ -35042,8 +35040,8 @@ const pv = tv(), mv = {
|
|
|
35042
35040
|
style: {
|
|
35043
35041
|
position: "absolute",
|
|
35044
35042
|
top: 0,
|
|
35045
|
-
left:
|
|
35046
|
-
width:
|
|
35043
|
+
left: D(ee),
|
|
35044
|
+
width: D(Sn),
|
|
35047
35045
|
height: "100%",
|
|
35048
35046
|
pointerEvents: "auto"
|
|
35049
35047
|
}
|
|
@@ -35051,7 +35049,7 @@ const pv = tv(), mv = {
|
|
|
35051
35049
|
) }, `${ge.widthKey}-junction`);
|
|
35052
35050
|
}), Ur = () => vt.flatMap((ge, qe) => {
|
|
35053
35051
|
if (!ge.marginLeftKey) return [];
|
|
35054
|
-
const h = Pe[ge.marginLeftKey] ?? 0,
|
|
35052
|
+
const h = Pe[ge.marginLeftKey] ?? 0, q = Gt(qe), ee = Math.max(h, Jn), { resolvedWidth: Ie } = Nt(ge, "two-row-bottom");
|
|
35055
35053
|
return /* @__PURE__ */ l(
|
|
35056
35054
|
"div",
|
|
35057
35055
|
{
|
|
@@ -35062,8 +35060,8 @@ const pv = tv(), mv = {
|
|
|
35062
35060
|
style: {
|
|
35063
35061
|
position: "absolute",
|
|
35064
35062
|
top: 0,
|
|
35065
|
-
left:
|
|
35066
|
-
width:
|
|
35063
|
+
left: D(q),
|
|
35064
|
+
width: D(ee),
|
|
35067
35065
|
height: "100%",
|
|
35068
35066
|
pointerEvents: "auto"
|
|
35069
35067
|
}
|
|
@@ -35083,8 +35081,8 @@ const pv = tv(), mv = {
|
|
|
35083
35081
|
style: {
|
|
35084
35082
|
position: "absolute",
|
|
35085
35083
|
top: 0,
|
|
35086
|
-
left:
|
|
35087
|
-
width:
|
|
35084
|
+
left: D(ee),
|
|
35085
|
+
width: D(Sn),
|
|
35088
35086
|
height: "100%",
|
|
35089
35087
|
pointerEvents: "auto"
|
|
35090
35088
|
}
|
|
@@ -35108,7 +35106,7 @@ const pv = tv(), mv = {
|
|
|
35108
35106
|
style: { "--image-object-fit": ge.objectFit }
|
|
35109
35107
|
} : Bn(f) ? { className: `${e}-slide-image ${e}-slide-image-cover` } : { className: `${e}-slide-image ${e}-slide-image-fit` }, di = (ge) => {
|
|
35110
35108
|
if (ge.length === 0) return null;
|
|
35111
|
-
const qe = ge.length > 1, h = sa(re),
|
|
35109
|
+
const qe = ge.length > 1, h = sa(re), q = `calc(-0.5 * (${h} + ${re}))`;
|
|
35112
35110
|
if (ge.length === 1) {
|
|
35113
35111
|
const ee = ge[0];
|
|
35114
35112
|
return /* @__PURE__ */ l("div", { ...Pi(ee), children: /* @__PURE__ */ l("img", { ...Uo(ee), src: ee.url, alt: ee.name ?? "", draggable: !1 }) });
|
|
@@ -35136,7 +35134,7 @@ const pv = tv(), mv = {
|
|
|
35136
35134
|
style: {
|
|
35137
35135
|
position: "absolute",
|
|
35138
35136
|
top: 0,
|
|
35139
|
-
right:
|
|
35137
|
+
right: q,
|
|
35140
35138
|
width: h,
|
|
35141
35139
|
height: "100%",
|
|
35142
35140
|
pointerEvents: "auto",
|
|
@@ -35879,15 +35877,15 @@ function fv(e) {
|
|
|
35879
35877
|
`;
|
|
35880
35878
|
}
|
|
35881
35879
|
const yv = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: r, metadata: a }) => {
|
|
35882
|
-
const { prefix: c } = cn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: y } = e, f =
|
|
35880
|
+
const { prefix: c } = cn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: y } = e, f = B(null), [m, g] = Z(!1), [p, b] = Z(0), L = B(!1), T = B(!1), $ = B(!1), G = Ue(
|
|
35883
35881
|
() => (t ?? []).filter((v) => Ki(v).length > 0),
|
|
35884
35882
|
[t]
|
|
35885
|
-
), E = m &&
|
|
35886
|
-
|
|
35887
|
-
}, [
|
|
35888
|
-
if (
|
|
35889
|
-
const k = fr(
|
|
35890
|
-
if (b(R),
|
|
35883
|
+
), E = m && G.length > 0, j = !n, M = ye(() => {
|
|
35884
|
+
j && ($.current = !0, Rh(T.current, s), T.current = !1);
|
|
35885
|
+
}, [j, s]), C = (v = 0) => {
|
|
35886
|
+
if (G.length === 0 || n && !i && !o) return;
|
|
35887
|
+
const k = fr(G, y), R = Math.max(0, Math.min(v, k.length - 1));
|
|
35888
|
+
if (b(R), j) {
|
|
35891
35889
|
const J = Nc();
|
|
35892
35890
|
Hc(R + 1, s, J), T.current = !J;
|
|
35893
35891
|
}
|
|
@@ -35898,14 +35896,14 @@ const yv = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
35898
35896
|
return Ae(() => {
|
|
35899
35897
|
!n || i || o || g(!1);
|
|
35900
35898
|
}, [n, i, o]), Ae(() => {
|
|
35901
|
-
if (!
|
|
35899
|
+
if (!j || L.current) return;
|
|
35902
35900
|
L.current = !0;
|
|
35903
35901
|
const v = es(s);
|
|
35904
35902
|
if (!v) return;
|
|
35905
|
-
const k = ts(v, fr(
|
|
35903
|
+
const k = ts(v, fr(G, y).length);
|
|
35906
35904
|
k < 0 || (b(k), g(!0));
|
|
35907
|
-
}, [
|
|
35908
|
-
if (!
|
|
35905
|
+
}, [G, s, j, y]), Ae(() => {
|
|
35906
|
+
if (!j) return;
|
|
35909
35907
|
const v = () => {
|
|
35910
35908
|
if ($.current) {
|
|
35911
35909
|
$.current = !1, g(!1);
|
|
@@ -35916,7 +35914,7 @@ const yv = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
35916
35914
|
g(!1);
|
|
35917
35915
|
return;
|
|
35918
35916
|
}
|
|
35919
|
-
const R = ts(k, fr(
|
|
35917
|
+
const R = ts(k, fr(G, y).length);
|
|
35920
35918
|
if (R < 0) {
|
|
35921
35919
|
g(!1);
|
|
35922
35920
|
return;
|
|
@@ -35924,7 +35922,7 @@ const yv = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
35924
35922
|
T.current = !1, b(R), g(!0);
|
|
35925
35923
|
};
|
|
35926
35924
|
return window.addEventListener("popstate", v), () => window.removeEventListener("popstate", v);
|
|
35927
|
-
}, [
|
|
35925
|
+
}, [G, s, j, y]), /* @__PURE__ */ K(lt, { children: [
|
|
35928
35926
|
/* @__PURE__ */ K("div", { ref: f, className: `${c}-wrapper`, children: [
|
|
35929
35927
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: fv(c) } }),
|
|
35930
35928
|
d ? /* @__PURE__ */ l(
|
|
@@ -35960,13 +35958,13 @@ const yv = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
35960
35958
|
hv,
|
|
35961
35959
|
{
|
|
35962
35960
|
prefix: c,
|
|
35963
|
-
entries:
|
|
35961
|
+
entries: G,
|
|
35964
35962
|
settings: e,
|
|
35965
35963
|
isEditor: n,
|
|
35966
35964
|
isEditMode: i,
|
|
35967
35965
|
isPreviewMode: o,
|
|
35968
35966
|
initialSlideIndex: p,
|
|
35969
|
-
enableUrlSync:
|
|
35967
|
+
enableUrlSync: j,
|
|
35970
35968
|
journalItemId: s,
|
|
35971
35969
|
onBeforeClose: M,
|
|
35972
35970
|
onClose: O
|
|
@@ -37448,9 +37446,9 @@ async function Mv(e) {
|
|
|
37448
37446
|
return new Map(n);
|
|
37449
37447
|
}
|
|
37450
37448
|
function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
37451
|
-
const { prefix: i } = cn(), [o, r] = Z(null), [a, c] = Z([]), [s, d] = Z(0), u =
|
|
37449
|
+
const { prefix: i } = cn(), [o, r] = Z(null), [a, c] = Z([]), [s, d] = Z(0), u = B(0), [y, f] = Z({ x: 0, y: 0 }), [m, g] = Z("none"), p = B({ x: 0, y: 0 }), [b, L] = Z(!1), [T, $] = Z(!1), G = B(/* @__PURE__ */ new Map()), {
|
|
37452
37450
|
imageSize: E = Lv,
|
|
37453
|
-
cursor:
|
|
37451
|
+
cursor: j = "system",
|
|
37454
37452
|
target: M = "area",
|
|
37455
37453
|
position: C = "random",
|
|
37456
37454
|
visible: O = "all",
|
|
@@ -37465,9 +37463,9 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37465
37463
|
if (!o) return;
|
|
37466
37464
|
const de = o.getBoundingClientRect(), ae = w - de.left, S = I - de.top;
|
|
37467
37465
|
f({ x: ae, y: S }), g(
|
|
37468
|
-
Iv(ae, S, N, o,
|
|
37466
|
+
Iv(ae, S, N, o, j, M, k, v)
|
|
37469
37467
|
);
|
|
37470
|
-
}, [o, a,
|
|
37468
|
+
}, [o, a, j, M, k, v]);
|
|
37471
37469
|
Ae(() => {
|
|
37472
37470
|
const w = [
|
|
37473
37471
|
...R.map((N) => N.image.url),
|
|
@@ -37475,12 +37473,12 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37475
37473
|
k
|
|
37476
37474
|
].filter((N) => !!N);
|
|
37477
37475
|
if (w.length === 0) {
|
|
37478
|
-
|
|
37476
|
+
G.current = /* @__PURE__ */ new Map(), $(!0);
|
|
37479
37477
|
return;
|
|
37480
37478
|
}
|
|
37481
37479
|
let I = !1;
|
|
37482
37480
|
return $(!1), Mv(w).then((N) => {
|
|
37483
|
-
I || (
|
|
37481
|
+
I || (G.current = N, $(!0));
|
|
37484
37482
|
}), () => {
|
|
37485
37483
|
I = !0;
|
|
37486
37484
|
};
|
|
@@ -37502,7 +37500,7 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37502
37500
|
const X = (w, I, N, de = {}) => {
|
|
37503
37501
|
var Y, Se;
|
|
37504
37502
|
if (!((Y = w == null ? void 0 : w.image) != null && Y.url)) return null;
|
|
37505
|
-
const ae = ((Se =
|
|
37503
|
+
const ae = ((Se = G.current.get(w.image.url)) == null ? void 0 : Se.aspectRatio) ?? 1, S = Ps(w.image.url, E, G.current), { heightPx: se } = Rr(S, ae);
|
|
37506
37504
|
let P = 0, ie = 0;
|
|
37507
37505
|
return C === "same" ? { x: P, y: ie } = Rs(I, N, S, ae) : (P = de.x ?? Math.random() * I, ie = de.y ?? Math.random() * N, { x: P, y: ie } = za(P, ie, I, N, S, se)), {
|
|
37508
37506
|
id: u.current++,
|
|
@@ -37516,11 +37514,11 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37516
37514
|
aspectRatio: ae,
|
|
37517
37515
|
widthPx: S
|
|
37518
37516
|
};
|
|
37519
|
-
},
|
|
37517
|
+
}, V = () => {
|
|
37520
37518
|
if (!o) return;
|
|
37521
37519
|
const w = o.getBoundingClientRect(), I = w.width, N = w.height;
|
|
37522
37520
|
I === 0 || N === 0 || c((de) => de.length === 0 ? de : de.map((ae) => {
|
|
37523
|
-
const S = E.sizeType === "random" ? ae.widthPx : Ps(ae.url, E,
|
|
37521
|
+
const S = E.sizeType === "random" ? ae.widthPx : Ps(ae.url, E, G.current), { heightPx: se } = Rr(S, ae.aspectRatio);
|
|
37524
37522
|
if (C === "same") {
|
|
37525
37523
|
const { x: Y, y: Se } = Rs(I, N, S, ae.aspectRatio);
|
|
37526
37524
|
return { ...ae, x: Y, y: Se, widthPx: S };
|
|
@@ -37542,15 +37540,15 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37542
37540
|
de && (c([de]), d(R.length > 1 ? 1 : 0));
|
|
37543
37541
|
}, [E, C, o, t, T]), Ae(() => {
|
|
37544
37542
|
if (!o) return;
|
|
37545
|
-
|
|
37546
|
-
const w = new ResizeObserver(
|
|
37547
|
-
return w.observe(o), window.addEventListener("resize",
|
|
37548
|
-
w.disconnect(), window.removeEventListener("resize",
|
|
37543
|
+
V();
|
|
37544
|
+
const w = new ResizeObserver(V);
|
|
37545
|
+
return w.observe(o), window.addEventListener("resize", V), () => {
|
|
37546
|
+
w.disconnect(), window.removeEventListener("resize", V);
|
|
37549
37547
|
};
|
|
37550
37548
|
}, [o, C, E, a.length]), Ae(() => {
|
|
37551
37549
|
O === "last One" && c((w) => w.length > 0 ? [w[w.length - 1]] : []);
|
|
37552
37550
|
}, [O]);
|
|
37553
|
-
const
|
|
37551
|
+
const D = (w) => {
|
|
37554
37552
|
if (!o || R.length === 0 || !T) return;
|
|
37555
37553
|
const I = o.getBoundingClientRect(), N = w.clientX - I.left, de = w.clientY - I.top;
|
|
37556
37554
|
if (M === "image" && !od(N, de, a)) return;
|
|
@@ -37560,14 +37558,14 @@ function Ev({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37560
37558
|
if (!P) return;
|
|
37561
37559
|
const ie = O === "all" ? [...a, P] : [P];
|
|
37562
37560
|
c(ie), d((Y) => (Y + 1) % R.length), A(w.clientX, w.clientY, ie);
|
|
37563
|
-
}, re =
|
|
37561
|
+
}, re = j === "custom" && m !== "none";
|
|
37564
37562
|
return /* @__PURE__ */ K(lt, { children: [
|
|
37565
37563
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: J } }),
|
|
37566
37564
|
/* @__PURE__ */ K(
|
|
37567
37565
|
"div",
|
|
37568
37566
|
{
|
|
37569
37567
|
ref: r,
|
|
37570
|
-
onClick:
|
|
37568
|
+
onClick: D,
|
|
37571
37569
|
onMouseEnter: () => L(!0),
|
|
37572
37570
|
onMouseLeave: () => L(!1),
|
|
37573
37571
|
className: `${i}-root`,
|
|
@@ -38576,15 +38574,15 @@ function Bv(e, t) {
|
|
|
38576
38574
|
});
|
|
38577
38575
|
}
|
|
38578
38576
|
function Vv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
38579
|
-
var Te,
|
|
38577
|
+
var Te, z, ce, xe, we, Fe, Re;
|
|
38580
38578
|
const { prefix: o } = cn(), r = Ue(() => Hv(o), [o]), {
|
|
38581
38579
|
imageSize: a,
|
|
38582
38580
|
maxWidth: c,
|
|
38583
38581
|
maxHeight: s,
|
|
38584
38582
|
transition: d = 1e3,
|
|
38585
38583
|
bgImage: u = "greyscale"
|
|
38586
|
-
} = e, y = t ?? [], f = Ms(y.length), [m, g] = Z(f.activeIndex), [p, b] = Z(f.backgroundIndex), [L, T] = Z(!1), [$,
|
|
38587
|
-
const ve = Dv(_ ?
|
|
38584
|
+
} = e, y = t ?? [], f = Ms(y.length), [m, g] = Z(f.activeIndex), [p, b] = Z(f.backgroundIndex), [L, T] = Z(!1), [$, G] = Z(!1), [E, j] = Z(null), [M, C] = Z(null), [O, v] = Z(0), [k, R] = Z(1), [J, A] = Z("none"), [X, V] = Z("next"), [D, re] = Z({}), [w, I] = Z({ width: 0, height: 0 }), N = B(null), de = B(null), ae = !n || !!i, S = a ?? 60, se = Math.max(10, Math.min(100, c ?? S)), P = Math.max(10, Math.min(100, s ?? S)), ie = Math.max(100, d), Y = go(u), Se = ye((_) => {
|
|
38585
|
+
const ve = Dv(_ ? D[_] : void 0);
|
|
38588
38586
|
return zv(
|
|
38589
38587
|
w.width,
|
|
38590
38588
|
w.height,
|
|
@@ -38592,7 +38590,7 @@ function Vv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38592
38590
|
se,
|
|
38593
38591
|
P
|
|
38594
38592
|
);
|
|
38595
|
-
}, [w.height, w.width,
|
|
38593
|
+
}, [w.height, w.width, D, P, se]);
|
|
38596
38594
|
Ae(() => {
|
|
38597
38595
|
const _ = de.current;
|
|
38598
38596
|
if (!_) return;
|
|
@@ -38614,7 +38612,7 @@ function Vv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38614
38612
|
});
|
|
38615
38613
|
}, [t]), Ae(() => {
|
|
38616
38614
|
const { backgroundIndex: _, activeIndex: ve } = Ms(y.length);
|
|
38617
|
-
g(ve), b(_), T(!1),
|
|
38615
|
+
g(ve), b(_), T(!1), G(!1), j(null), C(null), v(0), R(1), A("none"), V("next");
|
|
38618
38616
|
}, [y.length, t]), Ae(() => () => {
|
|
38619
38617
|
N.current && clearTimeout(N.current);
|
|
38620
38618
|
}, []);
|
|
@@ -38622,12 +38620,12 @@ function Vv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38622
38620
|
var pe, H, Je, Ve;
|
|
38623
38621
|
if (!ae || L || y.length <= 1) return;
|
|
38624
38622
|
const ve = _ === "next" ? (m + 1) % y.length : (m - 1 + y.length) % y.length, le = Se((H = (pe = y[m]) == null ? void 0 : pe.image) == null ? void 0 : H.url), W = Se((Ve = (Je = y[ve]) == null ? void 0 : Je.image) == null ? void 0 : Ve.url), te = Es(w.width, w.height, le), He = Es(w.width, w.height, W);
|
|
38625
|
-
N.current && clearTimeout(N.current),
|
|
38626
|
-
|
|
38623
|
+
N.current && clearTimeout(N.current), V(_), G(!0), T(!0), _ === "next" ? (j(m), C(ve), v(0), R(1), A(go(u, 0, 1))) : (b(Ov(ve, y.length)), j(ve), C(m), v(1), R(He), A(go(u, 1, He))), requestAnimationFrame(() => {
|
|
38624
|
+
G(!1), requestAnimationFrame(() => {
|
|
38627
38625
|
_ === "next" ? (v(1), R(te), A(go(u, 1, te))) : (v(0), R(1), A(go(u, 0, 1)));
|
|
38628
38626
|
});
|
|
38629
38627
|
}), N.current = setTimeout(() => {
|
|
38630
|
-
_ === "next" && b(m), g(ve),
|
|
38628
|
+
_ === "next" && b(m), g(ve), j(null), C(null), T(!1);
|
|
38631
38629
|
}, ie);
|
|
38632
38630
|
}, [
|
|
38633
38631
|
m,
|
|
@@ -38639,7 +38637,7 @@ function Vv({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38639
38637
|
ae,
|
|
38640
38638
|
y,
|
|
38641
38639
|
ie
|
|
38642
|
-
]), fe = y[m], ue = p !== null ? y[p] : null, U = E !== null ? y[E] : null, ne = M !== null ? y[M] : null, Q = y.length <= 1 ? 0 : (m - 1 + y.length) % y.length, We = y.length <= 1 ? 0 : (m + 1) % y.length, Le = Se((Te = fe == null ? void 0 : fe.image) == null ? void 0 : Te.url), _e = Se((
|
|
38640
|
+
]), fe = y[m], ue = p !== null ? y[p] : null, U = E !== null ? y[E] : null, ne = M !== null ? y[M] : null, Q = y.length <= 1 ? 0 : (m - 1 + y.length) % y.length, We = y.length <= 1 ? 0 : (m + 1) % y.length, Le = Se((Te = fe == null ? void 0 : fe.image) == null ? void 0 : Te.url), _e = Se((z = U == null ? void 0 : U.image) == null ? void 0 : z.url), me = Se((ce = ne == null ? void 0 : ne.image) == null ? void 0 : ce.url), be = {
|
|
38643
38641
|
[`--${o}-transition-ms`]: `${ie}ms`
|
|
38644
38642
|
};
|
|
38645
38643
|
return /* @__PURE__ */ K(lt, { children: [
|
|
@@ -39737,9 +39735,9 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39737
39735
|
padding: L = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
39738
39736
|
cornerRadius: T = 0,
|
|
39739
39737
|
boxShadow: $ = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
39740
|
-
boxShadowColor:
|
|
39738
|
+
boxShadowColor: G = "rgba(0, 0, 0, 0)",
|
|
39741
39739
|
innerBoxShadow: E = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
39742
|
-
innerBoxShadowColor:
|
|
39740
|
+
innerBoxShadowColor: j = "rgba(0, 0, 0, 0)",
|
|
39743
39741
|
stroke: M = 0,
|
|
39744
39742
|
blur: C = 0,
|
|
39745
39743
|
backgroundColor: O = "#000000",
|
|
@@ -39749,8 +39747,8 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39749
39747
|
hoverEffect: J = "none",
|
|
39750
39748
|
fontFamily: A,
|
|
39751
39749
|
fontSettings: X,
|
|
39752
|
-
fontSize:
|
|
39753
|
-
lineHeight:
|
|
39750
|
+
fontSize: V,
|
|
39751
|
+
lineHeight: D,
|
|
39754
39752
|
letterSpacing: re = 0,
|
|
39755
39753
|
wordSpacing: w = 0,
|
|
39756
39754
|
textAppearance: I,
|
|
@@ -39764,16 +39762,16 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39764
39762
|
textColor: v,
|
|
39765
39763
|
borderColor: k,
|
|
39766
39764
|
iconColor: R,
|
|
39767
|
-
boxShadowColor:
|
|
39768
|
-
innerBoxShadowColor:
|
|
39765
|
+
boxShadowColor: G,
|
|
39766
|
+
innerBoxShadowColor: j
|
|
39769
39767
|
}, Uv, Xv, N), ie = i && i !== "default" ? `${r}-state-${i}` : "", Y = t && !n ? `${r}-editing` : "", Se = J !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${J}` : "", Ne = J === "reveal" || J === "swipe", fe = J === "content-roll", ue = J === "reveal" && (!t || n), U = b === !0, Q = c === "a" ? y ?? u : u, We = c === "c", Le = c !== "b", _e = {
|
|
39770
39768
|
fontSettings: {
|
|
39771
39769
|
fontFamily: A,
|
|
39772
39770
|
fontWeight: (X == null ? void 0 : X.fontWeight) ?? 400,
|
|
39773
39771
|
fontStyle: (X == null ? void 0 : X.fontStyle) ?? "normal"
|
|
39774
39772
|
},
|
|
39775
|
-
fontSize:
|
|
39776
|
-
lineHeight:
|
|
39773
|
+
fontSize: V ?? 0.01,
|
|
39774
|
+
lineHeight: D,
|
|
39777
39775
|
letterSpacing: re,
|
|
39778
39776
|
wordSpacing: w,
|
|
39779
39777
|
textAppearance: I,
|
|
@@ -39810,7 +39808,7 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39810
39808
|
}
|
|
39811
39809
|
};
|
|
39812
39810
|
let Te;
|
|
39813
|
-
const
|
|
39811
|
+
const z = {
|
|
39814
39812
|
display: "inline-flex",
|
|
39815
39813
|
alignItems: "center",
|
|
39816
39814
|
justifyContent: We ? xa[Q] : xa[c === "a" ? Q : "center"],
|
|
@@ -39821,7 +39819,7 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39821
39819
|
};
|
|
39822
39820
|
if (c === "b") {
|
|
39823
39821
|
const we = () => ks(r, d, g > 0 ? "fixed" : "fill", 100, g, t);
|
|
39824
|
-
Te = fe ? wa(r, we, `${r}-icon-roll`, void 0,
|
|
39822
|
+
Te = fe ? wa(r, we, `${r}-icon-roll`, void 0, z) : we();
|
|
39825
39823
|
} else if (c === "c") {
|
|
39826
39824
|
const we = () => {
|
|
39827
39825
|
const Fe = /* @__PURE__ */ l(
|
|
@@ -39840,9 +39838,9 @@ function Jv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39840
39838
|
Re
|
|
39841
39839
|
] });
|
|
39842
39840
|
};
|
|
39843
|
-
Te = fe ? wa(r, we, `${r}-icon-text-roll`, void 0,
|
|
39841
|
+
Te = fe ? wa(r, we, `${r}-icon-text-roll`, void 0, z) : we();
|
|
39844
39842
|
} else
|
|
39845
|
-
Te = fe ? wa(r, () => s, `${r}-label-roll`, void 0,
|
|
39843
|
+
Te = fe ? wa(r, () => s, `${r}-label-roll`, void 0, z) : Ne ? /* @__PURE__ */ l("span", { className: `${r}-button-inner`, children: s }) : s;
|
|
39846
39844
|
const ce = ue ? (we) => Kv(we, r) : void 0, xe = ue ? (we) => Yv(we, r) : void 0;
|
|
39847
39845
|
return /* @__PURE__ */ K(lt, { children: [
|
|
39848
39846
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: a } }),
|
|
@@ -41557,7 +41555,7 @@ function S0({
|
|
|
41557
41555
|
onLoadedMetadata: r,
|
|
41558
41556
|
onTransitionEnd: a
|
|
41559
41557
|
}) {
|
|
41560
|
-
const c =
|
|
41558
|
+
const c = B(null);
|
|
41561
41559
|
return Ae(() => {
|
|
41562
41560
|
const s = c.current;
|
|
41563
41561
|
return n == null || n(s ?? null), () => {
|
|
@@ -41631,8 +41629,8 @@ function $0({
|
|
|
41631
41629
|
onPrev: p,
|
|
41632
41630
|
onNext: b
|
|
41633
41631
|
}) {
|
|
41634
|
-
const L =
|
|
41635
|
-
}), re =
|
|
41632
|
+
const L = B(null), T = B(null), $ = B(null), G = B(/* @__PURE__ */ new Map()), [E, j] = Z(0), M = B(null), C = B(0), O = B(0), v = B("none"), k = B(!1), R = B(!1), J = B(!1), A = B(null), X = B(null), V = B(null), D = B(() => {
|
|
41633
|
+
}), re = B(null), w = B(null), I = B(null), N = B(!1), [de, ae] = Z(null), [S, se] = Z(Sa), [P, ie] = Z(0), [Y, Se] = Z("opening"), [Ne, fe] = Z(0), [ue, U] = Z(0), [ne, Q] = Z(!1), [We, Le] = Z(null), [_e, me] = Z(null), [be, Te] = Z(null), [z, ce] = Z(!1), [xe, we] = Z(null), [Fe, Re] = Z(!1), _ = B(!1), [ve, le] = Z(!1), [W, te] = Z(!1), He = B(n), pe = B(void 0), H = t[n], Je = H ? qr(H) : !1, Ve = ue !== 0 || ne, ft = !a && (!r || !!c), st = s && !a, wt = d.length > 1, mt = ye((x, Ce) => t.length <= 1 ? null : t[(x + Ce + t.length) % t.length] ?? null, [t]), Xe = wt ? vo(d, u, -1) : mt(n, -1), $e = wt ? vo(d, u, 1) : mt(n, 1), Oe = We === -1 && Ve ? wt && _e !== null ? vo(d, _e, -1) : be !== null ? mt(be, -1) : null : null, Ge = We === 1 && Ve ? wt && _e !== null ? vo(d, _e, 1) : be !== null ? mt(be, 1) : null : null, et = Oe && Oe.url !== (Xe == null ? void 0 : Xe.url) ? Oe : null, oe = Ge && Ge.url !== ($e == null ? void 0 : $e.url) ? Ge : null, he = Xe && st ? (() => {
|
|
41636
41634
|
const x = wt ? Fs(d, u, -1) : t.length > 2 ? mt((n - 1 + t.length) % t.length, -1) : null;
|
|
41637
41635
|
return x && x.url !== Xe.url ? x : null;
|
|
41638
41636
|
})() : null, Ee = $e && st ? (() => {
|
|
@@ -41640,11 +41638,11 @@ function $0({
|
|
|
41640
41638
|
return x && x.url !== $e.url ? x : null;
|
|
41641
41639
|
})() : null, Ye = et ?? he, nt = oe ?? Ee, Ke = ye((x, Ce, Me) => {
|
|
41642
41640
|
if (!x || !Ce || !Me) return;
|
|
41643
|
-
const ze =
|
|
41644
|
-
(dt == null ? void 0 : dt.width) === Ce && (dt == null ? void 0 : dt.height) === Me || (ze.set(x, { width: Ce, height: Me }),
|
|
41641
|
+
const ze = G.current, dt = ze.get(x);
|
|
41642
|
+
(dt == null ? void 0 : dt.width) === Ce && (dt == null ? void 0 : dt.height) === Me || (ze.set(x, { width: Ce, height: Me }), j((Ht) => Ht + 1));
|
|
41645
41643
|
}, []), pt = ye((x) => {
|
|
41646
41644
|
if (!(x != null && x.url)) return null;
|
|
41647
|
-
const Ce =
|
|
41645
|
+
const Ce = G.current.get(x.url);
|
|
41648
41646
|
return h0(T.current, Ce);
|
|
41649
41647
|
}, [E, P]), it = ye(() => {
|
|
41650
41648
|
if (!H) return;
|
|
@@ -41722,7 +41720,7 @@ function $0({
|
|
|
41722
41720
|
if (!(!st || !de)) {
|
|
41723
41721
|
if (J.current) {
|
|
41724
41722
|
if (X.current === x) {
|
|
41725
|
-
|
|
41723
|
+
V.current = x, At();
|
|
41726
41724
|
return;
|
|
41727
41725
|
}
|
|
41728
41726
|
rn();
|
|
@@ -41739,23 +41737,23 @@ function $0({
|
|
|
41739
41737
|
Ze,
|
|
41740
41738
|
en
|
|
41741
41739
|
]);
|
|
41742
|
-
|
|
41740
|
+
D.current = Tt;
|
|
41743
41741
|
const It = ye(() => {
|
|
41744
41742
|
re.current = null, N.current = !1, w.current !== null && (window.clearInterval(w.current), w.current = null), I.current !== null && (window.clearTimeout(I.current), I.current = null);
|
|
41745
41743
|
}, []), Xt = ye((x) => {
|
|
41746
41744
|
w.current !== null && window.clearInterval(w.current);
|
|
41747
41745
|
const Ce = N.current ? c0 : s0;
|
|
41748
41746
|
w.current = window.setInterval(() => {
|
|
41749
|
-
|
|
41747
|
+
D.current(x);
|
|
41750
41748
|
}, Ce);
|
|
41751
41749
|
}, []), Dt = ye((x) => {
|
|
41752
|
-
re.current !== x && (It(), re.current = x, N.current = !1,
|
|
41750
|
+
re.current !== x && (It(), re.current = x, N.current = !1, D.current(x), Xt(x), I.current = window.setTimeout(() => {
|
|
41753
41751
|
I.current = null, re.current === x && (N.current = !0, Xt(x));
|
|
41754
41752
|
}, l0));
|
|
41755
41753
|
}, [It, Xt]), Ct = ye(() => {
|
|
41756
41754
|
const x = T.current;
|
|
41757
41755
|
if (!x) return;
|
|
41758
|
-
const Ce = H == null ? void 0 : H.url, Me = Ce ?
|
|
41756
|
+
const Ce = H == null ? void 0 : H.url, Me = Ce ? G.current.get(Ce) : void 0;
|
|
41759
41757
|
if (Me != null && Me.width && (Me != null && Me.height)) {
|
|
41760
41758
|
ae(Ba(x, Me.width, Me.height));
|
|
41761
41759
|
return;
|
|
@@ -41804,7 +41802,7 @@ function $0({
|
|
|
41804
41802
|
!(ze != null && ze.url) || x.has(ze.url) || (x.add(ze.url), Ce.push(ze));
|
|
41805
41803
|
};
|
|
41806
41804
|
t.forEach(Me), d.forEach((ze) => ze.items.forEach(Me)), Ce.forEach((ze) => {
|
|
41807
|
-
|
|
41805
|
+
G.current.has(ze.url) || f0(ze, Ke);
|
|
41808
41806
|
});
|
|
41809
41807
|
}, [t, d, Ke]), Ae(() => {
|
|
41810
41808
|
if (Y !== "opening" || !de) return;
|
|
@@ -41828,9 +41826,9 @@ function $0({
|
|
|
41828
41826
|
}, [De]), Mt(() => {
|
|
41829
41827
|
He.current === n && pe.current === (H == null ? void 0 : H.url) || (De(), X.current = null, Le(null), me(null), Te(null), fe(0), U(0), Ze(!1), te(!1), le(!1), C.current = 0, O.current = 0, v.current = "none", k.current = !1, M.current = null, R.current = !1, $.current = null, it(), He.current = n, pe.current = H == null ? void 0 : H.url);
|
|
41830
41828
|
}, [n, H == null ? void 0 : H.url, Ze, De, it]), Mt(() => {
|
|
41831
|
-
const x =
|
|
41832
|
-
x !== null && (
|
|
41833
|
-
|
|
41829
|
+
const x = V.current;
|
|
41830
|
+
x !== null && (V.current = null, requestAnimationFrame(() => {
|
|
41831
|
+
D.current(x);
|
|
41834
41832
|
}));
|
|
41835
41833
|
}, [n, u, H == null ? void 0 : H.url]), Mt(() => {
|
|
41836
41834
|
if (Y === "opening") {
|
|
@@ -41954,7 +41952,7 @@ function $0({
|
|
|
41954
41952
|
}
|
|
41955
41953
|
De(), Ze(!1);
|
|
41956
41954
|
}
|
|
41957
|
-
}, [De, Ze, At]), je = Y === "closing" ? xe ?? f : f, ct = je && de && (Y === "opening" || jt) ? d0(je, de) : void 0, xt = Ve && H ? gt(H, "center") : Ne > 0 ? `translateY(${Ne}px)` : ct, St = de ? sr(de, S) : null, Wt = !!(je && de), vt = Wt && (Y === "closing" || Y === "open" &&
|
|
41955
|
+
}, [De, Ze, At]), je = Y === "closing" ? xe ?? f : f, ct = je && de && (Y === "opening" || jt) ? d0(je, de) : void 0, xt = Ve && H ? gt(H, "center") : Ne > 0 ? `translateY(${Ne}px)` : ct, St = de ? sr(de, S) : null, Wt = !!(je && de), vt = Wt && (Y === "closing" || Y === "open" && z), Kt = {
|
|
41958
41956
|
position: "absolute",
|
|
41959
41957
|
top: St == null ? void 0 : St.top,
|
|
41960
41958
|
left: St == null ? void 0 : St.left,
|
|
@@ -42353,9 +42351,9 @@ function k0({
|
|
|
42353
42351
|
layoutId: r,
|
|
42354
42352
|
portalId: a
|
|
42355
42353
|
}) {
|
|
42356
|
-
const { prefix: c } = cn(), s = Ue(() => L0(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", y = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, f = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = F(f, n ?? !1), g = `max(${m}, ${C0}px)`, { objectFitMode: p, imageStyle: b } = E0(e), L = M0(e, n), T =
|
|
42357
|
-
!ue ||
|
|
42358
|
-
}, [
|
|
42354
|
+
const { prefix: c } = cn(), s = Ue(() => L0(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", y = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, f = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, m = F(f, n ?? !1), g = `max(${m}, ${C0}px)`, { objectFitMode: p, imageStyle: b } = E0(e), L = M0(e, n), T = B(null), [$, G] = Z(!1), [E, j] = Z([]), [M, C] = Z(0), [O, v] = Z(0), [k, R] = Z(null), [J, A] = Z({ title1: "", title2: "", title3: "" }), X = (!n || i) && !$, V = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, D = V.sizeType ?? "none", re = X && D !== "none" ? `${c}-item-image-hover-${D}` : void 0, w = (V.value ?? 120) / 100, I = ye((ue) => {
|
|
42355
|
+
!ue || D !== "scale" || (ue.style.transformOrigin = Im(ue));
|
|
42356
|
+
}, [D]), N = ye((ue) => {
|
|
42359
42357
|
if (ue) {
|
|
42360
42358
|
if (p === "contain") {
|
|
42361
42359
|
const U = R0(ue);
|
|
@@ -42379,16 +42377,16 @@ function k0({
|
|
|
42379
42377
|
const ne = se.findIndex((We) => We.gridIndex === ue);
|
|
42380
42378
|
if (ne < 0) return;
|
|
42381
42379
|
const Q = se[ne];
|
|
42382
|
-
v(ne),
|
|
42380
|
+
v(ne), j(Q.items), C(0), A(Q.entry), R(U ?? null), G(!0);
|
|
42383
42381
|
}, Y = ye(() => {
|
|
42384
|
-
|
|
42382
|
+
G(!1), R(null);
|
|
42385
42383
|
}, []), Se = ye(() => {
|
|
42386
42384
|
const ue = se[O];
|
|
42387
42385
|
return !ue || !T.current ? k : u0(T.current, ue.gridIndex, p) ?? k;
|
|
42388
42386
|
}, [se, O, k, p]), Ne = ye((ue) => {
|
|
42389
42387
|
if (se.length > 1) {
|
|
42390
42388
|
const U = se.length, ne = (O + ue + U) % U, Q = se[ne];
|
|
42391
|
-
v(ne),
|
|
42389
|
+
v(ne), j(Q.items), C(0), A(Q.entry);
|
|
42392
42390
|
return;
|
|
42393
42391
|
}
|
|
42394
42392
|
C((U) => (U + ue + E.length) % E.length);
|
|
@@ -42400,9 +42398,9 @@ function k0({
|
|
|
42400
42398
|
document.body.style.overflow = ue;
|
|
42401
42399
|
};
|
|
42402
42400
|
}, [$]), Ae(() => {
|
|
42403
|
-
!n || o || i ||
|
|
42401
|
+
!n || o || i || G(!1);
|
|
42404
42402
|
}, [n, o, i]), Ae(() => {
|
|
42405
|
-
((e == null ? void 0 : e.lightbox) ?? "on") === "off" &&
|
|
42403
|
+
((e == null ? void 0 : e.lightbox) ?? "on") === "off" && G(!1);
|
|
42406
42404
|
}, [e == null ? void 0 : e.lightbox]), /* @__PURE__ */ K(lt, { children: [
|
|
42407
42405
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: s } }),
|
|
42408
42406
|
/* @__PURE__ */ l(v0, { mediaList: P }),
|
|
@@ -44107,13 +44105,13 @@ function tb(e, t) {
|
|
|
44107
44105
|
`;
|
|
44108
44106
|
}
|
|
44109
44107
|
function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
|
|
44110
|
-
const { prefix: r } = cn(), a = Y0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? Hs, u = d.sizeType ?? "drag", y = d.value ?? Hs.value, f = (e == null ? void 0 : e.direction) ?? "horizontal", m = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", p = (e == null ? void 0 : e.navSize) ?? "m", b = X0[p], L = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = ($e) => F($e * L, n), $ = (e == null ? void 0 : e.show) ?? "always",
|
|
44108
|
+
const { prefix: r } = cn(), a = Y0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? Hs, u = d.sizeType ?? "drag", y = d.value ?? Hs.value, f = (e == null ? void 0 : e.direction) ?? "horizontal", m = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", p = (e == null ? void 0 : e.navSize) ?? "m", b = X0[p], L = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = ($e) => F($e * L, n), $ = (e == null ? void 0 : e.show) ?? "always", G = (e == null ? void 0 : e.controls) ?? null, E = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, j = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, M = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, C = (e == null ? void 0 : e.controlsColor) ?? _s.color, O = (e == null ? void 0 : e.controlsHoverColor) ?? _s.hover, v = (e == null ? void 0 : e.navColor) ?? fo.colors.inactive, k = (e == null ? void 0 : e.navPaginationColor) ?? fo.colors.pagination, R = (e == null ? void 0 : e.navBackgroundColor) ?? fo.colors.background, J = (e == null ? void 0 : e.linkColor) ?? Ca.linkColor, A = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, X = f === "horizontal", V = u === "click", D = u === "drag", re = u === "auto" && (!n || !!i), w = !n, I = m === "slide", N = g === "classic", de = $ !== "never", ae = $ === "on hover", S = F(E, n), se = {
|
|
44111
44109
|
width: S,
|
|
44112
44110
|
height: S,
|
|
44113
44111
|
maxWidth: S
|
|
44114
|
-
}, P = I && s > 1, [ie, Y] = Z(0), [Se, Ne] = Z(P ? 1 : 0), [fe, ue] = Z(!1), [U, ne] = Z(!1), [Q, We] = Z(!1), [Le, _e] = Z(0), [me, be] = Z(!1), [Te,
|
|
44112
|
+
}, P = I && s > 1, [ie, Y] = Z(0), [Se, Ne] = Z(P ? 1 : 0), [fe, ue] = Z(!1), [U, ne] = Z(!1), [Q, We] = Z(!1), [Le, _e] = Z(0), [me, be] = Z(!1), [Te, z] = Z(!1), ce = B(!1), xe = B(Se);
|
|
44115
44113
|
xe.current = Se;
|
|
44116
|
-
const we =
|
|
44114
|
+
const we = B(null), Fe = B(0), Re = B(null), _ = B(null), ve = B(null), le = B(null), W = ye(($e) => {
|
|
44117
44115
|
ce.current = $e, ue($e);
|
|
44118
44116
|
}, []), te = ye(($e) => {
|
|
44119
44117
|
if (s < 2 || $e === 0) return;
|
|
@@ -44186,7 +44184,7 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44186
44184
|
cancelAnimationFrame(Oe), cancelAnimationFrame($e);
|
|
44187
44185
|
};
|
|
44188
44186
|
}, [te, W, U]);
|
|
44189
|
-
const H = `${P}:${s}`, Je =
|
|
44187
|
+
const H = `${P}:${s}`, Je = B(H);
|
|
44190
44188
|
Ae(() => {
|
|
44191
44189
|
if (Je.current === H) return;
|
|
44192
44190
|
Je.current = H;
|
|
@@ -44231,7 +44229,7 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44231
44229
|
}, [Ve]);
|
|
44232
44230
|
const ft = ($e) => {
|
|
44233
44231
|
const Oe = Re.current;
|
|
44234
|
-
if (!
|
|
44232
|
+
if (!D || s < 2 || !Oe || $e.pointerType === "mouse" && $e.button !== 0) return;
|
|
44235
44233
|
we.current = null, Fe.current = 0, ce.current && W(!1);
|
|
44236
44234
|
let Ge = 0;
|
|
44237
44235
|
const et = _.current;
|
|
@@ -44286,8 +44284,8 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44286
44284
|
[`${r}-transition-reveal`]: m === "reveal",
|
|
44287
44285
|
[`${r}-transition-reveal-vertical`]: m === "reveal" && !X
|
|
44288
44286
|
}),
|
|
44289
|
-
onMouseEnter: () =>
|
|
44290
|
-
onMouseLeave: () =>
|
|
44287
|
+
onMouseEnter: () => z(!0),
|
|
44288
|
+
onMouseLeave: () => z(!1),
|
|
44291
44289
|
children: [
|
|
44292
44290
|
/* @__PURE__ */ K(
|
|
44293
44291
|
"div",
|
|
@@ -44302,8 +44300,8 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44302
44300
|
{
|
|
44303
44301
|
ref: Re,
|
|
44304
44302
|
className: yt(`${r}-track`, {
|
|
44305
|
-
[`${r}-track-draggable`]:
|
|
44306
|
-
[`${r}-track-draggable-vertical`]:
|
|
44303
|
+
[`${r}-track-draggable`]: D,
|
|
44304
|
+
[`${r}-track-draggable-vertical`]: D && !X
|
|
44307
44305
|
}),
|
|
44308
44306
|
onPointerDown: ft,
|
|
44309
44307
|
onPointerMove: st,
|
|
@@ -44375,20 +44373,20 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44375
44373
|
},
|
|
44376
44374
|
className: `${r}-arrow-inner`,
|
|
44377
44375
|
style: {
|
|
44378
|
-
transform: `translate(${F(
|
|
44376
|
+
transform: `translate(${F(j, n)}, ${F(M * (X ? 1 : -1), n)}) rotate(${X ? "0deg" : "90deg"})`
|
|
44379
44377
|
},
|
|
44380
44378
|
children: [
|
|
44381
|
-
|
|
44379
|
+
G && /* @__PURE__ */ l(
|
|
44382
44380
|
gn,
|
|
44383
44381
|
{
|
|
44384
|
-
url:
|
|
44382
|
+
url: G,
|
|
44385
44383
|
fill: C,
|
|
44386
44384
|
hoverFill: O,
|
|
44387
44385
|
className: yt(`${r}-arrow-img`, `${r}-mirror`),
|
|
44388
44386
|
style: se
|
|
44389
44387
|
}
|
|
44390
44388
|
),
|
|
44391
|
-
!
|
|
44389
|
+
!G && /* @__PURE__ */ l(
|
|
44392
44390
|
Ns,
|
|
44393
44391
|
{
|
|
44394
44392
|
color: C,
|
|
@@ -44421,27 +44419,27 @@ function nb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44421
44419
|
$e.stopPropagation(), He(1);
|
|
44422
44420
|
},
|
|
44423
44421
|
style: {
|
|
44424
|
-
transform: `translate(${F(
|
|
44422
|
+
transform: `translate(${F(j * (X ? -1 : 1), n)}, ${F(M, n)}) rotate(${X ? "0deg" : "90deg"})`
|
|
44425
44423
|
},
|
|
44426
44424
|
children: [
|
|
44427
|
-
|
|
44425
|
+
G && /* @__PURE__ */ l(
|
|
44428
44426
|
gn,
|
|
44429
44427
|
{
|
|
44430
|
-
url:
|
|
44428
|
+
url: G,
|
|
44431
44429
|
fill: C,
|
|
44432
44430
|
hoverFill: O,
|
|
44433
44431
|
className: `${r}-arrow-img`,
|
|
44434
44432
|
style: se
|
|
44435
44433
|
}
|
|
44436
44434
|
),
|
|
44437
|
-
!
|
|
44435
|
+
!G && /* @__PURE__ */ l(Ns, { color: C, className: yt(`${r}-arrow-icon`, `${r}-arrow-img`) })
|
|
44438
44436
|
]
|
|
44439
44437
|
}
|
|
44440
44438
|
)
|
|
44441
44439
|
}
|
|
44442
44440
|
)
|
|
44443
44441
|
] }),
|
|
44444
|
-
|
|
44442
|
+
V && /* @__PURE__ */ l(
|
|
44445
44443
|
"div",
|
|
44446
44444
|
{
|
|
44447
44445
|
className: `${r}-click-overlay`,
|
|
@@ -46568,8 +46566,8 @@ function Tb({
|
|
|
46568
46566
|
counterStyle: d,
|
|
46569
46567
|
backgroundColor: u
|
|
46570
46568
|
}) {
|
|
46571
|
-
const y = i === "cover", f =
|
|
46572
|
-
|
|
46569
|
+
const y = i === "cover", f = B(null), m = B(null), g = B(null), p = B(0), b = B(0), L = B("none"), T = B(!1), $ = B(!1), G = B(!1), E = B(null), [j, M] = Z(null), [C, O] = Z("opening"), [v, k] = Z(0), [R, J] = Z(0), [A, X] = Z(!1), [V, D] = Z(!1), [re, w] = Z(!1), I = B(n), N = t[n], de = N ? Va(N) : !1, ae = R !== 0 || A, S = ye((me) => {
|
|
46570
|
+
G.current = me, X(me);
|
|
46573
46571
|
}, []), se = ye(() => {
|
|
46574
46572
|
E.current !== null && (window.clearTimeout(E.current), E.current = null);
|
|
46575
46573
|
}, []), P = ye(() => {
|
|
@@ -46579,10 +46577,10 @@ function Tb({
|
|
|
46579
46577
|
}, [se, S]), ie = ye(() => {
|
|
46580
46578
|
const me = f.current, be = m.current;
|
|
46581
46579
|
if (!me) return;
|
|
46582
|
-
const Te = me.getBoundingClientRect(),
|
|
46583
|
-
if (!
|
|
46580
|
+
const Te = me.getBoundingClientRect(), z = Te.width, ce = Te.height;
|
|
46581
|
+
if (!z || !ce) return;
|
|
46584
46582
|
if (i === "cover") {
|
|
46585
|
-
M({ width:
|
|
46583
|
+
M({ width: z, height: ce, left: Te.left, top: Te.top });
|
|
46586
46584
|
return;
|
|
46587
46585
|
}
|
|
46588
46586
|
if (!be) {
|
|
@@ -46594,13 +46592,13 @@ function Tb({
|
|
|
46594
46592
|
M(ur(me));
|
|
46595
46593
|
return;
|
|
46596
46594
|
}
|
|
46597
|
-
const Fe = xe / we, Re =
|
|
46595
|
+
const Fe = xe / we, Re = z / ce;
|
|
46598
46596
|
if (Fe > Re) {
|
|
46599
|
-
const _ =
|
|
46600
|
-
M({ width:
|
|
46597
|
+
const _ = z / Fe;
|
|
46598
|
+
M({ width: z, height: _, left: Te.left, top: Te.top + (ce - _) / 2 });
|
|
46601
46599
|
} else {
|
|
46602
46600
|
const _ = ce * Fe;
|
|
46603
|
-
M({ width: _, height: ce, left: Te.left + (
|
|
46601
|
+
M({ width: _, height: ce, left: Te.left + (z - _) / 2, top: Te.top });
|
|
46604
46602
|
}
|
|
46605
46603
|
}, [i]);
|
|
46606
46604
|
Ae(() => {
|
|
@@ -46610,8 +46608,8 @@ function Tb({
|
|
|
46610
46608
|
const be = new ResizeObserver(() => ie());
|
|
46611
46609
|
return be.observe(me), () => be.disconnect();
|
|
46612
46610
|
}, [ie, n]), Ae(() => {
|
|
46613
|
-
C === "opening" &&
|
|
46614
|
-
}, [C,
|
|
46611
|
+
C === "opening" && j && O("open");
|
|
46612
|
+
}, [C, j]), Ae(() => {
|
|
46615
46613
|
if (C !== "closing") return;
|
|
46616
46614
|
const me = setTimeout(() => r(), _n);
|
|
46617
46615
|
return () => clearTimeout(me);
|
|
@@ -46619,7 +46617,7 @@ function Tb({
|
|
|
46619
46617
|
se();
|
|
46620
46618
|
}, [se]), Mt(() => {
|
|
46621
46619
|
if (I.current === n) return;
|
|
46622
|
-
se(), k(0), J(0), S(!1), w(!1),
|
|
46620
|
+
se(), k(0), J(0), S(!1), w(!1), D(!1), p.current = 0, b.current = 0, L.current = "none", T.current = !1, g.current = null, $.current = !1;
|
|
46623
46621
|
const me = f.current;
|
|
46624
46622
|
me && M(ur(me)), I.current = n;
|
|
46625
46623
|
}, [n, S, se]), Ae(() => {
|
|
@@ -46631,22 +46629,22 @@ function Tb({
|
|
|
46631
46629
|
be(), me = (Re) => {
|
|
46632
46630
|
Re.stopPropagation(), Re.preventDefault(), be();
|
|
46633
46631
|
}, document.addEventListener("click", me, !0);
|
|
46634
|
-
},
|
|
46635
|
-
se(),
|
|
46632
|
+
}, z = (Re) => {
|
|
46633
|
+
se(), G.current = !1, X(!1), J(0), D(!1), T.current = !1, b.current = 0, L.current = "none";
|
|
46636
46634
|
const _ = f.current;
|
|
46637
46635
|
_ && M(ur(_)), Re < 0 ? c() : a();
|
|
46638
46636
|
}, ce = (Re) => {
|
|
46639
46637
|
if (Math.abs(Re) > ub && t.length > 1) {
|
|
46640
|
-
|
|
46638
|
+
z(Re);
|
|
46641
46639
|
return;
|
|
46642
46640
|
}
|
|
46643
46641
|
S(!0), J(0), P();
|
|
46644
46642
|
}, xe = (Re) => {
|
|
46645
|
-
if (Re.touches.length !== 1 ||
|
|
46643
|
+
if (Re.touches.length !== 1 || G.current) return;
|
|
46646
46644
|
const _ = Re.touches[0];
|
|
46647
46645
|
$.current = !0, g.current = { x: _.clientX, y: _.clientY }, L.current = "none", b.current = 0, T.current = !1;
|
|
46648
46646
|
}, we = (Re) => {
|
|
46649
|
-
if (!g.current || Re.touches.length !== 1 ||
|
|
46647
|
+
if (!g.current || Re.touches.length !== 1 || G.current) return;
|
|
46650
46648
|
const _ = Re.touches[0], ve = _.clientX - g.current.x, le = _.clientY - g.current.y;
|
|
46651
46649
|
if (L.current === "none") {
|
|
46652
46650
|
if (Math.abs(ve) < 10 && Math.abs(le) < 10) return;
|
|
@@ -46659,10 +46657,10 @@ function Tb({
|
|
|
46659
46657
|
return;
|
|
46660
46658
|
}
|
|
46661
46659
|
if (L.current === "horizontal") {
|
|
46662
|
-
T.current = !0,
|
|
46660
|
+
T.current = !0, D(!0), b.current = ve, J(ve), Re.preventDefault();
|
|
46663
46661
|
return;
|
|
46664
46662
|
}
|
|
46665
|
-
L.current === "vertical" && (T.current = !0,
|
|
46663
|
+
L.current === "vertical" && (T.current = !0, D(!0), p.current = le, k(le), Re.preventDefault());
|
|
46666
46664
|
}, Fe = () => {
|
|
46667
46665
|
if (!g.current) return;
|
|
46668
46666
|
const Re = L.current, _ = T.current;
|
|
@@ -46675,7 +46673,7 @@ function Tb({
|
|
|
46675
46673
|
} else
|
|
46676
46674
|
p.current = 0, k(0), Te();
|
|
46677
46675
|
else Re === "horizontal" && Math.abs(b.current) > 0 && (ce(b.current), Te());
|
|
46678
|
-
g.current = null, L.current = "none", b.current = 0, T.current = !1,
|
|
46676
|
+
g.current = null, L.current = "none", b.current = 0, T.current = !1, D(!1);
|
|
46679
46677
|
};
|
|
46680
46678
|
return document.addEventListener("touchstart", xe, { passive: !0 }), document.addEventListener("touchmove", we, { passive: !1 }), document.addEventListener("touchend", Fe), document.addEventListener("touchcancel", Fe), () => {
|
|
46681
46679
|
document.removeEventListener("touchstart", xe), document.removeEventListener("touchmove", we), document.removeEventListener("touchend", Fe), document.removeEventListener("touchcancel", Fe), be();
|
|
@@ -46694,8 +46692,8 @@ function Tb({
|
|
|
46694
46692
|
return;
|
|
46695
46693
|
}
|
|
46696
46694
|
if (t.length <= 1) return;
|
|
46697
|
-
const be = me.currentTarget.getBoundingClientRect(), Te = me.clientY - be.top,
|
|
46698
|
-
if (!(Te > be.height -
|
|
46695
|
+
const be = me.currentTarget.getBoundingClientRect(), Te = me.clientY - be.top, z = Math.min(52, be.height * 0.2);
|
|
46696
|
+
if (!(Te > be.height - z)) {
|
|
46699
46697
|
if (me.clientX - be.left < be.width / 2) {
|
|
46700
46698
|
a();
|
|
46701
46699
|
return;
|
|
@@ -46704,32 +46702,32 @@ function Tb({
|
|
|
46704
46702
|
}
|
|
46705
46703
|
}, ne = (me) => {
|
|
46706
46704
|
if (t.length <= 1) return;
|
|
46707
|
-
const be = me.currentTarget.getBoundingClientRect(), Te = me.clientX - be.left,
|
|
46708
|
-
if (
|
|
46705
|
+
const be = me.currentTarget.getBoundingClientRect(), Te = me.clientX - be.left, z = me.clientY - be.top, ce = Math.min(52, be.height * 0.2);
|
|
46706
|
+
if (z > be.height - ce) {
|
|
46709
46707
|
me.currentTarget.style.cursor = "default";
|
|
46710
46708
|
return;
|
|
46711
46709
|
}
|
|
46712
46710
|
me.currentTarget.style.cursor = Te < be.width / 2 ? "w-resize" : "e-resize";
|
|
46713
46711
|
}, Q = ye((me) => {
|
|
46714
|
-
me.propertyName !== "transform" || !
|
|
46712
|
+
me.propertyName !== "transform" || !G.current || (se(), S(!1));
|
|
46715
46713
|
}, [se, S]), We = ae ? `translateX(${R}px)` : v > 0 ? `translateY(${v}px)` : void 0, Le = {
|
|
46716
46714
|
position: "fixed",
|
|
46717
|
-
top:
|
|
46718
|
-
left:
|
|
46719
|
-
width:
|
|
46720
|
-
height:
|
|
46715
|
+
top: j == null ? void 0 : j.top,
|
|
46716
|
+
left: j == null ? void 0 : j.left,
|
|
46717
|
+
width: j == null ? void 0 : j.width,
|
|
46718
|
+
height: j == null ? void 0 : j.height,
|
|
46721
46719
|
objectFit: i === "cover" ? "cover" : "contain",
|
|
46722
46720
|
transform: We,
|
|
46723
46721
|
opacity: v > 0 ? ue : C === "opening" || Ne ? 0 : 1,
|
|
46724
|
-
transition:
|
|
46722
|
+
transition: V && !A ? "none" : A ? `transform ${_n}ms ${yi}` : re ? `transform ${_n}ms ${yi}, opacity ${_n}ms ${yi}` : C === "opening" || Ne ? `opacity ${_n}ms ${yi}` : "none",
|
|
46725
46723
|
pointerEvents: de && Se && !ae ? "auto" : "none",
|
|
46726
46724
|
touchAction: de && Se ? "none" : void 0,
|
|
46727
46725
|
zIndex: 9998
|
|
46728
|
-
}, _e =
|
|
46726
|
+
}, _e = j ? {
|
|
46729
46727
|
position: "fixed",
|
|
46730
|
-
top:
|
|
46731
|
-
height:
|
|
46732
|
-
width:
|
|
46728
|
+
top: j.top,
|
|
46729
|
+
height: j.height,
|
|
46730
|
+
width: j.width / 2,
|
|
46733
46731
|
zIndex: 9999
|
|
46734
46732
|
} : null;
|
|
46735
46733
|
return /* @__PURE__ */ K(
|
|
@@ -46752,7 +46750,7 @@ function Tb({
|
|
|
46752
46750
|
inset: 0,
|
|
46753
46751
|
background: u,
|
|
46754
46752
|
opacity: Se ? fe : 0,
|
|
46755
|
-
transition:
|
|
46753
|
+
transition: V ? "none" : `opacity ${_n}ms ${yi}`,
|
|
46756
46754
|
pointerEvents: "none"
|
|
46757
46755
|
}
|
|
46758
46756
|
}
|
|
@@ -46833,7 +46831,7 @@ function Tb({
|
|
|
46833
46831
|
] })
|
|
46834
46832
|
}
|
|
46835
46833
|
),
|
|
46836
|
-
|
|
46834
|
+
j && N && (de ? /* @__PURE__ */ l(
|
|
46837
46835
|
Cb,
|
|
46838
46836
|
{
|
|
46839
46837
|
src: N.url,
|
|
@@ -46864,7 +46862,7 @@ function Tb({
|
|
|
46864
46862
|
{
|
|
46865
46863
|
style: {
|
|
46866
46864
|
..._e,
|
|
46867
|
-
left:
|
|
46865
|
+
left: j.left,
|
|
46868
46866
|
cursor: "w-resize",
|
|
46869
46867
|
pointerEvents: ae ? "none" : "auto"
|
|
46870
46868
|
},
|
|
@@ -46882,7 +46880,7 @@ function Tb({
|
|
|
46882
46880
|
{
|
|
46883
46881
|
style: {
|
|
46884
46882
|
..._e,
|
|
46885
|
-
left:
|
|
46883
|
+
left: j.left + j.width / 2,
|
|
46886
46884
|
cursor: "e-resize",
|
|
46887
46885
|
pointerEvents: ae ? "none" : "auto"
|
|
46888
46886
|
},
|
|
@@ -46938,7 +46936,7 @@ function zs({
|
|
|
46938
46936
|
onClick: u ? (C) => {
|
|
46939
46937
|
C.stopPropagation(), u();
|
|
46940
46938
|
} : void 0
|
|
46941
|
-
},
|
|
46939
|
+
}, j = Math.max(c, vi), M = Va(t) ? /* @__PURE__ */ l(
|
|
46942
46940
|
"video",
|
|
46943
46941
|
{
|
|
46944
46942
|
...E,
|
|
@@ -46978,7 +46976,7 @@ function zs({
|
|
|
46978
46976
|
bottom: 0,
|
|
46979
46977
|
left: 0,
|
|
46980
46978
|
width: "100%",
|
|
46981
|
-
height: g(
|
|
46979
|
+
height: g(j)
|
|
46982
46980
|
}
|
|
46983
46981
|
}
|
|
46984
46982
|
)
|
|
@@ -47132,7 +47130,7 @@ function Ta({
|
|
|
47132
47130
|
showTextBoxOutline: s = !1,
|
|
47133
47131
|
topPaddingControl: d
|
|
47134
47132
|
}) {
|
|
47135
|
-
const u =
|
|
47133
|
+
const u = B(null), [y, f] = Z(0), m = t ?? "", g = n === "left" || n === "center" || n === "right";
|
|
47136
47134
|
return Mt(() => {
|
|
47137
47135
|
if (!g) return;
|
|
47138
47136
|
const p = u.current;
|
|
@@ -47215,7 +47213,7 @@ function Mb(e, t, n) {
|
|
|
47215
47213
|
}), { opacities: i, dominantIndex: o };
|
|
47216
47214
|
}
|
|
47217
47215
|
function Eb(e, t, n) {
|
|
47218
|
-
const i =
|
|
47216
|
+
const i = B([]), [{ opacities: o, dominantIndex: r }, a] = Z(() => ({
|
|
47219
47217
|
opacities: Array.from({ length: e }, (s, d) => d === 0 ? 1 : 0),
|
|
47220
47218
|
dominantIndex: 0
|
|
47221
47219
|
}));
|
|
@@ -47243,7 +47241,7 @@ function Eb(e, t, n) {
|
|
|
47243
47241
|
}, opacities: o, dominantIndex: r };
|
|
47244
47242
|
}
|
|
47245
47243
|
function Ab(e, t) {
|
|
47246
|
-
const [n, i] = Z(e), o =
|
|
47244
|
+
const [n, i] = Z(e), o = B(e);
|
|
47247
47245
|
return Ae(() => {
|
|
47248
47246
|
if (!t) {
|
|
47249
47247
|
o.current = e, i(e);
|
|
@@ -47272,15 +47270,15 @@ function kb({
|
|
|
47272
47270
|
portalId: r
|
|
47273
47271
|
}) {
|
|
47274
47272
|
var at;
|
|
47275
|
-
const { prefix: a } = cn(), c = Ue(() => sb(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", y = (e == null ? void 0 : e.imgWidth) ?? Di, f = (e == null ? void 0 : e.titleWidth) ?? xb, m = wb(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? ab, p = (e == null ? void 0 : e.position) ?? "center", b = (e == null ? void 0 : e.titleTopPadding) ?? 0, L = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, $ = Ib(e == null ? void 0 : e.transition),
|
|
47273
|
+
const { prefix: a } = cn(), c = Ue(() => sb(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", y = (e == null ? void 0 : e.imgWidth) ?? Di, f = (e == null ? void 0 : e.titleWidth) ?? xb, m = wb(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? ab, p = (e == null ? void 0 : e.position) ?? "center", b = (e == null ? void 0 : e.titleTopPadding) ?? 0, L = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, $ = Ib(e == null ? void 0 : e.transition), G = (e == null ? void 0 : e.lightbox) ?? "on", E = u === "b", j = $ === "fade" || $ === "retype", { setTitleRef: M, dominantIndex: C } = Eb(s.length, j, p), O = ((at = s[C]) == null ? void 0 : at.title) ?? "", v = Ab(O, $ === "retype"), k = $ === "fade" || $ === "retype", R = $ === "retype" ? v : O, J = E ? void 0 : { width: F(y, n ?? !1) }, A = G === "on" && (!n || i || o), X = o ?? !1, V = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, D = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, re = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, w = (ut) => F(ut, n ?? !1), N = {
|
|
47276
47274
|
width: w(f)
|
|
47277
|
-
}, de = u === "a" ?
|
|
47275
|
+
}, de = u === "a" ? V : D, ae = E ? { width: "100%" } : {
|
|
47278
47276
|
width: `calc(100% - ${w(y)} - ${w(de)})`,
|
|
47279
47277
|
...u === "c" ? { marginLeft: "auto" } : {}
|
|
47280
|
-
}, S = Math.max(
|
|
47278
|
+
}, S = Math.max(V, vi), se = Math.max(D, vi), P = Math.max(re, vi), ie = Math.max(b, vi), Y = Math.max(L, vi), Se = Math.max(T, vi), Ne = Math.max(0, (d ?? 1) - (y ?? Di)), fe = u === "a" ? Math.max(0, (d ?? 1) - (y ?? Di) - V) : u === "c" ? Math.max(0, (d ?? 1) - (y ?? Di) - D) : u === "b" ? d ?? 1 : 1, ue = X && (u === "a" || u === "b" || u === "c") && p === "top", U = X && ((u === "a" || u === "b") && (p === "left" || p === "top") || u === "c" && (p === "left" || p === "top")), ne = X && ((u === "c" || u === "b") && p === "right" || u === "a" && p === "right"), Q = s.length > 1, We = E ? void 0 : w((u === "c" ? D : V) + (y ?? Di)), Le = u === "c" && We ? { left: We } : void 0, _e = u === "a" && We ? { right: We } : void 0, me = E ? { left: 0, width: "100%" } : u === "a" ? { right: w(V), width: w(y) } : { left: w(D), width: w(y) }, {
|
|
47281
47279
|
titleColor: be,
|
|
47282
47280
|
titleFontFamily: Te,
|
|
47283
|
-
titleFontSettings:
|
|
47281
|
+
titleFontSettings: z,
|
|
47284
47282
|
titleFontSize: ce,
|
|
47285
47283
|
titleLineHeight: xe,
|
|
47286
47284
|
titleLetterSpacing: we,
|
|
@@ -47298,8 +47296,8 @@ function kb({
|
|
|
47298
47296
|
} = e ?? {}, Ve = {
|
|
47299
47297
|
fontSettings: {
|
|
47300
47298
|
fontFamily: Te,
|
|
47301
|
-
fontWeight: (
|
|
47302
|
-
fontStyle: (
|
|
47299
|
+
fontWeight: (z == null ? void 0 : z.fontWeight) ?? 400,
|
|
47300
|
+
fontStyle: (z == null ? void 0 : z.fontStyle) ?? "normal"
|
|
47303
47301
|
},
|
|
47304
47302
|
fontSize: ce ?? 0.01,
|
|
47305
47303
|
lineHeight: xe,
|
|
@@ -47336,7 +47334,7 @@ function kb({
|
|
|
47336
47334
|
), oe = Li(a, {
|
|
47337
47335
|
titleColor: be ?? "#000000",
|
|
47338
47336
|
lightboxCounterColor: ve ?? "#DEDDDD"
|
|
47339
|
-
}, pb, mb), he =
|
|
47337
|
+
}, pb, mb), he = B(null), [Ee, Ye] = Z(!1), [nt, Ke] = Z([]), [pt, it] = Z(0), ke = ye((ut, gt) => {
|
|
47340
47338
|
A && (Ke(ut), it(gt), Ye(!0));
|
|
47341
47339
|
}, [A]), Ze = ye(() => {
|
|
47342
47340
|
Ye(!1);
|
|
@@ -47345,16 +47343,16 @@ function kb({
|
|
|
47345
47343
|
return gt && (ut["--cntrl-article-width"] = gt), ut;
|
|
47346
47344
|
}, [oe, Ee]);
|
|
47347
47345
|
return Ae(() => {
|
|
47348
|
-
if (!Ee ||
|
|
47346
|
+
if (!Ee || G !== "on" || typeof document > "u") return;
|
|
47349
47347
|
const ut = document.body.style.overflow;
|
|
47350
47348
|
return document.body.style.overflow = "hidden", () => {
|
|
47351
47349
|
document.body.style.overflow = ut;
|
|
47352
47350
|
};
|
|
47353
|
-
}, [Ee,
|
|
47351
|
+
}, [Ee, G]), Ae(() => {
|
|
47354
47352
|
!n || o || i || Ye(!1);
|
|
47355
47353
|
}, [n, o, i]), Ae(() => {
|
|
47356
|
-
|
|
47357
|
-
}, [
|
|
47354
|
+
G === "off" && Ye(!1);
|
|
47355
|
+
}, [G]), /* @__PURE__ */ K(lt, { children: [
|
|
47358
47356
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: c } }),
|
|
47359
47357
|
/* @__PURE__ */ l("div", { style: oe, children: /* @__PURE__ */ K(
|
|
47360
47358
|
"div",
|
|
@@ -47494,8 +47492,8 @@ function kb({
|
|
|
47494
47492
|
P: a,
|
|
47495
47493
|
layoutType: u,
|
|
47496
47494
|
galleryWidthStyle: J,
|
|
47497
|
-
galleryPaddingRight:
|
|
47498
|
-
galleryPaddingLeft:
|
|
47495
|
+
galleryPaddingRight: V,
|
|
47496
|
+
galleryPaddingLeft: D,
|
|
47499
47497
|
galleryPaddingRightWidth: S,
|
|
47500
47498
|
galleryPaddingLeftWidth: se,
|
|
47501
47499
|
galleryPaddingMaxFraction: Ne,
|
|
@@ -47531,7 +47529,7 @@ function kb({
|
|
|
47531
47529
|
]
|
|
47532
47530
|
}
|
|
47533
47531
|
) }),
|
|
47534
|
-
Ee &&
|
|
47532
|
+
Ee && G === "on" && typeof document < "u" && e && (() => {
|
|
47535
47533
|
const ut = (r ? document.getElementById(r) : null) ?? document.body;
|
|
47536
47534
|
return Ii(
|
|
47537
47535
|
/* @__PURE__ */ l("div", { style: De, "data-selection": "none", children: /* @__PURE__ */ l(
|
|
@@ -50424,24 +50422,24 @@ function fx({
|
|
|
50424
50422
|
isEditor: n,
|
|
50425
50423
|
isPreviewMode: i
|
|
50426
50424
|
}) {
|
|
50427
|
-
const { prefix: o } = cn(), r =
|
|
50425
|
+
const { prefix: o } = cn(), r = B(null), a = Ia(
|
|
50428
50426
|
(e == null ? void 0 : e.width) ?? (e == null ? void 0 : e.spread) ?? (e == null ? void 0 : e.wrapperWidth),
|
|
50429
50427
|
Db
|
|
50430
|
-
), c = Ia(e == null ? void 0 : e.imageWidth, zb), s = Ia(e == null ? void 0 : e.turnHeight, Bb), d = Us(e == null ? void 0 : e.itemsPerTurn, Vb, 3, 40), u = Us(e == null ? void 0 : e.turns, jb, 1, 30), y = Math.min(Ub, Math.max(0, Gb)), f = Math.min(1, Math.max(0, qb)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? dd), g = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", p = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", b = (e == null ? void 0 : e.cornerRadius) ?? 0, L = (e == null ? void 0 : e.blur) !== "off", T = Ue(() => ex(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), $ = T.display === "cover",
|
|
50428
|
+
), c = Ia(e == null ? void 0 : e.imageWidth, zb), s = Ia(e == null ? void 0 : e.turnHeight, Bb), d = Us(e == null ? void 0 : e.itemsPerTurn, Vb, 3, 40), u = Us(e == null ? void 0 : e.turns, jb, 1, 30), y = Math.min(Ub, Math.max(0, Gb)), f = Math.min(1, Math.max(0, qb)), m = Math.max(0, (e == null ? void 0 : e.speed) ?? dd), g = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", p = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", b = (e == null ? void 0 : e.cornerRadius) ?? 0, L = (e == null ? void 0 : e.blur) !== "off", T = Ue(() => ex(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), $ = T.display === "cover", G = (ae) => F(ae, n ?? !1), E = Ue(() => ix(y), [y]), j = Ue(
|
|
50431
50429
|
() => rx(a, c, $, f),
|
|
50432
50430
|
[a, c, $, f]
|
|
50433
50431
|
), M = Ue(
|
|
50434
|
-
() => Qb(o, dx(o,
|
|
50435
|
-
[o, a,
|
|
50432
|
+
() => Qb(o, dx(o, G, a, j, y, E, $, L)),
|
|
50433
|
+
[o, a, j, y, E, $, L, n]
|
|
50436
50434
|
), C = Ue(
|
|
50437
50435
|
() => (t ?? []).filter((ae) => {
|
|
50438
50436
|
var S;
|
|
50439
50437
|
return !!((S = ae.image) != null && S.url);
|
|
50440
50438
|
}),
|
|
50441
50439
|
[t]
|
|
50442
|
-
), O = s / d, v = c * tx(T), k = Math.min(Nb, u * d), R = Ob * d, J = k + R * 2, X = Math.max(0, u - 1) * s + (d - 1) * O,
|
|
50440
|
+
), O = s / d, v = c * tx(T), k = Math.min(Nb, u * d), R = Ob * d, J = k + R * 2, X = Math.max(0, u - 1) * s + (d - 1) * O, V = m > 0, D = p === "scroll" && V, re = p === "autoplay" && V && (n ? !!i : !0), [w, I] = Z(0);
|
|
50443
50441
|
Ae(() => {
|
|
50444
|
-
if (!
|
|
50442
|
+
if (!D) return;
|
|
50445
50443
|
const ae = r.current;
|
|
50446
50444
|
if (!ae) return;
|
|
50447
50445
|
const S = () => {
|
|
@@ -50453,11 +50451,11 @@ function fx({
|
|
|
50453
50451
|
return se.observe(ae), () => {
|
|
50454
50452
|
window.removeEventListener("scroll", S), window.removeEventListener("resize", S), se.disconnect();
|
|
50455
50453
|
};
|
|
50456
|
-
}, [
|
|
50457
|
-
const N =
|
|
50454
|
+
}, [D]);
|
|
50455
|
+
const N = D ? hx(w, m, g) : 0, de = V && p === "autoplay" ? 360 / (m * Hb) : 0;
|
|
50458
50456
|
return C.length === 0 ? /* @__PURE__ */ K(lt, { children: [
|
|
50459
50457
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: M } }),
|
|
50460
|
-
/* @__PURE__ */ l("div", { className: `${o}-wrapper`, style: { width:
|
|
50458
|
+
/* @__PURE__ */ l("div", { className: `${o}-wrapper`, style: { width: G(a), marginInline: "auto" } })
|
|
50461
50459
|
] }) : /* @__PURE__ */ K(lt, { children: [
|
|
50462
50460
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: M } }),
|
|
50463
50461
|
/* @__PURE__ */ l(
|
|
@@ -50466,16 +50464,16 @@ function fx({
|
|
|
50466
50464
|
ref: r,
|
|
50467
50465
|
className: `${o}-wrapper`,
|
|
50468
50466
|
style: {
|
|
50469
|
-
width:
|
|
50470
|
-
height:
|
|
50467
|
+
width: G(a),
|
|
50468
|
+
height: G(X),
|
|
50471
50469
|
marginInline: "auto"
|
|
50472
50470
|
},
|
|
50473
50471
|
children: Array.from({ length: J }, (ae, S) => {
|
|
50474
|
-
const se = S - R, ie = C[bd(se, C.length)].image, Y = $l(se, d), Se = ux(se, d), Ne =
|
|
50475
|
-
"--helix-base-w":
|
|
50476
|
-
...$ ? { "--helix-base-h":
|
|
50472
|
+
const se = S - R, ie = C[bd(se, C.length)].image, Y = $l(se, d), Se = ux(se, d), Ne = D ? xd(Se + N) : Se, fe = mx(se, d, s, O), ue = f === 0 ? 0 : (Xs(Y + 7.3) - 0.5) * f * O, U = $ ? 1 : 1 + (Xs(Y + 3.1) - 0.5) * 2 * ud * (0.35 + f), ne = Ne * Math.PI * 2, { offset: Q, scale: We } = md(y, E, ne), Le = c * U, _e = lx(Le, We), me = gd(a, j, Q), be = {
|
|
50473
|
+
"--helix-base-w": G(Le),
|
|
50474
|
+
...$ ? { "--helix-base-h": G(v) } : {}
|
|
50477
50475
|
}, Te = {
|
|
50478
|
-
top:
|
|
50476
|
+
top: G(fe + ue),
|
|
50479
50477
|
transform: "translateY(-50%)",
|
|
50480
50478
|
...be,
|
|
50481
50479
|
...re ? {
|
|
@@ -50483,20 +50481,20 @@ function fx({
|
|
|
50483
50481
|
animationDelay: gx(Se, de, g),
|
|
50484
50482
|
animationDirection: g === "left" ? "reverse" : "normal"
|
|
50485
50483
|
} : {
|
|
50486
|
-
left: ax(
|
|
50487
|
-
width:
|
|
50488
|
-
...$ ? { height:
|
|
50484
|
+
left: ax(G, me, _e),
|
|
50485
|
+
width: G(_e),
|
|
50486
|
+
...$ ? { height: G(v * We) } : {},
|
|
50489
50487
|
zIndex: hd(We),
|
|
50490
50488
|
opacity: yd(ne),
|
|
50491
50489
|
filter: vd(ne, L)
|
|
50492
50490
|
}
|
|
50493
|
-
},
|
|
50494
|
-
...
|
|
50491
|
+
}, z = b > 0 ? { borderRadius: G(b) } : {}, ce = $ ? {
|
|
50492
|
+
...z,
|
|
50495
50493
|
width: "100%",
|
|
50496
50494
|
height: "100%",
|
|
50497
50495
|
objectFit: "cover",
|
|
50498
50496
|
objectPosition: "center"
|
|
50499
|
-
} :
|
|
50497
|
+
} : z, xe = nx(ie) ? /* @__PURE__ */ l(
|
|
50500
50498
|
"video",
|
|
50501
50499
|
{
|
|
50502
50500
|
className: `${o}-media`,
|
|
@@ -50524,7 +50522,7 @@ function fx({
|
|
|
50524
50522
|
{
|
|
50525
50523
|
className: re ? `${o}-item` : `${o}-item ${o}-item-static`,
|
|
50526
50524
|
style: Te,
|
|
50527
|
-
children: $ ? /* @__PURE__ */ l("div", { className: `${o}-cover`, style:
|
|
50525
|
+
children: $ ? /* @__PURE__ */ l("div", { className: `${o}-cover`, style: z, children: xe }) : xe
|
|
50528
50526
|
},
|
|
50529
50527
|
`${u}-${d}-${se}`
|
|
50530
50528
|
);
|