@cntrl-site/components 1.0.8-alpha.1 → 1.0.8-alpha.3
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/utils/textStylesToCss.d.ts +1 -0
- package/dist/index.js +12 -12
- package/dist/index.mjs +545 -541
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
import { jsx as f, Fragment as tt, jsxs as ge } from "react/jsx-runtime";
|
|
2
2
|
import pt, { useState as pe, useEffect as Te, useRef as Ce, useCallback as Je, useMemo as Qe, useLayoutEffect as Ft } from "react";
|
|
3
3
|
import ye from "classnames";
|
|
4
|
-
import { s as M, u as fn, b as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
function
|
|
4
|
+
import { s as M, u as fn, b as No, g as cn, r as Oo } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
|
+
import { createPortal as kr } from "react-dom";
|
|
6
|
+
function ys(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 Ir = "ControlSlider-module__wrapper___sHEkd", Fr = "ControlSlider-module__hoverArrow___A-dOH", Pr = "ControlSlider-module__sliderItem___QQSkR", Mr = "ControlSlider-module__sliderImage___9hRl-", Rr = "ControlSlider-module__arrow___05ghY", Wr = "ControlSlider-module__arrowVertical___tBfVN", Hr = "ControlSlider-module__nextArrow___-30Yc", Nr = "ControlSlider-module__arrowInner___aEra3", Or = "ControlSlider-module__arrowIcon___S4ztF", zr = "ControlSlider-module__arrowImg___2dwJW", Br = "ControlSlider-module__mirror___brd6U", Vr = "ControlSlider-module__pagination___bicLF", Dr = "ControlSlider-module__paginationInner___bT-P-", jr = "ControlSlider-module__paginationVertical___zYqKw", qr = "ControlSlider-module__paginationItem___nTRbk", Ur = "ControlSlider-module__dot___p1Qun", Gr = "ControlSlider-module__activeDot___LHFaj", Yr = "ControlSlider-module__paginationInsideBottom___R3FWn", Xr = "ControlSlider-module__paginationInsideTop___V-qb-", Kr = "ControlSlider-module__paginationOutsideBottom___14w8D", Zr = "ControlSlider-module__paginationOutsideTop___SCLqB", Jr = "ControlSlider-module__paginationInsideLeft___yOBRZ", Qr = "ControlSlider-module__paginationInsideRight___Rtt3o", ei = "ControlSlider-module__paginationOutsideLeft___lahaw", ti = "ControlSlider-module__paginationOutsideRight___EtuQa", ni = "ControlSlider-module__imgWrapper___UjEgB", oi = "ControlSlider-module__captionBlock___dJ6-j", ri = "ControlSlider-module__captionTextWrapper___HFlpf", ii = "ControlSlider-module__captionText___uGBVc", ai = "ControlSlider-module__active___WZK4G", li = "ControlSlider-module__withPointerEvents___t-18M", si = "ControlSlider-module__topLeftAlignment___zjnGM", ci = "ControlSlider-module__topCenterAlignment___gD1xW", pi = "ControlSlider-module__topRightAlignment___NMapS", ui = "ControlSlider-module__middleLeftAlignment___OnUrY", di = "ControlSlider-module__middleCenterAlignment___Tdkl0", mi = "ControlSlider-module__middleRightAlignment___wEbfX", gi = "ControlSlider-module__bottomLeftAlignment___cTP2-", fi = "ControlSlider-module__bottomCenterAlignment___c54fB", hi = "ControlSlider-module__bottomRightAlignment___kEwrz", yi = "ControlSlider-module__clickOverlay___DZA28", vi = "ControlSlider-module__contain___pLyq7", bi = "ControlSlider-module__cover___KdDat", Z = {
|
|
10
|
+
wrapper: Ir,
|
|
11
|
+
hoverArrow: Fr,
|
|
12
|
+
sliderItem: Pr,
|
|
13
|
+
sliderImage: Mr,
|
|
14
|
+
arrow: Rr,
|
|
15
|
+
arrowVertical: Wr,
|
|
16
|
+
nextArrow: Hr,
|
|
17
|
+
arrowInner: Nr,
|
|
18
|
+
arrowIcon: Or,
|
|
19
|
+
arrowImg: zr,
|
|
20
|
+
mirror: Br,
|
|
21
|
+
pagination: Vr,
|
|
22
|
+
paginationInner: Dr,
|
|
23
|
+
paginationVertical: jr,
|
|
24
|
+
paginationItem: qr,
|
|
25
|
+
dot: Ur,
|
|
26
|
+
activeDot: Gr,
|
|
27
|
+
paginationInsideBottom: Yr,
|
|
28
|
+
paginationInsideTop: Xr,
|
|
29
|
+
paginationOutsideBottom: Kr,
|
|
30
|
+
paginationOutsideTop: Zr,
|
|
31
|
+
paginationInsideLeft: Jr,
|
|
32
|
+
paginationInsideRight: Qr,
|
|
33
|
+
paginationOutsideLeft: ei,
|
|
34
|
+
paginationOutsideRight: ti,
|
|
35
|
+
imgWrapper: ni,
|
|
36
|
+
captionBlock: oi,
|
|
37
|
+
captionTextWrapper: ri,
|
|
38
|
+
captionText: ii,
|
|
39
|
+
active: ai,
|
|
40
|
+
withPointerEvents: li,
|
|
41
|
+
topLeftAlignment: si,
|
|
42
|
+
topCenterAlignment: ci,
|
|
43
|
+
topRightAlignment: pi,
|
|
44
|
+
middleLeftAlignment: ui,
|
|
45
|
+
middleCenterAlignment: di,
|
|
46
|
+
middleRightAlignment: mi,
|
|
47
|
+
bottomLeftAlignment: gi,
|
|
48
|
+
bottomCenterAlignment: fi,
|
|
49
|
+
bottomRightAlignment: hi,
|
|
50
|
+
clickOverlay: yi,
|
|
51
|
+
contain: vi,
|
|
52
|
+
cover: bi
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function xi(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 Si(e, t, n) {
|
|
61
|
+
return t && xi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
63
|
+
var go = "(prefers-reduced-motion: reduce)", xt = 1, Ci = 2, $t = 3, At = 4, Dt = 5, rn = 6, pn = 7, wi = {
|
|
64
64
|
CREATED: xt,
|
|
65
|
-
MOUNTED:
|
|
65
|
+
MOUNTED: Ci,
|
|
66
66
|
IDLE: $t,
|
|
67
67
|
MOVING: At,
|
|
68
68
|
SCROLLING: Dt,
|
|
@@ -78,22 +78,22 @@ function it(e, t, n) {
|
|
|
78
78
|
function be(e) {
|
|
79
79
|
return e.bind.apply(e, [null].concat(it(arguments, 1)));
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var zo = setTimeout, Rn = function() {
|
|
82
82
|
};
|
|
83
|
-
function
|
|
83
|
+
function fo(e) {
|
|
84
84
|
return requestAnimationFrame(e);
|
|
85
85
|
}
|
|
86
86
|
function hn(e, t) {
|
|
87
87
|
return typeof t === e;
|
|
88
88
|
}
|
|
89
89
|
function Rt(e) {
|
|
90
|
-
return !
|
|
90
|
+
return !qn(e) && hn("object", e);
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
92
|
+
var jn = Array.isArray, Bo = be(hn, "function"), ot = be(hn, "string"), jt = be(hn, "undefined");
|
|
93
|
+
function qn(e) {
|
|
94
94
|
return e === null;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Vo(e) {
|
|
97
97
|
try {
|
|
98
98
|
return e instanceof (e.ownerDocument.defaultView || window).HTMLElement;
|
|
99
99
|
} catch {
|
|
@@ -101,12 +101,12 @@ function Bo(e) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
function qt(e) {
|
|
104
|
-
return
|
|
104
|
+
return jn(e) ? e : [e];
|
|
105
105
|
}
|
|
106
106
|
function Fe(e, t) {
|
|
107
107
|
qt(e).forEach(t);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Un(e, t) {
|
|
110
110
|
return e.indexOf(t) > -1;
|
|
111
111
|
}
|
|
112
112
|
function an(e, t) {
|
|
@@ -123,23 +123,23 @@ function Oe(e, t) {
|
|
|
123
123
|
function Ut(e, t) {
|
|
124
124
|
Fe(t, e.appendChild.bind(e));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Gn(e, t) {
|
|
127
127
|
Fe(e, function(n) {
|
|
128
128
|
var o = (t || n).parentNode;
|
|
129
129
|
o && o.insertBefore(n, t);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
function Wt(e, t) {
|
|
133
|
-
return
|
|
133
|
+
return Vo(e) && (e.msMatchesSelector || e.matches).call(e, t);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Do(e, t) {
|
|
136
136
|
var n = e ? it(e.children) : [];
|
|
137
137
|
return t ? n.filter(function(o) {
|
|
138
138
|
return Wt(o, t);
|
|
139
139
|
}) : n;
|
|
140
140
|
}
|
|
141
141
|
function Gt(e, t) {
|
|
142
|
-
return t ?
|
|
142
|
+
return t ? Do(e, t)[0] : e.firstElementChild;
|
|
143
143
|
}
|
|
144
144
|
var Ht = Object.keys;
|
|
145
145
|
function ut(e, t, n) {
|
|
@@ -157,11 +157,11 @@ function Nt(e) {
|
|
|
157
157
|
function et(e) {
|
|
158
158
|
return it(arguments, 1).forEach(function(t) {
|
|
159
159
|
ut(t, function(n, o) {
|
|
160
|
-
|
|
160
|
+
jn(n) ? e[o] = n.slice() : Rt(n) ? e[o] = et({}, Rt(e[o]) ? e[o] : {}, n) : e[o] = n;
|
|
161
161
|
});
|
|
162
162
|
}), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ho(e, t) {
|
|
165
165
|
Fe(t || Ht(e), function(n) {
|
|
166
166
|
delete e[n];
|
|
167
167
|
});
|
|
@@ -177,7 +177,7 @@ function le(e, t, n) {
|
|
|
177
177
|
Rt(t) ? ut(t, function(o, r) {
|
|
178
178
|
le(e, r, o);
|
|
179
179
|
}) : Fe(e, function(o) {
|
|
180
|
-
|
|
180
|
+
qn(n) || n === "" ? ze(o, t) : o.setAttribute(t, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
function St(e, t, n) {
|
|
@@ -187,12 +187,12 @@ function St(e, t, n) {
|
|
|
187
187
|
function Me(e, t, n) {
|
|
188
188
|
if (jt(n))
|
|
189
189
|
return getComputedStyle(e)[t];
|
|
190
|
-
|
|
190
|
+
qn(n) || (e.style[t] = "" + n);
|
|
191
191
|
}
|
|
192
192
|
function Ot(e, t) {
|
|
193
193
|
Me(e, "display", t);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function jo(e) {
|
|
196
196
|
e.setActive && e.setActive() || e.focus({
|
|
197
197
|
preventScroll: !0
|
|
198
198
|
});
|
|
@@ -200,7 +200,7 @@ function Do(e) {
|
|
|
200
200
|
function Re(e, t) {
|
|
201
201
|
return e.getAttribute(t);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function yo(e, t) {
|
|
204
204
|
return e && e.classList.contains(t);
|
|
205
205
|
}
|
|
206
206
|
function ke(e) {
|
|
@@ -211,34 +211,34 @@ function dt(e) {
|
|
|
211
211
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function qo(e) {
|
|
215
215
|
return Gt(new DOMParser().parseFromString(e, "text/html").body);
|
|
216
216
|
}
|
|
217
217
|
function qe(e, t) {
|
|
218
218
|
e.preventDefault(), t && (e.stopPropagation(), e.stopImmediatePropagation());
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Uo(e, t) {
|
|
221
221
|
return e && e.querySelector(t);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Yn(e, t) {
|
|
224
224
|
return t ? it(e.querySelectorAll(t)) : [];
|
|
225
225
|
}
|
|
226
226
|
function Ge(e, t) {
|
|
227
227
|
Ue(e, t, !1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Wn(e) {
|
|
230
230
|
return e.timeStamp;
|
|
231
231
|
}
|
|
232
232
|
function ct(e) {
|
|
233
233
|
return ot(e) ? e : e ? e + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var Yt = "splide",
|
|
235
|
+
var Yt = "splide", Xn = "data-" + Yt;
|
|
236
236
|
function Pt(e, t) {
|
|
237
237
|
if (!e)
|
|
238
238
|
throw new Error("[" + Yt + "] " + (t || ""));
|
|
239
239
|
}
|
|
240
240
|
var rt = Math.min, un = Math.max, dn = Math.floor, zt = Math.ceil, Le = Math.abs;
|
|
241
|
-
function
|
|
241
|
+
function Go(e, t, n) {
|
|
242
242
|
return Le(e - t) < n;
|
|
243
243
|
}
|
|
244
244
|
function ln(e, t, n, o) {
|
|
@@ -249,22 +249,22 @@ function vt(e, t, n) {
|
|
|
249
249
|
var o = rt(t, n), r = un(t, n);
|
|
250
250
|
return rt(un(o, e), r);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Hn(e) {
|
|
253
253
|
return +(e > 0) - +(e < 0);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Nn(e, t) {
|
|
256
256
|
return Fe(t, function(n) {
|
|
257
257
|
e = e.replace("%s", "" + n);
|
|
258
258
|
}), e;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Kn(e) {
|
|
261
261
|
return e < 10 ? "0" + e : "" + e;
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
return "" + e +
|
|
263
|
+
var vo = {};
|
|
264
|
+
function $i(e) {
|
|
265
|
+
return "" + e + Kn(vo[e] = (vo[e] || 0) + 1);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Yo() {
|
|
268
268
|
var e = [];
|
|
269
269
|
function t(i, c, s, d) {
|
|
270
270
|
r(i, c, function(l, _, S) {
|
|
@@ -308,18 +308,18 @@ function Go() {
|
|
|
308
308
|
destroy: a
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var at = "mounted",
|
|
311
|
+
var at = "mounted", On = "ready", Ke = "move", Et = "moved", Zn = "click", Xo = "active", Ko = "inactive", Zo = "visible", Jo = "hidden", we = "refresh", Ee = "updated", Tt = "resize", yn = "resized", Qo = "drag", er = "dragging", tr = "dragged", vn = "scroll", gt = "scrolled", Ti = "overflow", Jn = "destroy", nr = "arrows:mounted", or = "arrows:updated", rr = "pagination:mounted", ir = "pagination:updated", Qn = "navigation:mounted", eo = "autoplay:play", ar = "autoplay:playing", to = "autoplay:pause", no = "lazyload:loaded", lr = "sk", sr = "sh", mn = "ei";
|
|
312
312
|
function xe(e) {
|
|
313
|
-
var t = e ? e.event.bus : document.createDocumentFragment(), n =
|
|
313
|
+
var t = e ? e.event.bus : document.createDocumentFragment(), n = Yo();
|
|
314
314
|
function o(a, i) {
|
|
315
315
|
n.bind(t, qt(a).join(" "), function(c) {
|
|
316
|
-
i.apply(i,
|
|
316
|
+
i.apply(i, jn(c.detail) ? c.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function r(a) {
|
|
320
320
|
n.dispatch(t, a, it(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return e && e.event.on(
|
|
322
|
+
return e && e.event.on(Jn, n.destroy), Nt(n, {
|
|
323
323
|
bus: t,
|
|
324
324
|
on: o,
|
|
325
325
|
off: be(n.unbind, t),
|
|
@@ -332,11 +332,11 @@ function bn(e, t, n, o) {
|
|
|
332
332
|
if (!s) {
|
|
333
333
|
if (i = e ? rt((r() - a) / e, 1) : 1, n && n(i), i >= 1 && (t(), a = r(), o && ++d >= o))
|
|
334
334
|
return S();
|
|
335
|
-
c =
|
|
335
|
+
c = fo(l);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
function _(h) {
|
|
339
|
-
h || p(), a = r() - (h ? i * e : 0), s = !1, c =
|
|
339
|
+
h || p(), a = r() - (h ? i * e : 0), s = !1, c = fo(l);
|
|
340
340
|
}
|
|
341
341
|
function S() {
|
|
342
342
|
s = !0;
|
|
@@ -362,34 +362,34 @@ function bn(e, t, n, o) {
|
|
|
362
362
|
isPaused: x
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function _i(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 Un(qt(r), t);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
375
375
|
is: o
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Ai(e, t) {
|
|
379
379
|
var n = bn(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 Ei(e, t, n) {
|
|
385
|
+
var o = e.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i = Yo(), c = [];
|
|
386
386
|
function s() {
|
|
387
387
|
var p = n.mediaQuery === "min";
|
|
388
388
|
Ht(r).sort(function(u, x) {
|
|
389
389
|
return p ? +u - +x : +x - +u;
|
|
390
390
|
}).forEach(function(u) {
|
|
391
391
|
l(r[u], "(" + (p ? "min" : "max") + "-width:" + u + "px)");
|
|
392
|
-
}), l(a,
|
|
392
|
+
}), l(a, go), _();
|
|
393
393
|
}
|
|
394
394
|
function d(p) {
|
|
395
395
|
p && i.destroy();
|
|
@@ -402,10 +402,10 @@ function Ai(e, t, n) {
|
|
|
402
402
|
var p = o.is(pn), u = n.direction, x = c.reduce(function(h, y) {
|
|
403
403
|
return et(h, y[1].matches ? y[0] : {});
|
|
404
404
|
}, {});
|
|
405
|
-
|
|
405
|
+
ho(n), m(x), n.destroy ? e.destroy(n.destroy === "completely") : p ? (d(!0), e.mount()) : u !== n.direction && e.refresh();
|
|
406
406
|
}
|
|
407
407
|
function S(p) {
|
|
408
|
-
matchMedia(
|
|
408
|
+
matchMedia(go).matches && (p ? et(n, a) : ho(n, Ht(a)));
|
|
409
409
|
}
|
|
410
410
|
function m(p, u, x) {
|
|
411
411
|
et(n, p), u && et(Object.getPrototypeOf(n), p), (x || !o.is(xt)) && e.emit(Ee, n);
|
|
@@ -417,81 +417,81 @@ function Ai(e, t, n) {
|
|
|
417
417
|
set: m
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var xn = "Arrow", Sn = xn + "Left", Cn = xn + "Right",
|
|
420
|
+
var xn = "Arrow", Sn = xn + "Left", Cn = xn + "Right", cr = xn + "Up", pr = xn + "Down", bo = "rtl", wn = "ttb", Ln = {
|
|
421
421
|
width: ["height"],
|
|
422
422
|
left: ["top", "right"],
|
|
423
423
|
right: ["bottom", "left"],
|
|
424
424
|
x: ["y"],
|
|
425
425
|
X: ["Y"],
|
|
426
426
|
Y: ["X"],
|
|
427
|
-
ArrowLeft: [
|
|
428
|
-
ArrowRight: [
|
|
427
|
+
ArrowLeft: [cr, Cn],
|
|
428
|
+
ArrowRight: [pr, Sn]
|
|
429
429
|
};
|
|
430
|
-
function
|
|
430
|
+
function Li(e, t, n) {
|
|
431
431
|
function o(a, i, c) {
|
|
432
432
|
c = c || n.direction;
|
|
433
|
-
var s = c ===
|
|
434
|
-
return
|
|
435
|
-
var _ =
|
|
433
|
+
var s = c === bo && !i ? 1 : c === wn ? 0 : -1;
|
|
434
|
+
return Ln[a] && Ln[a][s] || a.replace(/width|left|right/i, function(d, l) {
|
|
435
|
+
var _ = Ln[d.toLowerCase()][s] || d;
|
|
436
436
|
return l > 0 ? _.charAt(0).toUpperCase() + _.slice(1) : _;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function r(a) {
|
|
440
|
-
return a * (n.direction ===
|
|
440
|
+
return a * (n.direction === bo ? 1 : -1);
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
resolve: o,
|
|
444
444
|
orient: r
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Ye = "role", Ct = "tabindex",
|
|
447
|
+
var Ye = "role", Ct = "tabindex", ki = "disabled", We = "aria-", Xt = We + "controls", ur = We + "current", xo = We + "selected", Ie = We + "label", oo = We + "labelledby", dr = We + "hidden", ro = We + "orientation", Bt = We + "roledescription", So = We + "live", Co = We + "busy", wo = We + "atomic", io = [Ye, Ct, ki, Xt, ur, Ie, oo, dr, ro, Bt], Be = Yt + "__", lt = "is-", kn = Yt, $o = Be + "track", Ii = Be + "list", $n = Be + "slide", mr = $n + "--clone", Fi = $n + "__container", ao = Be + "arrows", Tn = Be + "arrow", gr = Tn + "--prev", fr = Tn + "--next", _n = Be + "pagination", hr = _n + "__page", Pi = Be + "progress", Mi = Pi + "__bar", Ri = Be + "toggle", Wi = Be + "spinner", Hi = Be + "sr", Ni = lt + "initialized", mt = lt + "active", yr = lt + "prev", vr = lt + "next", zn = lt + "visible", Bn = lt + "loading", br = lt + "focus-in", xr = lt + "overflow", Oi = [mt, zn, yr, vr, Bn, br, xr], zi = {
|
|
448
448
|
slide: $n,
|
|
449
|
-
clone:
|
|
450
|
-
arrows:
|
|
449
|
+
clone: mr,
|
|
450
|
+
arrows: ao,
|
|
451
451
|
arrow: Tn,
|
|
452
|
-
prev:
|
|
453
|
-
next:
|
|
452
|
+
prev: gr,
|
|
453
|
+
next: fr,
|
|
454
454
|
pagination: _n,
|
|
455
|
-
page:
|
|
456
|
-
spinner:
|
|
455
|
+
page: hr,
|
|
456
|
+
spinner: Wi
|
|
457
457
|
};
|
|
458
|
-
function
|
|
459
|
-
if (
|
|
458
|
+
function Bi(e, t) {
|
|
459
|
+
if (Bo(e.closest))
|
|
460
460
|
return e.closest(t);
|
|
461
461
|
for (var n = e; n && n.nodeType === 1 && !Wt(n, t); )
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
465
|
+
var Vi = 5, To = 200, Sr = "touchstart mousedown", In = "touchmove mousemove", Fn = "touchend touchcancel mouseup click";
|
|
466
|
+
function Di(e, t, n) {
|
|
467
467
|
var o = xe(e), r = o.on, a = o.bind, i = e.root, c = n.i18n, s = {}, d = [], l = [], _ = [], S, m, p;
|
|
468
468
|
function u() {
|
|
469
469
|
$(), D(), y();
|
|
470
470
|
}
|
|
471
471
|
function x() {
|
|
472
|
-
r(we, h), r(we, u), r(Ee, y), a(document,
|
|
472
|
+
r(we, h), r(we, u), r(Ee, y), a(document, Sr + " keydown", function(b) {
|
|
473
473
|
p = b.type === "keydown";
|
|
474
474
|
}, {
|
|
475
475
|
capture: !0
|
|
476
476
|
}), a(i, "focusin", function() {
|
|
477
|
-
Ue(i,
|
|
477
|
+
Ue(i, br, !!p);
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
function h(b) {
|
|
481
|
-
var C =
|
|
481
|
+
var C = io.concat("style");
|
|
482
482
|
Xe(d), Ge(i, l), Ge(S, _), ze([S, m], C), ze(i, b ? C : ["style", Bt]);
|
|
483
483
|
}
|
|
484
484
|
function y() {
|
|
485
|
-
Ge(i, l), Ge(S, _), l = T(
|
|
485
|
+
Ge(i, l), Ge(S, _), l = T(kn), _ = T($o), Oe(i, l), Oe(S, _), le(i, Ie, n.label), le(i, oo, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function $() {
|
|
488
|
-
S = R("." +
|
|
489
|
-
arrows:
|
|
488
|
+
S = R("." + $o), m = Gt(S, "." + Ii), Pt(S && m, "A track/list element is missing."), an(d, Do(m, "." + $n + ":not(." + mr + ")")), ut({
|
|
489
|
+
arrows: ao,
|
|
490
490
|
pagination: _n,
|
|
491
|
-
prev:
|
|
492
|
-
next:
|
|
493
|
-
bar:
|
|
494
|
-
toggle:
|
|
491
|
+
prev: gr,
|
|
492
|
+
next: fr,
|
|
493
|
+
bar: Mi,
|
|
494
|
+
toggle: Ri
|
|
495
495
|
}, function(b, C) {
|
|
496
496
|
s[C] = R("." + b);
|
|
497
497
|
}), Nt(s, {
|
|
@@ -502,15 +502,15 @@ function Vi(e, t, n) {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function D() {
|
|
505
|
-
var b = i.id ||
|
|
505
|
+
var b = i.id || $i(Yt), C = n.role;
|
|
506
506
|
i.id = b, S.id = S.id || b + "-track", m.id = m.id || b + "-list", !Re(i, Ye) && i.tagName !== "SECTION" && C && le(i, Ye, C), le(i, Bt, c.carousel), le(m, Ye, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function R(b) {
|
|
509
|
-
var C =
|
|
510
|
-
return C &&
|
|
509
|
+
var C = Uo(i, b);
|
|
510
|
+
return C && Bi(C, "." + kn) === i ? C : void 0;
|
|
511
511
|
}
|
|
512
512
|
function T(b) {
|
|
513
|
-
return [b + "--" + n.type, b + "--" + n.direction, n.drag && b + "--draggable", n.isNavigation && b + "--nav", b ===
|
|
513
|
+
return [b + "--" + n.type, b + "--" + n.direction, n.drag && b + "--draggable", n.isNavigation && b + "--nav", b === kn && mt];
|
|
514
514
|
}
|
|
515
515
|
return Nt(s, {
|
|
516
516
|
setup: u,
|
|
@@ -519,23 +519,23 @@ function Vi(e, t, n) {
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
var _t = "slide", Lt = "loop", Kt = "fade";
|
|
522
|
-
function
|
|
523
|
-
var r = xe(e), a = r.on, i = r.emit, c = r.bind, s = e.Components, d = e.root, l = e.options, _ = l.isNavigation, S = l.updateOnMove, m = l.i18n, p = l.pagination, u = l.slideFocus, x = s.Direction.resolve, h = Re(o, "style"), y = Re(o, Ie), $ = n > -1, D = Gt(o, "." +
|
|
522
|
+
function ji(e, t, n, o) {
|
|
523
|
+
var r = xe(e), a = r.on, i = r.emit, c = r.bind, s = e.Components, d = e.root, l = e.options, _ = l.isNavigation, S = l.updateOnMove, m = l.i18n, p = l.pagination, u = l.slideFocus, x = s.Direction.resolve, h = Re(o, "style"), y = Re(o, Ie), $ = n > -1, D = Gt(o, "." + Fi), R;
|
|
524
524
|
function T() {
|
|
525
|
-
$ || (o.id = d.id + "-slide" +
|
|
525
|
+
$ || (o.id = d.id + "-slide" + Kn(t + 1), le(o, Ye, p ? "tabpanel" : "group"), le(o, Bt, m.slide), le(o, Ie, y || Nn(m.slideLabel, [t + 1, e.length]))), b();
|
|
526
526
|
}
|
|
527
527
|
function b() {
|
|
528
|
-
c(o, "click", be(i,
|
|
528
|
+
c(o, "click", be(i, Zn, A)), c(o, "keydown", be(i, lr, A)), a([Et, sr, gt], F), a(Qn, k), S && a(Ke, O);
|
|
529
529
|
}
|
|
530
530
|
function C() {
|
|
531
|
-
R = !0, r.destroy(), Ge(o,
|
|
531
|
+
R = !0, r.destroy(), Ge(o, Oi), ze(o, io), le(o, "style", h), le(o, Ie, y || "");
|
|
532
532
|
}
|
|
533
533
|
function k() {
|
|
534
534
|
var E = e.splides.map(function(w) {
|
|
535
535
|
var P = w.splide.Components.Slides.getAt(t);
|
|
536
536
|
return P ? P.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
le(o, Ie,
|
|
538
|
+
le(o, Ie, Nn(m.slideX, ($ ? n : t) + 1)), le(o, Xt, E), le(o, Ye, u ? "button" : ""), u && ze(o, Bt);
|
|
539
539
|
}
|
|
540
540
|
function O() {
|
|
541
541
|
R || F();
|
|
@@ -543,18 +543,18 @@ function Di(e, t, n, o) {
|
|
|
543
543
|
function F() {
|
|
544
544
|
if (!R) {
|
|
545
545
|
var E = e.index;
|
|
546
|
-
W(), N(), Ue(o,
|
|
546
|
+
W(), N(), Ue(o, yr, t === E - 1), Ue(o, vr, t === E + 1);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function W() {
|
|
550
550
|
var E = U();
|
|
551
|
-
E !==
|
|
551
|
+
E !== yo(o, mt) && (Ue(o, mt, E), le(o, ur, _ && E || ""), i(E ? Xo : Ko, A));
|
|
552
552
|
}
|
|
553
553
|
function N() {
|
|
554
554
|
var E = g(), w = !E && (!U() || $);
|
|
555
|
-
if (e.state.is([At, Dt]) || le(o,
|
|
555
|
+
if (e.state.is([At, Dt]) || le(o, dr, w || ""), le(Yn(o, l.focusableNodes || ""), Ct, w ? -1 : ""), u && le(o, Ct, w ? -1 : 0), E !== yo(o, zn) && (Ue(o, zn, E), i(E ? Zo : Jo, A)), !E && document.activeElement === o) {
|
|
556
556
|
var P = s.Slides.getAt(e.index);
|
|
557
|
-
P &&
|
|
557
|
+
P && jo(P.slide);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function V(E, w, P) {
|
|
@@ -588,7 +588,7 @@ function Di(e, t, n, o) {
|
|
|
588
588
|
};
|
|
589
589
|
return A;
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function qi(e, t, n) {
|
|
592
592
|
var o = xe(e), r = o.on, a = o.emit, i = o.bind, c = t.Elements, s = c.slides, d = c.list, l = [];
|
|
593
593
|
function _() {
|
|
594
594
|
S(), r(we, m), r(we, S);
|
|
@@ -609,7 +609,7 @@ function ji(e, t, n) {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
function u(F, W, N) {
|
|
612
|
-
var V =
|
|
612
|
+
var V = ji(e, W, N, F);
|
|
613
613
|
V.mount(), l.push(V), l.sort(function(U, g) {
|
|
614
614
|
return U.index - g.index;
|
|
615
615
|
});
|
|
@@ -630,9 +630,9 @@ function ji(e, t, n) {
|
|
|
630
630
|
}
|
|
631
631
|
function $(F, W) {
|
|
632
632
|
Fe(F, function(N) {
|
|
633
|
-
if (ot(N) && (N =
|
|
633
|
+
if (ot(N) && (N = qo(N)), Vo(N)) {
|
|
634
634
|
var V = s[W];
|
|
635
|
-
V ?
|
|
635
|
+
V ? Gn(N, V) : Ut(d, N), Oe(N, n.classes.slide), C(N, be(a, Tt));
|
|
636
636
|
}
|
|
637
637
|
}), a(we);
|
|
638
638
|
}
|
|
@@ -645,8 +645,8 @@ function ji(e, t, n) {
|
|
|
645
645
|
x(W).forEach(F);
|
|
646
646
|
}
|
|
647
647
|
function T(F) {
|
|
648
|
-
return l.filter(
|
|
649
|
-
return ot(F) ? Wt(W.slide, F) :
|
|
648
|
+
return l.filter(Bo(F) ? F : function(W) {
|
|
649
|
+
return ot(F) ? Wt(W.slide, F) : Un(qt(F), W.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function b(F, W, N) {
|
|
@@ -655,7 +655,7 @@ function ji(e, t, n) {
|
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
657
|
function C(F, W) {
|
|
658
|
-
var N =
|
|
658
|
+
var N = Yn(F, "img"), V = N.length;
|
|
659
659
|
V ? N.forEach(function(U) {
|
|
660
660
|
i(U, "load error", function() {
|
|
661
661
|
--V || W();
|
|
@@ -685,17 +685,17 @@ function ji(e, t, n) {
|
|
|
685
685
|
isEnough: O
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Ui(e, t, n) {
|
|
689
689
|
var o = xe(e), r = o.on, a = o.bind, i = o.emit, c = t.Slides, s = t.Direction.resolve, d = t.Elements, l = d.root, _ = d.track, S = d.list, m = c.getAt, p = c.style, u, x, h;
|
|
690
690
|
function y() {
|
|
691
|
-
$(), a(window, "resize load",
|
|
691
|
+
$(), a(window, "resize load", Ai(be(i, Tt))), r([Ee, we], $), r(Tt, D);
|
|
692
692
|
}
|
|
693
693
|
function $() {
|
|
694
694
|
u = n.direction === wn, Me(l, "maxWidth", ct(n.width)), Me(_, s("paddingLeft"), R(!1)), Me(_, s("paddingRight"), R(!0)), D(!0);
|
|
695
695
|
}
|
|
696
696
|
function D(A) {
|
|
697
697
|
var E = ke(l);
|
|
698
|
-
(A || x.width !== E.width || x.height !== E.height) && (Me(_, "height", T()), p(s("marginRight"), ct(n.gap)), p("width", C()), p("height", k(), !0), x = E, i(yn), h !== (h = L()) && (Ue(l,
|
|
698
|
+
(A || x.width !== E.width || x.height !== E.height) && (Me(_, "height", T()), p(s("marginRight"), ct(n.gap)), p("width", C()), p("height", k(), !0), x = E, i(yn), h !== (h = L()) && (Ue(l, xr, h), i(Ti, h)));
|
|
699
699
|
}
|
|
700
700
|
function R(A) {
|
|
701
701
|
var E = n.padding, w = s(A ? "right" : "left");
|
|
@@ -757,8 +757,8 @@ function qi(e, t, n) {
|
|
|
757
757
|
isOverflow: L
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
var
|
|
761
|
-
function
|
|
760
|
+
var Gi = 2;
|
|
761
|
+
function Yi(e, t, n) {
|
|
762
762
|
var o = xe(e), r = o.on, a = t.Elements, i = t.Slides, c = t.Direction.resolve, s = [], d;
|
|
763
763
|
function l() {
|
|
764
764
|
r(we, _), r([Ee, Tt], m), (d = x()) && (p(d), t.Layout.resize(!0));
|
|
@@ -780,13 +780,13 @@ function Gi(e, t, n) {
|
|
|
780
780
|
an(y, y);
|
|
781
781
|
an(y.slice(-h), y.slice(0, h)).forEach(function(D, R) {
|
|
782
782
|
var T = R < h, b = u(D.slide, R);
|
|
783
|
-
T ?
|
|
783
|
+
T ? Gn(b, y[0].slide) : Ut(a.list, b), an(s, b), i.register(b, R - h + (T ? 0 : $), D.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function u(h, y) {
|
|
788
788
|
var $ = h.cloneNode(!0);
|
|
789
|
-
return Oe($, n.classes.clone), $.id = e.root.id + "-clone" +
|
|
789
|
+
return Oe($, n.classes.clone), $.id = e.root.id + "-clone" + Kn(y + 1), $;
|
|
790
790
|
}
|
|
791
791
|
function x() {
|
|
792
792
|
var h = n.clones;
|
|
@@ -794,7 +794,7 @@ function Gi(e, t, n) {
|
|
|
794
794
|
h = 0;
|
|
795
795
|
else if (jt(h)) {
|
|
796
796
|
var y = n[c("fixedWidth")] && t.Layout.slideSize(0), $ = y && zt(ke(a.track)[c("width")] / y);
|
|
797
|
-
h = $ || n[c("autoWidth")] && e.length || n.perPage *
|
|
797
|
+
h = $ || n[c("autoWidth")] && e.length || n.perPage * Gi;
|
|
798
798
|
}
|
|
799
799
|
return h;
|
|
800
800
|
}
|
|
@@ -803,7 +803,7 @@ function Gi(e, t, n) {
|
|
|
803
803
|
destroy: S
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Xi(e, t, n) {
|
|
807
807
|
var o = xe(e), r = o.on, a = o.emit, i = e.state.set, c = t.Layout, s = c.slideSize, d = c.getPadding, l = c.totalSize, _ = c.listSize, S = c.sliderSize, m = t.Direction, p = m.resolve, u = m.orient, x = t.Elements, h = x.list, y = x.track, $;
|
|
808
808
|
function D() {
|
|
809
809
|
$ = t.Transition, r([at, yn, Ee, we], R);
|
|
@@ -822,7 +822,7 @@ function Yi(e, t, n) {
|
|
|
822
822
|
function C(w, P) {
|
|
823
823
|
if (!e.is(Kt)) {
|
|
824
824
|
var K = P ? w : k(w);
|
|
825
|
-
Me(h, "transform", "translate" + p("X") + "(" + K + "px)"), w !== K && a(
|
|
825
|
+
Me(h, "transform", "translate" + p("X") + "(" + K + "px)"), w !== K && a(sr);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function k(w) {
|
|
@@ -891,7 +891,7 @@ function Yi(e, t, n) {
|
|
|
891
891
|
reposition: R
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Ki(e, t, n) {
|
|
895
895
|
var o = xe(e), r = o.on, a = o.emit, i = t.Move, c = i.getPosition, s = i.getLimit, d = i.toPosition, l = t.Slides, _ = l.isEnough, S = l.getLength, m = n.omitEnd, p = e.is(Lt), u = e.is(_t), x = be(V, !1), h = be(V, !0), y = n.start || 0, $, D = y, R, T, b;
|
|
896
896
|
function C() {
|
|
897
897
|
k(), r([Ee, we, mn], k), r(yn, O);
|
|
@@ -927,7 +927,7 @@ function Xi(e, t, n) {
|
|
|
927
927
|
}
|
|
928
928
|
function V(I, Q) {
|
|
929
929
|
var he = T || (ee() ? 1 : b), de = U(y + he * (I ? -1 : 1), y, !(T || ee()));
|
|
930
|
-
return de === -1 && u && !
|
|
930
|
+
return de === -1 && u && !Go(c(), s(!I), 1) ? I ? 0 : $ : Q ? de : L(de);
|
|
931
931
|
}
|
|
932
932
|
function U(I, Q, he) {
|
|
933
933
|
if (_() || ee()) {
|
|
@@ -993,8 +993,8 @@ function Xi(e, t, n) {
|
|
|
993
993
|
isBusy: se
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
var
|
|
997
|
-
function
|
|
996
|
+
var Zi = "http://www.w3.org/2000/svg", Ji = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", Qt = 40;
|
|
997
|
+
function Qi(e, t, n) {
|
|
998
998
|
var o = xe(e), r = o.on, a = o.bind, i = o.emit, c = n.classes, s = n.i18n, d = t.Elements, l = t.Controller, _ = d.arrows, S = d.track, m = _, p = d.prev, u = d.next, x, h, y = {};
|
|
999
999
|
function $() {
|
|
1000
1000
|
R(), r(Ee, D);
|
|
@@ -1007,10 +1007,10 @@ function Ji(e, t, n) {
|
|
|
1007
1007
|
W && !(p && u) && k(), p && u && (Nt(y, {
|
|
1008
1008
|
prev: p,
|
|
1009
1009
|
next: u
|
|
1010
|
-
}), Ot(m, W ? "" : "none"), Oe(m, h =
|
|
1010
|
+
}), Ot(m, W ? "" : "none"), Oe(m, h = ao + "--" + n.direction), W && (b(), F(), le([p, u], Xt, S.id), i(nr, p, u)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function T() {
|
|
1013
|
-
o.destroy(), Ge(m, h), x ? (dt(_ ? [p, u] : m), p = u = null) : ze([p, u],
|
|
1013
|
+
o.destroy(), Ge(m, h), x ? (dt(_ ? [p, u] : m), p = u = null) : ze([p, u], io);
|
|
1014
1014
|
}
|
|
1015
1015
|
function b() {
|
|
1016
1016
|
r([at, Et, we, gt, mn], F), a(u, "click", be(C, ">")), a(p, "click", be(C, "<"));
|
|
@@ -1019,16 +1019,16 @@ function Ji(e, t, n) {
|
|
|
1019
1019
|
l.go(W, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function k() {
|
|
1022
|
-
m = _ || St("div", c.arrows), p = O(!0), u = O(!1), x = !0, Ut(m, [p, u]), !_ &&
|
|
1022
|
+
m = _ || St("div", c.arrows), p = O(!0), u = O(!1), x = !0, Ut(m, [p, u]), !_ && Gn(m, S);
|
|
1023
1023
|
}
|
|
1024
1024
|
function O(W) {
|
|
1025
|
-
var N = '<button class="' + c.arrow + " " + (W ? c.prev : c.next) + '" type="button"><svg xmlns="' +
|
|
1026
|
-
return
|
|
1025
|
+
var N = '<button class="' + c.arrow + " " + (W ? c.prev : c.next) + '" type="button"><svg xmlns="' + Zi + '" viewBox="0 0 ' + Qt + " " + Qt + '" width="' + Qt + '" height="' + Qt + '" focusable="false"><path d="' + (n.arrowPath || Ji) + '" />';
|
|
1026
|
+
return qo(N);
|
|
1027
1027
|
}
|
|
1028
1028
|
function F() {
|
|
1029
1029
|
if (p && u) {
|
|
1030
1030
|
var W = e.index, N = l.getPrev(), V = l.getNext(), U = N > -1 && W < N ? s.last : s.prev, g = V > -1 && W > V ? s.first : s.next;
|
|
1031
|
-
p.disabled = N < 0, u.disabled = V < 0, le(p, Ie, U), le(u, Ie, g), i(
|
|
1031
|
+
p.disabled = N < 0, u.disabled = V < 0, le(p, Ie, U), le(u, Ie, g), i(or, p, u, N, V);
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
@@ -1038,8 +1038,8 @@ function Ji(e, t, n) {
|
|
|
1038
1038
|
update: F
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1041
|
+
var ea = Xn + "-interval";
|
|
1042
|
+
function ta(e, t, n) {
|
|
1043
1043
|
var o = xe(e), r = o.on, a = o.bind, i = o.emit, c = bn(n.interval, e.go.bind(e, ">"), b), s = c.isPaused, d = t.Elements, l = t.Elements, _ = l.root, S = l.toggle, m = n.autoplay, p, u, x = m === "pause";
|
|
1044
1044
|
function h() {
|
|
1045
1045
|
m && (y(), S && le(S, Xt, d.track.id), x || $(), T());
|
|
@@ -1054,10 +1054,10 @@ function ea(e, t, n) {
|
|
|
1054
1054
|
}), r([Ke, vn, we], c.rewind), r(Ke, C);
|
|
1055
1055
|
}
|
|
1056
1056
|
function $() {
|
|
1057
|
-
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), u = p = x = !1, T(), i(
|
|
1057
|
+
s() && t.Slides.isEnough() && (c.start(!n.resetProgress), u = p = x = !1, T(), i(eo));
|
|
1058
1058
|
}
|
|
1059
1059
|
function D(k) {
|
|
1060
|
-
k === void 0 && (k = !0), x = !!k, T(), s() || (c.pause(), i(
|
|
1060
|
+
k === void 0 && (k = !0), x = !!k, T(), s() || (c.pause(), i(to));
|
|
1061
1061
|
}
|
|
1062
1062
|
function R() {
|
|
1063
1063
|
x || (p || u ? D(!1) : $());
|
|
@@ -1067,11 +1067,11 @@ function ea(e, t, n) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
function b(k) {
|
|
1069
1069
|
var O = d.bar;
|
|
1070
|
-
O && Me(O, "width", k * 100 + "%"), i(
|
|
1070
|
+
O && Me(O, "width", k * 100 + "%"), i(ar, k);
|
|
1071
1071
|
}
|
|
1072
1072
|
function C(k) {
|
|
1073
1073
|
var O = t.Slides.getAt(k);
|
|
1074
|
-
c.set(O && +Re(O.slide,
|
|
1074
|
+
c.set(O && +Re(O.slide, ea) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
mount: h,
|
|
@@ -1081,10 +1081,10 @@ function ea(e, t, n) {
|
|
|
1081
1081
|
isPaused: s
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function na(e, t, n) {
|
|
1085
1085
|
var o = xe(e), r = o.on;
|
|
1086
1086
|
function a() {
|
|
1087
|
-
n.cover && (r(
|
|
1087
|
+
n.cover && (r(no, be(c, !0)), r([at, Ee, we], be(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(s) {
|
|
1090
1090
|
t.Slides.forEach(function(d) {
|
|
@@ -1100,8 +1100,8 @@ function ta(e, t, n) {
|
|
|
1100
1100
|
destroy: be(i, !1)
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1103
|
+
var oa = 10, ra = 600, ia = 0.6, aa = 1.5, la = 800;
|
|
1104
|
+
function sa(e, t, n) {
|
|
1105
1105
|
var o = xe(e), r = o.on, a = o.emit, i = e.state.set, c = t.Move, s = c.getPosition, d = c.getLimit, l = c.exceededLimit, _ = c.translate, S = e.is(_t), m, p, u = 1;
|
|
1106
1106
|
function x() {
|
|
1107
1107
|
r(Ke, D), r([Ee, we], R);
|
|
@@ -1109,18 +1109,18 @@ function la(e, t, n) {
|
|
|
1109
1109
|
function h(b, C, k, O, F) {
|
|
1110
1110
|
var W = s();
|
|
1111
1111
|
if (D(), k && (!S || !l())) {
|
|
1112
|
-
var N = t.Layout.sliderSize(), V =
|
|
1112
|
+
var N = t.Layout.sliderSize(), V = Hn(b) * N * dn(Le(b) / N) || 0;
|
|
1113
1113
|
b = c.toPosition(t.Controller.toDest(b % N)) + V;
|
|
1114
1114
|
}
|
|
1115
|
-
var U =
|
|
1116
|
-
u = 1, C = U ? 0 : C || un(Le(b - W) /
|
|
1115
|
+
var U = Go(W, b, 1);
|
|
1116
|
+
u = 1, C = U ? 0 : C || un(Le(b - W) / aa, la), p = O, m = bn(C, y, be($, W, b, F), 1), i(Dt), a(vn), m.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function y() {
|
|
1119
1119
|
i($t), p && p(), a(gt);
|
|
1120
1120
|
}
|
|
1121
1121
|
function $(b, C, k, O) {
|
|
1122
1122
|
var F = s(), W = b + (C - b) * T(O), N = (W - F) * u;
|
|
1123
|
-
_(F + N), S && !k && l() && (u *=
|
|
1123
|
+
_(F + N), S && !k && l() && (u *= ia, Le(N) < oa && h(d(l(!0)), ra, !1, p, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function D() {
|
|
1126
1126
|
m && m.cancel();
|
|
@@ -1143,10 +1143,10 @@ var bt = {
|
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
|
-
function
|
|
1146
|
+
function ca(e, t, n) {
|
|
1147
1147
|
var o = xe(e), r = o.on, a = o.emit, i = o.bind, c = o.unbind, s = e.state, d = t.Move, l = t.Scroll, _ = t.Controller, S = t.Elements.track, m = t.Media.reduce, p = t.Direction, u = p.resolve, x = p.orient, h = d.getPosition, y = d.exceededLimit, $, D, R, T, b, C = !1, k, O, F;
|
|
1148
1148
|
function W() {
|
|
1149
|
-
i(S,
|
|
1149
|
+
i(S, In, Rn, bt), i(S, Fn, Rn, bt), i(S, Sr, V, bt), i(S, "click", L, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), i(S, "dragstart", qe), r([at, Ee], N);
|
|
1152
1152
|
}
|
|
@@ -1157,19 +1157,19 @@ function sa(e, t, n) {
|
|
|
1157
1157
|
function V(H) {
|
|
1158
1158
|
if (k = !1, !O) {
|
|
1159
1159
|
var v = fe(H);
|
|
1160
|
-
de(H.target) && (v || !H.button) && (_.isBusy() ? qe(H, !0) : (F = v ? S : window, b = s.is([At, Dt]), R = null, i(F,
|
|
1160
|
+
de(H.target) && (v || !H.button) && (_.isBusy() ? qe(H, !0) : (F = v ? S : window, b = s.is([At, Dt]), R = null, i(F, In, U, bt), i(F, Fn, g, bt), d.cancel(), l.cancel(), A(H)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function U(H) {
|
|
1164
|
-
if (s.is(rn) || (s.set(rn), a(
|
|
1164
|
+
if (s.is(rn) || (s.set(rn), a(Qo)), H.cancelable)
|
|
1165
1165
|
if (b) {
|
|
1166
1166
|
d.translate($ + he(ee(H)));
|
|
1167
|
-
var v = se(H) >
|
|
1168
|
-
(v || j) && A(H), k = !0, a(
|
|
1167
|
+
var v = se(H) > To, j = C !== (C = y());
|
|
1168
|
+
(v || j) && A(H), k = !0, a(er), qe(H);
|
|
1169
1169
|
} else P(H) && (b = w(H), qe(H));
|
|
1170
1170
|
}
|
|
1171
1171
|
function g(H) {
|
|
1172
|
-
s.is(rn) && (s.set($t), a(
|
|
1172
|
+
s.is(rn) && (s.set($t), a(tr)), b && (E(H), qe(H)), c(F, In, U), c(F, Fn, g), b = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function L(H) {
|
|
1175
1175
|
!O && k && qe(H, !0);
|
|
@@ -1179,7 +1179,7 @@ function sa(e, t, n) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function E(H) {
|
|
1181
1181
|
var v = K(H), j = ie(v), X = n.rewind && n.rewindByDrag;
|
|
1182
|
-
m(!1), T ? _.scroll(j, 0, n.snap) : e.is(Kt) ? _.go(x(
|
|
1182
|
+
m(!1), T ? _.scroll(j, 0, n.snap) : e.is(Kt) ? _.go(x(Hn(v)) < 0 ? X ? "<" : "-" : X ? ">" : "+") : e.is(_t) && C && X ? _.go(y(!0) ? ">" : "<") : _.go(_.toDest(j), !0), m(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function w(H) {
|
|
1185
1185
|
var v = n.dragMinThreshold, j = Rt(v), X = j && v.mouse || 0, J = (j ? v.touch : +v) || 10;
|
|
@@ -1191,19 +1191,19 @@ function sa(e, t, n) {
|
|
|
1191
1191
|
function K(H) {
|
|
1192
1192
|
if (e.is(Lt) || !C) {
|
|
1193
1193
|
var v = se(H);
|
|
1194
|
-
if (v && v <
|
|
1194
|
+
if (v && v < To)
|
|
1195
1195
|
return ee(H) / v;
|
|
1196
1196
|
}
|
|
1197
1197
|
return 0;
|
|
1198
1198
|
}
|
|
1199
1199
|
function ie(H) {
|
|
1200
|
-
return h() +
|
|
1200
|
+
return h() + Hn(H) * rt(Le(H) * (n.flickPower || 600), T ? 1 / 0 : t.Layout.listSize() * (n.flickMaxPages || 1));
|
|
1201
1201
|
}
|
|
1202
1202
|
function ee(H, v) {
|
|
1203
1203
|
return Q(H, v) - Q(I(H), v);
|
|
1204
1204
|
}
|
|
1205
1205
|
function se(H) {
|
|
1206
|
-
return
|
|
1206
|
+
return Wn(H) - Wn(I(H));
|
|
1207
1207
|
}
|
|
1208
1208
|
function I(H) {
|
|
1209
1209
|
return D === H && R || D;
|
|
@@ -1212,11 +1212,11 @@ function sa(e, t, n) {
|
|
|
1212
1212
|
return (fe(H) ? H.changedTouches[0] : H)["page" + u(v ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function he(H) {
|
|
1215
|
-
return H / (C && e.is(_t) ?
|
|
1215
|
+
return H / (C && e.is(_t) ? Vi : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function de(H) {
|
|
1218
1218
|
var v = n.noDrag;
|
|
1219
|
-
return !Wt(H, "." +
|
|
1219
|
+
return !Wt(H, "." + hr + ", ." + Tn) && (!v || !Wt(H, v));
|
|
1220
1220
|
}
|
|
1221
1221
|
function fe(H) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && H instanceof TouchEvent;
|
|
@@ -1233,41 +1233,41 @@ function sa(e, t, n) {
|
|
|
1233
1233
|
isDragging: q
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1236
|
+
var pa = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
1238
|
Right: Cn,
|
|
1239
1239
|
Left: Sn,
|
|
1240
|
-
Up:
|
|
1241
|
-
Down:
|
|
1240
|
+
Up: cr,
|
|
1241
|
+
Down: pr
|
|
1242
1242
|
};
|
|
1243
|
-
function
|
|
1244
|
-
return e = ot(e) ? e : e.key,
|
|
1243
|
+
function lo(e) {
|
|
1244
|
+
return e = ot(e) ? e : e.key, pa[e] || e;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1246
|
+
var _o = "keydown";
|
|
1247
|
+
function ua(e, t, n) {
|
|
1248
1248
|
var o = xe(e), r = o.on, a = o.bind, i = o.unbind, c = e.root, s = t.Direction.resolve, d, l;
|
|
1249
1249
|
function _() {
|
|
1250
1250
|
S(), r(Ee, m), r(Ee, S), r(Ke, u);
|
|
1251
1251
|
}
|
|
1252
1252
|
function S() {
|
|
1253
1253
|
var h = n.keyboard;
|
|
1254
|
-
h && (d = h === "global" ? window : c, a(d,
|
|
1254
|
+
h && (d = h === "global" ? window : c, a(d, _o, x));
|
|
1255
1255
|
}
|
|
1256
1256
|
function m() {
|
|
1257
|
-
i(d,
|
|
1257
|
+
i(d, _o);
|
|
1258
1258
|
}
|
|
1259
1259
|
function p(h) {
|
|
1260
1260
|
l = h;
|
|
1261
1261
|
}
|
|
1262
1262
|
function u() {
|
|
1263
1263
|
var h = l;
|
|
1264
|
-
l = !0,
|
|
1264
|
+
l = !0, zo(function() {
|
|
1265
1265
|
l = h;
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
1268
|
function x(h) {
|
|
1269
1269
|
if (!l) {
|
|
1270
|
-
var y =
|
|
1270
|
+
var y = lo(h);
|
|
1271
1271
|
y === s(Sn) ? e.go("<") : y === s(Cn) && e.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
@@ -1277,8 +1277,8 @@ function pa(e, t, n) {
|
|
|
1277
1277
|
disable: p
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var Mt =
|
|
1281
|
-
function
|
|
1280
|
+
var Mt = Xn + "-lazy", sn = Mt + "-srcset", da = "[" + Mt + "], [" + sn + "]";
|
|
1281
|
+
function ma(e, t, n) {
|
|
1282
1282
|
var o = xe(e), r = o.on, a = o.off, i = o.bind, c = o.emit, s = n.lazyLoad === "sequential", d = [Et, gt], l = [];
|
|
1283
1283
|
function _() {
|
|
1284
1284
|
n.lazyLoad && (S(), r(we, S));
|
|
@@ -1288,7 +1288,7 @@ function da(e, t, n) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
function m() {
|
|
1290
1290
|
t.Slides.forEach(function(y) {
|
|
1291
|
-
|
|
1291
|
+
Yn(y.slide, da).forEach(function($) {
|
|
1292
1292
|
var D = Re($, Mt), R = Re($, sn);
|
|
1293
1293
|
if (D !== $.src || R !== $.srcset) {
|
|
1294
1294
|
var T = n.classes.spinner, b = $.parentElement, C = Gt(b, "." + T) || St("span", T, b);
|
|
@@ -1305,11 +1305,11 @@ function da(e, t, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function u(y) {
|
|
1307
1307
|
var $ = y[0];
|
|
1308
|
-
Oe(y[1].slide,
|
|
1308
|
+
Oe(y[1].slide, Bn), i($, "load error", be(x, y)), le($, "src", Re($, Mt)), le($, "srcset", Re($, sn)), ze($, Mt), ze($, sn);
|
|
1309
1309
|
}
|
|
1310
1310
|
function x(y, $) {
|
|
1311
1311
|
var D = y[0], R = y[1];
|
|
1312
|
-
Ge(R.slide,
|
|
1312
|
+
Ge(R.slide, Bn), $.type !== "error" && (dt(y[2]), Ot(D, ""), c(no, D, R), c(Tt)), s && h();
|
|
1313
1313
|
}
|
|
1314
1314
|
function h() {
|
|
1315
1315
|
l.length && u(l.shift());
|
|
@@ -1320,12 +1320,12 @@ function da(e, t, n) {
|
|
|
1320
1320
|
check: p
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function ga(e, t, n) {
|
|
1324
1324
|
var o = xe(e), r = o.on, a = o.emit, i = o.bind, c = t.Slides, s = t.Elements, d = t.Controller, l = d.hasFocus, _ = d.getIndex, S = d.go, m = t.Direction.resolve, p = s.pagination, u = [], x, h;
|
|
1325
1325
|
function y() {
|
|
1326
1326
|
$(), r([Ee, we, mn], y);
|
|
1327
1327
|
var O = n.pagination;
|
|
1328
|
-
p && Ot(p, O ? "" : "none"), O && (r([Ke, vn, gt], k), D(), k(), a(
|
|
1328
|
+
p && Ot(p, O ? "" : "none"), O && (r([Ke, vn, gt], k), D(), k(), a(rr, {
|
|
1329
1329
|
list: x,
|
|
1330
1330
|
items: u
|
|
1331
1331
|
}, C(e.index)));
|
|
@@ -1335,7 +1335,7 @@ function ma(e, t, n) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
function D() {
|
|
1337
1337
|
var O = e.length, F = n.classes, W = n.i18n, N = n.perPage, V = l() ? d.getEnd() + 1 : zt(O / N);
|
|
1338
|
-
x = p || St("ul", F.pagination, s.track.parentElement), Oe(x, h = _n + "--" + b()), le(x, Ye, "tablist"), le(x, Ie, W.select), le(x,
|
|
1338
|
+
x = p || St("ul", F.pagination, s.track.parentElement), Oe(x, h = _n + "--" + b()), le(x, Ye, "tablist"), le(x, Ie, W.select), le(x, ro, b() === wn ? "vertical" : "");
|
|
1339
1339
|
for (var U = 0; U < V; U++) {
|
|
1340
1340
|
var g = St("li", null, x), L = St("button", {
|
|
1341
1341
|
class: F.page,
|
|
@@ -1343,7 +1343,7 @@ function ma(e, t, n) {
|
|
|
1343
1343
|
}, g), A = c.getIn(U).map(function(w) {
|
|
1344
1344
|
return w.slide.id;
|
|
1345
1345
|
}), E = !l() && N > 1 ? W.pageX : W.slideX;
|
|
1346
|
-
i(L, "click", be(R, U)), n.paginationKeyboard && i(L, "keydown", be(T, U)), le(g, Ye, "presentation"), le(L, Ye, "tab"), le(L, Xt, A.join(" ")), le(L, Ie,
|
|
1346
|
+
i(L, "click", be(R, U)), n.paginationKeyboard && i(L, "keydown", be(T, U)), le(g, Ye, "presentation"), le(L, Ye, "tab"), le(L, Xt, A.join(" ")), le(L, Ie, Nn(E, U + 1)), le(L, Ct, -1), u.push({
|
|
1347
1347
|
li: g,
|
|
1348
1348
|
button: L,
|
|
1349
1349
|
page: U
|
|
@@ -1354,10 +1354,10 @@ function ma(e, t, n) {
|
|
|
1354
1354
|
S(">" + O, !0);
|
|
1355
1355
|
}
|
|
1356
1356
|
function T(O, F) {
|
|
1357
|
-
var W = u.length, N =
|
|
1357
|
+
var W = u.length, N = lo(F), V = b(), U = -1;
|
|
1358
1358
|
N === m(Cn, !1, V) ? U = ++O % W : N === m(Sn, !1, V) ? U = (--O + W) % W : N === "Home" ? U = 0 : N === "End" && (U = W - 1);
|
|
1359
1359
|
var g = u[U];
|
|
1360
|
-
g && (
|
|
1360
|
+
g && (jo(g.button), S(">" + U), qe(F, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function b() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1369,13 +1369,13 @@ function ma(e, t, n) {
|
|
|
1369
1369
|
var O = C(_(!0)), F = C(_());
|
|
1370
1370
|
if (O) {
|
|
1371
1371
|
var W = O.button;
|
|
1372
|
-
Ge(W, mt), ze(W,
|
|
1372
|
+
Ge(W, mt), ze(W, xo), le(W, Ct, -1);
|
|
1373
1373
|
}
|
|
1374
1374
|
if (F) {
|
|
1375
1375
|
var N = F.button;
|
|
1376
|
-
Oe(N, mt), le(N,
|
|
1376
|
+
Oe(N, mt), le(N, xo, !0), le(N, Ct, "");
|
|
1377
1377
|
}
|
|
1378
|
-
a(
|
|
1378
|
+
a(ir, {
|
|
1379
1379
|
list: x,
|
|
1380
1380
|
items: u
|
|
1381
1381
|
}, O, F);
|
|
@@ -1388,8 +1388,8 @@ function ma(e, t, n) {
|
|
|
1388
1388
|
update: k
|
|
1389
1389
|
};
|
|
1390
1390
|
}
|
|
1391
|
-
var
|
|
1392
|
-
function
|
|
1391
|
+
var fa = [" ", "Enter"];
|
|
1392
|
+
function ha(e, t, n) {
|
|
1393
1393
|
var o = n.isNavigation, r = n.slideFocus, a = [];
|
|
1394
1394
|
function i() {
|
|
1395
1395
|
e.splides.forEach(function(p) {
|
|
@@ -1412,16 +1412,16 @@ function fa(e, t, n) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function l() {
|
|
1414
1414
|
var p = xe(e), u = p.on;
|
|
1415
|
-
u(
|
|
1415
|
+
u(Zn, S), u(lr, m), u([at, Ee], _), a.push(p), p.emit(Qn, e.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function _() {
|
|
1418
|
-
le(t.Elements.list,
|
|
1418
|
+
le(t.Elements.list, ro, n.direction === wn ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function S(p) {
|
|
1421
1421
|
e.go(p.index);
|
|
1422
1422
|
}
|
|
1423
1423
|
function m(p, u) {
|
|
1424
|
-
|
|
1424
|
+
Un(fa, lo(u)) && (S(p), qe(u));
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: be(t.Media.set, {
|
|
@@ -1432,14 +1432,14 @@ function fa(e, t, n) {
|
|
|
1432
1432
|
remount: s
|
|
1433
1433
|
};
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function ya(e, t, n) {
|
|
1436
1436
|
var o = xe(e), r = o.bind, a = 0;
|
|
1437
1437
|
function i() {
|
|
1438
1438
|
n.wheel && r(t.Elements.track, "wheel", c, bt);
|
|
1439
1439
|
}
|
|
1440
1440
|
function c(d) {
|
|
1441
1441
|
if (d.cancelable) {
|
|
1442
|
-
var l = d.deltaY, _ = l < 0, S =
|
|
1442
|
+
var l = d.deltaY, _ = l < 0, S = Wn(d), m = n.wheelMinThreshold || 0, p = n.wheelSleep || 0;
|
|
1443
1443
|
Le(l) > m && S - a > p && (e.go(_ ? "<" : ">"), a = S), s(_) && qe(d);
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
@@ -1450,20 +1450,20 @@ function ha(e, t, n) {
|
|
|
1450
1450
|
mount: i
|
|
1451
1451
|
};
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
function
|
|
1455
|
-
var o = xe(e), r = o.on, a = t.Elements.track, i = n.live && !n.isNavigation, c = St("span",
|
|
1453
|
+
var va = 90;
|
|
1454
|
+
function ba(e, t, n) {
|
|
1455
|
+
var o = xe(e), r = o.on, a = t.Elements.track, i = n.live && !n.isNavigation, c = St("span", Hi), s = bn(va, be(l, !1));
|
|
1456
1456
|
function d() {
|
|
1457
|
-
i && (S(!t.Autoplay.isPaused()), le(a,
|
|
1457
|
+
i && (S(!t.Autoplay.isPaused()), le(a, wo, !0), c.textContent = "…", r(eo, be(S, !0)), r(to, be(S, !1)), r([Et, gt], be(l, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function l(m) {
|
|
1460
|
-
le(a,
|
|
1460
|
+
le(a, Co, m), m ? (Ut(a, c), s.start()) : (dt(c), s.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function _() {
|
|
1463
|
-
ze(a, [
|
|
1463
|
+
ze(a, [So, wo, Co]), dt(c);
|
|
1464
1464
|
}
|
|
1465
1465
|
function S(m) {
|
|
1466
|
-
i && le(a,
|
|
1466
|
+
i && le(a, So, m ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: d,
|
|
@@ -1471,28 +1471,28 @@ function va(e, t, n) {
|
|
|
1471
1471
|
destroy: _
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var xa = /* @__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: Ei,
|
|
1477
|
+
Direction: Li,
|
|
1478
|
+
Elements: Di,
|
|
1479
|
+
Slides: qi,
|
|
1480
|
+
Layout: Ui,
|
|
1481
|
+
Clones: Yi,
|
|
1482
|
+
Move: Xi,
|
|
1483
|
+
Controller: Ki,
|
|
1484
|
+
Arrows: Qi,
|
|
1485
|
+
Autoplay: ta,
|
|
1486
|
+
Cover: na,
|
|
1487
|
+
Scroll: sa,
|
|
1488
|
+
Drag: ca,
|
|
1489
|
+
Keyboard: ua,
|
|
1490
|
+
LazyLoad: ma,
|
|
1491
|
+
Pagination: ga,
|
|
1492
|
+
Sync: ha,
|
|
1493
|
+
Wheel: ya,
|
|
1494
|
+
Live: ba
|
|
1495
|
+
}), Sa = {
|
|
1496
1496
|
prev: "Previous slide",
|
|
1497
1497
|
next: "Next slide",
|
|
1498
1498
|
first: "Go to first slide",
|
|
@@ -1505,7 +1505,7 @@ var ba = /* @__PURE__ */ Object.freeze({
|
|
|
1505
1505
|
slide: "slide",
|
|
1506
1506
|
select: "Select a slide to show",
|
|
1507
1507
|
slideLabel: "%s of %s"
|
|
1508
|
-
},
|
|
1508
|
+
}, Ca = {
|
|
1509
1509
|
type: "slide",
|
|
1510
1510
|
role: "region",
|
|
1511
1511
|
speed: 400,
|
|
@@ -1524,15 +1524,15 @@ var ba = /* @__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: zi,
|
|
1528
|
+
i18n: Sa,
|
|
1529
1529
|
reducedMotion: {
|
|
1530
1530
|
speed: 0,
|
|
1531
1531
|
rewindSpeed: 0,
|
|
1532
1532
|
autoplay: "pause"
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1535
|
+
function wa(e, t, n) {
|
|
1536
1536
|
var o = t.Slides;
|
|
1537
1537
|
function r() {
|
|
1538
1538
|
xe(e).on([at, we], a);
|
|
@@ -1543,15 +1543,15 @@ function Ca(e, t, n) {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
function i(c, s) {
|
|
1546
|
-
o.style("transition", "opacity " + n.speed + "ms " + n.easing),
|
|
1546
|
+
o.style("transition", "opacity " + n.speed + "ms " + n.easing), zo(s);
|
|
1547
1547
|
}
|
|
1548
1548
|
return {
|
|
1549
1549
|
mount: r,
|
|
1550
1550
|
start: i,
|
|
1551
|
-
cancel:
|
|
1551
|
+
cancel: Rn
|
|
1552
1552
|
};
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function $a(e, t, n) {
|
|
1555
1555
|
var o = t.Move, r = t.Controller, a = t.Scroll, i = t.Elements.list, c = be(Me, i, "transition"), s;
|
|
1556
1556
|
function d() {
|
|
1557
1557
|
xe(e).bind(i, "transitionend", function(m) {
|
|
@@ -1580,16 +1580,16 @@ function wa(e, t, n) {
|
|
|
1580
1580
|
cancel: _
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
var
|
|
1583
|
+
var Ta = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function e(n, o) {
|
|
1585
|
-
this.event = xe(), this.Components = {}, this.state =
|
|
1586
|
-
var r = ot(n) ?
|
|
1585
|
+
this.event = xe(), this.Components = {}, this.state = _i(xt), this.splides = [], this._o = {}, this._E = {};
|
|
1586
|
+
var r = ot(n) ? Uo(document, n) : n;
|
|
1587
1587
|
Pt(r, r + " is invalid."), this.root = r, o = et({
|
|
1588
1588
|
label: Re(r, Ie) || "",
|
|
1589
|
-
labelledby: Re(r,
|
|
1590
|
-
},
|
|
1589
|
+
labelledby: Re(r, oo) || ""
|
|
1590
|
+
}, Ca, e.defaults, o || {});
|
|
1591
1591
|
try {
|
|
1592
|
-
et(o, JSON.parse(Re(r,
|
|
1592
|
+
et(o, JSON.parse(Re(r, Xn)));
|
|
1593
1593
|
} catch {
|
|
1594
1594
|
Pt(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
@@ -1598,8 +1598,8 @@ var $a = /* @__PURE__ */ (function() {
|
|
|
1598
1598
|
var t = e.prototype;
|
|
1599
1599
|
return t.mount = function(o, r) {
|
|
1600
1600
|
var a = this, i = this.state, c = this.Components;
|
|
1601
|
-
Pt(i.is([xt, pn]), "Already mounted!"), i.set(xt), this._C = c, this._T = r || this._T || (this.is(Kt) ?
|
|
1602
|
-
var s = Nt({},
|
|
1601
|
+
Pt(i.is([xt, pn]), "Already mounted!"), i.set(xt), this._C = c, this._T = r || this._T || (this.is(Kt) ? wa : $a), this._E = o || this._E;
|
|
1602
|
+
var s = Nt({}, xa, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
1605
|
return ut(s, function(d, l) {
|
|
@@ -1607,7 +1607,7 @@ var $a = /* @__PURE__ */ (function() {
|
|
|
1607
1607
|
c[l] = _, _.setup && _.setup();
|
|
1608
1608
|
}), ut(c, function(d) {
|
|
1609
1609
|
d.mount && d.mount();
|
|
1610
|
-
}), this.emit(at), Oe(this.root,
|
|
1610
|
+
}), this.emit(at), Oe(this.root, Ni), i.set($t), this.emit(On), this;
|
|
1611
1611
|
}, t.sync = function(o) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: o
|
|
@@ -1635,10 +1635,10 @@ var $a = /* @__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(xt) ? xe(this).on(
|
|
1638
|
+
return a.is(xt) ? xe(this).on(On, this.destroy.bind(this, o)) : (ut(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(o);
|
|
1640
|
-
}, !0), r.emit(
|
|
1641
|
-
},
|
|
1640
|
+
}, !0), r.emit(Jn), r.destroy(), o && Xe(this.splides), a.set(pn)), this;
|
|
1641
|
+
}, Si(e, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
1644
1644
|
return this._o;
|
|
@@ -1657,58 +1657,58 @@ var $a = /* @__PURE__ */ (function() {
|
|
|
1657
1657
|
return this._C.Controller.getIndex();
|
|
1658
1658
|
}
|
|
1659
1659
|
}]), e;
|
|
1660
|
-
})(),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1660
|
+
})(), so = Ta;
|
|
1661
|
+
so.defaults = {};
|
|
1662
|
+
so.STATES = wi;
|
|
1663
|
+
var Ao = [
|
|
1664
1664
|
[at, "onMounted"],
|
|
1665
|
-
[
|
|
1665
|
+
[On, "onReady"],
|
|
1666
1666
|
[Ke, "onMove"],
|
|
1667
1667
|
[Et, "onMoved"],
|
|
1668
|
-
[
|
|
1669
|
-
[
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1668
|
+
[Zn, "onClick"],
|
|
1669
|
+
[Xo, "onActive"],
|
|
1670
|
+
[Ko, "onInactive"],
|
|
1671
|
+
[Zo, "onVisible"],
|
|
1672
|
+
[Jo, "onHidden"],
|
|
1673
1673
|
[we, "onRefresh"],
|
|
1674
1674
|
[Ee, "onUpdated"],
|
|
1675
1675
|
[Tt, "onResize"],
|
|
1676
1676
|
[yn, "onResized"],
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1677
|
+
[Qo, "onDrag"],
|
|
1678
|
+
[er, "onDragging"],
|
|
1679
|
+
[tr, "onDragged"],
|
|
1680
1680
|
[vn, "onScroll"],
|
|
1681
1681
|
[gt, "onScrolled"],
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1682
|
+
[Jn, "onDestroy"],
|
|
1683
|
+
[nr, "onArrowsMounted"],
|
|
1684
|
+
[or, "onArrowsUpdated"],
|
|
1685
|
+
[rr, "onPaginationMounted"],
|
|
1686
|
+
[ir, "onPaginationUpdated"],
|
|
1687
|
+
[Qn, "onNavigationMounted"],
|
|
1688
|
+
[eo, "onAutoplayPlay"],
|
|
1689
|
+
[ar, "onAutoplayPlaying"],
|
|
1690
|
+
[to, "onAutoplayPause"],
|
|
1691
|
+
[no, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
|
-
function
|
|
1693
|
+
function co(...e) {
|
|
1694
1694
|
return e.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
1696
|
function gn(e) {
|
|
1697
1697
|
return e !== null && typeof e == "object";
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function Vn(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) => !Vn(n, t[o]));
|
|
1702
1702
|
if (gn(e) && gn(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) || !Vn(e[r], t[r]));
|
|
1705
1705
|
}
|
|
1706
1706
|
return e === t;
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function _a(e, t) {
|
|
1709
1709
|
return e.length === t.length && !e.some((n, o) => n !== t[o]);
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Aa(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 _a(e, t) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return e;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Dn(e, t) {
|
|
1723
1723
|
const n = e;
|
|
1724
|
-
return
|
|
1725
|
-
Array.isArray(o) ? n[r] = o.slice() : gn(o) ? n[r] =
|
|
1724
|
+
return Aa(t, (o, r) => {
|
|
1725
|
+
Array.isArray(o) ? n[r] = o.slice() : gn(o) ? n[r] = Dn(gn(n[r]) ? n[r] : {}, o) : n[r] = o;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1729
|
-
className:
|
|
1728
|
+
var Ea = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createElement("div", {
|
|
1729
|
+
className: co("splide__track", t),
|
|
1730
1730
|
...n
|
|
1731
1731
|
}, /* @__PURE__ */ pt.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, e)),
|
|
1733
|
+
}, e)), Cr = class extends pt.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
1735
|
super(...arguments), this.splideRef = pt.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 so(o, e), this.bind(this.splide), this.splide.mount(t, n), this.options = Dn({}, 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 Aa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createEleme
|
|
|
1745
1745
|
if (!this.splide)
|
|
1746
1746
|
return;
|
|
1747
1747
|
const { options: e } = this.props;
|
|
1748
|
-
e && !
|
|
1748
|
+
e && !Vn(this.options, e) && (this.splide.options = e, this.options = Dn({}, e));
|
|
1749
1749
|
const t = this.getSlides();
|
|
1750
|
-
|
|
1750
|
+
_a(this.slides, t) || (this.splide.refresh(), this.slides = t);
|
|
1751
1751
|
}
|
|
1752
1752
|
sync(e) {
|
|
1753
1753
|
var t;
|
|
@@ -1766,7 +1766,7 @@ var Aa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createEleme
|
|
|
1766
1766
|
return [];
|
|
1767
1767
|
}
|
|
1768
1768
|
bind(e) {
|
|
1769
|
-
|
|
1769
|
+
Ao.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 Aa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createEleme
|
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: e, tag: t = "div", hasTrack: n = !0, children: o, ...r } = this.props;
|
|
1783
1783
|
return /* @__PURE__ */ pt.createElement(t, {
|
|
1784
|
-
className:
|
|
1784
|
+
className: co("splide", e),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
|
-
...this.omit(r, ["options", ...
|
|
1787
|
-
}, n ? /* @__PURE__ */ pt.createElement(
|
|
1786
|
+
...this.omit(r, ["options", ...Ao.map((a) => a[1])])
|
|
1787
|
+
}, n ? /* @__PURE__ */ pt.createElement(Ea, null, o) : o);
|
|
1788
1788
|
}
|
|
1789
|
-
},
|
|
1790
|
-
className:
|
|
1789
|
+
}, wr = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createElement("li", {
|
|
1790
|
+
className: co("splide__slide", t),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, e);
|
|
1793
1793
|
/*!
|
|
@@ -1796,18 +1796,42 @@ var Aa = ({ children: e, className: t, ...n }) => /* @__PURE__ */ pt.createEleme
|
|
|
1796
1796
|
* License : MIT
|
|
1797
1797
|
* Copyright: 2022 Naotoshi Fujita
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1800
|
-
link:
|
|
1801
|
-
},
|
|
1802
|
-
const t =
|
|
1799
|
+
const La = "RichTextRenderer-module__link___BWeZ2", ka = {
|
|
1800
|
+
link: La
|
|
1801
|
+
}, Ia = (e) => {
|
|
1802
|
+
const t = e.trim();
|
|
1803
|
+
return !t || t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'") ? !1 : t.split(/\s+/g).filter(Boolean).some((o) => /^\d/.test(o));
|
|
1804
|
+
}, An = (e) => e && e.split(",").map((n) => n.trim()).filter(Boolean).map((n) => Ia(n) ? `"${n.replace(/"/g, '\\"')}"` : n).join(", ");
|
|
1805
|
+
function wt(e) {
|
|
1806
|
+
const { color: t, ...n } = e;
|
|
1807
|
+
return n;
|
|
1808
|
+
}
|
|
1809
|
+
function Ne(e, t) {
|
|
1810
|
+
var n, o, r;
|
|
1811
|
+
return {
|
|
1812
|
+
fontFamily: An(e.fontSettings.fontFamily),
|
|
1813
|
+
fontWeight: e.fontSettings.fontWeight,
|
|
1814
|
+
fontStyle: e.fontSettings.fontStyle,
|
|
1815
|
+
letterSpacing: M(e.letterSpacing, t),
|
|
1816
|
+
wordSpacing: M(e.wordSpacing, t),
|
|
1817
|
+
fontSize: M(e.fontSize, t),
|
|
1818
|
+
lineHeight: e.lineHeight !== void 0 ? M(e.lineHeight, t) : void 0,
|
|
1819
|
+
textTransform: (n = e.textAppearance) == null ? void 0 : n.textTransform,
|
|
1820
|
+
textDecoration: (o = e.textAppearance) == null ? void 0 : o.textDecoration,
|
|
1821
|
+
fontVariant: (r = e.textAppearance) == null ? void 0 : r.fontVariant,
|
|
1822
|
+
color: e.color
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
const Vt = ({ content: e }) => {
|
|
1826
|
+
const t = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ f("a", { className: ka.link, href: o.value, target: o.target, children: t(o.children) }, r) : /* @__PURE__ */ f("span", { style: Fa(o), children: o.text }, r));
|
|
1803
1827
|
return /* @__PURE__ */ f(tt, { children: e.map((n, o) => {
|
|
1804
1828
|
const r = n.children;
|
|
1805
1829
|
return /* @__PURE__ */ f("div", { children: t(r) }, o);
|
|
1806
1830
|
}) });
|
|
1807
1831
|
};
|
|
1808
|
-
function
|
|
1832
|
+
function Fa(e) {
|
|
1809
1833
|
return {
|
|
1810
|
-
...e.fontFamily && { fontFamily: e.fontFamily },
|
|
1834
|
+
...e.fontFamily && { fontFamily: An(e.fontFamily) },
|
|
1811
1835
|
...e.fontWeight && { fontWeight: e.fontWeight },
|
|
1812
1836
|
...e.fontStyle && { fontStyle: e.fontStyle },
|
|
1813
1837
|
...e.textDecoration && { textDecoration: e.textDecoration },
|
|
@@ -1819,33 +1843,33 @@ function ka(e) {
|
|
|
1819
1843
|
}
|
|
1820
1844
|
};
|
|
1821
1845
|
}
|
|
1822
|
-
const
|
|
1823
|
-
svg:
|
|
1824
|
-
img:
|
|
1825
|
-
},
|
|
1846
|
+
const Pa = "SvgImage-module__svg___q3xE-", Ma = "SvgImage-module__img___VsTm-", Eo = {
|
|
1847
|
+
svg: Pa,
|
|
1848
|
+
img: Ma
|
|
1849
|
+
}, Ra = (e) => {
|
|
1826
1850
|
const t = e.trim();
|
|
1827
1851
|
return t.startsWith("data:image/svg+xml") ? !0 : (t.split(/[?#]/)[0] ?? t).endsWith(".svg");
|
|
1828
|
-
},
|
|
1852
|
+
}, Wa = (e) => `url("${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, nt = ({ url: e, fill: t = "#000000", hoverFill: n = "#CCCCCC", className: o = "", style: r }) => {
|
|
1829
1853
|
const [a, i] = pe(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1830
1854
|
return Te(() => {
|
|
1831
1855
|
if (typeof window < "u" && window.CSS) {
|
|
1832
1856
|
const c = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
1833
1857
|
i(c);
|
|
1834
1858
|
}
|
|
1835
|
-
}, []), !
|
|
1859
|
+
}, []), !Ra(e) || !a ? /* @__PURE__ */ f("img", { src: e, alt: "", className: ye(Eo.img, o), style: r }) : /* @__PURE__ */ f(
|
|
1836
1860
|
"span",
|
|
1837
1861
|
{
|
|
1838
1862
|
"data-supports-mask": a,
|
|
1839
|
-
className: ye(
|
|
1863
|
+
className: ye(Eo.svg, o),
|
|
1840
1864
|
style: {
|
|
1841
|
-
"--svg":
|
|
1865
|
+
"--svg": Wa(e),
|
|
1842
1866
|
"--fill": t,
|
|
1843
1867
|
"--hover-fill": n,
|
|
1844
1868
|
...r ?? {}
|
|
1845
1869
|
}
|
|
1846
1870
|
}
|
|
1847
1871
|
);
|
|
1848
|
-
},
|
|
1872
|
+
}, Ha = {
|
|
1849
1873
|
"top-left": Z.topLeftAlignment,
|
|
1850
1874
|
"top-center": Z.topCenterAlignment,
|
|
1851
1875
|
"top-right": Z.topRightAlignment,
|
|
@@ -1856,7 +1880,7 @@ const Ia = "SvgImage-module__svg___q3xE-", Fa = "SvgImage-module__img___VsTm-",
|
|
|
1856
1880
|
"bottom-center": Z.bottomCenterAlignment,
|
|
1857
1881
|
"bottom-right": Z.bottomRightAlignment
|
|
1858
1882
|
};
|
|
1859
|
-
function
|
|
1883
|
+
function Na({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
1860
1884
|
const [r, a] = pe(null), { widthSettings: i, fontSettings: c, letterSpacing: s, textAlign: d, wordSpacing: l, fontSizeLineHeight: _, textAppearance: S, color: m } = n.imageCaption, [p, u] = pe(void 0), [x, h] = pe(null), [y, $] = pe(0), [D, R] = pe(0), { direction: T, transition: b, controls: C, pagination: k, imageCaption: O, triggers: F } = e, W = Ce(b.type), { x: N, y: V } = e.controls.offset, U = (g) => {
|
|
1861
1885
|
r && r.go(g);
|
|
1862
1886
|
};
|
|
@@ -1894,12 +1918,12 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1894
1918
|
children: t.map((g, L) => /* @__PURE__ */ f(
|
|
1895
1919
|
"div",
|
|
1896
1920
|
{
|
|
1897
|
-
className: ye(Z.captionText,
|
|
1921
|
+
className: ye(Z.captionText, Ha[O.alignment], {
|
|
1898
1922
|
[Z.withPointerEvents]: L === y && o,
|
|
1899
1923
|
[Z.active]: L === y
|
|
1900
1924
|
}),
|
|
1901
1925
|
style: {
|
|
1902
|
-
fontFamily: c.fontFamily,
|
|
1926
|
+
fontFamily: An(c.fontFamily),
|
|
1903
1927
|
fontWeight: c.fontWeight,
|
|
1904
1928
|
fontStyle: c.fontStyle,
|
|
1905
1929
|
width: i.sizing === "auto" ? "max-content" : M(i.width, o),
|
|
@@ -1937,7 +1961,7 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1937
1961
|
}
|
|
1938
1962
|
),
|
|
1939
1963
|
/* @__PURE__ */ f(
|
|
1940
|
-
|
|
1964
|
+
Cr,
|
|
1941
1965
|
{
|
|
1942
1966
|
onMove: (g) => {
|
|
1943
1967
|
$(g.index);
|
|
@@ -1959,7 +1983,7 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
1959
1983
|
type: b.type === "fade in" ? "fade" : "loop",
|
|
1960
1984
|
rewind: !0
|
|
1961
1985
|
},
|
|
1962
|
-
children: t.map((g, L) => /* @__PURE__ */ f(
|
|
1986
|
+
children: t.map((g, L) => /* @__PURE__ */ f(wr, { children: /* @__PURE__ */ f(
|
|
1963
1987
|
"div",
|
|
1964
1988
|
{
|
|
1965
1989
|
className: Z.sliderItem,
|
|
@@ -2017,7 +2041,7 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2017
2041
|
className: ye(Z.arrowImg, Z.mirror)
|
|
2018
2042
|
}
|
|
2019
2043
|
),
|
|
2020
|
-
!C.arrowsImgUrl && /* @__PURE__ */ f(
|
|
2044
|
+
!C.arrowsImgUrl && /* @__PURE__ */ f(Lo, { color: C.color, className: ye(Z.arrowIcon, Z.arrowImg, Z.mirror) })
|
|
2021
2045
|
]
|
|
2022
2046
|
}
|
|
2023
2047
|
)
|
|
@@ -2052,7 +2076,7 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2052
2076
|
className: Z.arrowImg
|
|
2053
2077
|
}
|
|
2054
2078
|
),
|
|
2055
|
-
!C.arrowsImgUrl && /* @__PURE__ */ f(
|
|
2079
|
+
!C.arrowsImgUrl && /* @__PURE__ */ f(Lo, { color: C.color, className: ye(Z.arrowIcon, Z.arrowImg) })
|
|
2056
2080
|
]
|
|
2057
2081
|
}
|
|
2058
2082
|
)
|
|
@@ -2120,11 +2144,11 @@ function Wa({ settings: e, content: t, styles: n, isEditor: o }) {
|
|
|
2120
2144
|
}
|
|
2121
2145
|
) });
|
|
2122
2146
|
}
|
|
2123
|
-
function
|
|
2147
|
+
function Lo({ color: e, className: t }) {
|
|
2124
2148
|
return /* @__PURE__ */ f("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ f("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ f("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
2125
2149
|
}
|
|
2126
|
-
const
|
|
2127
|
-
element:
|
|
2150
|
+
const Oa = {
|
|
2151
|
+
element: Na,
|
|
2128
2152
|
id: "control-slider",
|
|
2129
2153
|
name: "Slider",
|
|
2130
2154
|
preview: {
|
|
@@ -2726,13 +2750,13 @@ const Ha = {
|
|
|
2726
2750
|
},
|
|
2727
2751
|
required: ["settings", "content", "styles"]
|
|
2728
2752
|
}
|
|
2729
|
-
},
|
|
2730
|
-
imageRevealSlider:
|
|
2731
|
-
image:
|
|
2732
|
-
link:
|
|
2733
|
-
cursor:
|
|
2753
|
+
}, za = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Ba = "ImageRevealSlider-module__image___Qjt-e", Va = "ImageRevealSlider-module__link___N-iLG", Da = "ImageRevealSlider-module__cursor___2U03d", yt = {
|
|
2754
|
+
imageRevealSlider: za,
|
|
2755
|
+
image: Ba,
|
|
2756
|
+
link: Va,
|
|
2757
|
+
cursor: Da
|
|
2734
2758
|
};
|
|
2735
|
-
function
|
|
2759
|
+
function ko(e, t, n) {
|
|
2736
2760
|
for (const o of n) {
|
|
2737
2761
|
const r = new Image();
|
|
2738
2762
|
r.src = o.url;
|
|
@@ -2742,7 +2766,7 @@ function Lo(e, t, n) {
|
|
|
2742
2766
|
}
|
|
2743
2767
|
return !1;
|
|
2744
2768
|
}
|
|
2745
|
-
function
|
|
2769
|
+
function Pn(e) {
|
|
2746
2770
|
return new Promise((t) => {
|
|
2747
2771
|
const n = new Image();
|
|
2748
2772
|
n.src = e, n.onload = () => {
|
|
@@ -2750,23 +2774,23 @@ function Fn(e) {
|
|
|
2750
2774
|
};
|
|
2751
2775
|
});
|
|
2752
2776
|
}
|
|
2753
|
-
async function
|
|
2777
|
+
async function ja(e, t, n, o) {
|
|
2754
2778
|
let r, a;
|
|
2755
2779
|
if (t === "custom") {
|
|
2756
2780
|
r = n;
|
|
2757
|
-
const i = await
|
|
2781
|
+
const i = await Pn(e);
|
|
2758
2782
|
a = i.height / i.width * r;
|
|
2759
2783
|
} else if (t === "random") {
|
|
2760
2784
|
r = Math.random() * (o.max - o.min) + o.min;
|
|
2761
|
-
const i = await
|
|
2785
|
+
const i = await Pn(e);
|
|
2762
2786
|
a = i.height / i.width * r;
|
|
2763
2787
|
} else {
|
|
2764
|
-
const i = await
|
|
2788
|
+
const i = await Pn(e);
|
|
2765
2789
|
r = i.width, a = i.height;
|
|
2766
2790
|
}
|
|
2767
2791
|
return { width: r, height: a, finalWidth: `${r}px` };
|
|
2768
2792
|
}
|
|
2769
|
-
function
|
|
2793
|
+
function qa({ settings: e, content: t, isEditor: n }) {
|
|
2770
2794
|
const [o, r] = pe(null), [a, i] = pe([]), [c, s] = pe(0), d = Ce(0), [l, _] = pe({ x: 0, y: 0 }), [S, m] = pe(1), [p, u] = pe("none"), x = Ce({ x: 0, y: 0 }), [h, y] = pe(!1), { sizeType: $, imageWidth: D, randomRangeImageWidth: R } = e.imageSize, { revealPosition: T, visible: b } = e.position, { cursorType: C, target: k, defaultCursorScale: O, defaultCursor: F, hoverCursorScale: W, hoverCursor: N } = e.cursor;
|
|
2771
2795
|
Te(() => {
|
|
2772
2796
|
if (!o) return;
|
|
@@ -2781,7 +2805,7 @@ function Da({ settings: e, content: t, isEditor: n }) {
|
|
|
2781
2805
|
u("none"), m(1);
|
|
2782
2806
|
return;
|
|
2783
2807
|
}
|
|
2784
|
-
const Q =
|
|
2808
|
+
const Q = ko(ee, se, a) || k === "area" ? { img: N ?? "none", scale: W } : { img: F ?? "none", scale: O };
|
|
2785
2809
|
u(Q.img), m(Q.scale);
|
|
2786
2810
|
}, L = (E) => {
|
|
2787
2811
|
E.stopPropagation(), x.current = { x: E.clientX, y: E.clientY }, g(E.clientX, E.clientY);
|
|
@@ -2806,7 +2830,7 @@ function Da({ settings: e, content: t, isEditor: n }) {
|
|
|
2806
2830
|
h || (u("none"), m(0));
|
|
2807
2831
|
}, [h]);
|
|
2808
2832
|
const V = async (g, L, A, E = {}) => {
|
|
2809
|
-
const { width: w, height: P, finalWidth: K } = await
|
|
2833
|
+
const { width: w, height: P, finalWidth: K } = await ja(
|
|
2810
2834
|
g.image.url,
|
|
2811
2835
|
$,
|
|
2812
2836
|
D,
|
|
@@ -2841,7 +2865,7 @@ function Da({ settings: e, content: t, isEditor: n }) {
|
|
|
2841
2865
|
onClick: async (g) => {
|
|
2842
2866
|
if (!o) return;
|
|
2843
2867
|
const L = o.getBoundingClientRect(), A = g.clientX - L.left, E = g.clientY - L.top;
|
|
2844
|
-
if (k === "image" && !
|
|
2868
|
+
if (k === "image" && !ko(A, E, a)) return;
|
|
2845
2869
|
let w = 0, P = 0;
|
|
2846
2870
|
T === "on Click" ? (w = A, P = E) : T === "same" ? (w = L.width / 2, P = L.height / 2) : (w = Math.random() * L.width, P = Math.random() * L.height);
|
|
2847
2871
|
const K = t[c], ie = await V(K, L.width, L.height, { x: w, y: P });
|
|
@@ -2905,8 +2929,8 @@ function Da({ settings: e, content: t, isEditor: n }) {
|
|
|
2905
2929
|
}
|
|
2906
2930
|
);
|
|
2907
2931
|
}
|
|
2908
|
-
const
|
|
2909
|
-
element:
|
|
2932
|
+
const Ua = {
|
|
2933
|
+
element: qa,
|
|
2910
2934
|
id: "control-image-reveal",
|
|
2911
2935
|
name: "Click Gallery",
|
|
2912
2936
|
preview: {
|
|
@@ -3219,50 +3243,50 @@ const ja = {
|
|
|
3219
3243
|
}
|
|
3220
3244
|
}
|
|
3221
3245
|
}
|
|
3222
|
-
},
|
|
3223
|
-
hidden:
|
|
3224
|
-
heroImage:
|
|
3225
|
-
background:
|
|
3226
|
-
editor:
|
|
3227
|
-
contentStyle:
|
|
3228
|
-
imageStyle:
|
|
3229
|
-
imgWrapper:
|
|
3230
|
-
contain:
|
|
3231
|
-
cover:
|
|
3232
|
-
caption:
|
|
3233
|
-
captionTextInner:
|
|
3234
|
-
lightboxSplide:
|
|
3235
|
-
arrow:
|
|
3236
|
-
arrowVertical:
|
|
3237
|
-
nextArrow:
|
|
3238
|
-
arrowInner:
|
|
3239
|
-
arrowIcon:
|
|
3240
|
-
arrowImg:
|
|
3241
|
-
mirror:
|
|
3242
|
-
thumbsWrapper:
|
|
3243
|
-
thumbsContainerVertical:
|
|
3244
|
-
thumbsContainer:
|
|
3245
|
-
thumbsAlignStart:
|
|
3246
|
-
thumbsAlignCenter:
|
|
3247
|
-
thumbsAlignEnd:
|
|
3248
|
-
thumbItem:
|
|
3249
|
-
closeButton:
|
|
3250
|
-
fadeIn:
|
|
3251
|
-
slideInLeft:
|
|
3252
|
-
slideInRight:
|
|
3253
|
-
slideInTop:
|
|
3254
|
-
slideInBottom:
|
|
3255
|
-
fadeOut:
|
|
3256
|
-
slideOutLeft:
|
|
3257
|
-
slideOutRight:
|
|
3258
|
-
slideOutTop:
|
|
3259
|
-
slideOutBottom:
|
|
3260
|
-
scaleSlide:
|
|
3246
|
+
}, Ga = "LightBox-module__hidden___9s-9x", Ya = "LightBox-module__heroImage___sTxNF", Xa = "LightBox-module__background___rm9ml", Ka = "LightBox-module__editor___4ACaY", Za = "LightBox-module__contentStyle___Bgnsq", Ja = "LightBox-module__imageStyle___tLIlB", Qa = "LightBox-module__imgWrapper___LuFUp", el = "LightBox-module__contain___8-yaS", tl = "LightBox-module__cover___hNvOG", nl = "LightBox-module__caption___b6L2I", ol = "LightBox-module__captionTextInner___rCGNH", rl = "LightBox-module__lightboxSplide___XFuWC", il = "LightBox-module__arrow___iz38X", al = "LightBox-module__arrowVertical___Zfz81", ll = "LightBox-module__nextArrow___zkAQN", sl = "LightBox-module__arrowInner___p48sW", cl = "LightBox-module__arrowIcon___3VaFf", pl = "LightBox-module__arrowImg___pNV88", ul = "LightBox-module__mirror___pjeXc", dl = "LightBox-module__thumbsWrapper___GB-nU", ml = "LightBox-module__thumbsContainerVertical___wttk5", gl = "LightBox-module__thumbsContainer___osSma", fl = "LightBox-module__thumbsAlignStart___MO6tY", hl = "LightBox-module__thumbsAlignCenter___Q4sUx", yl = "LightBox-module__thumbsAlignEnd___p4y9R", vl = "LightBox-module__thumbItem___HvnF3", bl = "LightBox-module__closeButton___g2khP", xl = "LightBox-module__fadeIn___0m5GW", Sl = "LightBox-module__slideInLeft___gPYwC", Cl = "LightBox-module__slideInRight___S-pPp", wl = "LightBox-module__slideInTop___DFdAj", $l = "LightBox-module__slideInBottom___m27kZ", Tl = "LightBox-module__fadeOut___55qBR", _l = "LightBox-module__slideOutLeft___NvU7P", Al = "LightBox-module__slideOutRight___SK7eC", El = "LightBox-module__slideOutTop___Vgg0z", Ll = "LightBox-module__slideOutBottom___nJ0Ef", kl = "LightBox-module__scaleSlide___vZriG", B = {
|
|
3247
|
+
hidden: Ga,
|
|
3248
|
+
heroImage: Ya,
|
|
3249
|
+
background: Xa,
|
|
3250
|
+
editor: Ka,
|
|
3251
|
+
contentStyle: Za,
|
|
3252
|
+
imageStyle: Ja,
|
|
3253
|
+
imgWrapper: Qa,
|
|
3254
|
+
contain: el,
|
|
3255
|
+
cover: tl,
|
|
3256
|
+
caption: nl,
|
|
3257
|
+
captionTextInner: ol,
|
|
3258
|
+
lightboxSplide: rl,
|
|
3259
|
+
arrow: il,
|
|
3260
|
+
arrowVertical: al,
|
|
3261
|
+
nextArrow: ll,
|
|
3262
|
+
arrowInner: sl,
|
|
3263
|
+
arrowIcon: cl,
|
|
3264
|
+
arrowImg: pl,
|
|
3265
|
+
mirror: ul,
|
|
3266
|
+
thumbsWrapper: dl,
|
|
3267
|
+
thumbsContainerVertical: ml,
|
|
3268
|
+
thumbsContainer: gl,
|
|
3269
|
+
thumbsAlignStart: fl,
|
|
3270
|
+
thumbsAlignCenter: hl,
|
|
3271
|
+
thumbsAlignEnd: yl,
|
|
3272
|
+
thumbItem: vl,
|
|
3273
|
+
closeButton: bl,
|
|
3274
|
+
fadeIn: xl,
|
|
3275
|
+
slideInLeft: Sl,
|
|
3276
|
+
slideInRight: Cl,
|
|
3277
|
+
slideInTop: wl,
|
|
3278
|
+
slideInBottom: $l,
|
|
3279
|
+
fadeOut: Tl,
|
|
3280
|
+
slideOutLeft: _l,
|
|
3281
|
+
slideOutRight: Al,
|
|
3282
|
+
slideOutTop: El,
|
|
3283
|
+
slideOutBottom: Ll,
|
|
3284
|
+
scaleSlide: kl
|
|
3261
3285
|
}, en = (e, t, n) => {
|
|
3262
3286
|
const o = {}, [r, a] = e.split("-");
|
|
3263
3287
|
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% + ${M(t.x, n)}), calc(-50% + ${M(t.y, n)}))` : r === "middle" ? o.transform = `translate(${M(t.x, n)}, calc(-50% + ${M(t.y, n)}))` : a === "center" ? o.transform = `translate(calc(-50% + ${M(t.x, n)}), ${M(t.y, n)})` : o.transform = `translate(${M(t.x, n)}, ${M(t.y, n)})`, o;
|
|
3264
3288
|
};
|
|
3265
|
-
function
|
|
3289
|
+
function $r(e) {
|
|
3266
3290
|
const t = window.getComputedStyle(e);
|
|
3267
3291
|
return {
|
|
3268
3292
|
top: parseFloat(t.paddingTop) || 0,
|
|
@@ -3271,8 +3295,8 @@ function wr(e) {
|
|
|
3271
3295
|
left: parseFloat(t.paddingLeft) || 0
|
|
3272
3296
|
};
|
|
3273
3297
|
}
|
|
3274
|
-
function
|
|
3275
|
-
const t = e.getBoundingClientRect(), n =
|
|
3298
|
+
function Io(e) {
|
|
3299
|
+
const t = e.getBoundingClientRect(), n = $r(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, c = o / r, s = a / i;
|
|
3276
3300
|
let d, l;
|
|
3277
3301
|
s > c ? (d = o, l = o / s) : (l = r, d = r * s);
|
|
3278
3302
|
const _ = t.left + n.left, S = t.top + n.top, m = (o - d) / 2 + _, p = (r - l) / 2 + S;
|
|
@@ -3283,8 +3307,8 @@ function ko(e) {
|
|
|
3283
3307
|
height: l
|
|
3284
3308
|
};
|
|
3285
3309
|
}
|
|
3286
|
-
function
|
|
3287
|
-
const t = e.getBoundingClientRect(), n =
|
|
3310
|
+
function Fo(e) {
|
|
3311
|
+
const t = e.getBoundingClientRect(), n = $r(e);
|
|
3288
3312
|
return {
|
|
3289
3313
|
left: t.left + n.left,
|
|
3290
3314
|
right: t.right - n.right,
|
|
@@ -3292,7 +3316,7 @@ function Io(e) {
|
|
|
3292
3316
|
bottom: t.bottom - n.bottom
|
|
3293
3317
|
};
|
|
3294
3318
|
}
|
|
3295
|
-
function
|
|
3319
|
+
function Po(e) {
|
|
3296
3320
|
const t = e.match(/rgba?\(([^)]+)\)/);
|
|
3297
3321
|
if (t) {
|
|
3298
3322
|
const o = t[1].split(",").map((r) => parseFloat(r.trim()));
|
|
@@ -3305,7 +3329,7 @@ function Fo(e) {
|
|
|
3305
3329
|
}
|
|
3306
3330
|
return e.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/), 1;
|
|
3307
3331
|
}
|
|
3308
|
-
function
|
|
3332
|
+
function Il(e, t) {
|
|
3309
3333
|
const n = (() => {
|
|
3310
3334
|
if (e === "fade in") return B.fadeIn;
|
|
3311
3335
|
if (e === "slide in" || e === "mix")
|
|
@@ -3373,7 +3397,7 @@ function Ll(e, t) {
|
|
|
3373
3397
|
})();
|
|
3374
3398
|
return { appearClass: n, backdropAppearClass: o, backdropDisappearClass: r, disappearClass: a };
|
|
3375
3399
|
}
|
|
3376
|
-
const
|
|
3400
|
+
const Fl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, isEditor: a }) => {
|
|
3377
3401
|
const [i, c] = pe(!1), { url: s } = e.thumbnailBlock.cover;
|
|
3378
3402
|
return Te(() => {
|
|
3379
3403
|
r === "close" && c(!1), r === "open" && c(!0);
|
|
@@ -3388,7 +3412,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3388
3412
|
}
|
|
3389
3413
|
),
|
|
3390
3414
|
/* @__PURE__ */ f(
|
|
3391
|
-
|
|
3415
|
+
Pl,
|
|
3392
3416
|
{
|
|
3393
3417
|
isOpen: i,
|
|
3394
3418
|
onClose: () => c(!1),
|
|
@@ -3400,9 +3424,9 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3400
3424
|
}
|
|
3401
3425
|
)
|
|
3402
3426
|
] });
|
|
3403
|
-
},
|
|
3427
|
+
}, Pl = ({ isOpen: e, onClose: t, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
|
|
3404
3428
|
var H;
|
|
3405
|
-
const [s, d] = pe(0), [l, _] = pe(0), [S, m] = pe(!1), [p, u] = pe(!1), [x, h] = pe({}), y = Ce(null), $ = Ce(null), D = Ce(null), R = Ce(!1), T = Ce(null), b = Ce(null), C = Ce(null), k = Ce(null), O = Ce(!1), F = Ce(null), [W, N] = pe(!1), { appear: V, triggers: U, slider: g, thumbnail: L, controls: A, area: E, caption: w, layout: P } = r.lightboxBlock, { appearClass: K, backdropAppearClass: ie, backdropDisappearClass: ee, disappearClass: se } =
|
|
3429
|
+
const [s, d] = pe(0), [l, _] = pe(0), [S, m] = pe(!1), [p, u] = pe(!1), [x, h] = pe({}), y = Ce(null), $ = Ce(null), D = Ce(null), R = Ce(!1), T = Ce(null), b = Ce(null), C = Ce(null), k = Ce(null), O = Ce(!1), F = Ce(null), [W, N] = pe(!1), { appear: V, triggers: U, slider: g, thumbnail: L, controls: A, area: E, caption: w, layout: P } = r.lightboxBlock, { appearClass: K, backdropAppearClass: ie, backdropDisappearClass: ee, disappearClass: se } = Il(V.type, V.direction), I = (c == null ? void 0 : c.itemId) ?? null;
|
|
3406
3430
|
Te(() => {
|
|
3407
3431
|
const v = () => {
|
|
3408
3432
|
setTimeout(() => {
|
|
@@ -3430,7 +3454,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3430
3454
|
return X.observe(v), () => X.disconnect();
|
|
3431
3455
|
}, [e, L.isActive, n.length, x, g.direction]);
|
|
3432
3456
|
const Q = Je(() => {
|
|
3433
|
-
const v = window.matchMedia("(max-width: 768px)").matches, j =
|
|
3457
|
+
const v = window.matchMedia("(max-width: 768px)").matches, j = Po(E.color);
|
|
3434
3458
|
v && !i && j > 0.9 && (document.body.style.backgroundColor = ""), m(!0), R.current = !0;
|
|
3435
3459
|
const X = (J) => {
|
|
3436
3460
|
J.target === T.current && J.animationName && (T.current && b.current && T.current.removeEventListener("animationend", b.current), b.current = null, R.current && (R.current = !1, t()), m(!1));
|
|
@@ -3462,10 +3486,10 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3462
3486
|
return;
|
|
3463
3487
|
let oe;
|
|
3464
3488
|
if (X && D.current) {
|
|
3465
|
-
const te =
|
|
3489
|
+
const te = Fo(D.current);
|
|
3466
3490
|
oe = J >= te.left && J <= te.right && re >= te.top && re <= te.bottom;
|
|
3467
3491
|
} else {
|
|
3468
|
-
const te = D.current ?
|
|
3492
|
+
const te = D.current ? Io(D.current) : null;
|
|
3469
3493
|
if (!te) {
|
|
3470
3494
|
v.target === v.currentTarget && Q();
|
|
3471
3495
|
return;
|
|
@@ -3507,7 +3531,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3507
3531
|
$.current !== null && $.current !== g.type && _((v) => v + 1), $.current = g.type;
|
|
3508
3532
|
}, [g.type]), Te(() => {
|
|
3509
3533
|
if (!e) return;
|
|
3510
|
-
const v = document.body.style.overflow, j = window.matchMedia("(max-width: 768px)").matches, X =
|
|
3534
|
+
const v = document.body.style.overflow, j = window.matchMedia("(max-width: 768px)").matches, X = Po(E.color);
|
|
3511
3535
|
document.body.style.overflow = "hidden", u(!1);
|
|
3512
3536
|
const J = (oe) => {
|
|
3513
3537
|
oe.target === T.current && !R.current && oe.animationName && (j && !i && X > 0.9 && (document.body.style.backgroundColor = E.color), u(!0), T.current && C.current && T.current.removeEventListener("animationend", C.current), C.current = null);
|
|
@@ -3543,10 +3567,10 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3543
3567
|
const oe = n[s], te = (oe == null ? void 0 : oe.image.objectFit) === "cover", ce = j.changedTouches[0];
|
|
3544
3568
|
let z;
|
|
3545
3569
|
if (te && D.current) {
|
|
3546
|
-
const Y =
|
|
3570
|
+
const Y = Fo(D.current);
|
|
3547
3571
|
z = ce.clientX >= Y.left && ce.clientX <= Y.right && ce.clientY >= Y.top && ce.clientY <= Y.bottom;
|
|
3548
3572
|
} else {
|
|
3549
|
-
const Y = D.current ?
|
|
3573
|
+
const Y = D.current ? Io(D.current) : null;
|
|
3550
3574
|
if (!Y) return;
|
|
3551
3575
|
z = ce.clientX >= Y.x && ce.clientX <= Y.x + Y.width && ce.clientY >= Y.y && ce.clientY <= Y.y + Y.height;
|
|
3552
3576
|
}
|
|
@@ -3610,7 +3634,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3610
3634
|
animationTimingFunction: "ease",
|
|
3611
3635
|
animationFillMode: "both"
|
|
3612
3636
|
};
|
|
3613
|
-
return typeof document > "u" || !document.getElementById(a) ? null :
|
|
3637
|
+
return typeof document > "u" || !document.getElementById(a) ? null : kr(
|
|
3614
3638
|
/* @__PURE__ */ ge(tt, { children: [
|
|
3615
3639
|
/* @__PURE__ */ f(
|
|
3616
3640
|
"div",
|
|
@@ -3635,7 +3659,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3635
3659
|
},
|
|
3636
3660
|
children: [
|
|
3637
3661
|
/* @__PURE__ */ f(
|
|
3638
|
-
|
|
3662
|
+
Cr,
|
|
3639
3663
|
{
|
|
3640
3664
|
onMove: (v) => d(v.index),
|
|
3641
3665
|
ref: y,
|
|
@@ -3667,7 +3691,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3667
3691
|
"--position-transform": oe || "none"
|
|
3668
3692
|
};
|
|
3669
3693
|
})() : { ...X, position: "absolute", padding: J, boxSizing: "border-box" };
|
|
3670
|
-
return /* @__PURE__ */ f(
|
|
3694
|
+
return /* @__PURE__ */ f(wr, { children: /* @__PURE__ */ f("div", { className: B.imgWrapper, onClick: de, children: /* @__PURE__ */ f(
|
|
3671
3695
|
"img",
|
|
3672
3696
|
{
|
|
3673
3697
|
ref: j === s ? D : null,
|
|
@@ -3711,7 +3735,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3711
3735
|
className: ye(B.arrowImg, B.mirror)
|
|
3712
3736
|
}
|
|
3713
3737
|
),
|
|
3714
|
-
!A.arrowsImgUrl && /* @__PURE__ */ f(
|
|
3738
|
+
!A.arrowsImgUrl && /* @__PURE__ */ f(Mo, { color: A.color, className: ye(B.arrowIcon, B.arrowImg, B.mirror) })
|
|
3715
3739
|
]
|
|
3716
3740
|
}
|
|
3717
3741
|
)
|
|
@@ -3742,7 +3766,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3742
3766
|
className: B.arrowImg
|
|
3743
3767
|
}
|
|
3744
3768
|
),
|
|
3745
|
-
!A.arrowsImgUrl && /* @__PURE__ */ f(
|
|
3769
|
+
!A.arrowsImgUrl && /* @__PURE__ */ f(Mo, { color: A.color, className: ye(B.arrowIcon, B.arrowImg) })
|
|
3746
3770
|
]
|
|
3747
3771
|
}
|
|
3748
3772
|
)
|
|
@@ -3761,7 +3785,7 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3761
3785
|
className: B.caption,
|
|
3762
3786
|
style: {
|
|
3763
3787
|
...en(w.alignment, w.offset, i),
|
|
3764
|
-
fontFamily: j.fontFamily,
|
|
3788
|
+
fontFamily: An(j.fontFamily),
|
|
3765
3789
|
fontWeight: j.fontWeight,
|
|
3766
3790
|
fontStyle: j.fontStyle,
|
|
3767
3791
|
width: v.sizing === "auto" ? "max-content" : M(v.width, i),
|
|
@@ -3913,11 +3937,11 @@ const kl = ({ settings: e, content: t, styles: n, portalId: o, activeEvent: r, i
|
|
|
3913
3937
|
document.getElementById(a)
|
|
3914
3938
|
);
|
|
3915
3939
|
};
|
|
3916
|
-
function
|
|
3940
|
+
function Mo({ color: e, className: t }) {
|
|
3917
3941
|
return /* @__PURE__ */ f("svg", { viewBox: "0 0 10 18", className: t, children: /* @__PURE__ */ f("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ f("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: e, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
|
|
3918
3942
|
}
|
|
3919
|
-
const
|
|
3920
|
-
element:
|
|
3943
|
+
const Ml = {
|
|
3944
|
+
element: Fl,
|
|
3921
3945
|
id: "lightbox",
|
|
3922
3946
|
name: "Lightbox",
|
|
3923
3947
|
preview: {
|
|
@@ -4987,30 +5011,10 @@ const Fl = {
|
|
|
4987
5011
|
required: ["settings", "content", "styles"]
|
|
4988
5012
|
}
|
|
4989
5013
|
};
|
|
4990
|
-
function wt(e) {
|
|
4991
|
-
const { color: t, ...n } = e;
|
|
4992
|
-
return n;
|
|
4993
|
-
}
|
|
4994
|
-
function Ne(e, t) {
|
|
4995
|
-
var n, o, r;
|
|
4996
|
-
return {
|
|
4997
|
-
fontFamily: e.fontSettings.fontFamily,
|
|
4998
|
-
fontWeight: e.fontSettings.fontWeight,
|
|
4999
|
-
fontStyle: e.fontSettings.fontStyle,
|
|
5000
|
-
letterSpacing: M(e.letterSpacing, t),
|
|
5001
|
-
wordSpacing: M(e.wordSpacing, t),
|
|
5002
|
-
fontSize: M(e.fontSize, t),
|
|
5003
|
-
lineHeight: e.lineHeight !== void 0 ? M(e.lineHeight, t) : void 0,
|
|
5004
|
-
textTransform: (n = e.textAppearance) == null ? void 0 : n.textTransform,
|
|
5005
|
-
textDecoration: (o = e.textAppearance) == null ? void 0 : o.textDecoration,
|
|
5006
|
-
fontVariant: (r = e.textAppearance) == null ? void 0 : r.fontVariant,
|
|
5007
|
-
color: e.color
|
|
5008
|
-
};
|
|
5009
|
-
}
|
|
5010
5014
|
function tn(e) {
|
|
5011
5015
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
5012
5016
|
}
|
|
5013
|
-
function
|
|
5017
|
+
function Rl(e) {
|
|
5014
5018
|
return `
|
|
5015
5019
|
.${e}-wrapper {
|
|
5016
5020
|
display: flex;
|
|
@@ -5149,7 +5153,7 @@ function Pl(e) {
|
|
|
5149
5153
|
}
|
|
5150
5154
|
`;
|
|
5151
5155
|
}
|
|
5152
|
-
function
|
|
5156
|
+
function Wl({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
5153
5157
|
const { prefix: r } = fn(), {
|
|
5154
5158
|
type: a = "A",
|
|
5155
5159
|
fieldsToShow: i = 2,
|
|
@@ -5269,7 +5273,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5269
5273
|
wordSpacing: j ?? 0,
|
|
5270
5274
|
textAppearance: X,
|
|
5271
5275
|
color: O
|
|
5272
|
-
}, He = wt(Ne(Se, t)), st =
|
|
5276
|
+
}, He = wt(Ne(Se, t)), st = No(r, {
|
|
5273
5277
|
inputColor: y,
|
|
5274
5278
|
inputTextColor: $,
|
|
5275
5279
|
inputBorderColor: D,
|
|
@@ -5280,17 +5284,17 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5280
5284
|
labelTextColor: k,
|
|
5281
5285
|
successColor: O,
|
|
5282
5286
|
errorColor: F
|
|
5283
|
-
},
|
|
5287
|
+
}, Hl, Nl, oe), [$e, Ve] = pe(
|
|
5284
5288
|
() => Object.fromEntries(ce.map((ve) => [ve.name, ""]))
|
|
5285
|
-
), [
|
|
5289
|
+
), [po, kt] = pe("idle"), [Tr, Zt] = pe(null), En = o === "success" ? "success" : o === "error" ? "error" : po, _r = o === "error" ? re : Tr, Jt = o === "filled", It = Qe(() => {
|
|
5286
5290
|
if (!Jt) return $e;
|
|
5287
5291
|
let ve = null;
|
|
5288
5292
|
for (const De of ce)
|
|
5289
5293
|
($e[De.name] ?? "").trim().length > 0 || (ve = ve ?? { ...$e }, ve[De.name] = "Filled");
|
|
5290
5294
|
return ve ?? $e;
|
|
5291
|
-
}, [$e, Jt, ce]),
|
|
5295
|
+
}, [$e, Jt, ce]), Ar = En === "error" ? cn(ce, It) : null, Er = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), uo = n == null ? void 0 : n.submitUrl, mo = (ve, De) => {
|
|
5292
5296
|
Ve((je) => ({ ...je, [ve]: De }));
|
|
5293
|
-
},
|
|
5297
|
+
}, Lr = async (ve) => {
|
|
5294
5298
|
ve.preventDefault();
|
|
5295
5299
|
const De = Object.fromEntries(
|
|
5296
5300
|
ce.map((Pe) => {
|
|
@@ -5298,7 +5302,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5298
5302
|
return [Pe.name, ((ht = $e[Pe.name]) == null ? void 0 : ht.trim()) ?? ""];
|
|
5299
5303
|
}).filter(([, Pe]) => Pe)
|
|
5300
5304
|
);
|
|
5301
|
-
if (!
|
|
5305
|
+
if (!uo) {
|
|
5302
5306
|
kt("error"), Zt("No integrations were found for this form.");
|
|
5303
5307
|
return;
|
|
5304
5308
|
}
|
|
@@ -5310,7 +5314,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5310
5314
|
}
|
|
5311
5315
|
kt("submitting"), Zt(null);
|
|
5312
5316
|
try {
|
|
5313
|
-
const Pe = await fetch(
|
|
5317
|
+
const Pe = await fetch(uo, {
|
|
5314
5318
|
method: "POST",
|
|
5315
5319
|
headers: { "Content-Type": "application/json" },
|
|
5316
5320
|
body: JSON.stringify(De)
|
|
@@ -5324,12 +5328,12 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5324
5328
|
kt("error"), Zt(Pe instanceof Error ? Pe.message : "Something went wrong");
|
|
5325
5329
|
}
|
|
5326
5330
|
};
|
|
5327
|
-
return /* @__PURE__ */ ge("div", { className: `${r}-wrapper ${r}-type-${a} ${
|
|
5328
|
-
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html:
|
|
5331
|
+
return /* @__PURE__ */ ge("div", { className: `${r}-wrapper ${r}-type-${a} ${Er}`.trim(), style: st, children: [
|
|
5332
|
+
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: Rl(r) } }),
|
|
5329
5333
|
/* @__PURE__ */ ge(
|
|
5330
5334
|
"form",
|
|
5331
5335
|
{
|
|
5332
|
-
onSubmit:
|
|
5336
|
+
onSubmit: Lr,
|
|
5333
5337
|
className: `${r}-form`,
|
|
5334
5338
|
style: { gap: M(d ?? 0, t) },
|
|
5335
5339
|
children: [
|
|
@@ -5346,7 +5350,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5346
5350
|
name: ve.name,
|
|
5347
5351
|
autoComplete: "off",
|
|
5348
5352
|
value: It[ve.name] ?? "",
|
|
5349
|
-
onChange: (je) =>
|
|
5353
|
+
onChange: (je) => mo(ve.name, je.target.value),
|
|
5350
5354
|
placeholder: ve.placeholder,
|
|
5351
5355
|
className: `${r}-input`,
|
|
5352
5356
|
style: ne,
|
|
@@ -5361,7 +5365,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5361
5365
|
name: ve.name,
|
|
5362
5366
|
autoComplete: "off",
|
|
5363
5367
|
value: It[ve.name] ?? "",
|
|
5364
|
-
onChange: (je) =>
|
|
5368
|
+
onChange: (je) => mo(ve.name, je.target.value),
|
|
5365
5369
|
placeholder: ve.placeholder,
|
|
5366
5370
|
required: ve.isRequired ?? ve.type === "email",
|
|
5367
5371
|
className: `${r}-input`,
|
|
@@ -5402,7 +5406,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5402
5406
|
whiteSpace: "normal",
|
|
5403
5407
|
textAlign: "center"
|
|
5404
5408
|
} : void 0,
|
|
5405
|
-
children:
|
|
5409
|
+
children: po === "submitting" ? "..." : s
|
|
5406
5410
|
}
|
|
5407
5411
|
)
|
|
5408
5412
|
}
|
|
@@ -5410,7 +5414,7 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5410
5414
|
]
|
|
5411
5415
|
}
|
|
5412
5416
|
),
|
|
5413
|
-
|
|
5417
|
+
En === "success" && /* @__PURE__ */ f(
|
|
5414
5418
|
"p",
|
|
5415
5419
|
{
|
|
5416
5420
|
className: `${r}-success`,
|
|
@@ -5418,18 +5422,18 @@ function Ml({ settings: e, isEditor: t, metadata: n, activeEvent: o }) {
|
|
|
5418
5422
|
children: J
|
|
5419
5423
|
}
|
|
5420
5424
|
),
|
|
5421
|
-
|
|
5425
|
+
En === "error" && /* @__PURE__ */ f(
|
|
5422
5426
|
"p",
|
|
5423
5427
|
{
|
|
5424
5428
|
className: `${r}-error`,
|
|
5425
5429
|
style: { ...He },
|
|
5426
5430
|
role: "alert",
|
|
5427
|
-
children:
|
|
5431
|
+
children: Ar ?? _r ?? re
|
|
5428
5432
|
}
|
|
5429
5433
|
)
|
|
5430
5434
|
] });
|
|
5431
5435
|
}
|
|
5432
|
-
const
|
|
5436
|
+
const Hl = {
|
|
5433
5437
|
inputColor: "input-color",
|
|
5434
5438
|
inputTextColor: "input-text-color",
|
|
5435
5439
|
inputBorderColor: "input-border-color",
|
|
@@ -5440,7 +5444,7 @@ const Rl = {
|
|
|
5440
5444
|
labelTextColor: "label-text-color",
|
|
5441
5445
|
successColor: "success-color",
|
|
5442
5446
|
errorColor: "error-color"
|
|
5443
|
-
},
|
|
5447
|
+
}, Nl = ["hover", "focus", "filled", "success", "error"], Ol = `import React, { useMemo, useState } from 'react';
|
|
5444
5448
|
import { CommonComponentProps } from '../props';
|
|
5445
5449
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
5446
5450
|
import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
|
|
@@ -6041,7 +6045,7 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
|
|
|
6041
6045
|
};
|
|
6042
6046
|
|
|
6043
6047
|
const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
6044
|
-
`,
|
|
6048
|
+
`, zl = [
|
|
6045
6049
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
6046
6050
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
6047
6051
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
@@ -6058,7 +6062,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6058
6062
|
fontStyle: { type: "string" }
|
|
6059
6063
|
}
|
|
6060
6064
|
}
|
|
6061
|
-
},
|
|
6065
|
+
}, Bl = [
|
|
6062
6066
|
"inputColor",
|
|
6063
6067
|
"inputTextColor",
|
|
6064
6068
|
"inputBorderColor",
|
|
@@ -6069,7 +6073,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6069
6073
|
"labelTextColor",
|
|
6070
6074
|
"successColor",
|
|
6071
6075
|
"errorColor"
|
|
6072
|
-
],
|
|
6076
|
+
], Vl = {
|
|
6073
6077
|
type: "object",
|
|
6074
6078
|
version: 1,
|
|
6075
6079
|
settings: {
|
|
@@ -6406,7 +6410,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6406
6410
|
},
|
|
6407
6411
|
defaults: {
|
|
6408
6412
|
fieldsToShow: 2,
|
|
6409
|
-
fields:
|
|
6413
|
+
fields: zl,
|
|
6410
6414
|
type: "A",
|
|
6411
6415
|
inputColor: "#FFFFFF",
|
|
6412
6416
|
inputTextColor: "#0A00F8",
|
|
@@ -6565,7 +6569,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6565
6569
|
panels: [
|
|
6566
6570
|
{
|
|
6567
6571
|
id: "general",
|
|
6568
|
-
icon: "
|
|
6572
|
+
icon: "settings",
|
|
6569
6573
|
title: "General",
|
|
6570
6574
|
tooltip: "General Settings",
|
|
6571
6575
|
layout: [
|
|
@@ -6652,7 +6656,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6652
6656
|
}
|
|
6653
6657
|
],
|
|
6654
6658
|
paletteBookmark: {
|
|
6655
|
-
items: [...
|
|
6659
|
+
items: [...Bl],
|
|
6656
6660
|
panelIds: ["general", "typeStyle"],
|
|
6657
6661
|
stateItems: {
|
|
6658
6662
|
default: ["placeholderColor", "inputColor", "inputBorderColor", "buttonTextColor", "buttonColor", "buttonBorderColor", "labelTextColor"],
|
|
@@ -6665,8 +6669,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6665
6669
|
},
|
|
6666
6670
|
allowedPlugins: ["newsletter"],
|
|
6667
6671
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
6668
|
-
},
|
|
6669
|
-
element:
|
|
6672
|
+
}, Dl = {
|
|
6673
|
+
element: Wl,
|
|
6670
6674
|
id: "form",
|
|
6671
6675
|
name: "Newsletter Stacked",
|
|
6672
6676
|
category: "forms",
|
|
@@ -6678,13 +6682,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
6678
6682
|
width: 300,
|
|
6679
6683
|
height: 42
|
|
6680
6684
|
},
|
|
6681
|
-
schema:
|
|
6682
|
-
sourceCode:
|
|
6685
|
+
schema: Vl,
|
|
6686
|
+
sourceCode: Ol
|
|
6683
6687
|
};
|
|
6684
6688
|
function on(e) {
|
|
6685
6689
|
return `calc(var(--cntrl-article-width, 100vw) * ${e / 1440})`;
|
|
6686
6690
|
}
|
|
6687
|
-
function
|
|
6691
|
+
function jl(e) {
|
|
6688
6692
|
return `
|
|
6689
6693
|
.${e}-wrapper {
|
|
6690
6694
|
display: flex;
|
|
@@ -6878,7 +6882,7 @@ function Vl(e) {
|
|
|
6878
6882
|
}
|
|
6879
6883
|
`;
|
|
6880
6884
|
}
|
|
6881
|
-
const
|
|
6885
|
+
const ql = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
6882
6886
|
const { prefix: r } = fn(), {
|
|
6883
6887
|
fields: a = [{ name: "email", type: "email", placeholder: "Your email" }],
|
|
6884
6888
|
buttonIcon: i,
|
|
@@ -6956,7 +6960,7 @@ const Dl = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6956
6960
|
wordSpacing: O ?? 0,
|
|
6957
6961
|
textAppearance: F,
|
|
6958
6962
|
color: e.successColor ?? "#22c55e"
|
|
6959
|
-
}, ae = wt(Ne(z, t)), ne = wt(Ne(Y, t)), ue = wt(Ne(G, t)), _e =
|
|
6963
|
+
}, ae = wt(Ne(z, t)), ne = wt(Ne(Y, t)), ue = wt(Ne(G, t)), _e = No(r, {
|
|
6960
6964
|
strokeColor: e.strokeColor,
|
|
6961
6965
|
inputColor: e.inputColor,
|
|
6962
6966
|
placeholderColor: e.placeholderColor,
|
|
@@ -6965,7 +6969,7 @@ const Dl = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
6965
6969
|
errorColor: e.errorColor,
|
|
6966
6970
|
inputTextColor: e.inputTextColor ?? (z == null ? void 0 : z.color) ?? "#111111",
|
|
6967
6971
|
buttonTextColor: e.buttonTextColor ?? (Y == null ? void 0 : Y.color) ?? "#ffffff"
|
|
6968
|
-
},
|
|
6972
|
+
}, Ul, Gl, g), Ae = {
|
|
6969
6973
|
borderRadius: M(V, t),
|
|
6970
6974
|
borderWidth: M(U, t),
|
|
6971
6975
|
borderStyle: "solid"
|
|
@@ -7004,7 +7008,7 @@ const Dl = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
7004
7008
|
}
|
|
7005
7009
|
};
|
|
7006
7010
|
return /* @__PURE__ */ ge("div", { className: `${r}-wrapper ${X}`.trim(), style: _e, children: [
|
|
7007
|
-
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html:
|
|
7011
|
+
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: jl(r) } }),
|
|
7008
7012
|
/* @__PURE__ */ ge(
|
|
7009
7013
|
"form",
|
|
7010
7014
|
{
|
|
@@ -7091,7 +7095,7 @@ const Dl = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
7091
7095
|
}
|
|
7092
7096
|
)
|
|
7093
7097
|
] });
|
|
7094
|
-
},
|
|
7098
|
+
}, Ul = {
|
|
7095
7099
|
strokeColor: "stroke-color",
|
|
7096
7100
|
inputColor: "input-color",
|
|
7097
7101
|
placeholderColor: "placeholder-color",
|
|
@@ -7100,7 +7104,7 @@ const Dl = ({ settings: e, isEditor: t, metadata: n, activeEvent: o }) => {
|
|
|
7100
7104
|
buttonTextColor: "button-text-color",
|
|
7101
7105
|
successColor: "success-color",
|
|
7102
7106
|
errorColor: "error-color"
|
|
7103
|
-
},
|
|
7107
|
+
}, Gl = ["hover", "focus", "filled", "success", "error"], Yl = `import React, { useMemo, useState } from 'react';
|
|
7104
7108
|
import { CommonComponentProps } from '../props';
|
|
7105
7109
|
import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
|
|
7106
7110
|
import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
|
|
@@ -7672,14 +7676,14 @@ const COLOR_VAR_MAP: Record<OnelinerColorKeys, string> = {
|
|
|
7672
7676
|
};
|
|
7673
7677
|
|
|
7674
7678
|
const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
7675
|
-
`,
|
|
7679
|
+
`, Xl = "data:image/svg+xml," + encodeURIComponent(
|
|
7676
7680
|
'<svg width="23px" height="20px" viewBox="0 0 23 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Newsletter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Tutorials-pop-up-Copy-12" transform="translate(-43, -687)" fill="#FFFFFF" fill-rule="nonzero"><path d="M66,697 C66,697.552285 65.5522847,698 65,698 L44,698 C43.4477153,698 43,697.552285 43,697 C43,696.447715 43.4477153,696 44,696 L65,696 C65.5522847,696 66,696.447715 66,697 Z M55.6689647,687.256706 L65.6689647,696.256706 C66.1103451,696.653948 66.1103451,697.346052 65.6689647,697.743294 L55.6689647,706.743294 C55.2584547,707.112753 54.6261649,707.079475 54.2567059,706.668965 C53.8872468,706.258455 53.9205252,705.626165 54.3310353,705.256706 L63.5051529,697 L54.3310353,688.743294 C53.9205252,688.373835 53.8872468,687.741545 54.2567059,687.331035 C54.6261649,686.920525 55.2584547,686.887247 55.6689647,687.256706 Z" id="Combined-Shape"></path></g></g></svg>'
|
|
7677
|
-
),
|
|
7681
|
+
), Kl = [
|
|
7678
7682
|
{ name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
|
|
7679
7683
|
{ name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
|
|
7680
7684
|
{ name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
|
|
7681
7685
|
{ name: "phone", type: "phone", placeholder: "Enter your phone", label: "Phone", isRequired: !1, error: "Please, enter a valid phone number." }
|
|
7682
|
-
],
|
|
7686
|
+
], Mn = {
|
|
7683
7687
|
fontSettings: {
|
|
7684
7688
|
type: "object",
|
|
7685
7689
|
display: { type: "font-settings-weight", visible: !0 },
|
|
@@ -7688,7 +7692,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7688
7692
|
fontStyle: { type: "string" }
|
|
7689
7693
|
}
|
|
7690
7694
|
}
|
|
7691
|
-
},
|
|
7695
|
+
}, Zl = [
|
|
7692
7696
|
"strokeColor",
|
|
7693
7697
|
"inputColor",
|
|
7694
7698
|
"inputTextColor",
|
|
@@ -7697,7 +7701,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7697
7701
|
"buttonTextColor",
|
|
7698
7702
|
"successColor",
|
|
7699
7703
|
"errorColor"
|
|
7700
|
-
],
|
|
7704
|
+
], Jl = {
|
|
7701
7705
|
type: "object",
|
|
7702
7706
|
version: 1,
|
|
7703
7707
|
settings: {
|
|
@@ -7865,7 +7869,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7865
7869
|
scope: "common"
|
|
7866
7870
|
},
|
|
7867
7871
|
inputFontSettings: {
|
|
7868
|
-
...
|
|
7872
|
+
...Mn.fontSettings,
|
|
7869
7873
|
scope: "common",
|
|
7870
7874
|
title: "Input"
|
|
7871
7875
|
},
|
|
@@ -7900,7 +7904,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7900
7904
|
display: { type: "text-appearance" }
|
|
7901
7905
|
},
|
|
7902
7906
|
buttonFontSettings: {
|
|
7903
|
-
...
|
|
7907
|
+
...Mn.fontSettings,
|
|
7904
7908
|
scope: "common",
|
|
7905
7909
|
title: "Button"
|
|
7906
7910
|
},
|
|
@@ -7935,7 +7939,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7935
7939
|
display: { type: "text-appearance" }
|
|
7936
7940
|
},
|
|
7937
7941
|
statusFontSettings: {
|
|
7938
|
-
...
|
|
7942
|
+
...Mn.fontSettings,
|
|
7939
7943
|
scope: "common",
|
|
7940
7944
|
title: "Success/Error"
|
|
7941
7945
|
},
|
|
@@ -7971,12 +7975,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
7971
7975
|
}
|
|
7972
7976
|
},
|
|
7973
7977
|
defaults: {
|
|
7974
|
-
fields:
|
|
7978
|
+
fields: Kl,
|
|
7975
7979
|
fieldsToShow: 1,
|
|
7976
7980
|
buttonLabel: "Subscribe",
|
|
7977
7981
|
buttonIcon: {
|
|
7978
7982
|
mode: "Off",
|
|
7979
|
-
icon:
|
|
7983
|
+
icon: Xl
|
|
7980
7984
|
},
|
|
7981
7985
|
fontFamily: "Arial",
|
|
7982
7986
|
strokeColor: "#0A00F8",
|
|
@@ -8096,7 +8100,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8096
8100
|
panels: [
|
|
8097
8101
|
{
|
|
8098
8102
|
id: "general",
|
|
8099
|
-
icon: "
|
|
8103
|
+
icon: "settings",
|
|
8100
8104
|
title: "General",
|
|
8101
8105
|
tooltip: "General Settings",
|
|
8102
8106
|
layout: [
|
|
@@ -8154,7 +8158,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8154
8158
|
}
|
|
8155
8159
|
],
|
|
8156
8160
|
paletteBookmark: {
|
|
8157
|
-
items: [...
|
|
8161
|
+
items: [...Zl],
|
|
8158
8162
|
panelIds: ["general", "typeStyle"],
|
|
8159
8163
|
stateItems: {
|
|
8160
8164
|
default: ["strokeColor", "placeholderColor", "inputColor", "buttonTextColor", "buttonColor"],
|
|
@@ -8167,8 +8171,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8167
8171
|
},
|
|
8168
8172
|
allowedPlugins: ["newsletter"],
|
|
8169
8173
|
states: ["default", "hover", "focus", "filled", "success", "error"]
|
|
8170
|
-
},
|
|
8171
|
-
element:
|
|
8174
|
+
}, Ql = {
|
|
8175
|
+
element: ql,
|
|
8172
8176
|
id: "oneliner-form",
|
|
8173
8177
|
name: "Newsletter Single Line",
|
|
8174
8178
|
category: "forms",
|
|
@@ -8184,10 +8188,10 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
8184
8188
|
content: [],
|
|
8185
8189
|
parameters: [{ path: "buttonIcon.icon" }]
|
|
8186
8190
|
},
|
|
8187
|
-
schema:
|
|
8188
|
-
sourceCode:
|
|
8191
|
+
schema: Jl,
|
|
8192
|
+
sourceCode: Yl
|
|
8189
8193
|
};
|
|
8190
|
-
function
|
|
8194
|
+
function Ro(e) {
|
|
8191
8195
|
return `
|
|
8192
8196
|
.${e}-marquee-wrapper {
|
|
8193
8197
|
overflow: hidden;
|
|
@@ -8277,8 +8281,8 @@ function Mo(e) {
|
|
|
8277
8281
|
}
|
|
8278
8282
|
`;
|
|
8279
8283
|
}
|
|
8280
|
-
const
|
|
8281
|
-
const { prefix: r } = fn(), { autoplay: a, align: i, speed: c, direction: s, pauseOnHover: d, gap: l, cardWidth: _, corners: S, stroke: m, strokeColor: p, bgColor: u, padding: x, logoMarginTop: h, logoWidth: y, logoHeight: $, captionMarginTop: D } = e, R = a === "on" && !o, T = R, b = Math.max(0, c) *
|
|
8284
|
+
const es = 30, ts = ({ settings: e, content: t, isEditor: n, isPreviewMode: o }) => {
|
|
8285
|
+
const { prefix: r } = fn(), { autoplay: a, align: i, speed: c, direction: s, pauseOnHover: d, gap: l, cardWidth: _, corners: S, stroke: m, strokeColor: p, bgColor: u, padding: x, logoMarginTop: h, logoWidth: y, logoHeight: $, captionMarginTop: D } = e, R = a === "on" && !o, T = R, b = Math.max(0, c) * es, C = (z) => M(z, n ?? !1), k = Ce(null), O = Ce(null), F = Ce(null), [W, N] = pe(0), [V, U] = pe(0), [g, L] = pe(0), A = T && d === "on", [E, w] = pe(!1), P = Ce(null), [K, ie] = pe(0), [ee, se] = pe(0), I = Ce(null), Q = (z) => {
|
|
8282
8286
|
var G, ae, ne, ue, _e;
|
|
8283
8287
|
return {
|
|
8284
8288
|
fontSettings: {
|
|
@@ -8512,7 +8516,7 @@ const Jl = 30, Ql = ({ settings: e, content: t, isEditor: n, isPreviewMode: o })
|
|
|
8512
8516
|
const z = P.current;
|
|
8513
8517
|
if (!z) return;
|
|
8514
8518
|
const Y = () => {
|
|
8515
|
-
|
|
8519
|
+
Oo(z, re);
|
|
8516
8520
|
};
|
|
8517
8521
|
Y();
|
|
8518
8522
|
const G = new ResizeObserver(Y);
|
|
@@ -8582,7 +8586,7 @@ const Jl = 30, Ql = ({ settings: e, content: t, isEditor: n, isPreviewMode: o })
|
|
|
8582
8586
|
...g > 0 ? { height: g } : {}
|
|
8583
8587
|
},
|
|
8584
8588
|
children: [
|
|
8585
|
-
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html:
|
|
8589
|
+
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: Ro(r) } }),
|
|
8586
8590
|
te,
|
|
8587
8591
|
/* @__PURE__ */ f(
|
|
8588
8592
|
"div",
|
|
@@ -8629,7 +8633,7 @@ const Jl = 30, Ql = ({ settings: e, content: t, isEditor: n, isPreviewMode: o })
|
|
|
8629
8633
|
]
|
|
8630
8634
|
}
|
|
8631
8635
|
) : /* @__PURE__ */ ge("div", { className: `${r}-wrapper`, children: [
|
|
8632
|
-
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html:
|
|
8636
|
+
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: Ro(r) } }),
|
|
8633
8637
|
te,
|
|
8634
8638
|
/* @__PURE__ */ f(
|
|
8635
8639
|
"div",
|
|
@@ -8648,7 +8652,7 @@ const Jl = 30, Ql = ({ settings: e, content: t, isEditor: n, isPreviewMode: o })
|
|
|
8648
8652
|
}
|
|
8649
8653
|
)
|
|
8650
8654
|
] });
|
|
8651
|
-
},
|
|
8655
|
+
}, ns = `import { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
8652
8656
|
import cn from 'classnames';
|
|
8653
8657
|
import { CommonComponentProps } from '../props';
|
|
8654
8658
|
import { RichTextRenderer } from '../helpers/RichTextRenderer/RichTextRenderer';
|
|
@@ -9244,7 +9248,7 @@ type TestimonialsSettings = {
|
|
|
9244
9248
|
logoHeight: number;
|
|
9245
9249
|
captionMarginTop: number;
|
|
9246
9250
|
};
|
|
9247
|
-
`,
|
|
9251
|
+
`, Wo = {
|
|
9248
9252
|
fontSettings: {
|
|
9249
9253
|
type: "object",
|
|
9250
9254
|
scope: "common",
|
|
@@ -9254,7 +9258,7 @@ type TestimonialsSettings = {
|
|
|
9254
9258
|
fontStyle: { type: "string", scope: "common" }
|
|
9255
9259
|
}
|
|
9256
9260
|
}
|
|
9257
|
-
},
|
|
9261
|
+
}, os = {
|
|
9258
9262
|
type: "object",
|
|
9259
9263
|
version: 1,
|
|
9260
9264
|
settings: {
|
|
@@ -9398,7 +9402,7 @@ type TestimonialsSettings = {
|
|
|
9398
9402
|
display: { type: "font-family-select" }
|
|
9399
9403
|
},
|
|
9400
9404
|
captionFontSettings: {
|
|
9401
|
-
...
|
|
9405
|
+
...Wo.fontSettings,
|
|
9402
9406
|
scope: "common",
|
|
9403
9407
|
title: "",
|
|
9404
9408
|
display: { type: "font-settings-weight" }
|
|
@@ -9440,7 +9444,7 @@ type TestimonialsSettings = {
|
|
|
9440
9444
|
display: { type: "font-family-select" }
|
|
9441
9445
|
},
|
|
9442
9446
|
textFontSettings: {
|
|
9443
|
-
...
|
|
9447
|
+
...Wo.fontSettings,
|
|
9444
9448
|
scope: "common",
|
|
9445
9449
|
title: "",
|
|
9446
9450
|
display: { type: "font-settings-weight" }
|
|
@@ -9572,7 +9576,7 @@ type TestimonialsSettings = {
|
|
|
9572
9576
|
panels: [
|
|
9573
9577
|
{
|
|
9574
9578
|
id: "general",
|
|
9575
|
-
icon: "
|
|
9579
|
+
icon: "settings",
|
|
9576
9580
|
title: "General",
|
|
9577
9581
|
tooltip: "General Settings",
|
|
9578
9582
|
layout: [
|
|
@@ -9697,8 +9701,8 @@ type TestimonialsSettings = {
|
|
|
9697
9701
|
}
|
|
9698
9702
|
]
|
|
9699
9703
|
}
|
|
9700
|
-
},
|
|
9701
|
-
element:
|
|
9704
|
+
}, rs = {
|
|
9705
|
+
element: ts,
|
|
9702
9706
|
id: "testimonials",
|
|
9703
9707
|
name: "Eliana",
|
|
9704
9708
|
category: "testimonials",
|
|
@@ -9711,8 +9715,8 @@ type TestimonialsSettings = {
|
|
|
9711
9715
|
width: 750,
|
|
9712
9716
|
height: 300
|
|
9713
9717
|
},
|
|
9714
|
-
schema:
|
|
9715
|
-
sourceCode:
|
|
9718
|
+
schema: os,
|
|
9719
|
+
sourceCode: ns,
|
|
9716
9720
|
assetsPaths: {
|
|
9717
9721
|
content: [{ path: "logo.url", placeholderEnabled: !0 }],
|
|
9718
9722
|
parameters: []
|
|
@@ -9722,7 +9726,7 @@ type TestimonialsSettings = {
|
|
|
9722
9726
|
parameters: [{ path: "styles.text.fontSettings" }, { path: "styles.caption.fontSettings" }]
|
|
9723
9727
|
}
|
|
9724
9728
|
};
|
|
9725
|
-
function
|
|
9729
|
+
function is(e) {
|
|
9726
9730
|
return `
|
|
9727
9731
|
.${e}-container {
|
|
9728
9732
|
position: relative;
|
|
@@ -9746,7 +9750,7 @@ function os(e) {
|
|
|
9746
9750
|
}
|
|
9747
9751
|
|
|
9748
9752
|
.${e}-wrapper-autoplay-off {
|
|
9749
|
-
|
|
9753
|
+
display: flow-root;
|
|
9750
9754
|
}
|
|
9751
9755
|
|
|
9752
9756
|
.${e}-fade-stack {
|
|
@@ -9853,7 +9857,7 @@ function os(e) {
|
|
|
9853
9857
|
}
|
|
9854
9858
|
`;
|
|
9855
9859
|
}
|
|
9856
|
-
const
|
|
9860
|
+
const as = ({ settings: e, content: t, isEditor: n, isPreviewMode: o }) => {
|
|
9857
9861
|
const { prefix: r } = fn(), a = t || [], { autoplay: i, delay: c, align: s, width: d, imageMarginTop: l, textMarginTop: _, captionMarginTop: S, imageWidth: m, imageHeight: p, controlsWidth: u, controlsColor: x, controlsHoverColor: h } = e, y = i === "on" && !o, [$, D] = pe(0), [R, T] = pe(null), [b, C] = pe(!1), k = Ce(null), O = Qe(() => {
|
|
9858
9862
|
switch (s) {
|
|
9859
9863
|
case "center":
|
|
@@ -9999,7 +10003,7 @@ const rs = ({ settings: e, content: t, isEditor: n, isPreviewMode: o }) => {
|
|
|
9999
10003
|
const q = A.current;
|
|
10000
10004
|
if (!q) return;
|
|
10001
10005
|
const me = () => {
|
|
10002
|
-
|
|
10006
|
+
Oo(q, de);
|
|
10003
10007
|
};
|
|
10004
10008
|
me();
|
|
10005
10009
|
const H = new ResizeObserver(me);
|
|
@@ -10009,7 +10013,7 @@ const rs = ({ settings: e, content: t, isEditor: n, isPreviewMode: o }) => {
|
|
|
10009
10013
|
}, [L, de, t]), !W) return /* @__PURE__ */ f(tt, {});
|
|
10010
10014
|
const fe = L ? { textMinHeightPx: E, captionMinHeightPx: P } : void 0;
|
|
10011
10015
|
return /* @__PURE__ */ f(tt, { children: /* @__PURE__ */ ge("div", { className: `${r}-container`, children: [
|
|
10012
|
-
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html:
|
|
10016
|
+
/* @__PURE__ */ f("style", { dangerouslySetInnerHTML: { __html: is(r) } }),
|
|
10013
10017
|
/* @__PURE__ */ ge(
|
|
10014
10018
|
"div",
|
|
10015
10019
|
{
|
|
@@ -10104,7 +10108,7 @@ const rs = ({ settings: e, content: t, isEditor: n, isPreviewMode: o }) => {
|
|
|
10104
10108
|
)
|
|
10105
10109
|
] })
|
|
10106
10110
|
] }) });
|
|
10107
|
-
},
|
|
10111
|
+
}, ls = `import cn from 'classnames';
|
|
10108
10112
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
10109
10113
|
import { CommonComponentProps } from '../props';
|
|
10110
10114
|
import { RichTextRenderer } from '../helpers/RichTextRenderer/RichTextRenderer';
|
|
@@ -10138,7 +10142,7 @@ function getCSS(P: string): string {
|
|
|
10138
10142
|
}
|
|
10139
10143
|
|
|
10140
10144
|
.\${P}-wrapper-autoplay-off {
|
|
10141
|
-
|
|
10145
|
+
display: flow-root;
|
|
10142
10146
|
}
|
|
10143
10147
|
|
|
10144
10148
|
.\${P}-fade-stack {
|
|
@@ -10600,9 +10604,9 @@ type TestimonialsSettings = {
|
|
|
10600
10604
|
icon?: string | null;
|
|
10601
10605
|
};
|
|
10602
10606
|
};
|
|
10603
|
-
`,
|
|
10607
|
+
`, ss = "data:image/svg+xml," + encodeURIComponent(
|
|
10604
10608
|
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 18" width="10" height="18"><path fill="#000000" fill-rule="evenodd" 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" transform="translate(5, 9) rotate(-90) translate(-5, -9)"/></svg>'
|
|
10605
|
-
),
|
|
10609
|
+
), Ho = {
|
|
10606
10610
|
fontSettings: {
|
|
10607
10611
|
type: "object",
|
|
10608
10612
|
scope: "common",
|
|
@@ -10612,7 +10616,7 @@ type TestimonialsSettings = {
|
|
|
10612
10616
|
fontStyle: { type: "string", scope: "common" }
|
|
10613
10617
|
}
|
|
10614
10618
|
}
|
|
10615
|
-
},
|
|
10619
|
+
}, cs = {
|
|
10616
10620
|
type: "object",
|
|
10617
10621
|
version: 1,
|
|
10618
10622
|
settings: {
|
|
@@ -10751,7 +10755,7 @@ type TestimonialsSettings = {
|
|
|
10751
10755
|
display: { type: "font-family-select" }
|
|
10752
10756
|
},
|
|
10753
10757
|
captionFontSettings: {
|
|
10754
|
-
...
|
|
10758
|
+
...Ho.fontSettings,
|
|
10755
10759
|
scope: "common",
|
|
10756
10760
|
title: "",
|
|
10757
10761
|
display: { type: "font-settings-weight" }
|
|
@@ -10806,7 +10810,7 @@ type TestimonialsSettings = {
|
|
|
10806
10810
|
display: { type: "font-family-select" }
|
|
10807
10811
|
},
|
|
10808
10812
|
textFontSettings: {
|
|
10809
|
-
...
|
|
10813
|
+
...Ho.fontSettings,
|
|
10810
10814
|
scope: "common",
|
|
10811
10815
|
title: "",
|
|
10812
10816
|
display: { type: "font-settings-weight" }
|
|
@@ -10859,7 +10863,7 @@ type TestimonialsSettings = {
|
|
|
10859
10863
|
autoplay: "off",
|
|
10860
10864
|
controls: {
|
|
10861
10865
|
mode: "Off",
|
|
10862
|
-
icon:
|
|
10866
|
+
icon: ss
|
|
10863
10867
|
},
|
|
10864
10868
|
controlsColor: "#000000",
|
|
10865
10869
|
controlsHoverColor: "#EABC01",
|
|
@@ -10941,7 +10945,7 @@ type TestimonialsSettings = {
|
|
|
10941
10945
|
panels: [
|
|
10942
10946
|
{
|
|
10943
10947
|
id: "general",
|
|
10944
|
-
icon: "
|
|
10948
|
+
icon: "settings",
|
|
10945
10949
|
title: "General",
|
|
10946
10950
|
tooltip: "General Settings",
|
|
10947
10951
|
layout: [
|
|
@@ -11065,8 +11069,8 @@ type TestimonialsSettings = {
|
|
|
11065
11069
|
}
|
|
11066
11070
|
]
|
|
11067
11071
|
}
|
|
11068
|
-
},
|
|
11069
|
-
element:
|
|
11072
|
+
}, ps = {
|
|
11073
|
+
element: as,
|
|
11070
11074
|
id: "testimonial-single",
|
|
11071
11075
|
name: "Clara",
|
|
11072
11076
|
category: "testimonials",
|
|
@@ -11079,8 +11083,8 @@ type TestimonialsSettings = {
|
|
|
11079
11083
|
width: 700,
|
|
11080
11084
|
height: 300
|
|
11081
11085
|
},
|
|
11082
|
-
schema:
|
|
11083
|
-
sourceCode:
|
|
11086
|
+
schema: cs,
|
|
11087
|
+
sourceCode: ls,
|
|
11084
11088
|
assetsPaths: {
|
|
11085
11089
|
content: [{ path: "image.url", placeholderEnabled: !0 }],
|
|
11086
11090
|
parameters: [{ path: "settings.controls.icon" }]
|
|
@@ -11089,16 +11093,16 @@ type TestimonialsSettings = {
|
|
|
11089
11093
|
content: [],
|
|
11090
11094
|
parameters: [{ path: "styles.text.fontSettings" }, { path: "styles.caption.fontSettings" }]
|
|
11091
11095
|
}
|
|
11092
|
-
},
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11096
|
+
}, vs = [
|
|
11097
|
+
Oa,
|
|
11098
|
+
Ua,
|
|
11099
|
+
Ml,
|
|
11100
|
+
Dl,
|
|
11101
|
+
Ql,
|
|
11102
|
+
rs,
|
|
11103
|
+
ps
|
|
11100
11104
|
];
|
|
11101
11105
|
export {
|
|
11102
|
-
|
|
11103
|
-
|
|
11106
|
+
vs as components,
|
|
11107
|
+
ys as isSchemaV1
|
|
11104
11108
|
};
|