@cntrl-site/components 1.0.17-6 → 1.0.17-8
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 +12 -12
- package/dist/index.mjs +566 -547
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,10 +6,10 @@ 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",
|
|
9
|
+
const Ha = "ControlSlider-module__wrapper___sHEkd", Ba = "ControlSlider-module__hoverArrow___A-dOH", Oa = "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", ws = "ControlSlider-module__bottomRightAlignment___kEwrz", Ss = "ControlSlider-module__clickOverlay___DZA28", Ts = "ControlSlider-module__contain___pLyq7", Ls = "ControlSlider-module__cover___KdDat", ue = {
|
|
10
10
|
wrapper: Ha,
|
|
11
|
-
hoverArrow:
|
|
12
|
-
sliderItem:
|
|
11
|
+
hoverArrow: Ba,
|
|
12
|
+
sliderItem: Oa,
|
|
13
13
|
sliderImage: Da,
|
|
14
14
|
arrow: za,
|
|
15
15
|
arrowVertical: Va,
|
|
@@ -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: ws,
|
|
50
|
+
clickOverlay: Ss,
|
|
51
51
|
contain: Ts,
|
|
52
52
|
cover: Ls
|
|
53
53
|
};
|
|
@@ -214,13 +214,13 @@ function gn(e) {
|
|
|
214
214
|
function Yi(e) {
|
|
215
215
|
return or(new DOMParser().parseFromString(e, "text/html").body);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ot(e, t) {
|
|
218
218
|
e.preventDefault(), t && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
219
219
|
}
|
|
220
220
|
function Xi(e, t) {
|
|
221
221
|
return e && e.querySelector(t);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function wo(e, t) {
|
|
224
224
|
return t ? sn(e.querySelectorAll(t)) : [];
|
|
225
225
|
}
|
|
226
226
|
function zt(e, t) {
|
|
@@ -232,8 +232,8 @@ function co(e) {
|
|
|
232
232
|
function dn(e) {
|
|
233
233
|
return nn(e) ? e : e ? e + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var ir = "splide",
|
|
236
|
-
function
|
|
235
|
+
var ir = "splide", So = "data-" + ir;
|
|
236
|
+
function On(e, t) {
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("[" + ir + "] " + (t || ""));
|
|
239
239
|
}
|
|
@@ -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, w, v) {
|
|
271
|
+
var h = "addEventListener" in d, p = h ? d.removeEventListener.bind(d, w, a, u) : d.removeListener.bind(d, a);
|
|
272
|
+
h ? d.addEventListener(w, a, u) : d.addListener(a), e.push([d, w, 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, w) {
|
|
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] === w && (!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(w) {
|
|
293
|
+
var v = w.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 w($) {
|
|
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: w,
|
|
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), w();
|
|
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", w), c.push([p, b]);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function w() {
|
|
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
|
}, {});
|
|
@@ -417,23 +417,23 @@ function Fs(e, t, n) {
|
|
|
417
417
|
set: h
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var Nr = "Arrow", Hr = Nr + "Left",
|
|
420
|
+
var Nr = "Arrow", Hr = Nr + "Left", Br = Nr + "Right", ma = Nr + "Up", ga = Nr + "Down", ei = "rtl", Or = "ttb", Yr = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
424
424
|
x: ["y"],
|
|
425
425
|
X: ["Y"],
|
|
426
426
|
Y: ["X"],
|
|
427
|
-
ArrowLeft: [ma,
|
|
427
|
+
ArrowLeft: [ma, Br],
|
|
428
428
|
ArrowRight: [ga, Hr]
|
|
429
429
|
};
|
|
430
430
|
function Ms(e, t, n) {
|
|
431
431
|
function r(s, o, c) {
|
|
432
432
|
c = c || n.direction;
|
|
433
|
-
var a = c === ei && !o ? 1 : c ===
|
|
433
|
+
var a = c === ei && !o ? 1 : c === Or ? 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 w = Yr[u.toLowerCase()][a] || u;
|
|
436
|
+
return d > 0 ? w.charAt(0).toUpperCase() + w.slice(1) : w;
|
|
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", wt = 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, wt, ko, fa, Wo, Yn], Rt = ir + "__", cn = "is-", Xr = ir, ii = Rt + "track", Hs = Rt + "list", Dr = Rt + "slide", ya = Dr + "--clone", Bs = Dr + "__container", Fo = Rt + "arrows", zr = Rt + "arrow", va = zr + "--prev", ba = zr + "--next", Vr = Rt + "pagination", xa = Vr + "__page", Os = Rt + "progress", Ds = Os + "__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", wa = cn + "focus-in", Sa = cn + "overflow", Ks = [hn, go, Ca, $a, ho, wa, Sa], 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 = [], w = [], 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, wa, !!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, w), 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, w), d = M(Xr), w = M(ii), kt(o, d), kt(v, w), $e(o, wt, n.label), $e(o, ko, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function f() {
|
|
488
|
-
v =
|
|
488
|
+
v = S("." + ii), h = or(v, "." + Hs), On(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] = S("." + 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 S(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, w = d.isNavigation, v = d.updateOnMove, h = d.i18n, p = d.pagination, m = d.slideFocus, b = a.Direction.resolve, $ = At(r, "style"), x = At(r, wt), f = n > -1, F = or(r, "." + Bs), S;
|
|
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, wt, x || po(h.slideLabel, [t + 1, e.length]))), y();
|
|
526
526
|
}
|
|
527
527
|
function y() {
|
|
528
|
-
c(r, "click", De(o, Lo, D)), c(r, "keydown", De(o, ua, D)), s([Mn, pa, fn], P), s(Eo,
|
|
528
|
+
c(r, "click", De(o, Lo, D)), c(r, "keydown", De(o, ua, D)), s([Mn, pa, fn], P), s(Eo, B), v && s(Ut, C);
|
|
529
529
|
}
|
|
530
530
|
function T() {
|
|
531
|
-
|
|
531
|
+
S = !0, i.destroy(), zt(r, Ks), Wt(r, Ro), $e(r, "style", $), $e(r, wt, x || "");
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function B() {
|
|
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, wt, 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
|
+
S || P();
|
|
542
542
|
}
|
|
543
543
|
function P() {
|
|
544
|
-
if (!
|
|
544
|
+
if (!S) {
|
|
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, w && 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(wo(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 w() {
|
|
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
|
+
S(function(P) {
|
|
603
603
|
P.destroy();
|
|
604
604
|
}), Kt(d);
|
|
605
605
|
}
|
|
606
606
|
function p() {
|
|
607
|
-
|
|
607
|
+
S(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 S(P, _) {
|
|
645
645
|
b(_).forEach(P);
|
|
646
646
|
}
|
|
647
647
|
function M(P) {
|
|
@@ -650,26 +650,26 @@ function Zs(e, t, n) {
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function y(P, _, W) {
|
|
653
|
-
|
|
653
|
+
S(function(V) {
|
|
654
654
|
V.style(P, _, W);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function T(P, _) {
|
|
658
|
-
var W =
|
|
658
|
+
var W = wo(P, "img"), V = W.length;
|
|
659
659
|
V ? W.forEach(function(ee) {
|
|
660
660
|
o(ee, "load error", function() {
|
|
661
661
|
--V || _();
|
|
662
662
|
});
|
|
663
663
|
}) : _();
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function B(P) {
|
|
666
666
|
return P ? a.length : d.length;
|
|
667
667
|
}
|
|
668
668
|
function C() {
|
|
669
669
|
return d.length > n.perPage;
|
|
670
670
|
}
|
|
671
671
|
return {
|
|
672
|
-
mount:
|
|
672
|
+
mount: w,
|
|
673
673
|
destroy: h,
|
|
674
674
|
update: p,
|
|
675
675
|
register: m,
|
|
@@ -678,32 +678,32 @@ function Zs(e, t, n) {
|
|
|
678
678
|
getAt: x,
|
|
679
679
|
add: f,
|
|
680
680
|
remove: F,
|
|
681
|
-
forEach:
|
|
681
|
+
forEach: S,
|
|
682
682
|
filter: M,
|
|
683
683
|
style: y,
|
|
684
|
-
getLength:
|
|
684
|
+
getLength: B,
|
|
685
685
|
isEnough: C
|
|
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, w = 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 ===
|
|
694
|
+
m = n.direction === Or, _t(d, "maxWidth", dn(n.width)), _t(w, a("paddingLeft"), S(!1)), _t(w, a("paddingRight"), S(!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(w, "height", M()), p(a("marginRight"), dn(n.gap)), p("width", T()), p("height", B(), !0), b = N, o(Rr), $ !== ($ = R()) && (Dt(d, Sa, $), o(ks, $)));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function S(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(),
|
|
706
|
+
return m && (D = y(), On(D, "height or heightRatio is missing."), D = "calc(" + D + " - " + S(!1) + " - " + S(!0) + ")"), D;
|
|
707
707
|
}
|
|
708
708
|
function y() {
|
|
709
709
|
return dn(n.height || $t(v).width * n.heightRatio);
|
|
@@ -711,7 +711,7 @@ function Js(e, t, n) {
|
|
|
711
711
|
function T() {
|
|
712
712
|
return n.autoWidth ? null : dn(n.fixedWidth) || (m ? "" : C());
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function B() {
|
|
715
715
|
return dn(n.fixedHeight) || (m ? n.autoHeight ? null : C() : y());
|
|
716
716
|
}
|
|
717
717
|
function C() {
|
|
@@ -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(w, 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, w), i([it, _n], h), (u = b()) && (p(u), t.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function w() {
|
|
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, S) {
|
|
782
|
+
var M = S < $, y = m(F.slide, S);
|
|
783
|
+
M ? $o(y, x[0].slide) : rr(s.list, y), xr(a, y), o.register(y, S - $ + (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, w = 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], S);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function S() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), y(e.index), t.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function M(A, j, X, Q) {
|
|
@@ -821,11 +821,11 @@ function nl(e, t, n) {
|
|
|
821
821
|
}
|
|
822
822
|
function T(A, j) {
|
|
823
823
|
if (!e.is(sr)) {
|
|
824
|
-
var X = j ? A :
|
|
824
|
+
var X = j ? A : B(A);
|
|
825
825
|
_t($, "transform", "translate" + p("X") + "(" + X + "px)"), A !== X && s(pa);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function B(A) {
|
|
829
829
|
if (e.is(Nn)) {
|
|
830
830
|
var j = _(A), X = j > t.Controller.getEnd(), Q = j < 0;
|
|
831
831
|
(Q || X) && (A = C(A, X));
|
|
@@ -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) - w()))), A;
|
|
862
862
|
}
|
|
863
863
|
function k(A) {
|
|
864
864
|
var j = n.focus;
|
|
865
|
-
return j === "center" ? (
|
|
865
|
+
return j === "center" ? (w() - 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: S
|
|
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, w = 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, S, M, y;
|
|
896
896
|
function T() {
|
|
897
|
-
|
|
897
|
+
B(), i([it, Xe, Ar], B), i(Rr, C);
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
|
|
901
|
-
var g = $n(x, 0, h ? f :
|
|
899
|
+
function B() {
|
|
900
|
+
S = v(!0), M = n.perMove, y = n.perPage, f = D();
|
|
901
|
+
var g = $n(x, 0, h ? f : S - 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 (w() || 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 ? -(S % y || y) : S : 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 + S) % S || 0 : g;
|
|
948
948
|
}
|
|
949
949
|
function D() {
|
|
950
|
-
for (var g =
|
|
951
|
-
if (u(
|
|
950
|
+
for (var g = S - (I() || p && M ? 1 : y); h && g-- > 0; )
|
|
951
|
+
if (u(S - 1, !0) !== u(g, !0)) {
|
|
952
952
|
g++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return $n(g, 0,
|
|
955
|
+
return $n(g, 0, S - 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 ? S - 1 : g) / y);
|
|
962
962
|
}
|
|
963
963
|
function j(g) {
|
|
964
964
|
var J = o.toIndex(g);
|
|
@@ -995,22 +995,22 @@ 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, w = u.arrows, v = u.track, h = w, p = u.prev, m = u.next, b, $, x = {};
|
|
999
999
|
function f() {
|
|
1000
|
-
|
|
1000
|
+
S(), i(it, F);
|
|
1001
1001
|
}
|
|
1002
1002
|
function F() {
|
|
1003
1003
|
M(), f();
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function S() {
|
|
1006
1006
|
var _ = n.arrows;
|
|
1007
|
-
_ && !(p && m) &&
|
|
1007
|
+
_ && !(p && m) && B(), p && m && (Kn(x, {
|
|
1008
1008
|
prev: p,
|
|
1009
1009
|
next: m
|
|
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(w ? [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, "<"));
|
|
@@ -1018,8 +1018,8 @@ function al(e, t, n) {
|
|
|
1018
1018
|
function T(_) {
|
|
1019
1019
|
d.go(_, !0);
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
h =
|
|
1021
|
+
function B() {
|
|
1022
|
+
h = w || Ln("div", c.arrows), p = C(!0), m = C(!1), b = !0, rr(h, [p, m]), !w && $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, wt, ee), $e(m, wt, 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 = So + "-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, w = 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 =
|
|
1050
|
-
}), n.pauseOnFocus && s(
|
|
1051
|
-
m =
|
|
1048
|
+
n.pauseOnHover && s(w, "mouseenter mouseleave", function(B) {
|
|
1049
|
+
p = B.type === "mouseenter", S();
|
|
1050
|
+
}), n.pauseOnFocus && s(w, "focusin focusout", function(B) {
|
|
1051
|
+
m = B.type === "focusin", S();
|
|
1052
1052
|
}), v && s(v, "click", function() {
|
|
1053
1053
|
b ? f() : F(!0);
|
|
1054
1054
|
}), i([Ut, Fr, Xe], c.rewind), i(Ut, T);
|
|
@@ -1056,21 +1056,21 @@ function ll(e, t, n) {
|
|
|
1056
1056
|
function f() {
|
|
1057
1057
|
a() && t.Slides.isEnough() && (c.start(!n.resetProgress), m = p = b = !1, M(), o(_o));
|
|
1058
1058
|
}
|
|
1059
|
-
function F(
|
|
1060
|
-
|
|
1059
|
+
function F(B) {
|
|
1060
|
+
B === void 0 && (B = !0), b = !!B, M(), a() || (c.pause(), o(Ao));
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function S() {
|
|
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, wt, n.i18n[b ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
|
-
function y(
|
|
1068
|
+
function y(B) {
|
|
1069
1069
|
var C = u.bar;
|
|
1070
|
-
C && _t(C, "width",
|
|
1070
|
+
C && _t(C, "width", B * 100 + "%"), o(da, B);
|
|
1071
1071
|
}
|
|
1072
|
-
function T(
|
|
1073
|
-
var C = t.Slides.getAt(
|
|
1072
|
+
function T(B) {
|
|
1073
|
+
var C = t.Slides.getAt(B);
|
|
1074
1074
|
c.set(C && +At(C.slide, sl) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
@@ -1102,13 +1102,13 @@ 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, w = 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], S);
|
|
1108
1108
|
}
|
|
1109
|
-
function $(y, T,
|
|
1109
|
+
function $(y, T, B, C, P) {
|
|
1110
1110
|
var _ = a();
|
|
1111
|
-
if (F(),
|
|
1111
|
+
if (F(), B && (!v || !d())) {
|
|
1112
1112
|
var W = t.Layout.sliderSize(), V = uo(y) * W * _r(ct(y) / W) || 0;
|
|
1113
1113
|
y = c.toPosition(t.Controller.toDest(y % W)) + V;
|
|
1114
1114
|
}
|
|
@@ -1118,14 +1118,14 @@ function hl(e, t, n) {
|
|
|
1118
1118
|
function x() {
|
|
1119
1119
|
o(En), p && p(), s(fn);
|
|
1120
1120
|
}
|
|
1121
|
-
function f(y, T,
|
|
1121
|
+
function f(y, T, B, C) {
|
|
1122
1122
|
var P = a(), _ = y + (T - y) * M(C), W = (_ - P) * m;
|
|
1123
|
-
|
|
1123
|
+
w(P + W), v && !B && 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 S() {
|
|
1129
1129
|
h && !h.isPaused() && (F(), x());
|
|
1130
1130
|
}
|
|
1131
1131
|
function M(y) {
|
|
@@ -1136,96 +1136,96 @@ function hl(e, t, n) {
|
|
|
1136
1136
|
mount: b,
|
|
1137
1137
|
destroy: F,
|
|
1138
1138
|
scroll: $,
|
|
1139
|
-
cancel:
|
|
1139
|
+
cancel: S
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var wn = {
|
|
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, w = 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, S, M, y, T = !1, B, C, P;
|
|
1148
1148
|
function _() {
|
|
1149
|
-
o(v, Qr, lo,
|
|
1149
|
+
o(v, Qr, lo, wn), o(v, Zr, lo, wn), o(v, Ta, V, wn), o(v, "click", R, {
|
|
1150
1150
|
capture: !0
|
|
1151
|
-
}), o(v, "dragstart",
|
|
1151
|
+
}), o(v, "dragstart", Ot), i([ln, it], W);
|
|
1152
1152
|
}
|
|
1153
1153
|
function W() {
|
|
1154
|
-
var
|
|
1155
|
-
ce(!
|
|
1154
|
+
var O = n.drag;
|
|
1155
|
+
ce(!O), M = O === "free";
|
|
1156
1156
|
}
|
|
1157
|
-
function V(
|
|
1158
|
-
if (
|
|
1159
|
-
var K = xe(
|
|
1160
|
-
le(
|
|
1157
|
+
function V(O) {
|
|
1158
|
+
if (B = !1, !C) {
|
|
1159
|
+
var K = xe(O);
|
|
1160
|
+
le(O.target) && (K || !O.button) && (w.isBusy() ? Ot(O, !0) : (P = K ? v : window, y = a.is([Fn, er]), S = null, o(P, Qr, ee, wn), o(P, Zr, k, wn), u.cancel(), d.cancel(), D(O)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
function ee(
|
|
1164
|
-
if (a.is(br) || (a.set(br), s(ra)),
|
|
1163
|
+
function ee(O) {
|
|
1164
|
+
if (a.is(br) || (a.set(br), s(ra)), O.cancelable)
|
|
1165
1165
|
if (y) {
|
|
1166
|
-
u.translate(f + he(I(
|
|
1167
|
-
var K = te(
|
|
1168
|
-
(K || U) && D(
|
|
1169
|
-
} else j(
|
|
1166
|
+
u.translate(f + he(I(O)));
|
|
1167
|
+
var K = te(O) > ai, U = T !== (T = x());
|
|
1168
|
+
(K || U) && D(O), B = !0, s(oa), Ot(O);
|
|
1169
|
+
} else j(O) && (y = A(O), Ot(O));
|
|
1170
1170
|
}
|
|
1171
|
-
function k(
|
|
1172
|
-
a.is(br) && (a.set(En), s(ia)), y && (N(
|
|
1171
|
+
function k(O) {
|
|
1172
|
+
a.is(br) && (a.set(En), s(ia)), y && (N(O), Ot(O)), c(P, Qr, ee), c(P, Zr, k), y = !1;
|
|
1173
1173
|
}
|
|
1174
|
-
function R(
|
|
1175
|
-
!C &&
|
|
1174
|
+
function R(O) {
|
|
1175
|
+
!C && B && Ot(O, !0);
|
|
1176
1176
|
}
|
|
1177
|
-
function D(
|
|
1178
|
-
|
|
1177
|
+
function D(O) {
|
|
1178
|
+
S = F, F = O, f = $();
|
|
1179
1179
|
}
|
|
1180
|
-
function N(
|
|
1181
|
-
var K = X(
|
|
1182
|
-
h(!1), M ?
|
|
1180
|
+
function N(O) {
|
|
1181
|
+
var K = X(O), U = Q(K), se = n.rewind && n.rewindByDrag;
|
|
1182
|
+
h(!1), M ? w.scroll(U, 0, n.snap) : e.is(sr) ? w.go(b(uo(K)) < 0 ? se ? "<" : "-" : se ? ">" : "+") : e.is(An) && T && se ? w.go(x(!0) ? ">" : "<") : w.go(w.toDest(U), !0), h(!0);
|
|
1183
1183
|
}
|
|
1184
|
-
function A(
|
|
1184
|
+
function A(O) {
|
|
1185
1185
|
var K = n.dragMinThreshold, U = Vn(K), se = U && K.mouse || 0, ve = (U ? K.touch : +K) || 10;
|
|
1186
|
-
return ct(I(
|
|
1186
|
+
return ct(I(O)) > (xe(O) ? ve : se);
|
|
1187
1187
|
}
|
|
1188
|
-
function j(
|
|
1189
|
-
return ct(I(
|
|
1188
|
+
function j(O) {
|
|
1189
|
+
return ct(I(O)) > ct(I(O, !0));
|
|
1190
1190
|
}
|
|
1191
|
-
function X(
|
|
1191
|
+
function X(O) {
|
|
1192
1192
|
if (e.is(Nn) || !T) {
|
|
1193
|
-
var K = te(
|
|
1193
|
+
var K = te(O);
|
|
1194
1194
|
if (K && K < ai)
|
|
1195
|
-
return I(
|
|
1195
|
+
return I(O) / K;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
|
-
function Q(
|
|
1200
|
-
return $() + uo(
|
|
1199
|
+
function Q(O) {
|
|
1200
|
+
return $() + uo(O) * rn(ct(O) * (n.flickPower || 600), M ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
|
-
function I(
|
|
1203
|
-
return J(
|
|
1202
|
+
function I(O, K) {
|
|
1203
|
+
return J(O, K) - J(g(O), K);
|
|
1204
1204
|
}
|
|
1205
|
-
function te(
|
|
1206
|
-
return co(
|
|
1205
|
+
function te(O) {
|
|
1206
|
+
return co(O) - co(g(O));
|
|
1207
1207
|
}
|
|
1208
|
-
function g(
|
|
1209
|
-
return F ===
|
|
1208
|
+
function g(O) {
|
|
1209
|
+
return F === O && S || F;
|
|
1210
1210
|
}
|
|
1211
|
-
function J(
|
|
1212
|
-
return (xe(
|
|
1211
|
+
function J(O, K) {
|
|
1212
|
+
return (xe(O) ? O.changedTouches[0] : O)["page" + m(K ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
|
-
function he(
|
|
1215
|
-
return
|
|
1214
|
+
function he(O) {
|
|
1215
|
+
return O / (T && e.is(An) ? Ys : 1);
|
|
1216
1216
|
}
|
|
1217
|
-
function le(
|
|
1217
|
+
function le(O) {
|
|
1218
1218
|
var K = n.noDrag;
|
|
1219
|
-
return !qn(
|
|
1219
|
+
return !qn(O, "." + xa + ", ." + zr) && (!K || !qn(O, K));
|
|
1220
1220
|
}
|
|
1221
|
-
function xe(
|
|
1222
|
-
return typeof TouchEvent < "u" &&
|
|
1221
|
+
function xe(O) {
|
|
1222
|
+
return typeof TouchEvent < "u" && O instanceof TouchEvent;
|
|
1223
1223
|
}
|
|
1224
1224
|
function ne() {
|
|
1225
1225
|
return y;
|
|
1226
1226
|
}
|
|
1227
|
-
function ce(
|
|
1228
|
-
C =
|
|
1227
|
+
function ce(O) {
|
|
1228
|
+
C = O;
|
|
1229
1229
|
}
|
|
1230
1230
|
return {
|
|
1231
1231
|
mount: _,
|
|
@@ -1235,7 +1235,7 @@ function fl(e, t, n) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
var yl = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
|
-
Right:
|
|
1238
|
+
Right: Br,
|
|
1239
1239
|
Left: Hr,
|
|
1240
1240
|
Up: ma,
|
|
1241
1241
|
Down: ga
|
|
@@ -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 w() {
|
|
1250
1250
|
v(), i(it, h), i(it, v), i(Ut, m);
|
|
1251
1251
|
}
|
|
1252
1252
|
function v() {
|
|
@@ -1268,19 +1268,19 @@ function vl(e, t, n) {
|
|
|
1268
1268
|
function b($) {
|
|
1269
1269
|
if (!d) {
|
|
1270
1270
|
var x = Mo($);
|
|
1271
|
-
x === a(Hr) ? e.go("<") : x === a(
|
|
1271
|
+
x === a(Hr) ? e.go("<") : x === a(Br) && e.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
1275
|
-
mount:
|
|
1275
|
+
mount: w,
|
|
1276
1276
|
destroy: h,
|
|
1277
1277
|
disable: p
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var Dn =
|
|
1280
|
+
var Dn = So + "-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 w() {
|
|
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
|
+
wo(x.slide, bl).forEach(function(f) {
|
|
1292
|
+
var F = At(f, Dn), S = At(f, $r);
|
|
1293
|
+
if (F !== f.src || S !== 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,24 +1308,24 @@ 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], S = x[1];
|
|
1312
|
+
zt(S.slide, ho), f.type !== "error" && (gn(x[2]), Un(F, ""), c(Io, F, S), c(_n)), a && $();
|
|
1313
1313
|
}
|
|
1314
1314
|
function $() {
|
|
1315
1315
|
d.length && m(d.shift());
|
|
1316
1316
|
}
|
|
1317
1317
|
return {
|
|
1318
|
-
mount:
|
|
1318
|
+
mount: w,
|
|
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, w = 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;
|
|
1328
|
-
p && Un(p, C ? "" : "none"), C && (i([Ut, Fr, fn],
|
|
1328
|
+
p && Un(p, C ? "" : "none"), C && (i([Ut, Fr, fn], B), F(), B(), s(la, {
|
|
1329
1329
|
list: b,
|
|
1330
1330
|
items: m
|
|
1331
1331
|
}, T(e.index)));
|
|
@@ -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, wt, _.select), $e(b, Wo, y() === Or ? "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,21 +1343,21 @@ 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(S, ee)), n.paginationKeyboard && o(R, "keydown", De(M, ee)), $e(k, Vt, "presentation"), $e(R, Vt, "tab"), $e(R, ar, D.join(" ")), $e(R, wt, 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 S(C) {
|
|
1354
1354
|
v(">" + C, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function M(C, P) {
|
|
1357
1357
|
var _ = m.length, W = Mo(P), V = y(), ee = -1;
|
|
1358
|
-
W === h(
|
|
1358
|
+
W === h(Br, !1, V) ? ee = ++C % _ : W === h(Hr, !1, V) ? ee = (--C + _) % _ : W === "Home" ? ee = 0 : W === "End" && (ee = _ - 1);
|
|
1359
1359
|
var k = m[ee];
|
|
1360
|
-
k && (Gi(k.button), v(">" + ee),
|
|
1360
|
+
k && (Gi(k.button), v(">" + ee), Ot(P, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function y() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1365,8 +1365,8 @@ function Cl(e, t, n) {
|
|
|
1365
1365
|
function T(C) {
|
|
1366
1366
|
return m[u.toPage(C)];
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var C = T(
|
|
1368
|
+
function B() {
|
|
1369
|
+
var C = T(w(!0)), P = T(w());
|
|
1370
1370
|
if (C) {
|
|
1371
1371
|
var _ = C.button;
|
|
1372
1372
|
zt(_, hn), Wt(_, ti), $e(_, Pn, -1);
|
|
@@ -1385,11 +1385,11 @@ function Cl(e, t, n) {
|
|
|
1385
1385
|
mount: x,
|
|
1386
1386
|
destroy: f,
|
|
1387
1387
|
getAt: T,
|
|
1388
|
-
update:
|
|
1388
|
+
update: B
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
1391
|
var $l = [" ", "Enter"];
|
|
1392
|
-
function
|
|
1392
|
+
function wl(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,16 +1412,16 @@ function Sl(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], w), s.push(p), p.emit(Eo, e.splides);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1418
|
-
$e(t.Elements.list, Wo, n.direction ===
|
|
1417
|
+
function w() {
|
|
1418
|
+
$e(t.Elements.list, Wo, n.direction === Or ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function v(p) {
|
|
1421
1421
|
e.go(p.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function h(p, m) {
|
|
1424
|
-
Co($l, Mo(m)) && (v(p),
|
|
1424
|
+
Co($l, Mo(m)) && (v(p), Ot(m));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: De(t.Media.set, {
|
|
@@ -1432,15 +1432,15 @@ function Sl(e, t, n) {
|
|
|
1432
1432
|
remount: a
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Sl(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, wn);
|
|
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, w = d < 0, v = co(u), h = n.wheelMinThreshold || 0, p = n.wheelSleep || 0;
|
|
1443
|
+
ct(d) > h && v - s > p && (e.go(w ? "<" : ">"), s = v), a(w) && Ot(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 w() {
|
|
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: w
|
|
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: wl,
|
|
1493
|
+
Wheel: Sl,
|
|
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 && (w(), 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 w() {
|
|
1566
1566
|
c(""), s.cancel();
|
|
1567
1567
|
}
|
|
1568
1568
|
function v(h) {
|
|
@@ -1577,34 +1577,34 @@ function Il(e, t, n) {
|
|
|
1577
1577
|
return {
|
|
1578
1578
|
mount: u,
|
|
1579
1579
|
start: d,
|
|
1580
|
-
cancel:
|
|
1580
|
+
cancel: w
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
var kl = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function e(n, r) {
|
|
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
|
-
|
|
1588
|
-
label: At(i,
|
|
1587
|
+
On(i, i + " is invalid."), this.root = i, r = tn({
|
|
1588
|
+
label: At(i, wt) || "",
|
|
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, So)));
|
|
1593
1593
|
} catch {
|
|
1594
|
-
|
|
1594
|
+
On(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
1596
1596
|
this._o = Object.create(tn({}, r));
|
|
1597
1597
|
}
|
|
1598
1598
|
var t = e.prototype;
|
|
1599
1599
|
return t.mount = function(r, i) {
|
|
1600
1600
|
var s = this, o = this.state, c = this.Components;
|
|
1601
|
-
|
|
1601
|
+
On(o.is([Tn, Pr]), "Already mounted!"), o.set(Tn), this._C = c, this._T = i || this._T || (this.is(sr) ? Al : Il), this._E = r || this._E;
|
|
1602
1602
|
var a = Kn({}, Pl, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
1605
|
return mn(a, function(u, d) {
|
|
1606
|
-
var
|
|
1607
|
-
c[d] =
|
|
1606
|
+
var w = u(s, c, s._o);
|
|
1607
|
+
c[d] = w, w.setup && w.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;
|
|
@@ -1730,7 +1730,7 @@ var Fl = ({ children: e, className: t, ...n }) => /* @__PURE__ */ en.createEleme
|
|
|
1730
1730
|
...n
|
|
1731
1731
|
}, /* @__PURE__ */ en.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, e)),
|
|
1733
|
+
}, e)), Bo = class extends en.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
1735
|
super(...arguments), this.splideRef = en.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
@@ -1786,7 +1786,7 @@ var Fl = ({ children: e, className: t, ...n }) => /* @__PURE__ */ en.createEleme
|
|
|
1786
1786
|
...this.omit(i, ["options", ...li.map((s) => s[1])])
|
|
1787
1787
|
}, n ? /* @__PURE__ */ en.createElement(Fl, null, r) : r);
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1789
|
+
}, Oo = ({ children: e, className: t, ...n }) => /* @__PURE__ */ en.createElement("li", {
|
|
1790
1790
|
className: Ho("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
@@ -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 St(e) {
|
|
1806
1806
|
const { color: t, ...n } = e;
|
|
1807
1807
|
return n;
|
|
1808
1808
|
}
|
|
@@ -1825,13 +1825,13 @@ function rt(e, t) {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
1827
|
const In = ({ content: e }) => {
|
|
1828
|
-
const t = (n) => n.map((r, i) => r.type === "link" ? /* @__PURE__ */ l("a", { className: Nl.link, href: r.value, target: r.target, children: t(r.children) }, i) : /* @__PURE__ */ l("span", { style:
|
|
1828
|
+
const t = (n) => n.map((r, i) => r.type === "link" ? /* @__PURE__ */ l("a", { className: Nl.link, href: r.value, target: r.target, children: t(r.children) }, i) : /* @__PURE__ */ l("span", { style: Bl(r), children: r.text }, i));
|
|
1829
1829
|
return /* @__PURE__ */ l(Ge, { children: e.map((n, r) => {
|
|
1830
1830
|
const i = n.children;
|
|
1831
1831
|
return /* @__PURE__ */ l("div", { children: t(i) }, r);
|
|
1832
1832
|
}) });
|
|
1833
1833
|
};
|
|
1834
|
-
function
|
|
1834
|
+
function Bl(e) {
|
|
1835
1835
|
return {
|
|
1836
1836
|
...e.fontFamily && { fontFamily: qr(e.fontFamily) },
|
|
1837
1837
|
...e.fontWeight && { fontWeight: e.fontWeight },
|
|
@@ -1845,8 +1845,8 @@ function Ol(e) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
|
-
const
|
|
1849
|
-
svg:
|
|
1848
|
+
const Ol = "SvgImage-module__svg___q3xE-", Dl = "SvgImage-module__img___VsTm-", ci = {
|
|
1849
|
+
svg: Ol,
|
|
1850
1850
|
img: Dl
|
|
1851
1851
|
}, zl = (e) => {
|
|
1852
1852
|
const t = e.trim();
|
|
@@ -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: w, textAppearance: v, color: h } = n.imageCaption ?? {}, [p, m] = de(void 0), [b, $] = de(null), [x, f] = de(0), [F, S] = de(0), { direction: M, transition: y, controls: T, pagination: B, 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,7 +1898,7 @@ 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 || (
|
|
1901
|
+
!i || _.current === y.type || (S((k) => k + 1), _.current = y.type);
|
|
1902
1902
|
}, [y.type]), /* @__PURE__ */ l("div", { className: Fe(ue.wrapper, { [ue.editor]: r }), ref: $, children: /* @__PURE__ */ re(
|
|
1903
1903
|
"div",
|
|
1904
1904
|
{
|
|
@@ -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(w.fontSize, r),
|
|
1936
|
+
lineHeight: L(w.lineHeight, r),
|
|
1937
1937
|
textTransform: v.textTransform ?? "none",
|
|
1938
1938
|
textDecoration: v.textDecoration ?? "none",
|
|
1939
1939
|
fontVariant: v.fontVariant ?? "normal",
|
|
@@ -1963,7 +1963,7 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
),
|
|
1965
1965
|
/* @__PURE__ */ l(
|
|
1966
|
-
|
|
1966
|
+
Bo,
|
|
1967
1967
|
{
|
|
1968
1968
|
onMove: (k) => {
|
|
1969
1969
|
f(k.index);
|
|
@@ -1985,7 +1985,7 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1985
1985
|
type: y.type === "fade in" ? "fade" : "loop",
|
|
1986
1986
|
rewind: !0
|
|
1987
1987
|
},
|
|
1988
|
-
children: t.map((k, R) => /* @__PURE__ */ l(
|
|
1988
|
+
children: t.map((k, R) => /* @__PURE__ */ l(Oo, { children: /* @__PURE__ */ l(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
1991
1991
|
className: ue.sliderItem,
|
|
@@ -2094,18 +2094,18 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
2096
2096
|
),
|
|
2097
|
-
|
|
2097
|
+
B.isActive && /* @__PURE__ */ l(
|
|
2098
2098
|
"div",
|
|
2099
2099
|
{
|
|
2100
2100
|
className: Fe(ue.pagination, {
|
|
2101
|
-
[ue.paginationInsideBottom]:
|
|
2102
|
-
[ue.paginationInsideTop]:
|
|
2103
|
-
[ue.paginationOutsideBottom]:
|
|
2104
|
-
[ue.paginationOutsideTop]:
|
|
2105
|
-
[ue.paginationInsideLeft]:
|
|
2106
|
-
[ue.paginationInsideRight]:
|
|
2107
|
-
[ue.paginationOutsideLeft]:
|
|
2108
|
-
[ue.paginationOutsideRight]:
|
|
2101
|
+
[ue.paginationInsideBottom]: B.position === "inside-1" && M === "horiz",
|
|
2102
|
+
[ue.paginationInsideTop]: B.position === "inside-2" && M === "horiz",
|
|
2103
|
+
[ue.paginationOutsideBottom]: B.position === "outside-1" && M === "horiz",
|
|
2104
|
+
[ue.paginationOutsideTop]: B.position === "outside-2" && M === "horiz",
|
|
2105
|
+
[ue.paginationInsideLeft]: B.position === "inside-1" && M === "vert",
|
|
2106
|
+
[ue.paginationInsideRight]: B.position === "inside-2" && M === "vert",
|
|
2107
|
+
[ue.paginationOutsideLeft]: B.position === "outside-1" && M === "vert",
|
|
2108
|
+
[ue.paginationOutsideRight]: B.position === "outside-2" && M === "vert",
|
|
2109
2109
|
[ue.paginationVertical]: M === "vert"
|
|
2110
2110
|
}),
|
|
2111
2111
|
children: /* @__PURE__ */ l(
|
|
@@ -2113,8 +2113,8 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2113
2113
|
{
|
|
2114
2114
|
className: ue.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
|
-
backgroundColor:
|
|
2117
|
-
transform: `scale(${
|
|
2116
|
+
backgroundColor: B.colors[2],
|
|
2117
|
+
transform: `scale(${B.scale / 100}) translate(${L(B.offset.x, r)}, ${L(B.offset.y, r)}) rotate(${M === "horiz" ? "0deg" : "90deg"})`
|
|
2118
2118
|
},
|
|
2119
2119
|
children: t.map((k, R) => /* @__PURE__ */ l(
|
|
2120
2120
|
"button",
|
|
@@ -2130,8 +2130,8 @@ function jl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
2130
2130
|
[ue.activeDot]: R === x
|
|
2131
2131
|
}),
|
|
2132
2132
|
style: {
|
|
2133
|
-
backgroundColor: R === x ?
|
|
2134
|
-
"--pagination-hover-color":
|
|
2133
|
+
backgroundColor: R === x ? B.colors[0] : B.colors[1],
|
|
2134
|
+
"--pagination-hover-color": B.hover
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
)
|
|
@@ -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, w] = 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: S } = e.imageSize, { revealPosition: M, visible: y } = e.position, { cursorType: T, target: B, 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 (w({ x: X, y: Q }), T === "system") {
|
|
2812
2812
|
m("none"), h(1);
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
@@ -2817,7 +2817,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2817
2817
|
m("none"), h(1);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
|
-
const J = ui(I, te, s) ||
|
|
2820
|
+
const J = ui(I, te, s) || B === "area" ? { img: W ?? "none", scale: _ } : { img: P ?? "none", scale: C };
|
|
2821
2821
|
m(J.img), h(J.scale);
|
|
2822
2822
|
}, R = (N) => {
|
|
2823
2823
|
N.stopPropagation(), b.current = { x: N.clientX, y: N.clientY }, k(N.clientX, N.clientY);
|
|
@@ -2832,7 +2832,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2832
2832
|
$,
|
|
2833
2833
|
d,
|
|
2834
2834
|
T,
|
|
2835
|
-
|
|
2835
|
+
B,
|
|
2836
2836
|
W,
|
|
2837
2837
|
P,
|
|
2838
2838
|
_,
|
|
@@ -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
|
+
S
|
|
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,7 +2868,7 @@ 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, S, M, r]), Ae(() => {
|
|
2872
2872
|
y === "last One" && o((k) => k.length > 0 ? [k[k.length - 1]] : []);
|
|
2873
2873
|
}, [y]), /* @__PURE__ */ re(
|
|
2874
2874
|
"div",
|
|
@@ -2877,7 +2877,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2877
2877
|
onClick: async (k) => {
|
|
2878
2878
|
if (!r) return;
|
|
2879
2879
|
const R = r.getBoundingClientRect(), D = k.clientX - R.left, N = k.clientY - R.top;
|
|
2880
|
-
if (
|
|
2880
|
+
if (B === "image" && !ui(D, N, s)) return;
|
|
2881
2881
|
let A = 0, j = 0;
|
|
2882
2882
|
M === "on Click" ? (A = D, j = N) : M === "same" ? (A = R.width / 2, j = R.height / 2) : (A = Math.random() * R.width, j = Math.random() * R.height);
|
|
2883
2883
|
const X = t[c], Q = await V(X, R.width, R.height, { x: A, y: j });
|
|
@@ -2901,7 +2901,7 @@ function Zl({ settings: e, content: t, isEditor: n }) {
|
|
|
2901
2901
|
height: "auto",
|
|
2902
2902
|
cursor: p === "none" ? "default" : "none"
|
|
2903
2903
|
},
|
|
2904
|
-
children:
|
|
2904
|
+
children: B === "area" && k.link ? /* @__PURE__ */ l("a", { href: k.link, target: "_blank", className: Cn.link, children: /* @__PURE__ */ l(
|
|
2905
2905
|
"img",
|
|
2906
2906
|
{
|
|
2907
2907
|
src: k.url,
|
|
@@ -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", wc = "LightBox-module__thumbsAlignCenter___Q4sUx", Sc = "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: wc,
|
|
3293
|
+
thumbsAlignEnd: Sc,
|
|
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 w = t.left + n.left, v = t.top + n.top, h = (r - u) / 2 + w, p = (i - d) / 2 + v;
|
|
3325
3325
|
return {
|
|
3326
3326
|
x: h,
|
|
3327
3327
|
y: p,
|
|
@@ -3419,7 +3419,7 @@ function Hc(e, t) {
|
|
|
3419
3419
|
})();
|
|
3420
3420
|
return { appearClass: n, backdropAppearClass: r, backdropDisappearClass: i, disappearClass: s };
|
|
3421
3421
|
}
|
|
3422
|
-
const
|
|
3422
|
+
const Bc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, isEditor: s, isPreviewMode: o }) => {
|
|
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);
|
|
@@ -3434,7 +3434,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3434
3434
|
}
|
|
3435
3435
|
),
|
|
3436
3436
|
/* @__PURE__ */ l(
|
|
3437
|
-
|
|
3437
|
+
Oc,
|
|
3438
3438
|
{
|
|
3439
3439
|
isOpen: c,
|
|
3440
3440
|
onClose: () => a(!1),
|
|
@@ -3446,9 +3446,9 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3446
3446
|
}
|
|
3447
3447
|
)
|
|
3448
3448
|
] });
|
|
3449
|
-
},
|
|
3449
|
+
}, Oc = ({ 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: w, wordSpacing: v, fontSizeLineHeight: h, textAppearance: p, color: m } = r.imageCaption ?? {}, [b, $] = de(0), [x, f] = de(0), [F, S] = de(!1), [M, y] = de(!1), [T, B] = 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: O } = Hc(X.type, X.direction), K = (c == null ? void 0 : c.itemId) ?? null;
|
|
3452
3452
|
Ae(() => {
|
|
3453
3453
|
const H = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
@@ -3477,9 +3477,9 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3477
3477
|
}, [e, te.isActive, n.length, T, I.direction]);
|
|
3478
3478
|
const U = ft(() => {
|
|
3479
3479
|
const H = window.matchMedia("(max-width: 768px)").matches, oe = gi(J.color);
|
|
3480
|
-
H && !o && oe > 0.9 && (document.body.style.backgroundColor = ""),
|
|
3480
|
+
H && !o && oe > 0.9 && (document.body.style.backgroundColor = ""), S(!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()), S(!1));
|
|
3483
3483
|
};
|
|
3484
3484
|
V.current && (ee.current = E, V.current.addEventListener("animationend", E));
|
|
3485
3485
|
}, [t, J.color, o]), se = (H, oe, E) => {
|
|
@@ -3542,7 +3542,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3542
3542
|
};
|
|
3543
3543
|
}, [e, U, n.length]), Ae(() => {
|
|
3544
3544
|
if (e) {
|
|
3545
|
-
if ($(0), f((oe) => oe + 1), W.current = !1,
|
|
3545
|
+
if ($(0), f((oe) => oe + 1), W.current = !1, S(!1), y(!1), B({}), !K) return;
|
|
3546
3546
|
const H = new CustomEvent("page-overlay", { detail: { itemId: K } });
|
|
3547
3547
|
window.dispatchEvent(H);
|
|
3548
3548
|
}
|
|
@@ -3610,10 +3610,10 @@ 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 we = (I.type === "scale" || I.type === "fade") && I.direction === "vert" && Q.type === "drag";
|
|
3614
3614
|
Ae(() => {
|
|
3615
|
-
var be,
|
|
3616
|
-
if (!e || !
|
|
3615
|
+
var be, Be;
|
|
3616
|
+
if (!e || !we || !((Be = (be = C.current) == null ? void 0 : be.splide) != null && Be.root)) return;
|
|
3617
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);
|
|
@@ -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, we, x]);
|
|
3652
3652
|
const Ee = {
|
|
3653
3653
|
backgroundColor: J.color,
|
|
3654
3654
|
backdropFilter: `blur(${J.blur}px)`,
|
|
@@ -3673,7 +3673,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3673
3673
|
"div",
|
|
3674
3674
|
{
|
|
3675
3675
|
ref: o ? V : null,
|
|
3676
|
-
className: Fe(Z.contentStyle, F ?
|
|
3676
|
+
className: Fe(Z.contentStyle, F ? O : xe, { [Z.editor]: o }, { [Z.hidden]: !e }),
|
|
3677
3677
|
style: {
|
|
3678
3678
|
animationDuration: `${parseInt(X.duration)}ms`,
|
|
3679
3679
|
animationTimingFunction: "ease",
|
|
@@ -3681,7 +3681,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3681
3681
|
},
|
|
3682
3682
|
children: [
|
|
3683
3683
|
/* @__PURE__ */ l(
|
|
3684
|
-
|
|
3684
|
+
Bo,
|
|
3685
3685
|
{
|
|
3686
3686
|
onMove: (H) => $(H.index),
|
|
3687
3687
|
ref: C,
|
|
@@ -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" && !we,
|
|
3696
3696
|
perPage: 1,
|
|
3697
3697
|
width: "100%",
|
|
3698
3698
|
height: "100%",
|
|
@@ -3713,7 +3713,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3713
3713
|
"--position-transform": G || "none"
|
|
3714
3714
|
};
|
|
3715
3715
|
})() : { ...E, position: "absolute", padding: z, boxSizing: "border-box" };
|
|
3716
|
-
return /* @__PURE__ */ l(
|
|
3716
|
+
return /* @__PURE__ */ l(Oo, { children: /* @__PURE__ */ l("div", { className: Z.imgWrapper, onClick: ve, children: /* @__PURE__ */ l(
|
|
3717
3717
|
"img",
|
|
3718
3718
|
{
|
|
3719
3719
|
ref: oe === b ? _ : null,
|
|
@@ -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: w,
|
|
3815
3815
|
fontSize: L(h.fontSize, o),
|
|
3816
3816
|
lineHeight: L(h.lineHeight, o),
|
|
3817
3817
|
textTransform: p.textTransform ?? "none",
|
|
@@ -3881,7 +3881,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3881
3881
|
justifyContent: A ? "flex-start" : q()
|
|
3882
3882
|
},
|
|
3883
3883
|
children: n.map((G, ae) => {
|
|
3884
|
-
const ge = ae === b, Ne = T[ae], be = te.grid.size * (ge ? te.activeState.scale : 1),
|
|
3884
|
+
const ge = ae === b, Ne = T[ae], be = te.grid.size * (ge ? te.activeState.scale : 1), Be = () => {
|
|
3885
3885
|
if (te.fit !== "fit") return {};
|
|
3886
3886
|
if (!Ne)
|
|
3887
3887
|
return I.direction === "horiz" ? { height: L(be, o) } : { width: L(be, o) };
|
|
@@ -3908,7 +3908,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3908
3908
|
...I.direction === "horiz" && te.fit !== "fit" ? { height: L(be, o) } : {},
|
|
3909
3909
|
...I.direction === "vert" && te.fit !== "fit" ? { width: L(be, o) } : {},
|
|
3910
3910
|
...te.fit === "cover" ? { width: L(be, o), height: L(be, o) } : {},
|
|
3911
|
-
...
|
|
3911
|
+
...Be(),
|
|
3912
3912
|
transition: ge ? "all 0.25s ease-out" : "none",
|
|
3913
3913
|
opacity: ge ? te.activeState.opacity / 100 : te.opacity / 100,
|
|
3914
3914
|
"--thumb-hover": te.activeState.opacity / 100
|
|
@@ -3928,7 +3928,7 @@ const Oc = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: i, i
|
|
|
3928
3928
|
alt: G.image.name ?? "",
|
|
3929
3929
|
onLoad: (ie) => {
|
|
3930
3930
|
const Ce = ie.currentTarget;
|
|
3931
|
-
Ce.naturalWidth && Ce.naturalHeight &&
|
|
3931
|
+
Ce.naturalWidth && Ce.naturalHeight && B((We) => ({
|
|
3932
3932
|
...We,
|
|
3933
3933
|
[ae]: { width: Ce.naturalWidth, height: Ce.naturalHeight }
|
|
3934
3934
|
}));
|
|
@@ -3960,7 +3960,7 @@ function hi({ color: e, className: t }) {
|
|
|
3960
3960
|
return /* @__PURE__ */ l("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ l("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ l("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3961
3961
|
}
|
|
3962
3962
|
const Dc = {
|
|
3963
|
-
element:
|
|
3963
|
+
element: Bc,
|
|
3964
3964
|
id: "lightbox",
|
|
3965
3965
|
name: "Lightbox",
|
|
3966
3966
|
preview: {
|
|
@@ -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: w = [],
|
|
5206
5206
|
buttonLabel: v,
|
|
5207
5207
|
gap: h,
|
|
5208
5208
|
fieldsGap: p,
|
|
@@ -5212,11 +5212,11 @@ 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: S,
|
|
5216
5216
|
inputColor: M,
|
|
5217
5217
|
inputTextColor: y,
|
|
5218
5218
|
inputBorderColor: T,
|
|
5219
|
-
placeholderColor:
|
|
5219
|
+
placeholderColor: B,
|
|
5220
5220
|
buttonColor: C,
|
|
5221
5221
|
buttonTextColor: P,
|
|
5222
5222
|
buttonBorderColor: _,
|
|
@@ -5240,18 +5240,18 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5240
5240
|
labelFontSize: xe,
|
|
5241
5241
|
labelLineHeight: ne,
|
|
5242
5242
|
labelLetterSpacing: ce,
|
|
5243
|
-
labelWordSpacing:
|
|
5243
|
+
labelWordSpacing: O,
|
|
5244
5244
|
labelTextAppearance: K,
|
|
5245
5245
|
statusFontSettings: U,
|
|
5246
5246
|
statusFontSize: se,
|
|
5247
5247
|
statusLineHeight: ve,
|
|
5248
5248
|
statusLetterSpacing: Pe,
|
|
5249
|
-
statusWordSpacing:
|
|
5249
|
+
statusWordSpacing: we,
|
|
5250
5250
|
statusTextAppearance: Ee,
|
|
5251
5251
|
successMessage: Ie,
|
|
5252
5252
|
errorMessage: H,
|
|
5253
5253
|
stateOverrides: oe
|
|
5254
|
-
} = e, E = u === "B", z =
|
|
5254
|
+
} = e, E = u === "B", z = w.slice(0, Math.min(d, w.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 = St(rt(q, t)), ae = L(F ?? 0, t), ge = L(
|
|
5267
|
+
(N ?? D ?? 0.01) + ((S == null ? void 0 : S.top) ?? 0) + ((S == null ? void 0 : S.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((S == null ? void 0 : S.top) ?? 0, t),
|
|
5280
|
+
paddingRight: L((S == null ? void 0 : S.right) ?? 0, t),
|
|
5281
|
+
paddingBottom: L((S == null ? void 0 : S.bottom) ?? 0, t),
|
|
5282
|
+
paddingLeft: L((S == null ? void 0 : S.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 = St(rt(fe, t)), Be = L(b ?? 0, t), ie = {
|
|
5298
5298
|
fontSettings: {
|
|
5299
5299
|
fontFamily: k,
|
|
5300
5300
|
fontWeight: (le == null ? void 0 : le.fontWeight) ?? 400,
|
|
@@ -5303,7 +5303,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5303
5303
|
fontSize: xe ?? 0.01,
|
|
5304
5304
|
lineHeight: ne,
|
|
5305
5305
|
letterSpacing: ce ?? 0,
|
|
5306
|
-
wordSpacing:
|
|
5306
|
+
wordSpacing: O ?? 0,
|
|
5307
5307
|
textAppearance: K,
|
|
5308
5308
|
color: W
|
|
5309
5309
|
}, Ce = rt(ie, t), We = {
|
|
@@ -5315,14 +5315,14 @@ 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: we ?? 0,
|
|
5319
5319
|
textAppearance: Ee,
|
|
5320
5320
|
color: V
|
|
5321
|
-
}, Me =
|
|
5321
|
+
}, Me = St(rt(We, t)), je = Jn(a, {
|
|
5322
5322
|
inputColor: M,
|
|
5323
5323
|
inputTextColor: y,
|
|
5324
5324
|
inputBorderColor: T,
|
|
5325
|
-
placeholderColor:
|
|
5325
|
+
placeholderColor: B != null && B.trim() ? B : "#cccccc",
|
|
5326
5326
|
buttonColor: C,
|
|
5327
5327
|
buttonTextColor: P,
|
|
5328
5328
|
buttonBorderColor: _,
|
|
@@ -5330,17 +5330,17 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5330
5330
|
successColor: V,
|
|
5331
5331
|
errorColor: ee
|
|
5332
5332
|
}, qc, jc, oe), [at, vt] = de(
|
|
5333
|
-
() => Object.fromEntries(z.map((
|
|
5333
|
+
() => Object.fromEntries(z.map((Se) => [Se.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 Se = 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
|
-
},
|
|
5343
|
-
if (
|
|
5338
|
+
(at[nt.name] ?? "").trim().length > 0 || (Se = Se ?? { ...at }, Se[nt.name] = "Filled");
|
|
5339
|
+
return Se ?? 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 = (Se, nt) => {
|
|
5341
|
+
vt((Qe) => ({ ...Qe, [Se]: nt }));
|
|
5342
|
+
}, Bn = async (Se) => {
|
|
5343
|
+
if (Se.preventDefault(), !c) return;
|
|
5344
5344
|
const nt = Object.fromEntries(
|
|
5345
5345
|
z.map((Ke) => {
|
|
5346
5346
|
var dt;
|
|
@@ -5378,10 +5378,10 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5378
5378
|
/* @__PURE__ */ re(
|
|
5379
5379
|
"form",
|
|
5380
5380
|
{
|
|
5381
|
-
onSubmit:
|
|
5381
|
+
onSubmit: Bn,
|
|
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((Se, nt) => /* @__PURE__ */ re(en.Fragment, { children: [
|
|
5385
5385
|
nt > 0 && /* @__PURE__ */ l(
|
|
5386
5386
|
"div",
|
|
5387
5387
|
{
|
|
@@ -5391,34 +5391,34 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5391
5391
|
}
|
|
5392
5392
|
),
|
|
5393
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:
|
|
5395
|
-
|
|
5394
|
+
E && /* @__PURE__ */ l("span", { className: `${a}-field-label`, style: Ce ? { ...Ce, lineHeight: Ce.fontSize } : void 0, children: Se.label || Se.name }),
|
|
5395
|
+
Se.type === "textarea" ? /* @__PURE__ */ l(
|
|
5396
5396
|
"textarea",
|
|
5397
5397
|
{
|
|
5398
|
-
name:
|
|
5398
|
+
name: Se.name,
|
|
5399
5399
|
autoComplete: "off",
|
|
5400
|
-
value: Ve[
|
|
5401
|
-
onChange: (Qe) => Nt(
|
|
5402
|
-
placeholder:
|
|
5400
|
+
value: Ve[Se.name] ?? "",
|
|
5401
|
+
onChange: (Qe) => Nt(Se.name, Qe.target.value),
|
|
5402
|
+
placeholder: Se.placeholder,
|
|
5403
5403
|
className: `${a}-input`,
|
|
5404
5404
|
style: Ne,
|
|
5405
5405
|
rows: 1,
|
|
5406
|
-
"data-filled": ze || (Ve[
|
|
5406
|
+
"data-filled": ze || (Ve[Se.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: Se.type === "phone" ? "tel" : Se.type === "email" ? "email" : "text",
|
|
5413
|
+
name: Se.name,
|
|
5414
5414
|
autoComplete: "off",
|
|
5415
|
-
value: Ve[
|
|
5416
|
-
onChange: (Qe) => Nt(
|
|
5417
|
-
placeholder:
|
|
5418
|
-
required:
|
|
5415
|
+
value: Ve[Se.name] ?? "",
|
|
5416
|
+
onChange: (Qe) => Nt(Se.name, Qe.target.value),
|
|
5417
|
+
placeholder: Se.placeholder,
|
|
5418
|
+
required: Se.isRequired ?? Se.type === "email",
|
|
5419
5419
|
className: `${a}-input`,
|
|
5420
5420
|
style: Ne,
|
|
5421
|
-
"data-filled": ze || (Ve[
|
|
5421
|
+
"data-filled": ze || (Ve[Se.name] ?? "").trim().length > 0
|
|
5422
5422
|
}
|
|
5423
5423
|
)
|
|
5424
5424
|
] })
|
|
@@ -5439,7 +5439,7 @@ function Vc({ settings: e, isEditor: t, isEditMode: n, isPreviewMode: r, metadat
|
|
|
5439
5439
|
style: {
|
|
5440
5440
|
borderStyle: "solid",
|
|
5441
5441
|
borderRadius: L(m ?? 0, t),
|
|
5442
|
-
borderWidth:
|
|
5442
|
+
borderWidth: Be,
|
|
5443
5443
|
paddingTop: L(($ == null ? void 0 : $.top) ?? 0, t),
|
|
5444
5444
|
paddingRight: L(($ == null ? void 0 : $.right) ?? 0, t),
|
|
5445
5445
|
paddingBottom: L(($ == null ? void 0 : $.bottom) ?? 0, t),
|
|
@@ -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: w,
|
|
6981
6981
|
inputFontSettings: v,
|
|
6982
6982
|
inputFontSize: h,
|
|
6983
6983
|
inputLineHeight: p,
|
|
@@ -6987,11 +6987,11 @@ 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: S,
|
|
6991
6991
|
buttonWordSpacing: M,
|
|
6992
6992
|
buttonTextAppearance: y,
|
|
6993
6993
|
statusFontSettings: T,
|
|
6994
|
-
statusFontSize:
|
|
6994
|
+
statusFontSize: B,
|
|
6995
6995
|
statusLineHeight: C,
|
|
6996
6996
|
statusLetterSpacing: P,
|
|
6997
6997
|
statusWordSpacing: _,
|
|
@@ -7007,15 +7007,15 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7007
7007
|
errorMessage: X = "Please, fill all required fields."
|
|
7008
7008
|
} = e, Q = c.slice(0, Math.min(d, c.length)), [I, te] = de(
|
|
7009
7009
|
() => Object.fromEntries(Q.map((ie) => [ie.name, ""]))
|
|
7010
|
-
), [g, J] = de("idle"), [he, le] = de(null), xe = i === "success" ? "success" : i === "error" ? "error" : g, ne = i === "error" ? X : he, ce = i === "filled",
|
|
7010
|
+
), [g, J] = de("idle"), [he, le] = de(null), xe = i === "success" ? "success" : i === "error" ? "error" : g, ne = i === "error" ? X : he, ce = i === "filled", O = He(() => {
|
|
7011
7011
|
if (!ce) return I;
|
|
7012
7012
|
let ie = null;
|
|
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,
|
|
7016
|
+
}, [ce, I, Q]), K = xe === "error" ? Lr(Q, O) : null, U = i && i !== "default" ? `${s}-state-${i}` : "", se = Q.some((ie) => (O[ie.name] ?? "").trim().length > 0), ve = U !== `${s}-state-filled` && se ? `${s}-state-filled` : "", Pe = `${U} ${ve}`.trim(), we = 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: w,
|
|
7019
7019
|
fontWeight: (v == null ? void 0 : v.fontWeight) ?? 400,
|
|
7020
7020
|
fontStyle: (v == null ? void 0 : v.fontStyle) ?? "normal"
|
|
7021
7021
|
},
|
|
@@ -7027,29 +7027,29 @@ 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: w,
|
|
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: S ?? 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: w,
|
|
7043
7043
|
fontWeight: (T == null ? void 0 : T.fontWeight) ?? 400,
|
|
7044
7044
|
fontStyle: (T == null ? void 0 : T.fontStyle) ?? "normal"
|
|
7045
7045
|
},
|
|
7046
|
-
fontSize:
|
|
7046
|
+
fontSize: B ?? 0.01,
|
|
7047
7047
|
lineHeight: C,
|
|
7048
7048
|
letterSpacing: P ?? 0,
|
|
7049
7049
|
wordSpacing: _ ?? 0,
|
|
7050
7050
|
textAppearance: W,
|
|
7051
7051
|
color: e.successColor ?? "#22c55e"
|
|
7052
|
-
}, G =
|
|
7052
|
+
}, G = St(rt(E, t)), ae = St(rt(z, t)), ge = St(rt(q, t)), Ne = Jn(s, {
|
|
7053
7053
|
strokeColor: e.strokeColor,
|
|
7054
7054
|
inputColor: e.inputColor,
|
|
7055
7055
|
placeholderColor: e.placeholderColor,
|
|
@@ -7062,7 +7062,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7062
7062
|
borderRadius: L(k, t),
|
|
7063
7063
|
borderWidth: L(R, t),
|
|
7064
7064
|
borderStyle: "solid"
|
|
7065
|
-
}, be = { borderLeftWidth: L(R, t) },
|
|
7065
|
+
}, be = { borderLeftWidth: L(R, t) }, Be = async (ie) => {
|
|
7066
7066
|
if (ie.preventDefault(), !o) return;
|
|
7067
7067
|
const Ce = Object.fromEntries(
|
|
7068
7068
|
Q.map((Me) => {
|
|
@@ -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 (!we) {
|
|
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(we, {
|
|
7086
7086
|
method: "POST",
|
|
7087
7087
|
headers: { "Content-Type": "application/json" },
|
|
7088
7088
|
body: JSON.stringify(Ce)
|
|
@@ -7101,7 +7101,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7101
7101
|
/* @__PURE__ */ re(
|
|
7102
7102
|
"form",
|
|
7103
7103
|
{
|
|
7104
|
-
onSubmit:
|
|
7104
|
+
onSubmit: Be,
|
|
7105
7105
|
className: `${s}-form`,
|
|
7106
7106
|
style: {
|
|
7107
7107
|
...fe,
|
|
@@ -7120,7 +7120,7 @@ const Zc = ({ settings: e, isEditor: t, isPreviewMode: n, metadata: r, activeEve
|
|
|
7120
7120
|
type: ie.type === "email" ? "email" : ie.type === "phone" ? "tel" : "text",
|
|
7121
7121
|
name: ie.name,
|
|
7122
7122
|
autoComplete: "off",
|
|
7123
|
-
value:
|
|
7123
|
+
value: O[ie.name] ?? "",
|
|
7124
7124
|
onChange: (Ce) => te((We) => ({ ...We, [ie.name]: Ce.target.value })),
|
|
7125
7125
|
placeholder: ie.placeholder,
|
|
7126
7126
|
required: ie.isRequired ?? ie.type === "email",
|
|
@@ -8442,22 +8442,22 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8442
8442
|
scaled: c,
|
|
8443
8443
|
onFirstSetImageDone: a
|
|
8444
8444
|
}) => {
|
|
8445
|
-
var y, T,
|
|
8445
|
+
var y, T, B;
|
|
8446
8446
|
const u = Te(null);
|
|
8447
8447
|
yt(() => {
|
|
8448
8448
|
if (!o) return;
|
|
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", w = n.ratioValue ?? "1:1", v = n.reversed ?? !1, [h, p] = w.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), S = c(f), M = ((T = e.image) == null ? void 0 : T.url) && /* @__PURE__ */ l(
|
|
8456
8456
|
"img",
|
|
8457
8457
|
{
|
|
8458
8458
|
ref: u,
|
|
8459
8459
|
src: e.image.url,
|
|
8460
|
-
alt: ((
|
|
8460
|
+
alt: ((B = e.image) == null ? void 0 : B.name) ?? "",
|
|
8461
8461
|
style: d ? {
|
|
8462
8462
|
pointerEvents: "auto",
|
|
8463
8463
|
display: "block",
|
|
@@ -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: S, 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: w, 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), S = Math.max(0, c) * ld, M = (K) => L(K, n ?? !1), y = Te(null), T = Te(null), B = 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,36 +8537,36 @@ 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 = (we) => {
|
|
8541
8541
|
D((Ee) => {
|
|
8542
8542
|
let Ie = null;
|
|
8543
|
-
for (const H of
|
|
8543
|
+
for (const H of we)
|
|
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((we) => {
|
|
8548
8548
|
const Ee = /* @__PURE__ */ new Set();
|
|
8549
|
-
for (const Ie of
|
|
8549
|
+
for (const Ie of we) {
|
|
8550
8550
|
const H = Ie.target.dataset.marqueeItemIndex, oe = H !== void 0 ? Number(H) : NaN;
|
|
8551
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((we) => {
|
|
8556
|
+
const Ee = Number(we);
|
|
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 we = Object.keys(N.current);
|
|
8562
|
+
we.length !== 0 && (U(we.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();
|
|
8566
8566
|
};
|
|
8567
8567
|
}, [p, R, b]), yt(() => {
|
|
8568
8568
|
if (!F) return;
|
|
8569
|
-
const K = y.current, U =
|
|
8569
|
+
const K = y.current, U = B.current;
|
|
8570
8570
|
if (!K || !U) return;
|
|
8571
8571
|
let se = 0;
|
|
8572
8572
|
const ve = () => {
|
|
@@ -8593,16 +8593,16 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
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 we = new ResizeObserver(Pe);
|
|
8597
|
+
return we.observe(K), we.observe(U), () => {
|
|
8598
|
+
X.current = null, cancelAnimationFrame(se), we.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 && S > 0 ? U / S * 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, S, 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, w, v, C, h, R]);
|
|
8624
8624
|
const le = () => {
|
|
8625
8625
|
V && k(!0);
|
|
8626
8626
|
}, xe = () => {
|
|
@@ -8635,11 +8635,11 @@ 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 we = Pe[Math.floor(Math.random() * Pe.length)];
|
|
8639
|
+
return { ...se, [K]: we };
|
|
8640
8640
|
});
|
|
8641
|
-
}, [t]),
|
|
8642
|
-
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ?? K : K,
|
|
8641
|
+
}, [t]), O = (K, U, se, ve) => {
|
|
8642
|
+
const Pe = b && p === "randomize" && h.display === "Cover" ? R[se] ?? K : K, we = `max(${M(d)}, ${cd}px)`, Ee = `calc(-0.5 * (${we} + ${M(d)}))`;
|
|
8643
8643
|
return /* @__PURE__ */ re(
|
|
8644
8644
|
"div",
|
|
8645
8645
|
{
|
|
@@ -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: w,
|
|
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: we,
|
|
8676
8676
|
height: "100%"
|
|
8677
8677
|
}
|
|
8678
8678
|
}
|
|
@@ -8705,7 +8705,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8705
8705
|
children: Array.from({ length: he }, (U, se) => /* @__PURE__ */ l(
|
|
8706
8706
|
"div",
|
|
8707
8707
|
{
|
|
8708
|
-
ref: se === 0 ?
|
|
8708
|
+
ref: se === 0 ? B : void 0,
|
|
8709
8709
|
className: Fe(`${s}-marquee-row`, `${s}-marquee-set`),
|
|
8710
8710
|
style: {
|
|
8711
8711
|
gap: M(d),
|
|
@@ -8713,7 +8713,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8713
8713
|
},
|
|
8714
8714
|
"aria-hidden": se > 0,
|
|
8715
8715
|
children: g.map(
|
|
8716
|
-
(ve, Pe) =>
|
|
8716
|
+
(ve, Pe) => O(ve, se, Pe, se === 0)
|
|
8717
8717
|
)
|
|
8718
8718
|
},
|
|
8719
8719
|
`set-${se}`
|
|
@@ -8734,7 +8734,7 @@ const ld = 30, cd = 20, to = 2, dd = 2, ud = (e, t) => Array.from({ length: t },
|
|
|
8734
8734
|
style: { gap: M(d), transform: "none" },
|
|
8735
8735
|
"aria-label": "Marquee",
|
|
8736
8736
|
children: t == null ? void 0 : t.map(
|
|
8737
|
-
(K, U) =>
|
|
8737
|
+
(K, U) => O(K, 0, U)
|
|
8738
8738
|
)
|
|
8739
8739
|
},
|
|
8740
8740
|
"marquee-static"
|
|
@@ -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: w, corners: v, stroke: h, strokeColor: p, bgColor: m, padding: b, logoMarginTop: $, logoWidth: x, logoHeight: f, captionMarginTop: F } = e, S = !!i, M = ((t == null ? void 0 : t.length) ?? 0) > 0, y = c > 0 && (!n || r), T = M && (y || n), B = 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: {
|
|
@@ -9713,19 +9713,19 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9713
9713
|
return (((z = E.text) == null ? void 0 : z.length) ?? 0) > 0 || (((q = E.caption) == null ? void 0 : q.length) ?? 0) > 0;
|
|
9714
9714
|
}),
|
|
9715
9715
|
[t]
|
|
9716
|
-
),
|
|
9716
|
+
), O = He(() => !T || (t == null ? void 0 : t.length) === 0 ? 1 : k <= 0 || V <= 0 ? yi : Math.max(yi, Math.ceil(V / k) + 1), [T, t == null ? void 0 : t.length, k, V]);
|
|
9717
9717
|
yt(() => {
|
|
9718
9718
|
if (!T) return;
|
|
9719
9719
|
const E = P.current, z = W.current;
|
|
9720
9720
|
if (!E || !z) return;
|
|
9721
9721
|
let q = 0;
|
|
9722
9722
|
const G = () => {
|
|
9723
|
-
const Ne = E.getBoundingClientRect().width, fe = z.getBoundingClientRect().width, be = he.current,
|
|
9723
|
+
const Ne = E.getBoundingClientRect().width, fe = z.getBoundingClientRect().width, be = he.current, Be = typeof be == "number" && Math.abs(be - fe) <= 0.25;
|
|
9724
9724
|
if (he.current = fe, ee(Ne), typeof fe == "number" && fe > 0 && k <= 0) {
|
|
9725
9725
|
R(fe);
|
|
9726
9726
|
return;
|
|
9727
9727
|
}
|
|
9728
|
-
|
|
9728
|
+
Be && fe !== k ? R(fe) : !Be && k <= 0 && (cancelAnimationFrame(q), q = requestAnimationFrame(G));
|
|
9729
9729
|
}, ae = () => {
|
|
9730
9730
|
cancelAnimationFrame(q), q = requestAnimationFrame(G);
|
|
9731
9731
|
};
|
|
@@ -9737,9 +9737,9 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
9737
9737
|
}, [y, T, k]), yt(() => {
|
|
9738
9738
|
const E = _.current;
|
|
9739
9739
|
if (!T || !E) return;
|
|
9740
|
-
const z = k > 0 ? k : 0, q = z > 0 &&
|
|
9740
|
+
const z = k > 0 ? k : 0, q = z > 0 && B > 0 ? z / B * 1e3 : 0, G = `${Math.max(0, q) / 1e3}s`;
|
|
9741
9741
|
E.style.setProperty("--marquee-distance", `${z}px`), E.style.setProperty("--marquee-duration", G);
|
|
9742
|
-
}, [y, T,
|
|
9742
|
+
}, [y, T, B, k]), yt(() => {
|
|
9743
9743
|
if (!T) {
|
|
9744
9744
|
N(0);
|
|
9745
9745
|
return;
|
|
@@ -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,
|
|
9762
|
+
}, [T, O, t, n, d, w, b, h, v, x, f, I, g]);
|
|
9763
9763
|
const K = () => {
|
|
9764
9764
|
A && X(!0);
|
|
9765
9765
|
}, U = () => {
|
|
@@ -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": S ? G == null ? void 0 : G.controlsName : void 0,
|
|
9802
|
+
"data-controls-axis": S ? "y" : void 0,
|
|
9803
|
+
className: S ? `${s}-control` : void 0,
|
|
9804
9804
|
style: { height: C((G == null ? void 0 : G.marginTop) ?? 0) }
|
|
9805
9805
|
}
|
|
9806
9806
|
),
|
|
@@ -9821,8 +9821,8 @@ 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, S, s, C]
|
|
9825
|
+
), we = ft(
|
|
9826
9826
|
(E, z, q) => {
|
|
9827
9827
|
var G, ae, ge;
|
|
9828
9828
|
return /* @__PURE__ */ re(
|
|
@@ -9830,7 +9830,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
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(w + h * 2),
|
|
9834
9834
|
height: "100%",
|
|
9835
9835
|
borderRadius: C(v),
|
|
9836
9836
|
border: `${C(h)} solid ${p}`,
|
|
@@ -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": S && !(q != null && q.dataMeasureAttrs) ? "logoMarginTop" : void 0,
|
|
9869
|
+
className: S && !(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
|
+
w,
|
|
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
|
+
S,
|
|
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, we]);
|
|
9939
9939
|
const Ie = ce ? { textMinHeightPx: I, captionMinHeightPx: g } : void 0, H = ce ? /* @__PURE__ */ l(
|
|
9940
9940
|
"div",
|
|
9941
9941
|
{
|
|
@@ -9950,7 +9950,7 @@ 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) => we(E, `measure-${z}`, { dataMeasureAttrs: !0 }))
|
|
9954
9954
|
}
|
|
9955
9955
|
) : null, oe = (E, z) => /* @__PURE__ */ re(
|
|
9956
9956
|
"div",
|
|
@@ -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
|
+
we(E, `card-${z}`, Ie),
|
|
9969
|
+
S && /* @__PURE__ */ l(
|
|
9970
9970
|
"div",
|
|
9971
9971
|
{
|
|
9972
9972
|
"data-controls": "gap",
|
|
@@ -10023,7 +10023,7 @@ const bd = 30, yi = 2, xd = ({ settings: e, content: t, isEditor: n, isPreviewMo
|
|
|
10023
10023
|
perspective: "1000px",
|
|
10024
10024
|
"--marquee-play-state": E
|
|
10025
10025
|
},
|
|
10026
|
-
children: Array.from({ length:
|
|
10026
|
+
children: Array.from({ length: O }, (z, q) => /* @__PURE__ */ l(
|
|
10027
10027
|
"div",
|
|
10028
10028
|
{
|
|
10029
10029
|
ref: q === 0 ? W : void 0,
|
|
@@ -11140,7 +11140,7 @@ type TestimonialsSettings = {
|
|
|
11140
11140
|
}
|
|
11141
11141
|
]
|
|
11142
11142
|
}
|
|
11143
|
-
},
|
|
11143
|
+
}, wd = {
|
|
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 Sd(e) {
|
|
11171
11171
|
return `
|
|
11172
11172
|
.${e}-container {
|
|
11173
11173
|
position: relative;
|
|
@@ -11295,7 +11295,7 @@ function wd(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: w, captionMarginTop: v, imageWidth: h, imageHeight: p, controlsWidth: m, controlsColor: b, controlsHoverColor: $ } = e, x = c > 0 && (!n || !!r), [f, F] = de(0), [S, M] = de(null), [y, T] = de(!1), B = Te(null), C = He(() => {
|
|
11299
11299
|
switch (a) {
|
|
11300
11300
|
case "center":
|
|
11301
11301
|
return "center";
|
|
@@ -11319,12 +11319,12 @@ 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 =
|
|
11323
|
-
var
|
|
11322
|
+
const _ = o[f], W = S === null ? null : o[S], V = (ne) => {
|
|
11323
|
+
var O, K, U, se, ve;
|
|
11324
11324
|
return {
|
|
11325
11325
|
fontSettings: {
|
|
11326
11326
|
fontFamily: (e == null ? void 0 : e[`${ne}FontFamily`]) ?? "Arial",
|
|
11327
|
-
fontWeight: ((
|
|
11327
|
+
fontWeight: ((O = e == null ? void 0 : e[`${ne}FontSettings`]) == null ? void 0 : O.fontWeight) ?? 400,
|
|
11328
11328
|
fontStyle: ((K = e == null ? void 0 : e[`${ne}FontSettings`]) == null ? void 0 : K.fontStyle) ?? "normal"
|
|
11329
11329
|
},
|
|
11330
11330
|
textAppearance: {
|
|
@@ -11339,10 +11339,10 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11339
11339
|
color: (e == null ? void 0 : e[`${ne}Color`]) ?? "#000000"
|
|
11340
11340
|
};
|
|
11341
11341
|
}, ee = V("text"), k = V("caption"), R = o.length > 1 && o.some((ne) => {
|
|
11342
|
-
var ce,
|
|
11343
|
-
return (((ce = ne.text) == null ? void 0 : ce.length) ?? 0) > 0 || (((
|
|
11344
|
-
}), D = Te(null), [N, A] = de(0), [j, X] = de(0), Q = e.controls ?? { mode: "Off", icon: null }, I = o.length > 1, te = ft((ne, ce) => !I || ce === ne ? ne : (
|
|
11345
|
-
M(null), T(!1),
|
|
11342
|
+
var ce, O;
|
|
11343
|
+
return (((ce = ne.text) == null ? void 0 : ce.length) ?? 0) > 0 || (((O = ne.caption) == null ? void 0 : O.length) ?? 0) > 0;
|
|
11344
|
+
}), D = Te(null), [N, A] = de(0), [j, X] = de(0), Q = e.controls ?? { mode: "Off", icon: null }, I = o.length > 1, te = ft((ne, ce) => !I || ce === ne ? ne : (B.current && window.clearTimeout(B.current), M(ne), T(!0), B.current = window.setTimeout(() => {
|
|
11345
|
+
M(null), T(!1), B.current = null;
|
|
11346
11346
|
}, 300), ce), [I]), g = ft(() => {
|
|
11347
11347
|
I && F((ne) => te(ne, (ne - 1 + o.length) % o.length));
|
|
11348
11348
|
}, [I, te, o.length]), J = ft(() => {
|
|
@@ -11351,17 +11351,17 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11351
11351
|
Ae(() => {
|
|
11352
11352
|
if (!x || !I) return;
|
|
11353
11353
|
const ne = Math.max(300, Td / c), ce = window.setInterval(() => {
|
|
11354
|
-
F((
|
|
11354
|
+
F((O) => te(O, (O + 1) % o.length));
|
|
11355
11355
|
}, ne);
|
|
11356
11356
|
return () => {
|
|
11357
11357
|
window.clearInterval(ce);
|
|
11358
11358
|
};
|
|
11359
11359
|
}, [x, I, te, o.length, c]), Ae(() => () => {
|
|
11360
|
-
|
|
11360
|
+
B.current && window.clearTimeout(B.current);
|
|
11361
11361
|
}, []);
|
|
11362
11362
|
const he = (ne, ce) => {
|
|
11363
|
-
var ve, Pe,
|
|
11364
|
-
const
|
|
11363
|
+
var ve, Pe, we, Ee;
|
|
11364
|
+
const O = 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
11365
|
return /* @__PURE__ */ re(Ge, { children: [
|
|
11366
11366
|
ne.text && /* @__PURE__ */ re("div", { style: { display: "flex", flexDirection: "column", alignItems: C, width: "100%" }, children: [
|
|
11367
11367
|
/* @__PURE__ */ l(
|
|
@@ -11369,7 +11369,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
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(w ?? 0, n ?? !1) }
|
|
11373
11373
|
}
|
|
11374
11374
|
),
|
|
11375
11375
|
/* @__PURE__ */ l(
|
|
@@ -11378,7 +11378,7 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11378
11378
|
...U && { "data-testimonial-measure": "text" },
|
|
11379
11379
|
style: {
|
|
11380
11380
|
...rt(ee, n),
|
|
11381
|
-
...
|
|
11381
|
+
...O && O > 0 ? { minHeight: O } : {},
|
|
11382
11382
|
textAlign: P,
|
|
11383
11383
|
pointerEvents: "auto"
|
|
11384
11384
|
},
|
|
@@ -11399,7 +11399,7 @@ 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: ((we = ne.image) == null ? void 0 : we.name) ?? "",
|
|
11403
11403
|
className: `${s}-icon`,
|
|
11404
11404
|
style: { objectFit: ((Ee = ne.image) == null ? void 0 : Ee.objectFit) || "contain" }
|
|
11405
11405
|
}
|
|
@@ -11443,14 +11443,14 @@ const Td = 3e3, Ld = ({ settings: e, content: t, isEditor: n, isPreviewMode: r,
|
|
|
11443
11443
|
zi(ne, le);
|
|
11444
11444
|
};
|
|
11445
11445
|
ce();
|
|
11446
|
-
const
|
|
11447
|
-
return
|
|
11448
|
-
|
|
11446
|
+
const O = new ResizeObserver(ce);
|
|
11447
|
+
return O.observe(ne), () => {
|
|
11448
|
+
O.disconnect();
|
|
11449
11449
|
};
|
|
11450
11450
|
}, [R, le, t]), !_) return /* @__PURE__ */ l(Ge, {});
|
|
11451
11451
|
const xe = R ? { textMinHeightPx: N, captionMinHeightPx: j } : void 0;
|
|
11452
11452
|
return /* @__PURE__ */ l(Ge, { children: /* @__PURE__ */ re("div", { className: `${s}-container`, children: [
|
|
11453
|
-
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html:
|
|
11453
|
+
/* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: Sd(s) } }),
|
|
11454
11454
|
/* @__PURE__ */ re(
|
|
11455
11455
|
"div",
|
|
11456
11456
|
{
|
|
@@ -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", w = 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 = w.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 = w.current;
|
|
12776
12776
|
if (!C) return;
|
|
12777
12777
|
const P = new ResizeObserver(() => F());
|
|
12778
12778
|
return P.observe(C), () => P.disconnect();
|
|
@@ -12790,9 +12790,9 @@ 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 S = () => {
|
|
12794
12794
|
m !== "closing" && b("closing");
|
|
12795
|
-
}, M = m === "open", y = m === "closing", T = y && i && !!r,
|
|
12795
|
+
}, M = m === "open", y = m === "closing", T = y && i && !!r, B = m === "opening" ? r ?? h : T ? r : h;
|
|
12796
12796
|
return /* @__PURE__ */ re(
|
|
12797
12797
|
"div",
|
|
12798
12798
|
{
|
|
@@ -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: S,
|
|
12808
12808
|
children: [
|
|
12809
12809
|
/* @__PURE__ */ l(
|
|
12810
12810
|
"div",
|
|
@@ -12832,7 +12832,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12832
12832
|
justifyContent: "center"
|
|
12833
12833
|
},
|
|
12834
12834
|
children: d ? /* @__PURE__ */ re(Ge, { children: [
|
|
12835
|
-
/* @__PURE__ */ l("div", { ref:
|
|
12835
|
+
/* @__PURE__ */ l("div", { ref: w, style: { position: "absolute", inset: 0 } }),
|
|
12836
12836
|
/* @__PURE__ */ l(
|
|
12837
12837
|
"div",
|
|
12838
12838
|
{
|
|
@@ -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: w, style: { width: "100%", height: "100%" } })
|
|
12874
12874
|
}
|
|
12875
12875
|
),
|
|
12876
12876
|
/* @__PURE__ */ l(
|
|
@@ -12895,7 +12895,7 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12895
12895
|
] })
|
|
12896
12896
|
}
|
|
12897
12897
|
),
|
|
12898
|
-
|
|
12898
|
+
B && /* @__PURE__ */ l(
|
|
12899
12899
|
"img",
|
|
12900
12900
|
{
|
|
12901
12901
|
ref: v,
|
|
@@ -12903,10 +12903,10 @@ function Rd({ images: e, index: t, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12903
12903
|
onLoad: F,
|
|
12904
12904
|
style: {
|
|
12905
12905
|
position: "fixed",
|
|
12906
|
-
top:
|
|
12907
|
-
left:
|
|
12908
|
-
width:
|
|
12909
|
-
height:
|
|
12906
|
+
top: B.top,
|
|
12907
|
+
left: B.left,
|
|
12908
|
+
width: B.width,
|
|
12909
|
+
height: B.height,
|
|
12910
12910
|
objectFit: n === "cover" ? "cover" : "contain",
|
|
12911
12911
|
opacity: y && !T ? 0 : 1,
|
|
12912
12912
|
transition: y && !T ? `opacity ${Ht}ms ${Yt}` : T || $ ? `top ${Ht}ms ${Yt}, left ${Ht}ms ${Yt}, width ${Ht}ms ${Yt}, height ${Ht}ms ${Yt}` : "none",
|
|
@@ -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: w = 100,
|
|
12966
12966
|
verticalGap: v,
|
|
12967
12967
|
entriesCount: h,
|
|
12968
12968
|
lightbox: p,
|
|
@@ -12972,11 +12972,11 @@ 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: S,
|
|
12976
12976
|
subtitleMarginTop: M,
|
|
12977
12977
|
titleColor: y,
|
|
12978
12978
|
subtitleColor: T,
|
|
12979
|
-
lightboxCounterColor:
|
|
12979
|
+
lightboxCounterColor: B,
|
|
12980
12980
|
titleFontFamily: C,
|
|
12981
12981
|
titleFontSettings: P,
|
|
12982
12982
|
titleFontSize: _,
|
|
@@ -13000,7 +13000,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13000
13000
|
lightboxCounterTextAppearance: xe,
|
|
13001
13001
|
showText: ne = "always",
|
|
13002
13002
|
alignEntries: ce = "off"
|
|
13003
|
-
} = e,
|
|
13003
|
+
} = e, O = {
|
|
13004
13004
|
fontSettings: {
|
|
13005
13005
|
fontFamily: C,
|
|
13006
13006
|
fontWeight: (P == null ? void 0 : P.fontWeight) ?? 400,
|
|
@@ -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
|
+
...St(rt(O, 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
|
+
...St(rt(se, n))
|
|
13031
|
+
}, we = {
|
|
13032
13032
|
fontSettings: {
|
|
13033
13033
|
fontFamily: I,
|
|
13034
13034
|
fontWeight: (te == null ? void 0 : te.fontWeight) ?? 400,
|
|
@@ -13039,9 +13039,9 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13039
13039
|
letterSpacing: he ?? 0,
|
|
13040
13040
|
wordSpacing: le ?? 0,
|
|
13041
13041
|
textAppearance: xe,
|
|
13042
|
-
color:
|
|
13042
|
+
color: B
|
|
13043
13043
|
}, Ie = {
|
|
13044
|
-
...
|
|
13044
|
+
...St(rt(we, n)),
|
|
13045
13045
|
...ro(g, J, a, n)
|
|
13046
13046
|
}, H = no(
|
|
13047
13047
|
_,
|
|
@@ -13061,11 +13061,11 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13061
13061
|
), G = Jn(a, {
|
|
13062
13062
|
titleColor: y,
|
|
13063
13063
|
subtitleColor: T,
|
|
13064
|
-
lightboxCounterColor:
|
|
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),
|
|
13064
|
+
lightboxCounterColor: B
|
|
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), Be = 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(Be ?? 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(
|
|
13068
|
+
}, Mt = `${a}-item-image-wrapper${Ft ? ` ${a}-item-image-wrapper-fit-slider` : ""}`.trim(), me = u === "c", ze = me && ce === "on", Ve = `calc(${L(Be ?? 0, n)} * (${w} / 100))`, Ze = L(Be * w / 100, n), Et = ie ? {
|
|
13069
13069
|
objectFit: "cover",
|
|
13070
13070
|
pointerEvents: "auto",
|
|
13071
13071
|
width: "100%",
|
|
@@ -13077,17 +13077,17 @@ 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,
|
|
13080
|
+
}, [Gt, Ct] = de("ltr"), [Nt, Bn] = de(0), Se = Te(null);
|
|
13081
13081
|
Ae(() => {
|
|
13082
|
-
const Re =
|
|
13082
|
+
const Re = Se.current;
|
|
13083
13083
|
if (!Re) return;
|
|
13084
13084
|
const ut = new ResizeObserver((pt) => {
|
|
13085
|
-
|
|
13085
|
+
Bn(Math.round(pt[0].contentRect.width));
|
|
13086
13086
|
});
|
|
13087
13087
|
return ut.observe(Re), () => ut.disconnect();
|
|
13088
13088
|
}, []);
|
|
13089
13089
|
const nt = (() => {
|
|
13090
|
-
const Re = { ...G }, ut =
|
|
13090
|
+
const Re = { ...G }, ut = Se.current ? getComputedStyle(Se.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;
|
|
@@ -13109,7 +13109,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13109
13109
|
/* @__PURE__ */ l("div", { style: G, children: /* @__PURE__ */ l(
|
|
13110
13110
|
"div",
|
|
13111
13111
|
{
|
|
13112
|
-
ref:
|
|
13112
|
+
ref: Se,
|
|
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))`,
|
|
@@ -13128,7 +13128,7 @@ 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(S ?? 0, n),
|
|
13132
13132
|
width: Ze
|
|
13133
13133
|
}
|
|
13134
13134
|
}
|
|
@@ -13153,7 +13153,7 @@ 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(S ?? 0, n),
|
|
13157
13157
|
width: Ze
|
|
13158
13158
|
}
|
|
13159
13159
|
}
|
|
@@ -13178,20 +13178,20 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
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" ? (() => {
|
|
13181
|
-
const
|
|
13181
|
+
const Oe = Re.image[0], lt = Re.image.filter((ot) => !Jt(ot)).map((ot) => ot.url);
|
|
13182
13182
|
return /* @__PURE__ */ l(
|
|
13183
13183
|
Ci,
|
|
13184
13184
|
{
|
|
13185
|
-
media:
|
|
13186
|
-
className: `${a}-item-${Jt(
|
|
13185
|
+
media: Oe,
|
|
13186
|
+
className: `${a}-item-${Jt(Oe) ? "video" : "image"}`.trim(),
|
|
13187
13187
|
style: Et,
|
|
13188
|
-
onImageClick: Jt(
|
|
13188
|
+
onImageClick: Jt(Oe) ? void 0 : (ot) => dr(ot, lt, 0)
|
|
13189
13189
|
}
|
|
13190
13190
|
);
|
|
13191
13191
|
})() : /* @__PURE__ */ re(Ge, { children: [
|
|
13192
|
-
Ft && /* @__PURE__ */ l("div", { className: `${a}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Re.image.map((
|
|
13192
|
+
Ft && /* @__PURE__ */ l("div", { className: `${a}-item-image-wrapper-sizer`, "aria-hidden": "true", children: Re.image.map((Oe) => Jt(Oe) ? /* @__PURE__ */ l("video", { src: Oe.url, muted: !0, playsInline: !0 }, `sizer-${Oe.url}`) : /* @__PURE__ */ l("img", { src: Oe.url, alt: "" }, `sizer-${Oe.url}`)) }),
|
|
13193
13193
|
/* @__PURE__ */ l(
|
|
13194
|
-
|
|
13194
|
+
Bo,
|
|
13195
13195
|
{
|
|
13196
13196
|
className: `${a}-item-slider`,
|
|
13197
13197
|
options: {
|
|
@@ -13210,27 +13210,27 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
13210
13210
|
pauseOnFocus: !1,
|
|
13211
13211
|
direction: F === "fade" ? "ltr" : f !== "random" ? f === "horizontal" ? "ltr" : "ttb" : Gt
|
|
13212
13212
|
},
|
|
13213
|
-
onMoved: (
|
|
13213
|
+
onMoved: (Oe) => {
|
|
13214
13214
|
if (f !== "random" || F === "fade") return;
|
|
13215
13215
|
const st = Math.random() > 0.5 ? Math.random() > 0.5 ? "rtl" : "ltr" : "ttb";
|
|
13216
13216
|
Ct(st), setTimeout(() => {
|
|
13217
|
-
|
|
13217
|
+
Oe.refresh();
|
|
13218
13218
|
}, 0);
|
|
13219
13219
|
},
|
|
13220
|
-
children: Re.image.map((
|
|
13221
|
-
const lt = Re.image.filter((tt) => !Jt(tt)), ot = lt.map((tt) => tt.url), vn = lt.findIndex((tt) => tt.url ===
|
|
13222
|
-
return /* @__PURE__ */ l(
|
|
13220
|
+
children: Re.image.map((Oe, st) => {
|
|
13221
|
+
const lt = Re.image.filter((tt) => !Jt(tt)), ot = lt.map((tt) => tt.url), vn = lt.findIndex((tt) => tt.url === Oe.url);
|
|
13222
|
+
return /* @__PURE__ */ l(Oo, { children: /* @__PURE__ */ l(
|
|
13223
13223
|
Ci,
|
|
13224
13224
|
{
|
|
13225
|
-
media:
|
|
13226
|
-
className: `${a}-item-${Jt(
|
|
13225
|
+
media: Oe,
|
|
13226
|
+
className: `${a}-item-${Jt(Oe) ? "video" : "image"}`.trim(),
|
|
13227
13227
|
style: Et,
|
|
13228
|
-
onImageClick: Jt(
|
|
13228
|
+
onImageClick: Jt(Oe) ? void 0 : (tt) => dr(tt, ot, vn)
|
|
13229
13229
|
}
|
|
13230
13230
|
) }, st);
|
|
13231
13231
|
})
|
|
13232
13232
|
},
|
|
13233
|
-
`${F}-${
|
|
13233
|
+
`${F}-${Be}-${f}-${x}-${Nt}-${c}`
|
|
13234
13234
|
)
|
|
13235
13235
|
] }) }), gt = me ? null : /* @__PURE__ */ re(Ge, { children: [
|
|
13236
13236
|
/* @__PURE__ */ l(
|
|
@@ -13239,7 +13239,7 @@ function Md({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
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(S ?? 0, n) : 0,
|
|
13243
13243
|
width: Ze
|
|
13244
13244
|
}
|
|
13245
13245
|
}
|
|
@@ -13280,7 +13280,7 @@ 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: (
|
|
13283
|
+
style: { width: (w ?? 0) > 100 ? `calc(${L(Be ?? 0, n)} * (${w} / 100))` : L(Be ?? 0, n) },
|
|
13284
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 })
|
|
@@ -13321,7 +13321,7 @@ const Nd = {
|
|
|
13321
13321
|
titleColor: "title-color",
|
|
13322
13322
|
subtitleColor: "subtitle-color",
|
|
13323
13323
|
lightboxCounterColor: "lightbox-counter-color"
|
|
13324
|
-
}, Hd = ["hover", "focus", "filled", "success", "error"],
|
|
13324
|
+
}, Hd = ["hover", "focus", "filled", "success", "error"], Bd = `import { Splide, SplideSlide } from '@splidejs/react-splide';\r
|
|
13325
13325
|
import '@splidejs/react-splide/css/core';\r
|
|
13326
13326
|
import { CommonComponentProps } from '../props';\r
|
|
13327
13327
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';\r
|
|
@@ -14499,7 +14499,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
14499
14499
|
fontStyle: { type: "string" }
|
|
14500
14500
|
}
|
|
14501
14501
|
}
|
|
14502
|
-
},
|
|
14502
|
+
}, Od = [
|
|
14503
14503
|
"titleColor",
|
|
14504
14504
|
"subtitleColor",
|
|
14505
14505
|
"lightboxCounterColor"
|
|
@@ -15172,7 +15172,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
15172
15172
|
}
|
|
15173
15173
|
],
|
|
15174
15174
|
paletteBookmark: {
|
|
15175
|
-
items: [...
|
|
15175
|
+
items: [...Od],
|
|
15176
15176
|
panelIds: ["general", "typeStyle"],
|
|
15177
15177
|
stateItems: {
|
|
15178
15178
|
default: ["titleColor", "subtitleColor", "lightboxCounterColor"]
|
|
@@ -15200,7 +15200,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
15200
15200
|
parameters: []
|
|
15201
15201
|
},
|
|
15202
15202
|
schema: Dd,
|
|
15203
|
-
sourceCode:
|
|
15203
|
+
sourceCode: Bd
|
|
15204
15204
|
};
|
|
15205
15205
|
function Vd(e) {
|
|
15206
15206
|
if (e.type === "video") return !0;
|
|
@@ -15244,7 +15244,7 @@ function qd({
|
|
|
15244
15244
|
}
|
|
15245
15245
|
);
|
|
15246
15246
|
}
|
|
15247
|
-
function
|
|
15247
|
+
function wr(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 wi(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 Si(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: ${wr(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: ${wr(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: ${wr(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 St(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, Sn = 4e-3, ao = Sn, 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;
|
|
@@ -15970,7 +15970,7 @@ function uu(e, t) {
|
|
|
15970
15970
|
transform: "translate(-50%, -50%)"
|
|
15971
15971
|
} : { ...n, left: "50%", top: "50%", transform: "translate(-50%, -50%)" };
|
|
15972
15972
|
}
|
|
15973
|
-
function
|
|
15973
|
+
function Bt({
|
|
15974
15974
|
P: e,
|
|
15975
15975
|
className: t,
|
|
15976
15976
|
areaStyle: n,
|
|
@@ -16055,7 +16055,7 @@ function ka(e, t, n) {
|
|
|
16055
16055
|
paddingRight: n * s
|
|
16056
16056
|
};
|
|
16057
16057
|
}
|
|
16058
|
-
function
|
|
16058
|
+
function Sr(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 w = Math.min(a, d);
|
|
16098
|
+
c[u] -= w, a -= w;
|
|
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], w = Wn[a], v = Rn[a], h = Tt[o], p = kn[o], m = Wn[o], b = Rn[o], $ = n[u], x = n[d], f = n[w], 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, w = (f) => {
|
|
16159
16159
|
if (u)
|
|
16160
16160
|
return f;
|
|
16161
|
-
const F = yr({ ...t, ...f }),
|
|
16161
|
+
const F = yr({ ...t, ...f }), S = zn(f), M = Sr(d, S, 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 w({
|
|
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 w({
|
|
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 = Sr(
|
|
16190
16190
|
d,
|
|
16191
16191
|
a,
|
|
16192
16192
|
yr(t)
|
|
16193
|
-
), $ =
|
|
16193
|
+
), $ = Sr(
|
|
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], S = t[f];
|
|
16201
|
+
return typeof F == "number" && typeof S == "number" && F !== S;
|
|
16202
16202
|
});
|
|
16203
|
-
return $ || x ?
|
|
16203
|
+
return $ || x ? w(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 wu(e, t) {
|
|
16213
16213
|
return Math.random() * (t - e) + e;
|
|
16214
16214
|
}
|
|
16215
|
-
function
|
|
16215
|
+
function Su(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: w,
|
|
16252
16252
|
wrapperWidth: v,
|
|
16253
16253
|
entriesCount: h,
|
|
16254
16254
|
cellMinHeight: p,
|
|
@@ -16258,11 +16258,11 @@ 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: S,
|
|
16262
16262
|
imageOnHover: M,
|
|
16263
16263
|
entryHoverEffect: y,
|
|
16264
16264
|
entryHoverShowOption: T,
|
|
16265
|
-
rowPaddingTop:
|
|
16265
|
+
rowPaddingTop: B,
|
|
16266
16266
|
rowPaddingBottom: C,
|
|
16267
16267
|
rowPaddingTopB: P,
|
|
16268
16268
|
columnsOrder: _,
|
|
@@ -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 = w === "b", J = Te(null), he = Te(null), [le, xe] = de(null), [ne, ce] = de(Qn), O = Aa(ne), K = Math.max(0, ((v ?? 0) - O) / 2), U = Math.min(W ?? 0, K), se = Math.max(U, Sn), ve = ((v ?? 0) + O) / 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), we = 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` : "" : ""} ${we}`.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
|
+
() => Su(e),
|
|
16333
16333
|
[
|
|
16334
16334
|
e.AColumnWidth,
|
|
16335
16335
|
e.BColumnWidth,
|
|
@@ -16374,15 +16374,15 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16374
16374
|
Ne
|
|
16375
16375
|
),
|
|
16376
16376
|
[fe, d, G, ae, ge, Ne]
|
|
16377
|
-
),
|
|
16377
|
+
), Be = zn(e), ie = He(
|
|
16378
16378
|
() => Tt.slice(0, d).map((Y) => G[Y]),
|
|
16379
16379
|
[d, G]
|
|
16380
16380
|
), Ce = He(
|
|
16381
|
-
() => jo(d,
|
|
16382
|
-
[d,
|
|
16381
|
+
() => jo(d, Be, G),
|
|
16382
|
+
[d, Be, G]
|
|
16383
16383
|
), We = He(
|
|
16384
|
-
() =>
|
|
16385
|
-
[d,
|
|
16384
|
+
() => Sr(d, Be, G),
|
|
16385
|
+
[d, Be, G]
|
|
16386
16386
|
), Me = He(
|
|
16387
16387
|
() => be.map((Y, pe) => ka(
|
|
16388
16388
|
We[pe] ?? 0,
|
|
@@ -16411,7 +16411,7 @@ 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 :
|
|
16414
|
+
}, me = (Y) => L(Y, n ?? !1), ze = g ? P ?? 0 : B ?? 0, Ve = C ?? 0, Ze = p ?? 0, Et = ze + Ze / 2, Gt = Math.max(Ve, ao), Ct = Si(
|
|
16415
16415
|
0,
|
|
16416
16416
|
vt.length,
|
|
16417
16417
|
oe,
|
|
@@ -16419,7 +16419,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16419
16419
|
bt,
|
|
16420
16420
|
m ?? 0,
|
|
16421
16421
|
n ?? !1
|
|
16422
|
-
).borderTopWidth, Nt = le != null ? `${le}px` : `calc(${Ct} + ${me(Et)})`,
|
|
16422
|
+
).borderTopWidth, Nt = le != null ? `${le}px` : `calc(${Ct} + ${me(Et)})`, Bn = g ? "rowPaddingTopB" : "rowPaddingTop", Se = be[0], nt = be[be.length - 1], Qe = Me[0], Ke = Me[Me.length - 1], dt = Se && Qe ? Math.max(Qe.paddingLeft, Sn) : 0, lr = nt && Ke ? Math.max(Ke.paddingRight, Sn) : 0, Kr = Be, 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 = (S == null ? void 0 : S.min) ?? 80, _e = (S == null ? void 0 : S.max) ?? 320, mt = (X == null ? void 0 : X.rowId) === Y.id ? X.widthPx : wu(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 && wi(Y, a);
|
|
16458
16458
|
};
|
|
16459
16459
|
yt(() => {
|
|
16460
16460
|
if (!u || g) {
|
|
@@ -16529,19 +16529,19 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16529
16529
|
}
|
|
16530
16530
|
const ye = () => {
|
|
16531
16531
|
const gt = Array.from(Y.querySelectorAll("[data-list-row]")), et = `${a}-list-col`, ht = `${a}-baseline-probe`;
|
|
16532
|
-
gt.forEach((
|
|
16533
|
-
|
|
16532
|
+
gt.forEach((Oe) => {
|
|
16533
|
+
Oe.querySelectorAll("[data-list-col]").forEach((st) => {
|
|
16534
16534
|
st.style.transform = "";
|
|
16535
16535
|
const lt = st.querySelector(`.${et}`);
|
|
16536
16536
|
lt && (lt.style.minHeight = "", lt.style.height = "");
|
|
16537
16537
|
const ot = st.querySelector(`.${a}-list-col-title`);
|
|
16538
16538
|
ot && (ot.style.transform = "");
|
|
16539
16539
|
});
|
|
16540
|
-
}), gt.forEach((
|
|
16541
|
-
const st = Array.from(
|
|
16542
|
-
ru(
|
|
16543
|
-
}), Y.offsetHeight, gt.forEach((
|
|
16544
|
-
const st = Array.from(
|
|
16540
|
+
}), gt.forEach((Oe) => {
|
|
16541
|
+
const st = Array.from(Oe.querySelectorAll("[data-list-col]"));
|
|
16542
|
+
ru(Oe, st, et);
|
|
16543
|
+
}), Y.offsetHeight, gt.forEach((Oe) => {
|
|
16544
|
+
const st = Array.from(Oe.querySelectorAll("[data-list-col]")), lt = Oe.getBoundingClientRect().top, ot = /* @__PURE__ */ new Map(), vn = st.map((Ue) => {
|
|
16545
16545
|
const bn = Ue.querySelector(`.${a}-list-col-title`), xn = {
|
|
16546
16546
|
el: Ue,
|
|
16547
16547
|
titleEl: bn,
|
|
@@ -16626,7 +16626,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16626
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 = Si(
|
|
16630
16630
|
pe,
|
|
16631
16631
|
vt.length,
|
|
16632
16632
|
oe,
|
|
@@ -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") && wi(_e, a);
|
|
16652
16652
|
},
|
|
16653
16653
|
children: [
|
|
16654
16654
|
ze > 0 && /* @__PURE__ */ l(
|
|
@@ -16666,7 +16666,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16666
16666
|
style: g ? void 0 : { minHeight: me(Ze) },
|
|
16667
16667
|
children: [
|
|
16668
16668
|
be.map((_e, mt) => {
|
|
16669
|
-
const gt = mt === be.length - 1, et = Me[mt], ht = _e.paddingBottom,
|
|
16669
|
+
const gt = mt === be.length - 1, et = Me[mt], ht = _e.paddingBottom, Oe = jd(Y.cells[_e.key]), st = g && Oe && ht > 0, lt = g ? { minHeight: me(Ze) } : { width: me(We[mt]) }, ot = g ? {
|
|
16670
16670
|
paddingLeft: me(U),
|
|
16671
16671
|
paddingRight: me(U)
|
|
16672
16672
|
} : {
|
|
@@ -16678,7 +16678,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16678
16678
|
e[`${_e.textPrefix}VerticalAlign`],
|
|
16679
16679
|
e,
|
|
16680
16680
|
vn
|
|
16681
|
-
), ur = g &&
|
|
16681
|
+
), ur = g && Oe && u && pe === 0;
|
|
16682
16682
|
return /* @__PURE__ */ re(
|
|
16683
16683
|
"div",
|
|
16684
16684
|
{
|
|
@@ -16727,7 +16727,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16727
16727
|
}
|
|
16728
16728
|
),
|
|
16729
16729
|
ur && /* @__PURE__ */ l(
|
|
16730
|
-
|
|
16730
|
+
Bt,
|
|
16731
16731
|
{
|
|
16732
16732
|
P: a,
|
|
16733
16733
|
"data-controls": _e.paddingBottomKey,
|
|
@@ -16753,7 +16753,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16753
16753
|
}),
|
|
16754
16754
|
u && pe === 0 && g && /* @__PURE__ */ re(Ge, { children: [
|
|
16755
16755
|
/* @__PURE__ */ l(
|
|
16756
|
-
|
|
16756
|
+
Bt,
|
|
16757
16757
|
{
|
|
16758
16758
|
P: a,
|
|
16759
16759
|
"data-controls": "textPaddingLR",
|
|
@@ -16775,7 +16775,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16775
16775
|
}
|
|
16776
16776
|
),
|
|
16777
16777
|
/* @__PURE__ */ l(
|
|
16778
|
-
|
|
16778
|
+
Bt,
|
|
16779
16779
|
{
|
|
16780
16780
|
P: a,
|
|
16781
16781
|
"data-controls": "textPaddingLR",
|
|
@@ -16791,7 +16791,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16791
16791
|
areaStyle: {
|
|
16792
16792
|
position: "absolute",
|
|
16793
16793
|
top: 0,
|
|
16794
|
-
left: me(Math.max(se,
|
|
16794
|
+
left: me(Math.max(se, Be - se)),
|
|
16795
16795
|
width: me(se),
|
|
16796
16796
|
height: "100%"
|
|
16797
16797
|
}
|
|
@@ -16809,7 +16809,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16809
16809
|
}
|
|
16810
16810
|
),
|
|
16811
16811
|
u && pe === 0 && !g && /* @__PURE__ */ l(
|
|
16812
|
-
|
|
16812
|
+
Bt,
|
|
16813
16813
|
{
|
|
16814
16814
|
P: a,
|
|
16815
16815
|
"data-controls": "rowPaddingBottom",
|
|
@@ -16835,10 +16835,10 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16835
16835
|
);
|
|
16836
16836
|
}),
|
|
16837
16837
|
u && /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
16838
|
-
|
|
16838
|
+
Bt,
|
|
16839
16839
|
{
|
|
16840
16840
|
P: a,
|
|
16841
|
-
"data-controls":
|
|
16841
|
+
"data-controls": Bn,
|
|
16842
16842
|
"data-controls-static-handle": "",
|
|
16843
16843
|
...g ? {} : { "data-controls-handle-left": "20" },
|
|
16844
16844
|
"data-controls-axis": "y",
|
|
@@ -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 && Se && nt && /* @__PURE__ */ re("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
16859
16859
|
/* @__PURE__ */ l(
|
|
16860
|
-
|
|
16860
|
+
Bt,
|
|
16861
16861
|
{
|
|
16862
16862
|
P: a,
|
|
16863
|
-
"data-controls":
|
|
16863
|
+
"data-controls": Se.paddingLeftKey,
|
|
16864
16864
|
"data-controls-static-handle": "",
|
|
16865
16865
|
"data-controls-axis": "x",
|
|
16866
16866
|
"data-controls-variant": "column-padding",
|
|
@@ -16880,7 +16880,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16880
16880
|
}
|
|
16881
16881
|
),
|
|
16882
16882
|
/* @__PURE__ */ l(
|
|
16883
|
-
|
|
16883
|
+
Bt,
|
|
16884
16884
|
{
|
|
16885
16885
|
P: a,
|
|
16886
16886
|
"data-controls": nt.paddingRightKey,
|
|
@@ -16907,14 +16907,14 @@ 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
|
+
Sn
|
|
16911
16911
|
), mt = Math.max(
|
|
16912
16912
|
Je.paddingLeft,
|
|
16913
|
-
|
|
16913
|
+
Sn
|
|
16914
16914
|
);
|
|
16915
16915
|
return /* @__PURE__ */ re("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
16916
16916
|
/* @__PURE__ */ l(
|
|
16917
|
-
|
|
16917
|
+
Bt,
|
|
16918
16918
|
{
|
|
16919
16919
|
P: a,
|
|
16920
16920
|
"data-controls": Y.paddingRightKey,
|
|
@@ -16938,7 +16938,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16938
16938
|
}
|
|
16939
16939
|
),
|
|
16940
16940
|
/* @__PURE__ */ l(
|
|
16941
|
-
|
|
16941
|
+
Bt,
|
|
16942
16942
|
{
|
|
16943
16943
|
P: a,
|
|
16944
16944
|
"data-controls": ye.paddingLeftKey,
|
|
@@ -16967,7 +16967,7 @@ function Lu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
16967
16967
|
pe,
|
|
16968
16968
|
Ce,
|
|
16969
16969
|
ie,
|
|
16970
|
-
|
|
16970
|
+
Be
|
|
16971
16971
|
), Ye = Ce.slice(0, pe + 1).reduce((Je, _e) => Je + _e, 0) - Ai / 2;
|
|
16972
16972
|
return /* @__PURE__ */ l("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: /* @__PURE__ */ l(
|
|
16973
16973
|
"div",
|
|
@@ -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 = wr(X.widthPx), pe = {
|
|
17049
17049
|
width: Y,
|
|
17050
17050
|
height: "auto",
|
|
17051
17051
|
maxHeight: Y,
|
|
@@ -20331,7 +20331,7 @@ function Hu() {
|
|
|
20331
20331
|
}
|
|
20332
20332
|
}), e;
|
|
20333
20333
|
}
|
|
20334
|
-
const
|
|
20334
|
+
const Bu = [
|
|
20335
20335
|
"textColor",
|
|
20336
20336
|
"backgroundColor",
|
|
20337
20337
|
"dividerColor",
|
|
@@ -20340,7 +20340,7 @@ const Ou = [
|
|
|
20340
20340
|
"dividerHoverColor"
|
|
20341
20341
|
];
|
|
20342
20342
|
Ra(jt);
|
|
20343
|
-
const
|
|
20343
|
+
const Ou = [
|
|
20344
20344
|
...Hn.flatMap((e) => [
|
|
20345
20345
|
`${e}ColumnWidth`,
|
|
20346
20346
|
`${e}ColumnPaddingLeft`,
|
|
@@ -20783,7 +20783,7 @@ const Bu = [
|
|
|
20783
20783
|
if: { name: "type", value: "a" },
|
|
20784
20784
|
then: { name: "properties.textPaddingLR.display.visible", value: !1 }
|
|
20785
20785
|
},
|
|
20786
|
-
...
|
|
20786
|
+
...Ou.map((e) => ({
|
|
20787
20787
|
if: { name: "type", value: "b" },
|
|
20788
20788
|
then: { name: `properties.${e}.display.visible`, value: !1 }
|
|
20789
20789
|
})),
|
|
@@ -20868,7 +20868,7 @@ const Bu = [
|
|
|
20868
20868
|
}
|
|
20869
20869
|
],
|
|
20870
20870
|
paletteBookmark: {
|
|
20871
|
-
items: [...
|
|
20871
|
+
items: [...Bu],
|
|
20872
20872
|
panelIds: ["general", "typeStyle"],
|
|
20873
20873
|
stateItems: {
|
|
20874
20874
|
default: [
|
|
@@ -20948,7 +20948,7 @@ function Gu(e) {
|
|
|
20948
20948
|
function Hi(e, t, n, r) {
|
|
20949
20949
|
return t !== void 0 && t < (e ?? 0.01) ? `${n} ${r}` : n;
|
|
20950
20950
|
}
|
|
20951
|
-
function
|
|
20951
|
+
function Bi(e, t, n, r) {
|
|
20952
20952
|
const i = e ?? 0.01;
|
|
20953
20953
|
return t === void 0 || t >= i ? {} : {
|
|
20954
20954
|
[`--${n}-text-leading-gap`]: L((i - t) / 2, r)
|
|
@@ -21150,7 +21150,7 @@ function Yu(e) {
|
|
|
21150
21150
|
}
|
|
21151
21151
|
`;
|
|
21152
21152
|
}
|
|
21153
|
-
function
|
|
21153
|
+
function Oi(e, t, n, r, i, s, o, c) {
|
|
21154
21154
|
return {
|
|
21155
21155
|
fontSettings: {
|
|
21156
21156
|
fontFamily: e,
|
|
@@ -21170,7 +21170,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21170
21170
|
wrapperWidth: a = 1,
|
|
21171
21171
|
cellMinHeight: u = 0,
|
|
21172
21172
|
dividerWidth: d = 694e-6,
|
|
21173
|
-
dividerStyle:
|
|
21173
|
+
dividerStyle: w = "solid",
|
|
21174
21174
|
entryHoverEffect: v = "default",
|
|
21175
21175
|
autoclose: h = "off",
|
|
21176
21176
|
icon: p,
|
|
@@ -21180,11 +21180,11 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21180
21180
|
questionColor: x = "#000000",
|
|
21181
21181
|
answerColor: f = "#000000",
|
|
21182
21182
|
dividerColor: F = "#0000001F",
|
|
21183
|
-
iconColor:
|
|
21183
|
+
iconColor: S = "#000000",
|
|
21184
21184
|
questionHoverColor: M = "#666666",
|
|
21185
21185
|
iconHoverColor: y = "#666666",
|
|
21186
21186
|
iconActiveColor: T = "#000000",
|
|
21187
|
-
dividerHoverColor:
|
|
21187
|
+
dividerHoverColor: B = "#000000",
|
|
21188
21188
|
questionFontFamily: C,
|
|
21189
21189
|
questionFontSettings: P,
|
|
21190
21190
|
questionFontSize: _,
|
|
@@ -21206,14 +21206,14 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21206
21206
|
answerPaddingRight: he = 0,
|
|
21207
21207
|
answerPaddingTop: le = 0,
|
|
21208
21208
|
answerPaddingBottom: xe = 0
|
|
21209
|
-
} = e, ne = t ?? [], [ce,
|
|
21209
|
+
} = e, ne = t ?? [], [ce, O] = de(() => /* @__PURE__ */ new Set()), K = !n || r;
|
|
21210
21210
|
Ae(() => {
|
|
21211
|
-
|
|
21211
|
+
O(/* @__PURE__ */ new Set());
|
|
21212
21212
|
}, [h]), Ae(() => {
|
|
21213
|
-
n && !i && !r &&
|
|
21213
|
+
n && !i && !r && O(/* @__PURE__ */ new Set());
|
|
21214
21214
|
}, [n, i, r]);
|
|
21215
|
-
const U = (me) => L(me, n ?? !1), se = Math.max(I, Xt), ve = Math.max(te, Xt), Pe = Math.max(g, Xt),
|
|
21216
|
-
|
|
21215
|
+
const U = (me) => L(me, n ?? !1), se = Math.max(I, Xt), ve = Math.max(te, Xt), Pe = Math.max(g, Xt), we = 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 !== "", Be = $.replace(/^rotate /, ""), ie = `${o}-icon-anim-${Be}`, Ce = St(rt(
|
|
21216
|
+
Oi(
|
|
21217
21217
|
C,
|
|
21218
21218
|
P,
|
|
21219
21219
|
_,
|
|
@@ -21224,8 +21224,8 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21224
21224
|
x
|
|
21225
21225
|
),
|
|
21226
21226
|
n
|
|
21227
|
-
)), We =
|
|
21228
|
-
|
|
21227
|
+
)), We = St(rt(
|
|
21228
|
+
Oi(
|
|
21229
21229
|
R,
|
|
21230
21230
|
D,
|
|
21231
21231
|
N,
|
|
@@ -21246,17 +21246,17 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21246
21246
|
A,
|
|
21247
21247
|
`${o}-answer-text`,
|
|
21248
21248
|
`${o}-text-tight-leading`
|
|
21249
|
-
), at =
|
|
21249
|
+
), at = Bi(_, W, o, n), vt = Bi(N, A, o, n), bt = Jn(o, {
|
|
21250
21250
|
questionColor: x,
|
|
21251
21251
|
answerColor: f,
|
|
21252
21252
|
dividerColor: F,
|
|
21253
|
-
iconColor:
|
|
21253
|
+
iconColor: S,
|
|
21254
21254
|
questionHoverColor: M,
|
|
21255
21255
|
iconHoverColor: y,
|
|
21256
21256
|
iconActiveColor: T,
|
|
21257
|
-
dividerHoverColor:
|
|
21257
|
+
dividerHoverColor: B
|
|
21258
21258
|
}, Ku, Uu), Pt = s && s !== "default" ? `${o}-state-${s}` : "", Ft = ft((me) => {
|
|
21259
|
-
K &&
|
|
21259
|
+
K && O((ze) => {
|
|
21260
21260
|
if (ze.has(me)) {
|
|
21261
21261
|
const Ze = new Set(ze);
|
|
21262
21262
|
return Ze.delete(me), Ze;
|
|
@@ -21268,7 +21268,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21268
21268
|
});
|
|
21269
21269
|
}, [K, h]), xt = He(() => Yu(o), [o]), Mt = {
|
|
21270
21270
|
[`--${o}-divider-width`]: L(d, n ?? !1),
|
|
21271
|
-
[`--${o}-divider-style`]:
|
|
21271
|
+
[`--${o}-divider-style`]: w,
|
|
21272
21272
|
[`--${o}-icon-max-width`]: L(m, n ?? !1),
|
|
21273
21273
|
...u > 0 ? { [`--${o}-question-min-height`]: L(u, n ?? !1) } : {}
|
|
21274
21274
|
};
|
|
@@ -21387,7 +21387,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21387
21387
|
qt,
|
|
21388
21388
|
{
|
|
21389
21389
|
url: fe,
|
|
21390
|
-
fill:
|
|
21390
|
+
fill: S,
|
|
21391
21391
|
hoverFill: y,
|
|
21392
21392
|
className: `${o}-icon-image`
|
|
21393
21393
|
}
|
|
@@ -21464,7 +21464,7 @@ function Xu({ settings: e, content: t, isEditor: n, isPreviewMode: r, isEditMode
|
|
|
21464
21464
|
position: "absolute",
|
|
21465
21465
|
top: 0,
|
|
21466
21466
|
left: 0,
|
|
21467
|
-
width: U(
|
|
21467
|
+
width: U(we),
|
|
21468
21468
|
height: "100%",
|
|
21469
21469
|
zIndex: 2
|
|
21470
21470
|
}
|
|
@@ -22452,7 +22452,7 @@ const Di = {
|
|
|
22452
22452
|
answer: [
|
|
22453
22453
|
{
|
|
22454
22454
|
type: "paragraph",
|
|
22455
|
-
children: [{ text: "
|
|
22455
|
+
children: [{ text: "The poem is divided into Inferno, Purgatorio, and Paradiso. These three sections follow Dante’s journey through Hell, Purgatory, and Heaven." }]
|
|
22456
22456
|
}
|
|
22457
22457
|
]
|
|
22458
22458
|
},
|
|
@@ -22461,7 +22461,7 @@ const Di = {
|
|
|
22461
22461
|
answer: [
|
|
22462
22462
|
{
|
|
22463
22463
|
type: "paragraph",
|
|
22464
|
-
children: [{ text: "
|
|
22464
|
+
children: [{ text: "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." }]
|
|
22465
22465
|
}
|
|
22466
22466
|
]
|
|
22467
22467
|
},
|
|
@@ -22470,7 +22470,7 @@ const Di = {
|
|
|
22470
22470
|
answer: [
|
|
22471
22471
|
{
|
|
22472
22472
|
type: "paragraph",
|
|
22473
|
-
children: [{ text: "
|
|
22473
|
+
children: [{ text: "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." }]
|
|
22474
22474
|
}
|
|
22475
22475
|
]
|
|
22476
22476
|
},
|
|
@@ -22777,6 +22777,25 @@ const Di = {
|
|
|
22777
22777
|
answerPaddingTop: 0.0533,
|
|
22778
22778
|
answerPaddingBottom: 0.0533
|
|
22779
22779
|
},
|
|
22780
|
+
t: {
|
|
22781
|
+
wrapperWidth: 0.651041,
|
|
22782
|
+
cellMinHeight: 0,
|
|
22783
|
+
dividerWidth: 390625e-8,
|
|
22784
|
+
iconMaxWidth: 0.02604166,
|
|
22785
|
+
iconPaddingRight: 0.0130208,
|
|
22786
|
+
questionFontSize: 0.0390625,
|
|
22787
|
+
questionLineHeight: 0.04427,
|
|
22788
|
+
questionLetterSpacing: -91145833e-11,
|
|
22789
|
+
answerFontSize: 0.0234375,
|
|
22790
|
+
answerLineHeight: 0.026041,
|
|
22791
|
+
questionPaddingLeft: 0,
|
|
22792
|
+
questionPaddingTop: 0.01302,
|
|
22793
|
+
questionPaddingBottom: 0.01302,
|
|
22794
|
+
answerPaddingLeft: 0.065104,
|
|
22795
|
+
answerPaddingRight: 0.09765625,
|
|
22796
|
+
answerPaddingTop: 0.026041,
|
|
22797
|
+
answerPaddingBottom: 0.026041
|
|
22798
|
+
},
|
|
22780
22799
|
d: {
|
|
22781
22800
|
wrapperWidth: 0.6388,
|
|
22782
22801
|
cellMinHeight: 0,
|
|
@@ -22901,7 +22920,7 @@ const Di = {
|
|
|
22901
22920
|
Xc,
|
|
22902
22921
|
ad,
|
|
22903
22922
|
vd,
|
|
22904
|
-
|
|
22923
|
+
wd,
|
|
22905
22924
|
Ad,
|
|
22906
22925
|
zd,
|
|
22907
22926
|
qu,
|