@cntrl-site/components 1.0.40-alpha.2 → 1.0.40-alpha.3
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 +14 -14
- package/dist/index.mjs +768 -843
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as s, Fragment as et, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as s, Fragment as et, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import Gn, { useState as le, useEffect as We, useRef as ue, useCallback as $e, useMemo as Ne, useLayoutEffect as zt } from "react";
|
|
3
3
|
import ct from "classnames";
|
|
4
4
|
import { s as Y, u as hn, b as fo, g as Zo, r as Ks } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
5
|
import { createPortal as yo, flushSync as oc } from "react-dom";
|
|
6
|
-
function
|
|
6
|
+
function Yf(e) {
|
|
7
7
|
return e.type === "object" && e.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const rc = "ControlSlider-module__wrapper___sHEkd", ac = "ControlSlider-module__hoverArrow___A-dOH", sc = "ControlSlider-module__sliderItem___QQSkR", lc = "ControlSlider-module__sliderImage___9hRl-", cc = "ControlSlider-module__arrow___05ghY", dc = "ControlSlider-module__arrowVertical___tBfVN", uc = "ControlSlider-module__nextArrow___-30Yc", pc = "ControlSlider-module__arrowInner___aEra3", mc = "ControlSlider-module__arrowIcon___S4ztF", gc = "ControlSlider-module__arrowImg___2dwJW", hc = "ControlSlider-module__mirror___brd6U", fc = "ControlSlider-module__pagination___bicLF", yc = "ControlSlider-module__paginationInner___bT-P-", vc = "ControlSlider-module__paginationVertical___zYqKw", bc = "ControlSlider-module__paginationItem___nTRbk", xc = "ControlSlider-module__dot___p1Qun", wc = "ControlSlider-module__activeDot___LHFaj", Sc = "ControlSlider-module__paginationInsideBottom___R3FWn", $c = "ControlSlider-module__paginationInsideTop___V-qb-", Cc = "ControlSlider-module__paginationOutsideBottom___14w8D", Tc = "ControlSlider-module__paginationOutsideTop___SCLqB", Lc = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ic = "ControlSlider-module__paginationInsideRight___Rtt3o", Rc = "ControlSlider-module__paginationOutsideLeft___lahaw", Ec = "ControlSlider-module__paginationOutsideRight___EtuQa", Mc = "ControlSlider-module__imgWrapper___UjEgB", Pc = "ControlSlider-module__captionBlock___dJ6-j", Ac = "ControlSlider-module__captionTextWrapper___HFlpf", kc = "ControlSlider-module__captionText___uGBVc", Wc = "ControlSlider-module__active___WZK4G", _c = "ControlSlider-module__withPointerEvents___t-18M", Fc = "ControlSlider-module__topLeftAlignment___zjnGM", Nc = "ControlSlider-module__topCenterAlignment___gD1xW", Hc = "ControlSlider-module__topRightAlignment___NMapS", Oc = "ControlSlider-module__middleLeftAlignment___OnUrY", Bc = "ControlSlider-module__middleCenterAlignment___Tdkl0", zc = "ControlSlider-module__middleRightAlignment___wEbfX", Dc = "ControlSlider-module__bottomLeftAlignment___cTP2-", Vc = "ControlSlider-module__bottomCenterAlignment___c54fB", jc = "ControlSlider-module__bottomRightAlignment___kEwrz",
|
|
9
|
+
const rc = "ControlSlider-module__wrapper___sHEkd", ac = "ControlSlider-module__hoverArrow___A-dOH", sc = "ControlSlider-module__sliderItem___QQSkR", lc = "ControlSlider-module__sliderImage___9hRl-", cc = "ControlSlider-module__arrow___05ghY", dc = "ControlSlider-module__arrowVertical___tBfVN", uc = "ControlSlider-module__nextArrow___-30Yc", pc = "ControlSlider-module__arrowInner___aEra3", mc = "ControlSlider-module__arrowIcon___S4ztF", gc = "ControlSlider-module__arrowImg___2dwJW", hc = "ControlSlider-module__mirror___brd6U", fc = "ControlSlider-module__pagination___bicLF", yc = "ControlSlider-module__paginationInner___bT-P-", vc = "ControlSlider-module__paginationVertical___zYqKw", bc = "ControlSlider-module__paginationItem___nTRbk", xc = "ControlSlider-module__dot___p1Qun", wc = "ControlSlider-module__activeDot___LHFaj", Sc = "ControlSlider-module__paginationInsideBottom___R3FWn", $c = "ControlSlider-module__paginationInsideTop___V-qb-", Cc = "ControlSlider-module__paginationOutsideBottom___14w8D", Tc = "ControlSlider-module__paginationOutsideTop___SCLqB", Lc = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ic = "ControlSlider-module__paginationInsideRight___Rtt3o", Rc = "ControlSlider-module__paginationOutsideLeft___lahaw", Ec = "ControlSlider-module__paginationOutsideRight___EtuQa", Mc = "ControlSlider-module__imgWrapper___UjEgB", Pc = "ControlSlider-module__captionBlock___dJ6-j", Ac = "ControlSlider-module__captionTextWrapper___HFlpf", kc = "ControlSlider-module__captionText___uGBVc", Wc = "ControlSlider-module__active___WZK4G", _c = "ControlSlider-module__withPointerEvents___t-18M", Fc = "ControlSlider-module__topLeftAlignment___zjnGM", Nc = "ControlSlider-module__topCenterAlignment___gD1xW", Hc = "ControlSlider-module__topRightAlignment___NMapS", Oc = "ControlSlider-module__middleLeftAlignment___OnUrY", Bc = "ControlSlider-module__middleCenterAlignment___Tdkl0", zc = "ControlSlider-module__middleRightAlignment___wEbfX", Dc = "ControlSlider-module__bottomLeftAlignment___cTP2-", Vc = "ControlSlider-module__bottomCenterAlignment___c54fB", jc = "ControlSlider-module__bottomRightAlignment___kEwrz", qc = "ControlSlider-module__clickOverlay___DZA28", Gc = "ControlSlider-module__contain___pLyq7", Kc = "ControlSlider-module__cover___KdDat", qe = {
|
|
10
10
|
wrapper: rc,
|
|
11
11
|
hoverArrow: ac,
|
|
12
12
|
sliderItem: sc,
|
|
@@ -47,8 +47,8 @@ const rc = "ControlSlider-module__wrapper___sHEkd", ac = "ControlSlider-module__
|
|
|
47
47
|
bottomLeftAlignment: Dc,
|
|
48
48
|
bottomCenterAlignment: Vc,
|
|
49
49
|
bottomRightAlignment: jc,
|
|
50
|
-
clickOverlay:
|
|
51
|
-
contain:
|
|
50
|
+
clickOverlay: qc,
|
|
51
|
+
contain: Gc,
|
|
52
52
|
cover: Kc
|
|
53
53
|
};
|
|
54
54
|
function Uc(e, t) {
|
|
@@ -109,7 +109,7 @@ function $n(e, t) {
|
|
|
109
109
|
function ca(e, t) {
|
|
110
110
|
return e.indexOf(t) > -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function qo(e, t) {
|
|
113
113
|
return e.push.apply(e, xo(t)), e;
|
|
114
114
|
}
|
|
115
115
|
function Fn(e, t, n) {
|
|
@@ -241,7 +241,7 @@ var Zn = Math.min, er = Math.max, tr = Math.floor, lo = Math.ceil, pn = Math.abs
|
|
|
241
241
|
function tl(e, t, n) {
|
|
242
242
|
return pn(e - t) < n;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Go(e, t, n, i) {
|
|
245
245
|
var o = Zn(t, n), a = er(t, n);
|
|
246
246
|
return i ? o < e && e < a : o <= e && e <= a;
|
|
247
247
|
}
|
|
@@ -444,7 +444,7 @@ function id(e, t, n) {
|
|
|
444
444
|
orient: o
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Hn = "role", Ei = "tabindex", od = "disabled", In = "aria-", Co = In + "controls", bl = In + "current",
|
|
447
|
+
var Hn = "role", Ei = "tabindex", od = "disabled", In = "aria-", Co = In + "controls", bl = In + "current", qa = In + "selected", bn = In + "label", xa = In + "labelledby", xl = In + "hidden", wa = In + "orientation", co = In + "roledescription", Ga = In + "live", Ka = In + "busy", Ua = In + "atomic", Sa = [Hn, Ei, od, Co, bl, bn, xa, xl, wa, co], kn = $o + "__", ni = "is-", Rr = $o, Xa = kn + "track", rd = kn + "list", hr = kn + "slide", wl = hr + "--clone", ad = hr + "__container", $a = kn + "arrows", fr = kn + "arrow", Sl = fr + "--prev", $l = fr + "--next", yr = kn + "pagination", Cl = yr + "__page", sd = kn + "progress", ld = sd + "__bar", cd = kn + "toggle", dd = kn + "spinner", ud = kn + "sr", pd = ni + "initialized", yi = ni + "active", Tl = ni + "prev", Ll = ni + "next", Zr = ni + "visible", Qr = ni + "loading", Il = ni + "focus-in", Rl = ni + "overflow", md = [yi, Zr, Tl, Ll, Qr, Il, Rl], gd = {
|
|
448
448
|
slide: hr,
|
|
449
449
|
clone: wl,
|
|
450
450
|
arrows: $a,
|
|
@@ -485,7 +485,7 @@ function yd(e, t, n) {
|
|
|
485
485
|
Nn(r, p), Nn(x, f), p = H(Rr), f = H(Xa), Pn(r, p), Pn(x, f), st(r, bn, n.label), st(r, xa, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function E() {
|
|
488
|
-
x = v("." + Xa), S = So(x, "." + rd), Zi(x && S, "A track/list element is missing."),
|
|
488
|
+
x = v("." + Xa), S = So(x, "." + rd), Zi(x && S, "A track/list element is missing."), qo(d, Js(S, "." + hr + ":not(." + wl + ")")), hi({
|
|
489
489
|
arrows: $a,
|
|
490
490
|
pagination: yr,
|
|
491
491
|
prev: Sl,
|
|
@@ -518,7 +518,7 @@ function yd(e, t, n) {
|
|
|
518
518
|
destroy: $
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
var ki = "slide",
|
|
521
|
+
var ki = "slide", qi = "loop", To = "fade";
|
|
522
522
|
function vd(e, t, n, i) {
|
|
523
523
|
var o = jt(e), a = o.on, r = o.emit, c = o.bind, l = e.Components, d = e.root, p = e.options, f = p.isNavigation, x = p.updateOnMove, S = p.i18n, g = p.pagination, y = p.slideFocus, w = l.Direction.resolve, $ = Ln(i, "style"), I = Ln(i, bn), E = n > -1, N = So(i, "." + ad), v;
|
|
524
524
|
function H() {
|
|
@@ -567,12 +567,12 @@ function vd(e, t, n, i) {
|
|
|
567
567
|
function J() {
|
|
568
568
|
if (e.is(To))
|
|
569
569
|
return ee();
|
|
570
|
-
var T = yn(l.Elements.track), L = yn(i), V = w("left", !0),
|
|
571
|
-
return tr(T[V]) <= lo(L[V]) && tr(L[
|
|
570
|
+
var T = yn(l.Elements.track), L = yn(i), V = w("left", !0), G = w("right", !0);
|
|
571
|
+
return tr(T[V]) <= lo(L[V]) && tr(L[G]) <= lo(T[G]);
|
|
572
572
|
}
|
|
573
573
|
function O(T, L) {
|
|
574
574
|
var V = pn(T - t);
|
|
575
|
-
return !E && (p.rewind || e.is(
|
|
575
|
+
return !E && (p.rewind || e.is(qi)) && (V = Zn(V, e.length - V)), V <= L;
|
|
576
576
|
}
|
|
577
577
|
var F = {
|
|
578
578
|
index: t,
|
|
@@ -622,7 +622,7 @@ function bd(e, t, n) {
|
|
|
622
622
|
function $(P) {
|
|
623
623
|
var k = t.Controller, z = k.toIndex(P), ne = k.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return H(function(ee) {
|
|
625
|
-
return
|
|
625
|
+
return Go(ee.index, z, z + ne - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function I(P) {
|
|
@@ -728,8 +728,8 @@ function xd(e, t, n) {
|
|
|
728
728
|
function z(F, T) {
|
|
729
729
|
var L = S(F);
|
|
730
730
|
if (L) {
|
|
731
|
-
var V = yn(L.slide)[l("right")],
|
|
732
|
-
return pn(V -
|
|
731
|
+
var V = yn(L.slide)[l("right")], G = yn(x)[l("left")];
|
|
732
|
+
return pn(V - G) + (T ? 0 : ee());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
@@ -777,10 +777,10 @@ function Sd(e, t, n) {
|
|
|
777
777
|
var I = r.get().slice(), E = I.length;
|
|
778
778
|
if (E) {
|
|
779
779
|
for (; I.length < $; )
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
qo(I, I);
|
|
781
|
+
qo(I.slice(-$), I.slice(0, $)).forEach(function(N, v) {
|
|
782
782
|
var H = v < $, M = y(N.slide, v);
|
|
783
|
-
H ? da(M, I[0].slide) : wo(a.list, M),
|
|
783
|
+
H ? da(M, I[0].slide) : wo(a.list, M), qo(l, M), r.register(M, v - $ + (H ? 0 : E), N.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -790,7 +790,7 @@ function Sd(e, t, n) {
|
|
|
790
790
|
}
|
|
791
791
|
function w() {
|
|
792
792
|
var $ = n.clones;
|
|
793
|
-
if (!e.is(
|
|
793
|
+
if (!e.is(qi))
|
|
794
794
|
$ = 0;
|
|
795
795
|
else if (bo($)) {
|
|
796
796
|
var I = n[c("fixedWidth")] && t.Layout.slideSize(0), E = I && lo(yn(a.track)[c("width")] / I);
|
|
@@ -811,9 +811,9 @@ function $d(e, t, n) {
|
|
|
811
811
|
function v() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), M(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
|
-
function H(L, V,
|
|
815
|
-
L !== V && F(L >
|
|
816
|
-
r(Pi), a(ji, V,
|
|
814
|
+
function H(L, V, G, Z) {
|
|
815
|
+
L !== V && F(L > G) && (P(), C(h(ne(), L > G), !0)), r(Vi), a(Dn, V, G, L), E.start(V, function() {
|
|
816
|
+
r(Pi), a(ji, V, G, L), Z && Z();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function M(L) {
|
|
@@ -821,37 +821,37 @@ function $d(e, t, n) {
|
|
|
821
821
|
}
|
|
822
822
|
function C(L, V) {
|
|
823
823
|
if (!e.is(To)) {
|
|
824
|
-
var
|
|
825
|
-
Tn($, "transform", "translate" + g("X") + "(" +
|
|
824
|
+
var G = V ? L : j(L);
|
|
825
|
+
Tn($, "transform", "translate" + g("X") + "(" + G + "px)"), L !== G && a(fl);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function j(L) {
|
|
829
|
-
if (e.is(
|
|
830
|
-
var V = k(L),
|
|
831
|
-
(Z ||
|
|
829
|
+
if (e.is(qi)) {
|
|
830
|
+
var V = k(L), G = V > t.Controller.getEnd(), Z = V < 0;
|
|
831
|
+
(Z || G) && (L = h(L, G));
|
|
832
832
|
}
|
|
833
833
|
return L;
|
|
834
834
|
}
|
|
835
835
|
function h(L, V) {
|
|
836
|
-
var
|
|
837
|
-
return L -= y(Z * (lo(pn(
|
|
836
|
+
var G = L - O(V), Z = x();
|
|
837
|
+
return L -= y(Z * (lo(pn(G) / Z) || 1)) * (V ? 1 : -1), L;
|
|
838
838
|
}
|
|
839
839
|
function P() {
|
|
840
840
|
C(ne(), !0), E.cancel();
|
|
841
841
|
}
|
|
842
842
|
function k(L) {
|
|
843
|
-
for (var V = t.Slides.get(),
|
|
843
|
+
for (var V = t.Slides.get(), G = 0, Z = 1 / 0, W = 0; W < V.length; W++) {
|
|
844
844
|
var ye = V[W].index, m = pn(z(ye, !0) - L);
|
|
845
845
|
if (m <= Z)
|
|
846
|
-
Z = m,
|
|
846
|
+
Z = m, G = ye;
|
|
847
847
|
else
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
|
-
return
|
|
850
|
+
return G;
|
|
851
851
|
}
|
|
852
852
|
function z(L, V) {
|
|
853
|
-
var
|
|
854
|
-
return V ? ee(
|
|
853
|
+
var G = y(p(L - 1) - J(L));
|
|
854
|
+
return V ? ee(G) : G;
|
|
855
855
|
}
|
|
856
856
|
function ne() {
|
|
857
857
|
var L = g("left");
|
|
@@ -873,8 +873,8 @@ function $d(e, t, n) {
|
|
|
873
873
|
}
|
|
874
874
|
function T(L, V) {
|
|
875
875
|
V = bo(V) ? ne() : V;
|
|
876
|
-
var
|
|
877
|
-
return
|
|
876
|
+
var G = L !== !0 && y(V) < y(O(!1)), Z = L !== !1 && y(V) > y(O(!0));
|
|
877
|
+
return G || Z;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
880
|
mount: N,
|
|
@@ -892,7 +892,7 @@ function $d(e, t, n) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Cd(e, t, n) {
|
|
895
|
-
var i = jt(e), o = i.on, a = i.emit, r = t.Move, c = r.getPosition, l = r.getLimit, d = r.toPosition, p = t.Slides, f = p.isEnough, x = p.getLength, S = n.omitEnd, g = e.is(
|
|
895
|
+
var i = jt(e), o = i.on, a = i.emit, r = t.Move, c = r.getPosition, l = r.getLimit, d = r.toPosition, p = t.Slides, f = p.isEnough, x = p.getLength, S = n.omitEnd, g = e.is(qi), y = e.is(ki), w = Ft(ne, !1), $ = Ft(ne, !0), I = n.start || 0, E, N = I, v, H, M;
|
|
896
896
|
function C() {
|
|
897
897
|
j(), o([dn, Jt, nr], j), o(lr, h);
|
|
898
898
|
}
|
|
@@ -907,13 +907,13 @@ function Cd(e, t, n) {
|
|
|
907
907
|
function P(m, he, re) {
|
|
908
908
|
if (!ye()) {
|
|
909
909
|
var we = z(m), He = O(we);
|
|
910
|
-
He > -1 && (he || He !== I) && (
|
|
910
|
+
He > -1 && (he || He !== I) && (G(He), r.move(we, He, N, re));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function k(m, he, re, we) {
|
|
914
914
|
t.Scroll.scroll(m, he, re, function() {
|
|
915
915
|
var He = O(r.toIndex(c()));
|
|
916
|
-
|
|
916
|
+
G(S ? Zn(He, E) : He), we && we();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function z(m) {
|
|
@@ -932,14 +932,14 @@ function Cd(e, t, n) {
|
|
|
932
932
|
function ee(m, he, re) {
|
|
933
933
|
if (f() || W()) {
|
|
934
934
|
var we = J(m);
|
|
935
|
-
we !== m && (he = m, m = we, re = !1), m < 0 || m > E ? !H && (
|
|
935
|
+
we !== m && (he = m, m = we, re = !1), m < 0 || m > E ? !H && (Go(0, m, he, !0) || Go(E, he, m, !0)) ? m = T(L(m)) : g ? m = re ? m < 0 ? -(v % M || M) : v : m : n.rewind ? m = m < 0 ? E : 0 : m = -1 : re && m !== he && (m = T(L(he) + (m < he ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
m = -1;
|
|
938
938
|
return m;
|
|
939
939
|
}
|
|
940
940
|
function J(m) {
|
|
941
941
|
if (y && n.trimSpace === "move" && m !== I)
|
|
942
|
-
for (var he = c(); he === d(m, !0) &&
|
|
942
|
+
for (var he = c(); he === d(m, !0) && Go(m, 0, e.length - 1, !n.rewind); )
|
|
943
943
|
m < I ? --m : ++m;
|
|
944
944
|
return m;
|
|
945
945
|
}
|
|
@@ -964,7 +964,7 @@ function Cd(e, t, n) {
|
|
|
964
964
|
var he = r.toIndex(m);
|
|
965
965
|
return y ? Ci(he, 0, E) : he;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function G(m) {
|
|
968
968
|
m !== I && (N = I, I = m);
|
|
969
969
|
}
|
|
970
970
|
function Z(m) {
|
|
@@ -984,7 +984,7 @@ function Cd(e, t, n) {
|
|
|
984
984
|
getPrev: $,
|
|
985
985
|
getAdjacent: ne,
|
|
986
986
|
getEnd: F,
|
|
987
|
-
setIndex:
|
|
987
|
+
setIndex: G,
|
|
988
988
|
getIndex: Z,
|
|
989
989
|
toIndex: T,
|
|
990
990
|
toPage: L,
|
|
@@ -1178,7 +1178,7 @@ function Nd(e, t, n) {
|
|
|
1178
1178
|
v = N, N = K, E = $();
|
|
1179
1179
|
}
|
|
1180
1180
|
function T(K) {
|
|
1181
|
-
var be =
|
|
1181
|
+
var be = G(K), ge = Z(be), pe = n.rewind && n.rewindByDrag;
|
|
1182
1182
|
S(!1), H ? f.scroll(ge, 0, n.snap) : e.is(To) ? f.go(w(Xr(be)) < 0 ? pe ? "<" : "-" : pe ? ">" : "+") : e.is(ki) && C && pe ? f.go(I(!0) ? ">" : "<") : f.go(f.toDest(ge), !0), S(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function L(K) {
|
|
@@ -1188,8 +1188,8 @@ function Nd(e, t, n) {
|
|
|
1188
1188
|
function V(K) {
|
|
1189
1189
|
return pn(W(K)) > pn(W(K, !0));
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
if (e.is(
|
|
1191
|
+
function G(K) {
|
|
1192
|
+
if (e.is(qi) || !C) {
|
|
1193
1193
|
var be = ye(K);
|
|
1194
1194
|
if (be && be < Ya)
|
|
1195
1195
|
return W(K) / be;
|
|
@@ -1369,11 +1369,11 @@ function Dd(e, t, n) {
|
|
|
1369
1369
|
var h = C(f(!0)), P = C(f());
|
|
1370
1370
|
if (h) {
|
|
1371
1371
|
var k = h.button;
|
|
1372
|
-
Nn(k, yi), An(k,
|
|
1372
|
+
Nn(k, yi), An(k, qa), st(k, Ei, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (P) {
|
|
1375
1375
|
var z = P.button;
|
|
1376
|
-
Pn(z, yi), st(z,
|
|
1376
|
+
Pn(z, yi), st(z, qa, !0), st(z, Ei, "");
|
|
1377
1377
|
}
|
|
1378
1378
|
a(ml, {
|
|
1379
1379
|
list: w,
|
|
@@ -1407,7 +1407,7 @@ function jd(e, t, n) {
|
|
|
1407
1407
|
function d(g, y) {
|
|
1408
1408
|
var w = jt(g);
|
|
1409
1409
|
w.on(Dn, function($, I, E) {
|
|
1410
|
-
y.go(y.is(
|
|
1410
|
+
y.go(y.is(qi) ? E : $);
|
|
1411
1411
|
}), a.push(w);
|
|
1412
1412
|
}
|
|
1413
1413
|
function p() {
|
|
@@ -1432,7 +1432,7 @@ function jd(e, t, n) {
|
|
|
1432
1432
|
remount: l
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function qd(e, t, n) {
|
|
1436
1436
|
var i = jt(e), o = i.bind, a = 0;
|
|
1437
1437
|
function r() {
|
|
1438
1438
|
n.wheel && o(t.Elements.track, "wheel", c, Ti);
|
|
@@ -1450,9 +1450,9 @@ function Gd(e, t, n) {
|
|
|
1450
1450
|
mount: r
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1453
|
+
var Gd = 90;
|
|
1454
1454
|
function Kd(e, t, n) {
|
|
1455
|
-
var i = jt(e), o = i.on, a = t.Elements.track, r = n.live && !n.isNavigation, c = Ri("span", ud), l = dr(
|
|
1455
|
+
var i = jt(e), o = i.on, a = t.Elements.track, r = n.live && !n.isNavigation, c = Ri("span", ud), l = dr(Gd, Ft(p, !1));
|
|
1456
1456
|
function d() {
|
|
1457
1457
|
r && (x(!t.Autoplay.isPaused()), st(a, Ua, !0), c.textContent = "…", o(ya, Ft(x, !0)), o(va, Ft(x, !1)), o([ji, bi], Ft(p, !0)));
|
|
1458
1458
|
}
|
|
@@ -1460,10 +1460,10 @@ function Kd(e, t, n) {
|
|
|
1460
1460
|
st(a, Ka, S), S ? (wo(a, c), l.start()) : (fi(c), l.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function f() {
|
|
1463
|
-
An(a, [
|
|
1463
|
+
An(a, [Ga, Ua, Ka]), fi(c);
|
|
1464
1464
|
}
|
|
1465
1465
|
function x(S) {
|
|
1466
|
-
r && st(a,
|
|
1466
|
+
r && st(a, Ga, S ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: d,
|
|
@@ -1490,7 +1490,7 @@ var Ud = /* @__PURE__ */ Object.freeze({
|
|
|
1490
1490
|
LazyLoad: zd,
|
|
1491
1491
|
Pagination: Dd,
|
|
1492
1492
|
Sync: jd,
|
|
1493
|
-
Wheel:
|
|
1493
|
+
Wheel: qd,
|
|
1494
1494
|
Live: Kd
|
|
1495
1495
|
}), Xd = {
|
|
1496
1496
|
prev: "Previous slide",
|
|
@@ -1725,14 +1725,14 @@ function ta(e, t) {
|
|
|
1725
1725
|
Array.isArray(i) ? n[o] = i.slice() : ir(i) ? n[o] = ta(ir(n[o]) ? n[o] : {}, i) : n[o] = i;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var nu = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1728
|
+
var nu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Gn.createElement("div", {
|
|
1729
1729
|
className: La("splide__track", t),
|
|
1730
1730
|
...n
|
|
1731
|
-
}, /* @__PURE__ */
|
|
1731
|
+
}, /* @__PURE__ */ Gn.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, e)), Ia = class extends
|
|
1733
|
+
}, e)), Ia = class extends Gn.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
|
-
super(...arguments), this.splideRef =
|
|
1735
|
+
super(...arguments), this.splideRef = Gn.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: e, extensions: t, transition: n } = this.props, { current: i } = this.splideRef;
|
|
@@ -1780,13 +1780,13 @@ var nu = ({ children: e, className: t, ...n }) => /* @__PURE__ */ qn.createEleme
|
|
|
1780
1780
|
}
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: e, tag: t = "div", hasTrack: n = !0, children: i, ...o } = this.props;
|
|
1783
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ Gn.createElement(t, {
|
|
1784
1784
|
className: La("splide", e),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
1786
|
...this.omit(o, ["options", ...Za.map((a) => a[1])])
|
|
1787
|
-
}, n ? /* @__PURE__ */
|
|
1787
|
+
}, n ? /* @__PURE__ */ Gn.createElement(nu, null, i) : i);
|
|
1788
1788
|
}
|
|
1789
|
-
}, Ra = ({ children: e, className: t, ...n }) => /* @__PURE__ */
|
|
1789
|
+
}, Ra = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Gn.createElement("li", {
|
|
1790
1790
|
className: La("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
@@ -1872,15 +1872,15 @@ const su = "SvgImage-module__svg___q3xE-", lu = "SvgImage-module__img___VsTm-",
|
|
|
1872
1872
|
}
|
|
1873
1873
|
);
|
|
1874
1874
|
}, uu = {
|
|
1875
|
-
"top-left":
|
|
1876
|
-
"top-center":
|
|
1877
|
-
"top-right":
|
|
1878
|
-
"middle-left":
|
|
1879
|
-
"middle-center":
|
|
1880
|
-
"middle-right":
|
|
1881
|
-
"bottom-left":
|
|
1882
|
-
"bottom-center":
|
|
1883
|
-
"bottom-right":
|
|
1875
|
+
"top-left": qe.topLeftAlignment,
|
|
1876
|
+
"top-center": qe.topCenterAlignment,
|
|
1877
|
+
"top-right": qe.topRightAlignment,
|
|
1878
|
+
"middle-left": qe.middleLeftAlignment,
|
|
1879
|
+
"middle-center": qe.middleCenterAlignment,
|
|
1880
|
+
"middle-right": qe.middleRightAlignment,
|
|
1881
|
+
"bottom-left": qe.bottomLeftAlignment,
|
|
1882
|
+
"bottom-center": qe.bottomCenterAlignment,
|
|
1883
|
+
"bottom-right": qe.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1886
1886
|
const [o, a] = le(null), { widthSettings: r, fontSettings: c, letterSpacing: l, textAlign: d, wordSpacing: p, fontSizeLineHeight: f, textAppearance: x, color: S } = n.imageCaption ?? {}, [g, y] = le(void 0), [w, $] = le(null), [I, E] = le(0), [N, v] = le(0), { direction: H, transition: M, controls: C, pagination: j, imageCaption: h, triggers: P } = e, k = ue(M.type), { x: z, y: ne } = e.controls.offset, ee = (J) => {
|
|
@@ -1899,10 +1899,10 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1899
1899
|
return J.observe(w), () => J.unobserve(w);
|
|
1900
1900
|
}, [w]), We(() => {
|
|
1901
1901
|
!o || k.current === M.type || (v((J) => J + 1), k.current = M.type);
|
|
1902
|
-
}, [M.type]), /* @__PURE__ */ s("div", { className: ct(
|
|
1902
|
+
}, [M.type]), /* @__PURE__ */ s("div", { className: ct(qe.wrapper, { [qe.editor]: i }), ref: $, children: /* @__PURE__ */ q(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
1905
|
-
className:
|
|
1905
|
+
className: qe.sliderInner,
|
|
1906
1906
|
style: {
|
|
1907
1907
|
width: g ? g.width : "100%",
|
|
1908
1908
|
height: g ? g.height : "100%",
|
|
@@ -1912,17 +1912,17 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1912
1912
|
e.imageCaption.isActive && /* @__PURE__ */ s(
|
|
1913
1913
|
"div",
|
|
1914
1914
|
{
|
|
1915
|
-
className: ct(
|
|
1915
|
+
className: ct(qe.captionBlock),
|
|
1916
1916
|
children: /* @__PURE__ */ s(
|
|
1917
1917
|
"div",
|
|
1918
1918
|
{
|
|
1919
|
-
className:
|
|
1919
|
+
className: qe.captionTextWrapper,
|
|
1920
1920
|
children: t.map((J, O) => /* @__PURE__ */ s(
|
|
1921
1921
|
"div",
|
|
1922
1922
|
{
|
|
1923
|
-
className: ct(
|
|
1924
|
-
[
|
|
1925
|
-
[
|
|
1923
|
+
className: ct(qe.captionText, uu[h.alignment], {
|
|
1924
|
+
[qe.withPointerEvents]: O === I && i,
|
|
1925
|
+
[qe.active]: O === I
|
|
1926
1926
|
}),
|
|
1927
1927
|
style: {
|
|
1928
1928
|
fontFamily: vr(c.fontFamily),
|
|
@@ -1944,7 +1944,7 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1944
1944
|
"div",
|
|
1945
1945
|
{
|
|
1946
1946
|
"data-styles": "imageCaption",
|
|
1947
|
-
className:
|
|
1947
|
+
className: qe.captionTextInner,
|
|
1948
1948
|
style: {
|
|
1949
1949
|
"--link-hover-color": h.linkHoverColor,
|
|
1950
1950
|
"--link-color": h.linkColor,
|
|
@@ -1988,17 +1988,17 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
1988
1988
|
children: t.map((J, O) => /* @__PURE__ */ s(Ra, { children: /* @__PURE__ */ s(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
1991
|
-
className:
|
|
1991
|
+
className: qe.sliderItem,
|
|
1992
1992
|
children: /* @__PURE__ */ s(
|
|
1993
1993
|
"div",
|
|
1994
1994
|
{
|
|
1995
|
-
className:
|
|
1995
|
+
className: qe.imgWrapper,
|
|
1996
1996
|
children: /* @__PURE__ */ s(
|
|
1997
1997
|
"img",
|
|
1998
1998
|
{
|
|
1999
|
-
className: ct(
|
|
2000
|
-
[
|
|
2001
|
-
[
|
|
1999
|
+
className: ct(qe.sliderImage, {
|
|
2000
|
+
[qe.contain]: J.image.objectFit === "contain",
|
|
2001
|
+
[qe.cover]: J.image.objectFit === "cover"
|
|
2002
2002
|
}),
|
|
2003
2003
|
src: J.image.url,
|
|
2004
2004
|
alt: J.image.name ?? ""
|
|
@@ -2011,25 +2011,25 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2011
2011
|
},
|
|
2012
2012
|
N
|
|
2013
2013
|
),
|
|
2014
|
-
C.isActive && /* @__PURE__ */
|
|
2014
|
+
C.isActive && /* @__PURE__ */ q(et, { children: [
|
|
2015
2015
|
/* @__PURE__ */ s(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
|
-
className: ct(
|
|
2019
|
-
[
|
|
2020
|
-
[
|
|
2018
|
+
className: ct(qe.arrow, {
|
|
2019
|
+
[qe.arrowVertical]: H === "vert",
|
|
2020
|
+
[qe.hoverArrow]: C.show === "on hover"
|
|
2021
2021
|
}),
|
|
2022
2022
|
style: {
|
|
2023
2023
|
color: C.color,
|
|
2024
2024
|
"--arrow-hover-color": C.hover
|
|
2025
2025
|
},
|
|
2026
|
-
children: /* @__PURE__ */
|
|
2026
|
+
children: /* @__PURE__ */ q(
|
|
2027
2027
|
"button",
|
|
2028
2028
|
{
|
|
2029
2029
|
onClick: () => {
|
|
2030
2030
|
ee("-1");
|
|
2031
2031
|
},
|
|
2032
|
-
className:
|
|
2032
|
+
className: qe.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
2034
|
transform: `translate(${Y(z, i)}, ${Y(ne * (H === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${H === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
@@ -2040,10 +2040,10 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2040
2040
|
url: C.arrowsImgUrl,
|
|
2041
2041
|
fill: C.color,
|
|
2042
2042
|
hoverFill: C.hover,
|
|
2043
|
-
className: ct(
|
|
2043
|
+
className: ct(qe.arrowImg, qe.mirror)
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
2046
|
-
!C.arrowsImgUrl && /* @__PURE__ */ s(es, { color: C.color, className: ct(
|
|
2046
|
+
!C.arrowsImgUrl && /* @__PURE__ */ s(es, { color: C.color, className: ct(qe.arrowIcon, qe.arrowImg, qe.mirror) })
|
|
2047
2047
|
]
|
|
2048
2048
|
}
|
|
2049
2049
|
)
|
|
@@ -2052,18 +2052,18 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2052
2052
|
/* @__PURE__ */ s(
|
|
2053
2053
|
"div",
|
|
2054
2054
|
{
|
|
2055
|
-
className: ct(
|
|
2056
|
-
[
|
|
2057
|
-
[
|
|
2055
|
+
className: ct(qe.arrow, qe.nextArrow, {
|
|
2056
|
+
[qe.arrowVertical]: H === "vert",
|
|
2057
|
+
[qe.hoverArrow]: C.show === "on hover"
|
|
2058
2058
|
}),
|
|
2059
2059
|
style: {
|
|
2060
2060
|
color: C.color,
|
|
2061
2061
|
"--arrow-hover-color": C.hover
|
|
2062
2062
|
},
|
|
2063
|
-
children: /* @__PURE__ */
|
|
2063
|
+
children: /* @__PURE__ */ q(
|
|
2064
2064
|
"button",
|
|
2065
2065
|
{
|
|
2066
|
-
className:
|
|
2066
|
+
className: qe.arrowInner,
|
|
2067
2067
|
onClick: () => ee("+1"),
|
|
2068
2068
|
style: {
|
|
2069
2069
|
transform: `translate(${Y(z * (H === "horiz" ? -1 : 1), i)}, ${Y(ne, i)}) scale(${e.controls.scale / 100}) rotate(${H === "horiz" ? "0deg" : "90deg"})`
|
|
@@ -2075,10 +2075,10 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2075
2075
|
url: C.arrowsImgUrl,
|
|
2076
2076
|
fill: C.color,
|
|
2077
2077
|
hoverFill: C.hover,
|
|
2078
|
-
className:
|
|
2078
|
+
className: qe.arrowImg
|
|
2079
2079
|
}
|
|
2080
2080
|
),
|
|
2081
|
-
!C.arrowsImgUrl && /* @__PURE__ */ s(es, { color: C.color, className: ct(
|
|
2081
|
+
!C.arrowsImgUrl && /* @__PURE__ */ s(es, { color: C.color, className: ct(qe.arrowIcon, qe.arrowImg) })
|
|
2082
2082
|
]
|
|
2083
2083
|
}
|
|
2084
2084
|
)
|
|
@@ -2088,7 +2088,7 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2088
2088
|
P.triggersList.click && /* @__PURE__ */ s(
|
|
2089
2089
|
"div",
|
|
2090
2090
|
{
|
|
2091
|
-
className:
|
|
2091
|
+
className: qe.clickOverlay,
|
|
2092
2092
|
onClick: () => {
|
|
2093
2093
|
o && o.go("+1");
|
|
2094
2094
|
}
|
|
@@ -2097,21 +2097,21 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2097
2097
|
j.isActive && /* @__PURE__ */ s(
|
|
2098
2098
|
"div",
|
|
2099
2099
|
{
|
|
2100
|
-
className: ct(
|
|
2101
|
-
[
|
|
2102
|
-
[
|
|
2103
|
-
[
|
|
2104
|
-
[
|
|
2105
|
-
[
|
|
2106
|
-
[
|
|
2107
|
-
[
|
|
2108
|
-
[
|
|
2109
|
-
[
|
|
2100
|
+
className: ct(qe.pagination, {
|
|
2101
|
+
[qe.paginationInsideBottom]: j.position === "inside-1" && H === "horiz",
|
|
2102
|
+
[qe.paginationInsideTop]: j.position === "inside-2" && H === "horiz",
|
|
2103
|
+
[qe.paginationOutsideBottom]: j.position === "outside-1" && H === "horiz",
|
|
2104
|
+
[qe.paginationOutsideTop]: j.position === "outside-2" && H === "horiz",
|
|
2105
|
+
[qe.paginationInsideLeft]: j.position === "inside-1" && H === "vert",
|
|
2106
|
+
[qe.paginationInsideRight]: j.position === "inside-2" && H === "vert",
|
|
2107
|
+
[qe.paginationOutsideLeft]: j.position === "outside-1" && H === "vert",
|
|
2108
|
+
[qe.paginationOutsideRight]: j.position === "outside-2" && H === "vert",
|
|
2109
|
+
[qe.paginationVertical]: H === "vert"
|
|
2110
2110
|
}),
|
|
2111
2111
|
children: /* @__PURE__ */ s(
|
|
2112
2112
|
"div",
|
|
2113
2113
|
{
|
|
2114
|
-
className:
|
|
2114
|
+
className: qe.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
backgroundColor: j.colors[2],
|
|
2117
2117
|
transform: `scale(${j.scale / 100}) translate(${Y(j.offset.x, i)}, ${Y(j.offset.y, i)}) rotate(${H === "horiz" ? "0deg" : "90deg"})`
|
|
@@ -2122,12 +2122,12 @@ function pu({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2122
2122
|
onClick: () => {
|
|
2123
2123
|
o && o.go(O);
|
|
2124
2124
|
},
|
|
2125
|
-
className: ct(
|
|
2125
|
+
className: ct(qe.paginationItem),
|
|
2126
2126
|
children: /* @__PURE__ */ s(
|
|
2127
2127
|
"div",
|
|
2128
2128
|
{
|
|
2129
|
-
className: ct(
|
|
2130
|
-
[
|
|
2129
|
+
className: ct(qe.dot, {
|
|
2130
|
+
[qe.activeDot]: O === I
|
|
2131
2131
|
}),
|
|
2132
2132
|
style: {
|
|
2133
2133
|
backgroundColor: O === I ? j.colors[0] : j.colors[1],
|
|
@@ -2807,12 +2807,12 @@ function bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2807
2807
|
We(() => {
|
|
2808
2808
|
if (!i) return;
|
|
2809
2809
|
const J = (T, L) => {
|
|
2810
|
-
const V = i.getBoundingClientRect(),
|
|
2811
|
-
if (f({ x:
|
|
2810
|
+
const V = i.getBoundingClientRect(), G = T - V.left, Z = L - V.top;
|
|
2811
|
+
if (f({ x: G, y: Z }), C === "system") {
|
|
2812
2812
|
y("none"), S(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
|
-
const W =
|
|
2815
|
+
const W = G, ye = Z, m = document.elementFromPoint(V.left + W, V.top + ye);
|
|
2816
2816
|
if (m && m.closest("a")) {
|
|
2817
2817
|
y("none"), S(1);
|
|
2818
2818
|
return;
|
|
@@ -2842,7 +2842,7 @@ function bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2842
2842
|
$ || (y("none"), S(0));
|
|
2843
2843
|
}, [$]);
|
|
2844
2844
|
const ne = async (J, O, F, T = {}) => {
|
|
2845
|
-
const { width: L, height: V, finalWidth:
|
|
2845
|
+
const { width: L, height: V, finalWidth: G } = await vu(
|
|
2846
2846
|
J.image.url,
|
|
2847
2847
|
E,
|
|
2848
2848
|
N,
|
|
@@ -2858,19 +2858,19 @@ function bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2858
2858
|
name: J.image.name,
|
|
2859
2859
|
x: ye,
|
|
2860
2860
|
y: m,
|
|
2861
|
-
width:
|
|
2861
|
+
width: G
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
2864
2864
|
return We(() => {
|
|
2865
2865
|
if (!i || t.length === 0) return;
|
|
2866
2866
|
const J = i.getBoundingClientRect(), O = J.width, F = J.height, T = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const V = t[0],
|
|
2869
|
-
T.push(
|
|
2868
|
+
const V = t[0], G = await ne(V, O, F);
|
|
2869
|
+
T.push(G), r(T), l(1);
|
|
2870
2870
|
})();
|
|
2871
2871
|
}, [E, N, v, H, i]), We(() => {
|
|
2872
2872
|
M === "last One" && r((J) => J.length > 0 ? [J[J.length - 1]] : []);
|
|
2873
|
-
}, [M]), /* @__PURE__ */
|
|
2873
|
+
}, [M]), /* @__PURE__ */ q(
|
|
2874
2874
|
"div",
|
|
2875
2875
|
{
|
|
2876
2876
|
ref: o,
|
|
@@ -2880,7 +2880,7 @@ function bu({ settings: e, content: t, isEditor: n }) {
|
|
|
2880
2880
|
if (j === "image" && !ts(F, T, a)) return;
|
|
2881
2881
|
let L = 0, V = 0;
|
|
2882
2882
|
H === "on Click" ? (L = F, V = T) : H === "same" ? (L = O.width / 2, V = O.height / 2) : (L = Math.random() * O.width, V = Math.random() * O.height);
|
|
2883
|
-
const
|
|
2883
|
+
const G = t[c], Z = await ne(G, O.width, O.height, { x: L, y: V });
|
|
2884
2884
|
r((W) => M === "all" ? [...W, Z] : [Z]), l((W) => W >= t.length - 1 ? 0 : W + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => I(!0),
|
|
@@ -3265,7 +3265,7 @@ const xu = {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
}, wu = "LightBox-module__hidden___9s-9x", Su = "LightBox-module__heroImage___sTxNF", $u = "LightBox-module__background___rm9ml", Cu = "LightBox-module__editor___4ACaY", Tu = "LightBox-module__contentStyle___Bgnsq", Lu = "LightBox-module__imageStyle___tLIlB", Iu = "LightBox-module__imgWrapper___LuFUp", Ru = "LightBox-module__contain___8-yaS", Eu = "LightBox-module__cover___hNvOG", Mu = "LightBox-module__caption___b6L2I", Pu = "LightBox-module__captionTextInner___rCGNH", Au = "LightBox-module__lightboxSplide___XFuWC", ku = "LightBox-module__arrow___iz38X", Wu = "LightBox-module__arrowVertical___Zfz81", _u = "LightBox-module__nextArrow___zkAQN", Fu = "LightBox-module__arrowInner___p48sW", Nu = "LightBox-module__arrowIcon___3VaFf", Hu = "LightBox-module__arrowImg___pNV88", Ou = "LightBox-module__mirror___pjeXc", Bu = "LightBox-module__thumbsWrapper___GB-nU", zu = "LightBox-module__thumbsContainerVertical___wttk5", Du = "LightBox-module__thumbsContainer___osSma", Vu = "LightBox-module__thumbsAlignStart___MO6tY", ju = "LightBox-module__thumbsAlignCenter___Q4sUx",
|
|
3268
|
+
}, wu = "LightBox-module__hidden___9s-9x", Su = "LightBox-module__heroImage___sTxNF", $u = "LightBox-module__background___rm9ml", Cu = "LightBox-module__editor___4ACaY", Tu = "LightBox-module__contentStyle___Bgnsq", Lu = "LightBox-module__imageStyle___tLIlB", Iu = "LightBox-module__imgWrapper___LuFUp", Ru = "LightBox-module__contain___8-yaS", Eu = "LightBox-module__cover___hNvOG", Mu = "LightBox-module__caption___b6L2I", Pu = "LightBox-module__captionTextInner___rCGNH", Au = "LightBox-module__lightboxSplide___XFuWC", ku = "LightBox-module__arrow___iz38X", Wu = "LightBox-module__arrowVertical___Zfz81", _u = "LightBox-module__nextArrow___zkAQN", Fu = "LightBox-module__arrowInner___p48sW", Nu = "LightBox-module__arrowIcon___3VaFf", Hu = "LightBox-module__arrowImg___pNV88", Ou = "LightBox-module__mirror___pjeXc", Bu = "LightBox-module__thumbsWrapper___GB-nU", zu = "LightBox-module__thumbsContainerVertical___wttk5", Du = "LightBox-module__thumbsContainer___osSma", Vu = "LightBox-module__thumbsAlignStart___MO6tY", ju = "LightBox-module__thumbsAlignCenter___Q4sUx", qu = "LightBox-module__thumbsAlignEnd___p4y9R", Gu = "LightBox-module__thumbItem___HvnF3", Ku = "LightBox-module__closeButton___g2khP", Uu = "LightBox-module__fadeIn___0m5GW", Xu = "LightBox-module__slideInLeft___gPYwC", Yu = "LightBox-module__slideInRight___S-pPp", Ju = "LightBox-module__slideInTop___DFdAj", Zu = "LightBox-module__slideInBottom___m27kZ", Qu = "LightBox-module__fadeOut___55qBR", ep = "LightBox-module__slideOutLeft___NvU7P", tp = "LightBox-module__slideOutRight___SK7eC", np = "LightBox-module__slideOutTop___Vgg0z", ip = "LightBox-module__slideOutBottom___nJ0Ef", op = "LightBox-module__scaleSlide___vZriG", Pe = {
|
|
3269
3269
|
hidden: wu,
|
|
3270
3270
|
heroImage: Su,
|
|
3271
3271
|
background: $u,
|
|
@@ -3290,8 +3290,8 @@ const xu = {
|
|
|
3290
3290
|
thumbsContainer: Du,
|
|
3291
3291
|
thumbsAlignStart: Vu,
|
|
3292
3292
|
thumbsAlignCenter: ju,
|
|
3293
|
-
thumbsAlignEnd:
|
|
3294
|
-
thumbItem:
|
|
3293
|
+
thumbsAlignEnd: qu,
|
|
3294
|
+
thumbItem: Gu,
|
|
3295
3295
|
closeButton: Ku,
|
|
3296
3296
|
fadeIn: Uu,
|
|
3297
3297
|
slideInLeft: Xu,
|
|
@@ -3423,7 +3423,7 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3423
3423
|
const [c, l] = le(!1), { url: d } = e.thumbnailBlock.cover;
|
|
3424
3424
|
return We(() => {
|
|
3425
3425
|
o === "close" && l(!1), o === "open" && l(!0);
|
|
3426
|
-
}, [o]), /* @__PURE__ */
|
|
3426
|
+
}, [o]), /* @__PURE__ */ q(et, { children: [
|
|
3427
3427
|
/* @__PURE__ */ s(
|
|
3428
3428
|
"img",
|
|
3429
3429
|
{
|
|
@@ -3448,7 +3448,7 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, sp = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: a, isEditor: r, metadata: c }) => {
|
|
3450
3450
|
var Ce;
|
|
3451
|
-
const { widthSettings: l, fontSettings: d, letterSpacing: p, textAlign: f, wordSpacing: x, fontSizeLineHeight: S, textAppearance: g, color: y } = i.imageCaption ?? {}, [w, $] = le(0), [I, E] = le(0), [N, v] = le(!1), [H, M] = le(!1), [C, j] = le({}), h = ue(null), P = ue(null), k = ue(null), z = ue(!1), ne = ue(null), ee = ue(null), J = ue(null), O = ue(null), F = ue(!1), T = ue(null), [L, V] = le(!1), { appear:
|
|
3451
|
+
const { widthSettings: l, fontSettings: d, letterSpacing: p, textAlign: f, wordSpacing: x, fontSizeLineHeight: S, textAppearance: g, color: y } = i.imageCaption ?? {}, [w, $] = le(0), [I, E] = le(0), [N, v] = le(!1), [H, M] = le(!1), [C, j] = le({}), h = ue(null), P = ue(null), k = ue(null), z = ue(!1), ne = ue(null), ee = ue(null), J = ue(null), O = ue(null), F = ue(!1), T = ue(null), [L, V] = le(!1), { appear: G, triggers: Z, slider: W, thumbnail: ye, controls: m, area: he, caption: re, layout: we } = o.lightboxBlock, { appearClass: He, backdropAppearClass: se, backdropDisappearClass: xe, disappearClass: K } = rp(G.type, G.direction), be = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
We(() => {
|
|
3453
3453
|
const _ = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
@@ -3652,12 +3652,12 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3652
3652
|
const ve = {
|
|
3653
3653
|
backgroundColor: he.color,
|
|
3654
3654
|
backdropFilter: `blur(${he.blur}px)`,
|
|
3655
|
-
animationDuration: `${parseInt(
|
|
3655
|
+
animationDuration: `${parseInt(G.duration)}ms`,
|
|
3656
3656
|
animationTimingFunction: "ease",
|
|
3657
3657
|
animationFillMode: "both"
|
|
3658
3658
|
};
|
|
3659
3659
|
return typeof document > "u" || !document.getElementById(a) ? null : yo(
|
|
3660
|
-
/* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ q(et, { children: [
|
|
3661
3661
|
/* @__PURE__ */ s(
|
|
3662
3662
|
"div",
|
|
3663
3663
|
{
|
|
@@ -3669,13 +3669,13 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
3671
|
),
|
|
3672
|
-
/* @__PURE__ */
|
|
3672
|
+
/* @__PURE__ */ q(
|
|
3673
3673
|
"div",
|
|
3674
3674
|
{
|
|
3675
3675
|
ref: r ? ne : null,
|
|
3676
3676
|
className: ct(Pe.contentStyle, N ? K : He, { [Pe.editor]: r }, { [Pe.hidden]: !e }),
|
|
3677
3677
|
style: {
|
|
3678
|
-
animationDuration: `${parseInt(
|
|
3678
|
+
animationDuration: `${parseInt(G.duration)}ms`,
|
|
3679
3679
|
animationTimingFunction: "ease",
|
|
3680
3680
|
animationFillMode: "both"
|
|
3681
3681
|
},
|
|
@@ -3731,13 +3731,13 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3731
3731
|
},
|
|
3732
3732
|
I
|
|
3733
3733
|
),
|
|
3734
|
-
m.isActive && /* @__PURE__ */
|
|
3734
|
+
m.isActive && /* @__PURE__ */ q(et, { children: [
|
|
3735
3735
|
/* @__PURE__ */ s(
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
3738
|
className: ct(Pe.arrow, { [Pe.arrowVertical]: W.direction === "vert" }),
|
|
3739
3739
|
style: { color: m.color, "--arrow-hover-color": m.hover },
|
|
3740
|
-
children: /* @__PURE__ */
|
|
3740
|
+
children: /* @__PURE__ */ q(
|
|
3741
3741
|
"button",
|
|
3742
3742
|
{
|
|
3743
3743
|
className: Pe.arrowInner,
|
|
@@ -3768,7 +3768,7 @@ const ap = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3768
3768
|
{
|
|
3769
3769
|
className: ct(Pe.arrow, Pe.nextArrow, { [Pe.arrowVertical]: W.direction === "vert" }),
|
|
3770
3770
|
style: { color: m.color, "--arrow-hover-color": m.hover },
|
|
3771
|
-
children: /* @__PURE__ */
|
|
3771
|
+
children: /* @__PURE__ */ q(
|
|
3772
3772
|
"button",
|
|
3773
3773
|
{
|
|
3774
3774
|
className: Pe.arrowInner,
|
|
@@ -5229,7 +5229,7 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5229
5229
|
inputLineHeight: T,
|
|
5230
5230
|
inputLetterSpacing: L,
|
|
5231
5231
|
inputWordSpacing: V,
|
|
5232
|
-
inputTextAppearance:
|
|
5232
|
+
inputTextAppearance: G,
|
|
5233
5233
|
buttonFontSettings: Z,
|
|
5234
5234
|
buttonFontSize: W,
|
|
5235
5235
|
buttonLineHeight: ye,
|
|
@@ -5261,7 +5261,7 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5261
5261
|
lineHeight: T,
|
|
5262
5262
|
letterSpacing: L ?? 0,
|
|
5263
5263
|
wordSpacing: V ?? 0,
|
|
5264
|
-
textAppearance:
|
|
5264
|
+
textAppearance: G,
|
|
5265
5265
|
color: M
|
|
5266
5266
|
}, me = xn(nn(X, t)), de = Y(N ?? 0, t), fe = Y(
|
|
5267
5267
|
(T ?? F ?? 0.01) + ((v == null ? void 0 : v.top) ?? 0) + ((v == null ? void 0 : v.bottom) ?? 0) + (d === "C" ? N ?? 0 : (N ?? 0) * 2),
|
|
@@ -5331,13 +5331,13 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5331
5331
|
errorColor: ee
|
|
5332
5332
|
}, up, pp, Q), [Xe, dt] = le(
|
|
5333
5333
|
() => Object.fromEntries(U.map((Ke) => [Ke.name, ""]))
|
|
5334
|
-
), [yt, lt] = le("idle"), [ut, Rt] = le(null), rt = a === "success" ? "success" : a === "error" ? "error" : yt,
|
|
5334
|
+
), [yt, lt] = le("idle"), [ut, Rt] = le(null), rt = a === "success" ? "success" : a === "error" ? "error" : yt, Ge = a === "error" ? _ : ut, vt = a === "filled", xt = Ne(() => {
|
|
5335
5335
|
if (!vt) return Xe;
|
|
5336
5336
|
let Ke = null;
|
|
5337
5337
|
for (const it of U)
|
|
5338
5338
|
(Xe[it.name] ?? "").trim().length > 0 || (Ke = Ke ?? { ...Xe }, Ke[it.name] = "Filled");
|
|
5339
5339
|
return Ke ?? Xe;
|
|
5340
|
-
}, [Xe, vt, U]), pt = rt === "error" ? Zo(U, xt) : null,
|
|
5340
|
+
}, [Xe, vt, U]), pt = rt === "error" ? Zo(U, xt) : null, qt = `${a && a !== "default" ? `${l}-state-${a}` : ""}`.trim(), at = o == null ? void 0 : o.submitUrl, Ot = (Ke, it) => {
|
|
5341
5341
|
dt((Ve) => ({ ...Ve, [Ke]: it }));
|
|
5342
5342
|
}, kt = async (Ke) => {
|
|
5343
5343
|
if (Ke.preventDefault(), !c) return;
|
|
@@ -5373,15 +5373,15 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5373
5373
|
lt("error"), Rt(ht instanceof Error ? ht.message : "Something went wrong");
|
|
5374
5374
|
}
|
|
5375
5375
|
};
|
|
5376
|
-
return /* @__PURE__ */
|
|
5376
|
+
return /* @__PURE__ */ q("div", { className: `${l}-wrapper ${l}-type-${d} ${qt}`.trim(), style: ot, children: [
|
|
5377
5377
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: cp(l) } }),
|
|
5378
|
-
/* @__PURE__ */
|
|
5378
|
+
/* @__PURE__ */ q(
|
|
5379
5379
|
"form",
|
|
5380
5380
|
{
|
|
5381
5381
|
onSubmit: kt,
|
|
5382
5382
|
className: `${l}-form`,
|
|
5383
5383
|
children: [
|
|
5384
|
-
/* @__PURE__ */ s("div", { className: `${l}-fields`, children: U.map((Ke, it) => /* @__PURE__ */
|
|
5384
|
+
/* @__PURE__ */ s("div", { className: `${l}-fields`, children: U.map((Ke, it) => /* @__PURE__ */ q(Gn.Fragment, { children: [
|
|
5385
5385
|
it > 0 && /* @__PURE__ */ s(
|
|
5386
5386
|
"div",
|
|
5387
5387
|
{
|
|
@@ -5390,7 +5390,7 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5390
5390
|
style: { height: Y(g ?? 0, t) }
|
|
5391
5391
|
}
|
|
5392
5392
|
),
|
|
5393
|
-
/* @__PURE__ */
|
|
5393
|
+
/* @__PURE__ */ q("div", { className: `${l}-field-group${R ? ` ${l}-labeled` : ""}`, children: [
|
|
5394
5394
|
R && /* @__PURE__ */ s("span", { className: `${l}-field-label`, style: ie ? { ...ie, lineHeight: ie.fontSize } : void 0, children: Ke.label || Ke.name }),
|
|
5395
5395
|
Ke.type === "textarea" ? /* @__PURE__ */ s(
|
|
5396
5396
|
"textarea",
|
|
@@ -5484,7 +5484,7 @@ function dp({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5484
5484
|
className: `${l}-error`,
|
|
5485
5485
|
style: { ...Be },
|
|
5486
5486
|
role: "alert",
|
|
5487
|
-
children: pt ??
|
|
5487
|
+
children: pt ?? Ge ?? _
|
|
5488
5488
|
}
|
|
5489
5489
|
)
|
|
5490
5490
|
] });
|
|
@@ -7033,10 +7033,10 @@ const bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7033
7033
|
inputPadding: T,
|
|
7034
7034
|
buttonPadding: L,
|
|
7035
7035
|
successMessage: V = "Thanks for subscribing!",
|
|
7036
|
-
errorMessage:
|
|
7036
|
+
errorMessage: G = "Please, fill all required fields."
|
|
7037
7037
|
} = e, Z = c.slice(0, Math.min(p, c.length)), [W, ye] = le(
|
|
7038
7038
|
() => Object.fromEntries(Z.map((te) => [te.name, ""]))
|
|
7039
|
-
), [m, he] = le("idle"), [re, we] = le(null), He = o === "success" ? "success" : o === "error" ? "error" : m, se = o === "error" ?
|
|
7039
|
+
), [m, he] = le("idle"), [re, we] = le(null), He = o === "success" ? "success" : o === "error" ? "error" : m, se = o === "error" ? G : re, xe = o === "filled", K = Ne(() => {
|
|
7040
7040
|
if (!xe) return W;
|
|
7041
7041
|
let te = null;
|
|
7042
7042
|
for (const ie of Z)
|
|
@@ -7125,9 +7125,9 @@ const bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7125
7125
|
he("error"), we(Be instanceof Error ? Be.message : "Something went wrong");
|
|
7126
7126
|
}
|
|
7127
7127
|
};
|
|
7128
|
-
return /* @__PURE__ */
|
|
7128
|
+
return /* @__PURE__ */ q("div", { className: `${a}-wrapper ${Ie}`.trim(), style: Ee, children: [
|
|
7129
7129
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: vp(a) } }),
|
|
7130
|
-
/* @__PURE__ */
|
|
7130
|
+
/* @__PURE__ */ q(
|
|
7131
7131
|
"form",
|
|
7132
7132
|
{
|
|
7133
7133
|
onSubmit: Me,
|
|
@@ -7210,7 +7210,7 @@ const bp = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7210
7210
|
className: `${a}-error`,
|
|
7211
7211
|
style: { ...fe },
|
|
7212
7212
|
role: "alert",
|
|
7213
|
-
children: be ?? se ??
|
|
7213
|
+
children: be ?? se ?? G
|
|
7214
7214
|
}
|
|
7215
7215
|
)
|
|
7216
7216
|
] });
|
|
@@ -8582,7 +8582,7 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8582
8582
|
}, zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
8583
8583
|
const { prefix: a } = hn(), [r, c] = le(0), l = r > 0 ? Math.round(r) : 0, d = Ne(() => Rp(a, l), [a, l]), { speed: p, direction: f, pauseOnHover: x, gap: S, imageMaxWidth: g, imageMaxHeight: y, hoverEffect: w } = e, $ = Ne(() => Fp(e.imageFit), [e.imageFit]), I = (t == null ? void 0 : t.length) ?? 0, E = !!o, N = !n || !!i, v = N && w !== "off" && w !== "randomize" ? `${a}-image-hover-${w}` : void 0, H = n ? !!i : !0, C = ((t == null ? void 0 : t.length) ?? 0) > 0 && (H || !!n), j = Math.max(0, p) * Ep, h = (pe) => Y(pe, n ?? !1), P = ue(null), k = ue(null), z = ue(null), [ne, ee] = le(0), J = H && x === "on", [O, F] = le(!1), [T, L] = le({}), V = ue(T);
|
|
8584
8584
|
V.current = T;
|
|
8585
|
-
const
|
|
8585
|
+
const G = ue(null), Z = ue(0), W = ue(null), ye = Ne(() => (t ?? []).map((pe) => {
|
|
8586
8586
|
var ce;
|
|
8587
8587
|
return ((ce = pe.image) == null ? void 0 : ce.url) ?? "";
|
|
8588
8588
|
}).join("\0"), [t]), [m, he] = le(kr), re = Ne(() => {
|
|
@@ -8596,7 +8596,7 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8596
8596
|
[t]
|
|
8597
8597
|
), He = C ? kp : 1;
|
|
8598
8598
|
zt(() => {
|
|
8599
|
-
Z.current = 0, L({}),
|
|
8599
|
+
Z.current = 0, L({}), G.current = null, he(kr), c(0);
|
|
8600
8600
|
}, [ye]), We(() => {
|
|
8601
8601
|
if (!N || w !== "randomize") return;
|
|
8602
8602
|
const pe = P.current;
|
|
@@ -8636,8 +8636,8 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8636
8636
|
const pe = P.current, ce = z.current;
|
|
8637
8637
|
if (!pe || !ce) return;
|
|
8638
8638
|
const Ie = { current: 0 }, Ae = () => {
|
|
8639
|
-
const _ = pe.getBoundingClientRect().width || pe.offsetWidth, Q = Np(ce), R =
|
|
8640
|
-
|
|
8639
|
+
const _ = pe.getBoundingClientRect().width || pe.offsetWidth, Q = Np(ce), R = G.current, U = typeof R == "number" && Math.abs(R - Q) <= 0.25;
|
|
8640
|
+
G.current = Q;
|
|
8641
8641
|
let X = m, me = 0;
|
|
8642
8642
|
if ((H || n) && I > 0 && _ > 0) {
|
|
8643
8643
|
const Ee = rs(ce, I);
|
|
@@ -8713,7 +8713,7 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8713
8713
|
});
|
|
8714
8714
|
}, [t]), ge = (pe, ce, Ie, Ae) => {
|
|
8715
8715
|
const ve = N && w === "randomize" && $.display === "cover" ? T[Ie] ?? pe : pe, Ce = `max(${h(S)}, ${Mp}px)`, _ = `calc(-0.5 * (${Ce} + ${h(S)}))`;
|
|
8716
|
-
return /* @__PURE__ */
|
|
8716
|
+
return /* @__PURE__ */ q(
|
|
8717
8717
|
"div",
|
|
8718
8718
|
{
|
|
8719
8719
|
className: `${a}-marquee-card`,
|
|
@@ -8757,7 +8757,7 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8757
8757
|
};
|
|
8758
8758
|
if (C) {
|
|
8759
8759
|
const pe = H ? J && O ? "paused" : "running" : "paused", ce = l > 0 && j > 0 ? l / j * 1e3 : 0, Ie = `${Math.max(0, ce) / 1e3}s`;
|
|
8760
|
-
return /* @__PURE__ */
|
|
8760
|
+
return /* @__PURE__ */ q(
|
|
8761
8761
|
"div",
|
|
8762
8762
|
{
|
|
8763
8763
|
ref: P,
|
|
@@ -8807,7 +8807,7 @@ const Ep = 30, Mp = 20, kr = 3, Pp = 12, Ap = 32, kp = 3, Wp = (e) => {
|
|
|
8807
8807
|
}
|
|
8808
8808
|
);
|
|
8809
8809
|
}
|
|
8810
|
-
return /* @__PURE__ */
|
|
8810
|
+
return /* @__PURE__ */ q("div", { ref: P, className: `${a}-wrapper`, children: [
|
|
8811
8811
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: d } }),
|
|
8812
8812
|
/* @__PURE__ */ s(
|
|
8813
8813
|
"div",
|
|
@@ -9872,8 +9872,8 @@ function as(e) {
|
|
|
9872
9872
|
}
|
|
9873
9873
|
`;
|
|
9874
9874
|
}
|
|
9875
|
-
const
|
|
9876
|
-
const { prefix: a } = hn(), { align: r, speed: c, direction: l, pauseOnHover: d, gap: p, cardWidth: f, corners: x, stroke: S, strokeColor: g, bgColor: y, padding: w, logoMarginTop: $, logoWidth: I, logoHeight: E, captionMarginTop: N } = e, v = !!o, H = ((t == null ? void 0 : t.length) ?? 0) > 0, M = c > 0 && (!n || i), C = H && (M || n), j = Math.max(0, c) *
|
|
9875
|
+
const qp = 30, ss = 2, Gp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
9876
|
+
const { prefix: a } = hn(), { align: r, speed: c, direction: l, pauseOnHover: d, gap: p, cardWidth: f, corners: x, stroke: S, strokeColor: g, bgColor: y, padding: w, logoMarginTop: $, logoWidth: I, logoHeight: E, captionMarginTop: N } = e, v = !!o, H = ((t == null ? void 0 : t.length) ?? 0) > 0, M = c > 0 && (!n || i), C = H && (M || n), j = Math.max(0, c) * qp, h = (R) => Y(R, n ?? !1), P = ue(null), k = ue(null), z = ue(null), [ne, ee] = le(0), [J, O] = le(0), [F, T] = le(0), L = M && d === "on", [V, G] = le(!1), Z = ue(null), [W, ye] = le(0), [m, he] = le(0), re = ue(null), we = (R) => {
|
|
9877
9877
|
var X, me, de, fe, Ee;
|
|
9878
9878
|
return {
|
|
9879
9879
|
fontSettings: {
|
|
@@ -9946,9 +9946,9 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9946
9946
|
};
|
|
9947
9947
|
}, [C, K, t, n, p, f, w, S, x, I, E, W, m]);
|
|
9948
9948
|
const be = () => {
|
|
9949
|
-
L &&
|
|
9949
|
+
L && G(!0);
|
|
9950
9950
|
}, ge = () => {
|
|
9951
|
-
L &&
|
|
9951
|
+
L && G(!1);
|
|
9952
9952
|
}, pe = Ne(() => {
|
|
9953
9953
|
switch (r) {
|
|
9954
9954
|
case "center":
|
|
@@ -9970,7 +9970,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9970
9970
|
return "left";
|
|
9971
9971
|
}
|
|
9972
9972
|
}, [r]), Ie = $e(
|
|
9973
|
-
(R, U, X, me) => /* @__PURE__ */
|
|
9973
|
+
(R, U, X, me) => /* @__PURE__ */ q(
|
|
9974
9974
|
"div",
|
|
9975
9975
|
{
|
|
9976
9976
|
style: {
|
|
@@ -10010,7 +10010,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10010
10010
|
), Ae = $e(
|
|
10011
10011
|
(R, U, X) => {
|
|
10012
10012
|
var me, de, fe;
|
|
10013
|
-
return /* @__PURE__ */
|
|
10013
|
+
return /* @__PURE__ */ q(
|
|
10014
10014
|
"div",
|
|
10015
10015
|
{
|
|
10016
10016
|
style: {
|
|
@@ -10025,7 +10025,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10025
10025
|
},
|
|
10026
10026
|
children: [
|
|
10027
10027
|
/* @__PURE__ */ s("div", { className: `${a}-cover`, style: { background: y } }),
|
|
10028
|
-
/* @__PURE__ */
|
|
10028
|
+
/* @__PURE__ */ q(
|
|
10029
10029
|
"div",
|
|
10030
10030
|
{
|
|
10031
10031
|
className: `${a}-elements-overlay`,
|
|
@@ -10037,7 +10037,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10037
10037
|
"text",
|
|
10038
10038
|
X != null && X.dataMeasureAttrs ? { dataMeasureKind: "text" } : typeof (X == null ? void 0 : X.textMinHeightPx) == "number" && X.textMinHeightPx > 0 ? { minHeightPx: X.textMinHeightPx } : void 0
|
|
10039
10039
|
),
|
|
10040
|
-
/* @__PURE__ */
|
|
10040
|
+
/* @__PURE__ */ q(
|
|
10041
10041
|
"div",
|
|
10042
10042
|
{
|
|
10043
10043
|
style: {
|
|
@@ -10137,7 +10137,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10137
10137
|
},
|
|
10138
10138
|
children: (t ?? []).map((R, U) => Ae(R, `measure-${U}`, { dataMeasureAttrs: !0 }))
|
|
10139
10139
|
}
|
|
10140
|
-
) : null, Q = (R, U) => /* @__PURE__ */
|
|
10140
|
+
) : null, Q = (R, U) => /* @__PURE__ */ q(
|
|
10141
10141
|
"div",
|
|
10142
10142
|
{
|
|
10143
10143
|
style: {
|
|
@@ -10173,7 +10173,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10173
10173
|
);
|
|
10174
10174
|
if (C) {
|
|
10175
10175
|
const R = M ? L && V ? "paused" : "running" : "paused";
|
|
10176
|
-
return /* @__PURE__ */
|
|
10176
|
+
return /* @__PURE__ */ q(
|
|
10177
10177
|
"div",
|
|
10178
10178
|
{
|
|
10179
10179
|
ref: P,
|
|
@@ -10233,7 +10233,7 @@ const Gp = 30, ss = 2, qp = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10233
10233
|
}
|
|
10234
10234
|
);
|
|
10235
10235
|
}
|
|
10236
|
-
return /* @__PURE__ */
|
|
10236
|
+
return /* @__PURE__ */ q("div", { className: `${a}-wrapper`, children: [
|
|
10237
10237
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: as(a) } }),
|
|
10238
10238
|
_,
|
|
10239
10239
|
/* @__PURE__ */ s(
|
|
@@ -11342,7 +11342,7 @@ type TestimonialsSettings = {
|
|
|
11342
11342
|
]
|
|
11343
11343
|
}
|
|
11344
11344
|
}, Xp = {
|
|
11345
|
-
element:
|
|
11345
|
+
element: Gp,
|
|
11346
11346
|
id: "testimonials",
|
|
11347
11347
|
name: "Eliana",
|
|
11348
11348
|
category: "testimonials",
|
|
@@ -11546,7 +11546,7 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11546
11546
|
}, ee = ne("text"), J = ne("caption"), O = r.length > 1 && r.some((se) => {
|
|
11547
11547
|
var xe, K;
|
|
11548
11548
|
return (((xe = se.text) == null ? void 0 : xe.length) ?? 0) > 0 || (((K = se.caption) == null ? void 0 : K.length) ?? 0) > 0;
|
|
11549
|
-
}), F = ue(null), [T, L] = le(0), [V,
|
|
11549
|
+
}), F = ue(null), [T, L] = le(0), [V, G] = le(0), Z = e.controls ?? { mode: "Off", icon: null }, W = r.length > 1, ye = $e((se, xe) => !W || xe === se ? se : (j.current && window.clearTimeout(j.current), H(se), C(!0), j.current = window.setTimeout(() => {
|
|
11550
11550
|
H(null), C(!1), j.current = null;
|
|
11551
11551
|
}, 300), xe), [W]), m = $e(() => {
|
|
11552
11552
|
W && N((se) => ye(se, (se - 1 + r.length) % r.length));
|
|
@@ -11567,8 +11567,8 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11567
11567
|
const re = (se, xe) => {
|
|
11568
11568
|
var ce, Ie, Ae, ve;
|
|
11569
11569
|
const K = xe == null ? void 0 : xe.textMinHeightPx, be = xe == null ? void 0 : xe.captionMinHeightPx, ge = xe == null ? void 0 : xe.dataMeasureAttrs, pe = o && !(xe != null && xe.dataMeasureAttrs) && !(xe != null && xe.hideControls);
|
|
11570
|
-
return /* @__PURE__ */
|
|
11571
|
-
se.text && /* @__PURE__ */
|
|
11570
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
11571
|
+
se.text && /* @__PURE__ */ q("div", { style: { display: "flex", flexDirection: "column", alignItems: h, width: "100%" }, children: [
|
|
11572
11572
|
/* @__PURE__ */ s(
|
|
11573
11573
|
"div",
|
|
11574
11574
|
{
|
|
@@ -11591,7 +11591,7 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11591
11591
|
}
|
|
11592
11592
|
)
|
|
11593
11593
|
] }),
|
|
11594
|
-
/* @__PURE__ */
|
|
11594
|
+
/* @__PURE__ */ q("div", { style: { display: "flex", flexDirection: "column", alignItems: h, width: "100%" }, children: [
|
|
11595
11595
|
/* @__PURE__ */ s(
|
|
11596
11596
|
"div",
|
|
11597
11597
|
{
|
|
@@ -11610,7 +11610,7 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11610
11610
|
}
|
|
11611
11611
|
) })
|
|
11612
11612
|
] }),
|
|
11613
|
-
se.caption && /* @__PURE__ */
|
|
11613
|
+
se.caption && /* @__PURE__ */ q("div", { style: { display: "flex", flexDirection: "column", alignItems: h, width: "100%" }, children: [
|
|
11614
11614
|
/* @__PURE__ */ s(
|
|
11615
11615
|
"div",
|
|
11616
11616
|
{
|
|
@@ -11635,7 +11635,7 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11635
11635
|
] })
|
|
11636
11636
|
] });
|
|
11637
11637
|
}, we = $e((se) => {
|
|
11638
|
-
L(se.maxTextPx),
|
|
11638
|
+
L(se.maxTextPx), G(se.maxCaptionPx);
|
|
11639
11639
|
}, []);
|
|
11640
11640
|
if (zt(() => {
|
|
11641
11641
|
if (!O) {
|
|
@@ -11654,9 +11654,9 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11654
11654
|
};
|
|
11655
11655
|
}, [O, we, t]), !k) return /* @__PURE__ */ s(et, {});
|
|
11656
11656
|
const He = O ? { textMinHeightPx: T, captionMinHeightPx: V } : void 0;
|
|
11657
|
-
return /* @__PURE__ */ s(et, { children: /* @__PURE__ */
|
|
11657
|
+
return /* @__PURE__ */ s(et, { children: /* @__PURE__ */ q("div", { className: `${a}-container`, children: [
|
|
11658
11658
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Yp(a) } }),
|
|
11659
|
-
/* @__PURE__ */
|
|
11659
|
+
/* @__PURE__ */ q(
|
|
11660
11660
|
"div",
|
|
11661
11661
|
{
|
|
11662
11662
|
className: `${a}-wrapper`,
|
|
@@ -11680,14 +11680,14 @@ const Jp = 3e3, Zp = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
11680
11680
|
children: r.map((se, xe) => /* @__PURE__ */ s("div", { style: { width: "100%" }, children: re(se, { dataMeasureAttrs: !0 }) }, xe))
|
|
11681
11681
|
}
|
|
11682
11682
|
),
|
|
11683
|
-
/* @__PURE__ */
|
|
11683
|
+
/* @__PURE__ */ q("div", { className: `${a}-fade-stack`, children: [
|
|
11684
11684
|
z && M && /* @__PURE__ */ s("div", { className: ct(`${a}-fade-item-prev`, `${a}-fade-out`), children: re(z, { ...He, hideControls: !0 }) }),
|
|
11685
11685
|
/* @__PURE__ */ s("div", { className: ct(`${a}-fade-item-current`, M ? `${a}-fade-in` : void 0), children: re(k, He) })
|
|
11686
11686
|
] })
|
|
11687
11687
|
]
|
|
11688
11688
|
}
|
|
11689
11689
|
),
|
|
11690
|
-
Z.mode === "On" && /* @__PURE__ */
|
|
11690
|
+
Z.mode === "On" && /* @__PURE__ */ q("div", { className: `${a}-controls`, children: [
|
|
11691
11691
|
/* @__PURE__ */ s(
|
|
11692
11692
|
"div",
|
|
11693
11693
|
{
|
|
@@ -13187,15 +13187,15 @@ function gm({
|
|
|
13187
13187
|
);
|
|
13188
13188
|
}
|
|
13189
13189
|
function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext: a, counterClassName: r, counterStyle: c }) {
|
|
13190
|
-
const l = n === "cover", d = ue(null), p = ue(null), f = ue(null), x = ue(null), S = ue(0), g = ue(0), y = ue("none"), w = ue(!1), $ = ue(!1), I = ue(!1), E = ue(null), [N, v] = le(null), [H, M] = le("opening"), [C, j] = le(0), [h, P] = le(0), [k, z] = le(!1), [ne, ee] = le(!1), [J, O] = le(!1), F = ue(t), T = e[t], L = T ? eo(T) : !1, V = h !== 0 || k,
|
|
13190
|
+
const l = n === "cover", d = ue(null), p = ue(null), f = ue(null), x = ue(null), S = ue(0), g = ue(0), y = ue("none"), w = ue(!1), $ = ue(!1), I = ue(!1), E = ue(null), [N, v] = le(null), [H, M] = le("opening"), [C, j] = le(0), [h, P] = le(0), [k, z] = le(!1), [ne, ee] = le(!1), [J, O] = le(!1), F = ue(t), T = e[t], L = T ? eo(T) : !1, V = h !== 0 || k, G = $e((ce) => {
|
|
13191
13191
|
I.current = ce, z(ce);
|
|
13192
13192
|
}, []), Z = $e(() => {
|
|
13193
13193
|
E.current !== null && (window.clearTimeout(E.current), E.current = null);
|
|
13194
13194
|
}, []), W = $e(() => {
|
|
13195
13195
|
Z(), E.current = window.setTimeout(() => {
|
|
13196
|
-
Z(),
|
|
13196
|
+
Z(), G(!1);
|
|
13197
13197
|
}, Wn + 32);
|
|
13198
|
-
}, [Z,
|
|
13198
|
+
}, [Z, G]), ye = $e(() => {
|
|
13199
13199
|
const ce = p.current, Ie = f.current;
|
|
13200
13200
|
if (!ce) return;
|
|
13201
13201
|
const Ae = ce.getBoundingClientRect(), ve = Ae.width, Ce = Ae.height;
|
|
@@ -13238,10 +13238,10 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13238
13238
|
Z();
|
|
13239
13239
|
}, [Z]), zt(() => {
|
|
13240
13240
|
if (F.current === t) return;
|
|
13241
|
-
Z(), j(0), P(0),
|
|
13241
|
+
Z(), j(0), P(0), G(!1), O(!1), ee(!1), S.current = 0, g.current = 0, y.current = "none", w.current = !1, x.current = null, $.current = !1;
|
|
13242
13242
|
const ce = p.current;
|
|
13243
13243
|
ce && v(Fo(ce)), F.current = t;
|
|
13244
|
-
}, [t,
|
|
13244
|
+
}, [t, G, Z]), We(() => {
|
|
13245
13245
|
if (H !== "open") return;
|
|
13246
13246
|
const ce = () => {
|
|
13247
13247
|
const Q = (R) => {
|
|
@@ -13257,7 +13257,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13257
13257
|
Ie(Q);
|
|
13258
13258
|
return;
|
|
13259
13259
|
}
|
|
13260
|
-
|
|
13260
|
+
G(!0), P(0), W();
|
|
13261
13261
|
}, ve = (Q) => {
|
|
13262
13262
|
if (Q.touches.length !== 1 || I.current) return;
|
|
13263
13263
|
const R = Q.touches[0];
|
|
@@ -13298,7 +13298,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13298
13298
|
return document.addEventListener("touchstart", ve, { passive: !0 }), document.addEventListener("touchmove", Ce, { passive: !1 }), document.addEventListener("touchend", _), document.addEventListener("touchcancel", _), () => {
|
|
13299
13299
|
document.removeEventListener("touchstart", ve), document.removeEventListener("touchmove", Ce), document.removeEventListener("touchend", _), document.removeEventListener("touchcancel", _);
|
|
13300
13300
|
};
|
|
13301
|
-
}, [H, e.length, a, o,
|
|
13301
|
+
}, [H, e.length, a, o, G, W]), We(() => {
|
|
13302
13302
|
const ce = (Ie) => {
|
|
13303
13303
|
Ie.key === "Escape" && (Ie.preventDefault(), Ie.stopPropagation(), H !== "closing" && M("closing"));
|
|
13304
13304
|
};
|
|
@@ -13329,8 +13329,8 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13329
13329
|
}
|
|
13330
13330
|
ce.currentTarget.style.cursor = Ae < Ie.width / 2 ? "w-resize" : "e-resize";
|
|
13331
13331
|
}, K = $e((ce) => {
|
|
13332
|
-
ce.propertyName !== "transform" || !I.current || (Z(),
|
|
13333
|
-
}, [Z,
|
|
13332
|
+
ce.propertyName !== "transform" || !I.current || (Z(), G(!1));
|
|
13333
|
+
}, [Z, G]), be = V ? `translateX(${h}px)` : C > 0 ? `translateY(${C}px)` : void 0, ge = {
|
|
13334
13334
|
position: "fixed",
|
|
13335
13335
|
top: N == null ? void 0 : N.top,
|
|
13336
13336
|
left: N == null ? void 0 : N.left,
|
|
@@ -13350,7 +13350,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13350
13350
|
width: N.width / 2,
|
|
13351
13351
|
zIndex: 9999
|
|
13352
13352
|
} : null;
|
|
13353
|
-
return /* @__PURE__ */
|
|
13353
|
+
return /* @__PURE__ */ q(
|
|
13354
13354
|
"div",
|
|
13355
13355
|
{
|
|
13356
13356
|
ref: d,
|
|
@@ -13390,7 +13390,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13390
13390
|
alignItems: "center",
|
|
13391
13391
|
justifyContent: "center"
|
|
13392
13392
|
},
|
|
13393
|
-
children: l ? /* @__PURE__ */
|
|
13393
|
+
children: l ? /* @__PURE__ */ q(et, { children: [
|
|
13394
13394
|
/* @__PURE__ */ s("div", { ref: p, style: { position: "absolute", inset: 0 } }),
|
|
13395
13395
|
/* @__PURE__ */ s(
|
|
13396
13396
|
"div",
|
|
@@ -13410,14 +13410,14 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13410
13410
|
pointerEvents: "none",
|
|
13411
13411
|
zIndex: 9999
|
|
13412
13412
|
},
|
|
13413
|
-
children: e.length > 1 && /* @__PURE__ */
|
|
13413
|
+
children: e.length > 1 && /* @__PURE__ */ q("p", { className: r, style: c, children: [
|
|
13414
13414
|
t + 1,
|
|
13415
13415
|
" / ",
|
|
13416
13416
|
e.length
|
|
13417
13417
|
] })
|
|
13418
13418
|
}
|
|
13419
13419
|
)
|
|
13420
|
-
] }) : /* @__PURE__ */
|
|
13420
|
+
] }) : /* @__PURE__ */ q(et, { children: [
|
|
13421
13421
|
/* @__PURE__ */ s("div", { style: { height: "10%" } }),
|
|
13422
13422
|
/* @__PURE__ */ s(
|
|
13423
13423
|
"div",
|
|
@@ -13444,7 +13444,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13444
13444
|
opacity: he ? 1 : 0,
|
|
13445
13445
|
transition: `opacity ${Wn}ms ${si}`
|
|
13446
13446
|
},
|
|
13447
|
-
children: e.length > 1 && /* @__PURE__ */
|
|
13447
|
+
children: e.length > 1 && /* @__PURE__ */ q("p", { className: r, style: c, children: [
|
|
13448
13448
|
t + 1,
|
|
13449
13449
|
" / ",
|
|
13450
13450
|
e.length
|
|
@@ -13479,7 +13479,7 @@ function hm({ items: e, index: t, imageDisplay: n, onClose: i, onPrev: o, onNext
|
|
|
13479
13479
|
},
|
|
13480
13480
|
`${t}-${T.url}`
|
|
13481
13481
|
)),
|
|
13482
|
-
he && pe && e.length > 1 && !L && /* @__PURE__ */
|
|
13482
|
+
he && pe && e.length > 1 && !L && /* @__PURE__ */ q(et, { children: [
|
|
13483
13483
|
/* @__PURE__ */ s(
|
|
13484
13484
|
"div",
|
|
13485
13485
|
{
|
|
@@ -13554,7 +13554,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13554
13554
|
subtitleFontSettings: T,
|
|
13555
13555
|
subtitleFontSize: L,
|
|
13556
13556
|
subtitleLineHeight: V,
|
|
13557
|
-
subtitleLetterSpacing:
|
|
13557
|
+
subtitleLetterSpacing: G,
|
|
13558
13558
|
subtitleWordSpacing: Z,
|
|
13559
13559
|
subtitleTextAppearance: W,
|
|
13560
13560
|
lightboxCounterFontFamily: ye,
|
|
@@ -13589,7 +13589,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13589
13589
|
},
|
|
13590
13590
|
fontSize: L ?? 0.01,
|
|
13591
13591
|
lineHeight: V,
|
|
13592
|
-
letterSpacing:
|
|
13592
|
+
letterSpacing: G ?? 0,
|
|
13593
13593
|
wordSpacing: Z ?? 0,
|
|
13594
13594
|
textAppearance: W,
|
|
13595
13595
|
color: j
|
|
@@ -13629,8 +13629,8 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13629
13629
|
titleColor: C,
|
|
13630
13630
|
subtitleColor: j,
|
|
13631
13631
|
lightboxCounterColor: h
|
|
13632
|
-
}, vm, bm), B = `${r && r !== "default" ? `${d}-state-${r}` : ""}${xe === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), Me = g === 0 ? 1 / 0 : g, te = (t ?? []).slice(0, Me), ie = f.entryWidth ?? 0.2, Re = (w == null ? void 0 : w.display) === "cover", Be = (w == null ? void 0 : w.ratioValue) ?? "1:1", ot = (w == null ? void 0 : w.reversed) ?? !1, [Xe, dt] = Be.split(":").map(Number), ut = `${ot ? dt : Xe} / ${ot ? Xe : dt}`, Rt = f.columnsCount, rt = Y(ie ?? 0, n),
|
|
13633
|
-
width:
|
|
13632
|
+
}, vm, bm), B = `${r && r !== "default" ? `${d}-state-${r}` : ""}${xe === "on hover" && (!n || i) ? ` ${d}-show-text-hover` : ""}`.trim(), Me = g === 0 ? 1 / 0 : g, te = (t ?? []).slice(0, Me), ie = f.entryWidth ?? 0.2, Re = (w == null ? void 0 : w.display) === "cover", Be = (w == null ? void 0 : w.ratioValue) ?? "1:1", ot = (w == null ? void 0 : w.reversed) ?? !1, [Xe, dt] = Be.split(":").map(Number), ut = `${ot ? dt : Xe} / ${ot ? Xe : dt}`, Rt = f.columnsCount, rt = Y(ie ?? 0, n), Ge = rt, vt = !Re && I !== "off", xt = te.length % Rt || Rt, pt = xt < Rt && te.length > 0, Nt = te.length - xt, qt = pt ? Math.floor((Rt - xt) / 2) + 1 : 1, at = {
|
|
13633
|
+
width: Ge,
|
|
13634
13634
|
...Re ? { aspectRatio: ut, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13635
13635
|
}, Ot = `${d}-item-image-wrapper${vt ? ` ${d}-item-image-wrapper-fit-slider` : ""}`.trim(), kt = p === "d" || p === "e" || p === "f", Ke = K === "on", it = `calc(${Y(ie ?? 0, n)} * (${x} / 100))`, Ve = Y(ie * x / 100, n), ht = Re ? {
|
|
13636
13636
|
objectFit: "cover",
|
|
@@ -13669,7 +13669,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13669
13669
|
!n || i || on(!1);
|
|
13670
13670
|
}, [n, i]);
|
|
13671
13671
|
const je = Ne(() => om(d), [d]);
|
|
13672
|
-
return /* @__PURE__ */
|
|
13672
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
13673
13673
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: je } }),
|
|
13674
13674
|
/* @__PURE__ */ s("div", { style: fe, children: /* @__PURE__ */ s(
|
|
13675
13675
|
"div",
|
|
@@ -13685,7 +13685,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13685
13685
|
},
|
|
13686
13686
|
children: te.map((De, mt) => {
|
|
13687
13687
|
var Xt;
|
|
13688
|
-
const _e = ds(De.title), tt = ds(De.subtitle), Ze = (((Xt = De.link) == null ? void 0 : Xt.length) ?? 0) > 0 && y === "off" ? De.link : void 0, _t = Math.floor(mt / Rt) === Math.ceil(te.length / Rt) - 1, Tt = pt && mt >= Nt ? `${
|
|
13688
|
+
const _e = ds(De.title), tt = ds(De.subtitle), Ze = (((Xt = De.link) == null ? void 0 : Xt.length) ?? 0) > 0 && y === "off" ? De.link : void 0, _t = Math.floor(mt / Rt) === Math.ceil(te.length / Rt) - 1, Tt = pt && mt >= Nt ? `${qt + (mt - Nt)}` : void 0, $t = kt ? /* @__PURE__ */ q("div", { className: `${d}-item-text-block`, children: [
|
|
13689
13689
|
_e && /* @__PURE__ */ s("p", { className: R, style: { width: it, ...ce, ...X }, children: De.title }),
|
|
13690
13690
|
_e && /* @__PURE__ */ s(
|
|
13691
13691
|
"div",
|
|
@@ -13710,7 +13710,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13710
13710
|
}
|
|
13711
13711
|
}
|
|
13712
13712
|
)
|
|
13713
|
-
] }) : null, Bt = Ke ? /* @__PURE__ */
|
|
13713
|
+
] }) : null, Bt = Ke ? /* @__PURE__ */ q("div", { className: `${d}-item-title-row`, children: [
|
|
13714
13714
|
!kt && /* @__PURE__ */ s(
|
|
13715
13715
|
"div",
|
|
13716
13716
|
{
|
|
@@ -13734,7 +13734,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13734
13734
|
}
|
|
13735
13735
|
}
|
|
13736
13736
|
)
|
|
13737
|
-
] }) : null, Pt = Ke ? /* @__PURE__ */
|
|
13737
|
+
] }) : null, Pt = Ke ? /* @__PURE__ */ q("div", { className: `${d}-item-subtitle-row`, children: [
|
|
13738
13738
|
!kt && /* @__PURE__ */ s(
|
|
13739
13739
|
"div",
|
|
13740
13740
|
{
|
|
@@ -13758,10 +13758,10 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13758
13758
|
}
|
|
13759
13759
|
}
|
|
13760
13760
|
)
|
|
13761
|
-
] }) : null, Ut = Ze ? /* @__PURE__ */
|
|
13761
|
+
] }) : null, Ut = Ze ? /* @__PURE__ */ q("a", { href: Ze, target: "_blank", className: `${d}-item-text-link`, children: [
|
|
13762
13762
|
Bt,
|
|
13763
13763
|
Pt
|
|
13764
|
-
] }) : /* @__PURE__ */
|
|
13764
|
+
] }) : /* @__PURE__ */ q(et, { children: [
|
|
13765
13765
|
Bt,
|
|
13766
13766
|
Pt
|
|
13767
13767
|
] }), Dt = um(De.gallery), Ht = Dt.filter((gt) => gt.lightboxMedia).map((gt) => gt.lightboxMedia), ln = /* @__PURE__ */ s("div", { className: Ot, style: at, children: Dt.length === 0 ? null : I === "off" ? (() => {
|
|
@@ -13775,7 +13775,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13775
13775
|
onMediaClick: ze && Qt >= 0 ? () => Ue(Ht, Qt) : void 0
|
|
13776
13776
|
}
|
|
13777
13777
|
);
|
|
13778
|
-
})() : /* @__PURE__ */
|
|
13778
|
+
})() : /* @__PURE__ */ q(et, { children: [
|
|
13779
13779
|
vt && Ke && /* @__PURE__ */ s("div", { className: `${d}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Dt.map(({ displayMedia: gt }) => eo(gt) ? /* @__PURE__ */ s("video", { src: gt.url, muted: !0, playsInline: !0 }, `sizer-${gt.url}`) : /* @__PURE__ */ s("img", { src: gt.url, alt: "" }, `sizer-${gt.url}`)) }),
|
|
13780
13780
|
/* @__PURE__ */ s(
|
|
13781
13781
|
Ia,
|
|
@@ -13819,7 +13819,7 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13819
13819
|
},
|
|
13820
13820
|
`${v}-${ie}-${N}-${E}-${an}-${c}`
|
|
13821
13821
|
)
|
|
13822
|
-
] }) }), Ct = kt ? null : /* @__PURE__ */
|
|
13822
|
+
] }) }), Ct = kt ? null : /* @__PURE__ */ q(et, { children: [
|
|
13823
13823
|
/* @__PURE__ */ s(
|
|
13824
13824
|
"div",
|
|
13825
13825
|
{
|
|
@@ -13872,19 +13872,19 @@ function ym({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
13872
13872
|
width: (x ?? 0) > 100 ? `calc(${rt} * (${x} / 100))` : rt,
|
|
13873
13873
|
...Tt && Ke ? { gridColumn: Tt } : {}
|
|
13874
13874
|
},
|
|
13875
|
-
children: Ke ? /* @__PURE__ */ s(et, { children: kt ? /* @__PURE__ */
|
|
13875
|
+
children: Ke ? /* @__PURE__ */ s(et, { children: kt ? /* @__PURE__ */ q(et, { children: [
|
|
13876
13876
|
Ut,
|
|
13877
13877
|
/* @__PURE__ */ s("a", { href: Ze, target: "_blank", className: `${d}-item-image-link`, children: ln })
|
|
13878
|
-
] }) : /* @__PURE__ */
|
|
13878
|
+
] }) : /* @__PURE__ */ q(et, { children: [
|
|
13879
13879
|
/* @__PURE__ */ s("a", { href: Ze, target: "_blank", className: `${d}-item-image-link`, children: ln }),
|
|
13880
13880
|
Ut
|
|
13881
|
-
] }) }) : Ze ? /* @__PURE__ */
|
|
13882
|
-
/* @__PURE__ */
|
|
13881
|
+
] }) }) : Ze ? /* @__PURE__ */ q(et, { children: [
|
|
13882
|
+
/* @__PURE__ */ q("a", { href: Ze, target: "_blank", className: `${d}-item-image-link`, children: [
|
|
13883
13883
|
$t,
|
|
13884
13884
|
ln
|
|
13885
13885
|
] }),
|
|
13886
13886
|
!kt && /* @__PURE__ */ s("a", { href: Ze, target: "_blank", className: `${d}-item-text-link`, children: Ct })
|
|
13887
|
-
] }) : /* @__PURE__ */
|
|
13887
|
+
] }) : /* @__PURE__ */ q(et, { children: [
|
|
13888
13888
|
$t,
|
|
13889
13889
|
ln,
|
|
13890
13890
|
Ct
|
|
@@ -16827,7 +16827,7 @@ function Fm({
|
|
|
16827
16827
|
), V = Ne(
|
|
16828
16828
|
() => Yn(T, z),
|
|
16829
16829
|
[T, z]
|
|
16830
|
-
),
|
|
16830
|
+
), G = Ne(
|
|
16831
16831
|
() => Yn(L, z),
|
|
16832
16832
|
[L, z]
|
|
16833
16833
|
), Z = !!(t.title1 || t.title2 || t.title3), W = $ !== null;
|
|
@@ -16850,9 +16850,9 @@ function Fm({
|
|
|
16850
16850
|
}
|
|
16851
16851
|
const ie = L.findIndex((Re) => Re.prefix === B.prefix);
|
|
16852
16852
|
return {
|
|
16853
|
-
effectiveWidth:
|
|
16854
|
-
resolvedWidth:
|
|
16855
|
-
maxWidth: un(ie,
|
|
16853
|
+
effectiveWidth: G.effective[ie] ?? 0,
|
|
16854
|
+
resolvedWidth: G.resolved[ie] ?? 0,
|
|
16855
|
+
maxWidth: un(ie, G.resolved)
|
|
16856
16856
|
};
|
|
16857
16857
|
}, re = (B, Me, te) => {
|
|
16858
16858
|
if (!j || te === "single-row") {
|
|
@@ -16883,18 +16883,18 @@ function Fm({
|
|
|
16883
16883
|
ne,
|
|
16884
16884
|
B
|
|
16885
16885
|
) + (j ? 0 : p ?? 0), He = () => j ? 0 : p ?? 0, se = (B) => L.slice(0, B).reduce(
|
|
16886
|
-
(Me, te, ie) => Me + (te.marginLeftKey ? ne[te.marginLeftKey] ?? 0 : 0) + (
|
|
16886
|
+
(Me, te, ie) => Me + (te.marginLeftKey ? ne[te.marginLeftKey] ?? 0 : 0) + (G.resolved[ie] ?? 0),
|
|
16887
16887
|
0
|
|
16888
16888
|
), xe = (B) => {
|
|
16889
16889
|
const Me = L[B];
|
|
16890
|
-
return se(B) + (Me.marginLeftKey ? ne[Me.marginLeftKey] ?? 0 : 0) + (
|
|
16890
|
+
return se(B) + (Me.marginLeftKey ? ne[Me.marginLeftKey] ?? 0 : 0) + (G.resolved[B] ?? 0);
|
|
16891
16891
|
}, K = (B, Me, te) => {
|
|
16892
16892
|
const ie = B.marginLeftKey ? ne[B.marginLeftKey] ?? 0 : 0, {
|
|
16893
16893
|
effectiveWidth: Re,
|
|
16894
16894
|
resolvedWidth: Be,
|
|
16895
16895
|
maxWidth: ot
|
|
16896
16896
|
} = te ?? he(B, Me), Xe = Math.max(ie, Un), dt = o && Me === "two-row-top";
|
|
16897
|
-
return /* @__PURE__ */
|
|
16897
|
+
return /* @__PURE__ */ q(
|
|
16898
16898
|
"div",
|
|
16899
16899
|
{
|
|
16900
16900
|
className: `${e}-title-cell`,
|
|
@@ -16987,14 +16987,14 @@ function Fm({
|
|
|
16987
16987
|
) : null;
|
|
16988
16988
|
}, Ie = (B, Me = !1) => {
|
|
16989
16989
|
const te = Xn(e, B, h, P, k), ie = te.filter((ot) => ot.prefix === "title2" || ot.prefix === "title3"), Re = o && Me;
|
|
16990
|
-
return ie.length > 0 || Re || (S ?? 0) > 0 ? /* @__PURE__ */
|
|
16991
|
-
ie.length > 0 ? /* @__PURE__ */
|
|
16990
|
+
return ie.length > 0 || Re || (S ?? 0) > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
16991
|
+
ie.length > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom`, children: [
|
|
16992
16992
|
/* @__PURE__ */ s("div", { className: `${e}-titles-stack`, children: ie.map((ot) => K(
|
|
16993
16993
|
ot,
|
|
16994
16994
|
"two-row-bottom",
|
|
16995
16995
|
re(te, ot, "two-row-bottom")
|
|
16996
16996
|
)) }),
|
|
16997
|
-
Me && o ? /* @__PURE__ */
|
|
16997
|
+
Me && o ? /* @__PURE__ */ q(et, { children: [
|
|
16998
16998
|
X(),
|
|
16999
16999
|
me()
|
|
17000
17000
|
] }) : null
|
|
@@ -17015,7 +17015,7 @@ function Fm({
|
|
|
17015
17015
|
}
|
|
17016
17016
|
) : null
|
|
17017
17017
|
] }) : null;
|
|
17018
|
-
}, Ae = () => /* @__PURE__ */
|
|
17018
|
+
}, Ae = () => /* @__PURE__ */ q(
|
|
17019
17019
|
"div",
|
|
17020
17020
|
{
|
|
17021
17021
|
className: `${e}-close-icon`,
|
|
@@ -17065,12 +17065,12 @@ function Fm({
|
|
|
17065
17065
|
)
|
|
17066
17066
|
]
|
|
17067
17067
|
}
|
|
17068
|
-
), ve = () => W ? /* @__PURE__ */ s("div", { className: `${e}-titles-row-header-controls`, children: Ae() }) : null, Ce = (B) => /* @__PURE__ */ s("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ s("div", { className: `${e}-titles-stack`, children: B }) }), _ = (B) => /* @__PURE__ */
|
|
17068
|
+
), ve = () => W ? /* @__PURE__ */ s("div", { className: `${e}-titles-row-header-controls`, children: Ae() }) : null, Ce = (B) => /* @__PURE__ */ s("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ s("div", { className: `${e}-titles-stack`, children: B }) }), _ = (B) => /* @__PURE__ */ q("div", { className: `${e}-titles-row-top`, children: [
|
|
17069
17069
|
W || Z ? ge() : null,
|
|
17070
17070
|
m ? be("two-row") : null,
|
|
17071
17071
|
Ce(B),
|
|
17072
17072
|
ve()
|
|
17073
|
-
] }), Q = (B, Me = !1) => /* @__PURE__ */
|
|
17073
|
+
] }), Q = (B, Me = !1) => /* @__PURE__ */ q(et, { children: [
|
|
17074
17074
|
_(ce(B)),
|
|
17075
17075
|
Ie(B, Me)
|
|
17076
17076
|
] }), R = () => {
|
|
@@ -17183,10 +17183,10 @@ function Fm({
|
|
|
17183
17183
|
}
|
|
17184
17184
|
}
|
|
17185
17185
|
) }, `${B.widthKey}-junction`);
|
|
17186
|
-
}), de = () => !o || j ? null : /* @__PURE__ */
|
|
17186
|
+
}), de = () => !o || j ? null : /* @__PURE__ */ q(et, { children: [
|
|
17187
17187
|
R(),
|
|
17188
17188
|
U()
|
|
17189
|
-
] }), fe = !!(t.title2 || t.title3 || (S ?? 0) > 0 || o), Ee = () => /* @__PURE__ */
|
|
17189
|
+
] }), fe = !!(t.title2 || t.title3 || (S ?? 0) > 0 || o), Ee = () => /* @__PURE__ */ q(
|
|
17190
17190
|
"div",
|
|
17191
17191
|
{
|
|
17192
17192
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
@@ -17199,7 +17199,7 @@ function Fm({
|
|
|
17199
17199
|
de()
|
|
17200
17200
|
]
|
|
17201
17201
|
}
|
|
17202
|
-
), ke = () => /* @__PURE__ */
|
|
17202
|
+
), ke = () => /* @__PURE__ */ q(
|
|
17203
17203
|
"div",
|
|
17204
17204
|
{
|
|
17205
17205
|
style: {
|
|
@@ -17224,7 +17224,7 @@ function Fm({
|
|
|
17224
17224
|
]
|
|
17225
17225
|
}
|
|
17226
17226
|
);
|
|
17227
|
-
return /* @__PURE__ */
|
|
17227
|
+
return /* @__PURE__ */ q("div", { className: `${e}-lightbox-overlay-content`, children: [
|
|
17228
17228
|
/* @__PURE__ */ s(
|
|
17229
17229
|
"div",
|
|
17230
17230
|
{
|
|
@@ -17598,11 +17598,11 @@ function Ol(e, t) {
|
|
|
17598
17598
|
const n = e.getBoundingClientRect();
|
|
17599
17599
|
return { left: n.left, top: n.top, width: n.width, height: n.height };
|
|
17600
17600
|
}
|
|
17601
|
-
function
|
|
17601
|
+
function qm(e, t, n) {
|
|
17602
17602
|
const i = e.querySelector(`[data-hive-grid-index="${t}"]`);
|
|
17603
17603
|
return i instanceof HTMLElement ? Ol(i, n) : null;
|
|
17604
17604
|
}
|
|
17605
|
-
function
|
|
17605
|
+
function Gm(e) {
|
|
17606
17606
|
return e.reduce((t, n, i) => {
|
|
17607
17607
|
const o = Pa(n.gallery), r = Aa(o).filter((c) => c.lightboxMedia).map((c) => c.lightboxMedia);
|
|
17608
17608
|
return r.length === 0 || t.push({
|
|
@@ -17665,7 +17665,7 @@ function Xm(e, t) {
|
|
|
17665
17665
|
return !e || !(t != null && t.width) || !(t != null && t.height) ? null : oa(e, t.width, t.height);
|
|
17666
17666
|
}
|
|
17667
17667
|
function Ym(e, t) {
|
|
17668
|
-
if (
|
|
17668
|
+
if (Gi(e)) {
|
|
17669
17669
|
const i = document.createElement("video"), o = () => {
|
|
17670
17670
|
i.videoWidth > 0 && i.videoHeight > 0 && t(e.url, i.videoWidth, i.videoHeight), i.removeEventListener("loadedmetadata", o);
|
|
17671
17671
|
};
|
|
@@ -17700,7 +17700,7 @@ function Zm({ mediaList: e }) {
|
|
|
17700
17700
|
opacity: 0,
|
|
17701
17701
|
pointerEvents: "none"
|
|
17702
17702
|
},
|
|
17703
|
-
children: e.map((t) =>
|
|
17703
|
+
children: e.map((t) => Gi(t) ? /* @__PURE__ */ s(
|
|
17704
17704
|
"video",
|
|
17705
17705
|
{
|
|
17706
17706
|
src: t.url,
|
|
@@ -17843,7 +17843,7 @@ function Aa(e) {
|
|
|
17843
17843
|
lightboxMedia: t
|
|
17844
17844
|
}));
|
|
17845
17845
|
}
|
|
17846
|
-
function
|
|
17846
|
+
function Gi(e) {
|
|
17847
17847
|
return e.type === "video" ? !0 : /\.(mp4|webm|ogg|mov)(\?|#|$)/i.test(e.url);
|
|
17848
17848
|
}
|
|
17849
17849
|
function og(e) {
|
|
@@ -17856,7 +17856,7 @@ function rg({
|
|
|
17856
17856
|
gridIndex: i,
|
|
17857
17857
|
onMediaClick: o
|
|
17858
17858
|
}) {
|
|
17859
|
-
return
|
|
17859
|
+
return Gi(e) ? /* @__PURE__ */ s(
|
|
17860
17860
|
"video",
|
|
17861
17861
|
{
|
|
17862
17862
|
src: e.url,
|
|
@@ -17924,7 +17924,7 @@ function Ho({
|
|
|
17924
17924
|
onTransitionEnd: n,
|
|
17925
17925
|
onMeasure: i
|
|
17926
17926
|
}) {
|
|
17927
|
-
return
|
|
17927
|
+
return Gi(e) ? /* @__PURE__ */ s(
|
|
17928
17928
|
"video",
|
|
17929
17929
|
{
|
|
17930
17930
|
src: e.url,
|
|
@@ -17972,13 +17972,13 @@ function sg({
|
|
|
17972
17972
|
onNext: w
|
|
17973
17973
|
}) {
|
|
17974
17974
|
const $ = ue(null), I = ue(null), E = ue(null), N = ue(/* @__PURE__ */ new Map()), [v, H] = le(0), M = ue(null), C = ue(0), j = ue(0), h = ue("none"), P = ue(!1), k = ue(!1), z = ue(!1), ne = ue(null), ee = ue(null), J = ue(null), O = ue(() => {
|
|
17975
|
-
}), F = ue(null), T = ue(null), L = ue(null), V = ue(!1), [
|
|
17975
|
+
}), F = ue(null), T = ue(null), L = ue(null), V = ue(!1), [G, Z] = le(null), [W, ye] = le(Hr), [m, he] = le(0), [re, we] = le("opening"), [He, se] = le(0), [xe, K] = le(0), [be, ge] = le(!1), [pe, ce] = le(null), [Ie, Ae] = le(null), [ve, Ce] = le(null), [_, Q] = le(!1), [R, U] = le(null), [X, me] = le(!1), de = ue(!1), [fe, Ee] = le(!1), [ke, B] = le(!1), Me = ue(n), te = ue(void 0), ie = t[n], Re = ie ? Gi(ie) : !1, Be = xe !== 0 || be, ot = !r && (!a || !!c), Xe = l && !r, dt = d.length > 1, yt = $e((oe, Oe) => t.length <= 1 ? null : t[(oe + Oe + t.length) % t.length] ?? null, [t]), lt = dt ? Ji(d, p, -1) : yt(n, -1), ut = dt ? Ji(d, p, 1) : yt(n, 1), Rt = pe === -1 && Be ? dt && Ie !== null ? Ji(d, Ie, -1) : ve !== null ? yt(ve, -1) : null : null, rt = pe === 1 && Be ? dt && Ie !== null ? Ji(d, Ie, 1) : ve !== null ? yt(ve, 1) : null : null, Ge = Rt && Rt.url !== (lt == null ? void 0 : lt.url) ? Rt : null, vt = rt && rt.url !== (ut == null ? void 0 : ut.url) ? rt : null, xt = lt && Xe ? (() => {
|
|
17976
17976
|
const oe = dt ? vs(d, p, -1) : t.length > 2 ? yt((n - 1 + t.length) % t.length, -1) : null;
|
|
17977
17977
|
return oe && oe.url !== lt.url ? oe : null;
|
|
17978
17978
|
})() : null, pt = ut && Xe ? (() => {
|
|
17979
17979
|
const oe = dt ? vs(d, p, 1) : t.length > 2 ? yt((n + 1) % t.length, 1) : null;
|
|
17980
17980
|
return oe && oe.url !== ut.url ? oe : null;
|
|
17981
|
-
})() : null, Nt =
|
|
17981
|
+
})() : null, Nt = Ge ?? xt, qt = vt ?? pt, at = $e((oe, Oe, Ye) => {
|
|
17982
17982
|
if (!oe || !Oe || !Ye) return;
|
|
17983
17983
|
const Je = N.current, Lt = Je.get(oe);
|
|
17984
17984
|
(Lt == null ? void 0 : Lt.width) === Oe && (Lt == null ? void 0 : Lt.height) === Ye || (Je.set(oe, { width: Oe, height: Ye }), H((en) => en + 1));
|
|
@@ -18059,7 +18059,7 @@ function sg({
|
|
|
18059
18059
|
}, [Ve, an]), gn = $e(() => {
|
|
18060
18060
|
Ve(), ee.current = null, it(!1), ce(null), Ae(null), Ce(null), K(0), Ee(!1), P.current = !1, j.current = 0, h.current = "none";
|
|
18061
18061
|
}, [Ve, it]), St = $e((oe) => {
|
|
18062
|
-
if (!(!Xe || !
|
|
18062
|
+
if (!(!Xe || !G)) {
|
|
18063
18063
|
if (z.current) {
|
|
18064
18064
|
if (ee.current === oe) {
|
|
18065
18065
|
J.current = oe, an();
|
|
@@ -18071,7 +18071,7 @@ function sg({
|
|
|
18071
18071
|
}
|
|
18072
18072
|
}, [
|
|
18073
18073
|
Xe,
|
|
18074
|
-
|
|
18074
|
+
G,
|
|
18075
18075
|
an,
|
|
18076
18076
|
gn,
|
|
18077
18077
|
Ve,
|
|
@@ -18147,7 +18147,7 @@ function sg({
|
|
|
18147
18147
|
N.current.has(Je.url) || Ym(Je, at);
|
|
18148
18148
|
});
|
|
18149
18149
|
}, [t, d, at]), We(() => {
|
|
18150
|
-
if (re !== "opening" || !
|
|
18150
|
+
if (re !== "opening" || !G) return;
|
|
18151
18151
|
if (!x) {
|
|
18152
18152
|
we("open");
|
|
18153
18153
|
return;
|
|
@@ -18159,7 +18159,7 @@ function sg({
|
|
|
18159
18159
|
});
|
|
18160
18160
|
});
|
|
18161
18161
|
return () => cancelAnimationFrame(oe);
|
|
18162
|
-
}, [re,
|
|
18162
|
+
}, [re, G, x]), We(() => {
|
|
18163
18163
|
if (re !== "closing") return;
|
|
18164
18164
|
const oe = setTimeout(() => g(), Mn);
|
|
18165
18165
|
return () => clearTimeout(oe);
|
|
@@ -18211,13 +18211,13 @@ function sg({
|
|
|
18211
18211
|
k.current = !0, M.current = { x: It.clientX, y: It.clientY }, h.current = "none", j.current = 0, P.current = !1;
|
|
18212
18212
|
}, Lt = (wt) => {
|
|
18213
18213
|
if (!M.current || wt.touches.length !== 1 || z.current) return;
|
|
18214
|
-
const It = wt.touches[0], cn = It.clientX - M.current.x,
|
|
18214
|
+
const It = wt.touches[0], cn = It.clientX - M.current.x, Gt = It.clientY - M.current.y;
|
|
18215
18215
|
if (h.current === "none") {
|
|
18216
|
-
if (Math.abs(cn) < 10 && Math.abs(
|
|
18217
|
-
if (Math.abs(cn) > Math.abs(
|
|
18216
|
+
if (Math.abs(cn) < 10 && Math.abs(Gt) < 10) return;
|
|
18217
|
+
if (Math.abs(cn) > Math.abs(Gt)) {
|
|
18218
18218
|
if (!Xe) return;
|
|
18219
18219
|
h.current = "horizontal";
|
|
18220
|
-
} else if (
|
|
18220
|
+
} else if (Gt > 0) {
|
|
18221
18221
|
if (!ot) return;
|
|
18222
18222
|
h.current = "vertical";
|
|
18223
18223
|
} else
|
|
@@ -18227,7 +18227,7 @@ function sg({
|
|
|
18227
18227
|
P.current = !0, Ee(!0), j.current = cn, K(cn), wt.preventDefault();
|
|
18228
18228
|
return;
|
|
18229
18229
|
}
|
|
18230
|
-
h.current === "vertical" && (P.current = !0, Ee(!0), C.current =
|
|
18230
|
+
h.current === "vertical" && (P.current = !0, Ee(!0), C.current = Gt, se(Gt), wt.preventDefault());
|
|
18231
18231
|
}, en = () => {
|
|
18232
18232
|
if (!M.current) return;
|
|
18233
18233
|
const wt = h.current, It = P.current;
|
|
@@ -18236,8 +18236,8 @@ function sg({
|
|
|
18236
18236
|
else if (It && wt === "vertical") {
|
|
18237
18237
|
const cn = C.current;
|
|
18238
18238
|
if (ot && cn > Om) {
|
|
18239
|
-
const
|
|
18240
|
-
C.current =
|
|
18239
|
+
const Gt = window.innerHeight;
|
|
18240
|
+
C.current = Gt, B(!0), se(Gt), we("closing");
|
|
18241
18241
|
} else
|
|
18242
18242
|
C.current = 0, se(0);
|
|
18243
18243
|
oe();
|
|
@@ -18250,8 +18250,8 @@ function sg({
|
|
|
18250
18250
|
}, [re, Xe, it, ht, Ve, ot, mn, Ke]);
|
|
18251
18251
|
const ze = $e(() => {
|
|
18252
18252
|
const oe = (S == null ? void 0 : S()) ?? x ?? null;
|
|
18253
|
-
oe &&
|
|
18254
|
-
}, [S, x,
|
|
18253
|
+
oe && G && (U(oe), Q(!0)), we("closing");
|
|
18254
|
+
}, [S, x, G]);
|
|
18255
18255
|
We(() => {
|
|
18256
18256
|
const oe = (Je) => {
|
|
18257
18257
|
if (Je.key === "Escape") {
|
|
@@ -18294,7 +18294,7 @@ function sg({
|
|
|
18294
18294
|
}
|
|
18295
18295
|
Ve(), it(!1);
|
|
18296
18296
|
}
|
|
18297
|
-
}, [Ve, it, an]), Ze = re === "closing" ? R ?? x : x, _t = Ze &&
|
|
18297
|
+
}, [Ve, it, an]), Ze = re === "closing" ? R ?? x : x, _t = Ze && G && (re === "opening" || De) ? jm(Ze, G) : void 0, Tt = Be && ie ? Mt(ie, "center") : He > 0 ? `translateY(${He}px)` : _t, $t = G ? No(G, W) : null, Bt = !!(Ze && G), Pt = Bt && (re === "closing" || re === "open" && _), Ut = {
|
|
18298
18298
|
position: "absolute",
|
|
18299
18299
|
top: $t == null ? void 0 : $t.top,
|
|
18300
18300
|
left: $t == null ? void 0 : $t.left,
|
|
@@ -18320,7 +18320,7 @@ function sg({
|
|
|
18320
18320
|
if (!Je) return { display: "none" };
|
|
18321
18321
|
const Lt = Ye === "far" ? Oe === "left" ? "far-left" : "far-right" : Oe === "left" ? "left-adjacent" : "right-adjacent", { start: en } = pe !== null ? zl(Je, Lt, pe, W) : {
|
|
18322
18322
|
start: Ye === "far" ? or(Je, Oe, W) : Ni(Je, Oe, W)
|
|
18323
|
-
}, wt = No(en, W), It = Mt(oe, Lt), cn = !Be && Ye === "adjacent" && je && !X ? tg(Je, Oe, W) : null,
|
|
18323
|
+
}, wt = No(en, W), It = Mt(oe, Lt), cn = !Be && Ye === "adjacent" && je && !X ? tg(Je, Oe, W) : null, Gt = Ye === "far" && Be && pe === (Oe === "left" ? -1 : 1), Cn = fe && !be ? !1 : be, Rn = Ye === "adjacent" && je && X && !Be;
|
|
18324
18324
|
return {
|
|
18325
18325
|
position: "absolute",
|
|
18326
18326
|
top: wt.top,
|
|
@@ -18329,7 +18329,7 @@ function sg({
|
|
|
18329
18329
|
height: wt.height,
|
|
18330
18330
|
objectFit: "contain",
|
|
18331
18331
|
transform: It ?? (cn ? `translate(${cn.x}px, ${cn.y}px)` : void 0),
|
|
18332
|
-
opacity: Ye === "far" ? je &&
|
|
18332
|
+
opacity: Ye === "far" ? je && Gt ? 1 : 0 : je ? 1 : 0,
|
|
18333
18333
|
transition: Cn ? Ye === "far" ? `transform ${Xi}ms ${fn}` : `transform ${Xi}ms ${fn}, opacity ${Mn}ms ${fn}` : Rn ? `transform ${Mn}ms ${fn}` : re === "opening" || De ? `opacity ${Mn}ms ${fn}` : "none",
|
|
18334
18334
|
pointerEvents: "none",
|
|
18335
18335
|
zIndex: 1
|
|
@@ -18346,7 +18346,7 @@ function sg({
|
|
|
18346
18346
|
Oe.stopPropagation(), St(oe);
|
|
18347
18347
|
}
|
|
18348
18348
|
}, Xt = lt ? ln(lt, "left") : null, gt = ut ? ln(ut, "right") : null, Vt = Xt ? No(Xt, W) : null, Qt = gt ? No(gt, W) : null;
|
|
18349
|
-
return /* @__PURE__ */
|
|
18349
|
+
return /* @__PURE__ */ q(
|
|
18350
18350
|
"div",
|
|
18351
18351
|
{
|
|
18352
18352
|
ref: $,
|
|
@@ -18373,8 +18373,8 @@ function sg({
|
|
|
18373
18373
|
}
|
|
18374
18374
|
}
|
|
18375
18375
|
),
|
|
18376
|
-
/* @__PURE__ */
|
|
18377
|
-
/* @__PURE__ */
|
|
18376
|
+
/* @__PURE__ */ q("div", { className: `${e}-lightbox-dismiss-area`, children: [
|
|
18377
|
+
/* @__PURE__ */ q(
|
|
18378
18378
|
"div",
|
|
18379
18379
|
{
|
|
18380
18380
|
style: {
|
|
@@ -18440,7 +18440,7 @@ function sg({
|
|
|
18440
18440
|
},
|
|
18441
18441
|
`far-prev-${Nt.url}`
|
|
18442
18442
|
),
|
|
18443
|
-
je && lt && /* @__PURE__ */
|
|
18443
|
+
je && lt && /* @__PURE__ */ q(et, { children: [
|
|
18444
18444
|
/* @__PURE__ */ s(
|
|
18445
18445
|
Ho,
|
|
18446
18446
|
{
|
|
@@ -18468,7 +18468,7 @@ function sg({
|
|
|
18468
18468
|
}
|
|
18469
18469
|
)
|
|
18470
18470
|
] }),
|
|
18471
|
-
je && ut && /* @__PURE__ */
|
|
18471
|
+
je && ut && /* @__PURE__ */ q(et, { children: [
|
|
18472
18472
|
/* @__PURE__ */ s(
|
|
18473
18473
|
Ho,
|
|
18474
18474
|
{
|
|
@@ -18496,17 +18496,17 @@ function sg({
|
|
|
18496
18496
|
}
|
|
18497
18497
|
)
|
|
18498
18498
|
] }),
|
|
18499
|
-
je &&
|
|
18499
|
+
je && qt && /* @__PURE__ */ s(
|
|
18500
18500
|
Ho,
|
|
18501
18501
|
{
|
|
18502
|
-
media:
|
|
18503
|
-
style: Ht(
|
|
18502
|
+
media: qt,
|
|
18503
|
+
style: Ht(qt, "right", "far"),
|
|
18504
18504
|
onMeasure: at,
|
|
18505
18505
|
onTransitionEnd: tt
|
|
18506
18506
|
},
|
|
18507
|
-
`far-next-${
|
|
18507
|
+
`far-next-${qt.url}`
|
|
18508
18508
|
),
|
|
18509
|
-
|
|
18509
|
+
G && ie && (Re ? /* @__PURE__ */ s(
|
|
18510
18510
|
ag,
|
|
18511
18511
|
{
|
|
18512
18512
|
src: ie.url,
|
|
@@ -18558,24 +18558,24 @@ function lg({
|
|
|
18558
18558
|
width: "auto",
|
|
18559
18559
|
height: "auto",
|
|
18560
18560
|
maxWidth: "100%"
|
|
18561
|
-
}, k = ue(null), [z, ne] = le(!1), [ee, J] = le([]), [O, F] = le(0), [T, L] = le(0), [V,
|
|
18561
|
+
}, k = ue(null), [z, ne] = le(!1), [ee, J] = le([]), [O, F] = le(0), [T, L] = le(0), [V, G] = le(null), [Z, W] = le({
|
|
18562
18562
|
title1: "",
|
|
18563
18563
|
title2: "",
|
|
18564
18564
|
title3: ""
|
|
18565
18565
|
}), ye = (() => {
|
|
18566
18566
|
const ve = {}, Ce = k.current ? getComputedStyle(k.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
18567
18567
|
return Ce && (ve["--cntrl-article-width"] = Ce), ve;
|
|
18568
|
-
})(), m = !n || i || o, he = Ne(() => Hm(c), [c]), re = t ?? [], we = re.length % v || v, He = we < v && re.length > 0, se = re.length - we, xe = He ? Math.floor((v - we) / 2) + 1 : 1, K = Ne(() =>
|
|
18568
|
+
})(), m = !n || i || o, he = Ne(() => Hm(c), [c]), re = t ?? [], we = re.length % v || v, He = we < v && re.length > 0, se = re.length - we, xe = He ? Math.floor((v - we) / 2) + 1 : 1, K = Ne(() => Gm(re), [re]), be = Ne(() => Jm(re), [re]), ge = (ve, Ce, _) => {
|
|
18569
18569
|
if (n && !o && !i) return;
|
|
18570
18570
|
const Q = K.findIndex((U) => U.gridIndex === ve);
|
|
18571
18571
|
if (Q < 0) return;
|
|
18572
18572
|
const R = K[Q];
|
|
18573
|
-
L(Q), J(R.items), F(Ce), W(R.entry),
|
|
18573
|
+
L(Q), J(R.items), F(Ce), W(R.entry), G(_ ?? null), ne(!0);
|
|
18574
18574
|
}, pe = $e(() => {
|
|
18575
|
-
ne(!1),
|
|
18575
|
+
ne(!1), G(null);
|
|
18576
18576
|
}, []), ce = $e(() => {
|
|
18577
18577
|
const ve = K[T];
|
|
18578
|
-
return !ve || !k.current ? V :
|
|
18578
|
+
return !ve || !k.current ? V : qm(
|
|
18579
18579
|
k.current,
|
|
18580
18580
|
ve.gridIndex,
|
|
18581
18581
|
x ? "cover" : "contain"
|
|
@@ -18596,7 +18596,7 @@ function lg({
|
|
|
18596
18596
|
};
|
|
18597
18597
|
}, [z]), We(() => {
|
|
18598
18598
|
!n || o || i || ne(!1);
|
|
18599
|
-
}, [n, o, i]), /* @__PURE__ */
|
|
18599
|
+
}, [n, o, i]), /* @__PURE__ */ q(et, { children: [
|
|
18600
18600
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: he } }),
|
|
18601
18601
|
/* @__PURE__ */ s(Zm, { mediaList: be }),
|
|
18602
18602
|
/* @__PURE__ */ s(
|
|
@@ -18619,7 +18619,7 @@ function lg({
|
|
|
18619
18619
|
{
|
|
18620
18620
|
media: de,
|
|
18621
18621
|
gridIndex: Ce,
|
|
18622
|
-
className: `${c}-item-${
|
|
18622
|
+
className: `${c}-item-${Gi(de) ? "video" : "image"}`.trim(),
|
|
18623
18623
|
style: P,
|
|
18624
18624
|
onMediaClick: m && Ee >= 0 ? (ke) => ge(
|
|
18625
18625
|
Ce,
|
|
@@ -18629,7 +18629,7 @@ function lg({
|
|
|
18629
18629
|
}
|
|
18630
18630
|
);
|
|
18631
18631
|
})() });
|
|
18632
|
-
return /* @__PURE__ */ s("div", { className: `${c}-item`, children: /* @__PURE__ */
|
|
18632
|
+
return /* @__PURE__ */ s("div", { className: `${c}-item`, children: /* @__PURE__ */ q(
|
|
18633
18633
|
"div",
|
|
18634
18634
|
{
|
|
18635
18635
|
className: [
|
|
@@ -21138,7 +21138,7 @@ const Hi = vi.filter(
|
|
|
21138
21138
|
), mg = Hi.reduce(
|
|
21139
21139
|
(e, t) => ({
|
|
21140
21140
|
...e,
|
|
21141
|
-
[nt(t, "fontFamily")]: "
|
|
21141
|
+
[nt(t, "fontFamily")]: "Arial",
|
|
21142
21142
|
[nt(t, "fontSettings")]: {
|
|
21143
21143
|
fontWeight: 400,
|
|
21144
21144
|
fontStyle: "normal"
|
|
@@ -21170,6 +21170,28 @@ const gg = {
|
|
|
21170
21170
|
])
|
|
21171
21171
|
)
|
|
21172
21172
|
}, hg = {
|
|
21173
|
+
title1: "NASA",
|
|
21174
|
+
title2: "Ames Research Center",
|
|
21175
|
+
title3: "Archive Footage"
|
|
21176
|
+
}, fg = (() => {
|
|
21177
|
+
const e = [];
|
|
21178
|
+
for (let t = 1; t <= 24; t += 1)
|
|
21179
|
+
e.push({
|
|
21180
|
+
...hg,
|
|
21181
|
+
gallery: [{
|
|
21182
|
+
media: [{
|
|
21183
|
+
url: `https://cdn.cntrl.site/component-assets/hive_${t}.jpg`,
|
|
21184
|
+
name: "",
|
|
21185
|
+
objectFit: "cover"
|
|
21186
|
+
}, {
|
|
21187
|
+
url: "",
|
|
21188
|
+
name: "",
|
|
21189
|
+
objectFit: "cover"
|
|
21190
|
+
}]
|
|
21191
|
+
}]
|
|
21192
|
+
});
|
|
21193
|
+
return e;
|
|
21194
|
+
})(), yg = {
|
|
21173
21195
|
type: "object",
|
|
21174
21196
|
version: 1,
|
|
21175
21197
|
content: {
|
|
@@ -21236,104 +21258,7 @@ const gg = {
|
|
|
21236
21258
|
},
|
|
21237
21259
|
required: ["gallery"]
|
|
21238
21260
|
},
|
|
21239
|
-
default:
|
|
21240
|
-
{
|
|
21241
|
-
title1: "Dorothy Manners & Julanne Johnston",
|
|
21242
|
-
title2: "by Evans Studio",
|
|
21243
|
-
title3: "Screenland",
|
|
21244
|
-
gallery: [{
|
|
21245
|
-
media: [{
|
|
21246
|
-
url: "https://cdn.cntrl.site/component-assets/grid(1).webp",
|
|
21247
|
-
name: "",
|
|
21248
|
-
objectFit: "cover"
|
|
21249
|
-
}, {
|
|
21250
|
-
url: "",
|
|
21251
|
-
name: "",
|
|
21252
|
-
objectFit: "cover"
|
|
21253
|
-
}]
|
|
21254
|
-
}]
|
|
21255
|
-
},
|
|
21256
|
-
{
|
|
21257
|
-
title1: "Inez Nadeau",
|
|
21258
|
-
title2: "Melbourne Spurr",
|
|
21259
|
-
title3: "Screenland",
|
|
21260
|
-
gallery: [{
|
|
21261
|
-
media: [{
|
|
21262
|
-
url: "https://cdn.cntrl.site/component-assets/grid(2).webp",
|
|
21263
|
-
name: "",
|
|
21264
|
-
objectFit: "cover"
|
|
21265
|
-
}, {
|
|
21266
|
-
url: "",
|
|
21267
|
-
name: "",
|
|
21268
|
-
objectFit: "cover"
|
|
21269
|
-
}]
|
|
21270
|
-
}]
|
|
21271
|
-
},
|
|
21272
|
-
{
|
|
21273
|
-
title1: "Colleen Moore",
|
|
21274
|
-
title2: "Clarence S. Bull",
|
|
21275
|
-
title3: "Screenland",
|
|
21276
|
-
gallery: [{
|
|
21277
|
-
media: [{
|
|
21278
|
-
url: "https://cdn.cntrl.site/component-assets/grid(3).webp",
|
|
21279
|
-
name: "",
|
|
21280
|
-
objectFit: "cover"
|
|
21281
|
-
}, {
|
|
21282
|
-
url: "",
|
|
21283
|
-
name: "",
|
|
21284
|
-
objectFit: "cover"
|
|
21285
|
-
}]
|
|
21286
|
-
}]
|
|
21287
|
-
},
|
|
21288
|
-
{
|
|
21289
|
-
title1: "Gloria Swanson",
|
|
21290
|
-
title2: "Donald Biddle Keyes",
|
|
21291
|
-
title3: "Screenland",
|
|
21292
|
-
gallery: [{
|
|
21293
|
-
media: [{
|
|
21294
|
-
url: "https://cdn.cntrl.site/component-assets/grid(4).webp",
|
|
21295
|
-
name: "",
|
|
21296
|
-
objectFit: "cover"
|
|
21297
|
-
}, {
|
|
21298
|
-
url: "",
|
|
21299
|
-
name: "",
|
|
21300
|
-
objectFit: "cover"
|
|
21301
|
-
}]
|
|
21302
|
-
}]
|
|
21303
|
-
},
|
|
21304
|
-
{
|
|
21305
|
-
title1: "",
|
|
21306
|
-
title2: "",
|
|
21307
|
-
title3: "",
|
|
21308
|
-
gallery: [{
|
|
21309
|
-
media: [{
|
|
21310
|
-
url: "https://cdn.cntrl.site/component-assets/grid(5).webp",
|
|
21311
|
-
name: "",
|
|
21312
|
-
objectFit: "cover"
|
|
21313
|
-
}, {
|
|
21314
|
-
url: "",
|
|
21315
|
-
name: "",
|
|
21316
|
-
objectFit: "cover"
|
|
21317
|
-
}]
|
|
21318
|
-
}]
|
|
21319
|
-
},
|
|
21320
|
-
{
|
|
21321
|
-
title1: "",
|
|
21322
|
-
title2: "",
|
|
21323
|
-
title3: "",
|
|
21324
|
-
gallery: [{
|
|
21325
|
-
media: [{
|
|
21326
|
-
url: "https://cdn.cntrl.site/component-assets/grid(6).webp",
|
|
21327
|
-
name: "",
|
|
21328
|
-
objectFit: "cover"
|
|
21329
|
-
}, {
|
|
21330
|
-
url: "",
|
|
21331
|
-
name: "",
|
|
21332
|
-
objectFit: "cover"
|
|
21333
|
-
}]
|
|
21334
|
-
}]
|
|
21335
|
-
}
|
|
21336
|
-
]
|
|
21261
|
+
default: fg
|
|
21337
21262
|
},
|
|
21338
21263
|
settings: {
|
|
21339
21264
|
sizing: "auto auto",
|
|
@@ -21526,7 +21451,7 @@ const gg = {
|
|
|
21526
21451
|
},
|
|
21527
21452
|
defaults: {
|
|
21528
21453
|
imageDisplay: {
|
|
21529
|
-
display: "
|
|
21454
|
+
display: "fit",
|
|
21530
21455
|
ratioValue: "2:3",
|
|
21531
21456
|
reversed: !1
|
|
21532
21457
|
},
|
|
@@ -21543,69 +21468,69 @@ const gg = {
|
|
|
21543
21468
|
layoutDefaults: {
|
|
21544
21469
|
m: {
|
|
21545
21470
|
gridLayout: {
|
|
21546
|
-
entryWidth: 0.
|
|
21547
|
-
horizontalGap: 0.
|
|
21471
|
+
entryWidth: 0.37837,
|
|
21472
|
+
horizontalGap: 0.081,
|
|
21548
21473
|
wrapperWidth: 1,
|
|
21549
|
-
columnsCount:
|
|
21550
|
-
lockedParam:
|
|
21474
|
+
columnsCount: 2,
|
|
21475
|
+
lockedParam: "wrapperWidth"
|
|
21551
21476
|
},
|
|
21552
|
-
verticalGap: 0.
|
|
21477
|
+
verticalGap: 0.081,
|
|
21553
21478
|
titleHeaderLayout: "mobile",
|
|
21554
21479
|
title1Width: 0.4,
|
|
21555
|
-
title2Width: 0.
|
|
21480
|
+
title2Width: 0.464864,
|
|
21556
21481
|
title3Width: 0.3,
|
|
21557
21482
|
title1MarginLeft: 0.04,
|
|
21558
21483
|
title2MarginLeft: 0.04,
|
|
21559
21484
|
title3MarginLeft: 0.08,
|
|
21560
21485
|
titleRowMarginBottom: 0.08,
|
|
21561
|
-
contentMarginTop: 0.
|
|
21562
|
-
closeIconMaxWidth: 0.
|
|
21563
|
-
iconMarginRight: 0.
|
|
21486
|
+
contentMarginTop: 0.081,
|
|
21487
|
+
closeIconMaxWidth: 0.081,
|
|
21488
|
+
iconMarginRight: 0.05405,
|
|
21564
21489
|
...Or({
|
|
21565
|
-
title1FontSize: 0.
|
|
21566
|
-
title1LineHeight: 0.
|
|
21567
|
-
title2FontSize: 0.
|
|
21568
|
-
title2LineHeight: 0.
|
|
21569
|
-
title3FontSize: 0.
|
|
21570
|
-
title3LineHeight: 0.
|
|
21490
|
+
title1FontSize: 0.04864,
|
|
21491
|
+
title1LineHeight: 0.056756,
|
|
21492
|
+
title2FontSize: 0.04864,
|
|
21493
|
+
title2LineHeight: 0.056756,
|
|
21494
|
+
title3FontSize: 0.04864,
|
|
21495
|
+
title3LineHeight: 0.056756
|
|
21571
21496
|
})
|
|
21572
21497
|
},
|
|
21573
21498
|
t: {
|
|
21574
21499
|
gridLayout: {
|
|
21575
|
-
entryWidth: 0.
|
|
21576
|
-
horizontalGap: 0.
|
|
21500
|
+
entryWidth: 0.10416,
|
|
21501
|
+
horizontalGap: 0.013,
|
|
21577
21502
|
wrapperWidth: 1,
|
|
21578
|
-
columnsCount:
|
|
21579
|
-
lockedParam:
|
|
21503
|
+
columnsCount: 8,
|
|
21504
|
+
lockedParam: "wrapperWidth"
|
|
21580
21505
|
},
|
|
21581
|
-
verticalGap: 0.
|
|
21506
|
+
verticalGap: 0.013,
|
|
21582
21507
|
titleHeaderLayout: "desktop",
|
|
21583
|
-
title1Width: 0.
|
|
21508
|
+
title1Width: 0.3,
|
|
21584
21509
|
title2Width: 0.248,
|
|
21585
21510
|
title3Width: 0.1,
|
|
21586
21511
|
title1MarginLeft: 0.01,
|
|
21587
21512
|
title2MarginLeft: 0.1,
|
|
21588
21513
|
title3MarginLeft: 0.1,
|
|
21589
21514
|
titleRowMarginBottom: 0,
|
|
21590
|
-
contentMarginTop: 0.
|
|
21591
|
-
closeIconMaxWidth: 0.
|
|
21592
|
-
iconMarginRight: 0.
|
|
21515
|
+
contentMarginTop: 0.026,
|
|
21516
|
+
closeIconMaxWidth: 0.039,
|
|
21517
|
+
iconMarginRight: 0.026,
|
|
21593
21518
|
...Or({
|
|
21594
|
-
title1FontSize:
|
|
21595
|
-
title1LineHeight:
|
|
21596
|
-
title2FontSize:
|
|
21597
|
-
title2LineHeight:
|
|
21598
|
-
title3FontSize:
|
|
21599
|
-
title3LineHeight:
|
|
21519
|
+
title1FontSize: 0.02083,
|
|
21520
|
+
title1LineHeight: 0.02734,
|
|
21521
|
+
title2FontSize: 0.02083,
|
|
21522
|
+
title2LineHeight: 0.02734,
|
|
21523
|
+
title3FontSize: 0.02083,
|
|
21524
|
+
title3LineHeight: 0.02734
|
|
21600
21525
|
})
|
|
21601
21526
|
},
|
|
21602
21527
|
d: {
|
|
21603
21528
|
gridLayout: {
|
|
21604
|
-
entryWidth: 0.
|
|
21605
|
-
horizontalGap:
|
|
21529
|
+
entryWidth: 0.06944,
|
|
21530
|
+
horizontalGap: 6944e-6,
|
|
21606
21531
|
wrapperWidth: 1,
|
|
21607
|
-
columnsCount:
|
|
21608
|
-
lockedParam:
|
|
21532
|
+
columnsCount: 12,
|
|
21533
|
+
lockedParam: "wrapperWidth"
|
|
21609
21534
|
},
|
|
21610
21535
|
verticalGap: 694e-5,
|
|
21611
21536
|
titleHeaderLayout: "desktop",
|
|
@@ -21688,7 +21613,7 @@ const gg = {
|
|
|
21688
21613
|
items: ["title1Color", "title2Color", "title3Color", "backgroundColor", "closeIconColor", "closeIconHoverColor"],
|
|
21689
21614
|
panelIds: ["general", "typeStyle"]
|
|
21690
21615
|
}
|
|
21691
|
-
},
|
|
21616
|
+
}, vg = {
|
|
21692
21617
|
element: lg,
|
|
21693
21618
|
id: "hive",
|
|
21694
21619
|
name: "Hive",
|
|
@@ -21719,10 +21644,10 @@ const gg = {
|
|
|
21719
21644
|
[`${t}FontSettings`]: `${nt(t, "fontFamily")}`
|
|
21720
21645
|
}), {})
|
|
21721
21646
|
},
|
|
21722
|
-
schema:
|
|
21647
|
+
schema: yg,
|
|
21723
21648
|
sourceCode: cg
|
|
21724
21649
|
}, xs = 12;
|
|
21725
|
-
function
|
|
21650
|
+
function bg(e, t = "50%") {
|
|
21726
21651
|
const n = {
|
|
21727
21652
|
position: "absolute",
|
|
21728
21653
|
width: xs,
|
|
@@ -21750,17 +21675,17 @@ function rn({
|
|
|
21750
21675
|
style: { ...t, pointerEvents: "none" },
|
|
21751
21676
|
"data-controls-center-only-drag": "",
|
|
21752
21677
|
...o,
|
|
21753
|
-
children: /* @__PURE__ */ s("div", { style:
|
|
21678
|
+
children: /* @__PURE__ */ s("div", { style: bg(n, i) })
|
|
21754
21679
|
}
|
|
21755
21680
|
);
|
|
21756
21681
|
}
|
|
21757
|
-
function
|
|
21682
|
+
function xg(e) {
|
|
21758
21683
|
if (e.type === "video") return !0;
|
|
21759
21684
|
if (e.type === "image") return !1;
|
|
21760
21685
|
const t = e.name ?? "";
|
|
21761
21686
|
return /\.(mp4|webm|ogg|mov)(\?|$)/i.test(t) ? !0 : /\.(mp4|webm|ogg|mov)(\?|$)/i.test(e.url);
|
|
21762
21687
|
}
|
|
21763
|
-
function
|
|
21688
|
+
function wg({
|
|
21764
21689
|
media: e,
|
|
21765
21690
|
className: t,
|
|
21766
21691
|
style: n
|
|
@@ -21799,7 +21724,7 @@ function bg({
|
|
|
21799
21724
|
function Xo(e) {
|
|
21800
21725
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
21801
21726
|
}
|
|
21802
|
-
function
|
|
21727
|
+
function Sg(e) {
|
|
21803
21728
|
return String(e ?? "").trim().length > 0;
|
|
21804
21729
|
}
|
|
21805
21730
|
function ws(e, t) {
|
|
@@ -21814,7 +21739,7 @@ function $s(e, t, n, i, o, a, r) {
|
|
|
21814
21739
|
const c = Y(a, r), l = Y(0, r), d = e === 0, p = e === t - 1 && !o;
|
|
21815
21740
|
return { borderTopWidth: d && n ? c : l, borderBottomWidth: !p || i ? c : l };
|
|
21816
21741
|
}
|
|
21817
|
-
function
|
|
21742
|
+
function $g(e, t, n) {
|
|
21818
21743
|
const i = Y(t, n), o = Y(0, n);
|
|
21819
21744
|
return {
|
|
21820
21745
|
borderTopWidth: o,
|
|
@@ -21822,7 +21747,7 @@ function wg(e, t, n) {
|
|
|
21822
21747
|
};
|
|
21823
21748
|
}
|
|
21824
21749
|
const Cs = 10;
|
|
21825
|
-
function
|
|
21750
|
+
function Cg(e) {
|
|
21826
21751
|
return `
|
|
21827
21752
|
.${e}-wrapper {
|
|
21828
21753
|
display: grid;
|
|
@@ -22285,11 +22210,11 @@ function Wa(e) {
|
|
|
22285
22210
|
const n = t.toLowerCase();
|
|
22286
22211
|
return n === "center" ? "Center" : n === "bottom" ? "Bottom" : n === "top" ? "Top" : t;
|
|
22287
22212
|
}
|
|
22288
|
-
function
|
|
22213
|
+
function Tg(e) {
|
|
22289
22214
|
const t = Wa(e);
|
|
22290
22215
|
return t.toLowerCase().startsWith("baseline") ? !1 : t === "Top" || t === "Center" || t === "Bottom";
|
|
22291
22216
|
}
|
|
22292
|
-
function
|
|
22217
|
+
function Lg(e) {
|
|
22293
22218
|
const t = String(e ?? "").trim();
|
|
22294
22219
|
if (!t.toLowerCase().startsWith("baseline"))
|
|
22295
22220
|
return null;
|
|
@@ -22297,8 +22222,8 @@ function Cg(e) {
|
|
|
22297
22222
|
return wr.includes(n) ? n : null;
|
|
22298
22223
|
}
|
|
22299
22224
|
function jl(e, t, n) {
|
|
22300
|
-
const i =
|
|
22301
|
-
return i ? i === t ? !1 :
|
|
22225
|
+
const i = Lg(e);
|
|
22226
|
+
return i ? i === t ? !1 : Tg(n[Vl(i)]) : !0;
|
|
22302
22227
|
}
|
|
22303
22228
|
function mo(e) {
|
|
22304
22229
|
const t = Wa(e);
|
|
@@ -22308,20 +22233,20 @@ function mo(e) {
|
|
|
22308
22233
|
}
|
|
22309
22234
|
return t === "Center" ? { kind: "center" } : t === "Bottom" ? { kind: "bottom" } : { kind: "top" };
|
|
22310
22235
|
}
|
|
22311
|
-
function
|
|
22312
|
-
if (
|
|
22236
|
+
function Ig(e, t, n) {
|
|
22237
|
+
if (ql(e, t, n))
|
|
22313
22238
|
return mo(e);
|
|
22314
22239
|
const i = mo(e);
|
|
22315
22240
|
return i.kind === "baseline" ? { kind: "top" } : i;
|
|
22316
22241
|
}
|
|
22317
|
-
function
|
|
22242
|
+
function Rg(e) {
|
|
22318
22243
|
const t = mo(e);
|
|
22319
22244
|
return t.kind === "baseline" ? { kind: "top" } : t;
|
|
22320
22245
|
}
|
|
22321
|
-
function
|
|
22246
|
+
function ql(e, t, n) {
|
|
22322
22247
|
return jl(e, n, t) ? mo(e).kind === "baseline" : !1;
|
|
22323
22248
|
}
|
|
22324
|
-
function
|
|
22249
|
+
function Eg(e) {
|
|
22325
22250
|
const t = {};
|
|
22326
22251
|
let n = !1;
|
|
22327
22252
|
for (const i of wr) {
|
|
@@ -22335,20 +22260,20 @@ function Ig(e) {
|
|
|
22335
22260
|
}
|
|
22336
22261
|
return n ? t : null;
|
|
22337
22262
|
}
|
|
22338
|
-
function
|
|
22263
|
+
function Mg(e) {
|
|
22339
22264
|
return e === "center" ? { flex: "0 0 auto", marginTop: "auto", marginBottom: "auto" } : e === "bottom" ? { flex: "0 0 auto", marginTop: "auto" } : {};
|
|
22340
22265
|
}
|
|
22341
|
-
function
|
|
22266
|
+
function Pg(e) {
|
|
22342
22267
|
const t = mo(e).kind;
|
|
22343
22268
|
return t === "baseline" ? "center" : t;
|
|
22344
22269
|
}
|
|
22345
|
-
function
|
|
22270
|
+
function Ag(e) {
|
|
22346
22271
|
return e === "right" ? "flex-end" : e === "center" ? "center" : "flex-start";
|
|
22347
22272
|
}
|
|
22348
22273
|
function Ts(e) {
|
|
22349
22274
|
return e === "center" ? "center" : e === "bottom" ? "flex-end" : "flex-start";
|
|
22350
22275
|
}
|
|
22351
|
-
function
|
|
22276
|
+
function kg(e, t) {
|
|
22352
22277
|
const n = document.createElement("i");
|
|
22353
22278
|
n.className = t, n.setAttribute("aria-hidden", "true"), e.prepend(n);
|
|
22354
22279
|
const { top: i } = e.getBoundingClientRect(), { bottom: o } = n.getBoundingClientRect(), a = o - i;
|
|
@@ -22359,24 +22284,24 @@ function Br(e, t, n, i) {
|
|
|
22359
22284
|
if (!o) return 0;
|
|
22360
22285
|
const a = o.closest(`.${n}`);
|
|
22361
22286
|
if (!a) return 0;
|
|
22362
|
-
const r =
|
|
22287
|
+
const r = kg(o, i);
|
|
22363
22288
|
if (e.kind === "baseline")
|
|
22364
22289
|
return o.getBoundingClientRect().top - t + r;
|
|
22365
22290
|
const c = a.getBoundingClientRect(), l = o.getBoundingClientRect().height;
|
|
22366
22291
|
let d = 0;
|
|
22367
22292
|
return e.kind === "center" ? d = (c.height - l) / 2 : e.kind === "bottom" && (d = c.height - l), c.top - t + d + r;
|
|
22368
22293
|
}
|
|
22369
|
-
function
|
|
22294
|
+
function Wg(e, t, n) {
|
|
22370
22295
|
const i = e.getBoundingClientRect().height;
|
|
22371
22296
|
return i <= 0 ? 0 : (t.forEach((o) => {
|
|
22372
22297
|
const a = o.querySelector(`.${n}`);
|
|
22373
22298
|
a && (a.style.minHeight = `${i}px`, a.style.height = `${i}px`);
|
|
22374
22299
|
}), i);
|
|
22375
22300
|
}
|
|
22376
|
-
function
|
|
22301
|
+
function _g(e, t) {
|
|
22377
22302
|
return !e || !t ? (e && (e.style.transform = ""), 0) : (e.style.transform = `translateY(${t}px)`, t);
|
|
22378
22303
|
}
|
|
22379
|
-
const
|
|
22304
|
+
const Fg = {
|
|
22380
22305
|
AColumn: "AColumn",
|
|
22381
22306
|
BColumnWidth: "BColumn",
|
|
22382
22307
|
CColumnWidth: "CColumn",
|
|
@@ -22386,7 +22311,7 @@ const Wg = {
|
|
|
22386
22311
|
function bt(e, t) {
|
|
22387
22312
|
return `${e}${t.replace(/^text/, "Text")}`;
|
|
22388
22313
|
}
|
|
22389
|
-
const
|
|
22314
|
+
const Ng = {
|
|
22390
22315
|
AColumn: "A",
|
|
22391
22316
|
BColumn: "B",
|
|
22392
22317
|
CColumn: "C",
|
|
@@ -22394,7 +22319,7 @@ const _g = {
|
|
|
22394
22319
|
EColumn: "E",
|
|
22395
22320
|
cutLabel: "CUT"
|
|
22396
22321
|
};
|
|
22397
|
-
function
|
|
22322
|
+
function Hg(e) {
|
|
22398
22323
|
return [
|
|
22399
22324
|
bt(e, "textFontFamily"),
|
|
22400
22325
|
bt(e, "textFontSettings"),
|
|
@@ -22412,14 +22337,14 @@ function Fg(e) {
|
|
|
22412
22337
|
`${e}VerticalAlign`
|
|
22413
22338
|
];
|
|
22414
22339
|
}
|
|
22415
|
-
function
|
|
22340
|
+
function Og() {
|
|
22416
22341
|
return {
|
|
22417
22342
|
type: "tab",
|
|
22418
22343
|
id: "listColumnTextStyle",
|
|
22419
22344
|
tabs: Object.fromEntries(
|
|
22420
22345
|
po.map((e) => [
|
|
22421
|
-
|
|
22422
|
-
|
|
22346
|
+
Ng[e],
|
|
22347
|
+
Hg(e)
|
|
22423
22348
|
])
|
|
22424
22349
|
)
|
|
22425
22350
|
};
|
|
@@ -22496,19 +22421,19 @@ const Sn = [
|
|
|
22496
22421
|
"CColumnPaddingBottom",
|
|
22497
22422
|
"DColumnPaddingBottom",
|
|
22498
22423
|
"EColumnPaddingBottom"
|
|
22499
|
-
],
|
|
22424
|
+
], Bg = {
|
|
22500
22425
|
textColor: "text-color",
|
|
22501
22426
|
backgroundColor: "background-color",
|
|
22502
22427
|
dividerColor: "divider-color",
|
|
22503
22428
|
textHoverColor: "text-hover-color",
|
|
22504
22429
|
backgroundHoverColor: "background-hover-color",
|
|
22505
22430
|
dividerHoverColor: "divider-hover-color"
|
|
22506
|
-
},
|
|
22507
|
-
function
|
|
22431
|
+
}, zg = ["hover", "focus", "filled", "success", "error"], Es = 4e-3, Li = 4e-3, zr = Li, _a = 50, go = 1440, ho = _a / go;
|
|
22432
|
+
function Gl(e) {
|
|
22508
22433
|
const t = typeof e == "number" && e > 0 ? e : go;
|
|
22509
22434
|
return _a / t;
|
|
22510
22435
|
}
|
|
22511
|
-
function
|
|
22436
|
+
function Dg(e) {
|
|
22512
22437
|
let t = e ?? null;
|
|
22513
22438
|
for (; t; ) {
|
|
22514
22439
|
const n = t.style.getPropertyValue("--cntrl-article-width").trim();
|
|
@@ -22538,19 +22463,19 @@ function to(e) {
|
|
|
22538
22463
|
const t = typeof e.wrapperWidth == "number" ? e.wrapperWidth : 1;
|
|
22539
22464
|
return Math.max(0, t);
|
|
22540
22465
|
}
|
|
22541
|
-
function
|
|
22466
|
+
function Vg(e, t = 1) {
|
|
22542
22467
|
const n = t / e;
|
|
22543
22468
|
return Object.fromEntries(
|
|
22544
22469
|
Sn.map((i) => [i, n])
|
|
22545
22470
|
);
|
|
22546
22471
|
}
|
|
22547
|
-
function
|
|
22472
|
+
function jg() {
|
|
22548
22473
|
return Object.fromEntries([
|
|
22549
22474
|
...Oi.map((e) => [e, 0]),
|
|
22550
22475
|
...Bi.map((e) => [e, 0])
|
|
22551
22476
|
]);
|
|
22552
22477
|
}
|
|
22553
|
-
function
|
|
22478
|
+
function qg() {
|
|
22554
22479
|
return Object.fromEntries(
|
|
22555
22480
|
zi.map((e) => [e, 0])
|
|
22556
22481
|
);
|
|
@@ -22585,7 +22510,7 @@ function Yo(e, t, n) {
|
|
|
22585
22510
|
Math.max(0, t - o)
|
|
22586
22511
|
];
|
|
22587
22512
|
}
|
|
22588
|
-
function
|
|
22513
|
+
function Gg(e, t, n) {
|
|
22589
22514
|
const i = {};
|
|
22590
22515
|
for (let o = 0; o < e; o += 1) {
|
|
22591
22516
|
const a = Oi[o], r = Bi[o], c = typeof n[a] == "number" ? n[a] : 0, l = typeof n[r] == "number" ? n[r] : 0, d = Ul(
|
|
@@ -22619,7 +22544,7 @@ function Fa(e, t, n) {
|
|
|
22619
22544
|
}
|
|
22620
22545
|
return [...c, i[e - 1]];
|
|
22621
22546
|
}
|
|
22622
|
-
function
|
|
22547
|
+
function Kg(e, t, n) {
|
|
22623
22548
|
if (e <= 1)
|
|
22624
22549
|
return {};
|
|
22625
22550
|
const i = Fa(e, t, n), o = {};
|
|
@@ -22632,10 +22557,10 @@ function Gg(e, t, n) {
|
|
|
22632
22557
|
function Ms(e) {
|
|
22633
22558
|
return Array.isArray(e.columnsOrder) && e.columnsOrder.length > 0 ? e.columnsOrder : [...Qn];
|
|
22634
22559
|
}
|
|
22635
|
-
function
|
|
22560
|
+
function Ug(e, t) {
|
|
22636
22561
|
return e.length !== t.length ? !1 : e.every((n, i) => n === t[i]);
|
|
22637
22562
|
}
|
|
22638
|
-
function
|
|
22563
|
+
function Xg(e, t, n, i) {
|
|
22639
22564
|
const o = Math.min(i, e.length, Sn.length), a = {};
|
|
22640
22565
|
for (let r = 0; r < o; r += 1) {
|
|
22641
22566
|
const c = e[r], l = t.indexOf(c);
|
|
@@ -22656,29 +22581,29 @@ function Xl(e, t) {
|
|
|
22656
22581
|
return !0;
|
|
22657
22582
|
return !1;
|
|
22658
22583
|
}
|
|
22659
|
-
function
|
|
22584
|
+
function Yg(e, t) {
|
|
22660
22585
|
const n = e.columns, i = t.columns;
|
|
22661
22586
|
if (typeof n != "number" || n === i)
|
|
22662
22587
|
return e;
|
|
22663
22588
|
const o = to(e), a = e.type === "b" || e.type === void 0 && t.type === "b", r = {
|
|
22664
22589
|
...e,
|
|
22665
|
-
...
|
|
22666
|
-
...
|
|
22590
|
+
...Vg(n, o),
|
|
22591
|
+
...jg()
|
|
22667
22592
|
};
|
|
22668
22593
|
if (a)
|
|
22669
22594
|
for (const c of zi)
|
|
22670
22595
|
typeof t[c] == "number" && (r[c] = t[c]);
|
|
22671
22596
|
else
|
|
22672
|
-
Object.assign(r,
|
|
22597
|
+
Object.assign(r, qg());
|
|
22673
22598
|
return Xl(e, r) ? r : e;
|
|
22674
22599
|
}
|
|
22675
|
-
function
|
|
22676
|
-
const i =
|
|
22600
|
+
function Jg(e, t, n) {
|
|
22601
|
+
const i = Eg(e);
|
|
22677
22602
|
i && (e = { ...e, ...i });
|
|
22678
|
-
const o =
|
|
22603
|
+
const o = Gl(n == null ? void 0 : n.designWidth), a = e.columns, r = t.columns, c = to(e), l = to(t), d = e.type === "b" || e.type === void 0 && t.type === "b", p = typeof a == "number" ? a : typeof r == "number" ? r : Qn.length, f = (E) => {
|
|
22679
22604
|
if (d)
|
|
22680
22605
|
return E;
|
|
22681
|
-
const N = Oo({ ...t, ...E }), v = to(E), H = Yo(p, v, N), M =
|
|
22606
|
+
const N = Oo({ ...t, ...E }), v = to(E), H = Yo(p, v, N), M = Gg(p, H, {
|
|
22682
22607
|
...t,
|
|
22683
22608
|
...E
|
|
22684
22609
|
});
|
|
@@ -22690,16 +22615,16 @@ function Xg(e, t, n) {
|
|
|
22690
22615
|
if (typeof a == "number" && a !== r)
|
|
22691
22616
|
return e;
|
|
22692
22617
|
const x = Ms(e), S = Ms(t);
|
|
22693
|
-
if (!
|
|
22618
|
+
if (!Ug(x, S))
|
|
22694
22619
|
return f({
|
|
22695
22620
|
...e,
|
|
22696
|
-
...
|
|
22621
|
+
...Xg(x, S, t, p)
|
|
22697
22622
|
});
|
|
22698
22623
|
if (c < l && typeof p == "number" && !d) {
|
|
22699
22624
|
const E = Oo({ ...t, ...e });
|
|
22700
22625
|
return f({
|
|
22701
22626
|
...e,
|
|
22702
|
-
...
|
|
22627
|
+
...Kg(p, c, E)
|
|
22703
22628
|
});
|
|
22704
22629
|
}
|
|
22705
22630
|
if (d) {
|
|
@@ -22722,17 +22647,17 @@ function Xg(e, t, n) {
|
|
|
22722
22647
|
});
|
|
22723
22648
|
return $ || I ? f(e) : e;
|
|
22724
22649
|
}
|
|
22725
|
-
function
|
|
22650
|
+
function Zg(e, t, n, i) {
|
|
22726
22651
|
const o = t.slice(0, e).reduce((r, c) => r + c, 0), a = n.slice(e + 1, t.length - 1).reduce((r, c) => r + c, 0);
|
|
22727
22652
|
return Math.max(
|
|
22728
22653
|
ho,
|
|
22729
22654
|
i - o - a - ho
|
|
22730
22655
|
);
|
|
22731
22656
|
}
|
|
22732
|
-
function
|
|
22657
|
+
function Qg(e, t) {
|
|
22733
22658
|
return Math.random() * (t - e) + e;
|
|
22734
22659
|
}
|
|
22735
|
-
function
|
|
22660
|
+
function eh(e) {
|
|
22736
22661
|
return Object.fromEntries(
|
|
22737
22662
|
Sn.map((t) => [
|
|
22738
22663
|
t,
|
|
@@ -22748,12 +22673,12 @@ function Dr(e, t, n = 0) {
|
|
|
22748
22673
|
])
|
|
22749
22674
|
);
|
|
22750
22675
|
}
|
|
22751
|
-
function
|
|
22676
|
+
function th(e, t, n, i, o, a) {
|
|
22752
22677
|
return e.slice(0, t).map((r, c) => {
|
|
22753
22678
|
const l = Oi[c], d = Bi[c], p = zi[c];
|
|
22754
22679
|
return {
|
|
22755
22680
|
key: r,
|
|
22756
|
-
textPrefix:
|
|
22681
|
+
textPrefix: Fg[r],
|
|
22757
22682
|
widthKey: Sn[c],
|
|
22758
22683
|
width: n[Sn[c]],
|
|
22759
22684
|
paddingLeftKey: l,
|
|
@@ -22765,7 +22690,7 @@ function Qg(e, t, n, i, o, a) {
|
|
|
22765
22690
|
};
|
|
22766
22691
|
});
|
|
22767
22692
|
}
|
|
22768
|
-
function
|
|
22693
|
+
function nh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o, activeEvent: a, layoutId: r, onUpdateSettings: c }) {
|
|
22769
22694
|
const { prefix: l } = hn(), d = !!o, {
|
|
22770
22695
|
columns: p,
|
|
22771
22696
|
type: f,
|
|
@@ -22793,14 +22718,14 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22793
22718
|
textHoverColor: O,
|
|
22794
22719
|
backgroundHoverColor: F,
|
|
22795
22720
|
dividerHoverColor: T
|
|
22796
|
-
} = e, [L, V] = le(void 0), [
|
|
22721
|
+
} = e, [L, V] = le(void 0), [G, Z] = le(null), W = H === "on" && (!n || i), ye = ($ ?? 0) > 0, m = f === "b", he = ue(null), re = ue(null), [we, He] = le(null), [se, xe] = le(go), K = Gl(se), be = Math.max(0, ((x ?? 0) - K) / 2), ge = Math.min(z ?? 0, be), pe = Math.max(ge, Li), ce = ((x ?? 0) + K) / 2;
|
|
22797
22722
|
zt(() => {
|
|
22798
22723
|
if (!n) {
|
|
22799
22724
|
xe(go);
|
|
22800
22725
|
return;
|
|
22801
22726
|
}
|
|
22802
22727
|
const Le = () => {
|
|
22803
|
-
xe(
|
|
22728
|
+
xe(Dg(he.current));
|
|
22804
22729
|
};
|
|
22805
22730
|
Le();
|
|
22806
22731
|
const ze = he.current;
|
|
@@ -22824,7 +22749,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22824
22749
|
textHoverColor: O,
|
|
22825
22750
|
backgroundHoverColor: F,
|
|
22826
22751
|
dividerHoverColor: T
|
|
22827
|
-
},
|
|
22752
|
+
}, Bg, zg), Ae = a && a !== "default" ? `${l}-state-${a}` : "", Ce = `${!n || i ? M === "default" ? `${l}-entry-hover-default` : M === "blinds" ? `${l}-entry-hover-blinds` : M === "reveal" ? `${l}-entry-hover-reveal` : "" : ""} ${Ae}`.trim(), _ = M === "reveal" && (!n || i), Q = (w == null ? void 0 : w[0]) ?? !1, R = (w == null ? void 0 : w[1]) ?? !1, U = ue(e), X = ue(r);
|
|
22828
22753
|
We(() => {
|
|
22829
22754
|
if (!c || !n) {
|
|
22830
22755
|
U.current = e, X.current = r;
|
|
@@ -22841,7 +22766,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22841
22766
|
U.current = e;
|
|
22842
22767
|
return;
|
|
22843
22768
|
}
|
|
22844
|
-
const Ue =
|
|
22769
|
+
const Ue = Jg(
|
|
22845
22770
|
e,
|
|
22846
22771
|
Le,
|
|
22847
22772
|
{ designWidth: se }
|
|
@@ -22849,7 +22774,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22849
22774
|
U.current = e, Xl(e, Ue) && c(Ue);
|
|
22850
22775
|
}, [e, c, n, r, se]);
|
|
22851
22776
|
const me = Ne(
|
|
22852
|
-
() =>
|
|
22777
|
+
() => eh(e),
|
|
22853
22778
|
[
|
|
22854
22779
|
e.AColumnWidth,
|
|
22855
22780
|
e.BColumnWidth,
|
|
@@ -22885,7 +22810,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22885
22810
|
e.EColumnPaddingBottom
|
|
22886
22811
|
]
|
|
22887
22812
|
), ke = Ne(() => Array.isArray(k) && k.length > 0 ? k : [...Qn], [k]), B = Ne(
|
|
22888
|
-
() =>
|
|
22813
|
+
() => th(
|
|
22889
22814
|
ke,
|
|
22890
22815
|
p,
|
|
22891
22816
|
me,
|
|
@@ -22931,7 +22856,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22931
22856
|
return;
|
|
22932
22857
|
}
|
|
22933
22858
|
V(Math.min(Le + I, ot.length));
|
|
22934
|
-
},
|
|
22859
|
+
}, Ge = (Le) => Y(Le, n ?? !1), vt = m ? P ?? 0 : j ?? 0, xt = h ?? 0, pt = g ?? 0, Nt = vt + pt / 2, qt = Math.max(xt, zr), at = $s(
|
|
22935
22860
|
0,
|
|
22936
22861
|
dt.length,
|
|
22937
22862
|
Q,
|
|
@@ -22939,7 +22864,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22939
22864
|
yt,
|
|
22940
22865
|
y ?? 0,
|
|
22941
22866
|
n ?? !1
|
|
22942
|
-
).borderTopWidth, Ot = we != null ? `${we}px` : `calc(${at} + ${
|
|
22867
|
+
).borderTopWidth, Ot = we != null ? `${we}px` : `calc(${at} + ${Ge(Nt)})`, kt = m ? "rowPaddingTopB" : "rowPaddingTop", Ke = B[0], it = B[B.length - 1], Ve = Be[0], ht = Be[Be.length - 1], Et = Ke && Ve ? Math.max(Ve.paddingLeft, Li) : 0, Mt = it && ht ? Math.max(ht.paddingRight, Li) : 0, an = Me, mn = (Le) => {
|
|
22943
22868
|
const ze = he.current;
|
|
22944
22869
|
if (!ze)
|
|
22945
22870
|
return { x: 0, y: 0 };
|
|
@@ -22955,18 +22880,18 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
22955
22880
|
Z(null);
|
|
22956
22881
|
return;
|
|
22957
22882
|
}
|
|
22958
|
-
const { x: je, y: De } = mn(ze), mt = (v == null ? void 0 : v.min) ?? 80, _e = (v == null ? void 0 : v.max) ?? 320, tt = (
|
|
22883
|
+
const { x: je, y: De } = mn(ze), mt = (v == null ? void 0 : v.min) ?? 80, _e = (v == null ? void 0 : v.max) ?? 320, tt = (G == null ? void 0 : G.rowId) === Le.id ? G.widthPx : Qg(mt, _e);
|
|
22959
22884
|
Z({
|
|
22960
22885
|
rowId: Le.id,
|
|
22961
22886
|
url: Ue.url,
|
|
22962
22887
|
objectFit: "contain",
|
|
22963
|
-
isVideo:
|
|
22888
|
+
isVideo: xg(Ue),
|
|
22964
22889
|
widthPx: tt,
|
|
22965
22890
|
x: je,
|
|
22966
22891
|
y: De
|
|
22967
22892
|
});
|
|
22968
22893
|
}, St = (Le) => {
|
|
22969
|
-
if (!W || !
|
|
22894
|
+
if (!W || !G) return;
|
|
22970
22895
|
const { x: ze, y: Ue } = mn(Le);
|
|
22971
22896
|
Z((je) => !je || je.x === ze && je.y === Ue ? je : { ...je, x: ze, y: Ue });
|
|
22972
22897
|
}, Kt = () => {
|
|
@@ -23018,7 +22943,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23018
22943
|
const Wt = Ne(
|
|
23019
22944
|
() => !m && ka.some((Le) => {
|
|
23020
22945
|
const ze = Le.charAt(0), Ue = e[`${Le}VerticalAlign`];
|
|
23021
|
-
return
|
|
22946
|
+
return ql(Ue, e, ze);
|
|
23022
22947
|
}),
|
|
23023
22948
|
[
|
|
23024
22949
|
m,
|
|
@@ -23059,7 +22984,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23059
22984
|
});
|
|
23060
22985
|
}), Ze.forEach(($t) => {
|
|
23061
22986
|
const Bt = Array.from($t.querySelectorAll("[data-list-col]"));
|
|
23062
|
-
|
|
22987
|
+
Wg($t, Bt, _t);
|
|
23063
22988
|
}), Le.offsetHeight, Ze.forEach(($t) => {
|
|
23064
22989
|
const Bt = Array.from($t.querySelectorAll("[data-list-col]")), Pt = $t.getBoundingClientRect().top, Ut = /* @__PURE__ */ new Map(), Dt = Bt.map((Ct) => {
|
|
23065
22990
|
const Xt = Ct.querySelector(`.${l}-list-col-title`), gt = {
|
|
@@ -23092,7 +23017,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23092
23017
|
_t,
|
|
23093
23018
|
Tt
|
|
23094
23019
|
), Oe = Qt - oe;
|
|
23095
|
-
|
|
23020
|
+
_g(Ct.titleEl, Oe);
|
|
23096
23021
|
const Ye = Br(
|
|
23097
23022
|
Ct,
|
|
23098
23023
|
Pt,
|
|
@@ -23128,10 +23053,10 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23128
23053
|
dt,
|
|
23129
23054
|
Re
|
|
23130
23055
|
]);
|
|
23131
|
-
const sn = Ne(() =>
|
|
23132
|
-
return /* @__PURE__ */
|
|
23056
|
+
const sn = Ne(() => Cg(l), [l]);
|
|
23057
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
23133
23058
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: sn } }),
|
|
23134
|
-
/* @__PURE__ */ s("div", { style: Ie, children: /* @__PURE__ */
|
|
23059
|
+
/* @__PURE__ */ s("div", { style: Ie, children: /* @__PURE__ */ q(
|
|
23135
23060
|
"div",
|
|
23136
23061
|
{
|
|
23137
23062
|
ref: he,
|
|
@@ -23143,7 +23068,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23143
23068
|
onMouseMove: W ? St : void 0,
|
|
23144
23069
|
onMouseLeave: W ? Kt : void 0,
|
|
23145
23070
|
children: [
|
|
23146
|
-
/* @__PURE__ */
|
|
23071
|
+
/* @__PURE__ */ q("div", { style: { width: "100%", position: "relative" }, children: [
|
|
23147
23072
|
dt.map((Le, ze) => {
|
|
23148
23073
|
var mt;
|
|
23149
23074
|
const Ue = (((mt = Le.link) == null ? void 0 : mt.length) ?? 0) > 0, je = Ue && (!n || i) ? "a" : "div", De = $s(
|
|
@@ -23155,7 +23080,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23155
23080
|
y ?? 0,
|
|
23156
23081
|
n ?? !1
|
|
23157
23082
|
);
|
|
23158
|
-
return /* @__PURE__ */
|
|
23083
|
+
return /* @__PURE__ */ q(
|
|
23159
23084
|
je,
|
|
23160
23085
|
{
|
|
23161
23086
|
ref: ze === 0 ? (_e) => {
|
|
@@ -23175,31 +23100,31 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23175
23100
|
"div",
|
|
23176
23101
|
{
|
|
23177
23102
|
className: `${l}-row-padding-handle`,
|
|
23178
|
-
style: { height:
|
|
23103
|
+
style: { height: Ge(vt) }
|
|
23179
23104
|
}
|
|
23180
23105
|
),
|
|
23181
|
-
/* @__PURE__ */
|
|
23106
|
+
/* @__PURE__ */ q(
|
|
23182
23107
|
"div",
|
|
23183
23108
|
{
|
|
23184
23109
|
className: `${l}-list-cols-row${m ? "" : ` ${l}-list-cols-row-h`}${d && ze === 0 && m ? ` ${l}-list-cols-row-controls` : ""}`,
|
|
23185
23110
|
...m ? {} : { "data-list-row": "" },
|
|
23186
|
-
style: m ? void 0 : { minHeight:
|
|
23111
|
+
style: m ? void 0 : { minHeight: Ge(pt) },
|
|
23187
23112
|
children: [
|
|
23188
23113
|
B.map((_e, tt) => {
|
|
23189
|
-
const Ze = tt === B.length - 1, _t = Be[tt], Tt = _e.paddingBottom, $t =
|
|
23190
|
-
paddingLeft:
|
|
23191
|
-
paddingRight:
|
|
23114
|
+
const Ze = tt === B.length - 1, _t = Be[tt], Tt = _e.paddingBottom, $t = Sg(Le.cells[_e.key]), Bt = m && $t && Tt > 0, Pt = m ? { minHeight: Ge(pt) } : { width: Ge(Re[tt]) }, Ut = m ? {
|
|
23115
|
+
paddingLeft: Ge(ge),
|
|
23116
|
+
paddingRight: Ge(ge)
|
|
23192
23117
|
} : {
|
|
23193
|
-
paddingLeft:
|
|
23194
|
-
paddingRight:
|
|
23195
|
-
}, Dt = _e.textPrefix.charAt(0), Ht = m ?
|
|
23118
|
+
paddingLeft: Ge(_t.paddingLeft),
|
|
23119
|
+
paddingRight: Ge(_t.paddingRight)
|
|
23120
|
+
}, Dt = _e.textPrefix.charAt(0), Ht = m ? Rg(
|
|
23196
23121
|
e[`${_e.textPrefix}VerticalAlign`]
|
|
23197
|
-
) :
|
|
23122
|
+
) : Ig(
|
|
23198
23123
|
e[`${_e.textPrefix}VerticalAlign`],
|
|
23199
23124
|
e,
|
|
23200
23125
|
Dt
|
|
23201
23126
|
), ln = m && $t && d && ze === 0;
|
|
23202
|
-
return /* @__PURE__ */
|
|
23127
|
+
return /* @__PURE__ */ q(
|
|
23203
23128
|
"div",
|
|
23204
23129
|
{
|
|
23205
23130
|
className: m ? `${l}-list-col-wrap` : void 0,
|
|
@@ -23232,7 +23157,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23232
23157
|
style: {
|
|
23233
23158
|
...Ls(rr(e, _e.textPrefix), n),
|
|
23234
23159
|
...Rs(e, _e.textPrefix, l, n),
|
|
23235
|
-
...m ? {} :
|
|
23160
|
+
...m ? {} : Mg(Ht.kind)
|
|
23236
23161
|
},
|
|
23237
23162
|
children: Le.cells[_e.key] ?? null
|
|
23238
23163
|
}
|
|
@@ -23243,7 +23168,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23243
23168
|
"div",
|
|
23244
23169
|
{
|
|
23245
23170
|
className: `${l}-row-padding-handle`,
|
|
23246
|
-
style: { height:
|
|
23171
|
+
style: { height: Ge(Tt) }
|
|
23247
23172
|
}
|
|
23248
23173
|
),
|
|
23249
23174
|
ln && /* @__PURE__ */ s(
|
|
@@ -23262,7 +23187,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23262
23187
|
bottom: 0,
|
|
23263
23188
|
left: 0,
|
|
23264
23189
|
width: "100%",
|
|
23265
|
-
height:
|
|
23190
|
+
height: Ge(Math.max(Tt, zr))
|
|
23266
23191
|
}
|
|
23267
23192
|
}
|
|
23268
23193
|
)
|
|
@@ -23271,7 +23196,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23271
23196
|
_e.key
|
|
23272
23197
|
);
|
|
23273
23198
|
}),
|
|
23274
|
-
d && ze === 0 && m && /* @__PURE__ */
|
|
23199
|
+
d && ze === 0 && m && /* @__PURE__ */ q(et, { children: [
|
|
23275
23200
|
/* @__PURE__ */ s(
|
|
23276
23201
|
rn,
|
|
23277
23202
|
{
|
|
@@ -23289,7 +23214,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23289
23214
|
position: "absolute",
|
|
23290
23215
|
top: 0,
|
|
23291
23216
|
left: 0,
|
|
23292
|
-
width:
|
|
23217
|
+
width: Ge(pe),
|
|
23293
23218
|
height: "100%"
|
|
23294
23219
|
}
|
|
23295
23220
|
}
|
|
@@ -23311,8 +23236,8 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23311
23236
|
areaStyle: {
|
|
23312
23237
|
position: "absolute",
|
|
23313
23238
|
top: 0,
|
|
23314
|
-
left:
|
|
23315
|
-
width:
|
|
23239
|
+
left: Ge(Math.max(pe, Me - pe)),
|
|
23240
|
+
width: Ge(pe),
|
|
23316
23241
|
height: "100%"
|
|
23317
23242
|
}
|
|
23318
23243
|
}
|
|
@@ -23325,7 +23250,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23325
23250
|
"div",
|
|
23326
23251
|
{
|
|
23327
23252
|
className: `${l}-row-padding-handle`,
|
|
23328
|
-
style: { height:
|
|
23253
|
+
style: { height: Ge(xt) }
|
|
23329
23254
|
}
|
|
23330
23255
|
),
|
|
23331
23256
|
d && ze === 0 && !m && /* @__PURE__ */ s(
|
|
@@ -23345,7 +23270,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23345
23270
|
bottom: 0,
|
|
23346
23271
|
left: 0,
|
|
23347
23272
|
width: "100%",
|
|
23348
|
-
height:
|
|
23273
|
+
height: Ge(qt)
|
|
23349
23274
|
}
|
|
23350
23275
|
}
|
|
23351
23276
|
)
|
|
@@ -23371,11 +23296,11 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23371
23296
|
top: at,
|
|
23372
23297
|
left: 0,
|
|
23373
23298
|
width: "100%",
|
|
23374
|
-
height:
|
|
23299
|
+
height: Ge(Math.max(vt, zr))
|
|
23375
23300
|
}
|
|
23376
23301
|
}
|
|
23377
23302
|
) }, "row-padding-handles"),
|
|
23378
|
-
d && !m && Ke && it && /* @__PURE__ */
|
|
23303
|
+
d && !m && Ke && it && /* @__PURE__ */ q("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
23379
23304
|
/* @__PURE__ */ s(
|
|
23380
23305
|
rn,
|
|
23381
23306
|
{
|
|
@@ -23394,7 +23319,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23394
23319
|
position: "absolute",
|
|
23395
23320
|
top: 0,
|
|
23396
23321
|
left: 0,
|
|
23397
|
-
width:
|
|
23322
|
+
width: Ge(Et),
|
|
23398
23323
|
height: "100%"
|
|
23399
23324
|
}
|
|
23400
23325
|
}
|
|
@@ -23417,8 +23342,8 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23417
23342
|
areaStyle: {
|
|
23418
23343
|
position: "absolute",
|
|
23419
23344
|
top: 0,
|
|
23420
|
-
left:
|
|
23421
|
-
width:
|
|
23345
|
+
left: Ge(an - Mt),
|
|
23346
|
+
width: Ge(Mt),
|
|
23422
23347
|
height: "100%"
|
|
23423
23348
|
}
|
|
23424
23349
|
}
|
|
@@ -23432,7 +23357,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23432
23357
|
mt.paddingLeft,
|
|
23433
23358
|
Li
|
|
23434
23359
|
);
|
|
23435
|
-
return /* @__PURE__ */
|
|
23360
|
+
return /* @__PURE__ */ q("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
23436
23361
|
/* @__PURE__ */ s(
|
|
23437
23362
|
rn,
|
|
23438
23363
|
{
|
|
@@ -23451,8 +23376,8 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23451
23376
|
areaStyle: {
|
|
23452
23377
|
position: "absolute",
|
|
23453
23378
|
top: 0,
|
|
23454
|
-
left:
|
|
23455
|
-
width:
|
|
23379
|
+
left: Ge(je - _e),
|
|
23380
|
+
width: Ge(_e),
|
|
23456
23381
|
height: "100%"
|
|
23457
23382
|
}
|
|
23458
23383
|
}
|
|
@@ -23474,8 +23399,8 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23474
23399
|
areaStyle: {
|
|
23475
23400
|
position: "absolute",
|
|
23476
23401
|
top: 0,
|
|
23477
|
-
left:
|
|
23478
|
-
width:
|
|
23402
|
+
left: Ge(je),
|
|
23403
|
+
width: Ge(tt),
|
|
23479
23404
|
height: "100%"
|
|
23480
23405
|
}
|
|
23481
23406
|
}
|
|
@@ -23483,7 +23408,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23483
23408
|
] }, `${Le.paddingRightKey}-padding`);
|
|
23484
23409
|
}),
|
|
23485
23410
|
d && !m && B.slice(0, -1).map((Le, ze) => {
|
|
23486
|
-
const Ue =
|
|
23411
|
+
const Ue = Zg(
|
|
23487
23412
|
ze,
|
|
23488
23413
|
ie,
|
|
23489
23414
|
te,
|
|
@@ -23502,8 +23427,8 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23502
23427
|
style: {
|
|
23503
23428
|
position: "absolute",
|
|
23504
23429
|
top: "0px",
|
|
23505
|
-
left:
|
|
23506
|
-
width:
|
|
23430
|
+
left: Ge(De),
|
|
23431
|
+
width: Ge(Es),
|
|
23507
23432
|
height: "calc(100%)",
|
|
23508
23433
|
pointerEvents: "auto"
|
|
23509
23434
|
}
|
|
@@ -23512,16 +23437,16 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23512
23437
|
})
|
|
23513
23438
|
] }),
|
|
23514
23439
|
yt && (() => {
|
|
23515
|
-
const Le = rr(e, On), ze =
|
|
23440
|
+
const Le = rr(e, On), ze = Pg(e.cutLabelVerticalAlign), Ue = Le.textTextAlign === "justify" || m;
|
|
23516
23441
|
return /* @__PURE__ */ s(
|
|
23517
23442
|
"button",
|
|
23518
23443
|
{
|
|
23519
23444
|
type: "button",
|
|
23520
23445
|
className: `${l}-cut-item`,
|
|
23521
23446
|
style: {
|
|
23522
|
-
minHeight:
|
|
23447
|
+
minHeight: Ge(E ?? 0),
|
|
23523
23448
|
cursor: Rt ? "pointer" : "default",
|
|
23524
|
-
|
|
23449
|
+
...$g(
|
|
23525
23450
|
R,
|
|
23526
23451
|
y ?? 0,
|
|
23527
23452
|
n ?? !1
|
|
@@ -23536,10 +23461,10 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23536
23461
|
className: `${l}-list-cols-row`,
|
|
23537
23462
|
style: {
|
|
23538
23463
|
...m ? {
|
|
23539
|
-
paddingLeft:
|
|
23540
|
-
paddingRight:
|
|
23464
|
+
paddingLeft: Ge(ge),
|
|
23465
|
+
paddingRight: Ge(ge)
|
|
23541
23466
|
} : {},
|
|
23542
|
-
justifyContent:
|
|
23467
|
+
justifyContent: Ag(Le.textTextAlign),
|
|
23543
23468
|
alignItems: Ts(ze)
|
|
23544
23469
|
},
|
|
23545
23470
|
children: /* @__PURE__ */ s(
|
|
@@ -23564,24 +23489,24 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23564
23489
|
}
|
|
23565
23490
|
);
|
|
23566
23491
|
})(),
|
|
23567
|
-
W &&
|
|
23568
|
-
const Le = Xo(
|
|
23492
|
+
W && G && (() => {
|
|
23493
|
+
const Le = Xo(G.widthPx), ze = {
|
|
23569
23494
|
width: Le,
|
|
23570
23495
|
height: "auto",
|
|
23571
23496
|
maxHeight: Le,
|
|
23572
23497
|
objectFit: "contain",
|
|
23573
|
-
left:
|
|
23574
|
-
top:
|
|
23498
|
+
left: G.x,
|
|
23499
|
+
top: G.y,
|
|
23575
23500
|
position: "absolute"
|
|
23576
23501
|
};
|
|
23577
23502
|
return /* @__PURE__ */ s(
|
|
23578
|
-
|
|
23503
|
+
wg,
|
|
23579
23504
|
{
|
|
23580
|
-
media:
|
|
23581
|
-
className:
|
|
23505
|
+
media: G,
|
|
23506
|
+
className: G.isVideo ? `${l}-hover-video` : `${l}-hover-image`,
|
|
23582
23507
|
style: ze
|
|
23583
23508
|
},
|
|
23584
|
-
`${
|
|
23509
|
+
`${G.rowId}-${G.url}`
|
|
23585
23510
|
);
|
|
23586
23511
|
})()
|
|
23587
23512
|
]
|
|
@@ -23589,7 +23514,7 @@ function eh({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
23589
23514
|
) })
|
|
23590
23515
|
] });
|
|
23591
23516
|
}
|
|
23592
|
-
const
|
|
23517
|
+
const ih = `import { useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties } from 'react';
|
|
23593
23518
|
import { CommonComponentProps } from '../props';
|
|
23594
23519
|
import { buildColorVars, scalingValue, useScopedStyles } from '../utils/index';
|
|
23595
23520
|
import { omitTextColors, TextStyles, textStylesToCss } from '../utils/textStylesToCss';
|
|
@@ -26593,7 +26518,7 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
|
|
|
26593
26518
|
}
|
|
26594
26519
|
}
|
|
26595
26520
|
};
|
|
26596
|
-
function
|
|
26521
|
+
function oh(e) {
|
|
26597
26522
|
return {
|
|
26598
26523
|
type: "string",
|
|
26599
26524
|
label: e,
|
|
@@ -26611,15 +26536,15 @@ function Bo(e) {
|
|
|
26611
26536
|
display: { type: "range-control" }
|
|
26612
26537
|
};
|
|
26613
26538
|
}
|
|
26614
|
-
function
|
|
26539
|
+
function rh() {
|
|
26615
26540
|
return Object.fromEntries(
|
|
26616
26541
|
Ki.map((e, t) => {
|
|
26617
26542
|
const n = Qn[t], i = `${e} column`;
|
|
26618
|
-
return [n,
|
|
26543
|
+
return [n, oh(i)];
|
|
26619
26544
|
})
|
|
26620
26545
|
);
|
|
26621
26546
|
}
|
|
26622
|
-
function
|
|
26547
|
+
function ah() {
|
|
26623
26548
|
const e = {};
|
|
26624
26549
|
for (const t of Ki)
|
|
26625
26550
|
e[`${t}ColumnWidth`] = Bo(`${t} column width`), e[`${t}ColumnPaddingLeft`] = Bo(`${t} column padding left`), e[`${t}ColumnPaddingRight`] = Bo(`${t} column padding right`), e[`${t}ColumnPaddingBottom`] = Bo(`${t} column padding bottom`);
|
|
@@ -26635,7 +26560,7 @@ function As(e = {}) {
|
|
|
26635
26560
|
const o = n.type === "b" && t ? t : {};
|
|
26636
26561
|
return { ...i, ...o, ...n };
|
|
26637
26562
|
}
|
|
26638
|
-
function
|
|
26563
|
+
function sh(e) {
|
|
26639
26564
|
const t = {};
|
|
26640
26565
|
if (e === On)
|
|
26641
26566
|
t[`${e}VerticalAlign`] = {
|
|
@@ -26707,14 +26632,14 @@ function rh(e) {
|
|
|
26707
26632
|
display: { type: "text-appearance" }
|
|
26708
26633
|
}, t;
|
|
26709
26634
|
}
|
|
26710
|
-
const
|
|
26635
|
+
const lh = po.reduce(
|
|
26711
26636
|
(e, t) => ({
|
|
26712
26637
|
...e,
|
|
26713
|
-
...
|
|
26638
|
+
...sh(t)
|
|
26714
26639
|
}),
|
|
26715
26640
|
{}
|
|
26716
26641
|
);
|
|
26717
|
-
function
|
|
26642
|
+
function ch(e) {
|
|
26718
26643
|
return {
|
|
26719
26644
|
verticalAlign: e === On ? "Center" : "Top",
|
|
26720
26645
|
textFontFamily: "Arial",
|
|
@@ -26732,10 +26657,10 @@ function sh(e) {
|
|
|
26732
26657
|
}
|
|
26733
26658
|
};
|
|
26734
26659
|
}
|
|
26735
|
-
function
|
|
26660
|
+
function dh(e, t = {}) {
|
|
26736
26661
|
var n;
|
|
26737
26662
|
return {
|
|
26738
|
-
...
|
|
26663
|
+
...ch(e),
|
|
26739
26664
|
...t.default,
|
|
26740
26665
|
...(n = t.byPrefix) == null ? void 0 : n[e]
|
|
26741
26666
|
};
|
|
@@ -26744,7 +26669,7 @@ const ks = /* @__PURE__ */ new Set([
|
|
|
26744
26669
|
"textFontFamily",
|
|
26745
26670
|
"textFontSettings"
|
|
26746
26671
|
]);
|
|
26747
|
-
function
|
|
26672
|
+
function uh(e, t, n) {
|
|
26748
26673
|
const i = (a) => n === void 0 ? !0 : n === "common" ? ks.has(a) : !ks.has(a), o = {};
|
|
26749
26674
|
return i("verticalAlign") && t.verticalAlign !== void 0 && (o[`${e}VerticalAlign`] = Wa(t.verticalAlign)), i("textFontFamily") && t.textFontFamily !== void 0 && (o[bt(e, "textFontFamily")] = t.textFontFamily), i("textFontSettings") && t.textFontSettings !== void 0 && (o[bt(e, "textFontSettings")] = t.textFontSettings), i("textFontSize") && t.textFontSize !== void 0 && (o[bt(e, "textFontSize")] = t.textFontSize), i("textLineHeight") && t.textLineHeight !== void 0 && (o[bt(e, "textLineHeight")] = t.textLineHeight), i("textLetterSpacing") && t.textLetterSpacing !== void 0 && (o[bt(e, "textLetterSpacing")] = t.textLetterSpacing), i("textWordSpacing") && t.textWordSpacing !== void 0 && (o[bt(e, "textWordSpacing")] = t.textWordSpacing), i("textTextAlign") && t.textTextAlign !== void 0 && (o[bt(e, "textTextAlign")] = t.textTextAlign), i("textTextAppearance") && t.textTextAppearance !== void 0 && (o[bt(e, "textTextAppearance")] = t.textTextAppearance), o;
|
|
26750
26675
|
}
|
|
@@ -26752,12 +26677,12 @@ function Jo(e = {}, t) {
|
|
|
26752
26677
|
return po.reduce(
|
|
26753
26678
|
(n, i) => ({
|
|
26754
26679
|
...n,
|
|
26755
|
-
...
|
|
26680
|
+
...uh(i, dh(i, e), t)
|
|
26756
26681
|
}),
|
|
26757
26682
|
{}
|
|
26758
26683
|
);
|
|
26759
26684
|
}
|
|
26760
|
-
const
|
|
26685
|
+
const ph = Jo(), mh = Og();
|
|
26761
26686
|
function Yl(e) {
|
|
26762
26687
|
return [
|
|
26763
26688
|
bt(e, "textFontFamily"),
|
|
@@ -26771,7 +26696,7 @@ function Yl(e) {
|
|
|
26771
26696
|
`${e}VerticalAlign`
|
|
26772
26697
|
];
|
|
26773
26698
|
}
|
|
26774
|
-
function
|
|
26699
|
+
function gh() {
|
|
26775
26700
|
const e = [];
|
|
26776
26701
|
return ka.forEach((t, n) => {
|
|
26777
26702
|
const i = Qn[n], o = Yl(t);
|
|
@@ -26796,7 +26721,7 @@ function ph() {
|
|
|
26796
26721
|
}
|
|
26797
26722
|
}), e;
|
|
26798
26723
|
}
|
|
26799
|
-
const
|
|
26724
|
+
const hh = [
|
|
26800
26725
|
"textColor",
|
|
26801
26726
|
"backgroundColor",
|
|
26802
26727
|
"dividerColor",
|
|
@@ -26805,7 +26730,7 @@ const mh = [
|
|
|
26805
26730
|
"dividerHoverColor"
|
|
26806
26731
|
];
|
|
26807
26732
|
Yl(On);
|
|
26808
|
-
const
|
|
26733
|
+
const fh = [
|
|
26809
26734
|
...Ki.flatMap((e) => [
|
|
26810
26735
|
`${e}ColumnWidth`,
|
|
26811
26736
|
`${e}ColumnPaddingLeft`,
|
|
@@ -26842,7 +26767,7 @@ const gh = [
|
|
|
26842
26767
|
objectFit: "contain",
|
|
26843
26768
|
url: "https://cdn.cntrl.site/component-assets/grid(9).webp"
|
|
26844
26769
|
}
|
|
26845
|
-
],
|
|
26770
|
+
], yh = [
|
|
26846
26771
|
{
|
|
26847
26772
|
AColumn: "01",
|
|
26848
26773
|
BColumnWidth: "Ethan Parker",
|
|
@@ -26906,7 +26831,7 @@ const gh = [
|
|
|
26906
26831
|
image: di[6],
|
|
26907
26832
|
link: ""
|
|
26908
26833
|
}
|
|
26909
|
-
],
|
|
26834
|
+
], vh = [
|
|
26910
26835
|
...Ki.flatMap((e) => [
|
|
26911
26836
|
`${e}ColumnWidth`,
|
|
26912
26837
|
`${e}ColumnPaddingLeft`,
|
|
@@ -26914,7 +26839,7 @@ const gh = [
|
|
|
26914
26839
|
`${e}ColumnPaddingBottom`
|
|
26915
26840
|
]),
|
|
26916
26841
|
"columnsOrder"
|
|
26917
|
-
],
|
|
26842
|
+
], bh = {
|
|
26918
26843
|
type: "object",
|
|
26919
26844
|
version: 1,
|
|
26920
26845
|
content: {
|
|
@@ -26933,7 +26858,7 @@ const gh = [
|
|
|
26933
26858
|
items: {
|
|
26934
26859
|
type: "object",
|
|
26935
26860
|
properties: {
|
|
26936
|
-
...
|
|
26861
|
+
...rh(),
|
|
26937
26862
|
image: {
|
|
26938
26863
|
type: "object",
|
|
26939
26864
|
label: "Image",
|
|
@@ -26962,7 +26887,7 @@ const gh = [
|
|
|
26962
26887
|
},
|
|
26963
26888
|
required: ["image"]
|
|
26964
26889
|
},
|
|
26965
|
-
default:
|
|
26890
|
+
default: yh
|
|
26966
26891
|
},
|
|
26967
26892
|
settings: {
|
|
26968
26893
|
sizing: "auto auto",
|
|
@@ -27111,7 +27036,7 @@ const gh = [
|
|
|
27111
27036
|
max: 100,
|
|
27112
27037
|
display: { type: "range-control" }
|
|
27113
27038
|
},
|
|
27114
|
-
...
|
|
27039
|
+
...ah(),
|
|
27115
27040
|
columnsOrder: {
|
|
27116
27041
|
type: "array",
|
|
27117
27042
|
scope: "layout",
|
|
@@ -27131,7 +27056,7 @@ const gh = [
|
|
|
27131
27056
|
title: "Text Hover",
|
|
27132
27057
|
display: { type: "palette-color-picker" }
|
|
27133
27058
|
},
|
|
27134
|
-
...
|
|
27059
|
+
...lh,
|
|
27135
27060
|
backgroundColor: {
|
|
27136
27061
|
type: "string",
|
|
27137
27062
|
scope: "common",
|
|
@@ -27165,7 +27090,7 @@ const gh = [
|
|
|
27165
27090
|
showVisibility: [!0, !0],
|
|
27166
27091
|
textColor: "#000000",
|
|
27167
27092
|
textHoverColor: "#FFFFFF",
|
|
27168
|
-
...
|
|
27093
|
+
...ph,
|
|
27169
27094
|
...Jo({}, "common"),
|
|
27170
27095
|
backgroundColor: "#FFFFFF00",
|
|
27171
27096
|
dividerColor: "#373737",
|
|
@@ -27244,12 +27169,12 @@ const gh = [
|
|
|
27244
27169
|
})
|
|
27245
27170
|
},
|
|
27246
27171
|
displayRules: [
|
|
27247
|
-
...
|
|
27172
|
+
...gh(),
|
|
27248
27173
|
{
|
|
27249
27174
|
if: { name: "type", value: "a" },
|
|
27250
27175
|
then: { name: "properties.textPaddingLR.display.visible", value: !1 }
|
|
27251
27176
|
},
|
|
27252
|
-
...
|
|
27177
|
+
...fh.map((e) => ({
|
|
27253
27178
|
if: { name: "type", value: "b" },
|
|
27254
27179
|
then: { name: `properties.${e}.display.visible`, value: !1 }
|
|
27255
27180
|
})),
|
|
@@ -27284,7 +27209,7 @@ const gh = [
|
|
|
27284
27209
|
"rowPaddingTop",
|
|
27285
27210
|
"rowPaddingBottom",
|
|
27286
27211
|
"rowPaddingTopB",
|
|
27287
|
-
...
|
|
27212
|
+
...vh
|
|
27288
27213
|
]
|
|
27289
27214
|
},
|
|
27290
27215
|
panels: [
|
|
@@ -27329,12 +27254,12 @@ const gh = [
|
|
|
27329
27254
|
tooltip: "Typography",
|
|
27330
27255
|
layout: [
|
|
27331
27256
|
"__componentName__",
|
|
27332
|
-
|
|
27257
|
+
mh
|
|
27333
27258
|
]
|
|
27334
27259
|
}
|
|
27335
27260
|
],
|
|
27336
27261
|
paletteBookmark: {
|
|
27337
|
-
items: [...
|
|
27262
|
+
items: [...hh],
|
|
27338
27263
|
panelIds: ["general", "typeStyle"],
|
|
27339
27264
|
stateItems: {
|
|
27340
27265
|
default: [
|
|
@@ -27347,13 +27272,13 @@ const gh = [
|
|
|
27347
27272
|
]
|
|
27348
27273
|
}
|
|
27349
27274
|
}
|
|
27350
|
-
},
|
|
27351
|
-
element:
|
|
27275
|
+
}, xh = {
|
|
27276
|
+
element: nh,
|
|
27352
27277
|
id: "list",
|
|
27353
27278
|
name: "Programme",
|
|
27354
27279
|
category: "lists",
|
|
27355
27280
|
layoutMode: "structured",
|
|
27356
|
-
normalizeLayoutSettingsUpdate: (e, t) =>
|
|
27281
|
+
normalizeLayoutSettingsUpdate: (e, t) => Yg(e, t),
|
|
27357
27282
|
preview: {
|
|
27358
27283
|
type: "image",
|
|
27359
27284
|
url: "https://cdn.cntrl.site/component-assets/Programme_List.png"
|
|
@@ -27379,9 +27304,9 @@ const gh = [
|
|
|
27379
27304
|
[`${t}TextFontSettings`]: `${bt(t, "textFontFamily")}`
|
|
27380
27305
|
}), {})
|
|
27381
27306
|
},
|
|
27382
|
-
schema:
|
|
27383
|
-
sourceCode:
|
|
27384
|
-
}, Ws = 300, Vn = 4e-3,
|
|
27307
|
+
schema: bh,
|
|
27308
|
+
sourceCode: ih
|
|
27309
|
+
}, Ws = 300, Vn = 4e-3, wh = {
|
|
27385
27310
|
questionColor: "question-color",
|
|
27386
27311
|
answerColor: "answer-color",
|
|
27387
27312
|
dividerColor: "divider-color",
|
|
@@ -27390,8 +27315,8 @@ const gh = [
|
|
|
27390
27315
|
iconHoverColor: "icon-hover-color",
|
|
27391
27316
|
iconActiveColor: "icon-active-color",
|
|
27392
27317
|
dividerHoverColor: "divider-hover-color"
|
|
27393
|
-
},
|
|
27394
|
-
function
|
|
27318
|
+
}, Sh = ["hover", "focus", "filled", "success", "error"];
|
|
27319
|
+
function $h(e) {
|
|
27395
27320
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
27396
27321
|
}
|
|
27397
27322
|
function _s(e, t, n, i) {
|
|
@@ -27403,7 +27328,7 @@ function Fs(e, t, n, i) {
|
|
|
27403
27328
|
[`--${n}-text-leading-gap`]: Y((o - t) / 2, i)
|
|
27404
27329
|
};
|
|
27405
27330
|
}
|
|
27406
|
-
function
|
|
27331
|
+
function Ch(e) {
|
|
27407
27332
|
return `
|
|
27408
27333
|
.${e}-wrapper {
|
|
27409
27334
|
box-sizing: border-box;
|
|
@@ -27466,7 +27391,7 @@ function Sh(e) {
|
|
|
27466
27391
|
display: flex;
|
|
27467
27392
|
align-items: center;
|
|
27468
27393
|
justify-content: space-between;
|
|
27469
|
-
gap: ${
|
|
27394
|
+
gap: ${$h(20)};
|
|
27470
27395
|
width: 100%;
|
|
27471
27396
|
min-width: 0;
|
|
27472
27397
|
min-height: var(--${e}-question-min-height, unset);
|
|
@@ -27614,7 +27539,7 @@ function Ns(e, t, n, i, o, a, r, c) {
|
|
|
27614
27539
|
color: c ?? "#000000"
|
|
27615
27540
|
};
|
|
27616
27541
|
}
|
|
27617
|
-
function
|
|
27542
|
+
function Th({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o, activeEvent: a }) {
|
|
27618
27543
|
const { prefix: r } = hn(), c = o ?? !1, {
|
|
27619
27544
|
wrapperWidth: l = 1,
|
|
27620
27545
|
cellMinHeight: d = 0,
|
|
@@ -27646,7 +27571,7 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27646
27571
|
answerFontSize: T,
|
|
27647
27572
|
answerLineHeight: L,
|
|
27648
27573
|
answerLetterSpacing: V,
|
|
27649
|
-
answerWordSpacing:
|
|
27574
|
+
answerWordSpacing: G,
|
|
27650
27575
|
answerTextAppearance: Z,
|
|
27651
27576
|
questionPaddingLeft: W = 0,
|
|
27652
27577
|
questionPaddingTop: ye = 0,
|
|
@@ -27661,7 +27586,7 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27661
27586
|
}, [S]), We(() => {
|
|
27662
27587
|
n && !o && !i && K(/* @__PURE__ */ new Set());
|
|
27663
27588
|
}, [n, o, i]);
|
|
27664
|
-
const ge = (
|
|
27589
|
+
const ge = (Ge) => Y(Ge, n ?? !1), pe = Math.max(W, Vn), ce = Math.max(ye, Vn), Ie = Math.max(m, Vn), Ae = Math.max(he, Vn), ve = Math.max(re, Vn), Ce = Math.max(we, Vn), _ = Math.max(He, Vn), Q = Math.max(0, (l ?? 1) - w - y), R = Math.max(0, (l ?? 1) - re), U = Math.max(0, (l ?? 1) - he), X = Math.max(w, Vn), me = Math.max(0, (l ?? 1) - W - y), de = Ne(() => xe.size === 0 ? 0 : Math.min(...xe), [xe]), fe = $e((Ge) => xe.has(Ge), [xe]), Ee = be && x === "default" ? `${r}-entry-hover-default` : "", ke = g ?? "", B = ke !== "", Me = $.replace(/^rotate /, ""), te = `${r}-icon-anim-${Me}`, ie = xn(nn(
|
|
27665
27590
|
Ns(
|
|
27666
27591
|
h,
|
|
27667
27592
|
P,
|
|
@@ -27680,7 +27605,7 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27680
27605
|
T,
|
|
27681
27606
|
L,
|
|
27682
27607
|
V,
|
|
27683
|
-
|
|
27608
|
+
G,
|
|
27684
27609
|
Z,
|
|
27685
27610
|
E
|
|
27686
27611
|
),
|
|
@@ -27704,24 +27629,24 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27704
27629
|
iconHoverColor: M,
|
|
27705
27630
|
iconActiveColor: C,
|
|
27706
27631
|
dividerHoverColor: j
|
|
27707
|
-
},
|
|
27632
|
+
}, wh, Sh), lt = a && a !== "default" ? `${r}-state-${a}` : "", ut = $e((Ge) => {
|
|
27708
27633
|
be && K((vt) => {
|
|
27709
|
-
if (vt.has(
|
|
27634
|
+
if (vt.has(Ge)) {
|
|
27710
27635
|
const pt = new Set(vt);
|
|
27711
|
-
return pt.delete(
|
|
27636
|
+
return pt.delete(Ge), pt;
|
|
27712
27637
|
}
|
|
27713
27638
|
if (S === "on")
|
|
27714
|
-
return /* @__PURE__ */ new Set([
|
|
27639
|
+
return /* @__PURE__ */ new Set([Ge]);
|
|
27715
27640
|
const xt = new Set(vt);
|
|
27716
|
-
return xt.add(
|
|
27641
|
+
return xt.add(Ge), xt;
|
|
27717
27642
|
});
|
|
27718
|
-
}, [be, S]), Rt = Ne(() =>
|
|
27643
|
+
}, [be, S]), Rt = Ne(() => Ch(r), [r]), rt = {
|
|
27719
27644
|
[`--${r}-divider-width`]: Y(p, n ?? !1),
|
|
27720
27645
|
[`--${r}-divider-style`]: f,
|
|
27721
27646
|
[`--${r}-icon-max-width`]: Y(y, n ?? !1),
|
|
27722
27647
|
...d > 0 ? { [`--${r}-question-min-height`]: Y(d, n ?? !1) } : {}
|
|
27723
27648
|
};
|
|
27724
|
-
return /* @__PURE__ */
|
|
27649
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
27725
27650
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Rt } }),
|
|
27726
27651
|
/* @__PURE__ */ s("div", { style: yt, children: /* @__PURE__ */ s(
|
|
27727
27652
|
"div",
|
|
@@ -27737,17 +27662,17 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27737
27662
|
maxWidth: "100%",
|
|
27738
27663
|
...rt
|
|
27739
27664
|
},
|
|
27740
|
-
children: se.map((
|
|
27665
|
+
children: se.map((Ge, vt) => {
|
|
27741
27666
|
var Ot;
|
|
27742
|
-
const xt = fe(vt), pt = ((Ot =
|
|
27743
|
-
return /* @__PURE__ */
|
|
27667
|
+
const xt = fe(vt), pt = ((Ot = Ge.question) == null ? void 0 : Ot.trim()) ?? "", Nt = Ge.answer, qt = ((Nt == null ? void 0 : Nt.length) ?? 0) > 0, at = c && vt === de;
|
|
27668
|
+
return /* @__PURE__ */ q(
|
|
27744
27669
|
"div",
|
|
27745
27670
|
{
|
|
27746
27671
|
className: ct(`${r}-item`, xt && `${r}-item-open`),
|
|
27747
27672
|
"data-faq-item": "",
|
|
27748
27673
|
children: [
|
|
27749
|
-
/* @__PURE__ */
|
|
27750
|
-
at && /* @__PURE__ */
|
|
27674
|
+
/* @__PURE__ */ q("div", { className: `${r}-question-controls`, children: [
|
|
27675
|
+
at && /* @__PURE__ */ q(et, { children: [
|
|
27751
27676
|
/* @__PURE__ */ s(
|
|
27752
27677
|
rn,
|
|
27753
27678
|
{
|
|
@@ -27813,7 +27738,7 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27813
27738
|
}
|
|
27814
27739
|
)
|
|
27815
27740
|
] }),
|
|
27816
|
-
/* @__PURE__ */
|
|
27741
|
+
/* @__PURE__ */ q(
|
|
27817
27742
|
"button",
|
|
27818
27743
|
{
|
|
27819
27744
|
type: "button",
|
|
@@ -27835,9 +27760,9 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27835
27760
|
"aria-hidden": "true"
|
|
27836
27761
|
}
|
|
27837
27762
|
),
|
|
27838
|
-
/* @__PURE__ */
|
|
27763
|
+
/* @__PURE__ */ q("span", { className: `${r}-question-row`, children: [
|
|
27839
27764
|
/* @__PURE__ */ s("span", { className: Be, children: pt }),
|
|
27840
|
-
|
|
27765
|
+
qt && (B ? /* @__PURE__ */ s("span", { className: `${r}-icon ${r}-icon-custom ${te}`, "aria-hidden": "true", children: /* @__PURE__ */ s(
|
|
27841
27766
|
wn,
|
|
27842
27767
|
{
|
|
27843
27768
|
url: ke,
|
|
@@ -27880,8 +27805,8 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
27880
27805
|
}
|
|
27881
27806
|
)
|
|
27882
27807
|
] }),
|
|
27883
|
-
|
|
27884
|
-
at && xt && /* @__PURE__ */
|
|
27808
|
+
qt && Nt && /* @__PURE__ */ s("div", { className: `${r}-panel`, "aria-hidden": !xt, children: /* @__PURE__ */ s("div", { className: `${r}-panel-inner`, children: /* @__PURE__ */ q("div", { className: `${r}-answer-controls`, children: [
|
|
27809
|
+
at && xt && /* @__PURE__ */ q(et, { children: [
|
|
27885
27810
|
/* @__PURE__ */ s(
|
|
27886
27811
|
rn,
|
|
27887
27812
|
{
|
|
@@ -28005,7 +27930,7 @@ function $h({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
28005
27930
|
) })
|
|
28006
27931
|
] });
|
|
28007
27932
|
}
|
|
28008
|
-
const
|
|
27933
|
+
const Lh = `import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
28009
27934
|
import cn from 'classnames';
|
|
28010
27935
|
import { CommonComponentProps } from '../props';
|
|
28011
27936
|
import { buildColorVars, scalingValue, useScopedStyles } from '../utils/index';
|
|
@@ -28822,7 +28747,7 @@ const Hs = {
|
|
|
28822
28747
|
fontStyle: { type: "string" }
|
|
28823
28748
|
}
|
|
28824
28749
|
}
|
|
28825
|
-
},
|
|
28750
|
+
}, Ih = [
|
|
28826
28751
|
"questionColor",
|
|
28827
28752
|
"answerColor",
|
|
28828
28753
|
"dividerColor",
|
|
@@ -28831,7 +28756,7 @@ const Hs = {
|
|
|
28831
28756
|
"iconHoverColor",
|
|
28832
28757
|
"iconActiveColor",
|
|
28833
28758
|
"dividerHoverColor"
|
|
28834
|
-
],
|
|
28759
|
+
], Rh = {
|
|
28835
28760
|
type: "object",
|
|
28836
28761
|
version: 1,
|
|
28837
28762
|
content: {
|
|
@@ -29287,7 +29212,7 @@ const Hs = {
|
|
|
29287
29212
|
}
|
|
29288
29213
|
],
|
|
29289
29214
|
paletteBookmark: {
|
|
29290
|
-
items: [...
|
|
29215
|
+
items: [...Ih],
|
|
29291
29216
|
panelIds: ["general", "typeStyle"],
|
|
29292
29217
|
stateItems: {
|
|
29293
29218
|
default: [
|
|
@@ -29302,8 +29227,8 @@ const Hs = {
|
|
|
29302
29227
|
]
|
|
29303
29228
|
}
|
|
29304
29229
|
}
|
|
29305
|
-
},
|
|
29306
|
-
element:
|
|
29230
|
+
}, Eh = {
|
|
29231
|
+
element: Th,
|
|
29307
29232
|
id: "faq",
|
|
29308
29233
|
name: "FAQ",
|
|
29309
29234
|
category: "lists",
|
|
@@ -29331,12 +29256,12 @@ const Hs = {
|
|
|
29331
29256
|
questionFontSettings: "questionFontFamily",
|
|
29332
29257
|
answerFontSettings: "answerFontFamily"
|
|
29333
29258
|
},
|
|
29334
|
-
schema:
|
|
29335
|
-
sourceCode:
|
|
29259
|
+
schema: Rh,
|
|
29260
|
+
sourceCode: Lh
|
|
29336
29261
|
}, Bn = (e) => e.display === "cover", Sr = (e) => {
|
|
29337
29262
|
const t = e.ratioValue ?? "1:1", n = e.reversed ?? !1, [i, o] = t.split(":").map(Number);
|
|
29338
29263
|
return `${n ? o : i} / ${n ? i : o}`;
|
|
29339
|
-
}, Os = 100,
|
|
29264
|
+
}, Os = 100, Mh = 0.2, Bs = 8, Jl = ({
|
|
29340
29265
|
enabled: e,
|
|
29341
29266
|
onClose: t,
|
|
29342
29267
|
animMs: n = 300,
|
|
@@ -29344,7 +29269,7 @@ const Hs = {
|
|
|
29344
29269
|
}) => {
|
|
29345
29270
|
const [o, a] = le(0), [r, c] = le(!1), l = ue(null), d = ue(0);
|
|
29346
29271
|
d.current = o;
|
|
29347
|
-
const p = Ne(() => typeof window > "u" ? Os : Math.max(Os, window.innerHeight *
|
|
29272
|
+
const p = Ne(() => typeof window > "u" ? Os : Math.max(Os, window.innerHeight * Mh), []), f = $e((h) => Math.max(0, 1 - h / (p * 1.5)), [p]), x = $e((h) => Math.max(0, 1 - h / (p * 0.45)), [p]), S = $e((h) => {
|
|
29348
29273
|
const P = typeof window < "u" ? window.innerHeight : 800, k = Math.max(0.88, 1 - h / P * 0.12);
|
|
29349
29274
|
return `translateY(${h}px) scale(${k})`;
|
|
29350
29275
|
}, []), g = $e(() => {
|
|
@@ -29421,29 +29346,29 @@ const Hs = {
|
|
|
29421
29346
|
touchAction: H ? "none" : "pan-x"
|
|
29422
29347
|
} : void 0
|
|
29423
29348
|
};
|
|
29424
|
-
},
|
|
29349
|
+
}, Ph = "[data-lightbox-scrollable]", Zl = () => {
|
|
29425
29350
|
We(() => {
|
|
29426
29351
|
const e = window.scrollY, t = document.body.style.overflow, n = document.body.style.position, i = document.body.style.top, o = document.body.style.width, a = document.documentElement.style.overflow;
|
|
29427
29352
|
document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.top = `-${e}px`, document.body.style.width = "100%", document.documentElement.style.overflow = "hidden";
|
|
29428
29353
|
const r = (c) => {
|
|
29429
29354
|
const l = c.target;
|
|
29430
|
-
l instanceof Element && l.closest(
|
|
29355
|
+
l instanceof Element && l.closest(Ph) || c.preventDefault();
|
|
29431
29356
|
};
|
|
29432
29357
|
return document.addEventListener("touchmove", r, { passive: !1 }), () => {
|
|
29433
29358
|
document.removeEventListener("touchmove", r), document.body.style.overflow = t, document.body.style.position = n, document.body.style.top = i, document.body.style.width = o, document.documentElement.style.overflow = a, window.scrollTo(0, e);
|
|
29434
29359
|
};
|
|
29435
29360
|
}, []);
|
|
29436
|
-
},
|
|
29361
|
+
}, Ah = (e, t, n, i) => {
|
|
29437
29362
|
const o = Math.min(Math.abs(e) / Math.max(i, 1), 1);
|
|
29438
29363
|
return t + (n - t) * o;
|
|
29439
|
-
},
|
|
29364
|
+
}, kh = (e) => {
|
|
29440
29365
|
e.style.transition = "", e.style.transform = "", e.style.willChange = "";
|
|
29441
|
-
},
|
|
29366
|
+
}, Wh = (e) => {
|
|
29442
29367
|
const t = getComputedStyle(e).transform;
|
|
29443
29368
|
return t === "none" ? 0 : new DOMMatrixReadOnly(t).m41;
|
|
29444
|
-
},
|
|
29369
|
+
}, _h = (e, t, n, { duration: i, easing: o, onComplete: a }) => {
|
|
29445
29370
|
const r = e.scrollLeft, c = n - r, l = r - n, d = (g, y) => {
|
|
29446
|
-
|
|
29371
|
+
kh(t), e.scrollLeft = g, y && (a == null || a());
|
|
29447
29372
|
};
|
|
29448
29373
|
if (Math.abs(c) < 0.5)
|
|
29449
29374
|
return d(n, !0), () => {
|
|
@@ -29457,21 +29382,21 @@ const Hs = {
|
|
|
29457
29382
|
return t.addEventListener("transitionend", S), t.style.willChange = "transform", t.style.transition = "none", t.style.transform = "translate3d(0, 0, 0)", t.offsetHeight, t.style.transition = `transform ${i}ms ${o}`, t.style.transform = `translate3d(${l}px, 0, 0)`, f = window.setTimeout(() => {
|
|
29458
29383
|
p || (p = !0, x(), d(n, !0));
|
|
29459
29384
|
}, i + 64), () => {
|
|
29460
|
-
p || (p = !0, x(), d(r -
|
|
29385
|
+
p || (p = !0, x(), d(r - Wh(t), !1));
|
|
29461
29386
|
};
|
|
29462
|
-
}, no = 300,
|
|
29387
|
+
}, no = 300, Fh = 900, Nh = 1500, Hh = "cubic-bezier(0.16, 1, 0.3, 1)", Oh = 3e3, Bh = 2, zh = 16, Dh = 0.05, Vh = 1, zo = 0.3, jh = 50, qh = 20, $i = 4e-3, Di = ["title1", "title2", "title3"], Gh = {
|
|
29463
29388
|
title1: "1",
|
|
29464
29389
|
title2: "2",
|
|
29465
29390
|
title3: "3"
|
|
29466
|
-
},
|
|
29391
|
+
}, Kh = {
|
|
29467
29392
|
title1: "title1Color",
|
|
29468
29393
|
title2: "title2Color",
|
|
29469
29394
|
title3: "title3Color"
|
|
29470
|
-
},
|
|
29395
|
+
}, Uh = {
|
|
29471
29396
|
title1: 0.02,
|
|
29472
29397
|
title2: 0.02,
|
|
29473
29398
|
title3: 0.02
|
|
29474
|
-
}, Do = (e) => `max(${e}, ${
|
|
29399
|
+
}, Do = (e) => `max(${e}, ${qh}px)`, Xh = (e) => {
|
|
29475
29400
|
if (!Array.isArray(e) || e.length === 0) return {};
|
|
29476
29401
|
const t = e.find((o) => (o == null ? void 0 : o.type) === "paragraph") ?? e[0], n = t == null ? void 0 : t.children;
|
|
29477
29402
|
if (!Array.isArray(n)) return {};
|
|
@@ -29481,7 +29406,7 @@ const Hs = {
|
|
|
29481
29406
|
title2: i[1],
|
|
29482
29407
|
title3: i[2]
|
|
29483
29408
|
};
|
|
29484
|
-
},
|
|
29409
|
+
}, Yh = (e) => {
|
|
29485
29410
|
if (!e)
|
|
29486
29411
|
return { title1: "", title2: "", title3: "" };
|
|
29487
29412
|
if (e.title1 || e.title2 || e.title3)
|
|
@@ -29490,13 +29415,13 @@ const Hs = {
|
|
|
29490
29415
|
title2: e.title2 ?? "",
|
|
29491
29416
|
title3: e.title3 ?? ""
|
|
29492
29417
|
};
|
|
29493
|
-
const t =
|
|
29418
|
+
const t = Xh(e.text);
|
|
29494
29419
|
return {
|
|
29495
29420
|
title1: t.title1 ?? "",
|
|
29496
29421
|
title2: t.title2 ?? "",
|
|
29497
29422
|
title3: t.title3 ?? ""
|
|
29498
29423
|
};
|
|
29499
|
-
}, At = (e, t) => `${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`,
|
|
29424
|
+
}, At = (e, t) => `${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`, Jh = (e) => [
|
|
29500
29425
|
At(e, "fontFamily"),
|
|
29501
29426
|
At(e, "fontSettings"),
|
|
29502
29427
|
{
|
|
@@ -29510,13 +29435,13 @@ const Hs = {
|
|
|
29510
29435
|
},
|
|
29511
29436
|
At(e, "textAlign"),
|
|
29512
29437
|
At(e, "textAppearance")
|
|
29513
|
-
],
|
|
29438
|
+
], Zh = () => ({
|
|
29514
29439
|
type: "tab",
|
|
29515
29440
|
id: "stripTextStyle",
|
|
29516
29441
|
tabs: Object.fromEntries(
|
|
29517
29442
|
Di.map((e) => [
|
|
29518
|
-
|
|
29519
|
-
|
|
29443
|
+
Gh[e],
|
|
29444
|
+
Jh(e)
|
|
29520
29445
|
])
|
|
29521
29446
|
)
|
|
29522
29447
|
}), Na = (e, t) => {
|
|
@@ -29547,7 +29472,7 @@ const Hs = {
|
|
|
29547
29472
|
resolved: Na(e.length, n),
|
|
29548
29473
|
effective: Ql(e.length, n)
|
|
29549
29474
|
};
|
|
29550
|
-
},
|
|
29475
|
+
}, Qh = (e, t, n, i, o, a, r) => {
|
|
29551
29476
|
const c = [];
|
|
29552
29477
|
return t && c.push({
|
|
29553
29478
|
prefix: "title1",
|
|
@@ -29587,9 +29512,9 @@ const Hs = {
|
|
|
29587
29512
|
wordSpacing: n("wordSpacing") ?? 0,
|
|
29588
29513
|
textAlign: n("textAlign") ?? "left",
|
|
29589
29514
|
textAppearance: n("textAppearance"),
|
|
29590
|
-
color: e[
|
|
29515
|
+
color: e[Kh[t]]
|
|
29591
29516
|
};
|
|
29592
|
-
},
|
|
29517
|
+
}, ef = (e, t, n, i) => e.slice(0, i).reduce(
|
|
29593
29518
|
(o, a, r) => o + (a != null && a.marginLeftKey ? n[a.marginLeftKey] ?? 0 : 0) + (t[r] ?? 0),
|
|
29594
29519
|
0
|
|
29595
29520
|
), jr = (e, t, n) => {
|
|
@@ -29600,7 +29525,7 @@ const Hs = {
|
|
|
29600
29525
|
fontWeight: ((o = t.fontSettings) == null ? void 0 : o.fontWeight) ?? 400,
|
|
29601
29526
|
fontStyle: ((a = t.fontSettings) == null ? void 0 : a.fontStyle) ?? "normal"
|
|
29602
29527
|
},
|
|
29603
|
-
fontSize: t.fontSize ??
|
|
29528
|
+
fontSize: t.fontSize ?? Uh[e],
|
|
29604
29529
|
lineHeight: t.lineHeight,
|
|
29605
29530
|
letterSpacing: t.letterSpacing,
|
|
29606
29531
|
wordSpacing: t.wordSpacing,
|
|
@@ -29609,7 +29534,7 @@ const Hs = {
|
|
|
29609
29534
|
color: t.color ?? "#ffffff"
|
|
29610
29535
|
};
|
|
29611
29536
|
return nn(i, n);
|
|
29612
|
-
},
|
|
29537
|
+
}, tf = ({
|
|
29613
29538
|
prefix: e,
|
|
29614
29539
|
images: t,
|
|
29615
29540
|
settings: n,
|
|
@@ -29643,10 +29568,10 @@ const Hs = {
|
|
|
29643
29568
|
titleHeaderLayout: k = "desktop",
|
|
29644
29569
|
contentMarginTop: z,
|
|
29645
29570
|
iconMarginLeft: ne
|
|
29646
|
-
} = n, ee = (u) => Y(u, i ?? !1), J = l ?? n.thumnailSize ?? 0.03, O = ee(J), F = ee(d), T = ee(p ?? 0.02), L = ee(f ?? 0), V = ee(z ?? 0),
|
|
29571
|
+
} = n, ee = (u) => Y(u, i ?? !1), J = l ?? n.thumnailSize ?? 0.03, O = ee(J), F = ee(d), T = ee(p ?? 0.02), L = ee(f ?? 0), V = ee(z ?? 0), G = Do(V), Z = ee(ne ?? 0), [W, ye] = le(0), m = ue(W);
|
|
29647
29572
|
m.current = W;
|
|
29648
|
-
const he = t[W], { title1: re, title2: we, title3: He } =
|
|
29649
|
-
() =>
|
|
29573
|
+
const he = t[W], { title1: re, title2: we, title3: He } = Yh(he), se = jr("title1", Vr(n, "title1"), i), xe = jr("title2", Vr(n, "title2"), i), K = jr("title3", Vr(n, "title3"), i), be = k === "mobile", ge = !o && (!i || a), pe = ge, ce = ge, Ie = ge, Ae = Bn(I), ve = Ae ? { "--image-aspect-ratio": Sr(I) } : void 0, Ce = !!(re || we || He), _ = Ne(
|
|
29574
|
+
() => Qh(e, re, we, He, se, xe, K),
|
|
29650
29575
|
[e, W, re, we, He, se, xe, K]
|
|
29651
29576
|
), Q = Ne(() => ({ title1Width: v, title2Width: H, title3Width: M }), [v, H, M]), R = Ne(() => _.map((u) => Q[u.widthKey]), [_, Q]), U = Ne(() => Na(_.length, R), [_.length, R]), X = Ne(() => Ql(_.length, R), [_.length, R]), me = Ne(() => _.filter((u) => u.prefix === "title1"), [_]), de = Ne(() => _.filter((u) => u.prefix === "title2" || u.prefix === "title3"), [_]), fe = Ne(() => zs(me, Q), [me, Q]), Ee = Ne(() => zs(de, Q), [de, Q]), ke = $e((u, b) => {
|
|
29652
29577
|
const A = _.indexOf(u);
|
|
@@ -29712,7 +29637,7 @@ const Hs = {
|
|
|
29712
29637
|
[de, Ee.resolved, Be, te]
|
|
29713
29638
|
), Xe = (u, b) => {
|
|
29714
29639
|
const A = u.marginLeftKey ? te[u.marginLeftKey] ?? 0 : 0, { effectiveWidth: ae, resolvedWidth: Se, maxWidth: Fe } = ke(u, b), Qe = o && b === "two-row-top";
|
|
29715
|
-
return /* @__PURE__ */
|
|
29640
|
+
return /* @__PURE__ */ q(
|
|
29716
29641
|
"div",
|
|
29717
29642
|
{
|
|
29718
29643
|
className: `${e}-title-cell`,
|
|
@@ -29786,7 +29711,7 @@ const Hs = {
|
|
|
29786
29711
|
);
|
|
29787
29712
|
})() : null, A = _.flatMap((ae, Se) => {
|
|
29788
29713
|
if (!ae.marginLeftKey) return [];
|
|
29789
|
-
const Fe = te[ae.marginLeftKey] ?? 0, Qe =
|
|
29714
|
+
const Fe = te[ae.marginLeftKey] ?? 0, Qe = ef(
|
|
29790
29715
|
_,
|
|
29791
29716
|
U,
|
|
29792
29717
|
te,
|
|
@@ -29876,7 +29801,7 @@ const Hs = {
|
|
|
29876
29801
|
}
|
|
29877
29802
|
}
|
|
29878
29803
|
) }, `${u.widthKey}-junction`);
|
|
29879
|
-
}), Rt = ue(null), rt = ue(null),
|
|
29804
|
+
}), Rt = ue(null), rt = ue(null), Ge = ue(null), vt = ue(null), xt = ue([]), pt = ue([]), Nt = ue(0), qt = ue(null), at = ue({
|
|
29880
29805
|
isActive: !1,
|
|
29881
29806
|
startX: 0,
|
|
29882
29807
|
scrollLeft: 0,
|
|
@@ -29888,12 +29813,12 @@ const Hs = {
|
|
|
29888
29813
|
), [gn, St] = le(!1), [Kt, on] = le(!1), [Zt, Wt] = le(!0), sn = ue(null), Le = ue(null), ze = ue(!1), Ue = ue(!1), je = ue(null), De = ue(null), mt = pe && !Zt, _e = $e(() => {
|
|
29889
29814
|
pe && (Wt(!0), De.current && clearTimeout(De.current), De.current = setTimeout(() => {
|
|
29890
29815
|
at.current.isActive || Wt(!1);
|
|
29891
|
-
},
|
|
29816
|
+
}, Oh));
|
|
29892
29817
|
}, [pe]), tt = $e(() => {
|
|
29893
29818
|
o || Ue.current || (Ue.current = !0, on(!1), je.current = setTimeout(() => {
|
|
29894
29819
|
r();
|
|
29895
29820
|
}, no));
|
|
29896
|
-
}, [o, r]), Ze = () => /* @__PURE__ */
|
|
29821
|
+
}, [o, r]), Ze = () => /* @__PURE__ */ q(
|
|
29897
29822
|
"div",
|
|
29898
29823
|
{
|
|
29899
29824
|
className: `${e}-close-icon`,
|
|
@@ -29958,16 +29883,16 @@ const Hs = {
|
|
|
29958
29883
|
}
|
|
29959
29884
|
), Tt = () => {
|
|
29960
29885
|
const u = _.find((ae) => ae.prefix === "title1"), b = _.filter((ae) => ae.prefix === "title2" || ae.prefix === "title3"), A = b.length > 0 || o || (P ?? 0) > 0;
|
|
29961
|
-
return /* @__PURE__ */
|
|
29962
|
-
/* @__PURE__ */
|
|
29886
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
29887
|
+
/* @__PURE__ */ q("div", { className: `${e}-header-row-top`, children: [
|
|
29963
29888
|
(C ?? 0) > 0 || o ? _t() : null,
|
|
29964
29889
|
u && Xe(u, "two-row-top"),
|
|
29965
29890
|
x && Ze()
|
|
29966
29891
|
] }),
|
|
29967
|
-
A ? /* @__PURE__ */
|
|
29968
|
-
b.length > 0 ? /* @__PURE__ */
|
|
29892
|
+
A ? /* @__PURE__ */ q("div", { className: `${e}-header-row-bottom-wrap`, children: [
|
|
29893
|
+
b.length > 0 ? /* @__PURE__ */ q("div", { className: `${e}-header-row-bottom`, children: [
|
|
29969
29894
|
b.map((ae) => Xe(ae, "two-row-bottom")),
|
|
29970
|
-
o && /* @__PURE__ */
|
|
29895
|
+
o && /* @__PURE__ */ q(et, { children: [
|
|
29971
29896
|
lt(),
|
|
29972
29897
|
ut()
|
|
29973
29898
|
] })
|
|
@@ -29989,10 +29914,10 @@ const Hs = {
|
|
|
29989
29914
|
)
|
|
29990
29915
|
] }) : null
|
|
29991
29916
|
] });
|
|
29992
|
-
}, $t = () => /* @__PURE__ */
|
|
29917
|
+
}, $t = () => /* @__PURE__ */ q(et, { children: [
|
|
29993
29918
|
(C ?? 0) > 0 || o ? _t("single-row") : null,
|
|
29994
29919
|
_.map((u) => Xe(u, "single-row")),
|
|
29995
|
-
o ? /* @__PURE__ */
|
|
29920
|
+
o ? /* @__PURE__ */ q(et, { children: [
|
|
29996
29921
|
dt(),
|
|
29997
29922
|
yt()
|
|
29998
29923
|
] }) : null,
|
|
@@ -30091,7 +30016,7 @@ const Hs = {
|
|
|
30091
30016
|
b !== m.current && wt(b);
|
|
30092
30017
|
}, cn = () => {
|
|
30093
30018
|
sn.current = null;
|
|
30094
|
-
},
|
|
30019
|
+
}, Gt = (u) => {
|
|
30095
30020
|
const b = rt.current;
|
|
30096
30021
|
b && (b.style.scrollSnapType = u ? "" : "none");
|
|
30097
30022
|
}, Cn = () => {
|
|
@@ -30110,28 +30035,28 @@ const Hs = {
|
|
|
30110
30035
|
u.scrollLeft = Ve.current, gt(), It(), ht.current = null, Et.current = !1;
|
|
30111
30036
|
return;
|
|
30112
30037
|
}
|
|
30113
|
-
u.scrollLeft += b *
|
|
30038
|
+
u.scrollLeft += b * Dh, gt(), It(), _e(), ht.current = requestAnimationFrame(ii);
|
|
30114
30039
|
}, oi = () => {
|
|
30115
|
-
const u =
|
|
30040
|
+
const u = Ge.current;
|
|
30116
30041
|
u && (u.style.transition = "", u.style.transform = "", u.style.willChange = "");
|
|
30117
30042
|
}, Lo = (u, b, A, ae) => {
|
|
30118
|
-
oi(), u.scrollLeft = b, Ke.current = u.scrollLeft, gt(), A !== void 0 ? (m.current = A, ye(A)) : It(),
|
|
30043
|
+
oi(), u.scrollLeft = b, Ke.current = u.scrollLeft, gt(), A !== void 0 ? (m.current = A, ye(A)) : It(), Gt(!0), ae == null || ae();
|
|
30119
30044
|
}, Io = (u, { behavior: b = "smooth", activeIndex: A, onComplete: ae } = {}) => {
|
|
30120
|
-
const Se = rt.current, Fe =
|
|
30045
|
+
const Se = rt.current, Fe = Ge.current;
|
|
30121
30046
|
if (!Se || !Fe) return;
|
|
30122
|
-
if (Rn(), Cn(),
|
|
30047
|
+
if (Rn(), Cn(), Gt(!1), b === "auto") {
|
|
30123
30048
|
Lo(Se, u, A, ae);
|
|
30124
30049
|
return;
|
|
30125
30050
|
}
|
|
30126
|
-
const Qe = Math.abs(u - Se.scrollLeft), ft =
|
|
30051
|
+
const Qe = Math.abs(u - Se.scrollLeft), ft = Ah(
|
|
30127
30052
|
Qe,
|
|
30128
|
-
|
|
30129
|
-
|
|
30053
|
+
Fh,
|
|
30054
|
+
Nh,
|
|
30130
30055
|
Se.clientWidth * 0.55
|
|
30131
30056
|
);
|
|
30132
|
-
kt.current =
|
|
30057
|
+
kt.current = _h(Se, Fe, u, {
|
|
30133
30058
|
duration: ft,
|
|
30134
|
-
easing:
|
|
30059
|
+
easing: Hh,
|
|
30135
30060
|
onComplete: () => {
|
|
30136
30061
|
kt.current = null, Lo(Se, u, A, ae);
|
|
30137
30062
|
}
|
|
@@ -30146,7 +30071,7 @@ const Hs = {
|
|
|
30146
30071
|
if (!Se || t.length === 0) return;
|
|
30147
30072
|
const Fe = (ae ?? Se.scrollLeft) - u, Qe = Oe(u), ft = pt.current[Qe];
|
|
30148
30073
|
if (oe(ft)) {
|
|
30149
|
-
|
|
30074
|
+
Gt(!0), It();
|
|
30150
30075
|
return;
|
|
30151
30076
|
}
|
|
30152
30077
|
const tn = pt.current[Qe + 1], Yt = ft ? tn ? tn.offsetLeft - ft.offsetLeft : ft.offsetWidth : 0;
|
|
@@ -30161,7 +30086,7 @@ const Hs = {
|
|
|
30161
30086
|
}
|
|
30162
30087
|
const Ui = ae ?? Se.scrollLeft, Mo = Oe(Ui), Ha = pt.current[Mo];
|
|
30163
30088
|
if (Ha && Math.abs(Ha.offsetLeft - Ui) < 1) {
|
|
30164
|
-
|
|
30089
|
+
Gt(!0), It();
|
|
30165
30090
|
return;
|
|
30166
30091
|
}
|
|
30167
30092
|
$r("auto");
|
|
@@ -30178,7 +30103,7 @@ const Hs = {
|
|
|
30178
30103
|
Ot.current && (window.removeEventListener("pointerup", Ot.current), window.removeEventListener("pointercancel", Ot.current), Ot.current = null);
|
|
30179
30104
|
}, Ro = (u, b, A, ae, Se) => {
|
|
30180
30105
|
const Fe = A - u, Qe = ae - b, ft = Math.abs(Fe), tn = Math.abs(Qe);
|
|
30181
|
-
if (ft <
|
|
30106
|
+
if (ft < jh || ft <= tn) return !1;
|
|
30182
30107
|
const Yt = Fe < 0 ? 1 : -1, wi = Mt ? (Se + Yt + t.length) % t.length : Math.max(0, Math.min(t.length - 1, Se + Yt));
|
|
30183
30108
|
return wi === Se ? !1 : (En(wi), !0);
|
|
30184
30109
|
}, ri = (u) => {
|
|
@@ -30193,10 +30118,10 @@ const Hs = {
|
|
|
30193
30118
|
scrollLeft: 0,
|
|
30194
30119
|
startActiveIndex: 0,
|
|
30195
30120
|
hasMoved: !1
|
|
30196
|
-
}, St(!1), u !== void 0 && b.hasPointerCapture(u) && b.releasePointerCapture(u), Se ? Cr(A, "smooth", ae, Fe) : (
|
|
30121
|
+
}, St(!1), u !== void 0 && b.hasPointerCapture(u) && b.releasePointerCapture(u), Se ? Cr(A, "smooth", ae, Fe) : (Gt(!0), It()), _e();
|
|
30197
30122
|
}, Eo = (u, b) => {
|
|
30198
|
-
const A =
|
|
30199
|
-
|
|
30123
|
+
const A = qt.current;
|
|
30124
|
+
qt.current = null, A && (Ro(
|
|
30200
30125
|
A.startX,
|
|
30201
30126
|
A.startY,
|
|
30202
30127
|
u,
|
|
@@ -30206,8 +30131,8 @@ const Hs = {
|
|
|
30206
30131
|
}, Tr = (u) => {
|
|
30207
30132
|
if (!ce) return;
|
|
30208
30133
|
if (u.pointerType === "touch") {
|
|
30209
|
-
if (Rn(),
|
|
30210
|
-
|
|
30134
|
+
if (Rn(), Gt(!0), Bt(u.target)) return;
|
|
30135
|
+
qt.current = {
|
|
30211
30136
|
startX: u.clientX,
|
|
30212
30137
|
startY: u.clientY,
|
|
30213
30138
|
startActiveIndex: m.current
|
|
@@ -30223,7 +30148,7 @@ const Hs = {
|
|
|
30223
30148
|
scrollLeft: b.scrollLeft,
|
|
30224
30149
|
startActiveIndex: m.current,
|
|
30225
30150
|
hasMoved: !1
|
|
30226
|
-
},
|
|
30151
|
+
}, Gt(!1), _e(), b.setPointerCapture(u.pointerId), xi();
|
|
30227
30152
|
const A = (ae) => {
|
|
30228
30153
|
ae.pointerType === "mouse" && ri(ae.pointerId);
|
|
30229
30154
|
};
|
|
@@ -30237,11 +30162,11 @@ const Hs = {
|
|
|
30237
30162
|
return;
|
|
30238
30163
|
}
|
|
30239
30164
|
const A = u.clientX - at.current.startX;
|
|
30240
|
-
Math.abs(A) >
|
|
30165
|
+
Math.abs(A) > Vh && (at.current.hasMoved = !0, St(!0)), at.current.hasMoved && (u.preventDefault(), b.scrollLeft = at.current.scrollLeft - A, gt(!0), It(), _e());
|
|
30241
30166
|
}, D = (u) => {
|
|
30242
30167
|
if (ce) {
|
|
30243
30168
|
if (u.pointerType === "touch") {
|
|
30244
|
-
u.type === "pointerup" ? Eo(u.clientX, u.clientY) :
|
|
30169
|
+
u.type === "pointerup" ? Eo(u.clientX, u.clientY) : qt.current = null;
|
|
30245
30170
|
return;
|
|
30246
30171
|
}
|
|
30247
30172
|
u.pointerType === "mouse" && ri(u.pointerId);
|
|
@@ -30282,9 +30207,9 @@ const Hs = {
|
|
|
30282
30207
|
if (!u || o || !ge) return;
|
|
30283
30208
|
const b = (A) => {
|
|
30284
30209
|
if (A.preventDefault(), Math.abs(A.deltaY) <= Math.abs(A.deltaX)) return;
|
|
30285
|
-
const ae = A.deltaMode === 1 ?
|
|
30210
|
+
const ae = A.deltaMode === 1 ? zh : A.deltaMode === 2 ? u.clientHeight : 1, Se = A.deltaY * ae * Bh;
|
|
30286
30211
|
if (Se !== 0) {
|
|
30287
|
-
if (Cn(), Et.current || (Et.current = !0, Ve.current = u.scrollLeft, sn.current = null,
|
|
30212
|
+
if (Cn(), Et.current || (Et.current = !0, Ve.current = u.scrollLeft, sn.current = null, Gt(!1)), Ve.current += Se, !Mt) {
|
|
30288
30213
|
const Fe = u.scrollWidth - u.clientWidth;
|
|
30289
30214
|
Ve.current = Math.max(0, Math.min(Fe, Ve.current));
|
|
30290
30215
|
}
|
|
@@ -30315,7 +30240,7 @@ const Hs = {
|
|
|
30315
30240
|
return A.observe(u), () => {
|
|
30316
30241
|
Cn(), u.removeEventListener("scroll", b), A.disconnect();
|
|
30317
30242
|
};
|
|
30318
|
-
}, [t.length, Mt]), /* @__PURE__ */
|
|
30243
|
+
}, [t.length, Mt]), /* @__PURE__ */ q(
|
|
30319
30244
|
"div",
|
|
30320
30245
|
{
|
|
30321
30246
|
"data-selection": "none",
|
|
@@ -30333,7 +30258,7 @@ const Hs = {
|
|
|
30333
30258
|
},
|
|
30334
30259
|
children: [
|
|
30335
30260
|
/* @__PURE__ */ s("div", { className: `${e}-lightbox-backdrop`, style: { backgroundColor: c, ...Ut } }),
|
|
30336
|
-
/* @__PURE__ */
|
|
30261
|
+
/* @__PURE__ */ q(
|
|
30337
30262
|
"div",
|
|
30338
30263
|
{
|
|
30339
30264
|
ref: Rt,
|
|
@@ -30354,9 +30279,9 @@ const Hs = {
|
|
|
30354
30279
|
onPointerUp: D,
|
|
30355
30280
|
onPointerCancel: D,
|
|
30356
30281
|
onLostPointerCapture: Te,
|
|
30357
|
-
children: /* @__PURE__ */ s("div", { ref:
|
|
30282
|
+
children: /* @__PURE__ */ s("div", { ref: Ge, className: `${e}-lightbox-strip-track`, style: { gap: L }, children: mn.map((u, b) => {
|
|
30358
30283
|
const A = u.image.objectFit ?? "contain", ae = b % t.length, Se = Math.floor(b / t.length), Fe = Do(L), Qe = `calc(-0.5 * (${Fe} + ${L}))`;
|
|
30359
|
-
return /* @__PURE__ */
|
|
30284
|
+
return /* @__PURE__ */ q(
|
|
30360
30285
|
"div",
|
|
30361
30286
|
{
|
|
30362
30287
|
ref: (ft) => pt.current[b] = ft,
|
|
@@ -30399,7 +30324,7 @@ const Hs = {
|
|
|
30399
30324
|
}) })
|
|
30400
30325
|
}
|
|
30401
30326
|
) }),
|
|
30402
|
-
/* @__PURE__ */
|
|
30327
|
+
/* @__PURE__ */ q(
|
|
30403
30328
|
"div",
|
|
30404
30329
|
{
|
|
30405
30330
|
className: `${e}-lightbox-content-inner`,
|
|
@@ -30427,7 +30352,7 @@ const Hs = {
|
|
|
30427
30352
|
left: 0,
|
|
30428
30353
|
right: 0,
|
|
30429
30354
|
top: 0,
|
|
30430
|
-
height:
|
|
30355
|
+
height: G,
|
|
30431
30356
|
pointerEvents: "auto",
|
|
30432
30357
|
zIndex: 3
|
|
30433
30358
|
}
|
|
@@ -30453,7 +30378,7 @@ const Hs = {
|
|
|
30453
30378
|
className: `${e}-thumbnails`,
|
|
30454
30379
|
"data-lightbox-scrollable": "",
|
|
30455
30380
|
onClick: (A) => A.stopPropagation(),
|
|
30456
|
-
children: /* @__PURE__ */
|
|
30381
|
+
children: /* @__PURE__ */ q(
|
|
30457
30382
|
"div",
|
|
30458
30383
|
{
|
|
30459
30384
|
className: `${e}-thumbnails-track`,
|
|
@@ -30465,7 +30390,7 @@ const Hs = {
|
|
|
30465
30390
|
children: [
|
|
30466
30391
|
t.map((A, ae) => {
|
|
30467
30392
|
const Se = Do(F), Fe = `calc(-0.5 * (${Se} + ${F}))`;
|
|
30468
|
-
return /* @__PURE__ */
|
|
30393
|
+
return /* @__PURE__ */ q(
|
|
30469
30394
|
"div",
|
|
30470
30395
|
{
|
|
30471
30396
|
ref: (Qe) => {
|
|
@@ -30555,7 +30480,7 @@ const Hs = {
|
|
|
30555
30480
|
}
|
|
30556
30481
|
);
|
|
30557
30482
|
};
|
|
30558
|
-
function
|
|
30483
|
+
function nf(e) {
|
|
30559
30484
|
return `
|
|
30560
30485
|
.${e}-wrapper {
|
|
30561
30486
|
position: relative;
|
|
@@ -30950,15 +30875,15 @@ function ef(e) {
|
|
|
30950
30875
|
}
|
|
30951
30876
|
`;
|
|
30952
30877
|
}
|
|
30953
|
-
const
|
|
30878
|
+
const of = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: a }) => {
|
|
30954
30879
|
const { prefix: r } = hn(), { cover: c, coverFit: l } = e, d = ue(null), [p, f] = le(!1), x = t ?? [], S = p && x.length > 0, g = () => {
|
|
30955
30880
|
x.length !== 0 && f(!0);
|
|
30956
30881
|
};
|
|
30957
30882
|
return We(() => {
|
|
30958
30883
|
!n || i || o || f(!1);
|
|
30959
|
-
}, [n, i, o]), /* @__PURE__ */
|
|
30960
|
-
/* @__PURE__ */
|
|
30961
|
-
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html:
|
|
30884
|
+
}, [n, i, o]), /* @__PURE__ */ q(et, { children: [
|
|
30885
|
+
/* @__PURE__ */ q("div", { ref: d, className: `${r}-wrapper`, children: [
|
|
30886
|
+
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: nf(r) } }),
|
|
30962
30887
|
c && /* @__PURE__ */ s(
|
|
30963
30888
|
"div",
|
|
30964
30889
|
{
|
|
@@ -30981,7 +30906,7 @@ const tf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
30981
30906
|
const y = (a ? document.getElementById(a) : null) ?? document.body;
|
|
30982
30907
|
return yo(
|
|
30983
30908
|
/* @__PURE__ */ s(
|
|
30984
|
-
|
|
30909
|
+
tf,
|
|
30985
30910
|
{
|
|
30986
30911
|
prefix: r,
|
|
30987
30912
|
images: x,
|
|
@@ -30996,7 +30921,7 @@ const tf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
30996
30921
|
);
|
|
30997
30922
|
})()
|
|
30998
30923
|
] });
|
|
30999
|
-
},
|
|
30924
|
+
}, rf = `import { useEffect, useRef, useState, type MouseEvent } from 'react';
|
|
31000
30925
|
import { createPortal } from 'react-dom';
|
|
31001
30926
|
import { CommonComponentProps } from '../props';
|
|
31002
30927
|
import { useScopedStyles } from '../utils/useScopedStyles';
|
|
@@ -31550,7 +31475,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
|
|
|
31550
31475
|
</>
|
|
31551
31476
|
);
|
|
31552
31477
|
};
|
|
31553
|
-
`,
|
|
31478
|
+
`, af = "data:image/svg+xml," + encodeURIComponent(
|
|
31554
31479
|
'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.959 0.40332L0.402635 15.9597" stroke="#000000" stroke-width="1.14"/><path d="M15.959 15.9594L0.402635 0.403002" stroke="#000000" stroke-width="1.14"/></svg>'
|
|
31555
31480
|
), ui = {
|
|
31556
31481
|
fontSettings: {
|
|
@@ -31592,7 +31517,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
|
|
|
31592
31517
|
}
|
|
31593
31518
|
}
|
|
31594
31519
|
};
|
|
31595
|
-
function
|
|
31520
|
+
function sf(e) {
|
|
31596
31521
|
const t = {};
|
|
31597
31522
|
return t[At(e, "fontFamily")] = {
|
|
31598
31523
|
type: "string",
|
|
@@ -31636,13 +31561,13 @@ function rf(e) {
|
|
|
31636
31561
|
display: { type: "text-appearance", useTabDesign: !0 }
|
|
31637
31562
|
}, t;
|
|
31638
31563
|
}
|
|
31639
|
-
const
|
|
31564
|
+
const lf = Di.reduce(
|
|
31640
31565
|
(e, t) => ({
|
|
31641
31566
|
...e,
|
|
31642
|
-
...
|
|
31567
|
+
...sf(t)
|
|
31643
31568
|
}),
|
|
31644
31569
|
{}
|
|
31645
|
-
),
|
|
31570
|
+
), cf = Di.reduce(
|
|
31646
31571
|
(e, t) => ({
|
|
31647
31572
|
...e,
|
|
31648
31573
|
[At(t, "fontFamily")]: "Goudy Bookletter 1911",
|
|
@@ -31661,13 +31586,13 @@ const af = Di.reduce(
|
|
|
31661
31586
|
}),
|
|
31662
31587
|
{}
|
|
31663
31588
|
);
|
|
31664
|
-
function
|
|
31589
|
+
function qr(e) {
|
|
31665
31590
|
return Di.reduce((t, n) => {
|
|
31666
31591
|
const i = e[`${n}FontSize`], o = e[`${n}LineHeight`];
|
|
31667
31592
|
return i !== void 0 && (t[At(n, "fontSize")] = i), o !== void 0 && (t[At(n, "lineHeight")] = o), t;
|
|
31668
31593
|
}, {});
|
|
31669
31594
|
}
|
|
31670
|
-
const
|
|
31595
|
+
const df = Zh(), uf = {
|
|
31671
31596
|
type: "object",
|
|
31672
31597
|
version: 1,
|
|
31673
31598
|
settings: {
|
|
@@ -31860,7 +31785,7 @@ const lf = Yh(), cf = {
|
|
|
31860
31785
|
title: "Caption Default",
|
|
31861
31786
|
display: { type: "palette-color-picker" }
|
|
31862
31787
|
},
|
|
31863
|
-
...
|
|
31788
|
+
...lf,
|
|
31864
31789
|
contentMarginTop: {
|
|
31865
31790
|
type: "number",
|
|
31866
31791
|
scope: "layout",
|
|
@@ -31897,7 +31822,7 @@ const lf = Yh(), cf = {
|
|
|
31897
31822
|
ratioValue: "1:1",
|
|
31898
31823
|
reversed: !1
|
|
31899
31824
|
},
|
|
31900
|
-
closeIcon:
|
|
31825
|
+
closeIcon: af,
|
|
31901
31826
|
backgroundColor: "#FFFFFF",
|
|
31902
31827
|
closeIconColor: "#000000",
|
|
31903
31828
|
closeIconHoverColor: "#cccccc",
|
|
@@ -31912,7 +31837,7 @@ const lf = Yh(), cf = {
|
|
|
31912
31837
|
title1Color: "#000000",
|
|
31913
31838
|
title2Color: "#000000",
|
|
31914
31839
|
title3Color: "#000000",
|
|
31915
|
-
...
|
|
31840
|
+
...cf
|
|
31916
31841
|
},
|
|
31917
31842
|
layoutDefaults: {
|
|
31918
31843
|
m: {
|
|
@@ -31932,7 +31857,7 @@ const lf = Yh(), cf = {
|
|
|
31932
31857
|
closeIconMaxWidth: 0.04,
|
|
31933
31858
|
contentMarginTop: 0.08,
|
|
31934
31859
|
iconMarginLeft: 0.02,
|
|
31935
|
-
...
|
|
31860
|
+
...qr({
|
|
31936
31861
|
title1FontSize: 0.042,
|
|
31937
31862
|
title1LineHeight: 0.042,
|
|
31938
31863
|
title2FontSize: 0.042,
|
|
@@ -31958,7 +31883,7 @@ const lf = Yh(), cf = {
|
|
|
31958
31883
|
closeIconMaxWidth: 0.039,
|
|
31959
31884
|
contentMarginTop: 0.015,
|
|
31960
31885
|
iconMarginLeft: 0.02,
|
|
31961
|
-
...
|
|
31886
|
+
...qr({
|
|
31962
31887
|
title1FontSize: 0.0208,
|
|
31963
31888
|
title1LineHeight: 0.0208,
|
|
31964
31889
|
title2FontSize: 0.0208,
|
|
@@ -31984,7 +31909,7 @@ const lf = Yh(), cf = {
|
|
|
31984
31909
|
closeIconMaxWidth: 0.02,
|
|
31985
31910
|
contentMarginTop: 0.015,
|
|
31986
31911
|
iconMarginLeft: 0.02,
|
|
31987
|
-
...
|
|
31912
|
+
...qr({
|
|
31988
31913
|
title1FontSize: 0.011,
|
|
31989
31914
|
title1LineHeight: 0.02,
|
|
31990
31915
|
title2FontSize: 0.011,
|
|
@@ -32037,7 +31962,7 @@ const lf = Yh(), cf = {
|
|
|
32037
31962
|
title: "Type Style",
|
|
32038
31963
|
tooltip: "Typography",
|
|
32039
31964
|
layout: [
|
|
32040
|
-
|
|
31965
|
+
df
|
|
32041
31966
|
]
|
|
32042
31967
|
}
|
|
32043
31968
|
],
|
|
@@ -32145,8 +32070,8 @@ const lf = Yh(), cf = {
|
|
|
32145
32070
|
}
|
|
32146
32071
|
]
|
|
32147
32072
|
}
|
|
32148
|
-
},
|
|
32149
|
-
element:
|
|
32073
|
+
}, pf = {
|
|
32074
|
+
element: of,
|
|
32150
32075
|
id: "lightbox-strip",
|
|
32151
32076
|
name: "Strip",
|
|
32152
32077
|
category: "galleries",
|
|
@@ -32166,8 +32091,8 @@ const lf = Yh(), cf = {
|
|
|
32166
32091
|
type: "image",
|
|
32167
32092
|
url: "https://cdn.cntrl.site/component-assets/Strip.mp4"
|
|
32168
32093
|
},
|
|
32169
|
-
schema:
|
|
32170
|
-
sourceCode:
|
|
32094
|
+
schema: uf,
|
|
32095
|
+
sourceCode: rf,
|
|
32171
32096
|
assetsPaths: {
|
|
32172
32097
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
32173
32098
|
parameters: [{ path: "cover", placeholderEnabled: !0 }]
|
|
@@ -32182,7 +32107,7 @@ const lf = Yh(), cf = {
|
|
|
32182
32107
|
[`${t}FontSettings`]: `${At(t, "fontFamily")}`
|
|
32183
32108
|
}), {})
|
|
32184
32109
|
}
|
|
32185
|
-
},
|
|
32110
|
+
}, mf = ({
|
|
32186
32111
|
prefix: e,
|
|
32187
32112
|
entries: t,
|
|
32188
32113
|
settings: n,
|
|
@@ -32218,7 +32143,7 @@ const lf = Yh(), cf = {
|
|
|
32218
32143
|
closeIconHoverColor: ne,
|
|
32219
32144
|
contentMarginTop: ee = 0,
|
|
32220
32145
|
iconMarginRight: J = 0
|
|
32221
|
-
} = n, O = $e((D) => Y(D, i ?? !1), [i]), F = O(g ?? 0), T = `${y}%`, L = `${w}%`, V = O(h),
|
|
32146
|
+
} = n, O = $e((D) => Y(D, i ?? !1), [i]), F = O(g ?? 0), T = `${y}%`, L = `${w}%`, V = O(h), G = O(ee), Z = O(J), W = gi("title1", mi(n, "title1"), i), ye = gi("title2", mi(n, "title2"), i), m = gi("title3", mi(n, "title3"), i), he = gi("count", mi(n, "count"), i), re = j === "mobile", we = !i || !!a, He = !o && (!i || !!a), se = Ne(() => Uo(t, f), [t, f]), [xe, K] = le(r), be = se[xe], ge = be == null ? void 0 : be.entry, [pe, ce] = le(!1), [Ie, Ae] = le(null), [ve, Ce] = le(!1), [_, Q] = le(null), [R, U] = le(!1), [X, me] = le(0), [de, fe] = le(), [Ee, ke] = le(), [B, Me] = le(null), te = ue(null), ie = ue(0), Re = ue(0), Be = ue(0), ot = ue(!1), Xe = ue(null), dt = ue(null), yt = ue(null), lt = ue(null), ut = ue(null), Rt = ue(null), rt = ue(null), Ge = $e(() => {
|
|
32222
32147
|
const D = dt.current;
|
|
32223
32148
|
if (!D) return;
|
|
32224
32149
|
const Te = D.closest(`.${e}-lightbox-content-area`);
|
|
@@ -32234,7 +32159,7 @@ const lf = Yh(), cf = {
|
|
|
32234
32159
|
p();
|
|
32235
32160
|
}, 300));
|
|
32236
32161
|
}, [o, d, p]), Nt = $e((D) => !!(D.closest("[data-controls]") || D.closest(`.${e}-close-icon`)), [e]), {
|
|
32237
|
-
isSwipeDragging:
|
|
32162
|
+
isSwipeDragging: qt,
|
|
32238
32163
|
backdropStyle: at,
|
|
32239
32164
|
mediaAreaStyle: Ot,
|
|
32240
32165
|
overlayContentStyle: kt,
|
|
@@ -32257,7 +32182,7 @@ const lf = Yh(), cf = {
|
|
|
32257
32182
|
const u = se[xe], b = se[Te];
|
|
32258
32183
|
ie.current += 1;
|
|
32259
32184
|
const A = ie.current, ae = $ === "fade" && fs(u == null ? void 0 : u.entry) !== fs(b == null ? void 0 : b.entry), Se = ht(yt.current), Fe = ae ? (() => {
|
|
32260
|
-
const ft =
|
|
32185
|
+
const ft = Ge();
|
|
32261
32186
|
oc(() => {
|
|
32262
32187
|
Me(b.entry);
|
|
32263
32188
|
}), yt.current && ft && (yt.current.style.width = `${ft}px`);
|
|
@@ -32270,7 +32195,7 @@ const lf = Yh(), cf = {
|
|
|
32270
32195
|
me(A), Q(xe), U(!0), K(Te), Ve(Te), Be.current = Te, ae ? (vt(), Qe && fe(Qe), Fe != null && Fe.incomingTitlesMeasureWidth && ke(Fe.incomingTitlesMeasureWidth), Ae((u == null ? void 0 : u.entryIndex) ?? null), Ce(!0), Re.current = b.entryIndex, te.current = setTimeout(() => {
|
|
32271
32196
|
Ae(null), Ce(!1), fe(void 0), ke(void 0), Me(null), te.current = null;
|
|
32272
32197
|
}, 400)) : (vt(), Ae(null), Ce(!1), fe(void 0), ke(void 0), Me(null), Re.current = b.entryIndex);
|
|
32273
|
-
}, [xe, vt,
|
|
32198
|
+
}, [xe, vt, Ge, ht, se, Ve, $]), Mt = $e(() => {
|
|
32274
32199
|
rt.current = null;
|
|
32275
32200
|
}, []), an = $e((D) => {
|
|
32276
32201
|
!we || se.length <= 1 || D.pointerType === "mouse" && D.button !== 0 || D.target.closest("[data-controls]") || (rt.current = {
|
|
@@ -32281,7 +32206,7 @@ const lf = Yh(), cf = {
|
|
|
32281
32206
|
}, [we, se.length]), mn = $e((D) => {
|
|
32282
32207
|
var ft;
|
|
32283
32208
|
if (!we || se.length <= 1 || D.pointerType === "mouse" && D.button !== 0) return;
|
|
32284
|
-
if (
|
|
32209
|
+
if (qt) {
|
|
32285
32210
|
Mt();
|
|
32286
32211
|
return;
|
|
32287
32212
|
}
|
|
@@ -32295,7 +32220,7 @@ const lf = Yh(), cf = {
|
|
|
32295
32220
|
if (ae > ps || Se > ps) return;
|
|
32296
32221
|
const Fe = (ft = lt.current) == null ? void 0 : ft.getBoundingClientRect(), Qe = Fe ? Fe.left + Fe.width / 2 : window.innerWidth / 2;
|
|
32297
32222
|
Et(D.clientX < Qe ? xe - 1 : xe + 1);
|
|
32298
|
-
}, [xe, we, Et,
|
|
32223
|
+
}, [xe, we, Et, qt, Mt, se.length]), gn = $e((D) => {
|
|
32299
32224
|
const Te = rt.current;
|
|
32300
32225
|
(Te == null ? void 0 : Te.pointerId) === D.pointerId && Mt();
|
|
32301
32226
|
}, [Mt]);
|
|
@@ -32467,7 +32392,7 @@ const lf = Yh(), cf = {
|
|
|
32467
32392
|
resolvedWidth: ae,
|
|
32468
32393
|
maxWidth: Se
|
|
32469
32394
|
} = u ?? Ht(D, Te), Fe = Math.max(b, Un), Qe = o && Te === "two-row-top";
|
|
32470
|
-
return /* @__PURE__ */
|
|
32395
|
+
return /* @__PURE__ */ q(
|
|
32471
32396
|
"div",
|
|
32472
32397
|
{
|
|
32473
32398
|
className: `${e}-title-cell`,
|
|
@@ -32553,7 +32478,7 @@ const lf = Yh(), cf = {
|
|
|
32553
32478
|
"aria-atomic": "true",
|
|
32554
32479
|
children: Pm(se, xe, f, t)
|
|
32555
32480
|
}
|
|
32556
|
-
), Je = () => Zt ? o && Wt ? /* @__PURE__ */
|
|
32481
|
+
), Je = () => Zt ? o && Wt ? /* @__PURE__ */ q("div", { className: `${e}-text-bar-cell`, style: { flexShrink: 0 }, children: [
|
|
32557
32482
|
Ye(),
|
|
32558
32483
|
/* @__PURE__ */ s(
|
|
32559
32484
|
"div",
|
|
@@ -32572,7 +32497,7 @@ const lf = Yh(), cf = {
|
|
|
32572
32497
|
}
|
|
32573
32498
|
}
|
|
32574
32499
|
)
|
|
32575
|
-
] }) : Ye() : null, Lt = () => !Zt && !Wt ? null : /* @__PURE__ */
|
|
32500
|
+
] }) : Ye() : null, Lt = () => !Zt && !Wt ? null : /* @__PURE__ */ q(
|
|
32576
32501
|
"div",
|
|
32577
32502
|
{
|
|
32578
32503
|
className: `${e}-titles-row-header-controls`,
|
|
@@ -32582,7 +32507,7 @@ const lf = Yh(), cf = {
|
|
|
32582
32507
|
Wt ? It() : null
|
|
32583
32508
|
]
|
|
32584
32509
|
}
|
|
32585
|
-
), en = () => /* @__PURE__ */
|
|
32510
|
+
), en = () => /* @__PURE__ */ q(
|
|
32586
32511
|
"div",
|
|
32587
32512
|
{
|
|
32588
32513
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
@@ -32593,13 +32518,13 @@ const lf = Yh(), cf = {
|
|
|
32593
32518
|
children: [
|
|
32594
32519
|
Zt || on ? Oe() : null,
|
|
32595
32520
|
De ? oe("single-row") : null,
|
|
32596
|
-
|
|
32521
|
+
Gt(ge),
|
|
32597
32522
|
/* @__PURE__ */ s("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
|
|
32598
32523
|
Lt(),
|
|
32599
32524
|
En()
|
|
32600
32525
|
]
|
|
32601
32526
|
}
|
|
32602
|
-
), wt = () => /* @__PURE__ */
|
|
32527
|
+
), wt = () => /* @__PURE__ */ q(
|
|
32603
32528
|
"div",
|
|
32604
32529
|
{
|
|
32605
32530
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
@@ -32607,7 +32532,7 @@ const lf = Yh(), cf = {
|
|
|
32607
32532
|
children: [
|
|
32608
32533
|
Zt || on ? Oe() : null,
|
|
32609
32534
|
De ? oe("single-row") : null,
|
|
32610
|
-
/* @__PURE__ */
|
|
32535
|
+
/* @__PURE__ */ q(
|
|
32611
32536
|
"div",
|
|
32612
32537
|
{
|
|
32613
32538
|
className: `${e}-titles-row-titles`,
|
|
@@ -32632,7 +32557,7 @@ const lf = Yh(), cf = {
|
|
|
32632
32557
|
children: oi(B || ge)
|
|
32633
32558
|
}
|
|
32634
32559
|
),
|
|
32635
|
-
/* @__PURE__ */
|
|
32560
|
+
/* @__PURE__ */ q(
|
|
32636
32561
|
"div",
|
|
32637
32562
|
{
|
|
32638
32563
|
ref: dt,
|
|
@@ -32656,7 +32581,7 @@ const lf = Yh(), cf = {
|
|
|
32656
32581
|
En()
|
|
32657
32582
|
]
|
|
32658
32583
|
}
|
|
32659
|
-
), It = () => /* @__PURE__ */
|
|
32584
|
+
), It = () => /* @__PURE__ */ q(
|
|
32660
32585
|
"div",
|
|
32661
32586
|
{
|
|
32662
32587
|
className: `${e}-close-icon`,
|
|
@@ -32705,7 +32630,7 @@ const lf = Yh(), cf = {
|
|
|
32705
32630
|
)
|
|
32706
32631
|
]
|
|
32707
32632
|
}
|
|
32708
|
-
), cn = (D, Te) => /* @__PURE__ */
|
|
32633
|
+
), cn = (D, Te) => /* @__PURE__ */ q(
|
|
32709
32634
|
"div",
|
|
32710
32635
|
{
|
|
32711
32636
|
className: `${e}-titles-row-top`,
|
|
@@ -32724,14 +32649,14 @@ const lf = Yh(), cf = {
|
|
|
32724
32649
|
},
|
|
32725
32650
|
children: D
|
|
32726
32651
|
}
|
|
32727
|
-
) : /* @__PURE__ */
|
|
32652
|
+
) : /* @__PURE__ */ q(et, { children: [
|
|
32728
32653
|
D,
|
|
32729
32654
|
/* @__PURE__ */ s("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
|
|
32730
32655
|
] }),
|
|
32731
32656
|
Lt()
|
|
32732
32657
|
]
|
|
32733
32658
|
}
|
|
32734
|
-
),
|
|
32659
|
+
), Gt = (D) => {
|
|
32735
32660
|
if (!D) return null;
|
|
32736
32661
|
const Te = Xn(e, D, W, ye, m);
|
|
32737
32662
|
return /* @__PURE__ */ s(et, { children: Te.map((u) => Qt(
|
|
@@ -32749,14 +32674,14 @@ const lf = Yh(), cf = {
|
|
|
32749
32674
|
) : null;
|
|
32750
32675
|
}, Rn = (D, Te = !1) => {
|
|
32751
32676
|
const u = D ? Xn(e, D, W, ye, m) : [], b = u.filter((Se) => Se.prefix === "title2" || Se.prefix === "title3"), A = o && Te;
|
|
32752
|
-
return b.length > 0 || A || (C ?? 0) > 0 ? /* @__PURE__ */
|
|
32753
|
-
b.length > 0 ? /* @__PURE__ */
|
|
32677
|
+
return b.length > 0 || A || (C ?? 0) > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
32678
|
+
b.length > 0 ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom`, children: [
|
|
32754
32679
|
b.map((Se) => Qt(
|
|
32755
32680
|
Se,
|
|
32756
32681
|
"two-row-bottom",
|
|
32757
32682
|
Vt(u, Se, "two-row-bottom")
|
|
32758
32683
|
)),
|
|
32759
|
-
Te && o ? /* @__PURE__ */
|
|
32684
|
+
Te && o ? /* @__PURE__ */ q(et, { children: [
|
|
32760
32685
|
$r(),
|
|
32761
32686
|
Cr()
|
|
32762
32687
|
] }) : null
|
|
@@ -32777,10 +32702,10 @@ const lf = Yh(), cf = {
|
|
|
32777
32702
|
}
|
|
32778
32703
|
) : null
|
|
32779
32704
|
] }) : null;
|
|
32780
|
-
}, ii = (D, Te = !1) => /* @__PURE__ */
|
|
32705
|
+
}, ii = (D, Te = !1) => /* @__PURE__ */ q(et, { children: [
|
|
32781
32706
|
cn(Cn(D)),
|
|
32782
32707
|
Rn(D, Te)
|
|
32783
|
-
] }), oi = (D) => re ? /* @__PURE__ */ s("div", { className: `${e}-titles-row-two-row`, children: ii(D) }) : D ? /* @__PURE__ */ s("div", { className: `${e}-titles-row`, style: { width: "100%" }, children:
|
|
32708
|
+
] }), oi = (D) => re ? /* @__PURE__ */ s("div", { className: `${e}-titles-row-two-row`, children: ii(D) }) : D ? /* @__PURE__ */ s("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: Gt(D) }) : null, Lo = () => {
|
|
32784
32709
|
const D = re ? -1 : Ze.findIndex((b) => b.prefix === "title1"), Te = !re && (o || (v ?? 0) > 0) ? (() => {
|
|
32785
32710
|
const b = v ?? 0, A = D >= 0 ? Tt[D] : _e.title1Width, ae = Math.max(b, Un);
|
|
32786
32711
|
return /* @__PURE__ */ s(
|
|
@@ -32890,7 +32815,7 @@ const lf = Yh(), cf = {
|
|
|
32890
32815
|
}
|
|
32891
32816
|
}
|
|
32892
32817
|
) }, `${D.widthKey}-junction`);
|
|
32893
|
-
}), En = () => !o || re ? null : /* @__PURE__ */
|
|
32818
|
+
}), En = () => !o || re ? null : /* @__PURE__ */ q(et, { children: [
|
|
32894
32819
|
Lo(),
|
|
32895
32820
|
Io()
|
|
32896
32821
|
] }), xi = (D) => {
|
|
@@ -32918,7 +32843,7 @@ const lf = Yh(), cf = {
|
|
|
32918
32843
|
{
|
|
32919
32844
|
className: `${e}-slide-inner`,
|
|
32920
32845
|
style: Te ? { gap: F } : void 0,
|
|
32921
|
-
children: D.map((A, ae) => /* @__PURE__ */
|
|
32846
|
+
children: D.map((A, ae) => /* @__PURE__ */ q("div", { ...xi(A), children: [
|
|
32922
32847
|
/* @__PURE__ */ s(
|
|
32923
32848
|
"img",
|
|
32924
32849
|
{
|
|
@@ -32947,7 +32872,7 @@ const lf = Yh(), cf = {
|
|
|
32947
32872
|
] }, `${A.url}-${ae}`))
|
|
32948
32873
|
}
|
|
32949
32874
|
);
|
|
32950
|
-
}, Eo = !!(ge != null && ge.title2 || ge != null && ge.title3 || St != null && St.title2 || St != null && St.title3 || (C ?? 0) > 0 || o), Tr = () => /* @__PURE__ */
|
|
32875
|
+
}, Eo = !!(ge != null && ge.title2 || ge != null && ge.title3 || St != null && St.title2 || St != null && St.title3 || (C ?? 0) > 0 || o), Tr = () => /* @__PURE__ */ q(
|
|
32951
32876
|
"div",
|
|
32952
32877
|
{
|
|
32953
32878
|
style: {
|
|
@@ -32980,7 +32905,7 @@ const lf = Yh(), cf = {
|
|
|
32980
32905
|
children: ii(B || ge)
|
|
32981
32906
|
}
|
|
32982
32907
|
),
|
|
32983
|
-
/* @__PURE__ */
|
|
32908
|
+
/* @__PURE__ */ q(
|
|
32984
32909
|
"div",
|
|
32985
32910
|
{
|
|
32986
32911
|
ref: dt,
|
|
@@ -32991,7 +32916,7 @@ const lf = Yh(), cf = {
|
|
|
32991
32916
|
},
|
|
32992
32917
|
children: [
|
|
32993
32918
|
cn(
|
|
32994
|
-
/* @__PURE__ */
|
|
32919
|
+
/* @__PURE__ */ q(
|
|
32995
32920
|
"div",
|
|
32996
32921
|
{
|
|
32997
32922
|
className: ze,
|
|
@@ -33014,7 +32939,7 @@ const lf = Yh(), cf = {
|
|
|
33014
32939
|
),
|
|
33015
32940
|
ve && de ? de : void 0
|
|
33016
32941
|
),
|
|
33017
|
-
Eo ? /* @__PURE__ */
|
|
32942
|
+
Eo ? /* @__PURE__ */ q("div", { className: `${e}-titles-row-bottom-area`, children: [
|
|
33018
32943
|
St && ve ? /* @__PURE__ */ s("div", { className: `${Ue} ${e}-titles-layer-out-bottom ${e}-titles-fade-out`, children: Rn(St) }) : null,
|
|
33019
32944
|
/* @__PURE__ */ s(
|
|
33020
32945
|
"div",
|
|
@@ -33031,7 +32956,7 @@ const lf = Yh(), cf = {
|
|
|
33031
32956
|
}
|
|
33032
32957
|
), Lr = () => {
|
|
33033
32958
|
const D = Eo;
|
|
33034
|
-
return /* @__PURE__ */
|
|
32959
|
+
return /* @__PURE__ */ q(
|
|
33035
32960
|
"div",
|
|
33036
32961
|
{
|
|
33037
32962
|
style: {
|
|
@@ -33057,14 +32982,14 @@ const lf = Yh(), cf = {
|
|
|
33057
32982
|
}
|
|
33058
32983
|
);
|
|
33059
32984
|
};
|
|
33060
|
-
return /* @__PURE__ */
|
|
32985
|
+
return /* @__PURE__ */ q(
|
|
33061
32986
|
"div",
|
|
33062
32987
|
{
|
|
33063
32988
|
ref: lt,
|
|
33064
32989
|
"data-selection": "none",
|
|
33065
32990
|
className: `${e}-lightbox${i ? ` ${e}-lightbox-editor` : ""}${o ? ` ${e}-lightbox-edit-mode` : ""}`,
|
|
33066
32991
|
onClick: () => {
|
|
33067
|
-
|
|
32992
|
+
qt || pt();
|
|
33068
32993
|
},
|
|
33069
32994
|
role: "dialog",
|
|
33070
32995
|
"aria-modal": "true",
|
|
@@ -33077,7 +33002,7 @@ const lf = Yh(), cf = {
|
|
|
33077
33002
|
},
|
|
33078
33003
|
children: [
|
|
33079
33004
|
/* @__PURE__ */ s("div", { className: `${e}-lightbox-backdrop`, style: { backgroundColor: S, ...at } }),
|
|
33080
|
-
/* @__PURE__ */
|
|
33005
|
+
/* @__PURE__ */ q(
|
|
33081
33006
|
"div",
|
|
33082
33007
|
{
|
|
33083
33008
|
className: `${e}-lightbox-dismiss-area`,
|
|
@@ -33098,7 +33023,7 @@ const lf = Yh(), cf = {
|
|
|
33098
33023
|
onPointerDown: we ? an : void 0,
|
|
33099
33024
|
onPointerUp: we ? mn : void 0,
|
|
33100
33025
|
onPointerCancel: we ? gn : void 0,
|
|
33101
|
-
children: /* @__PURE__ */
|
|
33026
|
+
children: /* @__PURE__ */ q("div", { className: `${e}-slide-stack`, children: [
|
|
33102
33027
|
Kt && R ? /* @__PURE__ */ s(
|
|
33103
33028
|
"div",
|
|
33104
33029
|
{
|
|
@@ -33123,13 +33048,13 @@ const lf = Yh(), cf = {
|
|
|
33123
33048
|
)
|
|
33124
33049
|
}
|
|
33125
33050
|
),
|
|
33126
|
-
/* @__PURE__ */
|
|
33051
|
+
/* @__PURE__ */ q("div", { className: `${e}-lightbox-overlay-content`, style: kt, children: [
|
|
33127
33052
|
/* @__PURE__ */ s(
|
|
33128
33053
|
"div",
|
|
33129
33054
|
{
|
|
33130
33055
|
"data-controls": o ? "contentMarginTop" : void 0,
|
|
33131
33056
|
className: o ? `${e}-control` : void 0,
|
|
33132
|
-
style: { height:
|
|
33057
|
+
style: { height: G, width: "100%" }
|
|
33133
33058
|
}
|
|
33134
33059
|
),
|
|
33135
33060
|
/* @__PURE__ */ s("div", { style: {
|
|
@@ -33153,7 +33078,7 @@ const lf = Yh(), cf = {
|
|
|
33153
33078
|
}
|
|
33154
33079
|
);
|
|
33155
33080
|
};
|
|
33156
|
-
function
|
|
33081
|
+
function gf(e) {
|
|
33157
33082
|
return `
|
|
33158
33083
|
.${e}-wrapper {
|
|
33159
33084
|
position: relative;
|
|
@@ -33690,7 +33615,7 @@ function pf(e) {
|
|
|
33690
33615
|
}
|
|
33691
33616
|
`;
|
|
33692
33617
|
}
|
|
33693
|
-
const
|
|
33618
|
+
const hf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode: o, portalId: a, metadata: r }) => {
|
|
33694
33619
|
const { prefix: c } = hn(), l = (r == null ? void 0 : r.itemId) ?? null, { cover: d, coverFit: p, type: f } = e, x = ue(null), [S, g] = le(!1), [y, w] = le(0), $ = ue(!1), I = ue(!1), E = ue(!1), N = Ne(
|
|
33695
33620
|
() => (t ?? []).filter((h) => _i(h).length > 0),
|
|
33696
33621
|
[t]
|
|
@@ -33736,9 +33661,9 @@ const mf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33736
33661
|
I.current = !1, w(k), g(!0);
|
|
33737
33662
|
};
|
|
33738
33663
|
return window.addEventListener("popstate", h), () => window.removeEventListener("popstate", h);
|
|
33739
|
-
}, [N, l, H, f]), /* @__PURE__ */
|
|
33740
|
-
/* @__PURE__ */
|
|
33741
|
-
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html:
|
|
33664
|
+
}, [N, l, H, f]), /* @__PURE__ */ q(et, { children: [
|
|
33665
|
+
/* @__PURE__ */ q("div", { ref: x, className: `${c}-wrapper`, children: [
|
|
33666
|
+
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: gf(c) } }),
|
|
33742
33667
|
d ? /* @__PURE__ */ s(
|
|
33743
33668
|
"button",
|
|
33744
33669
|
{
|
|
@@ -33769,7 +33694,7 @@ const mf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33769
33694
|
const h = (a ? document.getElementById(a) : null) ?? document.body;
|
|
33770
33695
|
return yo(
|
|
33771
33696
|
/* @__PURE__ */ s(
|
|
33772
|
-
|
|
33697
|
+
mf,
|
|
33773
33698
|
{
|
|
33774
33699
|
prefix: c,
|
|
33775
33700
|
entries: N,
|
|
@@ -33788,7 +33713,7 @@ const mf = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
33788
33713
|
);
|
|
33789
33714
|
})()
|
|
33790
33715
|
] });
|
|
33791
|
-
},
|
|
33716
|
+
}, ff = `import { useCallback, useEffect, useMemo, useRef, useState, type MouseEvent } from 'react';
|
|
33792
33717
|
import { createPortal } from 'react-dom';
|
|
33793
33718
|
import { CommonComponentProps } from '../props';
|
|
33794
33719
|
import { useScopedStyles } from '../utils/useScopedStyles';
|
|
@@ -34556,7 +34481,7 @@ export type LightboxJournalSettings = {
|
|
|
34556
34481
|
closeIconColor: string;
|
|
34557
34482
|
closeIconHoverColor: string;
|
|
34558
34483
|
};
|
|
34559
|
-
`,
|
|
34484
|
+
`, yf = "data:image/svg+xml," + encodeURIComponent(
|
|
34560
34485
|
'<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.959 0.40332L0.402635 15.9597" stroke="#000000" stroke-width="1.14"/><path d="M15.959 15.9594L0.402635 0.403002" stroke="#000000" stroke-width="1.14"/></svg>'
|
|
34561
34486
|
), pi = {
|
|
34562
34487
|
fontSettings: {
|
|
@@ -34598,7 +34523,7 @@ export type LightboxJournalSettings = {
|
|
|
34598
34523
|
}
|
|
34599
34524
|
}
|
|
34600
34525
|
};
|
|
34601
|
-
function
|
|
34526
|
+
function vf(e) {
|
|
34602
34527
|
const t = {};
|
|
34603
34528
|
return t[nt(e, "fontFamily")] = {
|
|
34604
34529
|
type: "string",
|
|
@@ -34642,13 +34567,13 @@ function ff(e) {
|
|
|
34642
34567
|
display: { type: "text-appearance", useTabDesign: !0 }
|
|
34643
34568
|
}, t;
|
|
34644
34569
|
}
|
|
34645
|
-
const
|
|
34570
|
+
const bf = vi.reduce(
|
|
34646
34571
|
(e, t) => ({
|
|
34647
34572
|
...e,
|
|
34648
|
-
...
|
|
34573
|
+
...vf(t)
|
|
34649
34574
|
}),
|
|
34650
34575
|
{}
|
|
34651
|
-
),
|
|
34576
|
+
), xf = vi.reduce(
|
|
34652
34577
|
(e, t) => ({
|
|
34653
34578
|
...e,
|
|
34654
34579
|
[nt(t, "fontFamily")]: "Goudy Bookletter 1911",
|
|
@@ -34667,13 +34592,13 @@ const yf = vi.reduce(
|
|
|
34667
34592
|
}),
|
|
34668
34593
|
{}
|
|
34669
34594
|
);
|
|
34670
|
-
function
|
|
34595
|
+
function Gr(e) {
|
|
34671
34596
|
return vi.reduce((t, n) => {
|
|
34672
34597
|
const i = e[`${n}FontSize`], o = e[`${n}LineHeight`];
|
|
34673
34598
|
return i !== void 0 && (t[nt(n, "fontSize")] = i), o !== void 0 && (t[nt(n, "lineHeight")] = o), t;
|
|
34674
34599
|
}, {});
|
|
34675
34600
|
}
|
|
34676
|
-
const
|
|
34601
|
+
const wf = km(), Sf = {
|
|
34677
34602
|
type: "object",
|
|
34678
34603
|
version: 1,
|
|
34679
34604
|
settings: {
|
|
@@ -34858,7 +34783,7 @@ const bf = km(), xf = {
|
|
|
34858
34783
|
title: "Count Default",
|
|
34859
34784
|
display: { type: "palette-color-picker" }
|
|
34860
34785
|
},
|
|
34861
|
-
...
|
|
34786
|
+
...bf,
|
|
34862
34787
|
contentMarginTop: {
|
|
34863
34788
|
type: "number",
|
|
34864
34789
|
scope: "layout",
|
|
@@ -34881,7 +34806,7 @@ const bf = km(), xf = {
|
|
|
34881
34806
|
ratioValue: "1:1",
|
|
34882
34807
|
reversed: !1
|
|
34883
34808
|
},
|
|
34884
|
-
closeIcon:
|
|
34809
|
+
closeIcon: yf,
|
|
34885
34810
|
backgroundColor: "rgb(255, 255, 255)",
|
|
34886
34811
|
closeIconColor: "#000000",
|
|
34887
34812
|
closeIconHoverColor: "#cccccc",
|
|
@@ -34890,7 +34815,7 @@ const bf = km(), xf = {
|
|
|
34890
34815
|
title2Color: "#000000",
|
|
34891
34816
|
title3Color: "#000000",
|
|
34892
34817
|
countColor: "#000000",
|
|
34893
|
-
...
|
|
34818
|
+
...xf,
|
|
34894
34819
|
countFontFamily: "Arial"
|
|
34895
34820
|
},
|
|
34896
34821
|
layoutDefaults: {
|
|
@@ -34911,7 +34836,7 @@ const bf = km(), xf = {
|
|
|
34911
34836
|
titleRowMarginBottom: 0.08,
|
|
34912
34837
|
iconMarginRight: 0.01,
|
|
34913
34838
|
countCloseGap: 5e-3,
|
|
34914
|
-
...
|
|
34839
|
+
...Gr({
|
|
34915
34840
|
title1FontSize: 0.04,
|
|
34916
34841
|
title1LineHeight: 0.04,
|
|
34917
34842
|
title2FontSize: 0.04,
|
|
@@ -34939,7 +34864,7 @@ const bf = km(), xf = {
|
|
|
34939
34864
|
titleRowMarginBottom: 0,
|
|
34940
34865
|
iconMarginRight: 0.01,
|
|
34941
34866
|
countCloseGap: 0.03,
|
|
34942
|
-
...
|
|
34867
|
+
...Gr({
|
|
34943
34868
|
title1FontSize: 0.0208,
|
|
34944
34869
|
title1LineHeight: 0.0208,
|
|
34945
34870
|
title2FontSize: 0.0208,
|
|
@@ -34967,7 +34892,7 @@ const bf = km(), xf = {
|
|
|
34967
34892
|
titleRowMarginBottom: 0,
|
|
34968
34893
|
iconMarginRight: 0.01,
|
|
34969
34894
|
countCloseGap: 0.02,
|
|
34970
|
-
...
|
|
34895
|
+
...Gr({
|
|
34971
34896
|
title1FontSize: 98e-4,
|
|
34972
34897
|
title1LineHeight: 98e-4,
|
|
34973
34898
|
title2FontSize: 98e-4,
|
|
@@ -35018,7 +34943,7 @@ const bf = km(), xf = {
|
|
|
35018
34943
|
title: "Type Style",
|
|
35019
34944
|
tooltip: "Typography",
|
|
35020
34945
|
layout: [
|
|
35021
|
-
|
|
34946
|
+
wf
|
|
35022
34947
|
]
|
|
35023
34948
|
}
|
|
35024
34949
|
],
|
|
@@ -35124,8 +35049,8 @@ const bf = km(), xf = {
|
|
|
35124
35049
|
}
|
|
35125
35050
|
]
|
|
35126
35051
|
}
|
|
35127
|
-
},
|
|
35128
|
-
element:
|
|
35052
|
+
}, $f = {
|
|
35053
|
+
element: hf,
|
|
35129
35054
|
id: "lightbox-journal",
|
|
35130
35055
|
name: "Journal",
|
|
35131
35056
|
category: "galleries",
|
|
@@ -35145,8 +35070,8 @@ const bf = km(), xf = {
|
|
|
35145
35070
|
type: "image",
|
|
35146
35071
|
url: "https://cdn.cntrl.site/component-assets/Journal.png"
|
|
35147
35072
|
},
|
|
35148
|
-
schema:
|
|
35149
|
-
sourceCode:
|
|
35073
|
+
schema: Sf,
|
|
35074
|
+
sourceCode: ff,
|
|
35150
35075
|
assetsPaths: {
|
|
35151
35076
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
35152
35077
|
parameters: [{ path: "cover", placeholderEnabled: !0 }]
|
|
@@ -35161,7 +35086,7 @@ const bf = km(), xf = {
|
|
|
35161
35086
|
[`${t}FontSettings`]: `${nt(t, "fontFamily")}`
|
|
35162
35087
|
}), {})
|
|
35163
35088
|
}
|
|
35164
|
-
},
|
|
35089
|
+
}, Cf = {
|
|
35165
35090
|
sizeType: "custom",
|
|
35166
35091
|
value: 700,
|
|
35167
35092
|
min: 400,
|
|
@@ -35198,7 +35123,7 @@ function ec(e, t, n) {
|
|
|
35198
35123
|
}
|
|
35199
35124
|
return !1;
|
|
35200
35125
|
}
|
|
35201
|
-
function
|
|
35126
|
+
function Tf(e, t, n, i, o, a, r, c) {
|
|
35202
35127
|
if (o === "system")
|
|
35203
35128
|
return "none";
|
|
35204
35129
|
const l = i.getBoundingClientRect(), d = document.elementFromPoint(l.left + e, l.top + t);
|
|
@@ -35209,7 +35134,7 @@ function Vs(e, t, n) {
|
|
|
35209
35134
|
const { sizeType: i, value: o, min: a, max: r } = t;
|
|
35210
35135
|
return i === "custom" ? o : i === "as is" ? ((c = n.get(e)) == null ? void 0 : c.naturalWidth) ?? o : Math.round(Math.random() * (r - a) + a);
|
|
35211
35136
|
}
|
|
35212
|
-
function
|
|
35137
|
+
function Lf(e) {
|
|
35213
35138
|
return `
|
|
35214
35139
|
.${e}-root {
|
|
35215
35140
|
position: absolute;
|
|
@@ -35247,7 +35172,7 @@ function Cf(e) {
|
|
|
35247
35172
|
}
|
|
35248
35173
|
`;
|
|
35249
35174
|
}
|
|
35250
|
-
function
|
|
35175
|
+
function If(e) {
|
|
35251
35176
|
return new Promise((t) => {
|
|
35252
35177
|
const n = new Image();
|
|
35253
35178
|
n.onload = () => {
|
|
@@ -35260,26 +35185,26 @@ function Tf(e) {
|
|
|
35260
35185
|
}, n.src = e;
|
|
35261
35186
|
});
|
|
35262
35187
|
}
|
|
35263
|
-
async function
|
|
35188
|
+
async function Rf(e) {
|
|
35264
35189
|
const t = [...new Set(e.filter(Boolean))], n = await Promise.all(
|
|
35265
|
-
t.map(async (i) => [i, await
|
|
35190
|
+
t.map(async (i) => [i, await If(i)])
|
|
35266
35191
|
);
|
|
35267
35192
|
return new Map(n);
|
|
35268
35193
|
}
|
|
35269
|
-
function
|
|
35194
|
+
function Ef({ settings: e, content: t = [], isEditor: n }) {
|
|
35270
35195
|
const { prefix: i } = hn(), [o, a] = le(null), [r, c] = le([]), [l, d] = le(0), p = ue(0), [f, x] = le({ x: 0, y: 0 }), [S, g] = le("none"), y = ue({ x: 0, y: 0 }), [w, $] = le(!1), [I, E] = le(!1), N = ue(/* @__PURE__ */ new Map()), {
|
|
35271
|
-
imageSize: v =
|
|
35196
|
+
imageSize: v = Cf,
|
|
35272
35197
|
cursor: H = "system",
|
|
35273
35198
|
target: M = "area",
|
|
35274
35199
|
position: C = "random",
|
|
35275
35200
|
visible: j = "all",
|
|
35276
35201
|
defaultCursor: h = null,
|
|
35277
35202
|
hoverCursor: P = null
|
|
35278
|
-
} = e, k = Ne(() =>
|
|
35203
|
+
} = e, k = Ne(() => Lf(i), [i]), z = $e((F, T, L = r) => {
|
|
35279
35204
|
if (!o) return;
|
|
35280
|
-
const V = o.getBoundingClientRect(),
|
|
35281
|
-
x({ x:
|
|
35282
|
-
|
|
35205
|
+
const V = o.getBoundingClientRect(), G = F - V.left, Z = T - V.top;
|
|
35206
|
+
x({ x: G, y: Z }), g(
|
|
35207
|
+
Tf(G, Z, L, o, H, M, P, h)
|
|
35283
35208
|
);
|
|
35284
35209
|
}, [o, r, H, M, P, h]);
|
|
35285
35210
|
We(() => {
|
|
@@ -35293,7 +35218,7 @@ function If({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35293
35218
|
return;
|
|
35294
35219
|
}
|
|
35295
35220
|
let T = !1;
|
|
35296
|
-
return E(!1),
|
|
35221
|
+
return E(!1), Rf(F).then((L) => {
|
|
35297
35222
|
T || (N.current = L, E(!0));
|
|
35298
35223
|
}), () => {
|
|
35299
35224
|
T = !0;
|
|
@@ -35315,9 +35240,9 @@ function If({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35315
35240
|
}, [w]);
|
|
35316
35241
|
const ne = (F, T, L, V = {}) => {
|
|
35317
35242
|
var he;
|
|
35318
|
-
const
|
|
35243
|
+
const G = ((he = N.current.get(F.image.url)) == null ? void 0 : he.aspectRatio) ?? 1, Z = Vs(F.image.url, v, N.current), { heightPx: W } = ar(Z, G);
|
|
35319
35244
|
let ye = 0, m = 0;
|
|
35320
|
-
return C === "same" ? { x: ye, y: m } = Ds(T, L, Z,
|
|
35245
|
+
return C === "same" ? { x: ye, y: m } = Ds(T, L, Z, G) : (ye = V.x ?? Math.random() * T, m = V.y ?? Math.random() * L, { x: ye, y: m } = aa(ye, m, T, L, Z, W)), {
|
|
35321
35246
|
id: p.current++,
|
|
35322
35247
|
url: F.image.url,
|
|
35323
35248
|
link: F.link,
|
|
@@ -35326,27 +35251,27 @@ function If({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35326
35251
|
y: m,
|
|
35327
35252
|
xRatio: ye / T,
|
|
35328
35253
|
yRatio: m / L,
|
|
35329
|
-
aspectRatio:
|
|
35254
|
+
aspectRatio: G,
|
|
35330
35255
|
widthPx: Z
|
|
35331
35256
|
};
|
|
35332
35257
|
}, ee = () => {
|
|
35333
35258
|
if (!o) return;
|
|
35334
35259
|
const F = o.getBoundingClientRect(), T = F.width, L = F.height;
|
|
35335
|
-
T === 0 || L === 0 || c((V) => V.length === 0 ? V : V.map((
|
|
35336
|
-
const Z = v.sizeType === "random" ?
|
|
35260
|
+
T === 0 || L === 0 || c((V) => V.length === 0 ? V : V.map((G) => {
|
|
35261
|
+
const Z = v.sizeType === "random" ? G.widthPx : Vs(G.url, v, N.current), { heightPx: W } = ar(Z, G.aspectRatio);
|
|
35337
35262
|
if (C === "same") {
|
|
35338
|
-
const { x: he, y: re } = Ds(T, L, Z,
|
|
35339
|
-
return { ...
|
|
35263
|
+
const { x: he, y: re } = Ds(T, L, Z, G.aspectRatio);
|
|
35264
|
+
return { ...G, x: he, y: re, widthPx: Z };
|
|
35340
35265
|
}
|
|
35341
35266
|
const { x: ye, y: m } = aa(
|
|
35342
|
-
|
|
35343
|
-
|
|
35267
|
+
G.xRatio * T,
|
|
35268
|
+
G.yRatio * L,
|
|
35344
35269
|
T,
|
|
35345
35270
|
L,
|
|
35346
35271
|
Z,
|
|
35347
35272
|
W
|
|
35348
35273
|
);
|
|
35349
|
-
return { ...
|
|
35274
|
+
return { ...G, x: ye, y: m, widthPx: Z };
|
|
35350
35275
|
}));
|
|
35351
35276
|
};
|
|
35352
35277
|
We(() => {
|
|
@@ -35367,14 +35292,14 @@ function If({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35367
35292
|
if (!o || t.length === 0 || !I) return;
|
|
35368
35293
|
const T = o.getBoundingClientRect(), L = F.clientX - T.left, V = F.clientY - T.top;
|
|
35369
35294
|
if (M === "image" && !ec(L, V, r)) return;
|
|
35370
|
-
let
|
|
35371
|
-
C === "on Click" ? (
|
|
35372
|
-
const W = t[l], ye = ne(W, T.width, T.height, { x:
|
|
35295
|
+
let G = 0, Z = 0;
|
|
35296
|
+
C === "on Click" ? (G = L, Z = V) : C === "same" ? (G = T.width / 2, Z = T.height / 2) : (G = Math.random() * T.width, Z = Math.random() * T.height);
|
|
35297
|
+
const W = t[l], ye = ne(W, T.width, T.height, { x: G, y: Z }), m = j === "all" ? [...r, ye] : [ye];
|
|
35373
35298
|
c(m), d((he) => he >= t.length - 1 ? 0 : he + 1), z(F.clientX, F.clientY, m);
|
|
35374
35299
|
}, O = H === "custom" && S !== "none";
|
|
35375
|
-
return /* @__PURE__ */
|
|
35300
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
35376
35301
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: k } }),
|
|
35377
|
-
/* @__PURE__ */
|
|
35302
|
+
/* @__PURE__ */ q(
|
|
35378
35303
|
"div",
|
|
35379
35304
|
{
|
|
35380
35305
|
ref: a,
|
|
@@ -35417,7 +35342,7 @@ function If({ settings: e, content: t = [], isEditor: n }) {
|
|
|
35417
35342
|
)
|
|
35418
35343
|
] });
|
|
35419
35344
|
}
|
|
35420
|
-
const
|
|
35345
|
+
const Mf = `import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
35421
35346
|
import { CommonComponentProps } from '../props';
|
|
35422
35347
|
import { useScopedStyles } from '../utils/index';
|
|
35423
35348
|
|
|
@@ -35938,7 +35863,7 @@ export function ClickGallerie({ settings, content = [], isEditor }: ClickGalleri
|
|
|
35938
35863
|
</>
|
|
35939
35864
|
);
|
|
35940
35865
|
}
|
|
35941
|
-
`,
|
|
35866
|
+
`, Pf = {
|
|
35942
35867
|
type: "object",
|
|
35943
35868
|
version: 1,
|
|
35944
35869
|
content: {
|
|
@@ -36148,8 +36073,8 @@ export function ClickGallerie({ settings, content = [], isEditor }: ClickGalleri
|
|
|
36148
36073
|
]
|
|
36149
36074
|
}
|
|
36150
36075
|
]
|
|
36151
|
-
},
|
|
36152
|
-
element:
|
|
36076
|
+
}, Af = {
|
|
36077
|
+
element: Ef,
|
|
36153
36078
|
id: "click-gallerie",
|
|
36154
36079
|
name: "Click",
|
|
36155
36080
|
category: "galleries",
|
|
@@ -36172,8 +36097,8 @@ export function ClickGallerie({ settings, content = [], isEditor }: ClickGalleri
|
|
|
36172
36097
|
type: "image",
|
|
36173
36098
|
url: "https://cdn.cntrl.site/component-assets/Click_Gallery.mp4"
|
|
36174
36099
|
},
|
|
36175
|
-
schema:
|
|
36176
|
-
sourceCode:
|
|
36100
|
+
schema: Pf,
|
|
36101
|
+
sourceCode: Mf,
|
|
36177
36102
|
assetsPaths: {
|
|
36178
36103
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
36179
36104
|
parameters: [
|
|
@@ -36185,8 +36110,8 @@ export function ClickGallerie({ settings, content = [], isEditor }: ClickGalleri
|
|
|
36185
36110
|
content: [],
|
|
36186
36111
|
parameters: []
|
|
36187
36112
|
}
|
|
36188
|
-
},
|
|
36189
|
-
function
|
|
36113
|
+
}, kf = 100, Wf = 70, qn = "cubic-bezier(0.86, 0, 0.07, 1)";
|
|
36114
|
+
function _f(e) {
|
|
36190
36115
|
return `
|
|
36191
36116
|
.${e}-wrapper {
|
|
36192
36117
|
position: relative;
|
|
@@ -36222,34 +36147,34 @@ function kf(e) {
|
|
|
36222
36147
|
}
|
|
36223
36148
|
.${e}-incoming-next {
|
|
36224
36149
|
z-index: 4;
|
|
36225
|
-
transition: transform var(--${e}-transition-ms) ${
|
|
36150
|
+
transition: transform var(--${e}-transition-ms) ${qn};
|
|
36226
36151
|
}
|
|
36227
36152
|
.${e}-incoming-prev {
|
|
36228
36153
|
z-index: 4;
|
|
36229
|
-
transition: transform var(--${e}-transition-ms) ${
|
|
36154
|
+
transition: transform var(--${e}-transition-ms) ${qn};
|
|
36230
36155
|
}
|
|
36231
36156
|
.${e}-outgoing {
|
|
36232
36157
|
will-change: transform;
|
|
36233
36158
|
}
|
|
36234
36159
|
.${e}-outgoing-next {
|
|
36235
36160
|
z-index: 3;
|
|
36236
|
-
transition: transform var(--${e}-transition-ms) ${
|
|
36161
|
+
transition: transform var(--${e}-transition-ms) ${qn};
|
|
36237
36162
|
}
|
|
36238
36163
|
.${e}-outgoing-prev {
|
|
36239
36164
|
z-index: 3;
|
|
36240
|
-
transition: transform var(--${e}-transition-ms) ${
|
|
36165
|
+
transition: transform var(--${e}-transition-ms) ${qn};
|
|
36241
36166
|
}
|
|
36242
36167
|
.${e}-outgoing-next .${e}-effect-image {
|
|
36243
|
-
transition: filter var(--${e}-transition-ms) ${
|
|
36168
|
+
transition: filter var(--${e}-transition-ms) ${qn};
|
|
36244
36169
|
}
|
|
36245
36170
|
.${e}-outgoing-prev .${e}-effect-image {
|
|
36246
|
-
transition: filter var(--${e}-transition-ms) ${
|
|
36171
|
+
transition: filter var(--${e}-transition-ms) ${qn};
|
|
36247
36172
|
}
|
|
36248
36173
|
.${e}-incoming .${e}-effect-image {
|
|
36249
|
-
transition: filter var(--${e}-transition-ms) ${
|
|
36174
|
+
transition: filter var(--${e}-transition-ms) ${qn};
|
|
36250
36175
|
}
|
|
36251
36176
|
.${e}-background .${e}-effect-image {
|
|
36252
|
-
transition: filter var(--${e}-transition-ms) ${
|
|
36177
|
+
transition: filter var(--${e}-transition-ms) ${qn};
|
|
36253
36178
|
}
|
|
36254
36179
|
.${e}-snap .${e}-incoming,
|
|
36255
36180
|
.${e}-snap .${e}-outgoing,
|
|
@@ -36299,11 +36224,11 @@ function kf(e) {
|
|
|
36299
36224
|
}
|
|
36300
36225
|
`;
|
|
36301
36226
|
}
|
|
36302
|
-
function
|
|
36303
|
-
return e === "blur" ?
|
|
36227
|
+
function Ff(e) {
|
|
36228
|
+
return e === "blur" ? Wf : e === "greyscale" ? kf : 0;
|
|
36304
36229
|
}
|
|
36305
36230
|
function Yi(e, t = 1, n = 1) {
|
|
36306
|
-
const i =
|
|
36231
|
+
const i = Ff(e) * Math.max(0, Math.min(1, t));
|
|
36307
36232
|
if (e === "greyscale")
|
|
36308
36233
|
return `grayscale(${i}%)`;
|
|
36309
36234
|
if (e === "blur") {
|
|
@@ -36315,13 +36240,13 @@ function Yi(e, t = 1, n = 1) {
|
|
|
36315
36240
|
function js(e) {
|
|
36316
36241
|
return e <= 1 ? { backgroundIndex: 0, activeIndex: 0 } : { backgroundIndex: 0, activeIndex: 1 };
|
|
36317
36242
|
}
|
|
36318
|
-
function
|
|
36243
|
+
function Nf(e, t) {
|
|
36319
36244
|
return t <= 1 ? 0 : (e - 1 + t) % t;
|
|
36320
36245
|
}
|
|
36321
|
-
function
|
|
36246
|
+
function Hf(e, t = 1) {
|
|
36322
36247
|
return !e || e.height === 0 ? t : e.width / e.height;
|
|
36323
36248
|
}
|
|
36324
|
-
function
|
|
36249
|
+
function Of(e, t, n, i, o) {
|
|
36325
36250
|
if (e <= 0 || t <= 0)
|
|
36326
36251
|
return { widthPercent: i, heightPercent: o };
|
|
36327
36252
|
const a = e * i / 100, r = t * o / 100;
|
|
@@ -36331,7 +36256,7 @@ function Nf(e, t, n, i, o) {
|
|
|
36331
36256
|
heightPercent: l / t * 100
|
|
36332
36257
|
};
|
|
36333
36258
|
}
|
|
36334
|
-
function
|
|
36259
|
+
function qs(e, t, n) {
|
|
36335
36260
|
if (e <= 0 || t <= 0) return 1;
|
|
36336
36261
|
const i = e * n.widthPercent / 100, o = t * n.heightPercent / 100;
|
|
36337
36262
|
return i <= 0 || o <= 0 ? 1 : Math.max(e / i, t / o);
|
|
@@ -36342,13 +36267,13 @@ function tc(e) {
|
|
|
36342
36267
|
height: `${e.heightPercent}%`
|
|
36343
36268
|
};
|
|
36344
36269
|
}
|
|
36345
|
-
function
|
|
36270
|
+
function Gs(e, t, n) {
|
|
36346
36271
|
return {
|
|
36347
36272
|
...tc(e),
|
|
36348
36273
|
[`--${n}-stage-scale`]: t
|
|
36349
36274
|
};
|
|
36350
36275
|
}
|
|
36351
|
-
function
|
|
36276
|
+
function Bf(e, t) {
|
|
36352
36277
|
[...new Set(e.filter(Boolean))].forEach((i) => {
|
|
36353
36278
|
const o = new Image();
|
|
36354
36279
|
o.onload = () => {
|
|
@@ -36356,17 +36281,17 @@ function Hf(e, t) {
|
|
|
36356
36281
|
}, o.src = i;
|
|
36357
36282
|
});
|
|
36358
36283
|
}
|
|
36359
|
-
function
|
|
36284
|
+
function zf({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
36360
36285
|
var Ce, _, Q, R, U, X, me;
|
|
36361
|
-
const { prefix: o } = hn(), a = Ne(() =>
|
|
36286
|
+
const { prefix: o } = hn(), a = Ne(() => _f(o), [o]), {
|
|
36362
36287
|
imageSize: r,
|
|
36363
36288
|
maxWidth: c,
|
|
36364
36289
|
maxHeight: l,
|
|
36365
36290
|
transition: d = 1e3,
|
|
36366
36291
|
bgImage: p = "greyscale"
|
|
36367
|
-
} = e, f = t ?? [], x = js(f.length), [S, g] = le(x.activeIndex), [y, w] = le(x.backgroundIndex), [$, I] = le(!1), [E, N] = le(!1), [v, H] = le(null), [M, C] = le(null), [j, h] = le(0), [P, k] = le(1), [z, ne] = le("none"), [ee, J] = le("next"), [O, F] = le({}), [T, L] = le({ width: 0, height: 0 }), V = ue(null),
|
|
36368
|
-
const fe =
|
|
36369
|
-
return
|
|
36292
|
+
} = e, f = t ?? [], x = js(f.length), [S, g] = le(x.activeIndex), [y, w] = le(x.backgroundIndex), [$, I] = le(!1), [E, N] = le(!1), [v, H] = le(null), [M, C] = le(null), [j, h] = le(0), [P, k] = le(1), [z, ne] = le("none"), [ee, J] = le("next"), [O, F] = le({}), [T, L] = le({ width: 0, height: 0 }), V = ue(null), G = ue(null), Z = !n || !!i, W = r ?? 60, ye = Math.max(10, Math.min(100, c ?? W)), m = Math.max(10, Math.min(100, l ?? W)), he = Math.max(100, d), re = Yi(p), we = $e((de) => {
|
|
36293
|
+
const fe = Hf(de ? O[de] : void 0);
|
|
36294
|
+
return Of(
|
|
36370
36295
|
T.width,
|
|
36371
36296
|
T.height,
|
|
36372
36297
|
fe,
|
|
@@ -36375,7 +36300,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36375
36300
|
);
|
|
36376
36301
|
}, [T.height, T.width, O, m, ye]);
|
|
36377
36302
|
We(() => {
|
|
36378
|
-
const de =
|
|
36303
|
+
const de = G.current;
|
|
36379
36304
|
if (!de) return;
|
|
36380
36305
|
const fe = new ResizeObserver(([Ee]) => {
|
|
36381
36306
|
const { width: ke, height: B } = Ee.contentRect;
|
|
@@ -36387,7 +36312,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36387
36312
|
var Ee;
|
|
36388
36313
|
return (Ee = fe.image) == null ? void 0 : Ee.url;
|
|
36389
36314
|
}).filter((fe) => !!fe);
|
|
36390
|
-
|
|
36315
|
+
Bf(de, (fe, Ee) => {
|
|
36391
36316
|
F((ke) => {
|
|
36392
36317
|
var B, Me;
|
|
36393
36318
|
return ((B = ke[fe]) == null ? void 0 : B.width) === Ee.width && ((Me = ke[fe]) == null ? void 0 : Me.height) === Ee.height ? ke : { ...ke, [fe]: Ee };
|
|
@@ -36402,8 +36327,8 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36402
36327
|
const He = $e((de) => {
|
|
36403
36328
|
var te, ie, Re, Be;
|
|
36404
36329
|
if (!Z || $ || f.length <= 1) return;
|
|
36405
|
-
const fe = de === "next" ? (S + 1) % f.length : (S - 1 + f.length) % f.length, Ee = we((ie = (te = f[S]) == null ? void 0 : te.image) == null ? void 0 : ie.url), ke = we((Be = (Re = f[fe]) == null ? void 0 : Re.image) == null ? void 0 : Be.url), B =
|
|
36406
|
-
V.current && clearTimeout(V.current), J(de), N(!0), I(!0), de === "next" ? (H(S), C(fe), h(0), k(1), ne(Yi(p, 0, 1))) : (w(
|
|
36330
|
+
const fe = de === "next" ? (S + 1) % f.length : (S - 1 + f.length) % f.length, Ee = we((ie = (te = f[S]) == null ? void 0 : te.image) == null ? void 0 : ie.url), ke = we((Be = (Re = f[fe]) == null ? void 0 : Re.image) == null ? void 0 : Be.url), B = qs(T.width, T.height, Ee), Me = qs(T.width, T.height, ke);
|
|
36331
|
+
V.current && clearTimeout(V.current), J(de), N(!0), I(!0), de === "next" ? (H(S), C(fe), h(0), k(1), ne(Yi(p, 0, 1))) : (w(Nf(fe, f.length)), H(fe), C(S), h(1), k(Me), ne(Yi(p, 1, Me))), requestAnimationFrame(() => {
|
|
36407
36332
|
N(!1), requestAnimationFrame(() => {
|
|
36408
36333
|
de === "next" ? (h(1), k(B), ne(Yi(p, 1, B))) : (h(0), k(1), ne(Yi(p, 0, 1)));
|
|
36409
36334
|
});
|
|
@@ -36423,12 +36348,12 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36423
36348
|
]), se = f[S], xe = y !== null ? f[y] : null, K = v !== null ? f[v] : null, be = M !== null ? f[M] : null, ge = f.length <= 1 ? 0 : (S - 1 + f.length) % f.length, pe = f.length <= 1 ? 0 : (S + 1) % f.length, ce = we((Ce = se == null ? void 0 : se.image) == null ? void 0 : Ce.url), Ie = we((_ = K == null ? void 0 : K.image) == null ? void 0 : _.url), Ae = we((Q = be == null ? void 0 : be.image) == null ? void 0 : Q.url), ve = {
|
|
36424
36349
|
[`--${o}-transition-ms`]: `${he}ms`
|
|
36425
36350
|
};
|
|
36426
|
-
return /* @__PURE__ */
|
|
36351
|
+
return /* @__PURE__ */ q(et, { children: [
|
|
36427
36352
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: a } }),
|
|
36428
|
-
/* @__PURE__ */
|
|
36353
|
+
/* @__PURE__ */ q(
|
|
36429
36354
|
"div",
|
|
36430
36355
|
{
|
|
36431
|
-
ref:
|
|
36356
|
+
ref: G,
|
|
36432
36357
|
className: ct(`${o}-wrapper`, E && `${o}-snap`, n && !i && `${o}-editor`),
|
|
36433
36358
|
style: ve,
|
|
36434
36359
|
"aria-label": "Zoom gallery",
|
|
@@ -36450,7 +36375,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36450
36375
|
`${o}-outgoing`,
|
|
36451
36376
|
`${o}-outgoing-${ee}`
|
|
36452
36377
|
),
|
|
36453
|
-
style:
|
|
36378
|
+
style: Gs(Ie, P, o),
|
|
36454
36379
|
"aria-hidden": "true",
|
|
36455
36380
|
children: /* @__PURE__ */ s(
|
|
36456
36381
|
"img",
|
|
@@ -36471,7 +36396,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36471
36396
|
`${o}-incoming`,
|
|
36472
36397
|
`${o}-incoming-${ee}`
|
|
36473
36398
|
),
|
|
36474
|
-
style:
|
|
36399
|
+
style: Gs(Ae, j, o),
|
|
36475
36400
|
"aria-hidden": "true",
|
|
36476
36401
|
children: /* @__PURE__ */ s(
|
|
36477
36402
|
"img",
|
|
@@ -36498,7 +36423,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36498
36423
|
)
|
|
36499
36424
|
}
|
|
36500
36425
|
),
|
|
36501
|
-
Z && f.length > 1 && !$ && /* @__PURE__ */
|
|
36426
|
+
Z && f.length > 1 && !$ && /* @__PURE__ */ q(et, { children: [
|
|
36502
36427
|
/* @__PURE__ */ s(
|
|
36503
36428
|
"button",
|
|
36504
36429
|
{
|
|
@@ -36523,7 +36448,7 @@ function Of({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
36523
36448
|
)
|
|
36524
36449
|
] });
|
|
36525
36450
|
}
|
|
36526
|
-
const
|
|
36451
|
+
const Df = `import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
36527
36452
|
import cn from 'classnames';
|
|
36528
36453
|
import { CommonComponentProps } from '../props';
|
|
36529
36454
|
import { useScopedStyles } from '../utils/useScopedStyles';
|
|
@@ -37042,7 +36967,7 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37042
36967
|
</>
|
|
37043
36968
|
);
|
|
37044
36969
|
}
|
|
37045
|
-
`,
|
|
36970
|
+
`, Vf = {
|
|
37046
36971
|
type: "object",
|
|
37047
36972
|
version: 1,
|
|
37048
36973
|
settings: {
|
|
@@ -37164,8 +37089,8 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37164
37089
|
}
|
|
37165
37090
|
]
|
|
37166
37091
|
}
|
|
37167
|
-
},
|
|
37168
|
-
element:
|
|
37092
|
+
}, jf = {
|
|
37093
|
+
element: zf,
|
|
37169
37094
|
id: "scale",
|
|
37170
37095
|
name: "Scale",
|
|
37171
37096
|
category: "galleries",
|
|
@@ -37184,8 +37109,8 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37184
37109
|
type: "image",
|
|
37185
37110
|
url: "https://cdn.cntrl.site/component-assets/Scale.mp4"
|
|
37186
37111
|
},
|
|
37187
|
-
schema:
|
|
37188
|
-
sourceCode:
|
|
37112
|
+
schema: Vf,
|
|
37113
|
+
sourceCode: Df,
|
|
37189
37114
|
assetsPaths: {
|
|
37190
37115
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
37191
37116
|
parameters: []
|
|
@@ -37194,10 +37119,10 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37194
37119
|
content: [],
|
|
37195
37120
|
parameters: []
|
|
37196
37121
|
}
|
|
37197
|
-
},
|
|
37122
|
+
}, Jf = [
|
|
37198
37123
|
mu,
|
|
37199
37124
|
xu,
|
|
37200
|
-
|
|
37125
|
+
Af,
|
|
37201
37126
|
lp,
|
|
37202
37127
|
yp,
|
|
37203
37128
|
Ip,
|
|
@@ -37205,14 +37130,14 @@ export function Scale({ settings, content, isEditor, isPreviewMode }: ScaleProps
|
|
|
37205
37130
|
Xp,
|
|
37206
37131
|
nm,
|
|
37207
37132
|
$m,
|
|
37208
|
-
|
|
37209
|
-
|
|
37210
|
-
|
|
37211
|
-
|
|
37212
|
-
|
|
37213
|
-
|
|
37133
|
+
vg,
|
|
37134
|
+
xh,
|
|
37135
|
+
Eh,
|
|
37136
|
+
pf,
|
|
37137
|
+
$f,
|
|
37138
|
+
jf
|
|
37214
37139
|
];
|
|
37215
37140
|
export {
|
|
37216
|
-
|
|
37217
|
-
|
|
37141
|
+
Jf as components,
|
|
37142
|
+
Yf as isSchemaV1
|
|
37218
37143
|
};
|