@cntrl-site/components 1.0.97-8 → 1.0.97-9
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 +15 -19
- package/dist/index.mjs +116 -120
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -174,16 +174,16 @@ function ni(e, t) {
|
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Yt(e, t, n) {
|
|
178
178
|
Cr(t) ? so(t, function(i, o) {
|
|
179
|
-
|
|
179
|
+
Yt(e, o, i);
|
|
180
180
|
}) : zn(e, function(i) {
|
|
181
181
|
Ml(n) || n === "" ? ni(i, t) : i.setAttribute(t, String(n));
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
function Ao(e, t, n) {
|
|
185
185
|
var i = document.createElement(e);
|
|
186
|
-
return t && (Di(t) ? ti(i, t) :
|
|
186
|
+
return t && (Di(t) ? ti(i, t) : Yt(i, t)), n && zr(n, i), i;
|
|
187
187
|
}
|
|
188
188
|
function Xn(e, t, n) {
|
|
189
189
|
if (Or(n))
|
|
@@ -483,7 +483,7 @@ function Xg(e, t, n) {
|
|
|
483
483
|
bi(d), hi(a, u), hi(b, f), ni([b, p], A), ni(a, z ? A : ["style", Rr]);
|
|
484
484
|
}
|
|
485
485
|
function y() {
|
|
486
|
-
hi(a, u), hi(b, f), u = G(us), f = G(Rc), ti(a, u), ti(b, f),
|
|
486
|
+
hi(a, u), hi(b, f), u = G(us), f = G(Rc), ti(a, u), ti(b, f), Yt(a, On, n.label), Yt(a, zl, n.labelledby);
|
|
487
487
|
}
|
|
488
488
|
function I() {
|
|
489
489
|
b = K("." + Rc), p = Br(b, "." + Ag), xr(b && p, "A track/list element is missing."), $a(d, Nu(p, "." + Ja + ":not(." + rp + ")")), so({
|
|
@@ -504,7 +504,7 @@ function Xg(e, t, n) {
|
|
|
504
504
|
}
|
|
505
505
|
function L() {
|
|
506
506
|
var z = a.id || Ig(Vr), A = n.role;
|
|
507
|
-
a.id = z, b.id = b.id || z + "-track", p.id = p.id || z + "-list", !jn(a, fi) && a.tagName !== "SECTION" && A &&
|
|
507
|
+
a.id = z, b.id = b.id || z + "-track", p.id = p.id || z + "-list", !jn(a, fi) && a.tagName !== "SECTION" && A && Yt(a, fi, A), Yt(a, Rr, l.carousel), Yt(p, fi, "presentation");
|
|
508
508
|
}
|
|
509
509
|
function K(z) {
|
|
510
510
|
var A = Wu(a, z);
|
|
@@ -523,20 +523,20 @@ var Do = "slide", er = "loop", Xr = "fade";
|
|
|
523
523
|
function jg(e, t, n, i) {
|
|
524
524
|
var o = gn(e), r = o.on, a = o.emit, l = o.bind, c = e.Components, d = e.root, u = e.options, f = u.isNavigation, b = u.updateOnMove, p = u.i18n, g = u.pagination, v = u.slideFocus, x = c.Direction.resolve, k = jn(i, "style"), y = jn(i, On), I = n > -1, L = Br(i, "." + Fg), K;
|
|
525
525
|
function G() {
|
|
526
|
-
I || (i.id = d.id + "-slide" + Fl(t + 1),
|
|
526
|
+
I || (i.id = d.id + "-slide" + Fl(t + 1), Yt(i, fi, g ? "tabpanel" : "group"), Yt(i, Rr, p.slide), Yt(i, On, y || tl(p.slideLabel, [t + 1, e.length]))), z();
|
|
527
527
|
}
|
|
528
528
|
function z() {
|
|
529
529
|
l(i, "click", dn(a, Nl, X)), l(i, "keydown", dn(a, Ju, X)), r([Jo, ep, go], T), r(Hl, F), b && r(xi, $);
|
|
530
530
|
}
|
|
531
531
|
function A() {
|
|
532
|
-
K = !0, o.destroy(), hi(i, zg), ni(i, Vl),
|
|
532
|
+
K = !0, o.destroy(), hi(i, zg), ni(i, Vl), Yt(i, "style", k), Yt(i, On, y || "");
|
|
533
533
|
}
|
|
534
534
|
function F() {
|
|
535
535
|
var P = e.splides.map(function(h) {
|
|
536
536
|
var Q = h.splide.Components.Slides.getAt(t);
|
|
537
537
|
return Q ? Q.slide.id : "";
|
|
538
538
|
}).join(" ");
|
|
539
|
-
|
|
539
|
+
Yt(i, On, tl(p.slideX, (I ? n : t) + 1)), Yt(i, Gr, P), Yt(i, fi, v ? "button" : ""), v && ni(i, Rr);
|
|
540
540
|
}
|
|
541
541
|
function $() {
|
|
542
542
|
K || T();
|
|
@@ -549,11 +549,11 @@ function jg(e, t, n, i) {
|
|
|
549
549
|
}
|
|
550
550
|
function Y() {
|
|
551
551
|
var P = w();
|
|
552
|
-
P !== $c(i, uo) && (gi(i, uo, P),
|
|
552
|
+
P !== $c(i, uo) && (gi(i, uo, P), Yt(i, ip, f && P || ""), a(P ? zu : Bu, X));
|
|
553
553
|
}
|
|
554
554
|
function M() {
|
|
555
555
|
var P = V(), h = !P && (!w() || I);
|
|
556
|
-
if (e.state.is([Zo, Wr]) ||
|
|
556
|
+
if (e.state.is([Zo, Wr]) || Yt(i, op, h || ""), Yt(kl(i, u.focusableNodes || ""), Fo, h ? -1 : ""), v && Yt(i, Fo, h ? -1 : 0), P !== $c(i, il) && (gi(i, il, P), a(P ? Vu : Gu, X)), !P && document.activeElement === i) {
|
|
557
557
|
var Q = c.Slides.getAt(e.index);
|
|
558
558
|
Q && _u(Q.slide);
|
|
559
559
|
}
|
|
@@ -1008,7 +1008,7 @@ function th(e, t, n) {
|
|
|
1008
1008
|
Y && !(g && v) && F(), g && v && (Lr(y, {
|
|
1009
1009
|
prev: g,
|
|
1010
1010
|
next: v
|
|
1011
|
-
}), Pr(p, Y ? "" : "none"), ti(p, k = Gl + "--" + n.direction), Y && (z(), T(),
|
|
1011
|
+
}), Pr(p, Y ? "" : "none"), ti(p, k = Gl + "--" + n.direction), Y && (z(), T(), Yt([g, v], Gr, b.id), a(qu, g, v)));
|
|
1012
1012
|
}
|
|
1013
1013
|
function G() {
|
|
1014
1014
|
i.destroy(), hi(p, k), x ? (co(f ? [g, v] : p), g = v = null) : ni([g, v], Vl);
|
|
@@ -1029,7 +1029,7 @@ function th(e, t, n) {
|
|
|
1029
1029
|
function T() {
|
|
1030
1030
|
if (g && v) {
|
|
1031
1031
|
var Y = e.index, M = u.getPrev(), C = u.getNext(), w = M > -1 && Y < M ? c.last : c.prev, V = C > -1 && Y > C ? c.first : c.next;
|
|
1032
|
-
g.disabled = M < 0, v.disabled = C < 0,
|
|
1032
|
+
g.disabled = M < 0, v.disabled = C < 0, Yt(g, On, w), Yt(v, On, V), a(Ku, g, v, M, C);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
return {
|
|
@@ -1043,7 +1043,7 @@ var nh = Al + "-interval";
|
|
|
1043
1043
|
function ih(e, t, n) {
|
|
1044
1044
|
var i = gn(e), o = i.on, r = i.bind, a = i.emit, l = qa(n.interval, e.go.bind(e, ">"), z), c = l.isPaused, d = t.Elements, u = t.Elements, f = u.root, b = u.toggle, p = n.autoplay, g, v, x = p === "pause";
|
|
1045
1045
|
function k() {
|
|
1046
|
-
p && (y(), b &&
|
|
1046
|
+
p && (y(), b && Yt(b, Gr, d.track.id), x || I(), G());
|
|
1047
1047
|
}
|
|
1048
1048
|
function y() {
|
|
1049
1049
|
n.pauseOnHover && r(f, "mouseenter mouseleave", function(F) {
|
|
@@ -1064,7 +1064,7 @@ function ih(e, t, n) {
|
|
|
1064
1064
|
x || (g || v ? L(!1) : I());
|
|
1065
1065
|
}
|
|
1066
1066
|
function G() {
|
|
1067
|
-
b && (gi(b, uo, !x),
|
|
1067
|
+
b && (gi(b, uo, !x), Yt(b, On, n.i18n[x ? "play" : "pause"]));
|
|
1068
1068
|
}
|
|
1069
1069
|
function z(F) {
|
|
1070
1070
|
var $ = d.bar;
|
|
@@ -1306,7 +1306,7 @@ function hh(e, t, n) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
function v(y) {
|
|
1308
1308
|
var I = y[0];
|
|
1309
|
-
ti(y[1].slide, ol), a(I, "load error", dn(x, y)),
|
|
1309
|
+
ti(y[1].slide, ol), a(I, "load error", dn(x, y)), Yt(I, "src", jn(I, Sr)), Yt(I, "srcset", jn(I, Ta)), ni(I, Sr), ni(I, Ta);
|
|
1310
1310
|
}
|
|
1311
1311
|
function x(y, I) {
|
|
1312
1312
|
var L = y[0], K = y[1];
|
|
@@ -1336,7 +1336,7 @@ function fh(e, t, n) {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
function L() {
|
|
1338
1338
|
var $ = e.length, T = n.classes, Y = n.i18n, M = n.perPage, C = u() ? d.getEnd() + 1 : Mr($ / M);
|
|
1339
|
-
x = g || Ao("ul", T.pagination, c.track.parentElement), ti(x, k = ts + "--" + z()),
|
|
1339
|
+
x = g || Ao("ul", T.pagination, c.track.parentElement), ti(x, k = ts + "--" + z()), Yt(x, fi, "tablist"), Yt(x, On, Y.select), Yt(x, Bl, z() === Za ? "vertical" : "");
|
|
1340
1340
|
for (var w = 0; w < C; w++) {
|
|
1341
1341
|
var V = Ao("li", null, x), H = Ao("button", {
|
|
1342
1342
|
class: T.page,
|
|
@@ -1344,7 +1344,7 @@ function fh(e, t, n) {
|
|
|
1344
1344
|
}, V), X = l.getIn(w).map(function(h) {
|
|
1345
1345
|
return h.slide.id;
|
|
1346
1346
|
}), P = !u() && M > 1 ? Y.pageX : Y.slideX;
|
|
1347
|
-
a(H, "click", dn(K, w)), n.paginationKeyboard && a(H, "keydown", dn(G, w)),
|
|
1347
|
+
a(H, "click", dn(K, w)), n.paginationKeyboard && a(H, "keydown", dn(G, w)), Yt(V, fi, "presentation"), Yt(H, fi, "tab"), Yt(H, Gr, X.join(" ")), Yt(H, On, tl(P, w + 1)), Yt(H, Fo, -1), v.push({
|
|
1348
1348
|
li: V,
|
|
1349
1349
|
button: H,
|
|
1350
1350
|
page: w
|
|
@@ -1370,11 +1370,11 @@ function fh(e, t, n) {
|
|
|
1370
1370
|
var $ = A(f(!0)), T = A(f());
|
|
1371
1371
|
if ($) {
|
|
1372
1372
|
var Y = $.button;
|
|
1373
|
-
hi(Y, uo), ni(Y, Ic),
|
|
1373
|
+
hi(Y, uo), ni(Y, Ic), Yt(Y, Fo, -1);
|
|
1374
1374
|
}
|
|
1375
1375
|
if (T) {
|
|
1376
1376
|
var M = T.button;
|
|
1377
|
-
ti(M, uo),
|
|
1377
|
+
ti(M, uo), Yt(M, Ic, !0), Yt(M, Fo, "");
|
|
1378
1378
|
}
|
|
1379
1379
|
r(Qu, {
|
|
1380
1380
|
list: x,
|
|
@@ -1416,7 +1416,7 @@ function vh(e, t, n) {
|
|
|
1416
1416
|
v(Nl, b), v(Ju, p), v([Ui, Cn], f), r.push(g), g.emit(Hl, e.splides);
|
|
1417
1417
|
}
|
|
1418
1418
|
function f() {
|
|
1419
|
-
|
|
1419
|
+
Yt(t.Elements.list, Bl, n.direction === Za ? "vertical" : "");
|
|
1420
1420
|
}
|
|
1421
1421
|
function b(g) {
|
|
1422
1422
|
e.go(g.index);
|
|
@@ -1455,16 +1455,16 @@ var xh = 90;
|
|
|
1455
1455
|
function Sh(e, t, n) {
|
|
1456
1456
|
var i = gn(e), o = i.on, r = t.Elements.track, a = n.live && !n.isNavigation, l = Ao("span", Og), c = qa(xh, dn(u, !1));
|
|
1457
1457
|
function d() {
|
|
1458
|
-
a && (b(!t.Autoplay.isPaused()),
|
|
1458
|
+
a && (b(!t.Autoplay.isPaused()), Yt(r, Mc, !0), l.textContent = "…", o(Wl, dn(b, !0)), o(Ol, dn(b, !1)), o([Jo, go], dn(u, !0)));
|
|
1459
1459
|
}
|
|
1460
1460
|
function u(p) {
|
|
1461
|
-
|
|
1461
|
+
Yt(r, Pc, p), p ? (zr(r, l), c.start()) : (co(l), c.cancel());
|
|
1462
1462
|
}
|
|
1463
1463
|
function f() {
|
|
1464
1464
|
ni(r, [Lc, Mc, Pc]), co(l);
|
|
1465
1465
|
}
|
|
1466
1466
|
function b(p) {
|
|
1467
|
-
a &&
|
|
1467
|
+
a && Yt(r, Lc, p ? "off" : "polite");
|
|
1468
1468
|
}
|
|
1469
1469
|
return {
|
|
1470
1470
|
mount: d,
|
|
@@ -10354,9 +10354,9 @@ const Ly = 30, vs = 3, Py = 12, My = 96, Dc = 3, Ia = 0.72, Ry = 100, Ey = 10, k
|
|
|
10354
10354
|
}
|
|
10355
10355
|
ct.font = `${Re.fontStyle} ${Re.fontWeight} ${vt}px ${Re.fontFamily}`;
|
|
10356
10356
|
const Rt = ct.measureText("H"), dt = Rt.actualBoundingBoxAscent > 0 ? Rt.actualBoundingBoxAscent : vt * Ia, Lt = Math.max(0, Rt.actualBoundingBoxDescent || 0), st = Rt.fontBoundingBoxAscent || 0, Ht = Rt.fontBoundingBoxDescent || 0;
|
|
10357
|
-
Se((
|
|
10357
|
+
Se((Qt) => Math.abs(Qt - dt) > 0.5 ? dt : Qt);
|
|
10358
10358
|
const xt = st > 0 || Ht > 0 ? (Ht - Lt - (st - dt)) / 2 : 0;
|
|
10359
|
-
Fe((
|
|
10359
|
+
Fe((Qt) => Math.abs(Qt - xt) > 0.25 ? xt : Qt);
|
|
10360
10360
|
};
|
|
10361
10361
|
ze();
|
|
10362
10362
|
const Be = typeof document < "u" ? document.fonts : void 0;
|
|
@@ -10375,7 +10375,7 @@ const Ly = 30, vs = 3, Py = 12, My = 96, Dc = 3, Ia = 0.72, Ry = 100, Ey = 10, k
|
|
|
10375
10375
|
if (dt > 0) {
|
|
10376
10376
|
let Lt = ct, st = Py;
|
|
10377
10377
|
if (F) {
|
|
10378
|
-
const xt = ct * re.current,
|
|
10378
|
+
const xt = ct * re.current, Qt = ae.current, an = Qt > 0 ? 2 * Math.PI * Qt / ct : 0, Ie = Dy(xt, an);
|
|
10379
10379
|
Lt = Math.max(ct, Ie * ct / (Dc - 1)), st = My;
|
|
10380
10380
|
}
|
|
10381
10381
|
const Ht = Math.min(
|
|
@@ -10468,8 +10468,8 @@ const Ly = 30, vs = 3, Py = 12, My = 96, Dc = 3, Ia = 0.72, Ry = 100, Ey = 10, k
|
|
|
10468
10468
|
), ze.cacheDirty = !1;
|
|
10469
10469
|
}, Ue = () => {
|
|
10470
10470
|
ze.cacheDirty && He();
|
|
10471
|
-
const Lt = (S.current ?? Xe).offsetWidth || 1, st = Lt * re.current, Ht = ae.current, xt = 2 * Math.PI * Ht / Lt,
|
|
10472
|
-
if (
|
|
10471
|
+
const Lt = (S.current ?? Xe).offsetWidth || 1, st = Lt * re.current, Ht = ae.current, xt = 2 * Math.PI * Ht / Lt, Qt = `${Lt}|${st}|${xt}`;
|
|
10472
|
+
if (Qt !== ze.lutKey && (ze.lutKey = Qt, ze.lut = Sp(st, xt, xp)), Math.abs(st) <= 0 || xt <= 0) {
|
|
10473
10473
|
Be();
|
|
10474
10474
|
return;
|
|
10475
10475
|
}
|
|
@@ -16046,7 +16046,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16046
16046
|
width: ze,
|
|
16047
16047
|
...Me ? { aspectRatio: Tt, height: "auto", overflow: "hidden" } : { height: "auto" },
|
|
16048
16048
|
...ct ? { borderRadius: ct, overflow: "hidden" } : {}
|
|
16049
|
-
}, dt = `${d}-item-image-wrapper${Be ? ` ${d}-item-image-wrapper-fit-slider` : ""}`.trim(), Lt = u === "d" || u === "e" || u === "f", st = Pe === "on", Ht = `calc(${U(be ?? 0, n)} * (${b} / 100))`, xt = U(be * b / 100, n),
|
|
16049
|
+
}, dt = `${d}-item-image-wrapper${Be ? ` ${d}-item-image-wrapper-fit-slider` : ""}`.trim(), Lt = u === "d" || u === "e" || u === "f", st = Pe === "on", Ht = `calc(${U(be ?? 0, n)} * (${b} / 100))`, xt = U(be * b / 100, n), Qt = Me ? {
|
|
16050
16050
|
objectFit: "cover",
|
|
16051
16051
|
pointerEvents: "auto",
|
|
16052
16052
|
width: "100%",
|
|
@@ -16102,7 +16102,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16102
16102
|
},
|
|
16103
16103
|
children: Ve.map((et, pt) => {
|
|
16104
16104
|
var $t;
|
|
16105
|
-
const kt = Xc(et.title), Ot = Xc(et.subtitle), ft = v === "off" && (($t = et.link) != null && $t.value) ? et.link : void 0,
|
|
16105
|
+
const kt = Xc(et.title), Ot = Xc(et.subtitle), ft = v === "off" && (($t = et.link) != null && $t.value) ? et.link : void 0, Zt = Math.floor(pt / yt) === Math.ceil(Ve.length / yt) - 1, en = Ue && pt >= Re ? `${vt + (pt - Re)}` : void 0, jt = Lt ? /* @__PURE__ */ J("div", { className: `${d}-item-text-block`, children: [
|
|
16106
16106
|
kt && /* @__PURE__ */ s("p", { className: te, style: { width: Ht, ...ee, ...$e }, children: et.title }),
|
|
16107
16107
|
kt && /* @__PURE__ */ s(
|
|
16108
16108
|
"div",
|
|
@@ -16151,7 +16151,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16151
16151
|
}
|
|
16152
16152
|
}
|
|
16153
16153
|
)
|
|
16154
|
-
] }) : null,
|
|
16154
|
+
] }) : null, Jt = st ? /* @__PURE__ */ J("div", { className: `${d}-item-subtitle-row`, children: [
|
|
16155
16155
|
!Lt && /* @__PURE__ */ s(
|
|
16156
16156
|
"div",
|
|
16157
16157
|
{
|
|
@@ -16177,7 +16177,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16177
16177
|
)
|
|
16178
16178
|
] }) : null, qt = /* @__PURE__ */ J(mi, { link: ft, className: `${d}-item-text-link`, children: [
|
|
16179
16179
|
Kt,
|
|
16180
|
-
|
|
16180
|
+
Jt
|
|
16181
16181
|
] }), nn = wp(et.gallery), W = nn.filter((Et) => Et.lightboxMedia).map((Et) => Et.lightboxMedia), Ee = /* @__PURE__ */ s("div", { className: dt, style: Rt, children: nn.length === 0 ? null : I === "off" ? (() => {
|
|
16182
16182
|
const { displayMedia: Et, lightboxMedia: ot } = nn[0], Ft = ot ? W.findIndex((Mt) => Mt.assetId === ot.assetId) : -1;
|
|
16183
16183
|
return /* @__PURE__ */ s(
|
|
@@ -16185,7 +16185,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16185
16185
|
{
|
|
16186
16186
|
media: Et,
|
|
16187
16187
|
className: `${d}-item-${lo(Et) ? "video" : "image"}`.trim(),
|
|
16188
|
-
style:
|
|
16188
|
+
style: Qt,
|
|
16189
16189
|
hasLightbox: v === "on",
|
|
16190
16190
|
onMediaClick: gt && Ft >= 0 ? () => ht(W, Ft) : void 0
|
|
16191
16191
|
}
|
|
@@ -16222,7 +16222,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16222
16222
|
{
|
|
16223
16223
|
media: Et,
|
|
16224
16224
|
className: `${d}-item-${lo(Et) ? "video" : "image"}`.trim(),
|
|
16225
|
-
style:
|
|
16225
|
+
style: Qt,
|
|
16226
16226
|
hasLightbox: v === "on",
|
|
16227
16227
|
onMediaClick: gt && Mt >= 0 ? () => ht(W, Mt) : void 0
|
|
16228
16228
|
}
|
|
@@ -16279,7 +16279,7 @@ function Rv({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
16279
16279
|
children: /* @__PURE__ */ s(
|
|
16280
16280
|
"div",
|
|
16281
16281
|
{
|
|
16282
|
-
className: `${o ? `${d}-item-inner` : `${d}-item-inner-hidden`}${st &&
|
|
16282
|
+
className: `${o ? `${d}-item-inner` : `${d}-item-inner-hidden`}${st && Zt ? ` ${d}-item-inner-last-row` : ""}`.trim(),
|
|
16283
16283
|
style: {
|
|
16284
16284
|
width: (b ?? 0) > 100 ? `calc(${Xe} * (${b} / 100))` : Xe,
|
|
16285
16285
|
...en && st ? { gridColumn: en } : {}
|
|
@@ -21098,17 +21098,17 @@ function b0({
|
|
|
21098
21098
|
H.current = Ht;
|
|
21099
21099
|
const xt = xe(() => {
|
|
21100
21100
|
X.current = null, Q.current = !1, P.current !== null && (window.clearInterval(P.current), P.current = null), h.current !== null && (window.clearTimeout(h.current), h.current = null);
|
|
21101
|
-
}, []),
|
|
21101
|
+
}, []), Qt = xe((W) => {
|
|
21102
21102
|
P.current !== null && window.clearInterval(P.current);
|
|
21103
21103
|
const Ee = Q.current ? n0 : t0;
|
|
21104
21104
|
P.current = window.setInterval(() => {
|
|
21105
21105
|
H.current(W);
|
|
21106
21106
|
}, Ee);
|
|
21107
21107
|
}, []), an = xe((W) => {
|
|
21108
|
-
X.current !== W && (xt(), X.current = W, Q.current = !1, H.current(W),
|
|
21109
|
-
h.current = null, X.current === W && (Q.current = !0,
|
|
21108
|
+
X.current !== W && (xt(), X.current = W, Q.current = !1, H.current(W), Qt(W), h.current = window.setTimeout(() => {
|
|
21109
|
+
h.current = null, X.current === W && (Q.current = !0, Qt(W));
|
|
21110
21110
|
}, e0));
|
|
21111
|
-
}, [xt,
|
|
21111
|
+
}, [xt, Qt]), Ie = xe(() => {
|
|
21112
21112
|
const W = y.current;
|
|
21113
21113
|
if (!W) return;
|
|
21114
21114
|
const Ee = _ == null ? void 0 : _.assetId, De = Ee ? L.current.get(Ee) : void 0;
|
|
@@ -21330,7 +21330,7 @@ function b0({
|
|
|
21330
21330
|
display: "block",
|
|
21331
21331
|
objectFit: "contain",
|
|
21332
21332
|
pointerEvents: "none"
|
|
21333
|
-
},
|
|
21333
|
+
}, Zt = (W, Ee, De = "adjacent") => {
|
|
21334
21334
|
const Ge = ze(W);
|
|
21335
21335
|
if (!Ge) return { display: "none" };
|
|
21336
21336
|
const $t = De === "far" ? Ee === "left" ? "far-left" : "far-right" : Ee === "left" ? "left-adjacent" : "right-adjacent", { start: Et } = de !== null ? Ep(Ge, $t, de, R) : {
|
|
@@ -21360,7 +21360,7 @@ function b0({
|
|
|
21360
21360
|
}
|
|
21361
21361
|
Ee.stopPropagation(), Ht(W);
|
|
21362
21362
|
}
|
|
21363
|
-
}, Kt = be ? en(be, "left") : null,
|
|
21363
|
+
}, Kt = be ? en(be, "left") : null, Jt = Me ? en(Me, "right") : null, qt = Kt ? na(Kt, R) : null, nn = Jt ? na(Jt, R) : null;
|
|
21364
21364
|
return /* @__PURE__ */ J(
|
|
21365
21365
|
"div",
|
|
21366
21366
|
{
|
|
@@ -21449,7 +21449,7 @@ function b0({
|
|
|
21449
21449
|
ia,
|
|
21450
21450
|
{
|
|
21451
21451
|
media: Tt,
|
|
21452
|
-
style:
|
|
21452
|
+
style: Zt(Tt, "left", "far"),
|
|
21453
21453
|
onMeasure: Xe,
|
|
21454
21454
|
onTransitionEnd: Ae
|
|
21455
21455
|
},
|
|
@@ -21460,7 +21460,7 @@ function b0({
|
|
|
21460
21460
|
ia,
|
|
21461
21461
|
{
|
|
21462
21462
|
media: be,
|
|
21463
|
-
style:
|
|
21463
|
+
style: Zt(be, "left"),
|
|
21464
21464
|
onMeasure: Xe,
|
|
21465
21465
|
onTransitionEnd: Ae
|
|
21466
21466
|
},
|
|
@@ -21488,7 +21488,7 @@ function b0({
|
|
|
21488
21488
|
ia,
|
|
21489
21489
|
{
|
|
21490
21490
|
media: Me,
|
|
21491
|
-
style:
|
|
21491
|
+
style: Zt(Me, "right"),
|
|
21492
21492
|
onMeasure: Xe,
|
|
21493
21493
|
onTransitionEnd: Ae
|
|
21494
21494
|
},
|
|
@@ -21515,7 +21515,7 @@ function b0({
|
|
|
21515
21515
|
ia,
|
|
21516
21516
|
{
|
|
21517
21517
|
media: yt,
|
|
21518
|
-
style:
|
|
21518
|
+
style: Zt(yt, "right", "far"),
|
|
21519
21519
|
onMeasure: Xe,
|
|
21520
21520
|
onTransitionEnd: Ae
|
|
21521
21521
|
},
|
|
@@ -25953,7 +25953,7 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
25953
25953
|
Tt,
|
|
25954
25954
|
x ?? 0,
|
|
25955
25955
|
n ?? !1
|
|
25956
|
-
).borderTopWidth, dt = de ? "rowPaddingTopB" : "rowPaddingTop", Lt = lt[0], st = lt[lt.length - 1], Ht = rt[0], xt = rt[rt.length - 1],
|
|
25956
|
+
).borderTopWidth, dt = de ? "rowPaddingTopB" : "rowPaddingTop", Lt = lt[0], st = lt[lt.length - 1], Ht = rt[0], xt = rt[rt.length - 1], Qt = Lt && Ht ? Math.max(Ht.paddingLeft, Io) : 0, an = st && xt ? Math.max(xt.paddingRight, Io) : 0, Ie = be, Ye = (Ae, gt) => H0(
|
|
25957
25957
|
A,
|
|
25958
25958
|
Se.current,
|
|
25959
25959
|
ve ? Ae : null,
|
|
@@ -26054,8 +26054,8 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26054
26054
|
const gt = () => {
|
|
26055
26055
|
Ae.querySelectorAll("[data-list-col]").forEach((ft) => {
|
|
26056
26056
|
ft.style.transform = "";
|
|
26057
|
-
const
|
|
26058
|
-
|
|
26057
|
+
const Zt = ft.querySelector(`.${d}-list-col`);
|
|
26058
|
+
Zt && (Zt.style.minHeight = "", Zt.style.height = "");
|
|
26059
26059
|
const en = ft.querySelector(`.${d}-list-col-title`);
|
|
26060
26060
|
en && (en.style.transform = "");
|
|
26061
26061
|
});
|
|
@@ -26065,20 +26065,20 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26065
26065
|
return;
|
|
26066
26066
|
}
|
|
26067
26067
|
const ht = () => {
|
|
26068
|
-
const ft = Array.from(Ae.querySelectorAll("[data-list-row]")),
|
|
26068
|
+
const ft = Array.from(Ae.querySelectorAll("[data-list-row]")), Zt = `${d}-list-col`, en = `${d}-baseline-probe`;
|
|
26069
26069
|
ft.forEach((jt) => {
|
|
26070
26070
|
jt.querySelectorAll("[data-list-col]").forEach((Kt) => {
|
|
26071
26071
|
Kt.style.transform = "";
|
|
26072
|
-
const
|
|
26073
|
-
|
|
26072
|
+
const Jt = Kt.querySelector(`.${Zt}`);
|
|
26073
|
+
Jt && (Jt.style.minHeight = "", Jt.style.height = "");
|
|
26074
26074
|
const qt = Kt.querySelector(`.${d}-list-col-title`);
|
|
26075
26075
|
qt && (qt.style.transform = "");
|
|
26076
26076
|
});
|
|
26077
26077
|
}), ft.forEach((jt) => {
|
|
26078
26078
|
const Kt = Array.from(jt.querySelectorAll("[data-list-col]"));
|
|
26079
|
-
K0(jt, Kt,
|
|
26079
|
+
K0(jt, Kt, Zt);
|
|
26080
26080
|
}), Ae.offsetHeight, ft.forEach((jt) => {
|
|
26081
|
-
const Kt = Array.from(jt.querySelectorAll("[data-list-col]")),
|
|
26081
|
+
const Kt = Array.from(jt.querySelectorAll("[data-list-col]")), Jt = jt.getBoundingClientRect().top, qt = /* @__PURE__ */ new Map(), nn = Kt.map((De) => {
|
|
26082
26082
|
const Ge = De.querySelector(`.${d}-list-col-title`), $t = {
|
|
26083
26083
|
el: De,
|
|
26084
26084
|
titleEl: Ge,
|
|
@@ -26094,8 +26094,8 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26094
26094
|
if (De.kind !== "baseline" || !Et || Ge.has(De.letter)) {
|
|
26095
26095
|
const pn = Ls(
|
|
26096
26096
|
De,
|
|
26097
|
-
Yt,
|
|
26098
26097
|
Jt,
|
|
26098
|
+
Zt,
|
|
26099
26099
|
en
|
|
26100
26100
|
);
|
|
26101
26101
|
return W.set(De.letter, pn), pn;
|
|
@@ -26105,15 +26105,15 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26105
26105
|
Ge.delete(De.letter);
|
|
26106
26106
|
const Ft = Ls(
|
|
26107
26107
|
De,
|
|
26108
|
-
Yt,
|
|
26109
26108
|
Jt,
|
|
26109
|
+
Zt,
|
|
26110
26110
|
en
|
|
26111
26111
|
), Mt = ot - Ft;
|
|
26112
26112
|
Y0(De.titleEl, Mt);
|
|
26113
26113
|
const Bt = Ls(
|
|
26114
26114
|
De,
|
|
26115
|
-
Yt,
|
|
26116
26115
|
Jt,
|
|
26116
|
+
Zt,
|
|
26117
26117
|
en
|
|
26118
26118
|
);
|
|
26119
26119
|
return W.set(De.letter, Bt), Bt;
|
|
@@ -26201,8 +26201,8 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26201
26201
|
...de ? {} : { "data-list-row": "" },
|
|
26202
26202
|
style: de ? void 0 : { minHeight: He(vt) },
|
|
26203
26203
|
children: [
|
|
26204
|
-
lt.map((ft,
|
|
26205
|
-
const en =
|
|
26204
|
+
lt.map((ft, Zt) => {
|
|
26205
|
+
const en = Zt === lt.length - 1, jt = rt[Zt], Kt = ft.paddingBottom, Jt = F0(Ae.cells[ft.key]), qt = de && Kt > 0, nn = de ? { minHeight: He(vt) } : { width: He(it[Zt]) }, W = de ? {
|
|
26206
26206
|
paddingLeft: He(se),
|
|
26207
26207
|
paddingRight: He(se)
|
|
26208
26208
|
} : {
|
|
@@ -26214,8 +26214,8 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26214
26214
|
e[`${ft.textPrefix}VerticalAlign`],
|
|
26215
26215
|
e,
|
|
26216
26216
|
Ee
|
|
26217
|
-
), Ge = de &&
|
|
26218
|
-
return
|
|
26217
|
+
), Ge = de && u && gt === 0;
|
|
26218
|
+
return /* @__PURE__ */ J(
|
|
26219
26219
|
"div",
|
|
26220
26220
|
{
|
|
26221
26221
|
className: de ? `${d}-list-col-wrap` : void 0,
|
|
@@ -26250,7 +26250,7 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26250
26250
|
...dd(e, ft.textPrefix, d, n),
|
|
26251
26251
|
...de ? {} : X0(De.kind)
|
|
26252
26252
|
},
|
|
26253
|
-
children: Ae.cells[ft.key] ?? null
|
|
26253
|
+
children: Jt ? Ae.cells[ft.key] ?? null : de ? " " : null
|
|
26254
26254
|
}
|
|
26255
26255
|
)
|
|
26256
26256
|
}
|
|
@@ -26397,7 +26397,7 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26397
26397
|
style: {
|
|
26398
26398
|
top: 0,
|
|
26399
26399
|
left: 0,
|
|
26400
|
-
width: He(
|
|
26400
|
+
width: He(Qt),
|
|
26401
26401
|
height: "100%"
|
|
26402
26402
|
}
|
|
26403
26403
|
}
|
|
@@ -26427,7 +26427,7 @@ function yb({ settings: e, content: t, isEditor: n, isPreviewMode: i, isEditMode
|
|
|
26427
26427
|
)
|
|
26428
26428
|
] }, "column-edge-padding-handles"),
|
|
26429
26429
|
u && !de && lt.slice(0, -1).map((Ae, gt) => {
|
|
26430
|
-
const ht = lt[gt + 1], Wt = Ke.slice(0, gt + 1).reduce((ft,
|
|
26430
|
+
const ht = lt[gt + 1], Wt = Ke.slice(0, gt + 1).reduce((ft, Zt) => ft + Zt, 0), et = rt[gt], pt = rt[gt + 1], kt = Math.max(
|
|
26431
26431
|
et.paddingRight,
|
|
26432
26432
|
Io
|
|
26433
26433
|
), Ot = Math.max(
|
|
@@ -29295,7 +29295,6 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
|
|
|
29295
29295
|
const columnPaddingBottom = col.paddingBottom;
|
|
29296
29296
|
const hasColumnText = hasListColumnText(row.cells[col.key]);
|
|
29297
29297
|
const showColumnPaddingBottom = isVerticalLayout
|
|
29298
|
-
&& hasColumnText
|
|
29299
29298
|
&& columnPaddingBottom > 0;
|
|
29300
29299
|
const columnSizeStyle = isVerticalLayout
|
|
29301
29300
|
? { minHeight: scaled(resolvedCellMinHeight) }
|
|
@@ -29321,14 +29320,9 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
|
|
|
29321
29320
|
);
|
|
29322
29321
|
|
|
29323
29322
|
const columnPaddingBottomOverlay = isVerticalLayout
|
|
29324
|
-
&& hasColumnText
|
|
29325
29323
|
&& showControls
|
|
29326
29324
|
&& rowIdx === 0;
|
|
29327
29325
|
|
|
29328
|
-
if (isVerticalLayout && !hasColumnText) {
|
|
29329
|
-
return null;
|
|
29330
|
-
}
|
|
29331
|
-
|
|
29332
29326
|
return (
|
|
29333
29327
|
<div
|
|
29334
29328
|
key={col.key}
|
|
@@ -29368,7 +29362,9 @@ export function List({ settings, content, isEditor, isPreviewMode, isEditMode, a
|
|
|
29368
29362
|
...(!isVerticalLayout ? vAlignToTitleStyle(vAlign.kind) : {}),
|
|
29369
29363
|
}}
|
|
29370
29364
|
>
|
|
29371
|
-
{
|
|
29365
|
+
{hasColumnText
|
|
29366
|
+
? (row.cells[col.key] ?? null)
|
|
29367
|
+
: (isVerticalLayout ? '\\u00a0' : null)}
|
|
29372
29368
|
</span>
|
|
29373
29369
|
</div>
|
|
29374
29370
|
{showColumnPaddingBottom && (
|
|
@@ -32969,7 +32965,7 @@ const xd = {
|
|
|
32969
32965
|
}), Xe = q(null), ze = q(null), Be = q(0), He = q("forward"), Ue = q(0), Re = q(null), vt = q(!1), ct = t.length > 1 && (!o || !!r), Rt = ct ? 3 : 1, dt = We(
|
|
32970
32966
|
() => Array.from({ length: Rt }, () => t).flat(),
|
|
32971
32967
|
[t, Rt]
|
|
32972
|
-
), [Lt, st] = ie(!1), [Ht, xt] = ie(!1), [
|
|
32968
|
+
), [Lt, st] = ie(!1), [Ht, xt] = ie(!1), [Qt, an] = ie(!0), Ie = q(null), Ye = q(null), St = q(!1), At = q(!1), Pt = q(null), Ct = q(null), zt = de && !Qt, Gt = xe(() => {
|
|
32973
32969
|
de && (an(!0), Ct.current && clearTimeout(Ct.current), Ct.current = setTimeout(() => {
|
|
32974
32970
|
yt.current.isActive || an(!1);
|
|
32975
32971
|
}, tx));
|
|
@@ -33086,7 +33082,7 @@ const xd = {
|
|
|
33086
33082
|
backdropStyle: kt,
|
|
33087
33083
|
mediaAreaStyle: Ot,
|
|
33088
33084
|
overlayContentStyle: ft,
|
|
33089
|
-
swipeHandlers:
|
|
33085
|
+
swipeHandlers: Zt,
|
|
33090
33086
|
dismissAreaStyle: en
|
|
33091
33087
|
} = zp({
|
|
33092
33088
|
enabled: ae ?? !1,
|
|
@@ -33104,7 +33100,7 @@ const xd = {
|
|
|
33104
33100
|
if (!ct) return;
|
|
33105
33101
|
const ce = Ke.current, fe = jt();
|
|
33106
33102
|
!ce || fe <= 0 || fe < ce.clientWidth * 0.25 || (ce.scrollLeft <= 0 ? (ce.scrollLeft += fe, E && (yt.current.scrollLeft += fe), vt.current && (Ue.current += fe)) : ce.scrollLeft >= fe * 2 && (ce.scrollLeft -= fe, E && (yt.current.scrollLeft -= fe), vt.current && (Ue.current -= fe)));
|
|
33107
|
-
},
|
|
33103
|
+
}, Jt = (E, ce = ((fe) => (fe = Ke.current) == null ? void 0 : fe.scrollLeft)() ?? 0) => {
|
|
33108
33104
|
if (!ct) return E;
|
|
33109
33105
|
let Ne = t.length + E, qe = 1 / 0;
|
|
33110
33106
|
for (let bt = 0; bt < Rt; bt++) {
|
|
@@ -33223,7 +33219,7 @@ const xd = {
|
|
|
33223
33219
|
}, $i = (E = "smooth") => {
|
|
33224
33220
|
const ce = Ke.current;
|
|
33225
33221
|
if (!ce || t.length === 0) return;
|
|
33226
|
-
const fe = W() % t.length, Ne =
|
|
33222
|
+
const fe = W() % t.length, Ne = Jt(fe, ce.scrollLeft), qe = at.current[Ne];
|
|
33227
33223
|
qe && bn(qe.offsetLeft, { behavior: E, activeIndex: fe });
|
|
33228
33224
|
}, ri = (E, ce = "smooth", fe, Ne) => {
|
|
33229
33225
|
const qe = Ke.current;
|
|
@@ -33252,7 +33248,7 @@ const xd = {
|
|
|
33252
33248
|
}, Rn = (E, ce = "smooth") => {
|
|
33253
33249
|
const fe = Ke.current;
|
|
33254
33250
|
if (!fe || t.length === 0) return;
|
|
33255
|
-
const Ne =
|
|
33251
|
+
const Ne = Jt(E, fe.scrollLeft), qe = at.current[Ne];
|
|
33256
33252
|
qe && (ce === "smooth" ? Ie.current = E : Ie.current = null, S.current = E, he(E), $t(!0), bn(qe.offsetLeft, {
|
|
33257
33253
|
behavior: ce,
|
|
33258
33254
|
activeIndex: E,
|
|
@@ -33421,7 +33417,7 @@ const xd = {
|
|
|
33421
33417
|
ref: Me,
|
|
33422
33418
|
className: `${e}-lightbox-dismiss-area`,
|
|
33423
33419
|
style: en,
|
|
33424
|
-
...
|
|
33420
|
+
...Zt,
|
|
33425
33421
|
children: [
|
|
33426
33422
|
/* @__PURE__ */ s("div", { className: `${e}-lightbox-content`, style: Ot, onClick: (E) => E.stopPropagation(), children: /* @__PURE__ */ s(
|
|
33427
33423
|
"div",
|
|
@@ -35433,7 +35429,7 @@ const Tx = gx(), Ix = {
|
|
|
35433
35429
|
const we = Math.max(0, pe.length - 1), Je = Math.min(Math.max(0, a), we);
|
|
35434
35430
|
je.current = Je, _e.current = ((E = pe[Je]) == null ? void 0 : E.entryIndex) ?? 0, B(Je);
|
|
35435
35431
|
}, [a]);
|
|
35436
|
-
const st = Oe !== null ? t[Oe] : null, Ht = m !== null ? pe[m] : null, xt = (ae == null ? void 0 : ae.title1) || (ae == null ? void 0 : ae.title2) || (ae == null ? void 0 : ae.title3) || (st == null ? void 0 : st.title1) || (st == null ? void 0 : st.title2) || (st == null ? void 0 : st.title3),
|
|
35432
|
+
const st = Oe !== null ? t[Oe] : null, Ht = m !== null ? pe[m] : null, xt = (ae == null ? void 0 : ae.title1) || (ae == null ? void 0 : ae.title2) || (ae == null ? void 0 : ae.title3) || (st == null ? void 0 : st.title1) || (st == null ? void 0 : st.title2) || (st == null ? void 0 : st.title3), Qt = jv(f, pe, t), an = T !== null, Ie = xt || Qt || an, Ye = Qt && an ? { gap: Q } : void 0, St = `${e}-titles-stack${ne ? ` ${e}-titles-stack-stacked` : ""}`, At = `${e}-titles-layer-out${ne ? ` ${e}-titles-layer-out-stacked` : ""}`, Pt = `${e}-titles-layer-out`, Ct = (K ?? 0) > 0 || o, zt = H(A), Gt = We(
|
|
35437
35433
|
() => ({
|
|
35438
35434
|
title1Width: y ?? No.title1Width,
|
|
35439
35435
|
title2Width: I ?? No.title2Width,
|
|
@@ -35498,7 +35494,7 @@ const Tx = gx(), Ix = {
|
|
|
35498
35494
|
et,
|
|
35499
35495
|
kt,
|
|
35500
35496
|
ne
|
|
35501
|
-
]),
|
|
35497
|
+
]), Zt = xe(
|
|
35502
35498
|
(we) => Lp(
|
|
35503
35499
|
Ae,
|
|
35504
35500
|
ht,
|
|
@@ -35521,7 +35517,7 @@ const Tx = gx(), Ix = {
|
|
|
35521
35517
|
return jt(we) + (Je.marginLeftKey ? Ut[Je.marginLeftKey] ?? 0 : 0) + (Ot.resolved[we] ?? 0);
|
|
35522
35518
|
},
|
|
35523
35519
|
[pt, Ot.resolved, jt, Ut]
|
|
35524
|
-
),
|
|
35520
|
+
), Jt = xe((we, Je, E) => {
|
|
35525
35521
|
if (!ne || E === "single-row") {
|
|
35526
35522
|
const bt = we.findIndex((cn) => cn.prefix === Je.prefix), Vt = we.map((cn) => Gt[cn.widthKey]), tn = Bo(we.length, Vt);
|
|
35527
35523
|
return {
|
|
@@ -35636,7 +35632,7 @@ const Tx = gx(), Ix = {
|
|
|
35636
35632
|
"aria-atomic": "true",
|
|
35637
35633
|
children: Xv(pe, Te, f, t)
|
|
35638
35634
|
}
|
|
35639
|
-
), De = () =>
|
|
35635
|
+
), De = () => Qt ? o && an ? /* @__PURE__ */ J("div", { className: `${e}-text-bar-cell`, style: { flexShrink: 0 }, children: [
|
|
35640
35636
|
Ee(),
|
|
35641
35637
|
/* @__PURE__ */ s(
|
|
35642
35638
|
"div",
|
|
@@ -35655,7 +35651,7 @@ const Tx = gx(), Ix = {
|
|
|
35655
35651
|
}
|
|
35656
35652
|
}
|
|
35657
35653
|
)
|
|
35658
|
-
] }) : Ee() : null, Ge = () => !
|
|
35654
|
+
] }) : Ee() : null, Ge = () => !Qt && !an ? null : /* @__PURE__ */ J(
|
|
35659
35655
|
"div",
|
|
35660
35656
|
{
|
|
35661
35657
|
className: `${e}-titles-row-header-controls`,
|
|
@@ -35674,7 +35670,7 @@ const Tx = gx(), Ix = {
|
|
|
35674
35670
|
position: "relative"
|
|
35675
35671
|
},
|
|
35676
35672
|
children: [
|
|
35677
|
-
|
|
35673
|
+
Qt || xt ? W() : null,
|
|
35678
35674
|
Ct ? nn("single-row") : null,
|
|
35679
35675
|
Mt(ae),
|
|
35680
35676
|
/* @__PURE__ */ s("div", { style: { flex: 1, minWidth: 0 }, "aria-hidden": "true" }),
|
|
@@ -35688,7 +35684,7 @@ const Tx = gx(), Ix = {
|
|
|
35688
35684
|
className: `${e}-titles-row ${e}-titles-row-header`,
|
|
35689
35685
|
style: { width: "100%", position: "relative" },
|
|
35690
35686
|
children: [
|
|
35691
|
-
|
|
35687
|
+
Qt || xt ? W() : null,
|
|
35692
35688
|
Ct ? nn("single-row") : null,
|
|
35693
35689
|
/* @__PURE__ */ J(
|
|
35694
35690
|
"div",
|
|
@@ -35793,7 +35789,7 @@ const Tx = gx(), Ix = {
|
|
|
35793
35789
|
{
|
|
35794
35790
|
className: `${e}-titles-row-top`,
|
|
35795
35791
|
children: [
|
|
35796
|
-
|
|
35792
|
+
Qt || xt ? W() : null,
|
|
35797
35793
|
Ct ? nn("two-row") : null,
|
|
35798
35794
|
Je !== void 0 ? /* @__PURE__ */ s(
|
|
35799
35795
|
"div",
|
|
@@ -35820,7 +35816,7 @@ const Tx = gx(), Ix = {
|
|
|
35820
35816
|
return /* @__PURE__ */ s(wt, { children: Je.map((E) => qt(
|
|
35821
35817
|
E,
|
|
35822
35818
|
"single-row",
|
|
35823
|
-
|
|
35819
|
+
Jt(Je, E, "single-row")
|
|
35824
35820
|
)) });
|
|
35825
35821
|
}, Bt = (we) => {
|
|
35826
35822
|
if (!we) return null;
|
|
@@ -35828,7 +35824,7 @@ const Tx = gx(), Ix = {
|
|
|
35828
35824
|
return E ? qt(
|
|
35829
35825
|
E,
|
|
35830
35826
|
"two-row-top",
|
|
35831
|
-
|
|
35827
|
+
Jt(Je, E, "two-row-top")
|
|
35832
35828
|
) : null;
|
|
35833
35829
|
}, pn = (we, Je = !1) => {
|
|
35834
35830
|
const E = we ? Hi(e, we, R, he, S) : [], ce = E.filter((qe) => qe.prefix === "title2" || qe.prefix === "title3"), fe = o && Je;
|
|
@@ -35837,7 +35833,7 @@ const Tx = gx(), Ix = {
|
|
|
35837
35833
|
ce.map((qe) => qt(
|
|
35838
35834
|
qe,
|
|
35839
35835
|
"two-row-bottom",
|
|
35840
|
-
|
|
35836
|
+
Jt(E, qe, "two-row-bottom")
|
|
35841
35837
|
)),
|
|
35842
35838
|
Je && o ? /* @__PURE__ */ J(wt, { children: [
|
|
35843
35839
|
$i(),
|
|
@@ -35913,7 +35909,7 @@ const Tx = gx(), Ix = {
|
|
|
35913
35909
|
});
|
|
35914
35910
|
return Je ? [Je, ...E] : E;
|
|
35915
35911
|
}, bn = () => Ae.map((we, Je) => {
|
|
35916
|
-
const E = Ln(Je, ht), fe =
|
|
35912
|
+
const E = Ln(Je, ht), fe = Zt(Je) - Wn / 2;
|
|
35917
35913
|
return /* @__PURE__ */ s("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ s(
|
|
35918
35914
|
"div",
|
|
35919
35915
|
{
|
|
@@ -42647,17 +42643,17 @@ function _S({
|
|
|
42647
42643
|
H.current = Ht;
|
|
42648
42644
|
const xt = xe(() => {
|
|
42649
42645
|
X.current = null, Q.current = !1, P.current !== null && (window.clearInterval(P.current), P.current = null), h.current !== null && (window.clearTimeout(h.current), h.current = null);
|
|
42650
|
-
}, []),
|
|
42646
|
+
}, []), Qt = xe((W) => {
|
|
42651
42647
|
P.current !== null && window.clearInterval(P.current);
|
|
42652
42648
|
const Ee = Q.current ? wS : SS;
|
|
42653
42649
|
P.current = window.setInterval(() => {
|
|
42654
42650
|
H.current(W);
|
|
42655
42651
|
}, Ee);
|
|
42656
42652
|
}, []), an = xe((W) => {
|
|
42657
|
-
X.current !== W && (xt(), X.current = W, Q.current = !1, H.current(W),
|
|
42658
|
-
h.current = null, X.current === W && (Q.current = !0,
|
|
42653
|
+
X.current !== W && (xt(), X.current = W, Q.current = !1, H.current(W), Qt(W), h.current = window.setTimeout(() => {
|
|
42654
|
+
h.current = null, X.current === W && (Q.current = !0, Qt(W));
|
|
42659
42655
|
}, xS));
|
|
42660
|
-
}, [xt,
|
|
42656
|
+
}, [xt, Qt]), Ie = xe(() => {
|
|
42661
42657
|
const W = y.current;
|
|
42662
42658
|
if (!W) return;
|
|
42663
42659
|
const Ee = _ == null ? void 0 : _.assetId, De = Ee ? L.current.get(Ee) : void 0;
|
|
@@ -42879,7 +42875,7 @@ function _S({
|
|
|
42879
42875
|
display: "block",
|
|
42880
42876
|
objectFit: "contain",
|
|
42881
42877
|
pointerEvents: "none"
|
|
42882
|
-
},
|
|
42878
|
+
}, Zt = (W, Ee, De = "adjacent") => {
|
|
42883
42879
|
const Ge = ze(W);
|
|
42884
42880
|
if (!Ge) return { display: "none" };
|
|
42885
42881
|
const $t = De === "far" ? Ee === "left" ? "far-left" : "far-right" : Ee === "left" ? "left-adjacent" : "right-adjacent", { start: Et } = de !== null ? Up(Ge, $t, de, R) : {
|
|
@@ -42909,7 +42905,7 @@ function _S({
|
|
|
42909
42905
|
}
|
|
42910
42906
|
Ee.stopPropagation(), Ht(W);
|
|
42911
42907
|
}
|
|
42912
|
-
}, Kt = be ? en(be, "left") : null,
|
|
42908
|
+
}, Kt = be ? en(be, "left") : null, Jt = Me ? en(Me, "right") : null, qt = Kt ? ca(Kt, R) : null, nn = Jt ? ca(Jt, R) : null;
|
|
42913
42909
|
return /* @__PURE__ */ J(
|
|
42914
42910
|
"div",
|
|
42915
42911
|
{
|
|
@@ -42998,7 +42994,7 @@ function _S({
|
|
|
42998
42994
|
da,
|
|
42999
42995
|
{
|
|
43000
42996
|
media: Tt,
|
|
43001
|
-
style:
|
|
42997
|
+
style: Zt(Tt, "left", "far"),
|
|
43002
42998
|
onMeasure: Xe,
|
|
43003
42999
|
onTransitionEnd: Ae
|
|
43004
43000
|
},
|
|
@@ -43009,7 +43005,7 @@ function _S({
|
|
|
43009
43005
|
da,
|
|
43010
43006
|
{
|
|
43011
43007
|
media: be,
|
|
43012
|
-
style:
|
|
43008
|
+
style: Zt(be, "left"),
|
|
43013
43009
|
onMeasure: Xe,
|
|
43014
43010
|
onTransitionEnd: Ae
|
|
43015
43011
|
},
|
|
@@ -43037,7 +43033,7 @@ function _S({
|
|
|
43037
43033
|
da,
|
|
43038
43034
|
{
|
|
43039
43035
|
media: Me,
|
|
43040
|
-
style:
|
|
43036
|
+
style: Zt(Me, "right"),
|
|
43041
43037
|
onMeasure: Xe,
|
|
43042
43038
|
onTransitionEnd: Ae
|
|
43043
43039
|
},
|
|
@@ -43064,7 +43060,7 @@ function _S({
|
|
|
43064
43060
|
da,
|
|
43065
43061
|
{
|
|
43066
43062
|
media: yt,
|
|
43067
|
-
style:
|
|
43063
|
+
style: Zt(yt, "right", "far"),
|
|
43068
43064
|
onMeasure: Xe,
|
|
43069
43065
|
onTransitionEnd: Ae
|
|
43070
43066
|
},
|
|
@@ -48670,7 +48666,7 @@ function Yw({
|
|
|
48670
48666
|
}
|
|
48671
48667
|
) }),
|
|
48672
48668
|
c.map((pt, kt) => {
|
|
48673
|
-
const Ot = kw(pt.gallery), ft = kt < c.length - 1,
|
|
48669
|
+
const Ot = kw(pt.gallery), ft = kt < c.length - 1, Zt = Ot.filter((jt) => jt.lightboxMedia).map((jt) => jt.lightboxMedia), en = {
|
|
48674
48670
|
P: a,
|
|
48675
48671
|
position: v,
|
|
48676
48672
|
titleRef: T(kt),
|
|
@@ -48746,8 +48742,8 @@ function Yw({
|
|
|
48746
48742
|
}
|
|
48747
48743
|
),
|
|
48748
48744
|
F ? /* @__PURE__ */ J("div", { className: `${a}-gallery`, children: [
|
|
48749
|
-
/* @__PURE__ */ s("div", { className: `${a}-gallery-media`, children: Ot.map(({ displayMedia: jt, lightboxMedia: Kt },
|
|
48750
|
-
const qt = Kt ?
|
|
48745
|
+
/* @__PURE__ */ s("div", { className: `${a}-gallery-media`, children: Ot.map(({ displayMedia: jt, lightboxMedia: Kt }, Jt) => {
|
|
48746
|
+
const qt = Kt ? Zt.findIndex((nn) => nn.assetId === Kt.assetId) : -1;
|
|
48751
48747
|
return /* @__PURE__ */ s(
|
|
48752
48748
|
Nd,
|
|
48753
48749
|
{
|
|
@@ -48758,12 +48754,12 @@ function Yw({
|
|
|
48758
48754
|
imageDisplay: p,
|
|
48759
48755
|
isEditor: n,
|
|
48760
48756
|
galleryPaddingBetween: he,
|
|
48761
|
-
showPaddingAfter:
|
|
48757
|
+
showPaddingAfter: Jt < Ot.length - 1,
|
|
48762
48758
|
showControls: j,
|
|
48763
48759
|
hasLightbox: A === "on",
|
|
48764
|
-
onMediaClick: Q && qt >= 0 ? () => Ae(
|
|
48760
|
+
onMediaClick: Q && qt >= 0 ? () => Ae(Zt, qt) : void 0
|
|
48765
48761
|
},
|
|
48766
|
-
`${jt.assetId}-${
|
|
48762
|
+
`${jt.assetId}-${Jt}`
|
|
48767
48763
|
);
|
|
48768
48764
|
}) }),
|
|
48769
48765
|
/* @__PURE__ */ s("div", { className: `${a}-title-layer`, children: /* @__PURE__ */ s(
|
|
@@ -48796,8 +48792,8 @@ function Yw({
|
|
|
48796
48792
|
galleryPaddingMaxFraction: Fe,
|
|
48797
48793
|
showControls: j,
|
|
48798
48794
|
scaled: S,
|
|
48799
|
-
children: Ot.map(({ displayMedia: jt, lightboxMedia: Kt },
|
|
48800
|
-
const qt = Kt ?
|
|
48795
|
+
children: Ot.map(({ displayMedia: jt, lightboxMedia: Kt }, Jt) => {
|
|
48796
|
+
const qt = Kt ? Zt.findIndex((nn) => nn.assetId === Kt.assetId) : -1;
|
|
48801
48797
|
return /* @__PURE__ */ s(
|
|
48802
48798
|
Nd,
|
|
48803
48799
|
{
|
|
@@ -48808,12 +48804,12 @@ function Yw({
|
|
|
48808
48804
|
imageDisplay: p,
|
|
48809
48805
|
isEditor: n,
|
|
48810
48806
|
galleryPaddingBetween: he,
|
|
48811
|
-
showPaddingAfter:
|
|
48807
|
+
showPaddingAfter: Jt < Ot.length - 1,
|
|
48812
48808
|
showControls: j,
|
|
48813
48809
|
hasLightbox: A === "on",
|
|
48814
|
-
onMediaClick: Q && qt >= 0 ? () => Ae(
|
|
48810
|
+
onMediaClick: Q && qt >= 0 ? () => Ae(Zt, qt) : void 0
|
|
48815
48811
|
},
|
|
48816
|
-
`${jt.assetId}-${
|
|
48812
|
+
`${jt.assetId}-${Jt}`
|
|
48817
48813
|
);
|
|
48818
48814
|
})
|
|
48819
48815
|
}
|
|
@@ -54665,7 +54661,7 @@ function IC({
|
|
|
54665
54661
|
textPaddingTop: st = 10 / 1440,
|
|
54666
54662
|
textPaddingBottom: Ht = 10 / 1440,
|
|
54667
54663
|
fontFamily: xt,
|
|
54668
|
-
fontSettings:
|
|
54664
|
+
fontSettings: Qt,
|
|
54669
54665
|
fontSize: an,
|
|
54670
54666
|
lineHeight: Ie,
|
|
54671
54667
|
letterSpacing: Ye = 0,
|
|
@@ -54686,7 +54682,7 @@ function IC({
|
|
|
54686
54682
|
position: Se,
|
|
54687
54683
|
horizontalAlign: Oe,
|
|
54688
54684
|
verticalAlign: Fe
|
|
54689
|
-
}), ft = R === "compact",
|
|
54685
|
+
}), ft = R === "compact", Zt = ft ? oe : Te, en = G$(ft ? ue : B), jt = ft ? te : re, Kt = ft ? $e : m, Jt = ft ? le : Be, qt = X$(ft ? _ : He), nn = (ft ? _e : Ue) ?? 0, W = ft ? je : vt, Ee = ft ? Qe : ct, De = ft ? Ze : Rt, Ge = Jt ?? ze, $t = X || (ft ? N : Ce) !== "off", Et = Xi(p, {
|
|
54690
54686
|
iconColor: Pe,
|
|
54691
54687
|
closeButtonColor: Tt,
|
|
54692
54688
|
linkColor: Z,
|
|
@@ -54711,7 +54707,7 @@ function IC({
|
|
|
54711
54707
|
textAppearance: rt
|
|
54712
54708
|
} : {
|
|
54713
54709
|
fontFamily: xt,
|
|
54714
|
-
fontSettings:
|
|
54710
|
+
fontSettings: Qt,
|
|
54715
54711
|
fontSize: an,
|
|
54716
54712
|
lineHeight: Ie,
|
|
54717
54713
|
letterSpacing: Ye,
|
|
@@ -54797,7 +54793,7 @@ function IC({
|
|
|
54797
54793
|
...Mt.css,
|
|
54798
54794
|
textDecoration: "none",
|
|
54799
54795
|
transform: jd(pn)
|
|
54800
|
-
}, tn = Mt.className, hn = (pe == null ? void 0 : pe.mode) !== "Off", cn = (pe == null ? void 0 : pe.icon) ?? "", Ti = vC(cn), Bn = bC(cn, Ti), si = !!Bn, jr = bn(Math.min(
|
|
54796
|
+
}, tn = Mt.className, hn = (pe == null ? void 0 : pe.mode) !== "Off", cn = (pe == null ? void 0 : pe.icon) ?? "", Ti = vC(cn), Bn = bC(cn, Ti), si = !!Bn, jr = bn(Math.min(Zt, jt)), rr = !!(hn && cn && en === "right") ? "left" : "right", gc = Array.isArray(pt) ? pt : [], ss = [
|
|
54801
54797
|
R !== "default" ? `${p}-state-${R}` : "",
|
|
54802
54798
|
X || C === "open" ? `${p}-state-open` : "",
|
|
54803
54799
|
ge && ge !== R && ge !== C ? `${p}-state-${ge}` : ""
|
|
@@ -60492,7 +60488,7 @@ function nI({
|
|
|
60492
60488
|
pathEditor: C,
|
|
60493
60489
|
imageEditor: w
|
|
60494
60490
|
}) {
|
|
60495
|
-
var
|
|
60491
|
+
var Qt, an;
|
|
60496
60492
|
const V = `pretext-shape-image-${Mu().replace(/:/g, "")}`, [H, X] = ie(null), P = q(null), [h, Q] = ie({ width: 0, height: 0 }), [j, ge] = ie(0), [R, he] = ie(0), [S, me] = ie(null), [ne, ve] = ie(0), [ke, pe] = ie("none");
|
|
60497
60493
|
Le(() => {
|
|
60498
60494
|
!C && !w && pe("none");
|
|
@@ -60515,7 +60511,7 @@ function nI({
|
|
|
60515
60511
|
`), [de]), { lang: Oe, hyphenateSync: Fe } = AT(v, Se), Pe = We(
|
|
60516
60512
|
() => v ? ae.map((Ie) => FT(Ie.text, Fe)) : [],
|
|
60517
60513
|
[v, ae, Fe]
|
|
60518
|
-
), Ce = k > 0 && y > 1 ? ((an = (
|
|
60514
|
+
), Ce = k > 0 && y > 1 ? ((an = (Qt = ae[0]) == null ? void 0 : Qt.text) == null ? void 0 : an.charAt(0)) ?? "" : "", m = (C == null ? void 0 : C.contours) ?? null, Z = We(() => {
|
|
60519
60515
|
let Ie = [];
|
|
60520
60516
|
if (m) {
|
|
60521
60517
|
const Ye = Hr(m);
|
|
@@ -60638,13 +60634,13 @@ function nI({
|
|
|
60638
60634
|
Mt > 0 && (ft = Mt);
|
|
60639
60635
|
}
|
|
60640
60636
|
const Kt = y > 1 ? (y - 1) * ht + ft : ft;
|
|
60641
|
-
let
|
|
60637
|
+
let Jt = Ut * (Kt / ft);
|
|
60642
60638
|
if (en) {
|
|
60643
|
-
en.font = jt(
|
|
60639
|
+
en.font = jt(Jt);
|
|
60644
60640
|
const Mt = en.measureText(Ct).actualBoundingBoxAscent;
|
|
60645
|
-
Mt > 0 && (
|
|
60641
|
+
Mt > 0 && (Jt = Jt * (Kt / Mt));
|
|
60646
60642
|
}
|
|
60647
|
-
zt.style.fontSize = `${
|
|
60643
|
+
zt.style.fontSize = `${Jt}px`, zt.style.lineHeight = `${Jt}px`;
|
|
60648
60644
|
const qt = document.createElement("span");
|
|
60649
60645
|
qt.style.cssText = "display:inline-block;width:0;height:0;vertical-align:baseline", zt.appendChild(qt);
|
|
60650
60646
|
const nn = Math.max(1, qt.getBoundingClientRect().top - zt.getBoundingClientRect().top);
|
|
@@ -60665,7 +60661,7 @@ function nI({
|
|
|
60665
60661
|
charWidths: Ft,
|
|
60666
60662
|
lineHeight: ht,
|
|
60667
60663
|
capWidth: Et,
|
|
60668
|
-
dropCapFontSize:
|
|
60664
|
+
dropCapFontSize: Jt,
|
|
60669
60665
|
dropCapTopAdjust: Ee
|
|
60670
60666
|
});
|
|
60671
60667
|
}, [ae, L, Ce, k, y, ne, h.width, v, Pe, p, R]);
|