@redhq/ui 1.0.0 → 1.1.1
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 +1 -1
- package/dist/index.es.js +313 -278
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ var Ft;
|
|
|
8
8
|
function pn() {
|
|
9
9
|
if (Ft) return ee;
|
|
10
10
|
Ft = 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, 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,
|
|
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, 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;
|
|
@@ -67,17 +67,17 @@ function pn() {
|
|
|
67
67
|
}, ee.isSuspense = function(y) {
|
|
68
68
|
return v(y) === d;
|
|
69
69
|
}, ee.isValidElementType = function(y) {
|
|
70
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === c || y === s || y === i || y === d || y === T || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === f || y.$$typeof === o || y.$$typeof === l || y.$$typeof === p || y.$$typeof ===
|
|
70
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === c || y === s || y === i || y === d || y === T || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === f || y.$$typeof === o || y.$$typeof === l || y.$$typeof === p || y.$$typeof === x || y.$$typeof === u || y.$$typeof === m || y.$$typeof === b);
|
|
71
71
|
}, ee.typeOf = v, ee;
|
|
72
72
|
}
|
|
73
73
|
var te = {};
|
|
74
74
|
var Vt;
|
|
75
75
|
function mn() {
|
|
76
76
|
return Vt || (Vt = 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, 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,
|
|
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, 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 === c || z === s || z === i || z === d || z === T || typeof z == "object" && z !== null && (z.$$typeof === g || z.$$typeof === f || z.$$typeof === o || z.$$typeof === l || z.$$typeof === p || z.$$typeof ===
|
|
80
|
+
z === n || z === c || z === s || z === i || z === d || 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) {
|
|
@@ -111,9 +111,9 @@ 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, V = f, q = t, Q = s, E = i, M = d,
|
|
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, S = !1;
|
|
115
115
|
function B(z) {
|
|
116
|
-
return
|
|
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
119
|
return w(z) === c;
|
|
@@ -205,7 +205,7 @@ function gn() {
|
|
|
205
205
|
}, Qe;
|
|
206
206
|
}
|
|
207
207
|
var et, Wt;
|
|
208
|
-
function
|
|
208
|
+
function xt() {
|
|
209
209
|
if (Wt) return et;
|
|
210
210
|
Wt = 1;
|
|
211
211
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -222,7 +222,7 @@ function hn() {
|
|
|
222
222
|
var e = function() {
|
|
223
223
|
};
|
|
224
224
|
if (process.env.NODE_ENV !== "production") {
|
|
225
|
-
var r = /* @__PURE__ */
|
|
225
|
+
var r = /* @__PURE__ */ xt(), t = {}, n = /* @__PURE__ */ pr();
|
|
226
226
|
e = function(s) {
|
|
227
227
|
var o = "Warning: " + s;
|
|
228
228
|
typeof console < "u" && console.error(o);
|
|
@@ -268,7 +268,7 @@ var nt, Ut;
|
|
|
268
268
|
function vn() {
|
|
269
269
|
if (Ut) return nt;
|
|
270
270
|
Ut = 1;
|
|
271
|
-
var e = fr(), r = gn(), t = /* @__PURE__ */
|
|
271
|
+
var e = fr(), r = gn(), t = /* @__PURE__ */ xt(), n = /* @__PURE__ */ pr(), i = /* @__PURE__ */ hn(), s = function() {
|
|
272
272
|
};
|
|
273
273
|
process.env.NODE_ENV !== "production" && (s = function(l) {
|
|
274
274
|
var a = "Warning: " + l;
|
|
@@ -316,7 +316,7 @@ function vn() {
|
|
|
316
316
|
this.message = C, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
|
317
317
|
}
|
|
318
318
|
b.prototype = Error.prototype;
|
|
319
|
-
function
|
|
319
|
+
function x(C) {
|
|
320
320
|
if (process.env.NODE_ENV !== "production")
|
|
321
321
|
var I = {}, H = 0;
|
|
322
322
|
function $(X, W, F, J, Z, U, se) {
|
|
@@ -351,10 +351,10 @@ function vn() {
|
|
|
351
351
|
}
|
|
352
352
|
return null;
|
|
353
353
|
}
|
|
354
|
-
return
|
|
354
|
+
return x(I);
|
|
355
355
|
}
|
|
356
356
|
function m() {
|
|
357
|
-
return
|
|
357
|
+
return x(o);
|
|
358
358
|
}
|
|
359
359
|
function v(C) {
|
|
360
360
|
function I(H, $, j, X, W) {
|
|
@@ -372,7 +372,7 @@ function vn() {
|
|
|
372
372
|
}
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
|
-
return
|
|
375
|
+
return x(I);
|
|
376
376
|
}
|
|
377
377
|
function w() {
|
|
378
378
|
function C(I, H, $, j, X) {
|
|
@@ -383,7 +383,7 @@ function vn() {
|
|
|
383
383
|
}
|
|
384
384
|
return null;
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return x(C);
|
|
387
387
|
}
|
|
388
388
|
function y() {
|
|
389
389
|
function C(I, H, $, j, X) {
|
|
@@ -394,7 +394,7 @@ function vn() {
|
|
|
394
394
|
}
|
|
395
395
|
return null;
|
|
396
396
|
}
|
|
397
|
-
return
|
|
397
|
+
return x(C);
|
|
398
398
|
}
|
|
399
399
|
function A(C) {
|
|
400
400
|
function I(H, $, j, X, W) {
|
|
@@ -404,7 +404,7 @@ function vn() {
|
|
|
404
404
|
}
|
|
405
405
|
return null;
|
|
406
406
|
}
|
|
407
|
-
return
|
|
407
|
+
return x(I);
|
|
408
408
|
}
|
|
409
409
|
function L(C) {
|
|
410
410
|
if (!Array.isArray(C))
|
|
@@ -421,7 +421,7 @@ function vn() {
|
|
|
421
421
|
});
|
|
422
422
|
return new b("Invalid " + X + " `" + W + "` of value `" + String(F) + "` " + ("supplied to `" + j + "`, expected one of " + Z + "."));
|
|
423
423
|
}
|
|
424
|
-
return
|
|
424
|
+
return x(I);
|
|
425
425
|
}
|
|
426
426
|
function h(C) {
|
|
427
427
|
function I(H, $, j, X, W) {
|
|
@@ -438,7 +438,7 @@ function vn() {
|
|
|
438
438
|
}
|
|
439
439
|
return null;
|
|
440
440
|
}
|
|
441
|
-
return
|
|
441
|
+
return x(I);
|
|
442
442
|
}
|
|
443
443
|
function _(C) {
|
|
444
444
|
if (!Array.isArray(C))
|
|
@@ -447,7 +447,7 @@ function vn() {
|
|
|
447
447
|
var H = C[I];
|
|
448
448
|
if (typeof H != "function")
|
|
449
449
|
return s(
|
|
450
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
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
453
|
function $(j, X, W, F, J) {
|
|
@@ -460,13 +460,13 @@ function vn() {
|
|
|
460
460
|
var ue = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
461
461
|
return new b("Invalid " + F + " `" + J + "` supplied to " + ("`" + W + "`" + ue + "."));
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return x($);
|
|
464
464
|
}
|
|
465
465
|
function O() {
|
|
466
466
|
function C(I, H, $, j, X) {
|
|
467
467
|
return q(I[H]) ? null : new b("Invalid " + j + " `" + X + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return x(C);
|
|
470
470
|
}
|
|
471
471
|
function k(C, I, H, $, j) {
|
|
472
472
|
return new b(
|
|
@@ -488,7 +488,7 @@ function vn() {
|
|
|
488
488
|
}
|
|
489
489
|
return null;
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return x(I);
|
|
492
492
|
}
|
|
493
493
|
function V(C) {
|
|
494
494
|
function I(H, $, j, X, W) {
|
|
@@ -511,7 +511,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
511
511
|
}
|
|
512
512
|
return null;
|
|
513
513
|
}
|
|
514
|
-
return
|
|
514
|
+
return x(I);
|
|
515
515
|
}
|
|
516
516
|
function q(C) {
|
|
517
517
|
switch (typeof C) {
|
|
@@ -565,7 +565,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
565
565
|
}
|
|
566
566
|
return I;
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function S(C) {
|
|
569
569
|
var I = M(C);
|
|
570
570
|
switch (I) {
|
|
571
571
|
case "array":
|
|
@@ -589,7 +589,7 @@ var it, Kt;
|
|
|
589
589
|
function bn() {
|
|
590
590
|
if (Kt) return it;
|
|
591
591
|
Kt = 1;
|
|
592
|
-
var e = /* @__PURE__ */
|
|
592
|
+
var e = /* @__PURE__ */ xt();
|
|
593
593
|
function r() {
|
|
594
594
|
}
|
|
595
595
|
function t() {
|
|
@@ -643,8 +643,8 @@ function yn() {
|
|
|
643
643
|
je.exports = /* @__PURE__ */ bn()();
|
|
644
644
|
return je.exports;
|
|
645
645
|
}
|
|
646
|
-
var
|
|
647
|
-
const P = /* @__PURE__ */ fn(
|
|
646
|
+
var xn = /* @__PURE__ */ yn();
|
|
647
|
+
const P = /* @__PURE__ */ fn(xn);
|
|
648
648
|
function mr(e) {
|
|
649
649
|
var r, t, n = "";
|
|
650
650
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
@@ -654,7 +654,7 @@ function mr(e) {
|
|
|
654
654
|
} else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
655
655
|
return n;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Sn() {
|
|
658
658
|
for (var e, r, t = 0, n = "", i = arguments.length; t < i; t++) (e = arguments[t]) && (r = mr(e)) && (n && (n += " "), n += r);
|
|
659
659
|
return n;
|
|
660
660
|
}
|
|
@@ -722,10 +722,10 @@ const Tn = (e, r) => {
|
|
|
722
722
|
const t = gr();
|
|
723
723
|
for (const n in e) {
|
|
724
724
|
const i = e[n];
|
|
725
|
-
|
|
725
|
+
St(i, t, n, r);
|
|
726
726
|
}
|
|
727
727
|
return t;
|
|
728
|
-
},
|
|
728
|
+
}, St = (e, r, t, n) => {
|
|
729
729
|
const i = e.length;
|
|
730
730
|
for (let s = 0; s < i; s++) {
|
|
731
731
|
const o = e[s];
|
|
@@ -746,7 +746,7 @@ const Tn = (e, r) => {
|
|
|
746
746
|
n.classGroupId = t;
|
|
747
747
|
}, Ln = (e, r, t, n) => {
|
|
748
748
|
if (Rn(e)) {
|
|
749
|
-
|
|
749
|
+
St(e(n), r, t, n);
|
|
750
750
|
return;
|
|
751
751
|
}
|
|
752
752
|
r.validators === null && (r.validators = []), r.validators.push(En(t, e));
|
|
@@ -754,7 +754,7 @@ const Tn = (e, r) => {
|
|
|
754
754
|
const i = Object.entries(e), s = i.length;
|
|
755
755
|
for (let o = 0; o < s; o++) {
|
|
756
756
|
const [l, a] = i[o];
|
|
757
|
-
|
|
757
|
+
St(a, vr(r, l), t, n);
|
|
758
758
|
}
|
|
759
759
|
}, vr = (e, r) => {
|
|
760
760
|
let t = e;
|
|
@@ -805,18 +805,18 @@ const Tn = (e, r) => {
|
|
|
805
805
|
let o = 0, l = 0, a = 0, c;
|
|
806
806
|
const p = i.length;
|
|
807
807
|
for (let b = 0; b < p; b++) {
|
|
808
|
-
const
|
|
808
|
+
const x = i[b];
|
|
809
809
|
if (o === 0 && l === 0) {
|
|
810
|
-
if (
|
|
810
|
+
if (x === Qt) {
|
|
811
811
|
s.push(i.slice(a, b)), a = b + 1;
|
|
812
812
|
continue;
|
|
813
813
|
}
|
|
814
|
-
if (
|
|
814
|
+
if (x === "/") {
|
|
815
815
|
c = b;
|
|
816
816
|
continue;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
|
|
819
|
+
x === "[" ? o++ : x === "]" ? o-- : x === "(" ? l++ : x === ")" && l--;
|
|
820
820
|
}
|
|
821
821
|
const d = s.length === 0 ? i : i.slice(a);
|
|
822
822
|
let T = d, f = !1;
|
|
@@ -880,9 +880,9 @@ const Tn = (e, r) => {
|
|
|
880
880
|
a = p + (a.length > 0 ? " " + a : a);
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
883
|
-
let
|
|
883
|
+
let x = !!b, u = n(x ? g.substring(0, b) : g);
|
|
884
884
|
if (!u) {
|
|
885
|
-
if (!
|
|
885
|
+
if (!x) {
|
|
886
886
|
a = p + (a.length > 0 ? " " + a : a);
|
|
887
887
|
continue;
|
|
888
888
|
}
|
|
@@ -890,13 +890,13 @@ const Tn = (e, r) => {
|
|
|
890
890
|
a = p + (a.length > 0 ? " " + a : a);
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
|
-
|
|
893
|
+
x = !1;
|
|
894
894
|
}
|
|
895
895
|
const m = T.length === 0 ? "" : T.length === 1 ? T[0] : s(T).join(":"), v = f ? m + gt : m, w = v + u;
|
|
896
896
|
if (o.indexOf(w) > -1)
|
|
897
897
|
continue;
|
|
898
898
|
o.push(w);
|
|
899
|
-
const y = i(u,
|
|
899
|
+
const y = i(u, x);
|
|
900
900
|
for (let A = 0; A < y.length; ++A) {
|
|
901
901
|
const L = y[A];
|
|
902
902
|
o.push(v + L);
|
|
@@ -932,19 +932,19 @@ const Tn = (e, r) => {
|
|
|
932
932
|
}, Vn = [], ne = (e) => {
|
|
933
933
|
const r = (t) => t[e] || Vn;
|
|
934
934
|
return r.isThemeGetter = !0, r;
|
|
935
|
-
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i,
|
|
935
|
+
}, yr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\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
|
-
),
|
|
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), Ve = (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), 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) => {
|
|
944
|
-
const n =
|
|
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"), c = ne("radius"), p = ne("shadow"), d = ne("inset-shadow"), T = ne("text-shadow"), f = ne("drop-shadow"), g = ne("blur"), b = ne("perspective"),
|
|
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"), c = ne("radius"), p = ne("shadow"), d = 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,13 +964,13 @@ 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], 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()],
|
|
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()], 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"]
|
|
971
971
|
}], I = () => ["auto", "cover", "contain", ii, ti, {
|
|
972
972
|
size: [D, N]
|
|
973
|
-
}], H = () => [st, Re,
|
|
973
|
+
}], H = () => [st, Re, xe], $ = () => [
|
|
974
974
|
// Deprecated since Tailwind CSS v4.0.0
|
|
975
975
|
"",
|
|
976
976
|
"none",
|
|
@@ -978,7 +978,7 @@ const Tn = (e, r) => {
|
|
|
978
978
|
c,
|
|
979
979
|
D,
|
|
980
980
|
N
|
|
981
|
-
], j = () => ["", Y, Re,
|
|
981
|
+
], j = () => ["", 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"], F = () => [Y, st, rr, tr], J = () => [
|
|
982
982
|
// Deprecated since Tailwind CSS v4.0.0
|
|
983
983
|
"",
|
|
984
984
|
"none",
|
|
@@ -1018,7 +1018,7 @@ const Tn = (e, r) => {
|
|
|
1018
1018
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1019
1019
|
*/
|
|
1020
1020
|
aspect: [{
|
|
1021
|
-
aspect: ["auto", "square", we, N, D,
|
|
1021
|
+
aspect: ["auto", "square", we, N, D, x]
|
|
1022
1022
|
}],
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Container
|
|
@@ -1678,7 +1678,7 @@ const Tn = (e, r) => {
|
|
|
1678
1678
|
* @see https://tailwindcss.com/docs/font-size
|
|
1679
1679
|
*/
|
|
1680
1680
|
"font-size": [{
|
|
1681
|
-
text: ["base", t, Re,
|
|
1681
|
+
text: ["base", t, Re, xe]
|
|
1682
1682
|
}],
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Font Smoothing
|
|
@@ -1800,14 +1800,14 @@ const Tn = (e, r) => {
|
|
|
1800
1800
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1801
1801
|
*/
|
|
1802
1802
|
"placeholder-color": [{
|
|
1803
|
-
placeholder:
|
|
1803
|
+
placeholder: S()
|
|
1804
1804
|
}],
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Text Color
|
|
1807
1807
|
* @see https://tailwindcss.com/docs/text-color
|
|
1808
1808
|
*/
|
|
1809
1809
|
"text-color": [{
|
|
1810
|
-
text:
|
|
1810
|
+
text: S()
|
|
1811
1811
|
}],
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Text Decoration
|
|
@@ -1826,14 +1826,14 @@ const Tn = (e, r) => {
|
|
|
1826
1826
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1827
1827
|
*/
|
|
1828
1828
|
"text-decoration-thickness": [{
|
|
1829
|
-
decoration: [Y, "from-font", "auto", D,
|
|
1829
|
+
decoration: [Y, "from-font", "auto", D, xe]
|
|
1830
1830
|
}],
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Text Decoration Color
|
|
1833
1833
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1834
1834
|
*/
|
|
1835
1835
|
"text-decoration-color": [{
|
|
1836
|
-
decoration:
|
|
1836
|
+
decoration: S()
|
|
1837
1837
|
}],
|
|
1838
1838
|
/**
|
|
1839
1839
|
* Text Underline Offset
|
|
@@ -1971,7 +1971,7 @@ const Tn = (e, r) => {
|
|
|
1971
1971
|
* @see https://tailwindcss.com/docs/background-color
|
|
1972
1972
|
*/
|
|
1973
1973
|
"bg-color": [{
|
|
1974
|
-
bg:
|
|
1974
|
+
bg: S()
|
|
1975
1975
|
}],
|
|
1976
1976
|
/**
|
|
1977
1977
|
* Gradient Color Stops From Position
|
|
@@ -1999,21 +1999,21 @@ const Tn = (e, r) => {
|
|
|
1999
1999
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2000
2000
|
*/
|
|
2001
2001
|
"gradient-from": [{
|
|
2002
|
-
from:
|
|
2002
|
+
from: S()
|
|
2003
2003
|
}],
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Gradient Color Stops Via
|
|
2006
2006
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2007
2007
|
*/
|
|
2008
2008
|
"gradient-via": [{
|
|
2009
|
-
via:
|
|
2009
|
+
via: S()
|
|
2010
2010
|
}],
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Gradient Color Stops To
|
|
2013
2013
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2014
2014
|
*/
|
|
2015
2015
|
"gradient-to": [{
|
|
2016
|
-
to:
|
|
2016
|
+
to: S()
|
|
2017
2017
|
}],
|
|
2018
2018
|
// ---------------
|
|
2019
2019
|
// --- Borders ---
|
|
@@ -2229,70 +2229,70 @@ const Tn = (e, r) => {
|
|
|
2229
2229
|
* @see https://tailwindcss.com/docs/border-color
|
|
2230
2230
|
*/
|
|
2231
2231
|
"border-color": [{
|
|
2232
|
-
border:
|
|
2232
|
+
border: S()
|
|
2233
2233
|
}],
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Border Color X
|
|
2236
2236
|
* @see https://tailwindcss.com/docs/border-color
|
|
2237
2237
|
*/
|
|
2238
2238
|
"border-color-x": [{
|
|
2239
|
-
"border-x":
|
|
2239
|
+
"border-x": S()
|
|
2240
2240
|
}],
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Border Color Y
|
|
2243
2243
|
* @see https://tailwindcss.com/docs/border-color
|
|
2244
2244
|
*/
|
|
2245
2245
|
"border-color-y": [{
|
|
2246
|
-
"border-y":
|
|
2246
|
+
"border-y": S()
|
|
2247
2247
|
}],
|
|
2248
2248
|
/**
|
|
2249
2249
|
* Border Color S
|
|
2250
2250
|
* @see https://tailwindcss.com/docs/border-color
|
|
2251
2251
|
*/
|
|
2252
2252
|
"border-color-s": [{
|
|
2253
|
-
"border-s":
|
|
2253
|
+
"border-s": S()
|
|
2254
2254
|
}],
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Border Color E
|
|
2257
2257
|
* @see https://tailwindcss.com/docs/border-color
|
|
2258
2258
|
*/
|
|
2259
2259
|
"border-color-e": [{
|
|
2260
|
-
"border-e":
|
|
2260
|
+
"border-e": S()
|
|
2261
2261
|
}],
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Border Color Top
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/border-color
|
|
2265
2265
|
*/
|
|
2266
2266
|
"border-color-t": [{
|
|
2267
|
-
"border-t":
|
|
2267
|
+
"border-t": S()
|
|
2268
2268
|
}],
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Border Color Right
|
|
2271
2271
|
* @see https://tailwindcss.com/docs/border-color
|
|
2272
2272
|
*/
|
|
2273
2273
|
"border-color-r": [{
|
|
2274
|
-
"border-r":
|
|
2274
|
+
"border-r": S()
|
|
2275
2275
|
}],
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Border Color Bottom
|
|
2278
2278
|
* @see https://tailwindcss.com/docs/border-color
|
|
2279
2279
|
*/
|
|
2280
2280
|
"border-color-b": [{
|
|
2281
|
-
"border-b":
|
|
2281
|
+
"border-b": S()
|
|
2282
2282
|
}],
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Border Color Left
|
|
2285
2285
|
* @see https://tailwindcss.com/docs/border-color
|
|
2286
2286
|
*/
|
|
2287
2287
|
"border-color-l": [{
|
|
2288
|
-
"border-l":
|
|
2288
|
+
"border-l": S()
|
|
2289
2289
|
}],
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Divide Color
|
|
2292
2292
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2293
2293
|
*/
|
|
2294
2294
|
"divide-color": [{
|
|
2295
|
-
divide:
|
|
2295
|
+
divide: S()
|
|
2296
2296
|
}],
|
|
2297
2297
|
/**
|
|
2298
2298
|
* Outline Style
|
|
@@ -2313,14 +2313,14 @@ const Tn = (e, r) => {
|
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2314
2314
|
*/
|
|
2315
2315
|
"outline-w": [{
|
|
2316
|
-
outline: ["", Y, Re,
|
|
2316
|
+
outline: ["", Y, Re, xe]
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Outline Color
|
|
2320
2320
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2321
2321
|
*/
|
|
2322
2322
|
"outline-color": [{
|
|
2323
|
-
outline:
|
|
2323
|
+
outline: S()
|
|
2324
2324
|
}],
|
|
2325
2325
|
// ---------------
|
|
2326
2326
|
// --- Effects ---
|
|
@@ -2344,7 +2344,7 @@ const Tn = (e, r) => {
|
|
|
2344
2344
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2345
2345
|
*/
|
|
2346
2346
|
"shadow-color": [{
|
|
2347
|
-
shadow:
|
|
2347
|
+
shadow: S()
|
|
2348
2348
|
}],
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Inset Box Shadow
|
|
@@ -2358,7 +2358,7 @@ const Tn = (e, r) => {
|
|
|
2358
2358
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2359
2359
|
*/
|
|
2360
2360
|
"inset-shadow-color": [{
|
|
2361
|
-
"inset-shadow":
|
|
2361
|
+
"inset-shadow": S()
|
|
2362
2362
|
}],
|
|
2363
2363
|
/**
|
|
2364
2364
|
* Ring Width
|
|
@@ -2379,7 +2379,7 @@ const Tn = (e, r) => {
|
|
|
2379
2379
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2380
2380
|
*/
|
|
2381
2381
|
"ring-color": [{
|
|
2382
|
-
ring:
|
|
2382
|
+
ring: S()
|
|
2383
2383
|
}],
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Ring Offset Width
|
|
@@ -2388,7 +2388,7 @@ const Tn = (e, r) => {
|
|
|
2388
2388
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2389
2389
|
*/
|
|
2390
2390
|
"ring-offset-w": [{
|
|
2391
|
-
"ring-offset": [Y,
|
|
2391
|
+
"ring-offset": [Y, xe]
|
|
2392
2392
|
}],
|
|
2393
2393
|
/**
|
|
2394
2394
|
* Ring Offset Color
|
|
@@ -2397,7 +2397,7 @@ const Tn = (e, r) => {
|
|
|
2397
2397
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2398
2398
|
*/
|
|
2399
2399
|
"ring-offset-color": [{
|
|
2400
|
-
"ring-offset":
|
|
2400
|
+
"ring-offset": S()
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Inset Ring Width
|
|
@@ -2411,7 +2411,7 @@ const Tn = (e, r) => {
|
|
|
2411
2411
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2412
2412
|
*/
|
|
2413
2413
|
"inset-ring-color": [{
|
|
2414
|
-
"inset-ring":
|
|
2414
|
+
"inset-ring": S()
|
|
2415
2415
|
}],
|
|
2416
2416
|
/**
|
|
2417
2417
|
* Text Shadow
|
|
@@ -2425,7 +2425,7 @@ const Tn = (e, r) => {
|
|
|
2425
2425
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2426
2426
|
*/
|
|
2427
2427
|
"text-shadow-color": [{
|
|
2428
|
-
"text-shadow":
|
|
2428
|
+
"text-shadow": S()
|
|
2429
2429
|
}],
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Opacity
|
|
@@ -2476,10 +2476,10 @@ const Tn = (e, r) => {
|
|
|
2476
2476
|
"mask-linear-to": F()
|
|
2477
2477
|
}],
|
|
2478
2478
|
"mask-image-linear-from-color": [{
|
|
2479
|
-
"mask-linear-from":
|
|
2479
|
+
"mask-linear-from": S()
|
|
2480
2480
|
}],
|
|
2481
2481
|
"mask-image-linear-to-color": [{
|
|
2482
|
-
"mask-linear-to":
|
|
2482
|
+
"mask-linear-to": S()
|
|
2483
2483
|
}],
|
|
2484
2484
|
"mask-image-t-from-pos": [{
|
|
2485
2485
|
"mask-t-from": F()
|
|
@@ -2488,10 +2488,10 @@ const Tn = (e, r) => {
|
|
|
2488
2488
|
"mask-t-to": F()
|
|
2489
2489
|
}],
|
|
2490
2490
|
"mask-image-t-from-color": [{
|
|
2491
|
-
"mask-t-from":
|
|
2491
|
+
"mask-t-from": S()
|
|
2492
2492
|
}],
|
|
2493
2493
|
"mask-image-t-to-color": [{
|
|
2494
|
-
"mask-t-to":
|
|
2494
|
+
"mask-t-to": S()
|
|
2495
2495
|
}],
|
|
2496
2496
|
"mask-image-r-from-pos": [{
|
|
2497
2497
|
"mask-r-from": F()
|
|
@@ -2500,10 +2500,10 @@ const Tn = (e, r) => {
|
|
|
2500
2500
|
"mask-r-to": F()
|
|
2501
2501
|
}],
|
|
2502
2502
|
"mask-image-r-from-color": [{
|
|
2503
|
-
"mask-r-from":
|
|
2503
|
+
"mask-r-from": S()
|
|
2504
2504
|
}],
|
|
2505
2505
|
"mask-image-r-to-color": [{
|
|
2506
|
-
"mask-r-to":
|
|
2506
|
+
"mask-r-to": S()
|
|
2507
2507
|
}],
|
|
2508
2508
|
"mask-image-b-from-pos": [{
|
|
2509
2509
|
"mask-b-from": F()
|
|
@@ -2512,10 +2512,10 @@ const Tn = (e, r) => {
|
|
|
2512
2512
|
"mask-b-to": F()
|
|
2513
2513
|
}],
|
|
2514
2514
|
"mask-image-b-from-color": [{
|
|
2515
|
-
"mask-b-from":
|
|
2515
|
+
"mask-b-from": S()
|
|
2516
2516
|
}],
|
|
2517
2517
|
"mask-image-b-to-color": [{
|
|
2518
|
-
"mask-b-to":
|
|
2518
|
+
"mask-b-to": S()
|
|
2519
2519
|
}],
|
|
2520
2520
|
"mask-image-l-from-pos": [{
|
|
2521
2521
|
"mask-l-from": F()
|
|
@@ -2524,10 +2524,10 @@ const Tn = (e, r) => {
|
|
|
2524
2524
|
"mask-l-to": F()
|
|
2525
2525
|
}],
|
|
2526
2526
|
"mask-image-l-from-color": [{
|
|
2527
|
-
"mask-l-from":
|
|
2527
|
+
"mask-l-from": S()
|
|
2528
2528
|
}],
|
|
2529
2529
|
"mask-image-l-to-color": [{
|
|
2530
|
-
"mask-l-to":
|
|
2530
|
+
"mask-l-to": S()
|
|
2531
2531
|
}],
|
|
2532
2532
|
"mask-image-x-from-pos": [{
|
|
2533
2533
|
"mask-x-from": F()
|
|
@@ -2536,10 +2536,10 @@ const Tn = (e, r) => {
|
|
|
2536
2536
|
"mask-x-to": F()
|
|
2537
2537
|
}],
|
|
2538
2538
|
"mask-image-x-from-color": [{
|
|
2539
|
-
"mask-x-from":
|
|
2539
|
+
"mask-x-from": S()
|
|
2540
2540
|
}],
|
|
2541
2541
|
"mask-image-x-to-color": [{
|
|
2542
|
-
"mask-x-to":
|
|
2542
|
+
"mask-x-to": S()
|
|
2543
2543
|
}],
|
|
2544
2544
|
"mask-image-y-from-pos": [{
|
|
2545
2545
|
"mask-y-from": F()
|
|
@@ -2548,10 +2548,10 @@ const Tn = (e, r) => {
|
|
|
2548
2548
|
"mask-y-to": F()
|
|
2549
2549
|
}],
|
|
2550
2550
|
"mask-image-y-from-color": [{
|
|
2551
|
-
"mask-y-from":
|
|
2551
|
+
"mask-y-from": S()
|
|
2552
2552
|
}],
|
|
2553
2553
|
"mask-image-y-to-color": [{
|
|
2554
|
-
"mask-y-to":
|
|
2554
|
+
"mask-y-to": S()
|
|
2555
2555
|
}],
|
|
2556
2556
|
"mask-image-radial": [{
|
|
2557
2557
|
"mask-radial": [D, N]
|
|
@@ -2563,10 +2563,10 @@ const Tn = (e, r) => {
|
|
|
2563
2563
|
"mask-radial-to": F()
|
|
2564
2564
|
}],
|
|
2565
2565
|
"mask-image-radial-from-color": [{
|
|
2566
|
-
"mask-radial-from":
|
|
2566
|
+
"mask-radial-from": S()
|
|
2567
2567
|
}],
|
|
2568
2568
|
"mask-image-radial-to-color": [{
|
|
2569
|
-
"mask-radial-to":
|
|
2569
|
+
"mask-radial-to": S()
|
|
2570
2570
|
}],
|
|
2571
2571
|
"mask-image-radial-shape": [{
|
|
2572
2572
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2590,10 +2590,10 @@ const Tn = (e, r) => {
|
|
|
2590
2590
|
"mask-conic-to": F()
|
|
2591
2591
|
}],
|
|
2592
2592
|
"mask-image-conic-from-color": [{
|
|
2593
|
-
"mask-conic-from":
|
|
2593
|
+
"mask-conic-from": S()
|
|
2594
2594
|
}],
|
|
2595
2595
|
"mask-image-conic-to-color": [{
|
|
2596
|
-
"mask-conic-to":
|
|
2596
|
+
"mask-conic-to": S()
|
|
2597
2597
|
}],
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Mask Mode
|
|
@@ -2700,7 +2700,7 @@ const Tn = (e, r) => {
|
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2701
2701
|
*/
|
|
2702
2702
|
"drop-shadow-color": [{
|
|
2703
|
-
"drop-shadow":
|
|
2703
|
+
"drop-shadow": S()
|
|
2704
2704
|
}],
|
|
2705
2705
|
/**
|
|
2706
2706
|
* Grayscale
|
|
@@ -3071,7 +3071,7 @@ const Tn = (e, r) => {
|
|
|
3071
3071
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3072
3072
|
*/
|
|
3073
3073
|
accent: [{
|
|
3074
|
-
accent:
|
|
3074
|
+
accent: S()
|
|
3075
3075
|
}],
|
|
3076
3076
|
/**
|
|
3077
3077
|
* Appearance
|
|
@@ -3085,7 +3085,7 @@ const Tn = (e, r) => {
|
|
|
3085
3085
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3086
3086
|
*/
|
|
3087
3087
|
"caret-color": [{
|
|
3088
|
-
caret:
|
|
3088
|
+
caret: S()
|
|
3089
3089
|
}],
|
|
3090
3090
|
/**
|
|
3091
3091
|
* Color Scheme
|
|
@@ -3331,21 +3331,21 @@ const Tn = (e, r) => {
|
|
|
3331
3331
|
* @see https://tailwindcss.com/docs/fill
|
|
3332
3332
|
*/
|
|
3333
3333
|
fill: [{
|
|
3334
|
-
fill: ["none", ...
|
|
3334
|
+
fill: ["none", ...S()]
|
|
3335
3335
|
}],
|
|
3336
3336
|
/**
|
|
3337
3337
|
* Stroke Width
|
|
3338
3338
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3339
3339
|
*/
|
|
3340
3340
|
"stroke-w": [{
|
|
3341
|
-
stroke: [Y, Re,
|
|
3341
|
+
stroke: [Y, Re, xe, at]
|
|
3342
3342
|
}],
|
|
3343
3343
|
/**
|
|
3344
3344
|
* Stroke
|
|
3345
3345
|
* @see https://tailwindcss.com/docs/stroke
|
|
3346
3346
|
*/
|
|
3347
3347
|
stroke: [{
|
|
3348
|
-
stroke: ["none", ...
|
|
3348
|
+
stroke: ["none", ...S()]
|
|
3349
3349
|
}],
|
|
3350
3350
|
// ---------------------
|
|
3351
3351
|
// --- Accessibility ---
|
|
@@ -3415,43 +3415,78 @@ const Tn = (e, r) => {
|
|
|
3415
3415
|
};
|
|
3416
3416
|
}, ci = /* @__PURE__ */ Fn(li);
|
|
3417
3417
|
function re(...e) {
|
|
3418
|
-
return ci(
|
|
3418
|
+
return ci(Sn(e));
|
|
3419
3419
|
}
|
|
3420
3420
|
const ze = {
|
|
3421
|
-
base: "outline-none px-4 py-
|
|
3421
|
+
base: "outline-none px-4 py-2 text-base leading-snug",
|
|
3422
3422
|
state: {
|
|
3423
3423
|
default: "cursor-pointer opacity-100",
|
|
3424
3424
|
disabled: "cursor-not-allowed opacity-50"
|
|
3425
3425
|
},
|
|
3426
|
-
|
|
3427
|
-
solid:
|
|
3426
|
+
color: {
|
|
3427
|
+
solid: {
|
|
3428
|
+
primary: "text-[var(--color-white)] bg-[var(--color-primary-500)] hover:bg-[var(--color-primary-600)] active:bg-[var(--color-primary-700)] border border-[var(--color-primary-500)] hover:border-[var(--color-primary-600)] active:border-[var(--color-primary-700)]",
|
|
3429
|
+
secondary: "text-white bg-violet-500 hover:bg-violet-600 active:bg-violet-700 border border-violet-500 hover:border-violet-600 active:border-violet-700",
|
|
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"
|
|
3434
|
+
},
|
|
3435
|
+
outline: {
|
|
3436
|
+
primary: "text-inherit bg-transparent border border-[var(--color-primary-500)] hover:border-[var(--color-primary-600)] active:border-[var(--color-primary-700)]",
|
|
3437
|
+
secondary: "text-inherit bg-transparent border border-violet-500 hover:border-violet-600 active:border-violet-700",
|
|
3438
|
+
info: "text-inherit bg-transparent border border-cyan-500 hover:border-cyan-600 active:border-cyan-700",
|
|
3439
|
+
success: "text-inherit bg-transparent border border-emerald-500 hover:border-emerald-600 active:border-emerald-700",
|
|
3440
|
+
warning: "text-inherit bg-transparent border border-amber-500 hover:border-amber-600 active:border-amber-700",
|
|
3441
|
+
danger: "text-inherit bg-transparent border border-rose-500 hover:border-rose-600 active:border-rose-700"
|
|
3442
|
+
},
|
|
3443
|
+
flat: {
|
|
3444
|
+
primary: "p-0 text-[var(--color-primary-500)] hover:text-[var(--color-primary-600)] active:text-[var(--color-primary-700)]",
|
|
3445
|
+
secondary: "p-0 text-violet-500 hover:text-violet-600 active:text-violet-700",
|
|
3446
|
+
info: "p-0 text-cyan-500 hover:text-cyan-600 active:text-cyan-700",
|
|
3447
|
+
success: "p-0 text-emerald-500 hover:text-emerald-600 active:text-emerald-700",
|
|
3448
|
+
warning: "p-0 text-amber-500 hover:text-amber-600 active:text-amber-700",
|
|
3449
|
+
danger: "p-0 text-rose-500 hover:text-rose-600 active:text-rose-700"
|
|
3450
|
+
}
|
|
3428
3451
|
},
|
|
3429
3452
|
corner: {
|
|
3430
|
-
squared: "rounded-none"
|
|
3453
|
+
squared: "rounded-none",
|
|
3454
|
+
"soft-edge": "rounded-md",
|
|
3455
|
+
rounded: "rounded-full"
|
|
3431
3456
|
}
|
|
3432
3457
|
}, di = ({
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3458
|
+
id: e = "",
|
|
3459
|
+
className: r = "",
|
|
3460
|
+
children: t,
|
|
3461
|
+
disabled: n = !1,
|
|
3462
|
+
loading: i = !1,
|
|
3463
|
+
loadingText: s = "",
|
|
3464
|
+
type: o = "button",
|
|
3465
|
+
color: l = "primary",
|
|
3466
|
+
variant: a = "solid",
|
|
3467
|
+
corner: c = "squared",
|
|
3468
|
+
...p
|
|
3439
3469
|
}) => {
|
|
3440
|
-
const
|
|
3470
|
+
const d = re(
|
|
3471
|
+
n || i ? ze.state.disabled : ze.state.default,
|
|
3441
3472
|
ze.base,
|
|
3442
|
-
|
|
3443
|
-
ze.
|
|
3444
|
-
|
|
3445
|
-
e
|
|
3473
|
+
ze.color[a][l],
|
|
3474
|
+
ze.corner[c],
|
|
3475
|
+
r
|
|
3446
3476
|
);
|
|
3447
|
-
return /* @__PURE__ */ G("button", { type:
|
|
3477
|
+
return /* @__PURE__ */ G("button", { id: e, type: o, disabled: n || i, className: d, ...p, children: i && s ? s : t });
|
|
3448
3478
|
};
|
|
3449
3479
|
di.propTypes = {
|
|
3480
|
+
id: P.string,
|
|
3450
3481
|
className: P.string,
|
|
3451
3482
|
children: P.node.isRequired,
|
|
3452
3483
|
disabled: P.bool,
|
|
3453
3484
|
loading: P.bool,
|
|
3454
|
-
|
|
3485
|
+
loadingText: P.string,
|
|
3486
|
+
type: P.oneOf(["button", "submit", "reset"]),
|
|
3487
|
+
color: P.oneOf(["primary", "secondary", "info", "success", "warning", "danger"]),
|
|
3488
|
+
variant: P.oneOf(["solid", "outline", "flat"]),
|
|
3489
|
+
corner: P.oneOf(["squared", "soft-edge", "rounded"])
|
|
3455
3490
|
};
|
|
3456
3491
|
const Pr = ye({
|
|
3457
3492
|
id: ""
|
|
@@ -4221,10 +4256,10 @@ function ae() {
|
|
|
4221
4256
|
const e = typeof window < "u" ? window : {};
|
|
4222
4257
|
return Bt(e, yi), e;
|
|
4223
4258
|
}
|
|
4224
|
-
function
|
|
4259
|
+
function xi(e = "") {
|
|
4225
4260
|
return e.trim().split(" ").filter((r) => !!r.trim());
|
|
4226
4261
|
}
|
|
4227
|
-
function
|
|
4262
|
+
function Si(e) {
|
|
4228
4263
|
const r = e;
|
|
4229
4264
|
Object.keys(r).forEach((t) => {
|
|
4230
4265
|
try {
|
|
@@ -4331,7 +4366,7 @@ function Ke(e) {
|
|
|
4331
4366
|
}
|
|
4332
4367
|
function Ne(e, r = []) {
|
|
4333
4368
|
const t = document.createElement(e);
|
|
4334
|
-
return t.classList.add(...Array.isArray(r) ? r :
|
|
4369
|
+
return t.classList.add(...Array.isArray(r) ? r : xi(r)), t;
|
|
4335
4370
|
}
|
|
4336
4371
|
function Pi(e, r) {
|
|
4337
4372
|
const t = [];
|
|
@@ -4452,10 +4487,10 @@ function Ai({
|
|
|
4452
4487
|
let f = d, g = T;
|
|
4453
4488
|
p.forEach(({
|
|
4454
4489
|
contentBoxSize: b,
|
|
4455
|
-
contentRect:
|
|
4490
|
+
contentRect: x,
|
|
4456
4491
|
target: u
|
|
4457
4492
|
}) => {
|
|
4458
|
-
u && u !== e.el || (f =
|
|
4493
|
+
u && u !== e.el || (f = x ? x.width : (b[0] || b).inlineSize, g = x ? x.height : (b[0] || b).blockSize);
|
|
4459
4494
|
}), (f !== d || g !== T) && o();
|
|
4460
4495
|
});
|
|
4461
4496
|
}), i.observe(e.el));
|
|
@@ -4598,7 +4633,7 @@ function Ni() {
|
|
|
4598
4633
|
typeof g == "function" && (g = t.slidesOffsetBefore.call(e));
|
|
4599
4634
|
let b = t.slidesOffsetAfter;
|
|
4600
4635
|
typeof b == "function" && (b = t.slidesOffsetAfter.call(e));
|
|
4601
|
-
const
|
|
4636
|
+
const x = e.snapGrid.length, u = e.slidesGrid.length, m = e.size - g - b;
|
|
4602
4637
|
let v = t.spaceBetween, w = -g, y = 0, A = 0;
|
|
4603
4638
|
if (typeof m > "u")
|
|
4604
4639
|
return;
|
|
@@ -4621,15 +4656,15 @@ function Ni() {
|
|
|
4621
4656
|
if (V && (k.style.transform = "none"), q && (k.style.webkitTransform = "none"), t.roundLengths)
|
|
4622
4657
|
h = e.isHorizontal() ? ht(k, "width") : ht(k, "height");
|
|
4623
4658
|
else {
|
|
4624
|
-
const Q = r(R, "width"), E = r(R, "padding-left"), M = r(R, "padding-right"),
|
|
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");
|
|
4625
4660
|
if (C && C === "border-box")
|
|
4626
|
-
h = Q +
|
|
4661
|
+
h = Q + S + B;
|
|
4627
4662
|
else {
|
|
4628
4663
|
const {
|
|
4629
4664
|
clientWidth: I,
|
|
4630
4665
|
offsetWidth: H
|
|
4631
4666
|
} = k;
|
|
4632
|
-
h = Q + E + M +
|
|
4667
|
+
h = Q + E + M + S + B + (H - I);
|
|
4633
4668
|
}
|
|
4634
4669
|
}
|
|
4635
4670
|
V && (k.style.transform = V), q && (k.style.webkitTransform = q), t.roundLengths && (h = Math.floor(h));
|
|
@@ -4695,7 +4730,7 @@ function Ni() {
|
|
|
4695
4730
|
const O = -e.snapGrid[0], k = -e.slidesGrid[0];
|
|
4696
4731
|
e.snapGrid = e.snapGrid.map((R) => R + O), e.slidesGrid = e.slidesGrid.map((R) => R + k);
|
|
4697
4732
|
}
|
|
4698
|
-
if (p !== a && e.emit("slidesLengthChange"), d.length !==
|
|
4733
|
+
if (p !== a && e.emit("slidesLengthChange"), d.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")) {
|
|
4699
4734
|
const O = `${t.containerModifierClass}backface-hidden`, k = e.el.classList.contains(O);
|
|
4700
4735
|
p <= t.maxBackfaceHiddenSlides ? k || e.el.classList.add(O) : k && e.el.classList.remove(O);
|
|
4701
4736
|
}
|
|
@@ -4749,8 +4784,8 @@ function $i(e = this && this.translate || 0) {
|
|
|
4749
4784
|
const c = n[a];
|
|
4750
4785
|
let p = c.swiperSlideOffset;
|
|
4751
4786
|
t.cssMode && t.centeredSlides && (p -= n[0].swiperSlideOffset);
|
|
4752
|
-
const d = (o + (t.centeredSlides ? r.minTranslate() : 0) - p) / (c.swiperSlideSize + l), T = (o - s[0] + (t.centeredSlides ? r.minTranslate() : 0) - p) / (c.swiperSlideSize + l), f = -(o - p), g = f + r.slidesSizesGrid[a], b = f >= 0 && f <= r.size - r.slidesSizesGrid[a],
|
|
4753
|
-
|
|
4787
|
+
const d = (o + (t.centeredSlides ? r.minTranslate() : 0) - p) / (c.swiperSlideSize + l), T = (o - s[0] + (t.centeredSlides ? r.minTranslate() : 0) - p) / (c.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(c), r.visibleSlidesIndexes.push(a)), ir(c, x, t.slideVisibleClass), ir(c, b, t.slideFullyVisibleClass), c.progress = i ? -d : d, c.originalProgress = i ? -T : T;
|
|
4754
4789
|
}
|
|
4755
4790
|
}
|
|
4756
4791
|
function Gi(e) {
|
|
@@ -5074,9 +5109,9 @@ function rs(e = 0, r, t = !0, n, i) {
|
|
|
5074
5109
|
return !1;
|
|
5075
5110
|
typeof r > "u" && (r = s.params.speed);
|
|
5076
5111
|
const b = Math.min(s.params.slidesPerGroupSkip, o);
|
|
5077
|
-
let
|
|
5078
|
-
|
|
5079
|
-
const u = -a[
|
|
5112
|
+
let x = b + Math.floor((o - b) / s.params.slidesPerGroup);
|
|
5113
|
+
x >= a.length && (x = a.length - 1);
|
|
5114
|
+
const u = -a[x];
|
|
5080
5115
|
if (l.normalizeSlideIndex)
|
|
5081
5116
|
for (let L = 0; L < c.length; L += 1) {
|
|
5082
5117
|
const h = -Math.floor(u * 100), _ = Math.floor(c[L] * 100), O = Math.floor(c[L + 1] * 100);
|
|
@@ -5131,7 +5166,7 @@ function ns(e = 0, r, t = !0, n) {
|
|
|
5131
5166
|
let l;
|
|
5132
5167
|
if (s) {
|
|
5133
5168
|
const b = o * i.params.grid.rows;
|
|
5134
|
-
l = i.slides.find((
|
|
5169
|
+
l = i.slides.find((x) => x.getAttribute("data-swiper-slide-index") * 1 === b).column;
|
|
5135
5170
|
} else
|
|
5136
5171
|
l = i.getSlideIndexByData(o);
|
|
5137
5172
|
const a = s ? Math.ceil(i.slides.length / i.params.grid.rows) : i.slides.length, {
|
|
@@ -5153,7 +5188,7 @@ function ns(e = 0, r, t = !0, n) {
|
|
|
5153
5188
|
}
|
|
5154
5189
|
if (s) {
|
|
5155
5190
|
const b = o * i.params.grid.rows;
|
|
5156
|
-
o = i.slides.find((
|
|
5191
|
+
o = i.slides.find((x) => x.getAttribute("data-swiper-slide-index") * 1 === b).column;
|
|
5157
5192
|
} else
|
|
5158
5193
|
o = i.getSlideIndexByData(o);
|
|
5159
5194
|
}
|
|
@@ -5206,15 +5241,15 @@ function ss(e, r = !0, t) {
|
|
|
5206
5241
|
return m < 0 ? -Math.floor(Math.abs(m)) : Math.floor(m);
|
|
5207
5242
|
}
|
|
5208
5243
|
const f = T(d), g = s.map((m) => T(m)), b = i.freeMode && i.freeMode.enabled;
|
|
5209
|
-
let
|
|
5210
|
-
if (typeof
|
|
5244
|
+
let x = s[g.indexOf(f) - 1];
|
|
5245
|
+
if (typeof x > "u" && (i.cssMode || b)) {
|
|
5211
5246
|
let m;
|
|
5212
5247
|
s.forEach((v, w) => {
|
|
5213
5248
|
f >= v && (m = w);
|
|
5214
|
-
}), typeof m < "u" && (
|
|
5249
|
+
}), typeof m < "u" && (x = b ? s[m] : s[m > 0 ? m - 1 : m]);
|
|
5215
5250
|
}
|
|
5216
5251
|
let u = 0;
|
|
5217
|
-
if (typeof
|
|
5252
|
+
if (typeof x < "u" && (u = o.indexOf(x), u < 0 && (u = n.activeIndex - 1), i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (u = u - n.slidesPerViewDynamic("previous", !0) + 1, u = Math.max(u, 0))), i.rewind && n.isBeginning) {
|
|
5218
5253
|
const m = n.params.virtual && n.params.virtual.enabled && n.virtual ? n.virtual.slides.length - 1 : n.slides.length - 1;
|
|
5219
5254
|
return n.slideTo(m, e, r, t);
|
|
5220
5255
|
} else if (i.loop && n.activeIndex === 0 && i.cssMode)
|
|
@@ -5337,9 +5372,9 @@ function us({
|
|
|
5337
5372
|
} = a, {
|
|
5338
5373
|
centeredSlides: g,
|
|
5339
5374
|
slidesOffsetBefore: b,
|
|
5340
|
-
slidesOffsetAfter:
|
|
5375
|
+
slidesOffsetAfter: x,
|
|
5341
5376
|
initialSlide: u
|
|
5342
|
-
} = f, m = g || !!b || !!
|
|
5377
|
+
} = f, m = g || !!b || !!x;
|
|
5343
5378
|
if (a.allowSlidePrev = !0, a.allowSlideNext = !0, a.virtual && f.virtual.enabled) {
|
|
5344
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 = d, a.emit("loopFix");
|
|
5345
5380
|
return;
|
|
@@ -5353,14 +5388,14 @@ function us({
|
|
|
5353
5388
|
c.length < v + y || a.params.effect === "cards" && c.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`");
|
|
5354
5389
|
const L = [], h = [], _ = A ? Math.ceil(c.length / f.grid.rows) : c.length, O = s && _ - u < v && !m;
|
|
5355
5390
|
let k = O ? u : a.activeIndex;
|
|
5356
|
-
typeof i > "u" ? i = a.getSlideIndex(c.find((
|
|
5391
|
+
typeof i > "u" ? i = a.getSlideIndex(c.find((S) => S.classList.contains(f.slideActiveClass))) : k = i;
|
|
5357
5392
|
const R = t === "next" || !t, V = t === "prev" || !t;
|
|
5358
5393
|
let q = 0, Q = 0;
|
|
5359
5394
|
const M = (A ? c[i].column : i) + (m && typeof n > "u" ? -v / 2 + 0.5 : 0);
|
|
5360
5395
|
if (M < y) {
|
|
5361
5396
|
q = Math.max(y - M, w);
|
|
5362
|
-
for (let
|
|
5363
|
-
const B =
|
|
5397
|
+
for (let S = 0; S < y - M; S += 1) {
|
|
5398
|
+
const B = S - Math.floor(S / _) * _;
|
|
5364
5399
|
if (A) {
|
|
5365
5400
|
const C = _ - B - 1;
|
|
5366
5401
|
for (let I = c.length - 1; I >= 0; I -= 1)
|
|
@@ -5370,8 +5405,8 @@ function us({
|
|
|
5370
5405
|
}
|
|
5371
5406
|
} else if (M + v > _ - y) {
|
|
5372
5407
|
Q = Math.max(M - (_ - y * 2), w), O && (Q = Math.max(Q, v - _ + u + 1));
|
|
5373
|
-
for (let
|
|
5374
|
-
const B =
|
|
5408
|
+
for (let S = 0; S < Q; S += 1) {
|
|
5409
|
+
const B = S - Math.floor(S / _) * _;
|
|
5375
5410
|
A ? c.forEach((C, I) => {
|
|
5376
5411
|
C.column === B && h.push(I);
|
|
5377
5412
|
}) : h.push(B);
|
|
@@ -5379,32 +5414,32 @@ function us({
|
|
|
5379
5414
|
}
|
|
5380
5415
|
if (a.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
5381
5416
|
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)), V && L.forEach((
|
|
5383
|
-
c[
|
|
5384
|
-
}), R && h.forEach((
|
|
5385
|
-
c[
|
|
5386
|
-
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 && V || h.length > 0 && R) && a.slides.forEach((
|
|
5387
|
-
a.grid.updateSlide(B,
|
|
5417
|
+
}), 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((S) => {
|
|
5418
|
+
c[S].swiperLoopMoveDOM = !0, T.prepend(c[S]), c[S].swiperLoopMoveDOM = !1;
|
|
5419
|
+
}), R && h.forEach((S) => {
|
|
5420
|
+
c[S].swiperLoopMoveDOM = !0, T.append(c[S]), c[S].swiperLoopMoveDOM = !1;
|
|
5421
|
+
}), a.recalcSlides(), f.slidesPerView === "auto" ? a.updateSlides() : A && (L.length > 0 && V || h.length > 0 && R) && a.slides.forEach((S, B) => {
|
|
5422
|
+
a.grid.updateSlide(B, S, a.slides);
|
|
5388
5423
|
}), f.watchSlidesProgress && a.updateSlidesOffset(), r) {
|
|
5389
5424
|
if (L.length > 0 && V) {
|
|
5390
5425
|
if (typeof e > "u") {
|
|
5391
|
-
const
|
|
5426
|
+
const S = a.slidesGrid[k], C = a.slidesGrid[k + q] - S;
|
|
5392
5427
|
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
5428
|
} else if (n) {
|
|
5394
|
-
const
|
|
5395
|
-
a.slideTo(a.activeIndex +
|
|
5429
|
+
const S = A ? L.length / f.grid.rows : L.length;
|
|
5430
|
+
a.slideTo(a.activeIndex + S, 0, !1, !0), a.touchEventsData.currentTranslate = a.translate;
|
|
5396
5431
|
}
|
|
5397
5432
|
} else if (h.length > 0 && R)
|
|
5398
5433
|
if (typeof e > "u") {
|
|
5399
|
-
const
|
|
5434
|
+
const S = a.slidesGrid[k], C = a.slidesGrid[k - Q] - S;
|
|
5400
5435
|
l ? a.setTranslate(a.translate - C) : (a.slideTo(k - Q, 0, !1, !0), n && (a.touchEventsData.startTranslate = a.touchEventsData.startTranslate - C, a.touchEventsData.currentTranslate = a.touchEventsData.currentTranslate - C));
|
|
5401
5436
|
} else {
|
|
5402
|
-
const
|
|
5403
|
-
a.slideTo(a.activeIndex -
|
|
5437
|
+
const S = A ? h.length / f.grid.rows : h.length;
|
|
5438
|
+
a.slideTo(a.activeIndex - S, 0, !1, !0);
|
|
5404
5439
|
}
|
|
5405
5440
|
}
|
|
5406
5441
|
if (a.allowSlidePrev = p, a.allowSlideNext = d, a.controller && a.controller.control && !o) {
|
|
5407
|
-
const
|
|
5442
|
+
const S = {
|
|
5408
5443
|
slideRealIndex: e,
|
|
5409
5444
|
direction: t,
|
|
5410
5445
|
setTranslate: n,
|
|
@@ -5413,11 +5448,11 @@ function us({
|
|
|
5413
5448
|
};
|
|
5414
5449
|
Array.isArray(a.controller.control) ? a.controller.control.forEach((B) => {
|
|
5415
5450
|
!B.destroyed && B.params.loop && B.loopFix({
|
|
5416
|
-
...
|
|
5451
|
+
...S,
|
|
5417
5452
|
slideTo: B.params.slidesPerView === f.slidesPerView ? r : !1
|
|
5418
5453
|
});
|
|
5419
5454
|
}) : a.controller.control instanceof a.constructor && a.controller.control.params.loop && a.controller.control.loopFix({
|
|
5420
|
-
...
|
|
5455
|
+
...S,
|
|
5421
5456
|
slideTo: a.controller.control.params.slidesPerView === f.slidesPerView ? r : !1
|
|
5422
5457
|
});
|
|
5423
5458
|
}
|
|
@@ -5524,8 +5559,8 @@ function bs(e) {
|
|
|
5524
5559
|
}), o.startX = f, o.startY = g, i.touchStartTime = Ue(), r.allowClick = !0, r.updateSize(), r.swipeDirection = void 0, s.threshold > 0 && (i.allowThresholdMove = !1);
|
|
5525
5560
|
let b = !0;
|
|
5526
5561
|
a.matches(i.focusableElements) && (b = !1, a.nodeName === "SELECT" && (i.isTouched = !1)), t.activeElement && t.activeElement.matches(i.focusableElements) && t.activeElement !== a && (n.pointerType === "mouse" || n.pointerType !== "mouse" && !a.matches(i.focusableElements)) && t.activeElement.blur();
|
|
5527
|
-
const
|
|
5528
|
-
(s.touchStartForcePreventDefault ||
|
|
5562
|
+
const x = b && r.allowTouchMove && s.touchStartPreventDefault;
|
|
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);
|
|
5529
5564
|
}
|
|
5530
5565
|
function ys(e) {
|
|
5531
5566
|
const r = de(), t = this, n = t.touchEventsData, {
|
|
@@ -5593,7 +5628,7 @@ function ys(e) {
|
|
|
5593
5628
|
t.allowClick = !1, !i.cssMode && a.cancelable && a.preventDefault(), i.touchMoveStopPropagation && !i.nested && a.stopPropagation();
|
|
5594
5629
|
let g = t.isHorizontal() ? T : f, b = t.isHorizontal() ? s.currentX - s.previousX : s.currentY - s.previousY;
|
|
5595
5630
|
i.oneWayMovement && (g = Math.abs(g) * (o ? 1 : -1), b = Math.abs(b) * (o ? 1 : -1)), s.diff = g, g *= i.touchRatio, o && (g = -g, b = -b);
|
|
5596
|
-
const
|
|
5631
|
+
const x = t.touchesDirection;
|
|
5597
5632
|
t.swipeDirection = g > 0 ? "prev" : "next", t.touchesDirection = b > 0 ? "prev" : "next";
|
|
5598
5633
|
const u = t.params.loop && !i.cssMode, m = t.touchesDirection === "next" && t.allowSlideNext || t.touchesDirection === "prev" && t.allowSlidePrev;
|
|
5599
5634
|
if (!n.isMoved) {
|
|
@@ -5611,7 +5646,7 @@ function ys(e) {
|
|
|
5611
5646
|
}
|
|
5612
5647
|
n.allowMomentumBounce = !1, i.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", a);
|
|
5613
5648
|
}
|
|
5614
|
-
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove &&
|
|
5649
|
+
if ((/* @__PURE__ */ new Date()).getTime(), i._loopSwapReset !== !1 && n.isMoved && n.allowThresholdMove && x !== t.touchesDirection && u && m && Math.abs(g) >= 1) {
|
|
5615
5650
|
Object.assign(s, {
|
|
5616
5651
|
startX: p,
|
|
5617
5652
|
startY: d,
|
|
@@ -5643,7 +5678,7 @@ function ys(e) {
|
|
|
5643
5678
|
}
|
|
5644
5679
|
!i.followFinger || i.cssMode || ((i.freeMode && i.freeMode.enabled && t.freeMode || i.watchSlidesProgress) && (t.updateActiveIndex(), t.updateSlidesClasses()), i.freeMode && i.freeMode.enabled && t.freeMode && t.freeMode.onTouchMove(), t.updateProgress(n.currentTranslate), t.setTranslate(n.currentTranslate));
|
|
5645
5680
|
}
|
|
5646
|
-
function
|
|
5681
|
+
function xs(e) {
|
|
5647
5682
|
const r = this, t = r.touchEventsData;
|
|
5648
5683
|
let n = e;
|
|
5649
5684
|
n.originalEvent && (n = n.originalEvent);
|
|
@@ -5692,14 +5727,14 @@ function Ss(e) {
|
|
|
5692
5727
|
return;
|
|
5693
5728
|
}
|
|
5694
5729
|
const g = f >= -r.maxTranslate() && !r.params.loop;
|
|
5695
|
-
let b = 0,
|
|
5730
|
+
let b = 0, x = r.slidesSizesGrid[0];
|
|
5696
5731
|
for (let y = 0; y < c.length; y += y < o.slidesPerGroupSkip ? 1 : o.slidesPerGroup) {
|
|
5697
5732
|
const A = y < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
5698
|
-
typeof c[y + A] < "u" ? (g || f >= c[y] && f < c[y + A]) && (b = y,
|
|
5733
|
+
typeof c[y + A] < "u" ? (g || f >= c[y] && f < c[y + A]) && (b = y, x = c[y + A] - c[y]) : (g || f >= c[y]) && (b = y, x = c[c.length - 1] - c[c.length - 2]);
|
|
5699
5734
|
}
|
|
5700
5735
|
let u = null, m = null;
|
|
5701
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));
|
|
5702
|
-
const v = (f - c[b]) /
|
|
5737
|
+
const v = (f - c[b]) / x, w = b < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
5703
5738
|
if (T > o.longSwipesMs) {
|
|
5704
5739
|
if (!o.longSwipes) {
|
|
5705
5740
|
r.slideTo(r.activeIndex);
|
|
@@ -5732,7 +5767,7 @@ function ar() {
|
|
|
5732
5767
|
e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
|
|
5733
5768
|
}, 500)), e.allowSlidePrev = i, e.allowSlideNext = n, e.params.watchOverflow && s !== e.snapGrid && e.checkOverflow();
|
|
5734
5769
|
}
|
|
5735
|
-
function
|
|
5770
|
+
function Ss(e) {
|
|
5736
5771
|
const r = this;
|
|
5737
5772
|
r.enabled && (r.allowClick || (r.params.preventClicks && e.preventDefault(), r.params.preventClicksPropagation && r.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
|
|
5738
5773
|
}
|
|
@@ -5798,7 +5833,7 @@ function Cs() {
|
|
|
5798
5833
|
const e = this, {
|
|
5799
5834
|
params: r
|
|
5800
5835
|
} = e;
|
|
5801
|
-
e.onTouchStart = bs.bind(e), e.onTouchMove = ys.bind(e), e.onTouchEnd =
|
|
5836
|
+
e.onTouchStart = bs.bind(e), e.onTouchMove = ys.bind(e), e.onTouchEnd = xs.bind(e), e.onDocumentTouchStart = ws.bind(e), r.cssMode && (e.onScroll = Ts.bind(e)), e.onClick = Ss.bind(e), e.onLoad = Es.bind(e), Zr(e, "on");
|
|
5802
5837
|
}
|
|
5803
5838
|
function Ms() {
|
|
5804
5839
|
Zr(this, "off");
|
|
@@ -5818,7 +5853,7 @@ function Os() {
|
|
|
5818
5853
|
if (!s || s && Object.keys(s).length === 0) return;
|
|
5819
5854
|
const o = de(), l = n.breakpointsBase === "window" || !n.breakpointsBase ? n.breakpointsBase : "container", a = ["window", "container"].includes(n.breakpointsBase) || !n.breakpointsBase ? e.el : o.querySelector(n.breakpointsBase), c = e.getBreakpoint(s, l, a);
|
|
5820
5855
|
if (!c || e.currentBreakpoint === c) return;
|
|
5821
|
-
const d = (c in s ? s[c] : void 0) || e.originalParams, T = or(e, n), f = or(e, d), g = e.params.grabCursor, b = d.grabCursor,
|
|
5856
|
+
const d = (c in s ? s[c] : void 0) || e.originalParams, T = or(e, n), f = or(e, d), g = e.params.grabCursor, b = d.grabCursor, x = n.enabled;
|
|
5822
5857
|
T && !f ? (i.classList.remove(`${n.containerModifierClass}grid`, `${n.containerModifierClass}grid-column`), e.emitContainerClasses()) : !T && f && (i.classList.add(`${n.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.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) => {
|
|
5823
5858
|
if (typeof d[A] > "u") return;
|
|
5824
5859
|
const L = n[A] && n[A].enabled, h = d[A] && d[A].enabled;
|
|
@@ -5831,7 +5866,7 @@ function Os() {
|
|
|
5831
5866
|
allowTouchMove: e.params.allowTouchMove,
|
|
5832
5867
|
allowSlideNext: e.params.allowSlideNext,
|
|
5833
5868
|
allowSlidePrev: e.params.allowSlidePrev
|
|
5834
|
-
}),
|
|
5869
|
+
}), x && !w ? e.disable() : !x && w && e.enable(), e.currentBreakpoint = c, e.emit("_beforeBreakpoint", d), t && (m ? (e.loopDestroy(), e.loopCreate(r), e.updateSlides()) : !v && y ? (e.loopCreate(r), e.updateSlides()) : v && !y && e.loopDestroy()), e.emit("breakpoint", d);
|
|
5835
5870
|
}
|
|
5836
5871
|
function ks(e, r = "window", t) {
|
|
5837
5872
|
if (!e || r === "container" && !t) return;
|
|
@@ -6361,7 +6396,7 @@ let $t = class me {
|
|
|
6361
6396
|
a.classList.remove(i.slideVisibleClass, i.slideFullyVisibleClass, i.slideActiveClass, i.slideNextClass, i.slidePrevClass), a.removeAttribute("style"), a.removeAttribute("data-swiper-slide-index");
|
|
6362
6397
|
})), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((a) => {
|
|
6363
6398
|
n.off(a);
|
|
6364
|
-
}), r !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null),
|
|
6399
|
+
}), r !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null), Si(n)), n.destroyed = !0), null;
|
|
6365
6400
|
}
|
|
6366
6401
|
static extendDefaults(r) {
|
|
6367
6402
|
le(pt, r);
|
|
@@ -6506,13 +6541,13 @@ const Qr = [
|
|
|
6506
6541
|
"zoom",
|
|
6507
6542
|
"control"
|
|
6508
6543
|
];
|
|
6509
|
-
function
|
|
6544
|
+
function Se(e) {
|
|
6510
6545
|
return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object" && !e.__swiper__;
|
|
6511
6546
|
}
|
|
6512
6547
|
function Me(e, r) {
|
|
6513
6548
|
const t = ["__proto__", "constructor", "prototype"];
|
|
6514
6549
|
Object.keys(r).filter((n) => t.indexOf(n) < 0).forEach((n) => {
|
|
6515
|
-
typeof e[n] > "u" ? e[n] = r[n] :
|
|
6550
|
+
typeof e[n] > "u" ? e[n] = r[n] : Se(r[n]) && Se(e[n]) && Object.keys(r[n]).length > 0 ? r[n].__swiper__ ? e[n] = r[n] : Me(e[n], r[n]) : e[n] = r[n];
|
|
6516
6551
|
});
|
|
6517
6552
|
}
|
|
6518
6553
|
function en(e = {}) {
|
|
@@ -6551,19 +6586,19 @@ function $s({
|
|
|
6551
6586
|
virtual: f,
|
|
6552
6587
|
thumbs: g
|
|
6553
6588
|
} = e;
|
|
6554
|
-
let b,
|
|
6555
|
-
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (b = !0), n.includes("controller") && t.controller && t.controller.control && c.controller && !c.controller.control && (
|
|
6589
|
+
let b, x, u, m, v, w, y, A;
|
|
6590
|
+
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (b = !0), n.includes("controller") && t.controller && t.controller.control && c.controller && !c.controller.control && (x = !0), n.includes("pagination") && t.pagination && (t.pagination.el || l) && (c.pagination || c.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || o) && (c.scrollbar || c.scrollbar === !1) && T && !T.el && (m = !0), n.includes("navigation") && t.navigation && (t.navigation.prevEl || s) && (t.navigation.nextEl || i) && (c.navigation || c.navigation === !1) && d && !d.prevEl && !d.nextEl && (v = !0);
|
|
6556
6591
|
const L = (h) => {
|
|
6557
6592
|
e[h] && (e[h].destroy(), h === "navigation" ? (e.isElement && (e[h].prevEl.remove(), e[h].nextEl.remove()), c[h].prevEl = void 0, c[h].nextEl = void 0, e[h].prevEl = void 0, e[h].nextEl = void 0) : (e.isElement && e[h].el.remove(), c[h].el = void 0, e[h].el = void 0));
|
|
6558
6593
|
};
|
|
6559
6594
|
n.includes("loop") && e.isElement && (c.loop && !t.loop ? w = !0 : !c.loop && t.loop ? y = !0 : A = !0), a.forEach((h) => {
|
|
6560
|
-
if (
|
|
6595
|
+
if (Se(c[h]) && Se(t[h]))
|
|
6561
6596
|
Object.assign(c[h], t[h]), (h === "navigation" || h === "pagination" || h === "scrollbar") && "enabled" in t[h] && !t[h].enabled && L(h);
|
|
6562
6597
|
else {
|
|
6563
6598
|
const _ = t[h];
|
|
6564
6599
|
(_ === !0 || _ === !1) && (h === "navigation" || h === "pagination" || h === "scrollbar") ? _ === !1 && L(h) : c[h] = t[h];
|
|
6565
6600
|
}
|
|
6566
|
-
}), a.includes("controller") && !
|
|
6601
|
+
}), a.includes("controller") && !x && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), n.includes("children") && r && f && c.virtual.enabled ? (f.slides = r, f.update(!0)) : n.includes("virtual") && f && c.virtual.enabled && (r && (f.slides = r), f.update(!0)), n.includes("children") && r && c.loop && (A = !0), b && g.init() && g.update(!0), x && (e.controller.control = c.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 && (c.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 && (c.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 && (c.navigation.nextEl = i), s && (c.navigation.prevEl = s), d.init(), d.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();
|
|
6567
6602
|
}
|
|
6568
6603
|
function Gs(e = {}, r = !0) {
|
|
6569
6604
|
const t = {
|
|
@@ -6572,7 +6607,7 @@ function Gs(e = {}, r = !0) {
|
|
|
6572
6607
|
Me(t, bt), t._emitClasses = !0, t.init = !1;
|
|
6573
6608
|
const s = {}, o = Qr.map((a) => a.replace(/_/, "")), l = Object.assign({}, e);
|
|
6574
6609
|
return Object.keys(l).forEach((a) => {
|
|
6575
|
-
typeof e[a] > "u" || (o.indexOf(a) >= 0 ?
|
|
6610
|
+
typeof e[a] > "u" || (o.indexOf(a) >= 0 ? Se(e[a]) ? (t[a] = {}, i[a] = {}, Me(t[a], e[a]), Me(i[a], e[a])) : (t[a] = e[a], i[a] = e[a]) : a.search(/on[A-Z]/) === 0 && typeof e[a] == "function" ? r ? n[`${a[2].toLowerCase()}${a.substr(3)}`] = e[a] : t.on[`${a[2].toLowerCase()}${a.substr(3)}`] = e[a] : s[a] = e[a]);
|
|
6576
6611
|
}), ["navigation", "pagination", "scrollbar"].forEach((a) => {
|
|
6577
6612
|
t[a] === !0 && (t[a] = {}), t[a] === !1 && delete t[a];
|
|
6578
6613
|
}), {
|
|
@@ -6604,7 +6639,7 @@ function Fs(e, r, t, n, i) {
|
|
|
6604
6639
|
}
|
|
6605
6640
|
return Qr.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
6606
6641
|
if (a in e && a in r)
|
|
6607
|
-
if (
|
|
6642
|
+
if (Se(e[a]) && Se(r[a])) {
|
|
6608
6643
|
const c = Object.keys(e[a]), p = Object.keys(r[a]);
|
|
6609
6644
|
c.length !== p.length ? o(a) : (c.forEach((d) => {
|
|
6610
6645
|
e[a][d] !== r[a][d] && o(a);
|
|
@@ -6691,7 +6726,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6691
6726
|
...s
|
|
6692
6727
|
} = {}, o) => {
|
|
6693
6728
|
let l = !1;
|
|
6694
|
-
const [a, c] = be("swiper"), [p, d] = be(null), [T, f] = be(!1), g = oe(!1), b = oe(null),
|
|
6729
|
+
const [a, c] = be("swiper"), [p, d] = 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), {
|
|
6695
6730
|
params: L,
|
|
6696
6731
|
passedParams: h,
|
|
6697
6732
|
rest: _,
|
|
@@ -6703,60 +6738,60 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6703
6738
|
f(!T);
|
|
6704
6739
|
};
|
|
6705
6740
|
Object.assign(L.on, {
|
|
6706
|
-
_containerClasses(
|
|
6741
|
+
_containerClasses(S, B) {
|
|
6707
6742
|
c(B);
|
|
6708
6743
|
}
|
|
6709
6744
|
});
|
|
6710
6745
|
const q = () => {
|
|
6711
6746
|
Object.assign(L.on, O), l = !0;
|
|
6712
|
-
const
|
|
6747
|
+
const S = {
|
|
6713
6748
|
...L
|
|
6714
6749
|
};
|
|
6715
|
-
if (delete
|
|
6716
|
-
|
|
6750
|
+
if (delete S.wrapperClass, x.current = new $t(S), x.current.virtual && x.current.params.virtual.enabled) {
|
|
6751
|
+
x.current.virtual.slides = k;
|
|
6717
6752
|
const B = {
|
|
6718
6753
|
cache: !1,
|
|
6719
6754
|
slides: k,
|
|
6720
6755
|
renderExternal: d,
|
|
6721
6756
|
renderExternalUpdate: !1
|
|
6722
6757
|
};
|
|
6723
|
-
Me(
|
|
6758
|
+
Me(x.current.params.virtual, B), Me(x.current.originalParams.virtual, B);
|
|
6724
6759
|
}
|
|
6725
6760
|
};
|
|
6726
|
-
b.current || q(),
|
|
6761
|
+
b.current || q(), x.current && x.current.on("_beforeBreakpoint", V);
|
|
6727
6762
|
const Q = () => {
|
|
6728
|
-
l || !O || !
|
|
6729
|
-
|
|
6763
|
+
l || !O || !x.current || Object.keys(O).forEach((S) => {
|
|
6764
|
+
x.current.on(S, O[S]);
|
|
6730
6765
|
});
|
|
6731
6766
|
}, E = () => {
|
|
6732
|
-
!O || !
|
|
6733
|
-
|
|
6767
|
+
!O || !x.current || Object.keys(O).forEach((S) => {
|
|
6768
|
+
x.current.off(S, O[S]);
|
|
6734
6769
|
});
|
|
6735
6770
|
};
|
|
6736
6771
|
mt(() => () => {
|
|
6737
|
-
|
|
6772
|
+
x.current && x.current.off("_beforeBreakpoint", V);
|
|
6738
6773
|
}), mt(() => {
|
|
6739
|
-
!g.current &&
|
|
6774
|
+
!g.current && x.current && (x.current.emitSlidesClasses(), g.current = !0);
|
|
6740
6775
|
}), _e(() => {
|
|
6741
6776
|
if (o && (o.current = b.current), !!b.current)
|
|
6742
|
-
return
|
|
6777
|
+
return x.current.destroyed && q(), js({
|
|
6743
6778
|
el: b.current,
|
|
6744
6779
|
nextEl: v.current,
|
|
6745
6780
|
prevEl: w.current,
|
|
6746
6781
|
paginationEl: y.current,
|
|
6747
6782
|
scrollbarEl: A.current,
|
|
6748
|
-
swiper:
|
|
6749
|
-
}, L), i && !
|
|
6750
|
-
|
|
6783
|
+
swiper: x.current
|
|
6784
|
+
}, L), i && !x.current.destroyed && i(x.current), () => {
|
|
6785
|
+
x.current && !x.current.destroyed && x.current.destroy(!0, !1);
|
|
6751
6786
|
};
|
|
6752
6787
|
}, []), _e(() => {
|
|
6753
6788
|
Q();
|
|
6754
|
-
const
|
|
6755
|
-
return u.current = h, m.current = k,
|
|
6756
|
-
swiper:
|
|
6789
|
+
const S = Fs(h, u.current, k, m.current, (B) => B.key);
|
|
6790
|
+
return u.current = h, m.current = k, S.length && x.current && !x.current.destroyed && $s({
|
|
6791
|
+
swiper: x.current,
|
|
6757
6792
|
slides: k,
|
|
6758
6793
|
passedParams: h,
|
|
6759
|
-
changedParams:
|
|
6794
|
+
changedParams: S,
|
|
6760
6795
|
nextEl: v.current,
|
|
6761
6796
|
prevEl: w.current,
|
|
6762
6797
|
scrollbarEl: A.current,
|
|
@@ -6765,11 +6800,11 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6765
6800
|
E();
|
|
6766
6801
|
};
|
|
6767
6802
|
}), _e(() => {
|
|
6768
|
-
Vs(
|
|
6803
|
+
Vs(x.current);
|
|
6769
6804
|
}, [p]);
|
|
6770
6805
|
function M() {
|
|
6771
|
-
return L.virtual ? Hs(
|
|
6772
|
-
swiper:
|
|
6806
|
+
return L.virtual ? Hs(x.current, k, p) : k.map((S, B) => /* @__PURE__ */ ie.cloneElement(S, {
|
|
6807
|
+
swiper: x.current,
|
|
6773
6808
|
swiperSlideIndex: B
|
|
6774
6809
|
}));
|
|
6775
6810
|
}
|
|
@@ -6777,7 +6812,7 @@ const lr = /* @__PURE__ */ ye(null), Ws = /* @__PURE__ */ ye(null), on = /* @__P
|
|
|
6777
6812
|
ref: b,
|
|
6778
6813
|
className: nn(`${a}${e ? ` ${e}` : ""}`)
|
|
6779
6814
|
}, _), /* @__PURE__ */ ie.createElement(Ws.Provider, {
|
|
6780
|
-
value:
|
|
6815
|
+
value: x.current
|
|
6781
6816
|
}, R["container-start"], /* @__PURE__ */ ie.createElement(t, {
|
|
6782
6817
|
className: Bs(L.wrapperClass)
|
|
6783
6818
|
}, R["wrapper-start"], M(), R["wrapper-end"]), en(L) && /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement("div", {
|
|
@@ -6823,12 +6858,12 @@ const ln = /* @__PURE__ */ ur(({
|
|
|
6823
6858
|
}), _e(() => {
|
|
6824
6859
|
n && p.current && !n.destroyed && T(n.getSlideClasses(p.current));
|
|
6825
6860
|
}, [n]);
|
|
6826
|
-
const
|
|
6861
|
+
const x = {
|
|
6827
6862
|
isActive: d.indexOf("swiper-slide-active") >= 0,
|
|
6828
6863
|
isVisible: d.indexOf("swiper-slide-visible") >= 0,
|
|
6829
6864
|
isPrev: d.indexOf("swiper-slide-prev") >= 0,
|
|
6830
6865
|
isNext: d.indexOf("swiper-slide-next") >= 0
|
|
6831
|
-
}, u = () => typeof r == "function" ? r(
|
|
6866
|
+
}, u = () => typeof r == "function" ? r(x) : r, m = () => {
|
|
6832
6867
|
g(!0);
|
|
6833
6868
|
};
|
|
6834
6869
|
return /* @__PURE__ */ ie.createElement(e, Je({
|
|
@@ -6837,14 +6872,14 @@ const ln = /* @__PURE__ */ ur(({
|
|
|
6837
6872
|
"data-swiper-slide-index": o,
|
|
6838
6873
|
onLoad: m
|
|
6839
6874
|
}, a), i && /* @__PURE__ */ ie.createElement(lr.Provider, {
|
|
6840
|
-
value:
|
|
6875
|
+
value: x
|
|
6841
6876
|
}, /* @__PURE__ */ ie.createElement("div", {
|
|
6842
6877
|
className: "swiper-zoom-container",
|
|
6843
6878
|
"data-swiper-zoom": typeof i == "number" ? i : void 0
|
|
6844
6879
|
}, u(), s && !f && /* @__PURE__ */ ie.createElement("div", {
|
|
6845
6880
|
className: "swiper-lazy-preloader"
|
|
6846
6881
|
}))), !i && /* @__PURE__ */ ie.createElement(lr.Provider, {
|
|
6847
|
-
value:
|
|
6882
|
+
value: x
|
|
6848
6883
|
}, u(), s && !f && /* @__PURE__ */ ie.createElement("div", {
|
|
6849
6884
|
className: "swiper-lazy-preloader"
|
|
6850
6885
|
})));
|
|
@@ -6887,8 +6922,8 @@ function Ys({
|
|
|
6887
6922
|
}
|
|
6888
6923
|
function s(f, g) {
|
|
6889
6924
|
const b = e.params.navigation;
|
|
6890
|
-
f = K(f), f.forEach((
|
|
6891
|
-
|
|
6925
|
+
f = K(f), f.forEach((x) => {
|
|
6926
|
+
x && (x.classList[g ? "add" : "remove"](...b.disabledClass.split(" ")), x.tagName === "BUTTON" && (x.disabled = g), e.params.watchOverflow && e.enabled && x.classList[e.isLocked ? "add" : "remove"](b.lockClass));
|
|
6892
6927
|
});
|
|
6893
6928
|
}
|
|
6894
6929
|
function o() {
|
|
@@ -6919,7 +6954,7 @@ function Ys({
|
|
|
6919
6954
|
nextEl: g,
|
|
6920
6955
|
prevEl: b
|
|
6921
6956
|
}), g = K(g), b = K(b);
|
|
6922
|
-
const
|
|
6957
|
+
const x = (u, m) => {
|
|
6923
6958
|
if (u) {
|
|
6924
6959
|
if (f.addIcons && u.matches(".swiper-button-next,.swiper-button-prev") && !u.querySelector("svg")) {
|
|
6925
6960
|
const v = document.createElement("div");
|
|
@@ -6929,7 +6964,7 @@ function Ys({
|
|
|
6929
6964
|
}
|
|
6930
6965
|
!e.enabled && u && u.classList.add(...f.lockClass.split(" "));
|
|
6931
6966
|
};
|
|
6932
|
-
g.forEach((u) =>
|
|
6967
|
+
g.forEach((u) => x(u, "next")), b.forEach((u) => x(u, "prev"));
|
|
6933
6968
|
}
|
|
6934
6969
|
function p() {
|
|
6935
6970
|
let {
|
|
@@ -6937,10 +6972,10 @@ function Ys({
|
|
|
6937
6972
|
prevEl: g
|
|
6938
6973
|
} = e.navigation;
|
|
6939
6974
|
f = K(f), g = K(g);
|
|
6940
|
-
const b = (
|
|
6941
|
-
|
|
6975
|
+
const b = (x, u) => {
|
|
6976
|
+
x.removeEventListener("click", u === "next" ? a : l), x.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
6942
6977
|
};
|
|
6943
|
-
f.forEach((
|
|
6978
|
+
f.forEach((x) => b(x, "next")), g.forEach((x) => b(x, "prev"));
|
|
6944
6979
|
}
|
|
6945
6980
|
t("init", () => {
|
|
6946
6981
|
e.params.navigation.enabled === !1 ? T() : (c(), o());
|
|
@@ -6961,19 +6996,19 @@ function Ys({
|
|
|
6961
6996
|
}), t("click", (f, g) => {
|
|
6962
6997
|
let {
|
|
6963
6998
|
nextEl: b,
|
|
6964
|
-
prevEl:
|
|
6999
|
+
prevEl: x
|
|
6965
7000
|
} = e.navigation;
|
|
6966
|
-
b = K(b),
|
|
7001
|
+
b = K(b), x = K(x);
|
|
6967
7002
|
const u = g.target;
|
|
6968
|
-
let m =
|
|
7003
|
+
let m = x.includes(u) || b.includes(u);
|
|
6969
7004
|
if (e.isElement && !m) {
|
|
6970
7005
|
const v = g.path || g.composedPath && g.composedPath();
|
|
6971
|
-
v && (m = v.find((w) => b.includes(w) ||
|
|
7006
|
+
v && (m = v.find((w) => b.includes(w) || x.includes(w)));
|
|
6972
7007
|
}
|
|
6973
7008
|
if (e.params.navigation.hideOnClick && !m) {
|
|
6974
7009
|
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === u || e.pagination.el.contains(u))) return;
|
|
6975
7010
|
let v;
|
|
6976
|
-
b.length ? v = b[0].classList.contains(e.params.navigation.hiddenClass) :
|
|
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));
|
|
6977
7012
|
}
|
|
6978
7013
|
});
|
|
6979
7014
|
const d = () => {
|
|
@@ -7166,7 +7201,7 @@ function Xs({
|
|
|
7166
7201
|
v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
|
|
7167
7202
|
});
|
|
7168
7203
|
}), t("init", () => {
|
|
7169
|
-
e.params.pagination.enabled === !1 ?
|
|
7204
|
+
e.params.pagination.enabled === !1 ? x() : (f(), T(), d());
|
|
7170
7205
|
}), t("activeIndexChange", () => {
|
|
7171
7206
|
typeof e.snapIndex > "u" && d();
|
|
7172
7207
|
}), t("snapIndexChange", () => {
|
|
@@ -7196,7 +7231,7 @@ function Xs({
|
|
|
7196
7231
|
el: u
|
|
7197
7232
|
} = e.pagination;
|
|
7198
7233
|
u && (u = K(u), u.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), f(), T(), d();
|
|
7199
|
-
},
|
|
7234
|
+
}, x = () => {
|
|
7200
7235
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
7201
7236
|
let {
|
|
7202
7237
|
el: u
|
|
@@ -7205,7 +7240,7 @@ function Xs({
|
|
|
7205
7240
|
};
|
|
7206
7241
|
Object.assign(e.pagination, {
|
|
7207
7242
|
enable: b,
|
|
7208
|
-
disable:
|
|
7243
|
+
disable: x,
|
|
7209
7244
|
render: T,
|
|
7210
7245
|
update: d,
|
|
7211
7246
|
init: f,
|
|
@@ -7259,33 +7294,33 @@ function Us({
|
|
|
7259
7294
|
});
|
|
7260
7295
|
}
|
|
7261
7296
|
function d(E, M) {
|
|
7262
|
-
E = K(E), E.forEach((
|
|
7263
|
-
|
|
7297
|
+
E = K(E), E.forEach((S) => {
|
|
7298
|
+
S.setAttribute("role", M);
|
|
7264
7299
|
});
|
|
7265
7300
|
}
|
|
7266
7301
|
function T(E, M) {
|
|
7267
|
-
E = K(E), E.forEach((
|
|
7268
|
-
|
|
7302
|
+
E = K(E), E.forEach((S) => {
|
|
7303
|
+
S.setAttribute("aria-roledescription", M);
|
|
7269
7304
|
});
|
|
7270
7305
|
}
|
|
7271
7306
|
function f(E, M) {
|
|
7272
|
-
E = K(E), E.forEach((
|
|
7273
|
-
|
|
7307
|
+
E = K(E), E.forEach((S) => {
|
|
7308
|
+
S.setAttribute("aria-controls", M);
|
|
7274
7309
|
});
|
|
7275
7310
|
}
|
|
7276
7311
|
function g(E, M) {
|
|
7277
|
-
E = K(E), E.forEach((
|
|
7278
|
-
|
|
7312
|
+
E = K(E), E.forEach((S) => {
|
|
7313
|
+
S.setAttribute("aria-label", M);
|
|
7279
7314
|
});
|
|
7280
7315
|
}
|
|
7281
7316
|
function b(E, M) {
|
|
7282
|
-
E = K(E), E.forEach((
|
|
7283
|
-
|
|
7317
|
+
E = K(E), E.forEach((S) => {
|
|
7318
|
+
S.setAttribute("id", M);
|
|
7284
7319
|
});
|
|
7285
7320
|
}
|
|
7286
|
-
function
|
|
7287
|
-
E = K(E), E.forEach((
|
|
7288
|
-
|
|
7321
|
+
function x(E, M) {
|
|
7322
|
+
E = K(E), E.forEach((S) => {
|
|
7323
|
+
S.setAttribute("aria-live", M);
|
|
7289
7324
|
});
|
|
7290
7325
|
}
|
|
7291
7326
|
function u(E) {
|
|
@@ -7300,13 +7335,13 @@ function Us({
|
|
|
7300
7335
|
}
|
|
7301
7336
|
function v(E) {
|
|
7302
7337
|
if (E.keyCode !== 13 && E.keyCode !== 32) return;
|
|
7303
|
-
const M = e.params.a11y,
|
|
7304
|
-
if (!(e.pagination && e.pagination.el && (
|
|
7338
|
+
const M = e.params.a11y, S = E.target;
|
|
7339
|
+
if (!(e.pagination && e.pagination.el && (S === e.pagination.el || e.pagination.el.contains(E.target)) && !E.target.matches(he(e.params.pagination.bulletClass)))) {
|
|
7305
7340
|
if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
|
|
7306
7341
|
const B = K(e.navigation.prevEl);
|
|
7307
|
-
K(e.navigation.nextEl).includes(
|
|
7342
|
+
K(e.navigation.nextEl).includes(S) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? l(M.lastSlideMessage) : l(M.nextSlideMessage)), B.includes(S) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? l(M.firstSlideMessage) : l(M.prevSlideMessage));
|
|
7308
7343
|
}
|
|
7309
|
-
e.pagination &&
|
|
7344
|
+
e.pagination && S.matches(he(e.params.pagination.bulletClass)) && S.click();
|
|
7310
7345
|
}
|
|
7311
7346
|
}
|
|
7312
7347
|
function w() {
|
|
@@ -7329,8 +7364,8 @@ function Us({
|
|
|
7329
7364
|
e.params.pagination.clickable && (c(M), e.params.pagination.renderBullet || (d(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");
|
|
7330
7365
|
});
|
|
7331
7366
|
}
|
|
7332
|
-
const h = (E, M,
|
|
7333
|
-
c(E), E.tagName !== "BUTTON" && (d(E, "button"), E.addEventListener("keydown", v)), g(E,
|
|
7367
|
+
const h = (E, M, S) => {
|
|
7368
|
+
c(E), E.tagName !== "BUTTON" && (d(E, "button"), E.addEventListener("keydown", v)), g(E, S), f(E, M);
|
|
7334
7369
|
}, _ = (E) => {
|
|
7335
7370
|
s && s !== E.target && !s.contains(E.target) && (i = !0), e.a11y.clicked = !0;
|
|
7336
7371
|
}, O = () => {
|
|
@@ -7346,27 +7381,27 @@ function Us({
|
|
|
7346
7381
|
const M = E.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
7347
7382
|
if (!M || !e.slides.includes(M)) return;
|
|
7348
7383
|
s = M;
|
|
7349
|
-
const
|
|
7350
|
-
|
|
7384
|
+
const S = e.slides.indexOf(M) === e.activeIndex, B = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(M);
|
|
7385
|
+
S || B || E.sourceCapabilities && E.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
7351
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);
|
|
7352
7387
|
}));
|
|
7353
7388
|
}, V = () => {
|
|
7354
7389
|
const E = e.params.a11y;
|
|
7355
7390
|
E.itemRoleDescriptionMessage && T(e.slides, E.itemRoleDescriptionMessage), E.slideRole && d(e.slides, E.slideRole);
|
|
7356
7391
|
const M = e.slides.length;
|
|
7357
|
-
E.slideLabelMessage && e.slides.forEach((
|
|
7358
|
-
const C = e.params.loop ? parseInt(
|
|
7359
|
-
g(
|
|
7392
|
+
E.slideLabelMessage && e.slides.forEach((S, B) => {
|
|
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
|
+
g(S, I);
|
|
7360
7395
|
});
|
|
7361
7396
|
}, q = () => {
|
|
7362
7397
|
const E = e.params.a11y;
|
|
7363
7398
|
e.el.append(n);
|
|
7364
7399
|
const M = e.el;
|
|
7365
7400
|
E.containerRoleDescriptionMessage && T(M, E.containerRoleDescriptionMessage), E.containerMessage && g(M, E.containerMessage), E.containerRole && d(M, E.containerRole);
|
|
7366
|
-
const
|
|
7367
|
-
if (b(
|
|
7401
|
+
const S = e.wrapperEl, B = E.id || S.getAttribute("id") || `swiper-wrapper-${a(16)}`;
|
|
7402
|
+
if (b(S, B), E.wrapperLiveRegion) {
|
|
7368
7403
|
const $ = e.params.autoplay && e.params.autoplay.enabled ? "off" : "polite";
|
|
7369
|
-
S
|
|
7404
|
+
x(S, $);
|
|
7370
7405
|
}
|
|
7371
7406
|
V();
|
|
7372
7407
|
let {
|
|
@@ -7423,7 +7458,7 @@ function Ks({
|
|
|
7423
7458
|
pauseOnMouseEnter: !1
|
|
7424
7459
|
}
|
|
7425
7460
|
});
|
|
7426
|
-
let s, o, l = i && i.autoplay ? i.autoplay.delay : 3e3, a = i && i.autoplay ? i.autoplay.delay : 3e3, c, p = (/* @__PURE__ */ new Date()).getTime(), d, T, f, g, b,
|
|
7461
|
+
let s, o, l = i && i.autoplay ? i.autoplay.delay : 3e3, a = i && i.autoplay ? i.autoplay.delay : 3e3, c, p = (/* @__PURE__ */ new Date()).getTime(), d, T, f, g, b, x, u;
|
|
7427
7462
|
function m(M) {
|
|
7428
7463
|
!e || e.destroyed || !e.wrapperEl || M.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", m), !(u || M.detail && M.detail.bySwiperTouchMove) && _());
|
|
7429
7464
|
}
|
|
@@ -7440,43 +7475,43 @@ function Ks({
|
|
|
7440
7475
|
}, y = (M) => {
|
|
7441
7476
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7442
7477
|
cancelAnimationFrame(o), v();
|
|
7443
|
-
let
|
|
7478
|
+
let S = typeof M > "u" ? e.params.autoplay.delay : M;
|
|
7444
7479
|
l = e.params.autoplay.delay, a = e.params.autoplay.delay;
|
|
7445
7480
|
const B = w();
|
|
7446
|
-
!Number.isNaN(B) && B > 0 && typeof M > "u" && (
|
|
7481
|
+
!Number.isNaN(B) && B > 0 && typeof M > "u" && (S = B, l = B, a = B), c = S;
|
|
7447
7482
|
const C = e.params.speed, I = () => {
|
|
7448
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(() => {
|
|
7449
7484
|
y();
|
|
7450
7485
|
})));
|
|
7451
7486
|
};
|
|
7452
|
-
return
|
|
7487
|
+
return S > 0 ? (clearTimeout(s), s = setTimeout(() => {
|
|
7453
7488
|
I();
|
|
7454
|
-
},
|
|
7489
|
+
}, S)) : requestAnimationFrame(() => {
|
|
7455
7490
|
I();
|
|
7456
|
-
}),
|
|
7491
|
+
}), S;
|
|
7457
7492
|
}, A = () => {
|
|
7458
7493
|
p = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, y(), n("autoplayStart");
|
|
7459
7494
|
}, L = () => {
|
|
7460
7495
|
e.autoplay.running = !1, clearTimeout(s), cancelAnimationFrame(o), n("autoplayStop");
|
|
7461
|
-
}, h = (M,
|
|
7496
|
+
}, h = (M, S) => {
|
|
7462
7497
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7463
|
-
clearTimeout(s), M || (
|
|
7498
|
+
clearTimeout(s), M || (x = !0);
|
|
7464
7499
|
const B = () => {
|
|
7465
7500
|
n("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", m) : _();
|
|
7466
7501
|
};
|
|
7467
|
-
if (e.autoplay.paused = !0,
|
|
7502
|
+
if (e.autoplay.paused = !0, S) {
|
|
7468
7503
|
b && (c = e.params.autoplay.delay), b = !1, B();
|
|
7469
7504
|
return;
|
|
7470
7505
|
}
|
|
7471
7506
|
c = (c || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - p), !(e.isEnd && c < 0 && !e.params.loop) && (c < 0 && (c = 0), B());
|
|
7472
7507
|
}, _ = () => {
|
|
7473
|
-
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (p = (/* @__PURE__ */ new Date()).getTime(),
|
|
7508
|
+
e.isEnd && c < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (p = (/* @__PURE__ */ new Date()).getTime(), x ? (x = !1, y(c)) : y(), e.autoplay.paused = !1, n("autoplayResume"));
|
|
7474
7509
|
}, O = () => {
|
|
7475
7510
|
if (e.destroyed || !e.autoplay.running) return;
|
|
7476
7511
|
const M = de();
|
|
7477
|
-
M.visibilityState === "hidden" && (
|
|
7512
|
+
M.visibilityState === "hidden" && (x = !0, h(!0)), M.visibilityState === "visible" && _();
|
|
7478
7513
|
}, k = (M) => {
|
|
7479
|
-
M.pointerType === "mouse" && (
|
|
7514
|
+
M.pointerType === "mouse" && (x = !0, u = !0, !(e.animating || e.autoplay.paused) && h(!0));
|
|
7480
7515
|
}, R = (M) => {
|
|
7481
7516
|
M.pointerType === "mouse" && (u = !1, e.autoplay.paused && _());
|
|
7482
7517
|
}, V = () => {
|
|
@@ -7493,10 +7528,10 @@ function Ks({
|
|
|
7493
7528
|
}), t("destroy", () => {
|
|
7494
7529
|
q(), E(), e.autoplay.running && L();
|
|
7495
7530
|
}), t("_freeModeStaticRelease", () => {
|
|
7496
|
-
(f ||
|
|
7531
|
+
(f || x) && _();
|
|
7497
7532
|
}), t("_freeModeNoMomentumRelease", () => {
|
|
7498
7533
|
e.params.autoplay.disableOnInteraction ? L() : h(!0, !0);
|
|
7499
|
-
}), t("beforeTransitionStart", (M,
|
|
7534
|
+
}), t("beforeTransitionStart", (M, S, B) => {
|
|
7500
7535
|
e.destroyed || !e.autoplay.running || (B || !e.params.autoplay.disableOnInteraction ? h(!0, !0) : L());
|
|
7501
7536
|
}), t("sliderFirstMove", () => {
|
|
7502
7537
|
if (!(e.destroyed || !e.autoplay.running)) {
|
|
@@ -7504,8 +7539,8 @@ function Ks({
|
|
|
7504
7539
|
L();
|
|
7505
7540
|
return;
|
|
7506
7541
|
}
|
|
7507
|
-
T = !0, f = !1,
|
|
7508
|
-
|
|
7542
|
+
T = !0, f = !1, x = !1, g = setTimeout(() => {
|
|
7543
|
+
x = !0, f = !0, h(!0);
|
|
7509
7544
|
}, 200);
|
|
7510
7545
|
}
|
|
7511
7546
|
}), t("touchEnd", () => {
|
|
@@ -7544,21 +7579,21 @@ function Js({
|
|
|
7544
7579
|
const {
|
|
7545
7580
|
slidesPerView: b
|
|
7546
7581
|
} = e.params, {
|
|
7547
|
-
rows:
|
|
7582
|
+
rows: x,
|
|
7548
7583
|
fill: u
|
|
7549
7584
|
} = e.params.grid, m = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : g.length;
|
|
7550
|
-
s = Math.floor(m /
|
|
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;
|
|
7551
7586
|
}, c = () => {
|
|
7552
7587
|
e.slides && e.slides.forEach((g) => {
|
|
7553
7588
|
g.swiperSlideGridSet && (g.style.height = "", g.style[e.getDirectionLabel("margin-top")] = "");
|
|
7554
7589
|
});
|
|
7555
|
-
}, p = (g, b,
|
|
7590
|
+
}, p = (g, b, x) => {
|
|
7556
7591
|
const {
|
|
7557
7592
|
slidesPerGroup: u
|
|
7558
7593
|
} = e.params, m = l(), {
|
|
7559
7594
|
rows: v,
|
|
7560
7595
|
fill: w
|
|
7561
|
-
} = e.params.grid, y = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length :
|
|
7596
|
+
} = e.params.grid, y = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : x.length;
|
|
7562
7597
|
let A, L, h;
|
|
7563
7598
|
if (w === "row" && u > 1) {
|
|
7564
7599
|
const _ = Math.floor(g / (u * v)), O = g - v * u * _, k = _ === 0 ? u : Math.min(Math.ceil((y - _ * v * u) / v), u);
|
|
@@ -7567,12 +7602,12 @@ function Js({
|
|
|
7567
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;
|
|
7568
7603
|
}, d = (g, b) => {
|
|
7569
7604
|
const {
|
|
7570
|
-
centeredSlides:
|
|
7605
|
+
centeredSlides: x,
|
|
7571
7606
|
roundLengths: u
|
|
7572
7607
|
} = e.params, m = l(), {
|
|
7573
7608
|
rows: v
|
|
7574
7609
|
} = e.params.grid;
|
|
7575
|
-
if (e.virtualSize = (g + m) * n, e.virtualSize = Math.ceil(e.virtualSize / v) - m, e.params.cssMode || (e.wrapperEl.style[e.getDirectionLabel("width")] = `${e.virtualSize + m}px`),
|
|
7610
|
+
if (e.virtualSize = (g + m) * n, e.virtualSize = Math.ceil(e.virtualSize / v) - m, e.params.cssMode || (e.wrapperEl.style[e.getDirectionLabel("width")] = `${e.virtualSize + m}px`), x) {
|
|
7576
7611
|
const w = [];
|
|
7577
7612
|
for (let y = 0; y < b.length; y += 1) {
|
|
7578
7613
|
let A = b[y];
|
|
@@ -7586,8 +7621,8 @@ function Js({
|
|
|
7586
7621
|
const {
|
|
7587
7622
|
params: g,
|
|
7588
7623
|
el: b
|
|
7589
|
-
} = e,
|
|
7590
|
-
o && !
|
|
7624
|
+
} = e, x = g.grid && g.grid.rows > 1;
|
|
7625
|
+
o && !x ? (b.classList.remove(`${g.containerModifierClass}grid`, `${g.containerModifierClass}grid-column`), s = 1, e.emitContainerClasses()) : !o && x && (b.classList.add(`${g.containerModifierClass}grid`), g.grid.fill === "column" && b.classList.add(`${g.containerModifierClass}grid-column`), e.emitContainerClasses()), o = x;
|
|
7591
7626
|
};
|
|
7592
7627
|
t("init", T), t("update", f), e.grid = {
|
|
7593
7628
|
initSlides: a,
|
|
@@ -7639,7 +7674,7 @@ const Gt = ({
|
|
|
7639
7674
|
"--swiper-pagination-color": f.primary,
|
|
7640
7675
|
"--swiper-navigation-color": f.primary
|
|
7641
7676
|
},
|
|
7642
|
-
children: r.map((
|
|
7677
|
+
children: r.map((x, u) => /* @__PURE__ */ G(ln, { children: x }, u))
|
|
7643
7678
|
}
|
|
7644
7679
|
) });
|
|
7645
7680
|
};
|