@cntrl-site/components 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +18 -16
- package/dist/index.mjs +865 -863
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { jsx as B, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as B, Fragment as Ae, jsxs as St } from "react/jsx-runtime";
|
|
2
|
+
import ee, { useState as it, useEffect as bt, useRef as Tt, useCallback as Cr } from "react";
|
|
3
3
|
import dt from "classnames";
|
|
4
|
-
import { s as P, u as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
function
|
|
4
|
+
import { s as P, u as Eo, b as Ao, g as en } from "./useScopedStyles-BSwFAT27.mjs";
|
|
5
|
+
import { createPortal as xr } from "react-dom";
|
|
6
|
+
function Jl(t) {
|
|
7
7
|
return t.type === "object" && t.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const
|
|
10
|
-
wrapper:
|
|
11
|
-
hoverArrow:
|
|
12
|
-
sliderItem:
|
|
13
|
-
sliderImage:
|
|
14
|
-
arrow:
|
|
15
|
-
arrowVertical:
|
|
16
|
-
nextArrow:
|
|
17
|
-
arrowInner:
|
|
18
|
-
arrowIcon:
|
|
19
|
-
arrowImg:
|
|
20
|
-
mirror:
|
|
21
|
-
pagination:
|
|
22
|
-
paginationInner:
|
|
23
|
-
paginationVertical:
|
|
24
|
-
paginationItem:
|
|
25
|
-
dot:
|
|
26
|
-
activeDot:
|
|
27
|
-
paginationInsideBottom:
|
|
28
|
-
paginationInsideTop:
|
|
29
|
-
paginationOutsideBottom:
|
|
30
|
-
paginationOutsideTop:
|
|
31
|
-
paginationInsideLeft:
|
|
32
|
-
paginationInsideRight:
|
|
33
|
-
paginationOutsideLeft:
|
|
34
|
-
paginationOutsideRight:
|
|
35
|
-
imgWrapper:
|
|
36
|
-
captionBlock:
|
|
37
|
-
captionTextWrapper:
|
|
38
|
-
captionText:
|
|
39
|
-
active:
|
|
40
|
-
withPointerEvents:
|
|
41
|
-
topLeftAlignment:
|
|
42
|
-
topCenterAlignment:
|
|
43
|
-
topRightAlignment:
|
|
44
|
-
middleLeftAlignment:
|
|
45
|
-
middleCenterAlignment:
|
|
46
|
-
middleRightAlignment:
|
|
47
|
-
bottomLeftAlignment:
|
|
48
|
-
bottomCenterAlignment:
|
|
49
|
-
bottomRightAlignment:
|
|
50
|
-
clickOverlay:
|
|
51
|
-
contain:
|
|
52
|
-
cover:
|
|
9
|
+
const $r = "ControlSlider-module__wrapper___sHEkd", _r = "ControlSlider-module__hoverArrow___A-dOH", wr = "ControlSlider-module__sliderItem___QQSkR", Tr = "ControlSlider-module__sliderImage___9hRl-", Lr = "ControlSlider-module__arrow___05ghY", Er = "ControlSlider-module__arrowVertical___tBfVN", Ar = "ControlSlider-module__nextArrow___-30Yc", Ir = "ControlSlider-module__arrowInner___aEra3", kr = "ControlSlider-module__arrowIcon___S4ztF", Fr = "ControlSlider-module__arrowImg___2dwJW", Rr = "ControlSlider-module__mirror___brd6U", Br = "ControlSlider-module__pagination___bicLF", Or = "ControlSlider-module__paginationInner___bT-P-", Pr = "ControlSlider-module__paginationVertical___zYqKw", Nr = "ControlSlider-module__paginationItem___nTRbk", Wr = "ControlSlider-module__dot___p1Qun", zr = "ControlSlider-module__activeDot___LHFaj", Mr = "ControlSlider-module__paginationInsideBottom___R3FWn", Vr = "ControlSlider-module__paginationInsideTop___V-qb-", Hr = "ControlSlider-module__paginationOutsideBottom___14w8D", Dr = "ControlSlider-module__paginationOutsideTop___SCLqB", jr = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ur = "ControlSlider-module__paginationInsideRight___Rtt3o", Yr = "ControlSlider-module__paginationOutsideLeft___lahaw", Gr = "ControlSlider-module__paginationOutsideRight___EtuQa", qr = "ControlSlider-module__imgWrapper___UjEgB", Xr = "ControlSlider-module__captionBlock___dJ6-j", Kr = "ControlSlider-module__captionTextWrapper___HFlpf", Jr = "ControlSlider-module__captionText___uGBVc", Zr = "ControlSlider-module__active___WZK4G", Qr = "ControlSlider-module__withPointerEvents___t-18M", ti = "ControlSlider-module__topLeftAlignment___zjnGM", ei = "ControlSlider-module__topCenterAlignment___gD1xW", ni = "ControlSlider-module__topRightAlignment___NMapS", oi = "ControlSlider-module__middleLeftAlignment___OnUrY", ri = "ControlSlider-module__middleCenterAlignment___Tdkl0", ii = "ControlSlider-module__middleRightAlignment___wEbfX", ai = "ControlSlider-module__bottomLeftAlignment___cTP2-", li = "ControlSlider-module__bottomCenterAlignment___c54fB", si = "ControlSlider-module__bottomRightAlignment___kEwrz", ci = "ControlSlider-module__clickOverlay___DZA28", ui = "ControlSlider-module__contain___pLyq7", pi = "ControlSlider-module__cover___KdDat", U = {
|
|
10
|
+
wrapper: $r,
|
|
11
|
+
hoverArrow: _r,
|
|
12
|
+
sliderItem: wr,
|
|
13
|
+
sliderImage: Tr,
|
|
14
|
+
arrow: Lr,
|
|
15
|
+
arrowVertical: Er,
|
|
16
|
+
nextArrow: Ar,
|
|
17
|
+
arrowInner: Ir,
|
|
18
|
+
arrowIcon: kr,
|
|
19
|
+
arrowImg: Fr,
|
|
20
|
+
mirror: Rr,
|
|
21
|
+
pagination: Br,
|
|
22
|
+
paginationInner: Or,
|
|
23
|
+
paginationVertical: Pr,
|
|
24
|
+
paginationItem: Nr,
|
|
25
|
+
dot: Wr,
|
|
26
|
+
activeDot: zr,
|
|
27
|
+
paginationInsideBottom: Mr,
|
|
28
|
+
paginationInsideTop: Vr,
|
|
29
|
+
paginationOutsideBottom: Hr,
|
|
30
|
+
paginationOutsideTop: Dr,
|
|
31
|
+
paginationInsideLeft: jr,
|
|
32
|
+
paginationInsideRight: Ur,
|
|
33
|
+
paginationOutsideLeft: Yr,
|
|
34
|
+
paginationOutsideRight: Gr,
|
|
35
|
+
imgWrapper: qr,
|
|
36
|
+
captionBlock: Xr,
|
|
37
|
+
captionTextWrapper: Kr,
|
|
38
|
+
captionText: Jr,
|
|
39
|
+
active: Zr,
|
|
40
|
+
withPointerEvents: Qr,
|
|
41
|
+
topLeftAlignment: ti,
|
|
42
|
+
topCenterAlignment: ei,
|
|
43
|
+
topRightAlignment: ni,
|
|
44
|
+
middleLeftAlignment: oi,
|
|
45
|
+
middleCenterAlignment: ri,
|
|
46
|
+
middleRightAlignment: ii,
|
|
47
|
+
bottomLeftAlignment: ai,
|
|
48
|
+
bottomCenterAlignment: li,
|
|
49
|
+
bottomRightAlignment: si,
|
|
50
|
+
clickOverlay: ci,
|
|
51
|
+
contain: ui,
|
|
52
|
+
cover: pi
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function di(t, e) {
|
|
55
55
|
for (var n = 0; n < e.length; n++) {
|
|
56
56
|
var o = e[n];
|
|
57
57
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return e &&
|
|
60
|
+
function gi(t, e, n) {
|
|
61
|
+
return e && di(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
CREATED:
|
|
65
|
-
MOUNTED:
|
|
63
|
+
var ao = "(prefers-reduced-motion: reduce)", ge = 1, mi = 2, ye = 3, Se = 4, Ne = 5, Je = 6, nn = 7, fi = {
|
|
64
|
+
CREATED: ge,
|
|
65
|
+
MOUNTED: mi,
|
|
66
66
|
IDLE: ye,
|
|
67
|
-
MOVING:
|
|
68
|
-
SCROLLING:
|
|
69
|
-
DRAGGING:
|
|
70
|
-
DESTROYED:
|
|
67
|
+
MOVING: Se,
|
|
68
|
+
SCROLLING: Ne,
|
|
69
|
+
DRAGGING: Je,
|
|
70
|
+
DESTROYED: nn
|
|
71
71
|
};
|
|
72
72
|
function Dt(t) {
|
|
73
73
|
t.length = 0;
|
|
@@ -78,39 +78,39 @@ function Jt(t, e, n) {
|
|
|
78
78
|
function at(t) {
|
|
79
79
|
return t.bind.apply(t, [null].concat(Jt(arguments, 1)));
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var Io = setTimeout, Ln = function() {
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function lo(t) {
|
|
84
84
|
return requestAnimationFrame(t);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function sn(t, e) {
|
|
87
87
|
return typeof e === t;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return !
|
|
89
|
+
function Ie(t) {
|
|
90
|
+
return !Nn(t) && sn("object", t);
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
92
|
+
var Pn = Array.isArray, ko = at(sn, "function"), Xt = at(sn, "string"), We = at(sn, "undefined");
|
|
93
|
+
function Nn(t) {
|
|
94
94
|
return t === null;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Fo(t) {
|
|
97
97
|
try {
|
|
98
98
|
return t instanceof (t.ownerDocument.defaultView || window).HTMLElement;
|
|
99
99
|
} catch {
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
103
|
+
function ze(t) {
|
|
104
|
+
return Pn(t) ? t : [t];
|
|
105
105
|
}
|
|
106
106
|
function At(t, e) {
|
|
107
|
-
|
|
107
|
+
ze(t).forEach(e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Wn(t, e) {
|
|
110
110
|
return t.indexOf(e) > -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return t.push.apply(t,
|
|
112
|
+
function Ze(t, e) {
|
|
113
|
+
return t.push.apply(t, ze(e)), t;
|
|
114
114
|
}
|
|
115
115
|
function Mt(t, e, n) {
|
|
116
116
|
t && At(e, function(o) {
|
|
@@ -120,49 +120,49 @@ function Mt(t, e, n) {
|
|
|
120
120
|
function Pt(t, e) {
|
|
121
121
|
Mt(t, Xt(e) ? e.split(" ") : e, !0);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Me(t, e) {
|
|
124
124
|
At(e, t.appendChild.bind(t));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function zn(t, e) {
|
|
127
127
|
At(t, function(n) {
|
|
128
128
|
var o = (e || n).parentNode;
|
|
129
129
|
o && o.insertBefore(n, e);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
return
|
|
132
|
+
function ke(t, e) {
|
|
133
|
+
return Fo(t) && (t.msMatchesSelector || t.matches).call(t, e);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ro(t, e) {
|
|
136
136
|
var n = t ? Jt(t.children) : [];
|
|
137
137
|
return e ? n.filter(function(o) {
|
|
138
|
-
return
|
|
138
|
+
return ke(o, e);
|
|
139
139
|
}) : n;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return e ?
|
|
141
|
+
function Ve(t, e) {
|
|
142
|
+
return e ? Ro(t, e)[0] : t.firstElementChild;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
return t && (n ?
|
|
144
|
+
var Fe = Object.keys;
|
|
145
|
+
function oe(t, e, n) {
|
|
146
|
+
return t && (n ? Fe(t).reverse() : Fe(t)).forEach(function(o) {
|
|
147
147
|
o !== "__proto__" && e(t[o], o);
|
|
148
148
|
}), t;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Re(t) {
|
|
151
151
|
return Jt(arguments, 1).forEach(function(e) {
|
|
152
|
-
|
|
152
|
+
oe(e, function(n, o) {
|
|
153
153
|
t[o] = e[o];
|
|
154
154
|
});
|
|
155
155
|
}), t;
|
|
156
156
|
}
|
|
157
157
|
function qt(t) {
|
|
158
158
|
return Jt(arguments, 1).forEach(function(e) {
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
oe(e, function(n, o) {
|
|
160
|
+
Pn(n) ? t[o] = n.slice() : Ie(n) ? t[o] = qt({}, Ie(t[o]) ? t[o] : {}, n) : t[o] = n;
|
|
161
161
|
});
|
|
162
162
|
}), t;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
At(e ||
|
|
164
|
+
function so(t, e) {
|
|
165
|
+
At(e || Fe(t), function(n) {
|
|
166
166
|
delete t[n];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -174,25 +174,25 @@ function Nt(t, e) {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
function J(t, e, n) {
|
|
177
|
-
|
|
177
|
+
Ie(e) ? oe(e, function(o, r) {
|
|
178
178
|
J(t, r, o);
|
|
179
179
|
}) : At(t, function(o) {
|
|
180
|
-
|
|
180
|
+
Nn(n) || n === "" ? Nt(o, e) : o.setAttribute(e, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function me(t, e, n) {
|
|
184
184
|
var o = document.createElement(t);
|
|
185
|
-
return e && (Xt(e) ? Pt(o, e) : J(o, e)), n &&
|
|
185
|
+
return e && (Xt(e) ? Pt(o, e) : J(o, e)), n && Me(n, o), o;
|
|
186
186
|
}
|
|
187
187
|
function kt(t, e, n) {
|
|
188
|
-
if (
|
|
188
|
+
if (We(n))
|
|
189
189
|
return getComputedStyle(t)[e];
|
|
190
|
-
|
|
190
|
+
Nn(n) || (t.style[e] = "" + n);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Be(t, e) {
|
|
193
193
|
kt(t, "display", e);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Bo(t) {
|
|
196
196
|
t.setActive && t.setActive() || t.focus({
|
|
197
197
|
preventScroll: !0
|
|
198
198
|
});
|
|
@@ -200,82 +200,82 @@ function Fo(t) {
|
|
|
200
200
|
function Ft(t, e) {
|
|
201
201
|
return t.getAttribute(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function co(t, e) {
|
|
204
204
|
return t && t.classList.contains(e);
|
|
205
205
|
}
|
|
206
206
|
function Lt(t) {
|
|
207
207
|
return t.getBoundingClientRect();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function re(t) {
|
|
210
210
|
At(t, function(e) {
|
|
211
211
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
return
|
|
214
|
+
function Oo(t) {
|
|
215
|
+
return Ve(new DOMParser().parseFromString(t, "text/html").body);
|
|
216
216
|
}
|
|
217
217
|
function zt(t, e) {
|
|
218
218
|
t.preventDefault(), e && (t.stopPropagation(), t.stopImmediatePropagation());
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Po(t, e) {
|
|
221
221
|
return t && t.querySelector(e);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Mn(t, e) {
|
|
224
224
|
return e ? Jt(t.querySelectorAll(e)) : [];
|
|
225
225
|
}
|
|
226
226
|
function Vt(t, e) {
|
|
227
227
|
Mt(t, e, !1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function En(t) {
|
|
230
230
|
return t.timeStamp;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function te(t) {
|
|
233
233
|
return Xt(t) ? t : t ? t + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
function
|
|
235
|
+
var He = "splide", Vn = "data-" + He;
|
|
236
|
+
function Le(t, e) {
|
|
237
237
|
if (!t)
|
|
238
|
-
throw new Error("[" +
|
|
238
|
+
throw new Error("[" + He + "] " + (e || ""));
|
|
239
239
|
}
|
|
240
|
-
var Kt = Math.min,
|
|
241
|
-
function
|
|
240
|
+
var Kt = Math.min, on = Math.max, rn = Math.floor, Oe = Math.ceil, $t = Math.abs;
|
|
241
|
+
function No(t, e, n) {
|
|
242
242
|
return $t(t - e) < n;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
var r = Kt(e, n), a =
|
|
244
|
+
function Qe(t, e, n, o) {
|
|
245
|
+
var r = Kt(e, n), a = on(e, n);
|
|
246
246
|
return o ? r < t && t < a : r <= t && t <= a;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var o = Kt(e, n), r =
|
|
250
|
-
return Kt(
|
|
248
|
+
function pe(t, e, n) {
|
|
249
|
+
var o = Kt(e, n), r = on(e, n);
|
|
250
|
+
return Kt(on(o, t), r);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function An(t) {
|
|
253
253
|
return +(t > 0) - +(t < 0);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function In(t, e) {
|
|
256
256
|
return At(e, function(n) {
|
|
257
257
|
t = t.replace("%s", "" + n);
|
|
258
258
|
}), t;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Hn(t) {
|
|
261
261
|
return t < 10 ? "0" + t : "" + t;
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
return "" + t +
|
|
263
|
+
var uo = {};
|
|
264
|
+
function hi(t) {
|
|
265
|
+
return "" + t + Hn(uo[t] = (uo[t] || 0) + 1);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Wo() {
|
|
268
268
|
var t = [];
|
|
269
269
|
function e(i, c, l, p) {
|
|
270
|
-
r(i, c, function(s, _,
|
|
270
|
+
r(i, c, function(s, _, y) {
|
|
271
271
|
var m = "addEventListener" in s, u = m ? s.removeEventListener.bind(s, _, l, p) : s.removeListener.bind(s, l);
|
|
272
|
-
m ? s.addEventListener(_, l, p) : s.addListener(l), t.push([s, _,
|
|
272
|
+
m ? s.addEventListener(_, l, p) : s.addListener(l), t.push([s, _, y, l, u]);
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function n(i, c, l) {
|
|
276
276
|
r(i, c, function(p, s, _) {
|
|
277
|
-
t = t.filter(function(
|
|
278
|
-
return
|
|
277
|
+
t = t.filter(function(y) {
|
|
278
|
+
return y[0] === p && y[1] === s && y[2] === _ && (!l || y[3] === l) ? (y[4](), !1) : !0;
|
|
279
279
|
});
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -290,8 +290,8 @@ function Po() {
|
|
|
290
290
|
At(i, function(p) {
|
|
291
291
|
p && At(c, function(s) {
|
|
292
292
|
s.split(" ").forEach(function(_) {
|
|
293
|
-
var
|
|
294
|
-
l(p,
|
|
293
|
+
var y = _.split(".");
|
|
294
|
+
l(p, y[0], y[1]);
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
});
|
|
@@ -308,37 +308,37 @@ function Po() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var Zt = "mounted",
|
|
311
|
+
var Zt = "mounted", kn = "ready", jt = "move", Ce = "moved", Dn = "click", zo = "active", Mo = "inactive", Vo = "visible", Ho = "hidden", yt = "refresh", xt = "updated", ve = "resize", cn = "resized", Do = "drag", jo = "dragging", Uo = "dragged", un = "scroll", ae = "scrolled", yi = "overflow", jn = "destroy", Yo = "arrows:mounted", Go = "arrows:updated", qo = "pagination:mounted", Xo = "pagination:updated", Un = "navigation:mounted", Yn = "autoplay:play", Ko = "autoplay:playing", Gn = "autoplay:pause", qn = "lazyload:loaded", Jo = "sk", Zo = "sh", an = "ei";
|
|
312
312
|
function gt(t) {
|
|
313
|
-
var e = t ? t.event.bus : document.createDocumentFragment(), n =
|
|
313
|
+
var e = t ? t.event.bus : document.createDocumentFragment(), n = Wo();
|
|
314
314
|
function o(a, i) {
|
|
315
|
-
n.bind(e,
|
|
316
|
-
i.apply(i,
|
|
315
|
+
n.bind(e, ze(a).join(" "), function(c) {
|
|
316
|
+
i.apply(i, Pn(c.detail) ? c.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function r(a) {
|
|
320
320
|
n.dispatch(e, a, Jt(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return t && t.event.on(
|
|
322
|
+
return t && t.event.on(jn, n.destroy), Re(n, {
|
|
323
323
|
bus: e,
|
|
324
324
|
on: o,
|
|
325
325
|
off: at(n.unbind, e),
|
|
326
326
|
emit: r
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function pn(t, e, n, o) {
|
|
330
330
|
var r = Date.now, a, i = 0, c, l = !0, p = 0;
|
|
331
331
|
function s() {
|
|
332
332
|
if (!l) {
|
|
333
333
|
if (i = t ? Kt((r() - a) / t, 1) : 1, n && n(i), i >= 1 && (e(), a = r(), o && ++p >= o))
|
|
334
|
-
return
|
|
335
|
-
c =
|
|
334
|
+
return y();
|
|
335
|
+
c = lo(s);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
function _(b) {
|
|
339
|
-
b || u(), a = r() - (b ? i * t : 0), l = !1, c =
|
|
339
|
+
b || u(), a = r() - (b ? i * t : 0), l = !1, c = lo(s);
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function y() {
|
|
342
342
|
l = !0;
|
|
343
343
|
}
|
|
344
344
|
function m() {
|
|
@@ -356,40 +356,40 @@ function un(t, e, n, o) {
|
|
|
356
356
|
return {
|
|
357
357
|
start: _,
|
|
358
358
|
rewind: m,
|
|
359
|
-
pause:
|
|
359
|
+
pause: y,
|
|
360
360
|
cancel: u,
|
|
361
361
|
set: d,
|
|
362
362
|
isPaused: C
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function vi(t) {
|
|
366
366
|
var e = t;
|
|
367
367
|
function n(r) {
|
|
368
368
|
e = r;
|
|
369
369
|
}
|
|
370
370
|
function o(r) {
|
|
371
|
-
return
|
|
371
|
+
return Wn(ze(r), e);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
375
375
|
is: o
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
var n =
|
|
378
|
+
function bi(t, e) {
|
|
379
|
+
var n = pn(0, t, null, 1);
|
|
380
380
|
return function() {
|
|
381
381
|
n.isPaused() && n.start();
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
var o = t.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i =
|
|
384
|
+
function Si(t, e, n) {
|
|
385
|
+
var o = t.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i = Wo(), c = [];
|
|
386
386
|
function l() {
|
|
387
387
|
var u = n.mediaQuery === "min";
|
|
388
|
-
|
|
388
|
+
Fe(r).sort(function(d, C) {
|
|
389
389
|
return u ? +d - +C : +C - +d;
|
|
390
390
|
}).forEach(function(d) {
|
|
391
391
|
s(r[d], "(" + (u ? "min" : "max") + "-width:" + d + "px)");
|
|
392
|
-
}), s(a,
|
|
392
|
+
}), s(a, ao), _();
|
|
393
393
|
}
|
|
394
394
|
function p(u) {
|
|
395
395
|
u && i.destroy();
|
|
@@ -399,143 +399,143 @@ function yi(t, e, n) {
|
|
|
399
399
|
i.bind(C, "change", _), c.push([u, C]);
|
|
400
400
|
}
|
|
401
401
|
function _() {
|
|
402
|
-
var u = o.is(
|
|
402
|
+
var u = o.is(nn), d = n.direction, C = c.reduce(function(b, f) {
|
|
403
403
|
return qt(b, f[1].matches ? f[0] : {});
|
|
404
404
|
}, {});
|
|
405
|
-
|
|
405
|
+
so(n), m(C), n.destroy ? t.destroy(n.destroy === "completely") : u ? (p(!0), t.mount()) : d !== n.direction && t.refresh();
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
matchMedia(
|
|
407
|
+
function y(u) {
|
|
408
|
+
matchMedia(ao).matches && (u ? qt(n, a) : so(n, Fe(a)));
|
|
409
409
|
}
|
|
410
410
|
function m(u, d, C) {
|
|
411
|
-
qt(n, u), d && qt(Object.getPrototypeOf(n), u), (C || !o.is(
|
|
411
|
+
qt(n, u), d && qt(Object.getPrototypeOf(n), u), (C || !o.is(ge)) && t.emit(xt, n);
|
|
412
412
|
}
|
|
413
413
|
return {
|
|
414
414
|
setup: l,
|
|
415
415
|
destroy: p,
|
|
416
|
-
reduce:
|
|
416
|
+
reduce: y,
|
|
417
417
|
set: m
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var dn = "Arrow", gn = dn + "Left", mn = dn + "Right", Qo = dn + "Up", tr = dn + "Down", po = "rtl", fn = "ttb", Cn = {
|
|
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: [
|
|
428
|
-
ArrowRight: [
|
|
427
|
+
ArrowLeft: [Qo, mn],
|
|
428
|
+
ArrowRight: [tr, gn]
|
|
429
429
|
};
|
|
430
|
-
function
|
|
430
|
+
function Ci(t, e, n) {
|
|
431
431
|
function o(a, i, c) {
|
|
432
432
|
c = c || n.direction;
|
|
433
|
-
var l = c ===
|
|
434
|
-
return
|
|
435
|
-
var _ =
|
|
433
|
+
var l = c === po && !i ? 1 : c === fn ? 0 : -1;
|
|
434
|
+
return Cn[a] && Cn[a][l] || a.replace(/width|left|right/i, function(p, s) {
|
|
435
|
+
var _ = Cn[p.toLowerCase()][l] || p;
|
|
436
436
|
return s > 0 ? _.charAt(0).toUpperCase() + _.slice(1) : _;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function r(a) {
|
|
440
|
-
return a * (n.direction ===
|
|
440
|
+
return a * (n.direction === po ? 1 : -1);
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
resolve: o,
|
|
444
444
|
orient: r
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Ht = "role",
|
|
448
|
-
slide:
|
|
449
|
-
clone:
|
|
450
|
-
arrows:
|
|
451
|
-
arrow:
|
|
452
|
-
prev:
|
|
453
|
-
next:
|
|
447
|
+
var Ht = "role", fe = "tabindex", xi = "disabled", Rt = "aria-", De = Rt + "controls", er = Rt + "current", go = Rt + "selected", Et = Rt + "label", Xn = Rt + "labelledby", nr = Rt + "hidden", Kn = Rt + "orientation", Pe = Rt + "roledescription", mo = Rt + "live", fo = Rt + "busy", ho = Rt + "atomic", Jn = [Ht, fe, xi, De, er, Et, Xn, nr, Kn, Pe], Wt = He + "__", Qt = "is-", xn = He, yo = Wt + "track", $i = Wt + "list", hn = Wt + "slide", or = hn + "--clone", _i = hn + "__container", Zn = Wt + "arrows", yn = Wt + "arrow", rr = yn + "--prev", ir = yn + "--next", vn = Wt + "pagination", ar = vn + "__page", wi = Wt + "progress", Ti = wi + "__bar", Li = Wt + "toggle", Ei = Wt + "spinner", Ai = Wt + "sr", Ii = Qt + "initialized", ie = Qt + "active", lr = Qt + "prev", sr = Qt + "next", Fn = Qt + "visible", Rn = Qt + "loading", cr = Qt + "focus-in", ur = Qt + "overflow", ki = [ie, Fn, lr, sr, Rn, cr, ur], Fi = {
|
|
448
|
+
slide: hn,
|
|
449
|
+
clone: or,
|
|
450
|
+
arrows: Zn,
|
|
451
|
+
arrow: yn,
|
|
452
|
+
prev: rr,
|
|
453
|
+
next: ir,
|
|
454
454
|
pagination: vn,
|
|
455
|
-
page:
|
|
456
|
-
spinner:
|
|
455
|
+
page: ar,
|
|
456
|
+
spinner: Ei
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
if (
|
|
458
|
+
function Ri(t, e) {
|
|
459
|
+
if (ko(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 && !ke(n, e); )
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
var o = gt(t), r = o.on, a = o.bind, i = t.root, c = n.i18n, l = {}, p = [], s = [], _ = [],
|
|
465
|
+
var Bi = 5, vo = 200, pr = "touchstart mousedown", $n = "touchmove mousemove", _n = "touchend touchcancel mouseup click";
|
|
466
|
+
function Oi(t, e, n) {
|
|
467
|
+
var o = gt(t), r = o.on, a = o.bind, i = t.root, c = n.i18n, l = {}, p = [], s = [], _ = [], y, m, u;
|
|
468
468
|
function d() {
|
|
469
469
|
x(), V(), f();
|
|
470
470
|
}
|
|
471
471
|
function C() {
|
|
472
|
-
r(
|
|
472
|
+
r(yt, b), r(yt, d), r(xt, f), a(document, pr + " keydown", function(h) {
|
|
473
473
|
u = h.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), a(i, "focusin", function() {
|
|
477
|
-
Mt(i,
|
|
477
|
+
Mt(i, cr, !!u);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function b(h) {
|
|
481
|
-
var L =
|
|
482
|
-
Dt(p), Vt(i, s), Vt(
|
|
481
|
+
var L = Jn.concat("style");
|
|
482
|
+
Dt(p), Vt(i, s), Vt(y, _), Nt([y, m], L), Nt(i, h ? L : ["style", Pe]);
|
|
483
483
|
}
|
|
484
484
|
function f() {
|
|
485
|
-
Vt(i, s), Vt(
|
|
485
|
+
Vt(i, s), Vt(y, _), s = w(xn), _ = w(yo), Pt(i, s), Pt(y, _), J(i, Et, n.label), J(i, Xn, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function x() {
|
|
488
|
-
|
|
489
|
-
arrows:
|
|
488
|
+
y = N("." + yo), m = Ve(y, "." + $i), Le(y && m, "A track/list element is missing."), Ze(p, Ro(m, "." + hn + ":not(." + or + ")")), oe({
|
|
489
|
+
arrows: Zn,
|
|
490
490
|
pagination: vn,
|
|
491
|
-
prev:
|
|
492
|
-
next:
|
|
493
|
-
bar:
|
|
494
|
-
toggle:
|
|
491
|
+
prev: rr,
|
|
492
|
+
next: ir,
|
|
493
|
+
bar: Ti,
|
|
494
|
+
toggle: Li
|
|
495
495
|
}, function(h, L) {
|
|
496
496
|
l[L] = N("." + h);
|
|
497
|
-
}),
|
|
497
|
+
}), Re(l, {
|
|
498
498
|
root: i,
|
|
499
|
-
track:
|
|
499
|
+
track: y,
|
|
500
500
|
list: m,
|
|
501
501
|
slides: p
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function V() {
|
|
505
|
-
var h = i.id ||
|
|
506
|
-
i.id = h,
|
|
505
|
+
var h = i.id || hi(He), L = n.role;
|
|
506
|
+
i.id = h, y.id = y.id || h + "-track", m.id = m.id || h + "-list", !Ft(i, Ht) && i.tagName !== "SECTION" && L && J(i, Ht, L), J(i, Pe, c.carousel), J(m, Ht, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function N(h) {
|
|
509
|
-
var L =
|
|
510
|
-
return L &&
|
|
509
|
+
var L = Po(i, h);
|
|
510
|
+
return L && Ri(L, "." + xn) === i ? L : void 0;
|
|
511
511
|
}
|
|
512
512
|
function w(h) {
|
|
513
|
-
return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h ===
|
|
513
|
+
return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h === xn && ie];
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return Re(l, {
|
|
516
516
|
setup: d,
|
|
517
517
|
mount: C,
|
|
518
518
|
destroy: b
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
var
|
|
522
|
-
function
|
|
523
|
-
var r = gt(t), a = r.on, i = r.emit, c = r.bind, l = t.Components, p = t.root, s = t.options, _ = s.isNavigation,
|
|
521
|
+
var be = "slide", xe = "loop", je = "fade";
|
|
522
|
+
function Pi(t, e, n, o) {
|
|
523
|
+
var r = gt(t), a = r.on, i = r.emit, c = r.bind, l = t.Components, p = t.root, s = t.options, _ = s.isNavigation, y = s.updateOnMove, m = s.i18n, u = s.pagination, d = s.slideFocus, C = l.Direction.resolve, b = Ft(o, "style"), f = Ft(o, Et), x = n > -1, V = Ve(o, "." + _i), N;
|
|
524
524
|
function w() {
|
|
525
|
-
x || (o.id = p.id + "-slide" +
|
|
525
|
+
x || (o.id = p.id + "-slide" + Hn(e + 1), J(o, Ht, u ? "tabpanel" : "group"), J(o, Pe, m.slide), J(o, Et, f || In(m.slideLabel, [e + 1, t.length]))), h();
|
|
526
526
|
}
|
|
527
527
|
function h() {
|
|
528
|
-
c(o, "click", at(i,
|
|
528
|
+
c(o, "click", at(i, Dn, A)), c(o, "keydown", at(i, Jo, A)), a([Ce, Zo, ae], I), a(Un, k), y && a(jt, z);
|
|
529
529
|
}
|
|
530
530
|
function L() {
|
|
531
|
-
N = !0, r.destroy(), Vt(o,
|
|
531
|
+
N = !0, r.destroy(), Vt(o, ki), Nt(o, Jn), J(o, "style", b), J(o, Et, f || "");
|
|
532
532
|
}
|
|
533
533
|
function k() {
|
|
534
|
-
var $ = t.splides.map(function(
|
|
535
|
-
var R =
|
|
534
|
+
var $ = t.splides.map(function(v) {
|
|
535
|
+
var R = v.splide.Components.Slides.getAt(e);
|
|
536
536
|
return R ? R.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
J(o, Et,
|
|
538
|
+
J(o, Et, In(m.slideX, (x ? n : e) + 1)), J(o, De, $), J(o, Ht, d ? "button" : ""), d && Nt(o, Pe);
|
|
539
539
|
}
|
|
540
540
|
function z() {
|
|
541
541
|
N || I();
|
|
@@ -543,36 +543,36 @@ function Bi(t, e, n, o) {
|
|
|
543
543
|
function I() {
|
|
544
544
|
if (!N) {
|
|
545
545
|
var $ = t.index;
|
|
546
|
-
F(), O(), Mt(o,
|
|
546
|
+
F(), O(), Mt(o, lr, e === $ - 1), Mt(o, sr, e === $ + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function F() {
|
|
550
550
|
var $ = j();
|
|
551
|
-
$ !==
|
|
551
|
+
$ !== co(o, ie) && (Mt(o, ie, $), J(o, er, _ && $ || ""), i($ ? zo : Mo, A));
|
|
552
552
|
}
|
|
553
553
|
function O() {
|
|
554
|
-
var $ = g(),
|
|
555
|
-
if (t.state.is([
|
|
554
|
+
var $ = g(), v = !$ && (!j() || x);
|
|
555
|
+
if (t.state.is([Se, Ne]) || J(o, nr, v || ""), J(Mn(o, s.focusableNodes || ""), fe, v ? -1 : ""), d && J(o, fe, v ? -1 : 0), $ !== co(o, Fn) && (Mt(o, Fn, $), i($ ? Vo : Ho, A)), !$ && document.activeElement === o) {
|
|
556
556
|
var R = l.Slides.getAt(t.index);
|
|
557
|
-
R &&
|
|
557
|
+
R && Bo(R.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function D($,
|
|
561
|
-
kt(R && V || o, $,
|
|
560
|
+
function D($, v, R) {
|
|
561
|
+
kt(R && V || o, $, v);
|
|
562
562
|
}
|
|
563
563
|
function j() {
|
|
564
564
|
var $ = t.index;
|
|
565
565
|
return $ === e || s.cloneStatus && $ === n;
|
|
566
566
|
}
|
|
567
567
|
function g() {
|
|
568
|
-
if (t.is(
|
|
568
|
+
if (t.is(je))
|
|
569
569
|
return j();
|
|
570
|
-
var $ = Lt(l.Elements.track),
|
|
571
|
-
return
|
|
570
|
+
var $ = Lt(l.Elements.track), v = Lt(o), R = C("left", !0), q = C("right", !0);
|
|
571
|
+
return rn($[R]) <= Oe(v[R]) && rn(v[q]) <= Oe($[q]);
|
|
572
572
|
}
|
|
573
|
-
function E($,
|
|
573
|
+
function E($, v) {
|
|
574
574
|
var R = $t($ - e);
|
|
575
|
-
return !x && (s.rewind || t.is(
|
|
575
|
+
return !x && (s.rewind || t.is(xe)) && (R = Kt(R, t.length - R)), R <= v;
|
|
576
576
|
}
|
|
577
577
|
var A = {
|
|
578
578
|
index: e,
|
|
@@ -588,12 +588,12 @@ function Bi(t, e, n, o) {
|
|
|
588
588
|
};
|
|
589
589
|
return A;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Ni(t, e, n) {
|
|
592
592
|
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Elements, l = c.slides, p = c.list, s = [];
|
|
593
593
|
function _() {
|
|
594
|
-
|
|
594
|
+
y(), r(yt, m), r(yt, y);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function y() {
|
|
597
597
|
l.forEach(function(I, F) {
|
|
598
598
|
d(I, F, -1);
|
|
599
599
|
});
|
|
@@ -609,7 +609,7 @@ function Oi(t, e, n) {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
function d(I, F, O) {
|
|
612
|
-
var D =
|
|
612
|
+
var D = Pi(t, F, O, I);
|
|
613
613
|
D.mount(), s.push(D), s.sort(function(j, g) {
|
|
614
614
|
return j.index - g.index;
|
|
615
615
|
});
|
|
@@ -622,7 +622,7 @@ function Oi(t, e, n) {
|
|
|
622
622
|
function b(I) {
|
|
623
623
|
var F = e.Controller, O = F.toIndex(I), D = F.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return w(function(j) {
|
|
625
|
-
return
|
|
625
|
+
return Qe(j.index, O, O + D - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
function f(I) {
|
|
@@ -630,23 +630,23 @@ function Oi(t, e, n) {
|
|
|
630
630
|
}
|
|
631
631
|
function x(I, F) {
|
|
632
632
|
At(I, function(O) {
|
|
633
|
-
if (Xt(O) && (O =
|
|
633
|
+
if (Xt(O) && (O = Oo(O)), Fo(O)) {
|
|
634
634
|
var D = l[F];
|
|
635
|
-
D ?
|
|
635
|
+
D ? zn(O, D) : Me(p, O), Pt(O, n.classes.slide), L(O, at(a, ve));
|
|
636
636
|
}
|
|
637
|
-
}), a(
|
|
637
|
+
}), a(yt);
|
|
638
638
|
}
|
|
639
639
|
function V(I) {
|
|
640
|
-
|
|
640
|
+
re(w(I).map(function(F) {
|
|
641
641
|
return F.slide;
|
|
642
|
-
})), a(
|
|
642
|
+
})), a(yt);
|
|
643
643
|
}
|
|
644
644
|
function N(I, F) {
|
|
645
645
|
C(F).forEach(I);
|
|
646
646
|
}
|
|
647
647
|
function w(I) {
|
|
648
|
-
return s.filter(
|
|
649
|
-
return Xt(I) ?
|
|
648
|
+
return s.filter(ko(I) ? I : function(F) {
|
|
649
|
+
return Xt(I) ? ke(F.slide, I) : Wn(ze(I), F.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function h(I, F, O) {
|
|
@@ -655,7 +655,7 @@ function Oi(t, e, n) {
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function L(I, F) {
|
|
658
|
-
var O =
|
|
658
|
+
var O = Mn(I, "img"), D = O.length;
|
|
659
659
|
D ? O.forEach(function(j) {
|
|
660
660
|
i(j, "load error", function() {
|
|
661
661
|
--D || F();
|
|
@@ -685,50 +685,50 @@ function Oi(t, e, n) {
|
|
|
685
685
|
isEnough: z
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = e.Slides, l = e.Direction.resolve, p = e.Elements, s = p.root, _ = p.track,
|
|
688
|
+
function Wi(t, e, n) {
|
|
689
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = e.Slides, l = e.Direction.resolve, p = e.Elements, s = p.root, _ = p.track, y = p.list, m = c.getAt, u = c.style, d, C, b;
|
|
690
690
|
function f() {
|
|
691
|
-
x(), a(window, "resize load",
|
|
691
|
+
x(), a(window, "resize load", bi(at(i, ve))), r([xt, yt], x), r(ve, V);
|
|
692
692
|
}
|
|
693
693
|
function x() {
|
|
694
|
-
d = n.direction ===
|
|
694
|
+
d = n.direction === fn, kt(s, "maxWidth", te(n.width)), kt(_, l("paddingLeft"), N(!1)), kt(_, l("paddingRight"), N(!0)), V(!0);
|
|
695
695
|
}
|
|
696
696
|
function V(A) {
|
|
697
697
|
var $ = Lt(s);
|
|
698
|
-
(A || C.width !== $.width || C.height !== $.height) && (kt(_, "height", w()), u(l("marginRight"),
|
|
698
|
+
(A || C.width !== $.width || C.height !== $.height) && (kt(_, "height", w()), u(l("marginRight"), te(n.gap)), u("width", L()), u("height", k(), !0), C = $, i(cn), b !== (b = E()) && (Mt(s, ur, b), i(yi, b)));
|
|
699
699
|
}
|
|
700
700
|
function N(A) {
|
|
701
|
-
var $ = n.padding,
|
|
702
|
-
return $ &&
|
|
701
|
+
var $ = n.padding, v = l(A ? "right" : "left");
|
|
702
|
+
return $ && te($[v] || (Ie($) ? 0 : $)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function w() {
|
|
705
705
|
var A = "";
|
|
706
|
-
return d && (A = h(),
|
|
706
|
+
return d && (A = h(), Le(A, "height or heightRatio is missing."), A = "calc(" + A + " - " + N(!1) + " - " + N(!0) + ")"), A;
|
|
707
707
|
}
|
|
708
708
|
function h() {
|
|
709
|
-
return
|
|
709
|
+
return te(n.height || Lt(y).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
711
|
function L() {
|
|
712
|
-
return n.autoWidth ? null :
|
|
712
|
+
return n.autoWidth ? null : te(n.fixedWidth) || (d ? "" : z());
|
|
713
713
|
}
|
|
714
714
|
function k() {
|
|
715
|
-
return
|
|
715
|
+
return te(n.fixedHeight) || (d ? n.autoHeight ? null : z() : h());
|
|
716
716
|
}
|
|
717
717
|
function z() {
|
|
718
|
-
var A =
|
|
718
|
+
var A = te(n.gap);
|
|
719
719
|
return "calc((100%" + (A && " + " + A) + ")/" + (n.perPage || 1) + (A && " - " + A) + ")";
|
|
720
720
|
}
|
|
721
721
|
function I() {
|
|
722
|
-
return Lt(
|
|
722
|
+
return Lt(y)[l("width")];
|
|
723
723
|
}
|
|
724
724
|
function F(A, $) {
|
|
725
|
-
var
|
|
726
|
-
return
|
|
725
|
+
var v = m(A || 0);
|
|
726
|
+
return v ? Lt(v.slide)[l("width")] + ($ ? 0 : j()) : 0;
|
|
727
727
|
}
|
|
728
728
|
function O(A, $) {
|
|
729
|
-
var
|
|
730
|
-
if (
|
|
731
|
-
var R = Lt(
|
|
729
|
+
var v = m(A);
|
|
730
|
+
if (v) {
|
|
731
|
+
var R = Lt(v.slide)[l("right")], q = Lt(y)[l("left")];
|
|
732
732
|
return $t(R - q) + ($ ? 0 : j());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
@@ -744,7 +744,7 @@ function Pi(t, e, n) {
|
|
|
744
744
|
return parseFloat(kt(_, l("padding" + (A ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function E() {
|
|
747
|
-
return t.is(
|
|
747
|
+
return t.is(je) || D(!0) > I();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: f,
|
|
@@ -757,91 +757,91 @@ function Pi(t, e, n) {
|
|
|
757
757
|
isOverflow: E
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
var
|
|
761
|
-
function
|
|
760
|
+
var zi = 2;
|
|
761
|
+
function Mi(t, e, n) {
|
|
762
762
|
var o = gt(t), r = o.on, a = e.Elements, i = e.Slides, c = e.Direction.resolve, l = [], p;
|
|
763
763
|
function s() {
|
|
764
|
-
r(
|
|
764
|
+
r(yt, _), r([xt, ve], m), (p = C()) && (u(p), e.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
766
|
function _() {
|
|
767
|
-
|
|
767
|
+
y(), s();
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
769
|
+
function y() {
|
|
770
|
+
re(l), Dt(l), o.destroy();
|
|
771
771
|
}
|
|
772
772
|
function m() {
|
|
773
773
|
var b = C();
|
|
774
|
-
p !== b && (p < b || !b) && o.emit(
|
|
774
|
+
p !== b && (p < b || !b) && o.emit(yt);
|
|
775
775
|
}
|
|
776
776
|
function u(b) {
|
|
777
777
|
var f = i.get().slice(), x = f.length;
|
|
778
778
|
if (x) {
|
|
779
779
|
for (; f.length < b; )
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
Ze(f, f);
|
|
781
|
+
Ze(f.slice(-b), f.slice(0, b)).forEach(function(V, N) {
|
|
782
782
|
var w = N < b, h = d(V.slide, N);
|
|
783
|
-
w ?
|
|
783
|
+
w ? zn(h, f[0].slide) : Me(a.list, h), Ze(l, h), i.register(h, N - b + (w ? 0 : x), V.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function d(b, f) {
|
|
788
788
|
var x = b.cloneNode(!0);
|
|
789
|
-
return Pt(x, n.classes.clone), x.id = t.root.id + "-clone" +
|
|
789
|
+
return Pt(x, n.classes.clone), x.id = t.root.id + "-clone" + Hn(f + 1), x;
|
|
790
790
|
}
|
|
791
791
|
function C() {
|
|
792
792
|
var b = n.clones;
|
|
793
|
-
if (!t.is(
|
|
793
|
+
if (!t.is(xe))
|
|
794
794
|
b = 0;
|
|
795
|
-
else if (
|
|
796
|
-
var f = n[c("fixedWidth")] && e.Layout.slideSize(0), x = f &&
|
|
797
|
-
b = x || n[c("autoWidth")] && t.length || n.perPage *
|
|
795
|
+
else if (We(b)) {
|
|
796
|
+
var f = n[c("fixedWidth")] && e.Layout.slideSize(0), x = f && Oe(Lt(a.track)[c("width")] / f);
|
|
797
|
+
b = x || n[c("autoWidth")] && t.length || n.perPage * zi;
|
|
798
798
|
}
|
|
799
799
|
return b;
|
|
800
800
|
}
|
|
801
801
|
return {
|
|
802
802
|
mount: s,
|
|
803
|
-
destroy:
|
|
803
|
+
destroy: y
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Layout, l = c.slideSize, p = c.getPadding, s = c.totalSize, _ = c.listSize,
|
|
806
|
+
function Vi(t, e, n) {
|
|
807
|
+
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Layout, l = c.slideSize, p = c.getPadding, s = c.totalSize, _ = c.listSize, y = c.sliderSize, m = e.Direction, u = m.resolve, d = m.orient, C = e.Elements, b = C.list, f = C.track, x;
|
|
808
808
|
function V() {
|
|
809
|
-
x = e.Transition, r([Zt,
|
|
809
|
+
x = e.Transition, r([Zt, cn, xt, yt], N);
|
|
810
810
|
}
|
|
811
811
|
function N() {
|
|
812
812
|
e.Controller.isBusy() || (e.Scroll.cancel(), h(t.index), e.Slides.update());
|
|
813
813
|
}
|
|
814
|
-
function w(
|
|
815
|
-
|
|
816
|
-
i(ye), a(
|
|
814
|
+
function w(v, R, q, ot) {
|
|
815
|
+
v !== R && A(v > q) && (I(), L(z(D(), v > q), !0)), i(Se), a(jt, R, q, v), x.start(R, function() {
|
|
816
|
+
i(ye), a(Ce, R, q, v), ot && ot();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
function h(
|
|
820
|
-
L(O(
|
|
819
|
+
function h(v) {
|
|
820
|
+
L(O(v, !0));
|
|
821
821
|
}
|
|
822
|
-
function L(
|
|
823
|
-
if (!t.is(
|
|
824
|
-
var q = R ?
|
|
825
|
-
kt(b, "transform", "translate" + u("X") + "(" + q + "px)"),
|
|
822
|
+
function L(v, R) {
|
|
823
|
+
if (!t.is(je)) {
|
|
824
|
+
var q = R ? v : k(v);
|
|
825
|
+
kt(b, "transform", "translate" + u("X") + "(" + q + "px)"), v !== q && a(Zo);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
function k(
|
|
829
|
-
if (t.is(
|
|
830
|
-
var R = F(
|
|
831
|
-
(ot || q) && (
|
|
828
|
+
function k(v) {
|
|
829
|
+
if (t.is(xe)) {
|
|
830
|
+
var R = F(v), q = R > e.Controller.getEnd(), ot = R < 0;
|
|
831
|
+
(ot || q) && (v = z(v, q));
|
|
832
832
|
}
|
|
833
|
-
return
|
|
833
|
+
return v;
|
|
834
834
|
}
|
|
835
|
-
function z(
|
|
836
|
-
var q =
|
|
837
|
-
return
|
|
835
|
+
function z(v, R) {
|
|
836
|
+
var q = v - E(R), ot = y();
|
|
837
|
+
return v -= d(ot * (Oe($t(q) / ot) || 1)) * (R ? 1 : -1), v;
|
|
838
838
|
}
|
|
839
839
|
function I() {
|
|
840
840
|
L(D(), !0), x.cancel();
|
|
841
841
|
}
|
|
842
|
-
function F(
|
|
842
|
+
function F(v) {
|
|
843
843
|
for (var R = e.Slides.get(), q = 0, ot = 1 / 0, Z = 0; Z < R.length; Z++) {
|
|
844
|
-
var ut = R[Z].index, T = $t(O(ut, !0) -
|
|
844
|
+
var ut = R[Z].index, T = $t(O(ut, !0) - v);
|
|
845
845
|
if (T <= ot)
|
|
846
846
|
ot = T, q = ut;
|
|
847
847
|
else
|
|
@@ -849,31 +849,31 @@ function zi(t, e, n) {
|
|
|
849
849
|
}
|
|
850
850
|
return q;
|
|
851
851
|
}
|
|
852
|
-
function O(
|
|
853
|
-
var q = d(s(
|
|
852
|
+
function O(v, R) {
|
|
853
|
+
var q = d(s(v - 1) - g(v));
|
|
854
854
|
return R ? j(q) : q;
|
|
855
855
|
}
|
|
856
856
|
function D() {
|
|
857
|
-
var
|
|
858
|
-
return Lt(b)[
|
|
857
|
+
var v = u("left");
|
|
858
|
+
return Lt(b)[v] - Lt(f)[v] + d(p(!1));
|
|
859
859
|
}
|
|
860
|
-
function j(
|
|
861
|
-
return n.trimSpace && t.is(
|
|
860
|
+
function j(v) {
|
|
861
|
+
return n.trimSpace && t.is(be) && (v = pe(v, 0, d(y(!0) - _()))), v;
|
|
862
862
|
}
|
|
863
|
-
function g(
|
|
863
|
+
function g(v) {
|
|
864
864
|
var R = n.focus;
|
|
865
|
-
return R === "center" ? (_() - l(
|
|
865
|
+
return R === "center" ? (_() - l(v, !0)) / 2 : +R * l(v) || 0;
|
|
866
866
|
}
|
|
867
|
-
function E(
|
|
868
|
-
return O(
|
|
867
|
+
function E(v) {
|
|
868
|
+
return O(v ? e.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
|
-
function A(
|
|
871
|
-
var R = d(z(D(),
|
|
872
|
-
return
|
|
870
|
+
function A(v) {
|
|
871
|
+
var R = d(z(D(), v));
|
|
872
|
+
return v ? R >= 0 : R <= b[u("scrollWidth")] - Lt(f)[u("width")];
|
|
873
873
|
}
|
|
874
|
-
function $(
|
|
875
|
-
R =
|
|
876
|
-
var q =
|
|
874
|
+
function $(v, R) {
|
|
875
|
+
R = We(R) ? D() : R;
|
|
876
|
+
var q = v !== !0 && d(R) < d(E(!1)), ot = v !== !1 && d(R) > d(E(!0));
|
|
877
877
|
return q || ot;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
@@ -891,27 +891,27 @@ function zi(t, e, n) {
|
|
|
891
891
|
reposition: N
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, l = i.getLimit, p = i.toPosition, s = e.Slides, _ = s.isEnough,
|
|
894
|
+
function Hi(t, e, n) {
|
|
895
|
+
var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, l = i.getLimit, p = i.toPosition, s = e.Slides, _ = s.isEnough, y = s.getLength, m = n.omitEnd, u = t.is(xe), d = t.is(be), C = at(D, !1), b = at(D, !0), f = n.start || 0, x, V = f, N, w, h;
|
|
896
896
|
function L() {
|
|
897
|
-
k(), r([xt,
|
|
897
|
+
k(), r([xt, yt, an], k), r(cn, z);
|
|
898
898
|
}
|
|
899
899
|
function k() {
|
|
900
|
-
N =
|
|
901
|
-
var T =
|
|
900
|
+
N = y(!0), w = n.perMove, h = n.perPage, x = A();
|
|
901
|
+
var T = pe(f, 0, m ? x : N - 1);
|
|
902
902
|
T !== f && (f = T, i.reposition());
|
|
903
903
|
}
|
|
904
904
|
function z() {
|
|
905
|
-
x !== A() && a(
|
|
905
|
+
x !== A() && a(an);
|
|
906
906
|
}
|
|
907
|
-
function I(T, X,
|
|
907
|
+
function I(T, X, ft) {
|
|
908
908
|
if (!ut()) {
|
|
909
909
|
var rt = O(T), mt = E(rt);
|
|
910
|
-
mt > -1 && (X || mt !== f) && (q(mt), i.move(rt, mt, V,
|
|
910
|
+
mt > -1 && (X || mt !== f) && (q(mt), i.move(rt, mt, V, ft));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function F(T, X,
|
|
914
|
-
e.Scroll.scroll(T, X,
|
|
913
|
+
function F(T, X, ft, rt) {
|
|
914
|
+
e.Scroll.scroll(T, X, ft, function() {
|
|
915
915
|
var mt = E(i.toIndex(c()));
|
|
916
916
|
q(m ? Kt(mt, x) : mt), rt && rt();
|
|
917
917
|
});
|
|
@@ -919,27 +919,27 @@ function Mi(t, e, n) {
|
|
|
919
919
|
function O(T) {
|
|
920
920
|
var X = f;
|
|
921
921
|
if (Xt(T)) {
|
|
922
|
-
var
|
|
922
|
+
var ft = T.match(/([+\-<>])(\d+)?/) || [], rt = ft[1], mt = ft[2];
|
|
923
923
|
rt === "+" || rt === "-" ? X = j(f + +("" + rt + (+mt || 1)), f) : rt === ">" ? X = mt ? $(+mt) : C(!0) : rt === "<" && (X = b(!0));
|
|
924
924
|
} else
|
|
925
|
-
X = u ? T :
|
|
925
|
+
X = u ? T : pe(T, 0, x);
|
|
926
926
|
return X;
|
|
927
927
|
}
|
|
928
928
|
function D(T, X) {
|
|
929
|
-
var
|
|
930
|
-
return rt === -1 && d && !
|
|
929
|
+
var ft = w || (Z() ? 1 : h), rt = j(f + ft * (T ? -1 : 1), f, !(w || Z()));
|
|
930
|
+
return rt === -1 && d && !No(c(), l(!T), 1) ? T ? 0 : x : X ? rt : E(rt);
|
|
931
931
|
}
|
|
932
|
-
function j(T, X,
|
|
932
|
+
function j(T, X, ft) {
|
|
933
933
|
if (_() || Z()) {
|
|
934
934
|
var rt = g(T);
|
|
935
|
-
rt !== T && (X = T, T = rt,
|
|
935
|
+
rt !== T && (X = T, T = rt, ft = !1), T < 0 || T > x ? !w && (Qe(0, T, X, !0) || Qe(x, X, T, !0)) ? T = $(v(T)) : u ? T = ft ? T < 0 ? -(N % h || h) : N : T : n.rewind ? T = T < 0 ? x : 0 : T = -1 : ft && T !== X && (T = $(v(X) + (T < X ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
T = -1;
|
|
938
938
|
return T;
|
|
939
939
|
}
|
|
940
940
|
function g(T) {
|
|
941
941
|
if (d && n.trimSpace === "move" && T !== f)
|
|
942
|
-
for (var X = c(); X === p(T, !0) &&
|
|
942
|
+
for (var X = c(); X === p(T, !0) && Qe(T, 0, t.length - 1, !n.rewind); )
|
|
943
943
|
T < f ? --T : ++T;
|
|
944
944
|
return T;
|
|
945
945
|
}
|
|
@@ -952,17 +952,17 @@ function Mi(t, e, n) {
|
|
|
952
952
|
T++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return pe(T, 0, N - 1);
|
|
956
956
|
}
|
|
957
957
|
function $(T) {
|
|
958
|
-
return
|
|
958
|
+
return pe(Z() ? T : h * T, 0, x);
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
return Z() ? Kt(T, x) :
|
|
960
|
+
function v(T) {
|
|
961
|
+
return Z() ? Kt(T, x) : rn((T >= x ? N - 1 : T) / h);
|
|
962
962
|
}
|
|
963
963
|
function R(T) {
|
|
964
964
|
var X = i.toIndex(T);
|
|
965
|
-
return d ?
|
|
965
|
+
return d ? pe(X, 0, x) : X;
|
|
966
966
|
}
|
|
967
967
|
function q(T) {
|
|
968
968
|
T !== f && (V = f, f = T);
|
|
@@ -971,10 +971,10 @@ function Mi(t, e, n) {
|
|
|
971
971
|
return T ? V : f;
|
|
972
972
|
}
|
|
973
973
|
function Z() {
|
|
974
|
-
return !
|
|
974
|
+
return !We(n.focus) || n.isNavigation;
|
|
975
975
|
}
|
|
976
976
|
function ut() {
|
|
977
|
-
return t.state.is([
|
|
977
|
+
return t.state.is([Se, Ne]) && !!n.waitForTransition;
|
|
978
978
|
}
|
|
979
979
|
return {
|
|
980
980
|
mount: L,
|
|
@@ -987,15 +987,15 @@ function Mi(t, e, n) {
|
|
|
987
987
|
setIndex: q,
|
|
988
988
|
getIndex: ot,
|
|
989
989
|
toIndex: $,
|
|
990
|
-
toPage:
|
|
990
|
+
toPage: v,
|
|
991
991
|
toDest: R,
|
|
992
992
|
hasFocus: Z,
|
|
993
993
|
isBusy: ut
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
var
|
|
997
|
-
function
|
|
998
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = n.classes, l = n.i18n, p = e.Elements, s = e.Controller, _ = p.arrows,
|
|
996
|
+
var Di = "http://www.w3.org/2000/svg", ji = "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", Ye = 40;
|
|
997
|
+
function Ui(t, e, n) {
|
|
998
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = n.classes, l = n.i18n, p = e.Elements, s = e.Controller, _ = p.arrows, y = p.track, m = _, u = p.prev, d = p.next, C, b, f = {};
|
|
999
999
|
function x() {
|
|
1000
1000
|
N(), r(xt, V);
|
|
1001
1001
|
}
|
|
@@ -1004,31 +1004,31 @@ function Di(t, e, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function N() {
|
|
1006
1006
|
var F = n.arrows;
|
|
1007
|
-
F && !(u && d) && k(), u && d && (
|
|
1007
|
+
F && !(u && d) && k(), u && d && (Re(f, {
|
|
1008
1008
|
prev: u,
|
|
1009
1009
|
next: d
|
|
1010
|
-
}),
|
|
1010
|
+
}), Be(m, F ? "" : "none"), Pt(m, b = Zn + "--" + n.direction), F && (h(), I(), J([u, d], De, y.id), i(Yo, u, d)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function w() {
|
|
1013
|
-
o.destroy(), Vt(m, b), C ? (
|
|
1013
|
+
o.destroy(), Vt(m, b), C ? (re(_ ? [u, d] : m), u = d = null) : Nt([u, d], Jn);
|
|
1014
1014
|
}
|
|
1015
1015
|
function h() {
|
|
1016
|
-
r([Zt,
|
|
1016
|
+
r([Zt, Ce, yt, ae, an], I), a(d, "click", at(L, ">")), a(u, "click", at(L, "<"));
|
|
1017
1017
|
}
|
|
1018
1018
|
function L(F) {
|
|
1019
1019
|
s.go(F, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function k() {
|
|
1022
|
-
m = _ ||
|
|
1022
|
+
m = _ || me("div", c.arrows), u = z(!0), d = z(!1), C = !0, Me(m, [u, d]), !_ && zn(m, y);
|
|
1023
1023
|
}
|
|
1024
1024
|
function z(F) {
|
|
1025
|
-
var O = '<button class="' + c.arrow + " " + (F ? c.prev : c.next) + '" type="button"><svg xmlns="' +
|
|
1026
|
-
return
|
|
1025
|
+
var O = '<button class="' + c.arrow + " " + (F ? c.prev : c.next) + '" type="button"><svg xmlns="' + Di + '" viewBox="0 0 ' + Ye + " " + Ye + '" width="' + Ye + '" height="' + Ye + '" focusable="false"><path d="' + (n.arrowPath || ji) + '" />';
|
|
1026
|
+
return Oo(O);
|
|
1027
1027
|
}
|
|
1028
1028
|
function I() {
|
|
1029
1029
|
if (u && d) {
|
|
1030
1030
|
var F = t.index, O = s.getPrev(), D = s.getNext(), j = O > -1 && F < O ? l.last : l.prev, g = D > -1 && F > D ? l.first : l.next;
|
|
1031
|
-
u.disabled = O < 0, d.disabled = D < 0, J(u, Et, j), J(d, Et, g), i(
|
|
1031
|
+
u.disabled = O < 0, d.disabled = D < 0, J(u, Et, j), J(d, Et, g), i(Go, u, d, O, D);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
@@ -1038,40 +1038,40 @@ function Di(t, e, n) {
|
|
|
1038
1038
|
update: I
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1043
|
-
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c =
|
|
1041
|
+
var Yi = Vn + "-interval";
|
|
1042
|
+
function Gi(t, e, n) {
|
|
1043
|
+
var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = pn(n.interval, t.go.bind(t, ">"), h), l = c.isPaused, p = e.Elements, s = e.Elements, _ = s.root, y = s.toggle, m = n.autoplay, u, d, C = m === "pause";
|
|
1044
1044
|
function b() {
|
|
1045
|
-
m && (f(),
|
|
1045
|
+
m && (f(), y && J(y, De, p.track.id), C || x(), w());
|
|
1046
1046
|
}
|
|
1047
1047
|
function f() {
|
|
1048
1048
|
n.pauseOnHover && a(_, "mouseenter mouseleave", function(k) {
|
|
1049
1049
|
u = k.type === "mouseenter", N();
|
|
1050
1050
|
}), n.pauseOnFocus && a(_, "focusin focusout", function(k) {
|
|
1051
1051
|
d = k.type === "focusin", N();
|
|
1052
|
-
}),
|
|
1052
|
+
}), y && a(y, "click", function() {
|
|
1053
1053
|
C ? x() : V(!0);
|
|
1054
|
-
}), r([jt,
|
|
1054
|
+
}), r([jt, un, yt], c.rewind), r(jt, L);
|
|
1055
1055
|
}
|
|
1056
1056
|
function x() {
|
|
1057
|
-
l() && e.Slides.isEnough() && (c.start(!n.resetProgress), d = u = C = !1, w(), i(
|
|
1057
|
+
l() && e.Slides.isEnough() && (c.start(!n.resetProgress), d = u = C = !1, w(), i(Yn));
|
|
1058
1058
|
}
|
|
1059
1059
|
function V(k) {
|
|
1060
|
-
k === void 0 && (k = !0), C = !!k, w(), l() || (c.pause(), i(
|
|
1060
|
+
k === void 0 && (k = !0), C = !!k, w(), l() || (c.pause(), i(Gn));
|
|
1061
1061
|
}
|
|
1062
1062
|
function N() {
|
|
1063
1063
|
C || (u || d ? V(!1) : x());
|
|
1064
1064
|
}
|
|
1065
1065
|
function w() {
|
|
1066
|
-
|
|
1066
|
+
y && (Mt(y, ie, !C), J(y, Et, n.i18n[C ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function h(k) {
|
|
1069
1069
|
var z = p.bar;
|
|
1070
|
-
z && kt(z, "width", k * 100 + "%"), i(
|
|
1070
|
+
z && kt(z, "width", k * 100 + "%"), i(Ko, k);
|
|
1071
1071
|
}
|
|
1072
1072
|
function L(k) {
|
|
1073
1073
|
var z = e.Slides.getAt(k);
|
|
1074
|
-
c.set(z && +Ft(z.slide,
|
|
1074
|
+
c.set(z && +Ft(z.slide, Yi) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
mount: b,
|
|
@@ -1081,46 +1081,46 @@ function Ui(t, e, n) {
|
|
|
1081
1081
|
isPaused: l
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function qi(t, e, n) {
|
|
1085
1085
|
var o = gt(t), r = o.on;
|
|
1086
1086
|
function a() {
|
|
1087
|
-
n.cover && (r(
|
|
1087
|
+
n.cover && (r(qn, at(c, !0)), r([Zt, xt, yt], at(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(l) {
|
|
1090
1090
|
e.Slides.forEach(function(p) {
|
|
1091
|
-
var s =
|
|
1091
|
+
var s = Ve(p.container || p.slide, "img");
|
|
1092
1092
|
s && s.src && c(l, s, p);
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
1095
|
function c(l, p, s) {
|
|
1096
|
-
s.style("background", l ? 'center/cover no-repeat url("' + p.src + '")' : "", !0),
|
|
1096
|
+
s.style("background", l ? 'center/cover no-repeat url("' + p.src + '")' : "", !0), Be(p, l ? "none" : "");
|
|
1097
1097
|
}
|
|
1098
1098
|
return {
|
|
1099
1099
|
mount: a,
|
|
1100
1100
|
destroy: at(i, !1)
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1105
|
-
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, l = c.getPosition, p = c.getLimit, s = c.exceededLimit, _ = c.translate,
|
|
1103
|
+
var Xi = 10, Ki = 600, Ji = 0.6, Zi = 1.5, Qi = 800;
|
|
1104
|
+
function ta(t, e, n) {
|
|
1105
|
+
var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, l = c.getPosition, p = c.getLimit, s = c.exceededLimit, _ = c.translate, y = t.is(be), m, u, d = 1;
|
|
1106
1106
|
function C() {
|
|
1107
|
-
r(jt, V), r([xt,
|
|
1107
|
+
r(jt, V), r([xt, yt], N);
|
|
1108
1108
|
}
|
|
1109
1109
|
function b(h, L, k, z, I) {
|
|
1110
1110
|
var F = l();
|
|
1111
|
-
if (V(), k && (!
|
|
1112
|
-
var O = e.Layout.sliderSize(), D =
|
|
1111
|
+
if (V(), k && (!y || !s())) {
|
|
1112
|
+
var O = e.Layout.sliderSize(), D = An(h) * O * rn($t(h) / O) || 0;
|
|
1113
1113
|
h = c.toPosition(e.Controller.toDest(h % O)) + D;
|
|
1114
1114
|
}
|
|
1115
|
-
var j =
|
|
1116
|
-
d = 1, L = j ? 0 : L ||
|
|
1115
|
+
var j = No(F, h, 1);
|
|
1116
|
+
d = 1, L = j ? 0 : L || on($t(h - F) / Zi, Qi), u = z, m = pn(L, f, at(x, F, h, I), 1), i(Ne), a(un), m.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function f() {
|
|
1119
|
-
i(ye), u && u(), a(
|
|
1119
|
+
i(ye), u && u(), a(ae);
|
|
1120
1120
|
}
|
|
1121
1121
|
function x(h, L, k, z) {
|
|
1122
1122
|
var I = l(), F = h + (L - h) * w(z), O = (F - I) * d;
|
|
1123
|
-
_(I + O),
|
|
1123
|
+
_(I + O), y && !k && s() && (d *= Ji, $t(O) < Xi && b(p(s(!0)), Ki, !1, u, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function V() {
|
|
1126
1126
|
m && m.cancel();
|
|
@@ -1139,16 +1139,16 @@ function Zi(t, e, n) {
|
|
|
1139
1139
|
cancel: N
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var de = {
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
|
-
function
|
|
1147
|
-
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, l = t.state, p = e.Move, s = e.Scroll, _ = e.Controller,
|
|
1146
|
+
function ea(t, e, n) {
|
|
1147
|
+
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, l = t.state, p = e.Move, s = e.Scroll, _ = e.Controller, y = e.Elements.track, m = e.Media.reduce, u = e.Direction, d = u.resolve, C = u.orient, b = p.getPosition, f = p.exceededLimit, x, V, N, w, h, L = !1, k, z, I;
|
|
1148
1148
|
function F() {
|
|
1149
|
-
i(
|
|
1149
|
+
i(y, $n, Ln, de), i(y, _n, Ln, de), i(y, pr, D, de), i(y, "click", E, {
|
|
1150
1150
|
capture: !0
|
|
1151
|
-
}), i(
|
|
1151
|
+
}), i(y, "dragstart", zt), r([Zt, xt], O);
|
|
1152
1152
|
}
|
|
1153
1153
|
function O() {
|
|
1154
1154
|
var M = n.drag;
|
|
@@ -1157,19 +1157,19 @@ function Qi(t, e, n) {
|
|
|
1157
1157
|
function D(M) {
|
|
1158
1158
|
if (k = !1, !z) {
|
|
1159
1159
|
var S = mt(M);
|
|
1160
|
-
rt(M.target) && (S || !M.button) && (_.isBusy() ? zt(M, !0) : (I = S ?
|
|
1160
|
+
rt(M.target) && (S || !M.button) && (_.isBusy() ? zt(M, !0) : (I = S ? y : window, h = l.is([Se, Ne]), N = null, i(I, $n, j, de), i(I, _n, g, de), p.cancel(), s.cancel(), A(M)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function j(M) {
|
|
1164
|
-
if (l.is(
|
|
1164
|
+
if (l.is(Je) || (l.set(Je), a(Do)), M.cancelable)
|
|
1165
1165
|
if (h) {
|
|
1166
|
-
p.translate(x +
|
|
1167
|
-
var S = ut(M) >
|
|
1168
|
-
(S || H) && A(M), k = !0, a(
|
|
1169
|
-
} else R(M) && (h =
|
|
1166
|
+
p.translate(x + ft(Z(M)));
|
|
1167
|
+
var S = ut(M) > vo, H = L !== (L = f());
|
|
1168
|
+
(S || H) && A(M), k = !0, a(jo), zt(M);
|
|
1169
|
+
} else R(M) && (h = v(M), zt(M));
|
|
1170
1170
|
}
|
|
1171
1171
|
function g(M) {
|
|
1172
|
-
l.is(
|
|
1172
|
+
l.is(Je) && (l.set(ye), a(Uo)), h && ($(M), zt(M)), c(I, $n, j), c(I, _n, g), h = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function E(M) {
|
|
1175
1175
|
!z && k && zt(M, !0);
|
|
@@ -1179,31 +1179,31 @@ function Qi(t, e, n) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function $(M) {
|
|
1181
1181
|
var S = q(M), H = ot(S), Y = n.rewind && n.rewindByDrag;
|
|
1182
|
-
m(!1), w ? _.scroll(H, 0, n.snap) : t.is(
|
|
1182
|
+
m(!1), w ? _.scroll(H, 0, n.snap) : t.is(je) ? _.go(C(An(S)) < 0 ? Y ? "<" : "-" : Y ? ">" : "+") : t.is(be) && L && Y ? _.go(f(!0) ? ">" : "<") : _.go(_.toDest(H), !0), m(!0);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var S = n.dragMinThreshold, H =
|
|
1184
|
+
function v(M) {
|
|
1185
|
+
var S = n.dragMinThreshold, H = Ie(S), Y = H && S.mouse || 0, K = (H ? S.touch : +S) || 10;
|
|
1186
1186
|
return $t(Z(M)) > (mt(M) ? K : Y);
|
|
1187
1187
|
}
|
|
1188
1188
|
function R(M) {
|
|
1189
1189
|
return $t(Z(M)) > $t(Z(M, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function q(M) {
|
|
1192
|
-
if (t.is(
|
|
1192
|
+
if (t.is(xe) || !L) {
|
|
1193
1193
|
var S = ut(M);
|
|
1194
|
-
if (S && S <
|
|
1194
|
+
if (S && S < vo)
|
|
1195
1195
|
return Z(M) / S;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function ot(M) {
|
|
1200
|
-
return b() +
|
|
1200
|
+
return b() + An(M) * Kt($t(M) * (n.flickPower || 600), w ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function Z(M, S) {
|
|
1203
1203
|
return X(M, S) - X(T(M), S);
|
|
1204
1204
|
}
|
|
1205
1205
|
function ut(M) {
|
|
1206
|
-
return
|
|
1206
|
+
return En(M) - En(T(M));
|
|
1207
1207
|
}
|
|
1208
1208
|
function T(M) {
|
|
1209
1209
|
return V === M && N || V;
|
|
@@ -1211,12 +1211,12 @@ function Qi(t, e, n) {
|
|
|
1211
1211
|
function X(M, S) {
|
|
1212
1212
|
return (mt(M) ? M.changedTouches[0] : M)["page" + d(S ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return M / (L && t.is(
|
|
1214
|
+
function ft(M) {
|
|
1215
|
+
return M / (L && t.is(be) ? Bi : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function rt(M) {
|
|
1218
1218
|
var S = n.noDrag;
|
|
1219
|
-
return !
|
|
1219
|
+
return !ke(M, "." + ar + ", ." + yn) && (!S || !ke(M, S));
|
|
1220
1220
|
}
|
|
1221
1221
|
function mt(M) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && M instanceof TouchEvent;
|
|
@@ -1233,42 +1233,42 @@ function Qi(t, e, n) {
|
|
|
1233
1233
|
isDragging: Ct
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var na = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
|
-
Right:
|
|
1239
|
-
Left:
|
|
1240
|
-
Up:
|
|
1241
|
-
Down:
|
|
1238
|
+
Right: mn,
|
|
1239
|
+
Left: gn,
|
|
1240
|
+
Up: Qo,
|
|
1241
|
+
Down: tr
|
|
1242
1242
|
};
|
|
1243
|
-
function
|
|
1244
|
-
return t = Xt(t) ? t : t.key,
|
|
1243
|
+
function Qn(t) {
|
|
1244
|
+
return t = Xt(t) ? t : t.key, na[t] || t;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1246
|
+
var bo = "keydown";
|
|
1247
|
+
function oa(t, e, n) {
|
|
1248
1248
|
var o = gt(t), r = o.on, a = o.bind, i = o.unbind, c = t.root, l = e.Direction.resolve, p, s;
|
|
1249
1249
|
function _() {
|
|
1250
|
-
|
|
1250
|
+
y(), r(xt, m), r(xt, y), r(jt, d);
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function y() {
|
|
1253
1253
|
var b = n.keyboard;
|
|
1254
|
-
b && (p = b === "global" ? window : c, a(p,
|
|
1254
|
+
b && (p = b === "global" ? window : c, a(p, bo, C));
|
|
1255
1255
|
}
|
|
1256
1256
|
function m() {
|
|
1257
|
-
i(p,
|
|
1257
|
+
i(p, bo);
|
|
1258
1258
|
}
|
|
1259
1259
|
function u(b) {
|
|
1260
1260
|
s = b;
|
|
1261
1261
|
}
|
|
1262
1262
|
function d() {
|
|
1263
1263
|
var b = s;
|
|
1264
|
-
s = !0,
|
|
1264
|
+
s = !0, Io(function() {
|
|
1265
1265
|
s = b;
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
1268
|
function C(b) {
|
|
1269
1269
|
if (!s) {
|
|
1270
|
-
var f =
|
|
1271
|
-
f === l(
|
|
1270
|
+
var f = Qn(b);
|
|
1271
|
+
f === l(gn) ? t.go("<") : f === l(mn) && t.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
@@ -1277,22 +1277,22 @@ function ea(t, e, n) {
|
|
|
1277
1277
|
disable: u
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1281
|
-
function
|
|
1282
|
-
var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, l = n.lazyLoad === "sequential", p = [
|
|
1280
|
+
var Ee = Vn + "-lazy", tn = Ee + "-srcset", ra = "[" + Ee + "], [" + tn + "]";
|
|
1281
|
+
function ia(t, e, n) {
|
|
1282
|
+
var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, l = n.lazyLoad === "sequential", p = [Ce, ae], s = [];
|
|
1283
1283
|
function _() {
|
|
1284
|
-
n.lazyLoad && (
|
|
1284
|
+
n.lazyLoad && (y(), r(yt, y));
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function y() {
|
|
1287
1287
|
Dt(s), m(), l ? b() : (a(p), r(p, u), u());
|
|
1288
1288
|
}
|
|
1289
1289
|
function m() {
|
|
1290
1290
|
e.Slides.forEach(function(f) {
|
|
1291
|
-
|
|
1292
|
-
var V = Ft(x,
|
|
1291
|
+
Mn(f.slide, ra).forEach(function(x) {
|
|
1292
|
+
var V = Ft(x, Ee), N = Ft(x, tn);
|
|
1293
1293
|
if (V !== x.src || N !== x.srcset) {
|
|
1294
|
-
var w = n.classes.spinner, h = x.parentElement, L =
|
|
1295
|
-
s.push([x, f, L]), x.src ||
|
|
1294
|
+
var w = n.classes.spinner, h = x.parentElement, L = Ve(h, "." + w) || me("span", w, h);
|
|
1295
|
+
s.push([x, f, L]), x.src || Be(x, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
@@ -1305,11 +1305,11 @@ function oa(t, e, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function d(f) {
|
|
1307
1307
|
var x = f[0];
|
|
1308
|
-
Pt(f[1].slide,
|
|
1308
|
+
Pt(f[1].slide, Rn), i(x, "load error", at(C, f)), J(x, "src", Ft(x, Ee)), J(x, "srcset", Ft(x, tn)), Nt(x, Ee), Nt(x, tn);
|
|
1309
1309
|
}
|
|
1310
1310
|
function C(f, x) {
|
|
1311
1311
|
var V = f[0], N = f[1];
|
|
1312
|
-
Vt(N.slide,
|
|
1312
|
+
Vt(N.slide, Rn), x.type !== "error" && (re(f[2]), Be(V, ""), c(qn, V, N), c(ve)), l && b();
|
|
1313
1313
|
}
|
|
1314
1314
|
function b() {
|
|
1315
1315
|
s.length && d(s.shift());
|
|
@@ -1320,30 +1320,30 @@ function oa(t, e, n) {
|
|
|
1320
1320
|
check: u
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Slides, l = e.Elements, p = e.Controller, s = p.hasFocus, _ = p.getIndex,
|
|
1323
|
+
function aa(t, e, n) {
|
|
1324
|
+
var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Slides, l = e.Elements, p = e.Controller, s = p.hasFocus, _ = p.getIndex, y = p.go, m = e.Direction.resolve, u = l.pagination, d = [], C, b;
|
|
1325
1325
|
function f() {
|
|
1326
|
-
x(), r([xt,
|
|
1326
|
+
x(), r([xt, yt, an], f);
|
|
1327
1327
|
var z = n.pagination;
|
|
1328
|
-
u &&
|
|
1328
|
+
u && Be(u, z ? "" : "none"), z && (r([jt, un, ae], k), V(), k(), a(qo, {
|
|
1329
1329
|
list: C,
|
|
1330
1330
|
items: d
|
|
1331
1331
|
}, L(t.index)));
|
|
1332
1332
|
}
|
|
1333
1333
|
function x() {
|
|
1334
|
-
C && (
|
|
1334
|
+
C && (re(u ? Jt(C.children) : C), Vt(C, b), Dt(d), C = null), o.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function V() {
|
|
1337
|
-
var z = t.length, I = n.classes, F = n.i18n, O = n.perPage, D = s() ? p.getEnd() + 1 :
|
|
1338
|
-
C = u ||
|
|
1337
|
+
var z = t.length, I = n.classes, F = n.i18n, O = n.perPage, D = s() ? p.getEnd() + 1 : Oe(z / O);
|
|
1338
|
+
C = u || me("ul", I.pagination, l.track.parentElement), Pt(C, b = vn + "--" + h()), J(C, Ht, "tablist"), J(C, Et, F.select), J(C, Kn, h() === fn ? "vertical" : "");
|
|
1339
1339
|
for (var j = 0; j < D; j++) {
|
|
1340
|
-
var g =
|
|
1340
|
+
var g = me("li", null, C), E = me("button", {
|
|
1341
1341
|
class: I.page,
|
|
1342
1342
|
type: "button"
|
|
1343
|
-
}, g), A = c.getIn(j).map(function(
|
|
1344
|
-
return
|
|
1343
|
+
}, g), A = c.getIn(j).map(function(v) {
|
|
1344
|
+
return v.slide.id;
|
|
1345
1345
|
}), $ = !s() && O > 1 ? F.pageX : F.slideX;
|
|
1346
|
-
i(E, "click", at(N, j)), n.paginationKeyboard && i(E, "keydown", at(w, j)), J(g, Ht, "presentation"), J(E, Ht, "tab"), J(E,
|
|
1346
|
+
i(E, "click", at(N, j)), n.paginationKeyboard && i(E, "keydown", at(w, j)), J(g, Ht, "presentation"), J(E, Ht, "tab"), J(E, De, A.join(" ")), J(E, Et, In($, j + 1)), J(E, fe, -1), d.push({
|
|
1347
1347
|
li: g,
|
|
1348
1348
|
button: E,
|
|
1349
1349
|
page: j
|
|
@@ -1351,13 +1351,13 @@ function ra(t, e, n) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
function N(z) {
|
|
1354
|
-
|
|
1354
|
+
y(">" + z, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function w(z, I) {
|
|
1357
|
-
var F = d.length, O =
|
|
1358
|
-
O === m(
|
|
1357
|
+
var F = d.length, O = Qn(I), D = h(), j = -1;
|
|
1358
|
+
O === m(mn, !1, D) ? j = ++z % F : O === m(gn, !1, D) ? j = (--z + F) % F : O === "Home" ? j = 0 : O === "End" && (j = F - 1);
|
|
1359
1359
|
var g = d[j];
|
|
1360
|
-
g && (
|
|
1360
|
+
g && (Bo(g.button), y(">" + j), zt(I, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function h() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1369,13 +1369,13 @@ function ra(t, e, n) {
|
|
|
1369
1369
|
var z = L(_(!0)), I = L(_());
|
|
1370
1370
|
if (z) {
|
|
1371
1371
|
var F = z.button;
|
|
1372
|
-
Vt(F,
|
|
1372
|
+
Vt(F, ie), Nt(F, go), J(F, fe, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (I) {
|
|
1375
1375
|
var O = I.button;
|
|
1376
|
-
Pt(O,
|
|
1376
|
+
Pt(O, ie), J(O, go, !0), J(O, fe, "");
|
|
1377
1377
|
}
|
|
1378
|
-
a(
|
|
1378
|
+
a(Xo, {
|
|
1379
1379
|
list: C,
|
|
1380
1380
|
items: d
|
|
1381
1381
|
}, z, I);
|
|
@@ -1388,8 +1388,8 @@ function ra(t, e, n) {
|
|
|
1388
1388
|
update: k
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1392
|
-
function
|
|
1391
|
+
var la = [" ", "Enter"];
|
|
1392
|
+
function sa(t, e, n) {
|
|
1393
1393
|
var o = n.isNavigation, r = n.slideFocus, a = [];
|
|
1394
1394
|
function i() {
|
|
1395
1395
|
t.splides.forEach(function(u) {
|
|
@@ -1407,92 +1407,92 @@ function aa(t, e, n) {
|
|
|
1407
1407
|
function p(u, d) {
|
|
1408
1408
|
var C = gt(u);
|
|
1409
1409
|
C.on(jt, function(b, f, x) {
|
|
1410
|
-
d.go(d.is(
|
|
1410
|
+
d.go(d.is(xe) ? x : b);
|
|
1411
1411
|
}), a.push(C);
|
|
1412
1412
|
}
|
|
1413
1413
|
function s() {
|
|
1414
1414
|
var u = gt(t), d = u.on;
|
|
1415
|
-
d(
|
|
1415
|
+
d(Dn, y), d(Jo, m), d([Zt, xt], _), a.push(u), u.emit(Un, t.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function _() {
|
|
1418
|
-
J(e.Elements.list,
|
|
1418
|
+
J(e.Elements.list, Kn, n.direction === fn ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function y(u) {
|
|
1421
1421
|
t.go(u.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function m(u, d) {
|
|
1424
|
-
|
|
1424
|
+
Wn(la, Qn(d)) && (y(u), zt(d));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: at(e.Media.set, {
|
|
1428
|
-
slideFocus:
|
|
1428
|
+
slideFocus: We(r) ? o : r
|
|
1429
1429
|
}, !0),
|
|
1430
1430
|
mount: i,
|
|
1431
1431
|
destroy: c,
|
|
1432
1432
|
remount: l
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function ca(t, e, n) {
|
|
1436
1436
|
var o = gt(t), r = o.bind, a = 0;
|
|
1437
1437
|
function i() {
|
|
1438
|
-
n.wheel && r(e.Elements.track, "wheel", c,
|
|
1438
|
+
n.wheel && r(e.Elements.track, "wheel", c, de);
|
|
1439
1439
|
}
|
|
1440
1440
|
function c(p) {
|
|
1441
1441
|
if (p.cancelable) {
|
|
1442
|
-
var s = p.deltaY, _ = s < 0,
|
|
1443
|
-
$t(s) > m &&
|
|
1442
|
+
var s = p.deltaY, _ = s < 0, y = En(p), m = n.wheelMinThreshold || 0, u = n.wheelSleep || 0;
|
|
1443
|
+
$t(s) > m && y - a > u && (t.go(_ ? "<" : ">"), a = y), l(_) && zt(p);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function l(p) {
|
|
1447
|
-
return !n.releaseWheel || t.state.is(
|
|
1447
|
+
return !n.releaseWheel || t.state.is(Se) || e.Controller.getAdjacent(p) !== -1;
|
|
1448
1448
|
}
|
|
1449
1449
|
return {
|
|
1450
1450
|
mount: i
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1455
|
-
var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c =
|
|
1453
|
+
var ua = 90;
|
|
1454
|
+
function pa(t, e, n) {
|
|
1455
|
+
var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c = me("span", Ai), l = pn(ua, at(s, !1));
|
|
1456
1456
|
function p() {
|
|
1457
|
-
i && (
|
|
1457
|
+
i && (y(!e.Autoplay.isPaused()), J(a, ho, !0), c.textContent = "…", r(Yn, at(y, !0)), r(Gn, at(y, !1)), r([Ce, ae], at(s, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function s(m) {
|
|
1460
|
-
J(a,
|
|
1460
|
+
J(a, fo, m), m ? (Me(a, c), l.start()) : (re(c), l.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function _() {
|
|
1463
|
-
Nt(a, [
|
|
1463
|
+
Nt(a, [mo, ho, fo]), re(c);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
i && J(a,
|
|
1465
|
+
function y(m) {
|
|
1466
|
+
i && J(a, mo, m ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: p,
|
|
1470
|
-
disable:
|
|
1470
|
+
disable: y,
|
|
1471
1471
|
destroy: _
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var da = /* @__PURE__ */ Object.freeze({
|
|
1475
1475
|
__proto__: null,
|
|
1476
|
-
Media:
|
|
1477
|
-
Direction:
|
|
1478
|
-
Elements:
|
|
1479
|
-
Slides:
|
|
1480
|
-
Layout:
|
|
1481
|
-
Clones:
|
|
1482
|
-
Move:
|
|
1483
|
-
Controller:
|
|
1484
|
-
Arrows:
|
|
1485
|
-
Autoplay:
|
|
1486
|
-
Cover:
|
|
1487
|
-
Scroll:
|
|
1488
|
-
Drag:
|
|
1489
|
-
Keyboard:
|
|
1490
|
-
LazyLoad:
|
|
1491
|
-
Pagination:
|
|
1492
|
-
Sync:
|
|
1493
|
-
Wheel:
|
|
1494
|
-
Live:
|
|
1495
|
-
}),
|
|
1476
|
+
Media: Si,
|
|
1477
|
+
Direction: Ci,
|
|
1478
|
+
Elements: Oi,
|
|
1479
|
+
Slides: Ni,
|
|
1480
|
+
Layout: Wi,
|
|
1481
|
+
Clones: Mi,
|
|
1482
|
+
Move: Vi,
|
|
1483
|
+
Controller: Hi,
|
|
1484
|
+
Arrows: Ui,
|
|
1485
|
+
Autoplay: Gi,
|
|
1486
|
+
Cover: qi,
|
|
1487
|
+
Scroll: ta,
|
|
1488
|
+
Drag: ea,
|
|
1489
|
+
Keyboard: oa,
|
|
1490
|
+
LazyLoad: ia,
|
|
1491
|
+
Pagination: aa,
|
|
1492
|
+
Sync: sa,
|
|
1493
|
+
Wheel: ca,
|
|
1494
|
+
Live: pa
|
|
1495
|
+
}), ga = {
|
|
1496
1496
|
prev: "Previous slide",
|
|
1497
1497
|
next: "Next slide",
|
|
1498
1498
|
first: "Go to first slide",
|
|
@@ -1505,7 +1505,7 @@ var ua = /* @__PURE__ */ Object.freeze({
|
|
|
1505
1505
|
slide: "slide",
|
|
1506
1506
|
select: "Select a slide to show",
|
|
1507
1507
|
slideLabel: "%s of %s"
|
|
1508
|
-
},
|
|
1508
|
+
}, ma = {
|
|
1509
1509
|
type: "slide",
|
|
1510
1510
|
role: "region",
|
|
1511
1511
|
speed: 400,
|
|
@@ -1524,18 +1524,18 @@ var ua = /* @__PURE__ */ Object.freeze({
|
|
|
1524
1524
|
trimSpace: !0,
|
|
1525
1525
|
focusableNodes: "a, button, textarea, input, select, iframe",
|
|
1526
1526
|
live: !0,
|
|
1527
|
-
classes:
|
|
1528
|
-
i18n:
|
|
1527
|
+
classes: Fi,
|
|
1528
|
+
i18n: ga,
|
|
1529
1529
|
reducedMotion: {
|
|
1530
1530
|
speed: 0,
|
|
1531
1531
|
rewindSpeed: 0,
|
|
1532
1532
|
autoplay: "pause"
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1535
|
+
function fa(t, e, n) {
|
|
1536
1536
|
var o = e.Slides;
|
|
1537
1537
|
function r() {
|
|
1538
|
-
gt(t).on([Zt,
|
|
1538
|
+
gt(t).on([Zt, yt], a);
|
|
1539
1539
|
}
|
|
1540
1540
|
function a() {
|
|
1541
1541
|
o.forEach(function(c) {
|
|
@@ -1543,15 +1543,15 @@ function ga(t, e, n) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
function i(c, l) {
|
|
1546
|
-
o.style("transition", "opacity " + n.speed + "ms " + n.easing),
|
|
1546
|
+
o.style("transition", "opacity " + n.speed + "ms " + n.easing), Io(l);
|
|
1547
1547
|
}
|
|
1548
1548
|
return {
|
|
1549
1549
|
mount: r,
|
|
1550
1550
|
start: i,
|
|
1551
|
-
cancel:
|
|
1551
|
+
cancel: Ln
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function ha(t, e, n) {
|
|
1555
1555
|
var o = e.Move, r = e.Controller, a = e.Scroll, i = e.Elements.list, c = at(kt, i, "transition"), l;
|
|
1556
1556
|
function p() {
|
|
1557
1557
|
gt(t).bind(i, "transitionend", function(m) {
|
|
@@ -1559,15 +1559,15 @@ function ma(t, e, n) {
|
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
function s(m, u) {
|
|
1562
|
-
var d = o.toPosition(m, !0), C = o.getPosition(), b =
|
|
1562
|
+
var d = o.toPosition(m, !0), C = o.getPosition(), b = y(m);
|
|
1563
1563
|
$t(d - C) >= 1 && b >= 1 ? n.useScroll ? a.scroll(d, b, !1, u) : (c("transform " + b + "ms " + n.easing), o.translate(d, !0), l = u) : (o.jump(m), u());
|
|
1564
1564
|
}
|
|
1565
1565
|
function _() {
|
|
1566
1566
|
c(""), a.cancel();
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function y(m) {
|
|
1569
1569
|
var u = n.rewindSpeed;
|
|
1570
|
-
if (t.is(
|
|
1570
|
+
if (t.is(be) && u) {
|
|
1571
1571
|
var d = r.getIndex(!0), C = r.getEnd();
|
|
1572
1572
|
if (d === 0 && m >= C || d >= C && m === 0)
|
|
1573
1573
|
return u;
|
|
@@ -1580,34 +1580,34 @@ function ma(t, e, n) {
|
|
|
1580
1580
|
cancel: _
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
var
|
|
1583
|
+
var ya = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function t(n, o) {
|
|
1585
|
-
this.event = gt(), this.Components = {}, this.state =
|
|
1586
|
-
var r = Xt(n) ?
|
|
1587
|
-
|
|
1585
|
+
this.event = gt(), this.Components = {}, this.state = vi(ge), this.splides = [], this._o = {}, this._E = {};
|
|
1586
|
+
var r = Xt(n) ? Po(document, n) : n;
|
|
1587
|
+
Le(r, r + " is invalid."), this.root = r, o = qt({
|
|
1588
1588
|
label: Ft(r, Et) || "",
|
|
1589
|
-
labelledby: Ft(r,
|
|
1590
|
-
},
|
|
1589
|
+
labelledby: Ft(r, Xn) || ""
|
|
1590
|
+
}, ma, t.defaults, o || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
qt(o, JSON.parse(Ft(r,
|
|
1592
|
+
qt(o, JSON.parse(Ft(r, Vn)));
|
|
1593
1593
|
} catch {
|
|
1594
|
-
|
|
1594
|
+
Le(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
1596
1596
|
this._o = Object.create(qt({}, o));
|
|
1597
1597
|
}
|
|
1598
1598
|
var e = t.prototype;
|
|
1599
1599
|
return e.mount = function(o, r) {
|
|
1600
1600
|
var a = this, i = this.state, c = this.Components;
|
|
1601
|
-
|
|
1602
|
-
var l =
|
|
1601
|
+
Le(i.is([ge, nn]), "Already mounted!"), i.set(ge), this._C = c, this._T = r || this._T || (this.is(je) ? fa : ha), this._E = o || this._E;
|
|
1602
|
+
var l = Re({}, da, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
|
-
return
|
|
1605
|
+
return oe(l, function(p, s) {
|
|
1606
1606
|
var _ = p(a, c, a._o);
|
|
1607
1607
|
c[s] = _, _.setup && _.setup();
|
|
1608
|
-
}),
|
|
1608
|
+
}), oe(c, function(p) {
|
|
1609
1609
|
p.mount && p.mount();
|
|
1610
|
-
}), this.emit(Zt), Pt(this.root,
|
|
1610
|
+
}), this.emit(Zt), Pt(this.root, Ii), i.set(ye), this.emit(kn), this;
|
|
1611
1611
|
}, e.sync = function(o) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: o
|
|
@@ -1631,14 +1631,14 @@ var fa = /* @__PURE__ */ (function() {
|
|
|
1631
1631
|
}, e.is = function(o) {
|
|
1632
1632
|
return this._o.type === o;
|
|
1633
1633
|
}, e.refresh = function() {
|
|
1634
|
-
return this.emit(
|
|
1634
|
+
return this.emit(yt), this;
|
|
1635
1635
|
}, e.destroy = function(o) {
|
|
1636
1636
|
o === void 0 && (o = !0);
|
|
1637
1637
|
var r = this.event, a = this.state;
|
|
1638
|
-
return a.is(
|
|
1638
|
+
return a.is(ge) ? gt(this).on(kn, this.destroy.bind(this, o)) : (oe(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(o);
|
|
1640
|
-
}, !0), r.emit(
|
|
1641
|
-
},
|
|
1640
|
+
}, !0), r.emit(jn), r.destroy(), o && Dt(this.splides), a.set(nn)), this;
|
|
1641
|
+
}, gi(t, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
1644
1644
|
return this._o;
|
|
@@ -1657,58 +1657,58 @@ var fa = /* @__PURE__ */ (function() {
|
|
|
1657
1657
|
return this._C.Controller.getIndex();
|
|
1658
1658
|
}
|
|
1659
1659
|
}]), t;
|
|
1660
|
-
})(),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1660
|
+
})(), to = ya;
|
|
1661
|
+
to.defaults = {};
|
|
1662
|
+
to.STATES = fi;
|
|
1663
|
+
var So = [
|
|
1664
1664
|
[Zt, "onMounted"],
|
|
1665
|
-
[
|
|
1665
|
+
[kn, "onReady"],
|
|
1666
1666
|
[jt, "onMove"],
|
|
1667
|
-
[
|
|
1668
|
-
[
|
|
1669
|
-
[
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1673
|
-
[
|
|
1667
|
+
[Ce, "onMoved"],
|
|
1668
|
+
[Dn, "onClick"],
|
|
1669
|
+
[zo, "onActive"],
|
|
1670
|
+
[Mo, "onInactive"],
|
|
1671
|
+
[Vo, "onVisible"],
|
|
1672
|
+
[Ho, "onHidden"],
|
|
1673
|
+
[yt, "onRefresh"],
|
|
1674
1674
|
[xt, "onUpdated"],
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1675
|
+
[ve, "onResize"],
|
|
1676
|
+
[cn, "onResized"],
|
|
1677
|
+
[Do, "onDrag"],
|
|
1678
|
+
[jo, "onDragging"],
|
|
1679
|
+
[Uo, "onDragged"],
|
|
1680
|
+
[un, "onScroll"],
|
|
1681
|
+
[ae, "onScrolled"],
|
|
1682
|
+
[jn, "onDestroy"],
|
|
1683
|
+
[Yo, "onArrowsMounted"],
|
|
1684
|
+
[Go, "onArrowsUpdated"],
|
|
1685
|
+
[qo, "onPaginationMounted"],
|
|
1686
|
+
[Xo, "onPaginationUpdated"],
|
|
1687
|
+
[Un, "onNavigationMounted"],
|
|
1688
|
+
[Yn, "onAutoplayPlay"],
|
|
1689
|
+
[Ko, "onAutoplayPlaying"],
|
|
1690
|
+
[Gn, "onAutoplayPause"],
|
|
1691
|
+
[qn, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
|
-
function
|
|
1693
|
+
function eo(...t) {
|
|
1694
1694
|
return t.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function ln(t) {
|
|
1697
1697
|
return t !== null && typeof t == "object";
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function Bn(t, e) {
|
|
1700
1700
|
if (Array.isArray(t) && Array.isArray(e))
|
|
1701
|
-
return t.length === e.length && !t.some((n, o) => !
|
|
1702
|
-
if (
|
|
1701
|
+
return t.length === e.length && !t.some((n, o) => !Bn(n, e[o]));
|
|
1702
|
+
if (ln(t) && ln(e)) {
|
|
1703
1703
|
const n = Object.keys(t), o = Object.keys(e);
|
|
1704
|
-
return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(e, r) || !
|
|
1704
|
+
return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(e, r) || !Bn(t[r], e[r]));
|
|
1705
1705
|
}
|
|
1706
1706
|
return t === e;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function va(t, e) {
|
|
1709
1709
|
return t.length === e.length && !t.some((n, o) => n !== e[o]);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function ba(t, e) {
|
|
1712
1712
|
if (t) {
|
|
1713
1713
|
const n = Object.keys(t);
|
|
1714
1714
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -1719,24 +1719,24 @@ function va(t, e) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return t;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function On(t, e) {
|
|
1723
1723
|
const n = t;
|
|
1724
|
-
return
|
|
1725
|
-
Array.isArray(o) ? n[r] = o.slice() :
|
|
1724
|
+
return ba(e, (o, r) => {
|
|
1725
|
+
Array.isArray(o) ? n[r] = o.slice() : ln(o) ? n[r] = On(ln(n[r]) ? n[r] : {}, o) : n[r] = o;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1729
|
-
className:
|
|
1728
|
+
var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createElement("div", {
|
|
1729
|
+
className: eo("splide__track", e),
|
|
1730
1730
|
...n
|
|
1731
|
-
}, /* @__PURE__ */
|
|
1731
|
+
}, /* @__PURE__ */ ee.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, t)),
|
|
1733
|
+
}, t)), dr = class extends ee.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
|
-
super(...arguments), this.splideRef =
|
|
1735
|
+
super(...arguments), this.splideRef = ee.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: t, extensions: e, transition: n } = this.props, { current: o } = this.splideRef;
|
|
1739
|
-
o && (this.splide = new
|
|
1739
|
+
o && (this.splide = new to(o, t), this.bind(this.splide), this.splide.mount(e, n), this.options = On({}, t || {}), this.slides = this.getSlides());
|
|
1740
1740
|
}
|
|
1741
1741
|
componentWillUnmount() {
|
|
1742
1742
|
this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
|
|
@@ -1745,9 +1745,9 @@ var ya = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.createEleme
|
|
|
1745
1745
|
if (!this.splide)
|
|
1746
1746
|
return;
|
|
1747
1747
|
const { options: t } = this.props;
|
|
1748
|
-
t && !
|
|
1748
|
+
t && !Bn(this.options, t) && (this.splide.options = t, this.options = On({}, t));
|
|
1749
1749
|
const e = this.getSlides();
|
|
1750
|
-
|
|
1750
|
+
va(this.slides, e) || (this.splide.refresh(), this.slides = e);
|
|
1751
1751
|
}
|
|
1752
1752
|
sync(t) {
|
|
1753
1753
|
var e;
|
|
@@ -1766,7 +1766,7 @@ var ya = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.createEleme
|
|
|
1766
1766
|
return [];
|
|
1767
1767
|
}
|
|
1768
1768
|
bind(t) {
|
|
1769
|
-
|
|
1769
|
+
So.forEach(([e, n]) => {
|
|
1770
1770
|
const o = this.props[n];
|
|
1771
1771
|
typeof o == "function" && t.on(e, (...r) => {
|
|
1772
1772
|
o(t, ...r);
|
|
@@ -1780,14 +1780,14 @@ var ya = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.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__ */
|
|
1784
|
-
className:
|
|
1783
|
+
return /* @__PURE__ */ ee.createElement(e, {
|
|
1784
|
+
className: eo("splide", t),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
|
-
...this.omit(r, ["options", ...
|
|
1787
|
-
}, n ? /* @__PURE__ */
|
|
1786
|
+
...this.omit(r, ["options", ...So.map((a) => a[1])])
|
|
1787
|
+
}, n ? /* @__PURE__ */ ee.createElement(Sa, null, o) : o);
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1790
|
-
className:
|
|
1789
|
+
}, gr = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createElement("li", {
|
|
1790
|
+
className: eo("splide__slide", e),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, t);
|
|
1793
1793
|
/*!
|
|
@@ -1796,16 +1796,16 @@ var ya = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.createEleme
|
|
|
1796
1796
|
* License : MIT
|
|
1797
1797
|
* Copyright: 2022 Naotoshi Fujita
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1800
|
-
link:
|
|
1801
|
-
},
|
|
1802
|
-
const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ B("a", { className:
|
|
1803
|
-
return /* @__PURE__ */ B(
|
|
1799
|
+
const Ca = "RichTextRenderer-module__link___BWeZ2", xa = {
|
|
1800
|
+
link: Ca
|
|
1801
|
+
}, mr = ({ content: t }) => {
|
|
1802
|
+
const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ B("a", { className: xa.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ B("span", { style: $a(o), children: o.text }, r));
|
|
1803
|
+
return /* @__PURE__ */ B(Ae, { children: t.map((n, o) => {
|
|
1804
1804
|
const r = n.children;
|
|
1805
1805
|
return /* @__PURE__ */ B("div", { children: e(r) }, o);
|
|
1806
1806
|
}) });
|
|
1807
1807
|
};
|
|
1808
|
-
function
|
|
1808
|
+
function $a(t) {
|
|
1809
1809
|
return {
|
|
1810
1810
|
...t.fontFamily && { fontFamily: t.fontFamily },
|
|
1811
1811
|
...t.fontWeight && { fontWeight: t.fontWeight },
|
|
@@ -1819,32 +1819,32 @@ function Ca(t) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1823
|
-
svg:
|
|
1824
|
-
img:
|
|
1825
|
-
},
|
|
1822
|
+
const _a = "SvgImage-module__svg___q3xE-", wa = "SvgImage-module__img___VsTm-", Co = {
|
|
1823
|
+
svg: _a,
|
|
1824
|
+
img: wa
|
|
1825
|
+
}, Ta = (t) => {
|
|
1826
1826
|
const e = t.trim();
|
|
1827
1827
|
return e.startsWith("data:image/svg+xml") ? !0 : (e.split(/[?#]/)[0] ?? e).endsWith(".svg");
|
|
1828
|
-
},
|
|
1828
|
+
}, La = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, he = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: o = "" }) => {
|
|
1829
1829
|
const [r, a] = it(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1830
1830
|
return bt(() => {
|
|
1831
1831
|
if (typeof window < "u" && window.CSS) {
|
|
1832
1832
|
const i = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
1833
1833
|
a(i);
|
|
1834
1834
|
}
|
|
1835
|
-
}, []), !
|
|
1835
|
+
}, []), !Ta(t) || !r ? /* @__PURE__ */ B("img", { src: t, alt: "", className: dt(Co.img, o) }) : /* @__PURE__ */ B(
|
|
1836
1836
|
"span",
|
|
1837
1837
|
{
|
|
1838
1838
|
"data-supports-mask": r,
|
|
1839
|
-
className: dt(
|
|
1839
|
+
className: dt(Co.svg, o),
|
|
1840
1840
|
style: {
|
|
1841
|
-
"--svg":
|
|
1841
|
+
"--svg": La(t),
|
|
1842
1842
|
"--fill": e,
|
|
1843
1843
|
"--hover-fill": n
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
);
|
|
1847
|
-
},
|
|
1847
|
+
}, Ea = {
|
|
1848
1848
|
"top-left": U.topLeftAlignment,
|
|
1849
1849
|
"top-center": U.topCenterAlignment,
|
|
1850
1850
|
"top-right": U.topRightAlignment,
|
|
@@ -1855,8 +1855,8 @@ const xa = "SvgImage-module__svg___q3xE-", $a = "SvgImage-module__img___VsTm-",
|
|
|
1855
1855
|
"bottom-center": U.bottomCenterAlignment,
|
|
1856
1856
|
"bottom-right": U.bottomRightAlignment
|
|
1857
1857
|
};
|
|
1858
|
-
function
|
|
1859
|
-
const [r, a] = it(null), { widthSettings: i, fontSettings: c, letterSpacing: l, textAlign: p, wordSpacing: s, fontSizeLineHeight: _, textAppearance:
|
|
1858
|
+
function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
1859
|
+
const [r, a] = it(null), { widthSettings: i, fontSettings: c, letterSpacing: l, textAlign: p, wordSpacing: s, fontSizeLineHeight: _, textAppearance: y, color: m } = n.imageCaption, [u, d] = it(void 0), [C, b] = it(null), [f, x] = it(0), [V, N] = it(0), { direction: w, transition: h, controls: L, pagination: k, imageCaption: z, triggers: I } = t, F = Tt(h.type), { x: O, y: D } = t.controls.offset, j = (g) => {
|
|
1860
1860
|
r && r.go(g);
|
|
1861
1861
|
};
|
|
1862
1862
|
return bt(() => {
|
|
@@ -1893,7 +1893,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1893
1893
|
children: e.map((g, E) => /* @__PURE__ */ B(
|
|
1894
1894
|
"div",
|
|
1895
1895
|
{
|
|
1896
|
-
className: dt(U.captionText,
|
|
1896
|
+
className: dt(U.captionText, Ea[z.alignment], {
|
|
1897
1897
|
[U.withPointerEvents]: E === f && o,
|
|
1898
1898
|
[U.active]: E === f
|
|
1899
1899
|
}),
|
|
@@ -1907,9 +1907,9 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1907
1907
|
textAlign: p,
|
|
1908
1908
|
fontSize: P(_.fontSize, o),
|
|
1909
1909
|
lineHeight: P(_.lineHeight, o),
|
|
1910
|
-
textTransform:
|
|
1911
|
-
textDecoration:
|
|
1912
|
-
fontVariant:
|
|
1910
|
+
textTransform: y.textTransform ?? "none",
|
|
1911
|
+
textDecoration: y.textDecoration ?? "none",
|
|
1912
|
+
fontVariant: y.fontVariant ?? "normal",
|
|
1913
1913
|
color: m,
|
|
1914
1914
|
transitionDuration: h.duration ? `${Math.round(parseInt(h.duration) / 2)}ms` : "500ms"
|
|
1915
1915
|
},
|
|
@@ -1925,7 +1925,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1925
1925
|
top: P(z.offset.y, o),
|
|
1926
1926
|
left: P(z.offset.x, o)
|
|
1927
1927
|
},
|
|
1928
|
-
children: /* @__PURE__ */ B(
|
|
1928
|
+
children: /* @__PURE__ */ B(mr, { content: g.imageCaption })
|
|
1929
1929
|
}
|
|
1930
1930
|
)
|
|
1931
1931
|
},
|
|
@@ -1936,7 +1936,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
),
|
|
1938
1938
|
/* @__PURE__ */ B(
|
|
1939
|
-
|
|
1939
|
+
dr,
|
|
1940
1940
|
{
|
|
1941
1941
|
onMove: (g) => {
|
|
1942
1942
|
x(g.index);
|
|
@@ -1958,7 +1958,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1958
1958
|
type: h.type === "fade in" ? "fade" : "loop",
|
|
1959
1959
|
rewind: !0
|
|
1960
1960
|
},
|
|
1961
|
-
children: e.map((g, E) => /* @__PURE__ */ B(
|
|
1961
|
+
children: e.map((g, E) => /* @__PURE__ */ B(gr, { children: /* @__PURE__ */ B(
|
|
1962
1962
|
"div",
|
|
1963
1963
|
{
|
|
1964
1964
|
className: U.sliderItem,
|
|
@@ -1984,7 +1984,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
1984
1984
|
},
|
|
1985
1985
|
V
|
|
1986
1986
|
),
|
|
1987
|
-
L.isActive && /* @__PURE__ */ St(
|
|
1987
|
+
L.isActive && /* @__PURE__ */ St(Ae, { children: [
|
|
1988
1988
|
/* @__PURE__ */ B(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
{
|
|
@@ -2008,7 +2008,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2008
2008
|
},
|
|
2009
2009
|
children: [
|
|
2010
2010
|
L.arrowsImgUrl && /* @__PURE__ */ B(
|
|
2011
|
-
|
|
2011
|
+
he,
|
|
2012
2012
|
{
|
|
2013
2013
|
url: L.arrowsImgUrl,
|
|
2014
2014
|
fill: L.color,
|
|
@@ -2016,7 +2016,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2016
2016
|
className: dt(U.arrowImg, U.mirror)
|
|
2017
2017
|
}
|
|
2018
2018
|
),
|
|
2019
|
-
!L.arrowsImgUrl && /* @__PURE__ */ B(
|
|
2019
|
+
!L.arrowsImgUrl && /* @__PURE__ */ B(xo, { color: L.color, className: dt(U.arrowIcon, U.arrowImg, U.mirror) })
|
|
2020
2020
|
]
|
|
2021
2021
|
}
|
|
2022
2022
|
)
|
|
@@ -2043,7 +2043,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2043
2043
|
},
|
|
2044
2044
|
children: [
|
|
2045
2045
|
L.arrowsImgUrl && /* @__PURE__ */ B(
|
|
2046
|
-
|
|
2046
|
+
he,
|
|
2047
2047
|
{
|
|
2048
2048
|
url: L.arrowsImgUrl,
|
|
2049
2049
|
fill: L.color,
|
|
@@ -2051,7 +2051,7 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2051
2051
|
className: U.arrowImg
|
|
2052
2052
|
}
|
|
2053
2053
|
),
|
|
2054
|
-
!L.arrowsImgUrl && /* @__PURE__ */ B(
|
|
2054
|
+
!L.arrowsImgUrl && /* @__PURE__ */ B(xo, { color: L.color, className: dt(U.arrowIcon, U.arrowImg) })
|
|
2055
2055
|
]
|
|
2056
2056
|
}
|
|
2057
2057
|
)
|
|
@@ -2119,11 +2119,11 @@ function La({ settings: t, content: e, styles: n, isEditor: o }) {
|
|
|
2119
2119
|
}
|
|
2120
2120
|
) });
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function xo({ color: t, className: e }) {
|
|
2123
2123
|
return /* @__PURE__ */ B("svg", { viewBox: "0 0 10 18", className: e, children: /* @__PURE__ */ B("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ B("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: t, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2126
|
-
element:
|
|
2125
|
+
const Ia = {
|
|
2126
|
+
element: Aa,
|
|
2127
2127
|
id: "control-slider",
|
|
2128
2128
|
name: "Slider",
|
|
2129
2129
|
preview: {
|
|
@@ -2725,13 +2725,13 @@ const Ea = {
|
|
|
2725
2725
|
},
|
|
2726
2726
|
required: ["settings", "content", "styles"]
|
|
2727
2727
|
}
|
|
2728
|
-
},
|
|
2729
|
-
imageRevealSlider:
|
|
2730
|
-
image:
|
|
2731
|
-
link:
|
|
2732
|
-
cursor:
|
|
2728
|
+
}, ka = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Fa = "ImageRevealSlider-module__image___Qjt-e", Ra = "ImageRevealSlider-module__link___N-iLG", Ba = "ImageRevealSlider-module__cursor___2U03d", ue = {
|
|
2729
|
+
imageRevealSlider: ka,
|
|
2730
|
+
image: Fa,
|
|
2731
|
+
link: Ra,
|
|
2732
|
+
cursor: Ba
|
|
2733
2733
|
};
|
|
2734
|
-
function
|
|
2734
|
+
function $o(t, e, n) {
|
|
2735
2735
|
for (const o of n) {
|
|
2736
2736
|
const r = new Image();
|
|
2737
2737
|
r.src = o.url;
|
|
@@ -2741,7 +2741,7 @@ function Co(t, e, n) {
|
|
|
2741
2741
|
}
|
|
2742
2742
|
return !1;
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2744
|
+
function wn(t) {
|
|
2745
2745
|
return new Promise((e) => {
|
|
2746
2746
|
const n = new Image();
|
|
2747
2747
|
n.src = t, n.onload = () => {
|
|
@@ -2749,28 +2749,28 @@ function $n(t) {
|
|
|
2749
2749
|
};
|
|
2750
2750
|
});
|
|
2751
2751
|
}
|
|
2752
|
-
async function
|
|
2752
|
+
async function Oa(t, e, n, o) {
|
|
2753
2753
|
let r, a;
|
|
2754
2754
|
if (e === "custom") {
|
|
2755
2755
|
r = n;
|
|
2756
|
-
const i = await
|
|
2756
|
+
const i = await wn(t);
|
|
2757
2757
|
a = i.height / i.width * r;
|
|
2758
2758
|
} else if (e === "random") {
|
|
2759
2759
|
r = Math.random() * (o.max - o.min) + o.min;
|
|
2760
|
-
const i = await
|
|
2760
|
+
const i = await wn(t);
|
|
2761
2761
|
a = i.height / i.width * r;
|
|
2762
2762
|
} else {
|
|
2763
|
-
const i = await
|
|
2763
|
+
const i = await wn(t);
|
|
2764
2764
|
r = i.width, a = i.height;
|
|
2765
2765
|
}
|
|
2766
2766
|
return { width: r, height: a, finalWidth: `${r}px` };
|
|
2767
2767
|
}
|
|
2768
|
-
function
|
|
2769
|
-
const [o, r] = it(null), [a, i] = it([]), [c, l] = it(0), p = Tt(0), [s, _] = it({ x: 0, y: 0 }), [
|
|
2768
|
+
function Pa({ settings: t, content: e, isEditor: n }) {
|
|
2769
|
+
const [o, r] = it(null), [a, i] = it([]), [c, l] = it(0), p = Tt(0), [s, _] = it({ x: 0, y: 0 }), [y, m] = it(1), [u, d] = it("none"), C = Tt({ x: 0, y: 0 }), [b, f] = it(!1), { sizeType: x, imageWidth: V, randomRangeImageWidth: N } = t.imageSize, { revealPosition: w, visible: h } = t.position, { cursorType: L, target: k, defaultCursorScale: z, defaultCursor: I, hoverCursorScale: F, hoverCursor: O } = t.cursor;
|
|
2770
2770
|
bt(() => {
|
|
2771
2771
|
if (!o) return;
|
|
2772
|
-
const g = ($,
|
|
2773
|
-
const R = o.getBoundingClientRect(), q = $ - R.left, ot =
|
|
2772
|
+
const g = ($, v) => {
|
|
2773
|
+
const R = o.getBoundingClientRect(), q = $ - R.left, ot = v - R.top;
|
|
2774
2774
|
if (_({ x: q, y: ot }), L === "system") {
|
|
2775
2775
|
d("none"), m(1);
|
|
2776
2776
|
return;
|
|
@@ -2780,7 +2780,7 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2780
2780
|
d("none"), m(1);
|
|
2781
2781
|
return;
|
|
2782
2782
|
}
|
|
2783
|
-
const X =
|
|
2783
|
+
const X = $o(Z, ut, a) || k === "area" ? { img: O ?? "none", scale: F } : { img: I ?? "none", scale: z };
|
|
2784
2784
|
d(X.img), m(X.scale);
|
|
2785
2785
|
}, E = ($) => {
|
|
2786
2786
|
$.stopPropagation(), C.current = { x: $.clientX, y: $.clientY }, g($.clientX, $.clientY);
|
|
@@ -2805,7 +2805,7 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2805
2805
|
b || (d("none"), m(0));
|
|
2806
2806
|
}, [b]);
|
|
2807
2807
|
const D = async (g, E, A, $ = {}) => {
|
|
2808
|
-
const { width:
|
|
2808
|
+
const { width: v, height: R, finalWidth: q } = await Oa(
|
|
2809
2809
|
g.image.url,
|
|
2810
2810
|
x,
|
|
2811
2811
|
V,
|
|
@@ -2813,7 +2813,7 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2813
2813
|
);
|
|
2814
2814
|
let ot = 0, Z = 0;
|
|
2815
2815
|
w === "same" ? (ot = E / 2, Z = A / 2) : (ot = $.x ?? Math.random() * E, Z = $.y ?? Math.random() * A);
|
|
2816
|
-
const ut = Math.min(Math.max(ot,
|
|
2816
|
+
const ut = Math.min(Math.max(ot, v / 2), E - v / 2), T = Math.min(Math.max(Z, R / 2), A - R / 2);
|
|
2817
2817
|
return {
|
|
2818
2818
|
id: p.current++,
|
|
2819
2819
|
url: g.image.url,
|
|
@@ -2840,21 +2840,21 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2840
2840
|
onClick: async (g) => {
|
|
2841
2841
|
if (!o) return;
|
|
2842
2842
|
const E = o.getBoundingClientRect(), A = g.clientX - E.left, $ = g.clientY - E.top;
|
|
2843
|
-
if (k === "image" &&
|
|
2844
|
-
let
|
|
2845
|
-
w === "on Click" ? (
|
|
2846
|
-
const q = e[c], ot = await D(q, E.width, E.height, { x:
|
|
2843
|
+
if (k === "image" && !$o(A, $, a)) return;
|
|
2844
|
+
let v = 0, R = 0;
|
|
2845
|
+
w === "on Click" ? (v = A, R = $) : w === "same" ? (v = E.width / 2, R = E.height / 2) : (v = Math.random() * E.width, R = Math.random() * E.height);
|
|
2846
|
+
const q = e[c], ot = await D(q, E.width, E.height, { x: v, y: R });
|
|
2847
2847
|
i((Z) => h === "all" ? [...Z, ot] : [ot]), l((Z) => Z >= e.length - 1 ? 0 : Z + 1);
|
|
2848
2848
|
},
|
|
2849
2849
|
onMouseEnter: () => f(!0),
|
|
2850
2850
|
onMouseLeave: () => f(!1),
|
|
2851
|
-
className:
|
|
2851
|
+
className: ue.imageRevealSlider,
|
|
2852
2852
|
style: { cursor: u === "none" ? "default" : "none" },
|
|
2853
2853
|
children: [
|
|
2854
2854
|
a.map((g) => /* @__PURE__ */ B(
|
|
2855
2855
|
"div",
|
|
2856
2856
|
{
|
|
2857
|
-
className:
|
|
2857
|
+
className: ue.wrapper,
|
|
2858
2858
|
style: {
|
|
2859
2859
|
top: `${g.y}px`,
|
|
2860
2860
|
left: `${g.x}px`,
|
|
@@ -2864,12 +2864,12 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2864
2864
|
height: "auto",
|
|
2865
2865
|
cursor: u === "none" ? "default" : "none"
|
|
2866
2866
|
},
|
|
2867
|
-
children: k === "area" && g.link ? /* @__PURE__ */ B("a", { href: g.link, target: "_blank", className:
|
|
2867
|
+
children: k === "area" && g.link ? /* @__PURE__ */ B("a", { href: g.link, target: "_blank", className: ue.link, children: /* @__PURE__ */ B(
|
|
2868
2868
|
"img",
|
|
2869
2869
|
{
|
|
2870
2870
|
src: g.url,
|
|
2871
2871
|
alt: g.name,
|
|
2872
|
-
className:
|
|
2872
|
+
className: ue.image
|
|
2873
2873
|
},
|
|
2874
2874
|
g.id
|
|
2875
2875
|
) }) : /* @__PURE__ */ B(
|
|
@@ -2877,7 +2877,7 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2877
2877
|
{
|
|
2878
2878
|
src: g.url,
|
|
2879
2879
|
alt: g.name,
|
|
2880
|
-
className:
|
|
2880
|
+
className: ue.image
|
|
2881
2881
|
},
|
|
2882
2882
|
g.id
|
|
2883
2883
|
)
|
|
@@ -2887,11 +2887,11 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2887
2887
|
b && /* @__PURE__ */ B(
|
|
2888
2888
|
"div",
|
|
2889
2889
|
{
|
|
2890
|
-
className:
|
|
2890
|
+
className: ue.cursor,
|
|
2891
2891
|
style: {
|
|
2892
2892
|
left: `${s.x}px`,
|
|
2893
2893
|
top: `${s.y}px`,
|
|
2894
|
-
transform: `translate(-50%, -50%) scale(${
|
|
2894
|
+
transform: `translate(-50%, -50%) scale(${y})`,
|
|
2895
2895
|
backgroundImage: `url('${u}')`,
|
|
2896
2896
|
backgroundSize: "cover",
|
|
2897
2897
|
backgroundPosition: "center",
|
|
@@ -2904,8 +2904,8 @@ function Ba({ settings: t, content: e, isEditor: n }) {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
);
|
|
2906
2906
|
}
|
|
2907
|
-
const
|
|
2908
|
-
element:
|
|
2907
|
+
const Na = {
|
|
2908
|
+
element: Pa,
|
|
2909
2909
|
id: "control-image-reveal",
|
|
2910
2910
|
name: "Click Gallery",
|
|
2911
2911
|
preview: {
|
|
@@ -3218,50 +3218,50 @@ const Oa = {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
}
|
|
3220
3220
|
}
|
|
3221
|
-
},
|
|
3222
|
-
hidden:
|
|
3223
|
-
heroImage:
|
|
3224
|
-
background:
|
|
3225
|
-
editor:
|
|
3226
|
-
contentStyle:
|
|
3227
|
-
imageStyle:
|
|
3228
|
-
imgWrapper:
|
|
3229
|
-
contain:
|
|
3230
|
-
cover:
|
|
3231
|
-
caption:
|
|
3232
|
-
captionTextInner:
|
|
3233
|
-
lightboxSplide:
|
|
3234
|
-
arrow:
|
|
3235
|
-
arrowVertical:
|
|
3236
|
-
nextArrow:
|
|
3237
|
-
arrowInner:
|
|
3238
|
-
arrowIcon:
|
|
3239
|
-
arrowImg:
|
|
3240
|
-
mirror:
|
|
3241
|
-
thumbsWrapper:
|
|
3242
|
-
thumbsContainerVertical:
|
|
3243
|
-
thumbsContainer:
|
|
3244
|
-
thumbsAlignStart:
|
|
3245
|
-
thumbsAlignCenter:
|
|
3246
|
-
thumbsAlignEnd:
|
|
3247
|
-
thumbItem:
|
|
3248
|
-
closeButton:
|
|
3249
|
-
fadeIn:
|
|
3250
|
-
slideInLeft:
|
|
3251
|
-
slideInRight:
|
|
3252
|
-
slideInTop:
|
|
3253
|
-
slideInBottom:
|
|
3254
|
-
fadeOut:
|
|
3255
|
-
slideOutLeft:
|
|
3256
|
-
slideOutRight:
|
|
3257
|
-
slideOutTop:
|
|
3258
|
-
slideOutBottom:
|
|
3259
|
-
scaleSlide:
|
|
3260
|
-
},
|
|
3221
|
+
}, Wa = "LightBox-module__hidden___9s-9x", za = "LightBox-module__heroImage___sTxNF", Ma = "LightBox-module__background___rm9ml", Va = "LightBox-module__editor___4ACaY", Ha = "LightBox-module__contentStyle___Bgnsq", Da = "LightBox-module__imageStyle___tLIlB", ja = "LightBox-module__imgWrapper___LuFUp", Ua = "LightBox-module__contain___8-yaS", Ya = "LightBox-module__cover___hNvOG", Ga = "LightBox-module__caption___b6L2I", qa = "LightBox-module__captionTextInner___rCGNH", Xa = "LightBox-module__lightboxSplide___XFuWC", Ka = "LightBox-module__arrow___iz38X", Ja = "LightBox-module__arrowVertical___Zfz81", Za = "LightBox-module__nextArrow___zkAQN", Qa = "LightBox-module__arrowInner___p48sW", tl = "LightBox-module__arrowIcon___3VaFf", el = "LightBox-module__arrowImg___pNV88", nl = "LightBox-module__mirror___pjeXc", ol = "LightBox-module__thumbsWrapper___GB-nU", rl = "LightBox-module__thumbsContainerVertical___wttk5", il = "LightBox-module__thumbsContainer___osSma", al = "LightBox-module__thumbsAlignStart___MO6tY", ll = "LightBox-module__thumbsAlignCenter___Q4sUx", sl = "LightBox-module__thumbsAlignEnd___p4y9R", cl = "LightBox-module__thumbItem___HvnF3", ul = "LightBox-module__closeButton___g2khP", pl = "LightBox-module__fadeIn___0m5GW", dl = "LightBox-module__slideInLeft___gPYwC", gl = "LightBox-module__slideInRight___S-pPp", ml = "LightBox-module__slideInTop___DFdAj", fl = "LightBox-module__slideInBottom___m27kZ", hl = "LightBox-module__fadeOut___55qBR", yl = "LightBox-module__slideOutLeft___NvU7P", vl = "LightBox-module__slideOutRight___SK7eC", bl = "LightBox-module__slideOutTop___Vgg0z", Sl = "LightBox-module__slideOutBottom___nJ0Ef", Cl = "LightBox-module__scaleSlide___vZriG", W = {
|
|
3222
|
+
hidden: Wa,
|
|
3223
|
+
heroImage: za,
|
|
3224
|
+
background: Ma,
|
|
3225
|
+
editor: Va,
|
|
3226
|
+
contentStyle: Ha,
|
|
3227
|
+
imageStyle: Da,
|
|
3228
|
+
imgWrapper: ja,
|
|
3229
|
+
contain: Ua,
|
|
3230
|
+
cover: Ya,
|
|
3231
|
+
caption: Ga,
|
|
3232
|
+
captionTextInner: qa,
|
|
3233
|
+
lightboxSplide: Xa,
|
|
3234
|
+
arrow: Ka,
|
|
3235
|
+
arrowVertical: Ja,
|
|
3236
|
+
nextArrow: Za,
|
|
3237
|
+
arrowInner: Qa,
|
|
3238
|
+
arrowIcon: tl,
|
|
3239
|
+
arrowImg: el,
|
|
3240
|
+
mirror: nl,
|
|
3241
|
+
thumbsWrapper: ol,
|
|
3242
|
+
thumbsContainerVertical: rl,
|
|
3243
|
+
thumbsContainer: il,
|
|
3244
|
+
thumbsAlignStart: al,
|
|
3245
|
+
thumbsAlignCenter: ll,
|
|
3246
|
+
thumbsAlignEnd: sl,
|
|
3247
|
+
thumbItem: cl,
|
|
3248
|
+
closeButton: ul,
|
|
3249
|
+
fadeIn: pl,
|
|
3250
|
+
slideInLeft: dl,
|
|
3251
|
+
slideInRight: gl,
|
|
3252
|
+
slideInTop: ml,
|
|
3253
|
+
slideInBottom: fl,
|
|
3254
|
+
fadeOut: hl,
|
|
3255
|
+
slideOutLeft: yl,
|
|
3256
|
+
slideOutRight: vl,
|
|
3257
|
+
slideOutTop: bl,
|
|
3258
|
+
slideOutBottom: Sl,
|
|
3259
|
+
scaleSlide: Cl
|
|
3260
|
+
}, Ge = (t, e, n) => {
|
|
3261
3261
|
const o = {}, [r, a] = t.split("-");
|
|
3262
3262
|
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"), a === "left" ? (o.left = "0", o.right = "auto") : a === "center" ? (o.left = "50%", o.right = "auto") : a === "right" && (o.left = "auto", o.right = "0"), r === "middle" && a === "center" ? o.transform = `translate(calc(-50% + ${P(e.x, n)}), calc(-50% + ${P(e.y, n)}))` : r === "middle" ? o.transform = `translate(${P(e.x, n)}, calc(-50% + ${P(e.y, n)}))` : a === "center" ? o.transform = `translate(calc(-50% + ${P(e.x, n)}), ${P(e.y, n)})` : o.transform = `translate(${P(e.x, n)}, ${P(e.y, n)})`, o;
|
|
3263
3263
|
};
|
|
3264
|
-
function
|
|
3264
|
+
function fr(t) {
|
|
3265
3265
|
const e = window.getComputedStyle(t);
|
|
3266
3266
|
return {
|
|
3267
3267
|
top: parseFloat(e.paddingTop) || 0,
|
|
@@ -3270,11 +3270,11 @@ function gr(t) {
|
|
|
3270
3270
|
left: parseFloat(e.paddingLeft) || 0
|
|
3271
3271
|
};
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3274
|
-
const e = t.getBoundingClientRect(), n =
|
|
3273
|
+
function _o(t) {
|
|
3274
|
+
const e = t.getBoundingClientRect(), n = fr(t), o = Math.max(0, e.width - n.left - n.right), r = Math.max(0, e.height - n.top - n.bottom), a = t.naturalWidth, i = t.naturalHeight, c = o / r, l = a / i;
|
|
3275
3275
|
let p, s;
|
|
3276
3276
|
l > c ? (p = o, s = o / l) : (s = r, p = r * l);
|
|
3277
|
-
const _ = e.left + n.left,
|
|
3277
|
+
const _ = e.left + n.left, y = e.top + n.top, m = (o - p) / 2 + _, u = (r - s) / 2 + y;
|
|
3278
3278
|
return {
|
|
3279
3279
|
x: m,
|
|
3280
3280
|
y: u,
|
|
@@ -3282,8 +3282,8 @@ function xo(t) {
|
|
|
3282
3282
|
height: s
|
|
3283
3283
|
};
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3286
|
-
const e = t.getBoundingClientRect(), n =
|
|
3285
|
+
function wo(t) {
|
|
3286
|
+
const e = t.getBoundingClientRect(), n = fr(t);
|
|
3287
3287
|
return {
|
|
3288
3288
|
left: e.left + n.left,
|
|
3289
3289
|
right: e.right - n.right,
|
|
@@ -3291,7 +3291,7 @@ function $o(t) {
|
|
|
3291
3291
|
bottom: e.bottom - n.bottom
|
|
3292
3292
|
};
|
|
3293
3293
|
}
|
|
3294
|
-
function
|
|
3294
|
+
function To(t) {
|
|
3295
3295
|
const e = t.match(/rgba?\(([^)]+)\)/);
|
|
3296
3296
|
if (e) {
|
|
3297
3297
|
const o = e[1].split(",").map((r) => parseFloat(r.trim()));
|
|
@@ -3304,7 +3304,7 @@ function _o(t) {
|
|
|
3304
3304
|
}
|
|
3305
3305
|
return t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/), 1;
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function xl(t, e) {
|
|
3308
3308
|
const n = (() => {
|
|
3309
3309
|
if (t === "fade in") return W.fadeIn;
|
|
3310
3310
|
if (t === "slide in" || t === "mix")
|
|
@@ -3372,11 +3372,11 @@ function Sl(t, e) {
|
|
|
3372
3372
|
})();
|
|
3373
3373
|
return { appearClass: n, backdropAppearClass: o, backdropDisappearClass: r, disappearClass: a };
|
|
3374
3374
|
}
|
|
3375
|
-
const
|
|
3375
|
+
const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, isEditor: a }) => {
|
|
3376
3376
|
const [i, c] = it(!1), { url: l } = t.thumbnailBlock.cover;
|
|
3377
3377
|
return bt(() => {
|
|
3378
3378
|
r === "close" && c(!1), r === "open" && c(!0);
|
|
3379
|
-
}, [r]), /* @__PURE__ */ St(
|
|
3379
|
+
}, [r]), /* @__PURE__ */ St(Ae, { children: [
|
|
3380
3380
|
/* @__PURE__ */ B(
|
|
3381
3381
|
"img",
|
|
3382
3382
|
{
|
|
@@ -3387,7 +3387,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3387
3387
|
}
|
|
3388
3388
|
),
|
|
3389
3389
|
/* @__PURE__ */ B(
|
|
3390
|
-
|
|
3390
|
+
_l,
|
|
3391
3391
|
{
|
|
3392
3392
|
isOpen: i,
|
|
3393
3393
|
onClose: () => c(!1),
|
|
@@ -3399,9 +3399,9 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3399
3399
|
}
|
|
3400
3400
|
)
|
|
3401
3401
|
] });
|
|
3402
|
-
},
|
|
3402
|
+
}, _l = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
|
|
3403
3403
|
var M;
|
|
3404
|
-
const [l, p] = it(0), [s, _] = it(0), [
|
|
3404
|
+
const [l, p] = it(0), [s, _] = it(0), [y, m] = it(!1), [u, d] = it(!1), [C, b] = it({}), f = Tt(null), x = Tt(null), V = Tt(null), N = Tt(!1), w = Tt(null), h = Tt(null), L = Tt(null), k = Tt(null), z = Tt(!1), I = Tt(null), [F, O] = it(!1), { appear: D, triggers: j, slider: g, thumbnail: E, controls: A, area: $, caption: v, layout: R } = r.lightboxBlock, { appearClass: q, backdropAppearClass: ot, backdropDisappearClass: Z, disappearClass: ut } = xl(D.type, D.direction), T = (c == null ? void 0 : c.itemId) ?? null;
|
|
3405
3405
|
bt(() => {
|
|
3406
3406
|
const S = () => {
|
|
3407
3407
|
setTimeout(() => {
|
|
@@ -3428,22 +3428,22 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3428
3428
|
const Y = new ResizeObserver(H);
|
|
3429
3429
|
return Y.observe(S), () => Y.disconnect();
|
|
3430
3430
|
}, [t, E.isActive, n.length, C, g.direction]);
|
|
3431
|
-
const X =
|
|
3432
|
-
const S = window.matchMedia("(max-width: 768px)").matches, H =
|
|
3431
|
+
const X = Cr(() => {
|
|
3432
|
+
const S = window.matchMedia("(max-width: 768px)").matches, H = To($.color);
|
|
3433
3433
|
S && !i && H > 0.9 && (document.body.style.backgroundColor = ""), m(!0), N.current = !0;
|
|
3434
3434
|
const Y = (K) => {
|
|
3435
3435
|
K.target === w.current && K.animationName && (w.current && h.current && w.current.removeEventListener("animationend", h.current), h.current = null, N.current && (N.current = !1, e()), m(!1));
|
|
3436
3436
|
};
|
|
3437
3437
|
w.current && (h.current = Y, w.current.addEventListener("animationend", Y));
|
|
3438
|
-
}, [e, $.color, i]),
|
|
3438
|
+
}, [e, $.color, i]), ft = (S, H, Y) => {
|
|
3439
3439
|
var K, nt;
|
|
3440
3440
|
if (S) {
|
|
3441
3441
|
if (j.type === "click" && j.switch === "image")
|
|
3442
3442
|
j.repeat === "close" && l === n.length - 1 ? X() : (K = f.current) == null || K.go("+1");
|
|
3443
3443
|
else if (j.type === "click" && j.switch === "50/50") {
|
|
3444
|
-
const Q = S.getBoundingClientRect(), G = H - Q.left, et = Y - Q.top,
|
|
3444
|
+
const Q = S.getBoundingClientRect(), G = H - Q.left, et = Y - Q.top, vt = Q.width, lt = Q.height;
|
|
3445
3445
|
let pt;
|
|
3446
|
-
g.direction === "horiz" ? pt = G <
|
|
3446
|
+
g.direction === "horiz" ? pt = G < vt / 2 ? "-1" : "+1" : pt = et < lt / 2 ? "-1" : "+1", (nt = f.current) == null || nt.go(pt);
|
|
3447
3447
|
}
|
|
3448
3448
|
}
|
|
3449
3449
|
}, rt = (S) => {
|
|
@@ -3461,17 +3461,17 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3461
3461
|
return;
|
|
3462
3462
|
let Q;
|
|
3463
3463
|
if (Y && V.current) {
|
|
3464
|
-
const G =
|
|
3464
|
+
const G = wo(V.current);
|
|
3465
3465
|
Q = K >= G.left && K <= G.right && nt >= G.top && nt <= G.bottom;
|
|
3466
3466
|
} else {
|
|
3467
|
-
const G = V.current ?
|
|
3467
|
+
const G = V.current ? _o(V.current) : null;
|
|
3468
3468
|
if (!G) {
|
|
3469
3469
|
S.target === S.currentTarget && X();
|
|
3470
3470
|
return;
|
|
3471
3471
|
}
|
|
3472
3472
|
Q = K >= G.x && K <= G.x + G.width && nt >= G.y && nt <= G.y + G.height;
|
|
3473
3473
|
}
|
|
3474
|
-
Q ?
|
|
3474
|
+
Q ? ft(V.current, K, nt) : X();
|
|
3475
3475
|
}, mt = (S) => {
|
|
3476
3476
|
const H = S.target;
|
|
3477
3477
|
(H.classList.contains(W.thumbsWrapper) || H.classList.contains(W.thumbsContainer)) && rt(S);
|
|
@@ -3506,7 +3506,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3506
3506
|
x.current !== null && x.current !== g.type && _((S) => S + 1), x.current = g.type;
|
|
3507
3507
|
}, [g.type]), bt(() => {
|
|
3508
3508
|
if (!t) return;
|
|
3509
|
-
const S = document.body.style.overflow, H = window.matchMedia("(max-width: 768px)").matches, Y =
|
|
3509
|
+
const S = document.body.style.overflow, H = window.matchMedia("(max-width: 768px)").matches, Y = To($.color);
|
|
3510
3510
|
document.body.style.overflow = "hidden", d(!1);
|
|
3511
3511
|
const K = (Q) => {
|
|
3512
3512
|
Q.target === w.current && !N.current && Q.animationName && (H && !i && Y > 0.9 && (document.body.style.backgroundColor = $.color), d(!0), w.current && L.current && w.current.removeEventListener("animationend", L.current), L.current = null);
|
|
@@ -3540,16 +3540,16 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3540
3540
|
}
|
|
3541
3541
|
if (H.touches.length === 0 && H.changedTouches.length > 0) {
|
|
3542
3542
|
const Q = n[l], G = (Q == null ? void 0 : Q.image.objectFit) === "cover", et = H.changedTouches[0];
|
|
3543
|
-
let
|
|
3543
|
+
let vt;
|
|
3544
3544
|
if (G && V.current) {
|
|
3545
|
-
const lt =
|
|
3546
|
-
|
|
3545
|
+
const lt = wo(V.current);
|
|
3546
|
+
vt = et.clientX >= lt.left && et.clientX <= lt.right && et.clientY >= lt.top && et.clientY <= lt.bottom;
|
|
3547
3547
|
} else {
|
|
3548
|
-
const lt = V.current ?
|
|
3548
|
+
const lt = V.current ? _o(V.current) : null;
|
|
3549
3549
|
if (!lt) return;
|
|
3550
|
-
|
|
3550
|
+
vt = et.clientX >= lt.x && et.clientX <= lt.x + lt.width && et.clientY >= lt.y && et.clientY <= lt.y + lt.height;
|
|
3551
3551
|
}
|
|
3552
|
-
if (!
|
|
3552
|
+
if (!vt) {
|
|
3553
3553
|
H.stopPropagation(), N.current = !0;
|
|
3554
3554
|
const lt = (pt) => {
|
|
3555
3555
|
pt.stopPropagation(), pt.preventDefault(), document.removeEventListener("click", lt, !0);
|
|
@@ -3593,13 +3593,13 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3593
3593
|
}
|
|
3594
3594
|
document.removeEventListener("touchend", et), document.removeEventListener("touchcancel", et), document.removeEventListener("touchmove", nt);
|
|
3595
3595
|
}
|
|
3596
|
-
},
|
|
3596
|
+
}, vt = (tt) => {
|
|
3597
3597
|
k.current = { x: tt.clientX, y: tt.clientY }, z.current = !1, document.addEventListener("pointermove", K, { passive: !1 }), document.addEventListener("pointerup", G), document.addEventListener("pointercancel", G);
|
|
3598
3598
|
}, lt = (tt) => {
|
|
3599
3599
|
tt.touches.length > 0 && (k.current = { x: tt.touches[0].clientX, y: tt.touches[0].clientY }, z.current = !1, document.addEventListener("touchmove", nt, { passive: !1 }), document.addEventListener("touchend", et), document.addEventListener("touchcancel", et));
|
|
3600
3600
|
};
|
|
3601
|
-
return S.addEventListener("pointerdown",
|
|
3602
|
-
S.removeEventListener("pointerdown",
|
|
3601
|
+
return S.addEventListener("pointerdown", vt), S.addEventListener("touchstart", lt), () => {
|
|
3602
|
+
S.removeEventListener("pointerdown", vt), S.removeEventListener("touchstart", lt), document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", G), document.removeEventListener("pointercancel", G), document.removeEventListener("touchmove", nt), document.removeEventListener("touchend", et), document.removeEventListener("touchcancel", et), k.current = null, z.current = !1;
|
|
3603
3603
|
};
|
|
3604
3604
|
}, [t, Ct, s]);
|
|
3605
3605
|
const Ut = {
|
|
@@ -3609,16 +3609,16 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3609
3609
|
animationTimingFunction: "ease",
|
|
3610
3610
|
animationFillMode: "both"
|
|
3611
3611
|
};
|
|
3612
|
-
return typeof document > "u" || !document.getElementById(a) ? null :
|
|
3613
|
-
/* @__PURE__ */ St(
|
|
3612
|
+
return typeof document > "u" || !document.getElementById(a) ? null : xr(
|
|
3613
|
+
/* @__PURE__ */ St(Ae, { children: [
|
|
3614
3614
|
/* @__PURE__ */ B(
|
|
3615
3615
|
"div",
|
|
3616
3616
|
{
|
|
3617
3617
|
ref: i ? null : w,
|
|
3618
|
-
className: dt(W.background,
|
|
3618
|
+
className: dt(W.background, y ? Z : ot, { [W.editor]: i }, { [W.hidden]: !t }),
|
|
3619
3619
|
style: {
|
|
3620
3620
|
...Ut,
|
|
3621
|
-
...u && !i && !
|
|
3621
|
+
...u && !i && !y ? { position: "absolute" } : {}
|
|
3622
3622
|
}
|
|
3623
3623
|
}
|
|
3624
3624
|
),
|
|
@@ -3626,7 +3626,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3626
3626
|
"div",
|
|
3627
3627
|
{
|
|
3628
3628
|
ref: i ? w : null,
|
|
3629
|
-
className: dt(W.contentStyle,
|
|
3629
|
+
className: dt(W.contentStyle, y ? ut : q, { [W.editor]: i }, { [W.hidden]: !t }),
|
|
3630
3630
|
style: {
|
|
3631
3631
|
animationDuration: `${parseInt(D.duration)}ms`,
|
|
3632
3632
|
animationTimingFunction: "ease",
|
|
@@ -3634,7 +3634,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3634
3634
|
},
|
|
3635
3635
|
children: [
|
|
3636
3636
|
/* @__PURE__ */ B(
|
|
3637
|
-
|
|
3637
|
+
dr,
|
|
3638
3638
|
{
|
|
3639
3639
|
onMove: (S) => p(S.index),
|
|
3640
3640
|
ref: f,
|
|
@@ -3656,7 +3656,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3656
3656
|
},
|
|
3657
3657
|
style: { "--splide-speed": g.duration },
|
|
3658
3658
|
children: n.map((S, H) => {
|
|
3659
|
-
const Y =
|
|
3659
|
+
const Y = Ge(R.position, R.offset, i), K = `${P(R.padding.top, i)} ${P(R.padding.right, i)} ${P(R.padding.bottom, i)} ${P(R.padding.left, i)}`, nt = g.type === "scale" ? (() => {
|
|
3660
3660
|
const { transform: Q, ...G } = Y;
|
|
3661
3661
|
return {
|
|
3662
3662
|
...G,
|
|
@@ -3666,7 +3666,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3666
3666
|
"--position-transform": Q || "none"
|
|
3667
3667
|
};
|
|
3668
3668
|
})() : { ...Y, position: "absolute", padding: K, boxSizing: "border-box" };
|
|
3669
|
-
return /* @__PURE__ */ B(
|
|
3669
|
+
return /* @__PURE__ */ B(gr, { children: /* @__PURE__ */ B("div", { className: W.imgWrapper, onClick: rt, children: /* @__PURE__ */ B(
|
|
3670
3670
|
"img",
|
|
3671
3671
|
{
|
|
3672
3672
|
ref: H === l ? V : null,
|
|
@@ -3684,7 +3684,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3684
3684
|
},
|
|
3685
3685
|
s
|
|
3686
3686
|
),
|
|
3687
|
-
A.isActive && /* @__PURE__ */ St(
|
|
3687
|
+
A.isActive && /* @__PURE__ */ St(Ae, { children: [
|
|
3688
3688
|
/* @__PURE__ */ B(
|
|
3689
3689
|
"div",
|
|
3690
3690
|
{
|
|
@@ -3702,7 +3702,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3702
3702
|
"aria-label": "Previous",
|
|
3703
3703
|
children: [
|
|
3704
3704
|
A.arrowsImgUrl && /* @__PURE__ */ B(
|
|
3705
|
-
|
|
3705
|
+
he,
|
|
3706
3706
|
{
|
|
3707
3707
|
url: A.arrowsImgUrl,
|
|
3708
3708
|
fill: A.color,
|
|
@@ -3710,7 +3710,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3710
3710
|
className: dt(W.arrowImg, W.mirror)
|
|
3711
3711
|
}
|
|
3712
3712
|
),
|
|
3713
|
-
!A.arrowsImgUrl && /* @__PURE__ */ B(
|
|
3713
|
+
!A.arrowsImgUrl && /* @__PURE__ */ B(Lo, { color: A.color, className: dt(W.arrowIcon, W.arrowImg, W.mirror) })
|
|
3714
3714
|
]
|
|
3715
3715
|
}
|
|
3716
3716
|
)
|
|
@@ -3733,7 +3733,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3733
3733
|
"aria-label": "Next",
|
|
3734
3734
|
children: [
|
|
3735
3735
|
A.arrowsImgUrl && /* @__PURE__ */ B(
|
|
3736
|
-
|
|
3736
|
+
he,
|
|
3737
3737
|
{
|
|
3738
3738
|
url: A.arrowsImgUrl,
|
|
3739
3739
|
fill: A.color,
|
|
@@ -3741,7 +3741,7 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3741
3741
|
className: W.arrowImg
|
|
3742
3742
|
}
|
|
3743
3743
|
),
|
|
3744
|
-
!A.arrowsImgUrl && /* @__PURE__ */ B(
|
|
3744
|
+
!A.arrowsImgUrl && /* @__PURE__ */ B(Lo, { color: A.color, className: dt(W.arrowIcon, W.arrowImg) })
|
|
3745
3745
|
]
|
|
3746
3746
|
}
|
|
3747
3747
|
)
|
|
@@ -3749,17 +3749,17 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3749
3749
|
)
|
|
3750
3750
|
] }),
|
|
3751
3751
|
$.closeIconUrl && (() => {
|
|
3752
|
-
const S =
|
|
3753
|
-
return /* @__PURE__ */ B("button", { className: W.closeButton, style: { ...S, transform: Y }, onClick: X, "aria-label": "Close lightbox", children: /* @__PURE__ */ B(
|
|
3752
|
+
const S = Ge($.closeIconAlign, $.closeIconOffset, i), H = `scale(${$.closeIconScale})`, Y = S.transform ? `${S.transform} ${H}` : H;
|
|
3753
|
+
return /* @__PURE__ */ B("button", { className: W.closeButton, style: { ...S, transform: Y }, onClick: X, "aria-label": "Close lightbox", children: /* @__PURE__ */ B(he, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
|
|
3754
3754
|
})(),
|
|
3755
|
-
|
|
3755
|
+
v && v.isActive && o.imageCaption && ((M = n[l]) == null ? void 0 : M.imageCaption) && (() => {
|
|
3756
3756
|
const { widthSettings: S, fontSettings: H, letterSpacing: Y, textAlign: K, wordSpacing: nt, fontSizeLineHeight: Q, textAppearance: G, color: et } = o.imageCaption;
|
|
3757
3757
|
return /* @__PURE__ */ B(
|
|
3758
3758
|
"div",
|
|
3759
3759
|
{
|
|
3760
3760
|
className: W.caption,
|
|
3761
3761
|
style: {
|
|
3762
|
-
...
|
|
3762
|
+
...Ge(v.alignment, v.offset, i),
|
|
3763
3763
|
fontFamily: H.fontFamily,
|
|
3764
3764
|
fontWeight: H.fontWeight,
|
|
3765
3765
|
fontStyle: H.fontStyle,
|
|
@@ -3774,24 +3774,24 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3774
3774
|
fontVariant: G.fontVariant ?? "normal",
|
|
3775
3775
|
color: et
|
|
3776
3776
|
},
|
|
3777
|
-
onClick: (
|
|
3777
|
+
onClick: (vt) => vt.stopPropagation(),
|
|
3778
3778
|
children: /* @__PURE__ */ B(
|
|
3779
3779
|
"div",
|
|
3780
3780
|
{
|
|
3781
3781
|
"data-styles": "imageCaption",
|
|
3782
3782
|
className: W.captionTextInner,
|
|
3783
3783
|
style: {
|
|
3784
|
-
"--link-color":
|
|
3785
|
-
"--link-hover-color":
|
|
3784
|
+
"--link-color": v.linkColor,
|
|
3785
|
+
"--link-hover-color": v.linkHoverColor
|
|
3786
3786
|
},
|
|
3787
|
-
children: /* @__PURE__ */ B(
|
|
3787
|
+
children: /* @__PURE__ */ B(mr, { content: n[l].imageCaption })
|
|
3788
3788
|
}
|
|
3789
3789
|
)
|
|
3790
3790
|
}
|
|
3791
3791
|
);
|
|
3792
3792
|
})(),
|
|
3793
3793
|
E.isActive && (() => {
|
|
3794
|
-
const [S, H] = E.position.split("-"), Y = g.direction === "horiz" ? `${S}-left` : E.position, K =
|
|
3794
|
+
const [S, H] = E.position.split("-"), Y = g.direction === "horiz" ? `${S}-left` : E.position, K = Ge(Y, E.offset, i), nt = () => {
|
|
3795
3795
|
if (g.direction === "horiz") {
|
|
3796
3796
|
if (H === "left") return "flex-start";
|
|
3797
3797
|
if (H === "center") return "center";
|
|
@@ -3837,11 +3837,11 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3837
3837
|
justifyContent: F ? "flex-start" : nt()
|
|
3838
3838
|
},
|
|
3839
3839
|
children: n.map((Q, G) => {
|
|
3840
|
-
const et = G === l,
|
|
3840
|
+
const et = G === l, vt = C[G], pt = E.grid.size * (et ? E.activeState.scale : 1), Bt = () => {
|
|
3841
3841
|
if (E.fit !== "fit") return {};
|
|
3842
|
-
if (!
|
|
3842
|
+
if (!vt)
|
|
3843
3843
|
return g.direction === "horiz" ? { height: P(pt, i) } : { width: P(pt, i) };
|
|
3844
|
-
const tt =
|
|
3844
|
+
const tt = vt.width / vt.height;
|
|
3845
3845
|
if (g.direction === "horiz") {
|
|
3846
3846
|
const st = pt, _t = st * tt;
|
|
3847
3847
|
return {
|
|
@@ -3912,11 +3912,11 @@ const Cl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
|
|
|
3912
3912
|
document.getElementById(a)
|
|
3913
3913
|
);
|
|
3914
3914
|
};
|
|
3915
|
-
function
|
|
3915
|
+
function Lo({ color: t, className: e }) {
|
|
3916
3916
|
return /* @__PURE__ */ B("svg", { viewBox: "0 0 10 18", className: e, children: /* @__PURE__ */ B("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ B("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: t, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3917
3917
|
}
|
|
3918
|
-
const
|
|
3919
|
-
element:
|
|
3918
|
+
const wl = {
|
|
3919
|
+
element: $l,
|
|
3920
3920
|
id: "lightbox",
|
|
3921
3921
|
name: "Lightbox",
|
|
3922
3922
|
preview: {
|
|
@@ -4986,7 +4986,7 @@ const $l = {
|
|
|
4986
4986
|
required: ["settings", "content", "styles"]
|
|
4987
4987
|
}
|
|
4988
4988
|
};
|
|
4989
|
-
function
|
|
4989
|
+
function ne(t, e) {
|
|
4990
4990
|
var n, o, r;
|
|
4991
4991
|
return {
|
|
4992
4992
|
fontFamily: t.fontSettings.fontFamily,
|
|
@@ -5002,16 +5002,16 @@ function oe(t, e) {
|
|
|
5002
5002
|
color: t.color
|
|
5003
5003
|
};
|
|
5004
5004
|
}
|
|
5005
|
-
function
|
|
5005
|
+
function qe(t) {
|
|
5006
5006
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
5007
5007
|
}
|
|
5008
|
-
function
|
|
5008
|
+
function Tl(t) {
|
|
5009
5009
|
return `
|
|
5010
5010
|
.${t}-wrapper {
|
|
5011
5011
|
display: flex;
|
|
5012
5012
|
flex-direction: column;
|
|
5013
5013
|
width: 100%;
|
|
5014
|
-
min-height: ${
|
|
5014
|
+
min-height: ${qe(48)};
|
|
5015
5015
|
}
|
|
5016
5016
|
.${t}-wrapper.${t}-type-C .${t}-input:focus-visible,
|
|
5017
5017
|
.${t}-wrapper.${t}-type-C .${t}-button:focus-visible {
|
|
@@ -5035,7 +5035,7 @@ function _l(t) {
|
|
|
5035
5035
|
min-width: 0;
|
|
5036
5036
|
}
|
|
5037
5037
|
.${t}-field-group.${t}-labeled {
|
|
5038
|
-
gap: ${
|
|
5038
|
+
gap: ${qe(4)};
|
|
5039
5039
|
}
|
|
5040
5040
|
.${t}-field-label {
|
|
5041
5041
|
white-space: nowrap;
|
|
@@ -5126,11 +5126,11 @@ function _l(t) {
|
|
|
5126
5126
|
outline: none;
|
|
5127
5127
|
}
|
|
5128
5128
|
.${t}-success {
|
|
5129
|
-
margin-top: ${
|
|
5129
|
+
margin-top: ${qe(8)};
|
|
5130
5130
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
5131
5131
|
}
|
|
5132
5132
|
.${t}-error {
|
|
5133
|
-
margin-top: ${
|
|
5133
|
+
margin-top: ${qe(8)};
|
|
5134
5134
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
5135
5135
|
}
|
|
5136
5136
|
.${t}-overlay-anchor {
|
|
@@ -5139,8 +5139,8 @@ function _l(t) {
|
|
|
5139
5139
|
}
|
|
5140
5140
|
`;
|
|
5141
5141
|
}
|
|
5142
|
-
function
|
|
5143
|
-
const { prefix: r } =
|
|
5142
|
+
function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
5143
|
+
const { prefix: r } = Eo(), {
|
|
5144
5144
|
type: a = "A",
|
|
5145
5145
|
fieldsToShow: i = 2,
|
|
5146
5146
|
fields: c = [],
|
|
@@ -5148,7 +5148,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5148
5148
|
gap: p,
|
|
5149
5149
|
fieldsGap: s,
|
|
5150
5150
|
buttonCorners: _,
|
|
5151
|
-
buttonStroke:
|
|
5151
|
+
buttonStroke: y,
|
|
5152
5152
|
buttonPadding: m,
|
|
5153
5153
|
isButtonFullWidth: u,
|
|
5154
5154
|
inputCorners: d,
|
|
@@ -5172,7 +5172,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5172
5172
|
inputWordSpacing: E,
|
|
5173
5173
|
inputTextAppearance: A,
|
|
5174
5174
|
buttonFontSettings: $,
|
|
5175
|
-
buttonFontSize:
|
|
5175
|
+
buttonFontSize: v,
|
|
5176
5176
|
buttonLineHeight: R,
|
|
5177
5177
|
buttonLetterSpacing: q,
|
|
5178
5178
|
buttonWordSpacing: ot,
|
|
@@ -5180,7 +5180,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5180
5180
|
labelFontSettings: ut,
|
|
5181
5181
|
labelFontSize: T,
|
|
5182
5182
|
labelLineHeight: X,
|
|
5183
|
-
labelLetterSpacing:
|
|
5183
|
+
labelLetterSpacing: ft,
|
|
5184
5184
|
labelWordSpacing: rt,
|
|
5185
5185
|
labelTextAppearance: mt,
|
|
5186
5186
|
statusFontSettings: Ct,
|
|
@@ -5192,7 +5192,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5192
5192
|
successMessage: K,
|
|
5193
5193
|
errorMessage: nt,
|
|
5194
5194
|
stateOverrides: Q
|
|
5195
|
-
} = t, G = a === "B", et = c.slice(0, Math.min(i, c.length)),
|
|
5195
|
+
} = t, G = a === "B", et = c.slice(0, Math.min(i, c.length)), vt = {
|
|
5196
5196
|
fontSettings: {
|
|
5197
5197
|
fontFamily: F,
|
|
5198
5198
|
fontWeight: (O == null ? void 0 : O.fontWeight) ?? 400,
|
|
@@ -5204,7 +5204,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5204
5204
|
wordSpacing: E ?? 0,
|
|
5205
5205
|
textAppearance: A,
|
|
5206
5206
|
color: x
|
|
5207
|
-
}, lt =
|
|
5207
|
+
}, lt = ne(vt, e), pt = P(C ?? 0, e), Bt = {
|
|
5208
5208
|
...lt,
|
|
5209
5209
|
borderStyle: "solid",
|
|
5210
5210
|
borderRadius: a === "C" ? 0 : P(d ?? 0, e),
|
|
@@ -5224,13 +5224,13 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5224
5224
|
fontWeight: ($ == null ? void 0 : $.fontWeight) ?? 400,
|
|
5225
5225
|
fontStyle: ($ == null ? void 0 : $.fontStyle) ?? "normal"
|
|
5226
5226
|
},
|
|
5227
|
-
fontSize:
|
|
5227
|
+
fontSize: v ?? 0.01,
|
|
5228
5228
|
lineHeight: R,
|
|
5229
5229
|
letterSpacing: q ?? 0,
|
|
5230
5230
|
wordSpacing: ot ?? 0,
|
|
5231
5231
|
textAppearance: Z,
|
|
5232
5232
|
color: h
|
|
5233
|
-
}, st =
|
|
5233
|
+
}, st = ne(tt, e), _t = P(y ?? 0, e), Yt = {
|
|
5234
5234
|
fontSettings: {
|
|
5235
5235
|
fontFamily: F,
|
|
5236
5236
|
fontWeight: (ut == null ? void 0 : ut.fontWeight) ?? 400,
|
|
@@ -5238,11 +5238,11 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5238
5238
|
},
|
|
5239
5239
|
fontSize: T ?? 0.01,
|
|
5240
5240
|
lineHeight: X,
|
|
5241
|
-
letterSpacing:
|
|
5241
|
+
letterSpacing: ft ?? 0,
|
|
5242
5242
|
wordSpacing: rt ?? 0,
|
|
5243
5243
|
textAppearance: mt,
|
|
5244
5244
|
color: k
|
|
5245
|
-
},
|
|
5245
|
+
}, $e = ne(Yt, e), bn = {
|
|
5246
5246
|
fontSettings: {
|
|
5247
5247
|
fontFamily: F,
|
|
5248
5248
|
fontWeight: (Ct == null ? void 0 : Ct.fontWeight) ?? 400,
|
|
@@ -5254,7 +5254,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5254
5254
|
wordSpacing: H ?? 0,
|
|
5255
5255
|
textAppearance: Y,
|
|
5256
5256
|
color: z
|
|
5257
|
-
},
|
|
5257
|
+
}, ht = ne(bn, e), { color: _e, ...le } = ht, wt = Ao(r, {
|
|
5258
5258
|
inputColor: f,
|
|
5259
5259
|
inputTextColor: x,
|
|
5260
5260
|
inputBorderColor: V,
|
|
@@ -5265,50 +5265,50 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5265
5265
|
labelTextColor: k,
|
|
5266
5266
|
successColor: z,
|
|
5267
5267
|
errorColor: I
|
|
5268
|
-
},
|
|
5268
|
+
}, El, Al, Q), [Ot, no] = it(
|
|
5269
5269
|
() => Object.fromEntries(et.map((ct) => [ct.name, ""]))
|
|
5270
|
-
), [
|
|
5271
|
-
|
|
5272
|
-
},
|
|
5270
|
+
), [oo, we] = it("idle"), [hr, Ue] = it(null), Sn = o === "success" ? "success" : o === "error" ? "error" : oo, yr = o === "error" ? nt : hr, Te = o === "filled" ? Object.fromEntries(et.map((ct) => [ct.name, "Filled"])) : Ot, vr = Sn === "error" ? en(et, Te) : null, br = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), ro = n == null ? void 0 : n.submitUrl, io = (ct, se) => {
|
|
5271
|
+
no((Gt) => ({ ...Gt, [ct]: se }));
|
|
5272
|
+
}, Sr = async (ct) => {
|
|
5273
5273
|
ct.preventDefault();
|
|
5274
|
-
const
|
|
5274
|
+
const se = Object.fromEntries(
|
|
5275
5275
|
et.map((It) => {
|
|
5276
|
-
var
|
|
5277
|
-
return [It.name, ((
|
|
5276
|
+
var ce;
|
|
5277
|
+
return [It.name, ((ce = Ot[It.name]) == null ? void 0 : ce.trim()) ?? ""];
|
|
5278
5278
|
}).filter(([, It]) => It)
|
|
5279
5279
|
);
|
|
5280
|
-
if (!
|
|
5281
|
-
|
|
5280
|
+
if (!ro) {
|
|
5281
|
+
we("error"), Ue("No integrations were found for this form.");
|
|
5282
5282
|
return;
|
|
5283
5283
|
}
|
|
5284
|
-
if (Object.keys(
|
|
5285
|
-
const Gt =
|
|
5284
|
+
if (Object.keys(se).length === 0) return;
|
|
5285
|
+
const Gt = en(et, Ot);
|
|
5286
5286
|
if (Gt) {
|
|
5287
|
-
|
|
5287
|
+
we("error"), Ue(Gt);
|
|
5288
5288
|
return;
|
|
5289
5289
|
}
|
|
5290
|
-
|
|
5290
|
+
we("submitting"), Ue(null);
|
|
5291
5291
|
try {
|
|
5292
|
-
const It = await fetch(
|
|
5292
|
+
const It = await fetch(ro, {
|
|
5293
5293
|
method: "POST",
|
|
5294
5294
|
headers: { "Content-Type": "application/json" },
|
|
5295
|
-
body: JSON.stringify(
|
|
5295
|
+
body: JSON.stringify(se)
|
|
5296
5296
|
});
|
|
5297
5297
|
if (!It.ok) {
|
|
5298
|
-
const
|
|
5299
|
-
throw new Error(
|
|
5298
|
+
const ce = await It.text();
|
|
5299
|
+
throw new Error(ce || `Request failed: ${It.status}`);
|
|
5300
5300
|
}
|
|
5301
|
-
|
|
5301
|
+
we("success"), no(Object.fromEntries(et.map((ce) => [ce.name, ""])));
|
|
5302
5302
|
} catch (It) {
|
|
5303
|
-
|
|
5303
|
+
we("error"), Ue(It instanceof Error ? It.message : "Something went wrong");
|
|
5304
5304
|
}
|
|
5305
5305
|
};
|
|
5306
|
-
return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${
|
|
5307
|
-
/* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html:
|
|
5306
|
+
return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${br}`.trim(), style: wt, children: [
|
|
5307
|
+
/* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Tl(r) } }),
|
|
5308
5308
|
/* @__PURE__ */ St(
|
|
5309
5309
|
"form",
|
|
5310
5310
|
{
|
|
5311
|
-
onSubmit:
|
|
5311
|
+
onSubmit: Sr,
|
|
5312
5312
|
className: `${r}-form`,
|
|
5313
5313
|
style: { gap: P(p ?? 0, e) },
|
|
5314
5314
|
children: [
|
|
@@ -5317,20 +5317,20 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5317
5317
|
{
|
|
5318
5318
|
className: `${r}-fields`,
|
|
5319
5319
|
style: { gap: P(s ?? 0, e) },
|
|
5320
|
-
children: et.map((ct,
|
|
5321
|
-
G && /* @__PURE__ */ B("span", { className: `${r}-field-label`, style:
|
|
5320
|
+
children: et.map((ct, se) => /* @__PURE__ */ St("div", { className: `${r}-field-group${G ? ` ${r}-labeled` : ""}`, children: [
|
|
5321
|
+
G && /* @__PURE__ */ B("span", { className: `${r}-field-label`, style: $e ? { ...$e, lineHeight: $e.fontSize } : void 0, children: ct.label || ct.name }),
|
|
5322
5322
|
ct.type === "textarea" ? /* @__PURE__ */ B(
|
|
5323
5323
|
"textarea",
|
|
5324
5324
|
{
|
|
5325
5325
|
name: ct.name,
|
|
5326
5326
|
autoComplete: "off",
|
|
5327
|
-
value:
|
|
5328
|
-
onChange: (Gt) =>
|
|
5327
|
+
value: Te[ct.name] ?? "",
|
|
5328
|
+
onChange: (Gt) => io(ct.name, Gt.target.value),
|
|
5329
5329
|
placeholder: ct.placeholder,
|
|
5330
5330
|
className: `${r}-input`,
|
|
5331
5331
|
style: Bt,
|
|
5332
5332
|
rows: 1,
|
|
5333
|
-
"data-filled": (
|
|
5333
|
+
"data-filled": (Te[ct.name] ?? "").trim().length > 0,
|
|
5334
5334
|
"data-field-type": "textarea"
|
|
5335
5335
|
}
|
|
5336
5336
|
) : /* @__PURE__ */ B(
|
|
@@ -5339,16 +5339,16 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5339
5339
|
type: ct.type === "phone" ? "tel" : ct.type === "email" ? "email" : "text",
|
|
5340
5340
|
name: ct.name,
|
|
5341
5341
|
autoComplete: "off",
|
|
5342
|
-
value:
|
|
5343
|
-
onChange: (Gt) =>
|
|
5342
|
+
value: Te[ct.name] ?? "",
|
|
5343
|
+
onChange: (Gt) => io(ct.name, Gt.target.value),
|
|
5344
5344
|
placeholder: ct.placeholder,
|
|
5345
5345
|
required: ct.isRequired ?? ct.type === "email",
|
|
5346
5346
|
className: `${r}-input`,
|
|
5347
5347
|
style: Bt,
|
|
5348
|
-
"data-filled": (
|
|
5348
|
+
"data-filled": (Te[ct.name] ?? "").trim().length > 0
|
|
5349
5349
|
}
|
|
5350
5350
|
)
|
|
5351
|
-
] },
|
|
5351
|
+
] }, se))
|
|
5352
5352
|
}
|
|
5353
5353
|
),
|
|
5354
5354
|
/* @__PURE__ */ B("div", { className: `${r}-overlay-anchor`, children: /* @__PURE__ */ B(
|
|
@@ -5381,7 +5381,7 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5381
5381
|
whiteSpace: "normal",
|
|
5382
5382
|
textAlign: "center"
|
|
5383
5383
|
} : void 0,
|
|
5384
|
-
children:
|
|
5384
|
+
children: oo === "submitting" ? "..." : l
|
|
5385
5385
|
}
|
|
5386
5386
|
)
|
|
5387
5387
|
}
|
|
@@ -5389,26 +5389,26 @@ function wl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
|
|
|
5389
5389
|
]
|
|
5390
5390
|
}
|
|
5391
5391
|
),
|
|
5392
|
-
|
|
5392
|
+
Sn === "success" && /* @__PURE__ */ B(
|
|
5393
5393
|
"p",
|
|
5394
5394
|
{
|
|
5395
5395
|
className: `${r}-success`,
|
|
5396
|
-
style: { ...
|
|
5396
|
+
style: { ...ht },
|
|
5397
5397
|
children: K
|
|
5398
5398
|
}
|
|
5399
5399
|
),
|
|
5400
|
-
|
|
5400
|
+
Sn === "error" && /* @__PURE__ */ B(
|
|
5401
5401
|
"p",
|
|
5402
5402
|
{
|
|
5403
5403
|
className: `${r}-error`,
|
|
5404
|
-
style: { ...
|
|
5404
|
+
style: { ...le },
|
|
5405
5405
|
role: "alert",
|
|
5406
|
-
children:
|
|
5406
|
+
children: vr ?? yr ?? nt
|
|
5407
5407
|
}
|
|
5408
5408
|
)
|
|
5409
5409
|
] });
|
|
5410
5410
|
}
|
|
5411
|
-
const
|
|
5411
|
+
const El = {
|
|
5412
5412
|
inputColor: "input-color",
|
|
5413
5413
|
inputTextColor: "input-text-color",
|
|
5414
5414
|
inputBorderColor: "input-border-color",
|
|
@@ -5419,7 +5419,7 @@ const Tl = {
|
|
|
5419
5419
|
labelTextColor: "label-text-color",
|
|
5420
5420
|
successColor: "success-color",
|
|
5421
5421
|
errorColor: "error-color"
|
|
5422
|
-
},
|
|
5422
|
+
}, Al = ["hover", "focus", "filled", "success", "error"], Il = `import React, { useState } from 'react';
|
|
5423
5423
|
import { CommonComponentProps } from '../props';
|
|
5424
5424
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
5425
5425
|
import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
|
|
@@ -5708,6 +5708,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5708
5708
|
color: successColor,
|
|
5709
5709
|
};
|
|
5710
5710
|
const statusTextCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
|
|
5711
|
+
const { color: _statusMessageColor, ...statusTypographyCss } = statusTextCss;
|
|
5711
5712
|
|
|
5712
5713
|
const colorVars = buildColorVars(P, {
|
|
5713
5714
|
inputColor,
|
|
@@ -5886,7 +5887,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5886
5887
|
{displayStatus === 'error' && (
|
|
5887
5888
|
<p
|
|
5888
5889
|
className={\`\${P}-error\`}
|
|
5889
|
-
style={{ ...
|
|
5890
|
+
style={{ ...statusTypographyCss }}
|
|
5890
5891
|
role="alert"
|
|
5891
5892
|
>
|
|
5892
5893
|
{validationErrorMessage ?? displayError ?? errorMessageText}
|
|
@@ -5996,7 +5997,7 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
|
|
|
5996
5997
|
};
|
|
5997
5998
|
|
|
5998
5999
|
const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
5999
|
-
`,
|
|
6000
|
+
`, kl = [
|
|
6000
6001
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
6001
6002
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
6002
6003
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
@@ -6004,7 +6005,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6004
6005
|
{ name: "message", type: "textarea", placeholder: "Enter your message", label: "Message", isRequired: !1, error: "Message is required" },
|
|
6005
6006
|
{ name: "message2", type: "textarea", placeholder: "Enter your message 2", label: "Message 2", isRequired: !1, error: "Message 2 is required" },
|
|
6006
6007
|
{ name: "message3", type: "textarea", placeholder: "Enter your message 3", label: "Message 3", isRequired: !1, error: "Message 3 is required" }
|
|
6007
|
-
],
|
|
6008
|
+
], Xe = {
|
|
6008
6009
|
fontSettings: {
|
|
6009
6010
|
type: "object",
|
|
6010
6011
|
display: { type: "font-settings-weight" },
|
|
@@ -6013,7 +6014,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6013
6014
|
fontStyle: { type: "string" }
|
|
6014
6015
|
}
|
|
6015
6016
|
}
|
|
6016
|
-
},
|
|
6017
|
+
}, Fl = [
|
|
6017
6018
|
"inputColor",
|
|
6018
6019
|
"inputTextColor",
|
|
6019
6020
|
"inputBorderColor",
|
|
@@ -6024,7 +6025,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6024
6025
|
"labelTextColor",
|
|
6025
6026
|
"successColor",
|
|
6026
6027
|
"errorColor"
|
|
6027
|
-
],
|
|
6028
|
+
], Rl = {
|
|
6028
6029
|
type: "object",
|
|
6029
6030
|
version: 1,
|
|
6030
6031
|
settings: {
|
|
@@ -6217,7 +6218,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6217
6218
|
display: { type: "font-family-select" }
|
|
6218
6219
|
},
|
|
6219
6220
|
inputFontSettings: {
|
|
6220
|
-
...
|
|
6221
|
+
...Xe.fontSettings,
|
|
6221
6222
|
scope: "common",
|
|
6222
6223
|
title: "Input",
|
|
6223
6224
|
display: { type: "font-settings-weight" }
|
|
@@ -6253,7 +6254,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6253
6254
|
display: { type: "text-appearance" }
|
|
6254
6255
|
},
|
|
6255
6256
|
buttonFontSettings: {
|
|
6256
|
-
...
|
|
6257
|
+
...Xe.fontSettings,
|
|
6257
6258
|
scope: "common",
|
|
6258
6259
|
title: "Button",
|
|
6259
6260
|
display: { type: "font-settings-weight" }
|
|
@@ -6289,7 +6290,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6289
6290
|
display: { type: "text-appearance" }
|
|
6290
6291
|
},
|
|
6291
6292
|
labelFontSettings: {
|
|
6292
|
-
...
|
|
6293
|
+
...Xe.fontSettings,
|
|
6293
6294
|
scope: "common",
|
|
6294
6295
|
title: "Label",
|
|
6295
6296
|
display: { type: "font-settings-weight", visible: !1 }
|
|
@@ -6325,7 +6326,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6325
6326
|
display: { type: "text-appearance", visible: !1 }
|
|
6326
6327
|
},
|
|
6327
6328
|
statusFontSettings: {
|
|
6328
|
-
...
|
|
6329
|
+
...Xe.fontSettings,
|
|
6329
6330
|
scope: "common",
|
|
6330
6331
|
title: "Success/Error"
|
|
6331
6332
|
},
|
|
@@ -6362,11 +6363,11 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6362
6363
|
},
|
|
6363
6364
|
defaults: {
|
|
6364
6365
|
fieldsToShow: 2,
|
|
6365
|
-
fields:
|
|
6366
|
+
fields: kl,
|
|
6366
6367
|
type: "A",
|
|
6367
6368
|
inputColor: "#FFFFFF",
|
|
6368
6369
|
inputTextColor: "#0A00F8",
|
|
6369
|
-
inputBorderColor: "#
|
|
6370
|
+
inputBorderColor: "#E2E2E2",
|
|
6370
6371
|
placeholderColor: "#808080",
|
|
6371
6372
|
buttonColor: "#0A00F8",
|
|
6372
6373
|
buttonTextColor: "#ffffff",
|
|
@@ -6435,7 +6436,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6435
6436
|
fieldsGap: 0.032,
|
|
6436
6437
|
buttonStroke: 0,
|
|
6437
6438
|
buttonCorners: 0.192,
|
|
6438
|
-
inputStroke:
|
|
6439
|
+
inputStroke: 3e-3,
|
|
6439
6440
|
inputCorners: 0.192,
|
|
6440
6441
|
buttonPadding: { top: 0.0373, right: 0.0373, bottom: 0.0373, left: 0.0373 },
|
|
6441
6442
|
inputPadding: { top: 0.0373, right: 0.0373, bottom: 0.0373, left: 0.0373 },
|
|
@@ -6453,7 +6454,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6453
6454
|
fieldsGap: 83e-4,
|
|
6454
6455
|
buttonStroke: 0,
|
|
6455
6456
|
buttonCorners: 0.05,
|
|
6456
|
-
inputStroke:
|
|
6457
|
+
inputStroke: 1e-3,
|
|
6457
6458
|
inputCorners: 0.05,
|
|
6458
6459
|
buttonPadding: { top: 0.01, right: 0.01, bottom: 0.01, left: 0.01 },
|
|
6459
6460
|
inputPadding: { top: 0.01, right: 0.01, bottom: 0.01, left: 0.01 },
|
|
@@ -6604,7 +6605,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6604
6605
|
}
|
|
6605
6606
|
],
|
|
6606
6607
|
paletteBookmark: {
|
|
6607
|
-
items: [...
|
|
6608
|
+
items: [...Fl],
|
|
6608
6609
|
panelIds: ["general", "typeStyle"],
|
|
6609
6610
|
stateItems: {
|
|
6610
6611
|
default: ["placeholderColor", "inputColor", "inputBorderColor", "buttonTextColor", "buttonColor", "buttonBorderColor", "labelTextColor"],
|
|
@@ -6617,8 +6618,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6617
6618
|
},
|
|
6618
6619
|
allowedPlugins: ["newsletter"],
|
|
6619
6620
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
6620
|
-
},
|
|
6621
|
-
element:
|
|
6621
|
+
}, Bl = {
|
|
6622
|
+
element: Ll,
|
|
6622
6623
|
id: "form",
|
|
6623
6624
|
name: "Newsletter Stacked",
|
|
6624
6625
|
preview: {
|
|
@@ -6630,13 +6631,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6630
6631
|
width: 300,
|
|
6631
6632
|
height: 42
|
|
6632
6633
|
},
|
|
6633
|
-
schema:
|
|
6634
|
-
sourceCode:
|
|
6634
|
+
schema: Rl,
|
|
6635
|
+
sourceCode: Il
|
|
6635
6636
|
};
|
|
6636
|
-
function
|
|
6637
|
+
function Ke(t) {
|
|
6637
6638
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
6638
6639
|
}
|
|
6639
|
-
function
|
|
6640
|
+
function Ol(t) {
|
|
6640
6641
|
return `
|
|
6641
6642
|
.${t}-wrapper {
|
|
6642
6643
|
display: flex;
|
|
@@ -6819,19 +6820,19 @@ function Rl(t) {
|
|
|
6819
6820
|
align-items: center;
|
|
6820
6821
|
}
|
|
6821
6822
|
.${t}-success {
|
|
6822
|
-
margin-top: ${
|
|
6823
|
-
font-size: ${
|
|
6823
|
+
margin-top: ${Ke(8)};
|
|
6824
|
+
font-size: ${Ke(14)};
|
|
6824
6825
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
6825
6826
|
}
|
|
6826
6827
|
.${t}-error {
|
|
6827
|
-
margin-top: ${
|
|
6828
|
-
font-size: ${
|
|
6828
|
+
margin-top: ${Ke(8)};
|
|
6829
|
+
font-size: ${Ke(14)};
|
|
6829
6830
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
6830
6831
|
}
|
|
6831
6832
|
`;
|
|
6832
6833
|
}
|
|
6833
|
-
const
|
|
6834
|
-
const { prefix: r } =
|
|
6834
|
+
const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
6835
|
+
const { prefix: r } = Eo(), {
|
|
6835
6836
|
fields: a = [{ name: "email", type: "email", placeholder: "Your email" }],
|
|
6836
6837
|
buttonContent: i,
|
|
6837
6838
|
buttonLabel: c,
|
|
@@ -6839,7 +6840,7 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6839
6840
|
fontFamily: p,
|
|
6840
6841
|
inputFontSettings: s,
|
|
6841
6842
|
inputFontSize: _,
|
|
6842
|
-
inputLineHeight:
|
|
6843
|
+
inputLineHeight: y,
|
|
6843
6844
|
inputLetterSpacing: m,
|
|
6844
6845
|
inputWordSpacing: u,
|
|
6845
6846
|
inputTextAppearance: d,
|
|
@@ -6863,16 +6864,16 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6863
6864
|
buttonPadding: E,
|
|
6864
6865
|
successMessage: A = "Thanks for subscribing!",
|
|
6865
6866
|
errorMessage: $ = "Please, fill all required fields."
|
|
6866
|
-
} = t,
|
|
6867
|
-
() => Object.fromEntries(
|
|
6868
|
-
), [ot, Z] = it("idle"), [ut, T] = it(null), X = o === "success" ? "success" : o === "error" ? "error" : ot,
|
|
6867
|
+
} = t, v = a.slice(0, Math.min(l, a.length)), [R, q] = it(
|
|
6868
|
+
() => Object.fromEntries(v.map((ht) => [ht.name, ""]))
|
|
6869
|
+
), [ot, Z] = it("idle"), [ut, T] = it(null), X = o === "success" ? "success" : o === "error" ? "error" : ot, ft = o === "error" ? $ : ut, rt = o === "filled" ? Object.fromEntries(v.map((ht) => [ht.name, "Filled"])) : R, mt = X === "error" ? en(v, rt) : null, Ct = o && o !== "default" ? `${r}-state-${o}` : "", Ut = v.some((ht) => (rt[ht.name] ?? "").trim().length > 0), M = Ct !== `${r}-state-filled` && Ut ? `${r}-state-filled` : "", S = `${Ct} ${M}`.trim(), H = n == null ? void 0 : n.submitUrl, Y = c ?? "", K = (i == null ? void 0 : i.icon) ?? "", nt = (i == null ? void 0 : i.mode) === "On", Q = Y || "Submit", G = {
|
|
6869
6870
|
fontSettings: {
|
|
6870
6871
|
fontFamily: p,
|
|
6871
6872
|
fontWeight: (s == null ? void 0 : s.fontWeight) ?? 400,
|
|
6872
6873
|
fontStyle: (s == null ? void 0 : s.fontStyle) ?? "normal"
|
|
6873
6874
|
},
|
|
6874
6875
|
fontSize: _ ?? 0.01,
|
|
6875
|
-
lineHeight:
|
|
6876
|
+
lineHeight: y,
|
|
6876
6877
|
letterSpacing: m ?? 0,
|
|
6877
6878
|
wordSpacing: u ?? 0,
|
|
6878
6879
|
textAppearance: d,
|
|
@@ -6889,7 +6890,7 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6889
6890
|
wordSpacing: V ?? 0,
|
|
6890
6891
|
textAppearance: N,
|
|
6891
6892
|
color: t.buttonTextColor ?? "#ffffff"
|
|
6892
|
-
},
|
|
6893
|
+
}, vt = {
|
|
6893
6894
|
fontSettings: {
|
|
6894
6895
|
fontFamily: p,
|
|
6895
6896
|
fontWeight: (w == null ? void 0 : w.fontWeight) ?? 400,
|
|
@@ -6901,7 +6902,7 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6901
6902
|
wordSpacing: z ?? 0,
|
|
6902
6903
|
textAppearance: I,
|
|
6903
6904
|
color: t.successColor ?? "#22c55e"
|
|
6904
|
-
}, lt =
|
|
6905
|
+
}, lt = ne(G, e), pt = ne(et, e), Bt = ne(vt, e), { color: tt, ...st } = Bt, _t = Ao(r, {
|
|
6905
6906
|
strokeColor: t.strokeColor,
|
|
6906
6907
|
inputColor: t.inputColor,
|
|
6907
6908
|
placeholderColor: t.placeholderColor,
|
|
@@ -6910,14 +6911,14 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6910
6911
|
errorColor: t.errorColor,
|
|
6911
6912
|
inputTextColor: t.inputTextColor ?? (G == null ? void 0 : G.color) ?? "#111111",
|
|
6912
6913
|
buttonTextColor: t.buttonTextColor ?? (et == null ? void 0 : et.color) ?? "#ffffff"
|
|
6913
|
-
},
|
|
6914
|
+
}, Nl, Wl, j), Yt = {
|
|
6914
6915
|
borderRadius: P(O, e),
|
|
6915
6916
|
borderWidth: P(D, e),
|
|
6916
6917
|
borderStyle: "solid"
|
|
6917
|
-
},
|
|
6918
|
-
|
|
6919
|
-
const
|
|
6920
|
-
|
|
6918
|
+
}, $e = { borderLeftWidth: P(D, e) }, bn = async (ht) => {
|
|
6919
|
+
ht.preventDefault();
|
|
6920
|
+
const _e = Object.fromEntries(
|
|
6921
|
+
v.map((wt) => {
|
|
6921
6922
|
var Ot;
|
|
6922
6923
|
return [wt.name, ((Ot = R[wt.name]) == null ? void 0 : Ot.trim()) ?? ""];
|
|
6923
6924
|
}).filter(([, wt]) => wt)
|
|
@@ -6926,10 +6927,10 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6926
6927
|
Z("error"), T("No integrations were found for this form.");
|
|
6927
6928
|
return;
|
|
6928
6929
|
}
|
|
6929
|
-
if (Object.keys(
|
|
6930
|
-
const
|
|
6931
|
-
if (
|
|
6932
|
-
Z("error"), T(
|
|
6930
|
+
if (Object.keys(_e).length === 0) return;
|
|
6931
|
+
const le = en(v, R);
|
|
6932
|
+
if (le) {
|
|
6933
|
+
Z("error"), T(le);
|
|
6933
6934
|
return;
|
|
6934
6935
|
}
|
|
6935
6936
|
Z("submitting"), T(null);
|
|
@@ -6937,26 +6938,26 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6937
6938
|
const wt = await fetch(H, {
|
|
6938
6939
|
method: "POST",
|
|
6939
6940
|
headers: { "Content-Type": "application/json" },
|
|
6940
|
-
body: JSON.stringify(
|
|
6941
|
+
body: JSON.stringify(_e)
|
|
6941
6942
|
});
|
|
6942
6943
|
if (!wt.ok) {
|
|
6943
6944
|
const Ot = await wt.text();
|
|
6944
6945
|
throw new Error(Ot || `Request failed: ${wt.status}`);
|
|
6945
6946
|
}
|
|
6946
|
-
Z("success"), q(Object.fromEntries(
|
|
6947
|
+
Z("success"), q(Object.fromEntries(v.map((Ot) => [Ot.name, ""])));
|
|
6947
6948
|
} catch (wt) {
|
|
6948
6949
|
Z("error"), T(wt instanceof Error ? wt.message : "Something went wrong");
|
|
6949
6950
|
}
|
|
6950
6951
|
};
|
|
6951
|
-
return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${S}`.trim(), style:
|
|
6952
|
-
/* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html:
|
|
6952
|
+
return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${S}`.trim(), style: _t, children: [
|
|
6953
|
+
/* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Ol(r) } }),
|
|
6953
6954
|
/* @__PURE__ */ St(
|
|
6954
6955
|
"form",
|
|
6955
6956
|
{
|
|
6956
|
-
onSubmit:
|
|
6957
|
+
onSubmit: bn,
|
|
6957
6958
|
className: `${r}-form`,
|
|
6958
6959
|
style: {
|
|
6959
|
-
...
|
|
6960
|
+
...Yt,
|
|
6960
6961
|
height: P(F, e),
|
|
6961
6962
|
minHeight: P(F, e)
|
|
6962
6963
|
},
|
|
@@ -6966,16 +6967,16 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6966
6967
|
{
|
|
6967
6968
|
className: `${r}-inputWrap ${r}-overlayAnchor`,
|
|
6968
6969
|
style: { flex: 1, minWidth: 0 },
|
|
6969
|
-
children:
|
|
6970
|
+
children: v.map((ht) => /* @__PURE__ */ B(
|
|
6970
6971
|
"input",
|
|
6971
6972
|
{
|
|
6972
|
-
type:
|
|
6973
|
-
name:
|
|
6973
|
+
type: ht.type === "email" ? "email" : ht.type === "phone" ? "tel" : "text",
|
|
6974
|
+
name: ht.name,
|
|
6974
6975
|
autoComplete: "off",
|
|
6975
|
-
value: rt[
|
|
6976
|
-
onChange: (
|
|
6977
|
-
placeholder:
|
|
6978
|
-
required:
|
|
6976
|
+
value: rt[ht.name] ?? "",
|
|
6977
|
+
onChange: (_e) => q((le) => ({ ...le, [ht.name]: _e.target.value })),
|
|
6978
|
+
placeholder: ht.placeholder,
|
|
6979
|
+
required: ht.isRequired ?? ht.type === "email",
|
|
6979
6980
|
className: `${r}-input`,
|
|
6980
6981
|
style: {
|
|
6981
6982
|
...lt,
|
|
@@ -6985,7 +6986,7 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6985
6986
|
paddingBottom: P(g.bottom, e)
|
|
6986
6987
|
}
|
|
6987
6988
|
},
|
|
6988
|
-
|
|
6989
|
+
ht.name
|
|
6989
6990
|
))
|
|
6990
6991
|
}
|
|
6991
6992
|
),
|
|
@@ -6997,14 +6998,14 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
6997
6998
|
"aria-label": Q,
|
|
6998
6999
|
style: {
|
|
6999
7000
|
...pt,
|
|
7000
|
-
|
|
7001
|
+
...$e,
|
|
7001
7002
|
paddingRight: P(E.right, e),
|
|
7002
7003
|
paddingLeft: P(E.left, e),
|
|
7003
7004
|
paddingTop: P(E.top, e),
|
|
7004
7005
|
paddingBottom: P(E.bottom, e)
|
|
7005
7006
|
},
|
|
7006
7007
|
children: ot === "submitting" ? "..." : nt ? K && /* @__PURE__ */ B(
|
|
7007
|
-
|
|
7008
|
+
he,
|
|
7008
7009
|
{
|
|
7009
7010
|
url: K,
|
|
7010
7011
|
className: `${r}-submitBtnIcon`,
|
|
@@ -7029,13 +7030,13 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7029
7030
|
"p",
|
|
7030
7031
|
{
|
|
7031
7032
|
className: `${r}-error`,
|
|
7032
|
-
style: { ...
|
|
7033
|
+
style: { ...st },
|
|
7033
7034
|
role: "alert",
|
|
7034
|
-
children: mt ??
|
|
7035
|
+
children: mt ?? ft ?? $
|
|
7035
7036
|
}
|
|
7036
7037
|
)
|
|
7037
7038
|
] });
|
|
7038
|
-
},
|
|
7039
|
+
}, Nl = {
|
|
7039
7040
|
strokeColor: "stroke-color",
|
|
7040
7041
|
inputColor: "input-color",
|
|
7041
7042
|
placeholderColor: "placeholder-color",
|
|
@@ -7044,7 +7045,7 @@ const Bl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
|
|
|
7044
7045
|
buttonTextColor: "button-text-color",
|
|
7045
7046
|
successColor: "success-color",
|
|
7046
7047
|
errorColor: "error-color"
|
|
7047
|
-
},
|
|
7048
|
+
}, Wl = ["hover", "focus", "filled", "success", "error"], zl = `import React, { useState } from 'react';
|
|
7048
7049
|
import { CommonComponentProps } from '../props';
|
|
7049
7050
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
7050
7051
|
import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
|
|
@@ -7366,6 +7367,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
|
|
|
7366
7367
|
const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
|
|
7367
7368
|
const buttonCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
|
|
7368
7369
|
const statusCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
|
|
7370
|
+
const { color: _statusMessageColor, ...statusTypographyCss } = statusCss;
|
|
7369
7371
|
const colorVars = buildColorVars(P, {
|
|
7370
7372
|
strokeColor: settings.strokeColor,
|
|
7371
7373
|
inputColor: settings.inputColor,
|
|
@@ -7504,7 +7506,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
|
|
|
7504
7506
|
{displayStatus === 'error' && (
|
|
7505
7507
|
<p
|
|
7506
7508
|
className={\`\${P}-error\`}
|
|
7507
|
-
style={{ ...
|
|
7509
|
+
style={{ ...statusTypographyCss }}
|
|
7508
7510
|
role="alert"
|
|
7509
7511
|
>
|
|
7510
7512
|
{validationErrorMessage ?? displayError ?? errorMessageText}
|
|
@@ -7603,14 +7605,14 @@ const COLOR_VAR_MAP: Record<OnelinerColorKeys, string> = {
|
|
|
7603
7605
|
};
|
|
7604
7606
|
|
|
7605
7607
|
const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
7606
|
-
`,
|
|
7608
|
+
`, Ml = "data:image/svg+xml," + encodeURIComponent(
|
|
7607
7609
|
'<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9"><path fill="white" transform="translate(0.0625 0.0595703)" d="M0.18305826 0.18305826C0.40836075 -0.042244215 0.76288015 -0.059575174 1.0080621 0.13106538L1.0669417 0.18305826L4.8169417 3.9330583C5.0422444 4.158361 5.0595751 4.5128803 4.8689346 4.7580624L4.8169417 4.8169417L1.0669417 8.5669422C0.82286406 8.8110189 0.42713594 8.8110189 0.18305826 8.5669422C-0.042244215 8.3416395 -0.059575174 7.9871197 0.13106538 7.7419376L0.18305826 7.6830583L3.4906249 4.375L0.18305826 1.0669417C-0.042244215 0.84163928 -0.059575174 0.48711985 0.13106538 0.24193785L0.18305826 0.18305826Z" fill-rule="evenodd"/></svg>'
|
|
7608
|
-
),
|
|
7610
|
+
), Vl = [
|
|
7609
7611
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
7610
7612
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
7611
7613
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
7612
7614
|
{ name: "phone", type: "phone", placeholder: "Enter your phone", label: "Phone", isRequired: !1, error: "Please, enter a valid phone number." }
|
|
7613
|
-
],
|
|
7615
|
+
], Tn = {
|
|
7614
7616
|
fontSettings: {
|
|
7615
7617
|
type: "object",
|
|
7616
7618
|
display: { type: "font-settings-weight", visible: !0 },
|
|
@@ -7619,7 +7621,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7619
7621
|
fontStyle: { type: "string" }
|
|
7620
7622
|
}
|
|
7621
7623
|
}
|
|
7622
|
-
},
|
|
7624
|
+
}, Hl = [
|
|
7623
7625
|
"strokeColor",
|
|
7624
7626
|
"inputColor",
|
|
7625
7627
|
"inputTextColor",
|
|
@@ -7628,7 +7630,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7628
7630
|
"buttonTextColor",
|
|
7629
7631
|
"successColor",
|
|
7630
7632
|
"errorColor"
|
|
7631
|
-
],
|
|
7633
|
+
], Dl = {
|
|
7632
7634
|
type: "object",
|
|
7633
7635
|
version: 1,
|
|
7634
7636
|
settings: {
|
|
@@ -7788,7 +7790,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7788
7790
|
scope: "common"
|
|
7789
7791
|
},
|
|
7790
7792
|
inputFontSettings: {
|
|
7791
|
-
...
|
|
7793
|
+
...Tn.fontSettings,
|
|
7792
7794
|
scope: "common",
|
|
7793
7795
|
title: "Input"
|
|
7794
7796
|
},
|
|
@@ -7823,7 +7825,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7823
7825
|
display: { type: "text-appearance" }
|
|
7824
7826
|
},
|
|
7825
7827
|
buttonFontSettings: {
|
|
7826
|
-
...
|
|
7828
|
+
...Tn.fontSettings,
|
|
7827
7829
|
scope: "common",
|
|
7828
7830
|
title: "Button"
|
|
7829
7831
|
},
|
|
@@ -7858,7 +7860,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7858
7860
|
display: { type: "text-appearance" }
|
|
7859
7861
|
},
|
|
7860
7862
|
statusFontSettings: {
|
|
7861
|
-
...
|
|
7863
|
+
...Tn.fontSettings,
|
|
7862
7864
|
scope: "common",
|
|
7863
7865
|
title: "Success/Error"
|
|
7864
7866
|
},
|
|
@@ -7894,12 +7896,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7894
7896
|
}
|
|
7895
7897
|
},
|
|
7896
7898
|
defaults: {
|
|
7897
|
-
fields:
|
|
7899
|
+
fields: Vl,
|
|
7898
7900
|
fieldsToShow: 1,
|
|
7899
7901
|
buttonLabel: "Subscribe",
|
|
7900
7902
|
buttonContent: {
|
|
7901
7903
|
mode: "Off",
|
|
7902
|
-
icon:
|
|
7904
|
+
icon: Ml
|
|
7903
7905
|
},
|
|
7904
7906
|
fontFamily: "Arial",
|
|
7905
7907
|
strokeColor: "#0A00F8",
|
|
@@ -8070,7 +8072,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8070
8072
|
}
|
|
8071
8073
|
],
|
|
8072
8074
|
paletteBookmark: {
|
|
8073
|
-
items: [...
|
|
8075
|
+
items: [...Hl],
|
|
8074
8076
|
panelIds: ["general", "typeStyle"],
|
|
8075
8077
|
stateItems: {
|
|
8076
8078
|
default: ["strokeColor", "placeholderColor", "inputColor", "buttonTextColor", "buttonColor"],
|
|
@@ -8083,8 +8085,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8083
8085
|
},
|
|
8084
8086
|
allowedPlugins: ["newsletter"],
|
|
8085
8087
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
8086
|
-
},
|
|
8087
|
-
element:
|
|
8088
|
+
}, jl = {
|
|
8089
|
+
element: Pl,
|
|
8088
8090
|
id: "oneliner-form",
|
|
8089
8091
|
name: "Newsletter Single Line",
|
|
8090
8092
|
version: 1,
|
|
@@ -8096,16 +8098,16 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8096
8098
|
width: 400,
|
|
8097
8099
|
height: 60
|
|
8098
8100
|
},
|
|
8099
|
-
schema:
|
|
8100
|
-
sourceCode:
|
|
8101
|
-
},
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8101
|
+
schema: Dl,
|
|
8102
|
+
sourceCode: zl
|
|
8103
|
+
}, Zl = [
|
|
8104
|
+
Ia,
|
|
8105
|
+
Na,
|
|
8106
|
+
wl,
|
|
8107
|
+
Bl,
|
|
8108
|
+
jl
|
|
8107
8109
|
];
|
|
8108
8110
|
export {
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
+
Zl as components,
|
|
8112
|
+
Jl as isSchemaV1
|
|
8111
8113
|
};
|