@redhq/ui 1.4.0 → 1.6.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 +569 -569
- 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 G, jsxs as
|
|
2
|
-
import ie, { createContext as ye, useContext as
|
|
1
|
+
import { jsx as G, 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 qe = { 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) {
|
|
@@ -40,9 +40,9 @@ function pn() {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
function w(y) {
|
|
43
|
-
return v(y) ===
|
|
43
|
+
return v(y) === d;
|
|
44
44
|
}
|
|
45
|
-
return ee.AsyncMode = a, ee.ConcurrentMode =
|
|
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
46
|
return w(y) || v(y) === a;
|
|
47
47
|
}, ee.isConcurrentMode = w, ee.isContextConsumer = function(y) {
|
|
48
48
|
return v(y) === l;
|
|
@@ -65,19 +65,19 @@ 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
|
-
var
|
|
74
|
+
var Ft;
|
|
75
75
|
function mn() {
|
|
76
|
-
return
|
|
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,
|
|
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, 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
82
|
function w(z) {
|
|
83
83
|
if (typeof z == "object" && z !== null) {
|
|
@@ -87,21 +87,21 @@ function mn() {
|
|
|
87
87
|
var Ge = z.type;
|
|
88
88
|
switch (Ge) {
|
|
89
89
|
case a:
|
|
90
|
-
case
|
|
90
|
+
case d:
|
|
91
91
|
case n:
|
|
92
92
|
case s:
|
|
93
93
|
case i:
|
|
94
|
-
case
|
|
94
|
+
case c:
|
|
95
95
|
return Ge;
|
|
96
96
|
default:
|
|
97
|
-
var
|
|
98
|
-
switch (
|
|
97
|
+
var qt = Ge && Ge.$$typeof;
|
|
98
|
+
switch (qt) {
|
|
99
99
|
case l:
|
|
100
100
|
case p:
|
|
101
101
|
case g:
|
|
102
102
|
case f:
|
|
103
103
|
case o:
|
|
104
|
-
return
|
|
104
|
+
return qt;
|
|
105
105
|
default:
|
|
106
106
|
return ue;
|
|
107
107
|
}
|
|
@@ -111,12 +111,12 @@ function mn() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
var y = a, A =
|
|
114
|
+
var y = a, A = d, L = l, h = o, _ = r, O = p, k = n, R = g, F = f, V = t, Q = s, E = i, M = c, S = !1;
|
|
115
115
|
function B(z) {
|
|
116
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) || w(z) === a;
|
|
117
117
|
}
|
|
118
118
|
function C(z) {
|
|
119
|
-
return w(z) ===
|
|
119
|
+
return w(z) === d;
|
|
120
120
|
}
|
|
121
121
|
function I(z) {
|
|
122
122
|
return w(z) === l;
|
|
@@ -127,7 +127,7 @@ function mn() {
|
|
|
127
127
|
function $(z) {
|
|
128
128
|
return typeof z == "object" && z !== null && z.$$typeof === r;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function q(z) {
|
|
131
131
|
return w(z) === p;
|
|
132
132
|
}
|
|
133
133
|
function X(z) {
|
|
@@ -136,7 +136,7 @@ function mn() {
|
|
|
136
136
|
function W(z) {
|
|
137
137
|
return w(z) === g;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function j(z) {
|
|
140
140
|
return w(z) === f;
|
|
141
141
|
}
|
|
142
142
|
function J(z) {
|
|
@@ -149,14 +149,14 @@ function mn() {
|
|
|
149
149
|
return w(z) === i;
|
|
150
150
|
}
|
|
151
151
|
function se(z) {
|
|
152
|
-
return w(z) ===
|
|
152
|
+
return w(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 =
|
|
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 = E, te.Suspense = M, te.isAsyncMode = B, te.isConcurrentMode = C, te.isContextConsumer = I, te.isContextProvider = H, te.isElement = $, te.isForwardRef = q, 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 = w;
|
|
155
155
|
})()), te;
|
|
156
156
|
}
|
|
157
|
-
var
|
|
157
|
+
var Vt;
|
|
158
158
|
function fr() {
|
|
159
|
-
return
|
|
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
|
}
|
|
@@ -307,7 +307,7 @@ function vn() {
|
|
|
307
307
|
oneOf: L,
|
|
308
308
|
oneOfType: _,
|
|
309
309
|
shape: R,
|
|
310
|
-
exact:
|
|
310
|
+
exact: F
|
|
311
311
|
};
|
|
312
312
|
function g(C, I) {
|
|
313
313
|
return C === I ? C !== 0 || 1 / C === 1 / I : C !== C && I !== I;
|
|
@@ -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 $(X, W,
|
|
323
|
-
if (J = J || T, U = U ||
|
|
322
|
+
function $(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 q = $.bind(null, !1);
|
|
340
|
+
return q.isRequired = $.bind(null, !0), q;
|
|
341
341
|
}
|
|
342
342
|
function u(C) {
|
|
343
|
-
function I(H, $,
|
|
343
|
+
function I(H, $, q, X, W, j) {
|
|
344
344
|
var J = H[$], Z = E(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 `" + q + "`, 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, $, q, 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 = E(
|
|
366
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" +
|
|
362
|
+
return new b("Property `" + W + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
|
|
363
|
+
var j = H[$];
|
|
364
|
+
if (!Array.isArray(j)) {
|
|
365
|
+
var J = E(j);
|
|
366
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + q + "`, 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, q, X, W + "[" + Z + "]", t);
|
|
370
370
|
if (U instanceof Error)
|
|
371
371
|
return U;
|
|
372
372
|
}
|
|
@@ -375,32 +375,32 @@ function vn() {
|
|
|
375
375
|
return x(I);
|
|
376
376
|
}
|
|
377
377
|
function w() {
|
|
378
|
-
function C(I, H, $,
|
|
378
|
+
function C(I, H, $, q, X) {
|
|
379
379
|
var W = I[H];
|
|
380
380
|
if (!l(W)) {
|
|
381
|
-
var
|
|
382
|
-
return new b("Invalid " +
|
|
381
|
+
var j = E(W);
|
|
382
|
+
return new b("Invalid " + q + " `" + X + "` of type " + ("`" + j + "` supplied to `" + $ + "`, 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, $, q, X) {
|
|
390
390
|
var W = I[H];
|
|
391
391
|
if (!e.isValidElementType(W)) {
|
|
392
|
-
var
|
|
393
|
-
return new b("Invalid " +
|
|
392
|
+
var j = E(W);
|
|
393
|
+
return new b("Invalid " + q + " `" + X + "` of type " + ("`" + j + "` supplied to `" + $ + "`, 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, $,
|
|
400
|
+
function I(H, $, q, X, W) {
|
|
401
401
|
if (!(H[$] instanceof C)) {
|
|
402
|
-
var
|
|
403
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" +
|
|
402
|
+
var j = C.name || T, J = B(H[$]);
|
|
403
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + q + "`, 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, $, q, X, W) {
|
|
415
|
+
for (var j = H[$], 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 `" + q + "`, 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, $, q, 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 `" + q + "` has invalid PropType notation inside objectOf.");
|
|
430
|
+
var j = H[$], J = E(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 `" + q + "`, expected an object."));
|
|
433
|
+
for (var Z in j)
|
|
434
|
+
if (n(j, Z)) {
|
|
435
|
+
var U = C(j, Z, q, 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 $(q, 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(q, 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
463
|
return x($);
|
|
464
464
|
}
|
|
465
465
|
function O() {
|
|
466
|
-
function C(I, H, $,
|
|
467
|
-
return
|
|
466
|
+
function C(I, H, $, q, X) {
|
|
467
|
+
return V(I[H]) ? null : new b("Invalid " + q + " `" + X + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
468
468
|
}
|
|
469
469
|
return x(C);
|
|
470
470
|
}
|
|
471
|
-
function k(C, I, H, $,
|
|
471
|
+
function k(C, I, H, $, q) {
|
|
472
472
|
return new b(
|
|
473
|
-
(C || "React class") + ": " + I + " type `" + H + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
473
|
+
(C || "React class") + ": " + I + " type `" + H + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + q + "`."
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
476
|
function R(C) {
|
|
477
|
-
function I(H, $,
|
|
478
|
-
var
|
|
477
|
+
function I(H, $, q, X, W) {
|
|
478
|
+
var j = H[$], J = E(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 `" + q + "`, 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(q, X, W, Z, M(U));
|
|
485
|
+
var se = U(j, Z, q, X, W + "." + Z, t);
|
|
486
486
|
if (se)
|
|
487
487
|
return se;
|
|
488
488
|
}
|
|
@@ -490,22 +490,22 @@ function vn() {
|
|
|
490
490
|
}
|
|
491
491
|
return x(I);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
function I(H, $,
|
|
495
|
-
var
|
|
493
|
+
function F(C) {
|
|
494
|
+
function I(H, $, q, X, W) {
|
|
495
|
+
var j = H[$], J = E(j);
|
|
496
496
|
if (J !== "object")
|
|
497
|
-
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" +
|
|
497
|
+
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
498
498
|
var Z = r({}, H[$], 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(q, 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 `" + q + "`.\nBad object: " + JSON.stringify(H[$], null, " ") + `
|
|
506
506
|
Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
507
507
|
);
|
|
508
|
-
var z = se(
|
|
508
|
+
var z = se(j, U, q, X, W + "." + U, t);
|
|
509
509
|
if (z)
|
|
510
510
|
return z;
|
|
511
511
|
}
|
|
@@ -513,7 +513,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
513
513
|
}
|
|
514
514
|
return x(I);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function V(C) {
|
|
517
517
|
switch (typeof C) {
|
|
518
518
|
case "number":
|
|
519
519
|
case "string":
|
|
@@ -523,20 +523,20 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
523
523
|
return !C;
|
|
524
524
|
case "object":
|
|
525
525
|
if (Array.isArray(C))
|
|
526
|
-
return C.every(
|
|
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
531
|
var H = I.call(C), $;
|
|
532
532
|
if (I !== C.entries) {
|
|
533
533
|
for (; !($ = H.next()).done; )
|
|
534
|
-
if (!
|
|
534
|
+
if (!V($.value))
|
|
535
535
|
return !1;
|
|
536
536
|
} else
|
|
537
537
|
for (; !($ = H.next()).done; ) {
|
|
538
|
-
var
|
|
539
|
-
if (
|
|
538
|
+
var q = $.value;
|
|
539
|
+
if (q && !V(q[1]))
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
542
|
} else
|
|
@@ -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 qe.exports;
|
|
639
639
|
if (Jt = 1, process.env.NODE_ENV !== "production") {
|
|
640
640
|
var e = fr(), r = !0;
|
|
641
|
-
|
|
641
|
+
qe.exports = /* @__PURE__ */ vn()(e.isElement, r);
|
|
642
642
|
} else
|
|
643
|
-
|
|
644
|
-
return
|
|
643
|
+
qe.exports = /* @__PURE__ */ bn()();
|
|
644
|
+
return qe.exports;
|
|
645
645
|
}
|
|
646
646
|
var xn = /* @__PURE__ */ yn();
|
|
647
647
|
const P = /* @__PURE__ */ fn(xn);
|
|
@@ -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,15 +697,15 @@ 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
|
}
|
|
@@ -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) {
|
|
@@ -868,15 +868,15 @@ const Tn = (e, r) => {
|
|
|
868
868
|
sortModifiers: s
|
|
869
869
|
} = r, o = [], l = e.trim().split($n);
|
|
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
|
}
|
|
@@ -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
|
+
}, qn = (...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 = Bn(
|
|
922
|
+
const d = r.reduce((p, c) => c(p), e());
|
|
923
|
+
return t = Bn(d), n = t.cache.get, i = t.cache.set, s = l, l(a);
|
|
924
924
|
}, l = (a) => {
|
|
925
|
-
const
|
|
926
|
-
if (
|
|
927
|
-
return
|
|
925
|
+
const d = n(a);
|
|
926
|
+
if (d)
|
|
927
|
+
return d;
|
|
928
928
|
const p = Gn(a, t);
|
|
929
929
|
return i(a, p), p;
|
|
930
930
|
};
|
|
931
|
-
return s = o, (...a) => s(
|
|
932
|
-
},
|
|
933
|
-
const r = (t) => t[e] ||
|
|
931
|
+
return s = o, (...a) => s(qn(...a));
|
|
932
|
+
}, Fn = [], ne = (e) => {
|
|
933
|
+
const r = (t) => t[e] || Fn;
|
|
934
934
|
return r.isThemeGetter = !0, r;
|
|
935
|
-
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
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)\(.+\)$/, we = (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, wr, 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, Er, Qn),
|
|
940
|
+
), Sr = () => !1, Zn = (e) => Xn.test(e), Qn = (e) => Un.test(e), ei = (e) => !N(e) && !D(e), ti = (e) => Oe(e, wr, 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, Er, 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, wr), si = (e) => ke(e, Er), 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
946
|
}, Tr = (e) => e === "position" || e === "percentage", Er = (e) => e === "image" || e === "url", wr = (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"),
|
|
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"], w = () => [
|
|
948
948
|
"center",
|
|
949
949
|
"top",
|
|
950
950
|
"bottom",
|
|
@@ -964,7 +964,7 @@ const Tn = (e, r) => {
|
|
|
964
964
|
"left-bottom"
|
|
965
965
|
], y = () => [...w(), D, N], A = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], h = () => [D, N, a], _ = () => [we, "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],
|
|
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"], E = () => ["auto", ...h()], M = () => [we, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...h()], S = () => [e, D, N], B = () => [...w(), rr, tr, {
|
|
968
968
|
position: [D, N]
|
|
969
969
|
}], C = () => ["no-repeat", {
|
|
970
970
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -975,10 +975,10 @@ const Tn = (e, r) => {
|
|
|
975
975
|
"",
|
|
976
976
|
"none",
|
|
977
977
|
"full",
|
|
978
|
-
|
|
978
|
+
d,
|
|
979
979
|
D,
|
|
980
980
|
N
|
|
981
|
-
],
|
|
981
|
+
], q = () => ["", 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",
|
|
@@ -1353,14 +1353,14 @@ const Tn = (e, r) => {
|
|
|
1353
1353
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1354
1354
|
*/
|
|
1355
1355
|
"auto-cols": [{
|
|
1356
|
-
"auto-cols":
|
|
1356
|
+
"auto-cols": F()
|
|
1357
1357
|
}],
|
|
1358
1358
|
/**
|
|
1359
1359
|
* Grid Auto Rows
|
|
1360
1360
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1361
1361
|
*/
|
|
1362
1362
|
"auto-rows": [{
|
|
1363
|
-
"auto-rows":
|
|
1363
|
+
"auto-rows": F()
|
|
1364
1364
|
}],
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Gap
|
|
@@ -1388,7 +1388,7 @@ const Tn = (e, r) => {
|
|
|
1388
1388
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1389
1389
|
*/
|
|
1390
1390
|
"justify-content": [{
|
|
1391
|
-
justify: [...
|
|
1391
|
+
justify: [...V(), "normal"]
|
|
1392
1392
|
}],
|
|
1393
1393
|
/**
|
|
1394
1394
|
* Justify Items
|
|
@@ -1409,7 +1409,7 @@ const Tn = (e, r) => {
|
|
|
1409
1409
|
* @see https://tailwindcss.com/docs/align-content
|
|
1410
1410
|
*/
|
|
1411
1411
|
"align-content": [{
|
|
1412
|
-
content: ["normal", ...
|
|
1412
|
+
content: ["normal", ...V()]
|
|
1413
1413
|
}],
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Align Items
|
|
@@ -1434,7 +1434,7 @@ const Tn = (e, r) => {
|
|
|
1434
1434
|
* @see https://tailwindcss.com/docs/place-content
|
|
1435
1435
|
*/
|
|
1436
1436
|
"place-content": [{
|
|
1437
|
-
"place-content":
|
|
1437
|
+
"place-content": V()
|
|
1438
1438
|
}],
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Place Items
|
|
@@ -2128,70 +2128,70 @@ const Tn = (e, r) => {
|
|
|
2128
2128
|
* @see https://tailwindcss.com/docs/border-width
|
|
2129
2129
|
*/
|
|
2130
2130
|
"border-w": [{
|
|
2131
|
-
border:
|
|
2131
|
+
border: q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
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": q()
|
|
2207
2207
|
}],
|
|
2208
2208
|
/**
|
|
2209
2209
|
* Divide Width Y Reverse
|
|
@@ -2335,8 +2335,8 @@ const Tn = (e, r) => {
|
|
|
2335
2335
|
"",
|
|
2336
2336
|
"none",
|
|
2337
2337
|
p,
|
|
2338
|
-
|
|
2339
|
-
|
|
2338
|
+
Ve,
|
|
2339
|
+
Fe
|
|
2340
2340
|
]
|
|
2341
2341
|
}],
|
|
2342
2342
|
/**
|
|
@@ -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: q()
|
|
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": q()
|
|
2408
2408
|
}],
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Inset Ring Color
|
|
@@ -2418,7 +2418,7 @@ const Tn = (e, r) => {
|
|
|
2418
2418
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2419
2419
|
*/
|
|
2420
2420
|
"text-shadow": [{
|
|
2421
|
-
"text-shadow": ["none", T,
|
|
2421
|
+
"text-shadow": ["none", T, Ve, Fe]
|
|
2422
2422
|
}],
|
|
2423
2423
|
/**
|
|
2424
2424
|
* Text Shadow 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()
|
|
@@ -2584,10 +2584,10 @@ const Tn = (e, r) => {
|
|
|
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()
|
|
@@ -2691,8 +2691,8 @@ const Tn = (e, r) => {
|
|
|
2691
2691
|
"",
|
|
2692
2692
|
"none",
|
|
2693
2693
|
f,
|
|
2694
|
-
|
|
2695
|
-
|
|
2694
|
+
Ve,
|
|
2695
|
+
Fe
|
|
2696
2696
|
]
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
@@ -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",
|
|
@@ -3425,24 +3425,24 @@ const ze = {
|
|
|
3425
3425
|
},
|
|
3426
3426
|
color: {
|
|
3427
3427
|
solid: {
|
|
3428
|
-
primary: "text-[var(--
|
|
3429
|
-
secondary: "text-white bg-
|
|
3430
|
-
info: "text-white bg-cyan-500 hover:bg-cyan-600 active:bg-cyan-700 border border-cyan-500 hover:border-cyan-600 active:border-cyan-700",
|
|
3431
|
-
success: "text-white bg-emerald-500 hover:bg-emerald-600 active:bg-emerald-700 border border-emerald-500 hover:border-emerald-600 active:border-emerald-700",
|
|
3432
|
-
warning: "text-white bg-amber-500 hover:bg-amber-600 active:bg-amber-700 border border-amber-500 hover:border-amber-600 active:border-amber-700",
|
|
3433
|
-
danger: "text-white bg-rose-500 hover:bg-rose-600 active:bg-rose-700 border border-rose-500 hover:border-rose-600 active:border-rose-700"
|
|
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-[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-cyan-500 hover:bg-cyan-600 active:bg-cyan-700 border border-cyan-500 hover:border-cyan-600 active:border-cyan-700",
|
|
3431
|
+
success: "text-[var(--redhq-white)] bg-emerald-500 hover:bg-emerald-600 active:bg-emerald-700 border border-emerald-500 hover:border-emerald-600 active:border-emerald-700",
|
|
3432
|
+
warning: "text-[var(--redhq-white)] bg-amber-500 hover:bg-amber-600 active:bg-amber-700 border border-amber-500 hover:border-amber-600 active:border-amber-700",
|
|
3433
|
+
danger: "text-[var(--redhq-white)] bg-rose-500 hover:bg-rose-600 active:bg-rose-700 border border-rose-500 hover:border-rose-600 active:border-rose-700"
|
|
3434
3434
|
},
|
|
3435
3435
|
outline: {
|
|
3436
|
-
primary: "text-inherit bg-transparent border border-[var(--
|
|
3437
|
-
secondary: "text-inherit bg-transparent border border-
|
|
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-[var(--redhq-secondary-500)] hover:border-[var(--redhq-secondary-600)] active:border-[var(--redhq-secondary-700)]",
|
|
3438
3438
|
info: "text-inherit bg-transparent border border-cyan-500 hover:border-cyan-600 active:border-cyan-700",
|
|
3439
3439
|
success: "text-inherit bg-transparent border border-emerald-500 hover:border-emerald-600 active:border-emerald-700",
|
|
3440
3440
|
warning: "text-inherit bg-transparent border border-amber-500 hover:border-amber-600 active:border-amber-700",
|
|
3441
3441
|
danger: "text-inherit bg-transparent border border-rose-500 hover:border-rose-600 active:border-rose-700"
|
|
3442
3442
|
},
|
|
3443
3443
|
flat: {
|
|
3444
|
-
primary: "p-0 text-[var(--
|
|
3445
|
-
secondary: "p-0 text-
|
|
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-[var(--redhq-secondary-500)] hover:text-[var(--redhq-secondary-600)] active:text-[var(--redhq-secondary-700)]",
|
|
3446
3446
|
info: "p-0 text-cyan-500 hover:text-cyan-600 active:text-cyan-700",
|
|
3447
3447
|
success: "p-0 text-emerald-500 hover:text-emerald-600 active:text-emerald-700",
|
|
3448
3448
|
warning: "p-0 text-amber-500 hover:text-amber-600 active:text-amber-700",
|
|
@@ -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__ */ G("button", { id: e, type: o, disabled: n || i, className:
|
|
3477
|
+
return /* @__PURE__ */ G("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,
|
|
@@ -3491,7 +3491,7 @@ di.propTypes = {
|
|
|
3491
3491
|
const Pr = ye({
|
|
3492
3492
|
id: ""
|
|
3493
3493
|
}), ui = ({ id: e, children: r }) => /* @__PURE__ */ G(Pr.Provider, { value: { id: e }, children: r }), Or = ({ id: e = "", className: r = "", children: t }) => {
|
|
3494
|
-
const { id: n } =
|
|
3494
|
+
const { id: n } = de(Pr);
|
|
3495
3495
|
return /* @__PURE__ */ G(
|
|
3496
3496
|
"section",
|
|
3497
3497
|
{
|
|
@@ -3569,7 +3569,7 @@ const Ie = ye({
|
|
|
3569
3569
|
},
|
|
3570
3570
|
open: !1
|
|
3571
3571
|
}), fi = ({ id: e, theme: r, open: t, children: n }) => /* @__PURE__ */ G(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 } =
|
|
3572
|
+
const { id: i, open: s } = de(Ie), o = e || i, l = t || s;
|
|
3573
3573
|
return /* @__PURE__ */ G(
|
|
3574
3574
|
"div",
|
|
3575
3575
|
{
|
|
@@ -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 } =
|
|
3597
|
+
const { id: o, theme: l, open: a } = de(Ie), d = e || o, p = t || a;
|
|
3598
3598
|
return /* @__PURE__ */ G(
|
|
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",
|
|
@@ -3648,7 +3648,7 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3648
3648
|
]
|
|
3649
3649
|
}
|
|
3650
3650
|
), Nr = ({ className: e = "", style: r = {}, onClick: t }) => {
|
|
3651
|
-
const { theme: n } =
|
|
3651
|
+
const { theme: n } = de(Ie);
|
|
3652
3652
|
return /* @__PURE__ */ G(
|
|
3653
3653
|
"button",
|
|
3654
3654
|
{
|
|
@@ -3667,7 +3667,7 @@ const pi = () => /* @__PURE__ */ dr(
|
|
|
3667
3667
|
};
|
|
3668
3668
|
Nr.displayName = "Drawer.Close";
|
|
3669
3669
|
const Dr = ({ alt: e = "", src: r = "", className: t = "" }) => /* @__PURE__ */ G("img", { alt: e, src: r, className: re("aspect-auto object-contain object-center", t) }), Br = ({ alt: e = "", src: r = "" }) => {
|
|
3670
|
-
const { theme: t } =
|
|
3670
|
+
const { theme: t } = de(Ie);
|
|
3671
3671
|
return /* @__PURE__ */ G(
|
|
3672
3672
|
"div",
|
|
3673
3673
|
{
|
|
@@ -3688,7 +3688,7 @@ const Gr = ({
|
|
|
3688
3688
|
children: i,
|
|
3689
3689
|
onClick: s
|
|
3690
3690
|
}) => {
|
|
3691
|
-
const { theme: o } =
|
|
3691
|
+
const { theme: o } = de(Ie);
|
|
3692
3692
|
return /* @__PURE__ */ G("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ G(
|
|
3693
3693
|
"a",
|
|
3694
3694
|
{
|
|
@@ -3731,12 +3731,12 @@ 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
3737
|
return /* @__PURE__ */ G(Be.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 } =
|
|
3739
|
+
const { id: n, theme: i, isOverflowing: s } = de(Be);
|
|
3740
3740
|
return /* @__PURE__ */ G(
|
|
3741
3741
|
"header",
|
|
3742
3742
|
{
|
|
@@ -3768,21 +3768,21 @@ Et.propTypes = {
|
|
|
3768
3768
|
src: P.string.isRequired
|
|
3769
3769
|
};
|
|
3770
3770
|
const wt = ({ className: e = "", children: r }) => {
|
|
3771
|
-
const t = oe(null), n = oe(null), { isOverflowing: i, updateOverflow: s } =
|
|
3771
|
+
const t = oe(null), n = oe(null), { isOverflowing: i, updateOverflow: s } = de(Be);
|
|
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
3787
|
}, [s]), /* @__PURE__ */ G("nav", { ref: t, className: "grow flex items-center justify-end overflow-hidden", children: /* @__PURE__ */ G(
|
|
3788
3788
|
"ul",
|
|
@@ -3803,7 +3803,7 @@ wt.propTypes = {
|
|
|
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 } =
|
|
3806
|
+
const { theme: i } = de(Be);
|
|
3807
3807
|
return /* @__PURE__ */ G("li", { className: "flex items-center justify-center", children: /* @__PURE__ */ G(
|
|
3808
3808
|
"a",
|
|
3809
3809
|
{
|
|
@@ -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(Be), [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(
|
|
@@ -3865,7 +3865,7 @@ Le.propTypes = {
|
|
|
3865
3865
|
}).isRequired,
|
|
3866
3866
|
children: P.node.isRequired
|
|
3867
3867
|
};
|
|
3868
|
-
const
|
|
3868
|
+
const qr = 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__ */ G(
|
|
3876
|
+
}), gi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(qr.Provider, { value: { id: e, theme: r }, children: t }), Pt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ G(
|
|
3877
3877
|
"section",
|
|
3878
3878
|
{
|
|
3879
3879
|
className: re(
|
|
@@ -3921,7 +3921,7 @@ 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 } =
|
|
3924
|
+
] = t, { theme: a } = de(qr);
|
|
3925
3925
|
return /* @__PURE__ */ G(
|
|
3926
3926
|
"h2",
|
|
3927
3927
|
{
|
|
@@ -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 Fr = ye({
|
|
|
3987
3987
|
tertiary: "",
|
|
3988
3988
|
quaternary: ""
|
|
3989
3989
|
}
|
|
3990
|
-
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(
|
|
3990
|
+
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(jr.Provider, { value: { id: e, theme: r }, children: t }), At = ({ className: e = "", children: r }) => /* @__PURE__ */ G("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,7 +3999,7 @@ 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 } =
|
|
4002
|
+
] = r, { theme: l } = de(jr);
|
|
4003
4003
|
return /* @__PURE__ */ G(
|
|
4004
4004
|
"h2",
|
|
4005
4005
|
{
|
|
@@ -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__ */ G("div", { ref: l, className: re("RECORD-GRID", "grid gap-4",
|
|
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__ */ G("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 = {
|
|
@@ -4086,7 +4086,7 @@ $e.propTypes = {
|
|
|
4086
4086
|
}).isRequired,
|
|
4087
4087
|
children: P.node.isRequired
|
|
4088
4088
|
};
|
|
4089
|
-
const
|
|
4089
|
+
const Fr = ye({
|
|
4090
4090
|
id: "",
|
|
4091
4091
|
theme: {
|
|
4092
4092
|
primary: "",
|
|
@@ -4094,7 +4094,7 @@ const Vr = ye({
|
|
|
4094
4094
|
tertiary: "",
|
|
4095
4095
|
quaternary: ""
|
|
4096
4096
|
}
|
|
4097
|
-
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(
|
|
4097
|
+
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(Fr.Provider, { value: { id: e, theme: r }, children: t }), Nt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ G(
|
|
4098
4098
|
"section",
|
|
4099
4099
|
{
|
|
4100
4100
|
className: re(
|
|
@@ -4135,7 +4135,7 @@ function Bt(e = {}, r = {}) {
|
|
|
4135
4135
|
typeof e[n] > "u" ? e[n] = r[n] : nr(r[n]) && nr(e[n]) && Object.keys(r[n]).length > 0 && Bt(e[n], r[n]);
|
|
4136
4136
|
});
|
|
4137
4137
|
}
|
|
4138
|
-
const
|
|
4138
|
+
const Vr = {
|
|
4139
4139
|
body: {},
|
|
4140
4140
|
addEventListener() {
|
|
4141
4141
|
},
|
|
@@ -4190,12 +4190,12 @@ const qr = {
|
|
|
4190
4190
|
search: ""
|
|
4191
4191
|
}
|
|
4192
4192
|
};
|
|
4193
|
-
function
|
|
4193
|
+
function ce() {
|
|
4194
4194
|
const e = typeof document < "u" ? document : {};
|
|
4195
|
-
return Bt(e,
|
|
4195
|
+
return Bt(e, Vr), e;
|
|
4196
4196
|
}
|
|
4197
4197
|
const yi = {
|
|
4198
|
-
document:
|
|
4198
|
+
document: Vr,
|
|
4199
4199
|
navigator: {
|
|
4200
4200
|
userAgent: ""
|
|
4201
4201
|
},
|
|
@@ -4302,8 +4302,8 @@ function le(...e) {
|
|
|
4302
4302
|
if (i != null && !wi(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,8 +4626,8 @@ 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));
|
|
@@ -4637,23 +4637,23 @@ function Ni() {
|
|
|
4637
4637
|
let v = t.spaceBetween, w = -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") {
|
|
4654
4654
|
_ && (k.style[e.getDirectionLabel("width")] = "");
|
|
4655
|
-
const R = getComputedStyle(k),
|
|
4656
|
-
if (
|
|
4655
|
+
const R = getComputedStyle(k), F = k.style.transform, V = k.style.webkitTransform;
|
|
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
4659
|
const Q = r(R, "width"), E = r(R, "padding-left"), M = r(R, "padding-right"), S = r(R, "margin-left"), B = r(R, "margin-right"), C = R.getPropertyValue("box-sizing");
|
|
@@ -4667,33 +4667,33 @@ function Ni() {
|
|
|
4667
4667
|
h = Q + E + M + S + B + (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 ? (w = w + h / 2 + y / 2 + v, y === 0 && O !== 0 && (w = w - m / 2 - v), O === 0 && (w = w - m / 2 - v), Math.abs(w) < 1 / 1e3 && (w = 0), t.roundLengths && (w = Math.floor(w)), A % t.slidesPerGroup === 0 &&
|
|
4673
|
+
k && (k.swiperSlideSize = h), f.push(h), t.centeredSlides ? (w = w + h / 2 + y / 2 + v, y === 0 && O !== 0 && (w = w - m / 2 - v), O === 0 && (w = w - m / 2 - v), Math.abs(w) < 1 / 1e3 && (w = 0), t.roundLengths && (w = Math.floor(w)), A % t.slidesPerGroup === 0 && c.push(w), T.push(w)) : (t.roundLengths && (w = Math.floor(w)), (A - Math.min(e.params.slidesPerGroupSkip, A)) % e.params.slidesPerGroup === 0 && c.push(w), T.push(w), w = w + 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
|
-
for (let
|
|
4689
|
-
|
|
4688
|
+
for (let F = 0; F < k; F += 1)
|
|
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
|
-
|
|
4718
|
-
}), T.forEach((
|
|
4719
|
-
T[
|
|
4716
|
+
c.forEach((F, V) => {
|
|
4717
|
+
c[V] = F - R;
|
|
4718
|
+
}), T.forEach((F, V) => {
|
|
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
|
}
|
|
@@ -4781,11 +4781,11 @@ 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
4791
|
function Gi(e) {
|
|
@@ -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 qi() {
|
|
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
|
|
@@ -4892,7 +4892,7 @@ function Fi(e) {
|
|
|
4892
4892
|
typeof r[s + 1] < "u" ? n >= r[s] && n < r[s + 1] - (r[s + 1] - r[s]) / 2 ? i = s : n >= r[s] && n < r[s + 1] && (i = s + 1) : n >= r[s] && (i = s);
|
|
4893
4893
|
return t.normalizeSlideIndex && (i < 0 || typeof i > "u") && (i = 0), i;
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function Fi(e) {
|
|
4896
4896
|
const r = this, t = r.rtlTranslate ? r.translate : -r.translate, {
|
|
4897
4897
|
snapGrid: n,
|
|
4898
4898
|
params: i,
|
|
@@ -4900,30 +4900,30 @@ function Vi(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,14 +4934,14 @@ function Vi(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,
|
|
4941
4941
|
activeIndex: a
|
|
4942
4942
|
}), r.initialized && vt(r), r.emit("activeIndexChange"), r.emit("snapIndexChange"), (r.initialized || r.params.runCallbacksOnInit) && (o !== T && r.emit("realIndexChange"), r.emit("slideChange"));
|
|
4943
4943
|
}
|
|
4944
|
-
function
|
|
4944
|
+
function Vi(e, r) {
|
|
4945
4945
|
const t = this, n = t.params;
|
|
4946
4946
|
let i = e.closest(`.${n.slideClass}, swiper-slide`);
|
|
4947
4947
|
!i && t.isElement && r && r.length > 1 && r.includes(e) && [...r.slice(r.indexOf(e) + 1, r.length)].forEach((l) => {
|
|
@@ -4970,9 +4970,9 @@ var Hi = {
|
|
|
4970
4970
|
updateSlidesOffset: Bi,
|
|
4971
4971
|
updateSlidesProgress: $i,
|
|
4972
4972
|
updateProgress: Gi,
|
|
4973
|
-
updateSlidesClasses:
|
|
4974
|
-
updateActiveIndex:
|
|
4975
|
-
updateClickedSlide:
|
|
4973
|
+
updateSlidesClasses: qi,
|
|
4974
|
+
updateActiveIndex: Fi,
|
|
4975
|
+
updateClickedSlide: Vi
|
|
4976
4976
|
};
|
|
4977
4977
|
function Wi(e = this.isHorizontal() ? "x" : "y") {
|
|
4978
4978
|
const r = this, {
|
|
@@ -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,22 +5225,22 @@ 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;
|
|
@@ -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,7 +5376,7 @@ 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;
|
|
@@ -5385,21 +5385,21 @@ function us({
|
|
|
5385
5385
|
let y = m ? Math.max(w, Math.ceil(v / 2)) : w;
|
|
5386
5386
|
y % w !== 0 && (y += w - y % w), 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(
|
|
5392
|
-
const R = t === "next" || !t,
|
|
5393
|
-
let
|
|
5394
|
-
const M = (A ?
|
|
5391
|
+
typeof i > "u" ? i = a.getSlideIndex(d.find((S) => S.classList.contains(f.slideActiveClass))) : k = i;
|
|
5392
|
+
const R = t === "next" || !t, F = t === "prev" || !t;
|
|
5393
|
+
let V = 0, Q = 0;
|
|
5394
|
+
const M = (A ? d[i].column : i) + (m && typeof n > "u" ? -v / 2 + 0.5 : 0);
|
|
5395
5395
|
if (M < y) {
|
|
5396
|
-
|
|
5396
|
+
V = Math.max(y - M, w);
|
|
5397
5397
|
for (let S = 0; S < y - M; S += 1) {
|
|
5398
5398
|
const B = S - Math.floor(S / _) * _;
|
|
5399
5399
|
if (A) {
|
|
5400
5400
|
const C = _ - B - 1;
|
|
5401
|
-
for (let I =
|
|
5402
|
-
|
|
5401
|
+
for (let I = d.length - 1; I >= 0; I -= 1)
|
|
5402
|
+
d[I].column === C && L.push(I);
|
|
5403
5403
|
} else
|
|
5404
5404
|
L.push(_ - B - 1);
|
|
5405
5405
|
}
|
|
@@ -5407,24 +5407,24 @@ function us({
|
|
|
5407
5407
|
Q = Math.max(M - (_ - y * 2), w), O && (Q = Math.max(Q, v - _ + u + 1));
|
|
5408
5408
|
for (let S = 0; S < Q; S += 1) {
|
|
5409
5409
|
const B = S - Math.floor(S / _) * _;
|
|
5410
|
-
A ?
|
|
5410
|
+
A ? d.forEach((C, I) => {
|
|
5411
5411
|
C.column === B && h.push(I);
|
|
5412
5412
|
}) : h.push(B);
|
|
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 &&
|
|
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, B) => {
|
|
5422
5422
|
a.grid.updateSlide(B, S, a.slides);
|
|
5423
5423
|
}), f.watchSlidesProgress && a.updateSlidesOffset(), r) {
|
|
5424
|
-
if (L.length > 0 &&
|
|
5424
|
+
if (L.length > 0 && F) {
|
|
5425
5425
|
if (typeof e > "u") {
|
|
5426
|
-
const S = a.slidesGrid[k], C = a.slidesGrid[k +
|
|
5427
|
-
l ? a.setTranslate(a.translate - C) : (a.slideTo(k + Math.ceil(
|
|
5426
|
+
const S = a.slidesGrid[k], C = a.slidesGrid[k + V] - S;
|
|
5427
|
+
l ? a.setTranslate(a.translate - C) : (a.slideTo(k + Math.ceil(V), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - C, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - C));
|
|
5428
5428
|
} else if (n) {
|
|
5429
5429
|
const S = A ? L.length / f.grid.rows : L.length;
|
|
5430
5430
|
a.slideTo(a.activeIndex + S, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
|
|
@@ -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,
|
|
@@ -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,9 +5649,9 @@ 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;
|
|
@@ -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,13 +5728,13 @@ 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, w = b < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
5738
5738
|
if (T > o.longSwipesMs) {
|
|
5739
5739
|
if (!o.longSwipes) {
|
|
5740
5740
|
r.slideTo(r.activeIndex);
|
|
@@ -5792,12 +5792,12 @@ function ws() {
|
|
|
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
|
};
|
|
@@ -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,
|
|
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
5864
|
const w = 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 && !w ? e.disable() : !x && w && e.enable(), e.currentBreakpoint =
|
|
5869
|
+
}), x && !w ? e.disable() : !x && w && 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,
|
|
@@ -6119,12 +6119,12 @@ let $t = 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() {
|
|
@@ -6579,26 +6579,26 @@ 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
6589
|
let b, x, u, m, v, w, y, A;
|
|
6590
|
-
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed &&
|
|
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 ? w = !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), (w || A) && e.loopDestroy(), (y || A) && e.loopCreate(), e.update();
|
|
6602
6602
|
}
|
|
6603
6603
|
function Gs(e = {}, r = !0) {
|
|
6604
6604
|
const t = {
|
|
@@ -6617,7 +6617,7 @@ function Gs(e = {}, r = !0) {
|
|
|
6617
6617
|
events: n
|
|
6618
6618
|
};
|
|
6619
6619
|
}
|
|
6620
|
-
function
|
|
6620
|
+
function qs({
|
|
6621
6621
|
el: e,
|
|
6622
6622
|
nextEl: r,
|
|
6623
6623
|
prevEl: t,
|
|
@@ -6627,29 +6627,29 @@ 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;
|
|
6651
6651
|
}
|
|
6652
|
-
const
|
|
6652
|
+
const Fs = (e) => {
|
|
6653
6653
|
!e || e.destroyed || !e.params.virtual || e.params.virtual && !e.params.virtual.enabled || (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.emit("_virtualUpdated"), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate());
|
|
6654
6654
|
};
|
|
6655
6655
|
function Je() {
|
|
@@ -6671,7 +6671,7 @@ function an(e) {
|
|
|
6671
6671
|
sn(t) ? r.push(t) : t.props && t.props.children && an(t.props.children).forEach((n) => r.push(n));
|
|
6672
6672
|
}), r;
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function Vs(e) {
|
|
6675
6675
|
const r = [], t = {
|
|
6676
6676
|
"container-start": [],
|
|
6677
6677
|
"container-end": [],
|
|
@@ -6696,8 +6696,8 @@ function qs(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,7 +6726,7 @@ 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), w = oe(null), y = oe(null), A = oe(null), {
|
|
6730
6730
|
params: L,
|
|
6731
6731
|
passedParams: h,
|
|
6732
6732
|
rest: _,
|
|
@@ -6734,15 +6734,15 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6734
6734
|
} = Gs(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
6741
|
_containerClasses(S, B) {
|
|
6742
|
-
|
|
6742
|
+
d(B);
|
|
6743
6743
|
}
|
|
6744
6744
|
});
|
|
6745
|
-
const
|
|
6745
|
+
const V = () => {
|
|
6746
6746
|
Object.assign(L.on, O), l = !0;
|
|
6747
6747
|
const S = {
|
|
6748
6748
|
...L
|
|
@@ -6752,13 +6752,13 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6752
6752
|
const B = {
|
|
6753
6753
|
cache: !1,
|
|
6754
6754
|
slides: k,
|
|
6755
|
-
renderExternal:
|
|
6755
|
+
renderExternal: c,
|
|
6756
6756
|
renderExternalUpdate: !1
|
|
6757
6757
|
};
|
|
6758
6758
|
Me(x.current.params.virtual, B), Me(x.current.originalParams.virtual, B);
|
|
6759
6759
|
}
|
|
6760
6760
|
};
|
|
6761
|
-
b.current ||
|
|
6761
|
+
b.current || V(), x.current && x.current.on("_beforeBreakpoint", F);
|
|
6762
6762
|
const Q = () => {
|
|
6763
6763
|
l || !O || !x.current || Object.keys(O).forEach((S) => {
|
|
6764
6764
|
x.current.on(S, O[S]);
|
|
@@ -6769,12 +6769,12 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6769
6769
|
});
|
|
6770
6770
|
};
|
|
6771
6771
|
mt(() => () => {
|
|
6772
|
-
x.current && x.current.off("_beforeBreakpoint",
|
|
6772
|
+
x.current && x.current.off("_beforeBreakpoint", F);
|
|
6773
6773
|
}), mt(() => {
|
|
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 &&
|
|
6777
|
+
return x.current.destroyed && V(), qs({
|
|
6778
6778
|
el: b.current,
|
|
6779
6779
|
nextEl: v.current,
|
|
6780
6780
|
prevEl: w.current,
|
|
@@ -6786,7 +6786,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6786
6786
|
};
|
|
6787
6787
|
}, []), _e(() => {
|
|
6788
6788
|
Q();
|
|
6789
|
-
const S =
|
|
6789
|
+
const S = js(h, u.current, k, m.current, (B) => B.key);
|
|
6790
6790
|
return u.current = h, m.current = k, S.length && x.current && !x.current.destroyed && $s({
|
|
6791
6791
|
swiper: x.current,
|
|
6792
6792
|
slides: k,
|
|
@@ -6800,7 +6800,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6800
6800
|
E();
|
|
6801
6801
|
};
|
|
6802
6802
|
}), _e(() => {
|
|
6803
|
-
|
|
6803
|
+
Fs(x.current);
|
|
6804
6804
|
}, [p]);
|
|
6805
6805
|
function M() {
|
|
6806
6806
|
return L.virtual ? Hs(x.current, k, p) : k.map((S, B) => /* @__PURE__ */ ie.cloneElement(S, {
|
|
@@ -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), [
|
|
6843
|
+
} = {}, d) => {
|
|
6844
|
+
const p = oe(null), [c, T] = be("swiper-slide"), [f, g] = be(!1);
|
|
6845
6845
|
function b(v, w, y) {
|
|
6846
6846
|
w === 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", () => {
|
|
@@ -7011,16 +7011,16 @@ function Ys({
|
|
|
7011
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((w) => !!w).forEach((w) => w.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,12 +7093,12 @@ 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 w =
|
|
7096
|
+
const w = d(e.realIndex, v, e.slides.length);
|
|
7097
7097
|
w === "next" ? e.slideNext() : w === "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;
|
|
@@ -7111,28 +7111,28 @@ function Xs({
|
|
|
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
7113
|
}), m.dynamicMainBullets > 1 && y !== void 0 && (o += w - (y || 0), o > m.dynamicMainBullets - 1 ? o = m.dynamicMainBullets - 1 : o < 0 && (o = 0)), _ = Math.max(w - o, 0), O = _ + (Math.min(h.length, m.dynamicMainBullets) - 1), k = (O + _) / 2), h.forEach((R) => {
|
|
7114
|
-
const
|
|
7115
|
-
R.classList.remove(...
|
|
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
|
+
R.classList.remove(...F);
|
|
7116
7116
|
}), v.length > 1)
|
|
7117
7117
|
h.forEach((R) => {
|
|
7118
|
-
const
|
|
7119
|
-
|
|
7118
|
+
const F = De(R);
|
|
7119
|
+
F === w ? 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
7122
|
const R = h[w];
|
|
7123
|
-
if (R && R.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && h.forEach((
|
|
7124
|
-
|
|
7123
|
+
if (R && R.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && h.forEach((F, V) => {
|
|
7124
|
+
F.setAttribute("part", V === w ? "bullet-active" : "bullet");
|
|
7125
7125
|
}), m.dynamicBullets) {
|
|
7126
|
-
const
|
|
7126
|
+
const F = h[_], V = h[O];
|
|
7127
7127
|
for (let Q = _; Q <= O; Q += 1)
|
|
7128
7128
|
h[Q] && h[Q].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
|
|
7129
|
-
a(
|
|
7129
|
+
a(F, "prev"), a(V, "next");
|
|
7130
7130
|
}
|
|
7131
7131
|
}
|
|
7132
7132
|
if (m.dynamicBullets) {
|
|
7133
|
-
const R = Math.min(h.length, m.dynamicMainBullets + 4),
|
|
7133
|
+
const R = Math.min(h.length, m.dynamicMainBullets + 4), F = (s * R - s) / 2 - k * s, V = u ? "right" : "left";
|
|
7134
7134
|
h.forEach((Q) => {
|
|
7135
|
-
Q.style[e.isHorizontal() ?
|
|
7135
|
+
Q.style[e.isHorizontal() ? V : "top"] = `${F}px`;
|
|
7136
7136
|
});
|
|
7137
7137
|
}
|
|
7138
7138
|
}
|
|
@@ -7145,9 +7145,9 @@ function Xs({
|
|
|
7145
7145
|
let O;
|
|
7146
7146
|
m.progressbarOpposite ? O = e.isHorizontal() ? "vertical" : "horizontal" : O = e.isHorizontal() ? "horizontal" : "vertical";
|
|
7147
7147
|
const k = (w + 1) / L;
|
|
7148
|
-
let R = 1,
|
|
7149
|
-
O === "horizontal" ? R = k :
|
|
7150
|
-
|
|
7148
|
+
let R = 1, F = 1;
|
|
7149
|
+
O === "horizontal" ? R = k : F = k, h.querySelectorAll(he(m.progressbarFillClass)).forEach((V) => {
|
|
7150
|
+
V.style.transform = `translate3d(0,0,0) scaleX(${R}) scaleY(${F})`, V.style.transitionDuration = `${e.params.speed}ms`;
|
|
7151
7151
|
});
|
|
7152
7152
|
}
|
|
7153
7153
|
m.type === "custom" && m.renderCustom ? (Pe(h, m.renderCustom(e, w + 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);
|
|
@@ -7171,7 +7171,7 @@ function Xs({
|
|
|
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,7 +7216,7 @@ 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
7221
|
const v = m.target, w = K(e.pagination.el);
|
|
7222
7222
|
if (e.params.pagination.el && e.params.pagination.hideOnClick && w && w.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
|
|
@@ -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
|
});
|
|
@@ -7283,7 +7283,7 @@ function Us({
|
|
|
7283
7283
|
const M = () => Math.round(16 * Math.random()).toString(16);
|
|
7284
7284
|
return "x".repeat(E).replace(/x/g, M);
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function d(E) {
|
|
7287
7287
|
E = K(E), E.forEach((M) => {
|
|
7288
7288
|
M.setAttribute("tabIndex", "0");
|
|
7289
7289
|
});
|
|
@@ -7293,7 +7293,7 @@ function Us({
|
|
|
7293
7293
|
M.setAttribute("tabIndex", "-1");
|
|
7294
7294
|
});
|
|
7295
7295
|
}
|
|
7296
|
-
function
|
|
7296
|
+
function c(E, M) {
|
|
7297
7297
|
E = K(E), E.forEach((S) => {
|
|
7298
7298
|
S.setAttribute("role", M);
|
|
7299
7299
|
});
|
|
@@ -7350,7 +7350,7 @@ function Us({
|
|
|
7350
7350
|
nextEl: E,
|
|
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))), E && (e.isEnd ? (u(E), p(E)) : (m(E), d(E)));
|
|
7354
7354
|
}
|
|
7355
7355
|
function y() {
|
|
7356
7356
|
return e.pagination && e.pagination.bullets && e.pagination.bullets.length;
|
|
@@ -7361,11 +7361,11 @@ function Us({
|
|
|
7361
7361
|
function L() {
|
|
7362
7362
|
const E = 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, E.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
7367
|
const h = (E, M, S) => {
|
|
7368
|
-
|
|
7368
|
+
d(E), E.tagName !== "BUTTON" && (c(E, "button"), E.addEventListener("keydown", v)), g(E, S), f(E, M);
|
|
7369
7369
|
}, _ = (E) => {
|
|
7370
7370
|
s && s !== E.target && !s.contains(E.target) && (i = !0), e.a11y.clicked = !0;
|
|
7371
7371
|
}, O = () => {
|
|
@@ -7385,32 +7385,32 @@ function Us({
|
|
|
7385
7385
|
S || B || E.sourceCapabilities && E.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
7389
|
const E = e.params.a11y;
|
|
7390
|
-
E.itemRoleDescriptionMessage && T(e.slides, E.itemRoleDescriptionMessage), E.slideRole &&
|
|
7390
|
+
E.itemRoleDescriptionMessage && T(e.slides, E.itemRoleDescriptionMessage), E.slideRole && c(e.slides, E.slideRole);
|
|
7391
7391
|
const M = e.slides.length;
|
|
7392
7392
|
E.slideLabelMessage && e.slides.forEach((S, B) => {
|
|
7393
7393
|
const C = e.params.loop ? parseInt(S.getAttribute("data-swiper-slide-index"), 10) : B, I = E.slideLabelMessage.replace(/\{\{index\}\}/, C + 1).replace(/\{\{slidesLength\}\}/, M);
|
|
7394
7394
|
g(S, I);
|
|
7395
7395
|
});
|
|
7396
|
-
},
|
|
7396
|
+
}, V = () => {
|
|
7397
7397
|
const E = e.params.a11y;
|
|
7398
7398
|
e.el.append(n);
|
|
7399
7399
|
const M = e.el;
|
|
7400
|
-
E.containerRoleDescriptionMessage && T(M, E.containerRoleDescriptionMessage), E.containerMessage && g(M, E.containerMessage), E.containerRole &&
|
|
7400
|
+
E.containerRoleDescriptionMessage && T(M, E.containerRoleDescriptionMessage), E.containerMessage && g(M, E.containerMessage), E.containerRole && c(M, E.containerRole);
|
|
7401
7401
|
const S = e.wrapperEl, B = E.id || S.getAttribute("id") || `swiper-wrapper-${a(16)}`;
|
|
7402
7402
|
if (b(S, B), E.wrapperLiveRegion) {
|
|
7403
7403
|
const $ = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
7404
7404
|
x(S, $);
|
|
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(($) => h($, B, E.nextSlideMessage)), I && I.forEach(($) => h($, B, E.prevSlideMessage)), A() && K(e.pagination.el).forEach((
|
|
7412
|
-
|
|
7413
|
-
}),
|
|
7411
|
+
C = K(C), I = K(I), C && C.forEach(($) => h($, B, E.nextSlideMessage)), I && I.forEach(($) => h($, B, E.prevSlideMessage)), A() && K(e.pagination.el).forEach((q) => {
|
|
7412
|
+
q.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();
|
|
@@ -7420,14 +7420,14 @@ function Us({
|
|
|
7420
7420
|
} = e.navigation ? e.navigation : {};
|
|
7421
7421
|
E = K(E), M = K(M), E && E.forEach((B) => B.removeEventListener("keydown", v)), M && M.forEach((B) => B.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");
|
|
7427
7427
|
}), t("afterInit", () => {
|
|
7428
|
-
e.params.a11y.enabled && q();
|
|
7429
|
-
}), t("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
7430
7428
|
e.params.a11y.enabled && V();
|
|
7429
|
+
}), t("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
7430
|
+
e.params.a11y.enabled && F();
|
|
7431
7431
|
}), t("fromEdge toEdge afterInit lock unlock", () => {
|
|
7432
7432
|
e.params.a11y.enabled && w();
|
|
7433
7433
|
}), t("paginationUpdate", () => {
|
|
@@ -7458,14 +7458,14 @@ 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
|
});
|
|
@@ -7478,7 +7478,7 @@ function Ks({
|
|
|
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
7480
|
const B = w();
|
|
7481
|
-
!Number.isNaN(B) && B > 0 && typeof M > "u" && (S = B, l = B, a = B),
|
|
7481
|
+
!Number.isNaN(B) && B > 0 && typeof M > "u" && (S = B, l = B, a = B), 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();
|
|
@@ -7500,33 +7500,33 @@ function Ks({
|
|
|
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, B();
|
|
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), B());
|
|
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));
|
|
7515
7515
|
}, R = (M) => {
|
|
7516
7516
|
M.pointerType === "mouse" && (u = !1, e.autoplay.paused && _());
|
|
7517
|
-
},
|
|
7517
|
+
}, F = () => {
|
|
7518
7518
|
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", k), e.el.addEventListener("pointerleave", R));
|
|
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
|
-
|
|
7522
|
+
ce().addEventListener("visibilitychange", O);
|
|
7523
7523
|
}, E = () => {
|
|
7524
|
-
|
|
7524
|
+
ce().removeEventListener("visibilitychange", O);
|
|
7525
7525
|
};
|
|
7526
7526
|
t("init", () => {
|
|
7527
|
-
e.params.autoplay.enabled && (
|
|
7527
|
+
e.params.autoplay.enabled && (F(), Q(), A());
|
|
7528
7528
|
}), t("destroy", () => {
|
|
7529
|
-
|
|
7529
|
+
V(), E(), e.autoplay.running && L();
|
|
7530
7530
|
}), t("_freeModeStaticRelease", () => {
|
|
7531
7531
|
(f || x) && _();
|
|
7532
7532
|
}), t("_freeModeNoMomentumRelease", () => {
|
|
@@ -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
|
});
|
|
@@ -7600,7 +7600,7 @@ function Js({
|
|
|
7600
7600
|
h = Math.floor(O / k), L = O - h * k + _ * u, A = L + h * n / v, b.style.order = A;
|
|
7601
7601
|
} else w === "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
|
|
@@ -7626,9 +7626,9 @@ 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
7634
|
const Gt = ({
|
|
@@ -7641,13 +7641,13 @@ 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 } =
|
|
7650
|
+
const { theme: f } = de(Fr);
|
|
7651
7651
|
return /* @__PURE__ */ G("div", { className: "relative w-full", children: /* @__PURE__ */ G(
|
|
7652
7652
|
on,
|
|
7653
7653
|
{
|
|
@@ -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,7 +7667,7 @@ 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: {
|
|
@@ -7708,7 +7708,7 @@ 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
|
Ee as Drawer,
|
|
7714
7714
|
Le as Header,
|