@cntrl-site/components 0.1.27 → 0.1.28
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 +3 -2
- package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +11 -2
- package/dist/Components/ImageRevealSlider/ImageRevealSlider.d.ts +1 -1
- package/dist/Components/Lightbox/Lightbox.d.ts +3 -2
- package/dist/components.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +507 -485
- package/package.json +72 -72
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as M, Fragment as pt, jsxs as Ae } from "react/jsx-runtime";
|
|
|
2
2
|
import Ue, { useState as ue, useEffect as me, useRef as be, useCallback as Vr } 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",
|
|
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", li = "ControlSlider-module__paginationInsideTop___V-qb-", si = "ControlSlider-module__paginationOutsideBottom___14w8D", ci = "ControlSlider-module__paginationOutsideTop___SCLqB", ui = "ControlSlider-module__paginationInsideLeft___yOBRZ", di = "ControlSlider-module__paginationInsideRight___Rtt3o", pi = "ControlSlider-module__paginationOutsideLeft___lahaw", fi = "ControlSlider-module__paginationOutsideRight___EtuQa", gi = "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-", xi = "ControlSlider-module__bottomCenterAlignment___c54fB", Li = "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,
|
|
@@ -21,8 +21,8 @@ const $r = "ControlSlider-module__wrapper___sHEkd", Hr = "ControlSlider-module__
|
|
|
21
21
|
dot: ii,
|
|
22
22
|
activeDot: oi,
|
|
23
23
|
paginationInsideBottom: ai,
|
|
24
|
-
paginationInsideTop:
|
|
25
|
-
paginationOutsideBottom:
|
|
24
|
+
paginationInsideTop: li,
|
|
25
|
+
paginationOutsideBottom: si,
|
|
26
26
|
paginationOutsideTop: ci,
|
|
27
27
|
paginationInsideLeft: ui,
|
|
28
28
|
paginationInsideRight: di,
|
|
@@ -37,24 +37,24 @@ const $r = "ControlSlider-module__wrapper___sHEkd", Hr = "ControlSlider-module__
|
|
|
37
37
|
topLeftAlignment: bi,
|
|
38
38
|
topCenterAlignment: Si,
|
|
39
39
|
topRightAlignment: wi,
|
|
40
|
-
middleLeftAlignment:
|
|
41
|
-
middleCenterAlignment:
|
|
40
|
+
middleLeftAlignment: Ci,
|
|
41
|
+
middleCenterAlignment: Ei,
|
|
42
42
|
middleRightAlignment: Ai,
|
|
43
43
|
bottomLeftAlignment: Ii,
|
|
44
44
|
bottomCenterAlignment: xi,
|
|
45
45
|
bottomRightAlignment: Li,
|
|
46
46
|
clickOverlay: Ti,
|
|
47
47
|
contain: Ri,
|
|
48
|
-
cover:
|
|
48
|
+
cover: ki
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function Ni(e, n) {
|
|
51
51
|
for (var t = 0; t < n.length; t++) {
|
|
52
52
|
var r = n[t];
|
|
53
53
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
function Oi(e, n, t) {
|
|
57
|
-
return n &&
|
|
57
|
+
return n && Ni(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
58
58
|
}
|
|
59
59
|
var Dn = "(prefers-reduced-motion: reduce)", Qe = 1, Di = 2, nt = 3, ot = 4, bt = 5, Ot = 6, zt = 7, Pi = {
|
|
60
60
|
CREATED: Qe,
|
|
@@ -99,7 +99,7 @@ function rr(e) {
|
|
|
99
99
|
function wt(e) {
|
|
100
100
|
return gn(e) ? e : [e];
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ce(e, n) {
|
|
103
103
|
wt(e).forEach(n);
|
|
104
104
|
}
|
|
105
105
|
function hn(e, n) {
|
|
@@ -109,18 +109,18 @@ function Dt(e, n) {
|
|
|
109
109
|
return e.push.apply(e, wt(n)), e;
|
|
110
110
|
}
|
|
111
111
|
function Oe(e, n, t) {
|
|
112
|
-
e &&
|
|
112
|
+
e && Ce(n, function(r) {
|
|
113
113
|
r && e.classList[t ? "add" : "remove"](r);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
function Le(e, n) {
|
|
117
117
|
Oe(e, Me(n) ? n.split(" ") : n, !0);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Ct(e, n) {
|
|
120
|
+
Ce(n, e.appendChild.bind(e));
|
|
121
121
|
}
|
|
122
122
|
function vn(e, n) {
|
|
123
|
-
|
|
123
|
+
Ce(e, function(t) {
|
|
124
124
|
var r = (n || t).parentNode;
|
|
125
125
|
r && r.insertBefore(t, n);
|
|
126
126
|
});
|
|
@@ -134,7 +134,7 @@ function ir(e, n) {
|
|
|
134
134
|
return gt(r, n);
|
|
135
135
|
}) : t;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Et(e, n) {
|
|
138
138
|
return n ? ir(e, n)[0] : e.firstElementChild;
|
|
139
139
|
}
|
|
140
140
|
var mt = Object.keys;
|
|
@@ -158,13 +158,13 @@ function We(e) {
|
|
|
158
158
|
}), e;
|
|
159
159
|
}
|
|
160
160
|
function Bn(e, n) {
|
|
161
|
-
|
|
161
|
+
Ce(n || mt(e), function(t) {
|
|
162
162
|
delete e[t];
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function Te(e, n) {
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
Ce(e, function(t) {
|
|
167
|
+
Ce(n, function(r) {
|
|
168
168
|
t && t.removeAttribute(r);
|
|
169
169
|
});
|
|
170
170
|
});
|
|
@@ -172,21 +172,21 @@ function Te(e, n) {
|
|
|
172
172
|
function K(e, n, t) {
|
|
173
173
|
ft(n) ? Ye(n, function(r, o) {
|
|
174
174
|
K(e, o, r);
|
|
175
|
-
}) :
|
|
175
|
+
}) : Ce(e, function(r) {
|
|
176
176
|
mn(t) || t === "" ? Te(r, n) : r.setAttribute(n, String(t));
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function et(e, n, t) {
|
|
180
180
|
var r = document.createElement(e);
|
|
181
|
-
return n && (Me(n) ? Le(r, n) : K(r, n)), t &&
|
|
181
|
+
return n && (Me(n) ? Le(r, n) : K(r, n)), t && Ct(t, r), r;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Ee(e, n, t) {
|
|
184
184
|
if (St(t))
|
|
185
185
|
return getComputedStyle(e)[n];
|
|
186
186
|
mn(t) || (e.style[n] = "" + t);
|
|
187
187
|
}
|
|
188
188
|
function vt(e, n) {
|
|
189
|
-
|
|
189
|
+
Ee(e, "display", n);
|
|
190
190
|
}
|
|
191
191
|
function or(e) {
|
|
192
192
|
e.setActive && e.setActive() || e.focus({
|
|
@@ -203,17 +203,17 @@ function Se(e) {
|
|
|
203
203
|
return e.getBoundingClientRect();
|
|
204
204
|
}
|
|
205
205
|
function Ge(e) {
|
|
206
|
-
|
|
206
|
+
Ce(e, function(n) {
|
|
207
207
|
n && n.parentNode && n.parentNode.removeChild(n);
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
function ar(e) {
|
|
211
|
-
return
|
|
211
|
+
return Et(new DOMParser().parseFromString(e, "text/html").body);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function Ne(e, n) {
|
|
214
214
|
e.preventDefault(), n && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function lr(e, n) {
|
|
217
217
|
return e && e.querySelector(n);
|
|
218
218
|
}
|
|
219
219
|
function yn(e, n) {
|
|
@@ -234,7 +234,7 @@ function ct(e, n) {
|
|
|
234
234
|
throw new Error("[" + At + "] " + (n || ""));
|
|
235
235
|
}
|
|
236
236
|
var Fe = Math.min, Wt = Math.max, Mt = Math.floor, yt = Math.ceil, _e = Math.abs;
|
|
237
|
-
function
|
|
237
|
+
function sr(e, n, t) {
|
|
238
238
|
return _e(e - n) < t;
|
|
239
239
|
}
|
|
240
240
|
function Pt(e, n, t, r) {
|
|
@@ -245,11 +245,11 @@ function Je(e, n, t) {
|
|
|
245
245
|
var r = Fe(n, t), o = Wt(n, t);
|
|
246
246
|
return Fe(Wt(r, e), o);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ln(e) {
|
|
249
249
|
return +(e > 0) - +(e < 0);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
return
|
|
251
|
+
function sn(e, n) {
|
|
252
|
+
return Ce(n, function(t) {
|
|
253
253
|
e = e.replace("%s", "" + t);
|
|
254
254
|
}), e;
|
|
255
255
|
}
|
|
@@ -262,32 +262,32 @@ function Bi(e) {
|
|
|
262
262
|
}
|
|
263
263
|
function cr() {
|
|
264
264
|
var e = [];
|
|
265
|
-
function n(i,
|
|
266
|
-
o(i,
|
|
267
|
-
var v = "addEventListener" in u, c = v ? u.removeEventListener.bind(u, S,
|
|
268
|
-
v ? u.addEventListener(S,
|
|
265
|
+
function n(i, s, l, d) {
|
|
266
|
+
o(i, s, function(u, S, m) {
|
|
267
|
+
var v = "addEventListener" in u, c = v ? u.removeEventListener.bind(u, S, l, d) : u.removeListener.bind(u, l);
|
|
268
|
+
v ? u.addEventListener(S, l, d) : u.addListener(l), e.push([u, S, m, l, c]);
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
function t(i,
|
|
272
|
-
o(i,
|
|
271
|
+
function t(i, s, l) {
|
|
272
|
+
o(i, s, function(d, u, S) {
|
|
273
273
|
e = e.filter(function(m) {
|
|
274
|
-
return m[0] === d && m[1] === u && m[2] === S && (!
|
|
274
|
+
return m[0] === d && m[1] === u && m[2] === S && (!l || m[3] === l) ? (m[4](), !1) : !0;
|
|
275
275
|
});
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
|
-
function r(i,
|
|
278
|
+
function r(i, s, l) {
|
|
279
279
|
var d, u = !0;
|
|
280
|
-
return typeof CustomEvent == "function" ? d = new CustomEvent(
|
|
280
|
+
return typeof CustomEvent == "function" ? d = new CustomEvent(s, {
|
|
281
281
|
bubbles: u,
|
|
282
|
-
detail:
|
|
283
|
-
}) : (d = document.createEvent("CustomEvent"), d.initCustomEvent(
|
|
282
|
+
detail: l
|
|
283
|
+
}) : (d = document.createEvent("CustomEvent"), d.initCustomEvent(s, u, !1, l)), i.dispatchEvent(d), d;
|
|
284
284
|
}
|
|
285
|
-
function o(i,
|
|
286
|
-
|
|
287
|
-
d &&
|
|
285
|
+
function o(i, s, l) {
|
|
286
|
+
Ce(i, function(d) {
|
|
287
|
+
d && Ce(s, function(u) {
|
|
288
288
|
u.split(" ").forEach(function(S) {
|
|
289
289
|
var m = S.split(".");
|
|
290
|
-
|
|
290
|
+
l(d, m[0], m[1]);
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
});
|
|
@@ -304,12 +304,12 @@ 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", fr = "hidden", de = "refresh", ve = "updated", rt = "resize", $t = "resized", gr = "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",
|
|
308
|
-
function
|
|
307
|
+
var je = "mounted", cn = "ready", ze = "move", at = "moved", Sn = "click", ur = "active", dr = "inactive", pr = "visible", fr = "hidden", de = "refresh", ve = "updated", rt = "resize", $t = "resized", gr = "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", Ft = "ei";
|
|
308
|
+
function le(e) {
|
|
309
309
|
var n = e ? e.event.bus : document.createDocumentFragment(), t = cr();
|
|
310
310
|
function r(a, i) {
|
|
311
|
-
t.bind(n, wt(a).join(" "), function(
|
|
312
|
-
i.apply(i, gn(
|
|
311
|
+
t.bind(n, wt(a).join(" "), function(s) {
|
|
312
|
+
i.apply(i, gn(s.detail) ? s.detail : []);
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
function o(a) {
|
|
@@ -323,31 +323,31 @@ function se(e) {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
function Ut(e, n, t, r) {
|
|
326
|
-
var o = Date.now, a, i = 0,
|
|
326
|
+
var o = Date.now, a, i = 0, s, l = !0, d = 0;
|
|
327
327
|
function u() {
|
|
328
|
-
if (!
|
|
328
|
+
if (!l) {
|
|
329
329
|
if (i = e ? Fe((o() - a) / e, 1) : 1, t && t(i), i >= 1 && (n(), a = o(), r && ++d >= r))
|
|
330
330
|
return m();
|
|
331
|
-
|
|
331
|
+
s = Pn(u);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
function S(
|
|
335
|
-
|
|
334
|
+
function S(C) {
|
|
335
|
+
C || c(), a = o() - (C ? i * e : 0), l = !1, s = Pn(u);
|
|
336
336
|
}
|
|
337
337
|
function m() {
|
|
338
|
-
|
|
338
|
+
l = !0;
|
|
339
339
|
}
|
|
340
340
|
function v() {
|
|
341
341
|
a = o(), i = 0, t && t(i);
|
|
342
342
|
}
|
|
343
343
|
function c() {
|
|
344
|
-
|
|
344
|
+
s && cancelAnimationFrame(s), i = 0, s = 0, l = !0;
|
|
345
345
|
}
|
|
346
|
-
function p(
|
|
347
|
-
e =
|
|
346
|
+
function p(C) {
|
|
347
|
+
e = C;
|
|
348
348
|
}
|
|
349
349
|
function w() {
|
|
350
|
-
return
|
|
350
|
+
return l;
|
|
351
351
|
}
|
|
352
352
|
return {
|
|
353
353
|
start: S,
|
|
@@ -378,8 +378,8 @@ function Mi(e, n) {
|
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
380
|
function Fi(e, n, t) {
|
|
381
|
-
var r = e.state, o = t.breakpoints || {}, a = t.reducedMotion || {}, i = cr(),
|
|
382
|
-
function
|
|
381
|
+
var r = e.state, o = t.breakpoints || {}, a = t.reducedMotion || {}, i = cr(), s = [];
|
|
382
|
+
function l() {
|
|
383
383
|
var c = t.mediaQuery === "min";
|
|
384
384
|
mt(o).sort(function(p, w) {
|
|
385
385
|
return c ? +p - +w : +w - +p;
|
|
@@ -392,11 +392,11 @@ function Fi(e, n, t) {
|
|
|
392
392
|
}
|
|
393
393
|
function u(c, p) {
|
|
394
394
|
var w = matchMedia(p);
|
|
395
|
-
i.bind(w, "change", S),
|
|
395
|
+
i.bind(w, "change", S), s.push([c, w]);
|
|
396
396
|
}
|
|
397
397
|
function S() {
|
|
398
|
-
var c = r.is(zt), p = t.direction, w =
|
|
399
|
-
return We(
|
|
398
|
+
var c = r.is(zt), p = t.direction, w = s.reduce(function(C, g) {
|
|
399
|
+
return We(C, g[1].matches ? g[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
|
}
|
|
@@ -407,28 +407,28 @@ function Fi(e, n, t) {
|
|
|
407
407
|
We(t, c), p && We(Object.getPrototypeOf(t), c), (w || !r.is(Qe)) && e.emit(ve, t);
|
|
408
408
|
}
|
|
409
409
|
return {
|
|
410
|
-
setup:
|
|
410
|
+
setup: l,
|
|
411
411
|
destroy: d,
|
|
412
412
|
reduce: m,
|
|
413
413
|
set: v
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
var Yt = "Arrow", Gt = Yt + "Left", Xt = Yt + "Right",
|
|
416
|
+
var Yt = "Arrow", Gt = Yt + "Left", Xt = Yt + "Right", Er = Yt + "Up", Ar = Yt + "Down", Mn = "rtl", Kt = "ttb", Qt = {
|
|
417
417
|
width: ["height"],
|
|
418
418
|
left: ["top", "right"],
|
|
419
419
|
right: ["bottom", "left"],
|
|
420
420
|
x: ["y"],
|
|
421
421
|
X: ["Y"],
|
|
422
422
|
Y: ["X"],
|
|
423
|
-
ArrowLeft: [
|
|
423
|
+
ArrowLeft: [Er, Xt],
|
|
424
424
|
ArrowRight: [Ar, Gt]
|
|
425
425
|
};
|
|
426
426
|
function Vi(e, n, t) {
|
|
427
|
-
function r(a, i,
|
|
428
|
-
|
|
429
|
-
var
|
|
430
|
-
return Qt[a] && Qt[a][
|
|
431
|
-
var S = Qt[d.toLowerCase()][
|
|
427
|
+
function r(a, i, s) {
|
|
428
|
+
s = s || t.direction;
|
|
429
|
+
var l = s === Mn && !i ? 1 : s === Kt ? 0 : -1;
|
|
430
|
+
return Qt[a] && Qt[a][l] || a.replace(/width|left|right/i, function(d, u) {
|
|
431
|
+
var S = Qt[d.toLowerCase()][l] || d;
|
|
432
432
|
return u > 0 ? S.charAt(0).toUpperCase() + S.slice(1) : S;
|
|
433
433
|
});
|
|
434
434
|
}
|
|
@@ -440,7 +440,7 @@ function Vi(e, n, t) {
|
|
|
440
440
|
orient: o
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
var Pe = "role", tt = "tabindex", ji = "disabled", xe = "aria-", It = xe + "controls", Ir = xe + "current", Fn = xe + "selected", we = xe + "label", xn = xe + "labelledby", xr = xe + "hidden", Ln = xe + "orientation", _t = xe + "roledescription", Vn = xe + "live", jn = xe + "busy", $n = xe + "atomic", Tn = [Pe, tt, ji, It, Ir, we, xn, xr, Ln, _t], Re = At + "__", $e = "is-", en = At, Hn = Re + "track", $i = Re + "list", qt = Re + "slide", Lr = qt + "--clone", Hi = qt + "__container", Rn = Re + "arrows", Jt = Re + "arrow", Tr = Jt + "--prev", Rr = Jt + "--next", Zt = Re + "pagination",
|
|
443
|
+
var Pe = "role", tt = "tabindex", ji = "disabled", xe = "aria-", It = xe + "controls", Ir = xe + "current", Fn = xe + "selected", we = xe + "label", xn = xe + "labelledby", xr = xe + "hidden", Ln = xe + "orientation", _t = xe + "roledescription", Vn = xe + "live", jn = xe + "busy", $n = xe + "atomic", Tn = [Pe, tt, ji, It, Ir, we, xn, xr, Ln, _t], Re = At + "__", $e = "is-", en = At, Hn = Re + "track", $i = Re + "list", qt = Re + "slide", Lr = 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
445
|
clone: Lr,
|
|
446
446
|
arrows: Rn,
|
|
@@ -448,7 +448,7 @@ var Pe = "role", tt = "tabindex", ji = "disabled", xe = "aria-", It = xe + "cont
|
|
|
448
448
|
prev: Tr,
|
|
449
449
|
next: Rr,
|
|
450
450
|
pagination: Zt,
|
|
451
|
-
page:
|
|
451
|
+
page: kr,
|
|
452
452
|
spinner: Xi
|
|
453
453
|
};
|
|
454
454
|
function Qi(e, n) {
|
|
@@ -460,12 +460,12 @@ function Qi(e, n) {
|
|
|
460
460
|
}
|
|
461
461
|
var eo = 5, Un = 200, Br = "touchstart mousedown", tn = "touchmove mousemove", nn = "touchend touchcancel mouseup click";
|
|
462
462
|
function to(e, n, t) {
|
|
463
|
-
var r =
|
|
463
|
+
var r = le(e), o = r.on, a = r.bind, i = e.root, s = t.i18n, l = {}, d = [], u = [], S = [], m, v, c;
|
|
464
464
|
function p() {
|
|
465
465
|
b(), F(), g();
|
|
466
466
|
}
|
|
467
467
|
function w() {
|
|
468
|
-
o(de,
|
|
468
|
+
o(de, C), o(de, p), o(ve, g), a(document, Br + " keydown", function(h) {
|
|
469
469
|
c = h.type === "keydown";
|
|
470
470
|
}, {
|
|
471
471
|
capture: !0
|
|
@@ -473,24 +473,24 @@ function to(e, n, t) {
|
|
|
473
473
|
Oe(i, Dr, !!c);
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
var
|
|
478
|
-
Be(d), De(i, u), De(m, S), Te([m, v],
|
|
476
|
+
function C(h) {
|
|
477
|
+
var E = Tn.concat("style");
|
|
478
|
+
Be(d), De(i, u), De(m, S), Te([m, v], E), Te(i, h ? E : ["style", _t]);
|
|
479
479
|
}
|
|
480
480
|
function g() {
|
|
481
481
|
De(i, u), De(m, S), u = I(en), S = I(Hn), Le(i, u), Le(m, S), K(i, we, t.label), K(i, xn, t.labelledby);
|
|
482
482
|
}
|
|
483
483
|
function b() {
|
|
484
|
-
m = B("." + Hn), v =
|
|
484
|
+
m = B("." + Hn), v = Et(m, "." + $i), ct(m && v, "A track/list element is missing."), Dt(d, ir(v, "." + qt + ":not(." + Lr + ")")), Ye({
|
|
485
485
|
arrows: Rn,
|
|
486
486
|
pagination: Zt,
|
|
487
487
|
prev: Tr,
|
|
488
488
|
next: Rr,
|
|
489
489
|
bar: Yi,
|
|
490
490
|
toggle: Gi
|
|
491
|
-
}, function(h,
|
|
492
|
-
|
|
493
|
-
}), ht(
|
|
491
|
+
}, function(h, E) {
|
|
492
|
+
l[E] = B("." + h);
|
|
493
|
+
}), ht(l, {
|
|
494
494
|
root: i,
|
|
495
495
|
track: m,
|
|
496
496
|
list: v,
|
|
@@ -498,40 +498,40 @@ function to(e, n, t) {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
function F() {
|
|
501
|
-
var h = i.id || Bi(At),
|
|
502
|
-
i.id = h, m.id = m.id || h + "-track", v.id = v.id || h + "-list", !Ie(i, Pe) && i.tagName !== "SECTION" &&
|
|
501
|
+
var h = i.id || Bi(At), E = t.role;
|
|
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, s.carousel), K(v, Pe, "presentation");
|
|
503
503
|
}
|
|
504
504
|
function B(h) {
|
|
505
|
-
var
|
|
506
|
-
return
|
|
505
|
+
var E = lr(i, h);
|
|
506
|
+
return E && Qi(E, "." + en) === i ? E : void 0;
|
|
507
507
|
}
|
|
508
508
|
function I(h) {
|
|
509
509
|
return [h + "--" + t.type, h + "--" + t.direction, t.drag && h + "--draggable", t.isNavigation && h + "--nav", h === en && Xe];
|
|
510
510
|
}
|
|
511
|
-
return ht(
|
|
511
|
+
return ht(l, {
|
|
512
512
|
setup: p,
|
|
513
513
|
mount: w,
|
|
514
|
-
destroy:
|
|
514
|
+
destroy: C
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
var it = "slide",
|
|
517
|
+
var it = "slide", lt = "loop", xt = "fade";
|
|
518
518
|
function no(e, n, t, r) {
|
|
519
|
-
var o =
|
|
519
|
+
var o = le(e), a = o.on, i = o.emit, s = o.bind, l = e.Components, d = e.root, u = e.options, S = u.isNavigation, m = u.updateOnMove, v = u.i18n, c = u.pagination, p = u.slideFocus, w = l.Direction.resolve, C = Ie(r, "style"), g = Ie(r, we), b = t > -1, F = Et(r, "." + Hi), B;
|
|
520
520
|
function I() {
|
|
521
|
-
b || (r.id = d.id + "-slide" + bn(n + 1), K(r, Pe, c ? "tabpanel" : "group"), K(r, _t, v.slide), K(r, we, g ||
|
|
521
|
+
b || (r.id = d.id + "-slide" + bn(n + 1), K(r, Pe, c ? "tabpanel" : "group"), K(r, _t, v.slide), K(r, we, g || sn(v.slideLabel, [n + 1, e.length]))), h();
|
|
522
522
|
}
|
|
523
523
|
function h() {
|
|
524
|
-
|
|
524
|
+
s(r, "click", re(i, Sn, x)), s(r, "keydown", re(i, wr, x)), a([at, Cr, Ke], T), a(Cn, k), m && a(ze, z);
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
B = !0, o.destroy(), De(r, Ji), Te(r, Tn), K(r, "style",
|
|
526
|
+
function E() {
|
|
527
|
+
B = !0, o.destroy(), De(r, Ji), Te(r, Tn), K(r, "style", C), K(r, we, g || "");
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function k() {
|
|
530
530
|
var L = e.splides.map(function(_) {
|
|
531
|
-
var
|
|
532
|
-
return
|
|
531
|
+
var N = _.splide.Components.Slides.getAt(n);
|
|
532
|
+
return N ? N.slide.id : "";
|
|
533
533
|
}).join(" ");
|
|
534
|
-
K(r, we,
|
|
534
|
+
K(r, we, sn(v.slideX, (b ? t : n) + 1)), K(r, It, L), K(r, Pe, p ? "button" : ""), p && Te(r, _t);
|
|
535
535
|
}
|
|
536
536
|
function z() {
|
|
537
537
|
B || T();
|
|
@@ -539,7 +539,7 @@ function no(e, n, t, r) {
|
|
|
539
539
|
function T() {
|
|
540
540
|
if (!B) {
|
|
541
541
|
var L = e.index;
|
|
542
|
-
O(), P(), Oe(r,
|
|
542
|
+
O(), P(), Oe(r, Nr, n === L - 1), Oe(r, Or, n === L + 1);
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
function O() {
|
|
@@ -549,12 +549,12 @@ function no(e, n, t, r) {
|
|
|
549
549
|
function P() {
|
|
550
550
|
var L = f(), _ = !L && (!$() || b);
|
|
551
551
|
if (e.state.is([ot, bt]) || K(r, xr, _ || ""), K(yn(r, u.focusableNodes || ""), tt, _ ? -1 : ""), p && K(r, tt, _ ? -1 : 0), L !== zn(r, un) && (Oe(r, un, L), i(L ? pr : fr, x)), !L && document.activeElement === r) {
|
|
552
|
-
var
|
|
553
|
-
|
|
552
|
+
var N = l.Slides.getAt(e.index);
|
|
553
|
+
N && or(N.slide);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function H(L, _,
|
|
557
|
-
|
|
556
|
+
function H(L, _, N) {
|
|
557
|
+
Ee(N && F || r, L, _);
|
|
558
558
|
}
|
|
559
559
|
function $() {
|
|
560
560
|
var L = e.index;
|
|
@@ -563,12 +563,12 @@ function no(e, n, t, r) {
|
|
|
563
563
|
function f() {
|
|
564
564
|
if (e.is(xt))
|
|
565
565
|
return $();
|
|
566
|
-
var L = Se(
|
|
567
|
-
return Mt(L[
|
|
566
|
+
var L = Se(l.Elements.track), _ = Se(r), N = w("left", !0), G = w("right", !0);
|
|
567
|
+
return Mt(L[N]) <= yt(_[N]) && Mt(_[G]) <= yt(L[G]);
|
|
568
568
|
}
|
|
569
569
|
function R(L, _) {
|
|
570
|
-
var
|
|
571
|
-
return !b && (u.rewind || e.is(
|
|
570
|
+
var N = _e(L - n);
|
|
571
|
+
return !b && (u.rewind || e.is(lt)) && (N = Fe(N, e.length - N)), N <= _;
|
|
572
572
|
}
|
|
573
573
|
var x = {
|
|
574
574
|
index: n,
|
|
@@ -577,7 +577,7 @@ function no(e, n, t, r) {
|
|
|
577
577
|
container: F,
|
|
578
578
|
isClone: b,
|
|
579
579
|
mount: I,
|
|
580
|
-
destroy:
|
|
580
|
+
destroy: E,
|
|
581
581
|
update: T,
|
|
582
582
|
style: H,
|
|
583
583
|
isWithin: R
|
|
@@ -585,12 +585,12 @@ function no(e, n, t, r) {
|
|
|
585
585
|
return x;
|
|
586
586
|
}
|
|
587
587
|
function ro(e, n, t) {
|
|
588
|
-
var r =
|
|
588
|
+
var r = le(e), o = r.on, a = r.emit, i = r.bind, s = n.Elements, l = s.slides, d = s.list, u = [];
|
|
589
589
|
function S() {
|
|
590
590
|
m(), o(de, v), o(de, m);
|
|
591
591
|
}
|
|
592
592
|
function m() {
|
|
593
|
-
|
|
593
|
+
l.forEach(function(T, O) {
|
|
594
594
|
p(T, O, -1);
|
|
595
595
|
});
|
|
596
596
|
}
|
|
@@ -615,7 +615,7 @@ function ro(e, n, t) {
|
|
|
615
615
|
return !O.isClone;
|
|
616
616
|
}) : u;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function C(T) {
|
|
619
619
|
var O = n.Controller, P = O.toIndex(T), H = O.hasFocus() ? 1 : t.perPage;
|
|
620
620
|
return I(function($) {
|
|
621
621
|
return Pt($.index, P, P + H - 1);
|
|
@@ -625,10 +625,10 @@ function ro(e, n, t) {
|
|
|
625
625
|
return I(T)[0];
|
|
626
626
|
}
|
|
627
627
|
function b(T, O) {
|
|
628
|
-
|
|
628
|
+
Ce(T, function(P) {
|
|
629
629
|
if (Me(P) && (P = ar(P)), rr(P)) {
|
|
630
|
-
var H =
|
|
631
|
-
H ? vn(P, H) :
|
|
630
|
+
var H = l[O];
|
|
631
|
+
H ? vn(P, H) : Ct(d, P), Le(P, t.classes.slide), E(P, re(a, rt));
|
|
632
632
|
}
|
|
633
633
|
}), a(de);
|
|
634
634
|
}
|
|
@@ -650,7 +650,7 @@ function ro(e, n, t) {
|
|
|
650
650
|
H.style(T, O, P);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function E(T, O) {
|
|
654
654
|
var P = yn(T, "img"), H = P.length;
|
|
655
655
|
H ? P.forEach(function($) {
|
|
656
656
|
i($, "load error", function() {
|
|
@@ -658,8 +658,8 @@ function ro(e, n, t) {
|
|
|
658
658
|
});
|
|
659
659
|
}) : O();
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
return T ?
|
|
661
|
+
function k(T) {
|
|
662
|
+
return T ? l.length : u.length;
|
|
663
663
|
}
|
|
664
664
|
function z() {
|
|
665
665
|
return u.length > t.perPage;
|
|
@@ -670,31 +670,31 @@ function ro(e, n, t) {
|
|
|
670
670
|
update: c,
|
|
671
671
|
register: p,
|
|
672
672
|
get: w,
|
|
673
|
-
getIn:
|
|
673
|
+
getIn: C,
|
|
674
674
|
getAt: g,
|
|
675
675
|
add: b,
|
|
676
676
|
remove: F,
|
|
677
677
|
forEach: B,
|
|
678
678
|
filter: I,
|
|
679
679
|
style: h,
|
|
680
|
-
getLength:
|
|
680
|
+
getLength: k,
|
|
681
681
|
isEnough: z
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
function io(e, n, t) {
|
|
685
|
-
var r =
|
|
685
|
+
var r = le(e), o = r.on, a = r.bind, i = r.emit, s = n.Slides, l = n.Direction.resolve, d = n.Elements, u = d.root, S = d.track, m = d.list, v = s.getAt, c = s.style, p, w, C;
|
|
686
686
|
function g() {
|
|
687
687
|
b(), a(window, "resize load", Mi(re(i, rt))), o([ve, de], b), o(rt, F);
|
|
688
688
|
}
|
|
689
689
|
function b() {
|
|
690
|
-
p = t.direction === Kt,
|
|
690
|
+
p = t.direction === Kt, Ee(u, "maxWidth", He(t.width)), Ee(S, l("paddingLeft"), B(!1)), Ee(S, l("paddingRight"), B(!0)), F(!0);
|
|
691
691
|
}
|
|
692
692
|
function F(x) {
|
|
693
693
|
var L = Se(u);
|
|
694
|
-
(x || w.width !== L.width || w.height !== L.height) && (
|
|
694
|
+
(x || w.width !== L.width || w.height !== L.height) && (Ee(S, "height", I()), c(l("marginRight"), He(t.gap)), c("width", E()), c("height", k(), !0), w = L, i($t), C !== (C = R()) && (Oe(u, Pr, C), i(zi, C)));
|
|
695
695
|
}
|
|
696
696
|
function B(x) {
|
|
697
|
-
var L = t.padding, _ =
|
|
697
|
+
var L = t.padding, _ = l(x ? "right" : "left");
|
|
698
698
|
return L && He(L[_] || (ft(L) ? 0 : L)) || "0px";
|
|
699
699
|
}
|
|
700
700
|
function I() {
|
|
@@ -704,10 +704,10 @@ function io(e, n, t) {
|
|
|
704
704
|
function h() {
|
|
705
705
|
return He(t.height || Se(m).width * t.heightRatio);
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function E() {
|
|
708
708
|
return t.autoWidth ? null : He(t.fixedWidth) || (p ? "" : z());
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function k() {
|
|
711
711
|
return He(t.fixedHeight) || (p ? t.autoHeight ? null : z() : h());
|
|
712
712
|
}
|
|
713
713
|
function z() {
|
|
@@ -715,17 +715,17 @@ function io(e, n, t) {
|
|
|
715
715
|
return "calc((100%" + (x && " + " + x) + ")/" + (t.perPage || 1) + (x && " - " + x) + ")";
|
|
716
716
|
}
|
|
717
717
|
function T() {
|
|
718
|
-
return Se(m)[
|
|
718
|
+
return Se(m)[l("width")];
|
|
719
719
|
}
|
|
720
720
|
function O(x, L) {
|
|
721
721
|
var _ = v(x || 0);
|
|
722
|
-
return _ ? Se(_.slide)[
|
|
722
|
+
return _ ? Se(_.slide)[l("width")] + (L ? 0 : $()) : 0;
|
|
723
723
|
}
|
|
724
724
|
function P(x, L) {
|
|
725
725
|
var _ = v(x);
|
|
726
726
|
if (_) {
|
|
727
|
-
var
|
|
728
|
-
return _e(
|
|
727
|
+
var N = Se(_.slide)[l("right")], G = Se(m)[l("left")];
|
|
728
|
+
return _e(N - G) + (L ? 0 : $());
|
|
729
729
|
}
|
|
730
730
|
return 0;
|
|
731
731
|
}
|
|
@@ -734,10 +734,10 @@ function io(e, n, t) {
|
|
|
734
734
|
}
|
|
735
735
|
function $() {
|
|
736
736
|
var x = v(0);
|
|
737
|
-
return x && parseFloat(
|
|
737
|
+
return x && parseFloat(Ee(x.slide, l("marginRight"))) || 0;
|
|
738
738
|
}
|
|
739
739
|
function f(x) {
|
|
740
|
-
return parseFloat(
|
|
740
|
+
return parseFloat(Ee(S, l("padding" + (x ? "Right" : "Left")))) || 0;
|
|
741
741
|
}
|
|
742
742
|
function R() {
|
|
743
743
|
return e.is(xt) || H(!0) > T();
|
|
@@ -755,7 +755,7 @@ function io(e, n, t) {
|
|
|
755
755
|
}
|
|
756
756
|
var oo = 2;
|
|
757
757
|
function ao(e, n, t) {
|
|
758
|
-
var r =
|
|
758
|
+
var r = le(e), o = r.on, a = n.Elements, i = n.Slides, s = n.Direction.resolve, l = [], d;
|
|
759
759
|
function u() {
|
|
760
760
|
o(de, S), o([ve, rt], v), (d = w()) && (c(d), n.Layout.resize(!0));
|
|
761
761
|
}
|
|
@@ -763,81 +763,81 @@ function ao(e, n, t) {
|
|
|
763
763
|
m(), u();
|
|
764
764
|
}
|
|
765
765
|
function m() {
|
|
766
|
-
Ge(
|
|
766
|
+
Ge(l), Be(l), r.destroy();
|
|
767
767
|
}
|
|
768
768
|
function v() {
|
|
769
|
-
var
|
|
770
|
-
d !==
|
|
769
|
+
var C = w();
|
|
770
|
+
d !== C && (d < C || !C) && r.emit(de);
|
|
771
771
|
}
|
|
772
|
-
function c(
|
|
772
|
+
function c(C) {
|
|
773
773
|
var g = i.get().slice(), b = g.length;
|
|
774
774
|
if (b) {
|
|
775
|
-
for (; g.length <
|
|
775
|
+
for (; g.length < C; )
|
|
776
776
|
Dt(g, g);
|
|
777
|
-
Dt(g.slice(-
|
|
778
|
-
var I = B <
|
|
779
|
-
I ? vn(h, g[0].slide) :
|
|
777
|
+
Dt(g.slice(-C), g.slice(0, C)).forEach(function(F, B) {
|
|
778
|
+
var I = B < C, h = p(F.slide, B);
|
|
779
|
+
I ? vn(h, g[0].slide) : Ct(a.list, h), Dt(l, h), i.register(h, B - C + (I ? 0 : b), F.index);
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
function p(
|
|
784
|
-
var b =
|
|
783
|
+
function p(C, g) {
|
|
784
|
+
var b = C.cloneNode(!0);
|
|
785
785
|
return Le(b, t.classes.clone), b.id = e.root.id + "-clone" + bn(g + 1), b;
|
|
786
786
|
}
|
|
787
787
|
function w() {
|
|
788
|
-
var
|
|
789
|
-
if (!e.is(
|
|
790
|
-
|
|
791
|
-
else if (St(
|
|
792
|
-
var g = t[
|
|
793
|
-
|
|
788
|
+
var C = t.clones;
|
|
789
|
+
if (!e.is(lt))
|
|
790
|
+
C = 0;
|
|
791
|
+
else if (St(C)) {
|
|
792
|
+
var g = t[s("fixedWidth")] && n.Layout.slideSize(0), b = g && yt(Se(a.track)[s("width")] / g);
|
|
793
|
+
C = b || t[s("autoWidth")] && e.length || t.perPage * oo;
|
|
794
794
|
}
|
|
795
|
-
return
|
|
795
|
+
return C;
|
|
796
796
|
}
|
|
797
797
|
return {
|
|
798
798
|
mount: u,
|
|
799
799
|
destroy: m
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
var r =
|
|
802
|
+
function lo(e, n, t) {
|
|
803
|
+
var r = le(e), o = r.on, a = r.emit, i = e.state.set, s = n.Layout, l = s.slideSize, d = s.getPadding, u = s.totalSize, S = s.listSize, m = s.sliderSize, v = n.Direction, c = v.resolve, p = v.orient, w = n.Elements, C = w.list, g = w.track, b;
|
|
804
804
|
function F() {
|
|
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
|
-
function I(_,
|
|
811
|
-
_ !==
|
|
812
|
-
i(nt), a(at,
|
|
810
|
+
function I(_, N, G, ne) {
|
|
811
|
+
_ !== N && x(_ > G) && (T(), E(z(H(), _ > G), !0)), i(ot), a(ze, N, G, _), b.start(N, function() {
|
|
812
|
+
i(nt), a(at, N, G, _), ne && ne();
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
function h(_) {
|
|
816
|
-
|
|
816
|
+
E(P(_, !0));
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function E(_, N) {
|
|
819
819
|
if (!e.is(xt)) {
|
|
820
|
-
var G =
|
|
821
|
-
|
|
820
|
+
var G = N ? _ : k(_);
|
|
821
|
+
Ee(C, "transform", "translate" + c("X") + "(" + G + "px)"), _ !== G && a(Cr);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
if (e.is(
|
|
826
|
-
var
|
|
824
|
+
function k(_) {
|
|
825
|
+
if (e.is(lt)) {
|
|
826
|
+
var N = O(_), G = N > n.Controller.getEnd(), ne = N < 0;
|
|
827
827
|
(ne || G) && (_ = z(_, G));
|
|
828
828
|
}
|
|
829
829
|
return _;
|
|
830
830
|
}
|
|
831
|
-
function z(_,
|
|
832
|
-
var G = _ - R(
|
|
833
|
-
return _ -= p(ne * (yt(_e(G) / ne) || 1)) * (
|
|
831
|
+
function z(_, N) {
|
|
832
|
+
var G = _ - R(N), ne = m();
|
|
833
|
+
return _ -= p(ne * (yt(_e(G) / ne) || 1)) * (N ? 1 : -1), _;
|
|
834
834
|
}
|
|
835
835
|
function T() {
|
|
836
|
-
|
|
836
|
+
E(H(), !0), b.cancel();
|
|
837
837
|
}
|
|
838
838
|
function O(_) {
|
|
839
|
-
for (var
|
|
840
|
-
var he =
|
|
839
|
+
for (var N = n.Slides.get(), G = 0, ne = 1 / 0, ee = 0; ee < N.length; ee++) {
|
|
840
|
+
var he = N[ee].index, A = _e(P(he, !0) - _);
|
|
841
841
|
if (A <= ne)
|
|
842
842
|
ne = A, G = he;
|
|
843
843
|
else
|
|
@@ -845,38 +845,38 @@ function so(e, n, t) {
|
|
|
845
845
|
}
|
|
846
846
|
return G;
|
|
847
847
|
}
|
|
848
|
-
function P(_,
|
|
848
|
+
function P(_, N) {
|
|
849
849
|
var G = p(u(_ - 1) - f(_));
|
|
850
|
-
return
|
|
850
|
+
return N ? $(G) : G;
|
|
851
851
|
}
|
|
852
852
|
function H() {
|
|
853
853
|
var _ = c("left");
|
|
854
|
-
return Se(
|
|
854
|
+
return Se(C)[_] - Se(g)[_] + p(d(!1));
|
|
855
855
|
}
|
|
856
856
|
function $(_) {
|
|
857
857
|
return t.trimSpace && e.is(it) && (_ = Je(_, 0, p(m(!0) - S()))), _;
|
|
858
858
|
}
|
|
859
859
|
function f(_) {
|
|
860
|
-
var
|
|
861
|
-
return
|
|
860
|
+
var N = t.focus;
|
|
861
|
+
return N === "center" ? (S() - l(_, !0)) / 2 : +N * l(_) || 0;
|
|
862
862
|
}
|
|
863
863
|
function R(_) {
|
|
864
864
|
return P(_ ? n.Controller.getEnd() : 0, !!t.trimSpace);
|
|
865
865
|
}
|
|
866
866
|
function x(_) {
|
|
867
|
-
var
|
|
868
|
-
return _ ?
|
|
867
|
+
var N = p(z(H(), _));
|
|
868
|
+
return _ ? N >= 0 : N <= C[c("scrollWidth")] - Se(g)[c("width")];
|
|
869
869
|
}
|
|
870
|
-
function L(_,
|
|
871
|
-
|
|
872
|
-
var G = _ !== !0 && p(
|
|
870
|
+
function L(_, N) {
|
|
871
|
+
N = St(N) ? H() : N;
|
|
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
876
|
mount: F,
|
|
877
877
|
move: I,
|
|
878
878
|
jump: h,
|
|
879
|
-
translate:
|
|
879
|
+
translate: E,
|
|
880
880
|
shift: z,
|
|
881
881
|
cancel: T,
|
|
882
882
|
toIndex: O,
|
|
@@ -887,12 +887,12 @@ function so(e, n, t) {
|
|
|
887
887
|
reposition: B
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
var r =
|
|
892
|
-
function
|
|
893
|
-
|
|
890
|
+
function so(e, n, t) {
|
|
891
|
+
var r = le(e), o = r.on, a = r.emit, i = n.Move, s = i.getPosition, l = i.getLimit, d = i.toPosition, u = n.Slides, S = u.isEnough, m = u.getLength, v = t.omitEnd, c = e.is(lt), p = e.is(it), w = re(H, !1), C = re(H, !0), g = t.start || 0, b, F = g, B, I, h;
|
|
892
|
+
function E() {
|
|
893
|
+
k(), o([ve, de, Ft], k), o($t, z);
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function k() {
|
|
896
896
|
B = m(!0), I = t.perMove, h = t.perPage, b = x();
|
|
897
897
|
var A = Je(g, 0, v ? b : B - 1);
|
|
898
898
|
A !== g && (g = A, i.reposition());
|
|
@@ -908,7 +908,7 @@ function lo(e, n, t) {
|
|
|
908
908
|
}
|
|
909
909
|
function O(A, q, ge, ie) {
|
|
910
910
|
n.Scroll.scroll(A, q, ge, function() {
|
|
911
|
-
var fe = R(i.toIndex(
|
|
911
|
+
var fe = R(i.toIndex(s()));
|
|
912
912
|
G(v ? Fe(fe, b) : fe), ie && ie();
|
|
913
913
|
});
|
|
914
914
|
}
|
|
@@ -916,14 +916,14 @@ function lo(e, n, t) {
|
|
|
916
916
|
var q = g;
|
|
917
917
|
if (Me(A)) {
|
|
918
918
|
var ge = A.match(/([+\-<>])(\d+)?/) || [], ie = ge[1], fe = ge[2];
|
|
919
|
-
ie === "+" || ie === "-" ? q = $(g + +("" + ie + (+fe || 1)), g) : ie === ">" ? q = fe ? L(+fe) : w(!0) : ie === "<" && (q =
|
|
919
|
+
ie === "+" || ie === "-" ? q = $(g + +("" + ie + (+fe || 1)), g) : ie === ">" ? q = fe ? L(+fe) : w(!0) : ie === "<" && (q = C(!0));
|
|
920
920
|
} else
|
|
921
921
|
q = c ? A : Je(A, 0, b);
|
|
922
922
|
return q;
|
|
923
923
|
}
|
|
924
924
|
function H(A, q) {
|
|
925
925
|
var ge = I || (ee() ? 1 : h), ie = $(g + ge * (A ? -1 : 1), g, !(I || ee()));
|
|
926
|
-
return ie === -1 && p && !
|
|
926
|
+
return ie === -1 && p && !sr(s(), l(!A), 1) ? A ? 0 : b : q ? ie : R(ie);
|
|
927
927
|
}
|
|
928
928
|
function $(A, q, ge) {
|
|
929
929
|
if (S() || ee()) {
|
|
@@ -935,7 +935,7 @@ function lo(e, n, t) {
|
|
|
935
935
|
}
|
|
936
936
|
function f(A) {
|
|
937
937
|
if (p && t.trimSpace === "move" && A !== g)
|
|
938
|
-
for (var q =
|
|
938
|
+
for (var q = s(); q === d(A, !0) && Pt(A, 0, e.length - 1, !t.rewind); )
|
|
939
939
|
A < g ? --A : ++A;
|
|
940
940
|
return A;
|
|
941
941
|
}
|
|
@@ -956,7 +956,7 @@ function lo(e, n, t) {
|
|
|
956
956
|
function _(A) {
|
|
957
957
|
return ee() ? Fe(A, b) : Mt((A >= b ? B - 1 : A) / h);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function N(A) {
|
|
960
960
|
var q = i.toIndex(A);
|
|
961
961
|
return p ? Je(q, 0, b) : q;
|
|
962
962
|
}
|
|
@@ -973,25 +973,25 @@ function lo(e, n, t) {
|
|
|
973
973
|
return e.state.is([ot, bt]) && !!t.waitForTransition;
|
|
974
974
|
}
|
|
975
975
|
return {
|
|
976
|
-
mount:
|
|
976
|
+
mount: E,
|
|
977
977
|
go: T,
|
|
978
978
|
scroll: O,
|
|
979
979
|
getNext: w,
|
|
980
|
-
getPrev:
|
|
980
|
+
getPrev: C,
|
|
981
981
|
getAdjacent: H,
|
|
982
982
|
getEnd: x,
|
|
983
983
|
setIndex: G,
|
|
984
984
|
getIndex: ne,
|
|
985
985
|
toIndex: L,
|
|
986
986
|
toPage: _,
|
|
987
|
-
toDest:
|
|
987
|
+
toDest: N,
|
|
988
988
|
hasFocus: ee,
|
|
989
989
|
isBusy: he
|
|
990
990
|
};
|
|
991
991
|
}
|
|
992
|
-
var co = "http://www.w3.org/2000/svg", uo = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",
|
|
992
|
+
var co = "http://www.w3.org/2000/svg", uo = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", kt = 40;
|
|
993
993
|
function po(e, n, t) {
|
|
994
|
-
var r =
|
|
994
|
+
var r = le(e), o = r.on, a = r.bind, i = r.emit, s = t.classes, l = t.i18n, d = n.Elements, u = n.Controller, S = d.arrows, m = d.track, v = S, c = d.prev, p = d.next, w, C, g = {};
|
|
995
995
|
function b() {
|
|
996
996
|
B(), o(ve, F);
|
|
997
997
|
}
|
|
@@ -1000,30 +1000,30 @@ function po(e, n, t) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
function B() {
|
|
1002
1002
|
var O = t.arrows;
|
|
1003
|
-
O && !(c && p) &&
|
|
1003
|
+
O && !(c && p) && k(), c && p && (ht(g, {
|
|
1004
1004
|
prev: c,
|
|
1005
1005
|
next: p
|
|
1006
|
-
}), vt(v, O ? "" : "none"), Le(v,
|
|
1006
|
+
}), vt(v, O ? "" : "none"), Le(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
|
-
r.destroy(), De(v,
|
|
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, Ft], T), a(p, "click", re(
|
|
1012
|
+
o([je, at, de, Ke, Ft], T), a(p, "click", re(E, ">")), a(c, "click", re(E, "<"));
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function E(O) {
|
|
1015
1015
|
u.go(O, !0);
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
v = S || et("div",
|
|
1017
|
+
function k() {
|
|
1018
|
+
v = S || et("div", s.arrows), c = z(!0), p = z(!1), w = !0, Ct(v, [c, p]), !S && vn(v, m);
|
|
1019
1019
|
}
|
|
1020
1020
|
function z(O) {
|
|
1021
|
-
var P = '<button class="' +
|
|
1021
|
+
var P = '<button class="' + s.arrow + " " + (O ? s.prev : s.next) + '" type="button"><svg xmlns="' + co + '" viewBox="0 0 ' + kt + " " + kt + '" width="' + kt + '" height="' + kt + '" focusable="false"><path d="' + (t.arrowPath || uo) + '" />';
|
|
1022
1022
|
return ar(P);
|
|
1023
1023
|
}
|
|
1024
1024
|
function T() {
|
|
1025
1025
|
if (c && p) {
|
|
1026
|
-
var O = e.index, P = u.getPrev(), H = u.getNext(), $ = P > -1 && O < P ?
|
|
1026
|
+
var O = e.index, P = u.getPrev(), H = u.getNext(), $ = P > -1 && O < P ? l.last : l.prev, f = H > -1 && O > H ? l.first : l.next;
|
|
1027
1027
|
c.disabled = P < 0, p.disabled = H < 0, K(c, we, $), K(p, we, f), i(yr, c, p, P, H);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
@@ -1036,24 +1036,24 @@ function po(e, n, t) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
var fo = _n + "-interval";
|
|
1038
1038
|
function go(e, n, t) {
|
|
1039
|
-
var r =
|
|
1040
|
-
function
|
|
1039
|
+
var r = le(e), o = r.on, a = r.bind, i = r.emit, s = Ut(t.interval, e.go.bind(e, ">"), h), l = s.isPaused, d = n.Elements, u = n.Elements, S = u.root, m = u.toggle, v = t.autoplay, c, p, w = v === "pause";
|
|
1040
|
+
function C() {
|
|
1041
1041
|
v && (g(), m && K(m, It, d.track.id), w || b(), I());
|
|
1042
1042
|
}
|
|
1043
1043
|
function g() {
|
|
1044
|
-
t.pauseOnHover && a(S, "mouseenter mouseleave", function(
|
|
1045
|
-
c =
|
|
1046
|
-
}), t.pauseOnFocus && a(S, "focusin focusout", function(
|
|
1047
|
-
p =
|
|
1044
|
+
t.pauseOnHover && a(S, "mouseenter mouseleave", function(k) {
|
|
1045
|
+
c = k.type === "mouseenter", B();
|
|
1046
|
+
}), t.pauseOnFocus && a(S, "focusin focusout", function(k) {
|
|
1047
|
+
p = k.type === "focusin", B();
|
|
1048
1048
|
}), m && a(m, "click", function() {
|
|
1049
1049
|
w ? b() : F(!0);
|
|
1050
|
-
}), o([ze, Ht, de],
|
|
1050
|
+
}), o([ze, Ht, de], s.rewind), o(ze, E);
|
|
1051
1051
|
}
|
|
1052
1052
|
function b() {
|
|
1053
|
-
|
|
1053
|
+
l() && n.Slides.isEnough() && (s.start(!t.resetProgress), p = c = w = !1, I(), i(En));
|
|
1054
1054
|
}
|
|
1055
|
-
function F(
|
|
1056
|
-
|
|
1055
|
+
function F(k) {
|
|
1056
|
+
k === void 0 && (k = !0), w = !!k, I(), l() || (s.pause(), i(An));
|
|
1057
1057
|
}
|
|
1058
1058
|
function B() {
|
|
1059
1059
|
w || (c || p ? F(!1) : b());
|
|
@@ -1061,35 +1061,35 @@ function go(e, n, t) {
|
|
|
1061
1061
|
function I() {
|
|
1062
1062
|
m && (Oe(m, Xe, !w), K(m, we, t.i18n[w ? "play" : "pause"]));
|
|
1063
1063
|
}
|
|
1064
|
-
function h(
|
|
1064
|
+
function h(k) {
|
|
1065
1065
|
var z = d.bar;
|
|
1066
|
-
z &&
|
|
1066
|
+
z && Ee(z, "width", k * 100 + "%"), i(Sr, k);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
var z = n.Slides.getAt(
|
|
1070
|
-
|
|
1068
|
+
function E(k) {
|
|
1069
|
+
var z = n.Slides.getAt(k);
|
|
1070
|
+
s.set(z && +Ie(z.slide, fo) || t.interval);
|
|
1071
1071
|
}
|
|
1072
1072
|
return {
|
|
1073
|
-
mount:
|
|
1074
|
-
destroy:
|
|
1073
|
+
mount: C,
|
|
1074
|
+
destroy: s.cancel,
|
|
1075
1075
|
play: b,
|
|
1076
1076
|
pause: F,
|
|
1077
|
-
isPaused:
|
|
1077
|
+
isPaused: l
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
1080
|
function mo(e, n, t) {
|
|
1081
|
-
var r =
|
|
1081
|
+
var r = le(e), o = r.on;
|
|
1082
1082
|
function a() {
|
|
1083
|
-
t.cover && (o(In, re(
|
|
1083
|
+
t.cover && (o(In, re(s, !0)), o([je, ve, de], re(i, !0)));
|
|
1084
1084
|
}
|
|
1085
|
-
function i(
|
|
1085
|
+
function i(l) {
|
|
1086
1086
|
n.Slides.forEach(function(d) {
|
|
1087
|
-
var u =
|
|
1088
|
-
u && u.src && l
|
|
1087
|
+
var u = Et(d.container || d.slide, "img");
|
|
1088
|
+
u && u.src && s(l, u, d);
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
|
-
function l
|
|
1092
|
-
u.style("background",
|
|
1091
|
+
function s(l, d, u) {
|
|
1092
|
+
u.style("background", l ? 'center/cover no-repeat url("' + d.src + '")' : "", !0), vt(d, l ? "none" : "");
|
|
1093
1093
|
}
|
|
1094
1094
|
return {
|
|
1095
1095
|
mount: a,
|
|
@@ -1098,25 +1098,25 @@ function mo(e, n, t) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
var ho = 10, vo = 600, yo = 0.6, _o = 1.5, bo = 800;
|
|
1100
1100
|
function So(e, n, t) {
|
|
1101
|
-
var r =
|
|
1101
|
+
var r = le(e), o = r.on, a = r.emit, i = e.state.set, s = n.Move, l = s.getPosition, d = s.getLimit, u = s.exceededLimit, S = s.translate, m = e.is(it), v, c, p = 1;
|
|
1102
1102
|
function w() {
|
|
1103
1103
|
o(ze, F), o([ve, de], B);
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
var O =
|
|
1107
|
-
if (F(),
|
|
1108
|
-
var P = n.Layout.sliderSize(), H =
|
|
1109
|
-
h =
|
|
1105
|
+
function C(h, E, k, z, T) {
|
|
1106
|
+
var O = l();
|
|
1107
|
+
if (F(), k && (!m || !u())) {
|
|
1108
|
+
var P = n.Layout.sliderSize(), H = ln(h) * P * Mt(_e(h) / P) || 0;
|
|
1109
|
+
h = s.toPosition(n.Controller.toDest(h % P)) + H;
|
|
1110
1110
|
}
|
|
1111
|
-
var $ =
|
|
1112
|
-
p = 1,
|
|
1111
|
+
var $ = sr(O, h, 1);
|
|
1112
|
+
p = 1, E = $ ? 0 : E || Wt(_e(h - O) / _o, bo), c = z, v = Ut(E, g, re(b, O, h, T), 1), i(bt), a(Ht), v.start();
|
|
1113
1113
|
}
|
|
1114
1114
|
function g() {
|
|
1115
1115
|
i(nt), c && c(), a(Ke);
|
|
1116
1116
|
}
|
|
1117
|
-
function b(h,
|
|
1118
|
-
var T =
|
|
1119
|
-
S(T + P), m && !
|
|
1117
|
+
function b(h, E, k, z) {
|
|
1118
|
+
var T = l(), O = h + (E - h) * I(z), P = (O - T) * p;
|
|
1119
|
+
S(T + P), m && !k && u() && (p *= yo, _e(P) < ho && C(d(u(!0)), vo, !1, c, !0));
|
|
1120
1120
|
}
|
|
1121
1121
|
function F() {
|
|
1122
1122
|
v && v.cancel();
|
|
@@ -1125,13 +1125,13 @@ function So(e, n, t) {
|
|
|
1125
1125
|
v && !v.isPaused() && (F(), g());
|
|
1126
1126
|
}
|
|
1127
1127
|
function I(h) {
|
|
1128
|
-
var
|
|
1129
|
-
return
|
|
1128
|
+
var E = t.easingFunc;
|
|
1129
|
+
return E ? E(h) : 1 - Math.pow(1 - h, 4);
|
|
1130
1130
|
}
|
|
1131
1131
|
return {
|
|
1132
1132
|
mount: w,
|
|
1133
1133
|
destroy: F,
|
|
1134
|
-
scroll:
|
|
1134
|
+
scroll: C,
|
|
1135
1135
|
cancel: B
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
@@ -1140,52 +1140,52 @@ var Ze = {
|
|
|
1140
1140
|
capture: !0
|
|
1141
1141
|
};
|
|
1142
1142
|
function wo(e, n, t) {
|
|
1143
|
-
var r =
|
|
1143
|
+
var r = le(e), o = r.on, a = r.emit, i = r.bind, s = r.unbind, l = 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, g = d.exceededLimit, b, F, 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
|
-
}), i(m, "dragstart",
|
|
1147
|
+
}), i(m, "dragstart", Ne), o([je, ve], P);
|
|
1148
1148
|
}
|
|
1149
1149
|
function P() {
|
|
1150
1150
|
var W = t.drag;
|
|
1151
1151
|
Lt(!W), I = W === "free";
|
|
1152
1152
|
}
|
|
1153
1153
|
function H(W) {
|
|
1154
|
-
if (
|
|
1154
|
+
if (k = !1, !z) {
|
|
1155
1155
|
var y = fe(W);
|
|
1156
|
-
ie(W.target) && (y || !W.button) && (S.isBusy() ?
|
|
1156
|
+
ie(W.target) && (y || !W.button) && (S.isBusy() ? Ne(W, !0) : (T = y ? m : window, h = l.is([ot, bt]), B = null, i(T, tn, $, Ze), i(T, nn, f, Ze), d.cancel(), u.cancel(), x(W)));
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
function $(W) {
|
|
1160
|
-
if (
|
|
1160
|
+
if (l.is(Ot) || (l.set(Ot), a(gr)), W.cancelable)
|
|
1161
1161
|
if (h) {
|
|
1162
1162
|
d.translate(b + ge(ee(W)));
|
|
1163
|
-
var y = he(W) > Un, V =
|
|
1164
|
-
(y || V) && x(W),
|
|
1165
|
-
} else
|
|
1163
|
+
var y = he(W) > Un, V = E !== (E = g());
|
|
1164
|
+
(y || V) && x(W), k = !0, a(mr), Ne(W);
|
|
1165
|
+
} else N(W) && (h = _(W), Ne(W));
|
|
1166
1166
|
}
|
|
1167
1167
|
function f(W) {
|
|
1168
|
-
|
|
1168
|
+
l.is(Ot) && (l.set(nt), a(hr)), h && (L(W), Ne(W)), s(T, tn, $), s(T, nn, f), h = !1;
|
|
1169
1169
|
}
|
|
1170
1170
|
function R(W) {
|
|
1171
|
-
!z &&
|
|
1171
|
+
!z && k && Ne(W, !0);
|
|
1172
1172
|
}
|
|
1173
1173
|
function x(W) {
|
|
1174
|
-
B = F, F = W, b =
|
|
1174
|
+
B = F, F = W, b = C();
|
|
1175
1175
|
}
|
|
1176
1176
|
function L(W) {
|
|
1177
1177
|
var y = G(W), V = ne(y), Y = t.rewind && t.rewindByDrag;
|
|
1178
|
-
v(!1), I ? S.scroll(V, 0, t.snap) : e.is(xt) ? S.go(w(
|
|
1178
|
+
v(!1), I ? S.scroll(V, 0, t.snap) : e.is(xt) ? S.go(w(ln(y)) < 0 ? Y ? "<" : "-" : Y ? ">" : "+") : e.is(it) && E && Y ? S.go(g(!0) ? ">" : "<") : S.go(S.toDest(V), !0), v(!0);
|
|
1179
1179
|
}
|
|
1180
1180
|
function _(W) {
|
|
1181
1181
|
var y = t.dragMinThreshold, V = ft(y), Y = V && y.mouse || 0, J = (V ? y.touch : +y) || 10;
|
|
1182
1182
|
return _e(ee(W)) > (fe(W) ? J : Y);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function N(W) {
|
|
1185
1185
|
return _e(ee(W)) > _e(ee(W, !0));
|
|
1186
1186
|
}
|
|
1187
1187
|
function G(W) {
|
|
1188
|
-
if (e.is(
|
|
1188
|
+
if (e.is(lt) || !E) {
|
|
1189
1189
|
var y = he(W);
|
|
1190
1190
|
if (y && y < Un)
|
|
1191
1191
|
return ee(W) / y;
|
|
@@ -1193,7 +1193,7 @@ function wo(e, n, t) {
|
|
|
1193
1193
|
return 0;
|
|
1194
1194
|
}
|
|
1195
1195
|
function ne(W) {
|
|
1196
|
-
return
|
|
1196
|
+
return C() + ln(W) * Fe(_e(W) * (t.flickPower || 600), I ? 1 / 0 : n.Layout.listSize() * (t.flickMaxPages || 1));
|
|
1197
1197
|
}
|
|
1198
1198
|
function ee(W, y) {
|
|
1199
1199
|
return q(W, y) - q(A(W), y);
|
|
@@ -1208,16 +1208,16 @@ function wo(e, n, t) {
|
|
|
1208
1208
|
return (fe(W) ? W.changedTouches[0] : W)["page" + p(y ? "Y" : "X")];
|
|
1209
1209
|
}
|
|
1210
1210
|
function ge(W) {
|
|
1211
|
-
return W / (
|
|
1211
|
+
return W / (E && e.is(it) ? eo : 1);
|
|
1212
1212
|
}
|
|
1213
1213
|
function ie(W) {
|
|
1214
1214
|
var y = t.noDrag;
|
|
1215
|
-
return !gt(W, "." +
|
|
1215
|
+
return !gt(W, "." + kr + ", ." + Jt) && (!y || !gt(W, y));
|
|
1216
1216
|
}
|
|
1217
1217
|
function fe(W) {
|
|
1218
1218
|
return typeof TouchEvent < "u" && W instanceof TouchEvent;
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function st() {
|
|
1221
1221
|
return h;
|
|
1222
1222
|
}
|
|
1223
1223
|
function Lt(W) {
|
|
@@ -1226,45 +1226,45 @@ function wo(e, n, t) {
|
|
|
1226
1226
|
return {
|
|
1227
1227
|
mount: O,
|
|
1228
1228
|
disable: Lt,
|
|
1229
|
-
isDragging:
|
|
1229
|
+
isDragging: st
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
var
|
|
1232
|
+
var Co = {
|
|
1233
1233
|
Spacebar: " ",
|
|
1234
1234
|
Right: Xt,
|
|
1235
1235
|
Left: Gt,
|
|
1236
|
-
Up:
|
|
1236
|
+
Up: Er,
|
|
1237
1237
|
Down: Ar
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1240
|
-
return e = Me(e) ? e : e.key,
|
|
1239
|
+
function kn(e) {
|
|
1240
|
+
return e = Me(e) ? e : e.key, Co[e] || e;
|
|
1241
1241
|
}
|
|
1242
1242
|
var Yn = "keydown";
|
|
1243
|
-
function
|
|
1244
|
-
var r =
|
|
1243
|
+
function Eo(e, n, t) {
|
|
1244
|
+
var r = le(e), o = r.on, a = r.bind, i = r.unbind, s = e.root, l = n.Direction.resolve, d, u;
|
|
1245
1245
|
function S() {
|
|
1246
1246
|
m(), o(ve, v), o(ve, m), o(ze, p);
|
|
1247
1247
|
}
|
|
1248
1248
|
function m() {
|
|
1249
|
-
var
|
|
1250
|
-
|
|
1249
|
+
var C = t.keyboard;
|
|
1250
|
+
C && (d = C === "global" ? window : s, a(d, Yn, w));
|
|
1251
1251
|
}
|
|
1252
1252
|
function v() {
|
|
1253
1253
|
i(d, Yn);
|
|
1254
1254
|
}
|
|
1255
|
-
function c(
|
|
1256
|
-
u =
|
|
1255
|
+
function c(C) {
|
|
1256
|
+
u = C;
|
|
1257
1257
|
}
|
|
1258
1258
|
function p() {
|
|
1259
|
-
var
|
|
1259
|
+
var C = u;
|
|
1260
1260
|
u = !0, tr(function() {
|
|
1261
|
-
u =
|
|
1261
|
+
u = C;
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
|
-
function w(
|
|
1264
|
+
function w(C) {
|
|
1265
1265
|
if (!u) {
|
|
1266
|
-
var g =
|
|
1267
|
-
g ===
|
|
1266
|
+
var g = kn(C);
|
|
1267
|
+
g === l(Gt) ? e.go("<") : g === l(Xt) && e.go(">");
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
return {
|
|
@@ -1275,20 +1275,20 @@ function Co(e, n, t) {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
var ut = _n + "-lazy", Bt = ut + "-srcset", Ao = "[" + ut + "], [" + Bt + "]";
|
|
1277
1277
|
function Io(e, n, t) {
|
|
1278
|
-
var r =
|
|
1278
|
+
var r = le(e), o = r.on, a = r.off, i = r.bind, s = r.emit, l = t.lazyLoad === "sequential", d = [at, Ke], u = [];
|
|
1279
1279
|
function S() {
|
|
1280
1280
|
t.lazyLoad && (m(), o(de, m));
|
|
1281
1281
|
}
|
|
1282
1282
|
function m() {
|
|
1283
|
-
Be(u), v(),
|
|
1283
|
+
Be(u), v(), l ? C() : (a(d), o(d, c), c());
|
|
1284
1284
|
}
|
|
1285
1285
|
function v() {
|
|
1286
1286
|
n.Slides.forEach(function(g) {
|
|
1287
1287
|
yn(g.slide, Ao).forEach(function(b) {
|
|
1288
1288
|
var F = Ie(b, ut), B = Ie(b, Bt);
|
|
1289
1289
|
if (F !== b.src || B !== b.srcset) {
|
|
1290
|
-
var I = t.classes.spinner, h = b.parentElement,
|
|
1291
|
-
u.push([b, g,
|
|
1290
|
+
var I = t.classes.spinner, h = b.parentElement, E = Et(h, "." + I) || et("span", I, h);
|
|
1291
|
+
u.push([b, g, E]), b.src || vt(b, "none");
|
|
1292
1292
|
}
|
|
1293
1293
|
});
|
|
1294
1294
|
});
|
|
@@ -1305,9 +1305,9 @@ function Io(e, n, t) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function w(g, b) {
|
|
1307
1307
|
var F = g[0], B = g[1];
|
|
1308
|
-
De(B.slide, dn), b.type !== "error" && (Ge(g[2]), vt(F, ""),
|
|
1308
|
+
De(B.slide, dn), b.type !== "error" && (Ge(g[2]), vt(F, ""), s(In, F, B), s(rt)), l && C();
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function C() {
|
|
1311
1311
|
u.length && p(u.shift());
|
|
1312
1312
|
}
|
|
1313
1313
|
return {
|
|
@@ -1317,29 +1317,29 @@ function Io(e, n, t) {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
}
|
|
1319
1319
|
function xo(e, n, t) {
|
|
1320
|
-
var r =
|
|
1320
|
+
var r = le(e), o = r.on, a = r.emit, i = r.bind, s = n.Slides, l = n.Elements, d = n.Controller, u = d.hasFocus, S = d.getIndex, m = d.go, v = n.Direction.resolve, c = l.pagination, p = [], w, C;
|
|
1321
1321
|
function g() {
|
|
1322
1322
|
b(), o([ve, de, Ft], g);
|
|
1323
1323
|
var z = t.pagination;
|
|
1324
|
-
c && vt(c, z ? "" : "none"), z && (o([ze, Ht, Ke],
|
|
1324
|
+
c && vt(c, z ? "" : "none"), z && (o([ze, Ht, Ke], k), F(), 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 ? Ve(w.children) : w), De(w,
|
|
1330
|
+
w && (Ge(c ? Ve(w.children) : w), De(w, C), Be(p), w = null), r.destroy();
|
|
1331
1331
|
}
|
|
1332
1332
|
function F() {
|
|
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,
|
|
1334
|
+
w = c || et("ul", T.pagination, l.track.parentElement), Le(w, C = Zt + "--" + h()), K(w, Pe, "tablist"), K(w, we, O.select), K(w, Ln, h() === Kt ? "vertical" : "");
|
|
1335
1335
|
for (var $ = 0; $ < H; $++) {
|
|
1336
1336
|
var f = et("li", null, w), R = et("button", {
|
|
1337
1337
|
class: T.page,
|
|
1338
1338
|
type: "button"
|
|
1339
|
-
}, f), x =
|
|
1339
|
+
}, f), x = s.getIn($).map(function(_) {
|
|
1340
1340
|
return _.slide.id;
|
|
1341
1341
|
}), L = !u() && P > 1 ? O.pageX : O.slideX;
|
|
1342
|
-
i(R, "click", re(B, $)), t.paginationKeyboard && i(R, "keydown", re(I, $)), K(f, Pe, "presentation"), K(R, Pe, "tab"), K(R, It, x.join(" ")), K(R, we,
|
|
1342
|
+
i(R, "click", re(B, $)), t.paginationKeyboard && i(R, "keydown", re(I, $)), K(f, Pe, "presentation"), K(R, Pe, "tab"), K(R, It, x.join(" ")), K(R, we, sn(L, $ + 1)), K(R, tt, -1), p.push({
|
|
1343
1343
|
li: f,
|
|
1344
1344
|
button: R,
|
|
1345
1345
|
page: $
|
|
@@ -1350,19 +1350,19 @@ function xo(e, n, t) {
|
|
|
1350
1350
|
m(">" + z, !0);
|
|
1351
1351
|
}
|
|
1352
1352
|
function I(z, T) {
|
|
1353
|
-
var O = p.length, P =
|
|
1353
|
+
var O = p.length, P = kn(T), H = h(), $ = -1;
|
|
1354
1354
|
P === v(Xt, !1, H) ? $ = ++z % O : P === v(Gt, !1, H) ? $ = (--z + O) % O : P === "Home" ? $ = 0 : P === "End" && ($ = O - 1);
|
|
1355
1355
|
var f = p[$];
|
|
1356
|
-
f && (or(f.button), m(">" + $),
|
|
1356
|
+
f && (or(f.button), m(">" + $), Ne(T, !0));
|
|
1357
1357
|
}
|
|
1358
1358
|
function h() {
|
|
1359
1359
|
return t.paginationDirection || t.direction;
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function E(z) {
|
|
1362
1362
|
return p[d.toPage(z)];
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1365
|
-
var z =
|
|
1364
|
+
function k() {
|
|
1365
|
+
var z = E(S(!0)), T = E(S());
|
|
1366
1366
|
if (z) {
|
|
1367
1367
|
var O = z.button;
|
|
1368
1368
|
De(O, Xe), Te(O, Fn), K(O, tt, -1);
|
|
@@ -1380,8 +1380,8 @@ function xo(e, n, t) {
|
|
|
1380
1380
|
items: p,
|
|
1381
1381
|
mount: g,
|
|
1382
1382
|
destroy: b,
|
|
1383
|
-
getAt:
|
|
1384
|
-
update:
|
|
1383
|
+
getAt: E,
|
|
1384
|
+
update: k
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
1387
|
var Lo = [" ", "Enter"];
|
|
@@ -1392,23 +1392,23 @@ function To(e, n, t) {
|
|
|
1392
1392
|
c.isParent || (d(e, c.splide), d(c.splide, e));
|
|
1393
1393
|
}), r && u();
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function s() {
|
|
1396
1396
|
a.forEach(function(c) {
|
|
1397
1397
|
c.destroy();
|
|
1398
1398
|
}), Be(a);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
|
|
1400
|
+
function l() {
|
|
1401
|
+
s(), i();
|
|
1402
1402
|
}
|
|
1403
1403
|
function d(c, p) {
|
|
1404
|
-
var w =
|
|
1405
|
-
w.on(ze, function(
|
|
1406
|
-
p.go(p.is(
|
|
1404
|
+
var w = le(c);
|
|
1405
|
+
w.on(ze, function(C, g, b) {
|
|
1406
|
+
p.go(p.is(lt) ? b : C);
|
|
1407
1407
|
}), a.push(w);
|
|
1408
1408
|
}
|
|
1409
1409
|
function u() {
|
|
1410
|
-
var c =
|
|
1411
|
-
p(Sn, m), p(wr, v), p([je, ve], S), a.push(c), c.emit(
|
|
1410
|
+
var c = le(e), p = c.on;
|
|
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
1414
|
K(n.Elements.list, Ln, t.direction === Kt ? "vertical" : "");
|
|
@@ -1417,46 +1417,46 @@ function To(e, n, t) {
|
|
|
1417
1417
|
e.go(c.index);
|
|
1418
1418
|
}
|
|
1419
1419
|
function v(c, p) {
|
|
1420
|
-
hn(Lo,
|
|
1420
|
+
hn(Lo, kn(p)) && (m(c), Ne(p));
|
|
1421
1421
|
}
|
|
1422
1422
|
return {
|
|
1423
1423
|
setup: re(n.Media.set, {
|
|
1424
1424
|
slideFocus: St(o) ? r : o
|
|
1425
1425
|
}, !0),
|
|
1426
1426
|
mount: i,
|
|
1427
|
-
destroy:
|
|
1428
|
-
remount:
|
|
1427
|
+
destroy: s,
|
|
1428
|
+
remount: l
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
function Ro(e, n, t) {
|
|
1432
|
-
var r =
|
|
1432
|
+
var r = le(e), o = r.bind, a = 0;
|
|
1433
1433
|
function i() {
|
|
1434
|
-
t.wheel && o(n.Elements.track, "wheel",
|
|
1434
|
+
t.wheel && o(n.Elements.track, "wheel", s, Ze);
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function s(d) {
|
|
1437
1437
|
if (d.cancelable) {
|
|
1438
1438
|
var u = d.deltaY, S = u < 0, m = an(d), v = t.wheelMinThreshold || 0, c = t.wheelSleep || 0;
|
|
1439
|
-
_e(u) > v && m - a > c && (e.go(S ? "<" : ">"), a = m),
|
|
1439
|
+
_e(u) > v && m - a > c && (e.go(S ? "<" : ">"), a = m), l(S) && Ne(d);
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function l(d) {
|
|
1443
1443
|
return !t.releaseWheel || e.state.is(ot) || n.Controller.getAdjacent(d) !== -1;
|
|
1444
1444
|
}
|
|
1445
1445
|
return {
|
|
1446
1446
|
mount: i
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1450
|
-
function
|
|
1451
|
-
var r =
|
|
1449
|
+
var ko = 90;
|
|
1450
|
+
function No(e, n, t) {
|
|
1451
|
+
var r = le(e), o = r.on, a = n.Elements.track, i = t.live && !t.isNavigation, s = et("span", Ki), l = Ut(ko, re(u, !1));
|
|
1452
1452
|
function d() {
|
|
1453
|
-
i && (m(!n.Autoplay.isPaused()), K(a, $n, !0),
|
|
1453
|
+
i && (m(!n.Autoplay.isPaused()), K(a, $n, !0), s.textContent = "…", o(En, re(m, !0)), o(An, re(m, !1)), o([at, Ke], re(u, !0)));
|
|
1454
1454
|
}
|
|
1455
1455
|
function u(v) {
|
|
1456
|
-
K(a, jn, v), v ? (
|
|
1456
|
+
K(a, jn, v), v ? (Ct(a, s), l.start()) : (Ge(s), l.cancel());
|
|
1457
1457
|
}
|
|
1458
1458
|
function S() {
|
|
1459
|
-
Te(a, [Vn, $n, jn]), Ge(
|
|
1459
|
+
Te(a, [Vn, $n, jn]), Ge(s);
|
|
1460
1460
|
}
|
|
1461
1461
|
function m(v) {
|
|
1462
1462
|
i && K(a, Vn, v ? "off" : "polite");
|
|
@@ -1475,19 +1475,19 @@ var Oo = /* @__PURE__ */ Object.freeze({
|
|
|
1475
1475
|
Slides: ro,
|
|
1476
1476
|
Layout: io,
|
|
1477
1477
|
Clones: ao,
|
|
1478
|
-
Move:
|
|
1479
|
-
Controller:
|
|
1478
|
+
Move: lo,
|
|
1479
|
+
Controller: so,
|
|
1480
1480
|
Arrows: po,
|
|
1481
1481
|
Autoplay: go,
|
|
1482
1482
|
Cover: mo,
|
|
1483
1483
|
Scroll: So,
|
|
1484
1484
|
Drag: wo,
|
|
1485
|
-
Keyboard:
|
|
1485
|
+
Keyboard: Eo,
|
|
1486
1486
|
LazyLoad: Io,
|
|
1487
1487
|
Pagination: xo,
|
|
1488
1488
|
Sync: To,
|
|
1489
1489
|
Wheel: Ro,
|
|
1490
|
-
Live:
|
|
1490
|
+
Live: No
|
|
1491
1491
|
}), Do = {
|
|
1492
1492
|
prev: "Previous slide",
|
|
1493
1493
|
next: "Next slide",
|
|
@@ -1531,15 +1531,15 @@ var Oo = /* @__PURE__ */ Object.freeze({
|
|
|
1531
1531
|
function Bo(e, n, t) {
|
|
1532
1532
|
var r = n.Slides;
|
|
1533
1533
|
function o() {
|
|
1534
|
-
|
|
1534
|
+
le(e).on([je, de], a);
|
|
1535
1535
|
}
|
|
1536
1536
|
function a() {
|
|
1537
|
-
r.forEach(function(
|
|
1538
|
-
|
|
1537
|
+
r.forEach(function(s) {
|
|
1538
|
+
s.style("transform", "translateX(-" + 100 * s.index + "%)");
|
|
1539
1539
|
});
|
|
1540
1540
|
}
|
|
1541
|
-
function i(
|
|
1542
|
-
r.style("transition", "opacity " + t.speed + "ms " + t.easing), tr(
|
|
1541
|
+
function i(s, l) {
|
|
1542
|
+
r.style("transition", "opacity " + t.speed + "ms " + t.easing), tr(l);
|
|
1543
1543
|
}
|
|
1544
1544
|
return {
|
|
1545
1545
|
mount: o,
|
|
@@ -1548,18 +1548,18 @@ function Bo(e, n, t) {
|
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
1550
|
function zo(e, n, t) {
|
|
1551
|
-
var r = n.Move, o = n.Controller, a = n.Scroll, i = n.Elements.list,
|
|
1551
|
+
var r = n.Move, o = n.Controller, a = n.Scroll, i = n.Elements.list, s = re(Ee, i, "transition"), l;
|
|
1552
1552
|
function d() {
|
|
1553
|
-
|
|
1554
|
-
v.target === i &&
|
|
1553
|
+
le(e).bind(i, "transitionend", function(v) {
|
|
1554
|
+
v.target === i && l && (S(), l());
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
1557
1557
|
function u(v, c) {
|
|
1558
|
-
var p = r.toPosition(v, !0), w = r.getPosition(),
|
|
1559
|
-
_e(p - w) >= 1 &&
|
|
1558
|
+
var p = r.toPosition(v, !0), w = r.getPosition(), C = m(v);
|
|
1559
|
+
_e(p - w) >= 1 && C >= 1 ? t.useScroll ? a.scroll(p, C, !1, c) : (s("transform " + C + "ms " + t.easing), r.translate(p, !0), l = c) : (r.jump(v), c());
|
|
1560
1560
|
}
|
|
1561
1561
|
function S() {
|
|
1562
|
-
|
|
1562
|
+
s(""), a.cancel();
|
|
1563
1563
|
}
|
|
1564
1564
|
function m(v) {
|
|
1565
1565
|
var c = t.rewindSpeed;
|
|
@@ -1578,8 +1578,8 @@ function zo(e, n, t) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
var Wo = /* @__PURE__ */ (function() {
|
|
1580
1580
|
function e(t, r) {
|
|
1581
|
-
this.event =
|
|
1582
|
-
var o = Me(t) ?
|
|
1581
|
+
this.event = le(), this.Components = {}, this.state = Wi(Qe), this.splides = [], this._o = {}, this._E = {};
|
|
1582
|
+
var o = Me(t) ? lr(document, t) : t;
|
|
1583
1583
|
ct(o, o + " is invalid."), this.root = o, r = We({
|
|
1584
1584
|
label: Ie(o, we) || "",
|
|
1585
1585
|
labelledby: Ie(o, xn) || ""
|
|
@@ -1593,15 +1593,15 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
var n = e.prototype;
|
|
1595
1595
|
return n.mount = function(r, o) {
|
|
1596
|
-
var a = this, i = this.state,
|
|
1597
|
-
ct(i.is([Qe, zt]), "Already mounted!"), i.set(Qe), this._C =
|
|
1598
|
-
var
|
|
1596
|
+
var a = this, i = this.state, s = this.Components;
|
|
1597
|
+
ct(i.is([Qe, zt]), "Already mounted!"), i.set(Qe), this._C = s, this._T = o || this._T || (this.is(xt) ? Bo : zo), this._E = r || this._E;
|
|
1598
|
+
var l = ht({}, Oo, this._E, {
|
|
1599
1599
|
Transition: this._T
|
|
1600
1600
|
});
|
|
1601
|
-
return Ye(
|
|
1602
|
-
var S = d(a,
|
|
1603
|
-
|
|
1604
|
-
}), Ye(
|
|
1601
|
+
return Ye(l, function(d, u) {
|
|
1602
|
+
var S = d(a, s, a._o);
|
|
1603
|
+
s[u] = S, S.setup && S.setup();
|
|
1604
|
+
}), Ye(s, function(d) {
|
|
1605
1605
|
d.mount && d.mount();
|
|
1606
1606
|
}), this.emit(je), Le(this.root, qi), i.set(nt), this.emit(cn), this;
|
|
1607
1607
|
}, n.sync = function(r) {
|
|
@@ -1631,7 +1631,7 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1631
1631
|
}, n.destroy = function(r) {
|
|
1632
1632
|
r === void 0 && (r = !0);
|
|
1633
1633
|
var o = this.event, a = this.state;
|
|
1634
|
-
return a.is(Qe) ?
|
|
1634
|
+
return a.is(Qe) ? le(this).on(cn, this.destroy.bind(this, r)) : (Ye(this._C, function(i) {
|
|
1635
1635
|
i.destroy && i.destroy(r);
|
|
1636
1636
|
}, !0), o.emit(wn), o.destroy(), r && Be(this.splides), a.set(zt)), this;
|
|
1637
1637
|
}, Oi(e, [{
|
|
@@ -1653,9 +1653,9 @@ var Wo = /* @__PURE__ */ (function() {
|
|
|
1653
1653
|
return this._C.Controller.getIndex();
|
|
1654
1654
|
}
|
|
1655
1655
|
}]), e;
|
|
1656
|
-
})(),
|
|
1657
|
-
|
|
1658
|
-
|
|
1656
|
+
})(), Nn = Wo;
|
|
1657
|
+
Nn.defaults = {};
|
|
1658
|
+
Nn.STATES = Pi;
|
|
1659
1659
|
var Gn = [
|
|
1660
1660
|
[je, "onMounted"],
|
|
1661
1661
|
[cn, "onReady"],
|
|
@@ -1680,8 +1680,8 @@ var Gn = [
|
|
|
1680
1680
|
[yr, "onArrowsUpdated"],
|
|
1681
1681
|
[_r, "onPaginationMounted"],
|
|
1682
1682
|
[br, "onPaginationUpdated"],
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1683
|
+
[Cn, "onNavigationMounted"],
|
|
1684
|
+
[En, "onAutoplayPlay"],
|
|
1685
1685
|
[Sr, "onAutoplayPlaying"],
|
|
1686
1686
|
[An, "onAutoplayPause"],
|
|
1687
1687
|
[In, "onLazyLoadLoaded"]
|
|
@@ -1732,7 +1732,7 @@ var Vo = ({ children: e, className: n, ...t }) => /* @__PURE__ */ Ue.createEleme
|
|
|
1732
1732
|
}
|
|
1733
1733
|
componentDidMount() {
|
|
1734
1734
|
const { options: e, extensions: n, transition: t } = this.props, { current: r } = this.splideRef;
|
|
1735
|
-
r && (this.splide = new
|
|
1735
|
+
r && (this.splide = new Nn(r, e), this.bind(this.splide), this.splide.mount(n, t), this.options = fn({}, e || {}), this.slides = this.getSlides());
|
|
1736
1736
|
}
|
|
1737
1737
|
componentWillUnmount() {
|
|
1738
1738
|
this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
|
|
@@ -1852,7 +1852,7 @@ 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:
|
|
1855
|
+
const [o, a] = ue(null), { widthSettings: i, fontSettings: s, letterSpacing: l, textAlign: d, wordSpacing: u, fontSizeLineHeight: S, textAppearance: m, color: v } = t.imageCaption, [c, p] = ue(void 0), [w, C] = ue(null), [g, b] = ue(0), [F, 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, $ = (f) => {
|
|
1856
1856
|
o && o.go(f);
|
|
1857
1857
|
};
|
|
1858
1858
|
return me(() => {
|
|
@@ -1868,7 +1868,7 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1868
1868
|
return f.observe(w), () => f.unobserve(w);
|
|
1869
1869
|
}, [w]), me(() => {
|
|
1870
1870
|
!o || O.current === h.type || (B((f) => f + 1), O.current = h.type);
|
|
1871
|
-
}, [h.type]), /* @__PURE__ */ M("div", { className: ae(j.wrapper, { [j.editor]: r }), ref:
|
|
1871
|
+
}, [h.type]), /* @__PURE__ */ M("div", { className: ae(j.wrapper, { [j.editor]: r }), ref: C, children: /* @__PURE__ */ Ae(
|
|
1872
1872
|
"div",
|
|
1873
1873
|
{
|
|
1874
1874
|
className: j.sliderInner,
|
|
@@ -1894,11 +1894,11 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1894
1894
|
[j.active]: R === g
|
|
1895
1895
|
}),
|
|
1896
1896
|
style: {
|
|
1897
|
-
fontFamily:
|
|
1898
|
-
fontWeight:
|
|
1899
|
-
fontStyle:
|
|
1897
|
+
fontFamily: s.fontFamily,
|
|
1898
|
+
fontWeight: s.fontWeight,
|
|
1899
|
+
fontStyle: s.fontStyle,
|
|
1900
1900
|
width: i.sizing === "auto" ? "max-content" : U(i.width, r),
|
|
1901
|
-
letterSpacing: U(
|
|
1901
|
+
letterSpacing: U(l, r),
|
|
1902
1902
|
wordSpacing: U(u, r),
|
|
1903
1903
|
textAlign: d,
|
|
1904
1904
|
fontSize: U(S.fontSize, r),
|
|
@@ -1915,7 +1915,8 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1915
1915
|
"data-styles": "imageCaption",
|
|
1916
1916
|
className: j.captionTextInner,
|
|
1917
1917
|
style: {
|
|
1918
|
-
"--link-hover-color": z.
|
|
1918
|
+
"--link-hover-color": z.linkHoverColor,
|
|
1919
|
+
"--link-color": z.linkColor,
|
|
1919
1920
|
position: "relative",
|
|
1920
1921
|
top: U(z.offset.y, r),
|
|
1921
1922
|
left: U(z.offset.x, r)
|
|
@@ -1979,17 +1980,17 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
1979
1980
|
},
|
|
1980
1981
|
F
|
|
1981
1982
|
),
|
|
1982
|
-
|
|
1983
|
+
E.isActive && /* @__PURE__ */ Ae(pt, { children: [
|
|
1983
1984
|
/* @__PURE__ */ M(
|
|
1984
1985
|
"div",
|
|
1985
1986
|
{
|
|
1986
1987
|
className: ae(j.arrow, {
|
|
1987
1988
|
[j.arrowVertical]: I === "vert",
|
|
1988
|
-
[j.hoverArrow]:
|
|
1989
|
+
[j.hoverArrow]: E.show === "on hover"
|
|
1989
1990
|
}),
|
|
1990
1991
|
style: {
|
|
1991
|
-
color:
|
|
1992
|
-
"--arrow-hover-color":
|
|
1992
|
+
color: E.color,
|
|
1993
|
+
"--arrow-hover-color": E.hover
|
|
1993
1994
|
},
|
|
1994
1995
|
children: /* @__PURE__ */ Ae(
|
|
1995
1996
|
"button",
|
|
@@ -2002,16 +2003,16 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2002
2003
|
transform: `translate(${U(P, r)}, ${U(H * (I === "horiz" ? 1 : -1), r)}) scale(${e.controls.scale / 100}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2003
2004
|
},
|
|
2004
2005
|
children: [
|
|
2005
|
-
|
|
2006
|
+
E.arrowsImgUrl && /* @__PURE__ */ M(
|
|
2006
2007
|
dt,
|
|
2007
2008
|
{
|
|
2008
|
-
url:
|
|
2009
|
-
fill:
|
|
2010
|
-
hoverFill:
|
|
2009
|
+
url: E.arrowsImgUrl,
|
|
2010
|
+
fill: E.color,
|
|
2011
|
+
hoverFill: E.hover,
|
|
2011
2012
|
className: ae(j.arrowImg, j.mirror)
|
|
2012
2013
|
}
|
|
2013
2014
|
),
|
|
2014
|
-
!
|
|
2015
|
+
!E.arrowsImgUrl && /* @__PURE__ */ M(Kn, { color: E.color, className: ae(j.arrowIcon, j.arrowImg, j.mirror) })
|
|
2015
2016
|
]
|
|
2016
2017
|
}
|
|
2017
2018
|
)
|
|
@@ -2022,11 +2023,11 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2022
2023
|
{
|
|
2023
2024
|
className: ae(j.arrow, j.nextArrow, {
|
|
2024
2025
|
[j.arrowVertical]: I === "vert",
|
|
2025
|
-
[j.hoverArrow]:
|
|
2026
|
+
[j.hoverArrow]: E.show === "on hover"
|
|
2026
2027
|
}),
|
|
2027
2028
|
style: {
|
|
2028
|
-
color:
|
|
2029
|
-
"--arrow-hover-color":
|
|
2029
|
+
color: E.color,
|
|
2030
|
+
"--arrow-hover-color": E.hover
|
|
2030
2031
|
},
|
|
2031
2032
|
children: /* @__PURE__ */ Ae(
|
|
2032
2033
|
"button",
|
|
@@ -2037,16 +2038,16 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2037
2038
|
transform: `translate(${U(P * (I === "horiz" ? -1 : 1), r)}, ${U(H, r)}) scale(${e.controls.scale / 100}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2038
2039
|
},
|
|
2039
2040
|
children: [
|
|
2040
|
-
|
|
2041
|
+
E.arrowsImgUrl && /* @__PURE__ */ M(
|
|
2041
2042
|
dt,
|
|
2042
2043
|
{
|
|
2043
|
-
url:
|
|
2044
|
-
fill:
|
|
2045
|
-
hoverFill:
|
|
2044
|
+
url: E.arrowsImgUrl,
|
|
2045
|
+
fill: E.color,
|
|
2046
|
+
hoverFill: E.hover,
|
|
2046
2047
|
className: j.arrowImg
|
|
2047
2048
|
}
|
|
2048
2049
|
),
|
|
2049
|
-
!
|
|
2050
|
+
!E.arrowsImgUrl && /* @__PURE__ */ M(Kn, { color: E.color, className: ae(j.arrowIcon, j.arrowImg) })
|
|
2050
2051
|
]
|
|
2051
2052
|
}
|
|
2052
2053
|
)
|
|
@@ -2062,18 +2063,18 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2062
2063
|
}
|
|
2063
2064
|
}
|
|
2064
2065
|
),
|
|
2065
|
-
|
|
2066
|
+
k.isActive && /* @__PURE__ */ M(
|
|
2066
2067
|
"div",
|
|
2067
2068
|
{
|
|
2068
2069
|
className: ae(j.pagination, {
|
|
2069
|
-
[j.paginationInsideBottom]:
|
|
2070
|
-
[j.paginationInsideTop]:
|
|
2071
|
-
[j.paginationOutsideBottom]:
|
|
2072
|
-
[j.paginationOutsideTop]:
|
|
2073
|
-
[j.paginationInsideLeft]:
|
|
2074
|
-
[j.paginationInsideRight]:
|
|
2075
|
-
[j.paginationOutsideLeft]:
|
|
2076
|
-
[j.paginationOutsideRight]:
|
|
2070
|
+
[j.paginationInsideBottom]: k.position === "inside-1" && I === "horiz",
|
|
2071
|
+
[j.paginationInsideTop]: k.position === "inside-2" && I === "horiz",
|
|
2072
|
+
[j.paginationOutsideBottom]: k.position === "outside-1" && I === "horiz",
|
|
2073
|
+
[j.paginationOutsideTop]: k.position === "outside-2" && I === "horiz",
|
|
2074
|
+
[j.paginationInsideLeft]: k.position === "inside-1" && I === "vert",
|
|
2075
|
+
[j.paginationInsideRight]: k.position === "inside-2" && I === "vert",
|
|
2076
|
+
[j.paginationOutsideLeft]: k.position === "outside-1" && I === "vert",
|
|
2077
|
+
[j.paginationOutsideRight]: k.position === "outside-2" && I === "vert",
|
|
2077
2078
|
[j.paginationVertical]: I === "vert"
|
|
2078
2079
|
}),
|
|
2079
2080
|
children: /* @__PURE__ */ M(
|
|
@@ -2081,8 +2082,8 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2081
2082
|
{
|
|
2082
2083
|
className: j.paginationInner,
|
|
2083
2084
|
style: {
|
|
2084
|
-
backgroundColor:
|
|
2085
|
-
transform: `scale(${
|
|
2085
|
+
backgroundColor: k.colors[2],
|
|
2086
|
+
transform: `scale(${k.scale / 100}) translate(${U(k.offset.x, r)}, ${U(k.offset.y, r)}) rotate(${I === "horiz" ? "0deg" : "90deg"})`
|
|
2086
2087
|
},
|
|
2087
2088
|
children: n.map((f, R) => /* @__PURE__ */ M(
|
|
2088
2089
|
"button",
|
|
@@ -2098,8 +2099,8 @@ function Xo({ settings: e, content: n, styles: t, isEditor: r }) {
|
|
|
2098
2099
|
[j.activeDot]: R === g
|
|
2099
2100
|
}),
|
|
2100
2101
|
style: {
|
|
2101
|
-
backgroundColor: R === g ?
|
|
2102
|
-
"--pagination-hover-color":
|
|
2102
|
+
backgroundColor: R === g ? k.colors[0] : k.colors[1],
|
|
2103
|
+
"--pagination-hover-color": k.hover
|
|
2103
2104
|
}
|
|
2104
2105
|
}
|
|
2105
2106
|
)
|
|
@@ -2413,8 +2414,16 @@ const Ko = {
|
|
|
2413
2414
|
}
|
|
2414
2415
|
}
|
|
2415
2416
|
},
|
|
2416
|
-
|
|
2417
|
-
title: "Link
|
|
2417
|
+
linkColor: {
|
|
2418
|
+
title: "Link",
|
|
2419
|
+
type: "string",
|
|
2420
|
+
display: {
|
|
2421
|
+
type: "settings-color-picker",
|
|
2422
|
+
format: "single"
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
linkHoverColor: {
|
|
2426
|
+
title: "Link Hov",
|
|
2418
2427
|
type: "string",
|
|
2419
2428
|
display: {
|
|
2420
2429
|
type: "settings-color-picker",
|
|
@@ -2468,7 +2477,8 @@ const Ko = {
|
|
|
2468
2477
|
},
|
|
2469
2478
|
isActive: !0,
|
|
2470
2479
|
alignment: "middle-center",
|
|
2471
|
-
|
|
2480
|
+
linkColor: "#cccccc",
|
|
2481
|
+
linkHoverColor: "#cccccc"
|
|
2472
2482
|
}
|
|
2473
2483
|
},
|
|
2474
2484
|
displayRules: [
|
|
@@ -2721,8 +2731,8 @@ function qn(e, n, t) {
|
|
|
2721
2731
|
for (const r of t) {
|
|
2722
2732
|
const o = new Image();
|
|
2723
2733
|
o.src = r.url;
|
|
2724
|
-
const a = r.width ? Number.parseFloat(r.width) : o.naturalWidth, i = o.naturalHeight / o.naturalWidth * a,
|
|
2725
|
-
if (e >= r.x -
|
|
2734
|
+
const a = r.width ? Number.parseFloat(r.width) : o.naturalWidth, i = o.naturalHeight / o.naturalWidth * a, s = a / 2, l = i / 2;
|
|
2735
|
+
if (e >= r.x - s && e <= r.x + s && n >= r.y - l && n <= r.y + l)
|
|
2726
2736
|
return !0;
|
|
2727
2737
|
}
|
|
2728
2738
|
return !1;
|
|
@@ -2752,46 +2762,46 @@ async function ea(e, n, t, r) {
|
|
|
2752
2762
|
return { width: o, height: a, finalWidth: `${o}px` };
|
|
2753
2763
|
}
|
|
2754
2764
|
function ta({ settings: e, content: n, isEditor: t }) {
|
|
2755
|
-
const [r, o] = ue(null), [a, i] = ue([]), [
|
|
2765
|
+
const [r, o] = ue(null), [a, i] = ue([]), [s, l] = 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, g] = ue(!1), { sizeType: b, imageWidth: F, randomRangeImageWidth: B } = e.imageSize, { revealPosition: I, visible: h } = e.position, { cursorType: E, target: k, defaultCursorScale: z, defaultCursor: T, hoverCursorScale: O, hoverCursor: P } = e.cursor;
|
|
2756
2766
|
me(() => {
|
|
2757
2767
|
if (!r) return;
|
|
2758
2768
|
const f = (L, _) => {
|
|
2759
|
-
const
|
|
2760
|
-
if (S({ x: G, y: ne }),
|
|
2769
|
+
const N = r.getBoundingClientRect(), G = L - N.left, ne = _ - N.top;
|
|
2770
|
+
if (S({ x: G, y: ne }), E === "system") {
|
|
2761
2771
|
p("none"), v(1);
|
|
2762
2772
|
return;
|
|
2763
2773
|
}
|
|
2764
|
-
const ee = G, he = ne, A = document.elementFromPoint(
|
|
2774
|
+
const ee = G, he = ne, A = document.elementFromPoint(N.left + ee, N.top + he);
|
|
2765
2775
|
if (A && A.closest("a")) {
|
|
2766
2776
|
p("none"), v(1);
|
|
2767
2777
|
return;
|
|
2768
2778
|
}
|
|
2769
|
-
const q = qn(ee, he, a) ||
|
|
2779
|
+
const q = qn(ee, he, a) || k === "area" ? { img: P ?? "none", scale: O } : { img: T ?? "none", scale: z };
|
|
2770
2780
|
p(q.img), v(q.scale);
|
|
2771
2781
|
}, R = (L) => {
|
|
2772
2782
|
L.stopPropagation(), w.current = { x: L.clientX, y: L.clientY }, f(L.clientX, L.clientY);
|
|
2773
2783
|
}, x = () => {
|
|
2774
|
-
|
|
2784
|
+
C && f(w.current.x, w.current.y);
|
|
2775
2785
|
};
|
|
2776
2786
|
return r.addEventListener("mousemove", R), window.addEventListener("scroll", x, !0), () => {
|
|
2777
2787
|
r.removeEventListener("mousemove", R), window.removeEventListener("scroll", x, !0);
|
|
2778
2788
|
};
|
|
2779
2789
|
}, [
|
|
2780
2790
|
r,
|
|
2781
|
-
E,
|
|
2782
|
-
u,
|
|
2783
2791
|
C,
|
|
2784
|
-
|
|
2792
|
+
u,
|
|
2793
|
+
E,
|
|
2794
|
+
k,
|
|
2785
2795
|
P,
|
|
2786
2796
|
T,
|
|
2787
2797
|
O,
|
|
2788
2798
|
z,
|
|
2789
2799
|
a
|
|
2790
2800
|
]), me(() => {
|
|
2791
|
-
|
|
2792
|
-
}, [
|
|
2801
|
+
C || (p("none"), v(0));
|
|
2802
|
+
}, [C]);
|
|
2793
2803
|
const H = async (f, R, x, L = {}) => {
|
|
2794
|
-
const { width: _, height:
|
|
2804
|
+
const { width: _, height: N, finalWidth: G } = await ea(
|
|
2795
2805
|
f.image.url,
|
|
2796
2806
|
b,
|
|
2797
2807
|
F,
|
|
@@ -2799,7 +2809,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2799
2809
|
);
|
|
2800
2810
|
let ne = 0, ee = 0;
|
|
2801
2811
|
I === "same" ? (ne = R / 2, ee = x / 2) : (ne = L.x ?? Math.random() * R, ee = L.y ?? Math.random() * x);
|
|
2802
|
-
const he = Math.min(Math.max(ne, _ / 2), R - _ / 2), A = Math.min(Math.max(ee,
|
|
2812
|
+
const he = Math.min(Math.max(ne, _ / 2), R - _ / 2), A = Math.min(Math.max(ee, N / 2), x - N / 2);
|
|
2803
2813
|
return {
|
|
2804
2814
|
id: d.current++,
|
|
2805
2815
|
url: f.image.url,
|
|
@@ -2814,8 +2824,8 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2814
2824
|
if (!r || n.length === 0) return;
|
|
2815
2825
|
const f = r.getBoundingClientRect(), R = f.width, x = f.height, L = [];
|
|
2816
2826
|
(async () => {
|
|
2817
|
-
const
|
|
2818
|
-
L.push(G), i(L),
|
|
2827
|
+
const N = n[0], G = await H(N, R, x);
|
|
2828
|
+
L.push(G), i(L), l(1);
|
|
2819
2829
|
})();
|
|
2820
2830
|
}, [b, F, B, I, r]), me(() => {
|
|
2821
2831
|
h === "last One" && i((f) => f.length > 0 ? [f[f.length - 1]] : []);
|
|
@@ -2826,11 +2836,11 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2826
2836
|
onClick: async (f) => {
|
|
2827
2837
|
if (!r) return;
|
|
2828
2838
|
const R = r.getBoundingClientRect(), x = f.clientX - R.left, L = f.clientY - R.top;
|
|
2829
|
-
if (
|
|
2830
|
-
let _ = 0,
|
|
2831
|
-
I === "on Click" ? (_ = x,
|
|
2832
|
-
const G = n[
|
|
2833
|
-
i((ee) => h === "all" ? [...ee, ne] : [ne]),
|
|
2839
|
+
if (k === "image" && !qn(x, L, a)) return;
|
|
2840
|
+
let _ = 0, N = 0;
|
|
2841
|
+
I === "on Click" ? (_ = x, N = L) : I === "same" ? (_ = R.width / 2, N = R.height / 2) : (_ = Math.random() * R.width, N = Math.random() * R.height);
|
|
2842
|
+
const G = n[s], ne = await H(G, R.width, R.height, { x: _, y: N });
|
|
2843
|
+
i((ee) => h === "all" ? [...ee, ne] : [ne]), l((ee) => ee >= n.length - 1 ? 0 : ee + 1);
|
|
2834
2844
|
},
|
|
2835
2845
|
onMouseEnter: () => g(!0),
|
|
2836
2846
|
onMouseLeave: () => g(!1),
|
|
@@ -2850,7 +2860,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2850
2860
|
height: "auto",
|
|
2851
2861
|
cursor: c === "none" ? "default" : "none"
|
|
2852
2862
|
},
|
|
2853
|
-
children:
|
|
2863
|
+
children: k === "area" && f.link ? /* @__PURE__ */ M("a", { href: f.link, target: "_blank", className: qe.link, children: /* @__PURE__ */ M(
|
|
2854
2864
|
"img",
|
|
2855
2865
|
{
|
|
2856
2866
|
src: f.url,
|
|
@@ -2870,7 +2880,7 @@ function ta({ settings: e, content: n, isEditor: t }) {
|
|
|
2870
2880
|
},
|
|
2871
2881
|
f.id
|
|
2872
2882
|
)),
|
|
2873
|
-
|
|
2883
|
+
C && /* @__PURE__ */ M(
|
|
2874
2884
|
"div",
|
|
2875
2885
|
{
|
|
2876
2886
|
className: qe.cursor,
|
|
@@ -3203,13 +3213,13 @@ const na = {
|
|
|
3203
3213
|
}
|
|
3204
3214
|
}
|
|
3205
3215
|
}
|
|
3206
|
-
}, ra = "LightBox-module__hidden___9s-9x", ia = "LightBox-module__heroImage___sTxNF", oa = "LightBox-module__background___rm9ml", aa = "LightBox-module__editor___4ACaY",
|
|
3216
|
+
}, ra = "LightBox-module__hidden___9s-9x", ia = "LightBox-module__heroImage___sTxNF", oa = "LightBox-module__background___rm9ml", aa = "LightBox-module__editor___4ACaY", la = "LightBox-module__contentStyle___Bgnsq", sa = "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", fa = "LightBox-module__captionTextInner___rCGNH", ga = "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", xa = "LightBox-module__thumbsAlignEnd___p4y9R", La = "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", Wa = "LightBox-module__slideOutTop___Vgg0z", Ma = "LightBox-module__slideOutBottom___nJ0Ef", Fa = "LightBox-module__scaleSlide___vZriG", D = {
|
|
3207
3217
|
hidden: ra,
|
|
3208
3218
|
heroImage: ia,
|
|
3209
3219
|
background: oa,
|
|
3210
3220
|
editor: aa,
|
|
3211
|
-
contentStyle:
|
|
3212
|
-
imageStyle:
|
|
3221
|
+
contentStyle: la,
|
|
3222
|
+
imageStyle: sa,
|
|
3213
3223
|
imgWrapper: ca,
|
|
3214
3224
|
contain: ua,
|
|
3215
3225
|
cover: da,
|
|
@@ -3224,16 +3234,16 @@ const na = {
|
|
|
3224
3234
|
arrowImg: ba,
|
|
3225
3235
|
mirror: Sa,
|
|
3226
3236
|
thumbsWrapper: wa,
|
|
3227
|
-
thumbsContainerVertical:
|
|
3228
|
-
thumbsContainer:
|
|
3237
|
+
thumbsContainerVertical: Ca,
|
|
3238
|
+
thumbsContainer: Ea,
|
|
3229
3239
|
thumbsAlignStart: Aa,
|
|
3230
3240
|
thumbsAlignCenter: Ia,
|
|
3231
3241
|
thumbsAlignEnd: xa,
|
|
3232
3242
|
thumbItem: La,
|
|
3233
3243
|
closeButton: Ta,
|
|
3234
3244
|
fadeIn: Ra,
|
|
3235
|
-
slideInLeft:
|
|
3236
|
-
slideInRight:
|
|
3245
|
+
slideInLeft: ka,
|
|
3246
|
+
slideInRight: Na,
|
|
3237
3247
|
slideInTop: Oa,
|
|
3238
3248
|
slideInBottom: Da,
|
|
3239
3249
|
fadeOut: Pa,
|
|
@@ -3242,7 +3252,7 @@ const na = {
|
|
|
3242
3252
|
slideOutTop: Wa,
|
|
3243
3253
|
slideOutBottom: Ma,
|
|
3244
3254
|
scaleSlide: Fa
|
|
3245
|
-
},
|
|
3255
|
+
}, Nt = (e, n, t) => {
|
|
3246
3256
|
const r = {}, [o, a] = e.split("-");
|
|
3247
3257
|
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;
|
|
3248
3258
|
};
|
|
@@ -3256,9 +3266,9 @@ function Fr(e) {
|
|
|
3256
3266
|
};
|
|
3257
3267
|
}
|
|
3258
3268
|
function Jn(e) {
|
|
3259
|
-
const n = e.getBoundingClientRect(), t = Fr(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,
|
|
3269
|
+
const n = e.getBoundingClientRect(), t = Fr(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, s = r / o, l = a / i;
|
|
3260
3270
|
let d, u;
|
|
3261
|
-
|
|
3271
|
+
l > s ? (d = r, u = r / l) : (u = o, d = o * l);
|
|
3262
3272
|
const S = n.left + t.left, m = n.top + t.top, v = (r - d) / 2 + S, c = (o - u) / 2 + m;
|
|
3263
3273
|
return {
|
|
3264
3274
|
x: v,
|
|
@@ -3358,24 +3368,24 @@ function Va(e, n) {
|
|
|
3358
3368
|
return { appearClass: t, backdropAppearClass: r, backdropDisappearClass: o, disappearClass: a };
|
|
3359
3369
|
}
|
|
3360
3370
|
const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, isEditor: a }) => {
|
|
3361
|
-
const [i,
|
|
3371
|
+
const [i, s] = ue(!1), { url: l } = e.thumbnailBlock.cover;
|
|
3362
3372
|
return me(() => {
|
|
3363
|
-
o === "close" &&
|
|
3373
|
+
o === "close" && s(!1), o === "open" && s(!0);
|
|
3364
3374
|
}, [o]), /* @__PURE__ */ Ae(pt, { children: [
|
|
3365
3375
|
/* @__PURE__ */ M(
|
|
3366
3376
|
"img",
|
|
3367
3377
|
{
|
|
3368
|
-
src:
|
|
3378
|
+
src: l,
|
|
3369
3379
|
alt: "Cover",
|
|
3370
3380
|
className: D.heroImage,
|
|
3371
|
-
onClick: () =>
|
|
3381
|
+
onClick: () => s(!0)
|
|
3372
3382
|
}
|
|
3373
3383
|
),
|
|
3374
3384
|
/* @__PURE__ */ M(
|
|
3375
3385
|
$a,
|
|
3376
3386
|
{
|
|
3377
3387
|
isOpen: i,
|
|
3378
|
-
onClose: () =>
|
|
3388
|
+
onClose: () => s(!1),
|
|
3379
3389
|
content: n,
|
|
3380
3390
|
settings: e,
|
|
3381
3391
|
lightboxStyles: t,
|
|
@@ -3384,9 +3394,9 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3384
3394
|
}
|
|
3385
3395
|
)
|
|
3386
3396
|
] });
|
|
3387
|
-
}, $a = ({ isOpen: e, onClose: n, content: t, lightboxStyles: r, settings: o, portalId: a, isEditor: i, metadata:
|
|
3397
|
+
}, $a = ({ isOpen: e, onClose: n, content: t, lightboxStyles: r, settings: o, portalId: a, isEditor: i, metadata: s }) => {
|
|
3388
3398
|
var W;
|
|
3389
|
-
const [
|
|
3399
|
+
const [l, d] = ue(0), [u, S] = ue(0), [m, v] = ue(!1), [c, p] = ue(!1), [w, C] = ue({}), g = be(null), b = be(null), F = 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: f, thumbnail: R, controls: x, area: L, caption: _, layout: N } = o.lightboxBlock, { appearClass: G, backdropAppearClass: ne, backdropDisappearClass: ee, disappearClass: he } = Va(H.type, H.direction), A = (s == null ? void 0 : s.itemId) ?? null;
|
|
3390
3400
|
me(() => {
|
|
3391
3401
|
const y = () => {
|
|
3392
3402
|
setTimeout(() => {
|
|
@@ -3424,11 +3434,11 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3424
3434
|
var J, te;
|
|
3425
3435
|
if (y) {
|
|
3426
3436
|
if ($.type === "click" && $.switch === "image")
|
|
3427
|
-
$.repeat === "close" &&
|
|
3437
|
+
$.repeat === "close" && l === t.length - 1 ? q() : (J = g.current) == null || J.go("+1");
|
|
3428
3438
|
else if ($.type === "click" && $.switch === "50/50") {
|
|
3429
|
-
const Z = y.getBoundingClientRect(), X = V - Z.left, oe = Y - Z.top, ye = Z.width,
|
|
3439
|
+
const Z = y.getBoundingClientRect(), X = V - Z.left, oe = Y - Z.top, ye = Z.width, se = Z.height;
|
|
3430
3440
|
let pe;
|
|
3431
|
-
f.direction === "horiz" ? pe = X < ye / 2 ? "-1" : "+1" : pe = oe <
|
|
3441
|
+
f.direction === "horiz" ? pe = X < ye / 2 ? "-1" : "+1" : pe = oe < se / 2 ? "-1" : "+1", (te = g.current) == null || te.go(pe);
|
|
3432
3442
|
}
|
|
3433
3443
|
}
|
|
3434
3444
|
}, ie = (y) => {
|
|
@@ -3436,7 +3446,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3436
3446
|
z.current = !1;
|
|
3437
3447
|
return;
|
|
3438
3448
|
}
|
|
3439
|
-
const V = t[
|
|
3449
|
+
const V = t[l], Y = (V == null ? void 0 : V.image.objectFit) === "cover";
|
|
3440
3450
|
let J, te;
|
|
3441
3451
|
if ("changedTouches" in y && y.changedTouches.length > 0)
|
|
3442
3452
|
J = y.changedTouches[0].clientX, te = y.changedTouches[0].clientY;
|
|
@@ -3480,7 +3490,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3480
3490
|
};
|
|
3481
3491
|
}, [e, q, t.length]), me(() => {
|
|
3482
3492
|
if (e) {
|
|
3483
|
-
if (d(0), S((V) => V + 1), B.current = !1, v(!1), p(!1),
|
|
3493
|
+
if (d(0), S((V) => V + 1), B.current = !1, v(!1), p(!1), C({}), !A) return;
|
|
3484
3494
|
const y = new CustomEvent("page-overlay", { detail: { itemId: A } });
|
|
3485
3495
|
window.dispatchEvent(y);
|
|
3486
3496
|
}
|
|
@@ -3494,15 +3504,15 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3494
3504
|
const y = document.body.style.overflow, V = window.matchMedia("(max-width: 768px)").matches, Y = Qn(L.color);
|
|
3495
3505
|
document.body.style.overflow = "hidden", p(!1);
|
|
3496
3506
|
const J = (Z) => {
|
|
3497
|
-
Z.target === I.current && !B.current && Z.animationName && (V && !i && Y > 0.9 && (document.body.style.backgroundColor = L.color), p(!0), I.current &&
|
|
3507
|
+
Z.target === I.current && !B.current && Z.animationName && (V && !i && Y > 0.9 && (document.body.style.backgroundColor = L.color), p(!0), I.current && E.current && I.current.removeEventListener("animationend", E.current), E.current = null);
|
|
3498
3508
|
};
|
|
3499
|
-
I.current && (
|
|
3509
|
+
I.current && (E.current = J, I.current.addEventListener("animationend", J));
|
|
3500
3510
|
const te = (Z) => {
|
|
3501
3511
|
const X = Z.target;
|
|
3502
3512
|
X && (X.closest(`.${D.thumbsWrapper}`) || X.closest(`.${D.thumbsContainer}`)) || f.type !== "slide" && Z.preventDefault();
|
|
3503
3513
|
};
|
|
3504
3514
|
return document.addEventListener("touchmove", te, { passive: !1 }), () => {
|
|
3505
|
-
document.body.style.overflow = y, document.removeEventListener("touchmove", te), I.current &&
|
|
3515
|
+
document.body.style.overflow = y, document.removeEventListener("touchmove", te), I.current && E.current && (I.current.removeEventListener("animationend", E.current), E.current = null), p(!1);
|
|
3506
3516
|
};
|
|
3507
3517
|
}, [e, i, L.color, f.type]), me(() => {
|
|
3508
3518
|
if (!e) return;
|
|
@@ -3524,22 +3534,22 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3524
3534
|
return;
|
|
3525
3535
|
}
|
|
3526
3536
|
if (V.touches.length === 0 && V.changedTouches.length > 0) {
|
|
3527
|
-
const Z = t[
|
|
3537
|
+
const Z = t[l], X = (Z == null ? void 0 : Z.image.objectFit) === "cover", oe = V.changedTouches[0];
|
|
3528
3538
|
let ye;
|
|
3529
3539
|
if (X && F.current) {
|
|
3530
|
-
const
|
|
3531
|
-
ye = oe.clientX >=
|
|
3540
|
+
const se = Zn(F.current);
|
|
3541
|
+
ye = oe.clientX >= se.left && oe.clientX <= se.right && oe.clientY >= se.top && oe.clientY <= se.bottom;
|
|
3532
3542
|
} else {
|
|
3533
|
-
const
|
|
3534
|
-
if (!
|
|
3535
|
-
ye = oe.clientX >=
|
|
3543
|
+
const se = F.current ? Jn(F.current) : null;
|
|
3544
|
+
if (!se) return;
|
|
3545
|
+
ye = oe.clientX >= se.x && oe.clientX <= se.x + se.width && oe.clientY >= se.y && oe.clientY <= se.y + se.height;
|
|
3536
3546
|
}
|
|
3537
3547
|
if (!ye) {
|
|
3538
3548
|
V.stopPropagation(), B.current = !0;
|
|
3539
|
-
const
|
|
3540
|
-
pe.stopPropagation(), pe.preventDefault(), document.removeEventListener("click",
|
|
3549
|
+
const se = (pe) => {
|
|
3550
|
+
pe.stopPropagation(), pe.preventDefault(), document.removeEventListener("click", se, !0);
|
|
3541
3551
|
};
|
|
3542
|
-
document.addEventListener("click",
|
|
3552
|
+
document.addEventListener("click", se, !0), q();
|
|
3543
3553
|
}
|
|
3544
3554
|
}
|
|
3545
3555
|
}
|
|
@@ -3547,31 +3557,31 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3547
3557
|
return document.addEventListener("touchend", y, { passive: !0 }), () => {
|
|
3548
3558
|
document.removeEventListener("touchend", y);
|
|
3549
3559
|
};
|
|
3550
|
-
}, [e, q,
|
|
3551
|
-
const
|
|
3560
|
+
}, [e, q, l, t]);
|
|
3561
|
+
const st = (f.type === "scale" || f.type === "fade") && f.direction === "vert" && $.type === "drag";
|
|
3552
3562
|
me(() => {
|
|
3553
3563
|
var pe, Tt;
|
|
3554
|
-
if (!e || !
|
|
3564
|
+
if (!e || !st || !((Tt = (pe = g.current) == null ? void 0 : pe.splide) != null && Tt.root)) return;
|
|
3555
3565
|
const y = g.current.splide.root, V = 30, Y = (Q, ce) => {
|
|
3556
|
-
if (
|
|
3557
|
-
const
|
|
3558
|
-
(
|
|
3566
|
+
if (k.current) {
|
|
3567
|
+
const ke = Math.abs(Q - k.current.x), Rt = Math.abs(ce - k.current.y);
|
|
3568
|
+
(ke > 0 || Rt > 0) && (z.current = !0);
|
|
3559
3569
|
}
|
|
3560
3570
|
}, J = (Q) => {
|
|
3561
|
-
|
|
3571
|
+
k.current && (Q.preventDefault(), Y(Q.clientX, Q.clientY));
|
|
3562
3572
|
}, te = (Q) => {
|
|
3563
|
-
|
|
3573
|
+
k.current && Q.touches.length > 0 && (Q.preventDefault(), Y(Q.touches[0].clientX, Q.touches[0].clientY));
|
|
3564
3574
|
}, Z = (Q, ce) => {
|
|
3565
|
-
if (!
|
|
3566
|
-
|
|
3575
|
+
if (!k.current || !g.current) {
|
|
3576
|
+
k.current = null;
|
|
3567
3577
|
return;
|
|
3568
3578
|
}
|
|
3569
|
-
const
|
|
3570
|
-
Rt > V && Rt >
|
|
3579
|
+
const ke = Math.abs(Q - k.current.x), Rt = Math.abs(ce - k.current.y);
|
|
3580
|
+
Rt > V && Rt > ke && g.current.go(ce < k.current.y ? "+1" : "-1"), k.current = null;
|
|
3571
3581
|
}, X = (Q) => {
|
|
3572
|
-
|
|
3582
|
+
k.current && Z(Q.clientX, Q.clientY), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("pointermove", J);
|
|
3573
3583
|
}, oe = (Q) => {
|
|
3574
|
-
if (
|
|
3584
|
+
if (k.current) {
|
|
3575
3585
|
if (Q.changedTouches.length > 0) {
|
|
3576
3586
|
const ce = Q.changedTouches[0];
|
|
3577
3587
|
Z(ce.clientX, ce.clientY);
|
|
@@ -3579,14 +3589,14 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3579
3589
|
document.removeEventListener("touchend", oe), document.removeEventListener("touchcancel", oe), document.removeEventListener("touchmove", te);
|
|
3580
3590
|
}
|
|
3581
3591
|
}, ye = (Q) => {
|
|
3582
|
-
|
|
3583
|
-
},
|
|
3584
|
-
Q.touches.length > 0 && (
|
|
3592
|
+
k.current = { x: Q.clientX, y: Q.clientY }, z.current = !1, document.addEventListener("pointermove", J, { passive: !1 }), document.addEventListener("pointerup", X), document.addEventListener("pointercancel", X);
|
|
3593
|
+
}, se = (Q) => {
|
|
3594
|
+
Q.touches.length > 0 && (k.current = { x: Q.touches[0].clientX, y: Q.touches[0].clientY }, z.current = !1, document.addEventListener("touchmove", te, { passive: !1 }), document.addEventListener("touchend", oe), document.addEventListener("touchcancel", oe));
|
|
3585
3595
|
};
|
|
3586
|
-
return y.addEventListener("pointerdown", ye), y.addEventListener("touchstart",
|
|
3587
|
-
y.removeEventListener("pointerdown", ye), y.removeEventListener("touchstart",
|
|
3596
|
+
return y.addEventListener("pointerdown", ye), y.addEventListener("touchstart", se), () => {
|
|
3597
|
+
y.removeEventListener("pointerdown", ye), y.removeEventListener("touchstart", se), 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;
|
|
3588
3598
|
};
|
|
3589
|
-
}, [e,
|
|
3599
|
+
}, [e, st, u]);
|
|
3590
3600
|
const Lt = {
|
|
3591
3601
|
backgroundColor: L.color,
|
|
3592
3602
|
backdropFilter: `blur(${L.blur}px)`,
|
|
@@ -3630,7 +3640,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3630
3640
|
direction: f.direction === "horiz" || f.type === "fade" || f.type === "scale" ? "ltr" : "ttb",
|
|
3631
3641
|
pagination: !1,
|
|
3632
3642
|
// Disable Splide's drag when we need custom vertical drag handling
|
|
3633
|
-
drag: $.type === "drag" && !
|
|
3643
|
+
drag: $.type === "drag" && !st,
|
|
3634
3644
|
perPage: 1,
|
|
3635
3645
|
width: "100%",
|
|
3636
3646
|
height: "100%",
|
|
@@ -3641,7 +3651,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3641
3651
|
},
|
|
3642
3652
|
style: { "--splide-speed": f.duration },
|
|
3643
3653
|
children: t.map((y, V) => {
|
|
3644
|
-
const Y =
|
|
3654
|
+
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 = f.type === "scale" ? (() => {
|
|
3645
3655
|
const { transform: Z, ...X } = Y;
|
|
3646
3656
|
return {
|
|
3647
3657
|
...X,
|
|
@@ -3654,7 +3664,7 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3654
3664
|
return /* @__PURE__ */ M(Wr, { children: /* @__PURE__ */ M("div", { className: D.imgWrapper, onClick: ie, children: /* @__PURE__ */ M(
|
|
3655
3665
|
"img",
|
|
3656
3666
|
{
|
|
3657
|
-
ref: V ===
|
|
3667
|
+
ref: V === l ? F : null,
|
|
3658
3668
|
className: ae(D.imageStyle, {
|
|
3659
3669
|
[D.contain]: y.image.objectFit === "contain",
|
|
3660
3670
|
[D.cover]: y.image.objectFit === "cover",
|
|
@@ -3734,17 +3744,17 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3734
3744
|
)
|
|
3735
3745
|
] }),
|
|
3736
3746
|
L.closeIconUrl && (() => {
|
|
3737
|
-
const y =
|
|
3747
|
+
const y = Nt(L.closeIconAlign, L.closeIconOffset, i), V = `scale(${L.closeIconScale})`, Y = y.transform ? `${y.transform} ${V}` : V;
|
|
3738
3748
|
return /* @__PURE__ */ M("button", { className: D.closeButton, style: { ...y, transform: Y }, onClick: q, "aria-label": "Close lightbox", children: /* @__PURE__ */ M(dt, { url: L.closeIconUrl, fill: L.closeIconColor ?? "#000000", hoverFill: L.closeIconHover ?? "#cccccc" }) });
|
|
3739
3749
|
})(),
|
|
3740
|
-
_ && _.isActive && r.imageCaption && ((W = t[
|
|
3750
|
+
_ && _.isActive && r.imageCaption && ((W = t[l]) == null ? void 0 : W.imageCaption) && (() => {
|
|
3741
3751
|
const { widthSettings: y, fontSettings: V, letterSpacing: Y, textAlign: J, wordSpacing: te, fontSizeLineHeight: Z, textAppearance: X, color: oe } = r.imageCaption;
|
|
3742
3752
|
return /* @__PURE__ */ M(
|
|
3743
3753
|
"div",
|
|
3744
3754
|
{
|
|
3745
3755
|
className: D.caption,
|
|
3746
3756
|
style: {
|
|
3747
|
-
...
|
|
3757
|
+
...Nt(_.alignment, _.offset, i),
|
|
3748
3758
|
fontFamily: V.fontFamily,
|
|
3749
3759
|
fontWeight: V.fontWeight,
|
|
3750
3760
|
fontStyle: V.fontStyle,
|
|
@@ -3765,15 +3775,18 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3765
3775
|
{
|
|
3766
3776
|
"data-styles": "imageCaption",
|
|
3767
3777
|
className: D.captionTextInner,
|
|
3768
|
-
style: {
|
|
3769
|
-
|
|
3778
|
+
style: {
|
|
3779
|
+
"--link-color": _.linkColor,
|
|
3780
|
+
"--link-hover-color": _.linkHoverColor
|
|
3781
|
+
},
|
|
3782
|
+
children: /* @__PURE__ */ M(Mr, { content: t[l].imageCaption })
|
|
3770
3783
|
}
|
|
3771
3784
|
)
|
|
3772
3785
|
}
|
|
3773
3786
|
);
|
|
3774
3787
|
})(),
|
|
3775
3788
|
R.isActive && (() => {
|
|
3776
|
-
const [y, V] = R.position.split("-"), Y = f.direction === "horiz" ? `${y}-left` : R.position, J =
|
|
3789
|
+
const [y, V] = R.position.split("-"), Y = f.direction === "horiz" ? `${y}-left` : R.position, J = Nt(Y, R.offset, i), te = () => {
|
|
3777
3790
|
if (f.direction === "horiz") {
|
|
3778
3791
|
if (V === "left") return "flex-start";
|
|
3779
3792
|
if (V === "center") return "center";
|
|
@@ -3819,22 +3832,22 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3819
3832
|
justifyContent: O ? "flex-start" : te()
|
|
3820
3833
|
},
|
|
3821
3834
|
children: t.map((Z, X) => {
|
|
3822
|
-
const oe = X ===
|
|
3835
|
+
const oe = X === l, ye = w[X], pe = R.grid.size * (oe ? R.activeState.scale : 1), Tt = () => {
|
|
3823
3836
|
if (R.fit !== "fit") return {};
|
|
3824
3837
|
if (!ye)
|
|
3825
3838
|
return f.direction === "horiz" ? { height: U(pe, i) } : { width: U(pe, i) };
|
|
3826
3839
|
const Q = ye.width / ye.height;
|
|
3827
3840
|
if (f.direction === "horiz") {
|
|
3828
|
-
const ce = pe,
|
|
3841
|
+
const ce = pe, ke = ce * Q;
|
|
3829
3842
|
return {
|
|
3830
|
-
width: U(
|
|
3843
|
+
width: U(ke, i),
|
|
3831
3844
|
height: U(ce, i)
|
|
3832
3845
|
};
|
|
3833
3846
|
} else {
|
|
3834
|
-
const ce = pe,
|
|
3847
|
+
const ce = pe, ke = ce / Q;
|
|
3835
3848
|
return {
|
|
3836
3849
|
width: U(ce, i),
|
|
3837
|
-
height: U(
|
|
3850
|
+
height: U(ke, i)
|
|
3838
3851
|
};
|
|
3839
3852
|
}
|
|
3840
3853
|
};
|
|
@@ -3866,8 +3879,8 @@ const ja = ({ settings: e, content: n, styles: t, portalId: r, activeEvent: o, i
|
|
|
3866
3879
|
alt: Z.image.name ?? "",
|
|
3867
3880
|
onLoad: (Q) => {
|
|
3868
3881
|
const ce = Q.currentTarget;
|
|
3869
|
-
ce.naturalWidth && ce.naturalHeight &&
|
|
3870
|
-
...
|
|
3882
|
+
ce.naturalWidth && ce.naturalHeight && C((ke) => ({
|
|
3883
|
+
...ke,
|
|
3871
3884
|
[X]: { width: ce.naturalWidth, height: ce.naturalHeight }
|
|
3872
3885
|
}));
|
|
3873
3886
|
},
|
|
@@ -4459,8 +4472,16 @@ const Ha = {
|
|
|
4459
4472
|
}
|
|
4460
4473
|
}
|
|
4461
4474
|
},
|
|
4462
|
-
|
|
4463
|
-
title: "Link
|
|
4475
|
+
linkColor: {
|
|
4476
|
+
title: "Link",
|
|
4477
|
+
type: "string",
|
|
4478
|
+
display: {
|
|
4479
|
+
type: "settings-color-picker",
|
|
4480
|
+
format: "single"
|
|
4481
|
+
}
|
|
4482
|
+
},
|
|
4483
|
+
linkHoverColor: {
|
|
4484
|
+
title: "Link Hov",
|
|
4464
4485
|
type: "string",
|
|
4465
4486
|
display: {
|
|
4466
4487
|
type: "settings-color-picker",
|
|
@@ -4539,7 +4560,8 @@ const Ha = {
|
|
|
4539
4560
|
isActive: !0,
|
|
4540
4561
|
alignment: "middle-center",
|
|
4541
4562
|
offset: { x: 0, y: 0 },
|
|
4542
|
-
|
|
4563
|
+
linkColor: "#cccccc",
|
|
4564
|
+
linkHoverColor: "#cccccc"
|
|
4543
4565
|
}
|
|
4544
4566
|
}
|
|
4545
4567
|
},
|