@cntrl-site/components 0.1.33 → 0.1.34
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/ControlSlider/ControlSlider.d.ts +1 -1
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +1 -1
- package/dist/Components/Lightbox/Lightbox.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +394 -409
- package/package.json +73 -73
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import Ue, { useState as ue, useEffect as me, useRef as be, useCallback as
|
|
1
|
+
import { jsx as F, Fragment as pt, jsxs as Ae } from "react/jsx-runtime";
|
|
2
|
+
import Ue, { useState as ue, useEffect as me, useRef as be, useCallback as Wr } from "react";
|
|
3
3
|
import ae from "classnames";
|
|
4
4
|
import { createPortal as jr } from "react-dom";
|
|
5
|
-
const $r = "ControlSlider-module__wrapper___sHEkd", Hr = "ControlSlider-module__hoverArrow___A-dOH", Ur = "ControlSlider-module__sliderItem___QQSkR", Yr = "ControlSlider-module__sliderImage___9hRl-", Gr = "ControlSlider-module__arrow___05ghY", Xr = "ControlSlider-module__arrowVertical___tBfVN", Kr = "ControlSlider-module__nextArrow___-30Yc", qr = "ControlSlider-module__arrowInner___aEra3", Jr = "ControlSlider-module__arrowIcon___S4ztF", Zr = "ControlSlider-module__arrowImg___2dwJW", Qr = "ControlSlider-module__mirror___brd6U", ei = "ControlSlider-module__pagination___bicLF", ti = "ControlSlider-module__paginationInner___bT-P-", ni = "ControlSlider-module__paginationVertical___zYqKw", ri = "ControlSlider-module__paginationItem___nTRbk", ii = "ControlSlider-module__dot___p1Qun", oi = "ControlSlider-module__activeDot___LHFaj", ai = "ControlSlider-module__paginationInsideBottom___R3FWn", si = "ControlSlider-module__paginationInsideTop___V-qb-", li = "ControlSlider-module__paginationOutsideBottom___14w8D", ci = "ControlSlider-module__paginationOutsideTop___SCLqB", ui = "ControlSlider-module__paginationInsideLeft___yOBRZ", di = "ControlSlider-module__paginationInsideRight___Rtt3o", pi = "ControlSlider-module__paginationOutsideLeft___lahaw", gi = "ControlSlider-module__paginationOutsideRight___EtuQa", fi = "ControlSlider-module__imgWrapper___UjEgB", mi = "ControlSlider-module__captionBlock___dJ6-j", hi = "ControlSlider-module__captionTextWrapper___HFlpf", vi = "ControlSlider-module__captionText___uGBVc", yi = "ControlSlider-module__active___WZK4G", _i = "ControlSlider-module__withPointerEvents___t-18M", bi = "ControlSlider-module__topLeftAlignment___zjnGM", Si = "ControlSlider-module__topCenterAlignment___gD1xW", wi = "ControlSlider-module__topRightAlignment___NMapS", Ci = "ControlSlider-module__middleLeftAlignment___OnUrY", Ei = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ai = "ControlSlider-module__middleRightAlignment___wEbfX", Ii = "ControlSlider-module__bottomLeftAlignment___cTP2-",
|
|
5
|
+
const $r = "ControlSlider-module__wrapper___sHEkd", Hr = "ControlSlider-module__hoverArrow___A-dOH", Ur = "ControlSlider-module__sliderItem___QQSkR", Yr = "ControlSlider-module__sliderImage___9hRl-", Gr = "ControlSlider-module__arrow___05ghY", Xr = "ControlSlider-module__arrowVertical___tBfVN", Kr = "ControlSlider-module__nextArrow___-30Yc", qr = "ControlSlider-module__arrowInner___aEra3", Jr = "ControlSlider-module__arrowIcon___S4ztF", Zr = "ControlSlider-module__arrowImg___2dwJW", Qr = "ControlSlider-module__mirror___brd6U", ei = "ControlSlider-module__pagination___bicLF", ti = "ControlSlider-module__paginationInner___bT-P-", ni = "ControlSlider-module__paginationVertical___zYqKw", ri = "ControlSlider-module__paginationItem___nTRbk", ii = "ControlSlider-module__dot___p1Qun", oi = "ControlSlider-module__activeDot___LHFaj", ai = "ControlSlider-module__paginationInsideBottom___R3FWn", si = "ControlSlider-module__paginationInsideTop___V-qb-", li = "ControlSlider-module__paginationOutsideBottom___14w8D", ci = "ControlSlider-module__paginationOutsideTop___SCLqB", ui = "ControlSlider-module__paginationInsideLeft___yOBRZ", di = "ControlSlider-module__paginationInsideRight___Rtt3o", pi = "ControlSlider-module__paginationOutsideLeft___lahaw", gi = "ControlSlider-module__paginationOutsideRight___EtuQa", fi = "ControlSlider-module__imgWrapper___UjEgB", mi = "ControlSlider-module__captionBlock___dJ6-j", hi = "ControlSlider-module__captionTextWrapper___HFlpf", vi = "ControlSlider-module__captionText___uGBVc", yi = "ControlSlider-module__active___WZK4G", _i = "ControlSlider-module__withPointerEvents___t-18M", bi = "ControlSlider-module__topLeftAlignment___zjnGM", Si = "ControlSlider-module__topCenterAlignment___gD1xW", wi = "ControlSlider-module__topRightAlignment___NMapS", Ci = "ControlSlider-module__middleLeftAlignment___OnUrY", Ei = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ai = "ControlSlider-module__middleRightAlignment___wEbfX", Ii = "ControlSlider-module__bottomLeftAlignment___cTP2-", Li = "ControlSlider-module__bottomCenterAlignment___c54fB", xi = "ControlSlider-module__bottomRightAlignment___kEwrz", Ti = "ControlSlider-module__clickOverlay___DZA28", Ri = "ControlSlider-module__contain___pLyq7", ki = "ControlSlider-module__cover___KdDat", j = {
|
|
6
6
|
wrapper: $r,
|
|
7
7
|
hoverArrow: Hr,
|
|
8
8
|
sliderItem: Ur,
|
|
@@ -41,8 +41,8 @@ const $r = "ControlSlider-module__wrapper___sHEkd", Hr = "ControlSlider-module__
|
|
|
41
41
|
middleCenterAlignment: Ei,
|
|
42
42
|
middleRightAlignment: Ai,
|
|
43
43
|
bottomLeftAlignment: Ii,
|
|
44
|
-
bottomCenterAlignment:
|
|
45
|
-
bottomRightAlignment:
|
|
44
|
+
bottomCenterAlignment: Li,
|
|
45
|
+
bottomRightAlignment: xi,
|
|
46
46
|
clickOverlay: Ti,
|
|
47
47
|
contain: Ri,
|
|
48
48
|
cover: ki
|
|
@@ -68,11 +68,11 @@ var Dn = "(prefers-reduced-motion: reduce)", Qe = 1, Di = 2, nt = 3, ot = 4, bt
|
|
|
68
68
|
function Be(e) {
|
|
69
69
|
e.length = 0;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function We(e, n, t) {
|
|
72
72
|
return Array.prototype.slice.call(e, n, t);
|
|
73
73
|
}
|
|
74
74
|
function re(e) {
|
|
75
|
-
return e.bind.apply(e, [null].concat(
|
|
75
|
+
return e.bind.apply(e, [null].concat(We(arguments, 1)));
|
|
76
76
|
}
|
|
77
77
|
var tr = setTimeout, on = function() {
|
|
78
78
|
};
|
|
@@ -85,7 +85,7 @@ function jt(e, n) {
|
|
|
85
85
|
function gt(e) {
|
|
86
86
|
return !mn(e) && jt("object", e);
|
|
87
87
|
}
|
|
88
|
-
var fn = Array.isArray, nr = re(jt, "function"),
|
|
88
|
+
var fn = Array.isArray, nr = re(jt, "function"), Fe = re(jt, "string"), St = re(jt, "undefined");
|
|
89
89
|
function mn(e) {
|
|
90
90
|
return e === null;
|
|
91
91
|
}
|
|
@@ -113,8 +113,8 @@ function Oe(e, n, t) {
|
|
|
113
113
|
r && e.classList[t ? "add" : "remove"](r);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
Oe(e,
|
|
116
|
+
function xe(e, n) {
|
|
117
|
+
Oe(e, Fe(n) ? n.split(" ") : n, !0);
|
|
118
118
|
}
|
|
119
119
|
function Ct(e, n) {
|
|
120
120
|
Ce(n, e.appendChild.bind(e));
|
|
@@ -129,7 +129,7 @@ function ft(e, n) {
|
|
|
129
129
|
return rr(e) && (e.msMatchesSelector || e.matches).call(e, n);
|
|
130
130
|
}
|
|
131
131
|
function ir(e, n) {
|
|
132
|
-
var t = e ?
|
|
132
|
+
var t = e ? We(e.children) : [];
|
|
133
133
|
return n ? t.filter(function(r) {
|
|
134
134
|
return ft(r, n);
|
|
135
135
|
}) : t;
|
|
@@ -144,16 +144,16 @@ function Ye(e, n, t) {
|
|
|
144
144
|
}), e;
|
|
145
145
|
}
|
|
146
146
|
function ht(e) {
|
|
147
|
-
return
|
|
147
|
+
return We(arguments, 1).forEach(function(n) {
|
|
148
148
|
Ye(n, function(t, r) {
|
|
149
149
|
e[r] = n[r];
|
|
150
150
|
});
|
|
151
151
|
}), e;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Me(e) {
|
|
154
|
+
return We(arguments, 1).forEach(function(n) {
|
|
155
155
|
Ye(n, function(t, r) {
|
|
156
|
-
fn(t) ? e[r] = t.slice() : gt(t) ? e[r] =
|
|
156
|
+
fn(t) ? e[r] = t.slice() : gt(t) ? e[r] = Me({}, gt(e[r]) ? e[r] : {}, t) : e[r] = t;
|
|
157
157
|
});
|
|
158
158
|
}), e;
|
|
159
159
|
}
|
|
@@ -178,7 +178,7 @@ function K(e, n, t) {
|
|
|
178
178
|
}
|
|
179
179
|
function et(e, n, t) {
|
|
180
180
|
var r = document.createElement(e);
|
|
181
|
-
return n && (
|
|
181
|
+
return n && (Fe(n) ? xe(r, n) : K(r, n)), t && Ct(t, r), r;
|
|
182
182
|
}
|
|
183
183
|
function Ee(e, n, t) {
|
|
184
184
|
if (St(t))
|
|
@@ -217,7 +217,7 @@ function sr(e, n) {
|
|
|
217
217
|
return e && e.querySelector(n);
|
|
218
218
|
}
|
|
219
219
|
function yn(e, n) {
|
|
220
|
-
return n ?
|
|
220
|
+
return n ? We(e.querySelectorAll(n)) : [];
|
|
221
221
|
}
|
|
222
222
|
function De(e, n) {
|
|
223
223
|
Oe(e, n, !1);
|
|
@@ -226,24 +226,24 @@ function an(e) {
|
|
|
226
226
|
return e.timeStamp;
|
|
227
227
|
}
|
|
228
228
|
function He(e) {
|
|
229
|
-
return
|
|
229
|
+
return Fe(e) ? e : e ? e + "px" : "";
|
|
230
230
|
}
|
|
231
231
|
var At = "splide", _n = "data-" + At;
|
|
232
232
|
function ct(e, n) {
|
|
233
233
|
if (!e)
|
|
234
234
|
throw new Error("[" + At + "] " + (n || ""));
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var Ve = Math.min, Mt = Math.max, Ft = Math.floor, yt = Math.ceil, _e = Math.abs;
|
|
237
237
|
function lr(e, n, t) {
|
|
238
238
|
return _e(e - n) < t;
|
|
239
239
|
}
|
|
240
240
|
function Pt(e, n, t, r) {
|
|
241
|
-
var o =
|
|
241
|
+
var o = Ve(n, t), a = Mt(n, t);
|
|
242
242
|
return r ? o < e && e < a : o <= e && e <= a;
|
|
243
243
|
}
|
|
244
244
|
function Je(e, n, t) {
|
|
245
|
-
var r =
|
|
246
|
-
return
|
|
245
|
+
var r = Ve(n, t), o = Mt(n, t);
|
|
246
|
+
return Ve(Mt(r, e), o);
|
|
247
247
|
}
|
|
248
248
|
function sn(e) {
|
|
249
249
|
return +(e > 0) - +(e < 0);
|
|
@@ -256,9 +256,9 @@ function ln(e, n) {
|
|
|
256
256
|
function bn(e) {
|
|
257
257
|
return e < 10 ? "0" + e : "" + e;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var Mn = {};
|
|
260
260
|
function Bi(e) {
|
|
261
|
-
return "" + e + bn(
|
|
261
|
+
return "" + e + bn(Mn[e] = (Mn[e] || 0) + 1);
|
|
262
262
|
}
|
|
263
263
|
function cr() {
|
|
264
264
|
var e = [];
|
|
@@ -304,7 +304,7 @@ function cr() {
|
|
|
304
304
|
destroy: a
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
|
-
var je = "mounted", cn = "ready", ze = "move", at = "moved", Sn = "click", ur = "active", dr = "inactive", pr = "visible", gr = "hidden", de = "refresh", ve = "updated", rt = "resize", $t = "resized", fr = "drag", mr = "dragging", hr = "dragged", Ht = "scroll", Ke = "scrolled", zi = "overflow", wn = "destroy", vr = "arrows:mounted", yr = "arrows:updated", _r = "pagination:mounted", br = "pagination:updated", Cn = "navigation:mounted", En = "autoplay:play", Sr = "autoplay:playing", An = "autoplay:pause", In = "lazyload:loaded", wr = "sk", Cr = "sh",
|
|
307
|
+
var je = "mounted", cn = "ready", ze = "move", at = "moved", Sn = "click", ur = "active", dr = "inactive", pr = "visible", gr = "hidden", de = "refresh", ve = "updated", rt = "resize", $t = "resized", fr = "drag", mr = "dragging", hr = "dragged", Ht = "scroll", Ke = "scrolled", zi = "overflow", wn = "destroy", vr = "arrows:mounted", yr = "arrows:updated", _r = "pagination:mounted", br = "pagination:updated", Cn = "navigation:mounted", En = "autoplay:play", Sr = "autoplay:playing", An = "autoplay:pause", In = "lazyload:loaded", wr = "sk", Cr = "sh", Vt = "ei";
|
|
308
308
|
function se(e) {
|
|
309
309
|
var n = e ? e.event.bus : document.createDocumentFragment(), t = cr();
|
|
310
310
|
function r(a, i) {
|
|
@@ -313,7 +313,7 @@ function se(e) {
|
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
function o(a) {
|
|
316
|
-
t.dispatch(n, a,
|
|
316
|
+
t.dispatch(n, a, We(arguments, 1));
|
|
317
317
|
}
|
|
318
318
|
return e && e.event.on(wn, t.destroy), ht(t, {
|
|
319
319
|
bus: n,
|
|
@@ -326,7 +326,7 @@ function Ut(e, n, t, r) {
|
|
|
326
326
|
var o = Date.now, a, i = 0, l, s = !0, d = 0;
|
|
327
327
|
function u() {
|
|
328
328
|
if (!s) {
|
|
329
|
-
if (i = e ?
|
|
329
|
+
if (i = e ? Ve((o() - a) / e, 1) : 1, t && t(i), i >= 1 && (n(), a = o(), r && ++d >= r))
|
|
330
330
|
return m();
|
|
331
331
|
l = Pn(u);
|
|
332
332
|
}
|
|
@@ -358,7 +358,7 @@ function Ut(e, n, t, r) {
|
|
|
358
358
|
isPaused: w
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Mi(e) {
|
|
362
362
|
var n = e;
|
|
363
363
|
function t(o) {
|
|
364
364
|
n = o;
|
|
@@ -371,13 +371,13 @@ function Wi(e) {
|
|
|
371
371
|
is: r
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Fi(e, n) {
|
|
375
375
|
var t = Ut(0, e, null, 1);
|
|
376
376
|
return function() {
|
|
377
377
|
t.isPaused() && t.start();
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Vi(e, n, t) {
|
|
381
381
|
var r = e.state, o = t.breakpoints || {}, a = t.reducedMotion || {}, i = cr(), l = [];
|
|
382
382
|
function s() {
|
|
383
383
|
var c = t.mediaQuery === "min";
|
|
@@ -396,15 +396,15 @@ function Fi(e, n, t) {
|
|
|
396
396
|
}
|
|
397
397
|
function S() {
|
|
398
398
|
var c = r.is(zt), p = t.direction, w = l.reduce(function(C, f) {
|
|
399
|
-
return
|
|
399
|
+
return Me(C, f[1].matches ? f[0] : {});
|
|
400
400
|
}, {});
|
|
401
401
|
Bn(t), v(w), t.destroy ? e.destroy(t.destroy === "completely") : c ? (d(!0), e.mount()) : p !== t.direction && e.refresh();
|
|
402
402
|
}
|
|
403
403
|
function m(c) {
|
|
404
|
-
matchMedia(Dn).matches && (c ?
|
|
404
|
+
matchMedia(Dn).matches && (c ? Me(t, a) : Bn(t, mt(a)));
|
|
405
405
|
}
|
|
406
406
|
function v(c, p, w) {
|
|
407
|
-
|
|
407
|
+
Me(t, c), p && Me(Object.getPrototypeOf(t), c), (w || !r.is(Qe)) && e.emit(ve, t);
|
|
408
408
|
}
|
|
409
409
|
return {
|
|
410
410
|
setup: s,
|
|
@@ -413,7 +413,7 @@ function Fi(e, n, t) {
|
|
|
413
413
|
set: v
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
var Yt = "Arrow", Gt = Yt + "Left", Xt = Yt + "Right", Er = Yt + "Up", Ar = Yt + "Down",
|
|
416
|
+
var Yt = "Arrow", Gt = Yt + "Left", Xt = Yt + "Right", Er = Yt + "Up", Ar = Yt + "Down", Fn = "rtl", Kt = "ttb", Qt = {
|
|
417
417
|
width: ["height"],
|
|
418
418
|
left: ["top", "right"],
|
|
419
419
|
right: ["bottom", "left"],
|
|
@@ -423,26 +423,26 @@ var Yt = "Arrow", Gt = Yt + "Left", Xt = Yt + "Right", Er = Yt + "Up", Ar = Yt +
|
|
|
423
423
|
ArrowLeft: [Er, Xt],
|
|
424
424
|
ArrowRight: [Ar, Gt]
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Wi(e, n, t) {
|
|
427
427
|
function r(a, i, l) {
|
|
428
428
|
l = l || t.direction;
|
|
429
|
-
var s = l ===
|
|
429
|
+
var s = l === Fn && !i ? 1 : l === Kt ? 0 : -1;
|
|
430
430
|
return Qt[a] && Qt[a][s] || a.replace(/width|left|right/i, function(d, u) {
|
|
431
431
|
var S = Qt[d.toLowerCase()][s] || d;
|
|
432
432
|
return u > 0 ? S.charAt(0).toUpperCase() + S.slice(1) : S;
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
function o(a) {
|
|
436
|
-
return a * (t.direction ===
|
|
436
|
+
return a * (t.direction === Fn ? 1 : -1);
|
|
437
437
|
}
|
|
438
438
|
return {
|
|
439
439
|
resolve: r,
|
|
440
440
|
orient: o
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
var Pe = "role", tt = "tabindex", ji = "disabled",
|
|
443
|
+
var Pe = "role", tt = "tabindex", ji = "disabled", Le = "aria-", It = Le + "controls", Ir = Le + "current", Vn = Le + "selected", we = Le + "label", Ln = Le + "labelledby", Lr = Le + "hidden", xn = Le + "orientation", _t = Le + "roledescription", Wn = Le + "live", jn = Le + "busy", $n = Le + "atomic", Tn = [Pe, tt, ji, It, Ir, we, Ln, Lr, xn, _t], Re = At + "__", $e = "is-", en = At, Hn = Re + "track", $i = Re + "list", qt = Re + "slide", xr = qt + "--clone", Hi = qt + "__container", Rn = Re + "arrows", Jt = Re + "arrow", Tr = Jt + "--prev", Rr = Jt + "--next", Zt = Re + "pagination", kr = Zt + "__page", Ui = Re + "progress", Yi = Ui + "__bar", Gi = Re + "toggle", Xi = Re + "spinner", Ki = Re + "sr", qi = $e + "initialized", Xe = $e + "active", Nr = $e + "prev", Or = $e + "next", un = $e + "visible", dn = $e + "loading", Dr = $e + "focus-in", Pr = $e + "overflow", Ji = [Xe, un, Nr, Or, dn, Dr, Pr], Zi = {
|
|
444
444
|
slide: qt,
|
|
445
|
-
clone:
|
|
445
|
+
clone: xr,
|
|
446
446
|
arrows: Rn,
|
|
447
447
|
arrow: Jt,
|
|
448
448
|
prev: Tr,
|
|
@@ -462,7 +462,7 @@ var eo = 5, Un = 200, Br = "touchstart mousedown", tn = "touchmove mousemove", n
|
|
|
462
462
|
function to(e, n, t) {
|
|
463
463
|
var r = se(e), o = r.on, a = r.bind, i = e.root, l = t.i18n, s = {}, d = [], u = [], S = [], m, v, c;
|
|
464
464
|
function p() {
|
|
465
|
-
b(),
|
|
465
|
+
b(), V(), f();
|
|
466
466
|
}
|
|
467
467
|
function w() {
|
|
468
468
|
o(de, C), o(de, p), o(ve, f), a(document, Br + " keydown", function(h) {
|
|
@@ -478,10 +478,10 @@ function to(e, n, t) {
|
|
|
478
478
|
Be(d), De(i, u), De(m, S), Te([m, v], E), Te(i, h ? E : ["style", _t]);
|
|
479
479
|
}
|
|
480
480
|
function f() {
|
|
481
|
-
De(i, u), De(m, S), u = I(en), S = I(Hn),
|
|
481
|
+
De(i, u), De(m, S), u = I(en), S = I(Hn), xe(i, u), xe(m, S), K(i, we, t.label), K(i, Ln, t.labelledby);
|
|
482
482
|
}
|
|
483
483
|
function b() {
|
|
484
|
-
m = B("." + Hn), v = Et(m, "." + $i), ct(m && v, "A track/list element is missing."), Dt(d, ir(v, "." + qt + ":not(." +
|
|
484
|
+
m = B("." + Hn), v = Et(m, "." + $i), ct(m && v, "A track/list element is missing."), Dt(d, ir(v, "." + qt + ":not(." + xr + ")")), Ye({
|
|
485
485
|
arrows: Rn,
|
|
486
486
|
pagination: Zt,
|
|
487
487
|
prev: Tr,
|
|
@@ -497,7 +497,7 @@ function to(e, n, t) {
|
|
|
497
497
|
slides: d
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function V() {
|
|
501
501
|
var h = i.id || Bi(At), E = t.role;
|
|
502
502
|
i.id = h, m.id = m.id || h + "-track", v.id = v.id || h + "-list", !Ie(i, Pe) && i.tagName !== "SECTION" && E && K(i, Pe, E), K(i, _t, l.carousel), K(v, Pe, "presentation");
|
|
503
503
|
}
|
|
@@ -514,67 +514,67 @@ function to(e, n, t) {
|
|
|
514
514
|
destroy: C
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
var it = "slide", st = "loop",
|
|
517
|
+
var it = "slide", st = "loop", Lt = "fade";
|
|
518
518
|
function no(e, n, t, r) {
|
|
519
|
-
var o = se(e), a = o.on, i = o.emit, l = o.bind, s = e.Components, d = e.root, u = e.options, S = u.isNavigation, m = u.updateOnMove, v = u.i18n, c = u.pagination, p = u.slideFocus, w = s.Direction.resolve, C = Ie(r, "style"), f = Ie(r, we), b = t > -1,
|
|
519
|
+
var o = se(e), a = o.on, i = o.emit, l = o.bind, s = e.Components, d = e.root, u = e.options, S = u.isNavigation, m = u.updateOnMove, v = u.i18n, c = u.pagination, p = u.slideFocus, w = s.Direction.resolve, C = Ie(r, "style"), f = Ie(r, we), b = t > -1, V = Et(r, "." + Hi), B;
|
|
520
520
|
function I() {
|
|
521
521
|
b || (r.id = d.id + "-slide" + bn(n + 1), K(r, Pe, c ? "tabpanel" : "group"), K(r, _t, v.slide), K(r, we, f || ln(v.slideLabel, [n + 1, e.length]))), h();
|
|
522
522
|
}
|
|
523
523
|
function h() {
|
|
524
|
-
l(r, "click", re(i, Sn,
|
|
524
|
+
l(r, "click", re(i, Sn, L)), l(r, "keydown", re(i, wr, L)), a([at, Cr, Ke], T), a(Cn, k), m && a(ze, z);
|
|
525
525
|
}
|
|
526
526
|
function E() {
|
|
527
527
|
B = !0, o.destroy(), De(r, Ji), Te(r, Tn), K(r, "style", C), K(r, we, f || "");
|
|
528
528
|
}
|
|
529
529
|
function k() {
|
|
530
|
-
var
|
|
530
|
+
var x = e.splides.map(function(_) {
|
|
531
531
|
var N = _.splide.Components.Slides.getAt(n);
|
|
532
532
|
return N ? N.slide.id : "";
|
|
533
533
|
}).join(" ");
|
|
534
|
-
K(r, we, ln(v.slideX, (b ? t : n) + 1)), K(r, It,
|
|
534
|
+
K(r, we, ln(v.slideX, (b ? t : n) + 1)), K(r, It, x), K(r, Pe, p ? "button" : ""), p && Te(r, _t);
|
|
535
535
|
}
|
|
536
536
|
function z() {
|
|
537
537
|
B || T();
|
|
538
538
|
}
|
|
539
539
|
function T() {
|
|
540
540
|
if (!B) {
|
|
541
|
-
var
|
|
542
|
-
O(), P(), Oe(r, Nr, n ===
|
|
541
|
+
var x = e.index;
|
|
542
|
+
O(), P(), Oe(r, Nr, n === x - 1), Oe(r, Or, n === x + 1);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
function O() {
|
|
546
|
-
var
|
|
547
|
-
|
|
546
|
+
var x = $();
|
|
547
|
+
x !== zn(r, Xe) && (Oe(r, Xe, x), K(r, Ir, S && x || ""), i(x ? ur : dr, L));
|
|
548
548
|
}
|
|
549
549
|
function P() {
|
|
550
|
-
var
|
|
551
|
-
if (e.state.is([ot, bt]) || K(r,
|
|
550
|
+
var x = g(), _ = !x && (!$() || b);
|
|
551
|
+
if (e.state.is([ot, bt]) || K(r, Lr, _ || ""), K(yn(r, u.focusableNodes || ""), tt, _ ? -1 : ""), p && K(r, tt, _ ? -1 : 0), x !== zn(r, un) && (Oe(r, un, x), i(x ? pr : gr, L)), !x && document.activeElement === r) {
|
|
552
552
|
var N = s.Slides.getAt(e.index);
|
|
553
553
|
N && or(N.slide);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function H(
|
|
557
|
-
Ee(N &&
|
|
556
|
+
function H(x, _, N) {
|
|
557
|
+
Ee(N && V || r, x, _);
|
|
558
558
|
}
|
|
559
559
|
function $() {
|
|
560
|
-
var
|
|
561
|
-
return
|
|
560
|
+
var x = e.index;
|
|
561
|
+
return x === n || u.cloneStatus && x === t;
|
|
562
562
|
}
|
|
563
563
|
function g() {
|
|
564
|
-
if (e.is(
|
|
564
|
+
if (e.is(Lt))
|
|
565
565
|
return $();
|
|
566
|
-
var
|
|
567
|
-
return
|
|
566
|
+
var x = Se(s.Elements.track), _ = Se(r), N = w("left", !0), G = w("right", !0);
|
|
567
|
+
return Ft(x[N]) <= yt(_[N]) && Ft(_[G]) <= yt(x[G]);
|
|
568
568
|
}
|
|
569
|
-
function R(
|
|
570
|
-
var N = _e(
|
|
571
|
-
return !b && (u.rewind || e.is(st)) && (N =
|
|
569
|
+
function R(x, _) {
|
|
570
|
+
var N = _e(x - n);
|
|
571
|
+
return !b && (u.rewind || e.is(st)) && (N = Ve(N, e.length - N)), N <= _;
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var L = {
|
|
574
574
|
index: n,
|
|
575
575
|
slideIndex: t,
|
|
576
576
|
slide: r,
|
|
577
|
-
container:
|
|
577
|
+
container: V,
|
|
578
578
|
isClone: b,
|
|
579
579
|
mount: I,
|
|
580
580
|
destroy: E,
|
|
@@ -582,7 +582,7 @@ function no(e, n, t, r) {
|
|
|
582
582
|
style: H,
|
|
583
583
|
isWithin: R
|
|
584
584
|
};
|
|
585
|
-
return
|
|
585
|
+
return L;
|
|
586
586
|
}
|
|
587
587
|
function ro(e, n, t) {
|
|
588
588
|
var r = se(e), o = r.on, a = r.emit, i = r.bind, l = n.Elements, s = l.slides, d = l.list, u = [];
|
|
@@ -626,13 +626,13 @@ function ro(e, n, t) {
|
|
|
626
626
|
}
|
|
627
627
|
function b(T, O) {
|
|
628
628
|
Ce(T, function(P) {
|
|
629
|
-
if (
|
|
629
|
+
if (Fe(P) && (P = ar(P)), rr(P)) {
|
|
630
630
|
var H = s[O];
|
|
631
|
-
H ? vn(P, H) : Ct(d, P),
|
|
631
|
+
H ? vn(P, H) : Ct(d, P), xe(P, t.classes.slide), E(P, re(a, rt));
|
|
632
632
|
}
|
|
633
633
|
}), a(de);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function V(T) {
|
|
636
636
|
Ge(I(T).map(function(O) {
|
|
637
637
|
return O.slide;
|
|
638
638
|
})), a(de);
|
|
@@ -642,7 +642,7 @@ function ro(e, n, t) {
|
|
|
642
642
|
}
|
|
643
643
|
function I(T) {
|
|
644
644
|
return u.filter(nr(T) ? T : function(O) {
|
|
645
|
-
return
|
|
645
|
+
return Fe(T) ? ft(O.slide, T) : hn(wt(T), O.index);
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
648
|
function h(T, O, P) {
|
|
@@ -673,7 +673,7 @@ function ro(e, n, t) {
|
|
|
673
673
|
getIn: C,
|
|
674
674
|
getAt: f,
|
|
675
675
|
add: b,
|
|
676
|
-
remove:
|
|
676
|
+
remove: V,
|
|
677
677
|
forEach: B,
|
|
678
678
|
filter: I,
|
|
679
679
|
style: h,
|
|
@@ -684,22 +684,22 @@ function ro(e, n, t) {
|
|
|
684
684
|
function io(e, n, t) {
|
|
685
685
|
var r = se(e), o = r.on, a = r.bind, i = r.emit, l = n.Slides, s = n.Direction.resolve, d = n.Elements, u = d.root, S = d.track, m = d.list, v = l.getAt, c = l.style, p, w, C;
|
|
686
686
|
function f() {
|
|
687
|
-
b(), a(window, "resize load",
|
|
687
|
+
b(), a(window, "resize load", Fi(re(i, rt))), o([ve, de], b), o(rt, V);
|
|
688
688
|
}
|
|
689
689
|
function b() {
|
|
690
|
-
p = t.direction === Kt, Ee(u, "maxWidth", He(t.width)), Ee(S, s("paddingLeft"), B(!1)), Ee(S, s("paddingRight"), B(!0)),
|
|
690
|
+
p = t.direction === Kt, Ee(u, "maxWidth", He(t.width)), Ee(S, s("paddingLeft"), B(!1)), Ee(S, s("paddingRight"), B(!0)), V(!0);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
var
|
|
694
|
-
(
|
|
692
|
+
function V(L) {
|
|
693
|
+
var x = Se(u);
|
|
694
|
+
(L || w.width !== x.width || w.height !== x.height) && (Ee(S, "height", I()), c(s("marginRight"), He(t.gap)), c("width", E()), c("height", k(), !0), w = x, i($t), C !== (C = R()) && (Oe(u, Pr, C), i(zi, C)));
|
|
695
695
|
}
|
|
696
|
-
function B(
|
|
697
|
-
var
|
|
698
|
-
return
|
|
696
|
+
function B(L) {
|
|
697
|
+
var x = t.padding, _ = s(L ? "right" : "left");
|
|
698
|
+
return x && He(x[_] || (gt(x) ? 0 : x)) || "0px";
|
|
699
699
|
}
|
|
700
700
|
function I() {
|
|
701
|
-
var
|
|
702
|
-
return p && (
|
|
701
|
+
var L = "";
|
|
702
|
+
return p && (L = h(), ct(L, "height or heightRatio is missing."), L = "calc(" + L + " - " + B(!1) + " - " + B(!0) + ")"), L;
|
|
703
703
|
}
|
|
704
704
|
function h() {
|
|
705
705
|
return He(t.height || Se(m).width * t.heightRatio);
|
|
@@ -711,40 +711,40 @@ function io(e, n, t) {
|
|
|
711
711
|
return He(t.fixedHeight) || (p ? t.autoHeight ? null : z() : h());
|
|
712
712
|
}
|
|
713
713
|
function z() {
|
|
714
|
-
var
|
|
715
|
-
return "calc((100%" + (
|
|
714
|
+
var L = He(t.gap);
|
|
715
|
+
return "calc((100%" + (L && " + " + L) + ")/" + (t.perPage || 1) + (L && " - " + L) + ")";
|
|
716
716
|
}
|
|
717
717
|
function T() {
|
|
718
718
|
return Se(m)[s("width")];
|
|
719
719
|
}
|
|
720
|
-
function O(
|
|
721
|
-
var _ = v(
|
|
722
|
-
return _ ? Se(_.slide)[s("width")] + (
|
|
720
|
+
function O(L, x) {
|
|
721
|
+
var _ = v(L || 0);
|
|
722
|
+
return _ ? Se(_.slide)[s("width")] + (x ? 0 : $()) : 0;
|
|
723
723
|
}
|
|
724
|
-
function P(
|
|
725
|
-
var _ = v(
|
|
724
|
+
function P(L, x) {
|
|
725
|
+
var _ = v(L);
|
|
726
726
|
if (_) {
|
|
727
727
|
var N = Se(_.slide)[s("right")], G = Se(m)[s("left")];
|
|
728
|
-
return _e(N - G) + (
|
|
728
|
+
return _e(N - G) + (x ? 0 : $());
|
|
729
729
|
}
|
|
730
730
|
return 0;
|
|
731
731
|
}
|
|
732
|
-
function H(
|
|
733
|
-
return P(e.length - 1) - P(0) + O(0,
|
|
732
|
+
function H(L) {
|
|
733
|
+
return P(e.length - 1) - P(0) + O(0, L);
|
|
734
734
|
}
|
|
735
735
|
function $() {
|
|
736
|
-
var
|
|
737
|
-
return
|
|
736
|
+
var L = v(0);
|
|
737
|
+
return L && parseFloat(Ee(L.slide, s("marginRight"))) || 0;
|
|
738
738
|
}
|
|
739
|
-
function g(
|
|
740
|
-
return parseFloat(Ee(S, s("padding" + (
|
|
739
|
+
function g(L) {
|
|
740
|
+
return parseFloat(Ee(S, s("padding" + (L ? "Right" : "Left")))) || 0;
|
|
741
741
|
}
|
|
742
742
|
function R() {
|
|
743
|
-
return e.is(
|
|
743
|
+
return e.is(Lt) || H(!0) > T();
|
|
744
744
|
}
|
|
745
745
|
return {
|
|
746
746
|
mount: f,
|
|
747
|
-
resize:
|
|
747
|
+
resize: V,
|
|
748
748
|
listSize: T,
|
|
749
749
|
slideSize: O,
|
|
750
750
|
sliderSize: H,
|
|
@@ -774,15 +774,15 @@ function ao(e, n, t) {
|
|
|
774
774
|
if (b) {
|
|
775
775
|
for (; f.length < C; )
|
|
776
776
|
Dt(f, f);
|
|
777
|
-
Dt(f.slice(-C), f.slice(0, C)).forEach(function(
|
|
778
|
-
var I = B < C, h = p(
|
|
779
|
-
I ? vn(h, f[0].slide) : Ct(a.list, h), Dt(s, h), i.register(h, B - C + (I ? 0 : b),
|
|
777
|
+
Dt(f.slice(-C), f.slice(0, C)).forEach(function(V, B) {
|
|
778
|
+
var I = B < C, h = p(V.slide, B);
|
|
779
|
+
I ? vn(h, f[0].slide) : Ct(a.list, h), Dt(s, h), i.register(h, B - C + (I ? 0 : b), V.index);
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
function p(C, f) {
|
|
784
784
|
var b = C.cloneNode(!0);
|
|
785
|
-
return
|
|
785
|
+
return xe(b, t.classes.clone), b.id = e.root.id + "-clone" + bn(f + 1), b;
|
|
786
786
|
}
|
|
787
787
|
function w() {
|
|
788
788
|
var C = t.clones;
|
|
@@ -801,14 +801,14 @@ function ao(e, n, t) {
|
|
|
801
801
|
}
|
|
802
802
|
function so(e, n, t) {
|
|
803
803
|
var r = se(e), o = r.on, a = r.emit, i = e.state.set, l = n.Layout, s = l.slideSize, d = l.getPadding, u = l.totalSize, S = l.listSize, m = l.sliderSize, v = n.Direction, c = v.resolve, p = v.orient, w = n.Elements, C = w.list, f = w.track, b;
|
|
804
|
-
function
|
|
804
|
+
function V() {
|
|
805
805
|
b = n.Transition, o([je, $t, ve, de], B);
|
|
806
806
|
}
|
|
807
807
|
function B() {
|
|
808
808
|
n.Controller.isBusy() || (n.Scroll.cancel(), h(e.index), n.Slides.update());
|
|
809
809
|
}
|
|
810
810
|
function I(_, N, G, ne) {
|
|
811
|
-
_ !== N &&
|
|
811
|
+
_ !== N && L(_ > G) && (T(), E(z(H(), _ > G), !0)), i(ot), a(ze, N, G, _), b.start(N, function() {
|
|
812
812
|
i(nt), a(at, N, G, _), ne && ne();
|
|
813
813
|
});
|
|
814
814
|
}
|
|
@@ -816,7 +816,7 @@ function so(e, n, t) {
|
|
|
816
816
|
E(P(_, !0));
|
|
817
817
|
}
|
|
818
818
|
function E(_, N) {
|
|
819
|
-
if (!e.is(
|
|
819
|
+
if (!e.is(Lt)) {
|
|
820
820
|
var G = N ? _ : k(_);
|
|
821
821
|
Ee(C, "transform", "translate" + c("X") + "(" + G + "px)"), _ !== G && a(Cr);
|
|
822
822
|
}
|
|
@@ -863,17 +863,17 @@ function so(e, n, t) {
|
|
|
863
863
|
function R(_) {
|
|
864
864
|
return P(_ ? n.Controller.getEnd() : 0, !!t.trimSpace);
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function L(_) {
|
|
867
867
|
var N = p(z(H(), _));
|
|
868
868
|
return _ ? N >= 0 : N <= C[c("scrollWidth")] - Se(f)[c("width")];
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function x(_, N) {
|
|
871
871
|
N = St(N) ? H() : N;
|
|
872
872
|
var G = _ !== !0 && p(N) < p(R(!1)), ne = _ !== !1 && p(N) > p(R(!0));
|
|
873
873
|
return G || ne;
|
|
874
874
|
}
|
|
875
875
|
return {
|
|
876
|
-
mount:
|
|
876
|
+
mount: V,
|
|
877
877
|
move: I,
|
|
878
878
|
jump: h,
|
|
879
879
|
translate: E,
|
|
@@ -883,40 +883,40 @@ function so(e, n, t) {
|
|
|
883
883
|
toPosition: P,
|
|
884
884
|
getPosition: H,
|
|
885
885
|
getLimit: R,
|
|
886
|
-
exceededLimit:
|
|
886
|
+
exceededLimit: x,
|
|
887
887
|
reposition: B
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
890
|
function lo(e, n, t) {
|
|
891
|
-
var r = se(e), o = r.on, a = r.emit, i = n.Move, l = i.getPosition, s = i.getLimit, d = i.toPosition, u = n.Slides, S = u.isEnough, m = u.getLength, v = t.omitEnd, c = e.is(st), p = e.is(it), w = re(H, !1), C = re(H, !0), f = t.start || 0, b,
|
|
891
|
+
var r = se(e), o = r.on, a = r.emit, i = n.Move, l = i.getPosition, s = i.getLimit, d = i.toPosition, u = n.Slides, S = u.isEnough, m = u.getLength, v = t.omitEnd, c = e.is(st), p = e.is(it), w = re(H, !1), C = re(H, !0), f = t.start || 0, b, V = f, B, I, h;
|
|
892
892
|
function E() {
|
|
893
|
-
k(), o([ve, de,
|
|
893
|
+
k(), o([ve, de, Vt], k), o($t, z);
|
|
894
894
|
}
|
|
895
895
|
function k() {
|
|
896
|
-
B = m(!0), I = t.perMove, h = t.perPage, b =
|
|
896
|
+
B = m(!0), I = t.perMove, h = t.perPage, b = L();
|
|
897
897
|
var A = Je(f, 0, v ? b : B - 1);
|
|
898
898
|
A !== f && (f = A, i.reposition());
|
|
899
899
|
}
|
|
900
900
|
function z() {
|
|
901
|
-
b !==
|
|
901
|
+
b !== L() && a(Vt);
|
|
902
902
|
}
|
|
903
903
|
function T(A, q, fe) {
|
|
904
904
|
if (!he()) {
|
|
905
905
|
var ie = P(A), ge = R(ie);
|
|
906
|
-
ge > -1 && (q || ge !== f) && (G(ge), i.move(ie, ge,
|
|
906
|
+
ge > -1 && (q || ge !== f) && (G(ge), i.move(ie, ge, V, fe));
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
function O(A, q, fe, ie) {
|
|
910
910
|
n.Scroll.scroll(A, q, fe, function() {
|
|
911
911
|
var ge = R(i.toIndex(l()));
|
|
912
|
-
G(v ?
|
|
912
|
+
G(v ? Ve(ge, b) : ge), ie && ie();
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
function P(A) {
|
|
916
916
|
var q = f;
|
|
917
|
-
if (
|
|
917
|
+
if (Fe(A)) {
|
|
918
918
|
var fe = A.match(/([+\-<>])(\d+)?/) || [], ie = fe[1], ge = fe[2];
|
|
919
|
-
ie === "+" || ie === "-" ? q = $(f + +("" + ie + (+ge || 1)), f) : ie === ">" ? q = ge ?
|
|
919
|
+
ie === "+" || ie === "-" ? q = $(f + +("" + ie + (+ge || 1)), f) : ie === ">" ? q = ge ? x(+ge) : w(!0) : ie === "<" && (q = C(!0));
|
|
920
920
|
} else
|
|
921
921
|
q = c ? A : Je(A, 0, b);
|
|
922
922
|
return q;
|
|
@@ -928,7 +928,7 @@ function lo(e, n, t) {
|
|
|
928
928
|
function $(A, q, fe) {
|
|
929
929
|
if (S() || ee()) {
|
|
930
930
|
var ie = g(A);
|
|
931
|
-
ie !== A && (q = A, A = ie, fe = !1), A < 0 || A > b ? !I && (Pt(0, A, q, !0) || Pt(b, q, A, !0)) ? A =
|
|
931
|
+
ie !== A && (q = A, A = ie, fe = !1), A < 0 || A > b ? !I && (Pt(0, A, q, !0) || Pt(b, q, A, !0)) ? A = x(_(A)) : c ? A = fe ? A < 0 ? -(B % h || h) : B : A : t.rewind ? A = A < 0 ? b : 0 : A = -1 : fe && A !== q && (A = x(_(q) + (A < q ? -1 : 1)));
|
|
932
932
|
} else
|
|
933
933
|
A = -1;
|
|
934
934
|
return A;
|
|
@@ -942,7 +942,7 @@ function lo(e, n, t) {
|
|
|
942
942
|
function R(A) {
|
|
943
943
|
return c ? (A + B) % B || 0 : A;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function L() {
|
|
946
946
|
for (var A = B - (ee() || c && I ? 1 : h); v && A-- > 0; )
|
|
947
947
|
if (d(B - 1, !0) !== d(A, !0)) {
|
|
948
948
|
A++;
|
|
@@ -950,21 +950,21 @@ function lo(e, n, t) {
|
|
|
950
950
|
}
|
|
951
951
|
return Je(A, 0, B - 1);
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function x(A) {
|
|
954
954
|
return Je(ee() ? A : h * A, 0, b);
|
|
955
955
|
}
|
|
956
956
|
function _(A) {
|
|
957
|
-
return ee() ?
|
|
957
|
+
return ee() ? Ve(A, b) : Ft((A >= b ? B - 1 : A) / h);
|
|
958
958
|
}
|
|
959
959
|
function N(A) {
|
|
960
960
|
var q = i.toIndex(A);
|
|
961
961
|
return p ? Je(q, 0, b) : q;
|
|
962
962
|
}
|
|
963
963
|
function G(A) {
|
|
964
|
-
A !== f && (
|
|
964
|
+
A !== f && (V = f, f = A);
|
|
965
965
|
}
|
|
966
966
|
function ne(A) {
|
|
967
|
-
return A ?
|
|
967
|
+
return A ? V : f;
|
|
968
968
|
}
|
|
969
969
|
function ee() {
|
|
970
970
|
return !St(t.focus) || t.isNavigation;
|
|
@@ -979,10 +979,10 @@ function lo(e, n, t) {
|
|
|
979
979
|
getNext: w,
|
|
980
980
|
getPrev: C,
|
|
981
981
|
getAdjacent: H,
|
|
982
|
-
getEnd:
|
|
982
|
+
getEnd: L,
|
|
983
983
|
setIndex: G,
|
|
984
984
|
getIndex: ne,
|
|
985
|
-
toIndex:
|
|
985
|
+
toIndex: x,
|
|
986
986
|
toPage: _,
|
|
987
987
|
toDest: N,
|
|
988
988
|
hasFocus: ee,
|
|
@@ -993,9 +993,9 @@ var co = "http://www.w3.org/2000/svg", uo = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5
|
|
|
993
993
|
function po(e, n, t) {
|
|
994
994
|
var r = se(e), o = r.on, a = r.bind, i = r.emit, l = t.classes, s = t.i18n, d = n.Elements, u = n.Controller, S = d.arrows, m = d.track, v = S, c = d.prev, p = d.next, w, C, f = {};
|
|
995
995
|
function b() {
|
|
996
|
-
B(), o(ve,
|
|
996
|
+
B(), o(ve, V);
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function V() {
|
|
999
999
|
I(), b();
|
|
1000
1000
|
}
|
|
1001
1001
|
function B() {
|
|
@@ -1003,13 +1003,13 @@ function po(e, n, t) {
|
|
|
1003
1003
|
O && !(c && p) && k(), c && p && (ht(f, {
|
|
1004
1004
|
prev: c,
|
|
1005
1005
|
next: p
|
|
1006
|
-
}), vt(v, O ? "" : "none"),
|
|
1006
|
+
}), vt(v, O ? "" : "none"), xe(v, C = Rn + "--" + t.direction), O && (h(), T(), K([c, p], It, m.id), i(vr, c, p)));
|
|
1007
1007
|
}
|
|
1008
1008
|
function I() {
|
|
1009
1009
|
r.destroy(), De(v, C), w ? (Ge(S ? [c, p] : v), c = p = null) : Te([c, p], Tn);
|
|
1010
1010
|
}
|
|
1011
1011
|
function h() {
|
|
1012
|
-
o([je, at, de, Ke,
|
|
1012
|
+
o([je, at, de, Ke, Vt], T), a(p, "click", re(E, ">")), a(c, "click", re(E, "<"));
|
|
1013
1013
|
}
|
|
1014
1014
|
function E(O) {
|
|
1015
1015
|
u.go(O, !0);
|
|
@@ -1046,17 +1046,17 @@ function fo(e, n, t) {
|
|
|
1046
1046
|
}), t.pauseOnFocus && a(S, "focusin focusout", function(k) {
|
|
1047
1047
|
p = k.type === "focusin", B();
|
|
1048
1048
|
}), m && a(m, "click", function() {
|
|
1049
|
-
w ? b() :
|
|
1049
|
+
w ? b() : V(!0);
|
|
1050
1050
|
}), o([ze, Ht, de], l.rewind), o(ze, E);
|
|
1051
1051
|
}
|
|
1052
1052
|
function b() {
|
|
1053
1053
|
s() && n.Slides.isEnough() && (l.start(!t.resetProgress), p = c = w = !1, I(), i(En));
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function V(k) {
|
|
1056
1056
|
k === void 0 && (k = !0), w = !!k, I(), s() || (l.pause(), i(An));
|
|
1057
1057
|
}
|
|
1058
1058
|
function B() {
|
|
1059
|
-
w || (c || p ?
|
|
1059
|
+
w || (c || p ? V(!1) : b());
|
|
1060
1060
|
}
|
|
1061
1061
|
function I() {
|
|
1062
1062
|
m && (Oe(m, Xe, !w), K(m, we, t.i18n[w ? "play" : "pause"]));
|
|
@@ -1073,7 +1073,7 @@ function fo(e, n, t) {
|
|
|
1073
1073
|
mount: C,
|
|
1074
1074
|
destroy: l.cancel,
|
|
1075
1075
|
play: b,
|
|
1076
|
-
pause:
|
|
1076
|
+
pause: V,
|
|
1077
1077
|
isPaused: s
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
@@ -1100,16 +1100,16 @@ var ho = 10, vo = 600, yo = 0.6, _o = 1.5, bo = 800;
|
|
|
1100
1100
|
function So(e, n, t) {
|
|
1101
1101
|
var r = se(e), o = r.on, a = r.emit, i = e.state.set, l = n.Move, s = l.getPosition, d = l.getLimit, u = l.exceededLimit, S = l.translate, m = e.is(it), v, c, p = 1;
|
|
1102
1102
|
function w() {
|
|
1103
|
-
o(ze,
|
|
1103
|
+
o(ze, V), o([ve, de], B);
|
|
1104
1104
|
}
|
|
1105
1105
|
function C(h, E, k, z, T) {
|
|
1106
1106
|
var O = s();
|
|
1107
|
-
if (
|
|
1108
|
-
var P = n.Layout.sliderSize(), H = sn(h) * P *
|
|
1107
|
+
if (V(), k && (!m || !u())) {
|
|
1108
|
+
var P = n.Layout.sliderSize(), H = sn(h) * P * Ft(_e(h) / P) || 0;
|
|
1109
1109
|
h = l.toPosition(n.Controller.toDest(h % P)) + H;
|
|
1110
1110
|
}
|
|
1111
1111
|
var $ = lr(O, h, 1);
|
|
1112
|
-
p = 1, E = $ ? 0 : E ||
|
|
1112
|
+
p = 1, E = $ ? 0 : E || Mt(_e(h - O) / _o, bo), c = z, v = Ut(E, f, re(b, O, h, T), 1), i(bt), a(Ht), v.start();
|
|
1113
1113
|
}
|
|
1114
1114
|
function f() {
|
|
1115
1115
|
i(nt), c && c(), a(Ke);
|
|
@@ -1118,11 +1118,11 @@ function So(e, n, t) {
|
|
|
1118
1118
|
var T = s(), O = h + (E - h) * I(z), P = (O - T) * p;
|
|
1119
1119
|
S(T + P), m && !k && u() && (p *= yo, _e(P) < ho && C(d(u(!0)), vo, !1, c, !0));
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function V() {
|
|
1122
1122
|
v && v.cancel();
|
|
1123
1123
|
}
|
|
1124
1124
|
function B() {
|
|
1125
|
-
v && !v.isPaused() && (
|
|
1125
|
+
v && !v.isPaused() && (V(), f());
|
|
1126
1126
|
}
|
|
1127
1127
|
function I(h) {
|
|
1128
1128
|
var E = t.easingFunc;
|
|
@@ -1130,7 +1130,7 @@ function So(e, n, t) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return {
|
|
1132
1132
|
mount: w,
|
|
1133
|
-
destroy:
|
|
1133
|
+
destroy: V,
|
|
1134
1134
|
scroll: C,
|
|
1135
1135
|
cancel: B
|
|
1136
1136
|
};
|
|
@@ -1140,92 +1140,92 @@ var Ze = {
|
|
|
1140
1140
|
capture: !0
|
|
1141
1141
|
};
|
|
1142
1142
|
function wo(e, n, t) {
|
|
1143
|
-
var r = se(e), o = r.on, a = r.emit, i = r.bind, l = r.unbind, s = e.state, d = n.Move, u = n.Scroll, S = n.Controller, m = n.Elements.track, v = n.Media.reduce, c = n.Direction, p = c.resolve, w = c.orient, C = d.getPosition, f = d.exceededLimit, b,
|
|
1143
|
+
var r = se(e), o = r.on, a = r.emit, i = r.bind, l = r.unbind, s = e.state, d = n.Move, u = n.Scroll, S = n.Controller, m = n.Elements.track, v = n.Media.reduce, c = n.Direction, p = c.resolve, w = c.orient, C = d.getPosition, f = d.exceededLimit, b, V, B, I, h, E = !1, k, z, T;
|
|
1144
1144
|
function O() {
|
|
1145
1145
|
i(m, tn, on, Ze), i(m, nn, on, Ze), i(m, Br, H, Ze), i(m, "click", R, {
|
|
1146
1146
|
capture: !0
|
|
1147
1147
|
}), i(m, "dragstart", Ne), o([je, ve], P);
|
|
1148
1148
|
}
|
|
1149
1149
|
function P() {
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1150
|
+
var M = t.drag;
|
|
1151
|
+
xt(!M), I = M === "free";
|
|
1152
1152
|
}
|
|
1153
|
-
function H(
|
|
1153
|
+
function H(M) {
|
|
1154
1154
|
if (k = !1, !z) {
|
|
1155
|
-
var y = ge(
|
|
1156
|
-
ie(
|
|
1155
|
+
var y = ge(M);
|
|
1156
|
+
ie(M.target) && (y || !M.button) && (S.isBusy() ? Ne(M, !0) : (T = y ? m : window, h = s.is([ot, bt]), B = null, i(T, tn, $, Ze), i(T, nn, g, Ze), d.cancel(), u.cancel(), L(M)));
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
|
-
function $(
|
|
1160
|
-
if (s.is(Ot) || (s.set(Ot), a(fr)),
|
|
1159
|
+
function $(M) {
|
|
1160
|
+
if (s.is(Ot) || (s.set(Ot), a(fr)), M.cancelable)
|
|
1161
1161
|
if (h) {
|
|
1162
|
-
d.translate(b + fe(ee(
|
|
1163
|
-
var y = he(
|
|
1164
|
-
(y ||
|
|
1165
|
-
} else N(
|
|
1162
|
+
d.translate(b + fe(ee(M)));
|
|
1163
|
+
var y = he(M) > Un, W = E !== (E = f());
|
|
1164
|
+
(y || W) && L(M), k = !0, a(mr), Ne(M);
|
|
1165
|
+
} else N(M) && (h = _(M), Ne(M));
|
|
1166
1166
|
}
|
|
1167
|
-
function g(
|
|
1168
|
-
s.is(Ot) && (s.set(nt), a(hr)), h && (
|
|
1167
|
+
function g(M) {
|
|
1168
|
+
s.is(Ot) && (s.set(nt), a(hr)), h && (x(M), Ne(M)), l(T, tn, $), l(T, nn, g), h = !1;
|
|
1169
1169
|
}
|
|
1170
|
-
function R(
|
|
1171
|
-
!z && k && Ne(
|
|
1170
|
+
function R(M) {
|
|
1171
|
+
!z && k && Ne(M, !0);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
B =
|
|
1173
|
+
function L(M) {
|
|
1174
|
+
B = V, V = M, b = C();
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
var y = G(
|
|
1178
|
-
v(!1), I ? S.scroll(
|
|
1176
|
+
function x(M) {
|
|
1177
|
+
var y = G(M), W = ne(y), Y = t.rewind && t.rewindByDrag;
|
|
1178
|
+
v(!1), I ? S.scroll(W, 0, t.snap) : e.is(Lt) ? S.go(w(sn(y)) < 0 ? Y ? "<" : "-" : Y ? ">" : "+") : e.is(it) && E && Y ? S.go(f(!0) ? ">" : "<") : S.go(S.toDest(W), !0), v(!0);
|
|
1179
1179
|
}
|
|
1180
|
-
function _(
|
|
1181
|
-
var y = t.dragMinThreshold,
|
|
1182
|
-
return _e(ee(
|
|
1180
|
+
function _(M) {
|
|
1181
|
+
var y = t.dragMinThreshold, W = gt(y), Y = W && y.mouse || 0, J = (W ? y.touch : +y) || 10;
|
|
1182
|
+
return _e(ee(M)) > (ge(M) ? J : Y);
|
|
1183
1183
|
}
|
|
1184
|
-
function N(
|
|
1185
|
-
return _e(ee(
|
|
1184
|
+
function N(M) {
|
|
1185
|
+
return _e(ee(M)) > _e(ee(M, !0));
|
|
1186
1186
|
}
|
|
1187
|
-
function G(
|
|
1187
|
+
function G(M) {
|
|
1188
1188
|
if (e.is(st) || !E) {
|
|
1189
|
-
var y = he(
|
|
1189
|
+
var y = he(M);
|
|
1190
1190
|
if (y && y < Un)
|
|
1191
|
-
return ee(
|
|
1191
|
+
return ee(M) / y;
|
|
1192
1192
|
}
|
|
1193
1193
|
return 0;
|
|
1194
1194
|
}
|
|
1195
|
-
function ne(
|
|
1196
|
-
return C() + sn(
|
|
1195
|
+
function ne(M) {
|
|
1196
|
+
return C() + sn(M) * Ve(_e(M) * (t.flickPower || 600), I ? 1 / 0 : n.Layout.listSize() * (t.flickMaxPages || 1));
|
|
1197
1197
|
}
|
|
1198
|
-
function ee(
|
|
1199
|
-
return q(
|
|
1198
|
+
function ee(M, y) {
|
|
1199
|
+
return q(M, y) - q(A(M), y);
|
|
1200
1200
|
}
|
|
1201
|
-
function he(
|
|
1202
|
-
return an(
|
|
1201
|
+
function he(M) {
|
|
1202
|
+
return an(M) - an(A(M));
|
|
1203
1203
|
}
|
|
1204
|
-
function A(
|
|
1205
|
-
return
|
|
1204
|
+
function A(M) {
|
|
1205
|
+
return V === M && B || V;
|
|
1206
1206
|
}
|
|
1207
|
-
function q(
|
|
1208
|
-
return (ge(
|
|
1207
|
+
function q(M, y) {
|
|
1208
|
+
return (ge(M) ? M.changedTouches[0] : M)["page" + p(y ? "Y" : "X")];
|
|
1209
1209
|
}
|
|
1210
|
-
function fe(
|
|
1211
|
-
return
|
|
1210
|
+
function fe(M) {
|
|
1211
|
+
return M / (E && e.is(it) ? eo : 1);
|
|
1212
1212
|
}
|
|
1213
|
-
function ie(
|
|
1213
|
+
function ie(M) {
|
|
1214
1214
|
var y = t.noDrag;
|
|
1215
|
-
return !ft(
|
|
1215
|
+
return !ft(M, "." + kr + ", ." + Jt) && (!y || !ft(M, y));
|
|
1216
1216
|
}
|
|
1217
|
-
function ge(
|
|
1218
|
-
return typeof TouchEvent < "u" &&
|
|
1217
|
+
function ge(M) {
|
|
1218
|
+
return typeof TouchEvent < "u" && M instanceof TouchEvent;
|
|
1219
1219
|
}
|
|
1220
1220
|
function lt() {
|
|
1221
1221
|
return h;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1224
|
-
z =
|
|
1223
|
+
function xt(M) {
|
|
1224
|
+
z = M;
|
|
1225
1225
|
}
|
|
1226
1226
|
return {
|
|
1227
1227
|
mount: O,
|
|
1228
|
-
disable:
|
|
1228
|
+
disable: xt,
|
|
1229
1229
|
isDragging: lt
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
@@ -1237,7 +1237,7 @@ var Co = {
|
|
|
1237
1237
|
Down: Ar
|
|
1238
1238
|
};
|
|
1239
1239
|
function kn(e) {
|
|
1240
|
-
return e =
|
|
1240
|
+
return e = Fe(e) ? e : e.key, Co[e] || e;
|
|
1241
1241
|
}
|
|
1242
1242
|
var Yn = "keydown";
|
|
1243
1243
|
function Eo(e, n, t) {
|
|
@@ -1285,8 +1285,8 @@ function Io(e, n, t) {
|
|
|
1285
1285
|
function v() {
|
|
1286
1286
|
n.Slides.forEach(function(f) {
|
|
1287
1287
|
yn(f.slide, Ao).forEach(function(b) {
|
|
1288
|
-
var
|
|
1289
|
-
if (
|
|
1288
|
+
var V = Ie(b, ut), B = Ie(b, Bt);
|
|
1289
|
+
if (V !== b.src || B !== b.srcset) {
|
|
1290
1290
|
var I = t.classes.spinner, h = b.parentElement, E = Et(h, "." + I) || et("span", I, h);
|
|
1291
1291
|
u.push([b, f, E]), b.src || vt(b, "none");
|
|
1292
1292
|
}
|
|
@@ -1301,11 +1301,11 @@ function Io(e, n, t) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function p(f) {
|
|
1303
1303
|
var b = f[0];
|
|
1304
|
-
|
|
1304
|
+
xe(f[1].slide, dn), i(b, "load error", re(w, f)), K(b, "src", Ie(b, ut)), K(b, "srcset", Ie(b, Bt)), Te(b, ut), Te(b, Bt);
|
|
1305
1305
|
}
|
|
1306
1306
|
function w(f, b) {
|
|
1307
|
-
var
|
|
1308
|
-
De(B.slide, dn), b.type !== "error" && (Ge(f[2]), vt(
|
|
1307
|
+
var V = f[0], B = f[1];
|
|
1308
|
+
De(B.slide, dn), b.type !== "error" && (Ge(f[2]), vt(V, ""), l(In, V, B), l(rt)), s && C();
|
|
1309
1309
|
}
|
|
1310
1310
|
function C() {
|
|
1311
1311
|
u.length && p(u.shift());
|
|
@@ -1316,30 +1316,30 @@ function Io(e, n, t) {
|
|
|
1316
1316
|
check: c
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Lo(e, n, t) {
|
|
1320
1320
|
var r = se(e), o = r.on, a = r.emit, i = r.bind, l = n.Slides, s = n.Elements, d = n.Controller, u = d.hasFocus, S = d.getIndex, m = d.go, v = n.Direction.resolve, c = s.pagination, p = [], w, C;
|
|
1321
1321
|
function f() {
|
|
1322
|
-
b(), o([ve, de,
|
|
1322
|
+
b(), o([ve, de, Vt], f);
|
|
1323
1323
|
var z = t.pagination;
|
|
1324
|
-
c && vt(c, z ? "" : "none"), z && (o([ze, Ht, Ke], k),
|
|
1324
|
+
c && vt(c, z ? "" : "none"), z && (o([ze, Ht, Ke], k), V(), k(), a(_r, {
|
|
1325
1325
|
list: w,
|
|
1326
1326
|
items: p
|
|
1327
1327
|
}, E(e.index)));
|
|
1328
1328
|
}
|
|
1329
1329
|
function b() {
|
|
1330
|
-
w && (Ge(c ?
|
|
1330
|
+
w && (Ge(c ? We(w.children) : w), De(w, C), Be(p), w = null), r.destroy();
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function V() {
|
|
1333
1333
|
var z = e.length, T = t.classes, O = t.i18n, P = t.perPage, H = u() ? d.getEnd() + 1 : yt(z / P);
|
|
1334
|
-
w = c || et("ul", T.pagination, s.track.parentElement),
|
|
1334
|
+
w = c || et("ul", T.pagination, s.track.parentElement), xe(w, C = Zt + "--" + h()), K(w, Pe, "tablist"), K(w, we, O.select), K(w, xn, h() === Kt ? "vertical" : "");
|
|
1335
1335
|
for (var $ = 0; $ < H; $++) {
|
|
1336
1336
|
var g = et("li", null, w), R = et("button", {
|
|
1337
1337
|
class: T.page,
|
|
1338
1338
|
type: "button"
|
|
1339
|
-
}, g),
|
|
1339
|
+
}, g), L = l.getIn($).map(function(_) {
|
|
1340
1340
|
return _.slide.id;
|
|
1341
|
-
}),
|
|
1342
|
-
i(R, "click", re(B, $)), t.paginationKeyboard && i(R, "keydown", re(I, $)), K(g, Pe, "presentation"), K(R, Pe, "tab"), K(R, It,
|
|
1341
|
+
}), x = !u() && P > 1 ? O.pageX : O.slideX;
|
|
1342
|
+
i(R, "click", re(B, $)), t.paginationKeyboard && i(R, "keydown", re(I, $)), K(g, Pe, "presentation"), K(R, Pe, "tab"), K(R, It, L.join(" ")), K(R, we, ln(x, $ + 1)), K(R, tt, -1), p.push({
|
|
1343
1343
|
li: g,
|
|
1344
1344
|
button: R,
|
|
1345
1345
|
page: $
|
|
@@ -1365,11 +1365,11 @@ function xo(e, n, t) {
|
|
|
1365
1365
|
var z = E(S(!0)), T = E(S());
|
|
1366
1366
|
if (z) {
|
|
1367
1367
|
var O = z.button;
|
|
1368
|
-
De(O, Xe), Te(O,
|
|
1368
|
+
De(O, Xe), Te(O, Vn), K(O, tt, -1);
|
|
1369
1369
|
}
|
|
1370
1370
|
if (T) {
|
|
1371
1371
|
var P = T.button;
|
|
1372
|
-
|
|
1372
|
+
xe(P, Xe), K(P, Vn, !0), K(P, tt, "");
|
|
1373
1373
|
}
|
|
1374
1374
|
a(br, {
|
|
1375
1375
|
list: w,
|
|
@@ -1384,7 +1384,7 @@ function xo(e, n, t) {
|
|
|
1384
1384
|
update: k
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
|
-
var
|
|
1387
|
+
var xo = [" ", "Enter"];
|
|
1388
1388
|
function To(e, n, t) {
|
|
1389
1389
|
var r = t.isNavigation, o = t.slideFocus, a = [];
|
|
1390
1390
|
function i() {
|
|
@@ -1411,13 +1411,13 @@ function To(e, n, t) {
|
|
|
1411
1411
|
p(Sn, m), p(wr, v), p([je, ve], S), a.push(c), c.emit(Cn, e.splides);
|
|
1412
1412
|
}
|
|
1413
1413
|
function S() {
|
|
1414
|
-
K(n.Elements.list,
|
|
1414
|
+
K(n.Elements.list, xn, t.direction === Kt ? "vertical" : "");
|
|
1415
1415
|
}
|
|
1416
1416
|
function m(c) {
|
|
1417
1417
|
e.go(c.index);
|
|
1418
1418
|
}
|
|
1419
1419
|
function v(c, p) {
|
|
1420
|
-
hn(
|
|
1420
|
+
hn(xo, kn(p)) && (m(c), Ne(p));
|
|
1421
1421
|
}
|
|
1422
1422
|
return {
|
|
1423
1423
|
setup: re(n.Media.set, {
|
|
@@ -1456,10 +1456,10 @@ function No(e, n, t) {
|
|
|
1456
1456
|
K(a, jn, v), v ? (Ct(a, l), s.start()) : (Ge(l), s.cancel());
|
|
1457
1457
|
}
|
|
1458
1458
|
function S() {
|
|
1459
|
-
Te(a, [
|
|
1459
|
+
Te(a, [Wn, $n, jn]), Ge(l);
|
|
1460
1460
|
}
|
|
1461
1461
|
function m(v) {
|
|
1462
|
-
i && K(a,
|
|
1462
|
+
i && K(a, Wn, v ? "off" : "polite");
|
|
1463
1463
|
}
|
|
1464
1464
|
return {
|
|
1465
1465
|
mount: d,
|
|
@@ -1469,8 +1469,8 @@ function No(e, n, t) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
var Oo = /* @__PURE__ */ Object.freeze({
|
|
1471
1471
|
__proto__: null,
|
|
1472
|
-
Media:
|
|
1473
|
-
Direction:
|
|
1472
|
+
Media: Vi,
|
|
1473
|
+
Direction: Wi,
|
|
1474
1474
|
Elements: to,
|
|
1475
1475
|
Slides: ro,
|
|
1476
1476
|
Layout: io,
|
|
@@ -1484,7 +1484,7 @@ var Oo = /* @__PURE__ */ Object.freeze({
|
|
|
1484
1484
|
Drag: wo,
|
|
1485
1485
|
Keyboard: Eo,
|
|
1486
1486
|
LazyLoad: Io,
|
|
1487
|
-
Pagination:
|
|
1487
|
+
Pagination: Lo,
|
|
1488
1488
|
Sync: To,
|
|
1489
1489
|
Wheel: Ro,
|
|
1490
1490
|
Live: No
|
|
@@ -1576,25 +1576,25 @@ function zo(e, n, t) {
|
|
|
1576
1576
|
cancel: S
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1579
|
+
var Mo = /* @__PURE__ */ (function() {
|
|
1580
1580
|
function e(t, r) {
|
|
1581
|
-
this.event = se(), this.Components = {}, this.state =
|
|
1582
|
-
var o =
|
|
1583
|
-
ct(o, o + " is invalid."), this.root = o, r =
|
|
1581
|
+
this.event = se(), this.Components = {}, this.state = Mi(Qe), this.splides = [], this._o = {}, this._E = {};
|
|
1582
|
+
var o = Fe(t) ? sr(document, t) : t;
|
|
1583
|
+
ct(o, o + " is invalid."), this.root = o, r = Me({
|
|
1584
1584
|
label: Ie(o, we) || "",
|
|
1585
|
-
labelledby: Ie(o,
|
|
1585
|
+
labelledby: Ie(o, Ln) || ""
|
|
1586
1586
|
}, Po, e.defaults, r || {});
|
|
1587
1587
|
try {
|
|
1588
|
-
|
|
1588
|
+
Me(r, JSON.parse(Ie(o, _n)));
|
|
1589
1589
|
} catch {
|
|
1590
1590
|
ct(!1, "Invalid JSON");
|
|
1591
1591
|
}
|
|
1592
|
-
this._o = Object.create(
|
|
1592
|
+
this._o = Object.create(Me({}, r));
|
|
1593
1593
|
}
|
|
1594
1594
|
var n = e.prototype;
|
|
1595
1595
|
return n.mount = function(r, o) {
|
|
1596
1596
|
var a = this, i = this.state, l = this.Components;
|
|
1597
|
-
ct(i.is([Qe, zt]), "Already mounted!"), i.set(Qe), this._C = l, this._T = o || this._T || (this.is(
|
|
1597
|
+
ct(i.is([Qe, zt]), "Already mounted!"), i.set(Qe), this._C = l, this._T = o || this._T || (this.is(Lt) ? Bo : zo), this._E = r || this._E;
|
|
1598
1598
|
var s = ht({}, Oo, this._E, {
|
|
1599
1599
|
Transition: this._T
|
|
1600
1600
|
});
|
|
@@ -1603,7 +1603,7 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1603
1603
|
l[u] = S, S.setup && S.setup();
|
|
1604
1604
|
}), Ye(l, function(d) {
|
|
1605
1605
|
d.mount && d.mount();
|
|
1606
|
-
}), this.emit(je),
|
|
1606
|
+
}), this.emit(je), xe(this.root, qi), i.set(nt), this.emit(cn), this;
|
|
1607
1607
|
}, n.sync = function(r) {
|
|
1608
1608
|
return this.splides.push({
|
|
1609
1609
|
splide: r
|
|
@@ -1619,7 +1619,7 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1619
1619
|
return this.event.off(r), this;
|
|
1620
1620
|
}, n.emit = function(r) {
|
|
1621
1621
|
var o;
|
|
1622
|
-
return (o = this.event).emit.apply(o, [r].concat(
|
|
1622
|
+
return (o = this.event).emit.apply(o, [r].concat(We(arguments, 1))), this;
|
|
1623
1623
|
}, n.add = function(r, o) {
|
|
1624
1624
|
return this._C.Slides.add(r, o), this;
|
|
1625
1625
|
}, n.remove = function(r) {
|
|
@@ -1653,7 +1653,7 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1653
1653
|
return this._C.Controller.getIndex();
|
|
1654
1654
|
}
|
|
1655
1655
|
}]), e;
|
|
1656
|
-
})(), Nn =
|
|
1656
|
+
})(), Nn = Mo;
|
|
1657
1657
|
Nn.defaults = {};
|
|
1658
1658
|
Nn.STATES = Pi;
|
|
1659
1659
|
var Gn = [
|
|
@@ -1689,22 +1689,22 @@ var Gn = [
|
|
|
1689
1689
|
function On(...e) {
|
|
1690
1690
|
return e.filter(Boolean).join(" ");
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1692
|
+
function Wt(e) {
|
|
1693
1693
|
return e !== null && typeof e == "object";
|
|
1694
1694
|
}
|
|
1695
1695
|
function pn(e, n) {
|
|
1696
1696
|
if (Array.isArray(e) && Array.isArray(n))
|
|
1697
1697
|
return e.length === n.length && !e.some((t, r) => !pn(t, n[r]));
|
|
1698
|
-
if (
|
|
1698
|
+
if (Wt(e) && Wt(n)) {
|
|
1699
1699
|
const t = Object.keys(e), r = Object.keys(n);
|
|
1700
1700
|
return t.length === r.length && !t.some((o) => !Object.prototype.hasOwnProperty.call(n, o) || !pn(e[o], n[o]));
|
|
1701
1701
|
}
|
|
1702
1702
|
return e === n;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Fo(e, n) {
|
|
1705
1705
|
return e.length === n.length && !e.some((t, r) => t !== n[r]);
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function Vo(e, n) {
|
|
1708
1708
|
if (e) {
|
|
1709
1709
|
const t = Object.keys(e);
|
|
1710
1710
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -1717,11 +1717,11 @@ function Fo(e, n) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
function gn(e, n) {
|
|
1719
1719
|
const t = e;
|
|
1720
|
-
return
|
|
1721
|
-
Array.isArray(r) ? t[o] = r.slice() :
|
|
1720
|
+
return Vo(n, (r, o) => {
|
|
1721
|
+
Array.isArray(r) ? t[o] = r.slice() : Wt(r) ? t[o] = gn(Wt(t[o]) ? t[o] : {}, r) : t[o] = r;
|
|
1722
1722
|
}), t;
|
|
1723
1723
|
}
|
|
1724
|
-
var
|
|
1724
|
+
var Wo = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createElement("div", {
|
|
1725
1725
|
className: On("splide__track", n),
|
|
1726
1726
|
...t
|
|
1727
1727
|
}, /* @__PURE__ */ Ue.createElement("ul", {
|
|
@@ -1743,7 +1743,7 @@ var Vo = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createEleme
|
|
|
1743
1743
|
const { options: e } = this.props;
|
|
1744
1744
|
e && !pn(this.options, e) && (this.splide.options = e, this.options = gn({}, e));
|
|
1745
1745
|
const n = this.getSlides();
|
|
1746
|
-
|
|
1746
|
+
Fo(this.slides, n) || (this.splide.refresh(), this.slides = n);
|
|
1747
1747
|
}
|
|
1748
1748
|
sync(e) {
|
|
1749
1749
|
var n;
|
|
@@ -1780,9 +1780,9 @@ var Vo = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createEleme
|
|
|
1780
1780
|
className: On("splide", e),
|
|
1781
1781
|
ref: this.splideRef,
|
|
1782
1782
|
...this.omit(o, ["options", ...Gn.map((a) => a[1])])
|
|
1783
|
-
}, t ? /* @__PURE__ */ Ue.createElement(
|
|
1783
|
+
}, t ? /* @__PURE__ */ Ue.createElement(Wo, null, r) : r);
|
|
1784
1784
|
}
|
|
1785
|
-
},
|
|
1785
|
+
}, Mr = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createElement("li", {
|
|
1786
1786
|
className: On("splide__slide", n),
|
|
1787
1787
|
...t
|
|
1788
1788
|
}, e);
|
|
@@ -1794,11 +1794,11 @@ var Vo = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createEleme
|
|
|
1794
1794
|
*/
|
|
1795
1795
|
const jo = "RichTextRenderer-module__link___BWeZ2", $o = {
|
|
1796
1796
|
link: jo
|
|
1797
|
-
},
|
|
1798
|
-
const n = (t) => t.map((r, o) => r.type === "link" ? /* @__PURE__ */
|
|
1799
|
-
return /* @__PURE__ */
|
|
1797
|
+
}, Fr = ({ content: e }) => {
|
|
1798
|
+
const n = (t) => t.map((r, o) => r.type === "link" ? /* @__PURE__ */ F("a", { className: $o.link, href: r.value, target: r.target, children: n(r.children) }, o) : /* @__PURE__ */ F("span", { style: Ho(r), children: r.text }, o));
|
|
1799
|
+
return /* @__PURE__ */ F(pt, { children: e.map((t, r) => {
|
|
1800
1800
|
const o = t.children;
|
|
1801
|
-
return /* @__PURE__ */
|
|
1801
|
+
return /* @__PURE__ */ F("div", { children: n(o) }, r);
|
|
1802
1802
|
}) });
|
|
1803
1803
|
};
|
|
1804
1804
|
function Ho(e) {
|
|
@@ -1828,7 +1828,7 @@ const Uo = "SvgImage-module__svg___q3xE-", Yo = "SvgImage-module__img___VsTm-",
|
|
|
1828
1828
|
const i = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
1829
1829
|
a(i);
|
|
1830
1830
|
}
|
|
1831
|
-
}, []), !e.endsWith(".svg") || !o ? /* @__PURE__ */
|
|
1831
|
+
}, []), !e.endsWith(".svg") || !o ? /* @__PURE__ */ F("img", { src: e, alt: "", className: ae(Xn.img, r) }) : /* @__PURE__ */ F(
|
|
1832
1832
|
"span",
|
|
1833
1833
|
{
|
|
1834
1834
|
"data-supports-mask": o,
|
|
@@ -1852,23 +1852,23 @@ const Uo = "SvgImage-module__svg___q3xE-", Yo = "SvgImage-module__img___VsTm-",
|
|
|
1852
1852
|
"bottom-right": j.bottomRightAlignment
|
|
1853
1853
|
};
|
|
1854
1854
|
function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
1855
|
-
const [o, a] = ue(null), { widthSettings: i, fontSettings: l, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: S, textAppearance: m, color: v } = t.imageCaption, [c, p] = ue(void 0), [w, C] = ue(null), [f, b] = ue(0), [
|
|
1855
|
+
const [o, a] = ue(null), { widthSettings: i, fontSettings: l, letterSpacing: s, textAlign: d, wordSpacing: u, fontSizeLineHeight: S, textAppearance: m, color: v } = t.imageCaption, [c, p] = ue(void 0), [w, C] = ue(null), [f, b] = ue(0), [V, B] = ue(0), { direction: I, transition: h, controls: E, pagination: k, imageCaption: z, triggers: T } = e, O = be(h.type), { x: P, y: H } = e.controls.offset, $ = (g) => {
|
|
1856
1856
|
o && o.go(g);
|
|
1857
1857
|
};
|
|
1858
1858
|
return me(() => {
|
|
1859
1859
|
if (!w) return;
|
|
1860
1860
|
const g = new ResizeObserver((R) => {
|
|
1861
1861
|
if (!o) return;
|
|
1862
|
-
const [
|
|
1862
|
+
const [L] = R;
|
|
1863
1863
|
p({
|
|
1864
|
-
width: Math.round(
|
|
1865
|
-
height: Math.round(
|
|
1864
|
+
width: Math.round(L.contentRect.width),
|
|
1865
|
+
height: Math.round(L.contentRect.height)
|
|
1866
1866
|
});
|
|
1867
1867
|
});
|
|
1868
1868
|
return g.observe(w), () => g.unobserve(w);
|
|
1869
1869
|
}, [w]), me(() => {
|
|
1870
1870
|
!o || O.current === h.type || (B((g) => g + 1), O.current = h.type);
|
|
1871
|
-
}, [h.type]), /* @__PURE__ */
|
|
1871
|
+
}, [h.type]), /* @__PURE__ */ F("div", { className: ae(j.wrapper, { [j.editor]: r }), ref: C, children: /* @__PURE__ */ Ae(
|
|
1872
1872
|
"div",
|
|
1873
1873
|
{
|
|
1874
1874
|
className: j.sliderInner,
|
|
@@ -1878,15 +1878,15 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1878
1878
|
backgroundColor: h.backgroundColor && h.type === "fade in" ? h.backgroundColor : "transparent"
|
|
1879
1879
|
},
|
|
1880
1880
|
children: [
|
|
1881
|
-
e.imageCaption.isActive && /* @__PURE__ */
|
|
1881
|
+
e.imageCaption.isActive && /* @__PURE__ */ F(
|
|
1882
1882
|
"div",
|
|
1883
1883
|
{
|
|
1884
1884
|
className: ae(j.captionBlock),
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1885
|
+
children: /* @__PURE__ */ F(
|
|
1886
1886
|
"div",
|
|
1887
1887
|
{
|
|
1888
1888
|
className: j.captionTextWrapper,
|
|
1889
|
-
children: n.map((g, R) => /* @__PURE__ */
|
|
1889
|
+
children: n.map((g, R) => /* @__PURE__ */ F(
|
|
1890
1890
|
"div",
|
|
1891
1891
|
{
|
|
1892
1892
|
className: ae(j.captionText, Go[z.alignment], {
|
|
@@ -1909,7 +1909,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1909
1909
|
color: v,
|
|
1910
1910
|
transitionDuration: h.duration ? `${Math.round(parseInt(h.duration) / 2)}ms` : "500ms"
|
|
1911
1911
|
},
|
|
1912
|
-
children: /* @__PURE__ */
|
|
1912
|
+
children: /* @__PURE__ */ F(
|
|
1913
1913
|
"div",
|
|
1914
1914
|
{
|
|
1915
1915
|
"data-styles": "imageCaption",
|
|
@@ -1921,7 +1921,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1921
1921
|
top: U(z.offset.y, r),
|
|
1922
1922
|
left: U(z.offset.x, r)
|
|
1923
1923
|
},
|
|
1924
|
-
children: /* @__PURE__ */
|
|
1924
|
+
children: /* @__PURE__ */ F(Fr, { content: g.imageCaption })
|
|
1925
1925
|
}
|
|
1926
1926
|
)
|
|
1927
1927
|
},
|
|
@@ -1931,7 +1931,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1931
1931
|
)
|
|
1932
1932
|
}
|
|
1933
1933
|
),
|
|
1934
|
-
/* @__PURE__ */
|
|
1934
|
+
/* @__PURE__ */ F(
|
|
1935
1935
|
zr,
|
|
1936
1936
|
{
|
|
1937
1937
|
onMove: (g) => {
|
|
@@ -1954,15 +1954,15 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1954
1954
|
type: h.type === "fade in" ? "fade" : "loop",
|
|
1955
1955
|
rewind: !0
|
|
1956
1956
|
},
|
|
1957
|
-
children: n.map((g, R) => /* @__PURE__ */
|
|
1957
|
+
children: n.map((g, R) => /* @__PURE__ */ F(Mr, { children: /* @__PURE__ */ F(
|
|
1958
1958
|
"div",
|
|
1959
1959
|
{
|
|
1960
1960
|
className: j.sliderItem,
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1961
|
+
children: /* @__PURE__ */ F(
|
|
1962
1962
|
"div",
|
|
1963
1963
|
{
|
|
1964
1964
|
className: j.imgWrapper,
|
|
1965
|
-
children: /* @__PURE__ */
|
|
1965
|
+
children: /* @__PURE__ */ F(
|
|
1966
1966
|
"img",
|
|
1967
1967
|
{
|
|
1968
1968
|
className: ae(j.sliderImage, {
|
|
@@ -1978,10 +1978,10 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
) }, R))
|
|
1980
1980
|
},
|
|
1981
|
-
|
|
1981
|
+
V
|
|
1982
1982
|
),
|
|
1983
1983
|
E.isActive && /* @__PURE__ */ Ae(pt, { children: [
|
|
1984
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ F(
|
|
1985
1985
|
"div",
|
|
1986
1986
|
{
|
|
1987
1987
|
className: ae(j.arrow, {
|
|
@@ -2003,7 +2003,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2003
2003
|
transform: `translate(${U(P, r)}, ${U(H * (I === "horiz" ? 1 : -1), r)}) scale(${e.controls.scale / 100}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2004
2004
|
},
|
|
2005
2005
|
children: [
|
|
2006
|
-
E.arrowsImgUrl && /* @__PURE__ */
|
|
2006
|
+
E.arrowsImgUrl && /* @__PURE__ */ F(
|
|
2007
2007
|
dt,
|
|
2008
2008
|
{
|
|
2009
2009
|
url: E.arrowsImgUrl,
|
|
@@ -2012,13 +2012,13 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2012
2012
|
className: ae(j.arrowImg, j.mirror)
|
|
2013
2013
|
}
|
|
2014
2014
|
),
|
|
2015
|
-
!E.arrowsImgUrl && /* @__PURE__ */
|
|
2015
|
+
!E.arrowsImgUrl && /* @__PURE__ */ F(Kn, { color: E.color, className: ae(j.arrowIcon, j.arrowImg, j.mirror) })
|
|
2016
2016
|
]
|
|
2017
2017
|
}
|
|
2018
2018
|
)
|
|
2019
2019
|
}
|
|
2020
2020
|
),
|
|
2021
|
-
/* @__PURE__ */
|
|
2021
|
+
/* @__PURE__ */ F(
|
|
2022
2022
|
"div",
|
|
2023
2023
|
{
|
|
2024
2024
|
className: ae(j.arrow, j.nextArrow, {
|
|
@@ -2038,7 +2038,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2038
2038
|
transform: `translate(${U(P * (I === "horiz" ? -1 : 1), r)}, ${U(H, r)}) scale(${e.controls.scale / 100}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2039
2039
|
},
|
|
2040
2040
|
children: [
|
|
2041
|
-
E.arrowsImgUrl && /* @__PURE__ */
|
|
2041
|
+
E.arrowsImgUrl && /* @__PURE__ */ F(
|
|
2042
2042
|
dt,
|
|
2043
2043
|
{
|
|
2044
2044
|
url: E.arrowsImgUrl,
|
|
@@ -2047,14 +2047,14 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2047
2047
|
className: j.arrowImg
|
|
2048
2048
|
}
|
|
2049
2049
|
),
|
|
2050
|
-
!E.arrowsImgUrl && /* @__PURE__ */
|
|
2050
|
+
!E.arrowsImgUrl && /* @__PURE__ */ F(Kn, { color: E.color, className: ae(j.arrowIcon, j.arrowImg) })
|
|
2051
2051
|
]
|
|
2052
2052
|
}
|
|
2053
2053
|
)
|
|
2054
2054
|
}
|
|
2055
2055
|
)
|
|
2056
2056
|
] }),
|
|
2057
|
-
T.triggersList.click && /* @__PURE__ */
|
|
2057
|
+
T.triggersList.click && /* @__PURE__ */ F(
|
|
2058
2058
|
"div",
|
|
2059
2059
|
{
|
|
2060
2060
|
className: j.clickOverlay,
|
|
@@ -2063,7 +2063,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
2065
|
),
|
|
2066
|
-
k.isActive && /* @__PURE__ */
|
|
2066
|
+
k.isActive && /* @__PURE__ */ F(
|
|
2067
2067
|
"div",
|
|
2068
2068
|
{
|
|
2069
2069
|
className: ae(j.pagination, {
|
|
@@ -2077,7 +2077,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2077
2077
|
[j.paginationOutsideRight]: k.position === "outside-2" && I === "vert",
|
|
2078
2078
|
[j.paginationVertical]: I === "vert"
|
|
2079
2079
|
}),
|
|
2080
|
-
children: /* @__PURE__ */
|
|
2080
|
+
children: /* @__PURE__ */ F(
|
|
2081
2081
|
"div",
|
|
2082
2082
|
{
|
|
2083
2083
|
className: j.paginationInner,
|
|
@@ -2085,14 +2085,14 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2085
2085
|
backgroundColor: k.colors[2],
|
|
2086
2086
|
transform: `scale(${k.scale / 100}) translate(${U(k.offset.x, r)}, ${U(k.offset.y, r)}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2087
2087
|
},
|
|
2088
|
-
children: n.map((g, R) => /* @__PURE__ */
|
|
2088
|
+
children: n.map((g, R) => /* @__PURE__ */ F(
|
|
2089
2089
|
"button",
|
|
2090
2090
|
{
|
|
2091
2091
|
onClick: () => {
|
|
2092
2092
|
o && o.go(R);
|
|
2093
2093
|
},
|
|
2094
2094
|
className: ae(j.paginationItem),
|
|
2095
|
-
children: /* @__PURE__ */
|
|
2095
|
+
children: /* @__PURE__ */ F(
|
|
2096
2096
|
"div",
|
|
2097
2097
|
{
|
|
2098
2098
|
className: ae(j.dot, {
|
|
@@ -2116,7 +2116,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2116
2116
|
) });
|
|
2117
2117
|
}
|
|
2118
2118
|
function Kn({ color: e, className: n }) {
|
|
2119
|
-
return /* @__PURE__ */
|
|
2119
|
+
return /* @__PURE__ */ F("svg", { viewBox: "0 0 10 18", className: n, children: /* @__PURE__ */ F("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ F("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
2120
2120
|
}
|
|
2121
2121
|
const Ko = {
|
|
2122
2122
|
element: Xo,
|
|
@@ -2516,8 +2516,7 @@ const Ko = {
|
|
|
2516
2516
|
layoutBased: !1,
|
|
2517
2517
|
type: "array",
|
|
2518
2518
|
settings: {
|
|
2519
|
-
addItemFromFileExplorer: !0
|
|
2520
|
-
defaultWidth: 500
|
|
2519
|
+
addItemFromFileExplorer: !0
|
|
2521
2520
|
},
|
|
2522
2521
|
items: {
|
|
2523
2522
|
type: "object",
|
|
@@ -2526,8 +2525,6 @@ const Ko = {
|
|
|
2526
2525
|
type: "object",
|
|
2527
2526
|
label: "Image",
|
|
2528
2527
|
display: {
|
|
2529
|
-
minWidth: 58,
|
|
2530
|
-
maxWidth: 108,
|
|
2531
2528
|
type: "media-input"
|
|
2532
2529
|
},
|
|
2533
2530
|
properties: {
|
|
@@ -2548,9 +2545,7 @@ const Ko = {
|
|
|
2548
2545
|
placeholder: "Add Caption...",
|
|
2549
2546
|
label: "Description",
|
|
2550
2547
|
display: {
|
|
2551
|
-
type: "rich-text"
|
|
2552
|
-
minWidth: 300,
|
|
2553
|
-
maxWidth: 550
|
|
2548
|
+
type: "rich-text"
|
|
2554
2549
|
}
|
|
2555
2550
|
}
|
|
2556
2551
|
},
|
|
@@ -2770,11 +2765,11 @@ async function ea(e, n, t, r) {
|
|
|
2770
2765
|
return { width: o, height: a, finalWidth: `${o}px` };
|
|
2771
2766
|
}
|
|
2772
2767
|
function ta({ settings: e, content: n, isEditor: t }) {
|
|
2773
|
-
const [r, o] = ue(null), [a, i] = ue([]), [l, s] = ue(0), d = be(0), [u, S] = ue({ x: 0, y: 0 }), [m, v] = ue(1), [c, p] = ue("none"), w = be({ x: 0, y: 0 }), [C, f] = ue(!1), { sizeType: b, imageWidth:
|
|
2768
|
+
const [r, o] = ue(null), [a, i] = ue([]), [l, s] = ue(0), d = be(0), [u, S] = ue({ x: 0, y: 0 }), [m, v] = ue(1), [c, p] = ue("none"), w = be({ x: 0, y: 0 }), [C, f] = ue(!1), { sizeType: b, imageWidth: V, randomRangeImageWidth: B } = e.imageSize, { revealPosition: I, visible: h } = e.position, { cursorType: E, target: k, defaultCursorScale: z, defaultCursor: T, hoverCursorScale: O, hoverCursor: P } = e.cursor;
|
|
2774
2769
|
me(() => {
|
|
2775
2770
|
if (!r) return;
|
|
2776
|
-
const g = (
|
|
2777
|
-
const N = r.getBoundingClientRect(), G =
|
|
2771
|
+
const g = (x, _) => {
|
|
2772
|
+
const N = r.getBoundingClientRect(), G = x - N.left, ne = _ - N.top;
|
|
2778
2773
|
if (S({ x: G, y: ne }), E === "system") {
|
|
2779
2774
|
p("none"), v(1);
|
|
2780
2775
|
return;
|
|
@@ -2786,13 +2781,13 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2786
2781
|
}
|
|
2787
2782
|
const q = qn(ee, he, a) || k === "area" ? { img: P ?? "none", scale: O } : { img: T ?? "none", scale: z };
|
|
2788
2783
|
p(q.img), v(q.scale);
|
|
2789
|
-
}, R = (
|
|
2790
|
-
|
|
2791
|
-
},
|
|
2784
|
+
}, R = (x) => {
|
|
2785
|
+
x.stopPropagation(), w.current = { x: x.clientX, y: x.clientY }, g(x.clientX, x.clientY);
|
|
2786
|
+
}, L = () => {
|
|
2792
2787
|
C && g(w.current.x, w.current.y);
|
|
2793
2788
|
};
|
|
2794
|
-
return r.addEventListener("mousemove", R), window.addEventListener("scroll",
|
|
2795
|
-
r.removeEventListener("mousemove", R), window.removeEventListener("scroll",
|
|
2789
|
+
return r.addEventListener("mousemove", R), window.addEventListener("scroll", L, !0), () => {
|
|
2790
|
+
r.removeEventListener("mousemove", R), window.removeEventListener("scroll", L, !0);
|
|
2796
2791
|
};
|
|
2797
2792
|
}, [
|
|
2798
2793
|
r,
|
|
@@ -2808,16 +2803,16 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2808
2803
|
]), me(() => {
|
|
2809
2804
|
C || (p("none"), v(0));
|
|
2810
2805
|
}, [C]);
|
|
2811
|
-
const H = async (g, R,
|
|
2806
|
+
const H = async (g, R, L, x = {}) => {
|
|
2812
2807
|
const { width: _, height: N, finalWidth: G } = await ea(
|
|
2813
2808
|
g.image.url,
|
|
2814
2809
|
b,
|
|
2815
|
-
|
|
2810
|
+
V,
|
|
2816
2811
|
B
|
|
2817
2812
|
);
|
|
2818
2813
|
let ne = 0, ee = 0;
|
|
2819
|
-
I === "same" ? (ne = R / 2, ee =
|
|
2820
|
-
const he = Math.min(Math.max(ne, _ / 2), R - _ / 2), A = Math.min(Math.max(ee, N / 2),
|
|
2814
|
+
I === "same" ? (ne = R / 2, ee = L / 2) : (ne = x.x ?? Math.random() * R, ee = x.y ?? Math.random() * L);
|
|
2815
|
+
const he = Math.min(Math.max(ne, _ / 2), R - _ / 2), A = Math.min(Math.max(ee, N / 2), L - N / 2);
|
|
2821
2816
|
return {
|
|
2822
2817
|
id: d.current++,
|
|
2823
2818
|
url: g.image.url,
|
|
@@ -2830,12 +2825,12 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2830
2825
|
};
|
|
2831
2826
|
return me(() => {
|
|
2832
2827
|
if (!r || n.length === 0) return;
|
|
2833
|
-
const g = r.getBoundingClientRect(), R = g.width,
|
|
2828
|
+
const g = r.getBoundingClientRect(), R = g.width, L = g.height, x = [];
|
|
2834
2829
|
(async () => {
|
|
2835
|
-
const N = n[0], G = await H(N, R,
|
|
2836
|
-
|
|
2830
|
+
const N = n[0], G = await H(N, R, L);
|
|
2831
|
+
x.push(G), i(x), s(1);
|
|
2837
2832
|
})();
|
|
2838
|
-
}, [b,
|
|
2833
|
+
}, [b, V, B, I, r]), me(() => {
|
|
2839
2834
|
h === "last One" && i((g) => g.length > 0 ? [g[g.length - 1]] : []);
|
|
2840
2835
|
}, [h]), /* @__PURE__ */ Ae(
|
|
2841
2836
|
"div",
|
|
@@ -2843,10 +2838,10 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2843
2838
|
ref: o,
|
|
2844
2839
|
onClick: async (g) => {
|
|
2845
2840
|
if (!r) return;
|
|
2846
|
-
const R = r.getBoundingClientRect(),
|
|
2847
|
-
if (k === "image" && !qn(
|
|
2841
|
+
const R = r.getBoundingClientRect(), L = g.clientX - R.left, x = g.clientY - R.top;
|
|
2842
|
+
if (k === "image" && !qn(L, x, a)) return;
|
|
2848
2843
|
let _ = 0, N = 0;
|
|
2849
|
-
I === "on Click" ? (_ =
|
|
2844
|
+
I === "on Click" ? (_ = L, N = x) : I === "same" ? (_ = R.width / 2, N = R.height / 2) : (_ = Math.random() * R.width, N = Math.random() * R.height);
|
|
2850
2845
|
const G = n[l], ne = await H(G, R.width, R.height, { x: _, y: N });
|
|
2851
2846
|
i((ee) => h === "all" ? [...ee, ne] : [ne]), s((ee) => ee >= n.length - 1 ? 0 : ee + 1);
|
|
2852
2847
|
},
|
|
@@ -2855,7 +2850,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2855
2850
|
className: qe.imageRevealSlider,
|
|
2856
2851
|
style: { cursor: c === "none" ? "default" : "none" },
|
|
2857
2852
|
children: [
|
|
2858
|
-
a.map((g) => /* @__PURE__ */
|
|
2853
|
+
a.map((g) => /* @__PURE__ */ F(
|
|
2859
2854
|
"div",
|
|
2860
2855
|
{
|
|
2861
2856
|
className: qe.wrapper,
|
|
@@ -2868,7 +2863,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2868
2863
|
height: "auto",
|
|
2869
2864
|
cursor: c === "none" ? "default" : "none"
|
|
2870
2865
|
},
|
|
2871
|
-
children: k === "area" && g.link ? /* @__PURE__ */
|
|
2866
|
+
children: k === "area" && g.link ? /* @__PURE__ */ F("a", { href: g.link, target: "_blank", className: qe.link, children: /* @__PURE__ */ F(
|
|
2872
2867
|
"img",
|
|
2873
2868
|
{
|
|
2874
2869
|
src: g.url,
|
|
@@ -2876,7 +2871,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2876
2871
|
className: qe.image
|
|
2877
2872
|
},
|
|
2878
2873
|
g.id
|
|
2879
|
-
) }) : /* @__PURE__ */
|
|
2874
|
+
) }) : /* @__PURE__ */ F(
|
|
2880
2875
|
"img",
|
|
2881
2876
|
{
|
|
2882
2877
|
src: g.url,
|
|
@@ -2888,7 +2883,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2888
2883
|
},
|
|
2889
2884
|
g.id
|
|
2890
2885
|
)),
|
|
2891
|
-
C && /* @__PURE__ */
|
|
2886
|
+
C && /* @__PURE__ */ F(
|
|
2892
2887
|
"div",
|
|
2893
2888
|
{
|
|
2894
2889
|
className: qe.cursor,
|
|
@@ -3151,8 +3146,7 @@ const na = {
|
|
|
3151
3146
|
layoutBased: !1,
|
|
3152
3147
|
type: "array",
|
|
3153
3148
|
settings: {
|
|
3154
|
-
addItemFromFileExplorer: !0
|
|
3155
|
-
defaultWidth: 500
|
|
3149
|
+
addItemFromFileExplorer: !0
|
|
3156
3150
|
},
|
|
3157
3151
|
items: {
|
|
3158
3152
|
type: "object",
|
|
@@ -3162,8 +3156,6 @@ const na = {
|
|
|
3162
3156
|
label: "Image",
|
|
3163
3157
|
display: {
|
|
3164
3158
|
isObjectFitEditable: !1,
|
|
3165
|
-
minWidth: 58,
|
|
3166
|
-
maxWidth: 108,
|
|
3167
3159
|
type: "media-input"
|
|
3168
3160
|
},
|
|
3169
3161
|
properties: {
|
|
@@ -3184,9 +3176,7 @@ const na = {
|
|
|
3184
3176
|
label: "URL",
|
|
3185
3177
|
placeholder: "Enter link...",
|
|
3186
3178
|
display: {
|
|
3187
|
-
type: "text-input"
|
|
3188
|
-
minWidth: 300,
|
|
3189
|
-
maxWidth: 550
|
|
3179
|
+
type: "text-input"
|
|
3190
3180
|
}
|
|
3191
3181
|
}
|
|
3192
3182
|
},
|
|
@@ -3229,7 +3219,7 @@ const na = {
|
|
|
3229
3219
|
}
|
|
3230
3220
|
}
|
|
3231
3221
|
}
|
|
3232
|
-
}, ra = "LightBox-module__hidden___9s-9x", ia = "LightBox-module__heroImage___sTxNF", oa = "LightBox-module__background___rm9ml", aa = "LightBox-module__editor___4ACaY", sa = "LightBox-module__contentStyle___Bgnsq", la = "LightBox-module__imageStyle___tLIlB", ca = "LightBox-module__imgWrapper___LuFUp", ua = "LightBox-module__contain___8-yaS", da = "LightBox-module__cover___hNvOG", pa = "LightBox-module__caption___b6L2I", ga = "LightBox-module__captionTextInner___rCGNH", fa = "LightBox-module__lightboxSplide___XFuWC", ma = "LightBox-module__arrow___iz38X", ha = "LightBox-module__arrowVertical___Zfz81", va = "LightBox-module__nextArrow___zkAQN", ya = "LightBox-module__arrowInner___p48sW", _a = "LightBox-module__arrowIcon___3VaFf", ba = "LightBox-module__arrowImg___pNV88", Sa = "LightBox-module__mirror___pjeXc", wa = "LightBox-module__thumbsWrapper___GB-nU", Ca = "LightBox-module__thumbsContainerVertical___wttk5", Ea = "LightBox-module__thumbsContainer___osSma", Aa = "LightBox-module__thumbsAlignStart___MO6tY", Ia = "LightBox-module__thumbsAlignCenter___Q4sUx",
|
|
3222
|
+
}, ra = "LightBox-module__hidden___9s-9x", ia = "LightBox-module__heroImage___sTxNF", oa = "LightBox-module__background___rm9ml", aa = "LightBox-module__editor___4ACaY", sa = "LightBox-module__contentStyle___Bgnsq", la = "LightBox-module__imageStyle___tLIlB", ca = "LightBox-module__imgWrapper___LuFUp", ua = "LightBox-module__contain___8-yaS", da = "LightBox-module__cover___hNvOG", pa = "LightBox-module__caption___b6L2I", ga = "LightBox-module__captionTextInner___rCGNH", fa = "LightBox-module__lightboxSplide___XFuWC", ma = "LightBox-module__arrow___iz38X", ha = "LightBox-module__arrowVertical___Zfz81", va = "LightBox-module__nextArrow___zkAQN", ya = "LightBox-module__arrowInner___p48sW", _a = "LightBox-module__arrowIcon___3VaFf", ba = "LightBox-module__arrowImg___pNV88", Sa = "LightBox-module__mirror___pjeXc", wa = "LightBox-module__thumbsWrapper___GB-nU", Ca = "LightBox-module__thumbsContainerVertical___wttk5", Ea = "LightBox-module__thumbsContainer___osSma", Aa = "LightBox-module__thumbsAlignStart___MO6tY", Ia = "LightBox-module__thumbsAlignCenter___Q4sUx", La = "LightBox-module__thumbsAlignEnd___p4y9R", xa = "LightBox-module__thumbItem___HvnF3", Ta = "LightBox-module__closeButton___g2khP", Ra = "LightBox-module__fadeIn___0m5GW", ka = "LightBox-module__slideInLeft___gPYwC", Na = "LightBox-module__slideInRight___S-pPp", Oa = "LightBox-module__slideInTop___DFdAj", Da = "LightBox-module__slideInBottom___m27kZ", Pa = "LightBox-module__fadeOut___55qBR", Ba = "LightBox-module__slideOutLeft___NvU7P", za = "LightBox-module__slideOutRight___SK7eC", Ma = "LightBox-module__slideOutTop___Vgg0z", Fa = "LightBox-module__slideOutBottom___nJ0Ef", Va = "LightBox-module__scaleSlide___vZriG", D = {
|
|
3233
3223
|
hidden: ra,
|
|
3234
3224
|
heroImage: ia,
|
|
3235
3225
|
background: oa,
|
|
@@ -3254,8 +3244,8 @@ const na = {
|
|
|
3254
3244
|
thumbsContainer: Ea,
|
|
3255
3245
|
thumbsAlignStart: Aa,
|
|
3256
3246
|
thumbsAlignCenter: Ia,
|
|
3257
|
-
thumbsAlignEnd:
|
|
3258
|
-
thumbItem:
|
|
3247
|
+
thumbsAlignEnd: La,
|
|
3248
|
+
thumbItem: xa,
|
|
3259
3249
|
closeButton: Ta,
|
|
3260
3250
|
fadeIn: Ra,
|
|
3261
3251
|
slideInLeft: ka,
|
|
@@ -3265,14 +3255,14 @@ const na = {
|
|
|
3265
3255
|
fadeOut: Pa,
|
|
3266
3256
|
slideOutLeft: Ba,
|
|
3267
3257
|
slideOutRight: za,
|
|
3268
|
-
slideOutTop:
|
|
3269
|
-
slideOutBottom:
|
|
3270
|
-
scaleSlide:
|
|
3258
|
+
slideOutTop: Ma,
|
|
3259
|
+
slideOutBottom: Fa,
|
|
3260
|
+
scaleSlide: Va
|
|
3271
3261
|
}, Nt = (e, n, t) => {
|
|
3272
3262
|
const r = {}, [o, a] = e.split("-");
|
|
3273
3263
|
return o === "top" ? (r.top = "0", r.bottom = "auto") : o === "middle" ? (r.top = "50%", r.bottom = "auto") : o === "bottom" && (r.top = "auto", r.bottom = "0"), a === "left" ? (r.left = "0", r.right = "auto") : a === "center" ? (r.left = "50%", r.right = "auto") : a === "right" && (r.left = "auto", r.right = "0"), o === "middle" && a === "center" ? r.transform = `translate(calc(-50% + ${U(n.x, t)}), calc(-50% + ${U(n.y, t)}))` : o === "middle" ? r.transform = `translate(${U(n.x, t)}, calc(-50% + ${U(n.y, t)}))` : a === "center" ? r.transform = `translate(calc(-50% + ${U(n.x, t)}), ${U(n.y, t)})` : r.transform = `translate(${U(n.x, t)}, ${U(n.y, t)})`, r;
|
|
3274
3264
|
};
|
|
3275
|
-
function
|
|
3265
|
+
function Vr(e) {
|
|
3276
3266
|
const n = window.getComputedStyle(e);
|
|
3277
3267
|
return {
|
|
3278
3268
|
top: parseFloat(n.paddingTop) || 0,
|
|
@@ -3282,7 +3272,7 @@ function Fr(e) {
|
|
|
3282
3272
|
};
|
|
3283
3273
|
}
|
|
3284
3274
|
function Jn(e) {
|
|
3285
|
-
const n = e.getBoundingClientRect(), t =
|
|
3275
|
+
const n = e.getBoundingClientRect(), t = Vr(e), r = Math.max(0, n.width - t.left - t.right), o = Math.max(0, n.height - t.top - t.bottom), a = e.naturalWidth, i = e.naturalHeight, l = r / o, s = a / i;
|
|
3286
3276
|
let d, u;
|
|
3287
3277
|
s > l ? (d = r, u = r / s) : (u = o, d = o * s);
|
|
3288
3278
|
const S = n.left + t.left, m = n.top + t.top, v = (r - d) / 2 + S, c = (o - u) / 2 + m;
|
|
@@ -3294,7 +3284,7 @@ function Jn(e) {
|
|
|
3294
3284
|
};
|
|
3295
3285
|
}
|
|
3296
3286
|
function Zn(e) {
|
|
3297
|
-
const n = e.getBoundingClientRect(), t =
|
|
3287
|
+
const n = e.getBoundingClientRect(), t = Vr(e);
|
|
3298
3288
|
return {
|
|
3299
3289
|
left: n.left + t.left,
|
|
3300
3290
|
right: n.right - t.right,
|
|
@@ -3315,7 +3305,7 @@ function Qn(e) {
|
|
|
3315
3305
|
}
|
|
3316
3306
|
return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/), 1;
|
|
3317
3307
|
}
|
|
3318
|
-
function
|
|
3308
|
+
function Wa(e, n) {
|
|
3319
3309
|
const t = (() => {
|
|
3320
3310
|
if (e === "fade in") return D.fadeIn;
|
|
3321
3311
|
if (e === "slide in" || e === "mix")
|
|
@@ -3388,7 +3378,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3388
3378
|
return me(() => {
|
|
3389
3379
|
o === "close" && l(!1), o === "open" && l(!0);
|
|
3390
3380
|
}, [o]), /* @__PURE__ */ Ae(pt, { children: [
|
|
3391
|
-
/* @__PURE__ */
|
|
3381
|
+
/* @__PURE__ */ F(
|
|
3392
3382
|
"img",
|
|
3393
3383
|
{
|
|
3394
3384
|
src: s,
|
|
@@ -3397,7 +3387,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3397
3387
|
onClick: () => l(!0)
|
|
3398
3388
|
}
|
|
3399
3389
|
),
|
|
3400
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ F(
|
|
3401
3391
|
$a,
|
|
3402
3392
|
{
|
|
3403
3393
|
isOpen: i,
|
|
@@ -3411,19 +3401,19 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3411
3401
|
)
|
|
3412
3402
|
] });
|
|
3413
3403
|
}, $a = ({ isOpen: e, onClose: n, content: t, lightboxStyles: r, settings: o, portalId: a, isEditor: i, metadata: l }) => {
|
|
3414
|
-
var
|
|
3415
|
-
const [s, d] = ue(0), [u, S] = ue(0), [m, v] = ue(!1), [c, p] = ue(!1), [w, C] = ue({}), f = be(null), b = be(null),
|
|
3404
|
+
var M;
|
|
3405
|
+
const [s, d] = ue(0), [u, S] = ue(0), [m, v] = ue(!1), [c, p] = ue(!1), [w, C] = ue({}), f = be(null), b = be(null), V = be(null), B = be(!1), I = be(null), h = be(null), E = be(null), k = be(null), z = be(!1), T = be(null), [O, P] = ue(!1), { appear: H, triggers: $, slider: g, thumbnail: R, controls: L, area: x, caption: _, layout: N } = o.lightboxBlock, { appearClass: G, backdropAppearClass: ne, backdropDisappearClass: ee, disappearClass: he } = Wa(H.type, H.direction), A = (l == null ? void 0 : l.itemId) ?? null;
|
|
3416
3406
|
me(() => {
|
|
3417
3407
|
const y = () => {
|
|
3418
3408
|
setTimeout(() => {
|
|
3419
3409
|
var Y, J;
|
|
3420
3410
|
(J = (Y = f.current) == null ? void 0 : Y.splide) == null || J.refresh();
|
|
3421
3411
|
}, 16);
|
|
3422
|
-
},
|
|
3412
|
+
}, W = () => {
|
|
3423
3413
|
S((Y) => Y + 1);
|
|
3424
3414
|
};
|
|
3425
|
-
return window.addEventListener("ArticleEditor.Layout:change", y), window.addEventListener("ArticleEditor.ComponentContent:change",
|
|
3426
|
-
window.removeEventListener("ArticleEditor.Layout:change", y), window.removeEventListener("ArticleEditor.ComponentContent:change",
|
|
3415
|
+
return window.addEventListener("ArticleEditor.Layout:change", y), window.addEventListener("ArticleEditor.ComponentContent:change", W), () => {
|
|
3416
|
+
window.removeEventListener("ArticleEditor.Layout:change", y), window.removeEventListener("ArticleEditor.ComponentContent:change", W);
|
|
3427
3417
|
};
|
|
3428
3418
|
}, []), me(() => {
|
|
3429
3419
|
if (!e || !R.isActive) {
|
|
@@ -3432,27 +3422,27 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3432
3422
|
}
|
|
3433
3423
|
const y = T.current;
|
|
3434
3424
|
if (!y) return;
|
|
3435
|
-
const
|
|
3425
|
+
const W = () => {
|
|
3436
3426
|
g.direction === "horiz" ? P(y.scrollWidth > y.clientWidth) : P(y.scrollHeight > y.clientHeight);
|
|
3437
3427
|
};
|
|
3438
|
-
|
|
3439
|
-
const Y = new ResizeObserver(
|
|
3428
|
+
W();
|
|
3429
|
+
const Y = new ResizeObserver(W);
|
|
3440
3430
|
return Y.observe(y), () => Y.disconnect();
|
|
3441
3431
|
}, [e, R.isActive, t.length, w, g.direction]);
|
|
3442
|
-
const q =
|
|
3443
|
-
const y = window.matchMedia("(max-width: 768px)").matches,
|
|
3444
|
-
y && !i &&
|
|
3432
|
+
const q = Wr(() => {
|
|
3433
|
+
const y = window.matchMedia("(max-width: 768px)").matches, W = Qn(x.color);
|
|
3434
|
+
y && !i && W > 0.9 && (document.body.style.backgroundColor = ""), v(!0), B.current = !0;
|
|
3445
3435
|
const Y = (J) => {
|
|
3446
3436
|
J.target === I.current && J.animationName && (I.current && h.current && I.current.removeEventListener("animationend", h.current), h.current = null, B.current && (B.current = !1, n()), v(!1));
|
|
3447
3437
|
};
|
|
3448
3438
|
I.current && (h.current = Y, I.current.addEventListener("animationend", Y));
|
|
3449
|
-
}, [n,
|
|
3439
|
+
}, [n, x.color, i]), fe = (y, W, Y) => {
|
|
3450
3440
|
var J, te;
|
|
3451
3441
|
if (y) {
|
|
3452
3442
|
if ($.type === "click" && $.switch === "image")
|
|
3453
3443
|
$.repeat === "close" && s === t.length - 1 ? q() : (J = f.current) == null || J.go("+1");
|
|
3454
3444
|
else if ($.type === "click" && $.switch === "50/50") {
|
|
3455
|
-
const Z = y.getBoundingClientRect(), X =
|
|
3445
|
+
const Z = y.getBoundingClientRect(), X = W - Z.left, oe = Y - Z.top, ye = Z.width, le = Z.height;
|
|
3456
3446
|
let pe;
|
|
3457
3447
|
g.direction === "horiz" ? pe = X < ye / 2 ? "-1" : "+1" : pe = oe < le / 2 ? "-1" : "+1", (te = f.current) == null || te.go(pe);
|
|
3458
3448
|
}
|
|
@@ -3462,7 +3452,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3462
3452
|
z.current = !1;
|
|
3463
3453
|
return;
|
|
3464
3454
|
}
|
|
3465
|
-
const
|
|
3455
|
+
const W = t[s], Y = (W == null ? void 0 : W.image.objectFit) === "cover";
|
|
3466
3456
|
let J, te;
|
|
3467
3457
|
if ("changedTouches" in y && y.changedTouches.length > 0)
|
|
3468
3458
|
J = y.changedTouches[0].clientX, te = y.changedTouches[0].clientY;
|
|
@@ -3471,42 +3461,42 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3471
3461
|
else
|
|
3472
3462
|
return;
|
|
3473
3463
|
let Z;
|
|
3474
|
-
if (Y &&
|
|
3475
|
-
const X = Zn(
|
|
3464
|
+
if (Y && V.current) {
|
|
3465
|
+
const X = Zn(V.current);
|
|
3476
3466
|
Z = J >= X.left && J <= X.right && te >= X.top && te <= X.bottom;
|
|
3477
3467
|
} else {
|
|
3478
|
-
const X =
|
|
3468
|
+
const X = V.current ? Jn(V.current) : null;
|
|
3479
3469
|
if (!X) {
|
|
3480
3470
|
y.target === y.currentTarget && q();
|
|
3481
3471
|
return;
|
|
3482
3472
|
}
|
|
3483
3473
|
Z = J >= X.x && J <= X.x + X.width && te >= X.y && te <= X.y + X.height;
|
|
3484
3474
|
}
|
|
3485
|
-
Z ? fe(
|
|
3475
|
+
Z ? fe(V.current, J, te) : q();
|
|
3486
3476
|
}, ge = (y) => {
|
|
3487
|
-
const
|
|
3488
|
-
(
|
|
3477
|
+
const W = y.target;
|
|
3478
|
+
(W.classList.contains(D.thumbsWrapper) || W.classList.contains(D.thumbsContainer)) && ie(y);
|
|
3489
3479
|
};
|
|
3490
3480
|
me(() => {
|
|
3491
3481
|
if (!e) return;
|
|
3492
|
-
const y = (
|
|
3482
|
+
const y = (W) => {
|
|
3493
3483
|
var Y, J;
|
|
3494
|
-
if (
|
|
3484
|
+
if (W.key === "Escape") {
|
|
3495
3485
|
q();
|
|
3496
3486
|
return;
|
|
3497
3487
|
}
|
|
3498
|
-
if (
|
|
3488
|
+
if (W.key === "ArrowRight") {
|
|
3499
3489
|
d((te) => (te + 1) % Math.max(t.length, 1)), (Y = f.current) == null || Y.go("+1");
|
|
3500
3490
|
return;
|
|
3501
3491
|
}
|
|
3502
|
-
|
|
3492
|
+
W.key === "ArrowLeft" && (d((te) => (te - 1 + Math.max(t.length, 1)) % Math.max(t.length, 1)), (J = f.current) == null || J.go("-1"));
|
|
3503
3493
|
};
|
|
3504
3494
|
return window.addEventListener("keydown", y), () => {
|
|
3505
3495
|
window.removeEventListener("keydown", y);
|
|
3506
3496
|
};
|
|
3507
3497
|
}, [e, q, t.length]), me(() => {
|
|
3508
3498
|
if (e) {
|
|
3509
|
-
if (d(0), S((
|
|
3499
|
+
if (d(0), S((W) => W + 1), B.current = !1, v(!1), p(!1), C({}), !A) return;
|
|
3510
3500
|
const y = new CustomEvent("page-overlay", { detail: { itemId: A } });
|
|
3511
3501
|
window.dispatchEvent(y);
|
|
3512
3502
|
}
|
|
@@ -3517,10 +3507,10 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3517
3507
|
b.current !== null && b.current !== g.type && S((y) => y + 1), b.current = g.type;
|
|
3518
3508
|
}, [g.type]), me(() => {
|
|
3519
3509
|
if (!e) return;
|
|
3520
|
-
const y = document.body.style.overflow,
|
|
3510
|
+
const y = document.body.style.overflow, W = window.matchMedia("(max-width: 768px)").matches, Y = Qn(x.color);
|
|
3521
3511
|
document.body.style.overflow = "hidden", p(!1);
|
|
3522
3512
|
const J = (Z) => {
|
|
3523
|
-
Z.target === I.current && !B.current && Z.animationName && (
|
|
3513
|
+
Z.target === I.current && !B.current && Z.animationName && (W && !i && Y > 0.9 && (document.body.style.backgroundColor = x.color), p(!0), I.current && E.current && I.current.removeEventListener("animationend", E.current), E.current = null);
|
|
3524
3514
|
};
|
|
3525
3515
|
I.current && (E.current = J, I.current.addEventListener("animationend", J));
|
|
3526
3516
|
const te = (Z) => {
|
|
@@ -3530,38 +3520,38 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3530
3520
|
return document.addEventListener("touchmove", te, { passive: !1 }), () => {
|
|
3531
3521
|
document.body.style.overflow = y, document.removeEventListener("touchmove", te), I.current && E.current && (I.current.removeEventListener("animationend", E.current), E.current = null), p(!1);
|
|
3532
3522
|
};
|
|
3533
|
-
}, [e, i,
|
|
3523
|
+
}, [e, i, x.color, g.type]), me(() => {
|
|
3534
3524
|
if (!e) return;
|
|
3535
|
-
const y = (
|
|
3525
|
+
const y = (W) => {
|
|
3536
3526
|
var J, te;
|
|
3537
3527
|
if (B.current) {
|
|
3538
|
-
|
|
3528
|
+
W.stopPropagation();
|
|
3539
3529
|
return;
|
|
3540
3530
|
}
|
|
3541
3531
|
if (z.current) {
|
|
3542
3532
|
z.current = !1;
|
|
3543
3533
|
return;
|
|
3544
3534
|
}
|
|
3545
|
-
const Y =
|
|
3535
|
+
const Y = W.target;
|
|
3546
3536
|
if (!(Y && (Y.closest(`.${D.thumbsContainer}`) || Y.closest(`.${D.thumbItem}`)))) {
|
|
3547
3537
|
if (g.type === "slide" && $.type === "drag" && ((te = (J = f.current) == null ? void 0 : J.splide) != null && te.root)) {
|
|
3548
3538
|
const Z = f.current.splide.root;
|
|
3549
3539
|
if (Y && (Z.contains(Y) || Z === Y))
|
|
3550
3540
|
return;
|
|
3551
3541
|
}
|
|
3552
|
-
if (
|
|
3553
|
-
const Z = t[s], X = (Z == null ? void 0 : Z.image.objectFit) === "cover", oe =
|
|
3542
|
+
if (W.touches.length === 0 && W.changedTouches.length > 0) {
|
|
3543
|
+
const Z = t[s], X = (Z == null ? void 0 : Z.image.objectFit) === "cover", oe = W.changedTouches[0];
|
|
3554
3544
|
let ye;
|
|
3555
|
-
if (X &&
|
|
3556
|
-
const le = Zn(
|
|
3545
|
+
if (X && V.current) {
|
|
3546
|
+
const le = Zn(V.current);
|
|
3557
3547
|
ye = oe.clientX >= le.left && oe.clientX <= le.right && oe.clientY >= le.top && oe.clientY <= le.bottom;
|
|
3558
3548
|
} else {
|
|
3559
|
-
const le =
|
|
3549
|
+
const le = V.current ? Jn(V.current) : null;
|
|
3560
3550
|
if (!le) return;
|
|
3561
3551
|
ye = oe.clientX >= le.x && oe.clientX <= le.x + le.width && oe.clientY >= le.y && oe.clientY <= le.y + le.height;
|
|
3562
3552
|
}
|
|
3563
3553
|
if (!ye) {
|
|
3564
|
-
|
|
3554
|
+
W.stopPropagation(), B.current = !0;
|
|
3565
3555
|
const le = (pe) => {
|
|
3566
3556
|
pe.stopPropagation(), pe.preventDefault(), document.removeEventListener("click", le, !0);
|
|
3567
3557
|
};
|
|
@@ -3578,7 +3568,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3578
3568
|
me(() => {
|
|
3579
3569
|
var pe, Tt;
|
|
3580
3570
|
if (!e || !lt || !((Tt = (pe = f.current) == null ? void 0 : pe.splide) != null && Tt.root)) return;
|
|
3581
|
-
const y = f.current.splide.root,
|
|
3571
|
+
const y = f.current.splide.root, W = 30, Y = (Q, ce) => {
|
|
3582
3572
|
if (k.current) {
|
|
3583
3573
|
const ke = Math.abs(Q - k.current.x), Rt = Math.abs(ce - k.current.y);
|
|
3584
3574
|
(ke > 0 || Rt > 0) && (z.current = !0);
|
|
@@ -3593,7 +3583,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3593
3583
|
return;
|
|
3594
3584
|
}
|
|
3595
3585
|
const ke = Math.abs(Q - k.current.x), Rt = Math.abs(ce - k.current.y);
|
|
3596
|
-
Rt >
|
|
3586
|
+
Rt > W && Rt > ke && f.current.go(ce < k.current.y ? "+1" : "-1"), k.current = null;
|
|
3597
3587
|
}, X = (Q) => {
|
|
3598
3588
|
k.current && Z(Q.clientX, Q.clientY), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("pointermove", J);
|
|
3599
3589
|
}, oe = (Q) => {
|
|
@@ -3613,22 +3603,22 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3613
3603
|
y.removeEventListener("pointerdown", ye), y.removeEventListener("touchstart", le), document.removeEventListener("pointermove", J), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("touchmove", te), document.removeEventListener("touchend", oe), document.removeEventListener("touchcancel", oe), k.current = null, z.current = !1;
|
|
3614
3604
|
};
|
|
3615
3605
|
}, [e, lt, u]);
|
|
3616
|
-
const
|
|
3617
|
-
backgroundColor:
|
|
3618
|
-
backdropFilter: `blur(${
|
|
3606
|
+
const xt = {
|
|
3607
|
+
backgroundColor: x.color,
|
|
3608
|
+
backdropFilter: `blur(${x.blur}px)`,
|
|
3619
3609
|
animationDuration: `${parseInt(H.duration)}ms`,
|
|
3620
3610
|
animationTimingFunction: "ease",
|
|
3621
3611
|
animationFillMode: "both"
|
|
3622
3612
|
};
|
|
3623
3613
|
return document.getElementById(a) ? jr(
|
|
3624
3614
|
/* @__PURE__ */ Ae(pt, { children: [
|
|
3625
|
-
/* @__PURE__ */
|
|
3615
|
+
/* @__PURE__ */ F(
|
|
3626
3616
|
"div",
|
|
3627
3617
|
{
|
|
3628
3618
|
ref: i ? null : I,
|
|
3629
3619
|
className: ae(D.background, m ? ee : ne, { [D.editor]: i }, { [D.hidden]: !e }),
|
|
3630
3620
|
style: {
|
|
3631
|
-
...
|
|
3621
|
+
...xt,
|
|
3632
3622
|
...c && !i && !m ? { position: "absolute" } : {}
|
|
3633
3623
|
}
|
|
3634
3624
|
}
|
|
@@ -3644,7 +3634,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3644
3634
|
animationFillMode: "both"
|
|
3645
3635
|
},
|
|
3646
3636
|
children: [
|
|
3647
|
-
/* @__PURE__ */
|
|
3637
|
+
/* @__PURE__ */ F(
|
|
3648
3638
|
zr,
|
|
3649
3639
|
{
|
|
3650
3640
|
onMove: (y) => d(y.index),
|
|
@@ -3666,7 +3656,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3666
3656
|
start: 0
|
|
3667
3657
|
},
|
|
3668
3658
|
style: { "--splide-speed": g.duration },
|
|
3669
|
-
children: t.map((y,
|
|
3659
|
+
children: t.map((y, W) => {
|
|
3670
3660
|
const Y = Nt(N.position, N.offset, i), J = `${U(N.padding.top, i)} ${U(N.padding.right, i)} ${U(N.padding.bottom, i)} ${U(N.padding.left, i)}`, te = g.type === "scale" ? (() => {
|
|
3671
3661
|
const { transform: Z, ...X } = Y;
|
|
3672
3662
|
return {
|
|
@@ -3677,10 +3667,10 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3677
3667
|
"--position-transform": Z || "none"
|
|
3678
3668
|
};
|
|
3679
3669
|
})() : { ...Y, position: "absolute", padding: J, boxSizing: "border-box" };
|
|
3680
|
-
return /* @__PURE__ */
|
|
3670
|
+
return /* @__PURE__ */ F(Mr, { children: /* @__PURE__ */ F("div", { className: D.imgWrapper, onClick: ie, children: /* @__PURE__ */ F(
|
|
3681
3671
|
"img",
|
|
3682
3672
|
{
|
|
3683
|
-
ref:
|
|
3673
|
+
ref: W === s ? V : null,
|
|
3684
3674
|
className: ae(D.imageStyle, {
|
|
3685
3675
|
[D.contain]: y.image.objectFit === "contain",
|
|
3686
3676
|
[D.cover]: y.image.objectFit === "cover",
|
|
@@ -3690,90 +3680,90 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3690
3680
|
alt: y.image.name ?? "",
|
|
3691
3681
|
style: { ...te, pointerEvents: y.image.objectFit === "contain" ? "none" : "auto" }
|
|
3692
3682
|
}
|
|
3693
|
-
) }) },
|
|
3683
|
+
) }) }, W);
|
|
3694
3684
|
})
|
|
3695
3685
|
},
|
|
3696
3686
|
u
|
|
3697
3687
|
),
|
|
3698
|
-
|
|
3699
|
-
/* @__PURE__ */
|
|
3688
|
+
L.isActive && /* @__PURE__ */ Ae(pt, { children: [
|
|
3689
|
+
/* @__PURE__ */ F(
|
|
3700
3690
|
"div",
|
|
3701
3691
|
{
|
|
3702
3692
|
className: ae(D.arrow, { [D.arrowVertical]: g.direction === "vert" }),
|
|
3703
|
-
style: { color:
|
|
3693
|
+
style: { color: L.color, "--arrow-hover-color": L.hover },
|
|
3704
3694
|
children: /* @__PURE__ */ Ae(
|
|
3705
3695
|
"button",
|
|
3706
3696
|
{
|
|
3707
3697
|
className: D.arrowInner,
|
|
3708
|
-
style: { transform: `translate(${U(
|
|
3698
|
+
style: { transform: `translate(${U(L.offset.x, i)}, ${U(L.offset.y * (g.direction === "horiz" ? 1 : -1), i)}) scale(${L.scale}) rotate(${g.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3709
3699
|
onClick: () => {
|
|
3710
3700
|
var y;
|
|
3711
3701
|
return (y = f.current) == null ? void 0 : y.go("-1");
|
|
3712
3702
|
},
|
|
3713
3703
|
"aria-label": "Previous",
|
|
3714
3704
|
children: [
|
|
3715
|
-
|
|
3705
|
+
L.arrowsImgUrl && /* @__PURE__ */ F(
|
|
3716
3706
|
dt,
|
|
3717
3707
|
{
|
|
3718
|
-
url:
|
|
3719
|
-
fill:
|
|
3720
|
-
hoverFill:
|
|
3708
|
+
url: L.arrowsImgUrl,
|
|
3709
|
+
fill: L.color,
|
|
3710
|
+
hoverFill: L.hover,
|
|
3721
3711
|
className: ae(D.arrowImg, D.mirror)
|
|
3722
3712
|
}
|
|
3723
3713
|
),
|
|
3724
|
-
!
|
|
3714
|
+
!L.arrowsImgUrl && /* @__PURE__ */ F(er, { color: L.color, className: ae(D.arrowIcon, D.arrowImg, D.mirror) })
|
|
3725
3715
|
]
|
|
3726
3716
|
}
|
|
3727
3717
|
)
|
|
3728
3718
|
}
|
|
3729
3719
|
),
|
|
3730
|
-
/* @__PURE__ */
|
|
3720
|
+
/* @__PURE__ */ F(
|
|
3731
3721
|
"div",
|
|
3732
3722
|
{
|
|
3733
3723
|
className: ae(D.arrow, D.nextArrow, { [D.arrowVertical]: g.direction === "vert" }),
|
|
3734
|
-
style: { color:
|
|
3724
|
+
style: { color: L.color, "--arrow-hover-color": L.hover },
|
|
3735
3725
|
children: /* @__PURE__ */ Ae(
|
|
3736
3726
|
"button",
|
|
3737
3727
|
{
|
|
3738
3728
|
className: D.arrowInner,
|
|
3739
|
-
style: { transform: `translate(${U(
|
|
3729
|
+
style: { transform: `translate(${U(L.offset.x * (g.direction === "horiz" ? -1 : 1), i)}, ${U(L.offset.y, i)}) scale(${L.scale}) rotate(${g.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3740
3730
|
onClick: () => {
|
|
3741
3731
|
var y;
|
|
3742
3732
|
return (y = f.current) == null ? void 0 : y.go("+1");
|
|
3743
3733
|
},
|
|
3744
3734
|
"aria-label": "Next",
|
|
3745
3735
|
children: [
|
|
3746
|
-
|
|
3736
|
+
L.arrowsImgUrl && /* @__PURE__ */ F(
|
|
3747
3737
|
dt,
|
|
3748
3738
|
{
|
|
3749
|
-
url:
|
|
3750
|
-
fill:
|
|
3751
|
-
hoverFill:
|
|
3739
|
+
url: L.arrowsImgUrl,
|
|
3740
|
+
fill: L.color,
|
|
3741
|
+
hoverFill: L.hover,
|
|
3752
3742
|
className: D.arrowImg
|
|
3753
3743
|
}
|
|
3754
3744
|
),
|
|
3755
|
-
!
|
|
3745
|
+
!L.arrowsImgUrl && /* @__PURE__ */ F(er, { color: L.color, className: ae(D.arrowIcon, D.arrowImg) })
|
|
3756
3746
|
]
|
|
3757
3747
|
}
|
|
3758
3748
|
)
|
|
3759
3749
|
}
|
|
3760
3750
|
)
|
|
3761
3751
|
] }),
|
|
3762
|
-
|
|
3763
|
-
const y = Nt(
|
|
3764
|
-
return /* @__PURE__ */
|
|
3752
|
+
x.closeIconUrl && (() => {
|
|
3753
|
+
const y = Nt(x.closeIconAlign, x.closeIconOffset, i), W = `scale(${x.closeIconScale})`, Y = y.transform ? `${y.transform} ${W}` : W;
|
|
3754
|
+
return /* @__PURE__ */ F("button", { className: D.closeButton, style: { ...y, transform: Y }, onClick: q, "aria-label": "Close lightbox", children: /* @__PURE__ */ F(dt, { url: x.closeIconUrl, fill: x.closeIconColor ?? "#000000", hoverFill: x.closeIconHover ?? "#cccccc" }) });
|
|
3765
3755
|
})(),
|
|
3766
|
-
_ && _.isActive && r.imageCaption && ((
|
|
3767
|
-
const { widthSettings: y, fontSettings:
|
|
3768
|
-
return /* @__PURE__ */
|
|
3756
|
+
_ && _.isActive && r.imageCaption && ((M = t[s]) == null ? void 0 : M.imageCaption) && (() => {
|
|
3757
|
+
const { widthSettings: y, fontSettings: W, letterSpacing: Y, textAlign: J, wordSpacing: te, fontSizeLineHeight: Z, textAppearance: X, color: oe } = r.imageCaption;
|
|
3758
|
+
return /* @__PURE__ */ F(
|
|
3769
3759
|
"div",
|
|
3770
3760
|
{
|
|
3771
3761
|
className: D.caption,
|
|
3772
3762
|
style: {
|
|
3773
3763
|
...Nt(_.alignment, _.offset, i),
|
|
3774
|
-
fontFamily:
|
|
3775
|
-
fontWeight:
|
|
3776
|
-
fontStyle:
|
|
3764
|
+
fontFamily: W.fontFamily,
|
|
3765
|
+
fontWeight: W.fontWeight,
|
|
3766
|
+
fontStyle: W.fontStyle,
|
|
3777
3767
|
width: y.sizing === "auto" ? "max-content" : U(y.width, i),
|
|
3778
3768
|
letterSpacing: U(Y, i),
|
|
3779
3769
|
wordSpacing: U(te, i),
|
|
@@ -3786,7 +3776,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3786
3776
|
color: oe
|
|
3787
3777
|
},
|
|
3788
3778
|
onClick: (ye) => ye.stopPropagation(),
|
|
3789
|
-
children: /* @__PURE__ */
|
|
3779
|
+
children: /* @__PURE__ */ F(
|
|
3790
3780
|
"div",
|
|
3791
3781
|
{
|
|
3792
3782
|
"data-styles": "imageCaption",
|
|
@@ -3795,18 +3785,18 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3795
3785
|
"--link-color": _.linkColor,
|
|
3796
3786
|
"--link-hover-color": _.linkHoverColor
|
|
3797
3787
|
},
|
|
3798
|
-
children: /* @__PURE__ */
|
|
3788
|
+
children: /* @__PURE__ */ F(Fr, { content: t[s].imageCaption })
|
|
3799
3789
|
}
|
|
3800
3790
|
)
|
|
3801
3791
|
}
|
|
3802
3792
|
);
|
|
3803
3793
|
})(),
|
|
3804
3794
|
R.isActive && (() => {
|
|
3805
|
-
const [y,
|
|
3795
|
+
const [y, W] = R.position.split("-"), Y = g.direction === "horiz" ? `${y}-left` : R.position, J = Nt(Y, R.offset, i), te = () => {
|
|
3806
3796
|
if (g.direction === "horiz") {
|
|
3807
|
-
if (
|
|
3808
|
-
if (
|
|
3809
|
-
if (
|
|
3797
|
+
if (W === "left") return "flex-start";
|
|
3798
|
+
if (W === "center") return "center";
|
|
3799
|
+
if (W === "right") return "flex-end";
|
|
3810
3800
|
} else {
|
|
3811
3801
|
if (y === "top") return "flex-start";
|
|
3812
3802
|
if (y === "middle") return "center";
|
|
@@ -3814,7 +3804,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3814
3804
|
}
|
|
3815
3805
|
return "flex-start";
|
|
3816
3806
|
};
|
|
3817
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ F(
|
|
3818
3808
|
"div",
|
|
3819
3809
|
{
|
|
3820
3810
|
ref: T,
|
|
@@ -3834,7 +3824,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3834
3824
|
overflowX: "hidden"
|
|
3835
3825
|
}
|
|
3836
3826
|
},
|
|
3837
|
-
children: /* @__PURE__ */
|
|
3827
|
+
children: /* @__PURE__ */ F(
|
|
3838
3828
|
"div",
|
|
3839
3829
|
{
|
|
3840
3830
|
className: ae(D.thumbsContainer, {
|
|
@@ -3867,7 +3857,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3867
3857
|
};
|
|
3868
3858
|
}
|
|
3869
3859
|
};
|
|
3870
|
-
return /* @__PURE__ */
|
|
3860
|
+
return /* @__PURE__ */ F(
|
|
3871
3861
|
"button",
|
|
3872
3862
|
{
|
|
3873
3863
|
className: D.thumbItem,
|
|
@@ -3888,7 +3878,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3888
3878
|
var Q;
|
|
3889
3879
|
R.triggers === "hov" && ((Q = f.current) == null || Q.go(X));
|
|
3890
3880
|
},
|
|
3891
|
-
children: /* @__PURE__ */
|
|
3881
|
+
children: /* @__PURE__ */ F(
|
|
3892
3882
|
"img",
|
|
3893
3883
|
{
|
|
3894
3884
|
src: Z.image.url,
|
|
@@ -3924,7 +3914,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3924
3914
|
) : null;
|
|
3925
3915
|
};
|
|
3926
3916
|
function er({ color: e, className: n }) {
|
|
3927
|
-
return /* @__PURE__ */
|
|
3917
|
+
return /* @__PURE__ */ F("svg", { viewBox: "0 0 10 18", className: n, children: /* @__PURE__ */ F("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ F("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3928
3918
|
}
|
|
3929
3919
|
const Ha = {
|
|
3930
3920
|
element: ja,
|
|
@@ -4791,8 +4781,7 @@ const Ha = {
|
|
|
4791
4781
|
layoutBased: !1,
|
|
4792
4782
|
type: "array",
|
|
4793
4783
|
settings: {
|
|
4794
|
-
addItemFromFileExplorer: !0
|
|
4795
|
-
defaultWidth: 500
|
|
4784
|
+
addItemFromFileExplorer: !0
|
|
4796
4785
|
},
|
|
4797
4786
|
items: {
|
|
4798
4787
|
type: "object",
|
|
@@ -4801,9 +4790,7 @@ const Ha = {
|
|
|
4801
4790
|
type: "object",
|
|
4802
4791
|
label: "Image",
|
|
4803
4792
|
display: {
|
|
4804
|
-
type: "media-input"
|
|
4805
|
-
minWidth: 58,
|
|
4806
|
-
maxWidth: 108
|
|
4793
|
+
type: "media-input"
|
|
4807
4794
|
},
|
|
4808
4795
|
properties: {
|
|
4809
4796
|
url: {
|
|
@@ -4823,9 +4810,7 @@ const Ha = {
|
|
|
4823
4810
|
label: "Description",
|
|
4824
4811
|
placeholder: "Add Caption...",
|
|
4825
4812
|
display: {
|
|
4826
|
-
type: "rich-text"
|
|
4827
|
-
minWidth: 300,
|
|
4828
|
-
maxWidth: 550
|
|
4813
|
+
type: "rich-text"
|
|
4829
4814
|
}
|
|
4830
4815
|
}
|
|
4831
4816
|
},
|