@cntrl-site/components 1.0.1-alpha.16 → 1.0.1-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -11
- package/dist/index.mjs +469 -465
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ import { createPortal as gr } from "react-dom";
|
|
|
6
6
|
function zl(t) {
|
|
7
7
|
return t.type === "object" && t.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const
|
|
10
|
-
wrapper:
|
|
11
|
-
hoverArrow:
|
|
12
|
-
sliderItem:
|
|
13
|
-
sliderImage:
|
|
9
|
+
const mr = "ControlSlider-module__wrapper___sHEkd", fr = "ControlSlider-module__hoverArrow___A-dOH", hr = "ControlSlider-module__sliderItem___QQSkR", yr = "ControlSlider-module__sliderImage___9hRl-", vr = "ControlSlider-module__arrow___05ghY", br = "ControlSlider-module__arrowVertical___tBfVN", Sr = "ControlSlider-module__nextArrow___-30Yc", Cr = "ControlSlider-module__arrowInner___aEra3", xr = "ControlSlider-module__arrowIcon___S4ztF", _r = "ControlSlider-module__arrowImg___2dwJW", $r = "ControlSlider-module__mirror___brd6U", wr = "ControlSlider-module__pagination___bicLF", Tr = "ControlSlider-module__paginationInner___bT-P-", Lr = "ControlSlider-module__paginationVertical___zYqKw", Er = "ControlSlider-module__paginationItem___nTRbk", Ar = "ControlSlider-module__dot___p1Qun", Ir = "ControlSlider-module__activeDot___LHFaj", kr = "ControlSlider-module__paginationInsideBottom___R3FWn", Fr = "ControlSlider-module__paginationInsideTop___V-qb-", Rr = "ControlSlider-module__paginationOutsideBottom___14w8D", Pr = "ControlSlider-module__paginationOutsideTop___SCLqB", Br = "ControlSlider-module__paginationInsideLeft___yOBRZ", Or = "ControlSlider-module__paginationInsideRight___Rtt3o", Nr = "ControlSlider-module__paginationOutsideLeft___lahaw", Wr = "ControlSlider-module__paginationOutsideRight___EtuQa", zr = "ControlSlider-module__imgWrapper___UjEgB", Vr = "ControlSlider-module__captionBlock___dJ6-j", Mr = "ControlSlider-module__captionTextWrapper___HFlpf", Dr = "ControlSlider-module__captionText___uGBVc", Hr = "ControlSlider-module__active___WZK4G", jr = "ControlSlider-module__withPointerEvents___t-18M", Ur = "ControlSlider-module__topLeftAlignment___zjnGM", Yr = "ControlSlider-module__topCenterAlignment___gD1xW", Gr = "ControlSlider-module__topRightAlignment___NMapS", qr = "ControlSlider-module__middleLeftAlignment___OnUrY", Xr = "ControlSlider-module__middleCenterAlignment___Tdkl0", Kr = "ControlSlider-module__middleRightAlignment___wEbfX", Jr = "ControlSlider-module__bottomLeftAlignment___cTP2-", Zr = "ControlSlider-module__bottomCenterAlignment___c54fB", Qr = "ControlSlider-module__bottomRightAlignment___kEwrz", ti = "ControlSlider-module__clickOverlay___DZA28", ei = "ControlSlider-module__contain___pLyq7", ni = "ControlSlider-module__cover___KdDat", U = {
|
|
10
|
+
wrapper: mr,
|
|
11
|
+
hoverArrow: fr,
|
|
12
|
+
sliderItem: hr,
|
|
13
|
+
sliderImage: yr,
|
|
14
14
|
arrow: vr,
|
|
15
15
|
arrowVertical: br,
|
|
16
16
|
nextArrow: Sr,
|
|
@@ -60,10 +60,10 @@ function oi(t, e) {
|
|
|
60
60
|
function ri(t, e, n) {
|
|
61
61
|
return e && oi(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
62
62
|
}
|
|
63
|
-
var Jn = "(prefers-reduced-motion: reduce)",
|
|
64
|
-
CREATED:
|
|
63
|
+
var Jn = "(prefers-reduced-motion: reduce)", me = 1, ii = 2, ye = 3, Se = 4, Pe = 5, Ue = 6, Ke = 7, ai = {
|
|
64
|
+
CREATED: me,
|
|
65
65
|
MOUNTED: ii,
|
|
66
|
-
IDLE:
|
|
66
|
+
IDLE: ye,
|
|
67
67
|
MOVING: Se,
|
|
68
68
|
SCROLLING: Pe,
|
|
69
69
|
DRAGGING: Ue,
|
|
@@ -180,7 +180,7 @@ function Q(t, e, n) {
|
|
|
180
180
|
In(n) || n === "" ? Ot(o, e) : o.setAttribute(e, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function fe(t, e, n) {
|
|
184
184
|
var o = document.createElement(t);
|
|
185
185
|
return e && (Jt(e) ? Bt(o, e) : Q(o, e)), n && Ne(n, o), o;
|
|
186
186
|
}
|
|
@@ -267,15 +267,15 @@ function li(t) {
|
|
|
267
267
|
function ko() {
|
|
268
268
|
var t = [];
|
|
269
269
|
function e(i, c, s, p) {
|
|
270
|
-
r(i, c, function(u, C,
|
|
270
|
+
r(i, c, function(u, C, y) {
|
|
271
271
|
var g = "addEventListener" in u, l = g ? u.removeEventListener.bind(u, C, s, p) : u.removeListener.bind(u, s);
|
|
272
|
-
g ? u.addEventListener(C, s, p) : u.addListener(s), t.push([u, C,
|
|
272
|
+
g ? u.addEventListener(C, s, p) : u.addListener(s), t.push([u, C, y, s, l]);
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function n(i, c, s) {
|
|
276
276
|
r(i, c, function(p, u, C) {
|
|
277
|
-
t = t.filter(function(
|
|
278
|
-
return
|
|
277
|
+
t = t.filter(function(y) {
|
|
278
|
+
return y[0] === p && y[1] === u && y[2] === C && (!s || y[3] === s) ? (y[4](), !1) : !0;
|
|
279
279
|
});
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -290,8 +290,8 @@ function ko() {
|
|
|
290
290
|
At(i, function(p) {
|
|
291
291
|
p && At(c, function(u) {
|
|
292
292
|
u.split(" ").forEach(function(C) {
|
|
293
|
-
var
|
|
294
|
-
s(p,
|
|
293
|
+
var y = C.split(".");
|
|
294
|
+
s(p, y[0], y[1]);
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
});
|
|
@@ -308,7 +308,7 @@ function ko() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var te = "mounted", $n = "ready", Ut = "move", Ce = "moved", On = "click", Fo = "active", Ro = "inactive", Po = "visible", Bo = "hidden",
|
|
311
|
+
var te = "mounted", $n = "ready", Ut = "move", Ce = "moved", On = "click", Fo = "active", Ro = "inactive", Po = "visible", Bo = "hidden", yt = "refresh", Ct = "updated", ve = "resize", nn = "resized", Oo = "drag", No = "dragging", Wo = "dragged", on = "scroll", le = "scrolled", si = "overflow", Nn = "destroy", zo = "arrows:mounted", Vo = "arrows:updated", Mo = "pagination:mounted", Do = "pagination:updated", Wn = "navigation:mounted", zn = "autoplay:play", Ho = "autoplay:playing", Vn = "autoplay:pause", Mn = "lazyload:loaded", jo = "sk", Uo = "sh", Qe = "ei";
|
|
312
312
|
function gt(t) {
|
|
313
313
|
var e = t ? t.event.bus : document.createDocumentFragment(), n = ko();
|
|
314
314
|
function o(a, i) {
|
|
@@ -331,14 +331,14 @@ function rn(t, e, n, o) {
|
|
|
331
331
|
function u() {
|
|
332
332
|
if (!s) {
|
|
333
333
|
if (i = t ? Zt((r() - a) / t, 1) : 1, n && n(i), i >= 1 && (e(), a = r(), o && ++p >= o))
|
|
334
|
-
return
|
|
334
|
+
return y();
|
|
335
335
|
c = Zn(u);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
function C(b) {
|
|
339
339
|
b || l(), a = r() - (b ? i * t : 0), s = !1, c = Zn(u);
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function y() {
|
|
342
342
|
s = !0;
|
|
343
343
|
}
|
|
344
344
|
function g() {
|
|
@@ -356,7 +356,7 @@ function rn(t, e, n, o) {
|
|
|
356
356
|
return {
|
|
357
357
|
start: C,
|
|
358
358
|
rewind: g,
|
|
359
|
-
pause:
|
|
359
|
+
pause: y,
|
|
360
360
|
cancel: l,
|
|
361
361
|
set: d,
|
|
362
362
|
isPaused: w
|
|
@@ -399,21 +399,21 @@ function pi(t, e, n) {
|
|
|
399
399
|
i.bind(w, "change", C), c.push([l, w]);
|
|
400
400
|
}
|
|
401
401
|
function C() {
|
|
402
|
-
var l = o.is(Ke), d = n.direction, w = c.reduce(function(b,
|
|
403
|
-
return Kt(b,
|
|
402
|
+
var l = o.is(Ke), d = n.direction, w = c.reduce(function(b, h) {
|
|
403
|
+
return Kt(b, h[1].matches ? h[0] : {});
|
|
404
404
|
}, {});
|
|
405
405
|
Qn(n), g(w), n.destroy ? t.destroy(n.destroy === "completely") : l ? (p(!0), t.mount()) : d !== n.direction && t.refresh();
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function y(l) {
|
|
408
408
|
matchMedia(Jn).matches && (l ? Kt(n, a) : Qn(n, Ae(a)));
|
|
409
409
|
}
|
|
410
410
|
function g(l, d, w) {
|
|
411
|
-
Kt(n, l), d && Kt(Object.getPrototypeOf(n), l), (w || !o.is(
|
|
411
|
+
Kt(n, l), d && Kt(Object.getPrototypeOf(n), l), (w || !o.is(me)) && t.emit(Ct, n);
|
|
412
412
|
}
|
|
413
413
|
return {
|
|
414
414
|
setup: s,
|
|
415
415
|
destroy: p,
|
|
416
|
-
reduce:
|
|
416
|
+
reduce: y,
|
|
417
417
|
set: g
|
|
418
418
|
};
|
|
419
419
|
}
|
|
@@ -444,7 +444,7 @@ function di(t, e, n) {
|
|
|
444
444
|
orient: r
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Ht = "role",
|
|
447
|
+
var Ht = "role", he = "tabindex", gi = "disabled", Pt = "aria-", Ve = Pt + "controls", qo = Pt + "current", oo = Pt + "selected", Et = Pt + "label", Dn = Pt + "labelledby", Xo = Pt + "hidden", Hn = Pt + "orientation", Re = Pt + "roledescription", ro = Pt + "live", io = Pt + "busy", ao = Pt + "atomic", jn = [Ht, he, gi, Ve, qo, Et, Dn, Xo, Hn, Re], Nt = ze + "__", ee = "is-", mn = ze, lo = Nt + "track", mi = Nt + "list", un = Nt + "slide", Ko = un + "--clone", fi = un + "__container", Un = Nt + "arrows", pn = Nt + "arrow", Jo = pn + "--prev", Zo = pn + "--next", dn = Nt + "pagination", Qo = dn + "__page", hi = Nt + "progress", yi = hi + "__bar", vi = Nt + "toggle", bi = Nt + "spinner", Si = Nt + "sr", Ci = ee + "initialized", ae = ee + "active", tr = ee + "prev", er = ee + "next", wn = ee + "visible", Tn = ee + "loading", nr = ee + "focus-in", or = ee + "overflow", xi = [ae, wn, tr, er, Tn, nr, or], _i = {
|
|
448
448
|
slide: un,
|
|
449
449
|
clone: Ko,
|
|
450
450
|
arrows: Un,
|
|
@@ -462,14 +462,14 @@ function $i(t, e) {
|
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var wi = 5, so = 200, rr = "touchstart mousedown",
|
|
465
|
+
var wi = 5, so = 200, rr = "touchstart mousedown", fn = "touchmove mousemove", hn = "touchend touchcancel mouseup click";
|
|
466
466
|
function Ti(t, e, n) {
|
|
467
|
-
var o = gt(t), r = o.on, a = o.bind, i = t.root, c = n.i18n, s = {}, p = [], u = [], C = [],
|
|
467
|
+
var o = gt(t), r = o.on, a = o.bind, i = t.root, c = n.i18n, s = {}, p = [], u = [], C = [], y, g, l;
|
|
468
468
|
function d() {
|
|
469
|
-
x(), V(),
|
|
469
|
+
x(), V(), h();
|
|
470
470
|
}
|
|
471
471
|
function w() {
|
|
472
|
-
r(
|
|
472
|
+
r(yt, b), r(yt, d), r(Ct, h), a(document, rr + " keydown", function(v) {
|
|
473
473
|
l = v.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
@@ -479,38 +479,38 @@ function Ti(t, e, n) {
|
|
|
479
479
|
}
|
|
480
480
|
function b(v) {
|
|
481
481
|
var T = jn.concat("style");
|
|
482
|
-
jt(p), Dt(i, u), Dt(
|
|
482
|
+
jt(p), Dt(i, u), Dt(y, C), Ot([y, g], T), Ot(i, v ? T : ["style", Re]);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
Dt(i, u), Dt(
|
|
484
|
+
function h() {
|
|
485
|
+
Dt(i, u), Dt(y, C), u = L(mn), C = L(lo), Bt(i, u), Bt(y, C), Q(i, Et, n.label), Q(i, Dn, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function x() {
|
|
488
|
-
|
|
488
|
+
y = N("." + lo), g = We(y, "." + mi), _e(y && g, "A track/list element is missing."), Ye(p, To(g, "." + un + ":not(." + Ko + ")")), re({
|
|
489
489
|
arrows: Un,
|
|
490
490
|
pagination: dn,
|
|
491
491
|
prev: Jo,
|
|
492
492
|
next: Zo,
|
|
493
|
-
bar:
|
|
493
|
+
bar: yi,
|
|
494
494
|
toggle: vi
|
|
495
495
|
}, function(v, T) {
|
|
496
496
|
s[T] = N("." + v);
|
|
497
497
|
}), Ie(s, {
|
|
498
498
|
root: i,
|
|
499
|
-
track:
|
|
499
|
+
track: y,
|
|
500
500
|
list: g,
|
|
501
501
|
slides: p
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function V() {
|
|
505
505
|
var v = i.id || li(ze), T = n.role;
|
|
506
|
-
i.id = v,
|
|
506
|
+
i.id = v, y.id = y.id || v + "-track", g.id = g.id || v + "-list", !Rt(i, Ht) && i.tagName !== "SECTION" && T && Q(i, Ht, T), Q(i, Re, c.carousel), Q(g, Ht, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function N(v) {
|
|
509
509
|
var T = Ao(i, v);
|
|
510
|
-
return T && $i(T, "." +
|
|
510
|
+
return T && $i(T, "." + mn) === i ? T : void 0;
|
|
511
511
|
}
|
|
512
512
|
function L(v) {
|
|
513
|
-
return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v ===
|
|
513
|
+
return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v === mn && ae];
|
|
514
514
|
}
|
|
515
515
|
return Ie(s, {
|
|
516
516
|
setup: d,
|
|
@@ -520,15 +520,15 @@ function Ti(t, e, n) {
|
|
|
520
520
|
}
|
|
521
521
|
var be = "slide", xe = "loop", Me = "fade";
|
|
522
522
|
function Li(t, e, n, o) {
|
|
523
|
-
var r = gt(t), a = r.on, i = r.emit, c = r.bind, s = t.Components, p = t.root, u = t.options, C = u.isNavigation,
|
|
523
|
+
var r = gt(t), a = r.on, i = r.emit, c = r.bind, s = t.Components, p = t.root, u = t.options, C = u.isNavigation, y = u.updateOnMove, g = u.i18n, l = u.pagination, d = u.slideFocus, w = s.Direction.resolve, b = Rt(o, "style"), h = Rt(o, Et), x = n > -1, V = We(o, "." + fi), N;
|
|
524
524
|
function L() {
|
|
525
|
-
x || (o.id = p.id + "-slide" + Bn(e + 1), Q(o, Ht, l ? "tabpanel" : "group"), Q(o, Re, g.slide), Q(o, Et,
|
|
525
|
+
x || (o.id = p.id + "-slide" + Bn(e + 1), Q(o, Ht, l ? "tabpanel" : "group"), Q(o, Re, g.slide), Q(o, Et, h || _n(g.slideLabel, [e + 1, t.length]))), v();
|
|
526
526
|
}
|
|
527
527
|
function v() {
|
|
528
|
-
c(o, "click", ut(i, On, _)), c(o, "keydown", ut(i, jo, _)), a([Ce, Uo, le], A), a(Wn, k),
|
|
528
|
+
c(o, "click", ut(i, On, _)), c(o, "keydown", ut(i, jo, _)), a([Ce, Uo, le], A), a(Wn, k), y && a(Ut, z);
|
|
529
529
|
}
|
|
530
530
|
function T() {
|
|
531
|
-
N = !0, r.destroy(), Dt(o, xi), Ot(o, jn), Q(o, "style", b), Q(o, Et,
|
|
531
|
+
N = !0, r.destroy(), Dt(o, xi), Ot(o, jn), Q(o, "style", b), Q(o, Et, h || "");
|
|
532
532
|
}
|
|
533
533
|
function k() {
|
|
534
534
|
var $ = t.splides.map(function(S) {
|
|
@@ -551,8 +551,8 @@ function Li(t, e, n, o) {
|
|
|
551
551
|
$ !== to(o, ae) && (Mt(o, ae, $), Q(o, qo, C && $ || ""), i($ ? Fo : Ro, _));
|
|
552
552
|
}
|
|
553
553
|
function B() {
|
|
554
|
-
var $ =
|
|
555
|
-
if (t.state.is([Se, Pe]) || Q(o, Xo, S || ""), Q(Rn(o, u.focusableNodes || ""),
|
|
554
|
+
var $ = f(), S = !$ && (!H() || x);
|
|
555
|
+
if (t.state.is([Se, Pe]) || Q(o, Xo, S || ""), Q(Rn(o, u.focusableNodes || ""), he, S ? -1 : ""), d && Q(o, he, S ? -1 : 0), $ !== to(o, wn) && (Mt(o, wn, $), i($ ? Po : Bo, _)), !$ && document.activeElement === o) {
|
|
556
556
|
var O = s.Slides.getAt(t.index);
|
|
557
557
|
O && Lo(O.slide);
|
|
558
558
|
}
|
|
@@ -564,7 +564,7 @@ function Li(t, e, n, o) {
|
|
|
564
564
|
var $ = t.index;
|
|
565
565
|
return $ === e || u.cloneStatus && $ === n;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function f() {
|
|
568
568
|
if (t.is(Me))
|
|
569
569
|
return H();
|
|
570
570
|
var $ = Lt(s.Elements.track), S = Lt(o), O = w("left", !0), G = w("right", !0);
|
|
@@ -591,9 +591,9 @@ function Li(t, e, n, o) {
|
|
|
591
591
|
function Ei(t, e, n) {
|
|
592
592
|
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Elements, s = c.slides, p = c.list, u = [];
|
|
593
593
|
function C() {
|
|
594
|
-
|
|
594
|
+
y(), r(yt, g), r(yt, y);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function y() {
|
|
597
597
|
s.forEach(function(A, R) {
|
|
598
598
|
d(A, R, -1);
|
|
599
599
|
});
|
|
@@ -610,8 +610,8 @@ function Ei(t, e, n) {
|
|
|
610
610
|
}
|
|
611
611
|
function d(A, R, B) {
|
|
612
612
|
var j = Li(t, R, B, A);
|
|
613
|
-
j.mount(), u.push(j), u.sort(function(H,
|
|
614
|
-
return H.index -
|
|
613
|
+
j.mount(), u.push(j), u.sort(function(H, f) {
|
|
614
|
+
return H.index - f.index;
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function w(A) {
|
|
@@ -625,7 +625,7 @@ function Ei(t, e, n) {
|
|
|
625
625
|
return Ge(H.index, B, B + j - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function h(A) {
|
|
629
629
|
return L(A)[0];
|
|
630
630
|
}
|
|
631
631
|
function x(A, R) {
|
|
@@ -634,12 +634,12 @@ function Ei(t, e, n) {
|
|
|
634
634
|
var j = s[R];
|
|
635
635
|
j ? Fn(B, j) : Ne(p, B), Bt(B, n.classes.slide), T(B, ut(a, ve));
|
|
636
636
|
}
|
|
637
|
-
}), a(
|
|
637
|
+
}), a(yt);
|
|
638
638
|
}
|
|
639
639
|
function V(A) {
|
|
640
640
|
ie(L(A).map(function(R) {
|
|
641
641
|
return R.slide;
|
|
642
|
-
})), a(
|
|
642
|
+
})), a(yt);
|
|
643
643
|
}
|
|
644
644
|
function N(A, R) {
|
|
645
645
|
w(R).forEach(A);
|
|
@@ -675,7 +675,7 @@ function Ei(t, e, n) {
|
|
|
675
675
|
register: d,
|
|
676
676
|
get: w,
|
|
677
677
|
getIn: b,
|
|
678
|
-
getAt:
|
|
678
|
+
getAt: h,
|
|
679
679
|
add: x,
|
|
680
680
|
remove: V,
|
|
681
681
|
forEach: N,
|
|
@@ -686,9 +686,9 @@ function Ei(t, e, n) {
|
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
688
|
function Ai(t, e, n) {
|
|
689
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = e.Slides, s = e.Direction.resolve, p = e.Elements, u = p.root, C = p.track,
|
|
690
|
-
function
|
|
691
|
-
x(), a(window, "resize load", ui(ut(i, ve))), r([Ct,
|
|
689
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = e.Slides, s = e.Direction.resolve, p = e.Elements, u = p.root, C = p.track, y = p.list, g = c.getAt, l = c.style, d, w, b;
|
|
690
|
+
function h() {
|
|
691
|
+
x(), a(window, "resize load", ui(ut(i, ve))), r([Ct, yt], x), r(ve, V);
|
|
692
692
|
}
|
|
693
693
|
function x() {
|
|
694
694
|
d = n.direction === cn, Ft(u, "maxWidth", ne(n.width)), Ft(C, s("paddingLeft"), N(!1)), Ft(C, s("paddingRight"), N(!0)), V(!0);
|
|
@@ -706,7 +706,7 @@ function Ai(t, e, n) {
|
|
|
706
706
|
return d && (_ = v(), _e(_, "height or heightRatio is missing."), _ = "calc(" + _ + " - " + N(!1) + " - " + N(!0) + ")"), _;
|
|
707
707
|
}
|
|
708
708
|
function v() {
|
|
709
|
-
return ne(n.height || Lt(
|
|
709
|
+
return ne(n.height || Lt(y).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
711
|
function T() {
|
|
712
712
|
return n.autoWidth ? null : ne(n.fixedWidth) || (d ? "" : z());
|
|
@@ -719,7 +719,7 @@ function Ai(t, e, n) {
|
|
|
719
719
|
return "calc((100%" + (_ && " + " + _) + ")/" + (n.perPage || 1) + (_ && " - " + _) + ")";
|
|
720
720
|
}
|
|
721
721
|
function A() {
|
|
722
|
-
return Lt(
|
|
722
|
+
return Lt(y)[s("width")];
|
|
723
723
|
}
|
|
724
724
|
function R(_, $) {
|
|
725
725
|
var S = g(_ || 0);
|
|
@@ -728,7 +728,7 @@ function Ai(t, e, n) {
|
|
|
728
728
|
function B(_, $) {
|
|
729
729
|
var S = g(_);
|
|
730
730
|
if (S) {
|
|
731
|
-
var O = Lt(S.slide)[s("right")], G = Lt(
|
|
731
|
+
var O = Lt(S.slide)[s("right")], G = Lt(y)[s("left")];
|
|
732
732
|
return _t(O - G) + ($ ? 0 : H());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
@@ -740,20 +740,20 @@ function Ai(t, e, n) {
|
|
|
740
740
|
var _ = g(0);
|
|
741
741
|
return _ && parseFloat(Ft(_.slide, s("marginRight"))) || 0;
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function f(_) {
|
|
744
744
|
return parseFloat(Ft(C, s("padding" + (_ ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function I() {
|
|
747
747
|
return t.is(Me) || j(!0) > A();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
|
-
mount:
|
|
750
|
+
mount: h,
|
|
751
751
|
resize: V,
|
|
752
752
|
listSize: A,
|
|
753
753
|
slideSize: R,
|
|
754
754
|
sliderSize: j,
|
|
755
755
|
totalSize: B,
|
|
756
|
-
getPadding:
|
|
756
|
+
getPadding: f,
|
|
757
757
|
isOverflow: I
|
|
758
758
|
};
|
|
759
759
|
}
|
|
@@ -761,59 +761,59 @@ var Ii = 2;
|
|
|
761
761
|
function ki(t, e, n) {
|
|
762
762
|
var o = gt(t), r = o.on, a = e.Elements, i = e.Slides, c = e.Direction.resolve, s = [], p;
|
|
763
763
|
function u() {
|
|
764
|
-
r(
|
|
764
|
+
r(yt, C), r([Ct, ve], g), (p = w()) && (l(p), e.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
766
|
function C() {
|
|
767
|
-
|
|
767
|
+
y(), u();
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function y() {
|
|
770
770
|
ie(s), jt(s), o.destroy();
|
|
771
771
|
}
|
|
772
772
|
function g() {
|
|
773
773
|
var b = w();
|
|
774
|
-
p !== b && (p < b || !b) && o.emit(
|
|
774
|
+
p !== b && (p < b || !b) && o.emit(yt);
|
|
775
775
|
}
|
|
776
776
|
function l(b) {
|
|
777
|
-
var
|
|
777
|
+
var h = i.get().slice(), x = h.length;
|
|
778
778
|
if (x) {
|
|
779
|
-
for (;
|
|
780
|
-
Ye(
|
|
781
|
-
Ye(
|
|
779
|
+
for (; h.length < b; )
|
|
780
|
+
Ye(h, h);
|
|
781
|
+
Ye(h.slice(-b), h.slice(0, b)).forEach(function(V, N) {
|
|
782
782
|
var L = N < b, v = d(V.slide, N);
|
|
783
|
-
L ? Fn(v,
|
|
783
|
+
L ? Fn(v, h[0].slide) : Ne(a.list, v), Ye(s, v), i.register(v, N - b + (L ? 0 : x), V.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function d(b,
|
|
787
|
+
function d(b, h) {
|
|
788
788
|
var x = b.cloneNode(!0);
|
|
789
|
-
return Bt(x, n.classes.clone), x.id = t.root.id + "-clone" + Bn(
|
|
789
|
+
return Bt(x, n.classes.clone), x.id = t.root.id + "-clone" + Bn(h + 1), x;
|
|
790
790
|
}
|
|
791
791
|
function w() {
|
|
792
792
|
var b = n.clones;
|
|
793
793
|
if (!t.is(xe))
|
|
794
794
|
b = 0;
|
|
795
795
|
else if (Be(b)) {
|
|
796
|
-
var
|
|
796
|
+
var h = n[c("fixedWidth")] && e.Layout.slideSize(0), x = h && Fe(Lt(a.track)[c("width")] / h);
|
|
797
797
|
b = x || n[c("autoWidth")] && t.length || n.perPage * Ii;
|
|
798
798
|
}
|
|
799
799
|
return b;
|
|
800
800
|
}
|
|
801
801
|
return {
|
|
802
802
|
mount: u,
|
|
803
|
-
destroy:
|
|
803
|
+
destroy: y
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
function Fi(t, e, n) {
|
|
807
|
-
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Layout, s = c.slideSize, p = c.getPadding, u = c.totalSize, C = c.listSize,
|
|
807
|
+
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Layout, s = c.slideSize, p = c.getPadding, u = c.totalSize, C = c.listSize, y = c.sliderSize, g = e.Direction, l = g.resolve, d = g.orient, w = e.Elements, b = w.list, h = w.track, x;
|
|
808
808
|
function V() {
|
|
809
|
-
x = e.Transition, r([te, nn, Ct,
|
|
809
|
+
x = e.Transition, r([te, nn, Ct, yt], N);
|
|
810
810
|
}
|
|
811
811
|
function N() {
|
|
812
812
|
e.Controller.isBusy() || (e.Scroll.cancel(), v(t.index), e.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function L(S, O, G, nt) {
|
|
815
815
|
S !== O && _(S > G) && (A(), T(z(j(), S > G), !0)), i(Se), a(Ut, O, G, S), x.start(O, function() {
|
|
816
|
-
i(
|
|
816
|
+
i(ye), a(Ce, O, G, S), nt && nt();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function v(S) {
|
|
@@ -833,7 +833,7 @@ function Fi(t, e, n) {
|
|
|
833
833
|
return S;
|
|
834
834
|
}
|
|
835
835
|
function z(S, O) {
|
|
836
|
-
var G = S - I(O), nt =
|
|
836
|
+
var G = S - I(O), nt = y();
|
|
837
837
|
return S -= d(nt * (Fe(_t(G) / nt) || 1)) * (O ? 1 : -1), S;
|
|
838
838
|
}
|
|
839
839
|
function A() {
|
|
@@ -850,17 +850,17 @@ function Fi(t, e, n) {
|
|
|
850
850
|
return G;
|
|
851
851
|
}
|
|
852
852
|
function B(S, O) {
|
|
853
|
-
var G = d(u(S - 1) -
|
|
853
|
+
var G = d(u(S - 1) - f(S));
|
|
854
854
|
return O ? H(G) : G;
|
|
855
855
|
}
|
|
856
856
|
function j() {
|
|
857
857
|
var S = l("left");
|
|
858
|
-
return Lt(b)[S] - Lt(
|
|
858
|
+
return Lt(b)[S] - Lt(h)[S] + d(p(!1));
|
|
859
859
|
}
|
|
860
860
|
function H(S) {
|
|
861
|
-
return n.trimSpace && t.is(be) && (S = de(S, 0, d(
|
|
861
|
+
return n.trimSpace && t.is(be) && (S = de(S, 0, d(y(!0) - C()))), S;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function f(S) {
|
|
864
864
|
var O = n.focus;
|
|
865
865
|
return O === "center" ? (C() - s(S, !0)) / 2 : +O * s(S) || 0;
|
|
866
866
|
}
|
|
@@ -869,7 +869,7 @@ function Fi(t, e, n) {
|
|
|
869
869
|
}
|
|
870
870
|
function _(S) {
|
|
871
871
|
var O = d(z(j(), S));
|
|
872
|
-
return S ? O >= 0 : O <= b[l("scrollWidth")] - Lt(
|
|
872
|
+
return S ? O >= 0 : O <= b[l("scrollWidth")] - Lt(h)[l("width")];
|
|
873
873
|
}
|
|
874
874
|
function $(S, O) {
|
|
875
875
|
O = Be(O) ? j() : O;
|
|
@@ -892,55 +892,55 @@ function Fi(t, e, n) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Ri(t, e, n) {
|
|
895
|
-
var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, s = i.getLimit, p = i.toPosition, u = e.Slides, C = u.isEnough,
|
|
895
|
+
var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, s = i.getLimit, p = i.toPosition, u = e.Slides, C = u.isEnough, y = u.getLength, g = n.omitEnd, l = t.is(xe), d = t.is(be), w = ut(j, !1), b = ut(j, !0), h = n.start || 0, x, V = h, N, L, v;
|
|
896
896
|
function T() {
|
|
897
|
-
k(), r([Ct,
|
|
897
|
+
k(), r([Ct, yt, Qe], k), r(nn, z);
|
|
898
898
|
}
|
|
899
899
|
function k() {
|
|
900
|
-
N =
|
|
901
|
-
var E = de(
|
|
902
|
-
E !==
|
|
900
|
+
N = y(!0), L = n.perMove, v = n.perPage, x = _();
|
|
901
|
+
var E = de(h, 0, g ? x : N - 1);
|
|
902
|
+
E !== h && (h = E, i.reposition());
|
|
903
903
|
}
|
|
904
904
|
function z() {
|
|
905
905
|
x !== _() && a(Qe);
|
|
906
906
|
}
|
|
907
|
-
function A(E, K,
|
|
907
|
+
function A(E, K, ht) {
|
|
908
908
|
if (!lt()) {
|
|
909
|
-
var it = B(E),
|
|
910
|
-
|
|
909
|
+
var it = B(E), ft = I(it);
|
|
910
|
+
ft > -1 && (K || ft !== h) && (G(ft), i.move(it, ft, V, ht));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function R(E, K,
|
|
914
|
-
e.Scroll.scroll(E, K,
|
|
915
|
-
var
|
|
916
|
-
G(g ? Zt(
|
|
913
|
+
function R(E, K, ht, it) {
|
|
914
|
+
e.Scroll.scroll(E, K, ht, function() {
|
|
915
|
+
var ft = I(i.toIndex(c()));
|
|
916
|
+
G(g ? Zt(ft, x) : ft), it && it();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function B(E) {
|
|
920
|
-
var K =
|
|
920
|
+
var K = h;
|
|
921
921
|
if (Jt(E)) {
|
|
922
|
-
var
|
|
923
|
-
it === "+" || it === "-" ? K = H(
|
|
922
|
+
var ht = E.match(/([+\-<>])(\d+)?/) || [], it = ht[1], ft = ht[2];
|
|
923
|
+
it === "+" || it === "-" ? K = H(h + +("" + it + (+ft || 1)), h) : it === ">" ? K = ft ? $(+ft) : w(!0) : it === "<" && (K = b(!0));
|
|
924
924
|
} else
|
|
925
925
|
K = l ? E : de(E, 0, x);
|
|
926
926
|
return K;
|
|
927
927
|
}
|
|
928
928
|
function j(E, K) {
|
|
929
|
-
var
|
|
929
|
+
var ht = L || (tt() ? 1 : v), it = H(h + ht * (E ? -1 : 1), h, !(L || tt()));
|
|
930
930
|
return it === -1 && d && !Io(c(), s(!E), 1) ? E ? 0 : x : K ? it : I(it);
|
|
931
931
|
}
|
|
932
|
-
function H(E, K,
|
|
932
|
+
function H(E, K, ht) {
|
|
933
933
|
if (C() || tt()) {
|
|
934
|
-
var it =
|
|
935
|
-
it !== E && (K = E, E = it,
|
|
934
|
+
var it = f(E);
|
|
935
|
+
it !== E && (K = E, E = it, ht = !1), E < 0 || E > x ? !L && (Ge(0, E, K, !0) || Ge(x, K, E, !0)) ? E = $(S(E)) : l ? E = ht ? E < 0 ? -(N % v || v) : N : E : n.rewind ? E = E < 0 ? x : 0 : E = -1 : ht && E !== K && (E = $(S(K) + (E < K ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
E = -1;
|
|
938
938
|
return E;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
if (d && n.trimSpace === "move" && E !==
|
|
940
|
+
function f(E) {
|
|
941
|
+
if (d && n.trimSpace === "move" && E !== h)
|
|
942
942
|
for (var K = c(); K === p(E, !0) && Ge(E, 0, t.length - 1, !n.rewind); )
|
|
943
|
-
E <
|
|
943
|
+
E < h ? --E : ++E;
|
|
944
944
|
return E;
|
|
945
945
|
}
|
|
946
946
|
function I(E) {
|
|
@@ -965,10 +965,10 @@ function Ri(t, e, n) {
|
|
|
965
965
|
return d ? de(K, 0, x) : K;
|
|
966
966
|
}
|
|
967
967
|
function G(E) {
|
|
968
|
-
E !==
|
|
968
|
+
E !== h && (V = h, h = E);
|
|
969
969
|
}
|
|
970
970
|
function nt(E) {
|
|
971
|
-
return E ? V :
|
|
971
|
+
return E ? V : h;
|
|
972
972
|
}
|
|
973
973
|
function tt() {
|
|
974
974
|
return !Be(n.focus) || n.isNavigation;
|
|
@@ -995,7 +995,7 @@ function Ri(t, e, n) {
|
|
|
995
995
|
}
|
|
996
996
|
var Pi = "http://www.w3.org/2000/svg", Bi = "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", De = 40;
|
|
997
997
|
function Oi(t, e, n) {
|
|
998
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = n.classes, s = n.i18n, p = e.Elements, u = e.Controller, C = p.arrows,
|
|
998
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = n.classes, s = n.i18n, p = e.Elements, u = e.Controller, C = p.arrows, y = p.track, g = C, l = p.prev, d = p.next, w, b, h = {};
|
|
999
999
|
function x() {
|
|
1000
1000
|
N(), r(Ct, V);
|
|
1001
1001
|
}
|
|
@@ -1004,22 +1004,22 @@ function Oi(t, e, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function N() {
|
|
1006
1006
|
var R = n.arrows;
|
|
1007
|
-
R && !(l && d) && k(), l && d && (Ie(
|
|
1007
|
+
R && !(l && d) && k(), l && d && (Ie(h, {
|
|
1008
1008
|
prev: l,
|
|
1009
1009
|
next: d
|
|
1010
|
-
}), ke(g, R ? "" : "none"), Bt(g, b = Un + "--" + n.direction), R && (v(), A(), Q([l, d], Ve,
|
|
1010
|
+
}), ke(g, R ? "" : "none"), Bt(g, b = Un + "--" + n.direction), R && (v(), A(), Q([l, d], Ve, y.id), i(zo, l, d)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function L() {
|
|
1013
1013
|
o.destroy(), Dt(g, b), w ? (ie(C ? [l, d] : g), l = d = null) : Ot([l, d], jn);
|
|
1014
1014
|
}
|
|
1015
1015
|
function v() {
|
|
1016
|
-
r([te, Ce,
|
|
1016
|
+
r([te, Ce, yt, le, Qe], A), a(d, "click", ut(T, ">")), a(l, "click", ut(T, "<"));
|
|
1017
1017
|
}
|
|
1018
1018
|
function T(R) {
|
|
1019
1019
|
u.go(R, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function k() {
|
|
1022
|
-
g = C ||
|
|
1022
|
+
g = C || fe("div", c.arrows), l = z(!0), d = z(!1), w = !0, Ne(g, [l, d]), !C && Fn(g, y);
|
|
1023
1023
|
}
|
|
1024
1024
|
function z(R) {
|
|
1025
1025
|
var B = '<button class="' + c.arrow + " " + (R ? c.prev : c.next) + '" type="button"><svg xmlns="' + Pi + '" viewBox="0 0 ' + De + " " + De + '" width="' + De + '" height="' + De + '" focusable="false"><path d="' + (n.arrowPath || Bi) + '" />';
|
|
@@ -1027,12 +1027,12 @@ function Oi(t, e, n) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
function A() {
|
|
1029
1029
|
if (l && d) {
|
|
1030
|
-
var R = t.index, B = u.getPrev(), j = u.getNext(), H = B > -1 && R < B ? s.last : s.prev,
|
|
1031
|
-
l.disabled = B < 0, d.disabled = j < 0, Q(l, Et, H), Q(d, Et,
|
|
1030
|
+
var R = t.index, B = u.getPrev(), j = u.getNext(), H = B > -1 && R < B ? s.last : s.prev, f = j > -1 && R > j ? s.first : s.next;
|
|
1031
|
+
l.disabled = B < 0, d.disabled = j < 0, Q(l, Et, H), Q(d, Et, f), i(Vo, l, d, B, j);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
1035
|
-
arrows:
|
|
1035
|
+
arrows: h,
|
|
1036
1036
|
mount: x,
|
|
1037
1037
|
destroy: L,
|
|
1038
1038
|
update: A
|
|
@@ -1040,18 +1040,18 @@ function Oi(t, e, n) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
var Ni = Pn + "-interval";
|
|
1042
1042
|
function Wi(t, e, n) {
|
|
1043
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = rn(n.interval, t.go.bind(t, ">"), v), s = c.isPaused, p = e.Elements, u = e.Elements, C = u.root,
|
|
1043
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = rn(n.interval, t.go.bind(t, ">"), v), s = c.isPaused, p = e.Elements, u = e.Elements, C = u.root, y = u.toggle, g = n.autoplay, l, d, w = g === "pause";
|
|
1044
1044
|
function b() {
|
|
1045
|
-
g && (
|
|
1045
|
+
g && (h(), y && Q(y, Ve, p.track.id), w || x(), L());
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function h() {
|
|
1048
1048
|
n.pauseOnHover && a(C, "mouseenter mouseleave", function(k) {
|
|
1049
1049
|
l = k.type === "mouseenter", N();
|
|
1050
1050
|
}), n.pauseOnFocus && a(C, "focusin focusout", function(k) {
|
|
1051
1051
|
d = k.type === "focusin", N();
|
|
1052
|
-
}),
|
|
1052
|
+
}), y && a(y, "click", function() {
|
|
1053
1053
|
w ? x() : V(!0);
|
|
1054
|
-
}), r([Ut, on,
|
|
1054
|
+
}), r([Ut, on, yt], c.rewind), r(Ut, T);
|
|
1055
1055
|
}
|
|
1056
1056
|
function x() {
|
|
1057
1057
|
s() && e.Slides.isEnough() && (c.start(!n.resetProgress), d = l = w = !1, L(), i(zn));
|
|
@@ -1063,7 +1063,7 @@ function Wi(t, e, n) {
|
|
|
1063
1063
|
w || (l || d ? V(!1) : x());
|
|
1064
1064
|
}
|
|
1065
1065
|
function L() {
|
|
1066
|
-
|
|
1066
|
+
y && (Mt(y, ae, !w), Q(y, Et, n.i18n[w ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function v(k) {
|
|
1069
1069
|
var z = p.bar;
|
|
@@ -1084,7 +1084,7 @@ function Wi(t, e, n) {
|
|
|
1084
1084
|
function zi(t, e, n) {
|
|
1085
1085
|
var o = gt(t), r = o.on;
|
|
1086
1086
|
function a() {
|
|
1087
|
-
n.cover && (r(Mn, ut(c, !0)), r([te, Ct,
|
|
1087
|
+
n.cover && (r(Mn, ut(c, !0)), r([te, Ct, yt], ut(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(s) {
|
|
1090
1090
|
e.Slides.forEach(function(p) {
|
|
@@ -1102,31 +1102,31 @@ function zi(t, e, n) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
var Vi = 10, Mi = 600, Di = 0.6, Hi = 1.5, ji = 800;
|
|
1104
1104
|
function Ui(t, e, n) {
|
|
1105
|
-
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, s = c.getPosition, p = c.getLimit, u = c.exceededLimit, C = c.translate,
|
|
1105
|
+
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, s = c.getPosition, p = c.getLimit, u = c.exceededLimit, C = c.translate, y = t.is(be), g, l, d = 1;
|
|
1106
1106
|
function w() {
|
|
1107
|
-
r(Ut, V), r([Ct,
|
|
1107
|
+
r(Ut, V), r([Ct, yt], N);
|
|
1108
1108
|
}
|
|
1109
1109
|
function b(v, T, k, z, A) {
|
|
1110
1110
|
var R = s();
|
|
1111
|
-
if (V(), k && (!
|
|
1111
|
+
if (V(), k && (!y || !u())) {
|
|
1112
1112
|
var B = e.Layout.sliderSize(), j = xn(v) * B * Ze(_t(v) / B) || 0;
|
|
1113
1113
|
v = c.toPosition(e.Controller.toDest(v % B)) + j;
|
|
1114
1114
|
}
|
|
1115
1115
|
var H = Io(R, v, 1);
|
|
1116
|
-
d = 1, T = H ? 0 : T || Je(_t(v - R) / Hi, ji), l = z, g = rn(T,
|
|
1116
|
+
d = 1, T = H ? 0 : T || Je(_t(v - R) / Hi, ji), l = z, g = rn(T, h, ut(x, R, v, A), 1), i(Pe), a(on), g.start();
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1119
|
-
i(
|
|
1118
|
+
function h() {
|
|
1119
|
+
i(ye), l && l(), a(le);
|
|
1120
1120
|
}
|
|
1121
1121
|
function x(v, T, k, z) {
|
|
1122
1122
|
var A = s(), R = v + (T - v) * L(z), B = (R - A) * d;
|
|
1123
|
-
C(A + B),
|
|
1123
|
+
C(A + B), y && !k && u() && (d *= Di, _t(B) < Vi && b(p(u(!0)), Mi, !1, l, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function V() {
|
|
1126
1126
|
g && g.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
function N() {
|
|
1129
|
-
g && !g.isPaused() && (V(),
|
|
1129
|
+
g && !g.isPaused() && (V(), h());
|
|
1130
1130
|
}
|
|
1131
1131
|
function L(v) {
|
|
1132
1132
|
var T = n.easingFunc;
|
|
@@ -1144,11 +1144,11 @@ var ge = {
|
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function Yi(t, e, n) {
|
|
1147
|
-
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, s = t.state, p = e.Move, u = e.Scroll, C = e.Controller,
|
|
1147
|
+
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, s = t.state, p = e.Move, u = e.Scroll, C = e.Controller, y = e.Elements.track, g = e.Media.reduce, l = e.Direction, d = l.resolve, w = l.orient, b = p.getPosition, h = p.exceededLimit, x, V, N, L, v, T = !1, k, z, A;
|
|
1148
1148
|
function R() {
|
|
1149
|
-
i(
|
|
1149
|
+
i(y, fn, Sn, ge), i(y, hn, Sn, ge), i(y, rr, j, ge), i(y, "click", I, {
|
|
1150
1150
|
capture: !0
|
|
1151
|
-
}), i(
|
|
1151
|
+
}), i(y, "dragstart", Vt), r([te, Ct], B);
|
|
1152
1152
|
}
|
|
1153
1153
|
function B() {
|
|
1154
1154
|
var M = n.drag;
|
|
@@ -1156,20 +1156,20 @@ function Yi(t, e, n) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
function j(M) {
|
|
1158
1158
|
if (k = !1, !z) {
|
|
1159
|
-
var
|
|
1160
|
-
it(M.target) && (
|
|
1159
|
+
var m = ft(M);
|
|
1160
|
+
it(M.target) && (m || !M.button) && (C.isBusy() ? Vt(M, !0) : (A = m ? y : window, v = s.is([Se, Pe]), N = null, i(A, fn, H, ge), i(A, hn, f, ge), p.cancel(), u.cancel(), _(M)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function H(M) {
|
|
1164
1164
|
if (s.is(Ue) || (s.set(Ue), a(Oo)), M.cancelable)
|
|
1165
1165
|
if (v) {
|
|
1166
|
-
p.translate(x +
|
|
1167
|
-
var
|
|
1168
|
-
(
|
|
1166
|
+
p.translate(x + ht(tt(M)));
|
|
1167
|
+
var m = lt(M) > so, D = T !== (T = h());
|
|
1168
|
+
(m || D) && _(M), k = !0, a(No), Vt(M);
|
|
1169
1169
|
} else O(M) && (v = S(M), Vt(M));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
s.is(Ue) && (s.set(
|
|
1171
|
+
function f(M) {
|
|
1172
|
+
s.is(Ue) && (s.set(ye), a(Wo)), v && ($(M), Vt(M)), c(A, fn, H), c(A, hn, f), v = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function I(M) {
|
|
1175
1175
|
!z && k && Vt(M, !0);
|
|
@@ -1178,29 +1178,29 @@ function Yi(t, e, n) {
|
|
|
1178
1178
|
N = V, V = M, x = b();
|
|
1179
1179
|
}
|
|
1180
1180
|
function $(M) {
|
|
1181
|
-
var
|
|
1182
|
-
g(!1), L ? C.scroll(D, 0, n.snap) : t.is(Me) ? C.go(w(xn(
|
|
1181
|
+
var m = G(M), D = nt(m), q = n.rewind && n.rewindByDrag;
|
|
1182
|
+
g(!1), L ? C.scroll(D, 0, n.snap) : t.is(Me) ? C.go(w(xn(m)) < 0 ? q ? "<" : "-" : q ? ">" : "+") : t.is(be) && T && q ? C.go(h(!0) ? ">" : "<") : C.go(C.toDest(D), !0), g(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function S(M) {
|
|
1185
|
-
var
|
|
1186
|
-
return _t(tt(M)) > (
|
|
1185
|
+
var m = n.dragMinThreshold, D = Le(m), q = D && m.mouse || 0, Y = (D ? m.touch : +m) || 10;
|
|
1186
|
+
return _t(tt(M)) > (ft(M) ? Y : q);
|
|
1187
1187
|
}
|
|
1188
1188
|
function O(M) {
|
|
1189
1189
|
return _t(tt(M)) > _t(tt(M, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function G(M) {
|
|
1192
1192
|
if (t.is(xe) || !T) {
|
|
1193
|
-
var
|
|
1194
|
-
if (
|
|
1195
|
-
return tt(M) /
|
|
1193
|
+
var m = lt(M);
|
|
1194
|
+
if (m && m < so)
|
|
1195
|
+
return tt(M) / m;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function nt(M) {
|
|
1200
1200
|
return b() + xn(M) * Zt(_t(M) * (n.flickPower || 600), L ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
|
-
function tt(M,
|
|
1203
|
-
return K(M,
|
|
1202
|
+
function tt(M, m) {
|
|
1203
|
+
return K(M, m) - K(E(M), m);
|
|
1204
1204
|
}
|
|
1205
1205
|
function lt(M) {
|
|
1206
1206
|
return Cn(M) - Cn(E(M));
|
|
@@ -1208,17 +1208,17 @@ function Yi(t, e, n) {
|
|
|
1208
1208
|
function E(M) {
|
|
1209
1209
|
return V === M && N || V;
|
|
1210
1210
|
}
|
|
1211
|
-
function K(M,
|
|
1212
|
-
return (
|
|
1211
|
+
function K(M, m) {
|
|
1212
|
+
return (ft(M) ? M.changedTouches[0] : M)["page" + d(m ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function ht(M) {
|
|
1215
1215
|
return M / (T && t.is(be) ? wi : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function it(M) {
|
|
1218
|
-
var
|
|
1219
|
-
return !Ee(M, "." + Qo + ", ." + pn) && (!
|
|
1218
|
+
var m = n.noDrag;
|
|
1219
|
+
return !Ee(M, "." + Qo + ", ." + pn) && (!m || !Ee(M, m));
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function ft(M) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && M instanceof TouchEvent;
|
|
1223
1223
|
}
|
|
1224
1224
|
function Wt() {
|
|
@@ -1247,9 +1247,9 @@ var co = "keydown";
|
|
|
1247
1247
|
function qi(t, e, n) {
|
|
1248
1248
|
var o = gt(t), r = o.on, a = o.bind, i = o.unbind, c = t.root, s = e.Direction.resolve, p, u;
|
|
1249
1249
|
function C() {
|
|
1250
|
-
|
|
1250
|
+
y(), r(Ct, g), r(Ct, y), r(Ut, d);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function y() {
|
|
1253
1253
|
var b = n.keyboard;
|
|
1254
1254
|
b && (p = b === "global" ? window : c, a(p, co, w));
|
|
1255
1255
|
}
|
|
@@ -1267,8 +1267,8 @@ function qi(t, e, n) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function w(b) {
|
|
1269
1269
|
if (!u) {
|
|
1270
|
-
var
|
|
1271
|
-
|
|
1270
|
+
var h = Yn(b);
|
|
1271
|
+
h === s(ln) ? t.go("<") : h === s(sn) && t.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
@@ -1281,35 +1281,35 @@ var $e = Pn + "-lazy", qe = $e + "-srcset", Xi = "[" + $e + "], [" + qe + "]";
|
|
|
1281
1281
|
function Ki(t, e, n) {
|
|
1282
1282
|
var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, s = n.lazyLoad === "sequential", p = [Ce, le], u = [];
|
|
1283
1283
|
function C() {
|
|
1284
|
-
n.lazyLoad && (
|
|
1284
|
+
n.lazyLoad && (y(), r(yt, y));
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function y() {
|
|
1287
1287
|
jt(u), g(), s ? b() : (a(p), r(p, l), l());
|
|
1288
1288
|
}
|
|
1289
1289
|
function g() {
|
|
1290
|
-
e.Slides.forEach(function(
|
|
1291
|
-
Rn(
|
|
1290
|
+
e.Slides.forEach(function(h) {
|
|
1291
|
+
Rn(h.slide, Xi).forEach(function(x) {
|
|
1292
1292
|
var V = Rt(x, $e), N = Rt(x, qe);
|
|
1293
1293
|
if (V !== x.src || N !== x.srcset) {
|
|
1294
|
-
var L = n.classes.spinner, v = x.parentElement, T = We(v, "." + L) ||
|
|
1295
|
-
u.push([x,
|
|
1294
|
+
var L = n.classes.spinner, v = x.parentElement, T = We(v, "." + L) || fe("span", L, v);
|
|
1295
|
+
u.push([x, h, T]), x.src || ke(x, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
function l() {
|
|
1301
|
-
u = u.filter(function(
|
|
1301
|
+
u = u.filter(function(h) {
|
|
1302
1302
|
var x = n.perPage * ((n.preloadPages || 1) + 1) - 1;
|
|
1303
|
-
return
|
|
1303
|
+
return h[1].isWithin(t.index, x) ? d(h) : !0;
|
|
1304
1304
|
}), u.length || a(p);
|
|
1305
1305
|
}
|
|
1306
|
-
function d(
|
|
1307
|
-
var x =
|
|
1308
|
-
Bt(
|
|
1306
|
+
function d(h) {
|
|
1307
|
+
var x = h[0];
|
|
1308
|
+
Bt(h[1].slide, Tn), i(x, "load error", ut(w, h)), Q(x, "src", Rt(x, $e)), Q(x, "srcset", Rt(x, qe)), Ot(x, $e), Ot(x, qe);
|
|
1309
1309
|
}
|
|
1310
|
-
function w(
|
|
1311
|
-
var V =
|
|
1312
|
-
Dt(N.slide, Tn), x.type !== "error" && (ie(
|
|
1310
|
+
function w(h, x) {
|
|
1311
|
+
var V = h[0], N = h[1];
|
|
1312
|
+
Dt(N.slide, Tn), x.type !== "error" && (ie(h[2]), ke(V, ""), c(Mn, V, N), c(ve)), s && b();
|
|
1313
1313
|
}
|
|
1314
1314
|
function b() {
|
|
1315
1315
|
u.length && d(u.shift());
|
|
@@ -1321,9 +1321,9 @@ function Ki(t, e, n) {
|
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
1323
|
function Ji(t, e, n) {
|
|
1324
|
-
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Slides, s = e.Elements, p = e.Controller, u = p.hasFocus, C = p.getIndex,
|
|
1325
|
-
function
|
|
1326
|
-
x(), r([Ct,
|
|
1324
|
+
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Slides, s = e.Elements, p = e.Controller, u = p.hasFocus, C = p.getIndex, y = p.go, g = e.Direction.resolve, l = s.pagination, d = [], w, b;
|
|
1325
|
+
function h() {
|
|
1326
|
+
x(), r([Ct, yt, Qe], h);
|
|
1327
1327
|
var z = n.pagination;
|
|
1328
1328
|
l && ke(l, z ? "" : "none"), z && (r([Ut, on, le], k), V(), k(), a(Mo, {
|
|
1329
1329
|
list: w,
|
|
@@ -1335,29 +1335,29 @@ function Ji(t, e, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function V() {
|
|
1337
1337
|
var z = t.length, A = n.classes, R = n.i18n, B = n.perPage, j = u() ? p.getEnd() + 1 : Fe(z / B);
|
|
1338
|
-
w = l ||
|
|
1338
|
+
w = l || fe("ul", A.pagination, s.track.parentElement), Bt(w, b = dn + "--" + v()), Q(w, Ht, "tablist"), Q(w, Et, R.select), Q(w, Hn, v() === cn ? "vertical" : "");
|
|
1339
1339
|
for (var H = 0; H < j; H++) {
|
|
1340
|
-
var
|
|
1340
|
+
var f = fe("li", null, w), I = fe("button", {
|
|
1341
1341
|
class: A.page,
|
|
1342
1342
|
type: "button"
|
|
1343
|
-
},
|
|
1343
|
+
}, f), _ = c.getIn(H).map(function(S) {
|
|
1344
1344
|
return S.slide.id;
|
|
1345
1345
|
}), $ = !u() && B > 1 ? R.pageX : R.slideX;
|
|
1346
|
-
i(I, "click", ut(N, H)), n.paginationKeyboard && i(I, "keydown", ut(L, H)), Q(
|
|
1347
|
-
li:
|
|
1346
|
+
i(I, "click", ut(N, H)), n.paginationKeyboard && i(I, "keydown", ut(L, H)), Q(f, Ht, "presentation"), Q(I, Ht, "tab"), Q(I, Ve, _.join(" ")), Q(I, Et, _n($, H + 1)), Q(I, he, -1), d.push({
|
|
1347
|
+
li: f,
|
|
1348
1348
|
button: I,
|
|
1349
1349
|
page: H
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
function N(z) {
|
|
1354
|
-
|
|
1354
|
+
y(">" + z, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function L(z, A) {
|
|
1357
1357
|
var R = d.length, B = Yn(A), j = v(), H = -1;
|
|
1358
1358
|
B === g(sn, !1, j) ? H = ++z % R : B === g(ln, !1, j) ? H = (--z + R) % R : B === "Home" ? H = 0 : B === "End" && (H = R - 1);
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1359
|
+
var f = d[H];
|
|
1360
|
+
f && (Lo(f.button), y(">" + H), Vt(A, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function v() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1369,11 +1369,11 @@ function Ji(t, e, n) {
|
|
|
1369
1369
|
var z = T(C(!0)), A = T(C());
|
|
1370
1370
|
if (z) {
|
|
1371
1371
|
var R = z.button;
|
|
1372
|
-
Dt(R, ae), Ot(R, oo), Q(R,
|
|
1372
|
+
Dt(R, ae), Ot(R, oo), Q(R, he, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (A) {
|
|
1375
1375
|
var B = A.button;
|
|
1376
|
-
Bt(B, ae), Q(B, oo, !0), Q(B,
|
|
1376
|
+
Bt(B, ae), Q(B, oo, !0), Q(B, he, "");
|
|
1377
1377
|
}
|
|
1378
1378
|
a(Do, {
|
|
1379
1379
|
list: w,
|
|
@@ -1382,7 +1382,7 @@ function Ji(t, e, n) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
return {
|
|
1384
1384
|
items: d,
|
|
1385
|
-
mount:
|
|
1385
|
+
mount: h,
|
|
1386
1386
|
destroy: x,
|
|
1387
1387
|
getAt: T,
|
|
1388
1388
|
update: k
|
|
@@ -1406,22 +1406,22 @@ function Qi(t, e, n) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
function p(l, d) {
|
|
1408
1408
|
var w = gt(l);
|
|
1409
|
-
w.on(Ut, function(b,
|
|
1409
|
+
w.on(Ut, function(b, h, x) {
|
|
1410
1410
|
d.go(d.is(xe) ? x : b);
|
|
1411
1411
|
}), a.push(w);
|
|
1412
1412
|
}
|
|
1413
1413
|
function u() {
|
|
1414
1414
|
var l = gt(t), d = l.on;
|
|
1415
|
-
d(On,
|
|
1415
|
+
d(On, y), d(jo, g), d([te, Ct], C), a.push(l), l.emit(Wn, t.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function C() {
|
|
1418
1418
|
Q(e.Elements.list, Hn, n.direction === cn ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function y(l) {
|
|
1421
1421
|
t.go(l.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function g(l, d) {
|
|
1424
|
-
kn(Zi, Yn(d)) && (
|
|
1424
|
+
kn(Zi, Yn(d)) && (y(l), Vt(d));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: ut(e.Media.set, {
|
|
@@ -1439,8 +1439,8 @@ function ta(t, e, n) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
function c(p) {
|
|
1441
1441
|
if (p.cancelable) {
|
|
1442
|
-
var u = p.deltaY, C = u < 0,
|
|
1443
|
-
_t(u) > g &&
|
|
1442
|
+
var u = p.deltaY, C = u < 0, y = Cn(p), g = n.wheelMinThreshold || 0, l = n.wheelSleep || 0;
|
|
1443
|
+
_t(u) > g && y - a > l && (t.go(C ? "<" : ">"), a = y), s(C) && Vt(p);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function s(p) {
|
|
@@ -1452,9 +1452,9 @@ function ta(t, e, n) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
var ea = 90;
|
|
1454
1454
|
function na(t, e, n) {
|
|
1455
|
-
var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c =
|
|
1455
|
+
var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c = fe("span", Si), s = rn(ea, ut(u, !1));
|
|
1456
1456
|
function p() {
|
|
1457
|
-
i && (
|
|
1457
|
+
i && (y(!e.Autoplay.isPaused()), Q(a, ao, !0), c.textContent = "…", r(zn, ut(y, !0)), r(Vn, ut(y, !1)), r([Ce, le], ut(u, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function u(g) {
|
|
1460
1460
|
Q(a, io, g), g ? (Ne(a, c), s.start()) : (ie(c), s.cancel());
|
|
@@ -1462,12 +1462,12 @@ function na(t, e, n) {
|
|
|
1462
1462
|
function C() {
|
|
1463
1463
|
Ot(a, [ro, ao, io]), ie(c);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function y(g) {
|
|
1466
1466
|
i && Q(a, ro, g ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: p,
|
|
1470
|
-
disable:
|
|
1470
|
+
disable: y,
|
|
1471
1471
|
destroy: C
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
@@ -1535,7 +1535,7 @@ var oa = /* @__PURE__ */ Object.freeze({
|
|
|
1535
1535
|
function aa(t, e, n) {
|
|
1536
1536
|
var o = e.Slides;
|
|
1537
1537
|
function r() {
|
|
1538
|
-
gt(t).on([te,
|
|
1538
|
+
gt(t).on([te, yt], a);
|
|
1539
1539
|
}
|
|
1540
1540
|
function a() {
|
|
1541
1541
|
o.forEach(function(c) {
|
|
@@ -1559,13 +1559,13 @@ function la(t, e, n) {
|
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
function u(g, l) {
|
|
1562
|
-
var d = o.toPosition(g, !0), w = o.getPosition(), b =
|
|
1562
|
+
var d = o.toPosition(g, !0), w = o.getPosition(), b = y(g);
|
|
1563
1563
|
_t(d - w) >= 1 && b >= 1 ? n.useScroll ? a.scroll(d, b, !1, l) : (c("transform " + b + "ms " + n.easing), o.translate(d, !0), s = l) : (o.jump(g), l());
|
|
1564
1564
|
}
|
|
1565
1565
|
function C() {
|
|
1566
1566
|
c(""), a.cancel();
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function y(g) {
|
|
1569
1569
|
var l = n.rewindSpeed;
|
|
1570
1570
|
if (t.is(be) && l) {
|
|
1571
1571
|
var d = r.getIndex(!0), w = r.getEnd();
|
|
@@ -1582,7 +1582,7 @@ function la(t, e, n) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
var sa = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function t(n, o) {
|
|
1585
|
-
this.event = gt(), this.Components = {}, this.state = ci(
|
|
1585
|
+
this.event = gt(), this.Components = {}, this.state = ci(me), this.splides = [], this._o = {}, this._E = {};
|
|
1586
1586
|
var r = Jt(n) ? Ao(document, n) : n;
|
|
1587
1587
|
_e(r, r + " is invalid."), this.root = r, o = Kt({
|
|
1588
1588
|
label: Rt(r, Et) || "",
|
|
@@ -1598,7 +1598,7 @@ var sa = /* @__PURE__ */ (function() {
|
|
|
1598
1598
|
var e = t.prototype;
|
|
1599
1599
|
return e.mount = function(o, r) {
|
|
1600
1600
|
var a = this, i = this.state, c = this.Components;
|
|
1601
|
-
_e(i.is([
|
|
1601
|
+
_e(i.is([me, Ke]), "Already mounted!"), i.set(me), this._C = c, this._T = r || this._T || (this.is(Me) ? aa : la), this._E = o || this._E;
|
|
1602
1602
|
var s = Ie({}, oa, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
@@ -1607,14 +1607,14 @@ var sa = /* @__PURE__ */ (function() {
|
|
|
1607
1607
|
c[u] = C, C.setup && C.setup();
|
|
1608
1608
|
}), re(c, function(p) {
|
|
1609
1609
|
p.mount && p.mount();
|
|
1610
|
-
}), this.emit(te), Bt(this.root, Ci), i.set(
|
|
1610
|
+
}), this.emit(te), Bt(this.root, Ci), i.set(ye), this.emit($n), this;
|
|
1611
1611
|
}, e.sync = function(o) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: o
|
|
1614
1614
|
}), o.splides.push({
|
|
1615
1615
|
splide: this,
|
|
1616
1616
|
isParent: !0
|
|
1617
|
-
}), this.state.is(
|
|
1617
|
+
}), this.state.is(ye) && (this._C.Sync.remount(), o.Components.Sync.remount()), this;
|
|
1618
1618
|
}, e.go = function(o) {
|
|
1619
1619
|
return this._C.Controller.go(o), this;
|
|
1620
1620
|
}, e.on = function(o, r) {
|
|
@@ -1631,11 +1631,11 @@ var sa = /* @__PURE__ */ (function() {
|
|
|
1631
1631
|
}, e.is = function(o) {
|
|
1632
1632
|
return this._o.type === o;
|
|
1633
1633
|
}, e.refresh = function() {
|
|
1634
|
-
return this.emit(
|
|
1634
|
+
return this.emit(yt), this;
|
|
1635
1635
|
}, e.destroy = function(o) {
|
|
1636
1636
|
o === void 0 && (o = !0);
|
|
1637
1637
|
var r = this.event, a = this.state;
|
|
1638
|
-
return a.is(
|
|
1638
|
+
return a.is(me) ? gt(this).on($n, this.destroy.bind(this, o)) : (re(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(o);
|
|
1640
1640
|
}, !0), r.emit(Nn), r.destroy(), o && jt(this.splides), a.set(Ke)), this;
|
|
1641
1641
|
}, ri(t, [{
|
|
@@ -1670,7 +1670,7 @@ var uo = [
|
|
|
1670
1670
|
[Ro, "onInactive"],
|
|
1671
1671
|
[Po, "onVisible"],
|
|
1672
1672
|
[Bo, "onHidden"],
|
|
1673
|
-
[
|
|
1673
|
+
[yt, "onRefresh"],
|
|
1674
1674
|
[Ct, "onUpdated"],
|
|
1675
1675
|
[ve, "onResize"],
|
|
1676
1676
|
[nn, "onResized"],
|
|
@@ -1799,13 +1799,13 @@ var pa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ oe.createEleme
|
|
|
1799
1799
|
const da = "RichTextRenderer-module__link___BWeZ2", ga = {
|
|
1800
1800
|
link: da
|
|
1801
1801
|
}, lr = ({ content: t }) => {
|
|
1802
|
-
const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ P("a", { className: ga.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ P("span", { style:
|
|
1802
|
+
const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ P("a", { className: ga.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ P("span", { style: ma(o), children: o.text }, r));
|
|
1803
1803
|
return /* @__PURE__ */ P(Te, { children: t.map((n, o) => {
|
|
1804
1804
|
const r = n.children;
|
|
1805
1805
|
return /* @__PURE__ */ P("div", { children: e(r) }, o);
|
|
1806
1806
|
}) });
|
|
1807
1807
|
};
|
|
1808
|
-
function
|
|
1808
|
+
function ma(t) {
|
|
1809
1809
|
return {
|
|
1810
1810
|
...t.fontFamily && { fontFamily: t.fontFamily },
|
|
1811
1811
|
...t.fontWeight && { fontWeight: t.fontWeight },
|
|
@@ -1819,9 +1819,9 @@ function fa(t) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1823
|
-
svg:
|
|
1824
|
-
img:
|
|
1822
|
+
const fa = "SvgImage-module__svg___q3xE-", ha = "SvgImage-module__img___VsTm-", po = {
|
|
1823
|
+
svg: fa,
|
|
1824
|
+
img: ha
|
|
1825
1825
|
}, we = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: o = "" }) => {
|
|
1826
1826
|
const [r, a] = ct(!0);
|
|
1827
1827
|
return bt(() => {
|
|
@@ -1841,7 +1841,7 @@ const ma = "SvgImage-module__svg___q3xE-", ya = "SvgImage-module__img___VsTm-",
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
);
|
|
1844
|
-
},
|
|
1844
|
+
}, ya = {
|
|
1845
1845
|
"top-left": U.topLeftAlignment,
|
|
1846
1846
|
"top-center": U.topCenterAlignment,
|
|
1847
1847
|
"top-right": U.topRightAlignment,
|
|
@@ -1853,12 +1853,12 @@ const ma = "SvgImage-module__svg___q3xE-", ya = "SvgImage-module__img___VsTm-",
|
|
|
1853
1853
|
"bottom-right": U.bottomRightAlignment
|
|
1854
1854
|
};
|
|
1855
1855
|
function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
1856
|
-
const [r, a] = ct(null), { widthSettings: i, fontSettings: c, letterSpacing: s, textAlign: p, wordSpacing: u, fontSizeLineHeight: C, textAppearance:
|
|
1857
|
-
r && r.go(
|
|
1856
|
+
const [r, a] = ct(null), { widthSettings: i, fontSettings: c, letterSpacing: s, textAlign: p, wordSpacing: u, fontSizeLineHeight: C, textAppearance: y, color: g } = n.imageCaption, [l, d] = ct(void 0), [w, b] = ct(null), [h, x] = ct(0), [V, N] = ct(0), { direction: L, transition: v, controls: T, pagination: k, imageCaption: z, triggers: A } = t, R = wt(v.type), { x: B, y: j } = t.controls.offset, H = (f) => {
|
|
1857
|
+
r && r.go(f);
|
|
1858
1858
|
};
|
|
1859
1859
|
return bt(() => {
|
|
1860
1860
|
if (!w) return;
|
|
1861
|
-
const
|
|
1861
|
+
const f = new ResizeObserver((I) => {
|
|
1862
1862
|
if (!r) return;
|
|
1863
1863
|
const [_] = I;
|
|
1864
1864
|
d({
|
|
@@ -1866,9 +1866,9 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1866
1866
|
height: Math.round(_.contentRect.height)
|
|
1867
1867
|
});
|
|
1868
1868
|
});
|
|
1869
|
-
return
|
|
1869
|
+
return f.observe(w), () => f.unobserve(w);
|
|
1870
1870
|
}, [w]), bt(() => {
|
|
1871
|
-
!r || R.current === v.type || (N((
|
|
1871
|
+
!r || R.current === v.type || (N((f) => f + 1), R.current = v.type);
|
|
1872
1872
|
}, [v.type]), /* @__PURE__ */ P("div", { className: dt(U.wrapper, { [U.editor]: o }), ref: b, children: /* @__PURE__ */ St(
|
|
1873
1873
|
"div",
|
|
1874
1874
|
{
|
|
@@ -1887,12 +1887,12 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1887
1887
|
"div",
|
|
1888
1888
|
{
|
|
1889
1889
|
className: U.captionTextWrapper,
|
|
1890
|
-
children: e.map((
|
|
1890
|
+
children: e.map((f, I) => /* @__PURE__ */ P(
|
|
1891
1891
|
"div",
|
|
1892
1892
|
{
|
|
1893
|
-
className: dt(U.captionText,
|
|
1894
|
-
[U.withPointerEvents]: I ===
|
|
1895
|
-
[U.active]: I ===
|
|
1893
|
+
className: dt(U.captionText, ya[z.alignment], {
|
|
1894
|
+
[U.withPointerEvents]: I === h && o,
|
|
1895
|
+
[U.active]: I === h
|
|
1896
1896
|
}),
|
|
1897
1897
|
style: {
|
|
1898
1898
|
fontFamily: c.fontFamily,
|
|
@@ -1904,9 +1904,9 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1904
1904
|
textAlign: p,
|
|
1905
1905
|
fontSize: F(C.fontSize, o),
|
|
1906
1906
|
lineHeight: F(C.lineHeight, o),
|
|
1907
|
-
textTransform:
|
|
1908
|
-
textDecoration:
|
|
1909
|
-
fontVariant:
|
|
1907
|
+
textTransform: y.textTransform ?? "none",
|
|
1908
|
+
textDecoration: y.textDecoration ?? "none",
|
|
1909
|
+
fontVariant: y.fontVariant ?? "normal",
|
|
1910
1910
|
color: g,
|
|
1911
1911
|
transitionDuration: v.duration ? `${Math.round(parseInt(v.duration) / 2)}ms` : "500ms"
|
|
1912
1912
|
},
|
|
@@ -1922,7 +1922,7 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1922
1922
|
top: F(z.offset.y, o),
|
|
1923
1923
|
left: F(z.offset.x, o)
|
|
1924
1924
|
},
|
|
1925
|
-
children: /* @__PURE__ */ P(lr, { content:
|
|
1925
|
+
children: /* @__PURE__ */ P(lr, { content: f.imageCaption })
|
|
1926
1926
|
}
|
|
1927
1927
|
)
|
|
1928
1928
|
},
|
|
@@ -1935,8 +1935,8 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1935
1935
|
/* @__PURE__ */ P(
|
|
1936
1936
|
ir,
|
|
1937
1937
|
{
|
|
1938
|
-
onMove: (
|
|
1939
|
-
x(
|
|
1938
|
+
onMove: (f) => {
|
|
1939
|
+
x(f.index);
|
|
1940
1940
|
},
|
|
1941
1941
|
ref: a,
|
|
1942
1942
|
options: {
|
|
@@ -1955,7 +1955,7 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1955
1955
|
type: v.type === "fade in" ? "fade" : "loop",
|
|
1956
1956
|
rewind: !0
|
|
1957
1957
|
},
|
|
1958
|
-
children: e.map((
|
|
1958
|
+
children: e.map((f, I) => /* @__PURE__ */ P(ar, { children: /* @__PURE__ */ P(
|
|
1959
1959
|
"div",
|
|
1960
1960
|
{
|
|
1961
1961
|
className: U.sliderItem,
|
|
@@ -1967,11 +1967,11 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1967
1967
|
"img",
|
|
1968
1968
|
{
|
|
1969
1969
|
className: dt(U.sliderImage, {
|
|
1970
|
-
[U.contain]:
|
|
1971
|
-
[U.cover]:
|
|
1970
|
+
[U.contain]: f.image.objectFit === "contain",
|
|
1971
|
+
[U.cover]: f.image.objectFit === "cover"
|
|
1972
1972
|
}),
|
|
1973
|
-
src:
|
|
1974
|
-
alt:
|
|
1973
|
+
src: f.image.url,
|
|
1974
|
+
alt: f.image.name ?? ""
|
|
1975
1975
|
}
|
|
1976
1976
|
)
|
|
1977
1977
|
}
|
|
@@ -2086,7 +2086,7 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2086
2086
|
backgroundColor: k.colors[2],
|
|
2087
2087
|
transform: `scale(${k.scale / 100}) translate(${F(k.offset.x, o)}, ${F(k.offset.y, o)}) rotate(${L === "horiz" ? "0deg" : "90deg"})`
|
|
2088
2088
|
},
|
|
2089
|
-
children: e.map((
|
|
2089
|
+
children: e.map((f, I) => /* @__PURE__ */ P(
|
|
2090
2090
|
"button",
|
|
2091
2091
|
{
|
|
2092
2092
|
onClick: () => {
|
|
@@ -2097,10 +2097,10 @@ function va({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2097
2097
|
"div",
|
|
2098
2098
|
{
|
|
2099
2099
|
className: dt(U.dot, {
|
|
2100
|
-
[U.activeDot]: I ===
|
|
2100
|
+
[U.activeDot]: I === h
|
|
2101
2101
|
}),
|
|
2102
2102
|
style: {
|
|
2103
|
-
backgroundColor: I ===
|
|
2103
|
+
backgroundColor: I === h ? k.colors[0] : k.colors[1],
|
|
2104
2104
|
"--pagination-hover-color": k.hover
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
@@ -2728,7 +2728,7 @@ const ba = {
|
|
|
2728
2728
|
link: xa,
|
|
2729
2729
|
cursor: _a
|
|
2730
2730
|
};
|
|
2731
|
-
function
|
|
2731
|
+
function mo(t, e, n) {
|
|
2732
2732
|
for (const o of n) {
|
|
2733
2733
|
const r = new Image();
|
|
2734
2734
|
r.src = o.url;
|
|
@@ -2738,7 +2738,7 @@ function fo(t, e, n) {
|
|
|
2738
2738
|
}
|
|
2739
2739
|
return !1;
|
|
2740
2740
|
}
|
|
2741
|
-
function
|
|
2741
|
+
function yn(t) {
|
|
2742
2742
|
return new Promise((e) => {
|
|
2743
2743
|
const n = new Image();
|
|
2744
2744
|
n.src = t, n.onload = () => {
|
|
@@ -2750,23 +2750,23 @@ async function $a(t, e, n, o) {
|
|
|
2750
2750
|
let r, a;
|
|
2751
2751
|
if (e === "custom") {
|
|
2752
2752
|
r = n;
|
|
2753
|
-
const i = await
|
|
2753
|
+
const i = await yn(t);
|
|
2754
2754
|
a = i.height / i.width * r;
|
|
2755
2755
|
} else if (e === "random") {
|
|
2756
2756
|
r = Math.random() * (o.max - o.min) + o.min;
|
|
2757
|
-
const i = await
|
|
2757
|
+
const i = await yn(t);
|
|
2758
2758
|
a = i.height / i.width * r;
|
|
2759
2759
|
} else {
|
|
2760
|
-
const i = await
|
|
2760
|
+
const i = await yn(t);
|
|
2761
2761
|
r = i.width, a = i.height;
|
|
2762
2762
|
}
|
|
2763
2763
|
return { width: r, height: a, finalWidth: `${r}px` };
|
|
2764
2764
|
}
|
|
2765
2765
|
function wa({ settings: t, content: e, isEditor: n }) {
|
|
2766
|
-
const [o, r] = ct(null), [a, i] = ct([]), [c, s] = ct(0), p = wt(0), [u, C] = ct({ x: 0, y: 0 }), [
|
|
2766
|
+
const [o, r] = ct(null), [a, i] = ct([]), [c, s] = ct(0), p = wt(0), [u, C] = ct({ x: 0, y: 0 }), [y, g] = ct(1), [l, d] = ct("none"), w = wt({ x: 0, y: 0 }), [b, h] = ct(!1), { sizeType: x, imageWidth: V, randomRangeImageWidth: N } = t.imageSize, { revealPosition: L, visible: v } = t.position, { cursorType: T, target: k, defaultCursorScale: z, defaultCursor: A, hoverCursorScale: R, hoverCursor: B } = t.cursor;
|
|
2767
2767
|
bt(() => {
|
|
2768
2768
|
if (!o) return;
|
|
2769
|
-
const
|
|
2769
|
+
const f = ($, S) => {
|
|
2770
2770
|
const O = o.getBoundingClientRect(), G = $ - O.left, nt = S - O.top;
|
|
2771
2771
|
if (C({ x: G, y: nt }), T === "system") {
|
|
2772
2772
|
d("none"), g(1);
|
|
@@ -2777,12 +2777,12 @@ function wa({ settings: t, content: e, isEditor: n }) {
|
|
|
2777
2777
|
d("none"), g(1);
|
|
2778
2778
|
return;
|
|
2779
2779
|
}
|
|
2780
|
-
const K =
|
|
2780
|
+
const K = mo(tt, lt, a) || k === "area" ? { img: B ?? "none", scale: R } : { img: A ?? "none", scale: z };
|
|
2781
2781
|
d(K.img), g(K.scale);
|
|
2782
2782
|
}, I = ($) => {
|
|
2783
|
-
$.stopPropagation(), w.current = { x: $.clientX, y: $.clientY },
|
|
2783
|
+
$.stopPropagation(), w.current = { x: $.clientX, y: $.clientY }, f($.clientX, $.clientY);
|
|
2784
2784
|
}, _ = () => {
|
|
2785
|
-
b &&
|
|
2785
|
+
b && f(w.current.x, w.current.y);
|
|
2786
2786
|
};
|
|
2787
2787
|
return o.addEventListener("mousemove", I), window.addEventListener("scroll", _, !0), () => {
|
|
2788
2788
|
o.removeEventListener("mousemove", I), window.removeEventListener("scroll", _, !0);
|
|
@@ -2801,9 +2801,9 @@ function wa({ settings: t, content: e, isEditor: n }) {
|
|
|
2801
2801
|
]), bt(() => {
|
|
2802
2802
|
b || (d("none"), g(0));
|
|
2803
2803
|
}, [b]);
|
|
2804
|
-
const j = async (
|
|
2804
|
+
const j = async (f, I, _, $ = {}) => {
|
|
2805
2805
|
const { width: S, height: O, finalWidth: G } = await $a(
|
|
2806
|
-
|
|
2806
|
+
f.image.url,
|
|
2807
2807
|
x,
|
|
2808
2808
|
V,
|
|
2809
2809
|
N
|
|
@@ -2813,9 +2813,9 @@ function wa({ settings: t, content: e, isEditor: n }) {
|
|
|
2813
2813
|
const lt = Math.min(Math.max(nt, S / 2), I - S / 2), E = Math.min(Math.max(tt, O / 2), _ - O / 2);
|
|
2814
2814
|
return {
|
|
2815
2815
|
id: p.current++,
|
|
2816
|
-
url:
|
|
2817
|
-
link:
|
|
2818
|
-
name:
|
|
2816
|
+
url: f.image.url,
|
|
2817
|
+
link: f.link,
|
|
2818
|
+
name: f.image.name,
|
|
2819
2819
|
x: lt,
|
|
2820
2820
|
y: E,
|
|
2821
2821
|
width: G
|
|
@@ -2823,63 +2823,63 @@ function wa({ settings: t, content: e, isEditor: n }) {
|
|
|
2823
2823
|
};
|
|
2824
2824
|
return bt(() => {
|
|
2825
2825
|
if (!o || e.length === 0) return;
|
|
2826
|
-
const
|
|
2826
|
+
const f = o.getBoundingClientRect(), I = f.width, _ = f.height, $ = [];
|
|
2827
2827
|
(async () => {
|
|
2828
2828
|
const O = e[0], G = await j(O, I, _);
|
|
2829
2829
|
$.push(G), i($), s(1);
|
|
2830
2830
|
})();
|
|
2831
2831
|
}, [x, V, N, L, o]), bt(() => {
|
|
2832
|
-
v === "last One" && i((
|
|
2832
|
+
v === "last One" && i((f) => f.length > 0 ? [f[f.length - 1]] : []);
|
|
2833
2833
|
}, [v]), /* @__PURE__ */ St(
|
|
2834
2834
|
"div",
|
|
2835
2835
|
{
|
|
2836
2836
|
ref: r,
|
|
2837
|
-
onClick: async (
|
|
2837
|
+
onClick: async (f) => {
|
|
2838
2838
|
if (!o) return;
|
|
2839
|
-
const I = o.getBoundingClientRect(), _ =
|
|
2840
|
-
if (k === "image" && !
|
|
2839
|
+
const I = o.getBoundingClientRect(), _ = f.clientX - I.left, $ = f.clientY - I.top;
|
|
2840
|
+
if (k === "image" && !mo(_, $, a)) return;
|
|
2841
2841
|
let S = 0, O = 0;
|
|
2842
2842
|
L === "on Click" ? (S = _, O = $) : L === "same" ? (S = I.width / 2, O = I.height / 2) : (S = Math.random() * I.width, O = Math.random() * I.height);
|
|
2843
2843
|
const G = e[c], nt = await j(G, I.width, I.height, { x: S, y: O });
|
|
2844
2844
|
i((tt) => v === "all" ? [...tt, nt] : [nt]), s((tt) => tt >= e.length - 1 ? 0 : tt + 1);
|
|
2845
2845
|
},
|
|
2846
|
-
onMouseEnter: () =>
|
|
2847
|
-
onMouseLeave: () =>
|
|
2846
|
+
onMouseEnter: () => h(!0),
|
|
2847
|
+
onMouseLeave: () => h(!1),
|
|
2848
2848
|
className: ue.imageRevealSlider,
|
|
2849
2849
|
style: { cursor: l === "none" ? "default" : "none" },
|
|
2850
2850
|
children: [
|
|
2851
|
-
a.map((
|
|
2851
|
+
a.map((f) => /* @__PURE__ */ P(
|
|
2852
2852
|
"div",
|
|
2853
2853
|
{
|
|
2854
2854
|
className: ue.wrapper,
|
|
2855
2855
|
style: {
|
|
2856
|
-
top: `${
|
|
2857
|
-
left: `${
|
|
2856
|
+
top: `${f.y}px`,
|
|
2857
|
+
left: `${f.x}px`,
|
|
2858
2858
|
position: "absolute",
|
|
2859
2859
|
transform: "translate(-50%, -50%)",
|
|
2860
|
-
width:
|
|
2860
|
+
width: f.width ?? "auto",
|
|
2861
2861
|
height: "auto",
|
|
2862
2862
|
cursor: l === "none" ? "default" : "none"
|
|
2863
2863
|
},
|
|
2864
|
-
children: k === "area" &&
|
|
2864
|
+
children: k === "area" && f.link ? /* @__PURE__ */ P("a", { href: f.link, target: "_blank", className: ue.link, children: /* @__PURE__ */ P(
|
|
2865
2865
|
"img",
|
|
2866
2866
|
{
|
|
2867
|
-
src:
|
|
2868
|
-
alt:
|
|
2867
|
+
src: f.url,
|
|
2868
|
+
alt: f.name,
|
|
2869
2869
|
className: ue.image
|
|
2870
2870
|
},
|
|
2871
|
-
|
|
2871
|
+
f.id
|
|
2872
2872
|
) }) : /* @__PURE__ */ P(
|
|
2873
2873
|
"img",
|
|
2874
2874
|
{
|
|
2875
|
-
src:
|
|
2876
|
-
alt:
|
|
2875
|
+
src: f.url,
|
|
2876
|
+
alt: f.name,
|
|
2877
2877
|
className: ue.image
|
|
2878
2878
|
},
|
|
2879
|
-
|
|
2879
|
+
f.id
|
|
2880
2880
|
)
|
|
2881
2881
|
},
|
|
2882
|
-
|
|
2882
|
+
f.id
|
|
2883
2883
|
)),
|
|
2884
2884
|
b && /* @__PURE__ */ P(
|
|
2885
2885
|
"div",
|
|
@@ -2888,7 +2888,7 @@ function wa({ settings: t, content: e, isEditor: n }) {
|
|
|
2888
2888
|
style: {
|
|
2889
2889
|
left: `${u.x}px`,
|
|
2890
2890
|
top: `${u.y}px`,
|
|
2891
|
-
transform: `translate(-50%, -50%) scale(${
|
|
2891
|
+
transform: `translate(-50%, -50%) scale(${y})`,
|
|
2892
2892
|
backgroundImage: `url('${l}')`,
|
|
2893
2893
|
backgroundSize: "cover",
|
|
2894
2894
|
backgroundPosition: "center",
|
|
@@ -3267,11 +3267,11 @@ function sr(t) {
|
|
|
3267
3267
|
left: parseFloat(e.paddingLeft) || 0
|
|
3268
3268
|
};
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function fo(t) {
|
|
3271
3271
|
const e = t.getBoundingClientRect(), n = sr(t), o = Math.max(0, e.width - n.left - n.right), r = Math.max(0, e.height - n.top - n.bottom), a = t.naturalWidth, i = t.naturalHeight, c = o / r, s = a / i;
|
|
3272
3272
|
let p, u;
|
|
3273
3273
|
s > c ? (p = o, u = o / s) : (u = r, p = r * s);
|
|
3274
|
-
const C = e.left + n.left,
|
|
3274
|
+
const C = e.left + n.left, y = e.top + n.top, g = (o - p) / 2 + C, l = (r - u) / 2 + y;
|
|
3275
3275
|
return {
|
|
3276
3276
|
x: g,
|
|
3277
3277
|
y: l,
|
|
@@ -3279,7 +3279,7 @@ function mo(t) {
|
|
|
3279
3279
|
height: u
|
|
3280
3280
|
};
|
|
3281
3281
|
}
|
|
3282
|
-
function
|
|
3282
|
+
function ho(t) {
|
|
3283
3283
|
const e = t.getBoundingClientRect(), n = sr(t);
|
|
3284
3284
|
return {
|
|
3285
3285
|
left: e.left + n.left,
|
|
@@ -3288,7 +3288,7 @@ function yo(t) {
|
|
|
3288
3288
|
bottom: e.bottom - n.bottom
|
|
3289
3289
|
};
|
|
3290
3290
|
}
|
|
3291
|
-
function
|
|
3291
|
+
function yo(t) {
|
|
3292
3292
|
const e = t.match(/rgba?\(([^)]+)\)/);
|
|
3293
3293
|
if (e) {
|
|
3294
3294
|
const o = e[1].split(",").map((r) => parseFloat(r.trim()));
|
|
@@ -3398,112 +3398,112 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3398
3398
|
] });
|
|
3399
3399
|
}, gl = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
|
|
3400
3400
|
var M;
|
|
3401
|
-
const [s, p] = ct(0), [u, C] = ct(0), [
|
|
3401
|
+
const [s, p] = ct(0), [u, C] = ct(0), [y, g] = ct(!1), [l, d] = ct(!1), [w, b] = ct({}), h = wt(null), x = wt(null), V = wt(null), N = wt(!1), L = wt(null), v = wt(null), T = wt(null), k = wt(null), z = wt(!1), A = wt(null), [R, B] = ct(!1), { appear: j, triggers: H, slider: f, thumbnail: I, controls: _, area: $, caption: S, layout: O } = r.lightboxBlock, { appearClass: G, backdropAppearClass: nt, backdropDisappearClass: tt, disappearClass: lt } = pl(j.type, j.direction), E = (c == null ? void 0 : c.itemId) ?? null;
|
|
3402
3402
|
bt(() => {
|
|
3403
|
-
const
|
|
3403
|
+
const m = () => {
|
|
3404
3404
|
setTimeout(() => {
|
|
3405
3405
|
var q, Y;
|
|
3406
|
-
(Y = (q =
|
|
3406
|
+
(Y = (q = h.current) == null ? void 0 : q.splide) == null || Y.refresh();
|
|
3407
3407
|
}, 16);
|
|
3408
3408
|
}, D = () => {
|
|
3409
3409
|
C((q) => q + 1);
|
|
3410
3410
|
};
|
|
3411
|
-
return window.addEventListener("ArticleEditor.Layout:change",
|
|
3412
|
-
window.removeEventListener("ArticleEditor.Layout:change",
|
|
3411
|
+
return window.addEventListener("ArticleEditor.Layout:change", m), window.addEventListener("ArticleEditor.ComponentContent:change", D), () => {
|
|
3412
|
+
window.removeEventListener("ArticleEditor.Layout:change", m), window.removeEventListener("ArticleEditor.ComponentContent:change", D);
|
|
3413
3413
|
};
|
|
3414
3414
|
}, []), bt(() => {
|
|
3415
3415
|
if (!t || !I.isActive) {
|
|
3416
3416
|
B(!1);
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
|
-
const
|
|
3420
|
-
if (!
|
|
3419
|
+
const m = A.current;
|
|
3420
|
+
if (!m) return;
|
|
3421
3421
|
const D = () => {
|
|
3422
|
-
|
|
3422
|
+
f.direction === "horiz" ? B(m.scrollWidth > m.clientWidth) : B(m.scrollHeight > m.clientHeight);
|
|
3423
3423
|
};
|
|
3424
3424
|
D();
|
|
3425
3425
|
const q = new ResizeObserver(D);
|
|
3426
|
-
return q.observe(
|
|
3427
|
-
}, [t, I.isActive, n.length, w,
|
|
3426
|
+
return q.observe(m), () => q.disconnect();
|
|
3427
|
+
}, [t, I.isActive, n.length, w, f.direction]);
|
|
3428
3428
|
const K = dr(() => {
|
|
3429
|
-
const
|
|
3430
|
-
|
|
3429
|
+
const m = window.matchMedia("(max-width: 768px)").matches, D = yo($.color);
|
|
3430
|
+
m && !i && D > 0.9 && (document.body.style.backgroundColor = ""), g(!0), N.current = !0;
|
|
3431
3431
|
const q = (Y) => {
|
|
3432
3432
|
Y.target === L.current && Y.animationName && (L.current && v.current && L.current.removeEventListener("animationend", v.current), v.current = null, N.current && (N.current = !1, e()), g(!1));
|
|
3433
3433
|
};
|
|
3434
3434
|
L.current && (v.current = q, L.current.addEventListener("animationend", q));
|
|
3435
|
-
}, [e, $.color, i]),
|
|
3435
|
+
}, [e, $.color, i]), ht = (m, D, q) => {
|
|
3436
3436
|
var Y, et;
|
|
3437
|
-
if (
|
|
3437
|
+
if (m) {
|
|
3438
3438
|
if (H.type === "click" && H.switch === "image")
|
|
3439
|
-
H.repeat === "close" && s === n.length - 1 ? K() : (Y =
|
|
3439
|
+
H.repeat === "close" && s === n.length - 1 ? K() : (Y = h.current) == null || Y.go("+1");
|
|
3440
3440
|
else if (H.type === "click" && H.switch === "50/50") {
|
|
3441
|
-
const J =
|
|
3441
|
+
const J = m.getBoundingClientRect(), X = D - J.left, at = q - J.top, mt = J.width, rt = J.height;
|
|
3442
3442
|
let ot;
|
|
3443
|
-
|
|
3443
|
+
f.direction === "horiz" ? ot = X < mt / 2 ? "-1" : "+1" : ot = at < rt / 2 ? "-1" : "+1", (et = h.current) == null || et.go(ot);
|
|
3444
3444
|
}
|
|
3445
3445
|
}
|
|
3446
|
-
}, it = (
|
|
3446
|
+
}, it = (m) => {
|
|
3447
3447
|
if (z.current) {
|
|
3448
3448
|
z.current = !1;
|
|
3449
3449
|
return;
|
|
3450
3450
|
}
|
|
3451
3451
|
const D = n[s], q = (D == null ? void 0 : D.image.objectFit) === "cover";
|
|
3452
3452
|
let Y, et;
|
|
3453
|
-
if ("changedTouches" in
|
|
3454
|
-
Y =
|
|
3455
|
-
else if ("clientX" in
|
|
3456
|
-
Y =
|
|
3453
|
+
if ("changedTouches" in m && m.changedTouches.length > 0)
|
|
3454
|
+
Y = m.changedTouches[0].clientX, et = m.changedTouches[0].clientY;
|
|
3455
|
+
else if ("clientX" in m)
|
|
3456
|
+
Y = m.clientX, et = m.clientY;
|
|
3457
3457
|
else
|
|
3458
3458
|
return;
|
|
3459
3459
|
let J;
|
|
3460
3460
|
if (q && V.current) {
|
|
3461
|
-
const X =
|
|
3461
|
+
const X = ho(V.current);
|
|
3462
3462
|
J = Y >= X.left && Y <= X.right && et >= X.top && et <= X.bottom;
|
|
3463
3463
|
} else {
|
|
3464
|
-
const X = V.current ?
|
|
3464
|
+
const X = V.current ? fo(V.current) : null;
|
|
3465
3465
|
if (!X) {
|
|
3466
|
-
|
|
3466
|
+
m.target === m.currentTarget && K();
|
|
3467
3467
|
return;
|
|
3468
3468
|
}
|
|
3469
3469
|
J = Y >= X.x && Y <= X.x + X.width && et >= X.y && et <= X.y + X.height;
|
|
3470
3470
|
}
|
|
3471
|
-
J ?
|
|
3472
|
-
},
|
|
3473
|
-
const D =
|
|
3474
|
-
(D.classList.contains(W.thumbsWrapper) || D.classList.contains(W.thumbsContainer)) && it(
|
|
3471
|
+
J ? ht(V.current, Y, et) : K();
|
|
3472
|
+
}, ft = (m) => {
|
|
3473
|
+
const D = m.target;
|
|
3474
|
+
(D.classList.contains(W.thumbsWrapper) || D.classList.contains(W.thumbsContainer)) && it(m);
|
|
3475
3475
|
};
|
|
3476
3476
|
bt(() => {
|
|
3477
3477
|
if (!t) return;
|
|
3478
|
-
const
|
|
3478
|
+
const m = (D) => {
|
|
3479
3479
|
var q, Y;
|
|
3480
3480
|
if (D.key === "Escape") {
|
|
3481
3481
|
K();
|
|
3482
3482
|
return;
|
|
3483
3483
|
}
|
|
3484
3484
|
if (D.key === "ArrowRight") {
|
|
3485
|
-
p((et) => (et + 1) % Math.max(n.length, 1)), (q =
|
|
3485
|
+
p((et) => (et + 1) % Math.max(n.length, 1)), (q = h.current) == null || q.go("+1");
|
|
3486
3486
|
return;
|
|
3487
3487
|
}
|
|
3488
|
-
D.key === "ArrowLeft" && (p((et) => (et - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (Y =
|
|
3488
|
+
D.key === "ArrowLeft" && (p((et) => (et - 1 + Math.max(n.length, 1)) % Math.max(n.length, 1)), (Y = h.current) == null || Y.go("-1"));
|
|
3489
3489
|
};
|
|
3490
|
-
return window.addEventListener("keydown",
|
|
3491
|
-
window.removeEventListener("keydown",
|
|
3490
|
+
return window.addEventListener("keydown", m), () => {
|
|
3491
|
+
window.removeEventListener("keydown", m);
|
|
3492
3492
|
};
|
|
3493
3493
|
}, [t, K, n.length]), bt(() => {
|
|
3494
3494
|
if (t) {
|
|
3495
3495
|
if (p(0), C((D) => D + 1), N.current = !1, g(!1), d(!1), b({}), !E) return;
|
|
3496
|
-
const
|
|
3497
|
-
window.dispatchEvent(
|
|
3496
|
+
const m = new CustomEvent("page-overlay", { detail: { itemId: E } });
|
|
3497
|
+
window.dispatchEvent(m);
|
|
3498
3498
|
}
|
|
3499
3499
|
return () => {
|
|
3500
3500
|
L.current && v.current && (L.current.removeEventListener("animationend", v.current), v.current = null), d(!1);
|
|
3501
3501
|
};
|
|
3502
3502
|
}, [t, E]), bt(() => {
|
|
3503
|
-
x.current !== null && x.current !==
|
|
3504
|
-
}, [
|
|
3503
|
+
x.current !== null && x.current !== f.type && C((m) => m + 1), x.current = f.type;
|
|
3504
|
+
}, [f.type]), bt(() => {
|
|
3505
3505
|
if (!t) return;
|
|
3506
|
-
const
|
|
3506
|
+
const m = document.body.style.overflow, D = window.matchMedia("(max-width: 768px)").matches, q = yo($.color);
|
|
3507
3507
|
document.body.style.overflow = "hidden", d(!1);
|
|
3508
3508
|
const Y = (J) => {
|
|
3509
3509
|
J.target === L.current && !N.current && J.animationName && (D && !i && q > 0.9 && (document.body.style.backgroundColor = $.color), d(!0), L.current && T.current && L.current.removeEventListener("animationend", T.current), T.current = null);
|
|
@@ -3511,14 +3511,14 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3511
3511
|
L.current && (T.current = Y, L.current.addEventListener("animationend", Y));
|
|
3512
3512
|
const et = (J) => {
|
|
3513
3513
|
const X = J.target;
|
|
3514
|
-
X && (X.closest(`.${W.thumbsWrapper}`) || X.closest(`.${W.thumbsContainer}`)) ||
|
|
3514
|
+
X && (X.closest(`.${W.thumbsWrapper}`) || X.closest(`.${W.thumbsContainer}`)) || f.type !== "slide" && J.preventDefault();
|
|
3515
3515
|
};
|
|
3516
3516
|
return document.addEventListener("touchmove", et, { passive: !1 }), () => {
|
|
3517
|
-
document.body.style.overflow =
|
|
3517
|
+
document.body.style.overflow = m, document.removeEventListener("touchmove", et), L.current && T.current && (L.current.removeEventListener("animationend", T.current), T.current = null), d(!1);
|
|
3518
3518
|
};
|
|
3519
|
-
}, [t, i, $.color,
|
|
3519
|
+
}, [t, i, $.color, f.type]), bt(() => {
|
|
3520
3520
|
if (!t) return;
|
|
3521
|
-
const
|
|
3521
|
+
const m = (D) => {
|
|
3522
3522
|
var Y, et;
|
|
3523
3523
|
if (N.current) {
|
|
3524
3524
|
D.stopPropagation();
|
|
@@ -3530,23 +3530,23 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3530
3530
|
}
|
|
3531
3531
|
const q = D.target;
|
|
3532
3532
|
if (!(q && (q.closest(`.${W.thumbsContainer}`) || q.closest(`.${W.thumbItem}`)))) {
|
|
3533
|
-
if (
|
|
3534
|
-
const J =
|
|
3533
|
+
if (f.type === "slide" && H.type === "drag" && ((et = (Y = h.current) == null ? void 0 : Y.splide) != null && et.root)) {
|
|
3534
|
+
const J = h.current.splide.root;
|
|
3535
3535
|
if (q && (J.contains(q) || J === q))
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
3538
|
if (D.touches.length === 0 && D.changedTouches.length > 0) {
|
|
3539
3539
|
const J = n[s], X = (J == null ? void 0 : J.image.objectFit) === "cover", at = D.changedTouches[0];
|
|
3540
|
-
let
|
|
3540
|
+
let mt;
|
|
3541
3541
|
if (X && V.current) {
|
|
3542
|
-
const rt =
|
|
3543
|
-
|
|
3542
|
+
const rt = ho(V.current);
|
|
3543
|
+
mt = at.clientX >= rt.left && at.clientX <= rt.right && at.clientY >= rt.top && at.clientY <= rt.bottom;
|
|
3544
3544
|
} else {
|
|
3545
|
-
const rt = V.current ?
|
|
3545
|
+
const rt = V.current ? fo(V.current) : null;
|
|
3546
3546
|
if (!rt) return;
|
|
3547
|
-
|
|
3547
|
+
mt = at.clientX >= rt.x && at.clientX <= rt.x + rt.width && at.clientY >= rt.y && at.clientY <= rt.y + rt.height;
|
|
3548
3548
|
}
|
|
3549
|
-
if (!
|
|
3549
|
+
if (!mt) {
|
|
3550
3550
|
D.stopPropagation(), N.current = !0;
|
|
3551
3551
|
const rt = (ot) => {
|
|
3552
3552
|
ot.stopPropagation(), ot.preventDefault(), document.removeEventListener("click", rt, !0);
|
|
@@ -3556,15 +3556,15 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
3558
|
};
|
|
3559
|
-
return document.addEventListener("touchend",
|
|
3560
|
-
document.removeEventListener("touchend",
|
|
3559
|
+
return document.addEventListener("touchend", m, { passive: !0 }), () => {
|
|
3560
|
+
document.removeEventListener("touchend", m);
|
|
3561
3561
|
};
|
|
3562
3562
|
}, [t, K, s, n]);
|
|
3563
|
-
const Wt = (
|
|
3563
|
+
const Wt = (f.type === "scale" || f.type === "fade") && f.direction === "vert" && H.type === "drag";
|
|
3564
3564
|
bt(() => {
|
|
3565
3565
|
var ot, Yt;
|
|
3566
|
-
if (!t || !Wt || !((Yt = (ot =
|
|
3567
|
-
const
|
|
3566
|
+
if (!t || !Wt || !((Yt = (ot = h.current) == null ? void 0 : ot.splide) != null && Yt.root)) return;
|
|
3567
|
+
const m = h.current.splide.root, D = 30, q = (Z, st) => {
|
|
3568
3568
|
if (k.current) {
|
|
3569
3569
|
const xt = Math.abs(Z - k.current.x), It = Math.abs(st - k.current.y);
|
|
3570
3570
|
(xt > 0 || It > 0) && (z.current = !0);
|
|
@@ -3574,12 +3574,12 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3574
3574
|
}, et = (Z) => {
|
|
3575
3575
|
k.current && Z.touches.length > 0 && (Z.preventDefault(), q(Z.touches[0].clientX, Z.touches[0].clientY));
|
|
3576
3576
|
}, J = (Z, st) => {
|
|
3577
|
-
if (!k.current || !
|
|
3577
|
+
if (!k.current || !h.current) {
|
|
3578
3578
|
k.current = null;
|
|
3579
3579
|
return;
|
|
3580
3580
|
}
|
|
3581
3581
|
const xt = Math.abs(Z - k.current.x), It = Math.abs(st - k.current.y);
|
|
3582
|
-
It > D && It > xt &&
|
|
3582
|
+
It > D && It > xt && h.current.go(st < k.current.y ? "+1" : "-1"), k.current = null;
|
|
3583
3583
|
}, X = (Z) => {
|
|
3584
3584
|
k.current && J(Z.clientX, Z.clientY), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("pointermove", Y);
|
|
3585
3585
|
}, at = (Z) => {
|
|
@@ -3590,13 +3590,13 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3590
3590
|
}
|
|
3591
3591
|
document.removeEventListener("touchend", at), document.removeEventListener("touchcancel", at), document.removeEventListener("touchmove", et);
|
|
3592
3592
|
}
|
|
3593
|
-
},
|
|
3593
|
+
}, mt = (Z) => {
|
|
3594
3594
|
k.current = { x: Z.clientX, y: Z.clientY }, z.current = !1, document.addEventListener("pointermove", Y, { passive: !1 }), document.addEventListener("pointerup", X), document.addEventListener("pointercancel", X);
|
|
3595
3595
|
}, rt = (Z) => {
|
|
3596
3596
|
Z.touches.length > 0 && (k.current = { x: Z.touches[0].clientX, y: Z.touches[0].clientY }, z.current = !1, document.addEventListener("touchmove", et, { passive: !1 }), document.addEventListener("touchend", at), document.addEventListener("touchcancel", at));
|
|
3597
3597
|
};
|
|
3598
|
-
return
|
|
3599
|
-
|
|
3598
|
+
return m.addEventListener("pointerdown", mt), m.addEventListener("touchstart", rt), () => {
|
|
3599
|
+
m.removeEventListener("pointerdown", mt), m.removeEventListener("touchstart", rt), document.removeEventListener("pointermove", Y), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("touchmove", et), document.removeEventListener("touchend", at), document.removeEventListener("touchcancel", at), k.current = null, z.current = !1;
|
|
3600
3600
|
};
|
|
3601
3601
|
}, [t, Wt, u]);
|
|
3602
3602
|
const zt = {
|
|
@@ -3606,16 +3606,16 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3606
3606
|
animationTimingFunction: "ease",
|
|
3607
3607
|
animationFillMode: "both"
|
|
3608
3608
|
};
|
|
3609
|
-
return document.getElementById(a) ? gr(
|
|
3609
|
+
return typeof document > "u" || !document.getElementById(a) ? null : gr(
|
|
3610
3610
|
/* @__PURE__ */ St(Te, { children: [
|
|
3611
3611
|
/* @__PURE__ */ P(
|
|
3612
3612
|
"div",
|
|
3613
3613
|
{
|
|
3614
3614
|
ref: i ? null : L,
|
|
3615
|
-
className: dt(W.background,
|
|
3615
|
+
className: dt(W.background, y ? tt : nt, { [W.editor]: i }, { [W.hidden]: !t }),
|
|
3616
3616
|
style: {
|
|
3617
3617
|
...zt,
|
|
3618
|
-
...l && !i && !
|
|
3618
|
+
...l && !i && !y ? { position: "absolute" } : {}
|
|
3619
3619
|
}
|
|
3620
3620
|
}
|
|
3621
3621
|
),
|
|
@@ -3623,7 +3623,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3623
3623
|
"div",
|
|
3624
3624
|
{
|
|
3625
3625
|
ref: i ? L : null,
|
|
3626
|
-
className: dt(W.contentStyle,
|
|
3626
|
+
className: dt(W.contentStyle, y ? lt : G, { [W.editor]: i }, { [W.hidden]: !t }),
|
|
3627
3627
|
style: {
|
|
3628
3628
|
animationDuration: `${parseInt(j.duration)}ms`,
|
|
3629
3629
|
animationTimingFunction: "ease",
|
|
@@ -3633,27 +3633,27 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3633
3633
|
/* @__PURE__ */ P(
|
|
3634
3634
|
ir,
|
|
3635
3635
|
{
|
|
3636
|
-
onMove: (
|
|
3637
|
-
ref:
|
|
3636
|
+
onMove: (m) => p(m.index),
|
|
3637
|
+
ref: h,
|
|
3638
3638
|
className: W.lightboxSplide,
|
|
3639
3639
|
options: {
|
|
3640
3640
|
arrows: !1,
|
|
3641
|
-
speed:
|
|
3642
|
-
direction:
|
|
3641
|
+
speed: f.duration ? parseInt(f.duration) : 500,
|
|
3642
|
+
direction: f.direction === "horiz" || f.type === "fade" || f.type === "scale" ? "ltr" : "ttb",
|
|
3643
3643
|
pagination: !1,
|
|
3644
3644
|
// Disable Splide's drag when we need custom vertical drag handling
|
|
3645
3645
|
drag: H.type === "drag" && !Wt,
|
|
3646
3646
|
perPage: 1,
|
|
3647
3647
|
width: "100%",
|
|
3648
3648
|
height: "100%",
|
|
3649
|
-
type:
|
|
3649
|
+
type: f.type === "fade" || f.type === "scale" ? "fade" : "loop",
|
|
3650
3650
|
padding: 0,
|
|
3651
3651
|
rewind: H.repeat !== "close",
|
|
3652
3652
|
start: 0
|
|
3653
3653
|
},
|
|
3654
|
-
style: { "--splide-speed":
|
|
3655
|
-
children: n.map((
|
|
3656
|
-
const q = He(O.position, O.offset, i), Y = `${F(O.padding.top, i)} ${F(O.padding.right, i)} ${F(O.padding.bottom, i)} ${F(O.padding.left, i)}`, et =
|
|
3654
|
+
style: { "--splide-speed": f.duration },
|
|
3655
|
+
children: n.map((m, D) => {
|
|
3656
|
+
const q = He(O.position, O.offset, i), Y = `${F(O.padding.top, i)} ${F(O.padding.right, i)} ${F(O.padding.bottom, i)} ${F(O.padding.left, i)}`, et = f.type === "scale" ? (() => {
|
|
3657
3657
|
const { transform: J, ...X } = q;
|
|
3658
3658
|
return {
|
|
3659
3659
|
...X,
|
|
@@ -3668,13 +3668,13 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3668
3668
|
{
|
|
3669
3669
|
ref: D === s ? V : null,
|
|
3670
3670
|
className: dt(W.imageStyle, {
|
|
3671
|
-
[W.contain]:
|
|
3672
|
-
[W.cover]:
|
|
3673
|
-
[W.scaleSlide]:
|
|
3671
|
+
[W.contain]: m.image.objectFit === "contain",
|
|
3672
|
+
[W.cover]: m.image.objectFit === "cover",
|
|
3673
|
+
[W.scaleSlide]: f.type === "scale"
|
|
3674
3674
|
}),
|
|
3675
|
-
src:
|
|
3676
|
-
alt:
|
|
3677
|
-
style: { ...et, pointerEvents:
|
|
3675
|
+
src: m.image.url,
|
|
3676
|
+
alt: m.image.name ?? "",
|
|
3677
|
+
style: { ...et, pointerEvents: m.image.objectFit === "contain" ? "none" : "auto" }
|
|
3678
3678
|
}
|
|
3679
3679
|
) }) }, D);
|
|
3680
3680
|
})
|
|
@@ -3685,16 +3685,16 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3685
3685
|
/* @__PURE__ */ P(
|
|
3686
3686
|
"div",
|
|
3687
3687
|
{
|
|
3688
|
-
className: dt(W.arrow, { [W.arrowVertical]:
|
|
3688
|
+
className: dt(W.arrow, { [W.arrowVertical]: f.direction === "vert" }),
|
|
3689
3689
|
style: { color: _.color, "--arrow-hover-color": _.hover },
|
|
3690
3690
|
children: /* @__PURE__ */ St(
|
|
3691
3691
|
"button",
|
|
3692
3692
|
{
|
|
3693
3693
|
className: W.arrowInner,
|
|
3694
|
-
style: { transform: `translate(${F(_.offset.x, i)}, ${F(_.offset.y * (
|
|
3694
|
+
style: { transform: `translate(${F(_.offset.x, i)}, ${F(_.offset.y * (f.direction === "horiz" ? 1 : -1), i)}) scale(${_.scale}) rotate(${f.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3695
3695
|
onClick: () => {
|
|
3696
|
-
var
|
|
3697
|
-
return (
|
|
3696
|
+
var m;
|
|
3697
|
+
return (m = h.current) == null ? void 0 : m.go("-1");
|
|
3698
3698
|
},
|
|
3699
3699
|
"aria-label": "Previous",
|
|
3700
3700
|
children: [
|
|
@@ -3716,16 +3716,16 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3716
3716
|
/* @__PURE__ */ P(
|
|
3717
3717
|
"div",
|
|
3718
3718
|
{
|
|
3719
|
-
className: dt(W.arrow, W.nextArrow, { [W.arrowVertical]:
|
|
3719
|
+
className: dt(W.arrow, W.nextArrow, { [W.arrowVertical]: f.direction === "vert" }),
|
|
3720
3720
|
style: { color: _.color, "--arrow-hover-color": _.hover },
|
|
3721
3721
|
children: /* @__PURE__ */ St(
|
|
3722
3722
|
"button",
|
|
3723
3723
|
{
|
|
3724
3724
|
className: W.arrowInner,
|
|
3725
|
-
style: { transform: `translate(${F(_.offset.x * (
|
|
3725
|
+
style: { transform: `translate(${F(_.offset.x * (f.direction === "horiz" ? -1 : 1), i)}, ${F(_.offset.y, i)}) scale(${_.scale}) rotate(${f.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3726
3726
|
onClick: () => {
|
|
3727
|
-
var
|
|
3728
|
-
return (
|
|
3727
|
+
var m;
|
|
3728
|
+
return (m = h.current) == null ? void 0 : m.go("+1");
|
|
3729
3729
|
},
|
|
3730
3730
|
"aria-label": "Next",
|
|
3731
3731
|
children: [
|
|
@@ -3746,11 +3746,11 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3746
3746
|
)
|
|
3747
3747
|
] }),
|
|
3748
3748
|
$.closeIconUrl && (() => {
|
|
3749
|
-
const
|
|
3750
|
-
return /* @__PURE__ */ P("button", { className: W.closeButton, style: { ...
|
|
3749
|
+
const m = He($.closeIconAlign, $.closeIconOffset, i), D = `scale(${$.closeIconScale})`, q = m.transform ? `${m.transform} ${D}` : D;
|
|
3750
|
+
return /* @__PURE__ */ P("button", { className: W.closeButton, style: { ...m, transform: q }, onClick: K, "aria-label": "Close lightbox", children: /* @__PURE__ */ P(we, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
|
|
3751
3751
|
})(),
|
|
3752
3752
|
S && S.isActive && o.imageCaption && ((M = n[s]) == null ? void 0 : M.imageCaption) && (() => {
|
|
3753
|
-
const { widthSettings:
|
|
3753
|
+
const { widthSettings: m, fontSettings: D, letterSpacing: q, textAlign: Y, wordSpacing: et, fontSizeLineHeight: J, textAppearance: X, color: at } = o.imageCaption;
|
|
3754
3754
|
return /* @__PURE__ */ P(
|
|
3755
3755
|
"div",
|
|
3756
3756
|
{
|
|
@@ -3760,7 +3760,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3760
3760
|
fontFamily: D.fontFamily,
|
|
3761
3761
|
fontWeight: D.fontWeight,
|
|
3762
3762
|
fontStyle: D.fontStyle,
|
|
3763
|
-
width:
|
|
3763
|
+
width: m.sizing === "auto" ? "max-content" : F(m.width, i),
|
|
3764
3764
|
letterSpacing: F(q, i),
|
|
3765
3765
|
wordSpacing: F(et, i),
|
|
3766
3766
|
textAlign: Y,
|
|
@@ -3771,7 +3771,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3771
3771
|
fontVariant: X.fontVariant ?? "normal",
|
|
3772
3772
|
color: at
|
|
3773
3773
|
},
|
|
3774
|
-
onClick: (
|
|
3774
|
+
onClick: (mt) => mt.stopPropagation(),
|
|
3775
3775
|
children: /* @__PURE__ */ P(
|
|
3776
3776
|
"div",
|
|
3777
3777
|
{
|
|
@@ -3788,15 +3788,15 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3788
3788
|
);
|
|
3789
3789
|
})(),
|
|
3790
3790
|
I.isActive && (() => {
|
|
3791
|
-
const [
|
|
3792
|
-
if (
|
|
3791
|
+
const [m, D] = I.position.split("-"), q = f.direction === "horiz" ? `${m}-left` : I.position, Y = He(q, I.offset, i), et = () => {
|
|
3792
|
+
if (f.direction === "horiz") {
|
|
3793
3793
|
if (D === "left") return "flex-start";
|
|
3794
3794
|
if (D === "center") return "center";
|
|
3795
3795
|
if (D === "right") return "flex-end";
|
|
3796
3796
|
} else {
|
|
3797
|
-
if (
|
|
3798
|
-
if (
|
|
3799
|
-
if (
|
|
3797
|
+
if (m === "top") return "flex-start";
|
|
3798
|
+
if (m === "middle") return "center";
|
|
3799
|
+
if (m === "bottom") return "flex-end";
|
|
3800
3800
|
}
|
|
3801
3801
|
return "flex-start";
|
|
3802
3802
|
};
|
|
@@ -3805,11 +3805,11 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3805
3805
|
{
|
|
3806
3806
|
ref: A,
|
|
3807
3807
|
className: W.thumbsWrapper,
|
|
3808
|
-
onClick: (J) =>
|
|
3808
|
+
onClick: (J) => ft(J),
|
|
3809
3809
|
style: {
|
|
3810
3810
|
position: i ? "absolute" : "fixed",
|
|
3811
3811
|
...Y,
|
|
3812
|
-
...
|
|
3812
|
+
...f.direction === "horiz" ? {
|
|
3813
3813
|
maxWidth: "100vw",
|
|
3814
3814
|
width: "100%",
|
|
3815
3815
|
overflowX: "auto",
|
|
@@ -3824,7 +3824,7 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3824
3824
|
"div",
|
|
3825
3825
|
{
|
|
3826
3826
|
className: dt(W.thumbsContainer, {
|
|
3827
|
-
[W.thumbsContainerVertical]:
|
|
3827
|
+
[W.thumbsContainerVertical]: f.direction === "vert",
|
|
3828
3828
|
[W.thumbsAlignStart]: I.align === "start",
|
|
3829
3829
|
[W.thumbsAlignCenter]: I.align === "center",
|
|
3830
3830
|
[W.thumbsAlignEnd]: I.align === "end"
|
|
@@ -3834,12 +3834,12 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3834
3834
|
justifyContent: R ? "flex-start" : et()
|
|
3835
3835
|
},
|
|
3836
3836
|
children: n.map((J, X) => {
|
|
3837
|
-
const at = X === s,
|
|
3837
|
+
const at = X === s, mt = w[X], ot = I.grid.size * (at ? I.activeState.scale : 1), Yt = () => {
|
|
3838
3838
|
if (I.fit !== "fit") return {};
|
|
3839
|
-
if (!
|
|
3840
|
-
return
|
|
3841
|
-
const Z =
|
|
3842
|
-
if (
|
|
3839
|
+
if (!mt)
|
|
3840
|
+
return f.direction === "horiz" ? { height: F(ot, i) } : { width: F(ot, i) };
|
|
3841
|
+
const Z = mt.width / mt.height;
|
|
3842
|
+
if (f.direction === "horiz") {
|
|
3843
3843
|
const st = ot, xt = st * Z;
|
|
3844
3844
|
return {
|
|
3845
3845
|
width: F(xt, i),
|
|
@@ -3858,8 +3858,8 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3858
3858
|
{
|
|
3859
3859
|
className: W.thumbItem,
|
|
3860
3860
|
style: {
|
|
3861
|
-
...
|
|
3862
|
-
...
|
|
3861
|
+
...f.direction === "horiz" && I.fit !== "fit" ? { height: F(ot, i) } : {},
|
|
3862
|
+
...f.direction === "vert" && I.fit !== "fit" ? { width: F(ot, i) } : {},
|
|
3863
3863
|
...I.fit === "cover" ? { width: F(ot, i), height: F(ot, i) } : {},
|
|
3864
3864
|
...Yt(),
|
|
3865
3865
|
transition: at ? "all 0.25s ease-out" : "none",
|
|
@@ -3868,11 +3868,11 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3868
3868
|
},
|
|
3869
3869
|
onClick: (Z) => {
|
|
3870
3870
|
var st;
|
|
3871
|
-
Z.stopPropagation(), p(X), (st =
|
|
3871
|
+
Z.stopPropagation(), p(X), (st = h.current) == null || st.go(X);
|
|
3872
3872
|
},
|
|
3873
3873
|
onMouseEnter: () => {
|
|
3874
3874
|
var Z;
|
|
3875
|
-
I.triggers === "hov" && ((Z =
|
|
3875
|
+
I.triggers === "hov" && ((Z = h.current) == null || Z.go(X));
|
|
3876
3876
|
},
|
|
3877
3877
|
children: /* @__PURE__ */ P(
|
|
3878
3878
|
"img",
|
|
@@ -3907,12 +3907,12 @@ const dl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3907
3907
|
)
|
|
3908
3908
|
] }),
|
|
3909
3909
|
document.getElementById(a)
|
|
3910
|
-
)
|
|
3910
|
+
);
|
|
3911
3911
|
};
|
|
3912
3912
|
function vo({ color: t, className: e }) {
|
|
3913
3913
|
return /* @__PURE__ */ P("svg", { viewBox: "0 0 10 18", className: e, children: /* @__PURE__ */ P("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ P("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: t, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3914
3914
|
}
|
|
3915
|
-
const
|
|
3915
|
+
const ml = {
|
|
3916
3916
|
element: dl,
|
|
3917
3917
|
id: "lightbox",
|
|
3918
3918
|
name: "Lightbox",
|
|
@@ -4986,7 +4986,7 @@ const fl = {
|
|
|
4986
4986
|
function pe(t) {
|
|
4987
4987
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
4988
4988
|
}
|
|
4989
|
-
function
|
|
4989
|
+
function fl(t) {
|
|
4990
4990
|
return `
|
|
4991
4991
|
.${t}-wrapper {
|
|
4992
4992
|
display: flex;
|
|
@@ -5121,7 +5121,7 @@ function ml(t) {
|
|
|
5121
5121
|
}
|
|
5122
5122
|
`;
|
|
5123
5123
|
}
|
|
5124
|
-
function
|
|
5124
|
+
function hl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
5125
5125
|
const { prefix: r } = Co(), {
|
|
5126
5126
|
type: a = "A",
|
|
5127
5127
|
fieldsToShow: i = 2,
|
|
@@ -5130,13 +5130,13 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5130
5130
|
gap: p,
|
|
5131
5131
|
fieldsGap: u,
|
|
5132
5132
|
buttonCorners: C,
|
|
5133
|
-
buttonStroke:
|
|
5133
|
+
buttonStroke: y,
|
|
5134
5134
|
buttonPadding: g,
|
|
5135
5135
|
isButtonFullWidth: l,
|
|
5136
5136
|
inputCorners: d,
|
|
5137
5137
|
inputStroke: w,
|
|
5138
5138
|
inputPadding: b,
|
|
5139
|
-
inputColor:
|
|
5139
|
+
inputColor: h,
|
|
5140
5140
|
inputTextColor: x,
|
|
5141
5141
|
inputBorderColor: V,
|
|
5142
5142
|
placeholderColor: N,
|
|
@@ -5150,7 +5150,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5150
5150
|
inputFontSettings: B,
|
|
5151
5151
|
inputFontSize: j,
|
|
5152
5152
|
inputLineHeight: H,
|
|
5153
|
-
inputLetterSpacing:
|
|
5153
|
+
inputLetterSpacing: f,
|
|
5154
5154
|
inputWordSpacing: I,
|
|
5155
5155
|
inputTextAppearance: _,
|
|
5156
5156
|
buttonFontSettings: $,
|
|
@@ -5162,13 +5162,13 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5162
5162
|
labelFontSettings: lt,
|
|
5163
5163
|
labelFontSize: E,
|
|
5164
5164
|
labelLineHeight: K,
|
|
5165
|
-
labelLetterSpacing:
|
|
5165
|
+
labelLetterSpacing: ht,
|
|
5166
5166
|
labelWordSpacing: it,
|
|
5167
|
-
labelTextAppearance:
|
|
5167
|
+
labelTextAppearance: ft,
|
|
5168
5168
|
successMessage: Wt,
|
|
5169
5169
|
errorMessage: zt,
|
|
5170
5170
|
stateOverrides: M
|
|
5171
|
-
} = t,
|
|
5171
|
+
} = t, m = a === "B", D = c.slice(0, Math.min(i, c.length)), q = {
|
|
5172
5172
|
fontSettings: {
|
|
5173
5173
|
fontFamily: R,
|
|
5174
5174
|
fontWeight: (B == null ? void 0 : B.fontWeight) ?? 400,
|
|
@@ -5176,18 +5176,19 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5176
5176
|
},
|
|
5177
5177
|
fontSize: j ?? 0.01,
|
|
5178
5178
|
lineHeight: H,
|
|
5179
|
-
letterSpacing:
|
|
5179
|
+
letterSpacing: f ?? 0,
|
|
5180
5180
|
wordSpacing: I ?? 0,
|
|
5181
5181
|
textAppearance: _
|
|
5182
5182
|
}, Y = vn(q, e), et = F(w ?? 0, e), J = {
|
|
5183
5183
|
...Y,
|
|
5184
5184
|
borderStyle: "solid",
|
|
5185
5185
|
borderRadius: a === "C" ? 0 : F(d ?? 0, e),
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5186
|
+
...a === "C" ? {
|
|
5187
|
+
borderTopWidth: 0,
|
|
5188
|
+
borderRightWidth: 0,
|
|
5189
|
+
borderBottomWidth: et,
|
|
5190
|
+
borderLeftWidth: 0
|
|
5191
|
+
} : { borderWidth: et },
|
|
5191
5192
|
paddingTop: F((b == null ? void 0 : b.top) ?? 0, e),
|
|
5192
5193
|
paddingRight: F((b == null ? void 0 : b.right) ?? 0, e),
|
|
5193
5194
|
paddingBottom: F((b == null ? void 0 : b.bottom) ?? 0, e),
|
|
@@ -5203,7 +5204,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5203
5204
|
letterSpacing: G ?? 0,
|
|
5204
5205
|
wordSpacing: nt ?? 0,
|
|
5205
5206
|
textAppearance: tt
|
|
5206
|
-
}, at = vn(X, e),
|
|
5207
|
+
}, at = vn(X, e), mt = F(y ?? 0, e), rt = {
|
|
5207
5208
|
fontSettings: {
|
|
5208
5209
|
fontFamily: R,
|
|
5209
5210
|
fontWeight: (lt == null ? void 0 : lt.fontWeight) ?? 400,
|
|
@@ -5211,11 +5212,11 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5211
5212
|
},
|
|
5212
5213
|
fontSize: E ?? 0.01,
|
|
5213
5214
|
lineHeight: K,
|
|
5214
|
-
letterSpacing:
|
|
5215
|
+
letterSpacing: ht ?? 0,
|
|
5215
5216
|
wordSpacing: it ?? 0,
|
|
5216
|
-
textAppearance:
|
|
5217
|
+
textAppearance: ft
|
|
5217
5218
|
}, ot = vn(rt, e), Yt = xo(r, {
|
|
5218
|
-
inputColor:
|
|
5219
|
+
inputColor: h,
|
|
5219
5220
|
inputTextColor: x,
|
|
5220
5221
|
inputBorderColor: V,
|
|
5221
5222
|
placeholderColor: N != null && N.trim() ? N : "#cccccc",
|
|
@@ -5225,7 +5226,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5225
5226
|
labelTextColor: k,
|
|
5226
5227
|
successColor: z,
|
|
5227
5228
|
errorColor: A
|
|
5228
|
-
},
|
|
5229
|
+
}, yl, vl, M), [Z, st] = ct(
|
|
5229
5230
|
() => Object.fromEntries(D.map((pt) => [pt.name, ""]))
|
|
5230
5231
|
), [xt, It] = ct("idle"), [vt, Gt] = ct(null), qt = o === "success" ? "success" : o === "error" ? "error" : xt, $t = o === "error" ? zt : vt, Tt = o === "filled" ? Object.fromEntries(D.map((pt) => [pt.name, "Filled"])) : Z, cr = qt === "error" ? Xe(D, Tt) : null, ur = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), Xn = n == null ? void 0 : n.submitUrl, Kn = (pt, se) => {
|
|
5231
5232
|
st((Xt) => ({ ...Xt, [pt]: se }));
|
|
@@ -5260,7 +5261,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5260
5261
|
}
|
|
5261
5262
|
};
|
|
5262
5263
|
return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${ur}`.trim(), style: Yt, children: [
|
|
5263
|
-
/* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html:
|
|
5264
|
+
/* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: fl(r) } }),
|
|
5264
5265
|
/* @__PURE__ */ St(
|
|
5265
5266
|
"form",
|
|
5266
5267
|
{
|
|
@@ -5273,8 +5274,8 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5273
5274
|
{
|
|
5274
5275
|
className: `${r}-fields`,
|
|
5275
5276
|
style: { gap: F(u ?? 0, e) },
|
|
5276
|
-
children: D.map((pt, se) => /* @__PURE__ */ St("div", { className: `${r}-field-group${
|
|
5277
|
-
|
|
5277
|
+
children: D.map((pt, se) => /* @__PURE__ */ St("div", { className: `${r}-field-group${m ? ` ${r}-labeled` : ""}`, children: [
|
|
5278
|
+
m && /* @__PURE__ */ P("span", { className: `${r}-field-label`, style: ot ? { ...ot, lineHeight: ot.fontSize } : void 0, children: pt.label || pt.name }),
|
|
5278
5279
|
pt.type === "textarea" ? /* @__PURE__ */ P(
|
|
5279
5280
|
"textarea",
|
|
5280
5281
|
{
|
|
@@ -5315,7 +5316,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5315
5316
|
style: {
|
|
5316
5317
|
borderStyle: "solid",
|
|
5317
5318
|
borderRadius: F(C ?? 0, e),
|
|
5318
|
-
borderWidth:
|
|
5319
|
+
borderWidth: mt,
|
|
5319
5320
|
paddingTop: F((g == null ? void 0 : g.top) ?? 0, e),
|
|
5320
5321
|
paddingRight: F((g == null ? void 0 : g.right) ?? 0, e),
|
|
5321
5322
|
paddingBottom: F((g == null ? void 0 : g.bottom) ?? 0, e),
|
|
@@ -5364,7 +5365,7 @@ function yl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5364
5365
|
)
|
|
5365
5366
|
] });
|
|
5366
5367
|
}
|
|
5367
|
-
const
|
|
5368
|
+
const yl = {
|
|
5368
5369
|
inputColor: "input-color",
|
|
5369
5370
|
inputTextColor: "input-text-color",
|
|
5370
5371
|
inputBorderColor: "input-border-color",
|
|
@@ -5615,11 +5616,14 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5615
5616
|
...inputCss,
|
|
5616
5617
|
borderStyle: 'solid',
|
|
5617
5618
|
borderRadius: type === 'C' ? 0 : scalingValue(inputCorners ?? 0, isEditor),
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5619
|
+
...(type === 'C'
|
|
5620
|
+
? {
|
|
5621
|
+
borderTopWidth: 0,
|
|
5622
|
+
borderRightWidth: 0,
|
|
5623
|
+
borderBottomWidth: strokeForInput,
|
|
5624
|
+
borderLeftWidth: 0,
|
|
5625
|
+
}
|
|
5626
|
+
: { borderWidth: strokeForInput }),
|
|
5623
5627
|
paddingTop: scalingValue(inputPadding?.top ?? 0, isEditor),
|
|
5624
5628
|
paddingRight: scalingValue(inputPadding?.right ?? 0, isEditor),
|
|
5625
5629
|
paddingBottom: scalingValue(inputPadding?.bottom ?? 0, isEditor),
|
|
@@ -6110,83 +6114,83 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6110
6114
|
},
|
|
6111
6115
|
inputColor: {
|
|
6112
6116
|
type: "string",
|
|
6113
|
-
scope: "
|
|
6117
|
+
scope: "common",
|
|
6114
6118
|
title: "Input Fill",
|
|
6115
6119
|
display: { type: "palette-color-picker" }
|
|
6116
6120
|
},
|
|
6117
6121
|
inputTextColor: {
|
|
6118
6122
|
type: "string",
|
|
6119
|
-
scope: "
|
|
6123
|
+
scope: "common",
|
|
6120
6124
|
title: "Input Label",
|
|
6121
6125
|
display: { type: "palette-color-picker" }
|
|
6122
6126
|
},
|
|
6123
6127
|
inputBorderColor: {
|
|
6124
6128
|
type: "string",
|
|
6125
|
-
scope: "
|
|
6129
|
+
scope: "common",
|
|
6126
6130
|
title: "Input Stroke",
|
|
6127
6131
|
display: { type: "palette-color-picker" }
|
|
6128
6132
|
},
|
|
6129
6133
|
placeholderColor: {
|
|
6130
6134
|
type: "string",
|
|
6131
|
-
scope: "
|
|
6135
|
+
scope: "common",
|
|
6132
6136
|
title: "Filler text",
|
|
6133
6137
|
display: { type: "palette-color-picker" }
|
|
6134
6138
|
},
|
|
6135
6139
|
buttonColor: {
|
|
6136
6140
|
type: "string",
|
|
6137
|
-
scope: "
|
|
6141
|
+
scope: "common",
|
|
6138
6142
|
title: "Button Fill",
|
|
6139
6143
|
display: { type: "palette-color-picker" }
|
|
6140
6144
|
},
|
|
6141
6145
|
buttonTextColor: {
|
|
6142
6146
|
type: "string",
|
|
6143
|
-
scope: "
|
|
6147
|
+
scope: "common",
|
|
6144
6148
|
title: "Button Label",
|
|
6145
6149
|
display: { type: "palette-color-picker" }
|
|
6146
6150
|
},
|
|
6147
6151
|
isButtonFullWidth: {
|
|
6148
6152
|
type: "boolean",
|
|
6149
|
-
scope: "
|
|
6153
|
+
scope: "common",
|
|
6150
6154
|
title: "Full Width",
|
|
6151
6155
|
display: { type: "toggle", enum: ["On", "Off"] }
|
|
6152
6156
|
},
|
|
6153
6157
|
buttonBorderColor: {
|
|
6154
6158
|
type: "string",
|
|
6155
|
-
scope: "
|
|
6159
|
+
scope: "common",
|
|
6156
6160
|
title: "Button Stroke",
|
|
6157
6161
|
display: { type: "palette-color-picker" }
|
|
6158
6162
|
},
|
|
6159
6163
|
labelTextColor: {
|
|
6160
6164
|
type: "string",
|
|
6161
|
-
scope: "
|
|
6165
|
+
scope: "common",
|
|
6162
6166
|
title: "Label Color",
|
|
6163
6167
|
display: { type: "palette-color-picker", visible: !1 }
|
|
6164
6168
|
},
|
|
6165
6169
|
successColor: {
|
|
6166
6170
|
type: "string",
|
|
6167
|
-
scope: "
|
|
6171
|
+
scope: "common",
|
|
6168
6172
|
title: "Success Message Color",
|
|
6169
6173
|
display: { type: "palette-color-picker" }
|
|
6170
6174
|
},
|
|
6171
6175
|
errorColor: {
|
|
6172
6176
|
type: "string",
|
|
6173
|
-
scope: "
|
|
6177
|
+
scope: "common",
|
|
6174
6178
|
title: "Error Message Color",
|
|
6175
6179
|
display: { type: "palette-color-picker" }
|
|
6176
6180
|
},
|
|
6177
6181
|
stateOverrides: {
|
|
6178
6182
|
type: "object",
|
|
6179
|
-
scope: "
|
|
6183
|
+
scope: "common"
|
|
6180
6184
|
},
|
|
6181
6185
|
fontFamily: {
|
|
6182
6186
|
type: "string",
|
|
6183
|
-
scope: "
|
|
6187
|
+
scope: "common",
|
|
6184
6188
|
title: "Font family",
|
|
6185
6189
|
display: { type: "font-family-select" }
|
|
6186
6190
|
},
|
|
6187
6191
|
inputFontSettings: {
|
|
6188
6192
|
...bn.fontSettings,
|
|
6189
|
-
scope: "
|
|
6193
|
+
scope: "common",
|
|
6190
6194
|
title: "Input",
|
|
6191
6195
|
display: { type: "font-settings-weight" }
|
|
6192
6196
|
},
|
|
@@ -6222,7 +6226,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6222
6226
|
},
|
|
6223
6227
|
buttonFontSettings: {
|
|
6224
6228
|
...bn.fontSettings,
|
|
6225
|
-
scope: "
|
|
6229
|
+
scope: "common",
|
|
6226
6230
|
title: "Button",
|
|
6227
6231
|
display: { type: "font-settings-weight" }
|
|
6228
6232
|
},
|
|
@@ -6258,7 +6262,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6258
6262
|
},
|
|
6259
6263
|
labelFontSettings: {
|
|
6260
6264
|
...bn.fontSettings,
|
|
6261
|
-
scope: "
|
|
6265
|
+
scope: "common",
|
|
6262
6266
|
title: "Label",
|
|
6263
6267
|
display: { type: "font-settings-weight", visible: !1 }
|
|
6264
6268
|
},
|
|
@@ -6527,7 +6531,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6527
6531
|
allowedPlugins: ["newsletter"],
|
|
6528
6532
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
6529
6533
|
}, _l = {
|
|
6530
|
-
element:
|
|
6534
|
+
element: hl,
|
|
6531
6535
|
id: "form",
|
|
6532
6536
|
name: "Newsletter Stacked",
|
|
6533
6537
|
preview: {
|
|
@@ -6720,13 +6724,13 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6720
6724
|
buttonIcon: p,
|
|
6721
6725
|
fieldsToShow: u = 1,
|
|
6722
6726
|
fontFamily: C,
|
|
6723
|
-
input:
|
|
6727
|
+
input: y,
|
|
6724
6728
|
button: g,
|
|
6725
6729
|
inputFontSettings: l,
|
|
6726
6730
|
inputFontSize: d,
|
|
6727
6731
|
inputLineHeight: w,
|
|
6728
6732
|
inputLetterSpacing: b,
|
|
6729
|
-
inputWordSpacing:
|
|
6733
|
+
inputWordSpacing: h,
|
|
6730
6734
|
inputTextAppearance: x,
|
|
6731
6735
|
buttonFontSettings: V,
|
|
6732
6736
|
buttonFontSize: N,
|
|
@@ -6740,11 +6744,11 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6740
6744
|
stateOverrides: B,
|
|
6741
6745
|
inputPadding: j,
|
|
6742
6746
|
buttonPadding: H,
|
|
6743
|
-
successMessage:
|
|
6747
|
+
successMessage: f = "Thanks for subscribing!",
|
|
6744
6748
|
errorMessage: I = "Please, fill all required fields."
|
|
6745
6749
|
} = t, _ = a.slice(0, Math.min(u, a.length)), [$, S] = ct(
|
|
6746
6750
|
() => Object.fromEntries(_.map((vt) => [vt.name, ""]))
|
|
6747
|
-
), [O, G] = ct("idle"), [nt, tt] = ct(null), lt = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : nt, K = o === "filled" ? Object.fromEntries(_.map((vt) => [vt.name, "Filled"])) : $,
|
|
6751
|
+
), [O, G] = ct("idle"), [nt, tt] = ct(null), lt = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : nt, K = o === "filled" ? Object.fromEntries(_.map((vt) => [vt.name, "Filled"])) : $, ht = lt === "error" ? Xe(_, K) : null, it = o && o !== "default" ? `${r}-state-${o}` : "", ft = _.some((vt) => (K[vt.name] ?? "").trim().length > 0), Wt = it !== `${r}-state-filled` && ft ? `${r}-state-filled` : "", zt = `${it} ${Wt}`.trim(), M = n == null ? void 0 : n.submitUrl, m = i, D = (m == null ? void 0 : m.mode) === "Icon" || (m == null ? void 0 : m.mode) === "Label" ? m.mode : c === "Icon" ? "Icon" : "Label", q = m === void 0 ? s : m.label !== void 0 ? m.label : s, Y = m === void 0 ? p : m.icon !== void 0 ? m.icon : p, et = q ?? "", J = Y ?? "", X = D === "Icon", at = et || "Submit", mt = l || d !== void 0 || w !== void 0 || b !== void 0 || h !== void 0 || x !== void 0 ? {
|
|
6748
6752
|
fontSettings: {
|
|
6749
6753
|
fontFamily: C,
|
|
6750
6754
|
fontWeight: (l == null ? void 0 : l.fontWeight) ?? 400,
|
|
@@ -6753,16 +6757,16 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6753
6757
|
fontSize: d ?? 0.01,
|
|
6754
6758
|
lineHeight: w,
|
|
6755
6759
|
letterSpacing: b ?? 0,
|
|
6756
|
-
wordSpacing:
|
|
6760
|
+
wordSpacing: h ?? 0,
|
|
6757
6761
|
textAppearance: x,
|
|
6758
6762
|
color: t.inputTextColor ?? "#111111"
|
|
6759
|
-
} :
|
|
6760
|
-
...
|
|
6763
|
+
} : y ? {
|
|
6764
|
+
...y,
|
|
6761
6765
|
fontSettings: {
|
|
6762
|
-
...
|
|
6763
|
-
fontFamily: C ??
|
|
6766
|
+
...y.fontSettings,
|
|
6767
|
+
fontFamily: C ?? y.fontSettings.fontFamily
|
|
6764
6768
|
},
|
|
6765
|
-
color: t.inputTextColor ??
|
|
6769
|
+
color: t.inputTextColor ?? y.color ?? "#111111"
|
|
6766
6770
|
} : void 0, rt = V || N !== void 0 || L !== void 0 || v !== void 0 || T !== void 0 || k !== void 0 ? {
|
|
6767
6771
|
fontSettings: {
|
|
6768
6772
|
fontFamily: C,
|
|
@@ -6782,14 +6786,14 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6782
6786
|
fontFamily: C ?? g.fontSettings.fontFamily
|
|
6783
6787
|
},
|
|
6784
6788
|
color: t.buttonTextColor ?? g.color ?? "#ffffff"
|
|
6785
|
-
} : void 0, ot =
|
|
6789
|
+
} : void 0, ot = mt ? bo(mt, e) : void 0, Yt = rt ? bo(rt, e) : void 0, Z = xo(r, {
|
|
6786
6790
|
strokeColor: t.strokeColor,
|
|
6787
6791
|
inputColor: t.inputColor,
|
|
6788
6792
|
placeholderColor: t.placeholderColor,
|
|
6789
6793
|
buttonColor: t.buttonColor,
|
|
6790
6794
|
successColor: t.successColor,
|
|
6791
6795
|
errorColor: t.errorColor,
|
|
6792
|
-
inputTextColor: t.inputTextColor ?? (
|
|
6796
|
+
inputTextColor: t.inputTextColor ?? (mt == null ? void 0 : mt.color) ?? "#111111",
|
|
6793
6797
|
buttonTextColor: t.buttonTextColor ?? (rt == null ? void 0 : rt.color) ?? "#ffffff"
|
|
6794
6798
|
}, Tl, Ll, B), st = {
|
|
6795
6799
|
borderRadius: F(A, e),
|
|
@@ -6891,7 +6895,7 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6891
6895
|
{
|
|
6892
6896
|
className: `${r}-success`,
|
|
6893
6897
|
style: { ...ot, lineHeight: ot == null ? void 0 : ot.fontSize },
|
|
6894
|
-
children:
|
|
6898
|
+
children: f
|
|
6895
6899
|
}
|
|
6896
6900
|
),
|
|
6897
6901
|
lt === "error" && /* @__PURE__ */ P(
|
|
@@ -6900,7 +6904,7 @@ const wl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6900
6904
|
className: `${r}-error`,
|
|
6901
6905
|
style: { ...ot, lineHeight: ot == null ? void 0 : ot.fontSize },
|
|
6902
6906
|
role: "alert",
|
|
6903
|
-
children:
|
|
6907
|
+
children: ht ?? E ?? I
|
|
6904
6908
|
}
|
|
6905
6909
|
)
|
|
6906
6910
|
] });
|
|
@@ -7537,7 +7541,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7537
7541
|
properties: {
|
|
7538
7542
|
fieldsToShow: {
|
|
7539
7543
|
type: "number",
|
|
7540
|
-
scope: "
|
|
7544
|
+
scope: "common",
|
|
7541
7545
|
title: "Fields",
|
|
7542
7546
|
display: { type: "number" },
|
|
7543
7547
|
min: 1,
|
|
@@ -7583,7 +7587,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7583
7587
|
},
|
|
7584
7588
|
fontFamily: {
|
|
7585
7589
|
type: "string",
|
|
7586
|
-
scope: "
|
|
7590
|
+
scope: "common",
|
|
7587
7591
|
title: "Font family",
|
|
7588
7592
|
display: { type: "font-family-select" }
|
|
7589
7593
|
},
|
|
@@ -7625,71 +7629,71 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7625
7629
|
},
|
|
7626
7630
|
strokeColor: {
|
|
7627
7631
|
type: "string",
|
|
7628
|
-
scope: "
|
|
7632
|
+
scope: "common",
|
|
7629
7633
|
title: "Stroke",
|
|
7630
7634
|
display: { type: "palette-color-picker" }
|
|
7631
7635
|
},
|
|
7632
7636
|
inputColor: {
|
|
7633
7637
|
type: "string",
|
|
7634
|
-
scope: "
|
|
7638
|
+
scope: "common",
|
|
7635
7639
|
title: "Input Fill",
|
|
7636
7640
|
display: { type: "palette-color-picker" }
|
|
7637
7641
|
},
|
|
7638
7642
|
inputTextColor: {
|
|
7639
7643
|
type: "string",
|
|
7640
|
-
scope: "
|
|
7644
|
+
scope: "common",
|
|
7641
7645
|
title: "Input Label",
|
|
7642
7646
|
display: { type: "palette-color-picker" }
|
|
7643
7647
|
},
|
|
7644
7648
|
placeholderColor: {
|
|
7645
7649
|
type: "string",
|
|
7646
|
-
scope: "
|
|
7650
|
+
scope: "common",
|
|
7647
7651
|
title: "Filler Text",
|
|
7648
7652
|
display: { type: "palette-color-picker" }
|
|
7649
7653
|
},
|
|
7650
7654
|
buttonColor: {
|
|
7651
7655
|
type: "string",
|
|
7652
|
-
scope: "
|
|
7656
|
+
scope: "common",
|
|
7653
7657
|
title: "Button Fill",
|
|
7654
7658
|
display: { type: "palette-color-picker" }
|
|
7655
7659
|
},
|
|
7656
7660
|
buttonTextColor: {
|
|
7657
7661
|
type: "string",
|
|
7658
|
-
scope: "
|
|
7662
|
+
scope: "common",
|
|
7659
7663
|
title: "Button Label",
|
|
7660
7664
|
display: { type: "palette-color-picker" }
|
|
7661
7665
|
},
|
|
7662
7666
|
successColor: {
|
|
7663
7667
|
type: "string",
|
|
7664
|
-
scope: "
|
|
7668
|
+
scope: "common",
|
|
7665
7669
|
title: "Success Message Color",
|
|
7666
7670
|
display: { type: "palette-color-picker" }
|
|
7667
7671
|
},
|
|
7668
7672
|
errorColor: {
|
|
7669
7673
|
type: "string",
|
|
7670
|
-
scope: "
|
|
7674
|
+
scope: "common",
|
|
7671
7675
|
title: "Error Message Color",
|
|
7672
7676
|
display: { type: "palette-color-picker" }
|
|
7673
7677
|
},
|
|
7674
7678
|
successMessage: {
|
|
7675
7679
|
type: "string",
|
|
7676
|
-
scope: "
|
|
7680
|
+
scope: "common",
|
|
7677
7681
|
title: "Success Message",
|
|
7678
7682
|
display: { type: "text-input" }
|
|
7679
7683
|
},
|
|
7680
7684
|
errorMessage: {
|
|
7681
7685
|
type: "string",
|
|
7682
|
-
scope: "
|
|
7686
|
+
scope: "common",
|
|
7683
7687
|
title: "Error Message",
|
|
7684
7688
|
display: { type: "text-input" }
|
|
7685
7689
|
},
|
|
7686
7690
|
stateOverrides: {
|
|
7687
7691
|
type: "object",
|
|
7688
|
-
scope: "
|
|
7692
|
+
scope: "common"
|
|
7689
7693
|
},
|
|
7690
7694
|
inputFontSettings: {
|
|
7691
7695
|
...So.fontSettings,
|
|
7692
|
-
scope: "
|
|
7696
|
+
scope: "common",
|
|
7693
7697
|
title: "Input"
|
|
7694
7698
|
},
|
|
7695
7699
|
inputFontSize: {
|
|
@@ -7724,7 +7728,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7724
7728
|
},
|
|
7725
7729
|
buttonFontSettings: {
|
|
7726
7730
|
...So.fontSettings,
|
|
7727
|
-
scope: "
|
|
7731
|
+
scope: "common",
|
|
7728
7732
|
title: "Button"
|
|
7729
7733
|
},
|
|
7730
7734
|
buttonFontSize: {
|
|
@@ -7863,12 +7867,12 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7863
7867
|
"fontFamily",
|
|
7864
7868
|
{
|
|
7865
7869
|
type: "group",
|
|
7866
|
-
title: "
|
|
7870
|
+
title: "",
|
|
7867
7871
|
items: ["inputFontSettings", { type: "row", items: ["inputFontSize", "inputLineHeight", "inputLetterSpacing", "inputWordSpacing"] }, "inputTextAppearance"]
|
|
7868
7872
|
},
|
|
7869
7873
|
{
|
|
7870
7874
|
type: "group",
|
|
7871
|
-
title: "
|
|
7875
|
+
title: "",
|
|
7872
7876
|
items: ["buttonFontSettings", { type: "row", items: ["buttonFontSize", "buttonLineHeight", "buttonLetterSpacing", "buttonWordSpacing"] }, "buttonTextAppearance"]
|
|
7873
7877
|
}
|
|
7874
7878
|
]
|
|
@@ -7917,7 +7921,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
7917
7921
|
}, Vl = [
|
|
7918
7922
|
ba,
|
|
7919
7923
|
Ta,
|
|
7920
|
-
|
|
7924
|
+
ml,
|
|
7921
7925
|
_l,
|
|
7922
7926
|
Fl
|
|
7923
7927
|
];
|