@cntrl-site/components 1.0.19-alpha.3 → 1.0.19-alpha.4
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 +16 -16
- package/dist/index.mjs +434 -427
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { createPortal as Wo, flushSync as rs } from "react-dom";
|
|
|
6
6
|
function Mg(t) {
|
|
7
7
|
return t.type === "object" && t.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__hoverArrow___A-dOH", ss = "ControlSlider-module__sliderItem___QQSkR", cs = "ControlSlider-module__sliderImage___9hRl-", ds = "ControlSlider-module__arrow___05ghY", us = "ControlSlider-module__arrowVertical___tBfVN", ps = "ControlSlider-module__nextArrow___-30Yc", ms = "ControlSlider-module__arrowInner___aEra3", gs = "ControlSlider-module__arrowIcon___S4ztF", hs = "ControlSlider-module__arrowImg___2dwJW", fs = "ControlSlider-module__mirror___brd6U", ys = "ControlSlider-module__pagination___bicLF", vs = "ControlSlider-module__paginationInner___bT-P-", bs = "ControlSlider-module__paginationVertical___zYqKw", xs = "ControlSlider-module__paginationItem___nTRbk", ws = "ControlSlider-module__dot___p1Qun", $s = "ControlSlider-module__activeDot___LHFaj", Ss = "ControlSlider-module__paginationInsideBottom___R3FWn", Cs = "ControlSlider-module__paginationInsideTop___V-qb-", Ts = "ControlSlider-module__paginationOutsideBottom___14w8D", Ls = "ControlSlider-module__paginationOutsideTop___SCLqB", Es = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ps = "ControlSlider-module__paginationInsideRight___Rtt3o", Is = "ControlSlider-module__paginationOutsideLeft___lahaw",
|
|
9
|
+
const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__hoverArrow___A-dOH", ss = "ControlSlider-module__sliderItem___QQSkR", cs = "ControlSlider-module__sliderImage___9hRl-", ds = "ControlSlider-module__arrow___05ghY", us = "ControlSlider-module__arrowVertical___tBfVN", ps = "ControlSlider-module__nextArrow___-30Yc", ms = "ControlSlider-module__arrowInner___aEra3", gs = "ControlSlider-module__arrowIcon___S4ztF", hs = "ControlSlider-module__arrowImg___2dwJW", fs = "ControlSlider-module__mirror___brd6U", ys = "ControlSlider-module__pagination___bicLF", vs = "ControlSlider-module__paginationInner___bT-P-", bs = "ControlSlider-module__paginationVertical___zYqKw", xs = "ControlSlider-module__paginationItem___nTRbk", ws = "ControlSlider-module__dot___p1Qun", $s = "ControlSlider-module__activeDot___LHFaj", Ss = "ControlSlider-module__paginationInsideBottom___R3FWn", Cs = "ControlSlider-module__paginationInsideTop___V-qb-", Ts = "ControlSlider-module__paginationOutsideBottom___14w8D", Ls = "ControlSlider-module__paginationOutsideTop___SCLqB", Es = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ps = "ControlSlider-module__paginationInsideRight___Rtt3o", Is = "ControlSlider-module__paginationOutsideLeft___lahaw", _s = "ControlSlider-module__paginationOutsideRight___EtuQa", As = "ControlSlider-module__imgWrapper___UjEgB", Ws = "ControlSlider-module__captionBlock___dJ6-j", ks = "ControlSlider-module__captionTextWrapper___HFlpf", Rs = "ControlSlider-module__captionText___uGBVc", Ms = "ControlSlider-module__active___WZK4G", Fs = "ControlSlider-module__withPointerEvents___t-18M", Ns = "ControlSlider-module__topLeftAlignment___zjnGM", Hs = "ControlSlider-module__topCenterAlignment___gD1xW", Os = "ControlSlider-module__topRightAlignment___NMapS", Bs = "ControlSlider-module__middleLeftAlignment___OnUrY", zs = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ds = "ControlSlider-module__middleRightAlignment___wEbfX", Vs = "ControlSlider-module__bottomLeftAlignment___cTP2-", qs = "ControlSlider-module__bottomCenterAlignment___c54fB", js = "ControlSlider-module__bottomRightAlignment___kEwrz", Ks = "ControlSlider-module__clickOverlay___DZA28", Us = "ControlSlider-module__contain___pLyq7", Gs = "ControlSlider-module__cover___KdDat", _t = {
|
|
10
10
|
wrapper: as,
|
|
11
11
|
hoverArrow: ls,
|
|
12
12
|
sliderItem: ss,
|
|
@@ -31,8 +31,8 @@ const as = "ControlSlider-module__wrapper___sHEkd", ls = "ControlSlider-module__
|
|
|
31
31
|
paginationInsideLeft: Es,
|
|
32
32
|
paginationInsideRight: Ps,
|
|
33
33
|
paginationOutsideLeft: Is,
|
|
34
|
-
paginationOutsideRight:
|
|
35
|
-
imgWrapper:
|
|
34
|
+
paginationOutsideRight: _s,
|
|
35
|
+
imgWrapper: As,
|
|
36
36
|
captionBlock: Ws,
|
|
37
37
|
captionTextWrapper: ks,
|
|
38
38
|
captionText: Rs,
|
|
@@ -106,7 +106,7 @@ function ji(t) {
|
|
|
106
106
|
function rn(t, e) {
|
|
107
107
|
ji(t).forEach(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function _r(t, e) {
|
|
110
110
|
return t.indexOf(e) > -1;
|
|
111
111
|
}
|
|
112
112
|
function fo(t, e) {
|
|
@@ -123,7 +123,7 @@ function hn(t, e) {
|
|
|
123
123
|
function Ki(t, e) {
|
|
124
124
|
rn(e, t.appendChild.bind(t));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ar(t, e) {
|
|
127
127
|
rn(t, function(n) {
|
|
128
128
|
var i = (e || n).parentNode;
|
|
129
129
|
i && i.insertBefore(n, e);
|
|
@@ -308,7 +308,7 @@ function fl() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var jn = "mounted", xr = "ready", Pn = "move", Li = "moved", Mr = "click", yl = "active", vl = "inactive", bl = "visible", xl = "hidden", Me = "refresh", Xe = "updated", vi = "resize", Ro = "resized", wl = "drag", $l = "dragging", Sl = "dragged", Mo = "scroll", ri = "scrolled", tc = "overflow", Fr = "destroy", Cl = "arrows:mounted", Tl = "arrows:updated", Ll = "pagination:mounted", El = "pagination:updated", Nr = "navigation:mounted", Hr = "autoplay:play", Pl = "autoplay:playing", Or = "autoplay:pause", Br = "lazyload:loaded", Il = "sk",
|
|
311
|
+
var jn = "mounted", xr = "ready", Pn = "move", Li = "moved", Mr = "click", yl = "active", vl = "inactive", bl = "visible", xl = "hidden", Me = "refresh", Xe = "updated", vi = "resize", Ro = "resized", wl = "drag", $l = "dragging", Sl = "dragged", Mo = "scroll", ri = "scrolled", tc = "overflow", Fr = "destroy", Cl = "arrows:mounted", Tl = "arrows:updated", Ll = "pagination:mounted", El = "pagination:updated", Nr = "navigation:mounted", Hr = "autoplay:play", Pl = "autoplay:playing", Or = "autoplay:pause", Br = "lazyload:loaded", Il = "sk", _l = "sh", Po = "ei";
|
|
312
312
|
function Ee(t) {
|
|
313
313
|
var e = t ? t.event.bus : document.createDocumentFragment(), n = fl();
|
|
314
314
|
function i(a, r) {
|
|
@@ -368,7 +368,7 @@ function ec(t) {
|
|
|
368
368
|
e = o;
|
|
369
369
|
}
|
|
370
370
|
function i(o) {
|
|
371
|
-
return
|
|
371
|
+
return _r(ji(o), e);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
@@ -417,14 +417,14 @@ function ic(t, e, n) {
|
|
|
417
417
|
set: y
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var No = "Arrow", Ho = No + "Left", Oo = No + "Right",
|
|
420
|
+
var No = "Arrow", Ho = No + "Left", Oo = No + "Right", Al = No + "Up", Wl = No + "Down", ca = "rtl", Bo = "ttb", Zo = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
424
424
|
x: ["y"],
|
|
425
425
|
X: ["Y"],
|
|
426
426
|
Y: ["X"],
|
|
427
|
-
ArrowLeft: [
|
|
427
|
+
ArrowLeft: [Al, Oo],
|
|
428
428
|
ArrowRight: [Wl, Ho]
|
|
429
429
|
};
|
|
430
430
|
function oc(t, e, n) {
|
|
@@ -478,8 +478,8 @@ function vc(t, e, n) {
|
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function $(v) {
|
|
481
|
-
var
|
|
482
|
-
En(u), Sn(r, d), Sn(b, x), fn([b, y],
|
|
481
|
+
var _ = Vr.concat("style");
|
|
482
|
+
En(u), Sn(r, d), Sn(b, x), fn([b, y], _), fn(r, v ? _ : ["style", Hi]);
|
|
483
483
|
}
|
|
484
484
|
function C() {
|
|
485
485
|
Sn(r, d), Sn(b, x), d = R(Qo), x = R(ga), hn(r, d), hn(b, x), Ut(r, en, n.label), Ut(r, zr, n.labelledby);
|
|
@@ -492,8 +492,8 @@ function vc(t, e, n) {
|
|
|
492
492
|
next: Nl,
|
|
493
493
|
bar: cc,
|
|
494
494
|
toggle: dc
|
|
495
|
-
}, function(v,
|
|
496
|
-
l[
|
|
495
|
+
}, function(v, _) {
|
|
496
|
+
l[_] = E("." + v);
|
|
497
497
|
}), Mi(l, {
|
|
498
498
|
root: r,
|
|
499
499
|
track: b,
|
|
@@ -502,12 +502,12 @@ function vc(t, e, n) {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function k() {
|
|
505
|
-
var v = r.id || Qs(Gi),
|
|
506
|
-
r.id = v, b.id = b.id || v + "-track", y.id = y.id || v + "-list", !sn(r, Cn) && r.tagName !== "SECTION" &&
|
|
505
|
+
var v = r.id || Qs(Gi), _ = n.role;
|
|
506
|
+
r.id = v, b.id = b.id || v + "-track", y.id = y.id || v + "-list", !sn(r, Cn) && r.tagName !== "SECTION" && _ && Ut(r, Cn, _), Ut(r, Hi, c.carousel), Ut(y, Cn, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function E(v) {
|
|
509
|
-
var
|
|
510
|
-
return
|
|
509
|
+
var _ = gl(r, v);
|
|
510
|
+
return _ && fc(_, "." + Qo) === r ? _ : void 0;
|
|
511
511
|
}
|
|
512
512
|
function R(v) {
|
|
513
513
|
return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v === Qo && oi];
|
|
@@ -525,9 +525,9 @@ function bc(t, e, n, i) {
|
|
|
525
525
|
w || (i.id = u.id + "-slide" + Rr(e + 1), Ut(i, Cn, p ? "tabpanel" : "group"), Ut(i, Hi, y.slide), Ut(i, en, C || br(y.slideLabel, [e + 1, t.length]))), v();
|
|
526
526
|
}
|
|
527
527
|
function v() {
|
|
528
|
-
c(i, "click", we(r, Mr, X)), c(i, "keydown", we(r, Il, X)), a([Li,
|
|
528
|
+
c(i, "click", we(r, Mr, X)), c(i, "keydown", we(r, Il, X)), a([Li, _l, ri], T), a(Nr, V), b && a(Pn, m);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function _() {
|
|
531
531
|
E = !0, o.destroy(), Sn(i, gc), fn(i, Vr), Ut(i, "style", $), Ut(i, en, C || "");
|
|
532
532
|
}
|
|
533
533
|
function V() {
|
|
@@ -570,7 +570,7 @@ function bc(t, e, n, i) {
|
|
|
570
570
|
var j = tn(l.Elements.track), H = tn(i), Y = L("left", !0), it = L("right", !0);
|
|
571
571
|
return Eo(j[Y]) <= Ni(H[Y]) && Eo(H[it]) <= Ni(j[it]);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function A(j, H) {
|
|
574
574
|
var Y = Je(j - e);
|
|
575
575
|
return !w && (d.rewind || t.is(Ei)) && (Y = Dn(Y, t.length - Y)), Y <= H;
|
|
576
576
|
}
|
|
@@ -581,10 +581,10 @@ function bc(t, e, n, i) {
|
|
|
581
581
|
container: k,
|
|
582
582
|
isClone: w,
|
|
583
583
|
mount: R,
|
|
584
|
-
destroy:
|
|
584
|
+
destroy: _,
|
|
585
585
|
update: T,
|
|
586
586
|
style: U,
|
|
587
|
-
isWithin:
|
|
587
|
+
isWithin: A
|
|
588
588
|
};
|
|
589
589
|
return X;
|
|
590
590
|
}
|
|
@@ -632,7 +632,7 @@ function xc(t, e, n) {
|
|
|
632
632
|
rn(T, function(N) {
|
|
633
633
|
if (zn(N) && (N = ml(N)), dl(N)) {
|
|
634
634
|
var U = l[I];
|
|
635
|
-
U ?
|
|
635
|
+
U ? Ar(N, U) : Ki(u, N), hn(N, n.classes.slide), _(N, we(a, vi));
|
|
636
636
|
}
|
|
637
637
|
}), a(Me);
|
|
638
638
|
}
|
|
@@ -646,7 +646,7 @@ function xc(t, e, n) {
|
|
|
646
646
|
}
|
|
647
647
|
function R(T) {
|
|
648
648
|
return d.filter(cl(T) ? T : function(I) {
|
|
649
|
-
return zn(T) ? ki(I.slide, T) :
|
|
649
|
+
return zn(T) ? ki(I.slide, T) : _r(ji(T), I.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function v(T, I, N) {
|
|
@@ -654,7 +654,7 @@ function xc(t, e, n) {
|
|
|
654
654
|
U.style(T, I, N);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function _(T, I) {
|
|
658
658
|
var N = Wr(T, "img"), U = N.length;
|
|
659
659
|
U ? N.forEach(function(st) {
|
|
660
660
|
r(st, "load error", function() {
|
|
@@ -695,7 +695,7 @@ function wc(t, e, n) {
|
|
|
695
695
|
}
|
|
696
696
|
function k(X) {
|
|
697
697
|
var j = tn(d);
|
|
698
|
-
(X || L.width !== j.width || L.height !== j.height) && (ln(x, "height", R()), p(l("marginRight"), Yn(n.gap)), p("width",
|
|
698
|
+
(X || L.width !== j.width || L.height !== j.height) && (ln(x, "height", R()), p(l("marginRight"), Yn(n.gap)), p("width", _()), p("height", V(), !0), L = j, r(Ro), $ !== ($ = A()) && ($n(d, Dl, $), r(tc, $)));
|
|
699
699
|
}
|
|
700
700
|
function E(X) {
|
|
701
701
|
var j = n.padding, H = l(X ? "right" : "left");
|
|
@@ -708,7 +708,7 @@ function wc(t, e, n) {
|
|
|
708
708
|
function v() {
|
|
709
709
|
return Yn(n.height || tn(b).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function _() {
|
|
712
712
|
return n.autoWidth ? null : Yn(n.fixedWidth) || (f ? "" : m());
|
|
713
713
|
}
|
|
714
714
|
function V() {
|
|
@@ -743,7 +743,7 @@ function wc(t, e, n) {
|
|
|
743
743
|
function B(X) {
|
|
744
744
|
return parseFloat(ln(x, l("padding" + (X ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function A() {
|
|
747
747
|
return t.is(Yi) || U(!0) > T();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
@@ -754,7 +754,7 @@ function wc(t, e, n) {
|
|
|
754
754
|
sliderSize: U,
|
|
755
755
|
totalSize: N,
|
|
756
756
|
getPadding: B,
|
|
757
|
-
isOverflow:
|
|
757
|
+
isOverflow: A
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
var $c = 2;
|
|
@@ -780,7 +780,7 @@ function Sc(t, e, n) {
|
|
|
780
780
|
fo(C, C);
|
|
781
781
|
fo(C.slice(-$), C.slice(0, $)).forEach(function(k, E) {
|
|
782
782
|
var R = E < $, v = f(k.slide, E);
|
|
783
|
-
R ?
|
|
783
|
+
R ? Ar(v, C[0].slide) : Ki(a.list, v), fo(l, v), r.register(v, E - $ + (R ? 0 : w), k.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -812,17 +812,17 @@ function Cc(t, e, n) {
|
|
|
812
812
|
e.Controller.isBusy() || (e.Scroll.cancel(), v(t.index), e.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function R(H, Y, it, rt) {
|
|
815
|
-
H !== Y && X(H > it) && (T(),
|
|
815
|
+
H !== Y && X(H > it) && (T(), _(m(U(), H > it), !0)), r(Ti), a(Pn, Y, it, H), w.start(Y, function() {
|
|
816
816
|
r(yi), a(Li, Y, it, H), rt && rt();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function v(H) {
|
|
820
|
-
|
|
820
|
+
_(N(H, !0));
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function _(H, Y) {
|
|
823
823
|
if (!t.is(Yi)) {
|
|
824
824
|
var it = Y ? H : V(H);
|
|
825
|
-
ln($, "transform", "translate" + p("X") + "(" + it + "px)"), H !== it && a(
|
|
825
|
+
ln($, "transform", "translate" + p("X") + "(" + it + "px)"), H !== it && a(_l);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function V(H) {
|
|
@@ -833,11 +833,11 @@ function Cc(t, e, n) {
|
|
|
833
833
|
return H;
|
|
834
834
|
}
|
|
835
835
|
function m(H, Y) {
|
|
836
|
-
var it = H -
|
|
836
|
+
var it = H - A(Y), rt = b();
|
|
837
837
|
return H -= f(rt * (Ni(Je(it) / rt) || 1)) * (Y ? 1 : -1), H;
|
|
838
838
|
}
|
|
839
839
|
function T() {
|
|
840
|
-
|
|
840
|
+
_(U(), !0), w.cancel();
|
|
841
841
|
}
|
|
842
842
|
function I(H) {
|
|
843
843
|
for (var Y = e.Slides.get(), it = 0, rt = 1 / 0, M = 0; M < Y.length; M++) {
|
|
@@ -864,7 +864,7 @@ function Cc(t, e, n) {
|
|
|
864
864
|
var Y = n.focus;
|
|
865
865
|
return Y === "center" ? (x() - l(H, !0)) / 2 : +Y * l(H) || 0;
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function A(H) {
|
|
868
868
|
return N(H ? e.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
870
|
function X(H) {
|
|
@@ -873,27 +873,27 @@ function Cc(t, e, n) {
|
|
|
873
873
|
}
|
|
874
874
|
function j(H, Y) {
|
|
875
875
|
Y = qi(Y) ? U() : Y;
|
|
876
|
-
var it = H !== !0 && f(Y) < f(
|
|
876
|
+
var it = H !== !0 && f(Y) < f(A(!1)), rt = H !== !1 && f(Y) > f(A(!0));
|
|
877
877
|
return it || rt;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
880
|
mount: k,
|
|
881
881
|
move: R,
|
|
882
882
|
jump: v,
|
|
883
|
-
translate:
|
|
883
|
+
translate: _,
|
|
884
884
|
shift: m,
|
|
885
885
|
cancel: T,
|
|
886
886
|
toIndex: I,
|
|
887
887
|
toPosition: N,
|
|
888
888
|
getPosition: U,
|
|
889
|
-
getLimit:
|
|
889
|
+
getLimit: A,
|
|
890
890
|
exceededLimit: j,
|
|
891
891
|
reposition: E
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Tc(t, e, n) {
|
|
895
895
|
var i = Ee(t), o = i.on, a = i.emit, r = e.Move, c = r.getPosition, l = r.getLimit, u = r.toPosition, d = e.Slides, x = d.isEnough, b = d.getLength, y = n.omitEnd, p = t.is(Ei), f = t.is(bi), L = we(U, !1), $ = we(U, !0), C = n.start || 0, w, k = C, E, R, v;
|
|
896
|
-
function
|
|
896
|
+
function _() {
|
|
897
897
|
V(), o([Xe, Me, Po], V), o(Ro, m);
|
|
898
898
|
}
|
|
899
899
|
function V() {
|
|
@@ -906,13 +906,13 @@ function Tc(t, e, n) {
|
|
|
906
906
|
}
|
|
907
907
|
function T(h, ot, yt) {
|
|
908
908
|
if (!at()) {
|
|
909
|
-
var vt = N(h), Bt =
|
|
909
|
+
var vt = N(h), Bt = A(vt);
|
|
910
910
|
Bt > -1 && (ot || Bt !== C) && (it(Bt), r.move(vt, Bt, k, yt));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function I(h, ot, yt, vt) {
|
|
914
914
|
e.Scroll.scroll(h, ot, yt, function() {
|
|
915
|
-
var Bt =
|
|
915
|
+
var Bt = A(r.toIndex(c()));
|
|
916
916
|
it(y ? Dn(Bt, w) : Bt), vt && vt();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
@@ -927,7 +927,7 @@ function Tc(t, e, n) {
|
|
|
927
927
|
}
|
|
928
928
|
function U(h, ot) {
|
|
929
929
|
var yt = R || (M() ? 1 : v), vt = st(C + yt * (h ? -1 : 1), C, !(R || M()));
|
|
930
|
-
return vt === -1 && f && !hl(c(), l(!h), 1) ? h ? 0 : w : ot ? vt :
|
|
930
|
+
return vt === -1 && f && !hl(c(), l(!h), 1) ? h ? 0 : w : ot ? vt : A(vt);
|
|
931
931
|
}
|
|
932
932
|
function st(h, ot, yt) {
|
|
933
933
|
if (x() || M()) {
|
|
@@ -943,7 +943,7 @@ function Tc(t, e, n) {
|
|
|
943
943
|
h < C ? --h : ++h;
|
|
944
944
|
return h;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function A(h) {
|
|
947
947
|
return p ? (h + E) % E || 0 : h;
|
|
948
948
|
}
|
|
949
949
|
function X() {
|
|
@@ -977,7 +977,7 @@ function Tc(t, e, n) {
|
|
|
977
977
|
return t.state.is([Ti, Vi]) && !!n.waitForTransition;
|
|
978
978
|
}
|
|
979
979
|
return {
|
|
980
|
-
mount:
|
|
980
|
+
mount: _,
|
|
981
981
|
go: T,
|
|
982
982
|
scroll: I,
|
|
983
983
|
getNext: L,
|
|
@@ -1013,13 +1013,13 @@ function Pc(t, e, n) {
|
|
|
1013
1013
|
i.destroy(), Sn(y, $), L ? (ii(x ? [p, f] : y), p = f = null) : fn([p, f], Vr);
|
|
1014
1014
|
}
|
|
1015
1015
|
function v() {
|
|
1016
|
-
o([jn, Li, Me, ri, Po], T), a(f, "click", we(
|
|
1016
|
+
o([jn, Li, Me, ri, Po], T), a(f, "click", we(_, ">")), a(p, "click", we(_, "<"));
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function _(I) {
|
|
1019
1019
|
d.go(I, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function V() {
|
|
1022
|
-
y = x || gi("div", c.arrows), p = m(!0), f = m(!1), L = !0, Ki(y, [p, f]), !x &&
|
|
1022
|
+
y = x || gi("div", c.arrows), p = m(!0), f = m(!1), L = !0, Ki(y, [p, f]), !x && Ar(y, b);
|
|
1023
1023
|
}
|
|
1024
1024
|
function m(I) {
|
|
1025
1025
|
var N = '<button class="' + c.arrow + " " + (I ? c.prev : c.next) + '" type="button"><svg xmlns="' + Lc + '" viewBox="0 0 ' + eo + " " + eo + '" width="' + eo + '" height="' + eo + '" focusable="false"><path d="' + (n.arrowPath || Ec) + '" />';
|
|
@@ -1039,7 +1039,7 @@ function Pc(t, e, n) {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
var Ic = kr + "-interval";
|
|
1042
|
-
function
|
|
1042
|
+
function _c(t, e, n) {
|
|
1043
1043
|
var i = Ee(t), o = i.on, a = i.bind, r = i.emit, c = Fo(n.interval, t.go.bind(t, ">"), v), l = c.isPaused, u = e.Elements, d = e.Elements, x = d.root, b = d.toggle, y = n.autoplay, p, f, L = y === "pause";
|
|
1044
1044
|
function $() {
|
|
1045
1045
|
y && (C(), b && Ut(b, Xi, u.track.id), L || w(), R());
|
|
@@ -1051,7 +1051,7 @@ function Ac(t, e, n) {
|
|
|
1051
1051
|
f = V.type === "focusin", E();
|
|
1052
1052
|
}), b && a(b, "click", function() {
|
|
1053
1053
|
L ? w() : k(!0);
|
|
1054
|
-
}), o([Pn, Mo, Me], c.rewind), o(Pn,
|
|
1054
|
+
}), o([Pn, Mo, Me], c.rewind), o(Pn, _);
|
|
1055
1055
|
}
|
|
1056
1056
|
function w() {
|
|
1057
1057
|
l() && e.Slides.isEnough() && (c.start(!n.resetProgress), f = p = L = !1, R(), r(Hr));
|
|
@@ -1069,7 +1069,7 @@ function Ac(t, e, n) {
|
|
|
1069
1069
|
var m = u.bar;
|
|
1070
1070
|
m && ln(m, "width", V * 100 + "%"), r(Pl, V);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function _(V) {
|
|
1073
1073
|
var m = e.Slides.getAt(V);
|
|
1074
1074
|
c.set(m && +sn(m.slide, Ic) || n.interval);
|
|
1075
1075
|
}
|
|
@@ -1081,7 +1081,7 @@ function Ac(t, e, n) {
|
|
|
1081
1081
|
isPaused: l
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Ac(t, e, n) {
|
|
1085
1085
|
var i = Ee(t), o = i.on;
|
|
1086
1086
|
function a() {
|
|
1087
1087
|
n.cover && (o(Br, we(c, !0)), o([jn, Xe, Me], we(r, !0)));
|
|
@@ -1106,20 +1106,20 @@ function Nc(t, e, n) {
|
|
|
1106
1106
|
function L() {
|
|
1107
1107
|
o(Pn, k), o([Xe, Me], E);
|
|
1108
1108
|
}
|
|
1109
|
-
function $(v,
|
|
1109
|
+
function $(v, _, V, m, T) {
|
|
1110
1110
|
var I = l();
|
|
1111
1111
|
if (k(), V && (!b || !d())) {
|
|
1112
1112
|
var N = e.Layout.sliderSize(), U = vr(v) * N * Eo(Je(v) / N) || 0;
|
|
1113
1113
|
v = c.toPosition(e.Controller.toDest(v % N)) + U;
|
|
1114
1114
|
}
|
|
1115
1115
|
var st = hl(I, v, 1);
|
|
1116
|
-
f = 1,
|
|
1116
|
+
f = 1, _ = st ? 0 : _ || Lo(Je(v - I) / Mc, Fc), p = m, y = Fo(_, C, we(w, I, v, T), 1), r(Vi), a(Mo), y.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function C() {
|
|
1119
1119
|
r(yi), p && p(), a(ri);
|
|
1120
1120
|
}
|
|
1121
|
-
function w(v,
|
|
1122
|
-
var T = l(), I = v + (
|
|
1121
|
+
function w(v, _, V, m) {
|
|
1122
|
+
var T = l(), I = v + (_ - v) * R(m), N = (I - T) * f;
|
|
1123
1123
|
x(T + N), b && !V && d() && (f *= Rc, Je(N) < Wc && $(u(d(!0)), kc, !1, p, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function k() {
|
|
@@ -1129,8 +1129,8 @@ function Nc(t, e, n) {
|
|
|
1129
1129
|
y && !y.isPaused() && (k(), C());
|
|
1130
1130
|
}
|
|
1131
1131
|
function R(v) {
|
|
1132
|
-
var
|
|
1133
|
-
return
|
|
1132
|
+
var _ = n.easingFunc;
|
|
1133
|
+
return _ ? _(v) : 1 - Math.pow(1 - v, 4);
|
|
1134
1134
|
}
|
|
1135
1135
|
return {
|
|
1136
1136
|
mount: L,
|
|
@@ -1144,9 +1144,9 @@ var ui = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function Hc(t, e, n) {
|
|
1147
|
-
var i = Ee(t), o = i.on, a = i.emit, r = i.bind, c = i.unbind, l = t.state, u = e.Move, d = e.Scroll, x = e.Controller, b = e.Elements.track, y = e.Media.reduce, p = e.Direction, f = p.resolve, L = p.orient, $ = u.getPosition, C = u.exceededLimit, w, k, E, R, v,
|
|
1147
|
+
var i = Ee(t), o = i.on, a = i.emit, r = i.bind, c = i.unbind, l = t.state, u = e.Move, d = e.Scroll, x = e.Controller, b = e.Elements.track, y = e.Media.reduce, p = e.Direction, f = p.resolve, L = p.orient, $ = u.getPosition, C = u.exceededLimit, w, k, E, R, v, _ = !1, V, m, T;
|
|
1148
1148
|
function I() {
|
|
1149
|
-
r(b, tr, fr, ui), r(b, er, fr, ui), r(b, Vl, U, ui), r(b, "click",
|
|
1149
|
+
r(b, tr, fr, ui), r(b, er, fr, ui), r(b, Vl, U, ui), r(b, "click", A, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), r(b, "dragstart", wn), o([jn, Xe], N);
|
|
1152
1152
|
}
|
|
@@ -1164,14 +1164,14 @@ function Hc(t, e, n) {
|
|
|
1164
1164
|
if (l.is(ho) || (l.set(ho), a(wl)), G.cancelable)
|
|
1165
1165
|
if (v) {
|
|
1166
1166
|
u.translate(w + yt(M(G)));
|
|
1167
|
-
var O = at(G) > ha, F =
|
|
1167
|
+
var O = at(G) > ha, F = _ !== (_ = C());
|
|
1168
1168
|
(O || F) && X(G), V = !0, a($l), wn(G);
|
|
1169
1169
|
} else Y(G) && (v = H(G), wn(G));
|
|
1170
1170
|
}
|
|
1171
1171
|
function B(G) {
|
|
1172
1172
|
l.is(ho) && (l.set(yi), a(Sl)), v && (j(G), wn(G)), c(T, tr, st), c(T, er, B), v = !1;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function A(G) {
|
|
1175
1175
|
!m && V && wn(G, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function X(G) {
|
|
@@ -1179,7 +1179,7 @@ function Hc(t, e, n) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function j(G) {
|
|
1181
1181
|
var O = it(G), F = rt(O), ht = n.rewind && n.rewindByDrag;
|
|
1182
|
-
y(!1), R ? x.scroll(F, 0, n.snap) : t.is(Yi) ? x.go(L(vr(O)) < 0 ? ht ? "<" : "-" : ht ? ">" : "+") : t.is(bi) &&
|
|
1182
|
+
y(!1), R ? x.scroll(F, 0, n.snap) : t.is(Yi) ? x.go(L(vr(O)) < 0 ? ht ? "<" : "-" : ht ? ">" : "+") : t.is(bi) && _ && ht ? x.go(C(!0) ? ">" : "<") : x.go(x.toDest(F), !0), y(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function H(G) {
|
|
1185
1185
|
var O = n.dragMinThreshold, F = Wi(O), ht = F && O.mouse || 0, Lt = (F ? O.touch : +O) || 10;
|
|
@@ -1189,7 +1189,7 @@ function Hc(t, e, n) {
|
|
|
1189
1189
|
return Je(M(G)) > Je(M(G, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function it(G) {
|
|
1192
|
-
if (t.is(Ei) || !
|
|
1192
|
+
if (t.is(Ei) || !_) {
|
|
1193
1193
|
var O = at(G);
|
|
1194
1194
|
if (O && O < ha)
|
|
1195
1195
|
return M(G) / O;
|
|
@@ -1212,7 +1212,7 @@ function Hc(t, e, n) {
|
|
|
1212
1212
|
return (Bt(G) ? G.changedTouches[0] : G)["page" + f(O ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function yt(G) {
|
|
1215
|
-
return G / (
|
|
1215
|
+
return G / (_ && t.is(bi) ? yc : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function vt(G) {
|
|
1218
1218
|
var O = n.noDrag;
|
|
@@ -1237,7 +1237,7 @@ var Oc = {
|
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
1238
|
Right: Oo,
|
|
1239
1239
|
Left: Ho,
|
|
1240
|
-
Up:
|
|
1240
|
+
Up: Al,
|
|
1241
1241
|
Down: Wl
|
|
1242
1242
|
};
|
|
1243
1243
|
function jr(t) {
|
|
@@ -1277,7 +1277,7 @@ function Bc(t, e, n) {
|
|
|
1277
1277
|
disable: p
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var _i = kr + "-lazy", vo = _i + "-srcset", zc = "[" + _i + "], [" + vo + "]";
|
|
1281
1281
|
function Dc(t, e, n) {
|
|
1282
1282
|
var i = Ee(t), o = i.on, a = i.off, r = i.bind, c = i.emit, l = n.lazyLoad === "sequential", u = [Li, ri], d = [];
|
|
1283
1283
|
function x() {
|
|
@@ -1289,10 +1289,10 @@ function Dc(t, e, n) {
|
|
|
1289
1289
|
function y() {
|
|
1290
1290
|
e.Slides.forEach(function(C) {
|
|
1291
1291
|
Wr(C.slide, zc).forEach(function(w) {
|
|
1292
|
-
var k = sn(w,
|
|
1292
|
+
var k = sn(w, _i), E = sn(w, vo);
|
|
1293
1293
|
if (k !== w.src || E !== w.srcset) {
|
|
1294
|
-
var R = n.classes.spinner, v = w.parentElement,
|
|
1295
|
-
d.push([w, C,
|
|
1294
|
+
var R = n.classes.spinner, v = w.parentElement, _ = Ui(v, "." + R) || gi("span", R, v);
|
|
1295
|
+
d.push([w, C, _]), w.src || Fi(w, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
@@ -1305,7 +1305,7 @@ function Dc(t, e, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function f(C) {
|
|
1307
1307
|
var w = C[0];
|
|
1308
|
-
hn(C[1].slide, $r), r(w, "load error", we(L, C)), Ut(w, "src", sn(w,
|
|
1308
|
+
hn(C[1].slide, $r), r(w, "load error", we(L, C)), Ut(w, "src", sn(w, _i)), Ut(w, "srcset", sn(w, vo)), fn(w, _i), fn(w, vo);
|
|
1309
1309
|
}
|
|
1310
1310
|
function L(C, w) {
|
|
1311
1311
|
var k = C[0], E = C[1];
|
|
@@ -1328,7 +1328,7 @@ function Vc(t, e, n) {
|
|
|
1328
1328
|
p && Fi(p, m ? "" : "none"), m && (o([Pn, Mo, ri], V), k(), V(), a(Ll, {
|
|
1329
1329
|
list: L,
|
|
1330
1330
|
items: f
|
|
1331
|
-
},
|
|
1331
|
+
}, _(t.index)));
|
|
1332
1332
|
}
|
|
1333
1333
|
function w() {
|
|
1334
1334
|
L && (ii(p ? qn(L.children) : L), Sn(L, $), En(f), L = null), i.destroy();
|
|
@@ -1337,15 +1337,15 @@ function Vc(t, e, n) {
|
|
|
1337
1337
|
var m = t.length, T = n.classes, I = n.i18n, N = n.perPage, U = d() ? u.getEnd() + 1 : Ni(m / N);
|
|
1338
1338
|
L = p || gi("ul", T.pagination, l.track.parentElement), hn(L, $ = Vo + "--" + v()), Ut(L, Cn, "tablist"), Ut(L, en, I.select), Ut(L, Dr, v() === Bo ? "vertical" : "");
|
|
1339
1339
|
for (var st = 0; st < U; st++) {
|
|
1340
|
-
var B = gi("li", null, L),
|
|
1340
|
+
var B = gi("li", null, L), A = gi("button", {
|
|
1341
1341
|
class: T.page,
|
|
1342
1342
|
type: "button"
|
|
1343
1343
|
}, B), X = c.getIn(st).map(function(H) {
|
|
1344
1344
|
return H.slide.id;
|
|
1345
1345
|
}), j = !d() && N > 1 ? I.pageX : I.slideX;
|
|
1346
|
-
r(
|
|
1346
|
+
r(A, "click", we(E, st)), n.paginationKeyboard && r(A, "keydown", we(R, st)), Ut(B, Cn, "presentation"), Ut(A, Cn, "tab"), Ut(A, Xi, X.join(" ")), Ut(A, en, br(j, st + 1)), Ut(A, hi, -1), f.push({
|
|
1347
1347
|
li: B,
|
|
1348
|
-
button:
|
|
1348
|
+
button: A,
|
|
1349
1349
|
page: st
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
@@ -1362,11 +1362,11 @@ function Vc(t, e, n) {
|
|
|
1362
1362
|
function v() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function _(m) {
|
|
1366
1366
|
return f[u.toPage(m)];
|
|
1367
1367
|
}
|
|
1368
1368
|
function V() {
|
|
1369
|
-
var m =
|
|
1369
|
+
var m = _(x(!0)), T = _(x());
|
|
1370
1370
|
if (m) {
|
|
1371
1371
|
var I = m.button;
|
|
1372
1372
|
Sn(I, oi), fn(I, da), Ut(I, hi, -1);
|
|
@@ -1384,7 +1384,7 @@ function Vc(t, e, n) {
|
|
|
1384
1384
|
items: f,
|
|
1385
1385
|
mount: C,
|
|
1386
1386
|
destroy: w,
|
|
1387
|
-
getAt:
|
|
1387
|
+
getAt: _,
|
|
1388
1388
|
update: V
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
@@ -1421,7 +1421,7 @@ function jc(t, e, n) {
|
|
|
1421
1421
|
t.go(p.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function y(p, f) {
|
|
1424
|
-
|
|
1424
|
+
_r(qc, jr(f)) && (b(p), wn(f));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: we(e.Media.set, {
|
|
@@ -1482,8 +1482,8 @@ var Xc = /* @__PURE__ */ Object.freeze({
|
|
|
1482
1482
|
Move: Cc,
|
|
1483
1483
|
Controller: Tc,
|
|
1484
1484
|
Arrows: Pc,
|
|
1485
|
-
Autoplay:
|
|
1486
|
-
Cover:
|
|
1485
|
+
Autoplay: _c,
|
|
1486
|
+
Cover: Ac,
|
|
1487
1487
|
Scroll: Nc,
|
|
1488
1488
|
Drag: Hc,
|
|
1489
1489
|
Keyboard: Bc,
|
|
@@ -1872,25 +1872,25 @@ const sd = "SvgImage-module__svg___q3xE-", cd = "SvgImage-module__img___VsTm-",
|
|
|
1872
1872
|
}
|
|
1873
1873
|
);
|
|
1874
1874
|
}, pd = {
|
|
1875
|
-
"top-left":
|
|
1876
|
-
"top-center":
|
|
1877
|
-
"top-right":
|
|
1878
|
-
"middle-left":
|
|
1879
|
-
"middle-center":
|
|
1880
|
-
"middle-right":
|
|
1881
|
-
"bottom-left":
|
|
1882
|
-
"bottom-center":
|
|
1883
|
-
"bottom-right":
|
|
1875
|
+
"top-left": _t.topLeftAlignment,
|
|
1876
|
+
"top-center": _t.topCenterAlignment,
|
|
1877
|
+
"top-right": _t.topRightAlignment,
|
|
1878
|
+
"middle-left": _t.middleLeftAlignment,
|
|
1879
|
+
"middle-center": _t.middleCenterAlignment,
|
|
1880
|
+
"middle-right": _t.middleRightAlignment,
|
|
1881
|
+
"bottom-left": _t.bottomLeftAlignment,
|
|
1882
|
+
"bottom-center": _t.bottomCenterAlignment,
|
|
1883
|
+
"bottom-right": _t.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
1886
|
-
const [o, a] = gt(null), { widthSettings: r, fontSettings: c, letterSpacing: l, textAlign: u, wordSpacing: d, fontSizeLineHeight: x, textAppearance: b, color: y } = n.imageCaption ?? {}, [p, f] = gt(void 0), [L, $] = gt(null), [C, w] = gt(0), [k, E] = gt(0), { direction: R, transition: v, controls:
|
|
1886
|
+
const [o, a] = gt(null), { widthSettings: r, fontSettings: c, letterSpacing: l, textAlign: u, wordSpacing: d, fontSizeLineHeight: x, textAppearance: b, color: y } = n.imageCaption ?? {}, [p, f] = gt(void 0), [L, $] = gt(null), [C, w] = gt(0), [k, E] = gt(0), { direction: R, transition: v, controls: _, pagination: V, imageCaption: m, triggers: T } = t, I = mt(v.type), { x: N, y: U } = t.controls.offset, st = (B) => {
|
|
1887
1887
|
o && o.go(B);
|
|
1888
1888
|
};
|
|
1889
1889
|
return Ot(() => {
|
|
1890
1890
|
if (!L) return;
|
|
1891
|
-
const B = new ResizeObserver((
|
|
1891
|
+
const B = new ResizeObserver((A) => {
|
|
1892
1892
|
if (!o) return;
|
|
1893
|
-
const [X] =
|
|
1893
|
+
const [X] = A;
|
|
1894
1894
|
f({
|
|
1895
1895
|
width: Math.round(X.contentRect.width),
|
|
1896
1896
|
height: Math.round(X.contentRect.height)
|
|
@@ -1899,10 +1899,10 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
1899
1899
|
return B.observe(L), () => B.unobserve(L);
|
|
1900
1900
|
}, [L]), Ot(() => {
|
|
1901
1901
|
!o || I.current === v.type || (E((B) => B + 1), I.current = v.type);
|
|
1902
|
-
}, [v.type]), /* @__PURE__ */ s("div", { className: Qt(
|
|
1902
|
+
}, [v.type]), /* @__PURE__ */ s("div", { className: Qt(_t.wrapper, { [_t.editor]: i }), ref: $, children: /* @__PURE__ */ z(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
1905
|
-
className:
|
|
1905
|
+
className: _t.sliderInner,
|
|
1906
1906
|
style: {
|
|
1907
1907
|
width: p ? p.width : "100%",
|
|
1908
1908
|
height: p ? p.height : "100%",
|
|
@@ -1912,17 +1912,17 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
1912
1912
|
t.imageCaption.isActive && /* @__PURE__ */ s(
|
|
1913
1913
|
"div",
|
|
1914
1914
|
{
|
|
1915
|
-
className: Qt(
|
|
1915
|
+
className: Qt(_t.captionBlock),
|
|
1916
1916
|
children: /* @__PURE__ */ s(
|
|
1917
1917
|
"div",
|
|
1918
1918
|
{
|
|
1919
|
-
className:
|
|
1920
|
-
children: e.map((B,
|
|
1919
|
+
className: _t.captionTextWrapper,
|
|
1920
|
+
children: e.map((B, A) => /* @__PURE__ */ s(
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
|
-
className: Qt(
|
|
1924
|
-
[
|
|
1925
|
-
[
|
|
1923
|
+
className: Qt(_t.captionText, pd[m.alignment], {
|
|
1924
|
+
[_t.withPointerEvents]: A === C && i,
|
|
1925
|
+
[_t.active]: A === C
|
|
1926
1926
|
}),
|
|
1927
1927
|
style: {
|
|
1928
1928
|
fontFamily: qo(c.fontFamily),
|
|
@@ -1944,7 +1944,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
1944
1944
|
"div",
|
|
1945
1945
|
{
|
|
1946
1946
|
"data-styles": "imageCaption",
|
|
1947
|
-
className:
|
|
1947
|
+
className: _t.captionTextInner,
|
|
1948
1948
|
style: {
|
|
1949
1949
|
"--link-hover-color": m.linkHoverColor,
|
|
1950
1950
|
"--link-color": m.linkColor,
|
|
@@ -1956,7 +1956,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
)
|
|
1958
1958
|
},
|
|
1959
|
-
|
|
1959
|
+
A
|
|
1960
1960
|
))
|
|
1961
1961
|
}
|
|
1962
1962
|
)
|
|
@@ -1985,20 +1985,20 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
1985
1985
|
type: v.type === "fade in" ? "fade" : "loop",
|
|
1986
1986
|
rewind: !0
|
|
1987
1987
|
},
|
|
1988
|
-
children: e.map((B,
|
|
1988
|
+
children: e.map((B, A) => /* @__PURE__ */ s(Xr, { children: /* @__PURE__ */ s(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
1991
|
-
className:
|
|
1991
|
+
className: _t.sliderItem,
|
|
1992
1992
|
children: /* @__PURE__ */ s(
|
|
1993
1993
|
"div",
|
|
1994
1994
|
{
|
|
1995
|
-
className:
|
|
1995
|
+
className: _t.imgWrapper,
|
|
1996
1996
|
children: /* @__PURE__ */ s(
|
|
1997
1997
|
"img",
|
|
1998
1998
|
{
|
|
1999
|
-
className: Qt(
|
|
2000
|
-
[
|
|
2001
|
-
[
|
|
1999
|
+
className: Qt(_t.sliderImage, {
|
|
2000
|
+
[_t.contain]: B.image.objectFit === "contain",
|
|
2001
|
+
[_t.cover]: B.image.objectFit === "cover"
|
|
2002
2002
|
}),
|
|
2003
2003
|
src: B.image.url,
|
|
2004
2004
|
alt: B.image.name ?? ""
|
|
@@ -2007,21 +2007,21 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
2007
2007
|
}
|
|
2008
2008
|
)
|
|
2009
2009
|
}
|
|
2010
|
-
) },
|
|
2010
|
+
) }, A))
|
|
2011
2011
|
},
|
|
2012
2012
|
k
|
|
2013
2013
|
),
|
|
2014
|
-
|
|
2014
|
+
_.isActive && /* @__PURE__ */ z(ie, { children: [
|
|
2015
2015
|
/* @__PURE__ */ s(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
|
-
className: Qt(
|
|
2019
|
-
[
|
|
2020
|
-
[
|
|
2018
|
+
className: Qt(_t.arrow, {
|
|
2019
|
+
[_t.arrowVertical]: R === "vert",
|
|
2020
|
+
[_t.hoverArrow]: _.show === "on hover"
|
|
2021
2021
|
}),
|
|
2022
2022
|
style: {
|
|
2023
|
-
color:
|
|
2024
|
-
"--arrow-hover-color":
|
|
2023
|
+
color: _.color,
|
|
2024
|
+
"--arrow-hover-color": _.hover
|
|
2025
2025
|
},
|
|
2026
2026
|
children: /* @__PURE__ */ z(
|
|
2027
2027
|
"button",
|
|
@@ -2029,21 +2029,21 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
2029
2029
|
onClick: () => {
|
|
2030
2030
|
st("-1");
|
|
2031
2031
|
},
|
|
2032
|
-
className:
|
|
2032
|
+
className: _t.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
2034
|
transform: `translate(${W(N, i)}, ${W(U * (R === "horiz" ? 1 : -1), i)}) scale(${t.controls.scale / 100}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
2036
2036
|
children: [
|
|
2037
|
-
|
|
2037
|
+
_.arrowsImgUrl && /* @__PURE__ */ s(
|
|
2038
2038
|
cn,
|
|
2039
2039
|
{
|
|
2040
|
-
url:
|
|
2041
|
-
fill:
|
|
2042
|
-
hoverFill:
|
|
2043
|
-
className: Qt(
|
|
2040
|
+
url: _.arrowsImgUrl,
|
|
2041
|
+
fill: _.color,
|
|
2042
|
+
hoverFill: _.hover,
|
|
2043
|
+
className: Qt(_t.arrowImg, _t.mirror)
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
2046
|
-
!
|
|
2046
|
+
!_.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: _.color, className: Qt(_t.arrowIcon, _t.arrowImg, _t.mirror) })
|
|
2047
2047
|
]
|
|
2048
2048
|
}
|
|
2049
2049
|
)
|
|
@@ -2052,33 +2052,33 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
2052
2052
|
/* @__PURE__ */ s(
|
|
2053
2053
|
"div",
|
|
2054
2054
|
{
|
|
2055
|
-
className: Qt(
|
|
2056
|
-
[
|
|
2057
|
-
[
|
|
2055
|
+
className: Qt(_t.arrow, _t.nextArrow, {
|
|
2056
|
+
[_t.arrowVertical]: R === "vert",
|
|
2057
|
+
[_t.hoverArrow]: _.show === "on hover"
|
|
2058
2058
|
}),
|
|
2059
2059
|
style: {
|
|
2060
|
-
color:
|
|
2061
|
-
"--arrow-hover-color":
|
|
2060
|
+
color: _.color,
|
|
2061
|
+
"--arrow-hover-color": _.hover
|
|
2062
2062
|
},
|
|
2063
2063
|
children: /* @__PURE__ */ z(
|
|
2064
2064
|
"button",
|
|
2065
2065
|
{
|
|
2066
|
-
className:
|
|
2066
|
+
className: _t.arrowInner,
|
|
2067
2067
|
onClick: () => st("+1"),
|
|
2068
2068
|
style: {
|
|
2069
2069
|
transform: `translate(${W(N * (R === "horiz" ? -1 : 1), i)}, ${W(U, i)}) scale(${t.controls.scale / 100}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
|
|
2070
2070
|
},
|
|
2071
2071
|
children: [
|
|
2072
|
-
|
|
2072
|
+
_.arrowsImgUrl && /* @__PURE__ */ s(
|
|
2073
2073
|
cn,
|
|
2074
2074
|
{
|
|
2075
|
-
url:
|
|
2076
|
-
fill:
|
|
2077
|
-
hoverFill:
|
|
2078
|
-
className:
|
|
2075
|
+
url: _.arrowsImgUrl,
|
|
2076
|
+
fill: _.color,
|
|
2077
|
+
hoverFill: _.hover,
|
|
2078
|
+
className: _t.arrowImg
|
|
2079
2079
|
}
|
|
2080
2080
|
),
|
|
2081
|
-
!
|
|
2081
|
+
!_.arrowsImgUrl && /* @__PURE__ */ s(ba, { color: _.color, className: Qt(_t.arrowIcon, _t.arrowImg) })
|
|
2082
2082
|
]
|
|
2083
2083
|
}
|
|
2084
2084
|
)
|
|
@@ -2088,7 +2088,7 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
2088
2088
|
T.triggersList.click && /* @__PURE__ */ s(
|
|
2089
2089
|
"div",
|
|
2090
2090
|
{
|
|
2091
|
-
className:
|
|
2091
|
+
className: _t.clickOverlay,
|
|
2092
2092
|
onClick: () => {
|
|
2093
2093
|
o && o.go("+1");
|
|
2094
2094
|
}
|
|
@@ -2097,46 +2097,46 @@ function md({ settings: t, content: e, styles: n, isEditor: i }) {
|
|
|
2097
2097
|
V.isActive && /* @__PURE__ */ s(
|
|
2098
2098
|
"div",
|
|
2099
2099
|
{
|
|
2100
|
-
className: Qt(
|
|
2101
|
-
[
|
|
2102
|
-
[
|
|
2103
|
-
[
|
|
2104
|
-
[
|
|
2105
|
-
[
|
|
2106
|
-
[
|
|
2107
|
-
[
|
|
2108
|
-
[
|
|
2109
|
-
[
|
|
2100
|
+
className: Qt(_t.pagination, {
|
|
2101
|
+
[_t.paginationInsideBottom]: V.position === "inside-1" && R === "horiz",
|
|
2102
|
+
[_t.paginationInsideTop]: V.position === "inside-2" && R === "horiz",
|
|
2103
|
+
[_t.paginationOutsideBottom]: V.position === "outside-1" && R === "horiz",
|
|
2104
|
+
[_t.paginationOutsideTop]: V.position === "outside-2" && R === "horiz",
|
|
2105
|
+
[_t.paginationInsideLeft]: V.position === "inside-1" && R === "vert",
|
|
2106
|
+
[_t.paginationInsideRight]: V.position === "inside-2" && R === "vert",
|
|
2107
|
+
[_t.paginationOutsideLeft]: V.position === "outside-1" && R === "vert",
|
|
2108
|
+
[_t.paginationOutsideRight]: V.position === "outside-2" && R === "vert",
|
|
2109
|
+
[_t.paginationVertical]: R === "vert"
|
|
2110
2110
|
}),
|
|
2111
2111
|
children: /* @__PURE__ */ s(
|
|
2112
2112
|
"div",
|
|
2113
2113
|
{
|
|
2114
|
-
className:
|
|
2114
|
+
className: _t.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
backgroundColor: V.colors[2],
|
|
2117
2117
|
transform: `scale(${V.scale / 100}) translate(${W(V.offset.x, i)}, ${W(V.offset.y, i)}) rotate(${R === "horiz" ? "0deg" : "90deg"})`
|
|
2118
2118
|
},
|
|
2119
|
-
children: e.map((B,
|
|
2119
|
+
children: e.map((B, A) => /* @__PURE__ */ s(
|
|
2120
2120
|
"button",
|
|
2121
2121
|
{
|
|
2122
2122
|
onClick: () => {
|
|
2123
|
-
o && o.go(
|
|
2123
|
+
o && o.go(A);
|
|
2124
2124
|
},
|
|
2125
|
-
className: Qt(
|
|
2125
|
+
className: Qt(_t.paginationItem),
|
|
2126
2126
|
children: /* @__PURE__ */ s(
|
|
2127
2127
|
"div",
|
|
2128
2128
|
{
|
|
2129
|
-
className: Qt(
|
|
2130
|
-
[
|
|
2129
|
+
className: Qt(_t.dot, {
|
|
2130
|
+
[_t.activeDot]: A === C
|
|
2131
2131
|
}),
|
|
2132
2132
|
style: {
|
|
2133
|
-
backgroundColor:
|
|
2133
|
+
backgroundColor: A === C ? V.colors[0] : V.colors[1],
|
|
2134
2134
|
"--pagination-hover-color": V.hover
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
)
|
|
2138
2138
|
},
|
|
2139
|
-
|
|
2139
|
+
A
|
|
2140
2140
|
))
|
|
2141
2141
|
}
|
|
2142
2142
|
)
|
|
@@ -2803,12 +2803,12 @@ async function bd(t, e, n, i) {
|
|
|
2803
2803
|
return { width: o, height: a, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function xd({ settings: t, content: e, isEditor: n }) {
|
|
2806
|
-
const [i, o] = gt(null), [a, r] = gt([]), [c, l] = gt(0), u = mt(0), [d, x] = gt({ x: 0, y: 0 }), [b, y] = gt(1), [p, f] = gt("none"), L = mt({ x: 0, y: 0 }), [$, C] = gt(!1), { sizeType: w, imageWidth: k, randomRangeImageWidth: E } = t.imageSize, { revealPosition: R, visible: v } = t.position, { cursorType:
|
|
2806
|
+
const [i, o] = gt(null), [a, r] = gt([]), [c, l] = gt(0), u = mt(0), [d, x] = gt({ x: 0, y: 0 }), [b, y] = gt(1), [p, f] = gt("none"), L = mt({ x: 0, y: 0 }), [$, C] = gt(!1), { sizeType: w, imageWidth: k, randomRangeImageWidth: E } = t.imageSize, { revealPosition: R, visible: v } = t.position, { cursorType: _, target: V, defaultCursorScale: m, defaultCursor: T, hoverCursorScale: I, hoverCursor: N } = t.cursor;
|
|
2807
2807
|
Ot(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
2809
|
const B = (j, H) => {
|
|
2810
2810
|
const Y = i.getBoundingClientRect(), it = j - Y.left, rt = H - Y.top;
|
|
2811
|
-
if (x({ x: it, y: rt }),
|
|
2811
|
+
if (x({ x: it, y: rt }), _ === "system") {
|
|
2812
2812
|
f("none"), y(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
@@ -2819,19 +2819,19 @@ function xd({ settings: t, content: e, isEditor: n }) {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
const ot = xa(M, at, a) || V === "area" ? { img: N ?? "none", scale: I } : { img: T ?? "none", scale: m };
|
|
2821
2821
|
f(ot.img), y(ot.scale);
|
|
2822
|
-
},
|
|
2822
|
+
}, A = (j) => {
|
|
2823
2823
|
j.stopPropagation(), L.current = { x: j.clientX, y: j.clientY }, B(j.clientX, j.clientY);
|
|
2824
2824
|
}, X = () => {
|
|
2825
2825
|
$ && B(L.current.x, L.current.y);
|
|
2826
2826
|
};
|
|
2827
|
-
return i.addEventListener("mousemove",
|
|
2828
|
-
i.removeEventListener("mousemove",
|
|
2827
|
+
return i.addEventListener("mousemove", A), window.addEventListener("scroll", X, !0), () => {
|
|
2828
|
+
i.removeEventListener("mousemove", A), window.removeEventListener("scroll", X, !0);
|
|
2829
2829
|
};
|
|
2830
2830
|
}, [
|
|
2831
2831
|
i,
|
|
2832
2832
|
$,
|
|
2833
2833
|
d,
|
|
2834
|
-
|
|
2834
|
+
_,
|
|
2835
2835
|
V,
|
|
2836
2836
|
N,
|
|
2837
2837
|
T,
|
|
@@ -2841,7 +2841,7 @@ function xd({ settings: t, content: e, isEditor: n }) {
|
|
|
2841
2841
|
]), Ot(() => {
|
|
2842
2842
|
$ || (f("none"), y(0));
|
|
2843
2843
|
}, [$]);
|
|
2844
|
-
const U = async (B,
|
|
2844
|
+
const U = async (B, A, X, j = {}) => {
|
|
2845
2845
|
const { width: H, height: Y, finalWidth: it } = await bd(
|
|
2846
2846
|
B.image.url,
|
|
2847
2847
|
w,
|
|
@@ -2849,8 +2849,8 @@ function xd({ settings: t, content: e, isEditor: n }) {
|
|
|
2849
2849
|
E
|
|
2850
2850
|
);
|
|
2851
2851
|
let rt = 0, M = 0;
|
|
2852
|
-
R === "same" ? (rt =
|
|
2853
|
-
const at = Math.min(Math.max(rt, H / 2),
|
|
2852
|
+
R === "same" ? (rt = A / 2, M = X / 2) : (rt = j.x ?? Math.random() * A, M = j.y ?? Math.random() * X);
|
|
2853
|
+
const at = Math.min(Math.max(rt, H / 2), A - H / 2), h = Math.min(Math.max(M, Y / 2), X - Y / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: u.current++,
|
|
2856
2856
|
url: B.image.url,
|
|
@@ -2863,9 +2863,9 @@ function xd({ settings: t, content: e, isEditor: n }) {
|
|
|
2863
2863
|
};
|
|
2864
2864
|
return Ot(() => {
|
|
2865
2865
|
if (!i || e.length === 0) return;
|
|
2866
|
-
const B = i.getBoundingClientRect(),
|
|
2866
|
+
const B = i.getBoundingClientRect(), A = B.width, X = B.height, j = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const Y = e[0], it = await U(Y,
|
|
2868
|
+
const Y = e[0], it = await U(Y, A, X);
|
|
2869
2869
|
j.push(it), r(j), l(1);
|
|
2870
2870
|
})();
|
|
2871
2871
|
}, [w, k, E, R, i]), Ot(() => {
|
|
@@ -2876,11 +2876,11 @@ function xd({ settings: t, content: e, isEditor: n }) {
|
|
|
2876
2876
|
ref: o,
|
|
2877
2877
|
onClick: async (B) => {
|
|
2878
2878
|
if (!i) return;
|
|
2879
|
-
const
|
|
2879
|
+
const A = i.getBoundingClientRect(), X = B.clientX - A.left, j = B.clientY - A.top;
|
|
2880
2880
|
if (V === "image" && !xa(X, j, a)) return;
|
|
2881
2881
|
let H = 0, Y = 0;
|
|
2882
|
-
R === "on Click" ? (H = X, Y = j) : R === "same" ? (H =
|
|
2883
|
-
const it = e[c], rt = await U(it,
|
|
2882
|
+
R === "on Click" ? (H = X, Y = j) : R === "same" ? (H = A.width / 2, Y = A.height / 2) : (H = Math.random() * A.width, Y = Math.random() * A.height);
|
|
2883
|
+
const it = e[c], rt = await U(it, A.width, A.height, { x: H, y: Y });
|
|
2884
2884
|
r((M) => v === "all" ? [...M, rt] : [rt]), l((M) => M >= e.length - 1 ? 0 : M + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => C(!0),
|
|
@@ -3265,7 +3265,7 @@ const wd = {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
}, $d = "LightBox-module__hidden___9s-9x", Sd = "LightBox-module__heroImage___sTxNF", Cd = "LightBox-module__background___rm9ml", Td = "LightBox-module__editor___4ACaY", Ld = "LightBox-module__contentStyle___Bgnsq", Ed = "LightBox-module__imageStyle___tLIlB", Pd = "LightBox-module__imgWrapper___LuFUp", Id = "LightBox-module__contain___8-yaS",
|
|
3268
|
+
}, $d = "LightBox-module__hidden___9s-9x", Sd = "LightBox-module__heroImage___sTxNF", Cd = "LightBox-module__background___rm9ml", Td = "LightBox-module__editor___4ACaY", Ld = "LightBox-module__contentStyle___Bgnsq", Ed = "LightBox-module__imageStyle___tLIlB", Pd = "LightBox-module__imgWrapper___LuFUp", Id = "LightBox-module__contain___8-yaS", _d = "LightBox-module__cover___hNvOG", Ad = "LightBox-module__caption___b6L2I", Wd = "LightBox-module__captionTextInner___rCGNH", kd = "LightBox-module__lightboxSplide___XFuWC", Rd = "LightBox-module__arrow___iz38X", Md = "LightBox-module__arrowVertical___Zfz81", Fd = "LightBox-module__nextArrow___zkAQN", Nd = "LightBox-module__arrowInner___p48sW", Hd = "LightBox-module__arrowIcon___3VaFf", Od = "LightBox-module__arrowImg___pNV88", Bd = "LightBox-module__mirror___pjeXc", zd = "LightBox-module__thumbsWrapper___GB-nU", Dd = "LightBox-module__thumbsContainerVertical___wttk5", Vd = "LightBox-module__thumbsContainer___osSma", qd = "LightBox-module__thumbsAlignStart___MO6tY", jd = "LightBox-module__thumbsAlignCenter___Q4sUx", Kd = "LightBox-module__thumbsAlignEnd___p4y9R", Ud = "LightBox-module__thumbItem___HvnF3", Gd = "LightBox-module__closeButton___g2khP", Xd = "LightBox-module__fadeIn___0m5GW", Yd = "LightBox-module__slideInLeft___gPYwC", Jd = "LightBox-module__slideInRight___S-pPp", Zd = "LightBox-module__slideInTop___DFdAj", Qd = "LightBox-module__slideInBottom___m27kZ", tu = "LightBox-module__fadeOut___55qBR", eu = "LightBox-module__slideOutLeft___NvU7P", nu = "LightBox-module__slideOutRight___SK7eC", iu = "LightBox-module__slideOutTop___Vgg0z", ou = "LightBox-module__slideOutBottom___nJ0Ef", ru = "LightBox-module__scaleSlide___vZriG", pt = {
|
|
3269
3269
|
hidden: $d,
|
|
3270
3270
|
heroImage: Sd,
|
|
3271
3271
|
background: Cd,
|
|
@@ -3274,8 +3274,8 @@ const wd = {
|
|
|
3274
3274
|
imageStyle: Ed,
|
|
3275
3275
|
imgWrapper: Pd,
|
|
3276
3276
|
contain: Id,
|
|
3277
|
-
cover:
|
|
3278
|
-
caption:
|
|
3277
|
+
cover: _d,
|
|
3278
|
+
caption: Ad,
|
|
3279
3279
|
captionTextInner: Wd,
|
|
3280
3280
|
lightboxSplide: kd,
|
|
3281
3281
|
arrow: Rd,
|
|
@@ -3448,7 +3448,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, su = ({ isOpen: t, onClose: e, content: n, lightboxStyles: i, settings: o, portalId: a, isEditor: r, metadata: c }) => {
|
|
3450
3450
|
var Dt;
|
|
3451
|
-
const { widthSettings: l, fontSettings: u, letterSpacing: d, textAlign: x, wordSpacing: b, fontSizeLineHeight: y, textAppearance: p, color: f } = i.imageCaption ?? {}, [L, $] = gt(0), [C, w] = gt(0), [k, E] = gt(!1), [R, v] = gt(!1), [
|
|
3451
|
+
const { widthSettings: l, fontSettings: u, letterSpacing: d, textAlign: x, wordSpacing: b, fontSizeLineHeight: y, textAppearance: p, color: f } = i.imageCaption ?? {}, [L, $] = gt(0), [C, w] = gt(0), [k, E] = gt(!1), [R, v] = gt(!1), [_, V] = gt({}), m = mt(null), T = mt(null), I = mt(null), N = mt(!1), U = mt(null), st = mt(null), B = mt(null), A = mt(null), X = mt(!1), j = mt(null), [H, Y] = gt(!1), { appear: it, triggers: rt, slider: M, thumbnail: at, controls: h, area: ot, caption: yt, layout: vt } = o.lightboxBlock, { appearClass: Bt, backdropAppearClass: Z, backdropDisappearClass: ct, disappearClass: G } = au(it.type, it.direction), O = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
Ot(() => {
|
|
3453
3453
|
const D = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
@@ -3474,7 +3474,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3474
3474
|
ut();
|
|
3475
3475
|
const P = new ResizeObserver(ut);
|
|
3476
3476
|
return P.observe(D), () => P.disconnect();
|
|
3477
|
-
}, [t, at.isActive, n.length,
|
|
3477
|
+
}, [t, at.isActive, n.length, _, M.direction]);
|
|
3478
3478
|
const F = Wt(() => {
|
|
3479
3479
|
const D = window.matchMedia("(max-width: 768px)").matches, ut = Sa(ot.color);
|
|
3480
3480
|
D && !r && ut > 0.9 && (document.body.style.backgroundColor = ""), E(!0), N.current = !0;
|
|
@@ -3488,9 +3488,9 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3488
3488
|
if (rt.type === "click" && rt.switch === "image")
|
|
3489
3489
|
rt.repeat === "close" && L === n.length - 1 ? F() : (J = m.current) == null || J.go("+1");
|
|
3490
3490
|
else if (rt.type === "click" && rt.switch === "50/50") {
|
|
3491
|
-
const tt = D.getBoundingClientRect(), ft = ut - tt.left, St = P - tt.top, Xt = tt.width,
|
|
3491
|
+
const tt = D.getBoundingClientRect(), ft = ut - tt.left, St = P - tt.top, Xt = tt.width, At = tt.height;
|
|
3492
3492
|
let Mt;
|
|
3493
|
-
M.direction === "horiz" ? Mt = ft < Xt / 2 ? "-1" : "+1" : Mt = St <
|
|
3493
|
+
M.direction === "horiz" ? Mt = ft < Xt / 2 ? "-1" : "+1" : Mt = St < At / 2 ? "-1" : "+1", (q = m.current) == null || q.go(Mt);
|
|
3494
3494
|
}
|
|
3495
3495
|
}
|
|
3496
3496
|
}, Lt = (D) => {
|
|
@@ -3589,19 +3589,19 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3589
3589
|
const tt = n[L], ft = (tt == null ? void 0 : tt.image.objectFit) === "cover", St = ut.changedTouches[0];
|
|
3590
3590
|
let Xt;
|
|
3591
3591
|
if (ft && I.current) {
|
|
3592
|
-
const
|
|
3593
|
-
Xt = St.clientX >=
|
|
3592
|
+
const At = $a(I.current);
|
|
3593
|
+
Xt = St.clientX >= At.left && St.clientX <= At.right && St.clientY >= At.top && St.clientY <= At.bottom;
|
|
3594
3594
|
} else {
|
|
3595
|
-
const
|
|
3596
|
-
if (!
|
|
3597
|
-
Xt = St.clientX >=
|
|
3595
|
+
const At = I.current ? wa(I.current) : null;
|
|
3596
|
+
if (!At) return;
|
|
3597
|
+
Xt = St.clientX >= At.x && St.clientX <= At.x + At.width && St.clientY >= At.y && St.clientY <= At.y + At.height;
|
|
3598
3598
|
}
|
|
3599
3599
|
if (!Xt) {
|
|
3600
3600
|
ut.stopPropagation(), N.current = !0;
|
|
3601
|
-
const
|
|
3602
|
-
Mt.stopPropagation(), Mt.preventDefault(), document.removeEventListener("click",
|
|
3601
|
+
const At = (Mt) => {
|
|
3602
|
+
Mt.stopPropagation(), Mt.preventDefault(), document.removeEventListener("click", At, !0);
|
|
3603
3603
|
};
|
|
3604
|
-
document.addEventListener("click",
|
|
3604
|
+
document.addEventListener("click", At, !0), F();
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
@@ -3615,25 +3615,25 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3615
3615
|
var Mt, Jt;
|
|
3616
3616
|
if (!t || !Rt || !((Jt = (Mt = m.current) == null ? void 0 : Mt.splide) != null && Jt.root)) return;
|
|
3617
3617
|
const D = m.current.splide.root, ut = 30, P = (dt, Nt) => {
|
|
3618
|
-
if (
|
|
3619
|
-
const Gt = Math.abs(dt -
|
|
3618
|
+
if (A.current) {
|
|
3619
|
+
const Gt = Math.abs(dt - A.current.x), Pt = Math.abs(Nt - A.current.y);
|
|
3620
3620
|
(Gt > 0 || Pt > 0) && (X.current = !0);
|
|
3621
3621
|
}
|
|
3622
3622
|
}, J = (dt) => {
|
|
3623
|
-
|
|
3623
|
+
A.current && (dt.preventDefault(), P(dt.clientX, dt.clientY));
|
|
3624
3624
|
}, q = (dt) => {
|
|
3625
|
-
|
|
3625
|
+
A.current && dt.touches.length > 0 && (dt.preventDefault(), P(dt.touches[0].clientX, dt.touches[0].clientY));
|
|
3626
3626
|
}, tt = (dt, Nt) => {
|
|
3627
|
-
if (!
|
|
3628
|
-
|
|
3627
|
+
if (!A.current || !m.current) {
|
|
3628
|
+
A.current = null;
|
|
3629
3629
|
return;
|
|
3630
3630
|
}
|
|
3631
|
-
const Gt = Math.abs(dt -
|
|
3632
|
-
Pt > ut && Pt > Gt && m.current.go(Nt <
|
|
3631
|
+
const Gt = Math.abs(dt - A.current.x), Pt = Math.abs(Nt - A.current.y);
|
|
3632
|
+
Pt > ut && Pt > Gt && m.current.go(Nt < A.current.y ? "+1" : "-1"), A.current = null;
|
|
3633
3633
|
}, ft = (dt) => {
|
|
3634
|
-
|
|
3634
|
+
A.current && tt(dt.clientX, dt.clientY), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("pointermove", J);
|
|
3635
3635
|
}, St = (dt) => {
|
|
3636
|
-
if (
|
|
3636
|
+
if (A.current) {
|
|
3637
3637
|
if (dt.changedTouches.length > 0) {
|
|
3638
3638
|
const Nt = dt.changedTouches[0];
|
|
3639
3639
|
tt(Nt.clientX, Nt.clientY);
|
|
@@ -3641,12 +3641,12 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3641
3641
|
document.removeEventListener("touchend", St), document.removeEventListener("touchcancel", St), document.removeEventListener("touchmove", q);
|
|
3642
3642
|
}
|
|
3643
3643
|
}, Xt = (dt) => {
|
|
3644
|
-
|
|
3645
|
-
},
|
|
3646
|
-
dt.touches.length > 0 && (
|
|
3644
|
+
A.current = { x: dt.clientX, y: dt.clientY }, X.current = !1, document.addEventListener("pointermove", J, { passive: !1 }), document.addEventListener("pointerup", ft), document.addEventListener("pointercancel", ft);
|
|
3645
|
+
}, At = (dt) => {
|
|
3646
|
+
dt.touches.length > 0 && (A.current = { x: dt.touches[0].clientX, y: dt.touches[0].clientY }, X.current = !1, document.addEventListener("touchmove", q, { passive: !1 }), document.addEventListener("touchend", St), document.addEventListener("touchcancel", St));
|
|
3647
3647
|
};
|
|
3648
|
-
return D.addEventListener("pointerdown", Xt), D.addEventListener("touchstart",
|
|
3649
|
-
D.removeEventListener("pointerdown", Xt), D.removeEventListener("touchstart",
|
|
3648
|
+
return D.addEventListener("pointerdown", Xt), D.addEventListener("touchstart", At), () => {
|
|
3649
|
+
D.removeEventListener("pointerdown", Xt), D.removeEventListener("touchstart", At), document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", ft), document.removeEventListener("pointercancel", ft), document.removeEventListener("touchmove", q), document.removeEventListener("touchend", St), document.removeEventListener("touchcancel", St), A.current = null, X.current = !1;
|
|
3650
3650
|
};
|
|
3651
3651
|
}, [t, Rt, C]);
|
|
3652
3652
|
const Et = {
|
|
@@ -3881,7 +3881,7 @@ const lu = ({ settings: t, content: e, styles: n, portalId: i, activeEvent: o, i
|
|
|
3881
3881
|
justifyContent: H ? "flex-start" : q()
|
|
3882
3882
|
},
|
|
3883
3883
|
children: n.map((tt, ft) => {
|
|
3884
|
-
const St = ft === L, Xt =
|
|
3884
|
+
const St = ft === L, Xt = _[ft], Mt = at.grid.size * (St ? at.activeState.scale : 1), Jt = () => {
|
|
3885
3885
|
if (at.fit !== "fit") return {};
|
|
3886
3886
|
if (!Xt)
|
|
3887
3887
|
return M.direction === "horiz" ? { height: W(Mt, r) } : { width: W(Mt, r) };
|
|
@@ -5215,7 +5215,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5215
5215
|
inputPadding: E,
|
|
5216
5216
|
inputColor: R,
|
|
5217
5217
|
inputTextColor: v,
|
|
5218
|
-
inputBorderColor:
|
|
5218
|
+
inputBorderColor: _,
|
|
5219
5219
|
placeholderColor: V,
|
|
5220
5220
|
buttonColor: m,
|
|
5221
5221
|
buttonTextColor: T,
|
|
@@ -5224,7 +5224,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5224
5224
|
successColor: U,
|
|
5225
5225
|
errorColor: st,
|
|
5226
5226
|
fontFamily: B,
|
|
5227
|
-
inputFontSettings:
|
|
5227
|
+
inputFontSettings: A,
|
|
5228
5228
|
inputFontSize: X,
|
|
5229
5229
|
inputLineHeight: j,
|
|
5230
5230
|
inputLetterSpacing: H,
|
|
@@ -5254,8 +5254,8 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5254
5254
|
} = t, P = u === "B", J = x.slice(0, Math.min(d, x.length)), q = {
|
|
5255
5255
|
fontSettings: {
|
|
5256
5256
|
fontFamily: B,
|
|
5257
|
-
fontWeight: (
|
|
5258
|
-
fontStyle: (
|
|
5257
|
+
fontWeight: (A == null ? void 0 : A.fontWeight) ?? 400,
|
|
5258
|
+
fontStyle: (A == null ? void 0 : A.fontStyle) ?? "normal"
|
|
5259
5259
|
},
|
|
5260
5260
|
fontSize: X ?? 0.01,
|
|
5261
5261
|
lineHeight: j,
|
|
@@ -5282,7 +5282,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5282
5282
|
paddingLeft: W((E == null ? void 0 : E.left) ?? 0, e),
|
|
5283
5283
|
height: St,
|
|
5284
5284
|
minHeight: St
|
|
5285
|
-
},
|
|
5285
|
+
}, At = {
|
|
5286
5286
|
fontSettings: {
|
|
5287
5287
|
fontFamily: B,
|
|
5288
5288
|
fontWeight: (rt == null ? void 0 : rt.fontWeight) ?? 400,
|
|
@@ -5294,7 +5294,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5294
5294
|
wordSpacing: ot ?? 0,
|
|
5295
5295
|
textAppearance: yt,
|
|
5296
5296
|
color: T
|
|
5297
|
-
}, Mt = nn(Be(
|
|
5297
|
+
}, Mt = nn(Be(At, e)), Jt = W(L ?? 0, e), dt = {
|
|
5298
5298
|
fontSettings: {
|
|
5299
5299
|
fontFamily: B,
|
|
5300
5300
|
fontWeight: (vt == null ? void 0 : vt.fontWeight) ?? 400,
|
|
@@ -5321,7 +5321,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5321
5321
|
}, Pt = nn(Be(Gt, e)), pe = Di(l, {
|
|
5322
5322
|
inputColor: R,
|
|
5323
5323
|
inputTextColor: v,
|
|
5324
|
-
inputBorderColor:
|
|
5324
|
+
inputBorderColor: _,
|
|
5325
5325
|
placeholderColor: V != null && V.trim() ? V : "#cccccc",
|
|
5326
5326
|
buttonColor: m,
|
|
5327
5327
|
buttonTextColor: T,
|
|
@@ -5334,14 +5334,14 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5334
5334
|
), [Yt, ve] = gt("idle"), [ke, Fe] = gt(null), Ne = a === "success" ? "success" : a === "error" ? "error" : Yt, xt = a === "error" ? D : ke, Vt = a === "filled", Zt = kt(() => {
|
|
5335
5335
|
if (!Vt) return le;
|
|
5336
5336
|
let qt = null;
|
|
5337
|
-
for (const
|
|
5338
|
-
(le[
|
|
5337
|
+
for (const Ae of J)
|
|
5338
|
+
(le[Ae.name] ?? "").trim().length > 0 || (qt = qt ?? { ...le }, qt[Ae.name] = "Filled");
|
|
5339
5339
|
return qt ?? le;
|
|
5340
|
-
}, [le, Vt, J]), se = Ne === "error" ? Co(J, Zt) : null, je = `${a && a !== "default" ? `${l}-state-${a}` : ""}`.trim(), ze = o == null ? void 0 : o.submitUrl, Ze = (qt,
|
|
5341
|
-
Le((Te) => ({ ...Te, [qt]:
|
|
5340
|
+
}, [le, Vt, J]), se = Ne === "error" ? Co(J, Zt) : null, je = `${a && a !== "default" ? `${l}-state-${a}` : ""}`.trim(), ze = o == null ? void 0 : o.submitUrl, Ze = (qt, Ae) => {
|
|
5341
|
+
Le((Te) => ({ ...Te, [qt]: Ae }));
|
|
5342
5342
|
}, un = async (qt) => {
|
|
5343
5343
|
if (qt.preventDefault(), !c) return;
|
|
5344
|
-
const
|
|
5344
|
+
const Ae = Object.fromEntries(
|
|
5345
5345
|
J.map((ce) => {
|
|
5346
5346
|
var $e;
|
|
5347
5347
|
return [ce.name, (($e = le[ce.name]) == null ? void 0 : $e.trim()) ?? ""];
|
|
@@ -5351,7 +5351,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5351
5351
|
ve("error"), Fe("No integrations were found for this form.");
|
|
5352
5352
|
return;
|
|
5353
5353
|
}
|
|
5354
|
-
if (Object.keys(
|
|
5354
|
+
if (Object.keys(Ae).length === 0) return;
|
|
5355
5355
|
const Te = Co(J, le);
|
|
5356
5356
|
if (Te) {
|
|
5357
5357
|
ve("error"), Fe(Te);
|
|
@@ -5362,7 +5362,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5362
5362
|
const ce = await fetch(ze, {
|
|
5363
5363
|
method: "POST",
|
|
5364
5364
|
headers: { "Content-Type": "application/json" },
|
|
5365
|
-
body: JSON.stringify(
|
|
5365
|
+
body: JSON.stringify(Ae)
|
|
5366
5366
|
});
|
|
5367
5367
|
if (!ce.ok) {
|
|
5368
5368
|
const $e = await ce.text();
|
|
@@ -5381,8 +5381,8 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5381
5381
|
onSubmit: un,
|
|
5382
5382
|
className: `${l}-form`,
|
|
5383
5383
|
children: [
|
|
5384
|
-
/* @__PURE__ */ s("div", { className: `${l}-fields`, children: J.map((qt,
|
|
5385
|
-
|
|
5384
|
+
/* @__PURE__ */ s("div", { className: `${l}-fields`, children: J.map((qt, Ae) => /* @__PURE__ */ z(On.Fragment, { children: [
|
|
5385
|
+
Ae > 0 && /* @__PURE__ */ s(
|
|
5386
5386
|
"div",
|
|
5387
5387
|
{
|
|
5388
5388
|
"data-controls": r ? "fieldsGap" : void 0,
|
|
@@ -5422,7 +5422,7 @@ function uu({ settings: t, isEditor: e, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5422
5422
|
}
|
|
5423
5423
|
)
|
|
5424
5424
|
] })
|
|
5425
|
-
] },
|
|
5425
|
+
] }, Ae)) }),
|
|
5426
5426
|
/* @__PURE__ */ s(
|
|
5427
5427
|
"div",
|
|
5428
5428
|
{
|
|
@@ -6990,7 +6990,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
|
|
|
6990
6990
|
buttonLetterSpacing: E,
|
|
6991
6991
|
buttonWordSpacing: R,
|
|
6992
6992
|
buttonTextAppearance: v,
|
|
6993
|
-
statusFontSettings:
|
|
6993
|
+
statusFontSettings: _,
|
|
6994
6994
|
statusFontSize: V,
|
|
6995
6995
|
statusLineHeight: m,
|
|
6996
6996
|
statusLetterSpacing: T,
|
|
@@ -6999,7 +6999,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
|
|
|
6999
6999
|
iconMaxWidth: U,
|
|
7000
7000
|
minHeight: st,
|
|
7001
7001
|
corners: B,
|
|
7002
|
-
stroke:
|
|
7002
|
+
stroke: A,
|
|
7003
7003
|
stateOverrides: X,
|
|
7004
7004
|
inputPadding: j,
|
|
7005
7005
|
buttonPadding: H,
|
|
@@ -7040,8 +7040,8 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
|
|
|
7040
7040
|
}, q = {
|
|
7041
7041
|
fontSettings: {
|
|
7042
7042
|
fontFamily: x,
|
|
7043
|
-
fontWeight: (
|
|
7044
|
-
fontStyle: (
|
|
7043
|
+
fontWeight: (_ == null ? void 0 : _.fontWeight) ?? 400,
|
|
7044
|
+
fontStyle: (_ == null ? void 0 : _.fontStyle) ?? "normal"
|
|
7045
7045
|
},
|
|
7046
7046
|
fontSize: V ?? 0.01,
|
|
7047
7047
|
lineHeight: m,
|
|
@@ -7058,11 +7058,11 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
|
|
|
7058
7058
|
errorColor: t.errorColor,
|
|
7059
7059
|
inputTextColor: t.inputTextColor ?? (P == null ? void 0 : P.color) ?? "#111111",
|
|
7060
7060
|
buttonTextColor: t.buttonTextColor ?? (J == null ? void 0 : J.color) ?? "#ffffff"
|
|
7061
|
-
}, wu, $u, X),
|
|
7061
|
+
}, wu, $u, X), At = {
|
|
7062
7062
|
borderRadius: W(B, e),
|
|
7063
|
-
borderWidth: W(
|
|
7063
|
+
borderWidth: W(A, e),
|
|
7064
7064
|
borderStyle: "solid"
|
|
7065
|
-
}, Mt = { borderLeftWidth: W(
|
|
7065
|
+
}, Mt = { borderLeftWidth: W(A, e) }, Jt = async (dt) => {
|
|
7066
7066
|
if (dt.preventDefault(), !r) return;
|
|
7067
7067
|
const Nt = Object.fromEntries(
|
|
7068
7068
|
rt.map((Pt) => {
|
|
@@ -7104,7 +7104,7 @@ const xu = ({ settings: t, isEditor: e, isPreviewMode: n, metadata: i, activeEve
|
|
|
7104
7104
|
onSubmit: Jt,
|
|
7105
7105
|
className: `${a}-form`,
|
|
7106
7106
|
style: {
|
|
7107
|
-
...
|
|
7107
|
+
...At,
|
|
7108
7108
|
height: W(st, e),
|
|
7109
7109
|
minHeight: W(st, e)
|
|
7110
7110
|
},
|
|
@@ -8425,7 +8425,7 @@ function Iu(t) {
|
|
|
8425
8425
|
}
|
|
8426
8426
|
`;
|
|
8427
8427
|
}
|
|
8428
|
-
const
|
|
8428
|
+
const _u = 30, Au = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e }, () => t).flat(), Ru = (t, e) => {
|
|
8429
8429
|
const n = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
8430
8430
|
return i.right > n.left && i.left < n.right;
|
|
8431
8431
|
}, Mu = (t, e) => {
|
|
@@ -8442,7 +8442,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8442
8442
|
scaled: c,
|
|
8443
8443
|
onFirstSetImageDone: l
|
|
8444
8444
|
}) => {
|
|
8445
|
-
var v,
|
|
8445
|
+
var v, _, V;
|
|
8446
8446
|
const u = mt(null);
|
|
8447
8447
|
Oe(() => {
|
|
8448
8448
|
if (!r) return;
|
|
@@ -8452,7 +8452,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8452
8452
|
const d = n.display === "cover", x = n.ratioValue ?? "1:1", b = n.reversed ?? !1, [y, p] = x.split(":").map(Number), $ = (b ? p : y) / (b ? y : p);
|
|
8453
8453
|
let C = i, w = C / $;
|
|
8454
8454
|
w > o && (w = o, C = w * $);
|
|
8455
|
-
const k = c(C), E = c(w), R = ((
|
|
8455
|
+
const k = c(C), E = c(w), R = ((_ = t.image) == null ? void 0 : _.url) && /* @__PURE__ */ s(
|
|
8456
8456
|
"img",
|
|
8457
8457
|
{
|
|
8458
8458
|
ref: u,
|
|
@@ -8516,8 +8516,8 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8516
8516
|
}
|
|
8517
8517
|
);
|
|
8518
8518
|
}, Nu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
8519
|
-
const { prefix: a } = yn(), r = kt(() => Iu(a), [a]), { speed: c, direction: l, pauseOnHover: u, gap: d, imageMaxWidth: x, imageMaxHeight: b, imageFit: y, hoverEffect: p } = t, f = !!o, L = !n || !!i, $ = L && p !== "off" && p !== "randomize" ? `${a}-image-hover-${p}` : void 0, C = n ? !!i : !0, k = ((e == null ? void 0 : e.length) ?? 0) > 0 && (C || !!n), E = Math.max(0, c) *
|
|
8520
|
-
j.current =
|
|
8519
|
+
const { prefix: a } = yn(), r = kt(() => Iu(a), [a]), { speed: c, direction: l, pauseOnHover: u, gap: d, imageMaxWidth: x, imageMaxHeight: b, imageFit: y, hoverEffect: p } = t, f = !!o, L = !n || !!i, $ = L && p !== "off" && p !== "randomize" ? `${a}-image-hover-${p}` : void 0, C = n ? !!i : !0, k = ((e == null ? void 0 : e.length) ?? 0) > 0 && (C || !!n), E = Math.max(0, c) * _u, R = (O) => W(O, n ?? !1), v = mt(null), _ = mt(null), V = mt(null), [m, T] = gt(0), [I, N] = gt(0), U = C && u === "on", [st, B] = gt(!1), [A, X] = gt({}), j = mt(A);
|
|
8520
|
+
j.current = A;
|
|
8521
8521
|
const H = mt(null), Y = mt(0), it = mt(null), rt = kt(() => (e ?? []).map((O) => {
|
|
8522
8522
|
var F;
|
|
8523
8523
|
return ((F = O.image) == null ? void 0 : F.url) ?? "";
|
|
@@ -8552,7 +8552,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8552
8552
|
}
|
|
8553
8553
|
Et.size > 0 && F(Et);
|
|
8554
8554
|
}, { root: O, threshold: 0 });
|
|
8555
|
-
Object.keys(
|
|
8555
|
+
Object.keys(A).forEach((Rt) => {
|
|
8556
8556
|
const Et = Number(Rt);
|
|
8557
8557
|
O.querySelectorAll(`[data-marquee-item-index="${Et}"]`).forEach((Dt) => ht.observe(Dt));
|
|
8558
8558
|
});
|
|
@@ -8564,7 +8564,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8564
8564
|
return Object.keys(j.current).length > 0 && (Lt = requestAnimationFrame(jt)), () => {
|
|
8565
8565
|
cancelAnimationFrame(Lt), ht.disconnect();
|
|
8566
8566
|
};
|
|
8567
|
-
}, [p,
|
|
8567
|
+
}, [p, A, L]), Oe(() => {
|
|
8568
8568
|
if (!k) return;
|
|
8569
8569
|
const O = v.current, F = V.current;
|
|
8570
8570
|
if (!O || !F) return;
|
|
@@ -8598,7 +8598,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8598
8598
|
it.current = null, cancelAnimationFrame(ht), Rt.disconnect();
|
|
8599
8599
|
};
|
|
8600
8600
|
}, [C, k, m, rt, M]), Oe(() => {
|
|
8601
|
-
const O =
|
|
8601
|
+
const O = _.current;
|
|
8602
8602
|
if (!k || !O) return;
|
|
8603
8603
|
const F = m > 0 ? m : 0, ht = F > 0 && E > 0 ? F / E * 1e3 : 0, Lt = `${Math.max(0, ht) / 1e3}s`;
|
|
8604
8604
|
O.style.setProperty("--marquee-distance", `${F}px`), O.style.setProperty("--marquee-duration", Lt);
|
|
@@ -8611,7 +8611,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8611
8611
|
N(0);
|
|
8612
8612
|
return;
|
|
8613
8613
|
}
|
|
8614
|
-
const O =
|
|
8614
|
+
const O = _.current;
|
|
8615
8615
|
if (!O) return;
|
|
8616
8616
|
const F = () => {
|
|
8617
8617
|
const Lt = O.getBoundingClientRect().height;
|
|
@@ -8620,7 +8620,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8620
8620
|
F();
|
|
8621
8621
|
const ht = new ResizeObserver(F);
|
|
8622
8622
|
return ht.observe(O), () => ht.disconnect();
|
|
8623
|
-
}, [k, yt, h, n, d, x, b, m, y,
|
|
8623
|
+
}, [k, yt, h, n, d, x, b, m, y, A]);
|
|
8624
8624
|
const vt = () => {
|
|
8625
8625
|
U && B(!0);
|
|
8626
8626
|
}, Bt = () => {
|
|
@@ -8639,7 +8639,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8639
8639
|
return { ...ht, [O]: Rt };
|
|
8640
8640
|
});
|
|
8641
8641
|
}, [e]), G = (O, F, ht, Lt) => {
|
|
8642
|
-
const jt = L && p === "randomize" && y.display === "cover" ?
|
|
8642
|
+
const jt = L && p === "randomize" && y.display === "cover" ? A[ht] ?? O : O, Rt = `max(${R(d)}, ${Au}px)`, Et = `calc(-0.5 * (${Rt} + ${R(d)}))`;
|
|
8643
8643
|
return /* @__PURE__ */ z(
|
|
8644
8644
|
"div",
|
|
8645
8645
|
{
|
|
@@ -8696,7 +8696,7 @@ const Au = 30, _u = 20, or = 2, Wu = 2, ku = (t, e) => Array.from({ length: e },
|
|
|
8696
8696
|
/* @__PURE__ */ s(
|
|
8697
8697
|
"div",
|
|
8698
8698
|
{
|
|
8699
|
-
ref:
|
|
8699
|
+
ref: _,
|
|
8700
8700
|
className: `${a}-marquee-track`,
|
|
8701
8701
|
"data-direction": l,
|
|
8702
8702
|
onMouseEnter: vt,
|
|
@@ -9688,7 +9688,7 @@ function Ta(t) {
|
|
|
9688
9688
|
`;
|
|
9689
9689
|
}
|
|
9690
9690
|
const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
9691
|
-
const { prefix: a } = yn(), { align: r, speed: c, direction: l, pauseOnHover: u, gap: d, cardWidth: x, corners: b, stroke: y, strokeColor: p, bgColor: f, padding: L, logoMarginTop: $, logoWidth: C, logoHeight: w, captionMarginTop: k } = t, E = !!o, R = ((e == null ? void 0 : e.length) ?? 0) > 0, v = c > 0 && (!n || i),
|
|
9691
|
+
const { prefix: a } = yn(), { align: r, speed: c, direction: l, pauseOnHover: u, gap: d, cardWidth: x, corners: b, stroke: y, strokeColor: p, bgColor: f, padding: L, logoMarginTop: $, logoWidth: C, logoHeight: w, captionMarginTop: k } = t, E = !!o, R = ((e == null ? void 0 : e.length) ?? 0) > 0, v = c > 0 && (!n || i), _ = R && (v || n), V = Math.max(0, c) * zu, m = (P) => W(P, n ?? !1), T = mt(null), I = mt(null), N = mt(null), [U, st] = gt(0), [B, A] = gt(0), [X, j] = gt(0), H = v && u === "on", [Y, it] = gt(!1), rt = mt(null), [M, at] = gt(0), [h, ot] = gt(0), yt = mt(null), vt = (P) => {
|
|
9692
9692
|
var q, tt, ft, St, Xt;
|
|
9693
9693
|
return {
|
|
9694
9694
|
fontSettings: {
|
|
@@ -9713,19 +9713,19 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9713
9713
|
return (((J = P.text) == null ? void 0 : J.length) ?? 0) > 0 || (((q = P.caption) == null ? void 0 : q.length) ?? 0) > 0;
|
|
9714
9714
|
}),
|
|
9715
9715
|
[e]
|
|
9716
|
-
), G = kt(() => !
|
|
9716
|
+
), G = kt(() => !_ || (e == null ? void 0 : e.length) === 0 ? 1 : B <= 0 || U <= 0 ? La : Math.max(La, Math.ceil(U / B) + 1), [_, e == null ? void 0 : e.length, B, U]);
|
|
9717
9717
|
Oe(() => {
|
|
9718
|
-
if (!
|
|
9718
|
+
if (!_) return;
|
|
9719
9719
|
const P = T.current, J = N.current;
|
|
9720
9720
|
if (!P || !J) return;
|
|
9721
9721
|
let q = 0;
|
|
9722
9722
|
const tt = () => {
|
|
9723
|
-
const Xt = P.getBoundingClientRect().width,
|
|
9724
|
-
if (yt.current =
|
|
9725
|
-
|
|
9723
|
+
const Xt = P.getBoundingClientRect().width, At = J.getBoundingClientRect().width, Mt = yt.current, Jt = typeof Mt == "number" && Math.abs(Mt - At) <= 0.25;
|
|
9724
|
+
if (yt.current = At, st(Xt), typeof At == "number" && At > 0 && B <= 0) {
|
|
9725
|
+
A(At);
|
|
9726
9726
|
return;
|
|
9727
9727
|
}
|
|
9728
|
-
Jt &&
|
|
9728
|
+
Jt && At !== B ? A(At) : !Jt && B <= 0 && (cancelAnimationFrame(q), q = requestAnimationFrame(tt));
|
|
9729
9729
|
}, ft = () => {
|
|
9730
9730
|
cancelAnimationFrame(q), q = requestAnimationFrame(tt);
|
|
9731
9731
|
};
|
|
@@ -9734,13 +9734,13 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9734
9734
|
return St.observe(P), St.observe(J), () => {
|
|
9735
9735
|
cancelAnimationFrame(q), St.disconnect();
|
|
9736
9736
|
};
|
|
9737
|
-
}, [v,
|
|
9737
|
+
}, [v, _, B]), Oe(() => {
|
|
9738
9738
|
const P = I.current;
|
|
9739
|
-
if (!
|
|
9739
|
+
if (!_ || !P) return;
|
|
9740
9740
|
const J = B > 0 ? B : 0, q = J > 0 && V > 0 ? J / V * 1e3 : 0, tt = `${Math.max(0, q) / 1e3}s`;
|
|
9741
9741
|
P.style.setProperty("--marquee-distance", `${J}px`), P.style.setProperty("--marquee-duration", tt);
|
|
9742
|
-
}, [v,
|
|
9743
|
-
if (!
|
|
9742
|
+
}, [v, _, V, B]), Oe(() => {
|
|
9743
|
+
if (!_) {
|
|
9744
9744
|
j(0);
|
|
9745
9745
|
return;
|
|
9746
9746
|
}
|
|
@@ -9749,8 +9749,8 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9749
9749
|
const q = () => {
|
|
9750
9750
|
let ft = 0;
|
|
9751
9751
|
for (let St = 0; St < P.children.length; St++) {
|
|
9752
|
-
const
|
|
9753
|
-
|
|
9752
|
+
const At = P.children[St].firstElementChild;
|
|
9753
|
+
At && (ft = Math.max(ft, At.offsetHeight));
|
|
9754
9754
|
}
|
|
9755
9755
|
ft <= 0 && (ft = J.offsetHeight), j(ft > 0 ? ft : 0);
|
|
9756
9756
|
};
|
|
@@ -9759,7 +9759,7 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9759
9759
|
return tt.observe(P), tt.observe(J), () => {
|
|
9760
9760
|
tt.disconnect();
|
|
9761
9761
|
};
|
|
9762
|
-
}, [
|
|
9762
|
+
}, [_, G, e, n, d, x, L, y, b, C, w, M, h]);
|
|
9763
9763
|
const O = () => {
|
|
9764
9764
|
H && it(!0);
|
|
9765
9765
|
}, F = () => {
|
|
@@ -9986,7 +9986,7 @@ const zu = 30, La = 2, Du = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9986
9986
|
},
|
|
9987
9987
|
J
|
|
9988
9988
|
);
|
|
9989
|
-
if (
|
|
9989
|
+
if (_) {
|
|
9990
9990
|
const P = v ? H && Y ? "paused" : "running" : "paused";
|
|
9991
9991
|
return /* @__PURE__ */ z(
|
|
9992
9992
|
"div",
|
|
@@ -11295,7 +11295,7 @@ function Ku(t) {
|
|
|
11295
11295
|
`;
|
|
11296
11296
|
}
|
|
11297
11297
|
const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11298
|
-
const { prefix: a } = yn(), r = e || [], { speed: c, align: l, width: u, imageMarginTop: d, textMarginTop: x, captionMarginTop: b, imageWidth: y, imageHeight: p, controlsWidth: f, controlsColor: L, controlsHoverColor: $ } = t, C = c > 0 && (!n || !!i), [w, k] = gt(0), [E, R] = gt(null), [v,
|
|
11298
|
+
const { prefix: a } = yn(), r = e || [], { speed: c, align: l, width: u, imageMarginTop: d, textMarginTop: x, captionMarginTop: b, imageWidth: y, imageHeight: p, controlsWidth: f, controlsColor: L, controlsHoverColor: $ } = t, C = c > 0 && (!n || !!i), [w, k] = gt(0), [E, R] = gt(null), [v, _] = gt(!1), V = mt(null), m = kt(() => {
|
|
11299
11299
|
switch (l) {
|
|
11300
11300
|
case "center":
|
|
11301
11301
|
return "center";
|
|
@@ -11317,7 +11317,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
|
|
|
11317
11317
|
}
|
|
11318
11318
|
}, [l]);
|
|
11319
11319
|
Ot(() => {
|
|
11320
|
-
k(0), R(null),
|
|
11320
|
+
k(0), R(null), _(!1);
|
|
11321
11321
|
}, [r.length]);
|
|
11322
11322
|
const I = r[w], N = E === null ? null : r[E], U = (Z) => {
|
|
11323
11323
|
var G, O, F, ht, Lt;
|
|
@@ -11338,11 +11338,11 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
|
|
|
11338
11338
|
wordSpacing: (t == null ? void 0 : t[`${Z}WordSpacing`]) ?? 0,
|
|
11339
11339
|
color: (t == null ? void 0 : t[`${Z}Color`]) ?? "#000000"
|
|
11340
11340
|
};
|
|
11341
|
-
}, st = U("text"), B = U("caption"),
|
|
11341
|
+
}, st = U("text"), B = U("caption"), A = r.length > 1 && r.some((Z) => {
|
|
11342
11342
|
var ct, G;
|
|
11343
11343
|
return (((ct = Z.text) == null ? void 0 : ct.length) ?? 0) > 0 || (((G = Z.caption) == null ? void 0 : G.length) ?? 0) > 0;
|
|
11344
|
-
}), X = mt(null), [j, H] = gt(0), [Y, it] = gt(0), rt = t.controls ?? { mode: "Off", icon: null }, M = r.length > 1, at = Wt((Z, ct) => !M || ct === Z ? Z : (V.current && window.clearTimeout(V.current), R(Z),
|
|
11345
|
-
R(null),
|
|
11344
|
+
}), X = mt(null), [j, H] = gt(0), [Y, it] = gt(0), rt = t.controls ?? { mode: "Off", icon: null }, M = r.length > 1, at = Wt((Z, ct) => !M || ct === Z ? Z : (V.current && window.clearTimeout(V.current), R(Z), _(!0), V.current = window.setTimeout(() => {
|
|
11345
|
+
R(null), _(!1), V.current = null;
|
|
11346
11346
|
}, 300), ct), [M]), h = Wt(() => {
|
|
11347
11347
|
M && k((Z) => at(Z, (Z - 1 + r.length) % r.length));
|
|
11348
11348
|
}, [M, at, r.length]), ot = Wt(() => {
|
|
@@ -11433,7 +11433,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
|
|
|
11433
11433
|
H(Z.maxTextPx), it(Z.maxCaptionPx);
|
|
11434
11434
|
}, []);
|
|
11435
11435
|
if (Oe(() => {
|
|
11436
|
-
if (!
|
|
11436
|
+
if (!A) {
|
|
11437
11437
|
vt({ maxTextPx: 0, maxCaptionPx: 0 });
|
|
11438
11438
|
return;
|
|
11439
11439
|
}
|
|
@@ -11447,8 +11447,8 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
|
|
|
11447
11447
|
return G.observe(Z), () => {
|
|
11448
11448
|
G.disconnect();
|
|
11449
11449
|
};
|
|
11450
|
-
}, [
|
|
11451
|
-
const Bt =
|
|
11450
|
+
}, [A, vt, e]), !I) return /* @__PURE__ */ s(ie, {});
|
|
11451
|
+
const Bt = A ? { textMinHeightPx: j, captionMinHeightPx: Y } : void 0;
|
|
11452
11452
|
return /* @__PURE__ */ s(ie, { children: /* @__PURE__ */ z("div", { className: `${a}-container`, children: [
|
|
11453
11453
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Ku(a) } }),
|
|
11454
11454
|
/* @__PURE__ */ z(
|
|
@@ -11457,7 +11457,7 @@ const Uu = 3e3, Gu = ({ settings: t, content: e, isEditor: n, isPreviewMode: i,
|
|
|
11457
11457
|
className: `${a}-wrapper`,
|
|
11458
11458
|
style: { width: W(u ?? 0, n ?? !1), alignItems: m },
|
|
11459
11459
|
children: [
|
|
11460
|
-
|
|
11460
|
+
A && /* @__PURE__ */ s(
|
|
11461
11461
|
"div",
|
|
11462
11462
|
{
|
|
11463
11463
|
ref: X,
|
|
@@ -12723,7 +12723,7 @@ const xn = 500, ep = 750, Mn = "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
|
12723
12723
|
function Hn(t) {
|
|
12724
12724
|
return t.type === "video" ? !0 : t.type === "image" ? !1 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t.url);
|
|
12725
12725
|
}
|
|
12726
|
-
function
|
|
12726
|
+
function _a({
|
|
12727
12727
|
media: t,
|
|
12728
12728
|
className: e,
|
|
12729
12729
|
style: n,
|
|
@@ -12761,12 +12761,12 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
|
|
|
12761
12761
|
p({ width: N, height: U, left: I.left, top: I.top });
|
|
12762
12762
|
return;
|
|
12763
12763
|
}
|
|
12764
|
-
const
|
|
12765
|
-
if (
|
|
12766
|
-
const j = N /
|
|
12764
|
+
const A = st / B, X = N / U;
|
|
12765
|
+
if (A > X) {
|
|
12766
|
+
const j = N / A;
|
|
12767
12767
|
p({ width: N, height: j, left: I.left, top: I.top + (U - j) / 2 });
|
|
12768
12768
|
} else {
|
|
12769
|
-
const j = U *
|
|
12769
|
+
const j = U * A;
|
|
12770
12770
|
p({ width: j, height: U, left: I.left + (N - j) / 2, top: I.top });
|
|
12771
12771
|
}
|
|
12772
12772
|
}, [n]);
|
|
@@ -12792,7 +12792,7 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
|
|
|
12792
12792
|
}, [f]);
|
|
12793
12793
|
const E = () => {
|
|
12794
12794
|
f !== "closing" && L("closing");
|
|
12795
|
-
}, R = f === "open", v = f === "closing",
|
|
12795
|
+
}, R = f === "open", v = f === "closing", _ = v && o && !!i, V = f === "opening" ? i ?? y : _ ? i : y;
|
|
12796
12796
|
return /* @__PURE__ */ z(
|
|
12797
12797
|
"div",
|
|
12798
12798
|
{
|
|
@@ -12908,8 +12908,8 @@ function np({ images: t, index: e, imageDisplay: n, originRect: i, reverseClose:
|
|
|
12908
12908
|
width: V.width,
|
|
12909
12909
|
height: V.height,
|
|
12910
12910
|
objectFit: n === "cover" ? "cover" : "contain",
|
|
12911
|
-
opacity: v && !
|
|
12912
|
-
transition: v && !
|
|
12911
|
+
opacity: v && !_ ? 0 : 1,
|
|
12912
|
+
transition: v && !_ ? `opacity ${xn}ms ${Mn}` : _ || $ ? `top ${xn}ms ${Mn}, left ${xn}ms ${Mn}, width ${xn}ms ${Mn}, height ${xn}ms ${Mn}` : "none",
|
|
12913
12913
|
pointerEvents: "none",
|
|
12914
12914
|
zIndex: 9998
|
|
12915
12915
|
}
|
|
@@ -12975,7 +12975,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
12975
12975
|
titleMarginTop: E,
|
|
12976
12976
|
subtitleMarginTop: R,
|
|
12977
12977
|
titleColor: v,
|
|
12978
|
-
subtitleColor:
|
|
12978
|
+
subtitleColor: _,
|
|
12979
12979
|
lightboxCounterColor: V,
|
|
12980
12980
|
titleFontFamily: m,
|
|
12981
12981
|
titleFontSettings: T,
|
|
@@ -12984,7 +12984,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
12984
12984
|
titleLetterSpacing: U,
|
|
12985
12985
|
titleWordSpacing: st,
|
|
12986
12986
|
titleTextAppearance: B,
|
|
12987
|
-
subtitleFontFamily:
|
|
12987
|
+
subtitleFontFamily: A,
|
|
12988
12988
|
subtitleFontSettings: X,
|
|
12989
12989
|
subtitleFontSize: j,
|
|
12990
12990
|
subtitleLineHeight: H,
|
|
@@ -13016,7 +13016,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13016
13016
|
...nn(Be(G, n))
|
|
13017
13017
|
}, ht = {
|
|
13018
13018
|
fontSettings: {
|
|
13019
|
-
fontFamily:
|
|
13019
|
+
fontFamily: A,
|
|
13020
13020
|
fontWeight: (X == null ? void 0 : X.fontWeight) ?? 400,
|
|
13021
13021
|
fontStyle: (X == null ? void 0 : X.fontStyle) ?? "normal"
|
|
13022
13022
|
},
|
|
@@ -13025,7 +13025,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13025
13025
|
letterSpacing: Y ?? 0,
|
|
13026
13026
|
wordSpacing: it ?? 0,
|
|
13027
13027
|
textAppearance: rt,
|
|
13028
|
-
color:
|
|
13028
|
+
color: _
|
|
13029
13029
|
}, jt = {
|
|
13030
13030
|
...nn(Be(ht, n))
|
|
13031
13031
|
}, Rt = {
|
|
@@ -13060,9 +13060,9 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13060
13060
|
`${l}-text-tight-leading`
|
|
13061
13061
|
), tt = Di(l, {
|
|
13062
13062
|
titleColor: v,
|
|
13063
|
-
subtitleColor:
|
|
13063
|
+
subtitleColor: _,
|
|
13064
13064
|
lightboxCounterColor: V
|
|
13065
|
-
}, rp, ap), Xt = `${r && r !== "default" ? `${l}-state-${r}` : ""}${Z === "on hover" && (!n || i) ? ` ${l}-show-text-hover` : ""}`.trim(),
|
|
13065
|
+
}, rp, ap), Xt = `${r && r !== "default" ? `${l}-state-${r}` : ""}${Z === "on hover" && (!n || i) ? ` ${l}-show-text-hover` : ""}`.trim(), At = y === 0 ? 1 / 0 : y, Mt = (e ?? []).slice(0, At), Jt = d.entryWidth ?? 0.2, dt = (f == null ? void 0 : f.display) === "cover", Nt = (f == null ? void 0 : f.ratioValue) ?? "1:1", Gt = (f == null ? void 0 : f.reversed) ?? !1, [Pt, pe] = Nt.split(":").map(Number), Yt = `${Gt ? pe : Pt} / ${Gt ? Pt : pe}`, ve = W(Jt ?? 0, n), ke = !dt && $ !== "off", Fe = {
|
|
13066
13066
|
width: ve,
|
|
13067
13067
|
...dt ? { aspectRatio: Yt, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13068
13068
|
}, Ne = `${l}-item-image-wrapper${ke ? ` ${l}-item-image-wrapper-fit-slider` : ""}`.trim(), xt = u === "c", Vt = xt && ct === "on", Zt = `calc(${W(Jt ?? 0, n)} * (${x} / 100))`, se = W(Jt * x / 100, n), Ce = dt ? {
|
|
@@ -13086,7 +13086,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13086
13086
|
});
|
|
13087
13087
|
return he.observe(Ht), () => he.disconnect();
|
|
13088
13088
|
}, []);
|
|
13089
|
-
const
|
|
13089
|
+
const Ae = (() => {
|
|
13090
13090
|
const Ht = { ...tt }, he = qt.current ? getComputedStyle(qt.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
13091
13091
|
return he && (Ht["--cntrl-article-width"] = he), Ht;
|
|
13092
13092
|
})(), [Te, ce] = gt(!1), [$e, Ke] = gt([]), [bn, Ve] = gt(0), [In, re] = gt(null), Ue = (Ht, he, He) => {
|
|
@@ -13178,14 +13178,14 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13178
13178
|
te,
|
|
13179
13179
|
ae
|
|
13180
13180
|
] }), We = /* @__PURE__ */ s("div", { className: Ne, style: Fe, children: (((Ie = Ht.image) == null ? void 0 : Ie.length) ?? 0) === 0 ? null : $ === "off" ? (() => {
|
|
13181
|
-
const zt = Ht.image[0], fe = Ht.image.filter((
|
|
13181
|
+
const zt = Ht.image[0], fe = Ht.image.filter((_e) => !Hn(_e)).map((_e) => _e.url);
|
|
13182
13182
|
return /* @__PURE__ */ s(
|
|
13183
|
-
|
|
13183
|
+
_a,
|
|
13184
13184
|
{
|
|
13185
13185
|
media: zt,
|
|
13186
13186
|
className: `${l}-item-${Hn(zt) ? "video" : "image"}`.trim(),
|
|
13187
13187
|
style: Ce,
|
|
13188
|
-
onImageClick: Hn(zt) ? void 0 : (
|
|
13188
|
+
onImageClick: Hn(zt) ? void 0 : (_e) => Ue(_e, fe, 0)
|
|
13189
13189
|
}
|
|
13190
13190
|
);
|
|
13191
13191
|
})() : /* @__PURE__ */ z(ie, { children: [
|
|
@@ -13218,14 +13218,14 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13218
13218
|
}, 0);
|
|
13219
13219
|
},
|
|
13220
13220
|
children: Ht.image.map((zt, de) => {
|
|
13221
|
-
const fe = Ht.image.filter((me) => !Hn(me)),
|
|
13221
|
+
const fe = Ht.image.filter((me) => !Hn(me)), _e = fe.map((me) => me.url), mn = fe.findIndex((me) => me.url === zt.url);
|
|
13222
13222
|
return /* @__PURE__ */ s(Xr, { children: /* @__PURE__ */ s(
|
|
13223
|
-
|
|
13223
|
+
_a,
|
|
13224
13224
|
{
|
|
13225
13225
|
media: zt,
|
|
13226
13226
|
className: `${l}-item-${Hn(zt) ? "video" : "image"}`.trim(),
|
|
13227
13227
|
style: Ce,
|
|
13228
|
-
onImageClick: Hn(zt) ? void 0 : (me) => Ue(me,
|
|
13228
|
+
onImageClick: Hn(zt) ? void 0 : (me) => Ue(me, _e, mn)
|
|
13229
13229
|
}
|
|
13230
13230
|
) }, de);
|
|
13231
13231
|
})
|
|
@@ -13298,7 +13298,7 @@ function op({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13298
13298
|
}
|
|
13299
13299
|
) }),
|
|
13300
13300
|
(!n || i) && Te && typeof document < "u" && p === "on" && Wo(
|
|
13301
|
-
/* @__PURE__ */ s("div", { style:
|
|
13301
|
+
/* @__PURE__ */ s("div", { style: Ae, "data-selection": "none", children: /* @__PURE__ */ s(
|
|
13302
13302
|
np,
|
|
13303
13303
|
{
|
|
13304
13304
|
images: $e,
|
|
@@ -15201,12 +15201,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15201
15201
|
},
|
|
15202
15202
|
schema: cp,
|
|
15203
15203
|
sourceCode: lp
|
|
15204
|
-
},
|
|
15204
|
+
}, Aa = 12;
|
|
15205
15205
|
function up(t, e = "50%") {
|
|
15206
15206
|
const n = {
|
|
15207
15207
|
position: "absolute",
|
|
15208
|
-
width:
|
|
15209
|
-
height:
|
|
15208
|
+
width: Aa,
|
|
15209
|
+
height: Aa,
|
|
15210
15210
|
pointerEvents: "auto"
|
|
15211
15211
|
};
|
|
15212
15212
|
return t === "left-y" ? { ...n, left: 20, top: "50%", transform: "translateY(-50%)" } : t === "center-x" ? {
|
|
@@ -15874,7 +15874,7 @@ const Ip = {
|
|
|
15874
15874
|
EColumn: "E",
|
|
15875
15875
|
cutLabel: "CUT"
|
|
15876
15876
|
};
|
|
15877
|
-
function
|
|
15877
|
+
function _p(t) {
|
|
15878
15878
|
return [
|
|
15879
15879
|
ne(t, "textFontFamily"),
|
|
15880
15880
|
ne(t, "textFontSettings"),
|
|
@@ -15892,19 +15892,19 @@ function Ap(t) {
|
|
|
15892
15892
|
`${t}VerticalAlign`
|
|
15893
15893
|
];
|
|
15894
15894
|
}
|
|
15895
|
-
function
|
|
15895
|
+
function Ap() {
|
|
15896
15896
|
return {
|
|
15897
15897
|
type: "tab",
|
|
15898
15898
|
id: "listColumnTextStyle",
|
|
15899
15899
|
tabs: Object.fromEntries(
|
|
15900
15900
|
Jr.map((t) => [
|
|
15901
15901
|
Ip[t],
|
|
15902
|
-
|
|
15902
|
+
_p(t)
|
|
15903
15903
|
])
|
|
15904
15904
|
)
|
|
15905
15905
|
};
|
|
15906
15906
|
}
|
|
15907
|
-
function
|
|
15907
|
+
function _o(t, e) {
|
|
15908
15908
|
const n = (i) => {
|
|
15909
15909
|
const o = ne(e, i);
|
|
15910
15910
|
return t[o];
|
|
@@ -15943,11 +15943,11 @@ function Na(t, e) {
|
|
|
15943
15943
|
return nn(Be(n, e));
|
|
15944
15944
|
}
|
|
15945
15945
|
function Ha(t, e, n, i) {
|
|
15946
|
-
const o =
|
|
15946
|
+
const o = _o(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
|
|
15947
15947
|
return r !== void 0 && r < a ? `${n} ${i}` : n;
|
|
15948
15948
|
}
|
|
15949
15949
|
function Oa(t, e, n, i) {
|
|
15950
|
-
const o =
|
|
15950
|
+
const o = _o(t, e), a = o.textFontSize ?? 0.01, r = o.textLineHeight;
|
|
15951
15951
|
return r === void 0 || r >= a ? {} : {
|
|
15952
15952
|
[`--${n}-title-leading-gap`]: W((a - r) / 2, i)
|
|
15953
15953
|
};
|
|
@@ -16014,7 +16014,7 @@ const Xl = {
|
|
|
16014
16014
|
DColumnWidth: 0.02,
|
|
16015
16015
|
EColumnWidth: 0.02
|
|
16016
16016
|
};
|
|
16017
|
-
function
|
|
16017
|
+
function Ai(t) {
|
|
16018
16018
|
const e = typeof t.wrapperWidth == "number" ? t.wrapperWidth : 1;
|
|
16019
16019
|
return Math.max(0, e);
|
|
16020
16020
|
}
|
|
@@ -16140,7 +16140,7 @@ function Dp(t, e) {
|
|
|
16140
16140
|
const n = t.columns, i = e.columns;
|
|
16141
16141
|
if (typeof n != "number" || n === i)
|
|
16142
16142
|
return t;
|
|
16143
|
-
const o =
|
|
16143
|
+
const o = Ai(t), a = t.type === "b" || t.type === void 0 && e.type === "b", r = {
|
|
16144
16144
|
...t,
|
|
16145
16145
|
...Mp(n, o),
|
|
16146
16146
|
...Fp()
|
|
@@ -16155,10 +16155,10 @@ function Dp(t, e) {
|
|
|
16155
16155
|
function Vp(t, e, n) {
|
|
16156
16156
|
const i = wp(t);
|
|
16157
16157
|
i && (t = { ...t, ...i });
|
|
16158
|
-
const o = Gl(n == null ? void 0 : n.designWidth), a = t.columns, r = e.columns, c =
|
|
16158
|
+
const o = Gl(n == null ? void 0 : n.designWidth), a = t.columns, r = e.columns, c = Ai(t), l = Ai(e), u = t.type === "b" || t.type === void 0 && e.type === "b", d = typeof a == "number" ? a : typeof r == "number" ? r : Vn.length, x = (w) => {
|
|
16159
16159
|
if (u)
|
|
16160
16160
|
return w;
|
|
16161
|
-
const k = ao({ ...e, ...w }), E =
|
|
16161
|
+
const k = ao({ ...e, ...w }), E = Ai(w), R = xo(d, E, k), v = Hp(d, R, {
|
|
16162
16162
|
...e,
|
|
16163
16163
|
...w
|
|
16164
16164
|
});
|
|
@@ -16261,7 +16261,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16261
16261
|
imageSize: E,
|
|
16262
16262
|
imageOnHover: R,
|
|
16263
16263
|
entryHoverEffect: v,
|
|
16264
|
-
entryHoverShowOption:
|
|
16264
|
+
entryHoverShowOption: _,
|
|
16265
16265
|
rowPaddingTop: V,
|
|
16266
16266
|
rowPaddingBottom: m,
|
|
16267
16267
|
rowPaddingTopB: T,
|
|
@@ -16270,7 +16270,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16270
16270
|
textColor: U,
|
|
16271
16271
|
backgroundColor: st,
|
|
16272
16272
|
dividerColor: B,
|
|
16273
|
-
textHoverColor:
|
|
16273
|
+
textHoverColor: A,
|
|
16274
16274
|
backgroundHoverColor: X,
|
|
16275
16275
|
dividerHoverColor: j
|
|
16276
16276
|
} = t, [H, Y] = gt(void 0), [it, rt] = gt(null), M = R === "on" && (!n || i), at = ($ ?? 0) > 0, h = x === "b", ot = mt(null), yt = mt(null), [vt, Bt] = gt(null), [Z, ct] = gt(Bi), G = Gl(Z), O = Math.max(0, ((b ?? 0) - G) / 2), F = Math.min(N ?? 0, O), ht = Math.max(F, pi), Lt = ((b ?? 0) + G) / 2;
|
|
@@ -16301,7 +16301,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16301
16301
|
textColor: U,
|
|
16302
16302
|
backgroundColor: st,
|
|
16303
16303
|
dividerColor: B,
|
|
16304
|
-
textHoverColor:
|
|
16304
|
+
textHoverColor: A,
|
|
16305
16305
|
backgroundHoverColor: X,
|
|
16306
16306
|
dividerHoverColor: j
|
|
16307
16307
|
}, Wp, kp), Rt = a && a !== "default" ? `${l}-state-${a}` : "", Dt = `${!n || i ? v === "default" ? `${l}-entry-hover-default` : v === "blinds" ? `${l}-entry-hover-blinds` : v === "reveal" ? `${l}-entry-hover-reveal` : "" : ""} ${Rt}`.trim(), D = v === "reveal" && (!n || i), ut = (L == null ? void 0 : L[0]) ?? !1, P = (L == null ? void 0 : L[1]) ?? !1, J = mt(t), q = mt(r);
|
|
@@ -16364,17 +16364,17 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16364
16364
|
t.DColumnPaddingBottom,
|
|
16365
16365
|
t.EColumnPaddingBottom
|
|
16366
16366
|
]
|
|
16367
|
-
),
|
|
16367
|
+
), At = kt(() => Array.isArray(I) && I.length > 0 ? I : [...Vn], [I]), Mt = kt(
|
|
16368
16368
|
() => Up(
|
|
16369
|
-
|
|
16369
|
+
At,
|
|
16370
16370
|
d,
|
|
16371
16371
|
tt,
|
|
16372
16372
|
ft,
|
|
16373
16373
|
St,
|
|
16374
16374
|
Xt
|
|
16375
16375
|
),
|
|
16376
|
-
[
|
|
16377
|
-
), Jt =
|
|
16376
|
+
[At, d, tt, ft, St, Xt]
|
|
16377
|
+
), Jt = Ai(t), dt = kt(
|
|
16378
16378
|
() => on.slice(0, d).map((et) => tt[et]),
|
|
16379
16379
|
[d, tt]
|
|
16380
16380
|
), Nt = kt(
|
|
@@ -16419,7 +16419,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16419
16419
|
Yt,
|
|
16420
16420
|
f ?? 0,
|
|
16421
16421
|
n ?? !1
|
|
16422
|
-
).borderTopWidth, Ze = vt != null ? `${vt}px` : `calc(${ze} + ${xt(Ce)})`, un = h ? "rowPaddingTopB" : "rowPaddingTop", qt = Mt[0],
|
|
16422
|
+
).borderTopWidth, Ze = vt != null ? `${vt}px` : `calc(${ze} + ${xt(Ce)})`, un = h ? "rowPaddingTopB" : "rowPaddingTop", qt = Mt[0], Ae = Mt[Mt.length - 1], Te = Pt[0], ce = Pt[Pt.length - 1], $e = qt && Te ? Math.max(Te.paddingLeft, pi) : 0, Ke = Ae && ce ? Math.max(ce.paddingRight, pi) : 0, bn = Jt, Ve = (et) => {
|
|
16423
16423
|
const Ct = ot.current;
|
|
16424
16424
|
if (!Ct)
|
|
16425
16425
|
return { x: 0, y: 0 };
|
|
@@ -16534,14 +16534,14 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16534
16534
|
de.style.transform = "";
|
|
16535
16535
|
const fe = de.querySelector(`.${Pe}`);
|
|
16536
16536
|
fe && (fe.style.minHeight = "", fe.style.height = "");
|
|
16537
|
-
const
|
|
16538
|
-
|
|
16537
|
+
const _e = de.querySelector(`.${l}-list-col-title`);
|
|
16538
|
+
_e && (_e.style.transform = "");
|
|
16539
16539
|
});
|
|
16540
16540
|
}), Se.forEach((zt) => {
|
|
16541
16541
|
const de = Array.from(zt.querySelectorAll("[data-list-col]"));
|
|
16542
16542
|
Lp(zt, de, Pe);
|
|
16543
16543
|
}), et.offsetHeight, Se.forEach((zt) => {
|
|
16544
|
-
const de = Array.from(zt.querySelectorAll("[data-list-col]")), fe = zt.getBoundingClientRect().top,
|
|
16544
|
+
const de = Array.from(zt.querySelectorAll("[data-list-col]")), fe = zt.getBoundingClientRect().top, _e = /* @__PURE__ */ new Map(), mn = de.map((oe) => {
|
|
16545
16545
|
const qe = oe.querySelector(`.${l}-list-col-title`), Ge = {
|
|
16546
16546
|
el: oe,
|
|
16547
16547
|
titleEl: qe,
|
|
@@ -16549,12 +16549,12 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16549
16549
|
kind: oe.getAttribute("data-valign") ?? "top",
|
|
16550
16550
|
anchor: oe.getAttribute("data-valign-anchor")
|
|
16551
16551
|
};
|
|
16552
|
-
return
|
|
16552
|
+
return _e.set(Ge.letter, Ge), Ge;
|
|
16553
16553
|
}), me = /* @__PURE__ */ new Map(), an = (oe, qe) => {
|
|
16554
16554
|
const Ge = me.get(oe.letter);
|
|
16555
16555
|
if (Ge !== void 0) return Ge;
|
|
16556
|
-
const
|
|
16557
|
-
if (oe.kind !== "baseline" || !
|
|
16556
|
+
const _n = oe.anchor ? _e.get(oe.anchor) : void 0;
|
|
16557
|
+
if (oe.kind !== "baseline" || !_n || qe.has(oe.letter)) {
|
|
16558
16558
|
const Wn = sr(
|
|
16559
16559
|
oe,
|
|
16560
16560
|
fe,
|
|
@@ -16564,15 +16564,15 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16564
16564
|
return me.set(oe.letter, Wn), Wn;
|
|
16565
16565
|
}
|
|
16566
16566
|
qe.add(oe.letter);
|
|
16567
|
-
const Un = an(
|
|
16567
|
+
const Un = an(_n, qe);
|
|
16568
16568
|
qe.delete(oe.letter);
|
|
16569
16569
|
const Gn = sr(
|
|
16570
16570
|
oe,
|
|
16571
16571
|
fe,
|
|
16572
16572
|
Pe,
|
|
16573
16573
|
Ie
|
|
16574
|
-
),
|
|
16575
|
-
Ep(oe.titleEl,
|
|
16574
|
+
), An = Un - Gn;
|
|
16575
|
+
Ep(oe.titleEl, An);
|
|
16576
16576
|
const ai = sr(
|
|
16577
16577
|
oe,
|
|
16578
16578
|
fe,
|
|
@@ -16641,14 +16641,14 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16641
16641
|
ref: Ct === 0 ? (It) => {
|
|
16642
16642
|
yt.current = It;
|
|
16643
16643
|
} : void 0,
|
|
16644
|
-
className: `${l}-list-item${Ft ||
|
|
16644
|
+
className: `${l}-list-item${Ft || _ === "always" ? ` ${l}-list-item-has-link` : ""}`,
|
|
16645
16645
|
...Ft ? { href: et.link, target: "_blank" } : {},
|
|
16646
16646
|
style: te,
|
|
16647
16647
|
onMouseEnter: (It) => {
|
|
16648
|
-
D && (Ft ||
|
|
16648
|
+
D && (Ft || _ === "always") && Wa(It, l), M && In(et, It);
|
|
16649
16649
|
},
|
|
16650
16650
|
onMouseLeave: (It) => {
|
|
16651
|
-
D && (Ft ||
|
|
16651
|
+
D && (Ft || _ === "always") && ka(It, l);
|
|
16652
16652
|
},
|
|
16653
16653
|
children: [
|
|
16654
16654
|
Vt > 0 && /* @__PURE__ */ s(
|
|
@@ -16666,7 +16666,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16666
16666
|
style: h ? void 0 : { minHeight: xt(se) },
|
|
16667
16667
|
children: [
|
|
16668
16668
|
Mt.map((It, We) => {
|
|
16669
|
-
const Se = We === Mt.length - 1, Pe = Pt[We], Ie = It.paddingBottom, zt = gp(et.cells[It.key]), de = h && zt && Ie > 0, fe = h ? { minHeight: xt(se) } : { width: xt(Gt[We]) },
|
|
16669
|
+
const Se = We === Mt.length - 1, Pe = Pt[We], Ie = It.paddingBottom, zt = gp(et.cells[It.key]), de = h && zt && Ie > 0, fe = h ? { minHeight: xt(se) } : { width: xt(Gt[We]) }, _e = h ? {
|
|
16670
16670
|
paddingLeft: xt(F),
|
|
16671
16671
|
paddingRight: xt(F)
|
|
16672
16672
|
} : {
|
|
@@ -16695,7 +16695,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16695
16695
|
{
|
|
16696
16696
|
className: `${l}-list-col${Se ? ` ${l}-list-col-last` : ""}`,
|
|
16697
16697
|
style: {
|
|
16698
|
-
...
|
|
16698
|
+
..._e,
|
|
16699
16699
|
...fe,
|
|
16700
16700
|
...h ? { justifyContent: Fa(me.kind) } : {}
|
|
16701
16701
|
},
|
|
@@ -16710,7 +16710,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16710
16710
|
`${l}-text-tight-leading`
|
|
16711
16711
|
),
|
|
16712
16712
|
style: {
|
|
16713
|
-
...Na(
|
|
16713
|
+
...Na(_o(t, It.textPrefix), n),
|
|
16714
16714
|
...Oa(t, It.textPrefix, l, n),
|
|
16715
16715
|
...h ? {} : $p(me.kind)
|
|
16716
16716
|
},
|
|
@@ -16855,7 +16855,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16855
16855
|
}
|
|
16856
16856
|
}
|
|
16857
16857
|
) }, "row-padding-handles"),
|
|
16858
|
-
u && !h && qt &&
|
|
16858
|
+
u && !h && qt && Ae && /* @__PURE__ */ z("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
16859
16859
|
/* @__PURE__ */ s(
|
|
16860
16860
|
De,
|
|
16861
16861
|
{
|
|
@@ -16883,7 +16883,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16883
16883
|
De,
|
|
16884
16884
|
{
|
|
16885
16885
|
centerXHitTop: `var(--${l}-first-entry-handle-top, 50%)`,
|
|
16886
|
-
"data-controls":
|
|
16886
|
+
"data-controls": Ae.paddingRightKey,
|
|
16887
16887
|
"data-controls-static-handle": "",
|
|
16888
16888
|
"data-controls-axis": "x",
|
|
16889
16889
|
"data-controls-variant": "column-padding",
|
|
@@ -16992,7 +16992,7 @@ function Gp({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16992
16992
|
})
|
|
16993
16993
|
] }),
|
|
16994
16994
|
Yt && (() => {
|
|
16995
|
-
const et =
|
|
16995
|
+
const et = _o(t, Tn), Ct = Sp(t.cutLabelVerticalAlign), Ft = et.textTextAlign === "justify" || h;
|
|
16996
16996
|
return /* @__PURE__ */ s(
|
|
16997
16997
|
"button",
|
|
16998
16998
|
{
|
|
@@ -20237,7 +20237,7 @@ function wo(t = {}, e) {
|
|
|
20237
20237
|
{}
|
|
20238
20238
|
);
|
|
20239
20239
|
}
|
|
20240
|
-
const om = wo(), rm =
|
|
20240
|
+
const om = wo(), rm = Ap();
|
|
20241
20241
|
function Zl(t) {
|
|
20242
20242
|
return [
|
|
20243
20243
|
ne(t, "textFontFamily"),
|
|
@@ -21101,7 +21101,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21101
21101
|
iconColor: E = "#000000",
|
|
21102
21102
|
questionHoverColor: R = "#666666",
|
|
21103
21103
|
iconHoverColor: v = "#666666",
|
|
21104
|
-
iconActiveColor:
|
|
21104
|
+
iconActiveColor: _ = "#000000",
|
|
21105
21105
|
dividerHoverColor: V = "#000000",
|
|
21106
21106
|
questionFontFamily: m,
|
|
21107
21107
|
questionFontSettings: T,
|
|
@@ -21110,7 +21110,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21110
21110
|
questionLetterSpacing: U,
|
|
21111
21111
|
questionWordSpacing: st,
|
|
21112
21112
|
questionTextAppearance: B,
|
|
21113
|
-
answerFontFamily:
|
|
21113
|
+
answerFontFamily: A,
|
|
21114
21114
|
answerFontSettings: X,
|
|
21115
21115
|
answerFontSize: j,
|
|
21116
21116
|
answerLineHeight: H,
|
|
@@ -21130,7 +21130,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21130
21130
|
}, [y]), Ot(() => {
|
|
21131
21131
|
n && !o && !i && G(/* @__PURE__ */ new Set());
|
|
21132
21132
|
}, [n, o, i]);
|
|
21133
|
-
const F = (xt) => W(xt, n ?? !1), ht = Math.max(M, Fn), Lt = Math.max(at, Fn), jt = Math.max(h, Fn), Rt = Math.max(ot, Fn), Et = Math.max(yt, Fn), Dt = Math.max(vt, Fn), D = Math.max(Bt, Fn), ut = Math.max(0, (l ?? 1) - L - f), P = Math.max(0, (l ?? 1) - yt), J = Math.max(0, (l ?? 1) - ot), q = Math.max(L, Fn), tt = Math.max(0, (l ?? 1) - M - f), ft = kt(() => ct.size === 0 ? 0 : Math.min(...ct), [ct]), St = Wt((xt) => ct.has(xt), [ct]), Xt = O && b === "default" ? `${r}-entry-hover-default` : "",
|
|
21133
|
+
const F = (xt) => W(xt, n ?? !1), ht = Math.max(M, Fn), Lt = Math.max(at, Fn), jt = Math.max(h, Fn), Rt = Math.max(ot, Fn), Et = Math.max(yt, Fn), Dt = Math.max(vt, Fn), D = Math.max(Bt, Fn), ut = Math.max(0, (l ?? 1) - L - f), P = Math.max(0, (l ?? 1) - yt), J = Math.max(0, (l ?? 1) - ot), q = Math.max(L, Fn), tt = Math.max(0, (l ?? 1) - M - f), ft = kt(() => ct.size === 0 ? 0 : Math.min(...ct), [ct]), St = Wt((xt) => ct.has(xt), [ct]), Xt = O && b === "default" ? `${r}-entry-hover-default` : "", At = p ?? "", Mt = At !== "", Jt = $.replace(/^rotate /, ""), dt = `${r}-icon-anim-${Jt}`, Nt = nn(Be(
|
|
21134
21134
|
Ga(
|
|
21135
21135
|
m,
|
|
21136
21136
|
T,
|
|
@@ -21144,7 +21144,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21144
21144
|
n
|
|
21145
21145
|
)), Gt = nn(Be(
|
|
21146
21146
|
Ga(
|
|
21147
|
-
|
|
21147
|
+
A,
|
|
21148
21148
|
X,
|
|
21149
21149
|
j,
|
|
21150
21150
|
H,
|
|
@@ -21171,7 +21171,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21171
21171
|
iconColor: E,
|
|
21172
21172
|
questionHoverColor: R,
|
|
21173
21173
|
iconHoverColor: v,
|
|
21174
|
-
iconActiveColor:
|
|
21174
|
+
iconActiveColor: _,
|
|
21175
21175
|
dividerHoverColor: V
|
|
21176
21176
|
}, mm, gm), ve = a && a !== "default" ? `${r}-state-${a}` : "", ke = Wt((xt) => {
|
|
21177
21177
|
O && G((Vt) => {
|
|
@@ -21309,7 +21309,7 @@ function ym({ settings: t, content: e, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
21309
21309
|
je && (Mt ? /* @__PURE__ */ s("span", { className: `${r}-icon ${r}-icon-custom ${dt}`, "aria-hidden": "true", children: /* @__PURE__ */ s(
|
|
21310
21310
|
cn,
|
|
21311
21311
|
{
|
|
21312
|
-
url:
|
|
21312
|
+
url: At,
|
|
21313
21313
|
fill: E,
|
|
21314
21314
|
hoverFill: v,
|
|
21315
21315
|
className: `${r}-icon-image`
|
|
@@ -22856,12 +22856,12 @@ const Xa = {
|
|
|
22856
22856
|
w(m);
|
|
22857
22857
|
}, [w]), E = Wt((m) => {
|
|
22858
22858
|
w(m);
|
|
22859
|
-
}, [w]), R = o > 0, v = r ? `transform ${n}ms ease` : "none",
|
|
22859
|
+
}, [w]), R = o > 0, v = r ? `transform ${n}ms ease` : "none", _ = r ? `opacity ${n}ms ease` : "none", V = o > 0 || r;
|
|
22860
22860
|
return {
|
|
22861
22861
|
isSwipeDragging: R,
|
|
22862
22862
|
backdropStyle: {
|
|
22863
22863
|
opacity: x(o),
|
|
22864
|
-
transition:
|
|
22864
|
+
transition: _
|
|
22865
22865
|
},
|
|
22866
22866
|
mediaAreaStyle: {
|
|
22867
22867
|
transform: y(o),
|
|
@@ -22871,7 +22871,7 @@ const Xa = {
|
|
|
22871
22871
|
},
|
|
22872
22872
|
overlayContentStyle: V ? {
|
|
22873
22873
|
opacity: b(o),
|
|
22874
|
-
transition:
|
|
22874
|
+
transition: _
|
|
22875
22875
|
} : void 0,
|
|
22876
22876
|
swipeHandlers: t ? {
|
|
22877
22877
|
onPointerDown: $,
|
|
@@ -22921,7 +22921,7 @@ const Xa = {
|
|
|
22921
22921
|
}, i + 64), () => {
|
|
22922
22922
|
d || (d = !0, b(), u(r - Lm(e), !1));
|
|
22923
22923
|
};
|
|
22924
|
-
}, fi = 300, Pm = 900, Im = 1500,
|
|
22924
|
+
}, fi = 300, Pm = 900, Im = 1500, _m = "cubic-bezier(0.16, 1, 0.3, 1)", Am = 3e3, $o = 50, Wm = 2, km = 16, Rm = 0.05, Mm = 1, Za = 0.5, Fm = 20, si = 4e-3, Ji = ["title1", "title2", "title3"], Nm = {
|
|
22925
22925
|
title1: "1",
|
|
22926
22926
|
title2: "2",
|
|
22927
22927
|
title3: "3"
|
|
@@ -23101,13 +23101,13 @@ const Xa = {
|
|
|
23101
23101
|
title2Width: E,
|
|
23102
23102
|
title3Width: R,
|
|
23103
23103
|
title1MarginLeft: v = 0,
|
|
23104
|
-
title2MarginLeft:
|
|
23104
|
+
title2MarginLeft: _ = 0,
|
|
23105
23105
|
title3MarginLeft: V = 0,
|
|
23106
23106
|
titleRowMarginBottom: m = 0,
|
|
23107
23107
|
titleHeaderLayout: T = "desktop",
|
|
23108
23108
|
contentMarginTop: I,
|
|
23109
23109
|
iconMarginLeft: N
|
|
23110
|
-
} = n, U = (g) => W(g, i ?? !1), st = U(l), B = U(u ?? 0.02),
|
|
23110
|
+
} = n, U = (g) => W(g, i ?? !1), st = U(l), B = U(u ?? 0.02), A = U(d ?? 0), X = U(I ?? 0), j = U(N ?? 0), { title1: H, title2: Y, title3: it } = zm(e), rt = mr("title1", pr(n, "title1"), i), M = mr("title2", pr(n, "title2"), i), at = mr("title3", pr(n, "title3"), i), h = T === "mobile", ot = !o && (!i || a), yt = ot, vt = ot, Bt = ot, Z = Ln($), ct = Z ? { "--image-aspect-ratio": Ko($) } : void 0, G = !!(H || Y || it), O = kt(
|
|
23111
23111
|
() => qm(t, H, Y, it, rt, M, at),
|
|
23112
23112
|
[t, H, Y, it, rt, M, at]
|
|
23113
23113
|
), F = kt(() => ({ title1Width: k, title2Width: E, title3Width: R }), [k, E, R]), ht = kt(() => O.map((g) => F[g.widthKey]), [O, F]), Lt = kt(() => ea(O.length, ht), [O.length, ht]), jt = kt(() => es(O.length, ht), [O.length, ht]), Rt = kt(() => O.filter((g) => g.prefix === "title1"), [O]), Et = kt(() => O.filter((g) => g.prefix === "title2" || g.prefix === "title3"), [O]), Dt = kt(() => Qa(Rt, F), [Rt, F]), D = kt(() => Qa(Et, F), [Et, F]), ut = Wt((g, K) => {
|
|
@@ -23147,10 +23147,10 @@ const Xa = {
|
|
|
23147
23147
|
), J = P(m ?? 0), q = kt(
|
|
23148
23148
|
() => ({
|
|
23149
23149
|
title1MarginLeft: v,
|
|
23150
|
-
title2MarginLeft:
|
|
23150
|
+
title2MarginLeft: _,
|
|
23151
23151
|
title3MarginLeft: V
|
|
23152
23152
|
}),
|
|
23153
|
-
[v,
|
|
23153
|
+
[v, _, V]
|
|
23154
23154
|
), tt = Wt(
|
|
23155
23155
|
(g) => O.slice(0, g + 1).reduce(
|
|
23156
23156
|
(K, Q, lt) => K + (Q != null && Q.marginLeftKey ? q[Q.marginLeftKey] ?? 0 : 0) + (Lt[lt] ?? 0),
|
|
@@ -23172,7 +23172,7 @@ const Xa = {
|
|
|
23172
23172
|
return St(g) + (K.marginLeftKey ? q[K.marginLeftKey] ?? 0 : 0) + (D.resolved[g] ?? 0);
|
|
23173
23173
|
},
|
|
23174
23174
|
[Et, D.resolved, St, q]
|
|
23175
|
-
),
|
|
23175
|
+
), At = (g, K) => {
|
|
23176
23176
|
const Q = g.marginLeftKey ? q[g.marginLeftKey] ?? 0 : 0, { effectiveWidth: lt, resolvedWidth: bt, maxWidth: ue } = ut(g, K), Re = o && K === "two-row-top";
|
|
23177
23177
|
return /* @__PURE__ */ z(
|
|
23178
23178
|
"div",
|
|
@@ -23346,14 +23346,14 @@ const Xa = {
|
|
|
23346
23346
|
}), ve = mt(null), ke = mt(null), Fe = mt(0), Ne = mt("forward"), xt = mt(0), Vt = mt(null), Zt = mt(!1), se = mt(null), Ce = e.length > 1 && (!o || !!a), je = Ce ? 3 : 1, ze = kt(
|
|
23347
23347
|
() => Array.from({ length: je }, () => e).flat(),
|
|
23348
23348
|
[e, je]
|
|
23349
|
-
), [Ze, un] = gt(!1), [qt,
|
|
23349
|
+
), [Ze, un] = gt(!1), [qt, Ae] = gt(!1), [Te, ce] = gt(!0), [$e, Ke] = gt(0), bn = mt($e);
|
|
23350
23350
|
bn.current = $e;
|
|
23351
23351
|
const Ve = mt(null), In = mt(!1), re = mt(null), Ue = mt(null), pn = yt && !Te, Ht = Wt(() => {
|
|
23352
23352
|
yt && (ce(!0), Ue.current && clearTimeout(Ue.current), Ue.current = setTimeout(() => {
|
|
23353
23353
|
Yt.current.isActive || ce(!1);
|
|
23354
|
-
},
|
|
23354
|
+
}, Am));
|
|
23355
23355
|
}, [yt]), he = Wt(() => {
|
|
23356
|
-
o || In.current || (In.current = !0,
|
|
23356
|
+
o || In.current || (In.current = !0, Ae(!1), re.current = setTimeout(() => {
|
|
23357
23357
|
r();
|
|
23358
23358
|
}, fi));
|
|
23359
23359
|
}, [o, r]), He = () => /* @__PURE__ */ z(
|
|
@@ -23424,12 +23424,12 @@ const Xa = {
|
|
|
23424
23424
|
return /* @__PURE__ */ z(ie, { children: [
|
|
23425
23425
|
/* @__PURE__ */ z("div", { className: `${t}-header-row-top`, children: [
|
|
23426
23426
|
(v ?? 0) > 0 || o ? et() : null,
|
|
23427
|
-
g &&
|
|
23427
|
+
g && At(g, "two-row-top"),
|
|
23428
23428
|
x && He()
|
|
23429
23429
|
] }),
|
|
23430
23430
|
Q ? /* @__PURE__ */ z("div", { className: `${t}-header-row-bottom-wrap`, children: [
|
|
23431
23431
|
K.length > 0 ? /* @__PURE__ */ z("div", { className: `${t}-header-row-bottom`, children: [
|
|
23432
|
-
K.map((lt) =>
|
|
23432
|
+
K.map((lt) => At(lt, "two-row-bottom")),
|
|
23433
23433
|
o && /* @__PURE__ */ z(ie, { children: [
|
|
23434
23434
|
dt(),
|
|
23435
23435
|
Nt()
|
|
@@ -23454,7 +23454,7 @@ const Xa = {
|
|
|
23454
23454
|
] });
|
|
23455
23455
|
}, Ft = () => /* @__PURE__ */ z(ie, { children: [
|
|
23456
23456
|
(v ?? 0) > 0 || o ? et("single-row") : null,
|
|
23457
|
-
O.map((g) =>
|
|
23457
|
+
O.map((g) => At(g, "single-row")),
|
|
23458
23458
|
o ? /* @__PURE__ */ z(ie, { children: [
|
|
23459
23459
|
Mt(),
|
|
23460
23460
|
Jt()
|
|
@@ -23497,7 +23497,7 @@ const Xa = {
|
|
|
23497
23497
|
}, fe = (g) => {
|
|
23498
23498
|
const K = Pt.current;
|
|
23499
23499
|
return !g || !K ? !1 : g.offsetWidth > K.clientWidth + 1;
|
|
23500
|
-
},
|
|
23500
|
+
}, _e = (g) => {
|
|
23501
23501
|
Pt.current && le.current.forEach((K) => {
|
|
23502
23502
|
K && (K.style.scrollSnapAlign = fe(K) && g === "backward" ? "end" : "start");
|
|
23503
23503
|
});
|
|
@@ -23521,7 +23521,7 @@ const Xa = {
|
|
|
23521
23521
|
(g = ke.current) == null || g.call(ke), ke.current = null;
|
|
23522
23522
|
}, Ge = () => {
|
|
23523
23523
|
Vt.current !== null && (cancelAnimationFrame(Vt.current), Vt.current = null), Zt.current = !1;
|
|
23524
|
-
},
|
|
23524
|
+
}, _n = () => {
|
|
23525
23525
|
const g = Pt.current;
|
|
23526
23526
|
if (!g) {
|
|
23527
23527
|
Vt.current = null, Zt.current = !1;
|
|
@@ -23532,7 +23532,7 @@ const Xa = {
|
|
|
23532
23532
|
g.scrollLeft = xt.current, zt(), me(), Vt.current = null, Zt.current = !1;
|
|
23533
23533
|
return;
|
|
23534
23534
|
}
|
|
23535
|
-
g.scrollLeft += K * Rm, zt(), me(), Ht(), Vt.current = requestAnimationFrame(
|
|
23535
|
+
g.scrollLeft += K * Rm, zt(), me(), Ht(), Vt.current = requestAnimationFrame(_n);
|
|
23536
23536
|
}, Un = () => {
|
|
23537
23537
|
const g = pe.current;
|
|
23538
23538
|
g && (g.style.transition = "", g.style.transform = "", g.style.willChange = "");
|
|
@@ -23541,7 +23541,7 @@ const Xa = {
|
|
|
23541
23541
|
const bt = Q ?? de() % e.length, ue = de() % e.length;
|
|
23542
23542
|
fetch("http://127.0.0.1:7916/ingest/05b80f60-0d98-4176-9acb-551465211f52", { method: "POST", headers: { "Content-Type": "application/json", "X-Debug-Session-Id": "8d1a00" }, body: JSON.stringify({ sessionId: "8d1a00", runId: "pre-fix-2", hypothesisId: "K", location: "LightboxOverlay.tsx:finishStripScroll", message: "scroll settled", data: { targetLeft: K, scrollLeft: g.scrollLeft, intendedIndex: bt, actualIndex: ue, indexMismatch: bt !== ue }, timestamp: Date.now() }) }).catch(() => {
|
|
23543
23543
|
}), oe(!0), lt == null || lt();
|
|
23544
|
-
},
|
|
23544
|
+
}, An = (g, { behavior: K = "smooth", activeIndex: Q, onComplete: lt } = {}) => {
|
|
23545
23545
|
const bt = Pt.current, ue = pe.current;
|
|
23546
23546
|
if (!bt || !ue) return;
|
|
23547
23547
|
if (Ge(), qe(), oe(!1), K === "auto") {
|
|
@@ -23556,7 +23556,7 @@ const Xa = {
|
|
|
23556
23556
|
);
|
|
23557
23557
|
ke.current = Em(bt, ue, g, {
|
|
23558
23558
|
duration: S,
|
|
23559
|
-
easing:
|
|
23559
|
+
easing: _m,
|
|
23560
23560
|
onComplete: () => {
|
|
23561
23561
|
ke.current = null, Gn(bt, g, Q, lt);
|
|
23562
23562
|
}
|
|
@@ -23564,7 +23564,7 @@ const Xa = {
|
|
|
23564
23564
|
}, ai = (g = "smooth") => {
|
|
23565
23565
|
if (!Pt.current || e.length === 0) return;
|
|
23566
23566
|
const Q = de(), lt = le.current[Q];
|
|
23567
|
-
lt &&
|
|
23567
|
+
lt && An(lt.offsetLeft, { behavior: g, activeIndex: Q % e.length });
|
|
23568
23568
|
}, Wn = (g, K = "smooth") => {
|
|
23569
23569
|
const Q = Pt.current;
|
|
23570
23570
|
if (!Q || e.length === 0) return;
|
|
@@ -23580,14 +23580,14 @@ const Xa = {
|
|
|
23580
23580
|
}
|
|
23581
23581
|
const ge = lt < 0 && fe(wt) ? wt.offsetLeft + wt.offsetWidth - Q.clientWidth : wt.offsetLeft, ye = Tt % e.length, ee = de(Q.scrollLeft);
|
|
23582
23582
|
fetch("http://127.0.0.1:7916/ingest/05b80f60-0d98-4176-9acb-551465211f52", { method: "POST", headers: { "Content-Type": "application/json", "X-Debug-Session-Id": "8d1a00" }, body: JSON.stringify({ sessionId: "8d1a00", runId: "pre-fix-2", hypothesisId: "B_J", location: "LightboxOverlay.tsx:snapAfterDrag", message: "drag snap decision", data: { startScrollLeft: g, scrollLeft: Q.scrollLeft, scrollDelta: lt, startFlatIndex: bt, endFlatIndex: ee, scrollAdjustment: nt, targetFlatIndex: Tt, startIndex: bt % e.length, endIndex: ee % e.length, targetIndex: ye, indexDelta: ye - bt % e.length, endMinusStart: ee - bt }, timestamp: Date.now() }) }).catch(() => {
|
|
23583
|
-
}), K === "smooth" && (Ve.current = ye), Ke(ye),
|
|
23583
|
+
}), K === "smooth" && (Ve.current = ye), Ke(ye), An(ge, {
|
|
23584
23584
|
behavior: K,
|
|
23585
23585
|
activeIndex: ye,
|
|
23586
23586
|
onComplete: K === "smooth" ? an : void 0
|
|
23587
23587
|
});
|
|
23588
23588
|
}, kn = (g, K = "smooth") => {
|
|
23589
23589
|
const Q = Pt.current, lt = Ce ? e.length + g : g, bt = le.current[lt];
|
|
23590
|
-
!Q || !bt || (K === "smooth" ? Ve.current = g : Ve.current = null, Ke(g),
|
|
23590
|
+
!Q || !bt || (K === "smooth" ? Ve.current = g : Ve.current = null, Ke(g), An(bt.offsetLeft, {
|
|
23591
23591
|
behavior: K,
|
|
23592
23592
|
activeIndex: g,
|
|
23593
23593
|
onComplete: K === "smooth" ? an : void 0
|
|
@@ -23648,7 +23648,7 @@ const Xa = {
|
|
|
23648
23648
|
!vt || g.pointerType !== "mouse" || gn(g.pointerId);
|
|
23649
23649
|
};
|
|
23650
23650
|
return ts(), Ot(() => {
|
|
23651
|
-
const g = requestAnimationFrame(() =>
|
|
23651
|
+
const g = requestAnimationFrame(() => Ae(!0));
|
|
23652
23652
|
return () => {
|
|
23653
23653
|
cancelAnimationFrame(g), qe(), Rn(), re.current && clearTimeout(re.current), Ue.current && clearTimeout(Ue.current);
|
|
23654
23654
|
};
|
|
@@ -23671,9 +23671,9 @@ const Xa = {
|
|
|
23671
23671
|
return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
|
|
23672
23672
|
}, [he]), Oe(() => {
|
|
23673
23673
|
Ie();
|
|
23674
|
-
}, [
|
|
23674
|
+
}, [A, e.length, Ce]), Oe(() => {
|
|
23675
23675
|
o || kn(bn.current, "auto");
|
|
23676
|
-
}, [
|
|
23676
|
+
}, [A, o]), Oe(() => {
|
|
23677
23677
|
kn(0, "auto");
|
|
23678
23678
|
}, [e.length, Ce]), Ot(() => {
|
|
23679
23679
|
const g = Pt.current;
|
|
@@ -23686,7 +23686,7 @@ const Xa = {
|
|
|
23686
23686
|
const ue = g.scrollWidth - g.clientWidth;
|
|
23687
23687
|
xt.current = Math.max(0, Math.min(ue, xt.current));
|
|
23688
23688
|
}
|
|
23689
|
-
Ht(), Vt.current === null && (Vt.current = requestAnimationFrame(
|
|
23689
|
+
Ht(), Vt.current === null && (Vt.current = requestAnimationFrame(_n));
|
|
23690
23690
|
}
|
|
23691
23691
|
};
|
|
23692
23692
|
return g.addEventListener("wheel", K, { passive: !1 }), () => {
|
|
@@ -23702,13 +23702,13 @@ const Xa = {
|
|
|
23702
23702
|
const ue = Le.current > 0 ? Le.current * 0.5 : 1 / 0;
|
|
23703
23703
|
if (bt !== 0 && Math.abs(bt) < ue) {
|
|
23704
23704
|
const Re = bt > 0 ? "forward" : "backward";
|
|
23705
|
-
Re !== Ne.current && (Ne.current = Re,
|
|
23705
|
+
Re !== Ne.current && (Ne.current = Re, _e(Re));
|
|
23706
23706
|
}
|
|
23707
23707
|
me();
|
|
23708
23708
|
};
|
|
23709
23709
|
g.addEventListener("scroll", K, { passive: !0 });
|
|
23710
23710
|
const Q = new ResizeObserver(() => {
|
|
23711
|
-
Ie(), zt(Yt.current.isActive),
|
|
23711
|
+
Ie(), zt(Yt.current.isActive), _e(Ne.current), me();
|
|
23712
23712
|
});
|
|
23713
23713
|
return Q.observe(g), () => {
|
|
23714
23714
|
qe(), g.removeEventListener("scroll", K), Q.disconnect();
|
|
@@ -23757,8 +23757,8 @@ const Xa = {
|
|
|
23757
23757
|
onPointerUp: Qi,
|
|
23758
23758
|
onPointerCancel: Qi,
|
|
23759
23759
|
onLostPointerCapture: Jo,
|
|
23760
|
-
children: /* @__PURE__ */ s("div", { ref: pe, className: `${t}-lightbox-strip-track`, style: { gap:
|
|
23761
|
-
const Q = g.image.objectFit ?? "contain", lt = K % e.length, bt = Math.floor(K / e.length), ue = ur(
|
|
23760
|
+
children: /* @__PURE__ */ s("div", { ref: pe, className: `${t}-lightbox-strip-track`, style: { gap: A }, children: ze.map((g, K) => {
|
|
23761
|
+
const Q = g.image.objectFit ?? "contain", lt = K % e.length, bt = Math.floor(K / e.length), ue = ur(A), Re = `calc(-0.5 * (${ue} + ${A}))`;
|
|
23762
23762
|
return /* @__PURE__ */ z(
|
|
23763
23763
|
"div",
|
|
23764
23764
|
{
|
|
@@ -25259,17 +25259,17 @@ const tg = Vm(), eg = {
|
|
|
25259
25259
|
}
|
|
25260
25260
|
},
|
|
25261
25261
|
defaults: {
|
|
25262
|
-
cover: "https://cdn.cntrl.site/component-assets/
|
|
25262
|
+
cover: "https://cdn.cntrl.site/component-assets/lightbox_strip_1.jpg",
|
|
25263
25263
|
coverFit: {
|
|
25264
|
-
display: "
|
|
25265
|
-
ratioValue: "
|
|
25264
|
+
display: "fit",
|
|
25265
|
+
ratioValue: "1:1",
|
|
25266
25266
|
reversed: !1
|
|
25267
25267
|
},
|
|
25268
25268
|
closeIcon: Ym,
|
|
25269
25269
|
closeIconColor: "#ffffff",
|
|
25270
25270
|
closeIconHoverColor: "#cccccc",
|
|
25271
25271
|
thumbnailObjectFit: {
|
|
25272
|
-
display: "
|
|
25272
|
+
display: "fit",
|
|
25273
25273
|
ratioValue: "16:9",
|
|
25274
25274
|
reversed: !1
|
|
25275
25275
|
},
|
|
@@ -25314,7 +25314,7 @@ const tg = Vm(), eg = {
|
|
|
25314
25314
|
thumbnailGap: 0.02,
|
|
25315
25315
|
thumbnailMarginBottom: 7e-3,
|
|
25316
25316
|
imageGap: 5e-3,
|
|
25317
|
-
title1Width: 0.
|
|
25317
|
+
title1Width: 0.3,
|
|
25318
25318
|
title2Width: 0.13,
|
|
25319
25319
|
title3Width: 0.14,
|
|
25320
25320
|
title1MarginLeft: 0.02,
|
|
@@ -25426,38 +25426,45 @@ const tg = Vm(), eg = {
|
|
|
25426
25426
|
default: [
|
|
25427
25427
|
{
|
|
25428
25428
|
image: {
|
|
25429
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
25429
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_2.jpg",
|
|
25430
25430
|
name: "",
|
|
25431
25431
|
objectFit: "contain"
|
|
25432
25432
|
},
|
|
25433
|
-
title1: "
|
|
25434
|
-
title2: "
|
|
25435
|
-
title3: "
|
|
25433
|
+
title1: "Giovanni Andrea Vavassore",
|
|
25434
|
+
title2: "ESEMPLA",
|
|
25435
|
+
title3: "Venice, 1500"
|
|
25436
|
+
},
|
|
25437
|
+
{
|
|
25438
|
+
image: {
|
|
25439
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_3.jpg",
|
|
25440
|
+
name: "",
|
|
25441
|
+
objectFit: "contain"
|
|
25442
|
+
}
|
|
25436
25443
|
},
|
|
25437
25444
|
{
|
|
25438
25445
|
image: {
|
|
25439
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
25446
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_4.jpg",
|
|
25440
25447
|
name: "",
|
|
25441
25448
|
objectFit: "contain"
|
|
25442
25449
|
}
|
|
25443
25450
|
},
|
|
25444
25451
|
{
|
|
25445
25452
|
image: {
|
|
25446
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
25453
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_5.jpg",
|
|
25447
25454
|
name: "",
|
|
25448
25455
|
objectFit: "contain"
|
|
25449
25456
|
}
|
|
25450
25457
|
},
|
|
25451
25458
|
{
|
|
25452
25459
|
image: {
|
|
25453
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
25460
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_6.jpg",
|
|
25454
25461
|
name: "",
|
|
25455
25462
|
objectFit: "contain"
|
|
25456
25463
|
}
|
|
25457
25464
|
},
|
|
25458
25465
|
{
|
|
25459
25466
|
image: {
|
|
25460
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
25467
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_strip_7.jpg",
|
|
25461
25468
|
name: "",
|
|
25462
25469
|
objectFit: "contain"
|
|
25463
25470
|
}
|
|
@@ -25601,7 +25608,7 @@ const tg = Vm(), eg = {
|
|
|
25601
25608
|
style: o,
|
|
25602
25609
|
text: e.title3
|
|
25603
25610
|
}), a;
|
|
25604
|
-
},
|
|
25611
|
+
}, Ao = (t, e) => {
|
|
25605
25612
|
if (t <= 0)
|
|
25606
25613
|
return [];
|
|
25607
25614
|
const n = e.slice(0, t), i = n.reduce((a, r) => a + r, 0);
|
|
@@ -25620,13 +25627,13 @@ const tg = Vm(), eg = {
|
|
|
25620
25627
|
{ overflow: i - 1, widths: [] }
|
|
25621
25628
|
);
|
|
25622
25629
|
return o;
|
|
25623
|
-
}, Er = (t, e) =>
|
|
25630
|
+
}, Er = (t, e) => Ao(t, e), ti = (t, e) => {
|
|
25624
25631
|
const n = e.filter((i, o) => o !== t).reduce((i, o) => i + o, 0);
|
|
25625
25632
|
return Math.max(1 - n, 0);
|
|
25626
25633
|
}, po = (t, e) => {
|
|
25627
25634
|
const n = t.map((i) => e[i.widthKey] ?? 0);
|
|
25628
25635
|
return {
|
|
25629
|
-
resolved:
|
|
25636
|
+
resolved: Ao(t.length, n),
|
|
25630
25637
|
effective: Er(t.length, n)
|
|
25631
25638
|
};
|
|
25632
25639
|
}, pg = (t, e, n, i) => t.slice(0, i).reduce(
|
|
@@ -25736,7 +25743,7 @@ const tg = Vm(), eg = {
|
|
|
25736
25743
|
title1MarginLeft: E = 0,
|
|
25737
25744
|
title2MarginLeft: R = 0,
|
|
25738
25745
|
title3MarginLeft: v = 0,
|
|
25739
|
-
titleRowMarginBottom:
|
|
25746
|
+
titleRowMarginBottom: _ = 0,
|
|
25740
25747
|
titleHeaderLayout: V = "single-row",
|
|
25741
25748
|
countCloseGap: m = 0,
|
|
25742
25749
|
closeIcon: T,
|
|
@@ -25745,7 +25752,7 @@ const tg = Vm(), eg = {
|
|
|
25745
25752
|
closeIconHoverColor: U,
|
|
25746
25753
|
contentMarginTop: st = 0,
|
|
25747
25754
|
iconMarginRight: B = 0
|
|
25748
|
-
} = n,
|
|
25755
|
+
} = n, A = Wt((S) => W(S, i ?? !1), [i]), X = A(p ?? 0), j = `${f}%`, H = `${L}%`, Y = A(m), it = A(st), rt = A(B), M = go("title1", mo(n, "title1"), i), at = go("title2", mo(n, "title2"), i), h = go("title3", mo(n, "title3"), i), ot = go("count", mo(n, "count"), i), yt = V === "mobile", vt = !i || !!a, Bt = !o && (!i || !!a), Z = kt(() => So(e, x), [e, x]), [ct, G] = gt(r), O = Z[ct], F = O == null ? void 0 : O.entry, [ht, Lt] = gt(!1), [jt, Rt] = gt(null), [Et, Dt] = gt(!1), [D, ut] = gt(null), [P, J] = gt(!1), [q, tt] = gt(0), [ft, St] = gt(), [Xt, At] = gt(), [Mt, Jt] = gt(null), dt = mt(null), Nt = mt(0), Gt = mt(0), Pt = mt(0), pe = mt(!1), le = mt(null), Le = mt(null), Yt = mt(null), ve = mt(null), ke = mt(null), Fe = mt(null), Ne = mt(null), xt = Wt(() => {
|
|
25749
25756
|
const S = Le.current;
|
|
25750
25757
|
if (!S) return;
|
|
25751
25758
|
const nt = S.closest(`.${t}-lightbox-content-area`);
|
|
@@ -25766,7 +25773,7 @@ const tg = Vm(), eg = {
|
|
|
25766
25773
|
mediaAreaStyle: Ze,
|
|
25767
25774
|
overlayContentStyle: un,
|
|
25768
25775
|
swipeHandlers: qt,
|
|
25769
|
-
dismissAreaStyle:
|
|
25776
|
+
dismissAreaStyle: Ae
|
|
25770
25777
|
} = Ql({
|
|
25771
25778
|
enabled: Bt,
|
|
25772
25779
|
onClose: se,
|
|
@@ -25794,9 +25801,9 @@ const tg = Vm(), eg = {
|
|
|
25794
25801
|
ye ?? 0,
|
|
25795
25802
|
(ee == null ? void 0 : ee.measuredIncomingTitlesHeight) ?? 0
|
|
25796
25803
|
) || void 0;
|
|
25797
|
-
tt($t), ut(ct), J(!0), G(nt), Te(nt), Pt.current = nt, ge ? (Vt(), Ye && St(Ye), ee != null && ee.incomingTitlesMeasureWidth &&
|
|
25798
|
-
Rt(null), Dt(!1), St(void 0),
|
|
25799
|
-
}, 400)) : (Vt(), Rt(null), Dt(!1), St(void 0),
|
|
25804
|
+
tt($t), ut(ct), J(!0), G(nt), Te(nt), Pt.current = nt, ge ? (Vt(), Ye && St(Ye), ee != null && ee.incomingTitlesMeasureWidth && At(ee.incomingTitlesMeasureWidth), Rt((Tt == null ? void 0 : Tt.entryIndex) ?? null), Dt(!0), Gt.current = wt.entryIndex, dt.current = setTimeout(() => {
|
|
25805
|
+
Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), dt.current = null;
|
|
25806
|
+
}, 400)) : (Vt(), Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), Gt.current = wt.entryIndex);
|
|
25800
25807
|
}, [ct, Vt, xt, ce, Z, Te, $]), Ke = Wt(() => {
|
|
25801
25808
|
Ne.current = null;
|
|
25802
25809
|
}, []), bn = Wt((S) => {
|
|
@@ -25840,7 +25847,7 @@ const tg = Vm(), eg = {
|
|
|
25840
25847
|
};
|
|
25841
25848
|
}, []), Ot(() => {
|
|
25842
25849
|
var S;
|
|
25843
|
-
$ !== "fade" && (Gt.current = ((S = Z[ct]) == null ? void 0 : S.entryIndex) ?? 0, Vt(), Rt(null), Dt(!1), St(void 0),
|
|
25850
|
+
$ !== "fade" && (Gt.current = ((S = Z[ct]) == null ? void 0 : S.entryIndex) ?? 0, Vt(), Rt(null), Dt(!1), St(void 0), At(void 0));
|
|
25844
25851
|
}, [ct, Vt, Z, $]), Ot(() => {
|
|
25845
25852
|
const S = (nt) => {
|
|
25846
25853
|
if (nt.key === "Escape") {
|
|
@@ -25868,7 +25875,7 @@ const tg = Vm(), eg = {
|
|
|
25868
25875
|
};
|
|
25869
25876
|
return window.addEventListener("keydown", S), () => window.removeEventListener("keydown", S);
|
|
25870
25877
|
}, [$e, se, ct, Z.length]), Oe(() => {
|
|
25871
|
-
Vt(), Nt.current = 0, tt(0), ut(null), J(!1), Rt(null), Dt(!1), St(void 0),
|
|
25878
|
+
Vt(), Nt.current = 0, tt(0), ut(null), J(!1), Rt(null), Dt(!1), St(void 0), At(void 0), Jt(null), G((S) => {
|
|
25872
25879
|
const nt = Math.max(0, Z.length - 1);
|
|
25873
25880
|
return Math.min(S, nt);
|
|
25874
25881
|
});
|
|
@@ -25877,7 +25884,7 @@ const tg = Vm(), eg = {
|
|
|
25877
25884
|
const S = Math.max(0, Z.length - 1), nt = Math.min(Math.max(0, r), S);
|
|
25878
25885
|
Pt.current = nt, Gt.current = ((Tt = Z[nt]) == null ? void 0 : Tt.entryIndex) ?? 0, G(nt);
|
|
25879
25886
|
}, [r]);
|
|
25880
|
-
const re = jt !== null ? e[jt] : null, Ue = D !== null ? Z[D] : null, pn = (F == null ? void 0 : F.title1) || (F == null ? void 0 : F.title2) || (F == null ? void 0 : F.title3) || (re == null ? void 0 : re.title1) || (re == null ? void 0 : re.title2) || (re == null ? void 0 : re.title3), Ht = ug(x, Z, e), he = T !== null, He = pn || Ht || he, et = Ht && he ? { gap: Y } : void 0, Ct = `${t}-titles-stack${yt ? ` ${t}-titles-stack-stacked` : ""}`, Ft = `${t}-titles-layer-out${yt ? ` ${t}-titles-layer-out-stacked` : ""}`, Kt = _
|
|
25887
|
+
const re = jt !== null ? e[jt] : null, Ue = D !== null ? Z[D] : null, pn = (F == null ? void 0 : F.title1) || (F == null ? void 0 : F.title2) || (F == null ? void 0 : F.title3) || (re == null ? void 0 : re.title1) || (re == null ? void 0 : re.title2) || (re == null ? void 0 : re.title3), Ht = ug(x, Z, e), he = T !== null, He = pn || Ht || he, et = Ht && he ? { gap: Y } : void 0, Ct = `${t}-titles-stack${yt ? ` ${t}-titles-stack-stacked` : ""}`, Ft = `${t}-titles-layer-out${yt ? ` ${t}-titles-layer-out-stacked` : ""}`, Kt = A(_), te = kt(
|
|
25881
25888
|
() => ({
|
|
25882
25889
|
title1Width: C ?? hr.title1Width,
|
|
25883
25890
|
title2Width: w ?? hr.title2Width,
|
|
@@ -25894,7 +25901,7 @@ const tg = Vm(), eg = {
|
|
|
25894
25901
|
() => It.map((S) => te[S.widthKey]),
|
|
25895
25902
|
[It, te]
|
|
25896
25903
|
), Se = kt(
|
|
25897
|
-
() =>
|
|
25904
|
+
() => Ao(It.length, We),
|
|
25898
25905
|
[It.length, We]
|
|
25899
25906
|
), Pe = kt(
|
|
25900
25907
|
() => Er(It.length, We),
|
|
@@ -25911,7 +25918,7 @@ const tg = Vm(), eg = {
|
|
|
25911
25918
|
), fe = kt(
|
|
25912
25919
|
() => po(zt, te),
|
|
25913
25920
|
[zt, te]
|
|
25914
|
-
),
|
|
25921
|
+
), _e = Wt((S, nt) => {
|
|
25915
25922
|
const Tt = It.findIndex(($t) => $t.prefix === S.prefix);
|
|
25916
25923
|
if (!yt || nt === "single-row")
|
|
25917
25924
|
return {
|
|
@@ -25967,7 +25974,7 @@ const tg = Vm(), eg = {
|
|
|
25967
25974
|
[zt, fe.resolved, an, ae]
|
|
25968
25975
|
), qe = Wt((S, nt, Tt) => {
|
|
25969
25976
|
if (!yt || Tt === "single-row") {
|
|
25970
|
-
const ee = S.findIndex((Xn) => Xn.prefix === nt.prefix), Ye = S.map((Xn) => te[Xn.widthKey]), Qe =
|
|
25977
|
+
const ee = S.findIndex((Xn) => Xn.prefix === nt.prefix), Ye = S.map((Xn) => te[Xn.widthKey]), Qe = Ao(S.length, Ye);
|
|
25971
25978
|
return {
|
|
25972
25979
|
effectiveWidth: Er(S.length, Ye)[ee] ?? 0,
|
|
25973
25980
|
resolvedWidth: Qe[ee] ?? 0,
|
|
@@ -25993,15 +26000,15 @@ const tg = Vm(), eg = {
|
|
|
25993
26000
|
effectiveWidth: $t,
|
|
25994
26001
|
resolvedWidth: ge,
|
|
25995
26002
|
maxWidth: ye
|
|
25996
|
-
} = Tt ??
|
|
26003
|
+
} = Tt ?? _e(S, nt), ee = Math.max(wt, co), Ye = o && nt === "two-row-top";
|
|
25997
26004
|
return /* @__PURE__ */ z(
|
|
25998
26005
|
"div",
|
|
25999
26006
|
{
|
|
26000
26007
|
className: `${t}-title-cell`,
|
|
26001
26008
|
"data-title": S.prefix,
|
|
26002
26009
|
style: {
|
|
26003
|
-
width:
|
|
26004
|
-
...wt > 0 ? { marginLeft:
|
|
26010
|
+
width: A($t),
|
|
26011
|
+
...wt > 0 ? { marginLeft: A(wt) } : {}
|
|
26005
26012
|
},
|
|
26006
26013
|
children: [
|
|
26007
26014
|
/* @__PURE__ */ s("p", { className: S.className, style: S.style, children: S.text }),
|
|
@@ -26015,8 +26022,8 @@ const tg = Vm(), eg = {
|
|
|
26015
26022
|
style: {
|
|
26016
26023
|
position: "absolute",
|
|
26017
26024
|
top: 0,
|
|
26018
|
-
left:
|
|
26019
|
-
width:
|
|
26025
|
+
left: A(-wt),
|
|
26026
|
+
width: A(ee),
|
|
26020
26027
|
height: "100%",
|
|
26021
26028
|
pointerEvents: "auto"
|
|
26022
26029
|
}
|
|
@@ -26033,8 +26040,8 @@ const tg = Vm(), eg = {
|
|
|
26033
26040
|
style: {
|
|
26034
26041
|
position: "absolute",
|
|
26035
26042
|
top: 0,
|
|
26036
|
-
right:
|
|
26037
|
-
width:
|
|
26043
|
+
right: A(-ci / 2),
|
|
26044
|
+
width: A(ci),
|
|
26038
26045
|
height: "100%",
|
|
26039
26046
|
pointerEvents: "auto"
|
|
26040
26047
|
}
|
|
@@ -26044,7 +26051,7 @@ const tg = Vm(), eg = {
|
|
|
26044
26051
|
},
|
|
26045
26052
|
S.className
|
|
26046
26053
|
);
|
|
26047
|
-
},
|
|
26054
|
+
}, _n = () => /* @__PURE__ */ s(
|
|
26048
26055
|
"div",
|
|
26049
26056
|
{
|
|
26050
26057
|
...o ? {
|
|
@@ -26052,7 +26059,7 @@ const tg = Vm(), eg = {
|
|
|
26052
26059
|
"data-controls-axis": "x"
|
|
26053
26060
|
} : {},
|
|
26054
26061
|
style: {
|
|
26055
|
-
width:
|
|
26062
|
+
width: A(E ?? 0),
|
|
26056
26063
|
flexShrink: 0,
|
|
26057
26064
|
alignSelf: "stretch",
|
|
26058
26065
|
...o ? { pointerEvents: "auto" } : {}
|
|
@@ -26135,14 +26142,14 @@ const tg = Vm(), eg = {
|
|
|
26135
26142
|
)
|
|
26136
26143
|
]
|
|
26137
26144
|
}
|
|
26138
|
-
),
|
|
26145
|
+
), An = () => !Ht && !he ? null : /* @__PURE__ */ z("div", { className: `${t}-titles-row-top-controls`, style: et, children: [
|
|
26139
26146
|
Ht ? Un() : null,
|
|
26140
26147
|
he ? Gn() : null
|
|
26141
26148
|
] }), ai = (S) => {
|
|
26142
26149
|
if (!S) return null;
|
|
26143
26150
|
const nt = uo(t, S, M, at, h);
|
|
26144
26151
|
return /* @__PURE__ */ z(ie, { children: [
|
|
26145
|
-
E > 0 || o ?
|
|
26152
|
+
E > 0 || o ? _n() : null,
|
|
26146
26153
|
nt.map((Tt) => Ge(
|
|
26147
26154
|
Tt,
|
|
26148
26155
|
"single-row",
|
|
@@ -26153,7 +26160,7 @@ const tg = Vm(), eg = {
|
|
|
26153
26160
|
if (!S) return null;
|
|
26154
26161
|
const nt = uo(t, S, M, at, h), Tt = nt.find((wt) => wt.prefix === "title1");
|
|
26155
26162
|
return !Tt && !(E > 0 || o) ? null : /* @__PURE__ */ z(ie, { children: [
|
|
26156
|
-
E > 0 || o ?
|
|
26163
|
+
E > 0 || o ? _n() : null,
|
|
26157
26164
|
Tt ? Ge(
|
|
26158
26165
|
Tt,
|
|
26159
26166
|
"two-row-top",
|
|
@@ -26162,7 +26169,7 @@ const tg = Vm(), eg = {
|
|
|
26162
26169
|
] });
|
|
26163
26170
|
}, kn = (S, nt = !1) => {
|
|
26164
26171
|
const Tt = S ? uo(t, S, M, at, h) : [], wt = Tt.filter((ye) => ye.prefix === "title2" || ye.prefix === "title3"), $t = o && nt;
|
|
26165
|
-
return wt.length > 0 || $t || (
|
|
26172
|
+
return wt.length > 0 || $t || (_ ?? 0) > 0 ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom-wrap`, children: [
|
|
26166
26173
|
wt.length > 0 ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom`, children: [
|
|
26167
26174
|
wt.map((ye) => Ge(
|
|
26168
26175
|
ye,
|
|
@@ -26174,7 +26181,7 @@ const tg = Vm(), eg = {
|
|
|
26174
26181
|
Jo()
|
|
26175
26182
|
] }) : null
|
|
26176
26183
|
] }) : null,
|
|
26177
|
-
(
|
|
26184
|
+
(_ ?? 0) > 0 || $t ? /* @__PURE__ */ s(
|
|
26178
26185
|
"div",
|
|
26179
26186
|
{
|
|
26180
26187
|
"data-controls": $t ? "titleRowMarginBottom" : void 0,
|
|
@@ -26193,7 +26200,7 @@ const tg = Vm(), eg = {
|
|
|
26193
26200
|
}, Rn = (S, nt = !1) => /* @__PURE__ */ z(ie, { children: [
|
|
26194
26201
|
/* @__PURE__ */ z("div", { className: `${t}-titles-row-top`, children: [
|
|
26195
26202
|
Wn(S),
|
|
26196
|
-
|
|
26203
|
+
An()
|
|
26197
26204
|
] }),
|
|
26198
26205
|
kn(S, nt)
|
|
26199
26206
|
] }), gn = (S) => yt ? /* @__PURE__ */ s("div", { className: `${t}-titles-row-two-row`, style: { width: "100%" }, children: Rn(S) }) : S ? /* @__PURE__ */ s("div", { className: `${t}-titles-row`, style: { width: "100%" }, children: ai(S) }) : null, Xo = () => {
|
|
@@ -26210,7 +26217,7 @@ const tg = Vm(), eg = {
|
|
|
26210
26217
|
position: "absolute",
|
|
26211
26218
|
top: 0,
|
|
26212
26219
|
left: 0,
|
|
26213
|
-
width:
|
|
26220
|
+
width: A($t),
|
|
26214
26221
|
height: "100%",
|
|
26215
26222
|
pointerEvents: "auto"
|
|
26216
26223
|
}
|
|
@@ -26235,8 +26242,8 @@ const tg = Vm(), eg = {
|
|
|
26235
26242
|
style: {
|
|
26236
26243
|
position: "absolute",
|
|
26237
26244
|
top: 0,
|
|
26238
|
-
left:
|
|
26239
|
-
width:
|
|
26245
|
+
left: A(ye),
|
|
26246
|
+
width: A(ee),
|
|
26240
26247
|
height: "100%",
|
|
26241
26248
|
pointerEvents: "auto"
|
|
26242
26249
|
}
|
|
@@ -26258,8 +26265,8 @@ const tg = Vm(), eg = {
|
|
|
26258
26265
|
style: {
|
|
26259
26266
|
position: "absolute",
|
|
26260
26267
|
top: 0,
|
|
26261
|
-
left:
|
|
26262
|
-
width:
|
|
26268
|
+
left: A($t),
|
|
26269
|
+
width: A(ci),
|
|
26263
26270
|
height: "100%",
|
|
26264
26271
|
pointerEvents: "auto"
|
|
26265
26272
|
}
|
|
@@ -26267,7 +26274,7 @@ const tg = Vm(), eg = {
|
|
|
26267
26274
|
) }, `${S.widthKey}-junction`);
|
|
26268
26275
|
}), Qi = () => zt.flatMap((S, nt) => {
|
|
26269
26276
|
if (!S.marginLeftKey) return [];
|
|
26270
|
-
const Tt = ae[S.marginLeftKey] ?? 0, wt = an(nt), $t = Math.max(Tt, co), { resolvedWidth: ge } =
|
|
26277
|
+
const Tt = ae[S.marginLeftKey] ?? 0, wt = an(nt), $t = Math.max(Tt, co), { resolvedWidth: ge } = _e(S, "two-row-bottom");
|
|
26271
26278
|
return /* @__PURE__ */ s(
|
|
26272
26279
|
"div",
|
|
26273
26280
|
{
|
|
@@ -26278,8 +26285,8 @@ const tg = Vm(), eg = {
|
|
|
26278
26285
|
style: {
|
|
26279
26286
|
position: "absolute",
|
|
26280
26287
|
top: 0,
|
|
26281
|
-
left:
|
|
26282
|
-
width:
|
|
26288
|
+
left: A(wt),
|
|
26289
|
+
width: A($t),
|
|
26283
26290
|
height: "100%",
|
|
26284
26291
|
pointerEvents: "auto"
|
|
26285
26292
|
}
|
|
@@ -26287,7 +26294,7 @@ const tg = Vm(), eg = {
|
|
|
26287
26294
|
S.marginLeftKey
|
|
26288
26295
|
);
|
|
26289
26296
|
}), Jo = () => zt.map((S, nt) => {
|
|
26290
|
-
const { maxWidth: Tt } =
|
|
26297
|
+
const { maxWidth: Tt } = _e(S, "two-row-bottom"), $t = oe(nt) - ci / 2;
|
|
26291
26298
|
return /* @__PURE__ */ s("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ s(
|
|
26292
26299
|
"div",
|
|
26293
26300
|
{
|
|
@@ -26299,8 +26306,8 @@ const tg = Vm(), eg = {
|
|
|
26299
26306
|
style: {
|
|
26300
26307
|
position: "absolute",
|
|
26301
26308
|
top: 0,
|
|
26302
|
-
left:
|
|
26303
|
-
width:
|
|
26309
|
+
left: A($t),
|
|
26310
|
+
width: A(ci),
|
|
26304
26311
|
height: "100%",
|
|
26305
26312
|
pointerEvents: "auto"
|
|
26306
26313
|
}
|
|
@@ -26363,7 +26370,7 @@ const tg = Vm(), eg = {
|
|
|
26363
26370
|
] }, `${$t.url}-${ge}`))
|
|
26364
26371
|
}
|
|
26365
26372
|
);
|
|
26366
|
-
}, bt = !!(F != null && F.title2 || F != null && F.title3 || re != null && re.title2 || re != null && re.title3 || (
|
|
26373
|
+
}, bt = !!(F != null && F.title2 || F != null && F.title3 || re != null && re.title2 || re != null && re.title3 || (_ ?? 0) > 0 || o), ue = () => /* @__PURE__ */ z(
|
|
26367
26374
|
"div",
|
|
26368
26375
|
{
|
|
26369
26376
|
style: {
|
|
@@ -26424,7 +26431,7 @@ const tg = Vm(), eg = {
|
|
|
26424
26431
|
]
|
|
26425
26432
|
}
|
|
26426
26433
|
),
|
|
26427
|
-
|
|
26434
|
+
An()
|
|
26428
26435
|
] }),
|
|
26429
26436
|
bt ? /* @__PURE__ */ z("div", { className: `${t}-titles-row-bottom-area`, children: [
|
|
26430
26437
|
re && Et ? /* @__PURE__ */ s("div", { className: `${Ft} ${t}-titles-layer-out-bottom ${t}-titles-fade-out`, children: kn(re) }) : null,
|
|
@@ -26497,7 +26504,7 @@ const tg = Vm(), eg = {
|
|
|
26497
26504
|
position: "relative",
|
|
26498
26505
|
width: "100%",
|
|
26499
26506
|
height: "100%",
|
|
26500
|
-
...
|
|
26507
|
+
...Ae
|
|
26501
26508
|
},
|
|
26502
26509
|
...qt,
|
|
26503
26510
|
children: [
|
|
@@ -27135,7 +27142,7 @@ const wg = ({ settings: t, content: e, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
27135
27142
|
[e]
|
|
27136
27143
|
), E = y && k.length > 0, R = !n, v = Wt(() => {
|
|
27137
27144
|
R && (w.current = !0, rg(C.current, l), C.current = !1);
|
|
27138
|
-
}, [R, l]),
|
|
27145
|
+
}, [R, l]), _ = (m = 0) => {
|
|
27139
27146
|
if (k.length === 0 || n && !i && !o) return;
|
|
27140
27147
|
const T = So(k, x), I = Math.max(0, Math.min(m, T.length - 1));
|
|
27141
27148
|
if (L(I), R) {
|
|
@@ -27183,7 +27190,7 @@ const wg = ({ settings: t, content: e, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
27183
27190
|
{
|
|
27184
27191
|
type: "button",
|
|
27185
27192
|
className: `${c}-cover ${Ln(d) ? `${c}-ratio-wrapper-cover` : `${c}-ratio-wrapper-fit`}`,
|
|
27186
|
-
onClick: () =>
|
|
27193
|
+
onClick: () => _(),
|
|
27187
27194
|
style: {
|
|
27188
27195
|
display: "block",
|
|
27189
27196
|
padding: 0,
|
|
@@ -28297,10 +28304,10 @@ const Eg = fg(), Pg = {
|
|
|
28297
28304
|
}
|
|
28298
28305
|
},
|
|
28299
28306
|
defaults: {
|
|
28300
|
-
cover: "https://cdn.cntrl.site/component-assets/
|
|
28307
|
+
cover: "https://cdn.cntrl.site/component-assets/lightbox_journal_1.jpg",
|
|
28301
28308
|
coverFit: {
|
|
28302
|
-
display: "
|
|
28303
|
-
ratioValue: "
|
|
28309
|
+
display: "fit",
|
|
28310
|
+
ratioValue: "1:1",
|
|
28304
28311
|
reversed: !1
|
|
28305
28312
|
},
|
|
28306
28313
|
closeIcon: Sg,
|
|
@@ -28468,12 +28475,12 @@ const Eg = fg(), Pg = {
|
|
|
28468
28475
|
title3: "July 1978",
|
|
28469
28476
|
image: [
|
|
28470
28477
|
{
|
|
28471
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
28478
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_journal_2.jpg",
|
|
28472
28479
|
name: "",
|
|
28473
28480
|
objectFit: "contain"
|
|
28474
28481
|
},
|
|
28475
28482
|
{
|
|
28476
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
28483
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_journal_3.jpg",
|
|
28477
28484
|
name: "",
|
|
28478
28485
|
objectFit: "contain"
|
|
28479
28486
|
}
|
|
@@ -28485,12 +28492,12 @@ const Eg = fg(), Pg = {
|
|
|
28485
28492
|
title3: "March 1979",
|
|
28486
28493
|
image: [
|
|
28487
28494
|
{
|
|
28488
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
28495
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_journal_4.jpg",
|
|
28489
28496
|
name: "",
|
|
28490
28497
|
objectFit: "contain"
|
|
28491
28498
|
},
|
|
28492
28499
|
{
|
|
28493
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
28500
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_journal_5.jpg",
|
|
28494
28501
|
name: "",
|
|
28495
28502
|
objectFit: "contain"
|
|
28496
28503
|
}
|
|
@@ -28502,7 +28509,7 @@ const Eg = fg(), Pg = {
|
|
|
28502
28509
|
title3: "January 1980",
|
|
28503
28510
|
image: [
|
|
28504
28511
|
{
|
|
28505
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
28512
|
+
url: "https://cdn.cntrl.site/component-assets/lightbox_journal_6.jpg",
|
|
28506
28513
|
name: "",
|
|
28507
28514
|
objectFit: "contain"
|
|
28508
28515
|
}
|