@cntrl-site/components 1.0.1-alpha.10 → 1.0.1-alpha.11
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/Components/Form/Form.d.ts +1 -1
- package/dist/index.js +29 -11
- package/dist/index.mjs +834 -800
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as N, Fragment as _t, jsxs as Ce } from "react/jsx-runtime";
|
|
2
|
-
import et, { useState as le, useEffect as Se, useRef as
|
|
3
|
-
import
|
|
4
|
-
import { s as F, u as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
function
|
|
2
|
+
import et, { useState as le, useEffect as Se, useRef as $e, useCallback as dr } from "react";
|
|
3
|
+
import ce from "classnames";
|
|
4
|
+
import { s as F, u as Co, g as Gt } from "./useScopedStyles-Da2iLz5N.mjs";
|
|
5
|
+
import { createPortal as gr } from "react-dom";
|
|
6
|
+
function Wl(e) {
|
|
7
7
|
return e.type === "object" && e.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 fr = "ControlSlider-module__wrapper___sHEkd", mr = "ControlSlider-module__hoverArrow___A-dOH", yr = "ControlSlider-module__sliderItem___QQSkR", hr = "ControlSlider-module__sliderImage___9hRl-", vr = "ControlSlider-module__arrow___05ghY", br = "ControlSlider-module__arrowVertical___tBfVN", Sr = "ControlSlider-module__nextArrow___-30Yc", Cr = "ControlSlider-module__arrowInner___aEra3", xr = "ControlSlider-module__arrowIcon___S4ztF", _r = "ControlSlider-module__arrowImg___2dwJW", wr = "ControlSlider-module__mirror___brd6U", $r = "ControlSlider-module__pagination___bicLF", Tr = "ControlSlider-module__paginationInner___bT-P-", Ar = "ControlSlider-module__paginationVertical___zYqKw", Lr = "ControlSlider-module__paginationItem___nTRbk", Er = "ControlSlider-module__dot___p1Qun", Ir = "ControlSlider-module__activeDot___LHFaj", kr = "ControlSlider-module__paginationInsideBottom___R3FWn", Rr = "ControlSlider-module__paginationInsideTop___V-qb-", Fr = "ControlSlider-module__paginationOutsideBottom___14w8D", Nr = "ControlSlider-module__paginationOutsideTop___SCLqB", Or = "ControlSlider-module__paginationInsideLeft___yOBRZ", Br = "ControlSlider-module__paginationInsideRight___Rtt3o", Wr = "ControlSlider-module__paginationOutsideLeft___lahaw", zr = "ControlSlider-module__paginationOutsideRight___EtuQa", Mr = "ControlSlider-module__imgWrapper___UjEgB", Dr = "ControlSlider-module__captionBlock___dJ6-j", Vr = "ControlSlider-module__captionTextWrapper___HFlpf", Hr = "ControlSlider-module__captionText___uGBVc", jr = "ControlSlider-module__active___WZK4G", Pr = "ControlSlider-module__withPointerEvents___t-18M", Ur = "ControlSlider-module__topLeftAlignment___zjnGM", Gr = "ControlSlider-module__topCenterAlignment___gD1xW", Yr = "ControlSlider-module__topRightAlignment___NMapS", Xr = "ControlSlider-module__middleLeftAlignment___OnUrY", qr = "ControlSlider-module__middleCenterAlignment___Tdkl0", Kr = "ControlSlider-module__middleRightAlignment___wEbfX", Jr = "ControlSlider-module__bottomLeftAlignment___cTP2-", Zr = "ControlSlider-module__bottomCenterAlignment___c54fB", Qr = "ControlSlider-module__bottomRightAlignment___kEwrz", ei = "ControlSlider-module__clickOverlay___DZA28", ti = "ControlSlider-module__contain___pLyq7", ni = "ControlSlider-module__cover___KdDat", G = {
|
|
10
|
+
wrapper: fr,
|
|
11
|
+
hoverArrow: mr,
|
|
12
|
+
sliderItem: yr,
|
|
13
|
+
sliderImage: hr,
|
|
14
|
+
arrow: vr,
|
|
15
|
+
arrowVertical: br,
|
|
16
|
+
nextArrow: Sr,
|
|
17
|
+
arrowInner: Cr,
|
|
18
|
+
arrowIcon: xr,
|
|
19
|
+
arrowImg: _r,
|
|
20
|
+
mirror: wr,
|
|
21
|
+
pagination: $r,
|
|
22
|
+
paginationInner: Tr,
|
|
23
|
+
paginationVertical: Ar,
|
|
24
|
+
paginationItem: Lr,
|
|
25
|
+
dot: Er,
|
|
26
|
+
activeDot: Ir,
|
|
27
|
+
paginationInsideBottom: kr,
|
|
28
|
+
paginationInsideTop: Rr,
|
|
29
|
+
paginationOutsideBottom: Fr,
|
|
30
|
+
paginationOutsideTop: Nr,
|
|
31
|
+
paginationInsideLeft: Or,
|
|
32
|
+
paginationInsideRight: Br,
|
|
33
|
+
paginationOutsideLeft: Wr,
|
|
34
|
+
paginationOutsideRight: zr,
|
|
35
|
+
imgWrapper: Mr,
|
|
36
|
+
captionBlock: Dr,
|
|
37
|
+
captionTextWrapper: Vr,
|
|
38
|
+
captionText: Hr,
|
|
39
|
+
active: jr,
|
|
40
|
+
withPointerEvents: Pr,
|
|
41
|
+
topLeftAlignment: Ur,
|
|
42
|
+
topCenterAlignment: Gr,
|
|
43
|
+
topRightAlignment: Yr,
|
|
44
|
+
middleLeftAlignment: Xr,
|
|
45
|
+
middleCenterAlignment: qr,
|
|
46
|
+
middleRightAlignment: Kr,
|
|
47
|
+
bottomLeftAlignment: Jr,
|
|
48
|
+
bottomCenterAlignment: Zr,
|
|
49
|
+
bottomRightAlignment: Qr,
|
|
50
|
+
clickOverlay: ei,
|
|
51
|
+
contain: ti,
|
|
52
|
+
cover: ni
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function oi(e, t) {
|
|
55
55
|
for (var n = 0; n < t.length; n++) {
|
|
56
56
|
var o = t[n];
|
|
57
57
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return t &&
|
|
60
|
+
function ri(e, t, n) {
|
|
61
|
+
return t && oi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
63
|
+
var qn = "(prefers-reduced-motion: reduce)", pt = 1, ii = 2, ft = 3, ht = 4, kt = 5, Ht = 6, Yt = 7, ai = {
|
|
64
64
|
CREATED: pt,
|
|
65
|
-
MOUNTED:
|
|
65
|
+
MOUNTED: ii,
|
|
66
66
|
IDLE: ft,
|
|
67
67
|
MOVING: ht,
|
|
68
68
|
SCROLLING: kt,
|
|
@@ -78,22 +78,22 @@ function Ke(e, t, n) {
|
|
|
78
78
|
function se(e) {
|
|
79
79
|
return e.bind.apply(e, [null].concat(Ke(arguments, 1)));
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var xo = setTimeout, vn = function() {
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function Kn(e) {
|
|
84
84
|
return requestAnimationFrame(e);
|
|
85
85
|
}
|
|
86
86
|
function Zt(e, t) {
|
|
87
87
|
return typeof t === e;
|
|
88
88
|
}
|
|
89
89
|
function wt(e) {
|
|
90
|
-
return !
|
|
90
|
+
return !Ln(e) && Zt("object", e);
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
92
|
+
var An = Array.isArray, _o = se(Zt, "function"), Xe = se(Zt, "string"), Rt = se(Zt, "undefined");
|
|
93
|
+
function Ln(e) {
|
|
94
94
|
return e === null;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function wo(e) {
|
|
97
97
|
try {
|
|
98
98
|
return e instanceof (e.ownerDocument.defaultView || window).HTMLElement;
|
|
99
99
|
} catch {
|
|
@@ -101,45 +101,45 @@ function _o(e) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function Ft(e) {
|
|
104
|
-
return
|
|
104
|
+
return An(e) ? e : [e];
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Le(e, t) {
|
|
107
107
|
Ft(e).forEach(t);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function En(e, t) {
|
|
110
110
|
return e.indexOf(t) > -1;
|
|
111
111
|
}
|
|
112
112
|
function jt(e, t) {
|
|
113
113
|
return e.push.apply(e, Ft(t)), e;
|
|
114
114
|
}
|
|
115
115
|
function De(e, t, n) {
|
|
116
|
-
e &&
|
|
116
|
+
e && Le(t, function(o) {
|
|
117
117
|
o && e.classList[n ? "add" : "remove"](o);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Be(e, t) {
|
|
121
121
|
De(e, Xe(t) ? t.split(" ") : t, !0);
|
|
122
122
|
}
|
|
123
123
|
function Nt(e, t) {
|
|
124
|
-
|
|
124
|
+
Le(t, e.appendChild.bind(e));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function In(e, t) {
|
|
127
|
+
Le(e, function(n) {
|
|
128
128
|
var o = (t || n).parentNode;
|
|
129
129
|
o && o.insertBefore(n, t);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
function $t(e, t) {
|
|
133
|
-
return
|
|
133
|
+
return wo(e) && (e.msMatchesSelector || e.matches).call(e, t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function $o(e, t) {
|
|
136
136
|
var n = e ? Ke(e.children) : [];
|
|
137
137
|
return t ? n.filter(function(o) {
|
|
138
138
|
return $t(o, t);
|
|
139
139
|
}) : n;
|
|
140
140
|
}
|
|
141
141
|
function Ot(e, t) {
|
|
142
|
-
return t ?
|
|
142
|
+
return t ? $o(e, t)[0] : e.firstElementChild;
|
|
143
143
|
}
|
|
144
144
|
var Tt = Object.keys;
|
|
145
145
|
function tt(e, t, n) {
|
|
@@ -157,42 +157,42 @@ function At(e) {
|
|
|
157
157
|
function Ye(e) {
|
|
158
158
|
return Ke(arguments, 1).forEach(function(t) {
|
|
159
159
|
tt(t, function(n, o) {
|
|
160
|
-
|
|
160
|
+
An(n) ? e[o] = n.slice() : wt(n) ? e[o] = Ye({}, wt(e[o]) ? e[o] : {}, n) : e[o] = n;
|
|
161
161
|
});
|
|
162
162
|
}), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function Jn(e, t) {
|
|
165
|
+
Le(t || Tt(e), function(n) {
|
|
166
166
|
delete e[n];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
function We(e, t) {
|
|
170
|
+
Le(e, function(n) {
|
|
171
|
+
Le(t, function(o) {
|
|
172
172
|
n && n.removeAttribute(o);
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Q(e, t, n) {
|
|
177
177
|
wt(t) ? tt(t, function(o, r) {
|
|
178
|
-
|
|
179
|
-
}) :
|
|
180
|
-
|
|
178
|
+
Q(e, r, o);
|
|
179
|
+
}) : Le(e, function(o) {
|
|
180
|
+
Ln(n) || n === "" ? We(o, t) : o.setAttribute(t, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
function dt(e, t, n) {
|
|
184
184
|
var o = document.createElement(e);
|
|
185
|
-
return t && (Xe(t) ?
|
|
185
|
+
return t && (Xe(t) ? Be(o, t) : Q(o, t)), n && Nt(n, o), o;
|
|
186
186
|
}
|
|
187
187
|
function ke(e, t, n) {
|
|
188
188
|
if (Rt(n))
|
|
189
189
|
return getComputedStyle(e)[t];
|
|
190
|
-
|
|
190
|
+
Ln(n) || (e.style[t] = "" + n);
|
|
191
191
|
}
|
|
192
192
|
function Lt(e, t) {
|
|
193
193
|
ke(e, "display", t);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function To(e) {
|
|
196
196
|
e.setActive && e.setActive() || e.focus({
|
|
197
197
|
preventScroll: !0
|
|
198
198
|
});
|
|
@@ -200,46 +200,46 @@ function $o(e) {
|
|
|
200
200
|
function Re(e, t) {
|
|
201
201
|
return e.getAttribute(t);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Zn(e, t) {
|
|
204
204
|
return e && e.classList.contains(t);
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Te(e) {
|
|
207
207
|
return e.getBoundingClientRect();
|
|
208
208
|
}
|
|
209
209
|
function nt(e) {
|
|
210
|
-
|
|
210
|
+
Le(e, function(t) {
|
|
211
211
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Ao(e) {
|
|
215
215
|
return Ot(new DOMParser().parseFromString(e, "text/html").body);
|
|
216
216
|
}
|
|
217
217
|
function Me(e, t) {
|
|
218
218
|
e.preventDefault(), t && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Lo(e, t) {
|
|
221
221
|
return e && e.querySelector(t);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function kn(e, t) {
|
|
224
224
|
return t ? Ke(e.querySelectorAll(t)) : [];
|
|
225
225
|
}
|
|
226
226
|
function Ve(e, t) {
|
|
227
227
|
De(e, t, !1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function bn(e) {
|
|
230
230
|
return e.timeStamp;
|
|
231
231
|
}
|
|
232
232
|
function Qe(e) {
|
|
233
233
|
return Xe(e) ? e : e ? e + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var Bt = "splide",
|
|
235
|
+
var Bt = "splide", Rn = "data-" + Bt;
|
|
236
236
|
function St(e, t) {
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("[" + Bt + "] " + (t || ""));
|
|
239
239
|
}
|
|
240
|
-
var qe = Math.min, Xt = Math.max, qt = Math.floor, Et = Math.ceil,
|
|
241
|
-
function
|
|
242
|
-
return
|
|
240
|
+
var qe = Math.min, Xt = Math.max, qt = Math.floor, Et = Math.ceil, we = Math.abs;
|
|
241
|
+
function Eo(e, t, n) {
|
|
242
|
+
return we(e - t) < n;
|
|
243
243
|
}
|
|
244
244
|
function Pt(e, t, n, o) {
|
|
245
245
|
var r = qe(t, n), a = Xt(t, n);
|
|
@@ -249,22 +249,22 @@ function ct(e, t, n) {
|
|
|
249
249
|
var o = qe(t, n), r = Xt(t, n);
|
|
250
250
|
return qe(Xt(o, e), r);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Sn(e) {
|
|
253
253
|
return +(e > 0) - +(e < 0);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
255
|
+
function Cn(e, t) {
|
|
256
|
+
return Le(t, function(n) {
|
|
257
257
|
e = e.replace("%s", "" + n);
|
|
258
258
|
}), e;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Fn(e) {
|
|
261
261
|
return e < 10 ? "0" + e : "" + e;
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
return "" + e +
|
|
263
|
+
var Qn = {};
|
|
264
|
+
function li(e) {
|
|
265
|
+
return "" + e + Fn(Qn[e] = (Qn[e] || 0) + 1);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Io() {
|
|
268
268
|
var e = [];
|
|
269
269
|
function t(i, s, l, d) {
|
|
270
270
|
r(i, s, function(p, x, m) {
|
|
@@ -287,8 +287,8 @@ function Eo() {
|
|
|
287
287
|
}) : (d = document.createEvent("CustomEvent"), d.initCustomEvent(s, p, !1, l)), i.dispatchEvent(d), d;
|
|
288
288
|
}
|
|
289
289
|
function r(i, s, l) {
|
|
290
|
-
|
|
291
|
-
d &&
|
|
290
|
+
Le(i, function(d) {
|
|
291
|
+
d && Le(s, function(p) {
|
|
292
292
|
p.split(" ").forEach(function(x) {
|
|
293
293
|
var m = x.split(".");
|
|
294
294
|
l(d, m[0], m[1]);
|
|
@@ -308,18 +308,18 @@ function Eo() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var Je = "mounted",
|
|
312
|
-
function
|
|
313
|
-
var t = e ? e.event.bus : document.createDocumentFragment(), n =
|
|
311
|
+
var Je = "mounted", xn = "ready", Pe = "move", vt = "moved", Nn = "click", ko = "active", Ro = "inactive", Fo = "visible", No = "hidden", he = "refresh", _e = "updated", mt = "resize", Qt = "resized", Oo = "drag", Bo = "dragging", Wo = "dragged", en = "scroll", rt = "scrolled", si = "overflow", On = "destroy", zo = "arrows:mounted", Mo = "arrows:updated", Do = "pagination:mounted", Vo = "pagination:updated", Bn = "navigation:mounted", Wn = "autoplay:play", Ho = "autoplay:playing", zn = "autoplay:pause", Mn = "lazyload:loaded", jo = "sk", Po = "sh", Kt = "ei";
|
|
312
|
+
function ue(e) {
|
|
313
|
+
var t = e ? e.event.bus : document.createDocumentFragment(), n = Io();
|
|
314
314
|
function o(a, i) {
|
|
315
315
|
n.bind(t, Ft(a).join(" "), function(s) {
|
|
316
|
-
i.apply(i,
|
|
316
|
+
i.apply(i, An(s.detail) ? s.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function r(a) {
|
|
320
320
|
n.dispatch(t, a, Ke(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return e && e.event.on(
|
|
322
|
+
return e && e.event.on(On, n.destroy), At(n, {
|
|
323
323
|
bus: t,
|
|
324
324
|
on: o,
|
|
325
325
|
off: se(n.unbind, t),
|
|
@@ -332,11 +332,11 @@ function tn(e, t, n, o) {
|
|
|
332
332
|
if (!l) {
|
|
333
333
|
if (i = e ? qe((r() - a) / e, 1) : 1, n && n(i), i >= 1 && (t(), a = r(), o && ++d >= o))
|
|
334
334
|
return m();
|
|
335
|
-
s =
|
|
335
|
+
s = Kn(p);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
function x(w) {
|
|
339
|
-
w || c(), a = r() - (w ? i * e : 0), l = !1, s =
|
|
339
|
+
w || c(), a = r() - (w ? i * e : 0), l = !1, s = Kn(p);
|
|
340
340
|
}
|
|
341
341
|
function m() {
|
|
342
342
|
l = !0;
|
|
@@ -362,34 +362,34 @@ function tn(e, t, n, o) {
|
|
|
362
362
|
isPaused: b
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function ci(e) {
|
|
366
366
|
var t = e;
|
|
367
367
|
function n(r) {
|
|
368
368
|
t = r;
|
|
369
369
|
}
|
|
370
370
|
function o(r) {
|
|
371
|
-
return
|
|
371
|
+
return En(Ft(r), t);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
375
375
|
is: o
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ui(e, t) {
|
|
379
379
|
var n = tn(0, e, null, 1);
|
|
380
380
|
return function() {
|
|
381
381
|
n.isPaused() && n.start();
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
var o = e.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i =
|
|
384
|
+
function pi(e, t, n) {
|
|
385
|
+
var o = e.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i = Io(), s = [];
|
|
386
386
|
function l() {
|
|
387
387
|
var c = n.mediaQuery === "min";
|
|
388
388
|
Tt(r).sort(function(u, b) {
|
|
389
389
|
return c ? +u - +b : +b - +u;
|
|
390
390
|
}).forEach(function(u) {
|
|
391
391
|
p(r[u], "(" + (c ? "min" : "max") + "-width:" + u + "px)");
|
|
392
|
-
}), p(a,
|
|
392
|
+
}), p(a, qn), x();
|
|
393
393
|
}
|
|
394
394
|
function d(c) {
|
|
395
395
|
c && i.destroy();
|
|
@@ -402,13 +402,13 @@ function ci(e, t, n) {
|
|
|
402
402
|
var c = o.is(Yt), u = n.direction, b = s.reduce(function(w, f) {
|
|
403
403
|
return Ye(w, f[1].matches ? f[0] : {});
|
|
404
404
|
}, {});
|
|
405
|
-
|
|
405
|
+
Jn(n), h(b), n.destroy ? e.destroy(n.destroy === "completely") : c ? (d(!0), e.mount()) : u !== n.direction && e.refresh();
|
|
406
406
|
}
|
|
407
407
|
function m(c) {
|
|
408
|
-
matchMedia(
|
|
408
|
+
matchMedia(qn).matches && (c ? Ye(n, a) : Jn(n, Tt(a)));
|
|
409
409
|
}
|
|
410
410
|
function h(c, u, b) {
|
|
411
|
-
Ye(n, c), u && Ye(Object.getPrototypeOf(n), c), (b || !o.is(pt)) && e.emit(
|
|
411
|
+
Ye(n, c), u && Ye(Object.getPrototypeOf(n), c), (b || !o.is(pt)) && e.emit(_e, n);
|
|
412
412
|
}
|
|
413
413
|
return {
|
|
414
414
|
setup: l,
|
|
@@ -417,81 +417,81 @@ function ci(e, t, n) {
|
|
|
417
417
|
set: h
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var nn = "Arrow", on = nn + "Left", rn = nn + "Right",
|
|
420
|
+
var nn = "Arrow", on = nn + "Left", rn = nn + "Right", Uo = nn + "Up", Go = nn + "Down", eo = "rtl", an = "ttb", pn = {
|
|
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: [Uo, rn],
|
|
428
|
+
ArrowRight: [Go, on]
|
|
429
429
|
};
|
|
430
|
-
function
|
|
430
|
+
function di(e, t, n) {
|
|
431
431
|
function o(a, i, s) {
|
|
432
432
|
s = s || n.direction;
|
|
433
|
-
var l = s ===
|
|
434
|
-
return
|
|
435
|
-
var x =
|
|
433
|
+
var l = s === eo && !i ? 1 : s === an ? 0 : -1;
|
|
434
|
+
return pn[a] && pn[a][l] || a.replace(/width|left|right/i, function(d, p) {
|
|
435
|
+
var x = pn[d.toLowerCase()][l] || d;
|
|
436
436
|
return p > 0 ? x.charAt(0).toUpperCase() + x.slice(1) : x;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function r(a) {
|
|
440
|
-
return a * (n.direction ===
|
|
440
|
+
return a * (n.direction === eo ? 1 : -1);
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
resolve: o,
|
|
444
444
|
orient: r
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var He = "role", gt = "tabindex",
|
|
447
|
+
var He = "role", gt = "tabindex", gi = "disabled", Fe = "aria-", Wt = Fe + "controls", Yo = Fe + "current", to = Fe + "selected", Ae = Fe + "label", Dn = Fe + "labelledby", Xo = Fe + "hidden", Vn = Fe + "orientation", It = Fe + "roledescription", no = Fe + "live", oo = Fe + "busy", ro = Fe + "atomic", Hn = [He, gt, gi, Wt, Yo, Ae, Dn, Xo, Vn, It], ze = Bt + "__", Ze = "is-", dn = Bt, io = ze + "track", fi = ze + "list", ln = ze + "slide", qo = ln + "--clone", mi = ln + "__container", jn = ze + "arrows", sn = ze + "arrow", Ko = sn + "--prev", Jo = sn + "--next", cn = ze + "pagination", Zo = cn + "__page", yi = ze + "progress", hi = yi + "__bar", vi = ze + "toggle", bi = ze + "spinner", Si = ze + "sr", Ci = Ze + "initialized", ot = Ze + "active", Qo = Ze + "prev", er = Ze + "next", _n = Ze + "visible", wn = Ze + "loading", tr = Ze + "focus-in", nr = Ze + "overflow", xi = [ot, _n, Qo, er, wn, tr, nr], _i = {
|
|
448
448
|
slide: ln,
|
|
449
|
-
clone:
|
|
450
|
-
arrows:
|
|
449
|
+
clone: qo,
|
|
450
|
+
arrows: jn,
|
|
451
451
|
arrow: sn,
|
|
452
|
-
prev:
|
|
453
|
-
next:
|
|
452
|
+
prev: Ko,
|
|
453
|
+
next: Jo,
|
|
454
454
|
pagination: cn,
|
|
455
|
-
page:
|
|
456
|
-
spinner:
|
|
455
|
+
page: Zo,
|
|
456
|
+
spinner: bi
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
if (
|
|
458
|
+
function wi(e, t) {
|
|
459
|
+
if (_o(e.closest))
|
|
460
460
|
return e.closest(t);
|
|
461
461
|
for (var n = e; n && n.nodeType === 1 && !$t(n, t); )
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
var o =
|
|
465
|
+
var $i = 5, ao = 200, or = "touchstart mousedown", gn = "touchmove mousemove", fn = "touchend touchcancel mouseup click";
|
|
466
|
+
function Ti(e, t, n) {
|
|
467
|
+
var o = ue(e), r = o.on, a = o.bind, i = e.root, s = n.i18n, l = {}, d = [], p = [], x = [], m, h, c;
|
|
468
468
|
function u() {
|
|
469
|
-
_(),
|
|
469
|
+
_(), z(), f();
|
|
470
470
|
}
|
|
471
471
|
function b() {
|
|
472
|
-
r(he, w), r(he, u), r(
|
|
472
|
+
r(he, w), r(he, u), r(_e, f), a(document, or + " keydown", function(v) {
|
|
473
473
|
c = v.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), a(i, "focusin", function() {
|
|
477
|
-
De(i,
|
|
477
|
+
De(i, tr, !!c);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function w(v) {
|
|
481
|
-
var $ =
|
|
482
|
-
je(d), Ve(i, p), Ve(m, x),
|
|
481
|
+
var $ = Hn.concat("style");
|
|
482
|
+
je(d), Ve(i, p), Ve(m, x), We([m, h], $), We(i, v ? $ : ["style", It]);
|
|
483
483
|
}
|
|
484
484
|
function f() {
|
|
485
|
-
Ve(i, p), Ve(m, x), p = A(
|
|
485
|
+
Ve(i, p), Ve(m, x), p = A(dn), x = A(io), Be(i, p), Be(m, x), Q(i, Ae, n.label), Q(i, Dn, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function _() {
|
|
488
|
-
m = M("." +
|
|
489
|
-
arrows:
|
|
488
|
+
m = M("." + io), h = Ot(m, "." + fi), St(m && h, "A track/list element is missing."), jt(d, $o(h, "." + ln + ":not(." + qo + ")")), tt({
|
|
489
|
+
arrows: jn,
|
|
490
490
|
pagination: cn,
|
|
491
|
-
prev:
|
|
492
|
-
next:
|
|
493
|
-
bar:
|
|
494
|
-
toggle:
|
|
491
|
+
prev: Ko,
|
|
492
|
+
next: Jo,
|
|
493
|
+
bar: hi,
|
|
494
|
+
toggle: vi
|
|
495
495
|
}, function(v, $) {
|
|
496
496
|
l[$] = M("." + v);
|
|
497
497
|
}), At(l, {
|
|
@@ -501,16 +501,16 @@ function wi(e, t, n) {
|
|
|
501
501
|
slides: d
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var v = i.id ||
|
|
506
|
-
i.id = v, m.id = m.id || v + "-track", h.id = h.id || v + "-list", !Re(i, He) && i.tagName !== "SECTION" && $ &&
|
|
504
|
+
function z() {
|
|
505
|
+
var v = i.id || li(Bt), $ = n.role;
|
|
506
|
+
i.id = v, m.id = m.id || v + "-track", h.id = h.id || v + "-list", !Re(i, He) && i.tagName !== "SECTION" && $ && Q(i, He, $), Q(i, It, s.carousel), Q(h, He, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function M(v) {
|
|
509
|
-
var $ =
|
|
510
|
-
return $ &&
|
|
509
|
+
var $ = Lo(i, v);
|
|
510
|
+
return $ && wi($, "." + dn) === i ? $ : void 0;
|
|
511
511
|
}
|
|
512
512
|
function A(v) {
|
|
513
|
-
return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v ===
|
|
513
|
+
return [v + "--" + n.type, v + "--" + n.direction, n.drag && v + "--draggable", n.isNavigation && v + "--nav", v === dn && ot];
|
|
514
514
|
}
|
|
515
515
|
return At(l, {
|
|
516
516
|
setup: u,
|
|
@@ -518,24 +518,24 @@ function wi(e, t, n) {
|
|
|
518
518
|
destroy: w
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
var yt = "slide", bt = "loop",
|
|
522
|
-
function
|
|
523
|
-
var r =
|
|
521
|
+
var yt = "slide", bt = "loop", zt = "fade";
|
|
522
|
+
function Ai(e, t, n, o) {
|
|
523
|
+
var r = ue(e), a = r.on, i = r.emit, s = r.bind, l = e.Components, d = e.root, p = e.options, x = p.isNavigation, m = p.updateOnMove, h = p.i18n, c = p.pagination, u = p.slideFocus, b = l.Direction.resolve, w = Re(o, "style"), f = Re(o, Ae), _ = n > -1, z = Ot(o, "." + mi), M;
|
|
524
524
|
function A() {
|
|
525
|
-
_ || (o.id = d.id + "-slide" +
|
|
525
|
+
_ || (o.id = d.id + "-slide" + Fn(t + 1), Q(o, He, c ? "tabpanel" : "group"), Q(o, It, h.slide), Q(o, Ae, f || Cn(h.slideLabel, [t + 1, e.length]))), v();
|
|
526
526
|
}
|
|
527
527
|
function v() {
|
|
528
|
-
s(o, "click", se(i,
|
|
528
|
+
s(o, "click", se(i, Nn, S)), s(o, "keydown", se(i, jo, S)), a([vt, Po, rt], L), a(Bn, R), m && a(Pe, D);
|
|
529
529
|
}
|
|
530
530
|
function $() {
|
|
531
|
-
M = !0, r.destroy(), Ve(o,
|
|
531
|
+
M = !0, r.destroy(), Ve(o, xi), We(o, Hn), Q(o, "style", w), Q(o, Ae, f || "");
|
|
532
532
|
}
|
|
533
533
|
function R() {
|
|
534
534
|
var T = e.splides.map(function(C) {
|
|
535
535
|
var O = C.splide.Components.Slides.getAt(t);
|
|
536
536
|
return O ? O.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
|
|
538
|
+
Q(o, Ae, Cn(h.slideX, (_ ? n : t) + 1)), Q(o, Wt, T), Q(o, He, u ? "button" : ""), u && We(o, It);
|
|
539
539
|
}
|
|
540
540
|
function D() {
|
|
541
541
|
M || L();
|
|
@@ -543,42 +543,42 @@ function $i(e, t, n, o) {
|
|
|
543
543
|
function L() {
|
|
544
544
|
if (!M) {
|
|
545
545
|
var T = e.index;
|
|
546
|
-
k(), B(), De(o,
|
|
546
|
+
k(), B(), De(o, Qo, t === T - 1), De(o, er, t === T + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function k() {
|
|
550
550
|
var T = H();
|
|
551
|
-
T !==
|
|
551
|
+
T !== Zn(o, ot) && (De(o, ot, T), Q(o, Yo, x && T || ""), i(T ? ko : Ro, S));
|
|
552
552
|
}
|
|
553
553
|
function B() {
|
|
554
554
|
var T = g(), C = !T && (!H() || _);
|
|
555
|
-
if (e.state.is([ht, kt]) ||
|
|
555
|
+
if (e.state.is([ht, kt]) || Q(o, Xo, C || ""), Q(kn(o, p.focusableNodes || ""), gt, C ? -1 : ""), u && Q(o, gt, C ? -1 : 0), T !== Zn(o, _n) && (De(o, _n, T), i(T ? Fo : No, S)), !T && document.activeElement === o) {
|
|
556
556
|
var O = l.Slides.getAt(e.index);
|
|
557
|
-
O &&
|
|
557
|
+
O && To(O.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function P(T, C, O) {
|
|
561
|
-
ke(O &&
|
|
561
|
+
ke(O && z || o, T, C);
|
|
562
562
|
}
|
|
563
563
|
function H() {
|
|
564
564
|
var T = e.index;
|
|
565
565
|
return T === t || p.cloneStatus && T === n;
|
|
566
566
|
}
|
|
567
567
|
function g() {
|
|
568
|
-
if (e.is(
|
|
568
|
+
if (e.is(zt))
|
|
569
569
|
return H();
|
|
570
|
-
var T =
|
|
570
|
+
var T = Te(l.Elements.track), C = Te(o), O = b("left", !0), Y = b("right", !0);
|
|
571
571
|
return qt(T[O]) <= Et(C[O]) && qt(C[Y]) <= Et(T[Y]);
|
|
572
572
|
}
|
|
573
573
|
function I(T, C) {
|
|
574
|
-
var O =
|
|
574
|
+
var O = we(T - t);
|
|
575
575
|
return !_ && (p.rewind || e.is(bt)) && (O = qe(O, e.length - O)), O <= C;
|
|
576
576
|
}
|
|
577
577
|
var S = {
|
|
578
578
|
index: t,
|
|
579
579
|
slideIndex: n,
|
|
580
580
|
slide: o,
|
|
581
|
-
container:
|
|
581
|
+
container: z,
|
|
582
582
|
isClone: _,
|
|
583
583
|
mount: A,
|
|
584
584
|
destroy: $,
|
|
@@ -588,8 +588,8 @@ function $i(e, t, n, o) {
|
|
|
588
588
|
};
|
|
589
589
|
return S;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
var o =
|
|
591
|
+
function Li(e, t, n) {
|
|
592
|
+
var o = ue(e), r = o.on, a = o.emit, i = o.bind, s = t.Elements, l = s.slides, d = s.list, p = [];
|
|
593
593
|
function x() {
|
|
594
594
|
m(), r(he, h), r(he, m);
|
|
595
595
|
}
|
|
@@ -609,7 +609,7 @@ function Ti(e, t, n) {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
function u(L, k, B) {
|
|
612
|
-
var P =
|
|
612
|
+
var P = Ai(e, k, B, L);
|
|
613
613
|
P.mount(), p.push(P), p.sort(function(H, g) {
|
|
614
614
|
return H.index - g.index;
|
|
615
615
|
});
|
|
@@ -629,14 +629,14 @@ function Ti(e, t, n) {
|
|
|
629
629
|
return A(L)[0];
|
|
630
630
|
}
|
|
631
631
|
function _(L, k) {
|
|
632
|
-
|
|
633
|
-
if (Xe(B) && (B =
|
|
632
|
+
Le(L, function(B) {
|
|
633
|
+
if (Xe(B) && (B = Ao(B)), wo(B)) {
|
|
634
634
|
var P = l[k];
|
|
635
|
-
P ?
|
|
635
|
+
P ? In(B, P) : Nt(d, B), Be(B, n.classes.slide), $(B, se(a, mt));
|
|
636
636
|
}
|
|
637
637
|
}), a(he);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function z(L) {
|
|
640
640
|
nt(A(L).map(function(k) {
|
|
641
641
|
return k.slide;
|
|
642
642
|
})), a(he);
|
|
@@ -645,8 +645,8 @@ function Ti(e, t, n) {
|
|
|
645
645
|
b(k).forEach(L);
|
|
646
646
|
}
|
|
647
647
|
function A(L) {
|
|
648
|
-
return p.filter(
|
|
649
|
-
return Xe(L) ? $t(k.slide, L) :
|
|
648
|
+
return p.filter(_o(L) ? L : function(k) {
|
|
649
|
+
return Xe(L) ? $t(k.slide, L) : En(Ft(L), k.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function v(L, k, B) {
|
|
@@ -655,7 +655,7 @@ function Ti(e, t, n) {
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function $(L, k) {
|
|
658
|
-
var B =
|
|
658
|
+
var B = kn(L, "img"), P = B.length;
|
|
659
659
|
P ? B.forEach(function(H) {
|
|
660
660
|
i(H, "load error", function() {
|
|
661
661
|
--P || k();
|
|
@@ -677,7 +677,7 @@ function Ti(e, t, n) {
|
|
|
677
677
|
getIn: w,
|
|
678
678
|
getAt: f,
|
|
679
679
|
add: _,
|
|
680
|
-
remove:
|
|
680
|
+
remove: z,
|
|
681
681
|
forEach: M,
|
|
682
682
|
filter: A,
|
|
683
683
|
style: v,
|
|
@@ -685,17 +685,17 @@ function Ti(e, t, n) {
|
|
|
685
685
|
isEnough: D
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
var o =
|
|
688
|
+
function Ei(e, t, n) {
|
|
689
|
+
var o = ue(e), r = o.on, a = o.bind, i = o.emit, s = t.Slides, l = t.Direction.resolve, d = t.Elements, p = d.root, x = d.track, m = d.list, h = s.getAt, c = s.style, u, b, w;
|
|
690
690
|
function f() {
|
|
691
|
-
_(), a(window, "resize load",
|
|
691
|
+
_(), a(window, "resize load", ui(se(i, mt))), r([_e, he], _), r(mt, z);
|
|
692
692
|
}
|
|
693
693
|
function _() {
|
|
694
|
-
u = n.direction === an, ke(p, "maxWidth", Qe(n.width)), ke(x, l("paddingLeft"), M(!1)), ke(x, l("paddingRight"), M(!0)),
|
|
694
|
+
u = n.direction === an, ke(p, "maxWidth", Qe(n.width)), ke(x, l("paddingLeft"), M(!1)), ke(x, l("paddingRight"), M(!0)), z(!0);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
var T =
|
|
698
|
-
(S || b.width !== T.width || b.height !== T.height) && (ke(x, "height", A()), c(l("marginRight"), Qe(n.gap)), c("width", $()), c("height", R(), !0), b = T, i(Qt), w !== (w = I()) && (De(p,
|
|
696
|
+
function z(S) {
|
|
697
|
+
var T = Te(p);
|
|
698
|
+
(S || b.width !== T.width || b.height !== T.height) && (ke(x, "height", A()), c(l("marginRight"), Qe(n.gap)), c("width", $()), c("height", R(), !0), b = T, i(Qt), w !== (w = I()) && (De(p, nr, w), i(si, w)));
|
|
699
699
|
}
|
|
700
700
|
function M(S) {
|
|
701
701
|
var T = n.padding, C = l(S ? "right" : "left");
|
|
@@ -706,7 +706,7 @@ function Ai(e, t, n) {
|
|
|
706
706
|
return u && (S = v(), St(S, "height or heightRatio is missing."), S = "calc(" + S + " - " + M(!1) + " - " + M(!0) + ")"), S;
|
|
707
707
|
}
|
|
708
708
|
function v() {
|
|
709
|
-
return Qe(n.height ||
|
|
709
|
+
return Qe(n.height || Te(m).width * n.heightRatio);
|
|
710
710
|
}
|
|
711
711
|
function $() {
|
|
712
712
|
return n.autoWidth ? null : Qe(n.fixedWidth) || (u ? "" : D());
|
|
@@ -719,17 +719,17 @@ function Ai(e, t, n) {
|
|
|
719
719
|
return "calc((100%" + (S && " + " + S) + ")/" + (n.perPage || 1) + (S && " - " + S) + ")";
|
|
720
720
|
}
|
|
721
721
|
function L() {
|
|
722
|
-
return
|
|
722
|
+
return Te(m)[l("width")];
|
|
723
723
|
}
|
|
724
724
|
function k(S, T) {
|
|
725
725
|
var C = h(S || 0);
|
|
726
|
-
return C ?
|
|
726
|
+
return C ? Te(C.slide)[l("width")] + (T ? 0 : H()) : 0;
|
|
727
727
|
}
|
|
728
728
|
function B(S, T) {
|
|
729
729
|
var C = h(S);
|
|
730
730
|
if (C) {
|
|
731
|
-
var O =
|
|
732
|
-
return
|
|
731
|
+
var O = Te(C.slide)[l("right")], Y = Te(m)[l("left")];
|
|
732
|
+
return we(O - Y) + (T ? 0 : H());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
@@ -744,11 +744,11 @@ function Ai(e, t, n) {
|
|
|
744
744
|
return parseFloat(ke(x, l("padding" + (S ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function I() {
|
|
747
|
-
return e.is(
|
|
747
|
+
return e.is(zt) || P(!0) > L();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: f,
|
|
751
|
-
resize:
|
|
751
|
+
resize: z,
|
|
752
752
|
listSize: L,
|
|
753
753
|
slideSize: k,
|
|
754
754
|
sliderSize: P,
|
|
@@ -757,11 +757,11 @@ function Ai(e, t, n) {
|
|
|
757
757
|
isOverflow: I
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
var
|
|
761
|
-
function
|
|
762
|
-
var o =
|
|
760
|
+
var Ii = 2;
|
|
761
|
+
function ki(e, t, n) {
|
|
762
|
+
var o = ue(e), r = o.on, a = t.Elements, i = t.Slides, s = t.Direction.resolve, l = [], d;
|
|
763
763
|
function p() {
|
|
764
|
-
r(he, x), r([
|
|
764
|
+
r(he, x), r([_e, mt], h), (d = b()) && (c(d), t.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
766
|
function x() {
|
|
767
767
|
m(), p();
|
|
@@ -778,23 +778,23 @@ function Ei(e, t, n) {
|
|
|
778
778
|
if (_) {
|
|
779
779
|
for (; f.length < w; )
|
|
780
780
|
jt(f, f);
|
|
781
|
-
jt(f.slice(-w), f.slice(0, w)).forEach(function(
|
|
782
|
-
var A = M < w, v = u(
|
|
783
|
-
A ?
|
|
781
|
+
jt(f.slice(-w), f.slice(0, w)).forEach(function(z, M) {
|
|
782
|
+
var A = M < w, v = u(z.slide, M);
|
|
783
|
+
A ? In(v, f[0].slide) : Nt(a.list, v), jt(l, v), i.register(v, M - w + (A ? 0 : _), z.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function u(w, f) {
|
|
788
788
|
var _ = w.cloneNode(!0);
|
|
789
|
-
return
|
|
789
|
+
return Be(_, n.classes.clone), _.id = e.root.id + "-clone" + Fn(f + 1), _;
|
|
790
790
|
}
|
|
791
791
|
function b() {
|
|
792
792
|
var w = n.clones;
|
|
793
793
|
if (!e.is(bt))
|
|
794
794
|
w = 0;
|
|
795
795
|
else if (Rt(w)) {
|
|
796
|
-
var f = n[s("fixedWidth")] && t.Layout.slideSize(0), _ = f && Et(
|
|
797
|
-
w = _ || n[s("autoWidth")] && e.length || n.perPage *
|
|
796
|
+
var f = n[s("fixedWidth")] && t.Layout.slideSize(0), _ = f && Et(Te(a.track)[s("width")] / f);
|
|
797
|
+
w = _ || n[s("autoWidth")] && e.length || n.perPage * Ii;
|
|
798
798
|
}
|
|
799
799
|
return w;
|
|
800
800
|
}
|
|
@@ -803,10 +803,10 @@ function Ei(e, t, n) {
|
|
|
803
803
|
destroy: m
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
var o =
|
|
808
|
-
function
|
|
809
|
-
_ = t.Transition, r([Je, Qt,
|
|
806
|
+
function Ri(e, t, n) {
|
|
807
|
+
var o = ue(e), r = o.on, a = o.emit, i = e.state.set, s = t.Layout, l = s.slideSize, d = s.getPadding, p = s.totalSize, x = s.listSize, m = s.sliderSize, h = t.Direction, c = h.resolve, u = h.orient, b = t.Elements, w = b.list, f = b.track, _;
|
|
808
|
+
function z() {
|
|
809
|
+
_ = t.Transition, r([Je, Qt, _e, he], M);
|
|
810
810
|
}
|
|
811
811
|
function M() {
|
|
812
812
|
t.Controller.isBusy() || (t.Scroll.cancel(), v(e.index), t.Slides.update());
|
|
@@ -820,9 +820,9 @@ function Ii(e, t, n) {
|
|
|
820
820
|
$(B(C, !0));
|
|
821
821
|
}
|
|
822
822
|
function $(C, O) {
|
|
823
|
-
if (!e.is(
|
|
823
|
+
if (!e.is(zt)) {
|
|
824
824
|
var Y = O ? C : R(C);
|
|
825
|
-
ke(w, "transform", "translate" + c("X") + "(" + Y + "px)"), C !== Y && a(
|
|
825
|
+
ke(w, "transform", "translate" + c("X") + "(" + Y + "px)"), C !== Y && a(Po);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function R(C) {
|
|
@@ -834,14 +834,14 @@ function Ii(e, t, n) {
|
|
|
834
834
|
}
|
|
835
835
|
function D(C, O) {
|
|
836
836
|
var Y = C - I(O), re = m();
|
|
837
|
-
return C -= u(re * (Et(
|
|
837
|
+
return C -= u(re * (Et(we(Y) / re) || 1)) * (O ? 1 : -1), C;
|
|
838
838
|
}
|
|
839
839
|
function L() {
|
|
840
840
|
$(P(), !0), _.cancel();
|
|
841
841
|
}
|
|
842
842
|
function k(C) {
|
|
843
843
|
for (var O = t.Slides.get(), Y = 0, re = 1 / 0, Z = 0; Z < O.length; Z++) {
|
|
844
|
-
var me = O[Z].index, E =
|
|
844
|
+
var me = O[Z].index, E = we(B(me, !0) - C);
|
|
845
845
|
if (E <= re)
|
|
846
846
|
re = E, Y = me;
|
|
847
847
|
else
|
|
@@ -855,7 +855,7 @@ function Ii(e, t, n) {
|
|
|
855
855
|
}
|
|
856
856
|
function P() {
|
|
857
857
|
var C = c("left");
|
|
858
|
-
return
|
|
858
|
+
return Te(w)[C] - Te(f)[C] + u(d(!1));
|
|
859
859
|
}
|
|
860
860
|
function H(C) {
|
|
861
861
|
return n.trimSpace && e.is(yt) && (C = ct(C, 0, u(m(!0) - x()))), C;
|
|
@@ -869,7 +869,7 @@ function Ii(e, t, n) {
|
|
|
869
869
|
}
|
|
870
870
|
function S(C) {
|
|
871
871
|
var O = u(D(P(), C));
|
|
872
|
-
return C ? O >= 0 : O <= w[c("scrollWidth")] -
|
|
872
|
+
return C ? O >= 0 : O <= w[c("scrollWidth")] - Te(f)[c("width")];
|
|
873
873
|
}
|
|
874
874
|
function T(C, O) {
|
|
875
875
|
O = Rt(O) ? P() : O;
|
|
@@ -877,7 +877,7 @@ function Ii(e, t, n) {
|
|
|
877
877
|
return Y || re;
|
|
878
878
|
}
|
|
879
879
|
return {
|
|
880
|
-
mount:
|
|
880
|
+
mount: z,
|
|
881
881
|
move: A,
|
|
882
882
|
jump: v,
|
|
883
883
|
translate: $,
|
|
@@ -891,10 +891,10 @@ function Ii(e, t, n) {
|
|
|
891
891
|
reposition: M
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
var o =
|
|
894
|
+
function Fi(e, t, n) {
|
|
895
|
+
var o = ue(e), r = o.on, a = o.emit, i = t.Move, s = i.getPosition, l = i.getLimit, d = i.toPosition, p = t.Slides, x = p.isEnough, m = p.getLength, h = n.omitEnd, c = e.is(bt), u = e.is(yt), b = se(P, !1), w = se(P, !0), f = n.start || 0, _, z = f, M, A, v;
|
|
896
896
|
function $() {
|
|
897
|
-
R(), r([
|
|
897
|
+
R(), r([_e, he, Kt], R), r(Qt, D);
|
|
898
898
|
}
|
|
899
899
|
function R() {
|
|
900
900
|
M = m(!0), A = n.perMove, v = n.perPage, _ = S();
|
|
@@ -906,28 +906,28 @@ function ki(e, t, n) {
|
|
|
906
906
|
}
|
|
907
907
|
function L(E, q, ye) {
|
|
908
908
|
if (!me()) {
|
|
909
|
-
var ie = B(E),
|
|
910
|
-
|
|
909
|
+
var ie = B(E), pe = I(ie);
|
|
910
|
+
pe > -1 && (q || pe !== f) && (Y(pe), i.move(ie, pe, z, ye));
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
function k(E, q, ye, ie) {
|
|
914
914
|
t.Scroll.scroll(E, q, ye, function() {
|
|
915
|
-
var
|
|
916
|
-
Y(h ? qe(
|
|
915
|
+
var pe = I(i.toIndex(s()));
|
|
916
|
+
Y(h ? qe(pe, _) : pe), ie && ie();
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function B(E) {
|
|
920
920
|
var q = f;
|
|
921
921
|
if (Xe(E)) {
|
|
922
|
-
var ye = E.match(/([+\-<>])(\d+)?/) || [], ie = ye[1],
|
|
923
|
-
ie === "+" || ie === "-" ? q = H(f + +("" + ie + (+
|
|
922
|
+
var ye = E.match(/([+\-<>])(\d+)?/) || [], ie = ye[1], pe = ye[2];
|
|
923
|
+
ie === "+" || ie === "-" ? q = H(f + +("" + ie + (+pe || 1)), f) : ie === ">" ? q = pe ? T(+pe) : b(!0) : ie === "<" && (q = w(!0));
|
|
924
924
|
} else
|
|
925
925
|
q = c ? E : ct(E, 0, _);
|
|
926
926
|
return q;
|
|
927
927
|
}
|
|
928
928
|
function P(E, q) {
|
|
929
929
|
var ye = A || (Z() ? 1 : v), ie = H(f + ye * (E ? -1 : 1), f, !(A || Z()));
|
|
930
|
-
return ie === -1 && u && !
|
|
930
|
+
return ie === -1 && u && !Eo(s(), l(!E), 1) ? E ? 0 : _ : q ? ie : I(ie);
|
|
931
931
|
}
|
|
932
932
|
function H(E, q, ye) {
|
|
933
933
|
if (x() || Z()) {
|
|
@@ -965,10 +965,10 @@ function ki(e, t, n) {
|
|
|
965
965
|
return u ? ct(q, 0, _) : q;
|
|
966
966
|
}
|
|
967
967
|
function Y(E) {
|
|
968
|
-
E !== f && (
|
|
968
|
+
E !== f && (z = f, f = E);
|
|
969
969
|
}
|
|
970
970
|
function re(E) {
|
|
971
|
-
return E ?
|
|
971
|
+
return E ? z : f;
|
|
972
972
|
}
|
|
973
973
|
function Z() {
|
|
974
974
|
return !Rt(n.focus) || n.isNavigation;
|
|
@@ -993,13 +993,13 @@ function ki(e, t, n) {
|
|
|
993
993
|
isBusy: me
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
var
|
|
997
|
-
function
|
|
998
|
-
var o =
|
|
996
|
+
var Ni = "http://www.w3.org/2000/svg", Oi = "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", Mt = 40;
|
|
997
|
+
function Bi(e, t, n) {
|
|
998
|
+
var o = ue(e), r = o.on, a = o.bind, i = o.emit, s = n.classes, l = n.i18n, d = t.Elements, p = t.Controller, x = d.arrows, m = d.track, h = x, c = d.prev, u = d.next, b, w, f = {};
|
|
999
999
|
function _() {
|
|
1000
|
-
M(), r(
|
|
1000
|
+
M(), r(_e, z);
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function z() {
|
|
1003
1003
|
A(), _();
|
|
1004
1004
|
}
|
|
1005
1005
|
function M() {
|
|
@@ -1007,10 +1007,10 @@ function Ni(e, t, n) {
|
|
|
1007
1007
|
k && !(c && u) && R(), c && u && (At(f, {
|
|
1008
1008
|
prev: c,
|
|
1009
1009
|
next: u
|
|
1010
|
-
}), Lt(h, k ? "" : "none"),
|
|
1010
|
+
}), Lt(h, k ? "" : "none"), Be(h, w = jn + "--" + n.direction), k && (v(), L(), Q([c, u], Wt, m.id), i(zo, c, u)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function A() {
|
|
1013
|
-
o.destroy(), Ve(h, w), b ? (nt(x ? [c, u] : h), c = u = null) :
|
|
1013
|
+
o.destroy(), Ve(h, w), b ? (nt(x ? [c, u] : h), c = u = null) : We([c, u], Hn);
|
|
1014
1014
|
}
|
|
1015
1015
|
function v() {
|
|
1016
1016
|
r([Je, vt, he, rt, Kt], L), a(u, "click", se($, ">")), a(c, "click", se($, "<"));
|
|
@@ -1019,16 +1019,16 @@ function Ni(e, t, n) {
|
|
|
1019
1019
|
p.go(k, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function R() {
|
|
1022
|
-
h = x || dt("div", s.arrows), c = D(!0), u = D(!1), b = !0, Nt(h, [c, u]), !x &&
|
|
1022
|
+
h = x || dt("div", s.arrows), c = D(!0), u = D(!1), b = !0, Nt(h, [c, u]), !x && In(h, m);
|
|
1023
1023
|
}
|
|
1024
1024
|
function D(k) {
|
|
1025
|
-
var B = '<button class="' + s.arrow + " " + (k ? s.prev : s.next) + '" type="button"><svg xmlns="' +
|
|
1026
|
-
return
|
|
1025
|
+
var B = '<button class="' + s.arrow + " " + (k ? s.prev : s.next) + '" type="button"><svg xmlns="' + Ni + '" viewBox="0 0 ' + Mt + " " + Mt + '" width="' + Mt + '" height="' + Mt + '" focusable="false"><path d="' + (n.arrowPath || Oi) + '" />';
|
|
1026
|
+
return Ao(B);
|
|
1027
1027
|
}
|
|
1028
1028
|
function L() {
|
|
1029
1029
|
if (c && u) {
|
|
1030
1030
|
var k = e.index, B = p.getPrev(), P = p.getNext(), H = B > -1 && k < B ? l.last : l.prev, g = P > -1 && k > P ? l.first : l.next;
|
|
1031
|
-
c.disabled = B < 0, u.disabled = P < 0,
|
|
1031
|
+
c.disabled = B < 0, u.disabled = P < 0, Q(c, Ae, H), Q(u, Ae, g), i(Mo, c, u, B, P);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
@@ -1038,11 +1038,11 @@ function Ni(e, t, n) {
|
|
|
1038
1038
|
update: L
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1043
|
-
var o =
|
|
1041
|
+
var Wi = Rn + "-interval";
|
|
1042
|
+
function zi(e, t, n) {
|
|
1043
|
+
var o = ue(e), r = o.on, a = o.bind, i = o.emit, s = tn(n.interval, e.go.bind(e, ">"), v), l = s.isPaused, d = t.Elements, p = t.Elements, x = p.root, m = p.toggle, h = n.autoplay, c, u, b = h === "pause";
|
|
1044
1044
|
function w() {
|
|
1045
|
-
h && (f(), m &&
|
|
1045
|
+
h && (f(), m && Q(m, Wt, d.track.id), b || _(), A());
|
|
1046
1046
|
}
|
|
1047
1047
|
function f() {
|
|
1048
1048
|
n.pauseOnHover && a(x, "mouseenter mouseleave", function(R) {
|
|
@@ -1050,41 +1050,41 @@ function Bi(e, t, n) {
|
|
|
1050
1050
|
}), n.pauseOnFocus && a(x, "focusin focusout", function(R) {
|
|
1051
1051
|
u = R.type === "focusin", M();
|
|
1052
1052
|
}), m && a(m, "click", function() {
|
|
1053
|
-
b ? _() :
|
|
1053
|
+
b ? _() : z(!0);
|
|
1054
1054
|
}), r([Pe, en, he], s.rewind), r(Pe, $);
|
|
1055
1055
|
}
|
|
1056
1056
|
function _() {
|
|
1057
|
-
l() && t.Slides.isEnough() && (s.start(!n.resetProgress), u = c = b = !1, A(), i(
|
|
1057
|
+
l() && t.Slides.isEnough() && (s.start(!n.resetProgress), u = c = b = !1, A(), i(Wn));
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function z(R) {
|
|
1060
1060
|
R === void 0 && (R = !0), b = !!R, A(), l() || (s.pause(), i(zn));
|
|
1061
1061
|
}
|
|
1062
1062
|
function M() {
|
|
1063
|
-
b || (c || u ?
|
|
1063
|
+
b || (c || u ? z(!1) : _());
|
|
1064
1064
|
}
|
|
1065
1065
|
function A() {
|
|
1066
|
-
m && (De(m, ot, !b),
|
|
1066
|
+
m && (De(m, ot, !b), Q(m, Ae, n.i18n[b ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function v(R) {
|
|
1069
1069
|
var D = d.bar;
|
|
1070
|
-
D && ke(D, "width", R * 100 + "%"), i(
|
|
1070
|
+
D && ke(D, "width", R * 100 + "%"), i(Ho, R);
|
|
1071
1071
|
}
|
|
1072
1072
|
function $(R) {
|
|
1073
1073
|
var D = t.Slides.getAt(R);
|
|
1074
|
-
s.set(D && +Re(D.slide,
|
|
1074
|
+
s.set(D && +Re(D.slide, Wi) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
mount: w,
|
|
1078
1078
|
destroy: s.cancel,
|
|
1079
1079
|
play: _,
|
|
1080
|
-
pause:
|
|
1080
|
+
pause: z,
|
|
1081
1081
|
isPaused: l
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
var o =
|
|
1084
|
+
function Mi(e, t, n) {
|
|
1085
|
+
var o = ue(e), r = o.on;
|
|
1086
1086
|
function a() {
|
|
1087
|
-
n.cover && (r(
|
|
1087
|
+
n.cover && (r(Mn, se(s, !0)), r([Je, _e, he], se(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(l) {
|
|
1090
1090
|
t.Slides.forEach(function(d) {
|
|
@@ -1100,33 +1100,33 @@ function zi(e, t, n) {
|
|
|
1100
1100
|
destroy: se(i, !1)
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1105
|
-
var o =
|
|
1103
|
+
var Di = 10, Vi = 600, Hi = 0.6, ji = 1.5, Pi = 800;
|
|
1104
|
+
function Ui(e, t, n) {
|
|
1105
|
+
var o = ue(e), r = o.on, a = o.emit, i = e.state.set, s = t.Move, l = s.getPosition, d = s.getLimit, p = s.exceededLimit, x = s.translate, m = e.is(yt), h, c, u = 1;
|
|
1106
1106
|
function b() {
|
|
1107
|
-
r(Pe,
|
|
1107
|
+
r(Pe, z), r([_e, he], M);
|
|
1108
1108
|
}
|
|
1109
1109
|
function w(v, $, R, D, L) {
|
|
1110
1110
|
var k = l();
|
|
1111
|
-
if (
|
|
1112
|
-
var B = t.Layout.sliderSize(), P =
|
|
1111
|
+
if (z(), R && (!m || !p())) {
|
|
1112
|
+
var B = t.Layout.sliderSize(), P = Sn(v) * B * qt(we(v) / B) || 0;
|
|
1113
1113
|
v = s.toPosition(t.Controller.toDest(v % B)) + P;
|
|
1114
1114
|
}
|
|
1115
|
-
var H =
|
|
1116
|
-
u = 1, $ = H ? 0 : $ || Xt(
|
|
1115
|
+
var H = Eo(k, v, 1);
|
|
1116
|
+
u = 1, $ = H ? 0 : $ || Xt(we(v - k) / ji, Pi), c = D, h = tn($, f, se(_, k, v, L), 1), i(kt), a(en), h.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function f() {
|
|
1119
1119
|
i(ft), c && c(), a(rt);
|
|
1120
1120
|
}
|
|
1121
1121
|
function _(v, $, R, D) {
|
|
1122
1122
|
var L = l(), k = v + ($ - v) * A(D), B = (k - L) * u;
|
|
1123
|
-
x(L + B), m && !R && p() && (u *=
|
|
1123
|
+
x(L + B), m && !R && p() && (u *= Hi, we(B) < Di && w(d(p(!0)), Vi, !1, c, !0));
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function z() {
|
|
1126
1126
|
h && h.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
function M() {
|
|
1129
|
-
h && !h.isPaused() && (
|
|
1129
|
+
h && !h.isPaused() && (z(), f());
|
|
1130
1130
|
}
|
|
1131
1131
|
function A(v) {
|
|
1132
1132
|
var $ = n.easingFunc;
|
|
@@ -1134,7 +1134,7 @@ function ji(e, t, n) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
return {
|
|
1136
1136
|
mount: b,
|
|
1137
|
-
destroy:
|
|
1137
|
+
destroy: z,
|
|
1138
1138
|
scroll: w,
|
|
1139
1139
|
cancel: M
|
|
1140
1140
|
};
|
|
@@ -1143,12 +1143,12 @@ var ut = {
|
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
|
-
function
|
|
1147
|
-
var o =
|
|
1146
|
+
function Gi(e, t, n) {
|
|
1147
|
+
var o = ue(e), r = o.on, a = o.emit, i = o.bind, s = o.unbind, l = e.state, d = t.Move, p = t.Scroll, x = t.Controller, m = t.Elements.track, h = t.Media.reduce, c = t.Direction, u = c.resolve, b = c.orient, w = d.getPosition, f = d.exceededLimit, _, z, M, A, v, $ = !1, R, D, L;
|
|
1148
1148
|
function k() {
|
|
1149
|
-
i(m,
|
|
1149
|
+
i(m, gn, vn, ut), i(m, fn, vn, ut), i(m, or, P, ut), i(m, "click", I, {
|
|
1150
1150
|
capture: !0
|
|
1151
|
-
}), i(m, "dragstart", Me), r([Je,
|
|
1151
|
+
}), i(m, "dragstart", Me), r([Je, _e], B);
|
|
1152
1152
|
}
|
|
1153
1153
|
function B() {
|
|
1154
1154
|
var V = n.drag;
|
|
@@ -1156,72 +1156,72 @@ function Pi(e, t, n) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
function P(V) {
|
|
1158
1158
|
if (R = !1, !D) {
|
|
1159
|
-
var y =
|
|
1160
|
-
ie(V.target) && (y || !V.button) && (x.isBusy() ? Me(V, !0) : (L = y ? m : window, v = l.is([ht, kt]), M = null, i(L,
|
|
1159
|
+
var y = pe(V);
|
|
1160
|
+
ie(V.target) && (y || !V.button) && (x.isBusy() ? Me(V, !0) : (L = y ? m : window, v = l.is([ht, kt]), M = null, i(L, gn, H, ut), i(L, fn, g, ut), d.cancel(), p.cancel(), S(V)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function H(V) {
|
|
1164
|
-
if (l.is(Ht) || (l.set(Ht), a(
|
|
1164
|
+
if (l.is(Ht) || (l.set(Ht), a(Oo)), V.cancelable)
|
|
1165
1165
|
if (v) {
|
|
1166
1166
|
d.translate(_ + ye(Z(V)));
|
|
1167
|
-
var y = me(V) >
|
|
1168
|
-
(y || j) && S(V), R = !0, a(
|
|
1167
|
+
var y = me(V) > ao, j = $ !== ($ = f());
|
|
1168
|
+
(y || j) && S(V), R = !0, a(Bo), Me(V);
|
|
1169
1169
|
} else O(V) && (v = C(V), Me(V));
|
|
1170
1170
|
}
|
|
1171
1171
|
function g(V) {
|
|
1172
|
-
l.is(Ht) && (l.set(ft), a(
|
|
1172
|
+
l.is(Ht) && (l.set(ft), a(Wo)), v && (T(V), Me(V)), s(L, gn, H), s(L, fn, g), v = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function I(V) {
|
|
1175
1175
|
!D && R && Me(V, !0);
|
|
1176
1176
|
}
|
|
1177
1177
|
function S(V) {
|
|
1178
|
-
M =
|
|
1178
|
+
M = z, z = V, _ = w();
|
|
1179
1179
|
}
|
|
1180
1180
|
function T(V) {
|
|
1181
1181
|
var y = Y(V), j = re(y), U = n.rewind && n.rewindByDrag;
|
|
1182
|
-
h(!1), A ? x.scroll(j, 0, n.snap) : e.is(
|
|
1182
|
+
h(!1), A ? x.scroll(j, 0, n.snap) : e.is(zt) ? x.go(b(Sn(y)) < 0 ? U ? "<" : "-" : U ? ">" : "+") : e.is(yt) && $ && U ? x.go(f(!0) ? ">" : "<") : x.go(x.toDest(j), !0), h(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function C(V) {
|
|
1185
1185
|
var y = n.dragMinThreshold, j = wt(y), U = j && y.mouse || 0, K = (j ? y.touch : +y) || 10;
|
|
1186
|
-
return
|
|
1186
|
+
return we(Z(V)) > (pe(V) ? K : U);
|
|
1187
1187
|
}
|
|
1188
1188
|
function O(V) {
|
|
1189
|
-
return
|
|
1189
|
+
return we(Z(V)) > we(Z(V, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function Y(V) {
|
|
1192
1192
|
if (e.is(bt) || !$) {
|
|
1193
1193
|
var y = me(V);
|
|
1194
|
-
if (y && y <
|
|
1194
|
+
if (y && y < ao)
|
|
1195
1195
|
return Z(V) / y;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function re(V) {
|
|
1200
|
-
return w() +
|
|
1200
|
+
return w() + Sn(V) * qe(we(V) * (n.flickPower || 600), A ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function Z(V, y) {
|
|
1203
1203
|
return q(V, y) - q(E(V), y);
|
|
1204
1204
|
}
|
|
1205
1205
|
function me(V) {
|
|
1206
|
-
return
|
|
1206
|
+
return bn(V) - bn(E(V));
|
|
1207
1207
|
}
|
|
1208
1208
|
function E(V) {
|
|
1209
|
-
return
|
|
1209
|
+
return z === V && M || z;
|
|
1210
1210
|
}
|
|
1211
1211
|
function q(V, y) {
|
|
1212
|
-
return (
|
|
1212
|
+
return (pe(V) ? V.changedTouches[0] : V)["page" + u(y ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function ye(V) {
|
|
1215
|
-
return V / ($ && e.is(yt) ?
|
|
1215
|
+
return V / ($ && e.is(yt) ? $i : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function ie(V) {
|
|
1218
1218
|
var y = n.noDrag;
|
|
1219
|
-
return !$t(V, "." +
|
|
1219
|
+
return !$t(V, "." + Zo + ", ." + sn) && (!y || !$t(V, y));
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function pe(V) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && V instanceof TouchEvent;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function de() {
|
|
1225
1225
|
return v;
|
|
1226
1226
|
}
|
|
1227
1227
|
function Ue(V) {
|
|
@@ -1230,44 +1230,44 @@ function Pi(e, t, n) {
|
|
|
1230
1230
|
return {
|
|
1231
1231
|
mount: k,
|
|
1232
1232
|
disable: Ue,
|
|
1233
|
-
isDragging:
|
|
1233
|
+
isDragging: de
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var Yi = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
1238
|
Right: rn,
|
|
1239
1239
|
Left: on,
|
|
1240
|
-
Up:
|
|
1241
|
-
Down:
|
|
1240
|
+
Up: Uo,
|
|
1241
|
+
Down: Go
|
|
1242
1242
|
};
|
|
1243
|
-
function
|
|
1244
|
-
return e = Xe(e) ? e : e.key,
|
|
1243
|
+
function Pn(e) {
|
|
1244
|
+
return e = Xe(e) ? e : e.key, Yi[e] || e;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1248
|
-
var o =
|
|
1246
|
+
var lo = "keydown";
|
|
1247
|
+
function Xi(e, t, n) {
|
|
1248
|
+
var o = ue(e), r = o.on, a = o.bind, i = o.unbind, s = e.root, l = t.Direction.resolve, d, p;
|
|
1249
1249
|
function x() {
|
|
1250
|
-
m(), r(
|
|
1250
|
+
m(), r(_e, h), r(_e, m), r(Pe, u);
|
|
1251
1251
|
}
|
|
1252
1252
|
function m() {
|
|
1253
1253
|
var w = n.keyboard;
|
|
1254
|
-
w && (d = w === "global" ? window : s, a(d,
|
|
1254
|
+
w && (d = w === "global" ? window : s, a(d, lo, b));
|
|
1255
1255
|
}
|
|
1256
1256
|
function h() {
|
|
1257
|
-
i(d,
|
|
1257
|
+
i(d, lo);
|
|
1258
1258
|
}
|
|
1259
1259
|
function c(w) {
|
|
1260
1260
|
p = w;
|
|
1261
1261
|
}
|
|
1262
1262
|
function u() {
|
|
1263
1263
|
var w = p;
|
|
1264
|
-
p = !0,
|
|
1264
|
+
p = !0, xo(function() {
|
|
1265
1265
|
p = w;
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
1268
|
function b(w) {
|
|
1269
1269
|
if (!p) {
|
|
1270
|
-
var f =
|
|
1270
|
+
var f = Pn(w);
|
|
1271
1271
|
f === l(on) ? e.go("<") : f === l(rn) && e.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
@@ -1277,9 +1277,9 @@ function Gi(e, t, n) {
|
|
|
1277
1277
|
disable: c
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var Ct =
|
|
1281
|
-
function
|
|
1282
|
-
var o =
|
|
1280
|
+
var Ct = Rn + "-lazy", Ut = Ct + "-srcset", qi = "[" + Ct + "], [" + Ut + "]";
|
|
1281
|
+
function Ki(e, t, n) {
|
|
1282
|
+
var o = ue(e), r = o.on, a = o.off, i = o.bind, s = o.emit, l = n.lazyLoad === "sequential", d = [vt, rt], p = [];
|
|
1283
1283
|
function x() {
|
|
1284
1284
|
n.lazyLoad && (m(), r(he, m));
|
|
1285
1285
|
}
|
|
@@ -1288,9 +1288,9 @@ function Xi(e, t, n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function h() {
|
|
1290
1290
|
t.Slides.forEach(function(f) {
|
|
1291
|
-
|
|
1292
|
-
var
|
|
1293
|
-
if (
|
|
1291
|
+
kn(f.slide, qi).forEach(function(_) {
|
|
1292
|
+
var z = Re(_, Ct), M = Re(_, Ut);
|
|
1293
|
+
if (z !== _.src || M !== _.srcset) {
|
|
1294
1294
|
var A = n.classes.spinner, v = _.parentElement, $ = Ot(v, "." + A) || dt("span", A, v);
|
|
1295
1295
|
p.push([_, f, $]), _.src || Lt(_, "none");
|
|
1296
1296
|
}
|
|
@@ -1305,11 +1305,11 @@ function Xi(e, t, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function u(f) {
|
|
1307
1307
|
var _ = f[0];
|
|
1308
|
-
|
|
1308
|
+
Be(f[1].slide, wn), i(_, "load error", se(b, f)), Q(_, "src", Re(_, Ct)), Q(_, "srcset", Re(_, Ut)), We(_, Ct), We(_, Ut);
|
|
1309
1309
|
}
|
|
1310
1310
|
function b(f, _) {
|
|
1311
|
-
var
|
|
1312
|
-
Ve(M.slide,
|
|
1311
|
+
var z = f[0], M = f[1];
|
|
1312
|
+
Ve(M.slide, wn), _.type !== "error" && (nt(f[2]), Lt(z, ""), s(Mn, z, M), s(mt)), l && w();
|
|
1313
1313
|
}
|
|
1314
1314
|
function w() {
|
|
1315
1315
|
p.length && u(p.shift());
|
|
@@ -1320,12 +1320,12 @@ function Xi(e, t, n) {
|
|
|
1320
1320
|
check: c
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
var o =
|
|
1323
|
+
function Ji(e, t, n) {
|
|
1324
|
+
var o = ue(e), r = o.on, a = o.emit, i = o.bind, s = t.Slides, l = t.Elements, d = t.Controller, p = d.hasFocus, x = d.getIndex, m = d.go, h = t.Direction.resolve, c = l.pagination, u = [], b, w;
|
|
1325
1325
|
function f() {
|
|
1326
|
-
_(), r([
|
|
1326
|
+
_(), r([_e, he, Kt], f);
|
|
1327
1327
|
var D = n.pagination;
|
|
1328
|
-
c && Lt(c, D ? "" : "none"), D && (r([Pe, en, rt], R),
|
|
1328
|
+
c && Lt(c, D ? "" : "none"), D && (r([Pe, en, rt], R), z(), R(), a(Do, {
|
|
1329
1329
|
list: b,
|
|
1330
1330
|
items: u
|
|
1331
1331
|
}, $(e.index)));
|
|
@@ -1333,9 +1333,9 @@ function qi(e, t, n) {
|
|
|
1333
1333
|
function _() {
|
|
1334
1334
|
b && (nt(c ? Ke(b.children) : b), Ve(b, w), je(u), b = null), o.destroy();
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function z() {
|
|
1337
1337
|
var D = e.length, L = n.classes, k = n.i18n, B = n.perPage, P = p() ? d.getEnd() + 1 : Et(D / B);
|
|
1338
|
-
b = c || dt("ul", L.pagination, l.track.parentElement),
|
|
1338
|
+
b = c || dt("ul", L.pagination, l.track.parentElement), Be(b, w = cn + "--" + v()), Q(b, He, "tablist"), Q(b, Ae, k.select), Q(b, Vn, v() === an ? "vertical" : "");
|
|
1339
1339
|
for (var H = 0; H < P; H++) {
|
|
1340
1340
|
var g = dt("li", null, b), I = dt("button", {
|
|
1341
1341
|
class: L.page,
|
|
@@ -1343,7 +1343,7 @@ function qi(e, t, n) {
|
|
|
1343
1343
|
}, g), S = s.getIn(H).map(function(C) {
|
|
1344
1344
|
return C.slide.id;
|
|
1345
1345
|
}), T = !p() && B > 1 ? k.pageX : k.slideX;
|
|
1346
|
-
i(I, "click", se(M, H)), n.paginationKeyboard && i(I, "keydown", se(A, H)),
|
|
1346
|
+
i(I, "click", se(M, H)), n.paginationKeyboard && i(I, "keydown", se(A, H)), Q(g, He, "presentation"), Q(I, He, "tab"), Q(I, Wt, S.join(" ")), Q(I, Ae, Cn(T, H + 1)), Q(I, gt, -1), u.push({
|
|
1347
1347
|
li: g,
|
|
1348
1348
|
button: I,
|
|
1349
1349
|
page: H
|
|
@@ -1354,10 +1354,10 @@ function qi(e, t, n) {
|
|
|
1354
1354
|
m(">" + D, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function A(D, L) {
|
|
1357
|
-
var k = u.length, B =
|
|
1357
|
+
var k = u.length, B = Pn(L), P = v(), H = -1;
|
|
1358
1358
|
B === h(rn, !1, P) ? H = ++D % k : B === h(on, !1, P) ? H = (--D + k) % k : B === "Home" ? H = 0 : B === "End" && (H = k - 1);
|
|
1359
1359
|
var g = u[H];
|
|
1360
|
-
g && (
|
|
1360
|
+
g && (To(g.button), m(">" + H), Me(L, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function v() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1369,13 +1369,13 @@ function qi(e, t, n) {
|
|
|
1369
1369
|
var D = $(x(!0)), L = $(x());
|
|
1370
1370
|
if (D) {
|
|
1371
1371
|
var k = D.button;
|
|
1372
|
-
Ve(k, ot),
|
|
1372
|
+
Ve(k, ot), We(k, to), Q(k, gt, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (L) {
|
|
1375
1375
|
var B = L.button;
|
|
1376
|
-
|
|
1376
|
+
Be(B, ot), Q(B, to, !0), Q(B, gt, "");
|
|
1377
1377
|
}
|
|
1378
|
-
a(
|
|
1378
|
+
a(Vo, {
|
|
1379
1379
|
list: b,
|
|
1380
1380
|
items: u
|
|
1381
1381
|
}, D, L);
|
|
@@ -1388,8 +1388,8 @@ function qi(e, t, n) {
|
|
|
1388
1388
|
update: R
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1392
|
-
function
|
|
1391
|
+
var Zi = [" ", "Enter"];
|
|
1392
|
+
function Qi(e, t, n) {
|
|
1393
1393
|
var o = n.isNavigation, r = n.slideFocus, a = [];
|
|
1394
1394
|
function i() {
|
|
1395
1395
|
e.splides.forEach(function(c) {
|
|
@@ -1405,23 +1405,23 @@ function Ji(e, t, n) {
|
|
|
1405
1405
|
s(), i();
|
|
1406
1406
|
}
|
|
1407
1407
|
function d(c, u) {
|
|
1408
|
-
var b =
|
|
1408
|
+
var b = ue(c);
|
|
1409
1409
|
b.on(Pe, function(w, f, _) {
|
|
1410
1410
|
u.go(u.is(bt) ? _ : w);
|
|
1411
1411
|
}), a.push(b);
|
|
1412
1412
|
}
|
|
1413
1413
|
function p() {
|
|
1414
|
-
var c =
|
|
1415
|
-
u(
|
|
1414
|
+
var c = ue(e), u = c.on;
|
|
1415
|
+
u(Nn, m), u(jo, h), u([Je, _e], x), a.push(c), c.emit(Bn, e.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function x() {
|
|
1418
|
-
|
|
1418
|
+
Q(t.Elements.list, Vn, n.direction === an ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function m(c) {
|
|
1421
1421
|
e.go(c.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function h(c, u) {
|
|
1424
|
-
|
|
1424
|
+
En(Zi, Pn(u)) && (m(c), Me(u));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: se(t.Media.set, {
|
|
@@ -1432,15 +1432,15 @@ function Ji(e, t, n) {
|
|
|
1432
1432
|
remount: l
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var o =
|
|
1435
|
+
function ea(e, t, n) {
|
|
1436
|
+
var o = ue(e), r = o.bind, a = 0;
|
|
1437
1437
|
function i() {
|
|
1438
1438
|
n.wheel && r(t.Elements.track, "wheel", s, ut);
|
|
1439
1439
|
}
|
|
1440
1440
|
function s(d) {
|
|
1441
1441
|
if (d.cancelable) {
|
|
1442
|
-
var p = d.deltaY, x = p < 0, m =
|
|
1443
|
-
|
|
1442
|
+
var p = d.deltaY, x = p < 0, m = bn(d), h = n.wheelMinThreshold || 0, c = n.wheelSleep || 0;
|
|
1443
|
+
we(p) > h && m - a > c && (e.go(x ? "<" : ">"), a = m), l(x) && Me(d);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function l(d) {
|
|
@@ -1450,20 +1450,20 @@ function Zi(e, t, n) {
|
|
|
1450
1450
|
mount: i
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1455
|
-
var o =
|
|
1453
|
+
var ta = 90;
|
|
1454
|
+
function na(e, t, n) {
|
|
1455
|
+
var o = ue(e), r = o.on, a = t.Elements.track, i = n.live && !n.isNavigation, s = dt("span", Si), l = tn(ta, se(p, !1));
|
|
1456
1456
|
function d() {
|
|
1457
|
-
i && (m(!t.Autoplay.isPaused()),
|
|
1457
|
+
i && (m(!t.Autoplay.isPaused()), Q(a, ro, !0), s.textContent = "…", r(Wn, se(m, !0)), r(zn, se(m, !1)), r([vt, rt], se(p, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function p(h) {
|
|
1460
|
-
|
|
1460
|
+
Q(a, oo, h), h ? (Nt(a, s), l.start()) : (nt(s), l.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function x() {
|
|
1463
|
-
|
|
1463
|
+
We(a, [no, ro, oo]), nt(s);
|
|
1464
1464
|
}
|
|
1465
1465
|
function m(h) {
|
|
1466
|
-
i &&
|
|
1466
|
+
i && Q(a, no, h ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: d,
|
|
@@ -1471,28 +1471,28 @@ function ea(e, t, n) {
|
|
|
1471
1471
|
destroy: x
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var oa = /* @__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: pi,
|
|
1477
|
+
Direction: di,
|
|
1478
|
+
Elements: Ti,
|
|
1479
|
+
Slides: Li,
|
|
1480
|
+
Layout: Ei,
|
|
1481
|
+
Clones: ki,
|
|
1482
|
+
Move: Ri,
|
|
1483
|
+
Controller: Fi,
|
|
1484
|
+
Arrows: Bi,
|
|
1485
|
+
Autoplay: zi,
|
|
1486
|
+
Cover: Mi,
|
|
1487
|
+
Scroll: Ui,
|
|
1488
|
+
Drag: Gi,
|
|
1489
|
+
Keyboard: Xi,
|
|
1490
|
+
LazyLoad: Ki,
|
|
1491
|
+
Pagination: Ji,
|
|
1492
|
+
Sync: Qi,
|
|
1493
|
+
Wheel: ea,
|
|
1494
|
+
Live: na
|
|
1495
|
+
}), ra = {
|
|
1496
1496
|
prev: "Previous slide",
|
|
1497
1497
|
next: "Next slide",
|
|
1498
1498
|
first: "Go to first slide",
|
|
@@ -1505,7 +1505,7 @@ var ta = /* @__PURE__ */ Object.freeze({
|
|
|
1505
1505
|
slide: "slide",
|
|
1506
1506
|
select: "Select a slide to show",
|
|
1507
1507
|
slideLabel: "%s of %s"
|
|
1508
|
-
},
|
|
1508
|
+
}, ia = {
|
|
1509
1509
|
type: "slide",
|
|
1510
1510
|
role: "region",
|
|
1511
1511
|
speed: 400,
|
|
@@ -1524,18 +1524,18 @@ var ta = /* @__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: _i,
|
|
1528
|
+
i18n: ra,
|
|
1529
1529
|
reducedMotion: {
|
|
1530
1530
|
speed: 0,
|
|
1531
1531
|
rewindSpeed: 0,
|
|
1532
1532
|
autoplay: "pause"
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1535
|
+
function aa(e, t, n) {
|
|
1536
1536
|
var o = t.Slides;
|
|
1537
1537
|
function r() {
|
|
1538
|
-
|
|
1538
|
+
ue(e).on([Je, he], a);
|
|
1539
1539
|
}
|
|
1540
1540
|
function a() {
|
|
1541
1541
|
o.forEach(function(s) {
|
|
@@ -1543,24 +1543,24 @@ function ra(e, t, n) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
function i(s, l) {
|
|
1546
|
-
o.style("transition", "opacity " + n.speed + "ms " + n.easing),
|
|
1546
|
+
o.style("transition", "opacity " + n.speed + "ms " + n.easing), xo(l);
|
|
1547
1547
|
}
|
|
1548
1548
|
return {
|
|
1549
1549
|
mount: r,
|
|
1550
1550
|
start: i,
|
|
1551
|
-
cancel:
|
|
1551
|
+
cancel: vn
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function la(e, t, n) {
|
|
1555
1555
|
var o = t.Move, r = t.Controller, a = t.Scroll, i = t.Elements.list, s = se(ke, i, "transition"), l;
|
|
1556
1556
|
function d() {
|
|
1557
|
-
|
|
1557
|
+
ue(e).bind(i, "transitionend", function(h) {
|
|
1558
1558
|
h.target === i && l && (x(), l());
|
|
1559
1559
|
});
|
|
1560
1560
|
}
|
|
1561
1561
|
function p(h, c) {
|
|
1562
1562
|
var u = o.toPosition(h, !0), b = o.getPosition(), w = m(h);
|
|
1563
|
-
|
|
1563
|
+
we(u - b) >= 1 && w >= 1 ? n.useScroll ? a.scroll(u, w, !1, c) : (s("transform " + w + "ms " + n.easing), o.translate(u, !0), l = c) : (o.jump(h), c());
|
|
1564
1564
|
}
|
|
1565
1565
|
function x() {
|
|
1566
1566
|
s(""), a.cancel();
|
|
@@ -1580,16 +1580,16 @@ function ia(e, t, n) {
|
|
|
1580
1580
|
cancel: x
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
var
|
|
1583
|
+
var sa = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function e(n, o) {
|
|
1585
|
-
this.event =
|
|
1586
|
-
var r = Xe(n) ?
|
|
1585
|
+
this.event = ue(), this.Components = {}, this.state = ci(pt), this.splides = [], this._o = {}, this._E = {};
|
|
1586
|
+
var r = Xe(n) ? Lo(document, n) : n;
|
|
1587
1587
|
St(r, r + " is invalid."), this.root = r, o = Ye({
|
|
1588
|
-
label: Re(r,
|
|
1589
|
-
labelledby: Re(r,
|
|
1590
|
-
},
|
|
1588
|
+
label: Re(r, Ae) || "",
|
|
1589
|
+
labelledby: Re(r, Dn) || ""
|
|
1590
|
+
}, ia, e.defaults, o || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
Ye(o, JSON.parse(Re(r,
|
|
1592
|
+
Ye(o, JSON.parse(Re(r, Rn)));
|
|
1593
1593
|
} catch {
|
|
1594
1594
|
St(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
@@ -1598,8 +1598,8 @@ var aa = /* @__PURE__ */ (function() {
|
|
|
1598
1598
|
var t = e.prototype;
|
|
1599
1599
|
return t.mount = function(o, r) {
|
|
1600
1600
|
var a = this, i = this.state, s = this.Components;
|
|
1601
|
-
St(i.is([pt, Yt]), "Already mounted!"), i.set(pt), this._C = s, this._T = r || this._T || (this.is(
|
|
1602
|
-
var l = At({},
|
|
1601
|
+
St(i.is([pt, Yt]), "Already mounted!"), i.set(pt), this._C = s, this._T = r || this._T || (this.is(zt) ? aa : la), this._E = o || this._E;
|
|
1602
|
+
var l = At({}, oa, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
1605
|
return tt(l, function(d, p) {
|
|
@@ -1607,7 +1607,7 @@ var aa = /* @__PURE__ */ (function() {
|
|
|
1607
1607
|
s[p] = x, x.setup && x.setup();
|
|
1608
1608
|
}), tt(s, function(d) {
|
|
1609
1609
|
d.mount && d.mount();
|
|
1610
|
-
}), this.emit(Je),
|
|
1610
|
+
}), this.emit(Je), Be(this.root, Ci), i.set(ft), this.emit(xn), this;
|
|
1611
1611
|
}, t.sync = function(o) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: o
|
|
@@ -1635,10 +1635,10 @@ var aa = /* @__PURE__ */ (function() {
|
|
|
1635
1635
|
}, t.destroy = function(o) {
|
|
1636
1636
|
o === void 0 && (o = !0);
|
|
1637
1637
|
var r = this.event, a = this.state;
|
|
1638
|
-
return a.is(pt) ?
|
|
1638
|
+
return a.is(pt) ? ue(this).on(xn, this.destroy.bind(this, o)) : (tt(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(o);
|
|
1640
|
-
}, !0), r.emit(
|
|
1641
|
-
},
|
|
1640
|
+
}, !0), r.emit(On), r.destroy(), o && je(this.splides), a.set(Yt)), this;
|
|
1641
|
+
}, ri(e, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
1644
1644
|
return this._o;
|
|
@@ -1657,58 +1657,58 @@ var aa = /* @__PURE__ */ (function() {
|
|
|
1657
1657
|
return this._C.Controller.getIndex();
|
|
1658
1658
|
}
|
|
1659
1659
|
}]), e;
|
|
1660
|
-
})(),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1660
|
+
})(), Un = sa;
|
|
1661
|
+
Un.defaults = {};
|
|
1662
|
+
Un.STATES = ai;
|
|
1663
|
+
var so = [
|
|
1664
1664
|
[Je, "onMounted"],
|
|
1665
|
-
[
|
|
1665
|
+
[xn, "onReady"],
|
|
1666
1666
|
[Pe, "onMove"],
|
|
1667
1667
|
[vt, "onMoved"],
|
|
1668
|
-
[
|
|
1669
|
-
[
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1668
|
+
[Nn, "onClick"],
|
|
1669
|
+
[ko, "onActive"],
|
|
1670
|
+
[Ro, "onInactive"],
|
|
1671
|
+
[Fo, "onVisible"],
|
|
1672
|
+
[No, "onHidden"],
|
|
1673
1673
|
[he, "onRefresh"],
|
|
1674
|
-
[
|
|
1674
|
+
[_e, "onUpdated"],
|
|
1675
1675
|
[mt, "onResize"],
|
|
1676
1676
|
[Qt, "onResized"],
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1677
|
+
[Oo, "onDrag"],
|
|
1678
|
+
[Bo, "onDragging"],
|
|
1679
|
+
[Wo, "onDragged"],
|
|
1680
1680
|
[en, "onScroll"],
|
|
1681
1681
|
[rt, "onScrolled"],
|
|
1682
|
-
[
|
|
1682
|
+
[On, "onDestroy"],
|
|
1683
1683
|
[zo, "onArrowsMounted"],
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1684
|
+
[Mo, "onArrowsUpdated"],
|
|
1685
|
+
[Do, "onPaginationMounted"],
|
|
1686
|
+
[Vo, "onPaginationUpdated"],
|
|
1687
|
+
[Bn, "onNavigationMounted"],
|
|
1688
|
+
[Wn, "onAutoplayPlay"],
|
|
1689
|
+
[Ho, "onAutoplayPlaying"],
|
|
1690
1690
|
[zn, "onAutoplayPause"],
|
|
1691
|
-
[
|
|
1691
|
+
[Mn, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
|
-
function
|
|
1693
|
+
function Gn(...e) {
|
|
1694
1694
|
return e.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
1696
|
function Jt(e) {
|
|
1697
1697
|
return e !== null && typeof e == "object";
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function $n(e, t) {
|
|
1700
1700
|
if (Array.isArray(e) && Array.isArray(t))
|
|
1701
|
-
return e.length === t.length && !e.some((n, o) =>
|
|
1701
|
+
return e.length === t.length && !e.some((n, o) => !$n(n, t[o]));
|
|
1702
1702
|
if (Jt(e) && Jt(t)) {
|
|
1703
1703
|
const n = Object.keys(e), o = Object.keys(t);
|
|
1704
|
-
return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(t, r) ||
|
|
1704
|
+
return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(t, r) || !$n(e[r], t[r]));
|
|
1705
1705
|
}
|
|
1706
1706
|
return e === t;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function ca(e, t) {
|
|
1709
1709
|
return e.length === t.length && !e.some((n, o) => n !== t[o]);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function ua(e, t) {
|
|
1712
1712
|
if (e) {
|
|
1713
1713
|
const n = Object.keys(e);
|
|
1714
1714
|
for (let o = 0; o < n.length; o++) {
|
|
@@ -1719,24 +1719,24 @@ function sa(e, t) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return e;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Tn(e, t) {
|
|
1723
1723
|
const n = e;
|
|
1724
|
-
return
|
|
1725
|
-
Array.isArray(o) ? n[r] = o.slice() : Jt(o) ? n[r] =
|
|
1724
|
+
return ua(t, (o, r) => {
|
|
1725
|
+
Array.isArray(o) ? n[r] = o.slice() : Jt(o) ? n[r] = Tn(Jt(n[r]) ? n[r] : {}, o) : n[r] = o;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1729
|
-
className:
|
|
1728
|
+
var pa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createElement("div", {
|
|
1729
|
+
className: Gn("splide__track", t),
|
|
1730
1730
|
...n
|
|
1731
1731
|
}, /* @__PURE__ */ et.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, e)),
|
|
1733
|
+
}, e)), rr = class extends et.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
1735
|
super(...arguments), this.splideRef = et.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: e, extensions: t, transition: n } = this.props, { current: o } = this.splideRef;
|
|
1739
|
-
o && (this.splide = new
|
|
1739
|
+
o && (this.splide = new Un(o, e), this.bind(this.splide), this.splide.mount(t, n), this.options = Tn({}, e || {}), this.slides = this.getSlides());
|
|
1740
1740
|
}
|
|
1741
1741
|
componentWillUnmount() {
|
|
1742
1742
|
this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
|
|
@@ -1745,9 +1745,9 @@ var ca = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createEleme
|
|
|
1745
1745
|
if (!this.splide)
|
|
1746
1746
|
return;
|
|
1747
1747
|
const { options: e } = this.props;
|
|
1748
|
-
e &&
|
|
1748
|
+
e && !$n(this.options, e) && (this.splide.options = e, this.options = Tn({}, e));
|
|
1749
1749
|
const t = this.getSlides();
|
|
1750
|
-
|
|
1750
|
+
ca(this.slides, t) || (this.splide.refresh(), this.slides = t);
|
|
1751
1751
|
}
|
|
1752
1752
|
sync(e) {
|
|
1753
1753
|
var t;
|
|
@@ -1766,7 +1766,7 @@ var ca = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createEleme
|
|
|
1766
1766
|
return [];
|
|
1767
1767
|
}
|
|
1768
1768
|
bind(e) {
|
|
1769
|
-
|
|
1769
|
+
so.forEach(([t, n]) => {
|
|
1770
1770
|
const o = this.props[n];
|
|
1771
1771
|
typeof o == "function" && e.on(t, (...r) => {
|
|
1772
1772
|
o(e, ...r);
|
|
@@ -1781,13 +1781,13 @@ var ca = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createEleme
|
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: e, tag: t = "div", hasTrack: n = !0, children: o, ...r } = this.props;
|
|
1783
1783
|
return /* @__PURE__ */ et.createElement(t, {
|
|
1784
|
-
className:
|
|
1784
|
+
className: Gn("splide", e),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
|
-
...this.omit(r, ["options", ...
|
|
1787
|
-
}, n ? /* @__PURE__ */ et.createElement(
|
|
1786
|
+
...this.omit(r, ["options", ...so.map((a) => a[1])])
|
|
1787
|
+
}, n ? /* @__PURE__ */ et.createElement(pa, null, o) : o);
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1790
|
-
className:
|
|
1789
|
+
}, ir = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createElement("li", {
|
|
1790
|
+
className: Gn("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
1793
1793
|
/*!
|
|
@@ -1796,16 +1796,16 @@ var ca = ({ children: e, className: t, ...n }) => /* @__PURE__ */ et.createEleme
|
|
|
1796
1796
|
* License : MIT
|
|
1797
1797
|
* Copyright: 2022 Naotoshi Fujita
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1800
|
-
link:
|
|
1801
|
-
},
|
|
1802
|
-
const t = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ N("a", { className:
|
|
1799
|
+
const da = "RichTextRenderer-module__link___BWeZ2", ga = {
|
|
1800
|
+
link: da
|
|
1801
|
+
}, ar = ({ content: e }) => {
|
|
1802
|
+
const t = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ N("a", { className: ga.link, href: o.value, target: o.target, children: t(o.children) }, r) : /* @__PURE__ */ N("span", { style: fa(o), children: o.text }, r));
|
|
1803
1803
|
return /* @__PURE__ */ N(_t, { children: e.map((n, o) => {
|
|
1804
1804
|
const r = n.children;
|
|
1805
1805
|
return /* @__PURE__ */ N("div", { children: t(r) }, o);
|
|
1806
1806
|
}) });
|
|
1807
1807
|
};
|
|
1808
|
-
function
|
|
1808
|
+
function fa(e) {
|
|
1809
1809
|
return {
|
|
1810
1810
|
...e.fontFamily && { fontFamily: e.fontFamily },
|
|
1811
1811
|
...e.fontWeight && { fontWeight: e.fontWeight },
|
|
@@ -1819,9 +1819,9 @@ function da(e) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
const
|
|
1823
|
-
svg:
|
|
1824
|
-
img:
|
|
1822
|
+
const ma = "SvgImage-module__svg___q3xE-", ya = "SvgImage-module__img___VsTm-", co = {
|
|
1823
|
+
svg: ma,
|
|
1824
|
+
img: ya
|
|
1825
1825
|
}, xt = ({ url: e, fill: t = "#000000", hoverFill: n = "#CCCCCC", className: o = "" }) => {
|
|
1826
1826
|
const [r, a] = le(!0);
|
|
1827
1827
|
return Se(() => {
|
|
@@ -1829,11 +1829,11 @@ const ga = "SvgImage-module__svg___q3xE-", fa = "SvgImage-module__img___VsTm-",
|
|
|
1829
1829
|
const i = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
1830
1830
|
a(i);
|
|
1831
1831
|
}
|
|
1832
|
-
}, []), !e.endsWith(".svg") || !r ? /* @__PURE__ */ N("img", { src: e, alt: "", className:
|
|
1832
|
+
}, []), !e.endsWith(".svg") || !r ? /* @__PURE__ */ N("img", { src: e, alt: "", className: ce(co.img, o) }) : /* @__PURE__ */ N(
|
|
1833
1833
|
"span",
|
|
1834
1834
|
{
|
|
1835
1835
|
"data-supports-mask": r,
|
|
1836
|
-
className:
|
|
1836
|
+
className: ce(co.svg, o),
|
|
1837
1837
|
style: {
|
|
1838
1838
|
"--svg": `url(${e})`,
|
|
1839
1839
|
"--fill": t,
|
|
@@ -1841,7 +1841,7 @@ const ga = "SvgImage-module__svg___q3xE-", fa = "SvgImage-module__img___VsTm-",
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
);
|
|
1844
|
-
},
|
|
1844
|
+
}, ha = {
|
|
1845
1845
|
"top-left": G.topLeftAlignment,
|
|
1846
1846
|
"top-center": G.topCenterAlignment,
|
|
1847
1847
|
"top-right": G.topRightAlignment,
|
|
@@ -1852,8 +1852,8 @@ const ga = "SvgImage-module__svg___q3xE-", fa = "SvgImage-module__img___VsTm-",
|
|
|
1852
1852
|
"bottom-center": G.bottomCenterAlignment,
|
|
1853
1853
|
"bottom-right": G.bottomRightAlignment
|
|
1854
1854
|
};
|
|
1855
|
-
function
|
|
1856
|
-
const [r, a] = le(null), { widthSettings: i, fontSettings: s, letterSpacing: l, textAlign: d, wordSpacing: p, fontSizeLineHeight: x, textAppearance: m, color: h } = n.imageCaption, [c, u] = le(void 0), [b, w] = le(null), [f, _] = le(0), [
|
|
1855
|
+
function va({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
1856
|
+
const [r, a] = le(null), { widthSettings: i, fontSettings: s, letterSpacing: l, textAlign: d, wordSpacing: p, fontSizeLineHeight: x, textAppearance: m, color: h } = n.imageCaption, [c, u] = le(void 0), [b, w] = le(null), [f, _] = le(0), [z, M] = le(0), { direction: A, transition: v, controls: $, pagination: R, imageCaption: D, triggers: L } = e, k = $e(v.type), { x: B, y: P } = e.controls.offset, H = (g) => {
|
|
1857
1857
|
r && r.go(g);
|
|
1858
1858
|
};
|
|
1859
1859
|
return Se(() => {
|
|
@@ -1869,7 +1869,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1869
1869
|
return g.observe(b), () => g.unobserve(b);
|
|
1870
1870
|
}, [b]), Se(() => {
|
|
1871
1871
|
!r || k.current === v.type || (M((g) => g + 1), k.current = v.type);
|
|
1872
|
-
}, [v.type]), /* @__PURE__ */ N("div", { className:
|
|
1872
|
+
}, [v.type]), /* @__PURE__ */ N("div", { className: ce(G.wrapper, { [G.editor]: o }), ref: w, children: /* @__PURE__ */ Ce(
|
|
1873
1873
|
"div",
|
|
1874
1874
|
{
|
|
1875
1875
|
className: G.sliderInner,
|
|
@@ -1882,7 +1882,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1882
1882
|
e.imageCaption.isActive && /* @__PURE__ */ N(
|
|
1883
1883
|
"div",
|
|
1884
1884
|
{
|
|
1885
|
-
className:
|
|
1885
|
+
className: ce(G.captionBlock),
|
|
1886
1886
|
children: /* @__PURE__ */ N(
|
|
1887
1887
|
"div",
|
|
1888
1888
|
{
|
|
@@ -1890,7 +1890,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1890
1890
|
children: t.map((g, I) => /* @__PURE__ */ N(
|
|
1891
1891
|
"div",
|
|
1892
1892
|
{
|
|
1893
|
-
className:
|
|
1893
|
+
className: ce(G.captionText, ha[D.alignment], {
|
|
1894
1894
|
[G.withPointerEvents]: I === f && o,
|
|
1895
1895
|
[G.active]: I === f
|
|
1896
1896
|
}),
|
|
@@ -1922,7 +1922,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1922
1922
|
top: F(D.offset.y, o),
|
|
1923
1923
|
left: F(D.offset.x, o)
|
|
1924
1924
|
},
|
|
1925
|
-
children: /* @__PURE__ */ N(
|
|
1925
|
+
children: /* @__PURE__ */ N(ar, { content: g.imageCaption })
|
|
1926
1926
|
}
|
|
1927
1927
|
)
|
|
1928
1928
|
},
|
|
@@ -1933,7 +1933,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
),
|
|
1935
1935
|
/* @__PURE__ */ N(
|
|
1936
|
-
|
|
1936
|
+
rr,
|
|
1937
1937
|
{
|
|
1938
1938
|
onMove: (g) => {
|
|
1939
1939
|
_(g.index);
|
|
@@ -1955,7 +1955,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1955
1955
|
type: v.type === "fade in" ? "fade" : "loop",
|
|
1956
1956
|
rewind: !0
|
|
1957
1957
|
},
|
|
1958
|
-
children: t.map((g, I) => /* @__PURE__ */ N(
|
|
1958
|
+
children: t.map((g, I) => /* @__PURE__ */ N(ir, { children: /* @__PURE__ */ N(
|
|
1959
1959
|
"div",
|
|
1960
1960
|
{
|
|
1961
1961
|
className: G.sliderItem,
|
|
@@ -1966,7 +1966,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1966
1966
|
children: /* @__PURE__ */ N(
|
|
1967
1967
|
"img",
|
|
1968
1968
|
{
|
|
1969
|
-
className:
|
|
1969
|
+
className: ce(G.sliderImage, {
|
|
1970
1970
|
[G.contain]: g.image.objectFit === "contain",
|
|
1971
1971
|
[G.cover]: g.image.objectFit === "cover"
|
|
1972
1972
|
}),
|
|
@@ -1979,13 +1979,13 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
) }, I))
|
|
1981
1981
|
},
|
|
1982
|
-
|
|
1982
|
+
z
|
|
1983
1983
|
),
|
|
1984
1984
|
$.isActive && /* @__PURE__ */ Ce(_t, { children: [
|
|
1985
1985
|
/* @__PURE__ */ N(
|
|
1986
1986
|
"div",
|
|
1987
1987
|
{
|
|
1988
|
-
className:
|
|
1988
|
+
className: ce(G.arrow, {
|
|
1989
1989
|
[G.arrowVertical]: A === "vert",
|
|
1990
1990
|
[G.hoverArrow]: $.show === "on hover"
|
|
1991
1991
|
}),
|
|
@@ -2010,10 +2010,10 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2010
2010
|
url: $.arrowsImgUrl,
|
|
2011
2011
|
fill: $.color,
|
|
2012
2012
|
hoverFill: $.hover,
|
|
2013
|
-
className:
|
|
2013
|
+
className: ce(G.arrowImg, G.mirror)
|
|
2014
2014
|
}
|
|
2015
2015
|
),
|
|
2016
|
-
!$.arrowsImgUrl && /* @__PURE__ */ N(
|
|
2016
|
+
!$.arrowsImgUrl && /* @__PURE__ */ N(uo, { color: $.color, className: ce(G.arrowIcon, G.arrowImg, G.mirror) })
|
|
2017
2017
|
]
|
|
2018
2018
|
}
|
|
2019
2019
|
)
|
|
@@ -2022,7 +2022,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2022
2022
|
/* @__PURE__ */ N(
|
|
2023
2023
|
"div",
|
|
2024
2024
|
{
|
|
2025
|
-
className:
|
|
2025
|
+
className: ce(G.arrow, G.nextArrow, {
|
|
2026
2026
|
[G.arrowVertical]: A === "vert",
|
|
2027
2027
|
[G.hoverArrow]: $.show === "on hover"
|
|
2028
2028
|
}),
|
|
@@ -2048,7 +2048,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2048
2048
|
className: G.arrowImg
|
|
2049
2049
|
}
|
|
2050
2050
|
),
|
|
2051
|
-
!$.arrowsImgUrl && /* @__PURE__ */ N(
|
|
2051
|
+
!$.arrowsImgUrl && /* @__PURE__ */ N(uo, { color: $.color, className: ce(G.arrowIcon, G.arrowImg) })
|
|
2052
2052
|
]
|
|
2053
2053
|
}
|
|
2054
2054
|
)
|
|
@@ -2067,7 +2067,7 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2067
2067
|
R.isActive && /* @__PURE__ */ N(
|
|
2068
2068
|
"div",
|
|
2069
2069
|
{
|
|
2070
|
-
className:
|
|
2070
|
+
className: ce(G.pagination, {
|
|
2071
2071
|
[G.paginationInsideBottom]: R.position === "inside-1" && A === "horiz",
|
|
2072
2072
|
[G.paginationInsideTop]: R.position === "inside-2" && A === "horiz",
|
|
2073
2073
|
[G.paginationOutsideBottom]: R.position === "outside-1" && A === "horiz",
|
|
@@ -2092,11 +2092,11 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2092
2092
|
onClick: () => {
|
|
2093
2093
|
r && r.go(I);
|
|
2094
2094
|
},
|
|
2095
|
-
className:
|
|
2095
|
+
className: ce(G.paginationItem),
|
|
2096
2096
|
children: /* @__PURE__ */ N(
|
|
2097
2097
|
"div",
|
|
2098
2098
|
{
|
|
2099
|
-
className:
|
|
2099
|
+
className: ce(G.dot, {
|
|
2100
2100
|
[G.activeDot]: I === f
|
|
2101
2101
|
}),
|
|
2102
2102
|
style: {
|
|
@@ -2116,11 +2116,11 @@ function ya({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2116
2116
|
}
|
|
2117
2117
|
) });
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function uo({ color: e, className: t }) {
|
|
2120
2120
|
return /* @__PURE__ */ N("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ N("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ N("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
2121
2121
|
}
|
|
2122
|
-
const
|
|
2123
|
-
element:
|
|
2122
|
+
const ba = {
|
|
2123
|
+
element: va,
|
|
2124
2124
|
id: "control-slider",
|
|
2125
2125
|
name: "Slider",
|
|
2126
2126
|
preview: {
|
|
@@ -2719,13 +2719,13 @@ const ha = {
|
|
|
2719
2719
|
},
|
|
2720
2720
|
required: ["settings", "content", "styles"]
|
|
2721
2721
|
}
|
|
2722
|
-
},
|
|
2723
|
-
imageRevealSlider:
|
|
2724
|
-
image:
|
|
2725
|
-
link:
|
|
2726
|
-
cursor:
|
|
2722
|
+
}, Sa = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Ca = "ImageRevealSlider-module__image___Qjt-e", xa = "ImageRevealSlider-module__link___N-iLG", _a = "ImageRevealSlider-module__cursor___2U03d", lt = {
|
|
2723
|
+
imageRevealSlider: Sa,
|
|
2724
|
+
image: Ca,
|
|
2725
|
+
link: xa,
|
|
2726
|
+
cursor: _a
|
|
2727
2727
|
};
|
|
2728
|
-
function
|
|
2728
|
+
function po(e, t, n) {
|
|
2729
2729
|
for (const o of n) {
|
|
2730
2730
|
const r = new Image();
|
|
2731
2731
|
r.src = o.url;
|
|
@@ -2735,7 +2735,7 @@ function uo(e, t, n) {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
return !1;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2738
|
+
function mn(e) {
|
|
2739
2739
|
return new Promise((t) => {
|
|
2740
2740
|
const n = new Image();
|
|
2741
2741
|
n.src = e, n.onload = () => {
|
|
@@ -2743,24 +2743,24 @@ function fn(e) {
|
|
|
2743
2743
|
};
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
2746
|
-
async function
|
|
2746
|
+
async function wa(e, t, n, o) {
|
|
2747
2747
|
let r, a;
|
|
2748
2748
|
if (t === "custom") {
|
|
2749
2749
|
r = n;
|
|
2750
|
-
const i = await
|
|
2750
|
+
const i = await mn(e);
|
|
2751
2751
|
a = i.height / i.width * r;
|
|
2752
2752
|
} else if (t === "random") {
|
|
2753
2753
|
r = Math.random() * (o.max - o.min) + o.min;
|
|
2754
|
-
const i = await
|
|
2754
|
+
const i = await mn(e);
|
|
2755
2755
|
a = i.height / i.width * r;
|
|
2756
2756
|
} else {
|
|
2757
|
-
const i = await
|
|
2757
|
+
const i = await mn(e);
|
|
2758
2758
|
r = i.width, a = i.height;
|
|
2759
2759
|
}
|
|
2760
2760
|
return { width: r, height: a, finalWidth: `${r}px` };
|
|
2761
2761
|
}
|
|
2762
|
-
function
|
|
2763
|
-
const [o, r] = le(null), [a, i] = le([]), [s, l] = le(0), d =
|
|
2762
|
+
function $a({ settings: e, content: t, isEditor: n }) {
|
|
2763
|
+
const [o, r] = le(null), [a, i] = le([]), [s, l] = le(0), d = $e(0), [p, x] = le({ x: 0, y: 0 }), [m, h] = le(1), [c, u] = le("none"), b = $e({ x: 0, y: 0 }), [w, f] = le(!1), { sizeType: _, imageWidth: z, randomRangeImageWidth: M } = e.imageSize, { revealPosition: A, visible: v } = e.position, { cursorType: $, target: R, defaultCursorScale: D, defaultCursor: L, hoverCursorScale: k, hoverCursor: B } = e.cursor;
|
|
2764
2764
|
Se(() => {
|
|
2765
2765
|
if (!o) return;
|
|
2766
2766
|
const g = (T, C) => {
|
|
@@ -2774,7 +2774,7 @@ function _a({ settings: e, content: t, isEditor: n }) {
|
|
|
2774
2774
|
u("none"), h(1);
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
const q =
|
|
2777
|
+
const q = po(Z, me, a) || R === "area" ? { img: B ?? "none", scale: k } : { img: L ?? "none", scale: D };
|
|
2778
2778
|
u(q.img), h(q.scale);
|
|
2779
2779
|
}, I = (T) => {
|
|
2780
2780
|
T.stopPropagation(), b.current = { x: T.clientX, y: T.clientY }, g(T.clientX, T.clientY);
|
|
@@ -2799,10 +2799,10 @@ function _a({ settings: e, content: t, isEditor: n }) {
|
|
|
2799
2799
|
w || (u("none"), h(0));
|
|
2800
2800
|
}, [w]);
|
|
2801
2801
|
const P = async (g, I, S, T = {}) => {
|
|
2802
|
-
const { width: C, height: O, finalWidth: Y } = await
|
|
2802
|
+
const { width: C, height: O, finalWidth: Y } = await wa(
|
|
2803
2803
|
g.image.url,
|
|
2804
2804
|
_,
|
|
2805
|
-
|
|
2805
|
+
z,
|
|
2806
2806
|
M
|
|
2807
2807
|
);
|
|
2808
2808
|
let re = 0, Z = 0;
|
|
@@ -2825,7 +2825,7 @@ function _a({ settings: e, content: t, isEditor: n }) {
|
|
|
2825
2825
|
const O = t[0], Y = await P(O, I, S);
|
|
2826
2826
|
T.push(Y), i(T), l(1);
|
|
2827
2827
|
})();
|
|
2828
|
-
}, [_,
|
|
2828
|
+
}, [_, z, M, A, o]), Se(() => {
|
|
2829
2829
|
v === "last One" && i((g) => g.length > 0 ? [g[g.length - 1]] : []);
|
|
2830
2830
|
}, [v]), /* @__PURE__ */ Ce(
|
|
2831
2831
|
"div",
|
|
@@ -2834,7 +2834,7 @@ function _a({ settings: e, content: t, isEditor: n }) {
|
|
|
2834
2834
|
onClick: async (g) => {
|
|
2835
2835
|
if (!o) return;
|
|
2836
2836
|
const I = o.getBoundingClientRect(), S = g.clientX - I.left, T = g.clientY - I.top;
|
|
2837
|
-
if (R === "image" && !
|
|
2837
|
+
if (R === "image" && !po(S, T, a)) return;
|
|
2838
2838
|
let C = 0, O = 0;
|
|
2839
2839
|
A === "on Click" ? (C = S, O = T) : A === "same" ? (C = I.width / 2, O = I.height / 2) : (C = Math.random() * I.width, O = Math.random() * I.height);
|
|
2840
2840
|
const Y = t[s], re = await P(Y, I.width, I.height, { x: C, y: O });
|
|
@@ -2898,8 +2898,8 @@ function _a({ settings: e, content: t, isEditor: n }) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
);
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2902
|
-
element:
|
|
2901
|
+
const Ta = {
|
|
2902
|
+
element: $a,
|
|
2903
2903
|
id: "control-image-reveal",
|
|
2904
2904
|
name: "Click Gallery",
|
|
2905
2905
|
preview: {
|
|
@@ -3209,50 +3209,50 @@ const wa = {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
},
|
|
3213
|
-
hidden:
|
|
3214
|
-
heroImage:
|
|
3215
|
-
background:
|
|
3216
|
-
editor:
|
|
3217
|
-
contentStyle:
|
|
3218
|
-
imageStyle:
|
|
3219
|
-
imgWrapper:
|
|
3220
|
-
contain:
|
|
3221
|
-
cover:
|
|
3222
|
-
caption:
|
|
3223
|
-
captionTextInner:
|
|
3224
|
-
lightboxSplide:
|
|
3225
|
-
arrow:
|
|
3226
|
-
arrowVertical:
|
|
3227
|
-
nextArrow:
|
|
3228
|
-
arrowInner:
|
|
3229
|
-
arrowIcon:
|
|
3230
|
-
arrowImg:
|
|
3231
|
-
mirror:
|
|
3232
|
-
thumbsWrapper:
|
|
3233
|
-
thumbsContainerVertical:
|
|
3234
|
-
thumbsContainer:
|
|
3235
|
-
thumbsAlignStart:
|
|
3236
|
-
thumbsAlignCenter:
|
|
3237
|
-
thumbsAlignEnd:
|
|
3238
|
-
thumbItem:
|
|
3239
|
-
closeButton:
|
|
3240
|
-
fadeIn:
|
|
3241
|
-
slideInLeft:
|
|
3242
|
-
slideInRight:
|
|
3243
|
-
slideInTop:
|
|
3244
|
-
slideInBottom:
|
|
3245
|
-
fadeOut:
|
|
3246
|
-
slideOutLeft:
|
|
3247
|
-
slideOutRight:
|
|
3248
|
-
slideOutTop:
|
|
3249
|
-
slideOutBottom:
|
|
3250
|
-
scaleSlide:
|
|
3212
|
+
}, Aa = "LightBox-module__hidden___9s-9x", La = "LightBox-module__heroImage___sTxNF", Ea = "LightBox-module__background___rm9ml", Ia = "LightBox-module__editor___4ACaY", ka = "LightBox-module__contentStyle___Bgnsq", Ra = "LightBox-module__imageStyle___tLIlB", Fa = "LightBox-module__imgWrapper___LuFUp", Na = "LightBox-module__contain___8-yaS", Oa = "LightBox-module__cover___hNvOG", Ba = "LightBox-module__caption___b6L2I", Wa = "LightBox-module__captionTextInner___rCGNH", za = "LightBox-module__lightboxSplide___XFuWC", Ma = "LightBox-module__arrow___iz38X", Da = "LightBox-module__arrowVertical___Zfz81", Va = "LightBox-module__nextArrow___zkAQN", Ha = "LightBox-module__arrowInner___p48sW", ja = "LightBox-module__arrowIcon___3VaFf", Pa = "LightBox-module__arrowImg___pNV88", Ua = "LightBox-module__mirror___pjeXc", Ga = "LightBox-module__thumbsWrapper___GB-nU", Ya = "LightBox-module__thumbsContainerVertical___wttk5", Xa = "LightBox-module__thumbsContainer___osSma", qa = "LightBox-module__thumbsAlignStart___MO6tY", Ka = "LightBox-module__thumbsAlignCenter___Q4sUx", Ja = "LightBox-module__thumbsAlignEnd___p4y9R", Za = "LightBox-module__thumbItem___HvnF3", Qa = "LightBox-module__closeButton___g2khP", el = "LightBox-module__fadeIn___0m5GW", tl = "LightBox-module__slideInLeft___gPYwC", nl = "LightBox-module__slideInRight___S-pPp", ol = "LightBox-module__slideInTop___DFdAj", rl = "LightBox-module__slideInBottom___m27kZ", il = "LightBox-module__fadeOut___55qBR", al = "LightBox-module__slideOutLeft___NvU7P", ll = "LightBox-module__slideOutRight___SK7eC", sl = "LightBox-module__slideOutTop___Vgg0z", cl = "LightBox-module__slideOutBottom___nJ0Ef", ul = "LightBox-module__scaleSlide___vZriG", W = {
|
|
3213
|
+
hidden: Aa,
|
|
3214
|
+
heroImage: La,
|
|
3215
|
+
background: Ea,
|
|
3216
|
+
editor: Ia,
|
|
3217
|
+
contentStyle: ka,
|
|
3218
|
+
imageStyle: Ra,
|
|
3219
|
+
imgWrapper: Fa,
|
|
3220
|
+
contain: Na,
|
|
3221
|
+
cover: Oa,
|
|
3222
|
+
caption: Ba,
|
|
3223
|
+
captionTextInner: Wa,
|
|
3224
|
+
lightboxSplide: za,
|
|
3225
|
+
arrow: Ma,
|
|
3226
|
+
arrowVertical: Da,
|
|
3227
|
+
nextArrow: Va,
|
|
3228
|
+
arrowInner: Ha,
|
|
3229
|
+
arrowIcon: ja,
|
|
3230
|
+
arrowImg: Pa,
|
|
3231
|
+
mirror: Ua,
|
|
3232
|
+
thumbsWrapper: Ga,
|
|
3233
|
+
thumbsContainerVertical: Ya,
|
|
3234
|
+
thumbsContainer: Xa,
|
|
3235
|
+
thumbsAlignStart: qa,
|
|
3236
|
+
thumbsAlignCenter: Ka,
|
|
3237
|
+
thumbsAlignEnd: Ja,
|
|
3238
|
+
thumbItem: Za,
|
|
3239
|
+
closeButton: Qa,
|
|
3240
|
+
fadeIn: el,
|
|
3241
|
+
slideInLeft: tl,
|
|
3242
|
+
slideInRight: nl,
|
|
3243
|
+
slideInTop: ol,
|
|
3244
|
+
slideInBottom: rl,
|
|
3245
|
+
fadeOut: il,
|
|
3246
|
+
slideOutLeft: al,
|
|
3247
|
+
slideOutRight: ll,
|
|
3248
|
+
slideOutTop: sl,
|
|
3249
|
+
slideOutBottom: cl,
|
|
3250
|
+
scaleSlide: ul
|
|
3251
3251
|
}, Dt = (e, t, n) => {
|
|
3252
3252
|
const o = {}, [r, a] = e.split("-");
|
|
3253
3253
|
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% + ${F(t.x, n)}), calc(-50% + ${F(t.y, n)}))` : r === "middle" ? o.transform = `translate(${F(t.x, n)}, calc(-50% + ${F(t.y, n)}))` : a === "center" ? o.transform = `translate(calc(-50% + ${F(t.x, n)}), ${F(t.y, n)})` : o.transform = `translate(${F(t.x, n)}, ${F(t.y, n)})`, o;
|
|
3254
3254
|
};
|
|
3255
|
-
function
|
|
3255
|
+
function lr(e) {
|
|
3256
3256
|
const t = window.getComputedStyle(e);
|
|
3257
3257
|
return {
|
|
3258
3258
|
top: parseFloat(t.paddingTop) || 0,
|
|
@@ -3261,8 +3261,8 @@ function ar(e) {
|
|
|
3261
3261
|
left: parseFloat(t.paddingLeft) || 0
|
|
3262
3262
|
};
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3265
|
-
const t = e.getBoundingClientRect(), n =
|
|
3264
|
+
function go(e) {
|
|
3265
|
+
const t = e.getBoundingClientRect(), n = lr(e), o = Math.max(0, t.width - n.left - n.right), r = Math.max(0, t.height - n.top - n.bottom), a = e.naturalWidth, i = e.naturalHeight, s = o / r, l = a / i;
|
|
3266
3266
|
let d, p;
|
|
3267
3267
|
l > s ? (d = o, p = o / l) : (p = r, d = r * l);
|
|
3268
3268
|
const x = t.left + n.left, m = t.top + n.top, h = (o - d) / 2 + x, c = (r - p) / 2 + m;
|
|
@@ -3273,8 +3273,8 @@ function po(e) {
|
|
|
3273
3273
|
height: p
|
|
3274
3274
|
};
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3277
|
-
const t = e.getBoundingClientRect(), n =
|
|
3276
|
+
function fo(e) {
|
|
3277
|
+
const t = e.getBoundingClientRect(), n = lr(e);
|
|
3278
3278
|
return {
|
|
3279
3279
|
left: t.left + n.left,
|
|
3280
3280
|
right: t.right - n.right,
|
|
@@ -3282,7 +3282,7 @@ function go(e) {
|
|
|
3282
3282
|
bottom: t.bottom - n.bottom
|
|
3283
3283
|
};
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3285
|
+
function mo(e) {
|
|
3286
3286
|
const t = e.match(/rgba?\(([^)]+)\)/);
|
|
3287
3287
|
if (t) {
|
|
3288
3288
|
const o = t[1].split(",").map((r) => parseFloat(r.trim()));
|
|
@@ -3295,75 +3295,75 @@ function fo(e) {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/), 1;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function pl(e, t) {
|
|
3299
3299
|
const n = (() => {
|
|
3300
|
-
if (e === "fade in") return
|
|
3300
|
+
if (e === "fade in") return W.fadeIn;
|
|
3301
3301
|
if (e === "slide in" || e === "mix")
|
|
3302
3302
|
switch (t) {
|
|
3303
3303
|
case "left":
|
|
3304
|
-
return
|
|
3304
|
+
return W.slideInLeft;
|
|
3305
3305
|
case "right":
|
|
3306
|
-
return
|
|
3306
|
+
return W.slideInRight;
|
|
3307
3307
|
case "top":
|
|
3308
|
-
return
|
|
3308
|
+
return W.slideInTop;
|
|
3309
3309
|
case "bottom":
|
|
3310
|
-
return
|
|
3310
|
+
return W.slideInBottom;
|
|
3311
3311
|
default:
|
|
3312
|
-
return
|
|
3312
|
+
return W.slideInRight;
|
|
3313
3313
|
}
|
|
3314
|
-
return
|
|
3314
|
+
return W.fadeIn;
|
|
3315
3315
|
})(), o = (() => {
|
|
3316
|
-
if (e === "fade in" || e === "mix") return
|
|
3316
|
+
if (e === "fade in" || e === "mix") return W.fadeIn;
|
|
3317
3317
|
if (e === "slide in")
|
|
3318
3318
|
switch (t) {
|
|
3319
3319
|
case "left":
|
|
3320
|
-
return
|
|
3320
|
+
return W.slideInLeft;
|
|
3321
3321
|
case "right":
|
|
3322
|
-
return
|
|
3322
|
+
return W.slideInRight;
|
|
3323
3323
|
case "top":
|
|
3324
|
-
return
|
|
3324
|
+
return W.slideInTop;
|
|
3325
3325
|
case "bottom":
|
|
3326
|
-
return
|
|
3326
|
+
return W.slideInBottom;
|
|
3327
3327
|
default:
|
|
3328
|
-
return
|
|
3328
|
+
return W.slideInRight;
|
|
3329
3329
|
}
|
|
3330
|
-
return
|
|
3330
|
+
return W.fadeIn;
|
|
3331
3331
|
})(), r = (() => {
|
|
3332
|
-
if (e === "fade in" || e === "mix") return
|
|
3332
|
+
if (e === "fade in" || e === "mix") return W.fadeOut;
|
|
3333
3333
|
if (e === "slide in")
|
|
3334
3334
|
switch (t) {
|
|
3335
3335
|
case "left":
|
|
3336
|
-
return
|
|
3336
|
+
return W.slideOutLeft;
|
|
3337
3337
|
case "right":
|
|
3338
|
-
return
|
|
3338
|
+
return W.slideOutRight;
|
|
3339
3339
|
case "top":
|
|
3340
|
-
return
|
|
3340
|
+
return W.slideOutTop;
|
|
3341
3341
|
case "bottom":
|
|
3342
|
-
return
|
|
3342
|
+
return W.slideOutBottom;
|
|
3343
3343
|
default:
|
|
3344
|
-
return
|
|
3344
|
+
return W.slideOutRight;
|
|
3345
3345
|
}
|
|
3346
|
-
return
|
|
3346
|
+
return W.fadeOut;
|
|
3347
3347
|
})(), a = (() => {
|
|
3348
|
-
if (e === "fade in") return
|
|
3348
|
+
if (e === "fade in") return W.fadeOut;
|
|
3349
3349
|
if (e === "slide in" || e === "mix")
|
|
3350
3350
|
switch (t) {
|
|
3351
3351
|
case "left":
|
|
3352
|
-
return
|
|
3352
|
+
return W.slideOutLeft;
|
|
3353
3353
|
case "right":
|
|
3354
|
-
return
|
|
3354
|
+
return W.slideOutRight;
|
|
3355
3355
|
case "top":
|
|
3356
|
-
return
|
|
3356
|
+
return W.slideOutTop;
|
|
3357
3357
|
case "bottom":
|
|
3358
|
-
return
|
|
3358
|
+
return W.slideOutBottom;
|
|
3359
3359
|
default:
|
|
3360
|
-
return
|
|
3360
|
+
return W.slideOutRight;
|
|
3361
3361
|
}
|
|
3362
|
-
return
|
|
3362
|
+
return W.fadeOut;
|
|
3363
3363
|
})();
|
|
3364
3364
|
return { appearClass: n, backdropAppearClass: o, backdropDisappearClass: r, disappearClass: a };
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3366
|
+
const dl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, isEditor: a }) => {
|
|
3367
3367
|
const [i, s] = le(!1), { url: l } = e.thumbnailBlock.cover;
|
|
3368
3368
|
return Se(() => {
|
|
3369
3369
|
r === "close" && s(!1), r === "open" && s(!0);
|
|
@@ -3373,12 +3373,12 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3373
3373
|
{
|
|
3374
3374
|
src: l,
|
|
3375
3375
|
alt: "Cover",
|
|
3376
|
-
className:
|
|
3376
|
+
className: W.heroImage,
|
|
3377
3377
|
onClick: () => s(!0)
|
|
3378
3378
|
}
|
|
3379
3379
|
),
|
|
3380
3380
|
/* @__PURE__ */ N(
|
|
3381
|
-
|
|
3381
|
+
gl,
|
|
3382
3382
|
{
|
|
3383
3383
|
isOpen: i,
|
|
3384
3384
|
onClose: () => s(!1),
|
|
@@ -3390,9 +3390,9 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3390
3390
|
}
|
|
3391
3391
|
)
|
|
3392
3392
|
] });
|
|
3393
|
-
},
|
|
3393
|
+
}, gl = ({ isOpen: e, onClose: t, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: s }) => {
|
|
3394
3394
|
var V;
|
|
3395
|
-
const [l, d] = le(0), [p, x] = le(0), [m, h] = le(!1), [c, u] = le(!1), [b, w] = le({}), f =
|
|
3395
|
+
const [l, d] = le(0), [p, x] = le(0), [m, h] = le(!1), [c, u] = le(!1), [b, w] = le({}), f = $e(null), _ = $e(null), z = $e(null), M = $e(!1), A = $e(null), v = $e(null), $ = $e(null), R = $e(null), D = $e(!1), L = $e(null), [k, B] = le(!1), { appear: P, triggers: H, slider: g, thumbnail: I, controls: S, area: T, caption: C, layout: O } = r.lightboxBlock, { appearClass: Y, backdropAppearClass: re, backdropDisappearClass: Z, disappearClass: me } = pl(P.type, P.direction), E = (s == null ? void 0 : s.itemId) ?? null;
|
|
3396
3396
|
Se(() => {
|
|
3397
3397
|
const y = () => {
|
|
3398
3398
|
setTimeout(() => {
|
|
@@ -3419,8 +3419,8 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3419
3419
|
const U = new ResizeObserver(j);
|
|
3420
3420
|
return U.observe(y), () => U.disconnect();
|
|
3421
3421
|
}, [e, I.isActive, n.length, b, g.direction]);
|
|
3422
|
-
const q =
|
|
3423
|
-
const y = window.matchMedia("(max-width: 768px)").matches, j =
|
|
3422
|
+
const q = dr(() => {
|
|
3423
|
+
const y = window.matchMedia("(max-width: 768px)").matches, j = mo(T.color);
|
|
3424
3424
|
y && !i && j > 0.9 && (document.body.style.backgroundColor = ""), h(!0), M.current = !0;
|
|
3425
3425
|
const U = (K) => {
|
|
3426
3426
|
K.target === A.current && K.animationName && (A.current && v.current && A.current.removeEventListener("animationend", v.current), v.current = null, M.current && (M.current = !1, t()), h(!1));
|
|
@@ -3432,9 +3432,9 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3432
3432
|
if (H.type === "click" && H.switch === "image")
|
|
3433
3433
|
H.repeat === "close" && l === n.length - 1 ? q() : (K = f.current) == null || K.go("+1");
|
|
3434
3434
|
else if (H.type === "click" && H.switch === "50/50") {
|
|
3435
|
-
const J = y.getBoundingClientRect(), X = j - J.left, ne = U - J.top,
|
|
3436
|
-
let
|
|
3437
|
-
g.direction === "horiz" ?
|
|
3435
|
+
const J = y.getBoundingClientRect(), X = j - J.left, ne = U - J.top, be = J.width, ae = J.height;
|
|
3436
|
+
let ge;
|
|
3437
|
+
g.direction === "horiz" ? ge = X < be / 2 ? "-1" : "+1" : ge = ne < ae / 2 ? "-1" : "+1", (oe = f.current) == null || oe.go(ge);
|
|
3438
3438
|
}
|
|
3439
3439
|
}
|
|
3440
3440
|
}, ie = (y) => {
|
|
@@ -3451,21 +3451,21 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3451
3451
|
else
|
|
3452
3452
|
return;
|
|
3453
3453
|
let J;
|
|
3454
|
-
if (U &&
|
|
3455
|
-
const X =
|
|
3454
|
+
if (U && z.current) {
|
|
3455
|
+
const X = fo(z.current);
|
|
3456
3456
|
J = K >= X.left && K <= X.right && oe >= X.top && oe <= X.bottom;
|
|
3457
3457
|
} else {
|
|
3458
|
-
const X =
|
|
3458
|
+
const X = z.current ? go(z.current) : null;
|
|
3459
3459
|
if (!X) {
|
|
3460
3460
|
y.target === y.currentTarget && q();
|
|
3461
3461
|
return;
|
|
3462
3462
|
}
|
|
3463
3463
|
J = K >= X.x && K <= X.x + X.width && oe >= X.y && oe <= X.y + X.height;
|
|
3464
3464
|
}
|
|
3465
|
-
J ? ye(
|
|
3466
|
-
},
|
|
3465
|
+
J ? ye(z.current, K, oe) : q();
|
|
3466
|
+
}, pe = (y) => {
|
|
3467
3467
|
const j = y.target;
|
|
3468
|
-
(j.classList.contains(
|
|
3468
|
+
(j.classList.contains(W.thumbsWrapper) || j.classList.contains(W.thumbsContainer)) && ie(y);
|
|
3469
3469
|
};
|
|
3470
3470
|
Se(() => {
|
|
3471
3471
|
if (!e) return;
|
|
@@ -3497,7 +3497,7 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3497
3497
|
_.current !== null && _.current !== g.type && x((y) => y + 1), _.current = g.type;
|
|
3498
3498
|
}, [g.type]), Se(() => {
|
|
3499
3499
|
if (!e) return;
|
|
3500
|
-
const y = document.body.style.overflow, j = window.matchMedia("(max-width: 768px)").matches, U =
|
|
3500
|
+
const y = document.body.style.overflow, j = window.matchMedia("(max-width: 768px)").matches, U = mo(T.color);
|
|
3501
3501
|
document.body.style.overflow = "hidden", u(!1);
|
|
3502
3502
|
const K = (J) => {
|
|
3503
3503
|
J.target === A.current && !M.current && J.animationName && (j && !i && U > 0.9 && (document.body.style.backgroundColor = T.color), u(!0), A.current && $.current && A.current.removeEventListener("animationend", $.current), $.current = null);
|
|
@@ -3505,7 +3505,7 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3505
3505
|
A.current && ($.current = K, A.current.addEventListener("animationend", K));
|
|
3506
3506
|
const oe = (J) => {
|
|
3507
3507
|
const X = J.target;
|
|
3508
|
-
X && (X.closest(`.${
|
|
3508
|
+
X && (X.closest(`.${W.thumbsWrapper}`) || X.closest(`.${W.thumbsContainer}`)) || g.type !== "slide" && J.preventDefault();
|
|
3509
3509
|
};
|
|
3510
3510
|
return document.addEventListener("touchmove", oe, { passive: !1 }), () => {
|
|
3511
3511
|
document.body.style.overflow = y, document.removeEventListener("touchmove", oe), A.current && $.current && (A.current.removeEventListener("animationend", $.current), $.current = null), u(!1);
|
|
@@ -3523,7 +3523,7 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3523
3523
|
return;
|
|
3524
3524
|
}
|
|
3525
3525
|
const U = j.target;
|
|
3526
|
-
if (!(U && (U.closest(`.${
|
|
3526
|
+
if (!(U && (U.closest(`.${W.thumbsContainer}`) || U.closest(`.${W.thumbItem}`)))) {
|
|
3527
3527
|
if (g.type === "slide" && H.type === "drag" && ((oe = (K = f.current) == null ? void 0 : K.splide) != null && oe.root)) {
|
|
3528
3528
|
const J = f.current.splide.root;
|
|
3529
3529
|
if (U && (J.contains(U) || J === U))
|
|
@@ -3531,19 +3531,19 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3531
3531
|
}
|
|
3532
3532
|
if (j.touches.length === 0 && j.changedTouches.length > 0) {
|
|
3533
3533
|
const J = n[l], X = (J == null ? void 0 : J.image.objectFit) === "cover", ne = j.changedTouches[0];
|
|
3534
|
-
let
|
|
3535
|
-
if (X &&
|
|
3536
|
-
const ae =
|
|
3537
|
-
|
|
3534
|
+
let be;
|
|
3535
|
+
if (X && z.current) {
|
|
3536
|
+
const ae = fo(z.current);
|
|
3537
|
+
be = ne.clientX >= ae.left && ne.clientX <= ae.right && ne.clientY >= ae.top && ne.clientY <= ae.bottom;
|
|
3538
3538
|
} else {
|
|
3539
|
-
const ae =
|
|
3539
|
+
const ae = z.current ? go(z.current) : null;
|
|
3540
3540
|
if (!ae) return;
|
|
3541
|
-
|
|
3541
|
+
be = ne.clientX >= ae.x && ne.clientX <= ae.x + ae.width && ne.clientY >= ae.y && ne.clientY <= ae.y + ae.height;
|
|
3542
3542
|
}
|
|
3543
|
-
if (!
|
|
3543
|
+
if (!be) {
|
|
3544
3544
|
j.stopPropagation(), M.current = !0;
|
|
3545
|
-
const ae = (
|
|
3546
|
-
|
|
3545
|
+
const ae = (ge) => {
|
|
3546
|
+
ge.stopPropagation(), ge.preventDefault(), document.removeEventListener("click", ae, !0);
|
|
3547
3547
|
};
|
|
3548
3548
|
document.addEventListener("click", ae, !0), q();
|
|
3549
3549
|
}
|
|
@@ -3554,45 +3554,45 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3554
3554
|
document.removeEventListener("touchend", y);
|
|
3555
3555
|
};
|
|
3556
3556
|
}, [e, q, l, n]);
|
|
3557
|
-
const
|
|
3557
|
+
const de = (g.type === "scale" || g.type === "fade") && g.direction === "vert" && H.type === "drag";
|
|
3558
3558
|
Se(() => {
|
|
3559
|
-
var
|
|
3560
|
-
if (!e || !
|
|
3561
|
-
const y = f.current.splide.root, j = 30, U = (
|
|
3559
|
+
var ge, Ne;
|
|
3560
|
+
if (!e || !de || !((Ne = (ge = f.current) == null ? void 0 : ge.splide) != null && Ne.root)) return;
|
|
3561
|
+
const y = f.current.splide.root, j = 30, U = (ee, te) => {
|
|
3562
3562
|
if (R.current) {
|
|
3563
|
-
const
|
|
3564
|
-
(
|
|
3563
|
+
const ve = Math.abs(ee - R.current.x), Ee = Math.abs(te - R.current.y);
|
|
3564
|
+
(ve > 0 || Ee > 0) && (D.current = !0);
|
|
3565
3565
|
}
|
|
3566
|
-
}, K = (
|
|
3567
|
-
R.current && (
|
|
3568
|
-
}, oe = (
|
|
3569
|
-
R.current &&
|
|
3570
|
-
}, J = (
|
|
3566
|
+
}, K = (ee) => {
|
|
3567
|
+
R.current && (ee.preventDefault(), U(ee.clientX, ee.clientY));
|
|
3568
|
+
}, oe = (ee) => {
|
|
3569
|
+
R.current && ee.touches.length > 0 && (ee.preventDefault(), U(ee.touches[0].clientX, ee.touches[0].clientY));
|
|
3570
|
+
}, J = (ee, te) => {
|
|
3571
3571
|
if (!R.current || !f.current) {
|
|
3572
3572
|
R.current = null;
|
|
3573
3573
|
return;
|
|
3574
3574
|
}
|
|
3575
|
-
const
|
|
3576
|
-
|
|
3577
|
-
}, X = (
|
|
3578
|
-
R.current && J(
|
|
3579
|
-
}, ne = (
|
|
3575
|
+
const ve = Math.abs(ee - R.current.x), Ee = Math.abs(te - R.current.y);
|
|
3576
|
+
Ee > j && Ee > ve && f.current.go(te < R.current.y ? "+1" : "-1"), R.current = null;
|
|
3577
|
+
}, X = (ee) => {
|
|
3578
|
+
R.current && J(ee.clientX, ee.clientY), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("pointermove", K);
|
|
3579
|
+
}, ne = (ee) => {
|
|
3580
3580
|
if (R.current) {
|
|
3581
|
-
if (
|
|
3582
|
-
const te =
|
|
3581
|
+
if (ee.changedTouches.length > 0) {
|
|
3582
|
+
const te = ee.changedTouches[0];
|
|
3583
3583
|
J(te.clientX, te.clientY);
|
|
3584
3584
|
}
|
|
3585
3585
|
document.removeEventListener("touchend", ne), document.removeEventListener("touchcancel", ne), document.removeEventListener("touchmove", oe);
|
|
3586
3586
|
}
|
|
3587
|
-
},
|
|
3588
|
-
R.current = { x:
|
|
3589
|
-
}, ae = (
|
|
3590
|
-
|
|
3587
|
+
}, be = (ee) => {
|
|
3588
|
+
R.current = { x: ee.clientX, y: ee.clientY }, D.current = !1, document.addEventListener("pointermove", K, { passive: !1 }), document.addEventListener("pointerup", X), document.addEventListener("pointercancel", X);
|
|
3589
|
+
}, ae = (ee) => {
|
|
3590
|
+
ee.touches.length > 0 && (R.current = { x: ee.touches[0].clientX, y: ee.touches[0].clientY }, D.current = !1, document.addEventListener("touchmove", oe, { passive: !1 }), document.addEventListener("touchend", ne), document.addEventListener("touchcancel", ne));
|
|
3591
3591
|
};
|
|
3592
|
-
return y.addEventListener("pointerdown",
|
|
3593
|
-
y.removeEventListener("pointerdown",
|
|
3592
|
+
return y.addEventListener("pointerdown", be), y.addEventListener("touchstart", ae), () => {
|
|
3593
|
+
y.removeEventListener("pointerdown", be), y.removeEventListener("touchstart", ae), document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", X), document.removeEventListener("pointercancel", X), document.removeEventListener("touchmove", oe), document.removeEventListener("touchend", ne), document.removeEventListener("touchcancel", ne), R.current = null, D.current = !1;
|
|
3594
3594
|
};
|
|
3595
|
-
}, [e,
|
|
3595
|
+
}, [e, de, p]);
|
|
3596
3596
|
const Ue = {
|
|
3597
3597
|
backgroundColor: T.color,
|
|
3598
3598
|
backdropFilter: `blur(${T.blur}px)`,
|
|
@@ -3600,13 +3600,13 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3600
3600
|
animationTimingFunction: "ease",
|
|
3601
3601
|
animationFillMode: "both"
|
|
3602
3602
|
};
|
|
3603
|
-
return document.getElementById(a) ?
|
|
3603
|
+
return document.getElementById(a) ? gr(
|
|
3604
3604
|
/* @__PURE__ */ Ce(_t, { children: [
|
|
3605
3605
|
/* @__PURE__ */ N(
|
|
3606
3606
|
"div",
|
|
3607
3607
|
{
|
|
3608
3608
|
ref: i ? null : A,
|
|
3609
|
-
className:
|
|
3609
|
+
className: ce(W.background, m ? Z : re, { [W.editor]: i }, { [W.hidden]: !e }),
|
|
3610
3610
|
style: {
|
|
3611
3611
|
...Ue,
|
|
3612
3612
|
...c && !i && !m ? { position: "absolute" } : {}
|
|
@@ -3617,7 +3617,7 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3617
3617
|
"div",
|
|
3618
3618
|
{
|
|
3619
3619
|
ref: i ? A : null,
|
|
3620
|
-
className:
|
|
3620
|
+
className: ce(W.contentStyle, m ? me : Y, { [W.editor]: i }, { [W.hidden]: !e }),
|
|
3621
3621
|
style: {
|
|
3622
3622
|
animationDuration: `${parseInt(P.duration)}ms`,
|
|
3623
3623
|
animationTimingFunction: "ease",
|
|
@@ -3625,18 +3625,18 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3625
3625
|
},
|
|
3626
3626
|
children: [
|
|
3627
3627
|
/* @__PURE__ */ N(
|
|
3628
|
-
|
|
3628
|
+
rr,
|
|
3629
3629
|
{
|
|
3630
3630
|
onMove: (y) => d(y.index),
|
|
3631
3631
|
ref: f,
|
|
3632
|
-
className:
|
|
3632
|
+
className: W.lightboxSplide,
|
|
3633
3633
|
options: {
|
|
3634
3634
|
arrows: !1,
|
|
3635
3635
|
speed: g.duration ? parseInt(g.duration) : 500,
|
|
3636
3636
|
direction: g.direction === "horiz" || g.type === "fade" || g.type === "scale" ? "ltr" : "ttb",
|
|
3637
3637
|
pagination: !1,
|
|
3638
3638
|
// Disable Splide's drag when we need custom vertical drag handling
|
|
3639
|
-
drag: H.type === "drag" && !
|
|
3639
|
+
drag: H.type === "drag" && !de,
|
|
3640
3640
|
perPage: 1,
|
|
3641
3641
|
width: "100%",
|
|
3642
3642
|
height: "100%",
|
|
@@ -3657,14 +3657,14 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3657
3657
|
"--position-transform": J || "none"
|
|
3658
3658
|
};
|
|
3659
3659
|
})() : { ...U, position: "absolute", padding: K, boxSizing: "border-box" };
|
|
3660
|
-
return /* @__PURE__ */ N(
|
|
3660
|
+
return /* @__PURE__ */ N(ir, { children: /* @__PURE__ */ N("div", { className: W.imgWrapper, onClick: ie, children: /* @__PURE__ */ N(
|
|
3661
3661
|
"img",
|
|
3662
3662
|
{
|
|
3663
|
-
ref: j === l ?
|
|
3664
|
-
className:
|
|
3665
|
-
[
|
|
3666
|
-
[
|
|
3667
|
-
[
|
|
3663
|
+
ref: j === l ? z : null,
|
|
3664
|
+
className: ce(W.imageStyle, {
|
|
3665
|
+
[W.contain]: y.image.objectFit === "contain",
|
|
3666
|
+
[W.cover]: y.image.objectFit === "cover",
|
|
3667
|
+
[W.scaleSlide]: g.type === "scale"
|
|
3668
3668
|
}),
|
|
3669
3669
|
src: y.image.url,
|
|
3670
3670
|
alt: y.image.name ?? "",
|
|
@@ -3679,12 +3679,12 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3679
3679
|
/* @__PURE__ */ N(
|
|
3680
3680
|
"div",
|
|
3681
3681
|
{
|
|
3682
|
-
className:
|
|
3682
|
+
className: ce(W.arrow, { [W.arrowVertical]: g.direction === "vert" }),
|
|
3683
3683
|
style: { color: S.color, "--arrow-hover-color": S.hover },
|
|
3684
3684
|
children: /* @__PURE__ */ Ce(
|
|
3685
3685
|
"button",
|
|
3686
3686
|
{
|
|
3687
|
-
className:
|
|
3687
|
+
className: W.arrowInner,
|
|
3688
3688
|
style: { transform: `translate(${F(S.offset.x, i)}, ${F(S.offset.y * (g.direction === "horiz" ? 1 : -1), i)}) scale(${S.scale}) rotate(${g.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3689
3689
|
onClick: () => {
|
|
3690
3690
|
var y;
|
|
@@ -3698,10 +3698,10 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3698
3698
|
url: S.arrowsImgUrl,
|
|
3699
3699
|
fill: S.color,
|
|
3700
3700
|
hoverFill: S.hover,
|
|
3701
|
-
className:
|
|
3701
|
+
className: ce(W.arrowImg, W.mirror)
|
|
3702
3702
|
}
|
|
3703
3703
|
),
|
|
3704
|
-
!S.arrowsImgUrl && /* @__PURE__ */ N(
|
|
3704
|
+
!S.arrowsImgUrl && /* @__PURE__ */ N(yo, { color: S.color, className: ce(W.arrowIcon, W.arrowImg, W.mirror) })
|
|
3705
3705
|
]
|
|
3706
3706
|
}
|
|
3707
3707
|
)
|
|
@@ -3710,12 +3710,12 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3710
3710
|
/* @__PURE__ */ N(
|
|
3711
3711
|
"div",
|
|
3712
3712
|
{
|
|
3713
|
-
className:
|
|
3713
|
+
className: ce(W.arrow, W.nextArrow, { [W.arrowVertical]: g.direction === "vert" }),
|
|
3714
3714
|
style: { color: S.color, "--arrow-hover-color": S.hover },
|
|
3715
3715
|
children: /* @__PURE__ */ Ce(
|
|
3716
3716
|
"button",
|
|
3717
3717
|
{
|
|
3718
|
-
className:
|
|
3718
|
+
className: W.arrowInner,
|
|
3719
3719
|
style: { transform: `translate(${F(S.offset.x * (g.direction === "horiz" ? -1 : 1), i)}, ${F(S.offset.y, i)}) scale(${S.scale}) rotate(${g.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3720
3720
|
onClick: () => {
|
|
3721
3721
|
var y;
|
|
@@ -3729,10 +3729,10 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3729
3729
|
url: S.arrowsImgUrl,
|
|
3730
3730
|
fill: S.color,
|
|
3731
3731
|
hoverFill: S.hover,
|
|
3732
|
-
className:
|
|
3732
|
+
className: W.arrowImg
|
|
3733
3733
|
}
|
|
3734
3734
|
),
|
|
3735
|
-
!S.arrowsImgUrl && /* @__PURE__ */ N(
|
|
3735
|
+
!S.arrowsImgUrl && /* @__PURE__ */ N(yo, { color: S.color, className: ce(W.arrowIcon, W.arrowImg) })
|
|
3736
3736
|
]
|
|
3737
3737
|
}
|
|
3738
3738
|
)
|
|
@@ -3741,14 +3741,14 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3741
3741
|
] }),
|
|
3742
3742
|
T.closeIconUrl && (() => {
|
|
3743
3743
|
const y = Dt(T.closeIconAlign, T.closeIconOffset, i), j = `scale(${T.closeIconScale})`, U = y.transform ? `${y.transform} ${j}` : j;
|
|
3744
|
-
return /* @__PURE__ */ N("button", { className:
|
|
3744
|
+
return /* @__PURE__ */ N("button", { className: W.closeButton, style: { ...y, transform: U }, onClick: q, "aria-label": "Close lightbox", children: /* @__PURE__ */ N(xt, { url: T.closeIconUrl, fill: T.closeIconColor ?? "#000000", hoverFill: T.closeIconHover ?? "#cccccc" }) });
|
|
3745
3745
|
})(),
|
|
3746
3746
|
C && C.isActive && o.imageCaption && ((V = n[l]) == null ? void 0 : V.imageCaption) && (() => {
|
|
3747
3747
|
const { widthSettings: y, fontSettings: j, letterSpacing: U, textAlign: K, wordSpacing: oe, fontSizeLineHeight: J, textAppearance: X, color: ne } = o.imageCaption;
|
|
3748
3748
|
return /* @__PURE__ */ N(
|
|
3749
3749
|
"div",
|
|
3750
3750
|
{
|
|
3751
|
-
className:
|
|
3751
|
+
className: W.caption,
|
|
3752
3752
|
style: {
|
|
3753
3753
|
...Dt(C.alignment, C.offset, i),
|
|
3754
3754
|
fontFamily: j.fontFamily,
|
|
@@ -3765,17 +3765,17 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3765
3765
|
fontVariant: X.fontVariant ?? "normal",
|
|
3766
3766
|
color: ne
|
|
3767
3767
|
},
|
|
3768
|
-
onClick: (
|
|
3768
|
+
onClick: (be) => be.stopPropagation(),
|
|
3769
3769
|
children: /* @__PURE__ */ N(
|
|
3770
3770
|
"div",
|
|
3771
3771
|
{
|
|
3772
3772
|
"data-styles": "imageCaption",
|
|
3773
|
-
className:
|
|
3773
|
+
className: W.captionTextInner,
|
|
3774
3774
|
style: {
|
|
3775
3775
|
"--link-color": C.linkColor,
|
|
3776
3776
|
"--link-hover-color": C.linkHoverColor
|
|
3777
3777
|
},
|
|
3778
|
-
children: /* @__PURE__ */ N(
|
|
3778
|
+
children: /* @__PURE__ */ N(ar, { content: n[l].imageCaption })
|
|
3779
3779
|
}
|
|
3780
3780
|
)
|
|
3781
3781
|
}
|
|
@@ -3798,8 +3798,8 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3798
3798
|
"div",
|
|
3799
3799
|
{
|
|
3800
3800
|
ref: L,
|
|
3801
|
-
className:
|
|
3802
|
-
onClick: (J) =>
|
|
3801
|
+
className: W.thumbsWrapper,
|
|
3802
|
+
onClick: (J) => pe(J),
|
|
3803
3803
|
style: {
|
|
3804
3804
|
position: i ? "absolute" : "fixed",
|
|
3805
3805
|
...K,
|
|
@@ -3817,66 +3817,66 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3817
3817
|
children: /* @__PURE__ */ N(
|
|
3818
3818
|
"div",
|
|
3819
3819
|
{
|
|
3820
|
-
className:
|
|
3821
|
-
[
|
|
3822
|
-
[
|
|
3823
|
-
[
|
|
3824
|
-
[
|
|
3820
|
+
className: ce(W.thumbsContainer, {
|
|
3821
|
+
[W.thumbsContainerVertical]: g.direction === "vert",
|
|
3822
|
+
[W.thumbsAlignStart]: I.align === "start",
|
|
3823
|
+
[W.thumbsAlignCenter]: I.align === "center",
|
|
3824
|
+
[W.thumbsAlignEnd]: I.align === "end"
|
|
3825
3825
|
}),
|
|
3826
3826
|
style: {
|
|
3827
3827
|
gap: F(I.grid.gap, i),
|
|
3828
3828
|
justifyContent: k ? "flex-start" : oe()
|
|
3829
3829
|
},
|
|
3830
3830
|
children: n.map((J, X) => {
|
|
3831
|
-
const ne = X === l,
|
|
3831
|
+
const ne = X === l, be = b[X], ge = I.grid.size * (ne ? I.activeState.scale : 1), Ne = () => {
|
|
3832
3832
|
if (I.fit !== "fit") return {};
|
|
3833
|
-
if (!
|
|
3834
|
-
return g.direction === "horiz" ? { height: F(
|
|
3835
|
-
const
|
|
3833
|
+
if (!be)
|
|
3834
|
+
return g.direction === "horiz" ? { height: F(ge, i) } : { width: F(ge, i) };
|
|
3835
|
+
const ee = be.width / be.height;
|
|
3836
3836
|
if (g.direction === "horiz") {
|
|
3837
|
-
const te =
|
|
3837
|
+
const te = ge, ve = te * ee;
|
|
3838
3838
|
return {
|
|
3839
|
-
width: F(
|
|
3839
|
+
width: F(ve, i),
|
|
3840
3840
|
height: F(te, i)
|
|
3841
3841
|
};
|
|
3842
3842
|
} else {
|
|
3843
|
-
const te =
|
|
3843
|
+
const te = ge, ve = te / ee;
|
|
3844
3844
|
return {
|
|
3845
3845
|
width: F(te, i),
|
|
3846
|
-
height: F(
|
|
3846
|
+
height: F(ve, i)
|
|
3847
3847
|
};
|
|
3848
3848
|
}
|
|
3849
3849
|
};
|
|
3850
3850
|
return /* @__PURE__ */ N(
|
|
3851
3851
|
"button",
|
|
3852
3852
|
{
|
|
3853
|
-
className:
|
|
3853
|
+
className: W.thumbItem,
|
|
3854
3854
|
style: {
|
|
3855
|
-
...g.direction === "horiz" && I.fit !== "fit" ? { height: F(
|
|
3856
|
-
...g.direction === "vert" && I.fit !== "fit" ? { width: F(
|
|
3857
|
-
...I.fit === "cover" ? { width: F(
|
|
3858
|
-
...
|
|
3855
|
+
...g.direction === "horiz" && I.fit !== "fit" ? { height: F(ge, i) } : {},
|
|
3856
|
+
...g.direction === "vert" && I.fit !== "fit" ? { width: F(ge, i) } : {},
|
|
3857
|
+
...I.fit === "cover" ? { width: F(ge, i), height: F(ge, i) } : {},
|
|
3858
|
+
...Ne(),
|
|
3859
3859
|
transition: ne ? "all 0.25s ease-out" : "none",
|
|
3860
3860
|
opacity: ne ? I.activeState.opacity / 100 : I.opacity / 100,
|
|
3861
3861
|
"--thumb-hover": I.activeState.opacity / 100
|
|
3862
3862
|
},
|
|
3863
|
-
onClick: (
|
|
3863
|
+
onClick: (ee) => {
|
|
3864
3864
|
var te;
|
|
3865
|
-
|
|
3865
|
+
ee.stopPropagation(), d(X), (te = f.current) == null || te.go(X);
|
|
3866
3866
|
},
|
|
3867
3867
|
onMouseEnter: () => {
|
|
3868
|
-
var
|
|
3869
|
-
I.triggers === "hov" && ((
|
|
3868
|
+
var ee;
|
|
3869
|
+
I.triggers === "hov" && ((ee = f.current) == null || ee.go(X));
|
|
3870
3870
|
},
|
|
3871
3871
|
children: /* @__PURE__ */ N(
|
|
3872
3872
|
"img",
|
|
3873
3873
|
{
|
|
3874
3874
|
src: J.image.url,
|
|
3875
3875
|
alt: J.image.name ?? "",
|
|
3876
|
-
onLoad: (
|
|
3877
|
-
const te =
|
|
3878
|
-
te.naturalWidth && te.naturalHeight && w((
|
|
3879
|
-
...
|
|
3876
|
+
onLoad: (ee) => {
|
|
3877
|
+
const te = ee.currentTarget;
|
|
3878
|
+
te.naturalWidth && te.naturalHeight && w((ve) => ({
|
|
3879
|
+
...ve,
|
|
3880
3880
|
[X]: { width: te.naturalWidth, height: te.naturalHeight }
|
|
3881
3881
|
}));
|
|
3882
3882
|
},
|
|
@@ -3903,11 +3903,11 @@ const ul = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3903
3903
|
document.getElementById(a)
|
|
3904
3904
|
) : null;
|
|
3905
3905
|
};
|
|
3906
|
-
function
|
|
3906
|
+
function yo({ color: e, className: t }) {
|
|
3907
3907
|
return /* @__PURE__ */ N("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ N("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ N("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3908
3908
|
}
|
|
3909
|
-
const
|
|
3910
|
-
element:
|
|
3909
|
+
const fl = {
|
|
3910
|
+
element: dl,
|
|
3911
3911
|
id: "lightbox",
|
|
3912
3912
|
name: "Lightbox",
|
|
3913
3913
|
preview: {
|
|
@@ -4973,7 +4973,7 @@ const dl = {
|
|
|
4973
4973
|
function st(e) {
|
|
4974
4974
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
4975
4975
|
}
|
|
4976
|
-
function
|
|
4976
|
+
function ml(e) {
|
|
4977
4977
|
return `
|
|
4978
4978
|
.${e}-wrapper {
|
|
4979
4979
|
display: flex;
|
|
@@ -4981,6 +4981,10 @@ function gl(e) {
|
|
|
4981
4981
|
width: 100%;
|
|
4982
4982
|
min-height: ${st(48)};
|
|
4983
4983
|
}
|
|
4984
|
+
.${e}-wrapper.${e}-type-C .${e}-input:focus-visible,
|
|
4985
|
+
.${e}-wrapper.${e}-type-C .${e}-button:focus-visible {
|
|
4986
|
+
outline: none;
|
|
4987
|
+
}
|
|
4984
4988
|
.${e}-form {
|
|
4985
4989
|
display: flex;
|
|
4986
4990
|
flex-direction: column;
|
|
@@ -5105,8 +5109,8 @@ function gl(e) {
|
|
|
5105
5109
|
}
|
|
5106
5110
|
`;
|
|
5107
5111
|
}
|
|
5108
|
-
function
|
|
5109
|
-
const { prefix: r } =
|
|
5112
|
+
function yl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
5113
|
+
const { prefix: r } = Co(), {
|
|
5110
5114
|
type: a = "A",
|
|
5111
5115
|
fieldsToShow: i = 2,
|
|
5112
5116
|
fields: s = [],
|
|
@@ -5122,7 +5126,7 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5122
5126
|
inputColor: w,
|
|
5123
5127
|
inputTextColor: f,
|
|
5124
5128
|
inputBorderColor: _,
|
|
5125
|
-
placeholderColor:
|
|
5129
|
+
placeholderColor: z,
|
|
5126
5130
|
buttonColor: M,
|
|
5127
5131
|
buttonTextColor: A,
|
|
5128
5132
|
buttonBorderColor: v,
|
|
@@ -5148,8 +5152,8 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5148
5152
|
labelLetterSpacing: q,
|
|
5149
5153
|
labelWordSpacing: ye,
|
|
5150
5154
|
labelTextAppearance: ie,
|
|
5151
|
-
successMessage:
|
|
5152
|
-
errorMessage:
|
|
5155
|
+
successMessage: pe,
|
|
5156
|
+
errorMessage: de,
|
|
5153
5157
|
stateOverrides: Ue
|
|
5154
5158
|
} = e, V = a === "B", y = s.slice(0, Math.min(i, s.length)), j = {
|
|
5155
5159
|
fontSettings: {
|
|
@@ -5162,16 +5166,20 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5162
5166
|
letterSpacing: H ?? 0,
|
|
5163
5167
|
wordSpacing: g ?? 0,
|
|
5164
5168
|
textAppearance: I
|
|
5165
|
-
}, U =
|
|
5169
|
+
}, U = yn(j, t), K = F(c ?? 0, t), oe = {
|
|
5166
5170
|
...U,
|
|
5167
5171
|
borderStyle: "solid",
|
|
5168
|
-
borderRadius: F(h ?? 0, t),
|
|
5169
|
-
borderWidth:
|
|
5172
|
+
borderRadius: a === "C" ? 0 : F(h ?? 0, t),
|
|
5173
|
+
borderWidth: a === "C" ? void 0 : K,
|
|
5174
|
+
borderTopWidth: a === "C" ? 0 : void 0,
|
|
5175
|
+
borderRightWidth: a === "C" ? 0 : void 0,
|
|
5176
|
+
borderBottomWidth: a === "C" ? K : void 0,
|
|
5177
|
+
borderLeftWidth: a === "C" ? 0 : void 0,
|
|
5170
5178
|
paddingTop: F((b == null ? void 0 : b.top) ?? 0, t),
|
|
5171
5179
|
paddingRight: F((b == null ? void 0 : b.right) ?? 0, t),
|
|
5172
5180
|
paddingBottom: F((b == null ? void 0 : b.bottom) ?? 0, t),
|
|
5173
5181
|
paddingLeft: F((b == null ? void 0 : b.left) ?? 0, t)
|
|
5174
|
-
},
|
|
5182
|
+
}, J = {
|
|
5175
5183
|
fontSettings: {
|
|
5176
5184
|
fontFamily: L,
|
|
5177
5185
|
fontWeight: (S == null ? void 0 : S.fontWeight) ?? 400,
|
|
@@ -5182,7 +5190,7 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5182
5190
|
letterSpacing: O ?? 0,
|
|
5183
5191
|
wordSpacing: Y ?? 0,
|
|
5184
5192
|
textAppearance: re
|
|
5185
|
-
}, J =
|
|
5193
|
+
}, X = yn(J, t), ne = F(m ?? 0, t), be = {
|
|
5186
5194
|
fontSettings: {
|
|
5187
5195
|
fontFamily: L,
|
|
5188
5196
|
fontWeight: (Z == null ? void 0 : Z.fontWeight) ?? 400,
|
|
@@ -5193,38 +5201,38 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5193
5201
|
letterSpacing: q ?? 0,
|
|
5194
5202
|
wordSpacing: ye ?? 0,
|
|
5195
5203
|
textAppearance: ie
|
|
5196
|
-
},
|
|
5204
|
+
}, ae = yn(be, t), ge = vl(r, {
|
|
5197
5205
|
inputColor: w,
|
|
5198
5206
|
inputTextColor: f,
|
|
5199
5207
|
inputBorderColor: _,
|
|
5200
|
-
placeholderColor:
|
|
5208
|
+
placeholderColor: z != null && z.trim() ? z : "#cccccc",
|
|
5201
5209
|
buttonColor: M,
|
|
5202
5210
|
buttonTextColor: A,
|
|
5203
5211
|
buttonBorderColor: v,
|
|
5204
5212
|
labelTextColor: $,
|
|
5205
5213
|
successColor: R,
|
|
5206
5214
|
errorColor: D
|
|
5207
|
-
}, Ue), [
|
|
5215
|
+
}, Ue), [Ne, ee] = le(
|
|
5208
5216
|
() => Object.fromEntries(y.map((fe) => [fe.name, ""]))
|
|
5209
|
-
), [
|
|
5210
|
-
|
|
5211
|
-
},
|
|
5217
|
+
), [te, ve] = le("idle"), [Ee, xe] = le(null), Oe = o === "success" ? "success" : o === "error" ? "error" : te, sr = o === "error" ? de : Ee, un = o === "filled" ? Object.fromEntries(y.map((fe) => [fe.name, "Filled"])) : Ne, cr = Oe === "error" ? Gt(y, un) : null, ur = o && o !== "default" ? `${r}-state-${o}` : "", Yn = n == null ? void 0 : n.submitUrl, Xn = (fe, it) => {
|
|
5218
|
+
ee((Ge) => ({ ...Ge, [fe]: it }));
|
|
5219
|
+
}, pr = async (fe) => {
|
|
5212
5220
|
fe.preventDefault();
|
|
5213
5221
|
const it = Object.fromEntries(
|
|
5214
5222
|
y.map((Ie) => {
|
|
5215
5223
|
var at;
|
|
5216
|
-
return [Ie.name, ((at =
|
|
5224
|
+
return [Ie.name, ((at = Ne[Ie.name]) == null ? void 0 : at.trim()) ?? ""];
|
|
5217
5225
|
}).filter(([, Ie]) => Ie)
|
|
5218
5226
|
);
|
|
5219
|
-
if (!
|
|
5220
|
-
const Ge = Gt(y,
|
|
5227
|
+
if (!Yn || Object.keys(it).length === 0) return;
|
|
5228
|
+
const Ge = Gt(y, Ne);
|
|
5221
5229
|
if (Ge) {
|
|
5222
|
-
|
|
5230
|
+
ve("error"), xe(Ge);
|
|
5223
5231
|
return;
|
|
5224
5232
|
}
|
|
5225
|
-
|
|
5233
|
+
ve("submitting"), xe(null);
|
|
5226
5234
|
try {
|
|
5227
|
-
const Ie = await fetch(
|
|
5235
|
+
const Ie = await fetch(Yn, {
|
|
5228
5236
|
method: "POST",
|
|
5229
5237
|
headers: { "Content-Type": "application/json" },
|
|
5230
5238
|
body: JSON.stringify(it)
|
|
@@ -5233,17 +5241,17 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5233
5241
|
const at = await Ie.text();
|
|
5234
5242
|
throw new Error(at || `Request failed: ${Ie.status}`);
|
|
5235
5243
|
}
|
|
5236
|
-
|
|
5244
|
+
ve("success"), ee(Object.fromEntries(y.map((at) => [at.name, ""])));
|
|
5237
5245
|
} catch (Ie) {
|
|
5238
|
-
|
|
5246
|
+
ve("error"), xe(Ie instanceof Error ? Ie.message : "Something went wrong");
|
|
5239
5247
|
}
|
|
5240
5248
|
};
|
|
5241
|
-
return /* @__PURE__ */ Ce("div", { className: `${r}-wrapper ${
|
|
5242
|
-
/* @__PURE__ */ N("style", { children:
|
|
5249
|
+
return /* @__PURE__ */ Ce("div", { className: `${r}-wrapper ${r}-type-${a} ${ur}`.trim(), style: ge, children: [
|
|
5250
|
+
/* @__PURE__ */ N("style", { children: ml(r) }),
|
|
5243
5251
|
/* @__PURE__ */ Ce(
|
|
5244
5252
|
"form",
|
|
5245
5253
|
{
|
|
5246
|
-
onSubmit:
|
|
5254
|
+
onSubmit: pr,
|
|
5247
5255
|
className: `${r}-form`,
|
|
5248
5256
|
style: { gap: F(d, t) },
|
|
5249
5257
|
children: [
|
|
@@ -5253,17 +5261,17 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5253
5261
|
className: `${r}-fields`,
|
|
5254
5262
|
style: { gap: F(p, t) },
|
|
5255
5263
|
children: y.map((fe, it) => /* @__PURE__ */ Ce("div", { className: `${r}-field-group${V ? ` ${r}-labeled` : ""}`, children: [
|
|
5256
|
-
V && /* @__PURE__ */ N("span", { className: `${r}-field-label`, style:
|
|
5264
|
+
V && /* @__PURE__ */ N("span", { className: `${r}-field-label`, style: ae ? { ...ae, lineHeight: ae.fontSize } : void 0, children: fe.label || fe.name }),
|
|
5257
5265
|
fe.type === "textarea" ? /* @__PURE__ */ N(
|
|
5258
5266
|
"textarea",
|
|
5259
5267
|
{
|
|
5260
5268
|
name: fe.name,
|
|
5261
5269
|
autoComplete: "off",
|
|
5262
|
-
value:
|
|
5263
|
-
onChange: (Ge) =>
|
|
5270
|
+
value: un[fe.name] ?? "",
|
|
5271
|
+
onChange: (Ge) => Xn(fe.name, Ge.target.value),
|
|
5264
5272
|
placeholder: fe.placeholder,
|
|
5265
5273
|
className: `${r}-input`,
|
|
5266
|
-
style:
|
|
5274
|
+
style: oe,
|
|
5267
5275
|
rows: 1,
|
|
5268
5276
|
"data-field-type": "textarea"
|
|
5269
5277
|
}
|
|
@@ -5273,12 +5281,12 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5273
5281
|
type: fe.type === "phone" ? "tel" : fe.type === "email" ? "email" : "text",
|
|
5274
5282
|
name: fe.name,
|
|
5275
5283
|
autoComplete: "off",
|
|
5276
|
-
value:
|
|
5277
|
-
onChange: (Ge) =>
|
|
5284
|
+
value: un[fe.name] ?? "",
|
|
5285
|
+
onChange: (Ge) => Xn(fe.name, Ge.target.value),
|
|
5278
5286
|
placeholder: fe.placeholder,
|
|
5279
5287
|
required: fe.type === "email",
|
|
5280
5288
|
className: `${r}-input`,
|
|
5281
|
-
style:
|
|
5289
|
+
style: oe
|
|
5282
5290
|
}
|
|
5283
5291
|
)
|
|
5284
5292
|
] }, it))
|
|
@@ -5291,40 +5299,44 @@ function fl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5291
5299
|
className: `${r}-button`,
|
|
5292
5300
|
style: {
|
|
5293
5301
|
borderStyle: "solid",
|
|
5294
|
-
borderRadius: F(x ?? 0, t),
|
|
5295
|
-
borderWidth:
|
|
5302
|
+
borderRadius: a === "C" ? 0 : F(x ?? 0, t),
|
|
5303
|
+
borderWidth: a === "C" ? void 0 : ne,
|
|
5304
|
+
borderTopWidth: a === "C" ? 0 : void 0,
|
|
5305
|
+
borderRightWidth: a === "C" ? 0 : void 0,
|
|
5306
|
+
borderBottomWidth: a === "C" ? ne : void 0,
|
|
5307
|
+
borderLeftWidth: a === "C" ? 0 : void 0,
|
|
5296
5308
|
paddingTop: F((u == null ? void 0 : u.top) ?? 0, t),
|
|
5297
5309
|
paddingRight: F((u == null ? void 0 : u.right) ?? 0, t),
|
|
5298
5310
|
paddingBottom: F((u == null ? void 0 : u.bottom) ?? 0, t),
|
|
5299
5311
|
paddingLeft: F((u == null ? void 0 : u.left) ?? 0, t),
|
|
5300
|
-
...
|
|
5312
|
+
...X
|
|
5301
5313
|
},
|
|
5302
|
-
children: /* @__PURE__ */ N("span", { className: `${r}-overlay-anchor`, children:
|
|
5314
|
+
children: /* @__PURE__ */ N("span", { className: `${r}-overlay-anchor`, children: te === "submitting" ? "..." : l })
|
|
5303
5315
|
}
|
|
5304
5316
|
) })
|
|
5305
5317
|
]
|
|
5306
5318
|
}
|
|
5307
5319
|
),
|
|
5308
|
-
|
|
5320
|
+
Oe === "success" && /* @__PURE__ */ N(
|
|
5309
5321
|
"p",
|
|
5310
5322
|
{
|
|
5311
5323
|
className: `${r}-success`,
|
|
5312
5324
|
style: { ...U, lineHeight: U == null ? void 0 : U.fontSize },
|
|
5313
|
-
children:
|
|
5325
|
+
children: pe
|
|
5314
5326
|
}
|
|
5315
5327
|
),
|
|
5316
|
-
|
|
5328
|
+
Oe === "error" && /* @__PURE__ */ N(
|
|
5317
5329
|
"p",
|
|
5318
5330
|
{
|
|
5319
5331
|
className: `${r}-error`,
|
|
5320
5332
|
style: { ...U, lineHeight: U == null ? void 0 : U.fontSize },
|
|
5321
5333
|
role: "alert",
|
|
5322
|
-
children:
|
|
5334
|
+
children: cr ?? sr ?? de
|
|
5323
5335
|
}
|
|
5324
5336
|
)
|
|
5325
5337
|
] });
|
|
5326
5338
|
}
|
|
5327
|
-
const
|
|
5339
|
+
const ho = {
|
|
5328
5340
|
inputColor: "input-color",
|
|
5329
5341
|
inputTextColor: "input-text-color",
|
|
5330
5342
|
inputBorderColor: "input-border-color",
|
|
@@ -5335,23 +5347,23 @@ const yo = {
|
|
|
5335
5347
|
labelTextColor: "label-text-color",
|
|
5336
5348
|
successColor: "success-color",
|
|
5337
5349
|
errorColor: "error-color"
|
|
5338
|
-
},
|
|
5339
|
-
function
|
|
5350
|
+
}, hl = ["hover", "focus", "filled", "success", "error"];
|
|
5351
|
+
function vl(e, t, n) {
|
|
5340
5352
|
const o = {};
|
|
5341
|
-
for (const [r, a] of Object.entries(
|
|
5353
|
+
for (const [r, a] of Object.entries(ho))
|
|
5342
5354
|
o[`--${e}-${a}`] = t[r];
|
|
5343
5355
|
if (n)
|
|
5344
|
-
for (const r of
|
|
5356
|
+
for (const r of hl) {
|
|
5345
5357
|
const a = n[r];
|
|
5346
5358
|
if (a)
|
|
5347
|
-
for (const [i, s] of Object.entries(
|
|
5359
|
+
for (const [i, s] of Object.entries(ho)) {
|
|
5348
5360
|
const l = a[i];
|
|
5349
5361
|
l !== void 0 && (o[`--${e}-${r}-${s}`] = l);
|
|
5350
5362
|
}
|
|
5351
5363
|
}
|
|
5352
5364
|
return o;
|
|
5353
5365
|
}
|
|
5354
|
-
function
|
|
5366
|
+
function yn(e, t) {
|
|
5355
5367
|
var n, o, r;
|
|
5356
5368
|
return {
|
|
5357
5369
|
fontFamily: e.fontSettings.fontFamily,
|
|
@@ -5366,7 +5378,7 @@ function mn(e, t) {
|
|
|
5366
5378
|
fontVariant: (r = e.textAppearance) == null ? void 0 : r.fontVariant
|
|
5367
5379
|
};
|
|
5368
5380
|
}
|
|
5369
|
-
const
|
|
5381
|
+
const bl = `import React, { useState } from 'react';
|
|
5370
5382
|
import { CommonComponentProps } from '../props';
|
|
5371
5383
|
import { getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
5372
5384
|
|
|
@@ -5382,6 +5394,10 @@ function getCSS(P: string): string {
|
|
|
5382
5394
|
width: 100%;
|
|
5383
5395
|
min-height: \${sv(48)};
|
|
5384
5396
|
}
|
|
5397
|
+
.\${P}-wrapper.\${P}-type-C .\${P}-input:focus-visible,
|
|
5398
|
+
.\${P}-wrapper.\${P}-type-C .\${P}-button:focus-visible {
|
|
5399
|
+
outline: none;
|
|
5400
|
+
}
|
|
5385
5401
|
.\${P}-form {
|
|
5386
5402
|
display: flex;
|
|
5387
5403
|
flex-direction: column;
|
|
@@ -5581,11 +5597,16 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5581
5597
|
color: inputTextColor,
|
|
5582
5598
|
};
|
|
5583
5599
|
const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
|
|
5600
|
+
const strokeForInput = scalingValue(inputStroke ?? 0, isEditor);
|
|
5584
5601
|
const inputFieldCss = {
|
|
5585
5602
|
...inputCss,
|
|
5586
5603
|
borderStyle: 'solid',
|
|
5587
|
-
borderRadius: scalingValue(inputCorners ?? 0, isEditor),
|
|
5588
|
-
borderWidth:
|
|
5604
|
+
borderRadius: type === 'C' ? 0 : scalingValue(inputCorners ?? 0, isEditor),
|
|
5605
|
+
borderWidth: type === 'C' ? undefined : strokeForInput,
|
|
5606
|
+
borderTopWidth: type === 'C' ? 0 : undefined,
|
|
5607
|
+
borderRightWidth: type === 'C' ? 0 : undefined,
|
|
5608
|
+
borderBottomWidth: type === 'C' ? strokeForInput : undefined,
|
|
5609
|
+
borderLeftWidth: type === 'C' ? 0 : undefined,
|
|
5589
5610
|
paddingTop: scalingValue(inputPadding?.top ?? 0, isEditor),
|
|
5590
5611
|
paddingRight: scalingValue(inputPadding?.right ?? 0, isEditor),
|
|
5591
5612
|
paddingBottom: scalingValue(inputPadding?.bottom ?? 0, isEditor),
|
|
@@ -5606,6 +5627,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5606
5627
|
color: buttonTextColor,
|
|
5607
5628
|
};
|
|
5608
5629
|
const buttonTextCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
|
|
5630
|
+
const strokeForButton = scalingValue(buttonStroke ?? 0, isEditor);
|
|
5609
5631
|
|
|
5610
5632
|
const resolvedLabelTextStyle: TextStyles = {
|
|
5611
5633
|
fontSettings: {
|
|
@@ -5696,7 +5718,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5696
5718
|
};
|
|
5697
5719
|
|
|
5698
5720
|
return (
|
|
5699
|
-
<div className={\`\${P}-wrapper \${stateClass}\`.trim()} style={colorVars}>
|
|
5721
|
+
<div className={\`\${P}-wrapper \${P}-type-\${type} \${stateClass}\`.trim()} style={colorVars}>
|
|
5700
5722
|
<style>{getCSS(P)}</style>
|
|
5701
5723
|
<form
|
|
5702
5724
|
onSubmit={handleSubmit}
|
|
@@ -5748,8 +5770,12 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
|
|
|
5748
5770
|
className={\`\${P}-button\`}
|
|
5749
5771
|
style={{
|
|
5750
5772
|
borderStyle: 'solid',
|
|
5751
|
-
borderRadius: scalingValue(buttonCorners ?? 0, isEditor),
|
|
5752
|
-
borderWidth:
|
|
5773
|
+
borderRadius: type === 'C' ? 0 : scalingValue(buttonCorners ?? 0, isEditor),
|
|
5774
|
+
borderWidth: type === 'C' ? undefined : strokeForButton,
|
|
5775
|
+
borderTopWidth: type === 'C' ? 0 : undefined,
|
|
5776
|
+
borderRightWidth: type === 'C' ? 0 : undefined,
|
|
5777
|
+
borderBottomWidth: type === 'C' ? strokeForButton : undefined,
|
|
5778
|
+
borderLeftWidth: type === 'C' ? 0 : undefined,
|
|
5753
5779
|
paddingTop: scalingValue(buttonPadding?.top ?? 0, isEditor),
|
|
5754
5780
|
paddingRight: scalingValue(buttonPadding?.right ?? 0, isEditor),
|
|
5755
5781
|
paddingBottom: scalingValue(buttonPadding?.bottom ?? 0, isEditor),
|
|
@@ -5833,7 +5859,7 @@ type ColorKeys =
|
|
|
5833
5859
|
type StateColorOverrides = Partial<Record<ColorKeys, string>>;
|
|
5834
5860
|
|
|
5835
5861
|
type FormSettings = {
|
|
5836
|
-
type: 'A' | 'B';
|
|
5862
|
+
type: 'A' | 'B' | 'C';
|
|
5837
5863
|
fontFamily: string;
|
|
5838
5864
|
fieldsToShow: number;
|
|
5839
5865
|
fields: FormFieldItem[];
|
|
@@ -5932,7 +5958,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
5932
5958
|
fontVariant: textStyles.textAppearance?.fontVariant
|
|
5933
5959
|
};
|
|
5934
5960
|
}
|
|
5935
|
-
`,
|
|
5961
|
+
`, Sl = [
|
|
5936
5962
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
5937
5963
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
5938
5964
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
@@ -5940,7 +5966,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
5940
5966
|
{ name: "message", type: "textarea", placeholder: "Enter your message", label: "Message", isRequired: !1, error: "Message is required" },
|
|
5941
5967
|
{ name: "message2", type: "textarea", placeholder: "Enter your message 2", label: "Message 2", isRequired: !1, error: "Message 2 is required" },
|
|
5942
5968
|
{ name: "message3", type: "textarea", placeholder: "Enter your message 3", label: "Message 3", isRequired: !1, error: "Message 3 is required" }
|
|
5943
|
-
],
|
|
5969
|
+
], hn = {
|
|
5944
5970
|
fontSettings: {
|
|
5945
5971
|
type: "object",
|
|
5946
5972
|
display: { type: "font-settings-weight" },
|
|
@@ -5949,7 +5975,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
5949
5975
|
fontStyle: { type: "string" }
|
|
5950
5976
|
}
|
|
5951
5977
|
}
|
|
5952
|
-
},
|
|
5978
|
+
}, Cl = [
|
|
5953
5979
|
"inputColor",
|
|
5954
5980
|
"inputTextColor",
|
|
5955
5981
|
"inputBorderColor",
|
|
@@ -5960,7 +5986,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
5960
5986
|
"labelTextColor",
|
|
5961
5987
|
"successColor",
|
|
5962
5988
|
"errorColor"
|
|
5963
|
-
],
|
|
5989
|
+
], xl = {
|
|
5964
5990
|
type: "object",
|
|
5965
5991
|
version: 1,
|
|
5966
5992
|
settings: {
|
|
@@ -6014,7 +6040,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6014
6040
|
scope: "common",
|
|
6015
6041
|
title: "",
|
|
6016
6042
|
display: { type: "radio-group" },
|
|
6017
|
-
enum: ["A", "B"]
|
|
6043
|
+
enum: ["A", "B", "C"]
|
|
6018
6044
|
},
|
|
6019
6045
|
gap: {
|
|
6020
6046
|
type: "number",
|
|
@@ -6147,7 +6173,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6147
6173
|
display: { type: "font-family-select" }
|
|
6148
6174
|
},
|
|
6149
6175
|
inputFontSettings: {
|
|
6150
|
-
...
|
|
6176
|
+
...hn.fontSettings,
|
|
6151
6177
|
scope: "layout",
|
|
6152
6178
|
title: "Input",
|
|
6153
6179
|
display: { type: "font-settings-weight" }
|
|
@@ -6183,7 +6209,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6183
6209
|
display: { type: "text-appearance" }
|
|
6184
6210
|
},
|
|
6185
6211
|
buttonFontSettings: {
|
|
6186
|
-
...
|
|
6212
|
+
...hn.fontSettings,
|
|
6187
6213
|
scope: "layout",
|
|
6188
6214
|
title: "Button",
|
|
6189
6215
|
display: { type: "font-settings-weight" }
|
|
@@ -6219,7 +6245,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6219
6245
|
display: { type: "text-appearance" }
|
|
6220
6246
|
},
|
|
6221
6247
|
labelFontSettings: {
|
|
6222
|
-
...
|
|
6248
|
+
...hn.fontSettings,
|
|
6223
6249
|
scope: "layout",
|
|
6224
6250
|
title: "Label",
|
|
6225
6251
|
display: { type: "font-settings-weight", visible: !1 }
|
|
@@ -6257,7 +6283,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6257
6283
|
},
|
|
6258
6284
|
defaults: {
|
|
6259
6285
|
fieldsToShow: 2,
|
|
6260
|
-
fields:
|
|
6286
|
+
fields: Sl,
|
|
6261
6287
|
type: "A",
|
|
6262
6288
|
inputColor: "#FFFFFF",
|
|
6263
6289
|
inputTextColor: "#999999",
|
|
@@ -6370,6 +6396,14 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6370
6396
|
{
|
|
6371
6397
|
if: { name: "type", value: "B" },
|
|
6372
6398
|
then: { name: "properties.labelTextAppearance.display.visible", value: !0 }
|
|
6399
|
+
},
|
|
6400
|
+
{
|
|
6401
|
+
if: { name: "type", value: "C" },
|
|
6402
|
+
then: { name: "properties.buttonCorners.display.visible", value: !1 }
|
|
6403
|
+
},
|
|
6404
|
+
{
|
|
6405
|
+
if: { name: "type", value: "C" },
|
|
6406
|
+
then: { name: "properties.inputCorners.display.visible", value: !1 }
|
|
6373
6407
|
}
|
|
6374
6408
|
]
|
|
6375
6409
|
},
|
|
@@ -6460,7 +6494,7 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6460
6494
|
}
|
|
6461
6495
|
],
|
|
6462
6496
|
paletteBookmark: {
|
|
6463
|
-
items: [...
|
|
6497
|
+
items: [...Cl],
|
|
6464
6498
|
panelIds: ["general", "typeStyle"],
|
|
6465
6499
|
stateItems: {
|
|
6466
6500
|
default: ["inputColor", "inputBorderColor", "placeholderColor", "placeholderTextColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "labelTextColor"],
|
|
@@ -6473,8 +6507,8 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6473
6507
|
},
|
|
6474
6508
|
allowedPlugins: ["newsletter"],
|
|
6475
6509
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
6476
|
-
},
|
|
6477
|
-
element:
|
|
6510
|
+
}, _l = {
|
|
6511
|
+
element: yl,
|
|
6478
6512
|
id: "form",
|
|
6479
6513
|
name: "Newsletter Stacked",
|
|
6480
6514
|
preview: {
|
|
@@ -6486,13 +6520,13 @@ function textStylesToCss(textStyles: TextStyles, isEditor?: boolean): React.CSSP
|
|
|
6486
6520
|
width: 400,
|
|
6487
6521
|
height: 42
|
|
6488
6522
|
},
|
|
6489
|
-
schema:
|
|
6490
|
-
sourceCode:
|
|
6523
|
+
schema: xl,
|
|
6524
|
+
sourceCode: bl
|
|
6491
6525
|
};
|
|
6492
6526
|
function Vt(e) {
|
|
6493
6527
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
6494
6528
|
}
|
|
6495
|
-
function
|
|
6529
|
+
function wl(e) {
|
|
6496
6530
|
return `
|
|
6497
6531
|
.${e}-wrapper {
|
|
6498
6532
|
display: flex;
|
|
@@ -6658,8 +6692,8 @@ function xl(e) {
|
|
|
6658
6692
|
}
|
|
6659
6693
|
`;
|
|
6660
6694
|
}
|
|
6661
|
-
const
|
|
6662
|
-
const { prefix: r } =
|
|
6695
|
+
const $l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
6696
|
+
const { prefix: r } = Co(), {
|
|
6663
6697
|
fields: a = [{ name: "email", type: "email", placeholder: "Your email" }],
|
|
6664
6698
|
buttonContent: i,
|
|
6665
6699
|
submitButtonContent: s,
|
|
@@ -6675,7 +6709,7 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6675
6709
|
inputLetterSpacing: w,
|
|
6676
6710
|
inputWordSpacing: f,
|
|
6677
6711
|
inputTextAppearance: _,
|
|
6678
|
-
buttonFontSettings:
|
|
6712
|
+
buttonFontSettings: z,
|
|
6679
6713
|
buttonFontSize: M,
|
|
6680
6714
|
buttonLineHeight: A,
|
|
6681
6715
|
buttonLetterSpacing: v,
|
|
@@ -6691,7 +6725,7 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6691
6725
|
errorMessage: I = "Please, fill all required fields."
|
|
6692
6726
|
} = e, S = a.slice(0, Math.min(p, a.length)), [T, C] = le(
|
|
6693
6727
|
() => Object.fromEntries(S.map((te) => [te.name, ""]))
|
|
6694
|
-
), [O, Y] = le("idle"), [re, Z] = le(null), me = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : re, q = o === "filled" ? Object.fromEntries(S.map((te) => [te.name, "Filled"])) : T, ye = me === "error" ? Gt(S, q) : null, ie = o && o !== "default" ? `${r}-state-${o}` : "",
|
|
6728
|
+
), [O, Y] = le("idle"), [re, Z] = le(null), me = o === "success" ? "success" : o === "error" ? "error" : O, E = o === "error" ? I : re, q = o === "filled" ? Object.fromEntries(S.map((te) => [te.name, "Filled"])) : T, ye = me === "error" ? Gt(S, q) : null, ie = o && o !== "default" ? `${r}-state-${o}` : "", pe = n == null ? void 0 : n.submitUrl, de = i, Ue = (de == null ? void 0 : de.mode) === "Icon" || (de == null ? void 0 : de.mode) === "Label" ? de.mode : s === "Icon" ? "Icon" : "Label", V = de === void 0 ? l : de.label !== void 0 ? de.label : l, y = de === void 0 ? d : de.icon !== void 0 ? de.icon : d, j = V ?? "", U = y ?? "", K = Ue === "Icon", oe = j || "Submit", J = c || u !== void 0 || b !== void 0 || w !== void 0 || f !== void 0 || _ !== void 0 ? {
|
|
6695
6729
|
fontSettings: {
|
|
6696
6730
|
fontFamily: x,
|
|
6697
6731
|
fontWeight: (c == null ? void 0 : c.fontWeight) ?? 400,
|
|
@@ -6710,11 +6744,11 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6710
6744
|
fontFamily: x ?? m.fontSettings.fontFamily
|
|
6711
6745
|
},
|
|
6712
6746
|
color: e.inputTextColor ?? m.color ?? "#111111"
|
|
6713
|
-
} : void 0, X =
|
|
6747
|
+
} : void 0, X = z || M !== void 0 || A !== void 0 || v !== void 0 || $ !== void 0 || R !== void 0 ? {
|
|
6714
6748
|
fontSettings: {
|
|
6715
6749
|
fontFamily: x,
|
|
6716
|
-
fontWeight: (
|
|
6717
|
-
fontStyle: (
|
|
6750
|
+
fontWeight: (z == null ? void 0 : z.fontWeight) ?? 400,
|
|
6751
|
+
fontStyle: (z == null ? void 0 : z.fontStyle) ?? "normal"
|
|
6718
6752
|
},
|
|
6719
6753
|
fontSize: M ?? 0.01,
|
|
6720
6754
|
lineHeight: A,
|
|
@@ -6729,7 +6763,7 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6729
6763
|
fontFamily: x ?? h.fontSettings.fontFamily
|
|
6730
6764
|
},
|
|
6731
6765
|
color: e.buttonTextColor ?? h.color ?? "#ffffff"
|
|
6732
|
-
} : void 0, ne = J ?
|
|
6766
|
+
} : void 0, ne = J ? bo(J, t) : void 0, be = X ? bo(X, t) : void 0, ae = Al(r, {
|
|
6733
6767
|
strokeColor: e.strokeColor,
|
|
6734
6768
|
inputColor: e.inputColor,
|
|
6735
6769
|
placeholderColor: e.placeholderColor,
|
|
@@ -6738,49 +6772,49 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6738
6772
|
errorColor: e.errorColor,
|
|
6739
6773
|
inputTextColor: e.inputTextColor ?? (J == null ? void 0 : J.color) ?? "#111111",
|
|
6740
6774
|
buttonTextColor: e.buttonTextColor ?? (X == null ? void 0 : X.color) ?? "#ffffff"
|
|
6741
|
-
}, B),
|
|
6775
|
+
}, B), ge = {
|
|
6742
6776
|
borderRadius: F(L, t),
|
|
6743
6777
|
borderWidth: F(k, t),
|
|
6744
6778
|
borderStyle: "solid"
|
|
6745
|
-
},
|
|
6779
|
+
}, Ne = { borderLeftWidth: F(k, t) }, ee = async (te) => {
|
|
6746
6780
|
te.preventDefault();
|
|
6747
|
-
const
|
|
6748
|
-
S.map((
|
|
6749
|
-
var
|
|
6750
|
-
return [
|
|
6751
|
-
}).filter(([,
|
|
6781
|
+
const ve = Object.fromEntries(
|
|
6782
|
+
S.map((xe) => {
|
|
6783
|
+
var Oe;
|
|
6784
|
+
return [xe.name, ((Oe = T[xe.name]) == null ? void 0 : Oe.trim()) ?? ""];
|
|
6785
|
+
}).filter(([, xe]) => xe)
|
|
6752
6786
|
);
|
|
6753
|
-
if (!
|
|
6754
|
-
const
|
|
6755
|
-
if (
|
|
6756
|
-
Y("error"), Z(
|
|
6787
|
+
if (!pe || Object.keys(ve).length === 0) return;
|
|
6788
|
+
const Ee = Gt(S, T);
|
|
6789
|
+
if (Ee) {
|
|
6790
|
+
Y("error"), Z(Ee);
|
|
6757
6791
|
return;
|
|
6758
6792
|
}
|
|
6759
6793
|
Y("submitting"), Z(null);
|
|
6760
6794
|
try {
|
|
6761
|
-
const
|
|
6795
|
+
const xe = await fetch(pe, {
|
|
6762
6796
|
method: "POST",
|
|
6763
6797
|
headers: { "Content-Type": "application/json" },
|
|
6764
|
-
body: JSON.stringify(
|
|
6798
|
+
body: JSON.stringify(ve)
|
|
6765
6799
|
});
|
|
6766
|
-
if (
|
|
6767
|
-
const
|
|
6768
|
-
throw new Error(
|
|
6800
|
+
if (!xe.ok) {
|
|
6801
|
+
const Oe = await xe.text();
|
|
6802
|
+
throw new Error(Oe || `Request failed: ${xe.status}`);
|
|
6769
6803
|
}
|
|
6770
|
-
Y("success"), C(Object.fromEntries(S.map((
|
|
6771
|
-
} catch (
|
|
6772
|
-
Y("error"), Z(
|
|
6804
|
+
Y("success"), C(Object.fromEntries(S.map((Oe) => [Oe.name, ""])));
|
|
6805
|
+
} catch (xe) {
|
|
6806
|
+
Y("error"), Z(xe instanceof Error ? xe.message : "Something went wrong");
|
|
6773
6807
|
}
|
|
6774
6808
|
};
|
|
6775
6809
|
return /* @__PURE__ */ Ce("div", { className: `${r}-wrapper ${ie}`.trim(), style: ae, children: [
|
|
6776
|
-
/* @__PURE__ */ N("style", { children:
|
|
6810
|
+
/* @__PURE__ */ N("style", { children: wl(r) }),
|
|
6777
6811
|
/* @__PURE__ */ Ce(
|
|
6778
6812
|
"form",
|
|
6779
6813
|
{
|
|
6780
|
-
onSubmit:
|
|
6814
|
+
onSubmit: ee,
|
|
6781
6815
|
className: `${r}-form`,
|
|
6782
6816
|
style: {
|
|
6783
|
-
...
|
|
6817
|
+
...ge,
|
|
6784
6818
|
height: F(D, t),
|
|
6785
6819
|
minHeight: F(D, t)
|
|
6786
6820
|
},
|
|
@@ -6797,7 +6831,7 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6797
6831
|
name: te.name,
|
|
6798
6832
|
autoComplete: "off",
|
|
6799
6833
|
value: q[te.name] ?? "",
|
|
6800
|
-
onChange: (
|
|
6834
|
+
onChange: (ve) => C((Ee) => ({ ...Ee, [te.name]: ve.target.value })),
|
|
6801
6835
|
placeholder: te.placeholder,
|
|
6802
6836
|
required: te.type === "email",
|
|
6803
6837
|
className: `${r}-input`,
|
|
@@ -6820,8 +6854,8 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6820
6854
|
className: `${r}-submitBtn`,
|
|
6821
6855
|
"aria-label": oe,
|
|
6822
6856
|
style: {
|
|
6823
|
-
...
|
|
6824
|
-
...
|
|
6857
|
+
...be,
|
|
6858
|
+
...Ne,
|
|
6825
6859
|
paddingRight: F(H.right, t),
|
|
6826
6860
|
paddingLeft: F(H.left, t),
|
|
6827
6861
|
paddingTop: F(H.top, t),
|
|
@@ -6851,7 +6885,7 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6851
6885
|
}
|
|
6852
6886
|
)
|
|
6853
6887
|
] });
|
|
6854
|
-
},
|
|
6888
|
+
}, vo = {
|
|
6855
6889
|
strokeColor: "stroke-color",
|
|
6856
6890
|
inputColor: "input-color",
|
|
6857
6891
|
placeholderColor: "placeholder-color",
|
|
@@ -6860,23 +6894,23 @@ const _l = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6860
6894
|
buttonTextColor: "button-text-color",
|
|
6861
6895
|
successColor: "success-color",
|
|
6862
6896
|
errorColor: "error-color"
|
|
6863
|
-
},
|
|
6864
|
-
function
|
|
6897
|
+
}, Tl = ["hover", "focus", "filled", "success", "error"];
|
|
6898
|
+
function Al(e, t, n) {
|
|
6865
6899
|
const o = {};
|
|
6866
|
-
for (const [r, a] of Object.entries(
|
|
6900
|
+
for (const [r, a] of Object.entries(vo))
|
|
6867
6901
|
o[`--${e}-${a}`] = t[r];
|
|
6868
6902
|
if (n)
|
|
6869
|
-
for (const r of
|
|
6903
|
+
for (const r of Tl) {
|
|
6870
6904
|
const a = n[r];
|
|
6871
6905
|
if (a)
|
|
6872
|
-
for (const [i, s] of Object.entries(
|
|
6906
|
+
for (const [i, s] of Object.entries(vo)) {
|
|
6873
6907
|
const l = a[i];
|
|
6874
6908
|
l !== void 0 && (o[`--${e}-${r}-${s}`] = l);
|
|
6875
6909
|
}
|
|
6876
6910
|
}
|
|
6877
6911
|
return o;
|
|
6878
6912
|
}
|
|
6879
|
-
function
|
|
6913
|
+
function bo(e, t) {
|
|
6880
6914
|
var n, o, r;
|
|
6881
6915
|
return {
|
|
6882
6916
|
fontFamily: e.fontSettings.fontFamily,
|
|
@@ -6891,12 +6925,12 @@ function vo(e, t) {
|
|
|
6891
6925
|
fontVariant: (r = e.textAppearance) == null ? void 0 : r.fontVariant
|
|
6892
6926
|
};
|
|
6893
6927
|
}
|
|
6894
|
-
const
|
|
6928
|
+
const Ll = [
|
|
6895
6929
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
6896
6930
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
6897
6931
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
6898
6932
|
{ name: "phone", type: "phone", placeholder: "Enter your phone", label: "Phone", isRequired: !1, error: "Please, enter a valid phone number." }
|
|
6899
|
-
],
|
|
6933
|
+
], So = {
|
|
6900
6934
|
fontSettings: {
|
|
6901
6935
|
type: "object",
|
|
6902
6936
|
display: { type: "font-settings-weight" },
|
|
@@ -6905,7 +6939,7 @@ const Tl = [
|
|
|
6905
6939
|
fontStyle: { type: "string" }
|
|
6906
6940
|
}
|
|
6907
6941
|
}
|
|
6908
|
-
},
|
|
6942
|
+
}, El = [
|
|
6909
6943
|
"strokeColor",
|
|
6910
6944
|
"inputColor",
|
|
6911
6945
|
"inputTextColor",
|
|
@@ -6914,7 +6948,7 @@ const Tl = [
|
|
|
6914
6948
|
"buttonTextColor",
|
|
6915
6949
|
"successColor",
|
|
6916
6950
|
"errorColor"
|
|
6917
|
-
],
|
|
6951
|
+
], Il = {
|
|
6918
6952
|
type: "object",
|
|
6919
6953
|
version: 1,
|
|
6920
6954
|
settings: {
|
|
@@ -7073,7 +7107,7 @@ const Tl = [
|
|
|
7073
7107
|
scope: "layout"
|
|
7074
7108
|
},
|
|
7075
7109
|
inputFontSettings: {
|
|
7076
|
-
...
|
|
7110
|
+
...So.fontSettings,
|
|
7077
7111
|
scope: "layout",
|
|
7078
7112
|
title: "Input"
|
|
7079
7113
|
},
|
|
@@ -7108,7 +7142,7 @@ const Tl = [
|
|
|
7108
7142
|
display: { type: "text-appearance" }
|
|
7109
7143
|
},
|
|
7110
7144
|
buttonFontSettings: {
|
|
7111
|
-
...
|
|
7145
|
+
...So.fontSettings,
|
|
7112
7146
|
scope: "layout",
|
|
7113
7147
|
title: "Button"
|
|
7114
7148
|
},
|
|
@@ -7144,7 +7178,7 @@ const Tl = [
|
|
|
7144
7178
|
}
|
|
7145
7179
|
},
|
|
7146
7180
|
defaults: {
|
|
7147
|
-
fields:
|
|
7181
|
+
fields: Ll,
|
|
7148
7182
|
fieldsToShow: 1,
|
|
7149
7183
|
buttonContent: {
|
|
7150
7184
|
mode: "Icon",
|
|
@@ -7260,7 +7294,7 @@ const Tl = [
|
|
|
7260
7294
|
}
|
|
7261
7295
|
],
|
|
7262
7296
|
paletteBookmark: {
|
|
7263
|
-
items: [...
|
|
7297
|
+
items: [...El],
|
|
7264
7298
|
panelIds: ["general", "typeStyle"],
|
|
7265
7299
|
stateItems: {
|
|
7266
7300
|
default: ["strokeColor", "inputColor", "inputTextColor", "placeholderColor", "buttonColor", "buttonTextColor"],
|
|
@@ -7273,8 +7307,8 @@ const Tl = [
|
|
|
7273
7307
|
},
|
|
7274
7308
|
allowedPlugins: ["newsletter"],
|
|
7275
7309
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
7276
|
-
},
|
|
7277
|
-
element:
|
|
7310
|
+
}, kl = {
|
|
7311
|
+
element: $l,
|
|
7278
7312
|
id: "oneliner-form",
|
|
7279
7313
|
name: "Newsletter Single Line",
|
|
7280
7314
|
version: 1,
|
|
@@ -7286,15 +7320,15 @@ const Tl = [
|
|
|
7286
7320
|
width: "30%",
|
|
7287
7321
|
height: 60
|
|
7288
7322
|
},
|
|
7289
|
-
schema:
|
|
7290
|
-
},
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7323
|
+
schema: Il
|
|
7324
|
+
}, zl = [
|
|
7325
|
+
ba,
|
|
7326
|
+
Ta,
|
|
7327
|
+
fl,
|
|
7328
|
+
_l,
|
|
7329
|
+
kl
|
|
7296
7330
|
];
|
|
7297
7331
|
export {
|
|
7298
|
-
|
|
7299
|
-
|
|
7332
|
+
zl as components,
|
|
7333
|
+
Wl as isSchemaV1
|
|
7300
7334
|
};
|