@cntrl-site/components 1.0.3 → 1.0.5

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.mjs CHANGED
@@ -1,70 +1,70 @@
1
1
  import { jsx as B, Fragment as Ae, jsxs as St } from "react/jsx-runtime";
2
- import ee, { useState as it, useEffect as bt, useRef as Tt, useCallback as Cr } from "react";
2
+ import ne, { useState as it, useEffect as bt, useRef as Tt, useCallback as Sr } from "react";
3
3
  import dt from "classnames";
4
- import { s as P, u as Eo, b as Ao, g as en } from "./useScopedStyles-BSwFAT27.mjs";
5
- import { createPortal as xr } from "react-dom";
6
- function Jl(t) {
4
+ import { s as P, u as Lo, b as Eo, g as en } from "./useScopedStyles-BSwFAT27.mjs";
5
+ import { createPortal as Cr } from "react-dom";
6
+ function Kl(t) {
7
7
  return t.type === "object" && t.version === 1;
8
8
  }
9
- const $r = "ControlSlider-module__wrapper___sHEkd", _r = "ControlSlider-module__hoverArrow___A-dOH", wr = "ControlSlider-module__sliderItem___QQSkR", Tr = "ControlSlider-module__sliderImage___9hRl-", Lr = "ControlSlider-module__arrow___05ghY", Er = "ControlSlider-module__arrowVertical___tBfVN", Ar = "ControlSlider-module__nextArrow___-30Yc", Ir = "ControlSlider-module__arrowInner___aEra3", kr = "ControlSlider-module__arrowIcon___S4ztF", Fr = "ControlSlider-module__arrowImg___2dwJW", Rr = "ControlSlider-module__mirror___brd6U", Br = "ControlSlider-module__pagination___bicLF", Or = "ControlSlider-module__paginationInner___bT-P-", Pr = "ControlSlider-module__paginationVertical___zYqKw", Nr = "ControlSlider-module__paginationItem___nTRbk", Wr = "ControlSlider-module__dot___p1Qun", zr = "ControlSlider-module__activeDot___LHFaj", Mr = "ControlSlider-module__paginationInsideBottom___R3FWn", Vr = "ControlSlider-module__paginationInsideTop___V-qb-", Hr = "ControlSlider-module__paginationOutsideBottom___14w8D", Dr = "ControlSlider-module__paginationOutsideTop___SCLqB", jr = "ControlSlider-module__paginationInsideLeft___yOBRZ", Ur = "ControlSlider-module__paginationInsideRight___Rtt3o", Yr = "ControlSlider-module__paginationOutsideLeft___lahaw", Gr = "ControlSlider-module__paginationOutsideRight___EtuQa", qr = "ControlSlider-module__imgWrapper___UjEgB", Xr = "ControlSlider-module__captionBlock___dJ6-j", Kr = "ControlSlider-module__captionTextWrapper___HFlpf", Jr = "ControlSlider-module__captionText___uGBVc", Zr = "ControlSlider-module__active___WZK4G", Qr = "ControlSlider-module__withPointerEvents___t-18M", ti = "ControlSlider-module__topLeftAlignment___zjnGM", ei = "ControlSlider-module__topCenterAlignment___gD1xW", ni = "ControlSlider-module__topRightAlignment___NMapS", oi = "ControlSlider-module__middleLeftAlignment___OnUrY", ri = "ControlSlider-module__middleCenterAlignment___Tdkl0", ii = "ControlSlider-module__middleRightAlignment___wEbfX", ai = "ControlSlider-module__bottomLeftAlignment___cTP2-", li = "ControlSlider-module__bottomCenterAlignment___c54fB", si = "ControlSlider-module__bottomRightAlignment___kEwrz", ci = "ControlSlider-module__clickOverlay___DZA28", ui = "ControlSlider-module__contain___pLyq7", pi = "ControlSlider-module__cover___KdDat", U = {
10
- wrapper: $r,
11
- hoverArrow: _r,
12
- sliderItem: wr,
13
- sliderImage: Tr,
14
- arrow: Lr,
15
- arrowVertical: Er,
16
- nextArrow: Ar,
17
- arrowInner: Ir,
9
+ const xr = "ControlSlider-module__wrapper___sHEkd", $r = "ControlSlider-module__hoverArrow___A-dOH", _r = "ControlSlider-module__sliderItem___QQSkR", wr = "ControlSlider-module__sliderImage___9hRl-", Tr = "ControlSlider-module__arrow___05ghY", Lr = "ControlSlider-module__arrowVertical___tBfVN", Er = "ControlSlider-module__nextArrow___-30Yc", Ar = "ControlSlider-module__arrowInner___aEra3", kr = "ControlSlider-module__arrowIcon___S4ztF", Ir = "ControlSlider-module__arrowImg___2dwJW", Fr = "ControlSlider-module__mirror___brd6U", Rr = "ControlSlider-module__pagination___bicLF", Br = "ControlSlider-module__paginationInner___bT-P-", Or = "ControlSlider-module__paginationVertical___zYqKw", Pr = "ControlSlider-module__paginationItem___nTRbk", Nr = "ControlSlider-module__dot___p1Qun", Wr = "ControlSlider-module__activeDot___LHFaj", zr = "ControlSlider-module__paginationInsideBottom___R3FWn", Mr = "ControlSlider-module__paginationInsideTop___V-qb-", Vr = "ControlSlider-module__paginationOutsideBottom___14w8D", Hr = "ControlSlider-module__paginationOutsideTop___SCLqB", Dr = "ControlSlider-module__paginationInsideLeft___yOBRZ", jr = "ControlSlider-module__paginationInsideRight___Rtt3o", Ur = "ControlSlider-module__paginationOutsideLeft___lahaw", Yr = "ControlSlider-module__paginationOutsideRight___EtuQa", Gr = "ControlSlider-module__imgWrapper___UjEgB", qr = "ControlSlider-module__captionBlock___dJ6-j", Xr = "ControlSlider-module__captionTextWrapper___HFlpf", Kr = "ControlSlider-module__captionText___uGBVc", Jr = "ControlSlider-module__active___WZK4G", Zr = "ControlSlider-module__withPointerEvents___t-18M", Qr = "ControlSlider-module__topLeftAlignment___zjnGM", ti = "ControlSlider-module__topCenterAlignment___gD1xW", ei = "ControlSlider-module__topRightAlignment___NMapS", ni = "ControlSlider-module__middleLeftAlignment___OnUrY", oi = "ControlSlider-module__middleCenterAlignment___Tdkl0", ri = "ControlSlider-module__middleRightAlignment___wEbfX", ii = "ControlSlider-module__bottomLeftAlignment___cTP2-", ai = "ControlSlider-module__bottomCenterAlignment___c54fB", li = "ControlSlider-module__bottomRightAlignment___kEwrz", si = "ControlSlider-module__clickOverlay___DZA28", ci = "ControlSlider-module__contain___pLyq7", ui = "ControlSlider-module__cover___KdDat", U = {
10
+ wrapper: xr,
11
+ hoverArrow: $r,
12
+ sliderItem: _r,
13
+ sliderImage: wr,
14
+ arrow: Tr,
15
+ arrowVertical: Lr,
16
+ nextArrow: Er,
17
+ arrowInner: Ar,
18
18
  arrowIcon: kr,
19
- arrowImg: Fr,
20
- mirror: Rr,
21
- pagination: Br,
22
- paginationInner: Or,
23
- paginationVertical: Pr,
24
- paginationItem: Nr,
25
- dot: Wr,
26
- activeDot: zr,
27
- paginationInsideBottom: Mr,
28
- paginationInsideTop: Vr,
29
- paginationOutsideBottom: Hr,
30
- paginationOutsideTop: Dr,
31
- paginationInsideLeft: jr,
32
- paginationInsideRight: Ur,
33
- paginationOutsideLeft: Yr,
34
- paginationOutsideRight: Gr,
35
- imgWrapper: qr,
36
- captionBlock: Xr,
37
- captionTextWrapper: Kr,
38
- captionText: Jr,
39
- active: Zr,
40
- withPointerEvents: Qr,
41
- topLeftAlignment: ti,
42
- topCenterAlignment: ei,
43
- topRightAlignment: ni,
44
- middleLeftAlignment: oi,
45
- middleCenterAlignment: ri,
46
- middleRightAlignment: ii,
47
- bottomLeftAlignment: ai,
48
- bottomCenterAlignment: li,
49
- bottomRightAlignment: si,
50
- clickOverlay: ci,
51
- contain: ui,
52
- cover: pi
19
+ arrowImg: Ir,
20
+ mirror: Fr,
21
+ pagination: Rr,
22
+ paginationInner: Br,
23
+ paginationVertical: Or,
24
+ paginationItem: Pr,
25
+ dot: Nr,
26
+ activeDot: Wr,
27
+ paginationInsideBottom: zr,
28
+ paginationInsideTop: Mr,
29
+ paginationOutsideBottom: Vr,
30
+ paginationOutsideTop: Hr,
31
+ paginationInsideLeft: Dr,
32
+ paginationInsideRight: jr,
33
+ paginationOutsideLeft: Ur,
34
+ paginationOutsideRight: Yr,
35
+ imgWrapper: Gr,
36
+ captionBlock: qr,
37
+ captionTextWrapper: Xr,
38
+ captionText: Kr,
39
+ active: Jr,
40
+ withPointerEvents: Zr,
41
+ topLeftAlignment: Qr,
42
+ topCenterAlignment: ti,
43
+ topRightAlignment: ei,
44
+ middleLeftAlignment: ni,
45
+ middleCenterAlignment: oi,
46
+ middleRightAlignment: ri,
47
+ bottomLeftAlignment: ii,
48
+ bottomCenterAlignment: ai,
49
+ bottomRightAlignment: li,
50
+ clickOverlay: si,
51
+ contain: ci,
52
+ cover: ui
53
53
  };
54
- function di(t, e) {
54
+ function pi(t, e) {
55
55
  for (var n = 0; n < e.length; n++) {
56
56
  var o = e[n];
57
57
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
58
58
  }
59
59
  }
60
- function gi(t, e, n) {
61
- return e && di(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
60
+ function di(t, e, n) {
61
+ return e && pi(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
62
62
  }
63
- var ao = "(prefers-reduced-motion: reduce)", ge = 1, mi = 2, ye = 3, Se = 4, Ne = 5, Je = 6, nn = 7, fi = {
64
- CREATED: ge,
65
- MOUNTED: mi,
66
- IDLE: ye,
67
- MOVING: Se,
63
+ var io = "(prefers-reduced-motion: reduce)", me = 1, gi = 2, be = 3, xe = 4, Ne = 5, Je = 6, nn = 7, mi = {
64
+ CREATED: me,
65
+ MOUNTED: gi,
66
+ IDLE: be,
67
+ MOVING: xe,
68
68
  SCROLLING: Ne,
69
69
  DRAGGING: Je,
70
70
  DESTROYED: nn
@@ -78,22 +78,22 @@ function Jt(t, e, n) {
78
78
  function at(t) {
79
79
  return t.bind.apply(t, [null].concat(Jt(arguments, 1)));
80
80
  }
81
- var Io = setTimeout, Ln = function() {
81
+ var Ao = setTimeout, Tn = function() {
82
82
  };
83
- function lo(t) {
83
+ function ao(t) {
84
84
  return requestAnimationFrame(t);
85
85
  }
86
86
  function sn(t, e) {
87
87
  return typeof e === t;
88
88
  }
89
- function Ie(t) {
90
- return !Nn(t) && sn("object", t);
89
+ function ke(t) {
90
+ return !Pn(t) && sn("object", t);
91
91
  }
92
- var Pn = Array.isArray, ko = at(sn, "function"), Xt = at(sn, "string"), We = at(sn, "undefined");
93
- function Nn(t) {
92
+ var On = Array.isArray, ko = at(sn, "function"), Xt = at(sn, "string"), We = at(sn, "undefined");
93
+ function Pn(t) {
94
94
  return t === null;
95
95
  }
96
- function Fo(t) {
96
+ function Io(t) {
97
97
  try {
98
98
  return t instanceof (t.ownerDocument.defaultView || window).HTMLElement;
99
99
  } catch {
@@ -101,12 +101,12 @@ function Fo(t) {
101
101
  }
102
102
  }
103
103
  function ze(t) {
104
- return Pn(t) ? t : [t];
104
+ return On(t) ? t : [t];
105
105
  }
106
106
  function At(t, e) {
107
107
  ze(t).forEach(e);
108
108
  }
109
- function Wn(t, e) {
109
+ function Nn(t, e) {
110
110
  return t.indexOf(e) > -1;
111
111
  }
112
112
  function Ze(t, e) {
@@ -123,45 +123,45 @@ function Pt(t, e) {
123
123
  function Me(t, e) {
124
124
  At(e, t.appendChild.bind(t));
125
125
  }
126
- function zn(t, e) {
126
+ function Wn(t, e) {
127
127
  At(t, function(n) {
128
128
  var o = (e || n).parentNode;
129
129
  o && o.insertBefore(n, e);
130
130
  });
131
131
  }
132
- function ke(t, e) {
133
- return Fo(t) && (t.msMatchesSelector || t.matches).call(t, e);
132
+ function Ie(t, e) {
133
+ return Io(t) && (t.msMatchesSelector || t.matches).call(t, e);
134
134
  }
135
- function Ro(t, e) {
135
+ function Fo(t, e) {
136
136
  var n = t ? Jt(t.children) : [];
137
137
  return e ? n.filter(function(o) {
138
- return ke(o, e);
138
+ return Ie(o, e);
139
139
  }) : n;
140
140
  }
141
141
  function Ve(t, e) {
142
- return e ? Ro(t, e)[0] : t.firstElementChild;
142
+ return e ? Fo(t, e)[0] : t.firstElementChild;
143
143
  }
144
144
  var Fe = Object.keys;
145
- function oe(t, e, n) {
145
+ function re(t, e, n) {
146
146
  return t && (n ? Fe(t).reverse() : Fe(t)).forEach(function(o) {
147
147
  o !== "__proto__" && e(t[o], o);
148
148
  }), t;
149
149
  }
150
150
  function Re(t) {
151
151
  return Jt(arguments, 1).forEach(function(e) {
152
- oe(e, function(n, o) {
152
+ re(e, function(n, o) {
153
153
  t[o] = e[o];
154
154
  });
155
155
  }), t;
156
156
  }
157
157
  function qt(t) {
158
158
  return Jt(arguments, 1).forEach(function(e) {
159
- oe(e, function(n, o) {
160
- Pn(n) ? t[o] = n.slice() : Ie(n) ? t[o] = qt({}, Ie(t[o]) ? t[o] : {}, n) : t[o] = n;
159
+ re(e, function(n, o) {
160
+ On(n) ? t[o] = n.slice() : ke(n) ? t[o] = qt({}, ke(t[o]) ? t[o] : {}, n) : t[o] = n;
161
161
  });
162
162
  }), t;
163
163
  }
164
- function so(t, e) {
164
+ function lo(t, e) {
165
165
  At(e || Fe(t), function(n) {
166
166
  delete t[n];
167
167
  });
@@ -174,25 +174,25 @@ function Nt(t, e) {
174
174
  });
175
175
  }
176
176
  function J(t, e, n) {
177
- Ie(e) ? oe(e, function(o, r) {
177
+ ke(e) ? re(e, function(o, r) {
178
178
  J(t, r, o);
179
179
  }) : At(t, function(o) {
180
- Nn(n) || n === "" ? Nt(o, e) : o.setAttribute(e, String(n));
180
+ Pn(n) || n === "" ? Nt(o, e) : o.setAttribute(e, String(n));
181
181
  });
182
182
  }
183
- function me(t, e, n) {
183
+ function fe(t, e, n) {
184
184
  var o = document.createElement(t);
185
185
  return e && (Xt(e) ? Pt(o, e) : J(o, e)), n && Me(n, o), o;
186
186
  }
187
- function kt(t, e, n) {
187
+ function It(t, e, n) {
188
188
  if (We(n))
189
189
  return getComputedStyle(t)[e];
190
- Nn(n) || (t.style[e] = "" + n);
190
+ Pn(n) || (t.style[e] = "" + n);
191
191
  }
192
192
  function Be(t, e) {
193
- kt(t, "display", e);
193
+ It(t, "display", e);
194
194
  }
195
- function Bo(t) {
195
+ function Ro(t) {
196
196
  t.setActive && t.setActive() || t.focus({
197
197
  preventScroll: !0
198
198
  });
@@ -200,71 +200,71 @@ function Bo(t) {
200
200
  function Ft(t, e) {
201
201
  return t.getAttribute(e);
202
202
  }
203
- function co(t, e) {
203
+ function so(t, e) {
204
204
  return t && t.classList.contains(e);
205
205
  }
206
206
  function Lt(t) {
207
207
  return t.getBoundingClientRect();
208
208
  }
209
- function re(t) {
209
+ function ie(t) {
210
210
  At(t, function(e) {
211
211
  e && e.parentNode && e.parentNode.removeChild(e);
212
212
  });
213
213
  }
214
- function Oo(t) {
214
+ function Bo(t) {
215
215
  return Ve(new DOMParser().parseFromString(t, "text/html").body);
216
216
  }
217
217
  function zt(t, e) {
218
218
  t.preventDefault(), e && (t.stopPropagation(), t.stopImmediatePropagation());
219
219
  }
220
- function Po(t, e) {
220
+ function Oo(t, e) {
221
221
  return t && t.querySelector(e);
222
222
  }
223
- function Mn(t, e) {
223
+ function zn(t, e) {
224
224
  return e ? Jt(t.querySelectorAll(e)) : [];
225
225
  }
226
226
  function Vt(t, e) {
227
227
  Mt(t, e, !1);
228
228
  }
229
- function En(t) {
229
+ function Ln(t) {
230
230
  return t.timeStamp;
231
231
  }
232
- function te(t) {
232
+ function ee(t) {
233
233
  return Xt(t) ? t : t ? t + "px" : "";
234
234
  }
235
- var He = "splide", Vn = "data-" + He;
235
+ var He = "splide", Mn = "data-" + He;
236
236
  function Le(t, e) {
237
237
  if (!t)
238
238
  throw new Error("[" + He + "] " + (e || ""));
239
239
  }
240
240
  var Kt = Math.min, on = Math.max, rn = Math.floor, Oe = Math.ceil, $t = Math.abs;
241
- function No(t, e, n) {
241
+ function Po(t, e, n) {
242
242
  return $t(t - e) < n;
243
243
  }
244
244
  function Qe(t, e, n, o) {
245
245
  var r = Kt(e, n), a = on(e, n);
246
246
  return o ? r < t && t < a : r <= t && t <= a;
247
247
  }
248
- function pe(t, e, n) {
248
+ function de(t, e, n) {
249
249
  var o = Kt(e, n), r = on(e, n);
250
250
  return Kt(on(o, t), r);
251
251
  }
252
- function An(t) {
252
+ function En(t) {
253
253
  return +(t > 0) - +(t < 0);
254
254
  }
255
- function In(t, e) {
255
+ function An(t, e) {
256
256
  return At(e, function(n) {
257
257
  t = t.replace("%s", "" + n);
258
258
  }), t;
259
259
  }
260
- function Hn(t) {
260
+ function Vn(t) {
261
261
  return t < 10 ? "0" + t : "" + t;
262
262
  }
263
- var uo = {};
264
- function hi(t) {
265
- return "" + t + Hn(uo[t] = (uo[t] || 0) + 1);
263
+ var co = {};
264
+ function fi(t) {
265
+ return "" + t + Vn(co[t] = (co[t] || 0) + 1);
266
266
  }
267
- function Wo() {
267
+ function No() {
268
268
  var t = [];
269
269
  function e(i, c, l, p) {
270
270
  r(i, c, function(s, _, y) {
@@ -308,18 +308,18 @@ function Wo() {
308
308
  destroy: a
309
309
  };
310
310
  }
311
- var Zt = "mounted", kn = "ready", jt = "move", Ce = "moved", Dn = "click", zo = "active", Mo = "inactive", Vo = "visible", Ho = "hidden", yt = "refresh", xt = "updated", ve = "resize", cn = "resized", Do = "drag", jo = "dragging", Uo = "dragged", un = "scroll", ae = "scrolled", yi = "overflow", jn = "destroy", Yo = "arrows:mounted", Go = "arrows:updated", qo = "pagination:mounted", Xo = "pagination:updated", Un = "navigation:mounted", Yn = "autoplay:play", Ko = "autoplay:playing", Gn = "autoplay:pause", qn = "lazyload:loaded", Jo = "sk", Zo = "sh", an = "ei";
311
+ var Zt = "mounted", kn = "ready", jt = "move", $e = "moved", Hn = "click", Wo = "active", zo = "inactive", Mo = "visible", Vo = "hidden", yt = "refresh", xt = "updated", Se = "resize", cn = "resized", Ho = "drag", Do = "dragging", jo = "dragged", un = "scroll", le = "scrolled", hi = "overflow", Dn = "destroy", Uo = "arrows:mounted", Yo = "arrows:updated", Go = "pagination:mounted", qo = "pagination:updated", jn = "navigation:mounted", Un = "autoplay:play", Xo = "autoplay:playing", Yn = "autoplay:pause", Gn = "lazyload:loaded", Ko = "sk", Jo = "sh", an = "ei";
312
312
  function gt(t) {
313
- var e = t ? t.event.bus : document.createDocumentFragment(), n = Wo();
313
+ var e = t ? t.event.bus : document.createDocumentFragment(), n = No();
314
314
  function o(a, i) {
315
315
  n.bind(e, ze(a).join(" "), function(c) {
316
- i.apply(i, Pn(c.detail) ? c.detail : []);
316
+ i.apply(i, On(c.detail) ? c.detail : []);
317
317
  });
318
318
  }
319
319
  function r(a) {
320
320
  n.dispatch(e, a, Jt(arguments, 1));
321
321
  }
322
- return t && t.event.on(jn, n.destroy), Re(n, {
322
+ return t && t.event.on(Dn, n.destroy), Re(n, {
323
323
  bus: e,
324
324
  on: o,
325
325
  off: at(n.unbind, e),
@@ -332,11 +332,11 @@ function pn(t, e, n, o) {
332
332
  if (!l) {
333
333
  if (i = t ? Kt((r() - a) / t, 1) : 1, n && n(i), i >= 1 && (e(), a = r(), o && ++p >= o))
334
334
  return y();
335
- c = lo(s);
335
+ c = ao(s);
336
336
  }
337
337
  }
338
338
  function _(b) {
339
- b || u(), a = r() - (b ? i * t : 0), l = !1, c = lo(s);
339
+ b || u(), a = r() - (b ? i * t : 0), l = !1, c = ao(s);
340
340
  }
341
341
  function y() {
342
342
  l = !0;
@@ -362,34 +362,34 @@ function pn(t, e, n, o) {
362
362
  isPaused: C
363
363
  };
364
364
  }
365
- function vi(t) {
365
+ function yi(t) {
366
366
  var e = t;
367
367
  function n(r) {
368
368
  e = r;
369
369
  }
370
370
  function o(r) {
371
- return Wn(ze(r), e);
371
+ return Nn(ze(r), e);
372
372
  }
373
373
  return {
374
374
  set: n,
375
375
  is: o
376
376
  };
377
377
  }
378
- function bi(t, e) {
378
+ function vi(t, e) {
379
379
  var n = pn(0, t, null, 1);
380
380
  return function() {
381
381
  n.isPaused() && n.start();
382
382
  };
383
383
  }
384
- function Si(t, e, n) {
385
- var o = t.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i = Wo(), c = [];
384
+ function bi(t, e, n) {
385
+ var o = t.state, r = n.breakpoints || {}, a = n.reducedMotion || {}, i = No(), c = [];
386
386
  function l() {
387
387
  var u = n.mediaQuery === "min";
388
388
  Fe(r).sort(function(d, C) {
389
389
  return u ? +d - +C : +C - +d;
390
390
  }).forEach(function(d) {
391
391
  s(r[d], "(" + (u ? "min" : "max") + "-width:" + d + "px)");
392
- }), s(a, ao), _();
392
+ }), s(a, io), _();
393
393
  }
394
394
  function p(u) {
395
395
  u && i.destroy();
@@ -402,13 +402,13 @@ function Si(t, e, n) {
402
402
  var u = o.is(nn), d = n.direction, C = c.reduce(function(b, f) {
403
403
  return qt(b, f[1].matches ? f[0] : {});
404
404
  }, {});
405
- so(n), m(C), n.destroy ? t.destroy(n.destroy === "completely") : u ? (p(!0), t.mount()) : d !== n.direction && t.refresh();
405
+ lo(n), m(C), n.destroy ? t.destroy(n.destroy === "completely") : u ? (p(!0), t.mount()) : d !== n.direction && t.refresh();
406
406
  }
407
407
  function y(u) {
408
- matchMedia(ao).matches && (u ? qt(n, a) : so(n, Fe(a)));
408
+ matchMedia(io).matches && (u ? qt(n, a) : lo(n, Fe(a)));
409
409
  }
410
410
  function m(u, d, C) {
411
- qt(n, u), d && qt(Object.getPrototypeOf(n), u), (C || !o.is(ge)) && t.emit(xt, n);
411
+ qt(n, u), d && qt(Object.getPrototypeOf(n), u), (C || !o.is(me)) && t.emit(xt, n);
412
412
  }
413
413
  return {
414
414
  setup: l,
@@ -417,81 +417,81 @@ function Si(t, e, n) {
417
417
  set: m
418
418
  };
419
419
  }
420
- var dn = "Arrow", gn = dn + "Left", mn = dn + "Right", Qo = dn + "Up", tr = dn + "Down", po = "rtl", fn = "ttb", Cn = {
420
+ var dn = "Arrow", gn = dn + "Left", mn = dn + "Right", Zo = dn + "Up", Qo = dn + "Down", uo = "rtl", fn = "ttb", Sn = {
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: [Qo, mn],
428
- ArrowRight: [tr, gn]
427
+ ArrowLeft: [Zo, mn],
428
+ ArrowRight: [Qo, gn]
429
429
  };
430
- function Ci(t, e, n) {
430
+ function Si(t, e, n) {
431
431
  function o(a, i, c) {
432
432
  c = c || n.direction;
433
- var l = c === po && !i ? 1 : c === fn ? 0 : -1;
434
- return Cn[a] && Cn[a][l] || a.replace(/width|left|right/i, function(p, s) {
435
- var _ = Cn[p.toLowerCase()][l] || p;
433
+ var l = c === uo && !i ? 1 : c === fn ? 0 : -1;
434
+ return Sn[a] && Sn[a][l] || a.replace(/width|left|right/i, function(p, s) {
435
+ var _ = Sn[p.toLowerCase()][l] || p;
436
436
  return s > 0 ? _.charAt(0).toUpperCase() + _.slice(1) : _;
437
437
  });
438
438
  }
439
439
  function r(a) {
440
- return a * (n.direction === po ? 1 : -1);
440
+ return a * (n.direction === uo ? 1 : -1);
441
441
  }
442
442
  return {
443
443
  resolve: o,
444
444
  orient: r
445
445
  };
446
446
  }
447
- var Ht = "role", fe = "tabindex", xi = "disabled", Rt = "aria-", De = Rt + "controls", er = Rt + "current", go = Rt + "selected", Et = Rt + "label", Xn = Rt + "labelledby", nr = Rt + "hidden", Kn = Rt + "orientation", Pe = Rt + "roledescription", mo = Rt + "live", fo = Rt + "busy", ho = Rt + "atomic", Jn = [Ht, fe, xi, De, er, Et, Xn, nr, Kn, Pe], Wt = He + "__", Qt = "is-", xn = He, yo = Wt + "track", $i = Wt + "list", hn = Wt + "slide", or = hn + "--clone", _i = hn + "__container", Zn = Wt + "arrows", yn = Wt + "arrow", rr = yn + "--prev", ir = yn + "--next", vn = Wt + "pagination", ar = vn + "__page", wi = Wt + "progress", Ti = wi + "__bar", Li = Wt + "toggle", Ei = Wt + "spinner", Ai = Wt + "sr", Ii = Qt + "initialized", ie = Qt + "active", lr = Qt + "prev", sr = Qt + "next", Fn = Qt + "visible", Rn = Qt + "loading", cr = Qt + "focus-in", ur = Qt + "overflow", ki = [ie, Fn, lr, sr, Rn, cr, ur], Fi = {
447
+ var Ht = "role", he = "tabindex", Ci = "disabled", Rt = "aria-", De = Rt + "controls", tr = Rt + "current", po = Rt + "selected", Et = Rt + "label", qn = Rt + "labelledby", er = Rt + "hidden", Xn = Rt + "orientation", Pe = Rt + "roledescription", go = Rt + "live", mo = Rt + "busy", fo = Rt + "atomic", Kn = [Ht, he, Ci, De, tr, Et, qn, er, Xn, Pe], Wt = He + "__", Qt = "is-", Cn = He, ho = Wt + "track", xi = Wt + "list", hn = Wt + "slide", nr = hn + "--clone", $i = hn + "__container", Jn = Wt + "arrows", yn = Wt + "arrow", or = yn + "--prev", rr = yn + "--next", vn = Wt + "pagination", ir = vn + "__page", _i = Wt + "progress", wi = _i + "__bar", Ti = Wt + "toggle", Li = Wt + "spinner", Ei = Wt + "sr", Ai = Qt + "initialized", ae = Qt + "active", ar = Qt + "prev", lr = Qt + "next", In = Qt + "visible", Fn = Qt + "loading", sr = Qt + "focus-in", cr = Qt + "overflow", ki = [ae, In, ar, lr, Fn, sr, cr], Ii = {
448
448
  slide: hn,
449
- clone: or,
450
- arrows: Zn,
449
+ clone: nr,
450
+ arrows: Jn,
451
451
  arrow: yn,
452
- prev: rr,
453
- next: ir,
452
+ prev: or,
453
+ next: rr,
454
454
  pagination: vn,
455
- page: ar,
456
- spinner: Ei
455
+ page: ir,
456
+ spinner: Li
457
457
  };
458
- function Ri(t, e) {
458
+ function Fi(t, e) {
459
459
  if (ko(t.closest))
460
460
  return t.closest(e);
461
- for (var n = t; n && n.nodeType === 1 && !ke(n, e); )
461
+ for (var n = t; n && n.nodeType === 1 && !Ie(n, e); )
462
462
  n = n.parentElement;
463
463
  return n;
464
464
  }
465
- var Bi = 5, vo = 200, pr = "touchstart mousedown", $n = "touchmove mousemove", _n = "touchend touchcancel mouseup click";
466
- function Oi(t, e, n) {
465
+ var Ri = 5, yo = 200, ur = "touchstart mousedown", xn = "touchmove mousemove", $n = "touchend touchcancel mouseup click";
466
+ function Bi(t, e, n) {
467
467
  var o = gt(t), r = o.on, a = o.bind, i = t.root, c = n.i18n, l = {}, p = [], s = [], _ = [], y, m, u;
468
468
  function d() {
469
469
  x(), V(), f();
470
470
  }
471
471
  function C() {
472
- r(yt, b), r(yt, d), r(xt, f), a(document, pr + " keydown", function(h) {
472
+ r(yt, b), r(yt, d), r(xt, f), a(document, ur + " keydown", function(h) {
473
473
  u = h.type === "keydown";
474
474
  }, {
475
475
  capture: !0
476
476
  }), a(i, "focusin", function() {
477
- Mt(i, cr, !!u);
477
+ Mt(i, sr, !!u);
478
478
  });
479
479
  }
480
480
  function b(h) {
481
- var L = Jn.concat("style");
481
+ var L = Kn.concat("style");
482
482
  Dt(p), Vt(i, s), Vt(y, _), Nt([y, m], L), Nt(i, h ? L : ["style", Pe]);
483
483
  }
484
484
  function f() {
485
- Vt(i, s), Vt(y, _), s = w(xn), _ = w(yo), Pt(i, s), Pt(y, _), J(i, Et, n.label), J(i, Xn, n.labelledby);
485
+ Vt(i, s), Vt(y, _), s = w(Cn), _ = w(ho), Pt(i, s), Pt(y, _), J(i, Et, n.label), J(i, qn, n.labelledby);
486
486
  }
487
487
  function x() {
488
- y = N("." + yo), m = Ve(y, "." + $i), Le(y && m, "A track/list element is missing."), Ze(p, Ro(m, "." + hn + ":not(." + or + ")")), oe({
489
- arrows: Zn,
488
+ y = N("." + ho), m = Ve(y, "." + xi), Le(y && m, "A track/list element is missing."), Ze(p, Fo(m, "." + hn + ":not(." + nr + ")")), re({
489
+ arrows: Jn,
490
490
  pagination: vn,
491
- prev: rr,
492
- next: ir,
493
- bar: Ti,
494
- toggle: Li
491
+ prev: or,
492
+ next: rr,
493
+ bar: wi,
494
+ toggle: Ti
495
495
  }, function(h, L) {
496
496
  l[L] = N("." + h);
497
497
  }), Re(l, {
@@ -502,15 +502,15 @@ function Oi(t, e, n) {
502
502
  });
503
503
  }
504
504
  function V() {
505
- var h = i.id || hi(He), L = n.role;
505
+ var h = i.id || fi(He), L = n.role;
506
506
  i.id = h, y.id = y.id || h + "-track", m.id = m.id || h + "-list", !Ft(i, Ht) && i.tagName !== "SECTION" && L && J(i, Ht, L), J(i, Pe, c.carousel), J(m, Ht, "presentation");
507
507
  }
508
508
  function N(h) {
509
- var L = Po(i, h);
510
- return L && Ri(L, "." + xn) === i ? L : void 0;
509
+ var L = Oo(i, h);
510
+ return L && Fi(L, "." + Cn) === i ? L : void 0;
511
511
  }
512
512
  function w(h) {
513
- return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h === xn && ie];
513
+ return [h + "--" + n.type, h + "--" + n.direction, n.drag && h + "--draggable", n.isNavigation && h + "--nav", h === Cn && ae];
514
514
  }
515
515
  return Re(l, {
516
516
  setup: d,
@@ -518,47 +518,47 @@ function Oi(t, e, n) {
518
518
  destroy: b
519
519
  });
520
520
  }
521
- var be = "slide", xe = "loop", je = "fade";
522
- function Pi(t, e, n, o) {
523
- var r = gt(t), a = r.on, i = r.emit, c = r.bind, l = t.Components, p = t.root, s = t.options, _ = s.isNavigation, y = s.updateOnMove, m = s.i18n, u = s.pagination, d = s.slideFocus, C = l.Direction.resolve, b = Ft(o, "style"), f = Ft(o, Et), x = n > -1, V = Ve(o, "." + _i), N;
521
+ var Ce = "slide", _e = "loop", je = "fade";
522
+ function Oi(t, e, n, o) {
523
+ var r = gt(t), a = r.on, i = r.emit, c = r.bind, l = t.Components, p = t.root, s = t.options, _ = s.isNavigation, y = s.updateOnMove, m = s.i18n, u = s.pagination, d = s.slideFocus, C = l.Direction.resolve, b = Ft(o, "style"), f = Ft(o, Et), x = n > -1, V = Ve(o, "." + $i), N;
524
524
  function w() {
525
- x || (o.id = p.id + "-slide" + Hn(e + 1), J(o, Ht, u ? "tabpanel" : "group"), J(o, Pe, m.slide), J(o, Et, f || In(m.slideLabel, [e + 1, t.length]))), h();
525
+ x || (o.id = p.id + "-slide" + Vn(e + 1), J(o, Ht, u ? "tabpanel" : "group"), J(o, Pe, m.slide), J(o, Et, f || An(m.slideLabel, [e + 1, t.length]))), h();
526
526
  }
527
527
  function h() {
528
- c(o, "click", at(i, Dn, A)), c(o, "keydown", at(i, Jo, A)), a([Ce, Zo, ae], I), a(Un, k), y && a(jt, z);
528
+ c(o, "click", at(i, Hn, A)), c(o, "keydown", at(i, Ko, A)), a([$e, Jo, le], k), a(jn, I), y && a(jt, z);
529
529
  }
530
530
  function L() {
531
- N = !0, r.destroy(), Vt(o, ki), Nt(o, Jn), J(o, "style", b), J(o, Et, f || "");
531
+ N = !0, r.destroy(), Vt(o, ki), Nt(o, Kn), J(o, "style", b), J(o, Et, f || "");
532
532
  }
533
- function k() {
533
+ function I() {
534
534
  var $ = t.splides.map(function(v) {
535
535
  var R = v.splide.Components.Slides.getAt(e);
536
536
  return R ? R.slide.id : "";
537
537
  }).join(" ");
538
- J(o, Et, In(m.slideX, (x ? n : e) + 1)), J(o, De, $), J(o, Ht, d ? "button" : ""), d && Nt(o, Pe);
538
+ J(o, Et, An(m.slideX, (x ? n : e) + 1)), J(o, De, $), J(o, Ht, d ? "button" : ""), d && Nt(o, Pe);
539
539
  }
540
540
  function z() {
541
- N || I();
541
+ N || k();
542
542
  }
543
- function I() {
543
+ function k() {
544
544
  if (!N) {
545
545
  var $ = t.index;
546
- F(), O(), Mt(o, lr, e === $ - 1), Mt(o, sr, e === $ + 1);
546
+ F(), O(), Mt(o, ar, e === $ - 1), Mt(o, lr, e === $ + 1);
547
547
  }
548
548
  }
549
549
  function F() {
550
550
  var $ = j();
551
- $ !== co(o, ie) && (Mt(o, ie, $), J(o, er, _ && $ || ""), i($ ? zo : Mo, A));
551
+ $ !== so(o, ae) && (Mt(o, ae, $), J(o, tr, _ && $ || ""), i($ ? Wo : zo, A));
552
552
  }
553
553
  function O() {
554
554
  var $ = g(), v = !$ && (!j() || x);
555
- if (t.state.is([Se, Ne]) || J(o, nr, v || ""), J(Mn(o, s.focusableNodes || ""), fe, v ? -1 : ""), d && J(o, fe, v ? -1 : 0), $ !== co(o, Fn) && (Mt(o, Fn, $), i($ ? Vo : Ho, A)), !$ && document.activeElement === o) {
555
+ if (t.state.is([xe, Ne]) || J(o, er, v || ""), J(zn(o, s.focusableNodes || ""), he, v ? -1 : ""), d && J(o, he, v ? -1 : 0), $ !== so(o, In) && (Mt(o, In, $), i($ ? Mo : Vo, A)), !$ && document.activeElement === o) {
556
556
  var R = l.Slides.getAt(t.index);
557
- R && Bo(R.slide);
557
+ R && Ro(R.slide);
558
558
  }
559
559
  }
560
560
  function D($, v, R) {
561
- kt(R && V || o, $, v);
561
+ It(R && V || o, $, v);
562
562
  }
563
563
  function j() {
564
564
  var $ = t.index;
@@ -572,7 +572,7 @@ function Pi(t, e, n, o) {
572
572
  }
573
573
  function E($, v) {
574
574
  var R = $t($ - e);
575
- return !x && (s.rewind || t.is(xe)) && (R = Kt(R, t.length - R)), R <= v;
575
+ return !x && (s.rewind || t.is(_e)) && (R = Kt(R, t.length - R)), R <= v;
576
576
  }
577
577
  var A = {
578
578
  index: e,
@@ -582,88 +582,88 @@ function Pi(t, e, n, o) {
582
582
  isClone: x,
583
583
  mount: w,
584
584
  destroy: L,
585
- update: I,
585
+ update: k,
586
586
  style: D,
587
587
  isWithin: E
588
588
  };
589
589
  return A;
590
590
  }
591
- function Ni(t, e, n) {
591
+ function Pi(t, e, n) {
592
592
  var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Elements, l = c.slides, p = c.list, s = [];
593
593
  function _() {
594
594
  y(), r(yt, m), r(yt, y);
595
595
  }
596
596
  function y() {
597
- l.forEach(function(I, F) {
598
- d(I, F, -1);
597
+ l.forEach(function(k, F) {
598
+ d(k, F, -1);
599
599
  });
600
600
  }
601
601
  function m() {
602
- N(function(I) {
603
- I.destroy();
602
+ N(function(k) {
603
+ k.destroy();
604
604
  }), Dt(s);
605
605
  }
606
606
  function u() {
607
- N(function(I) {
608
- I.update();
607
+ N(function(k) {
608
+ k.update();
609
609
  });
610
610
  }
611
- function d(I, F, O) {
612
- var D = Pi(t, F, O, I);
611
+ function d(k, F, O) {
612
+ var D = Oi(t, F, O, k);
613
613
  D.mount(), s.push(D), s.sort(function(j, g) {
614
614
  return j.index - g.index;
615
615
  });
616
616
  }
617
- function C(I) {
618
- return I ? w(function(F) {
617
+ function C(k) {
618
+ return k ? w(function(F) {
619
619
  return !F.isClone;
620
620
  }) : s;
621
621
  }
622
- function b(I) {
623
- var F = e.Controller, O = F.toIndex(I), D = F.hasFocus() ? 1 : n.perPage;
622
+ function b(k) {
623
+ var F = e.Controller, O = F.toIndex(k), D = F.hasFocus() ? 1 : n.perPage;
624
624
  return w(function(j) {
625
625
  return Qe(j.index, O, O + D - 1);
626
626
  });
627
627
  }
628
- function f(I) {
629
- return w(I)[0];
628
+ function f(k) {
629
+ return w(k)[0];
630
630
  }
631
- function x(I, F) {
632
- At(I, function(O) {
633
- if (Xt(O) && (O = Oo(O)), Fo(O)) {
631
+ function x(k, F) {
632
+ At(k, function(O) {
633
+ if (Xt(O) && (O = Bo(O)), Io(O)) {
634
634
  var D = l[F];
635
- D ? zn(O, D) : Me(p, O), Pt(O, n.classes.slide), L(O, at(a, ve));
635
+ D ? Wn(O, D) : Me(p, O), Pt(O, n.classes.slide), L(O, at(a, Se));
636
636
  }
637
637
  }), a(yt);
638
638
  }
639
- function V(I) {
640
- re(w(I).map(function(F) {
639
+ function V(k) {
640
+ ie(w(k).map(function(F) {
641
641
  return F.slide;
642
642
  })), a(yt);
643
643
  }
644
- function N(I, F) {
645
- C(F).forEach(I);
644
+ function N(k, F) {
645
+ C(F).forEach(k);
646
646
  }
647
- function w(I) {
648
- return s.filter(ko(I) ? I : function(F) {
649
- return Xt(I) ? ke(F.slide, I) : Wn(ze(I), F.index);
647
+ function w(k) {
648
+ return s.filter(ko(k) ? k : function(F) {
649
+ return Xt(k) ? Ie(F.slide, k) : Nn(ze(k), F.index);
650
650
  });
651
651
  }
652
- function h(I, F, O) {
652
+ function h(k, F, O) {
653
653
  N(function(D) {
654
- D.style(I, F, O);
654
+ D.style(k, F, O);
655
655
  });
656
656
  }
657
- function L(I, F) {
658
- var O = Mn(I, "img"), D = O.length;
657
+ function L(k, F) {
658
+ var O = zn(k, "img"), D = O.length;
659
659
  D ? O.forEach(function(j) {
660
660
  i(j, "load error", function() {
661
661
  --D || F();
662
662
  });
663
663
  }) : F();
664
664
  }
665
- function k(I) {
666
- return I ? l.length : s.length;
665
+ function I(k) {
666
+ return k ? l.length : s.length;
667
667
  }
668
668
  function z() {
669
669
  return s.length > n.perPage;
@@ -681,44 +681,44 @@ function Ni(t, e, n) {
681
681
  forEach: N,
682
682
  filter: w,
683
683
  style: h,
684
- getLength: k,
684
+ getLength: I,
685
685
  isEnough: z
686
686
  };
687
687
  }
688
- function Wi(t, e, n) {
688
+ function Ni(t, e, n) {
689
689
  var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = e.Slides, l = e.Direction.resolve, p = e.Elements, s = p.root, _ = p.track, y = p.list, m = c.getAt, u = c.style, d, C, b;
690
690
  function f() {
691
- x(), a(window, "resize load", bi(at(i, ve))), r([xt, yt], x), r(ve, V);
691
+ x(), a(window, "resize load", vi(at(i, Se))), r([xt, yt], x), r(Se, V);
692
692
  }
693
693
  function x() {
694
- d = n.direction === fn, kt(s, "maxWidth", te(n.width)), kt(_, l("paddingLeft"), N(!1)), kt(_, l("paddingRight"), N(!0)), V(!0);
694
+ d = n.direction === fn, It(s, "maxWidth", ee(n.width)), It(_, l("paddingLeft"), N(!1)), It(_, l("paddingRight"), N(!0)), V(!0);
695
695
  }
696
696
  function V(A) {
697
697
  var $ = Lt(s);
698
- (A || C.width !== $.width || C.height !== $.height) && (kt(_, "height", w()), u(l("marginRight"), te(n.gap)), u("width", L()), u("height", k(), !0), C = $, i(cn), b !== (b = E()) && (Mt(s, ur, b), i(yi, b)));
698
+ (A || C.width !== $.width || C.height !== $.height) && (It(_, "height", w()), u(l("marginRight"), ee(n.gap)), u("width", L()), u("height", I(), !0), C = $, i(cn), b !== (b = E()) && (Mt(s, cr, b), i(hi, b)));
699
699
  }
700
700
  function N(A) {
701
701
  var $ = n.padding, v = l(A ? "right" : "left");
702
- return $ && te($[v] || (Ie($) ? 0 : $)) || "0px";
702
+ return $ && ee($[v] || (ke($) ? 0 : $)) || "0px";
703
703
  }
704
704
  function w() {
705
705
  var A = "";
706
706
  return d && (A = h(), Le(A, "height or heightRatio is missing."), A = "calc(" + A + " - " + N(!1) + " - " + N(!0) + ")"), A;
707
707
  }
708
708
  function h() {
709
- return te(n.height || Lt(y).width * n.heightRatio);
709
+ return ee(n.height || Lt(y).width * n.heightRatio);
710
710
  }
711
711
  function L() {
712
- return n.autoWidth ? null : te(n.fixedWidth) || (d ? "" : z());
712
+ return n.autoWidth ? null : ee(n.fixedWidth) || (d ? "" : z());
713
713
  }
714
- function k() {
715
- return te(n.fixedHeight) || (d ? n.autoHeight ? null : z() : h());
714
+ function I() {
715
+ return ee(n.fixedHeight) || (d ? n.autoHeight ? null : z() : h());
716
716
  }
717
717
  function z() {
718
- var A = te(n.gap);
718
+ var A = ee(n.gap);
719
719
  return "calc((100%" + (A && " + " + A) + ")/" + (n.perPage || 1) + (A && " - " + A) + ")";
720
720
  }
721
- function I() {
721
+ function k() {
722
722
  return Lt(y)[l("width")];
723
723
  }
724
724
  function F(A, $) {
@@ -738,18 +738,18 @@ function Wi(t, e, n) {
738
738
  }
739
739
  function j() {
740
740
  var A = m(0);
741
- return A && parseFloat(kt(A.slide, l("marginRight"))) || 0;
741
+ return A && parseFloat(It(A.slide, l("marginRight"))) || 0;
742
742
  }
743
743
  function g(A) {
744
- return parseFloat(kt(_, l("padding" + (A ? "Right" : "Left")))) || 0;
744
+ return parseFloat(It(_, l("padding" + (A ? "Right" : "Left")))) || 0;
745
745
  }
746
746
  function E() {
747
- return t.is(je) || D(!0) > I();
747
+ return t.is(je) || D(!0) > k();
748
748
  }
749
749
  return {
750
750
  mount: f,
751
751
  resize: V,
752
- listSize: I,
752
+ listSize: k,
753
753
  slideSize: F,
754
754
  sliderSize: D,
755
755
  totalSize: O,
@@ -757,17 +757,17 @@ function Wi(t, e, n) {
757
757
  isOverflow: E
758
758
  };
759
759
  }
760
- var zi = 2;
761
- function Mi(t, e, n) {
760
+ var Wi = 2;
761
+ function zi(t, e, n) {
762
762
  var o = gt(t), r = o.on, a = e.Elements, i = e.Slides, c = e.Direction.resolve, l = [], p;
763
763
  function s() {
764
- r(yt, _), r([xt, ve], m), (p = C()) && (u(p), e.Layout.resize(!0));
764
+ r(yt, _), r([xt, Se], m), (p = C()) && (u(p), e.Layout.resize(!0));
765
765
  }
766
766
  function _() {
767
767
  y(), s();
768
768
  }
769
769
  function y() {
770
- re(l), Dt(l), o.destroy();
770
+ ie(l), Dt(l), o.destroy();
771
771
  }
772
772
  function m() {
773
773
  var b = C();
@@ -780,21 +780,21 @@ function Mi(t, e, n) {
780
780
  Ze(f, f);
781
781
  Ze(f.slice(-b), f.slice(0, b)).forEach(function(V, N) {
782
782
  var w = N < b, h = d(V.slide, N);
783
- w ? zn(h, f[0].slide) : Me(a.list, h), Ze(l, h), i.register(h, N - b + (w ? 0 : x), V.index);
783
+ w ? Wn(h, f[0].slide) : Me(a.list, h), Ze(l, h), i.register(h, N - b + (w ? 0 : x), V.index);
784
784
  });
785
785
  }
786
786
  }
787
787
  function d(b, f) {
788
788
  var x = b.cloneNode(!0);
789
- return Pt(x, n.classes.clone), x.id = t.root.id + "-clone" + Hn(f + 1), x;
789
+ return Pt(x, n.classes.clone), x.id = t.root.id + "-clone" + Vn(f + 1), x;
790
790
  }
791
791
  function C() {
792
792
  var b = n.clones;
793
- if (!t.is(xe))
793
+ if (!t.is(_e))
794
794
  b = 0;
795
795
  else if (We(b)) {
796
796
  var f = n[c("fixedWidth")] && e.Layout.slideSize(0), x = f && Oe(Lt(a.track)[c("width")] / f);
797
- b = x || n[c("autoWidth")] && t.length || n.perPage * zi;
797
+ b = x || n[c("autoWidth")] && t.length || n.perPage * Wi;
798
798
  }
799
799
  return b;
800
800
  }
@@ -803,7 +803,7 @@ function Mi(t, e, n) {
803
803
  destroy: y
804
804
  };
805
805
  }
806
- function Vi(t, e, n) {
806
+ function Mi(t, e, n) {
807
807
  var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Layout, l = c.slideSize, p = c.getPadding, s = c.totalSize, _ = c.listSize, y = c.sliderSize, m = e.Direction, u = m.resolve, d = m.orient, C = e.Elements, b = C.list, f = C.track, x;
808
808
  function V() {
809
809
  x = e.Transition, r([Zt, cn, xt, yt], N);
@@ -812,8 +812,8 @@ function Vi(t, e, n) {
812
812
  e.Controller.isBusy() || (e.Scroll.cancel(), h(t.index), e.Slides.update());
813
813
  }
814
814
  function w(v, R, q, ot) {
815
- v !== R && A(v > q) && (I(), L(z(D(), v > q), !0)), i(Se), a(jt, R, q, v), x.start(R, function() {
816
- i(ye), a(Ce, R, q, v), ot && ot();
815
+ v !== R && A(v > q) && (k(), L(z(D(), v > q), !0)), i(xe), a(jt, R, q, v), x.start(R, function() {
816
+ i(be), a($e, R, q, v), ot && ot();
817
817
  });
818
818
  }
819
819
  function h(v) {
@@ -821,12 +821,12 @@ function Vi(t, e, n) {
821
821
  }
822
822
  function L(v, R) {
823
823
  if (!t.is(je)) {
824
- var q = R ? v : k(v);
825
- kt(b, "transform", "translate" + u("X") + "(" + q + "px)"), v !== q && a(Zo);
824
+ var q = R ? v : I(v);
825
+ It(b, "transform", "translate" + u("X") + "(" + q + "px)"), v !== q && a(Jo);
826
826
  }
827
827
  }
828
- function k(v) {
829
- if (t.is(xe)) {
828
+ function I(v) {
829
+ if (t.is(_e)) {
830
830
  var R = F(v), q = R > e.Controller.getEnd(), ot = R < 0;
831
831
  (ot || q) && (v = z(v, q));
832
832
  }
@@ -836,7 +836,7 @@ function Vi(t, e, n) {
836
836
  var q = v - E(R), ot = y();
837
837
  return v -= d(ot * (Oe($t(q) / ot) || 1)) * (R ? 1 : -1), v;
838
838
  }
839
- function I() {
839
+ function k() {
840
840
  L(D(), !0), x.cancel();
841
841
  }
842
842
  function F(v) {
@@ -858,7 +858,7 @@ function Vi(t, e, n) {
858
858
  return Lt(b)[v] - Lt(f)[v] + d(p(!1));
859
859
  }
860
860
  function j(v) {
861
- return n.trimSpace && t.is(be) && (v = pe(v, 0, d(y(!0) - _()))), v;
861
+ return n.trimSpace && t.is(Ce) && (v = de(v, 0, d(y(!0) - _()))), v;
862
862
  }
863
863
  function g(v) {
864
864
  var R = n.focus;
@@ -882,7 +882,7 @@ function Vi(t, e, n) {
882
882
  jump: h,
883
883
  translate: L,
884
884
  shift: z,
885
- cancel: I,
885
+ cancel: k,
886
886
  toIndex: F,
887
887
  toPosition: O,
888
888
  getPosition: D,
@@ -891,27 +891,27 @@ function Vi(t, e, n) {
891
891
  reposition: N
892
892
  };
893
893
  }
894
- function Hi(t, e, n) {
895
- var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, l = i.getLimit, p = i.toPosition, s = e.Slides, _ = s.isEnough, y = s.getLength, m = n.omitEnd, u = t.is(xe), d = t.is(be), C = at(D, !1), b = at(D, !0), f = n.start || 0, x, V = f, N, w, h;
894
+ function Vi(t, e, n) {
895
+ var o = gt(t), r = o.on, a = o.emit, i = e.Move, c = i.getPosition, l = i.getLimit, p = i.toPosition, s = e.Slides, _ = s.isEnough, y = s.getLength, m = n.omitEnd, u = t.is(_e), d = t.is(Ce), C = at(D, !1), b = at(D, !0), f = n.start || 0, x, V = f, N, w, h;
896
896
  function L() {
897
- k(), r([xt, yt, an], k), r(cn, z);
897
+ I(), r([xt, yt, an], I), r(cn, z);
898
898
  }
899
- function k() {
899
+ function I() {
900
900
  N = y(!0), w = n.perMove, h = n.perPage, x = A();
901
- var T = pe(f, 0, m ? x : N - 1);
901
+ var T = de(f, 0, m ? x : N - 1);
902
902
  T !== f && (f = T, i.reposition());
903
903
  }
904
904
  function z() {
905
905
  x !== A() && a(an);
906
906
  }
907
- function I(T, X, ft) {
907
+ function k(T, X, ht) {
908
908
  if (!ut()) {
909
909
  var rt = O(T), mt = E(rt);
910
- mt > -1 && (X || mt !== f) && (q(mt), i.move(rt, mt, V, ft));
910
+ mt > -1 && (X || mt !== f) && (q(mt), i.move(rt, mt, V, ht));
911
911
  }
912
912
  }
913
- function F(T, X, ft, rt) {
914
- e.Scroll.scroll(T, X, ft, function() {
913
+ function F(T, X, ht, rt) {
914
+ e.Scroll.scroll(T, X, ht, function() {
915
915
  var mt = E(i.toIndex(c()));
916
916
  q(m ? Kt(mt, x) : mt), rt && rt();
917
917
  });
@@ -919,20 +919,20 @@ function Hi(t, e, n) {
919
919
  function O(T) {
920
920
  var X = f;
921
921
  if (Xt(T)) {
922
- var ft = T.match(/([+\-<>])(\d+)?/) || [], rt = ft[1], mt = ft[2];
922
+ var ht = T.match(/([+\-<>])(\d+)?/) || [], rt = ht[1], mt = ht[2];
923
923
  rt === "+" || rt === "-" ? X = j(f + +("" + rt + (+mt || 1)), f) : rt === ">" ? X = mt ? $(+mt) : C(!0) : rt === "<" && (X = b(!0));
924
924
  } else
925
- X = u ? T : pe(T, 0, x);
925
+ X = u ? T : de(T, 0, x);
926
926
  return X;
927
927
  }
928
928
  function D(T, X) {
929
- var ft = w || (Z() ? 1 : h), rt = j(f + ft * (T ? -1 : 1), f, !(w || Z()));
930
- return rt === -1 && d && !No(c(), l(!T), 1) ? T ? 0 : x : X ? rt : E(rt);
929
+ var ht = w || (Z() ? 1 : h), rt = j(f + ht * (T ? -1 : 1), f, !(w || Z()));
930
+ return rt === -1 && d && !Po(c(), l(!T), 1) ? T ? 0 : x : X ? rt : E(rt);
931
931
  }
932
- function j(T, X, ft) {
932
+ function j(T, X, ht) {
933
933
  if (_() || Z()) {
934
934
  var rt = g(T);
935
- rt !== T && (X = T, T = rt, ft = !1), T < 0 || T > x ? !w && (Qe(0, T, X, !0) || Qe(x, X, T, !0)) ? T = $(v(T)) : u ? T = ft ? T < 0 ? -(N % h || h) : N : T : n.rewind ? T = T < 0 ? x : 0 : T = -1 : ft && T !== X && (T = $(v(X) + (T < X ? -1 : 1)));
935
+ rt !== T && (X = T, T = rt, ht = !1), T < 0 || T > x ? !w && (Qe(0, T, X, !0) || Qe(x, X, T, !0)) ? T = $(v(T)) : u ? T = ht ? T < 0 ? -(N % h || h) : N : T : n.rewind ? T = T < 0 ? x : 0 : T = -1 : ht && T !== X && (T = $(v(X) + (T < X ? -1 : 1)));
936
936
  } else
937
937
  T = -1;
938
938
  return T;
@@ -952,17 +952,17 @@ function Hi(t, e, n) {
952
952
  T++;
953
953
  break;
954
954
  }
955
- return pe(T, 0, N - 1);
955
+ return de(T, 0, N - 1);
956
956
  }
957
957
  function $(T) {
958
- return pe(Z() ? T : h * T, 0, x);
958
+ return de(Z() ? T : h * T, 0, x);
959
959
  }
960
960
  function v(T) {
961
961
  return Z() ? Kt(T, x) : rn((T >= x ? N - 1 : T) / h);
962
962
  }
963
963
  function R(T) {
964
964
  var X = i.toIndex(T);
965
- return d ? pe(X, 0, x) : X;
965
+ return d ? de(X, 0, x) : X;
966
966
  }
967
967
  function q(T) {
968
968
  T !== f && (V = f, f = T);
@@ -974,11 +974,11 @@ function Hi(t, e, n) {
974
974
  return !We(n.focus) || n.isNavigation;
975
975
  }
976
976
  function ut() {
977
- return t.state.is([Se, Ne]) && !!n.waitForTransition;
977
+ return t.state.is([xe, Ne]) && !!n.waitForTransition;
978
978
  }
979
979
  return {
980
980
  mount: L,
981
- go: I,
981
+ go: k,
982
982
  scroll: F,
983
983
  getNext: C,
984
984
  getPrev: b,
@@ -993,8 +993,8 @@ function Hi(t, e, n) {
993
993
  isBusy: ut
994
994
  };
995
995
  }
996
- var Di = "http://www.w3.org/2000/svg", ji = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", Ye = 40;
997
- function Ui(t, e, n) {
996
+ var Hi = "http://www.w3.org/2000/svg", Di = "m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z", Ye = 40;
997
+ function ji(t, e, n) {
998
998
  var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = n.classes, l = n.i18n, p = e.Elements, s = e.Controller, _ = p.arrows, y = p.track, m = _, u = p.prev, d = p.next, C, b, f = {};
999
999
  function x() {
1000
1000
  N(), r(xt, V);
@@ -1004,74 +1004,74 @@ function Ui(t, e, n) {
1004
1004
  }
1005
1005
  function N() {
1006
1006
  var F = n.arrows;
1007
- F && !(u && d) && k(), u && d && (Re(f, {
1007
+ F && !(u && d) && I(), u && d && (Re(f, {
1008
1008
  prev: u,
1009
1009
  next: d
1010
- }), Be(m, F ? "" : "none"), Pt(m, b = Zn + "--" + n.direction), F && (h(), I(), J([u, d], De, y.id), i(Yo, u, d)));
1010
+ }), Be(m, F ? "" : "none"), Pt(m, b = Jn + "--" + n.direction), F && (h(), k(), J([u, d], De, y.id), i(Uo, u, d)));
1011
1011
  }
1012
1012
  function w() {
1013
- o.destroy(), Vt(m, b), C ? (re(_ ? [u, d] : m), u = d = null) : Nt([u, d], Jn);
1013
+ o.destroy(), Vt(m, b), C ? (ie(_ ? [u, d] : m), u = d = null) : Nt([u, d], Kn);
1014
1014
  }
1015
1015
  function h() {
1016
- r([Zt, Ce, yt, ae, an], I), a(d, "click", at(L, ">")), a(u, "click", at(L, "<"));
1016
+ r([Zt, $e, yt, le, an], k), a(d, "click", at(L, ">")), a(u, "click", at(L, "<"));
1017
1017
  }
1018
1018
  function L(F) {
1019
1019
  s.go(F, !0);
1020
1020
  }
1021
- function k() {
1022
- m = _ || me("div", c.arrows), u = z(!0), d = z(!1), C = !0, Me(m, [u, d]), !_ && zn(m, y);
1021
+ function I() {
1022
+ m = _ || fe("div", c.arrows), u = z(!0), d = z(!1), C = !0, Me(m, [u, d]), !_ && Wn(m, y);
1023
1023
  }
1024
1024
  function z(F) {
1025
- var O = '<button class="' + c.arrow + " " + (F ? c.prev : c.next) + '" type="button"><svg xmlns="' + Di + '" viewBox="0 0 ' + Ye + " " + Ye + '" width="' + Ye + '" height="' + Ye + '" focusable="false"><path d="' + (n.arrowPath || ji) + '" />';
1026
- return Oo(O);
1025
+ var O = '<button class="' + c.arrow + " " + (F ? c.prev : c.next) + '" type="button"><svg xmlns="' + Hi + '" viewBox="0 0 ' + Ye + " " + Ye + '" width="' + Ye + '" height="' + Ye + '" focusable="false"><path d="' + (n.arrowPath || Di) + '" />';
1026
+ return Bo(O);
1027
1027
  }
1028
- function I() {
1028
+ function k() {
1029
1029
  if (u && d) {
1030
1030
  var F = t.index, O = s.getPrev(), D = s.getNext(), j = O > -1 && F < O ? l.last : l.prev, g = D > -1 && F > D ? l.first : l.next;
1031
- u.disabled = O < 0, d.disabled = D < 0, J(u, Et, j), J(d, Et, g), i(Go, u, d, O, D);
1031
+ u.disabled = O < 0, d.disabled = D < 0, J(u, Et, j), J(d, Et, g), i(Yo, u, d, O, D);
1032
1032
  }
1033
1033
  }
1034
1034
  return {
1035
1035
  arrows: f,
1036
1036
  mount: x,
1037
1037
  destroy: w,
1038
- update: I
1038
+ update: k
1039
1039
  };
1040
1040
  }
1041
- var Yi = Vn + "-interval";
1042
- function Gi(t, e, n) {
1041
+ var Ui = Mn + "-interval";
1042
+ function Yi(t, e, n) {
1043
1043
  var o = gt(t), r = o.on, a = o.bind, i = o.emit, c = pn(n.interval, t.go.bind(t, ">"), h), l = c.isPaused, p = e.Elements, s = e.Elements, _ = s.root, y = s.toggle, m = n.autoplay, u, d, C = m === "pause";
1044
1044
  function b() {
1045
1045
  m && (f(), y && J(y, De, p.track.id), C || x(), w());
1046
1046
  }
1047
1047
  function f() {
1048
- n.pauseOnHover && a(_, "mouseenter mouseleave", function(k) {
1049
- u = k.type === "mouseenter", N();
1050
- }), n.pauseOnFocus && a(_, "focusin focusout", function(k) {
1051
- d = k.type === "focusin", N();
1048
+ n.pauseOnHover && a(_, "mouseenter mouseleave", function(I) {
1049
+ u = I.type === "mouseenter", N();
1050
+ }), n.pauseOnFocus && a(_, "focusin focusout", function(I) {
1051
+ d = I.type === "focusin", N();
1052
1052
  }), y && a(y, "click", function() {
1053
1053
  C ? x() : V(!0);
1054
1054
  }), r([jt, un, yt], c.rewind), r(jt, L);
1055
1055
  }
1056
1056
  function x() {
1057
- l() && e.Slides.isEnough() && (c.start(!n.resetProgress), d = u = C = !1, w(), i(Yn));
1057
+ l() && e.Slides.isEnough() && (c.start(!n.resetProgress), d = u = C = !1, w(), i(Un));
1058
1058
  }
1059
- function V(k) {
1060
- k === void 0 && (k = !0), C = !!k, w(), l() || (c.pause(), i(Gn));
1059
+ function V(I) {
1060
+ I === void 0 && (I = !0), C = !!I, w(), l() || (c.pause(), i(Yn));
1061
1061
  }
1062
1062
  function N() {
1063
1063
  C || (u || d ? V(!1) : x());
1064
1064
  }
1065
1065
  function w() {
1066
- y && (Mt(y, ie, !C), J(y, Et, n.i18n[C ? "play" : "pause"]));
1066
+ y && (Mt(y, ae, !C), J(y, Et, n.i18n[C ? "play" : "pause"]));
1067
1067
  }
1068
- function h(k) {
1068
+ function h(I) {
1069
1069
  var z = p.bar;
1070
- z && kt(z, "width", k * 100 + "%"), i(Ko, k);
1070
+ z && It(z, "width", I * 100 + "%"), i(Xo, I);
1071
1071
  }
1072
- function L(k) {
1073
- var z = e.Slides.getAt(k);
1074
- c.set(z && +Ft(z.slide, Yi) || n.interval);
1072
+ function L(I) {
1073
+ var z = e.Slides.getAt(I);
1074
+ c.set(z && +Ft(z.slide, Ui) || n.interval);
1075
1075
  }
1076
1076
  return {
1077
1077
  mount: b,
@@ -1081,10 +1081,10 @@ function Gi(t, e, n) {
1081
1081
  isPaused: l
1082
1082
  };
1083
1083
  }
1084
- function qi(t, e, n) {
1084
+ function Gi(t, e, n) {
1085
1085
  var o = gt(t), r = o.on;
1086
1086
  function a() {
1087
- n.cover && (r(qn, at(c, !0)), r([Zt, xt, yt], at(i, !0)));
1087
+ n.cover && (r(Gn, at(c, !0)), r([Zt, xt, yt], at(i, !0)));
1088
1088
  }
1089
1089
  function i(l) {
1090
1090
  e.Slides.forEach(function(p) {
@@ -1100,27 +1100,27 @@ function qi(t, e, n) {
1100
1100
  destroy: at(i, !1)
1101
1101
  };
1102
1102
  }
1103
- var Xi = 10, Ki = 600, Ji = 0.6, Zi = 1.5, Qi = 800;
1104
- function ta(t, e, n) {
1105
- var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, l = c.getPosition, p = c.getLimit, s = c.exceededLimit, _ = c.translate, y = t.is(be), m, u, d = 1;
1103
+ var qi = 10, Xi = 600, Ki = 0.6, Ji = 1.5, Zi = 800;
1104
+ function Qi(t, e, n) {
1105
+ var o = gt(t), r = o.on, a = o.emit, i = t.state.set, c = e.Move, l = c.getPosition, p = c.getLimit, s = c.exceededLimit, _ = c.translate, y = t.is(Ce), m, u, d = 1;
1106
1106
  function C() {
1107
1107
  r(jt, V), r([xt, yt], N);
1108
1108
  }
1109
- function b(h, L, k, z, I) {
1109
+ function b(h, L, I, z, k) {
1110
1110
  var F = l();
1111
- if (V(), k && (!y || !s())) {
1112
- var O = e.Layout.sliderSize(), D = An(h) * O * rn($t(h) / O) || 0;
1111
+ if (V(), I && (!y || !s())) {
1112
+ var O = e.Layout.sliderSize(), D = En(h) * O * rn($t(h) / O) || 0;
1113
1113
  h = c.toPosition(e.Controller.toDest(h % O)) + D;
1114
1114
  }
1115
- var j = No(F, h, 1);
1116
- d = 1, L = j ? 0 : L || on($t(h - F) / Zi, Qi), u = z, m = pn(L, f, at(x, F, h, I), 1), i(Ne), a(un), m.start();
1115
+ var j = Po(F, h, 1);
1116
+ d = 1, L = j ? 0 : L || on($t(h - F) / Ji, Zi), u = z, m = pn(L, f, at(x, F, h, k), 1), i(Ne), a(un), m.start();
1117
1117
  }
1118
1118
  function f() {
1119
- i(ye), u && u(), a(ae);
1119
+ i(be), u && u(), a(le);
1120
1120
  }
1121
- function x(h, L, k, z) {
1122
- var I = l(), F = h + (L - h) * w(z), O = (F - I) * d;
1123
- _(I + O), y && !k && s() && (d *= Ji, $t(O) < Xi && b(p(s(!0)), Ki, !1, u, !0));
1121
+ function x(h, L, I, z) {
1122
+ var k = l(), F = h + (L - h) * w(z), O = (F - k) * d;
1123
+ _(k + O), y && !I && s() && (d *= Ki, $t(O) < qi && b(p(s(!0)), Xi, !1, u, !0));
1124
1124
  }
1125
1125
  function V() {
1126
1126
  m && m.cancel();
@@ -1139,14 +1139,14 @@ function ta(t, e, n) {
1139
1139
  cancel: N
1140
1140
  };
1141
1141
  }
1142
- var de = {
1142
+ var ge = {
1143
1143
  passive: !1,
1144
1144
  capture: !0
1145
1145
  };
1146
- function ea(t, e, n) {
1147
- var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, l = t.state, p = e.Move, s = e.Scroll, _ = e.Controller, y = e.Elements.track, m = e.Media.reduce, u = e.Direction, d = u.resolve, C = u.orient, b = p.getPosition, f = p.exceededLimit, x, V, N, w, h, L = !1, k, z, I;
1146
+ function ta(t, e, n) {
1147
+ var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = o.unbind, l = t.state, p = e.Move, s = e.Scroll, _ = e.Controller, y = e.Elements.track, m = e.Media.reduce, u = e.Direction, d = u.resolve, C = u.orient, b = p.getPosition, f = p.exceededLimit, x, V, N, w, h, L = !1, I, z, k;
1148
1148
  function F() {
1149
- i(y, $n, Ln, de), i(y, _n, Ln, de), i(y, pr, D, de), i(y, "click", E, {
1149
+ i(y, xn, Tn, ge), i(y, $n, Tn, ge), i(y, ur, D, ge), i(y, "click", E, {
1150
1150
  capture: !0
1151
1151
  }), i(y, "dragstart", zt), r([Zt, xt], O);
1152
1152
  }
@@ -1155,55 +1155,55 @@ function ea(t, e, n) {
1155
1155
  Ut(!M), w = M === "free";
1156
1156
  }
1157
1157
  function D(M) {
1158
- if (k = !1, !z) {
1158
+ if (I = !1, !z) {
1159
1159
  var S = mt(M);
1160
- rt(M.target) && (S || !M.button) && (_.isBusy() ? zt(M, !0) : (I = S ? y : window, h = l.is([Se, Ne]), N = null, i(I, $n, j, de), i(I, _n, g, de), p.cancel(), s.cancel(), A(M)));
1160
+ rt(M.target) && (S || !M.button) && (_.isBusy() ? zt(M, !0) : (k = S ? y : window, h = l.is([xe, Ne]), N = null, i(k, xn, j, ge), i(k, $n, g, ge), p.cancel(), s.cancel(), A(M)));
1161
1161
  }
1162
1162
  }
1163
1163
  function j(M) {
1164
- if (l.is(Je) || (l.set(Je), a(Do)), M.cancelable)
1164
+ if (l.is(Je) || (l.set(Je), a(Ho)), M.cancelable)
1165
1165
  if (h) {
1166
- p.translate(x + ft(Z(M)));
1167
- var S = ut(M) > vo, H = L !== (L = f());
1168
- (S || H) && A(M), k = !0, a(jo), zt(M);
1166
+ p.translate(x + ht(Z(M)));
1167
+ var S = ut(M) > yo, H = L !== (L = f());
1168
+ (S || H) && A(M), I = !0, a(Do), zt(M);
1169
1169
  } else R(M) && (h = v(M), zt(M));
1170
1170
  }
1171
1171
  function g(M) {
1172
- l.is(Je) && (l.set(ye), a(Uo)), h && ($(M), zt(M)), c(I, $n, j), c(I, _n, g), h = !1;
1172
+ l.is(Je) && (l.set(be), a(jo)), h && ($(M), zt(M)), c(k, xn, j), c(k, $n, g), h = !1;
1173
1173
  }
1174
1174
  function E(M) {
1175
- !z && k && zt(M, !0);
1175
+ !z && I && zt(M, !0);
1176
1176
  }
1177
1177
  function A(M) {
1178
1178
  N = V, V = M, x = b();
1179
1179
  }
1180
1180
  function $(M) {
1181
1181
  var S = q(M), H = ot(S), Y = n.rewind && n.rewindByDrag;
1182
- m(!1), w ? _.scroll(H, 0, n.snap) : t.is(je) ? _.go(C(An(S)) < 0 ? Y ? "<" : "-" : Y ? ">" : "+") : t.is(be) && L && Y ? _.go(f(!0) ? ">" : "<") : _.go(_.toDest(H), !0), m(!0);
1182
+ m(!1), w ? _.scroll(H, 0, n.snap) : t.is(je) ? _.go(C(En(S)) < 0 ? Y ? "<" : "-" : Y ? ">" : "+") : t.is(Ce) && L && Y ? _.go(f(!0) ? ">" : "<") : _.go(_.toDest(H), !0), m(!0);
1183
1183
  }
1184
1184
  function v(M) {
1185
- var S = n.dragMinThreshold, H = Ie(S), Y = H && S.mouse || 0, K = (H ? S.touch : +S) || 10;
1185
+ var S = n.dragMinThreshold, H = ke(S), Y = H && S.mouse || 0, K = (H ? S.touch : +S) || 10;
1186
1186
  return $t(Z(M)) > (mt(M) ? K : Y);
1187
1187
  }
1188
1188
  function R(M) {
1189
1189
  return $t(Z(M)) > $t(Z(M, !0));
1190
1190
  }
1191
1191
  function q(M) {
1192
- if (t.is(xe) || !L) {
1192
+ if (t.is(_e) || !L) {
1193
1193
  var S = ut(M);
1194
- if (S && S < vo)
1194
+ if (S && S < yo)
1195
1195
  return Z(M) / S;
1196
1196
  }
1197
1197
  return 0;
1198
1198
  }
1199
1199
  function ot(M) {
1200
- return b() + An(M) * Kt($t(M) * (n.flickPower || 600), w ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
1200
+ return b() + En(M) * Kt($t(M) * (n.flickPower || 600), w ? 1 / 0 : e.Layout.listSize() * (n.flickMaxPages || 1));
1201
1201
  }
1202
1202
  function Z(M, S) {
1203
1203
  return X(M, S) - X(T(M), S);
1204
1204
  }
1205
1205
  function ut(M) {
1206
- return En(M) - En(T(M));
1206
+ return Ln(M) - Ln(T(M));
1207
1207
  }
1208
1208
  function T(M) {
1209
1209
  return V === M && N || V;
@@ -1211,12 +1211,12 @@ function ea(t, e, n) {
1211
1211
  function X(M, S) {
1212
1212
  return (mt(M) ? M.changedTouches[0] : M)["page" + d(S ? "Y" : "X")];
1213
1213
  }
1214
- function ft(M) {
1215
- return M / (L && t.is(be) ? Bi : 1);
1214
+ function ht(M) {
1215
+ return M / (L && t.is(Ce) ? Ri : 1);
1216
1216
  }
1217
1217
  function rt(M) {
1218
1218
  var S = n.noDrag;
1219
- return !ke(M, "." + ar + ", ." + yn) && (!S || !ke(M, S));
1219
+ return !Ie(M, "." + ir + ", ." + yn) && (!S || !Ie(M, S));
1220
1220
  }
1221
1221
  function mt(M) {
1222
1222
  return typeof TouchEvent < "u" && M instanceof TouchEvent;
@@ -1233,41 +1233,41 @@ function ea(t, e, n) {
1233
1233
  isDragging: Ct
1234
1234
  };
1235
1235
  }
1236
- var na = {
1236
+ var ea = {
1237
1237
  Spacebar: " ",
1238
1238
  Right: mn,
1239
1239
  Left: gn,
1240
- Up: Qo,
1241
- Down: tr
1240
+ Up: Zo,
1241
+ Down: Qo
1242
1242
  };
1243
- function Qn(t) {
1244
- return t = Xt(t) ? t : t.key, na[t] || t;
1243
+ function Zn(t) {
1244
+ return t = Xt(t) ? t : t.key, ea[t] || t;
1245
1245
  }
1246
- var bo = "keydown";
1247
- function oa(t, e, n) {
1246
+ var vo = "keydown";
1247
+ function na(t, e, n) {
1248
1248
  var o = gt(t), r = o.on, a = o.bind, i = o.unbind, c = t.root, l = e.Direction.resolve, p, s;
1249
1249
  function _() {
1250
1250
  y(), r(xt, m), r(xt, y), r(jt, d);
1251
1251
  }
1252
1252
  function y() {
1253
1253
  var b = n.keyboard;
1254
- b && (p = b === "global" ? window : c, a(p, bo, C));
1254
+ b && (p = b === "global" ? window : c, a(p, vo, C));
1255
1255
  }
1256
1256
  function m() {
1257
- i(p, bo);
1257
+ i(p, vo);
1258
1258
  }
1259
1259
  function u(b) {
1260
1260
  s = b;
1261
1261
  }
1262
1262
  function d() {
1263
1263
  var b = s;
1264
- s = !0, Io(function() {
1264
+ s = !0, Ao(function() {
1265
1265
  s = b;
1266
1266
  });
1267
1267
  }
1268
1268
  function C(b) {
1269
1269
  if (!s) {
1270
- var f = Qn(b);
1270
+ var f = Zn(b);
1271
1271
  f === l(gn) ? t.go("<") : f === l(mn) && t.go(">");
1272
1272
  }
1273
1273
  }
@@ -1277,9 +1277,9 @@ function oa(t, e, n) {
1277
1277
  disable: u
1278
1278
  };
1279
1279
  }
1280
- var Ee = Vn + "-lazy", tn = Ee + "-srcset", ra = "[" + Ee + "], [" + tn + "]";
1281
- function ia(t, e, n) {
1282
- var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, l = n.lazyLoad === "sequential", p = [Ce, ae], s = [];
1280
+ var Ee = Mn + "-lazy", tn = Ee + "-srcset", oa = "[" + Ee + "], [" + tn + "]";
1281
+ function ra(t, e, n) {
1282
+ var o = gt(t), r = o.on, a = o.off, i = o.bind, c = o.emit, l = n.lazyLoad === "sequential", p = [$e, le], s = [];
1283
1283
  function _() {
1284
1284
  n.lazyLoad && (y(), r(yt, y));
1285
1285
  }
@@ -1288,10 +1288,10 @@ function ia(t, e, n) {
1288
1288
  }
1289
1289
  function m() {
1290
1290
  e.Slides.forEach(function(f) {
1291
- Mn(f.slide, ra).forEach(function(x) {
1291
+ zn(f.slide, oa).forEach(function(x) {
1292
1292
  var V = Ft(x, Ee), N = Ft(x, tn);
1293
1293
  if (V !== x.src || N !== x.srcset) {
1294
- var w = n.classes.spinner, h = x.parentElement, L = Ve(h, "." + w) || me("span", w, h);
1294
+ var w = n.classes.spinner, h = x.parentElement, L = Ve(h, "." + w) || fe("span", w, h);
1295
1295
  s.push([x, f, L]), x.src || Be(x, "none");
1296
1296
  }
1297
1297
  });
@@ -1305,11 +1305,11 @@ function ia(t, e, n) {
1305
1305
  }
1306
1306
  function d(f) {
1307
1307
  var x = f[0];
1308
- Pt(f[1].slide, Rn), i(x, "load error", at(C, f)), J(x, "src", Ft(x, Ee)), J(x, "srcset", Ft(x, tn)), Nt(x, Ee), Nt(x, tn);
1308
+ Pt(f[1].slide, Fn), i(x, "load error", at(C, f)), J(x, "src", Ft(x, Ee)), J(x, "srcset", Ft(x, tn)), Nt(x, Ee), Nt(x, tn);
1309
1309
  }
1310
1310
  function C(f, x) {
1311
1311
  var V = f[0], N = f[1];
1312
- Vt(N.slide, Rn), x.type !== "error" && (re(f[2]), Be(V, ""), c(qn, V, N), c(ve)), l && b();
1312
+ Vt(N.slide, Fn), x.type !== "error" && (ie(f[2]), Be(V, ""), c(Gn, V, N), c(Se)), l && b();
1313
1313
  }
1314
1314
  function b() {
1315
1315
  s.length && d(s.shift());
@@ -1320,30 +1320,30 @@ function ia(t, e, n) {
1320
1320
  check: u
1321
1321
  };
1322
1322
  }
1323
- function aa(t, e, n) {
1323
+ function ia(t, e, n) {
1324
1324
  var o = gt(t), r = o.on, a = o.emit, i = o.bind, c = e.Slides, l = e.Elements, p = e.Controller, s = p.hasFocus, _ = p.getIndex, y = p.go, m = e.Direction.resolve, u = l.pagination, d = [], C, b;
1325
1325
  function f() {
1326
1326
  x(), r([xt, yt, an], f);
1327
1327
  var z = n.pagination;
1328
- u && Be(u, z ? "" : "none"), z && (r([jt, un, ae], k), V(), k(), a(qo, {
1328
+ u && Be(u, z ? "" : "none"), z && (r([jt, un, le], I), V(), I(), a(Go, {
1329
1329
  list: C,
1330
1330
  items: d
1331
1331
  }, L(t.index)));
1332
1332
  }
1333
1333
  function x() {
1334
- C && (re(u ? Jt(C.children) : C), Vt(C, b), Dt(d), C = null), o.destroy();
1334
+ C && (ie(u ? Jt(C.children) : C), Vt(C, b), Dt(d), C = null), o.destroy();
1335
1335
  }
1336
1336
  function V() {
1337
- var z = t.length, I = n.classes, F = n.i18n, O = n.perPage, D = s() ? p.getEnd() + 1 : Oe(z / O);
1338
- C = u || me("ul", I.pagination, l.track.parentElement), Pt(C, b = vn + "--" + h()), J(C, Ht, "tablist"), J(C, Et, F.select), J(C, Kn, h() === fn ? "vertical" : "");
1337
+ var z = t.length, k = n.classes, F = n.i18n, O = n.perPage, D = s() ? p.getEnd() + 1 : Oe(z / O);
1338
+ C = u || fe("ul", k.pagination, l.track.parentElement), Pt(C, b = vn + "--" + h()), J(C, Ht, "tablist"), J(C, Et, F.select), J(C, Xn, h() === fn ? "vertical" : "");
1339
1339
  for (var j = 0; j < D; j++) {
1340
- var g = me("li", null, C), E = me("button", {
1341
- class: I.page,
1340
+ var g = fe("li", null, C), E = fe("button", {
1341
+ class: k.page,
1342
1342
  type: "button"
1343
1343
  }, g), A = c.getIn(j).map(function(v) {
1344
1344
  return v.slide.id;
1345
1345
  }), $ = !s() && O > 1 ? F.pageX : F.slideX;
1346
- i(E, "click", at(N, j)), n.paginationKeyboard && i(E, "keydown", at(w, j)), J(g, Ht, "presentation"), J(E, Ht, "tab"), J(E, De, A.join(" ")), J(E, Et, In($, j + 1)), J(E, fe, -1), d.push({
1346
+ i(E, "click", at(N, j)), n.paginationKeyboard && i(E, "keydown", at(w, j)), J(g, Ht, "presentation"), J(E, Ht, "tab"), J(E, De, A.join(" ")), J(E, Et, An($, j + 1)), J(E, he, -1), d.push({
1347
1347
  li: g,
1348
1348
  button: E,
1349
1349
  page: j
@@ -1353,11 +1353,11 @@ function aa(t, e, n) {
1353
1353
  function N(z) {
1354
1354
  y(">" + z, !0);
1355
1355
  }
1356
- function w(z, I) {
1357
- var F = d.length, O = Qn(I), D = h(), j = -1;
1356
+ function w(z, k) {
1357
+ var F = d.length, O = Zn(k), D = h(), j = -1;
1358
1358
  O === m(mn, !1, D) ? j = ++z % F : O === m(gn, !1, D) ? j = (--z + F) % F : O === "Home" ? j = 0 : O === "End" && (j = F - 1);
1359
1359
  var g = d[j];
1360
- g && (Bo(g.button), y(">" + j), zt(I, !0));
1360
+ g && (Ro(g.button), y(">" + j), zt(k, !0));
1361
1361
  }
1362
1362
  function h() {
1363
1363
  return n.paginationDirection || n.direction;
@@ -1365,31 +1365,31 @@ function aa(t, e, n) {
1365
1365
  function L(z) {
1366
1366
  return d[p.toPage(z)];
1367
1367
  }
1368
- function k() {
1369
- var z = L(_(!0)), I = L(_());
1368
+ function I() {
1369
+ var z = L(_(!0)), k = L(_());
1370
1370
  if (z) {
1371
1371
  var F = z.button;
1372
- Vt(F, ie), Nt(F, go), J(F, fe, -1);
1372
+ Vt(F, ae), Nt(F, po), J(F, he, -1);
1373
1373
  }
1374
- if (I) {
1375
- var O = I.button;
1376
- Pt(O, ie), J(O, go, !0), J(O, fe, "");
1374
+ if (k) {
1375
+ var O = k.button;
1376
+ Pt(O, ae), J(O, po, !0), J(O, he, "");
1377
1377
  }
1378
- a(Xo, {
1378
+ a(qo, {
1379
1379
  list: C,
1380
1380
  items: d
1381
- }, z, I);
1381
+ }, z, k);
1382
1382
  }
1383
1383
  return {
1384
1384
  items: d,
1385
1385
  mount: f,
1386
1386
  destroy: x,
1387
1387
  getAt: L,
1388
- update: k
1388
+ update: I
1389
1389
  };
1390
1390
  }
1391
- var la = [" ", "Enter"];
1392
- function sa(t, e, n) {
1391
+ var aa = [" ", "Enter"];
1392
+ function la(t, e, n) {
1393
1393
  var o = n.isNavigation, r = n.slideFocus, a = [];
1394
1394
  function i() {
1395
1395
  t.splides.forEach(function(u) {
@@ -1407,21 +1407,21 @@ function sa(t, e, n) {
1407
1407
  function p(u, d) {
1408
1408
  var C = gt(u);
1409
1409
  C.on(jt, function(b, f, x) {
1410
- d.go(d.is(xe) ? x : b);
1410
+ d.go(d.is(_e) ? x : b);
1411
1411
  }), a.push(C);
1412
1412
  }
1413
1413
  function s() {
1414
1414
  var u = gt(t), d = u.on;
1415
- d(Dn, y), d(Jo, m), d([Zt, xt], _), a.push(u), u.emit(Un, t.splides);
1415
+ d(Hn, y), d(Ko, m), d([Zt, xt], _), a.push(u), u.emit(jn, t.splides);
1416
1416
  }
1417
1417
  function _() {
1418
- J(e.Elements.list, Kn, n.direction === fn ? "vertical" : "");
1418
+ J(e.Elements.list, Xn, n.direction === fn ? "vertical" : "");
1419
1419
  }
1420
1420
  function y(u) {
1421
1421
  t.go(u.index);
1422
1422
  }
1423
1423
  function m(u, d) {
1424
- Wn(la, Qn(d)) && (y(u), zt(d));
1424
+ Nn(aa, Zn(d)) && (y(u), zt(d));
1425
1425
  }
1426
1426
  return {
1427
1427
  setup: at(e.Media.set, {
@@ -1432,38 +1432,38 @@ function sa(t, e, n) {
1432
1432
  remount: l
1433
1433
  };
1434
1434
  }
1435
- function ca(t, e, n) {
1435
+ function sa(t, e, n) {
1436
1436
  var o = gt(t), r = o.bind, a = 0;
1437
1437
  function i() {
1438
- n.wheel && r(e.Elements.track, "wheel", c, de);
1438
+ n.wheel && r(e.Elements.track, "wheel", c, ge);
1439
1439
  }
1440
1440
  function c(p) {
1441
1441
  if (p.cancelable) {
1442
- var s = p.deltaY, _ = s < 0, y = En(p), m = n.wheelMinThreshold || 0, u = n.wheelSleep || 0;
1442
+ var s = p.deltaY, _ = s < 0, y = Ln(p), m = n.wheelMinThreshold || 0, u = n.wheelSleep || 0;
1443
1443
  $t(s) > m && y - a > u && (t.go(_ ? "<" : ">"), a = y), l(_) && zt(p);
1444
1444
  }
1445
1445
  }
1446
1446
  function l(p) {
1447
- return !n.releaseWheel || t.state.is(Se) || e.Controller.getAdjacent(p) !== -1;
1447
+ return !n.releaseWheel || t.state.is(xe) || e.Controller.getAdjacent(p) !== -1;
1448
1448
  }
1449
1449
  return {
1450
1450
  mount: i
1451
1451
  };
1452
1452
  }
1453
- var ua = 90;
1454
- function pa(t, e, n) {
1455
- var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c = me("span", Ai), l = pn(ua, at(s, !1));
1453
+ var ca = 90;
1454
+ function ua(t, e, n) {
1455
+ var o = gt(t), r = o.on, a = e.Elements.track, i = n.live && !n.isNavigation, c = fe("span", Ei), l = pn(ca, at(s, !1));
1456
1456
  function p() {
1457
- i && (y(!e.Autoplay.isPaused()), J(a, ho, !0), c.textContent = "…", r(Yn, at(y, !0)), r(Gn, at(y, !1)), r([Ce, ae], at(s, !0)));
1457
+ i && (y(!e.Autoplay.isPaused()), J(a, fo, !0), c.textContent = "…", r(Un, at(y, !0)), r(Yn, at(y, !1)), r([$e, le], at(s, !0)));
1458
1458
  }
1459
1459
  function s(m) {
1460
- J(a, fo, m), m ? (Me(a, c), l.start()) : (re(c), l.cancel());
1460
+ J(a, mo, m), m ? (Me(a, c), l.start()) : (ie(c), l.cancel());
1461
1461
  }
1462
1462
  function _() {
1463
- Nt(a, [mo, ho, fo]), re(c);
1463
+ Nt(a, [go, fo, mo]), ie(c);
1464
1464
  }
1465
1465
  function y(m) {
1466
- i && J(a, mo, m ? "off" : "polite");
1466
+ i && J(a, go, m ? "off" : "polite");
1467
1467
  }
1468
1468
  return {
1469
1469
  mount: p,
@@ -1471,28 +1471,28 @@ function pa(t, e, n) {
1471
1471
  destroy: _
1472
1472
  };
1473
1473
  }
1474
- var da = /* @__PURE__ */ Object.freeze({
1474
+ var pa = /* @__PURE__ */ Object.freeze({
1475
1475
  __proto__: null,
1476
- Media: Si,
1477
- Direction: Ci,
1478
- Elements: Oi,
1479
- Slides: Ni,
1480
- Layout: Wi,
1481
- Clones: Mi,
1482
- Move: Vi,
1483
- Controller: Hi,
1484
- Arrows: Ui,
1485
- Autoplay: Gi,
1486
- Cover: qi,
1487
- Scroll: ta,
1488
- Drag: ea,
1489
- Keyboard: oa,
1490
- LazyLoad: ia,
1491
- Pagination: aa,
1492
- Sync: sa,
1493
- Wheel: ca,
1494
- Live: pa
1495
- }), ga = {
1476
+ Media: bi,
1477
+ Direction: Si,
1478
+ Elements: Bi,
1479
+ Slides: Pi,
1480
+ Layout: Ni,
1481
+ Clones: zi,
1482
+ Move: Mi,
1483
+ Controller: Vi,
1484
+ Arrows: ji,
1485
+ Autoplay: Yi,
1486
+ Cover: Gi,
1487
+ Scroll: Qi,
1488
+ Drag: ta,
1489
+ Keyboard: na,
1490
+ LazyLoad: ra,
1491
+ Pagination: ia,
1492
+ Sync: la,
1493
+ Wheel: sa,
1494
+ Live: ua
1495
+ }), da = {
1496
1496
  prev: "Previous slide",
1497
1497
  next: "Next slide",
1498
1498
  first: "Go to first slide",
@@ -1505,7 +1505,7 @@ var da = /* @__PURE__ */ Object.freeze({
1505
1505
  slide: "slide",
1506
1506
  select: "Select a slide to show",
1507
1507
  slideLabel: "%s of %s"
1508
- }, ma = {
1508
+ }, ga = {
1509
1509
  type: "slide",
1510
1510
  role: "region",
1511
1511
  speed: 400,
@@ -1524,15 +1524,15 @@ var da = /* @__PURE__ */ Object.freeze({
1524
1524
  trimSpace: !0,
1525
1525
  focusableNodes: "a, button, textarea, input, select, iframe",
1526
1526
  live: !0,
1527
- classes: Fi,
1528
- i18n: ga,
1527
+ classes: Ii,
1528
+ i18n: da,
1529
1529
  reducedMotion: {
1530
1530
  speed: 0,
1531
1531
  rewindSpeed: 0,
1532
1532
  autoplay: "pause"
1533
1533
  }
1534
1534
  };
1535
- function fa(t, e, n) {
1535
+ function ma(t, e, n) {
1536
1536
  var o = e.Slides;
1537
1537
  function r() {
1538
1538
  gt(t).on([Zt, yt], a);
@@ -1543,16 +1543,16 @@ function fa(t, e, n) {
1543
1543
  });
1544
1544
  }
1545
1545
  function i(c, l) {
1546
- o.style("transition", "opacity " + n.speed + "ms " + n.easing), Io(l);
1546
+ o.style("transition", "opacity " + n.speed + "ms " + n.easing), Ao(l);
1547
1547
  }
1548
1548
  return {
1549
1549
  mount: r,
1550
1550
  start: i,
1551
- cancel: Ln
1551
+ cancel: Tn
1552
1552
  };
1553
1553
  }
1554
- function ha(t, e, n) {
1555
- var o = e.Move, r = e.Controller, a = e.Scroll, i = e.Elements.list, c = at(kt, i, "transition"), l;
1554
+ function fa(t, e, n) {
1555
+ var o = e.Move, r = e.Controller, a = e.Scroll, i = e.Elements.list, c = at(It, i, "transition"), l;
1556
1556
  function p() {
1557
1557
  gt(t).bind(i, "transitionend", function(m) {
1558
1558
  m.target === i && l && (_(), l());
@@ -1567,7 +1567,7 @@ function ha(t, e, n) {
1567
1567
  }
1568
1568
  function y(m) {
1569
1569
  var u = n.rewindSpeed;
1570
- if (t.is(be) && u) {
1570
+ if (t.is(Ce) && u) {
1571
1571
  var d = r.getIndex(!0), C = r.getEnd();
1572
1572
  if (d === 0 && m >= C || d >= C && m === 0)
1573
1573
  return u;
@@ -1580,16 +1580,16 @@ function ha(t, e, n) {
1580
1580
  cancel: _
1581
1581
  };
1582
1582
  }
1583
- var ya = /* @__PURE__ */ (function() {
1583
+ var ha = /* @__PURE__ */ (function() {
1584
1584
  function t(n, o) {
1585
- this.event = gt(), this.Components = {}, this.state = vi(ge), this.splides = [], this._o = {}, this._E = {};
1586
- var r = Xt(n) ? Po(document, n) : n;
1585
+ this.event = gt(), this.Components = {}, this.state = yi(me), this.splides = [], this._o = {}, this._E = {};
1586
+ var r = Xt(n) ? Oo(document, n) : n;
1587
1587
  Le(r, r + " is invalid."), this.root = r, o = qt({
1588
1588
  label: Ft(r, Et) || "",
1589
- labelledby: Ft(r, Xn) || ""
1590
- }, ma, t.defaults, o || {});
1589
+ labelledby: Ft(r, qn) || ""
1590
+ }, ga, t.defaults, o || {});
1591
1591
  try {
1592
- qt(o, JSON.parse(Ft(r, Vn)));
1592
+ qt(o, JSON.parse(Ft(r, Mn)));
1593
1593
  } catch {
1594
1594
  Le(!1, "Invalid JSON");
1595
1595
  }
@@ -1598,23 +1598,23 @@ var ya = /* @__PURE__ */ (function() {
1598
1598
  var e = t.prototype;
1599
1599
  return e.mount = function(o, r) {
1600
1600
  var a = this, i = this.state, c = this.Components;
1601
- Le(i.is([ge, nn]), "Already mounted!"), i.set(ge), this._C = c, this._T = r || this._T || (this.is(je) ? fa : ha), this._E = o || this._E;
1602
- var l = Re({}, da, this._E, {
1601
+ Le(i.is([me, nn]), "Already mounted!"), i.set(me), this._C = c, this._T = r || this._T || (this.is(je) ? ma : fa), this._E = o || this._E;
1602
+ var l = Re({}, pa, this._E, {
1603
1603
  Transition: this._T
1604
1604
  });
1605
- return oe(l, function(p, s) {
1605
+ return re(l, function(p, s) {
1606
1606
  var _ = p(a, c, a._o);
1607
1607
  c[s] = _, _.setup && _.setup();
1608
- }), oe(c, function(p) {
1608
+ }), re(c, function(p) {
1609
1609
  p.mount && p.mount();
1610
- }), this.emit(Zt), Pt(this.root, Ii), i.set(ye), this.emit(kn), this;
1610
+ }), this.emit(Zt), Pt(this.root, Ai), i.set(be), this.emit(kn), this;
1611
1611
  }, e.sync = function(o) {
1612
1612
  return this.splides.push({
1613
1613
  splide: o
1614
1614
  }), o.splides.push({
1615
1615
  splide: this,
1616
1616
  isParent: !0
1617
- }), this.state.is(ye) && (this._C.Sync.remount(), o.Components.Sync.remount()), this;
1617
+ }), this.state.is(be) && (this._C.Sync.remount(), o.Components.Sync.remount()), this;
1618
1618
  }, e.go = function(o) {
1619
1619
  return this._C.Controller.go(o), this;
1620
1620
  }, e.on = function(o, r) {
@@ -1635,10 +1635,10 @@ var ya = /* @__PURE__ */ (function() {
1635
1635
  }, e.destroy = function(o) {
1636
1636
  o === void 0 && (o = !0);
1637
1637
  var r = this.event, a = this.state;
1638
- return a.is(ge) ? gt(this).on(kn, this.destroy.bind(this, o)) : (oe(this._C, function(i) {
1638
+ return a.is(me) ? gt(this).on(kn, this.destroy.bind(this, o)) : (re(this._C, function(i) {
1639
1639
  i.destroy && i.destroy(o);
1640
- }, !0), r.emit(jn), r.destroy(), o && Dt(this.splides), a.set(nn)), this;
1641
- }, gi(t, [{
1640
+ }, !0), r.emit(Dn), r.destroy(), o && Dt(this.splides), a.set(nn)), this;
1641
+ }, di(t, [{
1642
1642
  key: "options",
1643
1643
  get: function() {
1644
1644
  return this._o;
@@ -1657,58 +1657,58 @@ var ya = /* @__PURE__ */ (function() {
1657
1657
  return this._C.Controller.getIndex();
1658
1658
  }
1659
1659
  }]), t;
1660
- })(), to = ya;
1661
- to.defaults = {};
1662
- to.STATES = fi;
1663
- var So = [
1660
+ })(), Qn = ha;
1661
+ Qn.defaults = {};
1662
+ Qn.STATES = mi;
1663
+ var bo = [
1664
1664
  [Zt, "onMounted"],
1665
1665
  [kn, "onReady"],
1666
1666
  [jt, "onMove"],
1667
- [Ce, "onMoved"],
1668
- [Dn, "onClick"],
1669
- [zo, "onActive"],
1670
- [Mo, "onInactive"],
1671
- [Vo, "onVisible"],
1672
- [Ho, "onHidden"],
1667
+ [$e, "onMoved"],
1668
+ [Hn, "onClick"],
1669
+ [Wo, "onActive"],
1670
+ [zo, "onInactive"],
1671
+ [Mo, "onVisible"],
1672
+ [Vo, "onHidden"],
1673
1673
  [yt, "onRefresh"],
1674
1674
  [xt, "onUpdated"],
1675
- [ve, "onResize"],
1675
+ [Se, "onResize"],
1676
1676
  [cn, "onResized"],
1677
- [Do, "onDrag"],
1678
- [jo, "onDragging"],
1679
- [Uo, "onDragged"],
1677
+ [Ho, "onDrag"],
1678
+ [Do, "onDragging"],
1679
+ [jo, "onDragged"],
1680
1680
  [un, "onScroll"],
1681
- [ae, "onScrolled"],
1682
- [jn, "onDestroy"],
1683
- [Yo, "onArrowsMounted"],
1684
- [Go, "onArrowsUpdated"],
1685
- [qo, "onPaginationMounted"],
1686
- [Xo, "onPaginationUpdated"],
1687
- [Un, "onNavigationMounted"],
1688
- [Yn, "onAutoplayPlay"],
1689
- [Ko, "onAutoplayPlaying"],
1690
- [Gn, "onAutoplayPause"],
1691
- [qn, "onLazyLoadLoaded"]
1681
+ [le, "onScrolled"],
1682
+ [Dn, "onDestroy"],
1683
+ [Uo, "onArrowsMounted"],
1684
+ [Yo, "onArrowsUpdated"],
1685
+ [Go, "onPaginationMounted"],
1686
+ [qo, "onPaginationUpdated"],
1687
+ [jn, "onNavigationMounted"],
1688
+ [Un, "onAutoplayPlay"],
1689
+ [Xo, "onAutoplayPlaying"],
1690
+ [Yn, "onAutoplayPause"],
1691
+ [Gn, "onLazyLoadLoaded"]
1692
1692
  ];
1693
- function eo(...t) {
1693
+ function to(...t) {
1694
1694
  return t.filter(Boolean).join(" ");
1695
1695
  }
1696
1696
  function ln(t) {
1697
1697
  return t !== null && typeof t == "object";
1698
1698
  }
1699
- function Bn(t, e) {
1699
+ function Rn(t, e) {
1700
1700
  if (Array.isArray(t) && Array.isArray(e))
1701
- return t.length === e.length && !t.some((n, o) => !Bn(n, e[o]));
1701
+ return t.length === e.length && !t.some((n, o) => !Rn(n, e[o]));
1702
1702
  if (ln(t) && ln(e)) {
1703
1703
  const n = Object.keys(t), o = Object.keys(e);
1704
- return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(e, r) || !Bn(t[r], e[r]));
1704
+ return n.length === o.length && !n.some((r) => !Object.prototype.hasOwnProperty.call(e, r) || !Rn(t[r], e[r]));
1705
1705
  }
1706
1706
  return t === e;
1707
1707
  }
1708
- function va(t, e) {
1708
+ function ya(t, e) {
1709
1709
  return t.length === e.length && !t.some((n, o) => n !== e[o]);
1710
1710
  }
1711
- function ba(t, e) {
1711
+ function va(t, e) {
1712
1712
  if (t) {
1713
1713
  const n = Object.keys(t);
1714
1714
  for (let o = 0; o < n.length; o++) {
@@ -1719,24 +1719,24 @@ function ba(t, e) {
1719
1719
  }
1720
1720
  return t;
1721
1721
  }
1722
- function On(t, e) {
1722
+ function Bn(t, e) {
1723
1723
  const n = t;
1724
- return ba(e, (o, r) => {
1725
- Array.isArray(o) ? n[r] = o.slice() : ln(o) ? n[r] = On(ln(n[r]) ? n[r] : {}, o) : n[r] = o;
1724
+ return va(e, (o, r) => {
1725
+ Array.isArray(o) ? n[r] = o.slice() : ln(o) ? n[r] = Bn(ln(n[r]) ? n[r] : {}, o) : n[r] = o;
1726
1726
  }), n;
1727
1727
  }
1728
- var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createElement("div", {
1729
- className: eo("splide__track", e),
1728
+ var ba = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.createElement("div", {
1729
+ className: to("splide__track", e),
1730
1730
  ...n
1731
- }, /* @__PURE__ */ ee.createElement("ul", {
1731
+ }, /* @__PURE__ */ ne.createElement("ul", {
1732
1732
  className: "splide__list"
1733
- }, t)), dr = class extends ee.Component {
1733
+ }, t)), pr = class extends ne.Component {
1734
1734
  constructor() {
1735
- super(...arguments), this.splideRef = ee.createRef(), this.slides = [];
1735
+ super(...arguments), this.splideRef = ne.createRef(), this.slides = [];
1736
1736
  }
1737
1737
  componentDidMount() {
1738
1738
  const { options: t, extensions: e, transition: n } = this.props, { current: o } = this.splideRef;
1739
- o && (this.splide = new to(o, t), this.bind(this.splide), this.splide.mount(e, n), this.options = On({}, t || {}), this.slides = this.getSlides());
1739
+ o && (this.splide = new Qn(o, t), this.bind(this.splide), this.splide.mount(e, n), this.options = Bn({}, t || {}), this.slides = this.getSlides());
1740
1740
  }
1741
1741
  componentWillUnmount() {
1742
1742
  this.splide && (this.splide.destroy(), this.splide = void 0), this.options = void 0, this.slides.length = 0;
@@ -1745,9 +1745,9 @@ var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createEleme
1745
1745
  if (!this.splide)
1746
1746
  return;
1747
1747
  const { options: t } = this.props;
1748
- t && !Bn(this.options, t) && (this.splide.options = t, this.options = On({}, t));
1748
+ t && !Rn(this.options, t) && (this.splide.options = t, this.options = Bn({}, t));
1749
1749
  const e = this.getSlides();
1750
- va(this.slides, e) || (this.splide.refresh(), this.slides = e);
1750
+ ya(this.slides, e) || (this.splide.refresh(), this.slides = e);
1751
1751
  }
1752
1752
  sync(t) {
1753
1753
  var e;
@@ -1766,7 +1766,7 @@ var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createEleme
1766
1766
  return [];
1767
1767
  }
1768
1768
  bind(t) {
1769
- So.forEach(([e, n]) => {
1769
+ bo.forEach(([e, n]) => {
1770
1770
  const o = this.props[n];
1771
1771
  typeof o == "function" && t.on(e, (...r) => {
1772
1772
  o(t, ...r);
@@ -1780,14 +1780,14 @@ var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createEleme
1780
1780
  }
1781
1781
  render() {
1782
1782
  const { className: t, tag: e = "div", hasTrack: n = !0, children: o, ...r } = this.props;
1783
- return /* @__PURE__ */ ee.createElement(e, {
1784
- className: eo("splide", t),
1783
+ return /* @__PURE__ */ ne.createElement(e, {
1784
+ className: to("splide", t),
1785
1785
  ref: this.splideRef,
1786
- ...this.omit(r, ["options", ...So.map((a) => a[1])])
1787
- }, n ? /* @__PURE__ */ ee.createElement(Sa, null, o) : o);
1786
+ ...this.omit(r, ["options", ...bo.map((a) => a[1])])
1787
+ }, n ? /* @__PURE__ */ ne.createElement(ba, null, o) : o);
1788
1788
  }
1789
- }, gr = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createElement("li", {
1790
- className: eo("splide__slide", e),
1789
+ }, dr = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ne.createElement("li", {
1790
+ className: to("splide__slide", e),
1791
1791
  ...n
1792
1792
  }, t);
1793
1793
  /*!
@@ -1796,16 +1796,16 @@ var Sa = ({ children: t, className: e, ...n }) => /* @__PURE__ */ ee.createEleme
1796
1796
  * License : MIT
1797
1797
  * Copyright: 2022 Naotoshi Fujita
1798
1798
  */
1799
- const Ca = "RichTextRenderer-module__link___BWeZ2", xa = {
1800
- link: Ca
1801
- }, mr = ({ content: t }) => {
1802
- const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ B("a", { className: xa.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ B("span", { style: $a(o), children: o.text }, r));
1799
+ const Sa = "RichTextRenderer-module__link___BWeZ2", Ca = {
1800
+ link: Sa
1801
+ }, gr = ({ content: t }) => {
1802
+ const e = (n) => n.map((o, r) => o.type === "link" ? /* @__PURE__ */ B("a", { className: Ca.link, href: o.value, target: o.target, children: e(o.children) }, r) : /* @__PURE__ */ B("span", { style: xa(o), children: o.text }, r));
1803
1803
  return /* @__PURE__ */ B(Ae, { children: t.map((n, o) => {
1804
1804
  const r = n.children;
1805
1805
  return /* @__PURE__ */ B("div", { children: e(r) }, o);
1806
1806
  }) });
1807
1807
  };
1808
- function $a(t) {
1808
+ function xa(t) {
1809
1809
  return {
1810
1810
  ...t.fontFamily && { fontFamily: t.fontFamily },
1811
1811
  ...t.fontWeight && { fontWeight: t.fontWeight },
@@ -1819,32 +1819,32 @@ function $a(t) {
1819
1819
  }
1820
1820
  };
1821
1821
  }
1822
- const _a = "SvgImage-module__svg___q3xE-", wa = "SvgImage-module__img___VsTm-", Co = {
1823
- svg: _a,
1824
- img: wa
1825
- }, Ta = (t) => {
1822
+ const $a = "SvgImage-module__svg___q3xE-", _a = "SvgImage-module__img___VsTm-", So = {
1823
+ svg: $a,
1824
+ img: _a
1825
+ }, wa = (t) => {
1826
1826
  const e = t.trim();
1827
1827
  return e.startsWith("data:image/svg+xml") ? !0 : (e.split(/[?#]/)[0] ?? e).endsWith(".svg");
1828
- }, La = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, he = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: o = "" }) => {
1828
+ }, Ta = (t) => `url("${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`, ye = ({ url: t, fill: e = "#000000", hoverFill: n = "#CCCCCC", className: o = "" }) => {
1829
1829
  const [r, a] = it(() => typeof window > "u" ? !0 : CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")'));
1830
1830
  return bt(() => {
1831
1831
  if (typeof window < "u" && window.CSS) {
1832
1832
  const i = CSS.supports("mask-image", 'url("")') || CSS.supports("-webkit-mask-image", 'url("")');
1833
1833
  a(i);
1834
1834
  }
1835
- }, []), !Ta(t) || !r ? /* @__PURE__ */ B("img", { src: t, alt: "", className: dt(Co.img, o) }) : /* @__PURE__ */ B(
1835
+ }, []), !wa(t) || !r ? /* @__PURE__ */ B("img", { src: t, alt: "", className: dt(So.img, o) }) : /* @__PURE__ */ B(
1836
1836
  "span",
1837
1837
  {
1838
1838
  "data-supports-mask": r,
1839
- className: dt(Co.svg, o),
1839
+ className: dt(So.svg, o),
1840
1840
  style: {
1841
- "--svg": La(t),
1841
+ "--svg": Ta(t),
1842
1842
  "--fill": e,
1843
1843
  "--hover-fill": n
1844
1844
  }
1845
1845
  }
1846
1846
  );
1847
- }, Ea = {
1847
+ }, La = {
1848
1848
  "top-left": U.topLeftAlignment,
1849
1849
  "top-center": U.topCenterAlignment,
1850
1850
  "top-right": U.topRightAlignment,
@@ -1855,8 +1855,8 @@ const _a = "SvgImage-module__svg___q3xE-", wa = "SvgImage-module__img___VsTm-",
1855
1855
  "bottom-center": U.bottomCenterAlignment,
1856
1856
  "bottom-right": U.bottomRightAlignment
1857
1857
  };
1858
- function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
1859
- const [r, a] = it(null), { widthSettings: i, fontSettings: c, letterSpacing: l, textAlign: p, wordSpacing: s, fontSizeLineHeight: _, textAppearance: y, color: m } = n.imageCaption, [u, d] = it(void 0), [C, b] = it(null), [f, x] = it(0), [V, N] = it(0), { direction: w, transition: h, controls: L, pagination: k, imageCaption: z, triggers: I } = t, F = Tt(h.type), { x: O, y: D } = t.controls.offset, j = (g) => {
1858
+ function Ea({ settings: t, content: e, styles: n, isEditor: o }) {
1859
+ const [r, a] = it(null), { widthSettings: i, fontSettings: c, letterSpacing: l, textAlign: p, wordSpacing: s, fontSizeLineHeight: _, textAppearance: y, color: m } = n.imageCaption, [u, d] = it(void 0), [C, b] = it(null), [f, x] = it(0), [V, N] = it(0), { direction: w, transition: h, controls: L, pagination: I, imageCaption: z, triggers: k } = t, F = Tt(h.type), { x: O, y: D } = t.controls.offset, j = (g) => {
1860
1860
  r && r.go(g);
1861
1861
  };
1862
1862
  return bt(() => {
@@ -1893,7 +1893,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
1893
1893
  children: e.map((g, E) => /* @__PURE__ */ B(
1894
1894
  "div",
1895
1895
  {
1896
- className: dt(U.captionText, Ea[z.alignment], {
1896
+ className: dt(U.captionText, La[z.alignment], {
1897
1897
  [U.withPointerEvents]: E === f && o,
1898
1898
  [U.active]: E === f
1899
1899
  }),
@@ -1925,7 +1925,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
1925
1925
  top: P(z.offset.y, o),
1926
1926
  left: P(z.offset.x, o)
1927
1927
  },
1928
- children: /* @__PURE__ */ B(mr, { content: g.imageCaption })
1928
+ children: /* @__PURE__ */ B(gr, { content: g.imageCaption })
1929
1929
  }
1930
1930
  )
1931
1931
  },
@@ -1936,7 +1936,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
1936
1936
  }
1937
1937
  ),
1938
1938
  /* @__PURE__ */ B(
1939
- dr,
1939
+ pr,
1940
1940
  {
1941
1941
  onMove: (g) => {
1942
1942
  x(g.index);
@@ -1945,20 +1945,20 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
1945
1945
  options: {
1946
1946
  arrows: !1,
1947
1947
  speed: h.duration ? parseInt(h.duration) : 500,
1948
- autoplay: I.autoPlay !== null,
1949
- ...I.autoPlay !== null && {
1950
- interval: parseInt(I.autoPlay) * 1e3
1948
+ autoplay: k.autoPlay !== null,
1949
+ ...k.autoPlay !== null && {
1950
+ interval: parseInt(k.autoPlay) * 1e3
1951
1951
  },
1952
1952
  direction: w === "horiz" || h.type === "fade in" ? "ltr" : "ttb",
1953
1953
  pagination: !1,
1954
- drag: I.triggersList.drag,
1954
+ drag: k.triggersList.drag,
1955
1955
  perPage: 1,
1956
1956
  width: u ? u.width : "100%",
1957
1957
  height: u ? u.height : "100%",
1958
1958
  type: h.type === "fade in" ? "fade" : "loop",
1959
1959
  rewind: !0
1960
1960
  },
1961
- children: e.map((g, E) => /* @__PURE__ */ B(gr, { children: /* @__PURE__ */ B(
1961
+ children: e.map((g, E) => /* @__PURE__ */ B(dr, { children: /* @__PURE__ */ B(
1962
1962
  "div",
1963
1963
  {
1964
1964
  className: U.sliderItem,
@@ -2008,7 +2008,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2008
2008
  },
2009
2009
  children: [
2010
2010
  L.arrowsImgUrl && /* @__PURE__ */ B(
2011
- he,
2011
+ ye,
2012
2012
  {
2013
2013
  url: L.arrowsImgUrl,
2014
2014
  fill: L.color,
@@ -2016,7 +2016,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2016
2016
  className: dt(U.arrowImg, U.mirror)
2017
2017
  }
2018
2018
  ),
2019
- !L.arrowsImgUrl && /* @__PURE__ */ B(xo, { color: L.color, className: dt(U.arrowIcon, U.arrowImg, U.mirror) })
2019
+ !L.arrowsImgUrl && /* @__PURE__ */ B(Co, { color: L.color, className: dt(U.arrowIcon, U.arrowImg, U.mirror) })
2020
2020
  ]
2021
2021
  }
2022
2022
  )
@@ -2043,7 +2043,7 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2043
2043
  },
2044
2044
  children: [
2045
2045
  L.arrowsImgUrl && /* @__PURE__ */ B(
2046
- he,
2046
+ ye,
2047
2047
  {
2048
2048
  url: L.arrowsImgUrl,
2049
2049
  fill: L.color,
@@ -2051,14 +2051,14 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2051
2051
  className: U.arrowImg
2052
2052
  }
2053
2053
  ),
2054
- !L.arrowsImgUrl && /* @__PURE__ */ B(xo, { color: L.color, className: dt(U.arrowIcon, U.arrowImg) })
2054
+ !L.arrowsImgUrl && /* @__PURE__ */ B(Co, { color: L.color, className: dt(U.arrowIcon, U.arrowImg) })
2055
2055
  ]
2056
2056
  }
2057
2057
  )
2058
2058
  }
2059
2059
  )
2060
2060
  ] }),
2061
- I.triggersList.click && /* @__PURE__ */ B(
2061
+ k.triggersList.click && /* @__PURE__ */ B(
2062
2062
  "div",
2063
2063
  {
2064
2064
  className: U.clickOverlay,
@@ -2067,18 +2067,18 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2067
2067
  }
2068
2068
  }
2069
2069
  ),
2070
- k.isActive && /* @__PURE__ */ B(
2070
+ I.isActive && /* @__PURE__ */ B(
2071
2071
  "div",
2072
2072
  {
2073
2073
  className: dt(U.pagination, {
2074
- [U.paginationInsideBottom]: k.position === "inside-1" && w === "horiz",
2075
- [U.paginationInsideTop]: k.position === "inside-2" && w === "horiz",
2076
- [U.paginationOutsideBottom]: k.position === "outside-1" && w === "horiz",
2077
- [U.paginationOutsideTop]: k.position === "outside-2" && w === "horiz",
2078
- [U.paginationInsideLeft]: k.position === "inside-1" && w === "vert",
2079
- [U.paginationInsideRight]: k.position === "inside-2" && w === "vert",
2080
- [U.paginationOutsideLeft]: k.position === "outside-1" && w === "vert",
2081
- [U.paginationOutsideRight]: k.position === "outside-2" && w === "vert",
2074
+ [U.paginationInsideBottom]: I.position === "inside-1" && w === "horiz",
2075
+ [U.paginationInsideTop]: I.position === "inside-2" && w === "horiz",
2076
+ [U.paginationOutsideBottom]: I.position === "outside-1" && w === "horiz",
2077
+ [U.paginationOutsideTop]: I.position === "outside-2" && w === "horiz",
2078
+ [U.paginationInsideLeft]: I.position === "inside-1" && w === "vert",
2079
+ [U.paginationInsideRight]: I.position === "inside-2" && w === "vert",
2080
+ [U.paginationOutsideLeft]: I.position === "outside-1" && w === "vert",
2081
+ [U.paginationOutsideRight]: I.position === "outside-2" && w === "vert",
2082
2082
  [U.paginationVertical]: w === "vert"
2083
2083
  }),
2084
2084
  children: /* @__PURE__ */ B(
@@ -2086,8 +2086,8 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2086
2086
  {
2087
2087
  className: U.paginationInner,
2088
2088
  style: {
2089
- backgroundColor: k.colors[2],
2090
- transform: `scale(${k.scale / 100}) translate(${P(k.offset.x, o)}, ${P(k.offset.y, o)}) rotate(${w === "horiz" ? "0deg" : "90deg"})`
2089
+ backgroundColor: I.colors[2],
2090
+ transform: `scale(${I.scale / 100}) translate(${P(I.offset.x, o)}, ${P(I.offset.y, o)}) rotate(${w === "horiz" ? "0deg" : "90deg"})`
2091
2091
  },
2092
2092
  children: e.map((g, E) => /* @__PURE__ */ B(
2093
2093
  "button",
@@ -2103,8 +2103,8 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2103
2103
  [U.activeDot]: E === f
2104
2104
  }),
2105
2105
  style: {
2106
- backgroundColor: E === f ? k.colors[0] : k.colors[1],
2107
- "--pagination-hover-color": k.hover
2106
+ backgroundColor: E === f ? I.colors[0] : I.colors[1],
2107
+ "--pagination-hover-color": I.hover
2108
2108
  }
2109
2109
  }
2110
2110
  )
@@ -2119,11 +2119,11 @@ function Aa({ settings: t, content: e, styles: n, isEditor: o }) {
2119
2119
  }
2120
2120
  ) });
2121
2121
  }
2122
- function xo({ color: t, className: e }) {
2122
+ function Co({ color: t, className: e }) {
2123
2123
  return /* @__PURE__ */ B("svg", { viewBox: "0 0 10 18", className: e, children: /* @__PURE__ */ B("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ B("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: t, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
2124
2124
  }
2125
- const Ia = {
2126
- element: Aa,
2125
+ const Aa = {
2126
+ element: Ea,
2127
2127
  id: "control-slider",
2128
2128
  name: "Slider",
2129
2129
  preview: {
@@ -2725,13 +2725,13 @@ const Ia = {
2725
2725
  },
2726
2726
  required: ["settings", "content", "styles"]
2727
2727
  }
2728
- }, ka = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Fa = "ImageRevealSlider-module__image___Qjt-e", Ra = "ImageRevealSlider-module__link___N-iLG", Ba = "ImageRevealSlider-module__cursor___2U03d", ue = {
2728
+ }, ka = "ImageRevealSlider-module__imageRevealSlider___UE5Ob", Ia = "ImageRevealSlider-module__image___Qjt-e", Fa = "ImageRevealSlider-module__link___N-iLG", Ra = "ImageRevealSlider-module__cursor___2U03d", pe = {
2729
2729
  imageRevealSlider: ka,
2730
- image: Fa,
2731
- link: Ra,
2732
- cursor: Ba
2730
+ image: Ia,
2731
+ link: Fa,
2732
+ cursor: Ra
2733
2733
  };
2734
- function $o(t, e, n) {
2734
+ function xo(t, e, n) {
2735
2735
  for (const o of n) {
2736
2736
  const r = new Image();
2737
2737
  r.src = o.url;
@@ -2741,7 +2741,7 @@ function $o(t, e, n) {
2741
2741
  }
2742
2742
  return !1;
2743
2743
  }
2744
- function wn(t) {
2744
+ function _n(t) {
2745
2745
  return new Promise((e) => {
2746
2746
  const n = new Image();
2747
2747
  n.src = t, n.onload = () => {
@@ -2749,24 +2749,24 @@ function wn(t) {
2749
2749
  };
2750
2750
  });
2751
2751
  }
2752
- async function Oa(t, e, n, o) {
2752
+ async function Ba(t, e, n, o) {
2753
2753
  let r, a;
2754
2754
  if (e === "custom") {
2755
2755
  r = n;
2756
- const i = await wn(t);
2756
+ const i = await _n(t);
2757
2757
  a = i.height / i.width * r;
2758
2758
  } else if (e === "random") {
2759
2759
  r = Math.random() * (o.max - o.min) + o.min;
2760
- const i = await wn(t);
2760
+ const i = await _n(t);
2761
2761
  a = i.height / i.width * r;
2762
2762
  } else {
2763
- const i = await wn(t);
2763
+ const i = await _n(t);
2764
2764
  r = i.width, a = i.height;
2765
2765
  }
2766
2766
  return { width: r, height: a, finalWidth: `${r}px` };
2767
2767
  }
2768
- function Pa({ settings: t, content: e, isEditor: n }) {
2769
- const [o, r] = it(null), [a, i] = it([]), [c, l] = it(0), p = Tt(0), [s, _] = it({ x: 0, y: 0 }), [y, m] = it(1), [u, d] = it("none"), C = Tt({ x: 0, y: 0 }), [b, f] = it(!1), { sizeType: x, imageWidth: V, randomRangeImageWidth: N } = t.imageSize, { revealPosition: w, visible: h } = t.position, { cursorType: L, target: k, defaultCursorScale: z, defaultCursor: I, hoverCursorScale: F, hoverCursor: O } = t.cursor;
2768
+ function Oa({ settings: t, content: e, isEditor: n }) {
2769
+ const [o, r] = it(null), [a, i] = it([]), [c, l] = it(0), p = Tt(0), [s, _] = it({ x: 0, y: 0 }), [y, m] = it(1), [u, d] = it("none"), C = Tt({ x: 0, y: 0 }), [b, f] = it(!1), { sizeType: x, imageWidth: V, randomRangeImageWidth: N } = t.imageSize, { revealPosition: w, visible: h } = t.position, { cursorType: L, target: I, defaultCursorScale: z, defaultCursor: k, hoverCursorScale: F, hoverCursor: O } = t.cursor;
2770
2770
  bt(() => {
2771
2771
  if (!o) return;
2772
2772
  const g = ($, v) => {
@@ -2780,7 +2780,7 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2780
2780
  d("none"), m(1);
2781
2781
  return;
2782
2782
  }
2783
- const X = $o(Z, ut, a) || k === "area" ? { img: O ?? "none", scale: F } : { img: I ?? "none", scale: z };
2783
+ const X = xo(Z, ut, a) || I === "area" ? { img: O ?? "none", scale: F } : { img: k ?? "none", scale: z };
2784
2784
  d(X.img), m(X.scale);
2785
2785
  }, E = ($) => {
2786
2786
  $.stopPropagation(), C.current = { x: $.clientX, y: $.clientY }, g($.clientX, $.clientY);
@@ -2795,9 +2795,9 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2795
2795
  b,
2796
2796
  s,
2797
2797
  L,
2798
- k,
2799
- O,
2800
2798
  I,
2799
+ O,
2800
+ k,
2801
2801
  F,
2802
2802
  z,
2803
2803
  a
@@ -2805,7 +2805,7 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2805
2805
  b || (d("none"), m(0));
2806
2806
  }, [b]);
2807
2807
  const D = async (g, E, A, $ = {}) => {
2808
- const { width: v, height: R, finalWidth: q } = await Oa(
2808
+ const { width: v, height: R, finalWidth: q } = await Ba(
2809
2809
  g.image.url,
2810
2810
  x,
2811
2811
  V,
@@ -2840,7 +2840,7 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2840
2840
  onClick: async (g) => {
2841
2841
  if (!o) return;
2842
2842
  const E = o.getBoundingClientRect(), A = g.clientX - E.left, $ = g.clientY - E.top;
2843
- if (k === "image" && !$o(A, $, a)) return;
2843
+ if (I === "image" && !xo(A, $, a)) return;
2844
2844
  let v = 0, R = 0;
2845
2845
  w === "on Click" ? (v = A, R = $) : w === "same" ? (v = E.width / 2, R = E.height / 2) : (v = Math.random() * E.width, R = Math.random() * E.height);
2846
2846
  const q = e[c], ot = await D(q, E.width, E.height, { x: v, y: R });
@@ -2848,13 +2848,13 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2848
2848
  },
2849
2849
  onMouseEnter: () => f(!0),
2850
2850
  onMouseLeave: () => f(!1),
2851
- className: ue.imageRevealSlider,
2851
+ className: pe.imageRevealSlider,
2852
2852
  style: { cursor: u === "none" ? "default" : "none" },
2853
2853
  children: [
2854
2854
  a.map((g) => /* @__PURE__ */ B(
2855
2855
  "div",
2856
2856
  {
2857
- className: ue.wrapper,
2857
+ className: pe.wrapper,
2858
2858
  style: {
2859
2859
  top: `${g.y}px`,
2860
2860
  left: `${g.x}px`,
@@ -2864,12 +2864,12 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2864
2864
  height: "auto",
2865
2865
  cursor: u === "none" ? "default" : "none"
2866
2866
  },
2867
- children: k === "area" && g.link ? /* @__PURE__ */ B("a", { href: g.link, target: "_blank", className: ue.link, children: /* @__PURE__ */ B(
2867
+ children: I === "area" && g.link ? /* @__PURE__ */ B("a", { href: g.link, target: "_blank", className: pe.link, children: /* @__PURE__ */ B(
2868
2868
  "img",
2869
2869
  {
2870
2870
  src: g.url,
2871
2871
  alt: g.name,
2872
- className: ue.image
2872
+ className: pe.image
2873
2873
  },
2874
2874
  g.id
2875
2875
  ) }) : /* @__PURE__ */ B(
@@ -2877,7 +2877,7 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2877
2877
  {
2878
2878
  src: g.url,
2879
2879
  alt: g.name,
2880
- className: ue.image
2880
+ className: pe.image
2881
2881
  },
2882
2882
  g.id
2883
2883
  )
@@ -2887,7 +2887,7 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2887
2887
  b && /* @__PURE__ */ B(
2888
2888
  "div",
2889
2889
  {
2890
- className: ue.cursor,
2890
+ className: pe.cursor,
2891
2891
  style: {
2892
2892
  left: `${s.x}px`,
2893
2893
  top: `${s.y}px`,
@@ -2904,8 +2904,8 @@ function Pa({ settings: t, content: e, isEditor: n }) {
2904
2904
  }
2905
2905
  );
2906
2906
  }
2907
- const Na = {
2908
- element: Pa,
2907
+ const Pa = {
2908
+ element: Oa,
2909
2909
  id: "control-image-reveal",
2910
2910
  name: "Click Gallery",
2911
2911
  preview: {
@@ -3218,50 +3218,50 @@ const Na = {
3218
3218
  }
3219
3219
  }
3220
3220
  }
3221
- }, Wa = "LightBox-module__hidden___9s-9x", za = "LightBox-module__heroImage___sTxNF", Ma = "LightBox-module__background___rm9ml", Va = "LightBox-module__editor___4ACaY", Ha = "LightBox-module__contentStyle___Bgnsq", Da = "LightBox-module__imageStyle___tLIlB", ja = "LightBox-module__imgWrapper___LuFUp", Ua = "LightBox-module__contain___8-yaS", Ya = "LightBox-module__cover___hNvOG", Ga = "LightBox-module__caption___b6L2I", qa = "LightBox-module__captionTextInner___rCGNH", Xa = "LightBox-module__lightboxSplide___XFuWC", Ka = "LightBox-module__arrow___iz38X", Ja = "LightBox-module__arrowVertical___Zfz81", Za = "LightBox-module__nextArrow___zkAQN", Qa = "LightBox-module__arrowInner___p48sW", tl = "LightBox-module__arrowIcon___3VaFf", el = "LightBox-module__arrowImg___pNV88", nl = "LightBox-module__mirror___pjeXc", ol = "LightBox-module__thumbsWrapper___GB-nU", rl = "LightBox-module__thumbsContainerVertical___wttk5", il = "LightBox-module__thumbsContainer___osSma", al = "LightBox-module__thumbsAlignStart___MO6tY", ll = "LightBox-module__thumbsAlignCenter___Q4sUx", sl = "LightBox-module__thumbsAlignEnd___p4y9R", cl = "LightBox-module__thumbItem___HvnF3", ul = "LightBox-module__closeButton___g2khP", pl = "LightBox-module__fadeIn___0m5GW", dl = "LightBox-module__slideInLeft___gPYwC", gl = "LightBox-module__slideInRight___S-pPp", ml = "LightBox-module__slideInTop___DFdAj", fl = "LightBox-module__slideInBottom___m27kZ", hl = "LightBox-module__fadeOut___55qBR", yl = "LightBox-module__slideOutLeft___NvU7P", vl = "LightBox-module__slideOutRight___SK7eC", bl = "LightBox-module__slideOutTop___Vgg0z", Sl = "LightBox-module__slideOutBottom___nJ0Ef", Cl = "LightBox-module__scaleSlide___vZriG", W = {
3222
- hidden: Wa,
3223
- heroImage: za,
3224
- background: Ma,
3225
- editor: Va,
3226
- contentStyle: Ha,
3227
- imageStyle: Da,
3228
- imgWrapper: ja,
3229
- contain: Ua,
3230
- cover: Ya,
3231
- caption: Ga,
3232
- captionTextInner: qa,
3233
- lightboxSplide: Xa,
3234
- arrow: Ka,
3235
- arrowVertical: Ja,
3236
- nextArrow: Za,
3237
- arrowInner: Qa,
3238
- arrowIcon: tl,
3239
- arrowImg: el,
3240
- mirror: nl,
3241
- thumbsWrapper: ol,
3242
- thumbsContainerVertical: rl,
3243
- thumbsContainer: il,
3244
- thumbsAlignStart: al,
3245
- thumbsAlignCenter: ll,
3246
- thumbsAlignEnd: sl,
3247
- thumbItem: cl,
3248
- closeButton: ul,
3249
- fadeIn: pl,
3250
- slideInLeft: dl,
3251
- slideInRight: gl,
3252
- slideInTop: ml,
3253
- slideInBottom: fl,
3254
- fadeOut: hl,
3255
- slideOutLeft: yl,
3256
- slideOutRight: vl,
3257
- slideOutTop: bl,
3258
- slideOutBottom: Sl,
3259
- scaleSlide: Cl
3221
+ }, Na = "LightBox-module__hidden___9s-9x", Wa = "LightBox-module__heroImage___sTxNF", za = "LightBox-module__background___rm9ml", Ma = "LightBox-module__editor___4ACaY", Va = "LightBox-module__contentStyle___Bgnsq", Ha = "LightBox-module__imageStyle___tLIlB", Da = "LightBox-module__imgWrapper___LuFUp", ja = "LightBox-module__contain___8-yaS", Ua = "LightBox-module__cover___hNvOG", Ya = "LightBox-module__caption___b6L2I", Ga = "LightBox-module__captionTextInner___rCGNH", qa = "LightBox-module__lightboxSplide___XFuWC", Xa = "LightBox-module__arrow___iz38X", Ka = "LightBox-module__arrowVertical___Zfz81", Ja = "LightBox-module__nextArrow___zkAQN", Za = "LightBox-module__arrowInner___p48sW", Qa = "LightBox-module__arrowIcon___3VaFf", tl = "LightBox-module__arrowImg___pNV88", el = "LightBox-module__mirror___pjeXc", nl = "LightBox-module__thumbsWrapper___GB-nU", ol = "LightBox-module__thumbsContainerVertical___wttk5", rl = "LightBox-module__thumbsContainer___osSma", il = "LightBox-module__thumbsAlignStart___MO6tY", al = "LightBox-module__thumbsAlignCenter___Q4sUx", ll = "LightBox-module__thumbsAlignEnd___p4y9R", sl = "LightBox-module__thumbItem___HvnF3", cl = "LightBox-module__closeButton___g2khP", ul = "LightBox-module__fadeIn___0m5GW", pl = "LightBox-module__slideInLeft___gPYwC", dl = "LightBox-module__slideInRight___S-pPp", gl = "LightBox-module__slideInTop___DFdAj", ml = "LightBox-module__slideInBottom___m27kZ", fl = "LightBox-module__fadeOut___55qBR", hl = "LightBox-module__slideOutLeft___NvU7P", yl = "LightBox-module__slideOutRight___SK7eC", vl = "LightBox-module__slideOutTop___Vgg0z", bl = "LightBox-module__slideOutBottom___nJ0Ef", Sl = "LightBox-module__scaleSlide___vZriG", W = {
3222
+ hidden: Na,
3223
+ heroImage: Wa,
3224
+ background: za,
3225
+ editor: Ma,
3226
+ contentStyle: Va,
3227
+ imageStyle: Ha,
3228
+ imgWrapper: Da,
3229
+ contain: ja,
3230
+ cover: Ua,
3231
+ caption: Ya,
3232
+ captionTextInner: Ga,
3233
+ lightboxSplide: qa,
3234
+ arrow: Xa,
3235
+ arrowVertical: Ka,
3236
+ nextArrow: Ja,
3237
+ arrowInner: Za,
3238
+ arrowIcon: Qa,
3239
+ arrowImg: tl,
3240
+ mirror: el,
3241
+ thumbsWrapper: nl,
3242
+ thumbsContainerVertical: ol,
3243
+ thumbsContainer: rl,
3244
+ thumbsAlignStart: il,
3245
+ thumbsAlignCenter: al,
3246
+ thumbsAlignEnd: ll,
3247
+ thumbItem: sl,
3248
+ closeButton: cl,
3249
+ fadeIn: ul,
3250
+ slideInLeft: pl,
3251
+ slideInRight: dl,
3252
+ slideInTop: gl,
3253
+ slideInBottom: ml,
3254
+ fadeOut: fl,
3255
+ slideOutLeft: hl,
3256
+ slideOutRight: yl,
3257
+ slideOutTop: vl,
3258
+ slideOutBottom: bl,
3259
+ scaleSlide: Sl
3260
3260
  }, Ge = (t, e, n) => {
3261
3261
  const o = {}, [r, a] = t.split("-");
3262
3262
  return r === "top" ? (o.top = "0", o.bottom = "auto") : r === "middle" ? (o.top = "50%", o.bottom = "auto") : r === "bottom" && (o.top = "auto", o.bottom = "0"), a === "left" ? (o.left = "0", o.right = "auto") : a === "center" ? (o.left = "50%", o.right = "auto") : a === "right" && (o.left = "auto", o.right = "0"), r === "middle" && a === "center" ? o.transform = `translate(calc(-50% + ${P(e.x, n)}), calc(-50% + ${P(e.y, n)}))` : r === "middle" ? o.transform = `translate(${P(e.x, n)}, calc(-50% + ${P(e.y, n)}))` : a === "center" ? o.transform = `translate(calc(-50% + ${P(e.x, n)}), ${P(e.y, n)})` : o.transform = `translate(${P(e.x, n)}, ${P(e.y, n)})`, o;
3263
3263
  };
3264
- function fr(t) {
3264
+ function mr(t) {
3265
3265
  const e = window.getComputedStyle(t);
3266
3266
  return {
3267
3267
  top: parseFloat(e.paddingTop) || 0,
@@ -3270,8 +3270,8 @@ function fr(t) {
3270
3270
  left: parseFloat(e.paddingLeft) || 0
3271
3271
  };
3272
3272
  }
3273
- function _o(t) {
3274
- const e = t.getBoundingClientRect(), n = fr(t), o = Math.max(0, e.width - n.left - n.right), r = Math.max(0, e.height - n.top - n.bottom), a = t.naturalWidth, i = t.naturalHeight, c = o / r, l = a / i;
3273
+ function $o(t) {
3274
+ const e = t.getBoundingClientRect(), n = mr(t), o = Math.max(0, e.width - n.left - n.right), r = Math.max(0, e.height - n.top - n.bottom), a = t.naturalWidth, i = t.naturalHeight, c = o / r, l = a / i;
3275
3275
  let p, s;
3276
3276
  l > c ? (p = o, s = o / l) : (s = r, p = r * l);
3277
3277
  const _ = e.left + n.left, y = e.top + n.top, m = (o - p) / 2 + _, u = (r - s) / 2 + y;
@@ -3282,8 +3282,8 @@ function _o(t) {
3282
3282
  height: s
3283
3283
  };
3284
3284
  }
3285
- function wo(t) {
3286
- const e = t.getBoundingClientRect(), n = fr(t);
3285
+ function _o(t) {
3286
+ const e = t.getBoundingClientRect(), n = mr(t);
3287
3287
  return {
3288
3288
  left: e.left + n.left,
3289
3289
  right: e.right - n.right,
@@ -3291,7 +3291,7 @@ function wo(t) {
3291
3291
  bottom: e.bottom - n.bottom
3292
3292
  };
3293
3293
  }
3294
- function To(t) {
3294
+ function wo(t) {
3295
3295
  const e = t.match(/rgba?\(([^)]+)\)/);
3296
3296
  if (e) {
3297
3297
  const o = e[1].split(",").map((r) => parseFloat(r.trim()));
@@ -3304,7 +3304,7 @@ function To(t) {
3304
3304
  }
3305
3305
  return t.match(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/), 1;
3306
3306
  }
3307
- function xl(t, e) {
3307
+ function Cl(t, e) {
3308
3308
  const n = (() => {
3309
3309
  if (t === "fade in") return W.fadeIn;
3310
3310
  if (t === "slide in" || t === "mix")
@@ -3372,7 +3372,7 @@ function xl(t, e) {
3372
3372
  })();
3373
3373
  return { appearClass: n, backdropAppearClass: o, backdropDisappearClass: r, disappearClass: a };
3374
3374
  }
3375
- const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, isEditor: a }) => {
3375
+ const xl = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, isEditor: a }) => {
3376
3376
  const [i, c] = it(!1), { url: l } = t.thumbnailBlock.cover;
3377
3377
  return bt(() => {
3378
3378
  r === "close" && c(!1), r === "open" && c(!0);
@@ -3387,7 +3387,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3387
3387
  }
3388
3388
  ),
3389
3389
  /* @__PURE__ */ B(
3390
- _l,
3390
+ $l,
3391
3391
  {
3392
3392
  isOpen: i,
3393
3393
  onClose: () => c(!1),
@@ -3399,9 +3399,9 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3399
3399
  }
3400
3400
  )
3401
3401
  ] });
3402
- }, _l = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
3402
+ }, $l = ({ isOpen: t, onClose: e, content: n, lightboxStyles: o, settings: r, portalId: a, isEditor: i, metadata: c }) => {
3403
3403
  var M;
3404
- const [l, p] = it(0), [s, _] = it(0), [y, m] = it(!1), [u, d] = it(!1), [C, b] = it({}), f = Tt(null), x = Tt(null), V = Tt(null), N = Tt(!1), w = Tt(null), h = Tt(null), L = Tt(null), k = Tt(null), z = Tt(!1), I = Tt(null), [F, O] = it(!1), { appear: D, triggers: j, slider: g, thumbnail: E, controls: A, area: $, caption: v, layout: R } = r.lightboxBlock, { appearClass: q, backdropAppearClass: ot, backdropDisappearClass: Z, disappearClass: ut } = xl(D.type, D.direction), T = (c == null ? void 0 : c.itemId) ?? null;
3404
+ const [l, p] = it(0), [s, _] = it(0), [y, m] = it(!1), [u, d] = it(!1), [C, b] = it({}), f = Tt(null), x = Tt(null), V = Tt(null), N = Tt(!1), w = Tt(null), h = Tt(null), L = Tt(null), I = Tt(null), z = Tt(!1), k = Tt(null), [F, O] = it(!1), { appear: D, triggers: j, slider: g, thumbnail: E, controls: A, area: $, caption: v, layout: R } = r.lightboxBlock, { appearClass: q, backdropAppearClass: ot, backdropDisappearClass: Z, disappearClass: ut } = Cl(D.type, D.direction), T = (c == null ? void 0 : c.itemId) ?? null;
3405
3405
  bt(() => {
3406
3406
  const S = () => {
3407
3407
  setTimeout(() => {
@@ -3419,7 +3419,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3419
3419
  O(!1);
3420
3420
  return;
3421
3421
  }
3422
- const S = I.current;
3422
+ const S = k.current;
3423
3423
  if (!S) return;
3424
3424
  const H = () => {
3425
3425
  g.direction === "horiz" ? O(S.scrollWidth > S.clientWidth) : O(S.scrollHeight > S.clientHeight);
@@ -3428,14 +3428,14 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3428
3428
  const Y = new ResizeObserver(H);
3429
3429
  return Y.observe(S), () => Y.disconnect();
3430
3430
  }, [t, E.isActive, n.length, C, g.direction]);
3431
- const X = Cr(() => {
3432
- const S = window.matchMedia("(max-width: 768px)").matches, H = To($.color);
3431
+ const X = Sr(() => {
3432
+ const S = window.matchMedia("(max-width: 768px)").matches, H = wo($.color);
3433
3433
  S && !i && H > 0.9 && (document.body.style.backgroundColor = ""), m(!0), N.current = !0;
3434
3434
  const Y = (K) => {
3435
3435
  K.target === w.current && K.animationName && (w.current && h.current && w.current.removeEventListener("animationend", h.current), h.current = null, N.current && (N.current = !1, e()), m(!1));
3436
3436
  };
3437
3437
  w.current && (h.current = Y, w.current.addEventListener("animationend", Y));
3438
- }, [e, $.color, i]), ft = (S, H, Y) => {
3438
+ }, [e, $.color, i]), ht = (S, H, Y) => {
3439
3439
  var K, nt;
3440
3440
  if (S) {
3441
3441
  if (j.type === "click" && j.switch === "image")
@@ -3461,17 +3461,17 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3461
3461
  return;
3462
3462
  let Q;
3463
3463
  if (Y && V.current) {
3464
- const G = wo(V.current);
3464
+ const G = _o(V.current);
3465
3465
  Q = K >= G.left && K <= G.right && nt >= G.top && nt <= G.bottom;
3466
3466
  } else {
3467
- const G = V.current ? _o(V.current) : null;
3467
+ const G = V.current ? $o(V.current) : null;
3468
3468
  if (!G) {
3469
3469
  S.target === S.currentTarget && X();
3470
3470
  return;
3471
3471
  }
3472
3472
  Q = K >= G.x && K <= G.x + G.width && nt >= G.y && nt <= G.y + G.height;
3473
3473
  }
3474
- Q ? ft(V.current, K, nt) : X();
3474
+ Q ? ht(V.current, K, nt) : X();
3475
3475
  }, mt = (S) => {
3476
3476
  const H = S.target;
3477
3477
  (H.classList.contains(W.thumbsWrapper) || H.classList.contains(W.thumbsContainer)) && rt(S);
@@ -3506,7 +3506,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3506
3506
  x.current !== null && x.current !== g.type && _((S) => S + 1), x.current = g.type;
3507
3507
  }, [g.type]), bt(() => {
3508
3508
  if (!t) return;
3509
- const S = document.body.style.overflow, H = window.matchMedia("(max-width: 768px)").matches, Y = To($.color);
3509
+ const S = document.body.style.overflow, H = window.matchMedia("(max-width: 768px)").matches, Y = wo($.color);
3510
3510
  document.body.style.overflow = "hidden", d(!1);
3511
3511
  const K = (Q) => {
3512
3512
  Q.target === w.current && !N.current && Q.animationName && (H && !i && Y > 0.9 && (document.body.style.backgroundColor = $.color), d(!0), w.current && L.current && w.current.removeEventListener("animationend", L.current), L.current = null);
@@ -3542,10 +3542,10 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3542
3542
  const Q = n[l], G = (Q == null ? void 0 : Q.image.objectFit) === "cover", et = H.changedTouches[0];
3543
3543
  let vt;
3544
3544
  if (G && V.current) {
3545
- const lt = wo(V.current);
3545
+ const lt = _o(V.current);
3546
3546
  vt = et.clientX >= lt.left && et.clientX <= lt.right && et.clientY >= lt.top && et.clientY <= lt.bottom;
3547
3547
  } else {
3548
- const lt = V.current ? _o(V.current) : null;
3548
+ const lt = V.current ? $o(V.current) : null;
3549
3549
  if (!lt) return;
3550
3550
  vt = et.clientX >= lt.x && et.clientX <= lt.x + lt.width && et.clientY >= lt.y && et.clientY <= lt.y + lt.height;
3551
3551
  }
@@ -3568,25 +3568,25 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3568
3568
  var pt, Bt;
3569
3569
  if (!t || !Ct || !((Bt = (pt = f.current) == null ? void 0 : pt.splide) != null && Bt.root)) return;
3570
3570
  const S = f.current.splide.root, H = 30, Y = (tt, st) => {
3571
- if (k.current) {
3572
- const _t = Math.abs(tt - k.current.x), Yt = Math.abs(st - k.current.y);
3571
+ if (I.current) {
3572
+ const _t = Math.abs(tt - I.current.x), Yt = Math.abs(st - I.current.y);
3573
3573
  (_t > 0 || Yt > 0) && (z.current = !0);
3574
3574
  }
3575
3575
  }, K = (tt) => {
3576
- k.current && (tt.preventDefault(), Y(tt.clientX, tt.clientY));
3576
+ I.current && (tt.preventDefault(), Y(tt.clientX, tt.clientY));
3577
3577
  }, nt = (tt) => {
3578
- k.current && tt.touches.length > 0 && (tt.preventDefault(), Y(tt.touches[0].clientX, tt.touches[0].clientY));
3578
+ I.current && tt.touches.length > 0 && (tt.preventDefault(), Y(tt.touches[0].clientX, tt.touches[0].clientY));
3579
3579
  }, Q = (tt, st) => {
3580
- if (!k.current || !f.current) {
3581
- k.current = null;
3580
+ if (!I.current || !f.current) {
3581
+ I.current = null;
3582
3582
  return;
3583
3583
  }
3584
- const _t = Math.abs(tt - k.current.x), Yt = Math.abs(st - k.current.y);
3585
- Yt > H && Yt > _t && f.current.go(st < k.current.y ? "+1" : "-1"), k.current = null;
3584
+ const _t = Math.abs(tt - I.current.x), Yt = Math.abs(st - I.current.y);
3585
+ Yt > H && Yt > _t && f.current.go(st < I.current.y ? "+1" : "-1"), I.current = null;
3586
3586
  }, G = (tt) => {
3587
- k.current && Q(tt.clientX, tt.clientY), document.removeEventListener("pointerup", G), document.removeEventListener("pointercancel", G), document.removeEventListener("pointermove", K);
3587
+ I.current && Q(tt.clientX, tt.clientY), document.removeEventListener("pointerup", G), document.removeEventListener("pointercancel", G), document.removeEventListener("pointermove", K);
3588
3588
  }, et = (tt) => {
3589
- if (k.current) {
3589
+ if (I.current) {
3590
3590
  if (tt.changedTouches.length > 0) {
3591
3591
  const st = tt.changedTouches[0];
3592
3592
  Q(st.clientX, st.clientY);
@@ -3594,12 +3594,12 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3594
3594
  document.removeEventListener("touchend", et), document.removeEventListener("touchcancel", et), document.removeEventListener("touchmove", nt);
3595
3595
  }
3596
3596
  }, vt = (tt) => {
3597
- k.current = { x: tt.clientX, y: tt.clientY }, z.current = !1, document.addEventListener("pointermove", K, { passive: !1 }), document.addEventListener("pointerup", G), document.addEventListener("pointercancel", G);
3597
+ I.current = { x: tt.clientX, y: tt.clientY }, z.current = !1, document.addEventListener("pointermove", K, { passive: !1 }), document.addEventListener("pointerup", G), document.addEventListener("pointercancel", G);
3598
3598
  }, lt = (tt) => {
3599
- tt.touches.length > 0 && (k.current = { x: tt.touches[0].clientX, y: tt.touches[0].clientY }, z.current = !1, document.addEventListener("touchmove", nt, { passive: !1 }), document.addEventListener("touchend", et), document.addEventListener("touchcancel", et));
3599
+ tt.touches.length > 0 && (I.current = { x: tt.touches[0].clientX, y: tt.touches[0].clientY }, z.current = !1, document.addEventListener("touchmove", nt, { passive: !1 }), document.addEventListener("touchend", et), document.addEventListener("touchcancel", et));
3600
3600
  };
3601
3601
  return S.addEventListener("pointerdown", vt), S.addEventListener("touchstart", lt), () => {
3602
- S.removeEventListener("pointerdown", vt), S.removeEventListener("touchstart", lt), document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", G), document.removeEventListener("pointercancel", G), document.removeEventListener("touchmove", nt), document.removeEventListener("touchend", et), document.removeEventListener("touchcancel", et), k.current = null, z.current = !1;
3602
+ S.removeEventListener("pointerdown", vt), S.removeEventListener("touchstart", lt), document.removeEventListener("pointermove", K), document.removeEventListener("pointerup", G), document.removeEventListener("pointercancel", G), document.removeEventListener("touchmove", nt), document.removeEventListener("touchend", et), document.removeEventListener("touchcancel", et), I.current = null, z.current = !1;
3603
3603
  };
3604
3604
  }, [t, Ct, s]);
3605
3605
  const Ut = {
@@ -3609,7 +3609,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3609
3609
  animationTimingFunction: "ease",
3610
3610
  animationFillMode: "both"
3611
3611
  };
3612
- return typeof document > "u" || !document.getElementById(a) ? null : xr(
3612
+ return typeof document > "u" || !document.getElementById(a) ? null : Cr(
3613
3613
  /* @__PURE__ */ St(Ae, { children: [
3614
3614
  /* @__PURE__ */ B(
3615
3615
  "div",
@@ -3634,7 +3634,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3634
3634
  },
3635
3635
  children: [
3636
3636
  /* @__PURE__ */ B(
3637
- dr,
3637
+ pr,
3638
3638
  {
3639
3639
  onMove: (S) => p(S.index),
3640
3640
  ref: f,
@@ -3666,7 +3666,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3666
3666
  "--position-transform": Q || "none"
3667
3667
  };
3668
3668
  })() : { ...Y, position: "absolute", padding: K, boxSizing: "border-box" };
3669
- return /* @__PURE__ */ B(gr, { children: /* @__PURE__ */ B("div", { className: W.imgWrapper, onClick: rt, children: /* @__PURE__ */ B(
3669
+ return /* @__PURE__ */ B(dr, { children: /* @__PURE__ */ B("div", { className: W.imgWrapper, onClick: rt, children: /* @__PURE__ */ B(
3670
3670
  "img",
3671
3671
  {
3672
3672
  ref: H === l ? V : null,
@@ -3702,7 +3702,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3702
3702
  "aria-label": "Previous",
3703
3703
  children: [
3704
3704
  A.arrowsImgUrl && /* @__PURE__ */ B(
3705
- he,
3705
+ ye,
3706
3706
  {
3707
3707
  url: A.arrowsImgUrl,
3708
3708
  fill: A.color,
@@ -3710,7 +3710,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3710
3710
  className: dt(W.arrowImg, W.mirror)
3711
3711
  }
3712
3712
  ),
3713
- !A.arrowsImgUrl && /* @__PURE__ */ B(Lo, { color: A.color, className: dt(W.arrowIcon, W.arrowImg, W.mirror) })
3713
+ !A.arrowsImgUrl && /* @__PURE__ */ B(To, { color: A.color, className: dt(W.arrowIcon, W.arrowImg, W.mirror) })
3714
3714
  ]
3715
3715
  }
3716
3716
  )
@@ -3733,7 +3733,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3733
3733
  "aria-label": "Next",
3734
3734
  children: [
3735
3735
  A.arrowsImgUrl && /* @__PURE__ */ B(
3736
- he,
3736
+ ye,
3737
3737
  {
3738
3738
  url: A.arrowsImgUrl,
3739
3739
  fill: A.color,
@@ -3741,7 +3741,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3741
3741
  className: W.arrowImg
3742
3742
  }
3743
3743
  ),
3744
- !A.arrowsImgUrl && /* @__PURE__ */ B(Lo, { color: A.color, className: dt(W.arrowIcon, W.arrowImg) })
3744
+ !A.arrowsImgUrl && /* @__PURE__ */ B(To, { color: A.color, className: dt(W.arrowIcon, W.arrowImg) })
3745
3745
  ]
3746
3746
  }
3747
3747
  )
@@ -3750,7 +3750,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3750
3750
  ] }),
3751
3751
  $.closeIconUrl && (() => {
3752
3752
  const S = Ge($.closeIconAlign, $.closeIconOffset, i), H = `scale(${$.closeIconScale})`, Y = S.transform ? `${S.transform} ${H}` : H;
3753
- return /* @__PURE__ */ B("button", { className: W.closeButton, style: { ...S, transform: Y }, onClick: X, "aria-label": "Close lightbox", children: /* @__PURE__ */ B(he, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
3753
+ return /* @__PURE__ */ B("button", { className: W.closeButton, style: { ...S, transform: Y }, onClick: X, "aria-label": "Close lightbox", children: /* @__PURE__ */ B(ye, { url: $.closeIconUrl, fill: $.closeIconColor ?? "#000000", hoverFill: $.closeIconHover ?? "#cccccc" }) });
3754
3754
  })(),
3755
3755
  v && v.isActive && o.imageCaption && ((M = n[l]) == null ? void 0 : M.imageCaption) && (() => {
3756
3756
  const { widthSettings: S, fontSettings: H, letterSpacing: Y, textAlign: K, wordSpacing: nt, fontSizeLineHeight: Q, textAppearance: G, color: et } = o.imageCaption;
@@ -3784,7 +3784,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3784
3784
  "--link-color": v.linkColor,
3785
3785
  "--link-hover-color": v.linkHoverColor
3786
3786
  },
3787
- children: /* @__PURE__ */ B(mr, { content: n[l].imageCaption })
3787
+ children: /* @__PURE__ */ B(gr, { content: n[l].imageCaption })
3788
3788
  }
3789
3789
  )
3790
3790
  }
@@ -3806,7 +3806,7 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3806
3806
  return /* @__PURE__ */ B(
3807
3807
  "div",
3808
3808
  {
3809
- ref: I,
3809
+ ref: k,
3810
3810
  className: W.thumbsWrapper,
3811
3811
  onClick: (Q) => mt(Q),
3812
3812
  style: {
@@ -3912,11 +3912,11 @@ const $l = ({ settings: t, content: e, styles: n, portalId: o, activeEvent: r, i
3912
3912
  document.getElementById(a)
3913
3913
  );
3914
3914
  };
3915
- function Lo({ color: t, className: e }) {
3915
+ function To({ color: t, className: e }) {
3916
3916
  return /* @__PURE__ */ B("svg", { viewBox: "0 0 10 18", className: e, children: /* @__PURE__ */ B("g", { id: "Symbols", stroke: "none", strokeWidth: "1", fillRule: "evenodd", children: /* @__PURE__ */ B("path", { d: "M-3.70710678,4.29289322 C-3.34662282,3.93240926 -2.77939176,3.90467972 -2.38710056,4.20970461 L-2.29289322,4.29289322 L5,11.585 L12.2928932,4.29289322 C12.6533772,3.93240926 13.2206082,3.90467972 13.6128994,4.20970461 L13.7071068,4.29289322 C14.0675907,4.65337718 14.0953203,5.22060824 13.7902954,5.61289944 L13.7071068,5.70710678 L5.70710678,13.7071068 C5.34662282,14.0675907 4.77939176,14.0953203 4.38710056,13.7902954 L4.29289322,13.7071068 L-3.70710678,5.70710678 C-4.09763107,5.31658249 -4.09763107,4.68341751 -3.70710678,4.29289322 Z", id: "Shape-Copy", fill: t, transform: "translate(5, 9) rotate(-90) translate(-5, -9)" }) }) });
3917
3917
  }
3918
- const wl = {
3919
- element: $l,
3918
+ const _l = {
3919
+ element: xl,
3920
3920
  id: "lightbox",
3921
3921
  name: "Lightbox",
3922
3922
  preview: {
@@ -4986,7 +4986,11 @@ const wl = {
4986
4986
  required: ["settings", "content", "styles"]
4987
4987
  }
4988
4988
  };
4989
- function ne(t, e) {
4989
+ function ve(t) {
4990
+ const { color: e, ...n } = t;
4991
+ return n;
4992
+ }
4993
+ function oe(t, e) {
4990
4994
  var n, o, r;
4991
4995
  return {
4992
4996
  fontFamily: t.fontSettings.fontFamily,
@@ -5005,7 +5009,7 @@ function ne(t, e) {
5005
5009
  function qe(t) {
5006
5010
  return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
5007
5011
  }
5008
- function Tl(t) {
5012
+ function wl(t) {
5009
5013
  return `
5010
5014
  .${t}-wrapper {
5011
5015
  display: flex;
@@ -5078,6 +5082,11 @@ function Tl(t) {
5078
5082
  color: var(--${t}-filled-input-text-color, var(--${t}-input-text-color));
5079
5083
  border-color: var(--${t}-filled-input-border-color, var(--${t}-input-border-color));
5080
5084
  }
5085
+ .${t}-wrapper.${t}-state-filled .${t}-button {
5086
+ background-color: var(--${t}-filled-button-color, var(--${t}-button-color));
5087
+ color: var(--${t}-filled-button-text-color, var(--${t}-button-text-color));
5088
+ border-color: var(--${t}-filled-button-border-color, var(--${t}-button-border-color));
5089
+ }
5081
5090
  .${t}-wrapper.${t}-state-success .${t}-input,
5082
5091
  .${t}-wrapper.${t}-state-success .${t}-button {
5083
5092
  pointer-events: none;
@@ -5139,8 +5148,8 @@ function Tl(t) {
5139
5148
  }
5140
5149
  `;
5141
5150
  }
5142
- function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5143
- const { prefix: r } = Eo(), {
5151
+ function Tl({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5152
+ const { prefix: r } = Lo(), {
5144
5153
  type: a = "A",
5145
5154
  fieldsToShow: i = 2,
5146
5155
  fields: c = [],
@@ -5161,9 +5170,9 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5161
5170
  buttonColor: w,
5162
5171
  buttonTextColor: h,
5163
5172
  buttonBorderColor: L,
5164
- labelTextColor: k,
5173
+ labelTextColor: I,
5165
5174
  successColor: z,
5166
- errorColor: I,
5175
+ errorColor: k,
5167
5176
  fontFamily: F,
5168
5177
  inputFontSettings: O,
5169
5178
  inputFontSize: D,
@@ -5180,7 +5189,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5180
5189
  labelFontSettings: ut,
5181
5190
  labelFontSize: T,
5182
5191
  labelLineHeight: X,
5183
- labelLetterSpacing: ft,
5192
+ labelLetterSpacing: ht,
5184
5193
  labelWordSpacing: rt,
5185
5194
  labelTextAppearance: mt,
5186
5195
  statusFontSettings: Ct,
@@ -5204,7 +5213,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5204
5213
  wordSpacing: E ?? 0,
5205
5214
  textAppearance: A,
5206
5215
  color: x
5207
- }, lt = ne(vt, e), pt = P(C ?? 0, e), Bt = {
5216
+ }, lt = ve(oe(vt, e)), pt = P(C ?? 0, e), Bt = {
5208
5217
  ...lt,
5209
5218
  borderStyle: "solid",
5210
5219
  borderRadius: a === "C" ? 0 : P(d ?? 0, e),
@@ -5230,7 +5239,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5230
5239
  wordSpacing: ot ?? 0,
5231
5240
  textAppearance: Z,
5232
5241
  color: h
5233
- }, st = ne(tt, e), _t = P(y ?? 0, e), Yt = {
5242
+ }, st = ve(oe(tt, e)), _t = P(y ?? 0, e), Yt = {
5234
5243
  fontSettings: {
5235
5244
  fontFamily: F,
5236
5245
  fontWeight: (ut == null ? void 0 : ut.fontWeight) ?? 400,
@@ -5238,11 +5247,11 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5238
5247
  },
5239
5248
  fontSize: T ?? 0.01,
5240
5249
  lineHeight: X,
5241
- letterSpacing: ft ?? 0,
5250
+ letterSpacing: ht ?? 0,
5242
5251
  wordSpacing: rt ?? 0,
5243
5252
  textAppearance: mt,
5244
- color: k
5245
- }, $e = ne(Yt, e), bn = {
5253
+ color: I
5254
+ }, ft = oe(Yt, e), se = {
5246
5255
  fontSettings: {
5247
5256
  fontFamily: F,
5248
5257
  fontWeight: (Ct == null ? void 0 : Ct.fontWeight) ?? 400,
@@ -5254,7 +5263,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5254
5263
  wordSpacing: H ?? 0,
5255
5264
  textAppearance: Y,
5256
5265
  color: z
5257
- }, ht = ne(bn, e), { color: _e, ...le } = ht, wt = Ao(r, {
5266
+ }, te = ve(oe(se, e)), wt = Eo(r, {
5258
5267
  inputColor: f,
5259
5268
  inputTextColor: x,
5260
5269
  inputBorderColor: V,
@@ -5262,26 +5271,26 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5262
5271
  buttonColor: w,
5263
5272
  buttonTextColor: h,
5264
5273
  buttonBorderColor: L,
5265
- labelTextColor: k,
5274
+ labelTextColor: I,
5266
5275
  successColor: z,
5267
- errorColor: I
5268
- }, El, Al, Q), [Ot, no] = it(
5276
+ errorColor: k
5277
+ }, Ll, El, Q), [Ot, eo] = it(
5269
5278
  () => Object.fromEntries(et.map((ct) => [ct.name, ""]))
5270
- ), [oo, we] = it("idle"), [hr, Ue] = it(null), Sn = o === "success" ? "success" : o === "error" ? "error" : oo, yr = o === "error" ? nt : hr, Te = o === "filled" ? Object.fromEntries(et.map((ct) => [ct.name, "Filled"])) : Ot, vr = Sn === "error" ? en(et, Te) : null, br = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), ro = n == null ? void 0 : n.submitUrl, io = (ct, se) => {
5271
- no((Gt) => ({ ...Gt, [ct]: se }));
5272
- }, Sr = async (ct) => {
5279
+ ), [no, we] = it("idle"), [fr, Ue] = it(null), bn = o === "success" ? "success" : o === "error" ? "error" : no, hr = o === "error" ? nt : fr, Te = o === "filled" ? Object.fromEntries(et.map((ct) => [ct.name, "Filled"])) : Ot, yr = bn === "error" ? en(et, Te) : null, vr = `${o && o !== "default" ? `${r}-state-${o}` : ""}`.trim(), oo = n == null ? void 0 : n.submitUrl, ro = (ct, ce) => {
5280
+ eo((Gt) => ({ ...Gt, [ct]: ce }));
5281
+ }, br = async (ct) => {
5273
5282
  ct.preventDefault();
5274
- const se = Object.fromEntries(
5275
- et.map((It) => {
5276
- var ce;
5277
- return [It.name, ((ce = Ot[It.name]) == null ? void 0 : ce.trim()) ?? ""];
5278
- }).filter(([, It]) => It)
5283
+ const ce = Object.fromEntries(
5284
+ et.map((kt) => {
5285
+ var ue;
5286
+ return [kt.name, ((ue = Ot[kt.name]) == null ? void 0 : ue.trim()) ?? ""];
5287
+ }).filter(([, kt]) => kt)
5279
5288
  );
5280
- if (!ro) {
5289
+ if (!oo) {
5281
5290
  we("error"), Ue("No integrations were found for this form.");
5282
5291
  return;
5283
5292
  }
5284
- if (Object.keys(se).length === 0) return;
5293
+ if (Object.keys(ce).length === 0) return;
5285
5294
  const Gt = en(et, Ot);
5286
5295
  if (Gt) {
5287
5296
  we("error"), Ue(Gt);
@@ -5289,26 +5298,26 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5289
5298
  }
5290
5299
  we("submitting"), Ue(null);
5291
5300
  try {
5292
- const It = await fetch(ro, {
5301
+ const kt = await fetch(oo, {
5293
5302
  method: "POST",
5294
5303
  headers: { "Content-Type": "application/json" },
5295
- body: JSON.stringify(se)
5304
+ body: JSON.stringify(ce)
5296
5305
  });
5297
- if (!It.ok) {
5298
- const ce = await It.text();
5299
- throw new Error(ce || `Request failed: ${It.status}`);
5306
+ if (!kt.ok) {
5307
+ const ue = await kt.text();
5308
+ throw new Error(ue || `Request failed: ${kt.status}`);
5300
5309
  }
5301
- we("success"), no(Object.fromEntries(et.map((ce) => [ce.name, ""])));
5302
- } catch (It) {
5303
- we("error"), Ue(It instanceof Error ? It.message : "Something went wrong");
5310
+ we("success"), eo(Object.fromEntries(et.map((ue) => [ue.name, ""])));
5311
+ } catch (kt) {
5312
+ we("error"), Ue(kt instanceof Error ? kt.message : "Something went wrong");
5304
5313
  }
5305
5314
  };
5306
- return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${br}`.trim(), style: wt, children: [
5307
- /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Tl(r) } }),
5315
+ return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${r}-type-${a} ${vr}`.trim(), style: wt, children: [
5316
+ /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: wl(r) } }),
5308
5317
  /* @__PURE__ */ St(
5309
5318
  "form",
5310
5319
  {
5311
- onSubmit: Sr,
5320
+ onSubmit: br,
5312
5321
  className: `${r}-form`,
5313
5322
  style: { gap: P(p ?? 0, e) },
5314
5323
  children: [
@@ -5317,15 +5326,15 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5317
5326
  {
5318
5327
  className: `${r}-fields`,
5319
5328
  style: { gap: P(s ?? 0, e) },
5320
- children: et.map((ct, se) => /* @__PURE__ */ St("div", { className: `${r}-field-group${G ? ` ${r}-labeled` : ""}`, children: [
5321
- G && /* @__PURE__ */ B("span", { className: `${r}-field-label`, style: $e ? { ...$e, lineHeight: $e.fontSize } : void 0, children: ct.label || ct.name }),
5329
+ children: et.map((ct, ce) => /* @__PURE__ */ St("div", { className: `${r}-field-group${G ? ` ${r}-labeled` : ""}`, children: [
5330
+ G && /* @__PURE__ */ B("span", { className: `${r}-field-label`, style: ft ? { ...ft, lineHeight: ft.fontSize } : void 0, children: ct.label || ct.name }),
5322
5331
  ct.type === "textarea" ? /* @__PURE__ */ B(
5323
5332
  "textarea",
5324
5333
  {
5325
5334
  name: ct.name,
5326
5335
  autoComplete: "off",
5327
5336
  value: Te[ct.name] ?? "",
5328
- onChange: (Gt) => io(ct.name, Gt.target.value),
5337
+ onChange: (Gt) => ro(ct.name, Gt.target.value),
5329
5338
  placeholder: ct.placeholder,
5330
5339
  className: `${r}-input`,
5331
5340
  style: Bt,
@@ -5340,7 +5349,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5340
5349
  name: ct.name,
5341
5350
  autoComplete: "off",
5342
5351
  value: Te[ct.name] ?? "",
5343
- onChange: (Gt) => io(ct.name, Gt.target.value),
5352
+ onChange: (Gt) => ro(ct.name, Gt.target.value),
5344
5353
  placeholder: ct.placeholder,
5345
5354
  required: ct.isRequired ?? ct.type === "email",
5346
5355
  className: `${r}-input`,
@@ -5348,7 +5357,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5348
5357
  "data-filled": (Te[ct.name] ?? "").trim().length > 0
5349
5358
  }
5350
5359
  )
5351
- ] }, se))
5360
+ ] }, ce))
5352
5361
  }
5353
5362
  ),
5354
5363
  /* @__PURE__ */ B("div", { className: `${r}-overlay-anchor`, children: /* @__PURE__ */ B(
@@ -5381,7 +5390,7 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5381
5390
  whiteSpace: "normal",
5382
5391
  textAlign: "center"
5383
5392
  } : void 0,
5384
- children: oo === "submitting" ? "..." : l
5393
+ children: no === "submitting" ? "..." : l
5385
5394
  }
5386
5395
  )
5387
5396
  }
@@ -5389,26 +5398,26 @@ function Ll({ settings: t, isEditor: e, metadata: n, activeEvent: o }) {
5389
5398
  ]
5390
5399
  }
5391
5400
  ),
5392
- Sn === "success" && /* @__PURE__ */ B(
5401
+ bn === "success" && /* @__PURE__ */ B(
5393
5402
  "p",
5394
5403
  {
5395
5404
  className: `${r}-success`,
5396
- style: { ...ht },
5405
+ style: { ...te },
5397
5406
  children: K
5398
5407
  }
5399
5408
  ),
5400
- Sn === "error" && /* @__PURE__ */ B(
5409
+ bn === "error" && /* @__PURE__ */ B(
5401
5410
  "p",
5402
5411
  {
5403
5412
  className: `${r}-error`,
5404
- style: { ...le },
5413
+ style: { ...te },
5405
5414
  role: "alert",
5406
- children: vr ?? yr ?? nt
5415
+ children: yr ?? hr ?? nt
5407
5416
  }
5408
5417
  )
5409
5418
  ] });
5410
5419
  }
5411
- const El = {
5420
+ const Ll = {
5412
5421
  inputColor: "input-color",
5413
5422
  inputTextColor: "input-text-color",
5414
5423
  inputBorderColor: "input-border-color",
@@ -5419,10 +5428,10 @@ const El = {
5419
5428
  labelTextColor: "label-text-color",
5420
5429
  successColor: "success-color",
5421
5430
  errorColor: "error-color"
5422
- }, Al = ["hover", "focus", "filled", "success", "error"], Il = `import React, { useState } from 'react';
5431
+ }, El = ["hover", "focus", "filled", "success", "error"], Al = `import React, { useState } from 'react';
5423
5432
  import { CommonComponentProps } from '../props';
5424
5433
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
5425
- import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
5434
+ import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
5426
5435
 
5427
5436
  function sv(px: number): string {
5428
5437
  return \`calc(var(--cntrl-article-width, 100vw) * \${px / 1440})\`;
@@ -5501,6 +5510,11 @@ function getCSS(P: string): string {
5501
5510
  color: var(--\${P}-filled-input-text-color, var(--\${P}-input-text-color));
5502
5511
  border-color: var(--\${P}-filled-input-border-color, var(--\${P}-input-border-color));
5503
5512
  }
5513
+ .\${P}-wrapper.\${P}-state-filled .\${P}-button {
5514
+ background-color: var(--\${P}-filled-button-color, var(--\${P}-button-color));
5515
+ color: var(--\${P}-filled-button-text-color, var(--\${P}-button-text-color));
5516
+ border-color: var(--\${P}-filled-button-border-color, var(--\${P}-button-border-color));
5517
+ }
5504
5518
  .\${P}-wrapper.\${P}-state-success .\${P}-input,
5505
5519
  .\${P}-wrapper.\${P}-state-success .\${P}-button {
5506
5520
  pointer-events: none;
@@ -5643,10 +5657,10 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5643
5657
  textAppearance: inputTextAppearance,
5644
5658
  color: inputTextColor,
5645
5659
  };
5646
- const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
5660
+ const inputTypographyCss = omitTextColors(textStylesToCss(resolvedInputTextStyle, isEditor));
5647
5661
  const strokeForInput = scalingValue(inputStroke ?? 0, isEditor);
5648
5662
  const inputFieldCss = {
5649
- ...inputCss,
5663
+ ...inputTypographyCss,
5650
5664
  borderStyle: 'solid',
5651
5665
  borderRadius: type === 'C' ? 0 : scalingValue(inputCorners ?? 0, isEditor),
5652
5666
  ...(type === 'C'
@@ -5676,7 +5690,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5676
5690
  textAppearance: buttonTextAppearance,
5677
5691
  color: buttonTextColor,
5678
5692
  };
5679
- const buttonTextCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
5693
+ const buttonTypographyCss = omitTextColors(textStylesToCss(resolvedButtonTextStyle, isEditor));
5680
5694
  const strokeForButton = scalingValue(buttonStroke ?? 0, isEditor);
5681
5695
 
5682
5696
  const resolvedLabelTextStyle: TextStyles = {
@@ -5707,8 +5721,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5707
5721
  textAppearance: statusTextAppearance,
5708
5722
  color: successColor,
5709
5723
  };
5710
- const statusTextCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
5711
- const { color: _statusMessageColor, ...statusTypographyCss } = statusTextCss;
5724
+ const statusTypographyCss = omitTextColors(textStylesToCss(resolvedStatusTextStyle, isEditor));
5712
5725
 
5713
5726
  const colorVars = buildColorVars(P, {
5714
5727
  inputColor,
@@ -5850,7 +5863,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5850
5863
  paddingRight: scalingValue(buttonPadding?.right ?? 0, isEditor),
5851
5864
  paddingBottom: scalingValue(buttonPadding?.bottom ?? 0, isEditor),
5852
5865
  paddingLeft: scalingValue(buttonPadding?.left ?? 0, isEditor),
5853
- ...buttonTextCss,
5866
+ ...buttonTypographyCss,
5854
5867
  ...(isButtonFullWidth
5855
5868
  ? {
5856
5869
  width: '100%',
@@ -5879,7 +5892,7 @@ export function Form({ settings, isEditor, metadata, activeEvent }: FormProps) {
5879
5892
  {displayStatus === 'success' && (
5880
5893
  <p
5881
5894
  className={\`\${P}-success\`}
5882
- style={{ ...statusTextCss }}
5895
+ style={{ ...statusTypographyCss }}
5883
5896
  >
5884
5897
  {successMessage}
5885
5898
  </p>
@@ -6014,7 +6027,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6014
6027
  fontStyle: { type: "string" }
6015
6028
  }
6016
6029
  }
6017
- }, Fl = [
6030
+ }, Il = [
6018
6031
  "inputColor",
6019
6032
  "inputTextColor",
6020
6033
  "inputBorderColor",
@@ -6025,7 +6038,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6025
6038
  "labelTextColor",
6026
6039
  "successColor",
6027
6040
  "errorColor"
6028
- ], Rl = {
6041
+ ], Fl = {
6029
6042
  type: "object",
6030
6043
  version: 1,
6031
6044
  settings: {
@@ -6367,7 +6380,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6367
6380
  type: "A",
6368
6381
  inputColor: "#FFFFFF",
6369
6382
  inputTextColor: "#0A00F8",
6370
- inputBorderColor: "#0A00F8",
6383
+ inputBorderColor: "#E2E2E2",
6371
6384
  placeholderColor: "#808080",
6372
6385
  buttonColor: "#0A00F8",
6373
6386
  buttonTextColor: "#ffffff",
@@ -6436,7 +6449,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6436
6449
  fieldsGap: 0.032,
6437
6450
  buttonStroke: 0,
6438
6451
  buttonCorners: 0.192,
6439
- inputStroke: 0,
6452
+ inputStroke: 3e-3,
6440
6453
  inputCorners: 0.192,
6441
6454
  buttonPadding: { top: 0.0373, right: 0.0373, bottom: 0.0373, left: 0.0373 },
6442
6455
  inputPadding: { top: 0.0373, right: 0.0373, bottom: 0.0373, left: 0.0373 },
@@ -6454,7 +6467,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6454
6467
  fieldsGap: 83e-4,
6455
6468
  buttonStroke: 0,
6456
6469
  buttonCorners: 0.05,
6457
- inputStroke: 0,
6470
+ inputStroke: 1e-3,
6458
6471
  inputCorners: 0.05,
6459
6472
  buttonPadding: { top: 0.01, right: 0.01, bottom: 0.01, left: 0.01 },
6460
6473
  inputPadding: { top: 0.01, right: 0.01, bottom: 0.01, left: 0.01 },
@@ -6605,7 +6618,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6605
6618
  }
6606
6619
  ],
6607
6620
  paletteBookmark: {
6608
- items: [...Fl],
6621
+ items: [...Il],
6609
6622
  panelIds: ["general", "typeStyle"],
6610
6623
  stateItems: {
6611
6624
  default: ["placeholderColor", "inputColor", "inputBorderColor", "buttonTextColor", "buttonColor", "buttonBorderColor", "labelTextColor"],
@@ -6618,8 +6631,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6618
6631
  },
6619
6632
  allowedPlugins: ["newsletter"],
6620
6633
  states: ["default", "hover", "focus", "filled", "success", "error"]
6621
- }, Bl = {
6622
- element: Ll,
6634
+ }, Rl = {
6635
+ element: Tl,
6623
6636
  id: "form",
6624
6637
  name: "Newsletter Stacked",
6625
6638
  preview: {
@@ -6631,13 +6644,13 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
6631
6644
  width: 300,
6632
6645
  height: 42
6633
6646
  },
6634
- schema: Rl,
6635
- sourceCode: Il
6647
+ schema: Fl,
6648
+ sourceCode: Al
6636
6649
  };
6637
6650
  function Ke(t) {
6638
6651
  return `calc(var(--cntrl-article-width, 100vw) * ${t / 1440})`;
6639
6652
  }
6640
- function Ol(t) {
6653
+ function Bl(t) {
6641
6654
  return `
6642
6655
  .${t}-wrapper {
6643
6656
  display: flex;
@@ -6831,8 +6844,8 @@ function Ol(t) {
6831
6844
  }
6832
6845
  `;
6833
6846
  }
6834
- const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6835
- const { prefix: r } = Eo(), {
6847
+ const Ol = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6848
+ const { prefix: r } = Lo(), {
6836
6849
  fields: a = [{ name: "email", type: "email", placeholder: "Your email" }],
6837
6850
  buttonContent: i,
6838
6851
  buttonLabel: c,
@@ -6853,9 +6866,9 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6853
6866
  statusFontSettings: w,
6854
6867
  statusFontSize: h,
6855
6868
  statusLineHeight: L,
6856
- statusLetterSpacing: k,
6869
+ statusLetterSpacing: I,
6857
6870
  statusWordSpacing: z,
6858
- statusTextAppearance: I,
6871
+ statusTextAppearance: k,
6859
6872
  minHeight: F,
6860
6873
  corners: O,
6861
6874
  stroke: D,
@@ -6865,8 +6878,8 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6865
6878
  successMessage: A = "Thanks for subscribing!",
6866
6879
  errorMessage: $ = "Please, fill all required fields."
6867
6880
  } = t, v = a.slice(0, Math.min(l, a.length)), [R, q] = it(
6868
- () => Object.fromEntries(v.map((ht) => [ht.name, ""]))
6869
- ), [ot, Z] = it("idle"), [ut, T] = it(null), X = o === "success" ? "success" : o === "error" ? "error" : ot, ft = o === "error" ? $ : ut, rt = o === "filled" ? Object.fromEntries(v.map((ht) => [ht.name, "Filled"])) : R, mt = X === "error" ? en(v, rt) : null, Ct = o && o !== "default" ? `${r}-state-${o}` : "", Ut = v.some((ht) => (rt[ht.name] ?? "").trim().length > 0), M = Ct !== `${r}-state-filled` && Ut ? `${r}-state-filled` : "", S = `${Ct} ${M}`.trim(), H = n == null ? void 0 : n.submitUrl, Y = c ?? "", K = (i == null ? void 0 : i.icon) ?? "", nt = (i == null ? void 0 : i.mode) === "On", Q = Y || "Submit", G = {
6881
+ () => Object.fromEntries(v.map((ft) => [ft.name, ""]))
6882
+ ), [ot, Z] = it("idle"), [ut, T] = it(null), X = o === "success" ? "success" : o === "error" ? "error" : ot, ht = o === "error" ? $ : ut, rt = o === "filled" ? Object.fromEntries(v.map((ft) => [ft.name, "Filled"])) : R, mt = X === "error" ? en(v, rt) : null, Ct = o && o !== "default" ? `${r}-state-${o}` : "", Ut = v.some((ft) => (rt[ft.name] ?? "").trim().length > 0), M = Ct !== `${r}-state-filled` && Ut ? `${r}-state-filled` : "", S = `${Ct} ${M}`.trim(), H = n == null ? void 0 : n.submitUrl, Y = c ?? "", K = (i == null ? void 0 : i.icon) ?? "", nt = (i == null ? void 0 : i.mode) === "On", Q = Y || "Submit", G = {
6870
6883
  fontSettings: {
6871
6884
  fontFamily: p,
6872
6885
  fontWeight: (s == null ? void 0 : s.fontWeight) ?? 400,
@@ -6898,11 +6911,11 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6898
6911
  },
6899
6912
  fontSize: h ?? 0.01,
6900
6913
  lineHeight: L,
6901
- letterSpacing: k ?? 0,
6914
+ letterSpacing: I ?? 0,
6902
6915
  wordSpacing: z ?? 0,
6903
- textAppearance: I,
6916
+ textAppearance: k,
6904
6917
  color: t.successColor ?? "#22c55e"
6905
- }, lt = ne(G, e), pt = ne(et, e), Bt = ne(vt, e), { color: tt, ...st } = Bt, _t = Ao(r, {
6918
+ }, lt = ve(oe(G, e)), pt = ve(oe(et, e)), Bt = ve(oe(vt, e)), tt = Eo(r, {
6906
6919
  strokeColor: t.strokeColor,
6907
6920
  inputColor: t.inputColor,
6908
6921
  placeholderColor: t.placeholderColor,
@@ -6911,13 +6924,13 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6911
6924
  errorColor: t.errorColor,
6912
6925
  inputTextColor: t.inputTextColor ?? (G == null ? void 0 : G.color) ?? "#111111",
6913
6926
  buttonTextColor: t.buttonTextColor ?? (et == null ? void 0 : et.color) ?? "#ffffff"
6914
- }, Nl, Wl, j), Yt = {
6927
+ }, Pl, Nl, j), st = {
6915
6928
  borderRadius: P(O, e),
6916
6929
  borderWidth: P(D, e),
6917
6930
  borderStyle: "solid"
6918
- }, $e = { borderLeftWidth: P(D, e) }, bn = async (ht) => {
6919
- ht.preventDefault();
6920
- const _e = Object.fromEntries(
6931
+ }, _t = { borderLeftWidth: P(D, e) }, Yt = async (ft) => {
6932
+ ft.preventDefault();
6933
+ const se = Object.fromEntries(
6921
6934
  v.map((wt) => {
6922
6935
  var Ot;
6923
6936
  return [wt.name, ((Ot = R[wt.name]) == null ? void 0 : Ot.trim()) ?? ""];
@@ -6927,10 +6940,10 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6927
6940
  Z("error"), T("No integrations were found for this form.");
6928
6941
  return;
6929
6942
  }
6930
- if (Object.keys(_e).length === 0) return;
6931
- const le = en(v, R);
6932
- if (le) {
6933
- Z("error"), T(le);
6943
+ if (Object.keys(se).length === 0) return;
6944
+ const te = en(v, R);
6945
+ if (te) {
6946
+ Z("error"), T(te);
6934
6947
  return;
6935
6948
  }
6936
6949
  Z("submitting"), T(null);
@@ -6938,7 +6951,7 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6938
6951
  const wt = await fetch(H, {
6939
6952
  method: "POST",
6940
6953
  headers: { "Content-Type": "application/json" },
6941
- body: JSON.stringify(_e)
6954
+ body: JSON.stringify(se)
6942
6955
  });
6943
6956
  if (!wt.ok) {
6944
6957
  const Ot = await wt.text();
@@ -6949,15 +6962,15 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6949
6962
  Z("error"), T(wt instanceof Error ? wt.message : "Something went wrong");
6950
6963
  }
6951
6964
  };
6952
- return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${S}`.trim(), style: _t, children: [
6953
- /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Ol(r) } }),
6965
+ return /* @__PURE__ */ St("div", { className: `${r}-wrapper ${S}`.trim(), style: tt, children: [
6966
+ /* @__PURE__ */ B("style", { dangerouslySetInnerHTML: { __html: Bl(r) } }),
6954
6967
  /* @__PURE__ */ St(
6955
6968
  "form",
6956
6969
  {
6957
- onSubmit: bn,
6970
+ onSubmit: Yt,
6958
6971
  className: `${r}-form`,
6959
6972
  style: {
6960
- ...Yt,
6973
+ ...st,
6961
6974
  height: P(F, e),
6962
6975
  minHeight: P(F, e)
6963
6976
  },
@@ -6967,16 +6980,16 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6967
6980
  {
6968
6981
  className: `${r}-inputWrap ${r}-overlayAnchor`,
6969
6982
  style: { flex: 1, minWidth: 0 },
6970
- children: v.map((ht) => /* @__PURE__ */ B(
6983
+ children: v.map((ft) => /* @__PURE__ */ B(
6971
6984
  "input",
6972
6985
  {
6973
- type: ht.type === "email" ? "email" : ht.type === "phone" ? "tel" : "text",
6974
- name: ht.name,
6986
+ type: ft.type === "email" ? "email" : ft.type === "phone" ? "tel" : "text",
6987
+ name: ft.name,
6975
6988
  autoComplete: "off",
6976
- value: rt[ht.name] ?? "",
6977
- onChange: (_e) => q((le) => ({ ...le, [ht.name]: _e.target.value })),
6978
- placeholder: ht.placeholder,
6979
- required: ht.isRequired ?? ht.type === "email",
6989
+ value: rt[ft.name] ?? "",
6990
+ onChange: (se) => q((te) => ({ ...te, [ft.name]: se.target.value })),
6991
+ placeholder: ft.placeholder,
6992
+ required: ft.isRequired ?? ft.type === "email",
6980
6993
  className: `${r}-input`,
6981
6994
  style: {
6982
6995
  ...lt,
@@ -6986,7 +6999,7 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6986
6999
  paddingBottom: P(g.bottom, e)
6987
7000
  }
6988
7001
  },
6989
- ht.name
7002
+ ft.name
6990
7003
  ))
6991
7004
  }
6992
7005
  ),
@@ -6998,14 +7011,14 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
6998
7011
  "aria-label": Q,
6999
7012
  style: {
7000
7013
  ...pt,
7001
- ...$e,
7014
+ ..._t,
7002
7015
  paddingRight: P(E.right, e),
7003
7016
  paddingLeft: P(E.left, e),
7004
7017
  paddingTop: P(E.top, e),
7005
7018
  paddingBottom: P(E.bottom, e)
7006
7019
  },
7007
7020
  children: ot === "submitting" ? "..." : nt ? K && /* @__PURE__ */ B(
7008
- he,
7021
+ ye,
7009
7022
  {
7010
7023
  url: K,
7011
7024
  className: `${r}-submitBtnIcon`,
@@ -7030,13 +7043,13 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
7030
7043
  "p",
7031
7044
  {
7032
7045
  className: `${r}-error`,
7033
- style: { ...st },
7046
+ style: { ...Bt },
7034
7047
  role: "alert",
7035
- children: mt ?? ft ?? $
7048
+ children: mt ?? ht ?? $
7036
7049
  }
7037
7050
  )
7038
7051
  ] });
7039
- }, Nl = {
7052
+ }, Pl = {
7040
7053
  strokeColor: "stroke-color",
7041
7054
  inputColor: "input-color",
7042
7055
  placeholderColor: "placeholder-color",
@@ -7045,10 +7058,10 @@ const Pl = ({ settings: t, isEditor: e, metadata: n, activeEvent: o }) => {
7045
7058
  buttonTextColor: "button-text-color",
7046
7059
  successColor: "success-color",
7047
7060
  errorColor: "error-color"
7048
- }, Wl = ["hover", "focus", "filled", "success", "error"], zl = `import React, { useState } from 'react';
7061
+ }, Nl = ["hover", "focus", "filled", "success", "error"], Wl = `import React, { useState } from 'react';
7049
7062
  import { CommonComponentProps } from '../props';
7050
7063
  import { buildColorVars, getFormFieldValidationError, scalingValue, useScopedStyles } from '../utils/index';
7051
- import { textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
7064
+ import { omitTextColors, textStylesToCss, type TextStyles } from '../utils/textStylesToCss';
7052
7065
  import { SvgImage } from '../helpers/SvgImage/SvgImage';
7053
7066
 
7054
7067
  function sv(px: number): string {
@@ -7364,10 +7377,9 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
7364
7377
  color: settings.successColor ?? '#22c55e',
7365
7378
  };
7366
7379
 
7367
- const inputCss = textStylesToCss(resolvedInputTextStyle, isEditor);
7368
- const buttonCss = textStylesToCss(resolvedButtonTextStyle, isEditor);
7369
- const statusCss = textStylesToCss(resolvedStatusTextStyle, isEditor);
7370
- const { color: _statusMessageColor, ...statusTypographyCss } = statusCss;
7380
+ const inputTypographyCss = omitTextColors(textStylesToCss(resolvedInputTextStyle, isEditor));
7381
+ const buttonTypographyCss = omitTextColors(textStylesToCss(resolvedButtonTextStyle, isEditor));
7382
+ const statusTypographyCss = omitTextColors(textStylesToCss(resolvedStatusTextStyle, isEditor));
7371
7383
  const colorVars = buildColorVars(P, {
7372
7384
  strokeColor: settings.strokeColor,
7373
7385
  inputColor: settings.inputColor,
@@ -7457,7 +7469,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
7457
7469
  required={field.isRequired ?? field.type === 'email'}
7458
7470
  className={\`\${P}-input\`}
7459
7471
  style={{
7460
- ...inputCss,
7472
+ ...inputTypographyCss,
7461
7473
  paddingRight: scalingValue(inputPadding.right, isEditor),
7462
7474
  paddingLeft: scalingValue(inputPadding.left, isEditor),
7463
7475
  paddingTop: scalingValue(inputPadding.top, isEditor),
@@ -7472,7 +7484,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
7472
7484
  className={\`\${P}-submitBtn\`}
7473
7485
  aria-label={submitAriaLabel}
7474
7486
  style={{
7475
- ...buttonCss,
7487
+ ...buttonTypographyCss,
7476
7488
  ...dividerWidthStyle,
7477
7489
  paddingRight: scalingValue(buttonPadding.right, isEditor),
7478
7490
  paddingLeft: scalingValue(buttonPadding.left, isEditor),
@@ -7498,7 +7510,7 @@ export const OnelinerForm = ({ settings, isEditor, metadata, activeEvent }: Onel
7498
7510
  {displayStatus === 'success' && (
7499
7511
  <p
7500
7512
  className={\`\${P}-success\`}
7501
- style={{ ...statusCss }}
7513
+ style={{ ...statusTypographyCss }}
7502
7514
  >
7503
7515
  {successMessage}
7504
7516
  </p>
@@ -7605,14 +7617,14 @@ const COLOR_VAR_MAP: Record<OnelinerColorKeys, string> = {
7605
7617
  };
7606
7618
 
7607
7619
  const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7608
- `, Ml = "data:image/svg+xml," + encodeURIComponent(
7620
+ `, zl = "data:image/svg+xml," + encodeURIComponent(
7609
7621
  '<svg xmlns="http://www.w3.org/2000/svg" width="6" height="9"><path fill="white" transform="translate(0.0625 0.0595703)" d="M0.18305826 0.18305826C0.40836075 -0.042244215 0.76288015 -0.059575174 1.0080621 0.13106538L1.0669417 0.18305826L4.8169417 3.9330583C5.0422444 4.158361 5.0595751 4.5128803 4.8689346 4.7580624L4.8169417 4.8169417L1.0669417 8.5669422C0.82286406 8.8110189 0.42713594 8.8110189 0.18305826 8.5669422C-0.042244215 8.3416395 -0.059575174 7.9871197 0.13106538 7.7419376L0.18305826 7.6830583L3.4906249 4.375L0.18305826 1.0669417C-0.042244215 0.84163928 -0.059575174 0.48711985 0.13106538 0.24193785L0.18305826 0.18305826Z" fill-rule="evenodd"/></svg>'
7610
- ), Vl = [
7622
+ ), Ml = [
7611
7623
  { name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
7612
7624
  { name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
7613
7625
  { name: "company", type: "text", placeholder: "Enter company", label: "Company", isRequired: !1, error: "Please, enter your company name." },
7614
7626
  { name: "phone", type: "phone", placeholder: "Enter your phone", label: "Phone", isRequired: !1, error: "Please, enter a valid phone number." }
7615
- ], Tn = {
7627
+ ], wn = {
7616
7628
  fontSettings: {
7617
7629
  type: "object",
7618
7630
  display: { type: "font-settings-weight", visible: !0 },
@@ -7621,7 +7633,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7621
7633
  fontStyle: { type: "string" }
7622
7634
  }
7623
7635
  }
7624
- }, Hl = [
7636
+ }, Vl = [
7625
7637
  "strokeColor",
7626
7638
  "inputColor",
7627
7639
  "inputTextColor",
@@ -7630,7 +7642,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7630
7642
  "buttonTextColor",
7631
7643
  "successColor",
7632
7644
  "errorColor"
7633
- ], Dl = {
7645
+ ], Hl = {
7634
7646
  type: "object",
7635
7647
  version: 1,
7636
7648
  settings: {
@@ -7790,7 +7802,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7790
7802
  scope: "common"
7791
7803
  },
7792
7804
  inputFontSettings: {
7793
- ...Tn.fontSettings,
7805
+ ...wn.fontSettings,
7794
7806
  scope: "common",
7795
7807
  title: "Input"
7796
7808
  },
@@ -7825,7 +7837,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7825
7837
  display: { type: "text-appearance" }
7826
7838
  },
7827
7839
  buttonFontSettings: {
7828
- ...Tn.fontSettings,
7840
+ ...wn.fontSettings,
7829
7841
  scope: "common",
7830
7842
  title: "Button"
7831
7843
  },
@@ -7860,7 +7872,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7860
7872
  display: { type: "text-appearance" }
7861
7873
  },
7862
7874
  statusFontSettings: {
7863
- ...Tn.fontSettings,
7875
+ ...wn.fontSettings,
7864
7876
  scope: "common",
7865
7877
  title: "Success/Error"
7866
7878
  },
@@ -7896,12 +7908,12 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
7896
7908
  }
7897
7909
  },
7898
7910
  defaults: {
7899
- fields: Vl,
7911
+ fields: Ml,
7900
7912
  fieldsToShow: 1,
7901
7913
  buttonLabel: "Subscribe",
7902
7914
  buttonContent: {
7903
7915
  mode: "Off",
7904
- icon: Ml
7916
+ icon: zl
7905
7917
  },
7906
7918
  fontFamily: "Arial",
7907
7919
  strokeColor: "#0A00F8",
@@ -8072,7 +8084,7 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
8072
8084
  }
8073
8085
  ],
8074
8086
  paletteBookmark: {
8075
- items: [...Hl],
8087
+ items: [...Vl],
8076
8088
  panelIds: ["general", "typeStyle"],
8077
8089
  stateItems: {
8078
8090
  default: ["strokeColor", "placeholderColor", "inputColor", "buttonTextColor", "buttonColor"],
@@ -8085,8 +8097,8 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
8085
8097
  },
8086
8098
  allowedPlugins: ["newsletter"],
8087
8099
  states: ["default", "hover", "focus", "filled", "success", "error"]
8088
- }, jl = {
8089
- element: Pl,
8100
+ }, Dl = {
8101
+ element: Ol,
8090
8102
  id: "oneliner-form",
8091
8103
  name: "Newsletter Single Line",
8092
8104
  version: 1,
@@ -8098,16 +8110,16 @@ const STATE_KEYS = ['hover', 'focus', 'filled', 'success', 'error'] as const;
8098
8110
  width: 400,
8099
8111
  height: 60
8100
8112
  },
8101
- schema: Dl,
8102
- sourceCode: zl
8103
- }, Zl = [
8104
- Ia,
8105
- Na,
8106
- wl,
8107
- Bl,
8108
- jl
8113
+ schema: Hl,
8114
+ sourceCode: Wl
8115
+ }, Jl = [
8116
+ Aa,
8117
+ Pa,
8118
+ _l,
8119
+ Rl,
8120
+ Dl
8109
8121
  ];
8110
8122
  export {
8111
- Zl as components,
8112
- Jl as isSchemaV1
8123
+ Jl as components,
8124
+ Kl as isSchemaV1
8113
8125
  };