@redhq/ui 1.5.0 → 1.7.0
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.cjs.js +2 -2
- package/dist/index.es.js +807 -807
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import ie, { createContext as ye, useContext as
|
|
1
|
+
import { jsx as $, jsxs as cr } from "react/jsx-runtime";
|
|
2
|
+
import ie, { createContext as ye, useContext as de, useState as be, useCallback as cn, useRef as oe, useLayoutEffect as yt, useMemo as un, forwardRef as ur, useEffect as mt } from "react";
|
|
3
3
|
function fn(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var Ge = { exports: {} }, je = { exports: {} }, ee = {};
|
|
7
|
+
var jt;
|
|
8
8
|
function pn() {
|
|
9
|
-
if (
|
|
10
|
-
|
|
11
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111,
|
|
9
|
+
if (jt) return ee;
|
|
10
|
+
jt = 1;
|
|
11
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, T = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, u = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
12
12
|
function v(y) {
|
|
13
13
|
if (typeof y == "object" && y !== null) {
|
|
14
14
|
var A = y.$$typeof;
|
|
@@ -16,11 +16,11 @@ function pn() {
|
|
|
16
16
|
case r:
|
|
17
17
|
switch (y = y.type, y) {
|
|
18
18
|
case a:
|
|
19
|
-
case
|
|
19
|
+
case d:
|
|
20
20
|
case n:
|
|
21
21
|
case s:
|
|
22
22
|
case i:
|
|
23
|
-
case
|
|
23
|
+
case c:
|
|
24
24
|
return y;
|
|
25
25
|
default:
|
|
26
26
|
switch (y = y && y.$$typeof, y) {
|
|
@@ -39,12 +39,12 @@ function pn() {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return v(y) ===
|
|
42
|
+
function E(y) {
|
|
43
|
+
return v(y) === d;
|
|
44
44
|
}
|
|
45
|
-
return ee.AsyncMode = a, ee.ConcurrentMode =
|
|
46
|
-
return
|
|
47
|
-
}, ee.isConcurrentMode =
|
|
45
|
+
return ee.AsyncMode = a, ee.ConcurrentMode = d, ee.ContextConsumer = l, ee.ContextProvider = o, ee.Element = r, ee.ForwardRef = p, ee.Fragment = n, ee.Lazy = g, ee.Memo = f, ee.Portal = t, ee.Profiler = s, ee.StrictMode = i, ee.Suspense = c, ee.isAsyncMode = function(y) {
|
|
46
|
+
return E(y) || v(y) === a;
|
|
47
|
+
}, ee.isConcurrentMode = E, ee.isContextConsumer = function(y) {
|
|
48
48
|
return v(y) === l;
|
|
49
49
|
}, ee.isContextProvider = function(y) {
|
|
50
50
|
return v(y) === o;
|
|
@@ -65,43 +65,43 @@ function pn() {
|
|
|
65
65
|
}, ee.isStrictMode = function(y) {
|
|
66
66
|
return v(y) === i;
|
|
67
67
|
}, ee.isSuspense = function(y) {
|
|
68
|
-
return v(y) ===
|
|
68
|
+
return v(y) === c;
|
|
69
69
|
}, ee.isValidElementType = function(y) {
|
|
70
|
-
return typeof y == "string" || typeof y == "function" || y === n || y ===
|
|
70
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === d || y === s || y === i || y === c || y === T || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === f || y.$$typeof === o || y.$$typeof === l || y.$$typeof === p || y.$$typeof === x || y.$$typeof === u || y.$$typeof === m || y.$$typeof === b);
|
|
71
71
|
}, ee.typeOf = v, ee;
|
|
72
72
|
}
|
|
73
73
|
var te = {};
|
|
74
74
|
var Ft;
|
|
75
75
|
function mn() {
|
|
76
76
|
return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
77
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111,
|
|
77
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, T = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, u = e ? Symbol.for("react.responder") : 60118, m = e ? Symbol.for("react.scope") : 60119;
|
|
78
78
|
function v(z) {
|
|
79
79
|
return typeof z == "string" || typeof z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
80
|
-
z === n || z ===
|
|
80
|
+
z === n || z === d || z === s || z === i || z === c || z === T || typeof z == "object" && z !== null && (z.$$typeof === g || z.$$typeof === f || z.$$typeof === o || z.$$typeof === l || z.$$typeof === p || z.$$typeof === x || z.$$typeof === u || z.$$typeof === m || z.$$typeof === b);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function E(z) {
|
|
83
83
|
if (typeof z == "object" && z !== null) {
|
|
84
84
|
var ue = z.$$typeof;
|
|
85
85
|
switch (ue) {
|
|
86
86
|
case r:
|
|
87
|
-
var
|
|
88
|
-
switch (
|
|
87
|
+
var $e = z.type;
|
|
88
|
+
switch ($e) {
|
|
89
89
|
case a:
|
|
90
|
-
case
|
|
90
|
+
case d:
|
|
91
91
|
case n:
|
|
92
92
|
case s:
|
|
93
93
|
case i:
|
|
94
|
-
case
|
|
95
|
-
return
|
|
94
|
+
case c:
|
|
95
|
+
return $e;
|
|
96
96
|
default:
|
|
97
|
-
var
|
|
98
|
-
switch (
|
|
97
|
+
var Gt = $e && $e.$$typeof;
|
|
98
|
+
switch (Gt) {
|
|
99
99
|
case l:
|
|
100
100
|
case p:
|
|
101
101
|
case g:
|
|
102
102
|
case f:
|
|
103
103
|
case o:
|
|
104
|
-
return
|
|
104
|
+
return Gt;
|
|
105
105
|
default:
|
|
106
106
|
return ue;
|
|
107
107
|
}
|
|
@@ -111,52 +111,52 @@ function mn() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
var y = a, A =
|
|
115
|
-
function
|
|
116
|
-
return S || (S = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(z) ||
|
|
114
|
+
var y = a, A = d, L = l, h = o, _ = r, O = p, k = n, R = g, F = f, V = t, Q = s, w = i, M = c, S = !1;
|
|
115
|
+
function q(z) {
|
|
116
|
+
return S || (S = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(z) || E(z) === a;
|
|
117
117
|
}
|
|
118
118
|
function C(z) {
|
|
119
|
-
return
|
|
119
|
+
return E(z) === d;
|
|
120
120
|
}
|
|
121
121
|
function I(z) {
|
|
122
|
-
return
|
|
122
|
+
return E(z) === l;
|
|
123
123
|
}
|
|
124
124
|
function H(z) {
|
|
125
|
-
return
|
|
125
|
+
return E(z) === o;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function B(z) {
|
|
128
128
|
return typeof z == "object" && z !== null && z.$$typeof === r;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function G(z) {
|
|
131
|
+
return E(z) === p;
|
|
132
132
|
}
|
|
133
133
|
function X(z) {
|
|
134
|
-
return
|
|
134
|
+
return E(z) === n;
|
|
135
135
|
}
|
|
136
136
|
function W(z) {
|
|
137
|
-
return
|
|
137
|
+
return E(z) === g;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
139
|
+
function j(z) {
|
|
140
|
+
return E(z) === f;
|
|
141
141
|
}
|
|
142
142
|
function J(z) {
|
|
143
|
-
return
|
|
143
|
+
return E(z) === t;
|
|
144
144
|
}
|
|
145
145
|
function Z(z) {
|
|
146
|
-
return
|
|
146
|
+
return E(z) === s;
|
|
147
147
|
}
|
|
148
148
|
function U(z) {
|
|
149
|
-
return
|
|
149
|
+
return E(z) === i;
|
|
150
150
|
}
|
|
151
151
|
function se(z) {
|
|
152
|
-
return
|
|
152
|
+
return E(z) === c;
|
|
153
153
|
}
|
|
154
|
-
te.AsyncMode = y, te.ConcurrentMode = A, te.ContextConsumer = L, te.ContextProvider = h, te.Element = _, te.ForwardRef = O, te.Fragment = k, te.Lazy = R, te.Memo = F, te.Portal = V, te.Profiler = Q, te.StrictMode =
|
|
154
|
+
te.AsyncMode = y, te.ConcurrentMode = A, te.ContextConsumer = L, te.ContextProvider = h, te.Element = _, te.ForwardRef = O, te.Fragment = k, te.Lazy = R, te.Memo = F, te.Portal = V, te.Profiler = Q, te.StrictMode = w, te.Suspense = M, te.isAsyncMode = q, te.isConcurrentMode = C, te.isContextConsumer = I, te.isContextProvider = H, te.isElement = B, te.isForwardRef = G, te.isFragment = X, te.isLazy = W, te.isMemo = j, te.isPortal = J, te.isProfiler = Z, te.isStrictMode = U, te.isSuspense = se, te.isValidElementType = v, te.typeOf = E;
|
|
155
155
|
})()), te;
|
|
156
156
|
}
|
|
157
157
|
var Vt;
|
|
158
158
|
function fr() {
|
|
159
|
-
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ?
|
|
159
|
+
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ? je.exports = pn() : je.exports = mn()), je.exports;
|
|
160
160
|
}
|
|
161
161
|
var Qe, Ht;
|
|
162
162
|
function gn() {
|
|
@@ -182,23 +182,23 @@ function gn() {
|
|
|
182
182
|
});
|
|
183
183
|
if (a.join("") !== "0123456789")
|
|
184
184
|
return !1;
|
|
185
|
-
var
|
|
185
|
+
var d = {};
|
|
186
186
|
return "abcdefghijklmnopqrst".split("").forEach(function(p) {
|
|
187
|
-
|
|
188
|
-
}), Object.keys(Object.assign({},
|
|
187
|
+
d[p] = p;
|
|
188
|
+
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
189
189
|
} catch {
|
|
190
190
|
return !1;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
return Qe = i() ? Object.assign : function(s, o) {
|
|
194
|
-
for (var l, a = n(s),
|
|
194
|
+
for (var l, a = n(s), d, p = 1; p < arguments.length; p++) {
|
|
195
195
|
l = Object(arguments[p]);
|
|
196
|
-
for (var
|
|
197
|
-
r.call(l,
|
|
196
|
+
for (var c in l)
|
|
197
|
+
r.call(l, c) && (a[c] = l[c]);
|
|
198
198
|
if (e) {
|
|
199
|
-
|
|
200
|
-
for (var T = 0; T <
|
|
201
|
-
t.call(l,
|
|
199
|
+
d = e(l);
|
|
200
|
+
for (var T = 0; T < d.length; T++)
|
|
201
|
+
t.call(l, d[T]) && (a[d[T]] = l[d[T]]);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
return a;
|
|
@@ -232,11 +232,11 @@ function hn() {
|
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
function i(s, o, l, a,
|
|
235
|
+
function i(s, o, l, a, d) {
|
|
236
236
|
if (process.env.NODE_ENV !== "production") {
|
|
237
237
|
for (var p in s)
|
|
238
238
|
if (n(s, p)) {
|
|
239
|
-
var
|
|
239
|
+
var c;
|
|
240
240
|
try {
|
|
241
241
|
if (typeof s[p] != "function") {
|
|
242
242
|
var T = Error(
|
|
@@ -244,17 +244,17 @@ function hn() {
|
|
|
244
244
|
);
|
|
245
245
|
throw T.name = "Invariant Violation", T;
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
c = s[p](o, p, a, l, null, r);
|
|
248
248
|
} catch (g) {
|
|
249
|
-
|
|
249
|
+
c = g;
|
|
250
250
|
}
|
|
251
|
-
if (
|
|
252
|
-
(a || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
253
|
-
),
|
|
254
|
-
t[
|
|
255
|
-
var f =
|
|
251
|
+
if (c && !(c instanceof Error) && e(
|
|
252
|
+
(a || "React class") + ": type specification of " + l + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
253
|
+
), c instanceof Error && !(c.message in t)) {
|
|
254
|
+
t[c.message] = !0;
|
|
255
|
+
var f = d ? d() : "";
|
|
256
256
|
e(
|
|
257
|
-
"Failed " + l + " type: " +
|
|
257
|
+
"Failed " + l + " type: " + c.message + (f ?? "")
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
@@ -282,9 +282,9 @@ function vn() {
|
|
|
282
282
|
return null;
|
|
283
283
|
}
|
|
284
284
|
return nt = function(l, a) {
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
var I = C && (
|
|
285
|
+
var d = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
286
|
+
function c(C) {
|
|
287
|
+
var I = C && (d && C[d] || C[p]);
|
|
288
288
|
if (typeof I == "function")
|
|
289
289
|
return I;
|
|
290
290
|
}
|
|
@@ -299,7 +299,7 @@ function vn() {
|
|
|
299
299
|
symbol: u("symbol"),
|
|
300
300
|
any: m(),
|
|
301
301
|
arrayOf: v,
|
|
302
|
-
element:
|
|
302
|
+
element: E(),
|
|
303
303
|
elementType: y(),
|
|
304
304
|
instanceOf: A,
|
|
305
305
|
node: O(),
|
|
@@ -319,33 +319,33 @@ function vn() {
|
|
|
319
319
|
function x(C) {
|
|
320
320
|
if (process.env.NODE_ENV !== "production")
|
|
321
321
|
var I = {}, H = 0;
|
|
322
|
-
function
|
|
323
|
-
if (J = J || T, U = U ||
|
|
322
|
+
function B(X, W, j, J, Z, U, se) {
|
|
323
|
+
if (J = J || T, U = U || j, se !== t) {
|
|
324
324
|
if (a) {
|
|
325
325
|
var z = new Error(
|
|
326
326
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
327
327
|
);
|
|
328
328
|
throw z.name = "Invariant Violation", z;
|
|
329
329
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
330
|
-
var ue = J + ":" +
|
|
330
|
+
var ue = J + ":" + j;
|
|
331
331
|
!I[ue] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
332
332
|
H < 3 && (s(
|
|
333
333
|
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + J + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
334
334
|
), I[ue] = !0, H++);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
return W[
|
|
337
|
+
return W[j] == null ? X ? W[j] === null ? new b("The " + Z + " `" + U + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new b("The " + Z + " `" + U + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : C(W, j, J, Z, U);
|
|
338
338
|
}
|
|
339
|
-
var
|
|
340
|
-
return
|
|
339
|
+
var G = B.bind(null, !1);
|
|
340
|
+
return G.isRequired = B.bind(null, !0), G;
|
|
341
341
|
}
|
|
342
342
|
function u(C) {
|
|
343
|
-
function I(H,
|
|
344
|
-
var J = H[
|
|
343
|
+
function I(H, B, G, X, W, j) {
|
|
344
|
+
var J = H[B], Z = w(J);
|
|
345
345
|
if (Z !== C) {
|
|
346
346
|
var U = M(J);
|
|
347
347
|
return new b(
|
|
348
|
-
"Invalid " + X + " `" + W + "` of type " + ("`" + U + "` supplied to `" +
|
|
348
|
+
"Invalid " + X + " `" + W + "` of type " + ("`" + U + "` supplied to `" + G + "`, expected ") + ("`" + C + "`."),
|
|
349
349
|
{ expectedType: C }
|
|
350
350
|
);
|
|
351
351
|
}
|
|
@@ -357,16 +357,16 @@ function vn() {
|
|
|
357
357
|
return x(o);
|
|
358
358
|
}
|
|
359
359
|
function v(C) {
|
|
360
|
-
function I(H,
|
|
360
|
+
function I(H, B, G, X, W) {
|
|
361
361
|
if (typeof C != "function")
|
|
362
|
-
return new b("Property `" + W + "` of component `" +
|
|
363
|
-
var
|
|
364
|
-
if (!Array.isArray(
|
|
365
|
-
var J =
|
|
366
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" +
|
|
362
|
+
return new b("Property `" + W + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
363
|
+
var j = H[B];
|
|
364
|
+
if (!Array.isArray(j)) {
|
|
365
|
+
var J = w(j);
|
|
366
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + G + "`, expected an array."));
|
|
367
367
|
}
|
|
368
|
-
for (var Z = 0; Z <
|
|
369
|
-
var U = C(
|
|
368
|
+
for (var Z = 0; Z < j.length; Z++) {
|
|
369
|
+
var U = C(j, Z, G, X, W + "[" + Z + "]", t);
|
|
370
370
|
if (U instanceof Error)
|
|
371
371
|
return U;
|
|
372
372
|
}
|
|
@@ -374,33 +374,33 @@ function vn() {
|
|
|
374
374
|
}
|
|
375
375
|
return x(I);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
function C(I, H,
|
|
377
|
+
function E() {
|
|
378
|
+
function C(I, H, B, G, X) {
|
|
379
379
|
var W = I[H];
|
|
380
380
|
if (!l(W)) {
|
|
381
|
-
var
|
|
382
|
-
return new b("Invalid " +
|
|
381
|
+
var j = w(W);
|
|
382
|
+
return new b("Invalid " + G + " `" + X + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
383
383
|
}
|
|
384
384
|
return null;
|
|
385
385
|
}
|
|
386
386
|
return x(C);
|
|
387
387
|
}
|
|
388
388
|
function y() {
|
|
389
|
-
function C(I, H,
|
|
389
|
+
function C(I, H, B, G, X) {
|
|
390
390
|
var W = I[H];
|
|
391
391
|
if (!e.isValidElementType(W)) {
|
|
392
|
-
var
|
|
393
|
-
return new b("Invalid " +
|
|
392
|
+
var j = w(W);
|
|
393
|
+
return new b("Invalid " + G + " `" + X + "` of type " + ("`" + j + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
394
394
|
}
|
|
395
395
|
return null;
|
|
396
396
|
}
|
|
397
397
|
return x(C);
|
|
398
398
|
}
|
|
399
399
|
function A(C) {
|
|
400
|
-
function I(H,
|
|
401
|
-
if (!(H[
|
|
402
|
-
var
|
|
403
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" +
|
|
400
|
+
function I(H, B, G, X, W) {
|
|
401
|
+
if (!(H[B] instanceof C)) {
|
|
402
|
+
var j = C.name || T, J = q(H[B]);
|
|
403
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + G + "`, expected ") + ("instance of `" + j + "`."));
|
|
404
404
|
}
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
@@ -411,28 +411,28 @@ function vn() {
|
|
|
411
411
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
412
412
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
413
413
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
414
|
-
function I(H,
|
|
415
|
-
for (var
|
|
416
|
-
if (g(
|
|
414
|
+
function I(H, B, G, X, W) {
|
|
415
|
+
for (var j = H[B], J = 0; J < C.length; J++)
|
|
416
|
+
if (g(j, C[J]))
|
|
417
417
|
return null;
|
|
418
418
|
var Z = JSON.stringify(C, function(se, z) {
|
|
419
419
|
var ue = M(z);
|
|
420
420
|
return ue === "symbol" ? String(z) : z;
|
|
421
421
|
});
|
|
422
|
-
return new b("Invalid " + X + " `" + W + "` of value `" + String(
|
|
422
|
+
return new b("Invalid " + X + " `" + W + "` of value `" + String(j) + "` " + ("supplied to `" + G + "`, expected one of " + Z + "."));
|
|
423
423
|
}
|
|
424
424
|
return x(I);
|
|
425
425
|
}
|
|
426
426
|
function h(C) {
|
|
427
|
-
function I(H,
|
|
427
|
+
function I(H, B, G, X, W) {
|
|
428
428
|
if (typeof C != "function")
|
|
429
|
-
return new b("Property `" + W + "` of component `" +
|
|
430
|
-
var
|
|
429
|
+
return new b("Property `" + W + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
430
|
+
var j = H[B], J = w(j);
|
|
431
431
|
if (J !== "object")
|
|
432
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" +
|
|
433
|
-
for (var Z in
|
|
434
|
-
if (n(
|
|
435
|
-
var U = C(
|
|
432
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + G + "`, expected an object."));
|
|
433
|
+
for (var Z in j)
|
|
434
|
+
if (n(j, Z)) {
|
|
435
|
+
var U = C(j, Z, G, X, W + "." + Z, t);
|
|
436
436
|
if (U instanceof Error)
|
|
437
437
|
return U;
|
|
438
438
|
}
|
|
@@ -450,39 +450,39 @@ function vn() {
|
|
|
450
450
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + S(H) + " at index " + I + "."
|
|
451
451
|
), o;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function B(G, X, W, j, J) {
|
|
454
454
|
for (var Z = [], U = 0; U < C.length; U++) {
|
|
455
|
-
var se = C[U], z = se(
|
|
455
|
+
var se = C[U], z = se(G, X, W, j, J, t);
|
|
456
456
|
if (z == null)
|
|
457
457
|
return null;
|
|
458
458
|
z.data && n(z.data, "expectedType") && Z.push(z.data.expectedType);
|
|
459
459
|
}
|
|
460
460
|
var ue = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
461
|
-
return new b("Invalid " +
|
|
461
|
+
return new b("Invalid " + j + " `" + J + "` supplied to " + ("`" + W + "`" + ue + "."));
|
|
462
462
|
}
|
|
463
|
-
return x(
|
|
463
|
+
return x(B);
|
|
464
464
|
}
|
|
465
465
|
function O() {
|
|
466
|
-
function C(I, H,
|
|
467
|
-
return V(I[H]) ? null : new b("Invalid " +
|
|
466
|
+
function C(I, H, B, G, X) {
|
|
467
|
+
return V(I[H]) ? null : new b("Invalid " + G + " `" + X + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
468
468
|
}
|
|
469
469
|
return x(C);
|
|
470
470
|
}
|
|
471
|
-
function k(C, I, H,
|
|
471
|
+
function k(C, I, H, B, G) {
|
|
472
472
|
return new b(
|
|
473
|
-
(C || "React class") + ": " + I + " type `" + H + "." +
|
|
473
|
+
(C || "React class") + ": " + I + " type `" + H + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
476
|
function R(C) {
|
|
477
|
-
function I(H,
|
|
478
|
-
var
|
|
477
|
+
function I(H, B, G, X, W) {
|
|
478
|
+
var j = H[B], J = w(j);
|
|
479
479
|
if (J !== "object")
|
|
480
|
-
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" +
|
|
480
|
+
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
481
481
|
for (var Z in C) {
|
|
482
482
|
var U = C[Z];
|
|
483
483
|
if (typeof U != "function")
|
|
484
|
-
return k(
|
|
485
|
-
var se = U(
|
|
484
|
+
return k(G, X, W, Z, M(U));
|
|
485
|
+
var se = U(j, Z, G, X, W + "." + Z, t);
|
|
486
486
|
if (se)
|
|
487
487
|
return se;
|
|
488
488
|
}
|
|
@@ -491,21 +491,21 @@ function vn() {
|
|
|
491
491
|
return x(I);
|
|
492
492
|
}
|
|
493
493
|
function F(C) {
|
|
494
|
-
function I(H,
|
|
495
|
-
var
|
|
494
|
+
function I(H, B, G, X, W) {
|
|
495
|
+
var j = H[B], J = w(j);
|
|
496
496
|
if (J !== "object")
|
|
497
|
-
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" +
|
|
498
|
-
var Z = r({}, H[
|
|
497
|
+
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
498
|
+
var Z = r({}, H[B], C);
|
|
499
499
|
for (var U in Z) {
|
|
500
500
|
var se = C[U];
|
|
501
501
|
if (n(C, U) && typeof se != "function")
|
|
502
|
-
return k(
|
|
502
|
+
return k(G, X, W, U, M(se));
|
|
503
503
|
if (!se)
|
|
504
504
|
return new b(
|
|
505
|
-
"Invalid " + X + " `" + W + "` key `" + U + "` supplied to `" +
|
|
505
|
+
"Invalid " + X + " `" + W + "` key `" + U + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(H[B], null, " ") + `
|
|
506
506
|
Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
507
507
|
);
|
|
508
|
-
var z = se(
|
|
508
|
+
var z = se(j, U, G, X, W + "." + U, t);
|
|
509
509
|
if (z)
|
|
510
510
|
return z;
|
|
511
511
|
}
|
|
@@ -526,17 +526,17 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
526
526
|
return C.every(V);
|
|
527
527
|
if (C === null || l(C))
|
|
528
528
|
return !0;
|
|
529
|
-
var I =
|
|
529
|
+
var I = c(C);
|
|
530
530
|
if (I) {
|
|
531
|
-
var H = I.call(C),
|
|
531
|
+
var H = I.call(C), B;
|
|
532
532
|
if (I !== C.entries) {
|
|
533
|
-
for (; !(
|
|
534
|
-
if (!V(
|
|
533
|
+
for (; !(B = H.next()).done; )
|
|
534
|
+
if (!V(B.value))
|
|
535
535
|
return !1;
|
|
536
536
|
} else
|
|
537
|
-
for (; !(
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
537
|
+
for (; !(B = H.next()).done; ) {
|
|
538
|
+
var G = B.value;
|
|
539
|
+
if (G && !V(G[1]))
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
542
|
} else
|
|
@@ -549,14 +549,14 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
549
549
|
function Q(C, I) {
|
|
550
550
|
return C === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function w(C) {
|
|
553
553
|
var I = typeof C;
|
|
554
554
|
return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : Q(I, C) ? "symbol" : I;
|
|
555
555
|
}
|
|
556
556
|
function M(C) {
|
|
557
557
|
if (typeof C > "u" || C === null)
|
|
558
558
|
return "" + C;
|
|
559
|
-
var I =
|
|
559
|
+
var I = w(C);
|
|
560
560
|
if (I === "object") {
|
|
561
561
|
if (C instanceof Date)
|
|
562
562
|
return "date";
|
|
@@ -579,7 +579,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
579
579
|
return I;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function q(C) {
|
|
583
583
|
return !C.constructor || !C.constructor.name ? T : C.constructor.name;
|
|
584
584
|
}
|
|
585
585
|
return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
|
|
@@ -595,8 +595,8 @@ function bn() {
|
|
|
595
595
|
function t() {
|
|
596
596
|
}
|
|
597
597
|
return t.resetWarningCache = r, it = function() {
|
|
598
|
-
function n(o, l, a,
|
|
599
|
-
if (
|
|
598
|
+
function n(o, l, a, d, p, c) {
|
|
599
|
+
if (c !== e) {
|
|
600
600
|
var T = new Error(
|
|
601
601
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
602
602
|
);
|
|
@@ -635,13 +635,13 @@ function bn() {
|
|
|
635
635
|
}
|
|
636
636
|
var Jt;
|
|
637
637
|
function yn() {
|
|
638
|
-
if (Jt) return
|
|
638
|
+
if (Jt) return Ge.exports;
|
|
639
639
|
if (Jt = 1, process.env.NODE_ENV !== "production") {
|
|
640
640
|
var e = fr(), r = !0;
|
|
641
|
-
|
|
641
|
+
Ge.exports = /* @__PURE__ */ vn()(e.isElement, r);
|
|
642
642
|
} else
|
|
643
|
-
|
|
644
|
-
return
|
|
643
|
+
Ge.exports = /* @__PURE__ */ bn()();
|
|
644
|
+
return Ge.exports;
|
|
645
645
|
}
|
|
646
646
|
var xn = /* @__PURE__ */ yn();
|
|
647
647
|
const P = /* @__PURE__ */ fn(xn);
|
|
@@ -665,14 +665,14 @@ const Tn = (e, r) => {
|
|
|
665
665
|
for (let n = 0; n < r.length; n++)
|
|
666
666
|
t[e.length + n] = r[n];
|
|
667
667
|
return t;
|
|
668
|
-
},
|
|
668
|
+
}, wn = (e, r) => ({
|
|
669
669
|
classGroupId: e,
|
|
670
670
|
validator: r
|
|
671
671
|
}), gr = (e = /* @__PURE__ */ new Map(), r = null, t) => ({
|
|
672
672
|
nextPart: e,
|
|
673
673
|
validators: r,
|
|
674
674
|
classGroupId: t
|
|
675
|
-
}), Xe = "-", Zt = [],
|
|
675
|
+
}), Xe = "-", Zt = [], En = "arbitrary..", Cn = (e) => {
|
|
676
676
|
const r = Pn(e), {
|
|
677
677
|
conflictingClassGroups: t,
|
|
678
678
|
conflictingClassGroupModifiers: n
|
|
@@ -686,8 +686,8 @@ const Tn = (e, r) => {
|
|
|
686
686
|
},
|
|
687
687
|
getConflictingClassGroupIds: (o, l) => {
|
|
688
688
|
if (l) {
|
|
689
|
-
const a = n[o],
|
|
690
|
-
return a ?
|
|
689
|
+
const a = n[o], d = t[o];
|
|
690
|
+
return a ? d ? Tn(d, a) : a : d || Zt;
|
|
691
691
|
}
|
|
692
692
|
return t[o] || Zt;
|
|
693
693
|
}
|
|
@@ -697,21 +697,21 @@ const Tn = (e, r) => {
|
|
|
697
697
|
return t.classGroupId;
|
|
698
698
|
const i = e[r], s = t.nextPart.get(i);
|
|
699
699
|
if (s) {
|
|
700
|
-
const
|
|
701
|
-
if (
|
|
700
|
+
const d = hr(e, r + 1, s);
|
|
701
|
+
if (d) return d;
|
|
702
702
|
}
|
|
703
703
|
const o = t.validators;
|
|
704
704
|
if (o === null)
|
|
705
705
|
return;
|
|
706
706
|
const l = r === 0 ? e.join(Xe) : e.slice(r).join(Xe), a = o.length;
|
|
707
|
-
for (let
|
|
708
|
-
const p = o[
|
|
707
|
+
for (let d = 0; d < a; d++) {
|
|
708
|
+
const p = o[d];
|
|
709
709
|
if (p.validator(l))
|
|
710
710
|
return p.classGroupId;
|
|
711
711
|
}
|
|
712
712
|
}, Mn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
713
713
|
const r = e.slice(1, -1), t = r.indexOf(":"), n = r.slice(0, t);
|
|
714
|
-
return n ?
|
|
714
|
+
return n ? En + n : void 0;
|
|
715
715
|
})(), Pn = (e) => {
|
|
716
716
|
const {
|
|
717
717
|
theme: r,
|
|
@@ -749,7 +749,7 @@ const Tn = (e, r) => {
|
|
|
749
749
|
St(e(n), r, t, n);
|
|
750
750
|
return;
|
|
751
751
|
}
|
|
752
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
752
|
+
r.validators === null && (r.validators = []), r.validators.push(wn(t, e));
|
|
753
753
|
}, An = (e, r, t, n) => {
|
|
754
754
|
const i = Object.entries(e), s = i.length;
|
|
755
755
|
for (let o = 0; o < s; o++) {
|
|
@@ -802,7 +802,7 @@ const Tn = (e, r) => {
|
|
|
802
802
|
} = e;
|
|
803
803
|
let n = (i) => {
|
|
804
804
|
const s = [];
|
|
805
|
-
let o = 0, l = 0, a = 0,
|
|
805
|
+
let o = 0, l = 0, a = 0, d;
|
|
806
806
|
const p = i.length;
|
|
807
807
|
for (let b = 0; b < p; b++) {
|
|
808
808
|
const x = i[b];
|
|
@@ -812,22 +812,22 @@ const Tn = (e, r) => {
|
|
|
812
812
|
continue;
|
|
813
813
|
}
|
|
814
814
|
if (x === "/") {
|
|
815
|
-
|
|
815
|
+
d = b;
|
|
816
816
|
continue;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
x === "[" ? o++ : x === "]" ? o-- : x === "(" ? l++ : x === ")" && l--;
|
|
820
820
|
}
|
|
821
|
-
const
|
|
822
|
-
let T =
|
|
823
|
-
|
|
821
|
+
const c = s.length === 0 ? i : i.slice(a);
|
|
822
|
+
let T = c, f = !1;
|
|
823
|
+
c.endsWith(gt) ? (T = c.slice(0, -1), f = !0) : (
|
|
824
824
|
/**
|
|
825
825
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
826
826
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
827
827
|
*/
|
|
828
|
-
|
|
828
|
+
c.startsWith(gt) && (T = c.slice(1), f = !0)
|
|
829
829
|
);
|
|
830
|
-
const g =
|
|
830
|
+
const g = d && d > a ? d - a : void 0;
|
|
831
831
|
return er(s, f, T, g);
|
|
832
832
|
};
|
|
833
833
|
if (r) {
|
|
@@ -855,28 +855,28 @@ const Tn = (e, r) => {
|
|
|
855
855
|
}
|
|
856
856
|
return i.length > 0 && (i.sort(), n.push(...i)), n;
|
|
857
857
|
};
|
|
858
|
-
},
|
|
858
|
+
}, qn = (e) => ({
|
|
859
859
|
cache: zn(e.cacheSize),
|
|
860
860
|
parseClassName: Nn(e),
|
|
861
861
|
sortModifiers: Dn(e),
|
|
862
862
|
...Cn(e)
|
|
863
|
-
}),
|
|
863
|
+
}), Bn = /\s+/, $n = (e, r) => {
|
|
864
864
|
const {
|
|
865
865
|
parseClassName: t,
|
|
866
866
|
getClassGroupId: n,
|
|
867
867
|
getConflictingClassGroupIds: i,
|
|
868
868
|
sortModifiers: s
|
|
869
|
-
} = r, o = [], l = e.trim().split(
|
|
869
|
+
} = r, o = [], l = e.trim().split(Bn);
|
|
870
870
|
let a = "";
|
|
871
|
-
for (let
|
|
872
|
-
const p = l[
|
|
873
|
-
isExternal:
|
|
871
|
+
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
872
|
+
const p = l[d], {
|
|
873
|
+
isExternal: c,
|
|
874
874
|
modifiers: T,
|
|
875
875
|
hasImportantModifier: f,
|
|
876
876
|
baseClassName: g,
|
|
877
877
|
maybePostfixModifierPosition: b
|
|
878
878
|
} = t(p);
|
|
879
|
-
if (
|
|
879
|
+
if (c) {
|
|
880
880
|
a = p + (a.length > 0 ? " " + a : a);
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
@@ -892,10 +892,10 @@ const Tn = (e, r) => {
|
|
|
892
892
|
}
|
|
893
893
|
x = !1;
|
|
894
894
|
}
|
|
895
|
-
const m = T.length === 0 ? "" : T.length === 1 ? T[0] : s(T).join(":"), v = f ? m + gt : m,
|
|
896
|
-
if (o.indexOf(
|
|
895
|
+
const m = T.length === 0 ? "" : T.length === 1 ? T[0] : s(T).join(":"), v = f ? m + gt : m, E = v + u;
|
|
896
|
+
if (o.indexOf(E) > -1)
|
|
897
897
|
continue;
|
|
898
|
-
o.push(
|
|
898
|
+
o.push(E);
|
|
899
899
|
const y = i(u, x);
|
|
900
900
|
for (let A = 0; A < y.length; ++A) {
|
|
901
901
|
const L = y[A];
|
|
@@ -904,7 +904,7 @@ const Tn = (e, r) => {
|
|
|
904
904
|
a = p + (a.length > 0 ? " " + a : a);
|
|
905
905
|
}
|
|
906
906
|
return a;
|
|
907
|
-
},
|
|
907
|
+
}, Gn = (...e) => {
|
|
908
908
|
let r = 0, t, n, i = "";
|
|
909
909
|
for (; r < e.length; )
|
|
910
910
|
(t = e[r++]) && (n = br(t)) && (i && (i += " "), i += n);
|
|
@@ -916,35 +916,35 @@ const Tn = (e, r) => {
|
|
|
916
916
|
for (let n = 0; n < e.length; n++)
|
|
917
917
|
e[n] && (r = br(e[n])) && (t && (t += " "), t += r);
|
|
918
918
|
return t;
|
|
919
|
-
},
|
|
919
|
+
}, jn = (e, ...r) => {
|
|
920
920
|
let t, n, i, s;
|
|
921
921
|
const o = (a) => {
|
|
922
|
-
const
|
|
923
|
-
return t =
|
|
922
|
+
const d = r.reduce((p, c) => c(p), e());
|
|
923
|
+
return t = qn(d), n = t.cache.get, i = t.cache.set, s = l, l(a);
|
|
924
924
|
}, l = (a) => {
|
|
925
|
-
const
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
928
|
-
const p =
|
|
925
|
+
const d = n(a);
|
|
926
|
+
if (d)
|
|
927
|
+
return d;
|
|
928
|
+
const p = $n(a, t);
|
|
929
929
|
return i(a, p), p;
|
|
930
930
|
};
|
|
931
|
-
return s = o, (...a) => s(
|
|
931
|
+
return s = o, (...a) => s(Gn(...a));
|
|
932
932
|
}, Fn = [], ne = (e) => {
|
|
933
933
|
const r = (t) => t[e] || Fn;
|
|
934
934
|
return r.isThemeGetter = !0, r;
|
|
935
|
-
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vn = /^\d+\/\d+$/, Hn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Un = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
935
|
+
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Vn = /^\d+\/\d+$/, Hn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Yn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Xn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Un = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ee = (e) => Vn.test(e), Y = (e) => !!e && !Number.isNaN(Number(e)), ge = (e) => !!e && Number.isInteger(Number(e)), st = (e) => e.endsWith("%") && Y(e.slice(0, -1)), pe = (e) => Hn.test(e), Kn = () => !0, Jn = (e) => (
|
|
936
936
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
937
937
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
938
938
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
939
939
|
Wn.test(e) && !Yn.test(e)
|
|
940
|
-
), Sr = () => !1, Zn = (e) => Xn.test(e), Qn = (e) => Un.test(e), ei = (e) => !N(e) && !D(e), ti = (e) => Oe(e,
|
|
940
|
+
), Sr = () => !1, Zn = (e) => Xn.test(e), Qn = (e) => Un.test(e), ei = (e) => !N(e) && !D(e), ti = (e) => Oe(e, Er, Sr), N = (e) => yr.test(e), xe = (e) => Oe(e, Cr, Jn), at = (e) => Oe(e, ai, Y), tr = (e) => Oe(e, Tr, Sr), ri = (e) => Oe(e, wr, Qn), Fe = (e) => Oe(e, Mr, Zn), D = (e) => xr.test(e), Re = (e) => ke(e, Cr), ni = (e) => ke(e, oi), rr = (e) => ke(e, Tr), ii = (e) => ke(e, Er), si = (e) => ke(e, wr), Ve = (e) => ke(e, Mr, !0), Oe = (e, r, t) => {
|
|
941
941
|
const n = yr.exec(e);
|
|
942
942
|
return n ? n[1] ? r(n[1]) : t(n[2]) : !1;
|
|
943
943
|
}, ke = (e, r, t = !1) => {
|
|
944
944
|
const n = xr.exec(e);
|
|
945
945
|
return n ? n[1] ? r(n[1]) : t : !1;
|
|
946
|
-
}, Tr = (e) => e === "position" || e === "percentage",
|
|
947
|
-
const e = ne("color"), r = ne("font"), t = ne("text"), n = ne("font-weight"), i = ne("tracking"), s = ne("leading"), o = ne("breakpoint"), l = ne("container"), a = ne("spacing"),
|
|
946
|
+
}, Tr = (e) => e === "position" || e === "percentage", wr = (e) => e === "image" || e === "url", Er = (e) => e === "length" || e === "size" || e === "bg-size", Cr = (e) => e === "length", ai = (e) => e === "number", oi = (e) => e === "family-name", Mr = (e) => e === "shadow", li = () => {
|
|
947
|
+
const e = ne("color"), r = ne("font"), t = ne("text"), n = ne("font-weight"), i = ne("tracking"), s = ne("leading"), o = ne("breakpoint"), l = ne("container"), a = ne("spacing"), d = ne("radius"), p = ne("shadow"), c = ne("inset-shadow"), T = ne("text-shadow"), f = ne("drop-shadow"), g = ne("blur"), b = ne("perspective"), x = ne("aspect"), u = ne("ease"), m = ne("animate"), v = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
|
|
948
948
|
"center",
|
|
949
949
|
"top",
|
|
950
950
|
"bottom",
|
|
@@ -962,30 +962,30 @@ const Tn = (e, r) => {
|
|
|
962
962
|
"bottom-left",
|
|
963
963
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
964
964
|
"left-bottom"
|
|
965
|
-
], y = () => [...
|
|
965
|
+
], y = () => [...E(), D, N], A = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], h = () => [D, N, a], _ = () => [Ee, "full", "auto", ...h()], O = () => [ge, "none", "subgrid", D, N], k = () => ["auto", {
|
|
966
966
|
span: ["full", ge, D, N]
|
|
967
|
-
}, ge, D, N], R = () => [ge, "auto", D, N], F = () => ["auto", "min", "max", "fr", D, N], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"],
|
|
967
|
+
}, ge, D, N], R = () => [ge, "auto", D, N], F = () => ["auto", "min", "max", "fr", D, N], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], w = () => ["auto", ...h()], M = () => [Ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], S = () => [e, D, N], q = () => [...E(), rr, tr, {
|
|
968
968
|
position: [D, N]
|
|
969
969
|
}], C = () => ["no-repeat", {
|
|
970
970
|
repeat: ["", "x", "y", "space", "round"]
|
|
971
971
|
}], I = () => ["auto", "cover", "contain", ii, ti, {
|
|
972
972
|
size: [D, N]
|
|
973
|
-
}], H = () => [st, Re, xe],
|
|
973
|
+
}], H = () => [st, Re, xe], B = () => [
|
|
974
974
|
// Deprecated since Tailwind CSS v4.0.0
|
|
975
975
|
"",
|
|
976
976
|
"none",
|
|
977
977
|
"full",
|
|
978
|
-
|
|
978
|
+
d,
|
|
979
979
|
D,
|
|
980
980
|
N
|
|
981
|
-
],
|
|
981
|
+
], G = () => ["", Y, Re, xe], X = () => ["solid", "dashed", "dotted", "double"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => [Y, st, rr, tr], J = () => [
|
|
982
982
|
// Deprecated since Tailwind CSS v4.0.0
|
|
983
983
|
"",
|
|
984
984
|
"none",
|
|
985
985
|
g,
|
|
986
986
|
D,
|
|
987
987
|
N
|
|
988
|
-
], Z = () => ["none", Y, D, N], U = () => ["none", Y, D, N], se = () => [Y, D, N], z = () => [
|
|
988
|
+
], Z = () => ["none", Y, D, N], U = () => ["none", Y, D, N], se = () => [Y, D, N], z = () => [Ee, "full", ...h()];
|
|
989
989
|
return {
|
|
990
990
|
cacheSize: 500,
|
|
991
991
|
theme: {
|
|
@@ -1018,7 +1018,7 @@ const Tn = (e, r) => {
|
|
|
1018
1018
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1019
1019
|
*/
|
|
1020
1020
|
aspect: [{
|
|
1021
|
-
aspect: ["auto", "square",
|
|
1021
|
+
aspect: ["auto", "square", Ee, N, D, x]
|
|
1022
1022
|
}],
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Container
|
|
@@ -1241,7 +1241,7 @@ const Tn = (e, r) => {
|
|
|
1241
1241
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1242
1242
|
*/
|
|
1243
1243
|
basis: [{
|
|
1244
|
-
basis: [
|
|
1244
|
+
basis: [Ee, "full", "auto", l, ...h()]
|
|
1245
1245
|
}],
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Flex Direction
|
|
@@ -1262,7 +1262,7 @@ const Tn = (e, r) => {
|
|
|
1262
1262
|
* @see https://tailwindcss.com/docs/flex
|
|
1263
1263
|
*/
|
|
1264
1264
|
flex: [{
|
|
1265
|
-
flex: [Y,
|
|
1265
|
+
flex: [Y, Ee, "auto", "initial", "none", N]
|
|
1266
1266
|
}],
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Flex Grow
|
|
@@ -1519,63 +1519,63 @@ const Tn = (e, r) => {
|
|
|
1519
1519
|
* @see https://tailwindcss.com/docs/margin
|
|
1520
1520
|
*/
|
|
1521
1521
|
m: [{
|
|
1522
|
-
m:
|
|
1522
|
+
m: w()
|
|
1523
1523
|
}],
|
|
1524
1524
|
/**
|
|
1525
1525
|
* Margin X
|
|
1526
1526
|
* @see https://tailwindcss.com/docs/margin
|
|
1527
1527
|
*/
|
|
1528
1528
|
mx: [{
|
|
1529
|
-
mx:
|
|
1529
|
+
mx: w()
|
|
1530
1530
|
}],
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Margin Y
|
|
1533
1533
|
* @see https://tailwindcss.com/docs/margin
|
|
1534
1534
|
*/
|
|
1535
1535
|
my: [{
|
|
1536
|
-
my:
|
|
1536
|
+
my: w()
|
|
1537
1537
|
}],
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Margin Start
|
|
1540
1540
|
* @see https://tailwindcss.com/docs/margin
|
|
1541
1541
|
*/
|
|
1542
1542
|
ms: [{
|
|
1543
|
-
ms:
|
|
1543
|
+
ms: w()
|
|
1544
1544
|
}],
|
|
1545
1545
|
/**
|
|
1546
1546
|
* Margin End
|
|
1547
1547
|
* @see https://tailwindcss.com/docs/margin
|
|
1548
1548
|
*/
|
|
1549
1549
|
me: [{
|
|
1550
|
-
me:
|
|
1550
|
+
me: w()
|
|
1551
1551
|
}],
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Margin Top
|
|
1554
1554
|
* @see https://tailwindcss.com/docs/margin
|
|
1555
1555
|
*/
|
|
1556
1556
|
mt: [{
|
|
1557
|
-
mt:
|
|
1557
|
+
mt: w()
|
|
1558
1558
|
}],
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Margin Right
|
|
1561
1561
|
* @see https://tailwindcss.com/docs/margin
|
|
1562
1562
|
*/
|
|
1563
1563
|
mr: [{
|
|
1564
|
-
mr:
|
|
1564
|
+
mr: w()
|
|
1565
1565
|
}],
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Margin Bottom
|
|
1568
1568
|
* @see https://tailwindcss.com/docs/margin
|
|
1569
1569
|
*/
|
|
1570
1570
|
mb: [{
|
|
1571
|
-
mb:
|
|
1571
|
+
mb: w()
|
|
1572
1572
|
}],
|
|
1573
1573
|
/**
|
|
1574
1574
|
* Margin Left
|
|
1575
1575
|
* @see https://tailwindcss.com/docs/margin
|
|
1576
1576
|
*/
|
|
1577
1577
|
ml: [{
|
|
1578
|
-
ml:
|
|
1578
|
+
ml: w()
|
|
1579
1579
|
}],
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Space Between X
|
|
@@ -1937,7 +1937,7 @@ const Tn = (e, r) => {
|
|
|
1937
1937
|
* @see https://tailwindcss.com/docs/background-position
|
|
1938
1938
|
*/
|
|
1939
1939
|
"bg-position": [{
|
|
1940
|
-
bg:
|
|
1940
|
+
bg: q()
|
|
1941
1941
|
}],
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Background Repeat
|
|
@@ -2023,175 +2023,175 @@ const Tn = (e, r) => {
|
|
|
2023
2023
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2024
2024
|
*/
|
|
2025
2025
|
rounded: [{
|
|
2026
|
-
rounded:
|
|
2026
|
+
rounded: B()
|
|
2027
2027
|
}],
|
|
2028
2028
|
/**
|
|
2029
2029
|
* Border Radius Start
|
|
2030
2030
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2031
2031
|
*/
|
|
2032
2032
|
"rounded-s": [{
|
|
2033
|
-
"rounded-s":
|
|
2033
|
+
"rounded-s": B()
|
|
2034
2034
|
}],
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Border Radius End
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2038
2038
|
*/
|
|
2039
2039
|
"rounded-e": [{
|
|
2040
|
-
"rounded-e":
|
|
2040
|
+
"rounded-e": B()
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Border Radius Top
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2045
2045
|
*/
|
|
2046
2046
|
"rounded-t": [{
|
|
2047
|
-
"rounded-t":
|
|
2047
|
+
"rounded-t": B()
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Border Radius Right
|
|
2051
2051
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2052
2052
|
*/
|
|
2053
2053
|
"rounded-r": [{
|
|
2054
|
-
"rounded-r":
|
|
2054
|
+
"rounded-r": B()
|
|
2055
2055
|
}],
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Border Radius Bottom
|
|
2058
2058
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2059
2059
|
*/
|
|
2060
2060
|
"rounded-b": [{
|
|
2061
|
-
"rounded-b":
|
|
2061
|
+
"rounded-b": B()
|
|
2062
2062
|
}],
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Border Radius Left
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2066
2066
|
*/
|
|
2067
2067
|
"rounded-l": [{
|
|
2068
|
-
"rounded-l":
|
|
2068
|
+
"rounded-l": B()
|
|
2069
2069
|
}],
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Border Radius Start Start
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2073
2073
|
*/
|
|
2074
2074
|
"rounded-ss": [{
|
|
2075
|
-
"rounded-ss":
|
|
2075
|
+
"rounded-ss": B()
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Border Radius Start End
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2080
2080
|
*/
|
|
2081
2081
|
"rounded-se": [{
|
|
2082
|
-
"rounded-se":
|
|
2082
|
+
"rounded-se": B()
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Border Radius End End
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2087
2087
|
*/
|
|
2088
2088
|
"rounded-ee": [{
|
|
2089
|
-
"rounded-ee":
|
|
2089
|
+
"rounded-ee": B()
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Border Radius End Start
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2094
2094
|
*/
|
|
2095
2095
|
"rounded-es": [{
|
|
2096
|
-
"rounded-es":
|
|
2096
|
+
"rounded-es": B()
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Border Radius Top Left
|
|
2100
2100
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2101
2101
|
*/
|
|
2102
2102
|
"rounded-tl": [{
|
|
2103
|
-
"rounded-tl":
|
|
2103
|
+
"rounded-tl": B()
|
|
2104
2104
|
}],
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Border Radius Top Right
|
|
2107
2107
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2108
2108
|
*/
|
|
2109
2109
|
"rounded-tr": [{
|
|
2110
|
-
"rounded-tr":
|
|
2110
|
+
"rounded-tr": B()
|
|
2111
2111
|
}],
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Border Radius Bottom Right
|
|
2114
2114
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2115
2115
|
*/
|
|
2116
2116
|
"rounded-br": [{
|
|
2117
|
-
"rounded-br":
|
|
2117
|
+
"rounded-br": B()
|
|
2118
2118
|
}],
|
|
2119
2119
|
/**
|
|
2120
2120
|
* Border Radius Bottom Left
|
|
2121
2121
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2122
2122
|
*/
|
|
2123
2123
|
"rounded-bl": [{
|
|
2124
|
-
"rounded-bl":
|
|
2124
|
+
"rounded-bl": B()
|
|
2125
2125
|
}],
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Border Width
|
|
2128
2128
|
* @see https://tailwindcss.com/docs/border-width
|
|
2129
2129
|
*/
|
|
2130
2130
|
"border-w": [{
|
|
2131
|
-
border:
|
|
2131
|
+
border: G()
|
|
2132
2132
|
}],
|
|
2133
2133
|
/**
|
|
2134
2134
|
* Border Width X
|
|
2135
2135
|
* @see https://tailwindcss.com/docs/border-width
|
|
2136
2136
|
*/
|
|
2137
2137
|
"border-w-x": [{
|
|
2138
|
-
"border-x":
|
|
2138
|
+
"border-x": G()
|
|
2139
2139
|
}],
|
|
2140
2140
|
/**
|
|
2141
2141
|
* Border Width Y
|
|
2142
2142
|
* @see https://tailwindcss.com/docs/border-width
|
|
2143
2143
|
*/
|
|
2144
2144
|
"border-w-y": [{
|
|
2145
|
-
"border-y":
|
|
2145
|
+
"border-y": G()
|
|
2146
2146
|
}],
|
|
2147
2147
|
/**
|
|
2148
2148
|
* Border Width Start
|
|
2149
2149
|
* @see https://tailwindcss.com/docs/border-width
|
|
2150
2150
|
*/
|
|
2151
2151
|
"border-w-s": [{
|
|
2152
|
-
"border-s":
|
|
2152
|
+
"border-s": G()
|
|
2153
2153
|
}],
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Border Width End
|
|
2156
2156
|
* @see https://tailwindcss.com/docs/border-width
|
|
2157
2157
|
*/
|
|
2158
2158
|
"border-w-e": [{
|
|
2159
|
-
"border-e":
|
|
2159
|
+
"border-e": G()
|
|
2160
2160
|
}],
|
|
2161
2161
|
/**
|
|
2162
2162
|
* Border Width Top
|
|
2163
2163
|
* @see https://tailwindcss.com/docs/border-width
|
|
2164
2164
|
*/
|
|
2165
2165
|
"border-w-t": [{
|
|
2166
|
-
"border-t":
|
|
2166
|
+
"border-t": G()
|
|
2167
2167
|
}],
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Border Width Right
|
|
2170
2170
|
* @see https://tailwindcss.com/docs/border-width
|
|
2171
2171
|
*/
|
|
2172
2172
|
"border-w-r": [{
|
|
2173
|
-
"border-r":
|
|
2173
|
+
"border-r": G()
|
|
2174
2174
|
}],
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Border Width Bottom
|
|
2177
2177
|
* @see https://tailwindcss.com/docs/border-width
|
|
2178
2178
|
*/
|
|
2179
2179
|
"border-w-b": [{
|
|
2180
|
-
"border-b":
|
|
2180
|
+
"border-b": G()
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
2183
2183
|
* Border Width Left
|
|
2184
2184
|
* @see https://tailwindcss.com/docs/border-width
|
|
2185
2185
|
*/
|
|
2186
2186
|
"border-w-l": [{
|
|
2187
|
-
"border-l":
|
|
2187
|
+
"border-l": G()
|
|
2188
2188
|
}],
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Divide Width X
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2192
2192
|
*/
|
|
2193
2193
|
"divide-x": [{
|
|
2194
|
-
"divide-x":
|
|
2194
|
+
"divide-x": G()
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Divide Width X Reverse
|
|
@@ -2203,7 +2203,7 @@ const Tn = (e, r) => {
|
|
|
2203
2203
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2204
2204
|
*/
|
|
2205
2205
|
"divide-y": [{
|
|
2206
|
-
"divide-y":
|
|
2206
|
+
"divide-y": G()
|
|
2207
2207
|
}],
|
|
2208
2208
|
/**
|
|
2209
2209
|
* Divide Width Y Reverse
|
|
@@ -2351,7 +2351,7 @@ const Tn = (e, r) => {
|
|
|
2351
2351
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2352
2352
|
*/
|
|
2353
2353
|
"inset-shadow": [{
|
|
2354
|
-
"inset-shadow": ["none",
|
|
2354
|
+
"inset-shadow": ["none", c, Ve, Fe]
|
|
2355
2355
|
}],
|
|
2356
2356
|
/**
|
|
2357
2357
|
* Inset Box Shadow Color
|
|
@@ -2365,7 +2365,7 @@ const Tn = (e, r) => {
|
|
|
2365
2365
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2366
2366
|
*/
|
|
2367
2367
|
"ring-w": [{
|
|
2368
|
-
ring:
|
|
2368
|
+
ring: G()
|
|
2369
2369
|
}],
|
|
2370
2370
|
/**
|
|
2371
2371
|
* Ring Width Inset
|
|
@@ -2404,7 +2404,7 @@ const Tn = (e, r) => {
|
|
|
2404
2404
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2405
2405
|
*/
|
|
2406
2406
|
"inset-ring-w": [{
|
|
2407
|
-
"inset-ring":
|
|
2407
|
+
"inset-ring": G()
|
|
2408
2408
|
}],
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Inset Ring Color
|
|
@@ -2470,10 +2470,10 @@ const Tn = (e, r) => {
|
|
|
2470
2470
|
"mask-linear": [Y]
|
|
2471
2471
|
}],
|
|
2472
2472
|
"mask-image-linear-from-pos": [{
|
|
2473
|
-
"mask-linear-from":
|
|
2473
|
+
"mask-linear-from": j()
|
|
2474
2474
|
}],
|
|
2475
2475
|
"mask-image-linear-to-pos": [{
|
|
2476
|
-
"mask-linear-to":
|
|
2476
|
+
"mask-linear-to": j()
|
|
2477
2477
|
}],
|
|
2478
2478
|
"mask-image-linear-from-color": [{
|
|
2479
2479
|
"mask-linear-from": S()
|
|
@@ -2482,10 +2482,10 @@ const Tn = (e, r) => {
|
|
|
2482
2482
|
"mask-linear-to": S()
|
|
2483
2483
|
}],
|
|
2484
2484
|
"mask-image-t-from-pos": [{
|
|
2485
|
-
"mask-t-from":
|
|
2485
|
+
"mask-t-from": j()
|
|
2486
2486
|
}],
|
|
2487
2487
|
"mask-image-t-to-pos": [{
|
|
2488
|
-
"mask-t-to":
|
|
2488
|
+
"mask-t-to": j()
|
|
2489
2489
|
}],
|
|
2490
2490
|
"mask-image-t-from-color": [{
|
|
2491
2491
|
"mask-t-from": S()
|
|
@@ -2494,10 +2494,10 @@ const Tn = (e, r) => {
|
|
|
2494
2494
|
"mask-t-to": S()
|
|
2495
2495
|
}],
|
|
2496
2496
|
"mask-image-r-from-pos": [{
|
|
2497
|
-
"mask-r-from":
|
|
2497
|
+
"mask-r-from": j()
|
|
2498
2498
|
}],
|
|
2499
2499
|
"mask-image-r-to-pos": [{
|
|
2500
|
-
"mask-r-to":
|
|
2500
|
+
"mask-r-to": j()
|
|
2501
2501
|
}],
|
|
2502
2502
|
"mask-image-r-from-color": [{
|
|
2503
2503
|
"mask-r-from": S()
|
|
@@ -2506,10 +2506,10 @@ const Tn = (e, r) => {
|
|
|
2506
2506
|
"mask-r-to": S()
|
|
2507
2507
|
}],
|
|
2508
2508
|
"mask-image-b-from-pos": [{
|
|
2509
|
-
"mask-b-from":
|
|
2509
|
+
"mask-b-from": j()
|
|
2510
2510
|
}],
|
|
2511
2511
|
"mask-image-b-to-pos": [{
|
|
2512
|
-
"mask-b-to":
|
|
2512
|
+
"mask-b-to": j()
|
|
2513
2513
|
}],
|
|
2514
2514
|
"mask-image-b-from-color": [{
|
|
2515
2515
|
"mask-b-from": S()
|
|
@@ -2518,10 +2518,10 @@ const Tn = (e, r) => {
|
|
|
2518
2518
|
"mask-b-to": S()
|
|
2519
2519
|
}],
|
|
2520
2520
|
"mask-image-l-from-pos": [{
|
|
2521
|
-
"mask-l-from":
|
|
2521
|
+
"mask-l-from": j()
|
|
2522
2522
|
}],
|
|
2523
2523
|
"mask-image-l-to-pos": [{
|
|
2524
|
-
"mask-l-to":
|
|
2524
|
+
"mask-l-to": j()
|
|
2525
2525
|
}],
|
|
2526
2526
|
"mask-image-l-from-color": [{
|
|
2527
2527
|
"mask-l-from": S()
|
|
@@ -2530,10 +2530,10 @@ const Tn = (e, r) => {
|
|
|
2530
2530
|
"mask-l-to": S()
|
|
2531
2531
|
}],
|
|
2532
2532
|
"mask-image-x-from-pos": [{
|
|
2533
|
-
"mask-x-from":
|
|
2533
|
+
"mask-x-from": j()
|
|
2534
2534
|
}],
|
|
2535
2535
|
"mask-image-x-to-pos": [{
|
|
2536
|
-
"mask-x-to":
|
|
2536
|
+
"mask-x-to": j()
|
|
2537
2537
|
}],
|
|
2538
2538
|
"mask-image-x-from-color": [{
|
|
2539
2539
|
"mask-x-from": S()
|
|
@@ -2542,10 +2542,10 @@ const Tn = (e, r) => {
|
|
|
2542
2542
|
"mask-x-to": S()
|
|
2543
2543
|
}],
|
|
2544
2544
|
"mask-image-y-from-pos": [{
|
|
2545
|
-
"mask-y-from":
|
|
2545
|
+
"mask-y-from": j()
|
|
2546
2546
|
}],
|
|
2547
2547
|
"mask-image-y-to-pos": [{
|
|
2548
|
-
"mask-y-to":
|
|
2548
|
+
"mask-y-to": j()
|
|
2549
2549
|
}],
|
|
2550
2550
|
"mask-image-y-from-color": [{
|
|
2551
2551
|
"mask-y-from": S()
|
|
@@ -2557,10 +2557,10 @@ const Tn = (e, r) => {
|
|
|
2557
2557
|
"mask-radial": [D, N]
|
|
2558
2558
|
}],
|
|
2559
2559
|
"mask-image-radial-from-pos": [{
|
|
2560
|
-
"mask-radial-from":
|
|
2560
|
+
"mask-radial-from": j()
|
|
2561
2561
|
}],
|
|
2562
2562
|
"mask-image-radial-to-pos": [{
|
|
2563
|
-
"mask-radial-to":
|
|
2563
|
+
"mask-radial-to": j()
|
|
2564
2564
|
}],
|
|
2565
2565
|
"mask-image-radial-from-color": [{
|
|
2566
2566
|
"mask-radial-from": S()
|
|
@@ -2578,16 +2578,16 @@ const Tn = (e, r) => {
|
|
|
2578
2578
|
}]
|
|
2579
2579
|
}],
|
|
2580
2580
|
"mask-image-radial-pos": [{
|
|
2581
|
-
"mask-radial-at":
|
|
2581
|
+
"mask-radial-at": E()
|
|
2582
2582
|
}],
|
|
2583
2583
|
"mask-image-conic-pos": [{
|
|
2584
2584
|
"mask-conic": [Y]
|
|
2585
2585
|
}],
|
|
2586
2586
|
"mask-image-conic-from-pos": [{
|
|
2587
|
-
"mask-conic-from":
|
|
2587
|
+
"mask-conic-from": j()
|
|
2588
2588
|
}],
|
|
2589
2589
|
"mask-image-conic-to-pos": [{
|
|
2590
|
-
"mask-conic-to":
|
|
2590
|
+
"mask-conic-to": j()
|
|
2591
2591
|
}],
|
|
2592
2592
|
"mask-image-conic-from-color": [{
|
|
2593
2593
|
"mask-conic-from": S()
|
|
@@ -2614,7 +2614,7 @@ const Tn = (e, r) => {
|
|
|
2614
2614
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2615
2615
|
*/
|
|
2616
2616
|
"mask-position": [{
|
|
2617
|
-
mask:
|
|
2617
|
+
mask: q()
|
|
2618
2618
|
}],
|
|
2619
2619
|
/**
|
|
2620
2620
|
* Mask Repeat
|
|
@@ -3413,9 +3413,9 @@ const Tn = (e, r) => {
|
|
|
3413
3413
|
},
|
|
3414
3414
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3415
3415
|
};
|
|
3416
|
-
},
|
|
3416
|
+
}, di = /* @__PURE__ */ jn(li);
|
|
3417
3417
|
function re(...e) {
|
|
3418
|
-
return
|
|
3418
|
+
return di(Sn(e));
|
|
3419
3419
|
}
|
|
3420
3420
|
const ze = {
|
|
3421
3421
|
base: "outline-none px-4 py-2 text-base leading-snug",
|
|
@@ -3426,27 +3426,27 @@ const ze = {
|
|
|
3426
3426
|
color: {
|
|
3427
3427
|
solid: {
|
|
3428
3428
|
primary: "text-[var(--redhq-white)] bg-[var(--redhq-primary-500)] hover:bg-[var(--redhq-primary-600)] active:bg-[var(--redhq-primary-700)] border border-[var(--redhq-primary-500)] hover:border-[var(--redhq-primary-600)] active:border-[var(--redhq-primary-700)]",
|
|
3429
|
-
secondary: "text-white bg-
|
|
3430
|
-
info: "text-white bg-
|
|
3431
|
-
success: "text-white bg-
|
|
3432
|
-
warning: "text-white bg-
|
|
3433
|
-
danger: "text-white bg-
|
|
3429
|
+
secondary: "text-[var(--redhq-white)] bg-[var(--redhq-secondary-500)] hover:bg-[var(--redhq-secondary-600)] active:bg-[var(--redhq-secondary-700)] border border-[var(--redhq-secondary-500)] hover:border-[var(--redhq-secondary-600)] active:border-[var(--redhq-secondary-700)]",
|
|
3430
|
+
info: "text-[var(--redhq-white)] bg-[var(--redhq-info-500)] hover:bg-[var(--redhq-info-600)] active:bg-[var(--redhq-info-700)] border border-[var(--redhq-info-500)] hover:border-[var(--redhq-info-600)] active:border-[var(--redhq-info-700)]",
|
|
3431
|
+
success: "text-[var(--redhq-white)] bg-[var(--redhq-success-500)] hover:bg-[var(--redhq-success-600)] active:bg-[var(--redhq-success-700)] border border-[var(--redhq-success-500)] hover:border-[var(--redhq-success-600)] active:border-[var(--redhq-success-700)]",
|
|
3432
|
+
warning: "text-[var(--redhq-white)] bg-[var(--redhq-warning-500)] hover:bg-[var(--redhq-warning-600)] active:bg-[var(--redhq-warning-700)] border border-[var(--redhq-warning-500)] hover:border-[var(--redhq-warning-600)] active:border-[var(--redhq-warning-700)]",
|
|
3433
|
+
danger: "text-[var(--redhq-white)] bg-[var(--redhq-danger-500)] hover:bg-[var(--redhq-danger-600)] active:bg-[var(--redhq-danger-700)] border border-[var(--redhq-danger-500)] hover:border-[var(--redhq-danger-600)] active:border-[var(--redhq-danger-700)]"
|
|
3434
3434
|
},
|
|
3435
3435
|
outline: {
|
|
3436
3436
|
primary: "text-inherit bg-transparent border border-[var(--redhq-primary-500)] hover:border-[var(--redhq-primary-600)] active:border-[var(--redhq-primary-700)]",
|
|
3437
|
-
secondary: "text-inherit bg-transparent border border-
|
|
3438
|
-
info: "text-inherit bg-transparent border border-
|
|
3439
|
-
success: "text-inherit bg-transparent border border-
|
|
3440
|
-
warning: "text-inherit bg-transparent border border-
|
|
3441
|
-
danger: "text-inherit bg-transparent border border-
|
|
3437
|
+
secondary: "text-inherit bg-transparent border border-[var(--redhq-secondary-500)] hover:border-[var(--redhq-secondary-600)] active:border-[var(--redhq-secondary-700)]",
|
|
3438
|
+
info: "text-inherit bg-transparent border border-[var(--redhq-info-500)] hover:border-[var(--redhq-info-600)] active:border-[var(--redhq-info-700)]",
|
|
3439
|
+
success: "text-inherit bg-transparent border border-[var(--redhq-success-500)] hover:border-[var(--redhq-success-600)] active:border-[var(--redhq-success-700)]",
|
|
3440
|
+
warning: "text-inherit bg-transparent border border-[var(--redhq-warning-500)] hover:border-[var(--redhq-warning-600)] active:border-[var(--redhq-warning-700)]",
|
|
3441
|
+
danger: "text-inherit bg-transparent border border-[var(--redhq-danger-500)] hover:border-[var(--redhq-danger-600)] active:border-[var(--redhq-danger-700)]"
|
|
3442
3442
|
},
|
|
3443
3443
|
flat: {
|
|
3444
3444
|
primary: "p-0 text-[var(--redhq-primary-500)] hover:text-[var(--redhq-primary-600)] active:text-[var(--redhq-primary-700)]",
|
|
3445
|
-
secondary: "p-0 text-
|
|
3446
|
-
info: "p-0 text-
|
|
3447
|
-
success: "p-0 text-
|
|
3448
|
-
warning: "p-0 text-
|
|
3449
|
-
danger: "p-0 text-
|
|
3445
|
+
secondary: "p-0 text-[var(--redhq-secondary-500)] hover:text-[var(--redhq-secondary-600)] active:text-[var(--redhq-secondary-700)]",
|
|
3446
|
+
info: "p-0 text-[var(--redhq-info-500)] hover:text-[var(--redhq-info-600)] active:text-[var(--redhq-info-700)]",
|
|
3447
|
+
success: "p-0 text-[var(--redhq-success-500)] hover:text-[var(--redhq-success-600)] active:text-[var(--redhq-success-700)]",
|
|
3448
|
+
warning: "p-0 text-[var(--redhq-warning-500)] hover:text-[var(--redhq-warning-600)] active:text-[var(--redhq-warning-700)]",
|
|
3449
|
+
danger: "p-0 text-[var(--redhq-danger-500)] hover:text-[var(--redhq-danger-600)] active:text-[var(--redhq-danger-700)]"
|
|
3450
3450
|
}
|
|
3451
3451
|
},
|
|
3452
3452
|
corner: {
|
|
@@ -3454,7 +3454,7 @@ const ze = {
|
|
|
3454
3454
|
"soft-edge": "rounded-md",
|
|
3455
3455
|
rounded: "rounded-full"
|
|
3456
3456
|
}
|
|
3457
|
-
},
|
|
3457
|
+
}, ci = ({
|
|
3458
3458
|
id: e = "",
|
|
3459
3459
|
className: r = "",
|
|
3460
3460
|
children: t,
|
|
@@ -3464,19 +3464,19 @@ const ze = {
|
|
|
3464
3464
|
type: o = "button",
|
|
3465
3465
|
color: l = "primary",
|
|
3466
3466
|
variant: a = "solid",
|
|
3467
|
-
corner:
|
|
3467
|
+
corner: d = "squared",
|
|
3468
3468
|
...p
|
|
3469
3469
|
}) => {
|
|
3470
|
-
const
|
|
3470
|
+
const c = re(
|
|
3471
3471
|
n || i ? ze.state.disabled : ze.state.default,
|
|
3472
3472
|
ze.base,
|
|
3473
3473
|
ze.color[a][l],
|
|
3474
|
-
ze.corner[
|
|
3474
|
+
ze.corner[d],
|
|
3475
3475
|
r
|
|
3476
3476
|
);
|
|
3477
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ $("button", { id: e, type: o, disabled: n || i, className: c, ...p, children: i && s ? s : t });
|
|
3478
3478
|
};
|
|
3479
|
-
|
|
3479
|
+
ci.propTypes = {
|
|
3480
3480
|
id: P.string,
|
|
3481
3481
|
className: P.string,
|
|
3482
3482
|
children: P.node.isRequired,
|
|
@@ -3490,9 +3490,9 @@ di.propTypes = {
|
|
|
3490
3490
|
};
|
|
3491
3491
|
const Pr = ye({
|
|
3492
3492
|
id: ""
|
|
3493
|
-
}), ui = ({ id: e, children: r }) => /* @__PURE__ */
|
|
3494
|
-
const { id: n } =
|
|
3495
|
-
return /* @__PURE__ */
|
|
3493
|
+
}), ui = ({ id: e, children: r }) => /* @__PURE__ */ $(Pr.Provider, { value: { id: e }, children: r }), Or = ({ id: e = "", className: r = "", children: t }) => {
|
|
3494
|
+
const { id: n } = de(Pr);
|
|
3495
|
+
return /* @__PURE__ */ $(
|
|
3496
3496
|
"section",
|
|
3497
3497
|
{
|
|
3498
3498
|
id: `${e || n}-cover`,
|
|
@@ -3502,7 +3502,7 @@ const Pr = ye({
|
|
|
3502
3502
|
);
|
|
3503
3503
|
};
|
|
3504
3504
|
Or.displayName = "Cover.Base";
|
|
3505
|
-
const kr = ({ className: e = "", alt: r = "", src: t }) => /* @__PURE__ */
|
|
3505
|
+
const kr = ({ className: e = "", alt: r = "", src: t }) => /* @__PURE__ */ $(
|
|
3506
3506
|
"img",
|
|
3507
3507
|
{
|
|
3508
3508
|
alt: r,
|
|
@@ -3511,7 +3511,7 @@ const kr = ({ className: e = "", alt: r = "", src: t }) => /* @__PURE__ */ G(
|
|
|
3511
3511
|
}
|
|
3512
3512
|
);
|
|
3513
3513
|
kr.displayName = "Cover.Image";
|
|
3514
|
-
const Ir = ({ className: e = "", position: r = "center", children: t }) => /* @__PURE__ */
|
|
3514
|
+
const Ir = ({ className: e = "", position: r = "center", children: t }) => /* @__PURE__ */ $(
|
|
3515
3515
|
"div",
|
|
3516
3516
|
{
|
|
3517
3517
|
className: re(
|
|
@@ -3527,9 +3527,9 @@ const Ir = ({ className: e = "", position: r = "center", children: t }) => /* @_
|
|
|
3527
3527
|
}
|
|
3528
3528
|
);
|
|
3529
3529
|
Ir.displayName = "Cover.Overlay";
|
|
3530
|
-
const Lr = ({ className: e = "", children: r }) => /* @__PURE__ */
|
|
3530
|
+
const Lr = ({ className: e = "", children: r }) => /* @__PURE__ */ $("div", { className: re("h-auto w-full mx-auto", e), children: r });
|
|
3531
3531
|
Lr.displayName = "Cover.OverlayContainer";
|
|
3532
|
-
const Ar = ({ className: e = "", children: r }) => /* @__PURE__ */
|
|
3532
|
+
const Ar = ({ className: e = "", children: r }) => /* @__PURE__ */ $("p", { className: re("", e), children: r });
|
|
3533
3533
|
Ar.displayName = "Cover.Address";
|
|
3534
3534
|
const Rr = ({ className: e = "", specs: r = [], children: t }) => {
|
|
3535
3535
|
const [
|
|
@@ -3539,7 +3539,7 @@ const Rr = ({ className: e = "", specs: r = [], children: t }) => {
|
|
|
3539
3539
|
o = "1.2"
|
|
3540
3540
|
// ...
|
|
3541
3541
|
] = r;
|
|
3542
|
-
return /* @__PURE__ */
|
|
3542
|
+
return /* @__PURE__ */ $(
|
|
3543
3543
|
"h1",
|
|
3544
3544
|
{
|
|
3545
3545
|
className: re("leading-tight font-bold", e),
|
|
@@ -3549,7 +3549,7 @@ const Rr = ({ className: e = "", specs: r = [], children: t }) => {
|
|
|
3549
3549
|
);
|
|
3550
3550
|
};
|
|
3551
3551
|
Rr.displayName = "Cover.Title";
|
|
3552
|
-
const Te = ({ id: e, children: r }) => /* @__PURE__ */
|
|
3552
|
+
const Te = ({ id: e, children: r }) => /* @__PURE__ */ $(ui, { id: e, children: r });
|
|
3553
3553
|
Te.Base = Or;
|
|
3554
3554
|
Te.Image = kr;
|
|
3555
3555
|
Te.Overlay = Ir;
|
|
@@ -3568,9 +3568,9 @@ const Ie = ye({
|
|
|
3568
3568
|
foreground: ""
|
|
3569
3569
|
},
|
|
3570
3570
|
open: !1
|
|
3571
|
-
}), fi = ({ id: e, theme: r, open: t, children: n }) => /* @__PURE__ */
|
|
3572
|
-
const { id: i, open: s } =
|
|
3573
|
-
return /* @__PURE__ */
|
|
3571
|
+
}), fi = ({ id: e, theme: r, open: t, children: n }) => /* @__PURE__ */ $(Ie.Provider, { value: { id: e, theme: r, open: t }, children: n }), zr = ({ id: e = "", className: r = "", open: t = !1, onClose: n }) => {
|
|
3572
|
+
const { id: i, open: s } = de(Ie), o = e || i, l = t || s;
|
|
3573
|
+
return /* @__PURE__ */ $(
|
|
3574
3574
|
"div",
|
|
3575
3575
|
{
|
|
3576
3576
|
id: `${o}-drawer-overlay`,
|
|
@@ -3594,11 +3594,11 @@ const _r = ({
|
|
|
3594
3594
|
width: i = "20rem",
|
|
3595
3595
|
children: s
|
|
3596
3596
|
}) => {
|
|
3597
|
-
const { id: o, theme: l, open: a } =
|
|
3598
|
-
return /* @__PURE__ */
|
|
3597
|
+
const { id: o, theme: l, open: a } = de(Ie), d = e || o, p = t || a;
|
|
3598
|
+
return /* @__PURE__ */ $(
|
|
3599
3599
|
"aside",
|
|
3600
3600
|
{
|
|
3601
|
-
id: `${
|
|
3601
|
+
id: `${d}-drawer`,
|
|
3602
3602
|
className: re(
|
|
3603
3603
|
"fixed top-0 bottom-0 z-50 w-full shadow-2xl",
|
|
3604
3604
|
"transition-all duration-300 ease-in-out",
|
|
@@ -3616,7 +3616,7 @@ const _r = ({
|
|
|
3616
3616
|
);
|
|
3617
3617
|
};
|
|
3618
3618
|
_r.displayName = "Drawer.Base";
|
|
3619
|
-
const pi = () => /* @__PURE__ */
|
|
3619
|
+
const pi = () => /* @__PURE__ */ cr(
|
|
3620
3620
|
"svg",
|
|
3621
3621
|
{
|
|
3622
3622
|
width: "40",
|
|
@@ -3625,7 +3625,7 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3625
3625
|
fill: "none",
|
|
3626
3626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3627
3627
|
children: [
|
|
3628
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ $(
|
|
3629
3629
|
"rect",
|
|
3630
3630
|
{
|
|
3631
3631
|
width: "24",
|
|
@@ -3634,7 +3634,7 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3634
3634
|
transform: "matrix(-0.707107 -0.707107 -0.707107 0.707107 29.1924 27.7782)"
|
|
3635
3635
|
}
|
|
3636
3636
|
),
|
|
3637
|
-
/* @__PURE__ */
|
|
3637
|
+
/* @__PURE__ */ $(
|
|
3638
3638
|
"rect",
|
|
3639
3639
|
{
|
|
3640
3640
|
x: "10.8076",
|
|
@@ -3648,8 +3648,8 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3648
3648
|
]
|
|
3649
3649
|
}
|
|
3650
3650
|
), Nr = ({ className: e = "", style: r = {}, onClick: t }) => {
|
|
3651
|
-
const { theme: n } =
|
|
3652
|
-
return /* @__PURE__ */
|
|
3651
|
+
const { theme: n } = de(Ie);
|
|
3652
|
+
return /* @__PURE__ */ $(
|
|
3653
3653
|
"button",
|
|
3654
3654
|
{
|
|
3655
3655
|
className: re(
|
|
@@ -3661,26 +3661,26 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3661
3661
|
onMouseEnter: (i) => i.currentTarget.style.color = n.primary,
|
|
3662
3662
|
onMouseLeave: (i) => i.currentTarget.style.color = n.foreground,
|
|
3663
3663
|
style: r,
|
|
3664
|
-
children: /* @__PURE__ */
|
|
3664
|
+
children: /* @__PURE__ */ $(pi, {})
|
|
3665
3665
|
}
|
|
3666
3666
|
);
|
|
3667
3667
|
};
|
|
3668
3668
|
Nr.displayName = "Drawer.Close";
|
|
3669
|
-
const Dr = ({ alt: e = "", src: r = "", className: t = "" }) => /* @__PURE__ */
|
|
3670
|
-
const { theme: t } =
|
|
3671
|
-
return /* @__PURE__ */
|
|
3669
|
+
const Dr = ({ alt: e = "", src: r = "", className: t = "" }) => /* @__PURE__ */ $("img", { alt: e, src: r, className: re("aspect-auto object-contain object-center", t) }), qr = ({ alt: e = "", src: r = "" }) => {
|
|
3670
|
+
const { theme: t } = de(Ie);
|
|
3671
|
+
return /* @__PURE__ */ $(
|
|
3672
3672
|
"div",
|
|
3673
3673
|
{
|
|
3674
3674
|
className: "relative min-h-18 w-[calc(100%-3.5rem)] p-4 flex items-center justify-between gap-4",
|
|
3675
3675
|
style: { background: t.background },
|
|
3676
|
-
children: /* @__PURE__ */
|
|
3676
|
+
children: /* @__PURE__ */ $("a", { href: "/", children: /* @__PURE__ */ $(Dr, { alt: e, src: r, className: "h-8 w-fit" }) })
|
|
3677
3677
|
}
|
|
3678
3678
|
);
|
|
3679
3679
|
};
|
|
3680
|
-
|
|
3681
|
-
const
|
|
3682
|
-
|
|
3683
|
-
const
|
|
3680
|
+
qr.displayName = "Drawer.Logo";
|
|
3681
|
+
const Br = ({ className: e = "", children: r }) => /* @__PURE__ */ $("nav", { className: "", children: /* @__PURE__ */ $("ul", { className: re("", e), children: r }) });
|
|
3682
|
+
Br.displayName = "Drawer.Menu";
|
|
3683
|
+
const $r = ({
|
|
3684
3684
|
className: e = "",
|
|
3685
3685
|
path: r = "",
|
|
3686
3686
|
active: t = !1,
|
|
@@ -3688,8 +3688,8 @@ const Gr = ({
|
|
|
3688
3688
|
children: i,
|
|
3689
3689
|
onClick: s
|
|
3690
3690
|
}) => {
|
|
3691
|
-
const { theme: o } =
|
|
3692
|
-
return /* @__PURE__ */
|
|
3691
|
+
const { theme: o } = de(Ie);
|
|
3692
|
+
return /* @__PURE__ */ $("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ $(
|
|
3693
3693
|
"a",
|
|
3694
3694
|
{
|
|
3695
3695
|
href: r,
|
|
@@ -3702,15 +3702,15 @@ const Gr = ({
|
|
|
3702
3702
|
}
|
|
3703
3703
|
) });
|
|
3704
3704
|
};
|
|
3705
|
-
|
|
3706
|
-
const
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3705
|
+
$r.displayName = "Drawer.Item";
|
|
3706
|
+
const we = ({ id: e, theme: r, open: t, children: n }) => /* @__PURE__ */ $(fi, { id: e, theme: r, open: t, children: n });
|
|
3707
|
+
we.Overlay = zr;
|
|
3708
|
+
we.Base = _r;
|
|
3709
|
+
we.Close = Nr;
|
|
3710
|
+
we.Logo = qr;
|
|
3711
|
+
we.Menu = Br;
|
|
3712
|
+
we.Item = $r;
|
|
3713
|
+
we.propTypes = {
|
|
3714
3714
|
id: P.string.isRequired,
|
|
3715
3715
|
theme: P.shape({
|
|
3716
3716
|
primary: P.string,
|
|
@@ -3720,7 +3720,7 @@ Ee.propTypes = {
|
|
|
3720
3720
|
open: P.bool.isRequired,
|
|
3721
3721
|
children: P.node.isRequired
|
|
3722
3722
|
};
|
|
3723
|
-
const
|
|
3723
|
+
const qe = ye({
|
|
3724
3724
|
id: "",
|
|
3725
3725
|
theme: {
|
|
3726
3726
|
primary: "",
|
|
@@ -3731,13 +3731,13 @@ const Be = ye({
|
|
|
3731
3731
|
updateOverflow: () => {
|
|
3732
3732
|
}
|
|
3733
3733
|
}), mi = ({ id: e, theme: r, children: t }) => {
|
|
3734
|
-
const [n, i] = be(!1), s =
|
|
3734
|
+
const [n, i] = be(!1), s = cn((o) => {
|
|
3735
3735
|
i(!!o);
|
|
3736
3736
|
}, []);
|
|
3737
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ $(qe.Provider, { value: { id: e, theme: r, isOverflowing: n, updateOverflow: s }, children: t });
|
|
3738
3738
|
}, Tt = ({ id: e = "", className: r = "", children: t }) => {
|
|
3739
|
-
const { id: n, theme: i, isOverflowing: s } =
|
|
3740
|
-
return /* @__PURE__ */
|
|
3739
|
+
const { id: n, theme: i, isOverflowing: s } = de(qe);
|
|
3740
|
+
return /* @__PURE__ */ $(
|
|
3741
3741
|
"header",
|
|
3742
3742
|
{
|
|
3743
3743
|
id: `${e || n}-header`,
|
|
@@ -3760,31 +3760,31 @@ Tt.propTypes = {
|
|
|
3760
3760
|
className: P.string,
|
|
3761
3761
|
children: P.node.isRequired
|
|
3762
3762
|
};
|
|
3763
|
-
const
|
|
3764
|
-
|
|
3765
|
-
|
|
3763
|
+
const wt = ({ alt: e = "", src: r = "", className: t = "" }) => /* @__PURE__ */ $("a", { href: "/", children: /* @__PURE__ */ $(Dr, { alt: e, src: r, className: re("h-8 w-fit", t) }) });
|
|
3764
|
+
wt.displayName = "Header.Logo";
|
|
3765
|
+
wt.propTypes = {
|
|
3766
3766
|
className: P.string,
|
|
3767
3767
|
alt: P.string.isRequired,
|
|
3768
3768
|
src: P.string.isRequired
|
|
3769
3769
|
};
|
|
3770
|
-
const
|
|
3771
|
-
const t = oe(null), n = oe(null), { isOverflowing: i, updateOverflow: s } =
|
|
3770
|
+
const Et = ({ className: e = "", children: r }) => {
|
|
3771
|
+
const t = oe(null), n = oe(null), { isOverflowing: i, updateOverflow: s } = de(qe);
|
|
3772
3772
|
return yt(() => {
|
|
3773
3773
|
const o = t.current, l = n.current;
|
|
3774
3774
|
if (!o || !l) return;
|
|
3775
3775
|
let a;
|
|
3776
|
-
const
|
|
3776
|
+
const d = () => {
|
|
3777
3777
|
const T = l.scrollWidth > o.offsetWidth;
|
|
3778
3778
|
s(T);
|
|
3779
3779
|
}, p = () => {
|
|
3780
|
-
cancelAnimationFrame(a), a = requestAnimationFrame(
|
|
3780
|
+
cancelAnimationFrame(a), a = requestAnimationFrame(d);
|
|
3781
3781
|
};
|
|
3782
|
-
|
|
3783
|
-
const
|
|
3784
|
-
return
|
|
3785
|
-
|
|
3782
|
+
d();
|
|
3783
|
+
const c = new ResizeObserver(p);
|
|
3784
|
+
return c.observe(o), c.observe(l), window.addEventListener("resize", p), () => {
|
|
3785
|
+
c.disconnect(), window.removeEventListener("resize", p), cancelAnimationFrame(a);
|
|
3786
3786
|
};
|
|
3787
|
-
}, [s]), /* @__PURE__ */
|
|
3787
|
+
}, [s]), /* @__PURE__ */ $("nav", { ref: t, className: "grow flex items-center justify-end overflow-hidden", children: /* @__PURE__ */ $(
|
|
3788
3788
|
"ul",
|
|
3789
3789
|
{
|
|
3790
3790
|
ref: n,
|
|
@@ -3797,14 +3797,14 @@ const wt = ({ className: e = "", children: r }) => {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
) });
|
|
3799
3799
|
};
|
|
3800
|
-
|
|
3801
|
-
|
|
3800
|
+
Et.displayName = "Header.Menu";
|
|
3801
|
+
Et.propTypes = {
|
|
3802
3802
|
className: P.string,
|
|
3803
3803
|
children: P.node.isRequired
|
|
3804
3804
|
};
|
|
3805
3805
|
const Ct = ({ className: e = "", path: r = "", active: t = !1, children: n }) => {
|
|
3806
|
-
const { theme: i } =
|
|
3807
|
-
return /* @__PURE__ */
|
|
3806
|
+
const { theme: i } = de(qe);
|
|
3807
|
+
return /* @__PURE__ */ $("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ $(
|
|
3808
3808
|
"a",
|
|
3809
3809
|
{
|
|
3810
3810
|
href: r,
|
|
@@ -3824,9 +3824,9 @@ Ct.propTypes = {
|
|
|
3824
3824
|
children: P.node.isRequired
|
|
3825
3825
|
};
|
|
3826
3826
|
const Mt = ({ className: e = "", onClick: r }) => {
|
|
3827
|
-
const { theme: t, isOverflowing: n } =
|
|
3827
|
+
const { theme: t, isOverflowing: n } = de(qe), [i, s] = be(!1), o = i ? t.primary : t.foreground;
|
|
3828
3828
|
if (n)
|
|
3829
|
-
return /* @__PURE__ */
|
|
3829
|
+
return /* @__PURE__ */ cr(
|
|
3830
3830
|
"button",
|
|
3831
3831
|
{
|
|
3832
3832
|
className: re(
|
|
@@ -3837,10 +3837,10 @@ const Mt = ({ className: e = "", onClick: r }) => {
|
|
|
3837
3837
|
onMouseEnter: () => s(!0),
|
|
3838
3838
|
onMouseLeave: () => s(!1),
|
|
3839
3839
|
children: [
|
|
3840
|
-
/* @__PURE__ */
|
|
3841
|
-
/* @__PURE__ */
|
|
3842
|
-
/* @__PURE__ */
|
|
3843
|
-
/* @__PURE__ */
|
|
3840
|
+
/* @__PURE__ */ $("span", { className: "inline-block h-0.5 w-6", style: { background: o } }),
|
|
3841
|
+
/* @__PURE__ */ $("span", { className: "inline-block h-0.5 w-6", style: { background: o } }),
|
|
3842
|
+
/* @__PURE__ */ $("span", { className: "inline-block h-0.5 w-6", style: { background: o } }),
|
|
3843
|
+
/* @__PURE__ */ $("span", { className: "sr-only", children: "Toggle" })
|
|
3844
3844
|
]
|
|
3845
3845
|
}
|
|
3846
3846
|
);
|
|
@@ -3850,10 +3850,10 @@ Mt.propTypes = {
|
|
|
3850
3850
|
className: P.string,
|
|
3851
3851
|
onClick: P.onClick
|
|
3852
3852
|
};
|
|
3853
|
-
const Le = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
3853
|
+
const Le = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(mi, { id: e, theme: r, children: t });
|
|
3854
3854
|
Le.Base = Tt;
|
|
3855
|
-
Le.Logo =
|
|
3856
|
-
Le.Menu =
|
|
3855
|
+
Le.Logo = wt;
|
|
3856
|
+
Le.Menu = Et;
|
|
3857
3857
|
Le.Item = Ct;
|
|
3858
3858
|
Le.BurgerMenu = Mt;
|
|
3859
3859
|
Le.propTypes = {
|
|
@@ -3865,7 +3865,7 @@ Le.propTypes = {
|
|
|
3865
3865
|
}).isRequired,
|
|
3866
3866
|
children: P.node.isRequired
|
|
3867
3867
|
};
|
|
3868
|
-
const
|
|
3868
|
+
const Gr = ye({
|
|
3869
3869
|
id: "",
|
|
3870
3870
|
theme: {
|
|
3871
3871
|
primary: "",
|
|
@@ -3873,7 +3873,7 @@ const jr = ye({
|
|
|
3873
3873
|
tertiary: "",
|
|
3874
3874
|
quaternary: ""
|
|
3875
3875
|
}
|
|
3876
|
-
}), gi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
3876
|
+
}), gi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(Gr.Provider, { value: { id: e, theme: r }, children: t }), Pt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ $(
|
|
3877
3877
|
"section",
|
|
3878
3878
|
{
|
|
3879
3879
|
className: re(
|
|
@@ -3895,7 +3895,7 @@ Pt.propTypes = {
|
|
|
3895
3895
|
style: P.object,
|
|
3896
3896
|
children: P.node.isRequired
|
|
3897
3897
|
};
|
|
3898
|
-
const Ot = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */
|
|
3898
|
+
const Ot = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ $(
|
|
3899
3899
|
"div",
|
|
3900
3900
|
{
|
|
3901
3901
|
className: re(
|
|
@@ -3921,8 +3921,8 @@ const kt = ({ className: e = "", style: r = {}, specs: t = [], children: n }) =>
|
|
|
3921
3921
|
s = "normal",
|
|
3922
3922
|
o = "normal",
|
|
3923
3923
|
l = "1.2"
|
|
3924
|
-
] = t, { theme: a } =
|
|
3925
|
-
return /* @__PURE__ */
|
|
3924
|
+
] = t, { theme: a } = de(Gr);
|
|
3925
|
+
return /* @__PURE__ */ $(
|
|
3926
3926
|
"h2",
|
|
3927
3927
|
{
|
|
3928
3928
|
className: re("NEXTSTEPS-TITLE", e),
|
|
@@ -3938,14 +3938,14 @@ kt.propTypes = {
|
|
|
3938
3938
|
specs: P.arrayOf(P.string),
|
|
3939
3939
|
children: P.node.isRequired
|
|
3940
3940
|
};
|
|
3941
|
-
const It = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */
|
|
3941
|
+
const It = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ $("div", { className: re("NEXTSTEPS-CONTENT", e), style: r, children: t });
|
|
3942
3942
|
It.displayName = "NextSteps.Content";
|
|
3943
3943
|
It.propTypes = {
|
|
3944
3944
|
className: P.string,
|
|
3945
3945
|
style: P.object,
|
|
3946
3946
|
children: P.node.isRequired
|
|
3947
3947
|
};
|
|
3948
|
-
const Lt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */
|
|
3948
|
+
const Lt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ $(
|
|
3949
3949
|
"div",
|
|
3950
3950
|
{
|
|
3951
3951
|
className: re(
|
|
@@ -3963,7 +3963,7 @@ Lt.propTypes = {
|
|
|
3963
3963
|
style: P.object,
|
|
3964
3964
|
children: P.node.isRequired
|
|
3965
3965
|
};
|
|
3966
|
-
const Ae = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
3966
|
+
const Ae = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(gi, { id: e, theme: r, children: t });
|
|
3967
3967
|
Ae.Base = Pt;
|
|
3968
3968
|
Ae.Container = Ot;
|
|
3969
3969
|
Ae.Title = kt;
|
|
@@ -3979,7 +3979,7 @@ Ae.propTypes = {
|
|
|
3979
3979
|
}).isRequired,
|
|
3980
3980
|
children: P.node.isRequired
|
|
3981
3981
|
};
|
|
3982
|
-
const
|
|
3982
|
+
const jr = ye({
|
|
3983
3983
|
id: "",
|
|
3984
3984
|
theme: {
|
|
3985
3985
|
primary: "",
|
|
@@ -3987,7 +3987,7 @@ const qr = ye({
|
|
|
3987
3987
|
tertiary: "",
|
|
3988
3988
|
quaternary: ""
|
|
3989
3989
|
}
|
|
3990
|
-
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
3990
|
+
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(jr.Provider, { value: { id: e, theme: r }, children: t }), At = ({ className: e = "", children: r }) => /* @__PURE__ */ $("div", { className: re("RECORD-BASE", "space-y-4 md:space-y-6 lg:space-y-8", e), children: r });
|
|
3991
3991
|
At.displayName = "Record.Base";
|
|
3992
3992
|
At.propTypes = {
|
|
3993
3993
|
className: P.string,
|
|
@@ -3999,8 +3999,8 @@ const Rt = ({ className: e = "", specs: r = [], children: t }) => {
|
|
|
3999
3999
|
i = "normal",
|
|
4000
4000
|
s = "normal",
|
|
4001
4001
|
o = "1.2"
|
|
4002
|
-
] = r, { theme: l } =
|
|
4003
|
-
return /* @__PURE__ */
|
|
4002
|
+
] = r, { theme: l } = de(jr);
|
|
4003
|
+
return /* @__PURE__ */ $(
|
|
4004
4004
|
"h2",
|
|
4005
4005
|
{
|
|
4006
4006
|
className: re("RECORD-TITLE", "text-2xl", e),
|
|
@@ -4052,8 +4052,8 @@ const Ce = (e) => ({
|
|
|
4052
4052
|
// ≤ 640 Mobile
|
|
4053
4053
|
children: o
|
|
4054
4054
|
}) => {
|
|
4055
|
-
const [l, a] = vi(),
|
|
4056
|
-
return /* @__PURE__ */
|
|
4055
|
+
const [l, a] = vi(), d = un(() => a ? a <= 640 ? Ce(s) : a <= 768 ? Ce(i) : a <= 1024 ? Ce(n) : a <= 1280 ? Ce(t) : Ce(r) : Ce(r), [a, s, i, n, t, r]);
|
|
4056
|
+
return /* @__PURE__ */ $("div", { ref: l, className: re("RECORD-GRID", "grid gap-4", d, e), children: o });
|
|
4057
4057
|
};
|
|
4058
4058
|
zt.displayName = "Record.Grid";
|
|
4059
4059
|
zt.propTypes = {
|
|
@@ -4065,18 +4065,18 @@ zt.propTypes = {
|
|
|
4065
4065
|
smCol: P.number,
|
|
4066
4066
|
children: P.node.isRequired
|
|
4067
4067
|
};
|
|
4068
|
-
const _t = ({ className: e = "", children: r }) => /* @__PURE__ */
|
|
4068
|
+
const _t = ({ className: e = "", children: r }) => /* @__PURE__ */ $("div", { className: re("RECORD-ITEM", e), children: r });
|
|
4069
4069
|
_t.displayName = "Record.Item";
|
|
4070
4070
|
_t.propTypes = {
|
|
4071
4071
|
className: P.string,
|
|
4072
4072
|
children: P.node.isRequired
|
|
4073
4073
|
};
|
|
4074
|
-
const
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4074
|
+
const Be = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(hi, { id: e, theme: r, children: t });
|
|
4075
|
+
Be.Base = At;
|
|
4076
|
+
Be.Title = Rt;
|
|
4077
|
+
Be.Grid = zt;
|
|
4078
|
+
Be.Item = _t;
|
|
4079
|
+
Be.propTypes = {
|
|
4080
4080
|
id: P.string.isRequired,
|
|
4081
4081
|
theme: P.shape({
|
|
4082
4082
|
primary: P.string,
|
|
@@ -4094,7 +4094,7 @@ const Fr = ye({
|
|
|
4094
4094
|
tertiary: "",
|
|
4095
4095
|
quaternary: ""
|
|
4096
4096
|
}
|
|
4097
|
-
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
4097
|
+
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(Fr.Provider, { value: { id: e, theme: r }, children: t }), Nt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ $(
|
|
4098
4098
|
"section",
|
|
4099
4099
|
{
|
|
4100
4100
|
className: re(
|
|
@@ -4112,7 +4112,7 @@ Nt.propTypes = {
|
|
|
4112
4112
|
style: P.object,
|
|
4113
4113
|
children: P.node.isRequired
|
|
4114
4114
|
};
|
|
4115
|
-
const Dt = ({ className: e = "", width: r, style: t = {}, children: n }) => /* @__PURE__ */
|
|
4115
|
+
const Dt = ({ className: e = "", width: r, style: t = {}, children: n }) => /* @__PURE__ */ $(
|
|
4116
4116
|
"div",
|
|
4117
4117
|
{
|
|
4118
4118
|
className: re("TESTIMONIALS-CONTAINER", "w-full mx-auto", e),
|
|
@@ -4129,10 +4129,10 @@ Dt.propTypes = {
|
|
|
4129
4129
|
function nr(e) {
|
|
4130
4130
|
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function qt(e = {}, r = {}) {
|
|
4133
4133
|
const t = ["__proto__", "constructor", "prototype"];
|
|
4134
4134
|
Object.keys(r).filter((n) => t.indexOf(n) < 0).forEach((n) => {
|
|
4135
|
-
typeof e[n] > "u" ? e[n] = r[n] : nr(r[n]) && nr(e[n]) && Object.keys(r[n]).length > 0 &&
|
|
4135
|
+
typeof e[n] > "u" ? e[n] = r[n] : nr(r[n]) && nr(e[n]) && Object.keys(r[n]).length > 0 && qt(e[n], r[n]);
|
|
4136
4136
|
});
|
|
4137
4137
|
}
|
|
4138
4138
|
const Vr = {
|
|
@@ -4190,9 +4190,9 @@ const Vr = {
|
|
|
4190
4190
|
search: ""
|
|
4191
4191
|
}
|
|
4192
4192
|
};
|
|
4193
|
-
function
|
|
4193
|
+
function ce() {
|
|
4194
4194
|
const e = typeof document < "u" ? document : {};
|
|
4195
|
-
return
|
|
4195
|
+
return qt(e, Vr), e;
|
|
4196
4196
|
}
|
|
4197
4197
|
const yi = {
|
|
4198
4198
|
document: Vr,
|
|
@@ -4254,7 +4254,7 @@ const yi = {
|
|
|
4254
4254
|
};
|
|
4255
4255
|
function ae() {
|
|
4256
4256
|
const e = typeof window < "u" ? window : {};
|
|
4257
|
-
return
|
|
4257
|
+
return qt(e, yi), e;
|
|
4258
4258
|
}
|
|
4259
4259
|
function xi(e = "") {
|
|
4260
4260
|
return e.trim().split(" ").filter((r) => !!r.trim());
|
|
@@ -4283,7 +4283,7 @@ function Ti(e) {
|
|
|
4283
4283
|
let t;
|
|
4284
4284
|
return r.getComputedStyle && (t = r.getComputedStyle(e, null)), !t && e.currentStyle && (t = e.currentStyle), t || (t = e.style), t;
|
|
4285
4285
|
}
|
|
4286
|
-
function
|
|
4286
|
+
function wi(e, r = "x") {
|
|
4287
4287
|
const t = ae();
|
|
4288
4288
|
let n, i, s;
|
|
4289
4289
|
const o = Ti(e);
|
|
@@ -4292,18 +4292,18 @@ function Ei(e, r = "x") {
|
|
|
4292
4292
|
function He(e) {
|
|
4293
4293
|
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function Ei(e) {
|
|
4296
4296
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
|
|
4297
4297
|
}
|
|
4298
4298
|
function le(...e) {
|
|
4299
4299
|
const r = Object(e[0]), t = ["__proto__", "constructor", "prototype"];
|
|
4300
4300
|
for (let n = 1; n < e.length; n += 1) {
|
|
4301
4301
|
const i = e[n];
|
|
4302
|
-
if (i != null && !
|
|
4302
|
+
if (i != null && !Ei(i)) {
|
|
4303
4303
|
const s = Object.keys(Object(i)).filter((o) => t.indexOf(o) < 0);
|
|
4304
4304
|
for (let o = 0, l = s.length; o < l; o += 1) {
|
|
4305
|
-
const a = s[o],
|
|
4306
|
-
|
|
4305
|
+
const a = s[o], d = Object.getOwnPropertyDescriptor(i, a);
|
|
4306
|
+
d !== void 0 && d.enumerable && (He(r[a]) && He(i[a]) ? i[a].__swiper__ ? r[a] = i[a] : le(r[a], i[a]) : !He(r[a]) && He(i[a]) ? (r[a] = {}, i[a].__swiper__ ? r[a] = i[a] : le(r[a], i[a])) : r[a] = i[a]);
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|
|
4309
4309
|
}
|
|
@@ -4321,13 +4321,13 @@ function Wr({
|
|
|
4321
4321
|
let s = null, o;
|
|
4322
4322
|
const l = e.params.speed;
|
|
4323
4323
|
e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
|
|
4324
|
-
const a = r > i ? "next" : "prev",
|
|
4324
|
+
const a = r > i ? "next" : "prev", d = (c, T) => a === "next" && c >= T || a === "prev" && c <= T, p = () => {
|
|
4325
4325
|
o = (/* @__PURE__ */ new Date()).getTime(), s === null && (s = o);
|
|
4326
|
-
const
|
|
4326
|
+
const c = Math.max(Math.min((o - s) / l, 1), 0), T = 0.5 - Math.cos(c * Math.PI) / 2;
|
|
4327
4327
|
let f = i + T * (r - i);
|
|
4328
|
-
if (
|
|
4328
|
+
if (d(f, r) && (f = r), e.wrapperEl.scrollTo({
|
|
4329
4329
|
[t]: f
|
|
4330
|
-
}),
|
|
4330
|
+
}), d(f, r)) {
|
|
4331
4331
|
e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
|
|
4332
4332
|
e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
|
|
4333
4333
|
[t]: f
|
|
@@ -4416,7 +4416,7 @@ function Pe(e, r = "") {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
let ot;
|
|
4418
4418
|
function ki() {
|
|
4419
|
-
const e = ae(), r =
|
|
4419
|
+
const e = ae(), r = ce();
|
|
4420
4420
|
return {
|
|
4421
4421
|
smoothScroll: r.documentElement && r.documentElement.style && "scrollBehavior" in r.documentElement.style,
|
|
4422
4422
|
touch: !!("ontouchstart" in e || e.DocumentTouch && r instanceof e.DocumentTouch)
|
|
@@ -4433,16 +4433,16 @@ function Ii({
|
|
|
4433
4433
|
ios: !1,
|
|
4434
4434
|
android: !1
|
|
4435
4435
|
}, o = t.screen.width, l = t.screen.height, a = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
4436
|
-
let
|
|
4437
|
-
const p = i.match(/(iPod)(.*OS\s([\d_]+))?/),
|
|
4436
|
+
let d = i.match(/(iPad)(?!\1).*OS\s([\d_]+)/);
|
|
4437
|
+
const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), c = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), T = n === "Win32";
|
|
4438
4438
|
let f = n === "MacIntel";
|
|
4439
4439
|
const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
4440
|
-
return !
|
|
4440
|
+
return !d && f && r.touch && g.indexOf(`${o}x${l}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), f = !1), a && !T && (s.os = "android", s.android = !0), (d || c || p) && (s.os = "ios", s.ios = !0), s;
|
|
4441
4441
|
}
|
|
4442
4442
|
function Ur(e = {}) {
|
|
4443
4443
|
return lt || (lt = Ii(e)), lt;
|
|
4444
4444
|
}
|
|
4445
|
-
let
|
|
4445
|
+
let dt;
|
|
4446
4446
|
function Li() {
|
|
4447
4447
|
const e = ae(), r = Ur();
|
|
4448
4448
|
let t = !1;
|
|
@@ -4453,8 +4453,8 @@ function Li() {
|
|
|
4453
4453
|
if (n()) {
|
|
4454
4454
|
const l = String(e.navigator.userAgent);
|
|
4455
4455
|
if (l.includes("Version/")) {
|
|
4456
|
-
const [a,
|
|
4457
|
-
t = a < 16 || a === 16 &&
|
|
4456
|
+
const [a, d] = l.split("Version/")[1].split(" ")[0].split(".").map((p) => Number(p));
|
|
4457
|
+
t = a < 16 || a === 16 && d < 2;
|
|
4458
4458
|
}
|
|
4459
4459
|
}
|
|
4460
4460
|
const i = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent), s = n(), o = s || i && r.ios;
|
|
@@ -4466,7 +4466,7 @@ function Li() {
|
|
|
4466
4466
|
};
|
|
4467
4467
|
}
|
|
4468
4468
|
function Kr() {
|
|
4469
|
-
return
|
|
4469
|
+
return dt || (dt = Li()), dt;
|
|
4470
4470
|
}
|
|
4471
4471
|
function Ai({
|
|
4472
4472
|
swiper: e,
|
|
@@ -4481,22 +4481,22 @@ function Ai({
|
|
|
4481
4481
|
!e || e.destroyed || !e.initialized || (i = new ResizeObserver((p) => {
|
|
4482
4482
|
s = n.requestAnimationFrame(() => {
|
|
4483
4483
|
const {
|
|
4484
|
-
width:
|
|
4484
|
+
width: c,
|
|
4485
4485
|
height: T
|
|
4486
4486
|
} = e;
|
|
4487
|
-
let f =
|
|
4487
|
+
let f = c, g = T;
|
|
4488
4488
|
p.forEach(({
|
|
4489
4489
|
contentBoxSize: b,
|
|
4490
4490
|
contentRect: x,
|
|
4491
4491
|
target: u
|
|
4492
4492
|
}) => {
|
|
4493
4493
|
u && u !== e.el || (f = x ? x.width : (b[0] || b).inlineSize, g = x ? x.height : (b[0] || b).blockSize);
|
|
4494
|
-
}), (f !==
|
|
4494
|
+
}), (f !== c || g !== T) && o();
|
|
4495
4495
|
});
|
|
4496
4496
|
}), i.observe(e.el));
|
|
4497
4497
|
}, a = () => {
|
|
4498
4498
|
s && n.cancelAnimationFrame(s), i && i.unobserve && e.el && (i.unobserve(e.el), i = null);
|
|
4499
|
-
},
|
|
4499
|
+
}, d = () => {
|
|
4500
4500
|
!e || e.destroyed || !e.initialized || t("orientationchange");
|
|
4501
4501
|
};
|
|
4502
4502
|
r("init", () => {
|
|
@@ -4504,9 +4504,9 @@ function Ai({
|
|
|
4504
4504
|
l();
|
|
4505
4505
|
return;
|
|
4506
4506
|
}
|
|
4507
|
-
n.addEventListener("resize", o), n.addEventListener("orientationchange",
|
|
4507
|
+
n.addEventListener("resize", o), n.addEventListener("orientationchange", d);
|
|
4508
4508
|
}), r("destroy", () => {
|
|
4509
|
-
a(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange",
|
|
4509
|
+
a(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", d);
|
|
4510
4510
|
});
|
|
4511
4511
|
}
|
|
4512
4512
|
function Ri({
|
|
@@ -4515,8 +4515,8 @@ function Ri({
|
|
|
4515
4515
|
on: t,
|
|
4516
4516
|
emit: n
|
|
4517
4517
|
}) {
|
|
4518
|
-
const i = [], s = ae(), o = (
|
|
4519
|
-
const
|
|
4518
|
+
const i = [], s = ae(), o = (d, p = {}) => {
|
|
4519
|
+
const c = s.MutationObserver || s.WebkitMutationObserver, T = new c((f) => {
|
|
4520
4520
|
if (e.__preventObserver__) return;
|
|
4521
4521
|
if (f.length === 1) {
|
|
4522
4522
|
n("observerUpdate", f[0]);
|
|
@@ -4527,7 +4527,7 @@ function Ri({
|
|
|
4527
4527
|
};
|
|
4528
4528
|
s.requestAnimationFrame ? s.requestAnimationFrame(g) : s.setTimeout(g, 0);
|
|
4529
4529
|
});
|
|
4530
|
-
T.observe(
|
|
4530
|
+
T.observe(d, {
|
|
4531
4531
|
attributes: typeof p.attributes > "u" ? !0 : p.attributes,
|
|
4532
4532
|
childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
|
|
4533
4533
|
characterData: typeof p.characterData > "u" ? !0 : p.characterData
|
|
@@ -4535,9 +4535,9 @@ function Ri({
|
|
|
4535
4535
|
}, l = () => {
|
|
4536
4536
|
if (e.params.observer) {
|
|
4537
4537
|
if (e.params.observeParents) {
|
|
4538
|
-
const
|
|
4539
|
-
for (let p = 0; p <
|
|
4540
|
-
o(
|
|
4538
|
+
const d = Yr(e.hostEl);
|
|
4539
|
+
for (let p = 0; p < d.length; p += 1)
|
|
4540
|
+
o(d[p]);
|
|
4541
4541
|
}
|
|
4542
4542
|
o(e.hostEl, {
|
|
4543
4543
|
childList: e.params.observeSlideChildren
|
|
@@ -4546,8 +4546,8 @@ function Ri({
|
|
|
4546
4546
|
});
|
|
4547
4547
|
}
|
|
4548
4548
|
}, a = () => {
|
|
4549
|
-
i.forEach((
|
|
4550
|
-
|
|
4549
|
+
i.forEach((d) => {
|
|
4550
|
+
d.disconnect();
|
|
4551
4551
|
}), i.splice(0, i.length);
|
|
4552
4552
|
};
|
|
4553
4553
|
r({
|
|
@@ -4626,28 +4626,28 @@ function Ni() {
|
|
|
4626
4626
|
slidesEl: i,
|
|
4627
4627
|
rtlTranslate: s,
|
|
4628
4628
|
wrongRTL: o
|
|
4629
|
-
} = e, l = e.virtual && t.virtual.enabled, a = l ? e.virtual.slides.length : e.slides.length,
|
|
4630
|
-
let
|
|
4629
|
+
} = e, l = e.virtual && t.virtual.enabled, a = l ? e.virtual.slides.length : e.slides.length, d = fe(i, `.${e.params.slideClass}, swiper-slide`), p = l ? e.virtual.slides.length : d.length;
|
|
4630
|
+
let c = [];
|
|
4631
4631
|
const T = [], f = [];
|
|
4632
4632
|
let g = t.slidesOffsetBefore;
|
|
4633
4633
|
typeof g == "function" && (g = t.slidesOffsetBefore.call(e));
|
|
4634
4634
|
let b = t.slidesOffsetAfter;
|
|
4635
4635
|
typeof b == "function" && (b = t.slidesOffsetAfter.call(e));
|
|
4636
4636
|
const x = e.snapGrid.length, u = e.slidesGrid.length, m = e.size - g - b;
|
|
4637
|
-
let v = t.spaceBetween,
|
|
4637
|
+
let v = t.spaceBetween, E = -g, y = 0, A = 0;
|
|
4638
4638
|
if (typeof m > "u")
|
|
4639
4639
|
return;
|
|
4640
|
-
typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * m : typeof v == "string" && (v = parseFloat(v)), e.virtualSize = -v - g - b,
|
|
4640
|
+
typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * m : typeof v == "string" && (v = parseFloat(v)), e.virtualSize = -v - g - b, d.forEach((O) => {
|
|
4641
4641
|
s ? O.style.marginLeft = "" : O.style.marginRight = "", O.style.marginBottom = "", O.style.marginTop = "";
|
|
4642
4642
|
}), t.centeredSlides && t.cssMode && (We(n, "--swiper-centered-offset-before", ""), We(n, "--swiper-centered-offset-after", ""));
|
|
4643
4643
|
const L = t.grid && t.grid.rows > 1 && e.grid;
|
|
4644
|
-
L ? e.grid.initSlides(
|
|
4644
|
+
L ? e.grid.initSlides(d) : e.grid && e.grid.unsetSlides();
|
|
4645
4645
|
let h;
|
|
4646
4646
|
const _ = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter((O) => typeof t.breakpoints[O].slidesPerView < "u").length > 0;
|
|
4647
4647
|
for (let O = 0; O < p; O += 1) {
|
|
4648
4648
|
h = 0;
|
|
4649
|
-
const k =
|
|
4650
|
-
if (!(k && (L && e.grid.updateSlide(O, k,
|
|
4649
|
+
const k = d[O];
|
|
4650
|
+
if (!(k && (L && e.grid.updateSlide(O, k, d), ve(k, "display") === "none"))) {
|
|
4651
4651
|
if (l && t.slidesPerView === "auto")
|
|
4652
4652
|
t.virtual.slidesPerViewAutoSlideSize && (h = t.virtual.slidesPerViewAutoSlideSize), h && k && (t.roundLengths && (h = Math.floor(h)), k.style[e.getDirectionLabel("width")] = `${h}px`);
|
|
4653
4653
|
else if (t.slidesPerView === "auto") {
|
|
@@ -4656,44 +4656,44 @@ function Ni() {
|
|
|
4656
4656
|
if (F && (k.style.transform = "none"), V && (k.style.webkitTransform = "none"), t.roundLengths)
|
|
4657
4657
|
h = e.isHorizontal() ? ht(k, "width") : ht(k, "height");
|
|
4658
4658
|
else {
|
|
4659
|
-
const Q = r(R, "width"),
|
|
4659
|
+
const Q = r(R, "width"), w = r(R, "padding-left"), M = r(R, "padding-right"), S = r(R, "margin-left"), q = r(R, "margin-right"), C = R.getPropertyValue("box-sizing");
|
|
4660
4660
|
if (C && C === "border-box")
|
|
4661
|
-
h = Q + S +
|
|
4661
|
+
h = Q + S + q;
|
|
4662
4662
|
else {
|
|
4663
4663
|
const {
|
|
4664
4664
|
clientWidth: I,
|
|
4665
4665
|
offsetWidth: H
|
|
4666
4666
|
} = k;
|
|
4667
|
-
h = Q +
|
|
4667
|
+
h = Q + w + M + S + q + (H - I);
|
|
4668
4668
|
}
|
|
4669
4669
|
}
|
|
4670
4670
|
F && (k.style.transform = F), V && (k.style.webkitTransform = V), t.roundLengths && (h = Math.floor(h));
|
|
4671
4671
|
} else
|
|
4672
4672
|
h = (m - (t.slidesPerView - 1) * v) / t.slidesPerView, t.roundLengths && (h = Math.floor(h)), k && (k.style[e.getDirectionLabel("width")] = `${h}px`);
|
|
4673
|
-
k && (k.swiperSlideSize = h), f.push(h), t.centeredSlides ? (
|
|
4673
|
+
k && (k.swiperSlideSize = h), f.push(h), t.centeredSlides ? (E = E + h / 2 + y / 2 + v, y === 0 && O !== 0 && (E = E - m / 2 - v), O === 0 && (E = E - m / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), t.roundLengths && (E = Math.floor(E)), A % t.slidesPerGroup === 0 && c.push(E), T.push(E)) : (t.roundLengths && (E = Math.floor(E)), (A - Math.min(e.params.slidesPerGroupSkip, A)) % e.params.slidesPerGroup === 0 && c.push(E), T.push(E), E = E + h + v), e.virtualSize += h + v, y = h, A += 1;
|
|
4674
4674
|
}
|
|
4675
4675
|
}
|
|
4676
|
-
if (e.virtualSize = Math.max(e.virtualSize, m) + b, s && o && (t.effect === "slide" || t.effect === "coverflow") && (n.style.width = `${e.virtualSize + v}px`), t.setWrapperSize && (n.style[e.getDirectionLabel("width")] = `${e.virtualSize + v}px`), L && e.grid.updateWrapperSize(h,
|
|
4676
|
+
if (e.virtualSize = Math.max(e.virtualSize, m) + b, s && o && (t.effect === "slide" || t.effect === "coverflow") && (n.style.width = `${e.virtualSize + v}px`), t.setWrapperSize && (n.style[e.getDirectionLabel("width")] = `${e.virtualSize + v}px`), L && e.grid.updateWrapperSize(h, c), !t.centeredSlides) {
|
|
4677
4677
|
const O = [];
|
|
4678
|
-
for (let k = 0; k <
|
|
4679
|
-
let R =
|
|
4680
|
-
t.roundLengths && (R = Math.floor(R)),
|
|
4678
|
+
for (let k = 0; k < c.length; k += 1) {
|
|
4679
|
+
let R = c[k];
|
|
4680
|
+
t.roundLengths && (R = Math.floor(R)), c[k] <= e.virtualSize - m && O.push(R);
|
|
4681
4681
|
}
|
|
4682
|
-
|
|
4682
|
+
c = O, Math.floor(e.virtualSize - m) - Math.floor(c[c.length - 1]) > 1 && c.push(e.virtualSize - m);
|
|
4683
4683
|
}
|
|
4684
4684
|
if (l && t.loop) {
|
|
4685
4685
|
const O = f[0] + v;
|
|
4686
4686
|
if (t.slidesPerGroup > 1) {
|
|
4687
4687
|
const k = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), R = O * t.slidesPerGroup;
|
|
4688
4688
|
for (let F = 0; F < k; F += 1)
|
|
4689
|
-
|
|
4689
|
+
c.push(c[c.length - 1] + R);
|
|
4690
4690
|
}
|
|
4691
4691
|
for (let k = 0; k < e.virtual.slidesBefore + e.virtual.slidesAfter; k += 1)
|
|
4692
|
-
t.slidesPerGroup === 1 &&
|
|
4692
|
+
t.slidesPerGroup === 1 && c.push(c[c.length - 1] + O), T.push(T[T.length - 1] + O), e.virtualSize += O;
|
|
4693
4693
|
}
|
|
4694
|
-
if (
|
|
4694
|
+
if (c.length === 0 && (c = [0]), v !== 0) {
|
|
4695
4695
|
const O = e.isHorizontal() && s ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
4696
|
-
|
|
4696
|
+
d.filter((k, R) => !t.cssMode || t.loop ? !0 : R !== d.length - 1).forEach((k) => {
|
|
4697
4697
|
k.style[O] = `${v}px`;
|
|
4698
4698
|
});
|
|
4699
4699
|
}
|
|
@@ -4703,7 +4703,7 @@ function Ni() {
|
|
|
4703
4703
|
O += R + (v || 0);
|
|
4704
4704
|
}), O -= v;
|
|
4705
4705
|
const k = O > m ? O - m : 0;
|
|
4706
|
-
|
|
4706
|
+
c = c.map((R) => R <= 0 ? -g : R > k ? k + b : R);
|
|
4707
4707
|
}
|
|
4708
4708
|
if (t.centerInsufficientSlides) {
|
|
4709
4709
|
let O = 0;
|
|
@@ -4713,24 +4713,24 @@ function Ni() {
|
|
|
4713
4713
|
const k = (g || 0) + (b || 0);
|
|
4714
4714
|
if (O + k < m) {
|
|
4715
4715
|
const R = (m - O - k) / 2;
|
|
4716
|
-
|
|
4717
|
-
|
|
4716
|
+
c.forEach((F, V) => {
|
|
4717
|
+
c[V] = F - R;
|
|
4718
4718
|
}), T.forEach((F, V) => {
|
|
4719
4719
|
T[V] = F + R;
|
|
4720
4720
|
});
|
|
4721
4721
|
}
|
|
4722
4722
|
}
|
|
4723
4723
|
if (Object.assign(e, {
|
|
4724
|
-
slides:
|
|
4725
|
-
snapGrid:
|
|
4724
|
+
slides: d,
|
|
4725
|
+
snapGrid: c,
|
|
4726
4726
|
slidesGrid: T,
|
|
4727
4727
|
slidesSizesGrid: f
|
|
4728
4728
|
}), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) {
|
|
4729
|
-
We(n, "--swiper-centered-offset-before", `${-
|
|
4729
|
+
We(n, "--swiper-centered-offset-before", `${-c[0]}px`), We(n, "--swiper-centered-offset-after", `${e.size / 2 - f[f.length - 1] / 2}px`);
|
|
4730
4730
|
const O = -e.snapGrid[0], k = -e.slidesGrid[0];
|
|
4731
4731
|
e.snapGrid = e.snapGrid.map((R) => R + O), e.slidesGrid = e.slidesGrid.map((R) => R + k);
|
|
4732
4732
|
}
|
|
4733
|
-
if (p !== a && e.emit("slidesLengthChange"),
|
|
4733
|
+
if (p !== a && e.emit("slidesLengthChange"), c.length !== x && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), T.length !== u && e.emit("slidesGridLengthChange"), t.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !l && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) {
|
|
4734
4734
|
const O = `${t.containerModifierClass}backface-hidden`, k = e.el.classList.contains(O);
|
|
4735
4735
|
p <= t.maxBackfaceHiddenSlides ? k || e.el.classList.add(O) : k && e.el.classList.remove(O);
|
|
4736
4736
|
}
|
|
@@ -4760,7 +4760,7 @@ function Di(e) {
|
|
|
4760
4760
|
}
|
|
4761
4761
|
(i || i === 0) && (r.wrapperEl.style.height = `${i}px`);
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function qi() {
|
|
4764
4764
|
const e = this, r = e.slides, t = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
|
|
4765
4765
|
for (let n = 0; n < r.length; n += 1)
|
|
4766
4766
|
r[n].swiperSlideOffset = (e.isHorizontal() ? r[n].offsetLeft : r[n].offsetTop) - t - e.cssOverflowAdjustment();
|
|
@@ -4768,7 +4768,7 @@ function Bi() {
|
|
|
4768
4768
|
const ir = (e, r, t) => {
|
|
4769
4769
|
r && !e.classList.contains(t) ? e.classList.add(t) : !r && e.classList.contains(t) && e.classList.remove(t);
|
|
4770
4770
|
};
|
|
4771
|
-
function
|
|
4771
|
+
function Bi(e = this && this.translate || 0) {
|
|
4772
4772
|
const r = this, t = r.params, {
|
|
4773
4773
|
slides: n,
|
|
4774
4774
|
rtlTranslate: i,
|
|
@@ -4781,14 +4781,14 @@ function $i(e = this && this.translate || 0) {
|
|
|
4781
4781
|
let l = t.spaceBetween;
|
|
4782
4782
|
typeof l == "string" && l.indexOf("%") >= 0 ? l = parseFloat(l.replace("%", "")) / 100 * r.size : typeof l == "string" && (l = parseFloat(l));
|
|
4783
4783
|
for (let a = 0; a < n.length; a += 1) {
|
|
4784
|
-
const
|
|
4785
|
-
let p =
|
|
4784
|
+
const d = n[a];
|
|
4785
|
+
let p = d.swiperSlideOffset;
|
|
4786
4786
|
t.cssMode && t.centeredSlides && (p -= n[0].swiperSlideOffset);
|
|
4787
|
-
const
|
|
4788
|
-
x && (r.visibleSlides.push(
|
|
4787
|
+
const c = (o + (t.centeredSlides ? r.minTranslate() : 0) - p) / (d.swiperSlideSize + l), T = (o - s[0] + (t.centeredSlides ? r.minTranslate() : 0) - p) / (d.swiperSlideSize + l), f = -(o - p), g = f + r.slidesSizesGrid[a], b = f >= 0 && f <= r.size - r.slidesSizesGrid[a], x = f >= 0 && f < r.size - 1 || g > 1 && g <= r.size || f <= 0 && g >= r.size;
|
|
4788
|
+
x && (r.visibleSlides.push(d), r.visibleSlidesIndexes.push(a)), ir(d, x, t.slideVisibleClass), ir(d, b, t.slideFullyVisibleClass), d.progress = i ? -c : c, d.originalProgress = i ? -T : T;
|
|
4789
4789
|
}
|
|
4790
4790
|
}
|
|
4791
|
-
function
|
|
4791
|
+
function $i(e) {
|
|
4792
4792
|
const r = this;
|
|
4793
4793
|
if (typeof e > "u") {
|
|
4794
4794
|
const p = r.rtlTranslate ? -1 : 1;
|
|
@@ -4801,16 +4801,16 @@ function Gi(e) {
|
|
|
4801
4801
|
isEnd: o,
|
|
4802
4802
|
progressLoop: l
|
|
4803
4803
|
} = r;
|
|
4804
|
-
const a = s,
|
|
4804
|
+
const a = s, d = o;
|
|
4805
4805
|
if (n === 0)
|
|
4806
4806
|
i = 0, s = !0, o = !0;
|
|
4807
4807
|
else {
|
|
4808
4808
|
i = (e - r.minTranslate()) / n;
|
|
4809
|
-
const p = Math.abs(e - r.minTranslate()) < 1,
|
|
4810
|
-
s = p || i <= 0, o =
|
|
4809
|
+
const p = Math.abs(e - r.minTranslate()) < 1, c = Math.abs(e - r.maxTranslate()) < 1;
|
|
4810
|
+
s = p || i <= 0, o = c || i >= 1, p && (i = 0), c && (i = 1);
|
|
4811
4811
|
}
|
|
4812
4812
|
if (t.loop) {
|
|
4813
|
-
const p = r.getSlideIndexByData(0),
|
|
4813
|
+
const p = r.getSlideIndexByData(0), c = r.getSlideIndexByData(r.slides.length - 1), T = r.slidesGrid[p], f = r.slidesGrid[c], g = r.slidesGrid[r.slidesGrid.length - 1], b = Math.abs(e);
|
|
4814
4814
|
b >= T ? l = (b - T) / g : l = (b + g - f) / g, l > 1 && (l -= 1);
|
|
4815
4815
|
}
|
|
4816
4816
|
Object.assign(r, {
|
|
@@ -4818,29 +4818,29 @@ function Gi(e) {
|
|
|
4818
4818
|
progressLoop: l,
|
|
4819
4819
|
isBeginning: s,
|
|
4820
4820
|
isEnd: o
|
|
4821
|
-
}), (t.watchSlidesProgress || t.centeredSlides && t.autoHeight) && r.updateSlidesProgress(e), s && !a && r.emit("reachBeginning toEdge"), o && !
|
|
4821
|
+
}), (t.watchSlidesProgress || t.centeredSlides && t.autoHeight) && r.updateSlidesProgress(e), s && !a && r.emit("reachBeginning toEdge"), o && !d && r.emit("reachEnd toEdge"), (a && !s || d && !o) && r.emit("fromEdge"), r.emit("progress", i);
|
|
4822
4822
|
}
|
|
4823
|
-
const
|
|
4823
|
+
const ct = (e, r, t) => {
|
|
4824
4824
|
r && !e.classList.contains(t) ? e.classList.add(t) : !r && e.classList.contains(t) && e.classList.remove(t);
|
|
4825
4825
|
};
|
|
4826
|
-
function
|
|
4826
|
+
function Gi() {
|
|
4827
4827
|
const e = this, {
|
|
4828
4828
|
slides: r,
|
|
4829
4829
|
params: t,
|
|
4830
4830
|
slidesEl: n,
|
|
4831
4831
|
activeIndex: i
|
|
4832
|
-
} = e, s = e.virtual && t.virtual.enabled, o = e.grid && t.grid && t.grid.rows > 1, l = (
|
|
4833
|
-
let a,
|
|
4832
|
+
} = e, s = e.virtual && t.virtual.enabled, o = e.grid && t.grid && t.grid.rows > 1, l = (c) => fe(n, `.${t.slideClass}${c}, swiper-slide${c}`)[0];
|
|
4833
|
+
let a, d, p;
|
|
4834
4834
|
if (s)
|
|
4835
4835
|
if (t.loop) {
|
|
4836
|
-
let
|
|
4837
|
-
|
|
4836
|
+
let c = i - e.virtual.slidesBefore;
|
|
4837
|
+
c < 0 && (c = e.virtual.slides.length + c), c >= e.virtual.slides.length && (c -= e.virtual.slides.length), a = l(`[data-swiper-slide-index="${c}"]`);
|
|
4838
4838
|
} else
|
|
4839
4839
|
a = l(`[data-swiper-slide-index="${i}"]`);
|
|
4840
4840
|
else
|
|
4841
|
-
o ? (a = r.find((
|
|
4842
|
-
a && (o || (p = Oi(a, `.${t.slideClass}, swiper-slide`)[0], t.loop && !p && (p = r[0]),
|
|
4843
|
-
|
|
4841
|
+
o ? (a = r.find((c) => c.column === i), p = r.find((c) => c.column === i + 1), d = r.find((c) => c.column === i - 1)) : a = r[i];
|
|
4842
|
+
a && (o || (p = Oi(a, `.${t.slideClass}, swiper-slide`)[0], t.loop && !p && (p = r[0]), d = Pi(a, `.${t.slideClass}, swiper-slide`)[0], t.loop && !d === 0 && (d = r[r.length - 1]))), r.forEach((c) => {
|
|
4843
|
+
ct(c, c === a, t.slideActiveClass), ct(c, c === p, t.slideNextClass), ct(c, c === d, t.slidePrevClass);
|
|
4844
4844
|
}), e.emitSlidesClasses();
|
|
4845
4845
|
}
|
|
4846
4846
|
const Ye = (e, r) => {
|
|
@@ -4867,8 +4867,8 @@ const Ye = (e, r) => {
|
|
|
4867
4867
|
const o = i, l = [o - r];
|
|
4868
4868
|
l.push(...Array.from({
|
|
4869
4869
|
length: r
|
|
4870
|
-
}).map((a,
|
|
4871
|
-
l.includes(a.column) && ut(e,
|
|
4870
|
+
}).map((a, d) => o + n + d)), e.slides.forEach((a, d) => {
|
|
4871
|
+
l.includes(a.column) && ut(e, d);
|
|
4872
4872
|
});
|
|
4873
4873
|
return;
|
|
4874
4874
|
}
|
|
@@ -4882,7 +4882,7 @@ const Ye = (e, r) => {
|
|
|
4882
4882
|
for (let o = Math.max(i - r, 0); o <= Math.min(s + r, t - 1); o += 1)
|
|
4883
4883
|
o !== i && (o > s || o < i) && ut(e, o);
|
|
4884
4884
|
};
|
|
4885
|
-
function
|
|
4885
|
+
function ji(e) {
|
|
4886
4886
|
const {
|
|
4887
4887
|
slidesGrid: r,
|
|
4888
4888
|
params: t
|
|
@@ -4900,30 +4900,30 @@ function Fi(e) {
|
|
|
4900
4900
|
realIndex: o,
|
|
4901
4901
|
snapIndex: l
|
|
4902
4902
|
} = r;
|
|
4903
|
-
let a = e,
|
|
4903
|
+
let a = e, d;
|
|
4904
4904
|
const p = (f) => {
|
|
4905
4905
|
let g = f - r.virtual.slidesBefore;
|
|
4906
4906
|
return g < 0 && (g = r.virtual.slides.length + g), g >= r.virtual.slides.length && (g -= r.virtual.slides.length), g;
|
|
4907
4907
|
};
|
|
4908
|
-
if (typeof a > "u" && (a =
|
|
4909
|
-
|
|
4908
|
+
if (typeof a > "u" && (a = ji(r)), n.indexOf(t) >= 0)
|
|
4909
|
+
d = n.indexOf(t);
|
|
4910
4910
|
else {
|
|
4911
4911
|
const f = Math.min(i.slidesPerGroupSkip, a);
|
|
4912
|
-
|
|
4912
|
+
d = f + Math.floor((a - f) / i.slidesPerGroup);
|
|
4913
4913
|
}
|
|
4914
|
-
if (
|
|
4915
|
-
|
|
4914
|
+
if (d >= n.length && (d = n.length - 1), a === s && !r.params.loop) {
|
|
4915
|
+
d !== l && (r.snapIndex = d, r.emit("snapIndexChange"));
|
|
4916
4916
|
return;
|
|
4917
4917
|
}
|
|
4918
4918
|
if (a === s && r.params.loop && r.virtual && r.params.virtual.enabled) {
|
|
4919
4919
|
r.realIndex = p(a);
|
|
4920
4920
|
return;
|
|
4921
4921
|
}
|
|
4922
|
-
const
|
|
4922
|
+
const c = r.grid && i.grid && i.grid.rows > 1;
|
|
4923
4923
|
let T;
|
|
4924
4924
|
if (r.virtual && i.virtual.enabled && i.loop)
|
|
4925
4925
|
T = p(a);
|
|
4926
|
-
else if (
|
|
4926
|
+
else if (c) {
|
|
4927
4927
|
const f = r.slides.find((b) => b.column === a);
|
|
4928
4928
|
let g = parseInt(f.getAttribute("data-swiper-slide-index"), 10);
|
|
4929
4929
|
Number.isNaN(g) && (g = Math.max(r.slides.indexOf(f), 0)), T = Math.floor(g / i.grid.rows);
|
|
@@ -4934,7 +4934,7 @@ function Fi(e) {
|
|
|
4934
4934
|
T = a;
|
|
4935
4935
|
Object.assign(r, {
|
|
4936
4936
|
previousSnapIndex: l,
|
|
4937
|
-
snapIndex:
|
|
4937
|
+
snapIndex: d,
|
|
4938
4938
|
previousRealIndex: o,
|
|
4939
4939
|
realIndex: T,
|
|
4940
4940
|
previousIndex: s,
|
|
@@ -4967,10 +4967,10 @@ var Hi = {
|
|
|
4967
4967
|
updateSize: _i,
|
|
4968
4968
|
updateSlides: Ni,
|
|
4969
4969
|
updateAutoHeight: Di,
|
|
4970
|
-
updateSlidesOffset:
|
|
4971
|
-
updateSlidesProgress:
|
|
4972
|
-
updateProgress:
|
|
4973
|
-
updateSlidesClasses:
|
|
4970
|
+
updateSlidesOffset: qi,
|
|
4971
|
+
updateSlidesProgress: Bi,
|
|
4972
|
+
updateProgress: $i,
|
|
4973
|
+
updateSlidesClasses: Gi,
|
|
4974
4974
|
updateActiveIndex: Fi,
|
|
4975
4975
|
updateClickedSlide: Vi
|
|
4976
4976
|
};
|
|
@@ -4985,7 +4985,7 @@ function Wi(e = this.isHorizontal() ? "x" : "y") {
|
|
|
4985
4985
|
return n ? -i : i;
|
|
4986
4986
|
if (t.cssMode)
|
|
4987
4987
|
return i;
|
|
4988
|
-
let o =
|
|
4988
|
+
let o = wi(s, e);
|
|
4989
4989
|
return o += r.cssOverflowAdjustment(), n && (o = -o), o || 0;
|
|
4990
4990
|
}
|
|
4991
4991
|
function Yi(e, r) {
|
|
@@ -4996,11 +4996,11 @@ function Yi(e, r) {
|
|
|
4996
4996
|
progress: o
|
|
4997
4997
|
} = t;
|
|
4998
4998
|
let l = 0, a = 0;
|
|
4999
|
-
const
|
|
5000
|
-
t.isHorizontal() ? l = n ? -e : e : a = e, i.roundLengths && (l = Math.floor(l), a = Math.floor(a)), t.previousTranslate = t.translate, t.translate = t.isHorizontal() ? l : a, i.cssMode ? s[t.isHorizontal() ? "scrollLeft" : "scrollTop"] = t.isHorizontal() ? -l : -a : i.virtualTranslate || (t.isHorizontal() ? l -= t.cssOverflowAdjustment() : a -= t.cssOverflowAdjustment(), s.style.transform = `translate3d(${l}px, ${a}px, ${
|
|
4999
|
+
const d = 0;
|
|
5000
|
+
t.isHorizontal() ? l = n ? -e : e : a = e, i.roundLengths && (l = Math.floor(l), a = Math.floor(a)), t.previousTranslate = t.translate, t.translate = t.isHorizontal() ? l : a, i.cssMode ? s[t.isHorizontal() ? "scrollLeft" : "scrollTop"] = t.isHorizontal() ? -l : -a : i.virtualTranslate || (t.isHorizontal() ? l -= t.cssOverflowAdjustment() : a -= t.cssOverflowAdjustment(), s.style.transform = `translate3d(${l}px, ${a}px, ${d}px)`);
|
|
5001
5001
|
let p;
|
|
5002
|
-
const
|
|
5003
|
-
|
|
5002
|
+
const c = t.maxTranslate() - t.minTranslate();
|
|
5003
|
+
c === 0 ? p = 0 : p = (e - t.minTranslate()) / c, p !== o && t.updateProgress(e), t.emit("setTranslate", t.translate, r);
|
|
5004
5004
|
}
|
|
5005
5005
|
function Xi() {
|
|
5006
5006
|
return -this.snapGrid[0];
|
|
@@ -5015,21 +5015,21 @@ function Ki(e = 0, r = this.params.speed, t = !0, n = !0, i) {
|
|
|
5015
5015
|
} = s;
|
|
5016
5016
|
if (s.animating && o.preventInteractionOnTransition)
|
|
5017
5017
|
return !1;
|
|
5018
|
-
const a = s.minTranslate(),
|
|
5018
|
+
const a = s.minTranslate(), d = s.maxTranslate();
|
|
5019
5019
|
let p;
|
|
5020
|
-
if (n && e > a ? p = a : n && e <
|
|
5021
|
-
const
|
|
5020
|
+
if (n && e > a ? p = a : n && e < d ? p = d : p = e, s.updateProgress(p), o.cssMode) {
|
|
5021
|
+
const c = s.isHorizontal();
|
|
5022
5022
|
if (r === 0)
|
|
5023
|
-
l[
|
|
5023
|
+
l[c ? "scrollLeft" : "scrollTop"] = -p;
|
|
5024
5024
|
else {
|
|
5025
5025
|
if (!s.support.smoothScroll)
|
|
5026
5026
|
return Wr({
|
|
5027
5027
|
swiper: s,
|
|
5028
5028
|
targetPosition: -p,
|
|
5029
|
-
side:
|
|
5029
|
+
side: c ? "left" : "top"
|
|
5030
5030
|
}), !0;
|
|
5031
5031
|
l.scrollTo({
|
|
5032
|
-
[
|
|
5032
|
+
[c ? "left" : "top"]: -p,
|
|
5033
5033
|
behavior: "smooth"
|
|
5034
5034
|
});
|
|
5035
5035
|
}
|
|
@@ -5098,9 +5098,9 @@ function rs(e = 0, r, t = !0, n, i) {
|
|
|
5098
5098
|
const {
|
|
5099
5099
|
params: l,
|
|
5100
5100
|
snapGrid: a,
|
|
5101
|
-
slidesGrid:
|
|
5101
|
+
slidesGrid: d,
|
|
5102
5102
|
previousIndex: p,
|
|
5103
|
-
activeIndex:
|
|
5103
|
+
activeIndex: c,
|
|
5104
5104
|
rtlTranslate: T,
|
|
5105
5105
|
wrapperEl: f,
|
|
5106
5106
|
enabled: g
|
|
@@ -5113,15 +5113,15 @@ function rs(e = 0, r, t = !0, n, i) {
|
|
|
5113
5113
|
x >= a.length && (x = a.length - 1);
|
|
5114
5114
|
const u = -a[x];
|
|
5115
5115
|
if (l.normalizeSlideIndex)
|
|
5116
|
-
for (let L = 0; L <
|
|
5117
|
-
const h = -Math.floor(u * 100), _ = Math.floor(
|
|
5118
|
-
typeof
|
|
5116
|
+
for (let L = 0; L < d.length; L += 1) {
|
|
5117
|
+
const h = -Math.floor(u * 100), _ = Math.floor(d[L] * 100), O = Math.floor(d[L + 1] * 100);
|
|
5118
|
+
typeof d[L + 1] < "u" ? h >= _ && h < O - (O - _) / 2 ? o = L : h >= _ && h < O && (o = L + 1) : h >= _ && (o = L);
|
|
5119
5119
|
}
|
|
5120
|
-
if (s.initialized && o !==
|
|
5120
|
+
if (s.initialized && o !== c && (!s.allowSlideNext && (T ? u > s.translate && u > s.minTranslate() : u < s.translate && u < s.minTranslate()) || !s.allowSlidePrev && u > s.translate && u > s.maxTranslate() && (c || 0) !== o))
|
|
5121
5121
|
return !1;
|
|
5122
5122
|
o !== (p || 0) && t && s.emit("beforeSlideChangeStart"), s.updateProgress(u);
|
|
5123
5123
|
let m;
|
|
5124
|
-
o >
|
|
5124
|
+
o > c ? m = "next" : o < c ? m = "prev" : m = "reset";
|
|
5125
5125
|
const v = s.virtual && s.params.virtual.enabled;
|
|
5126
5126
|
if (!(v && i) && (T && -u === s.translate || !T && u === s.translate))
|
|
5127
5127
|
return s.updateActiveIndex(o), l.autoHeight && s.updateAutoHeight(), s.updateSlidesClasses(), l.effect !== "slide" && s.setTranslate(u), m !== "reset" && (s.transitionStart(t, m), s.transitionEnd(t, m)), !1;
|
|
@@ -5170,10 +5170,10 @@ function ns(e = 0, r, t = !0, n) {
|
|
|
5170
5170
|
} else
|
|
5171
5171
|
l = i.getSlideIndexByData(o);
|
|
5172
5172
|
const a = s ? Math.ceil(i.slides.length / i.params.grid.rows) : i.slides.length, {
|
|
5173
|
-
centeredSlides:
|
|
5173
|
+
centeredSlides: d,
|
|
5174
5174
|
slidesOffsetBefore: p,
|
|
5175
|
-
slidesOffsetAfter:
|
|
5176
|
-
} = i.params, T =
|
|
5175
|
+
slidesOffsetAfter: c
|
|
5176
|
+
} = i.params, T = d || !!p || !!c;
|
|
5177
5177
|
let f = i.params.slidesPerView;
|
|
5178
5178
|
f === "auto" ? f = i.slidesPerViewDynamic() : (f = Math.ceil(parseFloat(i.params.slidesPerView, 10)), T && f % 2 === 0 && (f = f + 1));
|
|
5179
5179
|
let g = a - l < f;
|
|
@@ -5206,9 +5206,9 @@ function is(e, r = !0, t) {
|
|
|
5206
5206
|
typeof e > "u" && (e = n.params.speed);
|
|
5207
5207
|
let l = s.slidesPerGroup;
|
|
5208
5208
|
s.slidesPerView === "auto" && s.slidesPerGroup === 1 && s.slidesPerGroupAuto && (l = Math.max(n.slidesPerViewDynamic("current", !0), 1));
|
|
5209
|
-
const a = n.activeIndex < s.slidesPerGroupSkip ? 1 : l,
|
|
5209
|
+
const a = n.activeIndex < s.slidesPerGroupSkip ? 1 : l, d = n.virtual && s.virtual.enabled;
|
|
5210
5210
|
if (s.loop) {
|
|
5211
|
-
if (o && !
|
|
5211
|
+
if (o && !d && s.loopPreventsSliding) return !1;
|
|
5212
5212
|
if (n.loopFix({
|
|
5213
5213
|
direction: "next"
|
|
5214
5214
|
}), n._clientLeft = n.wrapperEl.clientLeft, n.activeIndex === n.slides.length - 1 && s.cssMode)
|
|
@@ -5225,27 +5225,27 @@ function ss(e, r = !0, t) {
|
|
|
5225
5225
|
slidesGrid: o,
|
|
5226
5226
|
rtlTranslate: l,
|
|
5227
5227
|
enabled: a,
|
|
5228
|
-
animating:
|
|
5228
|
+
animating: d
|
|
5229
5229
|
} = n;
|
|
5230
5230
|
if (!a || n.destroyed) return n;
|
|
5231
5231
|
typeof e > "u" && (e = n.params.speed);
|
|
5232
5232
|
const p = n.virtual && i.virtual.enabled;
|
|
5233
5233
|
if (i.loop) {
|
|
5234
|
-
if (
|
|
5234
|
+
if (d && !p && i.loopPreventsSliding) return !1;
|
|
5235
5235
|
n.loopFix({
|
|
5236
5236
|
direction: "prev"
|
|
5237
5237
|
}), n._clientLeft = n.wrapperEl.clientLeft;
|
|
5238
5238
|
}
|
|
5239
|
-
const
|
|
5239
|
+
const c = l ? n.translate : -n.translate;
|
|
5240
5240
|
function T(m) {
|
|
5241
5241
|
return m < 0 ? -Math.floor(Math.abs(m)) : Math.floor(m);
|
|
5242
5242
|
}
|
|
5243
|
-
const f = T(
|
|
5243
|
+
const f = T(c), g = s.map((m) => T(m)), b = i.freeMode && i.freeMode.enabled;
|
|
5244
5244
|
let x = s[g.indexOf(f) - 1];
|
|
5245
5245
|
if (typeof x > "u" && (i.cssMode || b)) {
|
|
5246
5246
|
let m;
|
|
5247
|
-
s.forEach((v,
|
|
5248
|
-
f >= v && (m =
|
|
5247
|
+
s.forEach((v, E) => {
|
|
5248
|
+
f >= v && (m = E);
|
|
5249
5249
|
}), typeof m < "u" && (x = b ? s[m] : s[m > 0 ? m - 1 : m]);
|
|
5250
5250
|
}
|
|
5251
5251
|
let u = 0;
|
|
@@ -5270,11 +5270,11 @@ function os(e, r = !0, t, n = 0.5) {
|
|
|
5270
5270
|
let s = i.activeIndex;
|
|
5271
5271
|
const o = Math.min(i.params.slidesPerGroupSkip, s), l = o + Math.floor((s - o) / i.params.slidesPerGroup), a = i.rtlTranslate ? i.translate : -i.translate;
|
|
5272
5272
|
if (a >= i.snapGrid[l]) {
|
|
5273
|
-
const
|
|
5274
|
-
a -
|
|
5273
|
+
const d = i.snapGrid[l], p = i.snapGrid[l + 1];
|
|
5274
|
+
a - d > (p - d) * n && (s += i.params.slidesPerGroup);
|
|
5275
5275
|
} else {
|
|
5276
|
-
const
|
|
5277
|
-
a -
|
|
5276
|
+
const d = i.snapGrid[l - 1], p = i.snapGrid[l];
|
|
5277
|
+
a - d <= (p - d) * n && (s -= i.params.slidesPerGroup);
|
|
5278
5278
|
}
|
|
5279
5279
|
return s = Math.max(s, 0), s = Math.min(s, i.slidesGrid.length - 1), i.slideTo(s, e, r, t);
|
|
5280
5280
|
}
|
|
@@ -5295,7 +5295,7 @@ function ls() {
|
|
|
5295
5295
|
} else
|
|
5296
5296
|
e.slideTo(i);
|
|
5297
5297
|
}
|
|
5298
|
-
var
|
|
5298
|
+
var ds = {
|
|
5299
5299
|
slideTo: rs,
|
|
5300
5300
|
slideToLoop: ns,
|
|
5301
5301
|
slideNext: is,
|
|
@@ -5304,7 +5304,7 @@ var cs = {
|
|
|
5304
5304
|
slideToClosest: os,
|
|
5305
5305
|
slideToClickedSlide: ls
|
|
5306
5306
|
};
|
|
5307
|
-
function
|
|
5307
|
+
function cs(e, r) {
|
|
5308
5308
|
const t = this, {
|
|
5309
5309
|
params: n,
|
|
5310
5310
|
slidesEl: i
|
|
@@ -5321,23 +5321,23 @@ function ds(e, r) {
|
|
|
5321
5321
|
}), f.length > 0 && (t.recalcSlides(), t.updateSlides());
|
|
5322
5322
|
}, l = t.grid && n.grid && n.grid.rows > 1;
|
|
5323
5323
|
n.loopAddBlankSlides && (n.slidesPerGroup > 1 || l) && o();
|
|
5324
|
-
const a = n.slidesPerGroup * (l ? n.grid.rows : 1),
|
|
5324
|
+
const a = n.slidesPerGroup * (l ? n.grid.rows : 1), d = t.slides.length % a !== 0, p = l && t.slides.length % n.grid.rows !== 0, c = (f) => {
|
|
5325
5325
|
for (let g = 0; g < f; g += 1) {
|
|
5326
5326
|
const b = t.isElement ? Ne("swiper-slide", [n.slideBlankClass]) : Ne("div", [n.slideClass, n.slideBlankClass]);
|
|
5327
5327
|
t.slidesEl.append(b);
|
|
5328
5328
|
}
|
|
5329
5329
|
};
|
|
5330
|
-
if (
|
|
5330
|
+
if (d) {
|
|
5331
5331
|
if (n.loopAddBlankSlides) {
|
|
5332
5332
|
const f = a - t.slides.length % a;
|
|
5333
|
-
|
|
5333
|
+
c(f), t.recalcSlides(), t.updateSlides();
|
|
5334
5334
|
} else
|
|
5335
5335
|
Ke("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
5336
5336
|
s();
|
|
5337
5337
|
} else if (p) {
|
|
5338
5338
|
if (n.loopAddBlankSlides) {
|
|
5339
5339
|
const f = n.grid.rows - t.slides.length % n.grid.rows;
|
|
5340
|
-
|
|
5340
|
+
c(f), t.recalcSlides(), t.updateSlides();
|
|
5341
5341
|
} else
|
|
5342
5342
|
Ke("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
|
|
5343
5343
|
s();
|
|
@@ -5364,9 +5364,9 @@ function us({
|
|
|
5364
5364
|
if (!a.params.loop) return;
|
|
5365
5365
|
a.emit("beforeLoopFix");
|
|
5366
5366
|
const {
|
|
5367
|
-
slides:
|
|
5367
|
+
slides: d,
|
|
5368
5368
|
allowSlidePrev: p,
|
|
5369
|
-
allowSlideNext:
|
|
5369
|
+
allowSlideNext: c,
|
|
5370
5370
|
slidesEl: T,
|
|
5371
5371
|
params: f
|
|
5372
5372
|
} = a, {
|
|
@@ -5376,50 +5376,50 @@ function us({
|
|
|
5376
5376
|
initialSlide: u
|
|
5377
5377
|
} = f, m = g || !!b || !!x;
|
|
5378
5378
|
if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && f.virtual.enabled) {
|
|
5379
|
-
r && (!m && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : m && a.snapIndex < f.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = p, a.allowSlideNext =
|
|
5379
|
+
r && (!m && a.snapIndex === 0 ? a.slideTo(a.virtual.slides.length, 0, !1, !0) : m && a.snapIndex < f.slidesPerView ? a.slideTo(a.virtual.slides.length + a.snapIndex, 0, !1, !0) : a.snapIndex === a.snapGrid.length - 1 && a.slideTo(a.virtual.slidesBefore, 0, !1, !0)), a.allowSlidePrev = p, a.allowSlideNext = c, a.emit("loopFix");
|
|
5380
5380
|
return;
|
|
5381
5381
|
}
|
|
5382
5382
|
let v = f.slidesPerView;
|
|
5383
5383
|
v === "auto" ? v = a.slidesPerViewDynamic() : (v = Math.ceil(parseFloat(f.slidesPerView, 10)), m && v % 2 === 0 && (v = v + 1));
|
|
5384
|
-
const
|
|
5385
|
-
let y = m ? Math.max(
|
|
5386
|
-
y %
|
|
5384
|
+
const E = f.slidesPerGroupAuto ? v : f.slidesPerGroup;
|
|
5385
|
+
let y = m ? Math.max(E, Math.ceil(v / 2)) : E;
|
|
5386
|
+
y % E !== 0 && (y += E - y % E), y += f.loopAdditionalSlides, a.loopedSlides = y;
|
|
5387
5387
|
const A = a.grid && f.grid && f.grid.rows > 1;
|
|
5388
|
-
|
|
5389
|
-
const L = [], h = [], _ = A ? Math.ceil(
|
|
5388
|
+
d.length < v + y || a.params.effect === "cards" && d.length < v + y * 2 ? Ke("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : A && f.grid.fill === "row" && Ke("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
5389
|
+
const L = [], h = [], _ = A ? Math.ceil(d.length / f.grid.rows) : d.length, O = s && _ - u < v && !m;
|
|
5390
5390
|
let k = O ? u : a.activeIndex;
|
|
5391
|
-
typeof i > "u" ? i = a.getSlideIndex(
|
|
5391
|
+
typeof i > "u" ? i = a.getSlideIndex(d.find((S) => S.classList.contains(f.slideActiveClass))) : k = i;
|
|
5392
5392
|
const R = t === "next" || !t, F = t === "prev" || !t;
|
|
5393
5393
|
let V = 0, Q = 0;
|
|
5394
|
-
const M = (A ?
|
|
5394
|
+
const M = (A ? d[i].column : i) + (m && typeof n > "u" ? -v / 2 + 0.5 : 0);
|
|
5395
5395
|
if (M < y) {
|
|
5396
|
-
V = Math.max(y - M,
|
|
5396
|
+
V = Math.max(y - M, E);
|
|
5397
5397
|
for (let S = 0; S < y - M; S += 1) {
|
|
5398
|
-
const
|
|
5398
|
+
const q = S - Math.floor(S / _) * _;
|
|
5399
5399
|
if (A) {
|
|
5400
|
-
const C = _ -
|
|
5401
|
-
for (let I =
|
|
5402
|
-
|
|
5400
|
+
const C = _ - q - 1;
|
|
5401
|
+
for (let I = d.length - 1; I >= 0; I -= 1)
|
|
5402
|
+
d[I].column === C && L.push(I);
|
|
5403
5403
|
} else
|
|
5404
|
-
L.push(_ -
|
|
5404
|
+
L.push(_ - q - 1);
|
|
5405
5405
|
}
|
|
5406
5406
|
} else if (M + v > _ - y) {
|
|
5407
|
-
Q = Math.max(M - (_ - y * 2),
|
|
5407
|
+
Q = Math.max(M - (_ - y * 2), E), O && (Q = Math.max(Q, v - _ + u + 1));
|
|
5408
5408
|
for (let S = 0; S < Q; S += 1) {
|
|
5409
|
-
const
|
|
5410
|
-
A ?
|
|
5411
|
-
C.column ===
|
|
5412
|
-
}) : h.push(
|
|
5409
|
+
const q = S - Math.floor(S / _) * _;
|
|
5410
|
+
A ? d.forEach((C, I) => {
|
|
5411
|
+
C.column === q && h.push(I);
|
|
5412
|
+
}) : h.push(q);
|
|
5413
5413
|
}
|
|
5414
5414
|
}
|
|
5415
5415
|
if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
5416
5416
|
a.__preventObserver__ = !1;
|
|
5417
|
-
}), a.params.effect === "cards" &&
|
|
5418
|
-
|
|
5417
|
+
}), a.params.effect === "cards" && d.length < v + y * 2 && (h.includes(i) && h.splice(h.indexOf(i), 1), L.includes(i) && L.splice(L.indexOf(i), 1)), F && L.forEach((S) => {
|
|
5418
|
+
d[S].swiperLoopMoveDOM = !0, T.prepend(d[S]), d[S].swiperLoopMoveDOM = !1;
|
|
5419
5419
|
}), R && h.forEach((S) => {
|
|
5420
|
-
|
|
5421
|
-
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 && F || h.length > 0 && R) && a.slides.forEach((S,
|
|
5422
|
-
a.grid.updateSlide(
|
|
5420
|
+
d[S].swiperLoopMoveDOM = !0, T.append(d[S]), d[S].swiperLoopMoveDOM = !1;
|
|
5421
|
+
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 && F || h.length > 0 && R) && a.slides.forEach((S, q) => {
|
|
5422
|
+
a.grid.updateSlide(q, S, a.slides);
|
|
5423
5423
|
}), f.watchSlidesProgress && a.updateSlidesOffset(), r) {
|
|
5424
5424
|
if (L.length > 0 && F) {
|
|
5425
5425
|
if (typeof e > "u") {
|
|
@@ -5438,7 +5438,7 @@ function us({
|
|
|
5438
5438
|
a.slideTo(a.activeIndex - S, 0, !1, !0);
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
5441
|
-
if (a.allowSlidePrev = p, a.allowSlideNext =
|
|
5441
|
+
if (a.allowSlidePrev = p, a.allowSlideNext = c, a.controller && a.controller.control && !o) {
|
|
5442
5442
|
const S = {
|
|
5443
5443
|
slideRealIndex: e,
|
|
5444
5444
|
direction: t,
|
|
@@ -5446,10 +5446,10 @@ function us({
|
|
|
5446
5446
|
activeSlideIndex: i,
|
|
5447
5447
|
byController: !0
|
|
5448
5448
|
};
|
|
5449
|
-
Array.isArray(a.controller.control) ? a.controller.control.forEach((
|
|
5450
|
-
!
|
|
5449
|
+
Array.isArray(a.controller.control) ? a.controller.control.forEach((q) => {
|
|
5450
|
+
!q.destroyed && q.params.loop && q.loopFix({
|
|
5451
5451
|
...S,
|
|
5452
|
-
slideTo:
|
|
5452
|
+
slideTo: q.params.slidesPerView === f.slidesPerView ? r : !1
|
|
5453
5453
|
});
|
|
5454
5454
|
}) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
|
|
5455
5455
|
...S,
|
|
@@ -5476,7 +5476,7 @@ function fs() {
|
|
|
5476
5476
|
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
5477
5477
|
}
|
|
5478
5478
|
var ps = {
|
|
5479
|
-
loopCreate:
|
|
5479
|
+
loopCreate: cs,
|
|
5480
5480
|
loopFix: us,
|
|
5481
5481
|
loopDestroy: fs
|
|
5482
5482
|
};
|
|
@@ -5500,7 +5500,7 @@ var hs = {
|
|
|
5500
5500
|
};
|
|
5501
5501
|
function vs(e, r = this) {
|
|
5502
5502
|
function t(n) {
|
|
5503
|
-
if (!n || n ===
|
|
5503
|
+
if (!n || n === ce() || n === ae()) return null;
|
|
5504
5504
|
n.assignedSlot && (n = n.assignedSlot);
|
|
5505
5505
|
const i = n.closest(e);
|
|
5506
5506
|
return !i && !n.getRootNode ? null : i || t(n.getRootNode().host);
|
|
@@ -5514,7 +5514,7 @@ function sr(e, r, t) {
|
|
|
5514
5514
|
return s && (t <= o || t >= n.innerWidth - o) ? s === "prevent" ? (r.preventDefault(), !0) : !1 : !0;
|
|
5515
5515
|
}
|
|
5516
5516
|
function bs(e) {
|
|
5517
|
-
const r = this, t =
|
|
5517
|
+
const r = this, t = ce();
|
|
5518
5518
|
let n = e;
|
|
5519
5519
|
n.originalEvent && (n = n.originalEvent);
|
|
5520
5520
|
const i = r.touchEventsData;
|
|
@@ -5537,10 +5537,10 @@ function bs(e) {
|
|
|
5537
5537
|
!r.animating && s.cssMode && s.loop && r.loopFix();
|
|
5538
5538
|
let a = n.target;
|
|
5539
5539
|
if (s.touchEventsTarget === "wrapper" && !Mi(a, r.wrapperEl) || "which" in n && n.which === 3 || "button" in n && n.button > 0 || i.isTouched && i.isMoved) return;
|
|
5540
|
-
const
|
|
5541
|
-
|
|
5542
|
-
const
|
|
5543
|
-
if (s.noSwiping && (T ? vs(
|
|
5540
|
+
const d = !!s.noSwipingClass && s.noSwipingClass !== "", p = n.composedPath ? n.composedPath() : n.path;
|
|
5541
|
+
d && n.target && n.target.shadowRoot && p && (a = p[0]);
|
|
5542
|
+
const c = s.noSwipingSelector ? s.noSwipingSelector : `.${s.noSwipingClass}`, T = !!(n.target && n.target.shadowRoot);
|
|
5543
|
+
if (s.noSwiping && (T ? vs(c, a) : a.closest(c))) {
|
|
5544
5544
|
r.allowClick = !0;
|
|
5545
5545
|
return;
|
|
5546
5546
|
}
|
|
@@ -5563,7 +5563,7 @@ function bs(e) {
|
|
|
5563
5563
|
(s.touchStartForcePreventDefault || x) && !a.isContentEditable && n.preventDefault(), s.freeMode && s.freeMode.enabled && r.freeMode && r.animating && !s.cssMode && r.freeMode.onTouchStart(), r.emit("touchStart", n);
|
|
5564
5564
|
}
|
|
5565
5565
|
function ys(e) {
|
|
5566
|
-
const r =
|
|
5566
|
+
const r = ce(), t = this, n = t.touchEventsData, {
|
|
5567
5567
|
params: i,
|
|
5568
5568
|
touches: s,
|
|
5569
5569
|
rtlTranslate: o,
|
|
@@ -5573,32 +5573,32 @@ function ys(e) {
|
|
|
5573
5573
|
let a = e;
|
|
5574
5574
|
if (a.originalEvent && (a = a.originalEvent), a.type === "pointermove" && (n.touchId !== null || a.pointerId !== n.pointerId))
|
|
5575
5575
|
return;
|
|
5576
|
-
let
|
|
5576
|
+
let d;
|
|
5577
5577
|
if (a.type === "touchmove") {
|
|
5578
|
-
if (
|
|
5578
|
+
if (d = [...a.changedTouches].find((y) => y.identifier === n.touchId), !d || d.identifier !== n.touchId) return;
|
|
5579
5579
|
} else
|
|
5580
|
-
|
|
5580
|
+
d = a;
|
|
5581
5581
|
if (!n.isTouched) {
|
|
5582
5582
|
n.startMoving && n.isScrolling && t.emit("touchMoveOpposite", a);
|
|
5583
5583
|
return;
|
|
5584
5584
|
}
|
|
5585
|
-
const p =
|
|
5585
|
+
const p = d.pageX, c = d.pageY;
|
|
5586
5586
|
if (a.preventedByNestedSwiper) {
|
|
5587
|
-
s.startX = p, s.startY =
|
|
5587
|
+
s.startX = p, s.startY = c;
|
|
5588
5588
|
return;
|
|
5589
5589
|
}
|
|
5590
5590
|
if (!t.allowTouchMove) {
|
|
5591
5591
|
a.target.matches(n.focusableElements) || (t.allowClick = !1), n.isTouched && (Object.assign(s, {
|
|
5592
5592
|
startX: p,
|
|
5593
|
-
startY:
|
|
5593
|
+
startY: c,
|
|
5594
5594
|
currentX: p,
|
|
5595
|
-
currentY:
|
|
5595
|
+
currentY: c
|
|
5596
5596
|
}), n.touchStartTime = Ue());
|
|
5597
5597
|
return;
|
|
5598
5598
|
}
|
|
5599
5599
|
if (i.touchReleaseOnEdges && !i.loop)
|
|
5600
5600
|
if (t.isVertical()) {
|
|
5601
|
-
if (
|
|
5601
|
+
if (c < s.startY && t.translate <= t.maxTranslate() || c > s.startY && t.translate >= t.minTranslate()) {
|
|
5602
5602
|
n.isTouched = !1, n.isMoved = !1;
|
|
5603
5603
|
return;
|
|
5604
5604
|
}
|
|
@@ -5612,7 +5612,7 @@ function ys(e) {
|
|
|
5612
5612
|
n.isMoved = !0, t.allowClick = !1;
|
|
5613
5613
|
return;
|
|
5614
5614
|
}
|
|
5615
|
-
n.allowTouchCallbacks && t.emit("touchMove", a), s.previousX = s.currentX, s.previousY = s.currentY, s.currentX = p, s.currentY =
|
|
5615
|
+
n.allowTouchCallbacks && t.emit("touchMove", a), s.previousX = s.currentX, s.previousY = s.currentY, s.currentX = p, s.currentY = c;
|
|
5616
5616
|
const T = s.currentX - s.startX, f = s.currentY - s.startY;
|
|
5617
5617
|
if (t.params.threshold && Math.sqrt(T ** 2 + f ** 2) < t.params.threshold) return;
|
|
5618
5618
|
if (typeof n.isScrolling > "u") {
|
|
@@ -5649,24 +5649,24 @@ function ys(e) {
|
|
|
5649
5649
|
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && x !== t.touchesDirection && u && m && Math.abs(g) >= 1) {
|
|
5650
5650
|
Object.assign(s, {
|
|
5651
5651
|
startX: p,
|
|
5652
|
-
startY:
|
|
5652
|
+
startY: c,
|
|
5653
5653
|
currentX: p,
|
|
5654
|
-
currentY:
|
|
5654
|
+
currentY: c,
|
|
5655
5655
|
startTranslate: n.currentTranslate
|
|
5656
5656
|
}), n.loopSwapReset = !0, n.startTranslate = n.currentTranslate;
|
|
5657
5657
|
return;
|
|
5658
5658
|
}
|
|
5659
5659
|
t.emit("sliderMove", a), n.isMoved = !0, n.currentTranslate = g + n.startTranslate;
|
|
5660
|
-
let v = !0,
|
|
5661
|
-
if (i.touchReleaseOnEdges && (
|
|
5660
|
+
let v = !0, E = i.resistanceRatio;
|
|
5661
|
+
if (i.touchReleaseOnEdges && (E = 0), g > 0 ? (u && m && n.allowThresholdMove && n.currentTranslate > (i.centeredSlides ? t.minTranslate() - t.slidesSizesGrid[t.activeIndex + 1] - (i.slidesPerView !== "auto" && t.slides.length - i.slidesPerView >= 2 ? t.slidesSizesGrid[t.activeIndex + 1] + t.params.spaceBetween : 0) - t.params.spaceBetween : t.minTranslate()) && t.loopFix({
|
|
5662
5662
|
direction: "prev",
|
|
5663
5663
|
setTranslate: !0,
|
|
5664
5664
|
activeSlideIndex: 0
|
|
5665
|
-
}), n.currentTranslate > t.minTranslate() && (v = !1, i.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + n.startTranslate + g) **
|
|
5665
|
+
}), n.currentTranslate > t.minTranslate() && (v = !1, i.resistance && (n.currentTranslate = t.minTranslate() - 1 + (-t.minTranslate() + n.startTranslate + g) ** E))) : g < 0 && (u && m && n.allowThresholdMove && n.currentTranslate < (i.centeredSlides ? t.maxTranslate() + t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween + (i.slidesPerView !== "auto" && t.slides.length - i.slidesPerView >= 2 ? t.slidesSizesGrid[t.slidesSizesGrid.length - 1] + t.params.spaceBetween : 0) : t.maxTranslate()) && t.loopFix({
|
|
5666
5666
|
direction: "next",
|
|
5667
5667
|
setTranslate: !0,
|
|
5668
5668
|
activeSlideIndex: t.slides.length - (i.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(parseFloat(i.slidesPerView, 10)))
|
|
5669
|
-
}), n.currentTranslate < t.maxTranslate() && (v = !1, i.resistance && (n.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - n.startTranslate - g) **
|
|
5669
|
+
}), n.currentTranslate < t.maxTranslate() && (v = !1, i.resistance && (n.currentTranslate = t.maxTranslate() + 1 - (t.maxTranslate() - n.startTranslate - g) ** E))), v && (a.preventedByNestedSwiper = !0), !t.allowSlideNext && t.swipeDirection === "next" && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), !t.allowSlidePrev && t.swipeDirection === "prev" && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), !t.allowSlidePrev && !t.allowSlideNext && (n.currentTranslate = n.startTranslate), i.threshold > 0)
|
|
5670
5670
|
if (Math.abs(g) > i.threshold || n.allowThresholdMove) {
|
|
5671
5671
|
if (!n.allowThresholdMove) {
|
|
5672
5672
|
n.allowThresholdMove = !0, s.startX = s.currentX, s.startY = s.currentY, n.currentTranslate = n.startTranslate, s.diff = t.isHorizontal() ? s.currentX - s.startX : s.currentY - s.startY;
|
|
@@ -5696,7 +5696,7 @@ function xs(e) {
|
|
|
5696
5696
|
params: o,
|
|
5697
5697
|
touches: l,
|
|
5698
5698
|
rtlTranslate: a,
|
|
5699
|
-
slidesGrid:
|
|
5699
|
+
slidesGrid: d,
|
|
5700
5700
|
enabled: p
|
|
5701
5701
|
} = r;
|
|
5702
5702
|
if (!p || !o.simulateTouch && n.pointerType === "mouse") return;
|
|
@@ -5705,10 +5705,10 @@ function xs(e) {
|
|
|
5705
5705
|
return;
|
|
5706
5706
|
}
|
|
5707
5707
|
o.grabCursor && t.isMoved && t.isTouched && (r.allowSlideNext === !0 || r.allowSlidePrev === !0) && r.setGrabCursor(!1);
|
|
5708
|
-
const
|
|
5708
|
+
const c = Ue(), T = c - t.touchStartTime;
|
|
5709
5709
|
if (r.allowClick) {
|
|
5710
5710
|
const y = n.path || n.composedPath && n.composedPath();
|
|
5711
|
-
r.updateClickedSlide(y && y[0] || n.target, y), r.emit("tap click", n), T < 300 &&
|
|
5711
|
+
r.updateClickedSlide(y && y[0] || n.target, y), r.emit("tap click", n), T < 300 && c - t.lastClickTime < 300 && r.emit("doubleTap doubleClick", n);
|
|
5712
5712
|
}
|
|
5713
5713
|
if (t.lastClickTime = Ue(), Hr(() => {
|
|
5714
5714
|
r.destroyed || (r.allowClick = !0);
|
|
@@ -5728,25 +5728,25 @@ function xs(e) {
|
|
|
5728
5728
|
}
|
|
5729
5729
|
const g = f >= -r.maxTranslate() && !r.params.loop;
|
|
5730
5730
|
let b = 0, x = r.slidesSizesGrid[0];
|
|
5731
|
-
for (let y = 0; y <
|
|
5731
|
+
for (let y = 0; y < d.length; y += y < o.slidesPerGroupSkip ? 1 : o.slidesPerGroup) {
|
|
5732
5732
|
const A = y < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
5733
|
-
typeof
|
|
5733
|
+
typeof d[y + A] < "u" ? (g || f >= d[y] && f < d[y + A]) && (b = y, x = d[y + A] - d[y]) : (g || f >= d[y]) && (b = y, x = d[d.length - 1] - d[d.length - 2]);
|
|
5734
5734
|
}
|
|
5735
5735
|
let u = null, m = null;
|
|
5736
5736
|
o.rewind && (r.isBeginning ? m = o.virtual && o.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1 : r.isEnd && (u = 0));
|
|
5737
|
-
const v = (f -
|
|
5737
|
+
const v = (f - d[b]) / x, E = b < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
5738
5738
|
if (T > o.longSwipesMs) {
|
|
5739
5739
|
if (!o.longSwipes) {
|
|
5740
5740
|
r.slideTo(r.activeIndex);
|
|
5741
5741
|
return;
|
|
5742
5742
|
}
|
|
5743
|
-
r.swipeDirection === "next" && (v >= o.longSwipesRatio ? r.slideTo(o.rewind && r.isEnd ? u : b +
|
|
5743
|
+
r.swipeDirection === "next" && (v >= o.longSwipesRatio ? r.slideTo(o.rewind && r.isEnd ? u : b + E) : r.slideTo(b)), r.swipeDirection === "prev" && (v > 1 - o.longSwipesRatio ? r.slideTo(b + E) : m !== null && v < 0 && Math.abs(v) > o.longSwipesRatio ? r.slideTo(m) : r.slideTo(b));
|
|
5744
5744
|
} else {
|
|
5745
5745
|
if (!o.shortSwipes) {
|
|
5746
5746
|
r.slideTo(r.activeIndex);
|
|
5747
5747
|
return;
|
|
5748
5748
|
}
|
|
5749
|
-
r.navigation && (n.target === r.navigation.nextEl || n.target === r.navigation.prevEl) ? n.target === r.navigation.nextEl ? r.slideTo(b +
|
|
5749
|
+
r.navigation && (n.target === r.navigation.nextEl || n.target === r.navigation.prevEl) ? n.target === r.navigation.nextEl ? r.slideTo(b + E) : r.slideTo(b) : (r.swipeDirection === "next" && r.slideTo(u !== null ? u : b + E), r.swipeDirection === "prev" && r.slideTo(m !== null ? m : b));
|
|
5750
5750
|
}
|
|
5751
5751
|
}
|
|
5752
5752
|
function ar() {
|
|
@@ -5783,21 +5783,21 @@ function Ts() {
|
|
|
5783
5783
|
const s = e.maxTranslate() - e.minTranslate();
|
|
5784
5784
|
s === 0 ? i = 0 : i = (e.translate - e.minTranslate()) / s, i !== e.progress && e.updateProgress(t ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
|
|
5785
5785
|
}
|
|
5786
|
-
function
|
|
5786
|
+
function ws(e) {
|
|
5787
5787
|
const r = this;
|
|
5788
5788
|
Ye(r, e.target), !(r.params.cssMode || r.params.slidesPerView !== "auto" && !r.params.autoHeight) && r.update();
|
|
5789
5789
|
}
|
|
5790
|
-
function
|
|
5790
|
+
function Es() {
|
|
5791
5791
|
const e = this;
|
|
5792
5792
|
e.documentTouchHandlerProceeded || (e.documentTouchHandlerProceeded = !0, e.params.touchReleaseOnEdges && (e.el.style.touchAction = "auto"));
|
|
5793
5793
|
}
|
|
5794
5794
|
const Zr = (e, r) => {
|
|
5795
|
-
const t =
|
|
5795
|
+
const t = ce(), {
|
|
5796
5796
|
params: n,
|
|
5797
5797
|
el: i,
|
|
5798
5798
|
wrapperEl: s,
|
|
5799
5799
|
device: o
|
|
5800
|
-
} = e, l = !!n.nested, a = r === "on" ? "addEventListener" : "removeEventListener",
|
|
5800
|
+
} = e, l = !!n.nested, a = r === "on" ? "addEventListener" : "removeEventListener", d = r;
|
|
5801
5801
|
!i || typeof i == "string" || (t[a]("touchstart", e.onDocumentTouchStart, {
|
|
5802
5802
|
passive: !1,
|
|
5803
5803
|
capture: l
|
|
@@ -5825,7 +5825,7 @@ const Zr = (e, r) => {
|
|
|
5825
5825
|
passive: !0
|
|
5826
5826
|
}), t[a]("contextmenu", e.onTouchEnd, {
|
|
5827
5827
|
passive: !0
|
|
5828
|
-
}), (n.preventClicks || n.preventClicksPropagation) && i[a]("click", e.onClick, !0), n.cssMode && s[a]("scroll", e.onScroll), n.updateOnWindowResize ? e[
|
|
5828
|
+
}), (n.preventClicks || n.preventClicksPropagation) && i[a]("click", e.onClick, !0), n.cssMode && s[a]("scroll", e.onScroll), n.updateOnWindowResize ? e[d](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", ar, !0) : e[d]("observerUpdate", ar, !0), i[a]("load", e.onLoad, {
|
|
5829
5829
|
capture: !0
|
|
5830
5830
|
}));
|
|
5831
5831
|
};
|
|
@@ -5833,7 +5833,7 @@ function Cs() {
|
|
|
5833
5833
|
const e = this, {
|
|
5834
5834
|
params: r
|
|
5835
5835
|
} = e;
|
|
5836
|
-
e.onTouchStart = bs.bind(e), e.onTouchMove = ys.bind(e), e.onTouchEnd = xs.bind(e), e.onDocumentTouchStart =
|
|
5836
|
+
e.onTouchStart = bs.bind(e), e.onTouchMove = ys.bind(e), e.onTouchEnd = xs.bind(e), e.onDocumentTouchStart = Es.bind(e), r.cssMode && (e.onScroll = Ts.bind(e)), e.onClick = Ss.bind(e), e.onLoad = ws.bind(e), Zr(e, "on");
|
|
5837
5837
|
}
|
|
5838
5838
|
function Ms() {
|
|
5839
5839
|
Zr(this, "off");
|
|
@@ -5851,22 +5851,22 @@ function Os() {
|
|
|
5851
5851
|
el: i
|
|
5852
5852
|
} = e, s = n.breakpoints;
|
|
5853
5853
|
if (!s || s && Object.keys(s).length === 0) return;
|
|
5854
|
-
const o =
|
|
5855
|
-
if (!
|
|
5856
|
-
const
|
|
5857
|
-
T && !f ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), e.emitContainerClasses()) : !T && f && (i.classList.add(`${n.containerModifierClass}grid`), (
|
|
5858
|
-
if (typeof
|
|
5859
|
-
const L = n[A] && n[A].enabled, h =
|
|
5854
|
+
const o = ce(), l = n.breakpointsBase === "window" || !n.breakpointsBase ? n.breakpointsBase : "container", a = ["window", "container"].includes(n.breakpointsBase) || !n.breakpointsBase ? e.el : o.querySelector(n.breakpointsBase), d = e.getBreakpoint(s, l, a);
|
|
5855
|
+
if (!d || e.currentBreakpoint === d) return;
|
|
5856
|
+
const c = (d in s ? s[d] : void 0) || e.originalParams, T = or(e, n), f = or(e, c), g = e.params.grabCursor, b = c.grabCursor, x = n.enabled;
|
|
5857
|
+
T && !f ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), e.emitContainerClasses()) : !T && f && (i.classList.add(`${n.containerModifierClass}grid`), (c.grid.fill && c.grid.fill === "column" || !c.grid.fill && n.grid.fill === "column") && i.classList.add(`${n.containerModifierClass}grid-column`), e.emitContainerClasses()), g && !b ? e.unsetGrabCursor() : !g && b && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((A) => {
|
|
5858
|
+
if (typeof c[A] > "u") return;
|
|
5859
|
+
const L = n[A] && n[A].enabled, h = c[A] && c[A].enabled;
|
|
5860
5860
|
L && !h && e[A].disable(), !L && h && e[A].enable();
|
|
5861
5861
|
});
|
|
5862
|
-
const u =
|
|
5863
|
-
u && t && e.changeDirection(), le(e.params,
|
|
5864
|
-
const
|
|
5862
|
+
const u = c.direction && c.direction !== n.direction, m = n.loop && (c.slidesPerView !== n.slidesPerView || u), v = n.loop;
|
|
5863
|
+
u && t && e.changeDirection(), le(e.params, c);
|
|
5864
|
+
const E = e.params.enabled, y = e.params.loop;
|
|
5865
5865
|
Object.assign(e, {
|
|
5866
5866
|
allowTouchMove: e.params.allowTouchMove,
|
|
5867
5867
|
allowSlideNext: e.params.allowSlideNext,
|
|
5868
5868
|
allowSlidePrev: e.params.allowSlidePrev
|
|
5869
|
-
}), x && !
|
|
5869
|
+
}), x && !E ? e.disable() : !x && E && e.enable(), e.currentBreakpoint = d, e.emit("_beforeBreakpoint", c), t && (m ? (e.loopDestroy(), e.loopCreate(r), e.updateSlides()) : !v && y ? (e.loopCreate(r), e.updateSlides()) : v && !y && e.loopDestroy()), e.emit("breakpoint", c);
|
|
5870
5870
|
}
|
|
5871
5871
|
function ks(e, r = "window", t) {
|
|
5872
5872
|
if (!e || r === "container" && !t) return;
|
|
@@ -5888,9 +5888,9 @@ function ks(e, r = "window", t) {
|
|
|
5888
5888
|
for (let l = 0; l < o.length; l += 1) {
|
|
5889
5889
|
const {
|
|
5890
5890
|
point: a,
|
|
5891
|
-
value:
|
|
5891
|
+
value: d
|
|
5892
5892
|
} = o[l];
|
|
5893
|
-
r === "window" ? i.matchMedia(`(min-width: ${
|
|
5893
|
+
r === "window" ? i.matchMedia(`(min-width: ${d}px)`).matches && (n = a) : d <= t.clientWidth && (n = a);
|
|
5894
5894
|
}
|
|
5895
5895
|
return n || "max";
|
|
5896
5896
|
}
|
|
@@ -6107,7 +6107,7 @@ const ft = {
|
|
|
6107
6107
|
update: Hi,
|
|
6108
6108
|
translate: Ji,
|
|
6109
6109
|
transition: ts,
|
|
6110
|
-
slide:
|
|
6110
|
+
slide: ds,
|
|
6111
6111
|
loop: ps,
|
|
6112
6112
|
grabCursor: hs,
|
|
6113
6113
|
events: Ps,
|
|
@@ -6115,16 +6115,16 @@ const ft = {
|
|
|
6115
6115
|
checkOverflow: Ns,
|
|
6116
6116
|
classes: zs
|
|
6117
6117
|
}, pt = {};
|
|
6118
|
-
let
|
|
6118
|
+
let Bt = class me {
|
|
6119
6119
|
constructor(...r) {
|
|
6120
6120
|
let t, n;
|
|
6121
6121
|
r.length === 1 && r[0].constructor && Object.prototype.toString.call(r[0]).slice(8, -1) === "Object" ? n = r[0] : [t, n] = r, n || (n = {}), n = le({}, n), t && !n.el && (n.el = t);
|
|
6122
|
-
const i =
|
|
6122
|
+
const i = ce();
|
|
6123
6123
|
if (n.el && typeof n.el == "string" && i.querySelectorAll(n.el).length > 1) {
|
|
6124
6124
|
const a = [];
|
|
6125
|
-
return i.querySelectorAll(n.el).forEach((
|
|
6125
|
+
return i.querySelectorAll(n.el).forEach((d) => {
|
|
6126
6126
|
const p = le({}, n, {
|
|
6127
|
-
el:
|
|
6127
|
+
el: d
|
|
6128
6128
|
});
|
|
6129
6129
|
a.push(new me(p));
|
|
6130
6130
|
}), a;
|
|
@@ -6296,22 +6296,22 @@ let $t = class me {
|
|
|
6296
6296
|
slidesGrid: o,
|
|
6297
6297
|
slidesSizesGrid: l,
|
|
6298
6298
|
size: a,
|
|
6299
|
-
activeIndex:
|
|
6299
|
+
activeIndex: d
|
|
6300
6300
|
} = n;
|
|
6301
6301
|
let p = 1;
|
|
6302
6302
|
if (typeof i.slidesPerView == "number") return i.slidesPerView;
|
|
6303
6303
|
if (i.centeredSlides) {
|
|
6304
|
-
let
|
|
6305
|
-
for (let f =
|
|
6306
|
-
s[f] && !T && (
|
|
6307
|
-
for (let f =
|
|
6308
|
-
s[f] && !T && (
|
|
6304
|
+
let c = s[d] ? Math.ceil(s[d].swiperSlideSize) : 0, T;
|
|
6305
|
+
for (let f = d + 1; f < s.length; f += 1)
|
|
6306
|
+
s[f] && !T && (c += Math.ceil(s[f].swiperSlideSize), p += 1, c > a && (T = !0));
|
|
6307
|
+
for (let f = d - 1; f >= 0; f -= 1)
|
|
6308
|
+
s[f] && !T && (c += s[f].swiperSlideSize, p += 1, c > a && (T = !0));
|
|
6309
6309
|
} else if (r === "current")
|
|
6310
|
-
for (let
|
|
6311
|
-
(t ? o[
|
|
6310
|
+
for (let c = d + 1; c < s.length; c += 1)
|
|
6311
|
+
(t ? o[c] + l[c] - o[d] < a : o[c] - o[d] < a) && (p += 1);
|
|
6312
6312
|
else
|
|
6313
|
-
for (let
|
|
6314
|
-
o[
|
|
6313
|
+
for (let c = d - 1; c >= 0; c -= 1)
|
|
6314
|
+
o[d] - o[c] < a && (p += 1);
|
|
6315
6315
|
return p;
|
|
6316
6316
|
}
|
|
6317
6317
|
update() {
|
|
@@ -6418,10 +6418,10 @@ let $t = class me {
|
|
|
6418
6418
|
};
|
|
6419
6419
|
Object.keys(ft).forEach((e) => {
|
|
6420
6420
|
Object.keys(ft[e]).forEach((r) => {
|
|
6421
|
-
|
|
6421
|
+
Bt.prototype[r] = ft[e][r];
|
|
6422
6422
|
});
|
|
6423
6423
|
});
|
|
6424
|
-
|
|
6424
|
+
Bt.use([Ai, Ri]);
|
|
6425
6425
|
const Qr = [
|
|
6426
6426
|
"eventsPrefix",
|
|
6427
6427
|
"injectStyles",
|
|
@@ -6565,10 +6565,10 @@ function nn(e = "") {
|
|
|
6565
6565
|
t.indexOf(n) < 0 && t.push(n);
|
|
6566
6566
|
}), t.join(" ");
|
|
6567
6567
|
}
|
|
6568
|
-
function
|
|
6568
|
+
function qs(e = "") {
|
|
6569
6569
|
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
6570
6570
|
}
|
|
6571
|
-
function
|
|
6571
|
+
function Bs({
|
|
6572
6572
|
swiper: e,
|
|
6573
6573
|
slides: r,
|
|
6574
6574
|
passedParams: t,
|
|
@@ -6579,28 +6579,28 @@ function $s({
|
|
|
6579
6579
|
paginationEl: l
|
|
6580
6580
|
}) {
|
|
6581
6581
|
const a = n.filter((h) => h !== "children" && h !== "direction" && h !== "wrapperClass"), {
|
|
6582
|
-
params:
|
|
6582
|
+
params: d,
|
|
6583
6583
|
pagination: p,
|
|
6584
|
-
navigation:
|
|
6584
|
+
navigation: c,
|
|
6585
6585
|
scrollbar: T,
|
|
6586
6586
|
virtual: f,
|
|
6587
6587
|
thumbs: g
|
|
6588
6588
|
} = e;
|
|
6589
|
-
let b, x, u, m, v,
|
|
6590
|
-
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed &&
|
|
6589
|
+
let b, x, u, m, v, E, y, A;
|
|
6590
|
+
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (b = !0), n.includes("controller") && t.controller && t.controller.control && d.controller && !d.controller.control && (x = !0), n.includes("pagination") && t.pagination && (t.pagination.el || l) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || o) && (d.scrollbar || d.scrollbar === !1) && T && !T.el && (m = !0), n.includes("navigation") && t.navigation && (t.navigation.prevEl || s) && (t.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && c && !c.prevEl && !c.nextEl && (v = !0);
|
|
6591
6591
|
const L = (h) => {
|
|
6592
|
-
e[h] && (e[h].destroy(), h === "navigation" ? (e.isElement && (e[h].prevEl.remove(), e[h].nextEl.remove()),
|
|
6592
|
+
e[h] && (e[h].destroy(), h === "navigation" ? (e.isElement && (e[h].prevEl.remove(), e[h].nextEl.remove()), d[h].prevEl = void 0, d[h].nextEl = void 0, e[h].prevEl = void 0, e[h].nextEl = void 0) : (e.isElement && e[h].el.remove(), d[h].el = void 0, e[h].el = void 0));
|
|
6593
6593
|
};
|
|
6594
|
-
n.includes("loop") && e.isElement && (
|
|
6595
|
-
if (Se(
|
|
6596
|
-
Object.assign(
|
|
6594
|
+
n.includes("loop") && e.isElement && (d.loop && !t.loop ? E = !0 : !d.loop && t.loop ? y = !0 : A = !0), a.forEach((h) => {
|
|
6595
|
+
if (Se(d[h]) && Se(t[h]))
|
|
6596
|
+
Object.assign(d[h], t[h]), (h === "navigation" || h === "pagination" || h === "scrollbar") && "enabled" in t[h] && !t[h].enabled && L(h);
|
|
6597
6597
|
else {
|
|
6598
6598
|
const _ = t[h];
|
|
6599
|
-
(_ === !0 || _ === !1) && (h === "navigation" || h === "pagination" || h === "scrollbar") ? _ === !1 && L(h) :
|
|
6599
|
+
(_ === !0 || _ === !1) && (h === "navigation" || h === "pagination" || h === "scrollbar") ? _ === !1 && L(h) : d[h] = t[h];
|
|
6600
6600
|
}
|
|
6601
|
-
}), a.includes("controller") && !x && e.controller && e.controller.control &&
|
|
6601
|
+
}), a.includes("controller") && !x && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && r && f && d.virtual.enabled ? (f.slides = r, f.update(!0)) : n.includes("virtual") && f && d.virtual.enabled && (r && (f.slides = r), f.update(!0)), n.includes("children") && r && d.loop && (A = !0), b && g.init() && g.update(!0), x && (e.controller.control = d.controller.control), u && (e.isElement && (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-pagination"), l.part.add("pagination"), e.el.appendChild(l)), l && (d.pagination.el = l), p.init(), p.render(), p.update()), m && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), T.init(), T.updateSize(), T.setTranslate()), v && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), Pe(i, e.navigation.arrowSvg), i.part.add("button-next"), e.el.appendChild(i)), (!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-prev"), Pe(s, e.navigation.arrowSvg), s.part.add("button-prev"), e.el.appendChild(s))), i && (d.navigation.nextEl = i), s && (d.navigation.prevEl = s), c.init(), c.update()), n.includes("allowSlideNext") && (e.allowSlideNext = t.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = t.allowSlidePrev), n.includes("direction") && e.changeDirection(t.direction, !1), (E || A) && e.loopDestroy(), (y || A) && e.loopCreate(), e.update();
|
|
6602
6602
|
}
|
|
6603
|
-
function
|
|
6603
|
+
function $s(e = {}, r = !0) {
|
|
6604
6604
|
const t = {
|
|
6605
6605
|
on: {}
|
|
6606
6606
|
}, n = {}, i = {};
|
|
@@ -6617,7 +6617,7 @@ function Gs(e = {}, r = !0) {
|
|
|
6617
6617
|
events: n
|
|
6618
6618
|
};
|
|
6619
6619
|
}
|
|
6620
|
-
function
|
|
6620
|
+
function Gs({
|
|
6621
6621
|
el: e,
|
|
6622
6622
|
nextEl: r,
|
|
6623
6623
|
prevEl: t,
|
|
@@ -6627,24 +6627,24 @@ function js({
|
|
|
6627
6627
|
}, o) {
|
|
6628
6628
|
en(o) && r && t && (s.params.navigation.nextEl = r, s.originalParams.navigation.nextEl = r, s.params.navigation.prevEl = t, s.originalParams.navigation.prevEl = t), tn(o) && n && (s.params.pagination.el = n, s.originalParams.pagination.el = n), rn(o) && i && (s.params.scrollbar.el = i, s.originalParams.scrollbar.el = i), s.init(e);
|
|
6629
6629
|
}
|
|
6630
|
-
function
|
|
6630
|
+
function js(e, r, t, n, i) {
|
|
6631
6631
|
const s = [];
|
|
6632
6632
|
if (!r) return s;
|
|
6633
6633
|
const o = (a) => {
|
|
6634
6634
|
s.indexOf(a) < 0 && s.push(a);
|
|
6635
6635
|
};
|
|
6636
6636
|
if (t && n) {
|
|
6637
|
-
const a = n.map(i),
|
|
6638
|
-
a.join("") !==
|
|
6637
|
+
const a = n.map(i), d = t.map(i);
|
|
6638
|
+
a.join("") !== d.join("") && o("children"), n.length !== t.length && o("children");
|
|
6639
6639
|
}
|
|
6640
6640
|
return Qr.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
6641
6641
|
if (a in e && a in r)
|
|
6642
6642
|
if (Se(e[a]) && Se(r[a])) {
|
|
6643
|
-
const
|
|
6644
|
-
|
|
6645
|
-
e[a][
|
|
6646
|
-
}), p.forEach((
|
|
6647
|
-
e[a][
|
|
6643
|
+
const d = Object.keys(e[a]), p = Object.keys(r[a]);
|
|
6644
|
+
d.length !== p.length ? o(a) : (d.forEach((c) => {
|
|
6645
|
+
e[a][c] !== r[a][c] && o(a);
|
|
6646
|
+
}), p.forEach((c) => {
|
|
6647
|
+
e[a][c] !== r[a][c] && o(a);
|
|
6648
6648
|
}));
|
|
6649
6649
|
} else e[a] !== r[a] && o(a);
|
|
6650
6650
|
}), s;
|
|
@@ -6696,8 +6696,8 @@ function Vs(e) {
|
|
|
6696
6696
|
function Hs(e, r, t) {
|
|
6697
6697
|
if (!t) return null;
|
|
6698
6698
|
const n = (p) => {
|
|
6699
|
-
let
|
|
6700
|
-
return p < 0 ?
|
|
6699
|
+
let c = p;
|
|
6700
|
+
return p < 0 ? c = r.length + p : c >= r.length && (c = c - r.length), c;
|
|
6701
6701
|
}, i = e.isHorizontal() ? {
|
|
6702
6702
|
[e.rtlTranslate ? "right" : "left"]: `${t.offset}px`
|
|
6703
6703
|
} : {
|
|
@@ -6705,13 +6705,13 @@ function Hs(e, r, t) {
|
|
|
6705
6705
|
}, {
|
|
6706
6706
|
from: s,
|
|
6707
6707
|
to: o
|
|
6708
|
-
} = t, l = e.params.loop ? -r.length : 0, a = e.params.loop ? r.length * 2 : r.length,
|
|
6708
|
+
} = t, l = e.params.loop ? -r.length : 0, a = e.params.loop ? r.length * 2 : r.length, d = [];
|
|
6709
6709
|
for (let p = l; p < a; p += 1)
|
|
6710
|
-
p >= s && p <= o &&
|
|
6711
|
-
return
|
|
6710
|
+
p >= s && p <= o && d.push(r[n(p)]);
|
|
6711
|
+
return d.map((p, c) => /* @__PURE__ */ ie.cloneElement(p, {
|
|
6712
6712
|
swiper: e,
|
|
6713
6713
|
style: i,
|
|
6714
|
-
key: p.props.virtualIndex || p.key || `slide-${
|
|
6714
|
+
key: p.props.virtualIndex || p.key || `slide-${c}`
|
|
6715
6715
|
}));
|
|
6716
6716
|
}
|
|
6717
6717
|
function _e(e, r) {
|
|
@@ -6726,20 +6726,20 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6726
6726
|
...s
|
|
6727
6727
|
} = {}, o) => {
|
|
6728
6728
|
let l = !1;
|
|
6729
|
-
const [a,
|
|
6729
|
+
const [a, d] = be("swiper"), [p, c] = be(null), [T, f] = be(!1), g = oe(!1), b = oe(null), x = oe(null), u = oe(null), m = oe(null), v = oe(null), E = oe(null), y = oe(null), A = oe(null), {
|
|
6730
6730
|
params: L,
|
|
6731
6731
|
passedParams: h,
|
|
6732
6732
|
rest: _,
|
|
6733
6733
|
events: O
|
|
6734
|
-
} =
|
|
6734
|
+
} = $s(s), {
|
|
6735
6735
|
slides: k,
|
|
6736
6736
|
slots: R
|
|
6737
6737
|
} = Vs(n), F = () => {
|
|
6738
6738
|
f(!T);
|
|
6739
6739
|
};
|
|
6740
6740
|
Object.assign(L.on, {
|
|
6741
|
-
_containerClasses(S,
|
|
6742
|
-
|
|
6741
|
+
_containerClasses(S, q) {
|
|
6742
|
+
d(q);
|
|
6743
6743
|
}
|
|
6744
6744
|
});
|
|
6745
6745
|
const V = () => {
|
|
@@ -6747,15 +6747,15 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6747
6747
|
const S = {
|
|
6748
6748
|
...L
|
|
6749
6749
|
};
|
|
6750
|
-
if (delete S.wrapperClass, x.current = new
|
|
6750
|
+
if (delete S.wrapperClass, x.current = new Bt(S), x.current.virtual && x.current.params.virtual.enabled) {
|
|
6751
6751
|
x.current.virtual.slides = k;
|
|
6752
|
-
const
|
|
6752
|
+
const q = {
|
|
6753
6753
|
cache: !1,
|
|
6754
6754
|
slides: k,
|
|
6755
|
-
renderExternal:
|
|
6755
|
+
renderExternal: c,
|
|
6756
6756
|
renderExternalUpdate: !1
|
|
6757
6757
|
};
|
|
6758
|
-
Me(x.current.params.virtual,
|
|
6758
|
+
Me(x.current.params.virtual, q), Me(x.current.originalParams.virtual, q);
|
|
6759
6759
|
}
|
|
6760
6760
|
};
|
|
6761
6761
|
b.current || V(), x.current && x.current.on("_beforeBreakpoint", F);
|
|
@@ -6763,7 +6763,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6763
6763
|
l || !O || !x.current || Object.keys(O).forEach((S) => {
|
|
6764
6764
|
x.current.on(S, O[S]);
|
|
6765
6765
|
});
|
|
6766
|
-
},
|
|
6766
|
+
}, w = () => {
|
|
6767
6767
|
!O || !x.current || Object.keys(O).forEach((S) => {
|
|
6768
6768
|
x.current.off(S, O[S]);
|
|
6769
6769
|
});
|
|
@@ -6774,10 +6774,10 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6774
6774
|
!g.current && x.current && (x.current.emitSlidesClasses(), g.current = !0);
|
|
6775
6775
|
}), _e(() => {
|
|
6776
6776
|
if (o && (o.current = b.current), !!b.current)
|
|
6777
|
-
return x.current.destroyed && V(),
|
|
6777
|
+
return x.current.destroyed && V(), Gs({
|
|
6778
6778
|
el: b.current,
|
|
6779
6779
|
nextEl: v.current,
|
|
6780
|
-
prevEl:
|
|
6780
|
+
prevEl: E.current,
|
|
6781
6781
|
paginationEl: y.current,
|
|
6782
6782
|
scrollbarEl: A.current,
|
|
6783
6783
|
swiper: x.current
|
|
@@ -6786,26 +6786,26 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6786
6786
|
};
|
|
6787
6787
|
}, []), _e(() => {
|
|
6788
6788
|
Q();
|
|
6789
|
-
const S =
|
|
6790
|
-
return u.current = h, m.current = k, S.length && x.current && !x.current.destroyed &&
|
|
6789
|
+
const S = js(h, u.current, k, m.current, (q) => q.key);
|
|
6790
|
+
return u.current = h, m.current = k, S.length && x.current && !x.current.destroyed && Bs({
|
|
6791
6791
|
swiper: x.current,
|
|
6792
6792
|
slides: k,
|
|
6793
6793
|
passedParams: h,
|
|
6794
6794
|
changedParams: S,
|
|
6795
6795
|
nextEl: v.current,
|
|
6796
|
-
prevEl:
|
|
6796
|
+
prevEl: E.current,
|
|
6797
6797
|
scrollbarEl: A.current,
|
|
6798
6798
|
paginationEl: y.current
|
|
6799
6799
|
}), () => {
|
|
6800
|
-
|
|
6800
|
+
w();
|
|
6801
6801
|
};
|
|
6802
6802
|
}), _e(() => {
|
|
6803
6803
|
Fs(x.current);
|
|
6804
6804
|
}, [p]);
|
|
6805
6805
|
function M() {
|
|
6806
|
-
return L.virtual ? Hs(x.current, k, p) : k.map((S,
|
|
6806
|
+
return L.virtual ? Hs(x.current, k, p) : k.map((S, q) => /* @__PURE__ */ ie.cloneElement(S, {
|
|
6807
6807
|
swiper: x.current,
|
|
6808
|
-
swiperSlideIndex:
|
|
6808
|
+
swiperSlideIndex: q
|
|
6809
6809
|
}));
|
|
6810
6810
|
}
|
|
6811
6811
|
return /* @__PURE__ */ ie.createElement(r, Je({
|
|
@@ -6814,9 +6814,9 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6814
6814
|
}, _), /* @__PURE__ */ ie.createElement(Ws.Provider, {
|
|
6815
6815
|
value: x.current
|
|
6816
6816
|
}, R["container-start"], /* @__PURE__ */ ie.createElement(t, {
|
|
6817
|
-
className:
|
|
6817
|
+
className: qs(L.wrapperClass)
|
|
6818
6818
|
}, R["wrapper-start"], M(), R["wrapper-end"]), en(L) && /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement("div", {
|
|
6819
|
-
ref:
|
|
6819
|
+
ref: E,
|
|
6820
6820
|
className: "swiper-button-prev"
|
|
6821
6821
|
}), /* @__PURE__ */ ie.createElement("div", {
|
|
6822
6822
|
ref: v,
|
|
@@ -6840,15 +6840,15 @@ const ln = /* @__PURE__ */ ur(({
|
|
|
6840
6840
|
virtualIndex: o,
|
|
6841
6841
|
swiperSlideIndex: l,
|
|
6842
6842
|
...a
|
|
6843
|
-
} = {},
|
|
6844
|
-
const p = oe(null), [
|
|
6845
|
-
function b(v,
|
|
6846
|
-
|
|
6843
|
+
} = {}, d) => {
|
|
6844
|
+
const p = oe(null), [c, T] = be("swiper-slide"), [f, g] = be(!1);
|
|
6845
|
+
function b(v, E, y) {
|
|
6846
|
+
E === p.current && T(y);
|
|
6847
6847
|
}
|
|
6848
6848
|
_e(() => {
|
|
6849
|
-
if (typeof l < "u" && (p.current.swiperSlideIndex = l),
|
|
6849
|
+
if (typeof l < "u" && (p.current.swiperSlideIndex = l), d && (d.current = p.current), !(!p.current || !n)) {
|
|
6850
6850
|
if (n.destroyed) {
|
|
6851
|
-
|
|
6851
|
+
c !== "swiper-slide" && T("swiper-slide");
|
|
6852
6852
|
return;
|
|
6853
6853
|
}
|
|
6854
6854
|
return n.on("_slideClass", b), () => {
|
|
@@ -6859,16 +6859,16 @@ const ln = /* @__PURE__ */ ur(({
|
|
|
6859
6859
|
n && p.current && !n.destroyed && T(n.getSlideClasses(p.current));
|
|
6860
6860
|
}, [n]);
|
|
6861
6861
|
const x = {
|
|
6862
|
-
isActive:
|
|
6863
|
-
isVisible:
|
|
6864
|
-
isPrev:
|
|
6865
|
-
isNext:
|
|
6862
|
+
isActive: c.indexOf("swiper-slide-active") >= 0,
|
|
6863
|
+
isVisible: c.indexOf("swiper-slide-visible") >= 0,
|
|
6864
|
+
isPrev: c.indexOf("swiper-slide-prev") >= 0,
|
|
6865
|
+
isNext: c.indexOf("swiper-slide-next") >= 0
|
|
6866
6866
|
}, u = () => typeof r == "function" ? r(x) : r, m = () => {
|
|
6867
6867
|
g(!0);
|
|
6868
6868
|
};
|
|
6869
6869
|
return /* @__PURE__ */ ie.createElement(e, Je({
|
|
6870
6870
|
ref: p,
|
|
6871
|
-
className: nn(`${
|
|
6871
|
+
className: nn(`${c}${t ? ` ${t}` : ""}`),
|
|
6872
6872
|
"data-swiper-slide-index": o,
|
|
6873
6873
|
onLoad: m
|
|
6874
6874
|
}, a), i && /* @__PURE__ */ ie.createElement(lr.Provider, {
|
|
@@ -6885,7 +6885,7 @@ const ln = /* @__PURE__ */ ur(({
|
|
|
6885
6885
|
})));
|
|
6886
6886
|
});
|
|
6887
6887
|
ln.displayName = "SwiperSlide";
|
|
6888
|
-
function
|
|
6888
|
+
function dn(e, r, t, n) {
|
|
6889
6889
|
return e.params.createElements && Object.keys(n).forEach((i) => {
|
|
6890
6890
|
if (!t[i] && t.auto === !0) {
|
|
6891
6891
|
let s = fe(e.el, `.${n[i]}`)[0];
|
|
@@ -6893,7 +6893,7 @@ function cn(e, r, t, n) {
|
|
|
6893
6893
|
}
|
|
6894
6894
|
}), t;
|
|
6895
6895
|
}
|
|
6896
|
-
const
|
|
6896
|
+
const dr = '<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';
|
|
6897
6897
|
function Ys({
|
|
6898
6898
|
swiper: e,
|
|
6899
6899
|
extendParams: r,
|
|
@@ -6914,7 +6914,7 @@ function Ys({
|
|
|
6914
6914
|
}), e.navigation = {
|
|
6915
6915
|
nextEl: null,
|
|
6916
6916
|
prevEl: null,
|
|
6917
|
-
arrowSvg:
|
|
6917
|
+
arrowSvg: dr
|
|
6918
6918
|
};
|
|
6919
6919
|
function i(f) {
|
|
6920
6920
|
let g;
|
|
@@ -6943,9 +6943,9 @@ function Ys({
|
|
|
6943
6943
|
function a(f) {
|
|
6944
6944
|
f.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
|
|
6945
6945
|
}
|
|
6946
|
-
function
|
|
6946
|
+
function d() {
|
|
6947
6947
|
const f = e.params.navigation;
|
|
6948
|
-
if (e.params.navigation =
|
|
6948
|
+
if (e.params.navigation = dn(e, e.originalParams.navigation, e.params.navigation, {
|
|
6949
6949
|
nextEl: "swiper-button-next",
|
|
6950
6950
|
prevEl: "swiper-button-prev"
|
|
6951
6951
|
}), !(f.nextEl || f.prevEl)) return;
|
|
@@ -6958,7 +6958,7 @@ function Ys({
|
|
|
6958
6958
|
if (u) {
|
|
6959
6959
|
if (f.addIcons && u.matches(".swiper-button-next,.swiper-button-prev") && !u.querySelector("svg")) {
|
|
6960
6960
|
const v = document.createElement("div");
|
|
6961
|
-
Pe(v,
|
|
6961
|
+
Pe(v, dr), u.appendChild(v.querySelector("svg")), v.remove();
|
|
6962
6962
|
}
|
|
6963
6963
|
u.addEventListener("click", m === "next" ? a : l);
|
|
6964
6964
|
}
|
|
@@ -6978,7 +6978,7 @@ function Ys({
|
|
|
6978
6978
|
f.forEach((x) => b(x, "next")), g.forEach((x) => b(x, "prev"));
|
|
6979
6979
|
}
|
|
6980
6980
|
t("init", () => {
|
|
6981
|
-
e.params.navigation.enabled === !1 ? T() : (
|
|
6981
|
+
e.params.navigation.enabled === !1 ? T() : (d(), o());
|
|
6982
6982
|
}), t("toEdge fromEdge lock unlock", () => {
|
|
6983
6983
|
o();
|
|
6984
6984
|
}), t("destroy", () => {
|
|
@@ -7003,24 +7003,24 @@ function Ys({
|
|
|
7003
7003
|
let m = x.includes(u) || b.includes(u);
|
|
7004
7004
|
if (e.isElement && !m) {
|
|
7005
7005
|
const v = g.path || g.composedPath && g.composedPath();
|
|
7006
|
-
v && (m = v.find((
|
|
7006
|
+
v && (m = v.find((E) => b.includes(E) || x.includes(E)));
|
|
7007
7007
|
}
|
|
7008
7008
|
if (e.params.navigation.hideOnClick && !m) {
|
|
7009
7009
|
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === u || e.pagination.el.contains(u))) return;
|
|
7010
7010
|
let v;
|
|
7011
|
-
b.length ? v = b[0].classList.contains(e.params.navigation.hiddenClass) : x.length && (v = x[0].classList.contains(e.params.navigation.hiddenClass)), n(v === !0 ? "navigationShow" : "navigationHide"), [...b, ...x].filter((
|
|
7011
|
+
b.length ? v = b[0].classList.contains(e.params.navigation.hiddenClass) : x.length && (v = x[0].classList.contains(e.params.navigation.hiddenClass)), n(v === !0 ? "navigationShow" : "navigationHide"), [...b, ...x].filter((E) => !!E).forEach((E) => E.classList.toggle(e.params.navigation.hiddenClass));
|
|
7012
7012
|
}
|
|
7013
7013
|
});
|
|
7014
|
-
const
|
|
7015
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),
|
|
7014
|
+
const c = () => {
|
|
7015
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), d(), o();
|
|
7016
7016
|
}, T = () => {
|
|
7017
7017
|
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
|
|
7018
7018
|
};
|
|
7019
7019
|
Object.assign(e.navigation, {
|
|
7020
|
-
enable:
|
|
7020
|
+
enable: c,
|
|
7021
7021
|
disable: T,
|
|
7022
7022
|
update: o,
|
|
7023
|
-
init:
|
|
7023
|
+
init: d,
|
|
7024
7024
|
destroy: p
|
|
7025
7025
|
});
|
|
7026
7026
|
}
|
|
@@ -7079,7 +7079,7 @@ function Xs({
|
|
|
7079
7079
|
} = e.params.pagination;
|
|
7080
7080
|
u && (u = u[`${m === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${v}-${m}`), u = u[`${m === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${v}-${m}-${m}`)));
|
|
7081
7081
|
}
|
|
7082
|
-
function
|
|
7082
|
+
function d(u, m, v) {
|
|
7083
7083
|
if (u = u % v, m = m % v, m === u + 1)
|
|
7084
7084
|
return "next";
|
|
7085
7085
|
if (m === u - 1)
|
|
@@ -7093,35 +7093,35 @@ function Xs({
|
|
|
7093
7093
|
const v = De(m) * e.params.slidesPerGroup;
|
|
7094
7094
|
if (e.params.loop) {
|
|
7095
7095
|
if (e.realIndex === v) return;
|
|
7096
|
-
const
|
|
7097
|
-
|
|
7096
|
+
const E = d(e.realIndex, v, e.slides.length);
|
|
7097
|
+
E === "next" ? e.slideNext() : E === "previous" ? e.slidePrev() : e.slideToLoop(v);
|
|
7098
7098
|
} else
|
|
7099
7099
|
e.slideTo(v);
|
|
7100
7100
|
}
|
|
7101
|
-
function
|
|
7101
|
+
function c() {
|
|
7102
7102
|
const u = e.rtl, m = e.params.pagination;
|
|
7103
7103
|
if (l()) return;
|
|
7104
7104
|
let v = e.pagination.el;
|
|
7105
7105
|
v = K(v);
|
|
7106
|
-
let
|
|
7106
|
+
let E, y;
|
|
7107
7107
|
const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, L = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
7108
|
-
if (e.params.loop ? (y = e.previousRealIndex || 0,
|
|
7108
|
+
if (e.params.loop ? (y = e.previousRealIndex || 0, E = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (E = e.snapIndex, y = e.previousSnapIndex) : (y = e.previousIndex || 0, E = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
7109
7109
|
const h = e.pagination.bullets;
|
|
7110
7110
|
let _, O, k;
|
|
7111
7111
|
if (m.dynamicBullets && (s = ht(h[0], e.isHorizontal() ? "width" : "height"), v.forEach((R) => {
|
|
7112
7112
|
R.style[e.isHorizontal() ? "width" : "height"] = `${s * (m.dynamicMainBullets + 4)}px`;
|
|
7113
|
-
}), m.dynamicMainBullets > 1 && y !== void 0 && (o +=
|
|
7113
|
+
}), m.dynamicMainBullets > 1 && y !== void 0 && (o += E - (y || 0), o > m.dynamicMainBullets - 1 ? o = m.dynamicMainBullets - 1 : o < 0 && (o = 0)), _ = Math.max(E - o, 0), O = _ + (Math.min(h.length, m.dynamicMainBullets) - 1), k = (O + _) / 2), h.forEach((R) => {
|
|
7114
7114
|
const F = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((V) => `${m.bulletActiveClass}${V}`)].map((V) => typeof V == "string" && V.includes(" ") ? V.split(" ") : V).flat();
|
|
7115
7115
|
R.classList.remove(...F);
|
|
7116
7116
|
}), v.length > 1)
|
|
7117
7117
|
h.forEach((R) => {
|
|
7118
7118
|
const F = De(R);
|
|
7119
|
-
F ===
|
|
7119
|
+
F === E ? R.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && R.setAttribute("part", "bullet"), m.dynamicBullets && (F >= _ && F <= O && R.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), F === _ && a(R, "prev"), F === O && a(R, "next"));
|
|
7120
7120
|
});
|
|
7121
7121
|
else {
|
|
7122
|
-
const R = h[
|
|
7122
|
+
const R = h[E];
|
|
7123
7123
|
if (R && R.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && h.forEach((F, V) => {
|
|
7124
|
-
F.setAttribute("part", V ===
|
|
7124
|
+
F.setAttribute("part", V === E ? "bullet-active" : "bullet");
|
|
7125
7125
|
}), m.dynamicBullets) {
|
|
7126
7126
|
const F = h[_], V = h[O];
|
|
7127
7127
|
for (let Q = _; Q <= O; Q += 1)
|
|
@@ -7138,19 +7138,19 @@ function Xs({
|
|
|
7138
7138
|
}
|
|
7139
7139
|
v.forEach((h, _) => {
|
|
7140
7140
|
if (m.type === "fraction" && (h.querySelectorAll(he(m.currentClass)).forEach((O) => {
|
|
7141
|
-
O.textContent = m.formatFractionCurrent(
|
|
7141
|
+
O.textContent = m.formatFractionCurrent(E + 1);
|
|
7142
7142
|
}), h.querySelectorAll(he(m.totalClass)).forEach((O) => {
|
|
7143
7143
|
O.textContent = m.formatFractionTotal(L);
|
|
7144
7144
|
})), m.type === "progressbar") {
|
|
7145
7145
|
let O;
|
|
7146
7146
|
m.progressbarOpposite ? O = e.isHorizontal() ? "vertical" : "horizontal" : O = e.isHorizontal() ? "horizontal" : "vertical";
|
|
7147
|
-
const k = (
|
|
7147
|
+
const k = (E + 1) / L;
|
|
7148
7148
|
let R = 1, F = 1;
|
|
7149
7149
|
O === "horizontal" ? R = k : F = k, h.querySelectorAll(he(m.progressbarFillClass)).forEach((V) => {
|
|
7150
7150
|
V.style.transform = `translate3d(0,0,0) scaleX(${R}) scaleY(${F})`, V.style.transitionDuration = `${e.params.speed}ms`;
|
|
7151
7151
|
});
|
|
7152
7152
|
}
|
|
7153
|
-
m.type === "custom" && m.renderCustom ? (Pe(h, m.renderCustom(e,
|
|
7153
|
+
m.type === "custom" && m.renderCustom ? (Pe(h, m.renderCustom(e, E + 1, L)), _ === 0 && n("paginationRender", h)) : (_ === 0 && n("paginationRender", h), n("paginationUpdate", h)), e.params.watchOverflow && e.enabled && h.classList[e.isLocked ? "add" : "remove"](m.lockClass);
|
|
7154
7154
|
});
|
|
7155
7155
|
}
|
|
7156
7156
|
function T() {
|
|
@@ -7159,19 +7159,19 @@ function Xs({
|
|
|
7159
7159
|
const m = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
7160
7160
|
let v = e.pagination.el;
|
|
7161
7161
|
v = K(v);
|
|
7162
|
-
let
|
|
7162
|
+
let E = "";
|
|
7163
7163
|
if (u.type === "bullets") {
|
|
7164
7164
|
let y = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
7165
7165
|
e.params.freeMode && e.params.freeMode.enabled && y > m && (y = m);
|
|
7166
7166
|
for (let A = 0; A < y; A += 1)
|
|
7167
|
-
u.renderBullet ?
|
|
7167
|
+
u.renderBullet ? E += u.renderBullet.call(e, A, u.bulletClass) : E += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
|
|
7168
7168
|
}
|
|
7169
|
-
u.type === "fraction" && (u.renderFraction ?
|
|
7170
|
-
u.type !== "custom" && Pe(y,
|
|
7169
|
+
u.type === "fraction" && (u.renderFraction ? E = u.renderFraction.call(e, u.currentClass, u.totalClass) : E = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? E = u.renderProgressbar.call(e, u.progressbarFillClass) : E = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((y) => {
|
|
7170
|
+
u.type !== "custom" && Pe(y, E || ""), u.type === "bullets" && e.pagination.bullets.push(...y.querySelectorAll(he(u.bulletClass)));
|
|
7171
7171
|
}), u.type !== "custom" && n("paginationRender", v[0]);
|
|
7172
7172
|
}
|
|
7173
7173
|
function f() {
|
|
7174
|
-
e.params.pagination =
|
|
7174
|
+
e.params.pagination = dn(e, e.originalParams.pagination, e.params.pagination, {
|
|
7175
7175
|
el: "swiper-pagination"
|
|
7176
7176
|
});
|
|
7177
7177
|
const u = e.params.pagination;
|
|
@@ -7201,13 +7201,13 @@ function Xs({
|
|
|
7201
7201
|
v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
|
|
7202
7202
|
});
|
|
7203
7203
|
}), t("init", () => {
|
|
7204
|
-
e.params.pagination.enabled === !1 ? x() : (f(), T(),
|
|
7204
|
+
e.params.pagination.enabled === !1 ? x() : (f(), T(), c());
|
|
7205
7205
|
}), t("activeIndexChange", () => {
|
|
7206
|
-
typeof e.snapIndex > "u" &&
|
|
7206
|
+
typeof e.snapIndex > "u" && c();
|
|
7207
7207
|
}), t("snapIndexChange", () => {
|
|
7208
|
-
|
|
7208
|
+
c();
|
|
7209
7209
|
}), t("snapGridLengthChange", () => {
|
|
7210
|
-
T(),
|
|
7210
|
+
T(), c();
|
|
7211
7211
|
}), t("destroy", () => {
|
|
7212
7212
|
g();
|
|
7213
7213
|
}), t("enable disable", () => {
|
|
@@ -7216,13 +7216,13 @@ function Xs({
|
|
|
7216
7216
|
} = e.pagination;
|
|
7217
7217
|
u && (u = K(u), u.forEach((m) => m.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
7218
7218
|
}), t("lock unlock", () => {
|
|
7219
|
-
|
|
7219
|
+
c();
|
|
7220
7220
|
}), t("click", (u, m) => {
|
|
7221
|
-
const v = m.target,
|
|
7222
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick &&
|
|
7221
|
+
const v = m.target, E = K(e.pagination.el);
|
|
7222
|
+
if (e.params.pagination.el && e.params.pagination.hideOnClick && E && E.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
|
|
7223
7223
|
if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
|
|
7224
|
-
const y =
|
|
7225
|
-
n(y === !0 ? "paginationShow" : "paginationHide"),
|
|
7224
|
+
const y = E[0].classList.contains(e.params.pagination.hiddenClass);
|
|
7225
|
+
n(y === !0 ? "paginationShow" : "paginationHide"), E.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
|
|
7226
7226
|
}
|
|
7227
7227
|
});
|
|
7228
7228
|
const b = () => {
|
|
@@ -7230,7 +7230,7 @@ function Xs({
|
|
|
7230
7230
|
let {
|
|
7231
7231
|
el: u
|
|
7232
7232
|
} = e.pagination;
|
|
7233
|
-
u && (u = K(u), u.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), f(), T(),
|
|
7233
|
+
u && (u = K(u), u.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), f(), T(), c();
|
|
7234
7234
|
}, x = () => {
|
|
7235
7235
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
7236
7236
|
let {
|
|
@@ -7242,7 +7242,7 @@ function Xs({
|
|
|
7242
7242
|
enable: b,
|
|
7243
7243
|
disable: x,
|
|
7244
7244
|
render: T,
|
|
7245
|
-
update:
|
|
7245
|
+
update: c,
|
|
7246
7246
|
init: f,
|
|
7247
7247
|
destroy: g
|
|
7248
7248
|
});
|
|
@@ -7275,82 +7275,82 @@ function Us({
|
|
|
7275
7275
|
clicked: !1
|
|
7276
7276
|
};
|
|
7277
7277
|
let n = null, i, s, o = (/* @__PURE__ */ new Date()).getTime();
|
|
7278
|
-
function l(
|
|
7278
|
+
function l(w) {
|
|
7279
7279
|
const M = n;
|
|
7280
|
-
M.length !== 0 && Pe(M,
|
|
7280
|
+
M.length !== 0 && Pe(M, w);
|
|
7281
7281
|
}
|
|
7282
|
-
function a(
|
|
7282
|
+
function a(w = 16) {
|
|
7283
7283
|
const M = () => Math.round(16 * Math.random()).toString(16);
|
|
7284
|
-
return "x".repeat(
|
|
7284
|
+
return "x".repeat(w).replace(/x/g, M);
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7287
|
-
|
|
7286
|
+
function d(w) {
|
|
7287
|
+
w = K(w), w.forEach((M) => {
|
|
7288
7288
|
M.setAttribute("tabIndex", "0");
|
|
7289
7289
|
});
|
|
7290
7290
|
}
|
|
7291
|
-
function p(
|
|
7292
|
-
|
|
7291
|
+
function p(w) {
|
|
7292
|
+
w = K(w), w.forEach((M) => {
|
|
7293
7293
|
M.setAttribute("tabIndex", "-1");
|
|
7294
7294
|
});
|
|
7295
7295
|
}
|
|
7296
|
-
function
|
|
7297
|
-
|
|
7296
|
+
function c(w, M) {
|
|
7297
|
+
w = K(w), w.forEach((S) => {
|
|
7298
7298
|
S.setAttribute("role", M);
|
|
7299
7299
|
});
|
|
7300
7300
|
}
|
|
7301
|
-
function T(
|
|
7302
|
-
|
|
7301
|
+
function T(w, M) {
|
|
7302
|
+
w = K(w), w.forEach((S) => {
|
|
7303
7303
|
S.setAttribute("aria-roledescription", M);
|
|
7304
7304
|
});
|
|
7305
7305
|
}
|
|
7306
|
-
function f(
|
|
7307
|
-
|
|
7306
|
+
function f(w, M) {
|
|
7307
|
+
w = K(w), w.forEach((S) => {
|
|
7308
7308
|
S.setAttribute("aria-controls", M);
|
|
7309
7309
|
});
|
|
7310
7310
|
}
|
|
7311
|
-
function g(
|
|
7312
|
-
|
|
7311
|
+
function g(w, M) {
|
|
7312
|
+
w = K(w), w.forEach((S) => {
|
|
7313
7313
|
S.setAttribute("aria-label", M);
|
|
7314
7314
|
});
|
|
7315
7315
|
}
|
|
7316
|
-
function b(
|
|
7317
|
-
|
|
7316
|
+
function b(w, M) {
|
|
7317
|
+
w = K(w), w.forEach((S) => {
|
|
7318
7318
|
S.setAttribute("id", M);
|
|
7319
7319
|
});
|
|
7320
7320
|
}
|
|
7321
|
-
function x(
|
|
7322
|
-
|
|
7321
|
+
function x(w, M) {
|
|
7322
|
+
w = K(w), w.forEach((S) => {
|
|
7323
7323
|
S.setAttribute("aria-live", M);
|
|
7324
7324
|
});
|
|
7325
7325
|
}
|
|
7326
|
-
function u(
|
|
7327
|
-
|
|
7326
|
+
function u(w) {
|
|
7327
|
+
w = K(w), w.forEach((M) => {
|
|
7328
7328
|
M.setAttribute("aria-disabled", !0);
|
|
7329
7329
|
});
|
|
7330
7330
|
}
|
|
7331
|
-
function m(
|
|
7332
|
-
|
|
7331
|
+
function m(w) {
|
|
7332
|
+
w = K(w), w.forEach((M) => {
|
|
7333
7333
|
M.setAttribute("aria-disabled", !1);
|
|
7334
7334
|
});
|
|
7335
7335
|
}
|
|
7336
|
-
function v(
|
|
7337
|
-
if (
|
|
7338
|
-
const M = e.params.a11y, S =
|
|
7339
|
-
if (!(e.pagination && e.pagination.el && (S === e.pagination.el || e.pagination.el.contains(
|
|
7336
|
+
function v(w) {
|
|
7337
|
+
if (w.keyCode !== 13 && w.keyCode !== 32) return;
|
|
7338
|
+
const M = e.params.a11y, S = w.target;
|
|
7339
|
+
if (!(e.pagination && e.pagination.el && (S === e.pagination.el || e.pagination.el.contains(w.target)) && !w.target.matches(he(e.params.pagination.bulletClass)))) {
|
|
7340
7340
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
7341
|
-
const
|
|
7342
|
-
K(e.navigation.nextEl).includes(S) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? l(M.lastSlideMessage) : l(M.nextSlideMessage)),
|
|
7341
|
+
const q = K(e.navigation.prevEl);
|
|
7342
|
+
K(e.navigation.nextEl).includes(S) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? l(M.lastSlideMessage) : l(M.nextSlideMessage)), q.includes(S) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? l(M.firstSlideMessage) : l(M.prevSlideMessage));
|
|
7343
7343
|
}
|
|
7344
7344
|
e.pagination && S.matches(he(e.params.pagination.bulletClass)) && S.click();
|
|
7345
7345
|
}
|
|
7346
7346
|
}
|
|
7347
|
-
function
|
|
7347
|
+
function E() {
|
|
7348
7348
|
if (e.params.loop || e.params.rewind || !e.navigation) return;
|
|
7349
7349
|
const {
|
|
7350
|
-
nextEl:
|
|
7350
|
+
nextEl: w,
|
|
7351
7351
|
prevEl: M
|
|
7352
7352
|
} = e.navigation;
|
|
7353
|
-
M && (e.isBeginning ? (u(M), p(M)) : (m(M),
|
|
7353
|
+
M && (e.isBeginning ? (u(M), p(M)) : (m(M), d(M))), w && (e.isEnd ? (u(w), p(w)) : (m(w), d(w)));
|
|
7354
7354
|
}
|
|
7355
7355
|
function y() {
|
|
7356
7356
|
return e.pagination && e.pagination.bullets && e.pagination.bullets.length;
|
|
@@ -7359,68 +7359,68 @@ function Us({
|
|
|
7359
7359
|
return y() && e.params.pagination.clickable;
|
|
7360
7360
|
}
|
|
7361
7361
|
function L() {
|
|
7362
|
-
const
|
|
7362
|
+
const w = e.params.a11y;
|
|
7363
7363
|
y() && e.pagination.bullets.forEach((M) => {
|
|
7364
|
-
e.params.pagination.clickable && (
|
|
7364
|
+
e.params.pagination.clickable && (d(M), e.params.pagination.renderBullet || (c(M, "button"), g(M, w.paginationBulletMessage.replace(/\{\{index\}\}/, De(M) + 1)))), M.matches(he(e.params.pagination.bulletActiveClass)) ? M.setAttribute("aria-current", "true") : M.removeAttribute("aria-current");
|
|
7365
7365
|
});
|
|
7366
7366
|
}
|
|
7367
|
-
const h = (
|
|
7368
|
-
|
|
7369
|
-
}, _ = (
|
|
7370
|
-
s && s !==
|
|
7367
|
+
const h = (w, M, S) => {
|
|
7368
|
+
d(w), w.tagName !== "BUTTON" && (c(w, "button"), w.addEventListener("keydown", v)), g(w, S), f(w, M);
|
|
7369
|
+
}, _ = (w) => {
|
|
7370
|
+
s && s !== w.target && !s.contains(w.target) && (i = !0), e.a11y.clicked = !0;
|
|
7371
7371
|
}, O = () => {
|
|
7372
7372
|
i = !1, requestAnimationFrame(() => {
|
|
7373
7373
|
requestAnimationFrame(() => {
|
|
7374
7374
|
e.destroyed || (e.a11y.clicked = !1);
|
|
7375
7375
|
});
|
|
7376
7376
|
});
|
|
7377
|
-
}, k = (
|
|
7377
|
+
}, k = (w) => {
|
|
7378
7378
|
o = (/* @__PURE__ */ new Date()).getTime();
|
|
7379
|
-
}, R = (
|
|
7379
|
+
}, R = (w) => {
|
|
7380
7380
|
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - o < 100) return;
|
|
7381
|
-
const M =
|
|
7381
|
+
const M = w.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
7382
7382
|
if (!M || !e.slides.includes(M)) return;
|
|
7383
7383
|
s = M;
|
|
7384
|
-
const S = e.slides.indexOf(M) === e.activeIndex,
|
|
7385
|
-
S ||
|
|
7384
|
+
const S = e.slides.indexOf(M) === e.activeIndex, q = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(M);
|
|
7385
|
+
S || q || w.sourceCapabilities && w.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
7386
7386
|
i || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(M.getAttribute("data-swiper-slide-index"))), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(M)), 0), i = !1);
|
|
7387
7387
|
}));
|
|
7388
7388
|
}, F = () => {
|
|
7389
|
-
const
|
|
7390
|
-
|
|
7389
|
+
const w = e.params.a11y;
|
|
7390
|
+
w.itemRoleDescriptionMessage && T(e.slides, w.itemRoleDescriptionMessage), w.slideRole && c(e.slides, w.slideRole);
|
|
7391
7391
|
const M = e.slides.length;
|
|
7392
|
-
|
|
7393
|
-
const C = e.params.loop ? parseInt(S.getAttribute("data-swiper-slide-index"), 10) :
|
|
7392
|
+
w.slideLabelMessage && e.slides.forEach((S, q) => {
|
|
7393
|
+
const C = e.params.loop ? parseInt(S.getAttribute("data-swiper-slide-index"), 10) : q, I = w.slideLabelMessage.replace(/\{\{index\}\}/, C + 1).replace(/\{\{slidesLength\}\}/, M);
|
|
7394
7394
|
g(S, I);
|
|
7395
7395
|
});
|
|
7396
7396
|
}, V = () => {
|
|
7397
|
-
const
|
|
7397
|
+
const w = e.params.a11y;
|
|
7398
7398
|
e.el.append(n);
|
|
7399
7399
|
const M = e.el;
|
|
7400
|
-
|
|
7401
|
-
const S = e.wrapperEl,
|
|
7402
|
-
if (b(S,
|
|
7403
|
-
const
|
|
7404
|
-
x(S,
|
|
7400
|
+
w.containerRoleDescriptionMessage && T(M, w.containerRoleDescriptionMessage), w.containerMessage && g(M, w.containerMessage), w.containerRole && c(M, w.containerRole);
|
|
7401
|
+
const S = e.wrapperEl, q = w.id || S.getAttribute("id") || `swiper-wrapper-${a(16)}`;
|
|
7402
|
+
if (b(S, q), w.wrapperLiveRegion) {
|
|
7403
|
+
const B = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
7404
|
+
x(S, B);
|
|
7405
7405
|
}
|
|
7406
7406
|
F();
|
|
7407
7407
|
let {
|
|
7408
7408
|
nextEl: C,
|
|
7409
7409
|
prevEl: I
|
|
7410
7410
|
} = e.navigation ? e.navigation : {};
|
|
7411
|
-
C = K(C), I = K(I), C && C.forEach((
|
|
7412
|
-
|
|
7413
|
-
}),
|
|
7411
|
+
C = K(C), I = K(I), C && C.forEach((B) => h(B, q, w.nextSlideMessage)), I && I.forEach((B) => h(B, q, w.prevSlideMessage)), A() && K(e.pagination.el).forEach((G) => {
|
|
7412
|
+
G.addEventListener("keydown", v);
|
|
7413
|
+
}), ce().addEventListener("visibilitychange", k), e.el.addEventListener("focus", R, !0), e.el.addEventListener("focus", R, !0), e.el.addEventListener("pointerdown", _, !0), e.el.addEventListener("pointerup", O, !0);
|
|
7414
7414
|
};
|
|
7415
7415
|
function Q() {
|
|
7416
7416
|
n && n.remove();
|
|
7417
7417
|
let {
|
|
7418
|
-
nextEl:
|
|
7418
|
+
nextEl: w,
|
|
7419
7419
|
prevEl: M
|
|
7420
7420
|
} = e.navigation ? e.navigation : {};
|
|
7421
|
-
|
|
7421
|
+
w = K(w), M = K(M), w && w.forEach((q) => q.removeEventListener("keydown", v)), M && M.forEach((q) => q.removeEventListener("keydown", v)), A() && K(e.pagination.el).forEach((C) => {
|
|
7422
7422
|
C.removeEventListener("keydown", v);
|
|
7423
|
-
}),
|
|
7423
|
+
}), ce().removeEventListener("visibilitychange", k), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", R, !0), e.el.removeEventListener("pointerdown", _, !0), e.el.removeEventListener("pointerup", O, !0));
|
|
7424
7424
|
}
|
|
7425
7425
|
t("beforeInit", () => {
|
|
7426
7426
|
n = Ne("span", e.params.a11y.notificationClass), n.setAttribute("aria-live", "assertive"), n.setAttribute("aria-atomic", "true");
|
|
@@ -7429,7 +7429,7 @@ function Us({
|
|
|
7429
7429
|
}), t("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
7430
7430
|
e.params.a11y.enabled && F();
|
|
7431
7431
|
}), t("fromEdge toEdge afterInit lock unlock", () => {
|
|
7432
|
-
e.params.a11y.enabled &&
|
|
7432
|
+
e.params.a11y.enabled && E();
|
|
7433
7433
|
}), t("paginationUpdate", () => {
|
|
7434
7434
|
e.params.a11y.enabled && L();
|
|
7435
7435
|
}), t("destroy", () => {
|
|
@@ -7458,27 +7458,27 @@ function Ks({
|
|
|
7458
7458
|
pauseOnMouseEnter: !1
|
|
7459
7459
|
}
|
|
7460
7460
|
});
|
|
7461
|
-
let s, o, l = i && i.autoplay ? i.autoplay.delay : 3e3, a = i && i.autoplay ? i.autoplay.delay : 3e3,
|
|
7461
|
+
let s, o, l = i && i.autoplay ? i.autoplay.delay : 3e3, a = i && i.autoplay ? i.autoplay.delay : 3e3, d, p = (/* @__PURE__ */ new Date()).getTime(), c, T, f, g, b, x, u;
|
|
7462
7462
|
function m(M) {
|
|
7463
7463
|
!e || e.destroyed || !e.wrapperEl || M.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", m), !(u || M.detail && M.detail.bySwiperTouchMove) && _());
|
|
7464
7464
|
}
|
|
7465
7465
|
const v = () => {
|
|
7466
7466
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7467
|
-
e.autoplay.paused ?
|
|
7468
|
-
const M = e.autoplay.paused ?
|
|
7467
|
+
e.autoplay.paused ? c = !0 : c && (a = d, c = !1);
|
|
7468
|
+
const M = e.autoplay.paused ? d : p + a - (/* @__PURE__ */ new Date()).getTime();
|
|
7469
7469
|
e.autoplay.timeLeft = M, n("autoplayTimeLeft", M, M / l), o = requestAnimationFrame(() => {
|
|
7470
7470
|
v();
|
|
7471
7471
|
});
|
|
7472
|
-
},
|
|
7472
|
+
}, E = () => {
|
|
7473
7473
|
let M;
|
|
7474
|
-
return e.virtual && e.params.virtual.enabled ? M = e.slides.find((
|
|
7474
|
+
return e.virtual && e.params.virtual.enabled ? M = e.slides.find((q) => q.classList.contains("swiper-slide-active")) : M = e.slides[e.activeIndex], M ? parseInt(M.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
7475
7475
|
}, y = (M) => {
|
|
7476
7476
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7477
7477
|
cancelAnimationFrame(o), v();
|
|
7478
7478
|
let S = typeof M > "u" ? e.params.autoplay.delay : M;
|
|
7479
7479
|
l = e.params.autoplay.delay, a = e.params.autoplay.delay;
|
|
7480
|
-
const
|
|
7481
|
-
!Number.isNaN(
|
|
7480
|
+
const q = E();
|
|
7481
|
+
!Number.isNaN(q) && q > 0 && typeof M > "u" && (S = q, l = q, a = q), d = S;
|
|
7482
7482
|
const C = e.params.speed, I = () => {
|
|
7483
7483
|
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(C, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, C, !0, !0), n("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(C, !0, !0), n("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, C, !0, !0), n("autoplay")), e.params.cssMode && (p = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
7484
7484
|
y();
|
|
@@ -7496,19 +7496,19 @@ function Ks({
|
|
|
7496
7496
|
}, h = (M, S) => {
|
|
7497
7497
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7498
7498
|
clearTimeout(s), M || (x = !0);
|
|
7499
|
-
const
|
|
7499
|
+
const q = () => {
|
|
7500
7500
|
n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", m) : _();
|
|
7501
7501
|
};
|
|
7502
7502
|
if (e.autoplay.paused = !0, S) {
|
|
7503
|
-
b && (
|
|
7503
|
+
b && (d = e.params.autoplay.delay), b = !1, q();
|
|
7504
7504
|
return;
|
|
7505
7505
|
}
|
|
7506
|
-
|
|
7506
|
+
d = (d || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - p), !(e.isEnd && d < 0 && !e.params.loop) && (d < 0 && (d = 0), q());
|
|
7507
7507
|
}, _ = () => {
|
|
7508
|
-
e.isEnd &&
|
|
7508
|
+
e.isEnd && d < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (p = (/* @__PURE__ */ new Date()).getTime(), x ? (x = !1, y(d)) : y(), e.autoplay.paused = !1, n("autoplayResume"));
|
|
7509
7509
|
}, O = () => {
|
|
7510
7510
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7511
|
-
const M =
|
|
7511
|
+
const M = ce();
|
|
7512
7512
|
M.visibilityState === "hidden" && (x = !0, h(!0)), M.visibilityState === "visible" && _();
|
|
7513
7513
|
}, k = (M) => {
|
|
7514
7514
|
M.pointerType === "mouse" && (x = !0, u = !0, !(e.animating || e.autoplay.paused) && h(!0));
|
|
@@ -7519,20 +7519,20 @@ function Ks({
|
|
|
7519
7519
|
}, V = () => {
|
|
7520
7520
|
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", k), e.el.removeEventListener("pointerleave", R));
|
|
7521
7521
|
}, Q = () => {
|
|
7522
|
-
|
|
7523
|
-
},
|
|
7524
|
-
|
|
7522
|
+
ce().addEventListener("visibilitychange", O);
|
|
7523
|
+
}, w = () => {
|
|
7524
|
+
ce().removeEventListener("visibilitychange", O);
|
|
7525
7525
|
};
|
|
7526
7526
|
t("init", () => {
|
|
7527
7527
|
e.params.autoplay.enabled && (F(), Q(), A());
|
|
7528
7528
|
}), t("destroy", () => {
|
|
7529
|
-
V(),
|
|
7529
|
+
V(), w(), e.autoplay.running && L();
|
|
7530
7530
|
}), t("_freeModeStaticRelease", () => {
|
|
7531
7531
|
(f || x) && _();
|
|
7532
7532
|
}), t("_freeModeNoMomentumRelease", () => {
|
|
7533
7533
|
e.params.autoplay.disableOnInteraction ? L() : h(!0, !0);
|
|
7534
|
-
}), t("beforeTransitionStart", (M, S,
|
|
7535
|
-
e.destroyed || !e.autoplay.running || (
|
|
7534
|
+
}), t("beforeTransitionStart", (M, S, q) => {
|
|
7535
|
+
e.destroyed || !e.autoplay.running || (q || !e.params.autoplay.disableOnInteraction ? h(!0, !0) : L());
|
|
7536
7536
|
}), t("sliderFirstMove", () => {
|
|
7537
7537
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
7538
7538
|
if (e.params.autoplay.disableOnInteraction) {
|
|
@@ -7583,7 +7583,7 @@ function Js({
|
|
|
7583
7583
|
fill: u
|
|
7584
7584
|
} = e.params.grid, m = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : g.length;
|
|
7585
7585
|
s = Math.floor(m / x), Math.floor(m / x) === m / x ? n = m : n = Math.ceil(m / x) * x, b !== "auto" && u === "row" && (n = Math.max(n, b * x)), i = n / x;
|
|
7586
|
-
},
|
|
7586
|
+
}, d = () => {
|
|
7587
7587
|
e.slides && e.slides.forEach((g) => {
|
|
7588
7588
|
g.swiperSlideGridSet && (g.style.height = "", g.style[e.getDirectionLabel("margin-top")] = "");
|
|
7589
7589
|
});
|
|
@@ -7592,15 +7592,15 @@ function Js({
|
|
|
7592
7592
|
slidesPerGroup: u
|
|
7593
7593
|
} = e.params, m = l(), {
|
|
7594
7594
|
rows: v,
|
|
7595
|
-
fill:
|
|
7595
|
+
fill: E
|
|
7596
7596
|
} = e.params.grid, y = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : x.length;
|
|
7597
7597
|
let A, L, h;
|
|
7598
|
-
if (
|
|
7598
|
+
if (E === "row" && u > 1) {
|
|
7599
7599
|
const _ = Math.floor(g / (u * v)), O = g - v * u * _, k = _ === 0 ? u : Math.min(Math.ceil((y - _ * v * u) / v), u);
|
|
7600
7600
|
h = Math.floor(O / k), L = O - h * k + _ * u, A = L + h * n / v, b.style.order = A;
|
|
7601
|
-
} else
|
|
7601
|
+
} else E === "column" ? (L = Math.floor(g / v), h = g - L * v, (L > s || L === s && h === v - 1) && (h += 1, h >= v && (h = 0, L += 1))) : (h = Math.floor(g / i), L = g - h * i);
|
|
7602
7602
|
b.row = h, b.column = L, b.style.height = `calc((100% - ${(v - 1) * m}px) / ${v})`, b.style[e.getDirectionLabel("margin-top")] = h !== 0 ? m && `${m}px` : "", b.swiperSlideGridSet = !0;
|
|
7603
|
-
},
|
|
7603
|
+
}, c = (g, b) => {
|
|
7604
7604
|
const {
|
|
7605
7605
|
centeredSlides: x,
|
|
7606
7606
|
roundLengths: u
|
|
@@ -7608,12 +7608,12 @@ function Js({
|
|
|
7608
7608
|
rows: v
|
|
7609
7609
|
} = e.params.grid;
|
|
7610
7610
|
if (e.virtualSize = (g + m) * n, e.virtualSize = Math.ceil(e.virtualSize / v) - m, e.params.cssMode || (e.wrapperEl.style[e.getDirectionLabel("width")] = `${e.virtualSize + m}px`), x) {
|
|
7611
|
-
const
|
|
7611
|
+
const E = [];
|
|
7612
7612
|
for (let y = 0; y < b.length; y += 1) {
|
|
7613
7613
|
let A = b[y];
|
|
7614
|
-
u && (A = Math.floor(A)), b[y] < e.virtualSize + b[0] &&
|
|
7614
|
+
u && (A = Math.floor(A)), b[y] < e.virtualSize + b[0] && E.push(A);
|
|
7615
7615
|
}
|
|
7616
|
-
b.splice(0, b.length), b.push(...
|
|
7616
|
+
b.splice(0, b.length), b.push(...E);
|
|
7617
7617
|
}
|
|
7618
7618
|
}, T = () => {
|
|
7619
7619
|
o = e.params.grid && e.params.grid.rows > 1;
|
|
@@ -7626,12 +7626,12 @@ function Js({
|
|
|
7626
7626
|
};
|
|
7627
7627
|
t("init", T), t("update", f), e.grid = {
|
|
7628
7628
|
initSlides: a,
|
|
7629
|
-
unsetSlides:
|
|
7629
|
+
unsetSlides: d,
|
|
7630
7630
|
updateSlide: p,
|
|
7631
|
-
updateWrapperSize:
|
|
7631
|
+
updateWrapperSize: c
|
|
7632
7632
|
};
|
|
7633
7633
|
}
|
|
7634
|
-
const
|
|
7634
|
+
const $t = ({
|
|
7635
7635
|
className: e = "",
|
|
7636
7636
|
slides: r,
|
|
7637
7637
|
breakpoints: t,
|
|
@@ -7641,14 +7641,14 @@ const Gt = ({
|
|
|
7641
7641
|
pagination: o = !0,
|
|
7642
7642
|
autoplay: l = !0,
|
|
7643
7643
|
autoplayDelay: a = 3e3,
|
|
7644
|
-
loop:
|
|
7644
|
+
loop: d = !0,
|
|
7645
7645
|
display: p = "auto",
|
|
7646
7646
|
// "auto" | "grid"
|
|
7647
|
-
onSwiper:
|
|
7647
|
+
onSwiper: c,
|
|
7648
7648
|
onSlideChange: T
|
|
7649
7649
|
}) => {
|
|
7650
|
-
const { theme: f } =
|
|
7651
|
-
return /* @__PURE__ */
|
|
7650
|
+
const { theme: f } = de(Fr);
|
|
7651
|
+
return /* @__PURE__ */ $("div", { className: "relative w-full", children: /* @__PURE__ */ $(
|
|
7652
7652
|
on,
|
|
7653
7653
|
{
|
|
7654
7654
|
modules: [Us, Ks, Js, Ys, Xs],
|
|
@@ -7658,7 +7658,7 @@ const Gt = ({
|
|
|
7658
7658
|
slidesPerView: i,
|
|
7659
7659
|
navigation: p === "grid" ? !1 : s,
|
|
7660
7660
|
pagination: o ? { clickable: !0 } : !1,
|
|
7661
|
-
loop: p === "grid" ? !1 :
|
|
7661
|
+
loop: p === "grid" ? !1 : d,
|
|
7662
7662
|
autoplay: l && {
|
|
7663
7663
|
delay: a,
|
|
7664
7664
|
disableOnInteraction: !1
|
|
@@ -7667,19 +7667,19 @@ const Gt = ({
|
|
|
7667
7667
|
fill: "row",
|
|
7668
7668
|
rows: 2
|
|
7669
7669
|
},
|
|
7670
|
-
onSwiper:
|
|
7670
|
+
onSwiper: c,
|
|
7671
7671
|
onSlideChange: T,
|
|
7672
7672
|
className: re("TESTIMONIALS-CAROUSEL", "relative w-full pb-12! px-12!", e),
|
|
7673
7673
|
style: {
|
|
7674
7674
|
"--swiper-pagination-color": f.primary,
|
|
7675
7675
|
"--swiper-navigation-color": f.primary
|
|
7676
7676
|
},
|
|
7677
|
-
children: r.map((x, u) => /* @__PURE__ */
|
|
7677
|
+
children: r.map((x, u) => /* @__PURE__ */ $(ln, { children: x }, u))
|
|
7678
7678
|
}
|
|
7679
7679
|
) });
|
|
7680
7680
|
};
|
|
7681
|
-
|
|
7682
|
-
|
|
7681
|
+
$t.displayName = "Testimonials.Carousel";
|
|
7682
|
+
$t.propTypes = {
|
|
7683
7683
|
slides: P.arrayOf(P.node).isRequired,
|
|
7684
7684
|
breakpoints: P.object,
|
|
7685
7685
|
spaceBetween: P.number,
|
|
@@ -7693,10 +7693,10 @@ Gt.propTypes = {
|
|
|
7693
7693
|
onSwiper: P.func,
|
|
7694
7694
|
onSlideChange: P.func
|
|
7695
7695
|
};
|
|
7696
|
-
const Ze = ({ id: e, theme: r, children: t }) => /* @__PURE__ */
|
|
7696
|
+
const Ze = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ $(bi, { id: e, theme: r, children: t });
|
|
7697
7697
|
Ze.Base = Nt;
|
|
7698
7698
|
Ze.Container = Dt;
|
|
7699
|
-
Ze.Carousel =
|
|
7699
|
+
Ze.Carousel = $t;
|
|
7700
7700
|
Ze.propTypes = {
|
|
7701
7701
|
id: P.string.isRequired,
|
|
7702
7702
|
theme: P.shape({
|
|
@@ -7708,11 +7708,11 @@ Ze.propTypes = {
|
|
|
7708
7708
|
children: P.node.isRequired
|
|
7709
7709
|
};
|
|
7710
7710
|
export {
|
|
7711
|
-
|
|
7711
|
+
ci as Button,
|
|
7712
7712
|
Te as Cover,
|
|
7713
|
-
|
|
7713
|
+
we as Drawer,
|
|
7714
7714
|
Le as Header,
|
|
7715
7715
|
Ae as NextSteps,
|
|
7716
|
-
|
|
7716
|
+
Be as Record,
|
|
7717
7717
|
Ze as Testimonials
|
|
7718
7718
|
};
|