@cntrl-site/components 1.0.41-alpha.1 → 1.0.41-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -25
- package/dist/index.mjs +658 -612
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as l, Fragment as lt, jsxs as J } from "react/jsx-runtime";
|
|
2
|
-
import Xn, { useState as te, useEffect as We, useRef as ee, useCallback as ye, useMemo as
|
|
2
|
+
import Xn, { useState as te, useEffect as We, useRef as ee, useCallback as ye, useMemo as Be, useLayoutEffect as Dt } from "react";
|
|
3
3
|
import vt from "classnames";
|
|
4
4
|
import { s as D, u as hn, b as Co, g as sr, r as ps } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
5
|
import { createPortal as Ui, flushSync as Tc } from "react-dom";
|
|
6
6
|
function Zy(e) {
|
|
7
7
|
return e.type === "object" && e.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const Lc = "ControlSlider-module__wrapper___sHEkd", Ic = "ControlSlider-module__hoverArrow___A-dOH", Rc = "ControlSlider-module__sliderItem___QQSkR", Ec = "ControlSlider-module__sliderImage___9hRl-", Mc = "ControlSlider-module__arrow___05ghY", Pc = "ControlSlider-module__arrowVertical___tBfVN", Ac = "ControlSlider-module__nextArrow___-30Yc", kc = "ControlSlider-module__arrowInner___aEra3", Wc = "ControlSlider-module__arrowIcon___S4ztF", Fc = "ControlSlider-module__arrowImg___2dwJW", _c = "ControlSlider-module__mirror___brd6U", Hc = "ControlSlider-module__pagination___bicLF", Nc = "ControlSlider-module__paginationInner___bT-P-", Oc = "ControlSlider-module__paginationVertical___zYqKw",
|
|
9
|
+
const Lc = "ControlSlider-module__wrapper___sHEkd", Ic = "ControlSlider-module__hoverArrow___A-dOH", Rc = "ControlSlider-module__sliderItem___QQSkR", Ec = "ControlSlider-module__sliderImage___9hRl-", Mc = "ControlSlider-module__arrow___05ghY", Pc = "ControlSlider-module__arrowVertical___tBfVN", Ac = "ControlSlider-module__nextArrow___-30Yc", kc = "ControlSlider-module__arrowInner___aEra3", Wc = "ControlSlider-module__arrowIcon___S4ztF", Fc = "ControlSlider-module__arrowImg___2dwJW", _c = "ControlSlider-module__mirror___brd6U", Hc = "ControlSlider-module__pagination___bicLF", Nc = "ControlSlider-module__paginationInner___bT-P-", Oc = "ControlSlider-module__paginationVertical___zYqKw", zc = "ControlSlider-module__paginationItem___nTRbk", Bc = "ControlSlider-module__dot___p1Qun", Dc = "ControlSlider-module__activeDot___LHFaj", Vc = "ControlSlider-module__paginationInsideBottom___R3FWn", jc = "ControlSlider-module__paginationInsideTop___V-qb-", Gc = "ControlSlider-module__paginationOutsideBottom___14w8D", qc = "ControlSlider-module__paginationOutsideTop___SCLqB", Kc = "ControlSlider-module__paginationInsideLeft___yOBRZ", Uc = "ControlSlider-module__paginationInsideRight___Rtt3o", Xc = "ControlSlider-module__paginationOutsideLeft___lahaw", Yc = "ControlSlider-module__paginationOutsideRight___EtuQa", Jc = "ControlSlider-module__imgWrapper___UjEgB", Zc = "ControlSlider-module__captionBlock___dJ6-j", Qc = "ControlSlider-module__captionTextWrapper___HFlpf", ed = "ControlSlider-module__captionText___uGBVc", td = "ControlSlider-module__active___WZK4G", nd = "ControlSlider-module__withPointerEvents___t-18M", id = "ControlSlider-module__topLeftAlignment___zjnGM", od = "ControlSlider-module__topCenterAlignment___gD1xW", rd = "ControlSlider-module__topRightAlignment___NMapS", ad = "ControlSlider-module__middleLeftAlignment___OnUrY", ld = "ControlSlider-module__middleCenterAlignment___Tdkl0", sd = "ControlSlider-module__middleRightAlignment___wEbfX", cd = "ControlSlider-module__bottomLeftAlignment___cTP2-", dd = "ControlSlider-module__bottomCenterAlignment___c54fB", ud = "ControlSlider-module__bottomRightAlignment___kEwrz", pd = "ControlSlider-module__clickOverlay___DZA28", md = "ControlSlider-module__contain___pLyq7", gd = "ControlSlider-module__cover___KdDat", et = {
|
|
10
10
|
wrapper: Lc,
|
|
11
11
|
hoverArrow: Ic,
|
|
12
12
|
sliderItem: Rc,
|
|
@@ -21,8 +21,8 @@ const Lc = "ControlSlider-module__wrapper___sHEkd", Ic = "ControlSlider-module__
|
|
|
21
21
|
pagination: Hc,
|
|
22
22
|
paginationInner: Nc,
|
|
23
23
|
paginationVertical: Oc,
|
|
24
|
-
paginationItem:
|
|
25
|
-
dot:
|
|
24
|
+
paginationItem: zc,
|
|
25
|
+
dot: Bc,
|
|
26
26
|
activeDot: Dc,
|
|
27
27
|
paginationInsideBottom: Vc,
|
|
28
28
|
paginationInsideTop: jc,
|
|
@@ -417,7 +417,7 @@ function $d(e, t, n) {
|
|
|
417
417
|
set: w
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var $r = "Arrow", Cr = $r + "Left", Tr = $r + "Right", _s = $r + "Up", Hs = $r + "Down", ll = "rtl", Lr = "ttb",
|
|
420
|
+
var $r = "Arrow", Cr = $r + "Left", Tr = $r + "Right", _s = $r + "Up", Hs = $r + "Down", ll = "rtl", Lr = "ttb", zr = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
@@ -431,8 +431,8 @@ function Cd(e, t, n) {
|
|
|
431
431
|
function i(r, a, c) {
|
|
432
432
|
c = c || n.direction;
|
|
433
433
|
var s = c === ll && !a ? 1 : c === Lr ? 0 : -1;
|
|
434
|
-
return
|
|
435
|
-
var y =
|
|
434
|
+
return zr[r] && zr[r][s] || r.replace(/width|left|right/i, function(d, p) {
|
|
435
|
+
var y = zr[d.toLowerCase()][s] || d;
|
|
436
436
|
return p > 0 ? y.charAt(0).toUpperCase() + y.slice(1) : y;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
@@ -444,12 +444,12 @@ function Cd(e, t, n) {
|
|
|
444
444
|
orient: o
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var zn = "role", Ai = "tabindex", Td = "disabled", En = "aria-", Po = En + "controls", Ns = En + "current", sl = En + "selected", Sn = En + "label", Fa = En + "labelledby", Os = En + "hidden", _a = En + "orientation", vo = En + "roledescription", cl = En + "live", dl = En + "busy", ul = En + "atomic", Ha = [zn, Ai, Td, Po, Ns, Sn, Fa, Os, _a, vo], Fn = Mo + "__", ai = "is-", Br = Mo, pl = Fn + "track", Ld = Fn + "list", Ir = Fn + "slide", zs = Ir + "--clone", Id = Ir + "__container", Na = Fn + "arrows", Rr = Fn + "arrow", Bs = Rr + "--prev", Ds = Rr + "--next", Er = Fn + "pagination", Vs = Er + "__page", Rd = Fn + "progress", Ed = Rd + "__bar", Md = Fn + "toggle", Pd = Fn + "spinner", Ad = Fn + "sr", kd = ai + "initialized", wi = ai + "active", js = ai + "prev", Gs = ai + "next", ma = ai + "visible", ga = ai + "loading", qs = ai + "focus-in", Ks = ai + "overflow", Wd = [wi, ma, js, Gs, ga, qs, Ks], Fd = {
|
|
448
448
|
slide: Ir,
|
|
449
|
-
clone:
|
|
449
|
+
clone: zs,
|
|
450
450
|
arrows: Na,
|
|
451
451
|
arrow: Rr,
|
|
452
|
-
prev:
|
|
452
|
+
prev: Bs,
|
|
453
453
|
next: Ds,
|
|
454
454
|
pagination: Er,
|
|
455
455
|
page: Vs,
|
|
@@ -482,13 +482,13 @@ function Nd(e, t, n) {
|
|
|
482
482
|
Vn(d), On(a, p), On(b, y), Wn([b, w], v), Wn(a, I ? v : ["style", vo]);
|
|
483
483
|
}
|
|
484
484
|
function E() {
|
|
485
|
-
On(a, p), On(b, y), p =
|
|
485
|
+
On(a, p), On(b, y), p = B(Br), y = B(pl), kn(a, p), kn(b, y), gt(a, Sn, n.label), gt(a, Fa, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function P() {
|
|
488
|
-
b = M("." + pl), w = Eo(b, "." + Ld), ao(b && w, "A track/list element is missing."), tr(d, fs(w, "." + Ir + ":not(." +
|
|
488
|
+
b = M("." + pl), w = Eo(b, "." + Ld), ao(b && w, "A track/list element is missing."), tr(d, fs(w, "." + Ir + ":not(." + zs + ")")), bi({
|
|
489
489
|
arrows: Na,
|
|
490
490
|
pagination: Er,
|
|
491
|
-
prev:
|
|
491
|
+
prev: Bs,
|
|
492
492
|
next: Ds,
|
|
493
493
|
bar: Ed,
|
|
494
494
|
toggle: Md
|
|
@@ -503,14 +503,14 @@ function Nd(e, t, n) {
|
|
|
503
503
|
}
|
|
504
504
|
function H() {
|
|
505
505
|
var I = a.id || bd(Mo), v = n.role;
|
|
506
|
-
a.id = I, b.id = b.id || I + "-track", w.id = w.id || I + "-list", !Rn(a,
|
|
506
|
+
a.id = I, b.id = b.id || I + "-track", w.id = w.id || I + "-list", !Rn(a, zn) && a.tagName !== "SECTION" && v && gt(a, zn, v), gt(a, vo, c.carousel), gt(w, zn, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function M(I) {
|
|
509
509
|
var v = bs(a, I);
|
|
510
|
-
return v && _d(v, "." +
|
|
510
|
+
return v && _d(v, "." + Br) === a ? v : void 0;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return [I + "--" + n.type, I + "--" + n.direction, n.drag && I + "--draggable", n.isNavigation && I + "--nav", I ===
|
|
512
|
+
function B(I) {
|
|
513
|
+
return [I + "--" + n.type, I + "--" + n.direction, n.drag && I + "--draggable", n.isNavigation && I + "--nav", I === Br && wi];
|
|
514
514
|
}
|
|
515
515
|
return ho(s, {
|
|
516
516
|
setup: x,
|
|
@@ -521,8 +521,8 @@ function Nd(e, t, n) {
|
|
|
521
521
|
var _i = "slide", Ji = "loop", Ao = "fade";
|
|
522
522
|
function Od(e, t, n, i) {
|
|
523
523
|
var o = Qt(e), r = o.on, a = o.emit, c = o.bind, s = e.Components, d = e.root, p = e.options, y = p.isNavigation, b = p.updateOnMove, w = p.i18n, f = p.pagination, x = p.slideFocus, $ = s.Direction.resolve, T = Rn(i, "style"), E = Rn(i, Sn), P = n > -1, H = Eo(i, "." + Id), M;
|
|
524
|
-
function
|
|
525
|
-
P || (i.id = d.id + "-slide" + Ra(t + 1), gt(i,
|
|
524
|
+
function B() {
|
|
525
|
+
P || (i.id = d.id + "-slide" + Ra(t + 1), gt(i, zn, f ? "tabpanel" : "group"), gt(i, vo, w.slide), gt(i, Sn, E || ua(w.slideLabel, [t + 1, e.length]))), I();
|
|
526
526
|
}
|
|
527
527
|
function I() {
|
|
528
528
|
c(i, "click", Kt(a, Ea, F)), c(i, "keydown", Kt(a, Ws, F)), r([Yi, Fs, Si], L), r(Pa, K), b && r(jn, g);
|
|
@@ -535,7 +535,7 @@ function Od(e, t, n, i) {
|
|
|
535
535
|
var G = R.splide.Components.Slides.getAt(t);
|
|
536
536
|
return G ? G.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
gt(i, Sn, ua(w.slideX, (P ? n : t) + 1)), gt(i, Po, S), gt(i,
|
|
538
|
+
gt(i, Sn, ua(w.slideX, (P ? n : t) + 1)), gt(i, Po, S), gt(i, zn, x ? "button" : ""), x && Wn(i, vo);
|
|
539
539
|
}
|
|
540
540
|
function g() {
|
|
541
541
|
M || L();
|
|
@@ -567,8 +567,8 @@ function Od(e, t, n, i) {
|
|
|
567
567
|
function Z() {
|
|
568
568
|
if (e.is(Ao))
|
|
569
569
|
return se();
|
|
570
|
-
var S = xn(s.Elements.track), R = xn(i), G = $("left", !0),
|
|
571
|
-
return ur(S[G]) <= yo(R[G]) && ur(R[
|
|
570
|
+
var S = xn(s.Elements.track), R = xn(i), G = $("left", !0), z = $("right", !0);
|
|
571
|
+
return ur(S[G]) <= yo(R[G]) && ur(R[z]) <= yo(S[z]);
|
|
572
572
|
}
|
|
573
573
|
function j(S, R) {
|
|
574
574
|
var G = gn(S - t);
|
|
@@ -580,7 +580,7 @@ function Od(e, t, n, i) {
|
|
|
580
580
|
slide: i,
|
|
581
581
|
container: H,
|
|
582
582
|
isClone: P,
|
|
583
|
-
mount:
|
|
583
|
+
mount: B,
|
|
584
584
|
destroy: v,
|
|
585
585
|
update: L,
|
|
586
586
|
style: X,
|
|
@@ -588,7 +588,7 @@ function Od(e, t, n, i) {
|
|
|
588
588
|
};
|
|
589
589
|
return F;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function zd(e, t, n) {
|
|
592
592
|
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = t.Elements, s = c.slides, d = c.list, p = [];
|
|
593
593
|
function y() {
|
|
594
594
|
b(), o(on, w), o(on, b);
|
|
@@ -615,18 +615,18 @@ function Bd(e, t, n) {
|
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function $(L) {
|
|
618
|
-
return L ?
|
|
618
|
+
return L ? B(function(A) {
|
|
619
619
|
return !A.isClone;
|
|
620
620
|
}) : p;
|
|
621
621
|
}
|
|
622
622
|
function T(L) {
|
|
623
623
|
var A = t.Controller, V = A.toIndex(L), X = A.hasFocus() ? 1 : n.perPage;
|
|
624
|
-
return
|
|
624
|
+
return B(function(se) {
|
|
625
625
|
return nr(se.index, V, V + X - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function E(L) {
|
|
629
|
-
return
|
|
629
|
+
return B(L)[0];
|
|
630
630
|
}
|
|
631
631
|
function P(L, A) {
|
|
632
632
|
Ln(L, function(V) {
|
|
@@ -637,14 +637,14 @@ function Bd(e, t, n) {
|
|
|
637
637
|
}), r(on);
|
|
638
638
|
}
|
|
639
639
|
function H(L) {
|
|
640
|
-
xi(
|
|
640
|
+
xi(B(L).map(function(A) {
|
|
641
641
|
return A.slide;
|
|
642
642
|
})), r(on);
|
|
643
643
|
}
|
|
644
644
|
function M(L, A) {
|
|
645
645
|
$(A).forEach(L);
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function B(L) {
|
|
648
648
|
return p.filter(gs(L) ? L : function(A) {
|
|
649
649
|
return ei(L) ? mo(A.slide, L) : Ca(Io(L), A.index);
|
|
650
650
|
});
|
|
@@ -679,13 +679,13 @@ function Bd(e, t, n) {
|
|
|
679
679
|
add: P,
|
|
680
680
|
remove: H,
|
|
681
681
|
forEach: M,
|
|
682
|
-
filter:
|
|
682
|
+
filter: B,
|
|
683
683
|
style: I,
|
|
684
684
|
getLength: K,
|
|
685
685
|
isEnough: g
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Bd(e, t, n) {
|
|
689
689
|
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = t.Slides, s = t.Direction.resolve, d = t.Elements, p = d.root, y = d.track, b = d.list, w = c.getAt, f = c.style, x, $, T;
|
|
690
690
|
function E() {
|
|
691
691
|
P(), r(window, "resize load", Sd(Kt(a, Fi))), o([pn, on], P), o(Fi, H);
|
|
@@ -695,13 +695,13 @@ function zd(e, t, n) {
|
|
|
695
695
|
}
|
|
696
696
|
function H(F) {
|
|
697
697
|
var S = xn(p);
|
|
698
|
-
(F || $.width !== S.width || $.height !== S.height) && (In(y, "height",
|
|
698
|
+
(F || $.width !== S.width || $.height !== S.height) && (In(y, "height", B()), f(s("marginRight"), di(n.gap)), f("width", v()), f("height", K(), !0), $ = S, a(xr), T !== (T = j()) && (Nn(p, Ks, T), a(xd, T)));
|
|
699
699
|
}
|
|
700
700
|
function M(F) {
|
|
701
701
|
var S = n.padding, R = s(F ? "right" : "left");
|
|
702
702
|
return S && di(S[R] || (po(S) ? 0 : S)) || "0px";
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function B() {
|
|
705
705
|
var F = "";
|
|
706
706
|
return x && (F = I(), ao(F, "height or heightRatio is missing."), F = "calc(" + F + " - " + M(!1) + " - " + M(!0) + ")"), F;
|
|
707
707
|
}
|
|
@@ -728,8 +728,8 @@ function zd(e, t, n) {
|
|
|
728
728
|
function V(F, S) {
|
|
729
729
|
var R = w(F);
|
|
730
730
|
if (R) {
|
|
731
|
-
var G = xn(R.slide)[s("right")],
|
|
732
|
-
return gn(G -
|
|
731
|
+
var G = xn(R.slide)[s("right")], z = xn(b)[s("left")];
|
|
732
|
+
return gn(G - z) + (S ? 0 : se());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
@@ -779,8 +779,8 @@ function Vd(e, t, n) {
|
|
|
779
779
|
for (; E.length < T; )
|
|
780
780
|
tr(E, E);
|
|
781
781
|
tr(E.slice(-T), E.slice(0, T)).forEach(function(H, M) {
|
|
782
|
-
var
|
|
783
|
-
|
|
782
|
+
var B = M < T, I = x(H.slide, M);
|
|
783
|
+
B ? Ta(I, E[0].slide) : Ro(r.list, I), tr(s, I), a.register(I, M - T + (B ? 0 : P), H.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -811,9 +811,9 @@ function jd(e, t, n) {
|
|
|
811
811
|
function M() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), I(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
R !== G && F(R >
|
|
816
|
-
a(Wi), r(Yi, G,
|
|
814
|
+
function B(R, G, z, ne) {
|
|
815
|
+
R !== G && F(R > z) && (L(), v(g(X(), R > z), !0)), a(Xi), r(jn, G, z, R), P.start(G, function() {
|
|
816
|
+
a(Wi), r(Yi, G, z, R), ne && ne();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function I(R) {
|
|
@@ -821,37 +821,37 @@ function jd(e, t, n) {
|
|
|
821
821
|
}
|
|
822
822
|
function v(R, G) {
|
|
823
823
|
if (!e.is(Ao)) {
|
|
824
|
-
var
|
|
825
|
-
In(T, "transform", "translate" + f("X") + "(" +
|
|
824
|
+
var z = G ? R : K(R);
|
|
825
|
+
In(T, "transform", "translate" + f("X") + "(" + z + "px)"), R !== z && r(Fs);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function K(R) {
|
|
829
829
|
if (e.is(Ji)) {
|
|
830
|
-
var G = A(R),
|
|
831
|
-
(ne ||
|
|
830
|
+
var G = A(R), z = G > t.Controller.getEnd(), ne = G < 0;
|
|
831
|
+
(ne || z) && (R = g(R, z));
|
|
832
832
|
}
|
|
833
833
|
return R;
|
|
834
834
|
}
|
|
835
835
|
function g(R, G) {
|
|
836
|
-
var
|
|
837
|
-
return R -= x(ne * (yo(gn(
|
|
836
|
+
var z = R - j(G), ne = b();
|
|
837
|
+
return R -= x(ne * (yo(gn(z) / ne) || 1)) * (G ? 1 : -1), R;
|
|
838
838
|
}
|
|
839
839
|
function L() {
|
|
840
840
|
v(X(), !0), P.cancel();
|
|
841
841
|
}
|
|
842
842
|
function A(R) {
|
|
843
|
-
for (var G = t.Slides.get(),
|
|
843
|
+
for (var G = t.Slides.get(), z = 0, ne = 1 / 0, W = 0; W < G.length; W++) {
|
|
844
844
|
var xe = G[W].index, h = gn(V(xe, !0) - R);
|
|
845
845
|
if (h <= ne)
|
|
846
|
-
ne = h,
|
|
846
|
+
ne = h, z = xe;
|
|
847
847
|
else
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
|
-
return
|
|
850
|
+
return z;
|
|
851
851
|
}
|
|
852
852
|
function V(R, G) {
|
|
853
|
-
var
|
|
854
|
-
return G ? se(
|
|
853
|
+
var z = x(p(R - 1) - Z(R));
|
|
854
|
+
return G ? se(z) : z;
|
|
855
855
|
}
|
|
856
856
|
function X() {
|
|
857
857
|
var R = f("left");
|
|
@@ -873,12 +873,12 @@ function jd(e, t, n) {
|
|
|
873
873
|
}
|
|
874
874
|
function S(R, G) {
|
|
875
875
|
G = Lo(G) ? X() : G;
|
|
876
|
-
var
|
|
877
|
-
return
|
|
876
|
+
var z = R !== !0 && x(G) < x(j(!1)), ne = R !== !1 && x(G) > x(j(!0));
|
|
877
|
+
return z || ne;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
880
|
mount: H,
|
|
881
|
-
move:
|
|
881
|
+
move: B,
|
|
882
882
|
jump: I,
|
|
883
883
|
translate: v,
|
|
884
884
|
shift: g,
|
|
@@ -892,12 +892,12 @@ function jd(e, t, n) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Gd(e, t, n) {
|
|
895
|
-
var i = Qt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, p = t.Slides, y = p.isEnough, b = p.getLength, w = n.omitEnd, f = e.is(Ji), x = e.is(_i), $ = Kt(X, !1), T = Kt(X, !0), E = n.start || 0, P, H = E, M,
|
|
895
|
+
var i = Qt(e), o = i.on, r = i.emit, a = t.Move, c = a.getPosition, s = a.getLimit, d = a.toPosition, p = t.Slides, y = p.isEnough, b = p.getLength, w = n.omitEnd, f = e.is(Ji), x = e.is(_i), $ = Kt(X, !1), T = Kt(X, !0), E = n.start || 0, P, H = E, M, B, I;
|
|
896
896
|
function v() {
|
|
897
897
|
K(), o([pn, on, pr], K), o(xr, g);
|
|
898
898
|
}
|
|
899
899
|
function K() {
|
|
900
|
-
M = b(!0),
|
|
900
|
+
M = b(!0), B = n.perMove, I = n.perPage, P = F();
|
|
901
901
|
var h = Ii(E, 0, w ? P : M - 1);
|
|
902
902
|
h !== E && (E = h, a.reposition());
|
|
903
903
|
}
|
|
@@ -907,13 +907,13 @@ function Gd(e, t, n) {
|
|
|
907
907
|
function L(h, we, q) {
|
|
908
908
|
if (!xe()) {
|
|
909
909
|
var de = V(h), Le = j(de);
|
|
910
|
-
Le > -1 && (we || Le !== E) && (
|
|
910
|
+
Le > -1 && (we || Le !== E) && (z(Le), a.move(de, Le, H, q));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function A(h, we, q, de) {
|
|
914
914
|
t.Scroll.scroll(h, we, q, function() {
|
|
915
915
|
var Le = j(a.toIndex(c()));
|
|
916
|
-
|
|
916
|
+
z(w ? ti(Le, P) : Le), de && de();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function V(h) {
|
|
@@ -926,13 +926,13 @@ function Gd(e, t, n) {
|
|
|
926
926
|
return we;
|
|
927
927
|
}
|
|
928
928
|
function X(h, we) {
|
|
929
|
-
var q =
|
|
929
|
+
var q = B || (W() ? 1 : I), de = se(E + q * (h ? -1 : 1), E, !(B || W()));
|
|
930
930
|
return de === -1 && x && !xs(c(), s(!h), 1) ? h ? 0 : P : we ? de : j(de);
|
|
931
931
|
}
|
|
932
932
|
function se(h, we, q) {
|
|
933
933
|
if (y() || W()) {
|
|
934
934
|
var de = Z(h);
|
|
935
|
-
de !== h && (we = h, h = de, q = !1), h < 0 || h > P ? !
|
|
935
|
+
de !== h && (we = h, h = de, q = !1), h < 0 || h > P ? !B && (nr(0, h, we, !0) || nr(P, we, h, !0)) ? h = S(R(h)) : f ? h = q ? h < 0 ? -(M % I || I) : M : h : n.rewind ? h = h < 0 ? P : 0 : h = -1 : q && h !== we && (h = S(R(we) + (h < we ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
h = -1;
|
|
938
938
|
return h;
|
|
@@ -947,7 +947,7 @@ function Gd(e, t, n) {
|
|
|
947
947
|
return f ? (h + M) % M || 0 : h;
|
|
948
948
|
}
|
|
949
949
|
function F() {
|
|
950
|
-
for (var h = M - (W() || f &&
|
|
950
|
+
for (var h = M - (W() || f && B ? 1 : I); w && h-- > 0; )
|
|
951
951
|
if (d(M - 1, !0) !== d(h, !0)) {
|
|
952
952
|
h++;
|
|
953
953
|
break;
|
|
@@ -964,7 +964,7 @@ function Gd(e, t, n) {
|
|
|
964
964
|
var we = a.toIndex(h);
|
|
965
965
|
return x ? Ii(we, 0, P) : we;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function z(h) {
|
|
968
968
|
h !== E && (H = E, E = h);
|
|
969
969
|
}
|
|
970
970
|
function ne(h) {
|
|
@@ -984,7 +984,7 @@ function Gd(e, t, n) {
|
|
|
984
984
|
getPrev: T,
|
|
985
985
|
getAdjacent: X,
|
|
986
986
|
getEnd: F,
|
|
987
|
-
setIndex:
|
|
987
|
+
setIndex: z,
|
|
988
988
|
getIndex: ne,
|
|
989
989
|
toIndex: S,
|
|
990
990
|
toPage: R,
|
|
@@ -1000,7 +1000,7 @@ function Ud(e, t, n) {
|
|
|
1000
1000
|
M(), o(pn, H);
|
|
1001
1001
|
}
|
|
1002
1002
|
function H() {
|
|
1003
|
-
|
|
1003
|
+
B(), P();
|
|
1004
1004
|
}
|
|
1005
1005
|
function M() {
|
|
1006
1006
|
var A = n.arrows;
|
|
@@ -1009,7 +1009,7 @@ function Ud(e, t, n) {
|
|
|
1009
1009
|
next: x
|
|
1010
1010
|
}), fo(w, A ? "" : "none"), kn(w, T = Na + "--" + n.direction), A && (I(), L(), gt([f, x], Po, b.id), a(Es, f, x)));
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function B() {
|
|
1013
1013
|
i.destroy(), On(w, T), $ ? (xi(y ? [f, x] : w), f = x = null) : Wn([f, x], Ha);
|
|
1014
1014
|
}
|
|
1015
1015
|
function I() {
|
|
@@ -1034,7 +1034,7 @@ function Ud(e, t, n) {
|
|
|
1034
1034
|
return {
|
|
1035
1035
|
arrows: E,
|
|
1036
1036
|
mount: P,
|
|
1037
|
-
destroy:
|
|
1037
|
+
destroy: B,
|
|
1038
1038
|
update: L
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
@@ -1042,7 +1042,7 @@ var Xd = Ia + "-interval";
|
|
|
1042
1042
|
function Yd(e, t, n) {
|
|
1043
1043
|
var i = Qt(e), o = i.on, r = i.bind, a = i.emit, c = Sr(n.interval, e.go.bind(e, ">"), I), s = c.isPaused, d = t.Elements, p = t.Elements, y = p.root, b = p.toggle, w = n.autoplay, f, x, $ = w === "pause";
|
|
1044
1044
|
function T() {
|
|
1045
|
-
w && (E(), b && gt(b, Po, d.track.id), $ || P(),
|
|
1045
|
+
w && (E(), b && gt(b, Po, d.track.id), $ || P(), B());
|
|
1046
1046
|
}
|
|
1047
1047
|
function E() {
|
|
1048
1048
|
n.pauseOnHover && r(y, "mouseenter mouseleave", function(K) {
|
|
@@ -1054,15 +1054,15 @@ function Yd(e, t, n) {
|
|
|
1054
1054
|
}), o([jn, wr, on], c.rewind), o(jn, v);
|
|
1055
1055
|
}
|
|
1056
1056
|
function P() {
|
|
1057
|
-
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), x = f = $ = !1,
|
|
1057
|
+
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), x = f = $ = !1, B(), a(Aa));
|
|
1058
1058
|
}
|
|
1059
1059
|
function H(K) {
|
|
1060
|
-
K === void 0 && (K = !0), $ = !!K,
|
|
1060
|
+
K === void 0 && (K = !0), $ = !!K, B(), s() || (c.pause(), a(ka));
|
|
1061
1061
|
}
|
|
1062
1062
|
function M() {
|
|
1063
1063
|
$ || (f || x ? H(!1) : P());
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function B() {
|
|
1066
1066
|
b && (Nn(b, wi, !$), gt(b, Sn, n.i18n[$ ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function I(K) {
|
|
@@ -1119,7 +1119,7 @@ function iu(e, t, n) {
|
|
|
1119
1119
|
a(Wi), f && f(), r(Si);
|
|
1120
1120
|
}
|
|
1121
1121
|
function P(I, v, K, g) {
|
|
1122
|
-
var L = s(), A = I + (v - I) *
|
|
1122
|
+
var L = s(), A = I + (v - I) * B(g), V = (A - L) * x;
|
|
1123
1123
|
y(L + V), b && !K && p() && (x *= eu, gn(V) < Zd && T(d(p(!0)), Qd, !1, f, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function H() {
|
|
@@ -1128,7 +1128,7 @@ function iu(e, t, n) {
|
|
|
1128
1128
|
function M() {
|
|
1129
1129
|
w && !w.isPaused() && (H(), E());
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function B(I) {
|
|
1132
1132
|
var v = n.easingFunc;
|
|
1133
1133
|
return v ? v(I) : 1 - Math.pow(1 - I, 4);
|
|
1134
1134
|
}
|
|
@@ -1144,7 +1144,7 @@ var Ri = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function ou(e, t, n) {
|
|
1147
|
-
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, p = t.Scroll, y = t.Controller, b = t.Elements.track, w = t.Media.reduce, f = t.Direction, x = f.resolve, $ = f.orient, T = d.getPosition, E = d.exceededLimit, P, H, M,
|
|
1147
|
+
var i = Qt(e), o = i.on, r = i.emit, a = i.bind, c = i.unbind, s = e.state, d = t.Move, p = t.Scroll, y = t.Controller, b = t.Elements.track, w = t.Media.reduce, f = t.Direction, x = f.resolve, $ = f.orient, T = d.getPosition, E = d.exceededLimit, P, H, M, B, I, v = !1, K, g, L;
|
|
1148
1148
|
function A() {
|
|
1149
1149
|
a(b, Dr, sa, Ri), a(b, Vr, sa, Ri), a(b, Us, X, Ri), a(b, "click", j, {
|
|
1150
1150
|
capture: !0
|
|
@@ -1152,7 +1152,7 @@ function ou(e, t, n) {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
function V() {
|
|
1154
1154
|
var U = n.drag;
|
|
1155
|
-
be(!U),
|
|
1155
|
+
be(!U), B = U === "free";
|
|
1156
1156
|
}
|
|
1157
1157
|
function X(U) {
|
|
1158
1158
|
if (K = !1, !g) {
|
|
@@ -1178,8 +1178,8 @@ function ou(e, t, n) {
|
|
|
1178
1178
|
M = H, H = U, P = T();
|
|
1179
1179
|
}
|
|
1180
1180
|
function S(U) {
|
|
1181
|
-
var $e =
|
|
1182
|
-
w(!1),
|
|
1181
|
+
var $e = z(U), Se = ne($e), ge = n.rewind && n.rewindByDrag;
|
|
1182
|
+
w(!1), B ? y.scroll(Se, 0, n.snap) : e.is(Ao) ? y.go($(da($e)) < 0 ? ge ? "<" : "-" : ge ? ">" : "+") : e.is(_i) && v && ge ? y.go(E(!0) ? ">" : "<") : y.go(y.toDest(Se), !0), w(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function R(U) {
|
|
1185
1185
|
var $e = n.dragMinThreshold, Se = po($e), ge = Se && $e.mouse || 0, ce = (Se ? $e.touch : +$e) || 10;
|
|
@@ -1188,7 +1188,7 @@ function ou(e, t, n) {
|
|
|
1188
1188
|
function G(U) {
|
|
1189
1189
|
return gn(W(U)) > gn(W(U, !0));
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function z(U) {
|
|
1192
1192
|
if (e.is(Ji) || !v) {
|
|
1193
1193
|
var $e = xe(U);
|
|
1194
1194
|
if ($e && $e < ml)
|
|
@@ -1197,7 +1197,7 @@ function ou(e, t, n) {
|
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function ne(U) {
|
|
1200
|
-
return T() + da(U) * ti(gn(U) * (n.flickPower || 600),
|
|
1200
|
+
return T() + da(U) * ti(gn(U) * (n.flickPower || 600), B ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function W(U, $e) {
|
|
1203
1203
|
return we(U, $e) - we(h(U), $e);
|
|
@@ -1291,7 +1291,7 @@ function su(e, t, n) {
|
|
|
1291
1291
|
La(E.slide, lu).forEach(function(P) {
|
|
1292
1292
|
var H = Rn(P, lo), M = Rn(P, ir);
|
|
1293
1293
|
if (H !== P.src || M !== P.srcset) {
|
|
1294
|
-
var
|
|
1294
|
+
var B = n.classes.spinner, I = P.parentElement, v = Eo(I, "." + B) || Pi("span", B, I);
|
|
1295
1295
|
p.push([P, E, v]), P.src || fo(P, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
@@ -1335,7 +1335,7 @@ function cu(e, t, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function H() {
|
|
1337
1337
|
var g = e.length, L = n.classes, A = n.i18n, V = n.perPage, X = p() ? d.getEnd() + 1 : yo(g / V);
|
|
1338
|
-
$ = f || Pi("ul", L.pagination, s.track.parentElement), kn($, T = Er + "--" + I()), gt($,
|
|
1338
|
+
$ = f || Pi("ul", L.pagination, s.track.parentElement), kn($, T = Er + "--" + I()), gt($, zn, "tablist"), gt($, Sn, A.select), gt($, _a, I() === Lr ? "vertical" : "");
|
|
1339
1339
|
for (var se = 0; se < X; se++) {
|
|
1340
1340
|
var Z = Pi("li", null, $), j = Pi("button", {
|
|
1341
1341
|
class: L.page,
|
|
@@ -1343,7 +1343,7 @@ function cu(e, t, n) {
|
|
|
1343
1343
|
}, Z), F = c.getIn(se).map(function(R) {
|
|
1344
1344
|
return R.slide.id;
|
|
1345
1345
|
}), S = !p() && V > 1 ? A.pageX : A.slideX;
|
|
1346
|
-
a(j, "click", Kt(M, se)), n.paginationKeyboard && a(j, "keydown", Kt(
|
|
1346
|
+
a(j, "click", Kt(M, se)), n.paginationKeyboard && a(j, "keydown", Kt(B, se)), gt(Z, zn, "presentation"), gt(j, zn, "tab"), gt(j, Po, F.join(" ")), gt(j, Sn, ua(S, se + 1)), gt(j, Ai, -1), x.push({
|
|
1347
1347
|
li: Z,
|
|
1348
1348
|
button: j,
|
|
1349
1349
|
page: se
|
|
@@ -1353,7 +1353,7 @@ function cu(e, t, n) {
|
|
|
1353
1353
|
function M(g) {
|
|
1354
1354
|
b(">" + g, !0);
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function B(g, L) {
|
|
1357
1357
|
var A = x.length, V = Oa(L), X = I(), se = -1;
|
|
1358
1358
|
V === w(Tr, !1, X) ? se = ++g % A : V === w(Cr, !1, X) ? se = (--g + A) % A : V === "Home" ? se = 0 : V === "End" && (se = A - 1);
|
|
1359
1359
|
var Z = x[se];
|
|
@@ -1476,8 +1476,8 @@ var hu = /* @__PURE__ */ Object.freeze({
|
|
|
1476
1476
|
Media: $d,
|
|
1477
1477
|
Direction: Cd,
|
|
1478
1478
|
Elements: Nd,
|
|
1479
|
-
Slides:
|
|
1480
|
-
Layout:
|
|
1479
|
+
Slides: zd,
|
|
1480
|
+
Layout: Bd,
|
|
1481
1481
|
Clones: Vd,
|
|
1482
1482
|
Move: jd,
|
|
1483
1483
|
Controller: Gd,
|
|
@@ -1657,9 +1657,9 @@ var xu = /* @__PURE__ */ (function() {
|
|
|
1657
1657
|
return this._C.Controller.getIndex();
|
|
1658
1658
|
}
|
|
1659
1659
|
}]), e;
|
|
1660
|
-
})(),
|
|
1661
|
-
|
|
1662
|
-
|
|
1660
|
+
})(), za = xu;
|
|
1661
|
+
za.defaults = {};
|
|
1662
|
+
za.STATES = vd;
|
|
1663
1663
|
var hl = [
|
|
1664
1664
|
[ri, "onMounted"],
|
|
1665
1665
|
[pa, "onReady"],
|
|
@@ -1690,7 +1690,7 @@ var hl = [
|
|
|
1690
1690
|
[ka, "onAutoplayPause"],
|
|
1691
1691
|
[Wa, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
|
-
function
|
|
1693
|
+
function Ba(...e) {
|
|
1694
1694
|
return e.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
1696
|
function mr(e) {
|
|
@@ -1726,7 +1726,7 @@ function fa(e, t) {
|
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
1728
|
var $u = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Xn.createElement("div", {
|
|
1729
|
-
className:
|
|
1729
|
+
className: Ba("splide__track", t),
|
|
1730
1730
|
...n
|
|
1731
1731
|
}, /* @__PURE__ */ Xn.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
@@ -1736,7 +1736,7 @@ var $u = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Xn.createEleme
|
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: e, extensions: t, transition: n } = this.props, { current: i } = this.splideRef;
|
|
1739
|
-
i && (this.splide = new
|
|
1739
|
+
i && (this.splide = new za(i, e), this.bind(this.splide), this.splide.mount(t, n), this.options = fa({}, e || {}), this.slides = this.getSlides());
|
|
1740
1740
|
}
|
|
1741
1741
|
componentWillUnmount() {
|
|
1742
1742
|
this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
|
|
@@ -1781,13 +1781,13 @@ var $u = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Xn.createEleme
|
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: e, tag: t = "div", hasTrack: n = !0, children: i, ...o } = this.props;
|
|
1783
1783
|
return /* @__PURE__ */ Xn.createElement(t, {
|
|
1784
|
-
className:
|
|
1784
|
+
className: Ba("splide", e),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
1786
|
...this.omit(o, ["options", ...hl.map((r) => r[1])])
|
|
1787
1787
|
}, n ? /* @__PURE__ */ Xn.createElement($u, null, i) : i);
|
|
1788
1788
|
}
|
|
1789
1789
|
}, Va = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Xn.createElement("li", {
|
|
1790
|
-
className:
|
|
1790
|
+
className: Ba("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
1793
1793
|
/*!
|
|
@@ -1883,7 +1883,7 @@ const Ru = "SvgImage-module__svg___q3xE-", Eu = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": et.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1886
|
-
const [o, r] = te(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: p, fontSizeLineHeight: y, textAppearance: b, color: w } = n.imageCaption ?? {}, [f, x] = te(void 0), [$, T] = te(null), [E, P] = te(0), [H, M] = te(0), { direction:
|
|
1886
|
+
const [o, r] = te(null), { widthSettings: a, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: p, fontSizeLineHeight: y, textAppearance: b, color: w } = n.imageCaption ?? {}, [f, x] = te(void 0), [$, T] = te(null), [E, P] = te(0), [H, M] = te(0), { direction: B, transition: I, controls: v, pagination: K, imageCaption: g, triggers: L } = e, A = ee(I.type), { x: V, y: X } = e.controls.offset, se = (Z) => {
|
|
1887
1887
|
o && o.go(Z);
|
|
1888
1888
|
};
|
|
1889
1889
|
return We(() => {
|
|
@@ -1976,7 +1976,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1976
1976
|
...L.autoPlay !== null && {
|
|
1977
1977
|
interval: parseInt(L.autoPlay) * 1e3
|
|
1978
1978
|
},
|
|
1979
|
-
direction:
|
|
1979
|
+
direction: B === "horiz" || I.type === "fade in" ? "ltr" : "ttb",
|
|
1980
1980
|
pagination: !1,
|
|
1981
1981
|
drag: L.triggersList.drag,
|
|
1982
1982
|
perPage: 1,
|
|
@@ -2016,7 +2016,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
2018
|
className: vt(et.arrow, {
|
|
2019
|
-
[et.arrowVertical]:
|
|
2019
|
+
[et.arrowVertical]: B === "vert",
|
|
2020
2020
|
[et.hoverArrow]: v.show === "on hover"
|
|
2021
2021
|
}),
|
|
2022
2022
|
style: {
|
|
@@ -2031,7 +2031,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
className: et.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
|
-
transform: `translate(${D(V, i)}, ${D(X * (
|
|
2034
|
+
transform: `translate(${D(V, i)}, ${D(X * (B === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${B === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
2036
2036
|
children: [
|
|
2037
2037
|
v.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2053,7 +2053,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2053
2053
|
"div",
|
|
2054
2054
|
{
|
|
2055
2055
|
className: vt(et.arrow, et.nextArrow, {
|
|
2056
|
-
[et.arrowVertical]:
|
|
2056
|
+
[et.arrowVertical]: B === "vert",
|
|
2057
2057
|
[et.hoverArrow]: v.show === "on hover"
|
|
2058
2058
|
}),
|
|
2059
2059
|
style: {
|
|
@@ -2066,7 +2066,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2066
2066
|
className: et.arrowInner,
|
|
2067
2067
|
onClick: () => se("+1"),
|
|
2068
2068
|
style: {
|
|
2069
|
-
transform: `translate(${D(V * (
|
|
2069
|
+
transform: `translate(${D(V * (B === "horiz" ? -1 : 1), i)}, ${D(X, i)}) scale(${e.controls.scale / 100}) rotate(${B === "horiz" ? "0deg" : "90deg"})`
|
|
2070
2070
|
},
|
|
2071
2071
|
children: [
|
|
2072
2072
|
v.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2098,15 +2098,15 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2098
2098
|
"div",
|
|
2099
2099
|
{
|
|
2100
2100
|
className: vt(et.pagination, {
|
|
2101
|
-
[et.paginationInsideBottom]: K.position === "inside-1" &&
|
|
2102
|
-
[et.paginationInsideTop]: K.position === "inside-2" &&
|
|
2103
|
-
[et.paginationOutsideBottom]: K.position === "outside-1" &&
|
|
2104
|
-
[et.paginationOutsideTop]: K.position === "outside-2" &&
|
|
2105
|
-
[et.paginationInsideLeft]: K.position === "inside-1" &&
|
|
2106
|
-
[et.paginationInsideRight]: K.position === "inside-2" &&
|
|
2107
|
-
[et.paginationOutsideLeft]: K.position === "outside-1" &&
|
|
2108
|
-
[et.paginationOutsideRight]: K.position === "outside-2" &&
|
|
2109
|
-
[et.paginationVertical]:
|
|
2101
|
+
[et.paginationInsideBottom]: K.position === "inside-1" && B === "horiz",
|
|
2102
|
+
[et.paginationInsideTop]: K.position === "inside-2" && B === "horiz",
|
|
2103
|
+
[et.paginationOutsideBottom]: K.position === "outside-1" && B === "horiz",
|
|
2104
|
+
[et.paginationOutsideTop]: K.position === "outside-2" && B === "horiz",
|
|
2105
|
+
[et.paginationInsideLeft]: K.position === "inside-1" && B === "vert",
|
|
2106
|
+
[et.paginationInsideRight]: K.position === "inside-2" && B === "vert",
|
|
2107
|
+
[et.paginationOutsideLeft]: K.position === "outside-1" && B === "vert",
|
|
2108
|
+
[et.paginationOutsideRight]: K.position === "outside-2" && B === "vert",
|
|
2109
|
+
[et.paginationVertical]: B === "vert"
|
|
2110
2110
|
}),
|
|
2111
2111
|
children: /* @__PURE__ */ l(
|
|
2112
2112
|
"div",
|
|
@@ -2114,7 +2114,7 @@ function ku({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2114
2114
|
className: et.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
backgroundColor: K.colors[2],
|
|
2117
|
-
transform: `scale(${K.scale / 100}) translate(${D(K.offset.x, i)}, ${D(K.offset.y, i)}) rotate(${
|
|
2117
|
+
transform: `scale(${K.scale / 100}) translate(${D(K.offset.x, i)}, ${D(K.offset.y, i)}) rotate(${B === "horiz" ? "0deg" : "90deg"})`
|
|
2118
2118
|
},
|
|
2119
2119
|
children: t.map((Z, j) => /* @__PURE__ */ l(
|
|
2120
2120
|
"button",
|
|
@@ -2802,17 +2802,17 @@ async function Ou(e, t, n, i) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
return { width: o, height: r, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2806
|
-
const [i, o] = te(null), [r, a] = te([]), [c, s] = te(0), d = ee(0), [p, y] = te({ x: 0, y: 0 }), [b, w] = te(1), [f, x] = te("none"), $ = ee({ x: 0, y: 0 }), [T, E] = te(!1), { sizeType: P, imageWidth: H, randomRangeImageWidth: M } = e.imageSize, { revealPosition:
|
|
2805
|
+
function zu({ settings: e, content: t, isEditor: n }) {
|
|
2806
|
+
const [i, o] = te(null), [r, a] = te([]), [c, s] = te(0), d = ee(0), [p, y] = te({ x: 0, y: 0 }), [b, w] = te(1), [f, x] = te("none"), $ = ee({ x: 0, y: 0 }), [T, E] = te(!1), { sizeType: P, imageWidth: H, randomRangeImageWidth: M } = e.imageSize, { revealPosition: B, visible: I } = e.position, { cursorType: v, target: K, defaultCursorScale: g, defaultCursor: L, hoverCursorScale: A, hoverCursor: V } = e.cursor;
|
|
2807
2807
|
We(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
2809
|
const Z = (S, R) => {
|
|
2810
|
-
const G = i.getBoundingClientRect(),
|
|
2811
|
-
if (y({ x:
|
|
2810
|
+
const G = i.getBoundingClientRect(), z = S - G.left, ne = R - G.top;
|
|
2811
|
+
if (y({ x: z, y: ne }), v === "system") {
|
|
2812
2812
|
x("none"), w(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
|
-
const W =
|
|
2815
|
+
const W = z, xe = ne, h = document.elementFromPoint(G.left + W, G.top + xe);
|
|
2816
2816
|
if (h && h.closest("a")) {
|
|
2817
2817
|
x("none"), w(1);
|
|
2818
2818
|
return;
|
|
@@ -2842,14 +2842,14 @@ function Bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2842
2842
|
T || (x("none"), w(0));
|
|
2843
2843
|
}, [T]);
|
|
2844
2844
|
const X = async (Z, j, F, S = {}) => {
|
|
2845
|
-
const { width: R, height: G, finalWidth:
|
|
2845
|
+
const { width: R, height: G, finalWidth: z } = await Ou(
|
|
2846
2846
|
Z.image.url,
|
|
2847
2847
|
P,
|
|
2848
2848
|
H,
|
|
2849
2849
|
M
|
|
2850
2850
|
);
|
|
2851
2851
|
let ne = 0, W = 0;
|
|
2852
|
-
|
|
2852
|
+
B === "same" ? (ne = j / 2, W = F / 2) : (ne = S.x ?? Math.random() * j, W = S.y ?? Math.random() * F);
|
|
2853
2853
|
const xe = Math.min(Math.max(ne, R / 2), j - R / 2), h = Math.min(Math.max(W, G / 2), F - G / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: d.current++,
|
|
@@ -2858,17 +2858,17 @@ function Bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2858
2858
|
name: Z.image.name,
|
|
2859
2859
|
x: xe,
|
|
2860
2860
|
y: h,
|
|
2861
|
-
width:
|
|
2861
|
+
width: z
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
2864
2864
|
return We(() => {
|
|
2865
2865
|
if (!i || t.length === 0) return;
|
|
2866
2866
|
const Z = i.getBoundingClientRect(), j = Z.width, F = Z.height, S = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const G = t[0],
|
|
2869
|
-
S.push(
|
|
2868
|
+
const G = t[0], z = await X(G, j, F);
|
|
2869
|
+
S.push(z), a(S), s(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [P, H, M,
|
|
2871
|
+
}, [P, H, M, B, i]), We(() => {
|
|
2872
2872
|
I === "last One" && a((Z) => Z.length > 0 ? [Z[Z.length - 1]] : []);
|
|
2873
2873
|
}, [I]), /* @__PURE__ */ J(
|
|
2874
2874
|
"div",
|
|
@@ -2879,8 +2879,8 @@ function Bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2879
2879
|
const j = i.getBoundingClientRect(), F = Z.clientX - j.left, S = Z.clientY - j.top;
|
|
2880
2880
|
if (K === "image" && !vl(F, S, r)) return;
|
|
2881
2881
|
let R = 0, G = 0;
|
|
2882
|
-
|
|
2883
|
-
const
|
|
2882
|
+
B === "on Click" ? (R = F, G = S) : B === "same" ? (R = j.width / 2, G = j.height / 2) : (R = Math.random() * j.width, G = Math.random() * j.height);
|
|
2883
|
+
const z = t[c], ne = await X(z, j.width, j.height, { x: R, y: G });
|
|
2884
2884
|
a((W) => I === "all" ? [...W, ne] : [ne]), s((W) => W >= t.length - 1 ? 0 : W + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => E(!0),
|
|
@@ -2941,8 +2941,8 @@ function Bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
);
|
|
2943
2943
|
}
|
|
2944
|
-
const
|
|
2945
|
-
element:
|
|
2944
|
+
const Bu = {
|
|
2945
|
+
element: zu,
|
|
2946
2946
|
id: "control-image-reveal",
|
|
2947
2947
|
name: "Click Gallery",
|
|
2948
2948
|
preview: {
|
|
@@ -3448,7 +3448,7 @@ const Ip = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, Rp = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: c }) => {
|
|
3450
3450
|
var Te;
|
|
3451
|
-
const { widthSettings: s, fontSettings: d, letterSpacing: p, textAlign: y, wordSpacing: b, fontSizeLineHeight: w, textAppearance: f, color: x } = i.imageCaption ?? {}, [$, T] = te(0), [E, P] = te(0), [H, M] = te(!1), [
|
|
3451
|
+
const { widthSettings: s, fontSettings: d, letterSpacing: p, textAlign: y, wordSpacing: b, fontSizeLineHeight: w, textAppearance: f, color: x } = i.imageCaption ?? {}, [$, T] = te(0), [E, P] = te(0), [H, M] = te(!1), [B, I] = te(!1), [v, K] = te({}), g = ee(null), L = ee(null), A = ee(null), V = ee(!1), X = ee(null), se = ee(null), Z = ee(null), j = ee(null), F = ee(!1), S = ee(null), [R, G] = te(!1), { appear: z, triggers: ne, slider: W, thumbnail: xe, controls: h, area: we, caption: q, layout: de } = o.lightboxBlock, { appearClass: Le, backdropAppearClass: ae, backdropDisappearClass: be, disappearClass: U } = Lp(z.type, z.direction), $e = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
We(() => {
|
|
3453
3453
|
const O = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
@@ -3652,7 +3652,7 @@ const Ip = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3652
3652
|
const Ce = {
|
|
3653
3653
|
backgroundColor: we.color,
|
|
3654
3654
|
backdropFilter: `blur(${we.blur}px)`,
|
|
3655
|
-
animationDuration: `${parseInt(
|
|
3655
|
+
animationDuration: `${parseInt(z.duration)}ms`,
|
|
3656
3656
|
animationTimingFunction: "ease",
|
|
3657
3657
|
animationFillMode: "both"
|
|
3658
3658
|
};
|
|
@@ -3665,7 +3665,7 @@ const Ip = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3665
3665
|
className: vt(Ne.background, H ? be : ae, { [Ne.editor]: a }, { [Ne.hidden]: !e }),
|
|
3666
3666
|
style: {
|
|
3667
3667
|
...Ce,
|
|
3668
|
-
...
|
|
3668
|
+
...B && !a && !H ? { position: "absolute" } : {}
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
3671
|
),
|
|
@@ -3675,7 +3675,7 @@ const Ip = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3675
3675
|
ref: a ? X : null,
|
|
3676
3676
|
className: vt(Ne.contentStyle, H ? U : Le, { [Ne.editor]: a }, { [Ne.hidden]: !e }),
|
|
3677
3677
|
style: {
|
|
3678
|
-
animationDuration: `${parseInt(
|
|
3678
|
+
animationDuration: `${parseInt(z.duration)}ms`,
|
|
3679
3679
|
animationTimingFunction: "ease",
|
|
3680
3680
|
animationFillMode: "both"
|
|
3681
3681
|
},
|
|
@@ -5040,7 +5040,7 @@ const Ep = {
|
|
|
5040
5040
|
required: ["settings", "content", "styles"]
|
|
5041
5041
|
}
|
|
5042
5042
|
};
|
|
5043
|
-
function
|
|
5043
|
+
function zo(e) {
|
|
5044
5044
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
5045
5045
|
}
|
|
5046
5046
|
function Mp(e) {
|
|
@@ -5049,7 +5049,7 @@ function Mp(e) {
|
|
|
5049
5049
|
display: flex;
|
|
5050
5050
|
flex-direction: column;
|
|
5051
5051
|
width: 100%;
|
|
5052
|
-
min-height: ${
|
|
5052
|
+
min-height: ${zo(48)};
|
|
5053
5053
|
}
|
|
5054
5054
|
.${e}-wrapper.${e}-type-C .${e}-input:focus-visible,
|
|
5055
5055
|
.${e}-wrapper.${e}-type-C .${e}-button:focus-visible {
|
|
@@ -5073,7 +5073,7 @@ function Mp(e) {
|
|
|
5073
5073
|
min-width: 0;
|
|
5074
5074
|
}
|
|
5075
5075
|
.${e}-field-group.${e}-labeled {
|
|
5076
|
-
gap: ${
|
|
5076
|
+
gap: ${zo(4)};
|
|
5077
5077
|
}
|
|
5078
5078
|
.${e}-field-label {
|
|
5079
5079
|
white-space: nowrap;
|
|
@@ -5169,11 +5169,11 @@ function Mp(e) {
|
|
|
5169
5169
|
outline: none;
|
|
5170
5170
|
}
|
|
5171
5171
|
.${e}-success {
|
|
5172
|
-
margin-top: ${
|
|
5172
|
+
margin-top: ${zo(8)};
|
|
5173
5173
|
color: var(--${e}-success-success-color, var(--${e}-success-color));
|
|
5174
5174
|
}
|
|
5175
5175
|
.${e}-error {
|
|
5176
|
-
margin-top: ${
|
|
5176
|
+
margin-top: ${zo(8)};
|
|
5177
5177
|
color: var(--${e}-error-error-color, var(--${e}-error-color));
|
|
5178
5178
|
}
|
|
5179
5179
|
.${e}-overlay-anchor {
|
|
@@ -5213,7 +5213,7 @@ function Pp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5213
5213
|
inputCorners: P,
|
|
5214
5214
|
inputStroke: H,
|
|
5215
5215
|
inputPadding: M,
|
|
5216
|
-
inputColor:
|
|
5216
|
+
inputColor: B,
|
|
5217
5217
|
inputTextColor: I,
|
|
5218
5218
|
inputBorderColor: v,
|
|
5219
5219
|
placeholderColor: K,
|
|
@@ -5229,7 +5229,7 @@ function Pp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5229
5229
|
inputLineHeight: S,
|
|
5230
5230
|
inputLetterSpacing: R,
|
|
5231
5231
|
inputWordSpacing: G,
|
|
5232
|
-
inputTextAppearance:
|
|
5232
|
+
inputTextAppearance: z,
|
|
5233
5233
|
buttonFontSettings: ne,
|
|
5234
5234
|
buttonFontSize: W,
|
|
5235
5235
|
buttonLineHeight: xe,
|
|
@@ -5261,7 +5261,7 @@ function Pp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5261
5261
|
lineHeight: S,
|
|
5262
5262
|
letterSpacing: R ?? 0,
|
|
5263
5263
|
wordSpacing: G ?? 0,
|
|
5264
|
-
textAppearance:
|
|
5264
|
+
textAppearance: z,
|
|
5265
5265
|
color: I
|
|
5266
5266
|
}, me = $n(ln(oe, t)), he = D(H ?? 0, t), ve = D(
|
|
5267
5267
|
(S ?? F ?? 0.01) + ((M == null ? void 0 : M.top) ?? 0) + ((M == null ? void 0 : M.bottom) ?? 0) + (d === "C" ? H ?? 0 : (H ?? 0) * 2),
|
|
@@ -5319,7 +5319,7 @@ function Pp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5319
5319
|
textAppearance: Ce,
|
|
5320
5320
|
color: X
|
|
5321
5321
|
}, Oe = $n(ln(je, t)), rt = Co(s, {
|
|
5322
|
-
inputColor:
|
|
5322
|
+
inputColor: B,
|
|
5323
5323
|
inputTextColor: I,
|
|
5324
5324
|
inputBorderColor: v,
|
|
5325
5325
|
placeholderColor: K != null && K.trim() ? K : "#cccccc",
|
|
@@ -5331,7 +5331,7 @@ function Pp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5331
5331
|
errorColor: se
|
|
5332
5332
|
}, Ap, kp, le), [tt, pt] = te(
|
|
5333
5333
|
() => Object.fromEntries(ie.map((Ye) => [Ye.name, ""]))
|
|
5334
|
-
), [bt, Ue] = te("idle"), [ct, Et] = te(null), dt = r === "success" ? "success" : r === "error" ? "error" : bt, Qe = r === "error" ? O : ct, wt = r === "filled", Tt =
|
|
5334
|
+
), [bt, Ue] = te("idle"), [ct, Et] = te(null), dt = r === "success" ? "success" : r === "error" ? "error" : bt, Qe = r === "error" ? O : ct, wt = r === "filled", Tt = Be(() => {
|
|
5335
5335
|
if (!wt) return tt;
|
|
5336
5336
|
let Ye = null;
|
|
5337
5337
|
for (const Je of ie)
|
|
@@ -6142,7 +6142,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6142
6142
|
{ name: "message", type: "textarea", placeholder: "Enter your message", label: "Message", isRequired: !1, error: "Message is required" },
|
|
6143
6143
|
{ name: "message2", type: "textarea", placeholder: "Enter your message 2", label: "Message 2", isRequired: !1, error: "Message 2 is required" },
|
|
6144
6144
|
{ name: "message3", type: "textarea", placeholder: "Enter your message 3", label: "Message 3", isRequired: !1, error: "Message 3 is required" }
|
|
6145
|
-
],
|
|
6145
|
+
], Bo = {
|
|
6146
6146
|
fontSettings: {
|
|
6147
6147
|
type: "object",
|
|
6148
6148
|
display: { type: "font-settings-weight" },
|
|
@@ -6354,7 +6354,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6354
6354
|
display: { type: "font-family-select" }
|
|
6355
6355
|
},
|
|
6356
6356
|
inputFontSettings: {
|
|
6357
|
-
...
|
|
6357
|
+
...Bo.fontSettings,
|
|
6358
6358
|
scope: "common",
|
|
6359
6359
|
title: "Input",
|
|
6360
6360
|
display: { type: "font-settings-weight" }
|
|
@@ -6390,7 +6390,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6390
6390
|
display: { type: "text-appearance" }
|
|
6391
6391
|
},
|
|
6392
6392
|
buttonFontSettings: {
|
|
6393
|
-
...
|
|
6393
|
+
...Bo.fontSettings,
|
|
6394
6394
|
scope: "common",
|
|
6395
6395
|
title: "Button",
|
|
6396
6396
|
display: { type: "font-settings-weight" }
|
|
@@ -6426,7 +6426,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6426
6426
|
display: { type: "text-appearance" }
|
|
6427
6427
|
},
|
|
6428
6428
|
labelFontSettings: {
|
|
6429
|
-
...
|
|
6429
|
+
...Bo.fontSettings,
|
|
6430
6430
|
scope: "common",
|
|
6431
6431
|
title: "Label",
|
|
6432
6432
|
display: { type: "font-settings-weight", visible: !1 }
|
|
@@ -6462,7 +6462,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6462
6462
|
display: { type: "text-appearance", visible: !1 }
|
|
6463
6463
|
},
|
|
6464
6464
|
statusFontSettings: {
|
|
6465
|
-
...
|
|
6465
|
+
...Bo.fontSettings,
|
|
6466
6466
|
scope: "common",
|
|
6467
6467
|
title: "Success/Error"
|
|
6468
6468
|
},
|
|
@@ -7000,7 +7000,7 @@ function Op(e) {
|
|
|
7000
7000
|
}
|
|
7001
7001
|
`;
|
|
7002
7002
|
}
|
|
7003
|
-
const
|
|
7003
|
+
const zp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEvent: o }) => {
|
|
7004
7004
|
const { prefix: r } = hn(), a = n && t || !t, {
|
|
7005
7005
|
fields: c = [{ name: "email", type: "email", placeholder: "Your email" }],
|
|
7006
7006
|
buttonIcon: s,
|
|
@@ -7017,7 +7017,7 @@ const Bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7017
7017
|
buttonFontSize: P,
|
|
7018
7018
|
buttonLineHeight: H,
|
|
7019
7019
|
buttonLetterSpacing: M,
|
|
7020
|
-
buttonWordSpacing:
|
|
7020
|
+
buttonWordSpacing: B,
|
|
7021
7021
|
buttonTextAppearance: I,
|
|
7022
7022
|
statusFontSettings: v,
|
|
7023
7023
|
statusFontSize: K,
|
|
@@ -7033,10 +7033,10 @@ const Bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7033
7033
|
inputPadding: S,
|
|
7034
7034
|
buttonPadding: R,
|
|
7035
7035
|
successMessage: G = "Thanks for subscribing!",
|
|
7036
|
-
errorMessage:
|
|
7036
|
+
errorMessage: z = "Please, fill all required fields."
|
|
7037
7037
|
} = e, ne = c.slice(0, Math.min(p, c.length)), [W, xe] = te(
|
|
7038
7038
|
() => Object.fromEntries(ne.map((re) => [re.name, ""]))
|
|
7039
|
-
), [h, we] = te("idle"), [q, de] = te(null), Le = o === "success" ? "success" : o === "error" ? "error" : h, ae = o === "error" ?
|
|
7039
|
+
), [h, we] = te("idle"), [q, de] = te(null), Le = o === "success" ? "success" : o === "error" ? "error" : h, ae = o === "error" ? z : q, be = o === "filled", U = Be(() => {
|
|
7040
7040
|
if (!be) return W;
|
|
7041
7041
|
let re = null;
|
|
7042
7042
|
for (const N of ne)
|
|
@@ -7063,7 +7063,7 @@ const Bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7063
7063
|
fontSize: P ?? 0.01,
|
|
7064
7064
|
lineHeight: H,
|
|
7065
7065
|
letterSpacing: M ?? 0,
|
|
7066
|
-
wordSpacing:
|
|
7066
|
+
wordSpacing: B ?? 0,
|
|
7067
7067
|
textAppearance: I,
|
|
7068
7068
|
color: e.buttonTextColor ?? "#ffffff"
|
|
7069
7069
|
}, oe = {
|
|
@@ -7087,7 +7087,7 @@ const Bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7087
7087
|
errorColor: e.errorColor,
|
|
7088
7088
|
inputTextColor: e.inputTextColor ?? (k == null ? void 0 : k.color) ?? "#111111",
|
|
7089
7089
|
buttonTextColor: e.buttonTextColor ?? (ie == null ? void 0 : ie.color) ?? "#ffffff"
|
|
7090
|
-
},
|
|
7090
|
+
}, Bp, Dp, F), Q = {
|
|
7091
7091
|
borderRadius: D(Z, t),
|
|
7092
7092
|
borderWidth: D(j, t),
|
|
7093
7093
|
borderStyle: "solid"
|
|
@@ -7210,11 +7210,11 @@ const Bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7210
7210
|
className: `${r}-error`,
|
|
7211
7211
|
style: { ...ve },
|
|
7212
7212
|
role: "alert",
|
|
7213
|
-
children: $e ?? ae ??
|
|
7213
|
+
children: $e ?? ae ?? z
|
|
7214
7214
|
}
|
|
7215
7215
|
)
|
|
7216
7216
|
] });
|
|
7217
|
-
},
|
|
7217
|
+
}, Bp = {
|
|
7218
7218
|
strokeColor: "stroke-color",
|
|
7219
7219
|
inputColor: "input-color",
|
|
7220
7220
|
placeholderColor: "placeholder-color",
|
|
@@ -8304,7 +8304,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8304
8304
|
allowedPlugins: ["newsletter"],
|
|
8305
8305
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
8306
8306
|
}, Up = {
|
|
8307
|
-
element:
|
|
8307
|
+
element: zp,
|
|
8308
8308
|
id: "oneliner-form",
|
|
8309
8309
|
name: "Newsletter Single Line",
|
|
8310
8310
|
category: "forms",
|
|
@@ -8525,7 +8525,7 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8525
8525
|
const L = d.current;
|
|
8526
8526
|
L != null && L.complete && (s == null || s());
|
|
8527
8527
|
}, [a, (v = e.image) == null ? void 0 : v.url, s]);
|
|
8528
|
-
const p = n.display === "cover", y = n.ratioValue ?? "1:1", b = n.reversed ?? !1, [w, f] = y.split(":").map(Number), T = (b ? f : w) / (b ? w : f), E = i / T, P = E > o ? o : E, H = E > o ? o * T : i, M = c(H),
|
|
8528
|
+
const p = n.display === "cover", y = n.ratioValue ?? "1:1", b = n.reversed ?? !1, [w, f] = y.split(":").map(Number), T = (b ? f : w) / (b ? w : f), E = i / T, P = E > o ? o : E, H = E > o ? o * T : i, M = c(H), B = c(P), I = ((K = e.image) == null ? void 0 : K.url) && /* @__PURE__ */ l(
|
|
8529
8529
|
"img",
|
|
8530
8530
|
{
|
|
8531
8531
|
ref: d,
|
|
@@ -8568,7 +8568,7 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8568
8568
|
justifyContent: "center",
|
|
8569
8569
|
alignItems: "center",
|
|
8570
8570
|
flexShrink: 0,
|
|
8571
|
-
...p ? { width: M, height:
|
|
8571
|
+
...p ? { width: M, height: B, overflow: "hidden" } : {
|
|
8572
8572
|
width: "max-content",
|
|
8573
8573
|
maxWidth: c(i),
|
|
8574
8574
|
height: c(o)
|
|
@@ -8580,15 +8580,15 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8580
8580
|
}
|
|
8581
8581
|
);
|
|
8582
8582
|
}, sm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
8583
|
-
const { prefix: r } = hn(), [a, c] = te(0), s = a > 0 ? Math.round(a) : 0, d =
|
|
8583
|
+
const { prefix: r } = hn(), [a, c] = te(0), s = a > 0 ? Math.round(a) : 0, d = Be(() => Xp(r, s), [r, s]), { speed: p, direction: y, pauseOnHover: b, gap: w, imageMaxWidth: f, imageMaxHeight: x, hoverEffect: $ } = e, T = Be(() => im(e.imageFit), [e.imageFit]), E = (t == null ? void 0 : t.length) ?? 0, P = !!o, H = !n || !!i, M = H && $ !== "off" && $ !== "randomize" ? `${r}-image-hover-${$}` : void 0, B = n ? !!i : !0, v = ((t == null ? void 0 : t.length) ?? 0) > 0 && (B || !!n), K = Math.max(0, p) * Yp, g = (ge) => D(ge, n ?? !1), L = ee(null), A = ee(null), V = ee(null), [X, se] = te(0), Z = B && b === "on", [j, F] = te(!1), [S, R] = te({}), G = ee(S);
|
|
8584
8584
|
G.current = S;
|
|
8585
|
-
const
|
|
8585
|
+
const z = ee(null), ne = ee(0), W = ee(null), xe = Be(() => (t ?? []).map((ge) => {
|
|
8586
8586
|
var ce;
|
|
8587
8587
|
return ((ce = ge.image) == null ? void 0 : ce.url) ?? "";
|
|
8588
|
-
}).join("\0"), [t]), [h, we] = te(qr), q =
|
|
8588
|
+
}).join("\0"), [t]), [h, we] = te(qr), q = Be(() => {
|
|
8589
8589
|
const ge = t ?? [];
|
|
8590
|
-
return ge.length === 0 || !(
|
|
8591
|
-
}, [t,
|
|
8590
|
+
return ge.length === 0 || !(B || !!n) ? ge : nm(ge, h);
|
|
8591
|
+
}, [t, B, h, n]), de = Be(
|
|
8592
8592
|
() => (t ?? []).filter((ge) => {
|
|
8593
8593
|
var ce;
|
|
8594
8594
|
return !!((ce = ge.image) != null && ce.url);
|
|
@@ -8596,7 +8596,7 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8596
8596
|
[t]
|
|
8597
8597
|
), Le = v ? em : 1;
|
|
8598
8598
|
Dt(() => {
|
|
8599
|
-
ne.current = 0, R({}),
|
|
8599
|
+
ne.current = 0, R({}), z.current = null, we(qr), c(0);
|
|
8600
8600
|
}, [xe]), We(() => {
|
|
8601
8601
|
if (!H || $ !== "randomize") return;
|
|
8602
8602
|
const ge = L.current;
|
|
@@ -8636,10 +8636,10 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8636
8636
|
const ge = L.current, ce = V.current;
|
|
8637
8637
|
if (!ge || !ce) return;
|
|
8638
8638
|
const Pe = { current: 0 }, Fe = () => {
|
|
8639
|
-
const O = ge.getBoundingClientRect().width || ge.offsetWidth, le = om(ce), k =
|
|
8640
|
-
|
|
8639
|
+
const O = ge.getBoundingClientRect().width || ge.offsetWidth, le = om(ce), k = z.current, ie = typeof k == "number" && Math.abs(k - le) <= 0.25;
|
|
8640
|
+
z.current = le;
|
|
8641
8641
|
let oe = h, me = 0;
|
|
8642
|
-
if ((
|
|
8642
|
+
if ((B || n) && E > 0 && O > 0) {
|
|
8643
8643
|
const Ee = Sl(ce, E);
|
|
8644
8644
|
if (Ee >= Qp) {
|
|
8645
8645
|
me = Ee;
|
|
@@ -8666,7 +8666,7 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8666
8666
|
return Te.observe(ge), Te.observe(ce), () => {
|
|
8667
8667
|
W.current = null, cancelAnimationFrame(Pe.current), Te.disconnect();
|
|
8668
8668
|
};
|
|
8669
|
-
}, [
|
|
8669
|
+
}, [B, v, a, xe, h, E, n]), Dt(() => {
|
|
8670
8670
|
if (!v || s <= 0) return;
|
|
8671
8671
|
const ge = A.current;
|
|
8672
8672
|
ge && tm(ge);
|
|
@@ -8756,7 +8756,7 @@ const Yp = 30, Jp = 20, qr = 3, Zp = 12, Qp = 32, em = 3, tm = (e) => {
|
|
|
8756
8756
|
);
|
|
8757
8757
|
};
|
|
8758
8758
|
if (v) {
|
|
8759
|
-
const ge =
|
|
8759
|
+
const ge = B ? Z && j ? "paused" : "running" : "paused", ce = s > 0 && K > 0 ? s / K * 1e3 : 0, Pe = `${Math.max(0, ce) / 1e3}s`;
|
|
8760
8760
|
return /* @__PURE__ */ J(
|
|
8761
8761
|
"div",
|
|
8762
8762
|
{
|
|
@@ -9715,35 +9715,49 @@ type MarqueeProps = {
|
|
|
9715
9715
|
default: [
|
|
9716
9716
|
{
|
|
9717
9717
|
image: {
|
|
9718
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
9718
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
9719
9719
|
name: ""
|
|
9720
9720
|
},
|
|
9721
9721
|
link: ""
|
|
9722
9722
|
},
|
|
9723
9723
|
{
|
|
9724
9724
|
image: {
|
|
9725
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
9725
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
9726
9726
|
name: ""
|
|
9727
9727
|
},
|
|
9728
9728
|
link: ""
|
|
9729
9729
|
},
|
|
9730
9730
|
{
|
|
9731
9731
|
image: {
|
|
9732
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
9732
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
9733
9733
|
name: ""
|
|
9734
9734
|
},
|
|
9735
9735
|
link: ""
|
|
9736
9736
|
},
|
|
9737
9737
|
{
|
|
9738
9738
|
image: {
|
|
9739
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
9739
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
9740
9740
|
name: ""
|
|
9741
9741
|
},
|
|
9742
9742
|
link: ""
|
|
9743
9743
|
},
|
|
9744
9744
|
{
|
|
9745
9745
|
image: {
|
|
9746
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
9746
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
9747
|
+
name: ""
|
|
9748
|
+
},
|
|
9749
|
+
link: ""
|
|
9750
|
+
},
|
|
9751
|
+
{
|
|
9752
|
+
image: {
|
|
9753
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
9754
|
+
name: ""
|
|
9755
|
+
},
|
|
9756
|
+
link: ""
|
|
9757
|
+
},
|
|
9758
|
+
{
|
|
9759
|
+
image: {
|
|
9760
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
9747
9761
|
name: ""
|
|
9748
9762
|
},
|
|
9749
9763
|
link: ""
|
|
@@ -9873,7 +9887,7 @@ function $l(e) {
|
|
|
9873
9887
|
`;
|
|
9874
9888
|
}
|
|
9875
9889
|
const pm = 30, Cl = 2, mm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
9876
|
-
const { prefix: r } = hn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: p, cardWidth: y, corners: b, stroke: w, strokeColor: f, bgColor: x, padding: $, logoMarginTop: T, logoWidth: E, logoHeight: P, captionMarginTop: H } = e, M = !!o,
|
|
9890
|
+
const { prefix: r } = hn(), { align: a, speed: c, direction: s, pauseOnHover: d, gap: p, cardWidth: y, corners: b, stroke: w, strokeColor: f, bgColor: x, padding: $, logoMarginTop: T, logoWidth: E, logoHeight: P, captionMarginTop: H } = e, M = !!o, B = ((t == null ? void 0 : t.length) ?? 0) > 0, I = c > 0 && (!n || i), v = B && (I || n), K = Math.max(0, c) * pm, g = (k) => D(k, n ?? !1), L = ee(null), A = ee(null), V = ee(null), [X, se] = te(0), [Z, j] = te(0), [F, S] = te(0), R = I && d === "on", [G, z] = te(!1), ne = ee(null), [W, xe] = te(0), [h, we] = te(0), q = ee(null), de = (k) => {
|
|
9877
9891
|
var oe, me, he, ve, Ee;
|
|
9878
9892
|
return {
|
|
9879
9893
|
fontSettings: {
|
|
@@ -9892,13 +9906,13 @@ const pm = 30, Cl = 2, mm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9892
9906
|
lineHeight: (e == null ? void 0 : e[`${k}LineHeight`]) ?? 0.01,
|
|
9893
9907
|
color: (e == null ? void 0 : e[`${k}Color`]) ?? "#000000"
|
|
9894
9908
|
};
|
|
9895
|
-
}, Le = de("text"), ae = de("caption"), be =
|
|
9909
|
+
}, Le = de("text"), ae = de("caption"), be = Be(
|
|
9896
9910
|
() => ((t == null ? void 0 : t.length) ?? 0) > 1 && (t ?? []).some((k) => {
|
|
9897
9911
|
var ie, oe;
|
|
9898
9912
|
return (((ie = k.text) == null ? void 0 : ie.length) ?? 0) > 0 || (((oe = k.caption) == null ? void 0 : oe.length) ?? 0) > 0;
|
|
9899
9913
|
}),
|
|
9900
9914
|
[t]
|
|
9901
|
-
), U =
|
|
9915
|
+
), U = Be(() => !v || (t == null ? void 0 : t.length) === 0 ? 1 : Z <= 0 || X <= 0 ? Cl : Math.max(Cl, Math.ceil(X / Z) + 1), [v, t == null ? void 0 : t.length, Z, X]);
|
|
9902
9916
|
Dt(() => {
|
|
9903
9917
|
if (!v) return;
|
|
9904
9918
|
const k = L.current, ie = V.current;
|
|
@@ -9946,10 +9960,10 @@ const pm = 30, Cl = 2, mm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9946
9960
|
};
|
|
9947
9961
|
}, [v, U, t, n, p, y, $, w, b, E, P, W, h]);
|
|
9948
9962
|
const $e = () => {
|
|
9949
|
-
R &&
|
|
9963
|
+
R && z(!0);
|
|
9950
9964
|
}, Se = () => {
|
|
9951
|
-
R &&
|
|
9952
|
-
}, ge =
|
|
9965
|
+
R && z(!1);
|
|
9966
|
+
}, ge = Be(() => {
|
|
9953
9967
|
switch (a) {
|
|
9954
9968
|
case "center":
|
|
9955
9969
|
return "center";
|
|
@@ -9959,7 +9973,7 @@ const pm = 30, Cl = 2, mm = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9959
9973
|
default:
|
|
9960
9974
|
return "flex-start";
|
|
9961
9975
|
}
|
|
9962
|
-
}, [a]), ce =
|
|
9976
|
+
}, [a]), ce = Be(() => {
|
|
9963
9977
|
switch (a) {
|
|
9964
9978
|
case "center":
|
|
9965
9979
|
return "center";
|
|
@@ -11500,7 +11514,7 @@ function ym(e) {
|
|
|
11500
11514
|
`;
|
|
11501
11515
|
}
|
|
11502
11516
|
const vm = 3e3, bm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11503
|
-
const { prefix: r } = hn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: p, textMarginTop: y, captionMarginTop: b, imageWidth: w, imageHeight: f, controlsWidth: x, controlsColor: $, controlsHoverColor: T } = e, E = c > 0 && (!n || !!i), [P, H] = te(0), [M,
|
|
11517
|
+
const { prefix: r } = hn(), a = t || [], { speed: c, align: s, width: d, imageMarginTop: p, textMarginTop: y, captionMarginTop: b, imageWidth: w, imageHeight: f, controlsWidth: x, controlsColor: $, controlsHoverColor: T } = e, E = c > 0 && (!n || !!i), [P, H] = te(0), [M, B] = te(null), [I, v] = te(!1), K = ee(null), g = Be(() => {
|
|
11504
11518
|
switch (s) {
|
|
11505
11519
|
case "center":
|
|
11506
11520
|
return "center";
|
|
@@ -11510,7 +11524,7 @@ const vm = 3e3, bm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11510
11524
|
default:
|
|
11511
11525
|
return "flex-start";
|
|
11512
11526
|
}
|
|
11513
|
-
}, [s]), L =
|
|
11527
|
+
}, [s]), L = Be(() => {
|
|
11514
11528
|
switch (s) {
|
|
11515
11529
|
case "center":
|
|
11516
11530
|
return "center";
|
|
@@ -11522,7 +11536,7 @@ const vm = 3e3, bm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11522
11536
|
}
|
|
11523
11537
|
}, [s]);
|
|
11524
11538
|
We(() => {
|
|
11525
|
-
H(0),
|
|
11539
|
+
H(0), B(null), v(!1);
|
|
11526
11540
|
}, [a.length]);
|
|
11527
11541
|
const A = a[P], V = M === null ? null : a[M], X = (ae) => {
|
|
11528
11542
|
var U, $e, Se, ge, ce;
|
|
@@ -11546,8 +11560,8 @@ const vm = 3e3, bm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11546
11560
|
}, se = X("text"), Z = X("caption"), j = a.length > 1 && a.some((ae) => {
|
|
11547
11561
|
var be, U;
|
|
11548
11562
|
return (((be = ae.text) == null ? void 0 : be.length) ?? 0) > 0 || (((U = ae.caption) == null ? void 0 : U.length) ?? 0) > 0;
|
|
11549
|
-
}), F = ee(null), [S, R] = te(0), [G,
|
|
11550
|
-
|
|
11563
|
+
}), F = ee(null), [S, R] = te(0), [G, z] = te(0), ne = e.controls ?? { mode: "Off", icon: null }, W = a.length > 1, xe = ye((ae, be) => !W || be === ae ? ae : (K.current && window.clearTimeout(K.current), B(ae), v(!0), K.current = window.setTimeout(() => {
|
|
11564
|
+
B(null), v(!1), K.current = null;
|
|
11551
11565
|
}, 300), be), [W]), h = ye(() => {
|
|
11552
11566
|
W && H((ae) => xe(ae, (ae - 1 + a.length) % a.length));
|
|
11553
11567
|
}, [W, xe, a.length]), we = ye(() => {
|
|
@@ -11635,7 +11649,7 @@ const vm = 3e3, bm = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11635
11649
|
] })
|
|
11636
11650
|
] });
|
|
11637
11651
|
}, de = ye((ae) => {
|
|
11638
|
-
R(ae.maxTextPx),
|
|
11652
|
+
R(ae.maxTextPx), z(ae.maxCaptionPx);
|
|
11639
11653
|
}, []);
|
|
11640
11654
|
if (Dt(() => {
|
|
11641
11655
|
if (!j) {
|
|
@@ -13174,15 +13188,15 @@ function Fm({
|
|
|
13174
13188
|
);
|
|
13175
13189
|
}
|
|
13176
13190
|
function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext: r, counterClassName: a, counterStyle: c }) {
|
|
13177
|
-
const s = n === "cover", d = ee(null), p = ee(null), y = ee(null), b = ee(null), w = ee(0), f = ee(0), x = ee("none"), $ = ee(!1), T = ee(!1), E = ee(!1), P = ee(null), [H, M] = te(null), [
|
|
13191
|
+
const s = n === "cover", d = ee(null), p = ee(null), y = ee(null), b = ee(null), w = ee(0), f = ee(0), x = ee("none"), $ = ee(!1), T = ee(!1), E = ee(!1), P = ee(null), [H, M] = te(null), [B, I] = te("opening"), [v, K] = te(0), [g, L] = te(0), [A, V] = te(!1), [X, se] = te(!1), [Z, j] = te(!1), F = ee(t), S = e[t], R = S ? so(S) : !1, G = g !== 0 || A, z = ye((ce) => {
|
|
13178
13192
|
E.current = ce, V(ce);
|
|
13179
13193
|
}, []), ne = ye(() => {
|
|
13180
13194
|
P.current !== null && (window.clearTimeout(P.current), P.current = null);
|
|
13181
13195
|
}, []), W = ye(() => {
|
|
13182
13196
|
ne(), P.current = window.setTimeout(() => {
|
|
13183
|
-
ne(),
|
|
13197
|
+
ne(), z(!1);
|
|
13184
13198
|
}, _n + 32);
|
|
13185
|
-
}, [ne,
|
|
13199
|
+
}, [ne, z]), xe = ye(() => {
|
|
13186
13200
|
const ce = p.current, Pe = y.current;
|
|
13187
13201
|
if (!ce) return;
|
|
13188
13202
|
const Fe = ce.getBoundingClientRect(), Ce = Fe.width, Te = Fe.height;
|
|
@@ -13216,20 +13230,20 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13216
13230
|
const Pe = new ResizeObserver(() => xe());
|
|
13217
13231
|
return Pe.observe(ce), () => Pe.disconnect();
|
|
13218
13232
|
}, [xe, t]), We(() => {
|
|
13219
|
-
|
|
13220
|
-
}, [
|
|
13221
|
-
if (
|
|
13233
|
+
B === "opening" && H && I("open");
|
|
13234
|
+
}, [B, H]), We(() => {
|
|
13235
|
+
if (B !== "closing") return;
|
|
13222
13236
|
const ce = setTimeout(() => i(), _n);
|
|
13223
13237
|
return () => clearTimeout(ce);
|
|
13224
|
-
}, [
|
|
13238
|
+
}, [B, i]), We(() => () => {
|
|
13225
13239
|
ne();
|
|
13226
13240
|
}, [ne]), Dt(() => {
|
|
13227
13241
|
if (F.current === t) return;
|
|
13228
|
-
ne(), K(0), L(0),
|
|
13242
|
+
ne(), K(0), L(0), z(!1), j(!1), se(!1), w.current = 0, f.current = 0, x.current = "none", $.current = !1, b.current = null, T.current = !1;
|
|
13229
13243
|
const ce = p.current;
|
|
13230
13244
|
ce && M(Vo(ce)), F.current = t;
|
|
13231
|
-
}, [t,
|
|
13232
|
-
if (
|
|
13245
|
+
}, [t, z, ne]), We(() => {
|
|
13246
|
+
if (B !== "open") return;
|
|
13233
13247
|
const ce = () => {
|
|
13234
13248
|
const le = (k) => {
|
|
13235
13249
|
k.stopPropagation(), k.preventDefault(), document.removeEventListener("click", le, !0);
|
|
@@ -13244,7 +13258,7 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13244
13258
|
Pe(le);
|
|
13245
13259
|
return;
|
|
13246
13260
|
}
|
|
13247
|
-
|
|
13261
|
+
z(!0), L(0), W();
|
|
13248
13262
|
}, Ce = (le) => {
|
|
13249
13263
|
if (le.touches.length !== 1 || E.current) return;
|
|
13250
13264
|
const k = le.touches[0];
|
|
@@ -13285,15 +13299,15 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13285
13299
|
return document.addEventListener("touchstart", Ce, { passive: !0 }), document.addEventListener("touchmove", Te, { passive: !1 }), document.addEventListener("touchend", O), document.addEventListener("touchcancel", O), () => {
|
|
13286
13300
|
document.removeEventListener("touchstart", Ce), document.removeEventListener("touchmove", Te), document.removeEventListener("touchend", O), document.removeEventListener("touchcancel", O);
|
|
13287
13301
|
};
|
|
13288
|
-
}, [
|
|
13302
|
+
}, [B, e.length, r, o, z, W]), We(() => {
|
|
13289
13303
|
const ce = (Pe) => {
|
|
13290
|
-
Pe.key === "Escape" && (Pe.preventDefault(), Pe.stopPropagation(),
|
|
13304
|
+
Pe.key === "Escape" && (Pe.preventDefault(), Pe.stopPropagation(), B !== "closing" && I("closing"));
|
|
13291
13305
|
};
|
|
13292
13306
|
return window.addEventListener("keydown", ce, !0), () => window.removeEventListener("keydown", ce, !0);
|
|
13293
|
-
}, [
|
|
13307
|
+
}, [B]);
|
|
13294
13308
|
const h = () => {
|
|
13295
|
-
|
|
13296
|
-
}, we =
|
|
13309
|
+
B !== "closing" && I("closing");
|
|
13310
|
+
}, we = B === "open", q = B === "closing", de = v > 0 ? Math.max(0, 1 - v / 500) : 1, Le = v > 0 ? Math.max(0.35, 1 - v / 500) : 1, ae = (ce) => {
|
|
13297
13311
|
if (ce.stopPropagation(), T.current) {
|
|
13298
13312
|
T.current = !1;
|
|
13299
13313
|
return;
|
|
@@ -13316,8 +13330,8 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13316
13330
|
}
|
|
13317
13331
|
ce.currentTarget.style.cursor = Fe < Pe.width / 2 ? "w-resize" : "e-resize";
|
|
13318
13332
|
}, U = ye((ce) => {
|
|
13319
|
-
ce.propertyName !== "transform" || !E.current || (ne(),
|
|
13320
|
-
}, [ne,
|
|
13333
|
+
ce.propertyName !== "transform" || !E.current || (ne(), z(!1));
|
|
13334
|
+
}, [ne, z]), $e = G ? `translateX(${g}px)` : v > 0 ? `translateY(${v}px)` : void 0, Se = {
|
|
13321
13335
|
position: "fixed",
|
|
13322
13336
|
top: H == null ? void 0 : H.top,
|
|
13323
13337
|
left: H == null ? void 0 : H.left,
|
|
@@ -13325,8 +13339,8 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13325
13339
|
height: H == null ? void 0 : H.height,
|
|
13326
13340
|
objectFit: n === "cover" ? "cover" : "contain",
|
|
13327
13341
|
transform: $e,
|
|
13328
|
-
opacity: v > 0 ? Le :
|
|
13329
|
-
transition: X && !A ? "none" : A ? `transform ${_n}ms ${ui}` : Z ? `transform ${_n}ms ${ui}, opacity ${_n}ms ${ui}` :
|
|
13342
|
+
opacity: v > 0 ? Le : B === "opening" || q ? 0 : 1,
|
|
13343
|
+
transition: X && !A ? "none" : A ? `transform ${_n}ms ${ui}` : Z ? `transform ${_n}ms ${ui}, opacity ${_n}ms ${ui}` : B === "opening" || q ? `opacity ${_n}ms ${ui}` : "none",
|
|
13330
13344
|
pointerEvents: R && we && !G ? "auto" : "none",
|
|
13331
13345
|
touchAction: R && we ? "none" : void 0,
|
|
13332
13346
|
zIndex: 9998
|
|
@@ -13348,7 +13362,7 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13348
13362
|
width: "var(--cntrl-article-width, 100vw) !important",
|
|
13349
13363
|
height: "var(--cntrl-viewport-height, 100vh) !important",
|
|
13350
13364
|
zIndex: 9997,
|
|
13351
|
-
touchAction:
|
|
13365
|
+
touchAction: B === "open" ? "none" : void 0
|
|
13352
13366
|
},
|
|
13353
13367
|
onClick: h,
|
|
13354
13368
|
children: [
|
|
@@ -13445,7 +13459,7 @@ function _m({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13445
13459
|
Fm,
|
|
13446
13460
|
{
|
|
13447
13461
|
src: S.url,
|
|
13448
|
-
phase:
|
|
13462
|
+
phase: B,
|
|
13449
13463
|
mediaRef: y,
|
|
13450
13464
|
mediaStyle: Se,
|
|
13451
13465
|
onLoadedMetadata: xe,
|
|
@@ -13525,7 +13539,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13525
13539
|
sliderTiming: P,
|
|
13526
13540
|
direction: H,
|
|
13527
13541
|
transition: M,
|
|
13528
|
-
titleMarginTop:
|
|
13542
|
+
titleMarginTop: B,
|
|
13529
13543
|
subtitleMarginTop: I,
|
|
13530
13544
|
titleColor: v,
|
|
13531
13545
|
subtitleColor: K,
|
|
@@ -13541,7 +13555,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13541
13555
|
subtitleFontSettings: S,
|
|
13542
13556
|
subtitleFontSize: R,
|
|
13543
13557
|
subtitleLineHeight: G,
|
|
13544
|
-
subtitleLetterSpacing:
|
|
13558
|
+
subtitleLetterSpacing: z,
|
|
13545
13559
|
subtitleWordSpacing: ne,
|
|
13546
13560
|
subtitleTextAppearance: W,
|
|
13547
13561
|
lightboxCounterFontFamily: xe,
|
|
@@ -13576,7 +13590,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13576
13590
|
},
|
|
13577
13591
|
fontSize: R ?? 0.01,
|
|
13578
13592
|
lineHeight: G,
|
|
13579
|
-
letterSpacing:
|
|
13593
|
+
letterSpacing: z ?? 0,
|
|
13580
13594
|
wordSpacing: ne ?? 0,
|
|
13581
13595
|
textAppearance: W,
|
|
13582
13596
|
color: K
|
|
@@ -13616,7 +13630,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13616
13630
|
titleColor: v,
|
|
13617
13631
|
subtitleColor: K,
|
|
13618
13632
|
lightboxCounterColor: g
|
|
13619
|
-
}, Om,
|
|
13633
|
+
}, Om, zm), fe = `${a && a !== "default" ? `${d}-state-${a}` : ""}${be === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), He = f === 0 ? 1 / 0 : f, re = (t ?? []).slice(0, He), N = y.entryWidth ?? 0.2, je = ($ == null ? void 0 : $.display) === "cover", Oe = ($ == null ? void 0 : $.ratioValue) ?? "1:1", rt = ($ == null ? void 0 : $.reversed) ?? !1, [tt, pt] = Oe.split(":").map(Number), ct = `${rt ? pt : tt} / ${rt ? tt : pt}`, Et = y.columnsCount, dt = D(N ?? 0, n), Qe = dt, wt = !je && E !== "off", Tt = re.length % Et || Et, ht = Tt < Et && re.length > 0, _t = re.length - Tt, Vt = ht ? Math.floor((Et - Tt) / 2) + 1 : 1, ot = {
|
|
13620
13634
|
width: Qe,
|
|
13621
13635
|
...je ? { aspectRatio: ct, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13622
13636
|
}, Pt = `${d}-item-image-wrapper${wt ? ` ${d}-item-image-wrapper-fit-slider` : ""}`.trim(), At = p === "d" || p === "e" || p === "f", Ye = U === "on", Je = `calc(${D(N ?? 0, n)} * (${b} / 100))`, _e = D(N * b / 100, n), xt = je ? {
|
|
@@ -13635,8 +13649,8 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13635
13649
|
We(() => {
|
|
13636
13650
|
const qe = un.current;
|
|
13637
13651
|
if (!qe) return;
|
|
13638
|
-
const ft = new ResizeObserver((
|
|
13639
|
-
sn(Math.round(
|
|
13652
|
+
const ft = new ResizeObserver((ze) => {
|
|
13653
|
+
sn(Math.round(ze[0].contentRect.width));
|
|
13640
13654
|
});
|
|
13641
13655
|
return ft.observe(qe), () => ft.disconnect();
|
|
13642
13656
|
}, []);
|
|
@@ -13655,7 +13669,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13655
13669
|
}, [Wt, x]), We(() => {
|
|
13656
13670
|
!n || i || tn(!1);
|
|
13657
13671
|
}, [n, i]);
|
|
13658
|
-
const De =
|
|
13672
|
+
const De = Be(() => Tm(d), [d]);
|
|
13659
13673
|
return /* @__PURE__ */ J(lt, { children: [
|
|
13660
13674
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: De } }),
|
|
13661
13675
|
/* @__PURE__ */ l("div", { style: ve, children: /* @__PURE__ */ l(
|
|
@@ -13672,15 +13686,15 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13672
13686
|
},
|
|
13673
13687
|
children: re.map((qe, ft) => {
|
|
13674
13688
|
var Zt;
|
|
13675
|
-
const
|
|
13676
|
-
|
|
13677
|
-
|
|
13689
|
+
const ze = Il(qe.title), it = Il(qe.subtitle), at = (((Zt = qe.link) == null ? void 0 : Zt.length) ?? 0) > 0 && x === "off" ? qe.link : void 0, Bt = Math.floor(ft / Et) === Math.ceil(re.length / Et) - 1, Mt = ht && ft >= _t ? `${Vt + (ft - _t)}` : void 0, mt = At ? /* @__PURE__ */ J("div", { className: `${d}-item-text-block`, children: [
|
|
13690
|
+
ze && /* @__PURE__ */ l("p", { className: k, style: { width: Je, ...ce, ...oe }, children: qe.title }),
|
|
13691
|
+
ze && /* @__PURE__ */ l(
|
|
13678
13692
|
"div",
|
|
13679
13693
|
{
|
|
13680
13694
|
"data-controls": o ? "titleMarginTop" : void 0,
|
|
13681
13695
|
className: o ? `${d}-control` : void 0,
|
|
13682
13696
|
style: {
|
|
13683
|
-
height: D(
|
|
13697
|
+
height: D(B ?? 0, n),
|
|
13684
13698
|
width: _e
|
|
13685
13699
|
}
|
|
13686
13700
|
}
|
|
@@ -13701,22 +13715,22 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13701
13715
|
!At && /* @__PURE__ */ l(
|
|
13702
13716
|
"div",
|
|
13703
13717
|
{
|
|
13704
|
-
"data-controls": o &&
|
|
13705
|
-
className: o &&
|
|
13718
|
+
"data-controls": o && ze ? "titleMarginTop" : void 0,
|
|
13719
|
+
className: o && ze ? `${d}-control` : void 0,
|
|
13706
13720
|
style: {
|
|
13707
|
-
height:
|
|
13721
|
+
height: ze ? D(B ?? 0, n) : 0,
|
|
13708
13722
|
width: _e
|
|
13709
13723
|
}
|
|
13710
13724
|
}
|
|
13711
13725
|
),
|
|
13712
|
-
|
|
13713
|
-
At &&
|
|
13726
|
+
ze && /* @__PURE__ */ l("p", { className: k, style: { width: Je, ...ce, ...oe }, children: qe.title }),
|
|
13727
|
+
At && ze && /* @__PURE__ */ l(
|
|
13714
13728
|
"div",
|
|
13715
13729
|
{
|
|
13716
13730
|
"data-controls": o ? "titleMarginTop" : void 0,
|
|
13717
13731
|
className: o ? `${d}-control` : void 0,
|
|
13718
13732
|
style: {
|
|
13719
|
-
height: D(
|
|
13733
|
+
height: D(B ?? 0, n),
|
|
13720
13734
|
width: _e
|
|
13721
13735
|
}
|
|
13722
13736
|
}
|
|
@@ -13752,7 +13766,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13752
13766
|
jt,
|
|
13753
13767
|
Ot
|
|
13754
13768
|
] }), Ut = Am(qe.gallery), Nt = Ut.filter((yt) => yt.lightboxMedia).map((yt) => yt.lightboxMedia), an = /* @__PURE__ */ l("div", { className: Pt, style: ot, children: Ut.length === 0 ? null : E === "off" ? (() => {
|
|
13755
|
-
const { displayMedia: yt, lightboxMedia:
|
|
13769
|
+
const { displayMedia: yt, lightboxMedia: zt } = Ut[0], Xt = zt ? Nt.findIndex((m) => m.url === zt.url) : -1;
|
|
13756
13770
|
return /* @__PURE__ */ l(
|
|
13757
13771
|
Rl,
|
|
13758
13772
|
{
|
|
@@ -13786,13 +13800,13 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13786
13800
|
},
|
|
13787
13801
|
onMoved: (yt) => {
|
|
13788
13802
|
if (H !== "random" || M === "fade") return;
|
|
13789
|
-
const
|
|
13790
|
-
Ht(
|
|
13803
|
+
const zt = Math.random() > 0.5 ? Math.random() > 0.5 ? "rtl" : "ltr" : "ttb";
|
|
13804
|
+
Ht(zt), setTimeout(() => {
|
|
13791
13805
|
yt.refresh();
|
|
13792
13806
|
}, 0);
|
|
13793
13807
|
},
|
|
13794
|
-
children: Ut.map(({ displayMedia: yt, lightboxMedia:
|
|
13795
|
-
const m =
|
|
13808
|
+
children: Ut.map(({ displayMedia: yt, lightboxMedia: zt }, Xt) => {
|
|
13809
|
+
const m = zt ? Nt.findIndex((ue) => ue.url === zt.url) : -1;
|
|
13796
13810
|
return /* @__PURE__ */ l(Va, { children: /* @__PURE__ */ l(
|
|
13797
13811
|
Rl,
|
|
13798
13812
|
{
|
|
@@ -13810,10 +13824,10 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13810
13824
|
/* @__PURE__ */ l(
|
|
13811
13825
|
"div",
|
|
13812
13826
|
{
|
|
13813
|
-
"data-controls": o &&
|
|
13814
|
-
className: o &&
|
|
13827
|
+
"data-controls": o && ze ? "titleMarginTop" : void 0,
|
|
13828
|
+
className: o && ze ? `${d}-control` : void 0,
|
|
13815
13829
|
style: {
|
|
13816
|
-
height:
|
|
13830
|
+
height: ze ? D(B ?? 0, n) : 0,
|
|
13817
13831
|
width: _e
|
|
13818
13832
|
}
|
|
13819
13833
|
}
|
|
@@ -13854,7 +13868,7 @@ function Nm({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13854
13868
|
children: /* @__PURE__ */ l(
|
|
13855
13869
|
"div",
|
|
13856
13870
|
{
|
|
13857
|
-
className: `${o ? `${d}-item-inner` : `${d}-item-inner-hidden`}${Ye &&
|
|
13871
|
+
className: `${o ? `${d}-item-inner` : `${d}-item-inner-hidden`}${Ye && Bt ? ` ${d}-item-inner-last-row` : ""}`.trim(),
|
|
13858
13872
|
style: {
|
|
13859
13873
|
width: (b ?? 0) > 100 ? `calc(${dt} * (${b} / 100))` : dt,
|
|
13860
13874
|
...Mt && Ye ? { gridColumn: Mt } : {}
|
|
@@ -13909,7 +13923,7 @@ const Om = {
|
|
|
13909
13923
|
titleColor: "title-color",
|
|
13910
13924
|
subtitleColor: "subtitle-color",
|
|
13911
13925
|
lightboxCounterColor: "lightbox-counter-color"
|
|
13912
|
-
},
|
|
13926
|
+
}, zm = ["hover", "focus", "filled", "success", "error"], Bm = `import { Splide, SplideSlide } from '@splidejs/react-splide';
|
|
13913
13927
|
import '@splidejs/react-splide/css/core';
|
|
13914
13928
|
import { CommonComponentProps } from '../props';
|
|
13915
13929
|
import {
|
|
@@ -15785,11 +15799,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15785
15799
|
},
|
|
15786
15800
|
default: [
|
|
15787
15801
|
{
|
|
15788
|
-
title: "
|
|
15789
|
-
subtitle: "
|
|
15802
|
+
title: "David R. Scott During EVA",
|
|
15803
|
+
subtitle: "Hasselblad SWC/ Zeiss Biogon 38 mm / SO-368 Ektachrome",
|
|
15790
15804
|
gallery: [{
|
|
15791
15805
|
media: [{
|
|
15792
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15806
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
15793
15807
|
name: "",
|
|
15794
15808
|
objectFit: "cover"
|
|
15795
15809
|
}, {
|
|
@@ -15801,11 +15815,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15801
15815
|
link: ""
|
|
15802
15816
|
},
|
|
15803
15817
|
{
|
|
15804
|
-
title: "
|
|
15805
|
-
subtitle: "
|
|
15818
|
+
title: "Salton Sea from Above",
|
|
15819
|
+
subtitle: "Hasselblad 500 EL / Zeiss Sonnar 250 mm / SO-368 Ektachrome",
|
|
15806
15820
|
gallery: [{
|
|
15807
15821
|
media: [{
|
|
15808
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15822
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-11.jpg",
|
|
15809
15823
|
name: "",
|
|
15810
15824
|
objectFit: "cover"
|
|
15811
15825
|
}, {
|
|
@@ -15817,11 +15831,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15817
15831
|
link: ""
|
|
15818
15832
|
},
|
|
15819
15833
|
{
|
|
15820
|
-
title: "
|
|
15821
|
-
subtitle: "
|
|
15834
|
+
title: "Lunar Module Pilot",
|
|
15835
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15822
15836
|
gallery: [{
|
|
15823
15837
|
media: [{
|
|
15824
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15838
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
15825
15839
|
name: "",
|
|
15826
15840
|
objectFit: "cover"
|
|
15827
15841
|
}, {
|
|
@@ -15833,11 +15847,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15833
15847
|
link: ""
|
|
15834
15848
|
},
|
|
15835
15849
|
{
|
|
15836
|
-
title: "
|
|
15837
|
-
subtitle: "
|
|
15850
|
+
title: "Lunar Module 3 porch",
|
|
15851
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15838
15852
|
gallery: [{
|
|
15839
15853
|
media: [{
|
|
15840
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15854
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
15841
15855
|
name: "",
|
|
15842
15856
|
objectFit: "cover"
|
|
15843
15857
|
}, {
|
|
@@ -15849,11 +15863,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15849
15863
|
link: ""
|
|
15850
15864
|
},
|
|
15851
15865
|
{
|
|
15852
|
-
title: "
|
|
15853
|
-
subtitle: "
|
|
15866
|
+
title: "Command Module",
|
|
15867
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15854
15868
|
gallery: [{
|
|
15855
15869
|
media: [{
|
|
15856
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15870
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
15857
15871
|
name: "",
|
|
15858
15872
|
objectFit: "cover"
|
|
15859
15873
|
}, {
|
|
@@ -15863,7 +15877,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15863
15877
|
}]
|
|
15864
15878
|
}, {
|
|
15865
15879
|
media: [{
|
|
15866
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15880
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-10.jpg",
|
|
15867
15881
|
name: "",
|
|
15868
15882
|
objectFit: "cover"
|
|
15869
15883
|
}, {
|
|
@@ -15873,7 +15887,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15873
15887
|
}]
|
|
15874
15888
|
}, {
|
|
15875
15889
|
media: [{
|
|
15876
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15890
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
15877
15891
|
name: "",
|
|
15878
15892
|
objectFit: "cover"
|
|
15879
15893
|
}, {
|
|
@@ -15885,11 +15899,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15885
15899
|
link: ""
|
|
15886
15900
|
},
|
|
15887
15901
|
{
|
|
15888
|
-
title: "
|
|
15889
|
-
subtitle: "
|
|
15902
|
+
title: "CSM and Lunar Module LM",
|
|
15903
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15890
15904
|
gallery: [{
|
|
15891
15905
|
media: [{
|
|
15892
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15906
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
15893
15907
|
name: "",
|
|
15894
15908
|
objectFit: "cover"
|
|
15895
15909
|
}, {
|
|
@@ -15901,11 +15915,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15901
15915
|
link: ""
|
|
15902
15916
|
},
|
|
15903
15917
|
{
|
|
15904
|
-
title: "
|
|
15905
|
-
subtitle: "
|
|
15918
|
+
title: "David R. Scott during EVA",
|
|
15919
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15906
15920
|
gallery: [{
|
|
15907
15921
|
media: [{
|
|
15908
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15922
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
15909
15923
|
name: "",
|
|
15910
15924
|
objectFit: "cover"
|
|
15911
15925
|
}, {
|
|
@@ -15917,11 +15931,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15917
15931
|
link: ""
|
|
15918
15932
|
},
|
|
15919
15933
|
{
|
|
15920
|
-
title: "
|
|
15921
|
-
subtitle: "
|
|
15934
|
+
title: "Fourth day of the mission",
|
|
15935
|
+
subtitle: "Hasselblad 500 EL / Zeiss Planar 80 mm / SO-368 Ektachrome",
|
|
15922
15936
|
gallery: [{
|
|
15923
15937
|
media: [{
|
|
15924
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15938
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-8.jpg",
|
|
15925
15939
|
name: "",
|
|
15926
15940
|
objectFit: "cover"
|
|
15927
15941
|
}, {
|
|
@@ -15933,11 +15947,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
15933
15947
|
link: ""
|
|
15934
15948
|
},
|
|
15935
15949
|
{
|
|
15936
|
-
title: "
|
|
15937
|
-
subtitle: "
|
|
15950
|
+
title: "Landing of the Spider1",
|
|
15951
|
+
subtitle: "Hasselblad SWC/ Zeiss Biogon 38 mm / SO-368 Ektachrome",
|
|
15938
15952
|
gallery: [{
|
|
15939
15953
|
media: [{
|
|
15940
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
15954
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-9.jpg",
|
|
15941
15955
|
name: "",
|
|
15942
15956
|
objectFit: "cover"
|
|
15943
15957
|
}, {
|
|
@@ -16252,7 +16266,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
16252
16266
|
defaults: {
|
|
16253
16267
|
lightbox: "on",
|
|
16254
16268
|
imageDisplay: {
|
|
16255
|
-
display: "
|
|
16269
|
+
display: "fit",
|
|
16256
16270
|
ratioValue: "2:3",
|
|
16257
16271
|
reversed: !1
|
|
16258
16272
|
},
|
|
@@ -16531,7 +16545,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
16531
16545
|
lightboxCounterFontSettings: "lightboxCounterFontFamily"
|
|
16532
16546
|
},
|
|
16533
16547
|
schema: Vm,
|
|
16534
|
-
sourceCode:
|
|
16548
|
+
sourceCode: Bm
|
|
16535
16549
|
}, Gm = 50, El = 10, ja = "cntrl-lightbox-journal", Pr = ja, ya = `${ja}-`, Ar = (e) => `${ja}-${e}`, Ga = (e) => e === Pr || e.startsWith(ya), Ml = (e) => {
|
|
16536
16550
|
if (!e) return null;
|
|
16537
16551
|
const t = Number.parseInt(e, 10);
|
|
@@ -16770,42 +16784,42 @@ function nc({
|
|
|
16770
16784
|
closeIconMaxWidth: E = 0,
|
|
16771
16785
|
closeIconColor: P = "#000000",
|
|
16772
16786
|
closeIconHoverColor: H = "#cccccc"
|
|
16773
|
-
} = n, M = D(x, i),
|
|
16787
|
+
} = n, M = D(x, i), B = D($, i), I = D(w, i), v = f === "mobile", K = vi("title1", yi(n, "title1"), i), g = vi("title2", yi(n, "title2"), i), L = vi("title3", yi(n, "title3"), i), A = Be(
|
|
16774
16788
|
() => ({
|
|
16775
16789
|
title1Width: c ?? ki.title1Width,
|
|
16776
16790
|
title2Width: s ?? ki.title2Width,
|
|
16777
16791
|
title3Width: d ?? ki.title3Width
|
|
16778
16792
|
}),
|
|
16779
16793
|
[c, s, d]
|
|
16780
|
-
), V =
|
|
16794
|
+
), V = Be(() => ({
|
|
16781
16795
|
title2MarginLeft: y,
|
|
16782
16796
|
title3MarginLeft: b
|
|
16783
|
-
}), [y, b]), X =
|
|
16797
|
+
}), [y, b]), X = Be(
|
|
16784
16798
|
() => Zn(e, t, K, g, L),
|
|
16785
16799
|
[e, t, K, g, L]
|
|
16786
|
-
), se =
|
|
16800
|
+
), se = Be(
|
|
16787
16801
|
() => X.map((Q) => A[Q.widthKey]),
|
|
16788
16802
|
[X, A]
|
|
16789
|
-
), Z =
|
|
16803
|
+
), Z = Be(
|
|
16790
16804
|
() => Oi(X.length, se),
|
|
16791
16805
|
[X.length, se]
|
|
16792
|
-
), j =
|
|
16806
|
+
), j = Be(
|
|
16793
16807
|
() => bo(X.length, se),
|
|
16794
16808
|
[X.length, se]
|
|
16795
|
-
), F =
|
|
16809
|
+
), F = Be(
|
|
16796
16810
|
() => X.filter((Q) => Q.prefix === "title1"),
|
|
16797
16811
|
[X]
|
|
16798
|
-
), S =
|
|
16812
|
+
), S = Be(
|
|
16799
16813
|
() => X.filter((Q) => Q.prefix === "title2" || Q.prefix === "title3"),
|
|
16800
16814
|
[X]
|
|
16801
|
-
), R =
|
|
16815
|
+
), R = Be(
|
|
16802
16816
|
() => Qn(F, A),
|
|
16803
16817
|
[F, A]
|
|
16804
|
-
), G =
|
|
16818
|
+
), G = Be(
|
|
16805
16819
|
() => Qn(S, A),
|
|
16806
16820
|
[S, A]
|
|
16807
|
-
),
|
|
16808
|
-
if (!(
|
|
16821
|
+
), z = !!(t.title1 || t.title2 || t.title3), ne = T !== null;
|
|
16822
|
+
if (!(z || ne)) return null;
|
|
16809
16823
|
const xe = (p ?? 0) > 0 || o, h = (Q, fe) => {
|
|
16810
16824
|
const He = X.findIndex((N) => N.prefix === Q.prefix);
|
|
16811
16825
|
if (!v || fe === "single-row")
|
|
@@ -16996,7 +17010,7 @@ function nc({
|
|
|
16996
17010
|
style: {
|
|
16997
17011
|
width: D(E ?? 0, i),
|
|
16998
17012
|
height: D(E ?? 0, i),
|
|
16999
|
-
marginRight:
|
|
17013
|
+
marginRight: B,
|
|
17000
17014
|
"--close-icon-hover-color": H
|
|
17001
17015
|
},
|
|
17002
17016
|
children: [
|
|
@@ -17031,7 +17045,7 @@ function nc({
|
|
|
17031
17045
|
position: "absolute",
|
|
17032
17046
|
top: 0,
|
|
17033
17047
|
left: "100%",
|
|
17034
|
-
width:
|
|
17048
|
+
width: B,
|
|
17035
17049
|
height: "100%",
|
|
17036
17050
|
pointerEvents: "auto"
|
|
17037
17051
|
}
|
|
@@ -17040,7 +17054,7 @@ function nc({
|
|
|
17040
17054
|
]
|
|
17041
17055
|
}
|
|
17042
17056
|
), Fe = () => ne ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-header-controls`, children: Pe() }) : null, Ce = (Q) => /* @__PURE__ */ l("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ l("div", { className: `${e}-titles-stack`, children: Q }) }), Te = (Q) => /* @__PURE__ */ J("div", { className: `${e}-titles-row-top`, children: [
|
|
17043
|
-
ne ||
|
|
17057
|
+
ne || z ? $e() : null,
|
|
17044
17058
|
xe ? U("two-row") : null,
|
|
17045
17059
|
Ce(Q),
|
|
17046
17060
|
Fe()
|
|
@@ -17166,9 +17180,9 @@ function nc({
|
|
|
17166
17180
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
17167
17181
|
style: { width: "100%", position: "relative" },
|
|
17168
17182
|
children: [
|
|
17169
|
-
ne ||
|
|
17183
|
+
ne || z ? $e() : null,
|
|
17170
17184
|
xe ? U("single-row") : null,
|
|
17171
|
-
|
|
17185
|
+
z ? Ce(Se(t)) : /* @__PURE__ */ l("div", { className: `${e}-titles-row-titles`, "aria-hidden": "true" }),
|
|
17172
17186
|
Fe(),
|
|
17173
17187
|
me()
|
|
17174
17188
|
]
|
|
@@ -17694,7 +17708,7 @@ function vg({ mediaList: e }) {
|
|
|
17694
17708
|
}
|
|
17695
17709
|
);
|
|
17696
17710
|
}
|
|
17697
|
-
function
|
|
17711
|
+
function zi(e, t, n) {
|
|
17698
17712
|
const { width: i, height: o, top: r } = e, { left: a, width: c } = n, s = oc(n);
|
|
17699
17713
|
return t === "left" ? {
|
|
17700
17714
|
left: a + s - i,
|
|
@@ -17709,7 +17723,7 @@ function Bi(e, t, n) {
|
|
|
17709
17723
|
};
|
|
17710
17724
|
}
|
|
17711
17725
|
function hr(e, t, n) {
|
|
17712
|
-
const i =
|
|
17726
|
+
const i = zi(e, t, n);
|
|
17713
17727
|
return {
|
|
17714
17728
|
...i,
|
|
17715
17729
|
left: 2 * i.left - e.left
|
|
@@ -17730,7 +17744,7 @@ function bg(e, t, n) {
|
|
|
17730
17744
|
};
|
|
17731
17745
|
}
|
|
17732
17746
|
function rc(e, t, n, i) {
|
|
17733
|
-
const o =
|
|
17747
|
+
const o = zi(e, "left", i), r = zi(e, "right", i), a = hr(e, "left", i), c = hr(e, "right", i);
|
|
17734
17748
|
if (n === 1)
|
|
17735
17749
|
switch (t) {
|
|
17736
17750
|
case "center":
|
|
@@ -17765,7 +17779,7 @@ function xg(e, t, n, i) {
|
|
|
17765
17779
|
};
|
|
17766
17780
|
}
|
|
17767
17781
|
function wg(e, t, n) {
|
|
17768
|
-
const i =
|
|
17782
|
+
const i = zi(e, t, n), o = hr(e, t, n);
|
|
17769
17783
|
return {
|
|
17770
17784
|
x: o.left - i.left,
|
|
17771
17785
|
y: o.top - i.top
|
|
@@ -17942,8 +17956,8 @@ function Lg({
|
|
|
17942
17956
|
onPrev: x,
|
|
17943
17957
|
onNext: $
|
|
17944
17958
|
}) {
|
|
17945
|
-
const T = ee(null), E = ee(null), P = ee(null), H = ee(/* @__PURE__ */ new Map()), [M,
|
|
17946
|
-
}), F = ee(null), S = ee(null), R = ee(null), G = ee(!1), [
|
|
17959
|
+
const T = ee(null), E = ee(null), P = ee(null), H = ee(/* @__PURE__ */ new Map()), [M, B] = te(0), I = ee(null), v = ee(0), K = ee(0), g = ee("none"), L = ee(!1), A = ee(!1), V = ee(!1), X = ee(null), se = ee(null), Z = ee(null), j = ee(() => {
|
|
17960
|
+
}), F = ee(null), S = ee(null), R = ee(null), G = ee(!1), [z, ne] = te(null), [W, xe] = te(Jr), [h, we] = te(0), [q, de] = te("opening"), [Le, ae] = te(0), [be, U] = te(0), [$e, Se] = te(!1), [ge, ce] = te(null), [Pe, Fe] = te(null), [Ce, Te] = te(null), [O, le] = te(!1), [k, ie] = te(null), [oe, me] = te(!1), he = ee(!1), [ve, Ee] = te(!1), [Q, fe] = te(!1), He = ee(n), re = ee(void 0), N = t[n], je = N ? Zi(N) : !1, Oe = be !== 0 || $e, rt = !a && (!r || !!c), tt = s && !a, pt = d.length > 1, bt = ye((m, ue) => t.length <= 1 ? null : t[(m + ue + t.length) % t.length] ?? null, [t]), Ue = pt ? oo(d, p, -1) : bt(n, -1), ct = pt ? oo(d, p, 1) : bt(n, 1), Et = ge === -1 && Oe ? pt && Pe !== null ? oo(d, Pe, -1) : Ce !== null ? bt(Ce, -1) : null : null, dt = ge === 1 && Oe ? pt && Pe !== null ? oo(d, Pe, 1) : Ce !== null ? bt(Ce, 1) : null : null, Qe = Et && Et.url !== (Ue == null ? void 0 : Ue.url) ? Et : null, wt = dt && dt.url !== (ct == null ? void 0 : ct.url) ? dt : null, Tt = Ue && tt ? (() => {
|
|
17947
17961
|
const m = pt ? Fl(d, p, -1) : t.length > 2 ? bt((n - 1 + t.length) % t.length, -1) : null;
|
|
17948
17962
|
return m && m.url !== Ue.url ? m : null;
|
|
17949
17963
|
})() : null, ht = ct && tt ? (() => {
|
|
@@ -17952,7 +17966,7 @@ function Lg({
|
|
|
17952
17966
|
})() : null, _t = Qe ?? Tt, Vt = wt ?? ht, ot = ye((m, ue, Ae) => {
|
|
17953
17967
|
if (!m || !ue || !Ae) return;
|
|
17954
17968
|
const Me = H.current, nt = Me.get(m);
|
|
17955
|
-
(nt == null ? void 0 : nt.width) === ue && (nt == null ? void 0 : nt.height) === Ae || (Me.set(m, { width: ue, height: Ae }),
|
|
17969
|
+
(nt == null ? void 0 : nt.width) === ue && (nt == null ? void 0 : nt.height) === Ae || (Me.set(m, { width: ue, height: Ae }), B((Ft) => Ft + 1));
|
|
17956
17970
|
}, []), Pt = ye((m) => {
|
|
17957
17971
|
if (!(m != null && m.url)) return null;
|
|
17958
17972
|
const ue = H.current.get(m.url);
|
|
@@ -18030,7 +18044,7 @@ function Lg({
|
|
|
18030
18044
|
}, [_e, Yt]), un = ye(() => {
|
|
18031
18045
|
_e(), se.current = null, Je(!1), ce(null), Fe(null), Te(null), U(0), Ee(!1), L.current = !1, K.current = 0, g.current = "none";
|
|
18032
18046
|
}, [_e, Je]), Lt = ye((m) => {
|
|
18033
|
-
if (!(!tt || !
|
|
18047
|
+
if (!(!tt || !z)) {
|
|
18034
18048
|
if (V.current) {
|
|
18035
18049
|
if (se.current === m) {
|
|
18036
18050
|
Z.current = m, Yt();
|
|
@@ -18042,7 +18056,7 @@ function Lg({
|
|
|
18042
18056
|
}
|
|
18043
18057
|
}, [
|
|
18044
18058
|
tt,
|
|
18045
|
-
|
|
18059
|
+
z,
|
|
18046
18060
|
Yt,
|
|
18047
18061
|
un,
|
|
18048
18062
|
_e,
|
|
@@ -18118,7 +18132,7 @@ function Lg({
|
|
|
18118
18132
|
H.current.has(Me.url) || fg(Me, ot);
|
|
18119
18133
|
});
|
|
18120
18134
|
}, [t, d, ot]), We(() => {
|
|
18121
|
-
if (q !== "opening" || !
|
|
18135
|
+
if (q !== "opening" || !z) return;
|
|
18122
18136
|
if (!b) {
|
|
18123
18137
|
de("open");
|
|
18124
18138
|
return;
|
|
@@ -18130,7 +18144,7 @@ function Lg({
|
|
|
18130
18144
|
});
|
|
18131
18145
|
});
|
|
18132
18146
|
return () => cancelAnimationFrame(m);
|
|
18133
|
-
}, [q,
|
|
18147
|
+
}, [q, z, b]), We(() => {
|
|
18134
18148
|
if (q !== "closing") return;
|
|
18135
18149
|
const m = setTimeout(() => f(), Pn);
|
|
18136
18150
|
return () => clearTimeout(m);
|
|
@@ -18221,8 +18235,8 @@ function Lg({
|
|
|
18221
18235
|
}, [q, tt, Je, xt, _e, rt, sn, Ye]);
|
|
18222
18236
|
const Ge = ye(() => {
|
|
18223
18237
|
const m = (w == null ? void 0 : w()) ?? b ?? null;
|
|
18224
|
-
m &&
|
|
18225
|
-
}, [w, b,
|
|
18238
|
+
m && z && (ie(m), le(!0)), de("closing");
|
|
18239
|
+
}, [w, b, z]);
|
|
18226
18240
|
We(() => {
|
|
18227
18241
|
const m = (Me) => {
|
|
18228
18242
|
if (Me.key === "Escape") {
|
|
@@ -18257,7 +18271,7 @@ function Lg({
|
|
|
18257
18271
|
}, [q, Wt]);
|
|
18258
18272
|
const Ze = () => {
|
|
18259
18273
|
q === "closing" || a || Ge();
|
|
18260
|
-
}, De = q === "open", qe = q === "closing", ft = Le > 0 ? Math.max(0, 1 - Le / 500) : 1,
|
|
18274
|
+
}, De = q === "open", qe = q === "closing", ft = Le > 0 ? Math.max(0, 1 - Le / 500) : 1, ze = Le > 0 ? Math.max(0.35, 1 - Le / 500) : 1, it = ye((m) => {
|
|
18261
18275
|
if (!(m.propertyName !== "transform" || !V.current)) {
|
|
18262
18276
|
if (se.current !== null) {
|
|
18263
18277
|
Yt();
|
|
@@ -18265,7 +18279,7 @@ function Lg({
|
|
|
18265
18279
|
}
|
|
18266
18280
|
_e(), Je(!1);
|
|
18267
18281
|
}
|
|
18268
|
-
}, [_e, Je, Yt]), at = q === "closing" ? k ?? b : b,
|
|
18282
|
+
}, [_e, Je, Yt]), at = q === "closing" ? k ?? b : b, Bt = at && z && (q === "opening" || qe) ? dg(at, z) : void 0, Mt = Oe && N ? Ht(N, "center") : Le > 0 ? `translateY(${Le}px)` : Bt, mt = z ? jo(z, W) : null, jt = !!(at && z), Ot = jt && (q === "closing" || q === "open" && O), Jt = {
|
|
18269
18283
|
position: "absolute",
|
|
18270
18284
|
top: mt == null ? void 0 : mt.top,
|
|
18271
18285
|
left: mt == null ? void 0 : mt.left,
|
|
@@ -18274,7 +18288,7 @@ function Lg({
|
|
|
18274
18288
|
objectFit: "contain",
|
|
18275
18289
|
transformOrigin: "top left",
|
|
18276
18290
|
transform: Mt,
|
|
18277
|
-
opacity: Le > 0 ?
|
|
18291
|
+
opacity: Le > 0 ? ze : jt ? 1 : q === "opening" || qe ? 0 : 1,
|
|
18278
18292
|
transition: ve && !$e ? "none" : $e ? `transform ${to}ms ${vn}` : Q ? `transform ${Pn}ms ${vn}, opacity ${Pn}ms ${vn}` : Ot ? `transform ${Pn}ms ${vn}` : q === "opening" || qe ? `opacity ${Pn}ms ${vn}` : "none",
|
|
18279
18293
|
pointerEvents: je && De && !Oe ? "auto" : "none",
|
|
18280
18294
|
touchAction: je && De ? "none" : void 0,
|
|
@@ -18290,7 +18304,7 @@ function Lg({
|
|
|
18290
18304
|
const Me = Pt(m);
|
|
18291
18305
|
if (!Me) return { display: "none" };
|
|
18292
18306
|
const nt = Ae === "far" ? ue === "left" ? "far-left" : "far-right" : ue === "left" ? "left-adjacent" : "right-adjacent", { start: Ft } = ge !== null ? rc(Me, nt, ge, W) : {
|
|
18293
|
-
start: Ae === "far" ? hr(Me, ue, W) :
|
|
18307
|
+
start: Ae === "far" ? hr(Me, ue, W) : zi(Me, ue, W)
|
|
18294
18308
|
}, Xe = jo(Ft, W), st = Ht(m, nt), qt = !Oe && Ae === "adjacent" && De && !oe ? wg(Me, ue, W) : null, Rt = Ae === "far" && Oe && ge === (ue === "left" ? -1 : 1), fn = ve && !$e ? !1 : $e, yn = Ae === "adjacent" && De && oe && !Oe;
|
|
18295
18309
|
return {
|
|
18296
18310
|
position: "absolute",
|
|
@@ -18307,7 +18321,7 @@ function Lg({
|
|
|
18307
18321
|
};
|
|
18308
18322
|
}, an = (m, ue) => {
|
|
18309
18323
|
const Ae = Pt(m);
|
|
18310
|
-
return Ae ? bg(
|
|
18324
|
+
return Ae ? bg(zi(Ae, ue, W), ue, W) : null;
|
|
18311
18325
|
}, It = (m) => (ue) => {
|
|
18312
18326
|
if (!a) {
|
|
18313
18327
|
if (A.current) {
|
|
@@ -18316,7 +18330,7 @@ function Lg({
|
|
|
18316
18330
|
}
|
|
18317
18331
|
ue.stopPropagation(), Lt(m);
|
|
18318
18332
|
}
|
|
18319
|
-
}, Zt = Ue ? an(Ue, "left") : null, yt = ct ? an(ct, "right") : null,
|
|
18333
|
+
}, Zt = Ue ? an(Ue, "left") : null, yt = ct ? an(ct, "right") : null, zt = Zt ? jo(Zt, W) : null, Xt = yt ? jo(yt, W) : null;
|
|
18320
18334
|
return /* @__PURE__ */ J(
|
|
18321
18335
|
"div",
|
|
18322
18336
|
{
|
|
@@ -18422,15 +18436,15 @@ function Lg({
|
|
|
18422
18436
|
},
|
|
18423
18437
|
`prev-${Ue.url}`
|
|
18424
18438
|
),
|
|
18425
|
-
|
|
18439
|
+
zt && /* @__PURE__ */ l(
|
|
18426
18440
|
"div",
|
|
18427
18441
|
{
|
|
18428
18442
|
style: {
|
|
18429
18443
|
position: "absolute",
|
|
18430
|
-
top:
|
|
18431
|
-
left:
|
|
18432
|
-
width:
|
|
18433
|
-
height:
|
|
18444
|
+
top: zt.top,
|
|
18445
|
+
left: zt.left,
|
|
18446
|
+
width: zt.width,
|
|
18447
|
+
height: zt.height,
|
|
18434
18448
|
cursor: a || ve ? "default" : "pointer",
|
|
18435
18449
|
pointerEvents: a || ve ? "none" : "auto",
|
|
18436
18450
|
zIndex: 3
|
|
@@ -18477,7 +18491,7 @@ function Lg({
|
|
|
18477
18491
|
},
|
|
18478
18492
|
`far-next-${Vt.url}`
|
|
18479
18493
|
),
|
|
18480
|
-
|
|
18494
|
+
z && N && (je ? /* @__PURE__ */ l(
|
|
18481
18495
|
Tg,
|
|
18482
18496
|
{
|
|
18483
18497
|
src: N.url,
|
|
@@ -18514,7 +18528,7 @@ function Ig({
|
|
|
18514
18528
|
layoutId: r,
|
|
18515
18529
|
portalId: a
|
|
18516
18530
|
}) {
|
|
18517
|
-
const { prefix: c } = hn(), { gridLayout: s, verticalGap: d, align: p = "top", imageDisplay: y } = e, b = (y == null ? void 0 : y.display) === "cover", w = (y == null ? void 0 : y.ratioValue) ?? "1:1", f = (y == null ? void 0 : y.reversed) ?? !1, [x, $] = w.split(":").map(Number), P = `${f ? $ : x} / ${f ? x : $}`, H = s.entryWidth ?? 0.2, M = s.columnsCount,
|
|
18531
|
+
const { prefix: c } = hn(), { gridLayout: s, verticalGap: d, align: p = "top", imageDisplay: y } = e, b = (y == null ? void 0 : y.display) === "cover", w = (y == null ? void 0 : y.ratioValue) ?? "1:1", f = (y == null ? void 0 : y.reversed) ?? !1, [x, $] = w.split(":").map(Number), P = `${f ? $ : x} / ${f ? x : $}`, H = s.entryWidth ?? 0.2, M = s.columnsCount, B = D(H, n), I = D(s.horizontalGap ?? 0, n), v = B, K = B, g = {
|
|
18518
18532
|
width: v,
|
|
18519
18533
|
...b ? { aspectRatio: P, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
18520
18534
|
}, L = b ? {
|
|
@@ -18529,21 +18543,21 @@ function Ig({
|
|
|
18529
18543
|
width: "auto",
|
|
18530
18544
|
height: "auto",
|
|
18531
18545
|
maxWidth: "100%"
|
|
18532
|
-
}, A = ee(null), [V, X] = te(!1), [se, Z] = te([]), [j, F] = te(0), [S, R] = te(0), [G,
|
|
18546
|
+
}, A = ee(null), [V, X] = te(!1), [se, Z] = te([]), [j, F] = te(0), [S, R] = te(0), [G, z] = te(null), [ne, W] = te({
|
|
18533
18547
|
title1: "",
|
|
18534
18548
|
title2: "",
|
|
18535
18549
|
title3: ""
|
|
18536
18550
|
}), xe = (() => {
|
|
18537
18551
|
const Ce = {}, Te = A.current ? getComputedStyle(A.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
18538
18552
|
return Te && (Ce["--cntrl-article-width"] = Te), Ce;
|
|
18539
|
-
})(), h = !n || i || o, we =
|
|
18553
|
+
})(), h = !n || i || o, we = Be(() => og(c), [c]), q = t ?? [], de = q.length % M || M, Le = de < M && q.length > 0, ae = q.length - de, be = Le ? Math.floor((M - de) / 2) + 1 : 1, U = Be(() => pg(q), [q]), $e = Be(() => yg(q), [q]), Se = (Ce, Te, O) => {
|
|
18540
18554
|
if (n && !o && !i) return;
|
|
18541
18555
|
const le = U.findIndex((ie) => ie.gridIndex === Ce);
|
|
18542
18556
|
if (le < 0) return;
|
|
18543
18557
|
const k = U[le];
|
|
18544
|
-
R(le), Z(k.items), F(Te), W(k.entry),
|
|
18558
|
+
R(le), Z(k.items), F(Te), W(k.entry), z(O ?? null), X(!0);
|
|
18545
18559
|
}, ge = ye(() => {
|
|
18546
|
-
X(!1),
|
|
18560
|
+
X(!1), z(null);
|
|
18547
18561
|
}, []), ce = ye(() => {
|
|
18548
18562
|
const Ce = U[S];
|
|
18549
18563
|
return !Ce || !A.current ? G : ug(
|
|
@@ -18576,7 +18590,7 @@ function Ig({
|
|
|
18576
18590
|
ref: A,
|
|
18577
18591
|
className: `${c}-wrapper ${c}-align-entries ${c}-image-align-${p}`.trim(),
|
|
18578
18592
|
style: {
|
|
18579
|
-
gridTemplateColumns: `repeat(${M}, ${
|
|
18593
|
+
gridTemplateColumns: `repeat(${M}, ${B})`,
|
|
18580
18594
|
rowGap: 0,
|
|
18581
18595
|
columnGap: I,
|
|
18582
18596
|
width: D(s.wrapperWidth ?? 0, n),
|
|
@@ -18605,7 +18619,7 @@ function Ig({
|
|
|
18605
18619
|
ie ? `${c}-item-inner-last-row` : ""
|
|
18606
18620
|
].filter(Boolean).join(" "),
|
|
18607
18621
|
style: {
|
|
18608
|
-
width:
|
|
18622
|
+
width: B,
|
|
18609
18623
|
...oe ? { gridColumn: oe } : {}
|
|
18610
18624
|
},
|
|
18611
18625
|
children: [
|
|
@@ -21088,15 +21102,15 @@ function Mg(e) {
|
|
|
21088
21102
|
display: { type: "text-appearance", useTabDesign: !0 }
|
|
21089
21103
|
}, t;
|
|
21090
21104
|
}
|
|
21091
|
-
const
|
|
21105
|
+
const Bi = ni.filter(
|
|
21092
21106
|
(e) => e !== "count"
|
|
21093
|
-
), Pg =
|
|
21107
|
+
), Pg = Bi.reduce(
|
|
21094
21108
|
(e, t) => ({
|
|
21095
21109
|
...e,
|
|
21096
21110
|
...Mg(t)
|
|
21097
21111
|
}),
|
|
21098
21112
|
{}
|
|
21099
|
-
), Ag =
|
|
21113
|
+
), Ag = Bi.reduce(
|
|
21100
21114
|
(e, t) => ({
|
|
21101
21115
|
...e,
|
|
21102
21116
|
[Ke(t, "fontFamily")]: "Arial",
|
|
@@ -21116,7 +21130,7 @@ const zi = ni.filter(
|
|
|
21116
21130
|
{}
|
|
21117
21131
|
);
|
|
21118
21132
|
function Zr(e) {
|
|
21119
|
-
return
|
|
21133
|
+
return Bi.reduce((t, n) => {
|
|
21120
21134
|
const i = e[`${n}FontSize`], o = e[`${n}LineHeight`];
|
|
21121
21135
|
return i !== void 0 && (t[Ke(n, "fontSize")] = i), o !== void 0 && (t[Ke(n, "lineHeight")] = o), t;
|
|
21122
21136
|
}, {});
|
|
@@ -21125,7 +21139,7 @@ const kg = {
|
|
|
21125
21139
|
type: "tab",
|
|
21126
21140
|
id: "journalTextStyle",
|
|
21127
21141
|
tabs: Object.fromEntries(
|
|
21128
|
-
|
|
21142
|
+
Bi.map((e) => [
|
|
21129
21143
|
qa[e],
|
|
21130
21144
|
Ka(e)
|
|
21131
21145
|
])
|
|
@@ -21597,10 +21611,10 @@ const kg = {
|
|
|
21597
21611
|
},
|
|
21598
21612
|
fontSettingsPaths: {
|
|
21599
21613
|
content: [],
|
|
21600
|
-
parameters: [...
|
|
21614
|
+
parameters: [...Bi.map((e) => ({ path: `${Ke(e, "fontFamily")}` }))]
|
|
21601
21615
|
},
|
|
21602
21616
|
fontRelations: {
|
|
21603
|
-
...
|
|
21617
|
+
...Bi.reduce((e, t) => ({
|
|
21604
21618
|
...e,
|
|
21605
21619
|
[`${t}FontSettings`]: `${Ke(t, "fontFamily")}`
|
|
21606
21620
|
}), {})
|
|
@@ -21646,7 +21660,7 @@ function Og(e) {
|
|
|
21646
21660
|
const t = e.name ?? "";
|
|
21647
21661
|
return /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t) ? !0 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(e.url);
|
|
21648
21662
|
}
|
|
21649
|
-
function
|
|
21663
|
+
function zg({
|
|
21650
21664
|
media: e,
|
|
21651
21665
|
className: t,
|
|
21652
21666
|
style: n
|
|
@@ -21685,7 +21699,7 @@ function Bg({
|
|
|
21685
21699
|
function rr(e) {
|
|
21686
21700
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
21687
21701
|
}
|
|
21688
|
-
function
|
|
21702
|
+
function Bg(e) {
|
|
21689
21703
|
return String(e ?? "").trim().length > 0;
|
|
21690
21704
|
}
|
|
21691
21705
|
function Nl(e, t) {
|
|
@@ -21696,7 +21710,7 @@ function Ol(e, t) {
|
|
|
21696
21710
|
const n = e.currentTarget, i = n.getBoundingClientRect(), o = e.clientY < i.top + i.height / 2;
|
|
21697
21711
|
n.classList.toggle(`${t}-reveal-from-bottom`, o);
|
|
21698
21712
|
}
|
|
21699
|
-
function
|
|
21713
|
+
function zl(e, t, n, i, o, r, a) {
|
|
21700
21714
|
const c = D(r, a), s = D(0, a), d = e === 0, p = e === t - 1 && !o;
|
|
21701
21715
|
return { borderTopWidth: d && n ? c : s, borderBottomWidth: !p || i ? c : s };
|
|
21702
21716
|
}
|
|
@@ -21707,7 +21721,7 @@ function Dg(e, t, n) {
|
|
|
21707
21721
|
borderBottomWidth: e ? i : o
|
|
21708
21722
|
};
|
|
21709
21723
|
}
|
|
21710
|
-
const
|
|
21724
|
+
const Bl = 10;
|
|
21711
21725
|
function Vg(e) {
|
|
21712
21726
|
return `
|
|
21713
21727
|
.${e}-wrapper {
|
|
@@ -22154,9 +22168,9 @@ const ii = [
|
|
|
22154
22168
|
"CColumn",
|
|
22155
22169
|
"DColumn",
|
|
22156
22170
|
"EColumn"
|
|
22157
|
-
],
|
|
22171
|
+
], Bn = "cutLabel", xo = [
|
|
22158
22172
|
...Ya,
|
|
22159
|
-
|
|
22173
|
+
Bn
|
|
22160
22174
|
], kr = ["A", "B", "C", "D", "E"];
|
|
22161
22175
|
function lc(e) {
|
|
22162
22176
|
return `${e}ColumnVerticalAlign`;
|
|
@@ -22325,7 +22339,7 @@ function fr(e, t) {
|
|
|
22325
22339
|
textLineHeight: n("textLineHeight"),
|
|
22326
22340
|
textLetterSpacing: n("textLetterSpacing") ?? 0,
|
|
22327
22341
|
textWordSpacing: n("textWordSpacing") ?? 0,
|
|
22328
|
-
textTextAlign: n("textTextAlign") ?? (t ===
|
|
22342
|
+
textTextAlign: n("textTextAlign") ?? (t === Bn ? "center" : "left"),
|
|
22329
22343
|
textTextAppearance: n("textTextAppearance"),
|
|
22330
22344
|
textColor: e.textColor
|
|
22331
22345
|
};
|
|
@@ -22564,7 +22578,7 @@ function fh(e, t, n) {
|
|
|
22564
22578
|
const o = dc(n == null ? void 0 : n.designWidth), r = e.columns, a = t.columns, c = co(e), s = co(t), d = e.type === "b" || e.type === void 0 && t.type === "b", p = typeof r == "number" ? r : typeof a == "number" ? a : ii.length, y = (P) => {
|
|
22565
22579
|
if (d)
|
|
22566
22580
|
return P;
|
|
22567
|
-
const H = qo({ ...t, ...P }), M = co(P),
|
|
22581
|
+
const H = qo({ ...t, ...P }), M = co(P), B = ar(p, M, H), I = uh(p, B, {
|
|
22568
22582
|
...t,
|
|
22569
22583
|
...P
|
|
22570
22584
|
});
|
|
@@ -22665,7 +22679,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22665
22679
|
cutCellMinHeight: P,
|
|
22666
22680
|
cutLabel: H,
|
|
22667
22681
|
imageSize: M,
|
|
22668
|
-
imageOnHover:
|
|
22682
|
+
imageOnHover: B,
|
|
22669
22683
|
entryHoverEffect: I,
|
|
22670
22684
|
entryHoverShowOption: v,
|
|
22671
22685
|
rowPaddingTop: K,
|
|
@@ -22679,7 +22693,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22679
22693
|
textHoverColor: j,
|
|
22680
22694
|
backgroundHoverColor: F,
|
|
22681
22695
|
dividerHoverColor: S
|
|
22682
|
-
} = e, [R, G] = te(void 0), [
|
|
22696
|
+
} = e, [R, G] = te(void 0), [z, ne] = te(null), W = B === "on" && (!n || i), xe = (T ?? 0) > 0, h = y === "b", we = ee(null), q = ee(null), [de, Le] = te(null), [ae, be] = te(So), U = dc(ae), $e = Math.max(0, ((b ?? 0) - U) / 2), Se = Math.min(V ?? 0, $e), ge = Math.max(Se, Ei), ce = ((b ?? 0) + U) / 2;
|
|
22683
22697
|
Dt(() => {
|
|
22684
22698
|
if (!n) {
|
|
22685
22699
|
be(So);
|
|
@@ -22734,7 +22748,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22734
22748
|
);
|
|
22735
22749
|
ie.current = e, mc(e, Ze) && c(Ze);
|
|
22736
22750
|
}, [e, c, n, a, ae]);
|
|
22737
|
-
const me =
|
|
22751
|
+
const me = Be(
|
|
22738
22752
|
() => bh(e),
|
|
22739
22753
|
[
|
|
22740
22754
|
e.AColumnWidth,
|
|
@@ -22743,7 +22757,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22743
22757
|
e.DColumnWidth,
|
|
22744
22758
|
e.EColumnWidth
|
|
22745
22759
|
]
|
|
22746
|
-
), he =
|
|
22760
|
+
), he = Be(
|
|
22747
22761
|
() => ta(e, Di),
|
|
22748
22762
|
[
|
|
22749
22763
|
e.AColumnPaddingLeft,
|
|
@@ -22752,7 +22766,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22752
22766
|
e.DColumnPaddingLeft,
|
|
22753
22767
|
e.EColumnPaddingLeft
|
|
22754
22768
|
]
|
|
22755
|
-
), ve =
|
|
22769
|
+
), ve = Be(
|
|
22756
22770
|
() => ta(e, Vi),
|
|
22757
22771
|
[
|
|
22758
22772
|
e.AColumnPaddingRight,
|
|
@@ -22761,7 +22775,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22761
22775
|
e.DColumnPaddingRight,
|
|
22762
22776
|
e.EColumnPaddingRight
|
|
22763
22777
|
]
|
|
22764
|
-
), Ee =
|
|
22778
|
+
), Ee = Be(
|
|
22765
22779
|
() => ta(e, ji),
|
|
22766
22780
|
[
|
|
22767
22781
|
e.AColumnPaddingBottom,
|
|
@@ -22770,7 +22784,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22770
22784
|
e.DColumnPaddingBottom,
|
|
22771
22785
|
e.EColumnPaddingBottom
|
|
22772
22786
|
]
|
|
22773
|
-
), Q =
|
|
22787
|
+
), Q = Be(() => Array.isArray(A) && A.length > 0 ? A : [...ii], [A]), fe = Be(
|
|
22774
22788
|
() => xh(
|
|
22775
22789
|
Q,
|
|
22776
22790
|
p,
|
|
@@ -22780,23 +22794,23 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22780
22794
|
Ee
|
|
22781
22795
|
),
|
|
22782
22796
|
[Q, p, me, he, ve, Ee]
|
|
22783
|
-
), He = co(e), re =
|
|
22797
|
+
), He = co(e), re = Be(
|
|
22784
22798
|
() => Tn.slice(0, p).map((Ie) => me[Ie]),
|
|
22785
22799
|
[p, me]
|
|
22786
|
-
), N =
|
|
22800
|
+
), N = Be(
|
|
22787
22801
|
() => Qa(p, He, me),
|
|
22788
22802
|
[p, He, me]
|
|
22789
|
-
), je =
|
|
22803
|
+
), je = Be(
|
|
22790
22804
|
() => ar(p, He, me),
|
|
22791
22805
|
[p, He, me]
|
|
22792
|
-
), Oe =
|
|
22806
|
+
), Oe = Be(
|
|
22793
22807
|
() => fe.map((Ie, Ge) => pc(
|
|
22794
22808
|
je[Ge] ?? 0,
|
|
22795
22809
|
Ie.paddingLeft,
|
|
22796
22810
|
Ie.paddingRight
|
|
22797
22811
|
)),
|
|
22798
22812
|
[fe, je]
|
|
22799
|
-
), rt =
|
|
22813
|
+
), rt = Be(() => {
|
|
22800
22814
|
const Ie = w === 0 ? 1 / 0 : w;
|
|
22801
22815
|
return (t ?? []).slice(0, Ie).map((Ze, De) => ({
|
|
22802
22816
|
id: De,
|
|
@@ -22806,7 +22820,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22806
22820
|
image: Ze.image,
|
|
22807
22821
|
link: Ze.link
|
|
22808
22822
|
}));
|
|
22809
|
-
}, [t, w]), tt = xe ? R ?? T : rt.length, pt =
|
|
22823
|
+
}, [t, w]), tt = xe ? R ?? T : rt.length, pt = Be(() => xe ? rt.slice(0, tt) : rt, [rt, xe, tt]), bt = xe && tt < rt.length, Ue = pt.length > 1 || bt, ct = [
|
|
22810
22824
|
le ? `${s}-divider-top` : "",
|
|
22811
22825
|
k || Ue ? `${s}-divider-bottom` : ""
|
|
22812
22826
|
].filter(Boolean).join(" "), Et = !n || i, dt = () => {
|
|
@@ -22817,7 +22831,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22817
22831
|
return;
|
|
22818
22832
|
}
|
|
22819
22833
|
G(Math.min(Ie + E, rt.length));
|
|
22820
|
-
}, Qe = (Ie) => D(Ie, n ?? !1), wt = h ? L ?? 0 : K ?? 0, Tt = g ?? 0, ht = f ?? 0, _t = wt + ht / 2, Vt = Math.max(Tt, ea), ot =
|
|
22834
|
+
}, Qe = (Ie) => D(Ie, n ?? !1), wt = h ? L ?? 0 : K ?? 0, Tt = g ?? 0, ht = f ?? 0, _t = wt + ht / 2, Vt = Math.max(Tt, ea), ot = zl(
|
|
22821
22835
|
0,
|
|
22822
22836
|
pt.length,
|
|
22823
22837
|
le,
|
|
@@ -22831,8 +22845,8 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22831
22845
|
return { x: 0, y: 0 };
|
|
22832
22846
|
const Ze = Ge.getBoundingClientRect();
|
|
22833
22847
|
return {
|
|
22834
|
-
x: Ie.clientX - Ze.left +
|
|
22835
|
-
y: Ie.clientY - Ze.top +
|
|
22848
|
+
x: Ie.clientX - Ze.left + Bl,
|
|
22849
|
+
y: Ie.clientY - Ze.top + Bl
|
|
22836
22850
|
};
|
|
22837
22851
|
}, un = (Ie, Ge) => {
|
|
22838
22852
|
if (!W) return;
|
|
@@ -22841,7 +22855,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22841
22855
|
ne(null);
|
|
22842
22856
|
return;
|
|
22843
22857
|
}
|
|
22844
|
-
const { x: De, y: qe } = sn(Ge), ft = (M == null ? void 0 : M.min) ?? 80,
|
|
22858
|
+
const { x: De, y: qe } = sn(Ge), ft = (M == null ? void 0 : M.min) ?? 80, ze = (M == null ? void 0 : M.max) ?? 320, it = (z == null ? void 0 : z.rowId) === Ie.id ? z.widthPx : vh(ft, ze);
|
|
22845
22859
|
ne({
|
|
22846
22860
|
rowId: Ie.id,
|
|
22847
22861
|
url: Ze.url,
|
|
@@ -22852,7 +22866,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22852
22866
|
y: qe
|
|
22853
22867
|
});
|
|
22854
22868
|
}, Lt = (Ie) => {
|
|
22855
|
-
if (!W || !
|
|
22869
|
+
if (!W || !z) return;
|
|
22856
22870
|
const { x: Ge, y: Ze } = sn(Ie);
|
|
22857
22871
|
ne((De) => !De || De.x === Ge && De.y === Ze ? De : { ...De, x: Ge, y: Ze });
|
|
22858
22872
|
}, Wt = () => {
|
|
@@ -22878,8 +22892,8 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22878
22892
|
Le(null);
|
|
22879
22893
|
return;
|
|
22880
22894
|
}
|
|
22881
|
-
const ft = Ge.getBoundingClientRect(),
|
|
22882
|
-
Le(
|
|
22895
|
+
const ft = Ge.getBoundingClientRect(), ze = qe.getBoundingClientRect();
|
|
22896
|
+
Le(ze.top - ft.top + ze.height / 2);
|
|
22883
22897
|
};
|
|
22884
22898
|
Ze();
|
|
22885
22899
|
const De = new ResizeObserver(Ze);
|
|
@@ -22901,7 +22915,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22901
22915
|
k,
|
|
22902
22916
|
bt
|
|
22903
22917
|
]);
|
|
22904
|
-
const St =
|
|
22918
|
+
const St = Be(
|
|
22905
22919
|
() => !h && Ya.some((Ie) => {
|
|
22906
22920
|
const Ge = Ie.charAt(0), Ze = e[`${Ie}VerticalAlign`];
|
|
22907
22921
|
return cc(Ze, e, Ge);
|
|
@@ -22923,8 +22937,8 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22923
22937
|
const Ge = () => {
|
|
22924
22938
|
Ie.querySelectorAll("[data-list-col]").forEach((at) => {
|
|
22925
22939
|
at.style.transform = "";
|
|
22926
|
-
const
|
|
22927
|
-
|
|
22940
|
+
const Bt = at.querySelector(`.${s}-list-col`);
|
|
22941
|
+
Bt && (Bt.style.minHeight = "", Bt.style.height = "");
|
|
22928
22942
|
const Mt = at.querySelector(`.${s}-list-col-title`);
|
|
22929
22943
|
Mt && (Mt.style.transform = "");
|
|
22930
22944
|
});
|
|
@@ -22934,18 +22948,18 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22934
22948
|
return;
|
|
22935
22949
|
}
|
|
22936
22950
|
const Ze = () => {
|
|
22937
|
-
const at = Array.from(Ie.querySelectorAll("[data-list-row]")),
|
|
22951
|
+
const at = Array.from(Ie.querySelectorAll("[data-list-row]")), Bt = `${s}-list-col`, Mt = `${s}-baseline-probe`;
|
|
22938
22952
|
at.forEach((mt) => {
|
|
22939
22953
|
mt.querySelectorAll("[data-list-col]").forEach((jt) => {
|
|
22940
22954
|
jt.style.transform = "";
|
|
22941
|
-
const Ot = jt.querySelector(`.${
|
|
22955
|
+
const Ot = jt.querySelector(`.${Bt}`);
|
|
22942
22956
|
Ot && (Ot.style.minHeight = "", Ot.style.height = "");
|
|
22943
22957
|
const Jt = jt.querySelector(`.${s}-list-col-title`);
|
|
22944
22958
|
Jt && (Jt.style.transform = "");
|
|
22945
22959
|
});
|
|
22946
22960
|
}), at.forEach((mt) => {
|
|
22947
22961
|
const jt = Array.from(mt.querySelectorAll("[data-list-col]"));
|
|
22948
|
-
Qg(mt, jt,
|
|
22962
|
+
Qg(mt, jt, Bt);
|
|
22949
22963
|
}), Ie.offsetHeight, at.forEach((mt) => {
|
|
22950
22964
|
const jt = Array.from(mt.querySelectorAll("[data-list-col]")), Ot = mt.getBoundingClientRect().top, Jt = /* @__PURE__ */ new Map(), Ut = jt.map((It) => {
|
|
22951
22965
|
const Zt = It.querySelector(`.${s}-list-col-title`), yt = {
|
|
@@ -22959,30 +22973,30 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22959
22973
|
}), Nt = /* @__PURE__ */ new Map(), an = (It, Zt) => {
|
|
22960
22974
|
const yt = Nt.get(It.letter);
|
|
22961
22975
|
if (yt !== void 0) return yt;
|
|
22962
|
-
const
|
|
22963
|
-
if (It.kind !== "baseline" || !
|
|
22976
|
+
const zt = It.anchor ? Jt.get(It.anchor) : void 0;
|
|
22977
|
+
if (It.kind !== "baseline" || !zt || Zt.has(It.letter)) {
|
|
22964
22978
|
const Me = Qr(
|
|
22965
22979
|
It,
|
|
22966
22980
|
Ot,
|
|
22967
|
-
|
|
22981
|
+
Bt,
|
|
22968
22982
|
Mt
|
|
22969
22983
|
);
|
|
22970
22984
|
return Nt.set(It.letter, Me), Me;
|
|
22971
22985
|
}
|
|
22972
22986
|
Zt.add(It.letter);
|
|
22973
|
-
const Xt = an(
|
|
22987
|
+
const Xt = an(zt, Zt);
|
|
22974
22988
|
Zt.delete(It.letter);
|
|
22975
22989
|
const m = Qr(
|
|
22976
22990
|
It,
|
|
22977
22991
|
Ot,
|
|
22978
|
-
|
|
22992
|
+
Bt,
|
|
22979
22993
|
Mt
|
|
22980
22994
|
), ue = Xt - m;
|
|
22981
22995
|
eh(It.titleEl, ue);
|
|
22982
22996
|
const Ae = Qr(
|
|
22983
22997
|
It,
|
|
22984
22998
|
Ot,
|
|
22985
|
-
|
|
22999
|
+
Bt,
|
|
22986
23000
|
Mt
|
|
22987
23001
|
);
|
|
22988
23002
|
return Nt.set(It.letter, Ae), Ae;
|
|
@@ -22999,11 +23013,11 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22999
23013
|
Ze();
|
|
23000
23014
|
const ft = new ResizeObserver(() => qe());
|
|
23001
23015
|
ft.observe(Ie);
|
|
23002
|
-
let
|
|
23016
|
+
let ze = !1;
|
|
23003
23017
|
return typeof document < "u" && ((it = document.fonts) != null && it.ready) && document.fonts.ready.then(() => {
|
|
23004
|
-
|
|
23018
|
+
ze || qe();
|
|
23005
23019
|
}), () => {
|
|
23006
|
-
|
|
23020
|
+
ze = !0, De !== null && (cancelAnimationFrame(De), De = null), ft.disconnect(), Ge();
|
|
23007
23021
|
};
|
|
23008
23022
|
}, [
|
|
23009
23023
|
St,
|
|
@@ -23014,7 +23028,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23014
23028
|
pt,
|
|
23015
23029
|
je
|
|
23016
23030
|
]);
|
|
23017
|
-
const rn =
|
|
23031
|
+
const rn = Be(() => Vg(s), [s]);
|
|
23018
23032
|
return /* @__PURE__ */ J(lt, { children: [
|
|
23019
23033
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: rn } }),
|
|
23020
23034
|
/* @__PURE__ */ l("div", { style: Pe, children: /* @__PURE__ */ J(
|
|
@@ -23032,7 +23046,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23032
23046
|
/* @__PURE__ */ J("div", { style: { width: "100%", position: "relative" }, children: [
|
|
23033
23047
|
pt.map((Ie, Ge) => {
|
|
23034
23048
|
var ft;
|
|
23035
|
-
const Ze = (((ft = Ie.link) == null ? void 0 : ft.length) ?? 0) > 0, De = Ze && (!n || i) ? "a" : "div", qe =
|
|
23049
|
+
const Ze = (((ft = Ie.link) == null ? void 0 : ft.length) ?? 0) > 0, De = Ze && (!n || i) ? "a" : "div", qe = zl(
|
|
23036
23050
|
Ge,
|
|
23037
23051
|
pt.length,
|
|
23038
23052
|
le,
|
|
@@ -23044,17 +23058,17 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23044
23058
|
return /* @__PURE__ */ J(
|
|
23045
23059
|
De,
|
|
23046
23060
|
{
|
|
23047
|
-
ref: Ge === 0 ? (
|
|
23048
|
-
q.current =
|
|
23061
|
+
ref: Ge === 0 ? (ze) => {
|
|
23062
|
+
q.current = ze;
|
|
23049
23063
|
} : void 0,
|
|
23050
23064
|
className: `${s}-list-item${Ze || v === "always" ? ` ${s}-list-item-has-link` : ""}`,
|
|
23051
23065
|
...Ze ? { href: Ie.link, target: "_blank" } : {},
|
|
23052
23066
|
style: qe,
|
|
23053
|
-
onMouseEnter: (
|
|
23054
|
-
O && (Ze || v === "always") && Nl(
|
|
23067
|
+
onMouseEnter: (ze) => {
|
|
23068
|
+
O && (Ze || v === "always") && Nl(ze, s), W && un(Ie, ze);
|
|
23055
23069
|
},
|
|
23056
|
-
onMouseLeave: (
|
|
23057
|
-
O && (Ze || v === "always") && Ol(
|
|
23070
|
+
onMouseLeave: (ze) => {
|
|
23071
|
+
O && (Ze || v === "always") && Ol(ze, s);
|
|
23058
23072
|
},
|
|
23059
23073
|
children: [
|
|
23060
23074
|
wt > 0 && /* @__PURE__ */ l(
|
|
@@ -23071,17 +23085,17 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23071
23085
|
...h ? {} : { "data-list-row": "" },
|
|
23072
23086
|
style: h ? void 0 : { minHeight: Qe(ht) },
|
|
23073
23087
|
children: [
|
|
23074
|
-
fe.map((
|
|
23075
|
-
const at = it === fe.length - 1,
|
|
23088
|
+
fe.map((ze, it) => {
|
|
23089
|
+
const at = it === fe.length - 1, Bt = Oe[it], Mt = ze.paddingBottom, mt = Bg(Ie.cells[ze.key]), jt = h && mt && Mt > 0, Ot = h ? { minHeight: Qe(ht) } : { width: Qe(je[it]) }, Jt = h ? {
|
|
23076
23090
|
paddingLeft: Qe(Se),
|
|
23077
23091
|
paddingRight: Qe(Se)
|
|
23078
23092
|
} : {
|
|
23079
|
-
paddingLeft: Qe(
|
|
23080
|
-
paddingRight: Qe(
|
|
23081
|
-
}, Ut =
|
|
23082
|
-
e[`${
|
|
23093
|
+
paddingLeft: Qe(Bt.paddingLeft),
|
|
23094
|
+
paddingRight: Qe(Bt.paddingRight)
|
|
23095
|
+
}, Ut = ze.textPrefix.charAt(0), Nt = h ? Kg(
|
|
23096
|
+
e[`${ze.textPrefix}VerticalAlign`]
|
|
23083
23097
|
) : qg(
|
|
23084
|
-
e[`${
|
|
23098
|
+
e[`${ze.textPrefix}VerticalAlign`],
|
|
23085
23099
|
e,
|
|
23086
23100
|
Ut
|
|
23087
23101
|
), an = h && mt && d && Ge === 0;
|
|
@@ -23105,22 +23119,22 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23105
23119
|
...Ot,
|
|
23106
23120
|
...h ? { justifyContent: Dl(Nt.kind) } : {}
|
|
23107
23121
|
},
|
|
23108
|
-
"data-test":
|
|
23122
|
+
"data-test": ze.width,
|
|
23109
23123
|
children: /* @__PURE__ */ l(
|
|
23110
23124
|
"span",
|
|
23111
23125
|
{
|
|
23112
23126
|
className: jl(
|
|
23113
23127
|
e,
|
|
23114
|
-
|
|
23128
|
+
ze.textPrefix,
|
|
23115
23129
|
`${s}-list-col-title`,
|
|
23116
23130
|
`${s}-text-tight-leading`
|
|
23117
23131
|
),
|
|
23118
23132
|
style: {
|
|
23119
|
-
...Vl(fr(e,
|
|
23120
|
-
...Gl(e,
|
|
23133
|
+
...Vl(fr(e, ze.textPrefix), n),
|
|
23134
|
+
...Gl(e, ze.textPrefix, s, n),
|
|
23121
23135
|
...h ? {} : Xg(Nt.kind)
|
|
23122
23136
|
},
|
|
23123
|
-
children: Ie.cells[
|
|
23137
|
+
children: Ie.cells[ze.key] ?? null
|
|
23124
23138
|
}
|
|
23125
23139
|
)
|
|
23126
23140
|
}
|
|
@@ -23136,7 +23150,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23136
23150
|
dn,
|
|
23137
23151
|
{
|
|
23138
23152
|
centerXHitTop: `var(--${s}-first-entry-handle-top, 50%)`,
|
|
23139
|
-
"data-controls":
|
|
23153
|
+
"data-controls": ze.paddingBottomKey,
|
|
23140
23154
|
"data-controls-static-handle": "",
|
|
23141
23155
|
"data-controls-axis": "y",
|
|
23142
23156
|
"data-controls-variant": "column-padding",
|
|
@@ -23154,7 +23168,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23154
23168
|
)
|
|
23155
23169
|
]
|
|
23156
23170
|
},
|
|
23157
|
-
|
|
23171
|
+
ze.key
|
|
23158
23172
|
);
|
|
23159
23173
|
}),
|
|
23160
23174
|
d && Ge === 0 && h && /* @__PURE__ */ J(lt, { children: [
|
|
@@ -23311,7 +23325,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23311
23325
|
)
|
|
23312
23326
|
] }, "column-edge-padding-handles"),
|
|
23313
23327
|
d && !h && fe.slice(0, -1).map((Ie, Ge) => {
|
|
23314
|
-
const Ze = fe[Ge + 1], De = N.slice(0, Ge + 1).reduce((at,
|
|
23328
|
+
const Ze = fe[Ge + 1], De = N.slice(0, Ge + 1).reduce((at, Bt) => at + Bt, 0), qe = Oe[Ge], ft = Oe[Ge + 1], ze = Math.max(
|
|
23315
23329
|
qe.paddingRight,
|
|
23316
23330
|
Ei
|
|
23317
23331
|
), it = Math.max(
|
|
@@ -23337,8 +23351,8 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23337
23351
|
areaStyle: {
|
|
23338
23352
|
position: "absolute",
|
|
23339
23353
|
top: 0,
|
|
23340
|
-
left: Qe(De -
|
|
23341
|
-
width: Qe(
|
|
23354
|
+
left: Qe(De - ze),
|
|
23355
|
+
width: Qe(ze),
|
|
23342
23356
|
height: "100%"
|
|
23343
23357
|
}
|
|
23344
23358
|
}
|
|
@@ -23374,7 +23388,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23374
23388
|
N,
|
|
23375
23389
|
re,
|
|
23376
23390
|
He
|
|
23377
|
-
), qe = N.slice(0, Ge + 1).reduce((ft,
|
|
23391
|
+
), qe = N.slice(0, Ge + 1).reduce((ft, ze) => ft + ze, 0) - ql / 2;
|
|
23378
23392
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
23379
23393
|
"div",
|
|
23380
23394
|
{
|
|
@@ -23398,7 +23412,7 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23398
23412
|
})
|
|
23399
23413
|
] }),
|
|
23400
23414
|
bt && (() => {
|
|
23401
|
-
const Ie = fr(e,
|
|
23415
|
+
const Ie = fr(e, Bn), Ge = Yg(e.cutLabelVerticalAlign), Ze = Ie.textTextAlign === "justify" || h;
|
|
23402
23416
|
return /* @__PURE__ */ l(
|
|
23403
23417
|
"button",
|
|
23404
23418
|
{
|
|
@@ -23433,13 +23447,13 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23433
23447
|
{
|
|
23434
23448
|
className: jl(
|
|
23435
23449
|
e,
|
|
23436
|
-
|
|
23450
|
+
Bn,
|
|
23437
23451
|
`${s}-cut-label`,
|
|
23438
23452
|
`${s}-text-tight-leading`
|
|
23439
23453
|
),
|
|
23440
23454
|
style: {
|
|
23441
23455
|
...Vl(Ie, n),
|
|
23442
|
-
...Gl(e,
|
|
23456
|
+
...Gl(e, Bn, s, n),
|
|
23443
23457
|
...Ze ? { width: "100%" } : {}
|
|
23444
23458
|
},
|
|
23445
23459
|
children: H
|
|
@@ -23450,24 +23464,24 @@ function wh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23450
23464
|
}
|
|
23451
23465
|
);
|
|
23452
23466
|
})(),
|
|
23453
|
-
W &&
|
|
23454
|
-
const Ie = rr(
|
|
23467
|
+
W && z && (() => {
|
|
23468
|
+
const Ie = rr(z.widthPx), Ge = {
|
|
23455
23469
|
width: Ie,
|
|
23456
23470
|
height: "auto",
|
|
23457
23471
|
maxHeight: Ie,
|
|
23458
23472
|
objectFit: "contain",
|
|
23459
|
-
left:
|
|
23460
|
-
top:
|
|
23473
|
+
left: z.x,
|
|
23474
|
+
top: z.y,
|
|
23461
23475
|
position: "absolute"
|
|
23462
23476
|
};
|
|
23463
23477
|
return /* @__PURE__ */ l(
|
|
23464
|
-
|
|
23478
|
+
zg,
|
|
23465
23479
|
{
|
|
23466
|
-
media:
|
|
23467
|
-
className:
|
|
23480
|
+
media: z,
|
|
23481
|
+
className: z.isVideo ? `${s}-hover-video` : `${s}-hover-image`,
|
|
23468
23482
|
style: Ge
|
|
23469
23483
|
},
|
|
23470
|
-
`${
|
|
23484
|
+
`${z.rowId}-${z.url}`
|
|
23471
23485
|
);
|
|
23472
23486
|
})()
|
|
23473
23487
|
]
|
|
@@ -26523,7 +26537,7 @@ function Xl(e = {}) {
|
|
|
26523
26537
|
}
|
|
26524
26538
|
function Lh(e) {
|
|
26525
26539
|
const t = {};
|
|
26526
|
-
if (e ===
|
|
26540
|
+
if (e === Bn)
|
|
26527
26541
|
t[`${e}VerticalAlign`] = {
|
|
26528
26542
|
type: "string",
|
|
26529
26543
|
scope: "layout",
|
|
@@ -26602,7 +26616,7 @@ const Ih = xo.reduce(
|
|
|
26602
26616
|
);
|
|
26603
26617
|
function Rh(e) {
|
|
26604
26618
|
return {
|
|
26605
|
-
verticalAlign: e ===
|
|
26619
|
+
verticalAlign: e === Bn ? "Center" : "Top",
|
|
26606
26620
|
textFontFamily: "Arial",
|
|
26607
26621
|
textFontSettings: {
|
|
26608
26622
|
fontWeight: 400,
|
|
@@ -26610,7 +26624,7 @@ function Rh(e) {
|
|
|
26610
26624
|
},
|
|
26611
26625
|
textLetterSpacing: 0,
|
|
26612
26626
|
textWordSpacing: 0,
|
|
26613
|
-
textTextAlign: e ===
|
|
26627
|
+
textTextAlign: e === Bn ? "center" : "left",
|
|
26614
26628
|
textTextAppearance: {
|
|
26615
26629
|
textTransform: "none",
|
|
26616
26630
|
textDecoration: "none",
|
|
@@ -26690,7 +26704,7 @@ const Wh = [
|
|
|
26690
26704
|
"backgroundHoverColor",
|
|
26691
26705
|
"dividerHoverColor"
|
|
26692
26706
|
];
|
|
26693
|
-
gc(
|
|
26707
|
+
gc(Bn);
|
|
26694
26708
|
const Fh = [
|
|
26695
26709
|
...Qi.flatMap((e) => [
|
|
26696
26710
|
`${e}ColumnWidth`,
|
|
@@ -26702,31 +26716,31 @@ const Fh = [
|
|
|
26702
26716
|
], gi = [
|
|
26703
26717
|
{
|
|
26704
26718
|
objectFit: "contain",
|
|
26705
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26719
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg"
|
|
26706
26720
|
},
|
|
26707
26721
|
{
|
|
26708
26722
|
objectFit: "contain",
|
|
26709
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26723
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg"
|
|
26710
26724
|
},
|
|
26711
26725
|
{
|
|
26712
26726
|
objectFit: "contain",
|
|
26713
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26727
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg"
|
|
26714
26728
|
},
|
|
26715
26729
|
{
|
|
26716
26730
|
objectFit: "contain",
|
|
26717
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26731
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg"
|
|
26718
26732
|
},
|
|
26719
26733
|
{
|
|
26720
26734
|
objectFit: "contain",
|
|
26721
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26735
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg"
|
|
26722
26736
|
},
|
|
26723
26737
|
{
|
|
26724
26738
|
objectFit: "contain",
|
|
26725
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26739
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg"
|
|
26726
26740
|
},
|
|
26727
26741
|
{
|
|
26728
26742
|
objectFit: "contain",
|
|
26729
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
26743
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg"
|
|
26730
26744
|
}
|
|
26731
26745
|
], _h = [
|
|
26732
26746
|
{
|
|
@@ -27267,7 +27281,7 @@ const Fh = [
|
|
|
27267
27281
|
},
|
|
27268
27282
|
schema: Nh,
|
|
27269
27283
|
sourceCode: Sh
|
|
27270
|
-
}, Jl = 300, Gn = 4e-3,
|
|
27284
|
+
}, Jl = 300, Gn = 4e-3, zh = {
|
|
27271
27285
|
questionColor: "question-color",
|
|
27272
27286
|
answerColor: "answer-color",
|
|
27273
27287
|
dividerColor: "divider-color",
|
|
@@ -27276,7 +27290,7 @@ const Fh = [
|
|
|
27276
27290
|
iconHoverColor: "icon-hover-color",
|
|
27277
27291
|
iconActiveColor: "icon-active-color",
|
|
27278
27292
|
dividerHoverColor: "divider-hover-color"
|
|
27279
|
-
},
|
|
27293
|
+
}, Bh = ["hover", "focus", "filled", "success", "error"];
|
|
27280
27294
|
function Dh(e) {
|
|
27281
27295
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
27282
27296
|
}
|
|
@@ -27516,7 +27530,7 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27516
27530
|
answerColor: P = "#000000",
|
|
27517
27531
|
dividerColor: H = "#0000001F",
|
|
27518
27532
|
iconColor: M = "#000000",
|
|
27519
|
-
questionHoverColor:
|
|
27533
|
+
questionHoverColor: B = "#666666",
|
|
27520
27534
|
iconHoverColor: I = "#666666",
|
|
27521
27535
|
iconActiveColor: v = "#000000",
|
|
27522
27536
|
dividerHoverColor: K = "#000000",
|
|
@@ -27532,7 +27546,7 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27532
27546
|
answerFontSize: S,
|
|
27533
27547
|
answerLineHeight: R,
|
|
27534
27548
|
answerLetterSpacing: G,
|
|
27535
|
-
answerWordSpacing:
|
|
27549
|
+
answerWordSpacing: z,
|
|
27536
27550
|
answerTextAppearance: ne,
|
|
27537
27551
|
questionPaddingLeft: W = 0,
|
|
27538
27552
|
questionPaddingTop: xe = 0,
|
|
@@ -27547,7 +27561,7 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27547
27561
|
}, [w]), We(() => {
|
|
27548
27562
|
n && !o && !i && U(/* @__PURE__ */ new Set());
|
|
27549
27563
|
}, [n, o, i]);
|
|
27550
|
-
const Se = (Qe) => D(Qe, n ?? !1), ge = Math.max(W, Gn), ce = Math.max(xe, Gn), Pe = Math.max(h, Gn), Fe = Math.max(we, Gn), Ce = Math.max(q, Gn), Te = Math.max(de, Gn), O = Math.max(Le, Gn), le = Math.max(0, (s ?? 1) - $ - x), k = Math.max(0, (s ?? 1) - q), ie = Math.max(0, (s ?? 1) - we), oe = Math.max($, Gn), me = Math.max(0, (s ?? 1) - W - x), he =
|
|
27564
|
+
const Se = (Qe) => D(Qe, n ?? !1), ge = Math.max(W, Gn), ce = Math.max(xe, Gn), Pe = Math.max(h, Gn), Fe = Math.max(we, Gn), Ce = Math.max(q, Gn), Te = Math.max(de, Gn), O = Math.max(Le, Gn), le = Math.max(0, (s ?? 1) - $ - x), k = Math.max(0, (s ?? 1) - q), ie = Math.max(0, (s ?? 1) - we), oe = Math.max($, Gn), me = Math.max(0, (s ?? 1) - W - x), he = Be(() => be.size === 0 ? 0 : Math.min(...be), [be]), ve = ye((Qe) => be.has(Qe), [be]), Ee = $e && b === "default" ? `${a}-entry-hover-default` : "", Q = f ?? "", fe = Q !== "", He = T.replace(/^rotate /, ""), re = `${a}-icon-anim-${He}`, N = $n(ln(
|
|
27551
27565
|
es(
|
|
27552
27566
|
g,
|
|
27553
27567
|
L,
|
|
@@ -27566,7 +27580,7 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27566
27580
|
S,
|
|
27567
27581
|
R,
|
|
27568
27582
|
G,
|
|
27569
|
-
|
|
27583
|
+
z,
|
|
27570
27584
|
ne,
|
|
27571
27585
|
P
|
|
27572
27586
|
),
|
|
@@ -27586,11 +27600,11 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27586
27600
|
answerColor: P,
|
|
27587
27601
|
dividerColor: H,
|
|
27588
27602
|
iconColor: M,
|
|
27589
|
-
questionHoverColor:
|
|
27603
|
+
questionHoverColor: B,
|
|
27590
27604
|
iconHoverColor: I,
|
|
27591
27605
|
iconActiveColor: v,
|
|
27592
27606
|
dividerHoverColor: K
|
|
27593
|
-
},
|
|
27607
|
+
}, zh, Bh), Ue = r && r !== "default" ? `${a}-state-${r}` : "", ct = ye((Qe) => {
|
|
27594
27608
|
$e && U((wt) => {
|
|
27595
27609
|
if (wt.has(Qe)) {
|
|
27596
27610
|
const ht = new Set(wt);
|
|
@@ -27601,7 +27615,7 @@ function jh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27601
27615
|
const Tt = new Set(wt);
|
|
27602
27616
|
return Tt.add(Qe), Tt;
|
|
27603
27617
|
});
|
|
27604
|
-
}, [$e, w]), Et =
|
|
27618
|
+
}, [$e, w]), Et = Be(() => Vh(a), [a]), dt = {
|
|
27605
27619
|
[`--${a}-divider-width`]: D(p, n ?? !1),
|
|
27606
27620
|
[`--${a}-divider-style`]: y,
|
|
27607
27621
|
[`--${a}-icon-max-width`]: D(x, n ?? !1),
|
|
@@ -29230,7 +29244,7 @@ const ts = {
|
|
|
29230
29244
|
}) => {
|
|
29231
29245
|
const [o, r] = te(0), [a, c] = te(!1), s = ee(null), d = ee(0);
|
|
29232
29246
|
d.current = o;
|
|
29233
|
-
const p =
|
|
29247
|
+
const p = Be(() => typeof window > "u" ? ns : Math.max(ns, window.innerHeight * Xh), []), y = ye((g) => Math.max(0, 1 - g / (p * 1.5)), [p]), b = ye((g) => Math.max(0, 1 - g / (p * 0.45)), [p]), w = ye((g) => {
|
|
29234
29248
|
const L = typeof window < "u" ? window.innerHeight : 800, A = Math.max(0.88, 1 - g / L * 0.12);
|
|
29235
29249
|
return `translateY(${g}px) scale(${A})`;
|
|
29236
29250
|
}, []), f = ye(() => {
|
|
@@ -29280,9 +29294,9 @@ const ts = {
|
|
|
29280
29294
|
P(g);
|
|
29281
29295
|
}, [P]), M = ye((g) => {
|
|
29282
29296
|
P(g);
|
|
29283
|
-
}, [P]),
|
|
29297
|
+
}, [P]), B = o > 0, I = a ? `transform ${n}ms ease` : "none", v = a ? `opacity ${n}ms ease` : "none", K = o > 0 || a;
|
|
29284
29298
|
return {
|
|
29285
|
-
isSwipeDragging:
|
|
29299
|
+
isSwipeDragging: B,
|
|
29286
29300
|
backdropStyle: {
|
|
29287
29301
|
opacity: y(o),
|
|
29288
29302
|
transition: v
|
|
@@ -29290,8 +29304,8 @@ const ts = {
|
|
|
29290
29304
|
mediaAreaStyle: {
|
|
29291
29305
|
transform: w(o),
|
|
29292
29306
|
transition: I,
|
|
29293
|
-
touchAction:
|
|
29294
|
-
willChange:
|
|
29307
|
+
touchAction: B ? "none" : void 0,
|
|
29308
|
+
willChange: B ? "transform" : void 0
|
|
29295
29309
|
},
|
|
29296
29310
|
overlayContentStyle: K ? {
|
|
29297
29311
|
opacity: b(o),
|
|
@@ -29304,7 +29318,7 @@ const ts = {
|
|
|
29304
29318
|
onPointerCancel: M
|
|
29305
29319
|
} : {},
|
|
29306
29320
|
dismissAreaStyle: e ? {
|
|
29307
|
-
touchAction:
|
|
29321
|
+
touchAction: B ? "none" : "pan-x"
|
|
29308
29322
|
} : void 0
|
|
29309
29323
|
};
|
|
29310
29324
|
}, Yh = "[data-lightbox-scrollable]", fc = () => {
|
|
@@ -29520,7 +29534,7 @@ const ts = {
|
|
|
29520
29534
|
thumbnailActive: P,
|
|
29521
29535
|
thumbnailActiveColor: H,
|
|
29522
29536
|
title1Width: M,
|
|
29523
|
-
title2Width:
|
|
29537
|
+
title2Width: B,
|
|
29524
29538
|
title3Width: I,
|
|
29525
29539
|
title1MarginLeft: v = 0,
|
|
29526
29540
|
title2MarginLeft: K = 0,
|
|
@@ -29529,12 +29543,12 @@ const ts = {
|
|
|
29529
29543
|
titleHeaderLayout: A = "desktop",
|
|
29530
29544
|
contentMarginTop: V,
|
|
29531
29545
|
iconMarginLeft: X
|
|
29532
|
-
} = n, se = (u) => D(u, i ?? !1), Z = s ?? n.thumnailSize ?? 0.03, j = se(Z), F = se(d), S = se(p ?? 0.02), R = se(y ?? 0), G = se(V ?? 0),
|
|
29546
|
+
} = n, se = (u) => D(u, i ?? !1), Z = s ?? n.thumnailSize ?? 0.03, j = se(Z), F = se(d), S = se(p ?? 0.02), R = se(y ?? 0), G = se(V ?? 0), z = Xo(G), ne = se(X ?? 0), [W, xe] = te(0), h = ee(W);
|
|
29533
29547
|
h.current = W;
|
|
29534
|
-
const we = t[W], { title1: q, title2: de, title3: Le } = ff(we), ae = ia("title1", na(n, "title1"), i), be = ia("title2", na(n, "title2"), i), U = ia("title3", na(n, "title3"), i), $e = A === "mobile", Se = !o && (!i || r), ge = Se, ce = Se, Pe = Se, Fe = Dn(E), Ce = Fe ? { "--image-aspect-ratio": Wr(E) } : void 0, Te = !!(q || de || Le), O =
|
|
29548
|
+
const we = t[W], { title1: q, title2: de, title3: Le } = ff(we), ae = ia("title1", na(n, "title1"), i), be = ia("title2", na(n, "title2"), i), U = ia("title3", na(n, "title3"), i), $e = A === "mobile", Se = !o && (!i || r), ge = Se, ce = Se, Pe = Se, Fe = Dn(E), Ce = Fe ? { "--image-aspect-ratio": Wr(E) } : void 0, Te = !!(q || de || Le), O = Be(
|
|
29535
29549
|
() => bf(e, q, de, Le, ae, be, U),
|
|
29536
29550
|
[e, W, q, de, Le, ae, be, U]
|
|
29537
|
-
), le =
|
|
29551
|
+
), le = Be(() => ({ title1Width: M, title2Width: B, title3Width: I }), [M, B, I]), k = Be(() => O.map((u) => le[u.widthKey]), [O, le]), ie = Be(() => el(O.length, k), [O.length, k]), oe = Be(() => yc(O.length, k), [O.length, k]), me = Be(() => O.filter((u) => u.prefix === "title1"), [O]), he = Be(() => O.filter((u) => u.prefix === "title2" || u.prefix === "title3"), [O]), ve = Be(() => os(me, le), [me, le]), Ee = Be(() => os(he, le), [he, le]), Q = ye((u, C) => {
|
|
29538
29552
|
const _ = O.indexOf(u);
|
|
29539
29553
|
if (!$e || C === "single-row")
|
|
29540
29554
|
return {
|
|
@@ -29568,7 +29582,7 @@ const ts = {
|
|
|
29568
29582
|
]), fe = ye(
|
|
29569
29583
|
(u) => D(u, i ?? !1),
|
|
29570
29584
|
[i]
|
|
29571
|
-
), He = fe(L ?? 0), re =
|
|
29585
|
+
), He = fe(L ?? 0), re = Be(
|
|
29572
29586
|
() => ({
|
|
29573
29587
|
title1MarginLeft: v,
|
|
29574
29588
|
title2MarginLeft: K,
|
|
@@ -29768,10 +29782,10 @@ const ts = {
|
|
|
29768
29782
|
scrollLeft: 0,
|
|
29769
29783
|
startActiveIndex: 0,
|
|
29770
29784
|
hasMoved: !1
|
|
29771
|
-
}), Pt = ee(null), At = ee(null), Ye = ee(0), Je = ee("forward"), _e = ee(0), xt = ee(null), kt = ee(!1), Ht = t.length > 1 && (!o || !!r), Yt = Ht ? 3 : 1, sn =
|
|
29785
|
+
}), Pt = ee(null), At = ee(null), Ye = ee(0), Je = ee("forward"), _e = ee(0), xt = ee(null), kt = ee(!1), Ht = t.length > 1 && (!o || !!r), Yt = Ht ? 3 : 1, sn = Be(
|
|
29772
29786
|
() => Array.from({ length: Yt }, () => t).flat(),
|
|
29773
29787
|
[t, Yt]
|
|
29774
|
-
), [un, Lt] = te(!1), [Wt, tn] = te(!1), [en, St] = te(!0), rn = ee(null), Ie = ee(null), Ge = ee(!1), Ze = ee(!1), De = ee(null), qe = ee(null), ft = ge && !en,
|
|
29788
|
+
), [un, Lt] = te(!1), [Wt, tn] = te(!1), [en, St] = te(!0), rn = ee(null), Ie = ee(null), Ge = ee(!1), Ze = ee(!1), De = ee(null), qe = ee(null), ft = ge && !en, ze = ye(() => {
|
|
29775
29789
|
ge && (St(!0), qe.current && clearTimeout(qe.current), qe.current = setTimeout(() => {
|
|
29776
29790
|
ot.current.isActive || St(!1);
|
|
29777
29791
|
}, rf));
|
|
@@ -29828,7 +29842,7 @@ const ts = {
|
|
|
29828
29842
|
)
|
|
29829
29843
|
]
|
|
29830
29844
|
}
|
|
29831
|
-
),
|
|
29845
|
+
), Bt = (u = "two-row") => /* @__PURE__ */ l(
|
|
29832
29846
|
"div",
|
|
29833
29847
|
{
|
|
29834
29848
|
...u === "two-row" && o ? {
|
|
@@ -29846,7 +29860,7 @@ const ts = {
|
|
|
29846
29860
|
const u = O.find((pe) => pe.prefix === "title1"), C = O.filter((pe) => pe.prefix === "title2" || pe.prefix === "title3"), _ = C.length > 0 || o || (L ?? 0) > 0;
|
|
29847
29861
|
return /* @__PURE__ */ J(lt, { children: [
|
|
29848
29862
|
/* @__PURE__ */ J("div", { className: `${e}-header-row-top`, children: [
|
|
29849
|
-
(v ?? 0) > 0 || o ?
|
|
29863
|
+
(v ?? 0) > 0 || o ? Bt() : null,
|
|
29850
29864
|
u && tt(u, "two-row-top"),
|
|
29851
29865
|
b && at()
|
|
29852
29866
|
] }),
|
|
@@ -29876,7 +29890,7 @@ const ts = {
|
|
|
29876
29890
|
] }) : null
|
|
29877
29891
|
] });
|
|
29878
29892
|
}, mt = () => /* @__PURE__ */ J(lt, { children: [
|
|
29879
|
-
(v ?? 0) > 0 || o ?
|
|
29893
|
+
(v ?? 0) > 0 || o ? Bt("single-row") : null,
|
|
29880
29894
|
O.map((u) => tt(u, "single-row")),
|
|
29881
29895
|
o ? /* @__PURE__ */ J(lt, { children: [
|
|
29882
29896
|
pt(),
|
|
@@ -29906,7 +29920,7 @@ const ts = {
|
|
|
29906
29920
|
if (!Ht) return;
|
|
29907
29921
|
const C = dt.current, _ = Zt();
|
|
29908
29922
|
!C || _ <= 0 || _ < C.clientWidth * 0.25 || (C.scrollLeft <= 0 ? (C.scrollLeft += _, u && (ot.current.scrollLeft += _), kt.current && (_e.current += _)) : C.scrollLeft >= _ * 2 && (C.scrollLeft -= _, u && (ot.current.scrollLeft -= _), kt.current && (_e.current -= _)));
|
|
29909
|
-
},
|
|
29923
|
+
}, zt = (u, C = ((_) => (_ = dt.current) == null ? void 0 : _.scrollLeft)() ?? 0) => {
|
|
29910
29924
|
if (!Ht) return u;
|
|
29911
29925
|
let pe = t.length + u, Re = 1 / 0;
|
|
29912
29926
|
for (let Ve = 0; Ve < Yt; Ve++) {
|
|
@@ -29996,7 +30010,7 @@ const ts = {
|
|
|
29996
30010
|
u.scrollLeft = _e.current, yt(), st(), xt.current = null, kt.current = !1;
|
|
29997
30011
|
return;
|
|
29998
30012
|
}
|
|
29999
|
-
u.scrollLeft += C * sf, yt(), st(),
|
|
30013
|
+
u.scrollLeft += C * sf, yt(), st(), ze(), xt.current = requestAnimationFrame(li);
|
|
30000
30014
|
}, si = () => {
|
|
30001
30015
|
const u = Qe.current;
|
|
30002
30016
|
u && (u.style.transition = "", u.style.transform = "", u.style.willChange = "");
|
|
@@ -30025,7 +30039,7 @@ const ts = {
|
|
|
30025
30039
|
}, _r = (u = "smooth") => {
|
|
30026
30040
|
const C = dt.current;
|
|
30027
30041
|
if (!C || t.length === 0) return;
|
|
30028
|
-
const _ = ue() % t.length, pe =
|
|
30042
|
+
const _ = ue() % t.length, pe = zt(_, C.scrollLeft), Re = ht.current[pe];
|
|
30029
30043
|
Re && Wo(Re.offsetLeft, { behavior: u, activeIndex: _ });
|
|
30030
30044
|
}, Hr = (u, C = "smooth", _, pe) => {
|
|
30031
30045
|
const Re = dt.current;
|
|
@@ -30054,7 +30068,7 @@ const ts = {
|
|
|
30054
30068
|
}, Mn = (u, C = "smooth") => {
|
|
30055
30069
|
const _ = dt.current;
|
|
30056
30070
|
if (!_ || t.length === 0) return;
|
|
30057
|
-
const pe =
|
|
30071
|
+
const pe = zt(u, _.scrollLeft), Re = ht.current[pe];
|
|
30058
30072
|
Re && (C === "smooth" ? rn.current = u : rn.current = null, h.current = u, xe(u), Ft(!0), Wo(Re.offsetLeft, {
|
|
30059
30073
|
behavior: C,
|
|
30060
30074
|
activeIndex: u,
|
|
@@ -30079,7 +30093,7 @@ const ts = {
|
|
|
30079
30093
|
scrollLeft: 0,
|
|
30080
30094
|
startActiveIndex: 0,
|
|
30081
30095
|
hasMoved: !1
|
|
30082
|
-
}, Lt(!1), u !== void 0 && C.hasPointerCapture(u) && C.releasePointerCapture(u), Re ? Hr(_, "smooth", pe, Ve) : (Rt(!0), st()),
|
|
30096
|
+
}, Lt(!1), u !== void 0 && C.hasPointerCapture(u) && C.releasePointerCapture(u), Re ? Hr(_, "smooth", pe, Ve) : (Rt(!0), st()), ze();
|
|
30083
30097
|
}, _o = (u, C) => {
|
|
30084
30098
|
const _ = Vt.current;
|
|
30085
30099
|
Vt.current = null, _ && (Fo(
|
|
@@ -30088,7 +30102,7 @@ const ts = {
|
|
|
30088
30102
|
u,
|
|
30089
30103
|
C,
|
|
30090
30104
|
_.startActiveIndex
|
|
30091
|
-
),
|
|
30105
|
+
), ze());
|
|
30092
30106
|
}, Nr = (u) => {
|
|
30093
30107
|
if (!ce) return;
|
|
30094
30108
|
if (u.pointerType === "touch") {
|
|
@@ -30109,7 +30123,7 @@ const ts = {
|
|
|
30109
30123
|
scrollLeft: C.scrollLeft,
|
|
30110
30124
|
startActiveIndex: h.current,
|
|
30111
30125
|
hasMoved: !1
|
|
30112
|
-
}, Rt(!1),
|
|
30126
|
+
}, Rt(!1), ze(), C.setPointerCapture(u.pointerId), $i();
|
|
30113
30127
|
const _ = (pe) => {
|
|
30114
30128
|
pe.pointerType === "mouse" && ci(pe.pointerId);
|
|
30115
30129
|
};
|
|
@@ -30123,7 +30137,7 @@ const ts = {
|
|
|
30123
30137
|
return;
|
|
30124
30138
|
}
|
|
30125
30139
|
const _ = u.clientX - ot.current.startX;
|
|
30126
|
-
Math.abs(_) > cf && (ot.current.hasMoved = !0, Lt(!0)), ot.current.hasMoved && (u.preventDefault(), C.scrollLeft = ot.current.scrollLeft - _, yt(!0), st(),
|
|
30140
|
+
Math.abs(_) > cf && (ot.current.hasMoved = !0, Lt(!0)), ot.current.hasMoved && (u.preventDefault(), C.scrollLeft = ot.current.scrollLeft - _, yt(!0), st(), ze());
|
|
30127
30141
|
}, Y = (u) => {
|
|
30128
30142
|
if (ce) {
|
|
30129
30143
|
if (u.pointerType === "touch") {
|
|
@@ -30145,14 +30159,14 @@ const ts = {
|
|
|
30145
30159
|
St(!0);
|
|
30146
30160
|
return;
|
|
30147
30161
|
}
|
|
30148
|
-
|
|
30162
|
+
ze();
|
|
30149
30163
|
const u = Et.current;
|
|
30150
30164
|
if (!u) return;
|
|
30151
|
-
const C = () =>
|
|
30165
|
+
const C = () => ze();
|
|
30152
30166
|
return u.addEventListener("pointermove", C), u.addEventListener("pointerdown", C), () => {
|
|
30153
30167
|
u.removeEventListener("pointermove", C), u.removeEventListener("pointerdown", C), qe.current && clearTimeout(qe.current);
|
|
30154
30168
|
};
|
|
30155
|
-
}, [ge,
|
|
30169
|
+
}, [ge, ze]), We(() => {
|
|
30156
30170
|
const u = (C) => {
|
|
30157
30171
|
C.key === "Escape" && it();
|
|
30158
30172
|
};
|
|
@@ -30174,7 +30188,7 @@ const ts = {
|
|
|
30174
30188
|
const Ve = u.scrollWidth - u.clientWidth;
|
|
30175
30189
|
_e.current = Math.max(0, Math.min(Ve, _e.current));
|
|
30176
30190
|
}
|
|
30177
|
-
|
|
30191
|
+
ze(), xt.current === null && (xt.current = requestAnimationFrame(li));
|
|
30178
30192
|
}
|
|
30179
30193
|
};
|
|
30180
30194
|
return u.addEventListener("wheel", C, { passive: !1 }), () => {
|
|
@@ -30313,7 +30327,7 @@ const ts = {
|
|
|
30313
30327
|
left: 0,
|
|
30314
30328
|
right: 0,
|
|
30315
30329
|
top: 0,
|
|
30316
|
-
height:
|
|
30330
|
+
height: z,
|
|
30317
30331
|
pointerEvents: "auto",
|
|
30318
30332
|
zIndex: 3
|
|
30319
30333
|
}
|
|
@@ -31777,7 +31791,7 @@ const Ef = vf(), Mf = {
|
|
|
31777
31791
|
}
|
|
31778
31792
|
},
|
|
31779
31793
|
defaults: {
|
|
31780
|
-
cover: "https://cdn.cntrl.site/component-assets/
|
|
31794
|
+
cover: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
31781
31795
|
coverFit: {
|
|
31782
31796
|
display: "fit",
|
|
31783
31797
|
ratioValue: "1:1",
|
|
@@ -31971,63 +31985,63 @@ const Ef = vf(), Mf = {
|
|
|
31971
31985
|
default: [
|
|
31972
31986
|
{
|
|
31973
31987
|
image: {
|
|
31974
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
31988
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
31975
31989
|
name: "",
|
|
31976
31990
|
objectFit: "contain"
|
|
31977
31991
|
},
|
|
31978
|
-
title1: "
|
|
31979
|
-
title2: "
|
|
31980
|
-
title3: "
|
|
31992
|
+
title1: "NASA",
|
|
31993
|
+
title2: "Apollo 9 Mission, 1969",
|
|
31994
|
+
title3: "Archival Footage"
|
|
31981
31995
|
},
|
|
31982
31996
|
{
|
|
31983
31997
|
image: {
|
|
31984
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
31998
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
31985
31999
|
name: "",
|
|
31986
32000
|
objectFit: "contain"
|
|
31987
32001
|
},
|
|
31988
|
-
title1: "
|
|
31989
|
-
title2: "
|
|
31990
|
-
title3: "
|
|
32002
|
+
title1: "NASA",
|
|
32003
|
+
title2: "Apollo 9 Mission, 1969",
|
|
32004
|
+
title3: "Archival Footage"
|
|
31991
32005
|
},
|
|
31992
32006
|
{
|
|
31993
32007
|
image: {
|
|
31994
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
32008
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
31995
32009
|
name: "",
|
|
31996
32010
|
objectFit: "contain"
|
|
31997
32011
|
},
|
|
31998
|
-
title1: "
|
|
31999
|
-
title2: "
|
|
32000
|
-
title3: "
|
|
32012
|
+
title1: "NASA",
|
|
32013
|
+
title2: "Apollo 9 Mission, 1969",
|
|
32014
|
+
title3: "Archival Footage"
|
|
32001
32015
|
},
|
|
32002
32016
|
{
|
|
32003
32017
|
image: {
|
|
32004
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
32018
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
32005
32019
|
name: "",
|
|
32006
32020
|
objectFit: "contain"
|
|
32007
32021
|
},
|
|
32008
|
-
title1: "
|
|
32009
|
-
title2: "
|
|
32010
|
-
title3: "
|
|
32022
|
+
title1: "NASA",
|
|
32023
|
+
title2: "Apollo 9 Mission, 1969",
|
|
32024
|
+
title3: "Archival Footage"
|
|
32011
32025
|
},
|
|
32012
32026
|
{
|
|
32013
32027
|
image: {
|
|
32014
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
32028
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
32015
32029
|
name: "",
|
|
32016
32030
|
objectFit: "contain"
|
|
32017
32031
|
},
|
|
32018
|
-
title1: "
|
|
32019
|
-
title2: "
|
|
32020
|
-
title3: "
|
|
32032
|
+
title1: "NASA",
|
|
32033
|
+
title2: "Apollo 9 Mission, 1969",
|
|
32034
|
+
title3: "Archival Footage"
|
|
32021
32035
|
},
|
|
32022
32036
|
{
|
|
32023
32037
|
image: {
|
|
32024
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
32038
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
32025
32039
|
name: "",
|
|
32026
32040
|
objectFit: "contain"
|
|
32027
32041
|
},
|
|
32028
|
-
title1: "
|
|
32029
|
-
title2: "
|
|
32030
|
-
title3: "
|
|
32042
|
+
title1: "NASA",
|
|
32043
|
+
title2: "Apollo 9 Mission, 1969",
|
|
32044
|
+
title3: "Archival Footage"
|
|
32031
32045
|
}
|
|
32032
32046
|
]
|
|
32033
32047
|
}
|
|
@@ -32093,7 +32107,7 @@ const Ef = vf(), Mf = {
|
|
|
32093
32107
|
title2Width: P,
|
|
32094
32108
|
title3Width: H,
|
|
32095
32109
|
title1MarginLeft: M = 0,
|
|
32096
|
-
title2MarginLeft:
|
|
32110
|
+
title2MarginLeft: B = 0,
|
|
32097
32111
|
title3MarginLeft: I = 0,
|
|
32098
32112
|
titleRowMarginBottom: v = 0,
|
|
32099
32113
|
titleHeaderLayout: K = "single-row",
|
|
@@ -32104,7 +32118,7 @@ const Ef = vf(), Mf = {
|
|
|
32104
32118
|
closeIconHoverColor: X,
|
|
32105
32119
|
contentMarginTop: se = 0,
|
|
32106
32120
|
iconMarginRight: Z = 0
|
|
32107
|
-
} = n, j = ye((Y) => D(Y, i ?? !1), [i]), F = j(f ?? 0), S = `${x}%`, R = `${$}%`, G = j(g),
|
|
32121
|
+
} = n, j = ye((Y) => D(Y, i ?? !1), [i]), F = j(f ?? 0), S = `${x}%`, R = `${$}%`, G = j(g), z = j(se), ne = j(Z), W = vi("title1", yi(n, "title1"), i), xe = vi("title2", yi(n, "title2"), i), h = vi("title3", yi(n, "title3"), i), we = vi("count", yi(n, "count"), i), q = K === "mobile", de = !i || !!r, Le = !o && (!i || !!r), ae = Be(() => or(t, y), [t, y]), [be, U] = te(a), $e = ae[be], Se = $e == null ? void 0 : $e.entry, [ge, ce] = te(!1), [Pe, Fe] = te(null), [Ce, Te] = te(!1), [O, le] = te(null), [k, ie] = te(!1), [oe, me] = te(0), [he, ve] = te(), [Ee, Q] = te(), [fe, He] = te(null), re = ee(null), N = ee(0), je = ee(0), Oe = ee(0), rt = ee(!1), tt = ee(null), pt = ee(null), bt = ee(null), Ue = ee(null), ct = ee(null), Et = ee(null), dt = ee(null), Qe = ye(() => {
|
|
32108
32122
|
const Y = pt.current;
|
|
32109
32123
|
if (!Y) return;
|
|
32110
32124
|
const ke = Y.closest(`.${e}-lightbox-content-area`);
|
|
@@ -32236,40 +32250,40 @@ const Ef = vf(), Mf = {
|
|
|
32236
32250
|
const Y = Math.max(0, ae.length - 1), ke = Math.min(Math.max(0, a), Y);
|
|
32237
32251
|
Oe.current = ke, je.current = ((u = ae[ke]) == null ? void 0 : u.entryIndex) ?? 0, U(ke);
|
|
32238
32252
|
}, [a]);
|
|
32239
|
-
const Lt = Pe !== null ? t[Pe] : null, Wt = O !== null ? ae[O] : null, tn = (Se == null ? void 0 : Se.title1) || (Se == null ? void 0 : Se.title2) || (Se == null ? void 0 : Se.title3) || (Lt == null ? void 0 : Lt.title1) || (Lt == null ? void 0 : Lt.title2) || (Lt == null ? void 0 : Lt.title3), en = Qm(y, ae, t), St = L !== null, rn = tn || en || St, Ie = en && St ? { gap: G } : void 0, Ge = `${e}-titles-stack${q ? ` ${e}-titles-stack-stacked` : ""}`, Ze = `${e}-titles-layer-out${q ? ` ${e}-titles-layer-out-stacked` : ""}`, De = `${e}-titles-layer-out`, qe = (M ?? 0) > 0 || o, ft = j(v),
|
|
32253
|
+
const Lt = Pe !== null ? t[Pe] : null, Wt = O !== null ? ae[O] : null, tn = (Se == null ? void 0 : Se.title1) || (Se == null ? void 0 : Se.title2) || (Se == null ? void 0 : Se.title3) || (Lt == null ? void 0 : Lt.title1) || (Lt == null ? void 0 : Lt.title2) || (Lt == null ? void 0 : Lt.title3), en = Qm(y, ae, t), St = L !== null, rn = tn || en || St, Ie = en && St ? { gap: G } : void 0, Ge = `${e}-titles-stack${q ? ` ${e}-titles-stack-stacked` : ""}`, Ze = `${e}-titles-layer-out${q ? ` ${e}-titles-layer-out-stacked` : ""}`, De = `${e}-titles-layer-out`, qe = (M ?? 0) > 0 || o, ft = j(v), ze = Be(
|
|
32240
32254
|
() => ({
|
|
32241
32255
|
title1Width: E ?? ki.title1Width,
|
|
32242
32256
|
title2Width: P ?? ki.title2Width,
|
|
32243
32257
|
title3Width: H ?? ki.title3Width
|
|
32244
32258
|
}),
|
|
32245
32259
|
[E, P, H]
|
|
32246
|
-
), it =
|
|
32247
|
-
title2MarginLeft:
|
|
32260
|
+
), it = Be(() => ({
|
|
32261
|
+
title2MarginLeft: B,
|
|
32248
32262
|
title3MarginLeft: I
|
|
32249
|
-
}), [
|
|
32263
|
+
}), [B, I]), at = Be(
|
|
32250
32264
|
() => Se ? Zn(e, Se, W, xe, h) : [],
|
|
32251
32265
|
[e, Se, W, xe, h]
|
|
32252
|
-
),
|
|
32253
|
-
() => at.map((Y) =>
|
|
32254
|
-
[at,
|
|
32255
|
-
), Mt =
|
|
32256
|
-
() => Oi(at.length,
|
|
32257
|
-
[at.length,
|
|
32258
|
-
), mt =
|
|
32259
|
-
() => bo(at.length,
|
|
32260
|
-
[at.length,
|
|
32261
|
-
), jt =
|
|
32266
|
+
), Bt = Be(
|
|
32267
|
+
() => at.map((Y) => ze[Y.widthKey]),
|
|
32268
|
+
[at, ze]
|
|
32269
|
+
), Mt = Be(
|
|
32270
|
+
() => Oi(at.length, Bt),
|
|
32271
|
+
[at.length, Bt]
|
|
32272
|
+
), mt = Be(
|
|
32273
|
+
() => bo(at.length, Bt),
|
|
32274
|
+
[at.length, Bt]
|
|
32275
|
+
), jt = Be(
|
|
32262
32276
|
() => at.filter((Y) => Y.prefix === "title1"),
|
|
32263
32277
|
[at]
|
|
32264
|
-
), Ot =
|
|
32278
|
+
), Ot = Be(
|
|
32265
32279
|
() => at.filter((Y) => Y.prefix === "title2" || Y.prefix === "title3"),
|
|
32266
32280
|
[at]
|
|
32267
|
-
), Jt =
|
|
32268
|
-
() => Qn(jt,
|
|
32269
|
-
[jt,
|
|
32270
|
-
), Ut =
|
|
32271
|
-
() => Qn(Ot,
|
|
32272
|
-
[Ot,
|
|
32281
|
+
), Jt = Be(
|
|
32282
|
+
() => Qn(jt, ze),
|
|
32283
|
+
[jt, ze]
|
|
32284
|
+
), Ut = Be(
|
|
32285
|
+
() => Qn(Ot, ze),
|
|
32286
|
+
[Ot, ze]
|
|
32273
32287
|
), Nt = ye((Y, ke) => {
|
|
32274
32288
|
const u = at.findIndex((_) => _.prefix === Y.prefix);
|
|
32275
32289
|
if (!q || ke === "single-row")
|
|
@@ -32324,9 +32338,9 @@ const Ef = vf(), Mf = {
|
|
|
32324
32338
|
return Zt(Y) + (ke.marginLeftKey ? it[ke.marginLeftKey] ?? 0 : 0) + (Ut.resolved[Y] ?? 0);
|
|
32325
32339
|
},
|
|
32326
32340
|
[Ot, Ut.resolved, Zt, it]
|
|
32327
|
-
),
|
|
32341
|
+
), zt = ye((Y, ke, u) => {
|
|
32328
32342
|
if (!q || u === "single-row") {
|
|
32329
|
-
const Ve = Y.findIndex((nn) => nn.prefix === ke.prefix), ut = Y.map((nn) =>
|
|
32343
|
+
const Ve = Y.findIndex((nn) => nn.prefix === ke.prefix), ut = Y.map((nn) => ze[nn.widthKey]), $t = Oi(Y.length, ut);
|
|
32330
32344
|
return {
|
|
32331
32345
|
effectiveWidth: bo(Y.length, ut)[Ve] ?? 0,
|
|
32332
32346
|
resolvedWidth: $t[Ve] ?? 0,
|
|
@@ -32334,20 +32348,20 @@ const Ef = vf(), Mf = {
|
|
|
32334
32348
|
};
|
|
32335
32349
|
}
|
|
32336
32350
|
if (u === "two-row-top") {
|
|
32337
|
-
const Ve = Y.filter((nn) => nn.prefix === "title1"), ut = Ve.findIndex((nn) => nn.prefix === ke.prefix), { resolved: $t, effective: cn } = Qn(Ve,
|
|
32351
|
+
const Ve = Y.filter((nn) => nn.prefix === "title1"), ut = Ve.findIndex((nn) => nn.prefix === ke.prefix), { resolved: $t, effective: cn } = Qn(Ve, ze);
|
|
32338
32352
|
return {
|
|
32339
32353
|
effectiveWidth: cn[ut] ?? 0,
|
|
32340
32354
|
resolvedWidth: $t[ut] ?? 0,
|
|
32341
32355
|
maxWidth: mn(ut, $t)
|
|
32342
32356
|
};
|
|
32343
32357
|
}
|
|
32344
|
-
const C = Y.filter((Ve) => Ve.prefix === "title2" || Ve.prefix === "title3"), _ = C.findIndex((Ve) => Ve.prefix === ke.prefix), { resolved: pe, effective: Re } = Qn(C,
|
|
32358
|
+
const C = Y.filter((Ve) => Ve.prefix === "title2" || Ve.prefix === "title3"), _ = C.findIndex((Ve) => Ve.prefix === ke.prefix), { resolved: pe, effective: Re } = Qn(C, ze);
|
|
32345
32359
|
return {
|
|
32346
32360
|
effectiveWidth: Re[_] ?? 0,
|
|
32347
32361
|
resolvedWidth: pe[_] ?? 0,
|
|
32348
32362
|
maxWidth: mn(_, pe)
|
|
32349
32363
|
};
|
|
32350
|
-
}, [
|
|
32364
|
+
}, [ze, q]), Xt = (Y, ke, u) => {
|
|
32351
32365
|
const C = Y.marginLeftKey ? it[Y.marginLeftKey] ?? 0 : 0, {
|
|
32352
32366
|
effectiveWidth: _,
|
|
32353
32367
|
resolvedWidth: pe,
|
|
@@ -32404,7 +32418,7 @@ const Ef = vf(), Mf = {
|
|
|
32404
32418
|
Y.className
|
|
32405
32419
|
);
|
|
32406
32420
|
}, m = (Y = "two-row") => {
|
|
32407
|
-
const ke = at.findIndex((_) => _.prefix === "title1"), u = ke >= 0 ? Mt[ke] :
|
|
32421
|
+
const ke = at.findIndex((_) => _.prefix === "title1"), u = ke >= 0 ? Mt[ke] : ze.title1Width, C = Y === "two-row" && o;
|
|
32408
32422
|
return /* @__PURE__ */ l(
|
|
32409
32423
|
"div",
|
|
32410
32424
|
{
|
|
@@ -32623,7 +32637,7 @@ const Ef = vf(), Mf = {
|
|
|
32623
32637
|
return /* @__PURE__ */ l(lt, { children: ke.map((u) => Xt(
|
|
32624
32638
|
u,
|
|
32625
32639
|
"single-row",
|
|
32626
|
-
|
|
32640
|
+
zt(ke, u, "single-row")
|
|
32627
32641
|
)) });
|
|
32628
32642
|
}, fn = (Y) => {
|
|
32629
32643
|
if (!Y) return null;
|
|
@@ -32631,7 +32645,7 @@ const Ef = vf(), Mf = {
|
|
|
32631
32645
|
return u ? Xt(
|
|
32632
32646
|
u,
|
|
32633
32647
|
"two-row-top",
|
|
32634
|
-
|
|
32648
|
+
zt(ke, u, "two-row-top")
|
|
32635
32649
|
) : null;
|
|
32636
32650
|
}, yn = (Y, ke = !1) => {
|
|
32637
32651
|
const u = Y ? Zn(e, Y, W, xe, h) : [], C = u.filter((Re) => Re.prefix === "title2" || Re.prefix === "title3"), _ = o && ke;
|
|
@@ -32640,7 +32654,7 @@ const Ef = vf(), Mf = {
|
|
|
32640
32654
|
C.map((Re) => Xt(
|
|
32641
32655
|
Re,
|
|
32642
32656
|
"two-row-bottom",
|
|
32643
|
-
|
|
32657
|
+
zt(u, Re, "two-row-bottom")
|
|
32644
32658
|
)),
|
|
32645
32659
|
ke && o ? /* @__PURE__ */ J(lt, { children: [
|
|
32646
32660
|
_r(),
|
|
@@ -32668,7 +32682,7 @@ const Ef = vf(), Mf = {
|
|
|
32668
32682
|
yn(Y, ke)
|
|
32669
32683
|
] }), si = (Y) => q ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-two-row`, children: li(Y) }) : Y ? /* @__PURE__ */ l("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: Rt(Y) }) : null, ko = () => {
|
|
32670
32684
|
const Y = q ? -1 : at.findIndex((C) => C.prefix === "title1"), ke = !q && (o || (M ?? 0) > 0) ? (() => {
|
|
32671
|
-
const C = M ?? 0, _ = Y >= 0 ? Mt[Y] :
|
|
32685
|
+
const C = M ?? 0, _ = Y >= 0 ? Mt[Y] : ze.title1Width, pe = Math.max(C, Jn);
|
|
32672
32686
|
return /* @__PURE__ */ l(
|
|
32673
32687
|
"div",
|
|
32674
32688
|
{
|
|
@@ -33015,7 +33029,7 @@ const Ef = vf(), Mf = {
|
|
|
33015
33029
|
{
|
|
33016
33030
|
"data-controls": o ? "contentMarginTop" : void 0,
|
|
33017
33031
|
className: o ? `${e}-control` : void 0,
|
|
33018
|
-
style: { height:
|
|
33032
|
+
style: { height: z, width: "100%" }
|
|
33019
33033
|
}
|
|
33020
33034
|
),
|
|
33021
33035
|
/* @__PURE__ */ l("div", { style: {
|
|
@@ -33577,15 +33591,15 @@ function kf(e) {
|
|
|
33577
33591
|
`;
|
|
33578
33592
|
}
|
|
33579
33593
|
const Wf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: r, metadata: a }) => {
|
|
33580
|
-
const { prefix: c } = hn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: p, type: y } = e, b = ee(null), [w, f] = te(!1), [x, $] = te(0), T = ee(!1), E = ee(!1), P = ee(!1), H =
|
|
33594
|
+
const { prefix: c } = hn(), s = (a == null ? void 0 : a.itemId) ?? null, { cover: d, coverFit: p, type: y } = e, b = ee(null), [w, f] = te(!1), [x, $] = te(0), T = ee(!1), E = ee(!1), P = ee(!1), H = Be(
|
|
33581
33595
|
() => (t ?? []).filter((g) => Ni(g).length > 0),
|
|
33582
33596
|
[t]
|
|
33583
|
-
), M = w && H.length > 0,
|
|
33584
|
-
|
|
33585
|
-
}, [
|
|
33597
|
+
), M = w && H.length > 0, B = !n, I = ye(() => {
|
|
33598
|
+
B && (P.current = !0, Km(E.current, s), E.current = !1);
|
|
33599
|
+
}, [B, s]), v = (g = 0) => {
|
|
33586
33600
|
if (H.length === 0 || n && !i && !o) return;
|
|
33587
33601
|
const L = or(H, y), A = Math.max(0, Math.min(g, L.length - 1));
|
|
33588
|
-
if ($(A),
|
|
33602
|
+
if ($(A), B) {
|
|
33589
33603
|
const V = Zs();
|
|
33590
33604
|
Js(A + 1, s, V), E.current = !V;
|
|
33591
33605
|
}
|
|
@@ -33596,14 +33610,14 @@ const Wf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33596
33610
|
return We(() => {
|
|
33597
33611
|
!n || i || o || f(!1);
|
|
33598
33612
|
}, [n, i, o]), We(() => {
|
|
33599
|
-
if (!
|
|
33613
|
+
if (!B || T.current) return;
|
|
33600
33614
|
T.current = !0;
|
|
33601
33615
|
const g = Pl(s);
|
|
33602
33616
|
if (!g) return;
|
|
33603
33617
|
const L = Al(g, or(H, y).length);
|
|
33604
33618
|
L < 0 || ($(L), f(!0));
|
|
33605
|
-
}, [H, s,
|
|
33606
|
-
if (!
|
|
33619
|
+
}, [H, s, B, y]), We(() => {
|
|
33620
|
+
if (!B) return;
|
|
33607
33621
|
const g = () => {
|
|
33608
33622
|
if (P.current) {
|
|
33609
33623
|
P.current = !1, f(!1);
|
|
@@ -33622,7 +33636,7 @@ const Wf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33622
33636
|
E.current = !1, $(A), f(!0);
|
|
33623
33637
|
};
|
|
33624
33638
|
return window.addEventListener("popstate", g), () => window.removeEventListener("popstate", g);
|
|
33625
|
-
}, [H, s,
|
|
33639
|
+
}, [H, s, B, y]), /* @__PURE__ */ J(lt, { children: [
|
|
33626
33640
|
/* @__PURE__ */ J("div", { ref: b, className: `${c}-wrapper`, children: [
|
|
33627
33641
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: kf(c) } }),
|
|
33628
33642
|
d ? /* @__PURE__ */ l(
|
|
@@ -33664,7 +33678,7 @@ const Wf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33664
33678
|
isEditMode: i,
|
|
33665
33679
|
isPreviewMode: o,
|
|
33666
33680
|
initialSlideIndex: x,
|
|
33667
|
-
enableUrlSync:
|
|
33681
|
+
enableUrlSync: B,
|
|
33668
33682
|
journalItemId: s,
|
|
33669
33683
|
onBeforeClose: I,
|
|
33670
33684
|
onClose: K
|
|
@@ -34559,7 +34573,7 @@ function ra(e) {
|
|
|
34559
34573
|
return i !== void 0 && (t[Ke(n, "fontSize")] = i), o !== void 0 && (t[Ke(n, "lineHeight")] = o), t;
|
|
34560
34574
|
}, {});
|
|
34561
34575
|
}
|
|
34562
|
-
const
|
|
34576
|
+
const zf = eg(), Bf = {
|
|
34563
34577
|
type: "object",
|
|
34564
34578
|
version: 1,
|
|
34565
34579
|
settings: {
|
|
@@ -34761,7 +34775,7 @@ const Bf = eg(), zf = {
|
|
|
34761
34775
|
}
|
|
34762
34776
|
},
|
|
34763
34777
|
defaults: {
|
|
34764
|
-
cover: "https://cdn.cntrl.site/component-assets/
|
|
34778
|
+
cover: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
34765
34779
|
coverFit: {
|
|
34766
34780
|
display: "fit",
|
|
34767
34781
|
ratioValue: "1:1",
|
|
@@ -34904,7 +34918,7 @@ const Bf = eg(), zf = {
|
|
|
34904
34918
|
title: "Type Style",
|
|
34905
34919
|
tooltip: "Typography",
|
|
34906
34920
|
layout: [
|
|
34907
|
-
|
|
34921
|
+
zf
|
|
34908
34922
|
]
|
|
34909
34923
|
}
|
|
34910
34924
|
],
|
|
@@ -34956,53 +34970,58 @@ const Bf = eg(), zf = {
|
|
|
34956
34970
|
},
|
|
34957
34971
|
default: [
|
|
34958
34972
|
{
|
|
34959
|
-
title1: "
|
|
34960
|
-
title2: "
|
|
34961
|
-
title3: "
|
|
34973
|
+
title1: "NASA",
|
|
34974
|
+
title2: "Apollo 9 Mission, 1969",
|
|
34975
|
+
title3: "Archival Footage",
|
|
34962
34976
|
image: [
|
|
34963
34977
|
{
|
|
34964
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
34978
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
34965
34979
|
name: "",
|
|
34966
34980
|
objectFit: "contain"
|
|
34967
34981
|
},
|
|
34968
34982
|
{
|
|
34969
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
34983
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
34970
34984
|
name: "",
|
|
34971
34985
|
objectFit: "contain"
|
|
34972
34986
|
}
|
|
34973
34987
|
]
|
|
34974
34988
|
},
|
|
34975
34989
|
{
|
|
34976
|
-
title1: "
|
|
34977
|
-
title2: "
|
|
34978
|
-
title3: "
|
|
34990
|
+
title1: "NASA",
|
|
34991
|
+
title2: "Apollo 9 Mission, 1969",
|
|
34992
|
+
title3: "Archival Footage",
|
|
34979
34993
|
image: [
|
|
34980
34994
|
{
|
|
34981
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
34995
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
34982
34996
|
name: "",
|
|
34983
34997
|
objectFit: "contain"
|
|
34984
34998
|
}
|
|
34985
34999
|
]
|
|
34986
35000
|
},
|
|
34987
35001
|
{
|
|
34988
|
-
title1: "
|
|
34989
|
-
title2: "
|
|
34990
|
-
title3: "
|
|
35002
|
+
title1: "NASA",
|
|
35003
|
+
title2: "Apollo 9 Mission, 1969",
|
|
35004
|
+
title3: "Archival Footage",
|
|
34991
35005
|
image: [
|
|
34992
35006
|
{
|
|
34993
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
35007
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
35008
|
+
name: "",
|
|
35009
|
+
objectFit: "contain"
|
|
35010
|
+
},
|
|
35011
|
+
{
|
|
35012
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
34994
35013
|
name: "",
|
|
34995
35014
|
objectFit: "contain"
|
|
34996
35015
|
}
|
|
34997
35016
|
]
|
|
34998
35017
|
},
|
|
34999
35018
|
{
|
|
35000
|
-
title1: "
|
|
35001
|
-
title2: "
|
|
35002
|
-
title3: "
|
|
35019
|
+
title1: "NASA",
|
|
35020
|
+
title2: "Apollo 9 Mission, 1969",
|
|
35021
|
+
title3: "Archival Footage",
|
|
35003
35022
|
image: [
|
|
35004
35023
|
{
|
|
35005
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
35024
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
35006
35025
|
name: "",
|
|
35007
35026
|
objectFit: "contain"
|
|
35008
35027
|
}
|
|
@@ -35031,7 +35050,7 @@ const Bf = eg(), zf = {
|
|
|
35031
35050
|
type: "image",
|
|
35032
35051
|
url: "https://cdn.cntrl.site/component-assets/Journal.png"
|
|
35033
35052
|
},
|
|
35034
|
-
schema:
|
|
35053
|
+
schema: Bf,
|
|
35035
35054
|
sourceCode: Ff,
|
|
35036
35055
|
assetsPaths: {
|
|
35037
35056
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
@@ -35155,19 +35174,19 @@ async function Kf(e) {
|
|
|
35155
35174
|
function Uf({ settings: e, content: t = [], isEditor: n }) {
|
|
35156
35175
|
const { prefix: i } = hn(), [o, r] = te(null), [a, c] = te([]), [s, d] = te(0), p = ee(0), [y, b] = te({ x: 0, y: 0 }), [w, f] = te("none"), x = ee({ x: 0, y: 0 }), [$, T] = te(!1), [E, P] = te(!1), H = ee(/* @__PURE__ */ new Map()), {
|
|
35157
35176
|
imageSize: M = Vf,
|
|
35158
|
-
cursor:
|
|
35177
|
+
cursor: B = "system",
|
|
35159
35178
|
target: I = "area",
|
|
35160
35179
|
position: v = "random",
|
|
35161
35180
|
visible: K = "all",
|
|
35162
35181
|
defaultCursor: g = null,
|
|
35163
35182
|
hoverCursor: L = null
|
|
35164
|
-
} = e, A =
|
|
35183
|
+
} = e, A = Be(() => Gf(i), [i]), V = ye((F, S, R = a) => {
|
|
35165
35184
|
if (!o) return;
|
|
35166
|
-
const G = o.getBoundingClientRect(),
|
|
35167
|
-
b({ x:
|
|
35168
|
-
jf(
|
|
35185
|
+
const G = o.getBoundingClientRect(), z = F - G.left, ne = S - G.top;
|
|
35186
|
+
b({ x: z, y: ne }), f(
|
|
35187
|
+
jf(z, ne, R, o, B, I, L, g)
|
|
35169
35188
|
);
|
|
35170
|
-
}, [o, a,
|
|
35189
|
+
}, [o, a, B, I, L, g]);
|
|
35171
35190
|
We(() => {
|
|
35172
35191
|
const F = [
|
|
35173
35192
|
...t.map((R) => R.image.url),
|
|
@@ -35201,9 +35220,9 @@ function Uf({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35201
35220
|
}, [$]);
|
|
35202
35221
|
const X = (F, S, R, G = {}) => {
|
|
35203
35222
|
var we;
|
|
35204
|
-
const
|
|
35223
|
+
const z = ((we = H.current.get(F.image.url)) == null ? void 0 : we.aspectRatio) ?? 1, ne = as(F.image.url, M, H.current), { heightPx: W } = yr(ne, z);
|
|
35205
35224
|
let xe = 0, h = 0;
|
|
35206
|
-
return v === "same" ? { x: xe, y: h } = rs(S, R, ne,
|
|
35225
|
+
return v === "same" ? { x: xe, y: h } = rs(S, R, ne, z) : (xe = G.x ?? Math.random() * S, h = G.y ?? Math.random() * R, { x: xe, y: h } = xa(xe, h, S, R, ne, W)), {
|
|
35207
35226
|
id: p.current++,
|
|
35208
35227
|
url: F.image.url,
|
|
35209
35228
|
link: F.link,
|
|
@@ -35212,27 +35231,27 @@ function Uf({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35212
35231
|
y: h,
|
|
35213
35232
|
xRatio: xe / S,
|
|
35214
35233
|
yRatio: h / R,
|
|
35215
|
-
aspectRatio:
|
|
35234
|
+
aspectRatio: z,
|
|
35216
35235
|
widthPx: ne
|
|
35217
35236
|
};
|
|
35218
35237
|
}, se = () => {
|
|
35219
35238
|
if (!o) return;
|
|
35220
35239
|
const F = o.getBoundingClientRect(), S = F.width, R = F.height;
|
|
35221
|
-
S === 0 || R === 0 || c((G) => G.length === 0 ? G : G.map((
|
|
35222
|
-
const ne = M.sizeType === "random" ?
|
|
35240
|
+
S === 0 || R === 0 || c((G) => G.length === 0 ? G : G.map((z) => {
|
|
35241
|
+
const ne = M.sizeType === "random" ? z.widthPx : as(z.url, M, H.current), { heightPx: W } = yr(ne, z.aspectRatio);
|
|
35223
35242
|
if (v === "same") {
|
|
35224
|
-
const { x: we, y: q } = rs(S, R, ne,
|
|
35225
|
-
return { ...
|
|
35243
|
+
const { x: we, y: q } = rs(S, R, ne, z.aspectRatio);
|
|
35244
|
+
return { ...z, x: we, y: q, widthPx: ne };
|
|
35226
35245
|
}
|
|
35227
35246
|
const { x: xe, y: h } = xa(
|
|
35228
|
-
|
|
35229
|
-
|
|
35247
|
+
z.xRatio * S,
|
|
35248
|
+
z.yRatio * R,
|
|
35230
35249
|
S,
|
|
35231
35250
|
R,
|
|
35232
35251
|
ne,
|
|
35233
35252
|
W
|
|
35234
35253
|
);
|
|
35235
|
-
return { ...
|
|
35254
|
+
return { ...z, x: xe, y: h, widthPx: ne };
|
|
35236
35255
|
}));
|
|
35237
35256
|
};
|
|
35238
35257
|
We(() => {
|
|
@@ -35253,11 +35272,11 @@ function Uf({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35253
35272
|
if (!o || t.length === 0 || !E) return;
|
|
35254
35273
|
const S = o.getBoundingClientRect(), R = F.clientX - S.left, G = F.clientY - S.top;
|
|
35255
35274
|
if (I === "image" && !vc(R, G, a)) return;
|
|
35256
|
-
let
|
|
35257
|
-
v === "on Click" ? (
|
|
35258
|
-
const W = t[s], xe = X(W, S.width, S.height, { x:
|
|
35275
|
+
let z = 0, ne = 0;
|
|
35276
|
+
v === "on Click" ? (z = R, ne = G) : v === "same" ? (z = S.width / 2, ne = S.height / 2) : (z = Math.random() * S.width, ne = Math.random() * S.height);
|
|
35277
|
+
const W = t[s], xe = X(W, S.width, S.height, { x: z, y: ne }), h = K === "all" ? [...a, xe] : [xe];
|
|
35259
35278
|
c(h), d((we) => we >= t.length - 1 ? 0 : we + 1), V(F.clientX, F.clientY, h);
|
|
35260
|
-
}, j =
|
|
35279
|
+
}, j = B === "custom" && w !== "none";
|
|
35261
35280
|
return /* @__PURE__ */ J(lt, { children: [
|
|
35262
35281
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: A } }),
|
|
35263
35282
|
/* @__PURE__ */ J(
|
|
@@ -35865,31 +35884,52 @@ export function ClickGallerie({ settings, content = [], isEditor }: ClickGalleri
|
|
|
35865
35884
|
default: [
|
|
35866
35885
|
{
|
|
35867
35886
|
image: {
|
|
35868
|
-
url: "https://cdn.cntrl.site/
|
|
35887
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
35869
35888
|
name: "Slider-1.png"
|
|
35870
35889
|
},
|
|
35871
35890
|
link: ""
|
|
35872
35891
|
},
|
|
35873
35892
|
{
|
|
35874
35893
|
image: {
|
|
35875
|
-
url: "https://cdn.cntrl.site/
|
|
35894
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
35876
35895
|
name: "Slider-2.png"
|
|
35877
35896
|
},
|
|
35878
35897
|
link: ""
|
|
35879
35898
|
},
|
|
35880
35899
|
{
|
|
35881
35900
|
image: {
|
|
35882
|
-
url: "https://cdn.cntrl.site/
|
|
35901
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
35883
35902
|
name: "Slider-3.png"
|
|
35884
35903
|
},
|
|
35885
35904
|
link: ""
|
|
35886
35905
|
},
|
|
35887
35906
|
{
|
|
35888
35907
|
image: {
|
|
35889
|
-
url: "https://cdn.cntrl.site/
|
|
35908
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
35890
35909
|
name: "Slider-4.png"
|
|
35891
35910
|
},
|
|
35892
35911
|
link: ""
|
|
35912
|
+
},
|
|
35913
|
+
{
|
|
35914
|
+
image: {
|
|
35915
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
35916
|
+
name: "Slider-5.png"
|
|
35917
|
+
},
|
|
35918
|
+
link: ""
|
|
35919
|
+
},
|
|
35920
|
+
{
|
|
35921
|
+
image: {
|
|
35922
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
35923
|
+
name: "Slider-6.png"
|
|
35924
|
+
},
|
|
35925
|
+
link: ""
|
|
35926
|
+
},
|
|
35927
|
+
{
|
|
35928
|
+
image: {
|
|
35929
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
35930
|
+
name: "Slider-7.png"
|
|
35931
|
+
},
|
|
35932
|
+
link: ""
|
|
35893
35933
|
}
|
|
35894
35934
|
]
|
|
35895
35935
|
},
|
|
@@ -36244,13 +36284,13 @@ function ry(e, t) {
|
|
|
36244
36284
|
}
|
|
36245
36285
|
function ay({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
36246
36286
|
var Te, O, le, k, ie, oe, me;
|
|
36247
|
-
const { prefix: o } = hn(), r =
|
|
36287
|
+
const { prefix: o } = hn(), r = Be(() => ey(o), [o]), {
|
|
36248
36288
|
imageSize: a,
|
|
36249
36289
|
maxWidth: c,
|
|
36250
36290
|
maxHeight: s,
|
|
36251
36291
|
transition: d = 1e3,
|
|
36252
36292
|
bgImage: p = "greyscale"
|
|
36253
|
-
} = e, y = t ?? [], b = ls(y.length), [w, f] = te(b.activeIndex), [x, $] = te(b.backgroundIndex), [T, E] = te(!1), [P, H] = te(!1), [M,
|
|
36293
|
+
} = e, y = t ?? [], b = ls(y.length), [w, f] = te(b.activeIndex), [x, $] = te(b.backgroundIndex), [T, E] = te(!1), [P, H] = te(!1), [M, B] = te(null), [I, v] = te(null), [K, g] = te(0), [L, A] = te(1), [V, X] = te("none"), [se, Z] = te("next"), [j, F] = te({}), [S, R] = te({ width: 0, height: 0 }), G = ee(null), z = ee(null), ne = !n || !!i, W = a ?? 60, xe = Math.max(10, Math.min(100, c ?? W)), h = Math.max(10, Math.min(100, s ?? W)), we = Math.max(100, d), q = no(p), de = ye((he) => {
|
|
36254
36294
|
const ve = iy(he ? j[he] : void 0);
|
|
36255
36295
|
return oy(
|
|
36256
36296
|
S.width,
|
|
@@ -36261,7 +36301,7 @@ function ay({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36261
36301
|
);
|
|
36262
36302
|
}, [S.height, S.width, j, h, xe]);
|
|
36263
36303
|
We(() => {
|
|
36264
|
-
const he =
|
|
36304
|
+
const he = z.current;
|
|
36265
36305
|
if (!he) return;
|
|
36266
36306
|
const ve = new ResizeObserver(([Ee]) => {
|
|
36267
36307
|
const { width: Q, height: fe } = Ee.contentRect;
|
|
@@ -36281,7 +36321,7 @@ function ay({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36281
36321
|
});
|
|
36282
36322
|
}, [t]), We(() => {
|
|
36283
36323
|
const { backgroundIndex: he, activeIndex: ve } = ls(y.length);
|
|
36284
|
-
f(ve), $(he), E(!1), H(!1),
|
|
36324
|
+
f(ve), $(he), E(!1), H(!1), B(null), v(null), g(0), A(1), X("none"), Z("next");
|
|
36285
36325
|
}, [y.length, t]), We(() => () => {
|
|
36286
36326
|
G.current && clearTimeout(G.current);
|
|
36287
36327
|
}, []);
|
|
@@ -36289,12 +36329,12 @@ function ay({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36289
36329
|
var re, N, je, Oe;
|
|
36290
36330
|
if (!ne || T || y.length <= 1) return;
|
|
36291
36331
|
const ve = he === "next" ? (w + 1) % y.length : (w - 1 + y.length) % y.length, Ee = de((N = (re = y[w]) == null ? void 0 : re.image) == null ? void 0 : N.url), Q = de((Oe = (je = y[ve]) == null ? void 0 : je.image) == null ? void 0 : Oe.url), fe = ss(S.width, S.height, Ee), He = ss(S.width, S.height, Q);
|
|
36292
|
-
G.current && clearTimeout(G.current), Z(he), H(!0), E(!0), he === "next" ? (
|
|
36332
|
+
G.current && clearTimeout(G.current), Z(he), H(!0), E(!0), he === "next" ? (B(w), v(ve), g(0), A(1), X(no(p, 0, 1))) : ($(ny(ve, y.length)), B(ve), v(w), g(1), A(He), X(no(p, 1, He))), requestAnimationFrame(() => {
|
|
36293
36333
|
H(!1), requestAnimationFrame(() => {
|
|
36294
36334
|
he === "next" ? (g(1), A(fe), X(no(p, 1, fe))) : (g(0), A(1), X(no(p, 0, 1)));
|
|
36295
36335
|
});
|
|
36296
36336
|
}), G.current = setTimeout(() => {
|
|
36297
|
-
he === "next" && $(w), f(ve),
|
|
36337
|
+
he === "next" && $(w), f(ve), B(null), v(null), E(!1);
|
|
36298
36338
|
}, we);
|
|
36299
36339
|
}, [
|
|
36300
36340
|
w,
|
|
@@ -36314,7 +36354,7 @@ function ay({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36314
36354
|
/* @__PURE__ */ J(
|
|
36315
36355
|
"div",
|
|
36316
36356
|
{
|
|
36317
|
-
ref:
|
|
36357
|
+
ref: z,
|
|
36318
36358
|
className: vt(`${o}-wrapper`, P && `${o}-snap`, n && !i && `${o}-editor`),
|
|
36319
36359
|
style: Ce,
|
|
36320
36360
|
"aria-label": "Zoom gallery",
|
|
@@ -37014,37 +37054,43 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37014
37054
|
default: [
|
|
37015
37055
|
{
|
|
37016
37056
|
image: {
|
|
37017
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37057
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-1.jpg",
|
|
37058
|
+
name: ""
|
|
37059
|
+
}
|
|
37060
|
+
},
|
|
37061
|
+
{
|
|
37062
|
+
image: {
|
|
37063
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-2.jpg",
|
|
37018
37064
|
name: ""
|
|
37019
37065
|
}
|
|
37020
37066
|
},
|
|
37021
37067
|
{
|
|
37022
37068
|
image: {
|
|
37023
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37069
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-3.jpg",
|
|
37024
37070
|
name: ""
|
|
37025
37071
|
}
|
|
37026
37072
|
},
|
|
37027
37073
|
{
|
|
37028
37074
|
image: {
|
|
37029
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37075
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-4.jpg",
|
|
37030
37076
|
name: ""
|
|
37031
37077
|
}
|
|
37032
37078
|
},
|
|
37033
37079
|
{
|
|
37034
37080
|
image: {
|
|
37035
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37081
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-5.jpg",
|
|
37036
37082
|
name: ""
|
|
37037
37083
|
}
|
|
37038
37084
|
},
|
|
37039
37085
|
{
|
|
37040
37086
|
image: {
|
|
37041
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37087
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-6.jpg",
|
|
37042
37088
|
name: ""
|
|
37043
37089
|
}
|
|
37044
37090
|
},
|
|
37045
37091
|
{
|
|
37046
37092
|
image: {
|
|
37047
|
-
url: "https://cdn.cntrl.site/component-assets/
|
|
37093
|
+
url: "https://cdn.cntrl.site/component-assets/Component-default-7.jpg",
|
|
37048
37094
|
name: ""
|
|
37049
37095
|
}
|
|
37050
37096
|
}
|
|
@@ -37578,8 +37624,8 @@ function Ey({
|
|
|
37578
37624
|
onPrev: x,
|
|
37579
37625
|
onNext: $
|
|
37580
37626
|
}) {
|
|
37581
|
-
const T = ee(null), E = ee(null), P = ee(null), H = ee(/* @__PURE__ */ new Map()), [M,
|
|
37582
|
-
}), F = ee(null), S = ee(null), R = ee(null), G = ee(!1), [
|
|
37627
|
+
const T = ee(null), E = ee(null), P = ee(null), H = ee(/* @__PURE__ */ new Map()), [M, B] = te(0), I = ee(null), v = ee(0), K = ee(0), g = ee("none"), L = ee(!1), A = ee(!1), V = ee(!1), X = ee(null), se = ee(null), Z = ee(null), j = ee(() => {
|
|
37628
|
+
}), F = ee(null), S = ee(null), R = ee(null), G = ee(!1), [z, ne] = te(null), [W, xe] = te(aa), [h, we] = te(0), [q, de] = te("opening"), [Le, ae] = te(0), [be, U] = te(0), [$e, Se] = te(!1), [ge, ce] = te(null), [Pe, Fe] = te(null), [Ce, Te] = te(null), [O, le] = te(!1), [k, ie] = te(null), [oe, me] = te(!1), he = ee(!1), [ve, Ee] = te(!1), [Q, fe] = te(!1), He = ee(n), re = ee(void 0), N = t[n], je = N ? Fr(N) : !1, Oe = be !== 0 || $e, rt = !a && (!r || !!c), tt = s && !a, pt = d.length > 1, bt = ye((m, ue) => t.length <= 1 ? null : t[(m + ue + t.length) % t.length] ?? null, [t]), Ue = pt ? ro(d, p, -1) : bt(n, -1), ct = pt ? ro(d, p, 1) : bt(n, 1), Et = ge === -1 && Oe ? pt && Pe !== null ? ro(d, Pe, -1) : Ce !== null ? bt(Ce, -1) : null : null, dt = ge === 1 && Oe ? pt && Pe !== null ? ro(d, Pe, 1) : Ce !== null ? bt(Ce, 1) : null : null, Qe = Et && Et.url !== (Ue == null ? void 0 : Ue.url) ? Et : null, wt = dt && dt.url !== (ct == null ? void 0 : ct.url) ? dt : null, Tt = Ue && tt ? (() => {
|
|
37583
37629
|
const m = pt ? ds(d, p, -1) : t.length > 2 ? bt((n - 1 + t.length) % t.length, -1) : null;
|
|
37584
37630
|
return m && m.url !== Ue.url ? m : null;
|
|
37585
37631
|
})() : null, ht = ct && tt ? (() => {
|
|
@@ -37588,7 +37634,7 @@ function Ey({
|
|
|
37588
37634
|
})() : null, _t = Qe ?? Tt, Vt = wt ?? ht, ot = ye((m, ue, Ae) => {
|
|
37589
37635
|
if (!m || !ue || !Ae) return;
|
|
37590
37636
|
const Me = H.current, nt = Me.get(m);
|
|
37591
|
-
(nt == null ? void 0 : nt.width) === ue && (nt == null ? void 0 : nt.height) === Ae || (Me.set(m, { width: ue, height: Ae }),
|
|
37637
|
+
(nt == null ? void 0 : nt.width) === ue && (nt == null ? void 0 : nt.height) === Ae || (Me.set(m, { width: ue, height: Ae }), B((Ft) => Ft + 1));
|
|
37592
37638
|
}, []), Pt = ye((m) => {
|
|
37593
37639
|
if (!(m != null && m.url)) return null;
|
|
37594
37640
|
const ue = H.current.get(m.url);
|
|
@@ -37666,7 +37712,7 @@ function Ey({
|
|
|
37666
37712
|
}, [_e, Yt]), un = ye(() => {
|
|
37667
37713
|
_e(), se.current = null, Je(!1), ce(null), Fe(null), Te(null), U(0), Ee(!1), L.current = !1, K.current = 0, g.current = "none";
|
|
37668
37714
|
}, [_e, Je]), Lt = ye((m) => {
|
|
37669
|
-
if (!(!tt || !
|
|
37715
|
+
if (!(!tt || !z)) {
|
|
37670
37716
|
if (V.current) {
|
|
37671
37717
|
if (se.current === m) {
|
|
37672
37718
|
Z.current = m, Yt();
|
|
@@ -37678,7 +37724,7 @@ function Ey({
|
|
|
37678
37724
|
}
|
|
37679
37725
|
}, [
|
|
37680
37726
|
tt,
|
|
37681
|
-
|
|
37727
|
+
z,
|
|
37682
37728
|
Yt,
|
|
37683
37729
|
un,
|
|
37684
37730
|
_e,
|
|
@@ -37754,7 +37800,7 @@ function Ey({
|
|
|
37754
37800
|
H.current.has(Me.url) || Sy(Me, ot);
|
|
37755
37801
|
});
|
|
37756
37802
|
}, [t, d, ot]), We(() => {
|
|
37757
|
-
if (q !== "opening" || !
|
|
37803
|
+
if (q !== "opening" || !z) return;
|
|
37758
37804
|
if (!b) {
|
|
37759
37805
|
de("open");
|
|
37760
37806
|
return;
|
|
@@ -37766,7 +37812,7 @@ function Ey({
|
|
|
37766
37812
|
});
|
|
37767
37813
|
});
|
|
37768
37814
|
return () => cancelAnimationFrame(m);
|
|
37769
|
-
}, [q,
|
|
37815
|
+
}, [q, z, b]), We(() => {
|
|
37770
37816
|
if (q !== "closing") return;
|
|
37771
37817
|
const m = setTimeout(() => f(), An);
|
|
37772
37818
|
return () => clearTimeout(m);
|
|
@@ -37857,8 +37903,8 @@ function Ey({
|
|
|
37857
37903
|
}, [q, tt, Je, xt, _e, rt, sn, Ye]);
|
|
37858
37904
|
const Ge = ye(() => {
|
|
37859
37905
|
const m = (w == null ? void 0 : w()) ?? b ?? null;
|
|
37860
|
-
m &&
|
|
37861
|
-
}, [w, b,
|
|
37906
|
+
m && z && (ie(m), le(!0)), de("closing");
|
|
37907
|
+
}, [w, b, z]);
|
|
37862
37908
|
We(() => {
|
|
37863
37909
|
const m = (Me) => {
|
|
37864
37910
|
if (Me.key === "Escape") {
|
|
@@ -37893,7 +37939,7 @@ function Ey({
|
|
|
37893
37939
|
}, [q, Wt]);
|
|
37894
37940
|
const Ze = () => {
|
|
37895
37941
|
q === "closing" || a || Ge();
|
|
37896
|
-
}, De = q === "open", qe = q === "closing", ft = Le > 0 ? Math.max(0, 1 - Le / 500) : 1,
|
|
37942
|
+
}, De = q === "open", qe = q === "closing", ft = Le > 0 ? Math.max(0, 1 - Le / 500) : 1, ze = Le > 0 ? Math.max(0.35, 1 - Le / 500) : 1, it = ye((m) => {
|
|
37897
37943
|
if (!(m.propertyName !== "transform" || !V.current)) {
|
|
37898
37944
|
if (se.current !== null) {
|
|
37899
37945
|
Yt();
|
|
@@ -37901,7 +37947,7 @@ function Ey({
|
|
|
37901
37947
|
}
|
|
37902
37948
|
_e(), Je(!1);
|
|
37903
37949
|
}
|
|
37904
|
-
}, [_e, Je, Yt]), at = q === "closing" ? k ?? b : b,
|
|
37950
|
+
}, [_e, Je, Yt]), at = q === "closing" ? k ?? b : b, Bt = at && z && (q === "opening" || qe) ? fy(at, z) : void 0, Mt = Oe && N ? Ht(N, "center") : Le > 0 ? `translateY(${Le}px)` : Bt, mt = z ? Jo(z, W) : null, jt = !!(at && z), Ot = jt && (q === "closing" || q === "open" && O), Jt = {
|
|
37905
37951
|
position: "absolute",
|
|
37906
37952
|
top: mt == null ? void 0 : mt.top,
|
|
37907
37953
|
left: mt == null ? void 0 : mt.left,
|
|
@@ -37910,7 +37956,7 @@ function Ey({
|
|
|
37910
37956
|
objectFit: "contain",
|
|
37911
37957
|
transformOrigin: "top left",
|
|
37912
37958
|
transform: Mt,
|
|
37913
|
-
opacity: Le > 0 ?
|
|
37959
|
+
opacity: Le > 0 ? ze : jt ? 1 : q === "opening" || qe ? 0 : 1,
|
|
37914
37960
|
transition: ve && !$e ? "none" : $e ? `transform ${io}ms ${bn}` : Q ? `transform ${An}ms ${bn}, opacity ${An}ms ${bn}` : Ot ? `transform ${An}ms ${bn}` : q === "opening" || qe ? `opacity ${An}ms ${bn}` : "none",
|
|
37915
37961
|
pointerEvents: je && De && !Oe ? "auto" : "none",
|
|
37916
37962
|
touchAction: je && De ? "none" : void 0,
|
|
@@ -37952,7 +37998,7 @@ function Ey({
|
|
|
37952
37998
|
}
|
|
37953
37999
|
ue.stopPropagation(), Lt(m);
|
|
37954
38000
|
}
|
|
37955
|
-
}, Zt = Ue ? an(Ue, "left") : null, yt = ct ? an(ct, "right") : null,
|
|
38001
|
+
}, Zt = Ue ? an(Ue, "left") : null, yt = ct ? an(ct, "right") : null, zt = Zt ? Jo(Zt, W) : null, Xt = yt ? Jo(yt, W) : null;
|
|
37956
38002
|
return /* @__PURE__ */ J(
|
|
37957
38003
|
"div",
|
|
37958
38004
|
{
|
|
@@ -38058,15 +38104,15 @@ function Ey({
|
|
|
38058
38104
|
},
|
|
38059
38105
|
`prev-${Ue.url}`
|
|
38060
38106
|
),
|
|
38061
|
-
|
|
38107
|
+
zt && /* @__PURE__ */ l(
|
|
38062
38108
|
"div",
|
|
38063
38109
|
{
|
|
38064
38110
|
style: {
|
|
38065
38111
|
position: "absolute",
|
|
38066
|
-
top:
|
|
38067
|
-
left:
|
|
38068
|
-
width:
|
|
38069
|
-
height:
|
|
38112
|
+
top: zt.top,
|
|
38113
|
+
left: zt.left,
|
|
38114
|
+
width: zt.width,
|
|
38115
|
+
height: zt.height,
|
|
38070
38116
|
cursor: a || ve ? "default" : "pointer",
|
|
38071
38117
|
pointerEvents: a || ve ? "none" : "auto",
|
|
38072
38118
|
zIndex: 3
|
|
@@ -38113,7 +38159,7 @@ function Ey({
|
|
|
38113
38159
|
},
|
|
38114
38160
|
`far-next-${Vt.url}`
|
|
38115
38161
|
),
|
|
38116
|
-
|
|
38162
|
+
z && N && (je ? /* @__PURE__ */ l(
|
|
38117
38163
|
Ry,
|
|
38118
38164
|
{
|
|
38119
38165
|
src: N.url,
|
|
@@ -38283,32 +38329,32 @@ function Hy({
|
|
|
38283
38329
|
layoutId: r,
|
|
38284
38330
|
portalId: a
|
|
38285
38331
|
}) {
|
|
38286
|
-
const { prefix: c } = hn(), s =
|
|
38332
|
+
const { prefix: c } = hn(), s = Be(() => Ay(c), [c]), d = t ?? [], p = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, b = D(y, n ?? !1), w = `max(${b}, ${My}px)`, { objectFitMode: f, isCover: x, imageWrapperStyle: $, imageStyle: T } = Fy(e), E = Wy(e, n), P = {
|
|
38287
38333
|
width: D(p, n ?? !1),
|
|
38288
38334
|
...E,
|
|
38289
38335
|
...ky(e, c, n)
|
|
38290
|
-
}, H = ee(null), [M,
|
|
38336
|
+
}, H = ee(null), [M, B] = te(!1), [I, v] = te([]), [K, g] = te(0), [L, A] = te(0), [V, X] = te(null), [se, Z] = te({ title1: "", title2: "", title3: "" }), j = (!n || i) && !M, F = (e == null ? void 0 : e.imageHoverEffect) ?? "none", S = j && F !== "none" ? `${c}-item-image-hover-${F}` : void 0, R = (() => {
|
|
38291
38337
|
const de = {}, Le = H.current ? getComputedStyle(H.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
38292
38338
|
return Le && (de["--cntrl-article-width"] = Le), de;
|
|
38293
|
-
})(), G = !n || i || o,
|
|
38339
|
+
})(), G = !n || i || o, z = Be(() => vy(d), [d]), ne = Be(() => $y(d), [d]), W = (de, Le) => {
|
|
38294
38340
|
if (n && !o && !i) return;
|
|
38295
|
-
const ae =
|
|
38341
|
+
const ae = z.findIndex((U) => U.gridIndex === de);
|
|
38296
38342
|
if (ae < 0) return;
|
|
38297
|
-
const be =
|
|
38298
|
-
A(ae), v(be.items), g(0), Z(be.entry), X(Le ?? null),
|
|
38343
|
+
const be = z[ae];
|
|
38344
|
+
A(ae), v(be.items), g(0), Z(be.entry), X(Le ?? null), B(!0);
|
|
38299
38345
|
}, xe = ye(() => {
|
|
38300
|
-
|
|
38346
|
+
B(!1), X(null);
|
|
38301
38347
|
}, []), h = ye(() => {
|
|
38302
|
-
const de =
|
|
38348
|
+
const de = z[L];
|
|
38303
38349
|
return !de || !H.current ? V : yy(H.current, de.gridIndex, f) ?? V;
|
|
38304
|
-
}, [
|
|
38305
|
-
if (
|
|
38306
|
-
const Le =
|
|
38350
|
+
}, [z, L, V, f]), we = ye((de) => {
|
|
38351
|
+
if (z.length > 1) {
|
|
38352
|
+
const Le = z.length, ae = (L + de + Le) % Le, be = z[ae];
|
|
38307
38353
|
A(ae), v(be.items), g(0), Z(be.entry);
|
|
38308
38354
|
return;
|
|
38309
38355
|
}
|
|
38310
38356
|
g((Le) => (Le + de + I.length) % I.length);
|
|
38311
|
-
}, [
|
|
38357
|
+
}, [z, L, I.length]), q = z.length > 1 || I.length > 1;
|
|
38312
38358
|
return We(() => {
|
|
38313
38359
|
if (!M || typeof document > "u") return;
|
|
38314
38360
|
const de = document.body.style.overflow;
|
|
@@ -38316,7 +38362,7 @@ function Hy({
|
|
|
38316
38362
|
document.body.style.overflow = de;
|
|
38317
38363
|
};
|
|
38318
38364
|
}, [M]), We(() => {
|
|
38319
|
-
!n || o || i ||
|
|
38365
|
+
!n || o || i || B(!1);
|
|
38320
38366
|
}, [n, o, i]), /* @__PURE__ */ J(lt, { children: [
|
|
38321
38367
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: s } }),
|
|
38322
38368
|
/* @__PURE__ */ l(Cy, { mediaList: ne }),
|
|
@@ -38411,7 +38457,7 @@ function Hy({
|
|
|
38411
38457
|
isEditMode: o,
|
|
38412
38458
|
isPreviewMode: i,
|
|
38413
38459
|
canNavigate: q,
|
|
38414
|
-
lightboxEntries:
|
|
38460
|
+
lightboxEntries: z,
|
|
38415
38461
|
entryIdx: L,
|
|
38416
38462
|
layoutId: r,
|
|
38417
38463
|
sourceRect: V,
|
|
@@ -38917,7 +38963,7 @@ export function Waterfall({
|
|
|
38917
38963
|
}
|
|
38918
38964
|
}
|
|
38919
38965
|
};
|
|
38920
|
-
function
|
|
38966
|
+
function zy(e) {
|
|
38921
38967
|
const t = {};
|
|
38922
38968
|
return t[Ke(e, "fontFamily")] = {
|
|
38923
38969
|
type: "string",
|
|
@@ -38963,10 +39009,10 @@ function By(e) {
|
|
|
38963
39009
|
}
|
|
38964
39010
|
const Ki = ni.filter(
|
|
38965
39011
|
(e) => e !== "count"
|
|
38966
|
-
),
|
|
39012
|
+
), By = Ki.reduce(
|
|
38967
39013
|
(e, t) => ({
|
|
38968
39014
|
...e,
|
|
38969
|
-
...
|
|
39015
|
+
...zy(t)
|
|
38970
39016
|
}),
|
|
38971
39017
|
{}
|
|
38972
39018
|
), Dy = Ki.reduce(
|
|
@@ -39315,7 +39361,7 @@ const Vy = {
|
|
|
39315
39361
|
fontVariant: { type: "string", enum: ["normal", "small-caps"] }
|
|
39316
39362
|
}
|
|
39317
39363
|
},
|
|
39318
|
-
...
|
|
39364
|
+
...By
|
|
39319
39365
|
},
|
|
39320
39366
|
defaults: {
|
|
39321
39367
|
imageDisplay: {
|
|
@@ -39524,7 +39570,7 @@ const Vy = {
|
|
|
39524
39570
|
sourceCode: Ny
|
|
39525
39571
|
}, Qy = [
|
|
39526
39572
|
Wu,
|
|
39527
|
-
|
|
39573
|
+
Bu,
|
|
39528
39574
|
Jf,
|
|
39529
39575
|
Ep,
|
|
39530
39576
|
Np,
|