@cntrl-site/components 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -399,8 +399,8 @@ function Pd(e, t, n) {
|
|
|
399
399
|
a.bind(w, "change", y), c.push([h, w]);
|
|
400
400
|
}
|
|
401
401
|
function y() {
|
|
402
|
-
var h = i.is(dr), C = n.direction, w = c.reduce(function(L,
|
|
403
|
-
return Yn(L,
|
|
402
|
+
var h = i.is(dr), C = n.direction, w = c.reduce(function(L, k) {
|
|
403
|
+
return Yn(L, k[1].matches ? k[0] : {});
|
|
404
404
|
}, {});
|
|
405
405
|
cl(n), S(w), n.destroy ? e.destroy(n.destroy === "completely") : h ? (d(!0), e.mount()) : C !== n.direction && e.refresh();
|
|
406
406
|
}
|
|
@@ -466,10 +466,10 @@ var Kd = 5, vl = 200, oc = "touchstart mousedown", Gr = "touchmove mousemove", q
|
|
|
466
466
|
function Ud(e, t, n) {
|
|
467
467
|
var i = Qt(e), o = i.on, r = i.bind, a = e.root, c = n.i18n, s = {}, d = [], p = [], y = [], v, S, h;
|
|
468
468
|
function C() {
|
|
469
|
-
$(), K(),
|
|
469
|
+
$(), K(), k();
|
|
470
470
|
}
|
|
471
471
|
function w() {
|
|
472
|
-
o(rn, L), o(rn, C), o(gn,
|
|
472
|
+
o(rn, L), o(rn, C), o(gn, k), r(document, oc + " keydown", function(T) {
|
|
473
473
|
h = T.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
@@ -481,11 +481,11 @@ function Ud(e, t, n) {
|
|
|
481
481
|
var b = ja.concat("style");
|
|
482
482
|
Vn(d), On(a, p), On(v, y), Fn([v, S], b), Fn(a, T ? b : ["style", wo]);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function k() {
|
|
485
485
|
On(a, p), On(v, y), p = H(jr), y = H(yl), Pn(a, p), Pn(v, y), ht(a, Cn, n.label), ht(a, Da, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function $() {
|
|
488
|
-
v =
|
|
488
|
+
v = R("." + yl), S = ko(v, "." + _d), co(v && S, "A track/list element is missing."), ir(d, Ls(S, "." + Rr + ":not(." + Ys + ")")), bi({
|
|
489
489
|
arrows: Ga,
|
|
490
490
|
pagination: Mr,
|
|
491
491
|
prev: Zs,
|
|
@@ -493,7 +493,7 @@ function Ud(e, t, n) {
|
|
|
493
493
|
bar: Od,
|
|
494
494
|
toggle: zd
|
|
495
495
|
}, function(T, b) {
|
|
496
|
-
s[b] =
|
|
496
|
+
s[b] = R("." + T);
|
|
497
497
|
}), vo(s, {
|
|
498
498
|
root: a,
|
|
499
499
|
track: v,
|
|
@@ -505,7 +505,7 @@ function Ud(e, t, n) {
|
|
|
505
505
|
var T = a.id || Ed(Ao), b = n.role;
|
|
506
506
|
a.id = T, v.id = v.id || T + "-track", S.id = S.id || T + "-list", !Rn(a, zn) && a.tagName !== "SECTION" && b && ht(a, zn, b), ht(a, wo, c.carousel), ht(S, zn, "presentation");
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function R(T) {
|
|
509
509
|
var b = Es(a, T);
|
|
510
510
|
return b && qd(b, "." + jr) === a ? b : void 0;
|
|
511
511
|
}
|
|
@@ -520,15 +520,15 @@ function Ud(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
var Hi = "slide", Qi = "loop", Fo = "fade";
|
|
522
522
|
function Xd(e, t, n, i) {
|
|
523
|
-
var o = Qt(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, p = e.options, y = p.isNavigation, v = p.updateOnMove, S = p.i18n, h = p.pagination, C = p.slideFocus, w = s.Direction.resolve, L = Rn(i, "style"),
|
|
523
|
+
var o = Qt(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, p = e.options, y = p.isNavigation, v = p.updateOnMove, S = p.i18n, h = p.pagination, C = p.slideFocus, w = s.Direction.resolve, L = Rn(i, "style"), k = Rn(i, Cn), $ = n > -1, K = ko(i, "." + Nd), R;
|
|
524
524
|
function H() {
|
|
525
|
-
$ || (i.id = d.id + "-slide" + Wa(t + 1), ht(i, zn, h ? "tabpanel" : "group"), ht(i, wo, S.slide), ht(i, Cn,
|
|
525
|
+
$ || (i.id = d.id + "-slide" + Wa(t + 1), ht(i, zn, h ? "tabpanel" : "group"), ht(i, wo, S.slide), ht(i, Cn, k || va(S.slideLabel, [t + 1, e.length]))), T();
|
|
526
526
|
}
|
|
527
527
|
function T() {
|
|
528
528
|
c(i, "click", Kt(a, _a, _)), c(i, "keydown", Kt(a, js, _)), r([Ji, Gs, Si], x), r(Ha, F), v && r(jn, g);
|
|
529
529
|
}
|
|
530
530
|
function b() {
|
|
531
|
-
|
|
531
|
+
R = !0, o.destroy(), On(i, jd), Fn(i, ja), ht(i, "style", L), ht(i, Cn, k || "");
|
|
532
532
|
}
|
|
533
533
|
function F() {
|
|
534
534
|
var P = e.splides.map(function(A) {
|
|
@@ -538,15 +538,15 @@ function Xd(e, t, n, i) {
|
|
|
538
538
|
ht(i, Cn, va(S.slideX, ($ ? n : t) + 1)), ht(i, Po, P), ht(i, zn, C ? "button" : ""), C && Fn(i, wo);
|
|
539
539
|
}
|
|
540
540
|
function g() {
|
|
541
|
-
|
|
541
|
+
R || x();
|
|
542
542
|
}
|
|
543
543
|
function x() {
|
|
544
|
-
if (!
|
|
544
|
+
if (!R) {
|
|
545
545
|
var P = e.index;
|
|
546
|
-
|
|
546
|
+
E(), z(), Hn(i, ec, t === P - 1), Hn(i, tc, t === P + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function E() {
|
|
550
550
|
var P = ce();
|
|
551
551
|
P !== dl(i, wi) && (Hn(i, wi, P), ht(i, Us, y && P || ""), a(P ? As : Ps, _));
|
|
552
552
|
}
|
|
@@ -594,73 +594,73 @@ function Yd(e, t, n) {
|
|
|
594
594
|
v(), o(rn, S), o(rn, v);
|
|
595
595
|
}
|
|
596
596
|
function v() {
|
|
597
|
-
s.forEach(function(x,
|
|
598
|
-
C(x,
|
|
597
|
+
s.forEach(function(x, E) {
|
|
598
|
+
C(x, E, -1);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function S() {
|
|
602
|
-
|
|
602
|
+
R(function(x) {
|
|
603
603
|
x.destroy();
|
|
604
604
|
}), Vn(p);
|
|
605
605
|
}
|
|
606
606
|
function h() {
|
|
607
|
-
|
|
607
|
+
R(function(x) {
|
|
608
608
|
x.update();
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
function C(x,
|
|
612
|
-
var q = Xd(e,
|
|
611
|
+
function C(x, E, z) {
|
|
612
|
+
var q = Xd(e, E, z, x);
|
|
613
613
|
q.mount(), p.push(q), p.sort(function(ce, Y) {
|
|
614
614
|
return ce.index - Y.index;
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function w(x) {
|
|
618
|
-
return x ? H(function(
|
|
619
|
-
return !
|
|
618
|
+
return x ? H(function(E) {
|
|
619
|
+
return !E.isClone;
|
|
620
620
|
}) : p;
|
|
621
621
|
}
|
|
622
622
|
function L(x) {
|
|
623
|
-
var
|
|
623
|
+
var E = t.Controller, z = E.toIndex(x), q = E.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return H(function(ce) {
|
|
625
625
|
return or(ce.index, z, z + q - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function k(x) {
|
|
629
629
|
return H(x)[0];
|
|
630
630
|
}
|
|
631
|
-
function $(x,
|
|
631
|
+
function $(x, E) {
|
|
632
632
|
Ln(x, function(z) {
|
|
633
633
|
if (ei(z) && (z = Rs(z)), Ts(z)) {
|
|
634
|
-
var q = s[
|
|
634
|
+
var q = s[E];
|
|
635
635
|
q ? Aa(z, q) : Mo(d, z), Pn(z, n.classes.slide), b(z, Kt(r, Ni));
|
|
636
636
|
}
|
|
637
637
|
}), r(rn);
|
|
638
638
|
}
|
|
639
639
|
function K(x) {
|
|
640
|
-
xi(H(x).map(function(
|
|
641
|
-
return
|
|
640
|
+
xi(H(x).map(function(E) {
|
|
641
|
+
return E.slide;
|
|
642
642
|
})), r(rn);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
w(
|
|
644
|
+
function R(x, E) {
|
|
645
|
+
w(E).forEach(x);
|
|
646
646
|
}
|
|
647
647
|
function H(x) {
|
|
648
|
-
return p.filter(Cs(x) ? x : function(
|
|
649
|
-
return ei(x) ? fo(
|
|
648
|
+
return p.filter(Cs(x) ? x : function(E) {
|
|
649
|
+
return ei(x) ? fo(E.slide, x) : ka(Eo(x), E.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
function T(x,
|
|
653
|
-
|
|
654
|
-
q.style(x,
|
|
652
|
+
function T(x, E, z) {
|
|
653
|
+
R(function(q) {
|
|
654
|
+
q.style(x, E, z);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
function b(x,
|
|
657
|
+
function b(x, E) {
|
|
658
658
|
var z = Pa(x, "img"), q = z.length;
|
|
659
659
|
q ? z.forEach(function(ce) {
|
|
660
660
|
a(ce, "load error", function() {
|
|
661
|
-
--q ||
|
|
661
|
+
--q || E();
|
|
662
662
|
});
|
|
663
|
-
}) :
|
|
663
|
+
}) : E();
|
|
664
664
|
}
|
|
665
665
|
function F(x) {
|
|
666
666
|
return x ? s.length : p.length;
|
|
@@ -675,10 +675,10 @@ function Yd(e, t, n) {
|
|
|
675
675
|
register: C,
|
|
676
676
|
get: w,
|
|
677
677
|
getIn: L,
|
|
678
|
-
getAt:
|
|
678
|
+
getAt: k,
|
|
679
679
|
add: $,
|
|
680
680
|
remove: K,
|
|
681
|
-
forEach:
|
|
681
|
+
forEach: R,
|
|
682
682
|
filter: H,
|
|
683
683
|
style: T,
|
|
684
684
|
getLength: F,
|
|
@@ -687,23 +687,23 @@ function Yd(e, t, n) {
|
|
|
687
687
|
}
|
|
688
688
|
function Zd(e, t, n) {
|
|
689
689
|
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = t.Slides, s = t.Direction.resolve, d = t.Elements, p = d.root, y = d.track, v = d.list, S = c.getAt, h = c.style, C, w, L;
|
|
690
|
-
function
|
|
690
|
+
function k() {
|
|
691
691
|
$(), r(window, "resize load", Ad(Kt(a, Ni))), o([gn, rn], $), o(Ni, K);
|
|
692
692
|
}
|
|
693
693
|
function $() {
|
|
694
|
-
C = n.direction === Ir, In(p, "maxWidth", di(n.width)), In(y, s("paddingLeft"),
|
|
694
|
+
C = n.direction === Ir, In(p, "maxWidth", di(n.width)), In(y, s("paddingLeft"), R(!1)), In(y, s("paddingRight"), R(!0)), K(!0);
|
|
695
695
|
}
|
|
696
696
|
function K(_) {
|
|
697
697
|
var P = $n(p);
|
|
698
698
|
(_ || w.width !== P.width || w.height !== P.height) && (In(y, "height", H()), h(s("marginRight"), di(n.gap)), h("width", b()), h("height", F(), !0), w = P, a(wr), L !== (L = D()) && (Hn(p, ic, L), a(Md, L)));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function R(_) {
|
|
701
701
|
var P = n.padding, A = s(_ ? "right" : "left");
|
|
702
702
|
return P && di(P[A] || (ho(P) ? 0 : P)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function H() {
|
|
705
705
|
var _ = "";
|
|
706
|
-
return C && (_ = T(), co(_, "height or heightRatio is missing."), _ = "calc(" + _ + " - " +
|
|
706
|
+
return C && (_ = T(), co(_, "height or heightRatio is missing."), _ = "calc(" + _ + " - " + R(!1) + " - " + R(!0) + ")"), _;
|
|
707
707
|
}
|
|
708
708
|
function T() {
|
|
709
709
|
return di(n.height || $n(v).width * n.heightRatio);
|
|
@@ -721,7 +721,7 @@ function Zd(e, t, n) {
|
|
|
721
721
|
function x() {
|
|
722
722
|
return $n(v)[s("width")];
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function E(_, P) {
|
|
725
725
|
var A = S(_ || 0);
|
|
726
726
|
return A ? $n(A.slide)[s("width")] + (P ? 0 : ce()) : 0;
|
|
727
727
|
}
|
|
@@ -734,7 +734,7 @@ function Zd(e, t, n) {
|
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
736
736
|
function q(_) {
|
|
737
|
-
return z(e.length - 1) - z(0) +
|
|
737
|
+
return z(e.length - 1) - z(0) + E(0, _);
|
|
738
738
|
}
|
|
739
739
|
function ce() {
|
|
740
740
|
var _ = S(0);
|
|
@@ -747,10 +747,10 @@ function Zd(e, t, n) {
|
|
|
747
747
|
return e.is(Fo) || q(!0) > x();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
|
-
mount:
|
|
750
|
+
mount: k,
|
|
751
751
|
resize: K,
|
|
752
752
|
listSize: x,
|
|
753
|
-
slideSize:
|
|
753
|
+
slideSize: E,
|
|
754
754
|
sliderSize: q,
|
|
755
755
|
totalSize: z,
|
|
756
756
|
getPadding: Y,
|
|
@@ -774,26 +774,26 @@ function Qd(e, t, n) {
|
|
|
774
774
|
d !== L && (d < L || !L) && i.emit(rn);
|
|
775
775
|
}
|
|
776
776
|
function h(L) {
|
|
777
|
-
var
|
|
777
|
+
var k = a.get().slice(), $ = k.length;
|
|
778
778
|
if ($) {
|
|
779
|
-
for (;
|
|
780
|
-
ir(
|
|
781
|
-
ir(
|
|
782
|
-
var H =
|
|
783
|
-
H ? Aa(T,
|
|
779
|
+
for (; k.length < L; )
|
|
780
|
+
ir(k, k);
|
|
781
|
+
ir(k.slice(-L), k.slice(0, L)).forEach(function(K, R) {
|
|
782
|
+
var H = R < L, T = C(K.slide, R);
|
|
783
|
+
H ? Aa(T, k[0].slide) : Mo(r.list, T), ir(s, T), a.register(T, R - L + (H ? 0 : $), K.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function C(L,
|
|
787
|
+
function C(L, k) {
|
|
788
788
|
var $ = L.cloneNode(!0);
|
|
789
|
-
return Pn($, n.classes.clone), $.id = e.root.id + "-clone" + Wa(
|
|
789
|
+
return Pn($, n.classes.clone), $.id = e.root.id + "-clone" + Wa(k + 1), $;
|
|
790
790
|
}
|
|
791
791
|
function w() {
|
|
792
792
|
var L = n.clones;
|
|
793
793
|
if (!e.is(Qi))
|
|
794
794
|
L = 0;
|
|
795
795
|
else if (Ro(L)) {
|
|
796
|
-
var
|
|
796
|
+
var k = n[c("fixedWidth")] && t.Layout.slideSize(0), $ = k && xo($n(r.track)[c("width")] / k);
|
|
797
797
|
L = $ || n[c("autoWidth")] && e.length || n.perPage * Jd;
|
|
798
798
|
}
|
|
799
799
|
return L;
|
|
@@ -804,11 +804,11 @@ function Qd(e, t, n) {
|
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
function eu(e, t, n) {
|
|
807
|
-
var i = Qt(e), o = i.on, r = i.emit, a = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, p = c.totalSize, y = c.listSize, v = c.sliderSize, S = t.Direction, h = S.resolve, C = S.orient, w = t.Elements, L = w.list,
|
|
807
|
+
var i = Qt(e), o = i.on, r = i.emit, a = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, p = c.totalSize, y = c.listSize, v = c.sliderSize, S = t.Direction, h = S.resolve, C = S.orient, w = t.Elements, L = w.list, k = w.track, $;
|
|
808
808
|
function K() {
|
|
809
|
-
$ = t.Transition, o([ri, wr, gn, rn],
|
|
809
|
+
$ = t.Transition, o([ri, wr, gn, rn], R);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function R() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), T(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function H(A, G, j, Z) {
|
|
@@ -827,7 +827,7 @@ function eu(e, t, n) {
|
|
|
827
827
|
}
|
|
828
828
|
function F(A) {
|
|
829
829
|
if (e.is(Qi)) {
|
|
830
|
-
var G =
|
|
830
|
+
var G = E(A), j = G > t.Controller.getEnd(), Z = G < 0;
|
|
831
831
|
(Z || j) && (A = g(A, j));
|
|
832
832
|
}
|
|
833
833
|
return A;
|
|
@@ -839,7 +839,7 @@ function eu(e, t, n) {
|
|
|
839
839
|
function x() {
|
|
840
840
|
b(q(), !0), $.cancel();
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function E(A) {
|
|
843
843
|
for (var G = t.Slides.get(), j = 0, Z = 1 / 0, W = 0; W < G.length; W++) {
|
|
844
844
|
var he = G[W].index, f = fn(z(he, !0) - A);
|
|
845
845
|
if (f <= Z)
|
|
@@ -855,7 +855,7 @@ function eu(e, t, n) {
|
|
|
855
855
|
}
|
|
856
856
|
function q() {
|
|
857
857
|
var A = h("left");
|
|
858
|
-
return $n(L)[A] - $n(
|
|
858
|
+
return $n(L)[A] - $n(k)[A] + C(d(!1));
|
|
859
859
|
}
|
|
860
860
|
function ce(A) {
|
|
861
861
|
return n.trimSpace && e.is(Hi) && (A = Ei(A, 0, C(v(!0) - y()))), A;
|
|
@@ -869,7 +869,7 @@ function eu(e, t, n) {
|
|
|
869
869
|
}
|
|
870
870
|
function _(A) {
|
|
871
871
|
var G = C(g(q(), A));
|
|
872
|
-
return A ? G >= 0 : G <= L[h("scrollWidth")] - $n(
|
|
872
|
+
return A ? G >= 0 : G <= L[h("scrollWidth")] - $n(k)[h("width")];
|
|
873
873
|
}
|
|
874
874
|
function P(A, G) {
|
|
875
875
|
G = Ro(G) ? q() : G;
|
|
@@ -883,23 +883,23 @@ function eu(e, t, n) {
|
|
|
883
883
|
translate: b,
|
|
884
884
|
shift: g,
|
|
885
885
|
cancel: x,
|
|
886
|
-
toIndex:
|
|
886
|
+
toIndex: E,
|
|
887
887
|
toPosition: z,
|
|
888
888
|
getPosition: q,
|
|
889
889
|
getLimit: D,
|
|
890
890
|
exceededLimit: P,
|
|
891
|
-
reposition:
|
|
891
|
+
reposition: R
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function tu(e, t, n) {
|
|
895
|
-
var i = Qt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, p = t.Slides, y = p.isEnough, v = p.getLength, S = n.omitEnd, h = e.is(Qi), C = e.is(Hi), w = Kt(q, !1), L = Kt(q, !0),
|
|
895
|
+
var i = Qt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, p = t.Slides, y = p.isEnough, v = p.getLength, S = n.omitEnd, h = e.is(Qi), C = e.is(Hi), w = Kt(q, !1), L = Kt(q, !0), k = n.start || 0, $, K = k, R, H, T;
|
|
896
896
|
function b() {
|
|
897
897
|
F(), o([gn, rn, mr], F), o(wr, g);
|
|
898
898
|
}
|
|
899
899
|
function F() {
|
|
900
|
-
|
|
901
|
-
var f = Ei(
|
|
902
|
-
f !==
|
|
900
|
+
R = v(!0), H = n.perMove, T = n.perPage, $ = _();
|
|
901
|
+
var f = Ei(k, 0, S ? $ : R - 1);
|
|
902
|
+
f !== k && (k = f, a.reposition());
|
|
903
903
|
}
|
|
904
904
|
function g() {
|
|
905
905
|
$ !== _() && r(mr);
|
|
@@ -907,68 +907,68 @@ function tu(e, t, n) {
|
|
|
907
907
|
function x(f, ve, J) {
|
|
908
908
|
if (!he()) {
|
|
909
909
|
var pe = z(f), Le = D(pe);
|
|
910
|
-
Le > -1 && (ve || Le !==
|
|
910
|
+
Le > -1 && (ve || Le !== k) && (j(Le), a.move(pe, Le, K, J));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function E(f, ve, J, pe) {
|
|
914
914
|
t.Scroll.scroll(f, ve, J, function() {
|
|
915
915
|
var Le = D(a.toIndex(c()));
|
|
916
916
|
j(S ? ti(Le, $) : Le), pe && pe();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function z(f) {
|
|
920
|
-
var ve =
|
|
920
|
+
var ve = k;
|
|
921
921
|
if (ei(f)) {
|
|
922
922
|
var J = f.match(/([+\-<>])(\d+)?/) || [], pe = J[1], Le = J[2];
|
|
923
|
-
pe === "+" || pe === "-" ? ve = ce(
|
|
923
|
+
pe === "+" || pe === "-" ? ve = ce(k + +("" + pe + (+Le || 1)), k) : pe === ">" ? ve = Le ? P(+Le) : w(!0) : pe === "<" && (ve = L(!0));
|
|
924
924
|
} else
|
|
925
925
|
ve = h ? f : Ei(f, 0, $);
|
|
926
926
|
return ve;
|
|
927
927
|
}
|
|
928
928
|
function q(f, ve) {
|
|
929
|
-
var J = H || (W() ? 1 : T), pe = ce(
|
|
929
|
+
var J = H || (W() ? 1 : T), pe = ce(k + J * (f ? -1 : 1), k, !(H || W()));
|
|
930
930
|
return pe === -1 && C && !Ms(c(), s(!f), 1) ? f ? 0 : $ : ve ? pe : D(pe);
|
|
931
931
|
}
|
|
932
932
|
function ce(f, ve, J) {
|
|
933
933
|
if (y() || W()) {
|
|
934
934
|
var pe = Y(f);
|
|
935
|
-
pe !== f && (ve = f, f = pe, J = !1), f < 0 || f > $ ? !H && (or(0, f, ve, !0) || or($, ve, f, !0)) ? f = P(A(f)) : h ? f = J ? f < 0 ? -(
|
|
935
|
+
pe !== f && (ve = f, f = pe, J = !1), f < 0 || f > $ ? !H && (or(0, f, ve, !0) || or($, ve, f, !0)) ? f = P(A(f)) : h ? f = J ? f < 0 ? -(R % T || T) : R : f : n.rewind ? f = f < 0 ? $ : 0 : f = -1 : J && f !== ve && (f = P(A(ve) + (f < ve ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
f = -1;
|
|
938
938
|
return f;
|
|
939
939
|
}
|
|
940
940
|
function Y(f) {
|
|
941
|
-
if (C && n.trimSpace === "move" && f !==
|
|
941
|
+
if (C && n.trimSpace === "move" && f !== k)
|
|
942
942
|
for (var ve = c(); ve === d(f, !0) && or(f, 0, e.length - 1, !n.rewind); )
|
|
943
|
-
f <
|
|
943
|
+
f < k ? --f : ++f;
|
|
944
944
|
return f;
|
|
945
945
|
}
|
|
946
946
|
function D(f) {
|
|
947
|
-
return h ? (f +
|
|
947
|
+
return h ? (f + R) % R || 0 : f;
|
|
948
948
|
}
|
|
949
949
|
function _() {
|
|
950
|
-
for (var f =
|
|
951
|
-
if (d(
|
|
950
|
+
for (var f = R - (W() || h && H ? 1 : T); S && f-- > 0; )
|
|
951
|
+
if (d(R - 1, !0) !== d(f, !0)) {
|
|
952
952
|
f++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return Ei(f, 0,
|
|
955
|
+
return Ei(f, 0, R - 1);
|
|
956
956
|
}
|
|
957
957
|
function P(f) {
|
|
958
958
|
return Ei(W() ? f : T * f, 0, $);
|
|
959
959
|
}
|
|
960
960
|
function A(f) {
|
|
961
|
-
return W() ? ti(f, $) : pr((f >= $ ?
|
|
961
|
+
return W() ? ti(f, $) : pr((f >= $ ? R - 1 : f) / T);
|
|
962
962
|
}
|
|
963
963
|
function G(f) {
|
|
964
964
|
var ve = a.toIndex(f);
|
|
965
965
|
return C ? Ei(ve, 0, $) : ve;
|
|
966
966
|
}
|
|
967
967
|
function j(f) {
|
|
968
|
-
f !==
|
|
968
|
+
f !== k && (K = k, k = f);
|
|
969
969
|
}
|
|
970
970
|
function Z(f) {
|
|
971
|
-
return f ? K :
|
|
971
|
+
return f ? K : k;
|
|
972
972
|
}
|
|
973
973
|
function W() {
|
|
974
974
|
return !Ro(n.focus) || n.isNavigation;
|
|
@@ -979,7 +979,7 @@ function tu(e, t, n) {
|
|
|
979
979
|
return {
|
|
980
980
|
mount: b,
|
|
981
981
|
go: x,
|
|
982
|
-
scroll:
|
|
982
|
+
scroll: E,
|
|
983
983
|
getNext: w,
|
|
984
984
|
getPrev: L,
|
|
985
985
|
getAdjacent: q,
|
|
@@ -995,19 +995,19 @@ function tu(e, t, n) {
|
|
|
995
995
|
}
|
|
996
996
|
var nu = "http://www.w3.org/2000/svg", iu = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", zo = 40;
|
|
997
997
|
function ou(e, t, n) {
|
|
998
|
-
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = n.classes, s = n.i18n, d = t.Elements, p = t.Controller, y = d.arrows, v = d.track, S = y, h = d.prev, C = d.next, w, L,
|
|
998
|
+
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = n.classes, s = n.i18n, d = t.Elements, p = t.Controller, y = d.arrows, v = d.track, S = y, h = d.prev, C = d.next, w, L, k = {};
|
|
999
999
|
function $() {
|
|
1000
|
-
|
|
1000
|
+
R(), o(gn, K);
|
|
1001
1001
|
}
|
|
1002
1002
|
function K() {
|
|
1003
1003
|
H(), $();
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
var
|
|
1007
|
-
|
|
1005
|
+
function R() {
|
|
1006
|
+
var E = n.arrows;
|
|
1007
|
+
E && !(h && C) && F(), h && C && (vo(k, {
|
|
1008
1008
|
prev: h,
|
|
1009
1009
|
next: C
|
|
1010
|
-
}), bo(S,
|
|
1010
|
+
}), bo(S, E ? "" : "none"), Pn(S, L = Ga + "--" + n.direction), E && (T(), x(), ht([h, C], Po, v.id), a(Os, h, C)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function H() {
|
|
1013
1013
|
i.destroy(), On(S, L), w ? (xi(y ? [h, C] : S), h = C = null) : Fn([h, C], ja);
|
|
@@ -1015,24 +1015,24 @@ function ou(e, t, n) {
|
|
|
1015
1015
|
function T() {
|
|
1016
1016
|
o([ri, Ji, rn, Si, mr], x), r(C, "click", Kt(b, ">")), r(h, "click", Kt(b, "<"));
|
|
1017
1017
|
}
|
|
1018
|
-
function b(
|
|
1019
|
-
p.go(
|
|
1018
|
+
function b(E) {
|
|
1019
|
+
p.go(E, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function F() {
|
|
1022
1022
|
S = y || Pi("div", c.arrows), h = g(!0), C = g(!1), w = !0, Mo(S, [h, C]), !y && Aa(S, v);
|
|
1023
1023
|
}
|
|
1024
|
-
function g(
|
|
1025
|
-
var z = '<button class="' + c.arrow + " " + (
|
|
1024
|
+
function g(E) {
|
|
1025
|
+
var z = '<button class="' + c.arrow + " " + (E ? c.prev : c.next) + '" type="button"><svg xmlns="' + nu + '" viewBox="0 0 ' + zo + " " + zo + '" width="' + zo + '" height="' + zo + '" focusable="false"><path d="' + (n.arrowPath || iu) + '" />';
|
|
1026
1026
|
return Rs(z);
|
|
1027
1027
|
}
|
|
1028
1028
|
function x() {
|
|
1029
1029
|
if (h && C) {
|
|
1030
|
-
var
|
|
1030
|
+
var E = e.index, z = p.getPrev(), q = p.getNext(), ce = z > -1 && E < z ? s.last : s.prev, Y = q > -1 && E > q ? s.first : s.next;
|
|
1031
1031
|
h.disabled = z < 0, C.disabled = q < 0, ht(h, Cn, ce), ht(C, Cn, Y), a(zs, h, C, z, q);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
1035
|
-
arrows:
|
|
1035
|
+
arrows: k,
|
|
1036
1036
|
mount: $,
|
|
1037
1037
|
destroy: H,
|
|
1038
1038
|
update: x
|
|
@@ -1042,13 +1042,13 @@ var ru = Fa + "-interval";
|
|
|
1042
1042
|
function au(e, t, n) {
|
|
1043
1043
|
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = Sr(n.interval, e.go.bind(e, ">"), T), s = c.isPaused, d = t.Elements, p = t.Elements, y = p.root, v = p.toggle, S = n.autoplay, h, C, w = S === "pause";
|
|
1044
1044
|
function L() {
|
|
1045
|
-
S && (
|
|
1045
|
+
S && (k(), v && ht(v, Po, d.track.id), w || $(), H());
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function k() {
|
|
1048
1048
|
n.pauseOnHover && r(y, "mouseenter mouseleave", function(F) {
|
|
1049
|
-
h = F.type === "mouseenter",
|
|
1049
|
+
h = F.type === "mouseenter", R();
|
|
1050
1050
|
}), n.pauseOnFocus && r(y, "focusin focusout", function(F) {
|
|
1051
|
-
C = F.type === "focusin",
|
|
1051
|
+
C = F.type === "focusin", R();
|
|
1052
1052
|
}), v && r(v, "click", function() {
|
|
1053
1053
|
w ? $() : K(!0);
|
|
1054
1054
|
}), o([jn, $r, rn], c.rewind), o(jn, b);
|
|
@@ -1059,7 +1059,7 @@ function au(e, t, n) {
|
|
|
1059
1059
|
function K(F) {
|
|
1060
1060
|
F === void 0 && (F = !0), w = !!F, H(), s() || (c.pause(), a(za));
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function R() {
|
|
1063
1063
|
w || (h || C ? K(!1) : $());
|
|
1064
1064
|
}
|
|
1065
1065
|
function H() {
|
|
@@ -1104,29 +1104,29 @@ var su = 10, cu = 600, du = 0.6, uu = 1.5, pu = 800;
|
|
|
1104
1104
|
function mu(e, t, n) {
|
|
1105
1105
|
var i = Qt(e), o = i.on, r = i.emit, a = e.state.set, c = t.Move, s = c.getPosition, d = c.getLimit, p = c.exceededLimit, y = c.translate, v = e.is(Hi), S, h, C = 1;
|
|
1106
1106
|
function w() {
|
|
1107
|
-
o(jn, K), o([gn, rn],
|
|
1107
|
+
o(jn, K), o([gn, rn], R);
|
|
1108
1108
|
}
|
|
1109
1109
|
function L(T, b, F, g, x) {
|
|
1110
|
-
var
|
|
1110
|
+
var E = s();
|
|
1111
1111
|
if (K(), F && (!v || !p())) {
|
|
1112
1112
|
var z = t.Layout.sliderSize(), q = ya(T) * z * pr(fn(T) / z) || 0;
|
|
1113
1113
|
T = c.toPosition(t.Controller.toDest(T % z)) + q;
|
|
1114
1114
|
}
|
|
1115
|
-
var ce = Ms(
|
|
1116
|
-
C = 1, b = ce ? 0 : b || ur(fn(T -
|
|
1115
|
+
var ce = Ms(E, T, 1);
|
|
1116
|
+
C = 1, b = ce ? 0 : b || ur(fn(T - E) / uu, pu), h = g, S = Sr(b, k, Kt($, E, T, x), 1), a(Io), r($r), S.start();
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function k() {
|
|
1119
1119
|
a(_i), h && h(), r(Si);
|
|
1120
1120
|
}
|
|
1121
1121
|
function $(T, b, F, g) {
|
|
1122
|
-
var x = s(),
|
|
1122
|
+
var x = s(), E = T + (b - T) * H(g), z = (E - x) * C;
|
|
1123
1123
|
y(x + z), v && !F && p() && (C *= du, fn(z) < su && L(d(p(!0)), cu, !1, h, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function K() {
|
|
1126
1126
|
S && S.cancel();
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1129
|
-
S && !S.isPaused() && (K(),
|
|
1128
|
+
function R() {
|
|
1129
|
+
S && !S.isPaused() && (K(), k());
|
|
1130
1130
|
}
|
|
1131
1131
|
function H(T) {
|
|
1132
1132
|
var b = n.easingFunc;
|
|
@@ -1136,7 +1136,7 @@ function mu(e, t, n) {
|
|
|
1136
1136
|
mount: w,
|
|
1137
1137
|
destroy: K,
|
|
1138
1138
|
scroll: L,
|
|
1139
|
-
cancel:
|
|
1139
|
+
cancel: R
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
1142
|
var Mi = {
|
|
@@ -1144,8 +1144,8 @@ var Mi = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function gu(e, t, n) {
|
|
1147
|
-
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, p = t.Scroll, y = t.Controller, v = t.Elements.track, S = t.Media.reduce, h = t.Direction, C = h.resolve, w = h.orient, L = d.getPosition,
|
|
1148
|
-
function
|
|
1147
|
+
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, p = t.Scroll, y = t.Controller, v = t.Elements.track, S = t.Media.reduce, h = t.Direction, C = h.resolve, w = h.orient, L = d.getPosition, k = d.exceededLimit, $, K, R, H, T, b = !1, F, g, x;
|
|
1148
|
+
function E() {
|
|
1149
1149
|
a(v, Gr, ha, Mi), a(v, qr, ha, Mi), a(v, oc, q, Mi), a(v, "click", D, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), a(v, "dragstart", Nn), o([ri, gn], z);
|
|
@@ -1157,14 +1157,14 @@ function gu(e, t, n) {
|
|
|
1157
1157
|
function q(Q) {
|
|
1158
1158
|
if (F = !1, !g) {
|
|
1159
1159
|
var be = Le(Q);
|
|
1160
|
-
pe(Q.target) && (be || !Q.button) && (y.isBusy() ? Nn(Q, !0) : (x = be ? v : window, T = s.is([Zi, Io]),
|
|
1160
|
+
pe(Q.target) && (be || !Q.button) && (y.isBusy() ? Nn(Q, !0) : (x = be ? v : window, T = s.is([Zi, Io]), R = null, a(x, Gr, ce, Mi), a(x, qr, Y, Mi), d.cancel(), p.cancel(), _(Q)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function ce(Q) {
|
|
1164
1164
|
if (s.is(nr) || (s.set(nr), r(_s)), Q.cancelable)
|
|
1165
1165
|
if (T) {
|
|
1166
1166
|
d.translate($ + J(W(Q)));
|
|
1167
|
-
var be = he(Q) > vl, xe = b !== (b =
|
|
1167
|
+
var be = he(Q) > vl, xe = b !== (b = k());
|
|
1168
1168
|
(be || xe) && _(Q), F = !0, r(Ns), Nn(Q);
|
|
1169
1169
|
} else G(Q) && (T = A(Q), Nn(Q));
|
|
1170
1170
|
}
|
|
@@ -1175,11 +1175,11 @@ function gu(e, t, n) {
|
|
|
1175
1175
|
!g && F && Nn(Q, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function _(Q) {
|
|
1178
|
-
|
|
1178
|
+
R = K, K = Q, $ = L();
|
|
1179
1179
|
}
|
|
1180
1180
|
function P(Q) {
|
|
1181
1181
|
var be = j(Q), xe = Z(be), Fe = n.rewind && n.rewindByDrag;
|
|
1182
|
-
S(!1), H ? y.scroll(xe, 0, n.snap) : e.is(Fo) ? y.go(w(ya(be)) < 0 ? Fe ? "<" : "-" : Fe ? ">" : "+") : e.is(Hi) && b && Fe ? y.go(
|
|
1182
|
+
S(!1), H ? y.scroll(xe, 0, n.snap) : e.is(Fo) ? y.go(w(ya(be)) < 0 ? Fe ? "<" : "-" : Fe ? ">" : "+") : e.is(Hi) && b && Fe ? y.go(k(!0) ? ">" : "<") : y.go(y.toDest(xe), !0), S(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function A(Q) {
|
|
1185
1185
|
var be = n.dragMinThreshold, xe = ho(be), Fe = xe && be.mouse || 0, Ce = (xe ? be.touch : +be) || 10;
|
|
@@ -1206,7 +1206,7 @@ function gu(e, t, n) {
|
|
|
1206
1206
|
return fa(Q) - fa(f(Q));
|
|
1207
1207
|
}
|
|
1208
1208
|
function f(Q) {
|
|
1209
|
-
return K === Q &&
|
|
1209
|
+
return K === Q && R || K;
|
|
1210
1210
|
}
|
|
1211
1211
|
function ve(Q, be) {
|
|
1212
1212
|
return (Le(Q) ? Q.changedTouches[0] : Q)["page" + C(be ? "Y" : "X")];
|
|
@@ -1228,7 +1228,7 @@ function gu(e, t, n) {
|
|
|
1228
1228
|
g = Q;
|
|
1229
1229
|
}
|
|
1230
1230
|
return {
|
|
1231
|
-
mount:
|
|
1231
|
+
mount: E,
|
|
1232
1232
|
disable: we,
|
|
1233
1233
|
isDragging: ae
|
|
1234
1234
|
};
|
|
@@ -1267,8 +1267,8 @@ function fu(e, t, n) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function w(L) {
|
|
1269
1269
|
if (!p) {
|
|
1270
|
-
var
|
|
1271
|
-
|
|
1270
|
+
var k = qa(L);
|
|
1271
|
+
k === s(Tr) ? e.go("<") : k === s(Lr) && e.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
@@ -1287,29 +1287,29 @@ function vu(e, t, n) {
|
|
|
1287
1287
|
Vn(p), S(), s ? L() : (r(d), o(d, h), h());
|
|
1288
1288
|
}
|
|
1289
1289
|
function S() {
|
|
1290
|
-
t.Slides.forEach(function(
|
|
1291
|
-
Pa(
|
|
1292
|
-
var K = Rn($, uo),
|
|
1293
|
-
if (K !== $.src ||
|
|
1290
|
+
t.Slides.forEach(function(k) {
|
|
1291
|
+
Pa(k.slide, yu).forEach(function($) {
|
|
1292
|
+
var K = Rn($, uo), R = Rn($, rr);
|
|
1293
|
+
if (K !== $.src || R !== $.srcset) {
|
|
1294
1294
|
var H = n.classes.spinner, T = $.parentElement, b = ko(T, "." + H) || Pi("span", H, T);
|
|
1295
|
-
p.push([$,
|
|
1295
|
+
p.push([$, k, b]), $.src || bo($, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
function h() {
|
|
1301
|
-
p = p.filter(function(
|
|
1301
|
+
p = p.filter(function(k) {
|
|
1302
1302
|
var $ = n.perPage * ((n.preloadPages || 1) + 1) - 1;
|
|
1303
|
-
return
|
|
1303
|
+
return k[1].isWithin(e.index, $) ? C(k) : !0;
|
|
1304
1304
|
}), p.length || r(d);
|
|
1305
1305
|
}
|
|
1306
|
-
function C(
|
|
1307
|
-
var $ =
|
|
1308
|
-
Pn(
|
|
1306
|
+
function C(k) {
|
|
1307
|
+
var $ = k[0];
|
|
1308
|
+
Pn(k[1].slide, wa), a($, "load error", Kt(w, k)), ht($, "src", Rn($, uo)), ht($, "srcset", Rn($, rr)), Fn($, uo), Fn($, rr);
|
|
1309
1309
|
}
|
|
1310
|
-
function w(
|
|
1311
|
-
var K =
|
|
1312
|
-
On(
|
|
1310
|
+
function w(k, $) {
|
|
1311
|
+
var K = k[0], R = k[1];
|
|
1312
|
+
On(R.slide, wa), $.type !== "error" && (xi(k[2]), bo(K, ""), c(Ba, K, R), c(Ni)), s && L();
|
|
1313
1313
|
}
|
|
1314
1314
|
function L() {
|
|
1315
1315
|
p.length && C(p.shift());
|
|
@@ -1322,8 +1322,8 @@ function vu(e, t, n) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
function bu(e, t, n) {
|
|
1324
1324
|
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = t.Slides, s = t.Elements, d = t.Controller, p = d.hasFocus, y = d.getIndex, v = d.go, S = t.Direction.resolve, h = s.pagination, C = [], w, L;
|
|
1325
|
-
function
|
|
1326
|
-
$(), o([gn, rn, mr],
|
|
1325
|
+
function k() {
|
|
1326
|
+
$(), o([gn, rn, mr], k);
|
|
1327
1327
|
var g = n.pagination;
|
|
1328
1328
|
h && bo(h, g ? "" : "none"), g && (o([jn, $r, Si], F), K(), F(), r(Bs, {
|
|
1329
1329
|
list: w,
|
|
@@ -1334,28 +1334,28 @@ function bu(e, t, n) {
|
|
|
1334
1334
|
w && (xi(h ? oi(w.children) : w), On(w, L), Vn(C), w = null), i.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function K() {
|
|
1337
|
-
var g = e.length, x = n.classes,
|
|
1338
|
-
w = h || Pi("ul", x.pagination, s.track.parentElement), Pn(w, L = Mr + "--" + T()), ht(w, zn, "tablist"), ht(w, Cn,
|
|
1337
|
+
var g = e.length, x = n.classes, E = n.i18n, z = n.perPage, q = p() ? d.getEnd() + 1 : xo(g / z);
|
|
1338
|
+
w = h || Pi("ul", x.pagination, s.track.parentElement), Pn(w, L = Mr + "--" + T()), ht(w, zn, "tablist"), ht(w, Cn, E.select), ht(w, Va, T() === Ir ? "vertical" : "");
|
|
1339
1339
|
for (var ce = 0; ce < q; ce++) {
|
|
1340
1340
|
var Y = Pi("li", null, w), D = Pi("button", {
|
|
1341
1341
|
class: x.page,
|
|
1342
1342
|
type: "button"
|
|
1343
1343
|
}, Y), _ = c.getIn(ce).map(function(A) {
|
|
1344
1344
|
return A.slide.id;
|
|
1345
|
-
}), P = !p() && z > 1 ?
|
|
1346
|
-
a(D, "click", Kt(
|
|
1345
|
+
}), P = !p() && z > 1 ? E.pageX : E.slideX;
|
|
1346
|
+
a(D, "click", Kt(R, ce)), n.paginationKeyboard && a(D, "keydown", Kt(H, ce)), ht(Y, zn, "presentation"), ht(D, zn, "tab"), ht(D, Po, _.join(" ")), ht(D, Cn, va(P, ce + 1)), ht(D, Fi, -1), C.push({
|
|
1347
1347
|
li: Y,
|
|
1348
1348
|
button: D,
|
|
1349
1349
|
page: ce
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function R(g) {
|
|
1354
1354
|
v(">" + g, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function H(g, x) {
|
|
1357
|
-
var
|
|
1358
|
-
z === S(Lr, !1, q) ? ce = ++g %
|
|
1357
|
+
var E = C.length, z = qa(x), q = T(), ce = -1;
|
|
1358
|
+
z === S(Lr, !1, q) ? ce = ++g % E : z === S(Tr, !1, q) ? ce = (--g + E) % E : z === "Home" ? ce = 0 : z === "End" && (ce = E - 1);
|
|
1359
1359
|
var Y = C[ce];
|
|
1360
1360
|
Y && (Is(Y.button), v(">" + ce), Nn(x, !0));
|
|
1361
1361
|
}
|
|
@@ -1368,8 +1368,8 @@ function bu(e, t, n) {
|
|
|
1368
1368
|
function F() {
|
|
1369
1369
|
var g = b(y(!0)), x = b(y());
|
|
1370
1370
|
if (g) {
|
|
1371
|
-
var
|
|
1372
|
-
On(
|
|
1371
|
+
var E = g.button;
|
|
1372
|
+
On(E, wi), Fn(E, ml), ht(E, Fi, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (x) {
|
|
1375
1375
|
var z = x.button;
|
|
@@ -1382,7 +1382,7 @@ function bu(e, t, n) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
return {
|
|
1384
1384
|
items: C,
|
|
1385
|
-
mount:
|
|
1385
|
+
mount: k,
|
|
1386
1386
|
destroy: $,
|
|
1387
1387
|
getAt: b,
|
|
1388
1388
|
update: F
|
|
@@ -1406,7 +1406,7 @@ function wu(e, t, n) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
function d(h, C) {
|
|
1408
1408
|
var w = Qt(h);
|
|
1409
|
-
w.on(jn, function(L,
|
|
1409
|
+
w.on(jn, function(L, k, $) {
|
|
1410
1410
|
C.go(C.is(Qi) ? $ : L);
|
|
1411
1411
|
}), r.push(w);
|
|
1412
1412
|
}
|
|
@@ -1883,7 +1883,7 @@ const Hu = "SvgImage-module__svg___q3xE-", Ou = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": et.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function Vu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1886
|
-
const [o, r] = te(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: p, fontSizeLineHeight: y, textAppearance: v, color: S } = n.imageCaption ?? {}, [h, C] = te(void 0), [w, L] = te(null), [
|
|
1886
|
+
const [o, r] = te(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: p, fontSizeLineHeight: y, textAppearance: v, color: S } = n.imageCaption ?? {}, [h, C] = te(void 0), [w, L] = te(null), [k, $] = te(0), [K, R] = te(0), { direction: H, transition: T, controls: b, pagination: F, imageCaption: g, triggers: x } = e, E = ne(T.type), { x: z, y: q } = e.controls.offset, ce = (Y) => {
|
|
1887
1887
|
o && o.go(Y);
|
|
1888
1888
|
};
|
|
1889
1889
|
return Ee(() => {
|
|
@@ -1898,7 +1898,7 @@ function Vu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
return Y.observe(w), () => Y.unobserve(w);
|
|
1900
1900
|
}, [w]), Ee(() => {
|
|
1901
|
-
!o ||
|
|
1901
|
+
!o || E.current === T.type || (R((Y) => Y + 1), E.current = T.type);
|
|
1902
1902
|
}, [T.type]), /* @__PURE__ */ l("div", { className: st(et.wrapper, { [et.editor]: i }), ref: L, children: /* @__PURE__ */ U(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
@@ -1921,8 +1921,8 @@ function Vu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
1923
|
className: st(et.captionText, Du[g.alignment], {
|
|
1924
|
-
[et.withPointerEvents]: D ===
|
|
1925
|
-
[et.active]: D ===
|
|
1924
|
+
[et.withPointerEvents]: D === k && i,
|
|
1925
|
+
[et.active]: D === k
|
|
1926
1926
|
}),
|
|
1927
1927
|
style: {
|
|
1928
1928
|
fontFamily: Pr(c.fontFamily),
|
|
@@ -2127,10 +2127,10 @@ function Vu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2127
2127
|
"div",
|
|
2128
2128
|
{
|
|
2129
2129
|
className: st(et.dot, {
|
|
2130
|
-
[et.activeDot]: D ===
|
|
2130
|
+
[et.activeDot]: D === k
|
|
2131
2131
|
}),
|
|
2132
2132
|
style: {
|
|
2133
|
-
backgroundColor: D ===
|
|
2133
|
+
backgroundColor: D === k ? F.colors[0] : F.colors[1],
|
|
2134
2134
|
"--pagination-hover-color": F.hover
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
@@ -2803,7 +2803,7 @@ async function Xu(e, t, n, i) {
|
|
|
2803
2803
|
return { width: o, height: r, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function Yu({ settings: e, content: t, isEditor: n }) {
|
|
2806
|
-
const [i, o] = te(null), [r, a] = te([]), [c, s] = te(0), d = ne(0), [p, y] = te({ x: 0, y: 0 }), [v, S] = te(1), [h, C] = te("none"), w = ne({ x: 0, y: 0 }), [L,
|
|
2806
|
+
const [i, o] = te(null), [r, a] = te([]), [c, s] = te(0), d = ne(0), [p, y] = te({ x: 0, y: 0 }), [v, S] = te(1), [h, C] = te("none"), w = ne({ x: 0, y: 0 }), [L, k] = te(!1), { sizeType: $, imageWidth: K, randomRangeImageWidth: R } = e.imageSize, { revealPosition: H, visible: T } = e.position, { cursorType: b, target: F, defaultCursorScale: g, defaultCursor: x, hoverCursorScale: E, hoverCursor: z } = e.cursor;
|
|
2807
2807
|
Ee(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
2809
|
const Y = (P, A) => {
|
|
@@ -2817,7 +2817,7 @@ function Yu({ settings: e, content: t, isEditor: n }) {
|
|
|
2817
2817
|
C("none"), S(1);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
|
-
const ve = Sl(W, he, r) || F === "area" ? { img: z ?? "none", scale:
|
|
2820
|
+
const ve = Sl(W, he, r) || F === "area" ? { img: z ?? "none", scale: E } : { img: x ?? "none", scale: g };
|
|
2821
2821
|
C(ve.img), S(ve.scale);
|
|
2822
2822
|
}, D = (P) => {
|
|
2823
2823
|
P.stopPropagation(), w.current = { x: P.clientX, y: P.clientY }, Y(P.clientX, P.clientY);
|
|
@@ -2835,7 +2835,7 @@ function Yu({ settings: e, content: t, isEditor: n }) {
|
|
|
2835
2835
|
F,
|
|
2836
2836
|
z,
|
|
2837
2837
|
x,
|
|
2838
|
-
|
|
2838
|
+
E,
|
|
2839
2839
|
g,
|
|
2840
2840
|
r
|
|
2841
2841
|
]), Ee(() => {
|
|
@@ -2846,7 +2846,7 @@ function Yu({ settings: e, content: t, isEditor: n }) {
|
|
|
2846
2846
|
Y.image.url,
|
|
2847
2847
|
$,
|
|
2848
2848
|
K,
|
|
2849
|
-
|
|
2849
|
+
R
|
|
2850
2850
|
);
|
|
2851
2851
|
let Z = 0, W = 0;
|
|
2852
2852
|
H === "same" ? (Z = D / 2, W = _ / 2) : (Z = P.x ?? Math.random() * D, W = P.y ?? Math.random() * _);
|
|
@@ -2868,7 +2868,7 @@ function Yu({ settings: e, content: t, isEditor: n }) {
|
|
|
2868
2868
|
const G = t[0], j = await q(G, D, _);
|
|
2869
2869
|
P.push(j), a(P), s(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [$, K,
|
|
2871
|
+
}, [$, K, R, H, i]), Ee(() => {
|
|
2872
2872
|
T === "last One" && a((Y) => Y.length > 0 ? [Y[Y.length - 1]] : []);
|
|
2873
2873
|
}, [T]), /* @__PURE__ */ U(
|
|
2874
2874
|
"div",
|
|
@@ -2883,8 +2883,8 @@ function Yu({ settings: e, content: t, isEditor: n }) {
|
|
|
2883
2883
|
const j = t[c], Z = await q(j, D.width, D.height, { x: A, y: G });
|
|
2884
2884
|
a((W) => T === "all" ? [...W, Z] : [Z]), s((W) => W >= t.length - 1 ? 0 : W + 1);
|
|
2885
2885
|
},
|
|
2886
|
-
onMouseEnter: () =>
|
|
2887
|
-
onMouseLeave: () =>
|
|
2886
|
+
onMouseEnter: () => k(!0),
|
|
2887
|
+
onMouseLeave: () => k(!1),
|
|
2888
2888
|
className: Li.imageRevealSlider,
|
|
2889
2889
|
style: { cursor: h === "none" ? "default" : "none" },
|
|
2890
2890
|
children: [
|
|
@@ -3448,7 +3448,7 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, Hp = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: c }) => {
|
|
3450
3450
|
var Te;
|
|
3451
|
-
const { widthSettings: s, fontSettings: d, letterSpacing: p, textAlign: y, wordSpacing: v, fontSizeLineHeight: S, textAppearance: h, color: C } = i.imageCaption ?? {}, [w, L] = te(0), [
|
|
3451
|
+
const { widthSettings: s, fontSettings: d, letterSpacing: p, textAlign: y, wordSpacing: v, fontSizeLineHeight: S, textAppearance: h, color: C } = i.imageCaption ?? {}, [w, L] = te(0), [k, $] = te(0), [K, R] = te(!1), [H, T] = te(!1), [b, F] = te({}), g = ne(null), x = ne(null), E = ne(null), z = ne(!1), q = ne(null), ce = ne(null), Y = ne(null), D = ne(null), _ = ne(!1), P = ne(null), [A, G] = te(!1), { appear: j, triggers: Z, slider: W, thumbnail: he, controls: f, area: ve, caption: J, layout: pe } = o.lightboxBlock, { appearClass: Le, backdropAppearClass: ae, backdropDisappearClass: we, disappearClass: Q } = _p(j.type, j.direction), be = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
Ee(() => {
|
|
3453
3453
|
const O = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
@@ -3477,9 +3477,9 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3477
3477
|
}, [e, he.isActive, n.length, b, W.direction]);
|
|
3478
3478
|
const xe = Se(() => {
|
|
3479
3479
|
const O = window.matchMedia("(max-width: 768px)").matches, ue = Tl(ve.color);
|
|
3480
|
-
O && !a && ue > 0.9 && (document.body.style.backgroundColor = ""),
|
|
3480
|
+
O && !a && ue > 0.9 && (document.body.style.backgroundColor = ""), R(!0), z.current = !0;
|
|
3481
3481
|
const N = (le) => {
|
|
3482
|
-
le.target === q.current && le.animationName && (q.current && ce.current && q.current.removeEventListener("animationend", ce.current), ce.current = null, z.current && (z.current = !1, t()),
|
|
3482
|
+
le.target === q.current && le.animationName && (q.current && ce.current && q.current.removeEventListener("animationend", ce.current), ce.current = null, z.current && (z.current = !1, t()), R(!1));
|
|
3483
3483
|
};
|
|
3484
3484
|
q.current && (ce.current = N, q.current.addEventListener("animationend", N));
|
|
3485
3485
|
}, [t, ve.color, a]), Fe = (O, ue, N) => {
|
|
@@ -3507,18 +3507,18 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3507
3507
|
else
|
|
3508
3508
|
return;
|
|
3509
3509
|
let oe;
|
|
3510
|
-
if (N &&
|
|
3511
|
-
const re = Cl(
|
|
3510
|
+
if (N && E.current) {
|
|
3511
|
+
const re = Cl(E.current);
|
|
3512
3512
|
oe = le >= re.left && le <= re.right && se >= re.top && se <= re.bottom;
|
|
3513
3513
|
} else {
|
|
3514
|
-
const re =
|
|
3514
|
+
const re = E.current ? hr(E.current) : null;
|
|
3515
3515
|
if (!re) {
|
|
3516
3516
|
O.target === O.currentTarget && xe();
|
|
3517
3517
|
return;
|
|
3518
3518
|
}
|
|
3519
3519
|
oe = le >= re.x && le <= re.x + re.width && se >= re.y && se <= re.y + re.height;
|
|
3520
3520
|
}
|
|
3521
|
-
oe ? Fe(
|
|
3521
|
+
oe ? Fe(E.current, le, se) : xe();
|
|
3522
3522
|
}, We = (O) => {
|
|
3523
3523
|
const ue = O.target;
|
|
3524
3524
|
(ue.classList.contains(He.thumbsWrapper) || ue.classList.contains(He.thumbsContainer)) && Ce(O);
|
|
@@ -3542,7 +3542,7 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3542
3542
|
};
|
|
3543
3543
|
}, [e, xe, n.length]), Ee(() => {
|
|
3544
3544
|
if (e) {
|
|
3545
|
-
if (L(0), $((ue) => ue + 1), z.current = !1,
|
|
3545
|
+
if (L(0), $((ue) => ue + 1), z.current = !1, R(!1), T(!1), F({}), !be) return;
|
|
3546
3546
|
const O = new CustomEvent("page-overlay", { detail: { itemId: be } });
|
|
3547
3547
|
window.dispatchEvent(O);
|
|
3548
3548
|
}
|
|
@@ -3588,11 +3588,11 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3588
3588
|
if (ue.touches.length === 0 && ue.changedTouches.length > 0) {
|
|
3589
3589
|
const oe = n[w], re = (oe == null ? void 0 : oe.image.objectFit) === "cover", $e = ue.changedTouches[0];
|
|
3590
3590
|
let Ie;
|
|
3591
|
-
if (re &&
|
|
3592
|
-
const ee = Cl(
|
|
3591
|
+
if (re && E.current) {
|
|
3592
|
+
const ee = Cl(E.current);
|
|
3593
3593
|
Ie = $e.clientX >= ee.left && $e.clientX <= ee.right && $e.clientY >= ee.top && $e.clientY <= ee.bottom;
|
|
3594
3594
|
} else {
|
|
3595
|
-
const ee =
|
|
3595
|
+
const ee = E.current ? hr(E.current) : null;
|
|
3596
3596
|
if (!ee) return;
|
|
3597
3597
|
Ie = $e.clientX >= ee.x && $e.clientX <= ee.x + ee.width && $e.clientY >= ee.y && $e.clientY <= ee.y + ee.height;
|
|
3598
3598
|
}
|
|
@@ -3648,7 +3648,7 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3648
3648
|
return O.addEventListener("pointerdown", Ie), O.addEventListener("touchstart", ee), () => {
|
|
3649
3649
|
O.removeEventListener("pointerdown", Ie), O.removeEventListener("touchstart", ee), document.removeEventListener("pointermove", le), document.removeEventListener("pointerup", re), document.removeEventListener("pointercancel", re), document.removeEventListener("touchmove", se), document.removeEventListener("touchend", $e), document.removeEventListener("touchcancel", $e), D.current = null, _.current = !1;
|
|
3650
3650
|
};
|
|
3651
|
-
}, [e, X,
|
|
3651
|
+
}, [e, X, k]);
|
|
3652
3652
|
const me = {
|
|
3653
3653
|
backgroundColor: ve.color,
|
|
3654
3654
|
backdropFilter: `blur(${ve.blur}px)`,
|
|
@@ -3716,7 +3716,7 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3716
3716
|
return /* @__PURE__ */ l(Ar, { children: /* @__PURE__ */ l("div", { className: He.imgWrapper, onClick: Ce, children: /* @__PURE__ */ l(
|
|
3717
3717
|
"img",
|
|
3718
3718
|
{
|
|
3719
|
-
ref: ue === w ?
|
|
3719
|
+
ref: ue === w ? E : null,
|
|
3720
3720
|
className: st(He.imageStyle, {
|
|
3721
3721
|
[He.contain]: O.image.objectFit === "contain",
|
|
3722
3722
|
[He.cover]: O.image.objectFit === "cover",
|
|
@@ -3729,7 +3729,7 @@ const Np = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3729
3729
|
) }) }, ue);
|
|
3730
3730
|
})
|
|
3731
3731
|
},
|
|
3732
|
-
|
|
3732
|
+
k
|
|
3733
3733
|
),
|
|
3734
3734
|
f.isActive && /* @__PURE__ */ U(it, { children: [
|
|
3735
3735
|
/* @__PURE__ */ l(
|
|
@@ -5209,17 +5209,17 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5209
5209
|
buttonCorners: C,
|
|
5210
5210
|
buttonStroke: w,
|
|
5211
5211
|
buttonPadding: L,
|
|
5212
|
-
isButtonFullWidth:
|
|
5212
|
+
isButtonFullWidth: k,
|
|
5213
5213
|
inputCorners: $,
|
|
5214
5214
|
inputStroke: K,
|
|
5215
|
-
inputPadding:
|
|
5215
|
+
inputPadding: R,
|
|
5216
5216
|
inputColor: H,
|
|
5217
5217
|
inputTextColor: T,
|
|
5218
5218
|
inputBorderColor: b,
|
|
5219
5219
|
placeholderColor: F,
|
|
5220
5220
|
buttonColor: g,
|
|
5221
5221
|
buttonTextColor: x,
|
|
5222
|
-
buttonBorderColor:
|
|
5222
|
+
buttonBorderColor: E,
|
|
5223
5223
|
labelTextColor: z,
|
|
5224
5224
|
successColor: q,
|
|
5225
5225
|
errorColor: ce,
|
|
@@ -5264,7 +5264,7 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5264
5264
|
textAppearance: j,
|
|
5265
5265
|
color: T
|
|
5266
5266
|
}, oe = vn(nn(se, t)), re = I(K ?? 0, t), $e = I(
|
|
5267
|
-
(P ?? _ ?? 0.01) + ((
|
|
5267
|
+
(P ?? _ ?? 0.01) + ((R == null ? void 0 : R.top) ?? 0) + ((R == null ? void 0 : R.bottom) ?? 0) + (d === "C" ? K ?? 0 : (K ?? 0) * 2),
|
|
5268
5268
|
t
|
|
5269
5269
|
), Ie = {
|
|
5270
5270
|
...oe,
|
|
@@ -5276,10 +5276,10 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5276
5276
|
borderBottomWidth: re,
|
|
5277
5277
|
borderLeftWidth: 0
|
|
5278
5278
|
} : { borderWidth: re },
|
|
5279
|
-
paddingTop: I((
|
|
5280
|
-
paddingRight: I((
|
|
5281
|
-
paddingBottom: I((
|
|
5282
|
-
paddingLeft: I((
|
|
5279
|
+
paddingTop: I((R == null ? void 0 : R.top) ?? 0, t),
|
|
5280
|
+
paddingRight: I((R == null ? void 0 : R.right) ?? 0, t),
|
|
5281
|
+
paddingBottom: I((R == null ? void 0 : R.bottom) ?? 0, t),
|
|
5282
|
+
paddingLeft: I((R == null ? void 0 : R.left) ?? 0, t),
|
|
5283
5283
|
height: $e,
|
|
5284
5284
|
minHeight: $e
|
|
5285
5285
|
}, ee = {
|
|
@@ -5325,7 +5325,7 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5325
5325
|
placeholderColor: F != null && F.trim() ? F : "#cccccc",
|
|
5326
5326
|
buttonColor: g,
|
|
5327
5327
|
buttonTextColor: x,
|
|
5328
|
-
buttonBorderColor:
|
|
5328
|
+
buttonBorderColor: E,
|
|
5329
5329
|
labelTextColor: z,
|
|
5330
5330
|
successColor: q,
|
|
5331
5331
|
errorColor: ce
|
|
@@ -5446,7 +5446,7 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5446
5446
|
paddingLeft: I((L == null ? void 0 : L.left) ?? 0, t),
|
|
5447
5447
|
pointerEvents: c ? "auto" : void 0,
|
|
5448
5448
|
...ge,
|
|
5449
|
-
...
|
|
5449
|
+
...k ? {
|
|
5450
5450
|
width: "100%",
|
|
5451
5451
|
textAlign: "center",
|
|
5452
5452
|
whiteSpace: "normal"
|
|
@@ -5456,7 +5456,7 @@ function Bp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5456
5456
|
"span",
|
|
5457
5457
|
{
|
|
5458
5458
|
className: `${s}-overlay-anchor`,
|
|
5459
|
-
style:
|
|
5459
|
+
style: k ? {
|
|
5460
5460
|
display: "inline-block",
|
|
5461
5461
|
maxWidth: "100%",
|
|
5462
5462
|
whiteSpace: "normal",
|
|
@@ -7013,17 +7013,17 @@ const Yp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7013
7013
|
inputLetterSpacing: C,
|
|
7014
7014
|
inputWordSpacing: w,
|
|
7015
7015
|
inputTextAppearance: L,
|
|
7016
|
-
buttonFontSettings:
|
|
7016
|
+
buttonFontSettings: k,
|
|
7017
7017
|
buttonFontSize: $,
|
|
7018
7018
|
buttonLineHeight: K,
|
|
7019
|
-
buttonLetterSpacing:
|
|
7019
|
+
buttonLetterSpacing: R,
|
|
7020
7020
|
buttonWordSpacing: H,
|
|
7021
7021
|
buttonTextAppearance: T,
|
|
7022
7022
|
statusFontSettings: b,
|
|
7023
7023
|
statusFontSize: F,
|
|
7024
7024
|
statusLineHeight: g,
|
|
7025
7025
|
statusLetterSpacing: x,
|
|
7026
|
-
statusWordSpacing:
|
|
7026
|
+
statusWordSpacing: E,
|
|
7027
7027
|
statusTextAppearance: z,
|
|
7028
7028
|
iconMaxWidth: q,
|
|
7029
7029
|
minHeight: ce,
|
|
@@ -7057,12 +7057,12 @@ const Yp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7057
7057
|
}, le = {
|
|
7058
7058
|
fontSettings: {
|
|
7059
7059
|
fontFamily: y,
|
|
7060
|
-
fontWeight: (
|
|
7061
|
-
fontStyle: (
|
|
7060
|
+
fontWeight: (k == null ? void 0 : k.fontWeight) ?? 400,
|
|
7061
|
+
fontStyle: (k == null ? void 0 : k.fontStyle) ?? "normal"
|
|
7062
7062
|
},
|
|
7063
7063
|
fontSize: $ ?? 0.01,
|
|
7064
7064
|
lineHeight: K,
|
|
7065
|
-
letterSpacing:
|
|
7065
|
+
letterSpacing: R ?? 0,
|
|
7066
7066
|
wordSpacing: H ?? 0,
|
|
7067
7067
|
textAppearance: T,
|
|
7068
7068
|
color: e.buttonTextColor ?? "#ffffff"
|
|
@@ -7075,7 +7075,7 @@ const Yp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7075
7075
|
fontSize: F ?? 0.01,
|
|
7076
7076
|
lineHeight: g,
|
|
7077
7077
|
letterSpacing: x ?? 0,
|
|
7078
|
-
wordSpacing:
|
|
7078
|
+
wordSpacing: E ?? 0,
|
|
7079
7079
|
textAppearance: z,
|
|
7080
7080
|
color: e.successColor ?? "#22c55e"
|
|
7081
7081
|
}, oe = vn(nn(N, t)), re = vn(nn(le, t)), $e = vn(nn(se, t)), Ie = Xi(r, {
|
|
@@ -8528,12 +8528,12 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8528
8528
|
scaled: s,
|
|
8529
8529
|
onFirstSetImageDone: d
|
|
8530
8530
|
}) => {
|
|
8531
|
-
var
|
|
8532
|
-
const p = ne(null), y = !!((
|
|
8531
|
+
var E, z, q, ce;
|
|
8532
|
+
const p = ne(null), y = !!((E = e.image) != null && E.url && ym(e.image));
|
|
8533
8533
|
Dt(() => {
|
|
8534
8534
|
c && vm(p.current) && (d == null || d());
|
|
8535
8535
|
}, [c, (z = e.image) == null ? void 0 : z.url, d]);
|
|
8536
|
-
const v = n.display === "cover", S = n.ratioValue ?? "1:1", h = n.reversed ?? !1, [C, w] = S.split(":").map(Number), $ = (h ? w : C) / (h ? C : w), K = i / $,
|
|
8536
|
+
const v = n.display === "cover", S = n.ratioValue ?? "1:1", h = n.reversed ?? !1, [C, w] = S.split(":").map(Number), $ = (h ? w : C) / (h ? C : w), K = i / $, R = K > o ? o : K, H = K > o ? o * $ : i, T = s(H), b = s(R), F = {
|
|
8537
8537
|
borderRadius: s(r)
|
|
8538
8538
|
}, g = v ? {
|
|
8539
8539
|
pointerEvents: "auto",
|
|
@@ -8625,7 +8625,7 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8625
8625
|
imageMaxHeight: C,
|
|
8626
8626
|
hoverEffect: w,
|
|
8627
8627
|
cornerRadius: L = 0
|
|
8628
|
-
} = e,
|
|
8628
|
+
} = e, k = ze(() => mm(e.imageFit), [e.imageFit]), $ = (t == null ? void 0 : t.length) ?? 0, K = !!o, R = !n || !!i, H = R && w !== "off" && w !== "randomize" ? `${r}-image-hover-${w}` : void 0, T = n ? !!i : !0, F = ((t == null ? void 0 : t.length) ?? 0) > 0 && (T || !!n), g = Math.max(0, p) * am, x = (Ce) => I(Ce, n ?? !1), E = ne(null), z = ne(null), q = ne(null), [ce, Y] = te(0), D = T && v === "on", [_, P] = te(!1), [A, G] = te({}), j = ne(A);
|
|
8629
8629
|
j.current = A;
|
|
8630
8630
|
const Z = ne(null), W = ne(0), he = ne(null), f = ze(() => (t ?? []).map((Ce) => {
|
|
8631
8631
|
var We;
|
|
@@ -8643,8 +8643,8 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8643
8643
|
Dt(() => {
|
|
8644
8644
|
W.current = 0, G({}), Z.current = null, J(Xr), c(0);
|
|
8645
8645
|
}, [f]), Ee(() => {
|
|
8646
|
-
if (!
|
|
8647
|
-
const Ce =
|
|
8646
|
+
if (!R || w !== "randomize") return;
|
|
8647
|
+
const Ce = E.current;
|
|
8648
8648
|
if (!Ce) return;
|
|
8649
8649
|
const We = (O) => {
|
|
8650
8650
|
G((ue) => {
|
|
@@ -8676,9 +8676,9 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8676
8676
|
return Object.keys(j.current).length > 0 && (me.current = requestAnimationFrame(Te)), () => {
|
|
8677
8677
|
cancelAnimationFrame(me.current), X.disconnect();
|
|
8678
8678
|
};
|
|
8679
|
-
}, [w, A,
|
|
8679
|
+
}, [w, A, R]), Dt(() => {
|
|
8680
8680
|
if (!F) return;
|
|
8681
|
-
const Ce =
|
|
8681
|
+
const Ce = E.current, We = q.current;
|
|
8682
8682
|
if (!Ce || !We) return;
|
|
8683
8683
|
const X = { current: 0 }, me = () => {
|
|
8684
8684
|
const ue = Ce.getBoundingClientRect().width || Ce.offsetWidth, N = gm(We), le = Z.current, se = typeof le == "number" && Math.abs(le - N) <= 0.25;
|
|
@@ -8732,7 +8732,7 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8732
8732
|
X();
|
|
8733
8733
|
const me = new ResizeObserver(X);
|
|
8734
8734
|
return me.observe(Ce), me.observe(We), () => me.disconnect();
|
|
8735
|
-
}, [F, ae, pe, n, S, h, C, a,
|
|
8735
|
+
}, [F, ae, pe, n, S, h, C, a, k, A]), Dt(() => {
|
|
8736
8736
|
if (!n || !K || !F || typeof window > "u") return;
|
|
8737
8737
|
const Ce = requestAnimationFrame(() => {
|
|
8738
8738
|
window.dispatchEvent(new Event("scroll"));
|
|
@@ -8757,20 +8757,20 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8757
8757
|
return { ...X, [Ce]: O };
|
|
8758
8758
|
});
|
|
8759
8759
|
}, [t]), Fe = (Ce, We, X, me) => {
|
|
8760
|
-
const Te =
|
|
8760
|
+
const Te = R && w === "randomize" && k.display === "cover" ? A[X] ?? Ce : Ce, O = `max(${x(S)}, ${lm}px)`, ue = `calc(-0.5 * (${O} + ${x(S)}))`;
|
|
8761
8761
|
return /* @__PURE__ */ U(
|
|
8762
8762
|
"div",
|
|
8763
8763
|
{
|
|
8764
8764
|
className: `${r}-marquee-card`,
|
|
8765
8765
|
"data-marquee-item-index": X,
|
|
8766
|
-
onMouseEnter:
|
|
8766
|
+
onMouseEnter: R && w === "randomize" && k.display === "cover" ? () => xe(X, Ce) : void 0,
|
|
8767
8767
|
children: [
|
|
8768
8768
|
/* @__PURE__ */ l(
|
|
8769
8769
|
bm,
|
|
8770
8770
|
{
|
|
8771
8771
|
item: Te,
|
|
8772
8772
|
prefix: r,
|
|
8773
|
-
imageFit:
|
|
8773
|
+
imageFit: k,
|
|
8774
8774
|
imageMaxWidth: h,
|
|
8775
8775
|
imageMaxHeight: C,
|
|
8776
8776
|
cornerRadius: L,
|
|
@@ -8806,7 +8806,7 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8806
8806
|
return /* @__PURE__ */ U(
|
|
8807
8807
|
"div",
|
|
8808
8808
|
{
|
|
8809
|
-
ref:
|
|
8809
|
+
ref: E,
|
|
8810
8810
|
className: st(`${r}-wrapper`, `${r}-marquee-wrapper`),
|
|
8811
8811
|
"aria-label": "Marquee",
|
|
8812
8812
|
style: ce > 0 ? { height: ce } : void 0,
|
|
@@ -8853,7 +8853,7 @@ const am = 30, lm = 20, Xr = 3, sm = 12, cm = 32, dm = 3, um = (e) => {
|
|
|
8853
8853
|
}
|
|
8854
8854
|
);
|
|
8855
8855
|
}
|
|
8856
|
-
return /* @__PURE__ */ U("div", { ref:
|
|
8856
|
+
return /* @__PURE__ */ U("div", { ref: E, className: `${r}-wrapper`, children: [
|
|
8857
8857
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: d } }),
|
|
8858
8858
|
/* @__PURE__ */ l(
|
|
8859
8859
|
"div",
|
|
@@ -10011,7 +10011,7 @@ function Rl(e) {
|
|
|
10011
10011
|
`;
|
|
10012
10012
|
}
|
|
10013
10013
|
const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
10014
|
-
const { prefix: r } = pn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: p, cardWidth: y, corners: v, stroke: S, strokeColor: h, bgColor: C, padding: w, logoMarginTop: L, logoWidth:
|
|
10014
|
+
const { prefix: r } = pn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: p, cardWidth: y, corners: v, stroke: S, strokeColor: h, bgColor: C, padding: w, logoMarginTop: L, logoWidth: k, logoHeight: $, captionMarginTop: K } = e, R = !!o, H = ((t == null ? void 0 : t.length) ?? 0) > 0, T = c > 0 && (!n || i), b = H && (T || n), F = Math.max(0, c) * Cm, g = (N) => I(N, n ?? !1), x = ne(null), E = ne(null), z = ne(null), [q, ce] = te(0), [Y, D] = te(0), [_, P] = te(0), A = T && d === "on", [G, j] = te(!1), Z = ne(null), [W, he] = te(0), [f, ve] = te(0), J = ne(null), pe = (N) => {
|
|
10015
10015
|
var se, oe, re, $e, Ie;
|
|
10016
10016
|
return {
|
|
10017
10017
|
fontSettings: {
|
|
@@ -10058,7 +10058,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10058
10058
|
cancelAnimationFrame(se), $e.disconnect();
|
|
10059
10059
|
};
|
|
10060
10060
|
}, [T, b, Y]), Dt(() => {
|
|
10061
|
-
const N =
|
|
10061
|
+
const N = E.current;
|
|
10062
10062
|
if (!b || !N) return;
|
|
10063
10063
|
const le = Y > 0 ? Y : 0, se = le > 0 && F > 0 ? le / F * 1e3 : 0, oe = `${Math.max(0, se) / 1e3}s`;
|
|
10064
10064
|
N.style.setProperty("--marquee-distance", `${le}px`), N.style.setProperty("--marquee-duration", oe);
|
|
@@ -10067,7 +10067,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10067
10067
|
P(0);
|
|
10068
10068
|
return;
|
|
10069
10069
|
}
|
|
10070
|
-
const N = z.current, le =
|
|
10070
|
+
const N = z.current, le = E.current;
|
|
10071
10071
|
if (!N || !le) return;
|
|
10072
10072
|
const se = () => {
|
|
10073
10073
|
let re = 0;
|
|
@@ -10082,7 +10082,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10082
10082
|
return oe.observe(N), oe.observe(le), () => {
|
|
10083
10083
|
oe.disconnect();
|
|
10084
10084
|
};
|
|
10085
|
-
}, [b, Q, t, n, p, y, w, S, v,
|
|
10085
|
+
}, [b, Q, t, n, p, y, w, S, v, k, $, W, f]);
|
|
10086
10086
|
const be = () => {
|
|
10087
10087
|
A && j(!0);
|
|
10088
10088
|
}, xe = () => {
|
|
@@ -10121,9 +10121,9 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10121
10121
|
/* @__PURE__ */ l(
|
|
10122
10122
|
"div",
|
|
10123
10123
|
{
|
|
10124
|
-
"data-controls":
|
|
10125
|
-
"data-controls-axis":
|
|
10126
|
-
className:
|
|
10124
|
+
"data-controls": R ? oe == null ? void 0 : oe.controlsName : void 0,
|
|
10125
|
+
"data-controls-axis": R ? "y" : void 0,
|
|
10126
|
+
className: R ? `${r}-control` : void 0,
|
|
10127
10127
|
style: { height: g((oe == null ? void 0 : oe.marginTop) ?? 0) }
|
|
10128
10128
|
}
|
|
10129
10129
|
),
|
|
@@ -10144,7 +10144,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10144
10144
|
},
|
|
10145
10145
|
se
|
|
10146
10146
|
),
|
|
10147
|
-
[Fe, Ce, n,
|
|
10147
|
+
[Fe, Ce, n, R, r, g]
|
|
10148
10148
|
), X = Se(
|
|
10149
10149
|
(N, le, se) => {
|
|
10150
10150
|
var oe, re, $e;
|
|
@@ -10188,12 +10188,12 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10188
10188
|
/* @__PURE__ */ l(
|
|
10189
10189
|
"div",
|
|
10190
10190
|
{
|
|
10191
|
-
"data-controls":
|
|
10192
|
-
className:
|
|
10191
|
+
"data-controls": R && !(se != null && se.dataMeasureAttrs) ? "logoMarginTop" : void 0,
|
|
10192
|
+
className: R && !(se != null && se.dataMeasureAttrs) ? `${r}-control` : void 0,
|
|
10193
10193
|
style: { height: g(L) }
|
|
10194
10194
|
}
|
|
10195
10195
|
),
|
|
10196
|
-
/* @__PURE__ */ l("div", { style: { width: g(
|
|
10196
|
+
/* @__PURE__ */ l("div", { style: { width: g(k), height: g($) }, children: ((oe = N.logo) == null ? void 0 : oe.url) && /* @__PURE__ */ l(
|
|
10197
10197
|
"img",
|
|
10198
10198
|
{
|
|
10199
10199
|
src: N.logo.url,
|
|
@@ -10225,7 +10225,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10225
10225
|
v,
|
|
10226
10226
|
$,
|
|
10227
10227
|
L,
|
|
10228
|
-
|
|
10228
|
+
k,
|
|
10229
10229
|
Fe,
|
|
10230
10230
|
Ce,
|
|
10231
10231
|
w.bottom,
|
|
@@ -10237,7 +10237,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10237
10237
|
h,
|
|
10238
10238
|
Le,
|
|
10239
10239
|
n,
|
|
10240
|
-
|
|
10240
|
+
R,
|
|
10241
10241
|
r
|
|
10242
10242
|
]
|
|
10243
10243
|
), me = Se((N) => {
|
|
@@ -10289,7 +10289,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10289
10289
|
},
|
|
10290
10290
|
children: [
|
|
10291
10291
|
X(N, `card-${le}`, Te),
|
|
10292
|
-
|
|
10292
|
+
R && /* @__PURE__ */ l(
|
|
10293
10293
|
"div",
|
|
10294
10294
|
{
|
|
10295
10295
|
"data-controls": "gap",
|
|
@@ -10328,7 +10328,7 @@ const Cm = 30, El = 2, Tm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10328
10328
|
/* @__PURE__ */ l(
|
|
10329
10329
|
"div",
|
|
10330
10330
|
{
|
|
10331
|
-
ref:
|
|
10331
|
+
ref: E,
|
|
10332
10332
|
className: `${r}-marquee-track`,
|
|
10333
10333
|
"data-direction": s,
|
|
10334
10334
|
onMouseEnter: be,
|
|
@@ -11638,7 +11638,7 @@ function Em(e) {
|
|
|
11638
11638
|
`;
|
|
11639
11639
|
}
|
|
11640
11640
|
const Mm = 3e3, km = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11641
|
-
const { prefix: r } = pn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: p, textMarginTop: y, captionMarginTop: v, imageWidth: S, imageHeight: h, controlsWidth: C, controlsColor: w, controlsHoverColor: L } = e,
|
|
11641
|
+
const { prefix: r } = pn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: p, textMarginTop: y, captionMarginTop: v, imageWidth: S, imageHeight: h, controlsWidth: C, controlsColor: w, controlsHoverColor: L } = e, k = c > 0 && (!n || !!i), [$, K] = te(0), [R, H] = te(null), [T, b] = te(!1), F = ne(null), g = ze(() => {
|
|
11642
11642
|
switch (s) {
|
|
11643
11643
|
case "center":
|
|
11644
11644
|
return "center";
|
|
@@ -11662,7 +11662,7 @@ const Mm = 3e3, km = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11662
11662
|
Ee(() => {
|
|
11663
11663
|
K(0), H(null), b(!1);
|
|
11664
11664
|
}, [a.length]);
|
|
11665
|
-
const
|
|
11665
|
+
const E = a[$], z = R === null ? null : a[R], q = (ae) => {
|
|
11666
11666
|
var Q, be, xe, Fe, Ce;
|
|
11667
11667
|
return {
|
|
11668
11668
|
fontSettings: {
|
|
@@ -11692,14 +11692,14 @@ const Mm = 3e3, km = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11692
11692
|
W && K((ae) => he(ae, (ae + 1) % a.length));
|
|
11693
11693
|
}, [W, he, a.length]);
|
|
11694
11694
|
Ee(() => {
|
|
11695
|
-
if (!
|
|
11695
|
+
if (!k || !W) return;
|
|
11696
11696
|
const ae = Math.max(300, Mm / c), we = window.setInterval(() => {
|
|
11697
11697
|
K((Q) => he(Q, (Q + 1) % a.length));
|
|
11698
11698
|
}, ae);
|
|
11699
11699
|
return () => {
|
|
11700
11700
|
window.clearInterval(we);
|
|
11701
11701
|
};
|
|
11702
|
-
}, [
|
|
11702
|
+
}, [k, W, he, a.length, c]), Ee(() => () => {
|
|
11703
11703
|
F.current && window.clearTimeout(F.current);
|
|
11704
11704
|
}, []);
|
|
11705
11705
|
const J = (ae, we) => {
|
|
@@ -11790,7 +11790,7 @@ const Mm = 3e3, km = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11790
11790
|
return Q.observe(ae), () => {
|
|
11791
11791
|
Q.disconnect();
|
|
11792
11792
|
};
|
|
11793
|
-
}, [D, pe, t]), !
|
|
11793
|
+
}, [D, pe, t]), !E) return /* @__PURE__ */ l(it, {});
|
|
11794
11794
|
const Le = D ? { textMinHeightPx: P, captionMinHeightPx: G } : void 0;
|
|
11795
11795
|
return /* @__PURE__ */ l(it, { children: /* @__PURE__ */ U("div", { className: `${r}-container`, children: [
|
|
11796
11796
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Em(r) } }),
|
|
@@ -11820,7 +11820,7 @@ const Mm = 3e3, km = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11820
11820
|
),
|
|
11821
11821
|
/* @__PURE__ */ U("div", { className: `${r}-fade-stack`, children: [
|
|
11822
11822
|
z && T && /* @__PURE__ */ l("div", { className: st(`${r}-fade-item-prev`, `${r}-fade-out`), children: J(z, { ...Le, hideControls: !0 }) }),
|
|
11823
|
-
/* @__PURE__ */ l("div", { className: st(`${r}-fade-item-current`, T ? `${r}-fade-in` : void 0), children: J(
|
|
11823
|
+
/* @__PURE__ */ l("div", { className: st(`${r}-fade-item-current`, T ? `${r}-fade-in` : void 0), children: J(E, Le) })
|
|
11824
11824
|
] })
|
|
11825
11825
|
]
|
|
11826
11826
|
}
|
|
@@ -13326,12 +13326,12 @@ function Km({
|
|
|
13326
13326
|
);
|
|
13327
13327
|
}
|
|
13328
13328
|
function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: c, counterClassName: s, counterStyle: d }) {
|
|
13329
|
-
const p = i === "cover", y = ne(null), v = ne(null), S = ne(null), h = ne(null), C = ne(0), w = ne(0), L = ne("none"),
|
|
13329
|
+
const p = i === "cover", y = ne(null), v = ne(null), S = ne(null), h = ne(null), C = ne(0), w = ne(0), L = ne("none"), k = ne(!1), $ = ne(!1), K = ne(!1), R = ne(null), [H, T] = te(null), [b, F] = te("opening"), [g, x] = te(0), [E, z] = te(0), [q, ce] = te(!1), [Y, D] = te(!1), [_, P] = te(!1), A = ne(n), G = t[n], j = G ? po(G) : !1, Z = E !== 0 || q, W = Se((X) => {
|
|
13330
13330
|
K.current = X, ce(X);
|
|
13331
13331
|
}, []), he = Se(() => {
|
|
13332
|
-
|
|
13332
|
+
R.current !== null && (window.clearTimeout(R.current), R.current = null);
|
|
13333
13333
|
}, []), f = Se(() => {
|
|
13334
|
-
he(),
|
|
13334
|
+
he(), R.current = window.setTimeout(() => {
|
|
13335
13335
|
he(), W(!1);
|
|
13336
13336
|
}, _n + 32);
|
|
13337
13337
|
}, [he, W]), ve = Se(() => {
|
|
@@ -13377,7 +13377,7 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13377
13377
|
he();
|
|
13378
13378
|
}, [he]), Dt(() => {
|
|
13379
13379
|
if (A.current === n) return;
|
|
13380
|
-
he(), x(0), z(0), W(!1), P(!1), D(!1), C.current = 0, w.current = 0, L.current = "none",
|
|
13380
|
+
he(), x(0), z(0), W(!1), P(!1), D(!1), C.current = 0, w.current = 0, L.current = "none", k.current = !1, h.current = null, $.current = !1;
|
|
13381
13381
|
const X = v.current;
|
|
13382
13382
|
X && T(Go(X)), A.current = n;
|
|
13383
13383
|
}, [n, W, he]), Ee(() => {
|
|
@@ -13390,7 +13390,7 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13390
13390
|
oe.stopPropagation(), oe.preventDefault(), me();
|
|
13391
13391
|
}, document.addEventListener("click", X, !0);
|
|
13392
13392
|
}, O = (oe) => {
|
|
13393
|
-
he(), K.current = !1, ce(!1), z(0), D(!1),
|
|
13393
|
+
he(), K.current = !1, ce(!1), z(0), D(!1), k.current = !1, w.current = 0, L.current = "none";
|
|
13394
13394
|
const re = v.current;
|
|
13395
13395
|
re && T(Go(re)), oe < 0 ? c() : a();
|
|
13396
13396
|
}, ue = (oe) => {
|
|
@@ -13402,7 +13402,7 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13402
13402
|
}, N = (oe) => {
|
|
13403
13403
|
if (oe.touches.length !== 1 || K.current) return;
|
|
13404
13404
|
const re = oe.touches[0];
|
|
13405
|
-
$.current = !0, h.current = { x: re.clientX, y: re.clientY }, L.current = "none", w.current = 0,
|
|
13405
|
+
$.current = !0, h.current = { x: re.clientX, y: re.clientY }, L.current = "none", w.current = 0, k.current = !1;
|
|
13406
13406
|
}, le = (oe) => {
|
|
13407
13407
|
if (!h.current || oe.touches.length !== 1 || K.current) return;
|
|
13408
13408
|
const re = oe.touches[0], $e = re.clientX - h.current.x, Ie = re.clientY - h.current.y;
|
|
@@ -13417,13 +13417,13 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13417
13417
|
return;
|
|
13418
13418
|
}
|
|
13419
13419
|
if (L.current === "horizontal") {
|
|
13420
|
-
|
|
13420
|
+
k.current = !0, D(!0), w.current = $e, z($e), oe.preventDefault();
|
|
13421
13421
|
return;
|
|
13422
13422
|
}
|
|
13423
|
-
L.current === "vertical" && (
|
|
13423
|
+
L.current === "vertical" && (k.current = !0, D(!0), C.current = Ie, x(Ie), oe.preventDefault());
|
|
13424
13424
|
}, se = () => {
|
|
13425
13425
|
if (!h.current) return;
|
|
13426
|
-
const oe = L.current, re =
|
|
13426
|
+
const oe = L.current, re = k.current;
|
|
13427
13427
|
if (re && oe === "horizontal")
|
|
13428
13428
|
ue(w.current), Te();
|
|
13429
13429
|
else if (re && oe === "vertical")
|
|
@@ -13433,7 +13433,7 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13433
13433
|
} else
|
|
13434
13434
|
C.current = 0, x(0), Te();
|
|
13435
13435
|
else oe === "horizontal" && Math.abs(w.current) > 0 && (ue(w.current), Te());
|
|
13436
|
-
h.current = null, L.current = "none", w.current = 0,
|
|
13436
|
+
h.current = null, L.current = "none", w.current = 0, k.current = !1, D(!1);
|
|
13437
13437
|
};
|
|
13438
13438
|
return document.addEventListener("touchstart", N, { passive: !0 }), document.addEventListener("touchmove", le, { passive: !1 }), document.addEventListener("touchend", se), document.addEventListener("touchcancel", se), () => {
|
|
13439
13439
|
document.removeEventListener("touchstart", N), document.removeEventListener("touchmove", le), document.removeEventListener("touchend", se), document.removeEventListener("touchcancel", se), me();
|
|
@@ -13470,7 +13470,7 @@ function Um({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13470
13470
|
X.currentTarget.style.cursor = Te < me.width / 2 ? "w-resize" : "e-resize";
|
|
13471
13471
|
}, xe = Se((X) => {
|
|
13472
13472
|
X.propertyName !== "transform" || !K.current || (he(), W(!1));
|
|
13473
|
-
}, [he, W]), Fe = Z ? `translateX(${
|
|
13473
|
+
}, [he, W]), Fe = Z ? `translateX(${E}px)` : g > 0 ? `translateY(${g}px)` : void 0, Ce = {
|
|
13474
13474
|
position: "fixed",
|
|
13475
13475
|
top: H == null ? void 0 : H.top,
|
|
13476
13476
|
left: H == null ? void 0 : H.left,
|
|
@@ -13672,17 +13672,17 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13672
13672
|
lightbox: C,
|
|
13673
13673
|
imageDisplay: w,
|
|
13674
13674
|
lightboxImageDisplay: L,
|
|
13675
|
-
slider:
|
|
13675
|
+
slider: k,
|
|
13676
13676
|
sliderTiming: $,
|
|
13677
13677
|
direction: K,
|
|
13678
|
-
transition:
|
|
13678
|
+
transition: R,
|
|
13679
13679
|
titleMarginTop: H,
|
|
13680
13680
|
subtitleMarginTop: T,
|
|
13681
13681
|
titleColor: b,
|
|
13682
13682
|
subtitleColor: F,
|
|
13683
13683
|
lightboxCounterColor: g,
|
|
13684
13684
|
titleFontFamily: x,
|
|
13685
|
-
titleFontSettings:
|
|
13685
|
+
titleFontSettings: E,
|
|
13686
13686
|
titleFontSize: z,
|
|
13687
13687
|
titleLineHeight: q,
|
|
13688
13688
|
titleLetterSpacing: ce,
|
|
@@ -13708,8 +13708,8 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13708
13708
|
} = e, xe = {
|
|
13709
13709
|
fontSettings: {
|
|
13710
13710
|
fontFamily: x,
|
|
13711
|
-
fontWeight: (
|
|
13712
|
-
fontStyle: (
|
|
13711
|
+
fontWeight: (E == null ? void 0 : E.fontWeight) ?? 400,
|
|
13712
|
+
fontStyle: (E == null ? void 0 : E.fontStyle) ?? "normal"
|
|
13713
13713
|
},
|
|
13714
13714
|
fontSize: z ?? 0.01,
|
|
13715
13715
|
lineHeight: q,
|
|
@@ -13767,7 +13767,7 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13767
13767
|
titleColor: b,
|
|
13768
13768
|
subtitleColor: F,
|
|
13769
13769
|
lightboxCounterColor: g
|
|
13770
|
-
}, Zm, Jm), ge = `${a && a !== "default" ? `${d}-state-${a}` : ""}${we === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), Ne = h === 0 ? 1 / 0 : h, de = (t ?? []).slice(0, Ne), V = y.entryWidth ?? 0.2, je = (w == null ? void 0 : w.display) === "cover", Oe = (w == null ? void 0 : w.ratioValue) ?? "1:1", at = (w == null ? void 0 : w.reversed) ?? !1, [tt, gt] = Oe.split(":").map(Number), dt = `${at ? gt : tt} / ${at ? tt : gt}`, Et = y.columnsCount, ut = I(V ?? 0, n), Qe = ut, wt = !je &&
|
|
13770
|
+
}, Zm, Jm), ge = `${a && a !== "default" ? `${d}-state-${a}` : ""}${we === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), Ne = h === 0 ? 1 / 0 : h, de = (t ?? []).slice(0, Ne), V = y.entryWidth ?? 0.2, je = (w == null ? void 0 : w.display) === "cover", Oe = (w == null ? void 0 : w.ratioValue) ?? "1:1", at = (w == null ? void 0 : w.reversed) ?? !1, [tt, gt] = Oe.split(":").map(Number), dt = `${at ? gt : tt} / ${at ? tt : gt}`, Et = y.columnsCount, ut = I(V ?? 0, n), Qe = ut, wt = !je && k !== "off", Tt = de.length % Et || Et, ft = Tt < Et && de.length > 0, _t = de.length - Tt, Vt = ft ? Math.floor((Et - Tt) / 2) + 1 : 1, rt = {
|
|
13771
13771
|
width: Qe,
|
|
13772
13772
|
...je ? { aspectRatio: dt, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13773
13773
|
}, kt = `${d}-item-image-wrapper${wt ? ` ${d}-item-image-wrapper-fit-slider` : ""}`.trim(), At = p === "d" || p === "e" || p === "f", Ye = Q === "on", Ze = `calc(${I(V ?? 0, n)} * (${v} / 100))`, _e = I(V * v / 100, n), xt = je ? {
|
|
@@ -13902,7 +13902,7 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13902
13902
|
] }) : /* @__PURE__ */ U(it, { children: [
|
|
13903
13903
|
jt,
|
|
13904
13904
|
Ot
|
|
13905
|
-
] }), Ut = jm(qe.gallery), Ht = Ut.filter((vt) => vt.lightboxMedia).map((vt) => vt.lightboxMedia), ln = /* @__PURE__ */ l("div", { className: kt, style: rt, children: Ut.length === 0 ? null :
|
|
13905
|
+
] }), Ut = jm(qe.gallery), Ht = Ut.filter((vt) => vt.lightboxMedia).map((vt) => vt.lightboxMedia), ln = /* @__PURE__ */ l("div", { className: kt, style: rt, children: Ut.length === 0 ? null : k === "off" ? (() => {
|
|
13906
13906
|
const { displayMedia: vt, lightboxMedia: zt } = Ut[0], Xt = zt ? Ht.findIndex((m) => m.url === zt.url) : -1;
|
|
13907
13907
|
return /* @__PURE__ */ l(
|
|
13908
13908
|
Pl,
|
|
@@ -13929,14 +13929,14 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13929
13929
|
width: "100%",
|
|
13930
13930
|
height: "100%",
|
|
13931
13931
|
speed: Hm,
|
|
13932
|
-
type:
|
|
13933
|
-
rewind:
|
|
13932
|
+
type: R === "fade" ? "fade" : "loop",
|
|
13933
|
+
rewind: R === "fade",
|
|
13934
13934
|
pauseOnHover: !1,
|
|
13935
13935
|
pauseOnFocus: !1,
|
|
13936
|
-
direction:
|
|
13936
|
+
direction: R === "fade" ? "ltr" : K !== "random" ? K === "horizontal" ? "ltr" : "ttb" : Pt
|
|
13937
13937
|
},
|
|
13938
13938
|
onMoved: (vt) => {
|
|
13939
|
-
if (K !== "random" ||
|
|
13939
|
+
if (K !== "random" || R === "fade") return;
|
|
13940
13940
|
const zt = Math.random() > 0.5 ? Math.random() > 0.5 ? "rtl" : "ltr" : "ttb";
|
|
13941
13941
|
Nt(zt), setTimeout(() => {
|
|
13942
13942
|
vt.refresh();
|
|
@@ -13955,7 +13955,7 @@ function Ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13955
13955
|
) }, Xt);
|
|
13956
13956
|
})
|
|
13957
13957
|
},
|
|
13958
|
-
`${
|
|
13958
|
+
`${R}-${V}-${K}-${$}-${Yt}-${c}`
|
|
13959
13959
|
)
|
|
13960
13960
|
] }) }), It = At ? null : /* @__PURE__ */ U(it, { children: [
|
|
13961
13961
|
/* @__PURE__ */ l(
|
|
@@ -16945,10 +16945,10 @@ function pc({
|
|
|
16945
16945
|
contentMarginTop: C = 0,
|
|
16946
16946
|
iconMarginRight: w = 0,
|
|
16947
16947
|
closeIcon: L = null,
|
|
16948
|
-
closeIconMaxWidth:
|
|
16948
|
+
closeIconMaxWidth: k = 0,
|
|
16949
16949
|
closeIconColor: $ = "#000000",
|
|
16950
16950
|
closeIconHoverColor: K = "#cccccc"
|
|
16951
|
-
} = n,
|
|
16951
|
+
} = n, R = I(C, i), H = I(w, i), T = I(S, i), b = h === "mobile", F = vi("title1", yi(n, "title1"), i), g = vi("title2", yi(n, "title2"), i), x = vi("title3", yi(n, "title3"), i), E = ze(
|
|
16952
16952
|
() => ({
|
|
16953
16953
|
title1Width: c ?? Wi.title1Width,
|
|
16954
16954
|
title2Width: s ?? Wi.title2Width,
|
|
@@ -16962,8 +16962,8 @@ function pc({
|
|
|
16962
16962
|
() => Jn(e, t, F, g, x),
|
|
16963
16963
|
[e, t, F, g, x]
|
|
16964
16964
|
), ce = ze(
|
|
16965
|
-
() => q.map((ee) =>
|
|
16966
|
-
[q,
|
|
16965
|
+
() => q.map((ee) => E[ee.widthKey]),
|
|
16966
|
+
[q, E]
|
|
16967
16967
|
), Y = ze(
|
|
16968
16968
|
() => zi(q.length, ce),
|
|
16969
16969
|
[q.length, ce]
|
|
@@ -16977,11 +16977,11 @@ function pc({
|
|
|
16977
16977
|
() => q.filter((ee) => ee.prefix === "title2" || ee.prefix === "title3"),
|
|
16978
16978
|
[q]
|
|
16979
16979
|
), A = ze(
|
|
16980
|
-
() => Qn(_,
|
|
16981
|
-
[_,
|
|
16980
|
+
() => Qn(_, E),
|
|
16981
|
+
[_, E]
|
|
16982
16982
|
), G = ze(
|
|
16983
|
-
() => Qn(P,
|
|
16984
|
-
[P,
|
|
16983
|
+
() => Qn(P, E),
|
|
16984
|
+
[P, E]
|
|
16985
16985
|
), j = !!(t.title1 || t.title2 || t.title3), Z = L !== null;
|
|
16986
16986
|
if (!(j || Z)) return null;
|
|
16987
16987
|
const he = (p ?? 0) > 0 || o, f = (ee, ge) => {
|
|
@@ -17008,7 +17008,7 @@ function pc({
|
|
|
17008
17008
|
};
|
|
17009
17009
|
}, ve = (ee, ge, Ne) => {
|
|
17010
17010
|
if (!b || Ne === "single-row") {
|
|
17011
|
-
const at = ee.findIndex((Ue) => Ue.prefix === ge.prefix), tt = ee.map((Ue) =>
|
|
17011
|
+
const at = ee.findIndex((Ue) => Ue.prefix === ge.prefix), tt = ee.map((Ue) => E[Ue.widthKey]), gt = zi(ee.length, tt);
|
|
17012
17012
|
return {
|
|
17013
17013
|
effectiveWidth: $o(ee.length, tt)[at] ?? 0,
|
|
17014
17014
|
resolvedWidth: gt[at] ?? 0,
|
|
@@ -17016,14 +17016,14 @@ function pc({
|
|
|
17016
17016
|
};
|
|
17017
17017
|
}
|
|
17018
17018
|
if (Ne === "two-row-top") {
|
|
17019
|
-
const at = ee.filter((Ue) => Ue.prefix === "title1"), tt = at.findIndex((Ue) => Ue.prefix === ge.prefix), { resolved: gt, effective: bt } = Qn(at,
|
|
17019
|
+
const at = ee.filter((Ue) => Ue.prefix === "title1"), tt = at.findIndex((Ue) => Ue.prefix === ge.prefix), { resolved: gt, effective: bt } = Qn(at, E);
|
|
17020
17020
|
return {
|
|
17021
17021
|
effectiveWidth: bt[tt] ?? 0,
|
|
17022
17022
|
resolvedWidth: gt[tt] ?? 0,
|
|
17023
17023
|
maxWidth: hn(tt, gt)
|
|
17024
17024
|
};
|
|
17025
17025
|
}
|
|
17026
|
-
const de = ee.filter((at) => at.prefix === "title2" || at.prefix === "title3"), V = de.findIndex((at) => at.prefix === ge.prefix), { resolved: je, effective: Oe } = Qn(de,
|
|
17026
|
+
const de = ee.filter((at) => at.prefix === "title2" || at.prefix === "title3"), V = de.findIndex((at) => at.prefix === ge.prefix), { resolved: je, effective: Oe } = Qn(de, E);
|
|
17027
17027
|
return {
|
|
17028
17028
|
effectiveWidth: Oe[V] ?? 0,
|
|
17029
17029
|
resolvedWidth: je[V] ?? 0,
|
|
@@ -17097,7 +17097,7 @@ function pc({
|
|
|
17097
17097
|
ee.className
|
|
17098
17098
|
);
|
|
17099
17099
|
}, Q = (ee = "two-row") => {
|
|
17100
|
-
const ge = q.findIndex((V) => V.prefix === "title1"), Ne = ge >= 0 ? Y[ge] :
|
|
17100
|
+
const ge = q.findIndex((V) => V.prefix === "title1"), Ne = ge >= 0 ? Y[ge] : E.title1Width, de = ee === "two-row" && o;
|
|
17101
17101
|
return /* @__PURE__ */ l(
|
|
17102
17102
|
"div",
|
|
17103
17103
|
{
|
|
@@ -17172,8 +17172,8 @@ function pc({
|
|
|
17172
17172
|
{
|
|
17173
17173
|
className: `${e}-close-icon`,
|
|
17174
17174
|
style: {
|
|
17175
|
-
width: I(
|
|
17176
|
-
height: I(
|
|
17175
|
+
width: I(k ?? 0, i),
|
|
17176
|
+
height: I(k ?? 0, i),
|
|
17177
17177
|
marginRight: H,
|
|
17178
17178
|
"--close-icon-hover-color": K
|
|
17179
17179
|
},
|
|
@@ -17227,7 +17227,7 @@ function pc({
|
|
|
17227
17227
|
Ce(ee, ge)
|
|
17228
17228
|
] }), ue = () => {
|
|
17229
17229
|
const ee = b ? -1 : q.findIndex((de) => de.prefix === "title1"), ge = !b && (o || (p ?? 0) > 0) ? (() => {
|
|
17230
|
-
const de = p ?? 0, V = ee >= 0 ? Y[ee] :
|
|
17230
|
+
const de = p ?? 0, V = ee >= 0 ? Y[ee] : E.title1Width, je = Math.max(de, Zn);
|
|
17231
17231
|
return /* @__PURE__ */ l(
|
|
17232
17232
|
"div",
|
|
17233
17233
|
{
|
|
@@ -17382,7 +17382,7 @@ function pc({
|
|
|
17382
17382
|
{
|
|
17383
17383
|
"data-controls": o ? "contentMarginTop" : void 0,
|
|
17384
17384
|
className: o ? `${e}-control` : void 0,
|
|
17385
|
-
style: { height:
|
|
17385
|
+
style: { height: R, width: "100%" }
|
|
17386
17386
|
}
|
|
17387
17387
|
),
|
|
17388
17388
|
/* @__PURE__ */ l("div", { style: {
|
|
@@ -18120,7 +18120,7 @@ function Hg({
|
|
|
18120
18120
|
onPrev: C,
|
|
18121
18121
|
onNext: w
|
|
18122
18122
|
}) {
|
|
18123
|
-
const L = ne(null),
|
|
18123
|
+
const L = ne(null), k = ne(null), $ = ne(null), K = ne(/* @__PURE__ */ new Map()), [R, H] = te(0), T = ne(null), b = ne(0), F = ne(0), g = ne("none"), x = ne(!1), E = ne(!1), z = ne(!1), q = ne(null), ce = ne(null), Y = ne(null), D = ne(() => {
|
|
18124
18124
|
}), _ = ne(null), P = ne(null), A = ne(null), G = ne(!1), [j, Z] = te(null), [W, he] = te(ea), [f, ve] = te(0), [J, pe] = te("opening"), [Le, ae] = te(0), [we, Q] = te(0), [be, xe] = te(!1), [Fe, Ce] = te(null), [We, X] = te(null), [me, Te] = te(null), [O, ue] = te(!1), [N, le] = te(null), [se, oe] = te(!1), re = ne(!1), [$e, Ie] = te(!1), [ee, ge] = te(!1), Ne = ne(n), de = ne(void 0), V = t[n], je = V ? eo(V) : !1, Oe = we !== 0 || be, at = !a && (!r || !!c), tt = s && !a, gt = d.length > 1, bt = Se((m, fe) => t.length <= 1 ? null : t[(m + fe + t.length) % t.length] ?? null, [t]), Ue = gt ? lo(d, p, -1) : bt(n, -1), dt = gt ? lo(d, p, 1) : bt(n, 1), Et = Fe === -1 && Oe ? gt && We !== null ? lo(d, We, -1) : me !== null ? bt(me, -1) : null : null, ut = Fe === 1 && Oe ? gt && We !== null ? lo(d, We, 1) : me !== null ? bt(me, 1) : null : null, Qe = Et && Et.url !== (Ue == null ? void 0 : Ue.url) ? Et : null, wt = ut && ut.url !== (dt == null ? void 0 : dt.url) ? ut : null, Tt = Ue && tt ? (() => {
|
|
18125
18125
|
const m = gt ? zl(d, p, -1) : t.length > 2 ? bt((n - 1 + t.length) % t.length, -1) : null;
|
|
18126
18126
|
return m && m.url !== Ue.url ? m : null;
|
|
@@ -18134,15 +18134,15 @@ function Hg({
|
|
|
18134
18134
|
}, []), kt = Se((m) => {
|
|
18135
18135
|
if (!(m != null && m.url)) return null;
|
|
18136
18136
|
const fe = K.current.get(m.url);
|
|
18137
|
-
return Ig(
|
|
18138
|
-
}, [
|
|
18137
|
+
return Ig(k.current, fe);
|
|
18138
|
+
}, [R, f]), At = Se(() => {
|
|
18139
18139
|
if (!V) return;
|
|
18140
18140
|
const m = kt(V);
|
|
18141
18141
|
if (m) {
|
|
18142
18142
|
Z(m);
|
|
18143
18143
|
return;
|
|
18144
18144
|
}
|
|
18145
|
-
const fe =
|
|
18145
|
+
const fe = k.current;
|
|
18146
18146
|
fe && Z(Bl(fe));
|
|
18147
18147
|
}, [V, kt]), Ye = Se((m) => {
|
|
18148
18148
|
if (gt) {
|
|
@@ -18242,7 +18242,7 @@ function Hg({
|
|
|
18242
18242
|
A.current = null, _.current === m && (G.current = !0, tn(m));
|
|
18243
18243
|
}, bg));
|
|
18244
18244
|
}, [Ft, tn]), $t = Se(() => {
|
|
18245
|
-
const m =
|
|
18245
|
+
const m = k.current;
|
|
18246
18246
|
if (!m) return;
|
|
18247
18247
|
const fe = V == null ? void 0 : V.url, Ae = fe ? K.current.get(fe) : void 0;
|
|
18248
18248
|
if (Ae != null && Ae.width && (Ae != null && Ae.height)) {
|
|
@@ -18272,7 +18272,7 @@ function Hg({
|
|
|
18272
18272
|
}, [Pt, $t]);
|
|
18273
18273
|
Ee(() => {
|
|
18274
18274
|
Re();
|
|
18275
|
-
const m =
|
|
18275
|
+
const m = k.current, fe = L.current, Ae = new ResizeObserver(() => Re());
|
|
18276
18276
|
return m && Ae.observe(m), fe && Ae.observe(fe), window.addEventListener("resize", Re), () => {
|
|
18277
18277
|
Ae.disconnect(), window.removeEventListener("resize", Re);
|
|
18278
18278
|
};
|
|
@@ -18288,7 +18288,7 @@ function Hg({
|
|
|
18288
18288
|
}
|
|
18289
18289
|
}, [V == null ? void 0 : V.url, n, $t]), Ee(() => {
|
|
18290
18290
|
At();
|
|
18291
|
-
}, [At,
|
|
18291
|
+
}, [At, R]), Ee(() => {
|
|
18292
18292
|
const m = /* @__PURE__ */ new Set(), fe = [], Ae = (ke) => {
|
|
18293
18293
|
!(ke != null && ke.url) || m.has(ke.url) || (m.add(ke.url), fe.push(ke));
|
|
18294
18294
|
};
|
|
@@ -18315,7 +18315,7 @@ function Hg({
|
|
|
18315
18315
|
}, [J, h]), Ee(() => () => {
|
|
18316
18316
|
_e();
|
|
18317
18317
|
}, [_e]), Dt(() => {
|
|
18318
|
-
Ne.current === n && de.current === (V == null ? void 0 : V.url) || (_e(), ce.current = null, Ce(null), X(null), Te(null), ae(0), Q(0), Ze(!1), ge(!1), Ie(!1), b.current = 0, F.current = 0, g.current = "none", x.current = !1, T.current = null,
|
|
18318
|
+
Ne.current === n && de.current === (V == null ? void 0 : V.url) || (_e(), ce.current = null, Ce(null), X(null), Te(null), ae(0), Q(0), Ze(!1), ge(!1), Ie(!1), b.current = 0, F.current = 0, g.current = "none", x.current = !1, T.current = null, E.current = !1, $.current = null, At(), Ne.current = n, de.current = V == null ? void 0 : V.url);
|
|
18319
18319
|
}, [n, V == null ? void 0 : V.url, Ze, _e, At]), Dt(() => {
|
|
18320
18320
|
const m = Y.current;
|
|
18321
18321
|
m !== null && (Y.current = null, requestAnimationFrame(() => {
|
|
@@ -18357,7 +18357,7 @@ function Hg({
|
|
|
18357
18357
|
}, ke = (Xe) => {
|
|
18358
18358
|
if (Xe.touches.length !== 1 || z.current) return;
|
|
18359
18359
|
const ct = Xe.touches[0];
|
|
18360
|
-
|
|
18360
|
+
E.current = !0, T.current = { x: ct.clientX, y: ct.clientY }, g.current = "none", F.current = 0, x.current = !1;
|
|
18361
18361
|
}, nt = (Xe) => {
|
|
18362
18362
|
if (!T.current || Xe.touches.length !== 1 || z.current) return;
|
|
18363
18363
|
const ct = Xe.touches[0], qt = ct.clientX - T.current.x, Rt = ct.clientY - T.current.y;
|
|
@@ -18488,8 +18488,8 @@ function Hg({
|
|
|
18488
18488
|
return Ae ? kg(Bi(Ae, fe, W), fe, W) : null;
|
|
18489
18489
|
}, It = (m) => (fe) => {
|
|
18490
18490
|
if (!a) {
|
|
18491
|
-
if (
|
|
18492
|
-
|
|
18491
|
+
if (E.current) {
|
|
18492
|
+
E.current = !1;
|
|
18493
18493
|
return;
|
|
18494
18494
|
}
|
|
18495
18495
|
fe.stopPropagation(), Lt(m);
|
|
@@ -18547,7 +18547,7 @@ function Hg({
|
|
|
18547
18547
|
justifyContent: "center",
|
|
18548
18548
|
alignItems: "center"
|
|
18549
18549
|
},
|
|
18550
|
-
children: /* @__PURE__ */ l("div", { ref:
|
|
18550
|
+
children: /* @__PURE__ */ l("div", { ref: k, style: { width: "100%", height: "100%" } })
|
|
18551
18551
|
}
|
|
18552
18552
|
),
|
|
18553
18553
|
/* @__PURE__ */ l("div", { style: { height: "10%" } })
|
|
@@ -18692,7 +18692,7 @@ function Og({
|
|
|
18692
18692
|
layoutId: r,
|
|
18693
18693
|
portalId: a
|
|
18694
18694
|
}) {
|
|
18695
|
-
const { prefix: c } = pn(), { gridLayout: s, verticalGap: d, align: p = "top", imageDisplay: y } = e, v = (y == null ? void 0 : y.display) === "cover", S = (y == null ? void 0 : y.ratioValue) ?? "1:1", h = (y == null ? void 0 : y.reversed) ?? !1, [C, w] = S.split(":").map(Number), $ = `${h ? w : C} / ${h ? C : w}`, K = s.entryWidth ?? 0.2,
|
|
18695
|
+
const { prefix: c } = pn(), { gridLayout: s, verticalGap: d, align: p = "top", imageDisplay: y } = e, v = (y == null ? void 0 : y.display) === "cover", S = (y == null ? void 0 : y.ratioValue) ?? "1:1", h = (y == null ? void 0 : y.reversed) ?? !1, [C, w] = S.split(":").map(Number), $ = `${h ? w : C} / ${h ? C : w}`, K = s.entryWidth ?? 0.2, R = s.columnsCount, H = I(K, n), T = I(s.horizontalGap ?? 0, n), b = H, F = H, g = {
|
|
18696
18696
|
width: b,
|
|
18697
18697
|
...v ? { aspectRatio: $, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
18698
18698
|
}, x = v ? {
|
|
@@ -18707,14 +18707,14 @@ function Og({
|
|
|
18707
18707
|
width: "auto",
|
|
18708
18708
|
height: "auto",
|
|
18709
18709
|
maxWidth: "100%"
|
|
18710
|
-
},
|
|
18710
|
+
}, E = ne(null), [z, q] = te(!1), [ce, Y] = te([]), [D, _] = te(0), [P, A] = te(0), [G, j] = te(null), [Z, W] = te({
|
|
18711
18711
|
title1: "",
|
|
18712
18712
|
title2: "",
|
|
18713
18713
|
title3: ""
|
|
18714
18714
|
}), he = (() => {
|
|
18715
|
-
const me = {}, Te =
|
|
18715
|
+
const me = {}, Te = E.current ? getComputedStyle(E.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
18716
18716
|
return Te && (me["--cntrl-article-width"] = Te), me;
|
|
18717
|
-
})(), f = !n || i || o, ve = ze(() => fg(c), [c]), J = t ?? [], pe = J.length %
|
|
18717
|
+
})(), f = !n || i || o, ve = ze(() => fg(c), [c]), J = t ?? [], pe = J.length % R || R, Le = pe < R && J.length > 0, ae = J.length - pe, we = Le ? Math.floor((R - pe) / 2) + 1 : 1, Q = ze(() => Cg(J), [J]), be = ze(() => Eg(J), [J]), xe = (me, Te, O) => {
|
|
18718
18718
|
if (n && !o && !i) return;
|
|
18719
18719
|
const ue = Q.findIndex((le) => le.gridIndex === me);
|
|
18720
18720
|
if (ue < 0) return;
|
|
@@ -18724,8 +18724,8 @@ function Og({
|
|
|
18724
18724
|
q(!1), j(null);
|
|
18725
18725
|
}, []), Ce = Se(() => {
|
|
18726
18726
|
const me = Q[P];
|
|
18727
|
-
return !me || !
|
|
18728
|
-
|
|
18727
|
+
return !me || !E.current ? G : Sg(
|
|
18728
|
+
E.current,
|
|
18729
18729
|
me.gridIndex,
|
|
18730
18730
|
v ? "cover" : "contain"
|
|
18731
18731
|
) ?? G;
|
|
@@ -18751,17 +18751,17 @@ function Og({
|
|
|
18751
18751
|
/* @__PURE__ */ l(
|
|
18752
18752
|
"div",
|
|
18753
18753
|
{
|
|
18754
|
-
ref:
|
|
18754
|
+
ref: E,
|
|
18755
18755
|
className: `${c}-wrapper ${c}-align-entries ${c}-image-align-${p}`.trim(),
|
|
18756
18756
|
style: {
|
|
18757
|
-
gridTemplateColumns: `repeat(${
|
|
18757
|
+
gridTemplateColumns: `repeat(${R}, ${H})`,
|
|
18758
18758
|
rowGap: 0,
|
|
18759
18759
|
columnGap: T,
|
|
18760
18760
|
width: I(s.wrapperWidth ?? 0, n),
|
|
18761
18761
|
[`--${c}-align-entries-row-gap`]: I(d ?? 0, n)
|
|
18762
18762
|
},
|
|
18763
18763
|
children: J.map((me, Te) => {
|
|
18764
|
-
const O = Qa(me.gallery), ue = el(O), N = ue.filter((Ie) => Ie.lightboxMedia).map((Ie) => Ie.lightboxMedia), le = Math.floor(Te /
|
|
18764
|
+
const O = Qa(me.gallery), ue = el(O), N = ue.filter((Ie) => Ie.lightboxMedia).map((Ie) => Ie.lightboxMedia), le = Math.floor(Te / R) === Math.ceil(J.length / R) - 1, se = Le && Te >= ae ? `${we + (Te - ae)}` : void 0, oe = ue[0], re = oe != null && oe.lightboxMedia ? N.findIndex((Ie) => Ie.url === oe.lightboxMedia.url) : -1, $e = /* @__PURE__ */ l("div", { className: `${c}-item-image-wrapper`, style: g, children: ue.length > 0 && /* @__PURE__ */ l(
|
|
18765
18765
|
_g,
|
|
18766
18766
|
{
|
|
18767
18767
|
media: oe.displayMedia,
|
|
@@ -22705,8 +22705,8 @@ function Lh(e, t, n, i) {
|
|
|
22705
22705
|
const c = e[a], s = t.indexOf(c);
|
|
22706
22706
|
if (s === -1)
|
|
22707
22707
|
continue;
|
|
22708
|
-
const d = Tn[s], p = Vi[s], y = ji[s], v = Gi[s], S = Tn[a], h = Vi[a], C = ji[a], w = Gi[a], L = n[d],
|
|
22709
|
-
typeof L == "number" && (r[S] = L), typeof
|
|
22708
|
+
const d = Tn[s], p = Vi[s], y = ji[s], v = Gi[s], S = Tn[a], h = Vi[a], C = ji[a], w = Gi[a], L = n[d], k = n[p], $ = n[y], K = n[v];
|
|
22709
|
+
typeof L == "number" && (r[S] = L), typeof k == "number" && (r[h] = k), typeof $ == "number" && (r[C] = $), typeof K == "number" && (r[w] = K);
|
|
22710
22710
|
}
|
|
22711
22711
|
return r;
|
|
22712
22712
|
}
|
|
@@ -22742,7 +22742,7 @@ function Rh(e, t, n) {
|
|
|
22742
22742
|
const o = xc(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, c = mo(e), s = mo(t), d = e.type === "b" || e.type === void 0 && t.type === "b", p = typeof r == "number" ? r : typeof a == "number" ? a : ii.length, y = ($) => {
|
|
22743
22743
|
if (d)
|
|
22744
22744
|
return $;
|
|
22745
|
-
const K = Uo({ ...t, ...$ }),
|
|
22745
|
+
const K = Uo({ ...t, ...$ }), R = mo($), H = lr(p, R, K), T = Sh(p, H, {
|
|
22746
22746
|
...t,
|
|
22747
22747
|
...$
|
|
22748
22748
|
});
|
|
@@ -22780,11 +22780,11 @@ function Rh(e, t, n) {
|
|
|
22780
22780
|
h
|
|
22781
22781
|
).some(
|
|
22782
22782
|
($, K) => $ < (C[K] ?? $)
|
|
22783
|
-
),
|
|
22784
|
-
const K = e[$],
|
|
22785
|
-
return typeof K == "number" && typeof
|
|
22783
|
+
), k = Tn.some(($) => {
|
|
22784
|
+
const K = e[$], R = t[$];
|
|
22785
|
+
return typeof K == "number" && typeof R == "number" && K !== R;
|
|
22786
22786
|
});
|
|
22787
|
-
return L ||
|
|
22787
|
+
return L || k ? y(e) : e;
|
|
22788
22788
|
}
|
|
22789
22789
|
function Eh(e, t, n, i) {
|
|
22790
22790
|
const o = t.slice(0, e).reduce((a, c) => a + c, 0), r = n.slice(e + 1, t.length - 1).reduce((a, c) => a + c, 0);
|
|
@@ -22839,17 +22839,17 @@ function Ph({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22839
22839
|
dividerWidth: C,
|
|
22840
22840
|
showVisibility: w,
|
|
22841
22841
|
cut: L,
|
|
22842
|
-
showCut:
|
|
22842
|
+
showCut: k,
|
|
22843
22843
|
cutCellMinHeight: $,
|
|
22844
22844
|
cutLabel: K,
|
|
22845
|
-
imageSize:
|
|
22845
|
+
imageSize: R,
|
|
22846
22846
|
imageOnHover: H,
|
|
22847
22847
|
entryHoverEffect: T,
|
|
22848
22848
|
entryHoverShowOption: b,
|
|
22849
22849
|
rowPaddingTop: F,
|
|
22850
22850
|
rowPaddingBottom: g,
|
|
22851
22851
|
rowPaddingTopB: x,
|
|
22852
|
-
columnsOrder:
|
|
22852
|
+
columnsOrder: E,
|
|
22853
22853
|
textPaddingLR: z,
|
|
22854
22854
|
textColor: q,
|
|
22855
22855
|
backgroundColor: ce,
|
|
@@ -22878,7 +22878,7 @@ function Ph({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22878
22878
|
return De && Je.observe(De), () => Je.disconnect();
|
|
22879
22879
|
}, [n, a]), Ee(() => {
|
|
22880
22880
|
G(void 0);
|
|
22881
|
-
}, [L,
|
|
22881
|
+
}, [L, k, t, S]), Ee(() => {
|
|
22882
22882
|
n && !i && G(void 0);
|
|
22883
22883
|
}, [n, i]);
|
|
22884
22884
|
const We = Xi(s, {
|
|
@@ -22948,7 +22948,7 @@ function Ph({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22948
22948
|
e.DColumnPaddingBottom,
|
|
22949
22949
|
e.EColumnPaddingBottom
|
|
22950
22950
|
]
|
|
22951
|
-
), ee = ze(() => Array.isArray(
|
|
22951
|
+
), ee = ze(() => Array.isArray(E) && E.length > 0 ? E : [...ii], [E]), ge = ze(
|
|
22952
22952
|
() => Ah(
|
|
22953
22953
|
ee,
|
|
22954
22954
|
p,
|
|
@@ -22990,11 +22990,11 @@ function Ph({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22990
22990
|
].filter(Boolean).join(" "), Et = !n || i, ut = () => {
|
|
22991
22991
|
if (!Et) return;
|
|
22992
22992
|
const Re = A ?? L;
|
|
22993
|
-
if (!
|
|
22993
|
+
if (!k) {
|
|
22994
22994
|
G(at.length);
|
|
22995
22995
|
return;
|
|
22996
22996
|
}
|
|
22997
|
-
G(Math.min(Re +
|
|
22997
|
+
G(Math.min(Re + k, at.length));
|
|
22998
22998
|
}, Qe = (Re) => I(Re, n ?? !1), wt = f ? x ?? 0 : F ?? 0, Tt = g ?? 0, ft = h ?? 0, _t = wt + ft / 2, Vt = Math.max(Tt, oa), rt = Gl(
|
|
22999
22999
|
0,
|
|
23000
23000
|
gt.length,
|
|
@@ -23019,7 +23019,7 @@ function Ph({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23019
23019
|
Z(null);
|
|
23020
23020
|
return;
|
|
23021
23021
|
}
|
|
23022
|
-
const { x: De, y: qe } = sn(Ge), yt = (
|
|
23022
|
+
const { x: De, y: qe } = sn(Ge), yt = (R == null ? void 0 : R.min) ?? 80, Be = (R == null ? void 0 : R.max) ?? 320, ot = (j == null ? void 0 : j.rowId) === Re.id ? j.widthPx : Mh(yt, Be);
|
|
23023
23023
|
Z({
|
|
23024
23024
|
rowId: Re.id,
|
|
23025
23025
|
url: Je.url,
|
|
@@ -27694,17 +27694,17 @@ function nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27694
27694
|
iconMaxWidth: C = 833e-5,
|
|
27695
27695
|
iconPaddingRight: w = 0,
|
|
27696
27696
|
iconAnimation: L = "rotate 45",
|
|
27697
|
-
questionColor:
|
|
27697
|
+
questionColor: k = "#000000",
|
|
27698
27698
|
answerColor: $ = "#000000",
|
|
27699
27699
|
dividerColor: K = "#0000001F",
|
|
27700
|
-
iconColor:
|
|
27700
|
+
iconColor: R = "#000000",
|
|
27701
27701
|
questionHoverColor: H = "#666666",
|
|
27702
27702
|
iconHoverColor: T = "#666666",
|
|
27703
27703
|
iconActiveColor: b = "#000000",
|
|
27704
27704
|
dividerHoverColor: F = "#000000",
|
|
27705
27705
|
questionFontFamily: g,
|
|
27706
27706
|
questionFontSettings: x,
|
|
27707
|
-
questionFontSize:
|
|
27707
|
+
questionFontSize: E,
|
|
27708
27708
|
questionLineHeight: z,
|
|
27709
27709
|
questionLetterSpacing: q,
|
|
27710
27710
|
questionWordSpacing: ce,
|
|
@@ -27733,12 +27733,12 @@ function nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27733
27733
|
rs(
|
|
27734
27734
|
g,
|
|
27735
27735
|
x,
|
|
27736
|
-
|
|
27736
|
+
E,
|
|
27737
27737
|
z,
|
|
27738
27738
|
q,
|
|
27739
27739
|
ce,
|
|
27740
27740
|
Y,
|
|
27741
|
-
|
|
27741
|
+
k
|
|
27742
27742
|
),
|
|
27743
27743
|
n
|
|
27744
27744
|
)), je = vn(nn(
|
|
@@ -27754,7 +27754,7 @@ function nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27754
27754
|
),
|
|
27755
27755
|
n
|
|
27756
27756
|
)), Oe = is(
|
|
27757
|
-
|
|
27757
|
+
E,
|
|
27758
27758
|
z,
|
|
27759
27759
|
`${a}-question`,
|
|
27760
27760
|
`${a}-text-tight-leading`
|
|
@@ -27763,11 +27763,11 @@ function nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27763
27763
|
A,
|
|
27764
27764
|
`${a}-answer-text`,
|
|
27765
27765
|
`${a}-text-tight-leading`
|
|
27766
|
-
), tt = os(
|
|
27767
|
-
questionColor:
|
|
27766
|
+
), tt = os(E, z, a, n), gt = os(P, A, a, n), bt = Xi(a, {
|
|
27767
|
+
questionColor: k,
|
|
27768
27768
|
answerColor: $,
|
|
27769
27769
|
dividerColor: K,
|
|
27770
|
-
iconColor:
|
|
27770
|
+
iconColor: R,
|
|
27771
27771
|
questionHoverColor: H,
|
|
27772
27772
|
iconHoverColor: T,
|
|
27773
27773
|
iconActiveColor: b,
|
|
@@ -27909,7 +27909,7 @@ function nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27909
27909
|
mn,
|
|
27910
27910
|
{
|
|
27911
27911
|
url: ee,
|
|
27912
|
-
fill:
|
|
27912
|
+
fill: R,
|
|
27913
27913
|
hoverFill: T,
|
|
27914
27914
|
className: `${a}-icon-image`
|
|
27915
27915
|
}
|
|
@@ -29413,8 +29413,8 @@ const as = {
|
|
|
29413
29413
|
const [o, r] = te(0), [a, c] = te(!1), s = ne(null), d = ne(0);
|
|
29414
29414
|
d.current = o;
|
|
29415
29415
|
const p = ze(() => typeof window > "u" ? ls : Math.max(ls, window.innerHeight * sf), []), y = Se((g) => Math.max(0, 1 - g / (p * 1.5)), [p]), v = Se((g) => Math.max(0, 1 - g / (p * 0.45)), [p]), S = Se((g) => {
|
|
29416
|
-
const x = typeof window < "u" ? window.innerHeight : 800,
|
|
29417
|
-
return `translateY(${g}px) scale(${
|
|
29416
|
+
const x = typeof window < "u" ? window.innerHeight : 800, E = Math.max(0.88, 1 - g / x * 0.12);
|
|
29417
|
+
return `translateY(${g}px) scale(${E})`;
|
|
29418
29418
|
}, []), h = Se(() => {
|
|
29419
29419
|
s.current = null;
|
|
29420
29420
|
}, []), C = Se(() => {
|
|
@@ -29431,14 +29431,14 @@ const as = {
|
|
|
29431
29431
|
isLocked: null,
|
|
29432
29432
|
pointerId: g.pointerId
|
|
29433
29433
|
}));
|
|
29434
|
-
}, [e, a, i]),
|
|
29434
|
+
}, [e, a, i]), k = Se((g) => {
|
|
29435
29435
|
const x = s.current;
|
|
29436
29436
|
if (!e || !x || g.pointerType !== "touch" || x.pointerId !== g.pointerId) return;
|
|
29437
|
-
const
|
|
29437
|
+
const E = g.clientX - x.startX, z = g.clientY - x.startY;
|
|
29438
29438
|
if (x.isLocked === null) {
|
|
29439
|
-
if (Math.abs(
|
|
29439
|
+
if (Math.abs(E) < ss && Math.abs(z) < ss)
|
|
29440
29440
|
return;
|
|
29441
|
-
if (z > 0 && z > Math.abs(
|
|
29441
|
+
if (z > 0 && z > Math.abs(E))
|
|
29442
29442
|
x.isLocked = !0, g.currentTarget.setPointerCapture(g.pointerId);
|
|
29443
29443
|
else {
|
|
29444
29444
|
x.isLocked = !1, h();
|
|
@@ -29452,15 +29452,15 @@ const as = {
|
|
|
29452
29452
|
}, [e, h]), $ = Se((g) => {
|
|
29453
29453
|
const x = s.current;
|
|
29454
29454
|
if (!e || !x || g.pointerType !== "touch" || x.pointerId !== g.pointerId) return;
|
|
29455
|
-
const
|
|
29456
|
-
if (g.currentTarget.hasPointerCapture(g.pointerId) && g.currentTarget.releasePointerCapture(g.pointerId), !
|
|
29455
|
+
const E = x.isLocked === !0;
|
|
29456
|
+
if (g.currentTarget.hasPointerCapture(g.pointerId) && g.currentTarget.releasePointerCapture(g.pointerId), !E) {
|
|
29457
29457
|
h();
|
|
29458
29458
|
return;
|
|
29459
29459
|
}
|
|
29460
29460
|
g.clientY - x.startY >= p ? w() : C();
|
|
29461
29461
|
}, [p, w, e, h, C]), K = Se((g) => {
|
|
29462
29462
|
$(g);
|
|
29463
|
-
}, [$]),
|
|
29463
|
+
}, [$]), R = Se((g) => {
|
|
29464
29464
|
$(g);
|
|
29465
29465
|
}, [$]), H = o > 0, T = a ? `transform ${n}ms ease` : "none", b = a ? `opacity ${n}ms ease` : "none", F = o > 0 || a;
|
|
29466
29466
|
return {
|
|
@@ -29481,9 +29481,9 @@ const as = {
|
|
|
29481
29481
|
} : void 0,
|
|
29482
29482
|
swipeHandlers: e ? {
|
|
29483
29483
|
onPointerDown: L,
|
|
29484
|
-
onPointerMove:
|
|
29484
|
+
onPointerMove: k,
|
|
29485
29485
|
onPointerUp: K,
|
|
29486
|
-
onPointerCancel:
|
|
29486
|
+
onPointerCancel: R
|
|
29487
29487
|
} : {},
|
|
29488
29488
|
dismissAreaStyle: e ? {
|
|
29489
29489
|
touchAction: H ? "none" : "pan-x"
|
|
@@ -29698,33 +29698,33 @@ const as = {
|
|
|
29698
29698
|
closeIconHoverColor: C,
|
|
29699
29699
|
thumbnailTrigger: w,
|
|
29700
29700
|
thumbnailVisibility: L,
|
|
29701
|
-
thumbnailObjectFit:
|
|
29701
|
+
thumbnailObjectFit: k,
|
|
29702
29702
|
thumbnailActive: $,
|
|
29703
29703
|
thumbnailActiveColor: K,
|
|
29704
|
-
title1Width:
|
|
29704
|
+
title1Width: R,
|
|
29705
29705
|
title2Width: H,
|
|
29706
29706
|
title3Width: T,
|
|
29707
29707
|
title1MarginLeft: b = 0,
|
|
29708
29708
|
title2MarginLeft: F = 0,
|
|
29709
29709
|
title3MarginLeft: g = 0,
|
|
29710
29710
|
titleRowMarginBottom: x = 0,
|
|
29711
|
-
titleHeaderLayout:
|
|
29711
|
+
titleHeaderLayout: E = "desktop",
|
|
29712
29712
|
contentMarginTop: z,
|
|
29713
29713
|
iconMarginLeft: q
|
|
29714
29714
|
} = n, ce = (u) => I(u, i ?? !1), Y = s ?? n.thumnailSize ?? 0.03, D = ce(Y), _ = ce(d), P = ce(p ?? 0.02), A = ce(y ?? 0), G = ce(z ?? 0), j = Zo(G), Z = ce(q ?? 0), [W, he] = te(0), f = ne(W);
|
|
29715
29715
|
f.current = W;
|
|
29716
|
-
const ve = t[W], { title1: J, title2: pe, title3: Le } = Rf(ve), ae = la("title1", aa(n, "title1"), i), we = la("title2", aa(n, "title2"), i), Q = la("title3", aa(n, "title3"), i), be =
|
|
29716
|
+
const ve = t[W], { title1: J, title2: pe, title3: Le } = Rf(ve), ae = la("title1", aa(n, "title1"), i), we = la("title2", aa(n, "title2"), i), Q = la("title3", aa(n, "title3"), i), be = E === "mobile", xe = !o && (!i || r), Fe = xe, Ce = xe, We = xe, X = Dn(k), me = X ? { "--image-aspect-ratio": Nr(k) } : void 0, Te = !!(J || pe || Le), O = ze(
|
|
29717
29717
|
() => kf(e, J, pe, Le, ae, we, Q),
|
|
29718
29718
|
[e, W, J, pe, Le, ae, we, Q]
|
|
29719
|
-
), ue = ze(() => ({ title1Width:
|
|
29719
|
+
), ue = ze(() => ({ title1Width: R, title2Width: H, title3Width: T }), [R, H, T]), N = ze(() => O.map((u) => ue[u.widthKey]), [O, ue]), le = ze(() => rl(O.length, N), [O.length, N]), se = ze(() => Ic(O.length, N), [O.length, N]), oe = ze(() => O.filter((u) => u.prefix === "title1"), [O]), re = ze(() => O.filter((u) => u.prefix === "title2" || u.prefix === "title3"), [O]), $e = ze(() => cs(oe, ue), [oe, ue]), Ie = ze(() => cs(re, ue), [re, ue]), ee = Se((u, M) => {
|
|
29720
29720
|
const B = O.indexOf(u);
|
|
29721
|
-
if (!be ||
|
|
29721
|
+
if (!be || M === "single-row")
|
|
29722
29722
|
return {
|
|
29723
29723
|
effectiveWidth: se[B] ?? 0,
|
|
29724
29724
|
resolvedWidth: le[B] ?? 0,
|
|
29725
29725
|
maxWidth: Jo(B, le)
|
|
29726
29726
|
};
|
|
29727
|
-
if (
|
|
29727
|
+
if (M === "two-row-top") {
|
|
29728
29728
|
const Me = oe.indexOf(u);
|
|
29729
29729
|
return {
|
|
29730
29730
|
effectiveWidth: $e.effective[Me] ?? 0,
|
|
@@ -29759,7 +29759,7 @@ const as = {
|
|
|
29759
29759
|
[b, F, g]
|
|
29760
29760
|
), V = Se(
|
|
29761
29761
|
(u) => O.slice(0, u + 1).reduce(
|
|
29762
|
-
(
|
|
29762
|
+
(M, B, ye) => M + (B != null && B.marginLeftKey ? de[B.marginLeftKey] ?? 0 : 0) + (le[ye] ?? 0),
|
|
29763
29763
|
0
|
|
29764
29764
|
) + (be ? 0 : b ?? 0),
|
|
29765
29765
|
[O, de, le, be, b]
|
|
@@ -29768,25 +29768,25 @@ const as = {
|
|
|
29768
29768
|
[be, b]
|
|
29769
29769
|
), Oe = Se(
|
|
29770
29770
|
(u) => re.slice(0, u).reduce(
|
|
29771
|
-
(
|
|
29771
|
+
(M, B, ye) => M + (B.marginLeftKey ? de[B.marginLeftKey] ?? 0 : 0) + (Ie.resolved[ye] ?? 0),
|
|
29772
29772
|
0
|
|
29773
29773
|
),
|
|
29774
29774
|
[re, Ie.resolved, de]
|
|
29775
29775
|
), at = Se(
|
|
29776
29776
|
(u) => {
|
|
29777
|
-
const
|
|
29778
|
-
return Oe(u) + (
|
|
29777
|
+
const M = re[u];
|
|
29778
|
+
return Oe(u) + (M.marginLeftKey ? de[M.marginLeftKey] ?? 0 : 0) + (Ie.resolved[u] ?? 0);
|
|
29779
29779
|
},
|
|
29780
29780
|
[re, Ie.resolved, Oe, de]
|
|
29781
|
-
), tt = (u,
|
|
29782
|
-
const B = u.marginLeftKey ? de[u.marginLeftKey] ?? 0 : 0, { effectiveWidth: ye, resolvedWidth: Me, maxWidth: Ve } = ee(u,
|
|
29781
|
+
), tt = (u, M) => {
|
|
29782
|
+
const B = u.marginLeftKey ? de[u.marginLeftKey] ?? 0 : 0, { effectiveWidth: ye, resolvedWidth: Me, maxWidth: Ve } = ee(u, M), pt = o && M === "two-row-top";
|
|
29783
29783
|
return /* @__PURE__ */ U(
|
|
29784
29784
|
"div",
|
|
29785
29785
|
{
|
|
29786
29786
|
className: `${e}-title-cell`,
|
|
29787
29787
|
"data-title": u.prefix,
|
|
29788
29788
|
style: {
|
|
29789
|
-
...
|
|
29789
|
+
...M === "single-row" ? { gridArea: u.prefix } : {},
|
|
29790
29790
|
width: ge(ye),
|
|
29791
29791
|
...B > 0 ? { marginLeft: ge(B) } : {}
|
|
29792
29792
|
},
|
|
@@ -29832,8 +29832,8 @@ const as = {
|
|
|
29832
29832
|
u.className
|
|
29833
29833
|
);
|
|
29834
29834
|
}, gt = () => {
|
|
29835
|
-
const u = be ? -1 : O.findIndex((ye) => ye.prefix === "title1"),
|
|
29836
|
-
const ye = b ?? 0, Me = u >= 0 ? le[u] :
|
|
29835
|
+
const u = be ? -1 : O.findIndex((ye) => ye.prefix === "title1"), M = !be && (o || (b ?? 0) > 0) ? (() => {
|
|
29836
|
+
const ye = b ?? 0, Me = u >= 0 ? le[u] : R ?? 0;
|
|
29837
29837
|
return /* @__PURE__ */ l(
|
|
29838
29838
|
"div",
|
|
29839
29839
|
{
|
|
@@ -29879,12 +29879,12 @@ const as = {
|
|
|
29879
29879
|
ye.marginLeftKey
|
|
29880
29880
|
);
|
|
29881
29881
|
});
|
|
29882
|
-
return
|
|
29883
|
-
}, bt = () => O.map((u,
|
|
29882
|
+
return M ? [M, ...B] : B;
|
|
29883
|
+
}, bt = () => O.map((u, M) => {
|
|
29884
29884
|
const B = Jo(
|
|
29885
|
-
|
|
29885
|
+
M,
|
|
29886
29886
|
le
|
|
29887
|
-
), Me = V(
|
|
29887
|
+
), Me = V(M) - Ii / 2;
|
|
29888
29888
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
29889
29889
|
"div",
|
|
29890
29890
|
{
|
|
@@ -29903,9 +29903,9 @@ const as = {
|
|
|
29903
29903
|
}
|
|
29904
29904
|
}
|
|
29905
29905
|
) }, `${u.widthKey}-junction`);
|
|
29906
|
-
}), Ue = () => re.flatMap((u,
|
|
29906
|
+
}), Ue = () => re.flatMap((u, M) => {
|
|
29907
29907
|
if (!u.marginLeftKey) return [];
|
|
29908
|
-
const B = de[u.marginLeftKey] ?? 0, ye = Oe(
|
|
29908
|
+
const B = de[u.marginLeftKey] ?? 0, ye = Oe(M), { resolvedWidth: Me } = ee(u, "two-row-bottom");
|
|
29909
29909
|
return /* @__PURE__ */ l(
|
|
29910
29910
|
"div",
|
|
29911
29911
|
{
|
|
@@ -29924,8 +29924,8 @@ const as = {
|
|
|
29924
29924
|
},
|
|
29925
29925
|
u.marginLeftKey
|
|
29926
29926
|
);
|
|
29927
|
-
}), dt = () => re.map((u,
|
|
29928
|
-
const { maxWidth: B } = ee(u, "two-row-bottom"), Me = at(
|
|
29927
|
+
}), dt = () => re.map((u, M) => {
|
|
29928
|
+
const { maxWidth: B } = ee(u, "two-row-bottom"), Me = at(M) - Ii / 2;
|
|
29929
29929
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
29930
29930
|
"div",
|
|
29931
29931
|
{
|
|
@@ -30025,7 +30025,7 @@ const as = {
|
|
|
30025
30025
|
}
|
|
30026
30026
|
}
|
|
30027
30027
|
), Mt = () => {
|
|
30028
|
-
const u = O.find((ye) => ye.prefix === "title1"),
|
|
30028
|
+
const u = O.find((ye) => ye.prefix === "title1"), M = O.filter((ye) => ye.prefix === "title2" || ye.prefix === "title3"), B = M.length > 0 || o || (x ?? 0) > 0;
|
|
30029
30029
|
return /* @__PURE__ */ U(it, { children: [
|
|
30030
30030
|
/* @__PURE__ */ U("div", { className: `${e}-header-row-top`, children: [
|
|
30031
30031
|
(b ?? 0) > 0 || o ? Bt() : null,
|
|
@@ -30033,8 +30033,8 @@ const as = {
|
|
|
30033
30033
|
v && lt()
|
|
30034
30034
|
] }),
|
|
30035
30035
|
B ? /* @__PURE__ */ U("div", { className: `${e}-header-row-bottom-wrap`, children: [
|
|
30036
|
-
|
|
30037
|
-
|
|
30036
|
+
M.length > 0 ? /* @__PURE__ */ U("div", { className: `${e}-header-row-bottom`, children: [
|
|
30037
|
+
M.map((ye) => tt(ye, "two-row-bottom")),
|
|
30038
30038
|
o && /* @__PURE__ */ U(it, { children: [
|
|
30039
30039
|
Ue(),
|
|
30040
30040
|
dt()
|
|
@@ -30080,33 +30080,33 @@ const as = {
|
|
|
30080
30080
|
}), Jt = () => {
|
|
30081
30081
|
if (!Nt || t.length === 0)
|
|
30082
30082
|
return _t.current = 0, 0;
|
|
30083
|
-
const u = ft.current[0],
|
|
30084
|
-
if (!u || !
|
|
30085
|
-
const B =
|
|
30083
|
+
const u = ft.current[0], M = ft.current[t.length];
|
|
30084
|
+
if (!u || !M) return _t.current;
|
|
30085
|
+
const B = M.offsetLeft - u.offsetLeft;
|
|
30086
30086
|
return B > 0 && (_t.current = B), _t.current;
|
|
30087
30087
|
}, vt = (u = !1) => {
|
|
30088
30088
|
if (!Nt) return;
|
|
30089
|
-
const
|
|
30090
|
-
!
|
|
30091
|
-
}, zt = (u,
|
|
30089
|
+
const M = ut.current, B = Jt();
|
|
30090
|
+
!M || B <= 0 || B < M.clientWidth * 0.25 || (M.scrollLeft <= 0 ? (M.scrollLeft += B, u && (rt.current.scrollLeft += B), Pt.current && (_e.current += B)) : M.scrollLeft >= B * 2 && (M.scrollLeft -= B, u && (rt.current.scrollLeft -= B), Pt.current && (_e.current -= B)));
|
|
30091
|
+
}, zt = (u, M = ((B) => (B = ut.current) == null ? void 0 : B.scrollLeft)() ?? 0) => {
|
|
30092
30092
|
if (!Nt) return u;
|
|
30093
30093
|
let ye = t.length + u, Me = 1 / 0;
|
|
30094
30094
|
for (let Ve = 0; Ve < Yt; Ve++) {
|
|
30095
30095
|
const pt = Ve * t.length + u, St = ft.current[pt];
|
|
30096
30096
|
if (!St) continue;
|
|
30097
|
-
const cn = Math.abs(St.offsetLeft -
|
|
30097
|
+
const cn = Math.abs(St.offsetLeft - M);
|
|
30098
30098
|
cn < Me && (Me = cn, ye = pt);
|
|
30099
30099
|
}
|
|
30100
30100
|
return ye;
|
|
30101
30101
|
}, Xt = (u) => {
|
|
30102
|
-
const
|
|
30103
|
-
return !u || !
|
|
30102
|
+
const M = ut.current;
|
|
30103
|
+
return !u || !M ? !1 : u.offsetWidth > M.clientWidth + 1;
|
|
30104
30104
|
}, m = (u) => {
|
|
30105
|
-
const
|
|
30106
|
-
if (!u || !
|
|
30105
|
+
const M = ut.current;
|
|
30106
|
+
if (!u || !M || !Xt(u)) return !1;
|
|
30107
30107
|
const B = u.offsetLeft, ye = B + u.offsetWidth;
|
|
30108
|
-
return
|
|
30109
|
-
}, fe = (u = ((
|
|
30108
|
+
return M.scrollLeft >= B - 1 && M.scrollLeft + M.clientWidth <= ye + 1;
|
|
30109
|
+
}, fe = (u = ((M) => (M = ut.current) == null ? void 0 : M.scrollLeft)() ?? 0) => {
|
|
30110
30110
|
for (let ye = 0; ye < ft.current.length; ye += 1) {
|
|
30111
30111
|
const Me = ft.current[ye];
|
|
30112
30112
|
if (Me && m(Me))
|
|
@@ -30119,49 +30119,49 @@ const as = {
|
|
|
30119
30119
|
Ve < B.distance && (B = { flatIndex: Me, distance: Ve });
|
|
30120
30120
|
}), B.flatIndex;
|
|
30121
30121
|
}, Ae = (u) => {
|
|
30122
|
-
ut.current && ft.current.forEach((
|
|
30123
|
-
|
|
30122
|
+
ut.current && ft.current.forEach((M) => {
|
|
30123
|
+
M && (M.style.scrollSnapAlign = Xt(M) && u === "backward" ? "end" : "start");
|
|
30124
30124
|
});
|
|
30125
|
-
}, ke = (u,
|
|
30126
|
-
const ye = u -
|
|
30125
|
+
}, ke = (u, M, B) => {
|
|
30126
|
+
const ye = u - M, Me = fe(M), Ve = ft.current[Me];
|
|
30127
30127
|
if (m(Ve))
|
|
30128
30128
|
return fe(u) % t.length;
|
|
30129
30129
|
const pt = ft.current[Me + 1], St = Ve ? pt ? pt.offsetLeft - Ve.offsetLeft : Ve.offsetWidth : 0, cn = St > 0 ? ye > St * Yo ? 1 : ye < -St * Yo ? -1 : 0 : 0;
|
|
30130
30130
|
return cn === 0 ? B : Nt ? (B + cn + t.length) % t.length : Math.max(0, Math.min(t.length - 1, B + cn));
|
|
30131
30131
|
}, nt = Se((u = !1) => {
|
|
30132
30132
|
if (L !== "on" || o) return;
|
|
30133
|
-
const
|
|
30134
|
-
if (!
|
|
30135
|
-
const Me =
|
|
30133
|
+
const M = wt.current, B = f.current, ye = Tt.current[B];
|
|
30134
|
+
if (!M || !ye || M.scrollWidth <= M.clientWidth) return;
|
|
30135
|
+
const Me = M.scrollLeft, Ve = Me + M.clientWidth, pt = ye.offsetLeft, St = pt + ye.offsetWidth;
|
|
30136
30136
|
if (pt >= Me && St <= Ve) return;
|
|
30137
|
-
const cn =
|
|
30137
|
+
const cn = M.scrollWidth - M.clientWidth;
|
|
30138
30138
|
let on = Me;
|
|
30139
30139
|
if (!u && an.current === null) {
|
|
30140
30140
|
const Ti = Tt.current[B - 1], no = Tt.current[B + 1], Oo = Ti ? ye.offsetLeft - Ti.offsetLeft : no ? no.offsetLeft - ye.offsetLeft : ye.offsetWidth;
|
|
30141
30141
|
St > Ve ? on += Oo : pt < Me && (on -= Oo);
|
|
30142
|
-
} else St > Ve ? on = St -
|
|
30143
|
-
|
|
30142
|
+
} else St > Ve ? on = St - M.clientWidth : on = pt;
|
|
30143
|
+
M.scrollLeft = Math.max(0, Math.min(cn, on));
|
|
30144
30144
|
}, [o, L]), Wt = Se((u = !1) => {
|
|
30145
30145
|
u && (Ge.current = !0), Re.current === null && (Re.current = requestAnimationFrame(() => {
|
|
30146
30146
|
Re.current = null;
|
|
30147
|
-
const
|
|
30148
|
-
Ge.current = !1, nt(
|
|
30147
|
+
const M = Ge.current;
|
|
30148
|
+
Ge.current = !1, nt(M);
|
|
30149
30149
|
}));
|
|
30150
30150
|
}, [nt]), Xe = Se((u) => {
|
|
30151
30151
|
if (u === f.current) return;
|
|
30152
|
-
const
|
|
30152
|
+
const M = f.current;
|
|
30153
30153
|
f.current = u;
|
|
30154
|
-
const B = Math.abs(u -
|
|
30154
|
+
const B = Math.abs(u - M) > 1, ye = Nt && t.length > 1 && (M === t.length - 1 && u === 0 || M === 0 && u === t.length - 1);
|
|
30155
30155
|
he(u), Wt(B || ye);
|
|
30156
30156
|
}, [t.length, Nt, Wt]), ct = () => {
|
|
30157
30157
|
if (!ut.current || t.length === 0 || an.current !== null || rt.current.isActive && rt.current.hasMoved) return;
|
|
30158
|
-
const u = ut.current.scrollLeft,
|
|
30159
|
-
|
|
30158
|
+
const u = ut.current.scrollLeft, M = fe(u) % t.length;
|
|
30159
|
+
M !== f.current && Xe(M);
|
|
30160
30160
|
}, qt = () => {
|
|
30161
30161
|
an.current = null;
|
|
30162
30162
|
}, Rt = (u) => {
|
|
30163
|
-
const
|
|
30164
|
-
|
|
30163
|
+
const M = ut.current;
|
|
30164
|
+
M && (M.style.scrollSnapType = u ? "" : "none");
|
|
30165
30165
|
}, yn = () => {
|
|
30166
30166
|
var u;
|
|
30167
30167
|
(u = At.current) == null || u.call(At), At.current = null;
|
|
@@ -30173,21 +30173,21 @@ const as = {
|
|
|
30173
30173
|
xt.current = null, Pt.current = !1;
|
|
30174
30174
|
return;
|
|
30175
30175
|
}
|
|
30176
|
-
const
|
|
30177
|
-
if (Math.abs(
|
|
30176
|
+
const M = _e.current - u.scrollLeft;
|
|
30177
|
+
if (Math.abs(M) < 0.5) {
|
|
30178
30178
|
u.scrollLeft = _e.current, vt(), ct(), xt.current = null, Pt.current = !1;
|
|
30179
30179
|
return;
|
|
30180
30180
|
}
|
|
30181
|
-
u.scrollLeft +=
|
|
30181
|
+
u.scrollLeft += M * xf, vt(), ct(), Be(), xt.current = requestAnimationFrame(li);
|
|
30182
30182
|
}, si = () => {
|
|
30183
30183
|
const u = Qe.current;
|
|
30184
30184
|
u && (u.style.transition = "", u.style.transform = "", u.style.willChange = "");
|
|
30185
|
-
}, Wo = (u,
|
|
30186
|
-
si(), u.scrollLeft =
|
|
30187
|
-
}, _o = (u, { behavior:
|
|
30185
|
+
}, Wo = (u, M, B, ye) => {
|
|
30186
|
+
si(), u.scrollLeft = M, Ye.current = u.scrollLeft, vt(), B !== void 0 ? (f.current = B, he(B)) : ct(), Rt(!0), ye == null || ye();
|
|
30187
|
+
}, _o = (u, { behavior: M = "smooth", activeIndex: B, onComplete: ye } = {}) => {
|
|
30188
30188
|
const Me = ut.current, Ve = Qe.current;
|
|
30189
30189
|
if (!Me || !Ve) return;
|
|
30190
|
-
if (bn(), yn(), Rt(!1),
|
|
30190
|
+
if (bn(), yn(), Rt(!1), M === "auto") {
|
|
30191
30191
|
Wo(Me, u, B, ye);
|
|
30192
30192
|
return;
|
|
30193
30193
|
}
|
|
@@ -30205,11 +30205,11 @@ const as = {
|
|
|
30205
30205
|
}
|
|
30206
30206
|
});
|
|
30207
30207
|
}, Or = (u = "smooth") => {
|
|
30208
|
-
const
|
|
30209
|
-
if (!
|
|
30210
|
-
const B = fe() % t.length, ye = zt(B,
|
|
30208
|
+
const M = ut.current;
|
|
30209
|
+
if (!M || t.length === 0) return;
|
|
30210
|
+
const B = fe() % t.length, ye = zt(B, M.scrollLeft), Me = ft.current[ye];
|
|
30211
30211
|
Me && _o(Me.offsetLeft, { behavior: u, activeIndex: B });
|
|
30212
|
-
}, zr = (u,
|
|
30212
|
+
}, zr = (u, M = "smooth", B, ye) => {
|
|
30213
30213
|
const Me = ut.current;
|
|
30214
30214
|
if (!Me || t.length === 0) return;
|
|
30215
30215
|
const Ve = (ye ?? Me.scrollLeft) - u, pt = fe(u), St = ft.current[pt];
|
|
@@ -30224,7 +30224,7 @@ const as = {
|
|
|
30224
30224
|
u,
|
|
30225
30225
|
Pc
|
|
30226
30226
|
);
|
|
30227
|
-
Mn(Fc,
|
|
30227
|
+
Mn(Fc, M);
|
|
30228
30228
|
return;
|
|
30229
30229
|
}
|
|
30230
30230
|
const no = ye ?? Me.scrollLeft, Oo = fe(no), al = ft.current[Oo];
|
|
@@ -30233,42 +30233,42 @@ const as = {
|
|
|
30233
30233
|
return;
|
|
30234
30234
|
}
|
|
30235
30235
|
Or("auto");
|
|
30236
|
-
}, Mn = (u,
|
|
30236
|
+
}, Mn = (u, M = "smooth") => {
|
|
30237
30237
|
const B = ut.current;
|
|
30238
30238
|
if (!B || t.length === 0) return;
|
|
30239
30239
|
const ye = zt(u, B.scrollLeft), Me = ft.current[ye];
|
|
30240
|
-
Me && (
|
|
30241
|
-
behavior:
|
|
30240
|
+
Me && (M === "smooth" ? an.current = u : an.current = null, f.current = u, he(u), Wt(!0), _o(Me.offsetLeft, {
|
|
30241
|
+
behavior: M,
|
|
30242
30242
|
activeIndex: u,
|
|
30243
|
-
onComplete:
|
|
30243
|
+
onComplete: M === "smooth" ? qt : void 0
|
|
30244
30244
|
}));
|
|
30245
30245
|
}, Ci = () => {
|
|
30246
30246
|
kt.current && (window.removeEventListener("pointerup", kt.current), window.removeEventListener("pointercancel", kt.current), kt.current = null);
|
|
30247
|
-
}, No = (u,
|
|
30248
|
-
const Ve = B - u, pt = ye -
|
|
30247
|
+
}, No = (u, M, B, ye, Me) => {
|
|
30248
|
+
const Ve = B - u, pt = ye - M, St = Math.abs(Ve), cn = Math.abs(pt);
|
|
30249
30249
|
if (St < $f || St <= cn) return !1;
|
|
30250
30250
|
const on = Ve < 0 ? 1 : -1, Ti = Nt ? (Me + on + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Me + on));
|
|
30251
30251
|
return Ti === Me ? !1 : (Mn(Ti), !0);
|
|
30252
30252
|
}, ci = (u) => {
|
|
30253
30253
|
if (!rt.current.isActive) return;
|
|
30254
30254
|
Ci();
|
|
30255
|
-
const
|
|
30256
|
-
if (!
|
|
30257
|
-
const { scrollLeft: B, startActiveIndex: ye, hasMoved: Me } = rt.current, Ve =
|
|
30255
|
+
const M = ut.current;
|
|
30256
|
+
if (!M) return;
|
|
30257
|
+
const { scrollLeft: B, startActiveIndex: ye, hasMoved: Me } = rt.current, Ve = M.scrollLeft;
|
|
30258
30258
|
vt(!0), rt.current = {
|
|
30259
30259
|
isActive: !1,
|
|
30260
30260
|
startX: 0,
|
|
30261
30261
|
scrollLeft: 0,
|
|
30262
30262
|
startActiveIndex: 0,
|
|
30263
30263
|
hasMoved: !1
|
|
30264
|
-
}, Lt(!1), u !== void 0 &&
|
|
30265
|
-
}, Ho = (u,
|
|
30264
|
+
}, Lt(!1), u !== void 0 && M.hasPointerCapture(u) && M.releasePointerCapture(u), Me ? zr(B, "smooth", ye, Ve) : (Rt(!0), ct()), Be();
|
|
30265
|
+
}, Ho = (u, M) => {
|
|
30266
30266
|
const B = Vt.current;
|
|
30267
30267
|
Vt.current = null, B && (No(
|
|
30268
30268
|
B.startX,
|
|
30269
30269
|
B.startY,
|
|
30270
30270
|
u,
|
|
30271
|
-
|
|
30271
|
+
M,
|
|
30272
30272
|
B.startActiveIndex
|
|
30273
30273
|
), Be());
|
|
30274
30274
|
}, Br = (u) => {
|
|
@@ -30283,29 +30283,29 @@ const as = {
|
|
|
30283
30283
|
return;
|
|
30284
30284
|
}
|
|
30285
30285
|
if (u.pointerType !== "mouse" || u.button !== 0 || jt(u.target)) return;
|
|
30286
|
-
const
|
|
30287
|
-
if (!
|
|
30286
|
+
const M = ut.current;
|
|
30287
|
+
if (!M) return;
|
|
30288
30288
|
bn(), yn(), si(), an.current = null, rt.current = {
|
|
30289
30289
|
isActive: !0,
|
|
30290
30290
|
startX: u.clientX,
|
|
30291
|
-
scrollLeft:
|
|
30291
|
+
scrollLeft: M.scrollLeft,
|
|
30292
30292
|
startActiveIndex: f.current,
|
|
30293
30293
|
hasMoved: !1
|
|
30294
|
-
}, Rt(!1), Be(),
|
|
30294
|
+
}, Rt(!1), Be(), M.setPointerCapture(u.pointerId), Ci();
|
|
30295
30295
|
const B = (ye) => {
|
|
30296
30296
|
ye.pointerType === "mouse" && ci(ye.pointerId);
|
|
30297
30297
|
};
|
|
30298
30298
|
kt.current = B, window.addEventListener("pointerup", B), window.addEventListener("pointercancel", B);
|
|
30299
30299
|
}, Dr = (u) => {
|
|
30300
30300
|
if (!Ce || u.pointerType !== "mouse") return;
|
|
30301
|
-
const
|
|
30302
|
-
if (!
|
|
30301
|
+
const M = ut.current;
|
|
30302
|
+
if (!M || !rt.current.isActive) return;
|
|
30303
30303
|
if (u.buttons === 0) {
|
|
30304
30304
|
ci(u.pointerId);
|
|
30305
30305
|
return;
|
|
30306
30306
|
}
|
|
30307
30307
|
const B = u.clientX - rt.current.startX;
|
|
30308
|
-
Math.abs(B) > wf && (rt.current.hasMoved = !0, Lt(!0)), rt.current.hasMoved && (u.preventDefault(),
|
|
30308
|
+
Math.abs(B) > wf && (rt.current.hasMoved = !0, Lt(!0)), rt.current.hasMoved && (u.preventDefault(), M.scrollLeft = rt.current.scrollLeft - B, vt(!0), ct(), Be());
|
|
30309
30309
|
}, ie = (u) => {
|
|
30310
30310
|
if (Ce) {
|
|
30311
30311
|
if (u.pointerType === "touch") {
|
|
@@ -30330,13 +30330,13 @@ const as = {
|
|
|
30330
30330
|
Be();
|
|
30331
30331
|
const u = Et.current;
|
|
30332
30332
|
if (!u) return;
|
|
30333
|
-
const
|
|
30334
|
-
return u.addEventListener("pointermove",
|
|
30335
|
-
u.removeEventListener("pointermove",
|
|
30333
|
+
const M = () => Be();
|
|
30334
|
+
return u.addEventListener("pointermove", M), u.addEventListener("pointerdown", M), () => {
|
|
30335
|
+
u.removeEventListener("pointermove", M), u.removeEventListener("pointerdown", M), qe.current && clearTimeout(qe.current);
|
|
30336
30336
|
};
|
|
30337
30337
|
}, [Fe, Be]), Ee(() => {
|
|
30338
|
-
const u = (
|
|
30339
|
-
|
|
30338
|
+
const u = (M) => {
|
|
30339
|
+
M.key === "Escape" && ot();
|
|
30340
30340
|
};
|
|
30341
30341
|
return window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u);
|
|
30342
30342
|
}, [ot]), Dt(() => {
|
|
@@ -30348,7 +30348,7 @@ const as = {
|
|
|
30348
30348
|
}, [t.length, Nt]), Ee(() => {
|
|
30349
30349
|
const u = ut.current;
|
|
30350
30350
|
if (!u || o || !xe) return;
|
|
30351
|
-
const
|
|
30351
|
+
const M = (B) => {
|
|
30352
30352
|
if (B.preventDefault(), Math.abs(B.deltaY) <= Math.abs(B.deltaX)) return;
|
|
30353
30353
|
const ye = B.deltaMode === 1 ? bf : B.deltaMode === 2 ? u.clientHeight : 1, Me = B.deltaY * ye * vf;
|
|
30354
30354
|
if (Me !== 0) {
|
|
@@ -30359,13 +30359,13 @@ const as = {
|
|
|
30359
30359
|
Be(), xt.current === null && (xt.current = requestAnimationFrame(li));
|
|
30360
30360
|
}
|
|
30361
30361
|
};
|
|
30362
|
-
return u.addEventListener("wheel",
|
|
30363
|
-
u.removeEventListener("wheel",
|
|
30362
|
+
return u.addEventListener("wheel", M, { passive: !1 }), () => {
|
|
30363
|
+
u.removeEventListener("wheel", M), bn();
|
|
30364
30364
|
};
|
|
30365
30365
|
}, [o, xe, Nt]), Ee(() => {
|
|
30366
30366
|
const u = ut.current;
|
|
30367
30367
|
if (!u) return;
|
|
30368
|
-
const
|
|
30368
|
+
const M = () => {
|
|
30369
30369
|
vt(rt.current.isActive);
|
|
30370
30370
|
const ye = u.scrollLeft, Me = ye - Ye.current;
|
|
30371
30371
|
Ye.current = ye;
|
|
@@ -30376,12 +30376,12 @@ const as = {
|
|
|
30376
30376
|
}
|
|
30377
30377
|
rt.current.isActive && rt.current.hasMoved || ct();
|
|
30378
30378
|
};
|
|
30379
|
-
u.addEventListener("scroll",
|
|
30379
|
+
u.addEventListener("scroll", M, { passive: !0 });
|
|
30380
30380
|
const B = new ResizeObserver(() => {
|
|
30381
30381
|
Jt(), vt(rt.current.isActive), Ae(Ze.current), ct();
|
|
30382
30382
|
});
|
|
30383
30383
|
return B.observe(u), () => {
|
|
30384
|
-
yn(), u.removeEventListener("scroll",
|
|
30384
|
+
yn(), u.removeEventListener("scroll", M), B.disconnect();
|
|
30385
30385
|
};
|
|
30386
30386
|
}, [t.length, Nt]), /* @__PURE__ */ U(
|
|
30387
30387
|
"div",
|
|
@@ -30422,14 +30422,14 @@ const as = {
|
|
|
30422
30422
|
onPointerUp: ie,
|
|
30423
30423
|
onPointerCancel: ie,
|
|
30424
30424
|
onLostPointerCapture: Pe,
|
|
30425
|
-
children: /* @__PURE__ */ l("div", { ref: Qe, className: `${e}-lightbox-strip-track`, style: { gap: A }, children: sn.map((u,
|
|
30426
|
-
const B = u.image.objectFit ?? "contain", ye =
|
|
30425
|
+
children: /* @__PURE__ */ l("div", { ref: Qe, className: `${e}-lightbox-strip-track`, style: { gap: A }, children: sn.map((u, M) => {
|
|
30426
|
+
const B = u.image.objectFit ?? "contain", ye = M % t.length, Me = Math.floor(M / t.length), Ve = Zo(A), pt = `calc(-0.5 * (${Ve} + ${A}))`;
|
|
30427
30427
|
return /* @__PURE__ */ U(
|
|
30428
30428
|
"div",
|
|
30429
30429
|
{
|
|
30430
|
-
ref: (St) => ft.current[
|
|
30430
|
+
ref: (St) => ft.current[M] = St,
|
|
30431
30431
|
className: `${e}-strip-item`,
|
|
30432
|
-
style: { height:
|
|
30432
|
+
style: { height: E === "mobile" ? "calc(0.75 * var(--cntrl-viewport-height, 100vh))" : "100%" },
|
|
30433
30433
|
children: [
|
|
30434
30434
|
/* @__PURE__ */ l(
|
|
30435
30435
|
"img",
|
|
@@ -30508,7 +30508,7 @@ const as = {
|
|
|
30508
30508
|
}
|
|
30509
30509
|
),
|
|
30510
30510
|
t.length > 1 && L === "on" && (() => {
|
|
30511
|
-
const u = Zo(P),
|
|
30511
|
+
const u = Zo(P), M = `calc(-0.5 * (${P} + ${u}))`;
|
|
30512
30512
|
return /* @__PURE__ */ l(
|
|
30513
30513
|
"div",
|
|
30514
30514
|
{
|
|
@@ -30562,9 +30562,9 @@ const as = {
|
|
|
30562
30562
|
...me,
|
|
30563
30563
|
maxWidth: D,
|
|
30564
30564
|
maxHeight: D,
|
|
30565
|
-
width:
|
|
30565
|
+
width: k.display === "cover" ? "auto" : "100%",
|
|
30566
30566
|
height: "auto",
|
|
30567
|
-
objectFit:
|
|
30567
|
+
objectFit: k.display === "cover" ? "cover" : "contain"
|
|
30568
30568
|
}
|
|
30569
30569
|
}
|
|
30570
30570
|
)
|
|
@@ -30601,7 +30601,7 @@ const as = {
|
|
|
30601
30601
|
position: "absolute",
|
|
30602
30602
|
left: 0,
|
|
30603
30603
|
right: 0,
|
|
30604
|
-
bottom:
|
|
30604
|
+
bottom: M,
|
|
30605
30605
|
height: u,
|
|
30606
30606
|
pointerEvents: "auto",
|
|
30607
30607
|
zIndex: 3
|
|
@@ -32294,17 +32294,17 @@ const Bf = Mf(), Df = {
|
|
|
32294
32294
|
maxWidth: C,
|
|
32295
32295
|
maxHeight: w,
|
|
32296
32296
|
textTransition: L,
|
|
32297
|
-
title1Width:
|
|
32297
|
+
title1Width: k,
|
|
32298
32298
|
title2Width: $,
|
|
32299
32299
|
title3Width: K,
|
|
32300
|
-
title1MarginLeft:
|
|
32300
|
+
title1MarginLeft: R = 0,
|
|
32301
32301
|
title2MarginLeft: H = 0,
|
|
32302
32302
|
title3MarginLeft: T = 0,
|
|
32303
32303
|
titleRowMarginBottom: b = 0,
|
|
32304
32304
|
titleHeaderLayout: F = "single-row",
|
|
32305
32305
|
countCloseGap: g = 0,
|
|
32306
32306
|
closeIcon: x,
|
|
32307
|
-
closeIconMaxWidth:
|
|
32307
|
+
closeIconMaxWidth: E,
|
|
32308
32308
|
closeIconColor: z,
|
|
32309
32309
|
closeIconHoverColor: q,
|
|
32310
32310
|
contentMarginTop: ce = 0,
|
|
@@ -32314,7 +32314,7 @@ const Bf = Mf(), Df = {
|
|
|
32314
32314
|
if (!ie) return;
|
|
32315
32315
|
const Pe = ie.closest(`.${e}-lightbox-content-area`);
|
|
32316
32316
|
if (!Pe) return ie.getBoundingClientRect().width;
|
|
32317
|
-
const u = Array.from(Pe.children).reduce((
|
|
32317
|
+
const u = Array.from(Pe.children).reduce((M, B) => !(B instanceof HTMLElement) || B.contains(ie) ? M : M + B.getBoundingClientRect().width, 0);
|
|
32318
32318
|
return Pe.getBoundingClientRect().width - u;
|
|
32319
32319
|
}, [e]), wt = Se(() => {
|
|
32320
32320
|
de.current && (clearTimeout(de.current), de.current = null);
|
|
@@ -32345,12 +32345,12 @@ const Bf = Mf(), Df = {
|
|
|
32345
32345
|
if (ae.length === 0) return;
|
|
32346
32346
|
const Pe = (ie % ae.length + ae.length) % ae.length;
|
|
32347
32347
|
if (Pe === we) return;
|
|
32348
|
-
const u = ae[we],
|
|
32348
|
+
const u = ae[we], M = ae[Pe];
|
|
32349
32349
|
V.current += 1;
|
|
32350
|
-
const B = V.current, ye = L === "fade" && Hl(u == null ? void 0 : u.entry) !== Hl(
|
|
32350
|
+
const B = V.current, ye = L === "fade" && Hl(u == null ? void 0 : u.entry) !== Hl(M == null ? void 0 : M.entry), Me = xt(bt.current), Ve = ye ? (() => {
|
|
32351
32351
|
const St = Qe();
|
|
32352
32352
|
Wc(() => {
|
|
32353
|
-
Ne(
|
|
32353
|
+
Ne(M.entry);
|
|
32354
32354
|
}), bt.current && St && (bt.current.style.width = `${St}px`);
|
|
32355
32355
|
const cn = xt(bt.current);
|
|
32356
32356
|
return bt.current && (bt.current.style.width = ""), { measuredIncomingTitlesHeight: cn, incomingTitlesMeasureWidth: St };
|
|
@@ -32358,9 +32358,9 @@ const Bf = Mf(), Df = {
|
|
|
32358
32358
|
Me ?? 0,
|
|
32359
32359
|
(Ve == null ? void 0 : Ve.measuredIncomingTitlesHeight) ?? 0
|
|
32360
32360
|
) || void 0;
|
|
32361
|
-
oe(B), ue(we), le(!0), Q(Pe), _e(Pe), Oe.current = Pe, ye ? (wt(), pt && $e(pt), Ve != null && Ve.incomingTitlesMeasureWidth && ee(Ve.incomingTitlesMeasureWidth), X((u == null ? void 0 : u.entryIndex) ?? null), Te(!0), je.current =
|
|
32361
|
+
oe(B), ue(we), le(!0), Q(Pe), _e(Pe), Oe.current = Pe, ye ? (wt(), pt && $e(pt), Ve != null && Ve.incomingTitlesMeasureWidth && ee(Ve.incomingTitlesMeasureWidth), X((u == null ? void 0 : u.entryIndex) ?? null), Te(!0), je.current = M.entryIndex, de.current = setTimeout(() => {
|
|
32362
32362
|
X(null), Te(!1), $e(void 0), ee(void 0), Ne(null), de.current = null;
|
|
32363
|
-
}, 400)) : (wt(), X(null), Te(!1), $e(void 0), ee(void 0), Ne(null), je.current =
|
|
32363
|
+
}, 400)) : (wt(), X(null), Te(!1), $e(void 0), ee(void 0), Ne(null), je.current = M.entryIndex);
|
|
32364
32364
|
}, [we, wt, Qe, xt, ae, _e, L]), Nt = Se(() => {
|
|
32365
32365
|
ut.current = null;
|
|
32366
32366
|
}, []), Yt = Se((ie) => {
|
|
@@ -32378,9 +32378,9 @@ const Bf = Mf(), Df = {
|
|
|
32378
32378
|
}
|
|
32379
32379
|
const Pe = ut.current;
|
|
32380
32380
|
if (!Pe || Pe.pointerId !== ie.pointerId || (Nt(), ie.target.closest("[data-controls]"))) return;
|
|
32381
|
-
const
|
|
32381
|
+
const M = ie.clientX - Pe.startX, B = ie.clientY - Pe.startY, ye = Math.abs(M), Me = Math.abs(B);
|
|
32382
32382
|
if (ye >= ig && ye > Me) {
|
|
32383
|
-
Pt(
|
|
32383
|
+
Pt(M > 0 ? we - 1 : we + 1);
|
|
32384
32384
|
return;
|
|
32385
32385
|
}
|
|
32386
32386
|
if (ye > Fl || Me > Fl) return;
|
|
@@ -32422,11 +32422,11 @@ const Bf = Mf(), Df = {
|
|
|
32422
32422
|
if (Pe.key === "Tab" && Ue.current) {
|
|
32423
32423
|
const u = Ue.current.querySelectorAll(
|
|
32424
32424
|
'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
32425
|
-
),
|
|
32425
|
+
), M = Array.from(u).filter(
|
|
32426
32426
|
(Ve) => !Ve.closest('[aria-hidden="true"]')
|
|
32427
32427
|
);
|
|
32428
|
-
if (
|
|
32429
|
-
const B =
|
|
32428
|
+
if (M.length === 0) return;
|
|
32429
|
+
const B = M[0], ye = M[M.length - 1], Me = document.activeElement;
|
|
32430
32430
|
Pe.shiftKey ? (Me === B || !Ue.current.contains(Me)) && (Pe.preventDefault(), ye.focus()) : (Me === ye || !Ue.current.contains(Me)) && (Pe.preventDefault(), B.focus());
|
|
32431
32431
|
}
|
|
32432
32432
|
};
|
|
@@ -32441,13 +32441,13 @@ const Bf = Mf(), Df = {
|
|
|
32441
32441
|
const ie = Math.max(0, ae.length - 1), Pe = Math.min(Math.max(0, a), ie);
|
|
32442
32442
|
Oe.current = Pe, je.current = ((u = ae[Pe]) == null ? void 0 : u.entryIndex) ?? 0, Q(Pe);
|
|
32443
32443
|
}, [a]);
|
|
32444
|
-
const Lt = We !== null ? t[We] : null, Ft = O !== null ? ae[O] : null, tn = (xe == null ? void 0 : xe.title1) || (xe == null ? void 0 : xe.title2) || (xe == null ? void 0 : xe.title3) || (Lt == null ? void 0 : Lt.title1) || (Lt == null ? void 0 : Lt.title2) || (Lt == null ? void 0 : Lt.title3), en = ug(y, ae, t), $t = x !== null, an = tn || en || $t, Re = en && $t ? { gap: G } : void 0, Ge = `${e}-titles-stack${J ? ` ${e}-titles-stack-stacked` : ""}`, Je = `${e}-titles-layer-out${J ? ` ${e}-titles-layer-out-stacked` : ""}`, De = `${e}-titles-layer-out`, qe = (
|
|
32444
|
+
const Lt = We !== null ? t[We] : null, Ft = O !== null ? ae[O] : null, tn = (xe == null ? void 0 : xe.title1) || (xe == null ? void 0 : xe.title2) || (xe == null ? void 0 : xe.title3) || (Lt == null ? void 0 : Lt.title1) || (Lt == null ? void 0 : Lt.title2) || (Lt == null ? void 0 : Lt.title3), en = ug(y, ae, t), $t = x !== null, an = tn || en || $t, Re = en && $t ? { gap: G } : void 0, Ge = `${e}-titles-stack${J ? ` ${e}-titles-stack-stacked` : ""}`, Je = `${e}-titles-layer-out${J ? ` ${e}-titles-layer-out-stacked` : ""}`, De = `${e}-titles-layer-out`, qe = (R ?? 0) > 0 || o, yt = D(b), Be = ze(
|
|
32445
32445
|
() => ({
|
|
32446
|
-
title1Width:
|
|
32446
|
+
title1Width: k ?? Wi.title1Width,
|
|
32447
32447
|
title2Width: $ ?? Wi.title2Width,
|
|
32448
32448
|
title3Width: K ?? Wi.title3Width
|
|
32449
32449
|
}),
|
|
32450
|
-
[
|
|
32450
|
+
[k, $, K]
|
|
32451
32451
|
), ot = ze(() => ({
|
|
32452
32452
|
title2MarginLeft: H,
|
|
32453
32453
|
title3MarginLeft: T
|
|
@@ -32491,11 +32491,11 @@ const Bf = Mf(), Df = {
|
|
|
32491
32491
|
maxWidth: hn(B, Zt.resolved)
|
|
32492
32492
|
};
|
|
32493
32493
|
}
|
|
32494
|
-
const
|
|
32494
|
+
const M = Ot.findIndex((B) => B.prefix === ie.prefix);
|
|
32495
32495
|
return {
|
|
32496
|
-
effectiveWidth: Ut.effective[
|
|
32497
|
-
resolvedWidth: Ut.resolved[
|
|
32498
|
-
maxWidth: hn(
|
|
32496
|
+
effectiveWidth: Ut.effective[M] ?? 0,
|
|
32497
|
+
resolvedWidth: Ut.resolved[M] ?? 0,
|
|
32498
|
+
maxWidth: hn(M, Ut.resolved)
|
|
32499
32499
|
};
|
|
32500
32500
|
}, [
|
|
32501
32501
|
lt,
|
|
@@ -32512,14 +32512,14 @@ const Bf = Mf(), Df = {
|
|
|
32512
32512
|
Mt,
|
|
32513
32513
|
ot,
|
|
32514
32514
|
ie
|
|
32515
|
-
) + (J ? 0 :
|
|
32516
|
-
[lt, Mt, ot, J,
|
|
32515
|
+
) + (J ? 0 : R ?? 0),
|
|
32516
|
+
[lt, Mt, ot, J, R]
|
|
32517
32517
|
), It = Se(
|
|
32518
|
-
() => J ? 0 :
|
|
32519
|
-
[J,
|
|
32518
|
+
() => J ? 0 : R ?? 0,
|
|
32519
|
+
[J, R]
|
|
32520
32520
|
), Jt = Se(
|
|
32521
32521
|
(ie) => Ot.slice(0, ie).reduce(
|
|
32522
|
-
(Pe, u,
|
|
32522
|
+
(Pe, u, M) => Pe + (u.marginLeftKey ? ot[u.marginLeftKey] ?? 0 : 0) + (Ut.resolved[M] ?? 0),
|
|
32523
32523
|
0
|
|
32524
32524
|
),
|
|
32525
32525
|
[Ot, Ut.resolved, ot]
|
|
@@ -32546,18 +32546,18 @@ const Bf = Mf(), Df = {
|
|
|
32546
32546
|
maxWidth: hn(pt, St)
|
|
32547
32547
|
};
|
|
32548
32548
|
}
|
|
32549
|
-
const
|
|
32549
|
+
const M = ie.filter((Ve) => Ve.prefix === "title2" || Ve.prefix === "title3"), B = M.findIndex((Ve) => Ve.prefix === Pe.prefix), { resolved: ye, effective: Me } = Qn(M, Be);
|
|
32550
32550
|
return {
|
|
32551
32551
|
effectiveWidth: Me[B] ?? 0,
|
|
32552
32552
|
resolvedWidth: ye[B] ?? 0,
|
|
32553
32553
|
maxWidth: hn(B, ye)
|
|
32554
32554
|
};
|
|
32555
32555
|
}, [Be, J]), Xt = (ie, Pe, u) => {
|
|
32556
|
-
const
|
|
32556
|
+
const M = ie.marginLeftKey ? ot[ie.marginLeftKey] ?? 0 : 0, {
|
|
32557
32557
|
effectiveWidth: B,
|
|
32558
32558
|
resolvedWidth: ye,
|
|
32559
32559
|
maxWidth: Me
|
|
32560
|
-
} = u ?? Ht(ie, Pe), Ve = Math.max(
|
|
32560
|
+
} = u ?? Ht(ie, Pe), Ve = Math.max(M, Zn), pt = o && Pe === "two-row-top";
|
|
32561
32561
|
return /* @__PURE__ */ U(
|
|
32562
32562
|
"div",
|
|
32563
32563
|
{
|
|
@@ -32565,7 +32565,7 @@ const Bf = Mf(), Df = {
|
|
|
32565
32565
|
"data-title": ie.prefix,
|
|
32566
32566
|
style: {
|
|
32567
32567
|
width: D(B),
|
|
32568
|
-
...
|
|
32568
|
+
...M > 0 ? { marginLeft: D(M) } : {}
|
|
32569
32569
|
},
|
|
32570
32570
|
children: [
|
|
32571
32571
|
/* @__PURE__ */ l("p", { className: ie.className, style: ie.style, children: ie.text }),
|
|
@@ -32579,7 +32579,7 @@ const Bf = Mf(), Df = {
|
|
|
32579
32579
|
style: {
|
|
32580
32580
|
position: "absolute",
|
|
32581
32581
|
top: 0,
|
|
32582
|
-
left: D(-
|
|
32582
|
+
left: D(-M),
|
|
32583
32583
|
width: D(Ve),
|
|
32584
32584
|
height: "100%",
|
|
32585
32585
|
pointerEvents: "auto"
|
|
@@ -32609,21 +32609,21 @@ const Bf = Mf(), Df = {
|
|
|
32609
32609
|
ie.className
|
|
32610
32610
|
);
|
|
32611
32611
|
}, m = (ie = "two-row") => {
|
|
32612
|
-
const Pe = lt.findIndex((B) => B.prefix === "title1"), u = Pe >= 0 ? Mt[Pe] : Be.title1Width,
|
|
32612
|
+
const Pe = lt.findIndex((B) => B.prefix === "title1"), u = Pe >= 0 ? Mt[Pe] : Be.title1Width, M = ie === "two-row" && o;
|
|
32613
32613
|
return /* @__PURE__ */ l(
|
|
32614
32614
|
"div",
|
|
32615
32615
|
{
|
|
32616
|
-
...
|
|
32616
|
+
...M ? {
|
|
32617
32617
|
"data-controls": "title1MarginLeft",
|
|
32618
32618
|
"data-controls-axis": "x",
|
|
32619
32619
|
"data-controls-min": "0",
|
|
32620
32620
|
"data-controls-max-fraction": String(u)
|
|
32621
32621
|
} : {},
|
|
32622
32622
|
style: {
|
|
32623
|
-
width: D(
|
|
32623
|
+
width: D(R ?? 0),
|
|
32624
32624
|
flexShrink: 0,
|
|
32625
32625
|
alignSelf: "stretch",
|
|
32626
|
-
...
|
|
32626
|
+
...M ? { pointerEvents: "auto" } : {}
|
|
32627
32627
|
}
|
|
32628
32628
|
}
|
|
32629
32629
|
);
|
|
@@ -32752,8 +32752,8 @@ const Bf = Mf(), Df = {
|
|
|
32752
32752
|
{
|
|
32753
32753
|
className: `${e}-close-icon`,
|
|
32754
32754
|
style: {
|
|
32755
|
-
width: I(
|
|
32756
|
-
height: I(
|
|
32755
|
+
width: I(E ?? 0, i),
|
|
32756
|
+
height: I(E ?? 0, i),
|
|
32757
32757
|
marginRight: Z,
|
|
32758
32758
|
"--close-icon-hover-color": q
|
|
32759
32759
|
},
|
|
@@ -32832,17 +32832,17 @@ const Bf = Mf(), Df = {
|
|
|
32832
32832
|
)) });
|
|
32833
32833
|
}, yn = (ie) => {
|
|
32834
32834
|
if (!ie) return null;
|
|
32835
|
-
const Pe = Jn(e, ie, W, he, f), u = Pe.find((
|
|
32835
|
+
const Pe = Jn(e, ie, W, he, f), u = Pe.find((M) => M.prefix === "title1");
|
|
32836
32836
|
return u ? Xt(
|
|
32837
32837
|
u,
|
|
32838
32838
|
"two-row-top",
|
|
32839
32839
|
zt(Pe, u, "two-row-top")
|
|
32840
32840
|
) : null;
|
|
32841
32841
|
}, bn = (ie, Pe = !1) => {
|
|
32842
|
-
const u = ie ? Jn(e, ie, W, he, f) : [],
|
|
32843
|
-
return
|
|
32844
|
-
|
|
32845
|
-
|
|
32842
|
+
const u = ie ? Jn(e, ie, W, he, f) : [], M = u.filter((Me) => Me.prefix === "title2" || Me.prefix === "title3"), B = o && Pe;
|
|
32843
|
+
return M.length > 0 || B || (b ?? 0) > 0 ? /* @__PURE__ */ U("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
32844
|
+
M.length > 0 ? /* @__PURE__ */ U("div", { className: `${e}-titles-row-bottom`, children: [
|
|
32845
|
+
M.map((Me) => Xt(
|
|
32846
32846
|
Me,
|
|
32847
32847
|
"two-row-bottom",
|
|
32848
32848
|
zt(u, Me, "two-row-bottom")
|
|
@@ -32872,8 +32872,8 @@ const Bf = Mf(), Df = {
|
|
|
32872
32872
|
qt(yn(ie)),
|
|
32873
32873
|
bn(ie, Pe)
|
|
32874
32874
|
] }), si = (ie) => J ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-two-row`, children: li(ie) }) : ie ? /* @__PURE__ */ l("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: Rt(ie) }) : null, Wo = () => {
|
|
32875
|
-
const ie = J ? -1 : lt.findIndex((
|
|
32876
|
-
const
|
|
32875
|
+
const ie = J ? -1 : lt.findIndex((M) => M.prefix === "title1"), Pe = !J && (o || (R ?? 0) > 0) ? (() => {
|
|
32876
|
+
const M = R ?? 0, B = ie >= 0 ? Mt[ie] : Be.title1Width, ye = Math.max(M, Zn);
|
|
32877
32877
|
return /* @__PURE__ */ l(
|
|
32878
32878
|
"div",
|
|
32879
32879
|
{
|
|
@@ -32892,9 +32892,9 @@ const Bf = Mf(), Df = {
|
|
|
32892
32892
|
},
|
|
32893
32893
|
"title1MarginLeft"
|
|
32894
32894
|
);
|
|
32895
|
-
})() : null, u = lt.flatMap((
|
|
32896
|
-
if (!
|
|
32897
|
-
const ye = ot[
|
|
32895
|
+
})() : null, u = lt.flatMap((M, B) => {
|
|
32896
|
+
if (!M.marginLeftKey) return [];
|
|
32897
|
+
const ye = ot[M.marginLeftKey] ?? 0, Me = dc(
|
|
32898
32898
|
lt,
|
|
32899
32899
|
Mt,
|
|
32900
32900
|
ot,
|
|
@@ -32903,7 +32903,7 @@ const Bf = Mf(), Df = {
|
|
|
32903
32903
|
return /* @__PURE__ */ l(
|
|
32904
32904
|
"div",
|
|
32905
32905
|
{
|
|
32906
|
-
"data-controls":
|
|
32906
|
+
"data-controls": M.marginLeftKey,
|
|
32907
32907
|
"data-controls-axis": "x",
|
|
32908
32908
|
"data-controls-min": "0",
|
|
32909
32909
|
"data-controls-max-fraction": String(Mt[B]),
|
|
@@ -32916,7 +32916,7 @@ const Bf = Mf(), Df = {
|
|
|
32916
32916
|
pointerEvents: "auto"
|
|
32917
32917
|
}
|
|
32918
32918
|
},
|
|
32919
|
-
|
|
32919
|
+
M.marginLeftKey
|
|
32920
32920
|
);
|
|
32921
32921
|
});
|
|
32922
32922
|
return Pe ? [Pe, ...u] : u;
|
|
@@ -32942,7 +32942,7 @@ const Bf = Mf(), Df = {
|
|
|
32942
32942
|
) }, `${ie.widthKey}-junction`);
|
|
32943
32943
|
}), Or = () => Ot.flatMap((ie, Pe) => {
|
|
32944
32944
|
if (!ie.marginLeftKey) return [];
|
|
32945
|
-
const u = ot[ie.marginLeftKey] ?? 0,
|
|
32945
|
+
const u = ot[ie.marginLeftKey] ?? 0, M = Jt(Pe), B = Math.max(u, Zn), { resolvedWidth: ye } = Ht(ie, "two-row-bottom");
|
|
32946
32946
|
return /* @__PURE__ */ l(
|
|
32947
32947
|
"div",
|
|
32948
32948
|
{
|
|
@@ -32953,7 +32953,7 @@ const Bf = Mf(), Df = {
|
|
|
32953
32953
|
style: {
|
|
32954
32954
|
position: "absolute",
|
|
32955
32955
|
top: 0,
|
|
32956
|
-
left: D(
|
|
32956
|
+
left: D(M),
|
|
32957
32957
|
width: D(B),
|
|
32958
32958
|
height: "100%",
|
|
32959
32959
|
pointerEvents: "auto"
|
|
@@ -32999,7 +32999,7 @@ const Bf = Mf(), Df = {
|
|
|
32999
32999
|
style: { "--image-object-fit": ie.objectFit }
|
|
33000
33000
|
} : Dn(v) ? { className: `${e}-slide-image ${e}-slide-image-cover` } : { className: `${e}-slide-image ${e}-slide-image-fit` }, ci = (ie) => {
|
|
33001
33001
|
if (ie.length === 0) return null;
|
|
33002
|
-
const Pe = ie.length > 1, u = Qr(_),
|
|
33002
|
+
const Pe = ie.length > 1, u = Qr(_), M = `calc(-0.5 * (${u} + ${_}))`;
|
|
33003
33003
|
if (ie.length === 1) {
|
|
33004
33004
|
const B = ie[0];
|
|
33005
33005
|
return /* @__PURE__ */ l("div", { ...Ci(B), children: /* @__PURE__ */ l("img", { ...No(B), src: B.url, alt: B.name ?? "", draggable: !1 }) });
|
|
@@ -33027,7 +33027,7 @@ const Bf = Mf(), Df = {
|
|
|
33027
33027
|
style: {
|
|
33028
33028
|
position: "absolute",
|
|
33029
33029
|
top: 0,
|
|
33030
|
-
right:
|
|
33030
|
+
right: M,
|
|
33031
33031
|
width: u,
|
|
33032
33032
|
height: "100%",
|
|
33033
33033
|
pointerEvents: "auto",
|
|
@@ -33782,17 +33782,17 @@ function Gf(e) {
|
|
|
33782
33782
|
`;
|
|
33783
33783
|
}
|
|
33784
33784
|
const qf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: r, metadata: a }) => {
|
|
33785
|
-
const { prefix: c } = pn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: p, type: y } = e, v = ne(null), [S, h] = te(!1), [C, w] = te(0), L = ne(!1),
|
|
33785
|
+
const { prefix: c } = pn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: p, type: y } = e, v = ne(null), [S, h] = te(!1), [C, w] = te(0), L = ne(!1), k = ne(!1), $ = ne(!1), K = ze(
|
|
33786
33786
|
() => (t ?? []).filter((g) => Oi(g).length > 0),
|
|
33787
33787
|
[t]
|
|
33788
|
-
),
|
|
33789
|
-
H && ($.current = !0, rg(
|
|
33788
|
+
), R = S && K.length > 0, H = !n, T = Se(() => {
|
|
33789
|
+
H && ($.current = !0, rg(k.current, s), k.current = !1);
|
|
33790
33790
|
}, [H, s]), b = (g = 0) => {
|
|
33791
33791
|
if (K.length === 0 || n && !i && !o) return;
|
|
33792
|
-
const x = ar(K, y),
|
|
33793
|
-
if (w(
|
|
33792
|
+
const x = ar(K, y), E = Math.max(0, Math.min(g, x.length - 1));
|
|
33793
|
+
if (w(E), H) {
|
|
33794
33794
|
const z = sc();
|
|
33795
|
-
lc(
|
|
33795
|
+
lc(E + 1, s, z), k.current = !z;
|
|
33796
33796
|
}
|
|
33797
33797
|
h(!0);
|
|
33798
33798
|
}, F = Se(() => {
|
|
@@ -33819,12 +33819,12 @@ const qf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33819
33819
|
h(!1);
|
|
33820
33820
|
return;
|
|
33821
33821
|
}
|
|
33822
|
-
const
|
|
33823
|
-
if (
|
|
33822
|
+
const E = Nl(x, ar(K, y).length);
|
|
33823
|
+
if (E < 0) {
|
|
33824
33824
|
h(!1);
|
|
33825
33825
|
return;
|
|
33826
33826
|
}
|
|
33827
|
-
|
|
33827
|
+
k.current = !1, w(E), h(!0);
|
|
33828
33828
|
};
|
|
33829
33829
|
return window.addEventListener("popstate", g), () => window.removeEventListener("popstate", g);
|
|
33830
33830
|
}, [K, s, H, y]), /* @__PURE__ */ U(it, { children: [
|
|
@@ -33856,7 +33856,7 @@ const qf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33856
33856
|
}
|
|
33857
33857
|
) : null
|
|
33858
33858
|
] }),
|
|
33859
|
-
|
|
33859
|
+
R && typeof document < "u" && (() => {
|
|
33860
33860
|
const g = (r ? document.getElementById(r) : null) ?? document.body;
|
|
33861
33861
|
return Yi(
|
|
33862
33862
|
/* @__PURE__ */ l(
|
|
@@ -35363,15 +35363,15 @@ async function ry(e) {
|
|
|
35363
35363
|
return new Map(n);
|
|
35364
35364
|
}
|
|
35365
35365
|
function ay({ settings: e, content: t = [], isEditor: n }) {
|
|
35366
|
-
const { prefix: i } = pn(), [o, r] = te(null), [a, c] = te([]), [s, d] = te(0), p = ne(0), [y, v] = te({ x: 0, y: 0 }), [S, h] = te("none"), C = ne({ x: 0, y: 0 }), [w, L] = te(!1), [
|
|
35367
|
-
imageSize:
|
|
35366
|
+
const { prefix: i } = pn(), [o, r] = te(null), [a, c] = te([]), [s, d] = te(0), p = ne(0), [y, v] = te({ x: 0, y: 0 }), [S, h] = te("none"), C = ne({ x: 0, y: 0 }), [w, L] = te(!1), [k, $] = te(!1), K = ne(/* @__PURE__ */ new Map()), {
|
|
35367
|
+
imageSize: R = ty,
|
|
35368
35368
|
cursor: H = "system",
|
|
35369
35369
|
target: T = "area",
|
|
35370
35370
|
position: b = "random",
|
|
35371
35371
|
visible: F = "all",
|
|
35372
35372
|
defaultCursor: g = null,
|
|
35373
35373
|
hoverCursor: x = null
|
|
35374
|
-
} = e,
|
|
35374
|
+
} = e, E = ze(() => iy(i), [i]), z = Se((_, P, A = a) => {
|
|
35375
35375
|
if (!o) return;
|
|
35376
35376
|
const G = o.getBoundingClientRect(), j = _ - G.left, Z = P - G.top;
|
|
35377
35377
|
v({ x: j, y: Z }), h(
|
|
@@ -35411,7 +35411,7 @@ function ay({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35411
35411
|
}, [w]);
|
|
35412
35412
|
const q = (_, P, A, G = {}) => {
|
|
35413
35413
|
var ve;
|
|
35414
|
-
const j = ((ve = K.current.get(_.image.url)) == null ? void 0 : ve.aspectRatio) ?? 1, Z = us(_.image.url,
|
|
35414
|
+
const j = ((ve = K.current.get(_.image.url)) == null ? void 0 : ve.aspectRatio) ?? 1, Z = us(_.image.url, R, K.current), { heightPx: W } = vr(Z, j);
|
|
35415
35415
|
let he = 0, f = 0;
|
|
35416
35416
|
return b === "same" ? { x: he, y: f } = ds(P, A, Z, j) : (he = G.x ?? Math.random() * P, f = G.y ?? Math.random() * A, { x: he, y: f } = Ia(he, f, P, A, Z, W)), {
|
|
35417
35417
|
id: p.current++,
|
|
@@ -35429,7 +35429,7 @@ function ay({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35429
35429
|
if (!o) return;
|
|
35430
35430
|
const _ = o.getBoundingClientRect(), P = _.width, A = _.height;
|
|
35431
35431
|
P === 0 || A === 0 || c((G) => G.length === 0 ? G : G.map((j) => {
|
|
35432
|
-
const Z =
|
|
35432
|
+
const Z = R.sizeType === "random" ? j.widthPx : us(j.url, R, K.current), { heightPx: W } = vr(Z, j.aspectRatio);
|
|
35433
35433
|
if (b === "same") {
|
|
35434
35434
|
const { x: ve, y: J } = ds(P, A, Z, j.aspectRatio);
|
|
35435
35435
|
return { ...j, x: ve, y: J, widthPx: Z };
|
|
@@ -35446,21 +35446,21 @@ function ay({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35446
35446
|
}));
|
|
35447
35447
|
};
|
|
35448
35448
|
Ee(() => {
|
|
35449
|
-
if (!o || t.length === 0 || !
|
|
35449
|
+
if (!o || t.length === 0 || !k) return;
|
|
35450
35450
|
const _ = o.getBoundingClientRect(), P = _.width, A = _.height, G = q(t[0], P, A);
|
|
35451
35451
|
c([G]), d(1);
|
|
35452
|
-
}, [
|
|
35452
|
+
}, [R, b, o, t, k]), Ee(() => {
|
|
35453
35453
|
if (!o) return;
|
|
35454
35454
|
ce();
|
|
35455
35455
|
const _ = new ResizeObserver(ce);
|
|
35456
35456
|
return _.observe(o), window.addEventListener("resize", ce), () => {
|
|
35457
35457
|
_.disconnect(), window.removeEventListener("resize", ce);
|
|
35458
35458
|
};
|
|
35459
|
-
}, [o, b,
|
|
35459
|
+
}, [o, b, R, a.length]), Ee(() => {
|
|
35460
35460
|
F === "last One" && c((_) => _.length > 0 ? [_[_.length - 1]] : []);
|
|
35461
35461
|
}, [F]);
|
|
35462
35462
|
const Y = (_) => {
|
|
35463
|
-
if (!o || t.length === 0 || !
|
|
35463
|
+
if (!o || t.length === 0 || !k) return;
|
|
35464
35464
|
const P = o.getBoundingClientRect(), A = _.clientX - P.left, G = _.clientY - P.top;
|
|
35465
35465
|
if (T === "image" && !Rc(A, G, a)) return;
|
|
35466
35466
|
let j = 0, Z = 0;
|
|
@@ -35469,7 +35469,7 @@ function ay({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35469
35469
|
c(f), d((ve) => ve >= t.length - 1 ? 0 : ve + 1), z(_.clientX, _.clientY, f);
|
|
35470
35470
|
}, D = H === "custom" && S !== "none";
|
|
35471
35471
|
return /* @__PURE__ */ U(it, { children: [
|
|
35472
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
35472
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: E } }),
|
|
35473
35473
|
/* @__PURE__ */ U(
|
|
35474
35474
|
"div",
|
|
35475
35475
|
{
|
|
@@ -36481,7 +36481,7 @@ function vy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36481
36481
|
maxHeight: s,
|
|
36482
36482
|
transition: d = 1e3,
|
|
36483
36483
|
bgImage: p = "greyscale"
|
|
36484
|
-
} = e, y = t ?? [], v = ps(y.length), [S, h] = te(v.activeIndex), [C, w] = te(v.backgroundIndex), [L,
|
|
36484
|
+
} = e, y = t ?? [], v = ps(y.length), [S, h] = te(v.activeIndex), [C, w] = te(v.backgroundIndex), [L, k] = te(!1), [$, K] = te(!1), [R, H] = te(null), [T, b] = te(null), [F, g] = te(0), [x, E] = te(1), [z, q] = te("none"), [ce, Y] = te("next"), [D, _] = te({}), [P, A] = te({ width: 0, height: 0 }), G = ne(null), j = ne(null), Z = !n || !!i, W = a ?? 60, he = Math.max(10, Math.min(100, c ?? W)), f = Math.max(10, Math.min(100, s ?? W)), ve = Math.max(100, d), J = oo(p), pe = Se((re) => {
|
|
36485
36485
|
const $e = hy(re ? D[re] : void 0);
|
|
36486
36486
|
return fy(
|
|
36487
36487
|
P.width,
|
|
@@ -36512,7 +36512,7 @@ function vy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36512
36512
|
});
|
|
36513
36513
|
}, [t]), Ee(() => {
|
|
36514
36514
|
const { backgroundIndex: re, activeIndex: $e } = ps(y.length);
|
|
36515
|
-
h($e), w(re),
|
|
36515
|
+
h($e), w(re), k(!1), K(!1), H(null), b(null), g(0), E(1), q("none"), Y("next");
|
|
36516
36516
|
}, [y.length, t]), Ee(() => () => {
|
|
36517
36517
|
G.current && clearTimeout(G.current);
|
|
36518
36518
|
}, []);
|
|
@@ -36520,12 +36520,12 @@ function vy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36520
36520
|
var de, V, je, Oe;
|
|
36521
36521
|
if (!Z || L || y.length <= 1) return;
|
|
36522
36522
|
const $e = re === "next" ? (S + 1) % y.length : (S - 1 + y.length) % y.length, Ie = pe((V = (de = y[S]) == null ? void 0 : de.image) == null ? void 0 : V.url), ee = pe((Oe = (je = y[$e]) == null ? void 0 : je.image) == null ? void 0 : Oe.url), ge = ms(P.width, P.height, Ie), Ne = ms(P.width, P.height, ee);
|
|
36523
|
-
G.current && clearTimeout(G.current), Y(re), K(!0),
|
|
36523
|
+
G.current && clearTimeout(G.current), Y(re), K(!0), k(!0), re === "next" ? (H(S), b($e), g(0), E(1), q(oo(p, 0, 1))) : (w(gy($e, y.length)), H($e), b(S), g(1), E(Ne), q(oo(p, 1, Ne))), requestAnimationFrame(() => {
|
|
36524
36524
|
K(!1), requestAnimationFrame(() => {
|
|
36525
|
-
re === "next" ? (g(1),
|
|
36525
|
+
re === "next" ? (g(1), E(ge), q(oo(p, 1, ge))) : (g(0), E(1), q(oo(p, 0, 1)));
|
|
36526
36526
|
});
|
|
36527
36527
|
}), G.current = setTimeout(() => {
|
|
36528
|
-
re === "next" && w(S), h($e), H(null), b(null),
|
|
36528
|
+
re === "next" && w(S), h($e), H(null), b(null), k(!1);
|
|
36529
36529
|
}, ve);
|
|
36530
36530
|
}, [
|
|
36531
36531
|
S,
|
|
@@ -36537,7 +36537,7 @@ function vy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36537
36537
|
Z,
|
|
36538
36538
|
y,
|
|
36539
36539
|
ve
|
|
36540
|
-
]), ae = y[S], we = C !== null ? y[C] : null, Q =
|
|
36540
|
+
]), ae = y[S], we = C !== null ? y[C] : null, Q = R !== null ? y[R] : null, be = T !== null ? y[T] : null, xe = y.length <= 1 ? 0 : (S - 1 + y.length) % y.length, Fe = y.length <= 1 ? 0 : (S + 1) % y.length, Ce = pe((Te = ae == null ? void 0 : ae.image) == null ? void 0 : Te.url), We = pe((O = Q == null ? void 0 : Q.image) == null ? void 0 : O.url), X = pe((ue = be == null ? void 0 : be.image) == null ? void 0 : ue.url), me = {
|
|
36541
36541
|
[`--${o}-transition-ms`]: `${ve}ms`
|
|
36542
36542
|
};
|
|
36543
36543
|
return /* @__PURE__ */ U(it, { children: [
|
|
@@ -37631,17 +37631,17 @@ function Iy({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
37631
37631
|
iconWidthC: C = 0,
|
|
37632
37632
|
dimensions: w = !1,
|
|
37633
37633
|
padding: L = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
37634
|
-
cornerRadius:
|
|
37634
|
+
cornerRadius: k = 0,
|
|
37635
37635
|
boxShadow: $ = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
37636
37636
|
boxShadowColor: K = "rgba(0, 0, 0, 0)",
|
|
37637
|
-
innerBoxShadow:
|
|
37637
|
+
innerBoxShadow: R = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
37638
37638
|
innerBoxShadowColor: H = "rgba(0, 0, 0, 0)",
|
|
37639
37639
|
stroke: T = 0,
|
|
37640
37640
|
backgroundColor: b = "#000000",
|
|
37641
37641
|
textColor: F = "#ffffff",
|
|
37642
37642
|
borderColor: g = "#ffffff",
|
|
37643
37643
|
iconColor: x = "#ffffff",
|
|
37644
|
-
hoverEffect:
|
|
37644
|
+
hoverEffect: E = "none",
|
|
37645
37645
|
fontFamily: z,
|
|
37646
37646
|
fontSettings: q,
|
|
37647
37647
|
fontSize: ce,
|
|
@@ -37661,7 +37661,7 @@ function Iy({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
37661
37661
|
iconColor: x,
|
|
37662
37662
|
boxShadowColor: K,
|
|
37663
37663
|
innerBoxShadowColor: H
|
|
37664
|
-
}, $y, Sy, A), f = i && i !== "default" ? `${r}-state-${i}` : "", ve = t && !n ? `${r}-editing` : "", J =
|
|
37664
|
+
}, $y, Sy, A), f = i && i !== "default" ? `${r}-state-${i}` : "", ve = t && !n ? `${r}-editing` : "", J = E !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${E}` : "", pe = E === "reveal" || E === "swipe", Le = E === "content-roll", ae = E === "reveal" && (!t || n), we = w === !0, be = c === "a" ? y ?? p : p, xe = c === "c", Fe = c !== "b", Ce = {
|
|
37665
37665
|
fontSettings: {
|
|
37666
37666
|
fontFamily: z,
|
|
37667
37667
|
fontWeight: (q == null ? void 0 : q.fontWeight) ?? 400,
|
|
@@ -37679,18 +37679,15 @@ function Iy({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
37679
37679
|
[`--${r}-box-shadow-y`]: I($.top, t),
|
|
37680
37680
|
[`--${r}-box-shadow-blur`]: I($.right, t),
|
|
37681
37681
|
[`--${r}-box-shadow-spread`]: I($.bottom, t),
|
|
37682
|
-
[`--${r}-inner-box-shadow-x`]: I(
|
|
37683
|
-
[`--${r}-inner-box-shadow-y`]: I(
|
|
37684
|
-
[`--${r}-inner-box-shadow-blur`]: I(
|
|
37685
|
-
[`--${r}-inner-box-shadow-spread`]: I(
|
|
37682
|
+
[`--${r}-inner-box-shadow-x`]: I(R.left, t),
|
|
37683
|
+
[`--${r}-inner-box-shadow-y`]: I(R.top, t),
|
|
37684
|
+
[`--${r}-inner-box-shadow-blur`]: I(R.right, t),
|
|
37685
|
+
[`--${r}-inner-box-shadow-spread`]: I(R.bottom, t),
|
|
37686
37686
|
paddingTop: I(L.top, t),
|
|
37687
37687
|
paddingRight: I(L.right, t),
|
|
37688
37688
|
paddingBottom: I(L.bottom, t),
|
|
37689
37689
|
paddingLeft: I(L.left, t),
|
|
37690
|
-
|
|
37691
|
-
borderTopRightRadius: I(R.right, t),
|
|
37692
|
-
borderBottomRightRadius: I(R.bottom, t),
|
|
37693
|
-
borderBottomLeftRadius: I(R.left, t),
|
|
37690
|
+
borderRadius: I(k, t),
|
|
37694
37691
|
borderWidth: I(T, t),
|
|
37695
37692
|
...xe ? {} : {
|
|
37696
37693
|
justifyContent: da[be],
|
|
@@ -37770,13 +37767,6 @@ type Padding = {
|
|
|
37770
37767
|
left: number;
|
|
37771
37768
|
};
|
|
37772
37769
|
|
|
37773
|
-
type CornerRadius = {
|
|
37774
|
-
top: number;
|
|
37775
|
-
right: number;
|
|
37776
|
-
bottom: number;
|
|
37777
|
-
left: number;
|
|
37778
|
-
};
|
|
37779
|
-
|
|
37780
37770
|
type BoxShadow = {
|
|
37781
37771
|
top: number;
|
|
37782
37772
|
left: number;
|
|
@@ -37799,7 +37789,7 @@ type SimpleButtonSettings = {
|
|
|
37799
37789
|
iconColor?: string;
|
|
37800
37790
|
dimensions?: boolean;
|
|
37801
37791
|
padding?: Padding;
|
|
37802
|
-
cornerRadius?:
|
|
37792
|
+
cornerRadius?: number;
|
|
37803
37793
|
boxShadow?: BoxShadow;
|
|
37804
37794
|
boxShadowColor?: string;
|
|
37805
37795
|
innerBoxShadow?: BoxShadow;
|
|
@@ -38215,7 +38205,7 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38215
38205
|
iconWidthC = 0,
|
|
38216
38206
|
dimensions = false,
|
|
38217
38207
|
padding = { top: 0, right: 0, bottom: 0, left: 0 },
|
|
38218
|
-
cornerRadius =
|
|
38208
|
+
cornerRadius = 0,
|
|
38219
38209
|
boxShadow = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
38220
38210
|
boxShadowColor = 'rgba(0, 0, 0, 0)',
|
|
38221
38211
|
innerBoxShadow = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
@@ -38297,10 +38287,7 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38297
38287
|
paddingRight: scalingValue(padding.right, isEditor),
|
|
38298
38288
|
paddingBottom: scalingValue(padding.bottom, isEditor),
|
|
38299
38289
|
paddingLeft: scalingValue(padding.left, isEditor),
|
|
38300
|
-
|
|
38301
|
-
borderTopRightRadius: scalingValue(cornerRadius.right, isEditor),
|
|
38302
|
-
borderBottomRightRadius: scalingValue(cornerRadius.bottom, isEditor),
|
|
38303
|
-
borderBottomLeftRadius: scalingValue(cornerRadius.left, isEditor),
|
|
38290
|
+
borderRadius: scalingValue(cornerRadius, isEditor),
|
|
38304
38291
|
borderWidth: scalingValue(stroke, isEditor),
|
|
38305
38292
|
...(!isIconTextType ? {
|
|
38306
38293
|
justifyContent: ALIGNMENT_MAP[effectiveAlignment],
|
|
@@ -38491,10 +38478,11 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38491
38478
|
display: { type: "padding-controls" }
|
|
38492
38479
|
},
|
|
38493
38480
|
cornerRadius: {
|
|
38494
|
-
type: "
|
|
38481
|
+
type: "number",
|
|
38495
38482
|
scope: "layout",
|
|
38496
38483
|
title: "Corner radius",
|
|
38497
|
-
|
|
38484
|
+
min: 0,
|
|
38485
|
+
display: { type: "numeric-input" }
|
|
38498
38486
|
},
|
|
38499
38487
|
boxShadow: {
|
|
38500
38488
|
type: "object",
|
|
@@ -38721,12 +38709,7 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38721
38709
|
minHeight: 0 / 375,
|
|
38722
38710
|
width: 100 / 375,
|
|
38723
38711
|
height: 100 / 375,
|
|
38724
|
-
cornerRadius:
|
|
38725
|
-
top: 20 / 375,
|
|
38726
|
-
right: 20 / 375,
|
|
38727
|
-
bottom: 20 / 375,
|
|
38728
|
-
left: 20 / 375
|
|
38729
|
-
},
|
|
38712
|
+
cornerRadius: 20 / 375,
|
|
38730
38713
|
boxShadow: {
|
|
38731
38714
|
top: 0,
|
|
38732
38715
|
left: 0,
|
|
@@ -38770,12 +38753,7 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38770
38753
|
minHeight: 0 / 768,
|
|
38771
38754
|
width: 100 / 768,
|
|
38772
38755
|
height: 100 / 768,
|
|
38773
|
-
cornerRadius:
|
|
38774
|
-
top: 20 / 768,
|
|
38775
|
-
right: 20 / 768,
|
|
38776
|
-
bottom: 20 / 768,
|
|
38777
|
-
left: 20 / 768
|
|
38778
|
-
},
|
|
38756
|
+
cornerRadius: 20 / 768,
|
|
38779
38757
|
boxShadow: {
|
|
38780
38758
|
top: 0,
|
|
38781
38759
|
left: 0,
|
|
@@ -38819,12 +38797,7 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
38819
38797
|
minHeight: 0 / 1440,
|
|
38820
38798
|
width: 100 / 1440,
|
|
38821
38799
|
height: 100 / 1440,
|
|
38822
|
-
cornerRadius:
|
|
38823
|
-
top: 20 / 1440,
|
|
38824
|
-
right: 20 / 1440,
|
|
38825
|
-
bottom: 20 / 1440,
|
|
38826
|
-
left: 20 / 1440
|
|
38827
|
-
},
|
|
38800
|
+
cornerRadius: 20 / 1440,
|
|
38828
38801
|
boxShadow: {
|
|
38829
38802
|
top: 0,
|
|
38830
38803
|
left: 0,
|
|
@@ -39533,7 +39506,7 @@ function Jy({
|
|
|
39533
39506
|
onPrev: C,
|
|
39534
39507
|
onNext: w
|
|
39535
39508
|
}) {
|
|
39536
|
-
const L = ne(null),
|
|
39509
|
+
const L = ne(null), k = ne(null), $ = ne(null), K = ne(/* @__PURE__ */ new Map()), [R, H] = te(0), T = ne(null), b = ne(0), F = ne(0), g = ne("none"), x = ne(!1), E = ne(!1), z = ne(!1), q = ne(null), ce = ne(null), Y = ne(null), D = ne(() => {
|
|
39537
39510
|
}), _ = ne(null), P = ne(null), A = ne(null), G = ne(!1), [j, Z] = te(null), [W, he] = te(pa), [f, ve] = te(0), [J, pe] = te("opening"), [Le, ae] = te(0), [we, Q] = te(0), [be, xe] = te(!1), [Fe, Ce] = te(null), [We, X] = te(null), [me, Te] = te(null), [O, ue] = te(!1), [N, le] = te(null), [se, oe] = te(!1), re = ne(!1), [$e, Ie] = te(!1), [ee, ge] = te(!1), Ne = ne(n), de = ne(void 0), V = t[n], je = V ? Hr(V) : !1, Oe = we !== 0 || be, at = !a && (!r || !!c), tt = s && !a, gt = d.length > 1, bt = Se((m, fe) => t.length <= 1 ? null : t[(m + fe + t.length) % t.length] ?? null, [t]), Ue = gt ? so(d, p, -1) : bt(n, -1), dt = gt ? so(d, p, 1) : bt(n, 1), Et = Fe === -1 && Oe ? gt && We !== null ? so(d, We, -1) : me !== null ? bt(me, -1) : null : null, ut = Fe === 1 && Oe ? gt && We !== null ? so(d, We, 1) : me !== null ? bt(me, 1) : null : null, Qe = Et && Et.url !== (Ue == null ? void 0 : Ue.url) ? Et : null, wt = ut && ut.url !== (dt == null ? void 0 : dt.url) ? ut : null, Tt = Ue && tt ? (() => {
|
|
39538
39511
|
const m = gt ? fs(d, p, -1) : t.length > 2 ? bt((n - 1 + t.length) % t.length, -1) : null;
|
|
39539
39512
|
return m && m.url !== Ue.url ? m : null;
|
|
@@ -39547,15 +39520,15 @@ function Jy({
|
|
|
39547
39520
|
}, []), kt = Se((m) => {
|
|
39548
39521
|
if (!(m != null && m.url)) return null;
|
|
39549
39522
|
const fe = K.current.get(m.url);
|
|
39550
|
-
return jy(
|
|
39551
|
-
}, [
|
|
39523
|
+
return jy(k.current, fe);
|
|
39524
|
+
}, [R, f]), At = Se(() => {
|
|
39552
39525
|
if (!V) return;
|
|
39553
39526
|
const m = kt(V);
|
|
39554
39527
|
if (m) {
|
|
39555
39528
|
Z(m);
|
|
39556
39529
|
return;
|
|
39557
39530
|
}
|
|
39558
|
-
const fe =
|
|
39531
|
+
const fe = k.current;
|
|
39559
39532
|
fe && Z(ys(fe));
|
|
39560
39533
|
}, [V, kt]), Ye = Se((m) => {
|
|
39561
39534
|
if (gt) {
|
|
@@ -39655,7 +39628,7 @@ function Jy({
|
|
|
39655
39628
|
A.current = null, _.current === m && (G.current = !0, tn(m));
|
|
39656
39629
|
}, _y));
|
|
39657
39630
|
}, [Ft, tn]), $t = Se(() => {
|
|
39658
|
-
const m =
|
|
39631
|
+
const m = k.current;
|
|
39659
39632
|
if (!m) return;
|
|
39660
39633
|
const fe = V == null ? void 0 : V.url, Ae = fe ? K.current.get(fe) : void 0;
|
|
39661
39634
|
if (Ae != null && Ae.width && (Ae != null && Ae.height)) {
|
|
@@ -39685,7 +39658,7 @@ function Jy({
|
|
|
39685
39658
|
}, [Pt, $t]);
|
|
39686
39659
|
Ee(() => {
|
|
39687
39660
|
Re();
|
|
39688
|
-
const m =
|
|
39661
|
+
const m = k.current, fe = L.current, Ae = new ResizeObserver(() => Re());
|
|
39689
39662
|
return m && Ae.observe(m), fe && Ae.observe(fe), window.addEventListener("resize", Re), () => {
|
|
39690
39663
|
Ae.disconnect(), window.removeEventListener("resize", Re);
|
|
39691
39664
|
};
|
|
@@ -39701,7 +39674,7 @@ function Jy({
|
|
|
39701
39674
|
}
|
|
39702
39675
|
}, [V == null ? void 0 : V.url, n, $t]), Ee(() => {
|
|
39703
39676
|
At();
|
|
39704
|
-
}, [At,
|
|
39677
|
+
}, [At, R]), Ee(() => {
|
|
39705
39678
|
const m = /* @__PURE__ */ new Set(), fe = [], Ae = (ke) => {
|
|
39706
39679
|
!(ke != null && ke.url) || m.has(ke.url) || (m.add(ke.url), fe.push(ke));
|
|
39707
39680
|
};
|
|
@@ -39728,7 +39701,7 @@ function Jy({
|
|
|
39728
39701
|
}, [J, h]), Ee(() => () => {
|
|
39729
39702
|
_e();
|
|
39730
39703
|
}, [_e]), Dt(() => {
|
|
39731
|
-
Ne.current === n && de.current === (V == null ? void 0 : V.url) || (_e(), ce.current = null, Ce(null), X(null), Te(null), ae(0), Q(0), Ze(!1), ge(!1), Ie(!1), b.current = 0, F.current = 0, g.current = "none", x.current = !1, T.current = null,
|
|
39704
|
+
Ne.current === n && de.current === (V == null ? void 0 : V.url) || (_e(), ce.current = null, Ce(null), X(null), Te(null), ae(0), Q(0), Ze(!1), ge(!1), Ie(!1), b.current = 0, F.current = 0, g.current = "none", x.current = !1, T.current = null, E.current = !1, $.current = null, At(), Ne.current = n, de.current = V == null ? void 0 : V.url);
|
|
39732
39705
|
}, [n, V == null ? void 0 : V.url, Ze, _e, At]), Dt(() => {
|
|
39733
39706
|
const m = Y.current;
|
|
39734
39707
|
m !== null && (Y.current = null, requestAnimationFrame(() => {
|
|
@@ -39770,7 +39743,7 @@ function Jy({
|
|
|
39770
39743
|
}, ke = (Xe) => {
|
|
39771
39744
|
if (Xe.touches.length !== 1 || z.current) return;
|
|
39772
39745
|
const ct = Xe.touches[0];
|
|
39773
|
-
|
|
39746
|
+
E.current = !0, T.current = { x: ct.clientX, y: ct.clientY }, g.current = "none", F.current = 0, x.current = !1;
|
|
39774
39747
|
}, nt = (Xe) => {
|
|
39775
39748
|
if (!T.current || Xe.touches.length !== 1 || z.current) return;
|
|
39776
39749
|
const ct = Xe.touches[0], qt = ct.clientX - T.current.x, Rt = ct.clientY - T.current.y;
|
|
@@ -39901,8 +39874,8 @@ function Jy({
|
|
|
39901
39874
|
return Ae ? Uy(Ki(Ae, fe, W), fe, W) : null;
|
|
39902
39875
|
}, It = (m) => (fe) => {
|
|
39903
39876
|
if (!a) {
|
|
39904
|
-
if (
|
|
39905
|
-
|
|
39877
|
+
if (E.current) {
|
|
39878
|
+
E.current = !1;
|
|
39906
39879
|
return;
|
|
39907
39880
|
}
|
|
39908
39881
|
fe.stopPropagation(), Lt(m);
|
|
@@ -39960,7 +39933,7 @@ function Jy({
|
|
|
39960
39933
|
justifyContent: "center",
|
|
39961
39934
|
alignItems: "center"
|
|
39962
39935
|
},
|
|
39963
|
-
children: /* @__PURE__ */ l("div", { ref:
|
|
39936
|
+
children: /* @__PURE__ */ l("div", { ref: k, style: { width: "100%", height: "100%" } })
|
|
39964
39937
|
}
|
|
39965
39938
|
),
|
|
39966
39939
|
/* @__PURE__ */ l("div", { style: { height: "10%" } })
|
|
@@ -40237,7 +40210,7 @@ function lv({
|
|
|
40237
40210
|
layoutId: r,
|
|
40238
40211
|
portalId: a
|
|
40239
40212
|
}) {
|
|
40240
|
-
const { prefix: c } = pn(), s = ze(() => tv(c), [c]), d = t ?? [], p = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, v = I(y, n ?? !1), S = `max(${v}, ${Qy}px)`, { objectFitMode: h, imageStyle: C } = rv(e), w = ov(e, n), L = ne(null), [
|
|
40213
|
+
const { prefix: c } = pn(), s = ze(() => tv(c), [c]), d = t ?? [], p = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, v = I(y, n ?? !1), S = `max(${v}, ${Qy}px)`, { objectFitMode: h, imageStyle: C } = rv(e), w = ov(e, n), L = ne(null), [k, $] = te(!1), [K, R] = te([]), [H, T] = te(0), [b, F] = te(0), [g, x] = te(null), [E, z] = te({ title1: "", title2: "", title3: "" }), q = (!n || i) && !k, ce = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, Y = ce.sizeType ?? "none", D = q && Y !== "none" ? `${c}-item-image-hover-${Y}` : void 0, _ = (ce.value ?? 120) / 100, P = {
|
|
40241
40214
|
width: I(p, n ?? !1),
|
|
40242
40215
|
...w,
|
|
40243
40216
|
...iv(e, c, n),
|
|
@@ -40250,7 +40223,7 @@ function lv({
|
|
|
40250
40223
|
const ae = j.findIndex((Q) => Q.gridIndex === pe);
|
|
40251
40224
|
if (ae < 0) return;
|
|
40252
40225
|
const we = j[ae];
|
|
40253
|
-
F(ae),
|
|
40226
|
+
F(ae), R(we.items), T(0), z(we.entry), x(Le ?? null), $(!0);
|
|
40254
40227
|
}, he = Se(() => {
|
|
40255
40228
|
$(!1), x(null);
|
|
40256
40229
|
}, []), f = Se(() => {
|
|
@@ -40259,18 +40232,18 @@ function lv({
|
|
|
40259
40232
|
}, [j, b, g, h]), ve = Se((pe) => {
|
|
40260
40233
|
if (j.length > 1) {
|
|
40261
40234
|
const Le = j.length, ae = (b + pe + Le) % Le, we = j[ae];
|
|
40262
|
-
F(ae),
|
|
40235
|
+
F(ae), R(we.items), T(0), z(we.entry);
|
|
40263
40236
|
return;
|
|
40264
40237
|
}
|
|
40265
40238
|
T((Le) => (Le + pe + K.length) % K.length);
|
|
40266
40239
|
}, [j, b, K.length]), J = j.length > 1 || K.length > 1;
|
|
40267
40240
|
return Ee(() => {
|
|
40268
|
-
if (!
|
|
40241
|
+
if (!k || typeof document > "u") return;
|
|
40269
40242
|
const pe = document.body.style.overflow;
|
|
40270
40243
|
return document.body.style.overflow = "hidden", () => {
|
|
40271
40244
|
document.body.style.overflow = pe;
|
|
40272
40245
|
};
|
|
40273
|
-
}, [
|
|
40246
|
+
}, [k]), Ee(() => {
|
|
40274
40247
|
!n || o || i || $(!1);
|
|
40275
40248
|
}, [n, o, i]), Ee(() => {
|
|
40276
40249
|
((e == null ? void 0 : e.lightbox) ?? "on") === "off" && $(!1);
|
|
@@ -40328,7 +40301,7 @@ function lv({
|
|
|
40328
40301
|
{
|
|
40329
40302
|
className: `${c}-item-gap-host`,
|
|
40330
40303
|
style: { width: v },
|
|
40331
|
-
children: o && !
|
|
40304
|
+
children: o && !k && /* @__PURE__ */ l(
|
|
40332
40305
|
"div",
|
|
40333
40306
|
{
|
|
40334
40307
|
"data-controls": "horizontalGap",
|
|
@@ -40350,7 +40323,7 @@ function lv({
|
|
|
40350
40323
|
Le
|
|
40351
40324
|
);
|
|
40352
40325
|
}) }),
|
|
40353
|
-
|
|
40326
|
+
k && ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && typeof document < "u" && e && (() => {
|
|
40354
40327
|
const pe = (a ? document.getElementById(a) : null) ?? document.body;
|
|
40355
40328
|
return Yi(
|
|
40356
40329
|
/* @__PURE__ */ l("div", { style: A, "data-selection": "none", children: /* @__PURE__ */ l(
|
|
@@ -40359,7 +40332,7 @@ function lv({
|
|
|
40359
40332
|
prefix: c,
|
|
40360
40333
|
items: K,
|
|
40361
40334
|
index: H,
|
|
40362
|
-
entry:
|
|
40335
|
+
entry: E,
|
|
40363
40336
|
settings: e,
|
|
40364
40337
|
isEditor: n,
|
|
40365
40338
|
isEditMode: o,
|
|
@@ -41786,7 +41759,7 @@ function xv(e, t) {
|
|
|
41786
41759
|
`;
|
|
41787
41760
|
}
|
|
41788
41761
|
function wv({ settings: e, content: t, isEditor: n }) {
|
|
41789
|
-
const { prefix: i } = pn(), [o, r] = te(null), a = bv(e, n), [c, s] = te(void 0), [d, p] = te(null), [y, v] = te(0), [S, h] = te(!1), [C, w] = te(0), L = t ?? [],
|
|
41762
|
+
const { prefix: i } = pn(), [o, r] = te(null), a = bv(e, n), [c, s] = te(void 0), [d, p] = te(null), [y, v] = te(0), [S, h] = te(!1), [C, w] = te(0), L = t ?? [], k = (e == null ? void 0 : e.trigger) ?? xs, $ = k.sizeType ?? "drag", K = k.value ?? xs.value, R = (e == null ? void 0 : e.direction) ?? "horizontal", H = (e == null ? void 0 : e.transition) ?? "slide", T = (e == null ? void 0 : e.nav) ?? "classic", b = (e == null ? void 0 : e.navSize) ?? "m", F = yv[b], g = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, x = (X) => I(X * g, n), E = (e == null ? void 0 : e.show) ?? "always", z = (e == null ? void 0 : e.controls) ?? null, q = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, ce = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, Y = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, D = (e == null ? void 0 : e.controlsColor) ?? bs.color, _ = (e == null ? void 0 : e.controlsHoverColor) ?? bs.hover, P = (e == null ? void 0 : e.navColor) ?? ao.colors.inactive, A = (e == null ? void 0 : e.navPaginationColor) ?? ao.colors.pagination, G = (e == null ? void 0 : e.navBackgroundColor) ?? ao.colors.background, j = (e == null ? void 0 : e.linkColor) ?? ga.linkColor, Z = R === "horizontal", W = $ === "click", he = $ === "drag", f = $ === "auto", ve = H === "fade in" || H === "reveal", J = T === "classic", pe = E !== "never", Le = E === "on hover", ae = ne(H), we = ne($), Q = ne(K), be = ne(R), xe = ne(T), Fe = I(q, n), Ce = {
|
|
41790
41763
|
width: Fe,
|
|
41791
41764
|
height: Fe,
|
|
41792
41765
|
maxWidth: Fe
|
|
@@ -41815,8 +41788,8 @@ function wv({ settings: e, content: t, isEditor: n }) {
|
|
|
41815
41788
|
}, [$]), Ee(() => {
|
|
41816
41789
|
Q.current !== K && (w((X) => X + 1), Q.current = K);
|
|
41817
41790
|
}, [K]), Ee(() => {
|
|
41818
|
-
be.current !==
|
|
41819
|
-
}, [
|
|
41791
|
+
be.current !== R && (w((X) => X + 1), be.current = R);
|
|
41792
|
+
}, [R]), Ee(() => {
|
|
41820
41793
|
xe.current !== T && (w((X) => X + 1), xe.current = T);
|
|
41821
41794
|
}, [T]), /* @__PURE__ */ U(it, { children: [
|
|
41822
41795
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: xv(i, n) } }),
|
|
@@ -42034,7 +42007,7 @@ function wv({ settings: e, content: t, isEditor: n }) {
|
|
|
42034
42007
|
);
|
|
42035
42008
|
})
|
|
42036
42009
|
},
|
|
42037
|
-
`${b}-${
|
|
42010
|
+
`${b}-${R}`
|
|
42038
42011
|
)
|
|
42039
42012
|
}
|
|
42040
42013
|
)
|