@cntrl-site/components 1.0.17-4 → 1.0.17-6
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 +28 -18
- package/dist/index.mjs +499 -489
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as l, Fragment as Ge, jsxs as
|
|
1
|
+
import { jsx as l, Fragment as Ge, jsxs as re } from "react/jsx-runtime";
|
|
2
2
|
import en, { useState as de, useEffect as Ae, useRef as Te, useCallback as ft, useMemo as He, useLayoutEffect as yt } from "react";
|
|
3
3
|
import Fe from "classnames";
|
|
4
4
|
import { s as L, u as an, b as Jn, g as Lr, r as zi } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
@@ -6,7 +6,7 @@ import { createPortal as Vi } from "react-dom";
|
|
|
6
6
|
function ap(e) {
|
|
7
7
|
return e.type === "object" && e.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__hoverArrow___A-dOH", Ba = "ControlSlider-module__sliderItem___QQSkR", Da = "ControlSlider-module__sliderImage___9hRl-", za = "ControlSlider-module__arrow___05ghY", Va = "ControlSlider-module__arrowVertical___tBfVN", qa = "ControlSlider-module__nextArrow___-30Yc", ja = "ControlSlider-module__arrowInner___aEra3", Ka = "ControlSlider-module__arrowIcon___S4ztF", Ua = "ControlSlider-module__arrowImg___2dwJW", Ga = "ControlSlider-module__mirror___brd6U", Ya = "ControlSlider-module__pagination___bicLF", Xa = "ControlSlider-module__paginationInner___bT-P-", Qa = "ControlSlider-module__paginationVertical___zYqKw", Za = "ControlSlider-module__paginationItem___nTRbk", Ja = "ControlSlider-module__dot___p1Qun", es = "ControlSlider-module__activeDot___LHFaj", ts = "ControlSlider-module__paginationInsideBottom___R3FWn", ns = "ControlSlider-module__paginationInsideTop___V-qb-", rs = "ControlSlider-module__paginationOutsideBottom___14w8D", os = "ControlSlider-module__paginationOutsideTop___SCLqB", is = "ControlSlider-module__paginationInsideLeft___yOBRZ", as = "ControlSlider-module__paginationInsideRight___Rtt3o", ss = "ControlSlider-module__paginationOutsideLeft___lahaw", ls = "ControlSlider-module__paginationOutsideRight___EtuQa", cs = "ControlSlider-module__imgWrapper___UjEgB", ds = "ControlSlider-module__captionBlock___dJ6-j", us = "ControlSlider-module__captionTextWrapper___HFlpf", ps = "ControlSlider-module__captionText___uGBVc", ms = "ControlSlider-module__active___WZK4G", gs = "ControlSlider-module__withPointerEvents___t-18M", hs = "ControlSlider-module__topLeftAlignment___zjnGM", fs = "ControlSlider-module__topCenterAlignment___gD1xW", ys = "ControlSlider-module__topRightAlignment___NMapS", vs = "ControlSlider-module__middleLeftAlignment___OnUrY", bs = "ControlSlider-module__middleCenterAlignment___Tdkl0", xs = "ControlSlider-module__middleRightAlignment___wEbfX", Cs = "ControlSlider-module__bottomLeftAlignment___cTP2-", $s = "ControlSlider-module__bottomCenterAlignment___c54fB",
|
|
9
|
+
const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__hoverArrow___A-dOH", Ba = "ControlSlider-module__sliderItem___QQSkR", Da = "ControlSlider-module__sliderImage___9hRl-", za = "ControlSlider-module__arrow___05ghY", Va = "ControlSlider-module__arrowVertical___tBfVN", qa = "ControlSlider-module__nextArrow___-30Yc", ja = "ControlSlider-module__arrowInner___aEra3", Ka = "ControlSlider-module__arrowIcon___S4ztF", Ua = "ControlSlider-module__arrowImg___2dwJW", Ga = "ControlSlider-module__mirror___brd6U", Ya = "ControlSlider-module__pagination___bicLF", Xa = "ControlSlider-module__paginationInner___bT-P-", Qa = "ControlSlider-module__paginationVertical___zYqKw", Za = "ControlSlider-module__paginationItem___nTRbk", Ja = "ControlSlider-module__dot___p1Qun", es = "ControlSlider-module__activeDot___LHFaj", ts = "ControlSlider-module__paginationInsideBottom___R3FWn", ns = "ControlSlider-module__paginationInsideTop___V-qb-", rs = "ControlSlider-module__paginationOutsideBottom___14w8D", os = "ControlSlider-module__paginationOutsideTop___SCLqB", is = "ControlSlider-module__paginationInsideLeft___yOBRZ", as = "ControlSlider-module__paginationInsideRight___Rtt3o", ss = "ControlSlider-module__paginationOutsideLeft___lahaw", ls = "ControlSlider-module__paginationOutsideRight___EtuQa", cs = "ControlSlider-module__imgWrapper___UjEgB", ds = "ControlSlider-module__captionBlock___dJ6-j", us = "ControlSlider-module__captionTextWrapper___HFlpf", ps = "ControlSlider-module__captionText___uGBVc", ms = "ControlSlider-module__active___WZK4G", gs = "ControlSlider-module__withPointerEvents___t-18M", hs = "ControlSlider-module__topLeftAlignment___zjnGM", fs = "ControlSlider-module__topCenterAlignment___gD1xW", ys = "ControlSlider-module__topRightAlignment___NMapS", vs = "ControlSlider-module__middleLeftAlignment___OnUrY", bs = "ControlSlider-module__middleCenterAlignment___Tdkl0", xs = "ControlSlider-module__middleRightAlignment___wEbfX", Cs = "ControlSlider-module__bottomLeftAlignment___cTP2-", $s = "ControlSlider-module__bottomCenterAlignment___c54fB", Ss = "ControlSlider-module__bottomRightAlignment___kEwrz", ws = "ControlSlider-module__clickOverlay___DZA28", Ts = "ControlSlider-module__contain___pLyq7", Ls = "ControlSlider-module__cover___KdDat", ue = {
|
|
10
10
|
wrapper: Ha,
|
|
11
11
|
hoverArrow: Oa,
|
|
12
12
|
sliderItem: Ba,
|
|
@@ -46,8 +46,8 @@ const Ha = "ControlSlider-module__wrapper___sHEkd", Oa = "ControlSlider-module__
|
|
|
46
46
|
middleRightAlignment: xs,
|
|
47
47
|
bottomLeftAlignment: Cs,
|
|
48
48
|
bottomCenterAlignment: $s,
|
|
49
|
-
bottomRightAlignment:
|
|
50
|
-
clickOverlay:
|
|
49
|
+
bottomRightAlignment: Ss,
|
|
50
|
+
clickOverlay: ws,
|
|
51
51
|
contain: Ts,
|
|
52
52
|
cover: Ls
|
|
53
53
|
};
|
|
@@ -220,7 +220,7 @@ function Bt(e, t) {
|
|
|
220
220
|
function Xi(e, t) {
|
|
221
221
|
return e && e.querySelector(t);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function So(e, t) {
|
|
224
224
|
return t ? sn(e.querySelectorAll(t)) : [];
|
|
225
225
|
}
|
|
226
226
|
function zt(e, t) {
|
|
@@ -232,7 +232,7 @@ function co(e) {
|
|
|
232
232
|
function dn(e) {
|
|
233
233
|
return nn(e) ? e : e ? e + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var ir = "splide",
|
|
235
|
+
var ir = "splide", wo = "data-" + ir;
|
|
236
236
|
function Bn(e, t) {
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("[" + ir + "] " + (t || ""));
|
|
@@ -267,15 +267,15 @@ function Is(e) {
|
|
|
267
267
|
function Zi() {
|
|
268
268
|
var e = [];
|
|
269
269
|
function t(o, c, a, u) {
|
|
270
|
-
i(o, c, function(d,
|
|
271
|
-
var h = "addEventListener" in d, p = h ? d.removeEventListener.bind(d,
|
|
272
|
-
h ? d.addEventListener(
|
|
270
|
+
i(o, c, function(d, S, v) {
|
|
271
|
+
var h = "addEventListener" in d, p = h ? d.removeEventListener.bind(d, S, a, u) : d.removeListener.bind(d, a);
|
|
272
|
+
h ? d.addEventListener(S, a, u) : d.addListener(a), e.push([d, S, v, a, p]);
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function n(o, c, a) {
|
|
276
|
-
i(o, c, function(u, d,
|
|
276
|
+
i(o, c, function(u, d, S) {
|
|
277
277
|
e = e.filter(function(v) {
|
|
278
|
-
return v[0] === u && v[1] === d && v[2] ===
|
|
278
|
+
return v[0] === u && v[1] === d && v[2] === S && (!a || v[3] === a) ? (v[4](), !1) : !0;
|
|
279
279
|
});
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -289,8 +289,8 @@ function Zi() {
|
|
|
289
289
|
function i(o, c, a) {
|
|
290
290
|
Lt(o, function(u) {
|
|
291
291
|
u && Lt(c, function(d) {
|
|
292
|
-
d.split(" ").forEach(function(
|
|
293
|
-
var v =
|
|
292
|
+
d.split(" ").forEach(function(S) {
|
|
293
|
+
var v = S.split(".");
|
|
294
294
|
a(u, v[0], v[1]);
|
|
295
295
|
});
|
|
296
296
|
});
|
|
@@ -335,7 +335,7 @@ function Mr(e, t, n, r) {
|
|
|
335
335
|
c = Xo(d);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function S($) {
|
|
339
339
|
$ || p(), s = i() - ($ ? o * e : 0), a = !1, c = Xo(d);
|
|
340
340
|
}
|
|
341
341
|
function v() {
|
|
@@ -354,7 +354,7 @@ function Mr(e, t, n, r) {
|
|
|
354
354
|
return a;
|
|
355
355
|
}
|
|
356
356
|
return {
|
|
357
|
-
start:
|
|
357
|
+
start: S,
|
|
358
358
|
rewind: h,
|
|
359
359
|
pause: v,
|
|
360
360
|
cancel: p,
|
|
@@ -389,16 +389,16 @@ function Fs(e, t, n) {
|
|
|
389
389
|
return p ? +m - +b : +b - +m;
|
|
390
390
|
}).forEach(function(m) {
|
|
391
391
|
d(i[m], "(" + (p ? "min" : "max") + "-width:" + m + "px)");
|
|
392
|
-
}), d(s, Yo),
|
|
392
|
+
}), d(s, Yo), S();
|
|
393
393
|
}
|
|
394
394
|
function u(p) {
|
|
395
395
|
p && o.destroy();
|
|
396
396
|
}
|
|
397
397
|
function d(p, m) {
|
|
398
398
|
var b = matchMedia(m);
|
|
399
|
-
o.bind(b, "change",
|
|
399
|
+
o.bind(b, "change", S), c.push([p, b]);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function S() {
|
|
402
402
|
var p = r.is(Pr), m = n.direction, b = c.reduce(function($, x) {
|
|
403
403
|
return tn($, x[1].matches ? x[0] : {});
|
|
404
404
|
}, {});
|
|
@@ -432,8 +432,8 @@ function Ms(e, t, n) {
|
|
|
432
432
|
c = c || n.direction;
|
|
433
433
|
var a = c === ei && !o ? 1 : c === Br ? 0 : -1;
|
|
434
434
|
return Yr[s] && Yr[s][a] || s.replace(/width|left|right/i, function(u, d) {
|
|
435
|
-
var
|
|
436
|
-
return d > 0 ?
|
|
435
|
+
var S = Yr[u.toLowerCase()][a] || u;
|
|
436
|
+
return d > 0 ? S.charAt(0).toUpperCase() + S.slice(1) : S;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function i(s) {
|
|
@@ -444,7 +444,7 @@ function Ms(e, t, n) {
|
|
|
444
444
|
orient: i
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Vt = "role", Pn = "tabindex", Ns = "disabled", It = "aria-", ar = It + "controls", ha = It + "current", ti = It + "selected",
|
|
447
|
+
var Vt = "role", Pn = "tabindex", Ns = "disabled", It = "aria-", ar = It + "controls", ha = It + "current", ti = It + "selected", St = It + "label", ko = It + "labelledby", fa = It + "hidden", Wo = It + "orientation", Yn = It + "roledescription", ni = It + "live", ri = It + "busy", oi = It + "atomic", Ro = [Vt, Pn, Ns, ar, ha, St, ko, fa, Wo, Yn], Rt = ir + "__", cn = "is-", Xr = ir, ii = Rt + "track", Hs = Rt + "list", Dr = Rt + "slide", ya = Dr + "--clone", Os = Dr + "__container", Fo = Rt + "arrows", zr = Rt + "arrow", va = zr + "--prev", ba = zr + "--next", Vr = Rt + "pagination", xa = Vr + "__page", Bs = Rt + "progress", Ds = Bs + "__bar", zs = Rt + "toggle", Vs = Rt + "spinner", qs = Rt + "sr", js = cn + "initialized", hn = cn + "active", Ca = cn + "prev", $a = cn + "next", go = cn + "visible", ho = cn + "loading", Sa = cn + "focus-in", wa = cn + "overflow", Ks = [hn, go, Ca, $a, ho, Sa, wa], Us = {
|
|
448
448
|
slide: Dr,
|
|
449
449
|
clone: ya,
|
|
450
450
|
arrows: Fo,
|
|
@@ -464,7 +464,7 @@ function Gs(e, t) {
|
|
|
464
464
|
}
|
|
465
465
|
var Ys = 5, ai = 200, Ta = "touchstart mousedown", Qr = "touchmove mousemove", Zr = "touchend touchcancel mouseup click";
|
|
466
466
|
function Xs(e, t, n) {
|
|
467
|
-
var r = qe(e), i = r.on, s = r.bind, o = e.root, c = n.i18n, a = {}, u = [], d = [],
|
|
467
|
+
var r = qe(e), i = r.on, s = r.bind, o = e.root, c = n.i18n, a = {}, u = [], d = [], S = [], v, h, p;
|
|
468
468
|
function m() {
|
|
469
469
|
f(), F(), x();
|
|
470
470
|
}
|
|
@@ -474,18 +474,18 @@ function Xs(e, t, n) {
|
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), s(o, "focusin", function() {
|
|
477
|
-
Dt(o,
|
|
477
|
+
Dt(o, Sa, !!p);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function $(y) {
|
|
481
481
|
var T = Ro.concat("style");
|
|
482
|
-
Kt(u), zt(o, d), zt(v,
|
|
482
|
+
Kt(u), zt(o, d), zt(v, S), Wt([v, h], T), Wt(o, y ? T : ["style", Yn]);
|
|
483
483
|
}
|
|
484
484
|
function x() {
|
|
485
|
-
zt(o, d), zt(v,
|
|
485
|
+
zt(o, d), zt(v, S), d = M(Xr), S = M(ii), kt(o, d), kt(v, S), $e(o, St, n.label), $e(o, ko, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function f() {
|
|
488
|
-
v =
|
|
488
|
+
v = w("." + ii), h = or(v, "." + Hs), Bn(v && h, "A track/list element is missing."), xr(u, Ui(h, "." + Dr + ":not(." + ya + ")")), mn({
|
|
489
489
|
arrows: Fo,
|
|
490
490
|
pagination: Vr,
|
|
491
491
|
prev: va,
|
|
@@ -493,7 +493,7 @@ function Xs(e, t, n) {
|
|
|
493
493
|
bar: Ds,
|
|
494
494
|
toggle: zs
|
|
495
495
|
}, function(y, T) {
|
|
496
|
-
a[T] =
|
|
496
|
+
a[T] = w("." + y);
|
|
497
497
|
}), Kn(a, {
|
|
498
498
|
root: o,
|
|
499
499
|
track: v,
|
|
@@ -505,7 +505,7 @@ function Xs(e, t, n) {
|
|
|
505
505
|
var y = o.id || Is(ir), T = n.role;
|
|
506
506
|
o.id = y, v.id = v.id || y + "-track", h.id = h.id || y + "-list", !At(o, Vt) && o.tagName !== "SECTION" && T && $e(o, Vt, T), $e(o, Yn, c.carousel), $e(h, Vt, "presentation");
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function w(y) {
|
|
509
509
|
var T = Xi(o, y);
|
|
510
510
|
return T && Gs(T, "." + Xr) === o ? T : void 0;
|
|
511
511
|
}
|
|
@@ -520,39 +520,39 @@ function Xs(e, t, n) {
|
|
|
520
520
|
}
|
|
521
521
|
var An = "slide", Nn = "loop", sr = "fade";
|
|
522
522
|
function Qs(e, t, n, r) {
|
|
523
|
-
var i = qe(e), s = i.on, o = i.emit, c = i.bind, a = e.Components, u = e.root, d = e.options,
|
|
523
|
+
var i = qe(e), s = i.on, o = i.emit, c = i.bind, a = e.Components, u = e.root, d = e.options, S = d.isNavigation, v = d.updateOnMove, h = d.i18n, p = d.pagination, m = d.slideFocus, b = a.Direction.resolve, $ = At(r, "style"), x = At(r, St), f = n > -1, F = or(r, "." + Os), w;
|
|
524
524
|
function M() {
|
|
525
|
-
f || (r.id = u.id + "-slide" + To(t + 1), $e(r, Vt, p ? "tabpanel" : "group"), $e(r, Yn, h.slide), $e(r,
|
|
525
|
+
f || (r.id = u.id + "-slide" + To(t + 1), $e(r, Vt, p ? "tabpanel" : "group"), $e(r, Yn, h.slide), $e(r, St, x || po(h.slideLabel, [t + 1, e.length]))), y();
|
|
526
526
|
}
|
|
527
527
|
function y() {
|
|
528
528
|
c(r, "click", De(o, Lo, D)), c(r, "keydown", De(o, ua, D)), s([Mn, pa, fn], P), s(Eo, O), v && s(Ut, C);
|
|
529
529
|
}
|
|
530
530
|
function T() {
|
|
531
|
-
|
|
531
|
+
w = !0, i.destroy(), zt(r, Ks), Wt(r, Ro), $e(r, "style", $), $e(r, St, x || "");
|
|
532
532
|
}
|
|
533
533
|
function O() {
|
|
534
534
|
var N = e.splides.map(function(A) {
|
|
535
535
|
var j = A.splide.Components.Slides.getAt(t);
|
|
536
536
|
return j ? j.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
$e(r,
|
|
538
|
+
$e(r, St, po(h.slideX, (f ? n : t) + 1)), $e(r, ar, N), $e(r, Vt, m ? "button" : ""), m && Wt(r, Yn);
|
|
539
539
|
}
|
|
540
540
|
function C() {
|
|
541
|
-
|
|
541
|
+
w || P();
|
|
542
542
|
}
|
|
543
543
|
function P() {
|
|
544
|
-
if (!
|
|
544
|
+
if (!w) {
|
|
545
545
|
var N = e.index;
|
|
546
546
|
_(), W(), Dt(r, Ca, t === N - 1), Dt(r, $a, t === N + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function _() {
|
|
550
550
|
var N = ee();
|
|
551
|
-
N !== Zo(r, hn) && (Dt(r, hn, N), $e(r, ha,
|
|
551
|
+
N !== Zo(r, hn) && (Dt(r, hn, N), $e(r, ha, S && N || ""), o(N ? Ji : ea, D));
|
|
552
552
|
}
|
|
553
553
|
function W() {
|
|
554
554
|
var N = k(), A = !N && (!ee() || f);
|
|
555
|
-
if (e.state.is([Fn, er]) || $e(r, fa, A || ""), $e(
|
|
555
|
+
if (e.state.is([Fn, er]) || $e(r, fa, A || ""), $e(So(r, d.focusableNodes || ""), Pn, A ? -1 : ""), m && $e(r, Pn, A ? -1 : 0), N !== Zo(r, go) && (Dt(r, go, N), o(N ? ta : na, D)), !N && document.activeElement === r) {
|
|
556
556
|
var j = a.Slides.getAt(e.index);
|
|
557
557
|
j && Gi(j.slide);
|
|
558
558
|
}
|
|
@@ -590,7 +590,7 @@ function Qs(e, t, n, r) {
|
|
|
590
590
|
}
|
|
591
591
|
function Zs(e, t, n) {
|
|
592
592
|
var r = qe(e), i = r.on, s = r.emit, o = r.bind, c = t.Elements, a = c.slides, u = c.list, d = [];
|
|
593
|
-
function
|
|
593
|
+
function S() {
|
|
594
594
|
v(), i(Xe, h), i(Xe, v);
|
|
595
595
|
}
|
|
596
596
|
function v() {
|
|
@@ -599,12 +599,12 @@ function Zs(e, t, n) {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function h() {
|
|
602
|
-
|
|
602
|
+
w(function(P) {
|
|
603
603
|
P.destroy();
|
|
604
604
|
}), Kt(d);
|
|
605
605
|
}
|
|
606
606
|
function p() {
|
|
607
|
-
|
|
607
|
+
w(function(P) {
|
|
608
608
|
P.update();
|
|
609
609
|
});
|
|
610
610
|
}
|
|
@@ -641,7 +641,7 @@ function Zs(e, t, n) {
|
|
|
641
641
|
return _.slide;
|
|
642
642
|
})), s(Xe);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function w(P, _) {
|
|
645
645
|
b(_).forEach(P);
|
|
646
646
|
}
|
|
647
647
|
function M(P) {
|
|
@@ -650,12 +650,12 @@ function Zs(e, t, n) {
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function y(P, _, W) {
|
|
653
|
-
|
|
653
|
+
w(function(V) {
|
|
654
654
|
V.style(P, _, W);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function T(P, _) {
|
|
658
|
-
var W =
|
|
658
|
+
var W = So(P, "img"), V = W.length;
|
|
659
659
|
V ? W.forEach(function(ee) {
|
|
660
660
|
o(ee, "load error", function() {
|
|
661
661
|
--V || _();
|
|
@@ -669,7 +669,7 @@ function Zs(e, t, n) {
|
|
|
669
669
|
return d.length > n.perPage;
|
|
670
670
|
}
|
|
671
671
|
return {
|
|
672
|
-
mount:
|
|
672
|
+
mount: S,
|
|
673
673
|
destroy: h,
|
|
674
674
|
update: p,
|
|
675
675
|
register: m,
|
|
@@ -678,7 +678,7 @@ function Zs(e, t, n) {
|
|
|
678
678
|
getAt: x,
|
|
679
679
|
add: f,
|
|
680
680
|
remove: F,
|
|
681
|
-
forEach:
|
|
681
|
+
forEach: w,
|
|
682
682
|
filter: M,
|
|
683
683
|
style: y,
|
|
684
684
|
getLength: O,
|
|
@@ -686,24 +686,24 @@ function Zs(e, t, n) {
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
function Js(e, t, n) {
|
|
689
|
-
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = t.Slides, a = t.Direction.resolve, u = t.Elements, d = u.root,
|
|
689
|
+
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = t.Slides, a = t.Direction.resolve, u = t.Elements, d = u.root, S = u.track, v = u.list, h = c.getAt, p = c.style, m, b, $;
|
|
690
690
|
function x() {
|
|
691
691
|
f(), s(window, "resize load", Rs(De(o, _n))), i([it, Xe], f), i(_n, F);
|
|
692
692
|
}
|
|
693
693
|
function f() {
|
|
694
|
-
m = n.direction === Br, _t(d, "maxWidth", dn(n.width)), _t(
|
|
694
|
+
m = n.direction === Br, _t(d, "maxWidth", dn(n.width)), _t(S, a("paddingLeft"), w(!1)), _t(S, a("paddingRight"), w(!0)), F(!0);
|
|
695
695
|
}
|
|
696
696
|
function F(D) {
|
|
697
697
|
var N = $t(d);
|
|
698
|
-
(D || b.width !== N.width || b.height !== N.height) && (_t(
|
|
698
|
+
(D || b.width !== N.width || b.height !== N.height) && (_t(S, "height", M()), p(a("marginRight"), dn(n.gap)), p("width", T()), p("height", O(), !0), b = N, o(Rr), $ !== ($ = R()) && (Dt(d, wa, $), o(ks, $)));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function w(D) {
|
|
701
701
|
var N = n.padding, A = a(D ? "right" : "left");
|
|
702
702
|
return N && dn(N[A] || (Vn(N) ? 0 : N)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function M() {
|
|
705
705
|
var D = "";
|
|
706
|
-
return m && (D = y(), Bn(D, "height or heightRatio is missing."), D = "calc(" + D + " - " +
|
|
706
|
+
return m && (D = y(), Bn(D, "height or heightRatio is missing."), D = "calc(" + D + " - " + w(!1) + " - " + w(!0) + ")"), D;
|
|
707
707
|
}
|
|
708
708
|
function y() {
|
|
709
709
|
return dn(n.height || $t(v).width * n.heightRatio);
|
|
@@ -741,7 +741,7 @@ function Js(e, t, n) {
|
|
|
741
741
|
return D && parseFloat(_t(D.slide, a("marginRight"))) || 0;
|
|
742
742
|
}
|
|
743
743
|
function k(D) {
|
|
744
|
-
return parseFloat(_t(
|
|
744
|
+
return parseFloat(_t(S, a("padding" + (D ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function R() {
|
|
747
747
|
return e.is(sr) || V(!0) > P();
|
|
@@ -761,9 +761,9 @@ var el = 2;
|
|
|
761
761
|
function tl(e, t, n) {
|
|
762
762
|
var r = qe(e), i = r.on, s = t.Elements, o = t.Slides, c = t.Direction.resolve, a = [], u;
|
|
763
763
|
function d() {
|
|
764
|
-
i(Xe,
|
|
764
|
+
i(Xe, S), i([it, _n], h), (u = b()) && (p(u), t.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function S() {
|
|
767
767
|
v(), d();
|
|
768
768
|
}
|
|
769
769
|
function v() {
|
|
@@ -778,9 +778,9 @@ function tl(e, t, n) {
|
|
|
778
778
|
if (f) {
|
|
779
779
|
for (; x.length < $; )
|
|
780
780
|
xr(x, x);
|
|
781
|
-
xr(x.slice(-$), x.slice(0, $)).forEach(function(F,
|
|
782
|
-
var M =
|
|
783
|
-
M ? $o(y, x[0].slide) : rr(s.list, y), xr(a, y), o.register(y,
|
|
781
|
+
xr(x.slice(-$), x.slice(0, $)).forEach(function(F, w) {
|
|
782
|
+
var M = w < $, y = m(F.slide, w);
|
|
783
|
+
M ? $o(y, x[0].slide) : rr(s.list, y), xr(a, y), o.register(y, w - $ + (M ? 0 : f), F.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -804,11 +804,11 @@ function tl(e, t, n) {
|
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
function nl(e, t, n) {
|
|
807
|
-
var r = qe(e), i = r.on, s = r.emit, o = e.state.set, c = t.Layout, a = c.slideSize, u = c.getPadding, d = c.totalSize,
|
|
807
|
+
var r = qe(e), i = r.on, s = r.emit, o = e.state.set, c = t.Layout, a = c.slideSize, u = c.getPadding, d = c.totalSize, S = c.listSize, v = c.sliderSize, h = t.Direction, p = h.resolve, m = h.orient, b = t.Elements, $ = b.list, x = b.track, f;
|
|
808
808
|
function F() {
|
|
809
|
-
f = t.Transition, i([ln, Rr, it, Xe],
|
|
809
|
+
f = t.Transition, i([ln, Rr, it, Xe], w);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function w() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), y(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function M(A, j, X, Q) {
|
|
@@ -858,11 +858,11 @@ function nl(e, t, n) {
|
|
|
858
858
|
return $t($)[A] - $t(x)[A] + m(u(!1));
|
|
859
859
|
}
|
|
860
860
|
function ee(A) {
|
|
861
|
-
return n.trimSpace && e.is(An) && (A = $n(A, 0, m(v(!0) -
|
|
861
|
+
return n.trimSpace && e.is(An) && (A = $n(A, 0, m(v(!0) - S()))), A;
|
|
862
862
|
}
|
|
863
863
|
function k(A) {
|
|
864
864
|
var j = n.focus;
|
|
865
|
-
return j === "center" ? (
|
|
865
|
+
return j === "center" ? (S() - a(A, !0)) / 2 : +j * a(A) || 0;
|
|
866
866
|
}
|
|
867
867
|
function R(A) {
|
|
868
868
|
return W(A ? t.Controller.getEnd() : 0, !!n.trimSpace);
|
|
@@ -888,17 +888,17 @@ function nl(e, t, n) {
|
|
|
888
888
|
getPosition: V,
|
|
889
889
|
getLimit: R,
|
|
890
890
|
exceededLimit: N,
|
|
891
|
-
reposition:
|
|
891
|
+
reposition: w
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function rl(e, t, n) {
|
|
895
|
-
var r = qe(e), i = r.on, s = r.emit, o = t.Move, c = o.getPosition, a = o.getLimit, u = o.toPosition, d = t.Slides,
|
|
895
|
+
var r = qe(e), i = r.on, s = r.emit, o = t.Move, c = o.getPosition, a = o.getLimit, u = o.toPosition, d = t.Slides, S = d.isEnough, v = d.getLength, h = n.omitEnd, p = e.is(Nn), m = e.is(An), b = De(V, !1), $ = De(V, !0), x = n.start || 0, f, F = x, w, M, y;
|
|
896
896
|
function T() {
|
|
897
897
|
O(), i([it, Xe, Ar], O), i(Rr, C);
|
|
898
898
|
}
|
|
899
899
|
function O() {
|
|
900
|
-
|
|
901
|
-
var g = $n(x, 0, h ? f :
|
|
900
|
+
w = v(!0), M = n.perMove, y = n.perPage, f = D();
|
|
901
|
+
var g = $n(x, 0, h ? f : w - 1);
|
|
902
902
|
g !== x && (x = g, o.reposition());
|
|
903
903
|
}
|
|
904
904
|
function C() {
|
|
@@ -930,9 +930,9 @@ function rl(e, t, n) {
|
|
|
930
930
|
return le === -1 && m && !Qi(c(), a(!g), 1) ? g ? 0 : f : J ? le : R(le);
|
|
931
931
|
}
|
|
932
932
|
function ee(g, J, he) {
|
|
933
|
-
if (
|
|
933
|
+
if (S() || I()) {
|
|
934
934
|
var le = k(g);
|
|
935
|
-
le !== g && (J = g, g = le, he = !1), g < 0 || g > f ? !M && (Cr(0, g, J, !0) || Cr(f, J, g, !0)) ? g = N(A(g)) : p ? g = he ? g < 0 ? -(
|
|
935
|
+
le !== g && (J = g, g = le, he = !1), g < 0 || g > f ? !M && (Cr(0, g, J, !0) || Cr(f, J, g, !0)) ? g = N(A(g)) : p ? g = he ? g < 0 ? -(w % y || y) : w : g : n.rewind ? g = g < 0 ? f : 0 : g = -1 : he && g !== J && (g = N(A(J) + (g < J ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
g = -1;
|
|
938
938
|
return g;
|
|
@@ -944,21 +944,21 @@ function rl(e, t, n) {
|
|
|
944
944
|
return g;
|
|
945
945
|
}
|
|
946
946
|
function R(g) {
|
|
947
|
-
return p ? (g +
|
|
947
|
+
return p ? (g + w) % w || 0 : g;
|
|
948
948
|
}
|
|
949
949
|
function D() {
|
|
950
|
-
for (var g =
|
|
951
|
-
if (u(
|
|
950
|
+
for (var g = w - (I() || p && M ? 1 : y); h && g-- > 0; )
|
|
951
|
+
if (u(w - 1, !0) !== u(g, !0)) {
|
|
952
952
|
g++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return $n(g, 0,
|
|
955
|
+
return $n(g, 0, w - 1);
|
|
956
956
|
}
|
|
957
957
|
function N(g) {
|
|
958
958
|
return $n(I() ? g : y * g, 0, f);
|
|
959
959
|
}
|
|
960
960
|
function A(g) {
|
|
961
|
-
return I() ? rn(g, f) : _r((g >= f ?
|
|
961
|
+
return I() ? rn(g, f) : _r((g >= f ? w - 1 : g) / y);
|
|
962
962
|
}
|
|
963
963
|
function j(g) {
|
|
964
964
|
var J = o.toIndex(g);
|
|
@@ -995,14 +995,14 @@ function rl(e, t, n) {
|
|
|
995
995
|
}
|
|
996
996
|
var ol = "http://www.w3.org/2000/svg", il = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", pr = 40;
|
|
997
997
|
function al(e, t, n) {
|
|
998
|
-
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = n.classes, a = n.i18n, u = t.Elements, d = t.Controller,
|
|
998
|
+
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = n.classes, a = n.i18n, u = t.Elements, d = t.Controller, S = u.arrows, v = u.track, h = S, p = u.prev, m = u.next, b, $, x = {};
|
|
999
999
|
function f() {
|
|
1000
|
-
|
|
1000
|
+
w(), i(it, F);
|
|
1001
1001
|
}
|
|
1002
1002
|
function F() {
|
|
1003
1003
|
M(), f();
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function w() {
|
|
1006
1006
|
var _ = n.arrows;
|
|
1007
1007
|
_ && !(p && m) && O(), p && m && (Kn(x, {
|
|
1008
1008
|
prev: p,
|
|
@@ -1010,7 +1010,7 @@ function al(e, t, n) {
|
|
|
1010
1010
|
}), Un(h, _ ? "" : "none"), kt(h, $ = Fo + "--" + n.direction), _ && (y(), P(), $e([p, m], ar, v.id), o(aa, p, m)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function M() {
|
|
1013
|
-
r.destroy(), zt(h, $), b ? (gn(
|
|
1013
|
+
r.destroy(), zt(h, $), b ? (gn(S ? [p, m] : h), p = m = null) : Wt([p, m], Ro);
|
|
1014
1014
|
}
|
|
1015
1015
|
function y() {
|
|
1016
1016
|
i([ln, Mn, Xe, fn, Ar], P), s(m, "click", De(T, ">")), s(p, "click", De(T, "<"));
|
|
@@ -1019,7 +1019,7 @@ function al(e, t, n) {
|
|
|
1019
1019
|
d.go(_, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function O() {
|
|
1022
|
-
h =
|
|
1022
|
+
h = S || Ln("div", c.arrows), p = C(!0), m = C(!1), b = !0, rr(h, [p, m]), !S && $o(h, v);
|
|
1023
1023
|
}
|
|
1024
1024
|
function C(_) {
|
|
1025
1025
|
var W = '<button class="' + c.arrow + " " + (_ ? c.prev : c.next) + '" type="button"><svg xmlns="' + ol + '" viewBox="0 0 ' + pr + " " + pr + '" width="' + pr + '" height="' + pr + '" focusable="false"><path d="' + (n.arrowPath || il) + '" />';
|
|
@@ -1028,7 +1028,7 @@ function al(e, t, n) {
|
|
|
1028
1028
|
function P() {
|
|
1029
1029
|
if (p && m) {
|
|
1030
1030
|
var _ = e.index, W = d.getPrev(), V = d.getNext(), ee = W > -1 && _ < W ? a.last : a.prev, k = V > -1 && _ > V ? a.first : a.next;
|
|
1031
|
-
p.disabled = W < 0, m.disabled = V < 0, $e(p,
|
|
1031
|
+
p.disabled = W < 0, m.disabled = V < 0, $e(p, St, ee), $e(m, St, k), o(sa, p, m, W, V);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
@@ -1038,17 +1038,17 @@ function al(e, t, n) {
|
|
|
1038
1038
|
update: P
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var sl =
|
|
1041
|
+
var sl = wo + "-interval";
|
|
1042
1042
|
function ll(e, t, n) {
|
|
1043
|
-
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = Mr(n.interval, e.go.bind(e, ">"), y), a = c.isPaused, u = t.Elements, d = t.Elements,
|
|
1043
|
+
var r = qe(e), i = r.on, s = r.bind, o = r.emit, c = Mr(n.interval, e.go.bind(e, ">"), y), a = c.isPaused, u = t.Elements, d = t.Elements, S = d.root, v = d.toggle, h = n.autoplay, p, m, b = h === "pause";
|
|
1044
1044
|
function $() {
|
|
1045
1045
|
h && (x(), v && $e(v, ar, u.track.id), b || f(), M());
|
|
1046
1046
|
}
|
|
1047
1047
|
function x() {
|
|
1048
|
-
n.pauseOnHover && s(
|
|
1049
|
-
p = O.type === "mouseenter",
|
|
1050
|
-
}), n.pauseOnFocus && s(
|
|
1051
|
-
m = O.type === "focusin",
|
|
1048
|
+
n.pauseOnHover && s(S, "mouseenter mouseleave", function(O) {
|
|
1049
|
+
p = O.type === "mouseenter", w();
|
|
1050
|
+
}), n.pauseOnFocus && s(S, "focusin focusout", function(O) {
|
|
1051
|
+
m = O.type === "focusin", w();
|
|
1052
1052
|
}), v && s(v, "click", function() {
|
|
1053
1053
|
b ? f() : F(!0);
|
|
1054
1054
|
}), i([Ut, Fr, Xe], c.rewind), i(Ut, T);
|
|
@@ -1059,11 +1059,11 @@ function ll(e, t, n) {
|
|
|
1059
1059
|
function F(O) {
|
|
1060
1060
|
O === void 0 && (O = !0), b = !!O, M(), a() || (c.pause(), o(Ao));
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function w() {
|
|
1063
1063
|
b || (p || m ? F(!1) : f());
|
|
1064
1064
|
}
|
|
1065
1065
|
function M() {
|
|
1066
|
-
v && (Dt(v, hn, !b), $e(v,
|
|
1066
|
+
v && (Dt(v, hn, !b), $e(v, St, n.i18n[b ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function y(O) {
|
|
1069
1069
|
var C = u.bar;
|
|
@@ -1102,9 +1102,9 @@ function cl(e, t, n) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
var dl = 10, ul = 600, pl = 0.6, ml = 1.5, gl = 800;
|
|
1104
1104
|
function hl(e, t, n) {
|
|
1105
|
-
var r = qe(e), i = r.on, s = r.emit, o = e.state.set, c = t.Move, a = c.getPosition, u = c.getLimit, d = c.exceededLimit,
|
|
1105
|
+
var r = qe(e), i = r.on, s = r.emit, o = e.state.set, c = t.Move, a = c.getPosition, u = c.getLimit, d = c.exceededLimit, S = c.translate, v = e.is(An), h, p, m = 1;
|
|
1106
1106
|
function b() {
|
|
1107
|
-
i(Ut, F), i([it, Xe],
|
|
1107
|
+
i(Ut, F), i([it, Xe], w);
|
|
1108
1108
|
}
|
|
1109
1109
|
function $(y, T, O, C, P) {
|
|
1110
1110
|
var _ = a();
|
|
@@ -1120,12 +1120,12 @@ function hl(e, t, n) {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
function f(y, T, O, C) {
|
|
1122
1122
|
var P = a(), _ = y + (T - y) * M(C), W = (_ - P) * m;
|
|
1123
|
-
|
|
1123
|
+
S(P + W), v && !O && d() && (m *= pl, ct(W) < dl && $(u(d(!0)), ul, !1, p, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function F() {
|
|
1126
1126
|
h && h.cancel();
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function w() {
|
|
1129
1129
|
h && !h.isPaused() && (F(), x());
|
|
1130
1130
|
}
|
|
1131
1131
|
function M(y) {
|
|
@@ -1136,17 +1136,17 @@ function hl(e, t, n) {
|
|
|
1136
1136
|
mount: b,
|
|
1137
1137
|
destroy: F,
|
|
1138
1138
|
scroll: $,
|
|
1139
|
-
cancel:
|
|
1139
|
+
cancel: w
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var Sn = {
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function fl(e, t, n) {
|
|
1147
|
-
var r = qe(e), i = r.on, s = r.emit, o = r.bind, c = r.unbind, a = e.state, u = t.Move, d = t.Scroll,
|
|
1147
|
+
var r = qe(e), i = r.on, s = r.emit, o = r.bind, c = r.unbind, a = e.state, u = t.Move, d = t.Scroll, S = t.Controller, v = t.Elements.track, h = t.Media.reduce, p = t.Direction, m = p.resolve, b = p.orient, $ = u.getPosition, x = u.exceededLimit, f, F, w, M, y, T = !1, O, C, P;
|
|
1148
1148
|
function _() {
|
|
1149
|
-
o(v, Qr, lo,
|
|
1149
|
+
o(v, Qr, lo, Sn), o(v, Zr, lo, Sn), o(v, Ta, V, Sn), o(v, "click", R, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), o(v, "dragstart", Bt), i([ln, it], W);
|
|
1152
1152
|
}
|
|
@@ -1157,7 +1157,7 @@ function fl(e, t, n) {
|
|
|
1157
1157
|
function V(B) {
|
|
1158
1158
|
if (O = !1, !C) {
|
|
1159
1159
|
var K = xe(B);
|
|
1160
|
-
le(B.target) && (K || !B.button) && (
|
|
1160
|
+
le(B.target) && (K || !B.button) && (S.isBusy() ? Bt(B, !0) : (P = K ? v : window, y = a.is([Fn, er]), w = null, o(P, Qr, ee, Sn), o(P, Zr, k, Sn), u.cancel(), d.cancel(), D(B)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function ee(B) {
|
|
@@ -1175,11 +1175,11 @@ function fl(e, t, n) {
|
|
|
1175
1175
|
!C && O && Bt(B, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function D(B) {
|
|
1178
|
-
|
|
1178
|
+
w = F, F = B, f = $();
|
|
1179
1179
|
}
|
|
1180
1180
|
function N(B) {
|
|
1181
1181
|
var K = X(B), U = Q(K), se = n.rewind && n.rewindByDrag;
|
|
1182
|
-
h(!1), M ?
|
|
1182
|
+
h(!1), M ? S.scroll(U, 0, n.snap) : e.is(sr) ? S.go(b(uo(K)) < 0 ? se ? "<" : "-" : se ? ">" : "+") : e.is(An) && T && se ? S.go(x(!0) ? ">" : "<") : S.go(S.toDest(U), !0), h(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function A(B) {
|
|
1185
1185
|
var K = n.dragMinThreshold, U = Vn(K), se = U && K.mouse || 0, ve = (U ? K.touch : +K) || 10;
|
|
@@ -1206,7 +1206,7 @@ function fl(e, t, n) {
|
|
|
1206
1206
|
return co(B) - co(g(B));
|
|
1207
1207
|
}
|
|
1208
1208
|
function g(B) {
|
|
1209
|
-
return F === B &&
|
|
1209
|
+
return F === B && w || F;
|
|
1210
1210
|
}
|
|
1211
1211
|
function J(B, K) {
|
|
1212
1212
|
return (xe(B) ? B.changedTouches[0] : B)["page" + m(K ? "Y" : "X")];
|
|
@@ -1246,7 +1246,7 @@ function Mo(e) {
|
|
|
1246
1246
|
var si = "keydown";
|
|
1247
1247
|
function vl(e, t, n) {
|
|
1248
1248
|
var r = qe(e), i = r.on, s = r.bind, o = r.unbind, c = e.root, a = t.Direction.resolve, u, d;
|
|
1249
|
-
function
|
|
1249
|
+
function S() {
|
|
1250
1250
|
v(), i(it, h), i(it, v), i(Ut, m);
|
|
1251
1251
|
}
|
|
1252
1252
|
function v() {
|
|
@@ -1272,15 +1272,15 @@ function vl(e, t, n) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
1275
|
-
mount:
|
|
1275
|
+
mount: S,
|
|
1276
1276
|
destroy: h,
|
|
1277
1277
|
disable: p
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var Dn =
|
|
1280
|
+
var Dn = wo + "-lazy", $r = Dn + "-srcset", bl = "[" + Dn + "], [" + $r + "]";
|
|
1281
1281
|
function xl(e, t, n) {
|
|
1282
1282
|
var r = qe(e), i = r.on, s = r.off, o = r.bind, c = r.emit, a = n.lazyLoad === "sequential", u = [Mn, fn], d = [];
|
|
1283
|
-
function
|
|
1283
|
+
function S() {
|
|
1284
1284
|
n.lazyLoad && (v(), i(Xe, v));
|
|
1285
1285
|
}
|
|
1286
1286
|
function v() {
|
|
@@ -1288,9 +1288,9 @@ function xl(e, t, n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function h() {
|
|
1290
1290
|
t.Slides.forEach(function(x) {
|
|
1291
|
-
|
|
1292
|
-
var F = At(f, Dn),
|
|
1293
|
-
if (F !== f.src ||
|
|
1291
|
+
So(x.slide, bl).forEach(function(f) {
|
|
1292
|
+
var F = At(f, Dn), w = At(f, $r);
|
|
1293
|
+
if (F !== f.src || w !== f.srcset) {
|
|
1294
1294
|
var M = n.classes.spinner, y = f.parentElement, T = or(y, "." + M) || Ln("span", M, y);
|
|
1295
1295
|
d.push([f, x, T]), f.src || Un(f, "none");
|
|
1296
1296
|
}
|
|
@@ -1308,20 +1308,20 @@ function xl(e, t, n) {
|
|
|
1308
1308
|
kt(x[1].slide, ho), o(f, "load error", De(b, x)), $e(f, "src", At(f, Dn)), $e(f, "srcset", At(f, $r)), Wt(f, Dn), Wt(f, $r);
|
|
1309
1309
|
}
|
|
1310
1310
|
function b(x, f) {
|
|
1311
|
-
var F = x[0],
|
|
1312
|
-
zt(
|
|
1311
|
+
var F = x[0], w = x[1];
|
|
1312
|
+
zt(w.slide, ho), f.type !== "error" && (gn(x[2]), Un(F, ""), c(Io, F, w), c(_n)), a && $();
|
|
1313
1313
|
}
|
|
1314
1314
|
function $() {
|
|
1315
1315
|
d.length && m(d.shift());
|
|
1316
1316
|
}
|
|
1317
1317
|
return {
|
|
1318
|
-
mount:
|
|
1318
|
+
mount: S,
|
|
1319
1319
|
destroy: De(Kt, d),
|
|
1320
1320
|
check: p
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
1323
|
function Cl(e, t, n) {
|
|
1324
|
-
var r = qe(e), i = r.on, s = r.emit, o = r.bind, c = t.Slides, a = t.Elements, u = t.Controller, d = u.hasFocus,
|
|
1324
|
+
var r = qe(e), i = r.on, s = r.emit, o = r.bind, c = t.Slides, a = t.Elements, u = t.Controller, d = u.hasFocus, S = u.getIndex, v = u.go, h = t.Direction.resolve, p = a.pagination, m = [], b, $;
|
|
1325
1325
|
function x() {
|
|
1326
1326
|
f(), i([it, Xe, Ar], x);
|
|
1327
1327
|
var C = n.pagination;
|
|
@@ -1335,7 +1335,7 @@ function Cl(e, t, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function F() {
|
|
1337
1337
|
var C = e.length, P = n.classes, _ = n.i18n, W = n.perPage, V = d() ? u.getEnd() + 1 : Gn(C / W);
|
|
1338
|
-
b = p || Ln("ul", P.pagination, a.track.parentElement), kt(b, $ = Vr + "--" + y()), $e(b, Vt, "tablist"), $e(b,
|
|
1338
|
+
b = p || Ln("ul", P.pagination, a.track.parentElement), kt(b, $ = Vr + "--" + y()), $e(b, Vt, "tablist"), $e(b, St, _.select), $e(b, Wo, y() === Br ? "vertical" : "");
|
|
1339
1339
|
for (var ee = 0; ee < V; ee++) {
|
|
1340
1340
|
var k = Ln("li", null, b), R = Ln("button", {
|
|
1341
1341
|
class: P.page,
|
|
@@ -1343,14 +1343,14 @@ function Cl(e, t, n) {
|
|
|
1343
1343
|
}, k), D = c.getIn(ee).map(function(A) {
|
|
1344
1344
|
return A.slide.id;
|
|
1345
1345
|
}), N = !d() && W > 1 ? _.pageX : _.slideX;
|
|
1346
|
-
o(R, "click", De(
|
|
1346
|
+
o(R, "click", De(w, ee)), n.paginationKeyboard && o(R, "keydown", De(M, ee)), $e(k, Vt, "presentation"), $e(R, Vt, "tab"), $e(R, ar, D.join(" ")), $e(R, St, po(N, ee + 1)), $e(R, Pn, -1), m.push({
|
|
1347
1347
|
li: k,
|
|
1348
1348
|
button: R,
|
|
1349
1349
|
page: ee
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function w(C) {
|
|
1354
1354
|
v(">" + C, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function M(C, P) {
|
|
@@ -1366,7 +1366,7 @@ function Cl(e, t, n) {
|
|
|
1366
1366
|
return m[u.toPage(C)];
|
|
1367
1367
|
}
|
|
1368
1368
|
function O() {
|
|
1369
|
-
var C = T(
|
|
1369
|
+
var C = T(S(!0)), P = T(S());
|
|
1370
1370
|
if (C) {
|
|
1371
1371
|
var _ = C.button;
|
|
1372
1372
|
zt(_, hn), Wt(_, ti), $e(_, Pn, -1);
|
|
@@ -1389,7 +1389,7 @@ function Cl(e, t, n) {
|
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
1391
|
var $l = [" ", "Enter"];
|
|
1392
|
-
function
|
|
1392
|
+
function Sl(e, t, n) {
|
|
1393
1393
|
var r = n.isNavigation, i = n.slideFocus, s = [];
|
|
1394
1394
|
function o() {
|
|
1395
1395
|
e.splides.forEach(function(p) {
|
|
@@ -1412,9 +1412,9 @@ function wl(e, t, n) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function d() {
|
|
1414
1414
|
var p = qe(e), m = p.on;
|
|
1415
|
-
m(Lo, v), m(ua, h), m([ln, it],
|
|
1415
|
+
m(Lo, v), m(ua, h), m([ln, it], S), s.push(p), p.emit(Eo, e.splides);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function S() {
|
|
1418
1418
|
$e(t.Elements.list, Wo, n.direction === Br ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function v(p) {
|
|
@@ -1432,15 +1432,15 @@ function wl(e, t, n) {
|
|
|
1432
1432
|
remount: a
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function wl(e, t, n) {
|
|
1436
1436
|
var r = qe(e), i = r.bind, s = 0;
|
|
1437
1437
|
function o() {
|
|
1438
|
-
n.wheel && i(t.Elements.track, "wheel", c,
|
|
1438
|
+
n.wheel && i(t.Elements.track, "wheel", c, Sn);
|
|
1439
1439
|
}
|
|
1440
1440
|
function c(u) {
|
|
1441
1441
|
if (u.cancelable) {
|
|
1442
|
-
var d = u.deltaY,
|
|
1443
|
-
ct(d) > h && v - s > p && (e.go(
|
|
1442
|
+
var d = u.deltaY, S = d < 0, v = co(u), h = n.wheelMinThreshold || 0, p = n.wheelSleep || 0;
|
|
1443
|
+
ct(d) > h && v - s > p && (e.go(S ? "<" : ">"), s = v), a(S) && Bt(u);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function a(u) {
|
|
@@ -1459,7 +1459,7 @@ function Ll(e, t, n) {
|
|
|
1459
1459
|
function d(h) {
|
|
1460
1460
|
$e(s, ri, h), h ? (rr(s, c), a.start()) : (gn(c), a.cancel());
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function S() {
|
|
1463
1463
|
Wt(s, [ni, oi, ri]), gn(c);
|
|
1464
1464
|
}
|
|
1465
1465
|
function v(h) {
|
|
@@ -1468,7 +1468,7 @@ function Ll(e, t, n) {
|
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: u,
|
|
1470
1470
|
disable: v,
|
|
1471
|
-
destroy:
|
|
1471
|
+
destroy: S
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
1474
|
var Pl = /* @__PURE__ */ Object.freeze({
|
|
@@ -1489,8 +1489,8 @@ var Pl = /* @__PURE__ */ Object.freeze({
|
|
|
1489
1489
|
Keyboard: vl,
|
|
1490
1490
|
LazyLoad: xl,
|
|
1491
1491
|
Pagination: Cl,
|
|
1492
|
-
Sync:
|
|
1493
|
-
Wheel:
|
|
1492
|
+
Sync: Sl,
|
|
1493
|
+
Wheel: wl,
|
|
1494
1494
|
Live: Ll
|
|
1495
1495
|
}), El = {
|
|
1496
1496
|
prev: "Previous slide",
|
|
@@ -1555,14 +1555,14 @@ function Il(e, t, n) {
|
|
|
1555
1555
|
var r = t.Move, i = t.Controller, s = t.Scroll, o = t.Elements.list, c = De(_t, o, "transition"), a;
|
|
1556
1556
|
function u() {
|
|
1557
1557
|
qe(e).bind(o, "transitionend", function(h) {
|
|
1558
|
-
h.target === o && a && (
|
|
1558
|
+
h.target === o && a && (S(), a());
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
function d(h, p) {
|
|
1562
1562
|
var m = r.toPosition(h, !0), b = r.getPosition(), $ = v(h);
|
|
1563
1563
|
ct(m - b) >= 1 && $ >= 1 ? n.useScroll ? s.scroll(m, $, !1, p) : (c("transform " + $ + "ms " + n.easing), r.translate(m, !0), a = p) : (r.jump(h), p());
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function S() {
|
|
1566
1566
|
c(""), s.cancel();
|
|
1567
1567
|
}
|
|
1568
1568
|
function v(h) {
|
|
@@ -1577,7 +1577,7 @@ function Il(e, t, n) {
|
|
|
1577
1577
|
return {
|
|
1578
1578
|
mount: u,
|
|
1579
1579
|
start: d,
|
|
1580
|
-
cancel:
|
|
1580
|
+
cancel: S
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
var kl = /* @__PURE__ */ (function() {
|
|
@@ -1585,11 +1585,11 @@ var kl = /* @__PURE__ */ (function() {
|
|
|
1585
1585
|
this.event = qe(), this.Components = {}, this.state = Ws(Tn), this.splides = [], this._o = {}, this._E = {};
|
|
1586
1586
|
var i = nn(n) ? Xi(document, n) : n;
|
|
1587
1587
|
Bn(i, i + " is invalid."), this.root = i, r = tn({
|
|
1588
|
-
label: At(i,
|
|
1588
|
+
label: At(i, St) || "",
|
|
1589
1589
|
labelledby: At(i, ko) || ""
|
|
1590
1590
|
}, _l, e.defaults, r || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
tn(r, JSON.parse(At(i,
|
|
1592
|
+
tn(r, JSON.parse(At(i, wo)));
|
|
1593
1593
|
} catch {
|
|
1594
1594
|
Bn(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
@@ -1603,8 +1603,8 @@ var kl = /* @__PURE__ */ (function() {
|
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
1605
|
return mn(a, function(u, d) {
|
|
1606
|
-
var
|
|
1607
|
-
c[d] =
|
|
1606
|
+
var S = u(s, c, s._o);
|
|
1607
|
+
c[d] = S, S.setup && S.setup();
|
|
1608
1608
|
}), mn(c, function(u) {
|
|
1609
1609
|
u.mount && u.mount();
|
|
1610
1610
|
}), this.emit(ln), kt(this.root, js), o.set(En), this.emit(mo), this;
|
|
@@ -1802,7 +1802,7 @@ const Ml = "RichTextRenderer-module__link___BWeZ2", Nl = {
|
|
|
1802
1802
|
const t = e.trim();
|
|
1803
1803
|
return !t || t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'") ? !1 : t.split(/\s+/g).filter(Boolean).some((r) => /^\d/.test(r));
|
|
1804
1804
|
}, qr = (e) => e && e.split(",").map((n) => n.trim()).filter(Boolean).map((n) => Hl(n) ? `"${n.replace(/"/g, '\\"')}"` : n).join(", ");
|
|
1805
|
-
function
|
|
1805
|
+
function wt(e) {
|
|
1806
1806
|
const { color: t, ...n } = e;
|
|
1807
1807
|
return n;
|
|
1808
1808
|
}
|
|
@@ -1883,7 +1883,7 @@ const Bl = "SvgImage-module__svg___q3xE-", Dl = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": ue.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
1886
|
-
const [i, s] = de(null), { widthSettings: o, fontSettings: c, letterSpacing: a, textAlign: u, wordSpacing: d, fontSizeLineHeight:
|
|
1886
|
+
const [i, s] = de(null), { widthSettings: o, fontSettings: c, letterSpacing: a, textAlign: u, wordSpacing: d, fontSizeLineHeight: S, textAppearance: v, color: h } = n.imageCaption ?? {}, [p, m] = de(void 0), [b, $] = de(null), [x, f] = de(0), [F, w] = de(0), { direction: M, transition: y, controls: T, pagination: O, imageCaption: C, triggers: P } = e, _ = Te(y.type), { x: W, y: V } = e.controls.offset, ee = (k) => {
|
|
1887
1887
|
i && i.go(k);
|
|
1888
1888
|
};
|
|
1889
1889
|
return Ae(() => {
|
|
@@ -1898,8 +1898,8 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1898
1898
|
});
|
|
1899
1899
|
return k.observe(b), () => k.unobserve(b);
|
|
1900
1900
|
}, [b]), Ae(() => {
|
|
1901
|
-
!i || _.current === y.type || (
|
|
1902
|
-
}, [y.type]), /* @__PURE__ */ l("div", { className: Fe(ue.wrapper, { [ue.editor]: r }), ref: $, children: /* @__PURE__ */
|
|
1901
|
+
!i || _.current === y.type || (w((k) => k + 1), _.current = y.type);
|
|
1902
|
+
}, [y.type]), /* @__PURE__ */ l("div", { className: Fe(ue.wrapper, { [ue.editor]: r }), ref: $, children: /* @__PURE__ */ re(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
1905
1905
|
className: ue.sliderInner,
|
|
@@ -1932,8 +1932,8 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1932
1932
|
letterSpacing: L(a, r),
|
|
1933
1933
|
wordSpacing: L(d, r),
|
|
1934
1934
|
textAlign: u,
|
|
1935
|
-
fontSize: L(
|
|
1936
|
-
lineHeight: L(
|
|
1935
|
+
fontSize: L(S.fontSize, r),
|
|
1936
|
+
lineHeight: L(S.lineHeight, r),
|
|
1937
1937
|
textTransform: v.textTransform ?? "none",
|
|
1938
1938
|
textDecoration: v.textDecoration ?? "none",
|
|
1939
1939
|
fontVariant: v.fontVariant ?? "normal",
|
|
@@ -2011,7 +2011,7 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2011
2011
|
},
|
|
2012
2012
|
F
|
|
2013
2013
|
),
|
|
2014
|
-
T.isActive && /* @__PURE__ */
|
|
2014
|
+
T.isActive && /* @__PURE__ */ re(Ge, { children: [
|
|
2015
2015
|
/* @__PURE__ */ l(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
@@ -2023,7 +2023,7 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2023
2023
|
color: T.color,
|
|
2024
2024
|
"--arrow-hover-color": T.hover
|
|
2025
2025
|
},
|
|
2026
|
-
children: /* @__PURE__ */
|
|
2026
|
+
children: /* @__PURE__ */ re(
|
|
2027
2027
|
"button",
|
|
2028
2028
|
{
|
|
2029
2029
|
onClick: () => {
|
|
@@ -2060,7 +2060,7 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2060
2060
|
color: T.color,
|
|
2061
2061
|
"--arrow-hover-color": T.hover
|
|
2062
2062
|
},
|
|
2063
|
-
children: /* @__PURE__ */
|
|
2063
|
+
children: /* @__PURE__ */ re(
|
|
2064
2064
|
"button",
|
|
2065
2065
|
{
|
|
2066
2066
|
className: ue.arrowInner,
|
|
@@ -2803,12 +2803,12 @@ async function Ql(e, t, n, r) {
|
|
|
2803
2803
|
return { width: i, height: s, finalWidth: `${i}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function Zl({ settings: e, content: t, isEditor: n }) {
|
|
2806
|
-
const [r, i] = de(null), [s, o] = de([]), [c, a] = de(0), u = Te(0), [d,
|
|
2806
|
+
const [r, i] = de(null), [s, o] = de([]), [c, a] = de(0), u = Te(0), [d, S] = de({ x: 0, y: 0 }), [v, h] = de(1), [p, m] = de("none"), b = Te({ x: 0, y: 0 }), [$, x] = de(!1), { sizeType: f, imageWidth: F, randomRangeImageWidth: w } = e.imageSize, { revealPosition: M, visible: y } = e.position, { cursorType: T, target: O, defaultCursorScale: C, defaultCursor: P, hoverCursorScale: _, hoverCursor: W } = e.cursor;
|
|
2807
2807
|
Ae(() => {
|
|
2808
2808
|
if (!r) return;
|
|
2809
2809
|
const k = (N, A) => {
|
|
2810
2810
|
const j = r.getBoundingClientRect(), X = N - j.left, Q = A - j.top;
|
|
2811
|
-
if (
|
|
2811
|
+
if (S({ x: X, y: Q }), T === "system") {
|
|
2812
2812
|
m("none"), h(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
@@ -2846,7 +2846,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2846
2846
|
k.image.url,
|
|
2847
2847
|
f,
|
|
2848
2848
|
F,
|
|
2849
|
-
|
|
2849
|
+
w
|
|
2850
2850
|
);
|
|
2851
2851
|
let Q = 0, I = 0;
|
|
2852
2852
|
M === "same" ? (Q = R / 2, I = D / 2) : (Q = N.x ?? Math.random() * R, I = N.y ?? Math.random() * D);
|
|
@@ -2868,9 +2868,9 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2868
2868
|
const j = t[0], X = await V(j, R, D);
|
|
2869
2869
|
N.push(X), o(N), a(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [f, F,
|
|
2871
|
+
}, [f, F, w, M, r]), Ae(() => {
|
|
2872
2872
|
y === "last One" && o((k) => k.length > 0 ? [k[k.length - 1]] : []);
|
|
2873
|
-
}, [y]), /* @__PURE__ */
|
|
2873
|
+
}, [y]), /* @__PURE__ */ re(
|
|
2874
2874
|
"div",
|
|
2875
2875
|
{
|
|
2876
2876
|
ref: i,
|
|
@@ -3265,7 +3265,7 @@ const Jl = {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
}, ec = "LightBox-module__hidden___9s-9x", tc = "LightBox-module__heroImage___sTxNF", nc = "LightBox-module__background___rm9ml", rc = "LightBox-module__editor___4ACaY", oc = "LightBox-module__contentStyle___Bgnsq", ic = "LightBox-module__imageStyle___tLIlB", ac = "LightBox-module__imgWrapper___LuFUp", sc = "LightBox-module__contain___8-yaS", lc = "LightBox-module__cover___hNvOG", cc = "LightBox-module__caption___b6L2I", dc = "LightBox-module__captionTextInner___rCGNH", uc = "LightBox-module__lightboxSplide___XFuWC", pc = "LightBox-module__arrow___iz38X", mc = "LightBox-module__arrowVertical___Zfz81", gc = "LightBox-module__nextArrow___zkAQN", hc = "LightBox-module__arrowInner___p48sW", fc = "LightBox-module__arrowIcon___3VaFf", yc = "LightBox-module__arrowImg___pNV88", vc = "LightBox-module__mirror___pjeXc", bc = "LightBox-module__thumbsWrapper___GB-nU", xc = "LightBox-module__thumbsContainerVertical___wttk5", Cc = "LightBox-module__thumbsContainer___osSma", $c = "LightBox-module__thumbsAlignStart___MO6tY",
|
|
3268
|
+
}, ec = "LightBox-module__hidden___9s-9x", tc = "LightBox-module__heroImage___sTxNF", nc = "LightBox-module__background___rm9ml", rc = "LightBox-module__editor___4ACaY", oc = "LightBox-module__contentStyle___Bgnsq", ic = "LightBox-module__imageStyle___tLIlB", ac = "LightBox-module__imgWrapper___LuFUp", sc = "LightBox-module__contain___8-yaS", lc = "LightBox-module__cover___hNvOG", cc = "LightBox-module__caption___b6L2I", dc = "LightBox-module__captionTextInner___rCGNH", uc = "LightBox-module__lightboxSplide___XFuWC", pc = "LightBox-module__arrow___iz38X", mc = "LightBox-module__arrowVertical___Zfz81", gc = "LightBox-module__nextArrow___zkAQN", hc = "LightBox-module__arrowInner___p48sW", fc = "LightBox-module__arrowIcon___3VaFf", yc = "LightBox-module__arrowImg___pNV88", vc = "LightBox-module__mirror___pjeXc", bc = "LightBox-module__thumbsWrapper___GB-nU", xc = "LightBox-module__thumbsContainerVertical___wttk5", Cc = "LightBox-module__thumbsContainer___osSma", $c = "LightBox-module__thumbsAlignStart___MO6tY", Sc = "LightBox-module__thumbsAlignCenter___Q4sUx", wc = "LightBox-module__thumbsAlignEnd___p4y9R", Tc = "LightBox-module__thumbItem___HvnF3", Lc = "LightBox-module__closeButton___g2khP", Pc = "LightBox-module__fadeIn___0m5GW", Ec = "LightBox-module__slideInLeft___gPYwC", _c = "LightBox-module__slideInRight___S-pPp", Ac = "LightBox-module__slideInTop___DFdAj", Ic = "LightBox-module__slideInBottom___m27kZ", kc = "LightBox-module__fadeOut___55qBR", Wc = "LightBox-module__slideOutLeft___NvU7P", Rc = "LightBox-module__slideOutRight___SK7eC", Fc = "LightBox-module__slideOutTop___Vgg0z", Mc = "LightBox-module__slideOutBottom___nJ0Ef", Nc = "LightBox-module__scaleSlide___vZriG", Z = {
|
|
3269
3269
|
hidden: ec,
|
|
3270
3270
|
heroImage: tc,
|
|
3271
3271
|
background: nc,
|
|
@@ -3289,8 +3289,8 @@ const Jl = {
|
|
|
3289
3289
|
thumbsContainerVertical: xc,
|
|
3290
3290
|
thumbsContainer: Cc,
|
|
3291
3291
|
thumbsAlignStart: $c,
|
|
3292
|
-
thumbsAlignCenter:
|
|
3293
|
-
thumbsAlignEnd:
|
|
3292
|
+
thumbsAlignCenter: Sc,
|
|
3293
|
+
thumbsAlignEnd: wc,
|
|
3294
3294
|
thumbItem: Tc,
|
|
3295
3295
|
closeButton: Lc,
|
|
3296
3296
|
fadeIn: Pc,
|
|
@@ -3321,7 +3321,7 @@ function pi(e) {
|
|
|
3321
3321
|
const t = e.getBoundingClientRect(), n = La(e), r = Math.max(0, t.width - n.left - n.right), i = Math.max(0, t.height - n.top - n.bottom), s = e.naturalWidth, o = e.naturalHeight, c = r / i, a = s / o;
|
|
3322
3322
|
let u, d;
|
|
3323
3323
|
a > c ? (u = r, d = r / a) : (d = i, u = i * a);
|
|
3324
|
-
const
|
|
3324
|
+
const S = t.left + n.left, v = t.top + n.top, h = (r - u) / 2 + S, p = (i - d) / 2 + v;
|
|
3325
3325
|
return {
|
|
3326
3326
|
x: h,
|
|
3327
3327
|
y: p,
|
|
@@ -3423,7 +3423,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3423
3423
|
const [c, a] = de(!1), { url: u } = e.thumbnailBlock.cover;
|
|
3424
3424
|
return Ae(() => {
|
|
3425
3425
|
i === "close" && a(!1), i === "open" && a(!0);
|
|
3426
|
-
}, [i]), /* @__PURE__ */
|
|
3426
|
+
}, [i]), /* @__PURE__ */ re(Ge, { children: [
|
|
3427
3427
|
/* @__PURE__ */ l(
|
|
3428
3428
|
"img",
|
|
3429
3429
|
{
|
|
@@ -3448,18 +3448,18 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, Bc = ({ isOpen: e, onClose: t, content: n, lightboxStyles: r, settings: i, portalId: s, isEditor: o, metadata: c }) => {
|
|
3450
3450
|
var Ie;
|
|
3451
|
-
const { widthSettings: a, fontSettings: u, letterSpacing: d, textAlign:
|
|
3451
|
+
const { widthSettings: a, fontSettings: u, letterSpacing: d, textAlign: S, wordSpacing: v, fontSizeLineHeight: h, textAppearance: p, color: m } = r.imageCaption ?? {}, [b, $] = de(0), [x, f] = de(0), [F, w] = de(!1), [M, y] = de(!1), [T, O] = de({}), C = Te(null), P = Te(null), _ = Te(null), W = Te(!1), V = Te(null), ee = Te(null), k = Te(null), R = Te(null), D = Te(!1), N = Te(null), [A, j] = de(!1), { appear: X, triggers: Q, slider: I, thumbnail: te, controls: g, area: J, caption: he, layout: le } = i.lightboxBlock, { appearClass: xe, backdropAppearClass: ne, backdropDisappearClass: ce, disappearClass: B } = Hc(X.type, X.direction), K = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
Ae(() => {
|
|
3453
3453
|
const H = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
3455
3455
|
var E, z;
|
|
3456
3456
|
(z = (E = C.current) == null ? void 0 : E.splide) == null || z.refresh();
|
|
3457
3457
|
}, 16);
|
|
3458
|
-
},
|
|
3458
|
+
}, oe = () => {
|
|
3459
3459
|
f((E) => E + 1);
|
|
3460
3460
|
};
|
|
3461
|
-
return window.addEventListener("ArticleEditor.Layout:change", H), window.addEventListener("ArticleEditor.ComponentContent:change",
|
|
3462
|
-
window.removeEventListener("ArticleEditor.Layout:change", H), window.removeEventListener("ArticleEditor.ComponentContent:change",
|
|
3461
|
+
return window.addEventListener("ArticleEditor.Layout:change", H), window.addEventListener("ArticleEditor.ComponentContent:change", oe), () => {
|
|
3462
|
+
window.removeEventListener("ArticleEditor.Layout:change", H), window.removeEventListener("ArticleEditor.ComponentContent:change", oe);
|
|
3463
3463
|
};
|
|
3464
3464
|
}, []), Ae(() => {
|
|
3465
3465
|
if (!e || !te.isActive) {
|
|
@@ -3468,27 +3468,27 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3468
3468
|
}
|
|
3469
3469
|
const H = N.current;
|
|
3470
3470
|
if (!H) return;
|
|
3471
|
-
const
|
|
3471
|
+
const oe = () => {
|
|
3472
3472
|
I.direction === "horiz" ? j(H.scrollWidth > H.clientWidth) : j(H.scrollHeight > H.clientHeight);
|
|
3473
3473
|
};
|
|
3474
|
-
|
|
3475
|
-
const E = new ResizeObserver(
|
|
3474
|
+
oe();
|
|
3475
|
+
const E = new ResizeObserver(oe);
|
|
3476
3476
|
return E.observe(H), () => E.disconnect();
|
|
3477
3477
|
}, [e, te.isActive, n.length, T, I.direction]);
|
|
3478
3478
|
const U = ft(() => {
|
|
3479
|
-
const H = window.matchMedia("(max-width: 768px)").matches,
|
|
3480
|
-
H && !o &&
|
|
3479
|
+
const H = window.matchMedia("(max-width: 768px)").matches, oe = gi(J.color);
|
|
3480
|
+
H && !o && oe > 0.9 && (document.body.style.backgroundColor = ""), w(!0), W.current = !0;
|
|
3481
3481
|
const E = (z) => {
|
|
3482
|
-
z.target === V.current && z.animationName && (V.current && ee.current && V.current.removeEventListener("animationend", ee.current), ee.current = null, W.current && (W.current = !1, t()),
|
|
3482
|
+
z.target === V.current && z.animationName && (V.current && ee.current && V.current.removeEventListener("animationend", ee.current), ee.current = null, W.current && (W.current = !1, t()), w(!1));
|
|
3483
3483
|
};
|
|
3484
3484
|
V.current && (ee.current = E, V.current.addEventListener("animationend", E));
|
|
3485
|
-
}, [t, J.color, o]), se = (H,
|
|
3485
|
+
}, [t, J.color, o]), se = (H, oe, E) => {
|
|
3486
3486
|
var z, q;
|
|
3487
3487
|
if (H) {
|
|
3488
3488
|
if (Q.type === "click" && Q.switch === "image")
|
|
3489
3489
|
Q.repeat === "close" && b === n.length - 1 ? U() : (z = C.current) == null || z.go("+1");
|
|
3490
3490
|
else if (Q.type === "click" && Q.switch === "50/50") {
|
|
3491
|
-
const G = H.getBoundingClientRect(), ae =
|
|
3491
|
+
const G = H.getBoundingClientRect(), ae = oe - G.left, ge = E - G.top, Ne = G.width, fe = G.height;
|
|
3492
3492
|
let be;
|
|
3493
3493
|
I.direction === "horiz" ? be = ae < Ne / 2 ? "-1" : "+1" : be = ge < fe / 2 ? "-1" : "+1", (q = C.current) == null || q.go(be);
|
|
3494
3494
|
}
|
|
@@ -3498,7 +3498,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3498
3498
|
D.current = !1;
|
|
3499
3499
|
return;
|
|
3500
3500
|
}
|
|
3501
|
-
const
|
|
3501
|
+
const oe = n[b], E = (oe == null ? void 0 : oe.image.objectFit) === "cover";
|
|
3502
3502
|
let z, q;
|
|
3503
3503
|
if ("changedTouches" in H && H.changedTouches.length > 0)
|
|
3504
3504
|
z = H.changedTouches[0].clientX, q = H.changedTouches[0].clientY;
|
|
@@ -3520,29 +3520,29 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3520
3520
|
}
|
|
3521
3521
|
G ? se(_.current, z, q) : U();
|
|
3522
3522
|
}, Pe = (H) => {
|
|
3523
|
-
const
|
|
3524
|
-
(
|
|
3523
|
+
const oe = H.target;
|
|
3524
|
+
(oe.classList.contains(Z.thumbsWrapper) || oe.classList.contains(Z.thumbsContainer)) && ve(H);
|
|
3525
3525
|
};
|
|
3526
3526
|
Ae(() => {
|
|
3527
3527
|
if (!e) return;
|
|
3528
|
-
const H = (
|
|
3528
|
+
const H = (oe) => {
|
|
3529
3529
|
var E, z;
|
|
3530
|
-
if (
|
|
3530
|
+
if (oe.key === "Escape") {
|
|
3531
3531
|
U();
|
|
3532
3532
|
return;
|
|
3533
3533
|
}
|
|
3534
|
-
if (
|
|
3534
|
+
if (oe.key === "ArrowRight") {
|
|
3535
3535
|
$((q) => (q + 1) % Math.max(n.length, 1)), (E = C.current) == null || E.go("+1");
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
|
-
|
|
3538
|
+
oe.key === "ArrowLeft" && ($((q) => (q - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (z = C.current) == null || z.go("-1"));
|
|
3539
3539
|
};
|
|
3540
3540
|
return window.addEventListener("keydown", H), () => {
|
|
3541
3541
|
window.removeEventListener("keydown", H);
|
|
3542
3542
|
};
|
|
3543
3543
|
}, [e, U, n.length]), Ae(() => {
|
|
3544
3544
|
if (e) {
|
|
3545
|
-
if ($(0), f((
|
|
3545
|
+
if ($(0), f((oe) => oe + 1), W.current = !1, w(!1), y(!1), O({}), !K) return;
|
|
3546
3546
|
const H = new CustomEvent("page-overlay", { detail: { itemId: K } });
|
|
3547
3547
|
window.dispatchEvent(H);
|
|
3548
3548
|
}
|
|
@@ -3553,10 +3553,10 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3553
3553
|
P.current !== null && P.current !== I.type && f((H) => H + 1), P.current = I.type;
|
|
3554
3554
|
}, [I.type]), Ae(() => {
|
|
3555
3555
|
if (!e) return;
|
|
3556
|
-
const H = document.body.style.overflow,
|
|
3556
|
+
const H = document.body.style.overflow, oe = window.matchMedia("(max-width: 768px)").matches, E = gi(J.color);
|
|
3557
3557
|
document.body.style.overflow = "hidden", y(!1);
|
|
3558
3558
|
const z = (G) => {
|
|
3559
|
-
G.target === V.current && !W.current && G.animationName && (
|
|
3559
|
+
G.target === V.current && !W.current && G.animationName && (oe && !o && E > 0.9 && (document.body.style.backgroundColor = J.color), y(!0), V.current && k.current && V.current.removeEventListener("animationend", k.current), k.current = null);
|
|
3560
3560
|
};
|
|
3561
3561
|
V.current && (k.current = z, V.current.addEventListener("animationend", z));
|
|
3562
3562
|
const q = (G) => {
|
|
@@ -3568,25 +3568,25 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3568
3568
|
};
|
|
3569
3569
|
}, [e, o, J.color, I.type]), Ae(() => {
|
|
3570
3570
|
if (!e) return;
|
|
3571
|
-
const H = (
|
|
3571
|
+
const H = (oe) => {
|
|
3572
3572
|
var z, q;
|
|
3573
3573
|
if (W.current) {
|
|
3574
|
-
|
|
3574
|
+
oe.stopPropagation();
|
|
3575
3575
|
return;
|
|
3576
3576
|
}
|
|
3577
3577
|
if (D.current) {
|
|
3578
3578
|
D.current = !1;
|
|
3579
3579
|
return;
|
|
3580
3580
|
}
|
|
3581
|
-
const E =
|
|
3581
|
+
const E = oe.target;
|
|
3582
3582
|
if (!(E && (E.closest(`.${Z.thumbsContainer}`) || E.closest(`.${Z.thumbItem}`) || E.closest(`.${Z.arrow}`) || E.closest(`.${Z.closeButton}`) || E.closest(`.${Z.caption}`)))) {
|
|
3583
3583
|
if (I.type === "slide" && Q.type === "drag" && ((q = (z = C.current) == null ? void 0 : z.splide) != null && q.root)) {
|
|
3584
3584
|
const G = C.current.splide.root;
|
|
3585
3585
|
if (E && (G.contains(E) || G === E))
|
|
3586
3586
|
return;
|
|
3587
3587
|
}
|
|
3588
|
-
if (
|
|
3589
|
-
const G = n[b], ae = (G == null ? void 0 : G.image.objectFit) === "cover", ge =
|
|
3588
|
+
if (oe.touches.length === 0 && oe.changedTouches.length > 0) {
|
|
3589
|
+
const G = n[b], ae = (G == null ? void 0 : G.image.objectFit) === "cover", ge = oe.changedTouches[0];
|
|
3590
3590
|
let Ne;
|
|
3591
3591
|
if (ae && _.current) {
|
|
3592
3592
|
const fe = mi(_.current);
|
|
@@ -3597,7 +3597,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3597
3597
|
Ne = ge.clientX >= fe.x && ge.clientX <= fe.x + fe.width && ge.clientY >= fe.y && ge.clientY <= fe.y + fe.height;
|
|
3598
3598
|
}
|
|
3599
3599
|
if (!Ne) {
|
|
3600
|
-
|
|
3600
|
+
oe.stopPropagation(), W.current = !0;
|
|
3601
3601
|
const fe = (be) => {
|
|
3602
3602
|
be.stopPropagation(), be.preventDefault(), document.removeEventListener("click", fe, !0);
|
|
3603
3603
|
};
|
|
@@ -3610,11 +3610,11 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3610
3610
|
document.removeEventListener("touchend", H);
|
|
3611
3611
|
};
|
|
3612
3612
|
}, [e, U, b, n]);
|
|
3613
|
-
const
|
|
3613
|
+
const Se = (I.type === "scale" || I.type === "fade") && I.direction === "vert" && Q.type === "drag";
|
|
3614
3614
|
Ae(() => {
|
|
3615
3615
|
var be, Oe;
|
|
3616
|
-
if (!e || !
|
|
3617
|
-
const H = C.current.splide.root,
|
|
3616
|
+
if (!e || !Se || !((Oe = (be = C.current) == null ? void 0 : be.splide) != null && Oe.root)) return;
|
|
3617
|
+
const H = C.current.splide.root, oe = 30, E = (ie, Ce) => {
|
|
3618
3618
|
if (R.current) {
|
|
3619
3619
|
const We = Math.abs(ie - R.current.x), Me = Math.abs(Ce - R.current.y);
|
|
3620
3620
|
(We > 0 || Me > 0) && (D.current = !0);
|
|
@@ -3629,7 +3629,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3629
3629
|
return;
|
|
3630
3630
|
}
|
|
3631
3631
|
const We = Math.abs(ie - R.current.x), Me = Math.abs(Ce - R.current.y);
|
|
3632
|
-
Me >
|
|
3632
|
+
Me > oe && Me > We && C.current.go(Ce < R.current.y ? "+1" : "-1"), R.current = null;
|
|
3633
3633
|
}, ae = (ie) => {
|
|
3634
3634
|
R.current && G(ie.clientX, ie.clientY), document.removeEventListener("pointerup", ae), document.removeEventListener("pointercancel", ae), document.removeEventListener("pointermove", z);
|
|
3635
3635
|
}, ge = (ie) => {
|
|
@@ -3648,7 +3648,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3648
3648
|
return H.addEventListener("pointerdown", Ne), H.addEventListener("touchstart", fe), () => {
|
|
3649
3649
|
H.removeEventListener("pointerdown", Ne), H.removeEventListener("touchstart", fe), document.removeEventListener("pointermove", z), document.removeEventListener("pointerup", ae), document.removeEventListener("pointercancel", ae), document.removeEventListener("touchmove", q), document.removeEventListener("touchend", ge), document.removeEventListener("touchcancel", ge), R.current = null, D.current = !1;
|
|
3650
3650
|
};
|
|
3651
|
-
}, [e,
|
|
3651
|
+
}, [e, Se, x]);
|
|
3652
3652
|
const Ee = {
|
|
3653
3653
|
backgroundColor: J.color,
|
|
3654
3654
|
backdropFilter: `blur(${J.blur}px)`,
|
|
@@ -3657,7 +3657,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3657
3657
|
animationFillMode: "both"
|
|
3658
3658
|
};
|
|
3659
3659
|
return typeof document > "u" || !document.getElementById(s) ? null : Vi(
|
|
3660
|
-
/* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ re(Ge, { children: [
|
|
3661
3661
|
/* @__PURE__ */ l(
|
|
3662
3662
|
"div",
|
|
3663
3663
|
{
|
|
@@ -3669,7 +3669,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
3671
|
),
|
|
3672
|
-
/* @__PURE__ */
|
|
3672
|
+
/* @__PURE__ */ re(
|
|
3673
3673
|
"div",
|
|
3674
3674
|
{
|
|
3675
3675
|
ref: o ? V : null,
|
|
@@ -3692,7 +3692,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3692
3692
|
direction: I.direction === "horiz" || I.type === "fade" || I.type === "scale" ? "ltr" : "ttb",
|
|
3693
3693
|
pagination: !1,
|
|
3694
3694
|
// Disable Splide's drag when we need custom vertical drag handling
|
|
3695
|
-
drag: Q.type === "drag" && !
|
|
3695
|
+
drag: Q.type === "drag" && !Se,
|
|
3696
3696
|
perPage: 1,
|
|
3697
3697
|
width: "100%",
|
|
3698
3698
|
height: "100%",
|
|
@@ -3702,7 +3702,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3702
3702
|
start: 0
|
|
3703
3703
|
},
|
|
3704
3704
|
style: { "--splide-speed": I.duration },
|
|
3705
|
-
children: n.map((H,
|
|
3705
|
+
children: n.map((H, oe) => {
|
|
3706
3706
|
const E = mr(le.position, le.offset, o), z = `${L(le.padding.top, o)} ${L(le.padding.right, o)} ${L(le.padding.bottom, o)} ${L(le.padding.left, o)}`, q = I.type === "scale" ? (() => {
|
|
3707
3707
|
const { transform: G, ...ae } = E;
|
|
3708
3708
|
return {
|
|
@@ -3716,7 +3716,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3716
3716
|
return /* @__PURE__ */ l(Bo, { children: /* @__PURE__ */ l("div", { className: Z.imgWrapper, onClick: ve, children: /* @__PURE__ */ l(
|
|
3717
3717
|
"img",
|
|
3718
3718
|
{
|
|
3719
|
-
ref:
|
|
3719
|
+
ref: oe === b ? _ : null,
|
|
3720
3720
|
className: Fe(Z.imageStyle, {
|
|
3721
3721
|
[Z.contain]: H.image.objectFit === "contain",
|
|
3722
3722
|
[Z.cover]: H.image.objectFit === "cover",
|
|
@@ -3726,18 +3726,18 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3726
3726
|
alt: H.image.name ?? "",
|
|
3727
3727
|
style: { ...q, pointerEvents: H.image.objectFit === "contain" ? "none" : "auto" }
|
|
3728
3728
|
}
|
|
3729
|
-
) }) },
|
|
3729
|
+
) }) }, oe);
|
|
3730
3730
|
})
|
|
3731
3731
|
},
|
|
3732
3732
|
x
|
|
3733
3733
|
),
|
|
3734
|
-
g.isActive && /* @__PURE__ */
|
|
3734
|
+
g.isActive && /* @__PURE__ */ re(Ge, { children: [
|
|
3735
3735
|
/* @__PURE__ */ l(
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
3738
|
className: Fe(Z.arrow, { [Z.arrowVertical]: I.direction === "vert" }),
|
|
3739
3739
|
style: { color: g.color, "--arrow-hover-color": g.hover },
|
|
3740
|
-
children: /* @__PURE__ */
|
|
3740
|
+
children: /* @__PURE__ */ re(
|
|
3741
3741
|
"button",
|
|
3742
3742
|
{
|
|
3743
3743
|
className: Z.arrowInner,
|
|
@@ -3768,7 +3768,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3768
3768
|
{
|
|
3769
3769
|
className: Fe(Z.arrow, Z.nextArrow, { [Z.arrowVertical]: I.direction === "vert" }),
|
|
3770
3770
|
style: { color: g.color, "--arrow-hover-color": g.hover },
|
|
3771
|
-
children: /* @__PURE__ */
|
|
3771
|
+
children: /* @__PURE__ */ re(
|
|
3772
3772
|
"button",
|
|
3773
3773
|
{
|
|
3774
3774
|
className: Z.arrowInner,
|
|
@@ -3796,7 +3796,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3796
3796
|
)
|
|
3797
3797
|
] }),
|
|
3798
3798
|
J.closeIconUrl && (() => {
|
|
3799
|
-
const H = mr(J.closeIconAlign, J.closeIconOffset, o),
|
|
3799
|
+
const H = mr(J.closeIconAlign, J.closeIconOffset, o), oe = `scale(${J.closeIconScale})`, E = H.transform ? `${H.transform} ${oe}` : oe;
|
|
3800
3800
|
return /* @__PURE__ */ l("button", { className: Z.closeButton, style: { ...H, transform: E }, onClick: U, "aria-label": "Close lightbox", children: /* @__PURE__ */ l(qt, { url: J.closeIconUrl, fill: J.closeIconColor ?? "#000000", hoverFill: J.closeIconHover ?? "#cccccc" }) });
|
|
3801
3801
|
})(),
|
|
3802
3802
|
he && he.isActive && r.imageCaption && ((Ie = n[b]) == null ? void 0 : Ie.imageCaption) && /* @__PURE__ */ l(
|
|
@@ -3811,7 +3811,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3811
3811
|
width: a.sizing === "auto" ? "max-content" : L(a.width, o),
|
|
3812
3812
|
letterSpacing: L(d, o),
|
|
3813
3813
|
wordSpacing: L(v, o),
|
|
3814
|
-
textAlign:
|
|
3814
|
+
textAlign: S,
|
|
3815
3815
|
fontSize: L(h.fontSize, o),
|
|
3816
3816
|
lineHeight: L(h.lineHeight, o),
|
|
3817
3817
|
textTransform: p.textTransform ?? "none",
|
|
@@ -3835,11 +3835,11 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3835
3835
|
}
|
|
3836
3836
|
),
|
|
3837
3837
|
te.isActive && (() => {
|
|
3838
|
-
const [H,
|
|
3838
|
+
const [H, oe] = te.position.split("-"), E = I.direction === "horiz" ? `${H}-left` : te.position, z = mr(E, te.offset, o), q = () => {
|
|
3839
3839
|
if (I.direction === "horiz") {
|
|
3840
|
-
if (
|
|
3841
|
-
if (
|
|
3842
|
-
if (
|
|
3840
|
+
if (oe === "left") return "flex-start";
|
|
3841
|
+
if (oe === "center") return "center";
|
|
3842
|
+
if (oe === "right") return "flex-end";
|
|
3843
3843
|
} else {
|
|
3844
3844
|
if (H === "top") return "flex-start";
|
|
3845
3845
|
if (H === "middle") return "center";
|
|
@@ -5202,7 +5202,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5202
5202
|
const o = !!n, c = r && t || !t, { prefix: a } = an(), {
|
|
5203
5203
|
type: u = "A",
|
|
5204
5204
|
fieldsToShow: d = 2,
|
|
5205
|
-
fields:
|
|
5205
|
+
fields: S = [],
|
|
5206
5206
|
buttonLabel: v,
|
|
5207
5207
|
gap: h,
|
|
5208
5208
|
fieldsGap: p,
|
|
@@ -5212,7 +5212,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5212
5212
|
isButtonFullWidth: x,
|
|
5213
5213
|
inputCorners: f,
|
|
5214
5214
|
inputStroke: F,
|
|
5215
|
-
inputPadding:
|
|
5215
|
+
inputPadding: w,
|
|
5216
5216
|
inputColor: M,
|
|
5217
5217
|
inputTextColor: y,
|
|
5218
5218
|
inputBorderColor: T,
|
|
@@ -5246,12 +5246,12 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5246
5246
|
statusFontSize: se,
|
|
5247
5247
|
statusLineHeight: ve,
|
|
5248
5248
|
statusLetterSpacing: Pe,
|
|
5249
|
-
statusWordSpacing:
|
|
5249
|
+
statusWordSpacing: Se,
|
|
5250
5250
|
statusTextAppearance: Ee,
|
|
5251
5251
|
successMessage: Ie,
|
|
5252
5252
|
errorMessage: H,
|
|
5253
|
-
stateOverrides:
|
|
5254
|
-
} = e, E = u === "B", z =
|
|
5253
|
+
stateOverrides: oe
|
|
5254
|
+
} = e, E = u === "B", z = S.slice(0, Math.min(d, S.length)), q = {
|
|
5255
5255
|
fontSettings: {
|
|
5256
5256
|
fontFamily: k,
|
|
5257
5257
|
fontWeight: (R == null ? void 0 : R.fontWeight) ?? 400,
|
|
@@ -5263,8 +5263,8 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5263
5263
|
wordSpacing: j ?? 0,
|
|
5264
5264
|
textAppearance: X,
|
|
5265
5265
|
color: y
|
|
5266
|
-
}, G =
|
|
5267
|
-
(N ?? D ?? 0.01) + ((
|
|
5266
|
+
}, G = wt(rt(q, t)), ae = L(F ?? 0, t), ge = L(
|
|
5267
|
+
(N ?? D ?? 0.01) + ((w == null ? void 0 : w.top) ?? 0) + ((w == null ? void 0 : w.bottom) ?? 0) + (u === "C" ? F ?? 0 : (F ?? 0) * 2),
|
|
5268
5268
|
t
|
|
5269
5269
|
), Ne = {
|
|
5270
5270
|
...G,
|
|
@@ -5276,10 +5276,10 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5276
5276
|
borderBottomWidth: ae,
|
|
5277
5277
|
borderLeftWidth: 0
|
|
5278
5278
|
} : { borderWidth: ae },
|
|
5279
|
-
paddingTop: L((
|
|
5280
|
-
paddingRight: L((
|
|
5281
|
-
paddingBottom: L((
|
|
5282
|
-
paddingLeft: L((
|
|
5279
|
+
paddingTop: L((w == null ? void 0 : w.top) ?? 0, t),
|
|
5280
|
+
paddingRight: L((w == null ? void 0 : w.right) ?? 0, t),
|
|
5281
|
+
paddingBottom: L((w == null ? void 0 : w.bottom) ?? 0, t),
|
|
5282
|
+
paddingLeft: L((w == null ? void 0 : w.left) ?? 0, t),
|
|
5283
5283
|
height: ge,
|
|
5284
5284
|
minHeight: ge
|
|
5285
5285
|
}, fe = {
|
|
@@ -5294,7 +5294,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5294
5294
|
wordSpacing: J ?? 0,
|
|
5295
5295
|
textAppearance: he,
|
|
5296
5296
|
color: P
|
|
5297
|
-
}, be =
|
|
5297
|
+
}, be = wt(rt(fe, t)), Oe = L(b ?? 0, t), ie = {
|
|
5298
5298
|
fontSettings: {
|
|
5299
5299
|
fontFamily: k,
|
|
5300
5300
|
fontWeight: (le == null ? void 0 : le.fontWeight) ?? 400,
|
|
@@ -5315,10 +5315,10 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5315
5315
|
fontSize: se ?? 0.01,
|
|
5316
5316
|
lineHeight: ve,
|
|
5317
5317
|
letterSpacing: Pe ?? 0,
|
|
5318
|
-
wordSpacing:
|
|
5318
|
+
wordSpacing: Se ?? 0,
|
|
5319
5319
|
textAppearance: Ee,
|
|
5320
5320
|
color: V
|
|
5321
|
-
}, Me =
|
|
5321
|
+
}, Me = wt(rt(We, t)), je = Jn(a, {
|
|
5322
5322
|
inputColor: M,
|
|
5323
5323
|
inputTextColor: y,
|
|
5324
5324
|
inputBorderColor: T,
|
|
@@ -5329,18 +5329,18 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5329
5329
|
labelTextColor: W,
|
|
5330
5330
|
successColor: V,
|
|
5331
5331
|
errorColor: ee
|
|
5332
|
-
}, qc, jc,
|
|
5333
|
-
() => Object.fromEntries(z.map((
|
|
5332
|
+
}, qc, jc, oe), [at, vt] = de(
|
|
5333
|
+
() => Object.fromEntries(z.map((we) => [we.name, ""]))
|
|
5334
5334
|
), [bt, Pt] = de("idle"), [Ft, xt] = de(null), Mt = s === "success" ? "success" : s === "error" ? "error" : bt, me = s === "error" ? H : Ft, ze = s === "filled", Ve = He(() => {
|
|
5335
5335
|
if (!ze) return at;
|
|
5336
|
-
let
|
|
5336
|
+
let we = null;
|
|
5337
5337
|
for (const nt of z)
|
|
5338
|
-
(at[nt.name] ?? "").trim().length > 0 || (
|
|
5339
|
-
return
|
|
5340
|
-
}, [at, ze, z]), Ze = Mt === "error" ? Lr(z, Ve) : null, Gt = `${s && s !== "default" ? `${a}-state-${s}` : ""}`.trim(), Ct = i == null ? void 0 : i.submitUrl, Nt = (
|
|
5341
|
-
vt((Qe) => ({ ...Qe, [
|
|
5342
|
-
}, On = async (
|
|
5343
|
-
if (
|
|
5338
|
+
(at[nt.name] ?? "").trim().length > 0 || (we = we ?? { ...at }, we[nt.name] = "Filled");
|
|
5339
|
+
return we ?? at;
|
|
5340
|
+
}, [at, ze, z]), Ze = Mt === "error" ? Lr(z, Ve) : null, Gt = `${s && s !== "default" ? `${a}-state-${s}` : ""}`.trim(), Ct = i == null ? void 0 : i.submitUrl, Nt = (we, nt) => {
|
|
5341
|
+
vt((Qe) => ({ ...Qe, [we]: nt }));
|
|
5342
|
+
}, On = async (we) => {
|
|
5343
|
+
if (we.preventDefault(), !c) return;
|
|
5344
5344
|
const nt = Object.fromEntries(
|
|
5345
5345
|
z.map((Ke) => {
|
|
5346
5346
|
var dt;
|
|
@@ -5373,15 +5373,15 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5373
5373
|
Pt("error"), xt(Ke instanceof Error ? Ke.message : "Something went wrong");
|
|
5374
5374
|
}
|
|
5375
5375
|
};
|
|
5376
|
-
return /* @__PURE__ */
|
|
5376
|
+
return /* @__PURE__ */ re("div", { className: `${a}-wrapper ${a}-type-${u} ${Gt}`.trim(), style: je, children: [
|
|
5377
5377
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: zc(a) } }),
|
|
5378
|
-
/* @__PURE__ */
|
|
5378
|
+
/* @__PURE__ */ re(
|
|
5379
5379
|
"form",
|
|
5380
5380
|
{
|
|
5381
5381
|
onSubmit: On,
|
|
5382
5382
|
className: `${a}-form`,
|
|
5383
5383
|
children: [
|
|
5384
|
-
/* @__PURE__ */ l("div", { className: `${a}-fields`, children: z.map((
|
|
5384
|
+
/* @__PURE__ */ l("div", { className: `${a}-fields`, children: z.map((we, nt) => /* @__PURE__ */ re(en.Fragment, { children: [
|
|
5385
5385
|
nt > 0 && /* @__PURE__ */ l(
|
|
5386
5386
|
"div",
|
|
5387
5387
|
{
|
|
@@ -5390,35 +5390,35 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5390
5390
|
style: { height: L(p ?? 0, t) }
|
|
5391
5391
|
}
|
|
5392
5392
|
),
|
|
5393
|
-
/* @__PURE__ */
|
|
5394
|
-
E && /* @__PURE__ */ l("span", { className: `${a}-field-label`, style: Ce ? { ...Ce, lineHeight: Ce.fontSize } : void 0, children:
|
|
5395
|
-
|
|
5393
|
+
/* @__PURE__ */ re("div", { className: `${a}-field-group${E ? ` ${a}-labeled` : ""}`, children: [
|
|
5394
|
+
E && /* @__PURE__ */ l("span", { className: `${a}-field-label`, style: Ce ? { ...Ce, lineHeight: Ce.fontSize } : void 0, children: we.label || we.name }),
|
|
5395
|
+
we.type === "textarea" ? /* @__PURE__ */ l(
|
|
5396
5396
|
"textarea",
|
|
5397
5397
|
{
|
|
5398
|
-
name:
|
|
5398
|
+
name: we.name,
|
|
5399
5399
|
autoComplete: "off",
|
|
5400
|
-
value: Ve[
|
|
5401
|
-
onChange: (Qe) => Nt(
|
|
5402
|
-
placeholder:
|
|
5400
|
+
value: Ve[we.name] ?? "",
|
|
5401
|
+
onChange: (Qe) => Nt(we.name, Qe.target.value),
|
|
5402
|
+
placeholder: we.placeholder,
|
|
5403
5403
|
className: `${a}-input`,
|
|
5404
5404
|
style: Ne,
|
|
5405
5405
|
rows: 1,
|
|
5406
|
-
"data-filled": ze || (Ve[
|
|
5406
|
+
"data-filled": ze || (Ve[we.name] ?? "").trim().length > 0,
|
|
5407
5407
|
"data-field-type": "textarea"
|
|
5408
5408
|
}
|
|
5409
5409
|
) : /* @__PURE__ */ l(
|
|
5410
5410
|
"input",
|
|
5411
5411
|
{
|
|
5412
|
-
type:
|
|
5413
|
-
name:
|
|
5412
|
+
type: we.type === "phone" ? "tel" : we.type === "email" ? "email" : "text",
|
|
5413
|
+
name: we.name,
|
|
5414
5414
|
autoComplete: "off",
|
|
5415
|
-
value: Ve[
|
|
5416
|
-
onChange: (Qe) => Nt(
|
|
5417
|
-
placeholder:
|
|
5418
|
-
required:
|
|
5415
|
+
value: Ve[we.name] ?? "",
|
|
5416
|
+
onChange: (Qe) => Nt(we.name, Qe.target.value),
|
|
5417
|
+
placeholder: we.placeholder,
|
|
5418
|
+
required: we.isRequired ?? we.type === "email",
|
|
5419
5419
|
className: `${a}-input`,
|
|
5420
5420
|
style: Ne,
|
|
5421
|
-
"data-filled": ze || (Ve[
|
|
5421
|
+
"data-filled": ze || (Ve[we.name] ?? "").trim().length > 0
|
|
5422
5422
|
}
|
|
5423
5423
|
)
|
|
5424
5424
|
] })
|
|
@@ -6977,7 +6977,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
6977
6977
|
buttonIcon: a,
|
|
6978
6978
|
buttonLabel: u,
|
|
6979
6979
|
fieldsToShow: d = 1,
|
|
6980
|
-
fontFamily:
|
|
6980
|
+
fontFamily: S,
|
|
6981
6981
|
inputFontSettings: v,
|
|
6982
6982
|
inputFontSize: h,
|
|
6983
6983
|
inputLineHeight: p,
|
|
@@ -6987,7 +6987,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
6987
6987
|
buttonFontSettings: x,
|
|
6988
6988
|
buttonFontSize: f,
|
|
6989
6989
|
buttonLineHeight: F,
|
|
6990
|
-
buttonLetterSpacing:
|
|
6990
|
+
buttonLetterSpacing: w,
|
|
6991
6991
|
buttonWordSpacing: M,
|
|
6992
6992
|
buttonTextAppearance: y,
|
|
6993
6993
|
statusFontSettings: T,
|
|
@@ -7013,9 +7013,9 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7013
7013
|
for (const Ce of Q)
|
|
7014
7014
|
(I[Ce.name] ?? "").trim().length > 0 || (ie = ie ?? { ...I }, ie[Ce.name] = "Filled");
|
|
7015
7015
|
return ie ?? I;
|
|
7016
|
-
}, [ce, I, Q]), K = xe === "error" ? Lr(Q, B) : null, U = i && i !== "default" ? `${s}-state-${i}` : "", se = Q.some((ie) => (B[ie.name] ?? "").trim().length > 0), ve = U !== `${s}-state-filled` && se ? `${s}-state-filled` : "", Pe = `${U} ${ve}`.trim(),
|
|
7016
|
+
}, [ce, I, Q]), K = xe === "error" ? Lr(Q, B) : null, U = i && i !== "default" ? `${s}-state-${i}` : "", se = Q.some((ie) => (B[ie.name] ?? "").trim().length > 0), ve = U !== `${s}-state-filled` && se ? `${s}-state-filled` : "", Pe = `${U} ${ve}`.trim(), Se = r == null ? void 0 : r.submitUrl, Ee = u ?? "", Ie = (a == null ? void 0 : a.icon) ?? "", H = (a == null ? void 0 : a.mode) === "On", oe = Ee || "Submit", E = {
|
|
7017
7017
|
fontSettings: {
|
|
7018
|
-
fontFamily:
|
|
7018
|
+
fontFamily: S,
|
|
7019
7019
|
fontWeight: (v == null ? void 0 : v.fontWeight) ?? 400,
|
|
7020
7020
|
fontStyle: (v == null ? void 0 : v.fontStyle) ?? "normal"
|
|
7021
7021
|
},
|
|
@@ -7027,19 +7027,19 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7027
7027
|
color: e.inputTextColor ?? "#111111"
|
|
7028
7028
|
}, z = {
|
|
7029
7029
|
fontSettings: {
|
|
7030
|
-
fontFamily:
|
|
7030
|
+
fontFamily: S,
|
|
7031
7031
|
fontWeight: (x == null ? void 0 : x.fontWeight) ?? 400,
|
|
7032
7032
|
fontStyle: (x == null ? void 0 : x.fontStyle) ?? "normal"
|
|
7033
7033
|
},
|
|
7034
7034
|
fontSize: f ?? 0.01,
|
|
7035
7035
|
lineHeight: F,
|
|
7036
|
-
letterSpacing:
|
|
7036
|
+
letterSpacing: w ?? 0,
|
|
7037
7037
|
wordSpacing: M ?? 0,
|
|
7038
7038
|
textAppearance: y,
|
|
7039
7039
|
color: e.buttonTextColor ?? "#ffffff"
|
|
7040
7040
|
}, q = {
|
|
7041
7041
|
fontSettings: {
|
|
7042
|
-
fontFamily:
|
|
7042
|
+
fontFamily: S,
|
|
7043
7043
|
fontWeight: (T == null ? void 0 : T.fontWeight) ?? 400,
|
|
7044
7044
|
fontStyle: (T == null ? void 0 : T.fontStyle) ?? "normal"
|
|
7045
7045
|
},
|
|
@@ -7049,7 +7049,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7049
7049
|
wordSpacing: _ ?? 0,
|
|
7050
7050
|
textAppearance: W,
|
|
7051
7051
|
color: e.successColor ?? "#22c55e"
|
|
7052
|
-
}, G =
|
|
7052
|
+
}, G = wt(rt(E, t)), ae = wt(rt(z, t)), ge = wt(rt(q, t)), Ne = Jn(s, {
|
|
7053
7053
|
strokeColor: e.strokeColor,
|
|
7054
7054
|
inputColor: e.inputColor,
|
|
7055
7055
|
placeholderColor: e.placeholderColor,
|
|
@@ -7070,7 +7070,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7070
7070
|
return [Me.name, ((je = I[Me.name]) == null ? void 0 : je.trim()) ?? ""];
|
|
7071
7071
|
}).filter(([, Me]) => Me)
|
|
7072
7072
|
);
|
|
7073
|
-
if (!
|
|
7073
|
+
if (!Se) {
|
|
7074
7074
|
J("error"), le("No integrations were found for this form.");
|
|
7075
7075
|
return;
|
|
7076
7076
|
}
|
|
@@ -7082,7 +7082,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7082
7082
|
}
|
|
7083
7083
|
J("submitting"), le(null);
|
|
7084
7084
|
try {
|
|
7085
|
-
const Me = await fetch(
|
|
7085
|
+
const Me = await fetch(Se, {
|
|
7086
7086
|
method: "POST",
|
|
7087
7087
|
headers: { "Content-Type": "application/json" },
|
|
7088
7088
|
body: JSON.stringify(Ce)
|
|
@@ -7096,9 +7096,9 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7096
7096
|
J("error"), le(Me instanceof Error ? Me.message : "Something went wrong");
|
|
7097
7097
|
}
|
|
7098
7098
|
};
|
|
7099
|
-
return /* @__PURE__ */
|
|
7099
|
+
return /* @__PURE__ */ re("div", { className: `${s}-wrapper ${Pe}`.trim(), style: Ne, children: [
|
|
7100
7100
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Qc(s) } }),
|
|
7101
|
-
/* @__PURE__ */
|
|
7101
|
+
/* @__PURE__ */ re(
|
|
7102
7102
|
"form",
|
|
7103
7103
|
{
|
|
7104
7104
|
onSubmit: Oe,
|
|
@@ -7142,7 +7142,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7142
7142
|
{
|
|
7143
7143
|
type: o ? "submit" : "button",
|
|
7144
7144
|
className: `${s}-submitBtn`,
|
|
7145
|
-
"aria-label":
|
|
7145
|
+
"aria-label": oe,
|
|
7146
7146
|
style: {
|
|
7147
7147
|
...ae,
|
|
7148
7148
|
...be,
|
|
@@ -8449,10 +8449,10 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8449
8449
|
const C = u.current;
|
|
8450
8450
|
C != null && C.complete && (a == null || a());
|
|
8451
8451
|
}, [o, (y = e.image) == null ? void 0 : y.url, a]);
|
|
8452
|
-
const d = n.display === "Cover",
|
|
8452
|
+
const d = n.display === "Cover", S = n.ratioValue ?? "1:1", v = n.reversed ?? !1, [h, p] = S.split(":").map(Number), $ = (v ? p : h) / (v ? h : p);
|
|
8453
8453
|
let x = r, f = x / $;
|
|
8454
8454
|
f > i && (f = i, x = f * $);
|
|
8455
|
-
const F = c(x),
|
|
8455
|
+
const F = c(x), w = c(f), M = ((T = e.image) == null ? void 0 : T.url) && /* @__PURE__ */ l(
|
|
8456
8456
|
"img",
|
|
8457
8457
|
{
|
|
8458
8458
|
ref: u,
|
|
@@ -8495,7 +8495,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8495
8495
|
justifyContent: "center",
|
|
8496
8496
|
alignItems: "center",
|
|
8497
8497
|
flexShrink: 0,
|
|
8498
|
-
...d ? { width: F, height:
|
|
8498
|
+
...d ? { width: F, height: w, overflow: "hidden" } : {
|
|
8499
8499
|
width: "fit-content",
|
|
8500
8500
|
maxWidth: c(r),
|
|
8501
8501
|
height: c(i)
|
|
@@ -8516,7 +8516,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8516
8516
|
}
|
|
8517
8517
|
);
|
|
8518
8518
|
}, hd = ({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i }) => {
|
|
8519
|
-
const { prefix: s } = an(), o = He(() => sd(s), [s]), { speed: c, direction: a, pauseOnHover: u, gap: d, imageMaxWidth:
|
|
8519
|
+
const { prefix: s } = an(), o = He(() => sd(s), [s]), { speed: c, direction: a, pauseOnHover: u, gap: d, imageMaxWidth: S, imageMaxHeight: v, imageFit: h, hoverEffect: p } = e, m = !!i, b = !n || !!r, $ = b && p !== "off" && p !== "randomize" ? `${s}-image-hover-${p}` : void 0, x = n ? !!r : !0, F = ((t == null ? void 0 : t.length) ?? 0) > 0 && (x || !!n), w = Math.max(0, c) * ld, M = (K) => L(K, n ?? !1), y = Te(null), T = Te(null), O = Te(null), [C, P] = de(0), [_, W] = de(0), V = x && u === "on", [ee, k] = de(!1), [R, D] = de({}), N = Te(R);
|
|
8520
8520
|
N.current = R;
|
|
8521
8521
|
const A = Te(null), j = Te(0), X = Te(null), Q = He(() => (t ?? []).map((K) => {
|
|
8522
8522
|
var U;
|
|
@@ -8537,29 +8537,29 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8537
8537
|
if (!b || p !== "randomize") return;
|
|
8538
8538
|
const K = y.current;
|
|
8539
8539
|
if (!K) return;
|
|
8540
|
-
const U = (
|
|
8540
|
+
const U = (Se) => {
|
|
8541
8541
|
D((Ee) => {
|
|
8542
8542
|
let Ie = null;
|
|
8543
|
-
for (const H of
|
|
8543
|
+
for (const H of Se)
|
|
8544
8544
|
H in Ee && (md(K, H) || (Ie || (Ie = { ...Ee }), delete Ie[H]));
|
|
8545
8545
|
return Ie ?? Ee;
|
|
8546
8546
|
});
|
|
8547
|
-
}, se = new IntersectionObserver((
|
|
8547
|
+
}, se = new IntersectionObserver((Se) => {
|
|
8548
8548
|
const Ee = /* @__PURE__ */ new Set();
|
|
8549
|
-
for (const Ie of
|
|
8550
|
-
const H = Ie.target.dataset.marqueeItemIndex,
|
|
8551
|
-
Number.isNaN(
|
|
8549
|
+
for (const Ie of Se) {
|
|
8550
|
+
const H = Ie.target.dataset.marqueeItemIndex, oe = H !== void 0 ? Number(H) : NaN;
|
|
8551
|
+
Number.isNaN(oe) || Ee.add(oe);
|
|
8552
8552
|
}
|
|
8553
8553
|
Ee.size > 0 && U(Ee);
|
|
8554
8554
|
}, { root: K, threshold: 0 });
|
|
8555
|
-
Object.keys(R).forEach((
|
|
8556
|
-
const Ee = Number(
|
|
8555
|
+
Object.keys(R).forEach((Se) => {
|
|
8556
|
+
const Ee = Number(Se);
|
|
8557
8557
|
K.querySelectorAll(`[data-marquee-item-index="${Ee}"]`).forEach((Ie) => se.observe(Ie));
|
|
8558
8558
|
});
|
|
8559
8559
|
let ve = 0;
|
|
8560
8560
|
const Pe = () => {
|
|
8561
|
-
const
|
|
8562
|
-
|
|
8561
|
+
const Se = Object.keys(N.current);
|
|
8562
|
+
Se.length !== 0 && (U(Se.map(Number)), ve = requestAnimationFrame(Pe));
|
|
8563
8563
|
};
|
|
8564
8564
|
return Object.keys(N.current).length > 0 && (ve = requestAnimationFrame(Pe)), () => {
|
|
8565
8565
|
cancelAnimationFrame(ve), se.disconnect();
|
|
@@ -8570,7 +8570,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8570
8570
|
if (!K || !U) return;
|
|
8571
8571
|
let se = 0;
|
|
8572
8572
|
const ve = () => {
|
|
8573
|
-
const Ee = K.getBoundingClientRect().width, Ie = U.getBoundingClientRect().width, H = A.current,
|
|
8573
|
+
const Ee = K.getBoundingClientRect().width, Ie = U.getBoundingClientRect().width, H = A.current, oe = typeof H == "number" && Math.abs(H - Ie) <= 0.25;
|
|
8574
8574
|
if (A.current = Ie, x && Ie > 0 && I > 0) {
|
|
8575
8575
|
const E = Ie / I;
|
|
8576
8576
|
if (E > 0 && Ee > 0) {
|
|
@@ -8588,21 +8588,21 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8588
8588
|
P(Ie);
|
|
8589
8589
|
return;
|
|
8590
8590
|
}
|
|
8591
|
-
|
|
8591
|
+
oe && Ie !== C ? P(Ie) : !oe && C <= 0 && (cancelAnimationFrame(se), se = requestAnimationFrame(ve));
|
|
8592
8592
|
}, Pe = () => {
|
|
8593
8593
|
cancelAnimationFrame(se), se = requestAnimationFrame(ve);
|
|
8594
8594
|
};
|
|
8595
8595
|
X.current = Pe, Pe();
|
|
8596
|
-
const
|
|
8597
|
-
return
|
|
8598
|
-
X.current = null, cancelAnimationFrame(se),
|
|
8596
|
+
const Se = new ResizeObserver(Pe);
|
|
8597
|
+
return Se.observe(K), Se.observe(U), () => {
|
|
8598
|
+
X.current = null, cancelAnimationFrame(se), Se.disconnect();
|
|
8599
8599
|
};
|
|
8600
8600
|
}, [x, F, C, Q, I]), yt(() => {
|
|
8601
8601
|
const K = T.current;
|
|
8602
8602
|
if (!F || !K) return;
|
|
8603
|
-
const U = C > 0 ? C : 0, se = U > 0 &&
|
|
8603
|
+
const U = C > 0 ? C : 0, se = U > 0 && w > 0 ? U / w * 1e3 : 0, ve = `${Math.max(0, se) / 1e3}s`;
|
|
8604
8604
|
K.style.setProperty("--marquee-distance", `${U}px`), K.style.setProperty("--marquee-duration", ve);
|
|
8605
|
-
}, [x, F,
|
|
8605
|
+
}, [x, F, w, C]), yt(() => {
|
|
8606
8606
|
if (!F) {
|
|
8607
8607
|
W(0);
|
|
8608
8608
|
return;
|
|
@@ -8620,7 +8620,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8620
8620
|
U();
|
|
8621
8621
|
const se = new ResizeObserver(U);
|
|
8622
8622
|
return se.observe(K), () => se.disconnect();
|
|
8623
|
-
}, [F, he, g, n, d,
|
|
8623
|
+
}, [F, he, g, n, d, S, v, C, h, R]);
|
|
8624
8624
|
const le = () => {
|
|
8625
8625
|
V && k(!0);
|
|
8626
8626
|
}, xe = () => {
|
|
@@ -8635,12 +8635,12 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8635
8635
|
D((se) => {
|
|
8636
8636
|
const ve = se[K] ?? U, Pe = (t ?? []).filter((Ee) => Ee !== ve);
|
|
8637
8637
|
if (Pe.length === 0) return se;
|
|
8638
|
-
const
|
|
8639
|
-
return { ...se, [K]:
|
|
8638
|
+
const Se = Pe[Math.floor(Math.random() * Pe.length)];
|
|
8639
|
+
return { ...se, [K]: Se };
|
|
8640
8640
|
});
|
|
8641
8641
|
}, [t]), B = (K, U, se, ve) => {
|
|
8642
|
-
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ?? K : K,
|
|
8643
|
-
return /* @__PURE__ */
|
|
8642
|
+
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ?? K : K, Se = `max(${M(d)}, ${cd}px)`, Ee = `calc(-0.5 * (${Se} + ${M(d)}))`;
|
|
8643
|
+
return /* @__PURE__ */ re(
|
|
8644
8644
|
"div",
|
|
8645
8645
|
{
|
|
8646
8646
|
className: `${s}-marquee-card`,
|
|
@@ -8653,7 +8653,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8653
8653
|
item: Pe,
|
|
8654
8654
|
prefix: s,
|
|
8655
8655
|
imageFit: h,
|
|
8656
|
-
imageMaxWidth:
|
|
8656
|
+
imageMaxWidth: S,
|
|
8657
8657
|
imageMaxHeight: v,
|
|
8658
8658
|
imageHoverClass: $,
|
|
8659
8659
|
isEditor: n,
|
|
@@ -8672,7 +8672,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8672
8672
|
position: "absolute",
|
|
8673
8673
|
top: 0,
|
|
8674
8674
|
right: Ee,
|
|
8675
|
-
width:
|
|
8675
|
+
width: Se,
|
|
8676
8676
|
height: "100%"
|
|
8677
8677
|
}
|
|
8678
8678
|
}
|
|
@@ -8684,7 +8684,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8684
8684
|
};
|
|
8685
8685
|
if (F) {
|
|
8686
8686
|
const K = x ? V && ee ? "paused" : "running" : "paused";
|
|
8687
|
-
return /* @__PURE__ */
|
|
8687
|
+
return /* @__PURE__ */ re(
|
|
8688
8688
|
"div",
|
|
8689
8689
|
{
|
|
8690
8690
|
ref: y,
|
|
@@ -8725,7 +8725,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8725
8725
|
}
|
|
8726
8726
|
);
|
|
8727
8727
|
}
|
|
8728
|
-
return /* @__PURE__ */
|
|
8728
|
+
return /* @__PURE__ */ re("div", { ref: y, className: `${s}-wrapper`, children: [
|
|
8729
8729
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: o } }),
|
|
8730
8730
|
/* @__PURE__ */ l(
|
|
8731
8731
|
"div",
|
|
@@ -9688,7 +9688,7 @@ function fi(e) {
|
|
|
9688
9688
|
`;
|
|
9689
9689
|
}
|
|
9690
9690
|
const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i }) => {
|
|
9691
|
-
const { prefix: s } = an(), { align: o, speed: c, direction: a, pauseOnHover: u, gap: d, cardWidth:
|
|
9691
|
+
const { prefix: s } = an(), { align: o, speed: c, direction: a, pauseOnHover: u, gap: d, cardWidth: S, corners: v, stroke: h, strokeColor: p, bgColor: m, padding: b, logoMarginTop: $, logoWidth: x, logoHeight: f, captionMarginTop: F } = e, w = !!i, M = ((t == null ? void 0 : t.length) ?? 0) > 0, y = c > 0 && (!n || r), T = M && (y || n), O = Math.max(0, c) * bd, C = (E) => L(E, n ?? !1), P = Te(null), _ = Te(null), W = Te(null), [V, ee] = de(0), [k, R] = de(0), [D, N] = de(0), A = y && u === "on", [j, X] = de(!1), Q = Te(null), [I, te] = de(0), [g, J] = de(0), he = Te(null), le = (E) => {
|
|
9692
9692
|
var q, G, ae, ge, Ne;
|
|
9693
9693
|
return {
|
|
9694
9694
|
fontSettings: {
|
|
@@ -9759,7 +9759,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9759
9759
|
return G.observe(E), G.observe(z), () => {
|
|
9760
9760
|
G.disconnect();
|
|
9761
9761
|
};
|
|
9762
|
-
}, [T, B, t, n, d,
|
|
9762
|
+
}, [T, B, t, n, d, S, b, h, v, x, f, I, g]);
|
|
9763
9763
|
const K = () => {
|
|
9764
9764
|
A && X(!0);
|
|
9765
9765
|
}, U = () => {
|
|
@@ -9785,7 +9785,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9785
9785
|
return "left";
|
|
9786
9786
|
}
|
|
9787
9787
|
}, [o]), Pe = ft(
|
|
9788
|
-
(E, z, q, G) => /* @__PURE__ */
|
|
9788
|
+
(E, z, q, G) => /* @__PURE__ */ re(
|
|
9789
9789
|
"div",
|
|
9790
9790
|
{
|
|
9791
9791
|
style: {
|
|
@@ -9798,9 +9798,9 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9798
9798
|
/* @__PURE__ */ l(
|
|
9799
9799
|
"div",
|
|
9800
9800
|
{
|
|
9801
|
-
"data-controls":
|
|
9802
|
-
"data-controls-axis":
|
|
9803
|
-
className:
|
|
9801
|
+
"data-controls": w ? G == null ? void 0 : G.controlsName : void 0,
|
|
9802
|
+
"data-controls-axis": w ? "y" : void 0,
|
|
9803
|
+
className: w ? `${s}-control` : void 0,
|
|
9804
9804
|
style: { height: C((G == null ? void 0 : G.marginTop) ?? 0) }
|
|
9805
9805
|
}
|
|
9806
9806
|
),
|
|
@@ -9821,16 +9821,16 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9821
9821
|
},
|
|
9822
9822
|
q
|
|
9823
9823
|
),
|
|
9824
|
-
[se, ve, n,
|
|
9825
|
-
),
|
|
9824
|
+
[se, ve, n, w, s, C]
|
|
9825
|
+
), Se = ft(
|
|
9826
9826
|
(E, z, q) => {
|
|
9827
9827
|
var G, ae, ge;
|
|
9828
|
-
return /* @__PURE__ */
|
|
9828
|
+
return /* @__PURE__ */ re(
|
|
9829
9829
|
"div",
|
|
9830
9830
|
{
|
|
9831
9831
|
style: {
|
|
9832
9832
|
padding: `${C(b.top)} ${C(b.right)} ${C(b.bottom)} ${C(b.left)}`,
|
|
9833
|
-
width: C(
|
|
9833
|
+
width: C(S + h * 2),
|
|
9834
9834
|
height: "100%",
|
|
9835
9835
|
borderRadius: C(v),
|
|
9836
9836
|
border: `${C(h)} solid ${p}`,
|
|
@@ -9840,7 +9840,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9840
9840
|
},
|
|
9841
9841
|
children: [
|
|
9842
9842
|
/* @__PURE__ */ l("div", { className: `${s}-cover`, style: { background: m } }),
|
|
9843
|
-
/* @__PURE__ */
|
|
9843
|
+
/* @__PURE__ */ re(
|
|
9844
9844
|
"div",
|
|
9845
9845
|
{
|
|
9846
9846
|
className: `${s}-elements-overlay`,
|
|
@@ -9852,7 +9852,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9852
9852
|
"text",
|
|
9853
9853
|
q != null && q.dataMeasureAttrs ? { dataMeasureKind: "text" } : typeof (q == null ? void 0 : q.textMinHeightPx) == "number" && q.textMinHeightPx > 0 ? { minHeightPx: q.textMinHeightPx } : void 0
|
|
9854
9854
|
),
|
|
9855
|
-
/* @__PURE__ */
|
|
9855
|
+
/* @__PURE__ */ re(
|
|
9856
9856
|
"div",
|
|
9857
9857
|
{
|
|
9858
9858
|
style: {
|
|
@@ -9865,8 +9865,8 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9865
9865
|
/* @__PURE__ */ l(
|
|
9866
9866
|
"div",
|
|
9867
9867
|
{
|
|
9868
|
-
"data-controls":
|
|
9869
|
-
className:
|
|
9868
|
+
"data-controls": w && !(q != null && q.dataMeasureAttrs) ? "logoMarginTop" : void 0,
|
|
9869
|
+
className: w && !(q != null && q.dataMeasureAttrs) ? `${s}-control` : void 0,
|
|
9870
9870
|
style: { height: C($) }
|
|
9871
9871
|
}
|
|
9872
9872
|
),
|
|
@@ -9898,7 +9898,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9898
9898
|
m,
|
|
9899
9899
|
F,
|
|
9900
9900
|
ne,
|
|
9901
|
-
|
|
9901
|
+
S,
|
|
9902
9902
|
v,
|
|
9903
9903
|
f,
|
|
9904
9904
|
$,
|
|
@@ -9914,7 +9914,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9914
9914
|
p,
|
|
9915
9915
|
xe,
|
|
9916
9916
|
n,
|
|
9917
|
-
|
|
9917
|
+
w,
|
|
9918
9918
|
s
|
|
9919
9919
|
]
|
|
9920
9920
|
), Ee = ft((E) => {
|
|
@@ -9935,7 +9935,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9935
9935
|
return q.observe(E), () => {
|
|
9936
9936
|
q.disconnect();
|
|
9937
9937
|
};
|
|
9938
|
-
}, [ce, Ee, t,
|
|
9938
|
+
}, [ce, Ee, t, Se]);
|
|
9939
9939
|
const Ie = ce ? { textMinHeightPx: I, captionMinHeightPx: g } : void 0, H = ce ? /* @__PURE__ */ l(
|
|
9940
9940
|
"div",
|
|
9941
9941
|
{
|
|
@@ -9950,9 +9950,9 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9950
9950
|
pointerEvents: "none",
|
|
9951
9951
|
zIndex: -1
|
|
9952
9952
|
},
|
|
9953
|
-
children: (t ?? []).map((E, z) =>
|
|
9953
|
+
children: (t ?? []).map((E, z) => Se(E, `measure-${z}`, { dataMeasureAttrs: !0 }))
|
|
9954
9954
|
}
|
|
9955
|
-
) : null,
|
|
9955
|
+
) : null, oe = (E, z) => /* @__PURE__ */ re(
|
|
9956
9956
|
"div",
|
|
9957
9957
|
{
|
|
9958
9958
|
style: {
|
|
@@ -9965,8 +9965,8 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9965
9965
|
willChange: "transform"
|
|
9966
9966
|
},
|
|
9967
9967
|
children: [
|
|
9968
|
-
|
|
9969
|
-
|
|
9968
|
+
Se(E, `card-${z}`, Ie),
|
|
9969
|
+
w && /* @__PURE__ */ l(
|
|
9970
9970
|
"div",
|
|
9971
9971
|
{
|
|
9972
9972
|
"data-controls": "gap",
|
|
@@ -9988,7 +9988,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9988
9988
|
);
|
|
9989
9989
|
if (T) {
|
|
9990
9990
|
const E = y ? A && j ? "paused" : "running" : "paused";
|
|
9991
|
-
return /* @__PURE__ */
|
|
9991
|
+
return /* @__PURE__ */ re(
|
|
9992
9992
|
"div",
|
|
9993
9993
|
{
|
|
9994
9994
|
ref: P,
|
|
@@ -10037,7 +10037,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10037
10037
|
},
|
|
10038
10038
|
"aria-hidden": q > 0,
|
|
10039
10039
|
children: t == null ? void 0 : t.map(
|
|
10040
|
-
(G, ae) =>
|
|
10040
|
+
(G, ae) => oe(G, `${q}-${ae}`)
|
|
10041
10041
|
)
|
|
10042
10042
|
},
|
|
10043
10043
|
`set-${q}`
|
|
@@ -10048,7 +10048,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10048
10048
|
}
|
|
10049
10049
|
);
|
|
10050
10050
|
}
|
|
10051
|
-
return /* @__PURE__ */
|
|
10051
|
+
return /* @__PURE__ */ re("div", { className: `${s}-wrapper`, children: [
|
|
10052
10052
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: fi(s) } }),
|
|
10053
10053
|
H,
|
|
10054
10054
|
/* @__PURE__ */ l(
|
|
@@ -10063,7 +10063,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10063
10063
|
},
|
|
10064
10064
|
"aria-label": "Testimonials",
|
|
10065
10065
|
children: t == null ? void 0 : t.map(
|
|
10066
|
-
(E, z) =>
|
|
10066
|
+
(E, z) => oe(E, z)
|
|
10067
10067
|
)
|
|
10068
10068
|
}
|
|
10069
10069
|
)
|
|
@@ -11140,7 +11140,7 @@ type TestimonialsSettings = {
|
|
|
11140
11140
|
}
|
|
11141
11141
|
]
|
|
11142
11142
|
}
|
|
11143
|
-
},
|
|
11143
|
+
}, Sd = {
|
|
11144
11144
|
element: xd,
|
|
11145
11145
|
id: "testimonials",
|
|
11146
11146
|
name: "Eliana",
|
|
@@ -11167,7 +11167,7 @@ type TestimonialsSettings = {
|
|
|
11167
11167
|
parameters: [{ path: "styles.text.fontSettings" }, { path: "styles.caption.fontSettings" }]
|
|
11168
11168
|
}
|
|
11169
11169
|
};
|
|
11170
|
-
function
|
|
11170
|
+
function wd(e) {
|
|
11171
11171
|
return `
|
|
11172
11172
|
.${e}-container {
|
|
11173
11173
|
position: relative;
|
|
@@ -11295,7 +11295,7 @@ function Sd(e) {
|
|
|
11295
11295
|
`;
|
|
11296
11296
|
}
|
|
11297
11297
|
const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i }) => {
|
|
11298
|
-
const { prefix: s } = an(), o = t || [], { speed: c, align: a, width: u, imageMarginTop: d, textMarginTop:
|
|
11298
|
+
const { prefix: s } = an(), o = t || [], { speed: c, align: a, width: u, imageMarginTop: d, textMarginTop: S, captionMarginTop: v, imageWidth: h, imageHeight: p, controlsWidth: m, controlsColor: b, controlsHoverColor: $ } = e, x = c > 0 && (!n || !!r), [f, F] = de(0), [w, M] = de(null), [y, T] = de(!1), O = Te(null), C = He(() => {
|
|
11299
11299
|
switch (a) {
|
|
11300
11300
|
case "center":
|
|
11301
11301
|
return "center";
|
|
@@ -11319,7 +11319,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11319
11319
|
Ae(() => {
|
|
11320
11320
|
F(0), M(null), T(!1);
|
|
11321
11321
|
}, [o.length]);
|
|
11322
|
-
const _ = o[f], W =
|
|
11322
|
+
const _ = o[f], W = w === null ? null : o[w], V = (ne) => {
|
|
11323
11323
|
var B, K, U, se, ve;
|
|
11324
11324
|
return {
|
|
11325
11325
|
fontSettings: {
|
|
@@ -11360,16 +11360,16 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11360
11360
|
O.current && window.clearTimeout(O.current);
|
|
11361
11361
|
}, []);
|
|
11362
11362
|
const he = (ne, ce) => {
|
|
11363
|
-
var ve, Pe,
|
|
11363
|
+
var ve, Pe, Se, Ee;
|
|
11364
11364
|
const B = ce == null ? void 0 : ce.textMinHeightPx, K = ce == null ? void 0 : ce.captionMinHeightPx, U = ce == null ? void 0 : ce.dataMeasureAttrs, se = i && !(ce != null && ce.dataMeasureAttrs) && !(ce != null && ce.hideControls);
|
|
11365
|
-
return /* @__PURE__ */
|
|
11366
|
-
ne.text && /* @__PURE__ */
|
|
11365
|
+
return /* @__PURE__ */ re(Ge, { children: [
|
|
11366
|
+
ne.text && /* @__PURE__ */ re("div", { style: { display: "flex", flexDirection: "column", alignItems: C, width: "100%" }, children: [
|
|
11367
11367
|
/* @__PURE__ */ l(
|
|
11368
11368
|
"div",
|
|
11369
11369
|
{
|
|
11370
11370
|
"data-controls": se ? "textMarginTop" : void 0,
|
|
11371
11371
|
className: se ? `${s}-control` : void 0,
|
|
11372
|
-
style: { height: L(
|
|
11372
|
+
style: { height: L(S ?? 0, n ?? !1) }
|
|
11373
11373
|
}
|
|
11374
11374
|
),
|
|
11375
11375
|
/* @__PURE__ */ l(
|
|
@@ -11386,7 +11386,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11386
11386
|
}
|
|
11387
11387
|
)
|
|
11388
11388
|
] }),
|
|
11389
|
-
/* @__PURE__ */
|
|
11389
|
+
/* @__PURE__ */ re("div", { style: { display: "flex", flexDirection: "column", alignItems: C, width: "100%" }, children: [
|
|
11390
11390
|
/* @__PURE__ */ l(
|
|
11391
11391
|
"div",
|
|
11392
11392
|
{
|
|
@@ -11399,13 +11399,13 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11399
11399
|
"img",
|
|
11400
11400
|
{
|
|
11401
11401
|
src: (Pe = ne.image) == null ? void 0 : Pe.url,
|
|
11402
|
-
alt: ((
|
|
11402
|
+
alt: ((Se = ne.image) == null ? void 0 : Se.name) ?? "",
|
|
11403
11403
|
className: `${s}-icon`,
|
|
11404
11404
|
style: { objectFit: ((Ee = ne.image) == null ? void 0 : Ee.objectFit) || "contain" }
|
|
11405
11405
|
}
|
|
11406
11406
|
) })
|
|
11407
11407
|
] }),
|
|
11408
|
-
ne.caption && /* @__PURE__ */
|
|
11408
|
+
ne.caption && /* @__PURE__ */ re("div", { style: { display: "flex", flexDirection: "column", alignItems: C, width: "100%" }, children: [
|
|
11409
11409
|
/* @__PURE__ */ l(
|
|
11410
11410
|
"div",
|
|
11411
11411
|
{
|
|
@@ -11449,9 +11449,9 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11449
11449
|
};
|
|
11450
11450
|
}, [R, le, t]), !_) return /* @__PURE__ */ l(Ge, {});
|
|
11451
11451
|
const xe = R ? { textMinHeightPx: N, captionMinHeightPx: j } : void 0;
|
|
11452
|
-
return /* @__PURE__ */ l(Ge, { children: /* @__PURE__ */
|
|
11453
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
11454
|
-
/* @__PURE__ */
|
|
11452
|
+
return /* @__PURE__ */ l(Ge, { children: /* @__PURE__ */ re("div", { className: `${s}-container`, children: [
|
|
11453
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: wd(s) } }),
|
|
11454
|
+
/* @__PURE__ */ re(
|
|
11455
11455
|
"div",
|
|
11456
11456
|
{
|
|
11457
11457
|
className: `${s}-wrapper`,
|
|
@@ -11475,14 +11475,14 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11475
11475
|
children: o.map((ne, ce) => /* @__PURE__ */ l("div", { style: { width: "100%" }, children: he(ne, { dataMeasureAttrs: !0 }) }, ce))
|
|
11476
11476
|
}
|
|
11477
11477
|
),
|
|
11478
|
-
/* @__PURE__ */
|
|
11478
|
+
/* @__PURE__ */ re("div", { className: `${s}-fade-stack`, children: [
|
|
11479
11479
|
W && y && /* @__PURE__ */ l("div", { className: Fe(`${s}-fade-item-prev`, `${s}-fade-out`), children: he(W, { ...xe, hideControls: !0 }) }),
|
|
11480
11480
|
/* @__PURE__ */ l("div", { className: Fe(`${s}-fade-item-current`, y ? `${s}-fade-in` : void 0), children: he(_, xe) })
|
|
11481
11481
|
] })
|
|
11482
11482
|
]
|
|
11483
11483
|
}
|
|
11484
11484
|
),
|
|
11485
|
-
Q.mode === "On" && /* @__PURE__ */
|
|
11485
|
+
Q.mode === "On" && /* @__PURE__ */ re("div", { className: `${s}-controls`, children: [
|
|
11486
11486
|
/* @__PURE__ */ l(
|
|
11487
11487
|
"div",
|
|
11488
11488
|
{
|
|
@@ -12752,8 +12752,8 @@ function Ci({
|
|
|
12752
12752
|
);
|
|
12753
12753
|
}
|
|
12754
12754
|
function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose: i, onClose: s, onPrev: o, onNext: c, counterClassName: a, counterStyle: u }) {
|
|
12755
|
-
const d = n === "cover",
|
|
12756
|
-
const C =
|
|
12755
|
+
const d = n === "cover", S = Te(null), v = Te(null), [h, p] = de(null), [m, b] = de(r ? "opening" : "open"), [$, x] = de(!0), f = Te(t), F = ft(() => {
|
|
12756
|
+
const C = S.current, P = v.current;
|
|
12757
12757
|
if (!C || !P) return;
|
|
12758
12758
|
const _ = C.getBoundingClientRect(), W = _.width, V = _.height, ee = P.naturalWidth, k = P.naturalHeight;
|
|
12759
12759
|
if (!W || !V || !ee || !k) return;
|
|
@@ -12772,7 +12772,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12772
12772
|
}, [n]);
|
|
12773
12773
|
Ae(() => {
|
|
12774
12774
|
F();
|
|
12775
|
-
const C =
|
|
12775
|
+
const C = S.current;
|
|
12776
12776
|
if (!C) return;
|
|
12777
12777
|
const P = new ResizeObserver(() => F());
|
|
12778
12778
|
return P.observe(C), () => P.disconnect();
|
|
@@ -12790,10 +12790,10 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12790
12790
|
};
|
|
12791
12791
|
return window.addEventListener("keydown", C, !0), () => window.removeEventListener("keydown", C, !0);
|
|
12792
12792
|
}, [m]);
|
|
12793
|
-
const
|
|
12793
|
+
const w = () => {
|
|
12794
12794
|
m !== "closing" && b("closing");
|
|
12795
12795
|
}, M = m === "open", y = m === "closing", T = y && i && !!r, O = m === "opening" ? r ?? h : T ? r : h;
|
|
12796
|
-
return /* @__PURE__ */
|
|
12796
|
+
return /* @__PURE__ */ re(
|
|
12797
12797
|
"div",
|
|
12798
12798
|
{
|
|
12799
12799
|
style: {
|
|
@@ -12804,7 +12804,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12804
12804
|
height: "100vh",
|
|
12805
12805
|
zIndex: 9997
|
|
12806
12806
|
},
|
|
12807
|
-
onClick:
|
|
12807
|
+
onClick: w,
|
|
12808
12808
|
children: [
|
|
12809
12809
|
/* @__PURE__ */ l(
|
|
12810
12810
|
"div",
|
|
@@ -12831,8 +12831,8 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12831
12831
|
alignItems: "center",
|
|
12832
12832
|
justifyContent: "center"
|
|
12833
12833
|
},
|
|
12834
|
-
children: d ? /* @__PURE__ */
|
|
12835
|
-
/* @__PURE__ */ l("div", { ref:
|
|
12834
|
+
children: d ? /* @__PURE__ */ re(Ge, { children: [
|
|
12835
|
+
/* @__PURE__ */ l("div", { ref: S, style: { position: "absolute", inset: 0 } }),
|
|
12836
12836
|
/* @__PURE__ */ l(
|
|
12837
12837
|
"div",
|
|
12838
12838
|
{
|
|
@@ -12851,14 +12851,14 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12851
12851
|
pointerEvents: "none",
|
|
12852
12852
|
zIndex: 9999
|
|
12853
12853
|
},
|
|
12854
|
-
children: e.length > 1 && /* @__PURE__ */
|
|
12854
|
+
children: e.length > 1 && /* @__PURE__ */ re("p", { className: a, style: u, children: [
|
|
12855
12855
|
t + 1,
|
|
12856
12856
|
" / ",
|
|
12857
12857
|
e.length
|
|
12858
12858
|
] })
|
|
12859
12859
|
}
|
|
12860
12860
|
)
|
|
12861
|
-
] }) : /* @__PURE__ */
|
|
12861
|
+
] }) : /* @__PURE__ */ re(Ge, { children: [
|
|
12862
12862
|
/* @__PURE__ */ l("div", { style: { height: "10%" } }),
|
|
12863
12863
|
/* @__PURE__ */ l(
|
|
12864
12864
|
"div",
|
|
@@ -12870,7 +12870,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12870
12870
|
justifyContent: "center",
|
|
12871
12871
|
alignItems: "center"
|
|
12872
12872
|
},
|
|
12873
|
-
children: /* @__PURE__ */ l("div", { ref:
|
|
12873
|
+
children: /* @__PURE__ */ l("div", { ref: S, style: { width: "100%", height: "100%" } })
|
|
12874
12874
|
}
|
|
12875
12875
|
),
|
|
12876
12876
|
/* @__PURE__ */ l(
|
|
@@ -12885,7 +12885,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12885
12885
|
opacity: M ? 1 : 0,
|
|
12886
12886
|
transition: `opacity ${Ht}ms ${Yt}`
|
|
12887
12887
|
},
|
|
12888
|
-
children: e.length > 1 && /* @__PURE__ */
|
|
12888
|
+
children: e.length > 1 && /* @__PURE__ */ re("p", { className: a, style: u, children: [
|
|
12889
12889
|
t + 1,
|
|
12890
12890
|
" / ",
|
|
12891
12891
|
e.length
|
|
@@ -12915,7 +12915,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12915
12915
|
}
|
|
12916
12916
|
}
|
|
12917
12917
|
),
|
|
12918
|
-
M && h && /* @__PURE__ */
|
|
12918
|
+
M && h && /* @__PURE__ */ re(Ge, { children: [
|
|
12919
12919
|
/* @__PURE__ */ l(
|
|
12920
12920
|
"div",
|
|
12921
12921
|
{
|
|
@@ -12962,7 +12962,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
12962
12962
|
const { prefix: a } = an(), {
|
|
12963
12963
|
type: u = "a",
|
|
12964
12964
|
gridLayout: d,
|
|
12965
|
-
textBoxWidth:
|
|
12965
|
+
textBoxWidth: S = 100,
|
|
12966
12966
|
verticalGap: v,
|
|
12967
12967
|
entriesCount: h,
|
|
12968
12968
|
lightbox: p,
|
|
@@ -12972,7 +12972,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
12972
12972
|
sliderTiming: x,
|
|
12973
12973
|
direction: f,
|
|
12974
12974
|
transition: F,
|
|
12975
|
-
titleMarginTop:
|
|
12975
|
+
titleMarginTop: w,
|
|
12976
12976
|
subtitleMarginTop: M,
|
|
12977
12977
|
titleColor: y,
|
|
12978
12978
|
subtitleColor: T,
|
|
@@ -13013,7 +13013,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13013
13013
|
textAppearance: k,
|
|
13014
13014
|
color: y
|
|
13015
13015
|
}, U = {
|
|
13016
|
-
...
|
|
13016
|
+
...wt(rt(B, n))
|
|
13017
13017
|
}, se = {
|
|
13018
13018
|
fontSettings: {
|
|
13019
13019
|
fontFamily: R,
|
|
@@ -13027,8 +13027,8 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13027
13027
|
textAppearance: Q,
|
|
13028
13028
|
color: T
|
|
13029
13029
|
}, Pe = {
|
|
13030
|
-
...
|
|
13031
|
-
},
|
|
13030
|
+
...wt(rt(se, n))
|
|
13031
|
+
}, Se = {
|
|
13032
13032
|
fontSettings: {
|
|
13033
13033
|
fontFamily: I,
|
|
13034
13034
|
fontWeight: (te == null ? void 0 : te.fontWeight) ?? 400,
|
|
@@ -13041,14 +13041,14 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13041
13041
|
textAppearance: xe,
|
|
13042
13042
|
color: O
|
|
13043
13043
|
}, Ie = {
|
|
13044
|
-
...
|
|
13044
|
+
...wt(rt(Se, n)),
|
|
13045
13045
|
...ro(g, J, a, n)
|
|
13046
13046
|
}, H = no(
|
|
13047
13047
|
_,
|
|
13048
13048
|
W,
|
|
13049
13049
|
`${a}-item-title`,
|
|
13050
13050
|
`${a}-text-tight-leading`
|
|
13051
|
-
),
|
|
13051
|
+
), oe = no(
|
|
13052
13052
|
N,
|
|
13053
13053
|
A,
|
|
13054
13054
|
`${a}-item-subtitle`,
|
|
@@ -13065,7 +13065,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13065
13065
|
}, Nd, Hd), Ne = `${o && o !== "default" ? `${a}-state-${o}` : ""}${ne === "on hover" && (!n || r) ? ` ${a}-show-text-hover` : ""}`.trim(), fe = h === 0 ? 1 / 0 : h, be = (t ?? []).slice(0, fe), Oe = d.entryWidth ?? 0.2, ie = (m == null ? void 0 : m.display) === "cover", Ce = (m == null ? void 0 : m.ratioValue) ?? "1:1", We = (m == null ? void 0 : m.reversed) ?? !1, [Me, je] = Ce.split(":").map(Number), bt = `${We ? je : Me} / ${We ? Me : je}`, Pt = L(Oe ?? 0, n), Ft = !ie && $ !== "off", xt = {
|
|
13066
13066
|
width: Pt,
|
|
13067
13067
|
...ie ? { aspectRatio: bt, height: "auto", overflow: "hidden" } : { height: "auto" }
|
|
13068
|
-
}, Mt = `${a}-item-image-wrapper${Ft ? ` ${a}-item-image-wrapper-fit-slider` : ""}`.trim(), me = u === "c", ze = me && ce === "on", Ve = `calc(${L(Oe ?? 0, n)} * (${
|
|
13068
|
+
}, Mt = `${a}-item-image-wrapper${Ft ? ` ${a}-item-image-wrapper-fit-slider` : ""}`.trim(), me = u === "c", ze = me && ce === "on", Ve = `calc(${L(Oe ?? 0, n)} * (${S} / 100))`, Ze = L(Oe * S / 100, n), Et = ie ? {
|
|
13069
13069
|
objectFit: "cover",
|
|
13070
13070
|
pointerEvents: "auto",
|
|
13071
13071
|
width: "100%",
|
|
@@ -13077,9 +13077,9 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13077
13077
|
width: "auto",
|
|
13078
13078
|
height: "auto",
|
|
13079
13079
|
maxWidth: "100%"
|
|
13080
|
-
}, [Gt, Ct] = de("ltr"), [Nt, On] = de(0),
|
|
13080
|
+
}, [Gt, Ct] = de("ltr"), [Nt, On] = de(0), we = Te(null);
|
|
13081
13081
|
Ae(() => {
|
|
13082
|
-
const Re =
|
|
13082
|
+
const Re = we.current;
|
|
13083
13083
|
if (!Re) return;
|
|
13084
13084
|
const ut = new ResizeObserver((pt) => {
|
|
13085
13085
|
On(Math.round(pt[0].contentRect.width));
|
|
@@ -13087,7 +13087,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13087
13087
|
return ut.observe(Re), () => ut.disconnect();
|
|
13088
13088
|
}, []);
|
|
13089
13089
|
const nt = (() => {
|
|
13090
|
-
const Re = { ...G }, ut =
|
|
13090
|
+
const Re = { ...G }, ut = we.current ? getComputedStyle(we.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
13091
13091
|
return ut && (Re["--cntrl-article-width"] = ut), Re;
|
|
13092
13092
|
})(), [Qe, Ke] = de(!1), [dt, lr] = de([]), [Kr, yn] = de(0), [Ur, cr] = de(null), dr = (Re, ut, pt) => {
|
|
13093
13093
|
if (n && !r || p === "off") return;
|
|
@@ -13104,12 +13104,12 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13104
13104
|
!n || r || (Ke(!1), cr(null));
|
|
13105
13105
|
}, [n, r]);
|
|
13106
13106
|
const Gr = He(() => kd(a), [a]);
|
|
13107
|
-
return /* @__PURE__ */
|
|
13107
|
+
return /* @__PURE__ */ re(Ge, { children: [
|
|
13108
13108
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Gr } }),
|
|
13109
13109
|
/* @__PURE__ */ l("div", { style: G, children: /* @__PURE__ */ l(
|
|
13110
13110
|
"div",
|
|
13111
13111
|
{
|
|
13112
|
-
ref:
|
|
13112
|
+
ref: we,
|
|
13113
13113
|
className: `${a}-wrapper ${a}-type-${u}${ze ? ` ${a}-align-entries` : ""} ${Ne}`.trim(),
|
|
13114
13114
|
style: {
|
|
13115
13115
|
gridTemplateColumns: `repeat(${d.columnsCount}, minmax(0, 1fr))`,
|
|
@@ -13120,7 +13120,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13120
13120
|
},
|
|
13121
13121
|
children: be.map((Re, ut) => {
|
|
13122
13122
|
var et, ht;
|
|
13123
|
-
const pt = xi(Re.title), Y = xi(Re.subtitle), pe = (((et = Re.link) == null ? void 0 : et.length) ?? 0) > 0 && p === "off" ? Re.link : void 0, ye = Math.floor(ut / d.columnsCount) === Math.ceil(be.length / d.columnsCount) - 1, Le = me ? /* @__PURE__ */
|
|
13123
|
+
const pt = xi(Re.title), Y = xi(Re.subtitle), pe = (((et = Re.link) == null ? void 0 : et.length) ?? 0) > 0 && p === "off" ? Re.link : void 0, ye = Math.floor(ut / d.columnsCount) === Math.ceil(be.length / d.columnsCount) - 1, Le = me ? /* @__PURE__ */ re("div", { className: `${a}-item-text-block`, children: [
|
|
13124
13124
|
pt && /* @__PURE__ */ l("p", { className: H, style: { width: Ve, ...U, ...E }, children: Re.title }),
|
|
13125
13125
|
pt && /* @__PURE__ */ l(
|
|
13126
13126
|
"div",
|
|
@@ -13128,12 +13128,12 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13128
13128
|
"data-controls": i ? "titleMarginTop" : void 0,
|
|
13129
13129
|
className: i ? `${a}-control` : void 0,
|
|
13130
13130
|
style: {
|
|
13131
|
-
height: L(
|
|
13131
|
+
height: L(w ?? 0, n),
|
|
13132
13132
|
width: Ze
|
|
13133
13133
|
}
|
|
13134
13134
|
}
|
|
13135
13135
|
),
|
|
13136
|
-
Y && /* @__PURE__ */ l("p", { className:
|
|
13136
|
+
Y && /* @__PURE__ */ l("p", { className: oe, style: { width: Ve, ...Pe, ...z }, children: Re.subtitle }),
|
|
13137
13137
|
Y && /* @__PURE__ */ l(
|
|
13138
13138
|
"div",
|
|
13139
13139
|
{
|
|
@@ -13145,7 +13145,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13145
13145
|
}
|
|
13146
13146
|
}
|
|
13147
13147
|
)
|
|
13148
|
-
] }) : null, Ye = me ? /* @__PURE__ */
|
|
13148
|
+
] }) : null, Ye = me ? /* @__PURE__ */ re("div", { className: `${a}-item-title-row`, children: [
|
|
13149
13149
|
pt && /* @__PURE__ */ l("p", { className: H, style: { width: Ve, ...U, ...E }, children: Re.title }),
|
|
13150
13150
|
pt && /* @__PURE__ */ l(
|
|
13151
13151
|
"div",
|
|
@@ -13153,13 +13153,13 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13153
13153
|
"data-controls": i ? "titleMarginTop" : void 0,
|
|
13154
13154
|
className: i ? `${a}-control` : void 0,
|
|
13155
13155
|
style: {
|
|
13156
|
-
height: L(
|
|
13156
|
+
height: L(w ?? 0, n),
|
|
13157
13157
|
width: Ze
|
|
13158
13158
|
}
|
|
13159
13159
|
}
|
|
13160
13160
|
)
|
|
13161
|
-
] }) : null, Je = me ? /* @__PURE__ */
|
|
13162
|
-
Y && /* @__PURE__ */ l("p", { className:
|
|
13161
|
+
] }) : null, Je = me ? /* @__PURE__ */ re("div", { className: `${a}-item-subtitle-row`, children: [
|
|
13162
|
+
Y && /* @__PURE__ */ l("p", { className: oe, style: { width: Ve, ...Pe, ...z }, children: Re.subtitle }),
|
|
13163
13163
|
Y && /* @__PURE__ */ l(
|
|
13164
13164
|
"div",
|
|
13165
13165
|
{
|
|
@@ -13171,10 +13171,10 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13171
13171
|
}
|
|
13172
13172
|
}
|
|
13173
13173
|
)
|
|
13174
|
-
] }) : null, _e = pe ? /* @__PURE__ */
|
|
13174
|
+
] }) : null, _e = pe ? /* @__PURE__ */ re("a", { href: pe, target: "_blank", className: `${a}-item-text-link`, children: [
|
|
13175
13175
|
Ye,
|
|
13176
13176
|
Je
|
|
13177
|
-
] }) : /* @__PURE__ */
|
|
13177
|
+
] }) : /* @__PURE__ */ re(Ge, { children: [
|
|
13178
13178
|
Ye,
|
|
13179
13179
|
Je
|
|
13180
13180
|
] }), mt = /* @__PURE__ */ l("div", { className: Mt, style: xt, children: (((ht = Re.image) == null ? void 0 : ht.length) ?? 0) === 0 ? null : $ === "off" ? (() => {
|
|
@@ -13188,7 +13188,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13188
13188
|
onImageClick: Jt(Be) ? void 0 : (ot) => dr(ot, lt, 0)
|
|
13189
13189
|
}
|
|
13190
13190
|
);
|
|
13191
|
-
})() : /* @__PURE__ */
|
|
13191
|
+
})() : /* @__PURE__ */ re(Ge, { children: [
|
|
13192
13192
|
Ft && /* @__PURE__ */ l("div", { className: `${a}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Re.image.map((Be) => Jt(Be) ? /* @__PURE__ */ l("video", { src: Be.url, muted: !0, playsInline: !0 }, `sizer-${Be.url}`) : /* @__PURE__ */ l("img", { src: Be.url, alt: "" }, `sizer-${Be.url}`)) }),
|
|
13193
13193
|
/* @__PURE__ */ l(
|
|
13194
13194
|
Oo,
|
|
@@ -13232,14 +13232,14 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13232
13232
|
},
|
|
13233
13233
|
`${F}-${Oe}-${f}-${x}-${Nt}-${c}`
|
|
13234
13234
|
)
|
|
13235
|
-
] }) }), gt = me ? null : /* @__PURE__ */
|
|
13235
|
+
] }) }), gt = me ? null : /* @__PURE__ */ re(Ge, { children: [
|
|
13236
13236
|
/* @__PURE__ */ l(
|
|
13237
13237
|
"div",
|
|
13238
13238
|
{
|
|
13239
13239
|
"data-controls": i && pt ? "titleMarginTop" : void 0,
|
|
13240
13240
|
className: i && pt ? `${a}-control` : void 0,
|
|
13241
13241
|
style: {
|
|
13242
|
-
height: pt ? L(
|
|
13242
|
+
height: pt ? L(w ?? 0, n) : 0,
|
|
13243
13243
|
width: Ze
|
|
13244
13244
|
}
|
|
13245
13245
|
}
|
|
@@ -13266,7 +13266,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13266
13266
|
/* @__PURE__ */ l(
|
|
13267
13267
|
"p",
|
|
13268
13268
|
{
|
|
13269
|
-
className:
|
|
13269
|
+
className: oe,
|
|
13270
13270
|
style: { width: Ve, ...Pe, ...z },
|
|
13271
13271
|
children: Re.subtitle
|
|
13272
13272
|
}
|
|
@@ -13280,11 +13280,11 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13280
13280
|
"div",
|
|
13281
13281
|
{
|
|
13282
13282
|
className: `${i ? `${a}-item-inner` : `${a}-item-inner-hidden`}${ze && ye ? ` ${a}-item-inner-last-row` : ""}`.trim(),
|
|
13283
|
-
style: { width: (
|
|
13284
|
-
children: ze ? /* @__PURE__ */
|
|
13283
|
+
style: { width: (S ?? 0) > 100 ? `calc(${L(Oe ?? 0, n)} * (${S} / 100))` : L(Oe ?? 0, n) },
|
|
13284
|
+
children: ze ? /* @__PURE__ */ re(Ge, { children: [
|
|
13285
13285
|
_e,
|
|
13286
13286
|
/* @__PURE__ */ l("a", { href: pe, target: "_blank", className: `${a}-item-image-link`, children: mt })
|
|
13287
|
-
] }) : /* @__PURE__ */
|
|
13287
|
+
] }) : /* @__PURE__ */ re("a", { href: pe, target: "_blank", className: `${a}-item-image-link`, children: [
|
|
13288
13288
|
Le,
|
|
13289
13289
|
mt,
|
|
13290
13290
|
gt
|
|
@@ -15244,7 +15244,7 @@ function qd({
|
|
|
15244
15244
|
}
|
|
15245
15245
|
);
|
|
15246
15246
|
}
|
|
15247
|
-
function
|
|
15247
|
+
function Sr(e) {
|
|
15248
15248
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
15249
15249
|
}
|
|
15250
15250
|
function jd(e) {
|
|
@@ -15254,11 +15254,11 @@ function $i(e, t) {
|
|
|
15254
15254
|
const n = e.currentTarget, r = n.getBoundingClientRect(), i = e.clientY - r.top > r.height / 2;
|
|
15255
15255
|
n.classList.toggle(`${t}-reveal-from-bottom`, i);
|
|
15256
15256
|
}
|
|
15257
|
-
function
|
|
15257
|
+
function Si(e, t) {
|
|
15258
15258
|
const n = e.currentTarget, r = n.getBoundingClientRect(), i = e.clientY < r.top + r.height / 2;
|
|
15259
15259
|
n.classList.toggle(`${t}-reveal-from-bottom`, i);
|
|
15260
15260
|
}
|
|
15261
|
-
function
|
|
15261
|
+
function wi(e, t, n, r, i, s, o) {
|
|
15262
15262
|
const c = L(s, o), a = L(0, o), u = e === 0, d = e === t - 1 && !i;
|
|
15263
15263
|
return { borderTopWidth: u && n ? c : a, borderBottomWidth: !d || r ? c : a };
|
|
15264
15264
|
}
|
|
@@ -15275,7 +15275,7 @@ function Ud(e) {
|
|
|
15275
15275
|
.${e}-wrapper {
|
|
15276
15276
|
display: grid;
|
|
15277
15277
|
align-items: start;
|
|
15278
|
-
min-height: ${
|
|
15278
|
+
min-height: ${Sr(48)};
|
|
15279
15279
|
position: relative;
|
|
15280
15280
|
overflow: visible;
|
|
15281
15281
|
box-sizing: border-box;
|
|
@@ -15397,7 +15397,7 @@ a.${e}-list-item {
|
|
|
15397
15397
|
flex-shrink: 0;
|
|
15398
15398
|
overflow: visible;
|
|
15399
15399
|
box-sizing: border-box;
|
|
15400
|
-
min-width: ${
|
|
15400
|
+
min-width: ${Sr(50)};
|
|
15401
15401
|
position: relative;
|
|
15402
15402
|
display: flex;
|
|
15403
15403
|
align-items: flex-start;
|
|
@@ -15405,7 +15405,7 @@ a.${e}-list-item {
|
|
|
15405
15405
|
|
|
15406
15406
|
.${e}-list-col-last {
|
|
15407
15407
|
flex: 1 1 auto;
|
|
15408
|
-
min-width: ${
|
|
15408
|
+
min-width: ${Sr(50)};
|
|
15409
15409
|
}
|
|
15410
15410
|
|
|
15411
15411
|
.${e}-list-col-title {
|
|
@@ -15908,7 +15908,7 @@ function Pi(e, t) {
|
|
|
15908
15908
|
textAppearance: e.textTextAppearance,
|
|
15909
15909
|
color: e.textColor ?? "#767676"
|
|
15910
15910
|
};
|
|
15911
|
-
return
|
|
15911
|
+
return wt(rt(n, t));
|
|
15912
15912
|
}
|
|
15913
15913
|
function Ei(e, t, n, r) {
|
|
15914
15914
|
const i = kr(e, t), s = i.textFontSize ?? 0.01, o = i.textLineHeight;
|
|
@@ -15951,7 +15951,7 @@ const Tt = [
|
|
|
15951
15951
|
textHoverColor: "text-hover-color",
|
|
15952
15952
|
backgroundHoverColor: "background-hover-color",
|
|
15953
15953
|
dividerHoverColor: "divider-hover-color"
|
|
15954
|
-
}, du = ["hover", "focus", "filled", "success", "error"], Ai = 4e-3,
|
|
15954
|
+
}, du = ["hover", "focus", "filled", "success", "error"], Ai = 4e-3, wn = 4e-3, ao = wn, Ii = 12, qo = 50, Qn = 1440, Zn = qo / Qn;
|
|
15955
15955
|
function Aa(e) {
|
|
15956
15956
|
const t = typeof e == "number" && e > 0 ? e : Qn;
|
|
15957
15957
|
return qo / t;
|
|
@@ -16055,7 +16055,7 @@ function ka(e, t, n) {
|
|
|
16055
16055
|
paddingRight: n * s
|
|
16056
16056
|
};
|
|
16057
16057
|
}
|
|
16058
|
-
function
|
|
16058
|
+
function wr(e, t, n) {
|
|
16059
16059
|
const r = jo(e, t, n);
|
|
16060
16060
|
if (e <= 0)
|
|
16061
16061
|
return [];
|
|
@@ -16094,8 +16094,8 @@ function jo(e, t, n) {
|
|
|
16094
16094
|
const d = c[u] - Zn;
|
|
16095
16095
|
if (d <= 0)
|
|
16096
16096
|
continue;
|
|
16097
|
-
const
|
|
16098
|
-
c[u] -=
|
|
16097
|
+
const S = Math.min(a, d);
|
|
16098
|
+
c[u] -= S, a -= S;
|
|
16099
16099
|
}
|
|
16100
16100
|
return [...c, r[e - 1]];
|
|
16101
16101
|
}
|
|
@@ -16121,7 +16121,7 @@ function bu(e, t, n, r) {
|
|
|
16121
16121
|
const c = e[o], a = t.indexOf(c);
|
|
16122
16122
|
if (a === -1)
|
|
16123
16123
|
continue;
|
|
16124
|
-
const u = Tt[a], d = kn[a],
|
|
16124
|
+
const u = Tt[a], d = kn[a], S = Wn[a], v = Rn[a], h = Tt[o], p = kn[o], m = Wn[o], b = Rn[o], $ = n[u], x = n[d], f = n[S], F = n[v];
|
|
16125
16125
|
typeof $ == "number" && (s[h] = $), typeof x == "number" && (s[p] = x), typeof f == "number" && (s[m] = f), typeof F == "number" && (s[b] = F);
|
|
16126
16126
|
}
|
|
16127
16127
|
return s;
|
|
@@ -16155,10 +16155,10 @@ function xu(e, t) {
|
|
|
16155
16155
|
function Cu(e, t, n) {
|
|
16156
16156
|
const r = Zd(e);
|
|
16157
16157
|
r && (e = { ...e, ...r });
|
|
16158
|
-
const i = Aa(n == null ? void 0 : n.designWidth), s = e.columns, o = t.columns, c = zn(e), a = zn(t), u = e.type === "b" || e.type === void 0 && t.type === "b", d = typeof s == "number" ? s : typeof o == "number" ? o : on.length,
|
|
16158
|
+
const i = Aa(n == null ? void 0 : n.designWidth), s = e.columns, o = t.columns, c = zn(e), a = zn(t), u = e.type === "b" || e.type === void 0 && t.type === "b", d = typeof s == "number" ? s : typeof o == "number" ? o : on.length, S = (f) => {
|
|
16159
16159
|
if (u)
|
|
16160
16160
|
return f;
|
|
16161
|
-
const F = yr({ ...t, ...f }),
|
|
16161
|
+
const F = yr({ ...t, ...f }), w = zn(f), M = wr(d, w, F), y = fu(d, M, {
|
|
16162
16162
|
...t,
|
|
16163
16163
|
...f
|
|
16164
16164
|
});
|
|
@@ -16171,13 +16171,13 @@ function Cu(e, t, n) {
|
|
|
16171
16171
|
return e;
|
|
16172
16172
|
const v = ki(e), h = ki(t);
|
|
16173
16173
|
if (!vu(v, h))
|
|
16174
|
-
return
|
|
16174
|
+
return S({
|
|
16175
16175
|
...e,
|
|
16176
16176
|
...bu(v, h, t, d)
|
|
16177
16177
|
});
|
|
16178
16178
|
if (c < a && typeof d == "number" && !u) {
|
|
16179
16179
|
const f = yr({ ...t, ...e });
|
|
16180
|
-
return
|
|
16180
|
+
return S({
|
|
16181
16181
|
...e,
|
|
16182
16182
|
...yu(d, c, f)
|
|
16183
16183
|
});
|
|
@@ -16186,21 +16186,21 @@ function Cu(e, t, n) {
|
|
|
16186
16186
|
const f = typeof e.textPaddingLR == "number" ? e.textPaddingLR : 0, F = Math.max(0, (c - i) / 2);
|
|
16187
16187
|
return f > F ? { ...e, textPaddingLR: F } : e;
|
|
16188
16188
|
}
|
|
16189
|
-
const p = yr({ ...t, ...e }), m =
|
|
16189
|
+
const p = yr({ ...t, ...e }), m = wr(
|
|
16190
16190
|
d,
|
|
16191
16191
|
a,
|
|
16192
16192
|
yr(t)
|
|
16193
|
-
), $ =
|
|
16193
|
+
), $ = wr(
|
|
16194
16194
|
d,
|
|
16195
16195
|
c,
|
|
16196
16196
|
p
|
|
16197
16197
|
).some(
|
|
16198
16198
|
(f, F) => f < (m[F] ?? f)
|
|
16199
16199
|
), x = Tt.some((f) => {
|
|
16200
|
-
const F = e[f],
|
|
16201
|
-
return typeof F == "number" && typeof
|
|
16200
|
+
const F = e[f], w = t[f];
|
|
16201
|
+
return typeof F == "number" && typeof w == "number" && F !== w;
|
|
16202
16202
|
});
|
|
16203
|
-
return $ || x ?
|
|
16203
|
+
return $ || x ? S(e) : e;
|
|
16204
16204
|
}
|
|
16205
16205
|
function $u(e, t, n, r) {
|
|
16206
16206
|
const i = t.slice(0, e).reduce((o, c) => o + c, 0), s = n.slice(e + 1, t.length - 1).reduce((o, c) => o + c, 0);
|
|
@@ -16209,10 +16209,10 @@ function $u(e, t, n, r) {
|
|
|
16209
16209
|
r - i - s - Zn
|
|
16210
16210
|
);
|
|
16211
16211
|
}
|
|
16212
|
-
function
|
|
16212
|
+
function Su(e, t) {
|
|
16213
16213
|
return Math.random() * (t - e) + e;
|
|
16214
16214
|
}
|
|
16215
|
-
function
|
|
16215
|
+
function wu(e) {
|
|
16216
16216
|
return Object.fromEntries(
|
|
16217
16217
|
Tt.map((t) => [
|
|
16218
16218
|
t,
|
|
@@ -16248,7 +16248,7 @@ function Tu(e, t, n, r, i, s) {
|
|
|
16248
16248
|
function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode: i, activeEvent: s, layoutId: o, onUpdateSettings: c }) {
|
|
16249
16249
|
const { prefix: a } = an(), u = !!i, {
|
|
16250
16250
|
columns: d,
|
|
16251
|
-
type:
|
|
16251
|
+
type: S,
|
|
16252
16252
|
wrapperWidth: v,
|
|
16253
16253
|
entriesCount: h,
|
|
16254
16254
|
cellMinHeight: p,
|
|
@@ -16258,7 +16258,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16258
16258
|
showCut: x,
|
|
16259
16259
|
cutCellMinHeight: f,
|
|
16260
16260
|
cutLabel: F,
|
|
16261
|
-
imageSize:
|
|
16261
|
+
imageSize: w,
|
|
16262
16262
|
imageOnHover: M,
|
|
16263
16263
|
entryHoverEffect: y,
|
|
16264
16264
|
entryHoverShowOption: T,
|
|
@@ -16273,7 +16273,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16273
16273
|
textHoverColor: R,
|
|
16274
16274
|
backgroundHoverColor: D,
|
|
16275
16275
|
dividerHoverColor: N
|
|
16276
|
-
} = e, [A, j] = de(void 0), [X, Q] = de(null), I = M === "on" && (!n || r), te = ($ ?? 0) > 0, g =
|
|
16276
|
+
} = e, [A, j] = de(void 0), [X, Q] = de(null), I = M === "on" && (!n || r), te = ($ ?? 0) > 0, g = S === "b", J = Te(null), he = Te(null), [le, xe] = de(null), [ne, ce] = de(Qn), B = Aa(ne), K = Math.max(0, ((v ?? 0) - B) / 2), U = Math.min(W ?? 0, K), se = Math.max(U, wn), ve = ((v ?? 0) + B) / 2;
|
|
16277
16277
|
yt(() => {
|
|
16278
16278
|
if (!n) {
|
|
16279
16279
|
ce(Qn);
|
|
@@ -16304,7 +16304,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16304
16304
|
textHoverColor: R,
|
|
16305
16305
|
backgroundHoverColor: D,
|
|
16306
16306
|
dividerHoverColor: N
|
|
16307
|
-
}, cu, du),
|
|
16307
|
+
}, cu, du), Se = s && s !== "default" ? `${a}-state-${s}` : "", Ie = `${!n || r ? y === "default" ? `${a}-entry-hover-default` : y === "blinds" ? `${a}-entry-hover-blinds` : y === "reveal" ? `${a}-entry-hover-reveal` : "" : ""} ${Se}`.trim(), H = y === "reveal" && (!n || r), oe = (b == null ? void 0 : b[0]) ?? !1, E = (b == null ? void 0 : b[1]) ?? !1, z = Te(e), q = Te(o);
|
|
16308
16308
|
Ae(() => {
|
|
16309
16309
|
if (!c || !n) {
|
|
16310
16310
|
z.current = e, q.current = o;
|
|
@@ -16329,7 +16329,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16329
16329
|
z.current = e, Wa(e, ye) && c(ye);
|
|
16330
16330
|
}, [e, c, n, o, ne]);
|
|
16331
16331
|
const G = He(
|
|
16332
|
-
() =>
|
|
16332
|
+
() => wu(e),
|
|
16333
16333
|
[
|
|
16334
16334
|
e.AColumnWidth,
|
|
16335
16335
|
e.BColumnWidth,
|
|
@@ -16381,7 +16381,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16381
16381
|
() => jo(d, Oe, G),
|
|
16382
16382
|
[d, Oe, G]
|
|
16383
16383
|
), We = He(
|
|
16384
|
-
() =>
|
|
16384
|
+
() => wr(d, Oe, G),
|
|
16385
16385
|
[d, Oe, G]
|
|
16386
16386
|
), Me = He(
|
|
16387
16387
|
() => be.map((Y, pe) => ka(
|
|
@@ -16401,7 +16401,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16401
16401
|
link: ye.link
|
|
16402
16402
|
}));
|
|
16403
16403
|
}, [t, h]), at = te ? A ?? $ : je.length, vt = He(() => te ? je.slice(0, at) : je, [je, te, at]), bt = te && at < je.length, Pt = vt.length > 1 || bt, Ft = [
|
|
16404
|
-
|
|
16404
|
+
oe ? `${a}-divider-top` : "",
|
|
16405
16405
|
E || Pt ? `${a}-divider-bottom` : ""
|
|
16406
16406
|
].filter(Boolean).join(" "), xt = !n || r, Mt = () => {
|
|
16407
16407
|
if (!xt) return;
|
|
@@ -16411,15 +16411,15 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16411
16411
|
return;
|
|
16412
16412
|
}
|
|
16413
16413
|
j(Math.min(Y + x, je.length));
|
|
16414
|
-
}, me = (Y) => L(Y, n ?? !1), ze = g ? P ?? 0 : O ?? 0, Ve = C ?? 0, Ze = p ?? 0, Et = ze + Ze / 2, Gt = Math.max(Ve, ao), Ct =
|
|
16414
|
+
}, me = (Y) => L(Y, n ?? !1), ze = g ? P ?? 0 : O ?? 0, Ve = C ?? 0, Ze = p ?? 0, Et = ze + Ze / 2, Gt = Math.max(Ve, ao), Ct = wi(
|
|
16415
16415
|
0,
|
|
16416
16416
|
vt.length,
|
|
16417
|
-
|
|
16417
|
+
oe,
|
|
16418
16418
|
E,
|
|
16419
16419
|
bt,
|
|
16420
16420
|
m ?? 0,
|
|
16421
16421
|
n ?? !1
|
|
16422
|
-
).borderTopWidth, Nt = le != null ? `${le}px` : `calc(${Ct} + ${me(Et)})`, On = g ? "rowPaddingTopB" : "rowPaddingTop",
|
|
16422
|
+
).borderTopWidth, Nt = le != null ? `${le}px` : `calc(${Ct} + ${me(Et)})`, On = g ? "rowPaddingTopB" : "rowPaddingTop", we = be[0], nt = be[be.length - 1], Qe = Me[0], Ke = Me[Me.length - 1], dt = we && Qe ? Math.max(Qe.paddingLeft, wn) : 0, lr = nt && Ke ? Math.max(Ke.paddingRight, wn) : 0, Kr = Oe, yn = (Y) => {
|
|
16423
16423
|
const pe = J.current;
|
|
16424
16424
|
if (!pe)
|
|
16425
16425
|
return { x: 0, y: 0 };
|
|
@@ -16435,7 +16435,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16435
16435
|
Q(null);
|
|
16436
16436
|
return;
|
|
16437
16437
|
}
|
|
16438
|
-
const { x: Le, y: Ye } = yn(pe), Je = (
|
|
16438
|
+
const { x: Le, y: Ye } = yn(pe), Je = (w == null ? void 0 : w.min) ?? 80, _e = (w == null ? void 0 : w.max) ?? 320, mt = (X == null ? void 0 : X.rowId) === Y.id ? X.widthPx : Su(Je, _e);
|
|
16439
16439
|
Q({
|
|
16440
16440
|
rowId: Y.id,
|
|
16441
16441
|
url: ye.url,
|
|
@@ -16454,7 +16454,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16454
16454
|
}, Gr = (Y) => {
|
|
16455
16455
|
H && $i(Y, a), I && Q(null);
|
|
16456
16456
|
}, Re = (Y) => {
|
|
16457
|
-
H &&
|
|
16457
|
+
H && Si(Y, a);
|
|
16458
16458
|
};
|
|
16459
16459
|
yt(() => {
|
|
16460
16460
|
if (!u || g) {
|
|
@@ -16491,7 +16491,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16491
16491
|
We,
|
|
16492
16492
|
ne,
|
|
16493
16493
|
m,
|
|
16494
|
-
|
|
16494
|
+
oe,
|
|
16495
16495
|
E,
|
|
16496
16496
|
bt
|
|
16497
16497
|
]);
|
|
@@ -16609,9 +16609,9 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16609
16609
|
We
|
|
16610
16610
|
]);
|
|
16611
16611
|
const pt = He(() => Ud(a), [a]);
|
|
16612
|
-
return /* @__PURE__ */
|
|
16612
|
+
return /* @__PURE__ */ re(Ge, { children: [
|
|
16613
16613
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: pt } }),
|
|
16614
|
-
/* @__PURE__ */ l("div", { style: Pe, children: /* @__PURE__ */
|
|
16614
|
+
/* @__PURE__ */ l("div", { style: Pe, children: /* @__PURE__ */ re(
|
|
16615
16615
|
"div",
|
|
16616
16616
|
{
|
|
16617
16617
|
ref: J,
|
|
@@ -16623,19 +16623,19 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16623
16623
|
onMouseMove: I ? cr : void 0,
|
|
16624
16624
|
onMouseLeave: I ? dr : void 0,
|
|
16625
16625
|
children: [
|
|
16626
|
-
/* @__PURE__ */
|
|
16626
|
+
/* @__PURE__ */ re("div", { style: { width: "100%", position: "relative" }, children: [
|
|
16627
16627
|
vt.map((Y, pe) => {
|
|
16628
16628
|
var Je;
|
|
16629
|
-
const ye = (((Je = Y.link) == null ? void 0 : Je.length) ?? 0) > 0, Le = ye && (!n || r) ? "a" : "div", Ye =
|
|
16629
|
+
const ye = (((Je = Y.link) == null ? void 0 : Je.length) ?? 0) > 0, Le = ye && (!n || r) ? "a" : "div", Ye = wi(
|
|
16630
16630
|
pe,
|
|
16631
16631
|
vt.length,
|
|
16632
|
-
|
|
16632
|
+
oe,
|
|
16633
16633
|
E,
|
|
16634
16634
|
bt,
|
|
16635
16635
|
m ?? 0,
|
|
16636
16636
|
n ?? !1
|
|
16637
16637
|
);
|
|
16638
|
-
return /* @__PURE__ */
|
|
16638
|
+
return /* @__PURE__ */ re(
|
|
16639
16639
|
Le,
|
|
16640
16640
|
{
|
|
16641
16641
|
ref: pe === 0 ? (_e) => {
|
|
@@ -16648,7 +16648,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16648
16648
|
H && (ye || T === "always") && $i(_e, a), I && Ur(Y, _e);
|
|
16649
16649
|
},
|
|
16650
16650
|
onMouseLeave: (_e) => {
|
|
16651
|
-
H && (ye || T === "always") &&
|
|
16651
|
+
H && (ye || T === "always") && Si(_e, a);
|
|
16652
16652
|
},
|
|
16653
16653
|
children: [
|
|
16654
16654
|
ze > 0 && /* @__PURE__ */ l(
|
|
@@ -16658,7 +16658,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16658
16658
|
style: { height: me(ze) }
|
|
16659
16659
|
}
|
|
16660
16660
|
),
|
|
16661
|
-
/* @__PURE__ */
|
|
16661
|
+
/* @__PURE__ */ re(
|
|
16662
16662
|
"div",
|
|
16663
16663
|
{
|
|
16664
16664
|
className: `${a}-list-cols-row${g ? "" : ` ${a}-list-cols-row-h`}${u && pe === 0 && g ? ` ${a}-list-cols-row-controls` : ""}`,
|
|
@@ -16679,7 +16679,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16679
16679
|
e,
|
|
16680
16680
|
vn
|
|
16681
16681
|
), ur = g && Be && u && pe === 0;
|
|
16682
|
-
return /* @__PURE__ */
|
|
16682
|
+
return /* @__PURE__ */ re(
|
|
16683
16683
|
"div",
|
|
16684
16684
|
{
|
|
16685
16685
|
className: g ? `${a}-list-col-wrap` : void 0,
|
|
@@ -16751,7 +16751,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16751
16751
|
_e.key
|
|
16752
16752
|
);
|
|
16753
16753
|
}),
|
|
16754
|
-
u && pe === 0 && g && /* @__PURE__ */
|
|
16754
|
+
u && pe === 0 && g && /* @__PURE__ */ re(Ge, { children: [
|
|
16755
16755
|
/* @__PURE__ */ l(
|
|
16756
16756
|
Ot,
|
|
16757
16757
|
{
|
|
@@ -16855,12 +16855,12 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16855
16855
|
}
|
|
16856
16856
|
}
|
|
16857
16857
|
) }, "row-padding-handles"),
|
|
16858
|
-
u && !g &&
|
|
16858
|
+
u && !g && we && nt && /* @__PURE__ */ re("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
16859
16859
|
/* @__PURE__ */ l(
|
|
16860
16860
|
Ot,
|
|
16861
16861
|
{
|
|
16862
16862
|
P: a,
|
|
16863
|
-
"data-controls":
|
|
16863
|
+
"data-controls": we.paddingLeftKey,
|
|
16864
16864
|
"data-controls-static-handle": "",
|
|
16865
16865
|
"data-controls-axis": "x",
|
|
16866
16866
|
"data-controls-variant": "column-padding",
|
|
@@ -16907,12 +16907,12 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16907
16907
|
u && !g && be.slice(0, -1).map((Y, pe) => {
|
|
16908
16908
|
const ye = be[pe + 1], Le = Ce.slice(0, pe + 1).reduce((gt, et) => gt + et, 0), Ye = Me[pe], Je = Me[pe + 1], _e = Math.max(
|
|
16909
16909
|
Ye.paddingRight,
|
|
16910
|
-
|
|
16910
|
+
wn
|
|
16911
16911
|
), mt = Math.max(
|
|
16912
16912
|
Je.paddingLeft,
|
|
16913
|
-
|
|
16913
|
+
wn
|
|
16914
16914
|
);
|
|
16915
|
-
return /* @__PURE__ */
|
|
16915
|
+
return /* @__PURE__ */ re("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
16916
16916
|
/* @__PURE__ */ l(
|
|
16917
16917
|
Ot,
|
|
16918
16918
|
{
|
|
@@ -17045,7 +17045,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
17045
17045
|
);
|
|
17046
17046
|
})(),
|
|
17047
17047
|
I && X && (() => {
|
|
17048
|
-
const Y =
|
|
17048
|
+
const Y = Sr(X.widthPx), pe = {
|
|
17049
17049
|
width: Y,
|
|
17050
17050
|
height: "auto",
|
|
17051
17051
|
maxHeight: Y,
|
|
@@ -21006,12 +21006,18 @@ function Yu(e) {
|
|
|
21006
21006
|
color: var(--${e}-question-color);
|
|
21007
21007
|
font: inherit;
|
|
21008
21008
|
padding-left: 0;
|
|
21009
|
+
outline: none;
|
|
21010
|
+
-webkit-tap-highlight-color: transparent;
|
|
21011
|
+
}
|
|
21012
|
+
.${e}-question-button:focus,
|
|
21013
|
+
.${e}-question-button:focus-visible {
|
|
21014
|
+
outline: none;
|
|
21009
21015
|
}
|
|
21010
21016
|
.${e}-question-row {
|
|
21011
21017
|
display: flex;
|
|
21012
21018
|
align-items: center;
|
|
21013
21019
|
justify-content: space-between;
|
|
21014
|
-
gap: ${Gu(
|
|
21020
|
+
gap: ${Gu(20)};
|
|
21015
21021
|
width: 100%;
|
|
21016
21022
|
min-width: 0;
|
|
21017
21023
|
min-height: var(--${e}-question-min-height, unset);
|
|
@@ -21164,7 +21170,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21164
21170
|
wrapperWidth: a = 1,
|
|
21165
21171
|
cellMinHeight: u = 0,
|
|
21166
21172
|
dividerWidth: d = 694e-6,
|
|
21167
|
-
dividerStyle:
|
|
21173
|
+
dividerStyle: S = "solid",
|
|
21168
21174
|
entryHoverEffect: v = "default",
|
|
21169
21175
|
autoclose: h = "off",
|
|
21170
21176
|
icon: p,
|
|
@@ -21174,7 +21180,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21174
21180
|
questionColor: x = "#000000",
|
|
21175
21181
|
answerColor: f = "#000000",
|
|
21176
21182
|
dividerColor: F = "#0000001F",
|
|
21177
|
-
iconColor:
|
|
21183
|
+
iconColor: w = "#000000",
|
|
21178
21184
|
questionHoverColor: M = "#666666",
|
|
21179
21185
|
iconHoverColor: y = "#666666",
|
|
21180
21186
|
iconActiveColor: T = "#000000",
|
|
@@ -21206,9 +21212,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21206
21212
|
}, [h]), Ae(() => {
|
|
21207
21213
|
n && !i && !r && B(/* @__PURE__ */ new Set());
|
|
21208
21214
|
}, [n, i, r]);
|
|
21209
|
-
const U = (me) => L(me, n ?? !1), se = Math.max(I, Xt), ve = Math.max(te, Xt), Pe = Math.max(g, Xt),
|
|
21210
|
-
console.log("questionPaddingLeftMaxFraction", re);
|
|
21211
|
-
const ae = He(() => ce.size === 0 ? 0 : Math.min(...ce), [ce]), ge = ft((me) => ce.has(me), [ce]), Ne = K && v === "default" ? `${o}-entry-hover-default` : "", fe = p ?? "", be = fe !== "", Oe = $.replace(/^rotate /, ""), ie = `${o}-icon-anim-${Oe}`, Ce = St(rt(
|
|
21215
|
+
const U = (me) => L(me, n ?? !1), se = Math.max(I, Xt), ve = Math.max(te, Xt), Pe = Math.max(g, Xt), Se = Math.max(J, Xt), Ee = Math.max(he, Xt), Ie = Math.max(le, Xt), H = Math.max(xe, Xt), oe = Math.max(0, (a ?? 1) - b - m), E = Math.max(0, (a ?? 1) - he), z = Math.max(0, (a ?? 1) - J), q = Math.max(b, Xt), G = Math.max(0, (a ?? 1) - I - m), ae = He(() => ce.size === 0 ? 0 : Math.min(...ce), [ce]), ge = ft((me) => ce.has(me), [ce]), Ne = K && v === "default" ? `${o}-entry-hover-default` : "", fe = p ?? "", be = fe !== "", Oe = $.replace(/^rotate /, ""), ie = `${o}-icon-anim-${Oe}`, Ce = wt(rt(
|
|
21212
21216
|
Bi(
|
|
21213
21217
|
C,
|
|
21214
21218
|
P,
|
|
@@ -21220,7 +21224,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21220
21224
|
x
|
|
21221
21225
|
),
|
|
21222
21226
|
n
|
|
21223
|
-
)), We =
|
|
21227
|
+
)), We = wt(rt(
|
|
21224
21228
|
Bi(
|
|
21225
21229
|
R,
|
|
21226
21230
|
D,
|
|
@@ -21246,7 +21250,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21246
21250
|
questionColor: x,
|
|
21247
21251
|
answerColor: f,
|
|
21248
21252
|
dividerColor: F,
|
|
21249
|
-
iconColor:
|
|
21253
|
+
iconColor: w,
|
|
21250
21254
|
questionHoverColor: M,
|
|
21251
21255
|
iconHoverColor: y,
|
|
21252
21256
|
iconActiveColor: T,
|
|
@@ -21264,11 +21268,11 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21264
21268
|
});
|
|
21265
21269
|
}, [K, h]), xt = He(() => Yu(o), [o]), Mt = {
|
|
21266
21270
|
[`--${o}-divider-width`]: L(d, n ?? !1),
|
|
21267
|
-
[`--${o}-divider-style`]:
|
|
21271
|
+
[`--${o}-divider-style`]: S,
|
|
21268
21272
|
[`--${o}-icon-max-width`]: L(m, n ?? !1),
|
|
21269
21273
|
...u > 0 ? { [`--${o}-question-min-height`]: L(u, n ?? !1) } : {}
|
|
21270
21274
|
};
|
|
21271
|
-
return /* @__PURE__ */
|
|
21275
|
+
return /* @__PURE__ */ re(Ge, { children: [
|
|
21272
21276
|
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: xt } }),
|
|
21273
21277
|
/* @__PURE__ */ l("div", { style: bt, children: /* @__PURE__ */ l(
|
|
21274
21278
|
"div",
|
|
@@ -21282,14 +21286,14 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21282
21286
|
children: ne.map((me, ze) => {
|
|
21283
21287
|
var Nt;
|
|
21284
21288
|
const Ve = ge(ze), Ze = ((Nt = me.question) == null ? void 0 : Nt.trim()) ?? "", Et = me.answer, Gt = ((Et == null ? void 0 : Et.length) ?? 0) > 0, Ct = c && ze === ae;
|
|
21285
|
-
return /* @__PURE__ */
|
|
21289
|
+
return /* @__PURE__ */ re(
|
|
21286
21290
|
"div",
|
|
21287
21291
|
{
|
|
21288
21292
|
className: `${o}-item${Ve ? ` ${o}-item-open` : ""}`.trim(),
|
|
21289
21293
|
"data-faq-item": "",
|
|
21290
21294
|
children: [
|
|
21291
|
-
/* @__PURE__ */
|
|
21292
|
-
Ct && /* @__PURE__ */
|
|
21295
|
+
/* @__PURE__ */ re("div", { className: `${o}-question-controls`, children: [
|
|
21296
|
+
Ct && /* @__PURE__ */ re(Ge, { children: [
|
|
21293
21297
|
/* @__PURE__ */ l(
|
|
21294
21298
|
Qt,
|
|
21295
21299
|
{
|
|
@@ -21319,7 +21323,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21319
21323
|
"data-controls-axis": "x",
|
|
21320
21324
|
"data-controls-variant": "column-padding",
|
|
21321
21325
|
"data-controls-min": "0",
|
|
21322
|
-
"data-controls-max-fraction": String(
|
|
21326
|
+
"data-controls-max-fraction": String(oe),
|
|
21323
21327
|
className: `${o}-padding-control-handle`,
|
|
21324
21328
|
hitPlacement: "center-x",
|
|
21325
21329
|
areaStyle: {
|
|
@@ -21355,7 +21359,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21355
21359
|
}
|
|
21356
21360
|
)
|
|
21357
21361
|
] }),
|
|
21358
|
-
/* @__PURE__ */
|
|
21362
|
+
/* @__PURE__ */ re(
|
|
21359
21363
|
"button",
|
|
21360
21364
|
{
|
|
21361
21365
|
type: "button",
|
|
@@ -21377,13 +21381,13 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21377
21381
|
"aria-hidden": "true"
|
|
21378
21382
|
}
|
|
21379
21383
|
),
|
|
21380
|
-
/* @__PURE__ */
|
|
21384
|
+
/* @__PURE__ */ re("span", { className: `${o}-question-row`, children: [
|
|
21381
21385
|
/* @__PURE__ */ l("span", { className: Me, children: Ze }),
|
|
21382
21386
|
Gt && (be ? /* @__PURE__ */ l("span", { className: `${o}-icon ${o}-icon-custom ${ie}`, "aria-hidden": "true", children: /* @__PURE__ */ l(
|
|
21383
21387
|
qt,
|
|
21384
21388
|
{
|
|
21385
21389
|
url: fe,
|
|
21386
|
-
fill:
|
|
21390
|
+
fill: w,
|
|
21387
21391
|
hoverFill: y,
|
|
21388
21392
|
className: `${o}-icon-image`
|
|
21389
21393
|
}
|
|
@@ -21422,8 +21426,8 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21422
21426
|
}
|
|
21423
21427
|
)
|
|
21424
21428
|
] }),
|
|
21425
|
-
Gt && Et && /* @__PURE__ */ l("div", { className: `${o}-panel`, "aria-hidden": !Ve, children: /* @__PURE__ */ l("div", { className: `${o}-panel-inner`, children: /* @__PURE__ */
|
|
21426
|
-
Ct && /* @__PURE__ */
|
|
21429
|
+
Gt && Et && /* @__PURE__ */ l("div", { className: `${o}-panel`, "aria-hidden": !Ve, children: /* @__PURE__ */ l("div", { className: `${o}-panel-inner`, children: /* @__PURE__ */ re("div", { className: `${o}-answer-controls`, children: [
|
|
21430
|
+
Ct && /* @__PURE__ */ re(Ge, { children: [
|
|
21427
21431
|
/* @__PURE__ */ l(
|
|
21428
21432
|
Qt,
|
|
21429
21433
|
{
|
|
@@ -21460,7 +21464,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21460
21464
|
position: "absolute",
|
|
21461
21465
|
top: 0,
|
|
21462
21466
|
left: 0,
|
|
21463
|
-
width: U(
|
|
21467
|
+
width: U(Se),
|
|
21464
21468
|
height: "100%",
|
|
21465
21469
|
zIndex: 2
|
|
21466
21470
|
}
|
|
@@ -21772,12 +21776,18 @@ function getCSS(P: string): string {
|
|
|
21772
21776
|
color: var(--\${P}-question-color);
|
|
21773
21777
|
font: inherit;
|
|
21774
21778
|
padding-left: 0;
|
|
21779
|
+
outline: none;
|
|
21780
|
+
-webkit-tap-highlight-color: transparent;
|
|
21781
|
+
}
|
|
21782
|
+
.\${P}-question-button:focus,
|
|
21783
|
+
.\${P}-question-button:focus-visible {
|
|
21784
|
+
outline: none;
|
|
21775
21785
|
}
|
|
21776
21786
|
.\${P}-question-row {
|
|
21777
21787
|
display: flex;
|
|
21778
21788
|
align-items: center;
|
|
21779
21789
|
justify-content: space-between;
|
|
21780
|
-
gap: \${sv(
|
|
21790
|
+
gap: \${sv(20)};
|
|
21781
21791
|
width: 100%;
|
|
21782
21792
|
min-width: 0;
|
|
21783
21793
|
min-height: var(--\${P}-question-min-height, unset);
|
|
@@ -22007,8 +22017,6 @@ export function FAQ({ settings, content, isEditor, isPreviewMode, isEditMode, ac
|
|
|
22007
22017
|
const iconPaddingRightWidth = Math.max(iconPaddingRight, PADDING_HANDLE_SIZE);
|
|
22008
22018
|
const iconPaddingRightMaxFraction = Math.max(0, (wrapperWidth ?? 1) - questionPaddingLeft - iconMaxWidth);
|
|
22009
22019
|
|
|
22010
|
-
console.log('questionPaddingLeftMaxFraction', questionPaddingLeftMaxFraction);
|
|
22011
|
-
|
|
22012
22020
|
const controlsTargetIndex = useMemo(() => {
|
|
22013
22021
|
if (openIndices.size === 0) {
|
|
22014
22022
|
return 0;
|
|
@@ -22440,65 +22448,65 @@ const Di = {
|
|
|
22440
22448
|
},
|
|
22441
22449
|
default: [
|
|
22442
22450
|
{
|
|
22443
|
-
question: "
|
|
22451
|
+
question: "What are the three main parts of The Divine Comedy?",
|
|
22444
22452
|
answer: [
|
|
22445
22453
|
{
|
|
22446
22454
|
type: "paragraph",
|
|
22447
|
-
children: [{ text: "
|
|
22455
|
+
children: [{ text: "A: The poem is divided into Inferno, Purgatorio, and Paradiso. These three sections follow Dante’s journey through Hell, Purgatory, and Heaven." }]
|
|
22448
22456
|
}
|
|
22449
22457
|
]
|
|
22450
22458
|
},
|
|
22451
22459
|
{
|
|
22452
|
-
question: "
|
|
22460
|
+
question: "Who guides Dante through Hell and most of Purgatory?",
|
|
22453
22461
|
answer: [
|
|
22454
22462
|
{
|
|
22455
22463
|
type: "paragraph",
|
|
22456
|
-
children: [{ text: "
|
|
22464
|
+
children: [{ text: "A: Dante is guided by Virgil, the ancient Roman poet. Virgil represents human reason and wisdom, but because he lived before Christianity, he cannot guide Dante all the way into Heaven." }]
|
|
22457
22465
|
}
|
|
22458
22466
|
]
|
|
22459
22467
|
},
|
|
22460
22468
|
{
|
|
22461
|
-
question: "
|
|
22469
|
+
question: "What does the dark wood at the beginning of the poem symbolize?",
|
|
22462
22470
|
answer: [
|
|
22463
22471
|
{
|
|
22464
22472
|
type: "paragraph",
|
|
22465
|
-
children: [{ text: "
|
|
22473
|
+
children: [{ text: "A: The dark wood symbolizes Dante’s spiritual confusion and moral crisis. It shows that he has lost the “straight way” in life and needs guidance to return to truth and salvation." }]
|
|
22466
22474
|
}
|
|
22467
22475
|
]
|
|
22468
22476
|
},
|
|
22469
22477
|
{
|
|
22470
|
-
question: "
|
|
22478
|
+
question: "What is “contrapasso” in Inferno?",
|
|
22471
22479
|
answer: [
|
|
22472
22480
|
{
|
|
22473
22481
|
type: "paragraph",
|
|
22474
|
-
children: [{ text: "
|
|
22482
|
+
children: [{ text: "“Contrapasso” is the principle that punishments in Hell reflect the sins committed during life. For example, people who caused division are themselves physically divided, showing how their punishment mirrors their wrongdoing." }]
|
|
22475
22483
|
}
|
|
22476
22484
|
]
|
|
22477
22485
|
},
|
|
22478
22486
|
{
|
|
22479
|
-
question: "
|
|
22487
|
+
question: "Who guides Dante through Heaven?",
|
|
22480
22488
|
answer: [
|
|
22481
22489
|
{
|
|
22482
22490
|
type: "paragraph",
|
|
22483
|
-
children: [{ text: "
|
|
22491
|
+
children: [{ text: "Beatrice guides Dante through Paradiso. She represents divine love, grace, and spiritual understanding, helping Dante move beyond human reason toward a vision of God." }]
|
|
22484
22492
|
}
|
|
22485
22493
|
]
|
|
22486
22494
|
},
|
|
22487
22495
|
{
|
|
22488
|
-
question: "
|
|
22496
|
+
question: "Why is The Divine Comedy important in literary history?",
|
|
22489
22497
|
answer: [
|
|
22490
22498
|
{
|
|
22491
22499
|
type: "paragraph",
|
|
22492
|
-
children: [{ text: "
|
|
22500
|
+
children: [{ text: "The Divine Comedy is important because it is one of the greatest works of world literature and helped shape the Italian language. Dante wrote it in the Tuscan dialect rather than Latin, making serious literature more accessible to ordinary readers." }]
|
|
22493
22501
|
}
|
|
22494
22502
|
]
|
|
22495
22503
|
},
|
|
22496
22504
|
{
|
|
22497
|
-
question: "
|
|
22505
|
+
question: "What is the overall journey of The Divine Comedy about?",
|
|
22498
22506
|
answer: [
|
|
22499
22507
|
{
|
|
22500
22508
|
type: "paragraph",
|
|
22501
|
-
children: [{ text: "
|
|
22509
|
+
children: [{ text: "The poem is about Dante’s spiritual journey from sin and despair toward repentance, wisdom, and union with God. On a deeper level, it represents the soul’s path from confusion to divine truth." }]
|
|
22502
22510
|
}
|
|
22503
22511
|
]
|
|
22504
22512
|
}
|
|
@@ -22711,20 +22719,20 @@ const Di = {
|
|
|
22711
22719
|
answerPaddingBottom: Zt("Answer Padding Bottom")
|
|
22712
22720
|
},
|
|
22713
22721
|
defaults: {
|
|
22714
|
-
dividerStyle: "
|
|
22722
|
+
dividerStyle: "dotted",
|
|
22715
22723
|
entryHoverEffect: "default",
|
|
22716
22724
|
autoclose: "off",
|
|
22717
|
-
icon: "https://cdn.cntrl.site/
|
|
22725
|
+
icon: "https://cdn.cntrl.site/component-assets/PlusIcon.svg",
|
|
22718
22726
|
iconAnimation: "rotate 45",
|
|
22719
22727
|
questionColor: "#000000",
|
|
22720
22728
|
answerColor: "#000000",
|
|
22721
22729
|
dividerColor: "#000000",
|
|
22722
22730
|
iconColor: "#000000",
|
|
22723
|
-
questionHoverColor: "#
|
|
22724
|
-
iconHoverColor: "#
|
|
22731
|
+
questionHoverColor: "#A60239",
|
|
22732
|
+
iconHoverColor: "#A60239",
|
|
22725
22733
|
iconActiveColor: "#000000",
|
|
22726
|
-
dividerHoverColor: "#
|
|
22727
|
-
questionFontFamily: "
|
|
22734
|
+
dividerHoverColor: "#A60239",
|
|
22735
|
+
questionFontFamily: "Goudy Bookletter 1911",
|
|
22728
22736
|
questionFontSettings: {
|
|
22729
22737
|
fontWeight: 400,
|
|
22730
22738
|
fontStyle: "normal"
|
|
@@ -22736,7 +22744,7 @@ const Di = {
|
|
|
22736
22744
|
textDecoration: "none",
|
|
22737
22745
|
fontVariant: "normal"
|
|
22738
22746
|
},
|
|
22739
|
-
answerFontFamily: "
|
|
22747
|
+
answerFontFamily: "Goudy Bookletter 1911",
|
|
22740
22748
|
answerFontSettings: {
|
|
22741
22749
|
fontWeight: 400,
|
|
22742
22750
|
fontStyle: "normal"
|
|
@@ -22753,38 +22761,40 @@ const Di = {
|
|
|
22753
22761
|
m: {
|
|
22754
22762
|
wrapperWidth: 1,
|
|
22755
22763
|
cellMinHeight: 0,
|
|
22756
|
-
dividerWidth:
|
|
22757
|
-
iconMaxWidth: 0.
|
|
22758
|
-
iconPaddingRight: 0,
|
|
22759
|
-
questionFontSize: 0.
|
|
22760
|
-
questionLineHeight: 0.
|
|
22761
|
-
|
|
22762
|
-
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22764
|
+
dividerWidth: 8e-3,
|
|
22765
|
+
iconMaxWidth: 0.0533,
|
|
22766
|
+
iconPaddingRight: 0.08,
|
|
22767
|
+
questionFontSize: 0.09066,
|
|
22768
|
+
questionLineHeight: 0.10133,
|
|
22769
|
+
questionLetterSpacing: -266e-5,
|
|
22770
|
+
answerFontSize: 0.0533,
|
|
22771
|
+
answerLineHeight: 0.064,
|
|
22772
|
+
questionPaddingLeft: 0.0533,
|
|
22773
|
+
questionPaddingTop: 0.0533,
|
|
22774
|
+
questionPaddingBottom: 0.0533,
|
|
22775
|
+
answerPaddingLeft: 0.0533,
|
|
22776
|
+
answerPaddingRight: 0.16,
|
|
22777
|
+
answerPaddingTop: 0.0533,
|
|
22778
|
+
answerPaddingBottom: 0.0533
|
|
22770
22779
|
},
|
|
22771
22780
|
d: {
|
|
22772
|
-
wrapperWidth:
|
|
22781
|
+
wrapperWidth: 0.6388,
|
|
22773
22782
|
cellMinHeight: 0,
|
|
22774
|
-
dividerWidth:
|
|
22775
|
-
iconMaxWidth:
|
|
22776
|
-
iconPaddingRight: 0,
|
|
22777
|
-
questionFontSize: 0.
|
|
22778
|
-
questionLineHeight: 0.
|
|
22779
|
-
|
|
22780
|
-
|
|
22783
|
+
dividerWidth: 2083e-6,
|
|
22784
|
+
iconMaxWidth: 0.01388,
|
|
22785
|
+
iconPaddingRight: 0.01388,
|
|
22786
|
+
questionFontSize: 0.0333,
|
|
22787
|
+
questionLineHeight: 0.0333,
|
|
22788
|
+
questionLetterSpacing: -9e-4,
|
|
22789
|
+
answerFontSize: 0.01111,
|
|
22790
|
+
answerLineHeight: 0.01388,
|
|
22781
22791
|
questionPaddingLeft: 0,
|
|
22782
|
-
questionPaddingTop: 0.
|
|
22783
|
-
questionPaddingBottom: 0.
|
|
22784
|
-
answerPaddingLeft: 0,
|
|
22785
|
-
answerPaddingRight: 0,
|
|
22786
|
-
answerPaddingTop: 0
|
|
22787
|
-
answerPaddingBottom: 0.
|
|
22792
|
+
questionPaddingTop: 0.01111,
|
|
22793
|
+
questionPaddingBottom: 0.01111,
|
|
22794
|
+
answerPaddingLeft: 0.0625,
|
|
22795
|
+
answerPaddingRight: 0.1625,
|
|
22796
|
+
answerPaddingTop: 0,
|
|
22797
|
+
answerPaddingBottom: 0.01111
|
|
22788
22798
|
}
|
|
22789
22799
|
},
|
|
22790
22800
|
layout: [
|
|
@@ -22891,7 +22901,7 @@ const Di = {
|
|
|
22891
22901
|
Xc,
|
|
22892
22902
|
ad,
|
|
22893
22903
|
vd,
|
|
22894
|
-
|
|
22904
|
+
Sd,
|
|
22895
22905
|
Ad,
|
|
22896
22906
|
zd,
|
|
22897
22907
|
qu,
|