@cntrl-site/components 1.0.7-alpha.8 → 1.0.7-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +34 -31
- package/dist/index.mjs +672 -669
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as h, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as h, Fragment as re, jsxs as dt } from "react/jsx-runtime";
|
|
2
|
+
import ge, { useState as ct, useEffect as $t, useRef as Ct, useCallback as Se, useMemo as Bt, useLayoutEffect as Mn } from "react";
|
|
3
3
|
import ut from "classnames";
|
|
4
|
-
import { s as F, u as Ho, b as No, g as
|
|
4
|
+
import { s as F, u as Ho, b as No, g as un } from "./useScopedStyles-BSwFAT27.mjs";
|
|
5
5
|
import { createPortal as Er } from "react-dom";
|
|
6
6
|
function Bs(t) {
|
|
7
7
|
return t.type === "object" && t.version === 1;
|
|
@@ -60,36 +60,36 @@ function Si(t, e) {
|
|
|
60
60
|
function xi(t, e, n) {
|
|
61
61
|
return e && Si(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
62
62
|
}
|
|
63
|
-
var fo = "(prefers-reduced-motion: reduce)",
|
|
64
|
-
CREATED:
|
|
63
|
+
var fo = "(prefers-reduced-motion: reduce)", we = 1, Ci = 2, Ae = 3, Ee = 4, Ue = 5, ln = 6, dn = 7, wi = {
|
|
64
|
+
CREATED: we,
|
|
65
65
|
MOUNTED: Ci,
|
|
66
|
-
IDLE:
|
|
67
|
-
MOVING:
|
|
68
|
-
SCROLLING:
|
|
69
|
-
DRAGGING:
|
|
70
|
-
DESTROYED:
|
|
66
|
+
IDLE: Ae,
|
|
67
|
+
MOVING: Ee,
|
|
68
|
+
SCROLLING: Ue,
|
|
69
|
+
DRAGGING: ln,
|
|
70
|
+
DESTROYED: dn
|
|
71
71
|
};
|
|
72
|
-
function
|
|
72
|
+
function te(t) {
|
|
73
73
|
t.length = 0;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function se(t, e, n) {
|
|
76
76
|
return Array.prototype.slice.call(t, e, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return t.bind.apply(t, [null].concat(
|
|
78
|
+
function yt(t) {
|
|
79
|
+
return t.bind.apply(t, [null].concat(se(arguments, 1)));
|
|
80
80
|
}
|
|
81
81
|
var Oo = setTimeout, Pn = function() {
|
|
82
82
|
};
|
|
83
83
|
function yo(t) {
|
|
84
84
|
return requestAnimationFrame(t);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function hn(t, e) {
|
|
87
87
|
return typeof e === t;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return !Gn(t) &&
|
|
89
|
+
function ze(t) {
|
|
90
|
+
return !Gn(t) && hn("object", t);
|
|
91
91
|
}
|
|
92
|
-
var Un = Array.isArray, Bo =
|
|
92
|
+
var Un = Array.isArray, Bo = yt(hn, "function"), ae = yt(hn, "string"), Ge = yt(hn, "undefined");
|
|
93
93
|
function Gn(t) {
|
|
94
94
|
return t === null;
|
|
95
95
|
}
|
|
@@ -100,27 +100,27 @@ function Vo(t) {
|
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function qe(t) {
|
|
104
104
|
return Un(t) ? t : [t];
|
|
105
105
|
}
|
|
106
106
|
function Wt(t, e) {
|
|
107
|
-
|
|
107
|
+
qe(t).forEach(e);
|
|
108
108
|
}
|
|
109
109
|
function qn(t, e) {
|
|
110
110
|
return t.indexOf(e) > -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return t.push.apply(t,
|
|
112
|
+
function sn(t, e) {
|
|
113
|
+
return t.push.apply(t, qe(e)), t;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Jt(t, e, n) {
|
|
116
116
|
t && Wt(e, function(o) {
|
|
117
117
|
o && t.classList[n ? "add" : "remove"](o);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
120
|
+
function Vt(t, e) {
|
|
121
|
+
Jt(t, ae(e) ? e.split(" ") : e, !0);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ye(t, e) {
|
|
124
124
|
Wt(e, t.appendChild.bind(t));
|
|
125
125
|
}
|
|
126
126
|
function Yn(t, e) {
|
|
@@ -129,44 +129,44 @@ function Yn(t, e) {
|
|
|
129
129
|
o && o.insertBefore(n, e);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function He(t, e) {
|
|
133
133
|
return Vo(t) && (t.msMatchesSelector || t.matches).call(t, e);
|
|
134
134
|
}
|
|
135
135
|
function Do(t, e) {
|
|
136
|
-
var n = t ?
|
|
136
|
+
var n = t ? se(t.children) : [];
|
|
137
137
|
return e ? n.filter(function(o) {
|
|
138
|
-
return
|
|
138
|
+
return He(o, e);
|
|
139
139
|
}) : n;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Xe(t, e) {
|
|
142
142
|
return e ? Do(t, e)[0] : t.firstElementChild;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
return t && (n ?
|
|
144
|
+
var Ne = Object.keys;
|
|
145
|
+
function me(t, e, n) {
|
|
146
|
+
return t && (n ? Ne(t).reverse() : Ne(t)).forEach(function(o) {
|
|
147
147
|
o !== "__proto__" && e(t[o], o);
|
|
148
148
|
}), t;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
152
|
-
|
|
150
|
+
function Oe(t) {
|
|
151
|
+
return se(arguments, 1).forEach(function(e) {
|
|
152
|
+
me(e, function(n, o) {
|
|
153
153
|
t[o] = e[o];
|
|
154
154
|
});
|
|
155
155
|
}), t;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
Un(n) ? t[o] = n.slice() :
|
|
157
|
+
function ne(t) {
|
|
158
|
+
return se(arguments, 1).forEach(function(e) {
|
|
159
|
+
me(e, function(n, o) {
|
|
160
|
+
Un(n) ? t[o] = n.slice() : ze(n) ? t[o] = ne({}, ze(t[o]) ? t[o] : {}, n) : t[o] = n;
|
|
161
161
|
});
|
|
162
162
|
}), t;
|
|
163
163
|
}
|
|
164
164
|
function ho(t, e) {
|
|
165
|
-
Wt(e ||
|
|
165
|
+
Wt(e || Ne(t), function(n) {
|
|
166
166
|
delete t[n];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Dt(t, e) {
|
|
170
170
|
Wt(t, function(n) {
|
|
171
171
|
Wt(e, function(o) {
|
|
172
172
|
n && n.removeAttribute(o);
|
|
@@ -174,30 +174,30 @@ function Vt(t, e) {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
function ot(t, e, n) {
|
|
177
|
-
|
|
177
|
+
ze(e) ? me(e, function(o, r) {
|
|
178
178
|
ot(t, r, o);
|
|
179
179
|
}) : Wt(t, function(o) {
|
|
180
|
-
Gn(n) || n === "" ?
|
|
180
|
+
Gn(n) || n === "" ? Dt(o, e) : o.setAttribute(e, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Te(t, e, n) {
|
|
184
184
|
var o = document.createElement(t);
|
|
185
|
-
return e && (
|
|
185
|
+
return e && (ae(e) ? Vt(o, e) : ot(o, e)), n && Ye(n, o), o;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
if (
|
|
187
|
+
function zt(t, e, n) {
|
|
188
|
+
if (Ge(n))
|
|
189
189
|
return getComputedStyle(t)[e];
|
|
190
190
|
Gn(n) || (t.style[e] = "" + n);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
192
|
+
function Be(t, e) {
|
|
193
|
+
zt(t, "display", e);
|
|
194
194
|
}
|
|
195
195
|
function jo(t) {
|
|
196
196
|
t.setActive && t.setActive() || t.focus({
|
|
197
197
|
preventScroll: !0
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Ht(t, e) {
|
|
201
201
|
return t.getAttribute(e);
|
|
202
202
|
}
|
|
203
203
|
function vo(t, e) {
|
|
@@ -206,48 +206,48 @@ function vo(t, e) {
|
|
|
206
206
|
function kt(t) {
|
|
207
207
|
return t.getBoundingClientRect();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function fe(t) {
|
|
210
210
|
Wt(t, function(e) {
|
|
211
211
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
function Uo(t) {
|
|
215
|
-
return
|
|
215
|
+
return Xe(new DOMParser().parseFromString(t, "text/html").body);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Kt(t, e) {
|
|
218
218
|
t.preventDefault(), e && (t.stopPropagation(), t.stopImmediatePropagation());
|
|
219
219
|
}
|
|
220
220
|
function Go(t, e) {
|
|
221
221
|
return t && t.querySelector(e);
|
|
222
222
|
}
|
|
223
223
|
function Xn(t, e) {
|
|
224
|
-
return e ?
|
|
224
|
+
return e ? se(t.querySelectorAll(e)) : [];
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
|
|
226
|
+
function Zt(t, e) {
|
|
227
|
+
Jt(t, e, !1);
|
|
228
228
|
}
|
|
229
229
|
function zn(t) {
|
|
230
230
|
return t.timeStamp;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
return
|
|
232
|
+
function de(t) {
|
|
233
|
+
return ae(t) ? t : t ? t + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
function
|
|
235
|
+
var Ke = "splide", Kn = "data-" + Ke;
|
|
236
|
+
function Me(t, e) {
|
|
237
237
|
if (!t)
|
|
238
|
-
throw new Error("[" +
|
|
238
|
+
throw new Error("[" + Ke + "] " + (e || ""));
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var le = Math.min, gn = Math.max, mn = Math.floor, Ve = Math.ceil, Ft = Math.abs;
|
|
241
241
|
function qo(t, e, n) {
|
|
242
|
-
return
|
|
242
|
+
return Ft(t - e) < n;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
var r =
|
|
244
|
+
function cn(t, e, n, o) {
|
|
245
|
+
var r = le(e, n), l = gn(e, n);
|
|
246
246
|
return o ? r < t && t < l : r <= t && t <= l;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var o =
|
|
250
|
-
return
|
|
248
|
+
function xe(t, e, n) {
|
|
249
|
+
var o = le(e, n), r = gn(e, n);
|
|
250
|
+
return le(gn(o, t), r);
|
|
251
251
|
}
|
|
252
252
|
function Hn(t) {
|
|
253
253
|
return +(t > 0) - +(t < 0);
|
|
@@ -299,7 +299,7 @@ function Yo() {
|
|
|
299
299
|
function l() {
|
|
300
300
|
t.forEach(function(i) {
|
|
301
301
|
i[4]();
|
|
302
|
-
}),
|
|
302
|
+
}), te(t);
|
|
303
303
|
}
|
|
304
304
|
return {
|
|
305
305
|
bind: e,
|
|
@@ -308,29 +308,29 @@ function Yo() {
|
|
|
308
308
|
destroy: l
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var
|
|
311
|
+
var ce = "mounted", On = "ready", ee = "move", Fe = "moved", Zn = "click", Xo = "active", Ko = "inactive", Jo = "visible", Zo = "hidden", Tt = "refresh", Lt = "updated", Ie = "resize", vn = "resized", Qo = "drag", tr = "dragging", er = "dragged", bn = "scroll", he = "scrolled", _i = "overflow", Qn = "destroy", nr = "arrows:mounted", or = "arrows:updated", rr = "pagination:mounted", ir = "pagination:updated", to = "navigation:mounted", eo = "autoplay:play", ar = "autoplay:playing", no = "autoplay:pause", oo = "lazyload:loaded", lr = "sk", sr = "sh", fn = "ei";
|
|
312
312
|
function bt(t) {
|
|
313
313
|
var e = t ? t.event.bus : document.createDocumentFragment(), n = Yo();
|
|
314
314
|
function o(l, i) {
|
|
315
|
-
n.bind(e,
|
|
315
|
+
n.bind(e, qe(l).join(" "), function(s) {
|
|
316
316
|
i.apply(i, Un(s.detail) ? s.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function r(l) {
|
|
320
|
-
n.dispatch(e, l,
|
|
320
|
+
n.dispatch(e, l, se(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return t && t.event.on(Qn, n.destroy),
|
|
322
|
+
return t && t.event.on(Qn, n.destroy), Oe(n, {
|
|
323
323
|
bus: e,
|
|
324
324
|
on: o,
|
|
325
|
-
off:
|
|
325
|
+
off: yt(n.unbind, e),
|
|
326
326
|
emit: r
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Sn(t, e, n, o) {
|
|
330
330
|
var r = Date.now, l, i = 0, s, c = !0, d = 0;
|
|
331
331
|
function p() {
|
|
332
332
|
if (!c) {
|
|
333
|
-
if (i = t ?
|
|
333
|
+
if (i = t ? le((r() - l) / t, 1) : 1, n && n(i), i >= 1 && (e(), l = r(), o && ++d >= o))
|
|
334
334
|
return x();
|
|
335
335
|
s = yo(p);
|
|
336
336
|
}
|
|
@@ -368,7 +368,7 @@ function $i(t) {
|
|
|
368
368
|
e = r;
|
|
369
369
|
}
|
|
370
370
|
function o(r) {
|
|
371
|
-
return qn(
|
|
371
|
+
return qn(qe(r), e);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
@@ -376,7 +376,7 @@ function $i(t) {
|
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
function Ai(t, e) {
|
|
379
|
-
var n =
|
|
379
|
+
var n = Sn(0, t, null, 1);
|
|
380
380
|
return function() {
|
|
381
381
|
n.isPaused() && n.start();
|
|
382
382
|
};
|
|
@@ -385,7 +385,7 @@ function Ii(t, e, n) {
|
|
|
385
385
|
var o = t.state, r = n.breakpoints || {}, l = n.reducedMotion || {}, i = Yo(), s = [];
|
|
386
386
|
function c() {
|
|
387
387
|
var u = n.mediaQuery === "min";
|
|
388
|
-
|
|
388
|
+
Ne(r).sort(function(g, w) {
|
|
389
389
|
return u ? +g - +w : +w - +g;
|
|
390
390
|
}).forEach(function(g) {
|
|
391
391
|
p(r[g], "(" + (u ? "min" : "max") + "-width:" + g + "px)");
|
|
@@ -399,16 +399,16 @@ function Ii(t, e, n) {
|
|
|
399
399
|
i.bind(w, "change", L), s.push([u, w]);
|
|
400
400
|
}
|
|
401
401
|
function L() {
|
|
402
|
-
var u = o.is(
|
|
403
|
-
return
|
|
402
|
+
var u = o.is(dn), g = n.direction, w = s.reduce(function(v, b) {
|
|
403
|
+
return ne(v, b[1].matches ? b[0] : {});
|
|
404
404
|
}, {});
|
|
405
405
|
ho(n), f(w), n.destroy ? t.destroy(n.destroy === "completely") : u ? (d(!0), t.mount()) : g !== n.direction && t.refresh();
|
|
406
406
|
}
|
|
407
407
|
function x(u) {
|
|
408
|
-
matchMedia(fo).matches && (u ?
|
|
408
|
+
matchMedia(fo).matches && (u ? ne(n, l) : ho(n, Ne(l)));
|
|
409
409
|
}
|
|
410
410
|
function f(u, g, w) {
|
|
411
|
-
|
|
411
|
+
ne(n, u), g && ne(Object.getPrototypeOf(n), u), (w || !o.is(we)) && t.emit(Lt, n);
|
|
412
412
|
}
|
|
413
413
|
return {
|
|
414
414
|
setup: c,
|
|
@@ -417,20 +417,20 @@ function Ii(t, e, n) {
|
|
|
417
417
|
set: f
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var xn = "Arrow", Cn = xn + "Left", wn = xn + "Right", cr = xn + "Up", pr = xn + "Down", So = "rtl", Tn = "ttb", Ln = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
424
424
|
x: ["y"],
|
|
425
425
|
X: ["Y"],
|
|
426
426
|
Y: ["X"],
|
|
427
|
-
ArrowLeft: [cr,
|
|
428
|
-
ArrowRight: [pr,
|
|
427
|
+
ArrowLeft: [cr, wn],
|
|
428
|
+
ArrowRight: [pr, Cn]
|
|
429
429
|
};
|
|
430
430
|
function Li(t, e, n) {
|
|
431
431
|
function o(l, i, s) {
|
|
432
432
|
s = s || n.direction;
|
|
433
|
-
var c = s === So && !i ? 1 : s ===
|
|
433
|
+
var c = s === So && !i ? 1 : s === Tn ? 0 : -1;
|
|
434
434
|
return Ln[l] && Ln[l][c] || l.replace(/width|left|right/i, function(d, p) {
|
|
435
435
|
var L = Ln[d.toLowerCase()][c] || d;
|
|
436
436
|
return p > 0 ? L.charAt(0).toUpperCase() + L.slice(1) : L;
|
|
@@ -444,21 +444,21 @@ function Li(t, e, n) {
|
|
|
444
444
|
orient: r
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
slide:
|
|
447
|
+
var Qt = "role", _e = "tabindex", Ei = "disabled", Nt = "aria-", Je = Nt + "controls", ur = Nt + "current", xo = Nt + "selected", Rt = Nt + "label", ro = Nt + "labelledby", dr = Nt + "hidden", io = Nt + "orientation", De = Nt + "roledescription", Co = Nt + "live", wo = Nt + "busy", To = Nt + "atomic", ao = [Qt, _e, Ei, Je, ur, Rt, ro, dr, io, De], jt = Ke + "__", pe = "is-", En = Ke, _o = jt + "track", Fi = jt + "list", _n = jt + "slide", gr = _n + "--clone", ki = _n + "__container", lo = jt + "arrows", $n = jt + "arrow", mr = $n + "--prev", fr = $n + "--next", An = jt + "pagination", yr = An + "__page", Ri = jt + "progress", Wi = Ri + "__bar", Mi = jt + "toggle", Pi = jt + "spinner", zi = jt + "sr", Hi = pe + "initialized", ye = pe + "active", hr = pe + "prev", vr = pe + "next", Bn = pe + "visible", Vn = pe + "loading", br = pe + "focus-in", Sr = pe + "overflow", Ni = [ye, Bn, hr, vr, Vn, br, Sr], Oi = {
|
|
448
|
+
slide: _n,
|
|
449
449
|
clone: gr,
|
|
450
450
|
arrows: lo,
|
|
451
|
-
arrow:
|
|
451
|
+
arrow: $n,
|
|
452
452
|
prev: mr,
|
|
453
453
|
next: fr,
|
|
454
|
-
pagination:
|
|
454
|
+
pagination: An,
|
|
455
455
|
page: yr,
|
|
456
456
|
spinner: Pi
|
|
457
457
|
};
|
|
458
458
|
function Bi(t, e) {
|
|
459
459
|
if (Bo(t.closest))
|
|
460
460
|
return t.closest(e);
|
|
461
|
-
for (var n = t; n && n.nodeType === 1 && !
|
|
461
|
+
for (var n = t; n && n.nodeType === 1 && !He(n, e); )
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
@@ -474,27 +474,27 @@ function Di(t, e, n) {
|
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), l(i, "focusin", function() {
|
|
477
|
-
|
|
477
|
+
Jt(i, br, !!u);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function v(S) {
|
|
481
481
|
var k = ao.concat("style");
|
|
482
|
-
|
|
482
|
+
te(d), Zt(i, p), Zt(x, L), Dt([x, f], k), Dt(i, S ? k : ["style", De]);
|
|
483
483
|
}
|
|
484
484
|
function b() {
|
|
485
|
-
|
|
485
|
+
Zt(i, p), Zt(x, L), p = T(En), L = T(_o), Vt(i, p), Vt(x, L), ot(i, Rt, n.label), ot(i, ro, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function I() {
|
|
488
|
-
x = N("." + _o), f =
|
|
488
|
+
x = N("." + _o), f = Xe(x, "." + Fi), Me(x && f, "A track/list element is missing."), sn(d, Do(f, "." + _n + ":not(." + gr + ")")), me({
|
|
489
489
|
arrows: lo,
|
|
490
|
-
pagination:
|
|
490
|
+
pagination: An,
|
|
491
491
|
prev: mr,
|
|
492
492
|
next: fr,
|
|
493
493
|
bar: Wi,
|
|
494
494
|
toggle: Mi
|
|
495
495
|
}, function(S, k) {
|
|
496
496
|
c[k] = N("." + S);
|
|
497
|
-
}),
|
|
497
|
+
}), Oe(c, {
|
|
498
498
|
root: i,
|
|
499
499
|
track: x,
|
|
500
500
|
list: f,
|
|
@@ -502,40 +502,40 @@ function Di(t, e, n) {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function G() {
|
|
505
|
-
var S = i.id || Ti(
|
|
506
|
-
i.id = S, x.id = x.id || S + "-track", f.id = f.id || S + "-list", !
|
|
505
|
+
var S = i.id || Ti(Ke), k = n.role;
|
|
506
|
+
i.id = S, x.id = x.id || S + "-track", f.id = f.id || S + "-list", !Ht(i, Qt) && i.tagName !== "SECTION" && k && ot(i, Qt, k), ot(i, De, s.carousel), ot(f, Qt, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function N(S) {
|
|
509
509
|
var k = Go(i, S);
|
|
510
510
|
return k && Bi(k, "." + En) === i ? k : void 0;
|
|
511
511
|
}
|
|
512
512
|
function T(S) {
|
|
513
|
-
return [S + "--" + n.type, S + "--" + n.direction, n.drag && S + "--draggable", n.isNavigation && S + "--nav", S === En &&
|
|
513
|
+
return [S + "--" + n.type, S + "--" + n.direction, n.drag && S + "--draggable", n.isNavigation && S + "--nav", S === En && ye];
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return Oe(c, {
|
|
516
516
|
setup: g,
|
|
517
517
|
mount: w,
|
|
518
518
|
destroy: v
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
var
|
|
521
|
+
var Le = "slide", ke = "loop", Ze = "fade";
|
|
522
522
|
function ji(t, e, n, o) {
|
|
523
|
-
var r = bt(t), l = r.on, i = r.emit, s = r.bind, c = t.Components, d = t.root, p = t.options, L = p.isNavigation, x = p.updateOnMove, f = p.i18n, u = p.pagination, g = p.slideFocus, w = c.Direction.resolve, v =
|
|
523
|
+
var r = bt(t), l = r.on, i = r.emit, s = r.bind, c = t.Components, d = t.root, p = t.options, L = p.isNavigation, x = p.updateOnMove, f = p.i18n, u = p.pagination, g = p.slideFocus, w = c.Direction.resolve, v = Ht(o, "style"), b = Ht(o, Rt), I = n > -1, G = Xe(o, "." + ki), N;
|
|
524
524
|
function T() {
|
|
525
|
-
I || (o.id = d.id + "-slide" + Jn(e + 1), ot(o,
|
|
525
|
+
I || (o.id = d.id + "-slide" + Jn(e + 1), ot(o, Qt, u ? "tabpanel" : "group"), ot(o, De, f.slide), ot(o, Rt, b || Nn(f.slideLabel, [e + 1, t.length]))), S();
|
|
526
526
|
}
|
|
527
527
|
function S() {
|
|
528
|
-
s(o, "click",
|
|
528
|
+
s(o, "click", yt(i, Zn, A)), s(o, "keydown", yt(i, lr, A)), l([Fe, sr, he], W), l(to, C), x && l(ee, O);
|
|
529
529
|
}
|
|
530
530
|
function k() {
|
|
531
|
-
N = !0, r.destroy(),
|
|
531
|
+
N = !0, r.destroy(), Zt(o, Ni), Dt(o, ao), ot(o, "style", v), ot(o, Rt, b || "");
|
|
532
532
|
}
|
|
533
533
|
function C() {
|
|
534
534
|
var $ = t.splides.map(function(_) {
|
|
535
535
|
var E = _.splide.Components.Slides.getAt(e);
|
|
536
536
|
return E ? E.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
ot(o, Rt, Nn(f.slideX, (I ? n : e) + 1)), ot(o,
|
|
538
|
+
ot(o, Rt, Nn(f.slideX, (I ? n : e) + 1)), ot(o, Je, $), ot(o, Qt, g ? "button" : ""), g && Dt(o, De);
|
|
539
539
|
}
|
|
540
540
|
function O() {
|
|
541
541
|
N || W();
|
|
@@ -543,36 +543,36 @@ function ji(t, e, n, o) {
|
|
|
543
543
|
function W() {
|
|
544
544
|
if (!N) {
|
|
545
545
|
var $ = t.index;
|
|
546
|
-
H(), z(),
|
|
546
|
+
H(), z(), Jt(o, hr, e === $ - 1), Jt(o, vr, e === $ + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function H() {
|
|
550
550
|
var $ = D();
|
|
551
|
-
$ !== vo(o,
|
|
551
|
+
$ !== vo(o, ye) && (Jt(o, ye, $), ot(o, ur, L && $ || ""), i($ ? Xo : Ko, A));
|
|
552
552
|
}
|
|
553
553
|
function z() {
|
|
554
554
|
var $ = m(), _ = !$ && (!D() || I);
|
|
555
|
-
if (t.state.is([
|
|
555
|
+
if (t.state.is([Ee, Ue]) || ot(o, dr, _ || ""), ot(Xn(o, p.focusableNodes || ""), _e, _ ? -1 : ""), g && ot(o, _e, _ ? -1 : 0), $ !== vo(o, Bn) && (Jt(o, Bn, $), i($ ? Jo : Zo, A)), !$ && document.activeElement === o) {
|
|
556
556
|
var E = c.Slides.getAt(t.index);
|
|
557
557
|
E && jo(E.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function q($, _, E) {
|
|
561
|
-
|
|
561
|
+
zt(E && G || o, $, _);
|
|
562
562
|
}
|
|
563
563
|
function D() {
|
|
564
564
|
var $ = t.index;
|
|
565
565
|
return $ === e || p.cloneStatus && $ === n;
|
|
566
566
|
}
|
|
567
567
|
function m() {
|
|
568
|
-
if (t.is(
|
|
568
|
+
if (t.is(Ze))
|
|
569
569
|
return D();
|
|
570
570
|
var $ = kt(c.Elements.track), _ = kt(o), E = w("left", !0), K = w("right", !0);
|
|
571
|
-
return
|
|
571
|
+
return mn($[E]) <= Ve(_[E]) && mn(_[K]) <= Ve($[K]);
|
|
572
572
|
}
|
|
573
573
|
function R($, _) {
|
|
574
|
-
var E =
|
|
575
|
-
return !I && (p.rewind || t.is(
|
|
574
|
+
var E = Ft($ - e);
|
|
575
|
+
return !I && (p.rewind || t.is(ke)) && (E = le(E, t.length - E)), E <= _;
|
|
576
576
|
}
|
|
577
577
|
var A = {
|
|
578
578
|
index: e,
|
|
@@ -601,7 +601,7 @@ function Ui(t, e, n) {
|
|
|
601
601
|
function f() {
|
|
602
602
|
N(function(W) {
|
|
603
603
|
W.destroy();
|
|
604
|
-
}),
|
|
604
|
+
}), te(p);
|
|
605
605
|
}
|
|
606
606
|
function u() {
|
|
607
607
|
N(function(W) {
|
|
@@ -622,7 +622,7 @@ function Ui(t, e, n) {
|
|
|
622
622
|
function v(W) {
|
|
623
623
|
var H = e.Controller, z = H.toIndex(W), q = H.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return T(function(D) {
|
|
625
|
-
return
|
|
625
|
+
return cn(D.index, z, z + q - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function b(W) {
|
|
@@ -630,14 +630,14 @@ function Ui(t, e, n) {
|
|
|
630
630
|
}
|
|
631
631
|
function I(W, H) {
|
|
632
632
|
Wt(W, function(z) {
|
|
633
|
-
if (
|
|
633
|
+
if (ae(z) && (z = Uo(z)), Vo(z)) {
|
|
634
634
|
var q = c[H];
|
|
635
|
-
q ? Yn(z, q) :
|
|
635
|
+
q ? Yn(z, q) : Ye(d, z), Vt(z, n.classes.slide), k(z, yt(l, Ie));
|
|
636
636
|
}
|
|
637
637
|
}), l(Tt);
|
|
638
638
|
}
|
|
639
639
|
function G(W) {
|
|
640
|
-
|
|
640
|
+
fe(T(W).map(function(H) {
|
|
641
641
|
return H.slide;
|
|
642
642
|
})), l(Tt);
|
|
643
643
|
}
|
|
@@ -646,7 +646,7 @@ function Ui(t, e, n) {
|
|
|
646
646
|
}
|
|
647
647
|
function T(W) {
|
|
648
648
|
return p.filter(Bo(W) ? W : function(H) {
|
|
649
|
-
return
|
|
649
|
+
return ae(W) ? He(H.slide, W) : qn(qe(W), H.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function S(W, H, z) {
|
|
@@ -688,34 +688,34 @@ function Ui(t, e, n) {
|
|
|
688
688
|
function Gi(t, e, n) {
|
|
689
689
|
var o = bt(t), r = o.on, l = o.bind, i = o.emit, s = e.Slides, c = e.Direction.resolve, d = e.Elements, p = d.root, L = d.track, x = d.list, f = s.getAt, u = s.style, g, w, v;
|
|
690
690
|
function b() {
|
|
691
|
-
I(), l(window, "resize load", Ai(
|
|
691
|
+
I(), l(window, "resize load", Ai(yt(i, Ie))), r([Lt, Tt], I), r(Ie, G);
|
|
692
692
|
}
|
|
693
693
|
function I() {
|
|
694
|
-
g = n.direction ===
|
|
694
|
+
g = n.direction === Tn, zt(p, "maxWidth", de(n.width)), zt(L, c("paddingLeft"), N(!1)), zt(L, c("paddingRight"), N(!0)), G(!0);
|
|
695
695
|
}
|
|
696
696
|
function G(A) {
|
|
697
697
|
var $ = kt(p);
|
|
698
|
-
(A || w.width !== $.width || w.height !== $.height) && (
|
|
698
|
+
(A || w.width !== $.width || w.height !== $.height) && (zt(L, "height", T()), u(c("marginRight"), de(n.gap)), u("width", k()), u("height", C(), !0), w = $, i(vn), v !== (v = R()) && (Jt(p, Sr, v), i(_i, v)));
|
|
699
699
|
}
|
|
700
700
|
function N(A) {
|
|
701
701
|
var $ = n.padding, _ = c(A ? "right" : "left");
|
|
702
|
-
return $ &&
|
|
702
|
+
return $ && de($[_] || (ze($) ? 0 : $)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function T() {
|
|
705
705
|
var A = "";
|
|
706
|
-
return g && (A = S(),
|
|
706
|
+
return g && (A = S(), Me(A, "height or heightRatio is missing."), A = "calc(" + A + " - " + N(!1) + " - " + N(!0) + ")"), A;
|
|
707
707
|
}
|
|
708
708
|
function S() {
|
|
709
|
-
return
|
|
709
|
+
return de(n.height || kt(x).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
711
|
function k() {
|
|
712
|
-
return n.autoWidth ? null :
|
|
712
|
+
return n.autoWidth ? null : de(n.fixedWidth) || (g ? "" : O());
|
|
713
713
|
}
|
|
714
714
|
function C() {
|
|
715
|
-
return
|
|
715
|
+
return de(n.fixedHeight) || (g ? n.autoHeight ? null : O() : S());
|
|
716
716
|
}
|
|
717
717
|
function O() {
|
|
718
|
-
var A =
|
|
718
|
+
var A = de(n.gap);
|
|
719
719
|
return "calc((100%" + (A && " + " + A) + ")/" + (n.perPage || 1) + (A && " - " + A) + ")";
|
|
720
720
|
}
|
|
721
721
|
function W() {
|
|
@@ -729,7 +729,7 @@ function Gi(t, e, n) {
|
|
|
729
729
|
var _ = f(A);
|
|
730
730
|
if (_) {
|
|
731
731
|
var E = kt(_.slide)[c("right")], K = kt(x)[c("left")];
|
|
732
|
-
return
|
|
732
|
+
return Ft(E - K) + ($ ? 0 : D());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
@@ -738,13 +738,13 @@ function Gi(t, e, n) {
|
|
|
738
738
|
}
|
|
739
739
|
function D() {
|
|
740
740
|
var A = f(0);
|
|
741
|
-
return A && parseFloat(
|
|
741
|
+
return A && parseFloat(zt(A.slide, c("marginRight"))) || 0;
|
|
742
742
|
}
|
|
743
743
|
function m(A) {
|
|
744
|
-
return parseFloat(
|
|
744
|
+
return parseFloat(zt(L, c("padding" + (A ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function R() {
|
|
747
|
-
return t.is(
|
|
747
|
+
return t.is(Ze) || q(!0) > W();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: b,
|
|
@@ -761,13 +761,13 @@ var qi = 2;
|
|
|
761
761
|
function Yi(t, e, n) {
|
|
762
762
|
var o = bt(t), r = o.on, l = e.Elements, i = e.Slides, s = e.Direction.resolve, c = [], d;
|
|
763
763
|
function p() {
|
|
764
|
-
r(Tt, L), r([Lt,
|
|
764
|
+
r(Tt, L), r([Lt, Ie], f), (d = w()) && (u(d), e.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
766
|
function L() {
|
|
767
767
|
x(), p();
|
|
768
768
|
}
|
|
769
769
|
function x() {
|
|
770
|
-
|
|
770
|
+
fe(c), te(c), o.destroy();
|
|
771
771
|
}
|
|
772
772
|
function f() {
|
|
773
773
|
var v = w();
|
|
@@ -777,23 +777,23 @@ function Yi(t, e, n) {
|
|
|
777
777
|
var b = i.get().slice(), I = b.length;
|
|
778
778
|
if (I) {
|
|
779
779
|
for (; b.length < v; )
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
sn(b, b);
|
|
781
|
+
sn(b.slice(-v), b.slice(0, v)).forEach(function(G, N) {
|
|
782
782
|
var T = N < v, S = g(G.slide, N);
|
|
783
|
-
T ? Yn(S, b[0].slide) :
|
|
783
|
+
T ? Yn(S, b[0].slide) : Ye(l.list, S), sn(c, S), i.register(S, N - v + (T ? 0 : I), G.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function g(v, b) {
|
|
788
788
|
var I = v.cloneNode(!0);
|
|
789
|
-
return
|
|
789
|
+
return Vt(I, n.classes.clone), I.id = t.root.id + "-clone" + Jn(b + 1), I;
|
|
790
790
|
}
|
|
791
791
|
function w() {
|
|
792
792
|
var v = n.clones;
|
|
793
|
-
if (!t.is(
|
|
793
|
+
if (!t.is(ke))
|
|
794
794
|
v = 0;
|
|
795
|
-
else if (
|
|
796
|
-
var b = n[s("fixedWidth")] && e.Layout.slideSize(0), I = b &&
|
|
795
|
+
else if (Ge(v)) {
|
|
796
|
+
var b = n[s("fixedWidth")] && e.Layout.slideSize(0), I = b && Ve(kt(l.track)[s("width")] / b);
|
|
797
797
|
v = I || n[s("autoWidth")] && t.length || n.perPage * qi;
|
|
798
798
|
}
|
|
799
799
|
return v;
|
|
@@ -806,27 +806,27 @@ function Yi(t, e, n) {
|
|
|
806
806
|
function Xi(t, e, n) {
|
|
807
807
|
var o = bt(t), r = o.on, l = o.emit, i = t.state.set, s = e.Layout, c = s.slideSize, d = s.getPadding, p = s.totalSize, L = s.listSize, x = s.sliderSize, f = e.Direction, u = f.resolve, g = f.orient, w = e.Elements, v = w.list, b = w.track, I;
|
|
808
808
|
function G() {
|
|
809
|
-
I = e.Transition, r([
|
|
809
|
+
I = e.Transition, r([ce, vn, Lt, Tt], N);
|
|
810
810
|
}
|
|
811
811
|
function N() {
|
|
812
812
|
e.Controller.isBusy() || (e.Scroll.cancel(), S(t.index), e.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function T(_, E, K, it) {
|
|
815
|
-
_ !== E && A(_ > K) && (W(), k(O(q(), _ > K), !0)), i(
|
|
816
|
-
i(
|
|
815
|
+
_ !== E && A(_ > K) && (W(), k(O(q(), _ > K), !0)), i(Ee), l(ee, E, K, _), I.start(E, function() {
|
|
816
|
+
i(Ae), l(Fe, E, K, _), it && it();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function S(_) {
|
|
820
820
|
k(z(_, !0));
|
|
821
821
|
}
|
|
822
822
|
function k(_, E) {
|
|
823
|
-
if (!t.is(
|
|
823
|
+
if (!t.is(Ze)) {
|
|
824
824
|
var K = E ? _ : C(_);
|
|
825
|
-
|
|
825
|
+
zt(v, "transform", "translate" + u("X") + "(" + K + "px)"), _ !== K && l(sr);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function C(_) {
|
|
829
|
-
if (t.is(
|
|
829
|
+
if (t.is(ke)) {
|
|
830
830
|
var E = H(_), K = E > e.Controller.getEnd(), it = E < 0;
|
|
831
831
|
(it || K) && (_ = O(_, K));
|
|
832
832
|
}
|
|
@@ -834,14 +834,14 @@ function Xi(t, e, n) {
|
|
|
834
834
|
}
|
|
835
835
|
function O(_, E) {
|
|
836
836
|
var K = _ - R(E), it = x();
|
|
837
|
-
return _ -= g(it * (
|
|
837
|
+
return _ -= g(it * (Ve(Ft(K) / it) || 1)) * (E ? 1 : -1), _;
|
|
838
838
|
}
|
|
839
839
|
function W() {
|
|
840
840
|
k(q(), !0), I.cancel();
|
|
841
841
|
}
|
|
842
842
|
function H(_) {
|
|
843
|
-
for (var E = e.Slides.get(), K = 0, it = 1 / 0,
|
|
844
|
-
var rt = E[
|
|
843
|
+
for (var E = e.Slides.get(), K = 0, it = 1 / 0, et = 0; et < E.length; et++) {
|
|
844
|
+
var rt = E[et].index, M = Ft(z(rt, !0) - _);
|
|
845
845
|
if (M <= it)
|
|
846
846
|
it = M, K = rt;
|
|
847
847
|
else
|
|
@@ -858,7 +858,7 @@ function Xi(t, e, n) {
|
|
|
858
858
|
return kt(v)[_] - kt(b)[_] + g(d(!1));
|
|
859
859
|
}
|
|
860
860
|
function D(_) {
|
|
861
|
-
return n.trimSpace && t.is(
|
|
861
|
+
return n.trimSpace && t.is(Le) && (_ = xe(_, 0, g(x(!0) - L()))), _;
|
|
862
862
|
}
|
|
863
863
|
function m(_) {
|
|
864
864
|
var E = n.focus;
|
|
@@ -872,7 +872,7 @@ function Xi(t, e, n) {
|
|
|
872
872
|
return _ ? E >= 0 : E <= v[u("scrollWidth")] - kt(b)[u("width")];
|
|
873
873
|
}
|
|
874
874
|
function $(_, E) {
|
|
875
|
-
E =
|
|
875
|
+
E = Ge(E) ? q() : E;
|
|
876
876
|
var K = _ !== !0 && g(E) < g(R(!1)), it = _ !== !1 && g(E) > g(R(!0));
|
|
877
877
|
return K || it;
|
|
878
878
|
}
|
|
@@ -892,54 +892,54 @@ function Xi(t, e, n) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function Ki(t, e, n) {
|
|
895
|
-
var o = bt(t), r = o.on, l = o.emit, i = e.Move, s = i.getPosition, c = i.getLimit, d = i.toPosition, p = e.Slides, L = p.isEnough, x = p.getLength, f = n.omitEnd, u = t.is(
|
|
895
|
+
var o = bt(t), r = o.on, l = o.emit, i = e.Move, s = i.getPosition, c = i.getLimit, d = i.toPosition, p = e.Slides, L = p.isEnough, x = p.getLength, f = n.omitEnd, u = t.is(ke), g = t.is(Le), w = yt(q, !1), v = yt(q, !0), b = n.start || 0, I, G = b, N, T, S;
|
|
896
896
|
function k() {
|
|
897
|
-
C(), r([Lt, Tt,
|
|
897
|
+
C(), r([Lt, Tt, fn], C), r(vn, O);
|
|
898
898
|
}
|
|
899
899
|
function C() {
|
|
900
900
|
N = x(!0), T = n.perMove, S = n.perPage, I = A();
|
|
901
|
-
var M =
|
|
901
|
+
var M = xe(b, 0, f ? I : N - 1);
|
|
902
902
|
M !== b && (b = M, i.reposition());
|
|
903
903
|
}
|
|
904
904
|
function O() {
|
|
905
|
-
I !== A() && l(
|
|
905
|
+
I !== A() && l(fn);
|
|
906
906
|
}
|
|
907
|
-
function W(M,
|
|
907
|
+
function W(M, Q, gt) {
|
|
908
908
|
if (!rt()) {
|
|
909
|
-
var
|
|
910
|
-
mt > -1 && (
|
|
909
|
+
var lt = z(M), mt = R(lt);
|
|
910
|
+
mt > -1 && (Q || mt !== b) && (K(mt), i.move(lt, mt, G, gt));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function H(M,
|
|
914
|
-
e.Scroll.scroll(M,
|
|
913
|
+
function H(M, Q, gt, lt) {
|
|
914
|
+
e.Scroll.scroll(M, Q, gt, function() {
|
|
915
915
|
var mt = R(i.toIndex(s()));
|
|
916
|
-
K(f ?
|
|
916
|
+
K(f ? le(mt, I) : mt), lt && lt();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function z(M) {
|
|
920
|
-
var
|
|
921
|
-
if (
|
|
922
|
-
var gt = M.match(/([+\-<>])(\d+)?/) || [],
|
|
923
|
-
|
|
920
|
+
var Q = b;
|
|
921
|
+
if (ae(M)) {
|
|
922
|
+
var gt = M.match(/([+\-<>])(\d+)?/) || [], lt = gt[1], mt = gt[2];
|
|
923
|
+
lt === "+" || lt === "-" ? Q = D(b + +("" + lt + (+mt || 1)), b) : lt === ">" ? Q = mt ? $(+mt) : w(!0) : lt === "<" && (Q = v(!0));
|
|
924
924
|
} else
|
|
925
|
-
|
|
926
|
-
return
|
|
925
|
+
Q = u ? M : xe(M, 0, I);
|
|
926
|
+
return Q;
|
|
927
927
|
}
|
|
928
|
-
function q(M,
|
|
929
|
-
var gt = T || (
|
|
930
|
-
return
|
|
928
|
+
function q(M, Q) {
|
|
929
|
+
var gt = T || (et() ? 1 : S), lt = D(b + gt * (M ? -1 : 1), b, !(T || et()));
|
|
930
|
+
return lt === -1 && g && !qo(s(), c(!M), 1) ? M ? 0 : I : Q ? lt : R(lt);
|
|
931
931
|
}
|
|
932
|
-
function D(M,
|
|
933
|
-
if (L() ||
|
|
934
|
-
var
|
|
935
|
-
|
|
932
|
+
function D(M, Q, gt) {
|
|
933
|
+
if (L() || et()) {
|
|
934
|
+
var lt = m(M);
|
|
935
|
+
lt !== M && (Q = M, M = lt, gt = !1), M < 0 || M > I ? !T && (cn(0, M, Q, !0) || cn(I, Q, M, !0)) ? M = $(_(M)) : u ? M = gt ? M < 0 ? -(N % S || S) : N : M : n.rewind ? M = M < 0 ? I : 0 : M = -1 : gt && M !== Q && (M = $(_(Q) + (M < Q ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
M = -1;
|
|
938
938
|
return M;
|
|
939
939
|
}
|
|
940
940
|
function m(M) {
|
|
941
941
|
if (g && n.trimSpace === "move" && M !== b)
|
|
942
|
-
for (var
|
|
942
|
+
for (var Q = s(); Q === d(M, !0) && cn(M, 0, t.length - 1, !n.rewind); )
|
|
943
943
|
M < b ? --M : ++M;
|
|
944
944
|
return M;
|
|
945
945
|
}
|
|
@@ -947,22 +947,22 @@ function Ki(t, e, n) {
|
|
|
947
947
|
return u ? (M + N) % N || 0 : M;
|
|
948
948
|
}
|
|
949
949
|
function A() {
|
|
950
|
-
for (var M = N - (
|
|
950
|
+
for (var M = N - (et() || u && T ? 1 : S); f && M-- > 0; )
|
|
951
951
|
if (d(N - 1, !0) !== d(M, !0)) {
|
|
952
952
|
M++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return xe(M, 0, N - 1);
|
|
956
956
|
}
|
|
957
957
|
function $(M) {
|
|
958
|
-
return
|
|
958
|
+
return xe(et() ? M : S * M, 0, I);
|
|
959
959
|
}
|
|
960
960
|
function _(M) {
|
|
961
|
-
return
|
|
961
|
+
return et() ? le(M, I) : mn((M >= I ? N - 1 : M) / S);
|
|
962
962
|
}
|
|
963
963
|
function E(M) {
|
|
964
|
-
var
|
|
965
|
-
return g ?
|
|
964
|
+
var Q = i.toIndex(M);
|
|
965
|
+
return g ? xe(Q, 0, I) : Q;
|
|
966
966
|
}
|
|
967
967
|
function K(M) {
|
|
968
968
|
M !== b && (G = b, b = M);
|
|
@@ -970,11 +970,11 @@ function Ki(t, e, n) {
|
|
|
970
970
|
function it(M) {
|
|
971
971
|
return M ? G : b;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
974
|
-
return !
|
|
973
|
+
function et() {
|
|
974
|
+
return !Ge(n.focus) || n.isNavigation;
|
|
975
975
|
}
|
|
976
976
|
function rt() {
|
|
977
|
-
return t.state.is([
|
|
977
|
+
return t.state.is([Ee, Ue]) && !!n.waitForTransition;
|
|
978
978
|
}
|
|
979
979
|
return {
|
|
980
980
|
mount: k,
|
|
@@ -989,11 +989,11 @@ function Ki(t, e, n) {
|
|
|
989
989
|
toIndex: $,
|
|
990
990
|
toPage: _,
|
|
991
991
|
toDest: E,
|
|
992
|
-
hasFocus:
|
|
992
|
+
hasFocus: et,
|
|
993
993
|
isBusy: rt
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
var Ji = "http://www.w3.org/2000/svg", Zi = "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",
|
|
996
|
+
var Ji = "http://www.w3.org/2000/svg", Zi = "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", en = 40;
|
|
997
997
|
function Qi(t, e, n) {
|
|
998
998
|
var o = bt(t), r = o.on, l = o.bind, i = o.emit, s = n.classes, c = n.i18n, d = e.Elements, p = e.Controller, L = d.arrows, x = d.track, f = L, u = d.prev, g = d.next, w, v, b = {};
|
|
999
999
|
function I() {
|
|
@@ -1004,25 +1004,25 @@ function Qi(t, e, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function N() {
|
|
1006
1006
|
var H = n.arrows;
|
|
1007
|
-
H && !(u && g) && C(), u && g && (
|
|
1007
|
+
H && !(u && g) && C(), u && g && (Oe(b, {
|
|
1008
1008
|
prev: u,
|
|
1009
1009
|
next: g
|
|
1010
|
-
}),
|
|
1010
|
+
}), Be(f, H ? "" : "none"), Vt(f, v = lo + "--" + n.direction), H && (S(), W(), ot([u, g], Je, x.id), i(nr, u, g)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function T() {
|
|
1013
|
-
o.destroy(),
|
|
1013
|
+
o.destroy(), Zt(f, v), w ? (fe(L ? [u, g] : f), u = g = null) : Dt([u, g], ao);
|
|
1014
1014
|
}
|
|
1015
1015
|
function S() {
|
|
1016
|
-
r([
|
|
1016
|
+
r([ce, Fe, Tt, he, fn], W), l(g, "click", yt(k, ">")), l(u, "click", yt(k, "<"));
|
|
1017
1017
|
}
|
|
1018
1018
|
function k(H) {
|
|
1019
1019
|
p.go(H, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function C() {
|
|
1022
|
-
f = L ||
|
|
1022
|
+
f = L || Te("div", s.arrows), u = O(!0), g = O(!1), w = !0, Ye(f, [u, g]), !L && Yn(f, x);
|
|
1023
1023
|
}
|
|
1024
1024
|
function O(H) {
|
|
1025
|
-
var z = '<button class="' + s.arrow + " " + (H ? s.prev : s.next) + '" type="button"><svg xmlns="' + Ji + '" viewBox="0 0 ' +
|
|
1025
|
+
var z = '<button class="' + s.arrow + " " + (H ? s.prev : s.next) + '" type="button"><svg xmlns="' + Ji + '" viewBox="0 0 ' + en + " " + en + '" width="' + en + '" height="' + en + '" focusable="false"><path d="' + (n.arrowPath || Zi) + '" />';
|
|
1026
1026
|
return Uo(z);
|
|
1027
1027
|
}
|
|
1028
1028
|
function W() {
|
|
@@ -1040,9 +1040,9 @@ function Qi(t, e, n) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
var ta = Kn + "-interval";
|
|
1042
1042
|
function ea(t, e, n) {
|
|
1043
|
-
var o = bt(t), r = o.on, l = o.bind, i = o.emit, s =
|
|
1043
|
+
var o = bt(t), r = o.on, l = o.bind, i = o.emit, s = Sn(n.interval, t.go.bind(t, ">"), S), c = s.isPaused, d = e.Elements, p = e.Elements, L = p.root, x = p.toggle, f = n.autoplay, u, g, w = f === "pause";
|
|
1044
1044
|
function v() {
|
|
1045
|
-
f && (b(), x && ot(x,
|
|
1045
|
+
f && (b(), x && ot(x, Je, d.track.id), w || I(), T());
|
|
1046
1046
|
}
|
|
1047
1047
|
function b() {
|
|
1048
1048
|
n.pauseOnHover && l(L, "mouseenter mouseleave", function(C) {
|
|
@@ -1051,7 +1051,7 @@ function ea(t, e, n) {
|
|
|
1051
1051
|
g = C.type === "focusin", N();
|
|
1052
1052
|
}), x && l(x, "click", function() {
|
|
1053
1053
|
w ? I() : G(!0);
|
|
1054
|
-
}), r([
|
|
1054
|
+
}), r([ee, bn, Tt], s.rewind), r(ee, k);
|
|
1055
1055
|
}
|
|
1056
1056
|
function I() {
|
|
1057
1057
|
c() && e.Slides.isEnough() && (s.start(!n.resetProgress), g = u = w = !1, T(), i(eo));
|
|
@@ -1063,15 +1063,15 @@ function ea(t, e, n) {
|
|
|
1063
1063
|
w || (u || g ? G(!1) : I());
|
|
1064
1064
|
}
|
|
1065
1065
|
function T() {
|
|
1066
|
-
x && (
|
|
1066
|
+
x && (Jt(x, ye, !w), ot(x, Rt, n.i18n[w ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function S(C) {
|
|
1069
1069
|
var O = d.bar;
|
|
1070
|
-
O &&
|
|
1070
|
+
O && zt(O, "width", C * 100 + "%"), i(ar, C);
|
|
1071
1071
|
}
|
|
1072
1072
|
function k(C) {
|
|
1073
1073
|
var O = e.Slides.getAt(C);
|
|
1074
|
-
s.set(O && +
|
|
1074
|
+
s.set(O && +Ht(O.slide, ta) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
mount: v,
|
|
@@ -1084,43 +1084,43 @@ function ea(t, e, n) {
|
|
|
1084
1084
|
function na(t, e, n) {
|
|
1085
1085
|
var o = bt(t), r = o.on;
|
|
1086
1086
|
function l() {
|
|
1087
|
-
n.cover && (r(oo,
|
|
1087
|
+
n.cover && (r(oo, yt(s, !0)), r([ce, Lt, Tt], yt(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(c) {
|
|
1090
1090
|
e.Slides.forEach(function(d) {
|
|
1091
|
-
var p =
|
|
1091
|
+
var p = Xe(d.container || d.slide, "img");
|
|
1092
1092
|
p && p.src && s(c, p, d);
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
1095
|
function s(c, d, p) {
|
|
1096
|
-
p.style("background", c ? 'center/cover no-repeat url("' + d.src + '")' : "", !0),
|
|
1096
|
+
p.style("background", c ? 'center/cover no-repeat url("' + d.src + '")' : "", !0), Be(d, c ? "none" : "");
|
|
1097
1097
|
}
|
|
1098
1098
|
return {
|
|
1099
1099
|
mount: l,
|
|
1100
|
-
destroy:
|
|
1100
|
+
destroy: yt(i, !1)
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
1103
|
var oa = 10, ra = 600, ia = 0.6, aa = 1.5, la = 800;
|
|
1104
1104
|
function sa(t, e, n) {
|
|
1105
|
-
var o = bt(t), r = o.on, l = o.emit, i = t.state.set, s = e.Move, c = s.getPosition, d = s.getLimit, p = s.exceededLimit, L = s.translate, x = t.is(
|
|
1105
|
+
var o = bt(t), r = o.on, l = o.emit, i = t.state.set, s = e.Move, c = s.getPosition, d = s.getLimit, p = s.exceededLimit, L = s.translate, x = t.is(Le), f, u, g = 1;
|
|
1106
1106
|
function w() {
|
|
1107
|
-
r(
|
|
1107
|
+
r(ee, G), r([Lt, Tt], N);
|
|
1108
1108
|
}
|
|
1109
1109
|
function v(S, k, C, O, W) {
|
|
1110
1110
|
var H = c();
|
|
1111
1111
|
if (G(), C && (!x || !p())) {
|
|
1112
|
-
var z = e.Layout.sliderSize(), q = Hn(S) * z *
|
|
1112
|
+
var z = e.Layout.sliderSize(), q = Hn(S) * z * mn(Ft(S) / z) || 0;
|
|
1113
1113
|
S = s.toPosition(e.Controller.toDest(S % z)) + q;
|
|
1114
1114
|
}
|
|
1115
1115
|
var D = qo(H, S, 1);
|
|
1116
|
-
g = 1, k = D ? 0 : k ||
|
|
1116
|
+
g = 1, k = D ? 0 : k || gn(Ft(S - H) / aa, la), u = O, f = Sn(k, b, yt(I, H, S, W), 1), i(Ue), l(bn), f.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function b() {
|
|
1119
|
-
i(
|
|
1119
|
+
i(Ae), u && u(), l(he);
|
|
1120
1120
|
}
|
|
1121
1121
|
function I(S, k, C, O) {
|
|
1122
1122
|
var W = c(), H = S + (k - S) * T(O), z = (H - W) * g;
|
|
1123
|
-
L(W + z), x && !C && p() && (g *= ia,
|
|
1123
|
+
L(W + z), x && !C && p() && (g *= ia, Ft(z) < oa && v(d(p(!0)), ra, !1, u, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function G() {
|
|
1126
1126
|
f && f.cancel();
|
|
@@ -1139,16 +1139,16 @@ function sa(t, e, n) {
|
|
|
1139
1139
|
cancel: N
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var Ce = {
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function ca(t, e, n) {
|
|
1147
1147
|
var o = bt(t), r = o.on, l = o.emit, i = o.bind, s = o.unbind, c = t.state, d = e.Move, p = e.Scroll, L = e.Controller, x = e.Elements.track, f = e.Media.reduce, u = e.Direction, g = u.resolve, w = u.orient, v = d.getPosition, b = d.exceededLimit, I, G, N, T, S, k = !1, C, O, W;
|
|
1148
1148
|
function H() {
|
|
1149
|
-
i(x, Fn, Pn,
|
|
1149
|
+
i(x, Fn, Pn, Ce), i(x, kn, Pn, Ce), i(x, xr, q, Ce), i(x, "click", R, {
|
|
1150
1150
|
capture: !0
|
|
1151
|
-
}), i(x, "dragstart",
|
|
1151
|
+
}), i(x, "dragstart", Kt), r([ce, Lt], z);
|
|
1152
1152
|
}
|
|
1153
1153
|
function z() {
|
|
1154
1154
|
var j = n.drag;
|
|
@@ -1157,50 +1157,50 @@ function ca(t, e, n) {
|
|
|
1157
1157
|
function q(j) {
|
|
1158
1158
|
if (C = !1, !O) {
|
|
1159
1159
|
var a = mt(j);
|
|
1160
|
-
|
|
1160
|
+
lt(j.target) && (a || !j.button) && (L.isBusy() ? Kt(j, !0) : (W = a ? x : window, S = c.is([Ee, Ue]), N = null, i(W, Fn, D, Ce), i(W, kn, m, Ce), d.cancel(), p.cancel(), A(j)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function D(j) {
|
|
1164
|
-
if (c.is(
|
|
1164
|
+
if (c.is(ln) || (c.set(ln), l(Qo)), j.cancelable)
|
|
1165
1165
|
if (S) {
|
|
1166
|
-
d.translate(I + gt(
|
|
1166
|
+
d.translate(I + gt(et(j)));
|
|
1167
1167
|
var a = rt(j) > $o, y = k !== (k = b());
|
|
1168
|
-
(a || y) && A(j), C = !0, l(tr),
|
|
1169
|
-
} else E(j) && (S = _(j),
|
|
1168
|
+
(a || y) && A(j), C = !0, l(tr), Kt(j);
|
|
1169
|
+
} else E(j) && (S = _(j), Kt(j));
|
|
1170
1170
|
}
|
|
1171
1171
|
function m(j) {
|
|
1172
|
-
c.is(
|
|
1172
|
+
c.is(ln) && (c.set(Ae), l(er)), S && ($(j), Kt(j)), s(W, Fn, D), s(W, kn, m), S = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function R(j) {
|
|
1175
|
-
!O && C &&
|
|
1175
|
+
!O && C && Kt(j, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function A(j) {
|
|
1178
1178
|
N = G, G = j, I = v();
|
|
1179
1179
|
}
|
|
1180
1180
|
function $(j) {
|
|
1181
1181
|
var a = K(j), y = it(a), P = n.rewind && n.rewindByDrag;
|
|
1182
|
-
f(!1), T ? L.scroll(y, 0, n.snap) : t.is(
|
|
1182
|
+
f(!1), T ? L.scroll(y, 0, n.snap) : t.is(Ze) ? L.go(w(Hn(a)) < 0 ? P ? "<" : "-" : P ? ">" : "+") : t.is(Le) && k && P ? L.go(b(!0) ? ">" : "<") : L.go(L.toDest(y), !0), f(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function _(j) {
|
|
1185
|
-
var a = n.dragMinThreshold, y =
|
|
1186
|
-
return
|
|
1185
|
+
var a = n.dragMinThreshold, y = ze(a), P = y && a.mouse || 0, B = (y ? a.touch : +a) || 10;
|
|
1186
|
+
return Ft(et(j)) > (mt(j) ? B : P);
|
|
1187
1187
|
}
|
|
1188
1188
|
function E(j) {
|
|
1189
|
-
return
|
|
1189
|
+
return Ft(et(j)) > Ft(et(j, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function K(j) {
|
|
1192
|
-
if (t.is(
|
|
1192
|
+
if (t.is(ke) || !k) {
|
|
1193
1193
|
var a = rt(j);
|
|
1194
1194
|
if (a && a < $o)
|
|
1195
|
-
return
|
|
1195
|
+
return et(j) / a;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function it(j) {
|
|
1200
|
-
return v() + Hn(j) *
|
|
1200
|
+
return v() + Hn(j) * le(Ft(j) * (n.flickPower || 600), T ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1202
|
+
function et(j, a) {
|
|
1203
|
+
return Q(j, a) - Q(M(j), a);
|
|
1204
1204
|
}
|
|
1205
1205
|
function rt(j) {
|
|
1206
1206
|
return zn(j) - zn(M(j));
|
|
@@ -1208,20 +1208,20 @@ function ca(t, e, n) {
|
|
|
1208
1208
|
function M(j) {
|
|
1209
1209
|
return G === j && N || G;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Q(j, a) {
|
|
1212
1212
|
return (mt(j) ? j.changedTouches[0] : j)["page" + g(a ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function gt(j) {
|
|
1215
|
-
return j / (k && t.is(
|
|
1215
|
+
return j / (k && t.is(Le) ? Vi : 1);
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function lt(j) {
|
|
1218
1218
|
var a = n.noDrag;
|
|
1219
|
-
return !
|
|
1219
|
+
return !He(j, "." + yr + ", ." + $n) && (!a || !He(j, a));
|
|
1220
1220
|
}
|
|
1221
1221
|
function mt(j) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && j instanceof TouchEvent;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function ht() {
|
|
1225
1225
|
return S;
|
|
1226
1226
|
}
|
|
1227
1227
|
function It(j) {
|
|
@@ -1230,24 +1230,24 @@ function ca(t, e, n) {
|
|
|
1230
1230
|
return {
|
|
1231
1231
|
mount: H,
|
|
1232
1232
|
disable: It,
|
|
1233
|
-
isDragging:
|
|
1233
|
+
isDragging: ht
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
1236
|
var pa = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
|
-
Right:
|
|
1239
|
-
Left:
|
|
1238
|
+
Right: wn,
|
|
1239
|
+
Left: Cn,
|
|
1240
1240
|
Up: cr,
|
|
1241
1241
|
Down: pr
|
|
1242
1242
|
};
|
|
1243
1243
|
function so(t) {
|
|
1244
|
-
return t =
|
|
1244
|
+
return t = ae(t) ? t : t.key, pa[t] || t;
|
|
1245
1245
|
}
|
|
1246
1246
|
var Ao = "keydown";
|
|
1247
1247
|
function ua(t, e, n) {
|
|
1248
1248
|
var o = bt(t), r = o.on, l = o.bind, i = o.unbind, s = t.root, c = e.Direction.resolve, d, p;
|
|
1249
1249
|
function L() {
|
|
1250
|
-
x(), r(Lt, f), r(Lt, x), r(
|
|
1250
|
+
x(), r(Lt, f), r(Lt, x), r(ee, g);
|
|
1251
1251
|
}
|
|
1252
1252
|
function x() {
|
|
1253
1253
|
var v = n.keyboard;
|
|
@@ -1268,7 +1268,7 @@ function ua(t, e, n) {
|
|
|
1268
1268
|
function w(v) {
|
|
1269
1269
|
if (!p) {
|
|
1270
1270
|
var b = so(v);
|
|
1271
|
-
b === c(
|
|
1271
|
+
b === c(Cn) ? t.go("<") : b === c(wn) && t.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
@@ -1277,22 +1277,22 @@ function ua(t, e, n) {
|
|
|
1277
1277
|
disable: u
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var Pe = Kn + "-lazy", pn = Pe + "-srcset", da = "[" + Pe + "], [" + pn + "]";
|
|
1281
1281
|
function ga(t, e, n) {
|
|
1282
|
-
var o = bt(t), r = o.on, l = o.off, i = o.bind, s = o.emit, c = n.lazyLoad === "sequential", d = [
|
|
1282
|
+
var o = bt(t), r = o.on, l = o.off, i = o.bind, s = o.emit, c = n.lazyLoad === "sequential", d = [Fe, he], p = [];
|
|
1283
1283
|
function L() {
|
|
1284
1284
|
n.lazyLoad && (x(), r(Tt, x));
|
|
1285
1285
|
}
|
|
1286
1286
|
function x() {
|
|
1287
|
-
|
|
1287
|
+
te(p), f(), c ? v() : (l(d), r(d, u), u());
|
|
1288
1288
|
}
|
|
1289
1289
|
function f() {
|
|
1290
1290
|
e.Slides.forEach(function(b) {
|
|
1291
1291
|
Xn(b.slide, da).forEach(function(I) {
|
|
1292
|
-
var G =
|
|
1292
|
+
var G = Ht(I, Pe), N = Ht(I, pn);
|
|
1293
1293
|
if (G !== I.src || N !== I.srcset) {
|
|
1294
|
-
var T = n.classes.spinner, S = I.parentElement, k =
|
|
1295
|
-
p.push([I, b, k]), I.src ||
|
|
1294
|
+
var T = n.classes.spinner, S = I.parentElement, k = Xe(S, "." + T) || Te("span", T, S);
|
|
1295
|
+
p.push([I, b, k]), I.src || Be(I, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
@@ -1305,45 +1305,45 @@ function ga(t, e, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function g(b) {
|
|
1307
1307
|
var I = b[0];
|
|
1308
|
-
|
|
1308
|
+
Vt(b[1].slide, Vn), i(I, "load error", yt(w, b)), ot(I, "src", Ht(I, Pe)), ot(I, "srcset", Ht(I, pn)), Dt(I, Pe), Dt(I, pn);
|
|
1309
1309
|
}
|
|
1310
1310
|
function w(b, I) {
|
|
1311
1311
|
var G = b[0], N = b[1];
|
|
1312
|
-
|
|
1312
|
+
Zt(N.slide, Vn), I.type !== "error" && (fe(b[2]), Be(G, ""), s(oo, G, N), s(Ie)), c && v();
|
|
1313
1313
|
}
|
|
1314
1314
|
function v() {
|
|
1315
1315
|
p.length && g(p.shift());
|
|
1316
1316
|
}
|
|
1317
1317
|
return {
|
|
1318
1318
|
mount: L,
|
|
1319
|
-
destroy:
|
|
1319
|
+
destroy: yt(te, p),
|
|
1320
1320
|
check: u
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
1323
|
function ma(t, e, n) {
|
|
1324
1324
|
var o = bt(t), r = o.on, l = o.emit, i = o.bind, s = e.Slides, c = e.Elements, d = e.Controller, p = d.hasFocus, L = d.getIndex, x = d.go, f = e.Direction.resolve, u = c.pagination, g = [], w, v;
|
|
1325
1325
|
function b() {
|
|
1326
|
-
I(), r([Lt, Tt,
|
|
1326
|
+
I(), r([Lt, Tt, fn], b);
|
|
1327
1327
|
var O = n.pagination;
|
|
1328
|
-
u &&
|
|
1328
|
+
u && Be(u, O ? "" : "none"), O && (r([ee, bn, he], C), G(), C(), l(rr, {
|
|
1329
1329
|
list: w,
|
|
1330
1330
|
items: g
|
|
1331
1331
|
}, k(t.index)));
|
|
1332
1332
|
}
|
|
1333
1333
|
function I() {
|
|
1334
|
-
w && (
|
|
1334
|
+
w && (fe(u ? se(w.children) : w), Zt(w, v), te(g), w = null), o.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function G() {
|
|
1337
|
-
var O = t.length, W = n.classes, H = n.i18n, z = n.perPage, q = p() ? d.getEnd() + 1 :
|
|
1338
|
-
w = u ||
|
|
1337
|
+
var O = t.length, W = n.classes, H = n.i18n, z = n.perPage, q = p() ? d.getEnd() + 1 : Ve(O / z);
|
|
1338
|
+
w = u || Te("ul", W.pagination, c.track.parentElement), Vt(w, v = An + "--" + S()), ot(w, Qt, "tablist"), ot(w, Rt, H.select), ot(w, io, S() === Tn ? "vertical" : "");
|
|
1339
1339
|
for (var D = 0; D < q; D++) {
|
|
1340
|
-
var m =
|
|
1340
|
+
var m = Te("li", null, w), R = Te("button", {
|
|
1341
1341
|
class: W.page,
|
|
1342
1342
|
type: "button"
|
|
1343
1343
|
}, m), A = s.getIn(D).map(function(_) {
|
|
1344
1344
|
return _.slide.id;
|
|
1345
1345
|
}), $ = !p() && z > 1 ? H.pageX : H.slideX;
|
|
1346
|
-
i(R, "click",
|
|
1346
|
+
i(R, "click", yt(N, D)), n.paginationKeyboard && i(R, "keydown", yt(T, D)), ot(m, Qt, "presentation"), ot(R, Qt, "tab"), ot(R, Je, A.join(" ")), ot(R, Rt, Nn($, D + 1)), ot(R, _e, -1), g.push({
|
|
1347
1347
|
li: m,
|
|
1348
1348
|
button: R,
|
|
1349
1349
|
page: D
|
|
@@ -1355,9 +1355,9 @@ function ma(t, e, n) {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
function T(O, W) {
|
|
1357
1357
|
var H = g.length, z = so(W), q = S(), D = -1;
|
|
1358
|
-
z === f(
|
|
1358
|
+
z === f(wn, !1, q) ? D = ++O % H : z === f(Cn, !1, q) ? D = (--O + H) % H : z === "Home" ? D = 0 : z === "End" && (D = H - 1);
|
|
1359
1359
|
var m = g[D];
|
|
1360
|
-
m && (jo(m.button), x(">" + D),
|
|
1360
|
+
m && (jo(m.button), x(">" + D), Kt(W, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function S() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1369,11 +1369,11 @@ function ma(t, e, n) {
|
|
|
1369
1369
|
var O = k(L(!0)), W = k(L());
|
|
1370
1370
|
if (O) {
|
|
1371
1371
|
var H = O.button;
|
|
1372
|
-
|
|
1372
|
+
Zt(H, ye), Dt(H, xo), ot(H, _e, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (W) {
|
|
1375
1375
|
var z = W.button;
|
|
1376
|
-
|
|
1376
|
+
Vt(z, ye), ot(z, xo, !0), ot(z, _e, "");
|
|
1377
1377
|
}
|
|
1378
1378
|
l(ir, {
|
|
1379
1379
|
list: w,
|
|
@@ -1399,33 +1399,33 @@ function ya(t, e, n) {
|
|
|
1399
1399
|
function s() {
|
|
1400
1400
|
l.forEach(function(u) {
|
|
1401
1401
|
u.destroy();
|
|
1402
|
-
}),
|
|
1402
|
+
}), te(l);
|
|
1403
1403
|
}
|
|
1404
1404
|
function c() {
|
|
1405
1405
|
s(), i();
|
|
1406
1406
|
}
|
|
1407
1407
|
function d(u, g) {
|
|
1408
1408
|
var w = bt(u);
|
|
1409
|
-
w.on(
|
|
1410
|
-
g.go(g.is(
|
|
1409
|
+
w.on(ee, function(v, b, I) {
|
|
1410
|
+
g.go(g.is(ke) ? I : v);
|
|
1411
1411
|
}), l.push(w);
|
|
1412
1412
|
}
|
|
1413
1413
|
function p() {
|
|
1414
1414
|
var u = bt(t), g = u.on;
|
|
1415
|
-
g(Zn, x), g(lr, f), g([
|
|
1415
|
+
g(Zn, x), g(lr, f), g([ce, Lt], L), l.push(u), u.emit(to, t.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function L() {
|
|
1418
|
-
ot(e.Elements.list, io, n.direction ===
|
|
1418
|
+
ot(e.Elements.list, io, n.direction === Tn ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function x(u) {
|
|
1421
1421
|
t.go(u.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function f(u, g) {
|
|
1424
|
-
qn(fa, so(g)) && (x(u),
|
|
1424
|
+
qn(fa, so(g)) && (x(u), Kt(g));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
|
-
setup:
|
|
1428
|
-
slideFocus:
|
|
1427
|
+
setup: yt(e.Media.set, {
|
|
1428
|
+
slideFocus: Ge(r) ? o : r
|
|
1429
1429
|
}, !0),
|
|
1430
1430
|
mount: i,
|
|
1431
1431
|
destroy: s,
|
|
@@ -1435,16 +1435,16 @@ function ya(t, e, n) {
|
|
|
1435
1435
|
function ha(t, e, n) {
|
|
1436
1436
|
var o = bt(t), r = o.bind, l = 0;
|
|
1437
1437
|
function i() {
|
|
1438
|
-
n.wheel && r(e.Elements.track, "wheel", s,
|
|
1438
|
+
n.wheel && r(e.Elements.track, "wheel", s, Ce);
|
|
1439
1439
|
}
|
|
1440
1440
|
function s(d) {
|
|
1441
1441
|
if (d.cancelable) {
|
|
1442
1442
|
var p = d.deltaY, L = p < 0, x = zn(d), f = n.wheelMinThreshold || 0, u = n.wheelSleep || 0;
|
|
1443
|
-
|
|
1443
|
+
Ft(p) > f && x - l > u && (t.go(L ? "<" : ">"), l = x), c(L) && Kt(d);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function c(d) {
|
|
1447
|
-
return !n.releaseWheel || t.state.is(
|
|
1447
|
+
return !n.releaseWheel || t.state.is(Ee) || e.Controller.getAdjacent(d) !== -1;
|
|
1448
1448
|
}
|
|
1449
1449
|
return {
|
|
1450
1450
|
mount: i
|
|
@@ -1452,15 +1452,15 @@ function ha(t, e, n) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
var va = 90;
|
|
1454
1454
|
function ba(t, e, n) {
|
|
1455
|
-
var o = bt(t), r = o.on, l = e.Elements.track, i = n.live && !n.isNavigation, s =
|
|
1455
|
+
var o = bt(t), r = o.on, l = e.Elements.track, i = n.live && !n.isNavigation, s = Te("span", zi), c = Sn(va, yt(p, !1));
|
|
1456
1456
|
function d() {
|
|
1457
|
-
i && (x(!e.Autoplay.isPaused()), ot(l, To, !0), s.textContent = "…", r(eo,
|
|
1457
|
+
i && (x(!e.Autoplay.isPaused()), ot(l, To, !0), s.textContent = "…", r(eo, yt(x, !0)), r(no, yt(x, !1)), r([Fe, he], yt(p, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function p(f) {
|
|
1460
|
-
ot(l, wo, f), f ? (
|
|
1460
|
+
ot(l, wo, f), f ? (Ye(l, s), c.start()) : (fe(s), c.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function L() {
|
|
1463
|
-
|
|
1463
|
+
Dt(l, [Co, To, wo]), fe(s);
|
|
1464
1464
|
}
|
|
1465
1465
|
function x(f) {
|
|
1466
1466
|
i && ot(l, Co, f ? "off" : "polite");
|
|
@@ -1535,7 +1535,7 @@ var Sa = /* @__PURE__ */ Object.freeze({
|
|
|
1535
1535
|
function wa(t, e, n) {
|
|
1536
1536
|
var o = e.Slides;
|
|
1537
1537
|
function r() {
|
|
1538
|
-
bt(t).on([
|
|
1538
|
+
bt(t).on([ce, Tt], l);
|
|
1539
1539
|
}
|
|
1540
1540
|
function l() {
|
|
1541
1541
|
o.forEach(function(s) {
|
|
@@ -1552,7 +1552,7 @@ function wa(t, e, n) {
|
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
1554
|
function Ta(t, e, n) {
|
|
1555
|
-
var o = e.Move, r = e.Controller, l = e.Scroll, i = e.Elements.list, s =
|
|
1555
|
+
var o = e.Move, r = e.Controller, l = e.Scroll, i = e.Elements.list, s = yt(zt, i, "transition"), c;
|
|
1556
1556
|
function d() {
|
|
1557
1557
|
bt(t).bind(i, "transitionend", function(f) {
|
|
1558
1558
|
f.target === i && c && (L(), c());
|
|
@@ -1560,14 +1560,14 @@ function Ta(t, e, n) {
|
|
|
1560
1560
|
}
|
|
1561
1561
|
function p(f, u) {
|
|
1562
1562
|
var g = o.toPosition(f, !0), w = o.getPosition(), v = x(f);
|
|
1563
|
-
|
|
1563
|
+
Ft(g - w) >= 1 && v >= 1 ? n.useScroll ? l.scroll(g, v, !1, u) : (s("transform " + v + "ms " + n.easing), o.translate(g, !0), c = u) : (o.jump(f), u());
|
|
1564
1564
|
}
|
|
1565
1565
|
function L() {
|
|
1566
1566
|
s(""), l.cancel();
|
|
1567
1567
|
}
|
|
1568
1568
|
function x(f) {
|
|
1569
1569
|
var u = n.rewindSpeed;
|
|
1570
|
-
if (t.is(
|
|
1570
|
+
if (t.is(Le) && u) {
|
|
1571
1571
|
var g = r.getIndex(!0), w = r.getEnd();
|
|
1572
1572
|
if (g === 0 && f >= w || g >= w && f === 0)
|
|
1573
1573
|
return u;
|
|
@@ -1582,39 +1582,39 @@ function Ta(t, e, n) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
var _a = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function t(n, o) {
|
|
1585
|
-
this.event = bt(), this.Components = {}, this.state = $i(
|
|
1586
|
-
var r =
|
|
1587
|
-
|
|
1588
|
-
label:
|
|
1589
|
-
labelledby:
|
|
1585
|
+
this.event = bt(), this.Components = {}, this.state = $i(we), this.splides = [], this._o = {}, this._E = {};
|
|
1586
|
+
var r = ae(n) ? Go(document, n) : n;
|
|
1587
|
+
Me(r, r + " is invalid."), this.root = r, o = ne({
|
|
1588
|
+
label: Ht(r, Rt) || "",
|
|
1589
|
+
labelledby: Ht(r, ro) || ""
|
|
1590
1590
|
}, Ca, t.defaults, o || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
|
|
1592
|
+
ne(o, JSON.parse(Ht(r, Kn)));
|
|
1593
1593
|
} catch {
|
|
1594
|
-
|
|
1594
|
+
Me(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
1596
|
-
this._o = Object.create(
|
|
1596
|
+
this._o = Object.create(ne({}, o));
|
|
1597
1597
|
}
|
|
1598
1598
|
var e = t.prototype;
|
|
1599
1599
|
return e.mount = function(o, r) {
|
|
1600
1600
|
var l = this, i = this.state, s = this.Components;
|
|
1601
|
-
|
|
1602
|
-
var c =
|
|
1601
|
+
Me(i.is([we, dn]), "Already mounted!"), i.set(we), this._C = s, this._T = r || this._T || (this.is(Ze) ? wa : Ta), this._E = o || this._E;
|
|
1602
|
+
var c = Oe({}, Sa, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
|
-
return
|
|
1605
|
+
return me(c, function(d, p) {
|
|
1606
1606
|
var L = d(l, s, l._o);
|
|
1607
1607
|
s[p] = L, L.setup && L.setup();
|
|
1608
|
-
}),
|
|
1608
|
+
}), me(s, function(d) {
|
|
1609
1609
|
d.mount && d.mount();
|
|
1610
|
-
}), this.emit(
|
|
1610
|
+
}), this.emit(ce), Vt(this.root, Hi), i.set(Ae), this.emit(On), this;
|
|
1611
1611
|
}, e.sync = function(o) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: o
|
|
1614
1614
|
}), o.splides.push({
|
|
1615
1615
|
splide: this,
|
|
1616
1616
|
isParent: !0
|
|
1617
|
-
}), this.state.is(
|
|
1617
|
+
}), this.state.is(Ae) && (this._C.Sync.remount(), o.Components.Sync.remount()), this;
|
|
1618
1618
|
}, e.go = function(o) {
|
|
1619
1619
|
return this._C.Controller.go(o), this;
|
|
1620
1620
|
}, e.on = function(o, r) {
|
|
@@ -1623,7 +1623,7 @@ var _a = /* @__PURE__ */ (function() {
|
|
|
1623
1623
|
return this.event.off(o), this;
|
|
1624
1624
|
}, e.emit = function(o) {
|
|
1625
1625
|
var r;
|
|
1626
|
-
return (r = this.event).emit.apply(r, [o].concat(
|
|
1626
|
+
return (r = this.event).emit.apply(r, [o].concat(se(arguments, 1))), this;
|
|
1627
1627
|
}, e.add = function(o, r) {
|
|
1628
1628
|
return this._C.Slides.add(o, r), this;
|
|
1629
1629
|
}, e.remove = function(o) {
|
|
@@ -1635,9 +1635,9 @@ var _a = /* @__PURE__ */ (function() {
|
|
|
1635
1635
|
}, e.destroy = function(o) {
|
|
1636
1636
|
o === void 0 && (o = !0);
|
|
1637
1637
|
var r = this.event, l = this.state;
|
|
1638
|
-
return l.is(
|
|
1638
|
+
return l.is(we) ? bt(this).on(On, this.destroy.bind(this, o)) : (me(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(o);
|
|
1640
|
-
}, !0), r.emit(Qn), r.destroy(), o &&
|
|
1640
|
+
}, !0), r.emit(Qn), r.destroy(), o && te(this.splides), l.set(dn)), this;
|
|
1641
1641
|
}, xi(t, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
@@ -1661,10 +1661,10 @@ var _a = /* @__PURE__ */ (function() {
|
|
|
1661
1661
|
co.defaults = {};
|
|
1662
1662
|
co.STATES = wi;
|
|
1663
1663
|
var Io = [
|
|
1664
|
-
[
|
|
1664
|
+
[ce, "onMounted"],
|
|
1665
1665
|
[On, "onReady"],
|
|
1666
|
-
[
|
|
1667
|
-
[
|
|
1666
|
+
[ee, "onMove"],
|
|
1667
|
+
[Fe, "onMoved"],
|
|
1668
1668
|
[Zn, "onClick"],
|
|
1669
1669
|
[Xo, "onActive"],
|
|
1670
1670
|
[Ko, "onInactive"],
|
|
@@ -1672,13 +1672,13 @@ var Io = [
|
|
|
1672
1672
|
[Zo, "onHidden"],
|
|
1673
1673
|
[Tt, "onRefresh"],
|
|
1674
1674
|
[Lt, "onUpdated"],
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1675
|
+
[Ie, "onResize"],
|
|
1676
|
+
[vn, "onResized"],
|
|
1677
1677
|
[Qo, "onDrag"],
|
|
1678
1678
|
[tr, "onDragging"],
|
|
1679
1679
|
[er, "onDragged"],
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1680
|
+
[bn, "onScroll"],
|
|
1681
|
+
[he, "onScrolled"],
|
|
1682
1682
|
[Qn, "onDestroy"],
|
|
1683
1683
|
[nr, "onArrowsMounted"],
|
|
1684
1684
|
[or, "onArrowsUpdated"],
|
|
@@ -1693,13 +1693,13 @@ var Io = [
|
|
|
1693
1693
|
function po(...t) {
|
|
1694
1694
|
return t.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function yn(t) {
|
|
1697
1697
|
return t !== null && typeof t == "object";
|
|
1698
1698
|
}
|
|
1699
1699
|
function Dn(t, e) {
|
|
1700
1700
|
if (Array.isArray(t) && Array.isArray(e))
|
|
1701
1701
|
return t.length === e.length && !t.some((n, o) => !Dn(n, e[o]));
|
|
1702
|
-
if (
|
|
1702
|
+
if (yn(t) && yn(e)) {
|
|
1703
1703
|
const n = Object.keys(t), o = Object.keys(e);
|
|
1704
1704
|
return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(e, r) || !Dn(t[r], e[r]));
|
|
1705
1705
|
}
|
|
@@ -1722,17 +1722,17 @@ function Aa(t, e) {
|
|
|
1722
1722
|
function jn(t, e) {
|
|
1723
1723
|
const n = t;
|
|
1724
1724
|
return Aa(e, (o, r) => {
|
|
1725
|
-
Array.isArray(o) ? n[r] = o.slice() :
|
|
1725
|
+
Array.isArray(o) ? n[r] = o.slice() : yn(o) ? n[r] = jn(yn(n[r]) ? n[r] : {}, o) : n[r] = o;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var Ia = ({ children: t, className: e, ...n }) => /* @__PURE__ */
|
|
1728
|
+
var Ia = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ge.createElement("div", {
|
|
1729
1729
|
className: po("splide__track", e),
|
|
1730
1730
|
...n
|
|
1731
|
-
}, /* @__PURE__ */
|
|
1731
|
+
}, /* @__PURE__ */ ge.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, t)), Cr = class extends
|
|
1733
|
+
}, t)), Cr = class extends ge.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
|
-
super(...arguments), this.splideRef =
|
|
1735
|
+
super(...arguments), this.splideRef = ge.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: t, extensions: e, transition: n } = this.props, { current: o } = this.splideRef;
|
|
@@ -1780,13 +1780,13 @@ var Ia = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ue.createEleme
|
|
|
1780
1780
|
}
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: t, tag: e = "div", hasTrack: n = !0, children: o, ...r } = this.props;
|
|
1783
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ ge.createElement(e, {
|
|
1784
1784
|
className: po("splide", t),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
1786
|
...this.omit(r, ["options", ...Io.map((l) => l[1])])
|
|
1787
|
-
}, n ? /* @__PURE__ */
|
|
1787
|
+
}, n ? /* @__PURE__ */ ge.createElement(Ia, null, o) : o);
|
|
1788
1788
|
}
|
|
1789
|
-
}, wr = ({ children: t, className: e, ...n }) => /* @__PURE__ */
|
|
1789
|
+
}, wr = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ge.createElement("li", {
|
|
1790
1790
|
className: po("splide__slide", e),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, t);
|
|
@@ -1798,9 +1798,9 @@ var Ia = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ue.createEleme
|
|
|
1798
1798
|
*/
|
|
1799
1799
|
const La = "RichTextRenderer-module__link___BWeZ2", Ea = {
|
|
1800
1800
|
link: La
|
|
1801
|
-
},
|
|
1801
|
+
}, je = ({ content: t }) => {
|
|
1802
1802
|
const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ h("a", { className: Ea.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ h("span", { style: Fa(o), children: o.text }, r));
|
|
1803
|
-
return /* @__PURE__ */ h(
|
|
1803
|
+
return /* @__PURE__ */ h(re, { children: t.map((n, o) => {
|
|
1804
1804
|
const r = n.children;
|
|
1805
1805
|
return /* @__PURE__ */ h("div", { children: e(r) }, o);
|
|
1806
1806
|
}) });
|
|
@@ -1825,8 +1825,8 @@ const ka = "SvgImage-module__svg___q3xE-", Ra = "SvgImage-module__img___VsTm-",
|
|
|
1825
1825
|
}, Wa = (t) => {
|
|
1826
1826
|
const e = t.trim();
|
|
1827
1827
|
return e.startsWith("data:image/svg+xml") ? !0 : (e.split(/[?#]/)[0] ?? e).endsWith(".svg");
|
|
1828
|
-
}, Ma = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`,
|
|
1829
|
-
const [l, i] =
|
|
1828
|
+
}, Ma = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, ie = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: o = "", style: r }) => {
|
|
1829
|
+
const [l, i] = ct(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1830
1830
|
return $t(() => {
|
|
1831
1831
|
if (typeof window < "u" && window.CSS) {
|
|
1832
1832
|
const s = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
@@ -1857,7 +1857,7 @@ const ka = "SvgImage-module__svg___q3xE-", Ra = "SvgImage-module__img___VsTm-",
|
|
|
1857
1857
|
"bottom-right": J.bottomRightAlignment
|
|
1858
1858
|
};
|
|
1859
1859
|
function za({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
1860
|
-
const [r, l] =
|
|
1860
|
+
const [r, l] = ct(null), { widthSettings: i, fontSettings: s, letterSpacing: c, textAlign: d, wordSpacing: p, fontSizeLineHeight: L, textAppearance: x, color: f } = n.imageCaption, [u, g] = ct(void 0), [w, v] = ct(null), [b, I] = ct(0), [G, N] = ct(0), { direction: T, transition: S, controls: k, pagination: C, imageCaption: O, triggers: W } = t, H = Ct(S.type), { x: z, y: q } = t.controls.offset, D = (m) => {
|
|
1861
1861
|
r && r.go(m);
|
|
1862
1862
|
};
|
|
1863
1863
|
return $t(() => {
|
|
@@ -1926,7 +1926,7 @@ function za({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1926
1926
|
top: F(O.offset.y, o),
|
|
1927
1927
|
left: F(O.offset.x, o)
|
|
1928
1928
|
},
|
|
1929
|
-
children: /* @__PURE__ */ h(
|
|
1929
|
+
children: /* @__PURE__ */ h(je, { content: m.imageCaption })
|
|
1930
1930
|
}
|
|
1931
1931
|
)
|
|
1932
1932
|
},
|
|
@@ -1985,7 +1985,7 @@ function za({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1985
1985
|
},
|
|
1986
1986
|
G
|
|
1987
1987
|
),
|
|
1988
|
-
k.isActive && /* @__PURE__ */ dt(
|
|
1988
|
+
k.isActive && /* @__PURE__ */ dt(re, { children: [
|
|
1989
1989
|
/* @__PURE__ */ h(
|
|
1990
1990
|
"div",
|
|
1991
1991
|
{
|
|
@@ -2009,7 +2009,7 @@ function za({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2009
2009
|
},
|
|
2010
2010
|
children: [
|
|
2011
2011
|
k.arrowsImgUrl && /* @__PURE__ */ h(
|
|
2012
|
-
|
|
2012
|
+
ie,
|
|
2013
2013
|
{
|
|
2014
2014
|
url: k.arrowsImgUrl,
|
|
2015
2015
|
fill: k.color,
|
|
@@ -2044,7 +2044,7 @@ function za({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2044
2044
|
},
|
|
2045
2045
|
children: [
|
|
2046
2046
|
k.arrowsImgUrl && /* @__PURE__ */ h(
|
|
2047
|
-
|
|
2047
|
+
ie,
|
|
2048
2048
|
{
|
|
2049
2049
|
url: k.arrowsImgUrl,
|
|
2050
2050
|
fill: k.color,
|
|
@@ -2726,7 +2726,7 @@ const Ha = {
|
|
|
2726
2726
|
},
|
|
2727
2727
|
required: ["settings", "content", "styles"]
|
|
2728
2728
|
}
|
|
2729
|
-
}, Na = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Oa = "ImageRevealSlider-module__image___Qjt-e", Ba = "ImageRevealSlider-module__link___N-iLG", Va = "ImageRevealSlider-module__cursor___2U03d",
|
|
2729
|
+
}, Na = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Oa = "ImageRevealSlider-module__image___Qjt-e", Ba = "ImageRevealSlider-module__link___N-iLG", Va = "ImageRevealSlider-module__cursor___2U03d", be = {
|
|
2730
2730
|
imageRevealSlider: Na,
|
|
2731
2731
|
image: Oa,
|
|
2732
2732
|
link: Ba,
|
|
@@ -2767,7 +2767,7 @@ async function Da(t, e, n, o) {
|
|
|
2767
2767
|
return { width: r, height: l, finalWidth: `${r}px` };
|
|
2768
2768
|
}
|
|
2769
2769
|
function ja({ settings: t, content: e, isEditor: n }) {
|
|
2770
|
-
const [o, r] =
|
|
2770
|
+
const [o, r] = ct(null), [l, i] = ct([]), [s, c] = ct(0), d = Ct(0), [p, L] = ct({ x: 0, y: 0 }), [x, f] = ct(1), [u, g] = ct("none"), w = Ct({ x: 0, y: 0 }), [v, b] = ct(!1), { sizeType: I, imageWidth: G, randomRangeImageWidth: N } = t.imageSize, { revealPosition: T, visible: S } = t.position, { cursorType: k, target: C, defaultCursorScale: O, defaultCursor: W, hoverCursorScale: H, hoverCursor: z } = t.cursor;
|
|
2771
2771
|
$t(() => {
|
|
2772
2772
|
if (!o) return;
|
|
2773
2773
|
const m = ($, _) => {
|
|
@@ -2776,13 +2776,13 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2776
2776
|
g("none"), f(1);
|
|
2777
2777
|
return;
|
|
2778
2778
|
}
|
|
2779
|
-
const
|
|
2779
|
+
const et = K, rt = it, M = document.elementFromPoint(E.left + et, E.top + rt);
|
|
2780
2780
|
if (M && M.closest("a")) {
|
|
2781
2781
|
g("none"), f(1);
|
|
2782
2782
|
return;
|
|
2783
2783
|
}
|
|
2784
|
-
const
|
|
2785
|
-
g(
|
|
2784
|
+
const Q = Fo(et, rt, l) || C === "area" ? { img: z ?? "none", scale: H } : { img: W ?? "none", scale: O };
|
|
2785
|
+
g(Q.img), f(Q.scale);
|
|
2786
2786
|
}, R = ($) => {
|
|
2787
2787
|
$.stopPropagation(), w.current = { x: $.clientX, y: $.clientY }, m($.clientX, $.clientY);
|
|
2788
2788
|
}, A = () => {
|
|
@@ -2812,9 +2812,9 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2812
2812
|
G,
|
|
2813
2813
|
N
|
|
2814
2814
|
);
|
|
2815
|
-
let it = 0,
|
|
2816
|
-
T === "same" ? (it = R / 2,
|
|
2817
|
-
const rt = Math.min(Math.max(it, _ / 2), R - _ / 2), M = Math.min(Math.max(
|
|
2815
|
+
let it = 0, et = 0;
|
|
2816
|
+
T === "same" ? (it = R / 2, et = A / 2) : (it = $.x ?? Math.random() * R, et = $.y ?? Math.random() * A);
|
|
2817
|
+
const rt = Math.min(Math.max(it, _ / 2), R - _ / 2), M = Math.min(Math.max(et, E / 2), A - E / 2);
|
|
2818
2818
|
return {
|
|
2819
2819
|
id: d.current++,
|
|
2820
2820
|
url: m.image.url,
|
|
@@ -2845,17 +2845,17 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2845
2845
|
let _ = 0, E = 0;
|
|
2846
2846
|
T === "on Click" ? (_ = A, E = $) : T === "same" ? (_ = R.width / 2, E = R.height / 2) : (_ = Math.random() * R.width, E = Math.random() * R.height);
|
|
2847
2847
|
const K = e[s], it = await q(K, R.width, R.height, { x: _, y: E });
|
|
2848
|
-
i((
|
|
2848
|
+
i((et) => S === "all" ? [...et, it] : [it]), c((et) => et >= e.length - 1 ? 0 : et + 1);
|
|
2849
2849
|
},
|
|
2850
2850
|
onMouseEnter: () => b(!0),
|
|
2851
2851
|
onMouseLeave: () => b(!1),
|
|
2852
|
-
className:
|
|
2852
|
+
className: be.imageRevealSlider,
|
|
2853
2853
|
style: { cursor: u === "none" ? "default" : "none" },
|
|
2854
2854
|
children: [
|
|
2855
2855
|
l.map((m) => /* @__PURE__ */ h(
|
|
2856
2856
|
"div",
|
|
2857
2857
|
{
|
|
2858
|
-
className:
|
|
2858
|
+
className: be.wrapper,
|
|
2859
2859
|
style: {
|
|
2860
2860
|
top: `${m.y}px`,
|
|
2861
2861
|
left: `${m.x}px`,
|
|
@@ -2865,12 +2865,12 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2865
2865
|
height: "auto",
|
|
2866
2866
|
cursor: u === "none" ? "default" : "none"
|
|
2867
2867
|
},
|
|
2868
|
-
children: C === "area" && m.link ? /* @__PURE__ */ h("a", { href: m.link, target: "_blank", className:
|
|
2868
|
+
children: C === "area" && m.link ? /* @__PURE__ */ h("a", { href: m.link, target: "_blank", className: be.link, children: /* @__PURE__ */ h(
|
|
2869
2869
|
"img",
|
|
2870
2870
|
{
|
|
2871
2871
|
src: m.url,
|
|
2872
2872
|
alt: m.name,
|
|
2873
|
-
className:
|
|
2873
|
+
className: be.image
|
|
2874
2874
|
},
|
|
2875
2875
|
m.id
|
|
2876
2876
|
) }) : /* @__PURE__ */ h(
|
|
@@ -2878,7 +2878,7 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2878
2878
|
{
|
|
2879
2879
|
src: m.url,
|
|
2880
2880
|
alt: m.name,
|
|
2881
|
-
className:
|
|
2881
|
+
className: be.image
|
|
2882
2882
|
},
|
|
2883
2883
|
m.id
|
|
2884
2884
|
)
|
|
@@ -2888,7 +2888,7 @@ function ja({ settings: t, content: e, isEditor: n }) {
|
|
|
2888
2888
|
v && /* @__PURE__ */ h(
|
|
2889
2889
|
"div",
|
|
2890
2890
|
{
|
|
2891
|
-
className:
|
|
2891
|
+
className: be.cursor,
|
|
2892
2892
|
style: {
|
|
2893
2893
|
left: `${p.x}px`,
|
|
2894
2894
|
top: `${p.y}px`,
|
|
@@ -3258,7 +3258,7 @@ const Ua = {
|
|
|
3258
3258
|
slideOutTop: Al,
|
|
3259
3259
|
slideOutBottom: Il,
|
|
3260
3260
|
scaleSlide: Ll
|
|
3261
|
-
},
|
|
3261
|
+
}, nn = (t, e, n) => {
|
|
3262
3262
|
const o = {}, [r, l] = t.split("-");
|
|
3263
3263
|
return r === "top" ? (o.top = "0", o.bottom = "auto") : r === "middle" ? (o.top = "50%", o.bottom = "auto") : r === "bottom" && (o.top = "auto", o.bottom = "0"), l === "left" ? (o.left = "0", o.right = "auto") : l === "center" ? (o.left = "50%", o.right = "auto") : l === "right" && (o.left = "auto", o.right = "0"), r === "middle" && l === "center" ? o.transform = `translate(calc(-50% + ${F(e.x, n)}), calc(-50% + ${F(e.y, n)}))` : r === "middle" ? o.transform = `translate(${F(e.x, n)}, calc(-50% + ${F(e.y, n)}))` : l === "center" ? o.transform = `translate(calc(-50% + ${F(e.x, n)}), ${F(e.y, n)})` : o.transform = `translate(${F(e.x, n)}, ${F(e.y, n)})`, o;
|
|
3264
3264
|
};
|
|
@@ -3374,10 +3374,10 @@ function El(t, e) {
|
|
|
3374
3374
|
return { appearClass: n, backdropAppearClass: o, backdropDisappearClass: r, disappearClass: l };
|
|
3375
3375
|
}
|
|
3376
3376
|
const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, isEditor: l }) => {
|
|
3377
|
-
const [i, s] =
|
|
3377
|
+
const [i, s] = ct(!1), { url: c } = t.thumbnailBlock.cover;
|
|
3378
3378
|
return $t(() => {
|
|
3379
3379
|
r === "close" && s(!1), r === "open" && s(!0);
|
|
3380
|
-
}, [r]), /* @__PURE__ */ dt(
|
|
3380
|
+
}, [r]), /* @__PURE__ */ dt(re, { children: [
|
|
3381
3381
|
/* @__PURE__ */ h(
|
|
3382
3382
|
"img",
|
|
3383
3383
|
{
|
|
@@ -3402,7 +3402,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3402
3402
|
] });
|
|
3403
3403
|
}, kl = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: l, isEditor: i, metadata: s }) => {
|
|
3404
3404
|
var j;
|
|
3405
|
-
const [c, d] =
|
|
3405
|
+
const [c, d] = ct(0), [p, L] = ct(0), [x, f] = ct(!1), [u, g] = ct(!1), [w, v] = ct({}), b = Ct(null), I = Ct(null), G = Ct(null), N = Ct(!1), T = Ct(null), S = Ct(null), k = Ct(null), C = Ct(null), O = Ct(!1), W = Ct(null), [H, z] = ct(!1), { appear: q, triggers: D, slider: m, thumbnail: R, controls: A, area: $, caption: _, layout: E } = r.lightboxBlock, { appearClass: K, backdropAppearClass: it, backdropDisappearClass: et, disappearClass: rt } = El(q.type, q.direction), M = (s == null ? void 0 : s.itemId) ?? null;
|
|
3406
3406
|
$t(() => {
|
|
3407
3407
|
const a = () => {
|
|
3408
3408
|
setTimeout(() => {
|
|
@@ -3429,7 +3429,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3429
3429
|
const P = new ResizeObserver(y);
|
|
3430
3430
|
return P.observe(a), () => P.disconnect();
|
|
3431
3431
|
}, [t, R.isActive, n.length, w, m.direction]);
|
|
3432
|
-
const
|
|
3432
|
+
const Q = Se(() => {
|
|
3433
3433
|
const a = window.matchMedia("(max-width: 768px)").matches, y = Wo($.color);
|
|
3434
3434
|
a && !i && y > 0.9 && (document.body.style.backgroundColor = ""), f(!0), N.current = !0;
|
|
3435
3435
|
const P = (B) => {
|
|
@@ -3440,14 +3440,14 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3440
3440
|
var B, V;
|
|
3441
3441
|
if (a) {
|
|
3442
3442
|
if (D.type === "click" && D.switch === "image")
|
|
3443
|
-
D.repeat === "close" && c === n.length - 1 ?
|
|
3443
|
+
D.repeat === "close" && c === n.length - 1 ? Q() : (B = b.current) == null || B.go("+1");
|
|
3444
3444
|
else if (D.type === "click" && D.switch === "50/50") {
|
|
3445
|
-
const Y = a.getBoundingClientRect(), X = y - Y.left,
|
|
3446
|
-
let
|
|
3447
|
-
m.direction === "horiz" ?
|
|
3445
|
+
const Y = a.getBoundingClientRect(), X = y - Y.left, tt = P - Y.top, nt = Y.width, at = Y.height;
|
|
3446
|
+
let st;
|
|
3447
|
+
m.direction === "horiz" ? st = X < nt / 2 ? "-1" : "+1" : st = tt < at / 2 ? "-1" : "+1", (V = b.current) == null || V.go(st);
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
|
-
},
|
|
3450
|
+
}, lt = (a) => {
|
|
3451
3451
|
if (O.current) {
|
|
3452
3452
|
O.current = !1;
|
|
3453
3453
|
return;
|
|
@@ -3467,22 +3467,22 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3467
3467
|
} else {
|
|
3468
3468
|
const X = G.current ? ko(G.current) : null;
|
|
3469
3469
|
if (!X) {
|
|
3470
|
-
a.target === a.currentTarget &&
|
|
3470
|
+
a.target === a.currentTarget && Q();
|
|
3471
3471
|
return;
|
|
3472
3472
|
}
|
|
3473
3473
|
Y = B >= X.x && B <= X.x + X.width && V >= X.y && V <= X.y + X.height;
|
|
3474
3474
|
}
|
|
3475
|
-
Y ? gt(G.current, B, V) :
|
|
3475
|
+
Y ? gt(G.current, B, V) : Q();
|
|
3476
3476
|
}, mt = (a) => {
|
|
3477
3477
|
const y = a.target;
|
|
3478
|
-
(y.classList.contains(U.thumbsWrapper) || y.classList.contains(U.thumbsContainer)) &&
|
|
3478
|
+
(y.classList.contains(U.thumbsWrapper) || y.classList.contains(U.thumbsContainer)) && lt(a);
|
|
3479
3479
|
};
|
|
3480
3480
|
$t(() => {
|
|
3481
3481
|
if (!t) return;
|
|
3482
3482
|
const a = (y) => {
|
|
3483
3483
|
var P, B;
|
|
3484
3484
|
if (y.key === "Escape") {
|
|
3485
|
-
|
|
3485
|
+
Q();
|
|
3486
3486
|
return;
|
|
3487
3487
|
}
|
|
3488
3488
|
if (y.key === "ArrowRight") {
|
|
@@ -3494,7 +3494,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3494
3494
|
return window.addEventListener("keydown", a), () => {
|
|
3495
3495
|
window.removeEventListener("keydown", a);
|
|
3496
3496
|
};
|
|
3497
|
-
}, [t,
|
|
3497
|
+
}, [t, Q, n.length]), $t(() => {
|
|
3498
3498
|
if (t) {
|
|
3499
3499
|
if (d(0), L((y) => y + 1), N.current = !1, f(!1), g(!1), v({}), !M) return;
|
|
3500
3500
|
const a = new CustomEvent("page-overlay", { detail: { itemId: M } });
|
|
@@ -3540,22 +3540,22 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3540
3540
|
return;
|
|
3541
3541
|
}
|
|
3542
3542
|
if (y.touches.length === 0 && y.changedTouches.length > 0) {
|
|
3543
|
-
const Y = n[c], X = (Y == null ? void 0 : Y.image.objectFit) === "cover",
|
|
3544
|
-
let
|
|
3543
|
+
const Y = n[c], X = (Y == null ? void 0 : Y.image.objectFit) === "cover", tt = y.changedTouches[0];
|
|
3544
|
+
let nt;
|
|
3545
3545
|
if (X && G.current) {
|
|
3546
3546
|
const at = Ro(G.current);
|
|
3547
|
-
|
|
3547
|
+
nt = tt.clientX >= at.left && tt.clientX <= at.right && tt.clientY >= at.top && tt.clientY <= at.bottom;
|
|
3548
3548
|
} else {
|
|
3549
3549
|
const at = G.current ? ko(G.current) : null;
|
|
3550
3550
|
if (!at) return;
|
|
3551
|
-
|
|
3551
|
+
nt = tt.clientX >= at.x && tt.clientX <= at.x + at.width && tt.clientY >= at.y && tt.clientY <= at.y + at.height;
|
|
3552
3552
|
}
|
|
3553
|
-
if (!
|
|
3553
|
+
if (!nt) {
|
|
3554
3554
|
y.stopPropagation(), N.current = !0;
|
|
3555
|
-
const at = (
|
|
3556
|
-
|
|
3555
|
+
const at = (st) => {
|
|
3556
|
+
st.stopPropagation(), st.preventDefault(), document.removeEventListener("click", at, !0);
|
|
3557
3557
|
};
|
|
3558
|
-
document.addEventListener("click", at, !0),
|
|
3558
|
+
document.addEventListener("click", at, !0), Q();
|
|
3559
3559
|
}
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
@@ -3563,46 +3563,46 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3563
3563
|
return document.addEventListener("touchend", a, { passive: !0 }), () => {
|
|
3564
3564
|
document.removeEventListener("touchend", a);
|
|
3565
3565
|
};
|
|
3566
|
-
}, [t,
|
|
3567
|
-
const
|
|
3566
|
+
}, [t, Q, c, n]);
|
|
3567
|
+
const ht = (m.type === "scale" || m.type === "fade") && m.direction === "vert" && D.type === "drag";
|
|
3568
3568
|
$t(() => {
|
|
3569
|
-
var
|
|
3570
|
-
if (!t || !
|
|
3571
|
-
const a = b.current.splide.root, y = 30, P = (
|
|
3569
|
+
var st, wt;
|
|
3570
|
+
if (!t || !ht || !((wt = (st = b.current) == null ? void 0 : st.splide) != null && wt.root)) return;
|
|
3571
|
+
const a = b.current.splide.root, y = 30, P = (Z, pt) => {
|
|
3572
3572
|
if (C.current) {
|
|
3573
|
-
const
|
|
3574
|
-
(
|
|
3573
|
+
const vt = Math.abs(Z - C.current.x), Et = Math.abs(pt - C.current.y);
|
|
3574
|
+
(vt > 0 || Et > 0) && (O.current = !0);
|
|
3575
3575
|
}
|
|
3576
|
-
}, B = (
|
|
3577
|
-
C.current && (
|
|
3578
|
-
}, V = (
|
|
3579
|
-
C.current &&
|
|
3580
|
-
}, Y = (
|
|
3576
|
+
}, B = (Z) => {
|
|
3577
|
+
C.current && (Z.preventDefault(), P(Z.clientX, Z.clientY));
|
|
3578
|
+
}, V = (Z) => {
|
|
3579
|
+
C.current && Z.touches.length > 0 && (Z.preventDefault(), P(Z.touches[0].clientX, Z.touches[0].clientY));
|
|
3580
|
+
}, Y = (Z, pt) => {
|
|
3581
3581
|
if (!C.current || !b.current) {
|
|
3582
3582
|
C.current = null;
|
|
3583
3583
|
return;
|
|
3584
3584
|
}
|
|
3585
|
-
const
|
|
3586
|
-
|
|
3587
|
-
}, X = (
|
|
3588
|
-
C.current && Y(
|
|
3589
|
-
},
|
|
3585
|
+
const vt = Math.abs(Z - C.current.x), Et = Math.abs(pt - C.current.y);
|
|
3586
|
+
Et > y && Et > vt && b.current.go(pt < C.current.y ? "+1" : "-1"), C.current = null;
|
|
3587
|
+
}, X = (Z) => {
|
|
3588
|
+
C.current && Y(Z.clientX, Z.clientY), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("pointermove", B);
|
|
3589
|
+
}, tt = (Z) => {
|
|
3590
3590
|
if (C.current) {
|
|
3591
|
-
if (
|
|
3592
|
-
const
|
|
3593
|
-
Y(
|
|
3591
|
+
if (Z.changedTouches.length > 0) {
|
|
3592
|
+
const pt = Z.changedTouches[0];
|
|
3593
|
+
Y(pt.clientX, pt.clientY);
|
|
3594
3594
|
}
|
|
3595
|
-
document.removeEventListener("touchend",
|
|
3595
|
+
document.removeEventListener("touchend", tt), document.removeEventListener("touchcancel", tt), document.removeEventListener("touchmove", V);
|
|
3596
3596
|
}
|
|
3597
|
-
},
|
|
3598
|
-
C.current = { x:
|
|
3599
|
-
}, at = (
|
|
3600
|
-
|
|
3597
|
+
}, nt = (Z) => {
|
|
3598
|
+
C.current = { x: Z.clientX, y: Z.clientY }, O.current = !1, document.addEventListener("pointermove", B, { passive: !1 }), document.addEventListener("pointerup", X), document.addEventListener("pointercancel", X);
|
|
3599
|
+
}, at = (Z) => {
|
|
3600
|
+
Z.touches.length > 0 && (C.current = { x: Z.touches[0].clientX, y: Z.touches[0].clientY }, O.current = !1, document.addEventListener("touchmove", V, { passive: !1 }), document.addEventListener("touchend", tt), document.addEventListener("touchcancel", tt));
|
|
3601
3601
|
};
|
|
3602
|
-
return a.addEventListener("pointerdown",
|
|
3603
|
-
a.removeEventListener("pointerdown",
|
|
3602
|
+
return a.addEventListener("pointerdown", nt), a.addEventListener("touchstart", at), () => {
|
|
3603
|
+
a.removeEventListener("pointerdown", nt), a.removeEventListener("touchstart", at), document.removeEventListener("pointermove", B), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("touchmove", V), document.removeEventListener("touchend", tt), document.removeEventListener("touchcancel", tt), C.current = null, O.current = !1;
|
|
3604
3604
|
};
|
|
3605
|
-
}, [t,
|
|
3605
|
+
}, [t, ht, p]);
|
|
3606
3606
|
const It = {
|
|
3607
3607
|
backgroundColor: $.color,
|
|
3608
3608
|
backdropFilter: `blur(${$.blur}px)`,
|
|
@@ -3611,12 +3611,12 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3611
3611
|
animationFillMode: "both"
|
|
3612
3612
|
};
|
|
3613
3613
|
return typeof document > "u" || !document.getElementById(l) ? null : Er(
|
|
3614
|
-
/* @__PURE__ */ dt(
|
|
3614
|
+
/* @__PURE__ */ dt(re, { children: [
|
|
3615
3615
|
/* @__PURE__ */ h(
|
|
3616
3616
|
"div",
|
|
3617
3617
|
{
|
|
3618
3618
|
ref: i ? null : T,
|
|
3619
|
-
className: ut(U.background, x ?
|
|
3619
|
+
className: ut(U.background, x ? et : it, { [U.editor]: i }, { [U.hidden]: !t }),
|
|
3620
3620
|
style: {
|
|
3621
3621
|
...It,
|
|
3622
3622
|
...u && !i && !x ? { position: "absolute" } : {}
|
|
@@ -3646,7 +3646,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3646
3646
|
direction: m.direction === "horiz" || m.type === "fade" || m.type === "scale" ? "ltr" : "ttb",
|
|
3647
3647
|
pagination: !1,
|
|
3648
3648
|
// Disable Splide's drag when we need custom vertical drag handling
|
|
3649
|
-
drag: D.type === "drag" && !
|
|
3649
|
+
drag: D.type === "drag" && !ht,
|
|
3650
3650
|
perPage: 1,
|
|
3651
3651
|
width: "100%",
|
|
3652
3652
|
height: "100%",
|
|
@@ -3657,7 +3657,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3657
3657
|
},
|
|
3658
3658
|
style: { "--splide-speed": m.duration },
|
|
3659
3659
|
children: n.map((a, y) => {
|
|
3660
|
-
const P =
|
|
3660
|
+
const P = nn(E.position, E.offset, i), B = `${F(E.padding.top, i)} ${F(E.padding.right, i)} ${F(E.padding.bottom, i)} ${F(E.padding.left, i)}`, V = m.type === "scale" ? (() => {
|
|
3661
3661
|
const { transform: Y, ...X } = P;
|
|
3662
3662
|
return {
|
|
3663
3663
|
...X,
|
|
@@ -3667,7 +3667,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3667
3667
|
"--position-transform": Y || "none"
|
|
3668
3668
|
};
|
|
3669
3669
|
})() : { ...P, position: "absolute", padding: B, boxSizing: "border-box" };
|
|
3670
|
-
return /* @__PURE__ */ h(wr, { children: /* @__PURE__ */ h("div", { className: U.imgWrapper, onClick:
|
|
3670
|
+
return /* @__PURE__ */ h(wr, { children: /* @__PURE__ */ h("div", { className: U.imgWrapper, onClick: lt, children: /* @__PURE__ */ h(
|
|
3671
3671
|
"img",
|
|
3672
3672
|
{
|
|
3673
3673
|
ref: y === c ? G : null,
|
|
@@ -3685,7 +3685,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3685
3685
|
},
|
|
3686
3686
|
p
|
|
3687
3687
|
),
|
|
3688
|
-
A.isActive && /* @__PURE__ */ dt(
|
|
3688
|
+
A.isActive && /* @__PURE__ */ dt(re, { children: [
|
|
3689
3689
|
/* @__PURE__ */ h(
|
|
3690
3690
|
"div",
|
|
3691
3691
|
{
|
|
@@ -3703,7 +3703,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3703
3703
|
"aria-label": "Previous",
|
|
3704
3704
|
children: [
|
|
3705
3705
|
A.arrowsImgUrl && /* @__PURE__ */ h(
|
|
3706
|
-
|
|
3706
|
+
ie,
|
|
3707
3707
|
{
|
|
3708
3708
|
url: A.arrowsImgUrl,
|
|
3709
3709
|
fill: A.color,
|
|
@@ -3734,7 +3734,7 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3734
3734
|
"aria-label": "Next",
|
|
3735
3735
|
children: [
|
|
3736
3736
|
A.arrowsImgUrl && /* @__PURE__ */ h(
|
|
3737
|
-
|
|
3737
|
+
ie,
|
|
3738
3738
|
{
|
|
3739
3739
|
url: A.arrowsImgUrl,
|
|
3740
3740
|
fill: A.color,
|
|
@@ -3750,17 +3750,17 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3750
3750
|
)
|
|
3751
3751
|
] }),
|
|
3752
3752
|
$.closeIconUrl && (() => {
|
|
3753
|
-
const a =
|
|
3754
|
-
return /* @__PURE__ */ h("button", { className: U.closeButton, style: { ...a, transform: P }, onClick:
|
|
3753
|
+
const a = nn($.closeIconAlign, $.closeIconOffset, i), y = `scale(${$.closeIconScale})`, P = a.transform ? `${a.transform} ${y}` : y;
|
|
3754
|
+
return /* @__PURE__ */ h("button", { className: U.closeButton, style: { ...a, transform: P }, onClick: Q, "aria-label": "Close lightbox", children: /* @__PURE__ */ h(ie, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
|
|
3755
3755
|
})(),
|
|
3756
3756
|
_ && _.isActive && o.imageCaption && ((j = n[c]) == null ? void 0 : j.imageCaption) && (() => {
|
|
3757
|
-
const { widthSettings: a, fontSettings: y, letterSpacing: P, textAlign: B, wordSpacing: V, fontSizeLineHeight: Y, textAppearance: X, color:
|
|
3757
|
+
const { widthSettings: a, fontSettings: y, letterSpacing: P, textAlign: B, wordSpacing: V, fontSizeLineHeight: Y, textAppearance: X, color: tt } = o.imageCaption;
|
|
3758
3758
|
return /* @__PURE__ */ h(
|
|
3759
3759
|
"div",
|
|
3760
3760
|
{
|
|
3761
3761
|
className: U.caption,
|
|
3762
3762
|
style: {
|
|
3763
|
-
...
|
|
3763
|
+
...nn(_.alignment, _.offset, i),
|
|
3764
3764
|
fontFamily: y.fontFamily,
|
|
3765
3765
|
fontWeight: y.fontWeight,
|
|
3766
3766
|
fontStyle: y.fontStyle,
|
|
@@ -3773,9 +3773,9 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3773
3773
|
textTransform: X.textTransform ?? "none",
|
|
3774
3774
|
textDecoration: X.textDecoration ?? "none",
|
|
3775
3775
|
fontVariant: X.fontVariant ?? "normal",
|
|
3776
|
-
color:
|
|
3776
|
+
color: tt
|
|
3777
3777
|
},
|
|
3778
|
-
onClick: (
|
|
3778
|
+
onClick: (nt) => nt.stopPropagation(),
|
|
3779
3779
|
children: /* @__PURE__ */ h(
|
|
3780
3780
|
"div",
|
|
3781
3781
|
{
|
|
@@ -3785,14 +3785,14 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3785
3785
|
"--link-color": _.linkColor,
|
|
3786
3786
|
"--link-hover-color": _.linkHoverColor
|
|
3787
3787
|
},
|
|
3788
|
-
children: /* @__PURE__ */ h(
|
|
3788
|
+
children: /* @__PURE__ */ h(je, { content: n[c].imageCaption })
|
|
3789
3789
|
}
|
|
3790
3790
|
)
|
|
3791
3791
|
}
|
|
3792
3792
|
);
|
|
3793
3793
|
})(),
|
|
3794
3794
|
R.isActive && (() => {
|
|
3795
|
-
const [a, y] = R.position.split("-"), P = m.direction === "horiz" ? `${a}-left` : R.position, B =
|
|
3795
|
+
const [a, y] = R.position.split("-"), P = m.direction === "horiz" ? `${a}-left` : R.position, B = nn(P, R.offset, i), V = () => {
|
|
3796
3796
|
if (m.direction === "horiz") {
|
|
3797
3797
|
if (y === "left") return "flex-start";
|
|
3798
3798
|
if (y === "center") return "center";
|
|
@@ -3838,22 +3838,22 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3838
3838
|
justifyContent: H ? "flex-start" : V()
|
|
3839
3839
|
},
|
|
3840
3840
|
children: n.map((Y, X) => {
|
|
3841
|
-
const
|
|
3841
|
+
const tt = X === c, nt = w[X], st = R.grid.size * (tt ? R.activeState.scale : 1), wt = () => {
|
|
3842
3842
|
if (R.fit !== "fit") return {};
|
|
3843
|
-
if (!
|
|
3844
|
-
return m.direction === "horiz" ? { height: F(
|
|
3845
|
-
const
|
|
3843
|
+
if (!nt)
|
|
3844
|
+
return m.direction === "horiz" ? { height: F(st, i) } : { width: F(st, i) };
|
|
3845
|
+
const Z = nt.width / nt.height;
|
|
3846
3846
|
if (m.direction === "horiz") {
|
|
3847
|
-
const
|
|
3847
|
+
const pt = st, vt = pt * Z;
|
|
3848
3848
|
return {
|
|
3849
|
-
width: F(
|
|
3850
|
-
height: F(
|
|
3849
|
+
width: F(vt, i),
|
|
3850
|
+
height: F(pt, i)
|
|
3851
3851
|
};
|
|
3852
3852
|
} else {
|
|
3853
|
-
const
|
|
3853
|
+
const pt = st, vt = pt / Z;
|
|
3854
3854
|
return {
|
|
3855
|
-
width: F(
|
|
3856
|
-
height: F(
|
|
3855
|
+
width: F(pt, i),
|
|
3856
|
+
height: F(vt, i)
|
|
3857
3857
|
};
|
|
3858
3858
|
}
|
|
3859
3859
|
};
|
|
@@ -3862,32 +3862,32 @@ const Fl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3862
3862
|
{
|
|
3863
3863
|
className: U.thumbItem,
|
|
3864
3864
|
style: {
|
|
3865
|
-
...m.direction === "horiz" && R.fit !== "fit" ? { height: F(
|
|
3866
|
-
...m.direction === "vert" && R.fit !== "fit" ? { width: F(
|
|
3867
|
-
...R.fit === "cover" ? { width: F(
|
|
3865
|
+
...m.direction === "horiz" && R.fit !== "fit" ? { height: F(st, i) } : {},
|
|
3866
|
+
...m.direction === "vert" && R.fit !== "fit" ? { width: F(st, i) } : {},
|
|
3867
|
+
...R.fit === "cover" ? { width: F(st, i), height: F(st, i) } : {},
|
|
3868
3868
|
...wt(),
|
|
3869
|
-
transition:
|
|
3870
|
-
opacity:
|
|
3869
|
+
transition: tt ? "all 0.25s ease-out" : "none",
|
|
3870
|
+
opacity: tt ? R.activeState.opacity / 100 : R.opacity / 100,
|
|
3871
3871
|
"--thumb-hover": R.activeState.opacity / 100
|
|
3872
3872
|
},
|
|
3873
|
-
onClick: (
|
|
3874
|
-
var
|
|
3875
|
-
|
|
3873
|
+
onClick: (Z) => {
|
|
3874
|
+
var pt;
|
|
3875
|
+
Z.stopPropagation(), d(X), (pt = b.current) == null || pt.go(X);
|
|
3876
3876
|
},
|
|
3877
3877
|
onMouseEnter: () => {
|
|
3878
|
-
var
|
|
3879
|
-
R.triggers === "hov" && ((
|
|
3878
|
+
var Z;
|
|
3879
|
+
R.triggers === "hov" && ((Z = b.current) == null || Z.go(X));
|
|
3880
3880
|
},
|
|
3881
3881
|
children: /* @__PURE__ */ h(
|
|
3882
3882
|
"img",
|
|
3883
3883
|
{
|
|
3884
3884
|
src: Y.image.url,
|
|
3885
3885
|
alt: Y.image.name ?? "",
|
|
3886
|
-
onLoad: (
|
|
3887
|
-
const
|
|
3888
|
-
|
|
3889
|
-
...
|
|
3890
|
-
[X]: { width:
|
|
3886
|
+
onLoad: (Z) => {
|
|
3887
|
+
const pt = Z.currentTarget;
|
|
3888
|
+
pt.naturalWidth && pt.naturalHeight && v((vt) => ({
|
|
3889
|
+
...vt,
|
|
3890
|
+
[X]: { width: pt.naturalWidth, height: pt.naturalHeight }
|
|
3891
3891
|
}));
|
|
3892
3892
|
},
|
|
3893
3893
|
style: {
|
|
@@ -4987,11 +4987,11 @@ const Rl = {
|
|
|
4987
4987
|
required: ["settings", "content", "styles"]
|
|
4988
4988
|
}
|
|
4989
4989
|
};
|
|
4990
|
-
function
|
|
4990
|
+
function $e(t) {
|
|
4991
4991
|
const { color: e, ...n } = t;
|
|
4992
4992
|
return n;
|
|
4993
4993
|
}
|
|
4994
|
-
function
|
|
4994
|
+
function oe(t, e) {
|
|
4995
4995
|
var n, o, r;
|
|
4996
4996
|
return {
|
|
4997
4997
|
fontFamily: t.fontSettings.fontFamily,
|
|
@@ -5007,7 +5007,7 @@ function ee(t, e) {
|
|
|
5007
5007
|
color: t.color
|
|
5008
5008
|
};
|
|
5009
5009
|
}
|
|
5010
|
-
function
|
|
5010
|
+
function on(t) {
|
|
5011
5011
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
5012
5012
|
}
|
|
5013
5013
|
function Wl(t) {
|
|
@@ -5016,7 +5016,7 @@ function Wl(t) {
|
|
|
5016
5016
|
display: flex;
|
|
5017
5017
|
flex-direction: column;
|
|
5018
5018
|
width: 100%;
|
|
5019
|
-
min-height: ${
|
|
5019
|
+
min-height: ${on(48)};
|
|
5020
5020
|
}
|
|
5021
5021
|
.${t}-wrapper.${t}-type-C .${t}-input:focus-visible,
|
|
5022
5022
|
.${t}-wrapper.${t}-type-C .${t}-button:focus-visible {
|
|
@@ -5040,7 +5040,7 @@ function Wl(t) {
|
|
|
5040
5040
|
min-width: 0;
|
|
5041
5041
|
}
|
|
5042
5042
|
.${t}-field-group.${t}-labeled {
|
|
5043
|
-
gap: ${
|
|
5043
|
+
gap: ${on(4)};
|
|
5044
5044
|
}
|
|
5045
5045
|
.${t}-field-label {
|
|
5046
5046
|
white-space: nowrap;
|
|
@@ -5136,11 +5136,11 @@ function Wl(t) {
|
|
|
5136
5136
|
outline: none;
|
|
5137
5137
|
}
|
|
5138
5138
|
.${t}-success {
|
|
5139
|
-
margin-top: ${
|
|
5139
|
+
margin-top: ${on(8)};
|
|
5140
5140
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
5141
5141
|
}
|
|
5142
5142
|
.${t}-error {
|
|
5143
|
-
margin-top: ${
|
|
5143
|
+
margin-top: ${on(8)};
|
|
5144
5144
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
5145
5145
|
}
|
|
5146
5146
|
.${t}-overlay-anchor {
|
|
@@ -5186,14 +5186,14 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5186
5186
|
buttonLineHeight: E,
|
|
5187
5187
|
buttonLetterSpacing: K,
|
|
5188
5188
|
buttonWordSpacing: it,
|
|
5189
|
-
buttonTextAppearance:
|
|
5189
|
+
buttonTextAppearance: et,
|
|
5190
5190
|
labelFontSettings: rt,
|
|
5191
5191
|
labelFontSize: M,
|
|
5192
|
-
labelLineHeight:
|
|
5192
|
+
labelLineHeight: Q,
|
|
5193
5193
|
labelLetterSpacing: gt,
|
|
5194
|
-
labelWordSpacing:
|
|
5194
|
+
labelWordSpacing: lt,
|
|
5195
5195
|
labelTextAppearance: mt,
|
|
5196
|
-
statusFontSettings:
|
|
5196
|
+
statusFontSettings: ht,
|
|
5197
5197
|
statusFontSize: It,
|
|
5198
5198
|
statusLineHeight: j,
|
|
5199
5199
|
statusLetterSpacing: a,
|
|
@@ -5202,7 +5202,7 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5202
5202
|
successMessage: B,
|
|
5203
5203
|
errorMessage: V,
|
|
5204
5204
|
stateOverrides: Y
|
|
5205
|
-
} = t, X = l === "B",
|
|
5205
|
+
} = t, X = l === "B", tt = s.slice(0, Math.min(i, s.length)), nt = {
|
|
5206
5206
|
fontSettings: {
|
|
5207
5207
|
fontFamily: H,
|
|
5208
5208
|
fontWeight: (z == null ? void 0 : z.fontWeight) ?? 400,
|
|
@@ -5214,26 +5214,26 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5214
5214
|
wordSpacing: R ?? 0,
|
|
5215
5215
|
textAppearance: A,
|
|
5216
5216
|
color: I
|
|
5217
|
-
}, at =
|
|
5217
|
+
}, at = $e(oe(nt, e)), st = F(w ?? 0, e), wt = F(
|
|
5218
5218
|
(D ?? q ?? 0.01) + ((v == null ? void 0 : v.top) ?? 0) + ((v == null ? void 0 : v.bottom) ?? 0) + (l === "C" ? w ?? 0 : (w ?? 0) * 2),
|
|
5219
5219
|
e
|
|
5220
|
-
),
|
|
5220
|
+
), Z = {
|
|
5221
5221
|
...at,
|
|
5222
5222
|
borderStyle: "solid",
|
|
5223
5223
|
borderRadius: l === "C" ? 0 : F(g ?? 0, e),
|
|
5224
5224
|
...l === "C" ? {
|
|
5225
5225
|
borderTopWidth: 0,
|
|
5226
5226
|
borderRightWidth: 0,
|
|
5227
|
-
borderBottomWidth:
|
|
5227
|
+
borderBottomWidth: st,
|
|
5228
5228
|
borderLeftWidth: 0
|
|
5229
|
-
} : { borderWidth:
|
|
5229
|
+
} : { borderWidth: st },
|
|
5230
5230
|
paddingTop: F((v == null ? void 0 : v.top) ?? 0, e),
|
|
5231
5231
|
paddingRight: F((v == null ? void 0 : v.right) ?? 0, e),
|
|
5232
5232
|
paddingBottom: F((v == null ? void 0 : v.bottom) ?? 0, e),
|
|
5233
5233
|
paddingLeft: F((v == null ? void 0 : v.left) ?? 0, e),
|
|
5234
5234
|
height: wt,
|
|
5235
5235
|
minHeight: wt
|
|
5236
|
-
},
|
|
5236
|
+
}, pt = {
|
|
5237
5237
|
fontSettings: {
|
|
5238
5238
|
fontFamily: H,
|
|
5239
5239
|
fontWeight: ($ == null ? void 0 : $.fontWeight) ?? 400,
|
|
@@ -5243,25 +5243,25 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5243
5243
|
lineHeight: E,
|
|
5244
5244
|
letterSpacing: K ?? 0,
|
|
5245
5245
|
wordSpacing: it ?? 0,
|
|
5246
|
-
textAppearance:
|
|
5246
|
+
textAppearance: et,
|
|
5247
5247
|
color: S
|
|
5248
|
-
},
|
|
5248
|
+
}, vt = $e(oe(pt, e)), Et = F(x ?? 0, e), Mt = {
|
|
5249
5249
|
fontSettings: {
|
|
5250
5250
|
fontFamily: H,
|
|
5251
5251
|
fontWeight: (rt == null ? void 0 : rt.fontWeight) ?? 400,
|
|
5252
5252
|
fontStyle: (rt == null ? void 0 : rt.fontStyle) ?? "normal"
|
|
5253
5253
|
},
|
|
5254
5254
|
fontSize: M ?? 0.01,
|
|
5255
|
-
lineHeight:
|
|
5255
|
+
lineHeight: Q,
|
|
5256
5256
|
letterSpacing: gt ?? 0,
|
|
5257
|
-
wordSpacing:
|
|
5257
|
+
wordSpacing: lt ?? 0,
|
|
5258
5258
|
textAppearance: mt,
|
|
5259
5259
|
color: C
|
|
5260
|
-
},
|
|
5260
|
+
}, Ut = oe(Mt, e), St = {
|
|
5261
5261
|
fontSettings: {
|
|
5262
5262
|
fontFamily: H,
|
|
5263
|
-
fontWeight: (
|
|
5264
|
-
fontStyle: (
|
|
5263
|
+
fontWeight: (ht == null ? void 0 : ht.fontWeight) ?? 400,
|
|
5264
|
+
fontStyle: (ht == null ? void 0 : ht.fontStyle) ?? "normal"
|
|
5265
5265
|
},
|
|
5266
5266
|
fontSize: It ?? 0.01,
|
|
5267
5267
|
lineHeight: j,
|
|
@@ -5269,7 +5269,7 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5269
5269
|
wordSpacing: y ?? 0,
|
|
5270
5270
|
textAppearance: P,
|
|
5271
5271
|
color: O
|
|
5272
|
-
},
|
|
5272
|
+
}, Ot = $e(oe(St, e)), ue = No(r, {
|
|
5273
5273
|
inputColor: b,
|
|
5274
5274
|
inputTextColor: I,
|
|
5275
5275
|
inputBorderColor: G,
|
|
@@ -5280,51 +5280,51 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5280
5280
|
labelTextColor: C,
|
|
5281
5281
|
successColor: O,
|
|
5282
5282
|
errorColor: W
|
|
5283
|
-
}, Pl, zl, Y), [_t,
|
|
5284
|
-
() => Object.fromEntries(
|
|
5285
|
-
), [uo,
|
|
5286
|
-
if (!
|
|
5283
|
+
}, Pl, zl, Y), [_t, Gt] = ct(
|
|
5284
|
+
() => Object.fromEntries(tt.map((ft) => [ft.name, ""]))
|
|
5285
|
+
), [uo, Re] = ct("idle"), [_r, Qe] = ct(null), In = o === "success" ? "success" : o === "error" ? "error" : uo, $r = o === "error" ? V : _r, tn = o === "filled", We = Bt(() => {
|
|
5286
|
+
if (!tn) return _t;
|
|
5287
5287
|
let ft = null;
|
|
5288
|
-
for (const
|
|
5289
|
-
(_t[
|
|
5288
|
+
for (const qt of tt)
|
|
5289
|
+
(_t[qt.name] ?? "").trim().length > 0 || (ft = ft ?? { ..._t }, ft[qt.name] = "Filled");
|
|
5290
5290
|
return ft ?? _t;
|
|
5291
|
-
}, [_t,
|
|
5292
|
-
|
|
5291
|
+
}, [_t, tn, tt]), Ar = In === "error" ? un(tt, We) : null, Ir = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), go = n == null ? void 0 : n.submitUrl, mo = (ft, qt) => {
|
|
5292
|
+
Gt((Yt) => ({ ...Yt, [ft]: qt }));
|
|
5293
5293
|
}, Lr = async (ft) => {
|
|
5294
5294
|
ft.preventDefault();
|
|
5295
|
-
const
|
|
5296
|
-
|
|
5297
|
-
var
|
|
5298
|
-
return [
|
|
5299
|
-
}).filter(([,
|
|
5295
|
+
const qt = Object.fromEntries(
|
|
5296
|
+
tt.map((Pt) => {
|
|
5297
|
+
var ve;
|
|
5298
|
+
return [Pt.name, ((ve = _t[Pt.name]) == null ? void 0 : ve.trim()) ?? ""];
|
|
5299
|
+
}).filter(([, Pt]) => Pt)
|
|
5300
5300
|
);
|
|
5301
5301
|
if (!go) {
|
|
5302
|
-
|
|
5302
|
+
Re("error"), Qe("No integrations were found for this form.");
|
|
5303
5303
|
return;
|
|
5304
5304
|
}
|
|
5305
|
-
if (Object.keys(
|
|
5306
|
-
const
|
|
5307
|
-
if (
|
|
5308
|
-
|
|
5305
|
+
if (Object.keys(qt).length === 0) return;
|
|
5306
|
+
const Yt = un(tt, _t);
|
|
5307
|
+
if (Yt) {
|
|
5308
|
+
Re("error"), Qe(Yt);
|
|
5309
5309
|
return;
|
|
5310
5310
|
}
|
|
5311
|
-
|
|
5311
|
+
Re("submitting"), Qe(null);
|
|
5312
5312
|
try {
|
|
5313
|
-
const
|
|
5313
|
+
const Pt = await fetch(go, {
|
|
5314
5314
|
method: "POST",
|
|
5315
5315
|
headers: { "Content-Type": "application/json" },
|
|
5316
|
-
body: JSON.stringify(
|
|
5316
|
+
body: JSON.stringify(qt)
|
|
5317
5317
|
});
|
|
5318
|
-
if (!
|
|
5319
|
-
const
|
|
5320
|
-
throw new Error(
|
|
5318
|
+
if (!Pt.ok) {
|
|
5319
|
+
const ve = await Pt.text();
|
|
5320
|
+
throw new Error(ve || `Request failed: ${Pt.status}`);
|
|
5321
5321
|
}
|
|
5322
|
-
|
|
5323
|
-
} catch (
|
|
5324
|
-
|
|
5322
|
+
Re("success"), Gt(Object.fromEntries(tt.map((ve) => [ve.name, ""])));
|
|
5323
|
+
} catch (Pt) {
|
|
5324
|
+
Re("error"), Qe(Pt instanceof Error ? Pt.message : "Something went wrong");
|
|
5325
5325
|
}
|
|
5326
5326
|
};
|
|
5327
|
-
return /* @__PURE__ */ dt("div", { className: `${r}-wrapper ${r}-type-${l} ${Ir}`.trim(), style:
|
|
5327
|
+
return /* @__PURE__ */ dt("div", { className: `${r}-wrapper ${r}-type-${l} ${Ir}`.trim(), style: ue, children: [
|
|
5328
5328
|
/* @__PURE__ */ h("style", { dangerouslySetInnerHTML: { __html: Wl(r) } }),
|
|
5329
5329
|
/* @__PURE__ */ dt(
|
|
5330
5330
|
"form",
|
|
@@ -5338,20 +5338,20 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5338
5338
|
{
|
|
5339
5339
|
className: `${r}-fields`,
|
|
5340
5340
|
style: { gap: F(p ?? 0, e) },
|
|
5341
|
-
children:
|
|
5342
|
-
X && /* @__PURE__ */ h("span", { className: `${r}-field-label`, style:
|
|
5341
|
+
children: tt.map((ft, qt) => /* @__PURE__ */ dt("div", { className: `${r}-field-group${X ? ` ${r}-labeled` : ""}`, children: [
|
|
5342
|
+
X && /* @__PURE__ */ h("span", { className: `${r}-field-label`, style: Ut ? { ...Ut, lineHeight: Ut.fontSize } : void 0, children: ft.label || ft.name }),
|
|
5343
5343
|
ft.type === "textarea" ? /* @__PURE__ */ h(
|
|
5344
5344
|
"textarea",
|
|
5345
5345
|
{
|
|
5346
5346
|
name: ft.name,
|
|
5347
5347
|
autoComplete: "off",
|
|
5348
|
-
value:
|
|
5349
|
-
onChange: (
|
|
5348
|
+
value: We[ft.name] ?? "",
|
|
5349
|
+
onChange: (Yt) => mo(ft.name, Yt.target.value),
|
|
5350
5350
|
placeholder: ft.placeholder,
|
|
5351
5351
|
className: `${r}-input`,
|
|
5352
|
-
style:
|
|
5352
|
+
style: Z,
|
|
5353
5353
|
rows: 1,
|
|
5354
|
-
"data-filled":
|
|
5354
|
+
"data-filled": tn || (We[ft.name] ?? "").trim().length > 0,
|
|
5355
5355
|
"data-field-type": "textarea"
|
|
5356
5356
|
}
|
|
5357
5357
|
) : /* @__PURE__ */ h(
|
|
@@ -5360,16 +5360,16 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5360
5360
|
type: ft.type === "phone" ? "tel" : ft.type === "email" ? "email" : "text",
|
|
5361
5361
|
name: ft.name,
|
|
5362
5362
|
autoComplete: "off",
|
|
5363
|
-
value:
|
|
5364
|
-
onChange: (
|
|
5363
|
+
value: We[ft.name] ?? "",
|
|
5364
|
+
onChange: (Yt) => mo(ft.name, Yt.target.value),
|
|
5365
5365
|
placeholder: ft.placeholder,
|
|
5366
5366
|
required: ft.isRequired ?? ft.type === "email",
|
|
5367
5367
|
className: `${r}-input`,
|
|
5368
|
-
style:
|
|
5369
|
-
"data-filled":
|
|
5368
|
+
style: Z,
|
|
5369
|
+
"data-filled": tn || (We[ft.name] ?? "").trim().length > 0
|
|
5370
5370
|
}
|
|
5371
5371
|
)
|
|
5372
|
-
] },
|
|
5372
|
+
] }, qt))
|
|
5373
5373
|
}
|
|
5374
5374
|
),
|
|
5375
5375
|
/* @__PURE__ */ h("div", { className: `${r}-overlay-anchor`, children: /* @__PURE__ */ h(
|
|
@@ -5380,12 +5380,12 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5380
5380
|
style: {
|
|
5381
5381
|
borderStyle: "solid",
|
|
5382
5382
|
borderRadius: F(L ?? 0, e),
|
|
5383
|
-
borderWidth:
|
|
5383
|
+
borderWidth: Et,
|
|
5384
5384
|
paddingTop: F((f == null ? void 0 : f.top) ?? 0, e),
|
|
5385
5385
|
paddingRight: F((f == null ? void 0 : f.right) ?? 0, e),
|
|
5386
5386
|
paddingBottom: F((f == null ? void 0 : f.bottom) ?? 0, e),
|
|
5387
5387
|
paddingLeft: F((f == null ? void 0 : f.left) ?? 0, e),
|
|
5388
|
-
...
|
|
5388
|
+
...vt,
|
|
5389
5389
|
...u ? {
|
|
5390
5390
|
width: "100%",
|
|
5391
5391
|
textAlign: "center",
|
|
@@ -5414,7 +5414,7 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5414
5414
|
"p",
|
|
5415
5415
|
{
|
|
5416
5416
|
className: `${r}-success`,
|
|
5417
|
-
style: { ...
|
|
5417
|
+
style: { ...Ot },
|
|
5418
5418
|
children: B
|
|
5419
5419
|
}
|
|
5420
5420
|
),
|
|
@@ -5422,7 +5422,7 @@ function Ml({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5422
5422
|
"p",
|
|
5423
5423
|
{
|
|
5424
5424
|
className: `${r}-error`,
|
|
5425
|
-
style: { ...
|
|
5425
|
+
style: { ...Ot },
|
|
5426
5426
|
role: "alert",
|
|
5427
5427
|
children: Ar ?? $r ?? V
|
|
5428
5428
|
}
|
|
@@ -6049,7 +6049,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6049
6049
|
{ name: "message", type: "textarea", placeholder: "Enter your message", label: "Message", isRequired: !1, error: "Message is required" },
|
|
6050
6050
|
{ name: "message2", type: "textarea", placeholder: "Enter your message 2", label: "Message 2", isRequired: !1, error: "Message 2 is required" },
|
|
6051
6051
|
{ name: "message3", type: "textarea", placeholder: "Enter your message 3", label: "Message 3", isRequired: !1, error: "Message 3 is required" }
|
|
6052
|
-
],
|
|
6052
|
+
], rn = {
|
|
6053
6053
|
fontSettings: {
|
|
6054
6054
|
type: "object",
|
|
6055
6055
|
display: { type: "font-settings-weight" },
|
|
@@ -6262,7 +6262,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6262
6262
|
display: { type: "font-family-select" }
|
|
6263
6263
|
},
|
|
6264
6264
|
inputFontSettings: {
|
|
6265
|
-
...
|
|
6265
|
+
...rn.fontSettings,
|
|
6266
6266
|
scope: "common",
|
|
6267
6267
|
title: "Input",
|
|
6268
6268
|
display: { type: "font-settings-weight" }
|
|
@@ -6298,7 +6298,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6298
6298
|
display: { type: "text-appearance" }
|
|
6299
6299
|
},
|
|
6300
6300
|
buttonFontSettings: {
|
|
6301
|
-
...
|
|
6301
|
+
...rn.fontSettings,
|
|
6302
6302
|
scope: "common",
|
|
6303
6303
|
title: "Button",
|
|
6304
6304
|
display: { type: "font-settings-weight" }
|
|
@@ -6334,7 +6334,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6334
6334
|
display: { type: "text-appearance" }
|
|
6335
6335
|
},
|
|
6336
6336
|
labelFontSettings: {
|
|
6337
|
-
...
|
|
6337
|
+
...rn.fontSettings,
|
|
6338
6338
|
scope: "common",
|
|
6339
6339
|
title: "Label",
|
|
6340
6340
|
display: { type: "font-settings-weight", visible: !1 }
|
|
@@ -6370,7 +6370,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6370
6370
|
display: { type: "text-appearance", visible: !1 }
|
|
6371
6371
|
},
|
|
6372
6372
|
statusFontSettings: {
|
|
6373
|
-
...
|
|
6373
|
+
...rn.fontSettings,
|
|
6374
6374
|
scope: "common",
|
|
6375
6375
|
title: "Success/Error"
|
|
6376
6376
|
},
|
|
@@ -6682,7 +6682,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6682
6682
|
schema: Bl,
|
|
6683
6683
|
sourceCode: Hl
|
|
6684
6684
|
};
|
|
6685
|
-
function
|
|
6685
|
+
function an(t) {
|
|
6686
6686
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
6687
6687
|
}
|
|
6688
6688
|
function Dl(t) {
|
|
@@ -6868,13 +6868,13 @@ function Dl(t) {
|
|
|
6868
6868
|
align-items: center;
|
|
6869
6869
|
}
|
|
6870
6870
|
.${t}-success {
|
|
6871
|
-
margin-top: ${
|
|
6872
|
-
font-size: ${
|
|
6871
|
+
margin-top: ${an(8)};
|
|
6872
|
+
font-size: ${an(14)};
|
|
6873
6873
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
6874
6874
|
}
|
|
6875
6875
|
.${t}-error {
|
|
6876
|
-
margin-top: ${
|
|
6877
|
-
font-size: ${
|
|
6876
|
+
margin-top: ${an(8)};
|
|
6877
|
+
font-size: ${an(14)};
|
|
6878
6878
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
6879
6879
|
}
|
|
6880
6880
|
`;
|
|
@@ -6913,15 +6913,15 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6913
6913
|
buttonPadding: A,
|
|
6914
6914
|
successMessage: $ = "Thanks for subscribing!",
|
|
6915
6915
|
errorMessage: _ = "Please, fill all required fields."
|
|
6916
|
-
} = t, E = l.slice(0, Math.min(c, l.length)), [K, it] =
|
|
6916
|
+
} = t, E = l.slice(0, Math.min(c, l.length)), [K, it] = ct(
|
|
6917
6917
|
() => Object.fromEntries(E.map((St) => [St.name, ""]))
|
|
6918
|
-
), [
|
|
6918
|
+
), [et, rt] = ct("idle"), [M, Q] = ct(null), gt = o === "success" ? "success" : o === "error" ? "error" : et, lt = o === "error" ? _ : M, mt = o === "filled", ht = Bt(() => {
|
|
6919
6919
|
if (!mt) return K;
|
|
6920
6920
|
let St = null;
|
|
6921
|
-
for (const
|
|
6922
|
-
(K[
|
|
6921
|
+
for (const Ot of E)
|
|
6922
|
+
(K[Ot.name] ?? "").trim().length > 0 || (St = St ?? { ...K }, St[Ot.name] = "Filled");
|
|
6923
6923
|
return St ?? K;
|
|
6924
|
-
}, [mt, K, E]), It = gt === "error" ?
|
|
6924
|
+
}, [mt, K, E]), It = gt === "error" ? un(E, ht) : null, j = o && o !== "default" ? `${r}-state-${o}` : "", a = E.some((St) => (ht[St.name] ?? "").trim().length > 0), y = j !== `${r}-state-filled` && a ? `${r}-state-filled` : "", P = `${j} ${y}`.trim(), B = n == null ? void 0 : n.submitUrl, V = s ?? "", Y = (i == null ? void 0 : i.icon) ?? "", X = (i == null ? void 0 : i.mode) === "On", tt = V || "Submit", nt = {
|
|
6925
6925
|
fontSettings: {
|
|
6926
6926
|
fontFamily: d,
|
|
6927
6927
|
fontWeight: (p == null ? void 0 : p.fontWeight) ?? 400,
|
|
@@ -6945,7 +6945,7 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6945
6945
|
wordSpacing: G ?? 0,
|
|
6946
6946
|
textAppearance: N,
|
|
6947
6947
|
color: t.buttonTextColor ?? "#ffffff"
|
|
6948
|
-
},
|
|
6948
|
+
}, st = {
|
|
6949
6949
|
fontSettings: {
|
|
6950
6950
|
fontFamily: d,
|
|
6951
6951
|
fontWeight: (T == null ? void 0 : T.fontWeight) ?? 400,
|
|
@@ -6957,62 +6957,62 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6957
6957
|
wordSpacing: O ?? 0,
|
|
6958
6958
|
textAppearance: W,
|
|
6959
6959
|
color: t.successColor ?? "#22c55e"
|
|
6960
|
-
}, wt =
|
|
6960
|
+
}, wt = $e(oe(nt, e)), Z = $e(oe(at, e)), pt = $e(oe(st, e)), vt = No(r, {
|
|
6961
6961
|
strokeColor: t.strokeColor,
|
|
6962
6962
|
inputColor: t.inputColor,
|
|
6963
6963
|
placeholderColor: t.placeholderColor,
|
|
6964
6964
|
buttonColor: t.buttonColor,
|
|
6965
6965
|
successColor: t.successColor,
|
|
6966
6966
|
errorColor: t.errorColor,
|
|
6967
|
-
inputTextColor: t.inputTextColor ?? (
|
|
6967
|
+
inputTextColor: t.inputTextColor ?? (nt == null ? void 0 : nt.color) ?? "#111111",
|
|
6968
6968
|
buttonTextColor: t.buttonTextColor ?? (at == null ? void 0 : at.color) ?? "#ffffff"
|
|
6969
|
-
}, Ul, Gl, m),
|
|
6969
|
+
}, Ul, Gl, m), Et = {
|
|
6970
6970
|
borderRadius: F(q, e),
|
|
6971
6971
|
borderWidth: F(D, e),
|
|
6972
6972
|
borderStyle: "solid"
|
|
6973
|
-
},
|
|
6973
|
+
}, Mt = { borderLeftWidth: F(D, e) }, Ut = async (St) => {
|
|
6974
6974
|
St.preventDefault();
|
|
6975
|
-
const
|
|
6975
|
+
const Ot = Object.fromEntries(
|
|
6976
6976
|
E.map((_t) => {
|
|
6977
|
-
var
|
|
6978
|
-
return [_t.name, ((
|
|
6977
|
+
var Gt;
|
|
6978
|
+
return [_t.name, ((Gt = K[_t.name]) == null ? void 0 : Gt.trim()) ?? ""];
|
|
6979
6979
|
}).filter(([, _t]) => _t)
|
|
6980
6980
|
);
|
|
6981
6981
|
if (!B) {
|
|
6982
|
-
rt("error"),
|
|
6982
|
+
rt("error"), Q("No integrations were found for this form.");
|
|
6983
6983
|
return;
|
|
6984
6984
|
}
|
|
6985
|
-
if (Object.keys(
|
|
6986
|
-
const
|
|
6987
|
-
if (
|
|
6988
|
-
rt("error"),
|
|
6985
|
+
if (Object.keys(Ot).length === 0) return;
|
|
6986
|
+
const ue = un(E, K);
|
|
6987
|
+
if (ue) {
|
|
6988
|
+
rt("error"), Q(ue);
|
|
6989
6989
|
return;
|
|
6990
6990
|
}
|
|
6991
|
-
rt("submitting"),
|
|
6991
|
+
rt("submitting"), Q(null);
|
|
6992
6992
|
try {
|
|
6993
6993
|
const _t = await fetch(B, {
|
|
6994
6994
|
method: "POST",
|
|
6995
6995
|
headers: { "Content-Type": "application/json" },
|
|
6996
|
-
body: JSON.stringify(
|
|
6996
|
+
body: JSON.stringify(Ot)
|
|
6997
6997
|
});
|
|
6998
6998
|
if (!_t.ok) {
|
|
6999
|
-
const
|
|
7000
|
-
throw new Error(
|
|
6999
|
+
const Gt = await _t.text();
|
|
7000
|
+
throw new Error(Gt || `Request failed: ${_t.status}`);
|
|
7001
7001
|
}
|
|
7002
|
-
rt("success"), it(Object.fromEntries(E.map((
|
|
7002
|
+
rt("success"), it(Object.fromEntries(E.map((Gt) => [Gt.name, ""])));
|
|
7003
7003
|
} catch (_t) {
|
|
7004
|
-
rt("error"),
|
|
7004
|
+
rt("error"), Q(_t instanceof Error ? _t.message : "Something went wrong");
|
|
7005
7005
|
}
|
|
7006
7006
|
};
|
|
7007
|
-
return /* @__PURE__ */ dt("div", { className: `${r}-wrapper ${P}`.trim(), style:
|
|
7007
|
+
return /* @__PURE__ */ dt("div", { className: `${r}-wrapper ${P}`.trim(), style: vt, children: [
|
|
7008
7008
|
/* @__PURE__ */ h("style", { dangerouslySetInnerHTML: { __html: Dl(r) } }),
|
|
7009
7009
|
/* @__PURE__ */ dt(
|
|
7010
7010
|
"form",
|
|
7011
7011
|
{
|
|
7012
|
-
onSubmit:
|
|
7012
|
+
onSubmit: Ut,
|
|
7013
7013
|
className: `${r}-form`,
|
|
7014
7014
|
style: {
|
|
7015
|
-
...
|
|
7015
|
+
...Et,
|
|
7016
7016
|
height: F(z, e),
|
|
7017
7017
|
minHeight: F(z, e)
|
|
7018
7018
|
},
|
|
@@ -7028,8 +7028,8 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7028
7028
|
type: St.type === "email" ? "email" : St.type === "phone" ? "tel" : "text",
|
|
7029
7029
|
name: St.name,
|
|
7030
7030
|
autoComplete: "off",
|
|
7031
|
-
value:
|
|
7032
|
-
onChange: (
|
|
7031
|
+
value: ht[St.name] ?? "",
|
|
7032
|
+
onChange: (Ot) => it((ue) => ({ ...ue, [St.name]: Ot.target.value })),
|
|
7033
7033
|
placeholder: St.placeholder,
|
|
7034
7034
|
required: St.isRequired ?? St.type === "email",
|
|
7035
7035
|
className: `${r}-input`,
|
|
@@ -7050,17 +7050,17 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7050
7050
|
{
|
|
7051
7051
|
type: "submit",
|
|
7052
7052
|
className: `${r}-submitBtn`,
|
|
7053
|
-
"aria-label":
|
|
7053
|
+
"aria-label": tt,
|
|
7054
7054
|
style: {
|
|
7055
|
-
...
|
|
7056
|
-
...
|
|
7055
|
+
...Z,
|
|
7056
|
+
...Mt,
|
|
7057
7057
|
paddingRight: F(A.right, e),
|
|
7058
7058
|
paddingLeft: F(A.left, e),
|
|
7059
7059
|
paddingTop: F(A.top, e),
|
|
7060
7060
|
paddingBottom: F(A.bottom, e)
|
|
7061
7061
|
},
|
|
7062
|
-
children:
|
|
7063
|
-
|
|
7062
|
+
children: et === "submitting" ? "..." : X ? Y && /* @__PURE__ */ h(
|
|
7063
|
+
ie,
|
|
7064
7064
|
{
|
|
7065
7065
|
url: Y,
|
|
7066
7066
|
className: `${r}-submitBtnIcon`,
|
|
@@ -7078,7 +7078,7 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7078
7078
|
"p",
|
|
7079
7079
|
{
|
|
7080
7080
|
className: `${r}-success`,
|
|
7081
|
-
style: { ...
|
|
7081
|
+
style: { ...pt },
|
|
7082
7082
|
children: $
|
|
7083
7083
|
}
|
|
7084
7084
|
),
|
|
@@ -7086,9 +7086,9 @@ const jl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7086
7086
|
"p",
|
|
7087
7087
|
{
|
|
7088
7088
|
className: `${r}-error`,
|
|
7089
|
-
style: { ...
|
|
7089
|
+
style: { ...pt },
|
|
7090
7090
|
role: "alert",
|
|
7091
|
-
children: It ??
|
|
7091
|
+
children: It ?? lt ?? _
|
|
7092
7092
|
}
|
|
7093
7093
|
)
|
|
7094
7094
|
] });
|
|
@@ -8187,7 +8187,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8187
8187
|
},
|
|
8188
8188
|
schema: Jl,
|
|
8189
8189
|
sourceCode: ql
|
|
8190
|
-
}, Ql = "TestimonialsGrid-module__marqueeWrapper___VC616", ts = "TestimonialsGrid-module__marqueeTrack___U0OTH", es = "TestimonialsGrid-module__marqueeSet___L7ZdX", ns = "TestimonialsGrid-module__wrapper___-JQKm", os = "TestimonialsGrid-module__cover___3-r73", rs = "TestimonialsGrid-module__elementsOverlay___sSbJp", is = "TestimonialsGrid-module__control___pD3e4",
|
|
8190
|
+
}, Ql = "TestimonialsGrid-module__marqueeWrapper___VC616", ts = "TestimonialsGrid-module__marqueeTrack___U0OTH", es = "TestimonialsGrid-module__marqueeSet___L7ZdX", ns = "TestimonialsGrid-module__wrapper___-JQKm", os = "TestimonialsGrid-module__cover___3-r73", rs = "TestimonialsGrid-module__elementsOverlay___sSbJp", is = "TestimonialsGrid-module__control___pD3e4", Xt = {
|
|
8191
8191
|
marqueeWrapper: Ql,
|
|
8192
8192
|
marqueeTrack: ts,
|
|
8193
8193
|
marqueeSet: es,
|
|
@@ -8208,12 +8208,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8208
8208
|
textAppearance: t.textAppearance,
|
|
8209
8209
|
color: t.color
|
|
8210
8210
|
}), cs = ({ settings: t, content: e, isEditor: n, isPreviewMode: o }) => {
|
|
8211
|
-
const { autoplay: r, align: l, speed: i, direction: s, pauseOnHover: c, gap: d, cardWidth: p, corners: L, stroke: x, strokeColor: f, bgColor: u, padding: g, logoMarginTop: w, logoWidth: v, logoHeight: b, textMinHeight: I, captionMinHeight: G, captionMarginTop: N } = t, T = r === "on", S = T && !o, k = Math.max(0, ls(i)) * as, C = (a) => F(a, n ?? !1), O = Ct(null), W = Ct(null), H = Ct(null), [z, q] =
|
|
8212
|
-
var
|
|
8213
|
-
const y = (
|
|
8211
|
+
const { autoplay: r, align: l, speed: i, direction: s, pauseOnHover: c, gap: d, cardWidth: p, corners: L, stroke: x, strokeColor: f, bgColor: u, padding: g, logoMarginTop: w, logoWidth: v, logoHeight: b, textMinHeight: I, captionMinHeight: G, captionMarginTop: N } = t, T = r === "on", S = T && !o, k = Math.max(0, ls(i)) * as, C = (a) => F(a, n ?? !1), O = Ct(null), W = Ct(null), H = Ct(null), [z, q] = ct(0), [D, m] = ct(0), R = Ct(0), A = Ct(!1), $ = Ct(null), _ = S && c === "on", E = Bt(() => typeof s == "boolean" ? s ? "right" : "left" : String(s ?? "").trim().toLowerCase() === "right" ? "right" : "left", [s]), K = Ct(E), it = (a) => {
|
|
8212
|
+
var vt;
|
|
8213
|
+
const y = (vt = t == null ? void 0 : t.styles) == null ? void 0 : vt[a];
|
|
8214
8214
|
if (y) return y;
|
|
8215
|
-
const P = a === "text" ? "text" : "caption", B = t == null ? void 0 : t[`${P}FontFamily`], V = t == null ? void 0 : t[`${P}FontSettings`], Y = t == null ? void 0 : t[`${P}LetterSpacing`], X = t == null ? void 0 : t[`${P}WordSpacing`],
|
|
8216
|
-
return typeof B == "string" || !!V || typeof Y == "number" || typeof X == "number" || typeof
|
|
8215
|
+
const P = a === "text" ? "text" : "caption", B = t == null ? void 0 : t[`${P}FontFamily`], V = t == null ? void 0 : t[`${P}FontSettings`], Y = t == null ? void 0 : t[`${P}LetterSpacing`], X = t == null ? void 0 : t[`${P}WordSpacing`], tt = t == null ? void 0 : t[`${P}TextAlign`], nt = t == null ? void 0 : t[`${P}TextAppearance`], at = (t == null ? void 0 : t[`${P}Color`]) ?? (a === "text" ? t == null ? void 0 : t.textColor : void 0) ?? (a === "caption" ? t == null ? void 0 : t.captionColor : void 0), st = t == null ? void 0 : t[`${P}FontSize`], wt = t == null ? void 0 : t[`${P}LineHeight`];
|
|
8216
|
+
return typeof B == "string" || !!V || typeof Y == "number" || typeof X == "number" || typeof tt == "string" || !!nt || typeof at == "string" || typeof st == "number" || typeof wt == "number" ? {
|
|
8217
8217
|
widthSettings: { width: 0.13, sizing: "manual" },
|
|
8218
8218
|
fontSettings: {
|
|
8219
8219
|
fontFamily: typeof B == "string" ? B : "Arial",
|
|
@@ -8222,19 +8222,19 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8222
8222
|
},
|
|
8223
8223
|
letterSpacing: typeof Y == "number" ? Y : 0,
|
|
8224
8224
|
wordSpacing: typeof X == "number" ? X : 0,
|
|
8225
|
-
textAlign:
|
|
8225
|
+
textAlign: tt === "left" || tt === "center" || tt === "right" ? tt : "left",
|
|
8226
8226
|
fontSizeLineHeight: {
|
|
8227
|
-
fontSize: typeof
|
|
8227
|
+
fontSize: typeof st == "number" ? st : 0.01,
|
|
8228
8228
|
lineHeight: typeof wt == "number" ? wt : 0.01
|
|
8229
8229
|
},
|
|
8230
8230
|
textAppearance: {
|
|
8231
|
-
textTransform: (
|
|
8232
|
-
textDecoration: (
|
|
8233
|
-
fontVariant: (
|
|
8231
|
+
textTransform: (nt == null ? void 0 : nt.textTransform) ?? "none",
|
|
8232
|
+
textDecoration: (nt == null ? void 0 : nt.textDecoration) ?? "none",
|
|
8233
|
+
fontVariant: (nt == null ? void 0 : nt.fontVariant) ?? "normal"
|
|
8234
8234
|
},
|
|
8235
8235
|
color: typeof at == "string" ? at : "#000000"
|
|
8236
8236
|
} : void 0;
|
|
8237
|
-
},
|
|
8237
|
+
}, et = it("text"), rt = it("caption"), M = Bt(() => !T || (e == null ? void 0 : e.length) === 0 ? 1 : D <= 0 || z <= 0 ? 2 : Math.max(2, Math.ceil(z / D) + 1), [T, e == null ? void 0 : e.length, D, z]);
|
|
8238
8238
|
Mn(() => {
|
|
8239
8239
|
if (!T) return;
|
|
8240
8240
|
const a = O.current, y = H.current;
|
|
@@ -8267,13 +8267,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8267
8267
|
R.current = y > 0 ? Y / y % 1 : 0, V.cancel(), $.current === V && ($.current = null);
|
|
8268
8268
|
};
|
|
8269
8269
|
}, [T, S, D, k, E]);
|
|
8270
|
-
const
|
|
8270
|
+
const Q = () => {
|
|
8271
8271
|
var a;
|
|
8272
8272
|
_ && (A.current = !0, (a = $.current) == null || a.pause());
|
|
8273
8273
|
}, gt = () => {
|
|
8274
8274
|
var a;
|
|
8275
8275
|
_ && (A.current = !1, (a = $.current) == null || a.play());
|
|
8276
|
-
},
|
|
8276
|
+
}, lt = Bt(() => {
|
|
8277
8277
|
switch (l) {
|
|
8278
8278
|
case "center":
|
|
8279
8279
|
return "center";
|
|
@@ -8283,7 +8283,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8283
8283
|
default:
|
|
8284
8284
|
return "flex-start";
|
|
8285
8285
|
}
|
|
8286
|
-
}, [l]), mt =
|
|
8286
|
+
}, [l]), mt = Bt(() => {
|
|
8287
8287
|
switch (l) {
|
|
8288
8288
|
case "center":
|
|
8289
8289
|
return "center";
|
|
@@ -8293,13 +8293,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8293
8293
|
default:
|
|
8294
8294
|
return "left";
|
|
8295
8295
|
}
|
|
8296
|
-
}, [l]),
|
|
8296
|
+
}, [l]), ht = (a, y, P, B) => /* @__PURE__ */ dt(
|
|
8297
8297
|
"div",
|
|
8298
8298
|
{
|
|
8299
8299
|
style: {
|
|
8300
8300
|
display: "flex",
|
|
8301
8301
|
flexDirection: "column",
|
|
8302
|
-
alignItems:
|
|
8302
|
+
alignItems: lt,
|
|
8303
8303
|
width: "100%"
|
|
8304
8304
|
},
|
|
8305
8305
|
children: [
|
|
@@ -8308,7 +8308,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8308
8308
|
{
|
|
8309
8309
|
"data-controls": B == null ? void 0 : B.controlsName,
|
|
8310
8310
|
"data-controls-axis": "y",
|
|
8311
|
-
className:
|
|
8311
|
+
className: Xt.control,
|
|
8312
8312
|
style: { width: "100%", height: C((B == null ? void 0 : B.marginTop) ?? 0) }
|
|
8313
8313
|
}
|
|
8314
8314
|
),
|
|
@@ -8316,12 +8316,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8316
8316
|
"div",
|
|
8317
8317
|
{
|
|
8318
8318
|
style: {
|
|
8319
|
-
...
|
|
8319
|
+
...oe(ss(a), n),
|
|
8320
8320
|
textAlign: mt,
|
|
8321
8321
|
pointerEvents: "auto",
|
|
8322
8322
|
...B != null && B.minHeight ? { minHeight: C(B.minHeight) } : {}
|
|
8323
8323
|
},
|
|
8324
|
-
children: /* @__PURE__ */ h(
|
|
8324
|
+
children: /* @__PURE__ */ h(je, { content: y })
|
|
8325
8325
|
}
|
|
8326
8326
|
)
|
|
8327
8327
|
]
|
|
@@ -8346,30 +8346,30 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8346
8346
|
/* @__PURE__ */ h(
|
|
8347
8347
|
"div",
|
|
8348
8348
|
{
|
|
8349
|
-
className:
|
|
8349
|
+
className: Xt.cover,
|
|
8350
8350
|
style: { background: u, height: "100%" }
|
|
8351
8351
|
}
|
|
8352
8352
|
),
|
|
8353
8353
|
/* @__PURE__ */ dt(
|
|
8354
8354
|
"div",
|
|
8355
8355
|
{
|
|
8356
|
-
className:
|
|
8356
|
+
className: Xt.elementsOverlay,
|
|
8357
8357
|
style: {
|
|
8358
8358
|
display: "flex",
|
|
8359
8359
|
flexDirection: "column",
|
|
8360
8360
|
pointerEvents: "none",
|
|
8361
|
-
alignItems:
|
|
8361
|
+
alignItems: lt,
|
|
8362
8362
|
textAlign: mt
|
|
8363
8363
|
},
|
|
8364
8364
|
children: [
|
|
8365
|
-
|
|
8365
|
+
et && a.text && ht(et, a.text, "text", { minHeight: I }),
|
|
8366
8366
|
/* @__PURE__ */ dt(
|
|
8367
8367
|
"div",
|
|
8368
8368
|
{
|
|
8369
8369
|
style: {
|
|
8370
8370
|
display: "flex",
|
|
8371
8371
|
flexDirection: "column",
|
|
8372
|
-
alignItems:
|
|
8372
|
+
alignItems: lt,
|
|
8373
8373
|
width: "100%"
|
|
8374
8374
|
},
|
|
8375
8375
|
children: [
|
|
@@ -8377,7 +8377,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8377
8377
|
"div",
|
|
8378
8378
|
{
|
|
8379
8379
|
"data-controls": "logoMarginTop",
|
|
8380
|
-
className:
|
|
8380
|
+
className: Xt.control,
|
|
8381
8381
|
style: { width: "100%", height: C(w) }
|
|
8382
8382
|
}
|
|
8383
8383
|
),
|
|
@@ -8393,7 +8393,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8393
8393
|
},
|
|
8394
8394
|
"logo"
|
|
8395
8395
|
),
|
|
8396
|
-
rt && a.caption &&
|
|
8396
|
+
rt && a.caption && ht(rt, a.caption, "caption", {
|
|
8397
8397
|
controlsName: "captionMarginTop",
|
|
8398
8398
|
marginTop: N,
|
|
8399
8399
|
minHeight: G
|
|
@@ -8435,18 +8435,18 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8435
8435
|
},
|
|
8436
8436
|
y
|
|
8437
8437
|
);
|
|
8438
|
-
return T && (e != null && e.length) && e.length > 0 ? /* @__PURE__ */ h("div", { ref: O, className: ut(
|
|
8438
|
+
return T && (e != null && e.length) && e.length > 0 ? /* @__PURE__ */ h("div", { ref: O, className: ut(Xt.wrapper, Xt.marqueeWrapper), "aria-label": "Testimonials", children: /* @__PURE__ */ h(
|
|
8439
8439
|
"div",
|
|
8440
8440
|
{
|
|
8441
8441
|
ref: W,
|
|
8442
|
-
className:
|
|
8443
|
-
onMouseEnter:
|
|
8442
|
+
className: Xt.marqueeTrack,
|
|
8443
|
+
onMouseEnter: Q,
|
|
8444
8444
|
onMouseLeave: gt,
|
|
8445
8445
|
children: Array.from({ length: M }, (a, y) => /* @__PURE__ */ h(
|
|
8446
8446
|
"div",
|
|
8447
8447
|
{
|
|
8448
8448
|
ref: y === 0 ? H : void 0,
|
|
8449
|
-
className:
|
|
8449
|
+
className: Xt.marqueeSet,
|
|
8450
8450
|
style: { gap: C(d), paddingRight: C(d) },
|
|
8451
8451
|
"aria-hidden": y > 0,
|
|
8452
8452
|
children: e == null ? void 0 : e.map(
|
|
@@ -8456,7 +8456,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8456
8456
|
`set-${y}`
|
|
8457
8457
|
))
|
|
8458
8458
|
}
|
|
8459
|
-
) }) : /* @__PURE__ */ h("div", { className:
|
|
8459
|
+
) }) : /* @__PURE__ */ h("div", { className: Xt.wrapper, children: /* @__PURE__ */ h(
|
|
8460
8460
|
"div",
|
|
8461
8461
|
{
|
|
8462
8462
|
style: {
|
|
@@ -9479,7 +9479,7 @@ type TestimonialsStyles = {
|
|
|
9479
9479
|
return y === "on" || y === "true";
|
|
9480
9480
|
}
|
|
9481
9481
|
return !1;
|
|
9482
|
-
})(), b = v && !o, [I, G] =
|
|
9482
|
+
})(), b = v && !o, [I, G] = ct(0), [N, T] = ct(null), [S, k] = ct(!1), C = Ct(null), O = Bt(() => {
|
|
9483
9483
|
switch (s) {
|
|
9484
9484
|
case "center":
|
|
9485
9485
|
return "center";
|
|
@@ -9489,7 +9489,7 @@ type TestimonialsStyles = {
|
|
|
9489
9489
|
default:
|
|
9490
9490
|
return "flex-start";
|
|
9491
9491
|
}
|
|
9492
|
-
}, [s]), W =
|
|
9492
|
+
}, [s]), W = Bt(() => {
|
|
9493
9493
|
switch (s) {
|
|
9494
9494
|
case "center":
|
|
9495
9495
|
return "center";
|
|
@@ -9504,11 +9504,11 @@ type TestimonialsStyles = {
|
|
|
9504
9504
|
G(0), T(null), k(!1);
|
|
9505
9505
|
}, [r.length]);
|
|
9506
9506
|
const H = r[I], z = N === null ? null : r[N], q = (a) => {
|
|
9507
|
-
var
|
|
9508
|
-
const y = (
|
|
9507
|
+
var vt;
|
|
9508
|
+
const y = (vt = t == null ? void 0 : t.styles) == null ? void 0 : vt[a];
|
|
9509
9509
|
if (y) return y;
|
|
9510
|
-
const P = a === "text" ? "text" : "caption", B = t == null ? void 0 : t[`${P}FontFamily`], V = t == null ? void 0 : t[`${P}FontSettings`], Y = t == null ? void 0 : t[`${P}LetterSpacing`], X = t == null ? void 0 : t[`${P}WordSpacing`],
|
|
9511
|
-
return typeof B == "string" || !!V || typeof Y == "number" || typeof X == "number" || typeof
|
|
9510
|
+
const P = a === "text" ? "text" : "caption", B = t == null ? void 0 : t[`${P}FontFamily`], V = t == null ? void 0 : t[`${P}FontSettings`], Y = t == null ? void 0 : t[`${P}LetterSpacing`], X = t == null ? void 0 : t[`${P}WordSpacing`], tt = t == null ? void 0 : t[`${P}TextAlign`], nt = t == null ? void 0 : t[`${P}TextAppearance`], at = t == null ? void 0 : t[`${P}Color`], st = t == null ? void 0 : t[`${P}FontSize`], wt = t == null ? void 0 : t[`${P}LineHeight`];
|
|
9511
|
+
return typeof B == "string" || !!V || typeof Y == "number" || typeof X == "number" || typeof tt == "string" || !!nt || typeof at == "string" || typeof st == "number" || typeof wt == "number" ? {
|
|
9512
9512
|
widthSettings: { width: 0.13, sizing: "manual" },
|
|
9513
9513
|
fontSettings: {
|
|
9514
9514
|
fontFamily: typeof B == "string" ? B : "Arial",
|
|
@@ -9517,52 +9517,52 @@ type TestimonialsStyles = {
|
|
|
9517
9517
|
},
|
|
9518
9518
|
letterSpacing: typeof Y == "number" ? Y : 0,
|
|
9519
9519
|
wordSpacing: typeof X == "number" ? X : 0,
|
|
9520
|
-
textAlign:
|
|
9520
|
+
textAlign: tt === "left" || tt === "center" || tt === "right" ? tt : "left",
|
|
9521
9521
|
fontSizeLineHeight: {
|
|
9522
|
-
fontSize: typeof
|
|
9522
|
+
fontSize: typeof st == "number" ? st : 0.01,
|
|
9523
9523
|
lineHeight: typeof wt == "number" ? wt : 0.01
|
|
9524
9524
|
},
|
|
9525
9525
|
textAppearance: {
|
|
9526
|
-
textTransform: (
|
|
9527
|
-
textDecoration: (
|
|
9528
|
-
fontVariant: (
|
|
9526
|
+
textTransform: (nt == null ? void 0 : nt.textTransform) ?? "none",
|
|
9527
|
+
textDecoration: (nt == null ? void 0 : nt.textDecoration) ?? "none",
|
|
9528
|
+
fontVariant: (nt == null ? void 0 : nt.fontVariant) ?? "normal"
|
|
9529
9529
|
},
|
|
9530
9530
|
color: typeof at == "string" ? at : "#000000"
|
|
9531
9531
|
} : void 0;
|
|
9532
|
-
}, D = q("text"), m = q("caption"), R = (a) => F(a, n ?? !1), A = r.length > 1 && (!!D || !!m), $ = Ct(null), [_, E] =
|
|
9532
|
+
}, D = q("text"), m = q("caption"), R = (a) => F(a, n ?? !1), A = r.length > 1 && (!!D || !!m), $ = Ct(null), [_, E] = ct(0), [K, it] = ct(0), et = r.length > 1, rt = Se((a, y) => !et || y === a ? a : (C.current && window.clearTimeout(C.current), T(a), k(!0), C.current = window.setTimeout(() => {
|
|
9533
9533
|
T(null), k(!1), C.current = null;
|
|
9534
|
-
}, 300), y), [
|
|
9535
|
-
|
|
9534
|
+
}, 300), y), [et]);
|
|
9535
|
+
Se((a) => {
|
|
9536
9536
|
G((y) => rt(y, a));
|
|
9537
9537
|
}, [rt]);
|
|
9538
|
-
const M =
|
|
9539
|
-
|
|
9540
|
-
}, [
|
|
9541
|
-
|
|
9542
|
-
}, [
|
|
9538
|
+
const M = Se(() => {
|
|
9539
|
+
et && G((a) => rt(a, (a - 1 + r.length) % r.length));
|
|
9540
|
+
}, [et, rt, r.length]), Q = Se(() => {
|
|
9541
|
+
et && G((a) => rt(a, (a + 1) % r.length));
|
|
9542
|
+
}, [et, rt, r.length]);
|
|
9543
9543
|
$t(() => {
|
|
9544
|
-
if (!b || !
|
|
9544
|
+
if (!b || !et) return;
|
|
9545
9545
|
const a = window.setInterval(() => {
|
|
9546
9546
|
G((y) => rt(y, (y + 1) % r.length));
|
|
9547
9547
|
}, i);
|
|
9548
9548
|
return () => {
|
|
9549
9549
|
window.clearInterval(a);
|
|
9550
9550
|
};
|
|
9551
|
-
}, [b,
|
|
9551
|
+
}, [b, et, rt, r.length, i]), $t(() => () => {
|
|
9552
9552
|
C.current && window.clearTimeout(C.current);
|
|
9553
9553
|
}, []);
|
|
9554
9554
|
const gt = t.controls ?? {
|
|
9555
9555
|
mode: "Off",
|
|
9556
9556
|
icon: null
|
|
9557
|
-
},
|
|
9557
|
+
}, lt = gt.mode === "On" ? gt.icon ?? null : null, mt = Bt(() => R(0.01), [n]), ht = Bt(
|
|
9558
9558
|
() => F(u ?? 0.02, n ?? !1),
|
|
9559
9559
|
[u, n]
|
|
9560
|
-
), It =
|
|
9561
|
-
var
|
|
9560
|
+
), It = Se((a, y) => {
|
|
9561
|
+
var tt, nt, at, st, wt;
|
|
9562
9562
|
const P = y == null ? void 0 : y.textMinHeightPx, B = y == null ? void 0 : y.captionMinHeightPx, V = y == null ? void 0 : y.dataMeasureAttrs;
|
|
9563
9563
|
let Y = null;
|
|
9564
9564
|
if (D) {
|
|
9565
|
-
const { fontSettings:
|
|
9565
|
+
const { fontSettings: Z, letterSpacing: pt, wordSpacing: vt, fontSizeLineHeight: Et, textAppearance: Mt, color: Ut } = D;
|
|
9566
9566
|
Y = /* @__PURE__ */ dt(
|
|
9567
9567
|
"div",
|
|
9568
9568
|
{
|
|
@@ -9586,22 +9586,22 @@ type TestimonialsStyles = {
|
|
|
9586
9586
|
{
|
|
9587
9587
|
...V ? { "data-testimonial-measure": "text" } : {},
|
|
9588
9588
|
style: {
|
|
9589
|
-
fontFamily:
|
|
9590
|
-
fontWeight:
|
|
9591
|
-
fontStyle:
|
|
9589
|
+
fontFamily: Z.fontFamily,
|
|
9590
|
+
fontWeight: Z.fontWeight,
|
|
9591
|
+
fontStyle: Z.fontStyle,
|
|
9592
9592
|
...typeof P == "number" && P > 0 ? { minHeight: P } : {},
|
|
9593
|
-
letterSpacing: F(
|
|
9594
|
-
wordSpacing: F(
|
|
9593
|
+
letterSpacing: F(pt, n),
|
|
9594
|
+
wordSpacing: F(vt, n),
|
|
9595
9595
|
textAlign: W,
|
|
9596
|
-
fontSize: F(
|
|
9597
|
-
lineHeight: F(
|
|
9598
|
-
textTransform:
|
|
9599
|
-
textDecoration:
|
|
9600
|
-
fontVariant:
|
|
9601
|
-
color:
|
|
9596
|
+
fontSize: F(Et.fontSize, n),
|
|
9597
|
+
lineHeight: F(Et.lineHeight, n),
|
|
9598
|
+
textTransform: Mt.textTransform ?? "none",
|
|
9599
|
+
textDecoration: Mt.textDecoration ?? "none",
|
|
9600
|
+
fontVariant: Mt.fontVariant ?? "normal",
|
|
9601
|
+
color: Ut,
|
|
9602
9602
|
pointerEvents: "auto"
|
|
9603
9603
|
},
|
|
9604
|
-
children: /* @__PURE__ */ h(
|
|
9604
|
+
children: /* @__PURE__ */ h(je, { content: a.text ?? [] })
|
|
9605
9605
|
}
|
|
9606
9606
|
)
|
|
9607
9607
|
]
|
|
@@ -9611,7 +9611,7 @@ type TestimonialsStyles = {
|
|
|
9611
9611
|
}
|
|
9612
9612
|
let X = null;
|
|
9613
9613
|
if (m) {
|
|
9614
|
-
const { fontSettings:
|
|
9614
|
+
const { fontSettings: Z, letterSpacing: pt, wordSpacing: vt, fontSizeLineHeight: Et, textAppearance: Mt, color: Ut } = m;
|
|
9615
9615
|
X = /* @__PURE__ */ dt(
|
|
9616
9616
|
"div",
|
|
9617
9617
|
{
|
|
@@ -9635,22 +9635,22 @@ type TestimonialsStyles = {
|
|
|
9635
9635
|
{
|
|
9636
9636
|
...V ? { "data-testimonial-measure": "caption" } : {},
|
|
9637
9637
|
style: {
|
|
9638
|
-
fontFamily:
|
|
9639
|
-
fontWeight:
|
|
9640
|
-
fontStyle:
|
|
9638
|
+
fontFamily: Z.fontFamily,
|
|
9639
|
+
fontWeight: Z.fontWeight,
|
|
9640
|
+
fontStyle: Z.fontStyle,
|
|
9641
9641
|
...typeof B == "number" && B > 0 ? { minHeight: B } : {},
|
|
9642
|
-
letterSpacing: F(
|
|
9643
|
-
wordSpacing: F(
|
|
9642
|
+
letterSpacing: F(pt, n),
|
|
9643
|
+
wordSpacing: F(vt, n),
|
|
9644
9644
|
textAlign: W,
|
|
9645
|
-
fontSize: F(
|
|
9646
|
-
lineHeight: F(
|
|
9647
|
-
textTransform:
|
|
9648
|
-
textDecoration:
|
|
9649
|
-
fontVariant:
|
|
9650
|
-
color:
|
|
9645
|
+
fontSize: F(Et.fontSize, n),
|
|
9646
|
+
lineHeight: F(Et.lineHeight, n),
|
|
9647
|
+
textTransform: Mt.textTransform ?? "none",
|
|
9648
|
+
textDecoration: Mt.textDecoration ?? "none",
|
|
9649
|
+
fontVariant: Mt.fontVariant ?? "normal",
|
|
9650
|
+
color: Ut,
|
|
9651
9651
|
pointerEvents: "auto"
|
|
9652
9652
|
},
|
|
9653
|
-
children: /* @__PURE__ */ h(
|
|
9653
|
+
children: /* @__PURE__ */ h(je, { content: a.caption })
|
|
9654
9654
|
}
|
|
9655
9655
|
)
|
|
9656
9656
|
]
|
|
@@ -9658,9 +9658,9 @@ type TestimonialsStyles = {
|
|
|
9658
9658
|
"caption"
|
|
9659
9659
|
);
|
|
9660
9660
|
}
|
|
9661
|
-
return /* @__PURE__ */ dt(
|
|
9661
|
+
return /* @__PURE__ */ dt(re, { children: [
|
|
9662
9662
|
Y,
|
|
9663
|
-
/* @__PURE__ */
|
|
9663
|
+
/* @__PURE__ */ h(
|
|
9664
9664
|
"div",
|
|
9665
9665
|
{
|
|
9666
9666
|
style: {
|
|
@@ -9669,8 +9669,8 @@ type TestimonialsStyles = {
|
|
|
9669
9669
|
alignItems: O,
|
|
9670
9670
|
width: "100%"
|
|
9671
9671
|
},
|
|
9672
|
-
children: [
|
|
9673
|
-
/* @__PURE__ */ h(
|
|
9672
|
+
children: /* @__PURE__ */ dt("div", { style: { width: F(x ?? 0, n ?? !1), height: F(f ?? 0, n ?? !1) }, children: [
|
|
9673
|
+
((tt = a.image) == null ? void 0 : tt.url) && /* @__PURE__ */ h(
|
|
9674
9674
|
"div",
|
|
9675
9675
|
{
|
|
9676
9676
|
"data-controls": "imageMarginTop",
|
|
@@ -9678,21 +9678,21 @@ type TestimonialsStyles = {
|
|
|
9678
9678
|
style: { height: F(d ?? 0, n ?? !1), width: "100%" }
|
|
9679
9679
|
}
|
|
9680
9680
|
),
|
|
9681
|
-
/* @__PURE__ */ h(
|
|
9681
|
+
((nt = a.image) == null ? void 0 : nt.url) && /* @__PURE__ */ h(
|
|
9682
9682
|
"img",
|
|
9683
9683
|
{
|
|
9684
|
-
src: (
|
|
9685
|
-
alt: (
|
|
9684
|
+
src: (at = a.image) == null ? void 0 : at.url,
|
|
9685
|
+
alt: (st = a.image) == null ? void 0 : st.name,
|
|
9686
9686
|
className: xt.icon,
|
|
9687
9687
|
style: {
|
|
9688
9688
|
pointerEvents: "auto",
|
|
9689
|
-
objectFit: ((
|
|
9690
|
-
width:
|
|
9691
|
-
height:
|
|
9689
|
+
objectFit: ((wt = a.image) == null ? void 0 : wt.objectFit) || "cover",
|
|
9690
|
+
width: "100%",
|
|
9691
|
+
height: "100%"
|
|
9692
9692
|
}
|
|
9693
9693
|
}
|
|
9694
9694
|
)
|
|
9695
|
-
]
|
|
9695
|
+
] })
|
|
9696
9696
|
},
|
|
9697
9697
|
"image"
|
|
9698
9698
|
),
|
|
@@ -9732,9 +9732,9 @@ type TestimonialsStyles = {
|
|
|
9732
9732
|
return P.observe(a), () => {
|
|
9733
9733
|
P.disconnect();
|
|
9734
9734
|
};
|
|
9735
|
-
}, [A, r, It]), !H) return /* @__PURE__ */ h(
|
|
9735
|
+
}, [A, r, It]), !H) return /* @__PURE__ */ h(re, {});
|
|
9736
9736
|
const j = A ? { textMinHeightPx: _, captionMinHeightPx: K } : void 0;
|
|
9737
|
-
return /* @__PURE__ */ h(
|
|
9737
|
+
return /* @__PURE__ */ h(re, { children: /* @__PURE__ */ dt(
|
|
9738
9738
|
"div",
|
|
9739
9739
|
{
|
|
9740
9740
|
className: xt.container,
|
|
@@ -9804,8 +9804,8 @@ type TestimonialsStyles = {
|
|
|
9804
9804
|
className: xt.arrow,
|
|
9805
9805
|
style: {
|
|
9806
9806
|
pointerEvents: "auto",
|
|
9807
|
-
width:
|
|
9808
|
-
height:
|
|
9807
|
+
width: ht,
|
|
9808
|
+
height: ht,
|
|
9809
9809
|
"--arrow-hover-color": w
|
|
9810
9810
|
},
|
|
9811
9811
|
children: /* @__PURE__ */ h(
|
|
@@ -9816,10 +9816,10 @@ type TestimonialsStyles = {
|
|
|
9816
9816
|
onClick: M,
|
|
9817
9817
|
"aria-label": "Previous testimonial",
|
|
9818
9818
|
style: { pointerEvents: "auto" },
|
|
9819
|
-
children:
|
|
9820
|
-
|
|
9819
|
+
children: lt && /* @__PURE__ */ h(
|
|
9820
|
+
ie,
|
|
9821
9821
|
{
|
|
9822
|
-
url:
|
|
9822
|
+
url: lt,
|
|
9823
9823
|
fill: g,
|
|
9824
9824
|
hoverFill: w,
|
|
9825
9825
|
className: ut(xt.arrowImg, xt.mirror)
|
|
@@ -9835,8 +9835,8 @@ type TestimonialsStyles = {
|
|
|
9835
9835
|
className: ut(xt.arrow, xt.nextArrow),
|
|
9836
9836
|
style: {
|
|
9837
9837
|
pointerEvents: "auto",
|
|
9838
|
-
width:
|
|
9839
|
-
height:
|
|
9838
|
+
width: ht,
|
|
9839
|
+
height: ht,
|
|
9840
9840
|
"--arrow-hover-color": w
|
|
9841
9841
|
},
|
|
9842
9842
|
children: /* @__PURE__ */ h(
|
|
@@ -9844,13 +9844,13 @@ type TestimonialsStyles = {
|
|
|
9844
9844
|
{
|
|
9845
9845
|
type: "button",
|
|
9846
9846
|
className: xt.arrowInner,
|
|
9847
|
-
onClick:
|
|
9847
|
+
onClick: Q,
|
|
9848
9848
|
"aria-label": "Next testimonial",
|
|
9849
9849
|
style: { pointerEvents: "auto" },
|
|
9850
|
-
children:
|
|
9851
|
-
|
|
9850
|
+
children: lt && /* @__PURE__ */ h(
|
|
9851
|
+
ie,
|
|
9852
9852
|
{
|
|
9853
|
-
url:
|
|
9853
|
+
url: lt,
|
|
9854
9854
|
fill: g,
|
|
9855
9855
|
hoverFill: w,
|
|
9856
9856
|
className: xt.arrowImg
|
|
@@ -10185,22 +10185,25 @@ export const TestimonialSingle = ({ settings, content, isEditor, isPreviewMode }
|
|
|
10185
10185
|
width: '100%',
|
|
10186
10186
|
}}
|
|
10187
10187
|
>
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10188
|
+
|
|
10189
|
+
<div style={{ width: scalingValue(imageWidth ?? 0, isEditor ?? false), height: scalingValue(imageHeight ?? 0, isEditor ?? false)}}>
|
|
10190
|
+
{item.image?.url && <div
|
|
10191
|
+
data-controls="imageMarginTop"
|
|
10192
|
+
className={classes.control}
|
|
10193
|
+
style={{ height: scalingValue(imageMarginTop ?? 0, isEditor ?? false), width: '100%' }}
|
|
10194
|
+
/>}
|
|
10195
|
+
{item.image?.url && <img
|
|
10196
|
+
src={item.image?.url}
|
|
10197
|
+
alt={item.image?.name}
|
|
10198
|
+
className={classes.icon}
|
|
10199
|
+
style={{
|
|
10200
|
+
pointerEvents: 'auto',
|
|
10201
|
+
objectFit: item.image?.objectFit || 'cover',
|
|
10202
|
+
width: '100%',
|
|
10203
|
+
height: '100%',
|
|
10204
|
+
}}
|
|
10205
|
+
/>}
|
|
10206
|
+
</div>
|
|
10204
10207
|
</div>
|
|
10205
10208
|
{captionSection}
|
|
10206
10209
|
</>
|