@cntrl-site/components 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +29 -25
- package/dist/index.mjs +564 -560
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -469,31 +469,31 @@ function fu(e, t, n) {
|
|
|
469
469
|
C(), X(), T();
|
|
470
470
|
}
|
|
471
471
|
function y() {
|
|
472
|
-
o(ln, I), o(ln, p), o(gn, T), r(document, Sc + " keydown", function(
|
|
473
|
-
g =
|
|
472
|
+
o(ln, I), o(ln, p), o(gn, T), r(document, Sc + " keydown", function(P) {
|
|
473
|
+
g = P.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), r(a, "focusin", function() {
|
|
477
477
|
Hn(a, xc, !!g);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
function I(
|
|
480
|
+
function I(P) {
|
|
481
481
|
var S = el.concat("style");
|
|
482
|
-
Vn(d), On(a, u), On(x, b), Wn([x, h], S), Wn(a,
|
|
482
|
+
Vn(d), On(a, u), On(x, b), Wn([x, h], S), Wn(a, P ? S : ["style", Mo]);
|
|
483
483
|
}
|
|
484
484
|
function T() {
|
|
485
485
|
On(a, u), On(x, b), u = B(Yr), b = B(Ml), kn(a, u), kn(x, b), Rt(a, $n, n.label), Rt(a, Ja, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function C() {
|
|
488
|
-
x =
|
|
488
|
+
x = A("." + Ml), h = Oo(x, "." + ou), bo(x && h, "A track/list element is missing."), ur(d, js(h, "." + _r + ":not(." + gc + ")")), wi({
|
|
489
489
|
arrows: tl,
|
|
490
490
|
pagination: Hr,
|
|
491
491
|
prev: hc,
|
|
492
492
|
next: fc,
|
|
493
493
|
bar: lu,
|
|
494
494
|
toggle: su
|
|
495
|
-
}, function(
|
|
496
|
-
s[S] =
|
|
495
|
+
}, function(P, S) {
|
|
496
|
+
s[S] = A("." + P);
|
|
497
497
|
}), Lo(s, {
|
|
498
498
|
root: a,
|
|
499
499
|
track: x,
|
|
@@ -502,15 +502,15 @@ function fu(e, t, n) {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function X() {
|
|
505
|
-
var
|
|
506
|
-
a.id =
|
|
505
|
+
var P = a.id || Zd(Do), S = n.role;
|
|
506
|
+
a.id = P, x.id = x.id || P + "-track", h.id = h.id || P + "-list", !Rn(a, Dn) && a.tagName !== "SECTION" && S && Rt(a, Dn, S), Rt(a, Mo, c.carousel), Rt(h, Dn, "presentation");
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
var S = Us(a,
|
|
508
|
+
function A(P) {
|
|
509
|
+
var S = Us(a, P);
|
|
510
510
|
return S && gu(S, "." + Yr) === a ? S : void 0;
|
|
511
511
|
}
|
|
512
|
-
function B(
|
|
513
|
-
return [
|
|
512
|
+
function B(P) {
|
|
513
|
+
return [P + "--" + n.type, P + "--" + n.direction, n.drag && P + "--draggable", n.isNavigation && P + "--nav", P === Yr && Ci];
|
|
514
514
|
}
|
|
515
515
|
return Lo(s, {
|
|
516
516
|
setup: p,
|
|
@@ -520,15 +520,15 @@ function fu(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
var Ui = "slide", ao = "loop", Bo = "fade";
|
|
522
522
|
function yu(e, t, n, i) {
|
|
523
|
-
var o = tn(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, u = e.options, b = u.isNavigation, x = u.updateOnMove, h = u.i18n, g = u.pagination, p = u.slideFocus, y = s.Direction.resolve, I = Rn(i, "style"), T = Rn(i, $n), C = n > -1, X = Oo(i, "." + ru),
|
|
523
|
+
var o = tn(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, u = e.options, b = u.isNavigation, x = u.updateOnMove, h = u.i18n, g = u.pagination, p = u.slideFocus, y = s.Direction.resolve, I = Rn(i, "style"), T = Rn(i, $n), C = n > -1, X = Oo(i, "." + ru), A;
|
|
524
524
|
function B() {
|
|
525
|
-
C || (i.id = d.id + "-slide" + Ga(t + 1), Rt(i, Dn, g ? "tabpanel" : "group"), Rt(i, Mo, h.slide), Rt(i, $n, T || Ia(h.slideLabel, [t + 1, e.length]))),
|
|
525
|
+
C || (i.id = d.id + "-slide" + Ga(t + 1), Rt(i, Dn, g ? "tabpanel" : "group"), Rt(i, Mo, h.slide), Rt(i, $n, T || Ia(h.slideLabel, [t + 1, e.length]))), P();
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function P() {
|
|
528
528
|
c(i, "click", Zt(a, qa, re)), c(i, "keydown", Zt(a, sc, re)), r([ro, cc, Ri], k), r(Ka, D), x && r(jn, v);
|
|
529
529
|
}
|
|
530
530
|
function S() {
|
|
531
|
-
|
|
531
|
+
A = !0, o.destroy(), On(i, pu), Wn(i, el), Rt(i, "style", I), Rt(i, $n, T || "");
|
|
532
532
|
}
|
|
533
533
|
function D() {
|
|
534
534
|
var w = e.splides.map(function(L) {
|
|
@@ -538,10 +538,10 @@ function yu(e, t, n, i) {
|
|
|
538
538
|
Rt(i, $n, Ia(h.slideX, (C ? n : t) + 1)), Rt(i, zo, w), Rt(i, Dn, p ? "button" : ""), p && Wn(i, Mo);
|
|
539
539
|
}
|
|
540
540
|
function v() {
|
|
541
|
-
|
|
541
|
+
A || k();
|
|
542
542
|
}
|
|
543
543
|
function k() {
|
|
544
|
-
if (!
|
|
544
|
+
if (!A) {
|
|
545
545
|
var w = e.index;
|
|
546
546
|
R(), Q(), Hn(i, vc, t === w - 1), Hn(i, bc, t === w + 1);
|
|
547
547
|
}
|
|
@@ -557,7 +557,7 @@ function yu(e, t, n, i) {
|
|
|
557
557
|
O && Gs(O.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function M(w, L, O) {
|
|
561
561
|
In(O && X || i, w, L);
|
|
562
562
|
}
|
|
563
563
|
function Y() {
|
|
@@ -583,7 +583,7 @@ function yu(e, t, n, i) {
|
|
|
583
583
|
mount: B,
|
|
584
584
|
destroy: S,
|
|
585
585
|
update: k,
|
|
586
|
-
style:
|
|
586
|
+
style: M,
|
|
587
587
|
isWithin: G
|
|
588
588
|
};
|
|
589
589
|
return re;
|
|
@@ -599,18 +599,18 @@ function vu(e, t, n) {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function h() {
|
|
602
|
-
|
|
602
|
+
A(function(k) {
|
|
603
603
|
k.destroy();
|
|
604
604
|
}), Vn(u);
|
|
605
605
|
}
|
|
606
606
|
function g() {
|
|
607
|
-
|
|
607
|
+
A(function(k) {
|
|
608
608
|
k.update();
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
function p(k, R, Q) {
|
|
612
|
-
var
|
|
613
|
-
|
|
612
|
+
var M = yu(e, R, Q, k);
|
|
613
|
+
M.mount(), u.push(M), u.sort(function(Y, j) {
|
|
614
614
|
return Y.index - j.index;
|
|
615
615
|
});
|
|
616
616
|
}
|
|
@@ -620,9 +620,9 @@ function vu(e, t, n) {
|
|
|
620
620
|
}) : u;
|
|
621
621
|
}
|
|
622
622
|
function I(k) {
|
|
623
|
-
var R = t.Controller, Q = R.toIndex(k),
|
|
623
|
+
var R = t.Controller, Q = R.toIndex(k), M = R.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return B(function(Y) {
|
|
625
|
-
return pr(Y.index, Q, Q +
|
|
625
|
+
return pr(Y.index, Q, Q + M - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function T(k) {
|
|
@@ -631,8 +631,8 @@ function vu(e, t, n) {
|
|
|
631
631
|
function C(k, R) {
|
|
632
632
|
Tn(k, function(Q) {
|
|
633
633
|
if (ti(Q) && (Q = qs(Q)), Vs(Q)) {
|
|
634
|
-
var
|
|
635
|
-
|
|
634
|
+
var M = s[R];
|
|
635
|
+
M ? Ba(Q, M) : Ho(d, Q), kn(Q, n.classes.slide), S(Q, Zt(r, qi));
|
|
636
636
|
}
|
|
637
637
|
}), r(ln);
|
|
638
638
|
}
|
|
@@ -641,7 +641,7 @@ function vu(e, t, n) {
|
|
|
641
641
|
return R.slide;
|
|
642
642
|
})), r(ln);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function A(k, R) {
|
|
645
645
|
y(R).forEach(k);
|
|
646
646
|
}
|
|
647
647
|
function B(k) {
|
|
@@ -649,16 +649,16 @@ function vu(e, t, n) {
|
|
|
649
649
|
return ti(k) ? Co(R.slide, k) : za(No(k), R.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
function P(k, R, Q) {
|
|
653
|
+
A(function(M) {
|
|
654
|
+
M.style(k, R, Q);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function S(k, R) {
|
|
658
|
-
var Q = Va(k, "img"),
|
|
659
|
-
|
|
658
|
+
var Q = Va(k, "img"), M = Q.length;
|
|
659
|
+
M ? Q.forEach(function(Y) {
|
|
660
660
|
a(Y, "load error", function() {
|
|
661
|
-
--
|
|
661
|
+
--M || R();
|
|
662
662
|
});
|
|
663
663
|
}) : R();
|
|
664
664
|
}
|
|
@@ -678,9 +678,9 @@ function vu(e, t, n) {
|
|
|
678
678
|
getAt: T,
|
|
679
679
|
add: C,
|
|
680
680
|
remove: X,
|
|
681
|
-
forEach:
|
|
681
|
+
forEach: A,
|
|
682
682
|
filter: B,
|
|
683
|
-
style:
|
|
683
|
+
style: P,
|
|
684
684
|
getLength: D,
|
|
685
685
|
isEnough: v
|
|
686
686
|
};
|
|
@@ -691,28 +691,28 @@ function bu(e, t, n) {
|
|
|
691
691
|
C(), r(window, "resize load", eu(Zt(a, qi))), o([gn, ln], C), o(qi, X);
|
|
692
692
|
}
|
|
693
693
|
function C() {
|
|
694
|
-
p = n.direction === Fr, In(u, "maxWidth", ui(n.width)), In(b, s("paddingLeft"),
|
|
694
|
+
p = n.direction === Fr, In(u, "maxWidth", ui(n.width)), In(b, s("paddingLeft"), A(!1)), In(b, s("paddingRight"), A(!0)), X(!0);
|
|
695
695
|
}
|
|
696
696
|
function X(re) {
|
|
697
697
|
var w = wn(u);
|
|
698
698
|
(re || y.width !== w.width || y.height !== w.height) && (In(b, "height", B()), g(s("marginRight"), ui(n.gap)), g("width", S()), g("height", D(), !0), y = w, a(Mr), I !== (I = G()) && (Hn(u, wc, I), a(Jd, I)));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function A(re) {
|
|
701
701
|
var w = n.padding, L = s(re ? "right" : "left");
|
|
702
702
|
return w && ui(w[L] || ($o(w) ? 0 : w)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function B() {
|
|
705
705
|
var re = "";
|
|
706
|
-
return p && (re =
|
|
706
|
+
return p && (re = P(), bo(re, "height or heightRatio is missing."), re = "calc(" + re + " - " + A(!1) + " - " + A(!0) + ")"), re;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function P() {
|
|
709
709
|
return ui(n.height || wn(x).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
711
|
function S() {
|
|
712
712
|
return n.autoWidth ? null : ui(n.fixedWidth) || (p ? "" : v());
|
|
713
713
|
}
|
|
714
714
|
function D() {
|
|
715
|
-
return ui(n.fixedHeight) || (p ? n.autoHeight ? null : v() :
|
|
715
|
+
return ui(n.fixedHeight) || (p ? n.autoHeight ? null : v() : P());
|
|
716
716
|
}
|
|
717
717
|
function v() {
|
|
718
718
|
var re = ui(n.gap);
|
|
@@ -733,7 +733,7 @@ function bu(e, t, n) {
|
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function M(re) {
|
|
737
737
|
return Q(e.length - 1) - Q(0) + R(0, re);
|
|
738
738
|
}
|
|
739
739
|
function Y() {
|
|
@@ -744,14 +744,14 @@ function bu(e, t, n) {
|
|
|
744
744
|
return parseFloat(In(b, s("padding" + (re ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function G() {
|
|
747
|
-
return e.is(Bo) ||
|
|
747
|
+
return e.is(Bo) || M(!0) > k();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: T,
|
|
751
751
|
resize: X,
|
|
752
752
|
listSize: k,
|
|
753
753
|
slideSize: R,
|
|
754
|
-
sliderSize:
|
|
754
|
+
sliderSize: M,
|
|
755
755
|
totalSize: Q,
|
|
756
756
|
getPadding: j,
|
|
757
757
|
isOverflow: G
|
|
@@ -778,9 +778,9 @@ function wu(e, t, n) {
|
|
|
778
778
|
if (C) {
|
|
779
779
|
for (; T.length < I; )
|
|
780
780
|
ur(T, T);
|
|
781
|
-
ur(T.slice(-I), T.slice(0, I)).forEach(function(X,
|
|
782
|
-
var B =
|
|
783
|
-
B ? Ba(
|
|
781
|
+
ur(T.slice(-I), T.slice(0, I)).forEach(function(X, A) {
|
|
782
|
+
var B = A < I, P = p(X.slide, A);
|
|
783
|
+
B ? Ba(P, T[0].slide) : Ho(r.list, P), ur(s, P), a.register(P, A - I + (B ? 0 : C), X.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -806,17 +806,17 @@ function wu(e, t, n) {
|
|
|
806
806
|
function Su(e, t, n) {
|
|
807
807
|
var i = tn(e), o = i.on, r = i.emit, a = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, u = c.totalSize, b = c.listSize, x = c.sliderSize, h = t.Direction, g = h.resolve, p = h.orient, y = t.Elements, I = y.list, T = y.track, C;
|
|
808
808
|
function X() {
|
|
809
|
-
C = t.Transition, o([ai, Mr, gn, ln],
|
|
809
|
+
C = t.Transition, o([ai, Mr, gn, ln], A);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
812
|
-
t.Controller.isBusy() || (t.Scroll.cancel(),
|
|
811
|
+
function A() {
|
|
812
|
+
t.Controller.isBusy() || (t.Scroll.cancel(), P(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function B(L, O, ce, ae) {
|
|
815
|
-
L !== O && re(L > ce) && (k(), S(v(
|
|
815
|
+
L !== O && re(L > ce) && (k(), S(v(M(), L > ce), !0)), a(oo), r(jn, O, ce, L), C.start(O, function() {
|
|
816
816
|
a(Gi), r(ro, O, ce, L), ae && ae();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function P(L) {
|
|
820
820
|
S(Q(L, !0));
|
|
821
821
|
}
|
|
822
822
|
function S(L, O) {
|
|
@@ -837,13 +837,13 @@ function Su(e, t, n) {
|
|
|
837
837
|
return L -= p(ae * (Ro(fn(ce) / ae) || 1)) * (O ? 1 : -1), L;
|
|
838
838
|
}
|
|
839
839
|
function k() {
|
|
840
|
-
S(
|
|
840
|
+
S(M(), !0), C.cancel();
|
|
841
841
|
}
|
|
842
842
|
function R(L) {
|
|
843
843
|
for (var O = t.Slides.get(), ce = 0, ae = 1 / 0, $ = 0; $ < O.length; $++) {
|
|
844
|
-
var ge = O[$].index,
|
|
845
|
-
if (
|
|
846
|
-
ae =
|
|
844
|
+
var ge = O[$].index, E = fn(Q(ge, !0) - L);
|
|
845
|
+
if (E <= ae)
|
|
846
|
+
ae = E, ce = ge;
|
|
847
847
|
else
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
@@ -853,7 +853,7 @@ function Su(e, t, n) {
|
|
|
853
853
|
var ce = p(u(L - 1) - j(L));
|
|
854
854
|
return O ? Y(ce) : ce;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function M() {
|
|
857
857
|
var L = g("left");
|
|
858
858
|
return wn(I)[L] - wn(T)[L] + p(d(!1));
|
|
859
859
|
}
|
|
@@ -868,107 +868,107 @@ function Su(e, t, n) {
|
|
|
868
868
|
return Q(L ? t.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
870
|
function re(L) {
|
|
871
|
-
var O = p(v(
|
|
871
|
+
var O = p(v(M(), L));
|
|
872
872
|
return L ? O >= 0 : O <= I[g("scrollWidth")] - wn(T)[g("width")];
|
|
873
873
|
}
|
|
874
874
|
function w(L, O) {
|
|
875
|
-
O = _o(O) ?
|
|
875
|
+
O = _o(O) ? M() : O;
|
|
876
876
|
var ce = L !== !0 && p(O) < p(G(!1)), ae = L !== !1 && p(O) > p(G(!0));
|
|
877
877
|
return ce || ae;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
880
|
mount: X,
|
|
881
881
|
move: B,
|
|
882
|
-
jump:
|
|
882
|
+
jump: P,
|
|
883
883
|
translate: S,
|
|
884
884
|
shift: v,
|
|
885
885
|
cancel: k,
|
|
886
886
|
toIndex: R,
|
|
887
887
|
toPosition: Q,
|
|
888
|
-
getPosition:
|
|
888
|
+
getPosition: M,
|
|
889
889
|
getLimit: G,
|
|
890
890
|
exceededLimit: w,
|
|
891
|
-
reposition:
|
|
891
|
+
reposition: A
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function $u(e, t, n) {
|
|
895
|
-
var i = tn(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, b = u.isEnough, x = u.getLength, h = n.omitEnd, g = e.is(ao), p = e.is(Ui), y = Zt(
|
|
895
|
+
var i = tn(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, u = t.Slides, b = u.isEnough, x = u.getLength, h = n.omitEnd, g = e.is(ao), p = e.is(Ui), y = Zt(M, !1), I = Zt(M, !0), T = n.start || 0, C, X = T, A, B, P;
|
|
896
896
|
function S() {
|
|
897
897
|
D(), o([gn, ln, wr], D), o(Mr, v);
|
|
898
898
|
}
|
|
899
899
|
function D() {
|
|
900
|
-
|
|
901
|
-
var
|
|
902
|
-
|
|
900
|
+
A = x(!0), B = n.perMove, P = n.perPage, C = re();
|
|
901
|
+
var E = _i(T, 0, h ? C : A - 1);
|
|
902
|
+
E !== T && (T = E, a.reposition());
|
|
903
903
|
}
|
|
904
904
|
function v() {
|
|
905
905
|
C !== re() && r(wr);
|
|
906
906
|
}
|
|
907
|
-
function k(
|
|
907
|
+
function k(E, oe, ee) {
|
|
908
908
|
if (!ge()) {
|
|
909
|
-
var we = Q(
|
|
909
|
+
var we = Q(E), We = G(we);
|
|
910
910
|
We > -1 && (oe || We !== T) && (ce(We), a.move(we, We, X, ee));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function R(
|
|
914
|
-
t.Scroll.scroll(
|
|
913
|
+
function R(E, oe, ee, we) {
|
|
914
|
+
t.Scroll.scroll(E, oe, ee, function() {
|
|
915
915
|
var We = G(a.toIndex(c()));
|
|
916
916
|
ce(h ? ni(We, C) : We), we && we();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function Q(
|
|
919
|
+
function Q(E) {
|
|
920
920
|
var oe = T;
|
|
921
|
-
if (ti(
|
|
922
|
-
var ee =
|
|
921
|
+
if (ti(E)) {
|
|
922
|
+
var ee = E.match(/([+\-<>])(\d+)?/) || [], we = ee[1], We = ee[2];
|
|
923
923
|
we === "+" || we === "-" ? oe = Y(T + +("" + we + (+We || 1)), T) : we === ">" ? oe = We ? w(+We) : y(!0) : we === "<" && (oe = I(!0));
|
|
924
924
|
} else
|
|
925
|
-
oe = g ?
|
|
925
|
+
oe = g ? E : _i(E, 0, C);
|
|
926
926
|
return oe;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
var ee = B || ($() ? 1 :
|
|
930
|
-
return we === -1 && p && !Ks(c(), s(!
|
|
928
|
+
function M(E, oe) {
|
|
929
|
+
var ee = B || ($() ? 1 : P), we = Y(T + ee * (E ? -1 : 1), T, !(B || $()));
|
|
930
|
+
return we === -1 && p && !Ks(c(), s(!E), 1) ? E ? 0 : C : oe ? we : G(we);
|
|
931
931
|
}
|
|
932
|
-
function Y(
|
|
932
|
+
function Y(E, oe, ee) {
|
|
933
933
|
if (b() || $()) {
|
|
934
|
-
var we = j(
|
|
935
|
-
we !==
|
|
934
|
+
var we = j(E);
|
|
935
|
+
we !== E && (oe = E, E = we, ee = !1), E < 0 || E > C ? !B && (pr(0, E, oe, !0) || pr(C, oe, E, !0)) ? E = w(L(E)) : g ? E = ee ? E < 0 ? -(A % P || P) : A : E : n.rewind ? E = E < 0 ? C : 0 : E = -1 : ee && E !== oe && (E = w(L(oe) + (E < oe ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
|
-
|
|
938
|
-
return
|
|
937
|
+
E = -1;
|
|
938
|
+
return E;
|
|
939
939
|
}
|
|
940
|
-
function j(
|
|
941
|
-
if (p && n.trimSpace === "move" &&
|
|
942
|
-
for (var oe = c(); oe === d(
|
|
943
|
-
|
|
944
|
-
return
|
|
940
|
+
function j(E) {
|
|
941
|
+
if (p && n.trimSpace === "move" && E !== T)
|
|
942
|
+
for (var oe = c(); oe === d(E, !0) && pr(E, 0, e.length - 1, !n.rewind); )
|
|
943
|
+
E < T ? --E : ++E;
|
|
944
|
+
return E;
|
|
945
945
|
}
|
|
946
|
-
function G(
|
|
947
|
-
return g ? (
|
|
946
|
+
function G(E) {
|
|
947
|
+
return g ? (E + A) % A || 0 : E;
|
|
948
948
|
}
|
|
949
949
|
function re() {
|
|
950
|
-
for (var
|
|
951
|
-
if (d(
|
|
952
|
-
|
|
950
|
+
for (var E = A - ($() || g && B ? 1 : P); h && E-- > 0; )
|
|
951
|
+
if (d(A - 1, !0) !== d(E, !0)) {
|
|
952
|
+
E++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return _i(
|
|
955
|
+
return _i(E, 0, A - 1);
|
|
956
956
|
}
|
|
957
|
-
function w(
|
|
958
|
-
return _i($() ?
|
|
957
|
+
function w(E) {
|
|
958
|
+
return _i($() ? E : P * E, 0, C);
|
|
959
959
|
}
|
|
960
|
-
function L(
|
|
961
|
-
return $() ? ni(
|
|
960
|
+
function L(E) {
|
|
961
|
+
return $() ? ni(E, C) : xr((E >= C ? A - 1 : E) / P);
|
|
962
962
|
}
|
|
963
|
-
function O(
|
|
964
|
-
var oe = a.toIndex(
|
|
963
|
+
function O(E) {
|
|
964
|
+
var oe = a.toIndex(E);
|
|
965
965
|
return p ? _i(oe, 0, C) : oe;
|
|
966
966
|
}
|
|
967
|
-
function ce(
|
|
968
|
-
|
|
967
|
+
function ce(E) {
|
|
968
|
+
E !== T && (X = T, T = E);
|
|
969
969
|
}
|
|
970
|
-
function ae(
|
|
971
|
-
return
|
|
970
|
+
function ae(E) {
|
|
971
|
+
return E ? X : T;
|
|
972
972
|
}
|
|
973
973
|
function $() {
|
|
974
974
|
return !_o(n.focus) || n.isNavigation;
|
|
@@ -982,7 +982,7 @@ function $u(e, t, n) {
|
|
|
982
982
|
scroll: R,
|
|
983
983
|
getNext: y,
|
|
984
984
|
getPrev: I,
|
|
985
|
-
getAdjacent:
|
|
985
|
+
getAdjacent: M,
|
|
986
986
|
getEnd: re,
|
|
987
987
|
setIndex: ce,
|
|
988
988
|
getIndex: ae,
|
|
@@ -997,22 +997,22 @@ var Cu = "http://www.w3.org/2000/svg", Tu = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5
|
|
|
997
997
|
function Lu(e, t, n) {
|
|
998
998
|
var i = tn(e), o = i.on, r = i.bind, a = i.emit, c = n.classes, s = n.i18n, d = t.Elements, u = t.Controller, b = d.arrows, x = d.track, h = b, g = d.prev, p = d.next, y, I, T = {};
|
|
999
999
|
function C() {
|
|
1000
|
-
|
|
1000
|
+
A(), o(gn, X);
|
|
1001
1001
|
}
|
|
1002
1002
|
function X() {
|
|
1003
1003
|
B(), C();
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function A() {
|
|
1006
1006
|
var R = n.arrows;
|
|
1007
1007
|
R && !(g && p) && D(), g && p && (Lo(T, {
|
|
1008
1008
|
prev: g,
|
|
1009
1009
|
next: p
|
|
1010
|
-
}), Io(h, R ? "" : "none"), kn(h, I = tl + "--" + n.direction), R && (
|
|
1010
|
+
}), Io(h, R ? "" : "none"), kn(h, I = tl + "--" + n.direction), R && (P(), k(), Rt([g, p], zo, x.id), a(ic, g, p)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function B() {
|
|
1013
1013
|
i.destroy(), On(h, I), y ? ($i(b ? [g, p] : h), g = p = null) : Wn([g, p], el);
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function P() {
|
|
1016
1016
|
o([ai, ro, ln, Ri, wr], k), r(p, "click", Zt(S, ">")), r(g, "click", Zt(S, "<"));
|
|
1017
1017
|
}
|
|
1018
1018
|
function S(R) {
|
|
@@ -1027,8 +1027,8 @@ function Lu(e, t, n) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
function k() {
|
|
1029
1029
|
if (g && p) {
|
|
1030
|
-
var R = e.index, Q = u.getPrev(),
|
|
1031
|
-
g.disabled = Q < 0, p.disabled =
|
|
1030
|
+
var R = e.index, Q = u.getPrev(), M = u.getNext(), Y = Q > -1 && R < Q ? s.last : s.prev, j = M > -1 && R > M ? s.first : s.next;
|
|
1031
|
+
g.disabled = Q < 0, p.disabled = M < 0, Rt(g, $n, Y), Rt(p, $n, j), a(oc, g, p, Q, M);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
@@ -1040,15 +1040,15 @@ function Lu(e, t, n) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
var Iu = ja + "-interval";
|
|
1042
1042
|
function Ru(e, t, n) {
|
|
1043
|
-
var i = tn(e), o = i.on, r = i.bind, a = i.emit, c = Er(n.interval, e.go.bind(e, ">"),
|
|
1043
|
+
var i = tn(e), o = i.on, r = i.bind, a = i.emit, c = Er(n.interval, e.go.bind(e, ">"), P), s = c.isPaused, d = t.Elements, u = t.Elements, b = u.root, x = u.toggle, h = n.autoplay, g, p, y = h === "pause";
|
|
1044
1044
|
function I() {
|
|
1045
1045
|
h && (T(), x && Rt(x, zo, d.track.id), y || C(), B());
|
|
1046
1046
|
}
|
|
1047
1047
|
function T() {
|
|
1048
1048
|
n.pauseOnHover && r(b, "mouseenter mouseleave", function(D) {
|
|
1049
|
-
g = D.type === "mouseenter",
|
|
1049
|
+
g = D.type === "mouseenter", A();
|
|
1050
1050
|
}), n.pauseOnFocus && r(b, "focusin focusout", function(D) {
|
|
1051
|
-
p = D.type === "focusin",
|
|
1051
|
+
p = D.type === "focusin", A();
|
|
1052
1052
|
}), x && r(x, "click", function() {
|
|
1053
1053
|
y ? C() : X(!0);
|
|
1054
1054
|
}), o([jn, Pr, ln], c.rewind), o(jn, S);
|
|
@@ -1059,13 +1059,13 @@ function Ru(e, t, n) {
|
|
|
1059
1059
|
function X(D) {
|
|
1060
1060
|
D === void 0 && (D = !0), y = !!D, B(), s() || (c.pause(), a(Ya));
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function A() {
|
|
1063
1063
|
y || (g || p ? X(!1) : C());
|
|
1064
1064
|
}
|
|
1065
1065
|
function B() {
|
|
1066
1066
|
x && (Hn(x, Ci, !y), Rt(x, $n, n.i18n[y ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function P(D) {
|
|
1069
1069
|
var v = d.bar;
|
|
1070
1070
|
v && In(v, "width", D * 100 + "%"), a(lc, D);
|
|
1071
1071
|
}
|
|
@@ -1104,39 +1104,39 @@ var Pu = 10, Eu = 600, Au = 0.6, ku = 1.5, Wu = 800;
|
|
|
1104
1104
|
function Fu(e, t, n) {
|
|
1105
1105
|
var i = tn(e), o = i.on, r = i.emit, a = e.state.set, c = t.Move, s = c.getPosition, d = c.getLimit, u = c.exceededLimit, b = c.translate, x = e.is(Ui), h, g, p = 1;
|
|
1106
1106
|
function y() {
|
|
1107
|
-
o(jn, X), o([gn, ln],
|
|
1107
|
+
o(jn, X), o([gn, ln], A);
|
|
1108
1108
|
}
|
|
1109
|
-
function I(
|
|
1109
|
+
function I(P, S, D, v, k) {
|
|
1110
1110
|
var R = s();
|
|
1111
1111
|
if (X(), D && (!x || !u())) {
|
|
1112
|
-
var Q = t.Layout.sliderSize(),
|
|
1113
|
-
|
|
1112
|
+
var Q = t.Layout.sliderSize(), M = La(P) * Q * xr(fn(P) / Q) || 0;
|
|
1113
|
+
P = c.toPosition(t.Controller.toDest(P % Q)) + M;
|
|
1114
1114
|
}
|
|
1115
|
-
var Y = Ks(R,
|
|
1116
|
-
p = 1, S = Y ? 0 : S || br(fn(
|
|
1115
|
+
var Y = Ks(R, P, 1);
|
|
1116
|
+
p = 1, S = Y ? 0 : S || br(fn(P - R) / ku, Wu), g = v, h = Er(S, T, Zt(C, R, P, k), 1), a(Fo), r(Pr), h.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function T() {
|
|
1119
1119
|
a(Gi), g && g(), r(Ri);
|
|
1120
1120
|
}
|
|
1121
|
-
function C(
|
|
1122
|
-
var k = s(), R =
|
|
1121
|
+
function C(P, S, D, v) {
|
|
1122
|
+
var k = s(), R = P + (S - P) * B(v), Q = (R - k) * p;
|
|
1123
1123
|
b(k + Q), x && !D && u() && (p *= Au, fn(Q) < Pu && I(d(u(!0)), Eu, !1, g, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function X() {
|
|
1126
1126
|
h && h.cancel();
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function A() {
|
|
1129
1129
|
h && !h.isPaused() && (X(), T());
|
|
1130
1130
|
}
|
|
1131
|
-
function B(
|
|
1131
|
+
function B(P) {
|
|
1132
1132
|
var S = n.easingFunc;
|
|
1133
|
-
return S ? S(
|
|
1133
|
+
return S ? S(P) : 1 - Math.pow(1 - P, 4);
|
|
1134
1134
|
}
|
|
1135
1135
|
return {
|
|
1136
1136
|
mount: y,
|
|
1137
1137
|
destroy: X,
|
|
1138
1138
|
scroll: I,
|
|
1139
|
-
cancel:
|
|
1139
|
+
cancel: A
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
1142
|
var Ni = {
|
|
@@ -1144,9 +1144,9 @@ var Ni = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function _u(e, t, n) {
|
|
1147
|
-
var i = tn(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, b = t.Controller, x = t.Elements.track, h = t.Media.reduce, g = t.Direction, p = g.resolve, y = g.orient, I = d.getPosition, T = d.exceededLimit, C, X,
|
|
1147
|
+
var i = tn(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, u = t.Scroll, b = t.Controller, x = t.Elements.track, h = t.Media.reduce, g = t.Direction, p = g.resolve, y = g.orient, I = d.getPosition, T = d.exceededLimit, C, X, A, B, P, S = !1, D, v, k;
|
|
1148
1148
|
function R() {
|
|
1149
|
-
a(x, Zr, Ca, Ni), a(x, Jr, Ca, Ni), a(x, Sc,
|
|
1149
|
+
a(x, Zr, Ca, Ni), a(x, Jr, Ca, Ni), a(x, Sc, M, Ni), a(x, "click", G, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), a(x, "dragstart", Nn), o([ai, gn], Q);
|
|
1152
1152
|
}
|
|
@@ -1154,28 +1154,28 @@ function _u(e, t, n) {
|
|
|
1154
1154
|
var U = n.drag;
|
|
1155
1155
|
pe(!U), B = U === "free";
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function M(U) {
|
|
1158
1158
|
if (D = !1, !v) {
|
|
1159
1159
|
var te = We(U);
|
|
1160
|
-
we(U.target) && (te || !U.button) && (b.isBusy() ? Nn(U, !0) : (k = te ? x : window,
|
|
1160
|
+
we(U.target) && (te || !U.button) && (b.isBusy() ? Nn(U, !0) : (k = te ? x : window, P = s.is([oo, Fo]), A = null, a(k, Zr, Y, Ni), a(k, Jr, j, Ni), d.cancel(), u.cancel(), re(U)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function Y(U) {
|
|
1164
1164
|
if (s.is(dr) || (s.set(dr), r(ec)), U.cancelable)
|
|
1165
|
-
if (
|
|
1165
|
+
if (P) {
|
|
1166
1166
|
d.translate(C + ee($(U)));
|
|
1167
1167
|
var te = ge(U) > Pl, Z = S !== (S = T());
|
|
1168
1168
|
(te || Z) && re(U), D = !0, r(tc), Nn(U);
|
|
1169
|
-
} else O(U) && (
|
|
1169
|
+
} else O(U) && (P = L(U), Nn(U));
|
|
1170
1170
|
}
|
|
1171
1171
|
function j(U) {
|
|
1172
|
-
s.is(dr) && (s.set(Gi), r(nc)),
|
|
1172
|
+
s.is(dr) && (s.set(Gi), r(nc)), P && (w(U), Nn(U)), c(k, Zr, Y), c(k, Jr, j), P = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function G(U) {
|
|
1175
1175
|
!v && D && Nn(U, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function re(U) {
|
|
1178
|
-
|
|
1178
|
+
A = X, X = U, C = I();
|
|
1179
1179
|
}
|
|
1180
1180
|
function w(U) {
|
|
1181
1181
|
var te = ce(U), Z = ae(te), De = n.rewind && n.rewindByDrag;
|
|
@@ -1200,13 +1200,13 @@ function _u(e, t, n) {
|
|
|
1200
1200
|
return I() + La(U) * ni(fn(U) * (n.flickPower || 600), B ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function $(U, te) {
|
|
1203
|
-
return oe(U, te) - oe(
|
|
1203
|
+
return oe(U, te) - oe(E(U), te);
|
|
1204
1204
|
}
|
|
1205
1205
|
function ge(U) {
|
|
1206
|
-
return Ta(U) - Ta(
|
|
1206
|
+
return Ta(U) - Ta(E(U));
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return X === U &&
|
|
1208
|
+
function E(U) {
|
|
1209
|
+
return X === U && A || X;
|
|
1210
1210
|
}
|
|
1211
1211
|
function oe(U, te) {
|
|
1212
1212
|
return (We(U) ? U.changedTouches[0] : U)["page" + p(te ? "Y" : "X")];
|
|
@@ -1222,7 +1222,7 @@ function _u(e, t, n) {
|
|
|
1222
1222
|
return typeof TouchEvent < "u" && U instanceof TouchEvent;
|
|
1223
1223
|
}
|
|
1224
1224
|
function fe() {
|
|
1225
|
-
return
|
|
1225
|
+
return P;
|
|
1226
1226
|
}
|
|
1227
1227
|
function pe(U) {
|
|
1228
1228
|
v = U;
|
|
@@ -1289,9 +1289,9 @@ function Du(e, t, n) {
|
|
|
1289
1289
|
function h() {
|
|
1290
1290
|
t.Slides.forEach(function(T) {
|
|
1291
1291
|
Va(T.slide, Ou).forEach(function(C) {
|
|
1292
|
-
var X = Rn(C, xo),
|
|
1293
|
-
if (X !== C.src ||
|
|
1294
|
-
var B = n.classes.spinner,
|
|
1292
|
+
var X = Rn(C, xo), A = Rn(C, mr);
|
|
1293
|
+
if (X !== C.src || A !== C.srcset) {
|
|
1294
|
+
var B = n.classes.spinner, P = C.parentElement, S = Oo(P, "." + B) || zi("span", B, P);
|
|
1295
1295
|
u.push([C, T, S]), C.src || Io(C, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
@@ -1308,8 +1308,8 @@ function Du(e, t, n) {
|
|
|
1308
1308
|
kn(T[1].slide, Pa), a(C, "load error", Zt(y, T)), Rt(C, "src", Rn(C, xo)), Rt(C, "srcset", Rn(C, mr)), Wn(C, xo), Wn(C, mr);
|
|
1309
1309
|
}
|
|
1310
1310
|
function y(T, C) {
|
|
1311
|
-
var X = T[0],
|
|
1312
|
-
On(
|
|
1311
|
+
var X = T[0], A = T[1];
|
|
1312
|
+
On(A.slide, Pa), C.type !== "error" && ($i(T[2]), Io(X, ""), c(Za, X, A), c(qi)), s && I();
|
|
1313
1313
|
}
|
|
1314
1314
|
function I() {
|
|
1315
1315
|
u.length && p(u.shift());
|
|
@@ -1334,32 +1334,32 @@ function zu(e, t, n) {
|
|
|
1334
1334
|
y && ($i(g ? ri(y.children) : y), On(y, I), Vn(p), y = null), i.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function X() {
|
|
1337
|
-
var v = e.length, k = n.classes, R = n.i18n, Q = n.perPage,
|
|
1338
|
-
y = g || zi("ul", k.pagination, s.track.parentElement), kn(y, I = Hr + "--" +
|
|
1339
|
-
for (var Y = 0; Y <
|
|
1337
|
+
var v = e.length, k = n.classes, R = n.i18n, Q = n.perPage, M = u() ? d.getEnd() + 1 : Ro(v / Q);
|
|
1338
|
+
y = g || zi("ul", k.pagination, s.track.parentElement), kn(y, I = Hr + "--" + P()), Rt(y, Dn, "tablist"), Rt(y, $n, R.select), Rt(y, Qa, P() === Fr ? "vertical" : "");
|
|
1339
|
+
for (var Y = 0; Y < M; Y++) {
|
|
1340
1340
|
var j = zi("li", null, y), G = zi("button", {
|
|
1341
1341
|
class: k.page,
|
|
1342
1342
|
type: "button"
|
|
1343
1343
|
}, j), re = c.getIn(Y).map(function(L) {
|
|
1344
1344
|
return L.slide.id;
|
|
1345
1345
|
}), w = !u() && Q > 1 ? R.pageX : R.slideX;
|
|
1346
|
-
a(G, "click", Zt(
|
|
1346
|
+
a(G, "click", Zt(A, Y)), n.paginationKeyboard && a(G, "keydown", Zt(B, Y)), Rt(j, Dn, "presentation"), Rt(G, Dn, "tab"), Rt(G, zo, re.join(" ")), Rt(G, $n, Ia(w, Y + 1)), Rt(G, Bi, -1), p.push({
|
|
1347
1347
|
li: j,
|
|
1348
1348
|
button: G,
|
|
1349
1349
|
page: Y
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function A(v) {
|
|
1354
1354
|
x(">" + v, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function B(v, k) {
|
|
1357
|
-
var R = p.length, Q = nl(k),
|
|
1358
|
-
Q === h(Wr, !1,
|
|
1357
|
+
var R = p.length, Q = nl(k), M = P(), Y = -1;
|
|
1358
|
+
Q === h(Wr, !1, M) ? Y = ++v % R : Q === h(kr, !1, M) ? Y = (--v + R) % R : Q === "Home" ? Y = 0 : Q === "End" && (Y = R - 1);
|
|
1359
1359
|
var j = p[Y];
|
|
1360
1360
|
j && (Gs(j.button), x(">" + Y), Nn(k, !0));
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function P() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
1364
1364
|
}
|
|
1365
1365
|
function S(v) {
|
|
@@ -1849,8 +1849,8 @@ const ap = "SvgImage-module__svg___q3xE-", lp = "SvgImage-module__img___VsTm-",
|
|
|
1849
1849
|
svg: ap,
|
|
1850
1850
|
img: lp
|
|
1851
1851
|
}, sp = (e) => {
|
|
1852
|
-
const t = e.trim();
|
|
1853
|
-
return t.startsWith("data:image/svg+xml")
|
|
1852
|
+
const t = e.trim().toLowerCase();
|
|
1853
|
+
return !!(t.startsWith("data:image/svg+xml") || t.includes("image/svg+xml") || t.includes(".svg") || t.startsWith("blob:"));
|
|
1854
1854
|
}, cp = (e) => `url("${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, mn = ({ url: e, fill: t = "#000000", hoverFill: n = "#CCCCCC", className: i = "", style: o }) => {
|
|
1855
1855
|
const [r, a] = J(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1856
1856
|
return Pe(() => {
|
|
@@ -1883,7 +1883,7 @@ const ap = "SvgImage-module__svg___q3xE-", lp = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": ct.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1886
|
-
const [o, r] = J(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: b, textAppearance: x, color: h } = n.imageCaption ?? {}, [g, p] = J(void 0), [y, I] = J(null), [T, C] = J(0), [X,
|
|
1886
|
+
const [o, r] = J(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: b, textAppearance: x, color: h } = n.imageCaption ?? {}, [g, p] = J(void 0), [y, I] = J(null), [T, C] = J(0), [X, A] = J(0), { direction: B, transition: P, controls: S, pagination: D, imageCaption: v, triggers: k } = e, R = V(P.type), { x: Q, y: M } = e.controls.offset, Y = (j) => {
|
|
1887
1887
|
o && o.go(j);
|
|
1888
1888
|
};
|
|
1889
1889
|
return Pe(() => {
|
|
@@ -1898,15 +1898,15 @@ function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
return j.observe(y), () => j.unobserve(y);
|
|
1900
1900
|
}, [y]), Pe(() => {
|
|
1901
|
-
!o || R.current ===
|
|
1902
|
-
}, [
|
|
1901
|
+
!o || R.current === P.type || (A((j) => j + 1), R.current = P.type);
|
|
1902
|
+
}, [P.type]), /* @__PURE__ */ l("div", { className: ut(ct.wrapper, { [ct.editor]: i }), ref: I, children: /* @__PURE__ */ q(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
1905
1905
|
className: ct.sliderInner,
|
|
1906
1906
|
style: {
|
|
1907
1907
|
width: g ? g.width : "100%",
|
|
1908
1908
|
height: g ? g.height : "100%",
|
|
1909
|
-
backgroundColor:
|
|
1909
|
+
backgroundColor: P.backgroundColor && P.type === "fade in" ? P.backgroundColor : "transparent"
|
|
1910
1910
|
},
|
|
1911
1911
|
children: [
|
|
1912
1912
|
e.imageCaption.isActive && /* @__PURE__ */ l(
|
|
@@ -1938,7 +1938,7 @@ function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1938
1938
|
textDecoration: x.textDecoration ?? "none",
|
|
1939
1939
|
fontVariant: x.fontVariant ?? "normal",
|
|
1940
1940
|
color: h,
|
|
1941
|
-
transitionDuration:
|
|
1941
|
+
transitionDuration: P.duration ? `${Math.round(parseInt(P.duration) / 2)}ms` : "500ms"
|
|
1942
1942
|
},
|
|
1943
1943
|
children: /* @__PURE__ */ l(
|
|
1944
1944
|
"div",
|
|
@@ -1971,18 +1971,18 @@ function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1971
1971
|
ref: r,
|
|
1972
1972
|
options: {
|
|
1973
1973
|
arrows: !1,
|
|
1974
|
-
speed:
|
|
1974
|
+
speed: P.duration ? parseInt(P.duration) : 500,
|
|
1975
1975
|
autoplay: k.autoPlay !== null,
|
|
1976
1976
|
...k.autoPlay !== null && {
|
|
1977
1977
|
interval: parseInt(k.autoPlay) * 1e3
|
|
1978
1978
|
},
|
|
1979
|
-
direction: B === "horiz" ||
|
|
1979
|
+
direction: B === "horiz" || P.type === "fade in" ? "ltr" : "ttb",
|
|
1980
1980
|
pagination: !1,
|
|
1981
1981
|
drag: k.triggersList.drag,
|
|
1982
1982
|
perPage: 1,
|
|
1983
1983
|
width: g ? g.width : "100%",
|
|
1984
1984
|
height: g ? g.height : "100%",
|
|
1985
|
-
type:
|
|
1985
|
+
type: P.type === "fade in" ? "fade" : "loop",
|
|
1986
1986
|
rewind: !0
|
|
1987
1987
|
},
|
|
1988
1988
|
children: t.map((j, G) => /* @__PURE__ */ l(al, { children: /* @__PURE__ */ l(
|
|
@@ -2031,7 +2031,7 @@ function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
className: ct.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
|
-
transform: `translate(${W(Q, i)}, ${W(
|
|
2034
|
+
transform: `translate(${W(Q, i)}, ${W(M * (B === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${B === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
2036
2036
|
children: [
|
|
2037
2037
|
S.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2066,7 +2066,7 @@ function up({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2066
2066
|
className: ct.arrowInner,
|
|
2067
2067
|
onClick: () => Y("+1"),
|
|
2068
2068
|
style: {
|
|
2069
|
-
transform: `translate(${W(Q * (B === "horiz" ? -1 : 1), i)}, ${W(
|
|
2069
|
+
transform: `translate(${W(Q * (B === "horiz" ? -1 : 1), i)}, ${W(M, i)}) scale(${e.controls.scale / 100}) rotate(${B === "horiz" ? "0deg" : "90deg"})`
|
|
2070
2070
|
},
|
|
2071
2071
|
children: [
|
|
2072
2072
|
S.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2803,7 +2803,7 @@ async function yp(e, t, n, i) {
|
|
|
2803
2803
|
return { width: o, height: r, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function vp({ settings: e, content: t, isEditor: n }) {
|
|
2806
|
-
const [i, o] = J(null), [r, a] = J([]), [c, s] = J(0), d = V(0), [u, b] = J({ x: 0, y: 0 }), [x, h] = J(1), [g, p] = J("none"), y = V({ x: 0, y: 0 }), [I, T] = J(!1), { sizeType: C, imageWidth: X, randomRangeImageWidth:
|
|
2806
|
+
const [i, o] = J(null), [r, a] = J([]), [c, s] = J(0), d = V(0), [u, b] = J({ x: 0, y: 0 }), [x, h] = J(1), [g, p] = J("none"), y = V({ x: 0, y: 0 }), [I, T] = J(!1), { sizeType: C, imageWidth: X, randomRangeImageWidth: A } = e.imageSize, { revealPosition: B, visible: P } = e.position, { cursorType: S, target: D, defaultCursorScale: v, defaultCursor: k, hoverCursorScale: R, hoverCursor: Q } = e.cursor;
|
|
2807
2807
|
Pe(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
2809
|
const j = (w, L) => {
|
|
@@ -2812,8 +2812,8 @@ function vp({ settings: e, content: t, isEditor: n }) {
|
|
|
2812
2812
|
p("none"), h(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
|
-
const $ = ce, ge = ae,
|
|
2816
|
-
if (
|
|
2815
|
+
const $ = ce, ge = ae, E = document.elementFromPoint(O.left + $, O.top + ge);
|
|
2816
|
+
if (E && E.closest("a")) {
|
|
2817
2817
|
p("none"), h(1);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
@@ -2841,23 +2841,23 @@ function vp({ settings: e, content: t, isEditor: n }) {
|
|
|
2841
2841
|
]), Pe(() => {
|
|
2842
2842
|
I || (p("none"), h(0));
|
|
2843
2843
|
}, [I]);
|
|
2844
|
-
const
|
|
2844
|
+
const M = async (j, G, re, w = {}) => {
|
|
2845
2845
|
const { width: L, height: O, finalWidth: ce } = await yp(
|
|
2846
2846
|
j.image.url,
|
|
2847
2847
|
C,
|
|
2848
2848
|
X,
|
|
2849
|
-
|
|
2849
|
+
A
|
|
2850
2850
|
);
|
|
2851
2851
|
let ae = 0, $ = 0;
|
|
2852
2852
|
B === "same" ? (ae = G / 2, $ = re / 2) : (ae = w.x ?? Math.random() * G, $ = w.y ?? Math.random() * re);
|
|
2853
|
-
const ge = Math.min(Math.max(ae, L / 2), G - L / 2),
|
|
2853
|
+
const ge = Math.min(Math.max(ae, L / 2), G - L / 2), E = Math.min(Math.max($, O / 2), re - O / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: d.current++,
|
|
2856
2856
|
url: j.image.url,
|
|
2857
2857
|
link: j.link,
|
|
2858
2858
|
name: j.image.name,
|
|
2859
2859
|
x: ge,
|
|
2860
|
-
y:
|
|
2860
|
+
y: E,
|
|
2861
2861
|
width: ce
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
@@ -2865,12 +2865,12 @@ function vp({ settings: e, content: t, isEditor: n }) {
|
|
|
2865
2865
|
if (!i || t.length === 0) return;
|
|
2866
2866
|
const j = i.getBoundingClientRect(), G = j.width, re = j.height, w = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const O = t[0], ce = await
|
|
2868
|
+
const O = t[0], ce = await M(O, G, re);
|
|
2869
2869
|
w.push(ce), a(w), s(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [C, X,
|
|
2872
|
-
|
|
2873
|
-
}, [
|
|
2871
|
+
}, [C, X, A, B, i]), Pe(() => {
|
|
2872
|
+
P === "last One" && a((j) => j.length > 0 ? [j[j.length - 1]] : []);
|
|
2873
|
+
}, [P]), /* @__PURE__ */ q(
|
|
2874
2874
|
"div",
|
|
2875
2875
|
{
|
|
2876
2876
|
ref: o,
|
|
@@ -2880,8 +2880,8 @@ function vp({ settings: e, content: t, isEditor: n }) {
|
|
|
2880
2880
|
if (D === "image" && !Fl(re, w, r)) return;
|
|
2881
2881
|
let L = 0, O = 0;
|
|
2882
2882
|
B === "on Click" ? (L = re, O = w) : B === "same" ? (L = G.width / 2, O = G.height / 2) : (L = Math.random() * G.width, O = Math.random() * G.height);
|
|
2883
|
-
const ce = t[c], ae = await
|
|
2884
|
-
a(($) =>
|
|
2883
|
+
const ce = t[c], ae = await M(ce, G.width, G.height, { x: L, y: O });
|
|
2884
|
+
a(($) => P === "all" ? [...$, ae] : [ae]), s(($) => $ >= t.length - 1 ? 0 : $ + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => T(!0),
|
|
2887
2887
|
onMouseLeave: () => T(!1),
|
|
@@ -3522,7 +3522,7 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3522
3522
|
] });
|
|
3523
3523
|
}, dm = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: c }) => {
|
|
3524
3524
|
var Ce;
|
|
3525
|
-
const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: b, wordSpacing: x, fontSizeLineHeight: h, textAppearance: g, color: p } = i.imageCaption ?? {}, [y, I] = J(0), [T, C] = J(0), [X,
|
|
3525
|
+
const { widthSettings: s, fontSettings: d, letterSpacing: u, textAlign: b, wordSpacing: x, fontSizeLineHeight: h, textAppearance: g, color: p } = i.imageCaption ?? {}, [y, I] = J(0), [T, C] = J(0), [X, A] = J(!1), [B, P] = J(!1), [S, D] = J({}), v = V(null), k = V(null), R = V(null), Q = V(!1), M = V(null), Y = V(null), j = V(null), G = V(null), re = V(!1), w = V(null), [L, O] = J(!1), { appear: ce, triggers: ae, slider: $, thumbnail: ge, controls: E, area: oe, caption: ee, layout: we } = o.lightboxBlock, { appearClass: We, backdropAppearClass: fe, backdropDisappearClass: pe, disappearClass: U } = sm(ce.type, ce.direction), te = (c == null ? void 0 : c.itemId) ?? null;
|
|
3526
3526
|
Pe(() => {
|
|
3527
3527
|
const z = () => {
|
|
3528
3528
|
setTimeout(() => {
|
|
@@ -3551,11 +3551,11 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3551
3551
|
}, [e, ge.isActive, n.length, S, $.direction]);
|
|
3552
3552
|
const Z = me(() => {
|
|
3553
3553
|
const z = window.matchMedia("(max-width: 768px)").matches, de = Nl(oe.color);
|
|
3554
|
-
z && !a && de > 0.9 && (document.body.style.backgroundColor = ""),
|
|
3554
|
+
z && !a && de > 0.9 && (document.body.style.backgroundColor = ""), A(!0), Q.current = !0;
|
|
3555
3555
|
const ve = (Se) => {
|
|
3556
|
-
Se.target ===
|
|
3556
|
+
Se.target === M.current && Se.animationName && (M.current && Y.current && M.current.removeEventListener("animationend", Y.current), Y.current = null, Q.current && (Q.current = !1, t()), A(!1));
|
|
3557
3557
|
};
|
|
3558
|
-
|
|
3558
|
+
M.current && (Y.current = ve, M.current.addEventListener("animationend", ve));
|
|
3559
3559
|
}, [t, oe.color, a]), De = (z, de, ve) => {
|
|
3560
3560
|
var Se, Ee;
|
|
3561
3561
|
if (z) {
|
|
@@ -3616,29 +3616,29 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3616
3616
|
};
|
|
3617
3617
|
}, [e, Z, n.length]), Pe(() => {
|
|
3618
3618
|
if (e) {
|
|
3619
|
-
if (I(0), C((de) => de + 1), Q.current = !1,
|
|
3619
|
+
if (I(0), C((de) => de + 1), Q.current = !1, A(!1), P(!1), D({}), !te) return;
|
|
3620
3620
|
const z = new CustomEvent("page-overlay", { detail: { itemId: te } });
|
|
3621
3621
|
window.dispatchEvent(z);
|
|
3622
3622
|
}
|
|
3623
3623
|
return () => {
|
|
3624
|
-
|
|
3624
|
+
M.current && Y.current && (M.current.removeEventListener("animationend", Y.current), Y.current = null), P(!1);
|
|
3625
3625
|
};
|
|
3626
3626
|
}, [e, te]), Pe(() => {
|
|
3627
3627
|
k.current !== null && k.current !== $.type && C((z) => z + 1), k.current = $.type;
|
|
3628
3628
|
}, [$.type]), Pe(() => {
|
|
3629
3629
|
if (!e) return;
|
|
3630
3630
|
const z = document.body.style.overflow, de = window.matchMedia("(max-width: 768px)").matches, ve = Nl(oe.color);
|
|
3631
|
-
document.body.style.overflow = "hidden",
|
|
3631
|
+
document.body.style.overflow = "hidden", P(!1);
|
|
3632
3632
|
const Se = (Re) => {
|
|
3633
|
-
Re.target ===
|
|
3633
|
+
Re.target === M.current && !Q.current && Re.animationName && (de && !a && ve > 0.9 && (document.body.style.backgroundColor = oe.color), P(!0), M.current && j.current && M.current.removeEventListener("animationend", j.current), j.current = null);
|
|
3634
3634
|
};
|
|
3635
|
-
|
|
3635
|
+
M.current && (j.current = Se, M.current.addEventListener("animationend", Se));
|
|
3636
3636
|
const Ee = (Re) => {
|
|
3637
3637
|
const F = Re.target;
|
|
3638
3638
|
F && (F.closest(`.${Ye.thumbsWrapper}`) || F.closest(`.${Ye.thumbsContainer}`)) || $.type !== "slide" && Re.preventDefault();
|
|
3639
3639
|
};
|
|
3640
3640
|
return document.addEventListener("touchmove", Ee, { passive: !1 }), () => {
|
|
3641
|
-
document.body.style.overflow = z, document.removeEventListener("touchmove", Ee),
|
|
3641
|
+
document.body.style.overflow = z, document.removeEventListener("touchmove", Ee), M.current && j.current && (M.current.removeEventListener("animationend", j.current), j.current = null), P(!1);
|
|
3642
3642
|
};
|
|
3643
3643
|
}, [e, a, oe.color, $.type]), Pe(() => {
|
|
3644
3644
|
if (!e) return;
|
|
@@ -3735,7 +3735,7 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3735
3735
|
/* @__PURE__ */ l(
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
|
-
ref: a ? null :
|
|
3738
|
+
ref: a ? null : M,
|
|
3739
3739
|
className: ut(Ye.background, X ? pe : fe, { [Ye.editor]: a }, { [Ye.hidden]: !e }),
|
|
3740
3740
|
style: {
|
|
3741
3741
|
...ye,
|
|
@@ -3746,7 +3746,7 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3746
3746
|
/* @__PURE__ */ q(
|
|
3747
3747
|
"div",
|
|
3748
3748
|
{
|
|
3749
|
-
ref: a ?
|
|
3749
|
+
ref: a ? M : null,
|
|
3750
3750
|
className: ut(Ye.contentStyle, X ? U : We, { [Ye.editor]: a }, { [Ye.hidden]: !e }),
|
|
3751
3751
|
style: {
|
|
3752
3752
|
animationDuration: `${parseInt(ce.duration)}ms`,
|
|
@@ -3805,33 +3805,33 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3805
3805
|
},
|
|
3806
3806
|
T
|
|
3807
3807
|
),
|
|
3808
|
-
|
|
3808
|
+
E.isActive && /* @__PURE__ */ q(lt, { children: [
|
|
3809
3809
|
/* @__PURE__ */ l(
|
|
3810
3810
|
"div",
|
|
3811
3811
|
{
|
|
3812
3812
|
className: ut(Ye.arrow, { [Ye.arrowVertical]: $.direction === "vert" }),
|
|
3813
|
-
style: { color:
|
|
3813
|
+
style: { color: E.color, "--arrow-hover-color": E.hover },
|
|
3814
3814
|
children: /* @__PURE__ */ q(
|
|
3815
3815
|
"button",
|
|
3816
3816
|
{
|
|
3817
3817
|
className: Ye.arrowInner,
|
|
3818
|
-
style: { transform: `translate(${W(
|
|
3818
|
+
style: { transform: `translate(${W(E.offset.x, a)}, ${W(E.offset.y * ($.direction === "horiz" ? 1 : -1), a)}) scale(${E.scale}) rotate(${$.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3819
3819
|
onClick: () => {
|
|
3820
3820
|
var z;
|
|
3821
3821
|
return (z = v.current) == null ? void 0 : z.go("-1");
|
|
3822
3822
|
},
|
|
3823
3823
|
"aria-label": "Previous",
|
|
3824
3824
|
children: [
|
|
3825
|
-
|
|
3825
|
+
E.arrowsImgUrl && /* @__PURE__ */ l(
|
|
3826
3826
|
mn,
|
|
3827
3827
|
{
|
|
3828
|
-
url:
|
|
3829
|
-
fill:
|
|
3830
|
-
hoverFill:
|
|
3828
|
+
url: E.arrowsImgUrl,
|
|
3829
|
+
fill: E.color,
|
|
3830
|
+
hoverFill: E.hover,
|
|
3831
3831
|
className: ut(Ye.arrowImg, Ye.mirror)
|
|
3832
3832
|
}
|
|
3833
3833
|
),
|
|
3834
|
-
!
|
|
3834
|
+
!E.arrowsImgUrl && /* @__PURE__ */ l(Hl, { color: E.color, className: ut(Ye.arrowIcon, Ye.arrowImg, Ye.mirror) })
|
|
3835
3835
|
]
|
|
3836
3836
|
}
|
|
3837
3837
|
)
|
|
@@ -3841,28 +3841,28 @@ const cm = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3841
3841
|
"div",
|
|
3842
3842
|
{
|
|
3843
3843
|
className: ut(Ye.arrow, Ye.nextArrow, { [Ye.arrowVertical]: $.direction === "vert" }),
|
|
3844
|
-
style: { color:
|
|
3844
|
+
style: { color: E.color, "--arrow-hover-color": E.hover },
|
|
3845
3845
|
children: /* @__PURE__ */ q(
|
|
3846
3846
|
"button",
|
|
3847
3847
|
{
|
|
3848
3848
|
className: Ye.arrowInner,
|
|
3849
|
-
style: { transform: `translate(${W(
|
|
3849
|
+
style: { transform: `translate(${W(E.offset.x * ($.direction === "horiz" ? -1 : 1), a)}, ${W(E.offset.y, a)}) scale(${E.scale}) rotate(${$.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3850
3850
|
onClick: () => {
|
|
3851
3851
|
var z;
|
|
3852
3852
|
return (z = v.current) == null ? void 0 : z.go("+1");
|
|
3853
3853
|
},
|
|
3854
3854
|
"aria-label": "Next",
|
|
3855
3855
|
children: [
|
|
3856
|
-
|
|
3856
|
+
E.arrowsImgUrl && /* @__PURE__ */ l(
|
|
3857
3857
|
mn,
|
|
3858
3858
|
{
|
|
3859
|
-
url:
|
|
3860
|
-
fill:
|
|
3861
|
-
hoverFill:
|
|
3859
|
+
url: E.arrowsImgUrl,
|
|
3860
|
+
fill: E.color,
|
|
3861
|
+
hoverFill: E.hover,
|
|
3862
3862
|
className: Ye.arrowImg
|
|
3863
3863
|
}
|
|
3864
3864
|
),
|
|
3865
|
-
!
|
|
3865
|
+
!E.arrowsImgUrl && /* @__PURE__ */ l(Hl, { color: E.color, className: ut(Ye.arrowIcon, Ye.arrowImg) })
|
|
3866
3866
|
]
|
|
3867
3867
|
}
|
|
3868
3868
|
)
|
|
@@ -5286,16 +5286,16 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5286
5286
|
isButtonFullWidth: T,
|
|
5287
5287
|
inputCorners: C,
|
|
5288
5288
|
inputStroke: X,
|
|
5289
|
-
inputPadding:
|
|
5289
|
+
inputPadding: A,
|
|
5290
5290
|
inputColor: B,
|
|
5291
|
-
inputTextColor:
|
|
5291
|
+
inputTextColor: P,
|
|
5292
5292
|
inputBorderColor: S,
|
|
5293
5293
|
placeholderColor: D,
|
|
5294
5294
|
buttonColor: v,
|
|
5295
5295
|
buttonTextColor: k,
|
|
5296
5296
|
buttonBorderColor: R,
|
|
5297
5297
|
labelTextColor: Q,
|
|
5298
|
-
successColor:
|
|
5298
|
+
successColor: M,
|
|
5299
5299
|
errorColor: Y,
|
|
5300
5300
|
fontFamily: j,
|
|
5301
5301
|
inputFontSettings: G,
|
|
@@ -5307,7 +5307,7 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5307
5307
|
buttonFontSettings: ae,
|
|
5308
5308
|
buttonFontSize: $,
|
|
5309
5309
|
buttonLineHeight: ge,
|
|
5310
|
-
buttonLetterSpacing:
|
|
5310
|
+
buttonLetterSpacing: E,
|
|
5311
5311
|
buttonWordSpacing: oe,
|
|
5312
5312
|
buttonTextAppearance: ee,
|
|
5313
5313
|
labelFontSettings: we,
|
|
@@ -5336,9 +5336,9 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5336
5336
|
letterSpacing: L ?? 0,
|
|
5337
5337
|
wordSpacing: O ?? 0,
|
|
5338
5338
|
textAppearance: ce,
|
|
5339
|
-
color:
|
|
5339
|
+
color: P
|
|
5340
5340
|
}, Re = pn(en(Ee, t)), F = W(X ?? 0, t), he = W(
|
|
5341
|
-
(w ?? re ?? 0.01) + ((
|
|
5341
|
+
(w ?? re ?? 0.01) + ((A == null ? void 0 : A.top) ?? 0) + ((A == null ? void 0 : A.bottom) ?? 0) + (d === "C" ? X ?? 0 : (X ?? 0) * 2),
|
|
5342
5342
|
t
|
|
5343
5343
|
), ie = {
|
|
5344
5344
|
...Re,
|
|
@@ -5350,10 +5350,10 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5350
5350
|
borderBottomWidth: F,
|
|
5351
5351
|
borderLeftWidth: 0
|
|
5352
5352
|
} : { borderWidth: F },
|
|
5353
|
-
paddingTop: W((
|
|
5354
|
-
paddingRight: W((
|
|
5355
|
-
paddingBottom: W((
|
|
5356
|
-
paddingLeft: W((
|
|
5353
|
+
paddingTop: W((A == null ? void 0 : A.top) ?? 0, t),
|
|
5354
|
+
paddingRight: W((A == null ? void 0 : A.right) ?? 0, t),
|
|
5355
|
+
paddingBottom: W((A == null ? void 0 : A.bottom) ?? 0, t),
|
|
5356
|
+
paddingLeft: W((A == null ? void 0 : A.left) ?? 0, t),
|
|
5357
5357
|
height: he,
|
|
5358
5358
|
minHeight: he
|
|
5359
5359
|
}, _ = {
|
|
@@ -5364,7 +5364,7 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5364
5364
|
},
|
|
5365
5365
|
fontSize: $ ?? 0.01,
|
|
5366
5366
|
lineHeight: ge,
|
|
5367
|
-
letterSpacing:
|
|
5367
|
+
letterSpacing: E ?? 0,
|
|
5368
5368
|
wordSpacing: oe ?? 0,
|
|
5369
5369
|
textAppearance: ee,
|
|
5370
5370
|
color: k
|
|
@@ -5391,17 +5391,17 @@ function mm({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5391
5391
|
letterSpacing: _e ?? 0,
|
|
5392
5392
|
wordSpacing: ue ?? 0,
|
|
5393
5393
|
textAppearance: ye,
|
|
5394
|
-
color:
|
|
5394
|
+
color: M
|
|
5395
5395
|
}, Ve = pn(en(Xe, t)), gt = Li(s, {
|
|
5396
5396
|
inputColor: B,
|
|
5397
|
-
inputTextColor:
|
|
5397
|
+
inputTextColor: P,
|
|
5398
5398
|
inputBorderColor: S,
|
|
5399
5399
|
placeholderColor: D != null && D.trim() ? D : "#cccccc",
|
|
5400
5400
|
buttonColor: v,
|
|
5401
5401
|
buttonTextColor: k,
|
|
5402
5402
|
buttonBorderColor: R,
|
|
5403
5403
|
labelTextColor: Q,
|
|
5404
|
-
successColor:
|
|
5404
|
+
successColor: M,
|
|
5405
5405
|
errorColor: Y
|
|
5406
5406
|
}, gm, hm, de), [at, wt] = J(
|
|
5407
5407
|
() => Object.fromEntries(Se.map((He) => [He.name, ""]))
|
|
@@ -7090,16 +7090,16 @@ const Sm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7090
7090
|
buttonFontSettings: T,
|
|
7091
7091
|
buttonFontSize: C,
|
|
7092
7092
|
buttonLineHeight: X,
|
|
7093
|
-
buttonLetterSpacing:
|
|
7093
|
+
buttonLetterSpacing: A,
|
|
7094
7094
|
buttonWordSpacing: B,
|
|
7095
|
-
buttonTextAppearance:
|
|
7095
|
+
buttonTextAppearance: P,
|
|
7096
7096
|
statusFontSettings: S,
|
|
7097
7097
|
statusFontSize: D,
|
|
7098
7098
|
statusLineHeight: v,
|
|
7099
7099
|
statusLetterSpacing: k,
|
|
7100
7100
|
statusWordSpacing: R,
|
|
7101
7101
|
statusTextAppearance: Q,
|
|
7102
|
-
iconMaxWidth:
|
|
7102
|
+
iconMaxWidth: M,
|
|
7103
7103
|
minHeight: Y,
|
|
7104
7104
|
corners: j,
|
|
7105
7105
|
stroke: G,
|
|
@@ -7110,7 +7110,7 @@ const Sm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7110
7110
|
errorMessage: ce = "Please, fill all required fields."
|
|
7111
7111
|
} = e, ae = c.slice(0, Math.min(u, c.length)), [$, ge] = J(
|
|
7112
7112
|
() => Object.fromEntries(ae.map((le) => [le.name, ""]))
|
|
7113
|
-
), [
|
|
7113
|
+
), [E, oe] = J("idle"), [ee, we] = J(null), We = o === "success" ? "success" : o === "error" ? "error" : E, fe = o === "error" ? ce : ee, pe = o === "filled", U = Ke(() => {
|
|
7114
7114
|
if (!pe) return $;
|
|
7115
7115
|
let le = null;
|
|
7116
7116
|
for (const H of ae)
|
|
@@ -7136,9 +7136,9 @@ const Sm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7136
7136
|
},
|
|
7137
7137
|
fontSize: C ?? 0.01,
|
|
7138
7138
|
lineHeight: X,
|
|
7139
|
-
letterSpacing:
|
|
7139
|
+
letterSpacing: A ?? 0,
|
|
7140
7140
|
wordSpacing: B ?? 0,
|
|
7141
|
-
textAppearance:
|
|
7141
|
+
textAppearance: P,
|
|
7142
7142
|
color: e.buttonTextColor ?? "#ffffff"
|
|
7143
7143
|
}, Ee = {
|
|
7144
7144
|
fontSettings: {
|
|
@@ -7255,12 +7255,12 @@ const Sm = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7255
7255
|
paddingBottom: W(L.bottom, t),
|
|
7256
7256
|
pointerEvents: a ? "auto" : void 0
|
|
7257
7257
|
},
|
|
7258
|
-
children:
|
|
7258
|
+
children: E === "submitting" ? "..." : z ? Ce && /* @__PURE__ */ l(
|
|
7259
7259
|
mn,
|
|
7260
7260
|
{
|
|
7261
7261
|
url: Ce,
|
|
7262
7262
|
className: `${r}-submitBtnIcon`,
|
|
7263
|
-
style: { maxWidth: W(
|
|
7263
|
+
style: { maxWidth: W(M ?? 0, t) },
|
|
7264
7264
|
fill: `var(--${r}-button-text-color)`,
|
|
7265
7265
|
hoverFill: `var(--${r}-button-text-color)`
|
|
7266
7266
|
}
|
|
@@ -8602,12 +8602,12 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8602
8602
|
scaled: s,
|
|
8603
8603
|
onFirstSetImageDone: d
|
|
8604
8604
|
}) => {
|
|
8605
|
-
var R, Q,
|
|
8605
|
+
var R, Q, M, Y;
|
|
8606
8606
|
const u = V(null), b = !!((R = e.image) != null && R.url && Vm(e.image));
|
|
8607
8607
|
Nt(() => {
|
|
8608
8608
|
c && jm(u.current) && (d == null || d());
|
|
8609
8609
|
}, [c, (Q = e.image) == null ? void 0 : Q.url, d]);
|
|
8610
|
-
const x = n.display === "cover", h = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [p, y] = h.split(":").map(Number), C = (g ? y : p) / (g ? p : y), X = i / C,
|
|
8610
|
+
const x = n.display === "cover", h = n.ratioValue ?? "1:1", g = n.reversed ?? !1, [p, y] = h.split(":").map(Number), C = (g ? y : p) / (g ? p : y), X = i / C, A = X > o ? o : X, B = X > o ? o * C : i, P = s(B), S = s(A), D = {
|
|
8611
8611
|
borderRadius: s(r)
|
|
8612
8612
|
}, v = x ? {
|
|
8613
8613
|
pointerEvents: "auto",
|
|
@@ -8625,7 +8625,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8625
8625
|
maxHeight: s(o),
|
|
8626
8626
|
objectFit: "contain",
|
|
8627
8627
|
...D
|
|
8628
|
-
}, k = ((
|
|
8628
|
+
}, k = ((M = e.image) == null ? void 0 : M.url) && (b ? /* @__PURE__ */ l(
|
|
8629
8629
|
"video",
|
|
8630
8630
|
{
|
|
8631
8631
|
ref: (j) => {
|
|
@@ -8661,7 +8661,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8661
8661
|
display: "flex",
|
|
8662
8662
|
flexDirection: "column",
|
|
8663
8663
|
alignItems: "start",
|
|
8664
|
-
...x ? { width:
|
|
8664
|
+
...x ? { width: P } : { width: "max-content", maxWidth: s(i), minWidth: 0 }
|
|
8665
8665
|
},
|
|
8666
8666
|
children: /* @__PURE__ */ l(
|
|
8667
8667
|
"div",
|
|
@@ -8674,7 +8674,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8674
8674
|
alignItems: "center",
|
|
8675
8675
|
flexShrink: 0,
|
|
8676
8676
|
...x ? {
|
|
8677
|
-
width:
|
|
8677
|
+
width: P,
|
|
8678
8678
|
height: S,
|
|
8679
8679
|
overflow: "hidden",
|
|
8680
8680
|
...D
|
|
@@ -8699,15 +8699,15 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8699
8699
|
imageMaxHeight: p,
|
|
8700
8700
|
hoverEffect: y,
|
|
8701
8701
|
cornerRadius: I = 0
|
|
8702
|
-
} = e, T = Ke(() => Om(e.imageFit), [e.imageFit]), C = (t == null ? void 0 : t.length) ?? 0, X = !!o,
|
|
8702
|
+
} = e, T = Ke(() => Om(e.imageFit), [e.imageFit]), C = (t == null ? void 0 : t.length) ?? 0, X = !!o, A = !n || !!i, B = A && y !== "off" && y !== "randomize" ? `${r}-image-hover-${y}` : void 0, P = n ? !!i : !0, D = ((t == null ? void 0 : t.length) ?? 0) > 0 && (P || !!n), v = Math.max(0, u) * Am, k = (Ie) => W(Ie, n ?? !1), R = V(null), Q = V(null), M = V(null), [Y, j] = J(0), G = P && x === "on", [re, w] = J(!1), [L, O] = J({}), ce = V(L);
|
|
8703
8703
|
ce.current = L;
|
|
8704
|
-
const ae = V(null), $ = V(0), ge = V(null),
|
|
8704
|
+
const ae = V(null), $ = V(0), ge = V(null), E = Ke(() => (t ?? []).map((Ie) => {
|
|
8705
8705
|
var _e;
|
|
8706
8706
|
return ((_e = Ie.image) == null ? void 0 : _e.url) ?? "";
|
|
8707
8707
|
}).join("\0"), [t]), [oe, ee] = J(ta), we = Ke(() => {
|
|
8708
8708
|
const Ie = t ?? [];
|
|
8709
|
-
return Ie.length === 0 || !(
|
|
8710
|
-
}, [t,
|
|
8709
|
+
return Ie.length === 0 || !(P || !!n) ? Ie : Hm(Ie, oe);
|
|
8710
|
+
}, [t, P, oe, n]), We = Ke(
|
|
8711
8711
|
() => (t ?? []).filter((Ie) => {
|
|
8712
8712
|
var _e;
|
|
8713
8713
|
return !!((_e = Ie.image) != null && _e.url);
|
|
@@ -8716,8 +8716,8 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8716
8716
|
), fe = D ? _m : 1;
|
|
8717
8717
|
Nt(() => {
|
|
8718
8718
|
$.current = 0, O({}), ae.current = null, ee(ta), c(0);
|
|
8719
|
-
}, [
|
|
8720
|
-
if (!
|
|
8719
|
+
}, [E]), Pe(() => {
|
|
8720
|
+
if (!A || y !== "randomize") return;
|
|
8721
8721
|
const Ie = R.current;
|
|
8722
8722
|
if (!Ie) return;
|
|
8723
8723
|
const _e = (z) => {
|
|
@@ -8750,15 +8750,15 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8750
8750
|
return Object.keys(ce.current).length > 0 && (ye.current = requestAnimationFrame(Ce)), () => {
|
|
8751
8751
|
cancelAnimationFrame(ye.current), ue.disconnect();
|
|
8752
8752
|
};
|
|
8753
|
-
}, [y, L,
|
|
8753
|
+
}, [y, L, A]), Nt(() => {
|
|
8754
8754
|
if (!D) return;
|
|
8755
|
-
const Ie = R.current, _e =
|
|
8755
|
+
const Ie = R.current, _e = M.current;
|
|
8756
8756
|
if (!Ie || !_e) return;
|
|
8757
8757
|
const ue = { current: 0 }, ye = () => {
|
|
8758
8758
|
const de = Ie.getBoundingClientRect().width || Ie.offsetWidth, ve = Dm(_e), Se = ae.current, Ee = typeof Se == "number" && Math.abs(Se - ve) <= 0.25;
|
|
8759
8759
|
ae.current = ve;
|
|
8760
8760
|
let Re = oe, F = 0;
|
|
8761
|
-
if ((
|
|
8761
|
+
if ((P || n) && C > 0 && de > 0) {
|
|
8762
8762
|
const _ = Ol(_e, C);
|
|
8763
8763
|
if (_ >= Fm) {
|
|
8764
8764
|
F = _;
|
|
@@ -8785,7 +8785,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8785
8785
|
return z.observe(Ie), z.observe(_e), () => {
|
|
8786
8786
|
ge.current = null, cancelAnimationFrame(ue.current), z.disconnect();
|
|
8787
8787
|
};
|
|
8788
|
-
}, [
|
|
8788
|
+
}, [P, D, a, E, oe, C, n]), Nt(() => {
|
|
8789
8789
|
if (!D || s <= 0) return;
|
|
8790
8790
|
const Ie = Q.current;
|
|
8791
8791
|
Ie && Nm(Ie);
|
|
@@ -8794,7 +8794,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8794
8794
|
j(0);
|
|
8795
8795
|
return;
|
|
8796
8796
|
}
|
|
8797
|
-
const Ie = Q.current, _e =
|
|
8797
|
+
const Ie = Q.current, _e = M.current;
|
|
8798
8798
|
if (!Ie || !_e) return;
|
|
8799
8799
|
const ue = () => {
|
|
8800
8800
|
const Ce = Ie.offsetHeight || Ie.getBoundingClientRect().height, z = Array.from(_e.children).reduce(
|
|
@@ -8831,13 +8831,13 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8831
8831
|
return { ...ue, [Ie]: z };
|
|
8832
8832
|
});
|
|
8833
8833
|
}, [t]), De = (Ie, _e, ue, ye) => {
|
|
8834
|
-
const Ce =
|
|
8834
|
+
const Ce = A && y === "randomize" && T.display === "cover" ? L[ue] ?? Ie : Ie, z = `max(${k(h)}, ${km}px)`, de = `calc(-0.5 * (${z} + ${k(h)}))`;
|
|
8835
8835
|
return /* @__PURE__ */ q(
|
|
8836
8836
|
"div",
|
|
8837
8837
|
{
|
|
8838
8838
|
className: `${r}-marquee-card`,
|
|
8839
8839
|
"data-marquee-item-index": ue,
|
|
8840
|
-
onMouseEnter:
|
|
8840
|
+
onMouseEnter: A && y === "randomize" && T.display === "cover" ? () => Z(ue, Ie) : void 0,
|
|
8841
8841
|
children: [
|
|
8842
8842
|
/* @__PURE__ */ l(
|
|
8843
8843
|
Gm,
|
|
@@ -8876,7 +8876,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8876
8876
|
);
|
|
8877
8877
|
};
|
|
8878
8878
|
if (D) {
|
|
8879
|
-
const Ie =
|
|
8879
|
+
const Ie = P ? G && re ? "paused" : "running" : "paused", _e = s > 0 && v > 0 ? s / v * 1e3 : 0, ue = `${Math.max(0, _e) / 1e3}s`;
|
|
8880
8880
|
return /* @__PURE__ */ q(
|
|
8881
8881
|
"div",
|
|
8882
8882
|
{
|
|
@@ -8903,7 +8903,7 @@ const Am = 30, km = 20, ta = 3, Wm = 12, Fm = 32, _m = 3, Nm = (e) => {
|
|
|
8903
8903
|
children: Array.from({ length: fe }, (ye, Ce) => /* @__PURE__ */ l(
|
|
8904
8904
|
"div",
|
|
8905
8905
|
{
|
|
8906
|
-
ref: Ce === 0 ?
|
|
8906
|
+
ref: Ce === 0 ? M : void 0,
|
|
8907
8907
|
className: ut(`${r}-marquee-row`, `${r}-marquee-set`),
|
|
8908
8908
|
style: {
|
|
8909
8909
|
gap: k(h),
|
|
@@ -10090,7 +10090,7 @@ function Ym(e, t) {
|
|
|
10090
10090
|
const Zm = 30, Dl = 2, Jm = (e) => {
|
|
10091
10091
|
e.style.setProperty("animation-name", "none"), e.style.setProperty("-webkit-animation-name", "none"), e.offsetHeight, e.style.removeProperty("animation-name"), e.style.removeProperty("-webkit-animation-name");
|
|
10092
10092
|
}, Qm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
10093
|
-
const { prefix: r } = dn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: x, stroke: h, strokeColor: g, bgColor: p, padding: y, logoMarginTop: I, logoWidth: T, logoHeight: C, captionMarginTop: X } = e,
|
|
10093
|
+
const { prefix: r } = dn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: u, cardWidth: b, corners: x, stroke: h, strokeColor: g, bgColor: p, padding: y, logoMarginTop: I, logoWidth: T, logoHeight: C, captionMarginTop: X } = e, A = !!o, B = ((t == null ? void 0 : t.length) ?? 0) > 0, P = c > 0 && (!n || i), S = B && (P || n), D = Math.max(0, c) * Zm, v = (F) => W(F, n ?? !1), k = V(null), R = V(null), Q = V(null), [M, Y] = J(0), [j, G] = J(0), re = j > 0 ? j : 0, w = Ke(() => Ym(r, re), [r, re]), [L, O] = J(0), ce = P && d === "on", [ae, $] = J(!1), ge = V(null), [E, oe] = J(0), [ee, we] = J(0), We = V(null), fe = (F) => {
|
|
10094
10094
|
var ie, _, ne, Ae, le;
|
|
10095
10095
|
return {
|
|
10096
10096
|
fontSettings: {
|
|
@@ -10115,7 +10115,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10115
10115
|
return (((he = F.text) == null ? void 0 : he.length) ?? 0) > 0 || (((ie = F.caption) == null ? void 0 : ie.length) ?? 0) > 0;
|
|
10116
10116
|
}),
|
|
10117
10117
|
[t]
|
|
10118
|
-
), Z = Ke(() => !S || (t == null ? void 0 : t.length) === 0 ? 1 : j <= 0 ||
|
|
10118
|
+
), Z = Ke(() => !S || (t == null ? void 0 : t.length) === 0 ? 1 : j <= 0 || M <= 0 ? Dl : Math.max(Dl, Math.ceil(M / j) + 1), [S, t == null ? void 0 : t.length, j, M]);
|
|
10119
10119
|
Nt(() => {
|
|
10120
10120
|
if (!S) return;
|
|
10121
10121
|
const F = k.current, he = Q.current;
|
|
@@ -10136,7 +10136,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10136
10136
|
return Ae.observe(F), Ae.observe(he), () => {
|
|
10137
10137
|
cancelAnimationFrame(ie), Ae.disconnect();
|
|
10138
10138
|
};
|
|
10139
|
-
}, [
|
|
10139
|
+
}, [P, S, j]);
|
|
10140
10140
|
const De = re > 0 && D > 0 ? re / D * 1e3 : 0, Ie = `${Math.max(0, De) / 1e3}s`;
|
|
10141
10141
|
Nt(() => {
|
|
10142
10142
|
if (!S || re <= 0) return;
|
|
@@ -10162,7 +10162,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10162
10162
|
return _.observe(F), _.observe(he), () => {
|
|
10163
10163
|
_.disconnect();
|
|
10164
10164
|
};
|
|
10165
|
-
}, [S, Z, t, n, u, b, y, h, x, T, C,
|
|
10165
|
+
}, [S, Z, t, n, u, b, y, h, x, T, C, E, ee]);
|
|
10166
10166
|
const _e = () => {
|
|
10167
10167
|
ce && $(!0);
|
|
10168
10168
|
}, ue = () => {
|
|
@@ -10201,9 +10201,9 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10201
10201
|
/* @__PURE__ */ l(
|
|
10202
10202
|
"div",
|
|
10203
10203
|
{
|
|
10204
|
-
"data-controls":
|
|
10205
|
-
"data-controls-axis":
|
|
10206
|
-
className:
|
|
10204
|
+
"data-controls": A ? _ == null ? void 0 : _.controlsName : void 0,
|
|
10205
|
+
"data-controls-axis": A ? "y" : void 0,
|
|
10206
|
+
className: A ? `${r}-control` : void 0,
|
|
10207
10207
|
style: { height: v((_ == null ? void 0 : _.marginTop) ?? 0) }
|
|
10208
10208
|
}
|
|
10209
10209
|
),
|
|
@@ -10224,7 +10224,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10224
10224
|
},
|
|
10225
10225
|
ie
|
|
10226
10226
|
),
|
|
10227
|
-
[ye, Ce, n,
|
|
10227
|
+
[ye, Ce, n, A, r, v]
|
|
10228
10228
|
), de = me(
|
|
10229
10229
|
(F, he, ie) => {
|
|
10230
10230
|
var _, ne, Ae;
|
|
@@ -10268,8 +10268,8 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10268
10268
|
/* @__PURE__ */ l(
|
|
10269
10269
|
"div",
|
|
10270
10270
|
{
|
|
10271
|
-
"data-controls":
|
|
10272
|
-
className:
|
|
10271
|
+
"data-controls": A && !(ie != null && ie.dataMeasureAttrs) ? "logoMarginTop" : void 0,
|
|
10272
|
+
className: A && !(ie != null && ie.dataMeasureAttrs) ? `${r}-control` : void 0,
|
|
10273
10273
|
style: { height: v(I) }
|
|
10274
10274
|
}
|
|
10275
10275
|
),
|
|
@@ -10317,7 +10317,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10317
10317
|
g,
|
|
10318
10318
|
pe,
|
|
10319
10319
|
n,
|
|
10320
|
-
|
|
10320
|
+
A,
|
|
10321
10321
|
r
|
|
10322
10322
|
]
|
|
10323
10323
|
), ve = me((F) => {
|
|
@@ -10339,7 +10339,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10339
10339
|
ie.disconnect();
|
|
10340
10340
|
};
|
|
10341
10341
|
}, [te, ve, t, de]);
|
|
10342
|
-
const Se = te ? { textMinHeightPx:
|
|
10342
|
+
const Se = te ? { textMinHeightPx: E, captionMinHeightPx: ee } : void 0, Ee = te ? /* @__PURE__ */ l(
|
|
10343
10343
|
"div",
|
|
10344
10344
|
{
|
|
10345
10345
|
ref: ge,
|
|
@@ -10369,7 +10369,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10369
10369
|
},
|
|
10370
10370
|
children: [
|
|
10371
10371
|
de(F, `card-${he}`, Se),
|
|
10372
|
-
|
|
10372
|
+
A && /* @__PURE__ */ l(
|
|
10373
10373
|
"div",
|
|
10374
10374
|
{
|
|
10375
10375
|
"data-controls": "gap",
|
|
@@ -10390,7 +10390,7 @@ const Zm = 30, Dl = 2, Jm = (e) => {
|
|
|
10390
10390
|
he
|
|
10391
10391
|
);
|
|
10392
10392
|
if (S) {
|
|
10393
|
-
const F =
|
|
10393
|
+
const F = P ? ce && ae ? "paused" : "running" : "paused";
|
|
10394
10394
|
return /* @__PURE__ */ q(
|
|
10395
10395
|
"div",
|
|
10396
10396
|
{
|
|
@@ -11737,7 +11737,7 @@ function ig(e) {
|
|
|
11737
11737
|
`;
|
|
11738
11738
|
}
|
|
11739
11739
|
const og = 3e3, rg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11740
|
-
const { prefix: r } = dn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: x, imageWidth: h, imageHeight: g, controlsWidth: p, controlsColor: y, controlsHoverColor: I } = e, T = c > 0 && (!n || !!i), [C, X] = J(0), [
|
|
11740
|
+
const { prefix: r } = dn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: u, textMarginTop: b, captionMarginTop: x, imageWidth: h, imageHeight: g, controlsWidth: p, controlsColor: y, controlsHoverColor: I } = e, T = c > 0 && (!n || !!i), [C, X] = J(0), [A, B] = J(null), [P, S] = J(!1), D = V(null), v = Ke(() => {
|
|
11741
11741
|
switch (s) {
|
|
11742
11742
|
case "center":
|
|
11743
11743
|
return "center";
|
|
@@ -11761,7 +11761,7 @@ const og = 3e3, rg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11761
11761
|
Pe(() => {
|
|
11762
11762
|
X(0), B(null), S(!1);
|
|
11763
11763
|
}, [a.length]);
|
|
11764
|
-
const R = a[C], Q =
|
|
11764
|
+
const R = a[C], Q = A === null ? null : a[A], M = (fe) => {
|
|
11765
11765
|
var U, te, Z, De, Ie;
|
|
11766
11766
|
return {
|
|
11767
11767
|
fontSettings: {
|
|
@@ -11780,12 +11780,12 @@ const og = 3e3, rg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11780
11780
|
wordSpacing: (e == null ? void 0 : e[`${fe}WordSpacing`]) ?? 0,
|
|
11781
11781
|
color: (e == null ? void 0 : e[`${fe}Color`]) ?? "#000000"
|
|
11782
11782
|
};
|
|
11783
|
-
}, Y =
|
|
11783
|
+
}, Y = M("text"), j = M("caption"), G = a.length > 1 && a.some((fe) => {
|
|
11784
11784
|
var pe, U;
|
|
11785
11785
|
return (((pe = fe.text) == null ? void 0 : pe.length) ?? 0) > 0 || (((U = fe.caption) == null ? void 0 : U.length) ?? 0) > 0;
|
|
11786
11786
|
}), re = V(null), [w, L] = J(0), [O, ce] = J(0), ae = e.controls ?? { mode: "Off", icon: null }, $ = a.length > 1, ge = me((fe, pe) => !$ || pe === fe ? fe : (D.current && window.clearTimeout(D.current), B(fe), S(!0), D.current = window.setTimeout(() => {
|
|
11787
11787
|
B(null), S(!1), D.current = null;
|
|
11788
|
-
}, 300), pe), [$]),
|
|
11788
|
+
}, 300), pe), [$]), E = me(() => {
|
|
11789
11789
|
$ && X((fe) => ge(fe, (fe - 1 + a.length) % a.length));
|
|
11790
11790
|
}, [$, ge, a.length]), oe = me(() => {
|
|
11791
11791
|
$ && X((fe) => ge(fe, (fe + 1) % a.length));
|
|
@@ -11918,8 +11918,8 @@ const og = 3e3, rg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11918
11918
|
}
|
|
11919
11919
|
),
|
|
11920
11920
|
/* @__PURE__ */ q("div", { className: `${r}-fade-stack`, children: [
|
|
11921
|
-
Q &&
|
|
11922
|
-
/* @__PURE__ */ l("div", { className: ut(`${r}-fade-item-current`,
|
|
11921
|
+
Q && P && /* @__PURE__ */ l("div", { className: ut(`${r}-fade-item-prev`, `${r}-fade-out`), children: ee(Q, { ...We, hideControls: !0 }) }),
|
|
11922
|
+
/* @__PURE__ */ l("div", { className: ut(`${r}-fade-item-current`, P ? `${r}-fade-in` : void 0), children: ee(R, We) })
|
|
11923
11923
|
] })
|
|
11924
11924
|
]
|
|
11925
11925
|
}
|
|
@@ -11939,7 +11939,7 @@ const og = 3e3, rg = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11939
11939
|
{
|
|
11940
11940
|
type: "button",
|
|
11941
11941
|
className: `${r}-arrow-inner`,
|
|
11942
|
-
onClick:
|
|
11942
|
+
onClick: E,
|
|
11943
11943
|
disabled: !$,
|
|
11944
11944
|
"aria-label": "Previous testimonial",
|
|
11945
11945
|
children: ae.icon && /* @__PURE__ */ l(
|
|
@@ -13493,14 +13493,14 @@ function Tg({
|
|
|
13493
13493
|
);
|
|
13494
13494
|
}
|
|
13495
13495
|
function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: c, counterClassName: s, counterStyle: d }) {
|
|
13496
|
-
const u = i === "cover", b = V(null), x = V(null), h = V(null), g = V(null), p = V(0), y = V(0), I = V("none"), T = V(!1), C = V(!1), X = V(null),
|
|
13497
|
-
}), [R, Q] = J(null), [
|
|
13496
|
+
const u = i === "cover", b = V(null), x = V(null), h = V(null), g = V(null), p = V(0), y = V(0), I = V("none"), T = V(!1), C = V(!1), X = V(null), A = V(0), B = V(null), P = V(!1), S = V(null), D = V(null), v = V(null), k = V(() => {
|
|
13497
|
+
}), [R, Q] = J(null), [M, Y] = J(null), [j, G] = J("opening"), [re, w] = J(0), [L, O] = J(0), [ce, ae] = J(null), [$, ge] = J(!1), [E, oe] = J(!1), [ee, we] = J(!1), [We, fe] = J(null), pe = V(n), U = V(void 0), te = t[n], Z = te ? Si(te) : !1, De = L !== 0 || $, Ie = ce !== null, _e = me((Te) => {
|
|
13498
13498
|
const ze = Te.currentTarget, qe = ze instanceof HTMLVideoElement ? { width: ze.videoWidth, height: ze.videoHeight } : { width: ze.naturalWidth, height: ze.naturalHeight };
|
|
13499
13499
|
!qe.width || !qe.height || fe(qe);
|
|
13500
13500
|
}, []);
|
|
13501
13501
|
Pe(() => {
|
|
13502
|
-
X.current =
|
|
13503
|
-
}, [
|
|
13502
|
+
X.current = M;
|
|
13503
|
+
}, [M]), Pe(() => {
|
|
13504
13504
|
const Te = b.current;
|
|
13505
13505
|
if (!Te) return;
|
|
13506
13506
|
const ze = () => Y(Gl(Te));
|
|
@@ -13512,9 +13512,9 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13512
13512
|
S.current !== null && (window.clearTimeout(S.current), S.current = null);
|
|
13513
13513
|
}, []), ye = me(() => {
|
|
13514
13514
|
const Te = D.current;
|
|
13515
|
-
D.current = null, ue(), B.current = null,
|
|
13515
|
+
D.current = null, ue(), B.current = null, P.current = !1, ae(null), ge(!1), O(0), A.current = 0, oe(!1), T.current = !1, y.current = 0, I.current = "none", Te === 1 ? c() : Te === -1 && a();
|
|
13516
13516
|
}, [ue, c, a]), Ce = me(() => {
|
|
13517
|
-
ue(), D.current = null, B.current = null,
|
|
13517
|
+
ue(), D.current = null, B.current = null, P.current = !1, ae(null), ge(!1), O(0), A.current = 0;
|
|
13518
13518
|
}, [ue]), z = me(() => {
|
|
13519
13519
|
ue(), S.current = window.setTimeout(() => {
|
|
13520
13520
|
D.current !== null && ye();
|
|
@@ -13522,25 +13522,25 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13522
13522
|
}, [ue, ye]), de = me((Te, ze) => {
|
|
13523
13523
|
var et;
|
|
13524
13524
|
const qe = ((et = X.current) == null ? void 0 : et.width) ?? 0;
|
|
13525
|
-
if (ue(), B.current = Te, ae(Te),
|
|
13525
|
+
if (ue(), B.current = Te, ae(Te), P.current = !0, ge(!0), ze) {
|
|
13526
13526
|
D.current = Te;
|
|
13527
13527
|
const ht = -Te * qe;
|
|
13528
|
-
|
|
13528
|
+
A.current = ht, O(ht), z();
|
|
13529
13529
|
return;
|
|
13530
13530
|
}
|
|
13531
|
-
|
|
13531
|
+
A.current = 0, O(0), S.current = window.setTimeout(() => {
|
|
13532
13532
|
S.current = null, Ce();
|
|
13533
13533
|
}, Ln + 32);
|
|
13534
13534
|
}, [ue, Ce, z]), ve = me((Te) => {
|
|
13535
13535
|
if (!(t.length <= 1)) {
|
|
13536
|
-
if (
|
|
13536
|
+
if (P.current) {
|
|
13537
13537
|
if (D.current === Te) {
|
|
13538
13538
|
v.current = Te, ye();
|
|
13539
13539
|
return;
|
|
13540
13540
|
}
|
|
13541
13541
|
Ce();
|
|
13542
13542
|
}
|
|
13543
|
-
ue(), B.current = Te, ae(Te),
|
|
13543
|
+
ue(), B.current = Te, ae(Te), P.current = !1, ge(!1), A.current = 0, O(0), requestAnimationFrame(() => {
|
|
13544
13544
|
requestAnimationFrame(() => {
|
|
13545
13545
|
de(Te, !0);
|
|
13546
13546
|
});
|
|
@@ -13549,7 +13549,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13549
13549
|
}, [t.length, de, ye, Ce, ue]);
|
|
13550
13550
|
k.current = ve;
|
|
13551
13551
|
const Se = me((Te) => {
|
|
13552
|
-
Te.propertyName !== "transform" || !
|
|
13552
|
+
Te.propertyName !== "transform" || !P.current || D.current !== null && ye();
|
|
13553
13553
|
}, [ye]), Ee = me(() => {
|
|
13554
13554
|
const Te = x.current;
|
|
13555
13555
|
if (!Te) return;
|
|
@@ -13571,7 +13571,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13571
13571
|
}, [j, r]), Pe(() => () => {
|
|
13572
13572
|
ue();
|
|
13573
13573
|
}, [ue]), Nt(() => {
|
|
13574
|
-
pe.current === n && U.current === (te == null ? void 0 : te.url) || (ue(), D.current = null, ae(null), w(0), O(0), ge(!1), we(!1), oe(!1), fe(null), p.current = 0, y.current = 0, I.current = "none", T.current = !1,
|
|
13574
|
+
pe.current === n && U.current === (te == null ? void 0 : te.url) || (ue(), D.current = null, ae(null), w(0), O(0), ge(!1), we(!1), oe(!1), fe(null), p.current = 0, y.current = 0, I.current = "none", T.current = !1, P.current = !1, A.current = 0, B.current = null, g.current = null, C.current = !1, pe.current = n, U.current = te == null ? void 0 : te.url);
|
|
13575
13575
|
}, [n, te == null ? void 0 : te.url, ue]), Nt(() => {
|
|
13576
13576
|
const Te = v.current;
|
|
13577
13577
|
Te !== null && (v.current = null, requestAnimationFrame(() => {
|
|
@@ -13594,11 +13594,11 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13594
13594
|
}
|
|
13595
13595
|
de(He, !1);
|
|
13596
13596
|
}, ht = (ft) => {
|
|
13597
|
-
if (ft.touches.length !== 1 ||
|
|
13597
|
+
if (ft.touches.length !== 1 || P.current) return;
|
|
13598
13598
|
const He = ft.touches[0];
|
|
13599
13599
|
C.current = !0, g.current = { x: He.clientX, y: He.clientY }, I.current = "none", y.current = 0, T.current = !1;
|
|
13600
13600
|
}, it = (ft) => {
|
|
13601
|
-
if (!g.current || ft.touches.length !== 1 ||
|
|
13601
|
+
if (!g.current || ft.touches.length !== 1 || P.current) return;
|
|
13602
13602
|
const He = ft.touches[0], Qe = He.clientX - g.current.x, Ge = He.clientY - g.current.y;
|
|
13603
13603
|
if (I.current === "none") {
|
|
13604
13604
|
if (Math.abs(Qe) < 10 && Math.abs(Ge) < 10) return;
|
|
@@ -13613,7 +13613,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13613
13613
|
if (I.current === "horizontal") {
|
|
13614
13614
|
T.current = !0, oe(!0), y.current = Qe;
|
|
13615
13615
|
const yt = Qe < 0 ? 1 : -1;
|
|
13616
|
-
B.current !== yt && (B.current = yt, ae(yt)),
|
|
13616
|
+
B.current !== yt && (B.current = yt, ae(yt)), A.current = Qe, O(Qe), ft.preventDefault();
|
|
13617
13617
|
return;
|
|
13618
13618
|
}
|
|
13619
13619
|
I.current === "vertical" && (T.current = !0, oe(!0), p.current = Ge, w(Ge), ft.preventDefault());
|
|
@@ -13666,12 +13666,12 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13666
13666
|
Te.currentTarget.style.cursor = qe < ze.width / 2 ? "w-resize" : "e-resize";
|
|
13667
13667
|
}, H = {
|
|
13668
13668
|
position: "fixed",
|
|
13669
|
-
top:
|
|
13670
|
-
left:
|
|
13671
|
-
width:
|
|
13672
|
-
height:
|
|
13669
|
+
top: M == null ? void 0 : M.top,
|
|
13670
|
+
left: M == null ? void 0 : M.left,
|
|
13671
|
+
width: M == null ? void 0 : M.width,
|
|
13672
|
+
height: M == null ? void 0 : M.height,
|
|
13673
13673
|
zIndex: 9998
|
|
13674
|
-
}, Xe = u ? "cover" : "contain", Ve = L !== 0 || re > 0 ? `translate(${L}px, ${re}px)` : void 0, gt =
|
|
13674
|
+
}, Xe = u ? "cover" : "contain", Ve = L !== 0 || re > 0 ? `translate(${L}px, ${re}px)` : void 0, gt = E && !$ ? "none" : $ ? `transform ${Ln}ms ${Gn}` : ee ? `transform ${Ln}ms ${Gn}, opacity ${Ln}ms ${Gn}` : j === "opening" || he ? `opacity ${Ln}ms ${Gn}` : "none", at = {
|
|
13675
13675
|
...H,
|
|
13676
13676
|
transform: Ve,
|
|
13677
13677
|
opacity: re > 0 ? _ : j === "opening" || he ? 0 : 1,
|
|
@@ -13679,14 +13679,14 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13679
13679
|
pointerEvents: "none"
|
|
13680
13680
|
}, wt = {
|
|
13681
13681
|
position: "absolute",
|
|
13682
|
-
top: ((ne == null ? void 0 : ne.top) ?? 0) - ((
|
|
13683
|
-
left: ((ne == null ? void 0 : ne.left) ?? 0) - ((
|
|
13682
|
+
top: ((ne == null ? void 0 : ne.top) ?? 0) - ((M == null ? void 0 : M.top) ?? 0),
|
|
13683
|
+
left: ((ne == null ? void 0 : ne.left) ?? 0) - ((M == null ? void 0 : M.left) ?? 0),
|
|
13684
13684
|
width: ne == null ? void 0 : ne.width,
|
|
13685
13685
|
height: ne == null ? void 0 : ne.height,
|
|
13686
13686
|
objectFit: Xe,
|
|
13687
13687
|
pointerEvents: Z && F && !De ? "auto" : "none",
|
|
13688
13688
|
touchAction: Z && F ? "none" : void 0
|
|
13689
|
-
}, st = (
|
|
13689
|
+
}, st = (M == null ? void 0 : M.width) ?? 0, Ue = Ie ? (n + ce + t.length) % t.length : null, xe = Ue !== null ? t[Ue] : null, Fe = {
|
|
13690
13690
|
...H,
|
|
13691
13691
|
transform: Ie ? `translateX(${ce * st + L}px)` : void 0,
|
|
13692
13692
|
opacity: 1,
|
|
@@ -13694,8 +13694,8 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13694
13694
|
pointerEvents: "none"
|
|
13695
13695
|
}, je = {
|
|
13696
13696
|
position: "absolute",
|
|
13697
|
-
top: ((R == null ? void 0 : R.top) ?? 0) - ((
|
|
13698
|
-
left: ((R == null ? void 0 : R.left) ?? 0) - ((
|
|
13697
|
+
top: ((R == null ? void 0 : R.top) ?? 0) - ((M == null ? void 0 : M.top) ?? 0),
|
|
13698
|
+
left: ((R == null ? void 0 : R.left) ?? 0) - ((M == null ? void 0 : M.left) ?? 0),
|
|
13699
13699
|
width: R == null ? void 0 : R.width,
|
|
13700
13700
|
height: R == null ? void 0 : R.height,
|
|
13701
13701
|
objectFit: Xe,
|
|
@@ -13728,7 +13728,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13728
13728
|
inset: 0,
|
|
13729
13729
|
background: "rgba(28,31,34,0.9)",
|
|
13730
13730
|
opacity: F ? ie : 0,
|
|
13731
|
-
transition:
|
|
13731
|
+
transition: E ? "none" : `opacity ${Ln}ms ${Gn}`,
|
|
13732
13732
|
pointerEvents: "none"
|
|
13733
13733
|
}
|
|
13734
13734
|
}
|
|
@@ -13809,7 +13809,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13809
13809
|
] })
|
|
13810
13810
|
}
|
|
13811
13811
|
),
|
|
13812
|
-
R &&
|
|
13812
|
+
R && M && xe && /* @__PURE__ */ l("div", { style: Fe, onTransitionEnd: Se, children: Si(xe) ? /* @__PURE__ */ l(
|
|
13813
13813
|
"video",
|
|
13814
13814
|
{
|
|
13815
13815
|
src: xe.url,
|
|
@@ -13828,7 +13828,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13828
13828
|
},
|
|
13829
13829
|
`neighbor-${Ue}-${xe.url}`
|
|
13830
13830
|
) }),
|
|
13831
|
-
R &&
|
|
13831
|
+
R && M && te && /* @__PURE__ */ l("div", { style: at, onTransitionEnd: Se, children: Z ? /* @__PURE__ */ l(
|
|
13832
13832
|
Tg,
|
|
13833
13833
|
{
|
|
13834
13834
|
src: te.url,
|
|
@@ -13859,7 +13859,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13859
13859
|
...Ze,
|
|
13860
13860
|
left: ne.left,
|
|
13861
13861
|
cursor: "w-resize",
|
|
13862
|
-
pointerEvents:
|
|
13862
|
+
pointerEvents: E ? "none" : "auto"
|
|
13863
13863
|
},
|
|
13864
13864
|
onClick: (Te) => {
|
|
13865
13865
|
if (C.current) {
|
|
@@ -13877,7 +13877,7 @@ function Lg({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
13877
13877
|
...Ze,
|
|
13878
13878
|
left: ne.left + ne.width / 2,
|
|
13879
13879
|
cursor: "e-resize",
|
|
13880
|
-
pointerEvents:
|
|
13880
|
+
pointerEvents: E ? "none" : "auto"
|
|
13881
13881
|
},
|
|
13882
13882
|
onClick: (Te) => {
|
|
13883
13883
|
if (C.current) {
|
|
@@ -13909,16 +13909,16 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13909
13909
|
lightboxImageDisplay: T,
|
|
13910
13910
|
slider: C,
|
|
13911
13911
|
sliderTiming: X,
|
|
13912
|
-
direction:
|
|
13912
|
+
direction: A,
|
|
13913
13913
|
transition: B,
|
|
13914
|
-
titleMarginTop:
|
|
13914
|
+
titleMarginTop: P,
|
|
13915
13915
|
subtitleMarginTop: S,
|
|
13916
13916
|
titleColor: D,
|
|
13917
13917
|
subtitleColor: v,
|
|
13918
13918
|
lightboxCounterColor: k,
|
|
13919
13919
|
titleFontFamily: R,
|
|
13920
13920
|
titleFontSettings: Q,
|
|
13921
|
-
titleFontSize:
|
|
13921
|
+
titleFontSize: M,
|
|
13922
13922
|
titleLineHeight: Y,
|
|
13923
13923
|
titleLetterSpacing: j,
|
|
13924
13924
|
titleWordSpacing: G,
|
|
@@ -13930,7 +13930,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13930
13930
|
subtitleLetterSpacing: ae,
|
|
13931
13931
|
subtitleWordSpacing: $,
|
|
13932
13932
|
subtitleTextAppearance: ge,
|
|
13933
|
-
lightboxCounterFontFamily:
|
|
13933
|
+
lightboxCounterFontFamily: E,
|
|
13934
13934
|
lightboxCounterFontSettings: oe,
|
|
13935
13935
|
lightboxCounterFontSize: ee,
|
|
13936
13936
|
lightboxCounterLineHeight: we,
|
|
@@ -13946,7 +13946,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13946
13946
|
fontWeight: (Q == null ? void 0 : Q.fontWeight) ?? 400,
|
|
13947
13947
|
fontStyle: (Q == null ? void 0 : Q.fontStyle) ?? "normal"
|
|
13948
13948
|
},
|
|
13949
|
-
fontSize:
|
|
13949
|
+
fontSize: M ?? 0.01,
|
|
13950
13950
|
lineHeight: Y,
|
|
13951
13951
|
letterSpacing: j ?? 0,
|
|
13952
13952
|
wordSpacing: G ?? 0,
|
|
@@ -13970,7 +13970,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13970
13970
|
...pn(en(ue, n))
|
|
13971
13971
|
}, z = {
|
|
13972
13972
|
fontSettings: {
|
|
13973
|
-
fontFamily:
|
|
13973
|
+
fontFamily: E,
|
|
13974
13974
|
fontWeight: (oe == null ? void 0 : oe.fontWeight) ?? 400,
|
|
13975
13975
|
fontStyle: (oe == null ? void 0 : oe.fontStyle) ?? "normal"
|
|
13976
13976
|
},
|
|
@@ -13984,7 +13984,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13984
13984
|
...pn(en(z, n)),
|
|
13985
13985
|
...ia(ee, we, d, n)
|
|
13986
13986
|
}, Se = na(
|
|
13987
|
-
|
|
13987
|
+
M,
|
|
13988
13988
|
Y,
|
|
13989
13989
|
`${d}-item-title`,
|
|
13990
13990
|
`${d}-text-tight-leading`
|
|
@@ -13993,7 +13993,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13993
13993
|
ce,
|
|
13994
13994
|
`${d}-item-subtitle`,
|
|
13995
13995
|
`${d}-text-tight-leading`
|
|
13996
|
-
), Re = ia(
|
|
13996
|
+
), Re = ia(M, Y, d, n), F = ia(O, ce, d, n), he = na(
|
|
13997
13997
|
ee,
|
|
13998
13998
|
we,
|
|
13999
13999
|
`${d}-lightbox-counter`,
|
|
@@ -14023,7 +14023,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14023
14023
|
height: "auto",
|
|
14024
14024
|
maxWidth: "100%",
|
|
14025
14025
|
...ft ? { borderRadius: ft } : {}
|
|
14026
|
-
}, [nn, on] = J(0), Ct = V(null), Lt = B === "fade" ||
|
|
14026
|
+
}, [nn, on] = J(0), Ct = V(null), Lt = B === "fade" || A === "horizontal" ? "ltr" : A === "vertical" ? "ttb" : "ltr";
|
|
14027
14027
|
Pe(() => {
|
|
14028
14028
|
const pt = Ct.current;
|
|
14029
14029
|
if (!pt) return;
|
|
@@ -14073,7 +14073,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14073
14073
|
"data-controls": o ? "titleMarginTop" : void 0,
|
|
14074
14074
|
className: o ? `${d}-control` : void 0,
|
|
14075
14075
|
style: {
|
|
14076
|
-
height: W(
|
|
14076
|
+
height: W(P ?? 0, n),
|
|
14077
14077
|
width: bt
|
|
14078
14078
|
}
|
|
14079
14079
|
}
|
|
@@ -14097,7 +14097,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14097
14097
|
"data-controls": o && Oe ? "titleMarginTop" : void 0,
|
|
14098
14098
|
className: o && Oe ? `${d}-control` : void 0,
|
|
14099
14099
|
style: {
|
|
14100
|
-
height: Oe ? W(
|
|
14100
|
+
height: Oe ? W(P ?? 0, n) : 0,
|
|
14101
14101
|
width: bt
|
|
14102
14102
|
}
|
|
14103
14103
|
}
|
|
@@ -14109,7 +14109,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14109
14109
|
"data-controls": o ? "titleMarginTop" : void 0,
|
|
14110
14110
|
className: o ? `${d}-control` : void 0,
|
|
14111
14111
|
style: {
|
|
14112
|
-
height: W(
|
|
14112
|
+
height: W(P ?? 0, n),
|
|
14113
14113
|
width: bt
|
|
14114
14114
|
}
|
|
14115
14115
|
}
|
|
@@ -14178,7 +14178,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14178
14178
|
direction: Lt
|
|
14179
14179
|
},
|
|
14180
14180
|
onMoved: (It) => {
|
|
14181
|
-
|
|
14181
|
+
A !== "random" || B === "fade" || gg(It);
|
|
14182
14182
|
},
|
|
14183
14183
|
children: Xt.map(({ displayMedia: It, lightboxMedia: f }, be) => {
|
|
14184
14184
|
const Me = f ? Yt.findIndex((ke) => ke.url === f.url) : -1;
|
|
@@ -14193,7 +14193,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14193
14193
|
) }, be);
|
|
14194
14194
|
})
|
|
14195
14195
|
},
|
|
14196
|
-
`${B}-${Ve}-${
|
|
14196
|
+
`${B}-${Ve}-${A}-${X}-${nn}-${c}`
|
|
14197
14197
|
)
|
|
14198
14198
|
] }) }), Vt = Ge ? null : /* @__PURE__ */ q(lt, { children: [
|
|
14199
14199
|
/* @__PURE__ */ l(
|
|
@@ -14202,7 +14202,7 @@ function Rg({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
14202
14202
|
"data-controls": o && Oe ? "titleMarginTop" : void 0,
|
|
14203
14203
|
className: o && Oe ? `${d}-control` : void 0,
|
|
14204
14204
|
style: {
|
|
14205
|
-
height: Oe ? W(
|
|
14205
|
+
height: Oe ? W(P ?? 0, n) : 0,
|
|
14206
14206
|
width: bt
|
|
14207
14207
|
}
|
|
14208
14208
|
}
|
|
@@ -17436,7 +17436,7 @@ function kc({
|
|
|
17436
17436
|
closeIconMaxWidth: T = 0,
|
|
17437
17437
|
closeIconColor: C = "#000000",
|
|
17438
17438
|
closeIconHoverColor: X = "#cccccc"
|
|
17439
|
-
} = n,
|
|
17439
|
+
} = n, A = W(p, i), B = W(y, i), P = W(h, i), S = g === "mobile", D = xi("title1", bi(n, "title1"), i), v = xi("title2", bi(n, "title2"), i), k = xi("title3", bi(n, "title3"), i), R = Ke(
|
|
17440
17440
|
() => ({
|
|
17441
17441
|
title1Width: c ?? Vi.title1Width,
|
|
17442
17442
|
title2Width: s ?? Vi.title2Width,
|
|
@@ -17446,24 +17446,24 @@ function kc({
|
|
|
17446
17446
|
), Q = Ke(() => ({
|
|
17447
17447
|
title2MarginLeft: b,
|
|
17448
17448
|
title3MarginLeft: x
|
|
17449
|
-
}), [b, x]),
|
|
17449
|
+
}), [b, x]), M = Ke(
|
|
17450
17450
|
() => Qn(e, t, D, v, k),
|
|
17451
17451
|
[e, t, D, v, k]
|
|
17452
17452
|
), Y = Ke(
|
|
17453
|
-
() =>
|
|
17454
|
-
[
|
|
17453
|
+
() => M.map((_) => R[_.widthKey]),
|
|
17454
|
+
[M, R]
|
|
17455
17455
|
), j = Ke(
|
|
17456
|
-
() => Xi(
|
|
17457
|
-
[
|
|
17456
|
+
() => Xi(M.length, Y),
|
|
17457
|
+
[M.length, Y]
|
|
17458
17458
|
), G = Ke(
|
|
17459
|
-
() => Po(
|
|
17460
|
-
[
|
|
17459
|
+
() => Po(M.length, Y),
|
|
17460
|
+
[M.length, Y]
|
|
17461
17461
|
), re = Ke(
|
|
17462
|
-
() =>
|
|
17463
|
-
[
|
|
17462
|
+
() => M.filter((_) => _.prefix === "title1"),
|
|
17463
|
+
[M]
|
|
17464
17464
|
), w = Ke(
|
|
17465
|
-
() =>
|
|
17466
|
-
[
|
|
17465
|
+
() => M.filter((_) => _.prefix === "title2" || _.prefix === "title3"),
|
|
17466
|
+
[M]
|
|
17467
17467
|
), L = Ke(
|
|
17468
17468
|
() => ei(re, R),
|
|
17469
17469
|
[re, R]
|
|
@@ -17472,8 +17472,8 @@ function kc({
|
|
|
17472
17472
|
[w, R]
|
|
17473
17473
|
), ce = !!(t.title1 || t.title2 || t.title3), ae = I !== null;
|
|
17474
17474
|
if (!(ce || ae)) return null;
|
|
17475
|
-
const ge = (u ?? 0) > 0 || o,
|
|
17476
|
-
const Ae =
|
|
17475
|
+
const ge = (u ?? 0) > 0 || o, E = (_, ne) => {
|
|
17476
|
+
const Ae = M.findIndex((H) => H.prefix === _.prefix);
|
|
17477
17477
|
if (!S || ne === "single-row")
|
|
17478
17478
|
return {
|
|
17479
17479
|
effectiveWidth: G[Ae] ?? 0,
|
|
@@ -17518,7 +17518,7 @@ function kc({
|
|
|
17518
17518
|
maxWidth: hn(H, Xe)
|
|
17519
17519
|
};
|
|
17520
17520
|
}, ee = (_) => Ac(
|
|
17521
|
-
|
|
17521
|
+
M,
|
|
17522
17522
|
j,
|
|
17523
17523
|
Q,
|
|
17524
17524
|
_
|
|
@@ -17533,7 +17533,7 @@ function kc({
|
|
|
17533
17533
|
effectiveWidth: H,
|
|
17534
17534
|
resolvedWidth: Xe,
|
|
17535
17535
|
maxWidth: Ve
|
|
17536
|
-
} = Ae ??
|
|
17536
|
+
} = Ae ?? E(_, ne), gt = Math.max(le, Jn), at = o && ne === "two-row-top";
|
|
17537
17537
|
return /* @__PURE__ */ q(
|
|
17538
17538
|
"div",
|
|
17539
17539
|
{
|
|
@@ -17585,7 +17585,7 @@ function kc({
|
|
|
17585
17585
|
_.className
|
|
17586
17586
|
);
|
|
17587
17587
|
}, U = (_ = "two-row") => {
|
|
17588
|
-
const ne =
|
|
17588
|
+
const ne = M.findIndex((H) => H.prefix === "title1"), Ae = ne >= 0 ? j[ne] : R.title1Width, le = _ === "two-row" && o;
|
|
17589
17589
|
return /* @__PURE__ */ l(
|
|
17590
17590
|
"div",
|
|
17591
17591
|
{
|
|
@@ -17647,7 +17647,7 @@ function kc({
|
|
|
17647
17647
|
"data-controls-reverse": H ? "" : void 0,
|
|
17648
17648
|
className: H ? `${e}-control` : void 0,
|
|
17649
17649
|
style: {
|
|
17650
|
-
height:
|
|
17650
|
+
height: P,
|
|
17651
17651
|
width: "100%",
|
|
17652
17652
|
flexShrink: 0,
|
|
17653
17653
|
pointerEvents: H ? "auto" : "none"
|
|
@@ -17714,7 +17714,7 @@ function kc({
|
|
|
17714
17714
|
Ce(De(_)),
|
|
17715
17715
|
Ie(_, ne)
|
|
17716
17716
|
] }), de = () => {
|
|
17717
|
-
const _ = S ? -1 :
|
|
17717
|
+
const _ = S ? -1 : M.findIndex((le) => le.prefix === "title1"), ne = !S && (o || (u ?? 0) > 0) ? (() => {
|
|
17718
17718
|
const le = u ?? 0, H = _ >= 0 ? j[_] : R.title1Width, Xe = Math.max(le, Jn);
|
|
17719
17719
|
return /* @__PURE__ */ l(
|
|
17720
17720
|
"div",
|
|
@@ -17734,10 +17734,10 @@ function kc({
|
|
|
17734
17734
|
},
|
|
17735
17735
|
"title1MarginLeft"
|
|
17736
17736
|
);
|
|
17737
|
-
})() : null, Ae =
|
|
17737
|
+
})() : null, Ae = M.flatMap((le, H) => {
|
|
17738
17738
|
if (!le.marginLeftKey) return [];
|
|
17739
17739
|
const Xe = Q[le.marginLeftKey] ?? 0, Ve = Ec(
|
|
17740
|
-
|
|
17740
|
+
M,
|
|
17741
17741
|
j,
|
|
17742
17742
|
Q,
|
|
17743
17743
|
H
|
|
@@ -17762,7 +17762,7 @@ function kc({
|
|
|
17762
17762
|
);
|
|
17763
17763
|
});
|
|
17764
17764
|
return ne ? [ne, ...Ae] : Ae;
|
|
17765
|
-
}, ve = () =>
|
|
17765
|
+
}, ve = () => M.map((_, ne) => {
|
|
17766
17766
|
const Ae = hn(ne, j), H = ee(ne) - Sn / 2;
|
|
17767
17767
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
17768
17768
|
"div",
|
|
@@ -17784,7 +17784,7 @@ function kc({
|
|
|
17784
17784
|
) }, `${_.widthKey}-junction`);
|
|
17785
17785
|
}), Se = () => w.flatMap((_, ne) => {
|
|
17786
17786
|
if (!_.marginLeftKey) return [];
|
|
17787
|
-
const Ae = Q[_.marginLeftKey] ?? 0, le = We(ne), H = Math.max(Ae, Jn), { resolvedWidth: Xe } =
|
|
17787
|
+
const Ae = Q[_.marginLeftKey] ?? 0, le = We(ne), H = Math.max(Ae, Jn), { resolvedWidth: Xe } = E(_, "two-row-bottom");
|
|
17788
17788
|
return /* @__PURE__ */ l(
|
|
17789
17789
|
"div",
|
|
17790
17790
|
{
|
|
@@ -17804,7 +17804,7 @@ function kc({
|
|
|
17804
17804
|
_.marginLeftKey
|
|
17805
17805
|
);
|
|
17806
17806
|
}), Ee = () => w.map((_, ne) => {
|
|
17807
|
-
const { maxWidth: Ae } =
|
|
17807
|
+
const { maxWidth: Ae } = E(_, "two-row-bottom"), H = fe(ne) - Sn / 2;
|
|
17808
17808
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
17809
17809
|
"div",
|
|
17810
17810
|
{
|
|
@@ -17870,7 +17870,7 @@ function kc({
|
|
|
17870
17870
|
{
|
|
17871
17871
|
"data-controls": o ? "contentMarginTop" : void 0,
|
|
17872
17872
|
className: o ? `${e}-control` : void 0,
|
|
17873
|
-
style: { height:
|
|
17873
|
+
style: { height: A, width: "100%" }
|
|
17874
17874
|
}
|
|
17875
17875
|
),
|
|
17876
17876
|
/* @__PURE__ */ l("div", { style: {
|
|
@@ -18597,8 +18597,8 @@ function fh({
|
|
|
18597
18597
|
onPrev: p,
|
|
18598
18598
|
onNext: y
|
|
18599
18599
|
}) {
|
|
18600
|
-
const I = V(null), T = V(null), C = V(null), X = V(/* @__PURE__ */ new Map()), [
|
|
18601
|
-
}), re = V(null), w = V(null), L = V(null), O = V(!1), [ce, ae] = J(null), [$, ge] = J(aa), [
|
|
18600
|
+
const I = V(null), T = V(null), C = V(null), X = V(/* @__PURE__ */ new Map()), [A, B] = J(0), P = V(null), S = V(0), D = V(0), v = V("none"), k = V(!1), R = V(!1), Q = V(!1), M = V(null), Y = V(null), j = V(null), G = V(() => {
|
|
18601
|
+
}), re = V(null), w = V(null), L = V(null), O = V(!1), [ce, ae] = J(null), [$, ge] = J(aa), [E, oe] = J(0), [ee, we] = J("opening"), [We, fe] = J(0), [pe, U] = J(0), [te, Z] = J(!1), [De, Ie] = J(null), [_e, ue] = J(null), [ye, Ce] = J(null), [z, de] = J(!1), [ve, Se] = J(null), [Ee, Re] = J(!1), F = V(!1), [he, ie] = J(!1), [_, ne] = J(!1), Ae = V(n), le = V(void 0), H = t[n], Xe = H ? lo(H) : !1, Ve = pe !== 0 || te, gt = !a && (!r || !!c), at = s && !a, wt = d.length > 1, st = me((f, be) => t.length <= 1 ? null : t[(f + be + t.length) % t.length] ?? null, [t]), Ue = wt ? fo(d, u, -1) : st(n, -1), xe = wt ? fo(d, u, 1) : st(n, 1), Fe = De === -1 && Ve ? wt && _e !== null ? fo(d, _e, -1) : ye !== null ? st(ye, -1) : null : null, je = De === 1 && Ve ? wt && _e !== null ? fo(d, _e, 1) : ye !== null ? st(ye, 1) : null : null, Ze = Fe && Fe.url !== (Ue == null ? void 0 : Ue.url) ? Fe : null, Te = je && je.url !== (xe == null ? void 0 : xe.url) ? je : null, ze = Ue && at ? (() => {
|
|
18602
18602
|
const f = wt ? Jl(d, u, -1) : t.length > 2 ? st((n - 1 + t.length) % t.length, -1) : null;
|
|
18603
18603
|
return f && f.url !== Ue.url ? f : null;
|
|
18604
18604
|
})() : null, qe = xe && at ? (() => {
|
|
@@ -18612,7 +18612,7 @@ function fh({
|
|
|
18612
18612
|
if (!(f != null && f.url)) return null;
|
|
18613
18613
|
const be = X.current.get(f.url);
|
|
18614
18614
|
return rh(T.current, be);
|
|
18615
|
-
}, [
|
|
18615
|
+
}, [A, E]), ft = me(() => {
|
|
18616
18616
|
if (!H) return;
|
|
18617
18617
|
const f = Mt(H);
|
|
18618
18618
|
if (f) {
|
|
@@ -18631,9 +18631,9 @@ function fh({
|
|
|
18631
18631
|
}, [wt, d.length, u, t.length, n]), Qe = me((f) => {
|
|
18632
18632
|
Q.current = f, Z(f);
|
|
18633
18633
|
}, []), Ge = me(() => {
|
|
18634
|
-
|
|
18634
|
+
M.current !== null && (window.clearTimeout(M.current), M.current = null);
|
|
18635
18635
|
}, []), yt = me(() => {
|
|
18636
|
-
Ge(),
|
|
18636
|
+
Ge(), M.current = window.setTimeout(() => {
|
|
18637
18637
|
Ge(), Qe(!1);
|
|
18638
18638
|
}, uo + 32);
|
|
18639
18639
|
}, [Ge, Qe]), vt = me(() => {
|
|
@@ -18679,7 +18679,7 @@ function fh({
|
|
|
18679
18679
|
const f = Y.current;
|
|
18680
18680
|
Y.current = null, Ge(), Qe(!1), Ie(null), ue(null), Ce(null), U(0), ie(!1), k.current = !1, D.current = 0, v.current = "none", f === -1 ? p() : f === 1 && y();
|
|
18681
18681
|
}, [Ge, Qe, p, y]), nn = me(() => {
|
|
18682
|
-
Ge(),
|
|
18682
|
+
Ge(), M.current = window.setTimeout(() => {
|
|
18683
18683
|
Y.current !== null && Ot();
|
|
18684
18684
|
}, uo + 32);
|
|
18685
18685
|
}, [Ge, Ot]), on = me(() => {
|
|
@@ -18765,7 +18765,7 @@ function fh({
|
|
|
18765
18765
|
}
|
|
18766
18766
|
}, [H == null ? void 0 : H.url, n, Tt]), Pe(() => {
|
|
18767
18767
|
ft();
|
|
18768
|
-
}, [ft,
|
|
18768
|
+
}, [ft, A]), Pe(() => {
|
|
18769
18769
|
const f = /* @__PURE__ */ new Set(), be = [], Me = (ke) => {
|
|
18770
18770
|
!(ke != null && ke.url) || f.has(ke.url) || (f.add(ke.url), be.push(ke));
|
|
18771
18771
|
};
|
|
@@ -18792,7 +18792,7 @@ function fh({
|
|
|
18792
18792
|
}, [ee, g]), Pe(() => () => {
|
|
18793
18793
|
Ge();
|
|
18794
18794
|
}, [Ge]), Nt(() => {
|
|
18795
|
-
Ae.current === n && le.current === (H == null ? void 0 : H.url) || (Ge(), Y.current = null, Ie(null), ue(null), Ce(null), fe(0), U(0), Qe(!1), ne(!1), ie(!1), S.current = 0, D.current = 0, v.current = "none", k.current = !1,
|
|
18795
|
+
Ae.current === n && le.current === (H == null ? void 0 : H.url) || (Ge(), Y.current = null, Ie(null), ue(null), Ce(null), fe(0), U(0), Qe(!1), ne(!1), ie(!1), S.current = 0, D.current = 0, v.current = "none", k.current = !1, P.current = null, R.current = !1, C.current = null, ft(), Ae.current = n, le.current = H == null ? void 0 : H.url);
|
|
18796
18796
|
}, [n, H == null ? void 0 : H.url, Qe, Ge, ft]), Nt(() => {
|
|
18797
18797
|
const f = j.current;
|
|
18798
18798
|
f !== null && (j.current = null, requestAnimationFrame(() => {
|
|
@@ -18834,10 +18834,10 @@ function fh({
|
|
|
18834
18834
|
}, ke = (tt) => {
|
|
18835
18835
|
if (tt.touches.length !== 1 || Q.current) return;
|
|
18836
18836
|
const St = tt.touches[0];
|
|
18837
|
-
R.current = !0,
|
|
18837
|
+
R.current = !0, P.current = { x: St.clientX, y: St.clientY }, v.current = "none", D.current = 0, k.current = !1;
|
|
18838
18838
|
}, rt = (tt) => {
|
|
18839
|
-
if (!
|
|
18840
|
-
const St = tt.touches[0], jt = St.clientX -
|
|
18839
|
+
if (!P.current || tt.touches.length !== 1 || Q.current) return;
|
|
18840
|
+
const St = tt.touches[0], jt = St.clientX - P.current.x, Et = St.clientY - P.current.y;
|
|
18841
18841
|
if (v.current === "none") {
|
|
18842
18842
|
if (Math.abs(jt) < 10 && Math.abs(Et) < 10) return;
|
|
18843
18843
|
if (Math.abs(jt) > Math.abs(Et)) {
|
|
@@ -18855,7 +18855,7 @@ function fh({
|
|
|
18855
18855
|
}
|
|
18856
18856
|
v.current === "vertical" && (k.current = !0, ie(!0), S.current = Et, fe(Et), tt.preventDefault());
|
|
18857
18857
|
}, Ft = () => {
|
|
18858
|
-
if (!
|
|
18858
|
+
if (!P.current) return;
|
|
18859
18859
|
const tt = v.current, St = k.current;
|
|
18860
18860
|
if (St && tt === "horizontal")
|
|
18861
18861
|
Me(D.current), f();
|
|
@@ -18868,7 +18868,7 @@ function fh({
|
|
|
18868
18868
|
S.current = 0, fe(0);
|
|
18869
18869
|
f();
|
|
18870
18870
|
} else tt === "horizontal" && Math.abs(D.current) > 0 && (Me(D.current), f());
|
|
18871
|
-
|
|
18871
|
+
P.current = null, v.current = "none", D.current = 0, k.current = !1, ie(!1);
|
|
18872
18872
|
};
|
|
18873
18873
|
return document.addEventListener("touchstart", ke, { passive: !0 }), document.addEventListener("touchmove", rt, { passive: !1 }), document.addEventListener("touchend", Ft), document.addEventListener("touchcancel", Ft), () => {
|
|
18874
18874
|
document.removeEventListener("touchstart", ke), document.removeEventListener("touchmove", rt), document.removeEventListener("touchend", Ft), document.removeEventListener("touchcancel", Ft);
|
|
@@ -19169,7 +19169,7 @@ function yh({
|
|
|
19169
19169
|
layoutId: r,
|
|
19170
19170
|
portalId: a
|
|
19171
19171
|
}) {
|
|
19172
|
-
const { prefix: c } = dn(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, x = (b == null ? void 0 : b.display) === "cover", h = (b == null ? void 0 : b.ratioValue) ?? "1:1", g = (b == null ? void 0 : b.reversed) ?? !1, [p, y] = h.split(":").map(Number), C = `${g ? y : p} / ${g ? p : y}`, X = s.entryWidth ?? 0.2,
|
|
19172
|
+
const { prefix: c } = dn(), { gridLayout: s, verticalGap: d, align: u = "top", imageDisplay: b } = e, x = (b == null ? void 0 : b.display) === "cover", h = (b == null ? void 0 : b.ratioValue) ?? "1:1", g = (b == null ? void 0 : b.reversed) ?? !1, [p, y] = h.split(":").map(Number), C = `${g ? y : p} / ${g ? p : y}`, X = s.entryWidth ?? 0.2, A = s.columnsCount, B = W(X, n), P = W(s.horizontalGap ?? 0, n), S = B, D = B, v = {
|
|
19173
19173
|
width: S,
|
|
19174
19174
|
...x ? { aspectRatio: C, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
19175
19175
|
}, k = x ? {
|
|
@@ -19184,21 +19184,21 @@ function yh({
|
|
|
19184
19184
|
width: "auto",
|
|
19185
19185
|
height: "auto",
|
|
19186
19186
|
maxWidth: "100%"
|
|
19187
|
-
}, R = V(null), [Q,
|
|
19187
|
+
}, R = V(null), [Q, M] = J(!1), [Y, j] = J([]), [G, re] = J(0), [w, L] = J(0), [O, ce] = J(null), [ae, $] = J({
|
|
19188
19188
|
title1: "",
|
|
19189
19189
|
title2: "",
|
|
19190
19190
|
title3: ""
|
|
19191
19191
|
}), ge = (() => {
|
|
19192
19192
|
const ye = {}, Ce = R.current ? getComputedStyle(R.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
19193
19193
|
return Ce && (ye["--cntrl-article-width"] = Ce), ye;
|
|
19194
|
-
})(),
|
|
19194
|
+
})(), E = !n || i || o, oe = Ke(() => Kg(c), [c]), ee = t ?? [], we = ee.length % A || A, We = we < A && ee.length > 0, fe = ee.length - we, pe = We ? Math.floor((A - we) / 2) + 1 : 1, U = Ke(() => nh(ee), [ee]), te = Ke(() => lh(ee), [ee]), Z = (ye, Ce, z) => {
|
|
19195
19195
|
if (n && !o && !i) return;
|
|
19196
19196
|
const de = U.findIndex((Se) => Se.gridIndex === ye);
|
|
19197
19197
|
if (de < 0) return;
|
|
19198
19198
|
const ve = U[de];
|
|
19199
|
-
L(de), j(ve.items), re(Ce), $(ve.entry), ce(z ?? null),
|
|
19199
|
+
L(de), j(ve.items), re(Ce), $(ve.entry), ce(z ?? null), M(!0);
|
|
19200
19200
|
}, De = me(() => {
|
|
19201
|
-
|
|
19201
|
+
M(!1), ce(null);
|
|
19202
19202
|
}, []), Ie = me(() => {
|
|
19203
19203
|
const ye = U[w];
|
|
19204
19204
|
return !ye || !R.current ? O : th(
|
|
@@ -19221,7 +19221,7 @@ function yh({
|
|
|
19221
19221
|
document.body.style.overflow = ye;
|
|
19222
19222
|
};
|
|
19223
19223
|
}, [Q]), Pe(() => {
|
|
19224
|
-
!n || o || i ||
|
|
19224
|
+
!n || o || i || M(!1);
|
|
19225
19225
|
}, [n, o, i]), /* @__PURE__ */ q(lt, { children: [
|
|
19226
19226
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: oe } }),
|
|
19227
19227
|
/* @__PURE__ */ l(sh, { mediaList: te }),
|
|
@@ -19231,21 +19231,21 @@ function yh({
|
|
|
19231
19231
|
ref: R,
|
|
19232
19232
|
className: `${c}-wrapper ${c}-align-entries ${c}-image-align-${u}`.trim(),
|
|
19233
19233
|
style: {
|
|
19234
|
-
gridTemplateColumns: `repeat(${
|
|
19234
|
+
gridTemplateColumns: `repeat(${A}, ${B})`,
|
|
19235
19235
|
rowGap: 0,
|
|
19236
|
-
columnGap:
|
|
19236
|
+
columnGap: P,
|
|
19237
19237
|
width: W(s.wrapperWidth ?? 0, n),
|
|
19238
19238
|
[`--${c}-align-entries-row-gap`]: W(d ?? 0, n)
|
|
19239
19239
|
},
|
|
19240
19240
|
children: ee.map((ye, Ce) => {
|
|
19241
|
-
const z = ul(ye.gallery), de = pl(z), ve = de.filter((ie) => ie.lightboxMedia).map((ie) => ie.lightboxMedia), Se = Math.floor(Ce /
|
|
19241
|
+
const z = ul(ye.gallery), de = pl(z), ve = de.filter((ie) => ie.lightboxMedia).map((ie) => ie.lightboxMedia), Se = Math.floor(Ce / A) === Math.ceil(ee.length / A) - 1, Ee = We && Ce >= fe ? `${pe + (Ce - fe)}` : void 0, Re = de[0], F = Re != null && Re.lightboxMedia ? ve.findIndex((ie) => ie.url === Re.lightboxMedia.url) : -1, he = /* @__PURE__ */ l("div", { className: `${c}-item-image-wrapper`, style: v, children: de.length > 0 && /* @__PURE__ */ l(
|
|
19242
19242
|
gh,
|
|
19243
19243
|
{
|
|
19244
19244
|
media: Re.displayMedia,
|
|
19245
19245
|
gridIndex: Ce,
|
|
19246
19246
|
className: `${c}-item-${lo(Re.displayMedia) ? "video" : "image"}`.trim(),
|
|
19247
19247
|
style: k,
|
|
19248
|
-
onMediaClick:
|
|
19248
|
+
onMediaClick: E && F >= 0 ? (ie) => Z(
|
|
19249
19249
|
Ce,
|
|
19250
19250
|
F,
|
|
19251
19251
|
Wc(ie.currentTarget, x ? "cover" : "contain")
|
|
@@ -23212,13 +23212,13 @@ function cf(e, t, n) {
|
|
|
23212
23212
|
const o = zc(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, c = wo(e), s = wo(t), d = e.type === "b" || e.type === void 0 && t.type === "b", u = typeof r == "number" ? r : typeof a == "number" ? a : oi.length, b = (C) => {
|
|
23213
23213
|
if (d)
|
|
23214
23214
|
return C;
|
|
23215
|
-
const X = tr({ ...t, ...C }),
|
|
23215
|
+
const X = tr({ ...t, ...C }), A = wo(C), B = hr(u, A, X), P = of(u, B, {
|
|
23216
23216
|
...t,
|
|
23217
23217
|
...C
|
|
23218
23218
|
});
|
|
23219
|
-
return Object.keys(
|
|
23219
|
+
return Object.keys(P).length === 0 ? C : {
|
|
23220
23220
|
...C,
|
|
23221
|
-
...
|
|
23221
|
+
...P
|
|
23222
23222
|
};
|
|
23223
23223
|
};
|
|
23224
23224
|
if (typeof r == "number" && r !== a)
|
|
@@ -23251,8 +23251,8 @@ function cf(e, t, n) {
|
|
|
23251
23251
|
).some(
|
|
23252
23252
|
(C, X) => C < (p[X] ?? C)
|
|
23253
23253
|
), T = Cn.some((C) => {
|
|
23254
|
-
const X = e[C],
|
|
23255
|
-
return typeof X == "number" && typeof
|
|
23254
|
+
const X = e[C], A = t[C];
|
|
23255
|
+
return typeof X == "number" && typeof A == "number" && X !== A;
|
|
23256
23256
|
});
|
|
23257
23257
|
return I || T ? b(e) : e;
|
|
23258
23258
|
}
|
|
@@ -23312,16 +23312,16 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23312
23312
|
showCut: T,
|
|
23313
23313
|
cutCellMinHeight: C,
|
|
23314
23314
|
cutLabel: X,
|
|
23315
|
-
imageSize:
|
|
23315
|
+
imageSize: A,
|
|
23316
23316
|
imageOnHover: B,
|
|
23317
|
-
imagePosition:
|
|
23317
|
+
imagePosition: P = "cursor",
|
|
23318
23318
|
imageInterpolation: S = "on",
|
|
23319
23319
|
entryHoverEffect: D,
|
|
23320
23320
|
entryHoverShowOption: v,
|
|
23321
23321
|
rowPaddingTop: k,
|
|
23322
23322
|
rowPaddingBottom: R,
|
|
23323
23323
|
rowPaddingTopB: Q,
|
|
23324
|
-
columnsOrder:
|
|
23324
|
+
columnsOrder: M,
|
|
23325
23325
|
textPaddingLR: Y,
|
|
23326
23326
|
textColor: j,
|
|
23327
23327
|
backgroundColor: G,
|
|
@@ -23329,7 +23329,7 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23329
23329
|
textHoverColor: w,
|
|
23330
23330
|
backgroundHoverColor: L,
|
|
23331
23331
|
dividerHoverColor: O
|
|
23332
|
-
} = e, [ce, ae] = J(void 0), [$, ge] = J(null),
|
|
23332
|
+
} = e, [ce, ae] = J(void 0), [$, ge] = J(null), E = V(null), oe = B === "on" && (!n || i), ee = P === "cursor", we = ee && S === "on", { anchorRef: We, onShow: fe, onCursorMove: pe, exit: U } = Wh(
|
|
23333
23333
|
!!(oe && $ !== null),
|
|
23334
23334
|
we
|
|
23335
23335
|
), te = (I ?? 0) > 0, Z = b === "b", De = V(null), Ie = V(null), [_e, ue] = J(null), [ye, Ce] = J(ko), z = zc(ye), de = Math.max(0, ((x ?? 0) - z) / 2), ve = Math.min(Y ?? 0, de), Se = Math.max(ve, Hi), Ee = ((x ?? 0) + z) / 2;
|
|
@@ -23423,7 +23423,7 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23423
23423
|
e.DColumnPaddingBottom,
|
|
23424
23424
|
e.EColumnPaddingBottom
|
|
23425
23425
|
]
|
|
23426
|
-
), wt = Ke(() => Array.isArray(
|
|
23426
|
+
), wt = Ke(() => Array.isArray(M) && M.length > 0 ? M : [...oi], [M]), st = Ke(
|
|
23427
23427
|
() => mf(
|
|
23428
23428
|
wt,
|
|
23429
23429
|
u,
|
|
@@ -23479,7 +23479,7 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23479
23479
|
p ?? 0,
|
|
23480
23480
|
n ?? !1
|
|
23481
23481
|
).borderTopWidth, Ot = Z ? "rowPaddingTopB" : "rowPaddingTop", nn = st[0], on = st[st.length - 1], Ct = Ze[0], Lt = Ze[Ze.length - 1], Jt = nn && Ct ? Math.max(Ct.paddingLeft, Hi) : 0, zt = on && Lt ? Math.max(Lt.paddingRight, Hi) : 0, Tt = Ue, Gt = (Le, Oe) => kh(
|
|
23482
|
-
|
|
23482
|
+
P,
|
|
23483
23483
|
De.current,
|
|
23484
23484
|
ee ? Le : null,
|
|
23485
23485
|
Oe
|
|
@@ -23490,7 +23490,7 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23490
23490
|
U(() => ge(null));
|
|
23491
23491
|
return;
|
|
23492
23492
|
}
|
|
23493
|
-
const mt = (
|
|
23493
|
+
const mt = (A == null ? void 0 : A.min) ?? 80, xt = (A == null ? void 0 : A.max) ?? 320, kt = ($ == null ? void 0 : $.rowId) === Le.id, dt = kt ? $.widthPx : uf(mt, xt), { x: qt, y: Ht } = Gt(Oe, dt);
|
|
23494
23494
|
if (kt && ee) {
|
|
23495
23495
|
pe(qt, Ht);
|
|
23496
23496
|
return;
|
|
@@ -23501,7 +23501,7 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23501
23501
|
objectFit: "contain",
|
|
23502
23502
|
isVideo: Rh(ot),
|
|
23503
23503
|
widthPx: dt
|
|
23504
|
-
}),
|
|
23504
|
+
}), E.current = { x: qt, y: Ht };
|
|
23505
23505
|
}, rn = (Le) => {
|
|
23506
23506
|
if (!oe || !$ || !ee) return;
|
|
23507
23507
|
const { x: Oe, y: ot } = Gt(Le, $.widthPx);
|
|
@@ -23514,9 +23514,9 @@ function gf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23514
23514
|
_ && ts(Le, s);
|
|
23515
23515
|
};
|
|
23516
23516
|
Nt(() => {
|
|
23517
|
-
if (!$ || !
|
|
23518
|
-
const { x: Le, y: Oe } =
|
|
23519
|
-
|
|
23517
|
+
if (!$ || !E.current) return;
|
|
23518
|
+
const { x: Le, y: Oe } = E.current;
|
|
23519
|
+
E.current = null, fe(Le, Oe);
|
|
23520
23520
|
}, [$ == null ? void 0 : $.rowId, $ == null ? void 0 : $.url, fe]), Nt(() => {
|
|
23521
23521
|
if (!d || Z) {
|
|
23522
23522
|
ue(null);
|
|
@@ -28178,6 +28178,8 @@ function _f(e) {
|
|
|
28178
28178
|
top: 50%;
|
|
28179
28179
|
left: 50%;
|
|
28180
28180
|
transform: translate(-50%, -50%);
|
|
28181
|
+
width: 100%;
|
|
28182
|
+
height: 100%;
|
|
28181
28183
|
transition: background-color 250ms;
|
|
28182
28184
|
}
|
|
28183
28185
|
.${e}-wrapper.${e}-entry-hover-default .${e}-item:not(.${e}-item-open):hover .${e}-icon-image,
|
|
@@ -28271,16 +28273,16 @@ function Nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28271
28273
|
questionColor: T = "#000000",
|
|
28272
28274
|
answerColor: C = "#000000",
|
|
28273
28275
|
dividerColor: X = "#0000001F",
|
|
28274
|
-
iconColor:
|
|
28276
|
+
iconColor: A = "#000000",
|
|
28275
28277
|
questionHoverColor: B = "#666666",
|
|
28276
|
-
iconHoverColor:
|
|
28278
|
+
iconHoverColor: P = "#666666",
|
|
28277
28279
|
iconActiveColor: S = "#000000",
|
|
28278
28280
|
dividerHoverColor: D = "#000000",
|
|
28279
28281
|
questionFontFamily: v,
|
|
28280
28282
|
questionFontSettings: k,
|
|
28281
28283
|
questionFontSize: R,
|
|
28282
28284
|
questionLineHeight: Q,
|
|
28283
|
-
questionLetterSpacing:
|
|
28285
|
+
questionLetterSpacing: M,
|
|
28284
28286
|
questionWordSpacing: Y,
|
|
28285
28287
|
questionTextAppearance: j,
|
|
28286
28288
|
answerFontFamily: G,
|
|
@@ -28292,7 +28294,7 @@ function Nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28292
28294
|
answerTextAppearance: ae,
|
|
28293
28295
|
questionPaddingLeft: $ = 0,
|
|
28294
28296
|
questionPaddingTop: ge = 0,
|
|
28295
|
-
questionPaddingBottom:
|
|
28297
|
+
questionPaddingBottom: E = 0,
|
|
28296
28298
|
answerPaddingLeft: oe = 0,
|
|
28297
28299
|
answerPaddingRight: ee = 0,
|
|
28298
28300
|
answerPaddingTop: we = 0,
|
|
@@ -28303,13 +28305,13 @@ function Nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28303
28305
|
}, [h]), Pe(() => {
|
|
28304
28306
|
n && !o && !i && U(/* @__PURE__ */ new Set());
|
|
28305
28307
|
}, [n, o, i]);
|
|
28306
|
-
const Z = (Ze) => W(Ze, n ?? !1), De = Math.max($, qn), Ie = Math.max(ge, qn), _e = Math.max(
|
|
28308
|
+
const Z = (Ze) => W(Ze, n ?? !1), De = Math.max($, qn), Ie = Math.max(ge, qn), _e = Math.max(E, qn), ue = Math.max(oe, qn), ye = Math.max(ee, qn), Ce = Math.max(we, qn), z = Math.max(We, qn), de = Math.max(0, (s ?? 1) - y - p), ve = Math.max(0, (s ?? 1) - ee), Se = Math.max(0, (s ?? 1) - oe), Ee = Math.max(y, qn), Re = Math.max(0, (s ?? 1) - $ - p), F = Ke(() => pe.size === 0 ? 0 : Math.min(...pe), [pe]), he = me((Ze) => pe.has(Ze), [pe]), ie = te && x === "default" ? `${a}-entry-hover-default` : "", _ = g ?? "", ne = _ !== "", Ae = I.replace(/^rotate /, ""), le = `${a}-icon-anim-${Ae}`, H = pn(en(
|
|
28307
28309
|
ys(
|
|
28308
28310
|
v,
|
|
28309
28311
|
k,
|
|
28310
28312
|
R,
|
|
28311
28313
|
Q,
|
|
28312
|
-
|
|
28314
|
+
M,
|
|
28313
28315
|
Y,
|
|
28314
28316
|
j,
|
|
28315
28317
|
T
|
|
@@ -28341,9 +28343,9 @@ function Nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28341
28343
|
questionColor: T,
|
|
28342
28344
|
answerColor: C,
|
|
28343
28345
|
dividerColor: X,
|
|
28344
|
-
iconColor:
|
|
28346
|
+
iconColor: A,
|
|
28345
28347
|
questionHoverColor: B,
|
|
28346
|
-
iconHoverColor:
|
|
28348
|
+
iconHoverColor: P,
|
|
28347
28349
|
iconActiveColor: S,
|
|
28348
28350
|
dividerHoverColor: D
|
|
28349
28351
|
}, kf, Wf), Ue = r && r !== "default" ? `${a}-state-${r}` : "", xe = me((Ze) => {
|
|
@@ -28476,17 +28478,17 @@ function Nf({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28476
28478
|
mn,
|
|
28477
28479
|
{
|
|
28478
28480
|
url: _,
|
|
28479
|
-
fill:
|
|
28480
|
-
hoverFill:
|
|
28481
|
+
fill: `var(--${a}-icon-color)`,
|
|
28482
|
+
hoverFill: `var(--${a}-icon-hover-color, var(--${a}-icon-color))`,
|
|
28481
28483
|
className: `${a}-icon-image`
|
|
28482
28484
|
}
|
|
28483
28485
|
) }) : /* @__PURE__ */ l("span", { className: `${a}-icon ${a}-icon-default ${le}`, "aria-hidden": "true" }))
|
|
28484
28486
|
] }),
|
|
28485
|
-
|
|
28487
|
+
E > 0 && /* @__PURE__ */ l(
|
|
28486
28488
|
"span",
|
|
28487
28489
|
{
|
|
28488
28490
|
className: `${a}-padding-handle`,
|
|
28489
|
-
style: { height: Z(
|
|
28491
|
+
style: { height: Z(E) },
|
|
28490
28492
|
"aria-hidden": "true"
|
|
28491
28493
|
}
|
|
28492
28494
|
)
|
|
@@ -28856,6 +28858,8 @@ function getCSS(P: string): string {
|
|
|
28856
28858
|
top: 50%;
|
|
28857
28859
|
left: 50%;
|
|
28858
28860
|
transform: translate(-50%, -50%);
|
|
28861
|
+
width: 100%;
|
|
28862
|
+
height: 100%;
|
|
28859
28863
|
transition: background-color 250ms;
|
|
28860
28864
|
}
|
|
28861
28865
|
.\${P}-wrapper.\${P}-entry-hover-default .\${P}-item:not(.\${P}-item-open):hover .\${P}-icon-image,
|
|
@@ -29227,8 +29231,8 @@ export function FAQ({ settings, content, isEditor, isPreviewMode, isEditMode, ac
|
|
|
29227
29231
|
<span className={\`\${P}-icon \${P}-icon-custom \${iconAnimClass}\`} aria-hidden="true">
|
|
29228
29232
|
<SvgImage
|
|
29229
29233
|
url={iconSrc}
|
|
29230
|
-
fill={
|
|
29231
|
-
hoverFill={
|
|
29234
|
+
fill={\`var(--\${P}-icon-color)\`}
|
|
29235
|
+
hoverFill={\`var(--\${P}-icon-hover-color, var(--\${P}-icon-color))\`}
|
|
29232
29236
|
className={\`\${P}-icon-image\`}
|
|
29233
29237
|
/>
|
|
29234
29238
|
</span>
|
|
@@ -29705,7 +29709,7 @@ const vs = {
|
|
|
29705
29709
|
dividerStyle: "dotted",
|
|
29706
29710
|
entryHoverEffect: "default",
|
|
29707
29711
|
autoclose: "off",
|
|
29708
|
-
icon: "https://cdn.cntrl.site/
|
|
29712
|
+
icon: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01M0GB8Z9EQFMGYA20F2J0ACA8.svg",
|
|
29709
29713
|
iconAnimation: "rotate 45",
|
|
29710
29714
|
questionColor: "#000000",
|
|
29711
29715
|
answerColor: "#000000",
|
|
@@ -29950,8 +29954,8 @@ const vs = {
|
|
|
29950
29954
|
}
|
|
29951
29955
|
if (!k.isLocked) return;
|
|
29952
29956
|
v.preventDefault();
|
|
29953
|
-
const
|
|
29954
|
-
d.current =
|
|
29957
|
+
const M = Math.max(0, Q);
|
|
29958
|
+
d.current = M, r(M);
|
|
29955
29959
|
}, [e, g]), C = me((v) => {
|
|
29956
29960
|
const k = s.current;
|
|
29957
29961
|
if (!e || !k || v.pointerType !== "touch" || k.pointerId !== v.pointerId) return;
|
|
@@ -29963,9 +29967,9 @@ const vs = {
|
|
|
29963
29967
|
v.clientY - k.startY >= u ? y() : p();
|
|
29964
29968
|
}, [u, y, e, g, p]), X = me((v) => {
|
|
29965
29969
|
C(v);
|
|
29966
|
-
}, [C]),
|
|
29970
|
+
}, [C]), A = me((v) => {
|
|
29967
29971
|
C(v);
|
|
29968
|
-
}, [C]), B = o > 0,
|
|
29972
|
+
}, [C]), B = o > 0, P = a ? `transform ${n}ms ease` : "none", S = a ? `opacity ${n}ms ease` : "none", D = o > 0 || a;
|
|
29969
29973
|
return {
|
|
29970
29974
|
isSwipeDragging: B,
|
|
29971
29975
|
backdropStyle: {
|
|
@@ -29974,7 +29978,7 @@ const vs = {
|
|
|
29974
29978
|
},
|
|
29975
29979
|
mediaAreaStyle: {
|
|
29976
29980
|
transform: h(o),
|
|
29977
|
-
transition:
|
|
29981
|
+
transition: P,
|
|
29978
29982
|
touchAction: B ? "none" : void 0,
|
|
29979
29983
|
willChange: B ? "transform" : void 0
|
|
29980
29984
|
},
|
|
@@ -29986,7 +29990,7 @@ const vs = {
|
|
|
29986
29990
|
onPointerDown: I,
|
|
29987
29991
|
onPointerMove: T,
|
|
29988
29992
|
onPointerUp: X,
|
|
29989
|
-
onPointerCancel:
|
|
29993
|
+
onPointerCancel: A
|
|
29990
29994
|
} : {},
|
|
29991
29995
|
dismissAreaStyle: e ? {
|
|
29992
29996
|
touchAction: B ? "none" : "pan-x"
|
|
@@ -30204,22 +30208,22 @@ const vs = {
|
|
|
30204
30208
|
thumbnailObjectFit: T,
|
|
30205
30209
|
thumbnailActive: C,
|
|
30206
30210
|
thumbnailActiveColor: X,
|
|
30207
|
-
title1Width:
|
|
30211
|
+
title1Width: A,
|
|
30208
30212
|
title2Width: B,
|
|
30209
|
-
title3Width:
|
|
30213
|
+
title3Width: P,
|
|
30210
30214
|
title1MarginLeft: S = 0,
|
|
30211
30215
|
title2MarginLeft: D = 0,
|
|
30212
30216
|
title3MarginLeft: v = 0,
|
|
30213
30217
|
titleRowMarginBottom: k = 0,
|
|
30214
30218
|
titleHeaderLayout: R = "desktop",
|
|
30215
30219
|
contentMarginTop: Q,
|
|
30216
|
-
iconMarginLeft:
|
|
30217
|
-
} = n, Y = (m) => W(m, i ?? !1), j = s ?? n.thumnailSize ?? 0.03, G = Y(j), re = Y(d), w = Y(u ?? 0.02), L = Y(b ?? 0), O = Y(Q ?? 0), ce = or(O), ae = Y(
|
|
30218
|
-
|
|
30220
|
+
iconMarginLeft: M
|
|
30221
|
+
} = n, Y = (m) => W(m, i ?? !1), j = s ?? n.thumnailSize ?? 0.03, G = Y(j), re = Y(d), w = Y(u ?? 0.02), L = Y(b ?? 0), O = Y(Q ?? 0), ce = or(O), ae = Y(M ?? 0), [$, ge] = J(0), E = V($);
|
|
30222
|
+
E.current = $;
|
|
30219
30223
|
const oe = t[$], { title1: ee, title2: we, title3: We } = sy(oe), fe = ga("title1", ma(n, "title1"), i), pe = ga("title2", ma(n, "title2"), i), U = ga("title3", ma(n, "title3"), i), te = R === "mobile", Z = !o && (!i || r), De = Z, Ie = Z, _e = Z, ue = Bn(T), ye = ue ? { "--image-aspect-ratio": Vr(T) } : void 0, Ce = !!(ee || we || We), z = Ke(
|
|
30220
30224
|
() => uy(e, ee, we, We, fe, pe, U),
|
|
30221
30225
|
[e, $, ee, we, We, fe, pe, U]
|
|
30222
|
-
), de = Ke(() => ({ title1Width:
|
|
30226
|
+
), de = Ke(() => ({ title1Width: A, title2Width: B, title3Width: P }), [A, B, P]), ve = Ke(() => z.map((m) => de[m.widthKey]), [z, de]), Se = Ke(() => yl(z.length, ve), [z.length, ve]), Ee = Ke(() => Kc(z.length, ve), [z.length, ve]), Re = Ke(() => z.filter((m) => m.prefix === "title1"), [z]), F = Ke(() => z.filter((m) => m.prefix === "title2" || m.prefix === "title3"), [z]), he = Ke(() => ws(Re, de), [Re, de]), ie = Ke(() => ws(F, de), [F, de]), _ = me((m, N) => {
|
|
30223
30227
|
const K = z.indexOf(m);
|
|
30224
30228
|
if (!te || N === "single-row")
|
|
30225
30229
|
return {
|
|
@@ -30336,7 +30340,7 @@ const vs = {
|
|
|
30336
30340
|
);
|
|
30337
30341
|
}, wt = () => {
|
|
30338
30342
|
const m = te ? -1 : z.findIndex(($e) => $e.prefix === "title1"), N = !te && (o || (S ?? 0) > 0) ? (() => {
|
|
30339
|
-
const $e = S ?? 0, Ne = m >= 0 ? Se[m] :
|
|
30343
|
+
const $e = S ?? 0, Ne = m >= 0 ? Se[m] : A ?? 0;
|
|
30340
30344
|
return /* @__PURE__ */ l(
|
|
30341
30345
|
"div",
|
|
30342
30346
|
{
|
|
@@ -30633,7 +30637,7 @@ const vs = {
|
|
|
30633
30637
|
return sn === 0 ? K : bt ? (K + sn + t.length) % t.length : Math.max(0, Math.min(t.length - 1, K + sn));
|
|
30634
30638
|
}, rt = me((m = !1) => {
|
|
30635
30639
|
if (I !== "on" || o) return;
|
|
30636
|
-
const N = Te.current, K =
|
|
30640
|
+
const N = Te.current, K = E.current, $e = ze.current[K];
|
|
30637
30641
|
if (!N || !$e || N.scrollWidth <= N.clientWidth) return;
|
|
30638
30642
|
const Ne = N.scrollLeft, Je = Ne + N.clientWidth, $t = $e.offsetLeft, At = $t + $e.offsetWidth;
|
|
30639
30643
|
if ($t >= Ne && At <= Je) return;
|
|
@@ -30651,15 +30655,15 @@ const vs = {
|
|
|
30651
30655
|
rn.current = !1, rt(N);
|
|
30652
30656
|
}));
|
|
30653
30657
|
}, [rt]), tt = me((m) => {
|
|
30654
|
-
if (m ===
|
|
30655
|
-
const N =
|
|
30656
|
-
|
|
30658
|
+
if (m === E.current) return;
|
|
30659
|
+
const N = E.current;
|
|
30660
|
+
E.current = m;
|
|
30657
30661
|
const K = Math.abs(m - N) > 1, $e = bt && t.length > 1 && (N === t.length - 1 && m === 0 || N === 0 && m === t.length - 1);
|
|
30658
30662
|
ge(m), Ft(K || $e);
|
|
30659
30663
|
}, [t.length, bt, Ft]), St = () => {
|
|
30660
30664
|
if (!je.current || t.length === 0 || Gt.current !== null || it.current.isActive && it.current.hasMoved) return;
|
|
30661
30665
|
const m = je.current.scrollLeft, N = be(m) % t.length;
|
|
30662
|
-
N !==
|
|
30666
|
+
N !== E.current && tt(N);
|
|
30663
30667
|
}, jt = () => {
|
|
30664
30668
|
Gt.current = null;
|
|
30665
30669
|
}, Et = (m) => {
|
|
@@ -30686,7 +30690,7 @@ const vs = {
|
|
|
30686
30690
|
const m = Ze.current;
|
|
30687
30691
|
m && (m.style.transition = "", m.style.transform = "", m.style.willChange = "");
|
|
30688
30692
|
}, Vo = (m, N, K, $e) => {
|
|
30689
|
-
ci(), m.scrollLeft = N, He.current = m.scrollLeft, Vt(), K !== void 0 ? (
|
|
30693
|
+
ci(), m.scrollLeft = N, He.current = m.scrollLeft, Vt(), K !== void 0 ? (E.current = K, ge(K)) : St(), Et(!0), $e == null || $e();
|
|
30690
30694
|
}, jo = (m, { behavior: N = "smooth", activeIndex: K, onComplete: $e } = {}) => {
|
|
30691
30695
|
const Ne = je.current, Je = Ze.current;
|
|
30692
30696
|
if (!Ne || !Je) return;
|
|
@@ -30740,7 +30744,7 @@ const vs = {
|
|
|
30740
30744
|
const K = je.current;
|
|
30741
30745
|
if (!K || t.length === 0) return;
|
|
30742
30746
|
const $e = Dt(m, K.scrollLeft), Ne = qe.current[$e];
|
|
30743
|
-
Ne && (N === "smooth" ? Gt.current = m : Gt.current = null,
|
|
30747
|
+
Ne && (N === "smooth" ? Gt.current = m : Gt.current = null, E.current = m, ge(m), Ft(!0), jo(Ne.offsetLeft, {
|
|
30744
30748
|
behavior: N,
|
|
30745
30749
|
activeIndex: m,
|
|
30746
30750
|
onComplete: N === "smooth" ? jt : void 0
|
|
@@ -30781,7 +30785,7 @@ const vs = {
|
|
|
30781
30785
|
ht.current = {
|
|
30782
30786
|
startX: m.clientX,
|
|
30783
30787
|
startY: m.clientY,
|
|
30784
|
-
startActiveIndex:
|
|
30788
|
+
startActiveIndex: E.current
|
|
30785
30789
|
};
|
|
30786
30790
|
return;
|
|
30787
30791
|
}
|
|
@@ -30792,7 +30796,7 @@ const vs = {
|
|
|
30792
30796
|
isActive: !0,
|
|
30793
30797
|
startX: m.clientX,
|
|
30794
30798
|
scrollLeft: N.scrollLeft,
|
|
30795
|
-
startActiveIndex:
|
|
30799
|
+
startActiveIndex: E.current,
|
|
30796
30800
|
hasMoved: !1
|
|
30797
30801
|
}, Et(!1), pt(), N.setPointerCapture(m.pointerId), Mi();
|
|
30798
30802
|
const K = ($e) => {
|
|
@@ -30845,7 +30849,7 @@ const vs = {
|
|
|
30845
30849
|
}, [Le]), Nt(() => {
|
|
30846
30850
|
Bt();
|
|
30847
30851
|
}, [L, t.length, bt]), Nt(() => {
|
|
30848
|
-
o || Pn(
|
|
30852
|
+
o || Pn(E.current, "auto");
|
|
30849
30853
|
}, [L, o]), Nt(() => {
|
|
30850
30854
|
Pn(0, "auto");
|
|
30851
30855
|
}, [t.length, bt]), Pe(() => {
|
|
@@ -32776,19 +32780,19 @@ const wy = dy(), Sy = {
|
|
|
32776
32780
|
title1Width: T,
|
|
32777
32781
|
title2Width: C,
|
|
32778
32782
|
title3Width: X,
|
|
32779
|
-
title1MarginLeft:
|
|
32783
|
+
title1MarginLeft: A = 0,
|
|
32780
32784
|
title2MarginLeft: B = 0,
|
|
32781
|
-
title3MarginLeft:
|
|
32785
|
+
title3MarginLeft: P = 0,
|
|
32782
32786
|
titleRowMarginBottom: S = 0,
|
|
32783
32787
|
titleHeaderLayout: D = "single-row",
|
|
32784
32788
|
countCloseGap: v = 0,
|
|
32785
32789
|
closeIcon: k,
|
|
32786
32790
|
closeIconMaxWidth: R,
|
|
32787
32791
|
closeIconColor: Q,
|
|
32788
|
-
closeIconHoverColor:
|
|
32792
|
+
closeIconHoverColor: M,
|
|
32789
32793
|
contentMarginTop: Y = 0,
|
|
32790
32794
|
iconMarginRight: j = 0
|
|
32791
|
-
} = n, G = me((se) => W(se, i ?? !1), [i]), re = G(g ?? 0), w = `${p}%`, L = `${y}%`, O = G(v), ce = G(Y), ae = G(j), $ = xi("title1", bi(n, "title1"), i), ge = xi("title2", bi(n, "title2"), i),
|
|
32795
|
+
} = n, G = me((se) => W(se, i ?? !1), [i]), re = G(g ?? 0), w = `${p}%`, L = `${y}%`, O = G(v), ce = G(Y), ae = G(j), $ = xi("title1", bi(n, "title1"), i), ge = xi("title2", bi(n, "title2"), i), E = xi("title3", bi(n, "title3"), i), oe = xi("count", bi(n, "count"), i), ee = D === "mobile", we = !i || !!r, We = !o && (!i || !!r), fe = Ke(() => gr(t, b), [t, b]), [pe, U] = J(a), te = fe[pe], Z = te == null ? void 0 : te.entry, [De, Ie] = J(!1), [_e, ue] = J(null), [ye, Ce] = J(!1), [z, de] = J(null), [ve, Se] = J(!1), [Ee, Re] = J(0), [F, he] = J(), [ie, _] = J(), [ne, Ae] = J(null), le = V(null), H = V(0), Xe = V(0), Ve = V(0), gt = V(!1), at = V(null), wt = V(null), st = V(null), Ue = V(null), xe = V(null), Fe = V(null), je = V(null), Ze = me(() => {
|
|
32792
32796
|
const se = wt.current;
|
|
32793
32797
|
if (!se) return;
|
|
32794
32798
|
const Be = se.closest(`.${e}-lightbox-content-area`);
|
|
@@ -32920,7 +32924,7 @@ const wy = dy(), Sy = {
|
|
|
32920
32924
|
const se = Math.max(0, fe.length - 1), Be = Math.min(Math.max(0, a), se);
|
|
32921
32925
|
Ve.current = Be, Xe.current = ((m = fe[Be]) == null ? void 0 : m.entryIndex) ?? 0, U(Be);
|
|
32922
32926
|
}, [a]);
|
|
32923
|
-
const Ct = _e !== null ? t[_e] : null, Lt = z !== null ? fe[z] : null, Jt = (Z == null ? void 0 : Z.title1) || (Z == null ? void 0 : Z.title2) || (Z == null ? void 0 : Z.title3) || (Ct == null ? void 0 : Ct.title1) || (Ct == null ? void 0 : Ct.title2) || (Ct == null ? void 0 : Ct.title3), zt = Vg(b, fe, t), Tt = k !== null, Gt = Jt || zt || Tt, Qt = zt && Tt ? { gap: O } : void 0, rn = `${e}-titles-stack${ee ? ` ${e}-titles-stack-stacked` : ""}`, cn = `${e}-titles-layer-out${ee ? ` ${e}-titles-layer-out-stacked` : ""}`, Pt = `${e}-titles-layer-out`, Kt = (
|
|
32927
|
+
const Ct = _e !== null ? t[_e] : null, Lt = z !== null ? fe[z] : null, Jt = (Z == null ? void 0 : Z.title1) || (Z == null ? void 0 : Z.title2) || (Z == null ? void 0 : Z.title3) || (Ct == null ? void 0 : Ct.title1) || (Ct == null ? void 0 : Ct.title2) || (Ct == null ? void 0 : Ct.title3), zt = Vg(b, fe, t), Tt = k !== null, Gt = Jt || zt || Tt, Qt = zt && Tt ? { gap: O } : void 0, rn = `${e}-titles-stack${ee ? ` ${e}-titles-stack-stacked` : ""}`, cn = `${e}-titles-layer-out${ee ? ` ${e}-titles-layer-out-stacked` : ""}`, Pt = `${e}-titles-layer-out`, Kt = (A ?? 0) > 0 || o, yn = G(S), pt = Ke(
|
|
32924
32928
|
() => ({
|
|
32925
32929
|
title1Width: T ?? Vi.title1Width,
|
|
32926
32930
|
title2Width: C ?? Vi.title2Width,
|
|
@@ -32929,10 +32933,10 @@ const wy = dy(), Sy = {
|
|
|
32929
32933
|
[T, C, X]
|
|
32930
32934
|
), Le = Ke(() => ({
|
|
32931
32935
|
title2MarginLeft: B,
|
|
32932
|
-
title3MarginLeft:
|
|
32933
|
-
}), [B,
|
|
32934
|
-
() => Z ? Qn(e, Z, $, ge,
|
|
32935
|
-
[e, Z, $, ge,
|
|
32936
|
+
title3MarginLeft: P
|
|
32937
|
+
}), [B, P]), Oe = Ke(
|
|
32938
|
+
() => Z ? Qn(e, Z, $, ge, E) : [],
|
|
32939
|
+
[e, Z, $, ge, E]
|
|
32936
32940
|
), ot = Ke(
|
|
32937
32941
|
() => Oe.map((se) => pt[se.widthKey]),
|
|
32938
32942
|
[Oe, pt]
|
|
@@ -32991,11 +32995,11 @@ const wy = dy(), Sy = {
|
|
|
32991
32995
|
mt,
|
|
32992
32996
|
Le,
|
|
32993
32997
|
se
|
|
32994
|
-
) + (ee ? 0 :
|
|
32995
|
-
[Oe, mt, Le, ee,
|
|
32998
|
+
) + (ee ? 0 : A ?? 0),
|
|
32999
|
+
[Oe, mt, Le, ee, A]
|
|
32996
33000
|
), Yt = me(
|
|
32997
|
-
() => ee ? 0 :
|
|
32998
|
-
[ee,
|
|
33001
|
+
() => ee ? 0 : A ?? 0,
|
|
33002
|
+
[ee, A]
|
|
32999
33003
|
), Bt = me(
|
|
33000
33004
|
(se) => dt.slice(0, se).reduce(
|
|
33001
33005
|
(Be, m, N) => Be + (m.marginLeftKey ? Le[m.marginLeftKey] ?? 0 : 0) + (Ht.resolved[N] ?? 0),
|
|
@@ -33099,7 +33103,7 @@ const wy = dy(), Sy = {
|
|
|
33099
33103
|
"data-controls-max-fraction": String(m)
|
|
33100
33104
|
} : {},
|
|
33101
33105
|
style: {
|
|
33102
|
-
width: G(
|
|
33106
|
+
width: G(A ?? 0),
|
|
33103
33107
|
flexShrink: 0,
|
|
33104
33108
|
alignSelf: "stretch",
|
|
33105
33109
|
...N ? { pointerEvents: "auto" } : {}
|
|
@@ -33234,7 +33238,7 @@ const wy = dy(), Sy = {
|
|
|
33234
33238
|
width: W(R ?? 0, i),
|
|
33235
33239
|
height: W(R ?? 0, i),
|
|
33236
33240
|
marginRight: ae,
|
|
33237
|
-
"--close-icon-hover-color":
|
|
33241
|
+
"--close-icon-hover-color": M
|
|
33238
33242
|
},
|
|
33239
33243
|
children: [
|
|
33240
33244
|
/* @__PURE__ */ l(
|
|
@@ -33250,7 +33254,7 @@ const wy = dy(), Sy = {
|
|
|
33250
33254
|
{
|
|
33251
33255
|
url: k ?? "",
|
|
33252
33256
|
fill: Q,
|
|
33253
|
-
hoverFill: i && !r ? Q :
|
|
33257
|
+
hoverFill: i && !r ? Q : M,
|
|
33254
33258
|
className: `${e}-close-icon-img`
|
|
33255
33259
|
}
|
|
33256
33260
|
)
|
|
@@ -33303,7 +33307,7 @@ const wy = dy(), Sy = {
|
|
|
33303
33307
|
}
|
|
33304
33308
|
), Et = (se) => {
|
|
33305
33309
|
if (!se) return null;
|
|
33306
|
-
const Be = Qn(e, se, $, ge,
|
|
33310
|
+
const Be = Qn(e, se, $, ge, E);
|
|
33307
33311
|
return /* @__PURE__ */ l(lt, { children: Be.map((m) => It(
|
|
33308
33312
|
m,
|
|
33309
33313
|
"single-row",
|
|
@@ -33311,14 +33315,14 @@ const wy = dy(), Sy = {
|
|
|
33311
33315
|
)) });
|
|
33312
33316
|
}, un = (se) => {
|
|
33313
33317
|
if (!se) return null;
|
|
33314
|
-
const Be = Qn(e, se, $, ge,
|
|
33318
|
+
const Be = Qn(e, se, $, ge, E), m = Be.find((N) => N.prefix === "title1");
|
|
33315
33319
|
return m ? It(
|
|
33316
33320
|
m,
|
|
33317
33321
|
"two-row-top",
|
|
33318
33322
|
Dt(Be, m, "two-row-top")
|
|
33319
33323
|
) : null;
|
|
33320
33324
|
}, vn = (se, Be = !1) => {
|
|
33321
|
-
const m = se ? Qn(e, se, $, ge,
|
|
33325
|
+
const m = se ? Qn(e, se, $, ge, E) : [], N = m.filter((Ne) => Ne.prefix === "title2" || Ne.prefix === "title3"), K = o && Be;
|
|
33322
33326
|
return N.length > 0 || K || (S ?? 0) > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
33323
33327
|
N.length > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom`, children: [
|
|
33324
33328
|
N.map((Ne) => It(
|
|
@@ -33351,8 +33355,8 @@ const wy = dy(), Sy = {
|
|
|
33351
33355
|
jt(un(se)),
|
|
33352
33356
|
vn(se, Be)
|
|
33353
33357
|
] }), ci = (se) => ee ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-two-row`, children: si(se) }) : se ? /* @__PURE__ */ l("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: Et(se) }) : null, Vo = () => {
|
|
33354
|
-
const se = ee ? -1 : Oe.findIndex((N) => N.prefix === "title1"), Be = !ee && (o || (
|
|
33355
|
-
const N =
|
|
33358
|
+
const se = ee ? -1 : Oe.findIndex((N) => N.prefix === "title1"), Be = !ee && (o || (A ?? 0) > 0) ? (() => {
|
|
33359
|
+
const N = A ?? 0, K = se >= 0 ? mt[se] : pt.title1Width, $e = Math.max(N, Jn);
|
|
33356
33360
|
return /* @__PURE__ */ l(
|
|
33357
33361
|
"div",
|
|
33358
33362
|
{
|
|
@@ -34252,7 +34256,7 @@ const Ly = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
34252
34256
|
const { prefix: c } = dn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: u, type: b } = e, x = V(null), [h, g] = J(!1), [p, y] = J(0), I = V(!1), T = V(!1), C = V(!1), X = Ke(
|
|
34253
34257
|
() => (t ?? []).filter((v) => Ki(v).length > 0),
|
|
34254
34258
|
[t]
|
|
34255
|
-
),
|
|
34259
|
+
), A = h && X.length > 0, B = !n, P = me(() => {
|
|
34256
34260
|
B && (C.current = !0, Ng(T.current, s), T.current = !1);
|
|
34257
34261
|
}, [B, s]), S = (v = 0) => {
|
|
34258
34262
|
if (X.length === 0 || n && !i && !o) return;
|
|
@@ -34323,7 +34327,7 @@ const Ly = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
34323
34327
|
}
|
|
34324
34328
|
) : null
|
|
34325
34329
|
] }),
|
|
34326
|
-
|
|
34330
|
+
A && typeof document < "u" && (() => {
|
|
34327
34331
|
const v = (r ? document.getElementById(r) : null) ?? document.body;
|
|
34328
34332
|
return Ii(
|
|
34329
34333
|
/* @__PURE__ */ l(
|
|
@@ -34338,7 +34342,7 @@ const Ly = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
34338
34342
|
initialSlideIndex: p,
|
|
34339
34343
|
enableUrlSync: B,
|
|
34340
34344
|
journalItemId: s,
|
|
34341
|
-
onBeforeClose:
|
|
34345
|
+
onBeforeClose: P,
|
|
34342
34346
|
onClose: D
|
|
34343
34347
|
}
|
|
34344
34348
|
),
|
|
@@ -35819,9 +35823,9 @@ async function Oy(e) {
|
|
|
35819
35823
|
}
|
|
35820
35824
|
function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
35821
35825
|
const { prefix: i } = dn(), [o, r] = J(null), [a, c] = J([]), [s, d] = J(0), u = V(0), [b, x] = J({ x: 0, y: 0 }), [h, g] = J("none"), p = V({ x: 0, y: 0 }), [y, I] = J(!1), [T, C] = J(!1), X = V(/* @__PURE__ */ new Map()), {
|
|
35822
|
-
imageSize:
|
|
35826
|
+
imageSize: A = Fy,
|
|
35823
35827
|
cursor: B = "system",
|
|
35824
|
-
target:
|
|
35828
|
+
target: P = "area",
|
|
35825
35829
|
position: S = "random",
|
|
35826
35830
|
visible: D = "all",
|
|
35827
35831
|
defaultCursor: v = null,
|
|
@@ -35831,13 +35835,13 @@ function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35831
35835
|
var L;
|
|
35832
35836
|
return !!((L = w == null ? void 0 : w.image) != null && L.url);
|
|
35833
35837
|
}
|
|
35834
|
-
), Q = Ke(() => Ny(i), [i]),
|
|
35838
|
+
), Q = Ke(() => Ny(i), [i]), M = me((w, L, O = a) => {
|
|
35835
35839
|
if (!o) return;
|
|
35836
35840
|
const ce = o.getBoundingClientRect(), ae = w - ce.left, $ = L - ce.top;
|
|
35837
35841
|
x({ x: ae, y: $ }), g(
|
|
35838
|
-
_y(ae, $, O, o, B,
|
|
35842
|
+
_y(ae, $, O, o, B, P, k, v)
|
|
35839
35843
|
);
|
|
35840
|
-
}, [o, a, B,
|
|
35844
|
+
}, [o, a, B, P, k, v]);
|
|
35841
35845
|
Pe(() => {
|
|
35842
35846
|
const w = [
|
|
35843
35847
|
...R.map((O) => O.image.url),
|
|
@@ -35857,31 +35861,31 @@ function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35857
35861
|
}, [t, v, k]), Pe(() => {
|
|
35858
35862
|
if (!o) return;
|
|
35859
35863
|
const w = (O) => {
|
|
35860
|
-
O.stopPropagation(), p.current = { x: O.clientX, y: O.clientY },
|
|
35864
|
+
O.stopPropagation(), p.current = { x: O.clientX, y: O.clientY }, M(O.clientX, O.clientY);
|
|
35861
35865
|
}, L = () => {
|
|
35862
|
-
y &&
|
|
35866
|
+
y && M(p.current.x, p.current.y);
|
|
35863
35867
|
};
|
|
35864
35868
|
return o.addEventListener("mousemove", w), window.addEventListener("scroll", L, !0), () => {
|
|
35865
35869
|
o.removeEventListener("mousemove", w), window.removeEventListener("scroll", L, !0);
|
|
35866
35870
|
};
|
|
35867
|
-
}, [o, y,
|
|
35868
|
-
!o || !y ||
|
|
35869
|
-
}, [a, o, y,
|
|
35871
|
+
}, [o, y, M]), Pe(() => {
|
|
35872
|
+
!o || !y || M(p.current.x, p.current.y);
|
|
35873
|
+
}, [a, o, y, M]), Pe(() => {
|
|
35870
35874
|
y || g("none");
|
|
35871
35875
|
}, [y]);
|
|
35872
35876
|
const Y = (w, L, O, ce = {}) => {
|
|
35873
35877
|
var ee, we;
|
|
35874
35878
|
if (!((ee = w == null ? void 0 : w.image) != null && ee.url)) return null;
|
|
35875
|
-
const ae = ((we = X.current.get(w.image.url)) == null ? void 0 : we.aspectRatio) ?? 1, $ = $s(w.image.url,
|
|
35876
|
-
let
|
|
35877
|
-
return S === "same" ? { x:
|
|
35879
|
+
const ae = ((we = X.current.get(w.image.url)) == null ? void 0 : we.aspectRatio) ?? 1, $ = $s(w.image.url, A, X.current), { heightPx: ge } = Lr($, ae);
|
|
35880
|
+
let E = 0, oe = 0;
|
|
35881
|
+
return S === "same" ? { x: E, y: oe } = Ss(L, O, $, ae) : (E = ce.x ?? Math.random() * L, oe = ce.y ?? Math.random() * O, { x: E, y: oe } = _a(E, oe, L, O, $, ge)), {
|
|
35878
35882
|
id: u.current++,
|
|
35879
35883
|
url: w.image.url,
|
|
35880
35884
|
link: w.link,
|
|
35881
35885
|
name: w.image.name,
|
|
35882
|
-
x:
|
|
35886
|
+
x: E,
|
|
35883
35887
|
y: oe,
|
|
35884
|
-
xRatio:
|
|
35888
|
+
xRatio: E / L,
|
|
35885
35889
|
yRatio: oe / O,
|
|
35886
35890
|
aspectRatio: ae,
|
|
35887
35891
|
widthPx: $
|
|
@@ -35890,12 +35894,12 @@ function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35890
35894
|
if (!o) return;
|
|
35891
35895
|
const w = o.getBoundingClientRect(), L = w.width, O = w.height;
|
|
35892
35896
|
L === 0 || O === 0 || c((ce) => ce.length === 0 ? ce : ce.map((ae) => {
|
|
35893
|
-
const $ =
|
|
35897
|
+
const $ = A.sizeType === "random" ? ae.widthPx : $s(ae.url, A, X.current), { heightPx: ge } = Lr($, ae.aspectRatio);
|
|
35894
35898
|
if (S === "same") {
|
|
35895
35899
|
const { x: ee, y: we } = Ss(L, O, $, ae.aspectRatio);
|
|
35896
35900
|
return { ...ae, x: ee, y: we, widthPx: $ };
|
|
35897
35901
|
}
|
|
35898
|
-
const { x:
|
|
35902
|
+
const { x: E, y: oe } = _a(
|
|
35899
35903
|
ae.xRatio * L,
|
|
35900
35904
|
ae.yRatio * O,
|
|
35901
35905
|
L,
|
|
@@ -35903,33 +35907,33 @@ function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35903
35907
|
$,
|
|
35904
35908
|
ge
|
|
35905
35909
|
);
|
|
35906
|
-
return { ...ae, x:
|
|
35910
|
+
return { ...ae, x: E, y: oe, widthPx: $ };
|
|
35907
35911
|
}));
|
|
35908
35912
|
};
|
|
35909
35913
|
Pe(() => {
|
|
35910
35914
|
if (!o || R.length === 0 || !T) return;
|
|
35911
35915
|
const w = o.getBoundingClientRect(), L = w.width, O = w.height, ce = Y(R[0], L, O);
|
|
35912
35916
|
ce && (c([ce]), d(R.length > 1 ? 1 : 0));
|
|
35913
|
-
}, [
|
|
35917
|
+
}, [A, S, o, t, T]), Pe(() => {
|
|
35914
35918
|
if (!o) return;
|
|
35915
35919
|
j();
|
|
35916
35920
|
const w = new ResizeObserver(j);
|
|
35917
35921
|
return w.observe(o), window.addEventListener("resize", j), () => {
|
|
35918
35922
|
w.disconnect(), window.removeEventListener("resize", j);
|
|
35919
35923
|
};
|
|
35920
|
-
}, [o, S,
|
|
35924
|
+
}, [o, S, A, a.length]), Pe(() => {
|
|
35921
35925
|
D === "last One" && c((w) => w.length > 0 ? [w[w.length - 1]] : []);
|
|
35922
35926
|
}, [D]);
|
|
35923
35927
|
const G = (w) => {
|
|
35924
35928
|
if (!o || R.length === 0 || !T) return;
|
|
35925
35929
|
const L = o.getBoundingClientRect(), O = w.clientX - L.left, ce = w.clientY - L.top;
|
|
35926
|
-
if (
|
|
35930
|
+
if (P === "image" && !Xc(O, ce, a)) return;
|
|
35927
35931
|
let ae = 0, $ = 0;
|
|
35928
35932
|
S === "on Click" ? (ae = O, $ = ce) : S === "same" ? (ae = L.width / 2, $ = L.height / 2) : (ae = Math.random() * L.width, $ = Math.random() * L.height);
|
|
35929
|
-
const ge = R[s % R.length],
|
|
35930
|
-
if (!
|
|
35931
|
-
const oe = D === "all" ? [...a,
|
|
35932
|
-
c(oe), d((ee) => (ee + 1) % R.length),
|
|
35933
|
+
const ge = R[s % R.length], E = Y(ge, L.width, L.height, { x: ae, y: $ });
|
|
35934
|
+
if (!E) return;
|
|
35935
|
+
const oe = D === "all" ? [...a, E] : [E];
|
|
35936
|
+
c(oe), d((ee) => (ee + 1) % R.length), M(w.clientX, w.clientY, oe);
|
|
35933
35937
|
}, re = B === "custom" && h !== "none";
|
|
35934
35938
|
return /* @__PURE__ */ q(lt, { children: [
|
|
35935
35939
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Q } }),
|
|
@@ -35953,7 +35957,7 @@ function Dy({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35953
35957
|
width: `${w.widthPx}px`,
|
|
35954
35958
|
cursor: re ? "none" : "default"
|
|
35955
35959
|
},
|
|
35956
|
-
children:
|
|
35960
|
+
children: P === "area" && w.link ? /* @__PURE__ */ l("a", { href: w.link, target: "_blank", rel: "noreferrer", className: `${i}-link`, children: /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` }) }) : /* @__PURE__ */ l("img", { src: w.url, alt: w.name, className: `${i}-image` })
|
|
35957
35961
|
},
|
|
35958
35962
|
w.id
|
|
35959
35963
|
)),
|
|
@@ -36953,16 +36957,16 @@ function Jy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36953
36957
|
maxHeight: s,
|
|
36954
36958
|
transition: d = 1e3,
|
|
36955
36959
|
bgImage: u = "greyscale"
|
|
36956
|
-
} = e, b = t ?? [], x = Cs(b.length), [h, g] = J(x.activeIndex), [p, y] = J(x.backgroundIndex), [I, T] = J(!1), [C, X] = J(!1), [
|
|
36960
|
+
} = e, b = t ?? [], x = Cs(b.length), [h, g] = J(x.activeIndex), [p, y] = J(x.backgroundIndex), [I, T] = J(!1), [C, X] = J(!1), [A, B] = J(null), [P, S] = J(null), [D, v] = J(0), [k, R] = J(1), [Q, M] = J("none"), [Y, j] = J("next"), [G, re] = J({}), [w, L] = J({ width: 0, height: 0 }), O = V(null), ce = V(null), ae = !n || !!i, $ = a ?? 60, ge = Math.max(10, Math.min(100, c ?? $)), E = Math.max(10, Math.min(100, s ?? $)), oe = Math.max(100, d), ee = mo(u), we = me((F) => {
|
|
36957
36961
|
const he = Xy(F ? G[F] : void 0);
|
|
36958
36962
|
return Yy(
|
|
36959
36963
|
w.width,
|
|
36960
36964
|
w.height,
|
|
36961
36965
|
he,
|
|
36962
36966
|
ge,
|
|
36963
|
-
|
|
36967
|
+
E
|
|
36964
36968
|
);
|
|
36965
|
-
}, [w.height, w.width, G,
|
|
36969
|
+
}, [w.height, w.width, G, E, ge]);
|
|
36966
36970
|
Pe(() => {
|
|
36967
36971
|
const F = ce.current;
|
|
36968
36972
|
if (!F) return;
|
|
@@ -36984,7 +36988,7 @@ function Jy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36984
36988
|
});
|
|
36985
36989
|
}, [t]), Pe(() => {
|
|
36986
36990
|
const { backgroundIndex: F, activeIndex: he } = Cs(b.length);
|
|
36987
|
-
g(he), y(F), T(!1), X(!1), B(null), S(null), v(0), R(1),
|
|
36991
|
+
g(he), y(F), T(!1), X(!1), B(null), S(null), v(0), R(1), M("none"), j("next");
|
|
36988
36992
|
}, [b.length, t]), Pe(() => () => {
|
|
36989
36993
|
O.current && clearTimeout(O.current);
|
|
36990
36994
|
}, []);
|
|
@@ -36992,9 +36996,9 @@ function Jy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36992
36996
|
var le, H, Xe, Ve;
|
|
36993
36997
|
if (!ae || I || b.length <= 1) return;
|
|
36994
36998
|
const he = F === "next" ? (h + 1) % b.length : (h - 1 + b.length) % b.length, ie = we((H = (le = b[h]) == null ? void 0 : le.image) == null ? void 0 : H.url), _ = we((Ve = (Xe = b[he]) == null ? void 0 : Xe.image) == null ? void 0 : Ve.url), ne = Ts(w.width, w.height, ie), Ae = Ts(w.width, w.height, _);
|
|
36995
|
-
O.current && clearTimeout(O.current), j(F), X(!0), T(!0), F === "next" ? (B(h), S(he), v(0), R(1),
|
|
36999
|
+
O.current && clearTimeout(O.current), j(F), X(!0), T(!0), F === "next" ? (B(h), S(he), v(0), R(1), M(mo(u, 0, 1))) : (y(Ky(he, b.length)), B(he), S(h), v(1), R(Ae), M(mo(u, 1, Ae))), requestAnimationFrame(() => {
|
|
36996
37000
|
X(!1), requestAnimationFrame(() => {
|
|
36997
|
-
F === "next" ? (v(1), R(ne),
|
|
37001
|
+
F === "next" ? (v(1), R(ne), M(mo(u, 1, ne))) : (v(0), R(1), M(mo(u, 0, 1)));
|
|
36998
37002
|
});
|
|
36999
37003
|
}), O.current = setTimeout(() => {
|
|
37000
37004
|
F === "next" && y(h), g(he), B(null), S(null), T(!1);
|
|
@@ -37009,7 +37013,7 @@ function Jy({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
37009
37013
|
ae,
|
|
37010
37014
|
b,
|
|
37011
37015
|
oe
|
|
37012
|
-
]), fe = b[h], pe = p !== null ? b[p] : null, U =
|
|
37016
|
+
]), fe = b[h], pe = p !== null ? b[p] : null, U = A !== null ? b[A] : null, te = P !== null ? b[P] : null, Z = b.length <= 1 ? 0 : (h - 1 + b.length) % b.length, De = b.length <= 1 ? 0 : (h + 1) % b.length, Ie = we((Ce = fe == null ? void 0 : fe.image) == null ? void 0 : Ce.url), _e = we((z = U == null ? void 0 : U.image) == null ? void 0 : z.url), ue = we((de = te == null ? void 0 : te.image) == null ? void 0 : de.url), ye = {
|
|
37013
37017
|
[`--${o}-transition-ms`]: `${oe}ms`
|
|
37014
37018
|
};
|
|
37015
37019
|
return /* @__PURE__ */ q(lt, { children: [
|
|
@@ -38106,16 +38110,16 @@ function lv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
38106
38110
|
cornerRadius: T = 0,
|
|
38107
38111
|
boxShadow: C = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
38108
38112
|
boxShadowColor: X = "rgba(0, 0, 0, 0)",
|
|
38109
|
-
innerBoxShadow:
|
|
38113
|
+
innerBoxShadow: A = { top: 0, left: 0, right: 0, bottom: 0 },
|
|
38110
38114
|
innerBoxShadowColor: B = "rgba(0, 0, 0, 0)",
|
|
38111
|
-
stroke:
|
|
38115
|
+
stroke: P = 0,
|
|
38112
38116
|
backgroundColor: S = "#000000",
|
|
38113
38117
|
textColor: D = "#ffffff",
|
|
38114
38118
|
borderColor: v = "#ffffff",
|
|
38115
38119
|
iconColor: k = "#ffffff",
|
|
38116
38120
|
hoverEffect: R = "none",
|
|
38117
38121
|
fontFamily: Q,
|
|
38118
|
-
fontSettings:
|
|
38122
|
+
fontSettings: M,
|
|
38119
38123
|
fontSize: Y,
|
|
38120
38124
|
lineHeight: j,
|
|
38121
38125
|
letterSpacing: G = 0,
|
|
@@ -38133,11 +38137,11 @@ function lv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
38133
38137
|
iconColor: k,
|
|
38134
38138
|
boxShadowColor: X,
|
|
38135
38139
|
innerBoxShadowColor: B
|
|
38136
|
-
}, nv, iv, L),
|
|
38140
|
+
}, nv, iv, L), E = i && i !== "default" ? `${r}-state-${i}` : "", oe = t && !n ? `${r}-editing` : "", ee = R !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${R}` : "", we = R === "reveal" || R === "swipe", We = R === "content-roll", fe = R === "reveal" && (!t || n), pe = y === !0, te = c === "a" ? b ?? u : u, Z = c === "c", De = c !== "b", Ie = {
|
|
38137
38141
|
fontSettings: {
|
|
38138
38142
|
fontFamily: Q,
|
|
38139
|
-
fontWeight: (
|
|
38140
|
-
fontStyle: (
|
|
38143
|
+
fontWeight: (M == null ? void 0 : M.fontWeight) ?? 400,
|
|
38144
|
+
fontStyle: (M == null ? void 0 : M.fontStyle) ?? "normal"
|
|
38141
38145
|
},
|
|
38142
38146
|
fontSize: Y ?? 0.01,
|
|
38143
38147
|
lineHeight: j,
|
|
@@ -38151,16 +38155,16 @@ function lv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
38151
38155
|
[`--${r}-box-shadow-y`]: W(C.top, t),
|
|
38152
38156
|
[`--${r}-box-shadow-blur`]: W(C.right, t),
|
|
38153
38157
|
[`--${r}-box-shadow-spread`]: W(C.bottom, t),
|
|
38154
|
-
[`--${r}-inner-box-shadow-x`]: W(
|
|
38155
|
-
[`--${r}-inner-box-shadow-y`]: W(
|
|
38156
|
-
[`--${r}-inner-box-shadow-blur`]: W(
|
|
38157
|
-
[`--${r}-inner-box-shadow-spread`]: W(
|
|
38158
|
+
[`--${r}-inner-box-shadow-x`]: W(A.left, t),
|
|
38159
|
+
[`--${r}-inner-box-shadow-y`]: W(A.top, t),
|
|
38160
|
+
[`--${r}-inner-box-shadow-blur`]: W(A.right, t),
|
|
38161
|
+
[`--${r}-inner-box-shadow-spread`]: W(A.bottom, t),
|
|
38158
38162
|
paddingTop: W(I.top, t),
|
|
38159
38163
|
paddingRight: W(I.right, t),
|
|
38160
38164
|
paddingBottom: W(I.bottom, t),
|
|
38161
38165
|
paddingLeft: W(I.left, t),
|
|
38162
38166
|
borderRadius: W(T, t),
|
|
38163
|
-
borderWidth: W(
|
|
38167
|
+
borderWidth: W(P, t),
|
|
38164
38168
|
...Z ? {} : {
|
|
38165
38169
|
justifyContent: ya[te],
|
|
38166
38170
|
textAlign: te
|
|
@@ -38212,7 +38216,7 @@ function lv({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
38212
38216
|
const z = fe ? (ve) => ov(ve, r) : void 0, de = fe ? (ve) => rv(ve, r) : void 0;
|
|
38213
38217
|
return /* @__PURE__ */ q(lt, { children: [
|
|
38214
38218
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: a } }),
|
|
38215
|
-
/* @__PURE__ */ l("div", { className: `${r}-root`, style: ge, children: /* @__PURE__ */ l("div", { className: `${r}-wrapper ${
|
|
38219
|
+
/* @__PURE__ */ l("div", { className: `${r}-root`, style: ge, children: /* @__PURE__ */ l("div", { className: `${r}-wrapper ${E} ${oe}`.trim(), children: /* @__PURE__ */ l(
|
|
38216
38220
|
"div",
|
|
38217
38221
|
{
|
|
38218
38222
|
className: `${r}-button ${ee}`.trim(),
|
|
@@ -39015,11 +39019,11 @@ export function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent, h
|
|
|
39015
39019
|
backgroundColor: {
|
|
39016
39020
|
type: "string",
|
|
39017
39021
|
scope: "common",
|
|
39018
|
-
title: "
|
|
39022
|
+
title: "BG Default",
|
|
39019
39023
|
titleByState: {
|
|
39020
|
-
default: "
|
|
39021
|
-
hover: "
|
|
39022
|
-
active: "
|
|
39024
|
+
default: "BG Default",
|
|
39025
|
+
hover: "BG Hover",
|
|
39026
|
+
active: "BG Active"
|
|
39023
39027
|
},
|
|
39024
39028
|
display: { type: "palette-color-picker" }
|
|
39025
39029
|
},
|
|
@@ -39978,8 +39982,8 @@ function Av({
|
|
|
39978
39982
|
onPrev: p,
|
|
39979
39983
|
onNext: y
|
|
39980
39984
|
}) {
|
|
39981
|
-
const I = V(null), T = V(null), C = V(null), X = V(/* @__PURE__ */ new Map()), [
|
|
39982
|
-
}), re = V(null), w = V(null), L = V(null), O = V(!1), [ce, ae] = J(null), [$, ge] = J(ba), [
|
|
39985
|
+
const I = V(null), T = V(null), C = V(null), X = V(/* @__PURE__ */ new Map()), [A, B] = J(0), P = V(null), S = V(0), D = V(0), v = V("none"), k = V(!1), R = V(!1), Q = V(!1), M = V(null), Y = V(null), j = V(null), G = V(() => {
|
|
39986
|
+
}), re = V(null), w = V(null), L = V(null), O = V(!1), [ce, ae] = J(null), [$, ge] = J(ba), [E, oe] = J(0), [ee, we] = J("opening"), [We, fe] = J(0), [pe, U] = J(0), [te, Z] = J(!1), [De, Ie] = J(null), [_e, ue] = J(null), [ye, Ce] = J(null), [z, de] = J(!1), [ve, Se] = J(null), [Ee, Re] = J(!1), F = V(!1), [he, ie] = J(!1), [_, ne] = J(!1), Ae = V(n), le = V(void 0), H = t[n], Xe = H ? jr(H) : !1, Ve = pe !== 0 || te, gt = !a && (!r || !!c), at = s && !a, wt = d.length > 1, st = me((f, be) => t.length <= 1 ? null : t[(f + be + t.length) % t.length] ?? null, [t]), Ue = wt ? yo(d, u, -1) : st(n, -1), xe = wt ? yo(d, u, 1) : st(n, 1), Fe = De === -1 && Ve ? wt && _e !== null ? yo(d, _e, -1) : ye !== null ? st(ye, -1) : null : null, je = De === 1 && Ve ? wt && _e !== null ? yo(d, _e, 1) : ye !== null ? st(ye, 1) : null : null, Ze = Fe && Fe.url !== (Ue == null ? void 0 : Ue.url) ? Fe : null, Te = je && je.url !== (xe == null ? void 0 : xe.url) ? je : null, ze = Ue && at ? (() => {
|
|
39983
39987
|
const f = wt ? Rs(d, u, -1) : t.length > 2 ? st((n - 1 + t.length) % t.length, -1) : null;
|
|
39984
39988
|
return f && f.url !== Ue.url ? f : null;
|
|
39985
39989
|
})() : null, qe = xe && at ? (() => {
|
|
@@ -39993,7 +39997,7 @@ function Av({
|
|
|
39993
39997
|
if (!(f != null && f.url)) return null;
|
|
39994
39998
|
const be = X.current.get(f.url);
|
|
39995
39999
|
return Cv(T.current, be);
|
|
39996
|
-
}, [
|
|
40000
|
+
}, [A, E]), ft = me(() => {
|
|
39997
40001
|
if (!H) return;
|
|
39998
40002
|
const f = Mt(H);
|
|
39999
40003
|
if (f) {
|
|
@@ -40012,9 +40016,9 @@ function Av({
|
|
|
40012
40016
|
}, [wt, d.length, u, t.length, n]), Qe = me((f) => {
|
|
40013
40017
|
Q.current = f, Z(f);
|
|
40014
40018
|
}, []), Ge = me(() => {
|
|
40015
|
-
|
|
40019
|
+
M.current !== null && (window.clearTimeout(M.current), M.current = null);
|
|
40016
40020
|
}, []), yt = me(() => {
|
|
40017
|
-
Ge(),
|
|
40021
|
+
Ge(), M.current = window.setTimeout(() => {
|
|
40018
40022
|
Ge(), Qe(!1);
|
|
40019
40023
|
}, go + 32);
|
|
40020
40024
|
}, [Ge, Qe]), vt = me(() => {
|
|
@@ -40060,7 +40064,7 @@ function Av({
|
|
|
40060
40064
|
const f = Y.current;
|
|
40061
40065
|
Y.current = null, Ge(), Qe(!1), Ie(null), ue(null), Ce(null), U(0), ie(!1), k.current = !1, D.current = 0, v.current = "none", f === -1 ? p() : f === 1 && y();
|
|
40062
40066
|
}, [Ge, Qe, p, y]), nn = me(() => {
|
|
40063
|
-
Ge(),
|
|
40067
|
+
Ge(), M.current = window.setTimeout(() => {
|
|
40064
40068
|
Y.current !== null && Ot();
|
|
40065
40069
|
}, go + 32);
|
|
40066
40070
|
}, [Ge, Ot]), on = me(() => {
|
|
@@ -40146,7 +40150,7 @@ function Av({
|
|
|
40146
40150
|
}
|
|
40147
40151
|
}, [H == null ? void 0 : H.url, n, Tt]), Pe(() => {
|
|
40148
40152
|
ft();
|
|
40149
|
-
}, [ft,
|
|
40153
|
+
}, [ft, A]), Pe(() => {
|
|
40150
40154
|
const f = /* @__PURE__ */ new Set(), be = [], Me = (ke) => {
|
|
40151
40155
|
!(ke != null && ke.url) || f.has(ke.url) || (f.add(ke.url), be.push(ke));
|
|
40152
40156
|
};
|
|
@@ -40173,7 +40177,7 @@ function Av({
|
|
|
40173
40177
|
}, [ee, g]), Pe(() => () => {
|
|
40174
40178
|
Ge();
|
|
40175
40179
|
}, [Ge]), Nt(() => {
|
|
40176
|
-
Ae.current === n && le.current === (H == null ? void 0 : H.url) || (Ge(), Y.current = null, Ie(null), ue(null), Ce(null), fe(0), U(0), Qe(!1), ne(!1), ie(!1), S.current = 0, D.current = 0, v.current = "none", k.current = !1,
|
|
40180
|
+
Ae.current === n && le.current === (H == null ? void 0 : H.url) || (Ge(), Y.current = null, Ie(null), ue(null), Ce(null), fe(0), U(0), Qe(!1), ne(!1), ie(!1), S.current = 0, D.current = 0, v.current = "none", k.current = !1, P.current = null, R.current = !1, C.current = null, ft(), Ae.current = n, le.current = H == null ? void 0 : H.url);
|
|
40177
40181
|
}, [n, H == null ? void 0 : H.url, Qe, Ge, ft]), Nt(() => {
|
|
40178
40182
|
const f = j.current;
|
|
40179
40183
|
f !== null && (j.current = null, requestAnimationFrame(() => {
|
|
@@ -40215,10 +40219,10 @@ function Av({
|
|
|
40215
40219
|
}, ke = (tt) => {
|
|
40216
40220
|
if (tt.touches.length !== 1 || Q.current) return;
|
|
40217
40221
|
const St = tt.touches[0];
|
|
40218
|
-
R.current = !0,
|
|
40222
|
+
R.current = !0, P.current = { x: St.clientX, y: St.clientY }, v.current = "none", D.current = 0, k.current = !1;
|
|
40219
40223
|
}, rt = (tt) => {
|
|
40220
|
-
if (!
|
|
40221
|
-
const St = tt.touches[0], jt = St.clientX -
|
|
40224
|
+
if (!P.current || tt.touches.length !== 1 || Q.current) return;
|
|
40225
|
+
const St = tt.touches[0], jt = St.clientX - P.current.x, Et = St.clientY - P.current.y;
|
|
40222
40226
|
if (v.current === "none") {
|
|
40223
40227
|
if (Math.abs(jt) < 10 && Math.abs(Et) < 10) return;
|
|
40224
40228
|
if (Math.abs(jt) > Math.abs(Et)) {
|
|
@@ -40236,7 +40240,7 @@ function Av({
|
|
|
40236
40240
|
}
|
|
40237
40241
|
v.current === "vertical" && (k.current = !0, ie(!0), S.current = Et, fe(Et), tt.preventDefault());
|
|
40238
40242
|
}, Ft = () => {
|
|
40239
|
-
if (!
|
|
40243
|
+
if (!P.current) return;
|
|
40240
40244
|
const tt = v.current, St = k.current;
|
|
40241
40245
|
if (St && tt === "horizontal")
|
|
40242
40246
|
Me(D.current), f();
|
|
@@ -40249,7 +40253,7 @@ function Av({
|
|
|
40249
40253
|
S.current = 0, fe(0);
|
|
40250
40254
|
f();
|
|
40251
40255
|
} else tt === "horizontal" && Math.abs(D.current) > 0 && (Me(D.current), f());
|
|
40252
|
-
|
|
40256
|
+
P.current = null, v.current = "none", D.current = 0, k.current = !1, ie(!1);
|
|
40253
40257
|
};
|
|
40254
40258
|
return document.addEventListener("touchstart", ke, { passive: !0 }), document.addEventListener("touchmove", rt, { passive: !1 }), document.addEventListener("touchend", Ft), document.addEventListener("touchcancel", Ft), () => {
|
|
40255
40259
|
document.removeEventListener("touchstart", ke), document.removeEventListener("touchmove", rt), document.removeEventListener("touchend", Ft), document.removeEventListener("touchcancel", Ft);
|
|
@@ -40700,7 +40704,7 @@ function Bv({
|
|
|
40700
40704
|
layoutId: r,
|
|
40701
40705
|
portalId: a
|
|
40702
40706
|
}) {
|
|
40703
|
-
const { prefix: c } = dn(), s = Ke(() => Fv(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, x = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, h = W(x, n ?? !1), g = `max(${h}, ${kv}px)`, { objectFitMode: p, imageStyle: y } = Dv(e), I = Ov(e, n), T = V(null), [C, X] = J(!1), [
|
|
40707
|
+
const { prefix: c } = dn(), s = Ke(() => Fv(c), [c]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", b = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, x = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, h = W(x, n ?? !1), g = `max(${h}, ${kv}px)`, { objectFitMode: p, imageStyle: y } = Dv(e), I = Ov(e, n), T = V(null), [C, X] = J(!1), [A, B] = J([]), [P, S] = J(0), [D, v] = J(0), [k, R] = J(null), [Q, M] = J({ title1: "", title2: "", title3: "" }), Y = (!n || i) && !C, j = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, G = j.sizeType ?? "none", re = Y && G !== "none" ? `${c}-item-image-hover-${G}` : void 0, w = (j.value ?? 120) / 100, L = me((pe) => {
|
|
40704
40708
|
!pe || G !== "scale" || (pe.style.transformOrigin = lm(pe));
|
|
40705
40709
|
}, [G]), O = me((pe) => {
|
|
40706
40710
|
if (pe) {
|
|
@@ -40721,12 +40725,12 @@ function Bv({
|
|
|
40721
40725
|
}, ae = (() => {
|
|
40722
40726
|
const pe = {}, U = T.current ? getComputedStyle(T.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
40723
40727
|
return U && (pe["--cntrl-article-width"] = U), pe;
|
|
40724
|
-
})(), $ = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), ge = Ke(() => wv(d), [d]),
|
|
40728
|
+
})(), $ = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), ge = Ke(() => wv(d), [d]), E = Ke(() => Lv(d), [d]), oe = (pe, U) => {
|
|
40725
40729
|
if (((e == null ? void 0 : e.lightbox) ?? "on") === "off" || n && !o && !i) return;
|
|
40726
40730
|
const te = ge.findIndex((De) => De.gridIndex === pe);
|
|
40727
40731
|
if (te < 0) return;
|
|
40728
40732
|
const Z = ge[te];
|
|
40729
|
-
v(te), B(Z.items), S(0),
|
|
40733
|
+
v(te), B(Z.items), S(0), M(Z.entry), R(U ?? null), X(!0);
|
|
40730
40734
|
}, ee = me(() => {
|
|
40731
40735
|
X(!1), R(null);
|
|
40732
40736
|
}, []), we = me(() => {
|
|
@@ -40735,11 +40739,11 @@ function Bv({
|
|
|
40735
40739
|
}, [ge, D, k, p]), We = me((pe) => {
|
|
40736
40740
|
if (ge.length > 1) {
|
|
40737
40741
|
const U = ge.length, te = (D + pe + U) % U, Z = ge[te];
|
|
40738
|
-
v(te), B(Z.items), S(0),
|
|
40742
|
+
v(te), B(Z.items), S(0), M(Z.entry);
|
|
40739
40743
|
return;
|
|
40740
40744
|
}
|
|
40741
|
-
S((U) => (U + pe +
|
|
40742
|
-
}, [ge, D,
|
|
40745
|
+
S((U) => (U + pe + A.length) % A.length);
|
|
40746
|
+
}, [ge, D, A.length]), fe = ge.length > 1 || A.length > 1;
|
|
40743
40747
|
return Pe(() => {
|
|
40744
40748
|
if (!C || typeof document > "u") return;
|
|
40745
40749
|
const pe = document.body.style.overflow;
|
|
@@ -40752,7 +40756,7 @@ function Bv({
|
|
|
40752
40756
|
((e == null ? void 0 : e.lightbox) ?? "on") === "off" && X(!1);
|
|
40753
40757
|
}, [e == null ? void 0 : e.lightbox]), /* @__PURE__ */ q(lt, { children: [
|
|
40754
40758
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: s } }),
|
|
40755
|
-
/* @__PURE__ */ l(Iv, { mediaList:
|
|
40759
|
+
/* @__PURE__ */ l(Iv, { mediaList: E }),
|
|
40756
40760
|
/* @__PURE__ */ l("div", { ref: T, className: `${c}-wrapper ${c}-type-${u}`, style: ce, children: d.map((pe, U) => {
|
|
40757
40761
|
var De, Ie;
|
|
40758
40762
|
const te = !!((De = pe.image) != null && De.url), Z = zv(
|
|
@@ -40847,8 +40851,8 @@ function Bv({
|
|
|
40847
40851
|
Av,
|
|
40848
40852
|
{
|
|
40849
40853
|
prefix: c,
|
|
40850
|
-
items:
|
|
40851
|
-
index:
|
|
40854
|
+
items: A,
|
|
40855
|
+
index: P,
|
|
40852
40856
|
entry: Q,
|
|
40853
40857
|
settings: e,
|
|
40854
40858
|
isEditor: n,
|
|
@@ -42454,11 +42458,11 @@ function d0(e, t) {
|
|
|
42454
42458
|
`;
|
|
42455
42459
|
}
|
|
42456
42460
|
function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
|
|
42457
|
-
const { prefix: r } = dn(), a = r0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? Es, u = d.sizeType ?? "drag", b = d.value ?? Es.value, x = (e == null ? void 0 : e.direction) ?? "horizontal", h = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", p = (e == null ? void 0 : e.navSize) ?? "m", y = i0[p], I = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = (xe) => W(xe * I, n), C = (e == null ? void 0 : e.show) ?? "always", X = (e == null ? void 0 : e.controls) ?? null,
|
|
42461
|
+
const { prefix: r } = dn(), a = r0(e, n), c = t ?? [], s = c.length, d = (e == null ? void 0 : e.trigger) ?? Es, u = d.sizeType ?? "drag", b = d.value ?? Es.value, x = (e == null ? void 0 : e.direction) ?? "horizontal", h = (e == null ? void 0 : e.transition) ?? "slide", g = (e == null ? void 0 : e.nav) ?? "classic", p = (e == null ? void 0 : e.navSize) ?? "m", y = i0[p], I = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, T = (xe) => W(xe * I, n), C = (e == null ? void 0 : e.show) ?? "always", X = (e == null ? void 0 : e.controls) ?? null, A = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, B = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, P = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, S = (e == null ? void 0 : e.controlsColor) ?? Ps.color, D = (e == null ? void 0 : e.controlsHoverColor) ?? Ps.hover, v = (e == null ? void 0 : e.navColor) ?? ho.colors.inactive, k = (e == null ? void 0 : e.navPaginationColor) ?? ho.colors.pagination, R = (e == null ? void 0 : e.navBackgroundColor) ?? ho.colors.background, Q = (e == null ? void 0 : e.linkColor) ?? wa.linkColor, M = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, Y = x === "horizontal", j = u === "click", G = u === "drag", re = u === "auto" && (!n || !!i), w = !n, L = h === "slide", O = g === "classic", ce = C !== "never", ae = C === "on hover", $ = W(A, n), ge = {
|
|
42458
42462
|
width: $,
|
|
42459
42463
|
height: $,
|
|
42460
42464
|
maxWidth: $
|
|
42461
|
-
},
|
|
42465
|
+
}, E = L && s > 1, [oe, ee] = J(0), [we, We] = J(E ? 1 : 0), [fe, pe] = J(!1), [U, te] = J(!1), [Z, De] = J(!1), [Ie, _e] = J(0), [ue, ye] = J(!1), [Ce, z] = J(!1), de = V(!1), ve = V(we);
|
|
42462
42466
|
ve.current = we;
|
|
42463
42467
|
const Se = V(null), Ee = V(0), Re = V(null), F = V(null), he = V(null), ie = V(null), _ = me((xe) => {
|
|
42464
42468
|
de.current = xe, pe(xe);
|
|
@@ -42470,11 +42474,11 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42470
42474
|
return;
|
|
42471
42475
|
}
|
|
42472
42476
|
let Ze = ve.current;
|
|
42473
|
-
const Te =
|
|
42477
|
+
const Te = E && (Ze === 0 || Ze === s + 1), ze = Te ? oe + 1 : null;
|
|
42474
42478
|
Te && (Ze = oe + 1);
|
|
42475
42479
|
let qe = je;
|
|
42476
42480
|
for (; qe > 0; ) {
|
|
42477
|
-
const ht = a0(Ze, Fe, s,
|
|
42481
|
+
const ht = a0(Ze, Fe, s, E);
|
|
42478
42482
|
if (Ze = ht.position, qe -= 1, ht.hitBoundary) {
|
|
42479
42483
|
Ee.current = qe * Fe;
|
|
42480
42484
|
break;
|
|
@@ -42490,27 +42494,27 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42490
42494
|
return;
|
|
42491
42495
|
}
|
|
42492
42496
|
te(!1), We(Ze);
|
|
42493
|
-
}, [oe, s,
|
|
42497
|
+
}, [oe, s, E, L, _]), Ae = me((xe) => {
|
|
42494
42498
|
ne(xe);
|
|
42495
42499
|
}, [ne]), le = me((xe) => {
|
|
42496
42500
|
if (s < 2) return;
|
|
42497
42501
|
const Fe = vo(xe, s);
|
|
42498
42502
|
if (!(Fe === oe && !de.current) && (ye(!0), _(!0), ee(Fe), L)) {
|
|
42499
|
-
const je = Fe + (
|
|
42503
|
+
const je = Fe + (E ? 1 : 0);
|
|
42500
42504
|
Se.current = null, Ee.current = 0, ve.current = je, te(!1), We(je);
|
|
42501
42505
|
}
|
|
42502
|
-
}, [oe, s,
|
|
42506
|
+
}, [oe, s, E, L, _]);
|
|
42503
42507
|
Pe(() => {
|
|
42504
42508
|
if (!fe) return;
|
|
42505
42509
|
const xe = window.setTimeout(() => {
|
|
42506
|
-
if (
|
|
42510
|
+
if (E && (we === 0 || we === s + 1)) {
|
|
42507
42511
|
Se.current = null, te(!0), We(oe + 1);
|
|
42508
42512
|
return;
|
|
42509
42513
|
}
|
|
42510
42514
|
_(!1);
|
|
42511
42515
|
}, ji);
|
|
42512
42516
|
return () => window.clearTimeout(xe);
|
|
42513
|
-
}, [oe, s,
|
|
42517
|
+
}, [oe, s, E, fe, _, we]), Pe(() => {
|
|
42514
42518
|
if (!U) return;
|
|
42515
42519
|
let xe = 0;
|
|
42516
42520
|
const Fe = requestAnimationFrame(() => {
|
|
@@ -42533,13 +42537,13 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42533
42537
|
cancelAnimationFrame(Fe), cancelAnimationFrame(xe);
|
|
42534
42538
|
};
|
|
42535
42539
|
}, [ne, _, U]);
|
|
42536
|
-
const H = `${
|
|
42540
|
+
const H = `${E}:${s}`, Xe = V(H);
|
|
42537
42541
|
Pe(() => {
|
|
42538
42542
|
if (Xe.current === H) return;
|
|
42539
42543
|
Xe.current = H;
|
|
42540
42544
|
const xe = s > 0 ? Math.min(oe, s - 1) : 0;
|
|
42541
|
-
he.current = null, ie.current = null, De(!1), _e(0), ee(xe), te(!0), We(xe + (
|
|
42542
|
-
}, [oe, s,
|
|
42545
|
+
he.current = null, ie.current = null, De(!1), _e(0), ee(xe), te(!0), We(xe + (E ? 1 : 0));
|
|
42546
|
+
}, [oe, s, E, H]), Pe(() => {
|
|
42543
42547
|
if (!ue) return;
|
|
42544
42548
|
const xe = window.setTimeout(() => ye(!1), Jv);
|
|
42545
42549
|
return () => window.clearTimeout(xe);
|
|
@@ -42587,7 +42591,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42587
42591
|
if (Te > 0) {
|
|
42588
42592
|
const ze = l0(Ze, Y);
|
|
42589
42593
|
let qe = ve.current;
|
|
42590
|
-
|
|
42594
|
+
E && (qe === 0 || qe === s + 1) ? (qe = oe + 1, ve.current = qe, te(!0), We(qe), je = 0) : je = ze + qe * Te, _e(je);
|
|
42591
42595
|
}
|
|
42592
42596
|
}
|
|
42593
42597
|
Fe.setPointerCapture(xe.pointerId), ie.current = xe.pointerId, he.current = {
|
|
@@ -42623,7 +42627,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42623
42627
|
ht > 0 && (Fe.velocity = (et - Fe.offset) / ht, Fe.lastTime = xe.timeStamp), Fe.offset = et, L && _e(et);
|
|
42624
42628
|
}, wt = (xe) => {
|
|
42625
42629
|
Ve(xe);
|
|
42626
|
-
}, st = Y ? `translate3d(calc(${-we * 100}% + ${Ie}px), 0, 0)` : `translate3d(0, calc(${-we * 100}% + ${Ie}px), 0)`, Ue =
|
|
42630
|
+
}, st = Y ? `translate3d(calc(${-we * 100}% + ${Ie}px), 0, 0)` : `translate3d(0, calc(${-we * 100}% + ${Ie}px), 0)`, Ue = E ? [c[s - 1], ...c, c[0]] : c;
|
|
42627
42631
|
return /* @__PURE__ */ q(lt, { children: [
|
|
42628
42632
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: d0(r, n) } }),
|
|
42629
42633
|
/* @__PURE__ */ q(
|
|
@@ -42673,7 +42677,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42673
42677
|
transition: Z || U ? "none" : `transform ${ji}ms ${ed}`
|
|
42674
42678
|
} : void 0,
|
|
42675
42679
|
children: Ue.map((xe, Fe) => {
|
|
42676
|
-
const je =
|
|
42680
|
+
const je = E ? vo(Fe - 1, s) : Fe, Te = E && (Fe === 0 || Fe === s + 1) ? `clone-${Fe === 0 ? "start" : "end"}` : `slide-${je}`;
|
|
42677
42681
|
return /* @__PURE__ */ l(
|
|
42678
42682
|
"div",
|
|
42679
42683
|
{
|
|
@@ -42722,7 +42726,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42722
42726
|
},
|
|
42723
42727
|
className: `${r}-arrow-inner`,
|
|
42724
42728
|
style: {
|
|
42725
|
-
transform: `translate(${W(B, n)}, ${W(
|
|
42729
|
+
transform: `translate(${W(B, n)}, ${W(P * (Y ? 1 : -1), n)}) rotate(${Y ? "0deg" : "90deg"})`
|
|
42726
42730
|
},
|
|
42727
42731
|
children: [
|
|
42728
42732
|
X && /* @__PURE__ */ l(
|
|
@@ -42768,7 +42772,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42768
42772
|
xe.stopPropagation(), Ae(1);
|
|
42769
42773
|
},
|
|
42770
42774
|
style: {
|
|
42771
|
-
transform: `translate(${W(B * (Y ? -1 : 1), n)}, ${W(
|
|
42775
|
+
transform: `translate(${W(B * (Y ? -1 : 1), n)}, ${W(P, n)}) rotate(${Y ? "0deg" : "90deg"})`
|
|
42772
42776
|
},
|
|
42773
42777
|
children: [
|
|
42774
42778
|
X && /* @__PURE__ */ l(
|
|
@@ -42868,7 +42872,7 @@ function u0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
42868
42872
|
"data-controls": o ? "captionMarginTop" : void 0,
|
|
42869
42873
|
className: o ? `${r}-control` : void 0,
|
|
42870
42874
|
style: {
|
|
42871
|
-
height: W(
|
|
42875
|
+
height: W(M, n)
|
|
42872
42876
|
}
|
|
42873
42877
|
}
|
|
42874
42878
|
),
|
|
@@ -44915,12 +44919,12 @@ function W0({
|
|
|
44915
44919
|
counterStyle: d,
|
|
44916
44920
|
backgroundColor: u
|
|
44917
44921
|
}) {
|
|
44918
|
-
const b = i === "cover", x = V(null), h = V(null), g = V(null), p = V(0), y = V(0), I = V("none"), T = V(!1), C = V(!1), X = V(!1),
|
|
44922
|
+
const b = i === "cover", x = V(null), h = V(null), g = V(null), p = V(0), y = V(0), I = V("none"), T = V(!1), C = V(!1), X = V(!1), A = V(null), [B, P] = J(null), [S, D] = J("opening"), [v, k] = J(0), [R, Q] = J(0), [M, Y] = J(!1), [j, G] = J(!1), [re, w] = J(!1), L = V(n), O = t[n], ce = O ? Ha(O) : !1, ae = R !== 0 || M, $ = me((ue) => {
|
|
44919
44923
|
X.current = ue, Y(ue);
|
|
44920
44924
|
}, []), ge = me(() => {
|
|
44921
|
-
|
|
44922
|
-
}, []),
|
|
44923
|
-
ge(),
|
|
44925
|
+
A.current !== null && (window.clearTimeout(A.current), A.current = null);
|
|
44926
|
+
}, []), E = me(() => {
|
|
44927
|
+
ge(), A.current = window.setTimeout(() => {
|
|
44924
44928
|
ge(), $(!1);
|
|
44925
44929
|
}, _n + 32);
|
|
44926
44930
|
}, [ge, $]), oe = me(() => {
|
|
@@ -44929,25 +44933,25 @@ function W0({
|
|
|
44929
44933
|
const Ce = ue.getBoundingClientRect(), z = Ce.width, de = Ce.height;
|
|
44930
44934
|
if (!z || !de) return;
|
|
44931
44935
|
if (i === "cover") {
|
|
44932
|
-
|
|
44936
|
+
P({ width: z, height: de, left: Ce.left, top: Ce.top });
|
|
44933
44937
|
return;
|
|
44934
44938
|
}
|
|
44935
44939
|
if (!ye) {
|
|
44936
|
-
|
|
44940
|
+
P(cr(ue));
|
|
44937
44941
|
return;
|
|
44938
44942
|
}
|
|
44939
44943
|
const { width: ve, height: Se } = R0(ye);
|
|
44940
44944
|
if (!ve || !Se) {
|
|
44941
|
-
|
|
44945
|
+
P(cr(ue));
|
|
44942
44946
|
return;
|
|
44943
44947
|
}
|
|
44944
44948
|
const Ee = ve / Se, Re = z / de;
|
|
44945
44949
|
if (Ee > Re) {
|
|
44946
44950
|
const F = z / Ee;
|
|
44947
|
-
|
|
44951
|
+
P({ width: z, height: F, left: Ce.left, top: Ce.top + (de - F) / 2 });
|
|
44948
44952
|
} else {
|
|
44949
44953
|
const F = de * Ee;
|
|
44950
|
-
|
|
44954
|
+
P({ width: F, height: de, left: Ce.left + (z - F) / 2, top: Ce.top });
|
|
44951
44955
|
}
|
|
44952
44956
|
}, [i]);
|
|
44953
44957
|
Pe(() => {
|
|
@@ -44968,7 +44972,7 @@ function W0({
|
|
|
44968
44972
|
if (L.current === n) return;
|
|
44969
44973
|
ge(), k(0), Q(0), $(!1), w(!1), G(!1), p.current = 0, y.current = 0, I.current = "none", T.current = !1, g.current = null, C.current = !1;
|
|
44970
44974
|
const ue = x.current;
|
|
44971
|
-
ue &&
|
|
44975
|
+
ue && P(cr(ue)), L.current = n;
|
|
44972
44976
|
}, [n, $, ge]), Pe(() => {
|
|
44973
44977
|
if (S !== "open") return;
|
|
44974
44978
|
let ue = null;
|
|
@@ -44981,13 +44985,13 @@ function W0({
|
|
|
44981
44985
|
}, z = (Re) => {
|
|
44982
44986
|
ge(), X.current = !1, Y(!1), Q(0), G(!1), T.current = !1, y.current = 0, I.current = "none";
|
|
44983
44987
|
const F = x.current;
|
|
44984
|
-
F &&
|
|
44988
|
+
F && P(cr(F)), Re < 0 ? c() : a();
|
|
44985
44989
|
}, de = (Re) => {
|
|
44986
44990
|
if (Math.abs(Re) > x0 && t.length > 1) {
|
|
44987
44991
|
z(Re);
|
|
44988
44992
|
return;
|
|
44989
44993
|
}
|
|
44990
|
-
$(!0), Q(0),
|
|
44994
|
+
$(!0), Q(0), E();
|
|
44991
44995
|
}, ve = (Re) => {
|
|
44992
44996
|
if (Re.touches.length !== 1 || X.current) return;
|
|
44993
44997
|
const F = Re.touches[0];
|
|
@@ -45027,7 +45031,7 @@ function W0({
|
|
|
45027
45031
|
return document.addEventListener("touchstart", ve, { passive: !0 }), document.addEventListener("touchmove", Se, { passive: !1 }), document.addEventListener("touchend", Ee), document.addEventListener("touchcancel", Ee), () => {
|
|
45028
45032
|
document.removeEventListener("touchstart", ve), document.removeEventListener("touchmove", Se), document.removeEventListener("touchend", Ee), document.removeEventListener("touchcancel", Ee), ye();
|
|
45029
45033
|
};
|
|
45030
|
-
}, [S, t.length, c, a, $,
|
|
45034
|
+
}, [S, t.length, c, a, $, E, ge]), Pe(() => {
|
|
45031
45035
|
const ue = (ye) => {
|
|
45032
45036
|
ye.key === "Escape" && (ye.preventDefault(), ye.stopPropagation(), S !== "closing" && D("closing"));
|
|
45033
45037
|
};
|
|
@@ -45068,7 +45072,7 @@ function W0({
|
|
|
45068
45072
|
objectFit: i === "cover" ? "cover" : "contain",
|
|
45069
45073
|
transform: De,
|
|
45070
45074
|
opacity: v > 0 ? pe : S === "opening" || We ? 0 : 1,
|
|
45071
|
-
transition: j && !
|
|
45075
|
+
transition: j && !M ? "none" : M ? `transform ${_n}ms ${yi}` : re ? `transform ${_n}ms ${yi}, opacity ${_n}ms ${yi}` : S === "opening" || We ? `opacity ${_n}ms ${yi}` : "none",
|
|
45072
45076
|
pointerEvents: ce && we && !ae ? "auto" : "none",
|
|
45073
45077
|
touchAction: ce && we ? "none" : void 0,
|
|
45074
45078
|
zIndex: 9998
|
|
@@ -45279,16 +45283,16 @@ function Fs({
|
|
|
45279
45283
|
},
|
|
45280
45284
|
...u ? { cursor: "pointer", pointerEvents: "auto" } : {},
|
|
45281
45285
|
...x ? {} : I
|
|
45282
|
-
},
|
|
45286
|
+
}, A = {
|
|
45283
45287
|
className: b,
|
|
45284
45288
|
style: C,
|
|
45285
45289
|
onClick: u ? (S) => {
|
|
45286
45290
|
S.stopPropagation(), u();
|
|
45287
45291
|
} : void 0
|
|
45288
|
-
}, B = Math.max(c, vi),
|
|
45292
|
+
}, B = Math.max(c, vi), P = Ha(t) ? /* @__PURE__ */ l(
|
|
45289
45293
|
"video",
|
|
45290
45294
|
{
|
|
45291
|
-
...
|
|
45295
|
+
...A,
|
|
45292
45296
|
src: t.url,
|
|
45293
45297
|
muted: !0,
|
|
45294
45298
|
autoPlay: !0,
|
|
@@ -45298,13 +45302,13 @@ function Fs({
|
|
|
45298
45302
|
) : /* @__PURE__ */ l(
|
|
45299
45303
|
"img",
|
|
45300
45304
|
{
|
|
45301
|
-
...
|
|
45305
|
+
...A,
|
|
45302
45306
|
src: t.url,
|
|
45303
45307
|
alt: t.name ?? ""
|
|
45304
45308
|
}
|
|
45305
45309
|
);
|
|
45306
45310
|
return /* @__PURE__ */ q("div", { className: `${e}-gallery-item`, children: [
|
|
45307
|
-
x ? /* @__PURE__ */ l("div", { style: T, children:
|
|
45311
|
+
x ? /* @__PURE__ */ l("div", { style: T, children: P }) : P,
|
|
45308
45312
|
s && c > 0 && /* @__PURE__ */ l(
|
|
45309
45313
|
"div",
|
|
45310
45314
|
{
|
|
@@ -45619,12 +45623,12 @@ function B0({
|
|
|
45619
45623
|
portalId: r
|
|
45620
45624
|
}) {
|
|
45621
45625
|
var yt;
|
|
45622
|
-
const { prefix: a } = dn(), c = Ke(() => y0(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", b = (e == null ? void 0 : e.imgWidth) ?? Oi, x = (e == null ? void 0 : e.titleWidth) ?? M0, h = P0(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? h0, p = (e == null ? void 0 : e.position) ?? "center", y = (e == null ? void 0 : e.titleTopPadding) ?? 0, I = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, C = _0(e == null ? void 0 : e.transition), X = (e == null ? void 0 : e.lightbox) ?? "on",
|
|
45626
|
+
const { prefix: a } = dn(), c = Ke(() => y0(a), [a]), s = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", b = (e == null ? void 0 : e.imgWidth) ?? Oi, x = (e == null ? void 0 : e.titleWidth) ?? M0, h = P0(e == null ? void 0 : e.imageDisplay), g = (e == null ? void 0 : e.cornerRadius) ?? h0, p = (e == null ? void 0 : e.position) ?? "center", y = (e == null ? void 0 : e.titleTopPadding) ?? 0, I = (e == null ? void 0 : e.titleLeftPadding) ?? 0, T = (e == null ? void 0 : e.titleRightPadding) ?? 0, C = _0(e == null ? void 0 : e.transition), X = (e == null ? void 0 : e.lightbox) ?? "on", A = u === "b", B = C === "fade" || C === "retype", { setTitleRef: P, dominantIndex: S } = D0(s.length, B, p), D = ((yt = s[S]) == null ? void 0 : yt.title) ?? "", v = z0(D, C === "retype"), k = C === "fade" || C === "retype", R = C === "retype" ? v : D, Q = A ? void 0 : { width: W(b, n ?? !1) }, M = X === "on" && (!n || i || o), Y = o ?? !1, j = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, G = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, re = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, w = (vt) => W(vt, n ?? !1), O = {
|
|
45623
45627
|
width: w(x)
|
|
45624
|
-
}, ce = u === "a" ? j : G, ae =
|
|
45628
|
+
}, ce = u === "a" ? j : G, ae = A ? { width: "100%" } : {
|
|
45625
45629
|
width: `calc(100% - ${w(b)} - ${w(ce)})`,
|
|
45626
45630
|
...u === "c" ? { marginLeft: "auto" } : {}
|
|
45627
|
-
}, $ = Math.max(j, vi), ge = Math.max(G, vi),
|
|
45631
|
+
}, $ = Math.max(j, vi), ge = Math.max(G, vi), E = Math.max(re, vi), oe = Math.max(y, vi), ee = Math.max(I, vi), we = Math.max(T, vi), We = Math.max(0, (d ?? 1) - (b ?? Oi)), fe = u === "a" ? Math.max(0, (d ?? 1) - (b ?? Oi) - j) : u === "c" ? Math.max(0, (d ?? 1) - (b ?? Oi) - G) : u === "b" ? d ?? 1 : 1, pe = Y && (u === "a" || u === "b" || u === "c") && p === "top", U = Y && ((u === "a" || u === "b") && (p === "left" || p === "top") || u === "c" && (p === "left" || p === "top")), te = Y && ((u === "c" || u === "b") && p === "right" || u === "a" && p === "right"), Z = s.length > 1, De = A ? void 0 : w((u === "c" ? G : j) + (b ?? Oi)), Ie = u === "c" && De ? { left: De } : void 0, _e = u === "a" && De ? { right: De } : void 0, ue = A ? { left: 0, width: "100%" } : u === "a" ? { right: w(j), width: w(b) } : { left: w(G), width: w(b) }, {
|
|
45628
45632
|
titleColor: ye,
|
|
45629
45633
|
titleFontFamily: Ce,
|
|
45630
45634
|
titleFontSettings: z,
|
|
@@ -45684,8 +45688,8 @@ function B0({
|
|
|
45684
45688
|
titleColor: ye ?? "#000000",
|
|
45685
45689
|
lightboxCounterColor: he ?? "#DEDDDD"
|
|
45686
45690
|
}, w0, S0), ze = V(null), [qe, et] = J(!1), [ht, it] = J([]), [Mt, ft] = J(0), He = me((vt, bt) => {
|
|
45687
|
-
|
|
45688
|
-
}, [
|
|
45691
|
+
M && (it(vt), ft(bt), et(!0));
|
|
45692
|
+
}, [M]), Qe = me(() => {
|
|
45689
45693
|
et(!1);
|
|
45690
45694
|
}, []), Ge = Ke(() => {
|
|
45691
45695
|
const vt = { ...Te }, bt = ze.current ? getComputedStyle(ze.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
@@ -45743,7 +45747,7 @@ function B0({
|
|
|
45743
45747
|
const Ot = L0(vt.gallery), nn = bt < s.length - 1, on = Ot.filter((Lt) => Lt.lightboxMedia).map((Lt) => Lt.lightboxMedia), Ct = {
|
|
45744
45748
|
P: a,
|
|
45745
45749
|
position: p,
|
|
45746
|
-
titleRef:
|
|
45750
|
+
titleRef: P(bt),
|
|
45747
45751
|
titleClassName: Ue,
|
|
45748
45752
|
titleContainerStyle: st,
|
|
45749
45753
|
titleTextBoxStyle: k ? { maxWidth: "100%" } : wt,
|
|
@@ -45795,12 +45799,12 @@ function B0({
|
|
|
45795
45799
|
className: `${a}-control-anchor`,
|
|
45796
45800
|
style: {
|
|
45797
45801
|
bottom: 0,
|
|
45798
|
-
height: w(
|
|
45802
|
+
height: w(E),
|
|
45799
45803
|
...ue
|
|
45800
45804
|
}
|
|
45801
45805
|
}
|
|
45802
45806
|
),
|
|
45803
|
-
|
|
45807
|
+
A ? /* @__PURE__ */ q("div", { className: `${a}-gallery`, children: [
|
|
45804
45808
|
/* @__PURE__ */ l("div", { className: `${a}-gallery-media`, children: Ot.map(({ displayMedia: Lt, lightboxMedia: Jt }, zt) => {
|
|
45805
45809
|
const Tt = Jt ? on.findIndex((Gt) => Gt.url === Jt.url) : -1;
|
|
45806
45810
|
return /* @__PURE__ */ l(
|
|
@@ -45815,7 +45819,7 @@ function B0({
|
|
|
45815
45819
|
galleryPaddingBetween: re,
|
|
45816
45820
|
showPaddingAfter: zt < Ot.length - 1,
|
|
45817
45821
|
showControls: Y,
|
|
45818
|
-
onMediaClick:
|
|
45822
|
+
onMediaClick: M && Tt >= 0 ? () => He(on, Tt) : void 0
|
|
45819
45823
|
},
|
|
45820
45824
|
`${Lt.url}-${zt}`
|
|
45821
45825
|
);
|
|
@@ -45862,7 +45866,7 @@ function B0({
|
|
|
45862
45866
|
galleryPaddingBetween: re,
|
|
45863
45867
|
showPaddingAfter: zt < Ot.length - 1,
|
|
45864
45868
|
showControls: Y,
|
|
45865
|
-
onMediaClick:
|
|
45869
|
+
onMediaClick: M && Tt >= 0 ? () => He(on, Tt) : void 0
|
|
45866
45870
|
},
|
|
45867
45871
|
`${Lt.url}-${zt}`
|
|
45868
45872
|
);
|