@cntrl-site/components 1.0.12-alpha.8 → 1.0.12-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -25
- package/dist/index.mjs +800 -729
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as u, Fragment as le, jsxs as st } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import Ue, { useState as at, useEffect as Wt, useRef as St, useCallback as me, useMemo as Mt, useLayoutEffect as ne } from "react";
|
|
3
3
|
import Et from "classnames";
|
|
4
|
-
import { s as
|
|
4
|
+
import { s as W, u as Ze, b as mr, g as ar, r as ci } from "./readTestimonialTextMeasure-B1FI-93F.mjs";
|
|
5
5
|
import { createPortal as di } from "react-dom";
|
|
6
6
|
function gu(t) {
|
|
7
7
|
return t.type === "object" && t.version === 1;
|
|
8
8
|
}
|
|
9
|
-
const sa = "ControlSlider-module__wrapper___sHEkd", ca = "ControlSlider-module__hoverArrow___A-dOH", da = "ControlSlider-module__sliderItem___QQSkR", ua = "ControlSlider-module__sliderImage___9hRl-", pa = "ControlSlider-module__arrow___05ghY", ma = "ControlSlider-module__arrowVertical___tBfVN", ga = "ControlSlider-module__nextArrow___-30Yc", ha = "ControlSlider-module__arrowInner___aEra3", fa = "ControlSlider-module__arrowIcon___S4ztF", ya = "ControlSlider-module__arrowImg___2dwJW", va = "ControlSlider-module__mirror___brd6U", ba = "ControlSlider-module__pagination___bicLF", xa = "ControlSlider-module__paginationInner___bT-P-", Ca = "ControlSlider-module__paginationVertical___zYqKw", Sa = "ControlSlider-module__paginationItem___nTRbk", wa = "ControlSlider-module__dot___p1Qun", $a = "ControlSlider-module__activeDot___LHFaj", Ta = "ControlSlider-module__paginationInsideBottom___R3FWn", La = "ControlSlider-module__paginationInsideTop___V-qb-", Ea = "ControlSlider-module__paginationOutsideBottom___14w8D", Pa = "ControlSlider-module__paginationOutsideTop___SCLqB", _a = "ControlSlider-module__paginationInsideLeft___yOBRZ", Aa = "ControlSlider-module__paginationInsideRight___Rtt3o",
|
|
9
|
+
const sa = "ControlSlider-module__wrapper___sHEkd", ca = "ControlSlider-module__hoverArrow___A-dOH", da = "ControlSlider-module__sliderItem___QQSkR", ua = "ControlSlider-module__sliderImage___9hRl-", pa = "ControlSlider-module__arrow___05ghY", ma = "ControlSlider-module__arrowVertical___tBfVN", ga = "ControlSlider-module__nextArrow___-30Yc", ha = "ControlSlider-module__arrowInner___aEra3", fa = "ControlSlider-module__arrowIcon___S4ztF", ya = "ControlSlider-module__arrowImg___2dwJW", va = "ControlSlider-module__mirror___brd6U", ba = "ControlSlider-module__pagination___bicLF", xa = "ControlSlider-module__paginationInner___bT-P-", Ca = "ControlSlider-module__paginationVertical___zYqKw", Sa = "ControlSlider-module__paginationItem___nTRbk", wa = "ControlSlider-module__dot___p1Qun", $a = "ControlSlider-module__activeDot___LHFaj", Ta = "ControlSlider-module__paginationInsideBottom___R3FWn", La = "ControlSlider-module__paginationInsideTop___V-qb-", Ea = "ControlSlider-module__paginationOutsideBottom___14w8D", Pa = "ControlSlider-module__paginationOutsideTop___SCLqB", _a = "ControlSlider-module__paginationInsideLeft___yOBRZ", Aa = "ControlSlider-module__paginationInsideRight___Rtt3o", Wa = "ControlSlider-module__paginationOutsideLeft___lahaw", Ia = "ControlSlider-module__paginationOutsideRight___EtuQa", Ra = "ControlSlider-module__imgWrapper___UjEgB", ka = "ControlSlider-module__captionBlock___dJ6-j", Fa = "ControlSlider-module__captionTextWrapper___HFlpf", Ma = "ControlSlider-module__captionText___uGBVc", Ha = "ControlSlider-module__active___WZK4G", Na = "ControlSlider-module__withPointerEvents___t-18M", Ba = "ControlSlider-module__topLeftAlignment___zjnGM", Oa = "ControlSlider-module__topCenterAlignment___gD1xW", Da = "ControlSlider-module__topRightAlignment___NMapS", za = "ControlSlider-module__middleLeftAlignment___OnUrY", Va = "ControlSlider-module__middleCenterAlignment___Tdkl0", Ka = "ControlSlider-module__middleRightAlignment___wEbfX", ja = "ControlSlider-module__bottomLeftAlignment___cTP2-", qa = "ControlSlider-module__bottomCenterAlignment___c54fB", Ua = "ControlSlider-module__bottomRightAlignment___kEwrz", Ga = "ControlSlider-module__clickOverlay___DZA28", Ya = "ControlSlider-module__contain___pLyq7", Xa = "ControlSlider-module__cover___KdDat", it = {
|
|
10
10
|
wrapper: sa,
|
|
11
11
|
hoverArrow: ca,
|
|
12
12
|
sliderItem: da,
|
|
@@ -30,9 +30,9 @@ const sa = "ControlSlider-module__wrapper___sHEkd", ca = "ControlSlider-module__
|
|
|
30
30
|
paginationOutsideTop: Pa,
|
|
31
31
|
paginationInsideLeft: _a,
|
|
32
32
|
paginationInsideRight: Aa,
|
|
33
|
-
paginationOutsideLeft:
|
|
34
|
-
paginationOutsideRight:
|
|
35
|
-
imgWrapper:
|
|
33
|
+
paginationOutsideLeft: Wa,
|
|
34
|
+
paginationOutsideRight: Ia,
|
|
35
|
+
imgWrapper: Ra,
|
|
36
36
|
captionBlock: ka,
|
|
37
37
|
captionTextWrapper: Fa,
|
|
38
38
|
captionText: Ma,
|
|
@@ -60,14 +60,14 @@ function Za(t, e) {
|
|
|
60
60
|
function Ja(t, e, n) {
|
|
61
61
|
return e && Za(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
62
62
|
}
|
|
63
|
-
var Lo = "(prefers-reduced-motion: reduce)",
|
|
64
|
-
CREATED:
|
|
63
|
+
var Lo = "(prefers-reduced-motion: reduce)", on = 1, Qa = 2, sn = 3, gn = 4, kn = 5, Qn = 6, lr = 7, tl = {
|
|
64
|
+
CREATED: on,
|
|
65
65
|
MOUNTED: Qa,
|
|
66
|
-
IDLE:
|
|
67
|
-
MOVING:
|
|
68
|
-
SCROLLING:
|
|
69
|
-
DRAGGING:
|
|
70
|
-
DESTROYED:
|
|
66
|
+
IDLE: sn,
|
|
67
|
+
MOVING: gn,
|
|
68
|
+
SCROLLING: kn,
|
|
69
|
+
DRAGGING: Qn,
|
|
70
|
+
DESTROYED: lr
|
|
71
71
|
};
|
|
72
72
|
function _e(t) {
|
|
73
73
|
t.length = 0;
|
|
@@ -83,13 +83,13 @@ var ui = setTimeout, Br = function() {
|
|
|
83
83
|
function Eo(t) {
|
|
84
84
|
return requestAnimationFrame(t);
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function gr(t, e) {
|
|
87
87
|
return typeof e === t;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return !Xr(t) &&
|
|
89
|
+
function wn(t) {
|
|
90
|
+
return !Xr(t) && gr("object", t);
|
|
91
91
|
}
|
|
92
|
-
var Yr = Array.isArray, pi = Ft(
|
|
92
|
+
var Yr = Array.isArray, pi = Ft(gr, "function"), Me = Ft(gr, "string"), Fn = Ft(gr, "undefined");
|
|
93
93
|
function Xr(t) {
|
|
94
94
|
return t === null;
|
|
95
95
|
}
|
|
@@ -100,17 +100,17 @@ function mi(t) {
|
|
|
100
100
|
return !1;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Mn(t) {
|
|
104
104
|
return Yr(t) ? t : [t];
|
|
105
105
|
}
|
|
106
106
|
function ce(t, e) {
|
|
107
|
-
|
|
107
|
+
Mn(t).forEach(e);
|
|
108
108
|
}
|
|
109
109
|
function Zr(t, e) {
|
|
110
110
|
return t.indexOf(e) > -1;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return t.push.apply(t,
|
|
112
|
+
function tr(t, e) {
|
|
113
|
+
return t.push.apply(t, Mn(e)), t;
|
|
114
114
|
}
|
|
115
115
|
function Te(t, e, n) {
|
|
116
116
|
t && ce(e, function(r) {
|
|
@@ -120,7 +120,7 @@ function Te(t, e, n) {
|
|
|
120
120
|
function xe(t, e) {
|
|
121
121
|
Te(t, Me(e) ? e.split(" ") : e, !0);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Hn(t, e) {
|
|
124
124
|
ce(e, t.appendChild.bind(t));
|
|
125
125
|
}
|
|
126
126
|
function Jr(t, e) {
|
|
@@ -129,40 +129,40 @@ function Jr(t, e) {
|
|
|
129
129
|
r && r.insertBefore(n, e);
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function $n(t, e) {
|
|
133
133
|
return mi(t) && (t.msMatchesSelector || t.matches).call(t, e);
|
|
134
134
|
}
|
|
135
135
|
function gi(t, e) {
|
|
136
136
|
var n = t ? Be(t.children) : [];
|
|
137
137
|
return e ? n.filter(function(r) {
|
|
138
|
-
return
|
|
138
|
+
return $n(r, e);
|
|
139
139
|
}) : n;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Nn(t, e) {
|
|
142
142
|
return e ? gi(t, e)[0] : t.firstElementChild;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
return t && (n ?
|
|
144
|
+
var Tn = Object.keys;
|
|
145
|
+
function Ge(t, e, n) {
|
|
146
|
+
return t && (n ? Tn(t).reverse() : Tn(t)).forEach(function(r) {
|
|
147
147
|
r !== "__proto__" && e(t[r], r);
|
|
148
148
|
}), t;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ln(t) {
|
|
151
151
|
return Be(arguments, 1).forEach(function(e) {
|
|
152
|
-
|
|
152
|
+
Ge(e, function(n, r) {
|
|
153
153
|
t[r] = e[r];
|
|
154
154
|
});
|
|
155
155
|
}), t;
|
|
156
156
|
}
|
|
157
157
|
function ke(t) {
|
|
158
158
|
return Be(arguments, 1).forEach(function(e) {
|
|
159
|
-
|
|
160
|
-
Yr(n) ? t[r] = n.slice() :
|
|
159
|
+
Ge(e, function(n, r) {
|
|
160
|
+
Yr(n) ? t[r] = n.slice() : wn(n) ? t[r] = ke({}, wn(t[r]) ? t[r] : {}, n) : t[r] = n;
|
|
161
161
|
});
|
|
162
162
|
}), t;
|
|
163
163
|
}
|
|
164
164
|
function Po(t, e) {
|
|
165
|
-
ce(e ||
|
|
165
|
+
ce(e || Tn(t), function(n) {
|
|
166
166
|
delete t[n];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -174,22 +174,22 @@ function Ce(t, e) {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
function ft(t, e, n) {
|
|
177
|
-
|
|
177
|
+
wn(e) ? Ge(e, function(r, o) {
|
|
178
178
|
ft(t, o, r);
|
|
179
179
|
}) : ce(t, function(r) {
|
|
180
180
|
Xr(n) || n === "" ? Ce(r, e) : r.setAttribute(e, String(n));
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function an(t, e, n) {
|
|
184
184
|
var r = document.createElement(t);
|
|
185
|
-
return e && (Me(e) ? xe(r, e) : ft(r, e)), n &&
|
|
185
|
+
return e && (Me(e) ? xe(r, e) : ft(r, e)), n && Hn(n, r), r;
|
|
186
186
|
}
|
|
187
187
|
function pe(t, e, n) {
|
|
188
|
-
if (
|
|
188
|
+
if (Fn(n))
|
|
189
189
|
return getComputedStyle(t)[e];
|
|
190
190
|
Xr(n) || (t.style[e] = "" + n);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function En(t, e) {
|
|
193
193
|
pe(t, "display", e);
|
|
194
194
|
}
|
|
195
195
|
function hi(t) {
|
|
@@ -206,13 +206,13 @@ function _o(t, e) {
|
|
|
206
206
|
function ie(t) {
|
|
207
207
|
return t.getBoundingClientRect();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ye(t) {
|
|
210
210
|
ce(t, function(e) {
|
|
211
211
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
function fi(t) {
|
|
215
|
-
return
|
|
215
|
+
return Nn(new DOMParser().parseFromString(t, "text/html").body);
|
|
216
216
|
}
|
|
217
217
|
function $e(t, e) {
|
|
218
218
|
t.preventDefault(), e && (t.stopPropagation(), t.stopImmediatePropagation());
|
|
@@ -232,22 +232,22 @@ function Or(t) {
|
|
|
232
232
|
function Ve(t) {
|
|
233
233
|
return Me(t) ? t : t ? t + "px" : "";
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
function
|
|
235
|
+
var Bn = "splide", to = "data-" + Bn;
|
|
236
|
+
function Cn(t, e) {
|
|
237
237
|
if (!t)
|
|
238
|
-
throw new Error("[" +
|
|
238
|
+
throw new Error("[" + Bn + "] " + (e || ""));
|
|
239
239
|
}
|
|
240
|
-
var He = Math.min,
|
|
240
|
+
var He = Math.min, sr = Math.max, cr = Math.floor, Pn = Math.ceil, Jt = Math.abs;
|
|
241
241
|
function vi(t, e, n) {
|
|
242
242
|
return Jt(t - e) < n;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
var o = He(e, n), l =
|
|
244
|
+
function er(t, e, n, r) {
|
|
245
|
+
var o = He(e, n), l = sr(e, n);
|
|
246
246
|
return r ? o < t && t < l : o <= t && t <= l;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var r = He(e, n), o =
|
|
250
|
-
return He(
|
|
248
|
+
function en(t, e, n) {
|
|
249
|
+
var r = He(e, n), o = sr(e, n);
|
|
250
|
+
return He(sr(r, t), o);
|
|
251
251
|
}
|
|
252
252
|
function Dr(t) {
|
|
253
253
|
return +(t > 0) - +(t < 0);
|
|
@@ -308,25 +308,25 @@ function bi() {
|
|
|
308
308
|
destroy: l
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
var Oe = "mounted", Vr = "ready", Ae = "move",
|
|
311
|
+
var Oe = "mounted", Vr = "ready", Ae = "move", hn = "moved", no = "click", xi = "active", Ci = "inactive", Si = "visible", wi = "hidden", Vt = "refresh", Yt = "updated", cn = "resize", hr = "resized", $i = "drag", Ti = "dragging", Li = "dragged", fr = "scroll", Je = "scrolled", nl = "overflow", ro = "destroy", Ei = "arrows:mounted", Pi = "arrows:updated", _i = "pagination:mounted", Ai = "pagination:updated", oo = "navigation:mounted", io = "autoplay:play", Wi = "autoplay:playing", ao = "autoplay:pause", lo = "lazyload:loaded", Ii = "sk", Ri = "sh", dr = "ei";
|
|
312
312
|
function Nt(t) {
|
|
313
313
|
var e = t ? t.event.bus : document.createDocumentFragment(), n = bi();
|
|
314
314
|
function r(l, i) {
|
|
315
|
-
n.bind(e,
|
|
315
|
+
n.bind(e, Mn(l).join(" "), function(a) {
|
|
316
316
|
i.apply(i, Yr(a.detail) ? a.detail : []);
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
function o(l) {
|
|
320
320
|
n.dispatch(e, l, Be(arguments, 1));
|
|
321
321
|
}
|
|
322
|
-
return t && t.event.on(ro, n.destroy),
|
|
322
|
+
return t && t.event.on(ro, n.destroy), Ln(n, {
|
|
323
323
|
bus: e,
|
|
324
324
|
on: r,
|
|
325
325
|
off: Ft(n.unbind, e),
|
|
326
326
|
emit: o
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function yr(t, e, n, r) {
|
|
330
330
|
var o = Date.now, l, i = 0, a, s = !0, d = 0;
|
|
331
331
|
function c() {
|
|
332
332
|
if (!s) {
|
|
@@ -368,7 +368,7 @@ function rl(t) {
|
|
|
368
368
|
e = o;
|
|
369
369
|
}
|
|
370
370
|
function r(o) {
|
|
371
|
-
return Zr(
|
|
371
|
+
return Zr(Mn(o), e);
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
set: n,
|
|
@@ -376,7 +376,7 @@ function rl(t) {
|
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
function ol(t, e) {
|
|
379
|
-
var n =
|
|
379
|
+
var n = yr(0, t, null, 1);
|
|
380
380
|
return function() {
|
|
381
381
|
n.isPaused() && n.start();
|
|
382
382
|
};
|
|
@@ -385,7 +385,7 @@ function il(t, e, n) {
|
|
|
385
385
|
var r = t.state, o = n.breakpoints || {}, l = n.reducedMotion || {}, i = bi(), a = [];
|
|
386
386
|
function s() {
|
|
387
387
|
var p = n.mediaQuery === "min";
|
|
388
|
-
|
|
388
|
+
Tn(o).sort(function(m, S) {
|
|
389
389
|
return p ? +m - +S : +S - +m;
|
|
390
390
|
}).forEach(function(m) {
|
|
391
391
|
c(o[m], "(" + (p ? "min" : "max") + "-width:" + m + "px)");
|
|
@@ -399,16 +399,16 @@ function il(t, e, n) {
|
|
|
399
399
|
i.bind(S, "change", $), a.push([p, S]);
|
|
400
400
|
}
|
|
401
401
|
function $() {
|
|
402
|
-
var p = r.is(
|
|
402
|
+
var p = r.is(lr), m = n.direction, S = a.reduce(function(y, x) {
|
|
403
403
|
return ke(y, x[1].matches ? x[0] : {});
|
|
404
404
|
}, {});
|
|
405
405
|
Po(n), h(S), n.destroy ? t.destroy(n.destroy === "completely") : p ? (d(!0), t.mount()) : m !== n.direction && t.refresh();
|
|
406
406
|
}
|
|
407
407
|
function g(p) {
|
|
408
|
-
matchMedia(Lo).matches && (p ? ke(n, l) : Po(n,
|
|
408
|
+
matchMedia(Lo).matches && (p ? ke(n, l) : Po(n, Tn(l)));
|
|
409
409
|
}
|
|
410
410
|
function h(p, m, S) {
|
|
411
|
-
ke(n, p), m && ke(Object.getPrototypeOf(n), p), (S || !r.is(
|
|
411
|
+
ke(n, p), m && ke(Object.getPrototypeOf(n), p), (S || !r.is(on)) && t.emit(Yt, n);
|
|
412
412
|
}
|
|
413
413
|
return {
|
|
414
414
|
setup: s,
|
|
@@ -417,52 +417,52 @@ function il(t, e, n) {
|
|
|
417
417
|
set: h
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
var
|
|
420
|
+
var vr = "Arrow", br = vr + "Left", xr = vr + "Right", ki = vr + "Up", Fi = vr + "Down", Wo = "rtl", Cr = "ttb", Pr = {
|
|
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: [ki,
|
|
428
|
-
ArrowRight: [Fi,
|
|
427
|
+
ArrowLeft: [ki, xr],
|
|
428
|
+
ArrowRight: [Fi, br]
|
|
429
429
|
};
|
|
430
430
|
function al(t, e, n) {
|
|
431
431
|
function r(l, i, a) {
|
|
432
432
|
a = a || n.direction;
|
|
433
|
-
var s = a ===
|
|
434
|
-
return
|
|
435
|
-
var $ =
|
|
433
|
+
var s = a === Wo && !i ? 1 : a === Cr ? 0 : -1;
|
|
434
|
+
return Pr[l] && Pr[l][s] || l.replace(/width|left|right/i, function(d, c) {
|
|
435
|
+
var $ = Pr[d.toLowerCase()][s] || d;
|
|
436
436
|
return c > 0 ? $.charAt(0).toUpperCase() + $.slice(1) : $;
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function o(l) {
|
|
440
|
-
return l * (n.direction ===
|
|
440
|
+
return l * (n.direction === Wo ? 1 : -1);
|
|
441
441
|
}
|
|
442
442
|
return {
|
|
443
443
|
resolve: r,
|
|
444
444
|
orient: o
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
var Ee = "role",
|
|
448
|
-
slide:
|
|
447
|
+
var Ee = "role", ln = "tabindex", ll = "disabled", he = "aria-", On = he + "controls", Mi = he + "current", Io = he + "selected", ae = he + "label", so = he + "labelledby", Hi = he + "hidden", co = he + "orientation", _n = he + "roledescription", Ro = he + "live", ko = he + "busy", Fo = he + "atomic", uo = [Ee, ln, ll, On, Mi, ae, so, Hi, co, _n], Se = Bn + "__", De = "is-", _r = Bn, Mo = Se + "track", sl = Se + "list", Sr = Se + "slide", Ni = Sr + "--clone", cl = Sr + "__container", po = Se + "arrows", wr = Se + "arrow", Bi = wr + "--prev", Oi = wr + "--next", $r = Se + "pagination", Di = $r + "__page", dl = Se + "progress", ul = dl + "__bar", pl = Se + "toggle", ml = Se + "spinner", gl = Se + "sr", hl = De + "initialized", Xe = De + "active", zi = De + "prev", Vi = De + "next", Kr = De + "visible", jr = De + "loading", Ki = De + "focus-in", ji = De + "overflow", fl = [Xe, Kr, zi, Vi, jr, Ki, ji], yl = {
|
|
448
|
+
slide: Sr,
|
|
449
449
|
clone: Ni,
|
|
450
450
|
arrows: po,
|
|
451
|
-
arrow:
|
|
451
|
+
arrow: wr,
|
|
452
452
|
prev: Bi,
|
|
453
453
|
next: Oi,
|
|
454
|
-
pagination:
|
|
454
|
+
pagination: $r,
|
|
455
455
|
page: Di,
|
|
456
456
|
spinner: ml
|
|
457
457
|
};
|
|
458
458
|
function vl(t, e) {
|
|
459
459
|
if (pi(t.closest))
|
|
460
460
|
return t.closest(e);
|
|
461
|
-
for (var n = t; n && n.nodeType === 1 &&
|
|
461
|
+
for (var n = t; n && n.nodeType === 1 && !$n(n, e); )
|
|
462
462
|
n = n.parentElement;
|
|
463
463
|
return n;
|
|
464
464
|
}
|
|
465
|
-
var bl = 5, Ho = 200, qi = "touchstart mousedown",
|
|
465
|
+
var bl = 5, Ho = 200, qi = "touchstart mousedown", Ar = "touchmove mousemove", Wr = "touchend touchcancel mouseup click";
|
|
466
466
|
function xl(t, e, n) {
|
|
467
467
|
var r = Nt(t), o = r.on, l = r.bind, i = t.root, a = n.i18n, s = {}, d = [], c = [], $ = [], g, h, p;
|
|
468
468
|
function m() {
|
|
@@ -479,22 +479,22 @@ function xl(t, e, n) {
|
|
|
479
479
|
}
|
|
480
480
|
function y(b) {
|
|
481
481
|
var E = uo.concat("style");
|
|
482
|
-
_e(d), Le(i, c), Le(g, $), Ce([g, h], E), Ce(i, b ? E : ["style",
|
|
482
|
+
_e(d), Le(i, c), Le(g, $), Ce([g, h], E), Ce(i, b ? E : ["style", _n]);
|
|
483
483
|
}
|
|
484
484
|
function x() {
|
|
485
|
-
Le(i, c), Le(g, $), c = P(
|
|
485
|
+
Le(i, c), Le(g, $), c = P(_r), $ = P(Mo), xe(i, c), xe(g, $), ft(i, ae, n.label), ft(i, so, n.labelledby);
|
|
486
486
|
}
|
|
487
487
|
function f() {
|
|
488
|
-
g = M("." + Mo), h =
|
|
488
|
+
g = M("." + Mo), h = Nn(g, "." + sl), Cn(g && h, "A track/list element is missing."), tr(d, gi(h, "." + Sr + ":not(." + Ni + ")")), Ge({
|
|
489
489
|
arrows: po,
|
|
490
|
-
pagination:
|
|
490
|
+
pagination: $r,
|
|
491
491
|
prev: Bi,
|
|
492
492
|
next: Oi,
|
|
493
493
|
bar: ul,
|
|
494
494
|
toggle: pl
|
|
495
495
|
}, function(b, E) {
|
|
496
496
|
s[E] = M("." + b);
|
|
497
|
-
}),
|
|
497
|
+
}), Ln(s, {
|
|
498
498
|
root: i,
|
|
499
499
|
track: g,
|
|
500
500
|
list: h,
|
|
@@ -502,30 +502,30 @@ function xl(t, e, n) {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
function F() {
|
|
505
|
-
var b = i.id || el(
|
|
506
|
-
i.id = b, g.id = g.id || b + "-track", h.id = h.id || b + "-list", !ge(i, Ee) && i.tagName !== "SECTION" && E && ft(i, Ee, E), ft(i,
|
|
505
|
+
var b = i.id || el(Bn), E = n.role;
|
|
506
|
+
i.id = b, g.id = g.id || b + "-track", h.id = h.id || b + "-list", !ge(i, Ee) && i.tagName !== "SECTION" && E && ft(i, Ee, E), ft(i, _n, a.carousel), ft(h, Ee, "presentation");
|
|
507
507
|
}
|
|
508
508
|
function M(b) {
|
|
509
509
|
var E = yi(i, b);
|
|
510
|
-
return E && vl(E, "." +
|
|
510
|
+
return E && vl(E, "." + _r) === i ? E : void 0;
|
|
511
511
|
}
|
|
512
512
|
function P(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 === _r && Xe];
|
|
514
514
|
}
|
|
515
|
-
return
|
|
515
|
+
return Ln(s, {
|
|
516
516
|
setup: m,
|
|
517
517
|
mount: S,
|
|
518
518
|
destroy: y
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
var
|
|
521
|
+
var dn = "slide", fn = "loop", Dn = "fade";
|
|
522
522
|
function Cl(t, e, n, r) {
|
|
523
|
-
var o = Nt(t), l = o.on, i = o.emit, a = o.bind, s = t.Components, d = t.root, c = t.options, $ = c.isNavigation, g = c.updateOnMove, h = c.i18n, p = c.pagination, m = c.slideFocus, S = s.Direction.resolve, y = ge(r, "style"), x = ge(r, ae), f = n > -1, F =
|
|
523
|
+
var o = Nt(t), l = o.on, i = o.emit, a = o.bind, s = t.Components, d = t.root, c = t.options, $ = c.isNavigation, g = c.updateOnMove, h = c.i18n, p = c.pagination, m = c.slideFocus, S = s.Direction.resolve, y = ge(r, "style"), x = ge(r, ae), f = n > -1, F = Nn(r, "." + cl), M;
|
|
524
524
|
function P() {
|
|
525
|
-
f || (r.id = d.id + "-slide" + eo(e + 1), ft(r, Ee, p ? "tabpanel" : "group"), ft(r,
|
|
525
|
+
f || (r.id = d.id + "-slide" + eo(e + 1), ft(r, Ee, p ? "tabpanel" : "group"), ft(r, _n, h.slide), ft(r, ae, x || zr(h.slideLabel, [e + 1, t.length]))), b();
|
|
526
526
|
}
|
|
527
527
|
function b() {
|
|
528
|
-
a(r, "click", Ft(i, no,
|
|
528
|
+
a(r, "click", Ft(i, no, I)), a(r, "keydown", Ft(i, Ii, I)), l([hn, Ri, Je], R), l(oo, w), g && l(Ae, _);
|
|
529
529
|
}
|
|
530
530
|
function E() {
|
|
531
531
|
M = !0, o.destroy(), Le(r, fl), Ce(r, uo), ft(r, "style", y), ft(r, ae, x || "");
|
|
@@ -535,12 +535,12 @@ function Cl(t, e, n, r) {
|
|
|
535
535
|
var H = L.splide.Components.Slides.getAt(e);
|
|
536
536
|
return H ? H.slide.id : "";
|
|
537
537
|
}).join(" ");
|
|
538
|
-
ft(r, ae, zr(h.slideX, (f ? n : e) + 1)), ft(r,
|
|
538
|
+
ft(r, ae, zr(h.slideX, (f ? n : e) + 1)), ft(r, On, k), ft(r, Ee, m ? "button" : ""), m && Ce(r, _n);
|
|
539
539
|
}
|
|
540
540
|
function _() {
|
|
541
|
-
M ||
|
|
541
|
+
M || R();
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function R() {
|
|
544
544
|
if (!M) {
|
|
545
545
|
var k = t.index;
|
|
546
546
|
O(), B(), Te(r, zi, e === k - 1), Te(r, Vi, e === k + 1);
|
|
@@ -548,11 +548,11 @@ function Cl(t, e, n, r) {
|
|
|
548
548
|
}
|
|
549
549
|
function O() {
|
|
550
550
|
var k = X();
|
|
551
|
-
k !== _o(r,
|
|
551
|
+
k !== _o(r, Xe) && (Te(r, Xe, k), ft(r, Mi, $ && k || ""), i(k ? xi : Ci, I));
|
|
552
552
|
}
|
|
553
553
|
function B() {
|
|
554
554
|
var k = v(), L = !k && (!X() || f);
|
|
555
|
-
if (t.state.is([
|
|
555
|
+
if (t.state.is([gn, kn]) || ft(r, Hi, L || ""), ft(Qr(r, c.focusableNodes || ""), ln, L ? -1 : ""), m && ft(r, ln, L ? -1 : 0), k !== _o(r, Kr) && (Te(r, Kr, k), i(k ? Si : wi, I)), !k && document.activeElement === r) {
|
|
556
556
|
var H = s.Slides.getAt(t.index);
|
|
557
557
|
H && hi(H.slide);
|
|
558
558
|
}
|
|
@@ -565,16 +565,16 @@ function Cl(t, e, n, r) {
|
|
|
565
565
|
return k === e || c.cloneStatus && k === n;
|
|
566
566
|
}
|
|
567
567
|
function v() {
|
|
568
|
-
if (t.is(
|
|
568
|
+
if (t.is(Dn))
|
|
569
569
|
return X();
|
|
570
570
|
var k = ie(s.Elements.track), L = ie(r), H = S("left", !0), Z = S("right", !0);
|
|
571
|
-
return
|
|
571
|
+
return cr(k[H]) <= Pn(L[H]) && cr(L[Z]) <= Pn(k[Z]);
|
|
572
572
|
}
|
|
573
573
|
function N(k, L) {
|
|
574
574
|
var H = Jt(k - e);
|
|
575
|
-
return !f && (c.rewind || t.is(
|
|
575
|
+
return !f && (c.rewind || t.is(fn)) && (H = He(H, t.length - H)), H <= L;
|
|
576
576
|
}
|
|
577
|
-
var
|
|
577
|
+
var I = {
|
|
578
578
|
index: e,
|
|
579
579
|
slideIndex: n,
|
|
580
580
|
slide: r,
|
|
@@ -582,11 +582,11 @@ function Cl(t, e, n, r) {
|
|
|
582
582
|
isClone: f,
|
|
583
583
|
mount: P,
|
|
584
584
|
destroy: E,
|
|
585
|
-
update:
|
|
585
|
+
update: R,
|
|
586
586
|
style: U,
|
|
587
587
|
isWithin: N
|
|
588
588
|
};
|
|
589
|
-
return
|
|
589
|
+
return I;
|
|
590
590
|
}
|
|
591
591
|
function Sl(t, e, n) {
|
|
592
592
|
var r = Nt(t), o = r.on, l = r.emit, i = r.bind, a = e.Elements, s = a.slides, d = a.list, c = [];
|
|
@@ -594,76 +594,76 @@ function Sl(t, e, n) {
|
|
|
594
594
|
g(), o(Vt, h), o(Vt, g);
|
|
595
595
|
}
|
|
596
596
|
function g() {
|
|
597
|
-
s.forEach(function(
|
|
598
|
-
m(
|
|
597
|
+
s.forEach(function(R, O) {
|
|
598
|
+
m(R, O, -1);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function h() {
|
|
602
|
-
M(function(
|
|
603
|
-
|
|
602
|
+
M(function(R) {
|
|
603
|
+
R.destroy();
|
|
604
604
|
}), _e(c);
|
|
605
605
|
}
|
|
606
606
|
function p() {
|
|
607
|
-
M(function(
|
|
608
|
-
|
|
607
|
+
M(function(R) {
|
|
608
|
+
R.update();
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
function m(
|
|
612
|
-
var U = Cl(t, O, B,
|
|
611
|
+
function m(R, O, B) {
|
|
612
|
+
var U = Cl(t, O, B, R);
|
|
613
613
|
U.mount(), c.push(U), c.sort(function(X, v) {
|
|
614
614
|
return X.index - v.index;
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
function S(
|
|
618
|
-
return
|
|
617
|
+
function S(R) {
|
|
618
|
+
return R ? P(function(O) {
|
|
619
619
|
return !O.isClone;
|
|
620
620
|
}) : c;
|
|
621
621
|
}
|
|
622
|
-
function y(
|
|
623
|
-
var O = e.Controller, B = O.toIndex(
|
|
622
|
+
function y(R) {
|
|
623
|
+
var O = e.Controller, B = O.toIndex(R), U = O.hasFocus() ? 1 : n.perPage;
|
|
624
624
|
return P(function(X) {
|
|
625
|
-
return
|
|
625
|
+
return er(X.index, B, B + U - 1);
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
|
-
function x(
|
|
629
|
-
return P(
|
|
628
|
+
function x(R) {
|
|
629
|
+
return P(R)[0];
|
|
630
630
|
}
|
|
631
|
-
function f(
|
|
632
|
-
ce(
|
|
631
|
+
function f(R, O) {
|
|
632
|
+
ce(R, function(B) {
|
|
633
633
|
if (Me(B) && (B = fi(B)), mi(B)) {
|
|
634
634
|
var U = s[O];
|
|
635
|
-
U ? Jr(B, U) :
|
|
635
|
+
U ? Jr(B, U) : Hn(d, B), xe(B, n.classes.slide), E(B, Ft(l, cn));
|
|
636
636
|
}
|
|
637
637
|
}), l(Vt);
|
|
638
638
|
}
|
|
639
|
-
function F(
|
|
640
|
-
|
|
639
|
+
function F(R) {
|
|
640
|
+
Ye(P(R).map(function(O) {
|
|
641
641
|
return O.slide;
|
|
642
642
|
})), l(Vt);
|
|
643
643
|
}
|
|
644
|
-
function M(
|
|
645
|
-
S(O).forEach(
|
|
644
|
+
function M(R, O) {
|
|
645
|
+
S(O).forEach(R);
|
|
646
646
|
}
|
|
647
|
-
function P(
|
|
648
|
-
return c.filter(pi(
|
|
649
|
-
return Me(
|
|
647
|
+
function P(R) {
|
|
648
|
+
return c.filter(pi(R) ? R : function(O) {
|
|
649
|
+
return Me(R) ? $n(O.slide, R) : Zr(Mn(R), O.index);
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
function b(
|
|
652
|
+
function b(R, O, B) {
|
|
653
653
|
M(function(U) {
|
|
654
|
-
U.style(
|
|
654
|
+
U.style(R, O, B);
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
function E(
|
|
658
|
-
var B = Qr(
|
|
657
|
+
function E(R, O) {
|
|
658
|
+
var B = Qr(R, "img"), U = B.length;
|
|
659
659
|
U ? B.forEach(function(X) {
|
|
660
660
|
i(X, "load error", function() {
|
|
661
661
|
--U || O();
|
|
662
662
|
});
|
|
663
663
|
}) : O();
|
|
664
664
|
}
|
|
665
|
-
function w(
|
|
666
|
-
return
|
|
665
|
+
function w(R) {
|
|
666
|
+
return R ? s.length : c.length;
|
|
667
667
|
}
|
|
668
668
|
function _() {
|
|
669
669
|
return c.length > n.perPage;
|
|
@@ -688,22 +688,22 @@ function Sl(t, e, n) {
|
|
|
688
688
|
function wl(t, e, n) {
|
|
689
689
|
var r = Nt(t), o = r.on, l = r.bind, i = r.emit, a = e.Slides, s = e.Direction.resolve, d = e.Elements, c = d.root, $ = d.track, g = d.list, h = a.getAt, p = a.style, m, S, y;
|
|
690
690
|
function x() {
|
|
691
|
-
f(), l(window, "resize load", ol(Ft(i,
|
|
691
|
+
f(), l(window, "resize load", ol(Ft(i, cn))), o([Yt, Vt], f), o(cn, F);
|
|
692
692
|
}
|
|
693
693
|
function f() {
|
|
694
|
-
m = n.direction ===
|
|
694
|
+
m = n.direction === Cr, pe(c, "maxWidth", Ve(n.width)), pe($, s("paddingLeft"), M(!1)), pe($, s("paddingRight"), M(!0)), F(!0);
|
|
695
695
|
}
|
|
696
|
-
function F(
|
|
696
|
+
function F(I) {
|
|
697
697
|
var k = ie(c);
|
|
698
|
-
(
|
|
698
|
+
(I || S.width !== k.width || S.height !== k.height) && (pe($, "height", P()), p(s("marginRight"), Ve(n.gap)), p("width", E()), p("height", w(), !0), S = k, i(hr), y !== (y = N()) && (Te(c, ji, y), i(nl, y)));
|
|
699
699
|
}
|
|
700
|
-
function M(
|
|
701
|
-
var k = n.padding, L = s(
|
|
702
|
-
return k && Ve(k[L] || (
|
|
700
|
+
function M(I) {
|
|
701
|
+
var k = n.padding, L = s(I ? "right" : "left");
|
|
702
|
+
return k && Ve(k[L] || (wn(k) ? 0 : k)) || "0px";
|
|
703
703
|
}
|
|
704
704
|
function P() {
|
|
705
|
-
var
|
|
706
|
-
return m && (
|
|
705
|
+
var I = "";
|
|
706
|
+
return m && (I = b(), Cn(I, "height or heightRatio is missing."), I = "calc(" + I + " - " + M(!1) + " - " + M(!0) + ")"), I;
|
|
707
707
|
}
|
|
708
708
|
function b() {
|
|
709
709
|
return Ve(n.height || ie(g).width * n.heightRatio);
|
|
@@ -715,41 +715,41 @@ function wl(t, e, n) {
|
|
|
715
715
|
return Ve(n.fixedHeight) || (m ? n.autoHeight ? null : _() : b());
|
|
716
716
|
}
|
|
717
717
|
function _() {
|
|
718
|
-
var
|
|
719
|
-
return "calc((100%" + (
|
|
718
|
+
var I = Ve(n.gap);
|
|
719
|
+
return "calc((100%" + (I && " + " + I) + ")/" + (n.perPage || 1) + (I && " - " + I) + ")";
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function R() {
|
|
722
722
|
return ie(g)[s("width")];
|
|
723
723
|
}
|
|
724
|
-
function O(
|
|
725
|
-
var L = h(
|
|
724
|
+
function O(I, k) {
|
|
725
|
+
var L = h(I || 0);
|
|
726
726
|
return L ? ie(L.slide)[s("width")] + (k ? 0 : X()) : 0;
|
|
727
727
|
}
|
|
728
|
-
function B(
|
|
729
|
-
var L = h(
|
|
728
|
+
function B(I, k) {
|
|
729
|
+
var L = h(I);
|
|
730
730
|
if (L) {
|
|
731
731
|
var H = ie(L.slide)[s("right")], Z = ie(g)[s("left")];
|
|
732
732
|
return Jt(H - Z) + (k ? 0 : X());
|
|
733
733
|
}
|
|
734
734
|
return 0;
|
|
735
735
|
}
|
|
736
|
-
function U(
|
|
737
|
-
return B(t.length - 1) - B(0) + O(0,
|
|
736
|
+
function U(I) {
|
|
737
|
+
return B(t.length - 1) - B(0) + O(0, I);
|
|
738
738
|
}
|
|
739
739
|
function X() {
|
|
740
|
-
var
|
|
741
|
-
return
|
|
740
|
+
var I = h(0);
|
|
741
|
+
return I && parseFloat(pe(I.slide, s("marginRight"))) || 0;
|
|
742
742
|
}
|
|
743
|
-
function v(
|
|
744
|
-
return parseFloat(pe($, s("padding" + (
|
|
743
|
+
function v(I) {
|
|
744
|
+
return parseFloat(pe($, s("padding" + (I ? "Right" : "Left")))) || 0;
|
|
745
745
|
}
|
|
746
746
|
function N() {
|
|
747
|
-
return t.is(
|
|
747
|
+
return t.is(Dn) || U(!0) > R();
|
|
748
748
|
}
|
|
749
749
|
return {
|
|
750
750
|
mount: x,
|
|
751
751
|
resize: F,
|
|
752
|
-
listSize:
|
|
752
|
+
listSize: R,
|
|
753
753
|
slideSize: O,
|
|
754
754
|
sliderSize: U,
|
|
755
755
|
totalSize: B,
|
|
@@ -761,13 +761,13 @@ var $l = 2;
|
|
|
761
761
|
function Tl(t, e, n) {
|
|
762
762
|
var r = Nt(t), o = r.on, l = e.Elements, i = e.Slides, a = e.Direction.resolve, s = [], d;
|
|
763
763
|
function c() {
|
|
764
|
-
o(Vt, $), o([Yt,
|
|
764
|
+
o(Vt, $), o([Yt, cn], h), (d = S()) && (p(d), e.Layout.resize(!0));
|
|
765
765
|
}
|
|
766
766
|
function $() {
|
|
767
767
|
g(), c();
|
|
768
768
|
}
|
|
769
769
|
function g() {
|
|
770
|
-
|
|
770
|
+
Ye(s), _e(s), r.destroy();
|
|
771
771
|
}
|
|
772
772
|
function h() {
|
|
773
773
|
var y = S();
|
|
@@ -777,10 +777,10 @@ function Tl(t, e, n) {
|
|
|
777
777
|
var x = i.get().slice(), f = x.length;
|
|
778
778
|
if (f) {
|
|
779
779
|
for (; x.length < y; )
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
tr(x, x);
|
|
781
|
+
tr(x.slice(-y), x.slice(0, y)).forEach(function(F, M) {
|
|
782
782
|
var P = M < y, b = m(F.slide, M);
|
|
783
|
-
P ? Jr(b, x[0].slide) :
|
|
783
|
+
P ? Jr(b, x[0].slide) : Hn(l.list, b), tr(s, b), i.register(b, M - y + (P ? 0 : f), F.index);
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -790,10 +790,10 @@ function Tl(t, e, n) {
|
|
|
790
790
|
}
|
|
791
791
|
function S() {
|
|
792
792
|
var y = n.clones;
|
|
793
|
-
if (!t.is(
|
|
793
|
+
if (!t.is(fn))
|
|
794
794
|
y = 0;
|
|
795
|
-
else if (
|
|
796
|
-
var x = n[a("fixedWidth")] && e.Layout.slideSize(0), f = x &&
|
|
795
|
+
else if (Fn(y)) {
|
|
796
|
+
var x = n[a("fixedWidth")] && e.Layout.slideSize(0), f = x && Pn(ie(l.track)[a("width")] / x);
|
|
797
797
|
y = f || n[a("autoWidth")] && t.length || n.perPage * $l;
|
|
798
798
|
}
|
|
799
799
|
return y;
|
|
@@ -806,27 +806,27 @@ function Tl(t, e, n) {
|
|
|
806
806
|
function Ll(t, e, n) {
|
|
807
807
|
var r = Nt(t), o = r.on, l = r.emit, i = t.state.set, a = e.Layout, s = a.slideSize, d = a.getPadding, c = a.totalSize, $ = a.listSize, g = a.sliderSize, h = e.Direction, p = h.resolve, m = h.orient, S = e.Elements, y = S.list, x = S.track, f;
|
|
808
808
|
function F() {
|
|
809
|
-
f = e.Transition, o([Oe,
|
|
809
|
+
f = e.Transition, o([Oe, hr, Yt, Vt], M);
|
|
810
810
|
}
|
|
811
811
|
function M() {
|
|
812
812
|
e.Controller.isBusy() || (e.Scroll.cancel(), b(t.index), e.Slides.update());
|
|
813
813
|
}
|
|
814
814
|
function P(L, H, Z, rt) {
|
|
815
|
-
L !== H &&
|
|
816
|
-
i(
|
|
815
|
+
L !== H && I(L > Z) && (R(), E(_(U(), L > Z), !0)), i(gn), l(Ae, H, Z, L), f.start(H, function() {
|
|
816
|
+
i(sn), l(hn, H, Z, L), rt && rt();
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
function b(L) {
|
|
820
820
|
E(B(L, !0));
|
|
821
821
|
}
|
|
822
822
|
function E(L, H) {
|
|
823
|
-
if (!t.is(
|
|
823
|
+
if (!t.is(Dn)) {
|
|
824
824
|
var Z = H ? L : w(L);
|
|
825
|
-
pe(y, "transform", "translate" + p("X") + "(" + Z + "px)"), L !== Z && l(
|
|
825
|
+
pe(y, "transform", "translate" + p("X") + "(" + Z + "px)"), L !== Z && l(Ri);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
function w(L) {
|
|
829
|
-
if (t.is(
|
|
829
|
+
if (t.is(fn)) {
|
|
830
830
|
var H = O(L), Z = H > e.Controller.getEnd(), rt = H < 0;
|
|
831
831
|
(rt || Z) && (L = _(L, Z));
|
|
832
832
|
}
|
|
@@ -834,9 +834,9 @@ function Ll(t, e, n) {
|
|
|
834
834
|
}
|
|
835
835
|
function _(L, H) {
|
|
836
836
|
var Z = L - N(H), rt = g();
|
|
837
|
-
return L -= m(rt * (
|
|
837
|
+
return L -= m(rt * (Pn(Jt(Z) / rt) || 1)) * (H ? 1 : -1), L;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function R() {
|
|
840
840
|
E(U(), !0), f.cancel();
|
|
841
841
|
}
|
|
842
842
|
function O(L) {
|
|
@@ -858,7 +858,7 @@ function Ll(t, e, n) {
|
|
|
858
858
|
return ie(y)[L] - ie(x)[L] + m(d(!1));
|
|
859
859
|
}
|
|
860
860
|
function X(L) {
|
|
861
|
-
return n.trimSpace && t.is(
|
|
861
|
+
return n.trimSpace && t.is(dn) && (L = en(L, 0, m(g(!0) - $()))), L;
|
|
862
862
|
}
|
|
863
863
|
function v(L) {
|
|
864
864
|
var H = n.focus;
|
|
@@ -867,12 +867,12 @@ function Ll(t, e, n) {
|
|
|
867
867
|
function N(L) {
|
|
868
868
|
return B(L ? e.Controller.getEnd() : 0, !!n.trimSpace);
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function I(L) {
|
|
871
871
|
var H = m(_(U(), L));
|
|
872
872
|
return L ? H >= 0 : H <= y[p("scrollWidth")] - ie(x)[p("width")];
|
|
873
873
|
}
|
|
874
874
|
function k(L, H) {
|
|
875
|
-
H =
|
|
875
|
+
H = Fn(H) ? U() : H;
|
|
876
876
|
var Z = L !== !0 && m(H) < m(N(!1)), rt = L !== !1 && m(H) > m(N(!0));
|
|
877
877
|
return Z || rt;
|
|
878
878
|
}
|
|
@@ -882,7 +882,7 @@ function Ll(t, e, n) {
|
|
|
882
882
|
jump: b,
|
|
883
883
|
translate: E,
|
|
884
884
|
shift: _,
|
|
885
|
-
cancel:
|
|
885
|
+
cancel: R,
|
|
886
886
|
toIndex: O,
|
|
887
887
|
toPosition: B,
|
|
888
888
|
getPosition: U,
|
|
@@ -892,19 +892,19 @@ function Ll(t, e, n) {
|
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
function El(t, e, n) {
|
|
895
|
-
var r = Nt(t), o = r.on, l = r.emit, i = e.Move, a = i.getPosition, s = i.getLimit, d = i.toPosition, c = e.Slides, $ = c.isEnough, g = c.getLength, h = n.omitEnd, p = t.is(
|
|
895
|
+
var r = Nt(t), o = r.on, l = r.emit, i = e.Move, a = i.getPosition, s = i.getLimit, d = i.toPosition, c = e.Slides, $ = c.isEnough, g = c.getLength, h = n.omitEnd, p = t.is(fn), m = t.is(dn), S = Ft(U, !1), y = Ft(U, !0), x = n.start || 0, f, F = x, M, P, b;
|
|
896
896
|
function E() {
|
|
897
|
-
w(), o([Yt, Vt,
|
|
897
|
+
w(), o([Yt, Vt, dr], w), o(hr, _);
|
|
898
898
|
}
|
|
899
899
|
function w() {
|
|
900
|
-
M = g(!0), P = n.perMove, b = n.perPage, f =
|
|
901
|
-
var D =
|
|
900
|
+
M = g(!0), P = n.perMove, b = n.perPage, f = I();
|
|
901
|
+
var D = en(x, 0, h ? f : M - 1);
|
|
902
902
|
D !== x && (x = D, i.reposition());
|
|
903
903
|
}
|
|
904
904
|
function _() {
|
|
905
|
-
f !==
|
|
905
|
+
f !== I() && l(dr);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function R(D, ot, bt) {
|
|
908
908
|
if (!ct()) {
|
|
909
909
|
var mt = B(D), wt = N(mt);
|
|
910
910
|
wt > -1 && (ot || wt !== x) && (Z(wt), i.move(mt, wt, F, bt));
|
|
@@ -922,7 +922,7 @@ function El(t, e, n) {
|
|
|
922
922
|
var bt = D.match(/([+\-<>])(\d+)?/) || [], mt = bt[1], wt = bt[2];
|
|
923
923
|
mt === "+" || mt === "-" ? ot = X(x + +("" + mt + (+wt || 1)), x) : mt === ">" ? ot = wt ? k(+wt) : S(!0) : mt === "<" && (ot = y(!0));
|
|
924
924
|
} else
|
|
925
|
-
ot = p ? D :
|
|
925
|
+
ot = p ? D : en(D, 0, f);
|
|
926
926
|
return ot;
|
|
927
927
|
}
|
|
928
928
|
function U(D, ot) {
|
|
@@ -932,37 +932,37 @@ function El(t, e, n) {
|
|
|
932
932
|
function X(D, ot, bt) {
|
|
933
933
|
if ($() || K()) {
|
|
934
934
|
var mt = v(D);
|
|
935
|
-
mt !== D && (ot = D, D = mt, bt = !1), D < 0 || D > f ? !P && (
|
|
935
|
+
mt !== D && (ot = D, D = mt, bt = !1), D < 0 || D > f ? !P && (er(0, D, ot, !0) || er(f, ot, D, !0)) ? D = k(L(D)) : p ? D = bt ? D < 0 ? -(M % b || b) : M : D : n.rewind ? D = D < 0 ? f : 0 : D = -1 : bt && D !== ot && (D = k(L(ot) + (D < ot ? -1 : 1)));
|
|
936
936
|
} else
|
|
937
937
|
D = -1;
|
|
938
938
|
return D;
|
|
939
939
|
}
|
|
940
940
|
function v(D) {
|
|
941
941
|
if (m && n.trimSpace === "move" && D !== x)
|
|
942
|
-
for (var ot = a(); ot === d(D, !0) &&
|
|
942
|
+
for (var ot = a(); ot === d(D, !0) && er(D, 0, t.length - 1, !n.rewind); )
|
|
943
943
|
D < x ? --D : ++D;
|
|
944
944
|
return D;
|
|
945
945
|
}
|
|
946
946
|
function N(D) {
|
|
947
947
|
return p ? (D + M) % M || 0 : D;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function I() {
|
|
950
950
|
for (var D = M - (K() || p && P ? 1 : b); h && D-- > 0; )
|
|
951
951
|
if (d(M - 1, !0) !== d(D, !0)) {
|
|
952
952
|
D++;
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return en(D, 0, M - 1);
|
|
956
956
|
}
|
|
957
957
|
function k(D) {
|
|
958
|
-
return
|
|
958
|
+
return en(K() ? D : b * D, 0, f);
|
|
959
959
|
}
|
|
960
960
|
function L(D) {
|
|
961
|
-
return K() ? He(D, f) :
|
|
961
|
+
return K() ? He(D, f) : cr((D >= f ? M - 1 : D) / b);
|
|
962
962
|
}
|
|
963
963
|
function H(D) {
|
|
964
964
|
var ot = i.toIndex(D);
|
|
965
|
-
return m ?
|
|
965
|
+
return m ? en(ot, 0, f) : ot;
|
|
966
966
|
}
|
|
967
967
|
function Z(D) {
|
|
968
968
|
D !== x && (F = x, x = D);
|
|
@@ -971,19 +971,19 @@ function El(t, e, n) {
|
|
|
971
971
|
return D ? F : x;
|
|
972
972
|
}
|
|
973
973
|
function K() {
|
|
974
|
-
return !
|
|
974
|
+
return !Fn(n.focus) || n.isNavigation;
|
|
975
975
|
}
|
|
976
976
|
function ct() {
|
|
977
|
-
return t.state.is([
|
|
977
|
+
return t.state.is([gn, kn]) && !!n.waitForTransition;
|
|
978
978
|
}
|
|
979
979
|
return {
|
|
980
980
|
mount: E,
|
|
981
|
-
go:
|
|
981
|
+
go: R,
|
|
982
982
|
scroll: O,
|
|
983
983
|
getNext: S,
|
|
984
984
|
getPrev: y,
|
|
985
985
|
getAdjacent: U,
|
|
986
|
-
getEnd:
|
|
986
|
+
getEnd: I,
|
|
987
987
|
setIndex: Z,
|
|
988
988
|
getIndex: rt,
|
|
989
989
|
toIndex: k,
|
|
@@ -993,7 +993,7 @@ function El(t, e, n) {
|
|
|
993
993
|
isBusy: ct
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
var Pl = "http://www.w3.org/2000/svg", _l = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",
|
|
996
|
+
var Pl = "http://www.w3.org/2000/svg", _l = "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", qn = 40;
|
|
997
997
|
function Al(t, e, n) {
|
|
998
998
|
var r = Nt(t), o = r.on, l = r.bind, i = r.emit, a = n.classes, s = n.i18n, d = e.Elements, c = e.Controller, $ = d.arrows, g = d.track, h = $, p = d.prev, m = d.next, S, y, x = {};
|
|
999
999
|
function f() {
|
|
@@ -1004,28 +1004,28 @@ function Al(t, e, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
function M() {
|
|
1006
1006
|
var O = n.arrows;
|
|
1007
|
-
O && !(p && m) && w(), p && m && (
|
|
1007
|
+
O && !(p && m) && w(), p && m && (Ln(x, {
|
|
1008
1008
|
prev: p,
|
|
1009
1009
|
next: m
|
|
1010
|
-
}),
|
|
1010
|
+
}), En(h, O ? "" : "none"), xe(h, y = po + "--" + n.direction), O && (b(), R(), ft([p, m], On, g.id), i(Ei, p, m)));
|
|
1011
1011
|
}
|
|
1012
1012
|
function P() {
|
|
1013
|
-
r.destroy(), Le(h, y), S ? (
|
|
1013
|
+
r.destroy(), Le(h, y), S ? (Ye($ ? [p, m] : h), p = m = null) : Ce([p, m], uo);
|
|
1014
1014
|
}
|
|
1015
1015
|
function b() {
|
|
1016
|
-
o([Oe,
|
|
1016
|
+
o([Oe, hn, Vt, Je, dr], R), l(m, "click", Ft(E, ">")), l(p, "click", Ft(E, "<"));
|
|
1017
1017
|
}
|
|
1018
1018
|
function E(O) {
|
|
1019
1019
|
c.go(O, !0);
|
|
1020
1020
|
}
|
|
1021
1021
|
function w() {
|
|
1022
|
-
h = $ ||
|
|
1022
|
+
h = $ || an("div", a.arrows), p = _(!0), m = _(!1), S = !0, Hn(h, [p, m]), !$ && Jr(h, g);
|
|
1023
1023
|
}
|
|
1024
1024
|
function _(O) {
|
|
1025
|
-
var B = '<button class="' + a.arrow + " " + (O ? a.prev : a.next) + '" type="button"><svg xmlns="' + Pl + '" viewBox="0 0 ' +
|
|
1025
|
+
var B = '<button class="' + a.arrow + " " + (O ? a.prev : a.next) + '" type="button"><svg xmlns="' + Pl + '" viewBox="0 0 ' + qn + " " + qn + '" width="' + qn + '" height="' + qn + '" focusable="false"><path d="' + (n.arrowPath || _l) + '" />';
|
|
1026
1026
|
return fi(B);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function R() {
|
|
1029
1029
|
if (p && m) {
|
|
1030
1030
|
var O = t.index, B = c.getPrev(), U = c.getNext(), X = B > -1 && O < B ? s.last : s.prev, v = U > -1 && O > U ? s.first : s.next;
|
|
1031
1031
|
p.disabled = B < 0, m.disabled = U < 0, ft(p, ae, X), ft(m, ae, v), i(Pi, p, m, B, U);
|
|
@@ -1035,14 +1035,14 @@ function Al(t, e, n) {
|
|
|
1035
1035
|
arrows: x,
|
|
1036
1036
|
mount: f,
|
|
1037
1037
|
destroy: P,
|
|
1038
|
-
update:
|
|
1038
|
+
update: R
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1043
|
-
var r = Nt(t), o = r.on, l = r.bind, i = r.emit, a =
|
|
1041
|
+
var Wl = to + "-interval";
|
|
1042
|
+
function Il(t, e, n) {
|
|
1043
|
+
var r = Nt(t), o = r.on, l = r.bind, i = r.emit, a = yr(n.interval, t.go.bind(t, ">"), b), s = a.isPaused, d = e.Elements, c = e.Elements, $ = c.root, g = c.toggle, h = n.autoplay, p, m, S = h === "pause";
|
|
1044
1044
|
function y() {
|
|
1045
|
-
h && (x(), g && ft(g,
|
|
1045
|
+
h && (x(), g && ft(g, On, d.track.id), S || f(), P());
|
|
1046
1046
|
}
|
|
1047
1047
|
function x() {
|
|
1048
1048
|
n.pauseOnHover && l($, "mouseenter mouseleave", function(w) {
|
|
@@ -1051,7 +1051,7 @@ function Rl(t, e, n) {
|
|
|
1051
1051
|
m = w.type === "focusin", M();
|
|
1052
1052
|
}), g && l(g, "click", function() {
|
|
1053
1053
|
S ? f() : F(!0);
|
|
1054
|
-
}), o([Ae,
|
|
1054
|
+
}), o([Ae, fr, Vt], a.rewind), o(Ae, E);
|
|
1055
1055
|
}
|
|
1056
1056
|
function f() {
|
|
1057
1057
|
s() && e.Slides.isEnough() && (a.start(!n.resetProgress), m = p = S = !1, P(), i(io));
|
|
@@ -1063,15 +1063,15 @@ function Rl(t, e, n) {
|
|
|
1063
1063
|
S || (p || m ? F(!1) : f());
|
|
1064
1064
|
}
|
|
1065
1065
|
function P() {
|
|
1066
|
-
g && (Te(g,
|
|
1066
|
+
g && (Te(g, Xe, !S), ft(g, ae, n.i18n[S ? "play" : "pause"]));
|
|
1067
1067
|
}
|
|
1068
1068
|
function b(w) {
|
|
1069
1069
|
var _ = d.bar;
|
|
1070
|
-
_ && pe(_, "width", w * 100 + "%"), i(
|
|
1070
|
+
_ && pe(_, "width", w * 100 + "%"), i(Wi, w);
|
|
1071
1071
|
}
|
|
1072
1072
|
function E(w) {
|
|
1073
1073
|
var _ = e.Slides.getAt(w);
|
|
1074
|
-
a.set(_ && +ge(_.slide,
|
|
1074
|
+
a.set(_ && +ge(_.slide, Wl) || n.interval);
|
|
1075
1075
|
}
|
|
1076
1076
|
return {
|
|
1077
1077
|
mount: y,
|
|
@@ -1081,19 +1081,19 @@ function Rl(t, e, n) {
|
|
|
1081
1081
|
isPaused: s
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Rl(t, e, n) {
|
|
1085
1085
|
var r = Nt(t), o = r.on;
|
|
1086
1086
|
function l() {
|
|
1087
1087
|
n.cover && (o(lo, Ft(a, !0)), o([Oe, Yt, Vt], Ft(i, !0)));
|
|
1088
1088
|
}
|
|
1089
1089
|
function i(s) {
|
|
1090
1090
|
e.Slides.forEach(function(d) {
|
|
1091
|
-
var c =
|
|
1091
|
+
var c = Nn(d.container || d.slide, "img");
|
|
1092
1092
|
c && c.src && a(s, c, d);
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
1095
|
function a(s, d, c) {
|
|
1096
|
-
c.style("background", s ? 'center/cover no-repeat url("' + d.src + '")' : "", !0),
|
|
1096
|
+
c.style("background", s ? 'center/cover no-repeat url("' + d.src + '")' : "", !0), En(d, s ? "none" : "");
|
|
1097
1097
|
}
|
|
1098
1098
|
return {
|
|
1099
1099
|
mount: l,
|
|
@@ -1102,25 +1102,25 @@ function Wl(t, e, n) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
var kl = 10, Fl = 600, Ml = 0.6, Hl = 1.5, Nl = 800;
|
|
1104
1104
|
function Bl(t, e, n) {
|
|
1105
|
-
var r = Nt(t), o = r.on, l = r.emit, i = t.state.set, a = e.Move, s = a.getPosition, d = a.getLimit, c = a.exceededLimit, $ = a.translate, g = t.is(
|
|
1105
|
+
var r = Nt(t), o = r.on, l = r.emit, i = t.state.set, a = e.Move, s = a.getPosition, d = a.getLimit, c = a.exceededLimit, $ = a.translate, g = t.is(dn), h, p, m = 1;
|
|
1106
1106
|
function S() {
|
|
1107
1107
|
o(Ae, F), o([Yt, Vt], M);
|
|
1108
1108
|
}
|
|
1109
|
-
function y(b, E, w, _,
|
|
1109
|
+
function y(b, E, w, _, R) {
|
|
1110
1110
|
var O = s();
|
|
1111
1111
|
if (F(), w && (!g || !c())) {
|
|
1112
|
-
var B = e.Layout.sliderSize(), U = Dr(b) * B *
|
|
1112
|
+
var B = e.Layout.sliderSize(), U = Dr(b) * B * cr(Jt(b) / B) || 0;
|
|
1113
1113
|
b = a.toPosition(e.Controller.toDest(b % B)) + U;
|
|
1114
1114
|
}
|
|
1115
1115
|
var X = vi(O, b, 1);
|
|
1116
|
-
m = 1, E = X ? 0 : E ||
|
|
1116
|
+
m = 1, E = X ? 0 : E || sr(Jt(b - O) / Hl, Nl), p = _, h = yr(E, x, Ft(f, O, b, R), 1), i(kn), l(fr), h.start();
|
|
1117
1117
|
}
|
|
1118
1118
|
function x() {
|
|
1119
|
-
i(
|
|
1119
|
+
i(sn), p && p(), l(Je);
|
|
1120
1120
|
}
|
|
1121
1121
|
function f(b, E, w, _) {
|
|
1122
|
-
var
|
|
1123
|
-
$(
|
|
1122
|
+
var R = s(), O = b + (E - b) * P(_), B = (O - R) * m;
|
|
1123
|
+
$(R + B), g && !w && c() && (m *= Ml, Jt(B) < kl && y(d(c(!0)), Fl, !1, p, !0));
|
|
1124
1124
|
}
|
|
1125
1125
|
function F() {
|
|
1126
1126
|
h && h.cancel();
|
|
@@ -1139,14 +1139,14 @@ function Bl(t, e, n) {
|
|
|
1139
1139
|
cancel: M
|
|
1140
1140
|
};
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var nn = {
|
|
1143
1143
|
passive: !1,
|
|
1144
1144
|
capture: !0
|
|
1145
1145
|
};
|
|
1146
1146
|
function Ol(t, e, n) {
|
|
1147
|
-
var r = Nt(t), o = r.on, l = r.emit, i = r.bind, a = r.unbind, s = t.state, d = e.Move, c = e.Scroll, $ = e.Controller, g = e.Elements.track, h = e.Media.reduce, p = e.Direction, m = p.resolve, S = p.orient, y = d.getPosition, x = d.exceededLimit, f, F, M, P, b, E = !1, w, _,
|
|
1147
|
+
var r = Nt(t), o = r.on, l = r.emit, i = r.bind, a = r.unbind, s = t.state, d = e.Move, c = e.Scroll, $ = e.Controller, g = e.Elements.track, h = e.Media.reduce, p = e.Direction, m = p.resolve, S = p.orient, y = d.getPosition, x = d.exceededLimit, f, F, M, P, b, E = !1, w, _, R;
|
|
1148
1148
|
function O() {
|
|
1149
|
-
i(g,
|
|
1149
|
+
i(g, Ar, Br, nn), i(g, Wr, Br, nn), i(g, qi, U, nn), i(g, "click", N, {
|
|
1150
1150
|
capture: !0
|
|
1151
1151
|
}), i(g, "dragstart", $e), o([Oe, Yt], B);
|
|
1152
1152
|
}
|
|
@@ -1157,39 +1157,39 @@ function Ol(t, e, n) {
|
|
|
1157
1157
|
function U(T) {
|
|
1158
1158
|
if (w = !1, !_) {
|
|
1159
1159
|
var C = wt(T);
|
|
1160
|
-
mt(T.target) && (C || !T.button) && ($.isBusy() ? $e(T, !0) : (
|
|
1160
|
+
mt(T.target) && (C || !T.button) && ($.isBusy() ? $e(T, !0) : (R = C ? g : window, b = s.is([gn, kn]), M = null, i(R, Ar, X, nn), i(R, Wr, v, nn), d.cancel(), c.cancel(), I(T)));
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
function X(T) {
|
|
1164
|
-
if (s.is(
|
|
1164
|
+
if (s.is(Qn) || (s.set(Qn), l($i)), T.cancelable)
|
|
1165
1165
|
if (b) {
|
|
1166
1166
|
d.translate(f + bt(K(T)));
|
|
1167
1167
|
var C = ct(T) > Ho, j = E !== (E = x());
|
|
1168
|
-
(C || j) &&
|
|
1168
|
+
(C || j) && I(T), w = !0, l(Ti), $e(T);
|
|
1169
1169
|
} else H(T) && (b = L(T), $e(T));
|
|
1170
1170
|
}
|
|
1171
1171
|
function v(T) {
|
|
1172
|
-
s.is(
|
|
1172
|
+
s.is(Qn) && (s.set(sn), l(Li)), b && (k(T), $e(T)), a(R, Ar, X), a(R, Wr, v), b = !1;
|
|
1173
1173
|
}
|
|
1174
1174
|
function N(T) {
|
|
1175
1175
|
!_ && w && $e(T, !0);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function I(T) {
|
|
1178
1178
|
M = F, F = T, f = y();
|
|
1179
1179
|
}
|
|
1180
1180
|
function k(T) {
|
|
1181
1181
|
var C = Z(T), j = rt(C), q = n.rewind && n.rewindByDrag;
|
|
1182
|
-
h(!1), P ? $.scroll(j, 0, n.snap) : t.is(
|
|
1182
|
+
h(!1), P ? $.scroll(j, 0, n.snap) : t.is(Dn) ? $.go(S(Dr(C)) < 0 ? q ? "<" : "-" : q ? ">" : "+") : t.is(dn) && E && q ? $.go(x(!0) ? ">" : "<") : $.go($.toDest(j), !0), h(!0);
|
|
1183
1183
|
}
|
|
1184
1184
|
function L(T) {
|
|
1185
|
-
var C = n.dragMinThreshold, j =
|
|
1185
|
+
var C = n.dragMinThreshold, j = wn(C), q = j && C.mouse || 0, G = (j ? C.touch : +C) || 10;
|
|
1186
1186
|
return Jt(K(T)) > (wt(T) ? G : q);
|
|
1187
1187
|
}
|
|
1188
1188
|
function H(T) {
|
|
1189
1189
|
return Jt(K(T)) > Jt(K(T, !0));
|
|
1190
1190
|
}
|
|
1191
1191
|
function Z(T) {
|
|
1192
|
-
if (t.is(
|
|
1192
|
+
if (t.is(fn) || !E) {
|
|
1193
1193
|
var C = ct(T);
|
|
1194
1194
|
if (C && C < Ho)
|
|
1195
1195
|
return K(T) / C;
|
|
@@ -1212,11 +1212,11 @@ function Ol(t, e, n) {
|
|
|
1212
1212
|
return (wt(T) ? T.changedTouches[0] : T)["page" + m(C ? "Y" : "X")];
|
|
1213
1213
|
}
|
|
1214
1214
|
function bt(T) {
|
|
1215
|
-
return T / (E && t.is(
|
|
1215
|
+
return T / (E && t.is(dn) ? bl : 1);
|
|
1216
1216
|
}
|
|
1217
1217
|
function mt(T) {
|
|
1218
1218
|
var C = n.noDrag;
|
|
1219
|
-
return
|
|
1219
|
+
return !$n(T, "." + Di + ", ." + wr) && (!C || !$n(T, C));
|
|
1220
1220
|
}
|
|
1221
1221
|
function wt(T) {
|
|
1222
1222
|
return typeof TouchEvent < "u" && T instanceof TouchEvent;
|
|
@@ -1235,8 +1235,8 @@ function Ol(t, e, n) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
var Dl = {
|
|
1237
1237
|
Spacebar: " ",
|
|
1238
|
-
Right:
|
|
1239
|
-
Left:
|
|
1238
|
+
Right: xr,
|
|
1239
|
+
Left: br,
|
|
1240
1240
|
Up: ki,
|
|
1241
1241
|
Down: Fi
|
|
1242
1242
|
};
|
|
@@ -1268,7 +1268,7 @@ function zl(t, e, n) {
|
|
|
1268
1268
|
function S(y) {
|
|
1269
1269
|
if (!c) {
|
|
1270
1270
|
var x = mo(y);
|
|
1271
|
-
x === s(
|
|
1271
|
+
x === s(br) ? t.go("<") : x === s(xr) && t.go(">");
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
return {
|
|
@@ -1277,9 +1277,9 @@ function zl(t, e, n) {
|
|
|
1277
1277
|
disable: p
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var Sn = to + "-lazy", nr = Sn + "-srcset", Vl = "[" + Sn + "], [" + nr + "]";
|
|
1281
1281
|
function Kl(t, e, n) {
|
|
1282
|
-
var r = Nt(t), o = r.on, l = r.off, i = r.bind, a = r.emit, s = n.lazyLoad === "sequential", d = [
|
|
1282
|
+
var r = Nt(t), o = r.on, l = r.off, i = r.bind, a = r.emit, s = n.lazyLoad === "sequential", d = [hn, Je], c = [];
|
|
1283
1283
|
function $() {
|
|
1284
1284
|
n.lazyLoad && (g(), o(Vt, g));
|
|
1285
1285
|
}
|
|
@@ -1289,10 +1289,10 @@ function Kl(t, e, n) {
|
|
|
1289
1289
|
function h() {
|
|
1290
1290
|
e.Slides.forEach(function(x) {
|
|
1291
1291
|
Qr(x.slide, Vl).forEach(function(f) {
|
|
1292
|
-
var F = ge(f,
|
|
1292
|
+
var F = ge(f, Sn), M = ge(f, nr);
|
|
1293
1293
|
if (F !== f.src || M !== f.srcset) {
|
|
1294
|
-
var P = n.classes.spinner, b = f.parentElement, E =
|
|
1295
|
-
c.push([f, x, E]), f.src ||
|
|
1294
|
+
var P = n.classes.spinner, b = f.parentElement, E = Nn(b, "." + P) || an("span", P, b);
|
|
1295
|
+
c.push([f, x, E]), f.src || En(f, "none");
|
|
1296
1296
|
}
|
|
1297
1297
|
});
|
|
1298
1298
|
});
|
|
@@ -1305,11 +1305,11 @@ function Kl(t, e, n) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function m(x) {
|
|
1307
1307
|
var f = x[0];
|
|
1308
|
-
xe(x[1].slide, jr), i(f, "load error", Ft(S, x)), ft(f, "src", ge(f,
|
|
1308
|
+
xe(x[1].slide, jr), i(f, "load error", Ft(S, x)), ft(f, "src", ge(f, Sn)), ft(f, "srcset", ge(f, nr)), Ce(f, Sn), Ce(f, nr);
|
|
1309
1309
|
}
|
|
1310
1310
|
function S(x, f) {
|
|
1311
1311
|
var F = x[0], M = x[1];
|
|
1312
|
-
Le(M.slide, jr), f.type !== "error" && (
|
|
1312
|
+
Le(M.slide, jr), f.type !== "error" && (Ye(x[2]), En(F, ""), a(lo, F, M), a(cn)), s && y();
|
|
1313
1313
|
}
|
|
1314
1314
|
function y() {
|
|
1315
1315
|
c.length && m(c.shift());
|
|
@@ -1323,27 +1323,27 @@ function Kl(t, e, n) {
|
|
|
1323
1323
|
function jl(t, e, n) {
|
|
1324
1324
|
var r = Nt(t), o = r.on, l = r.emit, i = r.bind, a = e.Slides, s = e.Elements, d = e.Controller, c = d.hasFocus, $ = d.getIndex, g = d.go, h = e.Direction.resolve, p = s.pagination, m = [], S, y;
|
|
1325
1325
|
function x() {
|
|
1326
|
-
f(), o([Yt, Vt,
|
|
1326
|
+
f(), o([Yt, Vt, dr], x);
|
|
1327
1327
|
var _ = n.pagination;
|
|
1328
|
-
p &&
|
|
1328
|
+
p && En(p, _ ? "" : "none"), _ && (o([Ae, fr, Je], w), F(), w(), l(_i, {
|
|
1329
1329
|
list: S,
|
|
1330
1330
|
items: m
|
|
1331
1331
|
}, E(t.index)));
|
|
1332
1332
|
}
|
|
1333
1333
|
function f() {
|
|
1334
|
-
S && (
|
|
1334
|
+
S && (Ye(p ? Be(S.children) : S), Le(S, y), _e(m), S = null), r.destroy();
|
|
1335
1335
|
}
|
|
1336
1336
|
function F() {
|
|
1337
|
-
var _ = t.length,
|
|
1338
|
-
S = p ||
|
|
1337
|
+
var _ = t.length, R = n.classes, O = n.i18n, B = n.perPage, U = c() ? d.getEnd() + 1 : Pn(_ / B);
|
|
1338
|
+
S = p || an("ul", R.pagination, s.track.parentElement), xe(S, y = $r + "--" + b()), ft(S, Ee, "tablist"), ft(S, ae, O.select), ft(S, co, b() === Cr ? "vertical" : "");
|
|
1339
1339
|
for (var X = 0; X < U; X++) {
|
|
1340
|
-
var v =
|
|
1341
|
-
class:
|
|
1340
|
+
var v = an("li", null, S), N = an("button", {
|
|
1341
|
+
class: R.page,
|
|
1342
1342
|
type: "button"
|
|
1343
|
-
}, v),
|
|
1343
|
+
}, v), I = a.getIn(X).map(function(L) {
|
|
1344
1344
|
return L.slide.id;
|
|
1345
1345
|
}), k = !c() && B > 1 ? O.pageX : O.slideX;
|
|
1346
|
-
i(N, "click", Ft(M, X)), n.paginationKeyboard && i(N, "keydown", Ft(P, X)), ft(v, Ee, "presentation"), ft(N, Ee, "tab"), ft(N,
|
|
1346
|
+
i(N, "click", Ft(M, X)), n.paginationKeyboard && i(N, "keydown", Ft(P, X)), ft(v, Ee, "presentation"), ft(N, Ee, "tab"), ft(N, On, I.join(" ")), ft(N, ae, zr(k, X + 1)), ft(N, ln, -1), m.push({
|
|
1347
1347
|
li: v,
|
|
1348
1348
|
button: N,
|
|
1349
1349
|
page: X
|
|
@@ -1353,11 +1353,11 @@ function jl(t, e, n) {
|
|
|
1353
1353
|
function M(_) {
|
|
1354
1354
|
g(">" + _, !0);
|
|
1355
1355
|
}
|
|
1356
|
-
function P(_,
|
|
1357
|
-
var O = m.length, B = mo(
|
|
1358
|
-
B === h(
|
|
1356
|
+
function P(_, R) {
|
|
1357
|
+
var O = m.length, B = mo(R), U = b(), X = -1;
|
|
1358
|
+
B === h(xr, !1, U) ? X = ++_ % O : B === h(br, !1, U) ? X = (--_ + O) % O : B === "Home" ? X = 0 : B === "End" && (X = O - 1);
|
|
1359
1359
|
var v = m[X];
|
|
1360
|
-
v && (hi(v.button), g(">" + X), $e(
|
|
1360
|
+
v && (hi(v.button), g(">" + X), $e(R, !0));
|
|
1361
1361
|
}
|
|
1362
1362
|
function b() {
|
|
1363
1363
|
return n.paginationDirection || n.direction;
|
|
@@ -1366,19 +1366,19 @@ function jl(t, e, n) {
|
|
|
1366
1366
|
return m[d.toPage(_)];
|
|
1367
1367
|
}
|
|
1368
1368
|
function w() {
|
|
1369
|
-
var _ = E($(!0)),
|
|
1369
|
+
var _ = E($(!0)), R = E($());
|
|
1370
1370
|
if (_) {
|
|
1371
1371
|
var O = _.button;
|
|
1372
|
-
Le(O,
|
|
1372
|
+
Le(O, Xe), Ce(O, Io), ft(O, ln, -1);
|
|
1373
1373
|
}
|
|
1374
|
-
if (
|
|
1375
|
-
var B =
|
|
1376
|
-
xe(B,
|
|
1374
|
+
if (R) {
|
|
1375
|
+
var B = R.button;
|
|
1376
|
+
xe(B, Xe), ft(B, Io, !0), ft(B, ln, "");
|
|
1377
1377
|
}
|
|
1378
1378
|
l(Ai, {
|
|
1379
1379
|
list: S,
|
|
1380
1380
|
items: m
|
|
1381
|
-
}, _,
|
|
1381
|
+
}, _, R);
|
|
1382
1382
|
}
|
|
1383
1383
|
return {
|
|
1384
1384
|
items: m,
|
|
@@ -1407,15 +1407,15 @@ function Ul(t, e, n) {
|
|
|
1407
1407
|
function d(p, m) {
|
|
1408
1408
|
var S = Nt(p);
|
|
1409
1409
|
S.on(Ae, function(y, x, f) {
|
|
1410
|
-
m.go(m.is(
|
|
1410
|
+
m.go(m.is(fn) ? f : y);
|
|
1411
1411
|
}), l.push(S);
|
|
1412
1412
|
}
|
|
1413
1413
|
function c() {
|
|
1414
1414
|
var p = Nt(t), m = p.on;
|
|
1415
|
-
m(no, g), m(
|
|
1415
|
+
m(no, g), m(Ii, h), m([Oe, Yt], $), l.push(p), p.emit(oo, t.splides);
|
|
1416
1416
|
}
|
|
1417
1417
|
function $() {
|
|
1418
|
-
ft(e.Elements.list, co, n.direction ===
|
|
1418
|
+
ft(e.Elements.list, co, n.direction === Cr ? "vertical" : "");
|
|
1419
1419
|
}
|
|
1420
1420
|
function g(p) {
|
|
1421
1421
|
t.go(p.index);
|
|
@@ -1425,7 +1425,7 @@ function Ul(t, e, n) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return {
|
|
1427
1427
|
setup: Ft(e.Media.set, {
|
|
1428
|
-
slideFocus:
|
|
1428
|
+
slideFocus: Fn(o) ? r : o
|
|
1429
1429
|
}, !0),
|
|
1430
1430
|
mount: i,
|
|
1431
1431
|
destroy: a,
|
|
@@ -1435,7 +1435,7 @@ function Ul(t, e, n) {
|
|
|
1435
1435
|
function Gl(t, e, n) {
|
|
1436
1436
|
var r = Nt(t), o = r.bind, l = 0;
|
|
1437
1437
|
function i() {
|
|
1438
|
-
n.wheel && o(e.Elements.track, "wheel", a,
|
|
1438
|
+
n.wheel && o(e.Elements.track, "wheel", a, nn);
|
|
1439
1439
|
}
|
|
1440
1440
|
function a(d) {
|
|
1441
1441
|
if (d.cancelable) {
|
|
@@ -1444,7 +1444,7 @@ function Gl(t, e, n) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
function s(d) {
|
|
1447
|
-
return !n.releaseWheel || t.state.is(
|
|
1447
|
+
return !n.releaseWheel || t.state.is(gn) || e.Controller.getAdjacent(d) !== -1;
|
|
1448
1448
|
}
|
|
1449
1449
|
return {
|
|
1450
1450
|
mount: i
|
|
@@ -1452,18 +1452,18 @@ function Gl(t, e, n) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
var Yl = 90;
|
|
1454
1454
|
function Xl(t, e, n) {
|
|
1455
|
-
var r = Nt(t), o = r.on, l = e.Elements.track, i = n.live && !n.isNavigation, a =
|
|
1455
|
+
var r = Nt(t), o = r.on, l = e.Elements.track, i = n.live && !n.isNavigation, a = an("span", gl), s = yr(Yl, Ft(c, !1));
|
|
1456
1456
|
function d() {
|
|
1457
|
-
i && (g(!e.Autoplay.isPaused()), ft(l, Fo, !0), a.textContent = "…", o(io, Ft(g, !0)), o(ao, Ft(g, !1)), o([
|
|
1457
|
+
i && (g(!e.Autoplay.isPaused()), ft(l, Fo, !0), a.textContent = "…", o(io, Ft(g, !0)), o(ao, Ft(g, !1)), o([hn, Je], Ft(c, !0)));
|
|
1458
1458
|
}
|
|
1459
1459
|
function c(h) {
|
|
1460
|
-
ft(l, ko, h), h ? (
|
|
1460
|
+
ft(l, ko, h), h ? (Hn(l, a), s.start()) : (Ye(a), s.cancel());
|
|
1461
1461
|
}
|
|
1462
1462
|
function $() {
|
|
1463
|
-
Ce(l, [
|
|
1463
|
+
Ce(l, [Ro, Fo, ko]), Ye(a);
|
|
1464
1464
|
}
|
|
1465
1465
|
function g(h) {
|
|
1466
|
-
i && ft(l,
|
|
1466
|
+
i && ft(l, Ro, h ? "off" : "polite");
|
|
1467
1467
|
}
|
|
1468
1468
|
return {
|
|
1469
1469
|
mount: d,
|
|
@@ -1482,8 +1482,8 @@ var Zl = /* @__PURE__ */ Object.freeze({
|
|
|
1482
1482
|
Move: Ll,
|
|
1483
1483
|
Controller: El,
|
|
1484
1484
|
Arrows: Al,
|
|
1485
|
-
Autoplay:
|
|
1486
|
-
Cover:
|
|
1485
|
+
Autoplay: Il,
|
|
1486
|
+
Cover: Rl,
|
|
1487
1487
|
Scroll: Bl,
|
|
1488
1488
|
Drag: Ol,
|
|
1489
1489
|
Keyboard: zl,
|
|
@@ -1567,7 +1567,7 @@ function es(t, e, n) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
function g(h) {
|
|
1569
1569
|
var p = n.rewindSpeed;
|
|
1570
|
-
if (t.is(
|
|
1570
|
+
if (t.is(dn) && p) {
|
|
1571
1571
|
var m = o.getIndex(!0), S = o.getEnd();
|
|
1572
1572
|
if (m === 0 && h >= S || m >= S && h === 0)
|
|
1573
1573
|
return p;
|
|
@@ -1582,39 +1582,39 @@ function es(t, e, n) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
var ns = /* @__PURE__ */ (function() {
|
|
1584
1584
|
function t(n, r) {
|
|
1585
|
-
this.event = Nt(), this.Components = {}, this.state = rl(
|
|
1585
|
+
this.event = Nt(), this.Components = {}, this.state = rl(on), this.splides = [], this._o = {}, this._E = {};
|
|
1586
1586
|
var o = Me(n) ? yi(document, n) : n;
|
|
1587
|
-
|
|
1587
|
+
Cn(o, o + " is invalid."), this.root = o, r = ke({
|
|
1588
1588
|
label: ge(o, ae) || "",
|
|
1589
1589
|
labelledby: ge(o, so) || ""
|
|
1590
1590
|
}, Ql, t.defaults, r || {});
|
|
1591
1591
|
try {
|
|
1592
1592
|
ke(r, JSON.parse(ge(o, to)));
|
|
1593
1593
|
} catch {
|
|
1594
|
-
|
|
1594
|
+
Cn(!1, "Invalid JSON");
|
|
1595
1595
|
}
|
|
1596
1596
|
this._o = Object.create(ke({}, r));
|
|
1597
1597
|
}
|
|
1598
1598
|
var e = t.prototype;
|
|
1599
1599
|
return e.mount = function(r, o) {
|
|
1600
1600
|
var l = this, i = this.state, a = this.Components;
|
|
1601
|
-
|
|
1602
|
-
var s =
|
|
1601
|
+
Cn(i.is([on, lr]), "Already mounted!"), i.set(on), this._C = a, this._T = o || this._T || (this.is(Dn) ? ts : es), this._E = r || this._E;
|
|
1602
|
+
var s = Ln({}, Zl, this._E, {
|
|
1603
1603
|
Transition: this._T
|
|
1604
1604
|
});
|
|
1605
|
-
return
|
|
1605
|
+
return Ge(s, function(d, c) {
|
|
1606
1606
|
var $ = d(l, a, l._o);
|
|
1607
1607
|
a[c] = $, $.setup && $.setup();
|
|
1608
|
-
}),
|
|
1608
|
+
}), Ge(a, function(d) {
|
|
1609
1609
|
d.mount && d.mount();
|
|
1610
|
-
}), this.emit(Oe), xe(this.root, hl), i.set(
|
|
1610
|
+
}), this.emit(Oe), xe(this.root, hl), i.set(sn), this.emit(Vr), this;
|
|
1611
1611
|
}, e.sync = function(r) {
|
|
1612
1612
|
return this.splides.push({
|
|
1613
1613
|
splide: r
|
|
1614
1614
|
}), r.splides.push({
|
|
1615
1615
|
splide: this,
|
|
1616
1616
|
isParent: !0
|
|
1617
|
-
}), this.state.is(
|
|
1617
|
+
}), this.state.is(sn) && (this._C.Sync.remount(), r.Components.Sync.remount()), this;
|
|
1618
1618
|
}, e.go = function(r) {
|
|
1619
1619
|
return this._C.Controller.go(r), this;
|
|
1620
1620
|
}, e.on = function(r, o) {
|
|
@@ -1635,9 +1635,9 @@ var ns = /* @__PURE__ */ (function() {
|
|
|
1635
1635
|
}, e.destroy = function(r) {
|
|
1636
1636
|
r === void 0 && (r = !0);
|
|
1637
1637
|
var o = this.event, l = this.state;
|
|
1638
|
-
return l.is(
|
|
1638
|
+
return l.is(on) ? Nt(this).on(Vr, this.destroy.bind(this, r)) : (Ge(this._C, function(i) {
|
|
1639
1639
|
i.destroy && i.destroy(r);
|
|
1640
|
-
}, !0), o.emit(ro), o.destroy(), r && _e(this.splides), l.set(
|
|
1640
|
+
}, !0), o.emit(ro), o.destroy(), r && _e(this.splides), l.set(lr)), this;
|
|
1641
1641
|
}, Ja(t, [{
|
|
1642
1642
|
key: "options",
|
|
1643
1643
|
get: function() {
|
|
@@ -1664,7 +1664,7 @@ var Bo = [
|
|
|
1664
1664
|
[Oe, "onMounted"],
|
|
1665
1665
|
[Vr, "onReady"],
|
|
1666
1666
|
[Ae, "onMove"],
|
|
1667
|
-
[
|
|
1667
|
+
[hn, "onMoved"],
|
|
1668
1668
|
[no, "onClick"],
|
|
1669
1669
|
[xi, "onActive"],
|
|
1670
1670
|
[Ci, "onInactive"],
|
|
@@ -1672,13 +1672,13 @@ var Bo = [
|
|
|
1672
1672
|
[wi, "onHidden"],
|
|
1673
1673
|
[Vt, "onRefresh"],
|
|
1674
1674
|
[Yt, "onUpdated"],
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1675
|
+
[cn, "onResize"],
|
|
1676
|
+
[hr, "onResized"],
|
|
1677
1677
|
[$i, "onDrag"],
|
|
1678
1678
|
[Ti, "onDragging"],
|
|
1679
1679
|
[Li, "onDragged"],
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1680
|
+
[fr, "onScroll"],
|
|
1681
|
+
[Je, "onScrolled"],
|
|
1682
1682
|
[ro, "onDestroy"],
|
|
1683
1683
|
[Ei, "onArrowsMounted"],
|
|
1684
1684
|
[Pi, "onArrowsUpdated"],
|
|
@@ -1686,20 +1686,20 @@ var Bo = [
|
|
|
1686
1686
|
[Ai, "onPaginationUpdated"],
|
|
1687
1687
|
[oo, "onNavigationMounted"],
|
|
1688
1688
|
[io, "onAutoplayPlay"],
|
|
1689
|
-
[
|
|
1689
|
+
[Wi, "onAutoplayPlaying"],
|
|
1690
1690
|
[ao, "onAutoplayPause"],
|
|
1691
1691
|
[lo, "onLazyLoadLoaded"]
|
|
1692
1692
|
];
|
|
1693
1693
|
function ho(...t) {
|
|
1694
1694
|
return t.filter(Boolean).join(" ");
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function ur(t) {
|
|
1697
1697
|
return t !== null && typeof t == "object";
|
|
1698
1698
|
}
|
|
1699
1699
|
function qr(t, e) {
|
|
1700
1700
|
if (Array.isArray(t) && Array.isArray(e))
|
|
1701
1701
|
return t.length === e.length && !t.some((n, r) => !qr(n, e[r]));
|
|
1702
|
-
if (
|
|
1702
|
+
if (ur(t) && ur(e)) {
|
|
1703
1703
|
const n = Object.keys(t), r = Object.keys(e);
|
|
1704
1704
|
return n.length === r.length && !n.some((o) => !Object.prototype.hasOwnProperty.call(e, o) || !qr(t[o], e[o]));
|
|
1705
1705
|
}
|
|
@@ -1722,17 +1722,17 @@ function os(t, e) {
|
|
|
1722
1722
|
function Ur(t, e) {
|
|
1723
1723
|
const n = t;
|
|
1724
1724
|
return os(e, (r, o) => {
|
|
1725
|
-
Array.isArray(r) ? n[o] = r.slice() :
|
|
1725
|
+
Array.isArray(r) ? n[o] = r.slice() : ur(r) ? n[o] = Ur(ur(n[o]) ? n[o] : {}, r) : n[o] = r;
|
|
1726
1726
|
}), n;
|
|
1727
1727
|
}
|
|
1728
|
-
var is = ({ children: t, className: e, ...n }) => /* @__PURE__ */
|
|
1728
|
+
var is = ({ children: t, className: e, ...n }) => /* @__PURE__ */ Ue.createElement("div", {
|
|
1729
1729
|
className: ho("splide__track", e),
|
|
1730
1730
|
...n
|
|
1731
|
-
}, /* @__PURE__ */
|
|
1731
|
+
}, /* @__PURE__ */ Ue.createElement("ul", {
|
|
1732
1732
|
className: "splide__list"
|
|
1733
|
-
}, t)), fo = class extends
|
|
1733
|
+
}, t)), fo = class extends Ue.Component {
|
|
1734
1734
|
constructor() {
|
|
1735
|
-
super(...arguments), this.splideRef =
|
|
1735
|
+
super(...arguments), this.splideRef = Ue.createRef(), this.slides = [];
|
|
1736
1736
|
}
|
|
1737
1737
|
componentDidMount() {
|
|
1738
1738
|
const { options: t, extensions: e, transition: n } = this.props, { current: r } = this.splideRef;
|
|
@@ -1780,13 +1780,13 @@ var is = ({ children: t, className: e, ...n }) => /* @__PURE__ */ qe.createEleme
|
|
|
1780
1780
|
}
|
|
1781
1781
|
render() {
|
|
1782
1782
|
const { className: t, tag: e = "div", hasTrack: n = !0, children: r, ...o } = this.props;
|
|
1783
|
-
return /* @__PURE__ */
|
|
1783
|
+
return /* @__PURE__ */ Ue.createElement(e, {
|
|
1784
1784
|
className: ho("splide", t),
|
|
1785
1785
|
ref: this.splideRef,
|
|
1786
1786
|
...this.omit(o, ["options", ...Bo.map((l) => l[1])])
|
|
1787
|
-
}, n ? /* @__PURE__ */
|
|
1787
|
+
}, n ? /* @__PURE__ */ Ue.createElement(is, null, r) : r);
|
|
1788
1788
|
}
|
|
1789
|
-
}, yo = ({ children: t, className: e, ...n }) => /* @__PURE__ */
|
|
1789
|
+
}, yo = ({ children: t, className: e, ...n }) => /* @__PURE__ */ Ue.createElement("li", {
|
|
1790
1790
|
className: ho("splide__slide", e),
|
|
1791
1791
|
...n
|
|
1792
1792
|
}, t);
|
|
@@ -1801,7 +1801,7 @@ const as = "RichTextRenderer-module__link___BWeZ2", ls = {
|
|
|
1801
1801
|
}, ss = (t) => {
|
|
1802
1802
|
const e = t.trim();
|
|
1803
1803
|
return !e || e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'") ? !1 : e.split(/\s+/g).filter(Boolean).some((r) => /^\d/.test(r));
|
|
1804
|
-
},
|
|
1804
|
+
}, Tr = (t) => t && t.split(",").map((n) => n.trim()).filter(Boolean).map((n) => ss(n) ? `"${n.replace(/"/g, '\\"')}"` : n).join(", ");
|
|
1805
1805
|
function be(t) {
|
|
1806
1806
|
const { color: e, ...n } = t;
|
|
1807
1807
|
return n;
|
|
@@ -1810,13 +1810,13 @@ function Qt(t, e) {
|
|
|
1810
1810
|
var o, l, i;
|
|
1811
1811
|
const { fontSize: n, lineHeight: r } = t;
|
|
1812
1812
|
return {
|
|
1813
|
-
fontFamily:
|
|
1813
|
+
fontFamily: Tr(t.fontSettings.fontFamily),
|
|
1814
1814
|
fontWeight: t.fontSettings.fontWeight,
|
|
1815
1815
|
fontStyle: t.fontSettings.fontStyle,
|
|
1816
|
-
letterSpacing:
|
|
1817
|
-
wordSpacing:
|
|
1818
|
-
fontSize:
|
|
1819
|
-
lineHeight: r !== void 0 ?
|
|
1816
|
+
letterSpacing: W(t.letterSpacing, e),
|
|
1817
|
+
wordSpacing: W(t.wordSpacing, e),
|
|
1818
|
+
fontSize: W(n, e),
|
|
1819
|
+
lineHeight: r !== void 0 ? W(r, e) : void 0,
|
|
1820
1820
|
textTransform: (o = t.textAppearance) == null ? void 0 : o.textTransform,
|
|
1821
1821
|
textDecoration: (l = t.textAppearance) == null ? void 0 : l.textDecoration,
|
|
1822
1822
|
fontVariant: (i = t.textAppearance) == null ? void 0 : i.fontVariant,
|
|
@@ -1824,7 +1824,7 @@ function Qt(t, e) {
|
|
|
1824
1824
|
color: t.color
|
|
1825
1825
|
};
|
|
1826
1826
|
}
|
|
1827
|
-
const
|
|
1827
|
+
const An = ({ content: t }) => {
|
|
1828
1828
|
const e = (n) => n.map((r, o) => r.type === "link" ? /* @__PURE__ */ u("a", { className: ls.link, href: r.value, target: r.target, children: e(r.children) }, o) : /* @__PURE__ */ u("span", { style: cs(r), children: r.text }, o));
|
|
1829
1829
|
return /* @__PURE__ */ u(le, { children: t.map((n, r) => {
|
|
1830
1830
|
const o = n.children;
|
|
@@ -1833,7 +1833,7 @@ const _n = ({ content: t }) => {
|
|
|
1833
1833
|
};
|
|
1834
1834
|
function cs(t) {
|
|
1835
1835
|
return {
|
|
1836
|
-
...t.fontFamily && { fontFamily:
|
|
1836
|
+
...t.fontFamily && { fontFamily: Tr(t.fontFamily) },
|
|
1837
1837
|
...t.fontWeight && { fontWeight: t.fontWeight },
|
|
1838
1838
|
...t.fontStyle && { fontStyle: t.fontStyle },
|
|
1839
1839
|
...t.textDecoration && { textDecoration: t.textDecoration },
|
|
@@ -1853,7 +1853,7 @@ const ds = "SvgImage-module__svg___q3xE-", us = "SvgImage-module__img___VsTm-",
|
|
|
1853
1853
|
return e.startsWith("data:image/svg+xml") ? !0 : (e.split(/[?#]/)[0] ?? e).endsWith(".svg");
|
|
1854
1854
|
}, ms = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, Fe = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: r = "", style: o }) => {
|
|
1855
1855
|
const [l, i] = at(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
|
|
1856
|
-
return
|
|
1856
|
+
return Wt(() => {
|
|
1857
1857
|
if (typeof window < "u" && window.CSS) {
|
|
1858
1858
|
const a = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
|
|
1859
1859
|
i(a);
|
|
@@ -1883,21 +1883,21 @@ const ds = "SvgImage-module__svg___q3xE-", us = "SvgImage-module__img___VsTm-",
|
|
|
1883
1883
|
"bottom-right": it.bottomRightAlignment
|
|
1884
1884
|
};
|
|
1885
1885
|
function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
1886
|
-
const [o, l] = at(null), { widthSettings: i, fontSettings: a, letterSpacing: s, textAlign: d, wordSpacing: c, fontSizeLineHeight: $, textAppearance: g, color: h } = n.imageCaption, [p, m] = at(void 0), [S, y] = at(null), [x, f] = at(0), [F, M] = at(0), { direction: P, transition: b, controls: E, pagination: w, imageCaption: _, triggers:
|
|
1886
|
+
const [o, l] = at(null), { widthSettings: i, fontSettings: a, letterSpacing: s, textAlign: d, wordSpacing: c, fontSizeLineHeight: $, textAppearance: g, color: h } = n.imageCaption, [p, m] = at(void 0), [S, y] = at(null), [x, f] = at(0), [F, M] = at(0), { direction: P, transition: b, controls: E, pagination: w, imageCaption: _, triggers: R } = t, O = St(b.type), { x: B, y: U } = t.controls.offset, X = (v) => {
|
|
1887
1887
|
o && o.go(v);
|
|
1888
1888
|
};
|
|
1889
|
-
return
|
|
1889
|
+
return Wt(() => {
|
|
1890
1890
|
if (!S) return;
|
|
1891
1891
|
const v = new ResizeObserver((N) => {
|
|
1892
1892
|
if (!o) return;
|
|
1893
|
-
const [
|
|
1893
|
+
const [I] = N;
|
|
1894
1894
|
m({
|
|
1895
|
-
width: Math.round(
|
|
1896
|
-
height: Math.round(
|
|
1895
|
+
width: Math.round(I.contentRect.width),
|
|
1896
|
+
height: Math.round(I.contentRect.height)
|
|
1897
1897
|
});
|
|
1898
1898
|
});
|
|
1899
1899
|
return v.observe(S), () => v.unobserve(S);
|
|
1900
|
-
}, [S]),
|
|
1900
|
+
}, [S]), Wt(() => {
|
|
1901
1901
|
!o || O.current === b.type || (M((v) => v + 1), O.current = b.type);
|
|
1902
1902
|
}, [b.type]), /* @__PURE__ */ u("div", { className: Et(it.wrapper, { [it.editor]: r }), ref: y, children: /* @__PURE__ */ st(
|
|
1903
1903
|
"div",
|
|
@@ -1925,15 +1925,15 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
1925
1925
|
[it.active]: N === x
|
|
1926
1926
|
}),
|
|
1927
1927
|
style: {
|
|
1928
|
-
fontFamily:
|
|
1928
|
+
fontFamily: Tr(a.fontFamily),
|
|
1929
1929
|
fontWeight: a.fontWeight,
|
|
1930
1930
|
fontStyle: a.fontStyle,
|
|
1931
|
-
width: i.sizing === "auto" ? "max-content" :
|
|
1932
|
-
letterSpacing:
|
|
1933
|
-
wordSpacing:
|
|
1931
|
+
width: i.sizing === "auto" ? "max-content" : W(i.width, r),
|
|
1932
|
+
letterSpacing: W(s, r),
|
|
1933
|
+
wordSpacing: W(c, r),
|
|
1934
1934
|
textAlign: d,
|
|
1935
|
-
fontSize:
|
|
1936
|
-
lineHeight:
|
|
1935
|
+
fontSize: W($.fontSize, r),
|
|
1936
|
+
lineHeight: W($.lineHeight, r),
|
|
1937
1937
|
textTransform: g.textTransform ?? "none",
|
|
1938
1938
|
textDecoration: g.textDecoration ?? "none",
|
|
1939
1939
|
fontVariant: g.fontVariant ?? "normal",
|
|
@@ -1949,10 +1949,10 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
1949
1949
|
"--link-hover-color": _.linkHoverColor,
|
|
1950
1950
|
"--link-color": _.linkColor,
|
|
1951
1951
|
position: "relative",
|
|
1952
|
-
top:
|
|
1953
|
-
left:
|
|
1952
|
+
top: W(_.offset.y, r),
|
|
1953
|
+
left: W(_.offset.x, r)
|
|
1954
1954
|
},
|
|
1955
|
-
children: /* @__PURE__ */ u(
|
|
1955
|
+
children: /* @__PURE__ */ u(An, { content: v.imageCaption })
|
|
1956
1956
|
}
|
|
1957
1957
|
)
|
|
1958
1958
|
},
|
|
@@ -1972,13 +1972,13 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
1972
1972
|
options: {
|
|
1973
1973
|
arrows: !1,
|
|
1974
1974
|
speed: b.duration ? parseInt(b.duration) : 500,
|
|
1975
|
-
autoplay:
|
|
1976
|
-
...
|
|
1977
|
-
interval: parseInt(
|
|
1975
|
+
autoplay: R.autoPlay !== null,
|
|
1976
|
+
...R.autoPlay !== null && {
|
|
1977
|
+
interval: parseInt(R.autoPlay) * 1e3
|
|
1978
1978
|
},
|
|
1979
1979
|
direction: P === "horiz" || b.type === "fade in" ? "ltr" : "ttb",
|
|
1980
1980
|
pagination: !1,
|
|
1981
|
-
drag:
|
|
1981
|
+
drag: R.triggersList.drag,
|
|
1982
1982
|
perPage: 1,
|
|
1983
1983
|
width: p ? p.width : "100%",
|
|
1984
1984
|
height: p ? p.height : "100%",
|
|
@@ -2031,7 +2031,7 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
2031
2031
|
},
|
|
2032
2032
|
className: it.arrowInner,
|
|
2033
2033
|
style: {
|
|
2034
|
-
transform: `translate(${
|
|
2034
|
+
transform: `translate(${W(B, r)}, ${W(U * (P === "horiz" ? 1 : -1), r)}) scale(${t.controls.scale / 100}) rotate(${P === "horiz" ? "0deg" : "90deg"})`
|
|
2035
2035
|
},
|
|
2036
2036
|
children: [
|
|
2037
2037
|
E.arrowsImgUrl && /* @__PURE__ */ u(
|
|
@@ -2066,7 +2066,7 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
2066
2066
|
className: it.arrowInner,
|
|
2067
2067
|
onClick: () => X("+1"),
|
|
2068
2068
|
style: {
|
|
2069
|
-
transform: `translate(${
|
|
2069
|
+
transform: `translate(${W(B * (P === "horiz" ? -1 : 1), r)}, ${W(U, r)}) scale(${t.controls.scale / 100}) rotate(${P === "horiz" ? "0deg" : "90deg"})`
|
|
2070
2070
|
},
|
|
2071
2071
|
children: [
|
|
2072
2072
|
E.arrowsImgUrl && /* @__PURE__ */ u(
|
|
@@ -2085,7 +2085,7 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
)
|
|
2087
2087
|
] }),
|
|
2088
|
-
|
|
2088
|
+
R.triggersList.click && /* @__PURE__ */ u(
|
|
2089
2089
|
"div",
|
|
2090
2090
|
{
|
|
2091
2091
|
className: it.clickOverlay,
|
|
@@ -2114,7 +2114,7 @@ function hs({ settings: t, content: e, styles: n, isEditor: r }) {
|
|
|
2114
2114
|
className: it.paginationInner,
|
|
2115
2115
|
style: {
|
|
2116
2116
|
backgroundColor: w.colors[2],
|
|
2117
|
-
transform: `scale(${w.scale / 100}) translate(${
|
|
2117
|
+
transform: `scale(${w.scale / 100}) translate(${W(w.offset.x, r)}, ${W(w.offset.y, r)}) rotate(${P === "horiz" ? "0deg" : "90deg"})`
|
|
2118
2118
|
},
|
|
2119
2119
|
children: e.map((v, N) => /* @__PURE__ */ u(
|
|
2120
2120
|
"button",
|
|
@@ -2762,7 +2762,7 @@ const fs = {
|
|
|
2762
2762
|
},
|
|
2763
2763
|
required: ["settings", "content", "styles"]
|
|
2764
2764
|
}
|
|
2765
|
-
}, ys = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", vs = "ImageRevealSlider-module__image___Qjt-e", bs = "ImageRevealSlider-module__link___N-iLG", xs = "ImageRevealSlider-module__cursor___2U03d",
|
|
2765
|
+
}, ys = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", vs = "ImageRevealSlider-module__image___Qjt-e", bs = "ImageRevealSlider-module__link___N-iLG", xs = "ImageRevealSlider-module__cursor___2U03d", tn = {
|
|
2766
2766
|
imageRevealSlider: ys,
|
|
2767
2767
|
image: vs,
|
|
2768
2768
|
link: bs,
|
|
@@ -2803,8 +2803,8 @@ async function Cs(t, e, n, r) {
|
|
|
2803
2803
|
return { width: o, height: l, finalWidth: `${o}px` };
|
|
2804
2804
|
}
|
|
2805
2805
|
function Ss({ settings: t, content: e, isEditor: n }) {
|
|
2806
|
-
const [r, o] = at(null), [l, i] = at([]), [a, s] = at(0), d = St(0), [c, $] = at({ x: 0, y: 0 }), [g, h] = at(1), [p, m] = at("none"), S = St({ x: 0, y: 0 }), [y, x] = at(!1), { sizeType: f, imageWidth: F, randomRangeImageWidth: M } = t.imageSize, { revealPosition: P, visible: b } = t.position, { cursorType: E, target: w, defaultCursorScale: _, defaultCursor:
|
|
2807
|
-
|
|
2806
|
+
const [r, o] = at(null), [l, i] = at([]), [a, s] = at(0), d = St(0), [c, $] = at({ x: 0, y: 0 }), [g, h] = at(1), [p, m] = at("none"), S = St({ x: 0, y: 0 }), [y, x] = at(!1), { sizeType: f, imageWidth: F, randomRangeImageWidth: M } = t.imageSize, { revealPosition: P, visible: b } = t.position, { cursorType: E, target: w, defaultCursorScale: _, defaultCursor: R, hoverCursorScale: O, hoverCursor: B } = t.cursor;
|
|
2807
|
+
Wt(() => {
|
|
2808
2808
|
if (!r) return;
|
|
2809
2809
|
const v = (k, L) => {
|
|
2810
2810
|
const H = r.getBoundingClientRect(), Z = k - H.left, rt = L - H.top;
|
|
@@ -2817,15 +2817,15 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2817
2817
|
m("none"), h(1);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
|
-
const ot = zo(K, ct, l) || w === "area" ? { img: B ?? "none", scale: O } : { img:
|
|
2820
|
+
const ot = zo(K, ct, l) || w === "area" ? { img: B ?? "none", scale: O } : { img: R ?? "none", scale: _ };
|
|
2821
2821
|
m(ot.img), h(ot.scale);
|
|
2822
2822
|
}, N = (k) => {
|
|
2823
2823
|
k.stopPropagation(), S.current = { x: k.clientX, y: k.clientY }, v(k.clientX, k.clientY);
|
|
2824
|
-
},
|
|
2824
|
+
}, I = () => {
|
|
2825
2825
|
y && v(S.current.x, S.current.y);
|
|
2826
2826
|
};
|
|
2827
|
-
return r.addEventListener("mousemove", N), window.addEventListener("scroll",
|
|
2828
|
-
r.removeEventListener("mousemove", N), window.removeEventListener("scroll",
|
|
2827
|
+
return r.addEventListener("mousemove", N), window.addEventListener("scroll", I, !0), () => {
|
|
2828
|
+
r.removeEventListener("mousemove", N), window.removeEventListener("scroll", I, !0);
|
|
2829
2829
|
};
|
|
2830
2830
|
}, [
|
|
2831
2831
|
r,
|
|
@@ -2834,14 +2834,14 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2834
2834
|
E,
|
|
2835
2835
|
w,
|
|
2836
2836
|
B,
|
|
2837
|
-
|
|
2837
|
+
R,
|
|
2838
2838
|
O,
|
|
2839
2839
|
_,
|
|
2840
2840
|
l
|
|
2841
|
-
]),
|
|
2841
|
+
]), Wt(() => {
|
|
2842
2842
|
y || (m("none"), h(0));
|
|
2843
2843
|
}, [y]);
|
|
2844
|
-
const U = async (v, N,
|
|
2844
|
+
const U = async (v, N, I, k = {}) => {
|
|
2845
2845
|
const { width: L, height: H, finalWidth: Z } = await Cs(
|
|
2846
2846
|
v.image.url,
|
|
2847
2847
|
f,
|
|
@@ -2849,8 +2849,8 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2849
2849
|
M
|
|
2850
2850
|
);
|
|
2851
2851
|
let rt = 0, K = 0;
|
|
2852
|
-
P === "same" ? (rt = N / 2, K =
|
|
2853
|
-
const ct = Math.min(Math.max(rt, L / 2), N - L / 2), D = Math.min(Math.max(K, H / 2),
|
|
2852
|
+
P === "same" ? (rt = N / 2, K = I / 2) : (rt = k.x ?? Math.random() * N, K = k.y ?? Math.random() * I);
|
|
2853
|
+
const ct = Math.min(Math.max(rt, L / 2), N - L / 2), D = Math.min(Math.max(K, H / 2), I - H / 2);
|
|
2854
2854
|
return {
|
|
2855
2855
|
id: d.current++,
|
|
2856
2856
|
url: v.image.url,
|
|
@@ -2861,14 +2861,14 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2861
2861
|
width: Z
|
|
2862
2862
|
};
|
|
2863
2863
|
};
|
|
2864
|
-
return
|
|
2864
|
+
return Wt(() => {
|
|
2865
2865
|
if (!r || e.length === 0) return;
|
|
2866
|
-
const v = r.getBoundingClientRect(), N = v.width,
|
|
2866
|
+
const v = r.getBoundingClientRect(), N = v.width, I = v.height, k = [];
|
|
2867
2867
|
(async () => {
|
|
2868
|
-
const H = e[0], Z = await U(H, N,
|
|
2868
|
+
const H = e[0], Z = await U(H, N, I);
|
|
2869
2869
|
k.push(Z), i(k), s(1);
|
|
2870
2870
|
})();
|
|
2871
|
-
}, [f, F, M, P, r]),
|
|
2871
|
+
}, [f, F, M, P, r]), Wt(() => {
|
|
2872
2872
|
b === "last One" && i((v) => v.length > 0 ? [v[v.length - 1]] : []);
|
|
2873
2873
|
}, [b]), /* @__PURE__ */ st(
|
|
2874
2874
|
"div",
|
|
@@ -2876,22 +2876,22 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2876
2876
|
ref: o,
|
|
2877
2877
|
onClick: async (v) => {
|
|
2878
2878
|
if (!r) return;
|
|
2879
|
-
const N = r.getBoundingClientRect(),
|
|
2880
|
-
if (w === "image" && !zo(
|
|
2879
|
+
const N = r.getBoundingClientRect(), I = v.clientX - N.left, k = v.clientY - N.top;
|
|
2880
|
+
if (w === "image" && !zo(I, k, l)) return;
|
|
2881
2881
|
let L = 0, H = 0;
|
|
2882
|
-
P === "on Click" ? (L =
|
|
2882
|
+
P === "on Click" ? (L = I, H = k) : P === "same" ? (L = N.width / 2, H = N.height / 2) : (L = Math.random() * N.width, H = Math.random() * N.height);
|
|
2883
2883
|
const Z = e[a], rt = await U(Z, N.width, N.height, { x: L, y: H });
|
|
2884
2884
|
i((K) => b === "all" ? [...K, rt] : [rt]), s((K) => K >= e.length - 1 ? 0 : K + 1);
|
|
2885
2885
|
},
|
|
2886
2886
|
onMouseEnter: () => x(!0),
|
|
2887
2887
|
onMouseLeave: () => x(!1),
|
|
2888
|
-
className:
|
|
2888
|
+
className: tn.imageRevealSlider,
|
|
2889
2889
|
style: { cursor: p === "none" ? "default" : "none" },
|
|
2890
2890
|
children: [
|
|
2891
2891
|
l.map((v) => /* @__PURE__ */ u(
|
|
2892
2892
|
"div",
|
|
2893
2893
|
{
|
|
2894
|
-
className:
|
|
2894
|
+
className: tn.wrapper,
|
|
2895
2895
|
style: {
|
|
2896
2896
|
top: `${v.y}px`,
|
|
2897
2897
|
left: `${v.x}px`,
|
|
@@ -2901,12 +2901,12 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2901
2901
|
height: "auto",
|
|
2902
2902
|
cursor: p === "none" ? "default" : "none"
|
|
2903
2903
|
},
|
|
2904
|
-
children: w === "area" && v.link ? /* @__PURE__ */ u("a", { href: v.link, target: "_blank", className:
|
|
2904
|
+
children: w === "area" && v.link ? /* @__PURE__ */ u("a", { href: v.link, target: "_blank", className: tn.link, children: /* @__PURE__ */ u(
|
|
2905
2905
|
"img",
|
|
2906
2906
|
{
|
|
2907
2907
|
src: v.url,
|
|
2908
2908
|
alt: v.name,
|
|
2909
|
-
className:
|
|
2909
|
+
className: tn.image
|
|
2910
2910
|
},
|
|
2911
2911
|
v.id
|
|
2912
2912
|
) }) : /* @__PURE__ */ u(
|
|
@@ -2914,7 +2914,7 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2914
2914
|
{
|
|
2915
2915
|
src: v.url,
|
|
2916
2916
|
alt: v.name,
|
|
2917
|
-
className:
|
|
2917
|
+
className: tn.image
|
|
2918
2918
|
},
|
|
2919
2919
|
v.id
|
|
2920
2920
|
)
|
|
@@ -2924,7 +2924,7 @@ function Ss({ settings: t, content: e, isEditor: n }) {
|
|
|
2924
2924
|
y && /* @__PURE__ */ u(
|
|
2925
2925
|
"div",
|
|
2926
2926
|
{
|
|
2927
|
-
className:
|
|
2927
|
+
className: tn.cursor,
|
|
2928
2928
|
style: {
|
|
2929
2929
|
left: `${c.x}px`,
|
|
2930
2930
|
top: `${c.y}px`,
|
|
@@ -3265,7 +3265,7 @@ const ws = {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
}, $s = "LightBox-module__hidden___9s-9x", Ts = "LightBox-module__heroImage___sTxNF", Ls = "LightBox-module__background___rm9ml", Es = "LightBox-module__editor___4ACaY", Ps = "LightBox-module__contentStyle___Bgnsq", _s = "LightBox-module__imageStyle___tLIlB", As = "LightBox-module__imgWrapper___LuFUp",
|
|
3268
|
+
}, $s = "LightBox-module__hidden___9s-9x", Ts = "LightBox-module__heroImage___sTxNF", Ls = "LightBox-module__background___rm9ml", Es = "LightBox-module__editor___4ACaY", Ps = "LightBox-module__contentStyle___Bgnsq", _s = "LightBox-module__imageStyle___tLIlB", As = "LightBox-module__imgWrapper___LuFUp", Ws = "LightBox-module__contain___8-yaS", Is = "LightBox-module__cover___hNvOG", Rs = "LightBox-module__caption___b6L2I", ks = "LightBox-module__captionTextInner___rCGNH", Fs = "LightBox-module__lightboxSplide___XFuWC", Ms = "LightBox-module__arrow___iz38X", Hs = "LightBox-module__arrowVertical___Zfz81", Ns = "LightBox-module__nextArrow___zkAQN", Bs = "LightBox-module__arrowInner___p48sW", Os = "LightBox-module__arrowIcon___3VaFf", Ds = "LightBox-module__arrowImg___pNV88", zs = "LightBox-module__mirror___pjeXc", Vs = "LightBox-module__thumbsWrapper___GB-nU", Ks = "LightBox-module__thumbsContainerVertical___wttk5", js = "LightBox-module__thumbsContainer___osSma", qs = "LightBox-module__thumbsAlignStart___MO6tY", Us = "LightBox-module__thumbsAlignCenter___Q4sUx", Gs = "LightBox-module__thumbsAlignEnd___p4y9R", Ys = "LightBox-module__thumbItem___HvnF3", Xs = "LightBox-module__closeButton___g2khP", Zs = "LightBox-module__fadeIn___0m5GW", Js = "LightBox-module__slideInLeft___gPYwC", Qs = "LightBox-module__slideInRight___S-pPp", tc = "LightBox-module__slideInTop___DFdAj", ec = "LightBox-module__slideInBottom___m27kZ", nc = "LightBox-module__fadeOut___55qBR", rc = "LightBox-module__slideOutLeft___NvU7P", oc = "LightBox-module__slideOutRight___SK7eC", ic = "LightBox-module__slideOutTop___Vgg0z", ac = "LightBox-module__slideOutBottom___nJ0Ef", lc = "LightBox-module__scaleSlide___vZriG", Y = {
|
|
3269
3269
|
hidden: $s,
|
|
3270
3270
|
heroImage: Ts,
|
|
3271
3271
|
background: Ls,
|
|
@@ -3273,9 +3273,9 @@ const ws = {
|
|
|
3273
3273
|
contentStyle: Ps,
|
|
3274
3274
|
imageStyle: _s,
|
|
3275
3275
|
imgWrapper: As,
|
|
3276
|
-
contain:
|
|
3277
|
-
cover:
|
|
3278
|
-
caption:
|
|
3276
|
+
contain: Ws,
|
|
3277
|
+
cover: Is,
|
|
3278
|
+
caption: Rs,
|
|
3279
3279
|
captionTextInner: ks,
|
|
3280
3280
|
lightboxSplide: Fs,
|
|
3281
3281
|
arrow: Ms,
|
|
@@ -3304,9 +3304,9 @@ const ws = {
|
|
|
3304
3304
|
slideOutTop: ic,
|
|
3305
3305
|
slideOutBottom: ac,
|
|
3306
3306
|
scaleSlide: lc
|
|
3307
|
-
},
|
|
3307
|
+
}, Un = (t, e, n) => {
|
|
3308
3308
|
const r = {}, [o, l] = t.split("-");
|
|
3309
|
-
return o === "top" ? (r.top = "0", r.bottom = "auto") : o === "middle" ? (r.top = "50%", r.bottom = "auto") : o === "bottom" && (r.top = "auto", r.bottom = "0"), l === "left" ? (r.left = "0", r.right = "auto") : l === "center" ? (r.left = "50%", r.right = "auto") : l === "right" && (r.left = "auto", r.right = "0"), o === "middle" && l === "center" ? r.transform = `translate(calc(-50% + ${
|
|
3309
|
+
return o === "top" ? (r.top = "0", r.bottom = "auto") : o === "middle" ? (r.top = "50%", r.bottom = "auto") : o === "bottom" && (r.top = "auto", r.bottom = "0"), l === "left" ? (r.left = "0", r.right = "auto") : l === "center" ? (r.left = "50%", r.right = "auto") : l === "right" && (r.left = "auto", r.right = "0"), o === "middle" && l === "center" ? r.transform = `translate(calc(-50% + ${W(e.x, n)}), calc(-50% + ${W(e.y, n)}))` : o === "middle" ? r.transform = `translate(${W(e.x, n)}, calc(-50% + ${W(e.y, n)}))` : l === "center" ? r.transform = `translate(calc(-50% + ${W(e.x, n)}), ${W(e.y, n)})` : r.transform = `translate(${W(e.x, n)}, ${W(e.y, n)})`, r;
|
|
3310
3310
|
};
|
|
3311
3311
|
function Ui(t) {
|
|
3312
3312
|
const e = window.getComputedStyle(t);
|
|
@@ -3421,7 +3421,7 @@ function sc(t, e) {
|
|
|
3421
3421
|
}
|
|
3422
3422
|
const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, isEditor: l, isPreviewMode: i }) => {
|
|
3423
3423
|
const [a, s] = at(!1), { url: d } = t.thumbnailBlock.cover;
|
|
3424
|
-
return
|
|
3424
|
+
return Wt(() => {
|
|
3425
3425
|
o === "close" && s(!1), o === "open" && s(!0);
|
|
3426
3426
|
}, [o]), /* @__PURE__ */ st(le, { children: [
|
|
3427
3427
|
/* @__PURE__ */ u(
|
|
@@ -3448,8 +3448,8 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3448
3448
|
] });
|
|
3449
3449
|
}, dc = ({ isOpen: t, onClose: e, content: n, lightboxStyles: r, settings: o, portalId: l, isEditor: i, metadata: a }) => {
|
|
3450
3450
|
var T;
|
|
3451
|
-
const [s, d] = at(0), [c, $] = at(0), [g, h] = at(!1), [p, m] = at(!1), [S, y] = at({}), x = St(null), f = St(null), F = St(null), M = St(!1), P = St(null), b = St(null), E = St(null), w = St(null), _ = St(!1),
|
|
3452
|
-
|
|
3451
|
+
const [s, d] = at(0), [c, $] = at(0), [g, h] = at(!1), [p, m] = at(!1), [S, y] = at({}), x = St(null), f = St(null), F = St(null), M = St(!1), P = St(null), b = St(null), E = St(null), w = St(null), _ = St(!1), R = St(null), [O, B] = at(!1), { appear: U, triggers: X, slider: v, thumbnail: N, controls: I, area: k, caption: L, layout: H } = o.lightboxBlock, { appearClass: Z, backdropAppearClass: rt, backdropDisappearClass: K, disappearClass: ct } = sc(U.type, U.direction), D = (a == null ? void 0 : a.itemId) ?? null;
|
|
3452
|
+
Wt(() => {
|
|
3453
3453
|
const C = () => {
|
|
3454
3454
|
setTimeout(() => {
|
|
3455
3455
|
var q, G;
|
|
@@ -3461,12 +3461,12 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3461
3461
|
return window.addEventListener("ArticleEditor.Layout:change", C), window.addEventListener("ArticleEditor.ComponentContent:change", j), () => {
|
|
3462
3462
|
window.removeEventListener("ArticleEditor.Layout:change", C), window.removeEventListener("ArticleEditor.ComponentContent:change", j);
|
|
3463
3463
|
};
|
|
3464
|
-
}, []),
|
|
3464
|
+
}, []), Wt(() => {
|
|
3465
3465
|
if (!t || !N.isActive) {
|
|
3466
3466
|
B(!1);
|
|
3467
3467
|
return;
|
|
3468
3468
|
}
|
|
3469
|
-
const C =
|
|
3469
|
+
const C = R.current;
|
|
3470
3470
|
if (!C) return;
|
|
3471
3471
|
const j = () => {
|
|
3472
3472
|
v.direction === "horiz" ? B(C.scrollWidth > C.clientWidth) : B(C.scrollHeight > C.clientHeight);
|
|
@@ -3523,7 +3523,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3523
3523
|
const j = C.target;
|
|
3524
3524
|
(j.classList.contains(Y.thumbsWrapper) || j.classList.contains(Y.thumbsContainer)) && mt(C);
|
|
3525
3525
|
};
|
|
3526
|
-
|
|
3526
|
+
Wt(() => {
|
|
3527
3527
|
if (!t) return;
|
|
3528
3528
|
const C = (j) => {
|
|
3529
3529
|
var q, G;
|
|
@@ -3540,7 +3540,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3540
3540
|
return window.addEventListener("keydown", C), () => {
|
|
3541
3541
|
window.removeEventListener("keydown", C);
|
|
3542
3542
|
};
|
|
3543
|
-
}, [t, ot, n.length]),
|
|
3543
|
+
}, [t, ot, n.length]), Wt(() => {
|
|
3544
3544
|
if (t) {
|
|
3545
3545
|
if (d(0), $((j) => j + 1), M.current = !1, h(!1), m(!1), y({}), !D) return;
|
|
3546
3546
|
const C = new CustomEvent("page-overlay", { detail: { itemId: D } });
|
|
@@ -3549,9 +3549,9 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3549
3549
|
return () => {
|
|
3550
3550
|
P.current && b.current && (P.current.removeEventListener("animationend", b.current), b.current = null), m(!1);
|
|
3551
3551
|
};
|
|
3552
|
-
}, [t, D]),
|
|
3552
|
+
}, [t, D]), Wt(() => {
|
|
3553
3553
|
f.current !== null && f.current !== v.type && $((C) => C + 1), f.current = v.type;
|
|
3554
|
-
}, [v.type]),
|
|
3554
|
+
}, [v.type]), Wt(() => {
|
|
3555
3555
|
if (!t) return;
|
|
3556
3556
|
const C = document.body.style.overflow, j = window.matchMedia("(max-width: 768px)").matches, q = jo(k.color);
|
|
3557
3557
|
document.body.style.overflow = "hidden", m(!1);
|
|
@@ -3566,7 +3566,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3566
3566
|
return document.addEventListener("touchmove", Q, { passive: !1 }), () => {
|
|
3567
3567
|
document.body.style.overflow = C, document.removeEventListener("touchmove", Q), P.current && E.current && (P.current.removeEventListener("animationend", E.current), E.current = null), m(!1);
|
|
3568
3568
|
};
|
|
3569
|
-
}, [t, i, k.color, v.type]),
|
|
3569
|
+
}, [t, i, k.color, v.type]), Wt(() => {
|
|
3570
3570
|
if (!t) return;
|
|
3571
3571
|
const C = (j) => {
|
|
3572
3572
|
var G, Q;
|
|
@@ -3611,7 +3611,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3611
3611
|
};
|
|
3612
3612
|
}, [t, ot, s, n]);
|
|
3613
3613
|
const A = (v.type === "scale" || v.type === "fade") && v.direction === "vert" && X.type === "drag";
|
|
3614
|
-
|
|
3614
|
+
Wt(() => {
|
|
3615
3615
|
var z, pt;
|
|
3616
3616
|
if (!t || !A || !((pt = (z = x.current) == null ? void 0 : z.splide) != null && pt.root)) return;
|
|
3617
3617
|
const C = x.current.splide.root, j = 30, q = (V, tt) => {
|
|
@@ -3703,7 +3703,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3703
3703
|
},
|
|
3704
3704
|
style: { "--splide-speed": v.duration },
|
|
3705
3705
|
children: n.map((C, j) => {
|
|
3706
|
-
const q =
|
|
3706
|
+
const q = Un(H.position, H.offset, i), G = `${W(H.padding.top, i)} ${W(H.padding.right, i)} ${W(H.padding.bottom, i)} ${W(H.padding.left, i)}`, Q = v.type === "scale" ? (() => {
|
|
3707
3707
|
const { transform: nt, ...et } = q;
|
|
3708
3708
|
return {
|
|
3709
3709
|
...et,
|
|
@@ -3731,33 +3731,33 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3731
3731
|
},
|
|
3732
3732
|
c
|
|
3733
3733
|
),
|
|
3734
|
-
|
|
3734
|
+
I.isActive && /* @__PURE__ */ st(le, { children: [
|
|
3735
3735
|
/* @__PURE__ */ u(
|
|
3736
3736
|
"div",
|
|
3737
3737
|
{
|
|
3738
3738
|
className: Et(Y.arrow, { [Y.arrowVertical]: v.direction === "vert" }),
|
|
3739
|
-
style: { color:
|
|
3739
|
+
style: { color: I.color, "--arrow-hover-color": I.hover },
|
|
3740
3740
|
children: /* @__PURE__ */ st(
|
|
3741
3741
|
"button",
|
|
3742
3742
|
{
|
|
3743
3743
|
className: Y.arrowInner,
|
|
3744
|
-
style: { transform: `translate(${I
|
|
3744
|
+
style: { transform: `translate(${W(I.offset.x, i)}, ${W(I.offset.y * (v.direction === "horiz" ? 1 : -1), i)}) scale(${I.scale}) rotate(${v.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3745
3745
|
onClick: () => {
|
|
3746
3746
|
var C;
|
|
3747
3747
|
return (C = x.current) == null ? void 0 : C.go("-1");
|
|
3748
3748
|
},
|
|
3749
3749
|
"aria-label": "Previous",
|
|
3750
3750
|
children: [
|
|
3751
|
-
|
|
3751
|
+
I.arrowsImgUrl && /* @__PURE__ */ u(
|
|
3752
3752
|
Fe,
|
|
3753
3753
|
{
|
|
3754
|
-
url:
|
|
3755
|
-
fill:
|
|
3756
|
-
hoverFill:
|
|
3754
|
+
url: I.arrowsImgUrl,
|
|
3755
|
+
fill: I.color,
|
|
3756
|
+
hoverFill: I.hover,
|
|
3757
3757
|
className: Et(Y.arrowImg, Y.mirror)
|
|
3758
3758
|
}
|
|
3759
3759
|
),
|
|
3760
|
-
!
|
|
3760
|
+
!I.arrowsImgUrl && /* @__PURE__ */ u(qo, { color: I.color, className: Et(Y.arrowIcon, Y.arrowImg, Y.mirror) })
|
|
3761
3761
|
]
|
|
3762
3762
|
}
|
|
3763
3763
|
)
|
|
@@ -3767,28 +3767,28 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3767
3767
|
"div",
|
|
3768
3768
|
{
|
|
3769
3769
|
className: Et(Y.arrow, Y.nextArrow, { [Y.arrowVertical]: v.direction === "vert" }),
|
|
3770
|
-
style: { color:
|
|
3770
|
+
style: { color: I.color, "--arrow-hover-color": I.hover },
|
|
3771
3771
|
children: /* @__PURE__ */ st(
|
|
3772
3772
|
"button",
|
|
3773
3773
|
{
|
|
3774
3774
|
className: Y.arrowInner,
|
|
3775
|
-
style: { transform: `translate(${I
|
|
3775
|
+
style: { transform: `translate(${W(I.offset.x * (v.direction === "horiz" ? -1 : 1), i)}, ${W(I.offset.y, i)}) scale(${I.scale}) rotate(${v.direction === "horiz" ? "0deg" : "90deg"})` },
|
|
3776
3776
|
onClick: () => {
|
|
3777
3777
|
var C;
|
|
3778
3778
|
return (C = x.current) == null ? void 0 : C.go("+1");
|
|
3779
3779
|
},
|
|
3780
3780
|
"aria-label": "Next",
|
|
3781
3781
|
children: [
|
|
3782
|
-
|
|
3782
|
+
I.arrowsImgUrl && /* @__PURE__ */ u(
|
|
3783
3783
|
Fe,
|
|
3784
3784
|
{
|
|
3785
|
-
url:
|
|
3786
|
-
fill:
|
|
3787
|
-
hoverFill:
|
|
3785
|
+
url: I.arrowsImgUrl,
|
|
3786
|
+
fill: I.color,
|
|
3787
|
+
hoverFill: I.hover,
|
|
3788
3788
|
className: Y.arrowImg
|
|
3789
3789
|
}
|
|
3790
3790
|
),
|
|
3791
|
-
!
|
|
3791
|
+
!I.arrowsImgUrl && /* @__PURE__ */ u(qo, { color: I.color, className: Et(Y.arrowIcon, Y.arrowImg) })
|
|
3792
3792
|
]
|
|
3793
3793
|
}
|
|
3794
3794
|
)
|
|
@@ -3796,7 +3796,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3796
3796
|
)
|
|
3797
3797
|
] }),
|
|
3798
3798
|
k.closeIconUrl && (() => {
|
|
3799
|
-
const C =
|
|
3799
|
+
const C = Un(k.closeIconAlign, k.closeIconOffset, i), j = `scale(${k.closeIconScale})`, q = C.transform ? `${C.transform} ${j}` : j;
|
|
3800
3800
|
return /* @__PURE__ */ u("button", { className: Y.closeButton, style: { ...C, transform: q }, onClick: ot, "aria-label": "Close lightbox", children: /* @__PURE__ */ u(Fe, { url: k.closeIconUrl, fill: k.closeIconColor ?? "#000000", hoverFill: k.closeIconHover ?? "#cccccc" }) });
|
|
3801
3801
|
})(),
|
|
3802
3802
|
L && L.isActive && r.imageCaption && ((T = n[s]) == null ? void 0 : T.imageCaption) && (() => {
|
|
@@ -3806,16 +3806,16 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3806
3806
|
{
|
|
3807
3807
|
className: Y.caption,
|
|
3808
3808
|
style: {
|
|
3809
|
-
...
|
|
3810
|
-
fontFamily:
|
|
3809
|
+
...Un(L.alignment, L.offset, i),
|
|
3810
|
+
fontFamily: Tr(j.fontFamily),
|
|
3811
3811
|
fontWeight: j.fontWeight,
|
|
3812
3812
|
fontStyle: j.fontStyle,
|
|
3813
|
-
width: C.sizing === "auto" ? "max-content" :
|
|
3814
|
-
letterSpacing:
|
|
3815
|
-
wordSpacing:
|
|
3813
|
+
width: C.sizing === "auto" ? "max-content" : W(C.width, i),
|
|
3814
|
+
letterSpacing: W(q, i),
|
|
3815
|
+
wordSpacing: W(Q, i),
|
|
3816
3816
|
textAlign: G,
|
|
3817
|
-
fontSize:
|
|
3818
|
-
lineHeight:
|
|
3817
|
+
fontSize: W(nt.fontSize, i),
|
|
3818
|
+
lineHeight: W(nt.lineHeight, i),
|
|
3819
3819
|
textTransform: et.textTransform ?? "none",
|
|
3820
3820
|
textDecoration: et.textDecoration ?? "none",
|
|
3821
3821
|
fontVariant: et.fontVariant ?? "normal",
|
|
@@ -3831,14 +3831,14 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3831
3831
|
"--link-color": L.linkColor,
|
|
3832
3832
|
"--link-hover-color": L.linkHoverColor
|
|
3833
3833
|
},
|
|
3834
|
-
children: /* @__PURE__ */ u(
|
|
3834
|
+
children: /* @__PURE__ */ u(An, { content: n[s].imageCaption })
|
|
3835
3835
|
}
|
|
3836
3836
|
)
|
|
3837
3837
|
}
|
|
3838
3838
|
);
|
|
3839
3839
|
})(),
|
|
3840
3840
|
N.isActive && (() => {
|
|
3841
|
-
const [C, j] = N.position.split("-"), q = v.direction === "horiz" ? `${C}-left` : N.position, G =
|
|
3841
|
+
const [C, j] = N.position.split("-"), q = v.direction === "horiz" ? `${C}-left` : N.position, G = Un(q, N.offset, i), Q = () => {
|
|
3842
3842
|
if (v.direction === "horiz") {
|
|
3843
3843
|
if (j === "left") return "flex-start";
|
|
3844
3844
|
if (j === "center") return "center";
|
|
@@ -3853,7 +3853,7 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3853
3853
|
return /* @__PURE__ */ u(
|
|
3854
3854
|
"div",
|
|
3855
3855
|
{
|
|
3856
|
-
ref:
|
|
3856
|
+
ref: R,
|
|
3857
3857
|
className: Y.thumbsWrapper,
|
|
3858
3858
|
onClick: (nt) => wt(nt),
|
|
3859
3859
|
style: {
|
|
@@ -3880,26 +3880,26 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3880
3880
|
[Y.thumbsAlignEnd]: N.align === "end"
|
|
3881
3881
|
}),
|
|
3882
3882
|
style: {
|
|
3883
|
-
gap:
|
|
3883
|
+
gap: W(N.grid.gap, i),
|
|
3884
3884
|
justifyContent: O ? "flex-start" : Q()
|
|
3885
3885
|
},
|
|
3886
3886
|
children: n.map((nt, et) => {
|
|
3887
3887
|
const dt = et === s, $t = S[et], z = N.grid.size * (dt ? N.activeState.scale : 1), pt = () => {
|
|
3888
3888
|
if (N.fit !== "fit") return {};
|
|
3889
3889
|
if (!$t)
|
|
3890
|
-
return v.direction === "horiz" ? { height:
|
|
3890
|
+
return v.direction === "horiz" ? { height: W(z, i) } : { width: W(z, i) };
|
|
3891
3891
|
const V = $t.width / $t.height;
|
|
3892
3892
|
if (v.direction === "horiz") {
|
|
3893
3893
|
const tt = z, xt = tt * V;
|
|
3894
3894
|
return {
|
|
3895
|
-
width:
|
|
3896
|
-
height:
|
|
3895
|
+
width: W(xt, i),
|
|
3896
|
+
height: W(tt, i)
|
|
3897
3897
|
};
|
|
3898
3898
|
} else {
|
|
3899
3899
|
const tt = z, xt = tt / V;
|
|
3900
3900
|
return {
|
|
3901
|
-
width:
|
|
3902
|
-
height:
|
|
3901
|
+
width: W(tt, i),
|
|
3902
|
+
height: W(xt, i)
|
|
3903
3903
|
};
|
|
3904
3904
|
}
|
|
3905
3905
|
};
|
|
@@ -3908,9 +3908,9 @@ const cc = ({ settings: t, content: e, styles: n, portalId: r, activeEvent: o, i
|
|
|
3908
3908
|
{
|
|
3909
3909
|
className: Y.thumbItem,
|
|
3910
3910
|
style: {
|
|
3911
|
-
...v.direction === "horiz" && N.fit !== "fit" ? { height:
|
|
3912
|
-
...v.direction === "vert" && N.fit !== "fit" ? { width:
|
|
3913
|
-
...N.fit === "cover" ? { width:
|
|
3911
|
+
...v.direction === "horiz" && N.fit !== "fit" ? { height: W(z, i) } : {},
|
|
3912
|
+
...v.direction === "vert" && N.fit !== "fit" ? { width: W(z, i) } : {},
|
|
3913
|
+
...N.fit === "cover" ? { width: W(z, i), height: W(z, i) } : {},
|
|
3914
3914
|
...pt(),
|
|
3915
3915
|
transition: dt ? "all 0.25s ease-out" : "none",
|
|
3916
3916
|
opacity: dt ? N.activeState.opacity / 100 : N.opacity / 100,
|
|
@@ -5043,7 +5043,7 @@ const uc = {
|
|
|
5043
5043
|
required: ["settings", "content", "styles"]
|
|
5044
5044
|
}
|
|
5045
5045
|
};
|
|
5046
|
-
function
|
|
5046
|
+
function Gn(t) {
|
|
5047
5047
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
5048
5048
|
}
|
|
5049
5049
|
function pc(t) {
|
|
@@ -5052,7 +5052,7 @@ function pc(t) {
|
|
|
5052
5052
|
display: flex;
|
|
5053
5053
|
flex-direction: column;
|
|
5054
5054
|
width: 100%;
|
|
5055
|
-
min-height: ${
|
|
5055
|
+
min-height: ${Gn(48)};
|
|
5056
5056
|
}
|
|
5057
5057
|
.${t}-wrapper.${t}-type-C .${t}-input:focus-visible,
|
|
5058
5058
|
.${t}-wrapper.${t}-type-C .${t}-button:focus-visible {
|
|
@@ -5076,7 +5076,7 @@ function pc(t) {
|
|
|
5076
5076
|
min-width: 0;
|
|
5077
5077
|
}
|
|
5078
5078
|
.${t}-field-group.${t}-labeled {
|
|
5079
|
-
gap: ${
|
|
5079
|
+
gap: ${Gn(4)};
|
|
5080
5080
|
}
|
|
5081
5081
|
.${t}-field-label {
|
|
5082
5082
|
white-space: nowrap;
|
|
@@ -5172,11 +5172,11 @@ function pc(t) {
|
|
|
5172
5172
|
outline: none;
|
|
5173
5173
|
}
|
|
5174
5174
|
.${t}-success {
|
|
5175
|
-
margin-top: ${
|
|
5175
|
+
margin-top: ${Gn(8)};
|
|
5176
5176
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
5177
5177
|
}
|
|
5178
5178
|
.${t}-error {
|
|
5179
|
-
margin-top: ${
|
|
5179
|
+
margin-top: ${Gn(8)};
|
|
5180
5180
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
5181
5181
|
}
|
|
5182
5182
|
.${t}-overlay-anchor {
|
|
@@ -5186,7 +5186,7 @@ function pc(t) {
|
|
|
5186
5186
|
`;
|
|
5187
5187
|
}
|
|
5188
5188
|
function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
5189
|
-
const { prefix: o } =
|
|
5189
|
+
const { prefix: o } = Ze(), {
|
|
5190
5190
|
type: l = "A",
|
|
5191
5191
|
fieldsToShow: i = 2,
|
|
5192
5192
|
fields: a = [],
|
|
@@ -5209,14 +5209,14 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5209
5209
|
buttonBorderColor: E,
|
|
5210
5210
|
labelTextColor: w,
|
|
5211
5211
|
successColor: _,
|
|
5212
|
-
errorColor:
|
|
5212
|
+
errorColor: R,
|
|
5213
5213
|
fontFamily: O,
|
|
5214
5214
|
inputFontSettings: B,
|
|
5215
5215
|
inputFontSize: U,
|
|
5216
5216
|
inputLineHeight: X,
|
|
5217
5217
|
inputLetterSpacing: v,
|
|
5218
5218
|
inputWordSpacing: N,
|
|
5219
|
-
inputTextAppearance:
|
|
5219
|
+
inputTextAppearance: I,
|
|
5220
5220
|
buttonFontSettings: k,
|
|
5221
5221
|
buttonFontSize: L,
|
|
5222
5222
|
buttonLineHeight: H,
|
|
@@ -5248,25 +5248,25 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5248
5248
|
lineHeight: X,
|
|
5249
5249
|
letterSpacing: v ?? 0,
|
|
5250
5250
|
wordSpacing: N ?? 0,
|
|
5251
|
-
textAppearance:
|
|
5251
|
+
textAppearance: I,
|
|
5252
5252
|
color: f
|
|
5253
|
-
}, ut = be(Qt($t, e)), z =
|
|
5253
|
+
}, ut = be(Qt($t, e)), z = W(S ?? 0, e), pt = W(
|
|
5254
5254
|
(X ?? U ?? 0.01) + ((y == null ? void 0 : y.top) ?? 0) + ((y == null ? void 0 : y.bottom) ?? 0) + (l === "C" ? S ?? 0 : (S ?? 0) * 2),
|
|
5255
5255
|
e
|
|
5256
5256
|
), V = {
|
|
5257
5257
|
...ut,
|
|
5258
5258
|
borderStyle: "solid",
|
|
5259
|
-
borderRadius: l === "C" ? 0 :
|
|
5259
|
+
borderRadius: l === "C" ? 0 : W(m ?? 0, e),
|
|
5260
5260
|
...l === "C" ? {
|
|
5261
5261
|
borderTopWidth: 0,
|
|
5262
5262
|
borderRightWidth: 0,
|
|
5263
5263
|
borderBottomWidth: z,
|
|
5264
5264
|
borderLeftWidth: 0
|
|
5265
5265
|
} : { borderWidth: z },
|
|
5266
|
-
paddingTop:
|
|
5267
|
-
paddingRight:
|
|
5268
|
-
paddingBottom:
|
|
5269
|
-
paddingLeft:
|
|
5266
|
+
paddingTop: W((y == null ? void 0 : y.top) ?? 0, e),
|
|
5267
|
+
paddingRight: W((y == null ? void 0 : y.right) ?? 0, e),
|
|
5268
|
+
paddingBottom: W((y == null ? void 0 : y.bottom) ?? 0, e),
|
|
5269
|
+
paddingLeft: W((y == null ? void 0 : y.left) ?? 0, e),
|
|
5270
5270
|
height: pt,
|
|
5271
5271
|
minHeight: pt
|
|
5272
5272
|
}, tt = {
|
|
@@ -5281,7 +5281,7 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5281
5281
|
wordSpacing: rt ?? 0,
|
|
5282
5282
|
textAppearance: K,
|
|
5283
5283
|
color: b
|
|
5284
|
-
}, xt = be(Qt(tt, e)), vt =
|
|
5284
|
+
}, xt = be(Qt(tt, e)), vt = W(g ?? 0, e), Ot = {
|
|
5285
5285
|
fontSettings: {
|
|
5286
5286
|
fontFamily: O,
|
|
5287
5287
|
fontWeight: (ct == null ? void 0 : ct.fontWeight) ?? 400,
|
|
@@ -5305,7 +5305,7 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5305
5305
|
wordSpacing: j ?? 0,
|
|
5306
5306
|
textAppearance: q,
|
|
5307
5307
|
color: _
|
|
5308
|
-
},
|
|
5308
|
+
}, Rt = be(Qt(Tt, e)), Kt = mr(o, {
|
|
5309
5309
|
inputColor: x,
|
|
5310
5310
|
inputTextColor: f,
|
|
5311
5311
|
inputBorderColor: F,
|
|
@@ -5315,16 +5315,16 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5315
5315
|
buttonBorderColor: E,
|
|
5316
5316
|
labelTextColor: w,
|
|
5317
5317
|
successColor: _,
|
|
5318
|
-
errorColor:
|
|
5318
|
+
errorColor: R
|
|
5319
5319
|
}, gc, hc, nt), [_t, jt] = at(
|
|
5320
5320
|
() => Object.fromEntries(dt.map((yt) => [yt.name, ""]))
|
|
5321
|
-
), [fe, Xt] = at("idle"), [
|
|
5321
|
+
), [fe, Xt] = at("idle"), [vn, de] = at(null), We = r === "success" ? "success" : r === "error" ? "error" : fe, Ct = r === "error" ? Q : vn, re = r === "filled", te = Mt(() => {
|
|
5322
5322
|
if (!re) return _t;
|
|
5323
5323
|
let yt = null;
|
|
5324
5324
|
for (const Ht of dt)
|
|
5325
5325
|
(_t[Ht.name] ?? "").trim().length > 0 || (yt = yt ?? { ..._t }, yt[Ht.name] = "Filled");
|
|
5326
5326
|
return yt ?? _t;
|
|
5327
|
-
}, [_t, re, dt]), ye =
|
|
5327
|
+
}, [_t, re, dt]), ye = We === "error" ? ar(dt, te) : null, bn = `${r && r !== "default" ? `${o}-state-${r}` : ""}`.trim(), ze = n == null ? void 0 : n.submitUrl, At = (yt, Ht) => {
|
|
5328
5328
|
jt((Bt) => ({ ...Bt, [yt]: Ht }));
|
|
5329
5329
|
}, qt = async (yt) => {
|
|
5330
5330
|
yt.preventDefault();
|
|
@@ -5339,7 +5339,7 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5339
5339
|
return;
|
|
5340
5340
|
}
|
|
5341
5341
|
if (Object.keys(Ht).length === 0) return;
|
|
5342
|
-
const Bt =
|
|
5342
|
+
const Bt = ar(dt, _t);
|
|
5343
5343
|
if (Bt) {
|
|
5344
5344
|
Xt("error"), de(Bt);
|
|
5345
5345
|
return;
|
|
@@ -5360,20 +5360,20 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5360
5360
|
Xt("error"), de(zt instanceof Error ? zt.message : "Something went wrong");
|
|
5361
5361
|
}
|
|
5362
5362
|
};
|
|
5363
|
-
return /* @__PURE__ */ st("div", { className: `${o}-wrapper ${o}-type-${l} ${
|
|
5363
|
+
return /* @__PURE__ */ st("div", { className: `${o}-wrapper ${o}-type-${l} ${bn}`.trim(), style: Kt, children: [
|
|
5364
5364
|
/* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: pc(o) } }),
|
|
5365
5365
|
/* @__PURE__ */ st(
|
|
5366
5366
|
"form",
|
|
5367
5367
|
{
|
|
5368
5368
|
onSubmit: qt,
|
|
5369
5369
|
className: `${o}-form`,
|
|
5370
|
-
style: { gap:
|
|
5370
|
+
style: { gap: W(d ?? 0, e) },
|
|
5371
5371
|
children: [
|
|
5372
5372
|
/* @__PURE__ */ u(
|
|
5373
5373
|
"div",
|
|
5374
5374
|
{
|
|
5375
5375
|
className: `${o}-fields`,
|
|
5376
|
-
style: { gap:
|
|
5376
|
+
style: { gap: W(c ?? 0, e) },
|
|
5377
5377
|
children: dt.map((yt, Ht) => /* @__PURE__ */ st("div", { className: `${o}-field-group${et ? ` ${o}-labeled` : ""}`, children: [
|
|
5378
5378
|
et && /* @__PURE__ */ u("span", { className: `${o}-field-label`, style: Dt ? { ...Dt, lineHeight: Dt.fontSize } : void 0, children: yt.label || yt.name }),
|
|
5379
5379
|
yt.type === "textarea" ? /* @__PURE__ */ u(
|
|
@@ -5415,12 +5415,12 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5415
5415
|
className: `${o}-button`,
|
|
5416
5416
|
style: {
|
|
5417
5417
|
borderStyle: "solid",
|
|
5418
|
-
borderRadius:
|
|
5418
|
+
borderRadius: W($ ?? 0, e),
|
|
5419
5419
|
borderWidth: vt,
|
|
5420
|
-
paddingTop:
|
|
5421
|
-
paddingRight:
|
|
5422
|
-
paddingBottom:
|
|
5423
|
-
paddingLeft:
|
|
5420
|
+
paddingTop: W((h == null ? void 0 : h.top) ?? 0, e),
|
|
5421
|
+
paddingRight: W((h == null ? void 0 : h.right) ?? 0, e),
|
|
5422
|
+
paddingBottom: W((h == null ? void 0 : h.bottom) ?? 0, e),
|
|
5423
|
+
paddingLeft: W((h == null ? void 0 : h.left) ?? 0, e),
|
|
5424
5424
|
...xt,
|
|
5425
5425
|
...p ? {
|
|
5426
5426
|
width: "100%",
|
|
@@ -5446,19 +5446,19 @@ function mc({ settings: t, isEditor: e, metadata: n, activeEvent: r }) {
|
|
|
5446
5446
|
]
|
|
5447
5447
|
}
|
|
5448
5448
|
),
|
|
5449
|
-
|
|
5449
|
+
We === "success" && /* @__PURE__ */ u(
|
|
5450
5450
|
"p",
|
|
5451
5451
|
{
|
|
5452
5452
|
className: `${o}-success`,
|
|
5453
|
-
style: { ...
|
|
5453
|
+
style: { ...Rt },
|
|
5454
5454
|
children: G
|
|
5455
5455
|
}
|
|
5456
5456
|
),
|
|
5457
|
-
|
|
5457
|
+
We === "error" && /* @__PURE__ */ u(
|
|
5458
5458
|
"p",
|
|
5459
5459
|
{
|
|
5460
5460
|
className: `${o}-error`,
|
|
5461
|
-
style: { ...
|
|
5461
|
+
style: { ...Rt },
|
|
5462
5462
|
role: "alert",
|
|
5463
5463
|
children: ye ?? Ct ?? Q
|
|
5464
5464
|
}
|
|
@@ -6085,7 +6085,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6085
6085
|
{ name: "message", type: "textarea", placeholder: "Enter your message", label: "Message", isRequired: !1, error: "Message is required" },
|
|
6086
6086
|
{ name: "message2", type: "textarea", placeholder: "Enter your message 2", label: "Message 2", isRequired: !1, error: "Message 2 is required" },
|
|
6087
6087
|
{ name: "message3", type: "textarea", placeholder: "Enter your message 3", label: "Message 3", isRequired: !1, error: "Message 3 is required" }
|
|
6088
|
-
],
|
|
6088
|
+
], Yn = {
|
|
6089
6089
|
fontSettings: {
|
|
6090
6090
|
type: "object",
|
|
6091
6091
|
display: { type: "font-settings-weight" },
|
|
@@ -6297,7 +6297,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6297
6297
|
display: { type: "font-family-select" }
|
|
6298
6298
|
},
|
|
6299
6299
|
inputFontSettings: {
|
|
6300
|
-
...
|
|
6300
|
+
...Yn.fontSettings,
|
|
6301
6301
|
scope: "common",
|
|
6302
6302
|
title: "Input",
|
|
6303
6303
|
display: { type: "font-settings-weight" }
|
|
@@ -6333,7 +6333,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6333
6333
|
display: { type: "text-appearance" }
|
|
6334
6334
|
},
|
|
6335
6335
|
buttonFontSettings: {
|
|
6336
|
-
...
|
|
6336
|
+
...Yn.fontSettings,
|
|
6337
6337
|
scope: "common",
|
|
6338
6338
|
title: "Button",
|
|
6339
6339
|
display: { type: "font-settings-weight" }
|
|
@@ -6369,7 +6369,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6369
6369
|
display: { type: "text-appearance" }
|
|
6370
6370
|
},
|
|
6371
6371
|
labelFontSettings: {
|
|
6372
|
-
...
|
|
6372
|
+
...Yn.fontSettings,
|
|
6373
6373
|
scope: "common",
|
|
6374
6374
|
title: "Label",
|
|
6375
6375
|
display: { type: "font-settings-weight", visible: !1 }
|
|
@@ -6405,7 +6405,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6405
6405
|
display: { type: "text-appearance", visible: !1 }
|
|
6406
6406
|
},
|
|
6407
6407
|
statusFontSettings: {
|
|
6408
|
-
...
|
|
6408
|
+
...Yn.fontSettings,
|
|
6409
6409
|
scope: "common",
|
|
6410
6410
|
title: "Success/Error"
|
|
6411
6411
|
},
|
|
@@ -6722,7 +6722,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;\r
|
|
|
6722
6722
|
schema: bc,
|
|
6723
6723
|
sourceCode: fc
|
|
6724
6724
|
};
|
|
6725
|
-
function
|
|
6725
|
+
function Xn(t) {
|
|
6726
6726
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
6727
6727
|
}
|
|
6728
6728
|
function Cc(t) {
|
|
@@ -6908,19 +6908,19 @@ function Cc(t) {
|
|
|
6908
6908
|
align-items: center;
|
|
6909
6909
|
}
|
|
6910
6910
|
.${t}-success {
|
|
6911
|
-
margin-top: ${
|
|
6912
|
-
font-size: ${
|
|
6911
|
+
margin-top: ${Xn(8)};
|
|
6912
|
+
font-size: ${Xn(14)};
|
|
6913
6913
|
color: var(--${t}-success-success-color, var(--${t}-success-color));
|
|
6914
6914
|
}
|
|
6915
6915
|
.${t}-error {
|
|
6916
|
-
margin-top: ${
|
|
6917
|
-
font-size: ${
|
|
6916
|
+
margin-top: ${Xn(8)};
|
|
6917
|
+
font-size: ${Xn(14)};
|
|
6918
6918
|
color: var(--${t}-error-error-color, var(--${t}-error-color));
|
|
6919
6919
|
}
|
|
6920
6920
|
`;
|
|
6921
6921
|
}
|
|
6922
6922
|
const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
6923
|
-
const { prefix: o } =
|
|
6923
|
+
const { prefix: o } = Ze(), {
|
|
6924
6924
|
fields: l = [{ name: "email", type: "email", placeholder: "Your email" }],
|
|
6925
6925
|
buttonIcon: i,
|
|
6926
6926
|
buttonLabel: a,
|
|
@@ -6943,14 +6943,14 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
6943
6943
|
statusLineHeight: E,
|
|
6944
6944
|
statusLetterSpacing: w,
|
|
6945
6945
|
statusWordSpacing: _,
|
|
6946
|
-
statusTextAppearance:
|
|
6946
|
+
statusTextAppearance: R,
|
|
6947
6947
|
iconMaxWidth: O,
|
|
6948
6948
|
minHeight: B,
|
|
6949
6949
|
corners: U,
|
|
6950
6950
|
stroke: X,
|
|
6951
6951
|
stateOverrides: v,
|
|
6952
6952
|
inputPadding: N,
|
|
6953
|
-
buttonPadding:
|
|
6953
|
+
buttonPadding: I,
|
|
6954
6954
|
successMessage: k = "Thanks for subscribing!",
|
|
6955
6955
|
errorMessage: L = "Please, fill all required fields."
|
|
6956
6956
|
} = t, H = l.slice(0, Math.min(s, l.length)), [Z, rt] = at(
|
|
@@ -6958,10 +6958,10 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
6958
6958
|
), [K, ct] = at("idle"), [D, ot] = at(null), bt = r === "success" ? "success" : r === "error" ? "error" : K, mt = r === "error" ? L : D, wt = r === "filled", A = Mt(() => {
|
|
6959
6959
|
if (!wt) return Z;
|
|
6960
6960
|
let Tt = null;
|
|
6961
|
-
for (const
|
|
6962
|
-
(Z[
|
|
6961
|
+
for (const Rt of H)
|
|
6962
|
+
(Z[Rt.name] ?? "").trim().length > 0 || (Tt = Tt ?? { ...Z }, Tt[Rt.name] = "Filled");
|
|
6963
6963
|
return Tt ?? Z;
|
|
6964
|
-
}, [wt, Z, H]), J = bt === "error" ?
|
|
6964
|
+
}, [wt, Z, H]), J = bt === "error" ? ar(H, A) : null, T = r && r !== "default" ? `${o}-state-${r}` : "", C = H.some((Tt) => (A[Tt.name] ?? "").trim().length > 0), j = T !== `${o}-state-filled` && C ? `${o}-state-filled` : "", q = `${T} ${j}`.trim(), G = n == null ? void 0 : n.submitUrl, Q = a ?? "", nt = (i == null ? void 0 : i.icon) ?? "", et = (i == null ? void 0 : i.mode) === "On", dt = Q || "Submit", $t = {
|
|
6965
6965
|
fontSettings: {
|
|
6966
6966
|
fontFamily: d,
|
|
6967
6967
|
fontWeight: (c == null ? void 0 : c.fontWeight) ?? 400,
|
|
@@ -6995,9 +6995,9 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
6995
6995
|
lineHeight: E,
|
|
6996
6996
|
letterSpacing: w ?? 0,
|
|
6997
6997
|
wordSpacing: _ ?? 0,
|
|
6998
|
-
textAppearance:
|
|
6998
|
+
textAppearance: R,
|
|
6999
6999
|
color: t.successColor ?? "#22c55e"
|
|
7000
|
-
}, pt = be(Qt($t, e)), V = be(Qt(ut, e)), tt = be(Qt(z, e)), xt =
|
|
7000
|
+
}, pt = be(Qt($t, e)), V = be(Qt(ut, e)), tt = be(Qt(z, e)), xt = mr(o, {
|
|
7001
7001
|
strokeColor: t.strokeColor,
|
|
7002
7002
|
inputColor: t.inputColor,
|
|
7003
7003
|
placeholderColor: t.placeholderColor,
|
|
@@ -7007,12 +7007,12 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7007
7007
|
inputTextColor: t.inputTextColor ?? ($t == null ? void 0 : $t.color) ?? "#111111",
|
|
7008
7008
|
buttonTextColor: t.buttonTextColor ?? (ut == null ? void 0 : ut.color) ?? "#ffffff"
|
|
7009
7009
|
}, wc, $c, v), vt = {
|
|
7010
|
-
borderRadius:
|
|
7011
|
-
borderWidth:
|
|
7010
|
+
borderRadius: W(U, e),
|
|
7011
|
+
borderWidth: W(X, e),
|
|
7012
7012
|
borderStyle: "solid"
|
|
7013
|
-
}, Ot = { borderLeftWidth:
|
|
7013
|
+
}, Ot = { borderLeftWidth: W(X, e) }, Dt = async (Tt) => {
|
|
7014
7014
|
Tt.preventDefault();
|
|
7015
|
-
const
|
|
7015
|
+
const Rt = Object.fromEntries(
|
|
7016
7016
|
H.map((_t) => {
|
|
7017
7017
|
var jt;
|
|
7018
7018
|
return [_t.name, ((jt = Z[_t.name]) == null ? void 0 : jt.trim()) ?? ""];
|
|
@@ -7022,8 +7022,8 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7022
7022
|
ct("error"), ot("No integrations were found for this form.");
|
|
7023
7023
|
return;
|
|
7024
7024
|
}
|
|
7025
|
-
if (Object.keys(
|
|
7026
|
-
const Kt =
|
|
7025
|
+
if (Object.keys(Rt).length === 0) return;
|
|
7026
|
+
const Kt = ar(H, Z);
|
|
7027
7027
|
if (Kt) {
|
|
7028
7028
|
ct("error"), ot(Kt);
|
|
7029
7029
|
return;
|
|
@@ -7033,7 +7033,7 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7033
7033
|
const _t = await fetch(G, {
|
|
7034
7034
|
method: "POST",
|
|
7035
7035
|
headers: { "Content-Type": "application/json" },
|
|
7036
|
-
body: JSON.stringify(
|
|
7036
|
+
body: JSON.stringify(Rt)
|
|
7037
7037
|
});
|
|
7038
7038
|
if (!_t.ok) {
|
|
7039
7039
|
const jt = await _t.text();
|
|
@@ -7053,8 +7053,8 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7053
7053
|
className: `${o}-form`,
|
|
7054
7054
|
style: {
|
|
7055
7055
|
...vt,
|
|
7056
|
-
height:
|
|
7057
|
-
minHeight:
|
|
7056
|
+
height: W(B, e),
|
|
7057
|
+
minHeight: W(B, e)
|
|
7058
7058
|
},
|
|
7059
7059
|
children: [
|
|
7060
7060
|
/* @__PURE__ */ u(
|
|
@@ -7069,16 +7069,16 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7069
7069
|
name: Tt.name,
|
|
7070
7070
|
autoComplete: "off",
|
|
7071
7071
|
value: A[Tt.name] ?? "",
|
|
7072
|
-
onChange: (
|
|
7072
|
+
onChange: (Rt) => rt((Kt) => ({ ...Kt, [Tt.name]: Rt.target.value })),
|
|
7073
7073
|
placeholder: Tt.placeholder,
|
|
7074
7074
|
required: Tt.isRequired ?? Tt.type === "email",
|
|
7075
7075
|
className: `${o}-input`,
|
|
7076
7076
|
style: {
|
|
7077
7077
|
...pt,
|
|
7078
|
-
paddingRight:
|
|
7079
|
-
paddingLeft:
|
|
7080
|
-
paddingTop:
|
|
7081
|
-
paddingBottom:
|
|
7078
|
+
paddingRight: W(N.right, e),
|
|
7079
|
+
paddingLeft: W(N.left, e),
|
|
7080
|
+
paddingTop: W(N.top, e),
|
|
7081
|
+
paddingBottom: W(N.bottom, e)
|
|
7082
7082
|
}
|
|
7083
7083
|
},
|
|
7084
7084
|
Tt.name
|
|
@@ -7094,17 +7094,17 @@ const Sc = ({ settings: t, isEditor: e, metadata: n, activeEvent: r }) => {
|
|
|
7094
7094
|
style: {
|
|
7095
7095
|
...V,
|
|
7096
7096
|
...Ot,
|
|
7097
|
-
paddingRight: I
|
|
7098
|
-
paddingLeft: I
|
|
7099
|
-
paddingTop: I
|
|
7100
|
-
paddingBottom: I
|
|
7097
|
+
paddingRight: W(I.right, e),
|
|
7098
|
+
paddingLeft: W(I.left, e),
|
|
7099
|
+
paddingTop: W(I.top, e),
|
|
7100
|
+
paddingBottom: W(I.bottom, e)
|
|
7101
7101
|
},
|
|
7102
7102
|
children: K === "submitting" ? "..." : et ? nt && /* @__PURE__ */ u(
|
|
7103
7103
|
Fe,
|
|
7104
7104
|
{
|
|
7105
7105
|
url: nt,
|
|
7106
7106
|
className: `${o}-submitBtnIcon`,
|
|
7107
|
-
style: { maxWidth:
|
|
7107
|
+
style: { maxWidth: W(O ?? 0, e) },
|
|
7108
7108
|
fill: `var(--${o}-button-text-color)`,
|
|
7109
7109
|
hoverFill: `var(--${o}-button-text-color)`
|
|
7110
7110
|
}
|
|
@@ -8365,7 +8365,7 @@ function Uo(t) {
|
|
|
8365
8365
|
}
|
|
8366
8366
|
`;
|
|
8367
8367
|
}
|
|
8368
|
-
const
|
|
8368
|
+
const Wc = 30, Ic = 20, kr = 2, Rc = 2, kc = (t, e) => Array.from({ length: e }, () => t).flat(), Fc = (t, e) => {
|
|
8369
8369
|
const n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
8370
8370
|
return r.right > n.left && r.left < n.right;
|
|
8371
8371
|
}, Mc = (t, e) => {
|
|
@@ -8456,12 +8456,12 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8456
8456
|
}
|
|
8457
8457
|
);
|
|
8458
8458
|
}, Nc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
8459
|
-
const { prefix: o } =
|
|
8459
|
+
const { prefix: o } = Ze(), { speed: l, direction: i, pauseOnHover: a, gap: s, imageMaxWidth: d, imageMaxHeight: c, imageFit: $, hoverEffect: g } = t, h = !n || !!r, p = h && g !== "off" && g !== "randomize" ? `${o}-image-hover-${g}` : void 0, m = n ? !!r : !0, y = ((e == null ? void 0 : e.length) ?? 0) > 0 && (m || !!n), x = Math.max(0, l) * Wc, f = (A) => W(A, n ?? !1), F = St(null), M = St(null), P = St(null), [b, E] = at(0), [w, _] = at(0), R = m && a === "on", [O, B] = at(!1), [U, X] = at({}), v = St(U);
|
|
8460
8460
|
v.current = U;
|
|
8461
|
-
const N = St(null),
|
|
8461
|
+
const N = St(null), I = St(0), k = St(null), L = Mt(() => (e ?? []).map((A) => {
|
|
8462
8462
|
var J;
|
|
8463
8463
|
return ((J = A.image) == null ? void 0 : J.url) ?? "";
|
|
8464
|
-
}).join("\0"), [e]), [H, Z] = at(
|
|
8464
|
+
}).join("\0"), [e]), [H, Z] = at(kr), rt = Mt(() => {
|
|
8465
8465
|
const A = e ?? [];
|
|
8466
8466
|
return !m || A.length === 0 ? A : kc(A, H);
|
|
8467
8467
|
}, [e, m, H]), K = Mt(
|
|
@@ -8470,10 +8470,10 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8470
8470
|
return !!((J = A.image) != null && J.url);
|
|
8471
8471
|
}).length,
|
|
8472
8472
|
[rt]
|
|
8473
|
-
), ct = y ?
|
|
8473
|
+
), ct = y ? Rc : 1;
|
|
8474
8474
|
ne(() => {
|
|
8475
|
-
|
|
8476
|
-
}, [L]),
|
|
8475
|
+
I.current = 0, X({}), N.current = null, Z(kr), E(0);
|
|
8476
|
+
}, [L]), Wt(() => {
|
|
8477
8477
|
if (!h || g !== "randomize") return;
|
|
8478
8478
|
const A = F.current;
|
|
8479
8479
|
if (!A) return;
|
|
@@ -8515,7 +8515,7 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8515
8515
|
const dt = Q / H;
|
|
8516
8516
|
if (dt > 0 && G > 0) {
|
|
8517
8517
|
const $t = Math.max(
|
|
8518
|
-
|
|
8518
|
+
kr,
|
|
8519
8519
|
Math.ceil(G / dt) + 1
|
|
8520
8520
|
);
|
|
8521
8521
|
if ($t !== H) {
|
|
@@ -8562,14 +8562,14 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8562
8562
|
return T.observe(A), () => T.disconnect();
|
|
8563
8563
|
}, [y, ct, rt, n, s, d, c, b, $, U]);
|
|
8564
8564
|
const D = () => {
|
|
8565
|
-
|
|
8565
|
+
R && B(!0);
|
|
8566
8566
|
}, ot = () => {
|
|
8567
|
-
|
|
8567
|
+
R && B(!1);
|
|
8568
8568
|
}, bt = me(() => {
|
|
8569
8569
|
var A;
|
|
8570
|
-
|
|
8570
|
+
I.current = Math.min(
|
|
8571
8571
|
K,
|
|
8572
|
-
|
|
8572
|
+
I.current + 1
|
|
8573
8573
|
), (A = k.current) == null || A.call(k);
|
|
8574
8574
|
}, [K]), mt = me((A, J) => {
|
|
8575
8575
|
X((T) => {
|
|
@@ -8579,7 +8579,7 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8579
8579
|
return { ...T, [A]: q };
|
|
8580
8580
|
});
|
|
8581
8581
|
}, [e]), wt = (A, J, T, C) => {
|
|
8582
|
-
const j = h && g === "randomize" && $.display === "Cover" ? U[T] ?? A : A, q = `max(${f(s)}, ${
|
|
8582
|
+
const j = h && g === "randomize" && $.display === "Cover" ? U[T] ?? A : A, q = `max(${f(s)}, ${Ic}px)`, G = `calc(-0.5 * (${q} + ${f(s)}))`;
|
|
8583
8583
|
return /* @__PURE__ */ st(
|
|
8584
8584
|
"div",
|
|
8585
8585
|
{
|
|
@@ -8623,7 +8623,7 @@ const Ic = 30, Rc = 20, Wr = 2, Wc = 2, kc = (t, e) => Array.from({ length: e },
|
|
|
8623
8623
|
);
|
|
8624
8624
|
};
|
|
8625
8625
|
if (y) {
|
|
8626
|
-
const A = m ?
|
|
8626
|
+
const A = m ? R && O ? "paused" : "running" : "paused";
|
|
8627
8627
|
return /* @__PURE__ */ st(
|
|
8628
8628
|
"div",
|
|
8629
8629
|
{
|
|
@@ -9628,7 +9628,7 @@ function Go(t) {
|
|
|
9628
9628
|
`;
|
|
9629
9629
|
}
|
|
9630
9630
|
const zc = 30, Yo = 2, Vc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
9631
|
-
const { prefix: o } =
|
|
9631
|
+
const { prefix: o } = Ze(), { autoplay: l, align: i, speed: a, direction: s, pauseOnHover: d, gap: c, cardWidth: $, corners: g, stroke: h, strokeColor: p, bgColor: m, padding: S, logoMarginTop: y, logoWidth: x, logoHeight: f, captionMarginTop: F } = t, M = !!(n && !r), P = ((e == null ? void 0 : e.length) ?? 0) > 0, b = l === "on" && (!n || !!r), E = P && (b || !!n), w = Math.max(0, a) * zc, _ = (z) => W(z, n ?? !1), R = St(null), O = St(null), B = St(null), [U, X] = at(0), [v, N] = at(0), [I, k] = at(0), L = b && d === "on", [H, Z] = at(!1), rt = St(null), [K, ct] = at(0), [D, ot] = at(0), bt = St(null), mt = (z) => {
|
|
9632
9632
|
var V, tt, xt, vt, Ot;
|
|
9633
9633
|
return {
|
|
9634
9634
|
fontSettings: {
|
|
@@ -9656,16 +9656,16 @@ const zc = 30, Yo = 2, Vc = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9656
9656
|
), T = Mt(() => !E || (e == null ? void 0 : e.length) === 0 ? 1 : v <= 0 || U <= 0 ? Yo : Math.max(Yo, Math.ceil(U / v) + 1), [E, e == null ? void 0 : e.length, v, U]);
|
|
9657
9657
|
ne(() => {
|
|
9658
9658
|
if (!E) return;
|
|
9659
|
-
const z =
|
|
9659
|
+
const z = R.current, pt = B.current;
|
|
9660
9660
|
if (!z || !pt) return;
|
|
9661
9661
|
let V = 0;
|
|
9662
9662
|
const tt = () => {
|
|
9663
|
-
const Ot = z.getBoundingClientRect().width, Dt = pt.getBoundingClientRect().width, Tt = bt.current,
|
|
9663
|
+
const Ot = z.getBoundingClientRect().width, Dt = pt.getBoundingClientRect().width, Tt = bt.current, Rt = typeof Tt == "number" && Math.abs(Tt - Dt) <= 0.25;
|
|
9664
9664
|
if (bt.current = Dt, X(Ot), typeof Dt == "number" && Dt > 0 && v <= 0) {
|
|
9665
9665
|
N(Dt);
|
|
9666
9666
|
return;
|
|
9667
9667
|
}
|
|
9668
|
-
|
|
9668
|
+
Rt && Dt !== v ? N(Dt) : !Rt && v <= 0 && (cancelAnimationFrame(V), V = requestAnimationFrame(tt));
|
|
9669
9669
|
}, xt = () => {
|
|
9670
9670
|
cancelAnimationFrame(V), V = requestAnimationFrame(tt);
|
|
9671
9671
|
};
|
|
@@ -9754,7 +9754,7 @@ const zc = 30, Yo = 2, Vc = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9754
9754
|
pointerEvents: "auto",
|
|
9755
9755
|
...typeof (tt == null ? void 0 : tt.minHeightPx) == "number" && tt.minHeightPx > 0 ? { minHeight: tt.minHeightPx } : {}
|
|
9756
9756
|
},
|
|
9757
|
-
children: /* @__PURE__ */ u(
|
|
9757
|
+
children: /* @__PURE__ */ u(An, { content: pt })
|
|
9758
9758
|
}
|
|
9759
9759
|
)
|
|
9760
9760
|
]
|
|
@@ -9931,13 +9931,13 @@ const zc = 30, Yo = 2, Vc = ({ settings: t, content: e, isEditor: n, isPreviewMo
|
|
|
9931
9931
|
return /* @__PURE__ */ st(
|
|
9932
9932
|
"div",
|
|
9933
9933
|
{
|
|
9934
|
-
ref:
|
|
9934
|
+
ref: R,
|
|
9935
9935
|
className: Et(`${o}-wrapper`, `${o}-marquee-wrapper`),
|
|
9936
9936
|
"aria-label": "Testimonials",
|
|
9937
9937
|
style: {
|
|
9938
9938
|
overflow: "hidden",
|
|
9939
9939
|
width: "100%",
|
|
9940
|
-
...
|
|
9940
|
+
...I > 0 ? { height: I } : {}
|
|
9941
9941
|
},
|
|
9942
9942
|
children: [
|
|
9943
9943
|
/* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: Go(o) } }),
|
|
@@ -11243,7 +11243,7 @@ function Uc(t) {
|
|
|
11243
11243
|
`;
|
|
11244
11244
|
}
|
|
11245
11245
|
const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
11246
|
-
const { prefix: o } =
|
|
11246
|
+
const { prefix: o } = Ze(), l = e || [], { autoplay: i, delay: a, align: s, width: d, imageMarginTop: c, textMarginTop: $, captionMarginTop: g, imageWidth: h, imageHeight: p, controlsWidth: m, controlsColor: S, controlsHoverColor: y } = t, x = i === "on" && r, [f, F] = at(0), [M, P] = at(null), [b, E] = at(!1), w = St(null), _ = Mt(() => {
|
|
11247
11247
|
switch (s) {
|
|
11248
11248
|
case "center":
|
|
11249
11249
|
return "center";
|
|
@@ -11253,7 +11253,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11253
11253
|
default:
|
|
11254
11254
|
return "flex-start";
|
|
11255
11255
|
}
|
|
11256
|
-
}, [s]),
|
|
11256
|
+
}, [s]), R = Mt(() => {
|
|
11257
11257
|
switch (s) {
|
|
11258
11258
|
case "center":
|
|
11259
11259
|
return "center";
|
|
@@ -11264,7 +11264,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11264
11264
|
return "left";
|
|
11265
11265
|
}
|
|
11266
11266
|
}, [s]);
|
|
11267
|
-
|
|
11267
|
+
Wt(() => {
|
|
11268
11268
|
F(0), P(null), E(!1);
|
|
11269
11269
|
}, [l.length]);
|
|
11270
11270
|
const O = l[f], B = M === null ? null : l[M], U = (A) => {
|
|
@@ -11289,14 +11289,14 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11289
11289
|
}, X = U("text"), v = U("caption"), N = l.length > 1 && l.some((A) => {
|
|
11290
11290
|
var J, T;
|
|
11291
11291
|
return (((J = A.text) == null ? void 0 : J.length) ?? 0) > 0 || (((T = A.caption) == null ? void 0 : T.length) ?? 0) > 0;
|
|
11292
|
-
}),
|
|
11292
|
+
}), I = St(null), [k, L] = at(0), [H, Z] = at(0), rt = t.controls ?? { mode: "Off", icon: null }, K = l.length > 1, ct = me((A, J) => !K || J === A ? A : (w.current && window.clearTimeout(w.current), P(A), E(!0), w.current = window.setTimeout(() => {
|
|
11293
11293
|
P(null), E(!1), w.current = null;
|
|
11294
11294
|
}, 300), J), [K]), D = me(() => {
|
|
11295
11295
|
K && F((A) => ct(A, (A - 1 + l.length) % l.length));
|
|
11296
11296
|
}, [K, ct, l.length]), ot = me(() => {
|
|
11297
11297
|
K && F((A) => ct(A, (A + 1) % l.length));
|
|
11298
11298
|
}, [K, ct, l.length]);
|
|
11299
|
-
|
|
11299
|
+
Wt(() => {
|
|
11300
11300
|
if (!x || !K) return;
|
|
11301
11301
|
const A = Math.max(300, Number.isFinite(a * 1e3) ? a * 1e3 : 0), J = window.setInterval(() => {
|
|
11302
11302
|
F((T) => ct(T, (T + 1) % l.length));
|
|
@@ -11304,7 +11304,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11304
11304
|
return () => {
|
|
11305
11305
|
window.clearInterval(J);
|
|
11306
11306
|
};
|
|
11307
|
-
}, [x, K, ct, l.length, a]),
|
|
11307
|
+
}, [x, K, ct, l.length, a]), Wt(() => () => {
|
|
11308
11308
|
w.current && window.clearTimeout(w.current);
|
|
11309
11309
|
}, []);
|
|
11310
11310
|
const bt = (A, J) => {
|
|
@@ -11317,7 +11317,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11317
11317
|
{
|
|
11318
11318
|
"data-controls": "textMarginTop",
|
|
11319
11319
|
className: `${o}-control`,
|
|
11320
|
-
style: { height:
|
|
11320
|
+
style: { height: W($ ?? 0, n ?? !1) }
|
|
11321
11321
|
}
|
|
11322
11322
|
),
|
|
11323
11323
|
/* @__PURE__ */ u(
|
|
@@ -11327,10 +11327,10 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11327
11327
|
style: {
|
|
11328
11328
|
...Qt(X, n),
|
|
11329
11329
|
...T && T > 0 ? { minHeight: T } : {},
|
|
11330
|
-
textAlign:
|
|
11330
|
+
textAlign: R,
|
|
11331
11331
|
pointerEvents: "auto"
|
|
11332
11332
|
},
|
|
11333
|
-
children: /* @__PURE__ */ u(
|
|
11333
|
+
children: /* @__PURE__ */ u(An, { content: A.text })
|
|
11334
11334
|
}
|
|
11335
11335
|
)
|
|
11336
11336
|
] }),
|
|
@@ -11340,10 +11340,10 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11340
11340
|
{
|
|
11341
11341
|
"data-controls": "imageMarginTop",
|
|
11342
11342
|
className: `${o}-control`,
|
|
11343
|
-
style: { height:
|
|
11343
|
+
style: { height: W(c ?? 0, n ?? !1) }
|
|
11344
11344
|
}
|
|
11345
11345
|
),
|
|
11346
|
-
/* @__PURE__ */ u("div", { style: { width:
|
|
11346
|
+
/* @__PURE__ */ u("div", { style: { width: W(h ?? 0, n ?? !1), height: W(p ?? 0, n ?? !1) }, children: ((q = A.image) == null ? void 0 : q.url) && /* @__PURE__ */ u(
|
|
11347
11347
|
"img",
|
|
11348
11348
|
{
|
|
11349
11349
|
src: (G = A.image) == null ? void 0 : G.url,
|
|
@@ -11359,7 +11359,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11359
11359
|
{
|
|
11360
11360
|
"data-controls": "captionMarginTop",
|
|
11361
11361
|
className: `${o}-control`,
|
|
11362
|
-
style: { height:
|
|
11362
|
+
style: { height: W(g ?? 0, n ?? !1) }
|
|
11363
11363
|
}
|
|
11364
11364
|
),
|
|
11365
11365
|
/* @__PURE__ */ u(
|
|
@@ -11369,10 +11369,10 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11369
11369
|
style: {
|
|
11370
11370
|
...Qt(v, n),
|
|
11371
11371
|
...C && C > 0 ? { minHeight: C } : {},
|
|
11372
|
-
textAlign:
|
|
11372
|
+
textAlign: R,
|
|
11373
11373
|
pointerEvents: "auto"
|
|
11374
11374
|
},
|
|
11375
|
-
children: /* @__PURE__ */ u(
|
|
11375
|
+
children: /* @__PURE__ */ u(An, { content: A.caption })
|
|
11376
11376
|
}
|
|
11377
11377
|
)
|
|
11378
11378
|
] })
|
|
@@ -11385,7 +11385,7 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11385
11385
|
mt({ maxTextPx: 0, maxCaptionPx: 0 });
|
|
11386
11386
|
return;
|
|
11387
11387
|
}
|
|
11388
|
-
const A =
|
|
11388
|
+
const A = I.current;
|
|
11389
11389
|
if (!A) return;
|
|
11390
11390
|
const J = () => {
|
|
11391
11391
|
ci(A, mt);
|
|
@@ -11403,12 +11403,12 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11403
11403
|
"div",
|
|
11404
11404
|
{
|
|
11405
11405
|
className: `${o}-wrapper`,
|
|
11406
|
-
style: { width:
|
|
11406
|
+
style: { width: W(d ?? 0, n ?? !1), alignItems: _ },
|
|
11407
11407
|
children: [
|
|
11408
11408
|
N && /* @__PURE__ */ u(
|
|
11409
11409
|
"div",
|
|
11410
11410
|
{
|
|
11411
|
-
ref:
|
|
11411
|
+
ref: I,
|
|
11412
11412
|
"aria-hidden": !0,
|
|
11413
11413
|
style: {
|
|
11414
11414
|
position: "absolute",
|
|
@@ -11436,8 +11436,8 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11436
11436
|
{
|
|
11437
11437
|
className: `${o}-arrow`,
|
|
11438
11438
|
style: {
|
|
11439
|
-
width:
|
|
11440
|
-
height:
|
|
11439
|
+
width: W(m ?? 0.02, n ?? !1),
|
|
11440
|
+
height: W(m ?? 0.02, n ?? !1),
|
|
11441
11441
|
"--arrow-hover-color": y
|
|
11442
11442
|
},
|
|
11443
11443
|
children: /* @__PURE__ */ u(
|
|
@@ -11466,8 +11466,8 @@ const Gc = ({ settings: t, content: e, isEditor: n, isPreviewMode: r }) => {
|
|
|
11466
11466
|
{
|
|
11467
11467
|
className: Et(`${o}-arrow`, `${o}-next-arrow`),
|
|
11468
11468
|
style: {
|
|
11469
|
-
width:
|
|
11470
|
-
height:
|
|
11469
|
+
width: W(m ?? 0.02, n ?? !1),
|
|
11470
|
+
height: W(m ?? 0.02, n ?? !1),
|
|
11471
11471
|
"--arrow-hover-color": y
|
|
11472
11472
|
},
|
|
11473
11473
|
children: /* @__PURE__ */ u(
|
|
@@ -12555,43 +12555,43 @@ function td(t) {
|
|
|
12555
12555
|
}
|
|
12556
12556
|
`;
|
|
12557
12557
|
}
|
|
12558
|
-
const
|
|
12558
|
+
const Re = 500, Ke = "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
12559
12559
|
function ed({ images: t, index: e, imageDisplay: n, originRect: r, reverseClose: o, onClose: l, onPrev: i, onNext: a, counterClassName: s, counterStyle: d }) {
|
|
12560
12560
|
const c = St(null), $ = St(null), [g, h] = at(null), [p, m] = at(r ? "opening" : "open"), [S, y] = at(!0), x = St(e), f = me(() => {
|
|
12561
12561
|
const w = c.current, _ = $.current;
|
|
12562
12562
|
if (!w || !_) return;
|
|
12563
|
-
const
|
|
12563
|
+
const R = w.getBoundingClientRect(), O = R.width, B = R.height, U = _.naturalWidth, X = _.naturalHeight;
|
|
12564
12564
|
if (!O || !B || !U || !X) return;
|
|
12565
12565
|
if (n === "Cover") {
|
|
12566
|
-
h({ width: O, height: B, left:
|
|
12566
|
+
h({ width: O, height: B, left: R.left, top: R.top });
|
|
12567
12567
|
return;
|
|
12568
12568
|
}
|
|
12569
12569
|
const v = U / X, N = O / B;
|
|
12570
12570
|
if (v > N) {
|
|
12571
|
-
const
|
|
12572
|
-
h({ width: O, height:
|
|
12571
|
+
const I = O / v;
|
|
12572
|
+
h({ width: O, height: I, left: R.left, top: R.top + (B - I) / 2 });
|
|
12573
12573
|
} else {
|
|
12574
|
-
const
|
|
12575
|
-
h({ width:
|
|
12574
|
+
const I = B * v;
|
|
12575
|
+
h({ width: I, height: B, left: R.left + (O - I) / 2, top: R.top });
|
|
12576
12576
|
}
|
|
12577
12577
|
}, [n]);
|
|
12578
|
-
|
|
12578
|
+
Wt(() => {
|
|
12579
12579
|
f();
|
|
12580
12580
|
const w = c.current;
|
|
12581
12581
|
if (!w) return;
|
|
12582
12582
|
const _ = new ResizeObserver(() => f());
|
|
12583
12583
|
return _.observe(w), () => _.disconnect();
|
|
12584
|
-
}, [f, e]),
|
|
12584
|
+
}, [f, e]), Wt(() => {
|
|
12585
12585
|
if (p !== "opening" || !g) return;
|
|
12586
12586
|
const w = { id: 0 };
|
|
12587
12587
|
return w.id = requestAnimationFrame(() => {
|
|
12588
12588
|
w.id = requestAnimationFrame(() => m("open"));
|
|
12589
12589
|
}), () => cancelAnimationFrame(w.id);
|
|
12590
|
-
}, [p, g]),
|
|
12590
|
+
}, [p, g]), Wt(() => {
|
|
12591
12591
|
if (p !== "closing") return;
|
|
12592
|
-
const w = setTimeout(() => l(),
|
|
12592
|
+
const w = setTimeout(() => l(), Re);
|
|
12593
12593
|
return () => clearTimeout(w);
|
|
12594
|
-
}, [p, l]),
|
|
12594
|
+
}, [p, l]), Wt(() => {
|
|
12595
12595
|
x.current !== e && y(!1), x.current = e;
|
|
12596
12596
|
}, [e]);
|
|
12597
12597
|
const F = () => {
|
|
@@ -12618,7 +12618,7 @@ function ed({ images: t, index: e, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12618
12618
|
inset: 0,
|
|
12619
12619
|
background: "rgba(28,31,34,0.9)",
|
|
12620
12620
|
opacity: M ? 1 : 0,
|
|
12621
|
-
transition: `opacity ${
|
|
12621
|
+
transition: `opacity ${Re}ms ${Ke}`,
|
|
12622
12622
|
pointerEvents: "none"
|
|
12623
12623
|
}
|
|
12624
12624
|
}
|
|
@@ -12660,7 +12660,7 @@ function ed({ images: t, index: e, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12660
12660
|
alignItems: "center",
|
|
12661
12661
|
height: "10%",
|
|
12662
12662
|
opacity: M ? 1 : 0,
|
|
12663
|
-
transition: `opacity ${
|
|
12663
|
+
transition: `opacity ${Re}ms ${Ke}`
|
|
12664
12664
|
},
|
|
12665
12665
|
children: t.length > 1 && /* @__PURE__ */ st("p", { className: s, style: d, children: [
|
|
12666
12666
|
e + 1,
|
|
@@ -12686,7 +12686,7 @@ function ed({ images: t, index: e, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12686
12686
|
height: E.height,
|
|
12687
12687
|
objectFit: n === "Cover" ? "cover" : "contain",
|
|
12688
12688
|
opacity: P && !b ? 0 : 1,
|
|
12689
|
-
transition: P && !b ? `opacity ${
|
|
12689
|
+
transition: P && !b ? `opacity ${Re}ms ${Ke}` : b || S ? `top ${Re}ms ${Ke}, left ${Re}ms ${Ke}, width ${Re}ms ${Ke}, height ${Re}ms ${Ke}` : "none",
|
|
12690
12690
|
pointerEvents: "none",
|
|
12691
12691
|
zIndex: 9998
|
|
12692
12692
|
}
|
|
@@ -12733,7 +12733,7 @@ function ed({ images: t, index: e, imageDisplay: n, originRect: r, reverseClose:
|
|
|
12733
12733
|
);
|
|
12734
12734
|
}
|
|
12735
12735
|
function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata: o, activeEvent: l, layoutId: i }) {
|
|
12736
|
-
const { prefix: a } =
|
|
12736
|
+
const { prefix: a } = Ze(), {
|
|
12737
12737
|
type: s = "A",
|
|
12738
12738
|
gridLayout: d,
|
|
12739
12739
|
textBoxWidth: c,
|
|
@@ -12753,14 +12753,14 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12753
12753
|
titleFontFamily: E,
|
|
12754
12754
|
titleFontSettings: w,
|
|
12755
12755
|
titleFontSize: _,
|
|
12756
|
-
titleLineHeight:
|
|
12756
|
+
titleLineHeight: R,
|
|
12757
12757
|
titleLetterSpacing: O,
|
|
12758
12758
|
titleWordSpacing: B,
|
|
12759
12759
|
titleTextAppearance: U,
|
|
12760
12760
|
subtitleFontFamily: X,
|
|
12761
12761
|
subtitleFontSettings: v,
|
|
12762
12762
|
subtitleFontSize: N,
|
|
12763
|
-
subtitleLineHeight:
|
|
12763
|
+
subtitleLineHeight: I,
|
|
12764
12764
|
subtitleLetterSpacing: k,
|
|
12765
12765
|
subtitleWordSpacing: L,
|
|
12766
12766
|
subtitleTextAppearance: H,
|
|
@@ -12778,7 +12778,7 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12778
12778
|
fontStyle: (w == null ? void 0 : w.fontStyle) ?? "normal"
|
|
12779
12779
|
},
|
|
12780
12780
|
fontSize: _ ?? 0.01,
|
|
12781
|
-
lineHeight:
|
|
12781
|
+
lineHeight: R,
|
|
12782
12782
|
letterSpacing: O ?? 0,
|
|
12783
12783
|
wordSpacing: B ?? 0,
|
|
12784
12784
|
textAppearance: U,
|
|
@@ -12792,7 +12792,7 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12792
12792
|
fontStyle: (v == null ? void 0 : v.fontStyle) ?? "normal"
|
|
12793
12793
|
},
|
|
12794
12794
|
fontSize: N ?? 0.01,
|
|
12795
|
-
lineHeight:
|
|
12795
|
+
lineHeight: I,
|
|
12796
12796
|
letterSpacing: k ?? 0,
|
|
12797
12797
|
wordSpacing: L ?? 0,
|
|
12798
12798
|
textAppearance: H,
|
|
@@ -12813,11 +12813,11 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12813
12813
|
color: b
|
|
12814
12814
|
}, G = {
|
|
12815
12815
|
...be(Qt(j, n))
|
|
12816
|
-
}, Q =
|
|
12816
|
+
}, Q = mr(a, {
|
|
12817
12817
|
titleColor: M,
|
|
12818
12818
|
subtitleColor: P,
|
|
12819
12819
|
lightboxCounterColor: b
|
|
12820
|
-
}, rd, od), et = `${l && l !== "default" ? `${a}-state-${l}` : ""}`.trim(), dt = g === 0 ? 1 / 0 : g, $t = (e ?? []).slice(0, dt), ut = d.entryWidth ?? 0.2, z = (p == null ? void 0 : p.display) === "Cover", pt = (p == null ? void 0 : p.ratioValue) ?? "1:1", V = (p == null ? void 0 : p.reversed) ?? !1, [tt, xt] = pt.split(":").map(Number), vt = V ? xt : tt, Ot = V ? tt : xt, Dt = `${vt} / ${Ot}`, Tt = vt >= Ot,
|
|
12820
|
+
}, rd, od), et = `${l && l !== "default" ? `${a}-state-${l}` : ""}`.trim(), dt = g === 0 ? 1 / 0 : g, $t = (e ?? []).slice(0, dt), ut = d.entryWidth ?? 0.2, z = (p == null ? void 0 : p.display) === "Cover", pt = (p == null ? void 0 : p.ratioValue) ?? "1:1", V = (p == null ? void 0 : p.reversed) ?? !1, [tt, xt] = pt.split(":").map(Number), vt = V ? xt : tt, Ot = V ? tt : xt, Dt = `${vt} / ${Ot}`, Tt = vt >= Ot, Rt = {
|
|
12821
12821
|
objectFit: z ? "cover" : "contain",
|
|
12822
12822
|
...z && {
|
|
12823
12823
|
aspectRatio: Dt,
|
|
@@ -12825,7 +12825,7 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12825
12825
|
height: Tt ? "auto" : "100%"
|
|
12826
12826
|
}
|
|
12827
12827
|
}, [Kt, _t] = at("ltr"), [jt, fe] = at(0), Xt = St(null);
|
|
12828
|
-
|
|
12828
|
+
Wt(() => {
|
|
12829
12829
|
const At = Xt.current;
|
|
12830
12830
|
if (!At) return;
|
|
12831
12831
|
const qt = new ResizeObserver((yt) => {
|
|
@@ -12833,15 +12833,15 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12833
12833
|
});
|
|
12834
12834
|
return qt.observe(At), () => qt.disconnect();
|
|
12835
12835
|
}, []);
|
|
12836
|
-
const
|
|
12836
|
+
const vn = (() => {
|
|
12837
12837
|
const At = { ...Q }, qt = Xt.current ? getComputedStyle(Xt.current).getPropertyValue("--cntrl-article-width").trim() : "";
|
|
12838
12838
|
return qt && (At["--cntrl-article-width"] = qt), At;
|
|
12839
|
-
})(), [de,
|
|
12839
|
+
})(), [de, We] = at(!1), [Ct, re] = at([]), [te, ye] = at(0), [zn, bn] = at(null), ze = (At, qt, yt) => {
|
|
12840
12840
|
if (h === "Off") return;
|
|
12841
12841
|
const Ht = At.currentTarget.getBoundingClientRect();
|
|
12842
|
-
|
|
12842
|
+
bn({ top: Ht.top, left: Ht.left, width: Ht.width, height: Ht.height }), re(qt), ye(yt), We(!0);
|
|
12843
12843
|
};
|
|
12844
|
-
return
|
|
12844
|
+
return Wt(() => {
|
|
12845
12845
|
if (!de || h !== "On" || typeof document > "u") return;
|
|
12846
12846
|
const At = document.body.style.overflow;
|
|
12847
12847
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -12856,9 +12856,9 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12856
12856
|
className: `${a}-wrapper ${a}-type-${s} ${et}`.trim(),
|
|
12857
12857
|
style: {
|
|
12858
12858
|
gridTemplateColumns: `repeat(${d.columnsCount}, minmax(0, 1fr))`,
|
|
12859
|
-
rowGap:
|
|
12860
|
-
columnGap:
|
|
12861
|
-
width:
|
|
12859
|
+
rowGap: W($ ?? 0, n),
|
|
12860
|
+
columnGap: W(d.horizontalGap ?? 0, n),
|
|
12861
|
+
width: W(d.wrapperWidth ?? 0, n)
|
|
12862
12862
|
},
|
|
12863
12863
|
children: $t.map((At, qt) => {
|
|
12864
12864
|
var yt, Ht;
|
|
@@ -12870,15 +12870,15 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12870
12870
|
"div",
|
|
12871
12871
|
{
|
|
12872
12872
|
className: r ? `${a}-item-inner` : `${a}-item-inner-hidden`,
|
|
12873
|
-
style: { width: (c ?? 0) > 100 ? `calc(${
|
|
12873
|
+
style: { width: (c ?? 0) > 100 ? `calc(${W(ut ?? 0, n)} * (${c} / 100))` : W(ut ?? 0, n) },
|
|
12874
12874
|
children: /* @__PURE__ */ st("a", { href: (((yt = At.link) == null ? void 0 : yt.length) ?? 0) > 0 && h === "Off" ? At.link : void 0, target: "_blank", className: `${a}-item-image-link`, children: [
|
|
12875
|
-
/* @__PURE__ */ u("div", { className: `${a}-item-image-wrapper`, style: { width:
|
|
12875
|
+
/* @__PURE__ */ u("div", { className: `${a}-item-image-wrapper`, style: { width: W(ut ?? 0, n), height: W(ut ?? 0, n) }, children: (((Ht = At.image) == null ? void 0 : Ht.length) ?? 0) === 0 ? null : m === "Off" ? /* @__PURE__ */ u(
|
|
12876
12876
|
"img",
|
|
12877
12877
|
{
|
|
12878
12878
|
src: At.image[0].url,
|
|
12879
12879
|
alt: At.image[0].name,
|
|
12880
12880
|
className: `${a}-item-image`.trim(),
|
|
12881
|
-
style:
|
|
12881
|
+
style: Rt,
|
|
12882
12882
|
onClick: (Bt) => ze(Bt, At.image.map((zt) => zt.url), 0)
|
|
12883
12883
|
}
|
|
12884
12884
|
) : /* @__PURE__ */ u(
|
|
@@ -12914,8 +12914,8 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12914
12914
|
src: Bt.url,
|
|
12915
12915
|
alt: Bt.name,
|
|
12916
12916
|
className: `${a}-item-image`.trim(),
|
|
12917
|
-
style:
|
|
12918
|
-
onClick: (ue) => ze(ue, At.image.map((
|
|
12917
|
+
style: Rt,
|
|
12918
|
+
onClick: (ue) => ze(ue, At.image.map((Er) => Er.url), zt)
|
|
12919
12919
|
}
|
|
12920
12920
|
) }, zt))
|
|
12921
12921
|
},
|
|
@@ -12926,19 +12926,19 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12926
12926
|
{
|
|
12927
12927
|
"data-controls": "titleMarginTop",
|
|
12928
12928
|
className: `${a}-control`,
|
|
12929
|
-
style: { height:
|
|
12929
|
+
style: { height: W(f ?? 0, n), width: W(ut * c / 100, n) }
|
|
12930
12930
|
}
|
|
12931
12931
|
),
|
|
12932
|
-
/* @__PURE__ */ u("p", { className: `${a}-item-title`.trim(), style: { width: `calc(${
|
|
12932
|
+
/* @__PURE__ */ u("p", { className: `${a}-item-title`.trim(), style: { width: `calc(${W(ut ?? 0, n)} * (${c} / 100))`, ...A }, children: At.title }),
|
|
12933
12933
|
s === "B" && /* @__PURE__ */ u(
|
|
12934
12934
|
"div",
|
|
12935
12935
|
{
|
|
12936
12936
|
"data-controls": "subtitleMarginTop",
|
|
12937
12937
|
className: `${a}-control`,
|
|
12938
|
-
style: { height:
|
|
12938
|
+
style: { height: W(F ?? 0, n), width: W(ut * c / 100, n) }
|
|
12939
12939
|
}
|
|
12940
12940
|
),
|
|
12941
|
-
s === "B" && /* @__PURE__ */ u("p", { className: `${a}-item-subtitle`.trim(), style: { width: `calc(${
|
|
12941
|
+
s === "B" && /* @__PURE__ */ u("p", { className: `${a}-item-subtitle`.trim(), style: { width: `calc(${W(ut ?? 0, n)} * (${c} / 100))`, ...C }, children: At.subtitle })
|
|
12942
12942
|
] })
|
|
12943
12943
|
}
|
|
12944
12944
|
)
|
|
@@ -12949,15 +12949,15 @@ function nd({ settings: t, content: e, isEditor: n, isPreviewMode: r, metadata:
|
|
|
12949
12949
|
}
|
|
12950
12950
|
) }),
|
|
12951
12951
|
de && typeof document < "u" && h === "On" && di(
|
|
12952
|
-
/* @__PURE__ */ u("div", { style:
|
|
12952
|
+
/* @__PURE__ */ u("div", { style: vn, "data-selection": "none", children: /* @__PURE__ */ u(
|
|
12953
12953
|
ed,
|
|
12954
12954
|
{
|
|
12955
12955
|
images: Ct,
|
|
12956
12956
|
index: te,
|
|
12957
12957
|
imageDisplay: p.display,
|
|
12958
|
-
originRect:
|
|
12958
|
+
originRect: zn,
|
|
12959
12959
|
reverseClose: m === "Off",
|
|
12960
|
-
onClose: () =>
|
|
12960
|
+
onClose: () => We(!1),
|
|
12961
12961
|
onPrev: () => ye((At) => (At - 1 + Ct.length) % Ct.length),
|
|
12962
12962
|
onNext: () => ye((At) => (At + 1) % Ct.length),
|
|
12963
12963
|
counterClassName: `${a}-lightbox-counter`.trim(),
|
|
@@ -13680,7 +13680,7 @@ const COLOR_VAR_MAP: Record<ColorKeys, string> = {
|
|
|
13680
13680
|
};
|
|
13681
13681
|
|
|
13682
13682
|
const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
13683
|
-
`,
|
|
13683
|
+
`, Fr = {
|
|
13684
13684
|
fontSettings: {
|
|
13685
13685
|
type: "object",
|
|
13686
13686
|
display: { type: "font-settings-weight" },
|
|
@@ -13944,7 +13944,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
13944
13944
|
display: { type: "font-family-select" }
|
|
13945
13945
|
},
|
|
13946
13946
|
titleFontSettings: {
|
|
13947
|
-
...
|
|
13947
|
+
...Fr.fontSettings,
|
|
13948
13948
|
scope: "common",
|
|
13949
13949
|
title: "",
|
|
13950
13950
|
display: { type: "font-settings-weight" }
|
|
@@ -13986,7 +13986,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
13986
13986
|
display: { type: "font-family-select" }
|
|
13987
13987
|
},
|
|
13988
13988
|
subtitleFontSettings: {
|
|
13989
|
-
...
|
|
13989
|
+
...Fr.fontSettings,
|
|
13990
13990
|
scope: "common",
|
|
13991
13991
|
title: "",
|
|
13992
13992
|
display: { type: "font-settings-weight" }
|
|
@@ -14028,7 +14028,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
14028
14028
|
display: { type: "font-family-select" }
|
|
14029
14029
|
},
|
|
14030
14030
|
lightboxCounterFontSettings: {
|
|
14031
|
-
...
|
|
14031
|
+
...Fr.fontSettings,
|
|
14032
14032
|
scope: "common",
|
|
14033
14033
|
title: "",
|
|
14034
14034
|
display: { type: "font-settings-weight" }
|
|
@@ -14287,18 +14287,18 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
|
|
|
14287
14287
|
schema: ld,
|
|
14288
14288
|
sourceCode: id
|
|
14289
14289
|
};
|
|
14290
|
-
function
|
|
14290
|
+
function rr(t) {
|
|
14291
14291
|
return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
|
|
14292
14292
|
}
|
|
14293
14293
|
function cd(t) {
|
|
14294
14294
|
return String(t ?? "").trim().length > 0;
|
|
14295
14295
|
}
|
|
14296
14296
|
function dd(t, e, n, r, o, l, i) {
|
|
14297
|
-
const a =
|
|
14297
|
+
const a = W(l, i), s = W(0, i), d = t === 0, c = t === e - 1 && !o;
|
|
14298
14298
|
return { borderTopWidth: d && n ? a : s, borderBottomWidth: !c || r ? a : s };
|
|
14299
14299
|
}
|
|
14300
14300
|
function ud(t, e, n) {
|
|
14301
|
-
const r =
|
|
14301
|
+
const r = W(e, n), o = W(0, n);
|
|
14302
14302
|
return {
|
|
14303
14303
|
borderTopWidth: o,
|
|
14304
14304
|
borderBottomWidth: t ? r : o
|
|
@@ -14310,7 +14310,7 @@ function pd(t) {
|
|
|
14310
14310
|
.${t}-wrapper {
|
|
14311
14311
|
display: grid;
|
|
14312
14312
|
align-items: start;
|
|
14313
|
-
min-height: ${
|
|
14313
|
+
min-height: ${rr(48)};
|
|
14314
14314
|
position: relative;
|
|
14315
14315
|
overflow: visible;
|
|
14316
14316
|
box-sizing: border-box;
|
|
@@ -14432,7 +14432,7 @@ a.${t}-list-item {
|
|
|
14432
14432
|
flex-shrink: 0;
|
|
14433
14433
|
overflow: visible;
|
|
14434
14434
|
box-sizing: border-box;
|
|
14435
|
-
min-width: ${
|
|
14435
|
+
min-width: ${rr(50)};
|
|
14436
14436
|
position: relative;
|
|
14437
14437
|
display: flex;
|
|
14438
14438
|
align-items: flex-start;
|
|
@@ -14440,7 +14440,7 @@ a.${t}-list-item {
|
|
|
14440
14440
|
|
|
14441
14441
|
.${t}-list-col-last {
|
|
14442
14442
|
flex: 1 1 auto;
|
|
14443
|
-
min-width: ${
|
|
14443
|
+
min-width: ${rr(50)};
|
|
14444
14444
|
}
|
|
14445
14445
|
|
|
14446
14446
|
.${t}-list-col-title {
|
|
@@ -14685,7 +14685,7 @@ const Ne = [
|
|
|
14685
14685
|
"CColumn",
|
|
14686
14686
|
"DColumn",
|
|
14687
14687
|
"EColumn"
|
|
14688
|
-
], Pe = "cutLabel",
|
|
14688
|
+
], Pe = "cutLabel", Lr = [
|
|
14689
14689
|
...vo,
|
|
14690
14690
|
Pe
|
|
14691
14691
|
], bo = ["A", "B", "C", "D", "E"];
|
|
@@ -14708,7 +14708,7 @@ function Yi(t, e, n) {
|
|
|
14708
14708
|
const r = gd(t);
|
|
14709
14709
|
return r ? r === e ? !1 : md(n[Gi(r)]) : !0;
|
|
14710
14710
|
}
|
|
14711
|
-
function
|
|
14711
|
+
function Wn(t) {
|
|
14712
14712
|
const e = String(t ?? "Top").trim();
|
|
14713
14713
|
if (e.toLowerCase().startsWith("baseline")) {
|
|
14714
14714
|
const n = e.slice(-1).toUpperCase();
|
|
@@ -14718,16 +14718,16 @@ function An(t) {
|
|
|
14718
14718
|
}
|
|
14719
14719
|
function hd(t, e, n) {
|
|
14720
14720
|
if (Xi(t, e, n))
|
|
14721
|
-
return
|
|
14722
|
-
const r =
|
|
14721
|
+
return Wn(t);
|
|
14722
|
+
const r = Wn(t);
|
|
14723
14723
|
return r.kind === "baseline" ? { kind: "top" } : r;
|
|
14724
14724
|
}
|
|
14725
14725
|
function fd(t) {
|
|
14726
|
-
const e =
|
|
14726
|
+
const e = Wn(t);
|
|
14727
14727
|
return e.kind === "baseline" ? { kind: "top" } : e;
|
|
14728
14728
|
}
|
|
14729
14729
|
function Xi(t, e, n) {
|
|
14730
|
-
return Yi(t, n, e) ?
|
|
14730
|
+
return Yi(t, n, e) ? Wn(t).kind === "baseline" : !1;
|
|
14731
14731
|
}
|
|
14732
14732
|
function yd(t) {
|
|
14733
14733
|
const e = {};
|
|
@@ -14747,7 +14747,7 @@ function vd(t) {
|
|
|
14747
14747
|
return t === "center" ? { flex: "0 0 auto", marginTop: "auto", marginBottom: "auto" } : t === "bottom" ? { flex: "0 0 auto", marginTop: "auto" } : {};
|
|
14748
14748
|
}
|
|
14749
14749
|
function bd(t) {
|
|
14750
|
-
const e =
|
|
14750
|
+
const e = Wn(t).kind;
|
|
14751
14751
|
return e === "baseline" ? "center" : e;
|
|
14752
14752
|
}
|
|
14753
14753
|
function xd(t) {
|
|
@@ -14762,7 +14762,7 @@ function Cd(t, e) {
|
|
|
14762
14762
|
const { top: r } = t.getBoundingClientRect(), { bottom: o } = n.getBoundingClientRect(), l = o - r;
|
|
14763
14763
|
return n.remove(), l;
|
|
14764
14764
|
}
|
|
14765
|
-
function
|
|
14765
|
+
function Mr(t, e, n, r) {
|
|
14766
14766
|
const o = t.titleEl;
|
|
14767
14767
|
if (!o) return 0;
|
|
14768
14768
|
const l = o.closest(`.${n}`);
|
|
@@ -14825,14 +14825,14 @@ function Ed() {
|
|
|
14825
14825
|
type: "tab",
|
|
14826
14826
|
id: "listColumnTextStyle",
|
|
14827
14827
|
tabs: Object.fromEntries(
|
|
14828
|
-
|
|
14828
|
+
Lr.map((t) => [
|
|
14829
14829
|
Td[t],
|
|
14830
14830
|
Ld(t)
|
|
14831
14831
|
])
|
|
14832
14832
|
)
|
|
14833
14833
|
};
|
|
14834
14834
|
}
|
|
14835
|
-
function
|
|
14835
|
+
function pr(t, e) {
|
|
14836
14836
|
const n = (r) => {
|
|
14837
14837
|
const o = Pt(e, r);
|
|
14838
14838
|
return t[o];
|
|
@@ -14871,13 +14871,13 @@ function ti(t, e) {
|
|
|
14871
14871
|
return be(Qt(n, e));
|
|
14872
14872
|
}
|
|
14873
14873
|
function ei(t, e, n, r) {
|
|
14874
|
-
const o =
|
|
14874
|
+
const o = pr(t, e), l = o.textFontSize ?? 0.01, i = o.textLineHeight;
|
|
14875
14875
|
return i !== void 0 && i < l ? `${n} ${r}` : n;
|
|
14876
14876
|
}
|
|
14877
14877
|
function ni(t, e, n, r) {
|
|
14878
|
-
const o =
|
|
14878
|
+
const o = pr(t, e), l = o.textFontSize ?? 0.01, i = o.textLineHeight;
|
|
14879
14879
|
return i === void 0 || i >= l ? {} : {
|
|
14880
|
-
[`--${n}-title-leading-gap`]:
|
|
14880
|
+
[`--${n}-title-leading-gap`]: W((l - i) / 2, r)
|
|
14881
14881
|
};
|
|
14882
14882
|
}
|
|
14883
14883
|
const se = [
|
|
@@ -14886,19 +14886,19 @@ const se = [
|
|
|
14886
14886
|
"CColumnWidth",
|
|
14887
14887
|
"DColumnWidth",
|
|
14888
14888
|
"EColumnWidth"
|
|
14889
|
-
],
|
|
14889
|
+
], un = [
|
|
14890
14890
|
"AColumnPaddingLeft",
|
|
14891
14891
|
"BColumnPaddingLeft",
|
|
14892
14892
|
"CColumnPaddingLeft",
|
|
14893
14893
|
"DColumnPaddingLeft",
|
|
14894
14894
|
"EColumnPaddingLeft"
|
|
14895
|
-
],
|
|
14895
|
+
], pn = [
|
|
14896
14896
|
"AColumnPaddingRight",
|
|
14897
14897
|
"BColumnPaddingRight",
|
|
14898
14898
|
"CColumnPaddingRight",
|
|
14899
14899
|
"DColumnPaddingRight",
|
|
14900
14900
|
"EColumnPaddingRight"
|
|
14901
|
-
],
|
|
14901
|
+
], mn = [
|
|
14902
14902
|
"AColumnPaddingBottom",
|
|
14903
14903
|
"BColumnPaddingBottom",
|
|
14904
14904
|
"CColumnPaddingBottom",
|
|
@@ -14911,7 +14911,7 @@ const se = [
|
|
|
14911
14911
|
textHoverColor: "text-hover-color",
|
|
14912
14912
|
backgroundHoverColor: "background-hover-color",
|
|
14913
14913
|
dividerHoverColor: "divider-hover-color"
|
|
14914
|
-
}, _d = ["hover", "focus", "filled", "success", "error"], ri = 4e-3,
|
|
14914
|
+
}, _d = ["hover", "focus", "filled", "success", "error"], ri = 4e-3, rn = 4e-3, Hr = rn, oi = 12, xo = 50, In = 1440, Rn = xo / In;
|
|
14915
14915
|
function Zi(t) {
|
|
14916
14916
|
const e = typeof t == "number" && t > 0 ? t : In;
|
|
14917
14917
|
return xo / e;
|
|
@@ -14947,7 +14947,7 @@ function we({
|
|
|
14947
14947
|
}
|
|
14948
14948
|
);
|
|
14949
14949
|
}
|
|
14950
|
-
function
|
|
14950
|
+
function Wd(t) {
|
|
14951
14951
|
let e = t ?? null;
|
|
14952
14952
|
for (; e; ) {
|
|
14953
14953
|
const n = e.style.getPropertyValue("--cntrl-article-width").trim();
|
|
@@ -14973,28 +14973,28 @@ const Ji = {
|
|
|
14973
14973
|
DColumnWidth: 0.02,
|
|
14974
14974
|
EColumnWidth: 0.02
|
|
14975
14975
|
};
|
|
14976
|
-
function
|
|
14976
|
+
function or(t) {
|
|
14977
14977
|
const e = typeof t.wrapperWidth == "number" ? t.wrapperWidth : 1;
|
|
14978
14978
|
return Math.max(0, e);
|
|
14979
14979
|
}
|
|
14980
|
-
function
|
|
14980
|
+
function Id(t, e = 1) {
|
|
14981
14981
|
const n = e / t;
|
|
14982
14982
|
return Object.fromEntries(
|
|
14983
14983
|
se.map((r) => [r, n])
|
|
14984
14984
|
);
|
|
14985
14985
|
}
|
|
14986
|
-
function
|
|
14986
|
+
function Rd() {
|
|
14987
14987
|
return Object.fromEntries([
|
|
14988
|
-
...
|
|
14989
|
-
...
|
|
14988
|
+
...un.map((t) => [t, 0]),
|
|
14989
|
+
...pn.map((t) => [t, 0])
|
|
14990
14990
|
]);
|
|
14991
14991
|
}
|
|
14992
14992
|
function kd() {
|
|
14993
14993
|
return Object.fromEntries(
|
|
14994
|
-
|
|
14994
|
+
mn.map((t) => [t, 0])
|
|
14995
14995
|
);
|
|
14996
14996
|
}
|
|
14997
|
-
function
|
|
14997
|
+
function Zn(t) {
|
|
14998
14998
|
return Object.fromEntries(
|
|
14999
14999
|
se.map((e) => [
|
|
15000
15000
|
e,
|
|
@@ -15014,7 +15014,7 @@ function Qi(t, e, n) {
|
|
|
15014
15014
|
paddingRight: n * l
|
|
15015
15015
|
};
|
|
15016
15016
|
}
|
|
15017
|
-
function
|
|
15017
|
+
function ir(t, e, n) {
|
|
15018
15018
|
const r = Co(t, e, n);
|
|
15019
15019
|
if (t <= 0)
|
|
15020
15020
|
return [];
|
|
@@ -15027,7 +15027,7 @@ function or(t, e, n) {
|
|
|
15027
15027
|
function Fd(t, e, n) {
|
|
15028
15028
|
const r = {};
|
|
15029
15029
|
for (let o = 0; o < t; o += 1) {
|
|
15030
|
-
const l =
|
|
15030
|
+
const l = un[o], i = pn[o], a = typeof n[l] == "number" ? n[l] : 0, s = typeof n[i] == "number" ? n[i] : 0, d = Qi(
|
|
15031
15031
|
e[o] ?? 0,
|
|
15032
15032
|
a,
|
|
15033
15033
|
s
|
|
@@ -15080,7 +15080,7 @@ function Nd(t, e, n, r) {
|
|
|
15080
15080
|
const a = t[i], s = e.indexOf(a);
|
|
15081
15081
|
if (s === -1)
|
|
15082
15082
|
continue;
|
|
15083
|
-
const d = se[s], c =
|
|
15083
|
+
const d = se[s], c = un[s], $ = pn[s], g = mn[s], h = se[i], p = un[i], m = pn[i], S = mn[i], y = n[d], x = n[c], f = n[$], F = n[g];
|
|
15084
15084
|
typeof y == "number" && (l[h] = y), typeof x == "number" && (l[p] = x), typeof f == "number" && (l[m] = f), typeof F == "number" && (l[S] = F);
|
|
15085
15085
|
}
|
|
15086
15086
|
return l;
|
|
@@ -15088,10 +15088,10 @@ function Nd(t, e, n, r) {
|
|
|
15088
15088
|
function Bd(t, e, n) {
|
|
15089
15089
|
const r = yd(t);
|
|
15090
15090
|
r && (t = { ...t, ...r });
|
|
15091
|
-
const o = Zi(n == null ? void 0 : n.designWidth), l = t.columns, i = e.columns, a =
|
|
15091
|
+
const o = Zi(n == null ? void 0 : n.designWidth), l = t.columns, i = e.columns, a = or(t), s = or(e), d = t.type === "B" || t.type === void 0 && e.type === "B", c = typeof l == "number" ? l : typeof i == "number" ? i : Ne.length, $ = (f) => {
|
|
15092
15092
|
if (d)
|
|
15093
15093
|
return f;
|
|
15094
|
-
const F =
|
|
15094
|
+
const F = Zn({ ...e, ...f }), M = or(f), P = ir(c, M, F), b = Fd(c, P, {
|
|
15095
15095
|
...e,
|
|
15096
15096
|
...f
|
|
15097
15097
|
});
|
|
@@ -15103,11 +15103,11 @@ function Bd(t, e, n) {
|
|
|
15103
15103
|
if (typeof l == "number" && l !== i) {
|
|
15104
15104
|
const f = {
|
|
15105
15105
|
...t,
|
|
15106
|
-
...
|
|
15107
|
-
...
|
|
15106
|
+
...Id(l, a),
|
|
15107
|
+
...Rd()
|
|
15108
15108
|
};
|
|
15109
15109
|
if (d)
|
|
15110
|
-
for (const F of
|
|
15110
|
+
for (const F of mn)
|
|
15111
15111
|
typeof e[F] == "number" && (f[F] = e[F]);
|
|
15112
15112
|
else
|
|
15113
15113
|
Object.assign(f, kd());
|
|
@@ -15120,7 +15120,7 @@ function Bd(t, e, n) {
|
|
|
15120
15120
|
...Nd(g, h, e, c)
|
|
15121
15121
|
});
|
|
15122
15122
|
if (a < s && typeof c == "number" && !d) {
|
|
15123
|
-
const f =
|
|
15123
|
+
const f = Zn({ ...e, ...t });
|
|
15124
15124
|
return $({
|
|
15125
15125
|
...t,
|
|
15126
15126
|
...Md(c, a, f)
|
|
@@ -15130,11 +15130,11 @@ function Bd(t, e, n) {
|
|
|
15130
15130
|
const f = typeof t.textPaddingLR == "number" ? t.textPaddingLR : 0, F = Math.max(0, (a - o) / 2);
|
|
15131
15131
|
return f > F ? { ...t, textPaddingLR: F } : t;
|
|
15132
15132
|
}
|
|
15133
|
-
const p =
|
|
15133
|
+
const p = Zn({ ...e, ...t }), m = ir(
|
|
15134
15134
|
c,
|
|
15135
15135
|
s,
|
|
15136
|
-
|
|
15137
|
-
), y =
|
|
15136
|
+
Zn(e)
|
|
15137
|
+
), y = ir(
|
|
15138
15138
|
c,
|
|
15139
15139
|
a,
|
|
15140
15140
|
p
|
|
@@ -15164,7 +15164,7 @@ function zd(t) {
|
|
|
15164
15164
|
])
|
|
15165
15165
|
);
|
|
15166
15166
|
}
|
|
15167
|
-
function
|
|
15167
|
+
function Nr(t, e, n = 0) {
|
|
15168
15168
|
return Object.fromEntries(
|
|
15169
15169
|
e.map((r) => [
|
|
15170
15170
|
r,
|
|
@@ -15174,7 +15174,7 @@ function Hr(t, e, n = 0) {
|
|
|
15174
15174
|
}
|
|
15175
15175
|
function Vd(t, e, n, r, o, l) {
|
|
15176
15176
|
return t.slice(0, e).map((i, a) => {
|
|
15177
|
-
const s =
|
|
15177
|
+
const s = un[a], d = pn[a], c = mn[a];
|
|
15178
15178
|
return {
|
|
15179
15179
|
key: i,
|
|
15180
15180
|
textPrefix: $d[i],
|
|
@@ -15190,7 +15190,7 @@ function Vd(t, e, n, r, o, l) {
|
|
|
15190
15190
|
});
|
|
15191
15191
|
}
|
|
15192
15192
|
function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEvent: o, layoutId: l, onUpdateSettings: i }) {
|
|
15193
|
-
const { prefix: a } =
|
|
15193
|
+
const { prefix: a } = Ze(), s = !!(n && !r), {
|
|
15194
15194
|
columns: d,
|
|
15195
15195
|
type: c,
|
|
15196
15196
|
wrapperWidth: $,
|
|
@@ -15209,21 +15209,21 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15209
15209
|
rowPaddingBottom: E,
|
|
15210
15210
|
rowPaddingTopB: w,
|
|
15211
15211
|
columnsOrder: _,
|
|
15212
|
-
textPaddingLR:
|
|
15212
|
+
textPaddingLR: R,
|
|
15213
15213
|
textColor: O,
|
|
15214
15214
|
backgroundColor: B,
|
|
15215
15215
|
dividerColor: U,
|
|
15216
15216
|
textHoverColor: X,
|
|
15217
15217
|
backgroundHoverColor: v,
|
|
15218
15218
|
dividerHoverColor: N
|
|
15219
|
-
} = t, [
|
|
15219
|
+
} = t, [I, k] = at(void 0), [L, H] = at(null), Z = M === "On" && (!n || r), rt = (S ?? 0) > 0, K = c === "B", ct = St(null), D = St(null), [ot, bt] = at(null), [mt, wt] = at(In), A = Zi(mt), J = Math.max(0, (($ ?? 0) - A) / 2), T = Math.min(R ?? 0, J), C = Math.max(T, rn), j = (($ ?? 0) + A) / 2;
|
|
15220
15220
|
ne(() => {
|
|
15221
15221
|
if (!n) {
|
|
15222
15222
|
wt(In);
|
|
15223
15223
|
return;
|
|
15224
15224
|
}
|
|
15225
15225
|
const lt = () => {
|
|
15226
|
-
wt(
|
|
15226
|
+
wt(Wd(ct.current));
|
|
15227
15227
|
};
|
|
15228
15228
|
lt();
|
|
15229
15229
|
const gt = ct.current;
|
|
@@ -15235,10 +15235,10 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15235
15235
|
for (; kt && !kt.style.getPropertyValue("--cntrl-article-width"); )
|
|
15236
15236
|
kt = kt.parentElement;
|
|
15237
15237
|
return kt && ht.observe(kt), () => ht.disconnect();
|
|
15238
|
-
}, [n, l]),
|
|
15238
|
+
}, [n, l]), Wt(() => {
|
|
15239
15239
|
k(void 0);
|
|
15240
15240
|
}, [S, y, e, g]);
|
|
15241
|
-
const q =
|
|
15241
|
+
const q = mr(a, {
|
|
15242
15242
|
textColor: O,
|
|
15243
15243
|
backgroundColor: B,
|
|
15244
15244
|
dividerColor: U,
|
|
@@ -15246,7 +15246,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15246
15246
|
backgroundHoverColor: v,
|
|
15247
15247
|
dividerHoverColor: N
|
|
15248
15248
|
}, Pd, _d), G = o && o !== "default" ? `${a}-state-${o}` : "", nt = `${P === "Default" ? `${a}-entry-hover-default` : P === "Blinds" ? `${a}-entry-hover-blinds` : ""} ${G}`.trim(), et = (m == null ? void 0 : m[0]) ?? !1, dt = (m == null ? void 0 : m[1]) ?? !1, $t = St(t), ut = St(l);
|
|
15249
|
-
|
|
15249
|
+
Wt(() => {
|
|
15250
15250
|
if (!i || !n) {
|
|
15251
15251
|
$t.current = t, ut.current = l;
|
|
15252
15252
|
return;
|
|
@@ -15275,7 +15275,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15275
15275
|
t.EColumnWidth
|
|
15276
15276
|
]
|
|
15277
15277
|
), pt = Mt(
|
|
15278
|
-
() =>
|
|
15278
|
+
() => Nr(t, un),
|
|
15279
15279
|
[
|
|
15280
15280
|
t.AColumnPaddingLeft,
|
|
15281
15281
|
t.BColumnPaddingLeft,
|
|
@@ -15284,7 +15284,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15284
15284
|
t.EColumnPaddingLeft
|
|
15285
15285
|
]
|
|
15286
15286
|
), V = Mt(
|
|
15287
|
-
() =>
|
|
15287
|
+
() => Nr(t, pn),
|
|
15288
15288
|
[
|
|
15289
15289
|
t.AColumnPaddingRight,
|
|
15290
15290
|
t.BColumnPaddingRight,
|
|
@@ -15293,7 +15293,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15293
15293
|
t.EColumnPaddingRight
|
|
15294
15294
|
]
|
|
15295
15295
|
), tt = Mt(
|
|
15296
|
-
() =>
|
|
15296
|
+
() => Nr(t, mn),
|
|
15297
15297
|
[
|
|
15298
15298
|
t.AColumnPaddingBottom,
|
|
15299
15299
|
t.BColumnPaddingBottom,
|
|
@@ -15311,22 +15311,22 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15311
15311
|
tt
|
|
15312
15312
|
),
|
|
15313
15313
|
[xt, d, z, pt, V, tt]
|
|
15314
|
-
), Ot =
|
|
15314
|
+
), Ot = or(t), Dt = Mt(
|
|
15315
15315
|
() => se.slice(0, d).map((lt) => z[lt]),
|
|
15316
15316
|
[d, z]
|
|
15317
15317
|
), Tt = Mt(
|
|
15318
15318
|
() => Co(d, Ot, z),
|
|
15319
15319
|
[d, Ot, z]
|
|
15320
|
-
),
|
|
15321
|
-
() =>
|
|
15320
|
+
), Rt = Mt(
|
|
15321
|
+
() => ir(d, Ot, z),
|
|
15322
15322
|
[d, Ot, z]
|
|
15323
15323
|
), Kt = Mt(
|
|
15324
15324
|
() => vt.map((lt, gt) => Qi(
|
|
15325
|
-
|
|
15325
|
+
Rt[gt] ?? 0,
|
|
15326
15326
|
lt.paddingLeft,
|
|
15327
15327
|
lt.paddingRight
|
|
15328
15328
|
)),
|
|
15329
|
-
[vt,
|
|
15329
|
+
[vt, Rt]
|
|
15330
15330
|
), _t = Mt(() => {
|
|
15331
15331
|
const lt = g === 0 ? 1 / 0 : g;
|
|
15332
15332
|
return (e ?? []).slice(0, lt).map((ht, kt) => ({
|
|
@@ -15337,17 +15337,17 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15337
15337
|
image: ht.image,
|
|
15338
15338
|
link: ht.link
|
|
15339
15339
|
}));
|
|
15340
|
-
}, [e, g]), jt = rt ?
|
|
15340
|
+
}, [e, g]), jt = rt ? I ?? S : _t.length, fe = Mt(() => rt ? _t.slice(0, jt) : _t, [_t, rt, jt]), Xt = rt && jt < _t.length, vn = fe.length > 1 || Xt, de = [
|
|
15341
15341
|
et ? `${a}-divider-top` : "",
|
|
15342
|
-
dt ||
|
|
15343
|
-
].filter(Boolean).join(" "),
|
|
15344
|
-
const lt =
|
|
15342
|
+
dt || vn ? `${a}-divider-bottom` : ""
|
|
15343
|
+
].filter(Boolean).join(" "), We = () => {
|
|
15344
|
+
const lt = I ?? S;
|
|
15345
15345
|
if (!y) {
|
|
15346
15346
|
k(_t.length);
|
|
15347
15347
|
return;
|
|
15348
15348
|
}
|
|
15349
15349
|
k(Math.min(lt + y, _t.length));
|
|
15350
|
-
}, Ct = (lt) =>
|
|
15350
|
+
}, Ct = (lt) => W(lt, n ?? !1), re = K ? w ?? 0 : b ?? 0, te = E ?? 0, ye = h ?? 0, zn = (re + ye + te) / 2, bn = Math.max(te, Hr), ze = ot != null ? `${ot / 2}px` : Ct(zn), At = K ? "rowPaddingTopB" : "rowPaddingTop", qt = vt[0], yt = vt[vt.length - 1], Ht = Kt[0], Bt = Kt[Kt.length - 1], zt = qt && Ht ? Math.max(Ht.paddingLeft, rn) : 0, ue = yt && Bt ? Math.max(Bt.paddingRight, rn) : 0, Er = Ot, So = (lt) => {
|
|
15351
15351
|
const gt = ct.current;
|
|
15352
15352
|
if (!gt)
|
|
15353
15353
|
return { x: 0, y: 0 };
|
|
@@ -15407,7 +15407,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15407
15407
|
e,
|
|
15408
15408
|
t,
|
|
15409
15409
|
vt,
|
|
15410
|
-
|
|
15410
|
+
Rt,
|
|
15411
15411
|
mt
|
|
15412
15412
|
]);
|
|
15413
15413
|
const wo = Mt(
|
|
@@ -15445,54 +15445,54 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15445
15445
|
const ht = () => {
|
|
15446
15446
|
lt.querySelectorAll("[data-list-row]").forEach((Lt) => {
|
|
15447
15447
|
const Ut = Array.from(Lt.querySelectorAll("[data-list-col]"));
|
|
15448
|
-
Ut.forEach((
|
|
15449
|
-
|
|
15450
|
-
const ee =
|
|
15448
|
+
Ut.forEach((It) => {
|
|
15449
|
+
It.style.transform = "";
|
|
15450
|
+
const ee = It.querySelector(`.${a}-list-col`);
|
|
15451
15451
|
ee && (ee.style.minHeight = "", ee.style.height = "");
|
|
15452
|
-
const Gt =
|
|
15452
|
+
const Gt = It.querySelector(`.${a}-list-col-title`);
|
|
15453
15453
|
Gt && (Gt.style.transform = "");
|
|
15454
15454
|
}), Sd(Lt, Ut, `${a}-list-col`), Lt.offsetHeight;
|
|
15455
|
-
const ve = Lt.getBoundingClientRect().top,
|
|
15456
|
-
const ee =
|
|
15457
|
-
el:
|
|
15455
|
+
const ve = Lt.getBoundingClientRect().top, Ie = `${a}-baseline-probe`, Qe = /* @__PURE__ */ new Map(), Vn = Ut.map((It) => {
|
|
15456
|
+
const ee = It.querySelector(`.${a}-list-col-title`), Gt = {
|
|
15457
|
+
el: It,
|
|
15458
15458
|
titleEl: ee,
|
|
15459
|
-
letter:
|
|
15460
|
-
kind:
|
|
15461
|
-
anchor:
|
|
15459
|
+
letter: It.getAttribute("data-col-letter") ?? "",
|
|
15460
|
+
kind: It.getAttribute("data-valign") ?? "top",
|
|
15461
|
+
anchor: It.getAttribute("data-valign-anchor")
|
|
15462
15462
|
};
|
|
15463
|
-
return
|
|
15464
|
-
}),
|
|
15465
|
-
const Gt =
|
|
15463
|
+
return Qe.set(Gt.letter, Gt), Gt;
|
|
15464
|
+
}), xn = /* @__PURE__ */ new Map(), Kn = (It, ee) => {
|
|
15465
|
+
const Gt = xn.get(It.letter);
|
|
15466
15466
|
if (Gt !== void 0) return Gt;
|
|
15467
|
-
const
|
|
15468
|
-
if (
|
|
15469
|
-
const To =
|
|
15470
|
-
|
|
15467
|
+
const jn = It.anchor ? Qe.get(It.anchor) : void 0;
|
|
15468
|
+
if (It.kind !== "baseline" || !jn || ee.has(It.letter)) {
|
|
15469
|
+
const To = Mr(
|
|
15470
|
+
It,
|
|
15471
15471
|
ve,
|
|
15472
15472
|
`${a}-list-col`,
|
|
15473
|
-
|
|
15473
|
+
Ie
|
|
15474
15474
|
);
|
|
15475
|
-
return
|
|
15475
|
+
return xn.set(It.letter, To), To;
|
|
15476
15476
|
}
|
|
15477
|
-
ee.add(
|
|
15478
|
-
const ia =
|
|
15479
|
-
ee.delete(
|
|
15480
|
-
const aa =
|
|
15481
|
-
|
|
15477
|
+
ee.add(It.letter);
|
|
15478
|
+
const ia = Kn(jn, ee);
|
|
15479
|
+
ee.delete(It.letter);
|
|
15480
|
+
const aa = Mr(
|
|
15481
|
+
It,
|
|
15482
15482
|
ve,
|
|
15483
15483
|
`${a}-list-col`,
|
|
15484
|
-
|
|
15484
|
+
Ie
|
|
15485
15485
|
), la = ia - aa;
|
|
15486
|
-
wd(
|
|
15487
|
-
const $o =
|
|
15488
|
-
|
|
15486
|
+
wd(It.titleEl, la);
|
|
15487
|
+
const $o = Mr(
|
|
15488
|
+
It,
|
|
15489
15489
|
ve,
|
|
15490
15490
|
`${a}-list-col`,
|
|
15491
|
-
|
|
15491
|
+
Ie
|
|
15492
15492
|
);
|
|
15493
|
-
return
|
|
15493
|
+
return xn.set(It.letter, $o), $o;
|
|
15494
15494
|
};
|
|
15495
|
-
|
|
15495
|
+
Vn.forEach((It) => Kn(It, /* @__PURE__ */ new Set()));
|
|
15496
15496
|
});
|
|
15497
15497
|
};
|
|
15498
15498
|
ht();
|
|
@@ -15511,7 +15511,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15511
15511
|
e,
|
|
15512
15512
|
mt,
|
|
15513
15513
|
fe,
|
|
15514
|
-
|
|
15514
|
+
Rt
|
|
15515
15515
|
]), /* @__PURE__ */ st(le, { children: [
|
|
15516
15516
|
/* @__PURE__ */ u("style", { dangerouslySetInnerHTML: { __html: pd(a) } }),
|
|
15517
15517
|
/* @__PURE__ */ u("div", { style: q, children: /* @__PURE__ */ st(
|
|
@@ -15520,7 +15520,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15520
15520
|
ref: ct,
|
|
15521
15521
|
className: `${a}-wrapper ${nt}${de ? ` ${de}` : ""}${K ? ` ${a}-type-b` : ""}`.trim(),
|
|
15522
15522
|
style: {
|
|
15523
|
-
width:
|
|
15523
|
+
width: W($ ?? 0, n),
|
|
15524
15524
|
...!K && s ? { [`--${a}-first-entry-handle-top`]: ze } : {}
|
|
15525
15525
|
},
|
|
15526
15526
|
onMouseMove: Z ? na : void 0,
|
|
@@ -15564,19 +15564,19 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15564
15564
|
style: K ? void 0 : { minHeight: Ct(ye) },
|
|
15565
15565
|
children: [
|
|
15566
15566
|
vt.map((Lt, Ut) => {
|
|
15567
|
-
const ve = Ut === vt.length - 1,
|
|
15567
|
+
const ve = Ut === vt.length - 1, Ie = Kt[Ut], Qe = Lt.paddingBottom, Vn = cd(lt.cells[Lt.key]), xn = K && Vn && Qe > 0, Kn = K ? { minHeight: Ct(ye) } : { width: Ct(Rt[Ut]) }, It = K ? {
|
|
15568
15568
|
paddingLeft: Ct(T),
|
|
15569
15569
|
paddingRight: Ct(T)
|
|
15570
15570
|
} : {
|
|
15571
|
-
paddingLeft: Ct(
|
|
15572
|
-
paddingRight: Ct(
|
|
15571
|
+
paddingLeft: Ct(Ie.paddingLeft),
|
|
15572
|
+
paddingRight: Ct(Ie.paddingRight)
|
|
15573
15573
|
}, ee = Lt.textPrefix.charAt(0), Gt = K ? fd(
|
|
15574
15574
|
t[`${Lt.textPrefix}VerticalAlign`]
|
|
15575
15575
|
) : hd(
|
|
15576
15576
|
t[`${Lt.textPrefix}VerticalAlign`],
|
|
15577
15577
|
t,
|
|
15578
15578
|
ee
|
|
15579
|
-
),
|
|
15579
|
+
), jn = K && Vn && s && gt === 0;
|
|
15580
15580
|
return /* @__PURE__ */ st(
|
|
15581
15581
|
"div",
|
|
15582
15582
|
{
|
|
@@ -15593,8 +15593,8 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15593
15593
|
{
|
|
15594
15594
|
className: `${a}-list-col${ve ? ` ${a}-list-col-last` : ""}`,
|
|
15595
15595
|
style: {
|
|
15596
|
-
...
|
|
15597
|
-
...
|
|
15596
|
+
...It,
|
|
15597
|
+
...Kn,
|
|
15598
15598
|
...K ? { justifyContent: Qo(Gt.kind) } : {}
|
|
15599
15599
|
},
|
|
15600
15600
|
"data-test": Lt.width,
|
|
@@ -15608,7 +15608,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15608
15608
|
`${a}-text-tight-leading`
|
|
15609
15609
|
),
|
|
15610
15610
|
style: {
|
|
15611
|
-
...ti(
|
|
15611
|
+
...ti(pr(t, Lt.textPrefix), n),
|
|
15612
15612
|
...ni(t, Lt.textPrefix, a, n),
|
|
15613
15613
|
...K ? {} : vd(Gt.kind)
|
|
15614
15614
|
},
|
|
@@ -15617,14 +15617,14 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15617
15617
|
)
|
|
15618
15618
|
}
|
|
15619
15619
|
),
|
|
15620
|
-
|
|
15620
|
+
xn && /* @__PURE__ */ u(
|
|
15621
15621
|
"div",
|
|
15622
15622
|
{
|
|
15623
15623
|
className: `${a}-row-padding-handle`,
|
|
15624
|
-
style: { height: Ct(
|
|
15624
|
+
style: { height: Ct(Qe) }
|
|
15625
15625
|
}
|
|
15626
15626
|
),
|
|
15627
|
-
|
|
15627
|
+
jn && /* @__PURE__ */ u(
|
|
15628
15628
|
we,
|
|
15629
15629
|
{
|
|
15630
15630
|
P: a,
|
|
@@ -15641,7 +15641,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15641
15641
|
bottom: 0,
|
|
15642
15642
|
left: 0,
|
|
15643
15643
|
width: "100%",
|
|
15644
|
-
height: Ct(Math.max(
|
|
15644
|
+
height: Ct(Math.max(Qe, Hr))
|
|
15645
15645
|
}
|
|
15646
15646
|
}
|
|
15647
15647
|
)
|
|
@@ -15724,7 +15724,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15724
15724
|
bottom: 0,
|
|
15725
15725
|
left: 0,
|
|
15726
15726
|
width: "100%",
|
|
15727
|
-
height: Ct(
|
|
15727
|
+
height: Ct(bn)
|
|
15728
15728
|
}
|
|
15729
15729
|
}
|
|
15730
15730
|
)
|
|
@@ -15734,7 +15734,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15734
15734
|
);
|
|
15735
15735
|
}),
|
|
15736
15736
|
Xt && (() => {
|
|
15737
|
-
const lt =
|
|
15737
|
+
const lt = pr(t, Pe), gt = bd(t.cutLabelVerticalAlign), ht = lt.textTextAlign === "justify" || K;
|
|
15738
15738
|
return /* @__PURE__ */ u(
|
|
15739
15739
|
"button",
|
|
15740
15740
|
{
|
|
@@ -15748,7 +15748,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15748
15748
|
n ?? !1
|
|
15749
15749
|
)
|
|
15750
15750
|
},
|
|
15751
|
-
onClick:
|
|
15751
|
+
onClick: We,
|
|
15752
15752
|
onMouseEnter: Z ? oa : void 0,
|
|
15753
15753
|
children: /* @__PURE__ */ u(
|
|
15754
15754
|
"div",
|
|
@@ -15802,7 +15802,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15802
15802
|
top: 0,
|
|
15803
15803
|
left: 0,
|
|
15804
15804
|
width: "100%",
|
|
15805
|
-
height: Ct(Math.max(re,
|
|
15805
|
+
height: Ct(Math.max(re, Hr))
|
|
15806
15806
|
}
|
|
15807
15807
|
}
|
|
15808
15808
|
) }, "row-padding-handles"),
|
|
@@ -15817,7 +15817,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15817
15817
|
"data-controls-variant": "column-padding",
|
|
15818
15818
|
"data-controls-min": "0",
|
|
15819
15819
|
"data-controls-max-fraction": String(
|
|
15820
|
-
|
|
15820
|
+
Rt[0] - ((Ht == null ? void 0 : Ht.paddingRight) ?? 0)
|
|
15821
15821
|
),
|
|
15822
15822
|
className: `${a}-padding-control-handle`,
|
|
15823
15823
|
hitPlacement: "center-x",
|
|
@@ -15841,14 +15841,14 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15841
15841
|
"data-controls-reverse": "",
|
|
15842
15842
|
"data-controls-min": "0",
|
|
15843
15843
|
"data-controls-max-fraction": String(
|
|
15844
|
-
|
|
15844
|
+
Rt[vt.length - 1] - ((Bt == null ? void 0 : Bt.paddingLeft) ?? 0)
|
|
15845
15845
|
),
|
|
15846
15846
|
className: `${a}-padding-control-handle`,
|
|
15847
15847
|
hitPlacement: "center-x",
|
|
15848
15848
|
areaStyle: {
|
|
15849
15849
|
position: "absolute",
|
|
15850
15850
|
top: 0,
|
|
15851
|
-
left: Ct(
|
|
15851
|
+
left: Ct(Er - ue),
|
|
15852
15852
|
width: Ct(ue),
|
|
15853
15853
|
height: "100%"
|
|
15854
15854
|
}
|
|
@@ -15856,12 +15856,12 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15856
15856
|
)
|
|
15857
15857
|
] }, "column-edge-padding-handles"),
|
|
15858
15858
|
s && !K && vt.slice(0, -1).map((lt, gt) => {
|
|
15859
|
-
const ht = vt[gt + 1], kt = Tt.slice(0, gt + 1).reduce((ve,
|
|
15859
|
+
const ht = vt[gt + 1], kt = Tt.slice(0, gt + 1).reduce((ve, Ie) => ve + Ie, 0), Zt = Kt[gt], oe = Kt[gt + 1], Lt = Math.max(
|
|
15860
15860
|
Zt.paddingRight,
|
|
15861
|
-
|
|
15861
|
+
rn
|
|
15862
15862
|
), Ut = Math.max(
|
|
15863
15863
|
oe.paddingLeft,
|
|
15864
|
-
|
|
15864
|
+
rn
|
|
15865
15865
|
);
|
|
15866
15866
|
return /* @__PURE__ */ st("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
15867
15867
|
/* @__PURE__ */ u(
|
|
@@ -15875,7 +15875,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15875
15875
|
"data-controls-reverse": "",
|
|
15876
15876
|
"data-controls-min": "0",
|
|
15877
15877
|
"data-controls-max-fraction": String(
|
|
15878
|
-
|
|
15878
|
+
Rt[gt] - Zt.paddingLeft
|
|
15879
15879
|
),
|
|
15880
15880
|
className: `${a}-padding-control-handle`,
|
|
15881
15881
|
hitPlacement: "center-x",
|
|
@@ -15898,7 +15898,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15898
15898
|
"data-controls-variant": "column-padding",
|
|
15899
15899
|
"data-controls-min": "0",
|
|
15900
15900
|
"data-controls-max-fraction": String(
|
|
15901
|
-
|
|
15901
|
+
Rt[gt + 1] - oe.paddingRight
|
|
15902
15902
|
),
|
|
15903
15903
|
className: `${a}-padding-control-handle`,
|
|
15904
15904
|
hitPlacement: "center-x",
|
|
@@ -15948,7 +15948,7 @@ function Kd({ settings: t, content: e, isEditor: n, isPreviewMode: r, activeEven
|
|
|
15948
15948
|
src: L.url,
|
|
15949
15949
|
alt: "",
|
|
15950
15950
|
style: {
|
|
15951
|
-
width:
|
|
15951
|
+
width: rr(L.widthPx),
|
|
15952
15952
|
objectFit: L.objectFit,
|
|
15953
15953
|
left: L.x,
|
|
15954
15954
|
top: L.y
|
|
@@ -18676,7 +18676,7 @@ export function List({ settings, content, isEditor, isPreviewMode, activeEvent,
|
|
|
18676
18676
|
</>
|
|
18677
18677
|
);
|
|
18678
18678
|
}
|
|
18679
|
-
`,
|
|
18679
|
+
`, yn = ["A", "B", "C", "D", "E"], ai = [
|
|
18680
18680
|
...Gr,
|
|
18681
18681
|
"Baseline A",
|
|
18682
18682
|
"Baseline B",
|
|
@@ -18731,7 +18731,7 @@ function qd(t) {
|
|
|
18731
18731
|
display: { type: "text-input" }
|
|
18732
18732
|
};
|
|
18733
18733
|
}
|
|
18734
|
-
function
|
|
18734
|
+
function Jn(t) {
|
|
18735
18735
|
return {
|
|
18736
18736
|
type: "number",
|
|
18737
18737
|
scope: "layout",
|
|
@@ -18743,7 +18743,7 @@ function Zn(t) {
|
|
|
18743
18743
|
}
|
|
18744
18744
|
function Ud() {
|
|
18745
18745
|
return Object.fromEntries(
|
|
18746
|
-
|
|
18746
|
+
yn.map((t, e) => {
|
|
18747
18747
|
const n = Ne[e], r = `${t} column`;
|
|
18748
18748
|
return [n, qd(r)];
|
|
18749
18749
|
})
|
|
@@ -18751,8 +18751,8 @@ function Ud() {
|
|
|
18751
18751
|
}
|
|
18752
18752
|
function Gd() {
|
|
18753
18753
|
const t = {};
|
|
18754
|
-
for (const e of
|
|
18755
|
-
t[`${e}ColumnWidth`] =
|
|
18754
|
+
for (const e of yn)
|
|
18755
|
+
t[`${e}ColumnWidth`] = Jn(`${e} column width`), t[`${e}ColumnPaddingLeft`] = Jn(`${e} column padding left`), t[`${e}ColumnPaddingRight`] = Jn(`${e} column padding right`), t[`${e}ColumnPaddingBottom`] = Jn(`${e} column padding bottom`);
|
|
18756
18756
|
return t;
|
|
18757
18757
|
}
|
|
18758
18758
|
function li(t = {}) {
|
|
@@ -18761,7 +18761,7 @@ function li(t = {}) {
|
|
|
18761
18761
|
wrapperWidth: 1,
|
|
18762
18762
|
columnsOrder: [...Ne]
|
|
18763
18763
|
};
|
|
18764
|
-
for (const n of
|
|
18764
|
+
for (const n of yn)
|
|
18765
18765
|
e[`${n}ColumnWidth`] = 0.2, e[`${n}ColumnPaddingLeft`] = 0, e[`${n}ColumnPaddingRight`] = 0, e[`${n}ColumnPaddingBottom`] = 0;
|
|
18766
18766
|
return { ...e, ...t };
|
|
18767
18767
|
}
|
|
@@ -18839,13 +18839,13 @@ function Yd(t) {
|
|
|
18839
18839
|
display: { type: "text-appearance", useTabDesign: !0 }
|
|
18840
18840
|
}, e;
|
|
18841
18841
|
}
|
|
18842
|
-
const Xd =
|
|
18842
|
+
const Xd = Lr.reduce(
|
|
18843
18843
|
(t, e) => ({
|
|
18844
18844
|
...t,
|
|
18845
18845
|
...Yd(e)
|
|
18846
18846
|
}),
|
|
18847
18847
|
{}
|
|
18848
|
-
), Zd =
|
|
18848
|
+
), Zd = Lr.reduce(
|
|
18849
18849
|
(t, e) => ({
|
|
18850
18850
|
...t,
|
|
18851
18851
|
[`${e}VerticalAlign`]: e === Pe ? "Center" : "Top",
|
|
@@ -18867,7 +18867,7 @@ const Xd = Tr.reduce(
|
|
|
18867
18867
|
);
|
|
18868
18868
|
function si(t) {
|
|
18869
18869
|
const { textFontSize: e, textLineHeight: n, textTextAlign: r } = t;
|
|
18870
|
-
return
|
|
18870
|
+
return Lr.reduce((o, l) => (e !== void 0 && (o[`${l}TextFontSize`] = e), n !== void 0 && (o[`${l}TextLineHeight`] = n), r !== void 0 && (o[Pt(l, "textTextAlign")] = r), o), {});
|
|
18871
18871
|
}
|
|
18872
18872
|
const Jd = Ed();
|
|
18873
18873
|
function ta(t) {
|
|
@@ -18919,44 +18919,115 @@ const tu = [
|
|
|
18919
18919
|
...eu,
|
|
18920
18920
|
...nu
|
|
18921
18921
|
], ou = [
|
|
18922
|
-
...
|
|
18922
|
+
...yn.flatMap((t) => [
|
|
18923
18923
|
`${t}ColumnWidth`,
|
|
18924
18924
|
`${t}ColumnPaddingLeft`,
|
|
18925
18925
|
`${t}ColumnPaddingRight`
|
|
18926
18926
|
]),
|
|
18927
18927
|
"rowPaddingTop",
|
|
18928
18928
|
"rowPaddingBottom"
|
|
18929
|
-
]
|
|
18930
|
-
|
|
18931
|
-
const n = t ? ` ${t}` : "";
|
|
18932
|
-
return {
|
|
18933
|
-
AColumn: `AColumn${n}`,
|
|
18934
|
-
BColumnWidth: `BColumnWidth${n}`,
|
|
18935
|
-
CColumnWidth: `CColumnWidth${n}`,
|
|
18936
|
-
DColumnWidth: `DColumnWidth${n}`,
|
|
18937
|
-
EColumnWidth: `EColumnWidth${n}`,
|
|
18938
|
-
image: e,
|
|
18939
|
-
link: ""
|
|
18940
|
-
};
|
|
18941
|
-
}
|
|
18942
|
-
const iu = [
|
|
18943
|
-
Nr("", {
|
|
18929
|
+
], qe = [
|
|
18930
|
+
{
|
|
18944
18931
|
objectFit: "cover",
|
|
18945
|
-
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/
|
|
18946
|
-
name: "
|
|
18947
|
-
}
|
|
18948
|
-
|
|
18932
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MDBHFMF0NKJMYCGGRA.jpeg",
|
|
18933
|
+
name: "List-1.png"
|
|
18934
|
+
},
|
|
18935
|
+
{
|
|
18949
18936
|
objectFit: "cover",
|
|
18950
|
-
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/
|
|
18951
|
-
name: "
|
|
18952
|
-
}
|
|
18953
|
-
|
|
18937
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MD194E6Z49QD9GG03N.jpeg",
|
|
18938
|
+
name: "List-2.png"
|
|
18939
|
+
},
|
|
18940
|
+
{
|
|
18941
|
+
objectFit: "cover",
|
|
18942
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MDNZRY59Q8JJVYY92K.jpeg",
|
|
18943
|
+
name: "List-3.png"
|
|
18944
|
+
},
|
|
18945
|
+
{
|
|
18946
|
+
objectFit: "cover",
|
|
18947
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MDRXD5QWHB5YF8H3XM.jpeg",
|
|
18948
|
+
name: "List-4.png"
|
|
18949
|
+
},
|
|
18950
|
+
{
|
|
18951
|
+
objectFit: "cover",
|
|
18952
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MD3C6H5Q9QX0SX8PSP.jpeg",
|
|
18953
|
+
name: "List-5.png"
|
|
18954
|
+
},
|
|
18955
|
+
{
|
|
18956
|
+
objectFit: "cover",
|
|
18957
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MDM6VHTFVXVD58V0D6.jpeg",
|
|
18958
|
+
name: "List-6.png"
|
|
18959
|
+
},
|
|
18960
|
+
{
|
|
18954
18961
|
objectFit: "cover",
|
|
18955
|
-
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/
|
|
18956
|
-
name: "
|
|
18957
|
-
}
|
|
18962
|
+
url: "https://cdn.cntrl.site/projects/01JJKT02AWY2FGN2QJ7A173RNZ/articles-assets/01KV88Q6MD3QT4RPG3VMM2NK5K.jpeg",
|
|
18963
|
+
name: "List-7.png"
|
|
18964
|
+
}
|
|
18965
|
+
], iu = [
|
|
18966
|
+
{
|
|
18967
|
+
AColumn: "01",
|
|
18968
|
+
BColumnWidth: "Ethan Parker",
|
|
18969
|
+
CColumnWidth: "Midnight Atlas",
|
|
18970
|
+
DColumnWidth: "Portland, OR",
|
|
18971
|
+
EColumnWidth: "On Display",
|
|
18972
|
+
image: qe[0],
|
|
18973
|
+
link: ""
|
|
18974
|
+
},
|
|
18975
|
+
{
|
|
18976
|
+
AColumn: "02",
|
|
18977
|
+
BColumnWidth: "Madison Reed",
|
|
18978
|
+
CColumnWidth: "Echoes in Vermilion",
|
|
18979
|
+
DColumnWidth: "Savannah, GA",
|
|
18980
|
+
EColumnWidth: "Scheduled",
|
|
18981
|
+
image: qe[1],
|
|
18982
|
+
link: ""
|
|
18983
|
+
},
|
|
18984
|
+
{
|
|
18985
|
+
AColumn: "03",
|
|
18986
|
+
BColumnWidth: "Noah Bennett",
|
|
18987
|
+
CColumnWidth: "Paper Constellations",
|
|
18988
|
+
DColumnWidth: "Madison, WI",
|
|
18989
|
+
EColumnWidth: "On Display",
|
|
18990
|
+
image: qe[2],
|
|
18991
|
+
link: ""
|
|
18992
|
+
},
|
|
18993
|
+
{
|
|
18994
|
+
AColumn: "04",
|
|
18995
|
+
BColumnWidth: "Olivia Carter",
|
|
18996
|
+
CColumnWidth: "The Quiet Frequency",
|
|
18997
|
+
DColumnWidth: "Boise, ID",
|
|
18998
|
+
EColumnWidth: "On Display",
|
|
18999
|
+
image: qe[3],
|
|
19000
|
+
link: ""
|
|
19001
|
+
},
|
|
19002
|
+
{
|
|
19003
|
+
AColumn: "05",
|
|
19004
|
+
BColumnWidth: "Mason Brooks",
|
|
19005
|
+
CColumnWidth: "Sights of Tomorrow",
|
|
19006
|
+
DColumnWidth: "Tampa, FL",
|
|
19007
|
+
EColumnWidth: "Postponed",
|
|
19008
|
+
image: qe[4],
|
|
19009
|
+
link: ""
|
|
19010
|
+
},
|
|
19011
|
+
{
|
|
19012
|
+
AColumn: "06",
|
|
19013
|
+
BColumnWidth: "Sophia Mitchell",
|
|
19014
|
+
CColumnWidth: "Velvet Horizons",
|
|
19015
|
+
DColumnWidth: "Albuquerque, NM",
|
|
19016
|
+
EColumnWidth: "Scheduled",
|
|
19017
|
+
image: qe[5],
|
|
19018
|
+
link: ""
|
|
19019
|
+
},
|
|
19020
|
+
{
|
|
19021
|
+
AColumn: "07",
|
|
19022
|
+
BColumnWidth: "Jackson Turner",
|
|
19023
|
+
CColumnWidth: "Ink & Aurora",
|
|
19024
|
+
DColumnWidth: "Pittsburgh, PA",
|
|
19025
|
+
EColumnWidth: "On Display",
|
|
19026
|
+
image: qe[6],
|
|
19027
|
+
link: ""
|
|
19028
|
+
}
|
|
18958
19029
|
], au = [
|
|
18959
|
-
...
|
|
19030
|
+
...yn.flatMap((t) => [
|
|
18960
19031
|
`${t}ColumnWidth`,
|
|
18961
19032
|
`${t}ColumnPaddingLeft`,
|
|
18962
19033
|
`${t}ColumnPaddingRight`,
|
|
@@ -19270,7 +19341,7 @@ const iu = [
|
|
|
19270
19341
|
if: { name: "type", value: "A" },
|
|
19271
19342
|
then: { name: "properties.rowPaddingTopB.display.visible", value: !1 }
|
|
19272
19343
|
},
|
|
19273
|
-
...
|
|
19344
|
+
...yn.map((t) => ({
|
|
19274
19345
|
if: { name: "type", value: "A" },
|
|
19275
19346
|
then: { name: `properties.${t}ColumnPaddingBottom.display.visible`, value: !1 }
|
|
19276
19347
|
}))
|