@cntrl-site/components 1.0.11-alpha.3 → 1.0.11-alpha.4
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 +11 -10
- package/dist/index.mjs +133 -133
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,7 @@ function xt(e, t, n) {
|
|
|
78
78
|
function we(e) {
|
|
79
79
|
return e.bind.apply(e, [null].concat(xt(arguments, 1)));
|
|
80
80
|
}
|
|
81
|
-
var so = setTimeout,
|
|
81
|
+
var so = setTimeout, Jn = function() {
|
|
82
82
|
};
|
|
83
83
|
function Wr(e) {
|
|
84
84
|
return requestAnimationFrame(e);
|
|
@@ -87,10 +87,10 @@ function An(e, t) {
|
|
|
87
87
|
return typeof t === e;
|
|
88
88
|
}
|
|
89
89
|
function Kt(e) {
|
|
90
|
-
return !
|
|
90
|
+
return !cr(e) && An("object", e);
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
92
|
+
var sr = Array.isArray, co = we(An, "function"), vt = we(An, "string"), rn = we(An, "undefined");
|
|
93
|
+
function cr(e) {
|
|
94
94
|
return e === null;
|
|
95
95
|
}
|
|
96
96
|
function po(e) {
|
|
@@ -101,12 +101,12 @@ function po(e) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function on(e) {
|
|
104
|
-
return
|
|
104
|
+
return sr(e) ? e : [e];
|
|
105
105
|
}
|
|
106
106
|
function Xe(e, t) {
|
|
107
107
|
on(e).forEach(t);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function pr(e, t) {
|
|
110
110
|
return e.indexOf(t) > -1;
|
|
111
111
|
}
|
|
112
112
|
function vn(e, t) {
|
|
@@ -123,7 +123,7 @@ function nt(e, t) {
|
|
|
123
123
|
function an(e, t) {
|
|
124
124
|
Xe(t, e.appendChild.bind(e));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function ur(e, t) {
|
|
127
127
|
Xe(e, function(n) {
|
|
128
128
|
var r = (t || n).parentNode;
|
|
129
129
|
r && r.insertBefore(n, t);
|
|
@@ -157,7 +157,7 @@ function Zt(e) {
|
|
|
157
157
|
function ft(e) {
|
|
158
158
|
return xt(arguments, 1).forEach(function(t) {
|
|
159
159
|
_t(t, function(n, r) {
|
|
160
|
-
|
|
160
|
+
sr(n) ? e[r] = n.slice() : Kt(n) ? e[r] = ft({}, Kt(e[r]) ? e[r] : {}, n) : e[r] = n;
|
|
161
161
|
});
|
|
162
162
|
}), e;
|
|
163
163
|
}
|
|
@@ -177,7 +177,7 @@ function de(e, t, n) {
|
|
|
177
177
|
Kt(t) ? _t(t, function(r, o) {
|
|
178
178
|
de(e, o, r);
|
|
179
179
|
}) : Xe(e, function(r) {
|
|
180
|
-
|
|
180
|
+
cr(n) || n === "" ? rt(r, t) : r.setAttribute(t, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
function Mt(e, t, n) {
|
|
@@ -187,7 +187,7 @@ function Mt(e, t, n) {
|
|
|
187
187
|
function Je(e, t, n) {
|
|
188
188
|
if (rn(n))
|
|
189
189
|
return getComputedStyle(e)[t];
|
|
190
|
-
|
|
190
|
+
cr(n) || (e.style[t] = "" + n);
|
|
191
191
|
}
|
|
192
192
|
function Jt(e, t) {
|
|
193
193
|
Je(e, "display", t);
|
|
@@ -220,19 +220,19 @@ function at(e, t) {
|
|
|
220
220
|
function ho(e, t) {
|
|
221
221
|
return e && e.querySelector(t);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function dr(e, t) {
|
|
224
224
|
return t ? xt(e.querySelectorAll(t)) : [];
|
|
225
225
|
}
|
|
226
226
|
function ct(e, t) {
|
|
227
227
|
st(e, t, !1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Qn(e) {
|
|
230
230
|
return e.timeStamp;
|
|
231
231
|
}
|
|
232
232
|
function wt(e) {
|
|
233
233
|
return vt(e) ? e : e ? e + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var sn = "splide",
|
|
235
|
+
var sn = "splide", mr = "data-" + sn;
|
|
236
236
|
function Ut(e, t) {
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("[" + sn + "] " + (t || ""));
|
|
@@ -249,20 +249,20 @@ function Wt(e, t, n) {
|
|
|
249
249
|
var r = bt(t, n), o = $n(t, n);
|
|
250
250
|
return bt($n(r, e), o);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function er(e) {
|
|
253
253
|
return +(e > 0) - +(e < 0);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function tr(e, t) {
|
|
256
256
|
return Xe(t, function(n) {
|
|
257
257
|
e = e.replace("%s", "" + n);
|
|
258
258
|
}), e;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function gr(e) {
|
|
261
261
|
return e < 10 ? "0" + e : "" + e;
|
|
262
262
|
}
|
|
263
263
|
var Rr = {};
|
|
264
264
|
function Vi(e) {
|
|
265
|
-
return "" + e +
|
|
265
|
+
return "" + e + gr(Rr[e] = (Rr[e] || 0) + 1);
|
|
266
266
|
}
|
|
267
267
|
function yo() {
|
|
268
268
|
var e = [];
|
|
@@ -308,18 +308,18 @@ function yo() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var Ct = "mounted",
|
|
311
|
+
var Ct = "mounted", nr = "ready", mt = "move", Vt = "moved", hr = "click", vo = "active", bo = "inactive", xo = "visible", Co = "hidden", Ae = "refresh", Me = "updated", Ot = "resize", kn = "resized", So = "drag", wo = "dragging", $o = "dragged", Wn = "scroll", At = "scrolled", ji = "overflow", fr = "destroy", To = "arrows:mounted", _o = "arrows:updated", Lo = "pagination:mounted", Eo = "pagination:updated", yr = "navigation:mounted", vr = "autoplay:play", Io = "autoplay:playing", br = "autoplay:pause", xr = "lazyload:loaded", Ao = "sk", ko = "sh", _n = "ei";
|
|
312
312
|
function Le(e) {
|
|
313
313
|
var t = e ? e.event.bus : document.createDocumentFragment(), n = yo();
|
|
314
314
|
function r(a, i) {
|
|
315
315
|
n.bind(t, on(a).join(" "), function(l) {
|
|
316
|
-
i.apply(i,
|
|
316
|
+
i.apply(i, sr(l.detail) ? l.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function o(a) {
|
|
320
320
|
n.dispatch(t, a, xt(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return e && e.event.on(
|
|
322
|
+
return e && e.event.on(fr, n.destroy), Zt(n, {
|
|
323
323
|
bus: t,
|
|
324
324
|
on: r,
|
|
325
325
|
off: we(n.unbind, t),
|
|
@@ -368,7 +368,7 @@ function Gi(e) {
|
|
|
368
368
|
t = o;
|
|
369
369
|
}
|
|
370
370
|
function r(o) {
|
|
371
|
-
return
|
|
371
|
+
return pr(on(o), t);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
@@ -417,7 +417,7 @@ function qi(e, t, n) {
|
|
|
417
417
|
set: g
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var Pn = "Arrow", Rn = Pn + "Left", Mn = Pn + "Right", Wo = Pn + "Up", Fo = Pn + "Down", Mr = "rtl", Hn = "ttb",
|
|
420
|
+
var Pn = "Arrow", Rn = Pn + "Left", Mn = Pn + "Right", Wo = Pn + "Up", Fo = Pn + "Down", Mr = "rtl", Hn = "ttb", Un = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
@@ -431,8 +431,8 @@ function Ki(e, t, n) {
|
|
|
431
431
|
function r(a, i, l) {
|
|
432
432
|
l = l || n.direction;
|
|
433
433
|
var s = l === Mr && !i ? 1 : l === Hn ? 0 : -1;
|
|
434
|
-
return
|
|
435
|
-
var w =
|
|
434
|
+
return Un[a] && Un[a][s] || a.replace(/width|left|right/i, function(d, c) {
|
|
435
|
+
var w = Un[d.toLowerCase()][s] || d;
|
|
436
436
|
return c > 0 ? w.charAt(0).toUpperCase() + w.slice(1) : w;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
@@ -444,10 +444,10 @@ function Ki(e, t, n) {
|
|
|
444
444
|
orient: o
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var pt = "role", Ht = "tabindex", Yi = "disabled", et = "aria-", cn = et + "controls", Po = et + "current", Hr = et + "selected", Ke = et + "label",
|
|
447
|
+
var pt = "role", Ht = "tabindex", Yi = "disabled", et = "aria-", cn = et + "controls", Po = et + "current", Hr = et + "selected", Ke = et + "label", Cr = et + "labelledby", Ro = et + "hidden", Sr = et + "orientation", en = et + "roledescription", Nr = et + "live", Or = et + "busy", zr = et + "atomic", wr = [pt, Ht, Yi, cn, Po, Ke, Cr, Ro, Sr, en], ot = sn + "__", St = "is-", qn = sn, Br = ot + "track", Xi = ot + "list", Nn = ot + "slide", Mo = Nn + "--clone", Zi = Nn + "__container", $r = ot + "arrows", On = ot + "arrow", Ho = On + "--prev", No = On + "--next", zn = ot + "pagination", Oo = zn + "__page", Ji = ot + "progress", Qi = Ji + "__bar", ea = ot + "toggle", ta = ot + "spinner", na = ot + "sr", ra = St + "initialized", It = St + "active", zo = St + "prev", Bo = St + "next", rr = St + "visible", or = St + "loading", Do = St + "focus-in", Vo = St + "overflow", oa = [It, rr, zo, Bo, or, Do, Vo], ia = {
|
|
448
448
|
slide: Nn,
|
|
449
449
|
clone: Mo,
|
|
450
|
-
arrows:
|
|
450
|
+
arrows: $r,
|
|
451
451
|
arrow: On,
|
|
452
452
|
prev: Ho,
|
|
453
453
|
next: No,
|
|
@@ -462,7 +462,7 @@ function aa(e, t) {
|
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var la = 5, Dr = 200, jo = "touchstart mousedown",
|
|
465
|
+
var la = 5, Dr = 200, jo = "touchstart mousedown", Kn = "touchmove mousemove", Yn = "touchend touchcancel mouseup click";
|
|
466
466
|
function sa(e, t, n) {
|
|
467
467
|
var r = Le(e), o = r.on, a = r.bind, i = e.root, l = n.i18n, s = {}, d = [], c = [], w = [], x, g, u;
|
|
468
468
|
function m() {
|
|
@@ -478,15 +478,15 @@ function sa(e, t, n) {
|
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function y(h) {
|
|
481
|
-
var b =
|
|
481
|
+
var b = wr.concat("style");
|
|
482
482
|
dt(d), ct(i, c), ct(x, w), rt([x, g], b), rt(i, h ? b : ["style", en]);
|
|
483
483
|
}
|
|
484
484
|
function f() {
|
|
485
|
-
ct(i, c), ct(x, w), c = $(
|
|
485
|
+
ct(i, c), ct(x, w), c = $(qn), w = $(Br), nt(i, c), nt(x, w), de(i, Ke, n.label), de(i, Cr, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function L() {
|
|
488
488
|
x = F("." + Br), g = ln(x, "." + Xi), Ut(x && g, "A track/list element is missing."), vn(d, uo(g, "." + Nn + ":not(." + Mo + ")")), _t({
|
|
489
|
-
arrows:
|
|
489
|
+
arrows: $r,
|
|
490
490
|
pagination: zn,
|
|
491
491
|
prev: Ho,
|
|
492
492
|
next: No,
|
|
@@ -507,10 +507,10 @@ function sa(e, t, n) {
|
|
|
507
507
|
}
|
|
508
508
|
function F(h) {
|
|
509
509
|
var b = ho(i, h);
|
|
510
|
-
return b && aa(b, "." +
|
|
510
|
+
return b && aa(b, "." + qn) === i ? b : void 0;
|
|
511
511
|
}
|
|
512
512
|
function $(h) {
|
|
513
|
-
return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h ===
|
|
513
|
+
return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h === qn && It];
|
|
514
514
|
}
|
|
515
515
|
return Zt(s, {
|
|
516
516
|
setup: m,
|
|
@@ -522,20 +522,20 @@ var zt = "slide", jt = "loop", pn = "fade";
|
|
|
522
522
|
function ca(e, t, n, r) {
|
|
523
523
|
var o = Le(e), a = o.on, i = o.emit, l = o.bind, s = e.Components, d = e.root, c = e.options, w = c.isNavigation, x = c.updateOnMove, g = c.i18n, u = c.pagination, m = c.slideFocus, S = s.Direction.resolve, y = Qe(r, "style"), f = Qe(r, Ke), L = n > -1, B = ln(r, "." + Zi), F;
|
|
524
524
|
function $() {
|
|
525
|
-
L || (r.id = d.id + "-slide" +
|
|
525
|
+
L || (r.id = d.id + "-slide" + gr(t + 1), de(r, pt, u ? "tabpanel" : "group"), de(r, en, g.slide), de(r, Ke, f || tr(g.slideLabel, [t + 1, e.length]))), h();
|
|
526
526
|
}
|
|
527
527
|
function h() {
|
|
528
|
-
l(r, "click", we(i,
|
|
528
|
+
l(r, "click", we(i, hr, k)), l(r, "keydown", we(i, Ao, k)), a([Vt, ko, At], E), a(yr, T), x && a(mt, O);
|
|
529
529
|
}
|
|
530
530
|
function b() {
|
|
531
|
-
F = !0, o.destroy(), ct(r, oa), rt(r,
|
|
531
|
+
F = !0, o.destroy(), ct(r, oa), rt(r, wr), de(r, "style", y), de(r, Ke, f || "");
|
|
532
532
|
}
|
|
533
533
|
function T() {
|
|
534
534
|
var W = e.splides.map(function(I) {
|
|
535
535
|
var H = I.splide.Components.Slides.getAt(t);
|
|
536
536
|
return H ? H.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
de(r, Ke,
|
|
538
|
+
de(r, Ke, tr(g.slideX, (L ? n : t) + 1)), de(r, cn, W), de(r, pt, m ? "button" : ""), m && rt(r, en);
|
|
539
539
|
}
|
|
540
540
|
function O() {
|
|
541
541
|
F || E();
|
|
@@ -552,7 +552,7 @@ function ca(e, t, n, r) {
|
|
|
552
552
|
}
|
|
553
553
|
function M() {
|
|
554
554
|
var W = v(), I = !W && (!V() || L);
|
|
555
|
-
if (e.state.is([Dt, nn]) || de(r, Ro, I || ""), de(
|
|
555
|
+
if (e.state.is([Dt, nn]) || de(r, Ro, I || ""), de(dr(r, c.focusableNodes || ""), Ht, I ? -1 : ""), m && de(r, Ht, I ? -1 : 0), W !== Pr(r, rr) && (st(r, rr, W), i(W ? xo : Co, k)), !W && document.activeElement === r) {
|
|
556
556
|
var H = s.Slides.getAt(e.index);
|
|
557
557
|
H && mo(H.slide);
|
|
558
558
|
}
|
|
@@ -632,7 +632,7 @@ function pa(e, t, n) {
|
|
|
632
632
|
Xe(E, function(M) {
|
|
633
633
|
if (vt(M) && (M = go(M)), po(M)) {
|
|
634
634
|
var z = s[P];
|
|
635
|
-
z ?
|
|
635
|
+
z ? ur(M, z) : an(d, M), nt(M, n.classes.slide), b(M, we(a, Ot));
|
|
636
636
|
}
|
|
637
637
|
}), a(Ae);
|
|
638
638
|
}
|
|
@@ -646,7 +646,7 @@ function pa(e, t, n) {
|
|
|
646
646
|
}
|
|
647
647
|
function $(E) {
|
|
648
648
|
return c.filter(co(E) ? E : function(P) {
|
|
649
|
-
return vt(E) ? Yt(P.slide, E) :
|
|
649
|
+
return vt(E) ? Yt(P.slide, E) : pr(on(E), P.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function h(E, P, M) {
|
|
@@ -655,7 +655,7 @@ function pa(e, t, n) {
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function b(E, P) {
|
|
658
|
-
var M =
|
|
658
|
+
var M = dr(E, "img"), z = M.length;
|
|
659
659
|
z ? M.forEach(function(V) {
|
|
660
660
|
i(V, "load error", function() {
|
|
661
661
|
--z || P();
|
|
@@ -780,13 +780,13 @@ function ma(e, t, n) {
|
|
|
780
780
|
vn(f, f);
|
|
781
781
|
vn(f.slice(-y), f.slice(0, y)).forEach(function(B, F) {
|
|
782
782
|
var $ = F < y, h = m(B.slide, F);
|
|
783
|
-
$ ?
|
|
783
|
+
$ ? ur(h, f[0].slide) : an(a.list, h), vn(s, h), i.register(h, F - y + ($ ? 0 : L), B.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function m(y, f) {
|
|
788
788
|
var L = y.cloneNode(!0);
|
|
789
|
-
return nt(L, n.classes.clone), L.id = e.root.id + "-clone" +
|
|
789
|
+
return nt(L, n.classes.clone), L.id = e.root.id + "-clone" + gr(f + 1), L;
|
|
790
790
|
}
|
|
791
791
|
function S() {
|
|
792
792
|
var y = n.clones;
|
|
@@ -1007,10 +1007,10 @@ function va(e, t, n) {
|
|
|
1007
1007
|
P && !(u && m) && T(), u && m && (Zt(f, {
|
|
1008
1008
|
prev: u,
|
|
1009
1009
|
next: m
|
|
1010
|
-
}), Jt(g, P ? "" : "none"), nt(g, y =
|
|
1010
|
+
}), Jt(g, P ? "" : "none"), nt(g, y = $r + "--" + n.direction), P && (h(), E(), de([u, m], cn, x.id), i(To, u, m)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function $() {
|
|
1013
|
-
r.destroy(), ct(g, y), S ? (Et(w ? [u, m] : g), u = m = null) : rt([u, m],
|
|
1013
|
+
r.destroy(), ct(g, y), S ? (Et(w ? [u, m] : g), u = m = null) : rt([u, m], wr);
|
|
1014
1014
|
}
|
|
1015
1015
|
function h() {
|
|
1016
1016
|
o([Ct, Vt, Ae, At, _n], E), a(m, "click", we(b, ">")), a(u, "click", we(b, "<"));
|
|
@@ -1019,7 +1019,7 @@ function va(e, t, n) {
|
|
|
1019
1019
|
c.go(P, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function T() {
|
|
1022
|
-
g = w || Mt("div", l.arrows), u = O(!0), m = O(!1), S = !0, an(g, [u, m]), !w &&
|
|
1022
|
+
g = w || Mt("div", l.arrows), u = O(!0), m = O(!1), S = !0, an(g, [u, m]), !w && ur(g, x);
|
|
1023
1023
|
}
|
|
1024
1024
|
function O(P) {
|
|
1025
1025
|
var M = '<button class="' + l.arrow + " " + (P ? l.prev : l.next) + '" type="button"><svg xmlns="' + fa + '" viewBox="0 0 ' + dn + " " + dn + '" width="' + dn + '" height="' + dn + '" focusable="false"><path d="' + (n.arrowPath || ya) + '" />';
|
|
@@ -1038,7 +1038,7 @@ function va(e, t, n) {
|
|
|
1038
1038
|
update: E
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var ba =
|
|
1041
|
+
var ba = mr + "-interval";
|
|
1042
1042
|
function xa(e, t, n) {
|
|
1043
1043
|
var r = Le(e), o = r.on, a = r.bind, i = r.emit, l = Fn(n.interval, e.go.bind(e, ">"), h), s = l.isPaused, d = t.Elements, c = t.Elements, w = c.root, x = c.toggle, g = n.autoplay, u, m, S = g === "pause";
|
|
1044
1044
|
function y() {
|
|
@@ -1054,10 +1054,10 @@ function xa(e, t, n) {
|
|
|
1054
1054
|
}), o([mt, Wn, Ae], l.rewind), o(mt, b);
|
|
1055
1055
|
}
|
|
1056
1056
|
function L() {
|
|
1057
|
-
s() && t.Slides.isEnough() && (l.start(!n.resetProgress), m = u = S = !1, $(), i(
|
|
1057
|
+
s() && t.Slides.isEnough() && (l.start(!n.resetProgress), m = u = S = !1, $(), i(vr));
|
|
1058
1058
|
}
|
|
1059
1059
|
function B(T) {
|
|
1060
|
-
T === void 0 && (T = !0), S = !!T, $(), s() || (l.pause(), i(
|
|
1060
|
+
T === void 0 && (T = !0), S = !!T, $(), s() || (l.pause(), i(br));
|
|
1061
1061
|
}
|
|
1062
1062
|
function F() {
|
|
1063
1063
|
S || (u || m ? B(!1) : L());
|
|
@@ -1084,7 +1084,7 @@ function xa(e, t, n) {
|
|
|
1084
1084
|
function Ca(e, t, n) {
|
|
1085
1085
|
var r = Le(e), o = r.on;
|
|
1086
1086
|
function a() {
|
|
1087
|
-
n.cover && (o(
|
|
1087
|
+
n.cover && (o(xr, we(l, !0)), o([Ct, Me, Ae], we(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(s) {
|
|
1090
1090
|
t.Slides.forEach(function(d) {
|
|
@@ -1109,7 +1109,7 @@ function La(e, t, n) {
|
|
|
1109
1109
|
function y(h, b, T, O, E) {
|
|
1110
1110
|
var P = s();
|
|
1111
1111
|
if (B(), T && (!x || !c())) {
|
|
1112
|
-
var M = t.Layout.sliderSize(), z =
|
|
1112
|
+
var M = t.Layout.sliderSize(), z = er(h) * M * Tn(je(h) / M) || 0;
|
|
1113
1113
|
h = l.toPosition(t.Controller.toDest(h % M)) + z;
|
|
1114
1114
|
}
|
|
1115
1115
|
var V = fo(P, h, 1);
|
|
@@ -1146,7 +1146,7 @@ var Ft = {
|
|
|
1146
1146
|
function Ea(e, t, n) {
|
|
1147
1147
|
var r = Le(e), o = r.on, a = r.emit, i = r.bind, l = r.unbind, s = e.state, d = t.Move, c = t.Scroll, w = t.Controller, x = t.Elements.track, g = t.Media.reduce, u = t.Direction, m = u.resolve, S = u.orient, y = d.getPosition, f = d.exceededLimit, L, B, F, $, h, b = !1, T, O, E;
|
|
1148
1148
|
function P() {
|
|
1149
|
-
i(x,
|
|
1149
|
+
i(x, Kn, Jn, Ft), i(x, Yn, Jn, Ft), i(x, jo, z, Ft), i(x, "click", A, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), i(x, "dragstart", at), o([Ct, Me], M);
|
|
1152
1152
|
}
|
|
@@ -1157,7 +1157,7 @@ function Ea(e, t, n) {
|
|
|
1157
1157
|
function z(N) {
|
|
1158
1158
|
if (T = !1, !O) {
|
|
1159
1159
|
var C = he(N);
|
|
1160
|
-
ge(N.target) && (C || !N.button) && (w.isBusy() ? at(N, !0) : (E = C ? x : window, h = s.is([Dt, nn]), F = null, i(E,
|
|
1160
|
+
ge(N.target) && (C || !N.button) && (w.isBusy() ? at(N, !0) : (E = C ? x : window, h = s.is([Dt, nn]), F = null, i(E, Kn, V, Ft), i(E, Yn, v, Ft), d.cancel(), c.cancel(), k(N)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function V(N) {
|
|
@@ -1169,7 +1169,7 @@ function Ea(e, t, n) {
|
|
|
1169
1169
|
} else H(N) && (h = I(N), at(N));
|
|
1170
1170
|
}
|
|
1171
1171
|
function v(N) {
|
|
1172
|
-
s.is(yn) && (s.set(Nt), a($o)), h && (W(N), at(N)), l(E,
|
|
1172
|
+
s.is(yn) && (s.set(Nt), a($o)), h && (W(N), at(N)), l(E, Kn, V), l(E, Yn, v), h = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function A(N) {
|
|
1175
1175
|
!O && T && at(N, !0);
|
|
@@ -1179,7 +1179,7 @@ function Ea(e, t, n) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function W(N) {
|
|
1181
1181
|
var C = X(N), j = se(C), K = n.rewind && n.rewindByDrag;
|
|
1182
|
-
g(!1), $ ? w.scroll(j, 0, n.snap) : e.is(pn) ? w.go(S(
|
|
1182
|
+
g(!1), $ ? w.scroll(j, 0, n.snap) : e.is(pn) ? w.go(S(er(C)) < 0 ? K ? "<" : "-" : K ? ">" : "+") : e.is(zt) && b && K ? w.go(f(!0) ? ">" : "<") : w.go(w.toDest(j), !0), g(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function I(N) {
|
|
1185
1185
|
var C = n.dragMinThreshold, j = Kt(C), K = j && C.mouse || 0, Z = (j ? C.touch : +C) || 10;
|
|
@@ -1197,13 +1197,13 @@ function Ea(e, t, n) {
|
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function se(N) {
|
|
1200
|
-
return y() +
|
|
1200
|
+
return y() + er(N) * bt(je(N) * (n.flickPower || 600), $ ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function te(N, C) {
|
|
1203
1203
|
return ee(N, C) - ee(R(N), C);
|
|
1204
1204
|
}
|
|
1205
1205
|
function me(N) {
|
|
1206
|
-
return
|
|
1206
|
+
return Qn(N) - Qn(R(N));
|
|
1207
1207
|
}
|
|
1208
1208
|
function R(N) {
|
|
1209
1209
|
return B === N && F || B;
|
|
@@ -1240,7 +1240,7 @@ var Ia = {
|
|
|
1240
1240
|
Up: Wo,
|
|
1241
1241
|
Down: Fo
|
|
1242
1242
|
};
|
|
1243
|
-
function
|
|
1243
|
+
function Tr(e) {
|
|
1244
1244
|
return e = vt(e) ? e : e.key, Ia[e] || e;
|
|
1245
1245
|
}
|
|
1246
1246
|
var Vr = "keydown";
|
|
@@ -1267,7 +1267,7 @@ function Aa(e, t, n) {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
function S(y) {
|
|
1269
1269
|
if (!c) {
|
|
1270
|
-
var f =
|
|
1270
|
+
var f = Tr(y);
|
|
1271
1271
|
f === s(Rn) ? e.go("<") : f === s(Mn) && e.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
@@ -1277,7 +1277,7 @@ function Aa(e, t, n) {
|
|
|
1277
1277
|
disable: u
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var qt =
|
|
1280
|
+
var qt = mr + "-lazy", xn = qt + "-srcset", ka = "[" + qt + "], [" + xn + "]";
|
|
1281
1281
|
function Wa(e, t, n) {
|
|
1282
1282
|
var r = Le(e), o = r.on, a = r.off, i = r.bind, l = r.emit, s = n.lazyLoad === "sequential", d = [Vt, At], c = [];
|
|
1283
1283
|
function w() {
|
|
@@ -1288,7 +1288,7 @@ function Wa(e, t, n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function g() {
|
|
1290
1290
|
t.Slides.forEach(function(f) {
|
|
1291
|
-
|
|
1291
|
+
dr(f.slide, ka).forEach(function(L) {
|
|
1292
1292
|
var B = Qe(L, qt), F = Qe(L, xn);
|
|
1293
1293
|
if (B !== L.src || F !== L.srcset) {
|
|
1294
1294
|
var $ = n.classes.spinner, h = L.parentElement, b = ln(h, "." + $) || Mt("span", $, h);
|
|
@@ -1305,11 +1305,11 @@ function Wa(e, t, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function m(f) {
|
|
1307
1307
|
var L = f[0];
|
|
1308
|
-
nt(f[1].slide,
|
|
1308
|
+
nt(f[1].slide, or), i(L, "load error", we(S, f)), de(L, "src", Qe(L, qt)), de(L, "srcset", Qe(L, xn)), rt(L, qt), rt(L, xn);
|
|
1309
1309
|
}
|
|
1310
1310
|
function S(f, L) {
|
|
1311
1311
|
var B = f[0], F = f[1];
|
|
1312
|
-
ct(F.slide,
|
|
1312
|
+
ct(F.slide, or), L.type !== "error" && (Et(f[2]), Jt(B, ""), l(xr, B, F), l(Ot)), s && y();
|
|
1313
1313
|
}
|
|
1314
1314
|
function y() {
|
|
1315
1315
|
c.length && m(c.shift());
|
|
@@ -1335,7 +1335,7 @@ function Fa(e, t, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function B() {
|
|
1337
1337
|
var O = e.length, E = n.classes, P = n.i18n, M = n.perPage, z = c() ? d.getEnd() + 1 : Qt(O / M);
|
|
1338
|
-
S = u || Mt("ul", E.pagination, s.track.parentElement), nt(S, y = zn + "--" + h()), de(S, pt, "tablist"), de(S, Ke, P.select), de(S,
|
|
1338
|
+
S = u || Mt("ul", E.pagination, s.track.parentElement), nt(S, y = zn + "--" + h()), de(S, pt, "tablist"), de(S, Ke, P.select), de(S, Sr, h() === Hn ? "vertical" : "");
|
|
1339
1339
|
for (var V = 0; V < z; V++) {
|
|
1340
1340
|
var v = Mt("li", null, S), A = Mt("button", {
|
|
1341
1341
|
class: E.page,
|
|
@@ -1343,7 +1343,7 @@ function Fa(e, t, n) {
|
|
|
1343
1343
|
}, v), k = l.getIn(V).map(function(I) {
|
|
1344
1344
|
return I.slide.id;
|
|
1345
1345
|
}), W = !c() && M > 1 ? P.pageX : P.slideX;
|
|
1346
|
-
i(A, "click", we(F, V)), n.paginationKeyboard && i(A, "keydown", we($, V)), de(v, pt, "presentation"), de(A, pt, "tab"), de(A, cn, k.join(" ")), de(A, Ke,
|
|
1346
|
+
i(A, "click", we(F, V)), n.paginationKeyboard && i(A, "keydown", we($, V)), de(v, pt, "presentation"), de(A, pt, "tab"), de(A, cn, k.join(" ")), de(A, Ke, tr(W, V + 1)), de(A, Ht, -1), m.push({
|
|
1347
1347
|
li: v,
|
|
1348
1348
|
button: A,
|
|
1349
1349
|
page: V
|
|
@@ -1354,7 +1354,7 @@ function Fa(e, t, n) {
|
|
|
1354
1354
|
x(">" + O, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function $(O, E) {
|
|
1357
|
-
var P = m.length, M =
|
|
1357
|
+
var P = m.length, M = Tr(E), z = h(), V = -1;
|
|
1358
1358
|
M === g(Mn, !1, z) ? V = ++O % P : M === g(Rn, !1, z) ? V = (--O + P) % P : M === "Home" ? V = 0 : M === "End" && (V = P - 1);
|
|
1359
1359
|
var v = m[V];
|
|
1360
1360
|
v && (mo(v.button), x(">" + V), at(E, !0));
|
|
@@ -1412,16 +1412,16 @@ function Ra(e, t, n) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function c() {
|
|
1414
1414
|
var u = Le(e), m = u.on;
|
|
1415
|
-
m(
|
|
1415
|
+
m(hr, x), m(Ao, g), m([Ct, Me], w), a.push(u), u.emit(yr, e.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function w() {
|
|
1418
|
-
de(t.Elements.list,
|
|
1418
|
+
de(t.Elements.list, Sr, n.direction === Hn ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function x(u) {
|
|
1421
1421
|
e.go(u.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function g(u, m) {
|
|
1424
|
-
|
|
1424
|
+
pr(Pa, Tr(m)) && (x(u), at(m));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: we(t.Media.set, {
|
|
@@ -1439,7 +1439,7 @@ function Ma(e, t, n) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
function l(d) {
|
|
1441
1441
|
if (d.cancelable) {
|
|
1442
|
-
var c = d.deltaY, w = c < 0, x =
|
|
1442
|
+
var c = d.deltaY, w = c < 0, x = Qn(d), g = n.wheelMinThreshold || 0, u = n.wheelSleep || 0;
|
|
1443
1443
|
je(c) > g && x - a > u && (e.go(w ? "<" : ">"), a = x), s(w) && at(d);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
@@ -1454,7 +1454,7 @@ var Ha = 90;
|
|
|
1454
1454
|
function Na(e, t, n) {
|
|
1455
1455
|
var r = Le(e), o = r.on, a = t.Elements.track, i = n.live && !n.isNavigation, l = Mt("span", na), s = Fn(Ha, we(c, !1));
|
|
1456
1456
|
function d() {
|
|
1457
|
-
i && (x(!t.Autoplay.isPaused()), de(a, zr, !0), l.textContent = "…", o(
|
|
1457
|
+
i && (x(!t.Autoplay.isPaused()), de(a, zr, !0), l.textContent = "…", o(vr, we(x, !0)), o(br, we(x, !1)), o([Vt, At], we(c, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function c(g) {
|
|
1460
1460
|
de(a, Or, g), g ? (an(a, l), s.start()) : (Et(l), s.cancel());
|
|
@@ -1548,7 +1548,7 @@ function Da(e, t, n) {
|
|
|
1548
1548
|
return {
|
|
1549
1549
|
mount: o,
|
|
1550
1550
|
start: i,
|
|
1551
|
-
cancel:
|
|
1551
|
+
cancel: Jn
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
1554
|
function Va(e, t, n) {
|
|
@@ -1586,10 +1586,10 @@ var ja = /* @__PURE__ */ (function() {
|
|
|
1586
1586
|
var o = vt(n) ? ho(document, n) : n;
|
|
1587
1587
|
Ut(o, o + " is invalid."), this.root = o, r = ft({
|
|
1588
1588
|
label: Qe(o, Ke) || "",
|
|
1589
|
-
labelledby: Qe(o,
|
|
1589
|
+
labelledby: Qe(o, Cr) || ""
|
|
1590
1590
|
}, Ba, e.defaults, r || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
ft(r, JSON.parse(Qe(o,
|
|
1592
|
+
ft(r, JSON.parse(Qe(o, mr)));
|
|
1593
1593
|
} catch {
|
|
1594
1594
|
Ut(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
@@ -1607,7 +1607,7 @@ var ja = /* @__PURE__ */ (function() {
|
|
|
1607
1607
|
l[c] = w, w.setup && w.setup();
|
|
1608
1608
|
}), _t(l, function(d) {
|
|
1609
1609
|
d.mount && d.mount();
|
|
1610
|
-
}), this.emit(Ct), nt(this.root, ra), i.set(Nt), this.emit(
|
|
1610
|
+
}), this.emit(Ct), nt(this.root, ra), i.set(Nt), this.emit(nr), this;
|
|
1611
1611
|
}, t.sync = function(r) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: r
|
|
@@ -1635,9 +1635,9 @@ var ja = /* @__PURE__ */ (function() {
|
|
|
1635
1635
|
}, t.destroy = function(r) {
|
|
1636
1636
|
r === void 0 && (r = !0);
|
|
1637
1637
|
var o = this.event, a = this.state;
|
|
1638
|
-
return a.is(Rt) ? Le(this).on(
|
|
1638
|
+
return a.is(Rt) ? Le(this).on(nr, this.destroy.bind(this, r)) : (_t(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(r);
|
|
1640
|
-
}, !0), o.emit(
|
|
1640
|
+
}, !0), o.emit(fr), o.destroy(), r && dt(this.splides), a.set(wn)), this;
|
|
1641
1641
|
}, zi(e, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
@@ -1657,15 +1657,15 @@ var ja = /* @__PURE__ */ (function() {
|
|
|
1657
1657
|
return this._C.Controller.getIndex();
|
|
1658
1658
|
}
|
|
1659
1659
|
}]), e;
|
|
1660
|
-
})(),
|
|
1661
|
-
|
|
1662
|
-
|
|
1660
|
+
})(), _r = ja;
|
|
1661
|
+
_r.defaults = {};
|
|
1662
|
+
_r.STATES = Di;
|
|
1663
1663
|
var jr = [
|
|
1664
1664
|
[Ct, "onMounted"],
|
|
1665
|
-
[
|
|
1665
|
+
[nr, "onReady"],
|
|
1666
1666
|
[mt, "onMove"],
|
|
1667
1667
|
[Vt, "onMoved"],
|
|
1668
|
-
[
|
|
1668
|
+
[hr, "onClick"],
|
|
1669
1669
|
[vo, "onActive"],
|
|
1670
1670
|
[bo, "onInactive"],
|
|
1671
1671
|
[xo, "onVisible"],
|
|
@@ -1679,29 +1679,29 @@ var jr = [
|
|
|
1679
1679
|
[$o, "onDragged"],
|
|
1680
1680
|
[Wn, "onScroll"],
|
|
1681
1681
|
[At, "onScrolled"],
|
|
1682
|
-
[
|
|
1682
|
+
[fr, "onDestroy"],
|
|
1683
1683
|
[To, "onArrowsMounted"],
|
|
1684
1684
|
[_o, "onArrowsUpdated"],
|
|
1685
1685
|
[Lo, "onPaginationMounted"],
|
|
1686
1686
|
[Eo, "onPaginationUpdated"],
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1687
|
+
[yr, "onNavigationMounted"],
|
|
1688
|
+
[vr, "onAutoplayPlay"],
|
|
1689
1689
|
[Io, "onAutoplayPlaying"],
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1690
|
+
[br, "onAutoplayPause"],
|
|
1691
|
+
[xr, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
|
-
function
|
|
1693
|
+
function Lr(...e) {
|
|
1694
1694
|
return e.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
1696
|
function Ln(e) {
|
|
1697
1697
|
return e !== null && typeof e == "object";
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function ir(e, t) {
|
|
1700
1700
|
if (Array.isArray(e) && Array.isArray(t))
|
|
1701
|
-
return e.length === t.length && !e.some((n, r) => !
|
|
1701
|
+
return e.length === t.length && !e.some((n, r) => !ir(n, t[r]));
|
|
1702
1702
|
if (Ln(e) && Ln(t)) {
|
|
1703
1703
|
const n = Object.keys(e), r = Object.keys(t);
|
|
1704
|
-
return n.length === r.length && !n.some((o) => !Object.prototype.hasOwnProperty.call(t, o) || !
|
|
1704
|
+
return n.length === r.length && !n.some((o) => !Object.prototype.hasOwnProperty.call(t, o) || !ir(e[o], t[o]));
|
|
1705
1705
|
}
|
|
1706
1706
|
return e === t;
|
|
1707
1707
|
}
|
|
@@ -1719,24 +1719,24 @@ function Ua(e, t) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return e;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function ar(e, t) {
|
|
1723
1723
|
const n = e;
|
|
1724
1724
|
return Ua(t, (r, o) => {
|
|
1725
|
-
Array.isArray(r) ? n[o] = r.slice() : Ln(r) ? n[o] =
|
|
1725
|
+
Array.isArray(r) ? n[o] = r.slice() : Ln(r) ? n[o] = ar(Ln(n[o]) ? n[o] : {}, r) : n[o] = r;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
1728
|
var qa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Tt.createElement("div", {
|
|
1729
|
-
className:
|
|
1729
|
+
className: Lr("splide__track", t),
|
|
1730
1730
|
...n
|
|
1731
1731
|
}, /* @__PURE__ */ Tt.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, e)),
|
|
1733
|
+
}, e)), Er = class extends Tt.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
1735
|
super(...arguments), this.splideRef = Tt.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: e, extensions: t, transition: n } = this.props, { current: r } = this.splideRef;
|
|
1739
|
-
r && (this.splide = new
|
|
1739
|
+
r && (this.splide = new _r(r, e), this.bind(this.splide), this.splide.mount(t, n), this.options = ar({}, e || {}), this.slides = this.getSlides());
|
|
1740
1740
|
}
|
|
1741
1741
|
componentWillUnmount() {
|
|
1742
1742
|
this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
|
|
@@ -1745,7 +1745,7 @@ var qa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Tt.createEleme
|
|
|
1745
1745
|
if (!this.splide)
|
|
1746
1746
|
return;
|
|
1747
1747
|
const { options: e } = this.props;
|
|
1748
|
-
e && !
|
|
1748
|
+
e && !ir(this.options, e) && (this.splide.options = e, this.options = ar({}, e));
|
|
1749
1749
|
const t = this.getSlides();
|
|
1750
1750
|
Ga(this.slides, t) || (this.splide.refresh(), this.slides = t);
|
|
1751
1751
|
}
|
|
@@ -1781,13 +1781,13 @@ var qa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Tt.createEleme
|
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: e, tag: t = "div", hasTrack: n = !0, children: r, ...o } = this.props;
|
|
1783
1783
|
return /* @__PURE__ */ Tt.createElement(t, {
|
|
1784
|
-
className:
|
|
1784
|
+
className: Lr("splide", e),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
1786
|
...this.omit(o, ["options", ...jr.map((a) => a[1])])
|
|
1787
1787
|
}, n ? /* @__PURE__ */ Tt.createElement(qa, null, r) : r);
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1790
|
-
className:
|
|
1789
|
+
}, Ir = ({ children: e, className: t, ...n }) => /* @__PURE__ */ Tt.createElement("li", {
|
|
1790
|
+
className: Lr("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
1793
1793
|
/*!
|
|
@@ -1961,7 +1961,7 @@ function rl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
),
|
|
1963
1963
|
/* @__PURE__ */ p(
|
|
1964
|
-
|
|
1964
|
+
Er,
|
|
1965
1965
|
{
|
|
1966
1966
|
onMove: (v) => {
|
|
1967
1967
|
L(v.index);
|
|
@@ -1983,7 +1983,7 @@ function rl({ settings: e, content: t, styles: n, isEditor: r }) {
|
|
|
1983
1983
|
type: h.type === "fade in" ? "fade" : "loop",
|
|
1984
1984
|
rewind: !0
|
|
1985
1985
|
},
|
|
1986
|
-
children: t.map((v, A) => /* @__PURE__ */ p(
|
|
1986
|
+
children: t.map((v, A) => /* @__PURE__ */ p(Ir, { children: /* @__PURE__ */ p(
|
|
1987
1987
|
"div",
|
|
1988
1988
|
{
|
|
1989
1989
|
className: Q.sliderItem,
|
|
@@ -2766,7 +2766,7 @@ function qr(e, t, n) {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
return !1;
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function Xn(e) {
|
|
2770
2770
|
return new Promise((t) => {
|
|
2771
2771
|
const n = new Image();
|
|
2772
2772
|
n.src = e, n.onload = () => {
|
|
@@ -2778,14 +2778,14 @@ async function cl(e, t, n, r) {
|
|
|
2778
2778
|
let o, a;
|
|
2779
2779
|
if (t === "custom") {
|
|
2780
2780
|
o = n;
|
|
2781
|
-
const i = await
|
|
2781
|
+
const i = await Xn(e);
|
|
2782
2782
|
a = i.height / i.width * o;
|
|
2783
2783
|
} else if (t === "random") {
|
|
2784
2784
|
o = Math.random() * (r.max - r.min) + r.min;
|
|
2785
|
-
const i = await
|
|
2785
|
+
const i = await Xn(e);
|
|
2786
2786
|
a = i.height / i.width * o;
|
|
2787
2787
|
} else {
|
|
2788
|
-
const i = await
|
|
2788
|
+
const i = await Xn(e);
|
|
2789
2789
|
o = i.width, a = i.height;
|
|
2790
2790
|
}
|
|
2791
2791
|
return { width: o, height: a, finalWidth: `${o}px` };
|
|
@@ -3659,7 +3659,7 @@ const Zl = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: o, i
|
|
|
3659
3659
|
},
|
|
3660
3660
|
children: [
|
|
3661
3661
|
/* @__PURE__ */ p(
|
|
3662
|
-
|
|
3662
|
+
Er,
|
|
3663
3663
|
{
|
|
3664
3664
|
onMove: (C) => d(C.index),
|
|
3665
3665
|
ref: f,
|
|
@@ -3691,7 +3691,7 @@ const Zl = ({ settings: e, content: t, styles: n, portalId: r, activeEvent: o, i
|
|
|
3691
3691
|
"--position-transform": re || "none"
|
|
3692
3692
|
};
|
|
3693
3693
|
})() : { ...K, position: "absolute", padding: Z, boxSizing: "border-box" };
|
|
3694
|
-
return /* @__PURE__ */ p(
|
|
3694
|
+
return /* @__PURE__ */ p(Ir, { children: /* @__PURE__ */ p("div", { className: G.imgWrapper, onClick: ge, children: /* @__PURE__ */ p(
|
|
3695
3695
|
"img",
|
|
3696
3696
|
{
|
|
3697
3697
|
ref: j === s ? B : null,
|
|
@@ -5292,7 +5292,7 @@ function ts({ settings: e, isEditor: t, metadata: n, activeEvent: r }) {
|
|
|
5292
5292
|
for (const Re of ce)
|
|
5293
5293
|
(Te[Re.name] ?? "").trim().length > 0 || (fe = fe ?? { ...Te }, fe[Re.name] = "Filled");
|
|
5294
5294
|
return fe ?? Te;
|
|
5295
|
-
}, [Te, gt, ce]), Dn = Ge === "error" ? Sn(ce, it) : null,
|
|
5295
|
+
}, [Te, gt, ce]), Dn = Ge === "error" ? Sn(ce, it) : null, Vn = `${r && r !== "default" ? `${o}-state-${r}` : ""}`.trim(), un = n == null ? void 0 : n.submitUrl, _e = (fe, Re) => {
|
|
5296
5296
|
Oe((Be) => ({ ...Be, [fe]: Re }));
|
|
5297
5297
|
}, Fe = async (fe) => {
|
|
5298
5298
|
fe.preventDefault();
|
|
@@ -5328,7 +5328,7 @@ function ts({ settings: e, isEditor: t, metadata: n, activeEvent: r }) {
|
|
|
5328
5328
|
ze("error"), Pe(De instanceof Error ? De.message : "Something went wrong");
|
|
5329
5329
|
}
|
|
5330
5330
|
};
|
|
5331
|
-
return /* @__PURE__ */ ue("div", { className: `${o}-wrapper ${o}-type-${a} ${
|
|
5331
|
+
return /* @__PURE__ */ ue("div", { className: `${o}-wrapper ${o}-type-${a} ${Vn}`.trim(), style: We, children: [
|
|
5332
5332
|
/* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: es(o) } }),
|
|
5333
5333
|
/* @__PURE__ */ ue(
|
|
5334
5334
|
"form",
|
|
@@ -7678,7 +7678,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
7678
7678
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
7679
7679
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
7680
7680
|
{ name: "phone", type: "phone", placeholder: "Enter your phone", label: "Phone", isRequired: !1, error: "Please, enter a valid phone number." }
|
|
7681
|
-
],
|
|
7681
|
+
], Zn = {
|
|
7682
7682
|
fontSettings: {
|
|
7683
7683
|
type: "object",
|
|
7684
7684
|
display: { type: "font-settings-weight", visible: !0 },
|
|
@@ -7864,7 +7864,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
7864
7864
|
scope: "common"
|
|
7865
7865
|
},
|
|
7866
7866
|
inputFontSettings: {
|
|
7867
|
-
...
|
|
7867
|
+
...Zn.fontSettings,
|
|
7868
7868
|
scope: "common",
|
|
7869
7869
|
title: "Input"
|
|
7870
7870
|
},
|
|
@@ -7899,7 +7899,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
7899
7899
|
display: { type: "text-appearance" }
|
|
7900
7900
|
},
|
|
7901
7901
|
buttonFontSettings: {
|
|
7902
|
-
...
|
|
7902
|
+
...Zn.fontSettings,
|
|
7903
7903
|
scope: "common",
|
|
7904
7904
|
title: "Button"
|
|
7905
7905
|
},
|
|
@@ -7934,7 +7934,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
7934
7934
|
display: { type: "text-appearance" }
|
|
7935
7935
|
},
|
|
7936
7936
|
statusFontSettings: {
|
|
7937
|
-
...
|
|
7937
|
+
...Zn.fontSettings,
|
|
7938
7938
|
scope: "common",
|
|
7939
7939
|
title: "Success/Error"
|
|
7940
7940
|
},
|
|
@@ -11459,7 +11459,7 @@ function Ps({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
11459
11459
|
onClick: (Ge) => Oe(Ge, Ce.image.map((tt) => tt.url), 0)
|
|
11460
11460
|
}
|
|
11461
11461
|
) : /* @__PURE__ */ p(
|
|
11462
|
-
|
|
11462
|
+
Er,
|
|
11463
11463
|
{
|
|
11464
11464
|
className: `${l}-item-slider`,
|
|
11465
11465
|
options: {
|
|
@@ -11485,7 +11485,7 @@ function Ps({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
11485
11485
|
Ge.refresh();
|
|
11486
11486
|
}, 0);
|
|
11487
11487
|
},
|
|
11488
|
-
children: Ce.image.map((Ge, tt) => /* @__PURE__ */ p(
|
|
11488
|
+
children: Ce.image.map((Ge, tt) => /* @__PURE__ */ p(Ir, { children: /* @__PURE__ */ p(
|
|
11489
11489
|
"img",
|
|
11490
11490
|
{
|
|
11491
11491
|
src: Ge.url,
|
|
@@ -12757,7 +12757,8 @@ function Bs(e) {
|
|
|
12757
12757
|
}
|
|
12758
12758
|
|
|
12759
12759
|
.${e}-list-item {
|
|
12760
|
-
display:
|
|
12760
|
+
display: flex;
|
|
12761
|
+
align-items: stretch;
|
|
12761
12762
|
width: 100%;
|
|
12762
12763
|
overflow: visible;
|
|
12763
12764
|
position: relative;
|
|
@@ -12940,7 +12941,7 @@ const no = [
|
|
|
12940
12941
|
DColumn: 0.02,
|
|
12941
12942
|
EColumn: 0.02
|
|
12942
12943
|
};
|
|
12943
|
-
function
|
|
12944
|
+
function lr(e) {
|
|
12944
12945
|
const t = typeof e.wrapperWidth == "number" ? e.wrapperWidth : 1, n = typeof e.wrapperPaddingLeft == "number" ? e.wrapperPaddingLeft : 0, r = typeof e.wrapperPaddingRight == "number" ? e.wrapperPaddingRight : 0;
|
|
12945
12946
|
return Math.max(0, t - n - r);
|
|
12946
12947
|
}
|
|
@@ -12991,7 +12992,7 @@ function Gs(e, t, n) {
|
|
|
12991
12992
|
return o;
|
|
12992
12993
|
}
|
|
12993
12994
|
function Us(e, t) {
|
|
12994
|
-
const n = e.columns, r = t.columns, o =
|
|
12995
|
+
const n = e.columns, r = t.columns, o = lr(e), a = lr(t);
|
|
12995
12996
|
if (typeof n == "number" && n !== r)
|
|
12996
12997
|
return {
|
|
12997
12998
|
...e,
|
|
@@ -13114,7 +13115,7 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13114
13115
|
P,
|
|
13115
13116
|
M
|
|
13116
13117
|
]
|
|
13117
|
-
), Ee = h ?? 0, He = b ?? 0, Ne =
|
|
13118
|
+
), Ee = h ?? 0, He = b ?? 0, Ne = lr(e), xe = Ve(
|
|
13118
13119
|
() => Lt.slice(0, d).map((_e) => J[_e]),
|
|
13119
13120
|
[
|
|
13120
13121
|
d,
|
|
@@ -13152,10 +13153,10 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13152
13153
|
return;
|
|
13153
13154
|
}
|
|
13154
13155
|
ge(Math.min(_e + m, We.length));
|
|
13155
|
-
}, Ie = (_e) => _(_e, n ?? !1), Pe = F ?? 0, Ge = $ ?? 0, tt = Math.max(Pe, oo), gt = Math.max(Ge, oo), it = Math.max(Ee, io), Dn = Math.max(He, io),
|
|
13156
|
+
}, Ie = (_e) => _(_e, n ?? !1), Pe = F ?? 0, Ge = $ ?? 0, tt = Math.max(Pe, oo), gt = Math.max(Ge, oo), it = Math.max(Ee, io), Dn = Math.max(He, io), Ar = {
|
|
13156
13157
|
paddingLeft: Ie(Ee),
|
|
13157
13158
|
paddingRight: Ie(He)
|
|
13158
|
-
},
|
|
13159
|
+
}, Vn = (_e) => {
|
|
13159
13160
|
if (!oe) return;
|
|
13160
13161
|
const Fe = _e.image;
|
|
13161
13162
|
if (!(Fe != null && Fe.url)) {
|
|
@@ -13229,7 +13230,6 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13229
13230
|
Oe.map((_e, Fe) => {
|
|
13230
13231
|
var De;
|
|
13231
13232
|
const fe = (((De = _e.link) == null ? void 0 : De.length) ?? 0) > 0, Re = fe ? "a" : "div", Be = {
|
|
13232
|
-
minHeight: Ie(x ?? 0),
|
|
13233
13233
|
paddingTop: Ie(Pe),
|
|
13234
13234
|
paddingBottom: Ie(Ge),
|
|
13235
13235
|
borderBottomWidth: _(g ?? 0, n),
|
|
@@ -13241,7 +13241,7 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13241
13241
|
className: `${s}-list-item`,
|
|
13242
13242
|
...fe ? { href: _e.link, target: "_blank" } : {},
|
|
13243
13243
|
style: Be,
|
|
13244
|
-
onMouseEnter: oe ? () =>
|
|
13244
|
+
onMouseEnter: oe ? () => Vn(_e) : void 0,
|
|
13245
13245
|
children: [
|
|
13246
13246
|
n && /* @__PURE__ */ p(
|
|
13247
13247
|
"div",
|
|
@@ -13262,9 +13262,9 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13262
13262
|
}
|
|
13263
13263
|
}
|
|
13264
13264
|
),
|
|
13265
|
-
/* @__PURE__ */ p("div", { className: `${s}-list-cols-row`, style:
|
|
13266
|
-
const
|
|
13267
|
-
|
|
13265
|
+
/* @__PURE__ */ p("div", { className: `${s}-list-cols-row`, style: { minHeight: Ie(x ?? 0) }, children: $e.map((Ze, jn) => {
|
|
13266
|
+
const Gn = jn === $e.length - 1, Ko = ke[jn], Yo = qs(
|
|
13267
|
+
jn,
|
|
13268
13268
|
ke,
|
|
13269
13269
|
xe,
|
|
13270
13270
|
Ne
|
|
@@ -13272,8 +13272,8 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13272
13272
|
return /* @__PURE__ */ ue(
|
|
13273
13273
|
"div",
|
|
13274
13274
|
{
|
|
13275
|
-
className: `${s}-list-col${
|
|
13276
|
-
style:
|
|
13275
|
+
className: `${s}-list-col${Gn ? ` ${s}-list-col-last` : ""}`,
|
|
13276
|
+
style: Gn ? void 0 : { width: Ie(Ko) },
|
|
13277
13277
|
"data-test": Ze.width,
|
|
13278
13278
|
children: [
|
|
13279
13279
|
/* @__PURE__ */ p(
|
|
@@ -13284,7 +13284,7 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13284
13284
|
children: _e.cells[Ze.key] ?? null
|
|
13285
13285
|
}
|
|
13286
13286
|
),
|
|
13287
|
-
n && !
|
|
13287
|
+
n && !Gn && /* @__PURE__ */ p(
|
|
13288
13288
|
"div",
|
|
13289
13289
|
{
|
|
13290
13290
|
"data-controls": Ze.widthKey,
|
|
@@ -13345,7 +13345,7 @@ function Ys({ settings: e, content: t, isEditor: n, isPreviewMode: r, metadata:
|
|
|
13345
13345
|
"div",
|
|
13346
13346
|
{
|
|
13347
13347
|
className: `${s}-list-cols-row`,
|
|
13348
|
-
style: { ...
|
|
13348
|
+
style: { ...Ar, justifyContent: "center" },
|
|
13349
13349
|
children: /* @__PURE__ */ p(
|
|
13350
13350
|
"button",
|
|
13351
13351
|
{
|
|
@@ -13418,7 +13418,8 @@ function getCSS(P: string): string {\r
|
|
|
13418
13418
|
}\r
|
|
13419
13419
|
\r
|
|
13420
13420
|
.\${P}-list-item {\r
|
|
13421
|
-
display:
|
|
13421
|
+
display: flex;\r
|
|
13422
|
+
align-items: stretch;\r
|
|
13422
13423
|
width: 100%;\r
|
|
13423
13424
|
overflow: visible;\r
|
|
13424
13425
|
position: relative;\r
|
|
@@ -14121,7 +14122,6 @@ export function List({ settings, content, isEditor, isPreviewMode, metadata, act
|
|
|
14121
14122
|
const hasLink = (row.link?.length ?? 0) > 0;\r
|
|
14122
14123
|
const RowElement = hasLink ? 'a' : 'div';\r
|
|
14123
14124
|
const rowStyle = {\r
|
|
14124
|
-
minHeight: scaled(cellMinHeight ?? 0),\r
|
|
14125
14125
|
paddingTop: scaled(resolvedRowPaddingTop),\r
|
|
14126
14126
|
paddingBottom: scaled(resolvedRowPaddingBottom),\r
|
|
14127
14127
|
borderBottomWidth: scalingValue(dividerWidth ?? 0, isEditor),\r
|
|
@@ -14154,7 +14154,7 @@ export function List({ settings, content, isEditor, isPreviewMode, metadata, act
|
|
|
14154
14154
|
}}\r
|
|
14155
14155
|
/>\r
|
|
14156
14156
|
)}\r
|
|
14157
|
-
<div className={\`\${P}-list-cols-row\`} style={
|
|
14157
|
+
<div className={\`\${P}-list-cols-row\`} style={{ minHeight: scaled(cellMinHeight ?? 0) }}>\r
|
|
14158
14158
|
{listColumns.map((col, colIndex) => {\r
|
|
14159
14159
|
const isLastColumn = colIndex === listColumns.length - 1;\r
|
|
14160
14160
|
const columnWidth = resolvedColumnWidths[colIndex];\r
|