@redhq/ui 0.9.0 → 0.10.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 +151 -151
- package/dist/style.css +1 -0
- package/package.json +5 -4
- package/dist/ui.css +0 -1
package/dist/index.es.js
CHANGED
|
@@ -3,11 +3,11 @@ import ie, { createContext as ye, useContext as ce, useState as be, useCallback
|
|
|
3
3
|
function fn(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
|
-
var je = { exports: {} },
|
|
7
|
-
var
|
|
6
|
+
var je = { exports: {} }, Fe = { exports: {} }, ee = {};
|
|
7
|
+
var Ft;
|
|
8
8
|
function pn() {
|
|
9
|
-
if (
|
|
10
|
-
|
|
9
|
+
if (Ft) return ee;
|
|
10
|
+
Ft = 1;
|
|
11
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, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = 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, S = 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) {
|
|
@@ -71,9 +71,9 @@ function pn() {
|
|
|
71
71
|
}, ee.typeOf = v, ee;
|
|
72
72
|
}
|
|
73
73
|
var te = {};
|
|
74
|
-
var
|
|
74
|
+
var Vt;
|
|
75
75
|
function mn() {
|
|
76
|
-
return
|
|
76
|
+
return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
77
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, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, d = 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, S = 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.
|
|
@@ -111,7 +111,7 @@ function mn() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
var y = a, A = c, L = l, h = o, _ = r, O = p, k = n, R = g,
|
|
114
|
+
var y = a, A = c, L = l, h = o, _ = r, O = p, k = n, R = g, V = f, q = t, Q = s, E = i, M = d, x = !1;
|
|
115
115
|
function B(z) {
|
|
116
116
|
return x || (x = !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
|
}
|
|
@@ -136,7 +136,7 @@ function mn() {
|
|
|
136
136
|
function W(z) {
|
|
137
137
|
return w(z) === g;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function F(z) {
|
|
140
140
|
return w(z) === f;
|
|
141
141
|
}
|
|
142
142
|
function J(z) {
|
|
@@ -151,12 +151,12 @@ function mn() {
|
|
|
151
151
|
function se(z) {
|
|
152
152
|
return w(z) === d;
|
|
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 = V, te.Portal = q, 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 = j, te.isFragment = X, te.isLazy = W, te.isMemo = F, 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 qt;
|
|
158
158
|
function fr() {
|
|
159
|
-
return
|
|
159
|
+
return qt || (qt = 1, process.env.NODE_ENV === "production" ? Fe.exports = pn() : Fe.exports = mn()), Fe.exports;
|
|
160
160
|
}
|
|
161
161
|
var Qe, Ht;
|
|
162
162
|
function gn() {
|
|
@@ -307,7 +307,7 @@ function vn() {
|
|
|
307
307
|
oneOf: L,
|
|
308
308
|
oneOfType: _,
|
|
309
309
|
shape: R,
|
|
310
|
-
exact:
|
|
310
|
+
exact: V
|
|
311
311
|
};
|
|
312
312
|
function g(C, I) {
|
|
313
313
|
return C === I ? C !== 0 || 1 / C === 1 / I : C !== C && I !== I;
|
|
@@ -319,28 +319,28 @@ function vn() {
|
|
|
319
319
|
function S(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, F, J, Z, U, se) {
|
|
323
|
+
if (J = J || T, U = U || F, 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 + ":" + F;
|
|
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[F] == null ? X ? W[F] === 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, F, J, Z, U);
|
|
338
338
|
}
|
|
339
339
|
var j = $.bind(null, !1);
|
|
340
340
|
return j.isRequired = $.bind(null, !0), j;
|
|
341
341
|
}
|
|
342
342
|
function u(C) {
|
|
343
|
-
function I(H, $, j, X, W,
|
|
343
|
+
function I(H, $, j, X, W, F) {
|
|
344
344
|
var J = H[$], Z = E(J);
|
|
345
345
|
if (Z !== C) {
|
|
346
346
|
var U = M(J);
|
|
@@ -360,13 +360,13 @@ function vn() {
|
|
|
360
360
|
function I(H, $, j, X, W) {
|
|
361
361
|
if (typeof C != "function")
|
|
362
362
|
return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
363
|
-
var
|
|
364
|
-
if (!Array.isArray(
|
|
365
|
-
var J = E(
|
|
363
|
+
var F = H[$];
|
|
364
|
+
if (!Array.isArray(F)) {
|
|
365
|
+
var J = E(F);
|
|
366
366
|
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + j + "`, expected an array."));
|
|
367
367
|
}
|
|
368
|
-
for (var Z = 0; Z <
|
|
369
|
-
var U = C(
|
|
368
|
+
for (var Z = 0; Z < F.length; Z++) {
|
|
369
|
+
var U = C(F, Z, j, X, W + "[" + Z + "]", t);
|
|
370
370
|
if (U instanceof Error)
|
|
371
371
|
return U;
|
|
372
372
|
}
|
|
@@ -378,8 +378,8 @@ function vn() {
|
|
|
378
378
|
function C(I, H, $, j, X) {
|
|
379
379
|
var W = I[H];
|
|
380
380
|
if (!l(W)) {
|
|
381
|
-
var
|
|
382
|
-
return new b("Invalid " + j + " `" + X + "` of type " + ("`" +
|
|
381
|
+
var F = E(W);
|
|
382
|
+
return new b("Invalid " + j + " `" + X + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
383
383
|
}
|
|
384
384
|
return null;
|
|
385
385
|
}
|
|
@@ -389,8 +389,8 @@ function vn() {
|
|
|
389
389
|
function C(I, H, $, j, X) {
|
|
390
390
|
var W = I[H];
|
|
391
391
|
if (!e.isValidElementType(W)) {
|
|
392
|
-
var
|
|
393
|
-
return new b("Invalid " + j + " `" + X + "` of type " + ("`" +
|
|
392
|
+
var F = E(W);
|
|
393
|
+
return new b("Invalid " + j + " `" + X + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
394
394
|
}
|
|
395
395
|
return null;
|
|
396
396
|
}
|
|
@@ -399,8 +399,8 @@ function vn() {
|
|
|
399
399
|
function A(C) {
|
|
400
400
|
function I(H, $, j, X, W) {
|
|
401
401
|
if (!(H[$] instanceof C)) {
|
|
402
|
-
var
|
|
403
|
-
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + j + "`, expected ") + ("instance of `" +
|
|
402
|
+
var F = C.name || T, J = B(H[$]);
|
|
403
|
+
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + j + "`, expected ") + ("instance of `" + F + "`."));
|
|
404
404
|
}
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
@@ -412,14 +412,14 @@ function vn() {
|
|
|
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
414
|
function I(H, $, j, X, W) {
|
|
415
|
-
for (var
|
|
416
|
-
if (g(
|
|
415
|
+
for (var F = H[$], J = 0; J < C.length; J++)
|
|
416
|
+
if (g(F, 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(F) + "` " + ("supplied to `" + j + "`, expected one of " + Z + "."));
|
|
423
423
|
}
|
|
424
424
|
return S(I);
|
|
425
425
|
}
|
|
@@ -427,12 +427,12 @@ function vn() {
|
|
|
427
427
|
function I(H, $, j, X, W) {
|
|
428
428
|
if (typeof C != "function")
|
|
429
429
|
return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
430
|
-
var
|
|
430
|
+
var F = H[$], J = E(F);
|
|
431
431
|
if (J !== "object")
|
|
432
432
|
return new b("Invalid " + X + " `" + W + "` of type " + ("`" + J + "` supplied to `" + j + "`, expected an object."));
|
|
433
|
-
for (var Z in
|
|
434
|
-
if (n(
|
|
435
|
-
var U = C(
|
|
433
|
+
for (var Z in F)
|
|
434
|
+
if (n(F, Z)) {
|
|
435
|
+
var U = C(F, Z, j, X, W + "." + Z, t);
|
|
436
436
|
if (U instanceof Error)
|
|
437
437
|
return U;
|
|
438
438
|
}
|
|
@@ -450,21 +450,21 @@ function vn() {
|
|
|
450
450
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + x(H) + " at index " + I + "."
|
|
451
451
|
), o;
|
|
452
452
|
}
|
|
453
|
-
function $(j, X, W,
|
|
453
|
+
function $(j, X, W, F, J) {
|
|
454
454
|
for (var Z = [], U = 0; U < C.length; U++) {
|
|
455
|
-
var se = C[U], z = se(j, X, W,
|
|
455
|
+
var se = C[U], z = se(j, X, W, F, 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 " + F + " `" + J + "` supplied to " + ("`" + W + "`" + ue + "."));
|
|
462
462
|
}
|
|
463
463
|
return S($);
|
|
464
464
|
}
|
|
465
465
|
function O() {
|
|
466
466
|
function C(I, H, $, j, X) {
|
|
467
|
-
return
|
|
467
|
+
return q(I[H]) ? null : new b("Invalid " + j + " `" + X + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
468
468
|
}
|
|
469
469
|
return S(C);
|
|
470
470
|
}
|
|
@@ -475,14 +475,14 @@ function vn() {
|
|
|
475
475
|
}
|
|
476
476
|
function R(C) {
|
|
477
477
|
function I(H, $, j, X, W) {
|
|
478
|
-
var
|
|
478
|
+
var F = H[$], J = E(F);
|
|
479
479
|
if (J !== "object")
|
|
480
480
|
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
481
481
|
for (var Z in C) {
|
|
482
482
|
var U = C[Z];
|
|
483
483
|
if (typeof U != "function")
|
|
484
484
|
return k(j, X, W, Z, M(U));
|
|
485
|
-
var se = U(
|
|
485
|
+
var se = U(F, Z, j, X, W + "." + Z, t);
|
|
486
486
|
if (se)
|
|
487
487
|
return se;
|
|
488
488
|
}
|
|
@@ -490,9 +490,9 @@ function vn() {
|
|
|
490
490
|
}
|
|
491
491
|
return S(I);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function V(C) {
|
|
494
494
|
function I(H, $, j, X, W) {
|
|
495
|
-
var
|
|
495
|
+
var F = H[$], J = E(F);
|
|
496
496
|
if (J !== "object")
|
|
497
497
|
return new b("Invalid " + X + " `" + W + "` of type `" + J + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
498
498
|
var Z = r({}, H[$], C);
|
|
@@ -505,7 +505,7 @@ function vn() {
|
|
|
505
505
|
"Invalid " + X + " `" + W + "` key `" + U + "` supplied to `" + j + "`.\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(F, U, j, 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 S(I);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function q(C) {
|
|
517
517
|
switch (typeof C) {
|
|
518
518
|
case "number":
|
|
519
519
|
case "string":
|
|
@@ -523,7 +523,7 @@ 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(q);
|
|
527
527
|
if (C === null || l(C))
|
|
528
528
|
return !0;
|
|
529
529
|
var I = d(C);
|
|
@@ -531,12 +531,12 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
531
531
|
var H = I.call(C), $;
|
|
532
532
|
if (I !== C.entries) {
|
|
533
533
|
for (; !($ = H.next()).done; )
|
|
534
|
-
if (!
|
|
534
|
+
if (!q($.value))
|
|
535
535
|
return !1;
|
|
536
536
|
} else
|
|
537
537
|
for (; !($ = H.next()).done; ) {
|
|
538
538
|
var j = $.value;
|
|
539
|
-
if (j && !
|
|
539
|
+
if (j && !q(j[1]))
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
542
|
} else
|
|
@@ -916,7 +916,7 @@ 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
|
+
}, Fn = (e, ...r) => {
|
|
920
920
|
let t, n, i, s;
|
|
921
921
|
const o = (a) => {
|
|
922
922
|
const c = r.reduce((p, d) => d(p), e());
|
|
@@ -929,15 +929,15 @@ const Tn = (e, r) => {
|
|
|
929
929
|
return i(a, p), p;
|
|
930
930
|
};
|
|
931
931
|
return s = o, (...a) => s(jn(...a));
|
|
932
|
-
},
|
|
933
|
-
const r = (t) => t[e] ||
|
|
932
|
+
}, Vn = [], ne = (e) => {
|
|
933
|
+
const r = (t) => t[e] || Vn;
|
|
934
934
|
return r.isThemeGetter = !0, r;
|
|
935
|
-
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Sr = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
935
|
+
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Sr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qn = /^\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) => qn.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
|
-
), xr = () => !1, Zn = (e) => Xn.test(e), Qn = (e) => Un.test(e), ei = (e) => !N(e) && !D(e), ti = (e) => Oe(e, wr, xr), N = (e) => yr.test(e), Se = (e) => Oe(e, Cr, Jn), at = (e) => Oe(e, ai, Y), tr = (e) => Oe(e, Tr, xr), ri = (e) => Oe(e, Er, Qn),
|
|
940
|
+
), xr = () => !1, Zn = (e) => Xn.test(e), Qn = (e) => Un.test(e), ei = (e) => !N(e) && !D(e), ti = (e) => Oe(e, wr, xr), N = (e) => yr.test(e), Se = (e) => Oe(e, Cr, Jn), at = (e) => Oe(e, ai, Y), tr = (e) => Oe(e, Tr, xr), ri = (e) => Oe(e, Er, Qn), Ve = (e) => Oe(e, Mr, Zn), D = (e) => Sr.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), qe = (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) => {
|
|
@@ -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], V = () => ["auto", "min", "max", "fr", D, N], q = () => ["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()], x = () => [e, D, N], B = () => [...w(), rr, tr, {
|
|
968
968
|
position: [D, N]
|
|
969
969
|
}], C = () => ["no-repeat", {
|
|
970
970
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -978,7 +978,7 @@ const Tn = (e, r) => {
|
|
|
978
978
|
c,
|
|
979
979
|
D,
|
|
980
980
|
N
|
|
981
|
-
], j = () => ["", Y, Re, Se], 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"],
|
|
981
|
+
], j = () => ["", Y, Re, Se], 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"], F = () => [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": V()
|
|
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": V()
|
|
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: [...q(), "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", ...q()]
|
|
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": q()
|
|
1438
1438
|
}],
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Place Items
|
|
@@ -2335,8 +2335,8 @@ const Tn = (e, r) => {
|
|
|
2335
2335
|
"",
|
|
2336
2336
|
"none",
|
|
2337
2337
|
p,
|
|
2338
|
-
|
|
2339
|
-
|
|
2338
|
+
qe,
|
|
2339
|
+
Ve
|
|
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", d,
|
|
2354
|
+
"inset-shadow": ["none", d, qe, Ve]
|
|
2355
2355
|
}],
|
|
2356
2356
|
/**
|
|
2357
2357
|
* Inset Box Shadow 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, qe, Ve]
|
|
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": F()
|
|
2474
2474
|
}],
|
|
2475
2475
|
"mask-image-linear-to-pos": [{
|
|
2476
|
-
"mask-linear-to":
|
|
2476
|
+
"mask-linear-to": F()
|
|
2477
2477
|
}],
|
|
2478
2478
|
"mask-image-linear-from-color": [{
|
|
2479
2479
|
"mask-linear-from": x()
|
|
@@ -2482,10 +2482,10 @@ const Tn = (e, r) => {
|
|
|
2482
2482
|
"mask-linear-to": x()
|
|
2483
2483
|
}],
|
|
2484
2484
|
"mask-image-t-from-pos": [{
|
|
2485
|
-
"mask-t-from":
|
|
2485
|
+
"mask-t-from": F()
|
|
2486
2486
|
}],
|
|
2487
2487
|
"mask-image-t-to-pos": [{
|
|
2488
|
-
"mask-t-to":
|
|
2488
|
+
"mask-t-to": F()
|
|
2489
2489
|
}],
|
|
2490
2490
|
"mask-image-t-from-color": [{
|
|
2491
2491
|
"mask-t-from": x()
|
|
@@ -2494,10 +2494,10 @@ const Tn = (e, r) => {
|
|
|
2494
2494
|
"mask-t-to": x()
|
|
2495
2495
|
}],
|
|
2496
2496
|
"mask-image-r-from-pos": [{
|
|
2497
|
-
"mask-r-from":
|
|
2497
|
+
"mask-r-from": F()
|
|
2498
2498
|
}],
|
|
2499
2499
|
"mask-image-r-to-pos": [{
|
|
2500
|
-
"mask-r-to":
|
|
2500
|
+
"mask-r-to": F()
|
|
2501
2501
|
}],
|
|
2502
2502
|
"mask-image-r-from-color": [{
|
|
2503
2503
|
"mask-r-from": x()
|
|
@@ -2506,10 +2506,10 @@ const Tn = (e, r) => {
|
|
|
2506
2506
|
"mask-r-to": x()
|
|
2507
2507
|
}],
|
|
2508
2508
|
"mask-image-b-from-pos": [{
|
|
2509
|
-
"mask-b-from":
|
|
2509
|
+
"mask-b-from": F()
|
|
2510
2510
|
}],
|
|
2511
2511
|
"mask-image-b-to-pos": [{
|
|
2512
|
-
"mask-b-to":
|
|
2512
|
+
"mask-b-to": F()
|
|
2513
2513
|
}],
|
|
2514
2514
|
"mask-image-b-from-color": [{
|
|
2515
2515
|
"mask-b-from": x()
|
|
@@ -2518,10 +2518,10 @@ const Tn = (e, r) => {
|
|
|
2518
2518
|
"mask-b-to": x()
|
|
2519
2519
|
}],
|
|
2520
2520
|
"mask-image-l-from-pos": [{
|
|
2521
|
-
"mask-l-from":
|
|
2521
|
+
"mask-l-from": F()
|
|
2522
2522
|
}],
|
|
2523
2523
|
"mask-image-l-to-pos": [{
|
|
2524
|
-
"mask-l-to":
|
|
2524
|
+
"mask-l-to": F()
|
|
2525
2525
|
}],
|
|
2526
2526
|
"mask-image-l-from-color": [{
|
|
2527
2527
|
"mask-l-from": x()
|
|
@@ -2530,10 +2530,10 @@ const Tn = (e, r) => {
|
|
|
2530
2530
|
"mask-l-to": x()
|
|
2531
2531
|
}],
|
|
2532
2532
|
"mask-image-x-from-pos": [{
|
|
2533
|
-
"mask-x-from":
|
|
2533
|
+
"mask-x-from": F()
|
|
2534
2534
|
}],
|
|
2535
2535
|
"mask-image-x-to-pos": [{
|
|
2536
|
-
"mask-x-to":
|
|
2536
|
+
"mask-x-to": F()
|
|
2537
2537
|
}],
|
|
2538
2538
|
"mask-image-x-from-color": [{
|
|
2539
2539
|
"mask-x-from": x()
|
|
@@ -2542,10 +2542,10 @@ const Tn = (e, r) => {
|
|
|
2542
2542
|
"mask-x-to": x()
|
|
2543
2543
|
}],
|
|
2544
2544
|
"mask-image-y-from-pos": [{
|
|
2545
|
-
"mask-y-from":
|
|
2545
|
+
"mask-y-from": F()
|
|
2546
2546
|
}],
|
|
2547
2547
|
"mask-image-y-to-pos": [{
|
|
2548
|
-
"mask-y-to":
|
|
2548
|
+
"mask-y-to": F()
|
|
2549
2549
|
}],
|
|
2550
2550
|
"mask-image-y-from-color": [{
|
|
2551
2551
|
"mask-y-from": x()
|
|
@@ -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": F()
|
|
2561
2561
|
}],
|
|
2562
2562
|
"mask-image-radial-to-pos": [{
|
|
2563
|
-
"mask-radial-to":
|
|
2563
|
+
"mask-radial-to": F()
|
|
2564
2564
|
}],
|
|
2565
2565
|
"mask-image-radial-from-color": [{
|
|
2566
2566
|
"mask-radial-from": x()
|
|
@@ -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": F()
|
|
2588
2588
|
}],
|
|
2589
2589
|
"mask-image-conic-to-pos": [{
|
|
2590
|
-
"mask-conic-to":
|
|
2590
|
+
"mask-conic-to": F()
|
|
2591
2591
|
}],
|
|
2592
2592
|
"mask-image-conic-from-color": [{
|
|
2593
2593
|
"mask-conic-from": x()
|
|
@@ -2691,8 +2691,8 @@ const Tn = (e, r) => {
|
|
|
2691
2691
|
"",
|
|
2692
2692
|
"none",
|
|
2693
2693
|
f,
|
|
2694
|
-
|
|
2695
|
-
|
|
2694
|
+
qe,
|
|
2695
|
+
Ve
|
|
2696
2696
|
]
|
|
2697
2697
|
}],
|
|
2698
2698
|
/**
|
|
@@ -3413,7 +3413,7 @@ 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
|
-
}, ci = /* @__PURE__ */
|
|
3416
|
+
}, ci = /* @__PURE__ */ Fn(li);
|
|
3417
3417
|
function re(...e) {
|
|
3418
3418
|
return ci(xn(e));
|
|
3419
3419
|
}
|
|
@@ -3843,10 +3843,10 @@ const jr = ye({
|
|
|
3843
3843
|
{
|
|
3844
3844
|
className: re(
|
|
3845
3845
|
"NEXTSTEPS-BASE",
|
|
3846
|
-
"
|
|
3847
|
-
"
|
|
3846
|
+
"h-auto w-full",
|
|
3847
|
+
"px-4 md:px-5 lg:px-6 py-6 md:py-9 lg:py-12",
|
|
3848
3848
|
// spacing around the section
|
|
3849
|
-
"
|
|
3849
|
+
"space-y-4 md:space-y-6 lg:space-y-8",
|
|
3850
3850
|
// spacing between block elements
|
|
3851
3851
|
e
|
|
3852
3852
|
),
|
|
@@ -3944,7 +3944,7 @@ Ae.propTypes = {
|
|
|
3944
3944
|
}).isRequired,
|
|
3945
3945
|
children: P.node.isRequired
|
|
3946
3946
|
};
|
|
3947
|
-
const
|
|
3947
|
+
const Fr = ye({
|
|
3948
3948
|
id: "",
|
|
3949
3949
|
theme: {
|
|
3950
3950
|
primary: "",
|
|
@@ -3952,7 +3952,7 @@ const qr = ye({
|
|
|
3952
3952
|
tertiary: "",
|
|
3953
3953
|
quaternary: ""
|
|
3954
3954
|
}
|
|
3955
|
-
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(
|
|
3955
|
+
}), hi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(Fr.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 });
|
|
3956
3956
|
At.displayName = "Record.Base";
|
|
3957
3957
|
At.propTypes = {
|
|
3958
3958
|
className: P.string,
|
|
@@ -3964,7 +3964,7 @@ const Rt = ({ className: e = "", specs: r = [], children: t }) => {
|
|
|
3964
3964
|
i = "normal",
|
|
3965
3965
|
s = "normal",
|
|
3966
3966
|
o = "1.2"
|
|
3967
|
-
] = r, { theme: l } = ce(
|
|
3967
|
+
] = r, { theme: l } = ce(Fr);
|
|
3968
3968
|
return /* @__PURE__ */ G(
|
|
3969
3969
|
"h2",
|
|
3970
3970
|
{
|
|
@@ -4051,7 +4051,7 @@ $e.propTypes = {
|
|
|
4051
4051
|
}).isRequired,
|
|
4052
4052
|
children: P.node.isRequired
|
|
4053
4053
|
};
|
|
4054
|
-
const
|
|
4054
|
+
const Vr = ye({
|
|
4055
4055
|
id: "",
|
|
4056
4056
|
theme: {
|
|
4057
4057
|
primary: "",
|
|
@@ -4059,7 +4059,7 @@ const Fr = ye({
|
|
|
4059
4059
|
tertiary: "",
|
|
4060
4060
|
quaternary: ""
|
|
4061
4061
|
}
|
|
4062
|
-
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(
|
|
4062
|
+
}), bi = ({ id: e, theme: r, children: t }) => /* @__PURE__ */ G(Vr.Provider, { value: { id: e, theme: r }, children: t }), Nt = ({ className: e = "", style: r = {}, children: t }) => /* @__PURE__ */ G(
|
|
4063
4063
|
"section",
|
|
4064
4064
|
{
|
|
4065
4065
|
className: re(
|
|
@@ -4100,7 +4100,7 @@ function Bt(e = {}, r = {}) {
|
|
|
4100
4100
|
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]);
|
|
4101
4101
|
});
|
|
4102
4102
|
}
|
|
4103
|
-
const
|
|
4103
|
+
const qr = {
|
|
4104
4104
|
body: {},
|
|
4105
4105
|
addEventListener() {
|
|
4106
4106
|
},
|
|
@@ -4157,10 +4157,10 @@ const Vr = {
|
|
|
4157
4157
|
};
|
|
4158
4158
|
function de() {
|
|
4159
4159
|
const e = typeof document < "u" ? document : {};
|
|
4160
|
-
return Bt(e,
|
|
4160
|
+
return Bt(e, qr), e;
|
|
4161
4161
|
}
|
|
4162
4162
|
const yi = {
|
|
4163
|
-
document:
|
|
4163
|
+
document: qr,
|
|
4164
4164
|
navigator: {
|
|
4165
4165
|
userAgent: ""
|
|
4166
4166
|
},
|
|
@@ -4617,8 +4617,8 @@ function Ni() {
|
|
|
4617
4617
|
t.virtual.slidesPerViewAutoSlideSize && (h = t.virtual.slidesPerViewAutoSlideSize), h && k && (t.roundLengths && (h = Math.floor(h)), k.style[e.getDirectionLabel("width")] = `${h}px`);
|
|
4618
4618
|
else if (t.slidesPerView === "auto") {
|
|
4619
4619
|
_ && (k.style[e.getDirectionLabel("width")] = "");
|
|
4620
|
-
const R = getComputedStyle(k),
|
|
4621
|
-
if (
|
|
4620
|
+
const R = getComputedStyle(k), V = k.style.transform, q = k.style.webkitTransform;
|
|
4621
|
+
if (V && (k.style.transform = "none"), q && (k.style.webkitTransform = "none"), t.roundLengths)
|
|
4622
4622
|
h = e.isHorizontal() ? ht(k, "width") : ht(k, "height");
|
|
4623
4623
|
else {
|
|
4624
4624
|
const Q = r(R, "width"), E = r(R, "padding-left"), M = r(R, "padding-right"), x = r(R, "margin-left"), B = r(R, "margin-right"), C = R.getPropertyValue("box-sizing");
|
|
@@ -4632,7 +4632,7 @@ function Ni() {
|
|
|
4632
4632
|
h = Q + E + M + x + B + (H - I);
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
|
-
|
|
4635
|
+
V && (k.style.transform = V), q && (k.style.webkitTransform = q), t.roundLengths && (h = Math.floor(h));
|
|
4636
4636
|
} else
|
|
4637
4637
|
h = (m - (t.slidesPerView - 1) * v) / t.slidesPerView, t.roundLengths && (h = Math.floor(h)), k && (k.style[e.getDirectionLabel("width")] = `${h}px`);
|
|
4638
4638
|
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 && d.push(w), T.push(w)) : (t.roundLengths && (w = Math.floor(w)), (A - Math.min(e.params.slidesPerGroupSkip, A)) % e.params.slidesPerGroup === 0 && d.push(w), T.push(w), w = w + h + v), e.virtualSize += h + v, y = h, A += 1;
|
|
@@ -4650,7 +4650,7 @@ function Ni() {
|
|
|
4650
4650
|
const O = f[0] + v;
|
|
4651
4651
|
if (t.slidesPerGroup > 1) {
|
|
4652
4652
|
const k = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), R = O * t.slidesPerGroup;
|
|
4653
|
-
for (let
|
|
4653
|
+
for (let V = 0; V < k; V += 1)
|
|
4654
4654
|
d.push(d[d.length - 1] + R);
|
|
4655
4655
|
}
|
|
4656
4656
|
for (let k = 0; k < e.virtual.slidesBefore + e.virtual.slidesAfter; k += 1)
|
|
@@ -4678,10 +4678,10 @@ function Ni() {
|
|
|
4678
4678
|
const k = (g || 0) + (b || 0);
|
|
4679
4679
|
if (O + k < m) {
|
|
4680
4680
|
const R = (m - O - k) / 2;
|
|
4681
|
-
d.forEach((
|
|
4682
|
-
d[
|
|
4683
|
-
}), T.forEach((
|
|
4684
|
-
T[
|
|
4681
|
+
d.forEach((V, q) => {
|
|
4682
|
+
d[q] = V - R;
|
|
4683
|
+
}), T.forEach((V, q) => {
|
|
4684
|
+
T[q] = V + R;
|
|
4685
4685
|
});
|
|
4686
4686
|
}
|
|
4687
4687
|
}
|
|
@@ -4847,7 +4847,7 @@ const Ye = (e, r) => {
|
|
|
4847
4847
|
for (let o = Math.max(i - r, 0); o <= Math.min(s + r, t - 1); o += 1)
|
|
4848
4848
|
o !== i && (o > s || o < i) && ut(e, o);
|
|
4849
4849
|
};
|
|
4850
|
-
function
|
|
4850
|
+
function Fi(e) {
|
|
4851
4851
|
const {
|
|
4852
4852
|
slidesGrid: r,
|
|
4853
4853
|
params: t
|
|
@@ -4857,7 +4857,7 @@ function qi(e) {
|
|
|
4857
4857
|
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);
|
|
4858
4858
|
return t.normalizeSlideIndex && (i < 0 || typeof i > "u") && (i = 0), i;
|
|
4859
4859
|
}
|
|
4860
|
-
function
|
|
4860
|
+
function Vi(e) {
|
|
4861
4861
|
const r = this, t = r.rtlTranslate ? r.translate : -r.translate, {
|
|
4862
4862
|
snapGrid: n,
|
|
4863
4863
|
params: i,
|
|
@@ -4870,7 +4870,7 @@ function Fi(e) {
|
|
|
4870
4870
|
let g = f - r.virtual.slidesBefore;
|
|
4871
4871
|
return g < 0 && (g = r.virtual.slides.length + g), g >= r.virtual.slides.length && (g -= r.virtual.slides.length), g;
|
|
4872
4872
|
};
|
|
4873
|
-
if (typeof a > "u" && (a =
|
|
4873
|
+
if (typeof a > "u" && (a = Fi(r)), n.indexOf(t) >= 0)
|
|
4874
4874
|
c = n.indexOf(t);
|
|
4875
4875
|
else {
|
|
4876
4876
|
const f = Math.min(i.slidesPerGroupSkip, a);
|
|
@@ -4906,7 +4906,7 @@ function Fi(e) {
|
|
|
4906
4906
|
activeIndex: a
|
|
4907
4907
|
}), r.initialized && vt(r), r.emit("activeIndexChange"), r.emit("snapIndexChange"), (r.initialized || r.params.runCallbacksOnInit) && (o !== T && r.emit("realIndexChange"), r.emit("slideChange"));
|
|
4908
4908
|
}
|
|
4909
|
-
function
|
|
4909
|
+
function qi(e, r) {
|
|
4910
4910
|
const t = this, n = t.params;
|
|
4911
4911
|
let i = e.closest(`.${n.slideClass}, swiper-slide`);
|
|
4912
4912
|
!i && t.isElement && r && r.length > 1 && r.includes(e) && [...r.slice(r.indexOf(e) + 1, r.length)].forEach((l) => {
|
|
@@ -4936,8 +4936,8 @@ var Hi = {
|
|
|
4936
4936
|
updateSlidesProgress: $i,
|
|
4937
4937
|
updateProgress: Gi,
|
|
4938
4938
|
updateSlidesClasses: ji,
|
|
4939
|
-
updateActiveIndex:
|
|
4940
|
-
updateClickedSlide:
|
|
4939
|
+
updateActiveIndex: Vi,
|
|
4940
|
+
updateClickedSlide: qi
|
|
4941
4941
|
};
|
|
4942
4942
|
function Wi(e = this.isHorizontal() ? "x" : "y") {
|
|
4943
4943
|
const r = this, {
|
|
@@ -5354,11 +5354,11 @@ function us({
|
|
|
5354
5354
|
const L = [], h = [], _ = A ? Math.ceil(c.length / f.grid.rows) : c.length, O = s && _ - u < v && !m;
|
|
5355
5355
|
let k = O ? u : a.activeIndex;
|
|
5356
5356
|
typeof i > "u" ? i = a.getSlideIndex(c.find((x) => x.classList.contains(f.slideActiveClass))) : k = i;
|
|
5357
|
-
const R = t === "next" || !t,
|
|
5358
|
-
let
|
|
5357
|
+
const R = t === "next" || !t, V = t === "prev" || !t;
|
|
5358
|
+
let q = 0, Q = 0;
|
|
5359
5359
|
const M = (A ? c[i].column : i) + (m && typeof n > "u" ? -v / 2 + 0.5 : 0);
|
|
5360
5360
|
if (M < y) {
|
|
5361
|
-
|
|
5361
|
+
q = Math.max(y - M, w);
|
|
5362
5362
|
for (let x = 0; x < y - M; x += 1) {
|
|
5363
5363
|
const B = x - Math.floor(x / _) * _;
|
|
5364
5364
|
if (A) {
|
|
@@ -5379,17 +5379,17 @@ function us({
|
|
|
5379
5379
|
}
|
|
5380
5380
|
if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
5381
5381
|
a.__preventObserver__ = !1;
|
|
5382
|
-
}), a.params.effect === "cards" && c.length < v + y * 2 && (h.includes(i) && h.splice(h.indexOf(i), 1), L.includes(i) && L.splice(L.indexOf(i), 1)),
|
|
5382
|
+
}), a.params.effect === "cards" && c.length < v + y * 2 && (h.includes(i) && h.splice(h.indexOf(i), 1), L.includes(i) && L.splice(L.indexOf(i), 1)), V && L.forEach((x) => {
|
|
5383
5383
|
c[x].swiperLoopMoveDOM = !0, T.prepend(c[x]), c[x].swiperLoopMoveDOM = !1;
|
|
5384
5384
|
}), R && h.forEach((x) => {
|
|
5385
5385
|
c[x].swiperLoopMoveDOM = !0, T.append(c[x]), c[x].swiperLoopMoveDOM = !1;
|
|
5386
|
-
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 &&
|
|
5386
|
+
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 && V || h.length > 0 && R) && a.slides.forEach((x, B) => {
|
|
5387
5387
|
a.grid.updateSlide(B, x, a.slides);
|
|
5388
5388
|
}), f.watchSlidesProgress && a.updateSlidesOffset(), r) {
|
|
5389
|
-
if (L.length > 0 &&
|
|
5389
|
+
if (L.length > 0 && V) {
|
|
5390
5390
|
if (typeof e > "u") {
|
|
5391
|
-
const x = a.slidesGrid[k], C = a.slidesGrid[k +
|
|
5392
|
-
l ? a.setTranslate(a.translate - C) : (a.slideTo(k + Math.ceil(
|
|
5391
|
+
const x = a.slidesGrid[k], C = a.slidesGrid[k + q] - x;
|
|
5392
|
+
l ? a.setTranslate(a.translate - C) : (a.slideTo(k + Math.ceil(q), 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - C, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - C));
|
|
5393
5393
|
} else if (n) {
|
|
5394
5394
|
const x = A ? L.length / f.grid.rows : L.length;
|
|
5395
5395
|
a.slideTo(a.activeIndex + x, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
|
|
@@ -6592,7 +6592,7 @@ function js({
|
|
|
6592
6592
|
}, o) {
|
|
6593
6593
|
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);
|
|
6594
6594
|
}
|
|
6595
|
-
function
|
|
6595
|
+
function Fs(e, r, t, n, i) {
|
|
6596
6596
|
const s = [];
|
|
6597
6597
|
if (!r) return s;
|
|
6598
6598
|
const o = (a) => {
|
|
@@ -6614,7 +6614,7 @@ function qs(e, r, t, n, i) {
|
|
|
6614
6614
|
} else e[a] !== r[a] && o(a);
|
|
6615
6615
|
}), s;
|
|
6616
6616
|
}
|
|
6617
|
-
const
|
|
6617
|
+
const Vs = (e) => {
|
|
6618
6618
|
!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());
|
|
6619
6619
|
};
|
|
6620
6620
|
function Je() {
|
|
@@ -6636,7 +6636,7 @@ function an(e) {
|
|
|
6636
6636
|
sn(t) ? r.push(t) : t.props && t.props.children && an(t.props.children).forEach((n) => r.push(n));
|
|
6637
6637
|
}), r;
|
|
6638
6638
|
}
|
|
6639
|
-
function
|
|
6639
|
+
function qs(e) {
|
|
6640
6640
|
const r = [], t = {
|
|
6641
6641
|
"container-start": [],
|
|
6642
6642
|
"container-end": [],
|
|
@@ -6699,7 +6699,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6699
6699
|
} = Gs(s), {
|
|
6700
6700
|
slides: k,
|
|
6701
6701
|
slots: R
|
|
6702
|
-
} =
|
|
6702
|
+
} = qs(n), V = () => {
|
|
6703
6703
|
f(!T);
|
|
6704
6704
|
};
|
|
6705
6705
|
Object.assign(L.on, {
|
|
@@ -6707,7 +6707,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6707
6707
|
c(B);
|
|
6708
6708
|
}
|
|
6709
6709
|
});
|
|
6710
|
-
const
|
|
6710
|
+
const q = () => {
|
|
6711
6711
|
Object.assign(L.on, O), l = !0;
|
|
6712
6712
|
const x = {
|
|
6713
6713
|
...L
|
|
@@ -6723,7 +6723,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6723
6723
|
Me(S.current.params.virtual, B), Me(S.current.originalParams.virtual, B);
|
|
6724
6724
|
}
|
|
6725
6725
|
};
|
|
6726
|
-
b.current ||
|
|
6726
|
+
b.current || q(), S.current && S.current.on("_beforeBreakpoint", V);
|
|
6727
6727
|
const Q = () => {
|
|
6728
6728
|
l || !O || !S.current || Object.keys(O).forEach((x) => {
|
|
6729
6729
|
S.current.on(x, O[x]);
|
|
@@ -6734,12 +6734,12 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6734
6734
|
});
|
|
6735
6735
|
};
|
|
6736
6736
|
mt(() => () => {
|
|
6737
|
-
S.current && S.current.off("_beforeBreakpoint",
|
|
6737
|
+
S.current && S.current.off("_beforeBreakpoint", V);
|
|
6738
6738
|
}), mt(() => {
|
|
6739
6739
|
!g.current && S.current && (S.current.emitSlidesClasses(), g.current = !0);
|
|
6740
6740
|
}), _e(() => {
|
|
6741
6741
|
if (o && (o.current = b.current), !!b.current)
|
|
6742
|
-
return S.current.destroyed &&
|
|
6742
|
+
return S.current.destroyed && q(), js({
|
|
6743
6743
|
el: b.current,
|
|
6744
6744
|
nextEl: v.current,
|
|
6745
6745
|
prevEl: w.current,
|
|
@@ -6751,7 +6751,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6751
6751
|
};
|
|
6752
6752
|
}, []), _e(() => {
|
|
6753
6753
|
Q();
|
|
6754
|
-
const x =
|
|
6754
|
+
const x = Fs(h, u.current, k, m.current, (B) => B.key);
|
|
6755
6755
|
return u.current = h, m.current = k, x.length && S.current && !S.current.destroyed && $s({
|
|
6756
6756
|
swiper: S.current,
|
|
6757
6757
|
slides: k,
|
|
@@ -6765,7 +6765,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6765
6765
|
E();
|
|
6766
6766
|
};
|
|
6767
6767
|
}), _e(() => {
|
|
6768
|
-
|
|
6768
|
+
Vs(S.current);
|
|
6769
6769
|
}, [p]);
|
|
6770
6770
|
function M() {
|
|
6771
6771
|
return L.virtual ? Hs(S.current, k, p) : k.map((x, B) => /* @__PURE__ */ ie.cloneElement(x, {
|
|
@@ -7076,28 +7076,28 @@ function Xs({
|
|
|
7076
7076
|
if (m.dynamicBullets && (s = ht(h[0], e.isHorizontal() ? "width" : "height"), v.forEach((R) => {
|
|
7077
7077
|
R.style[e.isHorizontal() ? "width" : "height"] = `${s * (m.dynamicMainBullets + 4)}px`;
|
|
7078
7078
|
}), 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) => {
|
|
7079
|
-
const
|
|
7080
|
-
R.classList.remove(...
|
|
7079
|
+
const V = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((q) => `${m.bulletActiveClass}${q}`)].map((q) => typeof q == "string" && q.includes(" ") ? q.split(" ") : q).flat();
|
|
7080
|
+
R.classList.remove(...V);
|
|
7081
7081
|
}), v.length > 1)
|
|
7082
7082
|
h.forEach((R) => {
|
|
7083
|
-
const
|
|
7084
|
-
|
|
7083
|
+
const V = De(R);
|
|
7084
|
+
V === w ? R.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && R.setAttribute("part", "bullet"), m.dynamicBullets && (V >= _ && V <= O && R.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), V === _ && a(R, "prev"), V === O && a(R, "next"));
|
|
7085
7085
|
});
|
|
7086
7086
|
else {
|
|
7087
7087
|
const R = h[w];
|
|
7088
|
-
if (R && R.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && h.forEach((
|
|
7089
|
-
|
|
7088
|
+
if (R && R.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && h.forEach((V, q) => {
|
|
7089
|
+
V.setAttribute("part", q === w ? "bullet-active" : "bullet");
|
|
7090
7090
|
}), m.dynamicBullets) {
|
|
7091
|
-
const
|
|
7091
|
+
const V = h[_], q = h[O];
|
|
7092
7092
|
for (let Q = _; Q <= O; Q += 1)
|
|
7093
7093
|
h[Q] && h[Q].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
|
|
7094
|
-
a(
|
|
7094
|
+
a(V, "prev"), a(q, "next");
|
|
7095
7095
|
}
|
|
7096
7096
|
}
|
|
7097
7097
|
if (m.dynamicBullets) {
|
|
7098
|
-
const R = Math.min(h.length, m.dynamicMainBullets + 4),
|
|
7098
|
+
const R = Math.min(h.length, m.dynamicMainBullets + 4), V = (s * R - s) / 2 - k * s, q = u ? "right" : "left";
|
|
7099
7099
|
h.forEach((Q) => {
|
|
7100
|
-
Q.style[e.isHorizontal() ?
|
|
7100
|
+
Q.style[e.isHorizontal() ? q : "top"] = `${V}px`;
|
|
7101
7101
|
});
|
|
7102
7102
|
}
|
|
7103
7103
|
}
|
|
@@ -7110,9 +7110,9 @@ function Xs({
|
|
|
7110
7110
|
let O;
|
|
7111
7111
|
m.progressbarOpposite ? O = e.isHorizontal() ? "vertical" : "horizontal" : O = e.isHorizontal() ? "horizontal" : "vertical";
|
|
7112
7112
|
const k = (w + 1) / L;
|
|
7113
|
-
let R = 1,
|
|
7114
|
-
O === "horizontal" ? R = k :
|
|
7115
|
-
|
|
7113
|
+
let R = 1, V = 1;
|
|
7114
|
+
O === "horizontal" ? R = k : V = k, h.querySelectorAll(he(m.progressbarFillClass)).forEach((q) => {
|
|
7115
|
+
q.style.transform = `translate3d(0,0,0) scaleX(${R}) scaleY(${V})`, q.style.transitionDuration = `${e.params.speed}ms`;
|
|
7116
7116
|
});
|
|
7117
7117
|
}
|
|
7118
7118
|
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);
|
|
@@ -7350,7 +7350,7 @@ function Us({
|
|
|
7350
7350
|
x || B || E.sourceCapabilities && E.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
7351
7351
|
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);
|
|
7352
7352
|
}));
|
|
7353
|
-
},
|
|
7353
|
+
}, V = () => {
|
|
7354
7354
|
const E = e.params.a11y;
|
|
7355
7355
|
E.itemRoleDescriptionMessage && T(e.slides, E.itemRoleDescriptionMessage), E.slideRole && d(e.slides, E.slideRole);
|
|
7356
7356
|
const M = e.slides.length;
|
|
@@ -7358,7 +7358,7 @@ function Us({
|
|
|
7358
7358
|
const C = e.params.loop ? parseInt(x.getAttribute("data-swiper-slide-index"), 10) : B, I = E.slideLabelMessage.replace(/\{\{index\}\}/, C + 1).replace(/\{\{slidesLength\}\}/, M);
|
|
7359
7359
|
g(x, I);
|
|
7360
7360
|
});
|
|
7361
|
-
},
|
|
7361
|
+
}, q = () => {
|
|
7362
7362
|
const E = e.params.a11y;
|
|
7363
7363
|
e.el.append(n);
|
|
7364
7364
|
const M = e.el;
|
|
@@ -7368,7 +7368,7 @@ function Us({
|
|
|
7368
7368
|
const $ = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
7369
7369
|
S(x, $);
|
|
7370
7370
|
}
|
|
7371
|
-
|
|
7371
|
+
V();
|
|
7372
7372
|
let {
|
|
7373
7373
|
nextEl: C,
|
|
7374
7374
|
prevEl: I
|
|
@@ -7390,9 +7390,9 @@ function Us({
|
|
|
7390
7390
|
t("beforeInit", () => {
|
|
7391
7391
|
n = Ne("span", e.params.a11y.notificationClass), n.setAttribute("aria-live", "assertive"), n.setAttribute("aria-atomic", "true");
|
|
7392
7392
|
}), t("afterInit", () => {
|
|
7393
|
-
e.params.a11y.enabled &&
|
|
7393
|
+
e.params.a11y.enabled && q();
|
|
7394
7394
|
}), t("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
|
|
7395
|
-
e.params.a11y.enabled &&
|
|
7395
|
+
e.params.a11y.enabled && V();
|
|
7396
7396
|
}), t("fromEdge toEdge afterInit lock unlock", () => {
|
|
7397
7397
|
e.params.a11y.enabled && w();
|
|
7398
7398
|
}), t("paginationUpdate", () => {
|
|
@@ -7479,9 +7479,9 @@ function Ks({
|
|
|
7479
7479
|
M.pointerType === "mouse" && (S = !0, u = !0, !(e.animating || e.autoplay.paused) && h(!0));
|
|
7480
7480
|
}, R = (M) => {
|
|
7481
7481
|
M.pointerType === "mouse" && (u = !1, e.autoplay.paused && _());
|
|
7482
|
-
}, F = () => {
|
|
7483
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", k), e.el.addEventListener("pointerleave", R));
|
|
7484
7482
|
}, V = () => {
|
|
7483
|
+
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", k), e.el.addEventListener("pointerleave", R));
|
|
7484
|
+
}, q = () => {
|
|
7485
7485
|
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", k), e.el.removeEventListener("pointerleave", R));
|
|
7486
7486
|
}, Q = () => {
|
|
7487
7487
|
de().addEventListener("visibilitychange", O);
|
|
@@ -7489,9 +7489,9 @@ function Ks({
|
|
|
7489
7489
|
de().removeEventListener("visibilitychange", O);
|
|
7490
7490
|
};
|
|
7491
7491
|
t("init", () => {
|
|
7492
|
-
e.params.autoplay.enabled && (
|
|
7492
|
+
e.params.autoplay.enabled && (V(), Q(), A());
|
|
7493
7493
|
}), t("destroy", () => {
|
|
7494
|
-
|
|
7494
|
+
q(), E(), e.autoplay.running && L();
|
|
7495
7495
|
}), t("_freeModeStaticRelease", () => {
|
|
7496
7496
|
(f || S) && _();
|
|
7497
7497
|
}), t("_freeModeNoMomentumRelease", () => {
|
|
@@ -7612,7 +7612,7 @@ const Gt = ({
|
|
|
7612
7612
|
onSwiper: d,
|
|
7613
7613
|
onSlideChange: T
|
|
7614
7614
|
}) => {
|
|
7615
|
-
const { theme: f } = ce(
|
|
7615
|
+
const { theme: f } = ce(Vr);
|
|
7616
7616
|
return /* @__PURE__ */ G("div", { className: "relative w-full", children: /* @__PURE__ */ G(
|
|
7617
7617
|
on,
|
|
7618
7618
|
{
|