@cntrl-site/components 1.0.92 → 1.0.93
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 +41 -40
- package/dist/index.mjs +839 -838
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -544,14 +544,14 @@ function Sg(e, t, n, i) {
|
|
|
544
544
|
function C() {
|
|
545
545
|
if (!G) {
|
|
546
546
|
var I = e.index;
|
|
547
|
-
H(),
|
|
547
|
+
H(), F(), ci(i, Bu, t === I - 1), ci(i, Vu, t === I + 1);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
function H() {
|
|
551
551
|
var I = $();
|
|
552
552
|
I !== cc(i, ao) && (ci(i, ao, I), Gt(i, _u, f && I || ""), a(I ? bu : wu, Z));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function F() {
|
|
555
555
|
var I = z(), N = !I && (!$() || w);
|
|
556
556
|
if (e.state.is([qo, Mr]) || Gt(i, Hu, N || ""), Gt(Ss(i, u.focusableNodes || ""), Ro, N ? -1 : ""), x && Gt(i, Ro, N ? -1 : 0), I !== cc(i, Ul) && (ci(i, Ul, I), a(I ? Su : $u, Z)), !I && document.activeElement === i) {
|
|
557
557
|
var W = c.Slides.getAt(e.index);
|
|
@@ -609,8 +609,8 @@ function $g(e, t, n) {
|
|
|
609
609
|
C.update();
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
-
function x(C, H,
|
|
613
|
-
var T = Sg(e, H,
|
|
612
|
+
function x(C, H, F) {
|
|
613
|
+
var T = Sg(e, H, F, C);
|
|
614
614
|
T.mount(), u.push(T), u.sort(function($, z) {
|
|
615
615
|
return $.index - z.index;
|
|
616
616
|
});
|
|
@@ -621,19 +621,19 @@ function $g(e, t, n) {
|
|
|
621
621
|
}) : u;
|
|
622
622
|
}
|
|
623
623
|
function E(C) {
|
|
624
|
-
var H = t.Controller,
|
|
624
|
+
var H = t.Controller, F = H.toIndex(C), T = H.hasFocus() ? 1 : n.perPage;
|
|
625
625
|
return k(function($) {
|
|
626
|
-
return ha($.index,
|
|
626
|
+
return ha($.index, F, F + T - 1);
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
629
|
function h(C) {
|
|
630
630
|
return k(C)[0];
|
|
631
631
|
}
|
|
632
632
|
function w(C, H) {
|
|
633
|
-
Hn(C, function(
|
|
634
|
-
if (Ei(
|
|
633
|
+
Hn(C, function(F) {
|
|
634
|
+
if (Ei(F) && (F = fu(F)), mu(F)) {
|
|
635
635
|
var T = c[H];
|
|
636
|
-
T ? ws(
|
|
636
|
+
T ? ws(F, T) : Fr(d, F), Yn(F, n.classes.slide), M(F, an(r, Fo));
|
|
637
637
|
}
|
|
638
638
|
}), r(gn);
|
|
639
639
|
}
|
|
@@ -650,14 +650,14 @@ function $g(e, t, n) {
|
|
|
650
650
|
return Ei(C) ? xr(H.slide, C) : bs(Ar(C), H.index);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
function L(C, H,
|
|
653
|
+
function L(C, H, F) {
|
|
654
654
|
G(function(T) {
|
|
655
|
-
T.style(C, H,
|
|
655
|
+
T.style(C, H, F);
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
658
|
function M(C, H) {
|
|
659
|
-
var
|
|
660
|
-
T ?
|
|
659
|
+
var F = Ss(C, "img"), T = F.length;
|
|
660
|
+
T ? F.forEach(function($) {
|
|
661
661
|
a($, "load error", function() {
|
|
662
662
|
--T || H();
|
|
663
663
|
});
|
|
@@ -726,7 +726,7 @@ function Cg(e, t, n) {
|
|
|
726
726
|
var N = p(Z || 0);
|
|
727
727
|
return N ? An(N.slide)[c("width")] + (I ? 0 : $()) : 0;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function F(Z, I) {
|
|
730
730
|
var N = p(Z);
|
|
731
731
|
if (N) {
|
|
732
732
|
var W = An(N.slide)[c("right")], ee = An(y)[c("left")];
|
|
@@ -735,7 +735,7 @@ function Cg(e, t, n) {
|
|
|
735
735
|
return 0;
|
|
736
736
|
}
|
|
737
737
|
function T(Z) {
|
|
738
|
-
return
|
|
738
|
+
return F(e.length - 1) - F(0) + H(0, Z);
|
|
739
739
|
}
|
|
740
740
|
function $() {
|
|
741
741
|
var Z = p(0);
|
|
@@ -753,7 +753,7 @@ function Cg(e, t, n) {
|
|
|
753
753
|
listSize: C,
|
|
754
754
|
slideSize: H,
|
|
755
755
|
sliderSize: T,
|
|
756
|
-
totalSize:
|
|
756
|
+
totalSize: F,
|
|
757
757
|
getPadding: z,
|
|
758
758
|
isOverflow: v
|
|
759
759
|
};
|
|
@@ -818,7 +818,7 @@ function Pg(e, t, n) {
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
function L(N) {
|
|
821
|
-
M(
|
|
821
|
+
M(F(N, !0));
|
|
822
822
|
}
|
|
823
823
|
function M(N, W) {
|
|
824
824
|
if (!e.is(Wr)) {
|
|
@@ -842,15 +842,15 @@ function Pg(e, t, n) {
|
|
|
842
842
|
}
|
|
843
843
|
function H(N) {
|
|
844
844
|
for (var W = t.Slides.get(), ee = 0, se = 1 / 0, O = 0; O < W.length; O++) {
|
|
845
|
-
var le = W[O].index,
|
|
846
|
-
if (
|
|
847
|
-
se =
|
|
845
|
+
var le = W[O].index, A = Ln(F(le, !0) - N);
|
|
846
|
+
if (A <= se)
|
|
847
|
+
se = A, ee = le;
|
|
848
848
|
else
|
|
849
849
|
break;
|
|
850
850
|
}
|
|
851
851
|
return ee;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function F(N, W) {
|
|
854
854
|
var ee = x(u(N - 1) - z(N));
|
|
855
855
|
return W ? $(ee) : ee;
|
|
856
856
|
}
|
|
@@ -866,7 +866,7 @@ function Pg(e, t, n) {
|
|
|
866
866
|
return W === "center" ? (f() - c(N, !0)) / 2 : +W * c(N) || 0;
|
|
867
867
|
}
|
|
868
868
|
function v(N) {
|
|
869
|
-
return
|
|
869
|
+
return F(N ? t.Controller.getEnd() : 0, !!n.trimSpace);
|
|
870
870
|
}
|
|
871
871
|
function Z(N) {
|
|
872
872
|
var W = x(S(T(), N));
|
|
@@ -885,7 +885,7 @@ function Pg(e, t, n) {
|
|
|
885
885
|
shift: S,
|
|
886
886
|
cancel: C,
|
|
887
887
|
toIndex: H,
|
|
888
|
-
toPosition:
|
|
888
|
+
toPosition: F,
|
|
889
889
|
getPosition: T,
|
|
890
890
|
getLimit: v,
|
|
891
891
|
exceededLimit: I,
|
|
@@ -899,77 +899,77 @@ function Ig(e, t, n) {
|
|
|
899
899
|
}
|
|
900
900
|
function j() {
|
|
901
901
|
G = y(!0), k = n.perMove, L = n.perPage, w = Z();
|
|
902
|
-
var
|
|
903
|
-
|
|
902
|
+
var A = xo(h, 0, p ? w : G - 1);
|
|
903
|
+
A !== h && (h = A, a.reposition());
|
|
904
904
|
}
|
|
905
905
|
function S() {
|
|
906
906
|
w !== Z() && r(Ta);
|
|
907
907
|
}
|
|
908
|
-
function C(
|
|
908
|
+
function C(A, de, ie) {
|
|
909
909
|
if (!le()) {
|
|
910
|
-
var ve = A
|
|
910
|
+
var ve = F(A), ke = v(ve);
|
|
911
911
|
ke > -1 && (de || ke !== h) && (ee(ke), a.move(ve, ke, V, ie));
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
function H(
|
|
915
|
-
t.Scroll.scroll(
|
|
914
|
+
function H(A, de, ie, ve) {
|
|
915
|
+
t.Scroll.scroll(A, de, ie, function() {
|
|
916
916
|
var ke = v(a.toIndex(s()));
|
|
917
917
|
ee(p ? Ai(ke, w) : ke), ve && ve();
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
function A
|
|
920
|
+
function F(A) {
|
|
921
921
|
var de = h;
|
|
922
|
-
if (Ei(
|
|
923
|
-
var ie =
|
|
922
|
+
if (Ei(A)) {
|
|
923
|
+
var ie = A.match(/([+\-<>])(\d+)?/) || [], ve = ie[1], ke = ie[2];
|
|
924
924
|
ve === "+" || ve === "-" ? de = $(h + +("" + ve + (+ke || 1)), h) : ve === ">" ? de = ke ? I(+ke) : b(!0) : ve === "<" && (de = E(!0));
|
|
925
925
|
} else
|
|
926
|
-
de = m ?
|
|
926
|
+
de = m ? A : xo(A, 0, w);
|
|
927
927
|
return de;
|
|
928
928
|
}
|
|
929
|
-
function T(
|
|
930
|
-
var ie = k || (O() ? 1 : L), ve = $(h + ie * (
|
|
931
|
-
return ve === -1 && x && !vu(s(), c(!
|
|
929
|
+
function T(A, de) {
|
|
930
|
+
var ie = k || (O() ? 1 : L), ve = $(h + ie * (A ? -1 : 1), h, !(k || O()));
|
|
931
|
+
return ve === -1 && x && !vu(s(), c(!A), 1) ? A ? 0 : w : de ? ve : v(ve);
|
|
932
932
|
}
|
|
933
|
-
function $(
|
|
933
|
+
function $(A, de, ie) {
|
|
934
934
|
if (f() || O()) {
|
|
935
|
-
var ve = z(
|
|
936
|
-
ve !==
|
|
935
|
+
var ve = z(A);
|
|
936
|
+
ve !== A && (de = A, A = ve, ie = !1), A < 0 || A > w ? !k && (ha(0, A, de, !0) || ha(w, de, A, !0)) ? A = I(N(A)) : m ? A = ie ? A < 0 ? -(G % L || L) : G : A : n.rewind ? A = A < 0 ? w : 0 : A = -1 : ie && A !== de && (A = I(N(de) + (A < de ? -1 : 1)));
|
|
937
937
|
} else
|
|
938
|
-
|
|
939
|
-
return
|
|
938
|
+
A = -1;
|
|
939
|
+
return A;
|
|
940
940
|
}
|
|
941
|
-
function z(
|
|
942
|
-
if (x && n.trimSpace === "move" &&
|
|
943
|
-
for (var de = s(); de === d(
|
|
944
|
-
|
|
945
|
-
return
|
|
941
|
+
function z(A) {
|
|
942
|
+
if (x && n.trimSpace === "move" && A !== h)
|
|
943
|
+
for (var de = s(); de === d(A, !0) && ha(A, 0, e.length - 1, !n.rewind); )
|
|
944
|
+
A < h ? --A : ++A;
|
|
945
|
+
return A;
|
|
946
946
|
}
|
|
947
|
-
function v(
|
|
948
|
-
return m ? (
|
|
947
|
+
function v(A) {
|
|
948
|
+
return m ? (A + G) % G || 0 : A;
|
|
949
949
|
}
|
|
950
950
|
function Z() {
|
|
951
|
-
for (var
|
|
952
|
-
if (d(G - 1, !0) !== d(
|
|
953
|
-
|
|
951
|
+
for (var A = G - (O() || m && k ? 1 : L); p && A-- > 0; )
|
|
952
|
+
if (d(G - 1, !0) !== d(A, !0)) {
|
|
953
|
+
A++;
|
|
954
954
|
break;
|
|
955
955
|
}
|
|
956
|
-
return xo(
|
|
956
|
+
return xo(A, 0, G - 1);
|
|
957
957
|
}
|
|
958
|
-
function I(
|
|
959
|
-
return xo(O() ?
|
|
958
|
+
function I(A) {
|
|
959
|
+
return xo(O() ? A : L * A, 0, w);
|
|
960
960
|
}
|
|
961
|
-
function N(
|
|
962
|
-
return O() ? Ai(
|
|
961
|
+
function N(A) {
|
|
962
|
+
return O() ? Ai(A, w) : Ca((A >= w ? G - 1 : A) / L);
|
|
963
963
|
}
|
|
964
|
-
function W(
|
|
965
|
-
var de = a.toIndex(
|
|
964
|
+
function W(A) {
|
|
965
|
+
var de = a.toIndex(A);
|
|
966
966
|
return x ? xo(de, 0, w) : de;
|
|
967
967
|
}
|
|
968
|
-
function ee(
|
|
969
|
-
|
|
968
|
+
function ee(A) {
|
|
969
|
+
A !== h && (V = h, h = A);
|
|
970
970
|
}
|
|
971
|
-
function se(
|
|
972
|
-
return
|
|
971
|
+
function se(A) {
|
|
972
|
+
return A ? V : h;
|
|
973
973
|
}
|
|
974
974
|
function O() {
|
|
975
975
|
return !Er(n.focus) || n.isNavigation;
|
|
@@ -1023,13 +1023,13 @@ function Mg(e, t, n) {
|
|
|
1023
1023
|
p = f || Io("div", s.arrows), m = S(!0), x = S(!1), b = !0, Fr(p, [m, x]), !f && ws(p, y);
|
|
1024
1024
|
}
|
|
1025
1025
|
function S(H) {
|
|
1026
|
-
var
|
|
1027
|
-
return fu(
|
|
1026
|
+
var F = '<button class="' + s.arrow + " " + (H ? s.prev : s.next) + '" type="button"><svg xmlns="' + Rg + '" viewBox="0 0 ' + Vr + " " + Vr + '" width="' + Vr + '" height="' + Vr + '" focusable="false"><path d="' + (n.arrowPath || kg) + '" />';
|
|
1027
|
+
return fu(F);
|
|
1028
1028
|
}
|
|
1029
1029
|
function C() {
|
|
1030
1030
|
if (m && x) {
|
|
1031
|
-
var H = e.index,
|
|
1032
|
-
m.disabled =
|
|
1031
|
+
var H = e.index, F = u.getPrev(), T = u.getNext(), $ = F > -1 && H < F ? c.last : c.prev, z = T > -1 && H > T ? c.first : c.next;
|
|
1032
|
+
m.disabled = F < 0, x.disabled = T < 0, Gt(m, Nn, $), Gt(x, Nn, z), a(Iu, m, x, F, T);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
return {
|
|
@@ -1110,8 +1110,8 @@ function Dg(e, t, n) {
|
|
|
1110
1110
|
function E(L, M, j, S, C) {
|
|
1111
1111
|
var H = c();
|
|
1112
1112
|
if (V(), j && (!y || !u())) {
|
|
1113
|
-
var
|
|
1114
|
-
L = s.toPosition(t.Controller.toDest(L %
|
|
1113
|
+
var F = t.Layout.sliderSize(), T = Gl(L) * F * Ca(Ln(L) / F) || 0;
|
|
1114
|
+
L = s.toPosition(t.Controller.toDest(L % F)) + T;
|
|
1115
1115
|
}
|
|
1116
1116
|
var $ = vu(H, L, 1);
|
|
1117
1117
|
x = 1, M = $ ? 0 : M || $a(Ln(L - H) / Wg, Og), m = S, p = Wa(M, h, an(w, H, L, C), 1), a(Mr), r(Ha), p.start();
|
|
@@ -1120,8 +1120,8 @@ function Dg(e, t, n) {
|
|
|
1120
1120
|
a(Ao), m && m(), r(so);
|
|
1121
1121
|
}
|
|
1122
1122
|
function w(L, M, j, S) {
|
|
1123
|
-
var C = c(), H = L + (M - L) * k(S),
|
|
1124
|
-
f(C +
|
|
1123
|
+
var C = c(), H = L + (M - L) * k(S), F = (H - C) * x;
|
|
1124
|
+
f(C + F), y && !j && u() && (x *= Hg, Ln(F) < Ng && E(d(u(!0)), _g, !1, m, !0));
|
|
1125
1125
|
}
|
|
1126
1126
|
function V() {
|
|
1127
1127
|
p && p.cancel();
|
|
@@ -1149,11 +1149,11 @@ function zg(e, t, n) {
|
|
|
1149
1149
|
function H() {
|
|
1150
1150
|
a(y, il, Vl, bo), a(y, ol, Vl, bo), a(y, Xu, T, bo), a(y, "click", v, {
|
|
1151
1151
|
capture: !0
|
|
1152
|
-
}), a(y, "dragstart", li), o([Oi, Sn],
|
|
1152
|
+
}), a(y, "dragstart", li), o([Oi, Sn], F);
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function F() {
|
|
1155
1155
|
var U = n.drag;
|
|
1156
|
-
|
|
1156
|
+
pe(!U), k = U === "free";
|
|
1157
1157
|
}
|
|
1158
1158
|
function T(U) {
|
|
1159
1159
|
if (j = !1, !S) {
|
|
@@ -1165,8 +1165,8 @@ function zg(e, t, n) {
|
|
|
1165
1165
|
if (c.is(ma) || (c.set(ma), r(Cu)), U.cancelable)
|
|
1166
1166
|
if (L) {
|
|
1167
1167
|
d.translate(w + ie(O(U)));
|
|
1168
|
-
var ce = le(U) > yc,
|
|
1169
|
-
(ce ||
|
|
1168
|
+
var ce = le(U) > yc, me = M !== (M = h());
|
|
1169
|
+
(ce || me) && Z(U), j = !0, r(Tu), li(U);
|
|
1170
1170
|
} else W(U) && (L = N(U), li(U));
|
|
1171
1171
|
}
|
|
1172
1172
|
function z(U) {
|
|
@@ -1179,11 +1179,11 @@ function zg(e, t, n) {
|
|
|
1179
1179
|
G = V, V = U, w = E();
|
|
1180
1180
|
}
|
|
1181
1181
|
function I(U) {
|
|
1182
|
-
var ce = ee(U),
|
|
1183
|
-
p(!1), k ? f.scroll(
|
|
1182
|
+
var ce = ee(U), me = se(ce), be = n.rewind && n.rewindByDrag;
|
|
1183
|
+
p(!1), k ? f.scroll(me, 0, n.snap) : e.is(Wr) ? f.go(b(Gl(ce)) < 0 ? be ? "<" : "-" : be ? ">" : "+") : e.is(No) && M && be ? f.go(h(!0) ? ">" : "<") : f.go(f.toDest(me), !0), p(!0);
|
|
1184
1184
|
}
|
|
1185
1185
|
function N(U) {
|
|
1186
|
-
var ce = n.dragMinThreshold,
|
|
1186
|
+
var ce = n.dragMinThreshold, me = vr(ce), be = me && ce.mouse || 0, Le = (me ? ce.touch : +ce) || 10;
|
|
1187
1187
|
return Ln(O(U)) > (ke(U) ? Le : be);
|
|
1188
1188
|
}
|
|
1189
1189
|
function W(U) {
|
|
@@ -1201,12 +1201,12 @@ function zg(e, t, n) {
|
|
|
1201
1201
|
return E() + Gl(U) * Ai(Ln(U) * (n.flickPower || 600), k ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1202
1202
|
}
|
|
1203
1203
|
function O(U, ce) {
|
|
1204
|
-
return de(U, ce) - de(
|
|
1204
|
+
return de(U, ce) - de(A(U), ce);
|
|
1205
1205
|
}
|
|
1206
1206
|
function le(U) {
|
|
1207
|
-
return jl(U) - jl(
|
|
1207
|
+
return jl(U) - jl(A(U));
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function A(U) {
|
|
1210
1210
|
return V === U && G || V;
|
|
1211
1211
|
}
|
|
1212
1212
|
function de(U, ce) {
|
|
@@ -1225,12 +1225,12 @@ function zg(e, t, n) {
|
|
|
1225
1225
|
function we() {
|
|
1226
1226
|
return L;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function pe(U) {
|
|
1229
1229
|
S = U;
|
|
1230
1230
|
}
|
|
1231
1231
|
return {
|
|
1232
1232
|
mount: H,
|
|
1233
|
-
disable:
|
|
1233
|
+
disable: pe,
|
|
1234
1234
|
isDragging: we
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
@@ -1335,7 +1335,7 @@ function Xg(e, t, n) {
|
|
|
1335
1335
|
b && (ro(m ? Wi(b.children) : b), di(b, E), gi(x), b = null), i.destroy();
|
|
1336
1336
|
}
|
|
1337
1337
|
function V() {
|
|
1338
|
-
var S = e.length, C = n.classes, H = n.i18n,
|
|
1338
|
+
var S = e.length, C = n.classes, H = n.i18n, F = n.perPage, T = u() ? d.getEnd() + 1 : $r(S / F);
|
|
1339
1339
|
b = m || Io("ul", C.pagination, c.track.parentElement), Yn(b, E = Ga + "--" + L()), Gt(b, ui, "tablist"), Gt(b, Nn, H.select), Gt(b, Es, L() === Ba ? "vertical" : "");
|
|
1340
1340
|
for (var $ = 0; $ < T; $++) {
|
|
1341
1341
|
var z = Io("li", null, b), v = Io("button", {
|
|
@@ -1343,7 +1343,7 @@ function Xg(e, t, n) {
|
|
|
1343
1343
|
type: "button"
|
|
1344
1344
|
}, z), Z = s.getIn($).map(function(N) {
|
|
1345
1345
|
return N.slide.id;
|
|
1346
|
-
}), I = !u() &&
|
|
1346
|
+
}), I = !u() && F > 1 ? H.pageX : H.slideX;
|
|
1347
1347
|
a(v, "click", an(G, $)), n.paginationKeyboard && a(v, "keydown", an(k, $)), Gt(z, ui, "presentation"), Gt(v, ui, "tab"), Gt(v, Hr, Z.join(" ")), Gt(v, Nn, Xl(I, $ + 1)), Gt(v, Ro, -1), x.push({
|
|
1348
1348
|
li: z,
|
|
1349
1349
|
button: v,
|
|
@@ -1355,8 +1355,8 @@ function Xg(e, t, n) {
|
|
|
1355
1355
|
y(">" + S, !0);
|
|
1356
1356
|
}
|
|
1357
1357
|
function k(S, C) {
|
|
1358
|
-
var H = x.length,
|
|
1359
|
-
|
|
1358
|
+
var H = x.length, F = Ns(C), T = L(), $ = -1;
|
|
1359
|
+
F === p(za, !1, T) ? $ = ++S % H : F === p(Da, !1, T) ? $ = (--S + H) % H : F === "Home" ? $ = 0 : F === "End" && ($ = H - 1);
|
|
1360
1360
|
var z = x[$];
|
|
1361
1361
|
z && (hu(z.button), y(">" + $), li(C, !0));
|
|
1362
1362
|
}
|
|
@@ -1373,8 +1373,8 @@ function Xg(e, t, n) {
|
|
|
1373
1373
|
di(H, ao), Zn(H, pc), Gt(H, Ro, -1);
|
|
1374
1374
|
}
|
|
1375
1375
|
if (C) {
|
|
1376
|
-
var
|
|
1377
|
-
Yn(
|
|
1376
|
+
var F = C.button;
|
|
1377
|
+
Yn(F, ao), Gt(F, pc, !0), Gt(F, Ro, "");
|
|
1378
1378
|
}
|
|
1379
1379
|
r(ku, {
|
|
1380
1380
|
list: b,
|
|
@@ -1887,7 +1887,7 @@ const uh = "SvgImage-module__svg___q3xE-", ph = "SvgImage-module__img___VsTm-",
|
|
|
1887
1887
|
"bottom-right": kt.bottomRightAlignment
|
|
1888
1888
|
};
|
|
1889
1889
|
function fh({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
1890
|
-
const [o, r] = ne(null), { widthSettings: a, fontSettings: s, letterSpacing: c, textAlign: d, wordSpacing: u, fontSizeLineHeight: f, textAppearance: y, color: p } = n.imageCaption ?? {}, [m, x] = ne(void 0), [b, E] = ne(null), [h, w] = ne(0), [V, G] = ne(0), { direction: k, transition: L, controls: M, pagination: j, imageCaption: S, triggers: C } = e, H = q(L.type), { x:
|
|
1890
|
+
const [o, r] = ne(null), { widthSettings: a, fontSettings: s, letterSpacing: c, textAlign: d, wordSpacing: u, fontSizeLineHeight: f, textAppearance: y, color: p } = n.imageCaption ?? {}, [m, x] = ne(void 0), [b, E] = ne(null), [h, w] = ne(0), [V, G] = ne(0), { direction: k, transition: L, controls: M, pagination: j, imageCaption: S, triggers: C } = e, H = q(L.type), { x: F, y: T } = e.controls.offset, $ = (z) => {
|
|
1891
1891
|
o && o.go(z);
|
|
1892
1892
|
};
|
|
1893
1893
|
return Me(() => {
|
|
@@ -2035,7 +2035,7 @@ function fh({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2035
2035
|
},
|
|
2036
2036
|
className: kt.arrowInner,
|
|
2037
2037
|
style: {
|
|
2038
|
-
transform: `translate(${K(
|
|
2038
|
+
transform: `translate(${K(F, i)}, ${K(T * (k === "horiz" ? 1 : -1), i)}) scale(${e.controls.scale / 100}) rotate(${k === "horiz" ? "0deg" : "90deg"})`
|
|
2039
2039
|
},
|
|
2040
2040
|
children: [
|
|
2041
2041
|
M.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2070,7 +2070,7 @@ function fh({ settings: e, content: t, styles: n, isEditor: i }) {
|
|
|
2070
2070
|
className: kt.arrowInner,
|
|
2071
2071
|
onClick: () => $("+1"),
|
|
2072
2072
|
style: {
|
|
2073
|
-
transform: `translate(${K(
|
|
2073
|
+
transform: `translate(${K(F * (k === "horiz" ? -1 : 1), i)}, ${K(T, i)}) scale(${e.controls.scale / 100}) rotate(${k === "horiz" ? "0deg" : "90deg"})`
|
|
2074
2074
|
},
|
|
2075
2075
|
children: [
|
|
2076
2076
|
M.arrowsImgUrl && /* @__PURE__ */ l(
|
|
@@ -2807,7 +2807,7 @@ async function Sh(e, t, n, i) {
|
|
|
2807
2807
|
return { width: o, height: r, finalWidth: `${o}px` };
|
|
2808
2808
|
}
|
|
2809
2809
|
function $h({ settings: e, content: t, isEditor: n }) {
|
|
2810
|
-
const [i, o] = ne(null), [r, a] = ne([]), [s, c] = ne(0), d = q(0), [u, f] = ne({ x: 0, y: 0 }), [y, p] = ne(1), [m, x] = ne("none"), b = q({ x: 0, y: 0 }), [E, h] = ne(!1), { sizeType: w, imageWidth: V, randomRangeImageWidth: G } = e.imageSize, { revealPosition: k, visible: L } = e.position, { cursorType: M, target: j, defaultCursorScale: S, defaultCursor: C, hoverCursorScale: H, hoverCursor:
|
|
2810
|
+
const [i, o] = ne(null), [r, a] = ne([]), [s, c] = ne(0), d = q(0), [u, f] = ne({ x: 0, y: 0 }), [y, p] = ne(1), [m, x] = ne("none"), b = q({ x: 0, y: 0 }), [E, h] = ne(!1), { sizeType: w, imageWidth: V, randomRangeImageWidth: G } = e.imageSize, { revealPosition: k, visible: L } = e.position, { cursorType: M, target: j, defaultCursorScale: S, defaultCursor: C, hoverCursorScale: H, hoverCursor: F } = e.cursor;
|
|
2811
2811
|
Me(() => {
|
|
2812
2812
|
if (!i) return;
|
|
2813
2813
|
const z = (I, N) => {
|
|
@@ -2816,12 +2816,12 @@ function $h({ settings: e, content: t, isEditor: n }) {
|
|
|
2816
2816
|
x("none"), p(1);
|
|
2817
2817
|
return;
|
|
2818
2818
|
}
|
|
2819
|
-
const O = ee, le = se,
|
|
2820
|
-
if (
|
|
2819
|
+
const O = ee, le = se, A = document.elementFromPoint(W.left + O, W.top + le);
|
|
2820
|
+
if (A && A.closest("a")) {
|
|
2821
2821
|
x("none"), p(1);
|
|
2822
2822
|
return;
|
|
2823
2823
|
}
|
|
2824
|
-
const de = Sc(O, le, r) || j === "area" ? { img:
|
|
2824
|
+
const de = Sc(O, le, r) || j === "area" ? { img: F ?? "none", scale: H } : { img: C ?? "none", scale: S };
|
|
2825
2825
|
x(de.img), p(de.scale);
|
|
2826
2826
|
}, v = (I) => {
|
|
2827
2827
|
I.stopPropagation(), b.current = { x: I.clientX, y: I.clientY }, z(I.clientX, I.clientY);
|
|
@@ -2837,7 +2837,7 @@ function $h({ settings: e, content: t, isEditor: n }) {
|
|
|
2837
2837
|
u,
|
|
2838
2838
|
M,
|
|
2839
2839
|
j,
|
|
2840
|
-
|
|
2840
|
+
F,
|
|
2841
2841
|
C,
|
|
2842
2842
|
H,
|
|
2843
2843
|
S,
|
|
@@ -2854,14 +2854,14 @@ function $h({ settings: e, content: t, isEditor: n }) {
|
|
|
2854
2854
|
);
|
|
2855
2855
|
let se = 0, O = 0;
|
|
2856
2856
|
k === "same" ? (se = v / 2, O = Z / 2) : (se = I.x ?? Math.random() * v, O = I.y ?? Math.random() * Z);
|
|
2857
|
-
const le = Math.min(Math.max(se, N / 2), v - N / 2),
|
|
2857
|
+
const le = Math.min(Math.max(se, N / 2), v - N / 2), A = Math.min(Math.max(O, W / 2), Z - W / 2);
|
|
2858
2858
|
return {
|
|
2859
2859
|
id: d.current++,
|
|
2860
2860
|
url: z.image.url,
|
|
2861
2861
|
link: z.link,
|
|
2862
2862
|
name: z.image.name,
|
|
2863
2863
|
x: le,
|
|
2864
|
-
y:
|
|
2864
|
+
y: A,
|
|
2865
2865
|
width: ee
|
|
2866
2866
|
};
|
|
2867
2867
|
};
|
|
@@ -3512,8 +3512,8 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3512
3512
|
)
|
|
3513
3513
|
] });
|
|
3514
3514
|
}, ff = ({ isOpen: e, onClose: t, content: n, lightboxStyles: i, settings: o, portalId: r, isEditor: a, metadata: s }) => {
|
|
3515
|
-
var
|
|
3516
|
-
const { widthSettings: c, fontSettings: d, letterSpacing: u, textAlign: f, wordSpacing: y, fontSizeLineHeight: p, textAppearance: m, color: x } = i.imageCaption ?? {}, [b, E] = ne(0), [h, w] = ne(0), [V, G] = ne(!1), [k, L] = ne(!1), [M, j] = ne({}), S = q(null), C = q(null), H = q(null),
|
|
3515
|
+
var Pe;
|
|
3516
|
+
const { widthSettings: c, fontSettings: d, letterSpacing: u, textAlign: f, wordSpacing: y, fontSizeLineHeight: p, textAppearance: m, color: x } = i.imageCaption ?? {}, [b, E] = ne(0), [h, w] = ne(0), [V, G] = ne(!1), [k, L] = ne(!1), [M, j] = ne({}), S = q(null), C = q(null), H = q(null), F = q(!1), T = q(null), $ = q(null), z = q(null), v = q(null), Z = q(!1), I = q(null), [N, W] = ne(!1), { appear: ee, triggers: se, slider: O, thumbnail: le, controls: A, area: de, caption: ie, layout: ve } = o.lightboxBlock, { appearClass: ke, backdropAppearClass: we, backdropDisappearClass: pe, disappearClass: U } = gf(ee.type, ee.direction), ce = (s == null ? void 0 : s.itemId) ?? null;
|
|
3517
3517
|
Me(() => {
|
|
3518
3518
|
const g = () => {
|
|
3519
3519
|
setTimeout(() => {
|
|
@@ -3540,18 +3540,18 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3540
3540
|
const J = new ResizeObserver(X);
|
|
3541
3541
|
return J.observe(g), () => J.disconnect();
|
|
3542
3542
|
}, [e, le.isActive, n.length, M, O.direction]);
|
|
3543
|
-
const
|
|
3543
|
+
const me = $e(() => {
|
|
3544
3544
|
const g = window.matchMedia("(max-width: 768px)").matches, X = rc(de.color);
|
|
3545
|
-
g && !a && X > 0.9 && (document.body.style.backgroundColor = ""), G(!0),
|
|
3545
|
+
g && !a && X > 0.9 && (document.body.style.backgroundColor = ""), G(!0), F.current = !0;
|
|
3546
3546
|
const J = (oe) => {
|
|
3547
|
-
oe.target === T.current && oe.animationName && (T.current && $.current && T.current.removeEventListener("animationend", $.current), $.current = null,
|
|
3547
|
+
oe.target === T.current && oe.animationName && (T.current && $.current && T.current.removeEventListener("animationend", $.current), $.current = null, F.current && (F.current = !1, t()), G(!1));
|
|
3548
3548
|
};
|
|
3549
3549
|
T.current && ($.current = J, T.current.addEventListener("animationend", J));
|
|
3550
3550
|
}, [t, de.color, a]), be = (g, X, J) => {
|
|
3551
3551
|
var oe, he;
|
|
3552
3552
|
if (g) {
|
|
3553
3553
|
if (se.type === "click" && se.switch === "image")
|
|
3554
|
-
se.repeat === "close" && b === n.length - 1 ?
|
|
3554
|
+
se.repeat === "close" && b === n.length - 1 ? me() : (oe = S.current) == null || oe.go("+1");
|
|
3555
3555
|
else if (se.type === "click" && se.switch === "50/50") {
|
|
3556
3556
|
const D = g.getBoundingClientRect(), P = X - D.left, te = J - D.top, re = D.width, ge = D.height;
|
|
3557
3557
|
let B;
|
|
@@ -3578,12 +3578,12 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3578
3578
|
} else {
|
|
3579
3579
|
const P = H.current ? Pa(H.current) : null;
|
|
3580
3580
|
if (!P) {
|
|
3581
|
-
g.target === g.currentTarget &&
|
|
3581
|
+
g.target === g.currentTarget && me();
|
|
3582
3582
|
return;
|
|
3583
3583
|
}
|
|
3584
3584
|
D = oe >= P.x && oe <= P.x + P.width && he >= P.y && he <= P.y + P.height;
|
|
3585
3585
|
}
|
|
3586
|
-
D ? be(H.current, oe, he) :
|
|
3586
|
+
D ? be(H.current, oe, he) : me();
|
|
3587
3587
|
}, Fe = (g) => {
|
|
3588
3588
|
const X = g.target;
|
|
3589
3589
|
(X.classList.contains(ut.thumbsWrapper) || X.classList.contains(ut.thumbsContainer)) && Le(g);
|
|
@@ -3593,7 +3593,7 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3593
3593
|
const g = (X) => {
|
|
3594
3594
|
var J, oe;
|
|
3595
3595
|
if (X.key === "Escape") {
|
|
3596
|
-
|
|
3596
|
+
me();
|
|
3597
3597
|
return;
|
|
3598
3598
|
}
|
|
3599
3599
|
if (X.key === "ArrowRight") {
|
|
@@ -3605,9 +3605,9 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3605
3605
|
return window.addEventListener("keydown", g), () => {
|
|
3606
3606
|
window.removeEventListener("keydown", g);
|
|
3607
3607
|
};
|
|
3608
|
-
}, [e,
|
|
3608
|
+
}, [e, me, n.length]), Me(() => {
|
|
3609
3609
|
if (e) {
|
|
3610
|
-
if (E(0), w((X) => X + 1),
|
|
3610
|
+
if (E(0), w((X) => X + 1), F.current = !1, G(!1), L(!1), j({}), !ce) return;
|
|
3611
3611
|
const g = new CustomEvent("page-overlay", { detail: { itemId: ce } });
|
|
3612
3612
|
window.dispatchEvent(g);
|
|
3613
3613
|
}
|
|
@@ -3621,7 +3621,7 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3621
3621
|
const g = document.body.style.overflow, X = window.matchMedia("(max-width: 768px)").matches, J = rc(de.color);
|
|
3622
3622
|
document.body.style.overflow = "hidden", L(!1);
|
|
3623
3623
|
const oe = (D) => {
|
|
3624
|
-
D.target === T.current && !
|
|
3624
|
+
D.target === T.current && !F.current && D.animationName && (X && !a && J > 0.9 && (document.body.style.backgroundColor = de.color), L(!0), T.current && z.current && T.current.removeEventListener("animationend", z.current), z.current = null);
|
|
3625
3625
|
};
|
|
3626
3626
|
T.current && (z.current = oe, T.current.addEventListener("animationend", oe));
|
|
3627
3627
|
const he = (D) => {
|
|
@@ -3635,7 +3635,7 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3635
3635
|
if (!e) return;
|
|
3636
3636
|
const g = (X) => {
|
|
3637
3637
|
var oe, he;
|
|
3638
|
-
if (
|
|
3638
|
+
if (F.current) {
|
|
3639
3639
|
X.stopPropagation();
|
|
3640
3640
|
return;
|
|
3641
3641
|
}
|
|
@@ -3662,11 +3662,11 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3662
3662
|
re = te.clientX >= ge.x && te.clientX <= ge.x + ge.width && te.clientY >= ge.y && te.clientY <= ge.y + ge.height;
|
|
3663
3663
|
}
|
|
3664
3664
|
if (!re) {
|
|
3665
|
-
X.stopPropagation(),
|
|
3665
|
+
X.stopPropagation(), F.current = !0;
|
|
3666
3666
|
const ge = (B) => {
|
|
3667
3667
|
B.stopPropagation(), B.preventDefault(), document.removeEventListener("click", ge, !0);
|
|
3668
3668
|
};
|
|
3669
|
-
document.addEventListener("click", ge, !0),
|
|
3669
|
+
document.addEventListener("click", ge, !0), me();
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
3672
|
}
|
|
@@ -3674,7 +3674,7 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3674
3674
|
return document.addEventListener("touchend", g, { passive: !0 }), () => {
|
|
3675
3675
|
document.removeEventListener("touchend", g);
|
|
3676
3676
|
};
|
|
3677
|
-
}, [e,
|
|
3677
|
+
}, [e, me, b, n]);
|
|
3678
3678
|
const ye = (O.type === "scale" || O.type === "fade") && O.direction === "vert" && se.type === "drag";
|
|
3679
3679
|
Me(() => {
|
|
3680
3680
|
var B, Ee;
|
|
@@ -3727,7 +3727,7 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3727
3727
|
"div",
|
|
3728
3728
|
{
|
|
3729
3729
|
ref: a ? null : T,
|
|
3730
|
-
className: Mt(ut.background, V ?
|
|
3730
|
+
className: Mt(ut.background, V ? pe : we, { [ut.editor]: a }, { [ut.hidden]: !e }),
|
|
3731
3731
|
style: {
|
|
3732
3732
|
...Ce,
|
|
3733
3733
|
...k && !a && !V ? { position: "absolute" } : {}
|
|
@@ -3796,33 +3796,33 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3796
3796
|
},
|
|
3797
3797
|
h
|
|
3798
3798
|
),
|
|
3799
|
-
|
|
3799
|
+
A.isActive && /* @__PURE__ */ Y(ft, { children: [
|
|
3800
3800
|
/* @__PURE__ */ l(
|
|
3801
3801
|
"div",
|
|
3802
3802
|
{
|
|
3803
3803
|
className: Mt(ut.arrow, { [ut.arrowVertical]: O.direction === "vert" }),
|
|
3804
|
-
style: { color:
|
|
3804
|
+
style: { color: A.color, "--arrow-hover-color": A.hover },
|
|
3805
3805
|
children: /* @__PURE__ */ Y(
|
|
3806
3806
|
"button",
|
|
3807
3807
|
{
|
|
3808
3808
|
className: ut.arrowInner,
|
|
3809
|
-
style: { transform: `translate(${K(
|
|
3809
|
+
style: { transform: `translate(${K(A.offset.x, a)}, ${K(A.offset.y * (O.direction === "horiz" ? 1 : -1), a)}) scale(${A.scale}) rotate(${O.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3810
3810
|
onClick: () => {
|
|
3811
3811
|
var g;
|
|
3812
3812
|
return (g = S.current) == null ? void 0 : g.go("-1");
|
|
3813
3813
|
},
|
|
3814
3814
|
"aria-label": "Previous",
|
|
3815
3815
|
children: [
|
|
3816
|
-
|
|
3816
|
+
A.arrowsImgUrl && /* @__PURE__ */ l(
|
|
3817
3817
|
wn,
|
|
3818
3818
|
{
|
|
3819
|
-
url:
|
|
3820
|
-
fill:
|
|
3821
|
-
hoverFill:
|
|
3819
|
+
url: A.arrowsImgUrl,
|
|
3820
|
+
fill: A.color,
|
|
3821
|
+
hoverFill: A.hover,
|
|
3822
3822
|
className: Mt(ut.arrowImg, ut.mirror)
|
|
3823
3823
|
}
|
|
3824
3824
|
),
|
|
3825
|
-
!
|
|
3825
|
+
!A.arrowsImgUrl && /* @__PURE__ */ l(Cc, { color: A.color, className: Mt(ut.arrowIcon, ut.arrowImg, ut.mirror) })
|
|
3826
3826
|
]
|
|
3827
3827
|
}
|
|
3828
3828
|
)
|
|
@@ -3832,28 +3832,28 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3832
3832
|
"div",
|
|
3833
3833
|
{
|
|
3834
3834
|
className: Mt(ut.arrow, ut.nextArrow, { [ut.arrowVertical]: O.direction === "vert" }),
|
|
3835
|
-
style: { color:
|
|
3835
|
+
style: { color: A.color, "--arrow-hover-color": A.hover },
|
|
3836
3836
|
children: /* @__PURE__ */ Y(
|
|
3837
3837
|
"button",
|
|
3838
3838
|
{
|
|
3839
3839
|
className: ut.arrowInner,
|
|
3840
|
-
style: { transform: `translate(${K(
|
|
3840
|
+
style: { transform: `translate(${K(A.offset.x * (O.direction === "horiz" ? -1 : 1), a)}, ${K(A.offset.y, a)}) scale(${A.scale}) rotate(${O.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3841
3841
|
onClick: () => {
|
|
3842
3842
|
var g;
|
|
3843
3843
|
return (g = S.current) == null ? void 0 : g.go("+1");
|
|
3844
3844
|
},
|
|
3845
3845
|
"aria-label": "Next",
|
|
3846
3846
|
children: [
|
|
3847
|
-
|
|
3847
|
+
A.arrowsImgUrl && /* @__PURE__ */ l(
|
|
3848
3848
|
wn,
|
|
3849
3849
|
{
|
|
3850
|
-
url:
|
|
3851
|
-
fill:
|
|
3852
|
-
hoverFill:
|
|
3850
|
+
url: A.arrowsImgUrl,
|
|
3851
|
+
fill: A.color,
|
|
3852
|
+
hoverFill: A.hover,
|
|
3853
3853
|
className: ut.arrowImg
|
|
3854
3854
|
}
|
|
3855
3855
|
),
|
|
3856
|
-
!
|
|
3856
|
+
!A.arrowsImgUrl && /* @__PURE__ */ l(Cc, { color: A.color, className: Mt(ut.arrowIcon, ut.arrowImg) })
|
|
3857
3857
|
]
|
|
3858
3858
|
}
|
|
3859
3859
|
)
|
|
@@ -3862,9 +3862,9 @@ const hf = ({ settings: e, content: t, styles: n, portalId: i, activeEvent: o, i
|
|
|
3862
3862
|
] }),
|
|
3863
3863
|
de.closeIconUrl && (() => {
|
|
3864
3864
|
const g = jr(de.closeIconAlign, de.closeIconOffset, a), X = `scale(${de.closeIconScale})`, J = g.transform ? `${g.transform} ${X}` : X;
|
|
3865
|
-
return /* @__PURE__ */ l("button", { className: ut.closeButton, style: { ...g, transform: J }, onClick:
|
|
3865
|
+
return /* @__PURE__ */ l("button", { className: ut.closeButton, style: { ...g, transform: J }, onClick: me, "aria-label": "Close lightbox", children: /* @__PURE__ */ l(wn, { url: de.closeIconUrl, fill: de.closeIconColor ?? "#000000", hoverFill: de.closeIconHover ?? "#cccccc" }) });
|
|
3866
3866
|
})(),
|
|
3867
|
-
ie && ie.isActive && i.imageCaption && ((
|
|
3867
|
+
ie && ie.isActive && i.imageCaption && ((Pe = n[b]) == null ? void 0 : Pe.imageCaption) && /* @__PURE__ */ l(
|
|
3868
3868
|
"div",
|
|
3869
3869
|
{
|
|
3870
3870
|
className: ut.caption,
|
|
@@ -5285,7 +5285,7 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5285
5285
|
placeholderColor: S,
|
|
5286
5286
|
buttonColor: C,
|
|
5287
5287
|
buttonTextColor: H,
|
|
5288
|
-
buttonBorderColor:
|
|
5288
|
+
buttonBorderColor: F,
|
|
5289
5289
|
labelTextColor: T,
|
|
5290
5290
|
successColor: $,
|
|
5291
5291
|
errorColor: z,
|
|
@@ -5298,22 +5298,22 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5298
5298
|
inputTextAppearance: se,
|
|
5299
5299
|
buttonFontSettings: O,
|
|
5300
5300
|
buttonFontSize: le,
|
|
5301
|
-
buttonLineHeight:
|
|
5301
|
+
buttonLineHeight: A,
|
|
5302
5302
|
buttonLetterSpacing: de,
|
|
5303
5303
|
buttonWordSpacing: ie,
|
|
5304
5304
|
buttonTextAppearance: ve,
|
|
5305
5305
|
labelFontSettings: ke,
|
|
5306
5306
|
labelFontSize: we,
|
|
5307
|
-
labelLineHeight:
|
|
5307
|
+
labelLineHeight: pe,
|
|
5308
5308
|
labelLetterSpacing: U,
|
|
5309
5309
|
labelWordSpacing: ce,
|
|
5310
|
-
labelTextAppearance:
|
|
5310
|
+
labelTextAppearance: me,
|
|
5311
5311
|
statusFontSettings: be,
|
|
5312
5312
|
statusFontSize: Le,
|
|
5313
5313
|
statusLineHeight: Fe,
|
|
5314
5314
|
statusLetterSpacing: ye,
|
|
5315
5315
|
statusWordSpacing: Ce,
|
|
5316
|
-
statusTextAppearance:
|
|
5316
|
+
statusTextAppearance: Pe,
|
|
5317
5317
|
successMessage: g,
|
|
5318
5318
|
errorMessage: X,
|
|
5319
5319
|
stateOverrides: J
|
|
@@ -5355,7 +5355,7 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5355
5355
|
fontStyle: (O == null ? void 0 : O.fontStyle) ?? "normal"
|
|
5356
5356
|
},
|
|
5357
5357
|
fontSize: le ?? 0.01,
|
|
5358
|
-
lineHeight:
|
|
5358
|
+
lineHeight: A,
|
|
5359
5359
|
letterSpacing: de ?? 0,
|
|
5360
5360
|
wordSpacing: ie ?? 0,
|
|
5361
5361
|
textAppearance: ve,
|
|
@@ -5367,10 +5367,10 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5367
5367
|
fontStyle: (ke == null ? void 0 : ke.fontStyle) ?? "normal"
|
|
5368
5368
|
},
|
|
5369
5369
|
fontSize: we ?? 0.01,
|
|
5370
|
-
lineHeight:
|
|
5370
|
+
lineHeight: pe,
|
|
5371
5371
|
letterSpacing: U ?? 0,
|
|
5372
5372
|
wordSpacing: ce ?? 0,
|
|
5373
|
-
textAppearance:
|
|
5373
|
+
textAppearance: me,
|
|
5374
5374
|
color: T
|
|
5375
5375
|
}, st = ln(Ve, t), Je = {
|
|
5376
5376
|
fontSettings: {
|
|
@@ -5382,7 +5382,7 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5382
5382
|
lineHeight: Fe,
|
|
5383
5383
|
letterSpacing: ye ?? 0,
|
|
5384
5384
|
wordSpacing: Ce ?? 0,
|
|
5385
|
-
textAppearance:
|
|
5385
|
+
textAppearance: Pe,
|
|
5386
5386
|
color: $
|
|
5387
5387
|
}, at = vn(ln(Je, t)), rt = Hi(c, {
|
|
5388
5388
|
inputColor: L,
|
|
@@ -5391,7 +5391,7 @@ function xf({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: i, metadat
|
|
|
5391
5391
|
placeholderColor: S != null && S.trim() ? S : "#cccccc",
|
|
5392
5392
|
buttonColor: C,
|
|
5393
5393
|
buttonTextColor: H,
|
|
5394
|
-
buttonBorderColor:
|
|
5394
|
+
buttonBorderColor: F,
|
|
5395
5395
|
labelTextColor: T,
|
|
5396
5396
|
successColor: $,
|
|
5397
5397
|
errorColor: z
|
|
@@ -7112,7 +7112,7 @@ const If = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7112
7112
|
statusLineHeight: S,
|
|
7113
7113
|
statusLetterSpacing: C,
|
|
7114
7114
|
statusWordSpacing: H,
|
|
7115
|
-
statusTextAppearance:
|
|
7115
|
+
statusTextAppearance: F,
|
|
7116
7116
|
iconMaxWidth: T,
|
|
7117
7117
|
minHeight: $,
|
|
7118
7118
|
corners: z,
|
|
@@ -7124,13 +7124,13 @@ const If = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7124
7124
|
errorMessage: ee = "Please, fill all required fields."
|
|
7125
7125
|
} = e, se = s.slice(0, Math.min(u, s.length)), [O, le] = ne(
|
|
7126
7126
|
() => Object.fromEntries(se.map((Se) => [Se.name, ""]))
|
|
7127
|
-
), [
|
|
7128
|
-
if (!
|
|
7127
|
+
), [A, de] = ne("idle"), [ie, ve] = ne(null), ke = o === "success" ? "success" : o === "error" ? "error" : A, we = o === "error" ? ee : ie, pe = o === "filled", U = He(() => {
|
|
7128
|
+
if (!pe) return O;
|
|
7129
7129
|
let Se = null;
|
|
7130
7130
|
for (const Q of se)
|
|
7131
7131
|
(O[Q.name] ?? "").trim().length > 0 || (Se = Se ?? { ...O }, Se[Q.name] = "Filled");
|
|
7132
7132
|
return Se ?? O;
|
|
7133
|
-
}, [
|
|
7133
|
+
}, [pe, O, se]), ce = ke === "error" ? wa(se, U) : null, me = o && o !== "default" ? `${r}-state-${o}` : "", be = se.some((Se) => (U[Se.name] ?? "").trim().length > 0), Le = me !== `${r}-state-filled` && be ? `${r}-state-filled` : "", Fe = `${me} ${Le}`.trim(), ye = i == null ? void 0 : i.submitUrl, Ce = d ?? "", Pe = (c == null ? void 0 : c.icon) ?? "", g = (c == null ? void 0 : c.mode) === "On", X = Ce || "Submit", J = {
|
|
7134
7134
|
fontSettings: {
|
|
7135
7135
|
fontFamily: f,
|
|
7136
7136
|
fontWeight: (y == null ? void 0 : y.fontWeight) ?? 400,
|
|
@@ -7164,7 +7164,7 @@ const If = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7164
7164
|
lineHeight: S,
|
|
7165
7165
|
letterSpacing: C ?? 0,
|
|
7166
7166
|
wordSpacing: H ?? 0,
|
|
7167
|
-
textAppearance:
|
|
7167
|
+
textAppearance: F,
|
|
7168
7168
|
color: e.successColor ?? "#22c55e"
|
|
7169
7169
|
}, D = vn(ln(J, t)), P = vn(ln(oe, t)), te = vn(ln(he, t)), re = Hi(r, {
|
|
7170
7170
|
strokeColor: e.strokeColor,
|
|
@@ -7269,10 +7269,10 @@ const If = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: i, activeEve
|
|
|
7269
7269
|
paddingBottom: K(N.bottom, t),
|
|
7270
7270
|
pointerEvents: a ? "auto" : void 0
|
|
7271
7271
|
},
|
|
7272
|
-
children:
|
|
7272
|
+
children: A === "submitting" ? "..." : g ? Pe && /* @__PURE__ */ l(
|
|
7273
7273
|
wn,
|
|
7274
7274
|
{
|
|
7275
|
-
url:
|
|
7275
|
+
url: Pe,
|
|
7276
7276
|
className: `${r}-submitBtnIcon`,
|
|
7277
7277
|
style: { maxWidth: K(T ?? 0, t) },
|
|
7278
7278
|
fill: `var(--${r}-button-text-color)`,
|
|
@@ -8618,11 +8618,11 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8618
8618
|
scaled: c,
|
|
8619
8619
|
onFirstSetImageDone: d
|
|
8620
8620
|
}) => {
|
|
8621
|
-
var H,
|
|
8621
|
+
var H, F, T, $;
|
|
8622
8622
|
const u = q(null), f = !!((H = e.image) != null && H.url && Kf(e.image));
|
|
8623
8623
|
Ht(() => {
|
|
8624
8624
|
s && Yf(u.current) && (d == null || d());
|
|
8625
|
-
}, [s, (
|
|
8625
|
+
}, [s, (F = e.image) == null ? void 0 : F.url, d]);
|
|
8626
8626
|
const y = n.display === "cover", p = n.ratioValue ?? "1:1", m = n.reversed ?? !1, [x, b] = p.split(":").map(Number), w = (m ? b : x) / (m ? x : b), V = i / w, G = V > o ? o : V, k = V > o ? o * w : i, L = c(k), M = c(G), j = {
|
|
8627
8627
|
borderRadius: c(r)
|
|
8628
8628
|
}, S = y ? {
|
|
@@ -8715,9 +8715,9 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8715
8715
|
imageMaxHeight: x,
|
|
8716
8716
|
hoverEffect: b,
|
|
8717
8717
|
cornerRadius: E = 0
|
|
8718
|
-
} = e, h = He(() => Gf(e.imageFit), [e.imageFit]), w = (t == null ? void 0 : t.length) ?? 0, V = !!o, G = !n || !!i, k = G && b !== "off" && b !== "randomize" ? `${r}-image-hover-${b}` : void 0, L = n ? !!i : !0, j = ((t == null ? void 0 : t.length) ?? 0) > 0 && (L || !!n), S = Math.max(0, u) * Wf, C = (Le) => K(Le, n ?? !1), H = q(null),
|
|
8718
|
+
} = e, h = He(() => Gf(e.imageFit), [e.imageFit]), w = (t == null ? void 0 : t.length) ?? 0, V = !!o, G = !n || !!i, k = G && b !== "off" && b !== "randomize" ? `${r}-image-hover-${b}` : void 0, L = n ? !!i : !0, j = ((t == null ? void 0 : t.length) ?? 0) > 0 && (L || !!n), S = Math.max(0, u) * Wf, C = (Le) => K(Le, n ?? !1), H = q(null), F = q(null), T = q(null), [$, z] = ne(0), v = L && y === "on", [Z, I] = ne(!1), [N, W] = ne({}), ee = q(N);
|
|
8719
8719
|
ee.current = N;
|
|
8720
|
-
const se = q(null), O = q(0), le = q(null),
|
|
8720
|
+
const se = q(null), O = q(0), le = q(null), A = He(() => (t ?? []).map((Le) => {
|
|
8721
8721
|
var Fe;
|
|
8722
8722
|
return ((Fe = Le.image) == null ? void 0 : Fe.url) ?? "";
|
|
8723
8723
|
}).join("\0"), [t]), [de, ie] = ne(ll), ve = He(() => {
|
|
@@ -8732,7 +8732,7 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8732
8732
|
), we = j ? Bf : 1;
|
|
8733
8733
|
Ht(() => {
|
|
8734
8734
|
O.current = 0, W({}), se.current = null, ie(ll), s(0);
|
|
8735
|
-
}, [
|
|
8735
|
+
}, [A]), Me(() => {
|
|
8736
8736
|
if (!G || b !== "randomize") return;
|
|
8737
8737
|
const Le = H.current;
|
|
8738
8738
|
if (!Le) return;
|
|
@@ -8759,11 +8759,11 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8759
8759
|
const X = Number(g);
|
|
8760
8760
|
Le.querySelectorAll(`[data-marquee-item-index="${X}"]`).forEach((J) => ye.observe(J));
|
|
8761
8761
|
});
|
|
8762
|
-
const Ce = { current: 0 },
|
|
8762
|
+
const Ce = { current: 0 }, Pe = () => {
|
|
8763
8763
|
const g = Object.keys(ee.current);
|
|
8764
|
-
g.length !== 0 && (Fe(g.map(Number)), Ce.current = requestAnimationFrame(
|
|
8764
|
+
g.length !== 0 && (Fe(g.map(Number)), Ce.current = requestAnimationFrame(Pe));
|
|
8765
8765
|
};
|
|
8766
|
-
return Object.keys(ee.current).length > 0 && (Ce.current = requestAnimationFrame(
|
|
8766
|
+
return Object.keys(ee.current).length > 0 && (Ce.current = requestAnimationFrame(Pe)), () => {
|
|
8767
8767
|
cancelAnimationFrame(Ce.current), ye.disconnect();
|
|
8768
8768
|
};
|
|
8769
8769
|
}, [b, N, G]), Ht(() => {
|
|
@@ -8793,30 +8793,30 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8793
8793
|
return ge > 0 ? ge * D : 0;
|
|
8794
8794
|
})();
|
|
8795
8795
|
re > 0 ? s((ge) => ge <= 0 ? re : !he || Math.round(ge) === Math.round(re) ? ge : re) : !he && a <= 0 && (cancelAnimationFrame(ye.current), ye.current = requestAnimationFrame(Ce));
|
|
8796
|
-
},
|
|
8796
|
+
}, Pe = () => {
|
|
8797
8797
|
cancelAnimationFrame(ye.current), ye.current = requestAnimationFrame(Ce);
|
|
8798
8798
|
};
|
|
8799
|
-
le.current =
|
|
8800
|
-
const g = new ResizeObserver(
|
|
8799
|
+
le.current = Pe, Pe();
|
|
8800
|
+
const g = new ResizeObserver(Pe);
|
|
8801
8801
|
return g.observe(Le), g.observe(Fe), () => {
|
|
8802
8802
|
le.current = null, cancelAnimationFrame(ye.current), g.disconnect();
|
|
8803
8803
|
};
|
|
8804
|
-
}, [L, j, a,
|
|
8804
|
+
}, [L, j, a, A, de, w, n]), Ht(() => {
|
|
8805
8805
|
if (!j || c <= 0) return;
|
|
8806
|
-
const Le =
|
|
8806
|
+
const Le = F.current;
|
|
8807
8807
|
Le && Vf(Le);
|
|
8808
8808
|
}, [j, c, f, S]), Ht(() => {
|
|
8809
8809
|
if (!j || a <= 0) {
|
|
8810
8810
|
z(0);
|
|
8811
8811
|
return;
|
|
8812
8812
|
}
|
|
8813
|
-
const Le =
|
|
8813
|
+
const Le = F.current, Fe = T.current;
|
|
8814
8814
|
if (!Le || !Fe) return;
|
|
8815
8815
|
const ye = () => {
|
|
8816
|
-
const
|
|
8816
|
+
const Pe = Le.offsetHeight || Le.getBoundingClientRect().height, g = Array.from(Fe.children).reduce(
|
|
8817
8817
|
(J, oe) => Math.max(J, oe.offsetHeight || oe.getBoundingClientRect().height),
|
|
8818
8818
|
0
|
|
8819
|
-
), X =
|
|
8819
|
+
), X = Pe > 0 ? Pe : g;
|
|
8820
8820
|
z(X > 0 ? X : 0);
|
|
8821
8821
|
};
|
|
8822
8822
|
ye();
|
|
@@ -8829,7 +8829,7 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8829
8829
|
});
|
|
8830
8830
|
return () => cancelAnimationFrame(Le);
|
|
8831
8831
|
}, [n, V, j, f, a, $, p, ve]);
|
|
8832
|
-
const
|
|
8832
|
+
const pe = () => {
|
|
8833
8833
|
v && I(!0);
|
|
8834
8834
|
}, U = () => {
|
|
8835
8835
|
v && I(!1);
|
|
@@ -8839,26 +8839,26 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8839
8839
|
ke,
|
|
8840
8840
|
O.current + 1
|
|
8841
8841
|
), (Le = le.current) == null || Le.call(le);
|
|
8842
|
-
}, [ke]),
|
|
8842
|
+
}, [ke]), me = $e((Le, Fe) => {
|
|
8843
8843
|
W((ye) => {
|
|
8844
|
-
const Ce = ye[Le] ?? Fe,
|
|
8845
|
-
if (
|
|
8846
|
-
const g =
|
|
8844
|
+
const Ce = ye[Le] ?? Fe, Pe = (t ?? []).filter((X) => X !== Ce);
|
|
8845
|
+
if (Pe.length === 0) return ye;
|
|
8846
|
+
const g = Pe[Math.floor(Math.random() * Pe.length)];
|
|
8847
8847
|
return { ...ye, [Le]: g };
|
|
8848
8848
|
});
|
|
8849
8849
|
}, [t]), be = (Le, Fe, ye, Ce) => {
|
|
8850
|
-
const
|
|
8850
|
+
const Pe = G && b === "randomize" && h.display === "cover" ? N[ye] ?? Le : Le, g = `max(${C(p)}, ${Of}px)`, X = `calc(-0.5 * (${g} + ${C(p)}))`;
|
|
8851
8851
|
return /* @__PURE__ */ Y(
|
|
8852
8852
|
"div",
|
|
8853
8853
|
{
|
|
8854
8854
|
className: `${r}-marquee-card`,
|
|
8855
8855
|
"data-marquee-item-index": ye,
|
|
8856
|
-
onMouseEnter: G && b === "randomize" && h.display === "cover" ? () =>
|
|
8856
|
+
onMouseEnter: G && b === "randomize" && h.display === "cover" ? () => me(ye, Le) : void 0,
|
|
8857
8857
|
children: [
|
|
8858
8858
|
/* @__PURE__ */ l(
|
|
8859
8859
|
Zf,
|
|
8860
8860
|
{
|
|
8861
|
-
item:
|
|
8861
|
+
item: Pe,
|
|
8862
8862
|
prefix: r,
|
|
8863
8863
|
imageFit: h,
|
|
8864
8864
|
imageMaxWidth: m,
|
|
@@ -8905,10 +8905,10 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8905
8905
|
/* @__PURE__ */ l(
|
|
8906
8906
|
"div",
|
|
8907
8907
|
{
|
|
8908
|
-
ref:
|
|
8908
|
+
ref: F,
|
|
8909
8909
|
className: `${r}-marquee-track`,
|
|
8910
8910
|
"data-direction": f,
|
|
8911
|
-
onMouseEnter:
|
|
8911
|
+
onMouseEnter: pe,
|
|
8912
8912
|
onMouseLeave: U,
|
|
8913
8913
|
style: {
|
|
8914
8914
|
WebkitAnimationDuration: ye,
|
|
@@ -8916,26 +8916,26 @@ const Wf = 30, Of = 20, ll = 3, Df = 12, zf = 32, Bf = 3, Vf = (e) => {
|
|
|
8916
8916
|
WebkitAnimationPlayState: Le,
|
|
8917
8917
|
animationPlayState: Le
|
|
8918
8918
|
},
|
|
8919
|
-
children: Array.from({ length: we }, (Ce,
|
|
8919
|
+
children: Array.from({ length: we }, (Ce, Pe) => /* @__PURE__ */ l(
|
|
8920
8920
|
"div",
|
|
8921
8921
|
{
|
|
8922
|
-
ref:
|
|
8922
|
+
ref: Pe === 0 ? T : void 0,
|
|
8923
8923
|
className: Mt(`${r}-marquee-row`, `${r}-marquee-set`),
|
|
8924
8924
|
style: {
|
|
8925
8925
|
gap: C(p),
|
|
8926
8926
|
paddingRight: C(p)
|
|
8927
8927
|
},
|
|
8928
|
-
"aria-hidden":
|
|
8928
|
+
"aria-hidden": Pe > 0,
|
|
8929
8929
|
children: ve.map(
|
|
8930
8930
|
(g, X) => be(
|
|
8931
8931
|
g,
|
|
8932
|
-
|
|
8932
|
+
Pe,
|
|
8933
8933
|
X,
|
|
8934
|
-
|
|
8934
|
+
Pe === 0 && X < w
|
|
8935
8935
|
)
|
|
8936
8936
|
)
|
|
8937
8937
|
},
|
|
8938
|
-
`set-${
|
|
8938
|
+
`set-${Pe}`
|
|
8939
8939
|
))
|
|
8940
8940
|
}
|
|
8941
8941
|
)
|
|
@@ -10221,7 +10221,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10221
10221
|
textColor: k,
|
|
10222
10222
|
backgroundColor: L,
|
|
10223
10223
|
ribbonWidth: M
|
|
10224
|
-
} = e, j = M ?? h, S = y === "curve", C = sy(p), H = cy(m),
|
|
10224
|
+
} = e, j = M ?? h, S = y === "curve", C = sy(p), H = cy(m), F = He(() => ny(o, s, S), [o, s, S]), T = He(() => ln({
|
|
10225
10225
|
fontSettings: {
|
|
10226
10226
|
fontFamily: x,
|
|
10227
10227
|
fontWeight: b.fontWeight,
|
|
@@ -10233,9 +10233,9 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10233
10233
|
lineHeight: h,
|
|
10234
10234
|
textAppearance: G,
|
|
10235
10235
|
color: k
|
|
10236
|
-
}, n), [x, b, w, V, E, h, G, k, n]), $ = (je) => K(je, n ?? !1), z = ((t == null ? void 0 : t.length) ?? 0) > 0, v = n ? !!i : !0, Z = z && (v || !!n), I = Math.max(0, c) * iy, N = v && u === "on", [W, ee] = ne(!1), se = v ? N && W ? "paused" : "running" : "paused", O = se === "running" && I > 0 && s > 0, le = s > 0 && I > 0 ? s / I * 1e3 : 0,
|
|
10237
|
-
|
|
10238
|
-
const [Le, Fe] = ne(0), [ye, Ce] = ne(0), [
|
|
10236
|
+
}, n), [x, b, w, V, E, h, G, k, n]), $ = (je) => K(je, n ?? !1), z = ((t == null ? void 0 : t.length) ?? 0) > 0, v = n ? !!i : !0, Z = z && (v || !!n), I = Math.max(0, c) * iy, N = v && u === "on", [W, ee] = ne(!1), se = v ? N && W ? "paused" : "running" : "paused", O = se === "running" && I > 0 && s > 0, le = s > 0 && I > 0 ? s / I * 1e3 : 0, A = q(null), de = q(null), ie = q(null), ve = q(null), ke = q(null), we = q(null), pe = q(O), U = q(null), ce = q(null), me = q(C), be = q(H);
|
|
10237
|
+
pe.current = O, me.current = C, be.current = H;
|
|
10238
|
+
const [Le, Fe] = ne(0), [ye, Ce] = ne(0), [Pe, g] = ne(0), [X, J] = ne(0), [oe, he] = ne(0), D = He(
|
|
10239
10239
|
() => (t ?? []).map((je) => {
|
|
10240
10240
|
var We;
|
|
10241
10241
|
return `${je.text}\0${((We = je.image) == null ? void 0 : We.url) ?? ""}\0${je.link ?? ""}`;
|
|
@@ -10273,7 +10273,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10273
10273
|
return Xe.observe(je), () => Xe.disconnect();
|
|
10274
10274
|
}, [T.fontFamily, T.fontWeight, T.fontStyle, T.fontSize, T.lineHeight]), Ht(() => {
|
|
10275
10275
|
if (!Z) return;
|
|
10276
|
-
const je =
|
|
10276
|
+
const je = A.current, We = ve.current;
|
|
10277
10277
|
if (!je || !We) return;
|
|
10278
10278
|
const bt = { id: 0 }, Xe = () => {
|
|
10279
10279
|
const fe = je.offsetWidth || je.getBoundingClientRect().width, Ae = We.offsetWidth || We.getBoundingClientRect().width;
|
|
@@ -10282,7 +10282,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10282
10282
|
if (lt > 0) {
|
|
10283
10283
|
let yt = fe, Ye = oy;
|
|
10284
10284
|
if (S) {
|
|
10285
|
-
const Ft = fe *
|
|
10285
|
+
const Ft = fe * me.current, Ot = be.current, It = Ot > 0 ? 2 * Math.PI * Ot / fe : 0, Zt = fy(Ft, It);
|
|
10286
10286
|
yt = Math.max(fe, Zt * fe / (Lc - 1)), Ye = ry;
|
|
10287
10287
|
}
|
|
10288
10288
|
const Lt = Math.min(
|
|
@@ -10327,7 +10327,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10327
10327
|
g(0), J(0);
|
|
10328
10328
|
return;
|
|
10329
10329
|
}
|
|
10330
|
-
const je =
|
|
10330
|
+
const je = A.current, We = ve.current;
|
|
10331
10331
|
if (!je || !We) return;
|
|
10332
10332
|
const bt = { id: 0 }, Xe = () => {
|
|
10333
10333
|
const Ze = je.offsetWidth, ht = We.offsetHeight;
|
|
@@ -10346,7 +10346,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10346
10346
|
je && dy(je);
|
|
10347
10347
|
}, [Z, s, d, I]), Ht(() => {
|
|
10348
10348
|
if (!S || !z) return;
|
|
10349
|
-
const je =
|
|
10349
|
+
const je = A.current;
|
|
10350
10350
|
if (!je) return;
|
|
10351
10351
|
const We = {
|
|
10352
10352
|
raf: 0,
|
|
@@ -10375,7 +10375,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10375
10375
|
), We.cacheDirty = !1;
|
|
10376
10376
|
}, Ge = () => {
|
|
10377
10377
|
We.cacheDirty && Xe();
|
|
10378
|
-
const yt = (de.current ?? je).offsetWidth || 1, Ye = yt *
|
|
10378
|
+
const yt = (de.current ?? je).offsetWidth || 1, Ye = yt * me.current, Lt = be.current, Ft = 2 * Math.PI * Lt / yt, Ot = `${yt}|${Ye}|${Ft}`;
|
|
10379
10379
|
if (Ot !== We.lutKey && (We.lutKey = Ot, We.lut = Qu(Ye, Ft, Ju)), Math.abs(Ye) <= 0 || Ft <= 0) {
|
|
10380
10380
|
bt();
|
|
10381
10381
|
return;
|
|
@@ -10393,7 +10393,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10393
10393
|
}
|
|
10394
10394
|
}
|
|
10395
10395
|
}, Ze = () => {
|
|
10396
|
-
We.cancelled || (We.raf = 0, Ge(),
|
|
10396
|
+
We.cancelled || (We.raf = 0, Ge(), pe.current && !document.hidden && (We.raf = requestAnimationFrame(Ze)));
|
|
10397
10397
|
}, ht = () => {
|
|
10398
10398
|
We.cancelled || We.raf || (We.raf = requestAnimationFrame(Ze));
|
|
10399
10399
|
}, fe = () => {
|
|
@@ -10430,7 +10430,7 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10430
10430
|
}, st = {
|
|
10431
10431
|
gap: $(f),
|
|
10432
10432
|
minHeight: Q
|
|
10433
|
-
}, Je = X * C, at = Math.abs(Je), rt = oe > 0 ? oe :
|
|
10433
|
+
}, Je = X * C, at = Math.abs(Je), rt = oe > 0 ? oe : Pe, Ue = Math.max(Pe, rt), xe = at + Ue / 2, ze = Math.max(rt, 1), qe = S && X > 0 && Ue > 0 ? vy(
|
|
10434
10434
|
X,
|
|
10435
10435
|
Je,
|
|
10436
10436
|
H,
|
|
@@ -10502,8 +10502,8 @@ const iy = 30, sl = 3, oy = 12, ry = 96, Lc = 3, Jl = 0.72, ay = 100, ly = 10, s
|
|
|
10502
10502
|
children: t == null ? void 0 : t.map((je, We) => et(je, 0, We))
|
|
10503
10503
|
}
|
|
10504
10504
|
);
|
|
10505
|
-
return /* @__PURE__ */ Y("div", { ref:
|
|
10506
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
10505
|
+
return /* @__PURE__ */ Y("div", { ref: A, className: `${o}-wrapper`, "aria-label": "Marquee text", children: [
|
|
10506
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: F } }),
|
|
10507
10507
|
it,
|
|
10508
10508
|
/* @__PURE__ */ Y("div", { ref: de, className: `${o}-marquee-wrapper`, style: Be, children: [
|
|
10509
10509
|
Oe,
|
|
@@ -11841,7 +11841,7 @@ function Ty(e, t) {
|
|
|
11841
11841
|
const Ly = 30, Ic = 2, Py = (e) => {
|
|
11842
11842
|
e.style.setProperty("animation-name", "none"), e.style.setProperty("-webkit-animation-name", "none"), e.offsetHeight, e.style.removeProperty("animation-name"), e.style.removeProperty("-webkit-animation-name");
|
|
11843
11843
|
}, Iy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) => {
|
|
11844
|
-
const { prefix: r } = mn(), { align: a, speed: s, direction: c, pauseOnHover: d, gap: u, cardWidth: f, corners: y, stroke: p, strokeColor: m, bgColor: x, padding: b, logoMarginTop: E, logoWidth: h, logoHeight: w, captionMarginTop: V } = e, G = !!o, k = ((t == null ? void 0 : t.length) ?? 0) > 0, L = s > 0 && (!n || i), M = k && (L || n), j = Math.max(0, s) * Ly, S = (P) => K(P, n ?? !1), C = q(null), H = q(null),
|
|
11844
|
+
const { prefix: r } = mn(), { align: a, speed: s, direction: c, pauseOnHover: d, gap: u, cardWidth: f, corners: y, stroke: p, strokeColor: m, bgColor: x, padding: b, logoMarginTop: E, logoWidth: h, logoHeight: w, captionMarginTop: V } = e, G = !!o, k = ((t == null ? void 0 : t.length) ?? 0) > 0, L = s > 0 && (!n || i), M = k && (L || n), j = Math.max(0, s) * Ly, S = (P) => K(P, n ?? !1), C = q(null), H = q(null), F = q(null), [T, $] = ne(0), [z, v] = ne(0), Z = z > 0 ? z : 0, I = He(() => Ty(r, Z), [r, Z]), [N, W] = ne(0), ee = L && d === "on", [se, O] = ne(!1), le = q(null), [A, de] = ne(0), [ie, ve] = ne(0), ke = q(null), we = (P) => {
|
|
11845
11845
|
var re, ge, B, Ee, Se;
|
|
11846
11846
|
return {
|
|
11847
11847
|
fontSettings: {
|
|
@@ -11860,16 +11860,16 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11860
11860
|
lineHeight: (e == null ? void 0 : e[`${P}LineHeight`]) ?? 0.01,
|
|
11861
11861
|
color: (e == null ? void 0 : e[`${P}Color`]) ?? "#000000"
|
|
11862
11862
|
};
|
|
11863
|
-
},
|
|
11863
|
+
}, pe = we("text"), U = we("caption"), ce = He(
|
|
11864
11864
|
() => ((t == null ? void 0 : t.length) ?? 0) > 1 && (t ?? []).some((P) => {
|
|
11865
11865
|
var te, re;
|
|
11866
11866
|
return (((te = P.text) == null ? void 0 : te.length) ?? 0) > 0 || (((re = P.caption) == null ? void 0 : re.length) ?? 0) > 0;
|
|
11867
11867
|
}),
|
|
11868
11868
|
[t]
|
|
11869
|
-
),
|
|
11869
|
+
), me = He(() => !M || (t == null ? void 0 : t.length) === 0 ? 1 : z <= 0 || T <= 0 ? Ic : Math.max(Ic, Math.ceil(T / z) + 1), [M, t == null ? void 0 : t.length, z, T]);
|
|
11870
11870
|
Ht(() => {
|
|
11871
11871
|
if (!M) return;
|
|
11872
|
-
const P = C.current, te =
|
|
11872
|
+
const P = C.current, te = F.current;
|
|
11873
11873
|
if (!P || !te) return;
|
|
11874
11874
|
let re = 0;
|
|
11875
11875
|
const ge = () => {
|
|
@@ -11898,7 +11898,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11898
11898
|
W(0);
|
|
11899
11899
|
return;
|
|
11900
11900
|
}
|
|
11901
|
-
const P =
|
|
11901
|
+
const P = F.current, te = H.current;
|
|
11902
11902
|
if (!P || !te) return;
|
|
11903
11903
|
const re = () => {
|
|
11904
11904
|
let B = 0;
|
|
@@ -11913,7 +11913,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11913
11913
|
return ge.observe(P), ge.observe(te), () => {
|
|
11914
11914
|
ge.disconnect();
|
|
11915
11915
|
};
|
|
11916
|
-
}, [M,
|
|
11916
|
+
}, [M, me, t, n, u, f, b, p, y, h, w, A, ie]);
|
|
11917
11917
|
const Fe = () => {
|
|
11918
11918
|
ee && O(!0);
|
|
11919
11919
|
}, ye = () => {
|
|
@@ -11928,7 +11928,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11928
11928
|
default:
|
|
11929
11929
|
return "flex-start";
|
|
11930
11930
|
}
|
|
11931
|
-
}, [a]),
|
|
11931
|
+
}, [a]), Pe = He(() => {
|
|
11932
11932
|
switch (a) {
|
|
11933
11933
|
case "center":
|
|
11934
11934
|
return "center";
|
|
@@ -11964,7 +11964,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11964
11964
|
...ge != null && ge.dataMeasureKind ? { "data-testimonial-measure": ge.dataMeasureKind } : {},
|
|
11965
11965
|
style: {
|
|
11966
11966
|
...ln(P, n),
|
|
11967
|
-
textAlign:
|
|
11967
|
+
textAlign: Pe,
|
|
11968
11968
|
pointerEvents: "auto",
|
|
11969
11969
|
...typeof (ge == null ? void 0 : ge.minHeightPx) == "number" && ge.minHeightPx > 0 ? { minHeight: ge.minHeightPx } : {}
|
|
11970
11970
|
},
|
|
@@ -11975,7 +11975,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11975
11975
|
},
|
|
11976
11976
|
re
|
|
11977
11977
|
),
|
|
11978
|
-
[Ce,
|
|
11978
|
+
[Ce, Pe, n, G, r, S]
|
|
11979
11979
|
), X = $e(
|
|
11980
11980
|
(P, te, re) => {
|
|
11981
11981
|
var ge, B, Ee;
|
|
@@ -11998,10 +11998,10 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
11998
11998
|
"div",
|
|
11999
11999
|
{
|
|
12000
12000
|
className: `${r}-elements-overlay`,
|
|
12001
|
-
style: { alignItems: Ce, textAlign:
|
|
12001
|
+
style: { alignItems: Ce, textAlign: Pe },
|
|
12002
12002
|
children: [
|
|
12003
12003
|
P.text && g(
|
|
12004
|
-
|
|
12004
|
+
pe,
|
|
12005
12005
|
P.text,
|
|
12006
12006
|
"text",
|
|
12007
12007
|
re != null && re.dataMeasureAttrs ? { dataMeasureKind: "text" } : typeof (re == null ? void 0 : re.textMinHeightPx) == "number" && re.textMinHeightPx > 0 ? { minHeightPx: re.textMinHeightPx } : void 0
|
|
@@ -12058,7 +12058,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
12058
12058
|
E,
|
|
12059
12059
|
h,
|
|
12060
12060
|
Ce,
|
|
12061
|
-
|
|
12061
|
+
Pe,
|
|
12062
12062
|
b.bottom,
|
|
12063
12063
|
b.left,
|
|
12064
12064
|
b.right,
|
|
@@ -12066,7 +12066,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
12066
12066
|
g,
|
|
12067
12067
|
p,
|
|
12068
12068
|
m,
|
|
12069
|
-
|
|
12069
|
+
pe,
|
|
12070
12070
|
n,
|
|
12071
12071
|
G,
|
|
12072
12072
|
r
|
|
@@ -12090,7 +12090,7 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
12090
12090
|
re.disconnect();
|
|
12091
12091
|
};
|
|
12092
12092
|
}, [ce, J, t, X]);
|
|
12093
|
-
const oe = ce ? { textMinHeightPx:
|
|
12093
|
+
const oe = ce ? { textMinHeightPx: A, captionMinHeightPx: ie } : void 0, he = ce ? /* @__PURE__ */ l(
|
|
12094
12094
|
"div",
|
|
12095
12095
|
{
|
|
12096
12096
|
ref: le,
|
|
@@ -12180,10 +12180,10 @@ const Ly = 30, Ic = 2, Py = (e) => {
|
|
|
12180
12180
|
animationPlayState: P,
|
|
12181
12181
|
WebkitAnimationPlayState: P
|
|
12182
12182
|
},
|
|
12183
|
-
children: Array.from({ length:
|
|
12183
|
+
children: Array.from({ length: me }, (te, re) => /* @__PURE__ */ l(
|
|
12184
12184
|
"div",
|
|
12185
12185
|
{
|
|
12186
|
-
ref: re === 0 ?
|
|
12186
|
+
ref: re === 0 ? F : void 0,
|
|
12187
12187
|
className: `${r}-marquee-set`,
|
|
12188
12188
|
style: {
|
|
12189
12189
|
display: "flex",
|
|
@@ -13512,8 +13512,8 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13512
13512
|
Me(() => {
|
|
13513
13513
|
V(0), k(null), M(!1);
|
|
13514
13514
|
}, [a.length]);
|
|
13515
|
-
const H = a[w],
|
|
13516
|
-
var U, ce,
|
|
13515
|
+
const H = a[w], F = G === null ? null : a[G], T = (we) => {
|
|
13516
|
+
var U, ce, me, be, Le;
|
|
13517
13517
|
return {
|
|
13518
13518
|
fontSettings: {
|
|
13519
13519
|
fontFamily: (e == null ? void 0 : e[`${we}FontFamily`]) ?? "Arial",
|
|
@@ -13521,7 +13521,7 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13521
13521
|
fontStyle: ((ce = e == null ? void 0 : e[`${we}FontSettings`]) == null ? void 0 : ce.fontStyle) ?? "normal"
|
|
13522
13522
|
},
|
|
13523
13523
|
textAppearance: {
|
|
13524
|
-
textTransform: ((
|
|
13524
|
+
textTransform: ((me = e == null ? void 0 : e[`${we}TextAppearance`]) == null ? void 0 : me.textTransform) ?? "none",
|
|
13525
13525
|
textDecoration: ((be = e == null ? void 0 : e[`${we}TextAppearance`]) == null ? void 0 : be.textDecoration) ?? "none",
|
|
13526
13526
|
fontVariant: ((Le = e == null ? void 0 : e[`${we}TextAppearance`]) == null ? void 0 : Le.fontVariant) ?? "normal"
|
|
13527
13527
|
},
|
|
@@ -13532,29 +13532,29 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13532
13532
|
color: (e == null ? void 0 : e[`${we}Color`]) ?? "#000000"
|
|
13533
13533
|
};
|
|
13534
13534
|
}, $ = T("text"), z = T("caption"), v = a.length > 1 && a.some((we) => {
|
|
13535
|
-
var
|
|
13536
|
-
return (((
|
|
13537
|
-
}), Z = q(null), [I, N] = ne(0), [W, ee] = ne(0), se = e.controls ?? { mode: "Off", icon: null }, O = a.length > 1, le = $e((we,
|
|
13535
|
+
var pe, U;
|
|
13536
|
+
return (((pe = we.text) == null ? void 0 : pe.length) ?? 0) > 0 || (((U = we.caption) == null ? void 0 : U.length) ?? 0) > 0;
|
|
13537
|
+
}), Z = q(null), [I, N] = ne(0), [W, ee] = ne(0), se = e.controls ?? { mode: "Off", icon: null }, O = a.length > 1, le = $e((we, pe) => !O || pe === we ? we : (j.current && window.clearTimeout(j.current), k(we), M(!0), j.current = window.setTimeout(() => {
|
|
13538
13538
|
k(null), M(!1), j.current = null;
|
|
13539
|
-
}, 300),
|
|
13539
|
+
}, 300), pe), [O]), A = $e(() => {
|
|
13540
13540
|
O && V((we) => le(we, (we - 1 + a.length) % a.length));
|
|
13541
13541
|
}, [O, le, a.length]), de = $e(() => {
|
|
13542
13542
|
O && V((we) => le(we, (we + 1) % a.length));
|
|
13543
13543
|
}, [O, le, a.length]);
|
|
13544
13544
|
Me(() => {
|
|
13545
13545
|
if (!h || !O) return;
|
|
13546
|
-
const we = Math.max(300, Ay / s),
|
|
13546
|
+
const we = Math.max(300, Ay / s), pe = window.setInterval(() => {
|
|
13547
13547
|
V((U) => le(U, (U + 1) % a.length));
|
|
13548
13548
|
}, we);
|
|
13549
13549
|
return () => {
|
|
13550
|
-
window.clearInterval(
|
|
13550
|
+
window.clearInterval(pe);
|
|
13551
13551
|
};
|
|
13552
13552
|
}, [h, O, le, a.length, s]), Me(() => () => {
|
|
13553
13553
|
j.current && window.clearTimeout(j.current);
|
|
13554
13554
|
}, []);
|
|
13555
|
-
const ie = (we,
|
|
13555
|
+
const ie = (we, pe) => {
|
|
13556
13556
|
var Le, Fe, ye, Ce;
|
|
13557
|
-
const U =
|
|
13557
|
+
const U = pe == null ? void 0 : pe.textMinHeightPx, ce = pe == null ? void 0 : pe.captionMinHeightPx, me = pe == null ? void 0 : pe.dataMeasureAttrs, be = o && !(pe != null && pe.dataMeasureAttrs) && !(pe != null && pe.hideControls);
|
|
13558
13558
|
return /* @__PURE__ */ Y(ft, { children: [
|
|
13559
13559
|
we.text && /* @__PURE__ */ Y("div", { style: { display: "flex", flexDirection: "column", alignItems: S, width: "100%" }, children: [
|
|
13560
13560
|
/* @__PURE__ */ l(
|
|
@@ -13568,7 +13568,7 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13568
13568
|
/* @__PURE__ */ l(
|
|
13569
13569
|
"div",
|
|
13570
13570
|
{
|
|
13571
|
-
...
|
|
13571
|
+
...me && { "data-testimonial-measure": "text" },
|
|
13572
13572
|
style: {
|
|
13573
13573
|
...ln($, n),
|
|
13574
13574
|
...U && U > 0 ? { minHeight: U } : {},
|
|
@@ -13610,7 +13610,7 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13610
13610
|
/* @__PURE__ */ l(
|
|
13611
13611
|
"div",
|
|
13612
13612
|
{
|
|
13613
|
-
...
|
|
13613
|
+
...me ? { "data-testimonial-measure": "caption" } : {},
|
|
13614
13614
|
style: {
|
|
13615
13615
|
...ln(z, n),
|
|
13616
13616
|
...ce && ce > 0 ? { minHeight: ce } : {},
|
|
@@ -13632,11 +13632,11 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13632
13632
|
}
|
|
13633
13633
|
const we = Z.current;
|
|
13634
13634
|
if (!we) return;
|
|
13635
|
-
const
|
|
13635
|
+
const pe = () => {
|
|
13636
13636
|
du(we, ve);
|
|
13637
13637
|
};
|
|
13638
|
-
|
|
13639
|
-
const U = new ResizeObserver(
|
|
13638
|
+
pe();
|
|
13639
|
+
const U = new ResizeObserver(pe);
|
|
13640
13640
|
return U.observe(we), () => {
|
|
13641
13641
|
U.disconnect();
|
|
13642
13642
|
};
|
|
@@ -13665,11 +13665,11 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13665
13665
|
pointerEvents: "none",
|
|
13666
13666
|
zIndex: -1
|
|
13667
13667
|
},
|
|
13668
|
-
children: a.map((we,
|
|
13668
|
+
children: a.map((we, pe) => /* @__PURE__ */ l("div", { style: { width: "100%" }, children: ie(we, { dataMeasureAttrs: !0 }) }, pe))
|
|
13669
13669
|
}
|
|
13670
13670
|
),
|
|
13671
13671
|
/* @__PURE__ */ Y("div", { className: `${r}-fade-stack`, children: [
|
|
13672
|
-
|
|
13672
|
+
F && L && /* @__PURE__ */ l("div", { className: Mt(`${r}-fade-item-prev`, `${r}-fade-out`), children: ie(F, { ...ke, hideControls: !0 }) }),
|
|
13673
13673
|
/* @__PURE__ */ l("div", { className: Mt(`${r}-fade-item-current`, L ? `${r}-fade-in` : void 0), children: ie(H, ke) })
|
|
13674
13674
|
] })
|
|
13675
13675
|
]
|
|
@@ -13690,7 +13690,7 @@ const Ay = 3e3, Fy = ({ settings: e, content: t, isEditor: n, isPreviewMode: i,
|
|
|
13690
13690
|
{
|
|
13691
13691
|
type: "button",
|
|
13692
13692
|
className: `${r}-arrow-inner`,
|
|
13693
|
-
onClick:
|
|
13693
|
+
onClick: A,
|
|
13694
13694
|
disabled: !O,
|
|
13695
13695
|
"aria-label": "Previous testimonial",
|
|
13696
13696
|
children: se.icon && /* @__PURE__ */ l(
|
|
@@ -15245,7 +15245,7 @@ function ev({
|
|
|
15245
15245
|
}
|
|
15246
15246
|
function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClose: r, onPrev: a, onNext: s, counterClassName: c, counterStyle: d }) {
|
|
15247
15247
|
const u = i === "cover", f = q(null), y = q(null), p = q(null), m = q(null), x = q(0), b = q(0), E = q("none"), h = q(!1), w = q(!1), V = q(null), G = q(0), k = q(null), L = q(!1), M = q(null), j = q(null), S = q(null), C = q(() => {
|
|
15248
|
-
}), [H,
|
|
15248
|
+
}), [H, F] = ne(null), [T, $] = ne(null), [z, v] = ne("opening"), [Z, I] = ne(0), [N, W] = ne(0), [ee, se] = ne(null), [O, le] = ne(!1), [A, de] = ne(!1), [ie, ve] = ne(!1), [ke, we] = ne(null), pe = q(n), U = q(void 0), ce = t[n], me = ce ? oo(ce) : !1, be = N !== 0 || O, Le = ee !== null, Fe = $e((Te) => {
|
|
15249
15249
|
const Oe = Te.currentTarget, et = Oe instanceof HTMLVideoElement ? { width: Oe.videoWidth, height: Oe.videoHeight } : { width: Oe.naturalWidth, height: Oe.naturalHeight };
|
|
15250
15250
|
!et.width || !et.height || we(et);
|
|
15251
15251
|
}, []);
|
|
@@ -15264,7 +15264,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15264
15264
|
}, []), Ce = $e(() => {
|
|
15265
15265
|
const Te = j.current;
|
|
15266
15266
|
j.current = null, ye(), k.current = null, L.current = !1, se(null), le(!1), W(0), G.current = 0, de(!1), h.current = !1, b.current = 0, E.current = "none", Te === 1 ? s() : Te === -1 && a();
|
|
15267
|
-
}, [ye, s, a]),
|
|
15267
|
+
}, [ye, s, a]), Pe = $e(() => {
|
|
15268
15268
|
ye(), j.current = null, k.current = null, L.current = !1, se(null), le(!1), W(0), G.current = 0;
|
|
15269
15269
|
}, [ye]), g = $e(() => {
|
|
15270
15270
|
ye(), M.current = window.setTimeout(() => {
|
|
@@ -15280,16 +15280,16 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15280
15280
|
return;
|
|
15281
15281
|
}
|
|
15282
15282
|
G.current = 0, W(0), M.current = window.setTimeout(() => {
|
|
15283
|
-
M.current = null,
|
|
15283
|
+
M.current = null, Pe();
|
|
15284
15284
|
}, On + 32);
|
|
15285
|
-
}, [ye,
|
|
15285
|
+
}, [ye, Pe, g]), J = $e((Te) => {
|
|
15286
15286
|
if (!(t.length <= 1)) {
|
|
15287
15287
|
if (L.current) {
|
|
15288
15288
|
if (j.current === Te) {
|
|
15289
15289
|
S.current = Te, Ce();
|
|
15290
15290
|
return;
|
|
15291
15291
|
}
|
|
15292
|
-
|
|
15292
|
+
Pe();
|
|
15293
15293
|
}
|
|
15294
15294
|
ye(), k.current = Te, se(Te), L.current = !1, le(!1), G.current = 0, W(0), requestAnimationFrame(() => {
|
|
15295
15295
|
requestAnimationFrame(() => {
|
|
@@ -15297,7 +15297,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15297
15297
|
});
|
|
15298
15298
|
});
|
|
15299
15299
|
}
|
|
15300
|
-
}, [t.length, X, Ce,
|
|
15300
|
+
}, [t.length, X, Ce, Pe, ye]);
|
|
15301
15301
|
C.current = J;
|
|
15302
15302
|
const oe = $e((Te) => {
|
|
15303
15303
|
Te.propertyName !== "transform" || !L.current || j.current !== null && Ce();
|
|
@@ -15305,7 +15305,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15305
15305
|
const Te = y.current;
|
|
15306
15306
|
if (!Te) return;
|
|
15307
15307
|
const Oe = Ac(Te);
|
|
15308
|
-
!Oe.width || !Oe.height ||
|
|
15308
|
+
!Oe.width || !Oe.height || F(Oe);
|
|
15309
15309
|
}, []);
|
|
15310
15310
|
Me(() => {
|
|
15311
15311
|
he();
|
|
@@ -15322,7 +15322,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15322
15322
|
}, [z, r]), Me(() => () => {
|
|
15323
15323
|
ye();
|
|
15324
15324
|
}, [ye]), Ht(() => {
|
|
15325
|
-
|
|
15325
|
+
pe.current === n && U.current === (ce == null ? void 0 : ce.url) || (ye(), j.current = null, se(null), I(0), W(0), le(!1), ve(!1), de(!1), we(null), x.current = 0, b.current = 0, E.current = "none", h.current = !1, L.current = !1, G.current = 0, k.current = null, m.current = null, w.current = !1, pe.current = n, U.current = ce == null ? void 0 : ce.url);
|
|
15326
15326
|
}, [n, ce == null ? void 0 : ce.url, ye]), Ht(() => {
|
|
15327
15327
|
const Te = S.current;
|
|
15328
15328
|
Te !== null && (S.current = null, requestAnimationFrame(() => {
|
|
@@ -15422,7 +15422,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15422
15422
|
width: T == null ? void 0 : T.width,
|
|
15423
15423
|
height: T == null ? void 0 : T.height,
|
|
15424
15424
|
zIndex: 9998
|
|
15425
|
-
}, Be = u ? "cover" : "contain", Ve = N !== 0 || Z > 0 ? `translate(${N}px, ${Z}px)` : void 0, st =
|
|
15425
|
+
}, Be = u ? "cover" : "contain", Ve = N !== 0 || Z > 0 ? `translate(${N}px, ${Z}px)` : void 0, st = A && !O ? "none" : O ? `transform ${On}ms ${vi}` : ie ? `transform ${On}ms ${vi}, opacity ${On}ms ${vi}` : z === "opening" || te ? `opacity ${On}ms ${vi}` : "none", Je = {
|
|
15426
15426
|
...Q,
|
|
15427
15427
|
transform: Ve,
|
|
15428
15428
|
opacity: Z > 0 ? ge : z === "opening" || te ? 0 : 1,
|
|
@@ -15435,8 +15435,8 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15435
15435
|
width: B == null ? void 0 : B.width,
|
|
15436
15436
|
height: B == null ? void 0 : B.height,
|
|
15437
15437
|
objectFit: Be,
|
|
15438
|
-
pointerEvents:
|
|
15439
|
-
touchAction:
|
|
15438
|
+
pointerEvents: me && P && !be ? "auto" : "none",
|
|
15439
|
+
touchAction: me && P ? "none" : void 0
|
|
15440
15440
|
}, rt = (T == null ? void 0 : T.width) ?? 0, Ue = Le ? (n + ee + t.length) % t.length : null, xe = Ue !== null ? t[Ue] : null, ze = {
|
|
15441
15441
|
...Q,
|
|
15442
15442
|
transform: Le ? `translateX(${ee * rt + N}px)` : void 0,
|
|
@@ -15479,7 +15479,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15479
15479
|
inset: 0,
|
|
15480
15480
|
background: "rgba(28,31,34,0.9)",
|
|
15481
15481
|
opacity: P ? re : 0,
|
|
15482
|
-
transition:
|
|
15482
|
+
transition: A ? "none" : `opacity ${On}ms ${vi}`,
|
|
15483
15483
|
pointerEvents: "none"
|
|
15484
15484
|
}
|
|
15485
15485
|
}
|
|
@@ -15579,7 +15579,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15579
15579
|
},
|
|
15580
15580
|
`neighbor-${Ue}-${xe.url}`
|
|
15581
15581
|
) }),
|
|
15582
|
-
H && T && ce && /* @__PURE__ */ l("div", { style: Je, onTransitionEnd: oe, children:
|
|
15582
|
+
H && T && ce && /* @__PURE__ */ l("div", { style: Je, onTransitionEnd: oe, children: me ? /* @__PURE__ */ l(
|
|
15583
15583
|
ev,
|
|
15584
15584
|
{
|
|
15585
15585
|
src: ce.url,
|
|
@@ -15602,7 +15602,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15602
15602
|
},
|
|
15603
15603
|
`${n}-${ce.url}`
|
|
15604
15604
|
) }),
|
|
15605
|
-
P && nt && t.length > 1 && !
|
|
15605
|
+
P && nt && t.length > 1 && !me && /* @__PURE__ */ Y(ft, { children: [
|
|
15606
15606
|
/* @__PURE__ */ l(
|
|
15607
15607
|
"div",
|
|
15608
15608
|
{
|
|
@@ -15610,7 +15610,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15610
15610
|
...nt,
|
|
15611
15611
|
left: B.left,
|
|
15612
15612
|
cursor: "w-resize",
|
|
15613
|
-
pointerEvents:
|
|
15613
|
+
pointerEvents: A ? "none" : "auto"
|
|
15614
15614
|
},
|
|
15615
15615
|
onClick: (Te) => {
|
|
15616
15616
|
if (w.current) {
|
|
@@ -15628,7 +15628,7 @@ function tv({ prefix: e, items: t, index: n, imageDisplay: i, isEditor: o, onClo
|
|
|
15628
15628
|
...nt,
|
|
15629
15629
|
left: B.left + B.width / 2,
|
|
15630
15630
|
cursor: "e-resize",
|
|
15631
|
-
pointerEvents:
|
|
15631
|
+
pointerEvents: A ? "none" : "auto"
|
|
15632
15632
|
},
|
|
15633
15633
|
onClick: (Te) => {
|
|
15634
15634
|
if (w.current) {
|
|
@@ -15668,7 +15668,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15668
15668
|
subtitleColor: S,
|
|
15669
15669
|
lightboxCounterColor: C,
|
|
15670
15670
|
titleFontFamily: H,
|
|
15671
|
-
titleFontSettings:
|
|
15671
|
+
titleFontSettings: F,
|
|
15672
15672
|
titleFontSize: T,
|
|
15673
15673
|
titleLineHeight: $,
|
|
15674
15674
|
titleLetterSpacing: z,
|
|
@@ -15681,21 +15681,21 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15681
15681
|
subtitleLetterSpacing: se,
|
|
15682
15682
|
subtitleWordSpacing: O,
|
|
15683
15683
|
subtitleTextAppearance: le,
|
|
15684
|
-
lightboxCounterFontFamily:
|
|
15684
|
+
lightboxCounterFontFamily: A,
|
|
15685
15685
|
lightboxCounterFontSettings: de,
|
|
15686
15686
|
lightboxCounterFontSize: ie,
|
|
15687
15687
|
lightboxCounterLineHeight: ve,
|
|
15688
15688
|
lightboxCounterLetterSpacing: ke,
|
|
15689
15689
|
lightboxCounterWordSpacing: we,
|
|
15690
|
-
lightboxCounterTextAppearance:
|
|
15690
|
+
lightboxCounterTextAppearance: pe,
|
|
15691
15691
|
showText: U = "always",
|
|
15692
15692
|
alignEntries: ce = "off",
|
|
15693
|
-
align:
|
|
15693
|
+
align: me = "top"
|
|
15694
15694
|
} = e, be = {
|
|
15695
15695
|
fontSettings: {
|
|
15696
15696
|
fontFamily: H,
|
|
15697
|
-
fontWeight: (
|
|
15698
|
-
fontStyle: (
|
|
15697
|
+
fontWeight: (F == null ? void 0 : F.fontWeight) ?? 400,
|
|
15698
|
+
fontStyle: (F == null ? void 0 : F.fontStyle) ?? "normal"
|
|
15699
15699
|
},
|
|
15700
15700
|
fontSize: T ?? 0.01,
|
|
15701
15701
|
lineHeight: $,
|
|
@@ -15717,11 +15717,11 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15717
15717
|
wordSpacing: O ?? 0,
|
|
15718
15718
|
textAppearance: le,
|
|
15719
15719
|
color: S
|
|
15720
|
-
},
|
|
15720
|
+
}, Pe = {
|
|
15721
15721
|
...vn(ln(ye, n))
|
|
15722
15722
|
}, g = {
|
|
15723
15723
|
fontSettings: {
|
|
15724
|
-
fontFamily:
|
|
15724
|
+
fontFamily: A,
|
|
15725
15725
|
fontWeight: (de == null ? void 0 : de.fontWeight) ?? 400,
|
|
15726
15726
|
fontStyle: (de == null ? void 0 : de.fontStyle) ?? "normal"
|
|
15727
15727
|
},
|
|
@@ -15729,7 +15729,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15729
15729
|
lineHeight: ve,
|
|
15730
15730
|
letterSpacing: ke ?? 0,
|
|
15731
15731
|
wordSpacing: we ?? 0,
|
|
15732
|
-
textAppearance:
|
|
15732
|
+
textAppearance: pe,
|
|
15733
15733
|
color: C
|
|
15734
15734
|
}, J = {
|
|
15735
15735
|
...vn(ln(g, n)),
|
|
@@ -15806,7 +15806,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15806
15806
|
"div",
|
|
15807
15807
|
{
|
|
15808
15808
|
ref: Ye,
|
|
15809
|
-
className: `${d}-wrapper ${d}-type-${u}${Ze ? ` ${d}-align-entries` : ""} ${d}-image-align-${
|
|
15809
|
+
className: `${d}-wrapper ${d}-type-${u}${Ze ? ` ${d}-align-entries` : ""} ${d}-image-align-${me} ${Ee}`.trim(),
|
|
15810
15810
|
style: {
|
|
15811
15811
|
gridTemplateColumns: `repeat(${nt}, ${Te})`,
|
|
15812
15812
|
rowGap: Ze ? 0 : K(p ?? 0, n),
|
|
@@ -15829,7 +15829,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15829
15829
|
}
|
|
15830
15830
|
}
|
|
15831
15831
|
),
|
|
15832
|
-
ot && /* @__PURE__ */ l("p", { className: he, style: { width: ht, ...
|
|
15832
|
+
ot && /* @__PURE__ */ l("p", { className: he, style: { width: ht, ...Pe, ...P }, children: Ct.subtitle }),
|
|
15833
15833
|
ot && /* @__PURE__ */ l(
|
|
15834
15834
|
"div",
|
|
15835
15835
|
{
|
|
@@ -15877,7 +15877,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15877
15877
|
}
|
|
15878
15878
|
}
|
|
15879
15879
|
),
|
|
15880
|
-
ot && /* @__PURE__ */ l("p", { className: he, style: { width: ht, ...
|
|
15880
|
+
ot && /* @__PURE__ */ l("p", { className: he, style: { width: ht, ...Pe, ...P }, children: Ct.subtitle }),
|
|
15881
15881
|
Ge && ot && /* @__PURE__ */ l(
|
|
15882
15882
|
"div",
|
|
15883
15883
|
{
|
|
@@ -15981,7 +15981,7 @@ function iv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
15981
15981
|
"p",
|
|
15982
15982
|
{
|
|
15983
15983
|
className: he,
|
|
15984
|
-
style: { width: ht, ...
|
|
15984
|
+
style: { width: ht, ...Pe, ...P },
|
|
15985
15985
|
children: Ct.subtitle
|
|
15986
15986
|
}
|
|
15987
15987
|
)
|
|
@@ -19190,7 +19190,7 @@ function ap({
|
|
|
19190
19190
|
} = n, G = K(x, i), k = K(
|
|
19191
19191
|
Math.max(x, si),
|
|
19192
19192
|
i
|
|
19193
|
-
), L = K(b, i), M = K(p, i), j = m === "mobile", S = eo("title1", Qi(n, "title1"), i), C = eo("title2", Qi(n, "title2"), i), H = eo("title3", Qi(n, "title3"), i),
|
|
19193
|
+
), L = K(b, i), M = K(p, i), j = m === "mobile", S = eo("title1", Qi(n, "title1"), i), C = eo("title2", Qi(n, "title2"), i), H = eo("title3", Qi(n, "title3"), i), F = He(
|
|
19194
19194
|
() => ({
|
|
19195
19195
|
title1Width: s ?? ko.title1Width,
|
|
19196
19196
|
title2Width: c ?? ko.title2Width,
|
|
@@ -19204,8 +19204,8 @@ function ap({
|
|
|
19204
19204
|
() => Ri(e, t, S, C, H),
|
|
19205
19205
|
[e, t, S, C, H]
|
|
19206
19206
|
), z = He(
|
|
19207
|
-
() => $.map((B) =>
|
|
19208
|
-
[$,
|
|
19207
|
+
() => $.map((B) => F[B.widthKey]),
|
|
19208
|
+
[$, F]
|
|
19209
19209
|
), v = He(
|
|
19210
19210
|
() => Ho($.length, z),
|
|
19211
19211
|
[$.length, z]
|
|
@@ -19219,14 +19219,14 @@ function ap({
|
|
|
19219
19219
|
() => $.filter((B) => B.prefix === "title2" || B.prefix === "title3"),
|
|
19220
19220
|
[$]
|
|
19221
19221
|
), W = He(
|
|
19222
|
-
() => ki(I,
|
|
19223
|
-
[I,
|
|
19222
|
+
() => ki(I, F),
|
|
19223
|
+
[I, F]
|
|
19224
19224
|
), ee = He(
|
|
19225
|
-
() => ki(N,
|
|
19226
|
-
[N,
|
|
19225
|
+
() => ki(N, F),
|
|
19226
|
+
[N, F]
|
|
19227
19227
|
), se = !!(t.title1 || t.title2 || t.title3), O = E !== null;
|
|
19228
19228
|
if (!(se || O)) return null;
|
|
19229
|
-
const
|
|
19229
|
+
const A = (u ?? 0) > 0 || o, de = (B, Ee) => {
|
|
19230
19230
|
const Se = $.findIndex((Be) => Be.prefix === B.prefix);
|
|
19231
19231
|
if (!j || Ee === "single-row")
|
|
19232
19232
|
return {
|
|
@@ -19250,7 +19250,7 @@ function ap({
|
|
|
19250
19250
|
};
|
|
19251
19251
|
}, ie = (B, Ee, Se) => {
|
|
19252
19252
|
if (!j || Se === "single-row") {
|
|
19253
|
-
const Je = B.findIndex((xe) => xe.prefix === Ee.prefix), at = B.map((xe) =>
|
|
19253
|
+
const Je = B.findIndex((xe) => xe.prefix === Ee.prefix), at = B.map((xe) => F[xe.widthKey]), rt = Ho(B.length, at);
|
|
19254
19254
|
return {
|
|
19255
19255
|
effectiveWidth: Tr(B.length, at)[Je] ?? 0,
|
|
19256
19256
|
resolvedWidth: rt[Je] ?? 0,
|
|
@@ -19258,14 +19258,14 @@ function ap({
|
|
|
19258
19258
|
};
|
|
19259
19259
|
}
|
|
19260
19260
|
if (Se === "two-row-top") {
|
|
19261
|
-
const Je = B.filter((xe) => xe.prefix === "title1"), at = Je.findIndex((xe) => xe.prefix === Ee.prefix), { resolved: rt, effective: Ue } = ki(Je,
|
|
19261
|
+
const Je = B.filter((xe) => xe.prefix === "title1"), at = Je.findIndex((xe) => xe.prefix === Ee.prefix), { resolved: rt, effective: Ue } = ki(Je, F);
|
|
19262
19262
|
return {
|
|
19263
19263
|
effectiveWidth: Ue[at] ?? 0,
|
|
19264
19264
|
resolvedWidth: rt[at] ?? 0,
|
|
19265
19265
|
maxWidth: Tn(at, rt)
|
|
19266
19266
|
};
|
|
19267
19267
|
}
|
|
19268
|
-
const Q = B.filter((Je) => Je.prefix === "title2" || Je.prefix === "title3"), Be = Q.findIndex((Je) => Je.prefix === Ee.prefix), { resolved: Ve, effective: st } = ki(Q,
|
|
19268
|
+
const Q = B.filter((Je) => Je.prefix === "title2" || Je.prefix === "title3"), Be = Q.findIndex((Je) => Je.prefix === Ee.prefix), { resolved: Ve, effective: st } = ki(Q, F);
|
|
19269
19269
|
return {
|
|
19270
19270
|
effectiveWidth: st[Be] ?? 0,
|
|
19271
19271
|
resolvedWidth: Ve[Be] ?? 0,
|
|
@@ -19279,7 +19279,7 @@ function ap({
|
|
|
19279
19279
|
) + (j ? 0 : u ?? 0), ke = () => j ? 0 : u ?? 0, we = (B) => N.slice(0, B).reduce(
|
|
19280
19280
|
(Ee, Se, Q) => Ee + (Se.marginLeftKey ? T[Se.marginLeftKey] ?? 0 : 0) + (ee.resolved[Q] ?? 0),
|
|
19281
19281
|
0
|
|
19282
|
-
),
|
|
19282
|
+
), pe = (B) => {
|
|
19283
19283
|
const Ee = N[B];
|
|
19284
19284
|
return we(B) + (Ee.marginLeftKey ? T[Ee.marginLeftKey] ?? 0 : 0) + (ee.resolved[B] ?? 0);
|
|
19285
19285
|
}, U = (B, Ee, Se) => {
|
|
@@ -19339,7 +19339,7 @@ function ap({
|
|
|
19339
19339
|
B.className
|
|
19340
19340
|
);
|
|
19341
19341
|
}, ce = (B = "two-row") => {
|
|
19342
|
-
const Ee = $.findIndex((Be) => Be.prefix === "title1"), Se = Ee >= 0 ? v[Ee] :
|
|
19342
|
+
const Ee = $.findIndex((Be) => Be.prefix === "title1"), Se = Ee >= 0 ? v[Ee] : F.title1Width, Q = B === "two-row" && o;
|
|
19343
19343
|
return /* @__PURE__ */ l(
|
|
19344
19344
|
"div",
|
|
19345
19345
|
{
|
|
@@ -19357,7 +19357,7 @@ function ap({
|
|
|
19357
19357
|
}
|
|
19358
19358
|
}
|
|
19359
19359
|
);
|
|
19360
|
-
},
|
|
19360
|
+
}, me = () => /* @__PURE__ */ l(
|
|
19361
19361
|
"span",
|
|
19362
19362
|
{
|
|
19363
19363
|
className: `${e}-titles-baseline-strut`,
|
|
@@ -19459,17 +19459,17 @@ function ap({
|
|
|
19459
19459
|
)
|
|
19460
19460
|
]
|
|
19461
19461
|
}
|
|
19462
|
-
), Ce = () => O ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-header-controls`, children: ye() }) : null,
|
|
19463
|
-
O || se ?
|
|
19464
|
-
|
|
19465
|
-
|
|
19462
|
+
), Ce = () => O ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-header-controls`, children: ye() }) : null, Pe = (B) => /* @__PURE__ */ l("div", { className: `${e}-titles-row-titles`, children: /* @__PURE__ */ l("div", { className: `${e}-titles-stack`, children: B }) }), g = (B) => /* @__PURE__ */ Y("div", { className: `${e}-titles-row-top`, children: [
|
|
19463
|
+
O || se ? me() : null,
|
|
19464
|
+
A ? ce("two-row") : null,
|
|
19465
|
+
Pe(B),
|
|
19466
19466
|
Ce()
|
|
19467
19467
|
] }), X = (B, Ee = !1) => /* @__PURE__ */ Y(ft, { children: [
|
|
19468
19468
|
g(Le(B)),
|
|
19469
19469
|
Fe(B, Ee)
|
|
19470
19470
|
] }), J = () => {
|
|
19471
19471
|
const B = j ? -1 : $.findIndex((Q) => Q.prefix === "title1"), Ee = !j && (o || (u ?? 0) > 0) ? (() => {
|
|
19472
|
-
const Q = u ?? 0, Be = B >= 0 ? v[B] :
|
|
19472
|
+
const Q = u ?? 0, Be = B >= 0 ? v[B] : F.title1Width, Ve = Math.max(Q, si);
|
|
19473
19473
|
return /* @__PURE__ */ l(
|
|
19474
19474
|
"div",
|
|
19475
19475
|
{
|
|
@@ -19558,7 +19558,7 @@ function ap({
|
|
|
19558
19558
|
B.marginLeftKey
|
|
19559
19559
|
);
|
|
19560
19560
|
}), D = () => N.map((B, Ee) => {
|
|
19561
|
-
const { maxWidth: Se } = de(B, "two-row-bottom"), Be =
|
|
19561
|
+
const { maxWidth: Se } = de(B, "two-row-bottom"), Be = pe(Ee) - Fn / 2;
|
|
19562
19562
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
19563
19563
|
"div",
|
|
19564
19564
|
{
|
|
@@ -19586,9 +19586,9 @@ function ap({
|
|
|
19586
19586
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
19587
19587
|
style: { width: "100%", position: "relative" },
|
|
19588
19588
|
children: [
|
|
19589
|
-
O || se ?
|
|
19590
|
-
|
|
19591
|
-
se ?
|
|
19589
|
+
O || se ? me() : null,
|
|
19590
|
+
A ? ce("single-row") : null,
|
|
19591
|
+
se ? Pe(be(t)) : /* @__PURE__ */ l("div", { className: `${e}-titles-row-titles`, "aria-hidden": "true" }),
|
|
19592
19592
|
Ce(),
|
|
19593
19593
|
P()
|
|
19594
19594
|
]
|
|
@@ -20371,8 +20371,8 @@ function Gv({
|
|
|
20371
20371
|
onPrev: x,
|
|
20372
20372
|
onNext: b
|
|
20373
20373
|
}) {
|
|
20374
|
-
const E = q(null), h = q(null), w = q(null), V = q(/* @__PURE__ */ new Map()), [G, k] = ne(0), L = q(null), M = q(0), j = q(0), S = q("none"), C = q(!1), H = q(!1),
|
|
20375
|
-
}), Z = q(null), I = q(null), N = q(null), W = q(!1), [ee, se] = ne(null), [O, le] = ne(ml), [
|
|
20374
|
+
const E = q(null), h = q(null), w = q(null), V = q(/* @__PURE__ */ new Map()), [G, k] = ne(0), L = q(null), M = q(0), j = q(0), S = q("none"), C = q(!1), H = q(!1), F = q(!1), T = q(null), $ = q(null), z = q(null), v = q(() => {
|
|
20375
|
+
}), Z = q(null), I = q(null), N = q(null), W = q(!1), [ee, se] = ne(null), [O, le] = ne(ml), [A, de] = ne(0), [ie, ve] = ne("opening"), [ke, we] = ne(0), [pe, U] = ne(0), [ce, me] = ne(!1), [be, Le] = ne(null), [Fe, ye] = ne(null), [Ce, Pe] = ne(null), [g, X] = ne(!1), [J, oe] = ne(null), [he, D] = ne(!1), P = q(!1), [te, re] = ne(!1), [ge, B] = ne(!1), Ee = q(n), Se = q(void 0), Q = t[n], Be = Q ? Zo(Q) : !1, Ve = pe !== 0 || ce, st = !a && (!r || !!s), Je = c && !a, at = d.length > 1, rt = $e((_, Re) => t.length <= 1 ? null : t[(_ + Re + t.length) % t.length] ?? null, [t]), Ue = at ? ur(d, u, -1) : rt(n, -1), xe = at ? ur(d, u, 1) : rt(n, 1), ze = be === -1 && Ve ? at && Fe !== null ? ur(d, Fe, -1) : Ce !== null ? rt(Ce, -1) : null : null, qe = be === 1 && Ve ? at && Fe !== null ? ur(d, Fe, 1) : Ce !== null ? rt(Ce, 1) : null : null, nt = ze && ze.url !== (Ue == null ? void 0 : Ue.url) ? ze : null, Te = qe && qe.url !== (xe == null ? void 0 : xe.url) ? qe : null, Oe = Ue && Je ? (() => {
|
|
20376
20376
|
const _ = at ? Dc(d, u, -1) : t.length > 2 ? rt((n - 1 + t.length) % t.length, -1) : null;
|
|
20377
20377
|
return _ && _.url !== Ue.url ? _ : null;
|
|
20378
20378
|
})() : null, et = xe && Je ? (() => {
|
|
@@ -20386,7 +20386,7 @@ function Gv({
|
|
|
20386
20386
|
if (!(_ != null && _.url)) return null;
|
|
20387
20387
|
const Re = V.current.get(_.url);
|
|
20388
20388
|
return Fv(h.current, Re);
|
|
20389
|
-
}, [G,
|
|
20389
|
+
}, [G, A]), We = $e(() => {
|
|
20390
20390
|
if (!Q) return;
|
|
20391
20391
|
const _ = je(Q);
|
|
20392
20392
|
if (_) {
|
|
@@ -20398,12 +20398,12 @@ function Gv({
|
|
|
20398
20398
|
}, [Q, je]), bt = $e((_) => {
|
|
20399
20399
|
if (at) {
|
|
20400
20400
|
const Re = d.length;
|
|
20401
|
-
ye((u + _ + Re) % Re),
|
|
20401
|
+
ye((u + _ + Re) % Re), Pe(null);
|
|
20402
20402
|
return;
|
|
20403
20403
|
}
|
|
20404
|
-
t.length > 1 && (
|
|
20404
|
+
t.length > 1 && (Pe((n + _ + t.length) % t.length), ye(null));
|
|
20405
20405
|
}, [at, d.length, u, t.length, n]), Xe = $e((_) => {
|
|
20406
|
-
|
|
20406
|
+
F.current = _, me(_);
|
|
20407
20407
|
}, []), Ge = $e(() => {
|
|
20408
20408
|
T.current !== null && (window.clearTimeout(T.current), T.current = null);
|
|
20409
20409
|
}, []), Ze = $e(() => {
|
|
@@ -20431,7 +20431,7 @@ function Gv({
|
|
|
20431
20431
|
}, []), fe = $e((_, Re) => {
|
|
20432
20432
|
if (Ve) {
|
|
20433
20433
|
if (te && !ce)
|
|
20434
|
-
return `translate(${
|
|
20434
|
+
return `translate(${pe}px, 0px)`;
|
|
20435
20435
|
if (ce && be !== null) {
|
|
20436
20436
|
const Ke = je(_);
|
|
20437
20437
|
if (!Ke) return;
|
|
@@ -20445,22 +20445,22 @@ function Gv({
|
|
|
20445
20445
|
Ve,
|
|
20446
20446
|
te,
|
|
20447
20447
|
ce,
|
|
20448
|
-
|
|
20448
|
+
pe,
|
|
20449
20449
|
be,
|
|
20450
20450
|
O,
|
|
20451
20451
|
je
|
|
20452
20452
|
]), Ae = $e(() => {
|
|
20453
20453
|
const _ = $.current;
|
|
20454
|
-
$.current = null, Ge(), Xe(!1), Le(null), ye(null),
|
|
20454
|
+
$.current = null, Ge(), Xe(!1), Le(null), ye(null), Pe(null), U(0), re(!1), C.current = !1, j.current = 0, S.current = "none", _ === -1 ? x() : _ === 1 && b();
|
|
20455
20455
|
}, [Ge, Xe, x, b]), lt = $e(() => {
|
|
20456
20456
|
Ge(), T.current = window.setTimeout(() => {
|
|
20457
20457
|
$.current !== null && Ae();
|
|
20458
20458
|
}, nr + 32);
|
|
20459
20459
|
}, [Ge, Ae]), yt = $e(() => {
|
|
20460
|
-
Ge(), $.current = null, Xe(!1), Le(null), ye(null),
|
|
20460
|
+
Ge(), $.current = null, Xe(!1), Le(null), ye(null), Pe(null), U(0), re(!1), C.current = !1, j.current = 0, S.current = "none";
|
|
20461
20461
|
}, [Ge, Xe]), Ye = $e((_) => {
|
|
20462
20462
|
if (!(!Je || !ee)) {
|
|
20463
|
-
if (
|
|
20463
|
+
if (F.current) {
|
|
20464
20464
|
if ($.current === _) {
|
|
20465
20465
|
z.current = _, Ae();
|
|
20466
20466
|
return;
|
|
@@ -20566,7 +20566,7 @@ function Gv({
|
|
|
20566
20566
|
}, [ie, m]), Me(() => () => {
|
|
20567
20567
|
Ge();
|
|
20568
20568
|
}, [Ge]), Ht(() => {
|
|
20569
|
-
Ee.current === n && Se.current === (Q == null ? void 0 : Q.url) || (Ge(), $.current = null, Le(null), ye(null),
|
|
20569
|
+
Ee.current === n && Se.current === (Q == null ? void 0 : Q.url) || (Ge(), $.current = null, Le(null), ye(null), Pe(null), we(0), U(0), Xe(!1), B(!1), re(!1), M.current = 0, j.current = 0, S.current = "none", C.current = !1, L.current = null, H.current = !1, w.current = null, We(), Ee.current = n, Se.current = Q == null ? void 0 : Q.url);
|
|
20570
20570
|
}, [n, Q == null ? void 0 : Q.url, Xe, Ge, We]), Ht(() => {
|
|
20571
20571
|
const _ = z.current;
|
|
20572
20572
|
_ !== null && (z.current = null, requestAnimationFrame(() => {
|
|
@@ -20604,13 +20604,13 @@ function Gv({
|
|
|
20604
20604
|
Re(xt);
|
|
20605
20605
|
return;
|
|
20606
20606
|
}
|
|
20607
|
-
$.current = null, Le(null), ye(null),
|
|
20607
|
+
$.current = null, Le(null), ye(null), Pe(null), Xe(!0), U(0), Ze();
|
|
20608
20608
|
}, De = (xt) => {
|
|
20609
|
-
if (xt.touches.length !== 1 ||
|
|
20609
|
+
if (xt.touches.length !== 1 || F.current) return;
|
|
20610
20610
|
const Rt = xt.touches[0];
|
|
20611
20611
|
H.current = !0, L.current = { x: Rt.clientX, y: Rt.clientY }, S.current = "none", j.current = 0, C.current = !1;
|
|
20612
20612
|
}, St = (xt) => {
|
|
20613
|
-
if (!L.current || xt.touches.length !== 1 ||
|
|
20613
|
+
if (!L.current || xt.touches.length !== 1 || F.current) return;
|
|
20614
20614
|
const Rt = xt.touches[0], on = Rt.clientX - L.current.x, qt = Rt.clientY - L.current.y;
|
|
20615
20615
|
if (S.current === "none") {
|
|
20616
20616
|
if (Math.abs(on) < 10 && Math.abs(qt) < 10) return;
|
|
@@ -20687,7 +20687,7 @@ function Gv({
|
|
|
20687
20687
|
const tn = () => {
|
|
20688
20688
|
ie === "closing" || a || en();
|
|
20689
20689
|
}, Nt = ie === "open", Kt = ie === "closing", pn = ke > 0 ? Math.max(0, 1 - ke / 500) : 1, Ct = ke > 0 ? Math.max(0.35, 1 - ke / 500) : 1, $t = $e((_) => {
|
|
20690
|
-
if (!(_.propertyName !== "transform" || !
|
|
20690
|
+
if (!(_.propertyName !== "transform" || !F.current)) {
|
|
20691
20691
|
if ($.current !== null) {
|
|
20692
20692
|
Ae();
|
|
20693
20693
|
return;
|
|
@@ -20958,19 +20958,19 @@ function Xv({
|
|
|
20958
20958
|
width: "auto",
|
|
20959
20959
|
height: "auto",
|
|
20960
20960
|
maxWidth: "100%"
|
|
20961
|
-
}, H = q(null), [
|
|
20961
|
+
}, H = q(null), [F, T] = ne(!1), [$, z] = ne([]), [v, Z] = ne(0), [I, N] = ne(0), [W, ee] = ne(null), [se, O] = ne({
|
|
20962
20962
|
title1: "",
|
|
20963
20963
|
title2: "",
|
|
20964
20964
|
title3: ""
|
|
20965
20965
|
}), le = (() => {
|
|
20966
|
-
const Ce = {},
|
|
20967
|
-
return
|
|
20968
|
-
})(),
|
|
20966
|
+
const Ce = {}, Pe = H.current ? getComputedStyle(H.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
20967
|
+
return Pe && (Ce["--cntrl-article-width"] = Pe), Ce;
|
|
20968
|
+
})(), A = !n || i || o, de = He(() => $v(s), [s]), ie = t ?? [], ve = ie.length % G || G, ke = ve < G && ie.length > 0, we = ie.length - ve, pe = ke ? Math.floor((G - ve) / 2) + 1 : 1, U = He(() => Mv(ie), [ie]), ce = He(() => _v(ie), [ie]), me = (Ce, Pe, g) => {
|
|
20969
20969
|
if (n && !o && !i) return;
|
|
20970
20970
|
const X = U.findIndex((oe) => oe.gridIndex === Ce);
|
|
20971
20971
|
if (X < 0) return;
|
|
20972
20972
|
const J = U[X];
|
|
20973
|
-
N(X), z(J.items), Z(
|
|
20973
|
+
N(X), z(J.items), Z(Pe), O(J.entry), ee(g ?? null), T(!0);
|
|
20974
20974
|
}, be = $e(() => {
|
|
20975
20975
|
T(!1), ee(null);
|
|
20976
20976
|
}, []), Le = $e(() => {
|
|
@@ -20982,19 +20982,19 @@ function Xv({
|
|
|
20982
20982
|
) ?? W;
|
|
20983
20983
|
}, [U, I, W, y]), Fe = $e((Ce) => {
|
|
20984
20984
|
if (U.length > 1) {
|
|
20985
|
-
const
|
|
20985
|
+
const Pe = U.length, g = (I + Ce + Pe) % Pe, X = U[g], J = Math.min(v, X.items.length - 1);
|
|
20986
20986
|
N(g), z(X.items), Z(J), O(X.entry);
|
|
20987
20987
|
return;
|
|
20988
20988
|
}
|
|
20989
|
-
Z((
|
|
20989
|
+
Z((Pe) => (Pe + Ce + $.length) % $.length);
|
|
20990
20990
|
}, [U, I, v, $.length]), ye = U.length > 1 || $.length > 1;
|
|
20991
20991
|
return Me(() => {
|
|
20992
|
-
if (!
|
|
20992
|
+
if (!F || typeof document > "u") return;
|
|
20993
20993
|
const Ce = document.body.style.overflow;
|
|
20994
20994
|
return document.body.style.overflow = "hidden", () => {
|
|
20995
20995
|
document.body.style.overflow = Ce;
|
|
20996
20996
|
};
|
|
20997
|
-
}, [
|
|
20997
|
+
}, [F]), Me(() => {
|
|
20998
20998
|
!n || o || i || T(!1);
|
|
20999
20999
|
}, [n, o, i]), /* @__PURE__ */ Y(ft, { children: [
|
|
21000
21000
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: de } }),
|
|
@@ -21011,16 +21011,16 @@ function Xv({
|
|
|
21011
21011
|
width: K(c.wrapperWidth ?? 0, n),
|
|
21012
21012
|
[`--${s}-align-entries-row-gap`]: K(d ?? 0, n)
|
|
21013
21013
|
},
|
|
21014
|
-
children: ie.map((Ce,
|
|
21015
|
-
const g = js(Ce.gallery), X = Gs(g), J = X.filter((re) => re.lightboxMedia).map((re) => re.lightboxMedia), oe = Math.floor(
|
|
21014
|
+
children: ie.map((Ce, Pe) => {
|
|
21015
|
+
const g = js(Ce.gallery), X = Gs(g), J = X.filter((re) => re.lightboxMedia).map((re) => re.lightboxMedia), oe = Math.floor(Pe / G) === Math.ceil(ie.length / G) - 1, he = ke && Pe >= we ? `${pe + (Pe - we)}` : void 0, D = X[0], P = D != null && D.lightboxMedia ? J.findIndex((re) => re.url === D.lightboxMedia.url) : -1, te = /* @__PURE__ */ l("div", { className: `${s}-item-image-wrapper`, style: S, children: X.length > 0 && /* @__PURE__ */ l(
|
|
21016
21016
|
Vv,
|
|
21017
21017
|
{
|
|
21018
21018
|
media: D.displayMedia,
|
|
21019
|
-
gridIndex:
|
|
21019
|
+
gridIndex: Pe,
|
|
21020
21020
|
className: `${s}-item-${Zo(D.displayMedia) ? "video" : "image"}`.trim(),
|
|
21021
21021
|
style: C,
|
|
21022
|
-
onMediaClick:
|
|
21023
|
-
|
|
21022
|
+
onMediaClick: A && P >= 0 ? (re) => me(
|
|
21023
|
+
Pe,
|
|
21024
21024
|
P,
|
|
21025
21025
|
lp(re.currentTarget, y ? "cover" : "contain")
|
|
21026
21026
|
) : void 0
|
|
@@ -21043,11 +21043,11 @@ function Xv({
|
|
|
21043
21043
|
/* @__PURE__ */ l("div", { className: `${s}-item-subtitle-row`, children: /* @__PURE__ */ l("div", { style: { height: 0, width: j } }) })
|
|
21044
21044
|
]
|
|
21045
21045
|
}
|
|
21046
|
-
) },
|
|
21046
|
+
) }, Pe);
|
|
21047
21047
|
})
|
|
21048
21048
|
}
|
|
21049
21049
|
),
|
|
21050
|
-
|
|
21050
|
+
F && typeof document < "u" && (() => {
|
|
21051
21051
|
const Ce = (a ? document.getElementById(a) : null) ?? document.body;
|
|
21052
21052
|
return fi(
|
|
21053
21053
|
/* @__PURE__ */ l("div", { style: le, "data-selection": "none", children: /* @__PURE__ */ l(
|
|
@@ -25091,7 +25091,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25091
25091
|
entryHoverEffect: S,
|
|
25092
25092
|
entryHoverShowOption: C,
|
|
25093
25093
|
rowPaddingTop: H,
|
|
25094
|
-
rowPaddingBottom:
|
|
25094
|
+
rowPaddingBottom: F,
|
|
25095
25095
|
rowPaddingTopB: T,
|
|
25096
25096
|
columnsOrder: $,
|
|
25097
25097
|
textPaddingLR: z,
|
|
@@ -25101,10 +25101,10 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25101
25101
|
textHoverColor: N,
|
|
25102
25102
|
backgroundHoverColor: W,
|
|
25103
25103
|
dividerHoverColor: ee
|
|
25104
|
-
} = e, [se, O] = ne(void 0), [le,
|
|
25104
|
+
} = e, [se, O] = ne(void 0), [le, A] = ne(null), de = q(null), ie = L === "on" && (!n || i), ve = M === "cursor", ke = ve && j === "on", { anchorRef: we, onShow: pe, onCursorMove: U, exit: ce } = c0(
|
|
25105
25105
|
!!(ie && le !== null),
|
|
25106
25106
|
ke
|
|
25107
|
-
),
|
|
25107
|
+
), me = (h ?? 0) > 0, be = y === "b", Le = q(null), Fe = q(null), [ye, Ce] = ne(null), [Pe, g] = ne(Ir), X = gp(Pe), J = Math.max(0, ((p ?? 0) - X) / 2), oe = Math.min(z ?? 0, J), he = Math.max(oe, wo), D = ((p ?? 0) + X) / 2;
|
|
25108
25108
|
Ht(() => {
|
|
25109
25109
|
if (!n) {
|
|
25110
25110
|
g(Ir);
|
|
@@ -25155,10 +25155,10 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25155
25155
|
const dt = H0(
|
|
25156
25156
|
e,
|
|
25157
25157
|
Ne,
|
|
25158
|
-
{ designWidth:
|
|
25158
|
+
{ designWidth: Pe }
|
|
25159
25159
|
);
|
|
25160
25160
|
Q.current = e, yp(e, dt) && c(dt);
|
|
25161
|
-
}, [e, c, n, a,
|
|
25161
|
+
}, [e, c, n, a, Pe]);
|
|
25162
25162
|
const Ve = He(
|
|
25163
25163
|
() => D0(e),
|
|
25164
25164
|
[
|
|
@@ -25231,7 +25231,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25231
25231
|
image: dt.image,
|
|
25232
25232
|
link: dt.link
|
|
25233
25233
|
}));
|
|
25234
|
-
}, [t, m]), et =
|
|
25234
|
+
}, [t, m]), et = me ? se ?? h : Oe.length, it = He(() => me ? Oe.slice(0, et) : Oe, [Oe, me, et]), pt = me && et < Oe.length, ct = it.length > 1 || pt, je = [
|
|
25235
25235
|
Ee ? `${d}-divider-top` : "",
|
|
25236
25236
|
Se || ct ? `${d}-divider-bottom` : ""
|
|
25237
25237
|
].filter(Boolean).join(" "), We = !n || i, bt = () => {
|
|
@@ -25242,7 +25242,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25242
25242
|
return;
|
|
25243
25243
|
}
|
|
25244
25244
|
O(Math.min(Ne + w, Oe.length));
|
|
25245
|
-
}, Xe = (Ne) => K(Ne, n ?? !1), Ge = be ? T ?? 0 : H ?? 0, Ze =
|
|
25245
|
+
}, Xe = (Ne) => K(Ne, n ?? !1), Ge = be ? T ?? 0 : H ?? 0, Ze = F ?? 0, ht = x ?? 0, fe = Math.max(Ze, vl), Ae = jc(
|
|
25246
25246
|
0,
|
|
25247
25247
|
it.length,
|
|
25248
25248
|
Ee,
|
|
@@ -25259,7 +25259,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25259
25259
|
if (!ie) return;
|
|
25260
25260
|
const dt = Ne.image;
|
|
25261
25261
|
if (!(dt != null && dt.url)) {
|
|
25262
|
-
ce(() =>
|
|
25262
|
+
ce(() => A(null));
|
|
25263
25263
|
return;
|
|
25264
25264
|
}
|
|
25265
25265
|
const mt = (k == null ? void 0 : k.min) ?? 80, Et = (k == null ? void 0 : k.max) ?? 320, Pt = (le == null ? void 0 : le.rowId) === Ne.id, wt = Pt ? le.widthPx : O0(mt, Et), { x: At, y: Xt } = Yt(ot, wt);
|
|
@@ -25267,7 +25267,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25267
25267
|
U(At, Xt);
|
|
25268
25268
|
return;
|
|
25269
25269
|
}
|
|
25270
|
-
|
|
25270
|
+
A({
|
|
25271
25271
|
rowId: Ne.id,
|
|
25272
25272
|
url: dt.url,
|
|
25273
25273
|
objectFit: "contain",
|
|
@@ -25279,17 +25279,17 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25279
25279
|
const { x: ot, y: dt } = Yt(Ne, le.widthPx);
|
|
25280
25280
|
U(ot, dt);
|
|
25281
25281
|
}, Nt = () => {
|
|
25282
|
-
le && ce(() =>
|
|
25282
|
+
le && ce(() => A(null));
|
|
25283
25283
|
}, Kt = (Ne) => {
|
|
25284
|
-
B && Bc(Ne, d), !(!ie || !le) && ce(() =>
|
|
25284
|
+
B && Bc(Ne, d), !(!ie || !le) && ce(() => A(null));
|
|
25285
25285
|
}, pn = (Ne) => {
|
|
25286
25286
|
B && Vc(Ne, d);
|
|
25287
25287
|
};
|
|
25288
25288
|
Ht(() => {
|
|
25289
25289
|
if (!le || !de.current) return;
|
|
25290
25290
|
const { x: Ne, y: ot } = de.current;
|
|
25291
|
-
de.current = null,
|
|
25292
|
-
}, [le == null ? void 0 : le.rowId, le == null ? void 0 : le.url,
|
|
25291
|
+
de.current = null, pe(Ne, ot);
|
|
25292
|
+
}, [le == null ? void 0 : le.rowId, le == null ? void 0 : le.url, pe]), Ht(() => {
|
|
25293
25293
|
if (!u || be) {
|
|
25294
25294
|
Ce(null);
|
|
25295
25295
|
return;
|
|
@@ -25322,7 +25322,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25322
25322
|
e,
|
|
25323
25323
|
Ue,
|
|
25324
25324
|
nt,
|
|
25325
|
-
|
|
25325
|
+
Pe,
|
|
25326
25326
|
b,
|
|
25327
25327
|
Ee,
|
|
25328
25328
|
Se,
|
|
@@ -25437,7 +25437,7 @@ function B0({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25437
25437
|
be,
|
|
25438
25438
|
e,
|
|
25439
25439
|
t,
|
|
25440
|
-
|
|
25440
|
+
Pe,
|
|
25441
25441
|
it,
|
|
25442
25442
|
nt
|
|
25443
25443
|
]);
|
|
@@ -30058,7 +30058,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30058
30058
|
questionFontFamily: S,
|
|
30059
30059
|
questionFontSettings: C,
|
|
30060
30060
|
questionFontSize: H,
|
|
30061
|
-
questionLineHeight:
|
|
30061
|
+
questionLineHeight: F,
|
|
30062
30062
|
questionLetterSpacing: T,
|
|
30063
30063
|
questionWordSpacing: $,
|
|
30064
30064
|
questionTextAppearance: z,
|
|
@@ -30071,23 +30071,23 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30071
30071
|
answerTextAppearance: se,
|
|
30072
30072
|
questionPaddingLeft: O = 0,
|
|
30073
30073
|
questionPaddingTop: le = 0,
|
|
30074
|
-
questionPaddingBottom:
|
|
30074
|
+
questionPaddingBottom: A = 0,
|
|
30075
30075
|
answerPaddingLeft: de = 0,
|
|
30076
30076
|
answerPaddingRight: ie = 0,
|
|
30077
30077
|
answerPaddingTop: ve = 0,
|
|
30078
30078
|
answerPaddingBottom: ke = 0
|
|
30079
|
-
} = e, we = t ?? [], [
|
|
30079
|
+
} = e, we = t ?? [], [pe, U] = ne(() => /* @__PURE__ */ new Set()), ce = !n || i;
|
|
30080
30080
|
Me(() => {
|
|
30081
30081
|
U(/* @__PURE__ */ new Set());
|
|
30082
30082
|
}, [p]), Me(() => {
|
|
30083
30083
|
n && !o && !i && U(/* @__PURE__ */ new Set());
|
|
30084
30084
|
}, [n, o, i]);
|
|
30085
|
-
const
|
|
30085
|
+
const me = (nt) => K(nt, n ?? !1), be = Math.max(O, xi), Le = Math.max(le, xi), Fe = Math.max(A, xi), ye = Math.max(de, xi), Ce = Math.max(ie, xi), Pe = Math.max(ve, xi), g = Math.max(ke, xi), X = Math.max(0, (c ?? 1) - b - x), J = Math.max(0, (c ?? 1) - ie), oe = Math.max(0, (c ?? 1) - de), he = Math.max(b, xi), D = Math.max(0, (c ?? 1) - O - x), P = He(() => pe.size === 0 ? 0 : Math.min(...pe), [pe]), te = $e((nt) => pe.has(nt), [pe]), re = ce && y === "default" ? `${a}-entry-hover-default` : "", ge = m ?? "", B = ge !== "", Ee = E.replace(/^rotate /, ""), Se = `${a}-icon-anim-${Ee}`, Q = vn(ln(
|
|
30086
30086
|
rd(
|
|
30087
30087
|
S,
|
|
30088
30088
|
C,
|
|
30089
30089
|
H,
|
|
30090
|
-
|
|
30090
|
+
F,
|
|
30091
30091
|
T,
|
|
30092
30092
|
$,
|
|
30093
30093
|
z,
|
|
@@ -30108,7 +30108,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30108
30108
|
n
|
|
30109
30109
|
)), Ve = id(
|
|
30110
30110
|
H,
|
|
30111
|
-
|
|
30111
|
+
F,
|
|
30112
30112
|
`${a}-question`,
|
|
30113
30113
|
`${a}-text-tight-leading`
|
|
30114
30114
|
), st = id(
|
|
@@ -30116,7 +30116,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30116
30116
|
N,
|
|
30117
30117
|
`${a}-answer-text`,
|
|
30118
30118
|
`${a}-text-tight-leading`
|
|
30119
|
-
), Je = od(H,
|
|
30119
|
+
), Je = od(H, F, a, n), at = od(I, N, a, n), rt = Hi(a, {
|
|
30120
30120
|
questionColor: h,
|
|
30121
30121
|
answerColor: w,
|
|
30122
30122
|
dividerColor: V,
|
|
@@ -30183,7 +30183,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30183
30183
|
top: 0,
|
|
30184
30184
|
left: 0,
|
|
30185
30185
|
width: "100%",
|
|
30186
|
-
height:
|
|
30186
|
+
height: me(Le)
|
|
30187
30187
|
}
|
|
30188
30188
|
}
|
|
30189
30189
|
),
|
|
@@ -30201,7 +30201,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30201
30201
|
style: {
|
|
30202
30202
|
top: 0,
|
|
30203
30203
|
left: 0,
|
|
30204
|
-
width:
|
|
30204
|
+
width: me(be),
|
|
30205
30205
|
height: "100%"
|
|
30206
30206
|
}
|
|
30207
30207
|
}
|
|
@@ -30221,7 +30221,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30221
30221
|
style: {
|
|
30222
30222
|
top: 0,
|
|
30223
30223
|
right: 0,
|
|
30224
|
-
width:
|
|
30224
|
+
width: me(he),
|
|
30225
30225
|
height: "100%"
|
|
30226
30226
|
}
|
|
30227
30227
|
}
|
|
@@ -30236,8 +30236,8 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30236
30236
|
style: {
|
|
30237
30237
|
...Q,
|
|
30238
30238
|
...Je,
|
|
30239
|
-
paddingLeft:
|
|
30240
|
-
paddingRight:
|
|
30239
|
+
paddingLeft: me(O),
|
|
30240
|
+
paddingRight: me(b)
|
|
30241
30241
|
},
|
|
30242
30242
|
onClick: () => xe(Te),
|
|
30243
30243
|
children: [
|
|
@@ -30245,7 +30245,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30245
30245
|
"span",
|
|
30246
30246
|
{
|
|
30247
30247
|
className: `${a}-padding-handle`,
|
|
30248
|
-
style: { height:
|
|
30248
|
+
style: { height: me(le) },
|
|
30249
30249
|
"aria-hidden": "true"
|
|
30250
30250
|
}
|
|
30251
30251
|
),
|
|
@@ -30261,11 +30261,11 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30261
30261
|
}
|
|
30262
30262
|
) }) : /* @__PURE__ */ l("span", { className: `${a}-icon ${a}-icon-default ${Se}`, "aria-hidden": "true" }))
|
|
30263
30263
|
] }),
|
|
30264
|
-
|
|
30264
|
+
A > 0 && /* @__PURE__ */ l(
|
|
30265
30265
|
"span",
|
|
30266
30266
|
{
|
|
30267
30267
|
className: `${a}-padding-handle`,
|
|
30268
|
-
style: { height:
|
|
30268
|
+
style: { height: me(A) },
|
|
30269
30269
|
"aria-hidden": "true"
|
|
30270
30270
|
}
|
|
30271
30271
|
)
|
|
@@ -30286,7 +30286,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30286
30286
|
bottom: 0,
|
|
30287
30287
|
left: 0,
|
|
30288
30288
|
width: "100%",
|
|
30289
|
-
height:
|
|
30289
|
+
height: me(Fe)
|
|
30290
30290
|
}
|
|
30291
30291
|
}
|
|
30292
30292
|
)
|
|
@@ -30307,7 +30307,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30307
30307
|
top: 0,
|
|
30308
30308
|
left: 0,
|
|
30309
30309
|
width: "100%",
|
|
30310
|
-
height:
|
|
30310
|
+
height: me(Pe)
|
|
30311
30311
|
}
|
|
30312
30312
|
}
|
|
30313
30313
|
),
|
|
@@ -30325,7 +30325,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30325
30325
|
style: {
|
|
30326
30326
|
top: 0,
|
|
30327
30327
|
left: 0,
|
|
30328
|
-
width:
|
|
30328
|
+
width: me(ye),
|
|
30329
30329
|
height: "100%"
|
|
30330
30330
|
}
|
|
30331
30331
|
}
|
|
@@ -30345,7 +30345,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30345
30345
|
style: {
|
|
30346
30346
|
top: 0,
|
|
30347
30347
|
right: 0,
|
|
30348
|
-
width:
|
|
30348
|
+
width: me(Ce),
|
|
30349
30349
|
height: "100%"
|
|
30350
30350
|
}
|
|
30351
30351
|
}
|
|
@@ -30355,7 +30355,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30355
30355
|
"div",
|
|
30356
30356
|
{
|
|
30357
30357
|
className: `${a}-padding-handle`,
|
|
30358
|
-
style: { height:
|
|
30358
|
+
style: { height: me(ve) }
|
|
30359
30359
|
}
|
|
30360
30360
|
),
|
|
30361
30361
|
/* @__PURE__ */ l(
|
|
@@ -30365,8 +30365,8 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30365
30365
|
style: {
|
|
30366
30366
|
...Be,
|
|
30367
30367
|
...at,
|
|
30368
|
-
paddingLeft:
|
|
30369
|
-
paddingRight:
|
|
30368
|
+
paddingLeft: me(de),
|
|
30369
|
+
paddingRight: me(ie)
|
|
30370
30370
|
},
|
|
30371
30371
|
children: /* @__PURE__ */ l("div", { className: st, children: /* @__PURE__ */ l(lo, { content: it }) })
|
|
30372
30372
|
}
|
|
@@ -30375,7 +30375,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30375
30375
|
"div",
|
|
30376
30376
|
{
|
|
30377
30377
|
className: `${a}-padding-handle`,
|
|
30378
|
-
style: { height:
|
|
30378
|
+
style: { height: me(ke) }
|
|
30379
30379
|
}
|
|
30380
30380
|
),
|
|
30381
30381
|
ct && Oe && /* @__PURE__ */ l(
|
|
@@ -30392,7 +30392,7 @@ function ux({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
30392
30392
|
bottom: 0,
|
|
30393
30393
|
left: 0,
|
|
30394
30394
|
width: "100%",
|
|
30395
|
-
height:
|
|
30395
|
+
height: me(g)
|
|
30396
30396
|
}
|
|
30397
30397
|
}
|
|
30398
30398
|
)
|
|
@@ -31718,11 +31718,11 @@ const ad = {
|
|
|
31718
31718
|
}, [e, a, i]), h = $e((S) => {
|
|
31719
31719
|
const C = c.current;
|
|
31720
31720
|
if (!e || !C || S.pointerType !== "touch" || C.pointerId !== S.pointerId) return;
|
|
31721
|
-
const H = S.clientX - C.startX,
|
|
31721
|
+
const H = S.clientX - C.startX, F = S.clientY - C.startY;
|
|
31722
31722
|
if (C.isLocked === null) {
|
|
31723
|
-
if (Math.abs(H) < sd && Math.abs(
|
|
31723
|
+
if (Math.abs(H) < sd && Math.abs(F) < sd)
|
|
31724
31724
|
return;
|
|
31725
|
-
if (
|
|
31725
|
+
if (F > 0 && F > Math.abs(H))
|
|
31726
31726
|
C.isLocked = !0, S.currentTarget.setPointerCapture(S.pointerId);
|
|
31727
31727
|
else {
|
|
31728
31728
|
C.isLocked = !1, m();
|
|
@@ -31731,7 +31731,7 @@ const ad = {
|
|
|
31731
31731
|
}
|
|
31732
31732
|
if (!C.isLocked) return;
|
|
31733
31733
|
S.preventDefault();
|
|
31734
|
-
const T = Math.max(0,
|
|
31734
|
+
const T = Math.max(0, F);
|
|
31735
31735
|
d.current = T, r(T);
|
|
31736
31736
|
}, [e, m]), w = $e((S) => {
|
|
31737
31737
|
const C = c.current;
|
|
@@ -31994,13 +31994,13 @@ const ad = {
|
|
|
31994
31994
|
title3MarginLeft: S = 0,
|
|
31995
31995
|
titleRowMarginBottom: C = 0,
|
|
31996
31996
|
titleHeaderLayout: H = "desktop",
|
|
31997
|
-
contentMarginTop:
|
|
31997
|
+
contentMarginTop: F,
|
|
31998
31998
|
iconMarginLeft: T
|
|
31999
|
-
} = n, $ = (R) => K(R, i ?? !1), z = c ?? n.thumnailSize ?? 0.03, v = $(z), Z = $(d), I = $(u ?? 0.02), N = $(f ?? 0), W = $(
|
|
32000
|
-
|
|
32001
|
-
const de = t[O], { title1: ie, title2: ve, title3: ke } = _x(de), we = wl("title1", bl(n, "title1"), i),
|
|
32002
|
-
() => Ox(e, ie, ve, ke, we,
|
|
32003
|
-
[e, O, ie, ve, ke, we,
|
|
31999
|
+
} = n, $ = (R) => K(R, i ?? !1), z = c ?? n.thumnailSize ?? 0.03, v = $(z), Z = $(d), I = $(u ?? 0.02), N = $(f ?? 0), W = $(F ?? 0), ee = Qr(W), se = $(T ?? 0), [O, le] = ne(0), A = q(O);
|
|
32000
|
+
A.current = O;
|
|
32001
|
+
const de = t[O], { title1: ie, title2: ve, title3: ke } = _x(de), we = wl("title1", bl(n, "title1"), i), pe = wl("title2", bl(n, "title2"), i), U = wl("title3", bl(n, "title3"), i), ce = H === "mobile", me = !o && (!i || r), be = me, Le = me, Fe = me, ye = mi(h), Ce = ye ? { "--image-aspect-ratio": Ka(h) } : void 0, Pe = !!(ie || ve || ke), g = He(
|
|
32002
|
+
() => Ox(e, ie, ve, ke, we, pe, U),
|
|
32003
|
+
[e, O, ie, ve, ke, we, pe, U]
|
|
32004
32004
|
), X = He(() => ({ title1Width: G, title2Width: k, title3Width: L }), [G, k, L]), J = He(() => g.map((R) => X[R.widthKey]), [g, X]), oe = He(() => Zs(g.length, J), [g.length, J]), he = He(() => bp(g.length, J), [g.length, J]), D = He(() => g.filter((R) => R.prefix === "title1"), [g]), P = He(() => g.filter((R) => R.prefix === "title2" || R.prefix === "title3"), [g]), te = He(() => cd(D, X), [D, X]), re = He(() => cd(P, X), [P, X]), ge = $e((R, ae) => {
|
|
32005
32005
|
const ue = g.indexOf(R);
|
|
32006
32006
|
if (!ce || ae === "single-row")
|
|
@@ -32358,7 +32358,7 @@ const ad = {
|
|
|
32358
32358
|
swipeHandlers: Dt,
|
|
32359
32359
|
dismissAreaStyle: Jt
|
|
32360
32360
|
} = xp({
|
|
32361
|
-
enabled:
|
|
32361
|
+
enabled: me ?? !1,
|
|
32362
32362
|
onClose: $t,
|
|
32363
32363
|
animMs: yr,
|
|
32364
32364
|
isBlockedTarget: Et
|
|
@@ -32415,7 +32415,7 @@ const ad = {
|
|
|
32415
32415
|
return dn === 0 ? ue : fe ? (ue + dn + t.length) % t.length : Math.max(0, Math.min(t.length - 1, ue + dn));
|
|
32416
32416
|
}, St = $e((R = !1) => {
|
|
32417
32417
|
if (E !== "on" || o) return;
|
|
32418
|
-
const ae = Te.current, ue =
|
|
32418
|
+
const ae = Te.current, ue = A.current, _e = Oe.current[ue];
|
|
32419
32419
|
if (!ae || !_e || ae.scrollWidth <= ae.clientWidth) return;
|
|
32420
32420
|
const Qe = ae.scrollLeft, gt = Qe + ae.clientWidth, _t = _e.offsetLeft, Vt = _t + _e.offsetWidth;
|
|
32421
32421
|
if (_t >= Qe && Vt <= gt) return;
|
|
@@ -32433,15 +32433,15 @@ const ad = {
|
|
|
32433
32433
|
en.current = !1, St(ae);
|
|
32434
32434
|
}));
|
|
32435
32435
|
}, [St]), xt = $e((R) => {
|
|
32436
|
-
if (R ===
|
|
32437
|
-
const ae =
|
|
32438
|
-
|
|
32436
|
+
if (R === A.current) return;
|
|
32437
|
+
const ae = A.current;
|
|
32438
|
+
A.current = R;
|
|
32439
32439
|
const ue = Math.abs(R - ae) > 1, _e = fe && t.length > 1 && (ae === t.length - 1 && R === 0 || ae === 0 && R === t.length - 1);
|
|
32440
32440
|
le(R), Bt(ue || _e);
|
|
32441
32441
|
}, [t.length, fe, Bt]), Rt = () => {
|
|
32442
32442
|
if (!qe.current || t.length === 0 || Zt.current !== null || ct.current.isActive && ct.current.hasMoved) return;
|
|
32443
32443
|
const R = qe.current.scrollLeft, ae = Re(R) % t.length;
|
|
32444
|
-
ae !==
|
|
32444
|
+
ae !== A.current && xt(ae);
|
|
32445
32445
|
}, on = () => {
|
|
32446
32446
|
Zt.current = null;
|
|
32447
32447
|
}, qt = (R) => {
|
|
@@ -32468,7 +32468,7 @@ const ad = {
|
|
|
32468
32468
|
const R = nt.current;
|
|
32469
32469
|
R && (R.style.transition = "", R.style.transform = "", R.style.willChange = "");
|
|
32470
32470
|
}, $n = (R, ae, ue, _e) => {
|
|
32471
|
-
ti(), R.scrollLeft = ae, bt.current = R.scrollLeft, Ut(), ue !== void 0 ? (
|
|
32471
|
+
ti(), R.scrollLeft = ae, bt.current = R.scrollLeft, Ut(), ue !== void 0 ? (A.current = ue, le(ue)) : Rt(), qt(!0), _e == null || _e();
|
|
32472
32472
|
}, co = (R, { behavior: ae = "smooth", activeIndex: ue, onComplete: _e } = {}) => {
|
|
32473
32473
|
const Qe = qe.current, gt = nt.current;
|
|
32474
32474
|
if (!Qe || !gt) return;
|
|
@@ -32522,7 +32522,7 @@ const ad = {
|
|
|
32522
32522
|
const ue = qe.current;
|
|
32523
32523
|
if (!ue || t.length === 0) return;
|
|
32524
32524
|
const _e = zt(R, ue.scrollLeft), Qe = et.current[_e];
|
|
32525
|
-
Qe && (ae === "smooth" ? Zt.current = R : Zt.current = null,
|
|
32525
|
+
Qe && (ae === "smooth" ? Zt.current = R : Zt.current = null, A.current = R, le(R), Bt(!0), co(Qe.offsetLeft, {
|
|
32526
32526
|
behavior: ae,
|
|
32527
32527
|
activeIndex: R,
|
|
32528
32528
|
onComplete: ae === "smooth" ? on : void 0
|
|
@@ -32563,7 +32563,7 @@ const ad = {
|
|
|
32563
32563
|
pt.current = {
|
|
32564
32564
|
startX: R.clientX,
|
|
32565
32565
|
startY: R.clientY,
|
|
32566
|
-
startActiveIndex:
|
|
32566
|
+
startActiveIndex: A.current
|
|
32567
32567
|
};
|
|
32568
32568
|
return;
|
|
32569
32569
|
}
|
|
@@ -32574,7 +32574,7 @@ const ad = {
|
|
|
32574
32574
|
isActive: !0,
|
|
32575
32575
|
startX: R.clientX,
|
|
32576
32576
|
scrollLeft: ae.scrollLeft,
|
|
32577
|
-
startActiveIndex:
|
|
32577
|
+
startActiveIndex: A.current,
|
|
32578
32578
|
hasMoved: !1
|
|
32579
32579
|
}, qt(!1), Ct(), ae.setPointerCapture(R.pointerId), yi();
|
|
32580
32580
|
const ue = (_e) => {
|
|
@@ -32591,7 +32591,7 @@ const ad = {
|
|
|
32591
32591
|
}
|
|
32592
32592
|
const ue = R.clientX - ct.current.startX;
|
|
32593
32593
|
Math.abs(ue) > Rx && (ct.current.hasMoved = !0, Ye(!0)), ct.current.hasMoved && (R.preventDefault(), ae.scrollLeft = ct.current.scrollLeft - ue, Ut(!0), Rt(), Ct());
|
|
32594
|
-
},
|
|
32594
|
+
}, Ie = (R) => {
|
|
32595
32595
|
if (Le) {
|
|
32596
32596
|
if (R.pointerType === "touch") {
|
|
32597
32597
|
R.type === "pointerup" ? zi(R.clientX, R.clientY) : pt.current = null;
|
|
@@ -32625,12 +32625,12 @@ const ad = {
|
|
|
32625
32625
|
}, [$t]), Ht(() => {
|
|
32626
32626
|
Wt();
|
|
32627
32627
|
}, [N, t.length, fe]), Ht(() => {
|
|
32628
|
-
o || Pn(
|
|
32628
|
+
o || Pn(A.current, "auto");
|
|
32629
32629
|
}, [N, o]), Ht(() => {
|
|
32630
32630
|
Pn(0, "auto");
|
|
32631
32631
|
}, [t.length, fe]), Me(() => {
|
|
32632
32632
|
const R = qe.current;
|
|
32633
|
-
if (!R || o || !
|
|
32633
|
+
if (!R || o || !me) return;
|
|
32634
32634
|
const ae = (ue) => {
|
|
32635
32635
|
if (ue.preventDefault(), Math.abs(ue.deltaY) <= Math.abs(ue.deltaX)) return;
|
|
32636
32636
|
const _e = ue.deltaMode === 1 ? Px : ue.deltaMode === 2 ? R.clientHeight : 1, Qe = ue.deltaY * _e * Lx;
|
|
@@ -32645,7 +32645,7 @@ const ad = {
|
|
|
32645
32645
|
return R.addEventListener("wheel", ae, { passive: !1 }), () => {
|
|
32646
32646
|
R.removeEventListener("wheel", ae), fn();
|
|
32647
32647
|
};
|
|
32648
|
-
}, [o,
|
|
32648
|
+
}, [o, me, fe]), Me(() => {
|
|
32649
32649
|
const R = qe.current;
|
|
32650
32650
|
if (!R) return;
|
|
32651
32651
|
const ae = () => {
|
|
@@ -32702,8 +32702,8 @@ const ad = {
|
|
|
32702
32702
|
"data-mouse-dragging": yt ? "true" : "false",
|
|
32703
32703
|
onPointerDown: uo,
|
|
32704
32704
|
onPointerMove: Or,
|
|
32705
|
-
onPointerUp:
|
|
32706
|
-
onPointerCancel:
|
|
32705
|
+
onPointerUp: Ie,
|
|
32706
|
+
onPointerCancel: Ie,
|
|
32707
32707
|
onLostPointerCapture: tt,
|
|
32708
32708
|
children: /* @__PURE__ */ l("div", { ref: nt, className: `${e}-lightbox-strip-track`, style: { gap: N }, children: lt.map((R, ae) => {
|
|
32709
32709
|
const ue = R.image.objectFit ?? "contain", _e = ae % t.length, Qe = Math.floor(ae / t.length), gt = Qr(N), _t = `calc(-0.5 * (${gt} + ${N}))`;
|
|
@@ -32786,7 +32786,7 @@ const ad = {
|
|
|
32786
32786
|
)
|
|
32787
32787
|
}
|
|
32788
32788
|
),
|
|
32789
|
-
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "row", width: "100%", flex: 1, minHeight: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l("div", { className: `${e}-lightbox-content-area${ce ? ` ${e}-lightbox-content-area-stacked` : ""}`, children: (
|
|
32789
|
+
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "row", width: "100%", flex: 1, minHeight: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l("div", { className: `${e}-lightbox-content-area${ce ? ` ${e}-lightbox-content-area-stacked` : ""}`, children: (Pe || y) && /* @__PURE__ */ l("div", { className: `${e}-header ${ce ? `${e}-header-two-row` : `${e}-header-single-row`}`, children: ce ? dt() : Pe || y ? mt() : null }) }) })
|
|
32790
32790
|
]
|
|
32791
32791
|
}
|
|
32792
32792
|
),
|
|
@@ -32830,7 +32830,7 @@ const ad = {
|
|
|
32830
32830
|
type: "button",
|
|
32831
32831
|
className: `${e}-thumb`,
|
|
32832
32832
|
"data-active": O === _e ? "true" : "false",
|
|
32833
|
-
onClick: () =>
|
|
32833
|
+
onClick: () => me && b === "click" && Pn(_e),
|
|
32834
32834
|
onMouseEnter: () => Fe && b === "hover" && Pn(_e),
|
|
32835
32835
|
"aria-label": ue.image.name ? `View ${ue.image.name}` : `View image ${_e + 1}`,
|
|
32836
32836
|
"aria-current": O === _e ? "true" : void 0,
|
|
@@ -34564,26 +34564,26 @@ const Kx = Wx(), Yx = {
|
|
|
34564
34564
|
countCloseGap: S = 0,
|
|
34565
34565
|
closeIcon: C,
|
|
34566
34566
|
closeIconMaxWidth: H,
|
|
34567
|
-
closeIconColor:
|
|
34567
|
+
closeIconColor: F,
|
|
34568
34568
|
closeIconHoverColor: T,
|
|
34569
34569
|
contentMarginTop: $ = 0,
|
|
34570
34570
|
iconMarginRight: z = 0
|
|
34571
|
-
} = n, v = $e((
|
|
34572
|
-
const
|
|
34573
|
-
if (!
|
|
34574
|
-
const tt =
|
|
34575
|
-
if (!tt) return
|
|
34576
|
-
const R = Array.from(tt.children).reduce((ae, ue) => !(ue instanceof HTMLElement) || ue.contains(
|
|
34571
|
+
} = n, v = $e((Ie) => K(Ie, i ?? !1), [i]), Z = v(m ?? 0), I = `${x}%`, N = `${b}%`, W = v(S), ee = v($), se = v(z), O = eo("title1", Qi(n, "title1"), i), le = eo("title2", Qi(n, "title2"), i), A = eo("title3", Qi(n, "title3"), i), de = eo("count", Qi(n, "count"), i), ie = j === "mobile", ve = !i || !!r, ke = !o && (!i || !!r), we = He(() => ya(t, f), [t, f]), [pe, U] = ne(a), ce = we[pe], me = ce == null ? void 0 : ce.entry, [be, Le] = ne(!1), [Fe, ye] = ne(null), [Ce, Pe] = ne(!1), [g, X] = ne(null), [J, oe] = ne(!1), [he, D] = ne(0), [P, te] = ne(), [re, ge] = ne(), [B, Ee] = ne(null), Se = q(null), Q = q(0), Be = q(0), Ve = q(0), st = q(!1), Je = q(null), at = q(null), rt = q(null), Ue = q(null), xe = q(null), ze = q(null), qe = q(null), nt = $e(() => {
|
|
34572
|
+
const Ie = at.current;
|
|
34573
|
+
if (!Ie) return;
|
|
34574
|
+
const tt = Ie.closest(`.${e}-lightbox-content-area`);
|
|
34575
|
+
if (!tt) return Ie.getBoundingClientRect().width;
|
|
34576
|
+
const R = Array.from(tt.children).reduce((ae, ue) => !(ue instanceof HTMLElement) || ue.contains(Ie) ? ae : ae + ue.getBoundingClientRect().width, 0);
|
|
34577
34577
|
return tt.getBoundingClientRect().width - R;
|
|
34578
34578
|
}, [e]), Te = $e(() => {
|
|
34579
34579
|
Se.current && (clearTimeout(Se.current), Se.current = null);
|
|
34580
|
-
}, []), Oe = $e((
|
|
34581
|
-
|
|
34580
|
+
}, []), Oe = $e((Ie) => {
|
|
34581
|
+
Ie === Q.current && (X(null), oe(!1));
|
|
34582
34582
|
}, []), et = $e(() => {
|
|
34583
34583
|
o || st.current || (st.current = !0, d == null || d(), Le(!1), Je.current = setTimeout(() => {
|
|
34584
34584
|
u();
|
|
34585
34585
|
}, 300));
|
|
34586
|
-
}, [o, d, u]), it = $e((
|
|
34586
|
+
}, [o, d, u]), it = $e((Ie) => !!(Ie.closest("[data-controls]") || Ie.closest(`.${e}-close-icon`)), [e]), {
|
|
34587
34587
|
isSwipeDragging: pt,
|
|
34588
34588
|
backdropStyle: ct,
|
|
34589
34589
|
mediaAreaStyle: je,
|
|
@@ -34595,16 +34595,16 @@ const Kx = Wx(), Yx = {
|
|
|
34595
34595
|
onClose: et,
|
|
34596
34596
|
animMs: 300,
|
|
34597
34597
|
isBlockedTarget: it
|
|
34598
|
-
}), Ge = $e((
|
|
34599
|
-
s && tp(
|
|
34600
|
-
}, [s, c]), Ze = $e((
|
|
34601
|
-
if (
|
|
34602
|
-
return
|
|
34603
|
-
}, []), ht = $e((
|
|
34598
|
+
}), Ge = $e((Ie) => {
|
|
34599
|
+
s && tp(Ie + 1, c, !0);
|
|
34600
|
+
}, [s, c]), Ze = $e((Ie) => {
|
|
34601
|
+
if (Ie)
|
|
34602
|
+
return Ie.getBoundingClientRect().height;
|
|
34603
|
+
}, []), ht = $e((Ie) => {
|
|
34604
34604
|
if (we.length === 0) return;
|
|
34605
|
-
const tt = (
|
|
34606
|
-
if (tt ===
|
|
34607
|
-
const R = we[
|
|
34605
|
+
const tt = (Ie % we.length + we.length) % we.length;
|
|
34606
|
+
if (tt === pe) return;
|
|
34607
|
+
const R = we[pe], ae = we[tt];
|
|
34608
34608
|
Q.current += 1;
|
|
34609
34609
|
const ue = Q.current, _e = E === "fade" && Wc(R == null ? void 0 : R.entry) !== Wc(ae == null ? void 0 : ae.entry), Qe = Ze(rt.current), gt = _e ? (() => {
|
|
34610
34610
|
const Vt = nt();
|
|
@@ -34617,65 +34617,65 @@ const Kx = Wx(), Yx = {
|
|
|
34617
34617
|
Qe ?? 0,
|
|
34618
34618
|
(gt == null ? void 0 : gt.measuredIncomingTitlesHeight) ?? 0
|
|
34619
34619
|
) || void 0;
|
|
34620
|
-
D(ue), X(
|
|
34621
|
-
ye(null),
|
|
34622
|
-
}, 400)) : (Te(), ye(null),
|
|
34623
|
-
}, [
|
|
34620
|
+
D(ue), X(pe), oe(!0), U(tt), Ge(tt), Ve.current = tt, _e ? (Te(), _t && te(_t), gt != null && gt.incomingTitlesMeasureWidth && ge(gt.incomingTitlesMeasureWidth), ye((R == null ? void 0 : R.entryIndex) ?? null), Pe(!0), Be.current = ae.entryIndex, Se.current = setTimeout(() => {
|
|
34621
|
+
ye(null), Pe(!1), te(void 0), ge(void 0), Ee(null), Se.current = null;
|
|
34622
|
+
}, 400)) : (Te(), ye(null), Pe(!1), te(void 0), ge(void 0), Ee(null), Be.current = ae.entryIndex);
|
|
34623
|
+
}, [pe, Te, nt, Ze, we, Ge, E]), fe = $e(() => {
|
|
34624
34624
|
qe.current = null;
|
|
34625
|
-
}, []), Ae = $e((
|
|
34626
|
-
!ve || we.length <= 1 ||
|
|
34627
|
-
startX:
|
|
34628
|
-
startY:
|
|
34629
|
-
pointerId:
|
|
34625
|
+
}, []), Ae = $e((Ie) => {
|
|
34626
|
+
!ve || we.length <= 1 || Ie.pointerType === "mouse" && Ie.button !== 0 || Ie.target.closest("[data-controls]") || (qe.current = {
|
|
34627
|
+
startX: Ie.clientX,
|
|
34628
|
+
startY: Ie.clientY,
|
|
34629
|
+
pointerId: Ie.pointerId
|
|
34630
34630
|
});
|
|
34631
|
-
}, [ve, we.length]), lt = $e((
|
|
34631
|
+
}, [ve, we.length]), lt = $e((Ie) => {
|
|
34632
34632
|
var Vt;
|
|
34633
|
-
if (!ve || we.length <= 1 ||
|
|
34633
|
+
if (!ve || we.length <= 1 || Ie.pointerType === "mouse" && Ie.button !== 0) return;
|
|
34634
34634
|
if (pt) {
|
|
34635
34635
|
fe();
|
|
34636
34636
|
return;
|
|
34637
34637
|
}
|
|
34638
34638
|
const tt = qe.current;
|
|
34639
|
-
if (!tt || tt.pointerId !==
|
|
34640
|
-
const ae =
|
|
34639
|
+
if (!tt || tt.pointerId !== Ie.pointerId || (fe(), Ie.target.closest("[data-controls]"))) return;
|
|
34640
|
+
const ae = Ie.clientX - tt.startX, ue = Ie.clientY - tt.startY, _e = Math.abs(ae), Qe = Math.abs(ue);
|
|
34641
34641
|
if (_e >= dv && _e > Qe) {
|
|
34642
|
-
ht(ae > 0 ?
|
|
34642
|
+
ht(ae > 0 ? pe - 1 : pe + 1);
|
|
34643
34643
|
return;
|
|
34644
34644
|
}
|
|
34645
34645
|
if (_e > Fc || Qe > Fc) return;
|
|
34646
34646
|
const gt = (Vt = Ue.current) == null ? void 0 : Vt.getBoundingClientRect(), _t = gt ? gt.left + gt.width / 2 : window.innerWidth / 2;
|
|
34647
|
-
ht(
|
|
34648
|
-
}, [
|
|
34647
|
+
ht(Ie.clientX < _t ? pe - 1 : pe + 1);
|
|
34648
|
+
}, [pe, ve, ht, pt, fe, we.length]), yt = $e((Ie) => {
|
|
34649
34649
|
const tt = qe.current;
|
|
34650
|
-
(tt == null ? void 0 : tt.pointerId) ===
|
|
34650
|
+
(tt == null ? void 0 : tt.pointerId) === Ie.pointerId && fe();
|
|
34651
34651
|
}, [fe]);
|
|
34652
34652
|
Ys(), Me(() => {
|
|
34653
34653
|
ze.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
34654
|
-
const
|
|
34654
|
+
const Ie = requestAnimationFrame(() => {
|
|
34655
34655
|
Le(!0), requestAnimationFrame(() => {
|
|
34656
34656
|
xe.current ? xe.current.focus() : Ue.current && Ue.current.focus();
|
|
34657
34657
|
});
|
|
34658
34658
|
});
|
|
34659
34659
|
return () => {
|
|
34660
|
-
cancelAnimationFrame(
|
|
34660
|
+
cancelAnimationFrame(Ie), Je.current && clearTimeout(Je.current), Se.current && clearTimeout(Se.current);
|
|
34661
34661
|
const tt = ze.current;
|
|
34662
34662
|
tt && document.contains(tt) && tt.focus({ preventScroll: !0 });
|
|
34663
34663
|
};
|
|
34664
34664
|
}, []), Me(() => {
|
|
34665
|
-
var
|
|
34666
|
-
E !== "fade" && (Be.current = ((
|
|
34667
|
-
}, [
|
|
34668
|
-
const
|
|
34665
|
+
var Ie;
|
|
34666
|
+
E !== "fade" && (Be.current = ((Ie = we[pe]) == null ? void 0 : Ie.entryIndex) ?? 0, Te(), ye(null), Pe(!1), te(void 0), ge(void 0));
|
|
34667
|
+
}, [pe, Te, we, E]), Me(() => {
|
|
34668
|
+
const Ie = (tt) => {
|
|
34669
34669
|
if (tt.key === "Escape") {
|
|
34670
34670
|
et();
|
|
34671
34671
|
return;
|
|
34672
34672
|
}
|
|
34673
34673
|
if (tt.key === "ArrowLeft" && we.length > 1) {
|
|
34674
|
-
ht(
|
|
34674
|
+
ht(pe - 1);
|
|
34675
34675
|
return;
|
|
34676
34676
|
}
|
|
34677
34677
|
if (tt.key === "ArrowRight" && we.length > 1) {
|
|
34678
|
-
ht(
|
|
34678
|
+
ht(pe + 1);
|
|
34679
34679
|
return;
|
|
34680
34680
|
}
|
|
34681
34681
|
if (tt.key === "Tab" && Ue.current) {
|
|
@@ -34689,18 +34689,18 @@ const Kx = Wx(), Yx = {
|
|
|
34689
34689
|
tt.shiftKey ? (Qe === ue || !Ue.current.contains(Qe)) && (tt.preventDefault(), _e.focus()) : (Qe === _e || !Ue.current.contains(Qe)) && (tt.preventDefault(), ue.focus());
|
|
34690
34690
|
}
|
|
34691
34691
|
};
|
|
34692
|
-
return window.addEventListener("keydown",
|
|
34693
|
-
}, [ht, et,
|
|
34694
|
-
Te(), Q.current = 0, D(0), X(null), oe(!1), ye(null),
|
|
34692
|
+
return window.addEventListener("keydown", Ie), () => window.removeEventListener("keydown", Ie);
|
|
34693
|
+
}, [ht, et, pe, we.length]), Ht(() => {
|
|
34694
|
+
Te(), Q.current = 0, D(0), X(null), oe(!1), ye(null), Pe(!1), te(void 0), ge(void 0), Ee(null), U((Ie) => {
|
|
34695
34695
|
const tt = Math.max(0, we.length - 1);
|
|
34696
|
-
return Math.min(
|
|
34696
|
+
return Math.min(Ie, tt);
|
|
34697
34697
|
});
|
|
34698
34698
|
}, [Te, t.length, f, we.length]), Ht(() => {
|
|
34699
34699
|
var R;
|
|
34700
|
-
const
|
|
34700
|
+
const Ie = Math.max(0, we.length - 1), tt = Math.min(Math.max(0, a), Ie);
|
|
34701
34701
|
Ve.current = tt, Be.current = ((R = we[tt]) == null ? void 0 : R.entryIndex) ?? 0, U(tt);
|
|
34702
34702
|
}, [a]);
|
|
34703
|
-
const Ye = Fe !== null ? t[Fe] : null, Lt = g !== null ? we[g] : null, Ft = (
|
|
34703
|
+
const Ye = Fe !== null ? t[Fe] : null, Lt = g !== null ? we[g] : null, Ft = (me == null ? void 0 : me.title1) || (me == null ? void 0 : me.title2) || (me == null ? void 0 : me.title3) || (Ye == null ? void 0 : Ye.title1) || (Ye == null ? void 0 : Ye.title2) || (Ye == null ? void 0 : Ye.title3), Ot = vv(f, we, t), It = C !== null, Zt = Ft || Ot || It, Yt = Ot && It ? { gap: W } : void 0, en = `${e}-titles-stack${ie ? ` ${e}-titles-stack-stacked` : ""}`, tn = `${e}-titles-layer-out${ie ? ` ${e}-titles-layer-out-stacked` : ""}`, Nt = `${e}-titles-layer-out`, Kt = (G ?? 0) > 0 || o, pn = v(M), Ct = He(
|
|
34704
34704
|
() => ({
|
|
34705
34705
|
title1Width: h ?? ko.title1Width,
|
|
34706
34706
|
title2Width: w ?? ko.title2Width,
|
|
@@ -34711,10 +34711,10 @@ const Kx = Wx(), Yx = {
|
|
|
34711
34711
|
title2MarginLeft: k,
|
|
34712
34712
|
title3MarginLeft: L
|
|
34713
34713
|
}), [k, L]), Ne = He(
|
|
34714
|
-
() =>
|
|
34715
|
-
[e,
|
|
34714
|
+
() => me ? Ri(e, me, O, le, A) : [],
|
|
34715
|
+
[e, me, O, le, A]
|
|
34716
34716
|
), ot = He(
|
|
34717
|
-
() => Ne.map((
|
|
34717
|
+
() => Ne.map((Ie) => Ct[Ie.widthKey]),
|
|
34718
34718
|
[Ne, Ct]
|
|
34719
34719
|
), dt = He(
|
|
34720
34720
|
() => Ho(Ne.length, ot),
|
|
@@ -34723,10 +34723,10 @@ const Kx = Wx(), Yx = {
|
|
|
34723
34723
|
() => Tr(Ne.length, ot),
|
|
34724
34724
|
[Ne.length, ot]
|
|
34725
34725
|
), Et = He(
|
|
34726
|
-
() => Ne.filter((
|
|
34726
|
+
() => Ne.filter((Ie) => Ie.prefix === "title1"),
|
|
34727
34727
|
[Ne]
|
|
34728
34728
|
), Pt = He(
|
|
34729
|
-
() => Ne.filter((
|
|
34729
|
+
() => Ne.filter((Ie) => Ie.prefix === "title2" || Ie.prefix === "title3"),
|
|
34730
34730
|
[Ne]
|
|
34731
34731
|
), wt = He(
|
|
34732
34732
|
() => ki(Et, Ct),
|
|
@@ -34734,8 +34734,8 @@ const Kx = Wx(), Yx = {
|
|
|
34734
34734
|
), At = He(
|
|
34735
34735
|
() => ki(Pt, Ct),
|
|
34736
34736
|
[Pt, Ct]
|
|
34737
|
-
), Xt = $e((
|
|
34738
|
-
const R = Ne.findIndex((ue) => ue.prefix ===
|
|
34737
|
+
), Xt = $e((Ie, tt) => {
|
|
34738
|
+
const R = Ne.findIndex((ue) => ue.prefix === Ie.prefix);
|
|
34739
34739
|
if (!ie || tt === "single-row")
|
|
34740
34740
|
return {
|
|
34741
34741
|
effectiveWidth: mt[R] ?? 0,
|
|
@@ -34743,14 +34743,14 @@ const Kx = Wx(), Yx = {
|
|
|
34743
34743
|
maxWidth: Tn(R, dt)
|
|
34744
34744
|
};
|
|
34745
34745
|
if (tt === "two-row-top") {
|
|
34746
|
-
const ue = Et.findIndex((_e) => _e.prefix ===
|
|
34746
|
+
const ue = Et.findIndex((_e) => _e.prefix === Ie.prefix);
|
|
34747
34747
|
return {
|
|
34748
34748
|
effectiveWidth: wt.effective[ue] ?? 0,
|
|
34749
34749
|
resolvedWidth: wt.resolved[ue] ?? 0,
|
|
34750
34750
|
maxWidth: Tn(ue, wt.resolved)
|
|
34751
34751
|
};
|
|
34752
34752
|
}
|
|
34753
|
-
const ae = Pt.findIndex((ue) => ue.prefix ===
|
|
34753
|
+
const ae = Pt.findIndex((ue) => ue.prefix === Ie.prefix);
|
|
34754
34754
|
return {
|
|
34755
34755
|
effectiveWidth: At.effective[ae] ?? 0,
|
|
34756
34756
|
resolvedWidth: At.resolved[ae] ?? 0,
|
|
@@ -34766,72 +34766,72 @@ const Kx = Wx(), Yx = {
|
|
|
34766
34766
|
wt,
|
|
34767
34767
|
ie
|
|
34768
34768
|
]), Dt = $e(
|
|
34769
|
-
(
|
|
34769
|
+
(Ie) => rp(
|
|
34770
34770
|
Ne,
|
|
34771
34771
|
dt,
|
|
34772
34772
|
$t,
|
|
34773
|
-
|
|
34773
|
+
Ie
|
|
34774
34774
|
) + (ie ? 0 : G ?? 0),
|
|
34775
34775
|
[Ne, dt, $t, ie, G]
|
|
34776
34776
|
), Jt = $e(
|
|
34777
34777
|
() => ie ? 0 : G ?? 0,
|
|
34778
34778
|
[ie, G]
|
|
34779
34779
|
), Wt = $e(
|
|
34780
|
-
(
|
|
34780
|
+
(Ie) => Pt.slice(0, Ie).reduce(
|
|
34781
34781
|
(tt, R, ae) => tt + (R.marginLeftKey ? $t[R.marginLeftKey] ?? 0 : 0) + (At.resolved[ae] ?? 0),
|
|
34782
34782
|
0
|
|
34783
34783
|
),
|
|
34784
34784
|
[Pt, At.resolved, $t]
|
|
34785
34785
|
), Ut = $e(
|
|
34786
|
-
(
|
|
34787
|
-
const tt = Pt[
|
|
34788
|
-
return Wt(
|
|
34786
|
+
(Ie) => {
|
|
34787
|
+
const tt = Pt[Ie];
|
|
34788
|
+
return Wt(Ie) + (tt.marginLeftKey ? $t[tt.marginLeftKey] ?? 0 : 0) + (At.resolved[Ie] ?? 0);
|
|
34789
34789
|
},
|
|
34790
34790
|
[Pt, At.resolved, Wt, $t]
|
|
34791
|
-
), zt = $e((
|
|
34791
|
+
), zt = $e((Ie, tt, R) => {
|
|
34792
34792
|
if (!ie || R === "single-row") {
|
|
34793
|
-
const gt =
|
|
34793
|
+
const gt = Ie.findIndex((un) => un.prefix === tt.prefix), _t = Ie.map((un) => Ct[un.widthKey]), Vt = Ho(Ie.length, _t);
|
|
34794
34794
|
return {
|
|
34795
|
-
effectiveWidth: Tr(
|
|
34795
|
+
effectiveWidth: Tr(Ie.length, _t)[gt] ?? 0,
|
|
34796
34796
|
resolvedWidth: Vt[gt] ?? 0,
|
|
34797
34797
|
maxWidth: Tn(gt, Vt)
|
|
34798
34798
|
};
|
|
34799
34799
|
}
|
|
34800
34800
|
if (R === "two-row-top") {
|
|
34801
|
-
const gt =
|
|
34801
|
+
const gt = Ie.filter((un) => un.prefix === "title1"), _t = gt.findIndex((un) => un.prefix === tt.prefix), { resolved: Vt, effective: dn } = ki(gt, Ct);
|
|
34802
34802
|
return {
|
|
34803
34803
|
effectiveWidth: dn[_t] ?? 0,
|
|
34804
34804
|
resolvedWidth: Vt[_t] ?? 0,
|
|
34805
34805
|
maxWidth: Tn(_t, Vt)
|
|
34806
34806
|
};
|
|
34807
34807
|
}
|
|
34808
|
-
const ae =
|
|
34808
|
+
const ae = Ie.filter((gt) => gt.prefix === "title2" || gt.prefix === "title3"), ue = ae.findIndex((gt) => gt.prefix === tt.prefix), { resolved: _e, effective: Qe } = ki(ae, Ct);
|
|
34809
34809
|
return {
|
|
34810
34810
|
effectiveWidth: Qe[ue] ?? 0,
|
|
34811
34811
|
resolvedWidth: _e[ue] ?? 0,
|
|
34812
34812
|
maxWidth: Tn(ue, _e)
|
|
34813
34813
|
};
|
|
34814
|
-
}, [Ct, ie]), vt = (
|
|
34815
|
-
const ae =
|
|
34814
|
+
}, [Ct, ie]), vt = (Ie, tt, R) => {
|
|
34815
|
+
const ae = Ie.marginLeftKey ? $t[Ie.marginLeftKey] ?? 0 : 0, {
|
|
34816
34816
|
effectiveWidth: ue,
|
|
34817
34817
|
resolvedWidth: _e,
|
|
34818
34818
|
maxWidth: Qe
|
|
34819
|
-
} = R ?? Xt(
|
|
34819
|
+
} = R ?? Xt(Ie, tt), gt = Math.max(ae, si), _t = o && tt === "two-row-top";
|
|
34820
34820
|
return /* @__PURE__ */ Y(
|
|
34821
34821
|
"div",
|
|
34822
34822
|
{
|
|
34823
34823
|
className: `${e}-title-cell`,
|
|
34824
|
-
"data-title":
|
|
34824
|
+
"data-title": Ie.prefix,
|
|
34825
34825
|
style: {
|
|
34826
34826
|
width: v(ue),
|
|
34827
34827
|
...ae > 0 ? { marginLeft: v(ae) } : {}
|
|
34828
34828
|
},
|
|
34829
34829
|
children: [
|
|
34830
|
-
/* @__PURE__ */ l("p", { className:
|
|
34831
|
-
_t &&
|
|
34830
|
+
/* @__PURE__ */ l("p", { className: Ie.className, style: Ie.style, children: Ie.text }),
|
|
34831
|
+
_t && Ie.marginLeftKey ? /* @__PURE__ */ l(
|
|
34832
34832
|
"div",
|
|
34833
34833
|
{
|
|
34834
|
-
"data-controls":
|
|
34834
|
+
"data-controls": Ie.marginLeftKey,
|
|
34835
34835
|
"data-controls-axis": "x",
|
|
34836
34836
|
"data-controls-min": "0",
|
|
34837
34837
|
"data-controls-max-fraction": String(_e),
|
|
@@ -34848,7 +34848,7 @@ const Kx = Wx(), Yx = {
|
|
|
34848
34848
|
_t ? /* @__PURE__ */ l(
|
|
34849
34849
|
"div",
|
|
34850
34850
|
{
|
|
34851
|
-
"data-controls":
|
|
34851
|
+
"data-controls": Ie.widthKey,
|
|
34852
34852
|
"data-controls-axis": "x",
|
|
34853
34853
|
"data-controls-max-fraction": String(Qe),
|
|
34854
34854
|
"data-controls-variant": "column-width",
|
|
@@ -34865,10 +34865,10 @@ const Kx = Wx(), Yx = {
|
|
|
34865
34865
|
) : null
|
|
34866
34866
|
]
|
|
34867
34867
|
},
|
|
34868
|
-
|
|
34868
|
+
Ie.className
|
|
34869
34869
|
);
|
|
34870
|
-
}, _ = (
|
|
34871
|
-
const tt = Ne.findIndex((ue) => ue.prefix === "title1"), R = tt >= 0 ? dt[tt] : Ct.title1Width, ae =
|
|
34870
|
+
}, _ = (Ie = "two-row") => {
|
|
34871
|
+
const tt = Ne.findIndex((ue) => ue.prefix === "title1"), R = tt >= 0 ? dt[tt] : Ct.title1Width, ae = Ie === "two-row" && o;
|
|
34872
34872
|
return /* @__PURE__ */ l(
|
|
34873
34873
|
"div",
|
|
34874
34874
|
{
|
|
@@ -34901,7 +34901,7 @@ const Kx = Wx(), Yx = {
|
|
|
34901
34901
|
style: de,
|
|
34902
34902
|
"aria-live": "polite",
|
|
34903
34903
|
"aria-atomic": "true",
|
|
34904
|
-
children: yv(we,
|
|
34904
|
+
children: yv(we, pe, f, t)
|
|
34905
34905
|
}
|
|
34906
34906
|
), De = () => Ot ? o && It ? /* @__PURE__ */ Y("div", { className: `${e}-text-bar-cell`, style: { flexShrink: 0 }, children: [
|
|
34907
34907
|
Ke(),
|
|
@@ -34943,7 +34943,7 @@ const Kx = Wx(), Yx = {
|
|
|
34943
34943
|
children: [
|
|
34944
34944
|
Ot || Ft ? Re() : null,
|
|
34945
34945
|
Kt ? _("single-row") : null,
|
|
34946
|
-
qt(
|
|
34946
|
+
qt(me),
|
|
34947
34947
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
|
|
34948
34948
|
St(),
|
|
34949
34949
|
Pn()
|
|
@@ -34979,7 +34979,7 @@ const Kx = Wx(), Yx = {
|
|
|
34979
34979
|
height: "auto"
|
|
34980
34980
|
},
|
|
34981
34981
|
"aria-hidden": "true",
|
|
34982
|
-
children: ti(B ||
|
|
34982
|
+
children: ti(B || me)
|
|
34983
34983
|
}
|
|
34984
34984
|
),
|
|
34985
34985
|
/* @__PURE__ */ Y(
|
|
@@ -34995,7 +34995,7 @@ const Kx = Wx(), Yx = {
|
|
|
34995
34995
|
},
|
|
34996
34996
|
children: [
|
|
34997
34997
|
Ye && Ce ? /* @__PURE__ */ l("div", { className: `${tn} ${e}-titles-fade-out`, children: ti(Ye) }) : null,
|
|
34998
|
-
/* @__PURE__ */ l("div", { className: `${e}-titles-layer-in${Ce ? ` ${e}-titles-layer-in-fading ${e}-titles-fade-in` : ""}`, children: ti(
|
|
34998
|
+
/* @__PURE__ */ l("div", { className: `${e}-titles-layer-in${Ce ? ` ${e}-titles-layer-in-fading ${e}-titles-fade-in` : ""}`, children: ti(me) })
|
|
34999
34999
|
]
|
|
35000
35000
|
}
|
|
35001
35001
|
)
|
|
@@ -35029,8 +35029,8 @@ const Kx = Wx(), Yx = {
|
|
|
35029
35029
|
wn,
|
|
35030
35030
|
{
|
|
35031
35031
|
url: C ?? "",
|
|
35032
|
-
fill:
|
|
35033
|
-
hoverFill: i && !r ?
|
|
35032
|
+
fill: F,
|
|
35033
|
+
hoverFill: i && !r ? F : T,
|
|
35034
35034
|
className: `${e}-close-icon-img`
|
|
35035
35035
|
}
|
|
35036
35036
|
)
|
|
@@ -35055,7 +35055,7 @@ const Kx = Wx(), Yx = {
|
|
|
35055
35055
|
)
|
|
35056
35056
|
]
|
|
35057
35057
|
}
|
|
35058
|
-
), on = (
|
|
35058
|
+
), on = (Ie, tt) => /* @__PURE__ */ Y(
|
|
35059
35059
|
"div",
|
|
35060
35060
|
{
|
|
35061
35061
|
className: `${e}-titles-row-top`,
|
|
@@ -35072,33 +35072,33 @@ const Kx = Wx(), Yx = {
|
|
|
35072
35072
|
minWidth: 0,
|
|
35073
35073
|
minHeight: tt
|
|
35074
35074
|
},
|
|
35075
|
-
children:
|
|
35075
|
+
children: Ie
|
|
35076
35076
|
}
|
|
35077
35077
|
) : /* @__PURE__ */ Y(ft, { children: [
|
|
35078
|
-
|
|
35078
|
+
Ie,
|
|
35079
35079
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" })
|
|
35080
35080
|
] }),
|
|
35081
35081
|
St()
|
|
35082
35082
|
]
|
|
35083
35083
|
}
|
|
35084
|
-
), qt = (
|
|
35085
|
-
if (!
|
|
35086
|
-
const tt = Ri(e,
|
|
35084
|
+
), qt = (Ie) => {
|
|
35085
|
+
if (!Ie) return null;
|
|
35086
|
+
const tt = Ri(e, Ie, O, le, A);
|
|
35087
35087
|
return /* @__PURE__ */ l(ft, { children: tt.map((R) => vt(
|
|
35088
35088
|
R,
|
|
35089
35089
|
"single-row",
|
|
35090
35090
|
zt(tt, R, "single-row")
|
|
35091
35091
|
)) });
|
|
35092
|
-
}, hn = (
|
|
35093
|
-
if (!
|
|
35094
|
-
const tt = Ri(e,
|
|
35092
|
+
}, hn = (Ie) => {
|
|
35093
|
+
if (!Ie) return null;
|
|
35094
|
+
const tt = Ri(e, Ie, O, le, A), R = tt.find((ae) => ae.prefix === "title1");
|
|
35095
35095
|
return R ? vt(
|
|
35096
35096
|
R,
|
|
35097
35097
|
"two-row-top",
|
|
35098
35098
|
zt(tt, R, "two-row-top")
|
|
35099
35099
|
) : null;
|
|
35100
|
-
}, fn = (
|
|
35101
|
-
const R =
|
|
35100
|
+
}, fn = (Ie, tt = !1) => {
|
|
35101
|
+
const R = Ie ? Ri(e, Ie, O, le, A) : [], ae = R.filter((Qe) => Qe.prefix === "title2" || Qe.prefix === "title3"), ue = o && tt;
|
|
35102
35102
|
return ae.length > 0 || ue || (M ?? 0) > 0 ? /* @__PURE__ */ Y("div", { className: `${e}-titles-row-bottom-wrap`, children: [
|
|
35103
35103
|
ae.length > 0 ? /* @__PURE__ */ Y("div", { className: `${e}-titles-row-bottom`, children: [
|
|
35104
35104
|
ae.map((Qe) => vt(
|
|
@@ -35127,12 +35127,12 @@ const Kx = Wx(), Yx = {
|
|
|
35127
35127
|
}
|
|
35128
35128
|
) : null
|
|
35129
35129
|
] }) : null;
|
|
35130
|
-
}, ei = (
|
|
35131
|
-
on(hn(
|
|
35132
|
-
fn(
|
|
35133
|
-
] }), ti = (
|
|
35134
|
-
const
|
|
35135
|
-
const ae = G ?? 0, ue =
|
|
35130
|
+
}, ei = (Ie, tt = !1) => /* @__PURE__ */ Y(ft, { children: [
|
|
35131
|
+
on(hn(Ie)),
|
|
35132
|
+
fn(Ie, tt)
|
|
35133
|
+
] }), ti = (Ie) => ie ? /* @__PURE__ */ l("div", { className: `${e}-titles-row-two-row`, children: ei(Ie) }) : Ie ? /* @__PURE__ */ l("div", { className: `${e}-titles-row`, style: { width: "100%" }, children: qt(Ie) }) : null, $n = () => {
|
|
35134
|
+
const Ie = ie ? -1 : Ne.findIndex((ae) => ae.prefix === "title1"), tt = !ie && (o || (G ?? 0) > 0) ? (() => {
|
|
35135
|
+
const ae = G ?? 0, ue = Ie >= 0 ? dt[Ie] : Ct.title1Width, _e = Math.max(ae, si);
|
|
35136
35136
|
return /* @__PURE__ */ l(
|
|
35137
35137
|
"div",
|
|
35138
35138
|
{
|
|
@@ -35179,12 +35179,12 @@ const Kx = Wx(), Yx = {
|
|
|
35179
35179
|
);
|
|
35180
35180
|
});
|
|
35181
35181
|
return tt ? [tt, ...R] : R;
|
|
35182
|
-
}, co = () => Ne.map((
|
|
35182
|
+
}, co = () => Ne.map((Ie, tt) => {
|
|
35183
35183
|
const R = Tn(tt, dt), ue = Dt(tt) - Fn / 2;
|
|
35184
35184
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
35185
35185
|
"div",
|
|
35186
35186
|
{
|
|
35187
|
-
"data-controls":
|
|
35187
|
+
"data-controls": Ie.widthKey,
|
|
35188
35188
|
"data-controls-axis": "x",
|
|
35189
35189
|
"data-controls-max-fraction": String(R),
|
|
35190
35190
|
"data-controls-variant": "column-width",
|
|
@@ -35198,14 +35198,14 @@ const Kx = Wx(), Yx = {
|
|
|
35198
35198
|
pointerEvents: "auto"
|
|
35199
35199
|
}
|
|
35200
35200
|
}
|
|
35201
|
-
) }, `${
|
|
35202
|
-
}), er = () => Pt.flatMap((
|
|
35203
|
-
if (!
|
|
35204
|
-
const R = $t[
|
|
35201
|
+
) }, `${Ie.widthKey}-junction`);
|
|
35202
|
+
}), er = () => Pt.flatMap((Ie, tt) => {
|
|
35203
|
+
if (!Ie.marginLeftKey) return [];
|
|
35204
|
+
const R = $t[Ie.marginLeftKey] ?? 0, ae = Wt(tt), ue = Math.max(R, si), { resolvedWidth: _e } = Xt(Ie, "two-row-bottom");
|
|
35205
35205
|
return /* @__PURE__ */ l(
|
|
35206
35206
|
"div",
|
|
35207
35207
|
{
|
|
35208
|
-
"data-controls":
|
|
35208
|
+
"data-controls": Ie.marginLeftKey,
|
|
35209
35209
|
"data-controls-axis": "x",
|
|
35210
35210
|
"data-controls-min": "0",
|
|
35211
35211
|
"data-controls-max-fraction": String(_e),
|
|
@@ -35218,14 +35218,14 @@ const Kx = Wx(), Yx = {
|
|
|
35218
35218
|
pointerEvents: "auto"
|
|
35219
35219
|
}
|
|
35220
35220
|
},
|
|
35221
|
-
|
|
35221
|
+
Ie.marginLeftKey
|
|
35222
35222
|
);
|
|
35223
|
-
}), tr = () => Pt.map((
|
|
35224
|
-
const { maxWidth: R } = Xt(
|
|
35223
|
+
}), tr = () => Pt.map((Ie, tt) => {
|
|
35224
|
+
const { maxWidth: R } = Xt(Ie, "two-row-bottom"), ue = Ut(tt) - Fn / 2;
|
|
35225
35225
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
35226
35226
|
"div",
|
|
35227
35227
|
{
|
|
35228
|
-
"data-controls":
|
|
35228
|
+
"data-controls": Ie.widthKey,
|
|
35229
35229
|
"data-controls-axis": "x",
|
|
35230
35230
|
"data-controls-max-fraction": String(R),
|
|
35231
35231
|
"data-controls-variant": "column-width",
|
|
@@ -35239,12 +35239,12 @@ const Kx = Wx(), Yx = {
|
|
|
35239
35239
|
pointerEvents: "auto"
|
|
35240
35240
|
}
|
|
35241
35241
|
}
|
|
35242
|
-
) }, `${
|
|
35242
|
+
) }, `${Ie.widthKey}-junction`);
|
|
35243
35243
|
}), Pn = () => !o || ie ? null : /* @__PURE__ */ Y(ft, { children: [
|
|
35244
35244
|
$n(),
|
|
35245
35245
|
co()
|
|
35246
|
-
] }), yi = (
|
|
35247
|
-
const tt = !
|
|
35246
|
+
] }), yi = (Ie) => {
|
|
35247
|
+
const tt = !Ie.objectFit && mi(y);
|
|
35248
35248
|
return {
|
|
35249
35249
|
className: `${e}-slide-image-cell${tt ? ` ${e}-slide-image-cell-cover` : ""}`,
|
|
35250
35250
|
style: {
|
|
@@ -35253,14 +35253,14 @@ const Kx = Wx(), Yx = {
|
|
|
35253
35253
|
...tt ? { "--image-aspect-ratio": Ka(y) } : {}
|
|
35254
35254
|
}
|
|
35255
35255
|
};
|
|
35256
|
-
}, ni = (
|
|
35256
|
+
}, ni = (Ie) => Ie.objectFit ? {
|
|
35257
35257
|
className: `${e}-slide-image ${e}-slide-image-custom`,
|
|
35258
|
-
style: { "--image-object-fit":
|
|
35259
|
-
} : mi(y) ? { className: `${e}-slide-image ${e}-slide-image-cover` } : { className: `${e}-slide-image ${e}-slide-image-fit` }, In = (
|
|
35260
|
-
if (
|
|
35261
|
-
const tt =
|
|
35262
|
-
if (
|
|
35263
|
-
const ue =
|
|
35258
|
+
style: { "--image-object-fit": Ie.objectFit }
|
|
35259
|
+
} : mi(y) ? { className: `${e}-slide-image ${e}-slide-image-cover` } : { className: `${e}-slide-image ${e}-slide-image-fit` }, In = (Ie) => {
|
|
35260
|
+
if (Ie.length === 0) return null;
|
|
35261
|
+
const tt = Ie.length > 1, R = pl(Z), ae = `calc(-0.5 * (${R} + ${Z}))`;
|
|
35262
|
+
if (Ie.length === 1) {
|
|
35263
|
+
const ue = Ie[0];
|
|
35264
35264
|
return /* @__PURE__ */ l("div", { ...yi(ue), children: /* @__PURE__ */ l("img", { ...ni(ue), src: ue.url, alt: ue.name ?? "", draggable: !1 }) });
|
|
35265
35265
|
}
|
|
35266
35266
|
return /* @__PURE__ */ l(
|
|
@@ -35268,7 +35268,7 @@ const Kx = Wx(), Yx = {
|
|
|
35268
35268
|
{
|
|
35269
35269
|
className: `${e}-slide-inner`,
|
|
35270
35270
|
style: tt ? { gap: Z } : void 0,
|
|
35271
|
-
children:
|
|
35271
|
+
children: Ie.map((ue, _e) => /* @__PURE__ */ Y("div", { ...yi(ue), children: [
|
|
35272
35272
|
/* @__PURE__ */ l(
|
|
35273
35273
|
"img",
|
|
35274
35274
|
{
|
|
@@ -35278,7 +35278,7 @@ const Kx = Wx(), Yx = {
|
|
|
35278
35278
|
draggable: !1
|
|
35279
35279
|
}
|
|
35280
35280
|
),
|
|
35281
|
-
o && tt && _e <
|
|
35281
|
+
o && tt && _e < Ie.length - 1 && /* @__PURE__ */ l(
|
|
35282
35282
|
"div",
|
|
35283
35283
|
{
|
|
35284
35284
|
"data-controls": "imageGap",
|
|
@@ -35297,7 +35297,7 @@ const Kx = Wx(), Yx = {
|
|
|
35297
35297
|
] }, `${ue.url}-${_e}`))
|
|
35298
35298
|
}
|
|
35299
35299
|
);
|
|
35300
|
-
}, zi = !!(
|
|
35300
|
+
}, zi = !!(me != null && me.title2 || me != null && me.title3 || Ye != null && Ye.title2 || Ye != null && Ye.title3 || (M ?? 0) > 0 || o), uo = () => /* @__PURE__ */ Y(
|
|
35301
35301
|
"div",
|
|
35302
35302
|
{
|
|
35303
35303
|
style: {
|
|
@@ -35327,7 +35327,7 @@ const Kx = Wx(), Yx = {
|
|
|
35327
35327
|
height: "auto"
|
|
35328
35328
|
},
|
|
35329
35329
|
"aria-hidden": "true",
|
|
35330
|
-
children: ei(B ||
|
|
35330
|
+
children: ei(B || me)
|
|
35331
35331
|
}
|
|
35332
35332
|
),
|
|
35333
35333
|
/* @__PURE__ */ Y(
|
|
@@ -35356,7 +35356,7 @@ const Kx = Wx(), Yx = {
|
|
|
35356
35356
|
"div",
|
|
35357
35357
|
{
|
|
35358
35358
|
className: `${e}-titles-layer-in${Ce ? ` ${e}-titles-layer-in-fading ${e}-titles-fade-in` : ""}`,
|
|
35359
|
-
children: hn(
|
|
35359
|
+
children: hn(me)
|
|
35360
35360
|
}
|
|
35361
35361
|
)
|
|
35362
35362
|
]
|
|
@@ -35370,7 +35370,7 @@ const Kx = Wx(), Yx = {
|
|
|
35370
35370
|
"div",
|
|
35371
35371
|
{
|
|
35372
35372
|
className: `${e}-titles-layer-in${Ce ? ` ${e}-titles-layer-in-fading ${e}-titles-fade-in` : ""}${ie ? ` ${e}-titles-layer-in-stacked` : ""}`,
|
|
35373
|
-
children: fn(
|
|
35373
|
+
children: fn(me, !0)
|
|
35374
35374
|
}
|
|
35375
35375
|
)
|
|
35376
35376
|
] }) : null
|
|
@@ -35380,7 +35380,7 @@ const Kx = Wx(), Yx = {
|
|
|
35380
35380
|
]
|
|
35381
35381
|
}
|
|
35382
35382
|
), Or = () => {
|
|
35383
|
-
const
|
|
35383
|
+
const Ie = zi;
|
|
35384
35384
|
return /* @__PURE__ */ Y(
|
|
35385
35385
|
"div",
|
|
35386
35386
|
{
|
|
@@ -35391,15 +35391,15 @@ const Kx = Wx(), Yx = {
|
|
|
35391
35391
|
display: "flex",
|
|
35392
35392
|
flexDirection: "column",
|
|
35393
35393
|
minHeight: 0,
|
|
35394
|
-
...
|
|
35394
|
+
...Ie ? { flex: 1, height: "100%" } : {}
|
|
35395
35395
|
},
|
|
35396
35396
|
children: [
|
|
35397
35397
|
/* @__PURE__ */ l(
|
|
35398
35398
|
"div",
|
|
35399
35399
|
{
|
|
35400
35400
|
className: `${e}-titles-row-two-row`,
|
|
35401
|
-
style:
|
|
35402
|
-
children: ei(
|
|
35401
|
+
style: Ie ? void 0 : { flex: "0 0 auto", height: "auto" },
|
|
35402
|
+
children: ei(me, !0)
|
|
35403
35403
|
}
|
|
35404
35404
|
),
|
|
35405
35405
|
Pn()
|
|
@@ -35439,7 +35439,7 @@ const Kx = Wx(), Yx = {
|
|
|
35439
35439
|
{
|
|
35440
35440
|
className: `${e}-lightbox-content`,
|
|
35441
35441
|
style: je,
|
|
35442
|
-
onClick: (
|
|
35442
|
+
onClick: (Ie) => Ie.stopPropagation(),
|
|
35443
35443
|
children: /* @__PURE__ */ l(
|
|
35444
35444
|
"div",
|
|
35445
35445
|
{
|
|
@@ -35453,8 +35453,8 @@ const Kx = Wx(), Yx = {
|
|
|
35453
35453
|
"div",
|
|
35454
35454
|
{
|
|
35455
35455
|
className: `${e}-slide-layer-out ${e}-slide-fade-out`,
|
|
35456
|
-
onAnimationEnd: (
|
|
35457
|
-
|
|
35456
|
+
onAnimationEnd: (Ie) => {
|
|
35457
|
+
Ie.target === Ie.currentTarget && Oe(he);
|
|
35458
35458
|
},
|
|
35459
35459
|
children: /* @__PURE__ */ l("div", { className: `${e}-slide-area`, children: In(Lt.images) })
|
|
35460
35460
|
},
|
|
@@ -35466,7 +35466,7 @@ const Kx = Wx(), Yx = {
|
|
|
35466
35466
|
className: `${e}-slide-layer-in${J ? ` ${e}-slide-fade-in` : ""}`,
|
|
35467
35467
|
children: /* @__PURE__ */ l("div", { className: `${e}-slide-area`, children: ce ? In(ce.images) : null })
|
|
35468
35468
|
},
|
|
35469
|
-
`slide-in-${he}-${
|
|
35469
|
+
`slide-in-${he}-${pe}`
|
|
35470
35470
|
)
|
|
35471
35471
|
] })
|
|
35472
35472
|
}
|
|
@@ -36038,8 +36038,8 @@ const eb = ({ settings: e, content: t, isEditor: n, isEditMode: i, isPreviewMode
|
|
|
36038
36038
|
if (V.length === 0 || n && !i && !o) return;
|
|
36039
36039
|
const C = ya(V, f), H = Math.max(0, Math.min(S, C.length - 1));
|
|
36040
36040
|
if (b(H), k) {
|
|
36041
|
-
const
|
|
36042
|
-
tp(H + 1, c,
|
|
36041
|
+
const F = np();
|
|
36042
|
+
tp(H + 1, c, F), h.current = !F;
|
|
36043
36043
|
}
|
|
36044
36044
|
m(!0);
|
|
36045
36045
|
}, j = $e(() => {
|
|
@@ -37626,7 +37626,7 @@ function gb({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37626
37626
|
var N;
|
|
37627
37627
|
return !!((N = I == null ? void 0 : I.image) != null && N.url);
|
|
37628
37628
|
}
|
|
37629
|
-
),
|
|
37629
|
+
), F = He(() => ub(i), [i]), T = $e((I, N, W = a) => {
|
|
37630
37630
|
if (!o) return;
|
|
37631
37631
|
const ee = o.getBoundingClientRect(), se = I - ee.left, O = N - ee.top;
|
|
37632
37632
|
y({ x: se, y: O }), m(
|
|
@@ -37668,15 +37668,15 @@ function gb({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37668
37668
|
var ie, ve;
|
|
37669
37669
|
if (!((ie = I == null ? void 0 : I.image) != null && ie.url)) return null;
|
|
37670
37670
|
const se = ((ve = V.current.get(I.image.url)) == null ? void 0 : ve.aspectRatio) ?? 1, O = ud(I.image.url, G, V.current), { heightPx: le } = ka(O, se);
|
|
37671
|
-
let
|
|
37672
|
-
return M === "same" ? { x:
|
|
37671
|
+
let A = 0, de = 0;
|
|
37672
|
+
return M === "same" ? { x: A, y: de } = dd(N, W, O, se) : (A = ee.x ?? Math.random() * N, de = ee.y ?? Math.random() * W, { x: A, y: de } = ns(A, de, N, W, O, le)), {
|
|
37673
37673
|
id: u.current++,
|
|
37674
37674
|
url: I.image.url,
|
|
37675
37675
|
link: I.link,
|
|
37676
37676
|
name: I.image.name,
|
|
37677
|
-
x:
|
|
37677
|
+
x: A,
|
|
37678
37678
|
y: de,
|
|
37679
|
-
xRatio:
|
|
37679
|
+
xRatio: A / N,
|
|
37680
37680
|
yRatio: de / W,
|
|
37681
37681
|
aspectRatio: se,
|
|
37682
37682
|
widthPx: O
|
|
@@ -37690,7 +37690,7 @@ function gb({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37690
37690
|
const { x: ie, y: ve } = dd(N, W, O, se.aspectRatio);
|
|
37691
37691
|
return { ...se, x: ie, y: ve, widthPx: O };
|
|
37692
37692
|
}
|
|
37693
|
-
const { x:
|
|
37693
|
+
const { x: A, y: de } = ns(
|
|
37694
37694
|
se.xRatio * N,
|
|
37695
37695
|
se.yRatio * W,
|
|
37696
37696
|
N,
|
|
@@ -37698,7 +37698,7 @@ function gb({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37698
37698
|
O,
|
|
37699
37699
|
le
|
|
37700
37700
|
);
|
|
37701
|
-
return { ...se, x:
|
|
37701
|
+
return { ...se, x: A, y: de, widthPx: O };
|
|
37702
37702
|
}));
|
|
37703
37703
|
};
|
|
37704
37704
|
Me(() => {
|
|
@@ -37721,13 +37721,13 @@ function gb({ settings: e, content: t = [], isEditor: n }) {
|
|
|
37721
37721
|
if (L === "image" && !wp(W, ee, a)) return;
|
|
37722
37722
|
let se = 0, O = 0;
|
|
37723
37723
|
M === "on Click" ? (se = W, O = ee) : M === "same" ? (se = N.width / 2, O = N.height / 2) : (se = Math.random() * N.width, O = Math.random() * N.height);
|
|
37724
|
-
const le = H[c % H.length],
|
|
37725
|
-
if (!
|
|
37726
|
-
const de = j === "all" ? [...a,
|
|
37724
|
+
const le = H[c % H.length], A = $(le, N.width, N.height, { x: se, y: O });
|
|
37725
|
+
if (!A) return;
|
|
37726
|
+
const de = j === "all" ? [...a, A] : [A];
|
|
37727
37727
|
s(de), d((ie) => (ie + 1) % H.length), T(I.clientX, I.clientY, de);
|
|
37728
37728
|
}, Z = k === "custom" && p !== "none";
|
|
37729
37729
|
return /* @__PURE__ */ Y(ft, { children: [
|
|
37730
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
37730
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: F } }),
|
|
37731
37731
|
/* @__PURE__ */ Y(
|
|
37732
37732
|
"div",
|
|
37733
37733
|
{
|
|
@@ -38741,23 +38741,23 @@ function Tb(e, t) {
|
|
|
38741
38741
|
});
|
|
38742
38742
|
}
|
|
38743
38743
|
function Lb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
38744
|
-
var
|
|
38744
|
+
var Pe, g, X, J, oe, he, D;
|
|
38745
38745
|
const { prefix: o } = mn(), r = He(() => bb(o), [o]), {
|
|
38746
38746
|
imageSize: a,
|
|
38747
38747
|
maxWidth: s,
|
|
38748
38748
|
maxHeight: c,
|
|
38749
38749
|
transition: d = 1e3,
|
|
38750
38750
|
bgImage: u = "greyscale"
|
|
38751
|
-
} = e, f = t ?? [], y = pd(f.length), [p, m] = ne(y.activeIndex), [x, b] = ne(y.backgroundIndex), [E, h] = ne(!1), [w, V] = ne(!1), [G, k] = ne(null), [L, M] = ne(null), [j, S] = ne(0), [C, H] = ne(1), [
|
|
38751
|
+
} = e, f = t ?? [], y = pd(f.length), [p, m] = ne(y.activeIndex), [x, b] = ne(y.backgroundIndex), [E, h] = ne(!1), [w, V] = ne(!1), [G, k] = ne(null), [L, M] = ne(null), [j, S] = ne(0), [C, H] = ne(1), [F, T] = ne("none"), [$, z] = ne("next"), [v, Z] = ne({}), [I, N] = ne({ width: 0, height: 0 }), W = q(null), ee = q(null), se = !n || !!i, O = a ?? 60, le = Math.max(10, Math.min(100, s ?? O)), A = Math.max(10, Math.min(100, c ?? O)), de = Math.max(100, d), ie = or(u), ve = $e((P) => {
|
|
38752
38752
|
const te = $b(P ? v[P] : void 0);
|
|
38753
38753
|
return Cb(
|
|
38754
38754
|
I.width,
|
|
38755
38755
|
I.height,
|
|
38756
38756
|
te,
|
|
38757
38757
|
le,
|
|
38758
|
-
|
|
38758
|
+
A
|
|
38759
38759
|
);
|
|
38760
|
-
}, [I.height, I.width, v,
|
|
38760
|
+
}, [I.height, I.width, v, A, le]);
|
|
38761
38761
|
Me(() => {
|
|
38762
38762
|
const P = ee.current;
|
|
38763
38763
|
if (!P) return;
|
|
@@ -38804,7 +38804,7 @@ function Lb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38804
38804
|
se,
|
|
38805
38805
|
f,
|
|
38806
38806
|
de
|
|
38807
|
-
]), we = f[p],
|
|
38807
|
+
]), we = f[p], pe = x !== null ? f[x] : null, U = G !== null ? f[G] : null, ce = L !== null ? f[L] : null, me = f.length <= 1 ? 0 : (p - 1 + f.length) % f.length, be = f.length <= 1 ? 0 : (p + 1) % f.length, Le = ve((Pe = we == null ? void 0 : we.image) == null ? void 0 : Pe.url), Fe = ve((g = U == null ? void 0 : U.image) == null ? void 0 : g.url), ye = ve((X = ce == null ? void 0 : ce.image) == null ? void 0 : X.url), Ce = {
|
|
38808
38808
|
[`--${o}-transition-ms`]: `${de}ms`
|
|
38809
38809
|
};
|
|
38810
38810
|
return /* @__PURE__ */ Y(ft, { children: [
|
|
@@ -38817,11 +38817,11 @@ function Lb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38817
38817
|
style: Ce,
|
|
38818
38818
|
"aria-label": "Zoom gallery",
|
|
38819
38819
|
children: [
|
|
38820
|
-
((J =
|
|
38820
|
+
((J = pe == null ? void 0 : pe.image) == null ? void 0 : J.url) && /* @__PURE__ */ l("div", { className: `${o}-background`, "aria-hidden": "true", children: /* @__PURE__ */ l(
|
|
38821
38821
|
"img",
|
|
38822
38822
|
{
|
|
38823
38823
|
className: `${o}-effect-image`,
|
|
38824
|
-
src:
|
|
38824
|
+
src: pe.image.url,
|
|
38825
38825
|
alt: "",
|
|
38826
38826
|
style: { filter: ie }
|
|
38827
38827
|
}
|
|
@@ -38842,7 +38842,7 @@ function Lb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38842
38842
|
className: `${o}-effect-image`,
|
|
38843
38843
|
src: U.image.url,
|
|
38844
38844
|
alt: "",
|
|
38845
|
-
style: { filter:
|
|
38845
|
+
style: { filter: F }
|
|
38846
38846
|
}
|
|
38847
38847
|
)
|
|
38848
38848
|
}
|
|
@@ -38889,7 +38889,7 @@ function Lb({ settings: e, content: t, isEditor: n, isPreviewMode: i }) {
|
|
|
38889
38889
|
type: "button",
|
|
38890
38890
|
className: Mt(`${o}-nav`, `${o}-nav-prev`),
|
|
38891
38891
|
onClick: () => ke("prev"),
|
|
38892
|
-
"aria-label": `Show previous image (${
|
|
38892
|
+
"aria-label": `Show previous image (${me + 1} of ${f.length})`
|
|
38893
38893
|
}
|
|
38894
38894
|
),
|
|
38895
38895
|
/* @__PURE__ */ l(
|
|
@@ -39911,7 +39911,7 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39911
39911
|
textColor: S = "#ffffff",
|
|
39912
39912
|
borderColor: C = "#ffffff",
|
|
39913
39913
|
iconColor: H = "#ffffff",
|
|
39914
|
-
hoverEffect:
|
|
39914
|
+
hoverEffect: F = "none",
|
|
39915
39915
|
fontFamily: T,
|
|
39916
39916
|
fontSettings: $,
|
|
39917
39917
|
fontSize: z,
|
|
@@ -39924,14 +39924,14 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39924
39924
|
minHeight: se = 0,
|
|
39925
39925
|
width: O = 0,
|
|
39926
39926
|
height: le = 0
|
|
39927
|
-
} = e,
|
|
39927
|
+
} = e, A = Hi(r, {
|
|
39928
39928
|
backgroundColor: j,
|
|
39929
39929
|
textColor: S,
|
|
39930
39930
|
borderColor: C,
|
|
39931
39931
|
iconColor: H,
|
|
39932
39932
|
boxShadowColor: V,
|
|
39933
39933
|
innerBoxShadowColor: k
|
|
39934
|
-
}, kb, Mb, W), de = i && i !== "default" ? `${r}-state-${i}` : "", ie = t && !n ? `${r}-editing` : "", ve =
|
|
39934
|
+
}, kb, Mb, W), de = i && i !== "default" ? `${r}-state-${i}` : "", ie = t && !n ? `${r}-editing` : "", ve = F !== "none" && (!t || n || i === "hover") ? `${r}-hover-effect-${F}` : "", ke = F === "reveal" || F === "swipe", we = F === "content-roll", pe = F === "reveal" && (!t || n), U = b === !0, me = s === "a" ? f ?? u : u, be = s === "c", Le = s !== "b", Fe = {
|
|
39935
39935
|
fontSettings: {
|
|
39936
39936
|
fontFamily: T,
|
|
39937
39937
|
fontWeight: ($ == null ? void 0 : $.fontWeight) ?? 400,
|
|
@@ -39961,8 +39961,8 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39961
39961
|
borderRadius: K(h, t),
|
|
39962
39962
|
borderWidth: K(L, t),
|
|
39963
39963
|
...be ? {} : {
|
|
39964
|
-
justifyContent: Cl[
|
|
39965
|
-
textAlign:
|
|
39964
|
+
justifyContent: Cl[me],
|
|
39965
|
+
textAlign: me
|
|
39966
39966
|
},
|
|
39967
39967
|
...be && !we ? { gap: K(p, t) } : {},
|
|
39968
39968
|
...U ? {
|
|
@@ -39974,26 +39974,26 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
39974
39974
|
...be ? { width: "100%" } : {}
|
|
39975
39975
|
}
|
|
39976
39976
|
};
|
|
39977
|
-
let
|
|
39977
|
+
let Pe;
|
|
39978
39978
|
const g = {
|
|
39979
39979
|
display: "inline-flex",
|
|
39980
39980
|
alignItems: "center",
|
|
39981
|
-
justifyContent: be ? Cl[
|
|
39981
|
+
justifyContent: be ? Cl[me] : Cl[s === "a" ? me : "center"],
|
|
39982
39982
|
gap: be ? K(p, t) : void 0,
|
|
39983
39983
|
width: "100%",
|
|
39984
39984
|
height: "100%",
|
|
39985
|
-
...s === "a" ? { textAlign:
|
|
39985
|
+
...s === "a" ? { textAlign: me } : {}
|
|
39986
39986
|
};
|
|
39987
39987
|
if (s === "b") {
|
|
39988
39988
|
const oe = () => hd(r, d, m > 0 ? "fixed" : "fill", 100, m, t);
|
|
39989
|
-
|
|
39989
|
+
Pe = we ? Tl(r, oe, `${r}-icon-roll`, void 0, g) : oe();
|
|
39990
39990
|
} else if (s === "c") {
|
|
39991
39991
|
const oe = () => {
|
|
39992
39992
|
const he = /* @__PURE__ */ l(
|
|
39993
39993
|
"span",
|
|
39994
39994
|
{
|
|
39995
39995
|
className: `${r}-text`,
|
|
39996
|
-
style: { textAlign:
|
|
39996
|
+
style: { textAlign: me },
|
|
39997
39997
|
children: c
|
|
39998
39998
|
}
|
|
39999
39999
|
), D = hd(r, d, x > 0 ? "fixed" : "fill", 100, x, t);
|
|
@@ -40005,13 +40005,13 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
40005
40005
|
D
|
|
40006
40006
|
] });
|
|
40007
40007
|
};
|
|
40008
|
-
|
|
40008
|
+
Pe = we ? Tl(r, oe, `${r}-icon-text-roll`, void 0, g) : oe();
|
|
40009
40009
|
} else
|
|
40010
|
-
|
|
40011
|
-
const X =
|
|
40010
|
+
Pe = we ? Tl(r, () => c, `${r}-label-roll`, void 0, g) : ke ? /* @__PURE__ */ l("span", { className: `${r}-button-inner`, children: c }) : c;
|
|
40011
|
+
const X = pe ? (oe) => Eb(oe, r) : void 0, J = pe ? (oe) => Ab(oe, r) : void 0;
|
|
40012
40012
|
return /* @__PURE__ */ Y(ft, { children: [
|
|
40013
40013
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: a } }),
|
|
40014
|
-
/* @__PURE__ */ l("div", { className: `${r}-root`, style:
|
|
40014
|
+
/* @__PURE__ */ l("div", { className: `${r}-root`, style: A, children: /* @__PURE__ */ l("div", { className: `${r}-wrapper ${de} ${ie}`.trim(), children: /* @__PURE__ */ l(
|
|
40015
40015
|
"div",
|
|
40016
40016
|
{
|
|
40017
40017
|
className: `${r}-button ${ve}`.trim(),
|
|
@@ -40020,7 +40020,7 @@ function Nb({ settings: e, isEditor: t, isPreviewMode: n, activeEvent: i, hasLin
|
|
|
40020
40020
|
onMouseLeave: J,
|
|
40021
40021
|
role: "button",
|
|
40022
40022
|
tabIndex: o || t && !n ? void 0 : 0,
|
|
40023
|
-
children:
|
|
40023
|
+
children: Pe
|
|
40024
40024
|
}
|
|
40025
40025
|
) }) })
|
|
40026
40026
|
] });
|
|
@@ -41796,8 +41796,8 @@ function aw({
|
|
|
41796
41796
|
onPrev: x,
|
|
41797
41797
|
onNext: b
|
|
41798
41798
|
}) {
|
|
41799
|
-
const E = q(null), h = q(null), w = q(null), V = q(/* @__PURE__ */ new Map()), [G, k] = ne(0), L = q(null), M = q(0), j = q(0), S = q("none"), C = q(!1), H = q(!1),
|
|
41800
|
-
}), Z = q(null), I = q(null), N = q(null), W = q(!1), [ee, se] = ne(null), [O, le] = ne(Ll), [
|
|
41799
|
+
const E = q(null), h = q(null), w = q(null), V = q(/* @__PURE__ */ new Map()), [G, k] = ne(0), L = q(null), M = q(0), j = q(0), S = q("none"), C = q(!1), H = q(!1), F = q(!1), T = q(null), $ = q(null), z = q(null), v = q(() => {
|
|
41800
|
+
}), Z = q(null), I = q(null), N = q(null), W = q(!1), [ee, se] = ne(null), [O, le] = ne(Ll), [A, de] = ne(0), [ie, ve] = ne("opening"), [ke, we] = ne(0), [pe, U] = ne(0), [ce, me] = ne(!1), [be, Le] = ne(null), [Fe, ye] = ne(null), [Ce, Pe] = ne(null), [g, X] = ne(!1), [J, oe] = ne(null), [he, D] = ne(!1), P = q(!1), [te, re] = ne(!1), [ge, B] = ne(!1), Ee = q(n), Se = q(void 0), Q = t[n], Be = Q ? Ya(Q) : !1, Ve = pe !== 0 || ce, st = !a && (!r || !!s), Je = c && !a, at = d.length > 1, rt = $e((_, Re) => t.length <= 1 ? null : t[(_ + Re + t.length) % t.length] ?? null, [t]), Ue = at ? pr(d, u, -1) : rt(n, -1), xe = at ? pr(d, u, 1) : rt(n, 1), ze = be === -1 && Ve ? at && Fe !== null ? pr(d, Fe, -1) : Ce !== null ? rt(Ce, -1) : null : null, qe = be === 1 && Ve ? at && Fe !== null ? pr(d, Fe, 1) : Ce !== null ? rt(Ce, 1) : null : null, nt = ze && ze.url !== (Ue == null ? void 0 : Ue.url) ? ze : null, Te = qe && qe.url !== (xe == null ? void 0 : xe.url) ? qe : null, Oe = Ue && Je ? (() => {
|
|
41801
41801
|
const _ = at ? fd(d, u, -1) : t.length > 2 ? rt((n - 1 + t.length) % t.length, -1) : null;
|
|
41802
41802
|
return _ && _.url !== Ue.url ? _ : null;
|
|
41803
41803
|
})() : null, et = xe && Je ? (() => {
|
|
@@ -41811,7 +41811,7 @@ function aw({
|
|
|
41811
41811
|
if (!(_ != null && _.url)) return null;
|
|
41812
41812
|
const Re = V.current.get(_.url);
|
|
41813
41813
|
return Jb(h.current, Re);
|
|
41814
|
-
}, [G,
|
|
41814
|
+
}, [G, A]), We = $e(() => {
|
|
41815
41815
|
if (!Q) return;
|
|
41816
41816
|
const _ = je(Q);
|
|
41817
41817
|
if (_) {
|
|
@@ -41823,12 +41823,12 @@ function aw({
|
|
|
41823
41823
|
}, [Q, je]), bt = $e((_) => {
|
|
41824
41824
|
if (at) {
|
|
41825
41825
|
const Re = d.length;
|
|
41826
|
-
ye((u + _ + Re) % Re),
|
|
41826
|
+
ye((u + _ + Re) % Re), Pe(null);
|
|
41827
41827
|
return;
|
|
41828
41828
|
}
|
|
41829
|
-
t.length > 1 && (
|
|
41829
|
+
t.length > 1 && (Pe((n + _ + t.length) % t.length), ye(null));
|
|
41830
41830
|
}, [at, d.length, u, t.length, n]), Xe = $e((_) => {
|
|
41831
|
-
|
|
41831
|
+
F.current = _, me(_);
|
|
41832
41832
|
}, []), Ge = $e(() => {
|
|
41833
41833
|
T.current !== null && (window.clearTimeout(T.current), T.current = null);
|
|
41834
41834
|
}, []), Ze = $e(() => {
|
|
@@ -41856,7 +41856,7 @@ function aw({
|
|
|
41856
41856
|
}, []), fe = $e((_, Re) => {
|
|
41857
41857
|
if (Ve) {
|
|
41858
41858
|
if (te && !ce)
|
|
41859
|
-
return `translate(${
|
|
41859
|
+
return `translate(${pe}px, 0px)`;
|
|
41860
41860
|
if (ce && be !== null) {
|
|
41861
41861
|
const Ke = je(_);
|
|
41862
41862
|
if (!Ke) return;
|
|
@@ -41870,22 +41870,22 @@ function aw({
|
|
|
41870
41870
|
Ve,
|
|
41871
41871
|
te,
|
|
41872
41872
|
ce,
|
|
41873
|
-
|
|
41873
|
+
pe,
|
|
41874
41874
|
be,
|
|
41875
41875
|
O,
|
|
41876
41876
|
je
|
|
41877
41877
|
]), Ae = $e(() => {
|
|
41878
41878
|
const _ = $.current;
|
|
41879
|
-
$.current = null, Ge(), Xe(!1), Le(null), ye(null),
|
|
41879
|
+
$.current = null, Ge(), Xe(!1), Le(null), ye(null), Pe(null), U(0), re(!1), C.current = !1, j.current = 0, S.current = "none", _ === -1 ? x() : _ === 1 && b();
|
|
41880
41880
|
}, [Ge, Xe, x, b]), lt = $e(() => {
|
|
41881
41881
|
Ge(), T.current = window.setTimeout(() => {
|
|
41882
41882
|
$.current !== null && Ae();
|
|
41883
41883
|
}, rr + 32);
|
|
41884
41884
|
}, [Ge, Ae]), yt = $e(() => {
|
|
41885
|
-
Ge(), $.current = null, Xe(!1), Le(null), ye(null),
|
|
41885
|
+
Ge(), $.current = null, Xe(!1), Le(null), ye(null), Pe(null), U(0), re(!1), C.current = !1, j.current = 0, S.current = "none";
|
|
41886
41886
|
}, [Ge, Xe]), Ye = $e((_) => {
|
|
41887
41887
|
if (!(!Je || !ee)) {
|
|
41888
|
-
if (
|
|
41888
|
+
if (F.current) {
|
|
41889
41889
|
if ($.current === _) {
|
|
41890
41890
|
z.current = _, Ae();
|
|
41891
41891
|
return;
|
|
@@ -41991,7 +41991,7 @@ function aw({
|
|
|
41991
41991
|
}, [ie, m]), Me(() => () => {
|
|
41992
41992
|
Ge();
|
|
41993
41993
|
}, [Ge]), Ht(() => {
|
|
41994
|
-
Ee.current === n && Se.current === (Q == null ? void 0 : Q.url) || (Ge(), $.current = null, Le(null), ye(null),
|
|
41994
|
+
Ee.current === n && Se.current === (Q == null ? void 0 : Q.url) || (Ge(), $.current = null, Le(null), ye(null), Pe(null), we(0), U(0), Xe(!1), B(!1), re(!1), M.current = 0, j.current = 0, S.current = "none", C.current = !1, L.current = null, H.current = !1, w.current = null, We(), Ee.current = n, Se.current = Q == null ? void 0 : Q.url);
|
|
41995
41995
|
}, [n, Q == null ? void 0 : Q.url, Xe, Ge, We]), Ht(() => {
|
|
41996
41996
|
const _ = z.current;
|
|
41997
41997
|
_ !== null && (z.current = null, requestAnimationFrame(() => {
|
|
@@ -42029,13 +42029,13 @@ function aw({
|
|
|
42029
42029
|
Re(xt);
|
|
42030
42030
|
return;
|
|
42031
42031
|
}
|
|
42032
|
-
$.current = null, Le(null), ye(null),
|
|
42032
|
+
$.current = null, Le(null), ye(null), Pe(null), Xe(!0), U(0), Ze();
|
|
42033
42033
|
}, De = (xt) => {
|
|
42034
|
-
if (xt.touches.length !== 1 ||
|
|
42034
|
+
if (xt.touches.length !== 1 || F.current) return;
|
|
42035
42035
|
const Rt = xt.touches[0];
|
|
42036
42036
|
H.current = !0, L.current = { x: Rt.clientX, y: Rt.clientY }, S.current = "none", j.current = 0, C.current = !1;
|
|
42037
42037
|
}, St = (xt) => {
|
|
42038
|
-
if (!L.current || xt.touches.length !== 1 ||
|
|
42038
|
+
if (!L.current || xt.touches.length !== 1 || F.current) return;
|
|
42039
42039
|
const Rt = xt.touches[0], on = Rt.clientX - L.current.x, qt = Rt.clientY - L.current.y;
|
|
42040
42040
|
if (S.current === "none") {
|
|
42041
42041
|
if (Math.abs(on) < 10 && Math.abs(qt) < 10) return;
|
|
@@ -42112,7 +42112,7 @@ function aw({
|
|
|
42112
42112
|
const tn = () => {
|
|
42113
42113
|
ie === "closing" || a || en();
|
|
42114
42114
|
}, Nt = ie === "open", Kt = ie === "closing", pn = ke > 0 ? Math.max(0, 1 - ke / 500) : 1, Ct = ke > 0 ? Math.max(0.35, 1 - ke / 500) : 1, $t = $e((_) => {
|
|
42115
|
-
if (!(_.propertyName !== "transform" || !
|
|
42115
|
+
if (!(_.propertyName !== "transform" || !F.current)) {
|
|
42116
42116
|
if ($.current !== null) {
|
|
42117
42117
|
Ae();
|
|
42118
42118
|
return;
|
|
@@ -42518,18 +42518,18 @@ function fw({
|
|
|
42518
42518
|
layoutId: r,
|
|
42519
42519
|
portalId: a
|
|
42520
42520
|
}) {
|
|
42521
|
-
const { prefix: s } = mn(), c = He(() => cw(s), [s]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", f = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, p = K(y, n ?? !1), m = `max(${p}, ${lw}px)`, { objectFitMode: x, imageStyle: b } = gw(e), E = mw(e, n), h = q(null), [w, V] = ne(!1), [G, k] = ne([]), [L, M] = ne(0), [j, S] = ne(0), [C, H] = ne(null), [
|
|
42522
|
-
!
|
|
42523
|
-
}, [v]), W = $e((
|
|
42524
|
-
if (
|
|
42521
|
+
const { prefix: s } = mn(), c = He(() => cw(s), [s]), d = t ?? [], u = (e == null ? void 0 : e.type) ?? "a", f = typeof (e == null ? void 0 : e.wrapperWidth) == "number" ? e.wrapperWidth : 1, y = typeof (e == null ? void 0 : e.horizontalGap) == "number" ? e.horizontalGap : 0, p = K(y, n ?? !1), m = `max(${p}, ${lw}px)`, { objectFitMode: x, imageStyle: b } = gw(e), E = mw(e, n), h = q(null), [w, V] = ne(!1), [G, k] = ne([]), [L, M] = ne(0), [j, S] = ne(0), [C, H] = ne(null), [F, T] = ne({ title1: "", title2: "", title3: "" }), $ = (!n || i) && !w, z = (e == null ? void 0 : e.imageHoverEffect) ?? { sizeType: "none", value: 120 }, v = z.sizeType ?? "none", Z = $ && v !== "none" ? `${s}-item-image-hover-${v}` : void 0, I = (z.value ?? 120) / 100, N = $e((pe) => {
|
|
42522
|
+
!pe || v !== "scale" || (pe.style.transformOrigin = mf(pe));
|
|
42523
|
+
}, [v]), W = $e((pe) => {
|
|
42524
|
+
if (pe) {
|
|
42525
42525
|
if (x === "contain") {
|
|
42526
|
-
const U = uw(
|
|
42526
|
+
const U = uw(pe);
|
|
42527
42527
|
if (U) {
|
|
42528
|
-
const ce =
|
|
42528
|
+
const ce = pe.closest(`.${s}-item-image`);
|
|
42529
42529
|
ce instanceof HTMLElement && ce.style.setProperty(`--${s}-item-media-aspect`, String(U));
|
|
42530
42530
|
}
|
|
42531
42531
|
}
|
|
42532
|
-
N(
|
|
42532
|
+
N(pe);
|
|
42533
42533
|
}
|
|
42534
42534
|
}, [s, N, x]), ee = {
|
|
42535
42535
|
width: K(f, n ?? !1),
|
|
@@ -42537,32 +42537,32 @@ function fw({
|
|
|
42537
42537
|
...pw(e, s, n),
|
|
42538
42538
|
[`--${s}-image-hover-scale`]: String(I)
|
|
42539
42539
|
}, se = (() => {
|
|
42540
|
-
const
|
|
42541
|
-
return U && (
|
|
42542
|
-
})(), O = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), le = He(() => Kb(d), [d]),
|
|
42540
|
+
const pe = {}, U = h.current ? getComputedStyle(h.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
42541
|
+
return U && (pe["--cntrl-article-width"] = U), pe;
|
|
42542
|
+
})(), O = ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && (!n || i || o), le = He(() => Kb(d), [d]), A = He(() => ew(d), [d]), de = (pe, U) => {
|
|
42543
42543
|
if (((e == null ? void 0 : e.lightbox) ?? "on") === "off" || n && !o && !i) return;
|
|
42544
|
-
const ce = le.findIndex((be) => be.gridIndex ===
|
|
42544
|
+
const ce = le.findIndex((be) => be.gridIndex === pe);
|
|
42545
42545
|
if (ce < 0) return;
|
|
42546
|
-
const
|
|
42547
|
-
S(ce), k(
|
|
42546
|
+
const me = le[ce];
|
|
42547
|
+
S(ce), k(me.items), M(0), T(me.entry), H(U ?? null), V(!0);
|
|
42548
42548
|
}, ie = $e(() => {
|
|
42549
42549
|
V(!1), H(null);
|
|
42550
42550
|
}, []), ve = $e(() => {
|
|
42551
|
-
const
|
|
42552
|
-
return !
|
|
42553
|
-
}, [le, j, C, x]), ke = $e((
|
|
42551
|
+
const pe = le[j];
|
|
42552
|
+
return !pe || !h.current ? C : Ub(h.current, pe.gridIndex, x) ?? C;
|
|
42553
|
+
}, [le, j, C, x]), ke = $e((pe) => {
|
|
42554
42554
|
if (le.length > 1) {
|
|
42555
|
-
const U = le.length, ce = (j +
|
|
42556
|
-
S(ce), k(
|
|
42555
|
+
const U = le.length, ce = (j + pe + U) % U, me = le[ce];
|
|
42556
|
+
S(ce), k(me.items), M(0), T(me.entry);
|
|
42557
42557
|
return;
|
|
42558
42558
|
}
|
|
42559
|
-
M((U) => (U +
|
|
42559
|
+
M((U) => (U + pe + G.length) % G.length);
|
|
42560
42560
|
}, [le, j, G.length]), we = le.length > 1 || G.length > 1;
|
|
42561
42561
|
return Me(() => {
|
|
42562
42562
|
if (!w || typeof document > "u") return;
|
|
42563
|
-
const
|
|
42563
|
+
const pe = document.body.style.overflow;
|
|
42564
42564
|
return document.body.style.overflow = "hidden", () => {
|
|
42565
|
-
document.body.style.overflow =
|
|
42565
|
+
document.body.style.overflow = pe;
|
|
42566
42566
|
};
|
|
42567
42567
|
}, [w]), Me(() => {
|
|
42568
42568
|
!n || o || i || V(!1);
|
|
@@ -42570,10 +42570,10 @@ function fw({
|
|
|
42570
42570
|
((e == null ? void 0 : e.lightbox) ?? "on") === "off" && V(!1);
|
|
42571
42571
|
}, [e == null ? void 0 : e.lightbox]), /* @__PURE__ */ Y(ft, { children: [
|
|
42572
42572
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: c } }),
|
|
42573
|
-
/* @__PURE__ */ l(tw, { mediaList:
|
|
42574
|
-
/* @__PURE__ */ l("div", { ref: h, className: `${s}-wrapper ${s}-type-${u}`, style: ee, children: d.map((
|
|
42573
|
+
/* @__PURE__ */ l(tw, { mediaList: A }),
|
|
42574
|
+
/* @__PURE__ */ l("div", { ref: h, className: `${s}-wrapper ${s}-type-${u}`, style: ee, children: d.map((pe, U) => {
|
|
42575
42575
|
var be, Le;
|
|
42576
|
-
const ce = !!((be =
|
|
42576
|
+
const ce = !!((be = pe.image) != null && be.url), me = hw(
|
|
42577
42577
|
!!O,
|
|
42578
42578
|
ce,
|
|
42579
42579
|
U,
|
|
@@ -42586,16 +42586,16 @@ function fw({
|
|
|
42586
42586
|
{
|
|
42587
42587
|
className: `${s}-item`,
|
|
42588
42588
|
children: [
|
|
42589
|
-
|
|
42589
|
+
pe.title ? /* @__PURE__ */ l(
|
|
42590
42590
|
"span",
|
|
42591
42591
|
{
|
|
42592
42592
|
className: `${s}-item-title`,
|
|
42593
|
-
onClick:
|
|
42594
|
-
style:
|
|
42595
|
-
children:
|
|
42593
|
+
onClick: me,
|
|
42594
|
+
style: me ? { cursor: "pointer" } : void 0,
|
|
42595
|
+
children: pe.title
|
|
42596
42596
|
}
|
|
42597
42597
|
) : null,
|
|
42598
|
-
(Le =
|
|
42598
|
+
(Le = pe.image) != null && Le.url ? /* @__PURE__ */ l(
|
|
42599
42599
|
"span",
|
|
42600
42600
|
{
|
|
42601
42601
|
className: [
|
|
@@ -42603,29 +42603,29 @@ function fw({
|
|
|
42603
42603
|
x === "contain" ? `${s}-item-image-fit` : void 0,
|
|
42604
42604
|
Z
|
|
42605
42605
|
].filter(Boolean).join(" "),
|
|
42606
|
-
children:
|
|
42606
|
+
children: pe.image.type === "video" ? /* @__PURE__ */ l(
|
|
42607
42607
|
"video",
|
|
42608
42608
|
{
|
|
42609
42609
|
ref: W,
|
|
42610
|
-
src:
|
|
42610
|
+
src: pe.image.url,
|
|
42611
42611
|
"data-waterfall-index": U,
|
|
42612
42612
|
style: b,
|
|
42613
42613
|
playsInline: !0,
|
|
42614
42614
|
muted: !0,
|
|
42615
42615
|
loop: !0,
|
|
42616
42616
|
autoPlay: !0,
|
|
42617
|
-
onClick:
|
|
42617
|
+
onClick: me,
|
|
42618
42618
|
onLoadedData: (Fe) => W(Fe.currentTarget)
|
|
42619
42619
|
}
|
|
42620
42620
|
) : /* @__PURE__ */ l(
|
|
42621
42621
|
"img",
|
|
42622
42622
|
{
|
|
42623
42623
|
ref: W,
|
|
42624
|
-
src:
|
|
42625
|
-
alt:
|
|
42624
|
+
src: pe.image.url,
|
|
42625
|
+
alt: pe.image.name ?? "",
|
|
42626
42626
|
"data-waterfall-index": U,
|
|
42627
42627
|
style: b,
|
|
42628
|
-
onClick:
|
|
42628
|
+
onClick: me,
|
|
42629
42629
|
onLoad: (Fe) => W(Fe.currentTarget)
|
|
42630
42630
|
}
|
|
42631
42631
|
)
|
|
@@ -42659,7 +42659,7 @@ function fw({
|
|
|
42659
42659
|
);
|
|
42660
42660
|
}) }),
|
|
42661
42661
|
w && ((e == null ? void 0 : e.lightbox) ?? "on") === "on" && typeof document < "u" && e && (() => {
|
|
42662
|
-
const
|
|
42662
|
+
const pe = (a ? document.getElementById(a) : null) ?? document.body;
|
|
42663
42663
|
return fi(
|
|
42664
42664
|
/* @__PURE__ */ l("div", { style: se, "data-selection": "none", children: /* @__PURE__ */ l(
|
|
42665
42665
|
aw,
|
|
@@ -42667,7 +42667,7 @@ function fw({
|
|
|
42667
42667
|
prefix: s,
|
|
42668
42668
|
items: G,
|
|
42669
42669
|
index: L,
|
|
42670
|
-
entry:
|
|
42670
|
+
entry: F,
|
|
42671
42671
|
settings: e,
|
|
42672
42672
|
isEditor: n,
|
|
42673
42673
|
isEditMode: o,
|
|
@@ -42683,7 +42683,7 @@ function fw({
|
|
|
42683
42683
|
onNext: () => ke(1)
|
|
42684
42684
|
}
|
|
42685
42685
|
) }),
|
|
42686
|
-
|
|
42686
|
+
pe
|
|
42687
42687
|
);
|
|
42688
42688
|
})()
|
|
42689
42689
|
] });
|
|
@@ -44272,14 +44272,14 @@ function Ww(e, t) {
|
|
|
44272
44272
|
`;
|
|
44273
44273
|
}
|
|
44274
44274
|
function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode: o }) {
|
|
44275
|
-
const { prefix: r } = mn(), a = Aw(e, n), s = t ?? [], c = s.length, d = (e == null ? void 0 : e.trigger) ?? xd, u = d.sizeType ?? "drag", f = d.value ?? xd.value, y = (e == null ? void 0 : e.direction) ?? "horizontal", p = (e == null ? void 0 : e.transition) ?? "slide", m = (e == null ? void 0 : e.nav) ?? "classic", x = (e == null ? void 0 : e.navSize) ?? "m", b = Mw[x], E = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, h = (xe) => K(xe * E, n), w = (e == null ? void 0 : e.show) ?? "always", V = (e == null ? void 0 : e.controls) ?? null, G = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, k = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, L = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, M = (e == null ? void 0 : e.controlsColor) ?? vd.color, j = (e == null ? void 0 : e.controlsHoverColor) ?? vd.hover, S = (e == null ? void 0 : e.navColor) ?? ar.colors.inactive, C = (e == null ? void 0 : e.navPaginationColor) ?? ar.colors.pagination, H = (e == null ? void 0 : e.navBackgroundColor) ?? ar.colors.background,
|
|
44275
|
+
const { prefix: r } = mn(), a = Aw(e, n), s = t ?? [], c = s.length, d = (e == null ? void 0 : e.trigger) ?? xd, u = d.sizeType ?? "drag", f = d.value ?? xd.value, y = (e == null ? void 0 : e.direction) ?? "horizontal", p = (e == null ? void 0 : e.transition) ?? "slide", m = (e == null ? void 0 : e.nav) ?? "classic", x = (e == null ? void 0 : e.navSize) ?? "m", b = Mw[x], E = typeof (e == null ? void 0 : e.navUnit) == "number" ? e.navUnit : 1 / 1440, h = (xe) => K(xe * E, n), w = (e == null ? void 0 : e.show) ?? "always", V = (e == null ? void 0 : e.controls) ?? null, G = typeof (e == null ? void 0 : e.controlsMaxWidth) == "number" ? e.controlsMaxWidth : 65 / 1440, k = typeof (e == null ? void 0 : e.paddingX) == "number" ? e.paddingX : 0, L = typeof (e == null ? void 0 : e.paddingY) == "number" ? e.paddingY : 0, M = (e == null ? void 0 : e.controlsColor) ?? vd.color, j = (e == null ? void 0 : e.controlsHoverColor) ?? vd.hover, S = (e == null ? void 0 : e.navColor) ?? ar.colors.inactive, C = (e == null ? void 0 : e.navPaginationColor) ?? ar.colors.pagination, H = (e == null ? void 0 : e.navBackgroundColor) ?? ar.colors.background, F = (e == null ? void 0 : e.linkColor) ?? Il.linkColor, T = typeof (e == null ? void 0 : e.captionMarginTop) == "number" ? e.captionMarginTop : 0, $ = y === "horizontal", z = u === "click", v = u === "drag", Z = u === "auto" && (!n || !!i), I = !n, N = p === "slide", W = m === "classic", ee = w !== "never" && G > 0, se = w === "on hover", O = K(G, n), le = {
|
|
44276
44276
|
width: O,
|
|
44277
44277
|
height: O,
|
|
44278
44278
|
maxWidth: O
|
|
44279
|
-
},
|
|
44279
|
+
}, A = N && c > 1, [de, ie] = ne(0), [ve, ke] = ne(A ? 1 : 0), [we, pe] = ne(!1), [U, ce] = ne(!1), [me, be] = ne(!1), [Le, Fe] = ne(0), [ye, Ce] = ne(!1), [Pe, g] = ne(!1), X = q(!1), J = q(ve);
|
|
44280
44280
|
J.current = ve;
|
|
44281
44281
|
const oe = q(null), he = q(0), D = q(null), P = q(null), te = q(null), re = q(null), ge = $e((xe) => {
|
|
44282
|
-
X.current = xe,
|
|
44282
|
+
X.current = xe, pe(xe);
|
|
44283
44283
|
}, []), B = $e((xe) => {
|
|
44284
44284
|
if (c < 2 || xe === 0) return;
|
|
44285
44285
|
const ze = xe > 0 ? 1 : -1, qe = Math.abs(xe);
|
|
@@ -44288,11 +44288,11 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44288
44288
|
return;
|
|
44289
44289
|
}
|
|
44290
44290
|
let nt = J.current;
|
|
44291
|
-
const Te =
|
|
44291
|
+
const Te = A && (nt === 0 || nt === c + 1), Oe = Te ? de + 1 : null;
|
|
44292
44292
|
Te && (nt = de + 1);
|
|
44293
44293
|
let et = qe;
|
|
44294
44294
|
for (; et > 0; ) {
|
|
44295
|
-
const pt = Fw(nt, ze, c,
|
|
44295
|
+
const pt = Fw(nt, ze, c, A);
|
|
44296
44296
|
if (nt = pt.position, et -= 1, pt.hitBoundary) {
|
|
44297
44297
|
he.current = et * ze;
|
|
44298
44298
|
break;
|
|
@@ -44308,27 +44308,27 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44308
44308
|
return;
|
|
44309
44309
|
}
|
|
44310
44310
|
ce(!1), ke(nt);
|
|
44311
|
-
}, [de, c,
|
|
44311
|
+
}, [de, c, A, N, ge]), Ee = $e((xe) => {
|
|
44312
44312
|
B(xe);
|
|
44313
44313
|
}, [B]), Se = $e((xe) => {
|
|
44314
44314
|
if (c < 2) return;
|
|
44315
44315
|
const ze = mr(xe, c);
|
|
44316
44316
|
if (!(ze === de && !X.current) && (Ce(!0), ge(!0), ie(ze), N)) {
|
|
44317
|
-
const qe = ze + (
|
|
44317
|
+
const qe = ze + (A ? 1 : 0);
|
|
44318
44318
|
oe.current = null, he.current = 0, J.current = qe, ce(!1), ke(qe);
|
|
44319
44319
|
}
|
|
44320
|
-
}, [de, c,
|
|
44320
|
+
}, [de, c, A, N, ge]);
|
|
44321
44321
|
Me(() => {
|
|
44322
44322
|
if (!we) return;
|
|
44323
44323
|
const xe = window.setTimeout(() => {
|
|
44324
|
-
if (
|
|
44324
|
+
if (A && (ve === 0 || ve === c + 1)) {
|
|
44325
44325
|
oe.current = null, ce(!0), ke(de + 1);
|
|
44326
44326
|
return;
|
|
44327
44327
|
}
|
|
44328
44328
|
ge(!1);
|
|
44329
44329
|
}, Mo);
|
|
44330
44330
|
return () => window.clearTimeout(xe);
|
|
44331
|
-
}, [de, c,
|
|
44331
|
+
}, [de, c, A, we, ge, ve]), Me(() => {
|
|
44332
44332
|
if (!U) return;
|
|
44333
44333
|
let xe = 0;
|
|
44334
44334
|
const ze = requestAnimationFrame(() => {
|
|
@@ -44351,23 +44351,23 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44351
44351
|
cancelAnimationFrame(ze), cancelAnimationFrame(xe);
|
|
44352
44352
|
};
|
|
44353
44353
|
}, [B, ge, U]);
|
|
44354
|
-
const Q = `${
|
|
44354
|
+
const Q = `${A}:${c}`, Be = q(Q);
|
|
44355
44355
|
Me(() => {
|
|
44356
44356
|
if (Be.current === Q) return;
|
|
44357
44357
|
Be.current = Q;
|
|
44358
44358
|
const xe = c > 0 ? Math.min(de, c - 1) : 0;
|
|
44359
|
-
te.current = null, re.current = null, be(!1), Fe(0), ie(xe), ce(!0), ke(xe + (
|
|
44360
|
-
}, [de, c,
|
|
44359
|
+
te.current = null, re.current = null, be(!1), Fe(0), ie(xe), ce(!0), ke(xe + (A ? 1 : 0));
|
|
44360
|
+
}, [de, c, A, Q]), Me(() => {
|
|
44361
44361
|
if (!ye) return;
|
|
44362
44362
|
const xe = window.setTimeout(() => Ce(!1), Lw);
|
|
44363
44363
|
return () => window.clearTimeout(xe);
|
|
44364
44364
|
}, [ye, de]), Me(() => {
|
|
44365
44365
|
if (!Z || c < 2) return;
|
|
44366
44366
|
const xe = Math.max(f, 0.1) * 1e3, ze = window.setInterval(() => {
|
|
44367
|
-
I &&
|
|
44367
|
+
I && Pe || Ee(1);
|
|
44368
44368
|
}, xe);
|
|
44369
44369
|
return () => window.clearInterval(ze);
|
|
44370
|
-
}, [f, c, Ee, Z,
|
|
44370
|
+
}, [f, c, Ee, Z, Pe, I]);
|
|
44371
44371
|
const Ve = $e((xe) => {
|
|
44372
44372
|
const ze = te.current;
|
|
44373
44373
|
if (!ze || ze.pointerId !== xe.pointerId) return;
|
|
@@ -44405,7 +44405,7 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44405
44405
|
if (Te > 0) {
|
|
44406
44406
|
const Oe = Nw(nt, $);
|
|
44407
44407
|
let et = J.current;
|
|
44408
|
-
|
|
44408
|
+
A && (et === 0 || et === c + 1) ? (et = de + 1, J.current = et, ce(!0), ke(et), qe = 0) : qe = Oe + et * Te, Fe(qe);
|
|
44409
44409
|
}
|
|
44410
44410
|
}
|
|
44411
44411
|
ze.setPointerCapture(xe.pointerId), re.current = xe.pointerId, te.current = {
|
|
@@ -44441,7 +44441,7 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44441
44441
|
pt > 0 && (ze.velocity = (it - ze.offset) / pt, ze.lastTime = xe.timeStamp), ze.offset = it, N && Fe(it);
|
|
44442
44442
|
}, at = (xe) => {
|
|
44443
44443
|
Ve(xe);
|
|
44444
|
-
}, rt = $ ? `translate3d(calc(${-ve * 100}% + ${Le}px), 0, 0)` : `translate3d(0, calc(${-ve * 100}% + ${Le}px), 0)`, Ue =
|
|
44444
|
+
}, rt = $ ? `translate3d(calc(${-ve * 100}% + ${Le}px), 0, 0)` : `translate3d(0, calc(${-ve * 100}% + ${Le}px), 0)`, Ue = A ? [s[c - 1], ...s, s[0]] : s;
|
|
44445
44445
|
return /* @__PURE__ */ Y(ft, { children: [
|
|
44446
44446
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Ww(r, n) } }),
|
|
44447
44447
|
/* @__PURE__ */ Y(
|
|
@@ -44488,10 +44488,10 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44488
44488
|
}),
|
|
44489
44489
|
style: N ? {
|
|
44490
44490
|
transform: rt,
|
|
44491
|
-
transition:
|
|
44491
|
+
transition: me || U ? "none" : `transform ${Mo}ms ${Lp}`
|
|
44492
44492
|
} : void 0,
|
|
44493
44493
|
children: Ue.map((xe, ze) => {
|
|
44494
|
-
const qe =
|
|
44494
|
+
const qe = A ? mr(ze - 1, c) : ze, Te = A && (ze === 0 || ze === c + 1) ? `clone-${ze === 0 ? "start" : "end"}` : `slide-${qe}`;
|
|
44495
44495
|
return /* @__PURE__ */ l(
|
|
44496
44496
|
"div",
|
|
44497
44497
|
{
|
|
@@ -44707,8 +44707,8 @@ function Ow({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
44707
44707
|
{
|
|
44708
44708
|
className: `${r}-caption-text-inner`,
|
|
44709
44709
|
style: {
|
|
44710
|
-
"--link-color":
|
|
44711
|
-
"--link-hover-color":
|
|
44710
|
+
"--link-color": F,
|
|
44711
|
+
"--link-hover-color": F,
|
|
44712
44712
|
position: "relative",
|
|
44713
44713
|
top: K(Il.offset.y, n),
|
|
44714
44714
|
left: K(Il.offset.x, n)
|
|
@@ -46802,21 +46802,21 @@ function dS({
|
|
|
46802
46802
|
counterStyle: d,
|
|
46803
46803
|
backgroundColor: u
|
|
46804
46804
|
}) {
|
|
46805
|
-
const f = i === "cover", y = q(null), p = q(null), m = q(null), x = q(0), b = q(0), E = q("none"), h = q(!1), w = q(!1), V = q(!1), G = q(null), [k, L] = ne(null), [M, j] = ne("opening"), [S, C] = ne(0), [H,
|
|
46805
|
+
const f = i === "cover", y = q(null), p = q(null), m = q(null), x = q(0), b = q(0), E = q("none"), h = q(!1), w = q(!1), V = q(!1), G = q(null), [k, L] = ne(null), [M, j] = ne("opening"), [S, C] = ne(0), [H, F] = ne(0), [T, $] = ne(!1), [z, v] = ne(!1), [Z, I] = ne(!1), N = q(n), W = t[n], ee = W ? os(W) : !1, se = H !== 0 || T, O = $e((ye) => {
|
|
46806
46806
|
V.current = ye, $(ye);
|
|
46807
46807
|
}, []), le = $e(() => {
|
|
46808
46808
|
G.current !== null && (window.clearTimeout(G.current), G.current = null);
|
|
46809
|
-
}, []),
|
|
46809
|
+
}, []), A = $e(() => {
|
|
46810
46810
|
le(), G.current = window.setTimeout(() => {
|
|
46811
46811
|
le(), O(!1);
|
|
46812
46812
|
}, oi + 32);
|
|
46813
46813
|
}, [le, O]), de = $e(() => {
|
|
46814
46814
|
const ye = y.current, Ce = p.current;
|
|
46815
46815
|
if (!ye) return;
|
|
46816
|
-
const
|
|
46816
|
+
const Pe = ye.getBoundingClientRect(), g = Pe.width, X = Pe.height;
|
|
46817
46817
|
if (!g || !X) return;
|
|
46818
46818
|
if (i === "cover") {
|
|
46819
|
-
L({ width: g, height: X, left:
|
|
46819
|
+
L({ width: g, height: X, left: Pe.left, top: Pe.top });
|
|
46820
46820
|
return;
|
|
46821
46821
|
}
|
|
46822
46822
|
if (!Ce) {
|
|
@@ -46831,10 +46831,10 @@ function dS({
|
|
|
46831
46831
|
const he = J / oe, D = g / X;
|
|
46832
46832
|
if (he > D) {
|
|
46833
46833
|
const P = g / he;
|
|
46834
|
-
L({ width: g, height: P, left:
|
|
46834
|
+
L({ width: g, height: P, left: Pe.left, top: Pe.top + (X - P) / 2 });
|
|
46835
46835
|
} else {
|
|
46836
46836
|
const P = X * he;
|
|
46837
|
-
L({ width: P, height: X, left:
|
|
46837
|
+
L({ width: P, height: X, left: Pe.left + (g - P) / 2, top: Pe.top });
|
|
46838
46838
|
}
|
|
46839
46839
|
}, [i]);
|
|
46840
46840
|
Me(() => {
|
|
@@ -46853,7 +46853,7 @@ function dS({
|
|
|
46853
46853
|
le();
|
|
46854
46854
|
}, [le]), Ht(() => {
|
|
46855
46855
|
if (N.current === n) return;
|
|
46856
|
-
le(), C(0),
|
|
46856
|
+
le(), C(0), F(0), O(!1), I(!1), v(!1), x.current = 0, b.current = 0, E.current = "none", h.current = !1, m.current = null, w.current = !1;
|
|
46857
46857
|
const ye = y.current;
|
|
46858
46858
|
ye && L(oa(ye)), N.current = n;
|
|
46859
46859
|
}, [n, O, le]), Me(() => {
|
|
@@ -46861,12 +46861,12 @@ function dS({
|
|
|
46861
46861
|
let ye = null;
|
|
46862
46862
|
const Ce = () => {
|
|
46863
46863
|
ye && (document.removeEventListener("click", ye, !0), ye = null);
|
|
46864
|
-
},
|
|
46864
|
+
}, Pe = () => {
|
|
46865
46865
|
Ce(), ye = (D) => {
|
|
46866
46866
|
D.stopPropagation(), D.preventDefault(), Ce();
|
|
46867
46867
|
}, document.addEventListener("click", ye, !0);
|
|
46868
46868
|
}, g = (D) => {
|
|
46869
|
-
le(), V.current = !1, $(!1),
|
|
46869
|
+
le(), V.current = !1, $(!1), F(0), v(!1), h.current = !1, b.current = 0, E.current = "none";
|
|
46870
46870
|
const P = y.current;
|
|
46871
46871
|
P && L(oa(P)), D < 0 ? s() : a();
|
|
46872
46872
|
}, X = (D) => {
|
|
@@ -46874,7 +46874,7 @@ function dS({
|
|
|
46874
46874
|
g(D);
|
|
46875
46875
|
return;
|
|
46876
46876
|
}
|
|
46877
|
-
O(!0),
|
|
46877
|
+
O(!0), F(0), A();
|
|
46878
46878
|
}, J = (D) => {
|
|
46879
46879
|
if (D.touches.length !== 1 || V.current) return;
|
|
46880
46880
|
const P = D.touches[0];
|
|
@@ -46893,7 +46893,7 @@ function dS({
|
|
|
46893
46893
|
return;
|
|
46894
46894
|
}
|
|
46895
46895
|
if (E.current === "horizontal") {
|
|
46896
|
-
h.current = !0, v(!0), b.current = te,
|
|
46896
|
+
h.current = !0, v(!0), b.current = te, F(te), D.preventDefault();
|
|
46897
46897
|
return;
|
|
46898
46898
|
}
|
|
46899
46899
|
E.current === "vertical" && (h.current = !0, v(!0), x.current = re, C(re), D.preventDefault());
|
|
@@ -46901,20 +46901,20 @@ function dS({
|
|
|
46901
46901
|
if (!m.current) return;
|
|
46902
46902
|
const D = E.current, P = h.current;
|
|
46903
46903
|
if (P && D === "horizontal")
|
|
46904
|
-
X(b.current),
|
|
46904
|
+
X(b.current), Pe();
|
|
46905
46905
|
else if (P && D === "vertical")
|
|
46906
46906
|
if (x.current > Kw) {
|
|
46907
46907
|
const re = window.innerHeight;
|
|
46908
46908
|
x.current = re, I(!0), C(re), j("closing");
|
|
46909
46909
|
} else
|
|
46910
|
-
x.current = 0, C(0),
|
|
46911
|
-
else D === "horizontal" && Math.abs(b.current) > 0 && (X(b.current),
|
|
46910
|
+
x.current = 0, C(0), Pe();
|
|
46911
|
+
else D === "horizontal" && Math.abs(b.current) > 0 && (X(b.current), Pe());
|
|
46912
46912
|
m.current = null, E.current = "none", b.current = 0, h.current = !1, v(!1);
|
|
46913
46913
|
};
|
|
46914
46914
|
return document.addEventListener("touchstart", J, { passive: !0 }), document.addEventListener("touchmove", oe, { passive: !1 }), document.addEventListener("touchend", he), document.addEventListener("touchcancel", he), () => {
|
|
46915
46915
|
document.removeEventListener("touchstart", J), document.removeEventListener("touchmove", oe), document.removeEventListener("touchend", he), document.removeEventListener("touchcancel", he), Ce();
|
|
46916
46916
|
};
|
|
46917
|
-
}, [M, t.length, s, a, O,
|
|
46917
|
+
}, [M, t.length, s, a, O, A, le]), Me(() => {
|
|
46918
46918
|
const ye = (Ce) => {
|
|
46919
46919
|
Ce.key === "Escape" && (Ce.preventDefault(), Ce.stopPropagation(), M !== "closing" && j("closing"));
|
|
46920
46920
|
};
|
|
@@ -46922,14 +46922,14 @@ function dS({
|
|
|
46922
46922
|
}, [M]);
|
|
46923
46923
|
const ie = () => {
|
|
46924
46924
|
M !== "closing" && j("closing");
|
|
46925
|
-
}, ve = M === "open", ke = M === "closing", we = S > 0 ? Math.max(0, 1 - S / 500) : 1,
|
|
46925
|
+
}, ve = M === "open", ke = M === "closing", we = S > 0 ? Math.max(0, 1 - S / 500) : 1, pe = S > 0 ? Math.max(0.35, 1 - S / 500) : 1, U = (ye) => {
|
|
46926
46926
|
if (ye.stopPropagation(), w.current) {
|
|
46927
46927
|
w.current = !1;
|
|
46928
46928
|
return;
|
|
46929
46929
|
}
|
|
46930
46930
|
if (t.length <= 1) return;
|
|
46931
|
-
const Ce = ye.currentTarget.getBoundingClientRect(),
|
|
46932
|
-
if (!(
|
|
46931
|
+
const Ce = ye.currentTarget.getBoundingClientRect(), Pe = ye.clientY - Ce.top, g = Math.min(52, Ce.height * 0.2);
|
|
46932
|
+
if (!(Pe > Ce.height - g)) {
|
|
46933
46933
|
if (ye.clientX - Ce.left < Ce.width / 2) {
|
|
46934
46934
|
a();
|
|
46935
46935
|
return;
|
|
@@ -46938,13 +46938,13 @@ function dS({
|
|
|
46938
46938
|
}
|
|
46939
46939
|
}, ce = (ye) => {
|
|
46940
46940
|
if (t.length <= 1) return;
|
|
46941
|
-
const Ce = ye.currentTarget.getBoundingClientRect(),
|
|
46941
|
+
const Ce = ye.currentTarget.getBoundingClientRect(), Pe = ye.clientX - Ce.left, g = ye.clientY - Ce.top, X = Math.min(52, Ce.height * 0.2);
|
|
46942
46942
|
if (g > Ce.height - X) {
|
|
46943
46943
|
ye.currentTarget.style.cursor = "default";
|
|
46944
46944
|
return;
|
|
46945
46945
|
}
|
|
46946
|
-
ye.currentTarget.style.cursor =
|
|
46947
|
-
},
|
|
46946
|
+
ye.currentTarget.style.cursor = Pe < Ce.width / 2 ? "w-resize" : "e-resize";
|
|
46947
|
+
}, me = $e((ye) => {
|
|
46948
46948
|
ye.propertyName !== "transform" || !V.current || (le(), O(!1));
|
|
46949
46949
|
}, [le, O]), be = se ? `translateX(${H}px)` : S > 0 ? `translateY(${S}px)` : void 0, Le = {
|
|
46950
46950
|
position: "fixed",
|
|
@@ -46954,7 +46954,7 @@ function dS({
|
|
|
46954
46954
|
height: k == null ? void 0 : k.height,
|
|
46955
46955
|
objectFit: i === "cover" ? "cover" : "contain",
|
|
46956
46956
|
transform: be,
|
|
46957
|
-
opacity: S > 0 ?
|
|
46957
|
+
opacity: S > 0 ? pe : M === "opening" || ke ? 0 : 1,
|
|
46958
46958
|
transition: z && !T ? "none" : T ? `transform ${oi}ms ${Zi}` : Z ? `transform ${oi}ms ${Zi}, opacity ${oi}ms ${Zi}` : M === "opening" || ke ? `opacity ${oi}ms ${Zi}` : "none",
|
|
46959
46959
|
pointerEvents: ee && ve && !se ? "auto" : "none",
|
|
46960
46960
|
touchAction: ee && ve ? "none" : void 0,
|
|
@@ -47077,7 +47077,7 @@ function dS({
|
|
|
47077
47077
|
onLoadedMetadata: de,
|
|
47078
47078
|
onClick: U,
|
|
47079
47079
|
onMouseMove: ce,
|
|
47080
|
-
onTransitionEnd:
|
|
47080
|
+
onTransitionEnd: me
|
|
47081
47081
|
},
|
|
47082
47082
|
`${n}-${W.url}`
|
|
47083
47083
|
) : /* @__PURE__ */ l(
|
|
@@ -47087,7 +47087,7 @@ function dS({
|
|
|
47087
47087
|
src: W.url,
|
|
47088
47088
|
alt: W.name,
|
|
47089
47089
|
onLoad: de,
|
|
47090
|
-
onTransitionEnd:
|
|
47090
|
+
onTransitionEnd: me,
|
|
47091
47091
|
style: Le
|
|
47092
47092
|
},
|
|
47093
47093
|
`${n}-${W.url}`
|
|
@@ -47385,7 +47385,7 @@ function Ml({
|
|
|
47385
47385
|
const z = new ResizeObserver($);
|
|
47386
47386
|
return z.observe(T), () => z.disconnect();
|
|
47387
47387
|
}, [V, G, j]);
|
|
47388
|
-
const C = /* @__PURE__ */ l("span", { className: `${e}-title-text`, style: c, children: V }), H = k ? /* @__PURE__ */ l("span", { className: d, style: u, children: G }) : null,
|
|
47388
|
+
const C = /* @__PURE__ */ l("span", { className: `${e}-title-text`, style: c, children: V }), H = k ? /* @__PURE__ */ l("span", { className: d, style: u, children: G }) : null, F = k ? /* @__PURE__ */ l(
|
|
47389
47389
|
"div",
|
|
47390
47390
|
{
|
|
47391
47391
|
className: `${e}-title-texts-gap`,
|
|
@@ -47438,11 +47438,11 @@ function Ml({
|
|
|
47438
47438
|
style: { width: "100%" },
|
|
47439
47439
|
children: /* @__PURE__ */ l("div", { className: `${e}-title-texts`, children: S ? /* @__PURE__ */ Y(ft, { children: [
|
|
47440
47440
|
H,
|
|
47441
|
-
|
|
47441
|
+
F,
|
|
47442
47442
|
C
|
|
47443
47443
|
] }) : /* @__PURE__ */ Y(ft, { children: [
|
|
47444
47444
|
C,
|
|
47445
|
-
|
|
47445
|
+
F,
|
|
47446
47446
|
H
|
|
47447
47447
|
] }) })
|
|
47448
47448
|
}
|
|
@@ -47552,12 +47552,12 @@ function yS({
|
|
|
47552
47552
|
portalId: r
|
|
47553
47553
|
}) {
|
|
47554
47554
|
var mt, Et;
|
|
47555
|
-
const { prefix: a } = mn(), s = He(() => Gw(a), [a]), c = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", f = (e == null ? void 0 : e.imgWidth) ?? So, y = (e == null ? void 0 : e.titleWidth) ?? rS, p = aS(e == null ? void 0 : e.imageDisplay), m = (e == null ? void 0 : e.cornerRadius) ?? Vw, x = qw(e == null ? void 0 : e.position), { horizontal: b, vertical: E } = Js(x), h = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleBottomPadding) ?? 0, V = (e == null ? void 0 : e.titleLeftPadding) ?? 0, G = (e == null ? void 0 : e.titleRightPadding) ?? 0, k = (e == null ? void 0 : e.titleDescriptionPadding) ?? 0, L = pS(e == null ? void 0 : e.transition), M = (e == null ? void 0 : e.lightbox) ?? "on", j = u === "b", S = L === "fade" || L === "retype", { setTitleRef: C, dominantIndex: H } = fS(c.length, S, x),
|
|
47556
|
-
width:
|
|
47555
|
+
const { prefix: a } = mn(), s = He(() => Gw(a), [a]), c = t ?? [], d = (e == null ? void 0 : e.wrapperWidth) ?? 1, u = (e == null ? void 0 : e.type) ?? "a", f = (e == null ? void 0 : e.imgWidth) ?? So, y = (e == null ? void 0 : e.titleWidth) ?? rS, p = aS(e == null ? void 0 : e.imageDisplay), m = (e == null ? void 0 : e.cornerRadius) ?? Vw, x = qw(e == null ? void 0 : e.position), { horizontal: b, vertical: E } = Js(x), h = (e == null ? void 0 : e.titleTopPadding) ?? 0, w = (e == null ? void 0 : e.titleBottomPadding) ?? 0, V = (e == null ? void 0 : e.titleLeftPadding) ?? 0, G = (e == null ? void 0 : e.titleRightPadding) ?? 0, k = (e == null ? void 0 : e.titleDescriptionPadding) ?? 0, L = pS(e == null ? void 0 : e.transition), M = (e == null ? void 0 : e.lightbox) ?? "on", j = u === "b", S = L === "fade" || L === "retype", { setTitleRef: C, dominantIndex: H } = fS(c.length, S, x), F = ((mt = c[H]) == null ? void 0 : mt.title) ?? "", T = ((Et = c[H]) == null ? void 0 : Et.description) ?? "", $ = Td(F, L === "retype"), z = Td(T, L === "retype"), v = L === "fade" || L === "retype", Z = L === "retype" ? $ : F, I = L === "retype" ? z : T, N = j ? void 0 : { width: K(f, n ?? !1) }, W = M === "on" && (!n || i || o), ee = o ?? !1, se = (e == null ? void 0 : e.galleryPaddingRight) ?? 0, O = (e == null ? void 0 : e.galleryPaddingLeft) ?? 0, le = (e == null ? void 0 : e.galleryPaddingBetween) ?? 0, A = (Pt) => K(Pt, n ?? !1), ie = {
|
|
47556
|
+
width: A(y)
|
|
47557
47557
|
}, ve = u === "a" ? se : O, ke = j ? { width: "100%" } : {
|
|
47558
|
-
width: `calc(100% - ${
|
|
47558
|
+
width: `calc(100% - ${A(f)} - ${A(ve)})`,
|
|
47559
47559
|
...u === "c" ? { marginLeft: "auto" } : {}
|
|
47560
|
-
}, we = Math.max(se, ai),
|
|
47560
|
+
}, we = Math.max(se, ai), pe = Math.max(O, ai), U = Math.max(le, ai), ce = Math.max(h, ai), me = Math.max(w, ai), be = Math.max(V, ai), Le = Math.max(G, ai), Fe = Math.max(k, ai), ye = Math.max(0, (d ?? 1) - (f ?? So)), Ce = u === "a" ? Math.max(0, (d ?? 1) - (f ?? So) - se) : u === "c" ? Math.max(0, (d ?? 1) - (f ?? So) - O) : u === "b" ? d ?? 1 : 1, Pe = ee && E === "top", g = ee && E === "bottom", X = ee && b === "left", J = ee && b === "right", oe = c.length > 1, he = j ? void 0 : A((u === "c" ? O : se) + (f ?? So)), D = u === "c" && he ? { left: he } : void 0, P = u === "a" && he ? { right: he } : void 0, te = j ? { left: 0, width: "100%" } : u === "a" ? { right: A(se), width: A(f) } : { left: A(O), width: A(f) }, {
|
|
47561
47561
|
titleColor: re,
|
|
47562
47562
|
titleFontFamily: ge,
|
|
47563
47563
|
titleFontSettings: B,
|
|
@@ -47623,7 +47623,7 @@ function yS({
|
|
|
47623
47623
|
xe,
|
|
47624
47624
|
`${a}-description-text`,
|
|
47625
47625
|
`${a}-description-tight-leading`
|
|
47626
|
-
), Lt =
|
|
47626
|
+
), Lt = A(ee ? Fe : k), Ft = {
|
|
47627
47627
|
fontSettings: {
|
|
47628
47628
|
fontFamily: et,
|
|
47629
47629
|
fontWeight: (it == null ? void 0 : it.fontWeight) ?? 400,
|
|
@@ -47674,10 +47674,10 @@ function yS({
|
|
|
47674
47674
|
className: `${a}-wrapper`,
|
|
47675
47675
|
style: {
|
|
47676
47676
|
width: K(d, n ?? !1),
|
|
47677
|
-
[`--${a}-title-top-padding`]: E === "top" ?
|
|
47678
|
-
[`--${a}-title-bottom-padding`]: E === "bottom" ?
|
|
47679
|
-
[`--${a}-title-left-padding`]: b === "left" ?
|
|
47680
|
-
[`--${a}-title-right-padding`]: b === "right" ?
|
|
47677
|
+
[`--${a}-title-top-padding`]: E === "top" ? A(h) : void 0,
|
|
47678
|
+
[`--${a}-title-bottom-padding`]: E === "bottom" ? A(w) : void 0,
|
|
47679
|
+
[`--${a}-title-left-padding`]: b === "left" ? A(V) : void 0,
|
|
47680
|
+
[`--${a}-title-right-padding`]: b === "right" ? A(G) : void 0
|
|
47681
47681
|
},
|
|
47682
47682
|
children: [
|
|
47683
47683
|
v && /* @__PURE__ */ l("div", { className: `${a}-single-title-layer`, children: /* @__PURE__ */ l(
|
|
@@ -47701,10 +47701,10 @@ function yS({
|
|
|
47701
47701
|
descriptionPadding: Lt,
|
|
47702
47702
|
showTextBoxOutline: ee,
|
|
47703
47703
|
showDescriptionPaddingControl: ee,
|
|
47704
|
-
topPaddingControl:
|
|
47704
|
+
topPaddingControl: Pe ? ra({
|
|
47705
47705
|
P: a,
|
|
47706
47706
|
controlKey: "titleTopPadding",
|
|
47707
|
-
scaled:
|
|
47707
|
+
scaled: A,
|
|
47708
47708
|
height: ce,
|
|
47709
47709
|
paired: !1,
|
|
47710
47710
|
side: "top"
|
|
@@ -47712,8 +47712,8 @@ function yS({
|
|
|
47712
47712
|
bottomPaddingControl: g ? ra({
|
|
47713
47713
|
P: a,
|
|
47714
47714
|
controlKey: "titleBottomPadding",
|
|
47715
|
-
scaled:
|
|
47716
|
-
height:
|
|
47715
|
+
scaled: A,
|
|
47716
|
+
height: me,
|
|
47717
47717
|
paired: !1,
|
|
47718
47718
|
side: "bottom"
|
|
47719
47719
|
}) : void 0
|
|
@@ -47734,10 +47734,10 @@ function yS({
|
|
|
47734
47734
|
showTextBoxOutline: ee && !v,
|
|
47735
47735
|
showDescriptionPaddingControl: ee && !v,
|
|
47736
47736
|
descriptionPaddingPaired: oe,
|
|
47737
|
-
topPaddingControl:
|
|
47737
|
+
topPaddingControl: Pe && !v ? ra({
|
|
47738
47738
|
P: a,
|
|
47739
47739
|
controlKey: "titleTopPadding",
|
|
47740
|
-
scaled:
|
|
47740
|
+
scaled: A,
|
|
47741
47741
|
height: ce,
|
|
47742
47742
|
paired: oe,
|
|
47743
47743
|
side: "top"
|
|
@@ -47745,8 +47745,8 @@ function yS({
|
|
|
47745
47745
|
bottomPaddingControl: g && !v ? ra({
|
|
47746
47746
|
P: a,
|
|
47747
47747
|
controlKey: "titleBottomPadding",
|
|
47748
|
-
scaled:
|
|
47749
|
-
height:
|
|
47748
|
+
scaled: A,
|
|
47749
|
+
height: me,
|
|
47750
47750
|
paired: oe,
|
|
47751
47751
|
side: "bottom"
|
|
47752
47752
|
}) : void 0
|
|
@@ -47757,13 +47757,13 @@ function yS({
|
|
|
47757
47757
|
"data-item-index": wt,
|
|
47758
47758
|
className: `${a}-item ${a}-item-${u}`,
|
|
47759
47759
|
style: {
|
|
47760
|
-
paddingBottom: Xt ?
|
|
47760
|
+
paddingBottom: Xt ? A(le) : void 0
|
|
47761
47761
|
},
|
|
47762
47762
|
children: [
|
|
47763
47763
|
X && Sd({
|
|
47764
47764
|
P: a,
|
|
47765
47765
|
controlKey: "titleLeftPadding",
|
|
47766
|
-
scaled:
|
|
47766
|
+
scaled: A,
|
|
47767
47767
|
width: be,
|
|
47768
47768
|
maxFraction: Ce,
|
|
47769
47769
|
side: "left",
|
|
@@ -47773,7 +47773,7 @@ function yS({
|
|
|
47773
47773
|
J && Sd({
|
|
47774
47774
|
P: a,
|
|
47775
47775
|
controlKey: "titleRightPadding",
|
|
47776
|
-
scaled:
|
|
47776
|
+
scaled: A,
|
|
47777
47777
|
width: Le,
|
|
47778
47778
|
maxFraction: Ce,
|
|
47779
47779
|
side: "right",
|
|
@@ -47790,7 +47790,7 @@ function yS({
|
|
|
47790
47790
|
className: `${a}-control-anchor`,
|
|
47791
47791
|
style: {
|
|
47792
47792
|
bottom: 0,
|
|
47793
|
-
height:
|
|
47793
|
+
height: A(U),
|
|
47794
47794
|
...te
|
|
47795
47795
|
}
|
|
47796
47796
|
}
|
|
@@ -47841,10 +47841,10 @@ function yS({
|
|
|
47841
47841
|
galleryPaddingRight: se,
|
|
47842
47842
|
galleryPaddingLeft: O,
|
|
47843
47843
|
galleryPaddingRightWidth: we,
|
|
47844
|
-
galleryPaddingLeftWidth:
|
|
47844
|
+
galleryPaddingLeftWidth: pe,
|
|
47845
47845
|
galleryPaddingMaxFraction: ye,
|
|
47846
47846
|
showControls: ee,
|
|
47847
|
-
scaled:
|
|
47847
|
+
scaled: A,
|
|
47848
47848
|
children: At.map(({ displayMedia: Wt, lightboxMedia: Ut }, zt) => {
|
|
47849
47849
|
const vt = Ut ? Dt.findIndex((_) => _.url === Ut.url) : -1;
|
|
47850
47850
|
return /* @__PURE__ */ l(
|
|
@@ -51126,12 +51126,12 @@ function t$({
|
|
|
51126
51126
|
const { prefix: o } = mn(), r = q(null), a = El(
|
|
51127
51127
|
(e == null ? void 0 : e.width) ?? (e == null ? void 0 : e.spread) ?? (e == null ? void 0 : e.wrapperWidth),
|
|
51128
51128
|
CS
|
|
51129
|
-
), s = El(e == null ? void 0 : e.imageWidth, TS), c = El(e == null ? void 0 : e.turnHeight, LS), d = Ld(e == null ? void 0 : e.itemsPerTurn, PS, 3, 40), u = Ld(e == null ? void 0 : e.turns, IS, 1, 30), f = Math.min(MS, Math.max(0, RS)), y = Math.min(1, Math.max(0, kS)), p = Math.max(0, (e == null ? void 0 : e.speed) ?? Ip), m = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", x = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", b = (e == null ? void 0 : e.cornerRadius) ?? 0, E = (e == null ? void 0 : e.blur) !== "off", h = He(() => WS(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), w = h.display === "cover", V = (
|
|
51129
|
+
), s = El(e == null ? void 0 : e.imageWidth, TS), c = El(e == null ? void 0 : e.turnHeight, LS), d = Ld(e == null ? void 0 : e.itemsPerTurn, PS, 3, 40), u = Ld(e == null ? void 0 : e.turns, IS, 1, 30), f = Math.min(MS, Math.max(0, RS)), y = Math.min(1, Math.max(0, kS)), p = Math.max(0, (e == null ? void 0 : e.speed) ?? Ip), m = (e == null ? void 0 : e.direction) === "left" ? "left" : "right", x = (e == null ? void 0 : e.playback) === "scroll" ? "scroll" : "autoplay", b = (e == null ? void 0 : e.cornerRadius) ?? 0, E = (e == null ? void 0 : e.blur) !== "off", h = He(() => WS(e == null ? void 0 : e.imageDisplay), [e == null ? void 0 : e.imageDisplay]), w = h.display === "cover", V = (A) => K(A, n ?? !1), G = He(() => zS(f), [f]), k = He(
|
|
51130
51130
|
() => VS(a, s, w, y),
|
|
51131
51131
|
[a, s, w, y]
|
|
51132
51132
|
), L = He(() => HS(o), [o]), M = He(
|
|
51133
51133
|
() => ({
|
|
51134
|
-
scaled: (
|
|
51134
|
+
scaled: (A) => K(A, n ?? !1),
|
|
51135
51135
|
width: a,
|
|
51136
51136
|
orbitRadius: k,
|
|
51137
51137
|
depthFactor: f,
|
|
@@ -51140,56 +51140,56 @@ function t$({
|
|
|
51140
51140
|
}),
|
|
51141
51141
|
[n, a, k, f, G, E]
|
|
51142
51142
|
), j = q([]), S = q(0), C = He(
|
|
51143
|
-
() => (t ?? []).filter((
|
|
51143
|
+
() => (t ?? []).filter((A) => {
|
|
51144
51144
|
var de;
|
|
51145
|
-
return !!((de =
|
|
51145
|
+
return !!((de = A.image) != null && de.url);
|
|
51146
51146
|
}),
|
|
51147
51147
|
[t]
|
|
51148
|
-
), H = c / d,
|
|
51149
|
-
() => Array.from({ length: se }, (
|
|
51148
|
+
), H = c / d, F = s * OS(h), T = Math.min(SS, u * d), $ = $S * d, z = T + $ * 2, Z = Math.max(0, u - 1) * c + (d - 1) * H, I = p > 0, N = x === "scroll" && I, W = x === "autoplay" && I && (n ? !!i : !0), ee = W ? 360 / (p * wS) : 0, se = C.length === 0 ? 0 : z, O = He(
|
|
51149
|
+
() => Array.from({ length: se }, (A, de) => ZS(de - $, d)),
|
|
51150
51150
|
[se, $, d]
|
|
51151
51151
|
);
|
|
51152
51152
|
Me(() => {
|
|
51153
51153
|
if (!W && !N) return;
|
|
51154
|
-
const
|
|
51155
|
-
if (!
|
|
51156
|
-
const de = (
|
|
51157
|
-
S.current =
|
|
51154
|
+
const A = r.current;
|
|
51155
|
+
if (!A) return;
|
|
51156
|
+
const de = (me) => {
|
|
51157
|
+
S.current = me, O.forEach((be, Le) => {
|
|
51158
51158
|
const Fe = j.current[Le];
|
|
51159
51159
|
if (!Fe) return;
|
|
51160
|
-
const ye = Pd(M, ba(be +
|
|
51160
|
+
const ye = Pd(M, ba(be + me));
|
|
51161
51161
|
Fe.style.transform = ye.transform, Fe.style.zIndex = String(ye.zIndex), Fe.style.opacity = String(ye.opacity), Fe.style.filter = ye.filter;
|
|
51162
51162
|
});
|
|
51163
51163
|
};
|
|
51164
51164
|
if (N) {
|
|
51165
|
-
const
|
|
51166
|
-
const
|
|
51167
|
-
if (
|
|
51168
|
-
const
|
|
51169
|
-
de(e$(
|
|
51165
|
+
const me = A.ownerDocument.defaultView ?? window, be = () => {
|
|
51166
|
+
const Fe = A.getBoundingClientRect(), ye = me.innerHeight || A.ownerDocument.documentElement.clientHeight, Ce = ye + Fe.height;
|
|
51167
|
+
if (Ce <= 0) return;
|
|
51168
|
+
const Pe = Math.min(1, Math.max(0, (ye - Fe.top) / Ce));
|
|
51169
|
+
de(e$(Pe, p, m));
|
|
51170
51170
|
};
|
|
51171
|
-
|
|
51172
|
-
const
|
|
51173
|
-
return
|
|
51174
|
-
|
|
51171
|
+
be(), me.addEventListener("scroll", be, { passive: !0, capture: !0 }), me.addEventListener("resize", be);
|
|
51172
|
+
const Le = new ResizeObserver(be);
|
|
51173
|
+
return Le.observe(A), () => {
|
|
51174
|
+
me.removeEventListener("scroll", be, { capture: !0 }), me.removeEventListener("resize", be), Le.disconnect();
|
|
51175
51175
|
};
|
|
51176
51176
|
}
|
|
51177
51177
|
const ie = m === "left" ? -1 : 1;
|
|
51178
51178
|
let ve = null, ke = null;
|
|
51179
|
-
const we = (
|
|
51179
|
+
const we = (me) => {
|
|
51180
51180
|
if (ke !== null) {
|
|
51181
|
-
const be = (
|
|
51181
|
+
const be = (me - ke) / 1e3 / ee * ie;
|
|
51182
51182
|
S.current = ba(S.current + be);
|
|
51183
51183
|
}
|
|
51184
|
-
ke =
|
|
51185
|
-
},
|
|
51184
|
+
ke = me, de(S.current), ve = requestAnimationFrame(we);
|
|
51185
|
+
}, pe = () => {
|
|
51186
51186
|
ve === null && (ke = null, ve = requestAnimationFrame(we));
|
|
51187
51187
|
}, U = () => {
|
|
51188
51188
|
ve !== null && cancelAnimationFrame(ve), ve = null;
|
|
51189
|
-
}, ce = new IntersectionObserver(([
|
|
51190
|
-
|
|
51189
|
+
}, ce = new IntersectionObserver(([me]) => {
|
|
51190
|
+
me != null && me.isIntersecting ? pe() : U();
|
|
51191
51191
|
});
|
|
51192
|
-
return ce.observe(
|
|
51192
|
+
return ce.observe(A), () => {
|
|
51193
51193
|
U(), ce.disconnect();
|
|
51194
51194
|
};
|
|
51195
51195
|
}, [W, N, O, M, ee, p, m]);
|
|
@@ -51208,21 +51208,21 @@ function t$({
|
|
|
51208
51208
|
width: V(a),
|
|
51209
51209
|
height: V(Z)
|
|
51210
51210
|
},
|
|
51211
|
-
children: Array.from({ length: z }, (
|
|
51212
|
-
const ie = de - $, ke = C[Ap(ie, C.length)].image, we = Qs(ie, d),
|
|
51211
|
+
children: Array.from({ length: z }, (A, de) => {
|
|
51212
|
+
const ie = de - $, ke = C[Ap(ie, C.length)].image, we = Qs(ie, d), pe = O[de], U = QS(ie, d, c, H), ce = y === 0 ? 0 : (Id(we + 7.3) - 0.5) * y * H, me = w ? 1 : 1 + (Id(we + 3.1) - 0.5) * 2 * Rp * (0.35 + y), be = s * me, Le = {
|
|
51213
51213
|
"--helix-base-w": V(be),
|
|
51214
|
-
...w ? { "--helix-base-h": V(
|
|
51214
|
+
...w ? { "--helix-base-h": V(F) } : {}
|
|
51215
51215
|
}, Fe = {
|
|
51216
51216
|
top: V(U + ce),
|
|
51217
51217
|
...Le,
|
|
51218
|
-
...Pd(M, ba(
|
|
51218
|
+
...Pd(M, ba(pe + le))
|
|
51219
51219
|
}, ye = b > 0 ? { borderRadius: V(b) } : {}, Ce = w ? {
|
|
51220
51220
|
...ye,
|
|
51221
51221
|
width: "100%",
|
|
51222
51222
|
height: "100%",
|
|
51223
51223
|
objectFit: "cover",
|
|
51224
51224
|
objectPosition: "center"
|
|
51225
|
-
} : ye,
|
|
51225
|
+
} : ye, Pe = DS(ke) ? /* @__PURE__ */ l(
|
|
51226
51226
|
"video",
|
|
51227
51227
|
{
|
|
51228
51228
|
className: `${o}-media`,
|
|
@@ -51253,7 +51253,7 @@ function t$({
|
|
|
51253
51253
|
},
|
|
51254
51254
|
className: w ? `${o}-item ${o}-item-cover` : `${o}-item`,
|
|
51255
51255
|
style: Fe,
|
|
51256
|
-
children: w ? /* @__PURE__ */ l("div", { className: `${o}-cover`, style: ye, children:
|
|
51256
|
+
children: w ? /* @__PURE__ */ l("div", { className: `${o}-cover`, style: ye, children: Pe }) : Pe
|
|
51257
51257
|
},
|
|
51258
51258
|
`${u}-${d}-${ie}`
|
|
51259
51259
|
);
|
|
@@ -51666,9 +51666,10 @@ export function Helix({
|
|
|
51666
51666
|
};
|
|
51667
51667
|
|
|
51668
51668
|
if (useScrollMotion) {
|
|
51669
|
+
const view = element.ownerDocument.defaultView ?? window;
|
|
51669
51670
|
const update = () => {
|
|
51670
51671
|
const rect = element.getBoundingClientRect();
|
|
51671
|
-
const viewportHeight =
|
|
51672
|
+
const viewportHeight = view.innerHeight || element.ownerDocument.documentElement.clientHeight;
|
|
51672
51673
|
const range = viewportHeight + rect.height;
|
|
51673
51674
|
if (range <= 0) return;
|
|
51674
51675
|
const scrollProgress = Math.min(1, Math.max(0, (viewportHeight - rect.top) / range));
|
|
@@ -51676,13 +51677,13 @@ export function Helix({
|
|
|
51676
51677
|
};
|
|
51677
51678
|
|
|
51678
51679
|
update();
|
|
51679
|
-
|
|
51680
|
-
|
|
51680
|
+
view.addEventListener('scroll', update, { passive: true, capture: true });
|
|
51681
|
+
view.addEventListener('resize', update);
|
|
51681
51682
|
const resizeObserver = new ResizeObserver(update);
|
|
51682
51683
|
resizeObserver.observe(element);
|
|
51683
51684
|
return () => {
|
|
51684
|
-
|
|
51685
|
-
|
|
51685
|
+
view.removeEventListener('scroll', update, { capture: true });
|
|
51686
|
+
view.removeEventListener('resize', update);
|
|
51686
51687
|
resizeObserver.disconnect();
|
|
51687
51688
|
};
|
|
51688
51689
|
}
|
|
@@ -53344,24 +53345,24 @@ function V$({
|
|
|
53344
53345
|
onUpdateSettings: f,
|
|
53345
53346
|
onOpenChange: y
|
|
53346
53347
|
}) {
|
|
53347
|
-
const { prefix: p } = mn(), m = q(null), x = q(null), b = q(null), E = q(null), h = q(null), w = q(0), V = q(null), G = q(c), k = He(() => A$(p), [p]), [L, M] = ne(!1), [j, S] = ne(!1), [C, H] = ne(!1),
|
|
53348
|
+
const { prefix: p } = mn(), m = q(null), x = q(null), b = q(null), E = q(null), h = q(null), w = q(0), V = q(null), G = q(c), k = He(() => A$(p), [p]), [L, M] = ne(!1), [j, S] = ne(!1), [C, H] = ne(!1), F = c$(r), T = He(() => new Set(s), [s]), $ = (jt) => !!(jt && T.has(jt)), v = !!(t && !i && F === "open" && !$("open")) || !(t && !i) && L, Z = v && !(t && !i);
|
|
53348
53349
|
Ys(Z);
|
|
53349
|
-
const I = !$("compact") && !$("onScroll"), N = !t || !!i && !n, W = o && o !== "default" ? o : void 0, ee = I &&
|
|
53350
|
-
ee !== se && (O(ee), de &&
|
|
53350
|
+
const I = !$("compact") && !$("onScroll"), N = !t || !!i && !n, W = o && o !== "default" ? o : void 0, ee = I && F === "compact" ? "compact" : "default", [se, O] = ne(ee), [le, A] = ne(!1), de = !n;
|
|
53351
|
+
ee !== se && (O(ee), de && A(!0));
|
|
53351
53352
|
const ie = Op(e), {
|
|
53352
53353
|
logo: ve,
|
|
53353
53354
|
logoMaxHeight: ke = 120 / 1440,
|
|
53354
53355
|
logoPosition: we = "left",
|
|
53355
|
-
panelHeight:
|
|
53356
|
+
panelHeight: pe = 60 / 1440,
|
|
53356
53357
|
backgroundColor: U = "#b3b3b3",
|
|
53357
53358
|
logoColor: ce = "#000000",
|
|
53358
|
-
position:
|
|
53359
|
+
position: me,
|
|
53359
53360
|
horizontalAlign: be,
|
|
53360
53361
|
verticalAlign: Le,
|
|
53361
53362
|
iconColor: Fe = "#000000",
|
|
53362
53363
|
showIcon: ye = "on",
|
|
53363
53364
|
iconSize: Ce = 16 / 1440,
|
|
53364
|
-
linkColor:
|
|
53365
|
+
linkColor: Pe = "#000000",
|
|
53365
53366
|
openLinkColor: g = "#000000",
|
|
53366
53367
|
compactIconColor: X = "#000000",
|
|
53367
53368
|
compactCloseButtonColor: J = "#000000",
|
|
@@ -53424,13 +53425,13 @@ function V$({
|
|
|
53424
53425
|
stateOverrides: mt,
|
|
53425
53426
|
link: Et
|
|
53426
53427
|
} = ie, { horizontalAlign: Pt, verticalAlign: wt } = $$({
|
|
53427
|
-
position:
|
|
53428
|
+
position: me,
|
|
53428
53429
|
horizontalAlign: be,
|
|
53429
53430
|
verticalAlign: Le
|
|
53430
|
-
}), At = ee === "compact", Xt = At ? P : ke, Dt = d$(At ? te : we), Jt = At ? re :
|
|
53431
|
+
}), At = ee === "compact", Xt = At ? P : ke, Dt = d$(At ? te : we), Jt = At ? re : pe, Wt = At ? B : Ce, Ut = At ? Ee : We, zt = u$(At ? Se : bt), vt = (At ? Q : Xe) ?? 0, _ = At ? Be : Ze, Re = At ? Ve : ht, Ke = At ? st : fe, De = Ut ?? je, St = v || (At ? ge : ye) !== "off", Bt = Hi(p, {
|
|
53431
53432
|
iconColor: Fe,
|
|
53432
53433
|
closeButtonColor: it,
|
|
53433
|
-
linkColor:
|
|
53434
|
+
linkColor: Pe,
|
|
53434
53435
|
openLinkColor: g,
|
|
53435
53436
|
compactIconColor: X,
|
|
53436
53437
|
compactCloseButtonColor: J,
|
|
@@ -53497,9 +53498,9 @@ function V$({
|
|
|
53497
53498
|
ni,
|
|
53498
53499
|
$n
|
|
53499
53500
|
);
|
|
53500
|
-
},
|
|
53501
|
+
}, Ie = pt === "left" || pt === "right" ? { width: `${ct}%` } : { height: `${ct}%` }, tt = {
|
|
53501
53502
|
...P$(zi, t),
|
|
53502
|
-
...
|
|
53503
|
+
...Ie,
|
|
53503
53504
|
alignItems: E$[Pt],
|
|
53504
53505
|
justifyContent: M$[wt]
|
|
53505
53506
|
}, R = q(e), ae = q(c);
|
|
@@ -53532,8 +53533,8 @@ function V$({
|
|
|
53532
53533
|
transform: Ed(hn)
|
|
53533
53534
|
}, gt = on.className, _t = (ve == null ? void 0 : ve.mode) !== "Off", Vt = (ve == null ? void 0 : ve.icon) ?? "", dn = _$(Vt), un = $n(Math.min(Xt, Jt)), ii = !!(_t && Vt && Dt === "right") ? "left" : "right", Vi = Array.isArray(Et) ? Et : [], po = [
|
|
53534
53535
|
ee !== "default" ? `${p}-state-${ee}` : "",
|
|
53535
|
-
|
|
53536
|
-
W && W !== ee && W !==
|
|
53536
|
+
F === "open" ? `${p}-state-open` : "",
|
|
53537
|
+
W && W !== ee && W !== F ? `${p}-state-${W}` : ""
|
|
53537
53538
|
].filter(Boolean).join(" "), Za = t && !i ? `${p}-editor` : "", Dr = N ? `${p}-interactive` : "", Yp = de && (ee !== se || le) ? `${p}-nav-state-anim` : "", Zp = v ? `${p}-open` : "", Jp = He(
|
|
53538
53539
|
() => B$(m.current),
|
|
53539
53540
|
[j, v, c]
|
|
@@ -53557,7 +53558,7 @@ function V$({
|
|
|
53557
53558
|
Me(() => {
|
|
53558
53559
|
if (!le) return;
|
|
53559
53560
|
const jt = window.setTimeout(() => {
|
|
53560
|
-
|
|
53561
|
+
A(!1);
|
|
53561
53562
|
}, sn);
|
|
53562
53563
|
return () => window.clearTimeout(jt);
|
|
53563
53564
|
}, [le, ee]), Me(() => {
|
|
@@ -53601,8 +53602,8 @@ function V$({
|
|
|
53601
53602
|
};
|
|
53602
53603
|
return window.addEventListener("keydown", jt), () => window.removeEventListener("keydown", jt);
|
|
53603
53604
|
}, [v, t, i]), Me(() => {
|
|
53604
|
-
t && !i &&
|
|
53605
|
-
}, [t, i,
|
|
53605
|
+
t && !i && F !== "open" && M(!1);
|
|
53606
|
+
}, [t, i, F]), Me(() => {
|
|
53606
53607
|
i && M(!1);
|
|
53607
53608
|
}, [i]);
|
|
53608
53609
|
const oc = ni && v, tm = (jt) => Vi.filter((nn) => h$(nn, c)).map((nn, xn) => {
|
|
@@ -53743,7 +53744,7 @@ function V$({
|
|
|
53743
53744
|
height: K(Jt, t),
|
|
53744
53745
|
minHeight: K(Jt, t),
|
|
53745
53746
|
[`--${p}-panel-height`]: K(Jt, t)
|
|
53746
|
-
}, am = a && ee === "default" &&
|
|
53747
|
+
}, am = a && ee === "default" && F !== "open" && !i ? $n(pe + a$) : "0px";
|
|
53747
53748
|
return /* @__PURE__ */ Y(
|
|
53748
53749
|
"div",
|
|
53749
53750
|
{
|
|
@@ -57599,13 +57600,13 @@ function wC(e, t, n, i, o, r, a) {
|
|
|
57599
57600
|
const E = o === r ? -1 : 1, h = s * s * x * x + c * c * m * m, w = Math.max(0, s * s * c * c - h), V = h === 0 ? 0 : E * Math.sqrt(w / h), G = V * s * x / c, k = -V * c * m / s, L = u * G - f * k + (e.x + a.x) / 2, M = f * G + u * k + (e.y + a.y) / 2, j = Math.atan2((x - k) / c, (m - G) / s);
|
|
57600
57601
|
let C = Math.atan2((-x - k) / c, (-m - G) / s) - j;
|
|
57601
57602
|
!r && C > 0 && (C -= Math.PI * 2), r && C < 0 && (C += Math.PI * 2);
|
|
57602
|
-
const H = Math.max(1, Math.ceil(Math.abs(C) / (Math.PI / 2))),
|
|
57603
|
+
const H = Math.max(1, Math.ceil(Math.abs(C) / (Math.PI / 2))), F = C / H, T = 4 / 3 * Math.tan(F / 4), $ = (Z, I) => ({
|
|
57603
57604
|
x: L + u * s * Z - f * c * I,
|
|
57604
57605
|
y: M + f * s * Z + u * c * I
|
|
57605
57606
|
}), z = [];
|
|
57606
57607
|
let v = j;
|
|
57607
57608
|
for (let Z = 0; Z < H; Z += 1) {
|
|
57608
|
-
const I = v +
|
|
57609
|
+
const I = v + F, N = Math.cos(v), W = Math.sin(v), ee = Math.cos(I), se = Math.sin(I);
|
|
57609
57610
|
z.push({
|
|
57610
57611
|
c1: $(N - T * W, W + T * N),
|
|
57611
57612
|
c2: $(ee + T * se, se - T * ee),
|
|
@@ -58082,50 +58083,50 @@ function DC({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
|
|
|
58082
58083
|
E.current = { focalX: c, focalY: d, scale: u };
|
|
58083
58084
|
const h = a === "image";
|
|
58084
58085
|
Me(() => {
|
|
58085
|
-
var
|
|
58086
|
-
h && ((
|
|
58086
|
+
var F;
|
|
58087
|
+
h && ((F = p.current) == null || F.focus({ preventScroll: !0 }));
|
|
58087
58088
|
}, [h]);
|
|
58088
|
-
const w = $e((
|
|
58089
|
+
const w = $e((F, T) => {
|
|
58089
58090
|
var z;
|
|
58090
58091
|
const $ = (z = p.current) == null ? void 0 : z.getBoundingClientRect();
|
|
58091
58092
|
return !$ || $.width <= 0 || $.height <= 0 ? { x: 0, y: 0 } : {
|
|
58092
|
-
x: (
|
|
58093
|
+
x: (F - $.left) / $.width * t.width,
|
|
58093
58094
|
y: (T - $.top) / $.height * t.height
|
|
58094
58095
|
};
|
|
58095
|
-
}, [t.width, t.height]), V = (
|
|
58096
|
+
}, [t.width, t.height]), V = (F) => {
|
|
58096
58097
|
var $, z;
|
|
58097
58098
|
if (!i) return;
|
|
58098
|
-
|
|
58099
|
+
F.stopPropagation(), F.preventDefault(), ($ = p.current) == null || $.focus({ preventScroll: !0 });
|
|
58099
58100
|
const T = no(n, i, u);
|
|
58100
58101
|
x.current = {
|
|
58101
|
-
pointerId:
|
|
58102
|
-
origin: w(
|
|
58102
|
+
pointerId: F.pointerId,
|
|
58103
|
+
origin: w(F.clientX, F.clientY),
|
|
58103
58104
|
startX: Un(n.width, T.width, c),
|
|
58104
58105
|
startY: Un(n.height, T.height, d),
|
|
58105
58106
|
width: T.width,
|
|
58106
58107
|
height: T.height,
|
|
58107
58108
|
moved: !1
|
|
58108
|
-
}, (z = p.current) == null || z.setPointerCapture(
|
|
58109
|
-
}, G = (
|
|
58109
|
+
}, (z = p.current) == null || z.setPointerCapture(F.pointerId);
|
|
58110
|
+
}, G = (F, T) => {
|
|
58110
58111
|
var ee, se;
|
|
58111
58112
|
if (!i) return;
|
|
58112
|
-
|
|
58113
|
+
F.stopPropagation(), F.preventDefault(), (ee = p.current) == null || ee.focus({ preventScroll: !0 });
|
|
58113
58114
|
const $ = no(n, i, u), z = Un(n.width, $.width, c), v = Un(n.height, $.height, d), Z = { minX: z, minY: v, maxX: z + $.width, maxY: v + $.height }, I = Fa(Z, qp(T)), N = Fa(Z, T), W = Math.hypot(N.x - I.x, N.y - I.y);
|
|
58114
58115
|
!isFinite(W) || W <= 0 || (b.current = {
|
|
58115
|
-
pointerId:
|
|
58116
|
+
pointerId: F.pointerId,
|
|
58116
58117
|
anchor: I,
|
|
58117
58118
|
startDistance: W,
|
|
58118
58119
|
startScale: u,
|
|
58119
58120
|
startX: z,
|
|
58120
58121
|
startY: v,
|
|
58121
58122
|
moved: !1
|
|
58122
|
-
}, (se = p.current) == null || se.setPointerCapture(
|
|
58123
|
-
}, k = (
|
|
58123
|
+
}, (se = p.current) == null || se.setPointerCapture(F.pointerId));
|
|
58124
|
+
}, k = (F) => {
|
|
58124
58125
|
if (!i) return;
|
|
58125
58126
|
const T = b.current;
|
|
58126
|
-
if (T &&
|
|
58127
|
-
|
|
58128
|
-
const z = w(
|
|
58127
|
+
if (T && F.pointerId === T.pointerId) {
|
|
58128
|
+
F.stopPropagation(), F.preventDefault();
|
|
58129
|
+
const z = w(F.clientX, F.clientY), v = { x: z.x - n.x, y: z.y - n.y }, Z = Math.hypot(v.x - T.anchor.x, v.y - T.anchor.y), I = Math.min(
|
|
58129
58130
|
gs,
|
|
58130
58131
|
Math.max(ms, T.startScale * (Z / T.startDistance))
|
|
58131
58132
|
);
|
|
@@ -58140,9 +58141,9 @@ function DC({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
|
|
|
58140
58141
|
return;
|
|
58141
58142
|
}
|
|
58142
58143
|
const $ = x.current;
|
|
58143
|
-
if ($ &&
|
|
58144
|
-
|
|
58145
|
-
const z = w(
|
|
58144
|
+
if ($ && F.pointerId === $.pointerId) {
|
|
58145
|
+
F.stopPropagation(), F.preventDefault();
|
|
58146
|
+
const z = w(F.clientX, F.clientY), v = z.x - $.origin.x, Z = z.y - $.origin.y;
|
|
58146
58147
|
if (!$.moved && v === 0 && Z === 0) return;
|
|
58147
58148
|
$.moved = !0, f({
|
|
58148
58149
|
focalX: Po(n.width, $.width, $.startX + v),
|
|
@@ -58150,27 +58151,27 @@ function DC({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
|
|
|
58150
58151
|
scale: u
|
|
58151
58152
|
});
|
|
58152
58153
|
}
|
|
58153
|
-
}, L = (
|
|
58154
|
+
}, L = (F) => {
|
|
58154
58155
|
var z, v;
|
|
58155
58156
|
const T = x.current;
|
|
58156
|
-
if (T &&
|
|
58157
|
-
x.current = null,
|
|
58157
|
+
if (T && F.pointerId === T.pointerId) {
|
|
58158
|
+
x.current = null, F.stopPropagation(), (z = p.current) != null && z.hasPointerCapture(T.pointerId) && p.current.releasePointerCapture(T.pointerId), T.moved && y(E.current);
|
|
58158
58159
|
return;
|
|
58159
58160
|
}
|
|
58160
58161
|
const $ = b.current;
|
|
58161
|
-
$ &&
|
|
58162
|
-
}, M = (
|
|
58163
|
-
if (
|
|
58164
|
-
|
|
58162
|
+
$ && F.pointerId === $.pointerId && (b.current = null, F.stopPropagation(), (v = p.current) != null && v.hasPointerCapture($.pointerId) && p.current.releasePointerCapture($.pointerId), $.moved && y(E.current));
|
|
58163
|
+
}, M = (F) => {
|
|
58164
|
+
if (F.key === "Escape") {
|
|
58165
|
+
F.stopPropagation(), s("none");
|
|
58165
58166
|
return;
|
|
58166
58167
|
}
|
|
58167
|
-
if (
|
|
58168
|
-
|
|
58169
|
-
const T =
|
|
58168
|
+
if (F.key === "=" || F.key === "+" || F.key === "-" || F.key === "_") {
|
|
58169
|
+
F.preventDefault(), F.stopPropagation();
|
|
58170
|
+
const T = F.key === "=" || F.key === "+", $ = Math.min(gs, Math.max(ms, u * (T ? ou : 1 / ou))), z = { focalX: c, focalY: d, scale: $ };
|
|
58170
58171
|
f(z), y(z);
|
|
58171
58172
|
}
|
|
58172
58173
|
}, j = ["nw", "ne", "se", "sw"], S = { minX: n.x, minY: n.y, maxX: n.x + n.width, maxY: n.y + n.height }, C = He(() => {
|
|
58173
|
-
const
|
|
58174
|
+
const F = i ?? { width: n.width, height: n.height }, T = no(n, F, u);
|
|
58174
58175
|
return !(T.width > 0) || !(T.height > 0) ? null : {
|
|
58175
58176
|
x: n.x + Un(n.width, T.width, c),
|
|
58176
58177
|
y: n.y + Un(n.height, T.height, d),
|
|
@@ -58259,8 +58260,8 @@ function DC({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
|
|
|
58259
58260
|
onPointerDown: V
|
|
58260
58261
|
}
|
|
58261
58262
|
),
|
|
58262
|
-
j.map((
|
|
58263
|
-
const T = hs(H,
|
|
58263
|
+
j.map((F) => {
|
|
58264
|
+
const T = hs(H, F), $ = F === "ne" || F === "sw";
|
|
58264
58265
|
return /* @__PURE__ */ Y("g", { children: [
|
|
58265
58266
|
/* @__PURE__ */ l(
|
|
58266
58267
|
"rect",
|
|
@@ -58280,10 +58281,10 @@ function DC({ P: e, box: t, bounds: n, natural: i, imageUrl: o, maskPath: r, sta
|
|
|
58280
58281
|
y: T.y - sa / 2,
|
|
58281
58282
|
width: sa,
|
|
58282
58283
|
height: sa,
|
|
58283
|
-
onPointerDown: (z) => G(z,
|
|
58284
|
+
onPointerDown: (z) => G(z, F)
|
|
58284
58285
|
}
|
|
58285
58286
|
)
|
|
58286
|
-
] },
|
|
58287
|
+
] }, F);
|
|
58287
58288
|
})
|
|
58288
58289
|
] })
|
|
58289
58290
|
]
|
|
@@ -58307,7 +58308,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58307
58308
|
Me(() => {
|
|
58308
58309
|
d == null || d(C);
|
|
58309
58310
|
}, [C, d]), Me(() => () => d == null ? void 0 : d(!1), [d]);
|
|
58310
|
-
const H = n.width > 0 ? t.width / n.width : 1,
|
|
58311
|
+
const H = n.width > 0 ? t.width / n.width : 1, F = n.height > 0 ? t.height / n.height : 1, T = Math.min(H, F), $ = r && a ? T : H, z = r && a ? T : F, v = r && a ? (t.width - n.width * T) / 2 : 0, Z = r && a ? (t.height - n.height * T) / 2 : 0, I = $e((g) => r ? {
|
|
58311
58312
|
x: v + (g.x - n.x) * $,
|
|
58312
58313
|
y: Z + (g.y - n.y) * z
|
|
58313
58314
|
} : {
|
|
@@ -58354,7 +58355,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58354
58355
|
f(J, X);
|
|
58355
58356
|
}, [f, a, n, t, v, Z, $, z]), le = $e(() => {
|
|
58356
58357
|
M(null);
|
|
58357
|
-
}, []),
|
|
58358
|
+
}, []), A = $e((g, X, J) => {
|
|
58358
58359
|
if (!J || x.current || b.current || E.current || h.current) {
|
|
58359
58360
|
le();
|
|
58360
58361
|
return;
|
|
@@ -58421,7 +58422,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58421
58422
|
}
|
|
58422
58423
|
const D = x.current;
|
|
58423
58424
|
if (!D || g.pointerId !== D.pointerId) {
|
|
58424
|
-
|
|
58425
|
+
A(g.clientX, g.clientY, w.length > 0 || S);
|
|
58425
58426
|
return;
|
|
58426
58427
|
}
|
|
58427
58428
|
le(), g.stopPropagation(), g.preventDefault();
|
|
@@ -58507,7 +58508,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58507
58508
|
startContours: Kn(i),
|
|
58508
58509
|
moved: !1
|
|
58509
58510
|
}, (te = y.current) == null || te.setPointerCapture(g.pointerId));
|
|
58510
|
-
},
|
|
58511
|
+
}, pe = (g, X, J, oe) => {
|
|
58511
58512
|
var P, te, re, ge;
|
|
58512
58513
|
g.stopPropagation(), g.preventDefault(), le(), (P = y.current) == null || P.focus({ preventScroll: !0 });
|
|
58513
58514
|
const he = (te = i[J]) == null ? void 0 : te.nodes[oe];
|
|
@@ -58578,10 +58579,10 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58578
58579
|
g.preventDefault(), g.stopPropagation();
|
|
58579
58580
|
const he = Zd(i, w, oe[0], oe[1]);
|
|
58580
58581
|
u(he), O(he);
|
|
58581
|
-
},
|
|
58582
|
+
}, me = He(() => Xo(yn(i, I)), [i, I]), be = He(() => Mi(i), [i]), Le = I({ x: be.minX, y: be.minY }), Fe = {
|
|
58582
58583
|
width: I({ x: be.maxX, y: be.minY }).x - Le.x,
|
|
58583
58584
|
height: I({ x: be.minX, y: be.maxY }).y - Le.y
|
|
58584
|
-
}, ye = S && w.length === 0 && isFinite(be.minX) && isFinite(be.maxX) && be.maxX > be.minX && be.maxY > be.minY, Ce = w.length > 0 || S,
|
|
58585
|
+
}, ye = S && w.length === 0 && isFinite(be.minX) && isFinite(be.maxX) && be.maxX > be.minX && be.maxY > be.minY, Ce = w.length > 0 || S, Pe = Ce;
|
|
58585
58586
|
return /* @__PURE__ */ Y(
|
|
58586
58587
|
"svg",
|
|
58587
58588
|
{
|
|
@@ -58619,8 +58620,8 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58619
58620
|
onClick: U
|
|
58620
58621
|
}
|
|
58621
58622
|
),
|
|
58622
|
-
|
|
58623
|
-
|
|
58623
|
+
Pe && /* @__PURE__ */ l("path", { className: `${e}-editor-outline`, d: me }),
|
|
58624
|
+
Pe && G.map((g, X) => /* @__PURE__ */ l(
|
|
58624
58625
|
"line",
|
|
58625
58626
|
{
|
|
58626
58627
|
className: `${e}-editor-snap ${e}-editor-snap-${g.kind}`,
|
|
@@ -58636,22 +58637,22 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58636
58637
|
{
|
|
58637
58638
|
ref: p,
|
|
58638
58639
|
className: `${e}-editor-body`,
|
|
58639
|
-
d:
|
|
58640
|
+
d: me,
|
|
58640
58641
|
fillRule: "evenodd",
|
|
58641
58642
|
onPointerDown: ke,
|
|
58642
58643
|
onClick: U
|
|
58643
58644
|
}
|
|
58644
58645
|
),
|
|
58645
|
-
|
|
58646
|
+
Pe && /* @__PURE__ */ l(
|
|
58646
58647
|
"path",
|
|
58647
58648
|
{
|
|
58648
58649
|
className: `${e}-editor-hit`,
|
|
58649
|
-
d:
|
|
58650
|
+
d: me,
|
|
58650
58651
|
style: { strokeWidth: zC },
|
|
58651
58652
|
onClick: U
|
|
58652
58653
|
}
|
|
58653
58654
|
),
|
|
58654
|
-
|
|
58655
|
+
Pe && L && /* @__PURE__ */ l(
|
|
58655
58656
|
"rect",
|
|
58656
58657
|
{
|
|
58657
58658
|
className: `${e}-editor-add-preview`,
|
|
@@ -58662,7 +58663,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58662
58663
|
rx: L.curved ? Xn / 2 : 0
|
|
58663
58664
|
}
|
|
58664
58665
|
),
|
|
58665
|
-
|
|
58666
|
+
Pe && i.map((g, X) => g.nodes.map((J, oe) => {
|
|
58666
58667
|
const he = w.some((P) => P.contour === X && P.node === oe), D = I(J.p);
|
|
58667
58668
|
return /* @__PURE__ */ Y("g", { children: [
|
|
58668
58669
|
he && w.length === 1 && ["in", "out"].map((P) => {
|
|
@@ -58679,7 +58680,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58679
58680
|
cx: re.x,
|
|
58680
58681
|
cy: re.y,
|
|
58681
58682
|
r: vo,
|
|
58682
|
-
onPointerDown: (ge) =>
|
|
58683
|
+
onPointerDown: (ge) => pe(ge, P, X, oe),
|
|
58683
58684
|
onClick: ve
|
|
58684
58685
|
}
|
|
58685
58686
|
)
|
|
@@ -58704,7 +58705,7 @@ function XC({ P: e, box: t, viewBox: n, contours: i, snap: o, stretchToBox: r, u
|
|
|
58704
58705
|
y: D.y - vo,
|
|
58705
58706
|
width: vo * 2,
|
|
58706
58707
|
height: vo * 2,
|
|
58707
|
-
onPointerDown: (P) =>
|
|
58708
|
+
onPointerDown: (P) => pe(P, "anchor", X, oe),
|
|
58708
58709
|
onClick: ve,
|
|
58709
58710
|
onDoubleClick: (P) => {
|
|
58710
58711
|
P.stopPropagation(), P.preventDefault();
|
|
@@ -58871,7 +58872,7 @@ function lu(e) {
|
|
|
58871
58872
|
if (!w.length || s <= 0 || x <= 0)
|
|
58872
58873
|
return { segments: h, placed: 0, height: 0, capLeft: 0, capTop: 0, renderTokens: t };
|
|
58873
58874
|
const V = Math.max(1, b * 0.5), G = x * tC, k = JC(i, E, s, c, o);
|
|
58874
|
-
let L = 0, M = 0, j = 0, S = w[0].token.para, C = 0, H = 0,
|
|
58875
|
+
let L = 0, M = 0, j = 0, S = w[0].token.para, C = 0, H = 0, F = null;
|
|
58875
58876
|
for (; L < w.length && j < qC; ) {
|
|
58876
58877
|
const $ = M + x > c;
|
|
58877
58878
|
if ($ && !d) break;
|
|
@@ -58881,7 +58882,7 @@ function lu(e) {
|
|
|
58881
58882
|
continue;
|
|
58882
58883
|
}
|
|
58883
58884
|
let v = $ ? [{ x0: 0, x1: s }] : cC(k, (M + G) / c, (M + x - G) / c, o).map((I) => ({ x0: I.x0 * s, x1: I.x1 * s }));
|
|
58884
|
-
u > 0 && f > 0 && !$ && v.length && (
|
|
58885
|
+
u > 0 && f > 0 && !$ && v.length && (F === null && (F = j, C = v[0].x0, H = M), j - F < f && (v = sC(v, { x0: C, x1: C + u })));
|
|
58885
58886
|
const Z = v.reduce((I, N) => Math.max(I, N.x1 - N.x0), 0);
|
|
58886
58887
|
for (const I of v) {
|
|
58887
58888
|
const N = I.x1 - I.x0;
|
|
@@ -58890,13 +58891,13 @@ function lu(e) {
|
|
|
58890
58891
|
const W = L;
|
|
58891
58892
|
let ee = 0;
|
|
58892
58893
|
for (; L < w.length && w[L].token.para === z; ) {
|
|
58893
|
-
const se = w[L], O = L === W, le = se.width * a,
|
|
58894
|
-
if (ee +
|
|
58895
|
-
ee +=
|
|
58894
|
+
const se = w[L], O = L === W, le = se.width * a, A = O ? le : b + le;
|
|
58895
|
+
if (ee + A <= N) {
|
|
58896
|
+
ee += A, L += 1;
|
|
58896
58897
|
continue;
|
|
58897
58898
|
}
|
|
58898
58899
|
if (O && N >= Z - 0.5 && le > s - 0.5) {
|
|
58899
|
-
ee +=
|
|
58900
|
+
ee += A, L += 1;
|
|
58900
58901
|
continue;
|
|
58901
58902
|
}
|
|
58902
58903
|
if (y) {
|
|
@@ -59007,9 +59008,9 @@ function lT({
|
|
|
59007
59008
|
imageEditor: H
|
|
59008
59009
|
}) {
|
|
59009
59010
|
var Ze, ht;
|
|
59010
|
-
const
|
|
59011
|
+
const F = `pretext-shape-image-${cu().replace(/:/g, "")}`, [T, $] = ne(null), z = q(null), [v, Z] = ne({ width: 0, height: 0 }), [I, N] = ne(0), [W, ee] = ne(null), [se, O] = ne(0), [le, A] = ne("none");
|
|
59011
59012
|
Me(() => {
|
|
59012
|
-
!C && !H &&
|
|
59013
|
+
!C && !H && A("none");
|
|
59013
59014
|
}, [C, H]);
|
|
59014
59015
|
const [de, ie] = ne(null);
|
|
59015
59016
|
Me(() => {
|
|
@@ -59025,7 +59026,7 @@ function lT({
|
|
|
59025
59026
|
fe = !0;
|
|
59026
59027
|
};
|
|
59027
59028
|
}, [w]);
|
|
59028
|
-
const ve = He(() => Array.isArray(t == null ? void 0 : t.text) ? t.text : [], [t]), ke = He(() => YC(ve), [ve]), we = He(() => ZC(ve), [ve]),
|
|
59029
|
+
const ve = He(() => Array.isArray(t == null ? void 0 : t.text) ? t.text : [], [t]), ke = He(() => YC(ve), [ve]), we = He(() => ZC(ve), [ve]), pe = x > 0 && b > 1 ? ((ht = (Ze = ke[0]) == null ? void 0 : Ze.text) == null ? void 0 : ht.charAt(0)) ?? "" : "", U = (C == null ? void 0 : C.contours) ?? null, ce = He(() => {
|
|
59029
59030
|
let fe = [];
|
|
59030
59031
|
if (U) {
|
|
59031
59032
|
const Ae = kr(U);
|
|
@@ -59036,7 +59037,7 @@ function lT({
|
|
|
59036
59037
|
lt && lt.length ? fe = lt : fe = ss(n === "custom" ? "rectangle" : n);
|
|
59037
59038
|
}
|
|
59038
59039
|
return n === "circle" ? zl(fe, v) : fe;
|
|
59039
|
-
}, [U, n, i, o, r, v.width, v.height]),
|
|
59040
|
+
}, [U, n, i, o, r, v.width, v.height]), me = C == null ? void 0 : C.onConvert, be = (C == null ? void 0 : C.needsConversion) ?? !1, Le = He(() => {
|
|
59040
59041
|
if (n === "circle") return !1;
|
|
59041
59042
|
const fe = U ?? (i.trim() ? _i(i) : null);
|
|
59042
59043
|
return !!(fe && jp(fe, r));
|
|
@@ -59052,7 +59053,7 @@ function lT({
|
|
|
59052
59053
|
if (!Le || v.width <= 0 || v.height <= 0) return ce;
|
|
59053
59054
|
const fe = Fe ?? v, Ae = r.width / fe.width, lt = r.height / fe.height;
|
|
59054
59055
|
return ce.map((yt) => yt.map((Ye) => ({ x: Ye.x * Ae, y: Ye.y * lt })));
|
|
59055
|
-
}, [ce, Le, Fe, r.width, r.height, v.width, v.height]),
|
|
59056
|
+
}, [ce, Le, Fe, r.width, r.height, v.width, v.height]), Pe = He(() => {
|
|
59056
59057
|
if (U) {
|
|
59057
59058
|
const yt = kr(U);
|
|
59058
59059
|
if (yt.length) {
|
|
@@ -59063,12 +59064,12 @@ function lT({
|
|
|
59063
59064
|
const fe = L.trim(), Ae = fe ? Gd(fe, o, r) : null, lt = Ae && Ae.length ? Ae : ss(n === "custom" ? "rectangle" : n);
|
|
59064
59065
|
return n === "circle" ? zl(lt, v) : lt;
|
|
59065
59066
|
}, [U, n, L, o, r, v.width, v.height]), g = He(() => {
|
|
59066
|
-
if (!Le || v.width <= 0 || v.height <= 0) return
|
|
59067
|
+
if (!Le || v.width <= 0 || v.height <= 0) return Pe;
|
|
59067
59068
|
const fe = Fe ?? v, Ae = r.width / fe.width, lt = r.height / fe.height;
|
|
59068
|
-
return
|
|
59069
|
-
}, [
|
|
59069
|
+
return Pe.map((yt) => yt.map((Ye) => ({ x: Ye.x * Ae, y: Ye.y * lt })));
|
|
59070
|
+
}, [Pe, Le, Fe, r.width, r.height, v.width, v.height]), X = q(null), J = q(!1);
|
|
59070
59071
|
Me(() => {
|
|
59071
|
-
if (!(!
|
|
59072
|
+
if (!(!me || v.width <= 0 || v.height <= 0)) {
|
|
59072
59073
|
if (Le) {
|
|
59073
59074
|
if (X.current === i) return;
|
|
59074
59075
|
const fe = U ?? (i.trim() ? _i(i) : null);
|
|
@@ -59077,15 +59078,15 @@ function lT({
|
|
|
59077
59078
|
x: r.x + (lt.x - r.x) / v.width * r.width,
|
|
59078
59079
|
y: r.y + (lt.y - r.y) / v.height * r.height
|
|
59079
59080
|
}));
|
|
59080
|
-
X.current = Xo(Ae),
|
|
59081
|
+
X.current = Xo(Ae), me(Ae);
|
|
59081
59082
|
return;
|
|
59082
59083
|
}
|
|
59083
|
-
!be || !ce.length || J.current || (J.current = !0,
|
|
59084
|
+
!be || !ce.length || J.current || (J.current = !0, me(yn(Vp(ce), (fe) => ({ x: fe.x * Aa, y: fe.y * Aa }))));
|
|
59084
59085
|
}
|
|
59085
59086
|
}, [
|
|
59086
59087
|
be,
|
|
59087
59088
|
Le,
|
|
59088
|
-
|
|
59089
|
+
me,
|
|
59089
59090
|
ce,
|
|
59090
59091
|
U,
|
|
59091
59092
|
i,
|
|
@@ -59130,7 +59131,7 @@ function lT({
|
|
|
59130
59131
|
yt.textContent = " ", lt.appendChild(yt);
|
|
59131
59132
|
const Ye = document.createElement("span");
|
|
59132
59133
|
Ye.textContent = "-", lt.appendChild(Ye);
|
|
59133
|
-
const Lt =
|
|
59134
|
+
const Lt = pe || "H", Ft = document.createElement("span");
|
|
59134
59135
|
Ft.textContent = Lt, Ft.style.lineHeight = "1", lt.appendChild(Ft), fe.replaceChildren(lt);
|
|
59135
59136
|
const Ot = window.getComputedStyle(fe), It = parseFloat(Ot.fontSize) || 16, Zt = parseFloat(Ot.lineHeight), Yt = Number.isNaN(Zt) ? It * 1.2 : Zt, en = Math.max(Yt, It), tn = document.createElement("span");
|
|
59136
59137
|
tn.textContent = Lt, tn.style.lineHeight = `${en}px`;
|
|
@@ -59157,7 +59158,7 @@ function lT({
|
|
|
59157
59158
|
Pt.style.cssText = "display:inline-block;width:0;height:0;vertical-align:baseline", Ft.appendChild(Pt);
|
|
59158
59159
|
const wt = Math.max(1, Pt.getBoundingClientRect().top - Ft.getBoundingClientRect().top);
|
|
59159
59160
|
Pt.remove();
|
|
59160
|
-
const Xt = (b - 1) * en + Ct - wt, Dt = Ae.map((vt) => vt.getBoundingClientRect().width), Jt = yt.getBoundingClientRect().width, Wt = Ye.getBoundingClientRect().width, Ut =
|
|
59161
|
+
const Xt = (b - 1) * en + Ct - wt, Dt = Ae.map((vt) => vt.getBoundingClientRect().width), Jt = yt.getBoundingClientRect().width, Wt = Ye.getBoundingClientRect().width, Ut = pe ? Ft.getBoundingClientRect().width : 0, zt = p ? Ae.map((vt) => {
|
|
59161
59162
|
const _ = vt.firstChild;
|
|
59162
59163
|
if (!(_ instanceof Text) || _.data.length < 4) return;
|
|
59163
59164
|
const Re = document.createRange(), Ke = vt.getBoundingClientRect().left, De = [];
|
|
@@ -59175,8 +59176,8 @@ function lT({
|
|
|
59175
59176
|
dropCapFontSize: Et,
|
|
59176
59177
|
dropCapTopAdjust: Xt
|
|
59177
59178
|
});
|
|
59178
|
-
}, [ke, h,
|
|
59179
|
-
const he = W &&
|
|
59179
|
+
}, [ke, h, pe, x, b, se, v.width, p]);
|
|
59180
|
+
const he = W && pe ? W.capWidth + W.lineHeight * eT : 0, D = Math.max(x, Math.ceil(b)), P = He(() => {
|
|
59180
59181
|
if (!W || !ke.length || v.width <= 0 || v.height <= 0 || !d) return 1;
|
|
59181
59182
|
const fe = (yt) => lu({
|
|
59182
59183
|
tokens: ke,
|
|
@@ -59191,7 +59192,7 @@ function lT({
|
|
|
59191
59192
|
scale: yt,
|
|
59192
59193
|
allowOverflow: !1,
|
|
59193
59194
|
capInset: he * yt,
|
|
59194
|
-
capLines:
|
|
59195
|
+
capLines: pe ? D : 0,
|
|
59195
59196
|
hyphenate: p,
|
|
59196
59197
|
charWidths: W.charWidths,
|
|
59197
59198
|
hyphenWidth: W.dashWidth,
|
|
@@ -59205,7 +59206,7 @@ function lT({
|
|
|
59205
59206
|
fe(Ye).placed >= ke.length ? Ae = Ye : lt = Ye;
|
|
59206
59207
|
}
|
|
59207
59208
|
return Ae;
|
|
59208
|
-
}, [W, ke, v.width, v.height, Ce, a, s, d, he,
|
|
59209
|
+
}, [W, ke, v.width, v.height, Ce, a, s, d, he, pe, D, p, I]);
|
|
59209
59210
|
Me(() => {
|
|
59210
59211
|
f(P);
|
|
59211
59212
|
}, [P, f]);
|
|
@@ -59222,12 +59223,12 @@ function lT({
|
|
|
59222
59223
|
scale: te,
|
|
59223
59224
|
allowOverflow: c,
|
|
59224
59225
|
capInset: he * te,
|
|
59225
|
-
capLines:
|
|
59226
|
+
capLines: pe ? D : 0,
|
|
59226
59227
|
hyphenate: p,
|
|
59227
59228
|
charWidths: W.charWidths,
|
|
59228
59229
|
hyphenWidth: W.dashWidth,
|
|
59229
59230
|
shapeMargin: I
|
|
59230
|
-
}), [W, ke, v.width, v.height, Ce, a, s, te, c, he,
|
|
59231
|
+
}), [W, ke, v.width, v.height, Ce, a, s, te, c, he, pe, D, p, I]), ge = m && ke.length > 0 && re.placed < ke.length, B = W ? W.dropCapFontSize * te : 0, Ee = W ? W.dropCapTopAdjust * te : 0, Se = s === "justify" ? "left" : s, Q = W ? W.lineHeight * te : 0, Be = re.segments.length ? re.segments[re.segments.length - 1] : null, Ve = Be ? { top: Be.top + Q, left: Be.left + Be.width / 2 } : { top: v.height, left: v.width / 2 }, st = !!(C && U && v.width > 0 && v.height > 0), Je = !!H, at = (st || Je) && v.width > 0 && v.height > 0, rt = rT(T, at), Ue = at && rt ? aT() : null, xe = q(!1), ze = $e((fe) => {
|
|
59231
59232
|
xe.current = fe;
|
|
59232
59233
|
}, []);
|
|
59233
59234
|
Me(() => {
|
|
@@ -59236,7 +59237,7 @@ function lT({
|
|
|
59236
59237
|
const lt = T;
|
|
59237
59238
|
if (!lt) return;
|
|
59238
59239
|
const yt = lt.getBoundingClientRect();
|
|
59239
|
-
Ae.clientX >= yt.left && Ae.clientX <= yt.right && Ae.clientY >= yt.top && Ae.clientY <= yt.bottom && (Ae.preventDefault(), Ae.stopPropagation(),
|
|
59240
|
+
Ae.clientX >= yt.left && Ae.clientX <= yt.right && Ae.clientY >= yt.top && Ae.clientY <= yt.bottom && (Ae.preventDefault(), Ae.stopPropagation(), A((Lt) => Lt === "shape" && xe.current ? Lt : Lt === "shape" && Je ? "image" : st ? "shape" : "image"));
|
|
59240
59241
|
};
|
|
59241
59242
|
return document.addEventListener("dblclick", fe, !0), () => document.removeEventListener("dblclick", fe, !0);
|
|
59242
59243
|
}, [st, Je, T]);
|
|
@@ -59320,7 +59321,7 @@ function lT({
|
|
|
59320
59321
|
Le,
|
|
59321
59322
|
Fe,
|
|
59322
59323
|
g
|
|
59323
|
-
]), Xe = `${
|
|
59324
|
+
]), Xe = `${F}-clip`, Ge = He(() => {
|
|
59324
59325
|
if (!je) return null;
|
|
59325
59326
|
const fe = de ?? { width: je.width, height: je.height }, Ae = no(je, fe, ct);
|
|
59326
59327
|
return {
|
|
@@ -59387,7 +59388,7 @@ function lT({
|
|
|
59387
59388
|
textAlign: fe.justify ? void 0 : Se
|
|
59388
59389
|
},
|
|
59389
59390
|
children: lt.map((Ye, Lt) => {
|
|
59390
|
-
const Ot =
|
|
59391
|
+
const Ot = pe && yt && fe.from === 0 && Lt === 0 ? Ye.text.slice(1) : Ye.text, It = au(Ye.leaf), Zt = Ye.href ? /* @__PURE__ */ l("a", { className: `${e}-link`, href: Ye.href, target: Ye.target, rel: Ye.target ? "noopener noreferrer" : void 0, style: It, children: Ot }) : /* @__PURE__ */ l("span", { style: It, children: Ot });
|
|
59391
59392
|
return /* @__PURE__ */ Y("span", { children: [
|
|
59392
59393
|
!fe.justify && Lt > 0 ? " " : null,
|
|
59393
59394
|
Zt
|
|
@@ -59401,7 +59402,7 @@ function lT({
|
|
|
59401
59402
|
]
|
|
59402
59403
|
}
|
|
59403
59404
|
),
|
|
59404
|
-
|
|
59405
|
+
pe && W && /* @__PURE__ */ l(
|
|
59405
59406
|
"div",
|
|
59406
59407
|
{
|
|
59407
59408
|
className: `${e}-drop-cap`,
|
|
@@ -59413,7 +59414,7 @@ function lT({
|
|
|
59413
59414
|
fontSize: `${B}px`,
|
|
59414
59415
|
lineHeight: `${B}px`
|
|
59415
59416
|
},
|
|
59416
|
-
children:
|
|
59417
|
+
children: pe
|
|
59417
59418
|
}
|
|
59418
59419
|
),
|
|
59419
59420
|
Ue && rt && (U && C || H) && fi(
|
|
@@ -59442,7 +59443,7 @@ function lT({
|
|
|
59442
59443
|
stretchToBox: !Le,
|
|
59443
59444
|
uniformStretch: n === "circle",
|
|
59444
59445
|
stage: le,
|
|
59445
|
-
onStageChange:
|
|
59446
|
+
onStageChange: A,
|
|
59446
59447
|
onSelectionChange: ze,
|
|
59447
59448
|
onChange: C.onChange,
|
|
59448
59449
|
onCommit: C.onCommit
|
|
@@ -59458,7 +59459,7 @@ function lT({
|
|
|
59458
59459
|
imageUrl: w,
|
|
59459
59460
|
maskPath: bt,
|
|
59460
59461
|
stage: le,
|
|
59461
|
-
onStageChange:
|
|
59462
|
+
onStageChange: A,
|
|
59462
59463
|
focalX: it,
|
|
59463
59464
|
focalY: pt,
|
|
59464
59465
|
scale: ct,
|
|
@@ -59766,7 +59767,7 @@ function pT({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
59766
59767
|
for (const ge of re) window.removeEventListener(ge, P);
|
|
59767
59768
|
};
|
|
59768
59769
|
}, [d, u]);
|
|
59769
|
-
const H = d && u && !i && typeof a == "function",
|
|
59770
|
+
const H = d && u && !i && typeof a == "function", F = !S, T = Math.max(0, (e == null ? void 0 : e.pathSnap) ?? 0), $ = q(e ?? {}), z = q(""), v = [
|
|
59770
59771
|
e == null ? void 0 : e.customPath,
|
|
59771
59772
|
e == null ? void 0 : e.shape,
|
|
59772
59773
|
e == null ? void 0 : e.pathFit,
|
|
@@ -59796,7 +59797,7 @@ function pT({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
59796
59797
|
break;
|
|
59797
59798
|
}
|
|
59798
59799
|
}
|
|
59799
|
-
const [Z, I] = ne(null), [N, W] = ne(!1), [ee, se] = ne(!1), O = $e(() => se(!1), []), le = $.current.shape ?? y,
|
|
59800
|
+
const [Z, I] = ne(null), [N, W] = ne(!1), [ee, se] = ne(!1), O = $e(() => se(!1), []), le = $.current.shape ?? y, A = He(() => !Z || Z.serialized === p ? p : Z.serialized, [Z, p]);
|
|
59800
59801
|
Me(() => {
|
|
59801
59802
|
H || (W(!1), se(!1));
|
|
59802
59803
|
}, [H]), Me(() => {
|
|
@@ -59838,11 +59839,11 @@ function pT({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
59838
59839
|
onCommit: (D, P) => {
|
|
59839
59840
|
ve(D, !0, P), W(!1);
|
|
59840
59841
|
}
|
|
59841
|
-
} : null, [H, ie, de, T, a, ve]), we = b === "avoid" && !!(e != null && e.image),
|
|
59842
|
+
} : null, [H, ie, de, T, a, ve]), we = b === "avoid" && !!(e != null && e.image), pe = He(() => ({
|
|
59842
59843
|
focalX: (e == null ? void 0 : e.imageFocalX) ?? 0.5,
|
|
59843
59844
|
focalY: (e == null ? void 0 : e.imageFocalY) ?? 0.5,
|
|
59844
59845
|
scale: (e == null ? void 0 : e.imageScale) ?? 1
|
|
59845
|
-
}), [e == null ? void 0 : e.imageFocalX, e == null ? void 0 : e.imageFocalY, e == null ? void 0 : e.imageScale]), [U, ce] = ne(null),
|
|
59846
|
+
}), [e == null ? void 0 : e.imageFocalX, e == null ? void 0 : e.imageFocalY, e == null ? void 0 : e.imageScale]), [U, ce] = ne(null), me = U ?? pe, be = $e((D) => ce(D), []), Le = $e((D) => {
|
|
59846
59847
|
ce(D);
|
|
59847
59848
|
const P = {
|
|
59848
59849
|
...$.current,
|
|
@@ -59853,11 +59854,11 @@ function pT({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
59853
59854
|
$.current = P, a == null || a(P);
|
|
59854
59855
|
}, [a]);
|
|
59855
59856
|
Me(() => {
|
|
59856
|
-
U && Math.abs(U.focalX -
|
|
59857
|
-
}, [U,
|
|
59858
|
-
const Fe = He(() => !H || !we ? null : { onChange: be, onCommit: Le }, [H, we, be, Le]), [ye, Ce] = ne(void 0),
|
|
59859
|
-
const P =
|
|
59860
|
-
P !== void 0 && Math.abs(P - D) < 5e-3 || (
|
|
59857
|
+
U && Math.abs(U.focalX - pe.focalX) < 1e-9 && Math.abs(U.focalY - pe.focalY) < 1e-9 && Math.abs(U.scale - pe.scale) < 1e-9 && ce(null);
|
|
59858
|
+
}, [U, pe]);
|
|
59859
|
+
const Fe = He(() => !H || !we ? null : { onChange: be, onCommit: Le }, [H, we, be, Le]), [ye, Ce] = ne(void 0), Pe = q(void 0), g = $e((D) => {
|
|
59860
|
+
const P = Pe.current;
|
|
59861
|
+
P !== void 0 && Math.abs(P - D) < 5e-3 || (Pe.current = D, Ce(D));
|
|
59861
59862
|
}, []), X = He(() => w && typeof ye == "number" ? ye : 1, [ye, w]), J = (D) => `calc(${D} * var(--${s}-fit, 1))`, oe = He(() => {
|
|
59862
59863
|
var te, re, ge, B, Ee;
|
|
59863
59864
|
const D = (e == null ? void 0 : e.textFontSize) ?? 0.012, P = Math.max((e == null ? void 0 : e.textLineHeight) ?? D, D);
|
|
@@ -59907,18 +59908,18 @@ function pT({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
59907
59908
|
showOverflowIndicator: j,
|
|
59908
59909
|
dropCapLines: L,
|
|
59909
59910
|
dropCapSize: k,
|
|
59910
|
-
showGuides: (M || H) &&
|
|
59911
|
+
showGuides: (M || H) && F,
|
|
59911
59912
|
typography: oe,
|
|
59912
59913
|
imageUrl: b === "avoid" ? e == null ? void 0 : e.image : null,
|
|
59913
|
-
imageFocalX:
|
|
59914
|
-
imageFocalY:
|
|
59915
|
-
imageScale:
|
|
59916
|
-
imageCustomPath:
|
|
59914
|
+
imageFocalX: me.focalX,
|
|
59915
|
+
imageFocalY: me.focalY,
|
|
59916
|
+
imageScale: me.scale,
|
|
59917
|
+
imageCustomPath: A,
|
|
59917
59918
|
pathDragActive: N,
|
|
59918
59919
|
pathCarryImage: ee,
|
|
59919
59920
|
onCarryImageConsumed: O,
|
|
59920
|
-
pathEditor:
|
|
59921
|
-
imageEditor:
|
|
59921
|
+
pathEditor: F ? ke : null,
|
|
59922
|
+
imageEditor: F ? Fe : null
|
|
59922
59923
|
}
|
|
59923
59924
|
)
|
|
59924
59925
|
}
|